@ckeditor/ckeditor5-track-changes 48.0.0-alpha.11 → 48.0.0-alpha.12

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 _0x3d2e0d,Plugin as _0x495525,PendingActions as _0x5ca832}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2e053f,Annotations as _0x1c7ed0,EditorAnnotations as _0x3f048c,Comments as _0x2dbc02}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x3a7e29,ObservableMixin as _0x213a43,uid as _0x58e93c,priorities as _0x25af6a,insertToPriorityArray as _0x1e9f4a,logWarning as _0x3dea94,getEnvKeystrokeText as _0x9d0634,FocusTracker as _0x51d144,KeystrokeHandler as _0x28cfed,Collection as _0x48b5a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2f80df,IconCancel as _0x107cc1,IconTrackChanges as _0x449307}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5675f6,View as _0x393ace,ViewCollection as _0x19d41b,FocusCycler as _0x1922d0,UIModel as _0x31c6fd,createDropdown as _0x277ab6,SplitButtonView as _0xb618c,addListToDropdown as _0x1ae90d,MenuBarMenuView as _0x32dc5d,MenuBarMenuListView as _0x35f7ef,ListSeparatorView as _0x4f6e01,MenuBarMenuListItemView as _0xe7de70,MenuBarMenuListItemButtonView as _0x265fb3,BodyCollection as _0x38073e,Dialog as _0x5335ec}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x190ed2,SuggestionsConversion as _0x47c2bd,Users as _0x31a878,DocumentCompare as _0x2132e4,fixElementSuggestionRange as _0x5d7589,hashObject as _0x1f6902,surroundingMarkersDetector as _0x2c1e2b,FOCUS_ANNOTATION_KEYSTROKE as _0x2f36e4,AriaDescriptionView as _0x19e2e2,setupThreadKeyboardNavigation as _0x9dddef,trimHtml as _0x56c543,UserView as _0x8641a0,LateFocusButtonView as _0x50b50e,getDateTimeFormatter as _0x5c1070,getAllMarkersDomElementsSorted as _0x4615f7,sanitizeEditorConfig as _0x39e11a}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x28959b,ModelLiveRange as _0xcc3cc7,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 _0x3d2e0d{['_enabledCommands'];constructor(_0x42a9b1,_0x53630d){super(_0x42a9b1),this['_enabledCommands']=_0x53630d,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 _0x5587c6 of this['editor']['commands']['commands']())_0x5587c6['affectsData']&&!this['_enabledCommands']['has'](_0x5587c6)&&_0x5587c6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x277e6d of this['editor']['commands']['commands']())_0x277e6d['affectsData']&&!this['_enabledCommands']['has'](_0x277e6d)&&_0x277e6d['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x3d2e0d{['_suggestions'];constructor(_0x491138,_0x92545d){super(_0x491138),this['_suggestions']=_0x92545d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3a81c5){const _0x3a2c1d=this['_suggestions']['get'](_0x3a81c5);if(!_0x3a2c1d)throw new _0x3a7e29('track-changes-accept-suggestion-not-found',this);const _0x30d49f=_0x3a2c1d['getRanges']();this['editor']['model']['canEditAt'](_0x30d49f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3a2c1d);}}class ft extends _0x3d2e0d{['_suggestions'];constructor(_0x450bde,_0x3a1225){super(_0x450bde),this['_suggestions']=_0x3a1225,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1b361a){const _0x1d9861=this['_suggestions']['get'](_0x1b361a);if(!_0x1d9861)throw new _0x3a7e29('track-changes-discard-suggestion-not-found',this);const _0x420995=_0x1d9861['getRanges']();this['editor']['model']['canEditAt'](_0x420995)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1d9861);}}function gt(_0x147630,_0x2a6de4){let _0x44606d='';return _0x44606d+=_0x147630['split']('*')['map']((_0x2f604f,_0x1c6b84)=>_0x1c6b84%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x2f604f)+'</span>':mt(_0x2f604f))['join'](''),_0x2a6de4&&(_0x44606d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2a6de4['value']+'\x22\x20title=\x22'+_0x2a6de4['title']+'\x22></span>'),_0x44606d;}function mt(_0x298189){const _0x57fdde=document['createElement']('span');return _0x57fdde['innerText']=_0x298189,_0x57fdde['innerHTML'];}function Et(_0x5ab390){return _0x5ab390['sort']((_0x2e74c3,_0x3b19a0)=>'attribute'===_0x2e74c3['type']&&'attribute'!==_0x3b19a0['type']?-0x1:'attribute'!==_0x2e74c3['type']&&'attribute'===_0x3b19a0['type']?0x1:'deletion'==_0x2e74c3['type']&&'deletion'!=_0x3b19a0['type']?-0x1:'deletion'!=_0x2e74c3['type']&&'deletion'==_0x3b19a0['type']?0x1:0x0);}function Tt(_0x2374bb,_0x58f255){let _0x3e196b,_0x112fd3=0x0;const _0x3d1601=[],_0x1ec138=_0x58f255['schema'];for(;_0x112fd3<_0x2374bb['length'];){const _0x16b840=_0x2374bb[_0x112fd3],_0x2e9985=_0x2374bb[_0x112fd3+0x1];_0x3e196b||(_0x3e196b=_0x58f255['createPositionBefore'](_0x16b840)),_t(_0x58f255,_0x16b840,_0x2e9985)||(_0x3d1601['push'](_0x58f255['createRange'](_0x3e196b,_0x1ec138['isObject'](_0x16b840)?_0x58f255['createPositionAfter'](_0x16b840):_0x58f255['createPositionAt'](_0x16b840,'end'))),_0x3e196b=null),_0x112fd3++;}return _0x3d1601;}function _t(_0x2246b2,_0x5bdbfe,_0x4d76fd){if(!_0x4d76fd)return!0x1;const _0x560ee5=_0x2246b2['createPositionAfter'](_0x5bdbfe),_0x3c88a1=_0x2246b2['createPositionBefore'](_0x4d76fd);return _0x560ee5['isTouching'](_0x3c88a1);}function pt(_0x4205d1,_0x2daafa,_0x4e5cda){for(;_0x4e5cda['length'];){const _0x4c8e20=_0x4e5cda['splice'](0x0,0x64);_0x4205d1['change'](()=>{for(const _0x3b65a8 of _0x4c8e20)_0x3b65a8['isInContent']&&_0x2daafa['execute'](_0x3b65a8['id']);});}}class Lt extends _0x3d2e0d{['_command'];['_suggestions'];constructor(_0x2a448c,_0x1a5a46,_0x4acf74){super(_0x2a448c),this['_command']=_0x1a5a46,this['_suggestions']=_0x4acf74,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15e6fa=Array['from'](this['_suggestions']['values']())['some'](_0x1929a4=>_0x1929a4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x15e6fa;}['execute'](){const _0x1cb593=Et(Array['from'](this['_suggestions']['values']()));for(const _0x6d7c5f of _0x1cb593){const _0x3ba71e=_0x6d7c5f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3ba71e))return;}pt(this['editor']['model'],this['_command'],_0x1cb593);}}class It extends _0x3d2e0d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1773fc,_0x15aefe,_0x203e54){super(_0x1773fc),this['_command']=_0x15aefe,this['_suggestions']=_0x203e54,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53d59c=this['editor']['model']['document']['selection'],_0x25649b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x50d72e,_0x5d391f){const _0x1572e2=Array['from'](_0x50d72e['getRanges']()),_0x2840cd=new Set();for(const _0x3765b8 of _0x5d391f)if(_0x3765b8['isInContent']){for(const _0x281e83 of _0x1572e2)for(const _0x202123 of _0x3765b8['getRanges']())(_0x281e83['isIntersecting'](_0x202123)||_0x50d72e['isCollapsed']&&!_0x3765b8['isMultiRange']&&_0x3765b8['next']&&_0x202123['end']['isTouching'](_0x281e83['start']))&&_0x2840cd['add'](_0x3765b8);}return _0x2840cd;}(_0x53d59c,_0x25649b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3f88bc=Et(Array['from'](this['_selectedSuggestions']));for(const _0x1cbd61 of _0x3f88bc){const _0xf76597=_0x1cbd61['getRanges']();if(!this['editor']['model']['canEditAt'](_0xf76597))return;}pt(this['editor']['model'],this['_command'],_0x3f88bc);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x213a43(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x251c5e,_0x50d684){super(),this['id']=_0x50d684['id'],this['type']=_0x50d684['type'],this['subType']=_0x50d684['subType']||null,this['author']=_0x50d684['author'],this['creator']=_0x50d684['creator']||_0x50d684['author'],this['isExternal']=Boolean(_0x50d684['attributes']&&_0x50d684['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x50d684['originalSuggestionId']||null,this['_model']=_0x251c5e,this['_onAccept']=_0x50d684['onAccept'],this['_onDiscard']=_0x50d684['onDiscard'],this['_onAttributesChange']=_0x50d684['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x50d684['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 _0x78d763=this;for(;_0x78d763['previous'];)_0x78d763=_0x78d763['previous'];return _0x78d763;}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'](_0x1925e3){this['_markerNames']['add'](_0x1925e3);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x400034=>this['_model']['markers']['get'](_0x400034))['filter'](_0x335f6b=>_0x335f6b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1b8781=>{for(const _0xd456fc of this['getMarkers']())_0x1b8781['removeMarker'](_0xd456fc);}),this['_markerNames']['clear']();}['removeMarker'](_0x3e29b0){this['_model']['change'](_0xd60f2d=>{_0xd60f2d['removeMarker'](_0x3e29b0);}),this['_markerNames']['delete'](_0x3e29b0);}['addRange'](_0x1eaf35){const _0x5da47e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x5da47e),this['_model']['change'](_0x5193d3=>{_0x5193d3['addMarker'](_0x5da47e,{'range':_0x1eaf35,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x134736){for(const _0x21cc30 of this['getRanges']())if(_0x21cc30['isIntersecting'](_0x134736))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x18433b=>_0x18433b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x52b158,_0x113c47)=>[..._0x52b158,..._0x113c47['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3d47b7=this['getRanges']();if(0x1!=_0x3d47b7['length'])return null;const _0x1d3e4d=_0x3d47b7[0x0],_0x1db927=_0x1d3e4d['start']['nodeAfter'],_0x238fb7=_0x1d3e4d['end']['nodeBefore'];return _0x1db927 instanceof _0x28959b?_0x1db927!=_0x238fb7?null:_0x1db927: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 _0x3b8bb3=[];let _0x88e45=this['head'];for(;_0x88e45;)_0x3b8bb3['push'](_0x88e45),_0x88e45=_0x88e45['next'];return _0x3b8bb3;}['setAttribute'](_0x1c55ce,_0x4b64d6){const _0x1a070b=nt(this['attributes']);it(_0x1a070b,_0x1c55ce,_0x4b64d6),st(_0x1a070b,this['attributes'])||(this['attributes']=_0x1a070b,this['_onAttributesChange'](_0x1a070b));}['removeAttribute'](_0x415aa3){const _0x34edf7=nt(this['attributes']);rt(_0x34edf7,_0x415aa3),st(_0x34edf7,this['attributes'])||(this['attributes']=_0x34edf7,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 _0x58e93c()['substr'](0x1,0x5);}}function At(_0x589350,_0x334817,_0x5c2605){const _0x16858d=_0x589350['t'],t=_0x589350['t'];switch(_0x334817){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',_0x5c2605);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5c2605);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5c2605);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5c2605);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5c2605);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',_0x5c2605);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5c2605);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',_0x5c2605);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5c2605);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5c2605);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5c2605);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5c2605);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5c2605);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5c2605);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5c2605);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5c2605);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5c2605);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5c2605);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5c2605);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5c2605);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5c2605);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5c2605);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5c2605);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5c2605);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5c2605);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'},_0x5c2605);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5c2605);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5c2605);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5c2605);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5c2605);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5c2605);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5c2605);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5c2605);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'},_0x5c2605);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5c2605);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5c2605);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5c2605);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5c2605);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'},_0x5c2605);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5c2605);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'},_0x5c2605);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'},_0x5c2605);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5c2605);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'},_0x5c2605);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5c2605);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'},_0x5c2605);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5c2605);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5c2605);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5c2605);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5c2605);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5c2605);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'},_0x5c2605);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5c2605);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 _0x16858d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5c2605);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x16858d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5c2605);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5c2605);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'},_0x5c2605);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'},_0x5c2605);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'},_0x5c2605);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x334817;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d2058,_0x30438f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d2058,this['_locale']=_0x30438f;}['getDescriptions'](_0x2c3e63){const _0x354712=[],_0x35735a=new Set(),_0x5babfd=new Set();for(let _0x86de9c=0x0;_0x86de9c<_0x2c3e63['length'];_0x86de9c++){const _0x1976ac=_0x2c3e63[_0x86de9c];if(!_0x1976ac['isInContent'])continue;const _0x50fb9b=this['_handleCustomCallbackDescription'](_0x1976ac);if(_0x50fb9b){if(null!=_0x1976ac['subType']){if(_0x35735a['has'](_0x1976ac['subType']))continue;_0x35735a['add'](_0x1976ac['subType']);}_0x354712['push'](_0x50fb9b);}else{if('attribute'==_0x1976ac['type']){const _0x81941d=_0x1976ac['data']['key'];if(_0x5babfd['has'](_0x81941d))continue;_0x5babfd['add'](_0x1976ac['data']['key']),_0x81941d==Ke?this['_handleRenameSuggestionDescription'](_0x354712,_0x1976ac):this['_handleAttributeSuggestionDescription'](_0x354712,_0x1976ac);continue;}'insertion'!=_0x1976ac['type']&&'deletion'!=_0x1976ac['type']||this['_handleInsertRemoveSuggestionDescription'](_0x354712,_0x1976ac,_0x2c3e63[_0x86de9c+0x1]);}}return this['_resolveDescriptionItems'](_0x354712);}['registerDescriptionCallback'](_0x3a7f6b){this['_customCallbacks']['push'](_0x3a7f6b);}['registerElementLabel'](_0x415806,_0x29b305,_0x47fec5=_0x25af6a['normal']){'function'==typeof _0x415806?_0x1e9f4a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x415806,'label':_0x29b305,'priority':_0x47fec5}):this['_itemLabels']['set'](_0x415806,_0x29b305);}['registerAttributeLabel'](_0x31eb3b,_0x165106){this['_attributeLabels']['set'](_0x31eb3b,_0x165106);}['getItemLabel'](_0x5d531b,_0x29bb56=0x1){let _0x33d09b;for(const _0x55870c of this['_itemLabelsCallbacks'])if(_0x55870c['matchingCallback'](_0x5d531b)){_0x33d09b=_0x55870c['label'];break;}return _0x33d09b||(_0x33d09b=this['_itemLabels']['get'](_0x5d531b['name'])),_0x33d09b?_0x33d09b(_0x29bb56):0x1!==_0x29bb56?_0x29bb56+'\x20'+_0x5d531b['name']+'s':''+_0x5d531b['name'];}['_addDescriptionItems'](_0x1a6cc0,_0x279995){const _0x23e25b=_0x279995['getFirstRange']()['getWalker'](),_0x133b86='insertion'==_0x279995['type']?'add':'remove';for(const _0xc80202 of _0x23e25b){const _0x54b9f0=_0xc80202['item'],_0x3290ba=_0x1a6cc0[_0x1a6cc0['length']-0x1];if(_0x54b9f0['is']('$textProxy'))_0x3290ba&&_0x3290ba['type']['indexOf']('Container')>-0x1&&_0x1a6cc0['pop'](),_0x3290ba&&'text'==_0x3290ba['type']?_0x3290ba[_0x133b86]+=_0x54b9f0['data']:_0x1a6cc0['push']({'type':'text','add':'add'==_0x133b86?_0x54b9f0['data']:'','remove':'remove'==_0x133b86?_0x54b9f0['data']:''});else{if(this['_schema']['isObject'](_0x54b9f0)){const _0x22e900=_0x54b9f0;if(_0x3290ba&&_0x3290ba['type']['indexOf']('Container')>-0x1&&_0x1a6cc0['pop'](),'elementEnd'==_0xc80202['type'])continue;_0x3290ba&&_0x3290ba['type']==_0x133b86+'Object'&&_0x3290ba['element']['name']==_0x22e900['name']?_0x3290ba['quantity']++:_0x1a6cc0['push']({'type':_0x133b86+'Object','element':_0x22e900,'quantity':0x1}),_0x23e25b['skip'](_0x140dbd=>!('elementEnd'==_0x140dbd['type']&&_0x140dbd['item']==_0x54b9f0));}else{if(this['_schema']['checkChild'](_0x54b9f0,'$text')||_0x54b9f0['is']('element','softBreak')){const _0x244f7c=_0x54b9f0;if('add'==_0x133b86&&'elementStart'==_0xc80202['type']||'remove'==_0x133b86&&'elementEnd'==_0xc80202['type'])continue;if(_0x3290ba&&-0x1==_0x3290ba['type']['indexOf']('Container')){'text'==_0x3290ba['type']&&(_0x3290ba[_0x133b86]+='\x0a');continue;}let _0x785e4;if(_0x785e4='add'==_0x133b86?_0x244f7c['nextSibling']&&!this['_schema']['isObject'](_0x244f7c['nextSibling'])?_0x244f7c['nextSibling']:null:_0x244f7c['previousSibling']&&!this['_schema']['isObject'](_0x244f7c['previousSibling'])?_0x244f7c['previousSibling']:null,_0x244f7c['isEmpty']||_0x785e4&&_0x785e4['isEmpty']){const _0x4849a4=_0x785e4&&_0x785e4['isEmpty']?_0x785e4:_0x244f7c;_0x3290ba&&_0x3290ba['type']==_0x133b86+'EmptyContainer'&&_0x3290ba['element']['name']==_0x4849a4['name']?_0x3290ba['quantity']++:_0x1a6cc0['push']({'type':_0x133b86+'EmptyContainer','element':_0x4849a4,'quantity':0x1});}else _0x1a6cc0['push']({'type':_0x133b86+'Container','element':_0x244f7c});}}}}}['_resolveDescriptionItems'](_0x3d1674){const _0x201232=this['_locale'],_0x2e878f=[],_0x2e6602=[],_0xc891c7=[];for(const _0x497165 of _0x3d1674)switch(_0x497165['type']){case'text':if(_0x497165['add']=_0x497165['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x497165['remove']=_0x497165['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x497165['add']&&''!=_0x497165['remove']){_0x2e878f['push']({'type':'replace','content':At(_0x201232,'REPLACE_TEXT',['\x22'+_0x497165['remove']+'\x22','\x22'+_0x497165['add']+'\x22'])});continue;}if(null!=_0x497165['add']['match'](/^ +$/)){_0x2e878f['push']({'type':'insertion','content':At(_0x201232,'*Insert:*\x20%0',At(_0x201232,'ELEMENT_SPACE',_0x497165['add']['length']))});continue;}if(null!=_0x497165['remove']['match'](/^ +$/)){_0x2e878f['push']({'type':'deletion','content':At(_0x201232,'*Remove:*\x20%0',At(_0x201232,'ELEMENT_SPACE',_0x497165['remove']['length']))});continue;}if(''!=_0x497165['add']){_0x2e878f['push']({'type':'insertion','content':At(_0x201232,'*Insert:*\x20%0','\x22'+_0x497165['add']+'\x22')});continue;}_0x2e878f['push']({'type':'deletion','content':At(_0x201232,'*Remove:*\x20%0','\x22'+_0x497165['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2e878f['push']({'type':'insertion','content':At(_0x201232,'*Insert:*\x20%0',this['getItemLabel'](_0x497165['element'],_0x497165['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2e878f['push']({'type':'deletion','content':At(_0x201232,'*Remove:*\x20%0',this['getItemLabel'](_0x497165['element'],_0x497165['quantity']))});continue;case'addContainer':_0x2e878f['push']({'type':'insertion','content':At(_0x201232,'*Split:*\x20%0',this['getItemLabel'](_0x497165['element'],_0x497165['quantity']))});continue;case'removeContainer':_0x2e878f['push']({'type':'deletion','content':At(_0x201232,'*Merge:*\x20%0',this['getItemLabel'](_0x497165['element'],_0x497165['quantity']))});continue;case'addFormat':_0x2e6602['push'](_0x497165['key']);continue;case'removeFormat':_0xc891c7['push'](_0x497165['key']);continue;default:_0x2e878f['push'](_0x497165);}if(_0x2e6602['length']){const _0x42a033=_0x2e6602['map'](_0x5cc32d=>this['_attributeLabels']['has'](_0x5cc32d)?this['_attributeLabels']['get'](_0x5cc32d):_0x5cc32d)['join'](',\x20');_0x2e878f['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x42a033)});}if(_0xc891c7['length']){const _0x5b6b6a=_0xc891c7['map'](_0x2f0e62=>this['_attributeLabels']['has'](_0x2f0e62)?this['_attributeLabels']['get'](_0x2f0e62):_0x2f0e62)['join'](',\x20');_0x2e878f['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x5b6b6a)});}return _0x2e878f;}['_handleCustomCallbackDescription'](_0x317e54){for(const _0x5533bb of this['_customCallbacks']){const _0x4cd4de=_0x5533bb(_0x317e54);if(_0x4cd4de&&'type'in _0x4cd4de)return _0x4cd4de;}}['_handleAttributeSuggestionDescription'](_0x45cf6a,_0x26f04f){const _0x1603f3=_0x26f04f['data'],_0x43edf9=void 0x0===_0x1603f3['newValue']?'removeFormat':'addFormat';_0x45cf6a['push']({'type':_0x43edf9,'key':_0x1603f3['key']});}['_handleRenameSuggestionDescription'](_0xa93c90,_0x41995b){_0xa93c90['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41995b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x399e3d,_0x7cb52,_0x4fa092){if(this['_addDescriptionItems'](_0x399e3d,_0x7cb52),_0x4fa092&&_0x4fa092['getFirstRange']()&&!_0x7cb52['getFirstRange']()['end']['isEqual'](_0x4fa092['getFirstRange']()['start'])){const _0x32a4ff=_0x399e3d[_0x399e3d['length']-0x1],_0x3d270e='insertion'==_0x7cb52['type']?'add':'remove';_0x32a4ff&&'text'==_0x32a4ff['type']&&(_0x32a4ff[_0x3d270e]+='\x0a');}}}class Ct extends _0x495525{['afterInit'](){const _0x13dd85=this['editor'],_0x41a9af=_0x13dd85['plugins']['get']('TrackChangesEditing');_0x13dd85['commands']['get']('showAIAssistant')&&_0x41a9af['enableCommand']('showAIAssistant');}}class yt extends _0x495525{['afterInit'](){const _0x2ee140=this['editor'],_0x412e32=_0x2ee140['plugins']['get']('TrackChangesEditing');_0x2ee140['commands']['get']('toggleAi')&&_0x412e32['enableCommand']('toggleAi');}}class Nt extends _0x495525{['afterInit'](){const _0x59a33b=this['editor'],_0x4ce2a3=_0x59a33b['plugins']['get']('TrackChangesEditing');_0x59a33b['commands']['get']('aiQuickAction')&&_0x4ce2a3['enableCommand']('aiQuickAction');}}class Rt extends _0x495525{['afterInit'](){const _0x173105=this['editor'],_0x167b3e=_0x173105['locale'];if(!_0x173105['plugins']['has']('AlignmentEditing'))return;const _0x2e0431=_0x173105['plugins']['get']('TrackChangesEditing');_0x2e0431['enableDefaultAttributesIntegration']('alignment'),_0x2e0431['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x167b3e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fc21c=this['editor'],_0x16bfe8=_0x2fc21c['locale'];_0x2fc21c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b1bc=>{if('formatBlock'!=_0x13b1bc['type'])return;const {data:_0x53b1fb}=_0x13b1bc;if(_0x53b1fb&&'alignment'==_0x53b1fb['commandName']){const _0xafe116=_0x53b1fb['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x16bfe8,'*Format:*\x20%0',function(_0x35f1b6){switch(_0x35f1b6){case'left':return At(_0x16bfe8,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x16bfe8,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x16bfe8,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x16bfe8,'FORMAT_JUSTIFY_TEXT');}}(_0xafe116))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x495525{['afterInit'](){const _0x71f00c=this['editor'],_0x26e1dc=_0x71f00c['plugins']['get']('TrackChangesEditing'),_0x1d0511=_0x71f00c['locale'];for(const _0x5ec773 of St){if(!_0x71f00c['plugins']['has'](_0x5ec773))continue;const _0x28934d=_0x5ec773['slice'](0x0,-0x7)['toLowerCase'](),_0x109b7a='FORMAT_'+_0x28934d['toUpperCase']();_0x26e1dc['enableDefaultAttributesIntegration'](_0x28934d),_0x26e1dc['descriptionFactory']['registerAttributeLabel'](_0x28934d,At(_0x1d0511,_0x109b7a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xedf1ff=this['editor'],_0x1a2eeb=_0xedf1ff['locale'],_0x5af622=_0xedf1ff['plugins']['get']('TrackChangesEditing');function _0x20abfc(_0xb5db55,_0x140cf3){_0x5af622['descriptionFactory']['registerDescriptionCallback'](_0x3936a9=>{if('formatInline'!=_0x3936a9['type'])return;const {data:_0x3052c0}=_0x3936a9;return _0x3052c0&&_0x3052c0['commandName']===_0xb5db55?_0x3052c0['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1a2eeb,'*Format:*\x20%0',_0x140cf3)}:{'type':'format','content':At(_0x1a2eeb,'*Remove\x20format:*\x20%0',_0x140cf3)}:void 0x0;});}_0x20abfc('bold',At(_0x1a2eeb,'FORMAT_BOLD')),_0x20abfc('italic',At(_0x1a2eeb,'FORMAT_ITALIC')),_0x20abfc('underline',At(_0x1a2eeb,'FORMAT_UNDERLINE')),_0x20abfc('code',At(_0x1a2eeb,'FORMAT_CODE')),_0x20abfc('strikethrough',At(_0x1a2eeb,'FORMAT_STRIKETHROUGH')),_0x20abfc('subscript',At(_0x1a2eeb,'FORMAT_SUBSCRIPT')),_0x20abfc('superscript',At(_0x1a2eeb,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x495525{['afterInit'](){const _0x127299=this['editor'],_0x324315=_0x127299['locale'];if(!_0x127299['plugins']['has']('BlockQuoteEditing'))return;const _0x211e56=_0x127299['plugins']['get']('TrackChangesEditing'),_0x21d3e1=this['editor']['commands']['get']('blockQuote');_0x211e56['enableCommand']('blockQuote',(_0x394d25,_0x2ddb93={})=>{const _0x24ac7f=this['editor']['model']['document']['selection'],_0x553b65=_0x2ddb93&&void 0x0!==_0x2ddb93['forceValue']?_0x2ddb93['forceValue']:!_0x21d3e1['value'];let _0x127ea5=[];if(_0x553b65){const _0x379fe4=Array['from'](_0x24ac7f['getSelectedBlocks']())['filter'](_0x45bd4d=>wt(_0x45bd4d)||function(_0x2e851b,_0x3b7772){const _0x111062=_0x3b7772['checkChild'](_0x2e851b['parent'],'blockQuote'),_0x579858=_0x3b7772['checkChild'](['$root','blockQuote'],_0x2e851b);return _0x111062&&_0x579858;}(_0x45bd4d,this['editor']['model']['schema']));_0x127ea5=Tt(_0x379fe4,_0x127299['model']);}else{const _0x2a6a35=Array['from'](_0x24ac7f['getSelectedBlocks']())['filter'](_0xd3fc63=>wt(_0xd3fc63));_0x127ea5=Tt(_0x2a6a35,_0x127299['model']);}_0x127299['model']['change'](()=>{for(const _0x41be6e of _0x127ea5)_0x211e56['markBlockFormat'](_0x41be6e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x553b65}]});});}),_0x211e56['descriptionFactory']['registerDescriptionCallback'](_0x4a9675=>{const {data:_0x5ed313}=_0x4a9675;if(_0x5ed313&&'blockQuote'==_0x5ed313['commandName']){const _0x195f0e=At(_0x324315,'ELEMENT_BLOCK_QUOTE');return _0x5ed313['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x324315,'*Set\x20format:*\x20%0',_0x195f0e)}:{'type':'format','content':At(_0x324315,'*Remove\x20format:*\x20%0',_0x195f0e)};}});}}function wt(_0x58b35b){return'blockQuote'==_0x58b35b['parent']['name'];}class Bt extends _0x495525{['afterInit'](){const _0x98909b=this['editor'],_0xd179af=_0x98909b['locale'],_0x5c0d7a=_0x98909b['plugins']['get']('TrackChangesEditing');_0x98909b['plugins']['has']('BookmarkEditing')&&(_0x5c0d7a['enableCommand']('insertBookmark'),_0x5c0d7a['enableDefaultAttributesIntegration']('updateBookmark'),_0x5c0d7a['descriptionFactory']['registerDescriptionCallback'](_0x2375d6=>{if('insertion'!=_0x2375d6['type']&&'deletion'!=_0x2375d6['type']&&'attribute'!=_0x2375d6['type'])return;const _0x4341f4=_0x2375d6['getContainedElement']();if(null==_0x4341f4)return;if(!_0x4341f4['is']('element','bookmark'))return;const _0xe64727=_0x4341f4['getAttribute']('bookmarkId');if('insertion'==_0x2375d6['type'])return{'type':'insertion','content':At(_0xd179af,'*Insert:*\x20%0','\x22'+_0xe64727+'\x22\x20'+At(_0xd179af,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2375d6['type'])return{'type':'deletion','content':At(_0xd179af,'*Remove:*\x20%0','\x22'+_0xe64727+'\x22\x20'+At(_0xd179af,'ELEMENT_BOOKMARK'))};const {data:_0x21317b}=_0x2375d6;if(!_0x21317b||'bookmarkId'!=_0x21317b['key'])return;return{'type':'format','content':At(_0xd179af,'*Set\x20bookmark:*\x20%0','\x22'+_0x21317b['newValue']+'\x22')};}));}}class Ft extends _0x495525{['afterInit'](){const _0x4429c1=this['editor'];_0x4429c1['plugins']['has']('CaseChange')&&(_0x4429c1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4429c1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4429c1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x495525{['afterInit'](){const _0x360402=this['editor'];_0x360402['commands']['get']('ckbox')&&_0x360402['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x495525{['afterInit'](){const _0x451347=this['editor'];if(!_0x451347['plugins']['has']('CodeBlock'))return;const _0xd98d76=_0x451347['plugins']['get']('TrackChangesEditing'),_0x2db6cc=_0x451347['locale'],_0x3d6f56=_0x451347['config']['get']('codeBlock')['languages'],_0x48c13a=_0x451347['commands']['get']('codeBlock');_0xd98d76['enableCommand']('indentCodeBlock'),_0xd98d76['enableCommand']('outdentCodeBlock'),_0xd98d76['enableCommand']('codeBlock',(_0x50effb,_0x505082={})=>{const _0x3e1794=_0x451347['model'],_0x19ee85=_0x451347['model']['document']['selection'],_0x30fb53=_0x505082&&void 0x0!==_0x505082['forceValue']?_0x505082['forceValue']:!_0x48c13a['value'];let _0x385713;_0x505082['language']||(_0x505082['language']=_0x3d6f56[0x0]['language']),_0x385713=_0x30fb53?Array['from'](_0x19ee85['getSelectedBlocks']())['filter'](_0xec7e0e=>xt(_0xec7e0e)||function(_0x345b22,_0x502ff9){if(_0x345b22['is']('rootElement')||_0x502ff9['isLimit'](_0x345b22))return!0x1;return _0x502ff9['checkChild'](_0x345b22['parent'],'codeBlock');}(_0xec7e0e,_0x3e1794['schema'])):Array['from'](_0x19ee85['getSelectedBlocks']())['filter'](_0x18ee80=>xt(_0x18ee80));const _0x5ab0e7=Tt(_0x385713,_0x3e1794);_0x3e1794['change'](()=>{for(const _0x913544 of _0x5ab0e7)_0xd98d76['markBlockFormat'](_0x913544,{'commandName':'codeBlock','commandParams':[{..._0x505082,'forceValue':_0x30fb53}],'formatGroupId':'blockName'});});}),(_0xd98d76['descriptionFactory']['registerElementLabel']('codeBlock',_0x246b52=>At(_0x2db6cc,'ELEMENT_CODE_BLOCK',_0x246b52)),_0xd98d76['descriptionFactory']['registerDescriptionCallback'](_0x31de49=>{if('formatBlock'!=_0x31de49['type'])return;const _0x16c19a=_0x2db6cc['t'],{data:_0x4cdc53}=_0x31de49;if(!_0x4cdc53||'codeBlock'!=_0x4cdc53['commandName'])return;const _0x1f00c4=_0x4cdc53['commandParams'][0x0]['language'],_0x17a3db=_0x16c19a(_0x3d6f56['find'](_0x522b76=>_0x522b76['language']===_0x1f00c4)['label'])['toLowerCase']();return _0x4cdc53['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2db6cc,'*Set\x20format:*\x20%0',At(_0x2db6cc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x17a3db+')')}:{'type':'format','content':At(_0x2db6cc,'*Remove\x20format:*\x20%0',At(_0x2db6cc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x24fa4d){return'codeBlock'==_0x24fa4d['name'];}class Pt extends _0x495525{['afterInit'](){const _0x1b43de=this['editor'];if(!_0x1b43de['plugins']['has']('CommentsEditing'))return;_0x1b43de['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x495525{static get['requires'](){return[at];}['init'](){const _0x4723ed=this['editor'],_0x542a4d=_0x4723ed['plugins']['get']('TrackChangesEditing');_0x542a4d['enableCommand']('delete');const _0x144df8=_0x4723ed['commands']['get']('deleteForward');_0x542a4d['enableCommand']('deleteForward',(_0x24c703,_0x20281e={})=>{const _0x7de33c=_0x4723ed['model']['createSelection'](_0x4723ed['model']['document']['selection']);_0x7de33c['isCollapsed']&&_0x4723ed['model']['modifySelection'](_0x7de33c,{'direction':'forward','unit':_0x20281e['unit']});const _0x3cba0b=_0x7de33c['getFirstRange'](),_0x2a4060=_0xcc3cc7['fromRange'](_0x3cba0b);let _0x1b7227;_0x24c703(_0x20281e),_0x1b7227='$graveyard'==_0x2a4060['root']['rootName']?_0x4723ed['model']['createRange'](_0x3cba0b['start']):_0x4723ed['model']['createRange'](_0x2a4060['start'],_0x2a4060['end']),_0x2a4060['detach'](),_0x4723ed['model']['enqueueChange'](_0x144df8['buffer']['batch'],_0x1acbb4=>{_0x144df8['buffer']['lock'](),_0x1acbb4['setSelection'](_0x1acbb4['createRange'](_0x1b7227['end'])),_0x144df8['buffer']['unlock']();});});}}class Gt extends _0x495525{['afterInit'](){const _0x4c2a8e=this['editor'];if(!_0x4c2a8e['plugins']['has']('ListEditing'))return;const _0x5a61fa=_0x4c2a8e['locale'],_0x7e0d68=_0x4c2a8e['plugins']['get']('TrackChangesEditing'),_0xda335c=_0x4c2a8e['plugins']['has']('TodoListEditing'),_0x5c558a=!!_0x4c2a8e['config']['get']('list.multiBlock');function _0xbce072(_0xcfe699){return{'type':'format','content':''+At(_0x5a61fa,'*Set\x20format:*\x20%0',_0xcfe699)};}function _0x3a5d87(_0xc17d3a){return{'type':'format','content':''+At(_0x5a61fa,'*Remove\x20format:*\x20%0',_0xc17d3a)};}_0x7e0d68['enableDefaultAttributesIntegration']('numberedList'),_0x7e0d68['enableDefaultAttributesIntegration']('bulletedList'),_0x7e0d68['enableDefaultAttributesIntegration']('customNumberedList'),_0x7e0d68['enableDefaultAttributesIntegration']('customBulletedList'),_0x7e0d68['enableDefaultAttributesIntegration']('indentList'),_0x7e0d68['enableDefaultAttributesIntegration']('outdentList'),_0x7e0d68['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x7e0d68['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5c558a&&(_0x7e0d68['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x7e0d68['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xda335c&&(_0x7e0d68['enableDefaultAttributesIntegration']('todoList'),_0x7e0d68['enableDefaultAttributesIntegration']('checkTodoList'),_0x7e0d68['descriptionFactory']['registerDescriptionCallback'](_0xc32675=>{const {data:_0x8a36f9}=_0xc32675;if(_0x8a36f9&&'todoListChecked'==_0x8a36f9['key'])return{'type':'format','content':_0x8a36f9['newValue']?At(_0x5a61fa,'*Check\x20item*'):At(_0x5a61fa,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2da8be=>{if(_0x2da8be['batch']['isUndo'])return!0x1;let _0x1600ef=!0x1;const _0x165ab1=_0x7e0d68['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc9b63d=>'todoListChecked'===_0x7e0d68['_getAttributeKey'](_0xc9b63d));for(const _0xa66a5b of _0x165ab1){'todo'!=_0xa66a5b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x7e0d68['_findSuggestions'](_0xa66a5b['getFirstRange'](),'attribute')['find'](_0x571827=>'listType'===_0x7e0d68['_getAttributeKey'](_0x571827['suggestion']))||(_0x2da8be['removeMarker'](_0xa66a5b['getFirstMarker']()),_0x1600ef=!0x0));}return _0x1600ef;})),_0x7e0d68['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5a61fa,'FORMAT_INDENT'));const _0x2543d0={'type':'format','content':''};_0x7e0d68['descriptionFactory']['registerDescriptionCallback'](_0x570fc4=>{const {data:_0x445f10}=_0x570fc4;if(!_0x445f10||'listType'!=_0x445f10['key'])return;let _0x20f073=_0x570fc4['head'];for(;_0x20f073;){if(_0x20f073['data']&&(('listStyle'==_0x20f073['data']['key']||'listMarkerStyle'==_0x20f073['data']['key'])&&(_0x20f073['data']['newValue']&&'default'!=_0x20f073['data']['newValue']||'default'!=_0x20f073['data']['oldValue']&&!_0x445f10['newValue'])||!_0x5c558a&&_0x20f073['data']['key']==Ke))return _0x2543d0;_0x20f073=_0x20f073['next'];}if(null==_0x445f10['newValue'])switch(_0x445f10['oldValue']){case'bulleted':return _0x3a5d87(At(_0x5a61fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a5d87(At(_0x5a61fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a5d87(At(_0x5a61fa,'ELEMENT_TODO_LIST'));}switch(_0x445f10['newValue']){case'bulleted':return _0xbce072(At(_0x5a61fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xbce072(At(_0x5a61fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xbce072(At(_0x5a61fa,'ELEMENT_TODO_LIST'));}}),_0x7e0d68['descriptionFactory']['registerDescriptionCallback'](_0x1e4a62=>{const {data:_0x283db8}=_0x1e4a62;if(_0x283db8&&'listIndent'==_0x283db8['key'])return null==_0x283db8['newValue']||null==_0x283db8['oldValue']&&0x0==_0x283db8['newValue']?_0x2543d0:void 0x0;}),_0x7e0d68['descriptionFactory']['registerDescriptionCallback'](_0x48e21d=>{if('attribute'!=_0x48e21d['type'])return;const {data:_0x5eec31}=_0x48e21d;if(!_0x5eec31||'listItemId'!=_0x5eec31['key'])return;const _0x15bb89=Ht(_0x48e21d);return'newValue'==_0x15bb89?{'type':'format','content':At(_0x5a61fa,'*Merge:*\x20list\x20item')}:'oldValue'==_0x15bb89?{'type':'format','content':At(_0x5a61fa,'*Split:*\x20list\x20item')}:_0x2543d0;}),_0x4c2a8e['model']['document']['registerPostFixer'](_0x16fdc2=>this['listItemIdFixer'](_0x16fdc2)),_0x4c2a8e['model']['document']['registerPostFixer'](_0x36bf8d=>this['noTrackChangesFixer'](_0x36bf8d)),_0x4c2a8e['model']['document']['on']('change:data',(_0x21ea72,_0x51fa93)=>{if(_0x51fa93['isUndo']||!_0x51fa93['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2acfc5){if(_0x2acfc5['batch']['isUndo']||!_0x2acfc5['batch']['isLocal'])return!0x1;let _0x3bed48=!0x1;const _0x471ebe=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8934ad=>_0x8934ad['data']&&'listItemId'==_0x8934ad['data']['key'])['filter'](_0x337fad=>_0x337fad['data']['newValue']&&_0x337fad['data']['oldValue']);for(const _0x552755 of _0x471ebe)Ht(_0x552755)||(_0x2acfc5['removeMarker'](_0x552755['getFirstMarker']()),_0x3bed48=!0x0);return _0x3bed48;}['noTrackChangesFixer'](_0x420351){if(_0x420351['batch']['isUndo']||!_0x420351['batch']['isLocal'])return!0x1;const _0x363a57=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x363a57['trackChangesCommand']['value'])return!0x1;let _0x2ff0fc=!0x1;const _0x1e0984=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46978a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x289ca8=>'attribute'==_0x289ca8['type'])['filter'](_0x2ac56d=>_0x1e0984['includes'](_0x2ac56d['attributeKey']));if(0x0==_0x46978a['length'])return _0x2ff0fc;for(const _0x5dce09 of _0x46978a){const _0xbd239f=_0x363a57['_findSuggestions'](_0x5dce09['range'],'attribute')['filter'](_0x56bfcc=>!_0x56bfcc['meta']['isNextTo'])['map'](_0x3826ce=>_0x3826ce['suggestion'])['filter'](_0x3a4e0e=>{const _0x315fc7=_0x363a57['_getAttributeKey'](_0x3a4e0e);return _0x1e0984['includes'](_0x315fc7);});if(_0xbd239f['length']){for(const _0x26118d of _0xbd239f)_0x420351['removeMarker'](_0x26118d['getFirstMarker']());_0x2ff0fc=!0x0;}}return _0x2ff0fc;}['assureChains'](){const _0x20992c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13d989=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x11bb43;const _0x22e6c5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x181524=>{if(_0x181524['data']['oldRange']||!_0x181524['data']['newRange'])return null;if(!_0x181524['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x44a3}=_0x190ed2(_0x181524['name']);if(!_0x20992c['hasSuggestion'](_0x44a3))return null;const _0x26c774=_0x20992c['getSuggestion'](_0x44a3);return _0x13d989['includes'](_0x26c774['data']['key']);})['map'](_0x1005cc=>{const {id:_0x2d1d82}=_0x190ed2(_0x1005cc['name']),_0x5c22bc=_0x20992c['getSuggestion'](_0x2d1d82);return _0x11bb43=_0x5c22bc['attributes']['groupId'],_0x5c22bc['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x22e6c5['size'])return;const _0x2c2e03=_0x20992c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f8a25=>'attribute'==_0x2f8a25['type']&&_0x2f8a25['data']&&_0x13d989['includes'](_0x2f8a25['data']['key'])&&_0x2f8a25['attributes']['groupId']!=_0x11bb43)['map'](_0x29929c=>({'listItem':_0x29929c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x29929c['attributes']['groupId']})),_0x332a37=new Set();for(const {groupId:_0x517c47,listItem:_0x29029f}of _0x2c2e03)_0x22e6c5['has'](_0x29029f)&&_0x332a37['add'](_0x517c47);for(const _0x514f4c of _0x20992c['getSuggestions']())_0x332a37['has'](_0x514f4c['attributes']['groupId'])&&_0x514f4c['setAttribute']('groupId',_0x11bb43);}['_supportLegacySuggestions'](){const _0xc028a0=this['editor'],_0x3675fd=_0xc028a0['locale'],_0x2ea6f3=_0xc028a0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2ea6f3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x312fcf,_0x4866da){const _0x4346db=[];for(let _0x35ab26 of _0x312fcf)_0x35ab26['start']['nodeAfter']===_0x35ab26['end']['parent']&&(_0x35ab26=_0xc028a0['model']['createRange'](_0xc028a0['model']['createPositionAt'](_0x35ab26['start']['nodeAfter'],0x0))),_0x4346db['push'](_0x35ab26);_0xc028a0['model']['change'](_0x36ca8b=>{const _0x357e96=_0xc028a0['model']['document']['selection'],_0x5985c1=Array['from'](_0x357e96['getRanges']())['map'](_0x1cc56a=>_0xcc3cc7['fromRange'](_0x1cc56a));_0x36ca8b['setSelection'](_0x4346db),_0xc028a0['commands']['get'](_0x4866da['commandName'])['refresh'](),_0x4866da['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xc028a0['execute'](_0x4866da['commandName'],..._0x4866da['commandParams']),_0x36ca8b['setSelection'](_0x5985c1);for(const _0xae1841 of _0x5985c1)_0xae1841['detach']();});}),_0x2ea6f3['descriptionFactory']['registerElementLabel'](function(_0x11f08f){const _0x217d09=!_0xc028a0['model']['schema']['isObject'](_0x11f08f),_0xde176b=_0x11f08f['previousSibling'],_0x713e6e=_0x11f08f['nextSibling'],_0x373ed6=_0x11f08f['getAttribute']('listItemId'),_0x1ce362=!_0xde176b||_0xde176b['getAttribute']('listItemId')!==_0x373ed6,_0x1442e0=!_0x713e6e||_0x713e6e['getAttribute']('listItemId')!==_0x373ed6;return _0x217d09&&Boolean(_0x373ed6)&&_0x1ce362&&_0x1442e0;},_0x4fc891=>At(_0x3675fd,'ELEMENT_LIST_ITEM',_0x4fc891));}['_registerLegacyDescription'](){const _0x88f6c4=this['editor'],_0xf74a1c=_0x88f6c4['locale'];function _0xf034b9(_0x326254){const _0x50179f=_0x88f6c4['commands']['get']('bulletedList')['value'],_0x2a88a7=_0x88f6c4['commands']['get']('numberedList')['value'];return'numberedList'===_0x326254?_0x50179f:_0x2a88a7;}_0x88f6c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x112b34){if('formatBlock'!=_0x112b34['type'])return;const {data:_0x56dd94}=_0x112b34;if(!_0x56dd94)return;let _0x3d2e7b,_0x5cfe7b,_0x1a661a,_0x2fc63d;switch(_0x56dd94['commandName']){case'bulletedList':_0x1a661a=_0x56dd94['commandParams'][0x0]['forceValue'],_0x2fc63d=_0xf034b9(_0x56dd94['commandName']),_0x3d2e7b=_0x1a661a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fc63d&&_0x88f6c4['config']['get']('list.multiBlock')||(_0x3d2e7b='*Change\x20to:*\x20%0'),_0x5cfe7b={'type':'format','content':At(_0xf74a1c,_0x3d2e7b,At(_0xf74a1c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1a661a=_0x56dd94['commandParams'][0x0]['forceValue'],_0x2fc63d=_0xf034b9(_0x56dd94['commandName']),_0x3d2e7b=_0x1a661a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fc63d&&_0x88f6c4['config']['get']('list.multiBlock')||(_0x3d2e7b='*Change\x20to:*\x20%0'),_0x5cfe7b={'type':'format','content':At(_0xf74a1c,_0x3d2e7b,At(_0xf74a1c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d2e7b='*Indent:*\x20%0',_0x5cfe7b={'type':'format','content':At(_0xf74a1c,_0x3d2e7b,At(_0xf74a1c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d2e7b=function(_0x5d43d6){const _0x472420=_0x5d43d6['getFirstRange']();let _0x125730=_0x472420['start']['nodeAfter'];for(;_0x125730&&_0x472420['containsItem'](_0x125730);){if(_0x125730['getAttribute']('listIndent')>0x0)return!0x1;_0x125730=_0x125730['nextSibling'];}return!0x0;}(_0x112b34)?At(_0xf74a1c,'*Format:*\x20remove\x20from\x20%0',At(_0xf74a1c,function(_0x54f58b){return'ELEMENT_'+_0x54f58b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x112b34))):At(_0xf74a1c,'*Outdent:*\x20%0',At(_0xf74a1c,'ELEMENT_LIST_ITEM')),_0x5cfe7b={'type':'format','content':_0x3d2e7b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x56dd94['multipleBlocks']&&(_0x3d2e7b='*Merge:*\x20%0',_0x5cfe7b={'type':'deletion','content':At(_0xf74a1c,_0x3d2e7b,At(_0xf74a1c,'ELEMENT_LIST_ITEM'))});}return _0x5cfe7b;});}}function Ht(_0x2143a7){let _0x2bd90a=_0x2143a7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2bd90a;){const _0x24a770=_0x2bd90a['getAttribute']('listItemId');if(!_0x24a770)return!0x1;if(_0x24a770==_0x2143a7['data']['newValue'])return'newValue';if(_0x24a770==_0x2143a7['data']['oldValue'])return'oldValue';_0x2bd90a=_0x2bd90a['previousSibling'];}return!0x1;}class $t extends _0x495525{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x7743bb=this['editor']['config']['get']('list.properties'),_0x561076=this['editor']['plugins']['get']('TrackChangesEditing');_0x7743bb['styles']&&_0x561076['enableDefaultAttributesIntegration']('listStyle'),_0x7743bb['reversed']&&_0x561076['enableDefaultAttributesIntegration']('listReversed'),_0x7743bb['startIndex']&&_0x561076['enableDefaultAttributesIntegration']('listStart');const _0x454eb4={'type':'format','content':''};_0x561076['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31249c=this['editor']['locale'];_0x561076['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x31249c,'FORMAT_LIST_REVERSED')),_0x561076['descriptionFactory']['registerDescriptionCallback'](_0x56a296=>{const {data:_0xc13629}=_0x56a296;if(_0xc13629&&'listReversed'==_0xc13629['key'])return null==_0xc13629['newValue']||0x0==_0xc13629['newValue']&&null==_0xc13629['oldValue']?_0x454eb4:void 0x0;}),_0x561076['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x31249c,'FORMAT_LIST_START')),_0x561076['descriptionFactory']['registerDescriptionCallback'](_0x297ba6=>{const {data:_0x7f72f8}=_0x297ba6;if(_0x7f72f8&&'listStart'==_0x7f72f8['key'])return null==_0x7f72f8['newValue']||0x1==_0x7f72f8['newValue']&&null==_0x7f72f8['oldValue']?_0x454eb4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1d6669=>{if(_0x1d6669['batch']['isUndo'])return!0x1;let _0x5b6cb2=!0x1;const _0x4b7862=_0x561076['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37d1cf=>{const _0x58f0b6=_0x561076['_getAttributeKey'](_0x37d1cf);return'listStart'==_0x58f0b6||'listReversed'==_0x58f0b6;});for(const _0x20ca35 of _0x4b7862){const _0x5d1608=_0x20ca35['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5d1608||'customNumbered'==_0x5d1608)continue;_0x561076['_findSuggestions'](_0x20ca35['getFirstRange'](),'attribute')['find'](_0x355fec=>'listType'==_0x561076['_getAttributeKey'](_0x355fec['suggestion']))||(_0x1d6669['removeMarker'](_0x20ca35['getFirstMarker']()),_0x5b6cb2=!0x0);}return _0x5b6cb2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x16ba45){const _0x45657d=this['editor']['locale'],{data:_0x5b2025}=_0x16ba45,_0x30f60c={'type':'format','content':''};if(!_0x5b2025||'listStyle'!=_0x5b2025['key'])return;if(!_0x5b2025['oldValue'])return'default'==_0x5b2025['newValue']?_0x30f60c:{'type':'format','content':''+At(_0x45657d,'*Set\x20format:*\x20%0',At(_0x45657d,this['_getTranslationKeyForListStyle'](_0x5b2025['newValue'])))};if(!_0x5b2025['newValue']){if('default'==_0x5b2025['oldValue'])return _0x30f60c;let _0x118b96=_0x16ba45['head'];for(;_0x118b96;){if(_0x118b96['data']&&'listType'==_0x118b96['data']['key']&&_0x118b96['data']['newValue'])return _0x30f60c;_0x118b96=_0x118b96['next'];}return{'type':'format','content':''+At(_0x45657d,'*Remove\x20format:*\x20%0',At(_0x45657d,this['_getTranslationKeyForListStyle'](_0x5b2025['oldValue'])))};}if('default'!=_0x5b2025['newValue'])return{'type':'format','content':''+At(_0x45657d,'*Set\x20format:*\x20%0',At(_0x45657d,this['_getTranslationKeyForListStyle'](_0x5b2025['newValue'])))};let _0x118a68=_0x16ba45['head'];for(;_0x118a68;){if(_0x118a68['data']&&'listType'==_0x118a68['data']['key']&&_0x118a68['data']['newValue']&&_0x118a68['data']['oldValue'])return _0x30f60c;_0x118a68=_0x118a68['next'];}return{'type':'format','content':At(_0x45657d,'*Set\x20format:*\x20%0',At(_0x45657d,'ELEMENT_'+_0x16ba45['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2c98aa=this['editor'],_0x2b3596=_0x2c98aa['locale'];_0x2c98aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38ed42=>{if('formatBlock'!=_0x38ed42['type'])return;const {data:_0x1445c2}=_0x38ed42;if(!_0x1445c2)return;let _0x4c5291,_0xee2814;switch(_0x1445c2['commandName']){case'listStyle':_0x4c5291='*Change\x20to:*\x20%0',_0xee2814={'type':'format','content':At(_0x2b3596,_0x4c5291,At(_0x2b3596,this['_getTranslationKeyForListStyle'](_0x1445c2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c5291=_0x1445c2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xee2814={'type':'format','content':At(_0x2b3596,_0x4c5291)};break;case'listStart':_0x4c5291='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xee2814={'type':'format','content':At(_0x2b3596,_0x4c5291,_0x1445c2['commandParams'][0x0]['startIndex'])};}return _0xee2814;});}['_getTranslationKeyForListStyle'](_0x3f0a30){return'ELEMENT_'+function(_0x810d19){if(Wt['includes'](_0x810d19))return'bulleted';if(Vt['includes'](_0x810d19))return'numbered';return null;}(_0x3f0a30)['toUpperCase']()+'_LIST_'+_0x3f0a30['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 _0x495525{['afterInit'](){const _0x4110dc=this['editor'];_0x4110dc['commands']['get']('emoji')&&_0x4110dc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x495525{static get['requires'](){return[lt];}['init'](){const _0x531238=this['editor'],_0x57d9d5=_0x531238['plugins']['get']('TrackChangesEditing'),_0xbbdfad=_0x531238['commands']['get']('enter');_0x57d9d5['enableCommand']('enter',()=>{_0x531238['model']['change'](_0x5caf89=>{const _0x228e0f=_0x531238['model']['document']['selection'],_0x50e000=_0x228e0f['getFirstPosition'](),_0x50f2e5=_0xcc3cc7['fromRange'](_0x228e0f['getFirstRange']());if(_0xbbdfad['enterBlock'](_0x5caf89)){const _0xb3b0b2=_0x531238['model']['createPositionAt'](_0x50e000['parent']['nextSibling'],0x0),_0x209b69=_0x5caf89['createRange'](_0x50e000,_0xb3b0b2);_0x57d9d5['markInsertion'](_0x209b69);}else _0x5caf89['setSelection'](_0x5caf89['createRange'](_0x50f2e5['end']));_0x50f2e5['detach'](),_0xbbdfad['fire']('afterExecute',{'writer':_0x5caf89});});});}}class Kt extends _0x495525{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x579b3c=this['editor']['plugins']['get']('TrackChangesEditing');_0x579b3c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x579b3c['enableCommand']('findNext'),_0x579b3c['enableCommand']('findPrevious'),_0x579b3c['enableCommand']('replace'),_0x579b3c['enableCommand']('replaceAll');}['handleFindCommand'](_0x446d29,_0x4c35bd,_0x662582={}){const _0x4158c4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x446d29(_0x4d8534=>{let _0x25bbe3=('string'==typeof _0x4c35bd?_0x4158c4['findByTextCallback'](_0x4c35bd,_0x662582):_0x4c35bd)(_0x4d8534);Array['isArray'](_0x25bbe3)&&(_0x25bbe3={'results':_0x25bbe3,'searchText':'string'==typeof _0x4c35bd?_0x4c35bd:''});const _0x429d8e=_0x25bbe3['results']['filter'](_0x30c68d=>!0x1===this['_isInDeletionRange'](_0x30c68d,_0x4d8534['item']));return{..._0x25bbe3,'results':_0x429d8e};},_0x662582);}['_isInDeletionRange'](_0x4d86f0,_0x4be7e3){const _0xd278cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4be7e3,_0x4d86f0['start']),this['editor']['model']['createPositionAt'](_0x4be7e3,_0x4d86f0['end']));for(const _0x5f1524 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd278cb['getIntersection'](_0x5f1524['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 _0x495525{['afterInit'](){const _0x3b8ae9=this['editor']['locale'],_0x41570f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x154d75,commandName:_0x3d290a}of Xt)this['editor']['plugins']['has'](_0x154d75)&&_0x41570f['enableDefaultAttributesIntegration'](_0x3d290a);_0x41570f['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3b8ae9,'FORMAT_FONT_SIZE')),_0x41570f['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3b8ae9,'FORMAT_FONT_FAMILY')),_0x41570f['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3b8ae9,'FORMAT_FONT_COLOR')),_0x41570f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3b8ae9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa3c901=this['editor'],_0x1412fe=_0xa3c901['locale'];_0xa3c901['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeb2cae=>{const _0x4d5552=_0x1412fe['t'];if('formatInline'!=_0xeb2cae['type'])return;const {data:_0xe34bed}=_0xeb2cae;if(null!=_0xe34bed){if('fontSize'==_0xe34bed['commandName']){const _0x38c4d6=_0xe34bed['commandParams'][0x0]['value'];if(_0x38c4d6){const _0x297bca=_0x4d5552(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48bbb8=>_0x48bbb8['model']==_0x38c4d6)['title'])['toLowerCase']();return{'type':'format','content':At(_0x1412fe,'*Set\x20font\x20size:*\x20%0',_0x297bca)};}return{'type':'format','content':At(_0x1412fe,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe34bed['commandName']){const _0x4626e8=_0xe34bed['commandParams'][0x0]['value'];return _0x4626e8?{'type':'format','content':At(_0x1412fe,'*Set\x20font\x20family:*\x20%0',_0x4626e8)}:{'type':'format','content':At(_0x1412fe,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe34bed['commandName']){const _0x576ffc=_0xe34bed['commandParams'][0x0]['value'];if(_0x576ffc){const _0x2f3d81=_0x5675f6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a2a0d=>_0x4a2a0d['model']==_0x576ffc);let _0x2f8be6=_0x576ffc,_0x234193='';return _0x2f3d81&&(_0x2f8be6=_0x2f3d81['label'],_0x234193=_0x4d5552(_0x2f8be6)['toLowerCase']()),{'type':'format','content':At(_0x1412fe,'*Set\x20font\x20color:*\x20%0',_0x234193)['trim'](),'color':{'value':_0x576ffc,'title':_0x234193||_0x2f8be6}};}return{'type':'format','content':At(_0x1412fe,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe34bed['commandName']){const _0x240575=_0xe34bed['commandParams'][0x0]['value'];if(_0x240575){const _0x5c0452=_0x5675f6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2f2582=>_0x2f2582['model']==_0x240575);let _0xe3530c=_0x240575,_0xdd440b='';return _0x5c0452&&(_0xe3530c=_0x5c0452['label'],_0xdd440b=_0x4d5552(_0xe3530c)['toLowerCase']()),{'type':'format','content':At(_0x1412fe,'*Set\x20font\x20background\x20color:*\x20%0',_0xdd440b)['trim'](),'color':{'value':_0x240575,'title':_0xdd440b||_0xe3530c}};}return{'type':'format','content':At(_0x1412fe,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x495525{['afterInit'](){const {plugins:_0x1b206d}=this['editor'];_0x1b206d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1b206d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x35a161,plugins:_0x15d2af,commands:_0x47107d}=this['editor'],_0x2704e7=_0x15d2af['get']('TrackChangesEditing');_0x47107d['get']('footnotesStyle')&&_0x2704e7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x47107d['get']('footnotesStart')&&_0x2704e7['enableDefaultAttributesIntegration']('footnotesStart'),_0x2704e7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x35a161,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2704e7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x35a161,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x56d98e=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x18c0e4,commands:_0x3460bc}=this['editor'];_0x3460bc['get']('insertFootnote')&&_0x56d98e['enableCommand']('insertFootnote'),_0x56d98e['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1c0511=>At(_0x18c0e4,'ELEMENT_FOOTNOTE_REF',_0x1c0511)),_0x56d98e['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x271e01=>At(_0x18c0e4,'ELEMENT_FOOTNOTE_DEFINITION',_0x271e01)),_0x56d98e['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3ab475=>At(_0x18c0e4,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3ab475));}}class Qt extends _0x495525{['afterInit'](){const _0x2e8faa=this['editor'],_0x50ab3b=_0x2e8faa['plugins']['get']('TrackChangesEditing'),_0x3ccfc0=_0x2e8faa['commands']['get']('copyFormat'),_0x11489c=_0x2e8faa['commands']['get']('pasteFormat');_0x3ccfc0&&_0x11489c&&(_0x50ab3b['enableDefaultAttributesIntegration']('pasteFormat'),_0x50ab3b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d2ca1=this['editor'],_0x3ad133=_0x1d2ca1['locale'];_0x1d2ca1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x461a4b=>{if('formatBlock'!=_0x461a4b['type']&&'formatInline'!=_0x461a4b['type'])return;const {data:_0x23a90f}=_0x461a4b;if(_0x23a90f&&'pasteFormat'===_0x23a90f['commandName']){const _0x3c7501=[],_0x496568=_0x23a90f['commandParams'][0x0];for(const [_0x2c705b,_0x276e63]of Object['entries'](_0x496568))_0x3c7501['push'](Zt(_0x1d2ca1,_0x2c705b,_0x276e63));return _0x3c7501['length']?{'type':'format','content':At(_0x3ad133,'*Set\x20format\x20to:*\x20%0',_0x3c7501['join'](',\x20'))}:{'type':'format','content':At(_0x3ad133,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x5a2e26,_0x141750,_0x32aede){const _0x40c36f=_0x5a2e26['locale']['t'],_0x4930ba=_0x141750['split'](/(?=[A-Z])/)['join']('\x20'),_0x4c5513=_0x40c36f(_0x4930ba['charAt'](0x0)['toUpperCase']()+_0x4930ba['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x32aede)return _0x4c5513;if('fontColor'===_0x141750||'fontBackgroundColor'===_0x141750){const _0x31444f=_0x5675f6(_0x5a2e26['config']['get']('fontColor.colors'))['find'](_0xe0847b=>_0xe0847b['model']==_0x32aede);return _0x4c5513+'\x20('+(_0x31444f?_0x40c36f(_0x31444f['label'])['toLowerCase']():_0x32aede)+')';}if('fontSize'===_0x141750&&isNaN(parseFloat(_0x32aede))){const _0x1985f1=_0x5a2e26['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5a2e26['config']['get']('fontSize.options'))['find'](_0x2caa63=>_0x2caa63['model']==_0x32aede);return _0x4c5513+'\x20('+(_0x1985f1?_0x40c36f(_0x1985f1['title'])['toLowerCase']():_0x32aede)+')';}return _0x4c5513+'\x20('+_0x32aede+')';}class Jt extends _0x495525{['_headingOptions'];['afterInit'](){const _0x4c11cc=this['editor'];if(!_0x4c11cc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4c11cc['config']['get']('heading.options');const _0x135982=_0x4c11cc['locale'],_0x5b6c77=_0x4c11cc['plugins']['get']('TrackChangesEditing');_0x5b6c77['enableDefaultAttributesIntegration']('heading');for(const _0x3e6fdf of this['_headingOptions'])'paragraph'!=_0x3e6fdf['model']&&_0x5b6c77['descriptionFactory']['registerElementLabel'](_0x3e6fdf['model'],_0x550e26=>{const _0x5e8cc7=this['_getHeadingLevel'](_0x3e6fdf['model']);return null!==_0x5e8cc7?_0x38a982(_0x550e26,_0x5e8cc7):_0x1cc333(_0x550e26,_0x3e6fdf['title']);});function _0x38a982(_0x4b5dbc,_0x1da24f){return At(_0x135982,'ELEMENT_HEADING',[_0x4b5dbc,_0x1da24f]);}function _0x1cc333(_0x268ebd,_0x5db23e){return At(_0x135982,'ELEMENT_HEADING_CUSTOM',[_0x268ebd,_0x5db23e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3703bc=this['editor'],_0x154c12=_0x3703bc['locale'];function _0xb667f7(_0x17700b,_0x1dd505){return At(_0x154c12,'ELEMENT_HEADING_CUSTOM',[_0x17700b,_0x1dd505]);}_0x3703bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57b140=>{if('formatBlock'!=_0x57b140['type'])return;const {data:_0x9171f6}=_0x57b140;if(_0x9171f6&&'heading'==_0x9171f6['commandName']){const _0x5157bc=_0x9171f6['commandParams'][0x0]['value'],_0x30c90c=this['_getHeadingLevel'](_0x5157bc);if(null!==_0x30c90c)return{'type':'format','content':At(_0x154c12,'*Change\x20to:*\x20%0',(_0x394ac8=0x1,_0x34c06a=_0x30c90c,At(_0x154c12,'ELEMENT_HEADING',[_0x394ac8,_0x34c06a])))};const _0x32d050=this['_headingOptions']['find'](_0x191f0f=>_0x191f0f['model']===_0x5157bc)['title'];return{'type':'format','content':At(_0x154c12,'*Change\x20to:*\x20%0',_0xb667f7(0x1,_0x32d050))};}var _0x394ac8,_0x34c06a;});}['_getHeadingLevel'](_0x32cb10){const _0x2d94c0=_0x32cb10['match'](/^heading(\d+)/);if(_0x2d94c0)return _0x2d94c0[0x1];const _0x52aa15=this['_headingOptions']?.['find'](_0x4bfc71=>_0x4bfc71['model']==_0x32cb10);if(_0x52aa15&&_0x52aa15['view']){const _0x30d6aa=_0x52aa15['view'],_0x527149=(_0x30d6aa['name']??_0x30d6aa)['match'](/^h(\d+)/);if(_0x527149)return _0x527149[0x1];}return null;}}class te extends _0x495525{['afterInit'](){const _0x252f10=this['editor'];if(!_0x252f10['plugins']['has']('HighlightEditing'))return;const _0x4960e9=_0x252f10['plugins']['get']('TrackChangesEditing'),_0x3a0e81=_0x252f10['locale'];_0x4960e9['enableDefaultAttributesIntegration']('highlight'),_0x4960e9['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x3a0e81,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36bf46=this['editor'],_0xf0873a=_0x36bf46['locale'];_0x36bf46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217b48=>{if('formatInline'!=_0x217b48['type'])return;const {data:_0x3f972d}=_0x217b48;if(_0x3f972d&&'highlight'==_0x3f972d['commandName']){const _0x3bcfc9=_0xf0873a['t'],_0x479bc4=_0x3f972d['commandParams'][0x0]['value'];if(_0x479bc4){const _0x501958=_0x36bf46['config']['get']('highlight.options')['find'](_0x4f8557=>_0x4f8557['model']==_0x479bc4),_0x168edf=_0x3bcfc9(_0x501958['title'])['toLowerCase']();return{'type':'format','content':At(_0xf0873a,'*Set\x20highlight:*\x20%0',_0x168edf),'color':{'value':_0x501958['color'],'title':_0x501958['title']}};}return{'type':'format','content':At(_0xf0873a,'*Remove\x20highlight*',At(_0xf0873a,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x495525{['afterInit'](){const _0x563d9c=this['editor'];if(!_0x563d9c['plugins']['has']('HorizontalLineEditing'))return;_0x563d9c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x196274=_0x563d9c['plugins']['get']('TrackChangesEditing'),_0x57adc7=_0x563d9c['locale'];_0x196274['descriptionFactory']['registerElementLabel']('horizontalLine',_0x478a91=>At(_0x57adc7,'ELEMENT_HORIZONTAL_LINE',_0x478a91));}}class ne extends _0x495525{['afterInit'](){const _0x542b6d=this['editor'];if(!_0x542b6d['plugins']['has']('HtmlEmbed'))return;const _0x356ea6=_0x542b6d['plugins']['get']('TrackChangesEditing'),_0x4c5977=_0x542b6d['locale'];_0x356ea6['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e5f8d=>At(_0x4c5977,'ELEMENT_HTML_EMBED',_0x4e5f8d)),_0x356ea6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x356ea6['descriptionFactory']['registerDescriptionCallback'](_0x550450=>{if('attribute'!=_0x550450['type'])return;const {data:_0x2c8476}=_0x550450;if(_0x2c8476&&'value'==_0x2c8476['key']&&_0x550450['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4964ff=At(_0x4c5977,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x4c5977,'*Change\x20%0\x20content*',_0x4964ff)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34a274=this['editor'],_0x3e2b00=_0x34a274['locale'];_0x34a274['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf88437=>{if('formatBlock'!=_0xf88437['type'])return;const {data:_0x46e121}=_0xf88437;if(_0x46e121&&'htmlEmbed'==_0x46e121['commandName']){const _0x518b36=At(_0x3e2b00,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x3e2b00,'*Change\x20%0\x20content*',_0x518b36)};}});}}class ie extends _0x495525{['afterInit'](){const _0x82741c=this['editor'];if(!_0x82741c['plugins']['has']('ImageEditing'))return;const _0x108ca6=_0x82741c['plugins']['get']('TrackChangesEditing'),_0xa17da4=_0x82741c['plugins']['get']('ImageUtils'),_0x5553b7=_0x82741c['locale'];_0x108ca6['enableCommand']('insertImage'),_0x108ca6['descriptionFactory']['registerElementLabel']('imageBlock',_0x3a596e=>At(_0x5553b7,'ELEMENT_IMAGE',_0x3a596e)),_0x108ca6['descriptionFactory']['registerElementLabel']('imageInline',_0x101b4d=>At(_0x5553b7,'ELEMENT_INLINE_IMAGE',_0x101b4d)),_0x108ca6['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x5553b7,'ELEMENT_CAPTION')),_0x82741c['plugins']['has']('ImageUploadEditing')&&_0x108ca6['enableCommand']('uploadImage'),_0x82741c['plugins']['has']('ImageBlockEditing')&&_0x82741c['plugins']['has']('ImageInlineEditing')&&(_0x108ca6['enableCommand']('imageTypeInline',(_0x5d4fa7,_0x23228f)=>{const _0x744e9e=_0xa17da4['getClosestSelectedImageElement'](_0x82741c['model']['document']['selection']);_0x82741c['model']['change'](()=>{_0x108ca6['markBlockFormat'](_0x744e9e,{'commandName':'imageTypeInline','commandParams':[_0x23228f]},[],'convertBlockImageToInline');});}),_0x108ca6['enableCommand']('imageTypeBlock',(_0x534bcd,_0x3e361e)=>{_0x82741c['model']['change'](_0x1584d3=>{let _0xc26195=_0xa17da4['getClosestSelectedImageElement'](_0x82741c['model']['document']['selection']),_0x25fdd8=_0x1584d3['createRangeOn'](_0xc26195);const _0x315dc0=tt['fromPosition'](_0x25fdd8['start'],'toPrevious'),_0x58447e=tt['fromPosition'](_0x25fdd8['end'],'toNext');_0x108ca6['forceDefaultExecution'](()=>_0x534bcd(_0x3e361e)),_0xc26195=_0xa17da4['getClosestSelectedImageElement'](_0x82741c['model']['document']['selection']),_0x25fdd8=_0x1584d3['createRangeOn'](_0xc26195);const _0xf2a383=_0x1584d3['createRange'](_0x315dc0,_0x58447e);_0x315dc0['detach'](),_0x58447e['detach'](),_0x108ca6['markBlockFormat'](_0xc26195,{'commandName':'imageTypeInline','commandParams':[_0x3e361e]},[],'convertInlineImageToBlock'),_0xf2a383['start']['isBefore'](_0x25fdd8['start'])&&_0x108ca6['markInsertion'](_0x1584d3['createRange'](_0xf2a383['start'],_0x25fdd8['start']),'convertInlineImageToBlock'),_0x25fdd8['end']['isBefore'](_0xf2a383['end'])&&_0x108ca6['markInsertion'](_0x1584d3['createRange'](_0x25fdd8['end'],_0xf2a383['end']),'convertInlineImageToBlock');});}),_0x108ca6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x108ca6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x108ca6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x108ca6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x108ca6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x108ca6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x57dd15])=>{const _0x4d5599=_0x108ca6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4001c2=_0x57dd15['start'],_0x301117=_0x57dd15['end'];const _0x339c24=_0x82741c['model']['schema']['getNearestSelectionRange'](_0x4001c2,'backward'),_0x3227b6=_0x82741c['model']['schema']['getNearestSelectionRange'](_0x301117,'forward');_0x339c24['isCollapsed']&&(_0x4001c2=_0x339c24['start']),_0x3227b6['isCollapsed']&&(_0x301117=_0x3227b6['end']),_0x4d5599([_0x82741c['model']['createRange'](_0x4001c2,_0x301117)]);}),_0x108ca6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3bea55),_0x108ca6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3bea55)),_0x82741c['plugins']['has']('ImageCaptionEditing')&&(_0x108ca6['enableCommand']('toggleImageCaption',(_0x2aff62,_0x59d8fa)=>{const _0x34aa7d=_0x82741c['plugins']['get']('ImageCaptionUtils');let _0x5362ba=_0xa17da4['getClosestSelectedImageElement'](_0x82741c['model']['document']['selection']),_0x30e991=_0x34aa7d['getCaptionFromImageModelElement'](_0x5362ba);_0x82741c['model']['change'](()=>{if(_0x30e991)return void _0x108ca6['markDeletion'](_0x82741c['model']['createRangeOn'](_0x30e991));const _0x22ae00=_0xa17da4['isBlockImage'](_0x5362ba);_0x2aff62(_0x59d8fa),_0x5362ba=_0xa17da4['getClosestSelectedImageElement'](_0x82741c['model']['document']['selection']),_0x30e991=_0x34aa7d['getCaptionFromImageModelElement'](_0x5362ba),_0x108ca6['markInsertion'](_0x82741c['model']['createRangeOn'](_0x30e991),_0x22ae00?null:'imageCaption');});}),_0x108ca6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3bea55));const _0x15ea04=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x14ad52(_0x39b6e9,_0x4ee5be){const _0x37ef04=_0x15ea04['findIndex'](({type:_0x12ef66,subType:_0x48da76})=>_0x39b6e9['type']==_0x12ef66&&_0x39b6e9['subType']==_0x48da76),_0xadb95c=_0x15ea04['findIndex'](({type:_0x3abfa8,subType:_0x95463c})=>_0x4ee5be['type']==_0x3abfa8&&_0x4ee5be['subType']==_0x95463c);if(_0x37ef04<0x0||_0xadb95c<0x0)return!0x1;const _0x59e185=_0x39b6e9['getFirstRange'](),_0x4aed02=_0x4ee5be['getFirstRange']();if((0x0==_0x37ef04||0x1==_0x37ef04)&&0x2==_0xadb95c&&_0x59e185['isIntersecting'](_0x4aed02))return!0x0;if(0x2==_0x37ef04&&0x3==_0xadb95c){const _0x456b0b=_0x108ca6['_findSuggestions'](_0x59e185,'insertion')['filter'](({suggestion:_0x985b22,meta:_0x4e21f5})=>_0x4e21f5['isOwn']&&'convertInlineImageToBlock'==_0x985b22['subType']);if(_0x456b0b['length']>0x1&&_0x4aed02['end']['isEqual'](_0x59e185['start']))return!0x0;if(0x1==_0x456b0b['length']&&(_0x59e185['start']['isEqual'](_0x4aed02['end'])||_0x59e185['end']['isEqual'](_0x4aed02['start'])))return!0x0;}if(0x3==_0x37ef04&&0x3==_0xadb95c&&_0x59e185['start']['isBefore'](_0x4aed02['start'])){const _0x52293d=_0x59e185['end']['nodeAfter'],_0x487b86=_0x4aed02['start']['nodeBefore'];return _0xa17da4['isBlockImage'](_0x52293d)&&_0x52293d===_0x487b86;}return!0x1;}function _0x3bea55(_0x1933ea,_0x295bcc){return _0x14ad52(_0x1933ea,_0x295bcc)?[_0x1933ea,_0x295bcc]:_0x14ad52(_0x295bcc,_0x1933ea)?[_0x295bcc,_0x1933ea]:null;}_0x82741c['plugins']['has']('ImageResize')&&(_0x108ca6['enableDefaultAttributesIntegration']('resizeImage'),_0x108ca6['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x5553b7,'FORMAT_IMAGE_SIZE'))),_0x82741c['plugins']['has']('ImageTextAlternativeEditing')&&_0x108ca6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x82741c['plugins']['has']('PictureEditing')&&_0x108ca6['descriptionFactory']['registerDescriptionCallback'](_0x3a42ce=>{if('attribute'!=_0x3a42ce['type'])return;const {data:_0x3f592a}=_0x3a42ce;return _0x3f592a&&'sources'==_0x3f592a['key']?{'type':'format','content':''}:void 0x0;}),_0x82741c['plugins']['has']('ImageSizeAttributes')&&_0x108ca6['descriptionFactory']['registerDescriptionCallback'](_0x5d9a84=>{if('attribute'!=_0x5d9a84['type'])return;const {data:_0x9c19d7}=_0x5d9a84;return!_0x9c19d7||'width'!=_0x9c19d7['key']&&'height'!=_0x9c19d7['key']?void 0x0:{'type':'format','content':''};}),_0x108ca6['descriptionFactory']['registerDescriptionCallback'](_0x115bbd=>{if(!!_0x15ea04['find'](({type:_0xc8a3b,subType:_0xb3fa32})=>_0x115bbd['type']==_0xc8a3b&&_0x115bbd['subType']==_0xb3fa32))return _0x115bbd['previous']?{}:void 0x0;}),_0x108ca6['descriptionFactory']['registerDescriptionCallback'](_0x5f583e=>{if('insertion'==_0x5f583e['type']||'deletion'==_0x5f583e['type']){const _0x4db0e7=_0x5f583e['getContainedElement']();if(_0x4db0e7&&_0x4db0e7['is']('element','caption'))return{'type':'insertion'==_0x5f583e['type']?'addObject':'removeObject','element':_0x4db0e7,'quantity':0x1};}}),_0x108ca6['descriptionFactory']['registerDescriptionCallback'](_0x5f2c1d=>'formatBlock'==_0x5f2c1d['type']&&'convertInlineImageToBlock'==_0x5f2c1d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f2c1d['type']&&'convertBlockImageToInline'==_0x5f2c1d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x108ca6['descriptionFactory']['registerDescriptionCallback'](_0x2593b6=>{if('attribute'!=_0x2593b6['type'])return;const {data:_0x5e0280}=_0x2593b6;if(!_0x5e0280||'alt'!=_0x5e0280['key'])return;const _0xaff1a2=_0x5e0280['newValue'];return _0xaff1a2?{'type':'format','content':At(_0x5553b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xaff1a2+'\x22')}:{'type':'format','content':At(_0x5553b7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5575fb=this['editor'],_0xf1e7c1=_0x5575fb['locale'];_0x5575fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56f3e6=>{if('formatBlock'!=_0x56f3e6['type']&&'formatInline'!=_0x56f3e6['type'])return;const {data:_0x19b919}=_0x56f3e6;if(_0x19b919){if('imageTextAlternative'==_0x19b919['commandName']){const _0x48ee97=_0x19b919['commandParams'][0x0]['newValue'];return _0x48ee97?{'type':'format','content':At(_0xf1e7c1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48ee97+'\x22')}:{'type':'format','content':At(_0xf1e7c1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x19b919['commandName']){const _0x1f60f4=_0x19b919['commandParams'][0x0]['width'];return _0x1f60f4?{'type':'format','content':At(_0xf1e7c1,'*Set\x20image\x20width:*\x20%0',_0x1f60f4)}:{'type':'format','content':At(_0xf1e7c1,'*Reset\x20image\x20width*')};}}});}}class se extends _0x495525{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x56cd7b=this['editor']['locale'],_0x286979=this['editor']['plugins']['get']('TrackChangesEditing');_0x286979['enableDefaultAttributesIntegration']('replaceImageSource'),_0x286979['descriptionFactory']['registerDescriptionCallback'](_0x94d152=>{if('attribute'!=_0x94d152['type'])return;const {data:_0x14c5c1}=_0x94d152;return _0x14c5c1&&'src'==_0x14c5c1['key']?_0x14c5c1['newValue']&&_0x14c5c1['oldValue']?{'type':'format','content':At(_0x56cd7b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x301517=this['editor']['plugins']['get']('TrackChangesEditing');_0x301517['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x301517['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x301517['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x301517['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19ad57=this['editor'],_0x102829=_0x19ad57['locale'];_0x19ad57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b604d=>{if('formatBlock'!=_0x5b604d['type']&&'formatInline'!=_0x5b604d['type'])return;const {data:_0xf40b23}=_0x5b604d;if(!_0xf40b23||'replaceImageSource'!=_0xf40b23['commandName'])return;return{'type':'format','content':At(_0x102829,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x495525{['afterInit'](){const _0x3957e6=this['editor'];if(!_0x3957e6['plugins']['has']('ImageStyleEditing'))return;const _0x118746=_0x3957e6['plugins']['get']('TrackChangesEditing'),_0x45134b=_0x3957e6['plugins']['get']('ImageUtils'),_0x4a493d={};_0x118746['enableCommand']('imageStyle',(_0x1974e7,_0x569b35)=>{const _0x58230a=_0x3957e6['plugins']['get']('Users')['me'],_0x245240=_0x3957e6['commands']['get']('imageStyle');let _0x2bb1a9=_0x45134b['getClosestSelectedImageElement'](_0x3957e6['model']['document']['selection']),_0x2e29f2=_0x3957e6['model']['createRangeOn'](_0x2bb1a9),_0xf9018f=_0x245240['value'];if(_0xf9018f==_0x569b35['value'])return;const _0x56a06a={'commandName':'imageStyle','commandParams':[_0x569b35],'formatGroupId':_0x58e93c()};_0x3957e6['model']['change'](()=>{if(_0x118746['getSuggestions']()['filter'](_0x592994=>_0x592994['isInContent']&&_0x58230a==_0x592994['author']&&('formatBlock'==_0x592994['type']||'formatInline'==_0x592994['type'])&&('imageStylePreApply'==_0x592994['subType']||'imageStylePostApply'==_0x592994['subType'])&&_0x592994['getFirstRange']()['isEqual'](_0x2e29f2))['forEach'](_0x1affed=>_0x118746['discardSuggestion'](_0x1affed['head'])),_0x2bb1a9=_0x45134b['getClosestSelectedImageElement'](_0x3957e6['model']['document']['selection']),_0x2e29f2=_0x3957e6['model']['createRangeOn'](_0x2bb1a9),_0x245240['refresh'](),_0x3957e6['commands']['get']('imageTypeInline')['refresh'](),_0x3957e6['commands']['get']('imageTypeBlock')['refresh'](),_0xf9018f=_0x245240['value'],_0xf9018f!=_0x569b35['value'])return _0x45134b['isInlineImage'](_0x2bb1a9)&&_0x245240['shouldConvertImageType'](_0x569b35['value'],_0x2bb1a9)?(_0x1974e7({..._0x569b35,'setImageSizes':!0x1}),_0x2bb1a9=_0x45134b['getClosestSelectedImageElement'](_0x3957e6['model']['document']['selection']),void _0x118746['markBlockFormat'](_0x2bb1a9,{..._0x56a06a,'commandReversedParams':[{'value':_0xf9018f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45134b['isBlockImage'](_0x2bb1a9)?_0x118746['markBlockFormat'](_0x2bb1a9,_0x56a06a,[],'imageStylePostApply'):_0x118746['markInlineFormat'](_0x2e29f2,_0x56a06a,'imageStylePostApply'));});});for(const _0x5a6cb2 of _0x3957e6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4a493d[_0x5a6cb2['name']]=_0x5a6cb2['title']['toLowerCase']();_0x118746['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x118746['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x118746['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x118746['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x416669])=>{_0x45134b['setImageNaturalSizeAttributes'](_0x416669['getContainedElement']());}),_0x118746['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xfa615c,_0x1f3132)=>{_0x118746['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xfa615c,{'commandName':_0x1f3132['commandName'],'commandParams':_0x1f3132['commandReversedParams']});}),_0x118746['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2f4ed8,_0xb50bdf){if(_0x44dad1(_0x2f4ed8,_0xb50bdf))return[_0x2f4ed8,_0xb50bdf];if(_0x44dad1(_0xb50bdf,_0x2f4ed8))return[_0xb50bdf,_0x2f4ed8];return null;});const _0x499164=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44dad1(_0x35c153,_0x220273){const _0x28709a=_0x499164['findIndex'](({type:_0x4affac,subType:_0x4fa67f})=>_0x35c153['type']==_0x4affac&&_0x35c153['subType']==_0x4fa67f),_0xe8d2e9=_0x499164['findIndex'](({type:_0xcd0c34,subType:_0x33a04e})=>_0x220273['type']==_0xcd0c34&&_0x220273['subType']==_0x33a04e);if(_0x28709a<0x0||_0xe8d2e9<0x0)return!0x1;const _0x5a2282=_0x35c153['getFirstRange'](),_0x11dacb=_0x220273['getFirstRange']();if((0x0==_0x28709a||0x1==_0x28709a)&&0x2==_0xe8d2e9&&_0x5a2282['isIntersecting'](_0x11dacb))return!0x0;if(0x2==_0x28709a&&0x3==_0xe8d2e9){const _0x2f177f=_0x118746['_findSuggestions'](_0x5a2282,'insertion')['filter'](({suggestion:_0x26d89e,meta:_0x2109d1})=>_0x2109d1['isOwn']&&'convertInlineImageToBlock'==_0x26d89e['subType']);if(_0x2f177f['length']>0x1&&_0x11dacb['end']['isEqual'](_0x5a2282['start']))return!0x0;if(0x1==_0x2f177f['length']&&(_0x5a2282['start']['isEqual'](_0x11dacb['end'])||_0x5a2282['end']['isEqual'](_0x11dacb['start'])))return!0x0;}if(0x3==_0x28709a&&0x3==_0xe8d2e9&&_0x5a2282['start']['isBefore'](_0x11dacb['start'])){const _0xd05fba=_0x5a2282['end']['nodeAfter'],_0xa826b5=_0x11dacb['start']['nodeBefore'];return _0x45134b['isBlockImage'](_0xd05fba)&&_0xd05fba===_0xa826b5;}return!0x1;}_0x3957e6['model']['document']['registerPostFixer'](()=>{let _0x342638=!0x1;const _0x1022fc=Array['from'](_0x3957e6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b8075,data:_0x52b211}of _0x1022fc){const {group:_0x5052f1,type:_0x281726,subType:_0x4117cc,id:_0xbecbeb}=_0x190ed2(_0x1b8075);if('suggestion'==_0x5052f1&&_0x118746['hasSuggestion'](_0xbecbeb)){if('formatBlock'==_0x281726&&('imageStylePreApply'==_0x4117cc||'imageStylePostApply'==_0x4117cc)){const _0x1e7160=_0x118746['getSuggestion'](_0xbecbeb);if(_0x52b211['newRange']){const _0x110a13=_0x1e7160['getFirstRange']()['getContainedElement']();if(_0x45134b['isBlockImage'](_0x110a13))continue;_0x118746['discardSuggestion'](_0x1e7160),_0x342638=!0x0;}}if('insertion'==_0x281726&&'imageCaption'==_0x4117cc&&!_0x52b211['newRange']){const _0x948aef=_0x118746['getSuggestion'](_0xbecbeb);_0x948aef['next']&&_0x948aef['next']['isInContent']&&(_0x118746['discardSuggestion'](_0x948aef['next']),_0x342638=!0x0);}}}return _0x342638;}),this['_registerLegacyDescription'](_0x4a493d);}['_registerLegacyDescription'](_0x2bddbe){const _0x1e79bb=this['editor'],_0x3acb79=_0x1e79bb['locale'];_0x1e79bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a0c52=>{if('formatBlock'!=_0x5a0c52['type']&&'formatInline'!=_0x5a0c52['type'])return;const {data:_0x3e9ead}=_0x5a0c52;if(!_0x3e9ead||'imageStyle'!=_0x3e9ead['commandName'])return;const _0x439caf=_0x3e9ead['commandParams'][0x0]['value'];return _0x4a5781('side'===_0x439caf?At(_0x3acb79,'FORMAT_SIDE_IMAGE'):_0x2bddbe[_0x439caf]||_0x439caf);function _0x4a5781(_0xce1c37){return{'type':'format','content':At(_0x3acb79,'*Format:*\x20%0',_0xce1c37)};}});}}class oe extends _0x495525{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x11b564){super(_0x11b564),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x7d67f0=this['editor'],_0x461aa3=_0x7d67f0['commands']['get']('importWord'),_0x36df7f=_0x7d67f0['commands']['get']('trackChanges');_0x461aa3&&(_0x461aa3['on']('execute',(_0x248fea,[,_0x615bc3])=>{this['_trackChangesValueDuringImport']=_0x36df7f['value'],_0x615bc3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x461aa3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x461aa3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x36df7f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x7d67f0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3a30d3,_0x2f0aac){const {suggestions:_0x5f00de}=_0x2f0aac,_0x37bc19=this['editor']['commands']['get']('trackChanges'),_0xc58703=_0x37bc19['value'];this['_trackChangesValueDuringImport']!==_0xc58703&&(_0x37bc19['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f00de&&_0x5f00de['forEach'](({id:_0x3e33cd,type:_0x40304e,author:_0x539f66,created_at:_0x5dc5eb})=>{const _0x2fd255={'id':_0x3e33cd,'type':_0x40304e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x539f66,'createdAt':_0x5dc5eb?new Date(_0x5dc5eb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2fd255);});}}class ae extends _0x495525{['afterInit'](){const _0x193eb9=this['editor'],_0x162692=_0x193eb9['plugins']['get']('TrackChangesEditing');if(_0x193eb9['plugins']['has']('IndentEditing')&&(_0x162692['enableCommand']('indent'),_0x162692['enableCommand']('outdent')),_0x193eb9['plugins']['has']('IndentBlock')){for(const _0x1af326 of['indentBlock','outdentBlock'])_0x162692['enableDefaultAttributesIntegration'](_0x1af326);if(_0x193eb9['plugins']['has']('ListEditing')){for(const _0x5935ae of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x162692['enableDefaultAttributesIntegration'](_0x5935ae);}}const _0x49f509=_0x193eb9['locale'];_0x162692['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x49f509,'FORMAT_INDENT')),_0x162692['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x49f509,'FORMAT_INDENT')),_0x162692['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x49f509,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4994dc=this['editor'],_0x266d78=_0x4994dc['locale'],_0x3a3789=_0x4994dc['plugins']['get']('TrackChangesEditing');_0x3a3789['descriptionFactory']['registerDescriptionCallback'](_0xcb7e69=>{if('formatBlock'!=_0xcb7e69['type'])return;const {data:_0x57e2b6}=_0xcb7e69;if(!_0x57e2b6)return;if('indentBlock'!=_0x57e2b6['commandName']&&'outdentBlock'!=_0x57e2b6['commandName'])return;const _0x4627e4=_0xcb7e69['getItems']()[0x0],_0xd0513=_0x3a3789['descriptionFactory']['getItemLabel'](_0x4627e4);return'indentBlock'==_0x57e2b6['commandName']?{'type':'format','content':At(_0x266d78,'*Indent:*\x20%0',_0xd0513)}:'outdentBlock'==_0x57e2b6['commandName']?{'type':'format','content':At(_0x266d78,'*Outdent:*\x20%0',_0xd0513)}:void 0x0;});}}class ce extends _0x495525{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x495525{['afterInit'](){const _0x12464a=this['editor'];if(!_0x12464a['plugins']['has']('LinkEditing'))return;const _0x1a707b=_0x12464a['plugins']['get']('TrackChangesEditing'),_0x24fc05=_0x12464a['commands']['get']('link');_0x1a707b['enableDefaultAttributesIntegration']('link'),_0x1a707b['enableDefaultAttributesIntegration']('unlink');for(const _0x2cd256 of _0x24fc05['manualDecorators'])_0x1a707b['descriptionFactory']['registerAttributeLabel'](_0x2cd256['id'],'link\x20('+_0x2cd256['label']['toLowerCase']()+')');_0x1a707b['descriptionFactory']['registerDescriptionCallback'](_0x9da86f=>{if('attribute'!=_0x9da86f['type'])return;const {data:_0x18aba2}=_0x9da86f;if(!_0x18aba2||'linkHref'!=_0x18aba2['key'])return;const _0x5e175a=_0x18aba2['newValue'],_0x3e1dd7=_0x12464a['locale'];return{'type':'format','content':null==_0x5e175a?At(_0x3e1dd7,'*Remove\x20link*'):At(_0x3e1dd7,'*Set\x20link:*\x20%0','\x22'+_0x5e175a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b33aa=this['editor'],_0x59f09b=_0x5b33aa['locale'];_0x5b33aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x343858=>{if('formatInline'!=_0x343858['type'])return;const {data:_0x1122c9}=_0x343858;if(_0x1122c9){if('link'==_0x1122c9['commandName']){const _0x4b895a=_0x1122c9['commandParams'][0x0];return{'type':'format','content':At(_0x59f09b,'*Set\x20link:*\x20%0','\x22'+_0x4b895a+'\x22')};}return'unlink'==_0x1122c9['commandName']?{'type':'format','content':At(_0x59f09b,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x495525{['afterInit'](){const _0x3bc943=this['editor'],_0xbcde6=_0x3bc943['locale'];if(!_0x3bc943['plugins']['has']('LegacyListEditing'))return;const _0x56adcb=_0x3bc943['plugins']['get']('TrackChangesEditing'),_0x3a1709=_0x3bc943['plugins']['has']('LegacyTodoListEditing');function _0x2fbbdc(_0x2a2be2){return()=>{const _0x3863df=_0x3bc943['model']['document']['selection'],_0xd4461d=_0x3bc943['commands']['get'](_0x2a2be2);if(_0xd4461d['value'])return void _0x3bc943['execute']('paragraph',{});const _0x21c45e=_0x2a2be2['slice'](0x0,-0x4),_0x1cbccb=function(_0x420a45,_0x387d8c,_0x17c165){let _0xaa60c8=Array['from'](_0x420a45)['filter'](_0x365b3b=>function(_0xff8a86,_0x4767a7){return _0x4767a7['checkChild'](_0xff8a86['parent'],'listItem')&&!_0x4767a7['isObject'](_0xff8a86);}(_0x365b3b,_0x17c165));_0xaa60c8=_0xaa60c8['filter'](_0x533887=>!_0x533887['is']('element','listItem')||_0x533887['getAttribute']('listType')!=_0x387d8c);const _0x5e61f6=new Set();for(const _0x1c9a0f of _0xaa60c8)_0x1c9a0f['is']('element','listItem')?_0x5e61f6['add'](he(_0x1c9a0f)):_0x5e61f6['add'](_0x1c9a0f);return Array['from'](_0x5e61f6);}(_0x3863df['getSelectedBlocks'](),_0x21c45e,_0x3bc943['model']['schema']);_0x3bc943['model']['change'](()=>{for(const _0x12d0d4 of _0x1cbccb)_0x56adcb['markBlockFormat'](_0x12d0d4,{'commandName':_0x2a2be2,'commandParams':[{'forceValue':!_0xd4461d['value']}],'formatGroupId':'blockName'},de(_0x12d0d4));});};}function _0x1fe408(_0x3373e8){return()=>{const _0x7d8fd7=function(_0x73662e){let _0x1524be=Array['from'](_0x73662e);const _0x39c572=_0x1524be['findIndex'](_0x105e6e=>'listItem'!=_0x105e6e['name']);return _0x39c572>-0x1&&(_0x1524be=_0x1524be['slice'](0x0,_0x39c572)),_0x1524be;}(_0x3bc943['model']['document']['selection']['getSelectedBlocks']()),_0x84b468=_0x3bc943['model']['createRange'](_0x3bc943['model']['createPositionAt'](_0x7d8fd7[0x0],'before'),_0x3bc943['model']['createPositionAt'](_0x7d8fd7[_0x7d8fd7['length']-0x1],'end'));_0x3bc943['model']['change'](()=>{_0x56adcb['markBlockFormat'](_0x84b468,{'commandName':_0x3373e8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a1fca){const _0x53bb89=new Set();for(const _0x4635e3 of _0x1a1fca){let _0x27891a=_0x4635e3['nextSibling'];for(;_0x27891a&&_0x27891a['getAttribute']('listIndent')>_0x4635e3['getAttribute']('listIndent');)_0x53bb89['add'](_0x27891a),_0x27891a=_0x27891a['nextSibling'];}return Array['from'](_0x53bb89);}(_0x7d8fd7));});};}_0x56adcb['enableCommand']('numberedList',_0x2fbbdc('numberedList')),_0x56adcb['enableCommand']('bulletedList',_0x2fbbdc('bulletedList')),_0x3a1709&&_0x56adcb['enableCommand']('todoList',_0x2fbbdc('todoList')),_0x56adcb['enableCommand']('indentList',_0x1fe408('indentList')),_0x56adcb['enableCommand']('outdentList',_0x1fe408('outdentList')),_0x3a1709&&_0x56adcb['enableCommand']('checkTodoList',()=>{const _0x5d5bc5=_0x3bc943['commands']['get']('checkTodoList'),_0x19da3f=Array['from'](_0x5d5bc5['_selectedElements']);_0x19da3f['filter'](_0x1320f9=>_0x1320f9['getAttribute']('todoListChecked')!=_0x5d5bc5['value']),_0x3bc943['model']['change'](()=>{for(const _0x2aa390 of _0x19da3f)_0x56adcb['markBlockFormat'](_0x2aa390,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d5bc5['value']}]});});}),_0x56adcb['descriptionFactory']['registerElementLabel']('listItem',_0x216043=>At(_0xbcde6,'ELEMENT_LIST_ITEM',_0x216043)),_0x56adcb['descriptionFactory']['registerDescriptionCallback'](_0xe4092b=>{if('formatBlock'!=_0xe4092b['type']&&'formatInline'!=_0xe4092b['type'])return;const {data:_0x15a38d}=_0xe4092b;if(_0x15a38d){if('numberedList'==_0x15a38d['commandName']||'bulletedList'==_0x15a38d['commandName']||'todoList'==_0x15a38d['commandName'])switch(_0x15a38d['commandName']['replace']('List','')){case'bulleted':return _0x3409d0(At(_0xbcde6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3409d0(At(_0xbcde6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3409d0(At(_0xbcde6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x15a38d['commandName'])return{'type':'format','content':At(_0xbcde6,'*Indent:*\x20%0',At(_0xbcde6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x15a38d['commandName'])return{'type':'format','content':At(_0xbcde6,'*Outdent:*\x20%0',At(_0xbcde6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x15a38d['commandName'])return _0x15a38d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xbcde6,'*Check\x20item*')}:{'type':'format','content':At(_0xbcde6,'*Uncheck\x20item*')};}function _0x3409d0(_0x24ed75){return{'type':'format','content':At(_0xbcde6,'*Change\x20to:*\x20%0',_0x24ed75)};}});}}function he(_0x2c2c41){const _0x439237=_0x2c2c41['getAttribute']('listIndent');if(0x0==_0x439237)return _0x2c2c41;let _0x3062fa=_0x2c2c41;for(;_0x2c2c41['previousSibling']&&_0x2c2c41['previousSibling']['is']('element','listItem');){const _0x157887=_0x2c2c41['previousSibling']['getAttribute']('listIndent');if(_0x157887==_0x439237)_0x3062fa=_0x2c2c41['previousSibling'];else{if(_0x157887<_0x439237)break;}_0x2c2c41=_0x2c2c41['previousSibling'];}return _0x3062fa;}function de(_0x430b11){const _0x4eb98b=[];if(_0x430b11['is']('element','listItem')&&_0x430b11['getAttribute']('listIndent')>0x0){let _0xda01ba=_0x430b11['nextSibling'];for(;_0xda01ba&&'listItem'==_0xda01ba['name']&&_0xda01ba['getAttribute']('listIndent')==_0x430b11['getAttribute']('listIndent');)_0x4eb98b['push'](_0xda01ba),_0xda01ba=_0xda01ba['nextSibling'];}return _0x4eb98b;}class fe extends _0x495525{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x30900e=this['editor']['config']['get']('list.properties'),_0x5cccd3=this['editor']['plugins']['get']('TrackChangesEditing');_0x30900e['styles']&&_0x5cccd3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x30900e['reversed']&&_0x5cccd3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x30900e['startIndex']&&_0x5cccd3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5cccd3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x444574,_0x7fb3d7={}){const _0x2a24fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1438b6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2a24fb['markMultiRangeBlockFormat'](_0x1438b6,{'commandName':'listStyle','commandParams':[{'type':_0x7fb3d7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4f4f09,_0x2c2130={}){const _0x545df1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2defd3=this['_getSuggestionBlocks'](_0x21cda0=>_0x21cda0['is']('element','listItem')&&'numbered'===_0x21cda0['getAttribute']('listType'));if(_0x2defd3['length']<0x1)return;const _0x271d23=_0x2defd3['map'](_0x24d13d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24d13d,'before'),this['editor']['model']['createPositionAt'](_0x24d13d,0x0)));this['editor']['model']['change'](()=>{_0x545df1['markMultiRangeBlockFormat'](_0x271d23,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c2130['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x21ab27,_0x10aaf1={}){const _0x1ff8fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d7cdd=this['_getSuggestionBlocks'](_0x69cc64=>_0x69cc64['is']('element','listItem')&&'numbered'===_0x69cc64['getAttribute']('listType'));if(_0x4d7cdd['length']<0x1)return;const _0x578275=_0x4d7cdd['map'](_0x1808e8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1808e8,'before'),this['editor']['model']['createPositionAt'](_0x1808e8,0x0)));this['editor']['model']['change'](()=>{_0x1ff8fd['markMultiRangeBlockFormat'](_0x578275,{'commandName':'listStart','commandParams':[{'startIndex':_0x10aaf1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x216daf){if('formatBlock'!=_0x216daf['type']&&'formatInline'!=_0x216daf['type'])return;const _0x47e144=this['editor']['locale'],{data:_0x54152a}=_0x216daf;if(!_0x54152a)return;let _0xd0b54,_0x1ed1f4;switch(_0x54152a['commandName']){case'listStyle':_0xd0b54='*Change\x20to:*\x20%0',_0x1ed1f4={'type':'format','content':At(_0x47e144,_0xd0b54,At(_0x47e144,this['_getTranslationKeyForListStyle'](_0x54152a['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd0b54=_0x54152a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ed1f4={'type':'format','content':At(_0x47e144,_0xd0b54)};break;case'listStart':_0xd0b54='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ed1f4={'type':'format','content':At(_0x47e144,_0xd0b54,_0x54152a['commandParams'][0x0]['startIndex'])};}return _0x1ed1f4;}['_getSuggestionBlocksForListStyle'](){const _0x188e3d=this['editor']['plugins']['get']('LegacyListUtils');let _0x220c52=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x220c52[0x0]?.['is']('element','listItem')&&_0x220c52['unshift'](..._0x188e3d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x220c52[_0x220c52['length']-0x1]?.['is']('element','listItem')&&_0x220c52['push'](..._0x188e3d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x220c52=[...new Set(_0x220c52)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x220c52=_0x220c52['filter'](_0x519664=>_0x519664['is']('element','listItem'))),_0x220c52;}['_getSuggestionBlocks'](_0x52655e){const _0xab2a18=this['editor']['plugins']['get']('LegacyListUtils');let _0x540ad6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x52655e)['map'](_0x55a183=>{const _0x2e79f7=this['editor']['model']['createPositionAt'](_0x55a183,0x0);return[..._0xab2a18['getSiblingNodes'](_0x2e79f7,'backward'),..._0xab2a18['getSiblingNodes'](_0x2e79f7,'forward')];})['flat']();return _0x540ad6=[...new Set(_0x540ad6)],_0x540ad6;}['_getTranslationKeyForListStyle'](_0x2c1cc5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2c1cc5)||'default')['toUpperCase']()+'_LIST_'+_0x2c1cc5['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x495525{['afterInit'](){const _0x4774f5=this['editor'];if(!_0x4774f5['plugins']['has']('MediaEmbedEditing'))return;const _0x32c1e1=_0x4774f5['plugins']['get']('TrackChangesEditing'),_0x4faa57=_0x4774f5['locale'];_0x32c1e1['enableCommand']('mediaEmbed'),_0x32c1e1['descriptionFactory']['registerElementLabel']('media',_0x3b444a=>At(_0x4faa57,'ELEMENT_MEDIA',_0x3b444a));}}class me extends _0x495525{['afterInit'](){const _0x524b48=this['editor'];_0x524b48['plugins']['has']('MentionEditing')&&_0x524b48['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x495525{['afterInit'](){const _0x2b11ae=this['editor'];if(!_0x2b11ae['plugins']['has']('MergeFieldsEditing'))return;const _0x375d2d=_0x2b11ae['plugins']['get']('TrackChangesEditing'),_0x31a253=_0x2b11ae['locale'];_0x375d2d['enableCommand']('insertMergeField'),_0x375d2d['enableCommand']('insertMergeFieldBlock'),_0x375d2d['enableCommand']('insertMergeFieldImage'),_0x375d2d['descriptionFactory']['registerElementLabel']('mergeField',_0x67b964=>At(_0x31a253,'ELEMENT_MERGE_FIELD',_0x67b964)),_0x375d2d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1b1a63=>At(_0x31a253,'ELEMENT_MERGE_FIELD',_0x1b1a63)),_0x375d2d['descriptionFactory']['registerDescriptionCallback'](_0x16568=>{if('insertion'!=_0x16568['type']&&'deletion'!=_0x16568['type'])return;const _0x2dc9ce=_0x16568['getContainedElement']();if(null==_0x2dc9ce)return;const _0x518d3c=_0x2b11ae['plugins']['get']('MergeFieldsEditing');let _0x5c27c5;switch(_0x518d3c['getMergeFieldType'](_0x2dc9ce)){case null:return;case'image':{const _0x4fa79a=_0x518d3c['unwrapAffixes'](_0x2dc9ce['getAttribute']('src'));_0x5c27c5=_0x518d3c['getLabel'](_0x4fa79a)||_0x4fa79a;break;}default:{const _0x262b38=_0x2dc9ce['getAttribute']('id');_0x5c27c5=_0x518d3c['getLabel'](_0x262b38)||_0x262b38;break;}}return'insertion'==_0x16568['type']?{'type':'insertion','content':At(_0x31a253,'*Insert:*\x20%0','\x22'+_0x5c27c5+'\x22\x20'+At(_0x31a253,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x31a253,'*Remove:*\x20%0','\x22'+_0x5c27c5+'\x22\x20'+At(_0x31a253,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x495525{['afterInit'](){const _0x6f826b=this['editor'],_0x430882=_0x6f826b['plugins']['get']('TrackChangesEditing');_0x6f826b['plugins']['has']('MultiLevelList')&&(_0x430882['enableDefaultAttributesIntegration']('multiLevelList'),_0x430882['descriptionFactory']['registerDescriptionCallback'](_0x2d2daf=>this['handleDescriptions'](_0x2d2daf)));}['handleDescriptions'](_0x3aa2e3){const _0x1536e4=this['editor']['locale'],{data:_0x171043}=_0x3aa2e3,_0x1677cf={'type':'format','content':''};if(_0x171043&&'listMarkerStyle'==_0x171043['key']){if(!_0x171043['oldValue'])return{'type':'format','content':At(_0x1536e4,'*Set\x20format:*\x20%0',At(_0x1536e4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x171043['newValue']+')'};if(!_0x171043['newValue']){let _0x446104=_0x3aa2e3['head'];for(;_0x446104;){if(_0x446104['data']&&'listType'==_0x446104['data']['key']&&_0x446104['data']['newValue'])return _0x1677cf;_0x446104=_0x446104['next'];}return{'type':'format','content':At(_0x1536e4,'*Remove\x20format:*\x20%0',At(_0x1536e4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x171043['oldValue']+')'};}}}}class _e extends _0x495525{['afterInit'](){const _0x49bff9=this['editor'];if(!_0x49bff9['plugins']['has']('PageBreakEditing'))return;_0x49bff9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3b0051=_0x49bff9['plugins']['get']('TrackChangesEditing'),_0xd6b909=_0x49bff9['locale'];_0x3b0051['descriptionFactory']['registerElementLabel']('pageBreak',_0x54acf0=>At(_0xd6b909,'ELEMENT_PAGE_BREAK',_0x54acf0));}}class pe extends _0x495525{['afterInit'](){const _0x1256da=this['editor'];if(!_0x1256da['plugins']['has']('Paragraph'))return;const _0x31fc10=_0x1256da['locale'],_0x1b66ab=_0x1256da['plugins']['get']('TrackChangesEditing');_0x1b66ab['descriptionFactory']['registerElementLabel']('paragraph',_0x1b71a3=>At(_0x31fc10,'ELEMENT_PARAGRAPH',_0x1b71a3)),_0x1b66ab['enableDefaultAttributesIntegration']('paragraph'),_0x1b66ab['enableCommand']('insertParagraph');const _0x1c0e9d=_0x1b66ab['descriptionFactory'];_0x1c0e9d['registerDescriptionCallback'](_0x5d8b09=>{if('insertion'!==_0x5d8b09['type'])return;const {start:_0x54c857,end:_0x353769}=_0x5d8b09['getFirstRange']();if(!_0x54c857['isTouching'](_0x353769)||!_0x54c857['nodeAfter'])return;const _0x5a1210=_0x1256da['model']['schema'],_0x32f783=_0x54c857['nodeAfter'];return _0x5a1210['isBlock'](_0x32f783)&&!_0x5a1210['isLimit'](_0x32f783)&&_0x5a1210['checkChild'](_0x32f783,'$text')?{'type':'insertion','content':At(_0x31fc10,'*Insert:*\x20%0',_0x1c0e9d['getItemLabel'](_0x32f783,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43713b=this['editor'],_0x25b5d4=_0x43713b['locale'];_0x43713b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd2e4=>{if('formatBlock'!=_0x3bd2e4['type'])return;const {data:_0x22b64d}=_0x3bd2e4;return _0x22b64d&&'paragraph'==_0x22b64d['commandName']?{'type':'format','content':At(_0x25b5d4,'*Change\x20to:*\x20%0',At(_0x25b5d4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x495525{['afterInit'](){const _0x47f49b=this['editor'];_0x47f49b['commands']['get']('replaceSource')&&_0x47f49b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x495525{['afterInit'](){const _0x4c88a5=this['editor'];if(!_0x4c88a5['plugins']['has']('RemoveFormatEditing'))return;_0x4c88a5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x358bd5=this['editor'];_0x358bd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594c3a=>{if('formatBlock'!=_0x594c3a['type']&&'formatInline'!=_0x594c3a['type'])return;const {data:_0x58c8a5}=_0x594c3a;return _0x58c8a5&&'removeFormat'==_0x58c8a5['commandName']?{'type':'format','content':At(_0x358bd5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x495525{['afterInit'](){const _0x3d1b4d=this['editor'];if(!_0x3d1b4d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x36a0c8=_0x3d1b4d['plugins']['get']('TrackChangesEditing');_0x36a0c8['enableCommand']('goToPreviousRestrictedEditingException'),_0x36a0c8['enableCommand']('goToNextRestrictedEditingException');const _0x1f7ab9=_0x3d1b4d['plugins']['get']('RestrictedEditingModeEditing');_0x1f7ab9['enableCommand']('trackChanges'),_0x1f7ab9['enableCommand']('acceptSuggestion'),_0x1f7ab9['enableCommand']('discardSuggestion'),_0x1f7ab9['enableCommand']('acceptAllSuggestions'),_0x1f7ab9['enableCommand']('discardAllSuggestions'),_0x1f7ab9['enableCommand']('acceptSelectedSuggestions'),_0x1f7ab9['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x495525{['afterInit'](){const _0x3f9886=this['editor'];if(!_0x3f9886['plugins']['has']('ShiftEnter'))return;const _0xcefc0b=_0x3f9886['plugins']['get']('TrackChangesEditing');_0xcefc0b['enableCommand']('shiftEnter'),_0xcefc0b['descriptionFactory']['registerElementLabel']('softBreak',_0x5c0616=>At(_0x3f9886['locale'],'ELEMENT_LINE_BREAK',_0x5c0616));}}function ke(_0x7e06e8,_0x528350,_0x1e6435){const _0x14dad9=[];for(const _0x4c766f of _0x528350['getItems']())_0x4c766f['hasAttribute'](_0x7e06e8)&&_0x14dad9['push'](_0x1e6435['createRangeOn'](_0x4c766f));return _0x14dad9;}class Ce extends _0x495525{['afterInit'](){const _0x487f49=this['editor'],_0x1d0ddd=_0x487f49['plugins']['get']('TrackChangesEditing');_0x487f49['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1d0ddd['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x591880=this['editor'],_0x44bfb3=_0x591880['model'],_0x3bd9c8=_0x591880['locale'],_0x6b6b32=_0x591880['plugins']['get']('TrackChangesEditing'),_0x5ba376='restrictedEditingException',_0x1aaa71=_0x591880['commands']['get'](_0x5ba376);_0x6b6b32['enableCommand'](_0x5ba376,(_0xfc9199,_0x30d0f6={})=>{const _0x344e26=_0x44bfb3['document']['selection'];if(_0x344e26['isCollapsed'])return void _0xfc9199(_0x30d0f6);const _0x5aaf85=void 0x0!==_0x30d0f6['forceValue']?_0x30d0f6['forceValue']:!_0x1aaa71['value'];_0x44bfb3['change'](()=>{const _0x599de8=Array['from'](_0x344e26['getRanges']());for(const _0x2229a7 of _0x599de8){const _0x150949=_0x5aaf85?[_0x2229a7]:ke(_0x5ba376,_0x2229a7,_0x44bfb3);for(const _0xec4b2c of _0x150949)_0x6b6b32['markInlineFormat'](_0xec4b2c,{'commandName':_0x5ba376,'commandParams':[{'forceValue':_0x5aaf85}]});}});}),_0x6b6b32['descriptionFactory']['registerDescriptionCallback'](_0x46fbfc=>{if('formatBlock'!=_0x46fbfc['type']&&'formatInline'!=_0x46fbfc['type'])return;const {data:_0x41a33d}=_0x46fbfc;return _0x41a33d&&_0x41a33d['commandName']==_0x5ba376?_0x41a33d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3bd9c8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x3bd9c8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x34071b=this['editor'],_0x5e7d7c=_0x34071b['locale'],_0x5cd7d9=_0x34071b['plugins']['get']('TrackChangesEditing'),_0x1a18d2='restrictedEditingExceptionBlock',_0x56fa53=this['editor']['commands']['get'](_0x1a18d2);_0x5cd7d9['enableCommand'](_0x1a18d2,(_0x4244ba,_0x4c77b6={})=>{const _0x2fb41e=this['editor']['model']['document']['selection'],_0x28d483=_0x4c77b6&&void 0x0!==_0x4c77b6['forceValue']?_0x4c77b6['forceValue']:!_0x56fa53['value'];let _0x1db949=[];if(_0x28d483){const _0x127c2e=Array['from'](_0x2fb41e['getSelectedBlocks']())['filter'](_0xdc0dd8=>function(_0x3abcee){return!!_0x3abcee['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xdc0dd8)||function(_0x4c88ee,_0x4a4814){const _0x4238ac=_0x4a4814['createContext'](_0x4c88ee['parent']);if(!_0x4a4814['checkChild'](_0x4238ac,'restrictedEditingException'))return!0x1;if(!_0x4a4814['checkChild'](_0x4238ac['push']('restrictedEditingException'),_0x4c88ee))return!0x1;return!0x0;}(_0xdc0dd8,this['editor']['model']['schema']));_0x1db949=Tt(_0x127c2e,_0x34071b['model']);}else{const _0x52929d=Array['from'](_0x2fb41e['getSelectedBlocks']())['map'](_0x3bef2c=>function(_0x1b6a5a){let _0x383702=_0x1b6a5a;for(;_0x383702['parent'];){if('restrictedEditingException'==_0x383702['parent']['name'])return _0x383702;_0x383702=_0x383702['parent'];}return null;}(_0x3bef2c))['filter'](_0x25613c=>!!_0x25613c);_0x1db949=Tt(_0x52929d,_0x34071b['model']);}_0x34071b['model']['change'](()=>{for(const _0x154964 of _0x1db949)_0x5cd7d9['markBlockFormat'](_0x154964,{'commandName':_0x1a18d2,'commandParams':[{'forceValue':_0x28d483}]});});}),_0x5cd7d9['descriptionFactory']['registerDescriptionCallback'](_0x218472=>{const {data:_0x46b93c}=_0x218472;if(_0x46b93c&&_0x46b93c['commandName']==_0x1a18d2)return _0x46b93c['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5e7d7c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x5e7d7c,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x495525{['afterInit'](){const _0x250927=this['editor'];if(!_0x250927['plugins']['has']('Style')||!_0x250927['plugins']['has']('DataSchema'))return;const _0x249587=_0x250927['plugins']['get']('TrackChangesEditing'),_0x1132c8=_0x250927['locale'],_0x220c32=_0x250927['config']['get']('style')||{},_0x5259ae=_0x250927['plugins']['get']('GeneralHtmlSupport'),_0x1807a6=_0x250927['plugins']['get']('StyleUtils')['normalizeConfig'](_0x250927['plugins']['get']('DataSchema'),_0x220c32['definitions']);_0x249587['enableDefaultAttributesIntegration']('style');const _0x9c4e70=new Set();for(const _0x1e6eb0 of _0x1807a6['block']){const _0x1e981d=_0x5259ae['getGhsAttributeNameForElement'](_0x1e6eb0['element']);_0x9c4e70['add'](_0x1e981d);}const _0x360545=new Set();for(const _0x5c41c7 of _0x1807a6['inline']){const _0xaefcdd=_0x5259ae['getGhsAttributeNameForElement'](_0x5c41c7['element']);_0x360545['add'](_0xaefcdd);for(const _0x23c8a0 of _0x5c41c7['ghsAttributes'])_0x360545['add'](_0x23c8a0);}for(const _0xde92c1 of _0x9c4e70)_0x249587['descriptionFactory']['registerAttributeLabel'](_0xde92c1,At(_0x1132c8,'FORMAT_STYLE'));for(const _0x3fd623 of _0x360545)_0x249587['descriptionFactory']['registerAttributeLabel'](_0x3fd623,At(_0x1132c8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22c2ce=this['editor'],_0x5e178f=_0x22c2ce['locale'];_0x22c2ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b260c=>{if('formatBlock'!=_0x1b260c['type']&&'formatInline'!=_0x1b260c['type'])return;const {data:_0x471987}=_0x1b260c;return _0x471987&&'style'===_0x471987['commandName']?_0x471987['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5e178f,'*Set\x20format:*\x20%0',_0x471987['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x5e178f,'*Remove\x20format:*\x20%0',_0x471987['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x495525{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x59377e){super(_0x59377e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d25b6=this['editor'],_0x523f95=_0x3d25b6['model']['document']['selection'];if(!_0x3d25b6['plugins']['has']('TableEditing'))return;const _0x2d9d1b=_0x3d25b6['locale'],_0x4b776b=_0x3d25b6['plugins']['get']('TrackChangesEditing'),_0x2d05f7=_0x3d25b6['plugins']['get']('TableUtils');_0x4b776b['descriptionFactory']['registerElementLabel']('table',_0x1d7abb=>At(_0x2d9d1b,'ELEMENT_TABLE',_0x1d7abb)),this['_setupColumnsRowsFixing'](),_0x4b776b['enableCommand']('insertTable'),_0x4b776b['enableCommand']('selectTableRow'),_0x4b776b['enableCommand']('selectTableColumn');for(const _0x228b77 of['insertTableRowAbove','insertTableRowBelow']){const _0x292b0e=_0x3d25b6['commands']['get'](_0x228b77);_0x4b776b['enableCommand'](_0x228b77,_0x5b888a=>{_0x3d25b6['model']['change'](_0x372860=>{_0x5b888a();const _0x14ba5f='above'===_0x292b0e['order'],_0x54db24=_0x2d05f7['getSelectionAffectedTableCells'](_0x523f95),_0x545f66=_0x2d05f7['getRowIndexes'](_0x54db24),_0x325df0=_0x14ba5f?_0x545f66['first']-0x1:_0x545f66['last']+0x1,_0x1ed056=_0x54db24[0x0]['findAncestor']('table'),_0x3d6a67=_0x2d05f7['createTableWalker'](_0x1ed056,{'startRow':_0x325df0,'endRow':_0x325df0}),_0x1f728b=Array['from'](_0x3d6a67)['map'](_0x16bc75=>_0x372860['createRangeOn'](_0x16bc75['cell']));_0x4b776b['markMultiRangeInsertion'](_0x1f728b,'tableRow');});});}for(const _0x548418 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4569fd=_0x3d25b6['commands']['get'](_0x548418);_0x4b776b['enableCommand'](_0x548418,_0x1229ac=>{_0x3d25b6['model']['change'](_0x572677=>{_0x1229ac();const _0x383463='left'===_0x4569fd['order'],_0x44c7d2=_0x2d05f7['getSelectionAffectedTableCells'](_0x523f95),_0x298320=_0x2d05f7['getColumnIndexes'](_0x44c7d2),_0x5d8e19=_0x383463?_0x298320['first']-0x1:_0x298320['last']+0x1,_0x323607=_0x44c7d2[0x0]['findAncestor']('table'),_0x110b9f=_0x2d05f7['createTableWalker'](_0x323607,{'startRow':0x0,'column':_0x5d8e19,'includeAllSlots':!0x1}),_0x3724e7=Array['from'](_0x110b9f)['map'](_0x20f86b=>_0x572677['createRangeOn'](_0x20f86b['cell']));_0x4b776b['markMultiRangeInsertion'](_0x3724e7,'tableColumn');});});}for(const _0x15a144 of['removeTableRow','removeTableColumn']){const _0x11ecdc=_0x15a144['substr'](0xb),_0x57daae=_0x11ecdc['toLowerCase'](),_0x54110c=_0x57daae['substr'](0x0,0x3)+'span',_0x9e506='table'+_0x11ecdc,_0x516119='min'+_0x11ecdc,_0x347972='max'+_0x11ecdc;_0x4b776b['enableCommand'](_0x15a144,()=>{_0x3d25b6['model']['change'](_0x3988c9=>{const _0x37caa4=_0x2d05f7['getSelectionAffectedTableCells'](_0x523f95),_0x28ac46=_0x37caa4[0x0]['findAncestor']('table');let _0x1f37ef;if('removeTableRow'==_0x15a144){const _0x433d5d=_0x2d05f7['getRowIndexes'](_0x37caa4);_0x1f37ef={'startRow':_0x433d5d['first'],'endRow':_0x433d5d['last'],'includeAllSlots':!0x0};}else{const _0xe471c8=_0x2d05f7['getColumnIndexes'](_0x37caa4);_0x1f37ef={'startColumn':_0xe471c8['first'],'endColumn':_0xe471c8['last'],'includeAllSlots':!0x0};}const _0x5c715f=_0x2d05f7['createTableWalker'](_0x28ac46,_0x1f37ef),_0x522131=Array['from'](_0x5c715f)['map'](({cell:_0x3fa664})=>_0x3fa664),_0x2bab4f=Re(_0x522131['filter'](_0x3c1cd5=>_0x3c1cd5['hasAttribute'](_0x54110c))),_0x175158=Re(_0x522131['filter'](_0x54ea7f=>!_0x54ea7f['hasAttribute'](_0x54110c)))['map'](_0xcbddbb=>_0x3988c9['createRangeOn'](_0xcbddbb)),_0x1845dc=_0x4b776b['markMultiRangeDeletion'](_0x175158,_0x9e506);if(_0x1845dc&&('tableRow'==_0x1845dc['subType']||'tableColumn'==_0x1845dc['subType'])){const _0x483162=this['_getSuggestionCoords'](_0x1845dc);for(const _0x4c2877 of _0x2bab4f){const _0xa9c31e=_0x3988c9['createRangeOn'](_0x4c2877),_0x488d23=_0x2d05f7['getCellLocation'](_0x4c2877),_0x516a0e=_0x4c2877['getAttribute'](_0x54110c)-0x1,_0x2597f3=_0x483162[_0x516119],_0xa561e3=_0x483162[_0x347972];_0x2597f3<=_0x488d23[_0x57daae]&&_0x488d23[_0x57daae]+_0x516a0e<=_0xa561e3&&_0x1845dc['addRange'](_0xa9c31e);}}});});}function _0x9e42c4(_0x4484dd){const _0x499d33=Array['from'](_0x523f95['getRanges']())['map'](_0x15b56c=>_0xcc3cc7['fromRange'](_0x15b56c));_0x3d25b6['model']['change'](_0x3b7267=>{const _0x50645e=_0x3b7267['batch'];_0x4484dd=_0x4484dd['filter'](_0x3e9c6e=>'$graveyard'!=_0x3e9c6e['root']['rootName']),_0x3b7267['setSelection'](_0x4484dd),_0x3d25b6['commands']['get']('removeTableRow')['refresh'](),_0x3d25b6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d25b6['model']['enqueueChange'](()=>{_0x3d25b6['model']['enqueueChange'](_0x50645e,_0x5e9658=>{const _0x51a345=_0x499d33['filter'](_0x1cc41c=>'$graveyard'!=_0x1cc41c['root']['rootName']);_0x51a345['length']>0x0&&_0x5e9658['setSelection'](_0x51a345);for(const _0x4ad360 of _0x499d33)_0x4ad360['detach']();});});});}function _0x782bd(_0x2859a7){_0x3d25b6['model']['change'](_0x3f22b0=>{const _0x465db6=Array['from'](_0x523f95['getRanges']())['map'](_0x2f120a=>_0xcc3cc7['fromRange'](_0x2f120a)),_0x797926=[];for(const _0x5d88b0 of _0x2859a7)for(const _0x39c4c4 of _0x5d88b0['getItems']({'shallow':!0x0}))_0x797926['push'](_0x39c4c4);for(const _0x36fb1e of _0x797926)'$graveyard'!=_0x36fb1e['root']['rootName']&&(_0x3f22b0['setSelection'](_0x3f22b0['createPositionAt'](_0x36fb1e,0x0)),_0x3d25b6['commands']['get']('removeTableColumn')['refresh'](),_0x3d25b6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2277f9=_0x465db6['filter'](_0x3637b7=>'$graveyard'!=_0x3637b7['root']['rootName']);_0x2277f9['length']>0x0&&_0x3f22b0['setSelection'](_0x2277f9);for(const _0x3f4a4d of _0x465db6)_0x3f4a4d['detach']();});}function _0x707ac1(_0x2b2955,_0x42e9a9){return _0x42e9a9['every'](_0x57d220=>_0x2b2955['some'](_0x45b318=>_0x45b318['end']['isEqual'](_0x57d220['start'])||_0x57d220['end']['isEqual'](_0x45b318['start'])));}function _0x337fa2(_0x6fc288,_0x2ab8fa){return!_0x6fc288['some'](_0x3f8e1c=>_0x2ab8fa['some'](_0x19cf9d=>_0x3f8e1c['isIntersecting'](_0x19cf9d)))&&_0x6fc288['some'](_0xcc3062=>_0x2ab8fa['some'](_0x580ed8=>_0xcc3062['end']['isTouching'](_0x580ed8['start'])));}_0x4b776b['descriptionFactory']['registerDescriptionCallback'](_0x1c8e16=>{if('insertion'!=_0x1c8e16['type']&&'deletion'!=_0x1c8e16['type'])return;const _0x24b99e=_0x1c8e16['getContainedElement']();if(null!=_0x24b99e&&_0x24b99e['is']('element','table')){if('insertion'==_0x1c8e16['type']){const _0x37048d=_0x1c8e16['getItems']()['filter'](_0x5c9e15=>_0x5c9e15['is']('$textProxy'))['map'](_0x5cbf4a=>_0x5cbf4a['data']);if(_0x37048d['length'])return{'type':'insertion','content':At(_0x2d9d1b,'*Insert:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37048d['join']('\x20')+'\x22'))};}if('deletion'==_0x1c8e16['type']){const _0x57218f=_0x1c8e16['getItems']()['filter'](_0x502d13=>_0x502d13['is']('$textProxy'))['map'](_0x12e087=>_0x12e087['data']);if(_0x57218f['length'])return{'type':'deletion','content':At(_0x2d9d1b,'*Remove:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57218f['join']('\x20')+'\x22'))};}}}),_0x4b776b['descriptionFactory']['registerDescriptionCallback'](_0xc9a752=>{if('tableRow'==_0xc9a752['subType']){const _0x5862c3=_0xc9a752['getItems']()['filter'](_0x4cc66e=>_0x4cc66e['is']('$textProxy'))['map'](_0x1a370f=>_0x1a370f['data']),_0x30e731=this['_getSuggestionCoords'](_0xc9a752),_0x1f111b=_0x30e731['maxRow']-_0x30e731['minRow']+0x1;if('insertion'==_0xc9a752['type'])return _0x5862c3['length']?{'type':'insertion','content':At(_0x2d9d1b,'*Insert:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f111b,'\x22'+_0x5862c3['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x2d9d1b,'*Insert:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_ROW',_0x1f111b))};if('deletion'==_0xc9a752['type'])return _0x5862c3['length']?{'type':'deletion','content':At(_0x2d9d1b,'*Remove:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f111b,'\x22'+_0x5862c3['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x2d9d1b,'*Remove:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_ROW',_0x1f111b))};}if('tableColumn'==_0xc9a752['subType']){const _0x4d97af=_0xc9a752['getItems']()['filter'](_0x226b8a=>_0x226b8a['is']('$textProxy'))['map'](_0xed3eec=>_0xed3eec['data']),_0x4475fa=this['_getSuggestionCoords'](_0xc9a752),_0x555cab=_0x4475fa['maxColumn']-_0x4475fa['minColumn']+0x1;if('insertion'==_0xc9a752['type'])return _0x4d97af['length']?{'type':'insertion','content':At(_0x2d9d1b,'*Insert:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x555cab,'\x22'+_0x4d97af['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x2d9d1b,'*Insert:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_COLUMN',_0x555cab))};if('deletion'==_0xc9a752['type'])return _0x4d97af['length']?{'type':'deletion','content':At(_0x2d9d1b,'*Remove:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x555cab,'\x22'+_0x4d97af['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x2d9d1b,'*Remove:*\x20%0',At(_0x2d9d1b,'ELEMENT_TABLE_COLUMN',_0x555cab))};}}),_0x4b776b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9e42c4),_0x4b776b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9e42c4),_0x4b776b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x782bd),_0x4b776b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x782bd),_0x4b776b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x707ac1),_0x4b776b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x707ac1),_0x4b776b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x337fa2),_0x4b776b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x337fa2);}['_acceptFormatSuggestionCallbackFactory'](){const _0xe4d299=this['editor'],_0xeb0223=_0xe4d299['model']['document']['selection'];return(_0x1a8649,_0x5b0733)=>{_0xe4d299['model']['change'](_0x9f2403=>{const {commandName:_0x17395e,commandParams:_0x979202}=_0x5b0733;let _0xa77709=_0x1a8649[0x0]['end']['nodeBefore'];_0x979202&&_0x979202[0x0]&&!0x1===_0x979202[0x0]['forceValue']&&(_0xa77709=_0x1a8649[0x0]['start']['nodeAfter']);const _0x270e79=_0x9f2403['createRangeIn'](_0xa77709);if('$graveyard'==_0x270e79['root']['rootName'])return;const _0x187cae=Array['from'](_0xeb0223['getRanges']())['map'](_0x125ece=>_0xcc3cc7['fromRange'](_0x125ece));_0x9f2403['setSelection'](_0x270e79),_0xe4d299['commands']['get'](_0x17395e)['refresh'](),_0x979202['push']({'forceDefaultExecution':!0x0}),_0xe4d299['execute'](_0x17395e,..._0x979202);const _0x124c4c=_0x187cae['filter'](_0x22ad08=>'$graveyard'!=_0x22ad08['root']['rootName']);_0x124c4c['length']>0x0&&_0x9f2403['setSelection'](_0x124c4c);for(const _0x286640 of _0x187cae)_0x286640['detach']();});};}['_getCoordsForCells'](_0x3132fb){const _0x5ba719=this['editor']['plugins']['get']('TableUtils');let _0x3acff5=Number['MAX_SAFE_INTEGER'],_0x4a5726=Number['MIN_SAFE_INTEGER'],_0x1a8e2a=Number['MAX_SAFE_INTEGER'],_0x4166de=Number['MIN_SAFE_INTEGER'];for(const _0x4cdbd3 of _0x3132fb){if('$graveyard'==_0x4cdbd3['root']['rootName'])continue;const {row:_0x525a3d,column:_0x3f5642}=_0x5ba719['getCellLocation'](_0x4cdbd3),_0xec95e8=_0x4cdbd3['hasAttribute']('rowspan')?_0x4cdbd3['getAttribute']('rowspan')-0x1:0x0,_0x84d92=_0x4cdbd3['hasAttribute']('colspan')?_0x4cdbd3['getAttribute']('colspan')-0x1:0x0;_0x3acff5=_0x525a3d<_0x3acff5?_0x525a3d:_0x3acff5,_0x4a5726=_0x525a3d+_0xec95e8>_0x4a5726?_0x525a3d+_0xec95e8:_0x4a5726,_0x1a8e2a=_0x3f5642<_0x1a8e2a?_0x3f5642:_0x1a8e2a,_0x4166de=_0x3f5642+_0x84d92>_0x4166de?_0x3f5642+_0x84d92:_0x4166de;}return{'minRow':_0x3acff5,'maxRow':_0x4a5726,'minColumn':_0x1a8e2a,'maxColumn':_0x4166de};}['_setupColumnsRowsFixing'](){const _0x3412d2=this['editor'],_0x41879a=_0x3412d2['plugins']['get']('TrackChangesEditing'),_0xd8e7d1=_0x3412d2['plugins']['get']('TableUtils');_0x3412d2['model']['document']['on']('change:data',()=>{const _0x54bee1=Array['from'](_0x3412d2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1019b7,data:_0x1a49a1}of _0x54bee1){const {group:_0x4d6144,id:_0x1289a7,subType:_0x408b11}=_0x190ed2(_0x1019b7);if('suggestion'!=_0x4d6144)continue;if(null!=_0x1a49a1['oldRange'])continue;const _0x39e8bb=_0x41879a['getSuggestion'](_0x1289a7);this['_tablePostFixingSubtypes']['includes'](_0x408b11)&&this['_tableSuggestions']['add'](_0x39e8bb);}},{'priority':'low'});const _0xcf44df=(_0x18469d,_0x43974c)=>{let _0x4a4a00=!0x1;const _0x424481=_0x43974c['createRangeOn'](_0x18469d),_0x11adc5=_0x18469d['findAncestor']('table'),_0x4aced6=_0xd8e7d1['getCellLocation'](_0x18469d);for(const _0x4e0787 of this['_tableSuggestions']){const _0x311627=_0x4e0787['subType'],_0x4583a9=_0x311627['startsWith']('tablePaste'),_0x50555c=_0x311627['substr'](_0x4583a9?0xa:0x5),_0x4058de=_0x50555c['toLowerCase'](),_0x5c506e=_0x4058de['substr'](0x0,0x3)+'span',_0x3c9227='min'+_0x50555c,_0x4fb14a='max'+_0x50555c;if(!_0x4e0787['isInContent'])continue;if(_0x11adc5!=_0x4e0787['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4e0787['isIntersectingWithRange'](_0x424481))continue;const _0x492e51=_0x18469d['hasAttribute'](_0x5c506e)?_0x18469d['getAttribute'](_0x5c506e)-0x1:0x0,_0x167b07=this['_getSuggestionCoords'](_0x4e0787),_0x22e8b0=_0x167b07[_0x3c9227],_0x387db7=_0x167b07[_0x4fb14a];_0x22e8b0<=_0x4aced6[_0x4058de]&&_0x4aced6[_0x4058de]+_0x492e51<=_0x387db7&&(_0x4e0787['addRange'](_0x424481),_0x4a4a00=!0x0);}return _0x4a4a00;};_0x3412d2['model']['document']['registerPostFixer'](_0x3ab2c8=>{let _0x180810=!0x1;for(const _0xd78611 of _0x3412d2['model']['document']['differ']['getChanges']())if('insert'==_0xd78611['type']){if('tableRow'==_0xd78611['name']){for(const _0x1489ed of _0xd78611['position']['nodeAfter']['getChildren']())_0x180810=_0x180810||_0xcf44df(_0x1489ed,_0x3ab2c8);}else'tableCell'==_0xd78611['name']&&(_0x180810=_0x180810||_0xcf44df(_0xd78611['position']['nodeAfter'],_0x3ab2c8));}return _0x180810;});}['_getSuggestionCoords'](_0x3c566f){return this['_getCoordsForCells'](_0x3c566f['getRanges']()['map'](_0x54c50d=>_0x54c50d['start']['nodeAfter']));}}function Re(_0x478662){return Array['from'](new Set(_0x478662)['values']());}class Se extends _0x495525{static get['requires'](){return[Ne];}['afterInit'](){const _0x3361b3=this['editor'],_0x18af7c=_0x3361b3['model']['document']['selection'],_0x4198fc=_0x3361b3['locale'];if(!_0x3361b3['plugins']['has']('TableEditing'))return;const _0xe2e35b=_0x3361b3['plugins']['get']('TrackChangesEditing'),_0x546e37=_0x3361b3['plugins']['get']('TableUtils'),_0x15f80d=_0x3361b3['plugins']['get'](Ne);_0x15f80d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe2e35b['enableCommand']('mergeTableCells',()=>{const _0x56cfef=_0x546e37['getSelectionAffectedTableCells'](_0x3361b3['model']['document']['selection']);_0x3361b3['model']['change'](()=>{_0xe2e35b['markMultiRangeBlockFormat'](_0x56cfef,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3361b3['commands']['get']('mergeTableCells')['on']('execute',(_0x374c71,_0x4246d8)=>{_0x3361b3['commands']['get']('trackChanges')['value']&&(_0x4246d8['length']>0x0&&_0x4246d8[_0x4246d8['length']-0x1]&&_0x4246d8[_0x4246d8['length']-0x1]['forceDefaultExecution']||_0xe2e35b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x374c71['stop']());},{'priority':'highest'});for(const _0x59ec73 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3185bb=_0x3361b3['commands']['get'](_0x59ec73);_0xe2e35b['enableCommand'](_0x59ec73,()=>{const _0x6e8808=_0x3361b3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x26e616=>_0x26e616['is']('element','tableCell')),_0x1e1e73=_0x3185bb['value'];_0x3361b3['model']['change'](()=>{_0xe2e35b['markMultiRangeBlockFormat']([_0x6e8808,_0x1e1e73],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x695d83 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5e6a8b=_0x3361b3['commands']['get'](_0x695d83);_0xe2e35b['enableCommand'](_0x695d83,()=>{const _0x100ff5=_0x546e37['getSelectionAffectedTableCells'](_0x3361b3['model']['document']['selection'])[0x0],_0x5cc465=_0x100ff5['findAncestor']('table'),{column:_0x370231,row:_0x5f53f0}=_0x546e37['getCellLocation'](_0x100ff5);let _0x28afa7=[];if('horizontally'==_0x5e6a8b['direction']){const _0x29be88=_0x546e37['createTableWalker'](_0x5cc465,{'startRow':_0x5f53f0,'endRow':_0x5f53f0,'includeAllSlots':!0x0});_0x28afa7=Array['from'](_0x29be88)['map'](_0x4ecbde=>_0x4ecbde['cell']);}else{const _0x4dbf2b=_0x546e37['createTableWalker'](_0x5cc465,{'column':_0x370231,'includeAllSlots':!0x0});_0x28afa7=Array['from'](_0x4dbf2b)['map'](_0x101b62=>_0x101b62['cell']);}_0x3361b3['model']['change'](_0x1d046a=>{_0xe2e35b['markBlockFormat'](_0x1d046a['createRangeOn'](_0x100ff5),{'commandName':_0x695d83,'commandParams':[]},_0x28afa7,_0x695d83);});});}_0xe2e35b['descriptionFactory']['registerDescriptionCallback'](_0x1f871c=>{if('formatBlock'!=_0x1f871c['type']&&'formatInline'!=_0x1f871c['type'])return;const {data:_0x54e131}=_0x1f871c;return _0x54e131&&'mergeTableCells'==_0x54e131['commandName']?{'type':'format','content':At(_0x4198fc,'*Merge\x20cells*')}:void 0x0;}),_0xe2e35b['descriptionFactory']['registerDescriptionCallback'](_0x420ae3=>{if('formatBlock'!=_0x420ae3['type']&&'formatInline'!=_0x420ae3['type'])return;const {data:_0x17216f}=_0x420ae3;return _0x17216f?'splitTableCellVertically'==_0x17216f['commandName']?{'type':'format','content':At(_0x4198fc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17216f['commandName']?{'type':'format','content':At(_0x4198fc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x39d1c9=_0x15f80d['_acceptFormatSuggestionCallbackFactory']();for(const _0x5a2b3b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe2e35b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a2b3b,'accept',_0x39d1c9);for(const _0x5a2e93 of['splitTableCellVertically','splitTableCellHorizontally'])_0xe2e35b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a2e93,'accept',_0x39d1c9);_0xe2e35b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11da8f=>{_0x3361b3['model']['change'](_0x4c4241=>{const _0x3f45a6=Array['from'](_0x18af7c['getRanges']())['map'](_0x3b843f=>_0xcc3cc7['fromRange'](_0x3b843f));_0x4c4241['setSelection'](_0x11da8f),_0x3361b3['commands']['get']('mergeTableCells')['refresh'](),_0x3361b3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x389adb=_0x3f45a6['filter'](_0x1e28e5=>'$graveyard'!=_0x1e28e5['root']['rootName']);_0x389adb['length']>0x0&&_0x4c4241['setSelection'](_0x389adb);for(const _0x5aa629 of _0x3f45a6)_0x5aa629['detach']();});});for(const _0x472b8e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x517216=_0x3361b3['commands']['get'](_0x472b8e);_0x517216['on']('set:isEnabled',(_0x6dfae8,_0x314989,_0x7e3f5f)=>{if(_0x7e3f5f){const _0x224bdf=_0x3361b3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x320b3e=>_0x320b3e['is']('element','tableCell'));this['_areMergableCells'](_0x517216['value'],_0x224bdf)||(_0x6dfae8['return']=!0x1,_0x6dfae8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x52b416=this['editor']['commands']['get']('mergeTableCells'),_0x4a84ec=this['editor']['plugins']['get']('TableUtils');if(!_0x52b416['isEnabled'])return!0x1;const _0x2abc8c=_0x4a84ec['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4cde55 of _0x2abc8c)for(const _0x57cf42 of _0x2abc8c)if(_0x4cde55!=_0x57cf42&&!this['_areMergableCells'](_0x4cde55,_0x57cf42))return!0x1;return!0x0;}['_areMergableCells'](_0x3a9c2a,_0x5e2aec){const _0x4e8d2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2868d1=this['editor']['model']['createRangeOn'](_0x3a9c2a),_0xc39320=this['editor']['model']['createRangeOn'](_0x5e2aec),_0x328e91=new Set(),_0x180d7b=new Set();for(const _0x10ea51 of _0x4e8d2f['getSuggestions']())if(('insertion'==_0x10ea51['type']||'deletion'==_0x10ea51['type']||'mergeTableCells'==_0x10ea51['subType'])&&_0x10ea51['isInContent']){for(const _0xd8c652 of _0x10ea51['getRanges']())_0xd8c652['containsRange'](_0x2868d1,!0x0)&&_0x328e91['add'](_0x10ea51['type']+':'+_0x10ea51['author']['id']),_0xd8c652['containsRange'](_0xc39320,!0x0)&&_0x180d7b['add'](_0x10ea51['type']+':'+_0x10ea51['author']['id']);}if(_0x328e91['size']!=_0x180d7b['size'])return!0x1;for(const _0x4ad5bc of _0x328e91)if(!_0x180d7b['has'](_0x4ad5bc))return!0x1;return!0x0;}}class Me extends _0x495525{static get['requires'](){return[Ne];}['afterInit'](){const _0x2ad3ae=this['editor'];if(!_0x2ad3ae['plugins']['has']('TableEditing'))return;const _0x143383=_0x2ad3ae['locale'],_0x3a6c0a=_0x2ad3ae['plugins']['get']('TrackChangesEditing');_0x3a6c0a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3a6c0a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3a6c0a['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x143383,'FORMAT_HEADER_ROW')),_0x3a6c0a['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x143383,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b717d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58d6c5=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x1b717d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x58d6c5),_0x1b717d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x58d6c5),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x23e250=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bf193=this['editor']['plugins']['get']('TableUtils');function _0x7dce34({showActiveMarker:_0x901d60=!0x0,setDataAttribute:_0x505d25=!0x0}={}){return(_0x47cb82,_0x437337,_0x3a27c0)=>{const {type:_0x365c6a,id:_0x42c8b7}=_0x190ed2(_0x437337['markerName']);if(!_0x23e250['hasSuggestion'](_0x42c8b7))return;const _0x507d3d=_0x23e250['getSuggestion'](_0x42c8b7),_0x116b33=_0x507d3d['data'];if('formatBlock'!=_0x507d3d['type']||!_0x116b33||'setTableColumnHeader'!=_0x116b33['commandName'])return;if(_0x437337['item'])return void _0x47cb82['stop']();if(!_0x3a27c0['consumable']['consume'](_0x437337['markerRange'],_0x47cb82['name']))return;const _0x4dd0bc=_0x437337['markerRange']['start']['nodeAfter'],_0xe5075=_0x437337['markerRange']['end']['nodeBefore'],_0x2ac07e=_0x4dd0bc['parent']['parent'],{column:_0x27a402}=_0x4bf193['getCellLocation'](_0x4dd0bc),{column:_0x56ff1b}=_0x4bf193['getCellLocation'](_0xe5075);for(let _0x215cfe=_0x27a402;_0x215cfe<=_0x56ff1b;_0x215cfe++){const _0x4a4585=_0x4bf193['createTableWalker'](_0x2ac07e,{'column':_0x215cfe,'includeAllSlots':!0x1});for(const _0x5a7867 of _0x4a4585){const _0x2eae87=_0x5a7867['cell'],_0x5b506f=_0x3a27c0['mapper']['toViewElement'](_0x2eae87);_0x3a27c0['writer']['addClass']('ck-suggestion-marker-'+_0x365c6a,_0x5b506f),_0x505d25&&_0x3a27c0['writer']['setAttribute']('data-suggestion',_0x42c8b7,_0x5b506f),_0x3a27c0['mapper']['bindElementToMarker'](_0x5b506f,_0x437337['markerName']),_0x901d60&&(_0x23e250['activeMarkers']['includes'](_0x437337['markerName'])?_0x3a27c0['writer']['addClass']('ck-suggestion-marker--active',_0x5b506f):_0x3a27c0['writer']['removeClass']('ck-suggestion-marker--active',_0x5b506f));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x7dce34(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5381a9,_0x3d9b79,_0x24f574)=>{_0x24f574['options']['showSuggestionHighlights']&&_0x7dce34({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5381a9,_0x3d9b79,_0x24f574);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x14840a,_0x15c3e0,_0xfabb1)=>{const {type:_0xb6627,id:_0x48d16c}=_0x190ed2(_0x15c3e0['markerName']);if(!_0x23e250['hasSuggestion'](_0x48d16c))return;const _0x444dc0=_0x23e250['getSuggestion'](_0x48d16c),_0x4ec243=_0x444dc0['data'];if('formatBlock'!=_0x444dc0['type']||!_0x4ec243||'setTableColumnHeader'!=_0x4ec243['commandName'])return;const _0x3bef5d=_0xfabb1['mapper']['markerNameToElements'](_0x15c3e0['markerName']);if(_0x3bef5d){for(const _0x530915 of _0x3bef5d)_0xfabb1['writer']['removeClass']('ck-suggestion-marker-'+_0xb6627,_0x530915),_0xfabb1['writer']['removeClass']('ck-suggestion-marker--active',_0x530915),_0xfabb1['writer']['removeAttribute']('data-suggestion',_0x530915),_0xfabb1['mapper']['unbindElementFromMarkerName'](_0x530915,_0x15c3e0['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x484849=this['editor'],_0x38192d=_0x484849['locale'];function _0x249aba(_0x3bd82e){return{'type':'format','content':At(_0x38192d,'*Format:*\x20%0',_0x3bd82e)};}_0x484849['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ac7e7=>{if('formatBlock'!=_0x2ac7e7['type'])return;const {data:_0x38ed24}=_0x2ac7e7;if(_0x38ed24){if('setTableRowHeader'==_0x38ed24['commandName']){const _0x3e8bbf=_0x38ed24['commandParams'][0x0]['forceValue'];return _0x249aba(At(_0x38192d,_0x3e8bbf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x38ed24['commandName']){const _0x1919c9=_0x38ed24['commandParams'][0x0]['forceValue'];return _0x249aba(At(_0x38192d,_0x1919c9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x495525{static get['requires'](){return[Ne];}['afterInit'](){const _0xd6c2ed=this['editor'];if(!_0xd6c2ed['plugins']['has']('TableEditing')||!_0xd6c2ed['config']['get']('table.enableFooters'))return;const _0x10b477=_0xd6c2ed['locale'],_0x548f12=_0xd6c2ed['plugins']['get']('TrackChangesEditing');_0x548f12['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x548f12['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x10b477,'FORMAT_FOOTER_ROW'));}}class we extends _0x495525{['afterInit'](){const _0x5176b8=this['editor'],_0x2782a7=_0x5176b8['locale'],_0x10838d=_0x5176b8['plugins']['get']('TrackChangesEditing');function _0x48ee53(_0x4d432c){return{'type':'format','content':''+At(_0x2782a7,'*Set\x20table\x20type:*\x20%0',_0x4d432c)};}_0x5176b8['plugins']['has']('TableLayout')&&(_0x10838d['enableCommand']('insertTableLayout'),_0x10838d['enableDefaultAttributesIntegration']('tableType'),_0x10838d['descriptionFactory']['registerElementLabel'](_0x41cfe8=>_0x41cfe8['is']('element','table')&&'layout'===_0x41cfe8['getAttribute']('tableType'),_0x40896d=>At(_0x2782a7,'ELEMENT_LAYOUT_TABLE',_0x40896d)),_0x10838d['descriptionFactory']['registerDescriptionCallback'](_0x51d962=>{const {data:_0x19a5b1}=_0x51d962;if(_0x19a5b1&&'tableType'==_0x19a5b1['key'])switch(_0x19a5b1['newValue']){case'layout':return _0x48ee53(At(_0x2782a7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x48ee53(At(_0x2782a7,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x28a6e9=>[_0x28a6e9,null]));class De extends _0x495525{static get['requires'](){return[Ne];}['afterInit'](){const _0x966b3b=this['editor'];if(!_0x966b3b['plugins']['has']('TableClipboard'))return;const _0x4769dd=_0x966b3b['plugins']['get']('TrackChangesEditing'),_0x57c148=_0x966b3b['plugins']['get']('TableUtils'),_0x18f7b4=_0x966b3b['plugins']['get'](Ne),_0x35873e=_0x966b3b['plugins']['get']('TableClipboard'),_0x370b8b=_0x966b3b['plugins']['get']('TableSelection'),_0x16c7fe=_0x966b3b['plugins']['get'](ut);_0x18f7b4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x966b3b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x966b3b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x550031=null,_0x486990=!0x1;_0x16c7fe['on']('contentInsertion',(_0x16e292,_0x106b4b)=>{_0x486990='paste'===_0x106b4b['method'];}),_0x966b3b['model']['on']('insertContent',(_0x40ba1b,_0x27b74c)=>{if(!_0x486990&&null===_0x370b8b['getSelectedTableCells']())return;const [_0x514696,_0x71acbc]=_0x27b74c,_0xf1598d=_0x27b74c[_0x27b74c['length']-0x1];_0xf1598d&&_0xf1598d['forceDefaultExecution']||_0x4769dd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4ab0c8,_0x23209f,_0x229033,_0x4b5017,_0x631d88){if(_0x23209f&&!_0x23209f['is']('documentSelection'))return!0x1;const _0x2cda42=_0x631d88['getTableIfOnlyTableInContent'](_0x4ab0c8,_0x229033);if(!_0x2cda42||!xe(_0x2cda42,void 0x0,_0x4b5017))return!0x1;const _0x262006=_0x4b5017['getSelectionAffectedTableCells'](_0x229033['document']['selection']);if(!_0x262006['length'])return!0x1;const _0x254715=_0x262006[0x0]['findAncestor']('table'),_0x2c4ae4=_0x4b5017['getRowIndexes'](_0x262006),_0x404573=_0x4b5017['getColumnIndexes'](_0x262006),_0x314cf4={'startRow':_0x2c4ae4['first'],'endRow':_0x2c4ae4['last'],'startColumn':_0x404573['first'],'endColumn':_0x404573['last']};return 0x1==_0x262006['length']&&(_0x314cf4['endRow']+=_0x4b5017['getRows'](_0x2cda42)-0x1,_0x314cf4['endColumn']+=_0x4b5017['getColumns'](_0x2cda42)-0x1),xe(_0x254715,_0x314cf4,_0x4b5017);}(_0x514696,_0x71acbc,_0x966b3b['model'],_0x57c148,_0x35873e)&&(_0x40ba1b['stop'](),_0x550031={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x966b3b['model']['change'](()=>{_0x966b3b['model']['insertContent'](_0x27b74c[0x0],_0x27b74c[0x1],_0x27b74c[0x2],{'forceDefaultExecution':!0x0});const _0x339b8c=_0x58e93c(),{rowInsertionRanges:_0x25d402,columnInsertionRanges:_0x2b130f,insertionRanges:_0x47a3d5,deletionRanges:_0x2a4f6e,cells:_0x5cac2a}=_0x550031;_0x25d402['length']&&_0x4769dd['markMultiRangeInsertion'](_0x25d402,'tablePasteRow',{'tablePasteChainId':_0x339b8c}),_0x2b130f['length']&&_0x4769dd['markMultiRangeInsertion'](_0x2b130f,'tablePasteColumn',{'tablePasteChainId':_0x339b8c}),_0x47a3d5['length']&&(_0x4769dd['markMultiRangeInsertion'](_0x47a3d5,'tablePaste',{'tablePasteChainId':_0x339b8c,'skipNestingCheck':!0x0}),_0x47a3d5['forEach'](_0x4c9848=>_0x4c9848['detach']?.())),_0x2a4f6e['length']&&(_0x4769dd['markMultiRangeDeletion'](_0x2a4f6e,'tablePaste',{'tablePasteChainId':_0x339b8c,'skipNestingCheck':!0x0}),_0x2a4f6e['forEach'](_0x5ca40e=>_0x5ca40e['detach']?.()));const _0x3aac28=_0x4769dd['markMultiRangeBlockFormat'](_0x5cac2a['map'](({element:_0x392616})=>_0x392616),{'formatGroupId':_0x58e93c()},[],'tablePasteCell',{'tablePasteChainId':_0x339b8c});if(_0x3aac28){const _0x57158c=_0x3aac28['getMarkers'](),_0x29c1a1=[];for(const {element:_0x59bf85,attributes:_0x491fc8}of _0x5cac2a){if(!_0x491fc8)continue;const _0x22a444=_0x966b3b['model']['createRangeOn'](_0x59bf85),_0x2eb60b=_0x57158c['find'](_0x4e0246=>_0x4e0246['getRange']()['isEqual'](_0x22a444));_0x2eb60b&&_0x29c1a1['push']([_0x2eb60b['name'],_0x491fc8]);}_0x29c1a1['length']&&_0x3aac28['setAttribute']('markerAttributes',Object['fromEntries'](_0x29c1a1));}_0x550031=null;}));},{'priority':_0x25af6a['high']+0xa}),_0x16c7fe['on']('contentInsertion',()=>{_0x486990=!0x1;},{'priority':'lowest'}),_0x966b3b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x474bf5,_0x266a2d)=>{const [_0x1c9c53,_0x3f5dcf,,_0x1d3739]=_0x266a2d;if(!_0x550031)return;_0x474bf5['stop']();const _0x558b16=_0x1c9c53['cell'],_0xe39a1f=_0x3f5dcf,_0x29c548=ve(_0x558b16),_0x272194=ve(_0xe39a1f);_0x474bf5['return']=_0x558b16;let _0x5d3902=null,_0x3d9b52=null;if(_0x272194||_0x29c548){if(_0x29c548&&!_0x272194){_0x1d3739['remove'](_0x558b16['getChild'](0x0));for(const _0x1e9623 of Array['from'](_0xe39a1f['getChildren']()))_0x1d3739['insert'](_0x1e9623,_0x558b16,'end');const _0x13c4d3=_0x550031['rowInsertionIndexes']['includes'](_0x1c9c53['row']),_0x403467=_0x550031['columnInsertionIndexes']['includes'](_0x1c9c53['column']);_0x13c4d3||_0x403467||(_0x5d3902=_0xcc3cc7['fromRange'](_0x1d3739['createRangeIn'](_0x558b16)));}else _0x272194&&!_0x29c548&&(_0x3d9b52=_0x1d3739['createRangeIn'](_0x558b16));}else{const _0x45c9e6=_0x1d3739['createElement']('tableCellSuggestion'),_0x10e9ac=_0x1d3739['createElement']('tableCellSuggestion');_0x1d3739['wrap'](_0x1d3739['createRangeIn'](_0x558b16),_0x10e9ac),_0x1d3739['insert'](_0x45c9e6,_0x558b16,0x0);for(const _0x587869 of Array['from'](_0xe39a1f['getChildren']()))_0x1d3739['insert'](_0x587869,_0x45c9e6,'end');_0x5d3902=_0xcc3cc7['fromRange'](_0x1d3739['createRangeOn'](_0x45c9e6)),_0x3d9b52=_0xcc3cc7['fromRange'](_0x1d3739['createRangeOn'](_0x10e9ac));}const _0x30ca69=Array['from'](_0xe39a1f['getAttributes']())['filter'](([_0x151747])=>Be['includes'](_0x151747));_0x550031['cells']['push']({'element':_0x558b16,'attributes':_0x30ca69['length']?Object['fromEntries'](_0x30ca69):null}),_0x5d3902&&_0x550031['insertionRanges']['push'](_0x5d3902),_0x3d9b52&&_0x550031['deletionRanges']['push'](_0x3d9b52);},{'priority':'high'}),_0x57c148['on']('insertColumns',(_0x4b6baf,_0x23a108)=>{const [_0x57ce3d,_0x3f24b1={}]=_0x23a108;if(!_0x550031)return;const _0x5cd30f=_0x3f24b1['at']||0x0,_0x3a4a79=_0x3f24b1['columns']||0x1;_0x550031['columnInsertionIndexes']=new Array(_0x3a4a79)['fill'](_0x5cd30f)['map']((_0x286e34,_0x50548e)=>_0x286e34+_0x50548e);for(const {cell:_0x4e372c}of _0x57c148['createTableWalker'](_0x57ce3d,{'startColumn':_0x5cd30f,'endColumn':_0x5cd30f+_0x3a4a79-0x1}))_0x550031['columnInsertionRanges']['push'](_0x966b3b['model']['createRangeOn'](_0x4e372c));},{'priority':'low'}),_0x57c148['on']('insertRows',(_0x5a738c,_0x524b75)=>{const [_0x44f6be,_0x455bbe={}]=_0x524b75;if(!_0x550031)return;const _0x1aa767=_0x455bbe['at']||0x0,_0xc0ce01=_0x455bbe['rows']||0x1;_0x550031['rowInsertionIndexes']=new Array(_0xc0ce01)['fill'](_0x1aa767)['map']((_0x4958e4,_0x5e2a1d)=>_0x4958e4+_0x5e2a1d);for(const {cell:_0x2c9977}of _0x57c148['createTableWalker'](_0x44f6be,{'startRow':_0x1aa767,'endRow':_0x1aa767+_0xc0ce01-0x1}))_0x550031['rowInsertionRanges']['push'](_0x966b3b['model']['createRangeOn'](_0x2c9977));},{'priority':'low'}),_0x4769dd['descriptionFactory']['registerDescriptionCallback'](_0x4e0670=>{if(_0x4e0670['subType']&&_0x4e0670['subType']['startsWith']('tablePaste'))return _0x4e0670['previous']?{}:{'type':'insertion','content':At(_0x966b3b['locale'],'*Replace\x20table\x20cells*')};});const _0xba83e=()=>!0x1;for(const _0x541e7b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4769dd['_suggestionFactory']['registerCustomCallback']('insertion',_0x541e7b,'join',_0xba83e),_0x4769dd['_suggestionFactory']['registerCustomCallback']('deletion',_0x541e7b,'join',_0xba83e),_0x4769dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x541e7b,'join',_0xba83e);_0x4769dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xba83e),_0x4769dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xef12fa,_0x3a37f2,_0x45b0c5)=>{const _0x25b979=_0xef12fa['map'](_0x2b0f89=>_0x2b0f89['getContainedElement']())['filter'](_0x48da9b=>_0x48da9b),_0x4c4142=new Map(_0x25b979['map'](_0x533321=>[_0x533321,null]));if(_0x550031){for(const {element:_0x5531f8,attributes:_0x5a743a}of _0x550031['cells'])_0x5a743a&&_0x4c4142['set'](_0x5531f8,_0x5a743a);}else{if(_0x45b0c5&&_0x45b0c5['markerAttributes'])for(const [_0x45c134,_0x938f95]of Object['entries'](_0x45b0c5['markerAttributes'])){const _0x303e07=_0x966b3b['model']['markers']['get'](_0x45c134),_0x1ec51f=_0x303e07?_0x303e07['getRange']()['getContainedElement']():null;_0x1ec51f&&_0x4c4142['set'](_0x1ec51f,_0x938f95);}}_0x966b3b['model']['change'](_0x4ef901=>{for(const [_0x143f04,_0x2a0801]of _0x4c4142)_0x4ef901['setAttributes']({...Fe,..._0x2a0801},_0x143f04);});});const _0x38aba8=(_0x2e667e,_0x52221f)=>{_0x4769dd['_suggestionFactory']['registerCustomCallback'](_0x2e667e,'tablePaste',_0x52221f,(_0x51c945,_0x1d9dfc,_0x4b762d)=>{_0x966b3b['model']['change'](_0x47a3fd=>{const _0x213d92=[];for(const _0x1ac479 of _0x51c945){const _0x235043=_0x1ac479['start']['nodeAfter'];_0x235043['is']('element','tableCellSuggestion')&&_0x213d92['push'](_0x235043);}_0x4769dd['_suggestionFactory']['getSuggestionCallback'](_0x2e667e,null,_0x52221f)(_0x51c945,_0x1d9dfc,_0x4b762d);for(const _0x834724 of _0x213d92)'$graveyard'!=_0x834724['root']['rootName']&&_0x47a3fd['unwrap'](_0x834724);});});};_0x38aba8('insertion','accept'),_0x38aba8('insertion','discard'),_0x38aba8('deletion','accept'),_0x38aba8('deletion','discard'),_0x4769dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5c66f1=>{const _0xcbc743=_0x5c66f1['map'](_0xfb63f7=>_0xfb63f7['getContainedElement']()),_0x1627e4=_0xcbc743[0x0]['findAncestor']('table'),{minRow:_0x33a70e,maxRow:_0x1e0fef}=_0x18f7b4['_getCoordsForCells'](_0xcbc743);_0x57c148['removeRows'](_0x1627e4,{'at':_0x33a70e,'rows':_0x1e0fef-_0x33a70e+0x1});}),_0x4769dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x56aaa7=>{const _0xa5bee=_0x56aaa7['map'](_0x2707fc=>_0x2707fc['getContainedElement']()),_0x2b0b92=_0xa5bee[0x0]['findAncestor']('table'),{minColumn:_0x150f58,maxColumn:_0x10d33f}=_0x18f7b4['_getCoordsForCells'](_0xa5bee);_0x57c148['removeColumns'](_0x2b0b92,{'at':_0x150f58,'columns':_0x10d33f-_0x150f58+0x1});});const _0x362018=(_0x5093d7,_0x101caa)=>{if(!_0x101caa['subType']||!_0x101caa['subType']['startsWith']('tablePaste'))return;const _0x5ad095=_0x101caa['attributes']['tablePasteChainId'],_0xaf60ae=_0x4769dd['getSuggestions']()['filter'](_0x12429b=>_0x12429b['isInContent']&&_0x12429b['attributes']&&_0x12429b['attributes']['tablePasteChainId']==_0x5ad095);_0xaf60ae['length']&&_0x101caa['getAllAdjacentSuggestions']()['length']!=_0xaf60ae['length']&&_0xaf60ae['reduce']((_0x14d142,_0x3f0173)=>(_0x14d142['next']=_0x3f0173,_0x3f0173['previous']=_0x14d142,_0x3f0173));};function _0xf87e05(_0x3e7bc9,_0x5d5aae=!0x0){const {id:_0x42a7e5,authorId:_0x56f9da}=_0x190ed2(_0x3e7bc9['markerName']),_0x6ae265=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5a6aca=_0x4769dd['activeMarkers']['includes'](_0x3e7bc9['markerName']);return _0x5a6aca&&_0x6ae265['push']('ck-suggestion-marker--active'),{'classes':_0x6ae265,'attributes':{'data-suggestion':_0x42a7e5,'data-author-id':_0x56f9da},'priority':_0x5a6aca&&_0x5d5aae?0xbc2:0xbb8};}_0x4769dd['on']('suggestionLoaded',_0x362018,{'priority':'high'}),_0x4769dd['on']('suggestionUnloaded',_0x362018,{'priority':'high'}),_0x966b3b['model']['document']['registerPostFixer'](()=>{let _0x4ae1ff=!0x1;const _0x1bf98d=Array['from'](_0x966b3b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d6cbe,data:_0xafacac}of _0x1bf98d){const {group:_0x2514f6,type:_0x4862fa,id:_0x5b1ffd}=_0x190ed2(_0x5d6cbe);if('suggestion'!=_0x2514f6||'deletion'!=_0x4862fa||_0xafacac['oldRange'])continue;if(!_0x4769dd['hasSuggestion'](_0x5b1ffd))continue;const _0x10c1d8=_0x4769dd['getSuggestion'](_0x5b1ffd)['getRanges'](),_0x1d3c07=_0x966b3b['plugins']['get']('Users')['me'];for(const _0x49ee9c of _0x4769dd['getSuggestions']()){if(!_0x49ee9c['isInContent']||_0x49ee9c['author']!=_0x1d3c07)continue;if('formatBlock'!=_0x49ee9c['type']||'tablePasteCell'!=_0x49ee9c['subType'])continue;if(_0x49ee9c['getRanges']()['every'](_0x44f2cf=>_0x10c1d8['some'](_0x9e1d1f=>_0x9e1d1f['containsRange'](_0x44f2cf,!0x0)))){for(const _0x57472a of _0x49ee9c['getAllAdjacentSuggestions']())_0x57472a['isInContent']&&(_0x57472a['discard'](),_0x4ae1ff=!0x0);}}}return _0x4ae1ff;}),_0x966b3b['model']['document']['registerPostFixer'](_0xf054ae=>{const _0x500fc0=_0x966b3b['commands']['get']('redo');if(!_0x500fc0||!_0x500fc0['_createdBatches']['has'](_0xf054ae['batch']))return!0x1;let _0x45caba=!0x1;const _0x24d0f1=_0x966b3b['plugins']['get']('Users')['me'],_0xf4fe78=_0x966b3b['model']['document']['differ']['getChanges'](),_0x1e5172=Array['from'](_0x966b3b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x460518,data:_0x365fe0})=>{const {group:_0x13bd45,subType:_0x3df87a,authorId:_0x505434}=_0x190ed2(_0x460518);return'suggestion'==_0x13bd45&&'tablePaste'==_0x3df87a&&_0x505434==_0x24d0f1['id']&&!_0x365fe0['oldRange'];});for(const _0x15a4e0 of _0xf4fe78){if('insert'!=_0x15a4e0['type']||'tableCellSuggestion'!=_0x15a4e0['name']||0x1!=_0x15a4e0['length'])continue;const _0x1cc060=_0xf054ae['createRange'](_0x15a4e0['position'],_0x15a4e0['position']['getShiftedBy'](0x1));if(!_0x1e5172['find'](({data:_0x368f2e})=>_0x368f2e['newRange']['isEqual'](_0x1cc060))){for(const {name:_0x1e527e,data:_0x4da79e}of _0x1e5172)if(_0x1cc060['containsRange'](_0x4da79e['newRange'])){_0xf054ae['updateMarker'](_0x1e527e,{'range':_0x1cc060}),_0x45caba=!0x0;break;}}}return _0x45caba;}),_0x966b3b['model']['document']['registerPostFixer'](_0x37c611=>{let _0x17acb9=!0x1;const _0x53fe18=_0x966b3b['plugins']['get']('Users')['me'],_0x4be3dd=_0x4769dd['getSuggestions']()['filter'](_0x52444f=>_0x52444f['isInContent']&&_0x52444f['author']==_0x53fe18),_0x15f7e8=new Set(),_0x2e4bae=new Set();for(const _0x3cebec of _0x4be3dd)if('tablePaste'==_0x3cebec['subType'])for(const _0x2ffef7 of _0x3cebec['getMarkers']()){const _0x20a649=_0x2ffef7['getRange']()['getContainedElement']();if(_0x20a649){if(_0x20a649['is']('element','tableCellSuggestion')&&ve(_0x20a649)){_0x3cebec['removeMarker'](_0x2ffef7['name']),_0x15f7e8['add'](_0x20a649),_0x17acb9=!0x0;const _0x145d8a=_0x20a649['nextSibling'],_0xc6396c=_0x20a649['previousSibling'],_0x349491=_0x145d8a&&_0x145d8a['is']('element','tableCellSuggestion'),_0x2b317b=_0xc6396c&&_0xc6396c['is']('element','tableCellSuggestion');_0x349491&&!_0x15f7e8['has'](_0x145d8a)&&_0x2e4bae['add'](_0x145d8a),_0x2b317b&&!_0x15f7e8['has'](_0xc6396c)&&_0x2e4bae['add'](_0xc6396c);}else _0x20a649['is']('element','paragraph')&&_0x20a649['isEmpty']&&(_0x3cebec['removeMarker'](_0x2ffef7['name']),_0x17acb9=!0x0);}}else{if('tablePasteCell'==_0x3cebec['subType']){if(!_0x3cebec['attributes']||!_0x3cebec['attributes']['tablePasteChainId'])continue;const _0x37d3b5=_0x3cebec['attributes']['markerAttributes'];if(_0x37d3b5&&Object['keys'](_0x37d3b5)['length'])continue;const _0x40f9d7=_0x3cebec['attributes']['tablePasteChainId'];let _0x1f3023=!0x0,_0x34f248=!0x0;for(const _0xeae6aa of _0x4be3dd)if(_0xeae6aa['subType']&&_0xeae6aa['subType']['startsWith']('tablePaste')){if(!_0xeae6aa['attributes']['tablePasteChainId']){_0x34f248=!0x1;break;}if(_0xeae6aa['id']!=_0x3cebec['id']&&_0xeae6aa['attributes']['tablePasteChainId']==_0x40f9d7){_0x1f3023=!0x1;break;}}_0x34f248&&_0x1f3023&&(_0x3cebec['removeMarkers'](),_0x17acb9=!0x0);}}for(const _0x3532af of _0x15f7e8)_0x37c611['remove'](_0x3532af);for(const _0xf5092a of _0x2e4bae)_0x37c611['unwrap'](_0xf5092a);return _0x17acb9;}),_0x966b3b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5aca61=>_0xf87e05(_0x5aca61),'converterPriority':'high'}),_0x966b3b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3643a6,_0x5de75d)=>_0x5de75d['options']['showSuggestionHighlights']?_0xf87e05(_0x3643a6,!0x1):null,'converterPriority':'high'});const _0x719e1f=_0x966b3b['editing']['view'];this['listenTo'](_0x719e1f['document'],'clipboardOutput',(_0xbfc31f,_0x585bb4)=>{const _0x157d02=[];for(const _0x4a8bdf of _0x719e1f['createRangeIn'](_0x585bb4['content'])['getItems']())_0x4a8bdf['is']('element','suggestion-td')&&_0x157d02['push'](_0x4a8bdf);_0x719e1f['change'](_0x5c1760=>{for(const _0x5026d2 of _0x157d02)_0x5c1760['move'](_0x5c1760['createRangeIn'](_0x5026d2),_0x5c1760['createPositionBefore'](_0x5026d2)),_0x5c1760['remove'](_0x5026d2);});});}}function ve(_0xe639d5){if(_0xe639d5['isEmpty'])return!0x0;const _0x216488=_0xe639d5['getChild'](0x0);return _0x216488['is']('element','paragraph')&&_0x216488['isEmpty'];}function xe(_0x4429d9,_0x335f1b={},_0x442154){for(const {isAnchor:_0x5bc714,cellHeight:_0x432c36,cellWidth:_0x1f49ea}of _0x442154['createTableWalker'](_0x4429d9,{'includeAllSlots':!0x0,..._0x335f1b}))if(!_0x5bc714||0x1!=_0x432c36||0x1!=_0x1f49ea)return!0x1;return!0x0;}class Pe extends _0x495525{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x59d0de=this['editor']['plugins']['get']('TrackChangesEditing');_0x59d0de['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x59d0de['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x59d0de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59d0de['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x59d0de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x59d0de['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x56603b,_0xdfb5c){const _0x302784=this['editor']['plugins']['get']('TrackChangesEditing'),_0x390808=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4e35fd=_0xdfb5c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x503ba3=_0x390808['getColumnGroupElement'](_0x4e35fd);let _0x498f8f=_0x503ba3?_0x390808['getTableColumnsWidths'](_0x503ba3):null,_0x56c846=_0x4e35fd['getAttribute']('tableWidth')||null;const _0x3d2a07=_0xdfb5c['tableWidth']||_0x56c846,_0xbd1ea=_0xdfb5c['columnWidths']||_0x498f8f,_0x3abdc2=this['editor']['plugins']['get']('Users')['me'];for(const _0x7a2281 of _0x302784['getSuggestions']()){const _0x6c3b96=_0x7a2281['getContainedElement']();if('resizeTable'===_0x7a2281['subType']&&_0x6c3b96===_0x4e35fd){_0x7a2281['author']!==_0x3abdc2&&_0x7a2281['discard']();const _0x5669a1=_0x7a2281['data']['commandParams'];_0x56c846=_0x5669a1[0x0]['tableWidth'],_0x498f8f=_0x5669a1[0x0]['columnWidths'];break;}}_0x56603b({'table':_0x4e35fd,'tableWidth':_0x3d2a07,'columnWidths':_0xbd1ea}),_0x302784['markBlockFormat'](_0x4e35fd,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x56c846,'columnWidths':_0x498f8f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x677154){if('formatBlock'!=_0x677154['type']&&'formatInline'!=_0x677154['type'])return;const {data:_0x2d4b6b}=_0x677154;if(_0x2d4b6b&&'resizeTable'===_0x2d4b6b['formatGroupId']){const _0x3eebce='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x3eebce)};}}}class Ue extends _0x495525{['afterInit'](){const _0x4e49ea=this['editor'];_0x4e49ea['plugins']['has']('Template')&&_0x4e49ea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x495525{['afterInit'](){const _0x5a223b=this['editor'];if(!_0x5a223b['commands']['get']('insertTableOfContents'))return;_0x5a223b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7060ac=_0x5a223b['plugins']['get']('TrackChangesEditing'),_0xc1a57d=_0x5a223b['locale'];_0x7060ac['descriptionFactory']['registerElementLabel']('tableOfContents',_0x391d65=>At(_0xc1a57d,'ELEMENT_TABLE_OF_CONTENTS',_0x391d65));}}class He extends _0x495525{['afterInit'](){const _0x1af47f=this['editor'];if(!_0x1af47f['plugins']['has']('Title'))return;_0x1af47f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x1af47f['locale'],'ELEMENT_TITLE')),_0x1af47f['model']['document']['registerPostFixer'](_0x2c24a8=>{let _0x566eea=!0x1;const _0x2acb25=Array['from'](_0x1af47f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2953d3,data:_0x204ebe}of _0x2acb25){const {group:_0x3bce48}=_0x190ed2(_0x2953d3);if('suggestion'!==_0x3bce48||!_0x204ebe['newRange'])continue;const _0x22420d=_0x204ebe['newRange'],_0xfeb2e6=_0x22420d['end']['nodeBefore'];if(!_0xfeb2e6||!_0xfeb2e6['is']('element','title-content'))continue;if(!_0x22420d['start']['isTouching'](_0x22420d['end']))continue;const _0x16595b=_0x1af47f['model']['schema']['getNearestSelectionRange'](_0x22420d['end'],'forward');if(_0x16595b&&_0x16595b['isCollapsed']){const _0x5047e5=_0x2c24a8['createRange'](_0x22420d['start'],_0x16595b['start']);_0x5047e5['isEqual'](_0x22420d)||(_0x2c24a8['updateMarker'](_0x2953d3,{'range':_0x5047e5}),_0x566eea=!0x0);}_0x566eea||(_0x2c24a8['removeMarker'](_0x2953d3),_0x566eea=!0x0);}return _0x566eea;});}}class $e extends _0x495525{['afterInit'](){const _0x5b41e2=this['editor'],_0x3845e9=_0x5b41e2['plugins']['get']('TrackChangesEditing');_0x5b41e2['plugins']['has']('Uploadcare')&&(_0x3845e9['enableCommand']('uploadcare'),_0x5b41e2['plugins']['has']('UploadcareImageEdit')&&(_0x3845e9['enableCommand']('uploadcareImageEdit'),_0x3845e9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3845e9['descriptionFactory']['registerDescriptionCallback'](_0xbdbb2c=>{if('attribute'!=_0xbdbb2c['type'])return;const {data:_0x3b481f}=_0xbdbb2c;return _0x3b481f&&'uploadcareImageId'==_0x3b481f['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x495525{['afterInit'](){const _0x986084=this['editor'],_0x8fc7cc=_0x986084['plugins']['get']('TrackChangesEditing');_0x986084['plugins']['has']('UndoEditing')&&(_0x8fc7cc['enableCommand']('undo'),_0x8fc7cc['enableCommand']('redo'));}}class Ve extends _0x495525{static get['requires'](){return[Ne];}['afterInit'](){const _0xf88257=this['editor'];if(!_0xf88257['plugins']['has']('TableCaptionEditing'))return;_0xf88257['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x495525{['tableProperties'];['tableCellProperties'];constructor(_0x5809c0){super(_0x5809c0),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 _0x21ba0c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x537b10 of this['tableProperties'])_0x21ba0c['enableCommand'](_0x537b10,(_0x3c5037,_0x2cba73)=>{const _0x3cdf4b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x537b10,[_0x3cdf4b],this['tableProperties'],'tableProperties',_0x3c5037,_0x2cba73);});_0x21ba0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x21ba0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x21ba0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c2eb4,_0xe005e8)=>this['handleDiscardAction'](this['tableProperties'],_0x4c2eb4,_0xe005e8)),_0x21ba0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x11b892 of this['tableCellProperties'])this['editor']['commands']['get'](_0x11b892)&&_0x21ba0c['enableCommand'](_0x11b892,(_0x223c24,_0x433e95)=>{const _0x19c061=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x11b892,_0x19c061,this['tableCellProperties'],'tableCellProperties',_0x223c24,_0x433e95);});_0x21ba0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x21ba0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x21ba0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x366503,_0x3f3828)=>this['handleDiscardAction'](this['tableCellProperties'],_0x366503,_0x3f3828)),_0x21ba0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x21ba0c['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x21ba0c['descriptionFactory']['registerDescriptionCallback'](_0x604884=>this['handleSuggestionDescription'](_0x604884)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x34b154,_0x42abd9,_0x271071,_0xdf62c2,_0x338d81,_0x3c5703){const _0x506a27=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c5703['batch'],()=>{for(const _0x240bae of _0x42abd9){if(this['_getSuggestion'](_0x240bae,_0xdf62c2))_0x338d81(_0x3c5703);else{const _0x4b8a89={};for(const _0x4b5f8b of _0x271071){const _0x3f9b84=_0x240bae['getAttribute'](_0x4b5f8b);void 0x0!==_0x3f9b84&&(_0x4b8a89[_0x4b5f8b]=_0x3f9b84);}_0x338d81(_0x3c5703),_0x506a27['markBlockFormat'](_0x240bae,{'commandParams':[_0x4b8a89]},[],_0xdf62c2);}}});}['handleDiscardAction'](_0x2b2342,_0x10c567,_0x508be6){const _0x244416=_0x10c567[0x0]['start']['nodeAfter'],_0x183b47=_0x508be6['commandParams'][0x0];this['editor']['model']['change'](_0x31ecdd=>{for(const _0x8cf07f of _0x2b2342)void 0x0!==_0x183b47[_0x8cf07f]?_0x31ecdd['setAttribute'](_0x8cf07f,_0x183b47[_0x8cf07f],_0x244416):_0x31ecdd['removeAttribute'](_0x8cf07f,_0x244416);});}['handleSuggestionDescription'](_0x356e40){if(_0x356e40['data'])switch(_0x356e40['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'](_0x3f0516,_0xeffc38){const _0x504e36=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x104455 of _0x504e36['getSuggestions']({'skipNotAttached':!0x0})){const _0xbeff5e=_0x104455['getContainedElement']();if(_0x104455['subType']===_0xeffc38&&_0xbeff5e===_0x3f0516)return _0x104455;}return null;}['_registerTablePropertiesAttributes'](){const _0xac4aac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ca26=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x358782 of _0x31ca26){const _0x436678=_0x358782['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xac4aac['descriptionFactory']['registerAttributeLabel'](_0x358782,At(this['editor']['locale'],'FORMAT_'+_0x436678));}}}class ze extends _0x495525{['afterInit'](){const _0xd1b7f6=this['editor'];if(!_0xd1b7f6['plugins']['has']('LineHeight'))return;const _0xa76b19=_0xd1b7f6['plugins']['get']('TrackChangesEditing'),_0x527dde=_0xd1b7f6['locale'];_0xa76b19['enableDefaultAttributesIntegration']('lineHeight'),_0xa76b19['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x527dde,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x495525{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2e053f,_0x47c2bd,_0x31a878,_0x5ca832,_0x2132e4,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(_0x55cbe3){super(_0x55cbe3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c0572,_0x1032e5,_0xf60215,_0x5645ed)=>{this['_model']['change'](()=>{for(const _0x29bc1c of[..._0x5645ed,..._0xf60215])this['_model']['markers']['has'](_0x29bc1c)&&_0x55cbe3['editing']['reconvertMarker'](_0x29bc1c);});}),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']=_0x55cbe3['plugins']['get'](_0x2e053f),this['_suggestionsConversion']=_0x55cbe3['plugins']['get'](_0x47c2bd),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x55cbe3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x55cbe3['config']['get']('trackChanges.trackFormatChanges'),_0x55cbe3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x55cbe3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x55cbe3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x14bd24=this['editor'];_0x14bd24['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe41afe,{writer:_0x4e40a4})=>{let _0x5e2a4b='suggestion:'+_0xe41afe['getAttribute']('suggestion-type')+':'+_0xe41afe['getAttribute']('id');return _0xe41afe['getAttribute']('marker-count')&&(_0x5e2a4b+=':'+_0xe41afe['getAttribute']('marker-count')),_0x4e40a4['createElement']('$marker',{'data-name':_0x5e2a4b});}}),_0x14bd24['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x14bd24['model']['document']['registerPostFixer'](_0x4a92a4=>{let _0x3f88f3=!0x1;const _0x4c9f66=Array['from'](_0x14bd24['model']['document']['differ']['getChangedMarkers']()),_0x48d9c3=new Set();for(const {name:_0x27b60e,data:_0x365439}of _0x4c9f66){const {group:_0x440130,type:_0x2b4f47,subType:_0x2414ba,id:_0x19812e}=_0x190ed2(_0x27b60e);if('suggestion'!==_0x440130)continue;const _0x44c687=_0x2414ba?'suggestion:'+_0x2b4f47+':'+_0x2414ba+':'+_0x19812e:'suggestion:'+_0x2b4f47+':'+_0x19812e,_0xce288c=_0x14bd24['model']['markers']['getMarkersGroup'](_0x44c687),_0x2a16fb=_0x14bd24['model']['markers']['get'](_0x27b60e),_0x4d7a10=this['_suggestions']['get'](_0x19812e);if(null!=_0x365439['newRange']){'formatInline'==_0x2b4f47&&(_0x3f88f3=_0x3f88f3||Ze(_0x365439['newRange'],_0x27b60e,_0x4a92a4,_0x14bd24['model']['schema']));const _0x5b2361='attribute'==_0x2b4f47&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x2414ba)),_0x2100fe='attribute'==_0x2b4f47&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x2414ba));if(_0x365439['newRange']['isCollapsed']||'$graveyard'==_0x365439['newRange']['root']['rootName']||'formatBlock'==_0x2b4f47&&!tn(_0x365439['newRange'])||_0x5b2361&&!tn(_0x365439['newRange'])||_0x2100fe&&en(_0x365439['newRange'])||'deletion'==_0x2b4f47&&en(_0x365439['newRange'])||_0x2a16fb&&nn(_0x2a16fb,_0xce288c))_0x4a92a4['removeMarker'](_0x27b60e),_0x3f88f3=!0x0;else{if(!_0x4d7a10||!_0x4d7a10['isInContent'])continue;if(_0x365439['newRange']&&_0x365439['oldRange']&&_0x365439['newRange']['isEqual'](_0x365439['oldRange']))continue;_0x48d9c3['add'](_0x4d7a10);}}}return _0x48d9c3['size']>0x0&&(_0x3f88f3=!!this['_joinWithAdjacentSuggestions'](_0x48d9c3)||_0x3f88f3),_0x3f88f3;}),_0x14bd24['model']['document']['registerPostFixer'](_0x3f2d42=>{let _0x38c65c=!0x1;for(const _0x2dc31c of _0x14bd24['model']['document']['differ']['getChanges']())if('insert'==_0x2dc31c['type'])for(const _0x17740c of this['_suggestions']['values']()){if(_0x17740c['isMultiRange']||!_0x17740c['isInContent'])continue;const _0x313009='formatBlock'==_0x17740c['type'],_0x540041=this['_getAttributeKey'](_0x17740c),_0x3041bd=_0x540041&&this['_suggestionsConversion']['isBlockAttribute'](_0x540041);if(!_0x313009&&!_0x3041bd)continue;const _0x199bf4=_0x17740c['getFirstRange']();if(_0x199bf4['start']['parent']!=_0x199bf4['end']['parent']&&!_0x199bf4['end']['isAtEnd']){const _0xe3230e=_0x14bd24['model']['createPositionAt'](_0x199bf4['start']['nodeAfter'],'end'),_0x300e08=_0x14bd24['model']['createRange'](_0x199bf4['start'],_0xe3230e);_0x3f2d42['updateMarker'](_0x17740c['getFirstMarker'](),{'range':_0x300e08}),_0x38c65c=!0x0;}}return _0x38c65c;}),_0x14bd24['model']['document']['registerPostFixer'](_0x309b5a=>this['_processAttributeChanges'](_0x309b5a)),_0x14bd24['model']['document']['registerPostFixer'](_0x35b532=>!_0x35b532['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x35b532)),_0x14bd24['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x14bd24['model']['document']['on']('change:data',(_0x495770,_0xcee2d)=>{if(!_0xcee2d['isLocal']||_0xcee2d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3214f8=_0x14bd24['model']['document']['differ']['getChanges']();if(0x0==_0x3214f8['length'])return;const _0x526b8b=[],_0x52af92=_0x3214f8['filter'](_0x1b7ff8=>'attribute'==_0x1b7ff8['type']),_0x485880=_0x3214f8['filter'](_0x18a0ef=>'insert'==_0x18a0ef['type']&&'$text'!=_0x18a0ef['name']);for(const _0x32ce71 of _0x52af92)this['_suggestionsConversion']['isRegisteredAttribute'](_0x32ce71['attributeKey'])&&_0x526b8b['push']({'key':_0x32ce71['attributeKey'],'newValue':_0x32ce71['attributeNewValue'],'oldValue':_0x32ce71['attributeOldValue'],'range':sn(_0x32ce71['range'],_0x14bd24['model'])});for(const _0xad3292 of _0x485880){if('rename'!=_0xad3292['action']&&'refresh'!=_0xad3292['action'])continue;const _0x2ab14e=rn(_0xad3292['position']['nodeAfter'],_0x14bd24['model']),_0x25a871=_0xad3292['before'];'rename'==_0xad3292['action']&&_0x526b8b['push']({'key':Ke,'newValue':_0xad3292['name'],'oldValue':_0x25a871['name'],'range':_0x2ab14e});for(const [_0x4092d4,_0x1192e1]of _0x25a871['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4092d4))continue;const _0xafbdd2=_0xad3292['attributes']['get'](_0x4092d4);_0x1192e1!==_0xafbdd2&&_0x526b8b['push']({'key':_0x4092d4,'newValue':_0xafbdd2,'oldValue':_0x1192e1,'range':_0x2ab14e});}for(const [_0x30b662,_0x46c0b6]of _0xad3292['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x30b662)&&(_0x25a871['attributes']['has'](_0x30b662)||_0x526b8b['push']({'key':_0x30b662,'newValue':_0x46c0b6,'oldValue':null,'range':_0x2ab14e}));}0x0!=_0x526b8b['length']&&_0x14bd24['model']['enqueueChange'](_0xcee2d,_0x2ff44e=>{const _0x1097e3=_0x58e93c();for(const {range:_0x1e862b,key:_0x5ca637,oldValue:_0x1a5895,newValue:_0x4c2892}of _0x526b8b)this['markAttributeChange'](_0x1e862b,_0x5ca637,_0x1a5895,_0x4c2892,{'groupId':_0x1097e3});this['_reduceExistingSuggestions'](_0x2ff44e,_0x526b8b);});},{'priority':'lowest'}),_0x14bd24['model']['markers']['on']('update:suggestion',(_0x545ece,_0x39718c,_0x5f1384)=>{if(null==_0x5f1384){const {id:_0x5748a3}=_0x190ed2(_0x39718c['name']),_0x1bdf74=this['_suggestions']['get'](_0x5748a3);_0x1bdf74&&_0x1bdf74['addMarkerName'](_0x39718c['name']);}}),_0x14bd24['model']['document']['on']('change:data',()=>{const _0x1bb50b=Array['from'](_0x14bd24['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1d34da=>'suggestion'===_0x190ed2(_0x1d34da['name'])['group']);if(0x0===_0x1bb50b['length'])return;_0x1bb50b['sort']((_0x296147,_0x119f25)=>{const _0x9b5620=_0x296147['data']['oldRange'],_0xc49707=_0x119f25['data']['oldRange'];return null===_0x9b5620&&null===_0xc49707?0x0:null===_0x9b5620&&null!==_0xc49707?-0x1:null!==_0x9b5620&&null===_0xc49707?0x1:_0x9b5620['start']['isBefore'](_0xc49707['start'])?-0x1:0x1;});const _0x4118cf=new Set(),_0x342c5a=new Set();for(const {name:_0x50a366,data:_0x55f063}of _0x1bb50b){const {id:_0x5d81a8}=_0x190ed2(_0x50a366);if(null===_0x55f063['oldRange']){const _0x5515ed=this['_handleNewSuggestionMarker'](_0x50a366);_0x342c5a['add'](_0x5515ed);}else{const _0x83f686=this['_suggestions']['get'](_0x5d81a8);null!==_0x55f063['newRange']||_0x83f686['isInContent']?(_0x4118cf['add'](_0x83f686['head']),_0x342c5a['add'](_0x83f686)):this['_removeSuggestion'](_0x83f686);}}_0x342c5a['size']>0x0&&this['_refreshSuggestionsChain'](_0x342c5a);for(const _0xa49678 of _0x4118cf)this['fire']('suggestionChanged',_0xa49678);}),_0x14bd24['model']['on']('applyOperation',(_0x1fb304,_0x4ca104)=>{const _0x1ede00=_0x4ca104[0x0];if(!this['_suggestions']['size'])return;if(!_0x1ede00['isDocumentOperation'])return;if(_0x1ede00['batch']['isUndo']||!_0x1ede00['batch']['isLocal'])return;let _0x132746,_0x1bfe95;switch(_0x1ede00['type']){case'insert':_0x132746=_0x14bd24['model']['createPositionAt'](_0x1ede00['position']),_0x1bfe95=_0x132746['getShiftedBy'](_0x1ede00['howMany']);break;case'split':_0x132746=_0x14bd24['model']['createPositionAt'](_0x1ede00['splitPosition']),_0x1bfe95=_0x14bd24['model']['createPositionAt'](_0x1ede00['moveTargetPosition']);break;case'move':_0x132746=_0x14bd24['model']['createPositionAt'](_0x1ede00['targetPosition']),_0x1bfe95=_0x132746['getShiftedBy'](_0x1ede00['howMany']);break;default:return;}const _0x10c1c2=_0x14bd24['model']['createRange'](_0x132746,_0x1bfe95);_0x14bd24['model']['change'](()=>{for(const {suggestion:_0x5cee6c,meta:_0x14c590}of this['_findSuggestions'](_0x10c1c2)){if(_0x5cee6c['isMultiRange'])continue;if('formatInline'==_0x5cee6c['type'])continue;const _0x162d27=this['_getAttributeKey'](_0x5cee6c);if(_0x162d27&&this['_suggestionsConversion']['isBlockAttribute'](_0x162d27)&&'split'!=_0x1ede00['type'])continue;const _0x4f1831=_0x5cee6c['data']&&_0x5cee6c['data']['multipleBlocks'];('formatBlock'!=_0x5cee6c['type']||'split'==_0x1ede00['type']&&!_0x4f1831)&&(_0x14c590['containsRangeInObject']||'insertion'==_0x5cee6c['type']&&_0x14c590['isOwn']||_0x5cee6c['getFirstRange']()['containsRange'](_0x10c1c2)&&this['_breakSuggestionMarker'](_0x5cee6c,_0x132746,_0x1bfe95));}});},{'priority':'lowest'}),_0x14bd24['model']['on']('deleteContent',(_0x2a143e,_0x3f9ced)=>{const _0x440701=_0x3f9ced[0x0],_0x5adece=_0x3f9ced[0x1];if(_0x5adece&&_0x5adece['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x440701['isCollapsed'])return;const _0x55c612=_0x14bd24['model']['schema'],{start:_0x112e76,end:_0x313f38}=_0x440701['getFirstRange'](),_0x57b4c4=_0x112e76['nodeAfter']&&_0x55c612['isLimit'](_0x112e76['nodeAfter'])?null:_0x55c612['getNearestSelectionRange'](_0x112e76,'forward'),_0x266cad=_0x313f38['nodeBefore']&&_0x55c612['isLimit'](_0x313f38['nodeBefore'])?null:_0x55c612['getNearestSelectionRange'](_0x313f38,'backward'),_0x5242b3=_0x14bd24['model']['createRange'](_0x57b4c4?_0x57b4c4['start']:_0x112e76,_0x266cad?_0x266cad['end']:_0x313f38);_0x14bd24['model']['change'](_0x3b35d6=>{this['markDeletion'](_0x5242b3);const _0x482b3b=_0x14bd24['model']['schema']['getNearestSelectionRange'](_0x5242b3['start']);_0x440701['is']('documentSelection')?_0x3b35d6['setSelection'](_0x482b3b):_0x440701['setTo'](_0x482b3b);}),_0x2a143e['stop']();},{'priority':_0x25af6a['normal']+0xa}),_0x14bd24['model']['on']('insertContent',(_0x20fecd,_0x4ccfda)=>{const _0x2c2434=_0x4ccfda[_0x4ccfda['length']-0x1];_0x2c2434&&_0x2c2434['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x14bd24['model']['change'](()=>{let _0x518327=_0x14bd24['model']['insertContent'](_0x4ccfda[0x0],_0x4ccfda[0x1],_0x4ccfda[0x2],{'forceDefaultExecution':!0x0});if(!_0x518327)return;_0x20fecd['return']=_0x518327['clone']();const _0x11c972=_0x518327['end']['nodeBefore'],_0x20e947=_0x14bd24['model']['schema'];_0x11c972&&_0x20e947['isBlock'](_0x11c972)&&!_0x20e947['isObject'](_0x11c972)&&(_0x518327=_0x14bd24['model']['createRange'](_0x518327['start'],_0x14bd24['model']['createPositionAt'](_0x11c972,'end'))),this['markInsertion'](_0x518327);}),_0x20fecd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x10e03d=new dt(_0x14bd24,this['_suggestions']);_0x14bd24['commands']['add']('acceptSuggestion',_0x10e03d),this['enableCommand']('acceptSuggestion');const _0xcbbba=new ft(_0x14bd24,this['_suggestions']);_0x14bd24['commands']['add']('discardSuggestion',_0xcbbba),this['enableCommand']('discardSuggestion'),_0x14bd24['commands']['add']('acceptAllSuggestions',new Lt(_0x14bd24,_0x10e03d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x14bd24['commands']['add']('discardAllSuggestions',new Lt(_0x14bd24,_0xcbbba,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x14bd24['commands']['add']('acceptSelectedSuggestions',new It(_0x14bd24,_0x10e03d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x14bd24['commands']['add']('discardSelectedSuggestions',new It(_0x14bd24,_0xcbbba,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x41713e=_0x14bd24['plugins']['get'](_0x2e053f);this['listenTo'](_0x41713e,'addComment',(_0x1b78de,{threadId:_0xd2b2e7})=>{const _0x25e59d=this['_suggestions']['get'](_0xd2b2e7);_0x25e59d&&_0x25e59d['commentThread']&&0x1===_0x25e59d['commentThread']['length']&&this['_updateSuggestionData'](_0xd2b2e7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x41713e,'removeComment',(_0x28527f,{threadId:_0x4bfb19})=>{const _0x15a9ce=this['_suggestions']['get'](_0x4bfb19);_0x15a9ce&&_0x15a9ce['commentThread']&&!_0x15a9ce['commentThread']['length']&&this['_updateSuggestionData'](_0x4bfb19,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1fff7e){const _0x117ed6=_0xf544ba([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]),_0x3604c0=0x3d8d0df,_0x5da14c=0x3df550f^_0x3604c0,_0x4353c3=window[_0xf544ba([0x44,0x61,0x74,0x65])][_0xf544ba([0x6e,0x6f,0x77])](),_0x5925a6=_0x1fff7e[_0xf544ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d11e0=new window[(_0xf544ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23cd25=>{_0x5925a6[_0xf544ba([0x6f,0x6e,0x63,0x65])](_0xf544ba([0x72,0x65,0x61,0x64,0x79]),_0x23cd25);}),_0x33d6a4={[_0xf544ba([0x6b,0x74,0x79])]:_0xf544ba([0x45,0x43]),[_0xf544ba([0x75,0x73,0x65])]:_0xf544ba([0x73,0x69,0x67]),[_0xf544ba([0x63,0x72,0x76])]:_0xf544ba([0x50,0x2d,0x32,0x35,0x36]),[_0xf544ba([0x78])]:_0xf544ba([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]),[_0xf544ba([0x79])]:_0xf544ba([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]),[_0xf544ba([0x61,0x6c,0x67])]:_0xf544ba([0x45,0x53,0x32,0x35,0x36])},_0x194f3e=_0x5925a6[_0xf544ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf544ba([0x67,0x65,0x74])](_0xf544ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x192f3e(){let _0x5c2a6e,_0x841bab=null,_0x3e7d58=null;try{if(_0x194f3e==_0xf544ba([0x47,0x50,0x4c]))return _0xf544ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c2a6e=_0x312a25(),!_0x5c2a6e)return _0xf544ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c2a6e[_0xf544ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e7d58=_0x2122e6(_0x5c2a6e[_0xf544ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c2a6e[_0xf544ba([0x6a,0x74,0x69])])),await _0x366d55()?_0x5c4ef0()?_0x8545c()?_0xf544ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x283aac()?(_0x5c2a6e[_0xf544ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf544ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x841bab=_0x52ad9d(_0xf544ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4032d9()):_0xf544ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf544ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf544ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf544ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8545c(){const _0xebf47a=[_0xf544ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf544ba([0x74,0x72,0x69,0x61,0x6c])][_0xf544ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c2a6e[_0xf544ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4353c3/0x3e8:0xe10*_0x5da14c;return _0x5c2a6e[_0xf544ba([0x65,0x78,0x70])]<_0xebf47a;}function _0x5c4ef0(){const _0x2cc36f=_0x5c2a6e[_0xf544ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2cc36f)return!0x1;if(_0x2cc36f[_0xf544ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf544ba([0x2a])))return!0x0;if(_0x2cc36f[_0xf544ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf544ba([0x54,0x43])))return!0x0;if(_0x2cc36f[_0xf544ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf544ba([0x52,0x54,0x43]))){if(_0x426189())return!0x0;if(_0x4b384e()||_0x111512())return!0x0;}return!0x1;}function _0x283aac(){const _0x2a8552=_0x5c2a6e[_0xf544ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a8552||0x0==_0x2a8552[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x406861}=new URL(window[_0xf544ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a8552[_0xf544ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406861))return!0x0;const _0x25c838=_0x406861[_0xf544ba([0x73,0x70,0x6c,0x69,0x74])](_0xf544ba([0x2e]));return _0x2a8552[_0xf544ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55eff0=>_0x55eff0[_0xf544ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf544ba([0x2a])))[_0xf544ba([0x6d,0x61,0x70])](_0x492bed=>_0x492bed[_0xf544ba([0x73,0x70,0x6c,0x69,0x74])](_0xf544ba([0x2e])))[_0xf544ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12c893=>_0x12c893[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25c838[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf544ba([0x6d,0x61,0x70])](_0xd4fa2b=>Array(_0x25c838[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd4fa2b[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf544ba([0x66,0x69,0x6c,0x6c])](_0xd4fa2b[0x0]===_0xf544ba([0x2a])?_0xf544ba([0x2a]):'')[_0xf544ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd4fa2b))[_0xf544ba([0x73,0x6f,0x6d,0x65])](_0x49b6dc=>_0x25c838[_0xf544ba([0x65,0x76,0x65,0x72,0x79])]((_0x5572ba,_0x55c082)=>_0x49b6dc[_0x55c082]===_0x5572ba||_0x49b6dc[_0x55c082]===_0xf544ba([0x2a])));}function _0x4032d9(){return _0x841bab&&_0x3e7d58?new window[(_0xf544ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45f00b,_0x4d5269)=>{_0x841bab[_0xf544ba([0x74,0x68,0x65,0x6e])](_0x45f00b,_0x4d5269),_0x3e7d58[_0xf544ba([0x74,0x68,0x65,0x6e])](_0x563089=>{_0x563089!=_0xf544ba([0x56,0x61,0x6c,0x69,0x64])&&_0x45f00b(_0x563089);},_0x4d5269);}):_0x841bab||_0x3e7d58||_0xf544ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2122e6(_0x444cd9,_0x39caf3){return new window[(_0xf544ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e8fb3=>{if(_0x44b90b())return _0x1e8fb3(_0xf544ba([0x56,0x61,0x6c,0x69,0x64]));_0x592c58(),_0x5925a6[_0xf544ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf544ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xcbf2ea=!0x1;const _0x42ba68=_0x58e93c();function _0x4d169f(_0xcd7a19){return!!_0xcd7a19&&(typeof _0xcd7a19===_0xf544ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcd7a19===_0xf544ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcd7a19[_0xf544ba([0x74,0x68,0x65,0x6e])]===_0xf544ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcd7a19[_0xf544ba([0x63,0x61,0x74,0x63,0x68])]===_0xf544ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5616ac(_0x2e0733){_0x4f06f3(_0x2e0733)[_0xf544ba([0x74,0x68,0x65,0x6e])](_0x306072=>{if(!_0x306072||_0x306072[_0xf544ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf544ba([0x6f,0x6b]))return _0xf544ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x121dac(_0x86066c(_0x42ba68+_0x39caf3))!=_0x306072[_0xf544ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf544ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf544ba([0x56,0x61,0x6c,0x69,0x64]);})[_0xf544ba([0x74,0x68,0x65,0x6e])](_0x5adb47=>(_0x386846(),_0x5adb47),()=>{const _0x5277bc=_0x3c51be();return null==_0x5277bc?(_0x386846(),_0xf544ba([0x56,0x61,0x6c,0x69,0x64])):_0xf544ba(_0x4353c3-_0x5277bc>(0x27d454df^_0x3604c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf544ba([0x74,0x68,0x65,0x6e])](_0x1e8fb3)[_0xf544ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e8fb3(_0xf544ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x401af3=0x3ee3e5f^_0x3604c0;function _0x386846(){const _0x14947c=_0xf544ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x121dac(_0x86066c(_0x444cd9)),_0x2cee5d=_0x5e75be(_0x121dac(window[_0xf544ba([0x4d,0x61,0x74,0x68])][_0xf544ba([0x63,0x65,0x69,0x6c])](_0x4353c3/_0x401af3)));window[_0xf544ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf544ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14947c,_0x2cee5d);}function _0x3c51be(){const _0x1682b8=_0xf544ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x121dac(_0x86066c(_0x444cd9)),_0x4581fb=window[_0xf544ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf544ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1682b8);return _0x4581fb?window[_0xf544ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e75be(_0x4581fb),0x10)*_0x401af3:null;}function _0x4f06f3(_0x115fa6){return new window[(_0xf544ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26873d,_0x5c8d7a)=>{_0x115fa6[_0xf544ba([0x74,0x68,0x65,0x6e])](_0x26873d,_0x5c8d7a),window[_0xf544ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c8d7a,0x3d9041f^_0x3604c0);});}}_0x5925a6[_0xf544ba([0x6f,0x6e])](_0xf544ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x307724,_0x406f57)=>{if(_0x406f57[0x0]!=_0x444cd9)return _0x1e8fb3(_0xf544ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x406f57[0x1]={..._0x406f57[0x1],[_0xf544ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42ba68};},{[_0xf544ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf544ba([0x68,0x69,0x67,0x68])}),_0x5925a6[_0xf544ba([0x6f,0x6e])](_0xf544ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b63e6=>{_0x4d169f(_0x1b63e6[_0xf544ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xcbf2ea=!0x0,_0x5616ac(_0x1b63e6[_0xf544ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf544ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf544ba([0x6c,0x6f,0x77])}),_0x2d11e0[_0xf544ba([0x74,0x68,0x65,0x6e])](()=>{_0xcbf2ea||_0x1e8fb3(_0xf544ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44b90b(){return _0x5925a6[_0xf544ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf544ba([0x76,0x69,0x65,0x77])][_0xf544ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf544ba([0x61,0x75,0x74,0x6f]);}function _0x592c58(){_0x5925a6[_0xf544ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf544ba([0x76,0x69,0x65,0x77])][_0xf544ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf544ba([0x61,0x75,0x74,0x6f]);}}function _0x52ad9d(_0x35bb1d){const _0x5ee92c=[new window[(_0xf544ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x77b2c8=>setTimeout(_0x77b2c8,0x3d1ee13^_0x3604c0)),_0x2d11e0[_0xf544ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf544ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x655ace=>{let _0x46ae61=0x0;_0x5925a6[_0xf544ba([0x6d,0x6f,0x64,0x65,0x6c])][_0xf544ba([0x6f,0x6e])](_0xf544ba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a832b,_0xa46aca)=>{_0xa46aca[0x0][_0xf544ba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x46ae61++,_0x46ae61==(0x3d8d537^_0x3604c0)&&(_0x655ace(),_0x4a832b[_0xf544ba([0x6f,0x66,0x66])]());});}))];return window[_0xf544ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf544ba([0x72,0x61,0x63,0x65])](_0x5ee92c)[_0xf544ba([0x74,0x68,0x65,0x6e])](()=>_0x35bb1d);}async function _0x337d5e(){await _0x2d11e0,_0x5925a6[_0xf544ba([0x6d,0x6f,0x64,0x65,0x6c])][_0xf544ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10d279,_0x5925a6[_0xf544ba([0x6d,0x6f,0x64,0x65,0x6c])][_0xf544ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10d279,_0x5925a6[_0xf544ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf544ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x426189(){return _0x473b77(_0xf544ba([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3db4bd(_0xf544ba([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf544ba([0x73,0x74,0x61,0x74,0x65])]==_0xf544ba([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b384e(){return _0x473b77(_0xf544ba([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 _0x111512(){return _0x473b77(_0xf544ba([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x128601(_0x5c5410){const _0x42cbfb=_0x1cc2b4();_0x5925a6[_0x42cbfb]=_0xf544ba([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c5410,_0x5c5410!=_0xf544ba([0x56,0x61,0x6c,0x69,0x64])&&_0x337d5e();}function _0x1cc2b4(){const _0x2196df=window[_0xf544ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf544ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf544ba([0x6e,0x6f,0x77])]())[_0xf544ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf544ba([0x2e]),'');let _0x48ff6b=_0xf544ba([0x52]);for(let _0x31690d=0x0;_0x31690d<_0x2196df[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31690d+=0x2){let _0x4d12ee=window[_0xf544ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2196df[_0xf544ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31690d,_0x31690d+0x2));_0x4d12ee>=_0x117ed6[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d12ee-=_0x117ed6[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48ff6b+=_0x117ed6[_0x4d12ee];}return _0x48ff6b;}function _0x312a25(){const _0x203bc5=_0x194f3e[_0xf544ba([0x73,0x70,0x6c,0x69,0x74])](_0xf544ba([0x2e]));if(0x3!=_0x203bc5[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41e746(_0x203bc5[0x1]);function _0x41e746(_0x2ca1f0){const _0x50d59f=_0x3a1c83(_0x2ca1f0);return _0x50d59f&&_0x17da58()?_0x50d59f:null;function _0x17da58(){const _0x5ceeea=_0x50d59f[_0xf544ba([0x6a,0x74,0x69])],_0x456ef0=window[_0xf544ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ceeea[_0xf544ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ceeea[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2966f1={..._0x50d59f,[_0xf544ba([0x6a,0x74,0x69])]:_0x5ceeea[_0xf544ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ceeea[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2966f1[_0xf544ba([0x76,0x63])],_0x86066c(_0x2966f1)==_0x456ef0;}}}async function _0x366d55(){let _0x1d9a23=!0x0;try{const _0x17c66e=_0x194f3e[_0xf544ba([0x73,0x70,0x6c,0x69,0x74])](_0xf544ba([0x2e])),[_0x3624a9,_0x2da4ab,_0x59e0d9]=_0x17c66e;return _0x75f9d1(_0x3624a9),await _0x3ee9f5(_0x3624a9,_0x2da4ab,_0x59e0d9),_0x1d9a23;}catch{return!0x1;}function _0x75f9d1(_0x3e5fee){const _0x52651e=_0x3a1c83(_0x3e5fee);_0x52651e&&_0x52651e[_0xf544ba([0x61,0x6c,0x67])]==_0xf544ba([0x45,0x53,0x32,0x35,0x36])||(_0x1d9a23=!0x1);}async function _0x3ee9f5(_0x44bfb5,_0x5b8f64,_0x26f744){const _0x780583=window[_0xf544ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf544ba([0x66,0x72,0x6f,0x6d])](_0x46746b(_0x26f744),_0x3d5fd4=>_0x3d5fd4[_0xf544ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37f7a6=new window[(_0xf544ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf544ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44bfb5+_0xf544ba([0x2e])+_0x5b8f64),_0x1de65e=window[_0xf544ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf544ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1de65e)return;const _0x3d4129=await _0x1de65e[_0xf544ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf544ba([0x6a,0x77,0x6b]),_0x33d6a4,{[_0xf544ba([0x6e,0x61,0x6d,0x65])]:_0xf544ba([0x45,0x43,0x44,0x53,0x41]),[_0xf544ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf544ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf544ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1de65e[_0xf544ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf544ba([0x6e,0x61,0x6d,0x65])]:_0xf544ba([0x45,0x43,0x44,0x53,0x41]),[_0xf544ba([0x68,0x61,0x73,0x68])]:{[_0xf544ba([0x6e,0x61,0x6d,0x65])]:_0xf544ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d4129,_0x780583,_0x37f7a6)||(_0x1d9a23=!0x1);}}function _0x3a1c83(_0x41e31f){return _0x41e31f[_0xf544ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf544ba([0x65,0x79]))?JSON[_0xf544ba([0x70,0x61,0x72,0x73,0x65])](_0x46746b(_0x41e31f)):null;}function _0x46746b(_0x1a02d8){return window[_0xf544ba([0x61,0x74,0x6f,0x62])](_0x1a02d8[_0xf544ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf544ba([0x2b]))[_0xf544ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf544ba([0x2f])));}function _0x86066c(_0x4301ec){let _0x4bd03f=0x1505;function _0x3f6969(_0x3a7d1a){for(let _0x6bd216=0x0;_0x6bd216<_0x3a7d1a[_0xf544ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6bd216++){const _0x246c43=_0x3a7d1a[_0xf544ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6bd216);_0x4bd03f=(_0x4bd03f<<0x5)+_0x4bd03f+_0x246c43,_0x4bd03f&=_0x4bd03f;}}function _0x3abc81(_0x56aec4){Array[_0xf544ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56aec4)?_0x56aec4[_0xf544ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3abc81):_0x56aec4&&typeof _0x56aec4==_0xf544ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf544ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56aec4)[_0xf544ba([0x73,0x6f,0x72,0x74])]()[_0xf544ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59a236,_0x108710])=>{_0x3f6969(_0x59a236),_0x3abc81(_0x108710);}):_0x3f6969(window[_0xf544ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56aec4));}return _0x3abc81(_0x4301ec),_0x4bd03f>>>0x0;}function _0x121dac(_0x5aa2eb){return _0x5aa2eb[_0xf544ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf544ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf544ba([0x30]));}function _0x5e75be(_0x2f7ed5){return _0x2f7ed5[_0xf544ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf544ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf544ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x473b77(_0x3877c5){return _0x5925a6[_0xf544ba([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf544ba([0x68,0x61,0x73])](_0x3877c5);}function _0x3db4bd(_0x1d4ee3){return _0x5925a6[_0xf544ba([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf544ba([0x67,0x65,0x74])](_0x1d4ee3);}function _0x10d279(){}function _0xf544ba(_0x48f3df){return _0x48f3df['map'](_0x24be52=>String['fromCharCode'](_0x24be52))['join']('');}_0x128601(await _0x192f3e());}(this);}set['adapter'](_0x51d623){if(this['_adapter'])throw new _0x3a7e29('track-changes-adapter-already-set',this);this['_adapter']=_0x51d623;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4e03f0=!0x1,toJSON:_0x713975=!0x1}={}){const _0x4ffc72=[];for(const _0x55f3e6 of this['_suggestions']['values']())_0x4e03f0&&!_0x55f3e6['isInContent']||_0x4ffc72['push'](_0x55f3e6);return _0x713975?_0x4ffc72['map'](_0x2524ce=>_0x2524ce['toJSON']()):_0x4ffc72;}['getSuggestion'](_0x42fba6){const _0x19ee3d=this['_suggestions']['get'](_0x42fba6);if(!_0x19ee3d)throw new _0x3a7e29('track-changes-suggestion-not-found',this);return _0x19ee3d;}['hasSuggestion'](_0x35a411){return this['_suggestions']['has'](_0x35a411);}['addSuggestionData'](_0x5d77ab){const {authorId:_0x33ad53,id:_0x76bbb7,originalSuggestionId:_0x10e22e,attributes:_0x1ca3e2}=_0x5d77ab,[_0x357330,_0x3cbb1d]=_0x5d77ab['type']['split'](':'),_0x35c79c=this['_suggestions']['get'](_0x76bbb7)||this['_createSuggestion'](_0x357330,_0x3cbb1d,_0x76bbb7,_0x33ad53,_0x1ca3e2,_0x10e22e);if(this['_addThreadToSuggestion'](_0x35c79c),this['_checkSuggestionCorrectness'](_0x35c79c,_0x357330,_0x3cbb1d||null,_0x33ad53),_0x35c79c['createdAt']=_0x5d77ab['createdAt'],_0x35c79c['_isDataLoaded']=!0x0,_0x1ca3e2&&_0x1ca3e2['@external']){const _0x3c5d6c=_0x1ca3e2['@external'],_0x59dbb9=this['_getExternalAuthor'](_0x3c5d6c['authorName']);_0x35c79c['authoredAt']=_0x3c5d6c['createdAt'],_0x35c79c['author']=_0x59dbb9,_0x35c79c['isExternal']=!0x0;}else _0x35c79c['authoredAt']=_0x5d77ab['createdAt'];switch(_0x5d77ab['data']&&(_0x35c79c['data']=_0x5d77ab['data']),_0x5d77ab['attributes']&&(_0x35c79c['attributes']=_0x5d77ab['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x35c79c['_saved']=!0x0),this['_suggestionState']['get'](_0x35c79c)){case'notReady':this['_suggestionState']['set'](_0x35c79c,'dataReady');break;case'markerReady':_0x35c79c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x35c79c])),this['_refreshSuggestionsChain'](new Set([_0x35c79c])),this['_suggestionState']['set'](_0x35c79c,'ready'),this['fire']('suggestionLoaded',_0x35c79c)):this['_suggestionState']['set'](_0x35c79c,'removed');}return _0x35c79c;}['acceptSuggestion'](_0x3401d5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb63118 of _0x3401d5['getAllAdjacentSuggestions']())_0xb63118['accept']();});});}['discardSuggestion'](_0xf36a04){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2305de of _0xf36a04['getAllAdjacentSuggestions']())_0x2305de['discard']();});});}['enableCommand'](_0x1dfc0e,_0x30f668){const _0x3f564a=this['editor']['commands']['get'](_0x1dfc0e);if(!_0x3f564a)throw new _0x3a7e29('track-changes-command-not-found',this,{'commandName':_0x1dfc0e});if(this['_enabledCommands']['has'](_0x3f564a))throw new _0x3a7e29('track-changes-enable-command-twice',this,{'commandName':_0x1dfc0e});this['_enabledCommands']['add'](_0x3f564a),_0x30f668&&_0x3f564a['on']('execute',(_0x3074a3,_0x1f4193)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1f4193['length']>0x0&&_0x1f4193[_0x1f4193['length']-0x1]&&_0x1f4193[_0x1f4193['length']-0x1]['forceDefaultExecution']?_0x1f4193['pop']():(_0x3074a3['return']=_0x30f668((..._0x49e589)=>_0x3f564a['execute'](..._0x49e589,{'forceDefaultExecution':!0x0}),..._0x1f4193),_0x3074a3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x12a3dd){let _0x2cc65a,_0x2ffe74;const _0x2e451d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2cc65a=_0x12a3dd();}catch(_0x3cceb2){_0x2ffe74=_0x3cceb2;}return _0x2e451d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2ffe74&&_0x3a7e29['rethrowUnexpectedError'](_0x2ffe74,this),_0x2cc65a;}['markInsertion'](_0x247b48,_0x301a8c=null,_0x35e3c4={}){if(_0x247b48['isCollapsed'])return null;const _0x3d7801=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x35e3c4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a4274,meta:_0xb5d554}of this['_findSuggestions'](_0x247b48,'insertion'))if(_0xb5d554['isOwn']){if(!_0xb5d554['isNextTo']){if(_0xb5d554['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x1a4274,_0x35e3c4))continue;return _0x1a4274;}if(cn(_0x1a4274,_0x35e3c4))return _0x1a4274;this['_breakSuggestionMarker'](_0x1a4274,_0x247b48['start'],_0x247b48['end']);break;}if(_0x301a8c==_0x1a4274['subType']&&cn(_0x1a4274,_0x35e3c4)){const _0x6870cf=_0x1a4274['getFirstRange']();return _0x6870cf['start']['isEqual'](_0x247b48['end'])?this['_setSuggestionRange'](_0x1a4274,this['_model']['createRange'](_0x247b48['start'],_0x6870cf['end'])):this['_setSuggestionRange'](_0x1a4274,this['_model']['createRange'](_0x6870cf['start'],_0x247b48['end'])),_0x1a4274;}}const _0x196a4c=_0x58e93c(),_0x8c4c63=_0x3d7801['id'],_0x5d9b5e=_0x301a8c?'insertion:'+_0x301a8c:'insertion',_0x3f5d5c=this['_setSuggestionData']({'id':_0x196a4c,'type':_0x5d9b5e,'createdAt':new Date(),'authorId':_0x8c4c63,'attributes':_0x35e3c4});return this['_addSuggestionMarker'](_0x5d9b5e,_0x196a4c,_0x8c4c63,_0x247b48),_0x3f5d5c;}['markMultiRangeInsertion'](_0xcae65,_0x3f2270='multi',_0x42d9ff={}){const _0x37a48a=this['editor']['plugins']['get']('Users')['me'],_0x1d35c8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3f2270,'join');this['_trackingSessionId']&&(_0x42d9ff['trackingSessionId']=this['_trackingSessionId']);for(const _0xd8784d of this['getSuggestions']())if(_0xd8784d['author']['id']==_0x37a48a['id']&&'insertion'==_0xd8784d['type']&&_0xd8784d['subType']==_0x3f2270&&cn(_0xd8784d,_0x42d9ff)&&(_0x1d35c8(_0xd8784d['getRanges'](),_0xcae65)||_0x1d35c8(_0xcae65,_0xd8784d['getRanges']()))){for(const _0x4cd24b of _0xcae65)_0xd8784d['addRange'](_0x4cd24b);return _0xd8784d;}for(const {suggestion:_0x124b0b,meta:_0x310ca2}of this['_findSuggestions'](_0xcae65,'insertion')){if(!_0x310ca2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x310ca2['containsRangeInObject'])continue;if(!cn(_0x124b0b,_0x42d9ff))continue;let _0x55c449=!0x0;for(const _0x348db0 of _0x124b0b['getRanges']())for(const _0x27e335 of _0xcae65)if(!_0x348db0['containsRange'](_0x27e335)){_0x55c449=!0x1;break;}if(_0x55c449)return _0x124b0b;}const _0x567aaa=_0x58e93c(),_0x31cd7f=_0x37a48a['id'],_0x2a0a3f='insertion:'+_0x3f2270,_0x24cf1b=this['_setSuggestionData']({'id':_0x567aaa,'type':_0x2a0a3f,'createdAt':new Date(),'authorId':_0x31cd7f,'attributes':_0x42d9ff});for(const _0x3eafd4 of _0xcae65)this['_addSuggestionMarker'](_0x2a0a3f,_0x567aaa,_0x31cd7f,_0x3eafd4,bt['getMultiRangeId']());return _0x24cf1b;}['markInlineFormat'](_0x3c3ffe,_0x18bd03,_0x4fc040=null,_0xb0cff3={}){if(_0x4fc040=_0x4fc040||Je(_0x18bd03),_0x3c3ffe['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xb0cff3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x257e42=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fc040,'accept');return this['forceDefaultExecution'](()=>_0x257e42([_0x3c3ffe],_0x18bd03,_0xb0cff3)),null;}const _0x30e9fa=this['editor']['plugins']['get']('Users')['me'],_0x527b5f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x42e425,meta:_0x40b22f}of this['_findSuggestions'](_0x3c3ffe,'insertion'))_0x40b22f['isOwn']&&!_0x40b22f['isInsideObject']&&_0x527b5f['push'](..._0x42e425['getRanges']());}const _0x2b6671=function(_0x414222,_0x30a1bf){const _0x1828ba=[];for(const _0x33bc54 of _0x30a1bf){const _0x367644=_0x414222['getIntersection'](_0x33bc54);_0x367644&&_0x1828ba['push'](_0x367644);}return _0x1828ba;}(_0x3c3ffe,_0x527b5f),_0x35c791=function(_0x487d99,_0x2d3b15){const _0x410b35=[_0x487d99];for(const _0x3d8b0c of _0x2d3b15){let _0x39d745=0x0;for(;_0x39d745<_0x410b35['length'];){const _0x507f41=_0x410b35[_0x39d745]['getDifference'](_0x3d8b0c);_0x410b35['splice'](_0x39d745,0x1,..._0x507f41),_0x39d745+=_0x507f41['length'];}}return _0x410b35;}(_0x3c3ffe,_0x527b5f);_0x2b6671['length']&&this['_model']['change'](()=>{for(const _0x297972 of _0x2b6671){const _0x332463=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fc040,'accept');this['forceDefaultExecution'](()=>_0x332463([_0x297972],_0x18bd03,_0xb0cff3));}});for(const _0x22b4f5 of _0x35c791){let _0xd687a3=null,_0x3bb8b6=_0x22b4f5['start'],_0x52d0cf=_0x22b4f5['end'];for(const {suggestion:_0x168388,meta:_0x40ef3e}of this['_findSuggestions'](_0x22b4f5,'formatInline')){if(!_0x40ef3e['isOwn'])continue;if(_0x168388['subType']!=_0x4fc040)continue;if(!cn(_0x168388,_0xb0cff3))continue;const _0x368a45=_0x168388['getFirstRange']();if(_0x368a45['containsRange'](_0x22b4f5,!0x0))return null;_0x3bb8b6=_0x3bb8b6['isBefore'](_0x368a45['start'])?_0x3bb8b6:_0x368a45['start'],_0x52d0cf=_0x52d0cf['isAfter'](_0x368a45['end'])?_0x52d0cf:_0x368a45['end'],_0xd687a3?_0x368a45['start']['isBefore'](_0xd687a3['getFirstRange']()['start'])?(_0xd687a3['removeMarkers'](),_0xd687a3=_0x168388):_0x168388['removeMarkers']():_0xd687a3=_0x168388;}const _0x22a61e=this['_model']['createRange'](_0x3bb8b6,_0x52d0cf);if(_0xd687a3)this['_setSuggestionRange'](_0xd687a3,_0x22a61e);else{const _0x51b18e=_0x58e93c(),_0x3753e2=_0x30e9fa['id'];this['_setSuggestionData']({'id':_0x51b18e,'type':'formatInline:'+_0x4fc040,'data':_0x18bd03,'createdAt':new Date(),'authorId':_0x3753e2,'attributes':_0xb0cff3}),this['_addSuggestionMarker']('formatInline:'+_0x4fc040,_0x51b18e,_0x3753e2,_0x22a61e);}}return null;}['markBlockFormat'](_0x1ff6bc,_0x35cadd,_0x37ef57=[],_0x3c5449=null,_0x595929={}){_0x35cadd['formatGroupId']||(_0x35cadd['formatGroupId']=_0x35cadd['commandName']),_0x35cadd['multipleBlocks']=_0x1ff6bc['is']('range'),_0x3c5449=_0x3c5449||Je(_0x35cadd);const _0x1f91ee=_0x37ef57['map'](_0x18d176=>rn(_0x18d176,this['_model'])),_0x173c42=_0x1ff6bc['is']('range')?_0x1ff6bc:rn(_0x1ff6bc,this['_model']);if(this['_trackingSessionId']&&(_0x595929['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x33b536=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c5449,'accept');return this['forceDefaultExecution'](()=>_0x33b536([_0x173c42],_0x35cadd,_0x595929)),null;}_0x1f91ee['push'](_0x173c42);let _0x289a20=!0x0;for(const _0x29e9c8 of _0x1f91ee)if(!this['_rangeIsInLocalUserInsertion'](_0x29e9c8)){_0x289a20=!0x1;break;}if(_0x289a20&&'always'!==this['_trackFormatChanges']){const _0x566341=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c5449,'accept');return this['forceDefaultExecution'](()=>_0x566341([_0x173c42],_0x35cadd,_0x595929)),null;}let _0x3e4647=null,_0x154e5a=_0x173c42['start'],_0x5a5cb7=_0x173c42['end'];for(const {suggestion:_0x1b8423,meta:_0x5213b4}of this['_findSuggestions'](_0x173c42,'formatBlock')){if(!_0x5213b4['isOwn'])continue;if(_0x5213b4['isNextTo']||_0x5213b4['containsRangeInObject']||_0x5213b4['isInsideObject'])continue;if(_0x1b8423['data']['formatGroupId']!=_0x35cadd['formatGroupId'])continue;if(!cn(_0x1b8423,_0x595929))continue;const _0x4ee389=_0x1b8423['getFirstRange']();if(_0x1b8423['subType']==_0x3c5449){if(_0x4ee389['containsRange'](_0x173c42,!0x0))return null;_0x154e5a=_0x154e5a['isBefore'](_0x4ee389['start'])?_0x154e5a:_0x4ee389['start'],_0x5a5cb7=_0x5a5cb7['isAfter'](_0x4ee389['end'])?_0x5a5cb7:_0x4ee389['end'],_0x3e4647?_0x4ee389['start']['isBefore'](_0x3e4647['getFirstRange']()['start'])?(_0x3e4647['removeMarkers'](),_0x3e4647=_0x1b8423):_0x1b8423['removeMarkers']():_0x3e4647=_0x1b8423;}else{const _0x3fbea0=_0x173c42['getIntersection'](_0x4ee389);this['_cutOutSuggestionMarker'](_0x1b8423,_0x3fbea0);}}const _0x330538=this['editor']['plugins']['get']('Users')['me'],_0x2fec6d=_0x58e93c(),_0x496ab5=_0x330538['id'];if(_0x3e4647)return this['_setSuggestionRange'](_0x3e4647,this['_model']['createRange'](_0x154e5a,_0x5a5cb7)),_0x3e4647;{const _0x1253e4=this['_setSuggestionData']({'id':_0x2fec6d,'type':'formatBlock:'+_0x3c5449,'data':_0x35cadd,'createdAt':new Date(),'authorId':_0x496ab5,'attributes':_0x595929});return this['_addSuggestionMarker']('formatBlock:'+_0x3c5449,_0x2fec6d,_0x496ab5,this['_model']['createRange'](_0x154e5a,_0x5a5cb7)),_0x1253e4;}}['markMultiRangeBlockFormat'](_0x402809,_0x322c93,_0x461ad6=[],_0x55c952=null,_0x211e70={}){_0x322c93['formatGroupId']||(_0x322c93['formatGroupId']=_0x322c93['commandName']);const _0x23753f=_0x402809[0x0];_0x322c93['multipleBlocks']=_0x23753f['is']('range'),_0x55c952=_0x55c952||Je(_0x322c93);const _0x2a0d09=_0x461ad6['map'](_0x4cbefd=>rn(_0x4cbefd,this['_model'])),_0x3f4c33=_0x23753f['is']('range')?_0x402809:_0x402809['map'](_0x5c2a57=>rn(_0x5c2a57,this['_model']));if(this['_trackingSessionId']&&(_0x211e70['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3419d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55c952,'accept');return this['forceDefaultExecution'](()=>_0x3419d2(_0x3f4c33,_0x322c93,_0x211e70)),null;}_0x2a0d09['push'](..._0x3f4c33);let _0xebb190=!0x0;for(const _0x2b84b2 of _0x2a0d09)if(!this['_rangeIsInLocalUserInsertion'](_0x2b84b2)){_0xebb190=!0x1;break;}if(_0xebb190&&'always'!==this['_trackFormatChanges']){const _0x4c082c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55c952,'accept');return this['forceDefaultExecution'](()=>_0x4c082c(_0x3f4c33,_0x322c93,_0x211e70)),null;}const _0x3417de=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c846f of this['getSuggestions']()){const _0x3da5cc=_0x4c846f['data'];if(_0x4c846f['author']['id']!=_0x3417de['id'])continue;if('formatBlock'!=_0x4c846f['type']||_0x3da5cc['formatGroupId']!=_0x322c93['formatGroupId'])continue;if(!cn(_0x4c846f,_0x211e70))continue;const _0x472430=_0x4c846f['subType']==_0x55c952;for(let _0x5c4769=0x0;_0x5c4769<_0x3f4c33['length'];_0x5c4769++){const _0xe3993b=_0x3f4c33[_0x5c4769];for(const _0x1b965e of _0x4c846f['getMarkers']()){const _0x4ec981=_0x1b965e['getRange']();if(_0xe3993b['isEqual'](_0x4ec981)){_0x472430?(_0x3f4c33['splice'](_0x5c4769,0x1),_0x5c4769--):_0x4c846f['removeMarker'](_0x1b965e['name']);break;}}}}if(0x0==_0x3f4c33['length'])return null;const _0x1a23d9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55c952,'join');for(const _0x52494e of this['getSuggestions']()){const _0x512199=_0x52494e['data'];if(_0x52494e['author']['id']==_0x3417de['id']&&('formatBlock'==_0x52494e['type']&&_0x512199['formatGroupId']==_0x322c93['formatGroupId']&&_0x52494e['subType']==_0x55c952&&cn(_0x52494e,_0x211e70)&&(_0x1a23d9(_0x52494e['getRanges'](),_0x3f4c33)||_0x1a23d9(_0x3f4c33,_0x52494e['getRanges']())))){for(const _0x126f17 of _0x3f4c33)_0x52494e['addRange'](_0x126f17);return _0x52494e;}}const _0x3619d0=_0x58e93c(),_0x338fa6=_0x3417de['id'],_0x370f1b='formatBlock:'+_0x55c952,_0x11d513=this['_setSuggestionData']({'id':_0x3619d0,'type':_0x370f1b,'data':_0x322c93,'createdAt':new Date(),'authorId':_0x338fa6,'attributes':_0x211e70});for(const _0x94b76d of _0x3f4c33)this['_addSuggestionMarker'](_0x370f1b,_0x3619d0,_0x338fa6,_0x94b76d,bt['getMultiRangeId']());return _0x11d513;}['markDeletion'](_0x74cc00,_0x5e68ea=null,_0x10210f={}){if(_0x74cc00['isCollapsed'])return null;const _0x386659=this['editor']['plugins']['get']('Users')['me'],_0x3a6f3d=new _0xcc3cc7(_0x74cc00['start'],_0x74cc00['end']);this['_trackingSessionId']&&(_0x10210f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x33f454,meta:_0x337c58}of this['_findSuggestions'](_0x3a6f3d,'insertion'))if(_0x337c58['isOwn']&&!_0x337c58['isNextTo']){if(_0x33f454['isMultiRange']){const _0x9b289d=_0x33f454['getRanges']()['filter'](_0x1f033e=>'$graveyard'!=_0x1f033e['root']['rootName']);_0x9b289d['every'](_0x36bdf0=>_0x3a6f3d['containsRange'](_0x36bdf0,!0x0))&&_0x33f454['discard']();if(_0x9b289d['some'](_0x5d9c10=>_0x5d9c10['containsRange'](_0x3a6f3d,!0x0))){const _0x4f50f8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e68ea,'accept');return this['forceDefaultExecution'](()=>_0x4f50f8([_0x3a6f3d],null,_0x10210f)),null;}}else{const _0xa8e943=_0x3a6f3d['getIntersection'](_0x33f454['getFirstRange']());null!==_0xa8e943&&_0x33f454['_onDiscard']([_0xa8e943],null,_0x10210f);}}if(_0x3a6f3d['detach'](),_0x3a6f3d['isCollapsed']||'$graveyard'==_0x3a6f3d['root']['rootName'])return null;let _0xc54bd7=null,_0x5a6711=_0x3a6f3d['start'],_0x56def2=_0x3a6f3d['end'];const _0x347d6f=this['_findSuggestions'](_0x3a6f3d,'deletion');for(const {suggestion:_0x478d8f,meta:_0x1d479e}of _0x347d6f){const _0x158a2d=this['_model']['createRange'](_0x5a6711,_0x56def2);if(_0x1d479e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d479e['containsRangeInObject']&&!_0x1d479e['isInsideObject'])){if(_0x478d8f['isMultiRange']){if(!cn(_0x478d8f,_0x10210f))continue;let _0x54921b=!0x0;for(const _0xca3133 of _0x478d8f['getRanges']()){if(_0xca3133['containsRange'](_0x158a2d,!0x0))return _0x478d8f;_0x158a2d['containsRange'](_0xca3133)||(_0x54921b=!0x1);}_0x54921b&&_0x478d8f['discard']();}else{const _0x46e55e=_0x478d8f['getFirstRange']();if(_0x46e55e['containsRange'](_0x158a2d,!0x0))return _0x478d8f;if(!cn(_0x478d8f,_0x10210f)){_0x158a2d['containsRange'](_0x46e55e)?_0x478d8f['removeMarkers']():_0x46e55e['containsPosition'](_0x5a6711)?_0x5a6711=_0x46e55e['end']:_0x46e55e['containsPosition'](_0x56def2)&&(_0x56def2=_0x46e55e['start']);continue;}_0x5a6711=_0x5a6711['isBefore'](_0x46e55e['start'])?_0x5a6711:_0x46e55e['start'],_0x56def2=_0x56def2['isAfter'](_0x46e55e['end'])?_0x56def2:_0x46e55e['end'],_0x10210f=Object['assign']({},_0x478d8f['attributes']),_0xc54bd7?_0x46e55e['start']['isBefore'](_0xc54bd7['getFirstRange']()['start'])?(_0xc54bd7['removeMarkers'](),_0xc54bd7=_0x478d8f):_0x478d8f['removeMarkers']():_0xc54bd7=_0x478d8f;}}}if(_0xc54bd7)return this['_setSuggestionRange'](_0xc54bd7,this['_model']['createRange'](_0x5a6711,_0x56def2)),_0xc54bd7;{const _0x37865e=_0x58e93c(),_0x13f222=this['_model']['createRange'](_0x5a6711,_0x56def2),_0x29f3b3=_0x386659['id'],_0x921e3f=_0x5e68ea?'deletion:'+_0x5e68ea:'deletion',_0x2c9a13=this['_setSuggestionData']({'id':_0x37865e,'type':_0x921e3f,'createdAt':new Date(),'authorId':_0x29f3b3,'attributes':_0x10210f});return this['_addSuggestionMarker'](_0x921e3f,_0x37865e,_0x29f3b3,_0x13f222),_0x2c9a13;}}['markMultiRangeDeletion'](_0x35bd41,_0x250c9e='multi',_0x207c40={}){const _0xe414eb=this['editor']['plugins']['get']('Users')['me'],_0x3209c1=_0x35bd41['map'](_0x56b54d=>new _0xcc3cc7(_0x56b54d['start'],_0x56b54d['end'])),_0x50ad54=new Set();this['_trackingSessionId']&&(_0x207c40['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x26456e,meta:_0x293c36}of this['_findSuggestions'](_0x3209c1,'insertion'))_0x293c36['isOwn']&&!_0x293c36['isNextTo']&&_0x50ad54['add'](_0x26456e);for(const _0x3958fa of _0x50ad54)if(_0x3958fa['isMultiRange']){const _0x909eb9=_0x3958fa['getRanges']();(!_0x3958fa['attributes']||!_0x3958fa['attributes']['skipNestingCheck'])&&(_0x909eb9['every'](_0x324b95=>_0x3209c1['some'](_0x1e192a=>_0x1e192a['containsRange'](_0x324b95,!0x0)))&&_0x3958fa['discard']());if(_0x3209c1['every'](_0x1b6030=>_0x909eb9['some'](_0x313692=>_0x313692['containsRange'](_0x1b6030,!0x0)))){const _0x1b6938=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x250c9e,'accept');return this['forceDefaultExecution'](()=>_0x1b6938(_0x35bd41,null,_0x207c40)),null;}}else{const _0x25a47d=_0x3958fa['getFirstRange']();_0x3209c1['some'](_0x3733e0=>_0x3733e0['containsRange'](_0x25a47d,!0x0))&&_0x3958fa['discard']();if(_0x3209c1['every'](_0x14d14b=>_0x25a47d['containsRange'](_0x14d14b,!0x0))){const _0x31527d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x250c9e,'accept');return this['forceDefaultExecution'](()=>_0x31527d(_0x3209c1,null,_0x207c40)),null;}}const _0x3e5feb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x250c9e,'join');let _0x7590e8=null;for(const _0x4ab5d3 of this['getSuggestions']())if(_0x4ab5d3['author']['id']==_0xe414eb['id']&&_0x4ab5d3['isInContent']&&'deletion'==_0x4ab5d3['type']&&_0x4ab5d3['subType']==_0x250c9e&&cn(_0x4ab5d3,_0x207c40)&&(_0x3e5feb(_0x4ab5d3['getRanges'](),_0x3209c1)||_0x3e5feb(_0x3209c1,_0x4ab5d3['getRanges']()))){if(_0x7590e8){if(_0x4ab5d3['commentThread']&&_0x4ab5d3['commentThread']['length'])continue;for(const _0x5be8fd of _0x4ab5d3['getRanges']())_0x7590e8['isIntersectingWithRange'](_0x5be8fd)||_0x7590e8['addRange'](_0x5be8fd);_0x4ab5d3['removeMarkers']();}else{_0x7590e8=_0x4ab5d3;for(const _0x5d2347 of _0x3209c1)_0x4ab5d3['isIntersectingWithRange'](_0x5d2347)||_0x4ab5d3['addRange'](_0x5d2347);}}if(_0x7590e8)return _0x7590e8;_0x50ad54['clear']();for(const {suggestion:_0x2d378b,meta:_0x5bff0c}of this['_findSuggestions'](_0x3209c1,'deletion'))_0x5bff0c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5bff0c['containsRangeInObject']&&!_0x5bff0c['isInsideObject'])&&cn(_0x2d378b,_0x207c40)&&_0x50ad54['add'](_0x2d378b);for(const _0x217447 of _0x50ad54){const _0x41ec05=_0x217447['getRanges']();if(!_0x207c40||!_0x207c40['skipNestingCheck']){if(_0x3209c1['every'](_0x1d6b09=>_0x41ec05['some'](_0x27fca5=>_0x27fca5['containsRange'](_0x1d6b09,!0x0))))return _0x217447;}(!_0x217447['attributes']||!_0x217447['attributes']['skipNestingCheck'])&&(_0x41ec05['every'](_0x4f5d5b=>_0x3209c1['some'](_0x2eec87=>_0x2eec87['containsRange'](_0x4f5d5b,!0x0)))&&_0x217447['discard']());}const _0x580186=_0x58e93c(),_0x4ee412=_0xe414eb['id'],_0x3905aa='deletion:'+_0x250c9e,_0x319b32=this['_setSuggestionData']({'id':_0x580186,'type':_0x3905aa,'createdAt':new Date(),'authorId':_0x4ee412,'attributes':_0x207c40});for(const _0x533e22 of _0x3209c1)_0x533e22['detach'](),_0x533e22['isCollapsed']||'$graveyard'==_0x533e22['root']['rootName']||this['_addSuggestionMarker'](_0x3905aa,_0x580186,_0x4ee412,_0x533e22,bt['getMultiRangeId']());return _0x319b32;}['markAttributeChange'](_0x5d5ea5,_0x162ca7,_0x538764,_0x4296d7,_0x3b8fb6){if(_0x5d5ea5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x106caf=this['editor']['plugins']['get']('Users')['me']['id'],_0x4f2c96=Array['from'](this['_suggestions']['values']())['filter'](_0x22300a=>'attribute'==_0x22300a['type']&&_0x22300a['data']['key']==_0x162ca7&&_0x22300a['isIntersectingWithRange'](_0x5d5ea5));if(this['_trackingSessionId']&&(_0x3b8fb6['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3d56ef=this['_findSuggestions'](_0x5d5ea5,'insertion')['filter'](({meta:_0x2771e4})=>_0x2771e4['isOwn']&&!_0x2771e4['isInsideObject']&&!_0x2771e4['isNextTo'])['map'](({suggestion:_0x5dcbd1})=>_0x5dcbd1);_0x4f2c96['unshift'](..._0x3d56ef);}const _0xe4d28=new Map([[_0x5d5ea5,_0x538764]]);for(const _0x32120a of _0x4f2c96){const _0x26f2ea='attribute'==_0x32120a['type']?_0x32120a['data']['oldValue']:void 0x0,_0x4cad42=_0x32120a['getFirstRange'](),_0x3e951d=Array['from'](_0xe4d28['keys']())['find'](_0x4e9bda=>_0x4e9bda['isIntersecting'](_0x4cad42));if(!_0x3e951d)continue;const _0x55f213=_0x3e951d['getDifference'](_0x4cad42);this['_suggestionsConversion']['isBlockAttribute'](_0x162ca7)&&'insertion'==_0x32120a['type']&&0x0!=_0x55f213['length']||(_0xe4d28['delete'](_0x3e951d),_0x55f213['forEach'](_0x13d0c0=>{_0xe4d28['set'](_0x13d0c0,_0x538764);}),'insertion'!=_0x32120a['type']&&_0x26f2ea!=_0x4296d7&&_0xe4d28['set'](_0x3e951d['getIntersection'](_0x4cad42),_0x26f2ea));}const _0x48a163=[];for(const [_0x1ae4b6,_0x6c8f86]of _0xe4d28){const _0x558bf5=_0x58e93c(),_0x5586eb={'key':_0x162ca7,'oldValue':_0x6c8f86,'newValue':_0x4296d7};_0x162ca7['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':_0x162ca7});const _0x4294ae=('attribute:'+(_0x162ca7+'|'+Je({'newValue':_0x4296d7})))['substring'](0x0,0x3c),_0x1cbe06=this['_setSuggestionData']({'id':_0x558bf5,'type':_0x4294ae,'data':_0x5586eb,'createdAt':new Date(),'authorId':_0x106caf,'attributes':_0x3b8fb6});_0x48a163['push'](_0x1cbe06),this['_addSuggestionMarker'](_0x4294ae,_0x558bf5,_0x106caf,_0x1ae4b6);}return _0x48a163;}['enableDefaultAttributesIntegration'](_0x519028){this['enableCommand'](_0x519028,(_0x2d6010,..._0x2d06a6)=>{this['recordAttributeChanges'](()=>{_0x2d6010(..._0x2d06a6);});});}['startTrackingSession'](_0x4843a1){return this['_trackingSessionId']=void 0x0!==_0x4843a1?_0x4843a1:_0x58e93c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4c2fb7){return'attribute'==_0x4c2fb7['type']?un(_0x4c2fb7['subType']):null;}['_applyOperationsAsSuggestions'](_0x45de3d){if(0x0==_0x45de3d['length'])return;const _0x165b08=this['editor'],_0x17a10f=_0x165b08['plugins']['get'](_0x2132e4),_0x569562=[];_0x165b08['model']['change'](_0x2581f5=>{for(let _0xf41f33=0x0;_0xf41f33<_0x45de3d['length'];_0xf41f33++){const _0x117963=_0x45de3d[_0xf41f33];if(_0x117963['baseVersion']=_0x165b08['model']['document']['version'],_0x117963['isDocumentOperation']=!0x0,_0x17a10f['isMarkedRemoveOperation'](_0x117963)){const _0x19c8c0=_0x5d7589(_0x117963['newRange'],_0x165b08['model']);_0x569562['unshift'](_0xcc3cc7['fromRange'](_0x19c8c0));}else switch(_0x117963['type']){case'rename':{const _0x5e7edd=_0x117963['oldName'],_0xe8876d=_0x117963['newName'];if(_0x5e7edd==_0xe8876d)break;_0x2581f5['batch']['addOperation'](_0x117963),_0x165b08['model']['applyOperation'](_0x117963);const _0x3a2652='$elementName',_0x2790a3=_0x117963['position'],_0x702d5e=_0x165b08['model']['createRange'](_0x2790a3,_0x165b08['model']['createPositionAt'](_0x2790a3['nodeAfter'],'end'));this['markAttributeChange'](_0x702d5e,_0x3a2652,_0x5e7edd,_0xe8876d,{'groupId':_0x58e93c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xe9118a=_0x117963['oldValue'],_0x48e911=_0x117963['newValue'];if(_0xe9118a==_0x48e911)break;_0x2581f5['batch']['addOperation'](_0x117963),_0x165b08['model']['applyOperation'](_0x117963);const _0x3320a7=_0x117963['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3320a7))break;const _0xd3cd14=_0x5d7589(_0x117963['range'],_0x165b08['model']);this['markAttributeChange'](_0xd3cd14,_0x3320a7,_0xe9118a,_0x48e911,{'groupId':_0x58e93c()});break;}case'insert':{_0x2581f5['batch']['addOperation'](_0x117963),_0x165b08['model']['applyOperation'](_0x117963);if(_0x45de3d[_0xf41f33+0x1]&&'move'==_0x45de3d[_0xf41f33+0x1]['type'])break;const _0x275ebb=_0x117963['position'],_0x4bad96=_0x117963['howMany'],_0x5ec400=_0x5d7589(_0x165b08['model']['createRange'](_0x275ebb,_0x275ebb['getShiftedBy'](_0x4bad96)),_0x165b08['model']);this['markInsertion'](_0x5ec400);break;}case'split':{_0x2581f5['batch']['addOperation'](_0x117963),_0x165b08['model']['applyOperation'](_0x117963);const _0x46a223=_0x117963['splitPosition'],_0x530135=_0x117963['moveTargetPosition'];this['markInsertion'](_0x165b08['model']['createRange'](_0x46a223,_0x530135));break;}case'move':case'remove':_0x2581f5['batch']['addOperation'](_0x117963),_0x165b08['model']['applyOperation'](_0x117963);}}for(const _0x51c732 of _0x569562)_0x51c732['detach'](),this['markDeletion'](_0x51c732);});}['_setSuggestionRange'](_0x31b4d9,_0x250df0){const _0x1b4d3a=_0x31b4d9['getFirstMarker']();this['_model']['change'](_0x52e901=>{_0x52e901['updateMarker'](_0x1b4d3a,{'range':_0x250df0});});}['_addThreadToSuggestion'](_0x390774){const _0x56dbc6=_0x390774['id'],_0x3d081d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x56dbc6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d081d,'threadId':_0x56dbc6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x457283=this['_commentsRepository']['getCommentThread'](_0x56dbc6);_0x457283['unbind']('isRemovable'),_0x457283['isRemovable']=!0x1,_0x390774['commentThread']=_0x457283;}['_checkSuggestionCorrectness'](_0x1a7a82,_0x59cb5a,_0x568bc3,_0x5e2bca){if(_0x1a7a82['type']!=_0x59cb5a||_0x1a7a82['subType']!=_0x568bc3||_0x1a7a82['creator']['id']!=_0x5e2bca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3a7e29('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e621b,_0x45b827){const _0x4e7d60=_0x4e621b['getFirstRange']();if(_0x45b827['isEqual'](_0x4e7d60))_0x4e621b['removeMarkers']();else{if(_0x4e7d60['containsRange'](_0x45b827)){const _0x25becc=this['_model']['createPositionAt'](_0x45b827['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e621b,this['_model']['createRange'](_0x4e7d60['start'],_0x25becc));const _0xaa2493=_0x58e93c(),_0x4555a7=_0x4e621b['creator']['id'],_0x1e17b9=_0x4e621b['type']+':'+_0x4e621b['subType'];this['_setSuggestionData']({'id':_0xaa2493,'type':_0x1e17b9,'createdAt':new Date(),'authorId':_0x4555a7,'data':_0x4e621b['data'],'attributes':_0x4e621b['attributes']});const _0x43cfa7=this['_model']['createPositionAt'](_0x45b827['end']['parent'],'after'),_0x368e22=this['_model']['createRange'](_0x43cfa7,_0x4e7d60['end']);this['_addSuggestionMarker'](_0x1e17b9,_0xaa2493,_0x4555a7,_0x368e22);}else{if(_0x4e7d60['containsPosition'](_0x45b827['start'])){const _0x8da115=this['_model']['createPositionAt'](_0x45b827['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e621b,this['_model']['createRange'](_0x4e7d60['start'],_0x8da115));}else{const _0x5d833a=this['_model']['createPositionAt'](_0x45b827['end']['parent'],'after');this['_setSuggestionRange'](_0x4e621b,this['_model']['createRange'](_0x5d833a,_0x4e7d60['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2c39a2){for(const {suggestion:_0x1711b1,meta:_0x22f153}of this['_findSuggestions'](_0x2c39a2,'insertion')){if(!_0x22f153['isOwn'])continue;const _0x42a3c3=_0x1711b1['getRanges']();for(const _0xfbe12f of _0x42a3c3)if(!_0x2c39a2['getDifference'](_0xfbe12f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc65858){return this['editor']['plugins']['get']('Users')['getUser'](_0xc65858);}['_getExternalAuthor'](_0x36defa){const _0xd0eada=this['editor']['plugins']['get']('Users'),_0xc87265=_0x1f6902('external:'+_0x36defa),_0x89fc58=_0xd0eada['getUser'](_0xc87265);return _0x89fc58||_0xd0eada['addUser']({'id':_0xc87265,'name':_0x36defa});}['_createSuggestion'](_0x223353,_0x180d64,_0xaabed0,_0x330a90,_0x29a6bc,_0x24d001){const _0x275a1f=this['_getAuthorFromId'](_0x330a90);if(!_0x275a1f)throw new _0x3a7e29('track-changes-user-not-found',this,{'authorId':_0x330a90,'suggestionId':_0xaabed0});const _0x413f32=this['_suggestionFactory']['buildSuggestion'](_0x223353,_0x180d64,_0xaabed0,_0x275a1f,_0x29a6bc,_0x4917de=>{this['_updateSuggestionData'](_0xaabed0,{'attributes':_0x4917de});const _0x2e232e=this['getSuggestion'](_0xaabed0);this['_joinWithAdjacentSuggestions'](new Set([_0x2e232e])),this['_refreshSuggestionsChain'](new Set([_0x2e232e]));},_0x24d001);return this['listenTo'](_0x413f32,'accept',()=>{this['_updateSuggestionData'](_0xaabed0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x413f32,'discard',()=>{this['_updateSuggestionData'](_0xaabed0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xaabed0,_0x413f32),this['_suggestionState']['set'](_0x413f32,'notReady'),_0x413f32;}['_breakSuggestionMarker'](_0x45445b,_0x2359d4,_0x168771){const _0x127b37=_0x45445b['getFirstRange'](),_0x3c151a=_0x127b37['start'],_0x13eb24=_0x127b37['end'];this['_setSuggestionRange'](_0x45445b,this['_model']['createRange'](_0x3c151a,_0x2359d4));const _0x4fcf29=_0x58e93c(),_0x1a508d=_0x45445b['creator']['id'],_0x18fb8c=_0x45445b['type']+(_0x45445b['subType']?':'+_0x45445b['subType']:'');this['_setSuggestionData']({'id':_0x4fcf29,'type':_0x18fb8c,'createdAt':new Date(),'authorId':_0x1a508d,'originalSuggestionId':_0x45445b['_originalSuggestionId']||_0x45445b['id'],'attributes':_0x45445b['attributes'],'data':_0x45445b['data']});const _0x52bbca=this['_getAttributeKey'](_0x45445b);('formatBlock'==_0x45445b['type']||_0x52bbca&&this['_suggestionsConversion']['isBlockAttribute'](_0x52bbca))&&(_0x168771=this['_model']['createPositionBefore'](_0x168771['parent'])),this['_addSuggestionMarker'](_0x18fb8c,_0x4fcf29,_0x1a508d,this['_model']['createRange'](_0x168771,_0x13eb24));}['_findSuggestions'](_0x51dbd7,_0x57af37=null){const _0x42f2cd=[],_0x274b29=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x51dbd7)||(_0x51dbd7=[_0x51dbd7]);for(const _0x18207b of this['getSuggestions']()){if(!_0x18207b['isInContent'])continue;if(_0x57af37&&_0x18207b['type']!=_0x57af37)continue;let _0x498fa2=!0x1;for(const _0x189175 of _0x18207b['getRanges']()){for(const _0xcd9a37 of _0x51dbd7){const _0x409d68=_0xcd9a37['start']['isEqual'](_0x189175['end'])||_0xcd9a37['end']['isEqual'](_0x189175['start']);if(_0x409d68||_0xcd9a37['getIntersection'](_0x189175)){const _0x113ea4=_0xcd9a37['containsRange'](_0x189175)&&qe(this['_model']['schema'],_0x189175['start'],_0xcd9a37),_0x4d88c5=_0x189175['containsRange'](_0xcd9a37)&&qe(this['_model']['schema'],_0xcd9a37['start'],_0x189175);_0x42f2cd['push']({'suggestion':_0x18207b,'meta':{'isOwn':_0x274b29==_0x18207b['author'],'isNextTo':_0x409d68,'isInsideObject':_0x113ea4,'containsRangeInObject':_0x4d88c5}}),_0x498fa2=!0x0;break;}}if(_0x498fa2)break;}}return _0x42f2cd;}['_addSuggestionMarker'](_0x4bce03,_0x125bdc,_0x44d7ae,_0x443555,_0x4ce9dd){this['_model']['change'](_0x7c75e7=>{let _0xa37661='suggestion:'+_0x4bce03+':'+_0x125bdc+':'+_0x44d7ae;_0x4ce9dd&&(_0xa37661=_0xa37661+':'+_0x4ce9dd),_0x7c75e7['addMarker'](_0xa37661,{'range':_0x443555,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x553628){const _0x3fa7e4=_0x553628['previous'],_0x33fe58=_0x553628['next'];_0x553628['previous']=null,_0x553628['next']=null,null!=_0x3fa7e4&&_0x3fa7e4['next']==_0x553628&&(_0x3fa7e4['next']=_0x33fe58),null!=_0x33fe58&&_0x33fe58['previous']==_0x553628&&(_0x33fe58['previous']=_0x3fa7e4),'ready'==this['_suggestionState']['get'](_0x553628)&&(this['_suggestionState']['set'](_0x553628,'removed'),this['fire']('suggestionUnloaded',_0x553628,_0x3fa7e4,_0x33fe58));}['_setSuggestionData'](_0x3b3e23){const _0x4ef855=_0x3b3e23['id'],_0x19fa37=this['addSuggestionData'](_0x3b3e23);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12661b=this['editor']['plugins']['get']('PendingActions'),_0x302b0d=_0x19fa37['hasComments'],_0x50097a=_0x19fa37['subType']?_0x19fa37['type']+':'+_0x19fa37['subType']:_0x19fa37['type'],_0x3c1b05=this['editor']['locale'],_0xb6e56e=_0x12661b['add'](At(_0x3c1b05,'PENDING_ACTION_SUGGESTION')),_0x37a53e={'id':_0x4ef855,'type':_0x50097a,'hasComments':_0x302b0d,'data':_0x3b3e23['data']||null,'originalSuggestionId':_0x3b3e23['originalSuggestionId']||null,'attributes':_0x19fa37['attributes']};this['_adapter']['addSuggestion'](_0x37a53e)['then'](_0x45af9d=>{_0x19fa37['_saved']=!0x0,_0x12661b['remove'](_0xb6e56e),_0x45af9d&&_0x45af9d['createdAt']&&(this['_suggestions']['get'](_0x4ef855)['createdAt']=_0x45af9d['createdAt']);})['catch'](_0x2cf8b4=>{throw _0x3dea94('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x19fa37['discard']();}),_0x19fa37['stopListening'](),this['_suggestions']['delete'](_0x19fa37['id']),this['_suggestionState']['delete'](_0x19fa37),_0x2cf8b4;});}return _0x19fa37;}['_updateSuggestionData'](_0x2033db,_0x31cdae){const _0x9339f1=this['editor']['plugins']['get']('PendingActions'),_0x1335b1=this['getSuggestion'](_0x2033db);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1335b1['_saved']){const _0x2206a5=_0x9339f1['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2033db,_0x31cdae)['then'](()=>{_0x9339f1['remove'](_0x2206a5);});}else _0x1335b1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2033db,_0x31cdae);});}}['_getSuggestionData'](_0x12fda0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3a7e29('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x12fda0);}['_handleNewSuggestionMarker'](_0x1493c8){const {id:_0x242647,type:_0x37b73a,subType:_0x315251,authorId:_0x106b12}=_0x190ed2(_0x1493c8),_0x21a6dc=this['_suggestions']['get'](_0x242647)||this['_createSuggestion'](_0x37b73a,_0x315251,_0x242647,_0x106b12,{});switch(this['_checkSuggestionCorrectness'](_0x21a6dc,_0x37b73a,_0x315251,_0x106b12),this['_suggestionState']['get'](_0x21a6dc)){case'notReady':this['_getSuggestionData'](_0x242647)['then'](_0x193bad=>{let _0x285a67=Promise['resolve']();_0x193bad['hasComments']&&(_0x285a67=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x242647})),_0x285a67['then'](()=>{this['addSuggestionData'](_0x193bad)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x21a6dc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x242647,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x21a6dc,'ready'),this['fire']('suggestionLoaded',_0x21a6dc);break;case'ready':this['fire']('suggestionChanged',_0x21a6dc);}return _0x21a6dc['addMarkerName'](_0x1493c8),_0x21a6dc;}['_refreshSuggestionsChain'](_0x557555){const _0x4a6a60=Array['from'](_0x557555),_0x5c1688=_0x4a6a60['filter'](_0x458a69=>'attribute'==_0x458a69['type']);this['_refreshAttributeSuggestionsChain'](_0x5c1688);const _0x302b81=_0x4a6a60['filter'](_0x39cf57=>!_0x39cf57['isMultiRange']&&'attribute'!=_0x39cf57['type']),_0x3e2df8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59f6f5=>!_0x59f6f5['isMultiRange']&&'attribute'!=_0x59f6f5['type']),_0x5ec450=_0x3e2df8['filter'](_0x3f585f=>!_0x557555['has'](_0x3f585f)),_0xe29a96=new Map(_0x3e2df8['map'](_0x1cab1b=>[_0x1cab1b,this['_suggestionFactory']['getSuggestionCallback'](_0x1cab1b['type'],_0x1cab1b['subType'],'chain')])),_0x1e2ecd=new Map(_0x3e2df8['map'](_0x13045b=>[_0x13045b,_0x13045b['getFirstRange']()])),_0x13ebaa=new Set(),_0x1710c2=new Set();for(let _0x1488a4=0x0;_0x1488a4<_0x302b81['length'];_0x1488a4++)_0x123b9d(_0x302b81[_0x1488a4],_0x302b81,_0x1488a4+0x1);for(let _0x398262=0x0;_0x398262<_0x302b81['length'];_0x398262++)_0x123b9d(_0x302b81[_0x398262],_0x5ec450,0x0);const _0x379bdb=new Set();for(let _0x3051f9=0x0;_0x3051f9<_0x302b81['length'];_0x3051f9++){const _0x3f0dc2=_0x302b81[_0x3051f9];!_0x1710c2['has'](_0x3f0dc2)&&_0x3f0dc2['previous']&&(_0x379bdb['add'](_0x3f0dc2['previous']),_0x3f0dc2['previous']['next']===_0x3f0dc2&&(_0x3f0dc2['previous']['next']=null),_0x3f0dc2['previous']=null),!_0x13ebaa['has'](_0x3f0dc2)&&_0x3f0dc2['next']&&(_0x379bdb['add'](_0x3f0dc2['next']),_0x3f0dc2['next']['previous']===_0x3f0dc2&&(_0x3f0dc2['next']['previous']=null),_0x3f0dc2['next']=null);}function _0x123b9d(_0x32f908,_0x19619b,_0x531d76){for(let _0x5b7618=_0x531d76;_0x5b7618<_0x19619b['length'];_0x5b7618++){const _0x58a291=_0x37fcb3(_0x32f908,_0x19619b[_0x5b7618]);_0x58a291&&(_0x58a291[0x0]['next']=_0x58a291[0x1],_0x58a291[0x1]['previous']=_0x58a291[0x0],_0x13ebaa['add'](_0x58a291[0x0]),_0x1710c2['add'](_0x58a291[0x1]));}}function _0x37fcb3(_0x376ef9,_0x39564f){if(_0x376ef9['author']['id']!==_0x39564f['author']['id'])return null;const _0x241ca0=_0xe29a96['get'](_0x376ef9)(_0x376ef9,_0x39564f,_0x1e2ecd['get'](_0x376ef9),_0x1e2ecd['get'](_0x39564f));if(!_0x241ca0)return null;return _0xe29a96['get'](_0x39564f)(_0x376ef9,_0x39564f,_0x1e2ecd['get'](_0x376ef9),_0x1e2ecd['get'](_0x39564f))?_0x241ca0[0x1]['commentThread']&&_0x241ca0[0x1]['commentThread']['length']?null:_0x241ca0:null;}_0x379bdb['size']&&this['_refreshSuggestionsChain'](_0x379bdb);}['_refreshAttributeSuggestionsChain'](_0x2f7b36){if(0x0==_0x2f7b36['length'])return;const _0x580174=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5190d5=>'attribute'==_0x5190d5['type']&&_0x5190d5['_isDataLoaded']),_0x505eda=[],_0x41fcc8=new Map();for(const _0x194c26 of _0x580174){const _0x4447ac=_0x1f6902(_0x194c26['attributes']);_0x41fcc8['has'](_0x4447ac)||(_0x41fcc8['set'](_0x4447ac,_0x505eda['length']),_0x505eda['push']([]));const _0x3930ea=_0x41fcc8['get'](_0x4447ac);_0x505eda[_0x3930ea]['push'](_0x194c26);}!(function(){_0x505eda['sort']((_0x12ab7d,_0x56302d)=>{const _0x2d1c0e=_0x12ab7d[0x0]['createdAt'],_0x47acfa=_0x56302d[0x0]['createdAt'];return _0x2d1c0e==_0x47acfa?_0x12ab7d[0x0]['attributes']['groupId']<_0x56302d[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d1c0e<_0x47acfa?-0x1:0x1;});for(const _0x51fd3b of _0x505eda)_0x51fd3b['sort']((_0x5de616,_0x31c480)=>_0x5de616['id']<_0x31c480['id']?-0x1:0x1);}());for(let _0x399aec=0x0;_0x399aec<_0x505eda['length'];_0x399aec++){if(0x0==_0x505eda[_0x399aec]['length'])continue;const _0x1c0a4b=[];for(let _0x2d75c0=_0x399aec+0x1;_0x2d75c0<_0x505eda['length'];_0x2d75c0++)0x0!=_0x505eda[_0x2d75c0]['length']&&_0x3bbf72(_0x505eda[_0x399aec],_0x505eda[_0x2d75c0])&&_0x1c0a4b['push'](_0x2d75c0);for(const _0x34155b of _0x1c0a4b)_0x505eda[_0x399aec]=_0x505eda[_0x399aec]['concat'](_0x505eda[_0x34155b]),_0x505eda[_0x34155b]=[];}for(const _0xba18e0 of _0x505eda)for(let _0x284a64=0x0;_0x284a64<_0xba18e0['length'];_0x284a64++){const _0x1768be=_0xba18e0[_0x284a64+0x1]||null;_0xba18e0[_0x284a64]['next']!==_0x1768be&&(_0xba18e0[_0x284a64]['next']=_0x1768be);}for(const _0x3ea42f of _0x505eda)for(let _0x49a398=0x0;_0x49a398<_0x3ea42f['length'];_0x49a398++){const _0x555601=_0x3ea42f[_0x49a398-0x1]||null;_0x3ea42f[_0x49a398]['previous']!==_0x555601&&(_0x3ea42f[_0x49a398]['previous']=_0x555601);}function _0x3bbf72(_0x485b0a,_0x596c33){if(_0x485b0a[0x0]['attributes']['groupId']!==_0x596c33[0x0]['attributes']['groupId']&&_0x485b0a[0x0]['author']!==_0x596c33[0x0]['author'])return!0x1;if(!function(_0x53d7f6,_0x35a6f4){if(!_0x53d7f6['hasComments']&&!_0x35a6f4['hasComments'])return!0x0;if(_0x53d7f6['hasComments']&&_0x35a6f4['hasComments'])return!0x1;if(_0x53d7f6['hasComments']&&_0x35a6f4['createdAt']<_0x53d7f6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x35a6f4['hasComments']&&_0x53d7f6['createdAt']<_0x35a6f4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x485b0a[0x0],_0x596c33[0x0]))return!0x1;const _0x330743=ot(_0x485b0a[0x0]['attributes'],['groupId','trackingSessionId']),_0x53b0d5=ot(_0x596c33[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x330743,_0x53b0d5))return!0x1;if(_0x485b0a[0x0]['attributes']['groupId']==_0x596c33[0x0]['attributes']['groupId'])return!0x0;if(_0x485b0a[0x0]['attributes']['trackingSessionId']!==_0x596c33[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x485b0a['every'](_0x517d8f=>_0x596c33['some'](_0xe9f841=>_0x517d8f['getFirstRange']()['isEqual'](_0xe9f841['getFirstRange']())))&&_0x596c33['every'](_0xed6e57=>_0x485b0a['some'](_0x47f2ee=>_0xed6e57['getFirstRange']()['isEqual'](_0x47f2ee['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xc93e25){const _0x2380d8=Array['from'](_0xc93e25),_0x101e04=this['getSuggestions']({'skipNotAttached':!0x0}),_0x57e514=_0x101e04['filter'](_0x4068ea=>!_0xc93e25['has'](_0x4068ea)),_0x383495=new Map(_0x2380d8['map'](_0xb46124=>[_0xb46124,this['_suggestionFactory']['getSuggestionCallback'](_0xb46124['type'],_0xb46124['subType'],'join')])),_0x1d88bb=new Map(_0x101e04['map'](_0x5a5981=>[_0x5a5981,_0x5a5981['getRanges']()]));for(let _0x536142=0x0;_0x536142<_0x2380d8['length'];_0x536142++){if(_0x58a813(this,_0x2380d8[_0x536142],_0x2380d8,_0x536142+0x1))return!0x0;}for(let _0x3aa851=0x0;_0x3aa851<_0x2380d8['length'];_0x3aa851++){if(_0x58a813(this,_0x2380d8[_0x3aa851],_0x57e514,0x0))return!0x0;}return!0x1;function _0x58a813(_0x241283,_0x1634b6,_0x54f440,_0x3ac785){for(let _0x535c3c=_0x3ac785;_0x535c3c<_0x54f440['length'];_0x535c3c++){const _0xd048d3=_0x54f440[_0x535c3c];if(_0xd048d3['type']!==_0x1634b6['type']||_0xd048d3['author']['id']!==_0x1634b6['author']['id']||_0xd048d3['subType']!==_0x1634b6['subType'])continue;if(!an(_0x1634b6,_0xd048d3))continue;if('attribute'==_0x1634b6['type']&&_0x1634b6['data']['oldValue']!=_0xd048d3['data']['oldValue'])continue;if('attribute'==_0x1634b6['type']&&_0x241283['_suggestionsConversion']['isBlockAttribute'](_0x1634b6['data']['key']))continue;if('formatBlock'==_0x1634b6['type']){const _0x18f261=_0x241283['editor']['model'],_0x2582ed=_0x1634b6['getContainedElement']();if(_0x2582ed&&(_0x18f261['schema']['isObject'](_0x2582ed)||_0x18f261['schema']['isLimit'](_0x2582ed)))continue;}const _0x11984d=_0x383495['get'](_0x1634b6),_0x5b7d24=_0x1d88bb['get'](_0x1634b6),_0x104fd8=_0x1d88bb['get'](_0xd048d3),_0x57f10b=_0x1634b6['commentThread']&&_0x1634b6['commentThread']['length'],_0x2d3ebe=_0xd048d3['commentThread']&&_0xd048d3['commentThread']['length'];if(!_0x57f10b&&_0x11984d(_0x104fd8,_0x5b7d24))return _0x241283['_joinSuggestions'](_0xd048d3,_0x1634b6),_0x1d88bb['delete'](_0x1634b6),!0x0;if(!_0x2d3ebe&&_0x11984d(_0x5b7d24,_0x104fd8))return _0x241283['_joinSuggestions'](_0x1634b6,_0xd048d3),_0x1d88bb['delete'](_0xd048d3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x23658e,_0x2d8a55){if(_0x23658e['isMultiRange']){for(const _0x363c67 of _0x2d8a55['getRanges']())_0x23658e['addRange'](_0x363c67);}else{const _0x110aae=_0x2d8a55['getFirstRange']()['end'];this['_setSuggestionRange'](_0x23658e,this['_model']['createRange'](_0x23658e['getFirstRange']()['start'],_0x110aae));}_0x2d8a55['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3d0ecc,_0x2b5094,_0x2838be){const _0x22fdb9=_0x3d0ecc['startsWith']('format')||_0x3d0ecc['startsWith']('attribute')?'FORMATTING':_0x3d0ecc['toUpperCase']();return At(this['editor']['locale'],_0x2b5094+'_'+_0x22fdb9+'_SUGGESTION_ANNOUNCEMENT',_0x2838be);}['_initAriaMarkerChangeAnnouncements'](){const _0x18fa35=this['editor'];if(!_0x18fa35['ui'])return;const {ariaLiveAnnouncer:_0x56aa5e}=_0x18fa35['ui'];_0x2c1e2b(this['_model'],({left:_0x483e7e,entered:_0x17c9ff})=>{for(const _0xc37556 of _0x483e7e){const {group:_0x3d76e9,type:_0xa34ce4}=_0x190ed2(_0xc37556['name']);if('suggestion'===_0x3d76e9){_0x56aa5e['announce'](this['_getMarkerAnnouncementText'](_0xa34ce4,'LEAVE'));break;}}for(const _0x29e58f of _0x17c9ff){const {group:_0x2bb464,type:_0x90335d}=_0x190ed2(_0x29e58f['name']);if('suggestion'===_0x2bb464){_0x56aa5e['announce'](this['_getMarkerAnnouncementText'](_0x90335d,'ENTER',_0x9d0634(_0x2f36e4)));break;}}});}['_processAttributeChanges'](_0x2a73af){if(this['_recordAttributeSuggestions'])return!0x1;const _0x279cf1=this['editor'],_0x36013d=_0x279cf1['model']['document']['differ']['getChanges']();if(0x0==_0x36013d['length'])return!0x1;const _0x2a4b7f=[],_0x4a0483=_0x36013d['filter'](_0x403c87=>'attribute'==_0x403c87['type']),_0x509071=_0x36013d['filter'](_0x586ac7=>'insert'==_0x586ac7['type']&&'$text'!=_0x586ac7['name']),_0x234271=_0x36013d['filter'](_0x34ce94=>'remove'==_0x34ce94['type']&&'$text'!=_0x34ce94['name']);for(const _0x34fb0a of _0x4a0483)_0x2a4b7f['push']({'key':_0x34fb0a['attributeKey'],'newValue':_0x34fb0a['attributeNewValue'],'oldValue':_0x34fb0a['attributeOldValue'],'range':sn(_0x34fb0a['range'],_0x279cf1['model'])});for(const _0x2827e5 of _0x509071){const _0x1b7beb=_0x234271['find'](_0x443099=>_0x443099['position']['isEqual'](_0x2827e5['position']));_0x1b7beb&&_0x2a4b7f['push']({'key':Ke,'newValue':_0x2827e5['name'],'oldValue':_0x1b7beb['name'],'range':_0x279cf1['model']['createRangeOn'](_0x2827e5['position']['nodeAfter'])});}return 0x0!=_0x2a4b7f['length']&&this['_reduceExistingSuggestions'](_0x2a73af,_0x2a4b7f);}['_processAttributeSuggestions'](_0x3c3314){let _0x315c60=!0x1;const _0x42dcec=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x53e0fc=>_0x53e0fc['data']['newRange']&&_0x53e0fc['name']['startsWith']('suggestion:attribute:'));for(const _0x5d1335 of _0x42dcec){const {subType:_0x45a9f6,id:_0x116dfd}=_0x190ed2(_0x5d1335['name']),_0x390447=_0x45a9f6['split']('|')[0x0];for(const _0x3f8cb7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3f8cb7['id']!=_0x116dfd&&'attribute'==_0x3f8cb7['type']&&_0x3f8cb7['data']&&_0x3f8cb7['data']['key']==_0x390447&&_0x3f8cb7['getFirstRange']()['isIntersecting'](_0x5d1335['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3f8cb7,_0x5d1335['data']['newRange'],_0x3c3314),_0x315c60=!0x0);}return _0x315c60;}['recordAttributeChanges'](_0x1eb1a4){this['_recordAttributeSuggestions']=!0x0,_0x1eb1a4();}['_reduceExistingSuggestions'](_0x4c0535,_0x47b308){if(0x0==_0x47b308['length'])return!0x1;let _0x529605=!0x1;for(const _0x53c8c2 of _0x47b308){const _0x14d841=this['_findSuggestions'](_0x53c8c2['range'],'attribute')['filter'](_0x435bfd=>!_0x435bfd['meta']['isNextTo'])['map'](_0x2b039c=>_0x2b039c['suggestion']),_0x1c98a1=_0x1f6902({'newValue':_0x53c8c2['newValue']});_0x14d841['filter'](_0x116679=>{const [_0x6dd364,_0x575cee]=_0x116679['subType']['split']('|');return _0x6dd364==_0x53c8c2['key']&&_0x575cee!=_0x1c98a1;})['forEach'](_0x141b72=>{this['_reduceSuggestionAttributeRange'](_0x141b72,_0x53c8c2['range'],_0x4c0535),_0x529605=!0x0;});}return _0x529605;}['_reduceSuggestionAttributeRange'](_0x5234df,_0x425e00,_0x526132){const _0x357ab7=_0x5234df['getFirstRange']()['getDifference'](_0x425e00);0x0!==_0x357ab7['length']?0x1!==_0x357ab7['length']?this['_breakSuggestionMarker'](_0x5234df,_0x425e00['start'],_0x425e00['end']):this['_setSuggestionRange'](_0x5234df,_0x357ab7[0x0]):_0x526132['removeMarker'](_0x5234df['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1a0f33){this['_editor']=_0x1a0f33,this['_model']=_0x1a0f33['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4c523c,_0x45e133,_0x1ff0f1,_0x25cdf8,_0x1446ae,_0x1ab4b1,_0x1f6752){return new bt(this['_model'],{'type':_0x4c523c,'subType':_0x45e133,'id':_0x1ff0f1,'originalSuggestionId':_0x1f6752,'author':_0x25cdf8,'creator':_0x25cdf8,'attributes':_0x1446ae,'onAttributesChange':_0x1ab4b1,'onAccept':(..._0x53fa76)=>this['getSuggestionCallback'](_0x4c523c,_0x45e133,'accept')(..._0x53fa76),'onDiscard':(..._0x3552fc)=>this['getSuggestionCallback'](_0x4c523c,_0x45e133,'discard')(..._0x3552fc)});}['registerCustomCallback'](_0x21bb3f,_0x213188,_0x5d3f4b,_0x58b8ee){const _0x1e7034=_0x21bb3f+':'+_0x213188+':'+_0x5d3f4b;this['_customCallbacks']['set'](_0x1e7034,_0x58b8ee);}['getSuggestionCallback'](_0x513d8f,_0x53c6f7,_0x147cde){const _0x1a56fc=_0x513d8f+':'+_0x53c6f7+':'+_0x147cde;return this['_customCallbacks']['get'](_0x1a56fc)||this['_defaultCallbacks']['get'](_0x513d8f+':'+_0x147cde);}['_registerDefaultCallbacks'](){const _0xc8f8b0=()=>!0x1,_0x48da8b=_0x4aa5bd=>{_0x4aa5bd['sort']((_0x4bea8f,_0x314562)=>_0x4bea8f['start']['isBefore'](_0x314562['start'])?0x1:-0x1),this['_model']['change'](_0x2bf9f3=>{for(const _0x3eab8 of _0x4aa5bd){let _0x796cfe;_0x796cfe=_0x3eab8['end']['isAtEnd']&&_0x3eab8['end']['parent']==_0x3eab8['start']['nodeAfter']?_0x2bf9f3['createSelection'](_0x3eab8['start']['nodeAfter'],'on'):_0x2bf9f3['createSelection'](_0x3eab8),this['_model']['deleteContent'](_0x796cfe,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2b96d5=(_0x26a590,_0x19525d)=>{_0x19525d&&this['_model']['change'](_0x5de6b9=>{const {commandName:_0xde38f4,commandParams:_0x1bde84=[]}=_0x19525d,_0x34264b=_0x26a590['map'](_0x478bdf=>(Qe(_0x478bdf)&&(_0x478bdf=this['_model']['createRange'](_0x478bdf['end'])),_0x478bdf))['filter'](_0x43d7d6=>'$graveyard'!==_0x43d7d6['root']['rootName']);if(_0x34264b['length']<0x1)return;const _0x5a6d92=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3df7d4=>_0xcc3cc7['fromRange'](_0x3df7d4));_0x5de6b9['setSelection'](_0x34264b);for(const _0x4ecc27 of this['_editor']['commands']['commands']())_0x4ecc27['refresh']();_0x1bde84['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xde38f4,..._0x1bde84);const _0x201168=_0x5a6d92['filter'](_0x19a15a=>'$graveyard'!=_0x19a15a['root']['rootName']);_0x201168['length']>0x0&&_0x5de6b9['setSelection'](_0x201168);for(const _0x20f110 of _0x5a6d92)_0x20f110['detach']();});},_0x5a50cf=(_0x39b228,_0x20a733)=>0x1==_0x39b228['length']&&0x1==_0x20a733['length']&&_0x39b228[0x0]['end']['isEqual'](_0x20a733[0x0]['start']),_0x4d067e=(_0x1eab3d,_0xff428d,_0x5d1a3c,_0x3f3cfb)=>on(_0x1eab3d,_0xff428d,_0x5d1a3c,_0x3f3cfb)?[_0x1eab3d,_0xff428d]:on(_0xff428d,_0x1eab3d,_0x3f3cfb,_0x5d1a3c)?[_0xff428d,_0x1eab3d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xc8f8b0),this['_defaultCallbacks']['set']('insertion:discard',_0x48da8b),this['_defaultCallbacks']['set']('insertion:join',_0x5a50cf),this['_defaultCallbacks']['set']('insertion:chain',_0x4d067e),this['_defaultCallbacks']['set']('deletion:accept',_0x48da8b),this['_defaultCallbacks']['set']('deletion:discard',_0xc8f8b0),this['_defaultCallbacks']['set']('deletion:join',_0x5a50cf),this['_defaultCallbacks']['set']('deletion:chain',_0x4d067e),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b96d5),this['_defaultCallbacks']['set']('formatInline:discard',_0xc8f8b0),this['_defaultCallbacks']['set']('formatInline:join',_0x5a50cf),this['_defaultCallbacks']['set']('formatInline:chain',_0xc8f8b0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b96d5),this['_defaultCallbacks']['set']('formatBlock:discard',_0xc8f8b0),this['_defaultCallbacks']['set']('formatBlock:join',_0x5a50cf),this['_defaultCallbacks']['set']('formatBlock:chain',_0xc8f8b0),this['_defaultCallbacks']['set']('attribute:accept',_0xc8f8b0),this['_defaultCallbacks']['set']('attribute:discard',(_0x48e156,_0x231c75)=>{if(!_0x231c75)return;const _0x34cc40=this['_editor']['plugins']['get'](_0x47c2bd);this['_model']['change'](_0x49cc26=>{if(_0x231c75['key']==Ke)for(const _0x3e9989 of _0x48e156){const _0x24bd4e=_0x3e9989['start']['nodeAfter'],_0x438ced=_0x231c75['oldValue'];_0x49cc26['rename'](_0x24bd4e,_0x438ced);}else{if(_0x34cc40['isBlockAttribute'](_0x231c75['key'])){for(const _0x4410cb of _0x48e156)void 0x0!==_0x231c75['oldValue']?_0x49cc26['setAttribute'](_0x231c75['key'],_0x231c75['oldValue'],_0x4410cb['start']['nodeAfter']):_0x49cc26['removeAttribute'](_0x231c75['key'],_0x4410cb['start']['nodeAfter']);}else{for(const _0x40b261 of _0x48e156)_0x231c75['oldValue']?_0x49cc26['setAttribute'](_0x231c75['key'],_0x231c75['oldValue'],_0x40b261):_0x49cc26['removeAttribute'](_0x231c75['key'],_0x40b261);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5a50cf);}}function qe(_0x876741,_0x1243a3,_0x1d257e){for(const _0x510ab8 of _0x1243a3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x510ab8['root']==_0x510ab8)return!0x1;if(!_0x1d257e['containsItem'](_0x510ab8))return!0x1;if(_0x876741['isObject'](_0x510ab8)||_0x876741['isLimit'](_0x510ab8))return!0x0;}return!0x1;}function Qe(_0xa6a2f5){return _0xa6a2f5['end']['parent']==_0xa6a2f5['start']['nodeAfter']&&_0xa6a2f5['end']['isAtStart'];}function Ze(_0x6c5f73,_0x5c8231,_0x19ca23,_0x4d9dbb){const _0x317c42=_0x122047=>!_0x122047['item']['is']('$textProxy')&&!_0x4d9dbb['isObject'](_0x122047['item']),_0x15fd05=_0x6c5f73['start']['getLastMatchingPosition'](_0x317c42),_0x16c57d=_0x6c5f73['end']['getLastMatchingPosition'](_0x317c42,{'direction':'backward'});return(!_0x6c5f73['start']['isEqual'](_0x15fd05)||!_0x6c5f73['end']['isEqual'](_0x16c57d))&&(_0x15fd05['isBefore'](_0x16c57d)?_0x19ca23['updateMarker'](_0x5c8231,{'range':_0x19ca23['createRange'](_0x15fd05,_0x16c57d)}):_0x19ca23['removeMarker'](_0x5c8231),!0x0);}function Je(_0x6f91bb){return _0x1f6902(_0x6f91bb);}function tn(_0xdb45f0){const _0x285b83=_0xdb45f0['start']['nodeAfter'];return _0x285b83&&_0x285b83['is']('element');}function en(_0x32ffea){return Qe(_0x32ffea)||function(_0x2e2b02){return _0x2e2b02['start']['parent']==_0x2e2b02['end']['nodeBefore']&&_0x2e2b02['start']['isAtEnd'];}(_0x32ffea);}function nn(_0x49b438,_0x5d76a1){try{const _0x199268=_0x49b438['getRange']();for(const _0x7a5851 of _0x5d76a1)if(_0x49b438!==_0x7a5851&&_0x199268&&_0x199268['isIntersecting'](_0x7a5851['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x2e9ecf,_0x30524a){return null==_0x2e9ecf['end']['nodeBefore']&&_0x2e9ecf['end']['parent']==_0x2e9ecf['start']['nodeAfter']?rn(_0x2e9ecf['start']['nodeAfter'],_0x30524a):_0x2e9ecf;}function rn(_0x1b55ac,_0xa5c7ba){const _0x4a750a=_0xa5c7ba['schema']['isObject'](_0x1b55ac)||_0xa5c7ba['schema']['isSelectable'](_0x1b55ac);return _0xa5c7ba['createRange'](_0xa5c7ba['createPositionAt'](_0x1b55ac,'before'),_0x4a750a?_0xa5c7ba['createPositionAfter'](_0x1b55ac):_0xa5c7ba['createPositionAt'](_0x1b55ac,'end'));}function on(_0x56efc3,_0x455ce4,_0x6e2628,_0x41b2b5){return!!an(_0x56efc3,_0x455ce4)&&_0x6e2628['end']['isEqual'](_0x41b2b5['start']);}function an(_0x33363d,_0x2fdd4d){if(!_0x33363d['_isDataLoaded']||!_0x2fdd4d['_isDataLoaded'])return!0x1;const _0x204490=new Set(Object['keys'](_0x33363d['attributes'])),_0x34aab8=new Set(Object['keys'](_0x2fdd4d['attributes']));if(_0x204490['delete']('groupId'),_0x34aab8['delete']('groupId'),0x0==_0x204490['size']&&0x0==_0x34aab8['size'])return!0x0;if(_0x204490['size']!=_0x34aab8['size'])return!0x1;const _0x404baf={..._0x33363d['attributes']},_0xb74bf={..._0x2fdd4d['attributes']};return delete _0x404baf['groupId'],delete _0xb74bf['groupId'],JSON['stringify'](_0x404baf)==JSON['stringify'](_0xb74bf);}function cn(_0xc8e24,_0x30f671){const _0x58ba20=ln(_0xc8e24['attributes']),_0x1e2e5b=ln(_0x30f671);if(!_0xc8e24['_isDataLoaded'])return!0x1;for(const _0x1e493d of Object['keys'](_0x1e2e5b))if(!st(_0x58ba20[_0x1e493d],_0x1e2e5b[_0x1e493d]))return!0x1;return!0x0;}function ln(_0x4673a1){const _0x3b18ab=Object['assign']({},_0x4673a1);return delete _0x3b18ab['skipNestingCheck'],delete _0x3b18ab['tablePasteChainId'],_0x3b18ab;}function un(_0x36b193){return _0x36b193['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x213a43(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x34a049,_0xd5942d,_0x22ed9b,_0xb5d758){super(),this['model']=_0xd5942d,this['view']=_0x22ed9b,this['commentThreadController']=_0xb5d758,this['_editor']=_0x34a049,this['_acceptCommand']=_0x34a049['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x34a049['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53ecda,_0x3827d5)=>_0x53ecda||_0x3827d5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x120e8e=>_0x120e8e&&this['_editor']['model']['canEditAt'](_0xd5942d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1945ef=>_0x1945ef&&this['_editor']['model']['canEditAt'](_0xd5942d['getRanges']())),this['_pendingAction']=null,_0x22ed9b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x22ed9b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x22ed9b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x22ed9b,'change:isDirty',()=>{_0x22ed9b['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 _0x5b5791=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5b5791);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x393ace{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d88f9,_0x4d3e15,_0x4e57d1,_0x2e7cb1){super(_0x5d88f9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x19e2e2(_0x5d88f9,At(_0x5d88f9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4d3e15['authoredAt']),this['bind']('authoredAt')['to'](_0x4d3e15),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',_0x4d3e15,'authoredAt',this,'descriptionParts',(_0x4b2bad,_0x1dbf8b,_0x36663e)=>{const _0x26d213=_0x36663e['map'](_0xb40e19=>gt(_0xb40e19['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4b2bad-0x1,_0x4d3e15['author']['name'],_0x1dbf8b?_0x2e7cb1['formatDateTime'](_0x1dbf8b):'',new DOMParser()['parseFromString'](_0x26d213,'text/html')['body']['textContent']]);}),this['focusables']=new _0x19d41b(),this['focusTracker']=new _0x51d144(),this['keystrokes']=new _0x28cfed(),this['focusCycler']=new _0x1922d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4b909f=>_0x4b909f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4d3e15,this['_localUser']=_0x4e57d1,this['_config']=_0x2e7cb1,_0x2e7cb1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x9dddef(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x25cac2}=this['_config'];this['commentsListView']=new _0x25cac2(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',_0x5b7381=>_0x5b7381+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f5099,_0x58a1d3)=>_0x2f5099||!!_0x58a1d3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x432f7e}=this['_config'],_0xb93a91=new _0x432f7e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfa5268=_0xb93a91['commentInputView'];return _0xb93a91['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfa5268,'value',(_0x56daaa,_0x301997,_0x5b3af4)=>!!_0x5b3af4||_0x56daaa&&!_0x301997),_0xfa5268['on']('submit',(_0x2240cc,_0x4508b9)=>{this['fire']('addComment',_0x4508b9),_0xfa5268['editor']['setData']('');}),_0xfa5268['on']('cancel',()=>this['focus']()),_0xfa5268['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb93a91;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x838c2e,_0x57b441,_0x2588d5,_0x114448){super(_0x838c2e,_0x57b441,_0x2588d5,_0x114448),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5f8677=>_0x5f8677&&_0x5f8677[0x0]?_0x5f8677[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x16b9eb,_0x20f4bd)=>{let _0x5e5235='';for(const _0xc49858 of _0x16b9eb)_0x5e5235+='<p>'+gt(_0xc49858['content'],_0xc49858['color'])+'</p>';return _0x20f4bd?_0x5e5235:_0x56c543(_0x5e5235,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x114448['SuggestionView'](_0x838c2e,_0x57b441,{'formatDateTime':_0x114448['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 _0x24cc24=this['bindTemplate'],_0x1f6a08=[this['suggestionView']];return this['commentsListView']&&_0x1f6a08['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f6a08['push'](this['commentThreadInputView']),_0x1f6a08['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x24cc24['if']('isActive','ck-suggestion-wrapper--active'),_0x24cc24['to']('type',_0x2c16a1=>'ck-suggestion-'+_0x2c16a1),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':_0x24cc24['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f6a08};}['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 _0x393ace{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a1461,_0x148839,_0xc7e34a){super(_0x2a1461),this['_model']=_0x148839,this['_config']=_0xc7e34a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x148839),this['acceptButton']=this['_createButton'](At(_0x2a1461,'Accept\x20suggestion'),_0x2f80df,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x2a1461,'Discard\x20suggestion'),_0x107cc1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x8641a0(_0x2a1461,_0x148839['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x19d41b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x51d144(),this['keystrokes']=new _0x28cfed(),this['focusCycler']=new _0x1922d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4b14da=>_0x4b14da['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3f8e3c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3f8e3c['innerHTML']=this['description'],this['on']('change:description',(_0x1c3cd8,_0x22b3cf,_0x43e12e)=>{_0x3f8e3c['innerHTML']=_0x43e12e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a2094=this['bindTemplate'],_0x347baf=[{'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':_0x2a2094['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a2094['to']('authoredAt',_0x9d61e5=>this['_config']['formatDateTime'](_0x9d61e5))}]}]},{'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']&&_0x347baf['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':_0x347baf}]};}['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'](_0x46e5ed,_0x493cb8,_0x2dcd7e,_0x507b48,_0x25bfe8){const _0x3b996c=new _0x50b50e(this['locale']);return _0x3b996c['set']({'label':_0x46e5ed,'icon':_0x493cb8,'tooltip':!0x0,'tooltipPosition':_0x25bfe8}),_0x3b996c['extendTemplate']({'attributes':{'class':_0x2dcd7e}}),_0x3b996c['on']('execute',()=>{this['fire'](_0x507b48,this['_model']['id']);}),_0x3b996c;}['_setupKeyboardNavigation'](){const _0x51b4b8=this['element'];this['keystrokes']['listenTo'](_0x51b4b8);for(const _0x3ede9d of this['focusables'])this['focusTracker']['add'](_0x3ede9d['element']),this['keystrokes']['listenTo'](_0x3ede9d['element']);this['keystrokes']['set']('enter',(_0x304b55,_0x4bed96)=>{_0x51b4b8===_0x304b55['target']&&(this['focusCycler']['focusFirst'](),_0x4bed96());}),this['keystrokes']['set']('esc',(_0x508e28,_0x2d48fc)=>{_0x51b4b8!==_0x508e28['target']&&(this['focus'](),_0x2d48fc());});}}class mn extends _0x495525{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x31a878,_0x2e053f,_0x1c7ed0,_0x3f048c];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x219fb7){super(_0x219fb7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5c36ae=this['editor']['config'];_0x5c36ae['define']('trackChanges.SuggestionThreadView',fn),_0x5c36ae['define']('trackChanges.SuggestionView',gn),_0x5c36ae['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5c36ae['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4d94d5,_0x25eb3c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x260626,_0x15f784]of this['_handleControllerBuffer']){const _0x452505=this['_suggestionToController']['has'](_0x260626);_0x452505||_0x15f784?_0x452505&&_0x15f784&&this['_destroyController'](_0x260626):this['_initializeController'](_0x260626);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x3f048c)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d94d5,_0x25eb3c);}['init'](){const _0x101b98=this['editor'],_0x4ad796=_0x101b98['plugins']['get'](Xe),_0x56d270=_0x101b98['plugins']['get'](_0x1c7ed0),_0xac692c=_0x101b98['plugins']['get'](_0x3f048c),_0x808897=_0x101b98['plugins']['get'](_0x2e053f);this['_addUIComponentsToFactory'](),_0xac692c['addSourceCollector'](()=>{const _0x1fbb0f=[];for(const [_0x4de7fd,_0x38dba7]of Array['from'](this['_suggestionToController'])){const _0x2f1728=_0x4de7fd['getAllAdjacentSuggestions'](),_0x4a55b3=[];for(const _0x29c108 of _0x2f1728){if(!_0x29c108['isInContent'])continue;if(_0x29c108['isMultiRange']){_0x4a55b3['push'](..._0x29c108['getRanges']());continue;}const _0x1ce0d5=_0x29c108['getFirstRange']();if(_0x4a55b3['length']>0x0){const _0x4840ab=_0x4a55b3[0x0]['getJoined'](_0x1ce0d5);if(_0x4840ab){_0x4a55b3[0x0]=_0x4840ab;continue;}}_0x4a55b3['push'](_0x1ce0d5);}_0x1fbb0f['push']([_0x38dba7['view'],_0x4a55b3]);}return _0x1fbb0f;}),this['listenTo'](_0x4ad796,'suggestionLoaded',(_0x540aeb,_0x3f70cc)=>{this['listenTo'](_0x3f70cc,'change:previous',(_0x475f95,_0x3ffded,_0x37fa3d,_0x4025cf)=>{_0x3f70cc['isInContent']&&(null==_0x37fa3d?(this['_updateController'](_0x4025cf['head']),this['_handleSuggestionControllerDelayed'](_0x3f70cc,!0x1)):(this['_updateController'](_0x37fa3d['head']),null==_0x4025cf&&this['_handleSuggestionControllerDelayed'](_0x3f70cc,!0x0)));}),null!==_0x3f70cc['previous']?this['_updateController'](_0x3f70cc['head']):this['_handleSuggestionControllerDelayed'](_0x3f70cc,!0x1);}),this['listenTo'](_0x4ad796,'suggestionUnloaded',(_0x38e19e,_0x599c4c,_0x5d6b45)=>{this['stopListening'](_0x599c4c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x599c4c),this['_suggestionToController']['has'](_0x599c4c)&&this['_destroyController'](_0x599c4c),_0x5d6b45&&this['_updateController'](_0x5d6b45['head']);}),this['listenTo'](_0x4ad796,'suggestionChanged',(_0x46b6a2,_0x269755)=>{this['_updateController'](_0x269755);}),this['listenTo'](_0x56d270,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x808897,'addComment',(_0x4f738a,{threadId:_0x1bab3c,isFromAdapter:_0x4e7e07})=>{if(_0x4e7e07||!_0x4ad796['hasSuggestion'](_0x1bab3c))return;const _0x2487bb=_0x4ad796['getSuggestion'](_0x1bab3c);this['_suggestionToController']['get'](_0x2487bb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc233d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3edb3b;for(const _0x384de3 in _0xc233d9){const _0x3f0123=_0x384de3,_0x4746a7=_0xc233d9[_0x3f0123];if('trackChangesLicenseKeyValid'==_0x4746a7||'trackChangesLicenseKeyInvalid'==_0x4746a7||'trackChangesLicenseKeyExpired'==_0x4746a7||'trackChangesLicenseKeyDomainLimit'==_0x4746a7||'trackChangesLicenseKeyNotAllowed'==_0x4746a7||'trackChangesLicenseKeyEvaluationLimit'==_0x4746a7||'trackChangesLicenseKeyUsageLimit'==_0x4746a7){delete _0xc233d9[_0x3f0123],_0x3edb3b=_0x4746a7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3edb3b&&_0xc233d9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3edb3b&&_0xc233d9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3edb3b&&_0xc233d9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3edb3b&&_0xc233d9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3edb3b&&_0xc233d9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3edb3b&&_0xc233d9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4184c0){const _0x2621a4=this['_suggestionToController']['get'](_0x4184c0);if(!_0x2621a4)return null;return this['editor']['plugins']['get'](_0x1c7ed0)['getByInnerView'](_0x2621a4['view'])||null;}['getSuggestionForAnnotation'](_0x3127f2){const _0xd681e4=this['_viewToController']['get'](_0x3127f2['innerView']);return _0xd681e4?_0xd681e4['model']:null;}['_refreshActiveMarkers'](){const _0x5c09dc=this['editor']['plugins']['get'](_0x1c7ed0),_0x561cd0=this['editor']['plugins']['get'](Xe),_0x2a2a98=Array['from'](_0x5c09dc['activeAnnotations'],_0x157208=>_0x157208['innerView'])['filter'](_0x543b0e=>this['_viewToController']['has'](_0x543b0e)),_0x492f2c=[];for(const _0x17dd0c of _0x2a2a98){const _0x248e5e=this['_viewToController']['get'](_0x17dd0c)['model']['getAllAdjacentSuggestions']();_0x492f2c['push'](..._0x248e5e['reduce']((_0x3dbbaa,_0x59b9d0)=>[..._0x3dbbaa,..._0x59b9d0['getMarkerNames']()],[]));}_0x561cd0['activeMarkers']=_0x492f2c;}['_addUIComponentsToFactory'](){const _0x3493d3=this['editor'],_0x5bd771=_0x3493d3['locale'],_0x59fda3=At(_0x5bd771,'Track\x20changes'),_0x420922=new _0x48b5a3([{'type':'switchbutton','model':new _0x31c6fd({'withText':!0x0,'isToggleable':!0x0,'label':_0x59fda3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x31c6fd({'withText':!0x0,'label':At(_0x5bd771,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31c6fd({'withText':!0x0,'label':At(_0x5bd771,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31c6fd({'withText':!0x0,'label':At(_0x5bd771,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31c6fd({'withText':!0x0,'label':At(_0x5bd771,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3493d3['plugins']['has']('TrackChangesPreview')&&_0x420922['addMany']([{'type':'separator'},{'type':'button','model':new _0x31c6fd({'withText':!0x0,'label':At(_0x5bd771,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5db164 of _0x420922)if(En(_0x5db164)){const _0x5cfab0=_0x3493d3['commands']['get'](_0x5db164['model']['commandName']);_0x5db164['model']['bind']('isOn','isEnabled')['to'](_0x5cfab0,'value','isEnabled');}_0x3493d3['ui']['componentFactory']['add']('trackChanges',_0x337d9a=>this['_createToolbarButton'](_0x337d9a,_0x420922,_0x59fda3)),_0x3493d3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x385024=>this['_createMenuBarMenu'](_0x385024,_0x420922,_0x59fda3));}['_createToolbarButton'](_0x3b260f,_0x14af10,_0x2bda45){const _0x441df7=_0x277ab6(_0x3b260f,_0xb618c),_0x53194a=this['editor']['commands']['get']('trackChanges');_0x441df7['buttonView']['set']({'tooltip':_0x2bda45,'label':_0x2bda45,'icon':_0x449307}),_0x441df7['buttonView']['bind']('isOn')['to'](_0x53194a,'value'),_0x441df7['buttonView']['on']('execute',()=>{_0x53194a['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ae90d(_0x441df7,_0x14af10,{'role':'menu'});const _0x441f23=[];for(const _0x89cbff of _0x14af10)En(_0x89cbff)&&_0x441f23['push'](this['editor']['commands']['get'](_0x89cbff['model']['commandName']));const _0x2101ee=_0x441df7['buttonView'];return _0x2101ee['actionView']['unbind']('isEnabled'),_0x2101ee['arrowView']['unbind']('isEnabled'),_0x2101ee['actionView']['bind']('isEnabled')['to'](_0x53194a,'isEnabled'),_0x2101ee['arrowView']['bind']('isEnabled')['toMany'](_0x441f23,'isEnabled',(..._0x1cdfeb)=>_0x1cdfeb['some'](_0x34d69b=>_0x34d69b)),_0x441df7['on']('execute',_0x3f2e65=>{this['editor']['execute'](_0x3f2e65['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x441df7;}['_createMenuBarMenu'](_0x3d6177,_0xf3cca5,_0x115e55){const _0x381f30=new _0x32dc5d(_0x3d6177),_0x356e9f=this['editor']['commands']['get']('trackChanges');_0x381f30['buttonView']['set']({'label':_0x115e55,'icon':_0x449307});const _0x163845=new _0x35f7ef(_0x3d6177);for(const _0x5e7fb6 of _0xf3cca5){if('separator'==_0x5e7fb6['type']){_0x163845['items']['add'](new _0x4f6e01(_0x3d6177));continue;}const _0x56f65a=new _0xe7de70(_0x3d6177,_0x381f30),_0x53c6a9=new _0x265fb3(_0x3d6177),_0xfa702=_0x5e7fb6['model'];_0x53c6a9['bind'](...Object['keys'](_0xfa702))['to'](_0xfa702),_0x53c6a9['delegate']('execute')['to'](_0x381f30),_0x53c6a9['on']('execute',()=>{this['editor']['execute'](_0xfa702['commandName']),this['editor']['editing']['view']['focus']();}),_0x56f65a['children']['add'](_0x53c6a9),_0x163845['items']['add'](_0x56f65a);}return _0x381f30['bind']('isEnabled')['to'](_0x356e9f,'isEnabled'),_0x381f30['panelView']['children']['add'](_0x163845),_0x381f30;}['_initializeController'](_0x4f4941){const _0x49da4d=this['editor'],_0x4eb218=_0x49da4d['config'],_0x52f791=_0x49da4d['plugins']['get'](_0x1c7ed0),_0x4f94dc=_0x49da4d['plugins']['get'](_0x2e053f),_0x539b54=_0x49da4d['plugins']['get'](_0x3f048c),_0x4ea427=_0x49da4d['plugins']['get'](_0x31a878)['me'],_0x300476=_0x4eb218['get']('trackChanges')['SuggestionThreadView'],_0x16db74=_0x4eb218['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3cea7c,CommentThreadInputView:_0x506f1d}=_0x49da4d['plugins']['get']('CommentsUI');let _0x1cb595,_0x28c179,_0x4cae21;this['_annotationViews']['has'](_0x4f4941['id'])?(_0x28c179=this['_annotationViews']['get'](_0x4f4941['id']),_0x1cb595=_0x28c179['mainView']):(_0x1cb595=new _0x300476(_0x49da4d['locale'],_0x4f4941,_0x4ea427,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4eb218['get']('comments.editorConfig'),'licenseKey':_0x4eb218['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4eb218['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4eb218['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4eb218['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5c1070(_0x4eb218['get']('locale'),_0x49da4d['locale']),'CommentView':_0x4eb218['get']('comments')['CommentView'],'CommentsListView':_0x3cea7c,'CommentThreadInputView':_0x506f1d,'SuggestionView':_0x16db74}),_0x1cb595['suggestionView']['acceptButton']['on']('execute',()=>{_0x49da4d['editing']['view']['focus']();}),_0x1cb595['suggestionView']['discardButton']['on']('execute',()=>{_0x49da4d['editing']['view']['focus']();}),_0x28c179=_0x52f791['createAnnotationView'](this['editor']['locale'],_0x1cb595),_0x28c179['bind']('isDirty')['to'](_0x1cb595,'isDirty'),_0x28c179['bind']('length')['to'](_0x1cb595),_0x28c179['bind']('type')['to'](_0x1cb595,'type',_0x5cf89e=>'suggestion-'+_0x5cf89e),_0x1cb595['on']('escape',()=>{_0x4cae21['fire']('escape');}),this['_annotationViews']['set'](_0x4f4941['id'],_0x28c179));const _0x4b61cf=_0x4f94dc['createCommentThreadController'](_0x4f4941['commentThread'],_0x1cb595),_0x25d556=new hn(_0x49da4d,_0x4f4941,_0x1cb595,_0x4b61cf),_0x4ecdab=_0x4f4941['getAllAdjacentSuggestions']()['filter'](_0x3f6f0f=>_0x3f6f0f['isInContent']);_0x1cb595['descriptionParts']=_0x49da4d['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x4ecdab),this['_suggestionToController']['set'](_0x4f4941,_0x25d556),this['_viewToController']['set'](_0x1cb595,_0x25d556);const _0x43a5fb=()=>{const _0x261ac4=[],_0x2f85e7=_0x4f4941['getAllAdjacentSuggestions']()['filter'](_0x392012=>_0x392012['isInContent']);for(const _0x8ba60c of _0x2f85e7)_0x261ac4['push'](..._0x8ba60c['getMarkers']());return _0x4615f7(_0x49da4d['editing'],_0x261ac4);};_0x4cae21=_0x52f791['createAnnotation']({'view':_0x28c179,'target':_0x43a5fb,'type':()=>'suggestion-'+_0x25d556['view']['type'],'isVisible':!!_0x43a5fb()}),_0x4f94dc['_bindAnnotationToEditors'](_0x1cb595,_0x4cae21),_0x52f791['add'](_0x4cae21),_0x539b54['registerAnnotation'](_0x4cae21);}['_destroyController'](_0x3c9c1e){const _0x673d5e=this['editor']['plugins']['get'](_0x2e053f),_0x552c86=this['editor']['plugins']['get'](_0x1c7ed0),_0x29b960=this['_suggestionToController']['get'](_0x3c9c1e),_0x20bdb3=_0x29b960['view'],_0x5ef486=_0x552c86['getByInnerView'](_0x20bdb3);_0x673d5e['_unbindEditors'](_0x20bdb3),_0x5ef486&&_0x552c86['remove'](_0x5ef486),this['_suggestionToController']['delete'](_0x3c9c1e),this['_viewToController']['delete'](_0x20bdb3),_0x29b960['destroy']();}['_updateController'](_0x33f2d5){if(!_0x33f2d5['isInContent']||!this['_suggestionToController']['has'](_0x33f2d5))return;const _0x37d5c1=this['editor']['plugins']['get'](Xe),_0x58168a=this['_suggestionToController']['get'](_0x33f2d5),_0x1edcf1=_0x33f2d5['getAllAdjacentSuggestions']();_0x58168a['view']['descriptionParts']=_0x37d5c1['descriptionFactory']['getDescriptions'](_0x1edcf1);}['destroy'](){for(const _0x4d205c of this['_suggestionToController']['keys']())this['_destroyController'](_0x4d205c);for(const _0x9255de of this['_annotationViews']['values']())_0x9255de['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x40029b){return'model'in _0x40029b;}class Tn extends _0x495525{static get['requires'](){return[Xe,mn,_0x2dbc02];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2791b1){this['editor']['plugins']['get'](Xe)['adapter']=_0x2791b1;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x2740e3){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x2740e3);}['getSuggestions']({skipNotAttached:_0x52404d=!0x1,toJSON:_0xdb352e=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x52404d,'toJSON':_0xdb352e});}['getSuggestion'](_0xde44c){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0xde44c);}}const _n=['Pagination'];class pn extends _0x495525{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x341b17=this['editor'];if(_0x341b17['config']['define']('trackChangesData.editorCreator',_0x332b52=>{const _0x3fd115=_0x341b17['model']['document']['getRootNames']()['reduce']((_0xa2498,_0x1faee0)=>(_0xa2498[_0x1faee0]='',_0xa2498),{});return _0x341b17['constructor']['create'](_0x3fd115,_0x332b52);}),'function'!=typeof _0x341b17['config']['get']('trackChangesData')['editorCreator'])throw new _0x3a7e29('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2f084e){return bn(this['editor'],!0x0,_0x2f084e);}['getDataWithDiscardedSuggestions'](_0x502ee8){return bn(this['editor'],!0x1,_0x502ee8);}}class Ln extends _0x495525{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f471d){function _0x4d1d04(_0x56cfbe){return _0x56cfbe['map'](_0x505bdc=>String['fromCharCode'](_0x505bdc))['join']('');}super(_0x2f471d),this['result']='end',_0x2f471d[_0x4d1d04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d1d04([0x76,0x69,0x65,0x77])][_0x4d1d04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d1d04([0x61,0x75,0x74,0x6f]),_0x2f471d[_0x4d1d04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d1d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d1d04([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d1d04([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d1d04([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(_0x395bc9){return void 0x0!==_0x395bc9['getRootsAttributes'];}async function bn(_0xa5387c,_0x1534fe,_0x213e62){const _0x329d0a=_0x39e11a(_0xa5387c,_n);if(_0x329d0a['plugins']['push'](Xe,Ln),In(_0xa5387c)){_0x329d0a['roots']=Object['create'](null);for(const _0x113fb8 of _0xa5387c['model']['document']['getRootNames']())_0x329d0a['roots'][_0x113fb8]={'modelAttributes':_0xa5387c['getRootAttributes'](_0x113fb8)};}const _0xf7c0d9=document['createDocumentFragment'](),_0x1a49d1=_0xa5387c['config']['get']('trackChangesData')['editorCreator'],_0x51314d=await _0x1a49d1(_0x329d0a,()=>function(_0x26a5e1){const _0x1a52eb=document['createElement']('div');return _0x26a5e1['appendChild'](_0x1a52eb),_0x1a52eb;}(_0xf7c0d9));!function(_0x3f59a1,_0x2bfbf8){const _0x27000d=_0x3f59a1['model']['document']['getRootNames']()['reduce']((_0x3e05fb,_0x2f99a0)=>(_0x3e05fb[_0x2f99a0]=_0x3f59a1['data']['get']({'rootName':_0x2f99a0}),_0x3e05fb),{}),_0x337d74=_0x3f59a1['plugins']['get']('Users')['users']['map'](_0x2cf6fd=>({'id':_0x2cf6fd['id'],'name':_0x2cf6fd['name']})),_0x516661=_0x3f59a1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc7c329=_0x3f59a1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x563d17=_0x2bfbf8['plugins']['get']('Users'),_0x438fbb=_0x2bfbf8['plugins']['get']('TrackChangesEditing'),_0x17634e=_0x2bfbf8['plugins']['get']('CommentsRepository');for(const _0x323b3a of _0x17634e['getCommentThreads']())_0x323b3a['remove']();for(const _0x5120af of _0x337d74)_0x563d17['getUser'](_0x5120af['id'])||_0x563d17['addUser'](_0x5120af);_0x563d17['me']||_0x563d17['useAnonymousUser']();for(const _0x1b80be of _0xc7c329)_0x17634e['addCommentThread'](_0x1b80be);for(const _0x47f766 of _0x516661)_0x438fbb['addSuggestionData'](_0x47f766);_0x2bfbf8['data']['set'](_0x27000d);}(_0xa5387c,_0x51314d),_0x51314d['execute'](_0x1534fe?'acceptAllSuggestions':'discardAllSuggestions');const _0x522abc=In(_0x51314d)?_0x51314d['getFullData'](_0x213e62):_0x51314d['data']['get'](_0x213e62);return await _0x51314d['destroy'](),_0x522abc;}class An extends _0x393ace{['options'];constructor(_0x3fbfc1,_0x1b7b73){super(_0x3fbfc1),this['options']=_0x1b7b73,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'](_0x18e9dd,_0x247a2e){if(!this['element'])return;const _0x170c0b=[];for(const [_0x2dd190,_0x2aa9d4]of _0x18e9dd){const _0x97513c=document['createElement']('div');_0x97513c['setAttribute']('data-ck-root-name',_0x2dd190),_0x97513c['className']=_0x2aa9d4['classes']+'\x20ck-track-changes-preview__root-container',_0x97513c['innerHTML']=_0x2aa9d4['content'],_0x170c0b['push'](_0x97513c);}_0x247a2e(this['element'],_0x170c0b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x3d2e0d{constructor(_0x3b3cb0){super(_0x3b3cb0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x57994f=this['editor'],_0x492892=_0x57994f['locale'],_0x5775a2=_0x57994f['plugins']['get']('Dialog');let _0x56331a;const _0x288355=function(_0x544f4f){const _0x591cc8={};if('editables'in _0x544f4f['ui']['view']){for(const [_0x4927bc,_0x332644]of Object['entries'](_0x544f4f['ui']['view']['editables']))_0x591cc8[_0x4927bc]=_0x332644['element'];}else _0x591cc8[_0x544f4f['model']['document']['getRootNames']()[0x0]]=_0x544f4f['ui']['view']['editable']['element'];return _0x591cc8;}(_0x57994f),_0xa86f14=function(_0x4e030e){let _0x3e0c20=0x0;for(const _0x22e5d3 of Object['values'](_0x4e030e))_0x3e0c20=Math['max'](_0x3e0c20,_0x22e5d3['getBoundingClientRect']()['width']);let _0x11e868=0x0;for(const _0x34786f of Object['values'](_0x4e030e))_0x11e868+=_0x34786f['getBoundingClientRect']()['height'];const _0x3fefd5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x27f3ae=Math['min'](_0x11e868,_0x3fefd5);return{'width':_0x3e0c20,'height':_0x27f3ae};}(_0x288355);_0x5775a2['show']({'id':'finalContentPreview','title':At(_0x492892,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x492892,{'dialogRects':_0xa86f14}),'onHide':()=>{_0x56331a['detachFromDom']();},'onShow':()=>{_0x57994f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x439dda=>{const _0x45140e=this['_standarizeRootsData'](_0x439dda,_0x57994f,_0x288355);_0x5775a2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x45140e,_0x57994f['config']['get']('trackChanges.preview.renderFunction'));}),_0x56331a=new _0x38073e(_0x492892,[_0x5775a2['view']]),_0x56331a['attachToDom'](),_0x56331a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x57994f['once']('destroy',()=>{_0x56331a['detachFromDom']();});const _0x22462f=_0x5775a2['view']['headerView']['class'];_0x5775a2['view']['headerView']['class']=_0x22462f?_0x22462f+'\x20ck-reset_all':'ck-reset_all',_0x5775a2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5775a2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x26050b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1aad88=_0x26050b['previewMode'],_0x17e251={};if('$labels'===_0x1aad88){for(const _0xe0860e of _0x26050b['getMergeFieldsIds']())_0x17e251[_0xe0860e]=_0x26050b['getLabel'](_0xe0860e)||_0xe0860e;}else{const _0x295055='$defaultValues'===_0x1aad88?_0x26050b['getDefaultValues']():_0x26050b['getDataSetValues'](_0x1aad88,!0x0);for(const _0x397b85 of Object['entries'](_0x295055)){const [_0x397237,_0xd7959d]=_0x397b85;_0x17e251[_0x397237]=null!==_0xd7959d?_0xd7959d:_0x26050b['getLabel'](_0x397237)||_0x397237;}}return{'mergeFieldsData':_0x17e251};}['_standarizeRootsData'](_0x5d62b9,_0x3ca34c,_0x35258a){let _0x194a27;if('string'==typeof _0x5d62b9){const _0x3a82e7=_0x3ca34c['model']['document']['getRootNames']()[0x0];_0x194a27={[_0x3a82e7]:_0x5d62b9};}else _0x194a27=_0x5d62b9;const _0x58bc37=this['_fixMediaEmbeds'](_0x194a27,_0x3ca34c),_0x39e78c=function(_0x5ab24e,_0x200b2c){for(const [_0x3b52a5,_0x195126]of _0x5ab24e)_0x195126['classes']=_0x200b2c[_0x3b52a5]['classList']['value']['replace']('ck-focused','');return _0x5ab24e;}(this['_sortRoots'](_0x3ca34c)['reduce']((_0x4ee612,_0x3f68fb)=>(_0x4ee612['push']([_0x3f68fb,{'content':_0x58bc37[_0x3f68fb],'classes':''}]),_0x4ee612),[]),_0x35258a);return _0x39e78c;}['_fixMediaEmbeds'](_0x26bd4f,_0x58aa99){if(!_0x58aa99['plugins']['has']('MediaEmbedEditing'))return _0x26bd4f;const _0x518ded=_0x58aa99['plugins']['get']('MediaEmbedEditing');for(const [_0x434dbb,_0x5ab037]of Object['entries'](_0x26bd4f)){const _0x1d6d6c=document['createElement']('div');_0x1d6d6c['innerHTML']=_0x5ab037,(_0x1d6d6c['querySelectorAll']('figure.media')['forEach'](_0x39a067=>{const _0x5f3eeb=_0x39a067['querySelector']('oembed');if(_0x5f3eeb){const _0x687b88=_0x5f3eeb['getAttribute']('url');if(_0x687b88){const _0x233dc9=_0x518ded['registry']['getMediaViewElement'](new et(_0x58aa99['editing']['view']['document']),_0x687b88,{'elementName':'','renderForEditingView':!0x0}),_0x4ccb0f=document['createElement']('div');_0x4ccb0f['classList']['add']('ck-media__wrapper'),_0x233dc9['render'](_0x4ccb0f,_0x58aa99['editing']['view']['domConverter']),_0x5f3eeb['replaceWith'](_0x4ccb0f);}}}),_0x26bd4f[_0x434dbb]=_0x1d6d6c['innerHTML']);}return _0x26bd4f;}['_sortRoots'](_0x4ca97b){if(!function(_0x389405){return void 0x0!==_0x389405['getRootsAttributes'];}(_0x4ca97b))return _0x4ca97b['model']['document']['getRootNames']();const _0x25ecf3=[],_0x29ef79=new Map();for(const _0x1fe7ea of _0x4ca97b['model']['document']['getRootNames']()){const _0xa331d9=_0x4ca97b['editing']['view']['getDomRoot'](_0x1fe7ea)['getClientRects']()['item'](0x0);_0x25ecf3['push'](_0x1fe7ea),_0x29ef79['set'](_0x1fe7ea,_0xa331d9);}return _0x25ecf3['sort']((_0x144dd4,_0x54bf69)=>{const _0x59fb50=_0x29ef79['get'](_0x144dd4),_0x4ffc70=_0x29ef79['get'](_0x54bf69);return _0x59fb50['y']-_0x4ffc70['y']||_0x59fb50['x']-_0x4ffc70['x'];}),_0x25ecf3;}}class Cn extends _0x495525{static get['requires'](){return[pn,_0x5335ec];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7a3a21){super(_0x7a3a21),_0x7a3a21['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x7a3a21['config']['define']('trackChanges.preview.renderFunction',(_0xcccdeb,_0x27955a)=>{for(const _0x3d1751 of _0x27955a)_0xcccdeb['appendChild'](_0x3d1751);});}}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 _0x19b9d0,Plugin as _0x54c126,PendingActions as _0x2065a9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0xab4f6c,Annotations as _0x2c7266,EditorAnnotations as _0x2c2fd4,Comments as _0x1b2d4c}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2c014e,ObservableMixin as _0x26cebd,uid as _0x171c64,priorities as _0x2ac962,insertToPriorityArray as _0x3257c6,logWarning as _0x5a7ef0,getEnvKeystrokeText as _0x4d7993,FocusTracker as _0x13cc1f,KeystrokeHandler as _0x22681e,Collection as _0x47f0ab}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xb31ffe,IconCancel as _0x1b6be9,IconTrackChanges as _0xdefe62}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3340df,View as _0x2287ec,ViewCollection as _0x4311be,FocusCycler as _0x241920,UIModel as _0x18b3fa,createDropdown as _0x457bb6,SplitButtonView as _0x4b46e7,addListToDropdown as _0x85e161,MenuBarMenuView as _0x4ea1c1,MenuBarMenuListView as _0x2fe6e5,ListSeparatorView as _0xc0451d,MenuBarMenuListItemView as _0x5dac58,MenuBarMenuListItemButtonView as _0x45312d,BodyCollection as _0x3c2fd8,Dialog as _0x4d24f8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x39dc22,SuggestionsConversion as _0x24e0bb,Users as _0x55241e,DocumentCompare as _0x48278f,fixElementSuggestionRange as _0x8f03da,hashObject as _0x297123,surroundingMarkersDetector as _0x1963c5,FOCUS_ANNOTATION_KEYSTROKE as _0x3cb4f5,AriaDescriptionView as _0x1f7250,setupThreadKeyboardNavigation as _0xdc4749,trimHtml as _0x54ff17,UserView as _0x9a95db,LateFocusButtonView as _0x512b8f,getDateTimeFormatter as _0x22a611,getAllMarkersDomElementsSorted as _0x3512a3,sanitizeEditorConfig as _0x5d0e05}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x540bdd,ModelLiveRange as _0x121353,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 _0x19b9d0{['_enabledCommands'];constructor(_0x161a75,_0x34d05c){super(_0x161a75),this['_enabledCommands']=_0x34d05c,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 _0x967dcb of this['editor']['commands']['commands']())_0x967dcb['affectsData']&&!this['_enabledCommands']['has'](_0x967dcb)&&_0x967dcb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x302389 of this['editor']['commands']['commands']())_0x302389['affectsData']&&!this['_enabledCommands']['has'](_0x302389)&&_0x302389['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x19b9d0{['_suggestions'];constructor(_0x38b5d1,_0x2aa984){super(_0x38b5d1),this['_suggestions']=_0x2aa984,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x22630a){const _0x305d49=this['_suggestions']['get'](_0x22630a);if(!_0x305d49)throw new _0x2c014e('track-changes-accept-suggestion-not-found',this);const _0x45f686=_0x305d49['getRanges']();this['editor']['model']['canEditAt'](_0x45f686)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x305d49);}}class ft extends _0x19b9d0{['_suggestions'];constructor(_0x3e8e51,_0xe40411){super(_0x3e8e51),this['_suggestions']=_0xe40411,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a7934){const _0x52f920=this['_suggestions']['get'](_0x2a7934);if(!_0x52f920)throw new _0x2c014e('track-changes-discard-suggestion-not-found',this);const _0x37e91c=_0x52f920['getRanges']();this['editor']['model']['canEditAt'](_0x37e91c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x52f920);}}function gt(_0x11c73f,_0x7ac8c9){let _0x4fbdd0='';return _0x4fbdd0+=_0x11c73f['split']('*')['map']((_0x158490,_0x3e1745)=>_0x3e1745%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x158490)+'</span>':mt(_0x158490))['join'](''),_0x7ac8c9&&(_0x4fbdd0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x7ac8c9['value']+'\x22\x20title=\x22'+_0x7ac8c9['title']+'\x22></span>'),_0x4fbdd0;}function mt(_0x1012ef){const _0x35fcde=document['createElement']('span');return _0x35fcde['innerText']=_0x1012ef,_0x35fcde['innerHTML'];}function Et(_0x1f8818){return _0x1f8818['sort']((_0xdf17fd,_0x14e262)=>'attribute'===_0xdf17fd['type']&&'attribute'!==_0x14e262['type']?-0x1:'attribute'!==_0xdf17fd['type']&&'attribute'===_0x14e262['type']?0x1:'deletion'==_0xdf17fd['type']&&'deletion'!=_0x14e262['type']?-0x1:'deletion'!=_0xdf17fd['type']&&'deletion'==_0x14e262['type']?0x1:0x0);}function Tt(_0x4fc6e7,_0x550e17){let _0x43d463,_0x4a89b5=0x0;const _0x57cd4d=[],_0x3e69ac=_0x550e17['schema'];for(;_0x4a89b5<_0x4fc6e7['length'];){const _0x22310b=_0x4fc6e7[_0x4a89b5],_0x2116af=_0x4fc6e7[_0x4a89b5+0x1];_0x43d463||(_0x43d463=_0x550e17['createPositionBefore'](_0x22310b)),_t(_0x550e17,_0x22310b,_0x2116af)||(_0x57cd4d['push'](_0x550e17['createRange'](_0x43d463,_0x3e69ac['isObject'](_0x22310b)?_0x550e17['createPositionAfter'](_0x22310b):_0x550e17['createPositionAt'](_0x22310b,'end'))),_0x43d463=null),_0x4a89b5++;}return _0x57cd4d;}function _t(_0x4eecd5,_0x39f846,_0x2e2c07){if(!_0x2e2c07)return!0x1;const _0x59bfea=_0x4eecd5['createPositionAfter'](_0x39f846),_0x3da63a=_0x4eecd5['createPositionBefore'](_0x2e2c07);return _0x59bfea['isTouching'](_0x3da63a);}function pt(_0x33908a,_0x10876b,_0x19caa0){for(;_0x19caa0['length'];){const _0x42e7eb=_0x19caa0['splice'](0x0,0x64);_0x33908a['change'](()=>{for(const _0x4e9641 of _0x42e7eb)_0x4e9641['isInContent']&&_0x10876b['execute'](_0x4e9641['id']);});}}class Lt extends _0x19b9d0{['_command'];['_suggestions'];constructor(_0x4130de,_0x368f27,_0xcef881){super(_0x4130de),this['_command']=_0x368f27,this['_suggestions']=_0xcef881,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d372d=Array['from'](this['_suggestions']['values']())['some'](_0x2f0144=>_0x2f0144['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d372d;}['execute'](){const _0x2f5dec=Et(Array['from'](this['_suggestions']['values']()));for(const _0x486eb4 of _0x2f5dec){const _0xfef632=_0x486eb4['getRanges']();if(!this['editor']['model']['canEditAt'](_0xfef632))return;}pt(this['editor']['model'],this['_command'],_0x2f5dec);}}class It extends _0x19b9d0{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2531ad,_0x505f04,_0x5b950c){super(_0x2531ad),this['_command']=_0x505f04,this['_suggestions']=_0x5b950c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x22fa89=this['editor']['model']['document']['selection'],_0x5ca941=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4345d9,_0xd2a398){const _0x5b9d9a=Array['from'](_0x4345d9['getRanges']()),_0x202908=new Set();for(const _0x31da34 of _0xd2a398)if(_0x31da34['isInContent']){for(const _0x2d96b3 of _0x5b9d9a)for(const _0x11cb83 of _0x31da34['getRanges']())(_0x2d96b3['isIntersecting'](_0x11cb83)||_0x4345d9['isCollapsed']&&!_0x31da34['isMultiRange']&&_0x31da34['next']&&_0x11cb83['end']['isTouching'](_0x2d96b3['start']))&&_0x202908['add'](_0x31da34);}return _0x202908;}(_0x22fa89,_0x5ca941),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1c5d1e=Et(Array['from'](this['_selectedSuggestions']));for(const _0x287ec5 of _0x1c5d1e){const _0x149e5e=_0x287ec5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x149e5e))return;}pt(this['editor']['model'],this['_command'],_0x1c5d1e);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x26cebd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xbe44fc,_0x456cb8){super(),this['id']=_0x456cb8['id'],this['type']=_0x456cb8['type'],this['subType']=_0x456cb8['subType']||null,this['author']=_0x456cb8['author'],this['creator']=_0x456cb8['creator']||_0x456cb8['author'],this['isExternal']=Boolean(_0x456cb8['attributes']&&_0x456cb8['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x456cb8['originalSuggestionId']||null,this['_model']=_0xbe44fc,this['_onAccept']=_0x456cb8['onAccept'],this['_onDiscard']=_0x456cb8['onDiscard'],this['_onAttributesChange']=_0x456cb8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x456cb8['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 _0x3f7dd0=this;for(;_0x3f7dd0['previous'];)_0x3f7dd0=_0x3f7dd0['previous'];return _0x3f7dd0;}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'](_0x1c4ff5){this['_markerNames']['add'](_0x1c4ff5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2605f4=>this['_model']['markers']['get'](_0x2605f4))['filter'](_0x3a0520=>_0x3a0520);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2369a3=>{for(const _0x312da7 of this['getMarkers']())_0x2369a3['removeMarker'](_0x312da7);}),this['_markerNames']['clear']();}['removeMarker'](_0x5bfbd5){this['_model']['change'](_0x284005=>{_0x284005['removeMarker'](_0x5bfbd5);}),this['_markerNames']['delete'](_0x5bfbd5);}['addRange'](_0x178681){const _0x175524='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x175524),this['_model']['change'](_0x5ef19d=>{_0x5ef19d['addMarker'](_0x175524,{'range':_0x178681,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ebb4f){for(const _0x268b27 of this['getRanges']())if(_0x268b27['isIntersecting'](_0x3ebb4f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1188af=>_0x1188af['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4520cb,_0x596e17)=>[..._0x4520cb,..._0x596e17['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ae309=this['getRanges']();if(0x1!=_0x1ae309['length'])return null;const _0x154390=_0x1ae309[0x0],_0x1ffe8b=_0x154390['start']['nodeAfter'],_0x25497c=_0x154390['end']['nodeBefore'];return _0x1ffe8b instanceof _0x540bdd?_0x1ffe8b!=_0x25497c?null:_0x1ffe8b: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 _0x37ea8f=[];let _0x5e9fe2=this['head'];for(;_0x5e9fe2;)_0x37ea8f['push'](_0x5e9fe2),_0x5e9fe2=_0x5e9fe2['next'];return _0x37ea8f;}['setAttribute'](_0x29c346,_0x36cd58){const _0x2da54e=nt(this['attributes']);it(_0x2da54e,_0x29c346,_0x36cd58),st(_0x2da54e,this['attributes'])||(this['attributes']=_0x2da54e,this['_onAttributesChange'](_0x2da54e));}['removeAttribute'](_0x3fd844){const _0x365636=nt(this['attributes']);rt(_0x365636,_0x3fd844),st(_0x365636,this['attributes'])||(this['attributes']=_0x365636,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 _0x171c64()['substr'](0x1,0x5);}}function At(_0x102570,_0x576d15,_0x437f70){const _0xf0ad72=_0x102570['t'],t=_0x102570['t'];switch(_0x576d15){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',_0x437f70);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x437f70);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x437f70);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x437f70);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x437f70);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',_0x437f70);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x437f70);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',_0x437f70);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x437f70);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x437f70);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x437f70);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x437f70);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x437f70);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x437f70);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x437f70);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x437f70);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x437f70);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x437f70);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x437f70);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x437f70);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x437f70);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x437f70);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x437f70);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x437f70);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x437f70);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'},_0x437f70);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x437f70);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x437f70);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x437f70);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x437f70);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x437f70);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x437f70);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x437f70);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'},_0x437f70);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x437f70);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x437f70);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x437f70);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x437f70);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'},_0x437f70);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x437f70);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'},_0x437f70);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'},_0x437f70);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x437f70);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'},_0x437f70);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x437f70);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'},_0x437f70);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x437f70);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x437f70);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x437f70);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x437f70);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x437f70);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'},_0x437f70);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x437f70);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 _0xf0ad72({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x437f70);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xf0ad72({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x437f70);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x437f70);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'},_0x437f70);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'},_0x437f70);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'},_0x437f70);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x576d15;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x17f5c4,_0x34090a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x17f5c4,this['_locale']=_0x34090a;}['getDescriptions'](_0x36ad1f){const _0xe4935b=[],_0x399950=new Set(),_0x1ef801=new Set();for(let _0x51509e=0x0;_0x51509e<_0x36ad1f['length'];_0x51509e++){const _0x146baa=_0x36ad1f[_0x51509e];if(!_0x146baa['isInContent'])continue;const _0x369f9a=this['_handleCustomCallbackDescription'](_0x146baa);if(_0x369f9a){if(null!=_0x146baa['subType']){if(_0x399950['has'](_0x146baa['subType']))continue;_0x399950['add'](_0x146baa['subType']);}_0xe4935b['push'](_0x369f9a);}else{if('attribute'==_0x146baa['type']){const _0x5dd0ec=_0x146baa['data']['key'];if(_0x1ef801['has'](_0x5dd0ec))continue;_0x1ef801['add'](_0x146baa['data']['key']),_0x5dd0ec==Ke?this['_handleRenameSuggestionDescription'](_0xe4935b,_0x146baa):this['_handleAttributeSuggestionDescription'](_0xe4935b,_0x146baa);continue;}'insertion'!=_0x146baa['type']&&'deletion'!=_0x146baa['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe4935b,_0x146baa,_0x36ad1f[_0x51509e+0x1]);}}return this['_resolveDescriptionItems'](_0xe4935b);}['registerDescriptionCallback'](_0x5763b8){this['_customCallbacks']['push'](_0x5763b8);}['registerElementLabel'](_0x5aabe3,_0xd03d5a,_0x54cd7e=_0x2ac962['normal']){'function'==typeof _0x5aabe3?_0x3257c6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5aabe3,'label':_0xd03d5a,'priority':_0x54cd7e}):this['_itemLabels']['set'](_0x5aabe3,_0xd03d5a);}['registerAttributeLabel'](_0x2fff64,_0x242bcc){this['_attributeLabels']['set'](_0x2fff64,_0x242bcc);}['getItemLabel'](_0x24e57c,_0x5a1673=0x1){let _0x2ce56c;for(const _0x46fd4a of this['_itemLabelsCallbacks'])if(_0x46fd4a['matchingCallback'](_0x24e57c)){_0x2ce56c=_0x46fd4a['label'];break;}return _0x2ce56c||(_0x2ce56c=this['_itemLabels']['get'](_0x24e57c['name'])),_0x2ce56c?_0x2ce56c(_0x5a1673):0x1!==_0x5a1673?_0x5a1673+'\x20'+_0x24e57c['name']+'s':''+_0x24e57c['name'];}['_addDescriptionItems'](_0x59ed7e,_0x568753){const _0x24814d=_0x568753['getFirstRange']()['getWalker'](),_0x63c974='insertion'==_0x568753['type']?'add':'remove';for(const _0x17aa5e of _0x24814d){const _0x355fff=_0x17aa5e['item'],_0x2f60eb=_0x59ed7e[_0x59ed7e['length']-0x1];if(_0x355fff['is']('$textProxy'))_0x2f60eb&&_0x2f60eb['type']['indexOf']('Container')>-0x1&&_0x59ed7e['pop'](),_0x2f60eb&&'text'==_0x2f60eb['type']?_0x2f60eb[_0x63c974]+=_0x355fff['data']:_0x59ed7e['push']({'type':'text','add':'add'==_0x63c974?_0x355fff['data']:'','remove':'remove'==_0x63c974?_0x355fff['data']:''});else{if(this['_schema']['isObject'](_0x355fff)){const _0x1bd357=_0x355fff;if(_0x2f60eb&&_0x2f60eb['type']['indexOf']('Container')>-0x1&&_0x59ed7e['pop'](),'elementEnd'==_0x17aa5e['type'])continue;_0x2f60eb&&_0x2f60eb['type']==_0x63c974+'Object'&&_0x2f60eb['element']['name']==_0x1bd357['name']?_0x2f60eb['quantity']++:_0x59ed7e['push']({'type':_0x63c974+'Object','element':_0x1bd357,'quantity':0x1}),_0x24814d['skip'](_0x300a43=>!('elementEnd'==_0x300a43['type']&&_0x300a43['item']==_0x355fff));}else{if(this['_schema']['checkChild'](_0x355fff,'$text')||_0x355fff['is']('element','softBreak')){const _0x379d47=_0x355fff;if('add'==_0x63c974&&'elementStart'==_0x17aa5e['type']||'remove'==_0x63c974&&'elementEnd'==_0x17aa5e['type'])continue;if(_0x2f60eb&&-0x1==_0x2f60eb['type']['indexOf']('Container')){'text'==_0x2f60eb['type']&&(_0x2f60eb[_0x63c974]+='\x0a');continue;}let _0x30a38d;if(_0x30a38d='add'==_0x63c974?_0x379d47['nextSibling']&&!this['_schema']['isObject'](_0x379d47['nextSibling'])?_0x379d47['nextSibling']:null:_0x379d47['previousSibling']&&!this['_schema']['isObject'](_0x379d47['previousSibling'])?_0x379d47['previousSibling']:null,_0x379d47['isEmpty']||_0x30a38d&&_0x30a38d['isEmpty']){const _0x27336d=_0x30a38d&&_0x30a38d['isEmpty']?_0x30a38d:_0x379d47;_0x2f60eb&&_0x2f60eb['type']==_0x63c974+'EmptyContainer'&&_0x2f60eb['element']['name']==_0x27336d['name']?_0x2f60eb['quantity']++:_0x59ed7e['push']({'type':_0x63c974+'EmptyContainer','element':_0x27336d,'quantity':0x1});}else _0x59ed7e['push']({'type':_0x63c974+'Container','element':_0x379d47});}}}}}['_resolveDescriptionItems'](_0xd6be6f){const _0x50a790=this['_locale'],_0x40e906=[],_0x42c13e=[],_0x4bee6d=[];for(const _0x15d88c of _0xd6be6f)switch(_0x15d88c['type']){case'text':if(_0x15d88c['add']=_0x15d88c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x15d88c['remove']=_0x15d88c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x15d88c['add']&&''!=_0x15d88c['remove']){_0x40e906['push']({'type':'replace','content':At(_0x50a790,'REPLACE_TEXT',['\x22'+_0x15d88c['remove']+'\x22','\x22'+_0x15d88c['add']+'\x22'])});continue;}if(null!=_0x15d88c['add']['match'](/^ +$/)){_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Insert:*\x20%0',At(_0x50a790,'ELEMENT_SPACE',_0x15d88c['add']['length']))});continue;}if(null!=_0x15d88c['remove']['match'](/^ +$/)){_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Remove:*\x20%0',At(_0x50a790,'ELEMENT_SPACE',_0x15d88c['remove']['length']))});continue;}if(''!=_0x15d88c['add']){_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Insert:*\x20%0','\x22'+_0x15d88c['add']+'\x22')});continue;}_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Remove:*\x20%0','\x22'+_0x15d88c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Insert:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Remove:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'addContainer':_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Split:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'removeContainer':_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Merge:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'addFormat':_0x42c13e['push'](_0x15d88c['key']);continue;case'removeFormat':_0x4bee6d['push'](_0x15d88c['key']);continue;default:_0x40e906['push'](_0x15d88c);}if(_0x42c13e['length']){const _0x3d5797=_0x42c13e['map'](_0x5aedf5=>this['_attributeLabels']['has'](_0x5aedf5)?this['_attributeLabels']['get'](_0x5aedf5):_0x5aedf5)['join'](',\x20');_0x40e906['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x3d5797)});}if(_0x4bee6d['length']){const _0x2aa051=_0x4bee6d['map'](_0x4f7e67=>this['_attributeLabels']['has'](_0x4f7e67)?this['_attributeLabels']['get'](_0x4f7e67):_0x4f7e67)['join'](',\x20');_0x40e906['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x2aa051)});}return _0x40e906;}['_handleCustomCallbackDescription'](_0x4f9d6d){for(const _0x1d4f05 of this['_customCallbacks']){const _0xbaea5f=_0x1d4f05(_0x4f9d6d);if(_0xbaea5f&&'type'in _0xbaea5f)return _0xbaea5f;}}['_handleAttributeSuggestionDescription'](_0x582efb,_0x36c15d){const _0xf70f58=_0x36c15d['data'],_0x4af298=void 0x0===_0xf70f58['newValue']?'removeFormat':'addFormat';_0x582efb['push']({'type':_0x4af298,'key':_0xf70f58['key']});}['_handleRenameSuggestionDescription'](_0x196fb3,_0x292e7d){_0x196fb3['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x292e7d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x32edc2,_0x4bce92,_0x5a5870){if(this['_addDescriptionItems'](_0x32edc2,_0x4bce92),_0x5a5870&&_0x5a5870['getFirstRange']()&&!_0x4bce92['getFirstRange']()['end']['isEqual'](_0x5a5870['getFirstRange']()['start'])){const _0x14a78a=_0x32edc2[_0x32edc2['length']-0x1],_0x33a342='insertion'==_0x4bce92['type']?'add':'remove';_0x14a78a&&'text'==_0x14a78a['type']&&(_0x14a78a[_0x33a342]+='\x0a');}}}class Ct extends _0x54c126{['afterInit'](){const _0x51c85a=this['editor'],_0x5d5608=_0x51c85a['plugins']['get']('TrackChangesEditing');_0x51c85a['commands']['get']('showAIAssistant')&&_0x5d5608['enableCommand']('showAIAssistant');}}class yt extends _0x54c126{['afterInit'](){const _0x42caba=this['editor'],_0x1d951c=_0x42caba['plugins']['get']('TrackChangesEditing');_0x42caba['commands']['get']('toggleAi')&&_0x1d951c['enableCommand']('toggleAi');}}class Nt extends _0x54c126{['afterInit'](){const _0x318bd2=this['editor'],_0x52dfbb=_0x318bd2['plugins']['get']('TrackChangesEditing');_0x318bd2['commands']['get']('aiQuickAction')&&_0x52dfbb['enableCommand']('aiQuickAction');}}class Rt extends _0x54c126{['afterInit'](){const _0x562f29=this['editor'],_0x4a8053=_0x562f29['locale'];if(!_0x562f29['plugins']['has']('AlignmentEditing'))return;const _0x542ec7=_0x562f29['plugins']['get']('TrackChangesEditing');_0x542ec7['enableDefaultAttributesIntegration']('alignment'),_0x542ec7['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4a8053,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58129c=this['editor'],_0x20cfe5=_0x58129c['locale'];_0x58129c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb4b0=>{if('formatBlock'!=_0x2fb4b0['type'])return;const {data:_0xdeece9}=_0x2fb4b0;if(_0xdeece9&&'alignment'==_0xdeece9['commandName']){const _0x44eefc=_0xdeece9['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x20cfe5,'*Format:*\x20%0',function(_0x31a5d4){switch(_0x31a5d4){case'left':return At(_0x20cfe5,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x20cfe5,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x20cfe5,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x20cfe5,'FORMAT_JUSTIFY_TEXT');}}(_0x44eefc))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x54c126{['afterInit'](){const _0x5bc03=this['editor'],_0x451b1d=_0x5bc03['plugins']['get']('TrackChangesEditing'),_0x24dc4b=_0x5bc03['locale'];for(const _0x33a87d of St){if(!_0x5bc03['plugins']['has'](_0x33a87d))continue;const _0xc28966=_0x33a87d['slice'](0x0,-0x7)['toLowerCase'](),_0x4c282f='FORMAT_'+_0xc28966['toUpperCase']();_0x451b1d['enableDefaultAttributesIntegration'](_0xc28966),_0x451b1d['descriptionFactory']['registerAttributeLabel'](_0xc28966,At(_0x24dc4b,_0x4c282f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462e58=this['editor'],_0x38f46c=_0x462e58['locale'],_0x357570=_0x462e58['plugins']['get']('TrackChangesEditing');function _0x21dabb(_0x2f14a6,_0x99d2b6){_0x357570['descriptionFactory']['registerDescriptionCallback'](_0x44b1ff=>{if('formatInline'!=_0x44b1ff['type'])return;const {data:_0x4421a}=_0x44b1ff;return _0x4421a&&_0x4421a['commandName']===_0x2f14a6?_0x4421a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x38f46c,'*Format:*\x20%0',_0x99d2b6)}:{'type':'format','content':At(_0x38f46c,'*Remove\x20format:*\x20%0',_0x99d2b6)}:void 0x0;});}_0x21dabb('bold',At(_0x38f46c,'FORMAT_BOLD')),_0x21dabb('italic',At(_0x38f46c,'FORMAT_ITALIC')),_0x21dabb('underline',At(_0x38f46c,'FORMAT_UNDERLINE')),_0x21dabb('code',At(_0x38f46c,'FORMAT_CODE')),_0x21dabb('strikethrough',At(_0x38f46c,'FORMAT_STRIKETHROUGH')),_0x21dabb('subscript',At(_0x38f46c,'FORMAT_SUBSCRIPT')),_0x21dabb('superscript',At(_0x38f46c,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x54c126{['afterInit'](){const _0xae1d12=this['editor'],_0x22060e=_0xae1d12['locale'];if(!_0xae1d12['plugins']['has']('BlockQuoteEditing'))return;const _0x28404f=_0xae1d12['plugins']['get']('TrackChangesEditing'),_0x34c1e5=this['editor']['commands']['get']('blockQuote');_0x28404f['enableCommand']('blockQuote',(_0x2193b7,_0x457f4c={})=>{const _0x2d380a=this['editor']['model']['document']['selection'],_0x462c67=_0x457f4c&&void 0x0!==_0x457f4c['forceValue']?_0x457f4c['forceValue']:!_0x34c1e5['value'];let _0x1b25fe=[];if(_0x462c67){const _0x4a6c15=Array['from'](_0x2d380a['getSelectedBlocks']())['filter'](_0x3d3597=>wt(_0x3d3597)||function(_0x39426a,_0x368c83){const _0x140700=_0x368c83['checkChild'](_0x39426a['parent'],'blockQuote'),_0x4dbbb6=_0x368c83['checkChild'](['$root','blockQuote'],_0x39426a);return _0x140700&&_0x4dbbb6;}(_0x3d3597,this['editor']['model']['schema']));_0x1b25fe=Tt(_0x4a6c15,_0xae1d12['model']);}else{const _0x197ff2=Array['from'](_0x2d380a['getSelectedBlocks']())['filter'](_0x2e832f=>wt(_0x2e832f));_0x1b25fe=Tt(_0x197ff2,_0xae1d12['model']);}_0xae1d12['model']['change'](()=>{for(const _0x545988 of _0x1b25fe)_0x28404f['markBlockFormat'](_0x545988,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x462c67}]});});}),_0x28404f['descriptionFactory']['registerDescriptionCallback'](_0x202656=>{const {data:_0x54d137}=_0x202656;if(_0x54d137&&'blockQuote'==_0x54d137['commandName']){const _0x38a03b=At(_0x22060e,'ELEMENT_BLOCK_QUOTE');return _0x54d137['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x22060e,'*Set\x20format:*\x20%0',_0x38a03b)}:{'type':'format','content':At(_0x22060e,'*Remove\x20format:*\x20%0',_0x38a03b)};}});}}function wt(_0x1b2bf1){return'blockQuote'==_0x1b2bf1['parent']['name'];}class Bt extends _0x54c126{['afterInit'](){const _0x210657=this['editor'],_0x1079cf=_0x210657['locale'],_0x4e9ee7=_0x210657['plugins']['get']('TrackChangesEditing');_0x210657['plugins']['has']('BookmarkEditing')&&(_0x4e9ee7['enableCommand']('insertBookmark'),_0x4e9ee7['enableDefaultAttributesIntegration']('updateBookmark'),_0x4e9ee7['descriptionFactory']['registerDescriptionCallback'](_0x28fce6=>{if('insertion'!=_0x28fce6['type']&&'deletion'!=_0x28fce6['type']&&'attribute'!=_0x28fce6['type'])return;const _0x57c877=_0x28fce6['getContainedElement']();if(null==_0x57c877)return;if(!_0x57c877['is']('element','bookmark'))return;const _0xe2e1eb=_0x57c877['getAttribute']('bookmarkId');if('insertion'==_0x28fce6['type'])return{'type':'insertion','content':At(_0x1079cf,'*Insert:*\x20%0','\x22'+_0xe2e1eb+'\x22\x20'+At(_0x1079cf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28fce6['type'])return{'type':'deletion','content':At(_0x1079cf,'*Remove:*\x20%0','\x22'+_0xe2e1eb+'\x22\x20'+At(_0x1079cf,'ELEMENT_BOOKMARK'))};const {data:_0x12e7b6}=_0x28fce6;if(!_0x12e7b6||'bookmarkId'!=_0x12e7b6['key'])return;return{'type':'format','content':At(_0x1079cf,'*Set\x20bookmark:*\x20%0','\x22'+_0x12e7b6['newValue']+'\x22')};}));}}class Ft extends _0x54c126{['afterInit'](){const _0x41b8e1=this['editor'];_0x41b8e1['plugins']['has']('CaseChange')&&(_0x41b8e1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41b8e1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41b8e1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x54c126{['afterInit'](){const _0x23af65=this['editor'];_0x23af65['commands']['get']('ckbox')&&_0x23af65['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x54c126{['afterInit'](){const _0x58cba7=this['editor'];if(!_0x58cba7['plugins']['has']('CodeBlock'))return;const _0x5817ec=_0x58cba7['plugins']['get']('TrackChangesEditing'),_0x51075f=_0x58cba7['locale'],_0x3c8387=_0x58cba7['config']['get']('codeBlock')['languages'],_0x579d69=_0x58cba7['commands']['get']('codeBlock');_0x5817ec['enableCommand']('indentCodeBlock'),_0x5817ec['enableCommand']('outdentCodeBlock'),_0x5817ec['enableCommand']('codeBlock',(_0x33a084,_0x8b3d0={})=>{const _0x1af7c2=_0x58cba7['model'],_0x154a83=_0x58cba7['model']['document']['selection'],_0x44de38=_0x8b3d0&&void 0x0!==_0x8b3d0['forceValue']?_0x8b3d0['forceValue']:!_0x579d69['value'];let _0x2a33cd;_0x8b3d0['language']||(_0x8b3d0['language']=_0x3c8387[0x0]['language']),_0x2a33cd=_0x44de38?Array['from'](_0x154a83['getSelectedBlocks']())['filter'](_0x1434c0=>xt(_0x1434c0)||function(_0x25c83a,_0x59599a){if(_0x25c83a['is']('rootElement')||_0x59599a['isLimit'](_0x25c83a))return!0x1;return _0x59599a['checkChild'](_0x25c83a['parent'],'codeBlock');}(_0x1434c0,_0x1af7c2['schema'])):Array['from'](_0x154a83['getSelectedBlocks']())['filter'](_0xdff625=>xt(_0xdff625));const _0x534295=Tt(_0x2a33cd,_0x1af7c2);_0x1af7c2['change'](()=>{for(const _0x3e2310 of _0x534295)_0x5817ec['markBlockFormat'](_0x3e2310,{'commandName':'codeBlock','commandParams':[{..._0x8b3d0,'forceValue':_0x44de38}],'formatGroupId':'blockName'});});}),(_0x5817ec['descriptionFactory']['registerElementLabel']('codeBlock',_0x25f224=>At(_0x51075f,'ELEMENT_CODE_BLOCK',_0x25f224)),_0x5817ec['descriptionFactory']['registerDescriptionCallback'](_0x441bdc=>{if('formatBlock'!=_0x441bdc['type'])return;const _0x13b3a5=_0x51075f['t'],{data:_0x271567}=_0x441bdc;if(!_0x271567||'codeBlock'!=_0x271567['commandName'])return;const _0x1568fa=_0x271567['commandParams'][0x0]['language'],_0x36c760=_0x13b3a5(_0x3c8387['find'](_0x2e89d8=>_0x2e89d8['language']===_0x1568fa)['label'])['toLowerCase']();return _0x271567['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x51075f,'*Set\x20format:*\x20%0',At(_0x51075f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36c760+')')}:{'type':'format','content':At(_0x51075f,'*Remove\x20format:*\x20%0',At(_0x51075f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x5926a2){return'codeBlock'==_0x5926a2['name'];}class Pt extends _0x54c126{['afterInit'](){const _0x230d4c=this['editor'];if(!_0x230d4c['plugins']['has']('CommentsEditing'))return;_0x230d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x54c126{static get['requires'](){return[at];}['init'](){const _0x41e1e6=this['editor'],_0x5604e5=_0x41e1e6['plugins']['get']('TrackChangesEditing');_0x5604e5['enableCommand']('delete');const _0x2da1ea=_0x41e1e6['commands']['get']('deleteForward');_0x5604e5['enableCommand']('deleteForward',(_0x2339c0,_0x142a0b={})=>{const _0x2c02cb=_0x41e1e6['model']['createSelection'](_0x41e1e6['model']['document']['selection']);_0x2c02cb['isCollapsed']&&_0x41e1e6['model']['modifySelection'](_0x2c02cb,{'direction':'forward','unit':_0x142a0b['unit']});const _0x19cbfc=_0x2c02cb['getFirstRange'](),_0x5bfd40=_0x121353['fromRange'](_0x19cbfc);let _0x5214a7;_0x2339c0(_0x142a0b),_0x5214a7='$graveyard'==_0x5bfd40['root']['rootName']?_0x41e1e6['model']['createRange'](_0x19cbfc['start']):_0x41e1e6['model']['createRange'](_0x5bfd40['start'],_0x5bfd40['end']),_0x5bfd40['detach'](),_0x41e1e6['model']['enqueueChange'](_0x2da1ea['buffer']['batch'],_0x45bcdd=>{_0x2da1ea['buffer']['lock'](),_0x45bcdd['setSelection'](_0x45bcdd['createRange'](_0x5214a7['end'])),_0x2da1ea['buffer']['unlock']();});});}}class Gt extends _0x54c126{['afterInit'](){const _0x4caa42=this['editor'];if(!_0x4caa42['plugins']['has']('ListEditing'))return;const _0xa5e102=_0x4caa42['locale'],_0xffdcc0=_0x4caa42['plugins']['get']('TrackChangesEditing'),_0xf9cac1=_0x4caa42['plugins']['has']('TodoListEditing'),_0x4aeb15=!!_0x4caa42['config']['get']('list.multiBlock');function _0x24fe86(_0x42b59f){return{'type':'format','content':''+At(_0xa5e102,'*Set\x20format:*\x20%0',_0x42b59f)};}function _0x509649(_0x2b0802){return{'type':'format','content':''+At(_0xa5e102,'*Remove\x20format:*\x20%0',_0x2b0802)};}_0xffdcc0['enableDefaultAttributesIntegration']('numberedList'),_0xffdcc0['enableDefaultAttributesIntegration']('bulletedList'),_0xffdcc0['enableDefaultAttributesIntegration']('customNumberedList'),_0xffdcc0['enableDefaultAttributesIntegration']('customBulletedList'),_0xffdcc0['enableDefaultAttributesIntegration']('indentList'),_0xffdcc0['enableDefaultAttributesIntegration']('outdentList'),_0xffdcc0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xffdcc0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4aeb15&&(_0xffdcc0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xffdcc0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xf9cac1&&(_0xffdcc0['enableDefaultAttributesIntegration']('todoList'),_0xffdcc0['enableDefaultAttributesIntegration']('checkTodoList'),_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x74798b=>{const {data:_0x5b9602}=_0x74798b;if(_0x5b9602&&'todoListChecked'==_0x5b9602['key'])return{'type':'format','content':_0x5b9602['newValue']?At(_0xa5e102,'*Check\x20item*'):At(_0xa5e102,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5fab0d=>{if(_0x5fab0d['batch']['isUndo'])return!0x1;let _0x4363cd=!0x1;const _0x391413=_0xffdcc0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x452523=>'todoListChecked'===_0xffdcc0['_getAttributeKey'](_0x452523));for(const _0x2345c6 of _0x391413){'todo'!=_0x2345c6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xffdcc0['_findSuggestions'](_0x2345c6['getFirstRange'](),'attribute')['find'](_0x191c9d=>'listType'===_0xffdcc0['_getAttributeKey'](_0x191c9d['suggestion']))||(_0x5fab0d['removeMarker'](_0x2345c6['getFirstMarker']()),_0x4363cd=!0x0));}return _0x4363cd;})),_0xffdcc0['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0xa5e102,'FORMAT_INDENT'));const _0x2a888c={'type':'format','content':''};_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x44f5ff=>{const {data:_0x33494a}=_0x44f5ff;if(!_0x33494a||'listType'!=_0x33494a['key'])return;let _0x5ab7eb=_0x44f5ff['head'];for(;_0x5ab7eb;){if(_0x5ab7eb['data']&&(('listStyle'==_0x5ab7eb['data']['key']||'listMarkerStyle'==_0x5ab7eb['data']['key'])&&(_0x5ab7eb['data']['newValue']&&'default'!=_0x5ab7eb['data']['newValue']||'default'!=_0x5ab7eb['data']['oldValue']&&!_0x33494a['newValue'])||!_0x4aeb15&&_0x5ab7eb['data']['key']==Ke))return _0x2a888c;_0x5ab7eb=_0x5ab7eb['next'];}if(null==_0x33494a['newValue'])switch(_0x33494a['oldValue']){case'bulleted':return _0x509649(At(_0xa5e102,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x509649(At(_0xa5e102,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x509649(At(_0xa5e102,'ELEMENT_TODO_LIST'));}switch(_0x33494a['newValue']){case'bulleted':return _0x24fe86(At(_0xa5e102,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24fe86(At(_0xa5e102,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24fe86(At(_0xa5e102,'ELEMENT_TODO_LIST'));}}),_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x387af5=>{const {data:_0x53c184}=_0x387af5;if(_0x53c184&&'listIndent'==_0x53c184['key'])return null==_0x53c184['newValue']||null==_0x53c184['oldValue']&&0x0==_0x53c184['newValue']?_0x2a888c:void 0x0;}),_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x2de347=>{if('attribute'!=_0x2de347['type'])return;const {data:_0x3998d7}=_0x2de347;if(!_0x3998d7||'listItemId'!=_0x3998d7['key'])return;const _0x59f783=Ht(_0x2de347);return'newValue'==_0x59f783?{'type':'format','content':At(_0xa5e102,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59f783?{'type':'format','content':At(_0xa5e102,'*Split:*\x20list\x20item')}:_0x2a888c;}),_0x4caa42['model']['document']['registerPostFixer'](_0x13a491=>this['listItemIdFixer'](_0x13a491)),_0x4caa42['model']['document']['registerPostFixer'](_0x4be1e7=>this['noTrackChangesFixer'](_0x4be1e7)),_0x4caa42['model']['document']['on']('change:data',(_0x33dab1,_0xdbf875)=>{if(_0xdbf875['isUndo']||!_0xdbf875['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3604fe){if(_0x3604fe['batch']['isUndo']||!_0x3604fe['batch']['isLocal'])return!0x1;let _0x592d60=!0x1;const _0x5cd440=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c745d=>_0x2c745d['data']&&'listItemId'==_0x2c745d['data']['key'])['filter'](_0x1b92a3=>_0x1b92a3['data']['newValue']&&_0x1b92a3['data']['oldValue']);for(const _0x8b0304 of _0x5cd440)Ht(_0x8b0304)||(_0x3604fe['removeMarker'](_0x8b0304['getFirstMarker']()),_0x592d60=!0x0);return _0x592d60;}['noTrackChangesFixer'](_0x179a32){if(_0x179a32['batch']['isUndo']||!_0x179a32['batch']['isLocal'])return!0x1;const _0x13efaf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13efaf['trackChangesCommand']['value'])return!0x1;let _0x5af397=!0x1;const _0xccc9b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5020ea=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xdb0249=>'attribute'==_0xdb0249['type'])['filter'](_0x5e2472=>_0xccc9b2['includes'](_0x5e2472['attributeKey']));if(0x0==_0x5020ea['length'])return _0x5af397;for(const _0x32bece of _0x5020ea){const _0x5e962c=_0x13efaf['_findSuggestions'](_0x32bece['range'],'attribute')['filter'](_0x5719b6=>!_0x5719b6['meta']['isNextTo'])['map'](_0x5a54c6=>_0x5a54c6['suggestion'])['filter'](_0x2864bc=>{const _0x3c563e=_0x13efaf['_getAttributeKey'](_0x2864bc);return _0xccc9b2['includes'](_0x3c563e);});if(_0x5e962c['length']){for(const _0x3e15dd of _0x5e962c)_0x179a32['removeMarker'](_0x3e15dd['getFirstMarker']());_0x5af397=!0x0;}}return _0x5af397;}['assureChains'](){const _0x49af99=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c4265=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x72755d;const _0x24a128=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20052a=>{if(_0x20052a['data']['oldRange']||!_0x20052a['data']['newRange'])return null;if(!_0x20052a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x460e95}=_0x39dc22(_0x20052a['name']);if(!_0x49af99['hasSuggestion'](_0x460e95))return null;const _0x4069c5=_0x49af99['getSuggestion'](_0x460e95);return _0x5c4265['includes'](_0x4069c5['data']['key']);})['map'](_0x2f109e=>{const {id:_0x464a6b}=_0x39dc22(_0x2f109e['name']),_0x4f8fa7=_0x49af99['getSuggestion'](_0x464a6b);return _0x72755d=_0x4f8fa7['attributes']['groupId'],_0x4f8fa7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x24a128['size'])return;const _0x573d9f=_0x49af99['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f5b4a=>'attribute'==_0x2f5b4a['type']&&_0x2f5b4a['data']&&_0x5c4265['includes'](_0x2f5b4a['data']['key'])&&_0x2f5b4a['attributes']['groupId']!=_0x72755d)['map'](_0x7b58b9=>({'listItem':_0x7b58b9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7b58b9['attributes']['groupId']})),_0x3ed6e6=new Set();for(const {groupId:_0x159c2a,listItem:_0x1e7b70}of _0x573d9f)_0x24a128['has'](_0x1e7b70)&&_0x3ed6e6['add'](_0x159c2a);for(const _0x3538ee of _0x49af99['getSuggestions']())_0x3ed6e6['has'](_0x3538ee['attributes']['groupId'])&&_0x3538ee['setAttribute']('groupId',_0x72755d);}['_supportLegacySuggestions'](){const _0x4cd956=this['editor'],_0x2223c7=_0x4cd956['locale'],_0x117506=_0x4cd956['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x117506['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xc4b428,_0x144d38){const _0x1cb3e6=[];for(let _0x6338ab of _0xc4b428)_0x6338ab['start']['nodeAfter']===_0x6338ab['end']['parent']&&(_0x6338ab=_0x4cd956['model']['createRange'](_0x4cd956['model']['createPositionAt'](_0x6338ab['start']['nodeAfter'],0x0))),_0x1cb3e6['push'](_0x6338ab);_0x4cd956['model']['change'](_0x27cddf=>{const _0x8dcbae=_0x4cd956['model']['document']['selection'],_0xdcb1cc=Array['from'](_0x8dcbae['getRanges']())['map'](_0xa69d10=>_0x121353['fromRange'](_0xa69d10));_0x27cddf['setSelection'](_0x1cb3e6),_0x4cd956['commands']['get'](_0x144d38['commandName'])['refresh'](),_0x144d38['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4cd956['execute'](_0x144d38['commandName'],..._0x144d38['commandParams']),_0x27cddf['setSelection'](_0xdcb1cc);for(const _0x6db983 of _0xdcb1cc)_0x6db983['detach']();});}),_0x117506['descriptionFactory']['registerElementLabel'](function(_0x56ca4d){const _0x82981d=!_0x4cd956['model']['schema']['isObject'](_0x56ca4d),_0x1be33e=_0x56ca4d['previousSibling'],_0x54da5b=_0x56ca4d['nextSibling'],_0x409d14=_0x56ca4d['getAttribute']('listItemId'),_0x218827=!_0x1be33e||_0x1be33e['getAttribute']('listItemId')!==_0x409d14,_0x301900=!_0x54da5b||_0x54da5b['getAttribute']('listItemId')!==_0x409d14;return _0x82981d&&Boolean(_0x409d14)&&_0x218827&&_0x301900;},_0x41031d=>At(_0x2223c7,'ELEMENT_LIST_ITEM',_0x41031d));}['_registerLegacyDescription'](){const _0x495f8a=this['editor'],_0x11f211=_0x495f8a['locale'];function _0x43e6ea(_0x4c22b8){const _0x32b80b=_0x495f8a['commands']['get']('bulletedList')['value'],_0x5e0992=_0x495f8a['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c22b8?_0x32b80b:_0x5e0992;}_0x495f8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49da82){if('formatBlock'!=_0x49da82['type'])return;const {data:_0x1875fe}=_0x49da82;if(!_0x1875fe)return;let _0xc32b36,_0x494f9f,_0x433482,_0x30a09e;switch(_0x1875fe['commandName']){case'bulletedList':_0x433482=_0x1875fe['commandParams'][0x0]['forceValue'],_0x30a09e=_0x43e6ea(_0x1875fe['commandName']),_0xc32b36=_0x433482?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30a09e&&_0x495f8a['config']['get']('list.multiBlock')||(_0xc32b36='*Change\x20to:*\x20%0'),_0x494f9f={'type':'format','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x433482=_0x1875fe['commandParams'][0x0]['forceValue'],_0x30a09e=_0x43e6ea(_0x1875fe['commandName']),_0xc32b36=_0x433482?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30a09e&&_0x495f8a['config']['get']('list.multiBlock')||(_0xc32b36='*Change\x20to:*\x20%0'),_0x494f9f={'type':'format','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xc32b36='*Indent:*\x20%0',_0x494f9f={'type':'format','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xc32b36=function(_0x232a65){const _0x453d86=_0x232a65['getFirstRange']();let _0x34cb41=_0x453d86['start']['nodeAfter'];for(;_0x34cb41&&_0x453d86['containsItem'](_0x34cb41);){if(_0x34cb41['getAttribute']('listIndent')>0x0)return!0x1;_0x34cb41=_0x34cb41['nextSibling'];}return!0x0;}(_0x49da82)?At(_0x11f211,'*Format:*\x20remove\x20from\x20%0',At(_0x11f211,function(_0x3fffb4){return'ELEMENT_'+_0x3fffb4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49da82))):At(_0x11f211,'*Outdent:*\x20%0',At(_0x11f211,'ELEMENT_LIST_ITEM')),_0x494f9f={'type':'format','content':_0xc32b36};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1875fe['multipleBlocks']&&(_0xc32b36='*Merge:*\x20%0',_0x494f9f={'type':'deletion','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_LIST_ITEM'))});}return _0x494f9f;});}}function Ht(_0x342504){let _0x4bcb30=_0x342504['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4bcb30;){const _0xa4fa22=_0x4bcb30['getAttribute']('listItemId');if(!_0xa4fa22)return!0x1;if(_0xa4fa22==_0x342504['data']['newValue'])return'newValue';if(_0xa4fa22==_0x342504['data']['oldValue'])return'oldValue';_0x4bcb30=_0x4bcb30['previousSibling'];}return!0x1;}class $t extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2984bf=this['editor']['config']['get']('list.properties'),_0x561f88=this['editor']['plugins']['get']('TrackChangesEditing');_0x2984bf['styles']&&_0x561f88['enableDefaultAttributesIntegration']('listStyle'),_0x2984bf['reversed']&&_0x561f88['enableDefaultAttributesIntegration']('listReversed'),_0x2984bf['startIndex']&&_0x561f88['enableDefaultAttributesIntegration']('listStart');const _0x3770ed={'type':'format','content':''};_0x561f88['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x78de29=this['editor']['locale'];_0x561f88['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x78de29,'FORMAT_LIST_REVERSED')),_0x561f88['descriptionFactory']['registerDescriptionCallback'](_0x48f851=>{const {data:_0x28f2db}=_0x48f851;if(_0x28f2db&&'listReversed'==_0x28f2db['key'])return null==_0x28f2db['newValue']||0x0==_0x28f2db['newValue']&&null==_0x28f2db['oldValue']?_0x3770ed:void 0x0;}),_0x561f88['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x78de29,'FORMAT_LIST_START')),_0x561f88['descriptionFactory']['registerDescriptionCallback'](_0x3a824d=>{const {data:_0x1ba499}=_0x3a824d;if(_0x1ba499&&'listStart'==_0x1ba499['key'])return null==_0x1ba499['newValue']||0x1==_0x1ba499['newValue']&&null==_0x1ba499['oldValue']?_0x3770ed:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3d3895=>{if(_0x3d3895['batch']['isUndo'])return!0x1;let _0x25f927=!0x1;const _0xb4ade9=_0x561f88['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2df0a1=>{const _0x1b37ab=_0x561f88['_getAttributeKey'](_0x2df0a1);return'listStart'==_0x1b37ab||'listReversed'==_0x1b37ab;});for(const _0x2ec179 of _0xb4ade9){const _0x207d3e=_0x2ec179['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x207d3e||'customNumbered'==_0x207d3e)continue;_0x561f88['_findSuggestions'](_0x2ec179['getFirstRange'](),'attribute')['find'](_0x1daaa7=>'listType'==_0x561f88['_getAttributeKey'](_0x1daaa7['suggestion']))||(_0x3d3895['removeMarker'](_0x2ec179['getFirstMarker']()),_0x25f927=!0x0);}return _0x25f927;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5eaa07){const _0x1f959d=this['editor']['locale'],{data:_0xd6c9e5}=_0x5eaa07,_0x14bb87={'type':'format','content':''};if(!_0xd6c9e5||'listStyle'!=_0xd6c9e5['key'])return;if(!_0xd6c9e5['oldValue'])return'default'==_0xd6c9e5['newValue']?_0x14bb87:{'type':'format','content':''+At(_0x1f959d,'*Set\x20format:*\x20%0',At(_0x1f959d,this['_getTranslationKeyForListStyle'](_0xd6c9e5['newValue'])))};if(!_0xd6c9e5['newValue']){if('default'==_0xd6c9e5['oldValue'])return _0x14bb87;let _0x1b2c71=_0x5eaa07['head'];for(;_0x1b2c71;){if(_0x1b2c71['data']&&'listType'==_0x1b2c71['data']['key']&&_0x1b2c71['data']['newValue'])return _0x14bb87;_0x1b2c71=_0x1b2c71['next'];}return{'type':'format','content':''+At(_0x1f959d,'*Remove\x20format:*\x20%0',At(_0x1f959d,this['_getTranslationKeyForListStyle'](_0xd6c9e5['oldValue'])))};}if('default'!=_0xd6c9e5['newValue'])return{'type':'format','content':''+At(_0x1f959d,'*Set\x20format:*\x20%0',At(_0x1f959d,this['_getTranslationKeyForListStyle'](_0xd6c9e5['newValue'])))};let _0x3c8fae=_0x5eaa07['head'];for(;_0x3c8fae;){if(_0x3c8fae['data']&&'listType'==_0x3c8fae['data']['key']&&_0x3c8fae['data']['newValue']&&_0x3c8fae['data']['oldValue'])return _0x14bb87;_0x3c8fae=_0x3c8fae['next'];}return{'type':'format','content':At(_0x1f959d,'*Set\x20format:*\x20%0',At(_0x1f959d,'ELEMENT_'+_0x5eaa07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xdf2372=this['editor'],_0x1ef5f3=_0xdf2372['locale'];_0xdf2372['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49bf7f=>{if('formatBlock'!=_0x49bf7f['type'])return;const {data:_0x454cf7}=_0x49bf7f;if(!_0x454cf7)return;let _0x5d73bf,_0x9916d;switch(_0x454cf7['commandName']){case'listStyle':_0x5d73bf='*Change\x20to:*\x20%0',_0x9916d={'type':'format','content':At(_0x1ef5f3,_0x5d73bf,At(_0x1ef5f3,this['_getTranslationKeyForListStyle'](_0x454cf7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d73bf=_0x454cf7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9916d={'type':'format','content':At(_0x1ef5f3,_0x5d73bf)};break;case'listStart':_0x5d73bf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9916d={'type':'format','content':At(_0x1ef5f3,_0x5d73bf,_0x454cf7['commandParams'][0x0]['startIndex'])};}return _0x9916d;});}['_getTranslationKeyForListStyle'](_0xff6064){return'ELEMENT_'+function(_0x158b0b){if(Wt['includes'](_0x158b0b))return'bulleted';if(Vt['includes'](_0x158b0b))return'numbered';return null;}(_0xff6064)['toUpperCase']()+'_LIST_'+_0xff6064['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 _0x54c126{['afterInit'](){const _0x3c4e52=this['editor'];_0x3c4e52['commands']['get']('emoji')&&_0x3c4e52['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x54c126{static get['requires'](){return[lt];}['init'](){const _0x512522=this['editor'],_0x5e6441=_0x512522['plugins']['get']('TrackChangesEditing'),_0x199b30=_0x512522['commands']['get']('enter');_0x5e6441['enableCommand']('enter',()=>{_0x512522['model']['change'](_0x248756=>{const _0x3535e7=_0x512522['model']['document']['selection'],_0x50b3df=_0x3535e7['getFirstPosition'](),_0x3666a6=_0x121353['fromRange'](_0x3535e7['getFirstRange']());if(_0x199b30['enterBlock'](_0x248756)){const _0x22b5ce=_0x512522['model']['createPositionAt'](_0x50b3df['parent']['nextSibling'],0x0),_0x2b2a8a=_0x248756['createRange'](_0x50b3df,_0x22b5ce);_0x5e6441['markInsertion'](_0x2b2a8a);}else _0x248756['setSelection'](_0x248756['createRange'](_0x3666a6['end']));_0x3666a6['detach'](),_0x199b30['fire']('afterExecute',{'writer':_0x248756});});});}}class Kt extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x9e898b=this['editor']['plugins']['get']('TrackChangesEditing');_0x9e898b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x9e898b['enableCommand']('findNext'),_0x9e898b['enableCommand']('findPrevious'),_0x9e898b['enableCommand']('replace'),_0x9e898b['enableCommand']('replaceAll');}['handleFindCommand'](_0x22467e,_0xd9e86,_0x1cc122={}){const _0x26efdb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x22467e(_0x998d5=>{let _0x220f74=('string'==typeof _0xd9e86?_0x26efdb['findByTextCallback'](_0xd9e86,_0x1cc122):_0xd9e86)(_0x998d5);Array['isArray'](_0x220f74)&&(_0x220f74={'results':_0x220f74,'searchText':'string'==typeof _0xd9e86?_0xd9e86:''});const _0x16a46b=_0x220f74['results']['filter'](_0x556c5d=>!0x1===this['_isInDeletionRange'](_0x556c5d,_0x998d5['item']));return{..._0x220f74,'results':_0x16a46b};},_0x1cc122);}['_isInDeletionRange'](_0x524bfb,_0x24d17e){const _0x3c1c9b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24d17e,_0x524bfb['start']),this['editor']['model']['createPositionAt'](_0x24d17e,_0x524bfb['end']));for(const _0x50017a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3c1c9b['getIntersection'](_0x50017a['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 _0x54c126{['afterInit'](){const _0x5c9fa2=this['editor']['locale'],_0x382db5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x297fab,commandName:_0xca87a1}of Xt)this['editor']['plugins']['has'](_0x297fab)&&_0x382db5['enableDefaultAttributesIntegration'](_0xca87a1);_0x382db5['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x5c9fa2,'FORMAT_FONT_SIZE')),_0x382db5['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x5c9fa2,'FORMAT_FONT_FAMILY')),_0x382db5['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x5c9fa2,'FORMAT_FONT_COLOR')),_0x382db5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x5c9fa2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x395c10=this['editor'],_0x2714d4=_0x395c10['locale'];_0x395c10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x332627=>{const _0x3a0b9c=_0x2714d4['t'];if('formatInline'!=_0x332627['type'])return;const {data:_0x33e08d}=_0x332627;if(null!=_0x33e08d){if('fontSize'==_0x33e08d['commandName']){const _0x109672=_0x33e08d['commandParams'][0x0]['value'];if(_0x109672){const _0xe5080d=_0x3a0b9c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x14ba98=>_0x14ba98['model']==_0x109672)['title'])['toLowerCase']();return{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20size:*\x20%0',_0xe5080d)};}return{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33e08d['commandName']){const _0x2393e1=_0x33e08d['commandParams'][0x0]['value'];return _0x2393e1?{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20family:*\x20%0',_0x2393e1)}:{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33e08d['commandName']){const _0x43be81=_0x33e08d['commandParams'][0x0]['value'];if(_0x43be81){const _0x6fe4f=_0x3340df(this['editor']['config']['get']('fontColor.colors'))['find'](_0x475bf6=>_0x475bf6['model']==_0x43be81);let _0x239dc5=_0x43be81,_0x56a6f3='';return _0x6fe4f&&(_0x239dc5=_0x6fe4f['label'],_0x56a6f3=_0x3a0b9c(_0x239dc5)['toLowerCase']()),{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20color:*\x20%0',_0x56a6f3)['trim'](),'color':{'value':_0x43be81,'title':_0x56a6f3||_0x239dc5}};}return{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33e08d['commandName']){const _0x25dd11=_0x33e08d['commandParams'][0x0]['value'];if(_0x25dd11){const _0x87f965=_0x3340df(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x20a11b=>_0x20a11b['model']==_0x25dd11);let _0x8fa8a=_0x25dd11,_0x111052='';return _0x87f965&&(_0x8fa8a=_0x87f965['label'],_0x111052=_0x3a0b9c(_0x8fa8a)['toLowerCase']()),{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x111052)['trim'](),'color':{'value':_0x25dd11,'title':_0x111052||_0x8fa8a}};}return{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x54c126{['afterInit'](){const {plugins:_0x2f373a}=this['editor'];_0x2f373a['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2f373a['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x471072,plugins:_0xaf6c62,commands:_0x3afc0e}=this['editor'],_0x4c317f=_0xaf6c62['get']('TrackChangesEditing');_0x3afc0e['get']('footnotesStyle')&&_0x4c317f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3afc0e['get']('footnotesStart')&&_0x4c317f['enableDefaultAttributesIntegration']('footnotesStart'),_0x4c317f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x471072,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4c317f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x471072,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xef66e=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1d4e37,commands:_0x4a87d4}=this['editor'];_0x4a87d4['get']('insertFootnote')&&_0xef66e['enableCommand']('insertFootnote'),_0xef66e['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5efe12=>At(_0x1d4e37,'ELEMENT_FOOTNOTE_REF',_0x5efe12)),_0xef66e['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4d5389=>At(_0x1d4e37,'ELEMENT_FOOTNOTE_DEFINITION',_0x4d5389)),_0xef66e['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x444d86=>At(_0x1d4e37,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x444d86));}}class Qt extends _0x54c126{['afterInit'](){const _0x3eadb7=this['editor'],_0x230846=_0x3eadb7['plugins']['get']('TrackChangesEditing'),_0x5c9b89=_0x3eadb7['commands']['get']('copyFormat'),_0x2bad19=_0x3eadb7['commands']['get']('pasteFormat');_0x5c9b89&&_0x2bad19&&(_0x230846['enableDefaultAttributesIntegration']('pasteFormat'),_0x230846['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x59fe94=this['editor'],_0x2f3802=_0x59fe94['locale'];_0x59fe94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32eb8c=>{if('formatBlock'!=_0x32eb8c['type']&&'formatInline'!=_0x32eb8c['type'])return;const {data:_0x8a0132}=_0x32eb8c;if(_0x8a0132&&'pasteFormat'===_0x8a0132['commandName']){const _0x4628a9=[],_0x278321=_0x8a0132['commandParams'][0x0];for(const [_0x58ae1f,_0xb19ab8]of Object['entries'](_0x278321))_0x4628a9['push'](Zt(_0x59fe94,_0x58ae1f,_0xb19ab8));return _0x4628a9['length']?{'type':'format','content':At(_0x2f3802,'*Set\x20format\x20to:*\x20%0',_0x4628a9['join'](',\x20'))}:{'type':'format','content':At(_0x2f3802,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x522f51,_0x28d4d7,_0x3eed0b){const _0x3c5383=_0x522f51['locale']['t'],_0x2cb356=_0x28d4d7['split'](/(?=[A-Z])/)['join']('\x20'),_0x25e6c1=_0x3c5383(_0x2cb356['charAt'](0x0)['toUpperCase']()+_0x2cb356['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3eed0b)return _0x25e6c1;if('fontColor'===_0x28d4d7||'fontBackgroundColor'===_0x28d4d7){const _0x5e5e97=_0x3340df(_0x522f51['config']['get']('fontColor.colors'))['find'](_0x39e8d7=>_0x39e8d7['model']==_0x3eed0b);return _0x25e6c1+'\x20('+(_0x5e5e97?_0x3c5383(_0x5e5e97['label'])['toLowerCase']():_0x3eed0b)+')';}if('fontSize'===_0x28d4d7&&isNaN(parseFloat(_0x3eed0b))){const _0x5e0994=_0x522f51['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x522f51['config']['get']('fontSize.options'))['find'](_0x4a3a1f=>_0x4a3a1f['model']==_0x3eed0b);return _0x25e6c1+'\x20('+(_0x5e0994?_0x3c5383(_0x5e0994['title'])['toLowerCase']():_0x3eed0b)+')';}return _0x25e6c1+'\x20('+_0x3eed0b+')';}class Jt extends _0x54c126{['_headingOptions'];['afterInit'](){const _0x1a0d36=this['editor'];if(!_0x1a0d36['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1a0d36['config']['get']('heading.options');const _0x386cec=_0x1a0d36['locale'],_0x2b0803=_0x1a0d36['plugins']['get']('TrackChangesEditing');_0x2b0803['enableDefaultAttributesIntegration']('heading');for(const _0x1b1896 of this['_headingOptions'])'paragraph'!=_0x1b1896['model']&&_0x2b0803['descriptionFactory']['registerElementLabel'](_0x1b1896['model'],_0x552d17=>{const _0x10a613=this['_getHeadingLevel'](_0x1b1896['model']);return null!==_0x10a613?_0x48c093(_0x552d17,_0x10a613):_0x1e0faa(_0x552d17,_0x1b1896['title']);});function _0x48c093(_0x4ea9cf,_0x400498){return At(_0x386cec,'ELEMENT_HEADING',[_0x4ea9cf,_0x400498]);}function _0x1e0faa(_0x18745a,_0x5e3217){return At(_0x386cec,'ELEMENT_HEADING_CUSTOM',[_0x18745a,_0x5e3217]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2884e2=this['editor'],_0x525b82=_0x2884e2['locale'];function _0x216b8a(_0x2c195d,_0x17f505){return At(_0x525b82,'ELEMENT_HEADING_CUSTOM',[_0x2c195d,_0x17f505]);}_0x2884e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x413bcd=>{if('formatBlock'!=_0x413bcd['type'])return;const {data:_0x1817a9}=_0x413bcd;if(_0x1817a9&&'heading'==_0x1817a9['commandName']){const _0x3e3bfd=_0x1817a9['commandParams'][0x0]['value'],_0x4b0787=this['_getHeadingLevel'](_0x3e3bfd);if(null!==_0x4b0787)return{'type':'format','content':At(_0x525b82,'*Change\x20to:*\x20%0',(_0x7f4b9f=0x1,_0x29bf8e=_0x4b0787,At(_0x525b82,'ELEMENT_HEADING',[_0x7f4b9f,_0x29bf8e])))};const _0xcb4cc2=this['_headingOptions']['find'](_0x3397ec=>_0x3397ec['model']===_0x3e3bfd)['title'];return{'type':'format','content':At(_0x525b82,'*Change\x20to:*\x20%0',_0x216b8a(0x1,_0xcb4cc2))};}var _0x7f4b9f,_0x29bf8e;});}['_getHeadingLevel'](_0x4d4e15){const _0x58794d=_0x4d4e15['match'](/^heading(\d+)/);if(_0x58794d)return _0x58794d[0x1];const _0x894033=this['_headingOptions']?.['find'](_0x193775=>_0x193775['model']==_0x4d4e15);if(_0x894033&&_0x894033['view']){const _0x406b1e=_0x894033['view'],_0x489dde=(_0x406b1e['name']??_0x406b1e)['match'](/^h(\d+)/);if(_0x489dde)return _0x489dde[0x1];}return null;}}class te extends _0x54c126{['afterInit'](){const _0x52a823=this['editor'];if(!_0x52a823['plugins']['has']('HighlightEditing'))return;const _0x2e3c39=_0x52a823['plugins']['get']('TrackChangesEditing'),_0x107f24=_0x52a823['locale'];_0x2e3c39['enableDefaultAttributesIntegration']('highlight'),_0x2e3c39['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x107f24,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfccb6d=this['editor'],_0x35f7a9=_0xfccb6d['locale'];_0xfccb6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ca6fe=>{if('formatInline'!=_0x5ca6fe['type'])return;const {data:_0x5012ce}=_0x5ca6fe;if(_0x5012ce&&'highlight'==_0x5012ce['commandName']){const _0x25a86c=_0x35f7a9['t'],_0x460851=_0x5012ce['commandParams'][0x0]['value'];if(_0x460851){const _0x3de6e4=_0xfccb6d['config']['get']('highlight.options')['find'](_0x3a66a6=>_0x3a66a6['model']==_0x460851),_0x11315a=_0x25a86c(_0x3de6e4['title'])['toLowerCase']();return{'type':'format','content':At(_0x35f7a9,'*Set\x20highlight:*\x20%0',_0x11315a),'color':{'value':_0x3de6e4['color'],'title':_0x3de6e4['title']}};}return{'type':'format','content':At(_0x35f7a9,'*Remove\x20highlight*',At(_0x35f7a9,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x54c126{['afterInit'](){const _0x214149=this['editor'];if(!_0x214149['plugins']['has']('HorizontalLineEditing'))return;_0x214149['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d0fa4=_0x214149['plugins']['get']('TrackChangesEditing'),_0x5ee394=_0x214149['locale'];_0x4d0fa4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x331e29=>At(_0x5ee394,'ELEMENT_HORIZONTAL_LINE',_0x331e29));}}class ne extends _0x54c126{['afterInit'](){const _0x184707=this['editor'];if(!_0x184707['plugins']['has']('HtmlEmbed'))return;const _0x4ad70a=_0x184707['plugins']['get']('TrackChangesEditing'),_0x39d6f5=_0x184707['locale'];_0x4ad70a['descriptionFactory']['registerElementLabel']('rawHtml',_0x381005=>At(_0x39d6f5,'ELEMENT_HTML_EMBED',_0x381005)),_0x4ad70a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ad70a['descriptionFactory']['registerDescriptionCallback'](_0x5715ac=>{if('attribute'!=_0x5715ac['type'])return;const {data:_0x558280}=_0x5715ac;if(_0x558280&&'value'==_0x558280['key']&&_0x5715ac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x38e38e=At(_0x39d6f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x39d6f5,'*Change\x20%0\x20content*',_0x38e38e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x550437=this['editor'],_0x2902fd=_0x550437['locale'];_0x550437['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21ba8b=>{if('formatBlock'!=_0x21ba8b['type'])return;const {data:_0x17a2db}=_0x21ba8b;if(_0x17a2db&&'htmlEmbed'==_0x17a2db['commandName']){const _0x19cc55=At(_0x2902fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x2902fd,'*Change\x20%0\x20content*',_0x19cc55)};}});}}class ie extends _0x54c126{['afterInit'](){const _0x4e8296=this['editor'];if(!_0x4e8296['plugins']['has']('ImageEditing'))return;const _0x347d25=_0x4e8296['plugins']['get']('TrackChangesEditing'),_0x4be5d0=_0x4e8296['plugins']['get']('ImageUtils'),_0x15c4b2=_0x4e8296['locale'];_0x347d25['enableCommand']('insertImage'),_0x347d25['descriptionFactory']['registerElementLabel']('imageBlock',_0x1df6d9=>At(_0x15c4b2,'ELEMENT_IMAGE',_0x1df6d9)),_0x347d25['descriptionFactory']['registerElementLabel']('imageInline',_0x3612b6=>At(_0x15c4b2,'ELEMENT_INLINE_IMAGE',_0x3612b6)),_0x347d25['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x15c4b2,'ELEMENT_CAPTION')),_0x4e8296['plugins']['has']('ImageUploadEditing')&&_0x347d25['enableCommand']('uploadImage'),_0x4e8296['plugins']['has']('ImageBlockEditing')&&_0x4e8296['plugins']['has']('ImageInlineEditing')&&(_0x347d25['enableCommand']('imageTypeInline',(_0x593007,_0x2ec41b)=>{const _0x16c57b=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']);_0x4e8296['model']['change'](()=>{_0x347d25['markBlockFormat'](_0x16c57b,{'commandName':'imageTypeInline','commandParams':[_0x2ec41b]},[],'convertBlockImageToInline');});}),_0x347d25['enableCommand']('imageTypeBlock',(_0x431bd4,_0x3c60e5)=>{_0x4e8296['model']['change'](_0xf4fd0b=>{let _0x72a943=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x595819=_0xf4fd0b['createRangeOn'](_0x72a943);const _0x30a0d6=tt['fromPosition'](_0x595819['start'],'toPrevious'),_0x18cdd0=tt['fromPosition'](_0x595819['end'],'toNext');_0x347d25['forceDefaultExecution'](()=>_0x431bd4(_0x3c60e5)),_0x72a943=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x595819=_0xf4fd0b['createRangeOn'](_0x72a943);const _0x5e81db=_0xf4fd0b['createRange'](_0x30a0d6,_0x18cdd0);_0x30a0d6['detach'](),_0x18cdd0['detach'](),_0x347d25['markBlockFormat'](_0x72a943,{'commandName':'imageTypeInline','commandParams':[_0x3c60e5]},[],'convertInlineImageToBlock'),_0x5e81db['start']['isBefore'](_0x595819['start'])&&_0x347d25['markInsertion'](_0xf4fd0b['createRange'](_0x5e81db['start'],_0x595819['start']),'convertInlineImageToBlock'),_0x595819['end']['isBefore'](_0x5e81db['end'])&&_0x347d25['markInsertion'](_0xf4fd0b['createRange'](_0x595819['end'],_0x5e81db['end']),'convertInlineImageToBlock');});}),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x347d25['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x44a646])=>{const _0x14b262=_0x347d25['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1d1e9d=_0x44a646['start'],_0x4679c1=_0x44a646['end'];const _0x1af24f=_0x4e8296['model']['schema']['getNearestSelectionRange'](_0x1d1e9d,'backward'),_0x48ba1b=_0x4e8296['model']['schema']['getNearestSelectionRange'](_0x4679c1,'forward');_0x1af24f['isCollapsed']&&(_0x1d1e9d=_0x1af24f['start']),_0x48ba1b['isCollapsed']&&(_0x4679c1=_0x48ba1b['end']),_0x14b262([_0x4e8296['model']['createRange'](_0x1d1e9d,_0x4679c1)]);}),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13a3ac),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13a3ac)),_0x4e8296['plugins']['has']('ImageCaptionEditing')&&(_0x347d25['enableCommand']('toggleImageCaption',(_0x298a4f,_0x1d5e59)=>{const _0x76320d=_0x4e8296['plugins']['get']('ImageCaptionUtils');let _0xcb25b7=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x11254d=_0x76320d['getCaptionFromImageModelElement'](_0xcb25b7);_0x4e8296['model']['change'](()=>{if(_0x11254d)return void _0x347d25['markDeletion'](_0x4e8296['model']['createRangeOn'](_0x11254d));const _0x255abe=_0x4be5d0['isBlockImage'](_0xcb25b7);_0x298a4f(_0x1d5e59),_0xcb25b7=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x11254d=_0x76320d['getCaptionFromImageModelElement'](_0xcb25b7),_0x347d25['markInsertion'](_0x4e8296['model']['createRangeOn'](_0x11254d),_0x255abe?null:'imageCaption');});}),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13a3ac));const _0xcc87f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x285a91(_0x266857,_0x365c3d){const _0x1ecf9d=_0xcc87f9['findIndex'](({type:_0x26530d,subType:_0x2d3463})=>_0x266857['type']==_0x26530d&&_0x266857['subType']==_0x2d3463),_0x22c28a=_0xcc87f9['findIndex'](({type:_0x4aff78,subType:_0x4e7f71})=>_0x365c3d['type']==_0x4aff78&&_0x365c3d['subType']==_0x4e7f71);if(_0x1ecf9d<0x0||_0x22c28a<0x0)return!0x1;const _0x56cdd1=_0x266857['getFirstRange'](),_0x52e44d=_0x365c3d['getFirstRange']();if((0x0==_0x1ecf9d||0x1==_0x1ecf9d)&&0x2==_0x22c28a&&_0x56cdd1['isIntersecting'](_0x52e44d))return!0x0;if(0x2==_0x1ecf9d&&0x3==_0x22c28a){const _0x6977d1=_0x347d25['_findSuggestions'](_0x56cdd1,'insertion')['filter'](({suggestion:_0x1f344a,meta:_0x5aa5a5})=>_0x5aa5a5['isOwn']&&'convertInlineImageToBlock'==_0x1f344a['subType']);if(_0x6977d1['length']>0x1&&_0x52e44d['end']['isEqual'](_0x56cdd1['start']))return!0x0;if(0x1==_0x6977d1['length']&&(_0x56cdd1['start']['isEqual'](_0x52e44d['end'])||_0x56cdd1['end']['isEqual'](_0x52e44d['start'])))return!0x0;}if(0x3==_0x1ecf9d&&0x3==_0x22c28a&&_0x56cdd1['start']['isBefore'](_0x52e44d['start'])){const _0x1de90a=_0x56cdd1['end']['nodeAfter'],_0x126ba7=_0x52e44d['start']['nodeBefore'];return _0x4be5d0['isBlockImage'](_0x1de90a)&&_0x1de90a===_0x126ba7;}return!0x1;}function _0x13a3ac(_0x38a38f,_0x382549){return _0x285a91(_0x38a38f,_0x382549)?[_0x38a38f,_0x382549]:_0x285a91(_0x382549,_0x38a38f)?[_0x382549,_0x38a38f]:null;}_0x4e8296['plugins']['has']('ImageResize')&&(_0x347d25['enableDefaultAttributesIntegration']('resizeImage'),_0x347d25['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x15c4b2,'FORMAT_IMAGE_SIZE'))),_0x4e8296['plugins']['has']('ImageTextAlternativeEditing')&&_0x347d25['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4e8296['plugins']['has']('PictureEditing')&&_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x24861d=>{if('attribute'!=_0x24861d['type'])return;const {data:_0x5ece31}=_0x24861d;return _0x5ece31&&'sources'==_0x5ece31['key']?{'type':'format','content':''}:void 0x0;}),_0x4e8296['plugins']['has']('ImageSizeAttributes')&&_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x45addd=>{if('attribute'!=_0x45addd['type'])return;const {data:_0x58980e}=_0x45addd;return!_0x58980e||'width'!=_0x58980e['key']&&'height'!=_0x58980e['key']?void 0x0:{'type':'format','content':''};}),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x547ca2=>{if(!!_0xcc87f9['find'](({type:_0x2c8408,subType:_0x4b6966})=>_0x547ca2['type']==_0x2c8408&&_0x547ca2['subType']==_0x4b6966))return _0x547ca2['previous']?{}:void 0x0;}),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x33e91c=>{if('insertion'==_0x33e91c['type']||'deletion'==_0x33e91c['type']){const _0x7890e=_0x33e91c['getContainedElement']();if(_0x7890e&&_0x7890e['is']('element','caption'))return{'type':'insertion'==_0x33e91c['type']?'addObject':'removeObject','element':_0x7890e,'quantity':0x1};}}),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x157dba=>'formatBlock'==_0x157dba['type']&&'convertInlineImageToBlock'==_0x157dba['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x157dba['type']&&'convertBlockImageToInline'==_0x157dba['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x159968=>{if('attribute'!=_0x159968['type'])return;const {data:_0x3c690d}=_0x159968;if(!_0x3c690d||'alt'!=_0x3c690d['key'])return;const _0x28e53f=_0x3c690d['newValue'];return _0x28e53f?{'type':'format','content':At(_0x15c4b2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x28e53f+'\x22')}:{'type':'format','content':At(_0x15c4b2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1edc2b=this['editor'],_0x3e1029=_0x1edc2b['locale'];_0x1edc2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593824=>{if('formatBlock'!=_0x593824['type']&&'formatInline'!=_0x593824['type'])return;const {data:_0x34046e}=_0x593824;if(_0x34046e){if('imageTextAlternative'==_0x34046e['commandName']){const _0x46b06b=_0x34046e['commandParams'][0x0]['newValue'];return _0x46b06b?{'type':'format','content':At(_0x3e1029,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46b06b+'\x22')}:{'type':'format','content':At(_0x3e1029,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34046e['commandName']){const _0xfb62f=_0x34046e['commandParams'][0x0]['width'];return _0xfb62f?{'type':'format','content':At(_0x3e1029,'*Set\x20image\x20width:*\x20%0',_0xfb62f)}:{'type':'format','content':At(_0x3e1029,'*Reset\x20image\x20width*')};}}});}}class se extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1cd6d8=this['editor']['locale'],_0x59920d=this['editor']['plugins']['get']('TrackChangesEditing');_0x59920d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x59920d['descriptionFactory']['registerDescriptionCallback'](_0x27fc91=>{if('attribute'!=_0x27fc91['type'])return;const {data:_0x2d6bf2}=_0x27fc91;return _0x2d6bf2&&'src'==_0x2d6bf2['key']?_0x2d6bf2['newValue']&&_0x2d6bf2['oldValue']?{'type':'format','content':At(_0x1cd6d8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5cc643=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cc643['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5cc643['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cc643['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5cc643['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43a791=this['editor'],_0x2c0753=_0x43a791['locale'];_0x43a791['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41d7cb=>{if('formatBlock'!=_0x41d7cb['type']&&'formatInline'!=_0x41d7cb['type'])return;const {data:_0x15a000}=_0x41d7cb;if(!_0x15a000||'replaceImageSource'!=_0x15a000['commandName'])return;return{'type':'format','content':At(_0x2c0753,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x54c126{['afterInit'](){const _0xb7f4b0=this['editor'];if(!_0xb7f4b0['plugins']['has']('ImageStyleEditing'))return;const _0x3c8412=_0xb7f4b0['plugins']['get']('TrackChangesEditing'),_0x5247de=_0xb7f4b0['plugins']['get']('ImageUtils'),_0x5519fa={};_0x3c8412['enableCommand']('imageStyle',(_0x4e7064,_0x3c63ac)=>{const _0x4e5048=_0xb7f4b0['plugins']['get']('Users')['me'],_0x2d89f5=_0xb7f4b0['commands']['get']('imageStyle');let _0x514cb3=_0x5247de['getClosestSelectedImageElement'](_0xb7f4b0['model']['document']['selection']),_0x4b37dd=_0xb7f4b0['model']['createRangeOn'](_0x514cb3),_0x4f88e3=_0x2d89f5['value'];if(_0x4f88e3==_0x3c63ac['value'])return;const _0x50f6b6={'commandName':'imageStyle','commandParams':[_0x3c63ac],'formatGroupId':_0x171c64()};_0xb7f4b0['model']['change'](()=>{if(_0x3c8412['getSuggestions']()['filter'](_0x3855b9=>_0x3855b9['isInContent']&&_0x4e5048==_0x3855b9['author']&&('formatBlock'==_0x3855b9['type']||'formatInline'==_0x3855b9['type'])&&('imageStylePreApply'==_0x3855b9['subType']||'imageStylePostApply'==_0x3855b9['subType'])&&_0x3855b9['getFirstRange']()['isEqual'](_0x4b37dd))['forEach'](_0xc2fb37=>_0x3c8412['discardSuggestion'](_0xc2fb37['head'])),_0x514cb3=_0x5247de['getClosestSelectedImageElement'](_0xb7f4b0['model']['document']['selection']),_0x4b37dd=_0xb7f4b0['model']['createRangeOn'](_0x514cb3),_0x2d89f5['refresh'](),_0xb7f4b0['commands']['get']('imageTypeInline')['refresh'](),_0xb7f4b0['commands']['get']('imageTypeBlock')['refresh'](),_0x4f88e3=_0x2d89f5['value'],_0x4f88e3!=_0x3c63ac['value'])return _0x5247de['isInlineImage'](_0x514cb3)&&_0x2d89f5['shouldConvertImageType'](_0x3c63ac['value'],_0x514cb3)?(_0x4e7064({..._0x3c63ac,'setImageSizes':!0x1}),_0x514cb3=_0x5247de['getClosestSelectedImageElement'](_0xb7f4b0['model']['document']['selection']),void _0x3c8412['markBlockFormat'](_0x514cb3,{..._0x50f6b6,'commandReversedParams':[{'value':_0x4f88e3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5247de['isBlockImage'](_0x514cb3)?_0x3c8412['markBlockFormat'](_0x514cb3,_0x50f6b6,[],'imageStylePostApply'):_0x3c8412['markInlineFormat'](_0x4b37dd,_0x50f6b6,'imageStylePostApply'));});});for(const _0x366b16 of _0xb7f4b0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5519fa[_0x366b16['name']]=_0x366b16['title']['toLowerCase']();_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e9bcb])=>{_0x5247de['setImageNaturalSizeAttributes'](_0x3e9bcb['getContainedElement']());}),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x26e111,_0x1a3175)=>{_0x3c8412['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x26e111,{'commandName':_0x1a3175['commandName'],'commandParams':_0x1a3175['commandReversedParams']});}),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xb5df24,_0x9f2054){if(_0x24873b(_0xb5df24,_0x9f2054))return[_0xb5df24,_0x9f2054];if(_0x24873b(_0x9f2054,_0xb5df24))return[_0x9f2054,_0xb5df24];return null;});const _0x509c01=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x24873b(_0x3a53db,_0x5e2bbc){const _0x4b5ef6=_0x509c01['findIndex'](({type:_0x4d7b49,subType:_0x2352db})=>_0x3a53db['type']==_0x4d7b49&&_0x3a53db['subType']==_0x2352db),_0x4897ca=_0x509c01['findIndex'](({type:_0x2ae15a,subType:_0x2c5138})=>_0x5e2bbc['type']==_0x2ae15a&&_0x5e2bbc['subType']==_0x2c5138);if(_0x4b5ef6<0x0||_0x4897ca<0x0)return!0x1;const _0x4fff26=_0x3a53db['getFirstRange'](),_0x6fd5be=_0x5e2bbc['getFirstRange']();if((0x0==_0x4b5ef6||0x1==_0x4b5ef6)&&0x2==_0x4897ca&&_0x4fff26['isIntersecting'](_0x6fd5be))return!0x0;if(0x2==_0x4b5ef6&&0x3==_0x4897ca){const _0x2ca509=_0x3c8412['_findSuggestions'](_0x4fff26,'insertion')['filter'](({suggestion:_0x52cc6d,meta:_0x25857d})=>_0x25857d['isOwn']&&'convertInlineImageToBlock'==_0x52cc6d['subType']);if(_0x2ca509['length']>0x1&&_0x6fd5be['end']['isEqual'](_0x4fff26['start']))return!0x0;if(0x1==_0x2ca509['length']&&(_0x4fff26['start']['isEqual'](_0x6fd5be['end'])||_0x4fff26['end']['isEqual'](_0x6fd5be['start'])))return!0x0;}if(0x3==_0x4b5ef6&&0x3==_0x4897ca&&_0x4fff26['start']['isBefore'](_0x6fd5be['start'])){const _0x4f9291=_0x4fff26['end']['nodeAfter'],_0x22a0c9=_0x6fd5be['start']['nodeBefore'];return _0x5247de['isBlockImage'](_0x4f9291)&&_0x4f9291===_0x22a0c9;}return!0x1;}_0xb7f4b0['model']['document']['registerPostFixer'](()=>{let _0xeb9812=!0x1;const _0x47384a=Array['from'](_0xb7f4b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x293455,data:_0x34007f}of _0x47384a){const {group:_0xdef0fb,type:_0x4f198b,subType:_0x116bc9,id:_0xe1cb80}=_0x39dc22(_0x293455);if('suggestion'==_0xdef0fb&&_0x3c8412['hasSuggestion'](_0xe1cb80)){if('formatBlock'==_0x4f198b&&('imageStylePreApply'==_0x116bc9||'imageStylePostApply'==_0x116bc9)){const _0xc0a2ff=_0x3c8412['getSuggestion'](_0xe1cb80);if(_0x34007f['newRange']){const _0x1adeea=_0xc0a2ff['getFirstRange']()['getContainedElement']();if(_0x5247de['isBlockImage'](_0x1adeea))continue;_0x3c8412['discardSuggestion'](_0xc0a2ff),_0xeb9812=!0x0;}}if('insertion'==_0x4f198b&&'imageCaption'==_0x116bc9&&!_0x34007f['newRange']){const _0xa81749=_0x3c8412['getSuggestion'](_0xe1cb80);_0xa81749['next']&&_0xa81749['next']['isInContent']&&(_0x3c8412['discardSuggestion'](_0xa81749['next']),_0xeb9812=!0x0);}}}return _0xeb9812;}),this['_registerLegacyDescription'](_0x5519fa);}['_registerLegacyDescription'](_0x3d2ae9){const _0x146938=this['editor'],_0x430b72=_0x146938['locale'];_0x146938['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22aa82=>{if('formatBlock'!=_0x22aa82['type']&&'formatInline'!=_0x22aa82['type'])return;const {data:_0xe9e001}=_0x22aa82;if(!_0xe9e001||'imageStyle'!=_0xe9e001['commandName'])return;const _0x5e7920=_0xe9e001['commandParams'][0x0]['value'];return _0x557297('side'===_0x5e7920?At(_0x430b72,'FORMAT_SIDE_IMAGE'):_0x3d2ae9[_0x5e7920]||_0x5e7920);function _0x557297(_0x26e13e){return{'type':'format','content':At(_0x430b72,'*Format:*\x20%0',_0x26e13e)};}});}}class oe extends _0x54c126{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4f0456){super(_0x4f0456),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x508c78=this['editor'],_0x50adc9=_0x508c78['commands']['get']('importWord'),_0x1db886=_0x508c78['commands']['get']('trackChanges');_0x50adc9&&(_0x50adc9['on']('execute',(_0x5a75f4,[,_0x3dcf5d])=>{this['_trackChangesValueDuringImport']=_0x1db886['value'],_0x3dcf5d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x50adc9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x50adc9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1db886['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x508c78['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5c583e,_0x275074){const {suggestions:_0x58f546}=_0x275074,_0x2c66d5=this['editor']['commands']['get']('trackChanges'),_0x1f80ca=_0x2c66d5['value'];this['_trackChangesValueDuringImport']!==_0x1f80ca&&(_0x2c66d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x58f546&&_0x58f546['forEach'](({id:_0x51be5d,type:_0x4b4cf0,author:_0x514930,created_at:_0x3249dd})=>{const _0x29ac38={'id':_0x51be5d,'type':_0x4b4cf0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x514930,'createdAt':_0x3249dd?new Date(_0x3249dd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29ac38);});}}class ae extends _0x54c126{['afterInit'](){const _0x306e23=this['editor'],_0x213d9f=_0x306e23['plugins']['get']('TrackChangesEditing');if(_0x306e23['plugins']['has']('IndentEditing')&&(_0x213d9f['enableCommand']('indent'),_0x213d9f['enableCommand']('outdent')),_0x306e23['plugins']['has']('IndentBlock')){for(const _0xa207e5 of['indentBlock','outdentBlock'])_0x213d9f['enableDefaultAttributesIntegration'](_0xa207e5);if(_0x306e23['plugins']['has']('ListEditing')){for(const _0x1e6f73 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x213d9f['enableDefaultAttributesIntegration'](_0x1e6f73);}}const _0x5bbf86=_0x306e23['locale'];_0x213d9f['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x5bbf86,'FORMAT_INDENT')),_0x213d9f['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x5bbf86,'FORMAT_INDENT')),_0x213d9f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x5bbf86,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x242a3c=this['editor'],_0x56b39c=_0x242a3c['locale'],_0x204efd=_0x242a3c['plugins']['get']('TrackChangesEditing');_0x204efd['descriptionFactory']['registerDescriptionCallback'](_0x1e777c=>{if('formatBlock'!=_0x1e777c['type'])return;const {data:_0x1c698d}=_0x1e777c;if(!_0x1c698d)return;if('indentBlock'!=_0x1c698d['commandName']&&'outdentBlock'!=_0x1c698d['commandName'])return;const _0x4d1f3a=_0x1e777c['getItems']()[0x0],_0x3b128d=_0x204efd['descriptionFactory']['getItemLabel'](_0x4d1f3a);return'indentBlock'==_0x1c698d['commandName']?{'type':'format','content':At(_0x56b39c,'*Indent:*\x20%0',_0x3b128d)}:'outdentBlock'==_0x1c698d['commandName']?{'type':'format','content':At(_0x56b39c,'*Outdent:*\x20%0',_0x3b128d)}:void 0x0;});}}class ce extends _0x54c126{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x54c126{['afterInit'](){const _0x7eeaed=this['editor'];if(!_0x7eeaed['plugins']['has']('LinkEditing'))return;const _0x1302a0=_0x7eeaed['plugins']['get']('TrackChangesEditing'),_0x1cd04e=_0x7eeaed['commands']['get']('link');_0x1302a0['enableDefaultAttributesIntegration']('link'),_0x1302a0['enableDefaultAttributesIntegration']('unlink');for(const _0x17f447 of _0x1cd04e['manualDecorators'])_0x1302a0['descriptionFactory']['registerAttributeLabel'](_0x17f447['id'],'link\x20('+_0x17f447['label']['toLowerCase']()+')');_0x1302a0['descriptionFactory']['registerDescriptionCallback'](_0x57c357=>{if('attribute'!=_0x57c357['type'])return;const {data:_0x4b01e6}=_0x57c357;if(!_0x4b01e6||'linkHref'!=_0x4b01e6['key'])return;const _0x3112be=_0x4b01e6['newValue'],_0xb546e=_0x7eeaed['locale'];return{'type':'format','content':null==_0x3112be?At(_0xb546e,'*Remove\x20link*'):At(_0xb546e,'*Set\x20link:*\x20%0','\x22'+_0x3112be+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f26b6=this['editor'],_0x2e8642=_0x5f26b6['locale'];_0x5f26b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x145050=>{if('formatInline'!=_0x145050['type'])return;const {data:_0x3ec54b}=_0x145050;if(_0x3ec54b){if('link'==_0x3ec54b['commandName']){const _0x579084=_0x3ec54b['commandParams'][0x0];return{'type':'format','content':At(_0x2e8642,'*Set\x20link:*\x20%0','\x22'+_0x579084+'\x22')};}return'unlink'==_0x3ec54b['commandName']?{'type':'format','content':At(_0x2e8642,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x54c126{['afterInit'](){const _0x2b1a6a=this['editor'],_0x4edf3f=_0x2b1a6a['locale'];if(!_0x2b1a6a['plugins']['has']('LegacyListEditing'))return;const _0x54b812=_0x2b1a6a['plugins']['get']('TrackChangesEditing'),_0x598def=_0x2b1a6a['plugins']['has']('LegacyTodoListEditing');function _0x5d75a1(_0x4b64f0){return()=>{const _0x578b39=_0x2b1a6a['model']['document']['selection'],_0x44fc7a=_0x2b1a6a['commands']['get'](_0x4b64f0);if(_0x44fc7a['value'])return void _0x2b1a6a['execute']('paragraph',{});const _0x5cc032=_0x4b64f0['slice'](0x0,-0x4),_0x2e7199=function(_0x4d7fee,_0x2d61d3,_0x1b0d4a){let _0x4d3d0e=Array['from'](_0x4d7fee)['filter'](_0x45237b=>function(_0x5ec918,_0x35a1ed){return _0x35a1ed['checkChild'](_0x5ec918['parent'],'listItem')&&!_0x35a1ed['isObject'](_0x5ec918);}(_0x45237b,_0x1b0d4a));_0x4d3d0e=_0x4d3d0e['filter'](_0x2529a9=>!_0x2529a9['is']('element','listItem')||_0x2529a9['getAttribute']('listType')!=_0x2d61d3);const _0x3c895b=new Set();for(const _0x5592ac of _0x4d3d0e)_0x5592ac['is']('element','listItem')?_0x3c895b['add'](he(_0x5592ac)):_0x3c895b['add'](_0x5592ac);return Array['from'](_0x3c895b);}(_0x578b39['getSelectedBlocks'](),_0x5cc032,_0x2b1a6a['model']['schema']);_0x2b1a6a['model']['change'](()=>{for(const _0x549913 of _0x2e7199)_0x54b812['markBlockFormat'](_0x549913,{'commandName':_0x4b64f0,'commandParams':[{'forceValue':!_0x44fc7a['value']}],'formatGroupId':'blockName'},de(_0x549913));});};}function _0xa0fa73(_0x4367df){return()=>{const _0x43c04f=function(_0x313cba){let _0x3993f4=Array['from'](_0x313cba);const _0x51da72=_0x3993f4['findIndex'](_0x3faa96=>'listItem'!=_0x3faa96['name']);return _0x51da72>-0x1&&(_0x3993f4=_0x3993f4['slice'](0x0,_0x51da72)),_0x3993f4;}(_0x2b1a6a['model']['document']['selection']['getSelectedBlocks']()),_0x5e5de3=_0x2b1a6a['model']['createRange'](_0x2b1a6a['model']['createPositionAt'](_0x43c04f[0x0],'before'),_0x2b1a6a['model']['createPositionAt'](_0x43c04f[_0x43c04f['length']-0x1],'end'));_0x2b1a6a['model']['change'](()=>{_0x54b812['markBlockFormat'](_0x5e5de3,{'commandName':_0x4367df,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596f84){const _0x2bec04=new Set();for(const _0x375ac7 of _0x596f84){let _0x281c4e=_0x375ac7['nextSibling'];for(;_0x281c4e&&_0x281c4e['getAttribute']('listIndent')>_0x375ac7['getAttribute']('listIndent');)_0x2bec04['add'](_0x281c4e),_0x281c4e=_0x281c4e['nextSibling'];}return Array['from'](_0x2bec04);}(_0x43c04f));});};}_0x54b812['enableCommand']('numberedList',_0x5d75a1('numberedList')),_0x54b812['enableCommand']('bulletedList',_0x5d75a1('bulletedList')),_0x598def&&_0x54b812['enableCommand']('todoList',_0x5d75a1('todoList')),_0x54b812['enableCommand']('indentList',_0xa0fa73('indentList')),_0x54b812['enableCommand']('outdentList',_0xa0fa73('outdentList')),_0x598def&&_0x54b812['enableCommand']('checkTodoList',()=>{const _0x2cb6b6=_0x2b1a6a['commands']['get']('checkTodoList'),_0x2e5b5b=Array['from'](_0x2cb6b6['_selectedElements']);_0x2e5b5b['filter'](_0x319bc9=>_0x319bc9['getAttribute']('todoListChecked')!=_0x2cb6b6['value']),_0x2b1a6a['model']['change'](()=>{for(const _0x150d88 of _0x2e5b5b)_0x54b812['markBlockFormat'](_0x150d88,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2cb6b6['value']}]});});}),_0x54b812['descriptionFactory']['registerElementLabel']('listItem',_0x5df047=>At(_0x4edf3f,'ELEMENT_LIST_ITEM',_0x5df047)),_0x54b812['descriptionFactory']['registerDescriptionCallback'](_0x278455=>{if('formatBlock'!=_0x278455['type']&&'formatInline'!=_0x278455['type'])return;const {data:_0x46d666}=_0x278455;if(_0x46d666){if('numberedList'==_0x46d666['commandName']||'bulletedList'==_0x46d666['commandName']||'todoList'==_0x46d666['commandName'])switch(_0x46d666['commandName']['replace']('List','')){case'bulleted':return _0x4e98fa(At(_0x4edf3f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e98fa(At(_0x4edf3f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e98fa(At(_0x4edf3f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x46d666['commandName'])return{'type':'format','content':At(_0x4edf3f,'*Indent:*\x20%0',At(_0x4edf3f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x46d666['commandName'])return{'type':'format','content':At(_0x4edf3f,'*Outdent:*\x20%0',At(_0x4edf3f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x46d666['commandName'])return _0x46d666['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4edf3f,'*Check\x20item*')}:{'type':'format','content':At(_0x4edf3f,'*Uncheck\x20item*')};}function _0x4e98fa(_0x3c2b53){return{'type':'format','content':At(_0x4edf3f,'*Change\x20to:*\x20%0',_0x3c2b53)};}});}}function he(_0x29f852){const _0xc4b15b=_0x29f852['getAttribute']('listIndent');if(0x0==_0xc4b15b)return _0x29f852;let _0x16347a=_0x29f852;for(;_0x29f852['previousSibling']&&_0x29f852['previousSibling']['is']('element','listItem');){const _0x457ec5=_0x29f852['previousSibling']['getAttribute']('listIndent');if(_0x457ec5==_0xc4b15b)_0x16347a=_0x29f852['previousSibling'];else{if(_0x457ec5<_0xc4b15b)break;}_0x29f852=_0x29f852['previousSibling'];}return _0x16347a;}function de(_0x5f1f16){const _0x31083d=[];if(_0x5f1f16['is']('element','listItem')&&_0x5f1f16['getAttribute']('listIndent')>0x0){let _0x5e7190=_0x5f1f16['nextSibling'];for(;_0x5e7190&&'listItem'==_0x5e7190['name']&&_0x5e7190['getAttribute']('listIndent')==_0x5f1f16['getAttribute']('listIndent');)_0x31083d['push'](_0x5e7190),_0x5e7190=_0x5e7190['nextSibling'];}return _0x31083d;}class fe extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4c395f=this['editor']['config']['get']('list.properties'),_0x34d2a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c395f['styles']&&_0x34d2a7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4c395f['reversed']&&_0x34d2a7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4c395f['startIndex']&&_0x34d2a7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x34d2a7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e9359,_0x1e2d8d={}){const _0x33fe88=this['editor']['plugins']['get']('TrackChangesEditing'),_0x417a26=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x33fe88['markMultiRangeBlockFormat'](_0x417a26,{'commandName':'listStyle','commandParams':[{'type':_0x1e2d8d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b939b,_0x5d028a={}){const _0x33b060=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38cc9f=this['_getSuggestionBlocks'](_0x3f616f=>_0x3f616f['is']('element','listItem')&&'numbered'===_0x3f616f['getAttribute']('listType'));if(_0x38cc9f['length']<0x1)return;const _0xd04cb4=_0x38cc9f['map'](_0x1d233c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d233c,'before'),this['editor']['model']['createPositionAt'](_0x1d233c,0x0)));this['editor']['model']['change'](()=>{_0x33b060['markMultiRangeBlockFormat'](_0xd04cb4,{'commandName':'listReversed','commandParams':[{'reversed':_0x5d028a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28a3a0,_0x3e23df={}){const _0x2139bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4084ca=this['_getSuggestionBlocks'](_0x376b08=>_0x376b08['is']('element','listItem')&&'numbered'===_0x376b08['getAttribute']('listType'));if(_0x4084ca['length']<0x1)return;const _0x1a64ff=_0x4084ca['map'](_0x516b9e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x516b9e,'before'),this['editor']['model']['createPositionAt'](_0x516b9e,0x0)));this['editor']['model']['change'](()=>{_0x2139bc['markMultiRangeBlockFormat'](_0x1a64ff,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e23df['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x676003){if('formatBlock'!=_0x676003['type']&&'formatInline'!=_0x676003['type'])return;const _0x4d8ed6=this['editor']['locale'],{data:_0x38825e}=_0x676003;if(!_0x38825e)return;let _0x58cabf,_0x28d8d4;switch(_0x38825e['commandName']){case'listStyle':_0x58cabf='*Change\x20to:*\x20%0',_0x28d8d4={'type':'format','content':At(_0x4d8ed6,_0x58cabf,At(_0x4d8ed6,this['_getTranslationKeyForListStyle'](_0x38825e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x58cabf=_0x38825e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28d8d4={'type':'format','content':At(_0x4d8ed6,_0x58cabf)};break;case'listStart':_0x58cabf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28d8d4={'type':'format','content':At(_0x4d8ed6,_0x58cabf,_0x38825e['commandParams'][0x0]['startIndex'])};}return _0x28d8d4;}['_getSuggestionBlocksForListStyle'](){const _0x337cb2=this['editor']['plugins']['get']('LegacyListUtils');let _0x55f3c0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x55f3c0[0x0]?.['is']('element','listItem')&&_0x55f3c0['unshift'](..._0x337cb2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x55f3c0[_0x55f3c0['length']-0x1]?.['is']('element','listItem')&&_0x55f3c0['push'](..._0x337cb2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x55f3c0=[...new Set(_0x55f3c0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x55f3c0=_0x55f3c0['filter'](_0x35dfb7=>_0x35dfb7['is']('element','listItem'))),_0x55f3c0;}['_getSuggestionBlocks'](_0x3379de){const _0x232d19=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e6a8d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3379de)['map'](_0x41ae03=>{const _0x3b0404=this['editor']['model']['createPositionAt'](_0x41ae03,0x0);return[..._0x232d19['getSiblingNodes'](_0x3b0404,'backward'),..._0x232d19['getSiblingNodes'](_0x3b0404,'forward')];})['flat']();return _0x1e6a8d=[...new Set(_0x1e6a8d)],_0x1e6a8d;}['_getTranslationKeyForListStyle'](_0x358bc1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x358bc1)||'default')['toUpperCase']()+'_LIST_'+_0x358bc1['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x54c126{['afterInit'](){const _0x57c534=this['editor'];if(!_0x57c534['plugins']['has']('MediaEmbedEditing'))return;const _0x51146f=_0x57c534['plugins']['get']('TrackChangesEditing'),_0x2df32e=_0x57c534['locale'];_0x51146f['enableCommand']('mediaEmbed'),_0x51146f['descriptionFactory']['registerElementLabel']('media',_0x1a70a4=>At(_0x2df32e,'ELEMENT_MEDIA',_0x1a70a4));}}class me extends _0x54c126{['afterInit'](){const _0xddc93c=this['editor'];_0xddc93c['plugins']['has']('MentionEditing')&&_0xddc93c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x54c126{['afterInit'](){const _0x504103=this['editor'];if(!_0x504103['plugins']['has']('MergeFieldsEditing'))return;const _0x3e2bcd=_0x504103['plugins']['get']('TrackChangesEditing'),_0x53fb7a=_0x504103['locale'];_0x3e2bcd['enableCommand']('insertMergeField'),_0x3e2bcd['enableCommand']('insertMergeFieldBlock'),_0x3e2bcd['enableCommand']('insertMergeFieldImage'),_0x3e2bcd['descriptionFactory']['registerElementLabel']('mergeField',_0xc3adb4=>At(_0x53fb7a,'ELEMENT_MERGE_FIELD',_0xc3adb4)),_0x3e2bcd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x7b89c6=>At(_0x53fb7a,'ELEMENT_MERGE_FIELD',_0x7b89c6)),_0x3e2bcd['descriptionFactory']['registerDescriptionCallback'](_0x21ceb1=>{if('insertion'!=_0x21ceb1['type']&&'deletion'!=_0x21ceb1['type'])return;const _0x2c7a5a=_0x21ceb1['getContainedElement']();if(null==_0x2c7a5a)return;const _0x54474a=_0x504103['plugins']['get']('MergeFieldsEditing');let _0x3c381e;switch(_0x54474a['getMergeFieldType'](_0x2c7a5a)){case null:return;case'image':{const _0x49164f=_0x54474a['unwrapAffixes'](_0x2c7a5a['getAttribute']('src'));_0x3c381e=_0x54474a['getLabel'](_0x49164f)||_0x49164f;break;}default:{const _0x2ece09=_0x2c7a5a['getAttribute']('id');_0x3c381e=_0x54474a['getLabel'](_0x2ece09)||_0x2ece09;break;}}return'insertion'==_0x21ceb1['type']?{'type':'insertion','content':At(_0x53fb7a,'*Insert:*\x20%0','\x22'+_0x3c381e+'\x22\x20'+At(_0x53fb7a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x53fb7a,'*Remove:*\x20%0','\x22'+_0x3c381e+'\x22\x20'+At(_0x53fb7a,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x54c126{['afterInit'](){const _0x4a49a4=this['editor'],_0x5bdfbe=_0x4a49a4['plugins']['get']('TrackChangesEditing');_0x4a49a4['plugins']['has']('MultiLevelList')&&(_0x5bdfbe['enableDefaultAttributesIntegration']('multiLevelList'),_0x5bdfbe['descriptionFactory']['registerDescriptionCallback'](_0xdd07e4=>this['handleDescriptions'](_0xdd07e4)));}['handleDescriptions'](_0x3c530a){const _0x3475bf=this['editor']['locale'],{data:_0x1e0542}=_0x3c530a,_0x1f281f={'type':'format','content':''};if(_0x1e0542&&'listMarkerStyle'==_0x1e0542['key']){if(!_0x1e0542['oldValue'])return{'type':'format','content':At(_0x3475bf,'*Set\x20format:*\x20%0',At(_0x3475bf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e0542['newValue']+')'};if(!_0x1e0542['newValue']){let _0x243fc0=_0x3c530a['head'];for(;_0x243fc0;){if(_0x243fc0['data']&&'listType'==_0x243fc0['data']['key']&&_0x243fc0['data']['newValue'])return _0x1f281f;_0x243fc0=_0x243fc0['next'];}return{'type':'format','content':At(_0x3475bf,'*Remove\x20format:*\x20%0',At(_0x3475bf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e0542['oldValue']+')'};}}}}class _e extends _0x54c126{['afterInit'](){const _0x389a63=this['editor'];if(!_0x389a63['plugins']['has']('PageBreakEditing'))return;_0x389a63['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f7579=_0x389a63['plugins']['get']('TrackChangesEditing'),_0x55b82a=_0x389a63['locale'];_0x4f7579['descriptionFactory']['registerElementLabel']('pageBreak',_0x5bbd2e=>At(_0x55b82a,'ELEMENT_PAGE_BREAK',_0x5bbd2e));}}class pe extends _0x54c126{['afterInit'](){const _0x161bb4=this['editor'];if(!_0x161bb4['plugins']['has']('Paragraph'))return;const _0x548d7b=_0x161bb4['locale'],_0x59c2c7=_0x161bb4['plugins']['get']('TrackChangesEditing');_0x59c2c7['descriptionFactory']['registerElementLabel']('paragraph',_0xd570be=>At(_0x548d7b,'ELEMENT_PARAGRAPH',_0xd570be)),_0x59c2c7['enableDefaultAttributesIntegration']('paragraph'),_0x59c2c7['enableCommand']('insertParagraph');const _0x19d42d=_0x59c2c7['descriptionFactory'];_0x19d42d['registerDescriptionCallback'](_0x179995=>{if('insertion'!==_0x179995['type'])return;const {start:_0x5e1904,end:_0x79afb7}=_0x179995['getFirstRange']();if(!_0x5e1904['isTouching'](_0x79afb7)||!_0x5e1904['nodeAfter'])return;const _0x4479cd=_0x161bb4['model']['schema'],_0x55b06e=_0x5e1904['nodeAfter'];return _0x4479cd['isBlock'](_0x55b06e)&&!_0x4479cd['isLimit'](_0x55b06e)&&_0x4479cd['checkChild'](_0x55b06e,'$text')?{'type':'insertion','content':At(_0x548d7b,'*Insert:*\x20%0',_0x19d42d['getItemLabel'](_0x55b06e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aee91=this['editor'],_0x2e2ac1=_0x1aee91['locale'];_0x1aee91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bda3f=>{if('formatBlock'!=_0x3bda3f['type'])return;const {data:_0x327802}=_0x3bda3f;return _0x327802&&'paragraph'==_0x327802['commandName']?{'type':'format','content':At(_0x2e2ac1,'*Change\x20to:*\x20%0',At(_0x2e2ac1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x54c126{['afterInit'](){const _0x5574fd=this['editor'];_0x5574fd['commands']['get']('replaceSource')&&_0x5574fd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x54c126{['afterInit'](){const _0x4b9818=this['editor'];if(!_0x4b9818['plugins']['has']('RemoveFormatEditing'))return;_0x4b9818['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dac1f=this['editor'];_0x2dac1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b4f29=>{if('formatBlock'!=_0x2b4f29['type']&&'formatInline'!=_0x2b4f29['type'])return;const {data:_0x14496e}=_0x2b4f29;return _0x14496e&&'removeFormat'==_0x14496e['commandName']?{'type':'format','content':At(_0x2dac1f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x54c126{['afterInit'](){const _0x3f2e6a=this['editor'];if(!_0x3f2e6a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x55fd08=_0x3f2e6a['plugins']['get']('TrackChangesEditing');_0x55fd08['enableCommand']('goToPreviousRestrictedEditingException'),_0x55fd08['enableCommand']('goToNextRestrictedEditingException');const _0x429008=_0x3f2e6a['plugins']['get']('RestrictedEditingModeEditing');_0x429008['enableCommand']('trackChanges'),_0x429008['enableCommand']('acceptSuggestion'),_0x429008['enableCommand']('discardSuggestion'),_0x429008['enableCommand']('acceptAllSuggestions'),_0x429008['enableCommand']('discardAllSuggestions'),_0x429008['enableCommand']('acceptSelectedSuggestions'),_0x429008['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x54c126{['afterInit'](){const _0x4f6cc3=this['editor'];if(!_0x4f6cc3['plugins']['has']('ShiftEnter'))return;const _0x80cf41=_0x4f6cc3['plugins']['get']('TrackChangesEditing');_0x80cf41['enableCommand']('shiftEnter'),_0x80cf41['descriptionFactory']['registerElementLabel']('softBreak',_0x550eea=>At(_0x4f6cc3['locale'],'ELEMENT_LINE_BREAK',_0x550eea));}}function ke(_0x55d15b,_0x46c25e,_0x47b532){const _0x30f8aa=[];for(const _0xcf4ab8 of _0x46c25e['getItems']())_0xcf4ab8['hasAttribute'](_0x55d15b)&&_0x30f8aa['push'](_0x47b532['createRangeOn'](_0xcf4ab8));return _0x30f8aa;}class Ce extends _0x54c126{['afterInit'](){const _0xd03e9d=this['editor'],_0x321113=_0xd03e9d['plugins']['get']('TrackChangesEditing');_0xd03e9d['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x321113['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2c6e37=this['editor'],_0x591597=_0x2c6e37['model'],_0x4941d0=_0x2c6e37['locale'],_0x2b00e6=_0x2c6e37['plugins']['get']('TrackChangesEditing'),_0x22c380='restrictedEditingException',_0x52278e=_0x2c6e37['commands']['get'](_0x22c380);_0x2b00e6['enableCommand'](_0x22c380,(_0x4b8dbd,_0x3315c8={})=>{const _0x402603=_0x591597['document']['selection'];if(_0x402603['isCollapsed'])return void _0x4b8dbd(_0x3315c8);const _0x30ff98=void 0x0!==_0x3315c8['forceValue']?_0x3315c8['forceValue']:!_0x52278e['value'];_0x591597['change'](()=>{const _0x2d357c=Array['from'](_0x402603['getRanges']());for(const _0x358f7a of _0x2d357c){const _0x8a6303=_0x30ff98?[_0x358f7a]:ke(_0x22c380,_0x358f7a,_0x591597);for(const _0x168f2b of _0x8a6303)_0x2b00e6['markInlineFormat'](_0x168f2b,{'commandName':_0x22c380,'commandParams':[{'forceValue':_0x30ff98}]});}});}),_0x2b00e6['descriptionFactory']['registerDescriptionCallback'](_0x93006b=>{if('formatBlock'!=_0x93006b['type']&&'formatInline'!=_0x93006b['type'])return;const {data:_0x457145}=_0x93006b;return _0x457145&&_0x457145['commandName']==_0x22c380?_0x457145['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4941d0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x4941d0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x35286b=this['editor'],_0x26c10d=_0x35286b['locale'],_0x2a8cb8=_0x35286b['plugins']['get']('TrackChangesEditing'),_0x53dcdb='restrictedEditingExceptionBlock',_0xaee798=this['editor']['commands']['get'](_0x53dcdb);_0x2a8cb8['enableCommand'](_0x53dcdb,(_0x13b239,_0x1b4763={})=>{const _0x4b9b09=this['editor']['model']['document']['selection'],_0x37690d=_0x1b4763&&void 0x0!==_0x1b4763['forceValue']?_0x1b4763['forceValue']:!_0xaee798['value'];let _0x201c91=[];if(_0x37690d){const _0x570c56=Array['from'](_0x4b9b09['getSelectedBlocks']())['filter'](_0x500ca0=>function(_0x5bcc3e){return!!_0x5bcc3e['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x500ca0)||function(_0x4fa885,_0x511432){const _0x1bab02=_0x511432['createContext'](_0x4fa885['parent']);if(!_0x511432['checkChild'](_0x1bab02,'restrictedEditingException'))return!0x1;if(!_0x511432['checkChild'](_0x1bab02['push']('restrictedEditingException'),_0x4fa885))return!0x1;return!0x0;}(_0x500ca0,this['editor']['model']['schema']));_0x201c91=Tt(_0x570c56,_0x35286b['model']);}else{const _0x4ed938=Array['from'](_0x4b9b09['getSelectedBlocks']())['map'](_0x2070e8=>function(_0x40a6cd){let _0x358c93=_0x40a6cd;for(;_0x358c93['parent'];){if('restrictedEditingException'==_0x358c93['parent']['name'])return _0x358c93;_0x358c93=_0x358c93['parent'];}return null;}(_0x2070e8))['filter'](_0x4a8894=>!!_0x4a8894);_0x201c91=Tt(_0x4ed938,_0x35286b['model']);}_0x35286b['model']['change'](()=>{for(const _0x32a1cd of _0x201c91)_0x2a8cb8['markBlockFormat'](_0x32a1cd,{'commandName':_0x53dcdb,'commandParams':[{'forceValue':_0x37690d}]});});}),_0x2a8cb8['descriptionFactory']['registerDescriptionCallback'](_0x2ae055=>{const {data:_0x27d53f}=_0x2ae055;if(_0x27d53f&&_0x27d53f['commandName']==_0x53dcdb)return _0x27d53f['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x26c10d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x26c10d,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x54c126{['afterInit'](){const _0x365e40=this['editor'];if(!_0x365e40['plugins']['has']('Style')||!_0x365e40['plugins']['has']('DataSchema'))return;const _0x4a8c66=_0x365e40['plugins']['get']('TrackChangesEditing'),_0x85075=_0x365e40['locale'],_0x464fed=_0x365e40['config']['get']('style')||{},_0x1697c0=_0x365e40['plugins']['get']('GeneralHtmlSupport'),_0x13a6ce=_0x365e40['plugins']['get']('StyleUtils')['normalizeConfig'](_0x365e40['plugins']['get']('DataSchema'),_0x464fed['definitions']);_0x4a8c66['enableDefaultAttributesIntegration']('style');const _0x45481b=new Set();for(const _0x245a6d of _0x13a6ce['block']){const _0x16d748=_0x1697c0['getGhsAttributeNameForElement'](_0x245a6d['element']);_0x45481b['add'](_0x16d748);}const _0x33ed00=new Set();for(const _0x556a2d of _0x13a6ce['inline']){const _0x3f5c32=_0x1697c0['getGhsAttributeNameForElement'](_0x556a2d['element']);_0x33ed00['add'](_0x3f5c32);for(const _0x1430f5 of _0x556a2d['ghsAttributes'])_0x33ed00['add'](_0x1430f5);}for(const _0x5b6203 of _0x45481b)_0x4a8c66['descriptionFactory']['registerAttributeLabel'](_0x5b6203,At(_0x85075,'FORMAT_STYLE'));for(const _0x195623 of _0x33ed00)_0x4a8c66['descriptionFactory']['registerAttributeLabel'](_0x195623,At(_0x85075,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a219c=this['editor'],_0x29f45d=_0x5a219c['locale'];_0x5a219c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10a12f=>{if('formatBlock'!=_0x10a12f['type']&&'formatInline'!=_0x10a12f['type'])return;const {data:_0x48d9ea}=_0x10a12f;return _0x48d9ea&&'style'===_0x48d9ea['commandName']?_0x48d9ea['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x29f45d,'*Set\x20format:*\x20%0',_0x48d9ea['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x29f45d,'*Remove\x20format:*\x20%0',_0x48d9ea['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x54c126{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3447d5){super(_0x3447d5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x473692=this['editor'],_0x206e79=_0x473692['model']['document']['selection'];if(!_0x473692['plugins']['has']('TableEditing'))return;const _0x596864=_0x473692['locale'],_0x3072b8=_0x473692['plugins']['get']('TrackChangesEditing'),_0x36931b=_0x473692['plugins']['get']('TableUtils');_0x3072b8['descriptionFactory']['registerElementLabel']('table',_0xb15f77=>At(_0x596864,'ELEMENT_TABLE',_0xb15f77)),this['_setupColumnsRowsFixing'](),_0x3072b8['enableCommand']('insertTable'),_0x3072b8['enableCommand']('selectTableRow'),_0x3072b8['enableCommand']('selectTableColumn');for(const _0x230ff7 of['insertTableRowAbove','insertTableRowBelow']){const _0xbc6e4e=_0x473692['commands']['get'](_0x230ff7);_0x3072b8['enableCommand'](_0x230ff7,_0x5ee397=>{_0x473692['model']['change'](_0x136a41=>{_0x5ee397();const _0x516537='above'===_0xbc6e4e['order'],_0x20e47d=_0x36931b['getSelectionAffectedTableCells'](_0x206e79),_0x3aab4c=_0x36931b['getRowIndexes'](_0x20e47d),_0x50c04f=_0x516537?_0x3aab4c['first']-0x1:_0x3aab4c['last']+0x1,_0x12180f=_0x20e47d[0x0]['findAncestor']('table'),_0x2bde7b=_0x36931b['createTableWalker'](_0x12180f,{'startRow':_0x50c04f,'endRow':_0x50c04f}),_0x355b30=Array['from'](_0x2bde7b)['map'](_0x3411b0=>_0x136a41['createRangeOn'](_0x3411b0['cell']));_0x3072b8['markMultiRangeInsertion'](_0x355b30,'tableRow');});});}for(const _0x5e3ee3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c676e=_0x473692['commands']['get'](_0x5e3ee3);_0x3072b8['enableCommand'](_0x5e3ee3,_0x2d442c=>{_0x473692['model']['change'](_0x27ff80=>{_0x2d442c();const _0x50cf95='left'===_0x3c676e['order'],_0x1c911a=_0x36931b['getSelectionAffectedTableCells'](_0x206e79),_0x4af9db=_0x36931b['getColumnIndexes'](_0x1c911a),_0xf8b16f=_0x50cf95?_0x4af9db['first']-0x1:_0x4af9db['last']+0x1,_0x5f0d90=_0x1c911a[0x0]['findAncestor']('table'),_0x349462=_0x36931b['createTableWalker'](_0x5f0d90,{'startRow':0x0,'column':_0xf8b16f,'includeAllSlots':!0x1}),_0x16e78a=Array['from'](_0x349462)['map'](_0x43961e=>_0x27ff80['createRangeOn'](_0x43961e['cell']));_0x3072b8['markMultiRangeInsertion'](_0x16e78a,'tableColumn');});});}for(const _0x56b0f0 of['removeTableRow','removeTableColumn']){const _0x5de28b=_0x56b0f0['substr'](0xb),_0x54e99f=_0x5de28b['toLowerCase'](),_0x33ec79=_0x54e99f['substr'](0x0,0x3)+'span',_0x57d217='table'+_0x5de28b,_0x282ce9='min'+_0x5de28b,_0x5d97d2='max'+_0x5de28b;_0x3072b8['enableCommand'](_0x56b0f0,()=>{_0x473692['model']['change'](_0x15ada5=>{const _0x52cfa3=_0x36931b['getSelectionAffectedTableCells'](_0x206e79),_0x170725=_0x52cfa3[0x0]['findAncestor']('table');let _0x54d244;if('removeTableRow'==_0x56b0f0){const _0x590369=_0x36931b['getRowIndexes'](_0x52cfa3);_0x54d244={'startRow':_0x590369['first'],'endRow':_0x590369['last'],'includeAllSlots':!0x0};}else{const _0x584135=_0x36931b['getColumnIndexes'](_0x52cfa3);_0x54d244={'startColumn':_0x584135['first'],'endColumn':_0x584135['last'],'includeAllSlots':!0x0};}const _0x17a09e=_0x36931b['createTableWalker'](_0x170725,_0x54d244),_0x287b74=Array['from'](_0x17a09e)['map'](({cell:_0x166b2f})=>_0x166b2f),_0x4b292a=Re(_0x287b74['filter'](_0x42b603=>_0x42b603['hasAttribute'](_0x33ec79))),_0x3a1835=Re(_0x287b74['filter'](_0x56b646=>!_0x56b646['hasAttribute'](_0x33ec79)))['map'](_0xec87dd=>_0x15ada5['createRangeOn'](_0xec87dd)),_0x3ae319=_0x3072b8['markMultiRangeDeletion'](_0x3a1835,_0x57d217);if(_0x3ae319&&('tableRow'==_0x3ae319['subType']||'tableColumn'==_0x3ae319['subType'])){const _0x4272f3=this['_getSuggestionCoords'](_0x3ae319);for(const _0x2464ff of _0x4b292a){const _0x15e2b0=_0x15ada5['createRangeOn'](_0x2464ff),_0x2ba2bb=_0x36931b['getCellLocation'](_0x2464ff),_0x3e58fd=_0x2464ff['getAttribute'](_0x33ec79)-0x1,_0x500ea9=_0x4272f3[_0x282ce9],_0x176d3c=_0x4272f3[_0x5d97d2];_0x500ea9<=_0x2ba2bb[_0x54e99f]&&_0x2ba2bb[_0x54e99f]+_0x3e58fd<=_0x176d3c&&_0x3ae319['addRange'](_0x15e2b0);}}});});}function _0x495354(_0x58ccd7){const _0x3987a0=Array['from'](_0x206e79['getRanges']())['map'](_0x5bab1a=>_0x121353['fromRange'](_0x5bab1a));_0x473692['model']['change'](_0x468440=>{const _0x13f3fa=_0x468440['batch'];_0x58ccd7=_0x58ccd7['filter'](_0x4f3922=>'$graveyard'!=_0x4f3922['root']['rootName']),_0x468440['setSelection'](_0x58ccd7),_0x473692['commands']['get']('removeTableRow')['refresh'](),_0x473692['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x473692['model']['enqueueChange'](()=>{_0x473692['model']['enqueueChange'](_0x13f3fa,_0x6fdb31=>{const _0xd8b7db=_0x3987a0['filter'](_0x104d95=>'$graveyard'!=_0x104d95['root']['rootName']);_0xd8b7db['length']>0x0&&_0x6fdb31['setSelection'](_0xd8b7db);for(const _0x70f068 of _0x3987a0)_0x70f068['detach']();});});});}function _0x39dc3a(_0x588ec7){_0x473692['model']['change'](_0xe67c29=>{const _0x40cb0e=Array['from'](_0x206e79['getRanges']())['map'](_0x4026c2=>_0x121353['fromRange'](_0x4026c2)),_0x516f88=[];for(const _0x27e9b6 of _0x588ec7)for(const _0x420e63 of _0x27e9b6['getItems']({'shallow':!0x0}))_0x516f88['push'](_0x420e63);for(const _0x2418e0 of _0x516f88)'$graveyard'!=_0x2418e0['root']['rootName']&&(_0xe67c29['setSelection'](_0xe67c29['createPositionAt'](_0x2418e0,0x0)),_0x473692['commands']['get']('removeTableColumn')['refresh'](),_0x473692['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4ef78e=_0x40cb0e['filter'](_0x16f1dd=>'$graveyard'!=_0x16f1dd['root']['rootName']);_0x4ef78e['length']>0x0&&_0xe67c29['setSelection'](_0x4ef78e);for(const _0x3f7e71 of _0x40cb0e)_0x3f7e71['detach']();});}function _0x1217a8(_0x1c88fd,_0x2b5b99){return _0x2b5b99['every'](_0x484c4b=>_0x1c88fd['some'](_0x2f7f36=>_0x2f7f36['end']['isEqual'](_0x484c4b['start'])||_0x484c4b['end']['isEqual'](_0x2f7f36['start'])));}function _0x47ccab(_0x2dfa27,_0x4bd404){return!_0x2dfa27['some'](_0x52d2e0=>_0x4bd404['some'](_0x202dc9=>_0x52d2e0['isIntersecting'](_0x202dc9)))&&_0x2dfa27['some'](_0x38d431=>_0x4bd404['some'](_0x1a60be=>_0x38d431['end']['isTouching'](_0x1a60be['start'])));}_0x3072b8['descriptionFactory']['registerDescriptionCallback'](_0x367944=>{if('insertion'!=_0x367944['type']&&'deletion'!=_0x367944['type'])return;const _0x480264=_0x367944['getContainedElement']();if(null!=_0x480264&&_0x480264['is']('element','table')){if('insertion'==_0x367944['type']){const _0x28c61e=_0x367944['getItems']()['filter'](_0x451e5b=>_0x451e5b['is']('$textProxy'))['map'](_0x110ece=>_0x110ece['data']);if(_0x28c61e['length'])return{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28c61e['join']('\x20')+'\x22'))};}if('deletion'==_0x367944['type']){const _0x59b5d9=_0x367944['getItems']()['filter'](_0x373f98=>_0x373f98['is']('$textProxy'))['map'](_0xe7e53a=>_0xe7e53a['data']);if(_0x59b5d9['length'])return{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x59b5d9['join']('\x20')+'\x22'))};}}}),_0x3072b8['descriptionFactory']['registerDescriptionCallback'](_0x447cf5=>{if('tableRow'==_0x447cf5['subType']){const _0x25954f=_0x447cf5['getItems']()['filter'](_0x1c3299=>_0x1c3299['is']('$textProxy'))['map'](_0x4d09da=>_0x4d09da['data']),_0x4a2e94=this['_getSuggestionCoords'](_0x447cf5),_0xb1c243=_0x4a2e94['maxRow']-_0x4a2e94['minRow']+0x1;if('insertion'==_0x447cf5['type'])return _0x25954f['length']?{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb1c243,'\x22'+_0x25954f['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW',_0xb1c243))};if('deletion'==_0x447cf5['type'])return _0x25954f['length']?{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb1c243,'\x22'+_0x25954f['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW',_0xb1c243))};}if('tableColumn'==_0x447cf5['subType']){const _0x425472=_0x447cf5['getItems']()['filter'](_0x3060bd=>_0x3060bd['is']('$textProxy'))['map'](_0x3f62f8=>_0x3f62f8['data']),_0x39220f=this['_getSuggestionCoords'](_0x447cf5),_0x27af07=_0x39220f['maxColumn']-_0x39220f['minColumn']+0x1;if('insertion'==_0x447cf5['type'])return _0x425472['length']?{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27af07,'\x22'+_0x425472['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN',_0x27af07))};if('deletion'==_0x447cf5['type'])return _0x425472['length']?{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27af07,'\x22'+_0x425472['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN',_0x27af07))};}}),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x495354),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x495354),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x39dc3a),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x39dc3a),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1217a8),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1217a8),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47ccab),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47ccab);}['_acceptFormatSuggestionCallbackFactory'](){const _0x45b040=this['editor'],_0x20bad8=_0x45b040['model']['document']['selection'];return(_0x46892d,_0x3dfbed)=>{_0x45b040['model']['change'](_0x3aab15=>{const {commandName:_0x32b3ac,commandParams:_0x1524a6}=_0x3dfbed;let _0x41a2e5=_0x46892d[0x0]['end']['nodeBefore'];_0x1524a6&&_0x1524a6[0x0]&&!0x1===_0x1524a6[0x0]['forceValue']&&(_0x41a2e5=_0x46892d[0x0]['start']['nodeAfter']);const _0x289242=_0x3aab15['createRangeIn'](_0x41a2e5);if('$graveyard'==_0x289242['root']['rootName'])return;const _0x38fd43=Array['from'](_0x20bad8['getRanges']())['map'](_0x90dce7=>_0x121353['fromRange'](_0x90dce7));_0x3aab15['setSelection'](_0x289242),_0x45b040['commands']['get'](_0x32b3ac)['refresh'](),_0x1524a6['push']({'forceDefaultExecution':!0x0}),_0x45b040['execute'](_0x32b3ac,..._0x1524a6);const _0x23c081=_0x38fd43['filter'](_0x3a5ba2=>'$graveyard'!=_0x3a5ba2['root']['rootName']);_0x23c081['length']>0x0&&_0x3aab15['setSelection'](_0x23c081);for(const _0x48c359 of _0x38fd43)_0x48c359['detach']();});};}['_getCoordsForCells'](_0x103349){const _0x27fddd=this['editor']['plugins']['get']('TableUtils');let _0x21ea27=Number['MAX_SAFE_INTEGER'],_0x83e7e=Number['MIN_SAFE_INTEGER'],_0x27cf4b=Number['MAX_SAFE_INTEGER'],_0x27d867=Number['MIN_SAFE_INTEGER'];for(const _0x21d1ee of _0x103349){if('$graveyard'==_0x21d1ee['root']['rootName'])continue;const {row:_0x5694cd,column:_0x585f54}=_0x27fddd['getCellLocation'](_0x21d1ee),_0x407522=_0x21d1ee['hasAttribute']('rowspan')?_0x21d1ee['getAttribute']('rowspan')-0x1:0x0,_0xbc7068=_0x21d1ee['hasAttribute']('colspan')?_0x21d1ee['getAttribute']('colspan')-0x1:0x0;_0x21ea27=_0x5694cd<_0x21ea27?_0x5694cd:_0x21ea27,_0x83e7e=_0x5694cd+_0x407522>_0x83e7e?_0x5694cd+_0x407522:_0x83e7e,_0x27cf4b=_0x585f54<_0x27cf4b?_0x585f54:_0x27cf4b,_0x27d867=_0x585f54+_0xbc7068>_0x27d867?_0x585f54+_0xbc7068:_0x27d867;}return{'minRow':_0x21ea27,'maxRow':_0x83e7e,'minColumn':_0x27cf4b,'maxColumn':_0x27d867};}['_setupColumnsRowsFixing'](){const _0x1e3692=this['editor'],_0x49c480=_0x1e3692['plugins']['get']('TrackChangesEditing'),_0x3c9280=_0x1e3692['plugins']['get']('TableUtils');_0x1e3692['model']['document']['on']('change:data',()=>{const _0x2843c0=Array['from'](_0x1e3692['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d1f1,data:_0x16960a}of _0x2843c0){const {group:_0x440dbf,id:_0x41b2a6,subType:_0x3b9a63}=_0x39dc22(_0x39d1f1);if('suggestion'!=_0x440dbf)continue;if(null!=_0x16960a['oldRange'])continue;const _0x4ea1d1=_0x49c480['getSuggestion'](_0x41b2a6);this['_tablePostFixingSubtypes']['includes'](_0x3b9a63)&&this['_tableSuggestions']['add'](_0x4ea1d1);}},{'priority':'low'});const _0x1d4674=(_0x43081a,_0x3db2bb)=>{let _0x370ebf=!0x1;const _0x35065f=_0x3db2bb['createRangeOn'](_0x43081a),_0xf21c5e=_0x43081a['findAncestor']('table'),_0x2455b0=_0x3c9280['getCellLocation'](_0x43081a);for(const _0x30bde5 of this['_tableSuggestions']){const _0x6ab6cd=_0x30bde5['subType'],_0x2ea46f=_0x6ab6cd['startsWith']('tablePaste'),_0xfa1dad=_0x6ab6cd['substr'](_0x2ea46f?0xa:0x5),_0x55b7ff=_0xfa1dad['toLowerCase'](),_0x3e6cbf=_0x55b7ff['substr'](0x0,0x3)+'span',_0x5a6c39='min'+_0xfa1dad,_0x47c30a='max'+_0xfa1dad;if(!_0x30bde5['isInContent'])continue;if(_0xf21c5e!=_0x30bde5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30bde5['isIntersectingWithRange'](_0x35065f))continue;const _0x37c06e=_0x43081a['hasAttribute'](_0x3e6cbf)?_0x43081a['getAttribute'](_0x3e6cbf)-0x1:0x0,_0xbfb68d=this['_getSuggestionCoords'](_0x30bde5),_0x4639ba=_0xbfb68d[_0x5a6c39],_0x1c4572=_0xbfb68d[_0x47c30a];_0x4639ba<=_0x2455b0[_0x55b7ff]&&_0x2455b0[_0x55b7ff]+_0x37c06e<=_0x1c4572&&(_0x30bde5['addRange'](_0x35065f),_0x370ebf=!0x0);}return _0x370ebf;};_0x1e3692['model']['document']['registerPostFixer'](_0x1eb715=>{let _0x2b9789=!0x1;for(const _0xdb02e9 of _0x1e3692['model']['document']['differ']['getChanges']())if('insert'==_0xdb02e9['type']){if('tableRow'==_0xdb02e9['name']){for(const _0x579cad of _0xdb02e9['position']['nodeAfter']['getChildren']())_0x2b9789=_0x2b9789||_0x1d4674(_0x579cad,_0x1eb715);}else'tableCell'==_0xdb02e9['name']&&(_0x2b9789=_0x2b9789||_0x1d4674(_0xdb02e9['position']['nodeAfter'],_0x1eb715));}return _0x2b9789;});}['_getSuggestionCoords'](_0x30d44b){return this['_getCoordsForCells'](_0x30d44b['getRanges']()['map'](_0x11c6be=>_0x11c6be['start']['nodeAfter']));}}function Re(_0x575b3a){return Array['from'](new Set(_0x575b3a)['values']());}class Se extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x44113f=this['editor'],_0x47c6cd=_0x44113f['model']['document']['selection'],_0x3e149b=_0x44113f['locale'];if(!_0x44113f['plugins']['has']('TableEditing'))return;const _0x395ef3=_0x44113f['plugins']['get']('TrackChangesEditing'),_0xce18d9=_0x44113f['plugins']['get']('TableUtils'),_0x558761=_0x44113f['plugins']['get'](Ne);_0x558761['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x395ef3['enableCommand']('mergeTableCells',()=>{const _0x250e18=_0xce18d9['getSelectionAffectedTableCells'](_0x44113f['model']['document']['selection']);_0x44113f['model']['change'](()=>{_0x395ef3['markMultiRangeBlockFormat'](_0x250e18,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x44113f['commands']['get']('mergeTableCells')['on']('execute',(_0x279a9,_0x2a2175)=>{_0x44113f['commands']['get']('trackChanges')['value']&&(_0x2a2175['length']>0x0&&_0x2a2175[_0x2a2175['length']-0x1]&&_0x2a2175[_0x2a2175['length']-0x1]['forceDefaultExecution']||_0x395ef3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x279a9['stop']());},{'priority':'highest'});for(const _0x188169 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x38bb8d=_0x44113f['commands']['get'](_0x188169);_0x395ef3['enableCommand'](_0x188169,()=>{const _0x233bef=_0x44113f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x488738=>_0x488738['is']('element','tableCell')),_0x570b4d=_0x38bb8d['value'];_0x44113f['model']['change'](()=>{_0x395ef3['markMultiRangeBlockFormat']([_0x233bef,_0x570b4d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x474396 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14eac3=_0x44113f['commands']['get'](_0x474396);_0x395ef3['enableCommand'](_0x474396,()=>{const _0x95a65f=_0xce18d9['getSelectionAffectedTableCells'](_0x44113f['model']['document']['selection'])[0x0],_0xcf13ea=_0x95a65f['findAncestor']('table'),{column:_0x51df18,row:_0x148c29}=_0xce18d9['getCellLocation'](_0x95a65f);let _0x2a04da=[];if('horizontally'==_0x14eac3['direction']){const _0x55b51c=_0xce18d9['createTableWalker'](_0xcf13ea,{'startRow':_0x148c29,'endRow':_0x148c29,'includeAllSlots':!0x0});_0x2a04da=Array['from'](_0x55b51c)['map'](_0x5559de=>_0x5559de['cell']);}else{const _0x3276a1=_0xce18d9['createTableWalker'](_0xcf13ea,{'column':_0x51df18,'includeAllSlots':!0x0});_0x2a04da=Array['from'](_0x3276a1)['map'](_0x3e280e=>_0x3e280e['cell']);}_0x44113f['model']['change'](_0x1d5573=>{_0x395ef3['markBlockFormat'](_0x1d5573['createRangeOn'](_0x95a65f),{'commandName':_0x474396,'commandParams':[]},_0x2a04da,_0x474396);});});}_0x395ef3['descriptionFactory']['registerDescriptionCallback'](_0x4e7283=>{if('formatBlock'!=_0x4e7283['type']&&'formatInline'!=_0x4e7283['type'])return;const {data:_0x6fdb89}=_0x4e7283;return _0x6fdb89&&'mergeTableCells'==_0x6fdb89['commandName']?{'type':'format','content':At(_0x3e149b,'*Merge\x20cells*')}:void 0x0;}),_0x395ef3['descriptionFactory']['registerDescriptionCallback'](_0x255ba0=>{if('formatBlock'!=_0x255ba0['type']&&'formatInline'!=_0x255ba0['type'])return;const {data:_0x36883f}=_0x255ba0;return _0x36883f?'splitTableCellVertically'==_0x36883f['commandName']?{'type':'format','content':At(_0x3e149b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36883f['commandName']?{'type':'format','content':At(_0x3e149b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa093a4=_0x558761['_acceptFormatSuggestionCallbackFactory']();for(const _0x18e428 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x395ef3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18e428,'accept',_0xa093a4);for(const _0x1c9419 of['splitTableCellVertically','splitTableCellHorizontally'])_0x395ef3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c9419,'accept',_0xa093a4);_0x395ef3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xddfd2d=>{_0x44113f['model']['change'](_0x60b940=>{const _0x8b70db=Array['from'](_0x47c6cd['getRanges']())['map'](_0x2e74b1=>_0x121353['fromRange'](_0x2e74b1));_0x60b940['setSelection'](_0xddfd2d),_0x44113f['commands']['get']('mergeTableCells')['refresh'](),_0x44113f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x49431b=_0x8b70db['filter'](_0x41e072=>'$graveyard'!=_0x41e072['root']['rootName']);_0x49431b['length']>0x0&&_0x60b940['setSelection'](_0x49431b);for(const _0x8f1972 of _0x8b70db)_0x8f1972['detach']();});});for(const _0x3584a0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4e3504=_0x44113f['commands']['get'](_0x3584a0);_0x4e3504['on']('set:isEnabled',(_0x15747b,_0xef41f3,_0xcedc3e)=>{if(_0xcedc3e){const _0x24b7c7=_0x44113f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb86373=>_0xb86373['is']('element','tableCell'));this['_areMergableCells'](_0x4e3504['value'],_0x24b7c7)||(_0x15747b['return']=!0x1,_0x15747b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x39296a=this['editor']['commands']['get']('mergeTableCells'),_0x21a4d4=this['editor']['plugins']['get']('TableUtils');if(!_0x39296a['isEnabled'])return!0x1;const _0x4cc854=_0x21a4d4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33952b of _0x4cc854)for(const _0x3c4a82 of _0x4cc854)if(_0x33952b!=_0x3c4a82&&!this['_areMergableCells'](_0x33952b,_0x3c4a82))return!0x1;return!0x0;}['_areMergableCells'](_0x2fbdf8,_0x100685){const _0x3d413d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481098=this['editor']['model']['createRangeOn'](_0x2fbdf8),_0x514b3d=this['editor']['model']['createRangeOn'](_0x100685),_0x375be1=new Set(),_0x2a0f3e=new Set();for(const _0x1a5b1a of _0x3d413d['getSuggestions']())if(('insertion'==_0x1a5b1a['type']||'deletion'==_0x1a5b1a['type']||'mergeTableCells'==_0x1a5b1a['subType'])&&_0x1a5b1a['isInContent']){for(const _0x456e09 of _0x1a5b1a['getRanges']())_0x456e09['containsRange'](_0x481098,!0x0)&&_0x375be1['add'](_0x1a5b1a['type']+':'+_0x1a5b1a['author']['id']),_0x456e09['containsRange'](_0x514b3d,!0x0)&&_0x2a0f3e['add'](_0x1a5b1a['type']+':'+_0x1a5b1a['author']['id']);}if(_0x375be1['size']!=_0x2a0f3e['size'])return!0x1;for(const _0x40a63b of _0x375be1)if(!_0x2a0f3e['has'](_0x40a63b))return!0x1;return!0x0;}}class Me extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x419ba7=this['editor'];if(!_0x419ba7['plugins']['has']('TableEditing'))return;const _0x193d20=_0x419ba7['locale'],_0x977bdd=_0x419ba7['plugins']['get']('TrackChangesEditing');_0x977bdd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x977bdd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x977bdd['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x193d20,'FORMAT_HEADER_ROW')),_0x977bdd['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x193d20,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1faf13=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f87aa=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x1faf13['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f87aa),_0x1faf13['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f87aa),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5807a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5921ad=this['editor']['plugins']['get']('TableUtils');function _0x2eaf26({showActiveMarker:_0x28b0bc=!0x0,setDataAttribute:_0x52519b=!0x0}={}){return(_0x212354,_0x1d755b,_0x28a9b2)=>{const {type:_0x5f1cf7,id:_0x2f9245}=_0x39dc22(_0x1d755b['markerName']);if(!_0x5807a5['hasSuggestion'](_0x2f9245))return;const _0x4e656b=_0x5807a5['getSuggestion'](_0x2f9245),_0x3df5ca=_0x4e656b['data'];if('formatBlock'!=_0x4e656b['type']||!_0x3df5ca||'setTableColumnHeader'!=_0x3df5ca['commandName'])return;if(_0x1d755b['item'])return void _0x212354['stop']();if(!_0x28a9b2['consumable']['consume'](_0x1d755b['markerRange'],_0x212354['name']))return;const _0x41dcb5=_0x1d755b['markerRange']['start']['nodeAfter'],_0x435e2c=_0x1d755b['markerRange']['end']['nodeBefore'],_0x183d2d=_0x41dcb5['parent']['parent'],{column:_0x5e99ff}=_0x5921ad['getCellLocation'](_0x41dcb5),{column:_0x2aa438}=_0x5921ad['getCellLocation'](_0x435e2c);for(let _0x3ce1a6=_0x5e99ff;_0x3ce1a6<=_0x2aa438;_0x3ce1a6++){const _0xf6dc54=_0x5921ad['createTableWalker'](_0x183d2d,{'column':_0x3ce1a6,'includeAllSlots':!0x1});for(const _0x547d6e of _0xf6dc54){const _0x243b9e=_0x547d6e['cell'],_0x2df7f1=_0x28a9b2['mapper']['toViewElement'](_0x243b9e);_0x28a9b2['writer']['addClass']('ck-suggestion-marker-'+_0x5f1cf7,_0x2df7f1),_0x52519b&&_0x28a9b2['writer']['setAttribute']('data-suggestion',_0x2f9245,_0x2df7f1),_0x28a9b2['mapper']['bindElementToMarker'](_0x2df7f1,_0x1d755b['markerName']),_0x28b0bc&&(_0x5807a5['activeMarkers']['includes'](_0x1d755b['markerName'])?_0x28a9b2['writer']['addClass']('ck-suggestion-marker--active',_0x2df7f1):_0x28a9b2['writer']['removeClass']('ck-suggestion-marker--active',_0x2df7f1));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2eaf26(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x98b1f6,_0x50134c,_0x41de18)=>{_0x41de18['options']['showSuggestionHighlights']&&_0x2eaf26({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x98b1f6,_0x50134c,_0x41de18);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c4ea2,_0x1e122c,_0x44d9e2)=>{const {type:_0x598852,id:_0xa25663}=_0x39dc22(_0x1e122c['markerName']);if(!_0x5807a5['hasSuggestion'](_0xa25663))return;const _0x4d5538=_0x5807a5['getSuggestion'](_0xa25663),_0x1dc951=_0x4d5538['data'];if('formatBlock'!=_0x4d5538['type']||!_0x1dc951||'setTableColumnHeader'!=_0x1dc951['commandName'])return;const _0x960f8b=_0x44d9e2['mapper']['markerNameToElements'](_0x1e122c['markerName']);if(_0x960f8b){for(const _0x39175e of _0x960f8b)_0x44d9e2['writer']['removeClass']('ck-suggestion-marker-'+_0x598852,_0x39175e),_0x44d9e2['writer']['removeClass']('ck-suggestion-marker--active',_0x39175e),_0x44d9e2['writer']['removeAttribute']('data-suggestion',_0x39175e),_0x44d9e2['mapper']['unbindElementFromMarkerName'](_0x39175e,_0x1e122c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x28412d=this['editor'],_0x22d984=_0x28412d['locale'];function _0x5aa507(_0x4cad06){return{'type':'format','content':At(_0x22d984,'*Format:*\x20%0',_0x4cad06)};}_0x28412d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e0090=>{if('formatBlock'!=_0x4e0090['type'])return;const {data:_0x201f6b}=_0x4e0090;if(_0x201f6b){if('setTableRowHeader'==_0x201f6b['commandName']){const _0x261bc3=_0x201f6b['commandParams'][0x0]['forceValue'];return _0x5aa507(At(_0x22d984,_0x261bc3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x201f6b['commandName']){const _0x590f98=_0x201f6b['commandParams'][0x0]['forceValue'];return _0x5aa507(At(_0x22d984,_0x590f98?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x5955e0=this['editor'];if(!_0x5955e0['plugins']['has']('TableEditing')||!_0x5955e0['config']['get']('table.enableFooters'))return;const _0x26c3b7=_0x5955e0['locale'],_0xfda8c8=_0x5955e0['plugins']['get']('TrackChangesEditing');_0xfda8c8['enableDefaultAttributesIntegration']('setTableFooterRow'),_0xfda8c8['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x26c3b7,'FORMAT_FOOTER_ROW'));}}class we extends _0x54c126{['afterInit'](){const _0x7aa115=this['editor'],_0x21dcad=_0x7aa115['locale'],_0x425574=_0x7aa115['plugins']['get']('TrackChangesEditing');function _0x3b58cd(_0xe54f3a){return{'type':'format','content':''+At(_0x21dcad,'*Set\x20table\x20type:*\x20%0',_0xe54f3a)};}_0x7aa115['plugins']['has']('TableLayout')&&(_0x425574['enableCommand']('insertTableLayout'),_0x425574['enableDefaultAttributesIntegration']('tableType'),_0x425574['descriptionFactory']['registerElementLabel'](_0x912548=>_0x912548['is']('element','table')&&'layout'===_0x912548['getAttribute']('tableType'),_0x12d612=>At(_0x21dcad,'ELEMENT_LAYOUT_TABLE',_0x12d612)),_0x425574['descriptionFactory']['registerDescriptionCallback'](_0x549bf0=>{const {data:_0x138282}=_0x549bf0;if(_0x138282&&'tableType'==_0x138282['key'])switch(_0x138282['newValue']){case'layout':return _0x3b58cd(At(_0x21dcad,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3b58cd(At(_0x21dcad,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x5130f4=>[_0x5130f4,null]));class De extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x2e617c=this['editor'];if(!_0x2e617c['plugins']['has']('TableClipboard'))return;const _0x300155=_0x2e617c['plugins']['get']('TrackChangesEditing'),_0x2c49e0=_0x2e617c['plugins']['get']('TableUtils'),_0x3ccdc5=_0x2e617c['plugins']['get'](Ne),_0x2e7b77=_0x2e617c['plugins']['get']('TableClipboard'),_0x5338f4=_0x2e617c['plugins']['get']('TableSelection'),_0x1fdbef=_0x2e617c['plugins']['get'](ut);_0x3ccdc5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2e617c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2e617c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x196ac2=null,_0x57c4a3=!0x1;_0x1fdbef['on']('contentInsertion',(_0xe72bfa,_0xcaee3a)=>{_0x57c4a3='paste'===_0xcaee3a['method'];}),_0x2e617c['model']['on']('insertContent',(_0x1778d3,_0x245486)=>{if(!_0x57c4a3&&null===_0x5338f4['getSelectedTableCells']())return;const [_0x44d482,_0x499e9f]=_0x245486,_0x4e660f=_0x245486[_0x245486['length']-0x1];_0x4e660f&&_0x4e660f['forceDefaultExecution']||_0x300155['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x38d6cf,_0x3b8052,_0x4d7317,_0x5f0385,_0x4ab6d4){if(_0x3b8052&&!_0x3b8052['is']('documentSelection'))return!0x1;const _0xe78660=_0x4ab6d4['getTableIfOnlyTableInContent'](_0x38d6cf,_0x4d7317);if(!_0xe78660||!xe(_0xe78660,void 0x0,_0x5f0385))return!0x1;const _0x482b74=_0x5f0385['getSelectionAffectedTableCells'](_0x4d7317['document']['selection']);if(!_0x482b74['length'])return!0x1;const _0x525b6d=_0x482b74[0x0]['findAncestor']('table'),_0x2a2550=_0x5f0385['getRowIndexes'](_0x482b74),_0x11afcc=_0x5f0385['getColumnIndexes'](_0x482b74),_0x5e4d6f={'startRow':_0x2a2550['first'],'endRow':_0x2a2550['last'],'startColumn':_0x11afcc['first'],'endColumn':_0x11afcc['last']};return 0x1==_0x482b74['length']&&(_0x5e4d6f['endRow']+=_0x5f0385['getRows'](_0xe78660)-0x1,_0x5e4d6f['endColumn']+=_0x5f0385['getColumns'](_0xe78660)-0x1),xe(_0x525b6d,_0x5e4d6f,_0x5f0385);}(_0x44d482,_0x499e9f,_0x2e617c['model'],_0x2c49e0,_0x2e7b77)&&(_0x1778d3['stop'](),_0x196ac2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e617c['model']['change'](()=>{_0x2e617c['model']['insertContent'](_0x245486[0x0],_0x245486[0x1],_0x245486[0x2],{'forceDefaultExecution':!0x0});const _0x53c89a=_0x171c64(),{rowInsertionRanges:_0x1882db,columnInsertionRanges:_0x22983d,insertionRanges:_0x18fbd8,deletionRanges:_0x22ea9d,cells:_0xf8b125}=_0x196ac2;_0x1882db['length']&&_0x300155['markMultiRangeInsertion'](_0x1882db,'tablePasteRow',{'tablePasteChainId':_0x53c89a}),_0x22983d['length']&&_0x300155['markMultiRangeInsertion'](_0x22983d,'tablePasteColumn',{'tablePasteChainId':_0x53c89a}),_0x18fbd8['length']&&(_0x300155['markMultiRangeInsertion'](_0x18fbd8,'tablePaste',{'tablePasteChainId':_0x53c89a,'skipNestingCheck':!0x0}),_0x18fbd8['forEach'](_0x43eb98=>_0x43eb98['detach']?.())),_0x22ea9d['length']&&(_0x300155['markMultiRangeDeletion'](_0x22ea9d,'tablePaste',{'tablePasteChainId':_0x53c89a,'skipNestingCheck':!0x0}),_0x22ea9d['forEach'](_0x49cc16=>_0x49cc16['detach']?.()));const _0x1681f9=_0x300155['markMultiRangeBlockFormat'](_0xf8b125['map'](({element:_0x17906c})=>_0x17906c),{'formatGroupId':_0x171c64()},[],'tablePasteCell',{'tablePasteChainId':_0x53c89a});if(_0x1681f9){const _0x4bd4d1=_0x1681f9['getMarkers'](),_0x1d0224=[];for(const {element:_0x56416e,attributes:_0x1469b6}of _0xf8b125){if(!_0x1469b6)continue;const _0x217352=_0x2e617c['model']['createRangeOn'](_0x56416e),_0x1d17f4=_0x4bd4d1['find'](_0x2451a3=>_0x2451a3['getRange']()['isEqual'](_0x217352));_0x1d17f4&&_0x1d0224['push']([_0x1d17f4['name'],_0x1469b6]);}_0x1d0224['length']&&_0x1681f9['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d0224));}_0x196ac2=null;}));},{'priority':_0x2ac962['high']+0xa}),_0x1fdbef['on']('contentInsertion',()=>{_0x57c4a3=!0x1;},{'priority':'lowest'}),_0x2e617c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x400a7f,_0x123ff6)=>{const [_0x4a8bcd,_0xff9b0e,,_0x439059]=_0x123ff6;if(!_0x196ac2)return;_0x400a7f['stop']();const _0x11cccd=_0x4a8bcd['cell'],_0x4d93b7=_0xff9b0e,_0x5b32e2=ve(_0x11cccd),_0x1b93b4=ve(_0x4d93b7);_0x400a7f['return']=_0x11cccd;let _0x12e125=null,_0x2afd4b=null;if(_0x1b93b4||_0x5b32e2){if(_0x5b32e2&&!_0x1b93b4){_0x439059['remove'](_0x11cccd['getChild'](0x0));for(const _0x9270c9 of Array['from'](_0x4d93b7['getChildren']()))_0x439059['insert'](_0x9270c9,_0x11cccd,'end');const _0x4dc703=_0x196ac2['rowInsertionIndexes']['includes'](_0x4a8bcd['row']),_0xdb7ec7=_0x196ac2['columnInsertionIndexes']['includes'](_0x4a8bcd['column']);_0x4dc703||_0xdb7ec7||(_0x12e125=_0x121353['fromRange'](_0x439059['createRangeIn'](_0x11cccd)));}else _0x1b93b4&&!_0x5b32e2&&(_0x2afd4b=_0x439059['createRangeIn'](_0x11cccd));}else{const _0x53dda8=_0x439059['createElement']('tableCellSuggestion'),_0x52dfff=_0x439059['createElement']('tableCellSuggestion');_0x439059['wrap'](_0x439059['createRangeIn'](_0x11cccd),_0x52dfff),_0x439059['insert'](_0x53dda8,_0x11cccd,0x0);for(const _0x5b1f28 of Array['from'](_0x4d93b7['getChildren']()))_0x439059['insert'](_0x5b1f28,_0x53dda8,'end');_0x12e125=_0x121353['fromRange'](_0x439059['createRangeOn'](_0x53dda8)),_0x2afd4b=_0x121353['fromRange'](_0x439059['createRangeOn'](_0x52dfff));}const _0x9bd144=Array['from'](_0x4d93b7['getAttributes']())['filter'](([_0x368ac4])=>Be['includes'](_0x368ac4));_0x196ac2['cells']['push']({'element':_0x11cccd,'attributes':_0x9bd144['length']?Object['fromEntries'](_0x9bd144):null}),_0x12e125&&_0x196ac2['insertionRanges']['push'](_0x12e125),_0x2afd4b&&_0x196ac2['deletionRanges']['push'](_0x2afd4b);},{'priority':'high'}),_0x2c49e0['on']('insertColumns',(_0x10b5c7,_0x3c1b54)=>{const [_0xd5400e,_0x167751={}]=_0x3c1b54;if(!_0x196ac2)return;const _0x3f0511=_0x167751['at']||0x0,_0x43706c=_0x167751['columns']||0x1;_0x196ac2['columnInsertionIndexes']=new Array(_0x43706c)['fill'](_0x3f0511)['map']((_0x3baef9,_0x499be3)=>_0x3baef9+_0x499be3);for(const {cell:_0x50c0fa}of _0x2c49e0['createTableWalker'](_0xd5400e,{'startColumn':_0x3f0511,'endColumn':_0x3f0511+_0x43706c-0x1}))_0x196ac2['columnInsertionRanges']['push'](_0x2e617c['model']['createRangeOn'](_0x50c0fa));},{'priority':'low'}),_0x2c49e0['on']('insertRows',(_0x4fb4cf,_0x22c342)=>{const [_0x54bf0f,_0x48fae7={}]=_0x22c342;if(!_0x196ac2)return;const _0xd7f48a=_0x48fae7['at']||0x0,_0xe0ac5b=_0x48fae7['rows']||0x1;_0x196ac2['rowInsertionIndexes']=new Array(_0xe0ac5b)['fill'](_0xd7f48a)['map']((_0x43ea5e,_0x448da7)=>_0x43ea5e+_0x448da7);for(const {cell:_0x512f23}of _0x2c49e0['createTableWalker'](_0x54bf0f,{'startRow':_0xd7f48a,'endRow':_0xd7f48a+_0xe0ac5b-0x1}))_0x196ac2['rowInsertionRanges']['push'](_0x2e617c['model']['createRangeOn'](_0x512f23));},{'priority':'low'}),_0x300155['descriptionFactory']['registerDescriptionCallback'](_0xe3aa3=>{if(_0xe3aa3['subType']&&_0xe3aa3['subType']['startsWith']('tablePaste'))return _0xe3aa3['previous']?{}:{'type':'insertion','content':At(_0x2e617c['locale'],'*Replace\x20table\x20cells*')};});const _0x63ac90=()=>!0x1;for(const _0x39d95f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x300155['_suggestionFactory']['registerCustomCallback']('insertion',_0x39d95f,'join',_0x63ac90),_0x300155['_suggestionFactory']['registerCustomCallback']('deletion',_0x39d95f,'join',_0x63ac90),_0x300155['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39d95f,'join',_0x63ac90);_0x300155['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x63ac90),_0x300155['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x31102d,_0x4fdfd7,_0x27caac)=>{const _0x45b18f=_0x31102d['map'](_0x35be9f=>_0x35be9f['getContainedElement']())['filter'](_0x1e39d8=>_0x1e39d8),_0x45fff4=new Map(_0x45b18f['map'](_0xb93782=>[_0xb93782,null]));if(_0x196ac2){for(const {element:_0x9c26b1,attributes:_0x3a3507}of _0x196ac2['cells'])_0x3a3507&&_0x45fff4['set'](_0x9c26b1,_0x3a3507);}else{if(_0x27caac&&_0x27caac['markerAttributes'])for(const [_0x2c4914,_0x7e1421]of Object['entries'](_0x27caac['markerAttributes'])){const _0x3882e8=_0x2e617c['model']['markers']['get'](_0x2c4914),_0x384beb=_0x3882e8?_0x3882e8['getRange']()['getContainedElement']():null;_0x384beb&&_0x45fff4['set'](_0x384beb,_0x7e1421);}}_0x2e617c['model']['change'](_0x4a7f46=>{for(const [_0x577f6d,_0x528bc5]of _0x45fff4)_0x4a7f46['setAttributes']({...Fe,..._0x528bc5},_0x577f6d);});});const _0x3dcfe8=(_0x82f567,_0x3fb154)=>{_0x300155['_suggestionFactory']['registerCustomCallback'](_0x82f567,'tablePaste',_0x3fb154,(_0x3d27c6,_0x270f4d,_0x552532)=>{_0x2e617c['model']['change'](_0x4c06d1=>{const _0x543a49=[];for(const _0x561fc2 of _0x3d27c6){const _0x5af662=_0x561fc2['start']['nodeAfter'];_0x5af662['is']('element','tableCellSuggestion')&&_0x543a49['push'](_0x5af662);}_0x300155['_suggestionFactory']['getSuggestionCallback'](_0x82f567,null,_0x3fb154)(_0x3d27c6,_0x270f4d,_0x552532);for(const _0x3f4b1d of _0x543a49)'$graveyard'!=_0x3f4b1d['root']['rootName']&&_0x4c06d1['unwrap'](_0x3f4b1d);});});};_0x3dcfe8('insertion','accept'),_0x3dcfe8('insertion','discard'),_0x3dcfe8('deletion','accept'),_0x3dcfe8('deletion','discard'),_0x300155['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x24d92f=>{const _0x28d539=_0x24d92f['map'](_0x2d8952=>_0x2d8952['getContainedElement']()),_0x175b92=_0x28d539[0x0]['findAncestor']('table'),{minRow:_0x378c6e,maxRow:_0x539264}=_0x3ccdc5['_getCoordsForCells'](_0x28d539);_0x2c49e0['removeRows'](_0x175b92,{'at':_0x378c6e,'rows':_0x539264-_0x378c6e+0x1});}),_0x300155['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x25ec10=>{const _0x915b8a=_0x25ec10['map'](_0x391bdf=>_0x391bdf['getContainedElement']()),_0x953db3=_0x915b8a[0x0]['findAncestor']('table'),{minColumn:_0x351fbb,maxColumn:_0x3b58d4}=_0x3ccdc5['_getCoordsForCells'](_0x915b8a);_0x2c49e0['removeColumns'](_0x953db3,{'at':_0x351fbb,'columns':_0x3b58d4-_0x351fbb+0x1});});const _0x5ebcaa=(_0x420cbb,_0x3a719f)=>{if(!_0x3a719f['subType']||!_0x3a719f['subType']['startsWith']('tablePaste'))return;const _0x55814c=_0x3a719f['attributes']['tablePasteChainId'],_0x1697c2=_0x300155['getSuggestions']()['filter'](_0x97f55a=>_0x97f55a['isInContent']&&_0x97f55a['attributes']&&_0x97f55a['attributes']['tablePasteChainId']==_0x55814c);_0x1697c2['length']&&_0x3a719f['getAllAdjacentSuggestions']()['length']!=_0x1697c2['length']&&_0x1697c2['reduce']((_0x20d682,_0x2fa8f4)=>(_0x20d682['next']=_0x2fa8f4,_0x2fa8f4['previous']=_0x20d682,_0x2fa8f4));};function _0x15523f(_0x176dec,_0xf32d21=!0x0){const {id:_0xb56461,authorId:_0x41b788}=_0x39dc22(_0x176dec['markerName']),_0xb900d0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ff3c1=_0x300155['activeMarkers']['includes'](_0x176dec['markerName']);return _0x1ff3c1&&_0xb900d0['push']('ck-suggestion-marker--active'),{'classes':_0xb900d0,'attributes':{'data-suggestion':_0xb56461,'data-author-id':_0x41b788},'priority':_0x1ff3c1&&_0xf32d21?0xbc2:0xbb8};}_0x300155['on']('suggestionLoaded',_0x5ebcaa,{'priority':'high'}),_0x300155['on']('suggestionUnloaded',_0x5ebcaa,{'priority':'high'}),_0x2e617c['model']['document']['registerPostFixer'](()=>{let _0x28aefe=!0x1;const _0x3bd209=Array['from'](_0x2e617c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5992e9,data:_0xad0d0}of _0x3bd209){const {group:_0xe44445,type:_0x48160a,id:_0x125c13}=_0x39dc22(_0x5992e9);if('suggestion'!=_0xe44445||'deletion'!=_0x48160a||_0xad0d0['oldRange'])continue;if(!_0x300155['hasSuggestion'](_0x125c13))continue;const _0x5715dd=_0x300155['getSuggestion'](_0x125c13)['getRanges'](),_0x30212b=_0x2e617c['plugins']['get']('Users')['me'];for(const _0xd7c3f0 of _0x300155['getSuggestions']()){if(!_0xd7c3f0['isInContent']||_0xd7c3f0['author']!=_0x30212b)continue;if('formatBlock'!=_0xd7c3f0['type']||'tablePasteCell'!=_0xd7c3f0['subType'])continue;if(_0xd7c3f0['getRanges']()['every'](_0x4dab0e=>_0x5715dd['some'](_0x3cb0d8=>_0x3cb0d8['containsRange'](_0x4dab0e,!0x0)))){for(const _0x53e997 of _0xd7c3f0['getAllAdjacentSuggestions']())_0x53e997['isInContent']&&(_0x53e997['discard'](),_0x28aefe=!0x0);}}}return _0x28aefe;}),_0x2e617c['model']['document']['registerPostFixer'](_0x1562e7=>{const _0x5dd478=_0x2e617c['commands']['get']('redo');if(!_0x5dd478||!_0x5dd478['_createdBatches']['has'](_0x1562e7['batch']))return!0x1;let _0x2ce067=!0x1;const _0x11f603=_0x2e617c['plugins']['get']('Users')['me'],_0x55fefc=_0x2e617c['model']['document']['differ']['getChanges'](),_0x51566b=Array['from'](_0x2e617c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5a02dc,data:_0x2f99be})=>{const {group:_0x284459,subType:_0x4e0489,authorId:_0x3c8a75}=_0x39dc22(_0x5a02dc);return'suggestion'==_0x284459&&'tablePaste'==_0x4e0489&&_0x3c8a75==_0x11f603['id']&&!_0x2f99be['oldRange'];});for(const _0x5975fd of _0x55fefc){if('insert'!=_0x5975fd['type']||'tableCellSuggestion'!=_0x5975fd['name']||0x1!=_0x5975fd['length'])continue;const _0x4b3693=_0x1562e7['createRange'](_0x5975fd['position'],_0x5975fd['position']['getShiftedBy'](0x1));if(!_0x51566b['find'](({data:_0x34476d})=>_0x34476d['newRange']['isEqual'](_0x4b3693))){for(const {name:_0x50366e,data:_0x3ad65d}of _0x51566b)if(_0x4b3693['containsRange'](_0x3ad65d['newRange'])){_0x1562e7['updateMarker'](_0x50366e,{'range':_0x4b3693}),_0x2ce067=!0x0;break;}}}return _0x2ce067;}),_0x2e617c['model']['document']['registerPostFixer'](_0x2f23ed=>{let _0x1c4f74=!0x1;const _0x35994d=_0x2e617c['plugins']['get']('Users')['me'],_0x106210=_0x300155['getSuggestions']()['filter'](_0x1f4bfa=>_0x1f4bfa['isInContent']&&_0x1f4bfa['author']==_0x35994d),_0x5bb614=new Set(),_0x6de1a=new Set();for(const _0x46f2ae of _0x106210)if('tablePaste'==_0x46f2ae['subType'])for(const _0x1afae6 of _0x46f2ae['getMarkers']()){const _0x218115=_0x1afae6['getRange']()['getContainedElement']();if(_0x218115){if(_0x218115['is']('element','tableCellSuggestion')&&ve(_0x218115)){_0x46f2ae['removeMarker'](_0x1afae6['name']),_0x5bb614['add'](_0x218115),_0x1c4f74=!0x0;const _0x24b583=_0x218115['nextSibling'],_0x181995=_0x218115['previousSibling'],_0x359a8e=_0x24b583&&_0x24b583['is']('element','tableCellSuggestion'),_0x40df54=_0x181995&&_0x181995['is']('element','tableCellSuggestion');_0x359a8e&&!_0x5bb614['has'](_0x24b583)&&_0x6de1a['add'](_0x24b583),_0x40df54&&!_0x5bb614['has'](_0x181995)&&_0x6de1a['add'](_0x181995);}else _0x218115['is']('element','paragraph')&&_0x218115['isEmpty']&&(_0x46f2ae['removeMarker'](_0x1afae6['name']),_0x1c4f74=!0x0);}}else{if('tablePasteCell'==_0x46f2ae['subType']){if(!_0x46f2ae['attributes']||!_0x46f2ae['attributes']['tablePasteChainId'])continue;const _0x2f2acd=_0x46f2ae['attributes']['markerAttributes'];if(_0x2f2acd&&Object['keys'](_0x2f2acd)['length'])continue;const _0x3a1021=_0x46f2ae['attributes']['tablePasteChainId'];let _0x5104bd=!0x0,_0x2aadd2=!0x0;for(const _0x1a1f5c of _0x106210)if(_0x1a1f5c['subType']&&_0x1a1f5c['subType']['startsWith']('tablePaste')){if(!_0x1a1f5c['attributes']['tablePasteChainId']){_0x2aadd2=!0x1;break;}if(_0x1a1f5c['id']!=_0x46f2ae['id']&&_0x1a1f5c['attributes']['tablePasteChainId']==_0x3a1021){_0x5104bd=!0x1;break;}}_0x2aadd2&&_0x5104bd&&(_0x46f2ae['removeMarkers'](),_0x1c4f74=!0x0);}}for(const _0x476847 of _0x5bb614)_0x2f23ed['remove'](_0x476847);for(const _0x5866b7 of _0x6de1a)_0x2f23ed['unwrap'](_0x5866b7);return _0x1c4f74;}),_0x2e617c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26615d=>_0x15523f(_0x26615d),'converterPriority':'high'}),_0x2e617c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59f8fe,_0x302252)=>_0x302252['options']['showSuggestionHighlights']?_0x15523f(_0x59f8fe,!0x1):null,'converterPriority':'high'});const _0x4697b4=_0x2e617c['editing']['view'];this['listenTo'](_0x4697b4['document'],'clipboardOutput',(_0x270a3b,_0x5d0eb2)=>{const _0x70a4e=[];for(const _0x17be70 of _0x4697b4['createRangeIn'](_0x5d0eb2['content'])['getItems']())_0x17be70['is']('element','suggestion-td')&&_0x70a4e['push'](_0x17be70);_0x4697b4['change'](_0x3ec769=>{for(const _0x6b07dd of _0x70a4e)_0x3ec769['move'](_0x3ec769['createRangeIn'](_0x6b07dd),_0x3ec769['createPositionBefore'](_0x6b07dd)),_0x3ec769['remove'](_0x6b07dd);});});}}function ve(_0xef6ed5){if(_0xef6ed5['isEmpty'])return!0x0;const _0x57117d=_0xef6ed5['getChild'](0x0);return _0x57117d['is']('element','paragraph')&&_0x57117d['isEmpty'];}function xe(_0x1c4305,_0x5c9868={},_0x3fb86a){for(const {isAnchor:_0x29f30a,cellHeight:_0x38502e,cellWidth:_0x21c4a5}of _0x3fb86a['createTableWalker'](_0x1c4305,{'includeAllSlots':!0x0,..._0x5c9868}))if(!_0x29f30a||0x1!=_0x38502e||0x1!=_0x21c4a5)return!0x1;return!0x0;}class Pe extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xa0ea37=this['editor']['plugins']['get']('TrackChangesEditing');_0xa0ea37['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xa0ea37['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xa0ea37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa0ea37['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xa0ea37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xa0ea37['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x341d7,_0x2b3d59){const _0x33fbd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55cbcf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x325d35=_0x2b3d59['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x243da9=_0x55cbcf['getColumnGroupElement'](_0x325d35);let _0x2029e9=_0x243da9?_0x55cbcf['getTableColumnsWidths'](_0x243da9):null,_0x256d24=_0x325d35['getAttribute']('tableWidth')||null;const _0x4cbfdf=_0x2b3d59['tableWidth']||_0x256d24,_0x4e2f36=_0x2b3d59['columnWidths']||_0x2029e9,_0x559441=this['editor']['plugins']['get']('Users')['me'];for(const _0x39e6da of _0x33fbd9['getSuggestions']()){const _0x10bf4f=_0x39e6da['getContainedElement']();if('resizeTable'===_0x39e6da['subType']&&_0x10bf4f===_0x325d35){_0x39e6da['author']!==_0x559441&&_0x39e6da['discard']();const _0x258b7c=_0x39e6da['data']['commandParams'];_0x256d24=_0x258b7c[0x0]['tableWidth'],_0x2029e9=_0x258b7c[0x0]['columnWidths'];break;}}_0x341d7({'table':_0x325d35,'tableWidth':_0x4cbfdf,'columnWidths':_0x4e2f36}),_0x33fbd9['markBlockFormat'](_0x325d35,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x256d24,'columnWidths':_0x2029e9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3ec55d){if('formatBlock'!=_0x3ec55d['type']&&'formatInline'!=_0x3ec55d['type'])return;const {data:_0xa658b9}=_0x3ec55d;if(_0xa658b9&&'resizeTable'===_0xa658b9['formatGroupId']){const _0x50d270='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x50d270)};}}}class Ue extends _0x54c126{['afterInit'](){const _0x57d93c=this['editor'];_0x57d93c['plugins']['has']('Template')&&_0x57d93c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x54c126{['afterInit'](){const _0x2f151a=this['editor'];if(!_0x2f151a['commands']['get']('insertTableOfContents'))return;_0x2f151a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e69dd=_0x2f151a['plugins']['get']('TrackChangesEditing'),_0x524809=_0x2f151a['locale'];_0x1e69dd['descriptionFactory']['registerElementLabel']('tableOfContents',_0xdf2647=>At(_0x524809,'ELEMENT_TABLE_OF_CONTENTS',_0xdf2647));}}class He extends _0x54c126{['afterInit'](){const _0x88534d=this['editor'];if(!_0x88534d['plugins']['has']('Title'))return;_0x88534d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x88534d['locale'],'ELEMENT_TITLE')),_0x88534d['model']['document']['registerPostFixer'](_0x21e44f=>{let _0x479409=!0x1;const _0x29cece=Array['from'](_0x88534d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e7dc3,data:_0x373ea8}of _0x29cece){const {group:_0x437bcc}=_0x39dc22(_0x1e7dc3);if('suggestion'!==_0x437bcc||!_0x373ea8['newRange'])continue;const _0x23b378=_0x373ea8['newRange'],_0x5105f=_0x23b378['end']['nodeBefore'];if(!_0x5105f||!_0x5105f['is']('element','title-content'))continue;if(!_0x23b378['start']['isTouching'](_0x23b378['end']))continue;const _0x2e73b9=_0x88534d['model']['schema']['getNearestSelectionRange'](_0x23b378['end'],'forward');if(_0x2e73b9&&_0x2e73b9['isCollapsed']){const _0x4f423b=_0x21e44f['createRange'](_0x23b378['start'],_0x2e73b9['start']);_0x4f423b['isEqual'](_0x23b378)||(_0x21e44f['updateMarker'](_0x1e7dc3,{'range':_0x4f423b}),_0x479409=!0x0);}_0x479409||(_0x21e44f['removeMarker'](_0x1e7dc3),_0x479409=!0x0);}return _0x479409;});}}class $e extends _0x54c126{['afterInit'](){const _0x5c552e=this['editor'],_0x4be7f2=_0x5c552e['plugins']['get']('TrackChangesEditing');_0x5c552e['plugins']['has']('Uploadcare')&&(_0x4be7f2['enableCommand']('uploadcare'),_0x5c552e['plugins']['has']('UploadcareImageEdit')&&(_0x4be7f2['enableCommand']('uploadcareImageEdit'),_0x4be7f2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4be7f2['descriptionFactory']['registerDescriptionCallback'](_0x198205=>{if('attribute'!=_0x198205['type'])return;const {data:_0x1feee8}=_0x198205;return _0x1feee8&&'uploadcareImageId'==_0x1feee8['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x54c126{['afterInit'](){const _0x536898=this['editor'],_0x46776e=_0x536898['plugins']['get']('TrackChangesEditing');_0x536898['plugins']['has']('UndoEditing')&&(_0x46776e['enableCommand']('undo'),_0x46776e['enableCommand']('redo'));}}class Ve extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x8cd19d=this['editor'];if(!_0x8cd19d['plugins']['has']('TableCaptionEditing'))return;_0x8cd19d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x54c126{['tableProperties'];['tableCellProperties'];constructor(_0x4dcd8d){super(_0x4dcd8d),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 _0x180a80=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x55cda1 of this['tableProperties'])_0x180a80['enableCommand'](_0x55cda1,(_0x334666,_0x1d2c26)=>{const _0xdf0214=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x55cda1,[_0xdf0214],this['tableProperties'],'tableProperties',_0x334666,_0x1d2c26);});_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x180a80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f9a7b,_0xd5b8c7)=>this['handleDiscardAction'](this['tableProperties'],_0x2f9a7b,_0xd5b8c7)),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8cc562 of this['tableCellProperties'])this['editor']['commands']['get'](_0x8cc562)&&_0x180a80['enableCommand'](_0x8cc562,(_0x476b74,_0x2a7861)=>{const _0x500a47=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8cc562,_0x500a47,this['tableCellProperties'],'tableCellProperties',_0x476b74,_0x2a7861);});_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x180a80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x38d79f,_0x2c0369)=>this['handleDiscardAction'](this['tableCellProperties'],_0x38d79f,_0x2c0369)),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x180a80['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x180a80['descriptionFactory']['registerDescriptionCallback'](_0x1f3ca4=>this['handleSuggestionDescription'](_0x1f3ca4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2a5b40,_0x727fa0,_0x52b4f1,_0x575f12,_0x4ff415,_0x3e55c4){const _0x2a5327=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e55c4['batch'],()=>{for(const _0x512fc7 of _0x727fa0){if(this['_getSuggestion'](_0x512fc7,_0x575f12))_0x4ff415(_0x3e55c4);else{const _0x3c0c38={};for(const _0x171672 of _0x52b4f1){const _0x4a9ad2=_0x512fc7['getAttribute'](_0x171672);void 0x0!==_0x4a9ad2&&(_0x3c0c38[_0x171672]=_0x4a9ad2);}_0x4ff415(_0x3e55c4),_0x2a5327['markBlockFormat'](_0x512fc7,{'commandParams':[_0x3c0c38]},[],_0x575f12);}}});}['handleDiscardAction'](_0x4ceaf9,_0x3684d6,_0x25e4ea){const _0x238e52=_0x3684d6[0x0]['start']['nodeAfter'],_0x1eeaef=_0x25e4ea['commandParams'][0x0];this['editor']['model']['change'](_0x2b8e4d=>{for(const _0x59e7dd of _0x4ceaf9)void 0x0!==_0x1eeaef[_0x59e7dd]?_0x2b8e4d['setAttribute'](_0x59e7dd,_0x1eeaef[_0x59e7dd],_0x238e52):_0x2b8e4d['removeAttribute'](_0x59e7dd,_0x238e52);});}['handleSuggestionDescription'](_0x57d77a){if(_0x57d77a['data'])switch(_0x57d77a['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'](_0x47f66d,_0x23483f){const _0x12df5c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2caa95 of _0x12df5c['getSuggestions']({'skipNotAttached':!0x0})){const _0x2477b4=_0x2caa95['getContainedElement']();if(_0x2caa95['subType']===_0x23483f&&_0x2477b4===_0x47f66d)return _0x2caa95;}return null;}['_registerTablePropertiesAttributes'](){const _0x5ab70d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e9708=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x36792f of _0x2e9708){const _0x5e8849=_0x36792f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5ab70d['descriptionFactory']['registerAttributeLabel'](_0x36792f,At(this['editor']['locale'],'FORMAT_'+_0x5e8849));}}}class ze extends _0x54c126{['afterInit'](){const _0x154404=this['editor'];if(!_0x154404['plugins']['has']('LineHeight'))return;const _0x2111f6=_0x154404['plugins']['get']('TrackChangesEditing'),_0x2e09f6=_0x154404['locale'];_0x2111f6['enableDefaultAttributesIntegration']('lineHeight'),_0x2111f6['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x2e09f6,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x54c126{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xab4f6c,_0x24e0bb,_0x55241e,_0x2065a9,_0x48278f,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(_0x12827e){super(_0x12827e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3b51f2,_0x2758f6,_0x4d245b,_0x217c76)=>{this['_model']['change'](()=>{for(const _0x274ab3 of[..._0x217c76,..._0x4d245b])this['_model']['markers']['has'](_0x274ab3)&&_0x12827e['editing']['reconvertMarker'](_0x274ab3);});}),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']=_0x12827e['plugins']['get'](_0xab4f6c),this['_suggestionsConversion']=_0x12827e['plugins']['get'](_0x24e0bb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x12827e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x12827e['config']['get']('trackChanges.trackFormatChanges'),_0x12827e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x12827e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x12827e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2965a9=this['editor'];_0x2965a9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ae784,{writer:_0x12be0b})=>{let _0x3639c0='suggestion:'+_0x4ae784['getAttribute']('suggestion-type')+':'+_0x4ae784['getAttribute']('id');return _0x4ae784['getAttribute']('marker-count')&&(_0x3639c0+=':'+_0x4ae784['getAttribute']('marker-count')),_0x12be0b['createElement']('$marker',{'data-name':_0x3639c0});}}),_0x2965a9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2965a9['model']['document']['registerPostFixer'](_0x58f3ae=>{let _0xba536c=!0x1;const _0x46d39a=Array['from'](_0x2965a9['model']['document']['differ']['getChangedMarkers']()),_0x28d156=new Set();for(const {name:_0x498cc5,data:_0x17e4e2}of _0x46d39a){const {group:_0x279ad1,type:_0x408ed9,subType:_0x42310c,id:_0x4409ab}=_0x39dc22(_0x498cc5);if('suggestion'!==_0x279ad1)continue;const _0x32531c=_0x42310c?'suggestion:'+_0x408ed9+':'+_0x42310c+':'+_0x4409ab:'suggestion:'+_0x408ed9+':'+_0x4409ab,_0x5cee68=_0x2965a9['model']['markers']['getMarkersGroup'](_0x32531c),_0x349711=_0x2965a9['model']['markers']['get'](_0x498cc5),_0x4c4139=this['_suggestions']['get'](_0x4409ab);if(null!=_0x17e4e2['newRange']){'formatInline'==_0x408ed9&&(_0xba536c=_0xba536c||Ze(_0x17e4e2['newRange'],_0x498cc5,_0x58f3ae,_0x2965a9['model']['schema']));const _0x13ee70='attribute'==_0x408ed9&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x42310c)),_0x1c3249='attribute'==_0x408ed9&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x42310c));if(_0x17e4e2['newRange']['isCollapsed']||'$graveyard'==_0x17e4e2['newRange']['root']['rootName']||'formatBlock'==_0x408ed9&&!tn(_0x17e4e2['newRange'])||_0x13ee70&&!tn(_0x17e4e2['newRange'])||_0x1c3249&&en(_0x17e4e2['newRange'])||'deletion'==_0x408ed9&&en(_0x17e4e2['newRange'])||_0x349711&&nn(_0x349711,_0x5cee68))_0x58f3ae['removeMarker'](_0x498cc5),_0xba536c=!0x0;else{if(!_0x4c4139||!_0x4c4139['isInContent'])continue;if(_0x17e4e2['newRange']&&_0x17e4e2['oldRange']&&_0x17e4e2['newRange']['isEqual'](_0x17e4e2['oldRange']))continue;_0x28d156['add'](_0x4c4139);}}}return _0x28d156['size']>0x0&&(_0xba536c=!!this['_joinWithAdjacentSuggestions'](_0x28d156)||_0xba536c),_0xba536c;}),_0x2965a9['model']['document']['registerPostFixer'](_0x159523=>{let _0x5504e1=!0x1;for(const _0x295c32 of _0x2965a9['model']['document']['differ']['getChanges']())if('insert'==_0x295c32['type'])for(const _0x210f8f of this['_suggestions']['values']()){if(_0x210f8f['isMultiRange']||!_0x210f8f['isInContent'])continue;const _0x1da0ae='formatBlock'==_0x210f8f['type'],_0x10a93d=this['_getAttributeKey'](_0x210f8f),_0x465fa1=_0x10a93d&&this['_suggestionsConversion']['isBlockAttribute'](_0x10a93d);if(!_0x1da0ae&&!_0x465fa1)continue;const _0x2a45f3=_0x210f8f['getFirstRange']();if(_0x2a45f3['start']['parent']!=_0x2a45f3['end']['parent']&&!_0x2a45f3['end']['isAtEnd']){const _0x46c985=_0x2965a9['model']['createPositionAt'](_0x2a45f3['start']['nodeAfter'],'end'),_0x339fd4=_0x2965a9['model']['createRange'](_0x2a45f3['start'],_0x46c985);_0x159523['updateMarker'](_0x210f8f['getFirstMarker'](),{'range':_0x339fd4}),_0x5504e1=!0x0;}}return _0x5504e1;}),_0x2965a9['model']['document']['registerPostFixer'](_0x5707c9=>this['_processAttributeChanges'](_0x5707c9)),_0x2965a9['model']['document']['registerPostFixer'](_0x476226=>!_0x476226['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x476226)),_0x2965a9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2965a9['model']['document']['on']('change:data',(_0x284925,_0x4c4b3f)=>{if(!_0x4c4b3f['isLocal']||_0x4c4b3f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b6b42=_0x2965a9['model']['document']['differ']['getChanges']();if(0x0==_0x2b6b42['length'])return;const _0x20e990=[],_0x3b58c4=_0x2b6b42['filter'](_0x5b5f0f=>'attribute'==_0x5b5f0f['type']),_0x311166=_0x2b6b42['filter'](_0x30b1f6=>'insert'==_0x30b1f6['type']&&'$text'!=_0x30b1f6['name']);for(const _0x55baee of _0x3b58c4)this['_suggestionsConversion']['isRegisteredAttribute'](_0x55baee['attributeKey'])&&_0x20e990['push']({'key':_0x55baee['attributeKey'],'newValue':_0x55baee['attributeNewValue'],'oldValue':_0x55baee['attributeOldValue'],'range':sn(_0x55baee['range'],_0x2965a9['model'])});for(const _0x5c2f89 of _0x311166){if('rename'!=_0x5c2f89['action']&&'refresh'!=_0x5c2f89['action'])continue;const _0x4eaad5=rn(_0x5c2f89['position']['nodeAfter'],_0x2965a9['model']),_0x5c0d07=_0x5c2f89['before'];'rename'==_0x5c2f89['action']&&_0x20e990['push']({'key':Ke,'newValue':_0x5c2f89['name'],'oldValue':_0x5c0d07['name'],'range':_0x4eaad5});for(const [_0x26ddf6,_0x237bf7]of _0x5c0d07['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x26ddf6))continue;const _0x5104e0=_0x5c2f89['attributes']['get'](_0x26ddf6);_0x237bf7!==_0x5104e0&&_0x20e990['push']({'key':_0x26ddf6,'newValue':_0x5104e0,'oldValue':_0x237bf7,'range':_0x4eaad5});}for(const [_0x1f516f,_0x340432]of _0x5c2f89['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f516f)&&(_0x5c0d07['attributes']['has'](_0x1f516f)||_0x20e990['push']({'key':_0x1f516f,'newValue':_0x340432,'oldValue':null,'range':_0x4eaad5}));}0x0!=_0x20e990['length']&&_0x2965a9['model']['enqueueChange'](_0x4c4b3f,_0x2f69df=>{const _0x3f1186=_0x171c64();for(const {range:_0x9bc075,key:_0x3a8bef,oldValue:_0xfec40,newValue:_0x38f34b}of _0x20e990)this['markAttributeChange'](_0x9bc075,_0x3a8bef,_0xfec40,_0x38f34b,{'groupId':_0x3f1186});this['_reduceExistingSuggestions'](_0x2f69df,_0x20e990);});},{'priority':'lowest'}),_0x2965a9['model']['markers']['on']('update:suggestion',(_0x50c43e,_0x79111c,_0x51e275)=>{if(null==_0x51e275){const {id:_0x28255b}=_0x39dc22(_0x79111c['name']),_0x2238ff=this['_suggestions']['get'](_0x28255b);_0x2238ff&&_0x2238ff['addMarkerName'](_0x79111c['name']);}}),_0x2965a9['model']['document']['on']('change:data',()=>{const _0x212c93=Array['from'](_0x2965a9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x6bf87e=>'suggestion'===_0x39dc22(_0x6bf87e['name'])['group']);if(0x0===_0x212c93['length'])return;_0x212c93['sort']((_0xf64f4d,_0x367754)=>{const _0x32c57f=_0xf64f4d['data']['oldRange'],_0x564107=_0x367754['data']['oldRange'];return null===_0x32c57f&&null===_0x564107?0x0:null===_0x32c57f&&null!==_0x564107?-0x1:null!==_0x32c57f&&null===_0x564107?0x1:_0x32c57f['start']['isBefore'](_0x564107['start'])?-0x1:0x1;});const _0x29f952=new Set(),_0x5ad5a6=new Set();for(const {name:_0x4b1e9b,data:_0x9d5831}of _0x212c93){const {id:_0x1dc5aa}=_0x39dc22(_0x4b1e9b);if(null===_0x9d5831['oldRange']){const _0x2c6f0a=this['_handleNewSuggestionMarker'](_0x4b1e9b);_0x5ad5a6['add'](_0x2c6f0a);}else{const _0x38d2e7=this['_suggestions']['get'](_0x1dc5aa);null!==_0x9d5831['newRange']||_0x38d2e7['isInContent']?(_0x29f952['add'](_0x38d2e7['head']),_0x5ad5a6['add'](_0x38d2e7)):this['_removeSuggestion'](_0x38d2e7);}}_0x5ad5a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x5ad5a6);for(const _0x4a3b44 of _0x29f952)this['fire']('suggestionChanged',_0x4a3b44);}),_0x2965a9['model']['on']('applyOperation',(_0x4b0c3a,_0x1c6737)=>{const _0x48058e=_0x1c6737[0x0];if(!this['_suggestions']['size'])return;if(!_0x48058e['isDocumentOperation'])return;if(_0x48058e['batch']['isUndo']||!_0x48058e['batch']['isLocal'])return;let _0x3217f2,_0x4aa682;switch(_0x48058e['type']){case'insert':_0x3217f2=_0x2965a9['model']['createPositionAt'](_0x48058e['position']),_0x4aa682=_0x3217f2['getShiftedBy'](_0x48058e['howMany']);break;case'split':_0x3217f2=_0x2965a9['model']['createPositionAt'](_0x48058e['splitPosition']),_0x4aa682=_0x2965a9['model']['createPositionAt'](_0x48058e['moveTargetPosition']);break;case'move':_0x3217f2=_0x2965a9['model']['createPositionAt'](_0x48058e['targetPosition']),_0x4aa682=_0x3217f2['getShiftedBy'](_0x48058e['howMany']);break;default:return;}const _0xff0cfc=_0x2965a9['model']['createRange'](_0x3217f2,_0x4aa682);_0x2965a9['model']['change'](()=>{for(const {suggestion:_0x4f31dd,meta:_0x2ca5cc}of this['_findSuggestions'](_0xff0cfc)){if(_0x4f31dd['isMultiRange'])continue;if('formatInline'==_0x4f31dd['type'])continue;const _0x91ae80=this['_getAttributeKey'](_0x4f31dd);if(_0x91ae80&&this['_suggestionsConversion']['isBlockAttribute'](_0x91ae80)&&'split'!=_0x48058e['type'])continue;const _0x5b78e0=_0x4f31dd['data']&&_0x4f31dd['data']['multipleBlocks'];('formatBlock'!=_0x4f31dd['type']||'split'==_0x48058e['type']&&!_0x5b78e0)&&(_0x2ca5cc['containsRangeInObject']||'insertion'==_0x4f31dd['type']&&_0x2ca5cc['isOwn']||_0x4f31dd['getFirstRange']()['containsRange'](_0xff0cfc)&&this['_breakSuggestionMarker'](_0x4f31dd,_0x3217f2,_0x4aa682));}});},{'priority':'lowest'}),_0x2965a9['model']['on']('deleteContent',(_0x584857,_0x32c627)=>{const _0x38290f=_0x32c627[0x0],_0x2883a2=_0x32c627[0x1];if(_0x2883a2&&_0x2883a2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38290f['isCollapsed'])return;const _0x259932=_0x2965a9['model']['schema'],{start:_0x321535,end:_0x369b53}=_0x38290f['getFirstRange'](),_0x184543=_0x321535['nodeAfter']&&_0x259932['isLimit'](_0x321535['nodeAfter'])?null:_0x259932['getNearestSelectionRange'](_0x321535,'forward'),_0x1376a6=_0x369b53['nodeBefore']&&_0x259932['isLimit'](_0x369b53['nodeBefore'])?null:_0x259932['getNearestSelectionRange'](_0x369b53,'backward'),_0x5c5c74=_0x2965a9['model']['createRange'](_0x184543?_0x184543['start']:_0x321535,_0x1376a6?_0x1376a6['end']:_0x369b53);_0x2965a9['model']['change'](_0x47313b=>{this['markDeletion'](_0x5c5c74);const _0x4972f0=_0x2965a9['model']['schema']['getNearestSelectionRange'](_0x5c5c74['start']);_0x38290f['is']('documentSelection')?_0x47313b['setSelection'](_0x4972f0):_0x38290f['setTo'](_0x4972f0);}),_0x584857['stop']();},{'priority':_0x2ac962['normal']+0xa}),_0x2965a9['model']['on']('insertContent',(_0x4bcd47,_0x437a04)=>{const _0x5c5826=_0x437a04[_0x437a04['length']-0x1];_0x5c5826&&_0x5c5826['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2965a9['model']['change'](()=>{let _0x32e12b=_0x2965a9['model']['insertContent'](_0x437a04[0x0],_0x437a04[0x1],_0x437a04[0x2],{'forceDefaultExecution':!0x0});if(!_0x32e12b)return;_0x4bcd47['return']=_0x32e12b['clone']();const _0x1cf3d2=_0x32e12b['end']['nodeBefore'],_0x4d2a2c=_0x2965a9['model']['schema'];_0x1cf3d2&&_0x4d2a2c['isBlock'](_0x1cf3d2)&&!_0x4d2a2c['isObject'](_0x1cf3d2)&&(_0x32e12b=_0x2965a9['model']['createRange'](_0x32e12b['start'],_0x2965a9['model']['createPositionAt'](_0x1cf3d2,'end'))),this['markInsertion'](_0x32e12b);}),_0x4bcd47['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1978f9=new dt(_0x2965a9,this['_suggestions']);_0x2965a9['commands']['add']('acceptSuggestion',_0x1978f9),this['enableCommand']('acceptSuggestion');const _0x217d6d=new ft(_0x2965a9,this['_suggestions']);_0x2965a9['commands']['add']('discardSuggestion',_0x217d6d),this['enableCommand']('discardSuggestion'),_0x2965a9['commands']['add']('acceptAllSuggestions',new Lt(_0x2965a9,_0x1978f9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2965a9['commands']['add']('discardAllSuggestions',new Lt(_0x2965a9,_0x217d6d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2965a9['commands']['add']('acceptSelectedSuggestions',new It(_0x2965a9,_0x1978f9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2965a9['commands']['add']('discardSelectedSuggestions',new It(_0x2965a9,_0x217d6d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3ec20e=_0x2965a9['plugins']['get'](_0xab4f6c);this['listenTo'](_0x3ec20e,'addComment',(_0x25a5a1,{threadId:_0x3dc2e8})=>{const _0x596600=this['_suggestions']['get'](_0x3dc2e8);_0x596600&&_0x596600['commentThread']&&0x1===_0x596600['commentThread']['length']&&this['_updateSuggestionData'](_0x3dc2e8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3ec20e,'removeComment',(_0x4f6d35,{threadId:_0x403855})=>{const _0x4f97ed=this['_suggestions']['get'](_0x403855);_0x4f97ed&&_0x4f97ed['commentThread']&&!_0x4f97ed['commentThread']['length']&&this['_updateSuggestionData'](_0x403855,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x505646){const _0x3d3038=_0x1e3503([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]),_0x53b542=0x3d8d0df,_0x5e45f0=0x3df5537^_0x53b542,_0x29f483=window[_0x1e3503([0x44,0x61,0x74,0x65])][_0x1e3503([0x6e,0x6f,0x77])](),_0xc79137=_0x505646[_0x1e3503([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f3edd=new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x275937=>{_0xc79137[_0x1e3503([0x6f,0x6e,0x63,0x65])](_0x1e3503([0x72,0x65,0x61,0x64,0x79]),_0x275937);}),_0x32923c={[_0x1e3503([0x6b,0x74,0x79])]:_0x1e3503([0x45,0x43]),[_0x1e3503([0x75,0x73,0x65])]:_0x1e3503([0x73,0x69,0x67]),[_0x1e3503([0x63,0x72,0x76])]:_0x1e3503([0x50,0x2d,0x32,0x35,0x36]),[_0x1e3503([0x78])]:_0x1e3503([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]),[_0x1e3503([0x79])]:_0x1e3503([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]),[_0x1e3503([0x61,0x6c,0x67])]:_0x1e3503([0x45,0x53,0x32,0x35,0x36])},_0x193152=_0xc79137[_0x1e3503([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e3503([0x67,0x65,0x74])](_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x542cc7(){let _0x3560f4,_0x99c7c5=null,_0x18d305=null;try{if(_0x193152==_0x1e3503([0x47,0x50,0x4c]))return _0x1e3503([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3560f4=_0x20d304(),!_0x3560f4)return _0x1e3503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3560f4[_0x1e3503([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18d305=_0x321b0f(_0x3560f4[_0x1e3503([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3560f4[_0x1e3503([0x6a,0x74,0x69])])),await _0x2140cb()?_0x48dec7()?_0x29dda7()?_0x1e3503([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x392db1()?(_0x3560f4[_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e3503([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x99c7c5=_0x3d448f(_0x1e3503([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x313962()):_0x1e3503([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e3503([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e3503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e3503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29dda7(){const _0x19a790=[_0x1e3503([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e3503([0x74,0x72,0x69,0x61,0x6c])][_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3560f4[_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29f483/0x3e8:0xe10*_0x5e45f0;return _0x3560f4[_0x1e3503([0x65,0x78,0x70])]<_0x19a790;}function _0x48dec7(){const _0x337a37=_0x3560f4[_0x1e3503([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x337a37)return!0x1;if(_0x337a37[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x2a])))return!0x0;if(_0x337a37[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x54,0x43])))return!0x0;if(_0x337a37[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x52,0x54,0x43]))){if(_0x15ab98())return!0x0;if(_0x4ac467()||_0x3d7d7f())return!0x0;}return!0x1;}function _0x392db1(){const _0x5a7c5d=_0x3560f4[_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a7c5d||0x0==_0x5a7c5d[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d9820}=new URL(window[_0x1e3503([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a7c5d[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d9820))return!0x0;const _0x1d7974=_0x3d9820[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e]));return _0x5a7c5d[_0x1e3503([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfa88b9=>_0xfa88b9[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x2a])))[_0x1e3503([0x6d,0x61,0x70])](_0x4a18b1=>_0x4a18b1[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e])))[_0x1e3503([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47e89d=>_0x47e89d[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d7974[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e3503([0x6d,0x61,0x70])](_0x28bb33=>Array(_0x1d7974[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x28bb33[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e3503([0x66,0x69,0x6c,0x6c])](_0x28bb33[0x0]===_0x1e3503([0x2a])?_0x1e3503([0x2a]):'')[_0x1e3503([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x28bb33))[_0x1e3503([0x73,0x6f,0x6d,0x65])](_0x4c4bc9=>_0x1d7974[_0x1e3503([0x65,0x76,0x65,0x72,0x79])]((_0x663910,_0x190779)=>_0x4c4bc9[_0x190779]===_0x663910||_0x4c4bc9[_0x190779]===_0x1e3503([0x2a])));}function _0x313962(){return _0x99c7c5&&_0x18d305?new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ada9e,_0x2545cf)=>{_0x99c7c5[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x3ada9e,_0x2545cf),_0x18d305[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x151798=>{_0x151798!=_0x1e3503([0x56,0x61,0x6c,0x69,0x64])&&_0x3ada9e(_0x151798);},_0x2545cf);}):_0x99c7c5||_0x18d305||_0x1e3503([0x56,0x61,0x6c,0x69,0x64]);}}function _0x321b0f(_0x4f20f8,_0x4747a2){return new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575112=>{if(_0x3bbd3e())return _0x575112(_0x1e3503([0x56,0x61,0x6c,0x69,0x64]));_0x491f3d(),_0xc79137[_0x1e3503([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e3503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b5b48=!0x1;const _0x16cc4b=_0x171c64();function _0x3033a2(_0x30a4a0){return!!_0x30a4a0&&(typeof _0x30a4a0===_0x1e3503([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30a4a0===_0x1e3503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30a4a0[_0x1e3503([0x74,0x68,0x65,0x6e])]===_0x1e3503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30a4a0[_0x1e3503([0x63,0x61,0x74,0x63,0x68])]===_0x1e3503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ac875(_0x165816){_0x1afc1b(_0x165816)[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x20bd4d=>{if(!_0x20bd4d||_0x20bd4d[_0x1e3503([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e3503([0x6f,0x6b]))return _0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fc593(_0x4e56d5(_0x16cc4b+_0x4747a2))!=_0x20bd4d[_0x1e3503([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e3503([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x38932d=>(_0x90748(),_0x38932d),()=>{const _0x381cef=_0x4ea3ea();return null==_0x381cef?(_0x90748(),_0x1e3503([0x56,0x61,0x6c,0x69,0x64])):_0x1e3503(_0x29f483-_0x381cef>(0x27d454df^_0x53b542)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x575112)[_0x1e3503([0x63,0x61,0x74,0x63,0x68])](()=>{_0x575112(_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x579743=0x3ee3e5f^_0x53b542;function _0x90748(){const _0x1b574c=_0x1e3503([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc593(_0x4e56d5(_0x4f20f8)),_0x1ebc6f=_0x194c0e(_0x4fc593(window[_0x1e3503([0x4d,0x61,0x74,0x68])][_0x1e3503([0x63,0x65,0x69,0x6c])](_0x29f483/_0x579743)));window[_0x1e3503([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e3503([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b574c,_0x1ebc6f);}function _0x4ea3ea(){const _0x298174=_0x1e3503([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc593(_0x4e56d5(_0x4f20f8)),_0x25125a=window[_0x1e3503([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e3503([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x298174);return _0x25125a?window[_0x1e3503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194c0e(_0x25125a),0x10)*_0x579743:null;}function _0x1afc1b(_0x5cc5d6){return new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14661b,_0x4c0ac6)=>{_0x5cc5d6[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x14661b,_0x4c0ac6),window[_0x1e3503([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c0ac6,0x3d9041f^_0x53b542);});}}_0xc79137[_0x1e3503([0x6f,0x6e])](_0x1e3503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ac4e8,_0x3031d3)=>{if(_0x3031d3[0x0]!=_0x4f20f8)return _0x575112(_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3031d3[0x1]={..._0x3031d3[0x1],[_0x1e3503([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16cc4b};},{[_0x1e3503([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e3503([0x68,0x69,0x67,0x68])}),_0xc79137[_0x1e3503([0x6f,0x6e])](_0x1e3503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40b5f9=>{_0x3033a2(_0x40b5f9[_0x1e3503([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b5b48=!0x0,_0x2ac875(_0x40b5f9[_0x1e3503([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e3503([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e3503([0x6c,0x6f,0x77])}),_0x5f3edd[_0x1e3503([0x74,0x68,0x65,0x6e])](()=>{_0x4b5b48||_0x575112(_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bbd3e(){return _0xc79137[_0x1e3503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e3503([0x76,0x69,0x65,0x77])][_0x1e3503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e3503([0x61,0x75,0x74,0x6f]);}function _0x491f3d(){_0xc79137[_0x1e3503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e3503([0x76,0x69,0x65,0x77])][_0x1e3503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e3503([0x61,0x75,0x74,0x6f]);}}function _0x3d448f(_0x163071){const _0x277a6b=[new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d150c=>setTimeout(_0x1d150c,0x3d1ee13^_0x53b542)),_0x5f3edd[_0x1e3503([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43d0c5=>{let _0x4a5c81=0x0;_0xc79137[_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e3503([0x6f,0x6e])](_0x1e3503([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46ea18,_0x27ea4f)=>{_0x27ea4f[0x0][_0x1e3503([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5c81++,_0x4a5c81==(0x3d8d537^_0x53b542)&&(_0x43d0c5(),_0x46ea18[_0x1e3503([0x6f,0x66,0x66])]());});}))];return window[_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e3503([0x72,0x61,0x63,0x65])](_0x277a6b)[_0x1e3503([0x74,0x68,0x65,0x6e])](()=>_0x163071);}async function _0x231304(){await _0x5f3edd,_0xc79137[_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e3503([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x498e04,_0xc79137[_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e3503([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x498e04,_0xc79137[_0x1e3503([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15ab98(){return _0x349252(_0x1e3503([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4defd2(_0x1e3503([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e3503([0x73,0x74,0x61,0x74,0x65])]==_0x1e3503([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ac467(){return _0x349252(_0x1e3503([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 _0x3d7d7f(){return _0x349252(_0x1e3503([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c5ba7(_0x4fe020){const _0x21aa92=_0x51cef7();_0xc79137[_0x21aa92]=_0x1e3503([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4fe020,_0x4fe020!=_0x1e3503([0x56,0x61,0x6c,0x69,0x64])&&_0x231304();}function _0x51cef7(){const _0x4cb85d=window[_0x1e3503([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e3503([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e3503([0x6e,0x6f,0x77])]())[_0x1e3503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e3503([0x2e]),'');let _0x4be930=_0x1e3503([0x52]);for(let _0x5b6bc3=0x0;_0x5b6bc3<_0x4cb85d[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b6bc3+=0x2){let _0x238cef=window[_0x1e3503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cb85d[_0x1e3503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b6bc3,_0x5b6bc3+0x2));_0x238cef>=_0x3d3038[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x238cef-=_0x3d3038[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4be930+=_0x3d3038[_0x238cef];}return _0x4be930;}function _0x20d304(){const _0x37e966=_0x193152[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e]));if(0x3!=_0x37e966[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3adf44(_0x37e966[0x1]);function _0x3adf44(_0x3e0db5){const _0x2335c1=_0x5e0c13(_0x3e0db5);return _0x2335c1&&_0x1239bf()?_0x2335c1:null;function _0x1239bf(){const _0x34cf3a=_0x2335c1[_0x1e3503([0x6a,0x74,0x69])],_0x80d5c7=window[_0x1e3503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34cf3a[_0x1e3503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34cf3a[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x207ef2={..._0x2335c1,[_0x1e3503([0x6a,0x74,0x69])]:_0x34cf3a[_0x1e3503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34cf3a[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x207ef2[_0x1e3503([0x76,0x63])],_0x4e56d5(_0x207ef2)==_0x80d5c7;}}}async function _0x2140cb(){let _0x560088=!0x0;try{const _0x464ea0=_0x193152[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e])),[_0x4ad920,_0x383aad,_0x378d68]=_0x464ea0;return _0x2f1fa1(_0x4ad920),await _0x4e11b1(_0x4ad920,_0x383aad,_0x378d68),_0x560088;}catch{return!0x1;}function _0x2f1fa1(_0x451a69){const _0x1f7c96=_0x5e0c13(_0x451a69);_0x1f7c96&&_0x1f7c96[_0x1e3503([0x61,0x6c,0x67])]==_0x1e3503([0x45,0x53,0x32,0x35,0x36])||(_0x560088=!0x1);}async function _0x4e11b1(_0x39a980,_0x385cac,_0x39f9dc){const _0x1c344a=window[_0x1e3503([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e3503([0x66,0x72,0x6f,0x6d])](_0x547ae0(_0x39f9dc),_0x2c0b23=>_0x2c0b23[_0x1e3503([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x478b5f=new window[(_0x1e3503([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e3503([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39a980+_0x1e3503([0x2e])+_0x385cac),_0x59d4e5=window[_0x1e3503([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e3503([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59d4e5)return;const _0x355aef=await _0x59d4e5[_0x1e3503([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e3503([0x6a,0x77,0x6b]),_0x32923c,{[_0x1e3503([0x6e,0x61,0x6d,0x65])]:_0x1e3503([0x45,0x43,0x44,0x53,0x41]),[_0x1e3503([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e3503([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e3503([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59d4e5[_0x1e3503([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e3503([0x6e,0x61,0x6d,0x65])]:_0x1e3503([0x45,0x43,0x44,0x53,0x41]),[_0x1e3503([0x68,0x61,0x73,0x68])]:{[_0x1e3503([0x6e,0x61,0x6d,0x65])]:_0x1e3503([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x355aef,_0x1c344a,_0x478b5f)||(_0x560088=!0x1);}}function _0x5e0c13(_0x435c06){return _0x435c06[_0x1e3503([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e3503([0x65,0x79]))?JSON[_0x1e3503([0x70,0x61,0x72,0x73,0x65])](_0x547ae0(_0x435c06)):null;}function _0x547ae0(_0x44bddb){return window[_0x1e3503([0x61,0x74,0x6f,0x62])](_0x44bddb[_0x1e3503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e3503([0x2b]))[_0x1e3503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e3503([0x2f])));}function _0x4e56d5(_0x1a94b1){let _0x562fb8=0x1505;function _0x1dcca3(_0x40ba86){for(let _0x194440=0x0;_0x194440<_0x40ba86[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194440++){const _0x40d6f5=_0x40ba86[_0x1e3503([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x194440);_0x562fb8=(_0x562fb8<<0x5)+_0x562fb8+_0x40d6f5,_0x562fb8&=_0x562fb8;}}function _0x36e6a1(_0x361d03){Array[_0x1e3503([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x361d03)?_0x361d03[_0x1e3503([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36e6a1):_0x361d03&&typeof _0x361d03==_0x1e3503([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e3503([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x361d03)[_0x1e3503([0x73,0x6f,0x72,0x74])]()[_0x1e3503([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x250df1,_0x481759])=>{_0x1dcca3(_0x250df1),_0x36e6a1(_0x481759);}):_0x1dcca3(window[_0x1e3503([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x361d03));}return _0x36e6a1(_0x1a94b1),_0x562fb8>>>0x0;}function _0x4fc593(_0x5e4175){return _0x5e4175[_0x1e3503([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e3503([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e3503([0x30]));}function _0x194c0e(_0x502f29){return _0x502f29[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e3503([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e3503([0x6a,0x6f,0x69,0x6e])]('');}function _0x349252(_0x29966a){return _0xc79137[_0x1e3503([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e3503([0x68,0x61,0x73])](_0x29966a);}function _0x4defd2(_0x2f53e5){return _0xc79137[_0x1e3503([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e3503([0x67,0x65,0x74])](_0x2f53e5);}function _0x498e04(){}function _0x1e3503(_0x5dd2cb){return _0x5dd2cb['map'](_0x3fdf51=>String['fromCharCode'](_0x3fdf51))['join']('');}_0x1c5ba7(await _0x542cc7());}(this);}set['adapter'](_0x21e055){if(this['_adapter'])throw new _0x2c014e('track-changes-adapter-already-set',this);this['_adapter']=_0x21e055;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x452e1f=!0x1,toJSON:_0x137836=!0x1}={}){const _0x5820f8=[];for(const _0x5cd57b of this['_suggestions']['values']())_0x452e1f&&!_0x5cd57b['isInContent']||_0x5820f8['push'](_0x5cd57b);return _0x137836?_0x5820f8['map'](_0x206d12=>_0x206d12['toJSON']()):_0x5820f8;}['getSuggestion'](_0x2ba799){const _0x5a6848=this['_suggestions']['get'](_0x2ba799);if(!_0x5a6848)throw new _0x2c014e('track-changes-suggestion-not-found',this);return _0x5a6848;}['hasSuggestion'](_0x4590d3){return this['_suggestions']['has'](_0x4590d3);}['addSuggestionData'](_0x30cbde){const {authorId:_0x200046,id:_0x50f898,originalSuggestionId:_0x52e33c,attributes:_0x51bc90}=_0x30cbde,[_0x5b69d9,_0x4c41e2]=_0x30cbde['type']['split'](':'),_0x328b2d=this['_suggestions']['get'](_0x50f898)||this['_createSuggestion'](_0x5b69d9,_0x4c41e2,_0x50f898,_0x200046,_0x51bc90,_0x52e33c);if(this['_addThreadToSuggestion'](_0x328b2d),this['_checkSuggestionCorrectness'](_0x328b2d,_0x5b69d9,_0x4c41e2||null,_0x200046),_0x328b2d['createdAt']=_0x30cbde['createdAt'],_0x328b2d['_isDataLoaded']=!0x0,_0x51bc90&&_0x51bc90['@external']){const _0x522452=_0x51bc90['@external'],_0x18a88e=this['_getExternalAuthor'](_0x522452['authorName']);_0x328b2d['authoredAt']=_0x522452['createdAt'],_0x328b2d['author']=_0x18a88e,_0x328b2d['isExternal']=!0x0;}else _0x328b2d['authoredAt']=_0x30cbde['createdAt'];switch(_0x30cbde['data']&&(_0x328b2d['data']=_0x30cbde['data']),_0x30cbde['attributes']&&(_0x328b2d['attributes']=_0x30cbde['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x328b2d['_saved']=!0x0),this['_suggestionState']['get'](_0x328b2d)){case'notReady':this['_suggestionState']['set'](_0x328b2d,'dataReady');break;case'markerReady':_0x328b2d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x328b2d])),this['_refreshSuggestionsChain'](new Set([_0x328b2d])),this['_suggestionState']['set'](_0x328b2d,'ready'),this['fire']('suggestionLoaded',_0x328b2d)):this['_suggestionState']['set'](_0x328b2d,'removed');}return _0x328b2d;}['acceptSuggestion'](_0x4645be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d7cff of _0x4645be['getAllAdjacentSuggestions']())_0x5d7cff['accept']();});});}['discardSuggestion'](_0x33c6d2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35dff0 of _0x33c6d2['getAllAdjacentSuggestions']())_0x35dff0['discard']();});});}['enableCommand'](_0x22503e,_0x59ee70){const _0x1b294e=this['editor']['commands']['get'](_0x22503e);if(!_0x1b294e)throw new _0x2c014e('track-changes-command-not-found',this,{'commandName':_0x22503e});if(this['_enabledCommands']['has'](_0x1b294e))throw new _0x2c014e('track-changes-enable-command-twice',this,{'commandName':_0x22503e});this['_enabledCommands']['add'](_0x1b294e),_0x59ee70&&_0x1b294e['on']('execute',(_0x80311f,_0x4d6231)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d6231['length']>0x0&&_0x4d6231[_0x4d6231['length']-0x1]&&_0x4d6231[_0x4d6231['length']-0x1]['forceDefaultExecution']?_0x4d6231['pop']():(_0x80311f['return']=_0x59ee70((..._0x5cb292)=>_0x1b294e['execute'](..._0x5cb292,{'forceDefaultExecution':!0x0}),..._0x4d6231),_0x80311f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x51821a){let _0x444524,_0xbb4105;const _0x70f7e6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x444524=_0x51821a();}catch(_0xeee8ba){_0xbb4105=_0xeee8ba;}return _0x70f7e6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbb4105&&_0x2c014e['rethrowUnexpectedError'](_0xbb4105,this),_0x444524;}['markInsertion'](_0x5442cd,_0x223bda=null,_0x1829eb={}){if(_0x5442cd['isCollapsed'])return null;const _0x1c4155=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1829eb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x12d502,meta:_0x57d474}of this['_findSuggestions'](_0x5442cd,'insertion'))if(_0x57d474['isOwn']){if(!_0x57d474['isNextTo']){if(_0x57d474['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x12d502,_0x1829eb))continue;return _0x12d502;}if(cn(_0x12d502,_0x1829eb))return _0x12d502;this['_breakSuggestionMarker'](_0x12d502,_0x5442cd['start'],_0x5442cd['end']);break;}if(_0x223bda==_0x12d502['subType']&&cn(_0x12d502,_0x1829eb)){const _0x165739=_0x12d502['getFirstRange']();return _0x165739['start']['isEqual'](_0x5442cd['end'])?this['_setSuggestionRange'](_0x12d502,this['_model']['createRange'](_0x5442cd['start'],_0x165739['end'])):this['_setSuggestionRange'](_0x12d502,this['_model']['createRange'](_0x165739['start'],_0x5442cd['end'])),_0x12d502;}}const _0x346fc1=_0x171c64(),_0x5a260b=_0x1c4155['id'],_0x4a19b2=_0x223bda?'insertion:'+_0x223bda:'insertion',_0x2a0471=this['_setSuggestionData']({'id':_0x346fc1,'type':_0x4a19b2,'createdAt':new Date(),'authorId':_0x5a260b,'attributes':_0x1829eb});return this['_addSuggestionMarker'](_0x4a19b2,_0x346fc1,_0x5a260b,_0x5442cd),_0x2a0471;}['markMultiRangeInsertion'](_0x18e120,_0x33c163='multi',_0x326be8={}){const _0x1f6287=this['editor']['plugins']['get']('Users')['me'],_0xd57cf2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x33c163,'join');this['_trackingSessionId']&&(_0x326be8['trackingSessionId']=this['_trackingSessionId']);for(const _0xde1157 of this['getSuggestions']())if(_0xde1157['author']['id']==_0x1f6287['id']&&'insertion'==_0xde1157['type']&&_0xde1157['subType']==_0x33c163&&cn(_0xde1157,_0x326be8)&&(_0xd57cf2(_0xde1157['getRanges'](),_0x18e120)||_0xd57cf2(_0x18e120,_0xde1157['getRanges']()))){for(const _0x99ad7b of _0x18e120)_0xde1157['addRange'](_0x99ad7b);return _0xde1157;}for(const {suggestion:_0x51c719,meta:_0x5266eb}of this['_findSuggestions'](_0x18e120,'insertion')){if(!_0x5266eb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5266eb['containsRangeInObject'])continue;if(!cn(_0x51c719,_0x326be8))continue;let _0x2e63a2=!0x0;for(const _0x5b1fc0 of _0x51c719['getRanges']())for(const _0x4db2b8 of _0x18e120)if(!_0x5b1fc0['containsRange'](_0x4db2b8)){_0x2e63a2=!0x1;break;}if(_0x2e63a2)return _0x51c719;}const _0x573464=_0x171c64(),_0x1ed5db=_0x1f6287['id'],_0x2272da='insertion:'+_0x33c163,_0x14f5e5=this['_setSuggestionData']({'id':_0x573464,'type':_0x2272da,'createdAt':new Date(),'authorId':_0x1ed5db,'attributes':_0x326be8});for(const _0x1e0ffd of _0x18e120)this['_addSuggestionMarker'](_0x2272da,_0x573464,_0x1ed5db,_0x1e0ffd,bt['getMultiRangeId']());return _0x14f5e5;}['markInlineFormat'](_0x4ab6d0,_0x33e694,_0x51e941=null,_0x3255e5={}){if(_0x51e941=_0x51e941||Je(_0x33e694),_0x4ab6d0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3255e5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5cf2bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51e941,'accept');return this['forceDefaultExecution'](()=>_0x5cf2bd([_0x4ab6d0],_0x33e694,_0x3255e5)),null;}const _0x45348c=this['editor']['plugins']['get']('Users')['me'],_0x1288bb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x239148,meta:_0x2c203c}of this['_findSuggestions'](_0x4ab6d0,'insertion'))_0x2c203c['isOwn']&&!_0x2c203c['isInsideObject']&&_0x1288bb['push'](..._0x239148['getRanges']());}const _0x1667b0=function(_0x228165,_0x597ce3){const _0x16c2a0=[];for(const _0x13b609 of _0x597ce3){const _0x2a44fe=_0x228165['getIntersection'](_0x13b609);_0x2a44fe&&_0x16c2a0['push'](_0x2a44fe);}return _0x16c2a0;}(_0x4ab6d0,_0x1288bb),_0x5311b5=function(_0x2841a4,_0x2ce981){const _0x5ba089=[_0x2841a4];for(const _0x34a91a of _0x2ce981){let _0x110436=0x0;for(;_0x110436<_0x5ba089['length'];){const _0x3727a9=_0x5ba089[_0x110436]['getDifference'](_0x34a91a);_0x5ba089['splice'](_0x110436,0x1,..._0x3727a9),_0x110436+=_0x3727a9['length'];}}return _0x5ba089;}(_0x4ab6d0,_0x1288bb);_0x1667b0['length']&&this['_model']['change'](()=>{for(const _0x1a7812 of _0x1667b0){const _0x2c5904=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51e941,'accept');this['forceDefaultExecution'](()=>_0x2c5904([_0x1a7812],_0x33e694,_0x3255e5));}});for(const _0x290c9f of _0x5311b5){let _0x482181=null,_0xd55c3=_0x290c9f['start'],_0xe59d9=_0x290c9f['end'];for(const {suggestion:_0x4a4af1,meta:_0x3c55a4}of this['_findSuggestions'](_0x290c9f,'formatInline')){if(!_0x3c55a4['isOwn'])continue;if(_0x4a4af1['subType']!=_0x51e941)continue;if(!cn(_0x4a4af1,_0x3255e5))continue;const _0x318f50=_0x4a4af1['getFirstRange']();if(_0x318f50['containsRange'](_0x290c9f,!0x0))return null;_0xd55c3=_0xd55c3['isBefore'](_0x318f50['start'])?_0xd55c3:_0x318f50['start'],_0xe59d9=_0xe59d9['isAfter'](_0x318f50['end'])?_0xe59d9:_0x318f50['end'],_0x482181?_0x318f50['start']['isBefore'](_0x482181['getFirstRange']()['start'])?(_0x482181['removeMarkers'](),_0x482181=_0x4a4af1):_0x4a4af1['removeMarkers']():_0x482181=_0x4a4af1;}const _0x4c6afe=this['_model']['createRange'](_0xd55c3,_0xe59d9);if(_0x482181)this['_setSuggestionRange'](_0x482181,_0x4c6afe);else{const _0x1e0920=_0x171c64(),_0xd0eb2c=_0x45348c['id'];this['_setSuggestionData']({'id':_0x1e0920,'type':'formatInline:'+_0x51e941,'data':_0x33e694,'createdAt':new Date(),'authorId':_0xd0eb2c,'attributes':_0x3255e5}),this['_addSuggestionMarker']('formatInline:'+_0x51e941,_0x1e0920,_0xd0eb2c,_0x4c6afe);}}return null;}['markBlockFormat'](_0x126606,_0x201521,_0x406ec3=[],_0x3b38bd=null,_0x54ad59={}){_0x201521['formatGroupId']||(_0x201521['formatGroupId']=_0x201521['commandName']),_0x201521['multipleBlocks']=_0x126606['is']('range'),_0x3b38bd=_0x3b38bd||Je(_0x201521);const _0x2e8f8d=_0x406ec3['map'](_0x34cdaf=>rn(_0x34cdaf,this['_model'])),_0x193e28=_0x126606['is']('range')?_0x126606:rn(_0x126606,this['_model']);if(this['_trackingSessionId']&&(_0x54ad59['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5db6ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b38bd,'accept');return this['forceDefaultExecution'](()=>_0x5db6ca([_0x193e28],_0x201521,_0x54ad59)),null;}_0x2e8f8d['push'](_0x193e28);let _0x1602b5=!0x0;for(const _0x21bb1a of _0x2e8f8d)if(!this['_rangeIsInLocalUserInsertion'](_0x21bb1a)){_0x1602b5=!0x1;break;}if(_0x1602b5&&'always'!==this['_trackFormatChanges']){const _0x486695=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b38bd,'accept');return this['forceDefaultExecution'](()=>_0x486695([_0x193e28],_0x201521,_0x54ad59)),null;}let _0x24f4a6=null,_0x1f3879=_0x193e28['start'],_0x5b95b3=_0x193e28['end'];for(const {suggestion:_0x435c43,meta:_0xdab7a2}of this['_findSuggestions'](_0x193e28,'formatBlock')){if(!_0xdab7a2['isOwn'])continue;if(_0xdab7a2['isNextTo']||_0xdab7a2['containsRangeInObject']||_0xdab7a2['isInsideObject'])continue;if(_0x435c43['data']['formatGroupId']!=_0x201521['formatGroupId'])continue;if(!cn(_0x435c43,_0x54ad59))continue;const _0x4c5dda=_0x435c43['getFirstRange']();if(_0x435c43['subType']==_0x3b38bd){if(_0x4c5dda['containsRange'](_0x193e28,!0x0))return null;_0x1f3879=_0x1f3879['isBefore'](_0x4c5dda['start'])?_0x1f3879:_0x4c5dda['start'],_0x5b95b3=_0x5b95b3['isAfter'](_0x4c5dda['end'])?_0x5b95b3:_0x4c5dda['end'],_0x24f4a6?_0x4c5dda['start']['isBefore'](_0x24f4a6['getFirstRange']()['start'])?(_0x24f4a6['removeMarkers'](),_0x24f4a6=_0x435c43):_0x435c43['removeMarkers']():_0x24f4a6=_0x435c43;}else{const _0x6a62b8=_0x193e28['getIntersection'](_0x4c5dda);this['_cutOutSuggestionMarker'](_0x435c43,_0x6a62b8);}}const _0x6ff09b=this['editor']['plugins']['get']('Users')['me'],_0x308c89=_0x171c64(),_0x179462=_0x6ff09b['id'];if(_0x24f4a6)return this['_setSuggestionRange'](_0x24f4a6,this['_model']['createRange'](_0x1f3879,_0x5b95b3)),_0x24f4a6;{const _0x223e96=this['_setSuggestionData']({'id':_0x308c89,'type':'formatBlock:'+_0x3b38bd,'data':_0x201521,'createdAt':new Date(),'authorId':_0x179462,'attributes':_0x54ad59});return this['_addSuggestionMarker']('formatBlock:'+_0x3b38bd,_0x308c89,_0x179462,this['_model']['createRange'](_0x1f3879,_0x5b95b3)),_0x223e96;}}['markMultiRangeBlockFormat'](_0x56ca5a,_0x5b68b2,_0x754c3f=[],_0x3f9e21=null,_0x57917e={}){_0x5b68b2['formatGroupId']||(_0x5b68b2['formatGroupId']=_0x5b68b2['commandName']);const _0x41af41=_0x56ca5a[0x0];_0x5b68b2['multipleBlocks']=_0x41af41['is']('range'),_0x3f9e21=_0x3f9e21||Je(_0x5b68b2);const _0x9aace7=_0x754c3f['map'](_0x11de0d=>rn(_0x11de0d,this['_model'])),_0x266120=_0x41af41['is']('range')?_0x56ca5a:_0x56ca5a['map'](_0x3d2385=>rn(_0x3d2385,this['_model']));if(this['_trackingSessionId']&&(_0x57917e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39718d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9e21,'accept');return this['forceDefaultExecution'](()=>_0x39718d(_0x266120,_0x5b68b2,_0x57917e)),null;}_0x9aace7['push'](..._0x266120);let _0x4bbb88=!0x0;for(const _0x2dc363 of _0x9aace7)if(!this['_rangeIsInLocalUserInsertion'](_0x2dc363)){_0x4bbb88=!0x1;break;}if(_0x4bbb88&&'always'!==this['_trackFormatChanges']){const _0x3c3ae2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9e21,'accept');return this['forceDefaultExecution'](()=>_0x3c3ae2(_0x266120,_0x5b68b2,_0x57917e)),null;}const _0x5c585a=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c57f5 of this['getSuggestions']()){const _0xad6db2=_0x2c57f5['data'];if(_0x2c57f5['author']['id']!=_0x5c585a['id'])continue;if('formatBlock'!=_0x2c57f5['type']||_0xad6db2['formatGroupId']!=_0x5b68b2['formatGroupId'])continue;if(!cn(_0x2c57f5,_0x57917e))continue;const _0x9dffec=_0x2c57f5['subType']==_0x3f9e21;for(let _0x5e6662=0x0;_0x5e6662<_0x266120['length'];_0x5e6662++){const _0x5ada1d=_0x266120[_0x5e6662];for(const _0x35177f of _0x2c57f5['getMarkers']()){const _0x3b4d2e=_0x35177f['getRange']();if(_0x5ada1d['isEqual'](_0x3b4d2e)){_0x9dffec?(_0x266120['splice'](_0x5e6662,0x1),_0x5e6662--):_0x2c57f5['removeMarker'](_0x35177f['name']);break;}}}}if(0x0==_0x266120['length'])return null;const _0x4c3a32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9e21,'join');for(const _0x1d2816 of this['getSuggestions']()){const _0x4413fb=_0x1d2816['data'];if(_0x1d2816['author']['id']==_0x5c585a['id']&&('formatBlock'==_0x1d2816['type']&&_0x4413fb['formatGroupId']==_0x5b68b2['formatGroupId']&&_0x1d2816['subType']==_0x3f9e21&&cn(_0x1d2816,_0x57917e)&&(_0x4c3a32(_0x1d2816['getRanges'](),_0x266120)||_0x4c3a32(_0x266120,_0x1d2816['getRanges']())))){for(const _0x28b152 of _0x266120)_0x1d2816['addRange'](_0x28b152);return _0x1d2816;}}const _0x4f78cc=_0x171c64(),_0x3221fb=_0x5c585a['id'],_0x437aee='formatBlock:'+_0x3f9e21,_0x11ec44=this['_setSuggestionData']({'id':_0x4f78cc,'type':_0x437aee,'data':_0x5b68b2,'createdAt':new Date(),'authorId':_0x3221fb,'attributes':_0x57917e});for(const _0x36f2d7 of _0x266120)this['_addSuggestionMarker'](_0x437aee,_0x4f78cc,_0x3221fb,_0x36f2d7,bt['getMultiRangeId']());return _0x11ec44;}['markDeletion'](_0x433e03,_0x25e254=null,_0xa03bee={}){if(_0x433e03['isCollapsed'])return null;const _0x59f062=this['editor']['plugins']['get']('Users')['me'],_0x4ec7e2=new _0x121353(_0x433e03['start'],_0x433e03['end']);this['_trackingSessionId']&&(_0xa03bee['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x37d0e8,meta:_0x30f33f}of this['_findSuggestions'](_0x4ec7e2,'insertion'))if(_0x30f33f['isOwn']&&!_0x30f33f['isNextTo']){if(_0x37d0e8['isMultiRange']){const _0x33249d=_0x37d0e8['getRanges']()['filter'](_0xa66668=>'$graveyard'!=_0xa66668['root']['rootName']);_0x33249d['every'](_0x14de6f=>_0x4ec7e2['containsRange'](_0x14de6f,!0x0))&&_0x37d0e8['discard']();if(_0x33249d['some'](_0x1cb388=>_0x1cb388['containsRange'](_0x4ec7e2,!0x0))){const _0x4d7d39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25e254,'accept');return this['forceDefaultExecution'](()=>_0x4d7d39([_0x4ec7e2],null,_0xa03bee)),null;}}else{const _0x27e45e=_0x4ec7e2['getIntersection'](_0x37d0e8['getFirstRange']());null!==_0x27e45e&&_0x37d0e8['_onDiscard']([_0x27e45e],null,_0xa03bee);}}if(_0x4ec7e2['detach'](),_0x4ec7e2['isCollapsed']||'$graveyard'==_0x4ec7e2['root']['rootName'])return null;let _0x31f247=null,_0xccbb32=_0x4ec7e2['start'],_0x1e2597=_0x4ec7e2['end'];const _0x38506f=this['_findSuggestions'](_0x4ec7e2,'deletion');for(const {suggestion:_0x5ccfcf,meta:_0x57e3f0}of _0x38506f){const _0x25f42d=this['_model']['createRange'](_0xccbb32,_0x1e2597);if(_0x57e3f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57e3f0['containsRangeInObject']&&!_0x57e3f0['isInsideObject'])){if(_0x5ccfcf['isMultiRange']){if(!cn(_0x5ccfcf,_0xa03bee))continue;let _0x173ca4=!0x0;for(const _0x1d9ee2 of _0x5ccfcf['getRanges']()){if(_0x1d9ee2['containsRange'](_0x25f42d,!0x0))return _0x5ccfcf;_0x25f42d['containsRange'](_0x1d9ee2)||(_0x173ca4=!0x1);}_0x173ca4&&_0x5ccfcf['discard']();}else{const _0x2669d9=_0x5ccfcf['getFirstRange']();if(_0x2669d9['containsRange'](_0x25f42d,!0x0))return _0x5ccfcf;if(!cn(_0x5ccfcf,_0xa03bee)){_0x25f42d['containsRange'](_0x2669d9)?_0x5ccfcf['removeMarkers']():_0x2669d9['containsPosition'](_0xccbb32)?_0xccbb32=_0x2669d9['end']:_0x2669d9['containsPosition'](_0x1e2597)&&(_0x1e2597=_0x2669d9['start']);continue;}_0xccbb32=_0xccbb32['isBefore'](_0x2669d9['start'])?_0xccbb32:_0x2669d9['start'],_0x1e2597=_0x1e2597['isAfter'](_0x2669d9['end'])?_0x1e2597:_0x2669d9['end'],_0xa03bee=Object['assign']({},_0x5ccfcf['attributes']),_0x31f247?_0x2669d9['start']['isBefore'](_0x31f247['getFirstRange']()['start'])?(_0x31f247['removeMarkers'](),_0x31f247=_0x5ccfcf):_0x5ccfcf['removeMarkers']():_0x31f247=_0x5ccfcf;}}}if(_0x31f247)return this['_setSuggestionRange'](_0x31f247,this['_model']['createRange'](_0xccbb32,_0x1e2597)),_0x31f247;{const _0x43e238=_0x171c64(),_0x118f90=this['_model']['createRange'](_0xccbb32,_0x1e2597),_0x3a4e81=_0x59f062['id'],_0x3a4ed8=_0x25e254?'deletion:'+_0x25e254:'deletion',_0x20f7da=this['_setSuggestionData']({'id':_0x43e238,'type':_0x3a4ed8,'createdAt':new Date(),'authorId':_0x3a4e81,'attributes':_0xa03bee});return this['_addSuggestionMarker'](_0x3a4ed8,_0x43e238,_0x3a4e81,_0x118f90),_0x20f7da;}}['markMultiRangeDeletion'](_0x1e16f1,_0x3e9013='multi',_0x2d7ac7={}){const _0x227732=this['editor']['plugins']['get']('Users')['me'],_0xe9e466=_0x1e16f1['map'](_0x3102b6=>new _0x121353(_0x3102b6['start'],_0x3102b6['end'])),_0x1ce0e9=new Set();this['_trackingSessionId']&&(_0x2d7ac7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xfb688f,meta:_0x433f0b}of this['_findSuggestions'](_0xe9e466,'insertion'))_0x433f0b['isOwn']&&!_0x433f0b['isNextTo']&&_0x1ce0e9['add'](_0xfb688f);for(const _0x5141bc of _0x1ce0e9)if(_0x5141bc['isMultiRange']){const _0x5d453c=_0x5141bc['getRanges']();(!_0x5141bc['attributes']||!_0x5141bc['attributes']['skipNestingCheck'])&&(_0x5d453c['every'](_0x31b1e0=>_0xe9e466['some'](_0x17bcf0=>_0x17bcf0['containsRange'](_0x31b1e0,!0x0)))&&_0x5141bc['discard']());if(_0xe9e466['every'](_0x2c633f=>_0x5d453c['some'](_0x290d09=>_0x290d09['containsRange'](_0x2c633f,!0x0)))){const _0x59ed1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e9013,'accept');return this['forceDefaultExecution'](()=>_0x59ed1e(_0x1e16f1,null,_0x2d7ac7)),null;}}else{const _0x301ab2=_0x5141bc['getFirstRange']();_0xe9e466['some'](_0x2f1fa6=>_0x2f1fa6['containsRange'](_0x301ab2,!0x0))&&_0x5141bc['discard']();if(_0xe9e466['every'](_0x6a56d=>_0x301ab2['containsRange'](_0x6a56d,!0x0))){const _0x30e15b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e9013,'accept');return this['forceDefaultExecution'](()=>_0x30e15b(_0xe9e466,null,_0x2d7ac7)),null;}}const _0x630d77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e9013,'join');let _0x12b8d6=null;for(const _0x50766c of this['getSuggestions']())if(_0x50766c['author']['id']==_0x227732['id']&&_0x50766c['isInContent']&&'deletion'==_0x50766c['type']&&_0x50766c['subType']==_0x3e9013&&cn(_0x50766c,_0x2d7ac7)&&(_0x630d77(_0x50766c['getRanges'](),_0xe9e466)||_0x630d77(_0xe9e466,_0x50766c['getRanges']()))){if(_0x12b8d6){if(_0x50766c['commentThread']&&_0x50766c['commentThread']['length'])continue;for(const _0xc68744 of _0x50766c['getRanges']())_0x12b8d6['isIntersectingWithRange'](_0xc68744)||_0x12b8d6['addRange'](_0xc68744);_0x50766c['removeMarkers']();}else{_0x12b8d6=_0x50766c;for(const _0x1a5221 of _0xe9e466)_0x50766c['isIntersectingWithRange'](_0x1a5221)||_0x50766c['addRange'](_0x1a5221);}}if(_0x12b8d6)return _0x12b8d6;_0x1ce0e9['clear']();for(const {suggestion:_0x52b6a9,meta:_0x467bda}of this['_findSuggestions'](_0xe9e466,'deletion'))_0x467bda['isOwn']&&(this['_mergeNestedSuggestions']||!_0x467bda['containsRangeInObject']&&!_0x467bda['isInsideObject'])&&cn(_0x52b6a9,_0x2d7ac7)&&_0x1ce0e9['add'](_0x52b6a9);for(const _0x41f8c8 of _0x1ce0e9){const _0x550307=_0x41f8c8['getRanges']();if(!_0x2d7ac7||!_0x2d7ac7['skipNestingCheck']){if(_0xe9e466['every'](_0x146a60=>_0x550307['some'](_0x4c00a6=>_0x4c00a6['containsRange'](_0x146a60,!0x0))))return _0x41f8c8;}(!_0x41f8c8['attributes']||!_0x41f8c8['attributes']['skipNestingCheck'])&&(_0x550307['every'](_0x4816ea=>_0xe9e466['some'](_0x1961b3=>_0x1961b3['containsRange'](_0x4816ea,!0x0)))&&_0x41f8c8['discard']());}const _0x13f412=_0x171c64(),_0x12a9c8=_0x227732['id'],_0x246f54='deletion:'+_0x3e9013,_0x35f108=this['_setSuggestionData']({'id':_0x13f412,'type':_0x246f54,'createdAt':new Date(),'authorId':_0x12a9c8,'attributes':_0x2d7ac7});for(const _0x3ad410 of _0xe9e466)_0x3ad410['detach'](),_0x3ad410['isCollapsed']||'$graveyard'==_0x3ad410['root']['rootName']||this['_addSuggestionMarker'](_0x246f54,_0x13f412,_0x12a9c8,_0x3ad410,bt['getMultiRangeId']());return _0x35f108;}['markAttributeChange'](_0x5acbb6,_0x390bac,_0x2b7490,_0x436432,_0x1048be){if(_0x5acbb6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x16b8dd=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bd1e9=Array['from'](this['_suggestions']['values']())['filter'](_0x1cf417=>'attribute'==_0x1cf417['type']&&_0x1cf417['data']['key']==_0x390bac&&_0x1cf417['isIntersectingWithRange'](_0x5acbb6));if(this['_trackingSessionId']&&(_0x1048be['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x418644=this['_findSuggestions'](_0x5acbb6,'insertion')['filter'](({meta:_0x5e75a3})=>_0x5e75a3['isOwn']&&!_0x5e75a3['isInsideObject']&&!_0x5e75a3['isNextTo'])['map'](({suggestion:_0x1783b6})=>_0x1783b6);_0x5bd1e9['unshift'](..._0x418644);}const _0x26b001=new Map([[_0x5acbb6,_0x2b7490]]);for(const _0x3874f7 of _0x5bd1e9){const _0x45f05e='attribute'==_0x3874f7['type']?_0x3874f7['data']['oldValue']:void 0x0,_0x5ef6e9=_0x3874f7['getFirstRange'](),_0x40ff83=Array['from'](_0x26b001['keys']())['find'](_0x1c2ad2=>_0x1c2ad2['isIntersecting'](_0x5ef6e9));if(!_0x40ff83)continue;const _0x18e64f=_0x40ff83['getDifference'](_0x5ef6e9);this['_suggestionsConversion']['isBlockAttribute'](_0x390bac)&&'insertion'==_0x3874f7['type']&&0x0!=_0x18e64f['length']||(_0x26b001['delete'](_0x40ff83),_0x18e64f['forEach'](_0x1ebf6c=>{_0x26b001['set'](_0x1ebf6c,_0x2b7490);}),'insertion'!=_0x3874f7['type']&&_0x45f05e!=_0x436432&&_0x26b001['set'](_0x40ff83['getIntersection'](_0x5ef6e9),_0x45f05e));}const _0x5dec11=[];for(const [_0x407954,_0x10c2ca]of _0x26b001){const _0x1fc5ba=_0x171c64(),_0x773ab3={'key':_0x390bac,'oldValue':_0x10c2ca,'newValue':_0x436432};_0x390bac['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':_0x390bac});const _0x2c63ea=('attribute:'+(_0x390bac+'|'+Je({'newValue':_0x436432})))['substring'](0x0,0x3c),_0xd69b7d=this['_setSuggestionData']({'id':_0x1fc5ba,'type':_0x2c63ea,'data':_0x773ab3,'createdAt':new Date(),'authorId':_0x16b8dd,'attributes':_0x1048be});_0x5dec11['push'](_0xd69b7d),this['_addSuggestionMarker'](_0x2c63ea,_0x1fc5ba,_0x16b8dd,_0x407954);}return _0x5dec11;}['enableDefaultAttributesIntegration'](_0x6f8565){this['enableCommand'](_0x6f8565,(_0xf534c6,..._0x554ec6)=>{this['recordAttributeChanges'](()=>{_0xf534c6(..._0x554ec6);});});}['startTrackingSession'](_0x2d4514){return this['_trackingSessionId']=void 0x0!==_0x2d4514?_0x2d4514:_0x171c64(),this['_trackingSessionId'];}['_getAttributeKey'](_0x36a4d1){return'attribute'==_0x36a4d1['type']?un(_0x36a4d1['subType']):null;}['_applyOperationsAsSuggestions'](_0xa5e19a){if(0x0==_0xa5e19a['length'])return;const _0x509e78=this['editor'],_0x1c0c21=_0x509e78['plugins']['get'](_0x48278f),_0x47f81e=[];_0x509e78['model']['change'](_0xfcd7eb=>{for(let _0x4a17d9=0x0;_0x4a17d9<_0xa5e19a['length'];_0x4a17d9++){const _0x12019c=_0xa5e19a[_0x4a17d9];if(_0x12019c['baseVersion']=_0x509e78['model']['document']['version'],_0x12019c['isDocumentOperation']=!0x0,_0x1c0c21['isMarkedRemoveOperation'](_0x12019c)){const _0x46cb7f=_0x8f03da(_0x12019c['newRange'],_0x509e78['model']);_0x47f81e['unshift'](_0x121353['fromRange'](_0x46cb7f));}else switch(_0x12019c['type']){case'rename':{const _0x30546a=_0x12019c['oldName'],_0x386580=_0x12019c['newName'];if(_0x30546a==_0x386580)break;_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);const _0x1d269c='$elementName',_0x252ce6=_0x12019c['position'],_0x1f8cb8=_0x509e78['model']['createRange'](_0x252ce6,_0x509e78['model']['createPositionAt'](_0x252ce6['nodeAfter'],'end'));this['markAttributeChange'](_0x1f8cb8,_0x1d269c,_0x30546a,_0x386580,{'groupId':_0x171c64()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x283a20=_0x12019c['oldValue'],_0xb35ded=_0x12019c['newValue'];if(_0x283a20==_0xb35ded)break;_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);const _0x5b1673=_0x12019c['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5b1673))break;const _0x130092=_0x8f03da(_0x12019c['range'],_0x509e78['model']);this['markAttributeChange'](_0x130092,_0x5b1673,_0x283a20,_0xb35ded,{'groupId':_0x171c64()});break;}case'insert':{_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);if(_0xa5e19a[_0x4a17d9+0x1]&&'move'==_0xa5e19a[_0x4a17d9+0x1]['type'])break;const _0x2fc1f2=_0x12019c['position'],_0x5d1272=_0x12019c['howMany'],_0x13716e=_0x8f03da(_0x509e78['model']['createRange'](_0x2fc1f2,_0x2fc1f2['getShiftedBy'](_0x5d1272)),_0x509e78['model']);this['markInsertion'](_0x13716e);break;}case'split':{_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);const _0x7d4969=_0x12019c['splitPosition'],_0x45d10e=_0x12019c['moveTargetPosition'];this['markInsertion'](_0x509e78['model']['createRange'](_0x7d4969,_0x45d10e));break;}case'move':case'remove':_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);}}for(const _0x4b16b2 of _0x47f81e)_0x4b16b2['detach'](),this['markDeletion'](_0x4b16b2);});}['_setSuggestionRange'](_0x4cbfe7,_0x7d5727){const _0x5f58b7=_0x4cbfe7['getFirstMarker']();this['_model']['change'](_0x476322=>{_0x476322['updateMarker'](_0x5f58b7,{'range':_0x7d5727});});}['_addThreadToSuggestion'](_0x23afcb){const _0x4f895a=_0x23afcb['id'],_0x145b28=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f895a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x145b28,'threadId':_0x4f895a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x56df53=this['_commentsRepository']['getCommentThread'](_0x4f895a);_0x56df53['unbind']('isRemovable'),_0x56df53['isRemovable']=!0x1,_0x23afcb['commentThread']=_0x56df53;}['_checkSuggestionCorrectness'](_0x17d41e,_0x1c635f,_0x4ca162,_0x4ae9ec){if(_0x17d41e['type']!=_0x1c635f||_0x17d41e['subType']!=_0x4ca162||_0x17d41e['creator']['id']!=_0x4ae9ec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c014e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x580833,_0x1f6d01){const _0x56bf1f=_0x580833['getFirstRange']();if(_0x1f6d01['isEqual'](_0x56bf1f))_0x580833['removeMarkers']();else{if(_0x56bf1f['containsRange'](_0x1f6d01)){const _0x378d99=this['_model']['createPositionAt'](_0x1f6d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x580833,this['_model']['createRange'](_0x56bf1f['start'],_0x378d99));const _0x142b89=_0x171c64(),_0x533150=_0x580833['creator']['id'],_0x4952de=_0x580833['type']+':'+_0x580833['subType'];this['_setSuggestionData']({'id':_0x142b89,'type':_0x4952de,'createdAt':new Date(),'authorId':_0x533150,'data':_0x580833['data'],'attributes':_0x580833['attributes']});const _0x4281b9=this['_model']['createPositionAt'](_0x1f6d01['end']['parent'],'after'),_0xd058c7=this['_model']['createRange'](_0x4281b9,_0x56bf1f['end']);this['_addSuggestionMarker'](_0x4952de,_0x142b89,_0x533150,_0xd058c7);}else{if(_0x56bf1f['containsPosition'](_0x1f6d01['start'])){const _0x373263=this['_model']['createPositionAt'](_0x1f6d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x580833,this['_model']['createRange'](_0x56bf1f['start'],_0x373263));}else{const _0x2ce8f8=this['_model']['createPositionAt'](_0x1f6d01['end']['parent'],'after');this['_setSuggestionRange'](_0x580833,this['_model']['createRange'](_0x2ce8f8,_0x56bf1f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x180b8d){for(const {suggestion:_0x4a71e5,meta:_0x3e4631}of this['_findSuggestions'](_0x180b8d,'insertion')){if(!_0x3e4631['isOwn'])continue;const _0x15d612=_0x4a71e5['getRanges']();for(const _0x5281d5 of _0x15d612)if(!_0x180b8d['getDifference'](_0x5281d5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x370fa9){return this['editor']['plugins']['get']('Users')['getUser'](_0x370fa9);}['_getExternalAuthor'](_0x23f4f3){const _0x3edb13=this['editor']['plugins']['get']('Users'),_0xc8349e=_0x297123('external:'+_0x23f4f3),_0x412f94=_0x3edb13['getUser'](_0xc8349e);return _0x412f94||_0x3edb13['addUser']({'id':_0xc8349e,'name':_0x23f4f3});}['_createSuggestion'](_0xea6208,_0x584975,_0x1fbc43,_0x11c064,_0x189b44,_0x3d7b71){const _0x4990a8=this['_getAuthorFromId'](_0x11c064);if(!_0x4990a8)throw new _0x2c014e('track-changes-user-not-found',this,{'authorId':_0x11c064,'suggestionId':_0x1fbc43});const _0x4e8b6a=this['_suggestionFactory']['buildSuggestion'](_0xea6208,_0x584975,_0x1fbc43,_0x4990a8,_0x189b44,_0x3bbe7e=>{this['_updateSuggestionData'](_0x1fbc43,{'attributes':_0x3bbe7e});const _0x2b727b=this['getSuggestion'](_0x1fbc43);this['_joinWithAdjacentSuggestions'](new Set([_0x2b727b])),this['_refreshSuggestionsChain'](new Set([_0x2b727b]));},_0x3d7b71);return this['listenTo'](_0x4e8b6a,'accept',()=>{this['_updateSuggestionData'](_0x1fbc43,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4e8b6a,'discard',()=>{this['_updateSuggestionData'](_0x1fbc43,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1fbc43,_0x4e8b6a),this['_suggestionState']['set'](_0x4e8b6a,'notReady'),_0x4e8b6a;}['_breakSuggestionMarker'](_0x128a6e,_0x21fab3,_0x1fa01b){const _0x2ef91d=_0x128a6e['getFirstRange'](),_0x4623b2=_0x2ef91d['start'],_0x38713e=_0x2ef91d['end'];this['_setSuggestionRange'](_0x128a6e,this['_model']['createRange'](_0x4623b2,_0x21fab3));const _0xe7e548=_0x171c64(),_0x57d0fb=_0x128a6e['creator']['id'],_0x4cf16b=_0x128a6e['type']+(_0x128a6e['subType']?':'+_0x128a6e['subType']:'');this['_setSuggestionData']({'id':_0xe7e548,'type':_0x4cf16b,'createdAt':new Date(),'authorId':_0x57d0fb,'originalSuggestionId':_0x128a6e['_originalSuggestionId']||_0x128a6e['id'],'attributes':_0x128a6e['attributes'],'data':_0x128a6e['data']});const _0x2a8ad6=this['_getAttributeKey'](_0x128a6e);('formatBlock'==_0x128a6e['type']||_0x2a8ad6&&this['_suggestionsConversion']['isBlockAttribute'](_0x2a8ad6))&&(_0x1fa01b=this['_model']['createPositionBefore'](_0x1fa01b['parent'])),this['_addSuggestionMarker'](_0x4cf16b,_0xe7e548,_0x57d0fb,this['_model']['createRange'](_0x1fa01b,_0x38713e));}['_findSuggestions'](_0x14c081,_0x53ceb6=null){const _0x4d258c=[],_0x5c12bd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14c081)||(_0x14c081=[_0x14c081]);for(const _0x53ba56 of this['getSuggestions']()){if(!_0x53ba56['isInContent'])continue;if(_0x53ceb6&&_0x53ba56['type']!=_0x53ceb6)continue;let _0x154958=!0x1;for(const _0x5659df of _0x53ba56['getRanges']()){for(const _0x5627b6 of _0x14c081){const _0x1e1948=_0x5627b6['start']['isEqual'](_0x5659df['end'])||_0x5627b6['end']['isEqual'](_0x5659df['start']);if(_0x1e1948||_0x5627b6['getIntersection'](_0x5659df)){const _0x32277a=_0x5627b6['containsRange'](_0x5659df)&&qe(this['_model']['schema'],_0x5659df['start'],_0x5627b6),_0x274ad1=_0x5659df['containsRange'](_0x5627b6)&&qe(this['_model']['schema'],_0x5627b6['start'],_0x5659df);_0x4d258c['push']({'suggestion':_0x53ba56,'meta':{'isOwn':_0x5c12bd==_0x53ba56['author'],'isNextTo':_0x1e1948,'isInsideObject':_0x32277a,'containsRangeInObject':_0x274ad1}}),_0x154958=!0x0;break;}}if(_0x154958)break;}}return _0x4d258c;}['_addSuggestionMarker'](_0x33dff4,_0x2dd4f2,_0x358481,_0x8cbd0f,_0x5c8e2c){this['_model']['change'](_0x49e062=>{let _0x5ba04c='suggestion:'+_0x33dff4+':'+_0x2dd4f2+':'+_0x358481;_0x5c8e2c&&(_0x5ba04c=_0x5ba04c+':'+_0x5c8e2c),_0x49e062['addMarker'](_0x5ba04c,{'range':_0x8cbd0f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31ffaa){const _0x3e2ccf=_0x31ffaa['previous'],_0x2e434b=_0x31ffaa['next'];_0x31ffaa['previous']=null,_0x31ffaa['next']=null,null!=_0x3e2ccf&&_0x3e2ccf['next']==_0x31ffaa&&(_0x3e2ccf['next']=_0x2e434b),null!=_0x2e434b&&_0x2e434b['previous']==_0x31ffaa&&(_0x2e434b['previous']=_0x3e2ccf),'ready'==this['_suggestionState']['get'](_0x31ffaa)&&(this['_suggestionState']['set'](_0x31ffaa,'removed'),this['fire']('suggestionUnloaded',_0x31ffaa,_0x3e2ccf,_0x2e434b));}['_setSuggestionData'](_0x311703){const _0x5dc9fb=_0x311703['id'],_0x305029=this['addSuggestionData'](_0x311703);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4847a5=this['editor']['plugins']['get']('PendingActions'),_0x2f4570=_0x305029['hasComments'],_0x503a48=_0x305029['subType']?_0x305029['type']+':'+_0x305029['subType']:_0x305029['type'],_0x4d0994=this['editor']['locale'],_0x367d90=_0x4847a5['add'](At(_0x4d0994,'PENDING_ACTION_SUGGESTION')),_0x1e395c={'id':_0x5dc9fb,'type':_0x503a48,'hasComments':_0x2f4570,'data':_0x311703['data']||null,'originalSuggestionId':_0x311703['originalSuggestionId']||null,'attributes':_0x305029['attributes']};this['_adapter']['addSuggestion'](_0x1e395c)['then'](_0x20a4a5=>{_0x305029['_saved']=!0x0,_0x4847a5['remove'](_0x367d90),_0x20a4a5&&_0x20a4a5['createdAt']&&(this['_suggestions']['get'](_0x5dc9fb)['createdAt']=_0x20a4a5['createdAt']);})['catch'](_0xf915c5=>{throw _0x5a7ef0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x305029['discard']();}),_0x305029['stopListening'](),this['_suggestions']['delete'](_0x305029['id']),this['_suggestionState']['delete'](_0x305029),_0xf915c5;});}return _0x305029;}['_updateSuggestionData'](_0x48d201,_0x3f200b){const _0x32f160=this['editor']['plugins']['get']('PendingActions'),_0x50ae73=this['getSuggestion'](_0x48d201);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50ae73['_saved']){const _0x4fbe3e=_0x32f160['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x48d201,_0x3f200b)['then'](()=>{_0x32f160['remove'](_0x4fbe3e);});}else _0x50ae73['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x48d201,_0x3f200b);});}}['_getSuggestionData'](_0xc157c6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c014e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc157c6);}['_handleNewSuggestionMarker'](_0x4ace89){const {id:_0x577512,type:_0x384eac,subType:_0x4f1e95,authorId:_0x4b2faa}=_0x39dc22(_0x4ace89),_0x586a13=this['_suggestions']['get'](_0x577512)||this['_createSuggestion'](_0x384eac,_0x4f1e95,_0x577512,_0x4b2faa,{});switch(this['_checkSuggestionCorrectness'](_0x586a13,_0x384eac,_0x4f1e95,_0x4b2faa),this['_suggestionState']['get'](_0x586a13)){case'notReady':this['_getSuggestionData'](_0x577512)['then'](_0x2425f4=>{let _0x2003f1=Promise['resolve']();_0x2425f4['hasComments']&&(_0x2003f1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x577512})),_0x2003f1['then'](()=>{this['addSuggestionData'](_0x2425f4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x586a13,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x577512,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x586a13,'ready'),this['fire']('suggestionLoaded',_0x586a13);break;case'ready':this['fire']('suggestionChanged',_0x586a13);}return _0x586a13['addMarkerName'](_0x4ace89),_0x586a13;}['_refreshSuggestionsChain'](_0x3cd879){const _0x47d29b=Array['from'](_0x3cd879),_0x205aa0=_0x47d29b['filter'](_0x5a4f11=>'attribute'==_0x5a4f11['type']);this['_refreshAttributeSuggestionsChain'](_0x205aa0);const _0x232d65=_0x47d29b['filter'](_0xaa3e28=>!_0xaa3e28['isMultiRange']&&'attribute'!=_0xaa3e28['type']),_0xa9c015=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bf78e=>!_0x1bf78e['isMultiRange']&&'attribute'!=_0x1bf78e['type']),_0x105c59=_0xa9c015['filter'](_0x353002=>!_0x3cd879['has'](_0x353002)),_0x4e894c=new Map(_0xa9c015['map'](_0xca3e9b=>[_0xca3e9b,this['_suggestionFactory']['getSuggestionCallback'](_0xca3e9b['type'],_0xca3e9b['subType'],'chain')])),_0x5da72a=new Map(_0xa9c015['map'](_0x1b0dd9=>[_0x1b0dd9,_0x1b0dd9['getFirstRange']()])),_0x511340=new Set(),_0x5717a9=new Set();for(let _0x532b52=0x0;_0x532b52<_0x232d65['length'];_0x532b52++)_0x146824(_0x232d65[_0x532b52],_0x232d65,_0x532b52+0x1);for(let _0x695f7c=0x0;_0x695f7c<_0x232d65['length'];_0x695f7c++)_0x146824(_0x232d65[_0x695f7c],_0x105c59,0x0);const _0x440f94=new Set();for(let _0x5bad19=0x0;_0x5bad19<_0x232d65['length'];_0x5bad19++){const _0xbf9f1d=_0x232d65[_0x5bad19];!_0x5717a9['has'](_0xbf9f1d)&&_0xbf9f1d['previous']&&(_0x440f94['add'](_0xbf9f1d['previous']),_0xbf9f1d['previous']['next']===_0xbf9f1d&&(_0xbf9f1d['previous']['next']=null),_0xbf9f1d['previous']=null),!_0x511340['has'](_0xbf9f1d)&&_0xbf9f1d['next']&&(_0x440f94['add'](_0xbf9f1d['next']),_0xbf9f1d['next']['previous']===_0xbf9f1d&&(_0xbf9f1d['next']['previous']=null),_0xbf9f1d['next']=null);}function _0x146824(_0x33406b,_0x571793,_0x2dd4d5){for(let _0x1259c4=_0x2dd4d5;_0x1259c4<_0x571793['length'];_0x1259c4++){const _0x4a280a=_0x5dfb96(_0x33406b,_0x571793[_0x1259c4]);_0x4a280a&&(_0x4a280a[0x0]['next']=_0x4a280a[0x1],_0x4a280a[0x1]['previous']=_0x4a280a[0x0],_0x511340['add'](_0x4a280a[0x0]),_0x5717a9['add'](_0x4a280a[0x1]));}}function _0x5dfb96(_0x4a5692,_0x4a5996){if(_0x4a5692['author']['id']!==_0x4a5996['author']['id'])return null;const _0x97861e=_0x4e894c['get'](_0x4a5692)(_0x4a5692,_0x4a5996,_0x5da72a['get'](_0x4a5692),_0x5da72a['get'](_0x4a5996));if(!_0x97861e)return null;return _0x4e894c['get'](_0x4a5996)(_0x4a5692,_0x4a5996,_0x5da72a['get'](_0x4a5692),_0x5da72a['get'](_0x4a5996))?_0x97861e[0x1]['commentThread']&&_0x97861e[0x1]['commentThread']['length']?null:_0x97861e:null;}_0x440f94['size']&&this['_refreshSuggestionsChain'](_0x440f94);}['_refreshAttributeSuggestionsChain'](_0x4e7124){if(0x0==_0x4e7124['length'])return;const _0x2e7752=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x356bbd=>'attribute'==_0x356bbd['type']&&_0x356bbd['_isDataLoaded']),_0x23f29e=[],_0xc01c63=new Map();for(const _0x56d6aa of _0x2e7752){const _0x1afe0c=_0x297123(_0x56d6aa['attributes']);_0xc01c63['has'](_0x1afe0c)||(_0xc01c63['set'](_0x1afe0c,_0x23f29e['length']),_0x23f29e['push']([]));const _0xdc7d03=_0xc01c63['get'](_0x1afe0c);_0x23f29e[_0xdc7d03]['push'](_0x56d6aa);}!(function(){_0x23f29e['sort']((_0x3f48f1,_0x4ac76e)=>{const _0x47e415=_0x3f48f1[0x0]['createdAt'],_0x1bf5f8=_0x4ac76e[0x0]['createdAt'];return _0x47e415==_0x1bf5f8?_0x3f48f1[0x0]['attributes']['groupId']<_0x4ac76e[0x0]['attributes']['groupId']?-0x1:0x1:_0x47e415<_0x1bf5f8?-0x1:0x1;});for(const _0x40fb60 of _0x23f29e)_0x40fb60['sort']((_0x53a2c9,_0x497968)=>_0x53a2c9['id']<_0x497968['id']?-0x1:0x1);}());for(let _0x31c2ff=0x0;_0x31c2ff<_0x23f29e['length'];_0x31c2ff++){if(0x0==_0x23f29e[_0x31c2ff]['length'])continue;const _0x1d29b9=[];for(let _0x434a50=_0x31c2ff+0x1;_0x434a50<_0x23f29e['length'];_0x434a50++)0x0!=_0x23f29e[_0x434a50]['length']&&_0x1f8ec1(_0x23f29e[_0x31c2ff],_0x23f29e[_0x434a50])&&_0x1d29b9['push'](_0x434a50);for(const _0x2e653d of _0x1d29b9)_0x23f29e[_0x31c2ff]=_0x23f29e[_0x31c2ff]['concat'](_0x23f29e[_0x2e653d]),_0x23f29e[_0x2e653d]=[];}for(const _0x1370d1 of _0x23f29e)for(let _0x24e24c=0x0;_0x24e24c<_0x1370d1['length'];_0x24e24c++){const _0x3aafe1=_0x1370d1[_0x24e24c+0x1]||null;_0x1370d1[_0x24e24c]['next']!==_0x3aafe1&&(_0x1370d1[_0x24e24c]['next']=_0x3aafe1);}for(const _0x532de8 of _0x23f29e)for(let _0x13ef30=0x0;_0x13ef30<_0x532de8['length'];_0x13ef30++){const _0x5311fc=_0x532de8[_0x13ef30-0x1]||null;_0x532de8[_0x13ef30]['previous']!==_0x5311fc&&(_0x532de8[_0x13ef30]['previous']=_0x5311fc);}function _0x1f8ec1(_0x265b76,_0xd42bea){if(_0x265b76[0x0]['attributes']['groupId']!==_0xd42bea[0x0]['attributes']['groupId']&&_0x265b76[0x0]['author']!==_0xd42bea[0x0]['author'])return!0x1;if(!function(_0x370354,_0x5e569b){if(!_0x370354['hasComments']&&!_0x5e569b['hasComments'])return!0x0;if(_0x370354['hasComments']&&_0x5e569b['hasComments'])return!0x1;if(_0x370354['hasComments']&&_0x5e569b['createdAt']<_0x370354['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5e569b['hasComments']&&_0x370354['createdAt']<_0x5e569b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x265b76[0x0],_0xd42bea[0x0]))return!0x1;const _0x4bc64=ot(_0x265b76[0x0]['attributes'],['groupId','trackingSessionId']),_0x167bd5=ot(_0xd42bea[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x4bc64,_0x167bd5))return!0x1;if(_0x265b76[0x0]['attributes']['groupId']==_0xd42bea[0x0]['attributes']['groupId'])return!0x0;if(_0x265b76[0x0]['attributes']['trackingSessionId']!==_0xd42bea[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x265b76['every'](_0x5cb831=>_0xd42bea['some'](_0x4821e1=>_0x5cb831['getFirstRange']()['isEqual'](_0x4821e1['getFirstRange']())))&&_0xd42bea['every'](_0x5cfd38=>_0x265b76['some'](_0x57b87a=>_0x5cfd38['getFirstRange']()['isEqual'](_0x57b87a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2591e0){const _0x55a785=Array['from'](_0x2591e0),_0x1221c8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x372634=_0x1221c8['filter'](_0x3796d2=>!_0x2591e0['has'](_0x3796d2)),_0x4024d1=new Map(_0x55a785['map'](_0x3bb394=>[_0x3bb394,this['_suggestionFactory']['getSuggestionCallback'](_0x3bb394['type'],_0x3bb394['subType'],'join')])),_0x2fe543=new Map(_0x1221c8['map'](_0x2196ad=>[_0x2196ad,_0x2196ad['getRanges']()]));for(let _0x37b862=0x0;_0x37b862<_0x55a785['length'];_0x37b862++){if(_0x406af6(this,_0x55a785[_0x37b862],_0x55a785,_0x37b862+0x1))return!0x0;}for(let _0x4a8106=0x0;_0x4a8106<_0x55a785['length'];_0x4a8106++){if(_0x406af6(this,_0x55a785[_0x4a8106],_0x372634,0x0))return!0x0;}return!0x1;function _0x406af6(_0x5ca84f,_0x356f7e,_0xb65b62,_0xf19145){for(let _0x467d08=_0xf19145;_0x467d08<_0xb65b62['length'];_0x467d08++){const _0x441fd7=_0xb65b62[_0x467d08];if(_0x441fd7['type']!==_0x356f7e['type']||_0x441fd7['author']['id']!==_0x356f7e['author']['id']||_0x441fd7['subType']!==_0x356f7e['subType'])continue;if(!an(_0x356f7e,_0x441fd7))continue;if('attribute'==_0x356f7e['type']&&_0x356f7e['data']['oldValue']!=_0x441fd7['data']['oldValue'])continue;if('attribute'==_0x356f7e['type']&&_0x5ca84f['_suggestionsConversion']['isBlockAttribute'](_0x356f7e['data']['key']))continue;if('formatBlock'==_0x356f7e['type']){const _0x1e357f=_0x5ca84f['editor']['model'],_0x84b64a=_0x356f7e['getContainedElement']();if(_0x84b64a&&(_0x1e357f['schema']['isObject'](_0x84b64a)||_0x1e357f['schema']['isLimit'](_0x84b64a)))continue;}const _0x5c1155=_0x4024d1['get'](_0x356f7e),_0x4288df=_0x2fe543['get'](_0x356f7e),_0xe0b924=_0x2fe543['get'](_0x441fd7),_0x33fe26=_0x356f7e['commentThread']&&_0x356f7e['commentThread']['length'],_0x4e50a9=_0x441fd7['commentThread']&&_0x441fd7['commentThread']['length'];if(!_0x33fe26&&_0x5c1155(_0xe0b924,_0x4288df))return _0x5ca84f['_joinSuggestions'](_0x441fd7,_0x356f7e),_0x2fe543['delete'](_0x356f7e),!0x0;if(!_0x4e50a9&&_0x5c1155(_0x4288df,_0xe0b924))return _0x5ca84f['_joinSuggestions'](_0x356f7e,_0x441fd7),_0x2fe543['delete'](_0x441fd7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42e322,_0x36e2d4){if(_0x42e322['isMultiRange']){for(const _0x5c91fc of _0x36e2d4['getRanges']())_0x42e322['addRange'](_0x5c91fc);}else{const _0x32c1e1=_0x36e2d4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42e322,this['_model']['createRange'](_0x42e322['getFirstRange']()['start'],_0x32c1e1));}_0x36e2d4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x7695ce,_0x2c5d66,_0x19c13d){const _0x4a8fad=_0x7695ce['startsWith']('format')||_0x7695ce['startsWith']('attribute')?'FORMATTING':_0x7695ce['toUpperCase']();return At(this['editor']['locale'],_0x2c5d66+'_'+_0x4a8fad+'_SUGGESTION_ANNOUNCEMENT',_0x19c13d);}['_initAriaMarkerChangeAnnouncements'](){const _0x23f394=this['editor'];if(!_0x23f394['ui'])return;const {ariaLiveAnnouncer:_0x361aac}=_0x23f394['ui'];_0x1963c5(this['_model'],({left:_0x1da848,entered:_0x209e2e})=>{for(const _0x1ff7e7 of _0x1da848){const {group:_0x5695f3,type:_0x4881da}=_0x39dc22(_0x1ff7e7['name']);if('suggestion'===_0x5695f3){_0x361aac['announce'](this['_getMarkerAnnouncementText'](_0x4881da,'LEAVE'));break;}}for(const _0x3d1239 of _0x209e2e){const {group:_0x2d54c9,type:_0x262fc6}=_0x39dc22(_0x3d1239['name']);if('suggestion'===_0x2d54c9){_0x361aac['announce'](this['_getMarkerAnnouncementText'](_0x262fc6,'ENTER',_0x4d7993(_0x3cb4f5)));break;}}});}['_processAttributeChanges'](_0x52a91b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x54fbdb=this['editor'],_0xc10995=_0x54fbdb['model']['document']['differ']['getChanges']();if(0x0==_0xc10995['length'])return!0x1;const _0x50ceac=[],_0x249d17=_0xc10995['filter'](_0x2a990a=>'attribute'==_0x2a990a['type']),_0x485bf9=_0xc10995['filter'](_0x283dd5=>'insert'==_0x283dd5['type']&&'$text'!=_0x283dd5['name']),_0x363ce=_0xc10995['filter'](_0x17d847=>'remove'==_0x17d847['type']&&'$text'!=_0x17d847['name']);for(const _0x33a8f4 of _0x249d17)_0x50ceac['push']({'key':_0x33a8f4['attributeKey'],'newValue':_0x33a8f4['attributeNewValue'],'oldValue':_0x33a8f4['attributeOldValue'],'range':sn(_0x33a8f4['range'],_0x54fbdb['model'])});for(const _0x5acedb of _0x485bf9){const _0x58aa5a=_0x363ce['find'](_0x40987a=>_0x40987a['position']['isEqual'](_0x5acedb['position']));_0x58aa5a&&_0x50ceac['push']({'key':Ke,'newValue':_0x5acedb['name'],'oldValue':_0x58aa5a['name'],'range':_0x54fbdb['model']['createRangeOn'](_0x5acedb['position']['nodeAfter'])});}return 0x0!=_0x50ceac['length']&&this['_reduceExistingSuggestions'](_0x52a91b,_0x50ceac);}['_processAttributeSuggestions'](_0x312b5b){let _0x2fee19=!0x1;const _0x5e483b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x176b06=>_0x176b06['data']['newRange']&&_0x176b06['name']['startsWith']('suggestion:attribute:'));for(const _0x5970fc of _0x5e483b){const {subType:_0x328e53,id:_0x686c62}=_0x39dc22(_0x5970fc['name']),_0xed8fc6=_0x328e53['split']('|')[0x0];for(const _0x33e0ff of this['getSuggestions']({'skipNotAttached':!0x0}))_0x33e0ff['id']!=_0x686c62&&'attribute'==_0x33e0ff['type']&&_0x33e0ff['data']&&_0x33e0ff['data']['key']==_0xed8fc6&&_0x33e0ff['getFirstRange']()['isIntersecting'](_0x5970fc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x33e0ff,_0x5970fc['data']['newRange'],_0x312b5b),_0x2fee19=!0x0);}return _0x2fee19;}['recordAttributeChanges'](_0x466399){this['_recordAttributeSuggestions']=!0x0,_0x466399();}['_reduceExistingSuggestions'](_0x3e8384,_0x14d7b1){if(0x0==_0x14d7b1['length'])return!0x1;let _0x4b73a6=!0x1;for(const _0x43b3b5 of _0x14d7b1){const _0x4795e8=this['_findSuggestions'](_0x43b3b5['range'],'attribute')['filter'](_0x46fc81=>!_0x46fc81['meta']['isNextTo'])['map'](_0x8a5e45=>_0x8a5e45['suggestion']),_0x34dd13=_0x297123({'newValue':_0x43b3b5['newValue']});_0x4795e8['filter'](_0x44d1f6=>{const [_0x249add,_0x56f071]=_0x44d1f6['subType']['split']('|');return _0x249add==_0x43b3b5['key']&&_0x56f071!=_0x34dd13;})['forEach'](_0x1b1066=>{this['_reduceSuggestionAttributeRange'](_0x1b1066,_0x43b3b5['range'],_0x3e8384),_0x4b73a6=!0x0;});}return _0x4b73a6;}['_reduceSuggestionAttributeRange'](_0x4d4652,_0x37abc8,_0xd1ef72){const _0x542f5e=_0x4d4652['getFirstRange']()['getDifference'](_0x37abc8);0x0!==_0x542f5e['length']?0x1!==_0x542f5e['length']?this['_breakSuggestionMarker'](_0x4d4652,_0x37abc8['start'],_0x37abc8['end']):this['_setSuggestionRange'](_0x4d4652,_0x542f5e[0x0]):_0xd1ef72['removeMarker'](_0x4d4652['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x386919){this['_editor']=_0x386919,this['_model']=_0x386919['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x7f3880,_0x3018a5,_0x23be65,_0x4ee9e6,_0x594ecd,_0x2faebe,_0x3205e2){return new bt(this['_model'],{'type':_0x7f3880,'subType':_0x3018a5,'id':_0x23be65,'originalSuggestionId':_0x3205e2,'author':_0x4ee9e6,'creator':_0x4ee9e6,'attributes':_0x594ecd,'onAttributesChange':_0x2faebe,'onAccept':(..._0x2237e2)=>this['getSuggestionCallback'](_0x7f3880,_0x3018a5,'accept')(..._0x2237e2),'onDiscard':(..._0x7989b)=>this['getSuggestionCallback'](_0x7f3880,_0x3018a5,'discard')(..._0x7989b)});}['registerCustomCallback'](_0x56b3c7,_0x599ed0,_0xf66ce8,_0x4dcbb7){const _0x4a06c6=_0x56b3c7+':'+_0x599ed0+':'+_0xf66ce8;this['_customCallbacks']['set'](_0x4a06c6,_0x4dcbb7);}['getSuggestionCallback'](_0x5d1258,_0x1106f5,_0x55ffdb){const _0xe87ccf=_0x5d1258+':'+_0x1106f5+':'+_0x55ffdb;return this['_customCallbacks']['get'](_0xe87ccf)||this['_defaultCallbacks']['get'](_0x5d1258+':'+_0x55ffdb);}['_registerDefaultCallbacks'](){const _0x326d8e=()=>!0x1,_0x2f308f=_0xac66fc=>{_0xac66fc['sort']((_0x159404,_0x5eff46)=>_0x159404['start']['isBefore'](_0x5eff46['start'])?0x1:-0x1),this['_model']['change'](_0x457c6f=>{for(const _0xb783eb of _0xac66fc){let _0x2facd9;_0x2facd9=_0xb783eb['end']['isAtEnd']&&_0xb783eb['end']['parent']==_0xb783eb['start']['nodeAfter']?_0x457c6f['createSelection'](_0xb783eb['start']['nodeAfter'],'on'):_0x457c6f['createSelection'](_0xb783eb),this['_model']['deleteContent'](_0x2facd9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x228f15=(_0x5e346e,_0x58f67f)=>{_0x58f67f&&this['_model']['change'](_0x334a37=>{const {commandName:_0x59e283,commandParams:_0x380bd9=[]}=_0x58f67f,_0x4af529=_0x5e346e['map'](_0x13ef08=>(Qe(_0x13ef08)&&(_0x13ef08=this['_model']['createRange'](_0x13ef08['end'])),_0x13ef08))['filter'](_0x355132=>'$graveyard'!==_0x355132['root']['rootName']);if(_0x4af529['length']<0x1)return;const _0x39f52f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3169e0=>_0x121353['fromRange'](_0x3169e0));_0x334a37['setSelection'](_0x4af529);for(const _0x3e0837 of this['_editor']['commands']['commands']())_0x3e0837['refresh']();_0x380bd9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x59e283,..._0x380bd9);const _0x288f4a=_0x39f52f['filter'](_0x5f5727=>'$graveyard'!=_0x5f5727['root']['rootName']);_0x288f4a['length']>0x0&&_0x334a37['setSelection'](_0x288f4a);for(const _0x42f534 of _0x39f52f)_0x42f534['detach']();});},_0x105b23=(_0xfc9cbe,_0x4420e1)=>0x1==_0xfc9cbe['length']&&0x1==_0x4420e1['length']&&_0xfc9cbe[0x0]['end']['isEqual'](_0x4420e1[0x0]['start']),_0x5d9b2a=(_0x5e1474,_0x437909,_0x327076,_0x195d06)=>on(_0x5e1474,_0x437909,_0x327076,_0x195d06)?[_0x5e1474,_0x437909]:on(_0x437909,_0x5e1474,_0x195d06,_0x327076)?[_0x437909,_0x5e1474]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x326d8e),this['_defaultCallbacks']['set']('insertion:discard',_0x2f308f),this['_defaultCallbacks']['set']('insertion:join',_0x105b23),this['_defaultCallbacks']['set']('insertion:chain',_0x5d9b2a),this['_defaultCallbacks']['set']('deletion:accept',_0x2f308f),this['_defaultCallbacks']['set']('deletion:discard',_0x326d8e),this['_defaultCallbacks']['set']('deletion:join',_0x105b23),this['_defaultCallbacks']['set']('deletion:chain',_0x5d9b2a),this['_defaultCallbacks']['set']('formatInline:accept',_0x228f15),this['_defaultCallbacks']['set']('formatInline:discard',_0x326d8e),this['_defaultCallbacks']['set']('formatInline:join',_0x105b23),this['_defaultCallbacks']['set']('formatInline:chain',_0x326d8e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x228f15),this['_defaultCallbacks']['set']('formatBlock:discard',_0x326d8e),this['_defaultCallbacks']['set']('formatBlock:join',_0x105b23),this['_defaultCallbacks']['set']('formatBlock:chain',_0x326d8e),this['_defaultCallbacks']['set']('attribute:accept',_0x326d8e),this['_defaultCallbacks']['set']('attribute:discard',(_0x40fdbe,_0x233ef5)=>{if(!_0x233ef5)return;const _0x1f94b3=this['_editor']['plugins']['get'](_0x24e0bb);this['_model']['change'](_0x5019ad=>{if(_0x233ef5['key']==Ke)for(const _0x123476 of _0x40fdbe){const _0x2a8fd9=_0x123476['start']['nodeAfter'],_0x3cfc26=_0x233ef5['oldValue'];_0x5019ad['rename'](_0x2a8fd9,_0x3cfc26);}else{if(_0x1f94b3['isBlockAttribute'](_0x233ef5['key'])){for(const _0x1716b7 of _0x40fdbe)void 0x0!==_0x233ef5['oldValue']?_0x5019ad['setAttribute'](_0x233ef5['key'],_0x233ef5['oldValue'],_0x1716b7['start']['nodeAfter']):_0x5019ad['removeAttribute'](_0x233ef5['key'],_0x1716b7['start']['nodeAfter']);}else{for(const _0x4f898e of _0x40fdbe)_0x233ef5['oldValue']?_0x5019ad['setAttribute'](_0x233ef5['key'],_0x233ef5['oldValue'],_0x4f898e):_0x5019ad['removeAttribute'](_0x233ef5['key'],_0x4f898e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x105b23);}}function qe(_0x591557,_0x9995c5,_0x3b6738){for(const _0x5f2ba8 of _0x9995c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f2ba8['root']==_0x5f2ba8)return!0x1;if(!_0x3b6738['containsItem'](_0x5f2ba8))return!0x1;if(_0x591557['isObject'](_0x5f2ba8)||_0x591557['isLimit'](_0x5f2ba8))return!0x0;}return!0x1;}function Qe(_0x2fa665){return _0x2fa665['end']['parent']==_0x2fa665['start']['nodeAfter']&&_0x2fa665['end']['isAtStart'];}function Ze(_0x33e7d6,_0x5209ad,_0x498c86,_0x523f9f){const _0x20f1e0=_0x4e8734=>!_0x4e8734['item']['is']('$textProxy')&&!_0x523f9f['isObject'](_0x4e8734['item']),_0x1b3a3e=_0x33e7d6['start']['getLastMatchingPosition'](_0x20f1e0),_0x16ccd6=_0x33e7d6['end']['getLastMatchingPosition'](_0x20f1e0,{'direction':'backward'});return(!_0x33e7d6['start']['isEqual'](_0x1b3a3e)||!_0x33e7d6['end']['isEqual'](_0x16ccd6))&&(_0x1b3a3e['isBefore'](_0x16ccd6)?_0x498c86['updateMarker'](_0x5209ad,{'range':_0x498c86['createRange'](_0x1b3a3e,_0x16ccd6)}):_0x498c86['removeMarker'](_0x5209ad),!0x0);}function Je(_0x3c6afc){return _0x297123(_0x3c6afc);}function tn(_0xf07ae){const _0x207de2=_0xf07ae['start']['nodeAfter'];return _0x207de2&&_0x207de2['is']('element');}function en(_0x255e5d){return Qe(_0x255e5d)||function(_0x1caa00){return _0x1caa00['start']['parent']==_0x1caa00['end']['nodeBefore']&&_0x1caa00['start']['isAtEnd'];}(_0x255e5d);}function nn(_0x11b19d,_0x21920c){try{const _0x2ace71=_0x11b19d['getRange']();for(const _0x51e480 of _0x21920c)if(_0x11b19d!==_0x51e480&&_0x2ace71&&_0x2ace71['isIntersecting'](_0x51e480['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x32de2b,_0x19024e){return null==_0x32de2b['end']['nodeBefore']&&_0x32de2b['end']['parent']==_0x32de2b['start']['nodeAfter']?rn(_0x32de2b['start']['nodeAfter'],_0x19024e):_0x32de2b;}function rn(_0x50e3c1,_0x585979){const _0x4e1f39=_0x585979['schema']['isObject'](_0x50e3c1)||_0x585979['schema']['isSelectable'](_0x50e3c1);return _0x585979['createRange'](_0x585979['createPositionAt'](_0x50e3c1,'before'),_0x4e1f39?_0x585979['createPositionAfter'](_0x50e3c1):_0x585979['createPositionAt'](_0x50e3c1,'end'));}function on(_0x1642e1,_0x1fbde7,_0x46a04a,_0x2cda58){return!!an(_0x1642e1,_0x1fbde7)&&_0x46a04a['end']['isEqual'](_0x2cda58['start']);}function an(_0x577a2a,_0x4910b1){if(!_0x577a2a['_isDataLoaded']||!_0x4910b1['_isDataLoaded'])return!0x1;const _0x43cf06=new Set(Object['keys'](_0x577a2a['attributes'])),_0x5c351f=new Set(Object['keys'](_0x4910b1['attributes']));if(_0x43cf06['delete']('groupId'),_0x5c351f['delete']('groupId'),0x0==_0x43cf06['size']&&0x0==_0x5c351f['size'])return!0x0;if(_0x43cf06['size']!=_0x5c351f['size'])return!0x1;const _0x2ee74d={..._0x577a2a['attributes']},_0x509f94={..._0x4910b1['attributes']};return delete _0x2ee74d['groupId'],delete _0x509f94['groupId'],JSON['stringify'](_0x2ee74d)==JSON['stringify'](_0x509f94);}function cn(_0x58dffe,_0xe581c9){const _0x3d1f59=ln(_0x58dffe['attributes']),_0x24ca80=ln(_0xe581c9);if(!_0x58dffe['_isDataLoaded'])return!0x1;for(const _0x490263 of Object['keys'](_0x24ca80))if(!st(_0x3d1f59[_0x490263],_0x24ca80[_0x490263]))return!0x1;return!0x0;}function ln(_0x256d65){const _0x4e2566=Object['assign']({},_0x256d65);return delete _0x4e2566['skipNestingCheck'],delete _0x4e2566['tablePasteChainId'],_0x4e2566;}function un(_0x18b3b3){return _0x18b3b3['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x26cebd(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4e14bb,_0x359495,_0x481642,_0x55a089){super(),this['model']=_0x359495,this['view']=_0x481642,this['commentThreadController']=_0x55a089,this['_editor']=_0x4e14bb,this['_acceptCommand']=_0x4e14bb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4e14bb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2742e6,_0x12118f)=>_0x2742e6||_0x12118f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x46cb52=>_0x46cb52&&this['_editor']['model']['canEditAt'](_0x359495['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x382ccc=>_0x382ccc&&this['_editor']['model']['canEditAt'](_0x359495['getRanges']())),this['_pendingAction']=null,_0x481642['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x481642,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x481642,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x481642,'change:isDirty',()=>{_0x481642['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 _0x4a2a99=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a2a99);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x2287ec{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d3e05,_0x373e4e,_0x67bc25,_0x3897a8){super(_0x4d3e05),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1f7250(_0x4d3e05,At(_0x4d3e05,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x373e4e['authoredAt']),this['bind']('authoredAt')['to'](_0x373e4e),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',_0x373e4e,'authoredAt',this,'descriptionParts',(_0x434667,_0x36f3d7,_0xe45b4a)=>{const _0x5b3ed1=_0xe45b4a['map'](_0x129c0f=>gt(_0x129c0f['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x434667-0x1,_0x373e4e['author']['name'],_0x36f3d7?_0x3897a8['formatDateTime'](_0x36f3d7):'',new DOMParser()['parseFromString'](_0x5b3ed1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4311be(),this['focusTracker']=new _0x13cc1f(),this['keystrokes']=new _0x22681e(),this['focusCycler']=new _0x241920({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x108144=>_0x108144['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x373e4e,this['_localUser']=_0x67bc25,this['_config']=_0x3897a8,_0x3897a8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xdc4749(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x19702b}=this['_config'];this['commentsListView']=new _0x19702b(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',_0x466d41=>_0x466d41+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5ee09b,_0x4476f8)=>_0x5ee09b||!!_0x4476f8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43b287}=this['_config'],_0x2a909a=new _0x43b287(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c4476=_0x2a909a['commentInputView'];return _0x2a909a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c4476,'value',(_0x30ac6f,_0x1c2d18,_0x43d3af)=>!!_0x43d3af||_0x30ac6f&&!_0x1c2d18),_0x3c4476['on']('submit',(_0x124f46,_0x3248f7)=>{this['fire']('addComment',_0x3248f7),_0x3c4476['editor']['setData']('');}),_0x3c4476['on']('cancel',()=>this['focus']()),_0x3c4476['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2a909a;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x39fc90,_0x489607,_0x40d216,_0xacdd1){super(_0x39fc90,_0x489607,_0x40d216,_0xacdd1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x14a0f3=>_0x14a0f3&&_0x14a0f3[0x0]?_0x14a0f3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3128d9,_0x509d6e)=>{let _0x445187='';for(const _0x591019 of _0x3128d9)_0x445187+='<p>'+gt(_0x591019['content'],_0x591019['color'])+'</p>';return _0x509d6e?_0x445187:_0x54ff17(_0x445187,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xacdd1['SuggestionView'](_0x39fc90,_0x489607,{'formatDateTime':_0xacdd1['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 _0x5d58a5=this['bindTemplate'],_0x4cd7f7=[this['suggestionView']];return this['commentsListView']&&_0x4cd7f7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4cd7f7['push'](this['commentThreadInputView']),_0x4cd7f7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d58a5['if']('isActive','ck-suggestion-wrapper--active'),_0x5d58a5['to']('type',_0x4cb394=>'ck-suggestion-'+_0x4cb394),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':_0x5d58a5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4cd7f7};}['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 _0x2287ec{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x36cf4a,_0x3ca677,_0x297001){super(_0x36cf4a),this['_model']=_0x3ca677,this['_config']=_0x297001,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3ca677),this['acceptButton']=this['_createButton'](At(_0x36cf4a,'Accept\x20suggestion'),_0xb31ffe,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x36cf4a,'Discard\x20suggestion'),_0x1b6be9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x9a95db(_0x36cf4a,_0x3ca677['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4311be([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13cc1f(),this['keystrokes']=new _0x22681e(),this['focusCycler']=new _0x241920({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x334818=>_0x334818['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5951a4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5951a4['innerHTML']=this['description'],this['on']('change:description',(_0x477fa1,_0xea8b15,_0x473c92)=>{_0x5951a4['innerHTML']=_0x473c92;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19eb3b=this['bindTemplate'],_0x53b1c0=[{'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':_0x19eb3b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19eb3b['to']('authoredAt',_0x4ccebd=>this['_config']['formatDateTime'](_0x4ccebd))}]}]},{'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']&&_0x53b1c0['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':_0x53b1c0}]};}['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'](_0x1290bb,_0x965110,_0x46f78a,_0x3bfc30,_0x36ae58){const _0x1b5f0e=new _0x512b8f(this['locale']);return _0x1b5f0e['set']({'label':_0x1290bb,'icon':_0x965110,'tooltip':!0x0,'tooltipPosition':_0x36ae58}),_0x1b5f0e['extendTemplate']({'attributes':{'class':_0x46f78a}}),_0x1b5f0e['on']('execute',()=>{this['fire'](_0x3bfc30,this['_model']['id']);}),_0x1b5f0e;}['_setupKeyboardNavigation'](){const _0x1903aa=this['element'];this['keystrokes']['listenTo'](_0x1903aa);for(const _0x4d45dd of this['focusables'])this['focusTracker']['add'](_0x4d45dd['element']),this['keystrokes']['listenTo'](_0x4d45dd['element']);this['keystrokes']['set']('enter',(_0x2bb3b9,_0x3bc796)=>{_0x1903aa===_0x2bb3b9['target']&&(this['focusCycler']['focusFirst'](),_0x3bc796());}),this['keystrokes']['set']('esc',(_0x59fbb1,_0x7af2f3)=>{_0x1903aa!==_0x59fbb1['target']&&(this['focus'](),_0x7af2f3());});}}class mn extends _0x54c126{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x55241e,_0xab4f6c,_0x2c7266,_0x2c2fd4];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17755b){super(_0x17755b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x54e75f=this['editor']['config'];_0x54e75f['define']('trackChanges.SuggestionThreadView',fn),_0x54e75f['define']('trackChanges.SuggestionView',gn),_0x54e75f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x54e75f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b2ffa,_0x4065ad){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48020e,_0x4a8cc9]of this['_handleControllerBuffer']){const _0x363fe4=this['_suggestionToController']['has'](_0x48020e);_0x363fe4||_0x4a8cc9?_0x363fe4&&_0x4a8cc9&&this['_destroyController'](_0x48020e):this['_initializeController'](_0x48020e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2c2fd4)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b2ffa,_0x4065ad);}['init'](){const _0x5e30cd=this['editor'],_0x434704=_0x5e30cd['plugins']['get'](Xe),_0x83c601=_0x5e30cd['plugins']['get'](_0x2c7266),_0x3596fb=_0x5e30cd['plugins']['get'](_0x2c2fd4),_0x125445=_0x5e30cd['plugins']['get'](_0xab4f6c);this['_addUIComponentsToFactory'](),_0x3596fb['addSourceCollector'](()=>{const _0x4ac5d2=[];for(const [_0xcd21c7,_0x2a86d0]of Array['from'](this['_suggestionToController'])){const _0x5e951c=_0xcd21c7['getAllAdjacentSuggestions'](),_0x3d9e0d=[];for(const _0x596833 of _0x5e951c){if(!_0x596833['isInContent'])continue;if(_0x596833['isMultiRange']){_0x3d9e0d['push'](..._0x596833['getRanges']());continue;}const _0x9c2602=_0x596833['getFirstRange']();if(_0x3d9e0d['length']>0x0){const _0xd28118=_0x3d9e0d[0x0]['getJoined'](_0x9c2602);if(_0xd28118){_0x3d9e0d[0x0]=_0xd28118;continue;}}_0x3d9e0d['push'](_0x9c2602);}_0x4ac5d2['push']([_0x2a86d0['view'],_0x3d9e0d]);}return _0x4ac5d2;}),this['listenTo'](_0x434704,'suggestionLoaded',(_0x6f3a3b,_0x47e4d4)=>{this['listenTo'](_0x47e4d4,'change:previous',(_0x124bf7,_0x4c2488,_0xb28c36,_0x4e2139)=>{_0x47e4d4['isInContent']&&(null==_0xb28c36?(this['_updateController'](_0x4e2139['head']),this['_handleSuggestionControllerDelayed'](_0x47e4d4,!0x1)):(this['_updateController'](_0xb28c36['head']),null==_0x4e2139&&this['_handleSuggestionControllerDelayed'](_0x47e4d4,!0x0)));}),null!==_0x47e4d4['previous']?this['_updateController'](_0x47e4d4['head']):this['_handleSuggestionControllerDelayed'](_0x47e4d4,!0x1);}),this['listenTo'](_0x434704,'suggestionUnloaded',(_0x2ca690,_0x7f0010,_0x3dd9e1)=>{this['stopListening'](_0x7f0010,'change:previous'),this['_handleControllerBuffer']['delete'](_0x7f0010),this['_suggestionToController']['has'](_0x7f0010)&&this['_destroyController'](_0x7f0010),_0x3dd9e1&&this['_updateController'](_0x3dd9e1['head']);}),this['listenTo'](_0x434704,'suggestionChanged',(_0x2a4e1f,_0x42028e)=>{this['_updateController'](_0x42028e);}),this['listenTo'](_0x83c601,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x125445,'addComment',(_0x428b57,{threadId:_0x4b2c0d,isFromAdapter:_0x5a3408})=>{if(_0x5a3408||!_0x434704['hasSuggestion'](_0x4b2c0d))return;const _0x3c1ac1=_0x434704['getSuggestion'](_0x4b2c0d);this['_suggestionToController']['get'](_0x3c1ac1)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x344b69=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45963a;for(const _0x35e1c4 in _0x344b69){const _0xcb8b74=_0x35e1c4,_0x39a241=_0x344b69[_0xcb8b74];if('trackChangesLicenseKeyValid'==_0x39a241||'trackChangesLicenseKeyInvalid'==_0x39a241||'trackChangesLicenseKeyExpired'==_0x39a241||'trackChangesLicenseKeyDomainLimit'==_0x39a241||'trackChangesLicenseKeyNotAllowed'==_0x39a241||'trackChangesLicenseKeyEvaluationLimit'==_0x39a241||'trackChangesLicenseKeyUsageLimit'==_0x39a241){delete _0x344b69[_0xcb8b74],_0x45963a=_0x39a241,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x45963a&&_0x344b69['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x45963a&&_0x344b69['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x45963a&&_0x344b69['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x45963a&&_0x344b69['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x45963a&&_0x344b69['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x45963a&&_0x344b69['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x36b0f6){const _0x4501da=this['_suggestionToController']['get'](_0x36b0f6);if(!_0x4501da)return null;return this['editor']['plugins']['get'](_0x2c7266)['getByInnerView'](_0x4501da['view'])||null;}['getSuggestionForAnnotation'](_0x12e82d){const _0x225672=this['_viewToController']['get'](_0x12e82d['innerView']);return _0x225672?_0x225672['model']:null;}['_refreshActiveMarkers'](){const _0x387b5d=this['editor']['plugins']['get'](_0x2c7266),_0x2af56f=this['editor']['plugins']['get'](Xe),_0x3ef1bb=Array['from'](_0x387b5d['activeAnnotations'],_0x38cdca=>_0x38cdca['innerView'])['filter'](_0x4f0f2e=>this['_viewToController']['has'](_0x4f0f2e)),_0x716b3d=[];for(const _0x12c1a9 of _0x3ef1bb){const _0x1851cb=this['_viewToController']['get'](_0x12c1a9)['model']['getAllAdjacentSuggestions']();_0x716b3d['push'](..._0x1851cb['reduce']((_0x4d8bbb,_0x5aec23)=>[..._0x4d8bbb,..._0x5aec23['getMarkerNames']()],[]));}_0x2af56f['activeMarkers']=_0x716b3d;}['_addUIComponentsToFactory'](){const _0x3ed2b5=this['editor'],_0x1da2d6=_0x3ed2b5['locale'],_0x5942ff=At(_0x1da2d6,'Track\x20changes'),_0x194a42=new _0x47f0ab([{'type':'switchbutton','model':new _0x18b3fa({'withText':!0x0,'isToggleable':!0x0,'label':_0x5942ff,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3ed2b5['plugins']['has']('TrackChangesPreview')&&_0x194a42['addMany']([{'type':'separator'},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1a1bdf of _0x194a42)if(En(_0x1a1bdf)){const _0x35427c=_0x3ed2b5['commands']['get'](_0x1a1bdf['model']['commandName']);_0x1a1bdf['model']['bind']('isOn','isEnabled')['to'](_0x35427c,'value','isEnabled');}_0x3ed2b5['ui']['componentFactory']['add']('trackChanges',_0x1f2488=>this['_createToolbarButton'](_0x1f2488,_0x194a42,_0x5942ff)),_0x3ed2b5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x577035=>this['_createMenuBarMenu'](_0x577035,_0x194a42,_0x5942ff));}['_createToolbarButton'](_0x3d45ce,_0x1a5b94,_0x33b46f){const _0x11d238=_0x457bb6(_0x3d45ce,_0x4b46e7),_0x5b77f3=this['editor']['commands']['get']('trackChanges');_0x11d238['buttonView']['set']({'tooltip':_0x33b46f,'label':_0x33b46f,'icon':_0xdefe62}),_0x11d238['buttonView']['bind']('isOn')['to'](_0x5b77f3,'value'),_0x11d238['buttonView']['on']('execute',()=>{_0x5b77f3['execute'](),this['editor']['editing']['view']['focus']();}),_0x85e161(_0x11d238,_0x1a5b94,{'role':'menu'});const _0x560fa1=[];for(const _0x149349 of _0x1a5b94)En(_0x149349)&&_0x560fa1['push'](this['editor']['commands']['get'](_0x149349['model']['commandName']));const _0x2ca883=_0x11d238['buttonView'];return _0x2ca883['actionView']['unbind']('isEnabled'),_0x2ca883['arrowView']['unbind']('isEnabled'),_0x2ca883['actionView']['bind']('isEnabled')['to'](_0x5b77f3,'isEnabled'),_0x2ca883['arrowView']['bind']('isEnabled')['toMany'](_0x560fa1,'isEnabled',(..._0x30a35c)=>_0x30a35c['some'](_0x31a277=>_0x31a277)),_0x11d238['on']('execute',_0x3181d9=>{this['editor']['execute'](_0x3181d9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11d238;}['_createMenuBarMenu'](_0x193877,_0x2acd63,_0x5d5408){const _0x503124=new _0x4ea1c1(_0x193877),_0x5338a6=this['editor']['commands']['get']('trackChanges');_0x503124['buttonView']['set']({'label':_0x5d5408,'icon':_0xdefe62});const _0x437357=new _0x2fe6e5(_0x193877);for(const _0x59737a of _0x2acd63){if('separator'==_0x59737a['type']){_0x437357['items']['add'](new _0xc0451d(_0x193877));continue;}const _0x29fcea=new _0x5dac58(_0x193877,_0x503124),_0x48df88=new _0x45312d(_0x193877),_0x2a8058=_0x59737a['model'];_0x48df88['bind'](...Object['keys'](_0x2a8058))['to'](_0x2a8058),_0x48df88['delegate']('execute')['to'](_0x503124),_0x48df88['on']('execute',()=>{this['editor']['execute'](_0x2a8058['commandName']),this['editor']['editing']['view']['focus']();}),_0x29fcea['children']['add'](_0x48df88),_0x437357['items']['add'](_0x29fcea);}return _0x503124['bind']('isEnabled')['to'](_0x5338a6,'isEnabled'),_0x503124['panelView']['children']['add'](_0x437357),_0x503124;}['_initializeController'](_0x30bcd9){const _0x5a236c=this['editor'],_0x1f59ba=_0x5a236c['config'],_0xa16582=_0x5a236c['plugins']['get'](_0x2c7266),_0x2c12b0=_0x5a236c['plugins']['get'](_0xab4f6c),_0x470e64=_0x5a236c['plugins']['get'](_0x2c2fd4),_0x1fad47=_0x5a236c['plugins']['get'](_0x55241e)['me'],_0xb0858c=_0x1f59ba['get']('trackChanges')['SuggestionThreadView'],_0x4fbc1c=_0x1f59ba['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x281b59,CommentThreadInputView:_0x364b4c}=_0x5a236c['plugins']['get']('CommentsUI');let _0x212142,_0x21dba5,_0x2ddd6d;this['_annotationViews']['has'](_0x30bcd9['id'])?(_0x21dba5=this['_annotationViews']['get'](_0x30bcd9['id']),_0x212142=_0x21dba5['mainView']):(_0x212142=new _0xb0858c(_0x5a236c['locale'],_0x30bcd9,_0x1fad47,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1f59ba['get']('comments.editorConfig'),'licenseKey':_0x1f59ba['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1f59ba['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1f59ba['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1f59ba['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22a611(_0x1f59ba['get']('locale'),_0x5a236c['locale']),'CommentView':_0x1f59ba['get']('comments')['CommentView'],'CommentsListView':_0x281b59,'CommentThreadInputView':_0x364b4c,'SuggestionView':_0x4fbc1c}),_0x212142['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a236c['editing']['view']['focus']();}),_0x212142['suggestionView']['discardButton']['on']('execute',()=>{_0x5a236c['editing']['view']['focus']();}),_0x21dba5=_0xa16582['createAnnotationView'](this['editor']['locale'],_0x212142),_0x21dba5['bind']('isDirty')['to'](_0x212142,'isDirty'),_0x21dba5['bind']('length')['to'](_0x212142),_0x21dba5['bind']('type')['to'](_0x212142,'type',_0x231a7f=>'suggestion-'+_0x231a7f),_0x212142['on']('escape',()=>{_0x2ddd6d['fire']('escape');}),this['_annotationViews']['set'](_0x30bcd9['id'],_0x21dba5));const _0x41d3be=_0x2c12b0['createCommentThreadController'](_0x30bcd9['commentThread'],_0x212142),_0x43c1f8=new hn(_0x5a236c,_0x30bcd9,_0x212142,_0x41d3be),_0x3d87ac=_0x30bcd9['getAllAdjacentSuggestions']()['filter'](_0x1eaa24=>_0x1eaa24['isInContent']);_0x212142['descriptionParts']=_0x5a236c['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x3d87ac),this['_suggestionToController']['set'](_0x30bcd9,_0x43c1f8),this['_viewToController']['set'](_0x212142,_0x43c1f8);const _0x243285=()=>{const _0x3f4901=[],_0x221771=_0x30bcd9['getAllAdjacentSuggestions']()['filter'](_0x5783d6=>_0x5783d6['isInContent']);for(const _0x52f356 of _0x221771)_0x3f4901['push'](..._0x52f356['getMarkers']());return _0x3512a3(_0x5a236c['editing'],_0x3f4901);};_0x2ddd6d=_0xa16582['createAnnotation']({'view':_0x21dba5,'target':_0x243285,'type':()=>'suggestion-'+_0x43c1f8['view']['type'],'isVisible':!!_0x243285()}),_0x2c12b0['_bindAnnotationToEditors'](_0x212142,_0x2ddd6d),_0xa16582['add'](_0x2ddd6d),_0x470e64['registerAnnotation'](_0x2ddd6d);}['_destroyController'](_0x15b019){const _0x39396a=this['editor']['plugins']['get'](_0xab4f6c),_0x875a12=this['editor']['plugins']['get'](_0x2c7266),_0x42f3b5=this['_suggestionToController']['get'](_0x15b019),_0x620fda=_0x42f3b5['view'],_0x4719b6=_0x875a12['getByInnerView'](_0x620fda);_0x39396a['_unbindEditors'](_0x620fda),_0x4719b6&&_0x875a12['remove'](_0x4719b6),this['_suggestionToController']['delete'](_0x15b019),this['_viewToController']['delete'](_0x620fda),_0x42f3b5['destroy']();}['_updateController'](_0x24013c){if(!_0x24013c['isInContent']||!this['_suggestionToController']['has'](_0x24013c))return;const _0x1b2cb3=this['editor']['plugins']['get'](Xe),_0x196b72=this['_suggestionToController']['get'](_0x24013c),_0x3ae6f4=_0x24013c['getAllAdjacentSuggestions']();_0x196b72['view']['descriptionParts']=_0x1b2cb3['descriptionFactory']['getDescriptions'](_0x3ae6f4);}['destroy'](){for(const _0xfbbdfc of this['_suggestionToController']['keys']())this['_destroyController'](_0xfbbdfc);for(const _0xcce4d6 of this['_annotationViews']['values']())_0xcce4d6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x21612d){return'model'in _0x21612d;}class Tn extends _0x54c126{static get['requires'](){return[Xe,mn,_0x1b2d4c];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4f5681){this['editor']['plugins']['get'](Xe)['adapter']=_0x4f5681;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x2dfbd8){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x2dfbd8);}['getSuggestions']({skipNotAttached:_0x1f18c4=!0x1,toJSON:_0x187dec=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x1f18c4,'toJSON':_0x187dec});}['getSuggestion'](_0x514476){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x514476);}}const _n=['Pagination'];class pn extends _0x54c126{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5f157f=this['editor'];if(_0x5f157f['config']['define']('trackChangesData.editorCreator',_0x195b5d=>{const _0x510eab=_0x5f157f['model']['document']['getRootNames']()['reduce']((_0x170267,_0x3d6793)=>(_0x170267[_0x3d6793]='',_0x170267),{});return _0x5f157f['constructor']['create'](_0x510eab,_0x195b5d);}),'function'!=typeof _0x5f157f['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c014e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10adc5){return bn(this['editor'],!0x0,_0x10adc5);}['getDataWithDiscardedSuggestions'](_0x49e1dd){return bn(this['editor'],!0x1,_0x49e1dd);}}class Ln extends _0x54c126{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b4728){function _0x5eb14a(_0x358e23){return _0x358e23['map'](_0x186206=>String['fromCharCode'](_0x186206))['join']('');}super(_0x3b4728),this['result']='end',_0x3b4728[_0x5eb14a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eb14a([0x76,0x69,0x65,0x77])][_0x5eb14a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5eb14a([0x61,0x75,0x74,0x6f]),_0x3b4728[_0x5eb14a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5eb14a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5eb14a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5eb14a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5eb14a([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(_0x339b37){return void 0x0!==_0x339b37['getRootsAttributes'];}async function bn(_0x4dca3e,_0x23abc0,_0x58ef93){const _0x453ead=_0x5d0e05(_0x4dca3e,_n);if(_0x453ead['plugins']['push'](Xe,Ln),In(_0x4dca3e)){_0x453ead['roots']=Object['create'](null);for(const _0x55582c of _0x4dca3e['model']['document']['getRootNames']())_0x453ead['roots'][_0x55582c]={'modelAttributes':_0x4dca3e['getRootAttributes'](_0x55582c)};}const _0x53094a=document['createDocumentFragment'](),_0x5e1cd1=_0x4dca3e['config']['get']('trackChangesData')['editorCreator'],_0x4079df=await _0x5e1cd1(_0x453ead,()=>function(_0x440f7d){const _0xa94697=document['createElement']('div');return _0x440f7d['appendChild'](_0xa94697),_0xa94697;}(_0x53094a));!function(_0x4e11f5,_0x319542){const _0x402744=_0x4e11f5['model']['document']['getRootNames']()['reduce']((_0x326b9b,_0x34c7dc)=>(_0x326b9b[_0x34c7dc]=_0x4e11f5['data']['get']({'rootName':_0x34c7dc}),_0x326b9b),{}),_0x286d18=_0x4e11f5['plugins']['get']('Users')['users']['map'](_0x5fcb83=>({'id':_0x5fcb83['id'],'name':_0x5fcb83['name']})),_0x4ca6a4=_0x4e11f5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x237259=_0x4e11f5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58f469=_0x319542['plugins']['get']('Users'),_0x42c4df=_0x319542['plugins']['get']('TrackChangesEditing'),_0x327b0b=_0x319542['plugins']['get']('CommentsRepository');for(const _0x29fd25 of _0x327b0b['getCommentThreads']())_0x29fd25['remove']();for(const _0x523df8 of _0x286d18)_0x58f469['getUser'](_0x523df8['id'])||_0x58f469['addUser'](_0x523df8);_0x58f469['me']||_0x58f469['useAnonymousUser']();for(const _0x2b8702 of _0x237259)_0x327b0b['addCommentThread'](_0x2b8702);for(const _0xf56a11 of _0x4ca6a4)_0x42c4df['addSuggestionData'](_0xf56a11);_0x319542['data']['set'](_0x402744);}(_0x4dca3e,_0x4079df),_0x4079df['execute'](_0x23abc0?'acceptAllSuggestions':'discardAllSuggestions');const _0x2dffa8=In(_0x4079df)?_0x4079df['getFullData'](_0x58ef93):_0x4079df['data']['get'](_0x58ef93);return await _0x4079df['destroy'](),_0x2dffa8;}class An extends _0x2287ec{['options'];constructor(_0x1c5d89,_0x25910e){super(_0x1c5d89),this['options']=_0x25910e,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'](_0x125862,_0x526af3){if(!this['element'])return;const _0x1740b0=[];for(const [_0x5b32a3,_0x3b0749]of _0x125862){const _0x23449d=document['createElement']('div');_0x23449d['setAttribute']('data-ck-root-name',_0x5b32a3),_0x23449d['className']=_0x3b0749['classes']+'\x20ck-track-changes-preview__root-container',_0x23449d['innerHTML']=_0x3b0749['content'],_0x1740b0['push'](_0x23449d);}_0x526af3(this['element'],_0x1740b0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x19b9d0{constructor(_0x211814){super(_0x211814),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29932e=this['editor'],_0x3eca26=_0x29932e['locale'],_0x3c9658=_0x29932e['plugins']['get']('Dialog');let _0x2c0e33;const _0x20bac9=function(_0x3a699f){const _0x3c01e0={};if('editables'in _0x3a699f['ui']['view']){for(const [_0x23b740,_0x35896a]of Object['entries'](_0x3a699f['ui']['view']['editables']))_0x3c01e0[_0x23b740]=_0x35896a['element'];}else _0x3c01e0[_0x3a699f['model']['document']['getRootNames']()[0x0]]=_0x3a699f['ui']['view']['editable']['element'];return _0x3c01e0;}(_0x29932e),_0x38af15=function(_0x560e27){let _0x47a93a=0x0;for(const _0x44bd53 of Object['values'](_0x560e27))_0x47a93a=Math['max'](_0x47a93a,_0x44bd53['getBoundingClientRect']()['width']);let _0x5a51c=0x0;for(const _0x1b126a of Object['values'](_0x560e27))_0x5a51c+=_0x1b126a['getBoundingClientRect']()['height'];const _0x35ef48=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1dc70e=Math['min'](_0x5a51c,_0x35ef48);return{'width':_0x47a93a,'height':_0x1dc70e};}(_0x20bac9);_0x3c9658['show']({'id':'finalContentPreview','title':At(_0x3eca26,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x3eca26,{'dialogRects':_0x38af15}),'onHide':()=>{_0x2c0e33['detachFromDom']();},'onShow':()=>{_0x29932e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x13f71f=>{const _0x2cbbe7=this['_standarizeRootsData'](_0x13f71f,_0x29932e,_0x20bac9);_0x3c9658['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2cbbe7,_0x29932e['config']['get']('trackChanges.preview.renderFunction'));}),_0x2c0e33=new _0x3c2fd8(_0x3eca26,[_0x3c9658['view']]),_0x2c0e33['attachToDom'](),_0x2c0e33['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29932e['once']('destroy',()=>{_0x2c0e33['detachFromDom']();});const _0x4adec9=_0x3c9658['view']['headerView']['class'];_0x3c9658['view']['headerView']['class']=_0x4adec9?_0x4adec9+'\x20ck-reset_all':'ck-reset_all',_0x3c9658['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c9658['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x317435=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3faf43=_0x317435['previewMode'],_0x358136={};if('$labels'===_0x3faf43){for(const _0x3a4750 of _0x317435['getMergeFieldsIds']())_0x358136[_0x3a4750]=_0x317435['getLabel'](_0x3a4750)||_0x3a4750;}else{const _0xf6eaf9='$defaultValues'===_0x3faf43?_0x317435['getDefaultValues']():_0x317435['getDataSetValues'](_0x3faf43,!0x0);for(const _0xf51255 of Object['entries'](_0xf6eaf9)){const [_0x1cb3fe,_0x41336a]=_0xf51255;_0x358136[_0x1cb3fe]=null!==_0x41336a?_0x41336a:_0x317435['getLabel'](_0x1cb3fe)||_0x1cb3fe;}}return{'mergeFieldsData':_0x358136};}['_standarizeRootsData'](_0xf23e45,_0x236596,_0x39ac03){let _0x2196db;if('string'==typeof _0xf23e45){const _0x188422=_0x236596['model']['document']['getRootNames']()[0x0];_0x2196db={[_0x188422]:_0xf23e45};}else _0x2196db=_0xf23e45;const _0x487041=this['_fixMediaEmbeds'](_0x2196db,_0x236596),_0x4a9d02=function(_0x3428bb,_0x358561){for(const [_0xf17be1,_0x2f59d0]of _0x3428bb)_0x2f59d0['classes']=_0x358561[_0xf17be1]['classList']['value']['replace']('ck-focused','');return _0x3428bb;}(this['_sortRoots'](_0x236596)['reduce']((_0x3e15c6,_0x334778)=>(_0x3e15c6['push']([_0x334778,{'content':_0x487041[_0x334778],'classes':''}]),_0x3e15c6),[]),_0x39ac03);return _0x4a9d02;}['_fixMediaEmbeds'](_0x101e2d,_0x30eb21){if(!_0x30eb21['plugins']['has']('MediaEmbedEditing'))return _0x101e2d;const _0x245e08=_0x30eb21['plugins']['get']('MediaEmbedEditing');for(const [_0x150904,_0x1be819]of Object['entries'](_0x101e2d)){const _0x3cc154=document['createElement']('div');_0x3cc154['innerHTML']=_0x1be819,(_0x3cc154['querySelectorAll']('figure.media')['forEach'](_0x318b4a=>{const _0x31a4ac=_0x318b4a['querySelector']('oembed');if(_0x31a4ac){const _0x1a1a3d=_0x31a4ac['getAttribute']('url');if(_0x1a1a3d){const _0x5a695=_0x245e08['registry']['getMediaViewElement'](new et(_0x30eb21['editing']['view']['document']),_0x1a1a3d,{'elementName':'','renderForEditingView':!0x0}),_0x4d888c=document['createElement']('div');_0x4d888c['classList']['add']('ck-media__wrapper'),_0x5a695['render'](_0x4d888c,_0x30eb21['editing']['view']['domConverter']),_0x31a4ac['replaceWith'](_0x4d888c);}}}),_0x101e2d[_0x150904]=_0x3cc154['innerHTML']);}return _0x101e2d;}['_sortRoots'](_0x354391){if(!function(_0x389097){return void 0x0!==_0x389097['getRootsAttributes'];}(_0x354391))return _0x354391['model']['document']['getRootNames']();const _0x553c1f=[],_0x3363ad=new Map();for(const _0x3c5ebb of _0x354391['model']['document']['getRootNames']()){const _0xbd2e0c=_0x354391['editing']['view']['getDomRoot'](_0x3c5ebb)['getClientRects']()['item'](0x0);_0x553c1f['push'](_0x3c5ebb),_0x3363ad['set'](_0x3c5ebb,_0xbd2e0c);}return _0x553c1f['sort']((_0x46defa,_0x38698e)=>{const _0x244261=_0x3363ad['get'](_0x46defa),_0x1ad259=_0x3363ad['get'](_0x38698e);return _0x244261['y']-_0x1ad259['y']||_0x244261['x']-_0x1ad259['x'];}),_0x553c1f;}}class Cn extends _0x54c126{static get['requires'](){return[pn,_0x4d24f8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17f196){super(_0x17f196),_0x17f196['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x17f196['config']['define']('trackChanges.preview.renderFunction',(_0x1da0b5,_0x1164c)=>{for(const _0x2d93bc of _0x1164c)_0x1da0b5['appendChild'](_0x2d93bc);});}}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};