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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0xb638e6,Plugin as _0x486e9c,PendingActions as _0x389d90}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x267a96,Annotations as _0x11e1e7,EditorAnnotations as _0x2ed405,Comments as _0x711ece}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x24c1f2,ObservableMixin as _0x5cd431,uid as _0xec3fc0,priorities as _0x5dc5ee,insertToPriorityArray as _0x2d7d00,logWarning as _0x4b0915,getEnvKeystrokeText as _0x3c958f,FocusTracker as _0x517caf,KeystrokeHandler as _0x542a7e,Collection as _0xff8d07}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2015c1,IconCancel as _0x21fe15,IconTrackChanges as _0x2f4582}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5cccb4,View as _0x67f2c3,ViewCollection as _0x374709,FocusCycler as _0xcbde57,UIModel as _0x31a026,createDropdown as _0x1ad775,SplitButtonView as _0x3f13ac,addListToDropdown as _0xb65e76,MenuBarMenuView as _0x1a83e1,MenuBarMenuListView as _0x3603ca,ListSeparatorView as _0x170c89,MenuBarMenuListItemView as _0x387716,MenuBarMenuListItemButtonView as _0x32325b,BodyCollection as _0x556021,Dialog as _0x5b9744}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x36ab20,SuggestionsConversion as _0xaf0ffc,Users as _0xb8ed5b,DocumentCompare as _0x2b1f8b,fixElementSuggestionRange as _0x3cd981,hashObject as _0x57387b,surroundingMarkersDetector as _0x58ebd3,FOCUS_ANNOTATION_KEYSTROKE as _0x2443ba,AriaDescriptionView as _0x18cb74,setupThreadKeyboardNavigation as _0x394c73,trimHtml as _0x14e6fe,UserView as _0x5cfa99,LateFocusButtonView as _0x50358d,getDateTimeFormatter as _0x414d9b,getAllMarkersDomElementsSorted as _0x48e79d,sanitizeEditorConfig as _0x4dd44f}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x546be1,ModelLiveRange as _0x704ba,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 _0xb638e6{['_enabledCommands'];constructor(_0x107aa8,_0x13e2a5){super(_0x107aa8),this['_enabledCommands']=_0x13e2a5,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 _0x573a86 of this['editor']['commands']['commands']())_0x573a86['affectsData']&&!this['_enabledCommands']['has'](_0x573a86)&&_0x573a86['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3bc4fd of this['editor']['commands']['commands']())_0x3bc4fd['affectsData']&&!this['_enabledCommands']['has'](_0x3bc4fd)&&_0x3bc4fd['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0xb638e6{['_suggestions'];constructor(_0x862aa0,_0x50e387){super(_0x862aa0),this['_suggestions']=_0x50e387,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x28fcc0){const _0x9841c1=this['_suggestions']['get'](_0x28fcc0);if(!_0x9841c1)throw new _0x24c1f2('track-changes-accept-suggestion-not-found',this);const _0x57f114=_0x9841c1['getRanges']();this['editor']['model']['canEditAt'](_0x57f114)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x9841c1);}}class ft extends _0xb638e6{['_suggestions'];constructor(_0x4d7980,_0x26e76f){super(_0x4d7980),this['_suggestions']=_0x26e76f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4c3b21){const _0x4373be=this['_suggestions']['get'](_0x4c3b21);if(!_0x4373be)throw new _0x24c1f2('track-changes-discard-suggestion-not-found',this);const _0x2ae1e5=_0x4373be['getRanges']();this['editor']['model']['canEditAt'](_0x2ae1e5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4373be);}}function gt(_0x4e8e60,_0x4c55a1){let _0x2d214b='';return _0x2d214b+=_0x4e8e60['split']('*')['map']((_0x55aea3,_0x2e52f0)=>_0x2e52f0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x55aea3)+'</span>':mt(_0x55aea3))['join'](''),_0x4c55a1&&(_0x2d214b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4c55a1['value']+'\x22\x20title=\x22'+_0x4c55a1['title']+'\x22></span>'),_0x2d214b;}function mt(_0x57a763){const _0x30e241=document['createElement']('span');return _0x30e241['innerText']=_0x57a763,_0x30e241['innerHTML'];}function Et(_0x56c362){return _0x56c362['sort']((_0x3e5db2,_0x5a6ed8)=>'attribute'===_0x3e5db2['type']&&'attribute'!==_0x5a6ed8['type']?-0x1:'attribute'!==_0x3e5db2['type']&&'attribute'===_0x5a6ed8['type']?0x1:'deletion'==_0x3e5db2['type']&&'deletion'!=_0x5a6ed8['type']?-0x1:'deletion'!=_0x3e5db2['type']&&'deletion'==_0x5a6ed8['type']?0x1:0x0);}function Tt(_0x4912b2,_0xc1d2d4){let _0x3e6c68,_0x15014a=0x0;const _0x47739d=[],_0x26ca6e=_0xc1d2d4['schema'];for(;_0x15014a<_0x4912b2['length'];){const _0x3f78f4=_0x4912b2[_0x15014a],_0x5dfbd3=_0x4912b2[_0x15014a+0x1];_0x3e6c68||(_0x3e6c68=_0xc1d2d4['createPositionBefore'](_0x3f78f4)),_t(_0xc1d2d4,_0x3f78f4,_0x5dfbd3)||(_0x47739d['push'](_0xc1d2d4['createRange'](_0x3e6c68,_0x26ca6e['isObject'](_0x3f78f4)?_0xc1d2d4['createPositionAfter'](_0x3f78f4):_0xc1d2d4['createPositionAt'](_0x3f78f4,'end'))),_0x3e6c68=null),_0x15014a++;}return _0x47739d;}function _t(_0x5748f0,_0x38c9ec,_0x868fc5){if(!_0x868fc5)return!0x1;const _0x5b0719=_0x5748f0['createPositionAfter'](_0x38c9ec),_0x22955e=_0x5748f0['createPositionBefore'](_0x868fc5);return _0x5b0719['isTouching'](_0x22955e);}function pt(_0x58b253,_0x421cdf,_0x1f93f0){for(;_0x1f93f0['length'];){const _0x5cd21e=_0x1f93f0['splice'](0x0,0x64);_0x58b253['change'](()=>{for(const _0x537f3b of _0x5cd21e)_0x537f3b['isInContent']&&_0x421cdf['execute'](_0x537f3b['id']);});}}class Lt extends _0xb638e6{['_command'];['_suggestions'];constructor(_0xd422a8,_0x5502f9,_0x56dda7){super(_0xd422a8),this['_command']=_0x5502f9,this['_suggestions']=_0x56dda7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x39e7f9=Array['from'](this['_suggestions']['values']())['some'](_0x189d43=>_0x189d43['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x39e7f9;}['execute'](){const _0x4a8ad1=Et(Array['from'](this['_suggestions']['values']()));for(const _0x47a3b5 of _0x4a8ad1){const _0x568a4e=_0x47a3b5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x568a4e))return;}pt(this['editor']['model'],this['_command'],_0x4a8ad1);}}class It extends _0xb638e6{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5615f3,_0x251a48,_0x164ae9){super(_0x5615f3),this['_command']=_0x251a48,this['_suggestions']=_0x164ae9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x49c00b=this['editor']['model']['document']['selection'],_0x5145e0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2e59e1,_0x158160){const _0x24a8ad=Array['from'](_0x2e59e1['getRanges']()),_0x39bd8e=new Set();for(const _0x52cb2f of _0x158160)if(_0x52cb2f['isInContent']){for(const _0x109e9e of _0x24a8ad)for(const _0x1ea026 of _0x52cb2f['getRanges']())(_0x109e9e['isIntersecting'](_0x1ea026)||_0x2e59e1['isCollapsed']&&!_0x52cb2f['isMultiRange']&&_0x52cb2f['next']&&_0x1ea026['end']['isTouching'](_0x109e9e['start']))&&_0x39bd8e['add'](_0x52cb2f);}return _0x39bd8e;}(_0x49c00b,_0x5145e0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48446c=Et(Array['from'](this['_selectedSuggestions']));for(const _0x3dceb2 of _0x48446c){const _0x3d674e=_0x3dceb2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d674e))return;}pt(this['editor']['model'],this['_command'],_0x48446c);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x5cd431(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x51e87c,_0x4f7724){super(),this['id']=_0x4f7724['id'],this['type']=_0x4f7724['type'],this['subType']=_0x4f7724['subType']||null,this['author']=_0x4f7724['author'],this['creator']=_0x4f7724['creator']||_0x4f7724['author'],this['isExternal']=Boolean(_0x4f7724['attributes']&&_0x4f7724['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4f7724['originalSuggestionId']||null,this['_model']=_0x51e87c,this['_onAccept']=_0x4f7724['onAccept'],this['_onDiscard']=_0x4f7724['onDiscard'],this['_onAttributesChange']=_0x4f7724['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f7724['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 _0x1a7ede=this;for(;_0x1a7ede['previous'];)_0x1a7ede=_0x1a7ede['previous'];return _0x1a7ede;}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'](_0x5267e9){this['_markerNames']['add'](_0x5267e9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x223513=>this['_model']['markers']['get'](_0x223513))['filter'](_0x283521=>_0x283521);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5cc1a2=>{for(const _0x5818cb of this['getMarkers']())_0x5cc1a2['removeMarker'](_0x5818cb);}),this['_markerNames']['clear']();}['removeMarker'](_0x52800e){this['_model']['change'](_0x2018f3=>{_0x2018f3['removeMarker'](_0x52800e);}),this['_markerNames']['delete'](_0x52800e);}['addRange'](_0x5eb3e5){const _0x5d7d6f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x5d7d6f),this['_model']['change'](_0xa105e1=>{_0xa105e1['addMarker'](_0x5d7d6f,{'range':_0x5eb3e5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5de18a){for(const _0x4ff981 of this['getRanges']())if(_0x4ff981['isIntersecting'](_0x5de18a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5556a1=>_0x5556a1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a89a0,_0x5c951f)=>[..._0x3a89a0,..._0x5c951f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x440e1e=this['getRanges']();if(0x1!=_0x440e1e['length'])return null;const _0x25b566=_0x440e1e[0x0],_0x44759d=_0x25b566['start']['nodeAfter'],_0x21391d=_0x25b566['end']['nodeBefore'];return _0x44759d instanceof _0x546be1?_0x44759d!=_0x21391d?null:_0x44759d: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 _0x11bb19=[];let _0x99930e=this['head'];for(;_0x99930e;)_0x11bb19['push'](_0x99930e),_0x99930e=_0x99930e['next'];return _0x11bb19;}['setAttribute'](_0x48d914,_0x3facee){const _0x10e78b=nt(this['attributes']);it(_0x10e78b,_0x48d914,_0x3facee),st(_0x10e78b,this['attributes'])||(this['attributes']=_0x10e78b,this['_onAttributesChange'](_0x10e78b));}['removeAttribute'](_0x4ce25f){const _0x223726=nt(this['attributes']);rt(_0x223726,_0x4ce25f),st(_0x223726,this['attributes'])||(this['attributes']=_0x223726,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 _0xec3fc0()['substr'](0x1,0x5);}}function At(_0x5d2eef,_0x1c10b1,_0x5b9d2d){const _0x2df68e=_0x5d2eef['t'],t=_0x5d2eef['t'];switch(_0x1c10b1){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',_0x5b9d2d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b9d2d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b9d2d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b9d2d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b9d2d);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',_0x5b9d2d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b9d2d);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',_0x5b9d2d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b9d2d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b9d2d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b9d2d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b9d2d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b9d2d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b9d2d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b9d2d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b9d2d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b9d2d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b9d2d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b9d2d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b9d2d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5b9d2d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5b9d2d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b9d2d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b9d2d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b9d2d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b9d2d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b9d2d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b9d2d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b9d2d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b9d2d);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'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b9d2d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5b9d2d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5b9d2d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5b9d2d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5b9d2d);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 _0x2df68e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5b9d2d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2df68e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5b9d2d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b9d2d);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'},_0x5b9d2d);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'},_0x5b9d2d);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'},_0x5b9d2d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1c10b1;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x10292e,_0x335e20){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x10292e,this['_locale']=_0x335e20;}['getDescriptions'](_0x45fca1){const _0x4c7b4e=[],_0x23ede2=new Set(),_0x3a16e0=new Set();for(let _0x443981=0x0;_0x443981<_0x45fca1['length'];_0x443981++){const _0x26a9d0=_0x45fca1[_0x443981];if(!_0x26a9d0['isInContent'])continue;const _0x3ca858=this['_handleCustomCallbackDescription'](_0x26a9d0);if(_0x3ca858){if(null!=_0x26a9d0['subType']){if(_0x23ede2['has'](_0x26a9d0['subType']))continue;_0x23ede2['add'](_0x26a9d0['subType']);}_0x4c7b4e['push'](_0x3ca858);}else{if('attribute'==_0x26a9d0['type']){const _0x64f397=_0x26a9d0['data']['key'];if(_0x3a16e0['has'](_0x64f397))continue;_0x3a16e0['add'](_0x26a9d0['data']['key']),_0x64f397==Ke?this['_handleRenameSuggestionDescription'](_0x4c7b4e,_0x26a9d0):this['_handleAttributeSuggestionDescription'](_0x4c7b4e,_0x26a9d0);continue;}'insertion'!=_0x26a9d0['type']&&'deletion'!=_0x26a9d0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c7b4e,_0x26a9d0,_0x45fca1[_0x443981+0x1]);}}return this['_resolveDescriptionItems'](_0x4c7b4e);}['registerDescriptionCallback'](_0x41caf0){this['_customCallbacks']['push'](_0x41caf0);}['registerElementLabel'](_0x501b35,_0x12afc4,_0x35698d=_0x5dc5ee['normal']){'function'==typeof _0x501b35?_0x2d7d00(this['_itemLabelsCallbacks'],{'matchingCallback':_0x501b35,'label':_0x12afc4,'priority':_0x35698d}):this['_itemLabels']['set'](_0x501b35,_0x12afc4);}['registerAttributeLabel'](_0x44680a,_0xdc5d80){this['_attributeLabels']['set'](_0x44680a,_0xdc5d80);}['getItemLabel'](_0x28cd87,_0x585896=0x1){let _0x36e771;for(const _0x41fd7e of this['_itemLabelsCallbacks'])if(_0x41fd7e['matchingCallback'](_0x28cd87)){_0x36e771=_0x41fd7e['label'];break;}return _0x36e771||(_0x36e771=this['_itemLabels']['get'](_0x28cd87['name'])),_0x36e771?_0x36e771(_0x585896):0x1!==_0x585896?_0x585896+'\x20'+_0x28cd87['name']+'s':''+_0x28cd87['name'];}['_addDescriptionItems'](_0x22f3ac,_0x3e7f8e){const _0x85f58a=_0x3e7f8e['getFirstRange']()['getWalker'](),_0x24d59c='insertion'==_0x3e7f8e['type']?'add':'remove';for(const _0x44bd23 of _0x85f58a){const _0x45fcc7=_0x44bd23['item'],_0x23a9ac=_0x22f3ac[_0x22f3ac['length']-0x1];if(_0x45fcc7['is']('$textProxy'))_0x23a9ac&&_0x23a9ac['type']['indexOf']('Container')>-0x1&&_0x22f3ac['pop'](),_0x23a9ac&&'text'==_0x23a9ac['type']?_0x23a9ac[_0x24d59c]+=_0x45fcc7['data']:_0x22f3ac['push']({'type':'text','add':'add'==_0x24d59c?_0x45fcc7['data']:'','remove':'remove'==_0x24d59c?_0x45fcc7['data']:''});else{if(this['_schema']['isObject'](_0x45fcc7)){const _0x37ec5d=_0x45fcc7;if(_0x23a9ac&&_0x23a9ac['type']['indexOf']('Container')>-0x1&&_0x22f3ac['pop'](),'elementEnd'==_0x44bd23['type'])continue;_0x23a9ac&&_0x23a9ac['type']==_0x24d59c+'Object'&&_0x23a9ac['element']['name']==_0x37ec5d['name']?_0x23a9ac['quantity']++:_0x22f3ac['push']({'type':_0x24d59c+'Object','element':_0x37ec5d,'quantity':0x1}),_0x85f58a['skip'](_0x39438d=>!('elementEnd'==_0x39438d['type']&&_0x39438d['item']==_0x45fcc7));}else{if(this['_schema']['checkChild'](_0x45fcc7,'$text')||_0x45fcc7['is']('element','softBreak')){const _0x2597af=_0x45fcc7;if('add'==_0x24d59c&&'elementStart'==_0x44bd23['type']||'remove'==_0x24d59c&&'elementEnd'==_0x44bd23['type'])continue;if(_0x23a9ac&&-0x1==_0x23a9ac['type']['indexOf']('Container')){'text'==_0x23a9ac['type']&&(_0x23a9ac[_0x24d59c]+='\x0a');continue;}let _0x5154b6;if(_0x5154b6='add'==_0x24d59c?_0x2597af['nextSibling']&&!this['_schema']['isObject'](_0x2597af['nextSibling'])?_0x2597af['nextSibling']:null:_0x2597af['previousSibling']&&!this['_schema']['isObject'](_0x2597af['previousSibling'])?_0x2597af['previousSibling']:null,_0x2597af['isEmpty']||_0x5154b6&&_0x5154b6['isEmpty']){const _0x3ad4e3=_0x5154b6&&_0x5154b6['isEmpty']?_0x5154b6:_0x2597af;_0x23a9ac&&_0x23a9ac['type']==_0x24d59c+'EmptyContainer'&&_0x23a9ac['element']['name']==_0x3ad4e3['name']?_0x23a9ac['quantity']++:_0x22f3ac['push']({'type':_0x24d59c+'EmptyContainer','element':_0x3ad4e3,'quantity':0x1});}else _0x22f3ac['push']({'type':_0x24d59c+'Container','element':_0x2597af});}}}}}['_resolveDescriptionItems'](_0x79ab12){const _0x362e2b=this['_locale'],_0x4dba53=[],_0x59552c=[],_0x4f2787=[];for(const _0x2b222b of _0x79ab12)switch(_0x2b222b['type']){case'text':if(_0x2b222b['add']=_0x2b222b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2b222b['remove']=_0x2b222b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2b222b['add']&&''!=_0x2b222b['remove']){_0x4dba53['push']({'type':'replace','content':At(_0x362e2b,'REPLACE_TEXT',['\x22'+_0x2b222b['remove']+'\x22','\x22'+_0x2b222b['add']+'\x22'])});continue;}if(null!=_0x2b222b['add']['match'](/^ +$/)){_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Insert:*\x20%0',At(_0x362e2b,'ELEMENT_SPACE',_0x2b222b['add']['length']))});continue;}if(null!=_0x2b222b['remove']['match'](/^ +$/)){_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Remove:*\x20%0',At(_0x362e2b,'ELEMENT_SPACE',_0x2b222b['remove']['length']))});continue;}if(''!=_0x2b222b['add']){_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Insert:*\x20%0','\x22'+_0x2b222b['add']+'\x22')});continue;}_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Remove:*\x20%0','\x22'+_0x2b222b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Insert:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Remove:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'addContainer':_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Split:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'removeContainer':_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Merge:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'addFormat':_0x59552c['push'](_0x2b222b['key']);continue;case'removeFormat':_0x4f2787['push'](_0x2b222b['key']);continue;default:_0x4dba53['push'](_0x2b222b);}if(_0x59552c['length']){const _0x58c327=_0x59552c['map'](_0x34449e=>this['_attributeLabels']['has'](_0x34449e)?this['_attributeLabels']['get'](_0x34449e):_0x34449e)['join'](',\x20');_0x4dba53['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x58c327)});}if(_0x4f2787['length']){const _0x109356=_0x4f2787['map'](_0x1ac054=>this['_attributeLabels']['has'](_0x1ac054)?this['_attributeLabels']['get'](_0x1ac054):_0x1ac054)['join'](',\x20');_0x4dba53['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x109356)});}return _0x4dba53;}['_handleCustomCallbackDescription'](_0x2d4605){for(const _0x162ecb of this['_customCallbacks']){const _0x1feffc=_0x162ecb(_0x2d4605);if(_0x1feffc&&'type'in _0x1feffc)return _0x1feffc;}}['_handleAttributeSuggestionDescription'](_0x4f8371,_0x4f625b){const _0x9651ed=_0x4f625b['data'],_0xecb69=void 0x0===_0x9651ed['newValue']?'removeFormat':'addFormat';_0x4f8371['push']({'type':_0xecb69,'key':_0x9651ed['key']});}['_handleRenameSuggestionDescription'](_0x5ae93a,_0x4e990a){_0x5ae93a['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4e990a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5b379b,_0x3c0075,_0x3ecb4b){if(this['_addDescriptionItems'](_0x5b379b,_0x3c0075),_0x3ecb4b&&_0x3ecb4b['getFirstRange']()&&!_0x3c0075['getFirstRange']()['end']['isEqual'](_0x3ecb4b['getFirstRange']()['start'])){const _0x40f89b=_0x5b379b[_0x5b379b['length']-0x1],_0x4742a2='insertion'==_0x3c0075['type']?'add':'remove';_0x40f89b&&'text'==_0x40f89b['type']&&(_0x40f89b[_0x4742a2]+='\x0a');}}}class Ct extends _0x486e9c{['afterInit'](){const _0x17dcdf=this['editor'],_0x35f331=_0x17dcdf['plugins']['get']('TrackChangesEditing');_0x17dcdf['commands']['get']('showAIAssistant')&&_0x35f331['enableCommand']('showAIAssistant');}}class yt extends _0x486e9c{['afterInit'](){const _0x39dde5=this['editor'],_0x4c17d2=_0x39dde5['plugins']['get']('TrackChangesEditing');_0x39dde5['commands']['get']('toggleAi')&&_0x4c17d2['enableCommand']('toggleAi');}}class Nt extends _0x486e9c{['afterInit'](){const _0x429939=this['editor'],_0x3e09ae=_0x429939['plugins']['get']('TrackChangesEditing');_0x429939['commands']['get']('aiQuickAction')&&_0x3e09ae['enableCommand']('aiQuickAction');}}class Rt extends _0x486e9c{['afterInit'](){const _0x3c7dd3=this['editor'],_0x529a8f=_0x3c7dd3['locale'];if(!_0x3c7dd3['plugins']['has']('AlignmentEditing'))return;const _0x251e43=_0x3c7dd3['plugins']['get']('TrackChangesEditing');_0x251e43['enableDefaultAttributesIntegration']('alignment'),_0x251e43['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x529a8f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15ee25=this['editor'],_0x2ab483=_0x15ee25['locale'];_0x15ee25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41dd5c=>{if('formatBlock'!=_0x41dd5c['type'])return;const {data:_0x59f0a6}=_0x41dd5c;if(_0x59f0a6&&'alignment'==_0x59f0a6['commandName']){const _0xfe9b7d=_0x59f0a6['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x2ab483,'*Format:*\x20%0',function(_0x27e0bf){switch(_0x27e0bf){case'left':return At(_0x2ab483,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x2ab483,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x2ab483,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x2ab483,'FORMAT_JUSTIFY_TEXT');}}(_0xfe9b7d))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x486e9c{['afterInit'](){const _0x38381e=this['editor'],_0x1fdc8a=_0x38381e['plugins']['get']('TrackChangesEditing'),_0x128074=_0x38381e['locale'];for(const _0x393f34 of St){if(!_0x38381e['plugins']['has'](_0x393f34))continue;const _0x35fff1=_0x393f34['slice'](0x0,-0x7)['toLowerCase'](),_0x5579d9='FORMAT_'+_0x35fff1['toUpperCase']();_0x1fdc8a['enableDefaultAttributesIntegration'](_0x35fff1),_0x1fdc8a['descriptionFactory']['registerAttributeLabel'](_0x35fff1,At(_0x128074,_0x5579d9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ac073=this['editor'],_0x37e1a4=_0x3ac073['locale'],_0x237378=_0x3ac073['plugins']['get']('TrackChangesEditing');function _0x2f807b(_0x2f1d9e,_0x12d569){_0x237378['descriptionFactory']['registerDescriptionCallback'](_0x22ff5c=>{if('formatInline'!=_0x22ff5c['type'])return;const {data:_0x56ae29}=_0x22ff5c;return _0x56ae29&&_0x56ae29['commandName']===_0x2f1d9e?_0x56ae29['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x37e1a4,'*Format:*\x20%0',_0x12d569)}:{'type':'format','content':At(_0x37e1a4,'*Remove\x20format:*\x20%0',_0x12d569)}:void 0x0;});}_0x2f807b('bold',At(_0x37e1a4,'FORMAT_BOLD')),_0x2f807b('italic',At(_0x37e1a4,'FORMAT_ITALIC')),_0x2f807b('underline',At(_0x37e1a4,'FORMAT_UNDERLINE')),_0x2f807b('code',At(_0x37e1a4,'FORMAT_CODE')),_0x2f807b('strikethrough',At(_0x37e1a4,'FORMAT_STRIKETHROUGH')),_0x2f807b('subscript',At(_0x37e1a4,'FORMAT_SUBSCRIPT')),_0x2f807b('superscript',At(_0x37e1a4,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x486e9c{['afterInit'](){const _0x36c41a=this['editor'],_0x438c15=_0x36c41a['locale'];if(!_0x36c41a['plugins']['has']('BlockQuoteEditing'))return;const _0x51851f=_0x36c41a['plugins']['get']('TrackChangesEditing'),_0x79ef71=this['editor']['commands']['get']('blockQuote');_0x51851f['enableCommand']('blockQuote',(_0x3fb647,_0x1d7cf6={})=>{const _0x59dadb=this['editor']['model']['document']['selection'],_0xa2716e=_0x1d7cf6&&void 0x0!==_0x1d7cf6['forceValue']?_0x1d7cf6['forceValue']:!_0x79ef71['value'];let _0x2a028b=[];if(_0xa2716e){const _0x5adb9b=Array['from'](_0x59dadb['getSelectedBlocks']())['filter'](_0x1ffccf=>wt(_0x1ffccf)||function(_0x499419,_0x2f46bd){const _0x1c56be=_0x2f46bd['checkChild'](_0x499419['parent'],'blockQuote'),_0x1181dc=_0x2f46bd['checkChild'](['$root','blockQuote'],_0x499419);return _0x1c56be&&_0x1181dc;}(_0x1ffccf,this['editor']['model']['schema']));_0x2a028b=Tt(_0x5adb9b,_0x36c41a['model']);}else{const _0x5b168e=Array['from'](_0x59dadb['getSelectedBlocks']())['filter'](_0x3c3e91=>wt(_0x3c3e91));_0x2a028b=Tt(_0x5b168e,_0x36c41a['model']);}_0x36c41a['model']['change'](()=>{for(const _0x2a678b of _0x2a028b)_0x51851f['markBlockFormat'](_0x2a678b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xa2716e}]});});}),_0x51851f['descriptionFactory']['registerDescriptionCallback'](_0x2fc0e2=>{const {data:_0x8d60d3}=_0x2fc0e2;if(_0x8d60d3&&'blockQuote'==_0x8d60d3['commandName']){const _0x38ed52=At(_0x438c15,'ELEMENT_BLOCK_QUOTE');return _0x8d60d3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x438c15,'*Set\x20format:*\x20%0',_0x38ed52)}:{'type':'format','content':At(_0x438c15,'*Remove\x20format:*\x20%0',_0x38ed52)};}});}}function wt(_0x44519a){return'blockQuote'==_0x44519a['parent']['name'];}class Bt extends _0x486e9c{['afterInit'](){const _0x5af69a=this['editor'],_0x20ad0c=_0x5af69a['locale'],_0x1b45fc=_0x5af69a['plugins']['get']('TrackChangesEditing');_0x5af69a['plugins']['has']('BookmarkEditing')&&(_0x1b45fc['enableCommand']('insertBookmark'),_0x1b45fc['enableDefaultAttributesIntegration']('updateBookmark'),_0x1b45fc['descriptionFactory']['registerDescriptionCallback'](_0x40a796=>{if('insertion'!=_0x40a796['type']&&'deletion'!=_0x40a796['type']&&'attribute'!=_0x40a796['type'])return;const _0x771b2d=_0x40a796['getContainedElement']();if(null==_0x771b2d)return;if(!_0x771b2d['is']('element','bookmark'))return;const _0x58631c=_0x771b2d['getAttribute']('bookmarkId');if('insertion'==_0x40a796['type'])return{'type':'insertion','content':At(_0x20ad0c,'*Insert:*\x20%0','\x22'+_0x58631c+'\x22\x20'+At(_0x20ad0c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40a796['type'])return{'type':'deletion','content':At(_0x20ad0c,'*Remove:*\x20%0','\x22'+_0x58631c+'\x22\x20'+At(_0x20ad0c,'ELEMENT_BOOKMARK'))};const {data:_0x3115c4}=_0x40a796;if(!_0x3115c4||'bookmarkId'!=_0x3115c4['key'])return;return{'type':'format','content':At(_0x20ad0c,'*Set\x20bookmark:*\x20%0','\x22'+_0x3115c4['newValue']+'\x22')};}));}}class Ft extends _0x486e9c{['afterInit'](){const _0x232f55=this['editor'];_0x232f55['plugins']['has']('CaseChange')&&(_0x232f55['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x232f55['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x232f55['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x486e9c{['afterInit'](){const _0x2e9e28=this['editor'];_0x2e9e28['commands']['get']('ckbox')&&_0x2e9e28['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x486e9c{['afterInit'](){const _0x4925d3=this['editor'];if(!_0x4925d3['plugins']['has']('CodeBlock'))return;const _0x5491b2=_0x4925d3['plugins']['get']('TrackChangesEditing'),_0x4c4446=_0x4925d3['locale'],_0x37d754=_0x4925d3['config']['get']('codeBlock')['languages'],_0x44a253=_0x4925d3['commands']['get']('codeBlock');_0x5491b2['enableCommand']('indentCodeBlock'),_0x5491b2['enableCommand']('outdentCodeBlock'),_0x5491b2['enableCommand']('codeBlock',(_0x5101e1,_0x10af60={})=>{const _0x219c19=_0x4925d3['model'],_0x90cb9=_0x4925d3['model']['document']['selection'],_0x281659=_0x10af60&&void 0x0!==_0x10af60['forceValue']?_0x10af60['forceValue']:!_0x44a253['value'];let _0x469de8;_0x10af60['language']||(_0x10af60['language']=_0x37d754[0x0]['language']),_0x469de8=_0x281659?Array['from'](_0x90cb9['getSelectedBlocks']())['filter'](_0x1f5b78=>xt(_0x1f5b78)||function(_0x4fe697,_0x4a1d93){if(_0x4fe697['is']('rootElement')||_0x4a1d93['isLimit'](_0x4fe697))return!0x1;return _0x4a1d93['checkChild'](_0x4fe697['parent'],'codeBlock');}(_0x1f5b78,_0x219c19['schema'])):Array['from'](_0x90cb9['getSelectedBlocks']())['filter'](_0x4a5006=>xt(_0x4a5006));const _0x5da982=Tt(_0x469de8,_0x219c19);_0x219c19['change'](()=>{for(const _0x5f476f of _0x5da982)_0x5491b2['markBlockFormat'](_0x5f476f,{'commandName':'codeBlock','commandParams':[{..._0x10af60,'forceValue':_0x281659}],'formatGroupId':'blockName'});});}),(_0x5491b2['descriptionFactory']['registerElementLabel']('codeBlock',_0x4a7601=>At(_0x4c4446,'ELEMENT_CODE_BLOCK',_0x4a7601)),_0x5491b2['descriptionFactory']['registerDescriptionCallback'](_0x4c948e=>{if('formatBlock'!=_0x4c948e['type'])return;const _0x566c6c=_0x4c4446['t'],{data:_0x4a74dc}=_0x4c948e;if(!_0x4a74dc||'codeBlock'!=_0x4a74dc['commandName'])return;const _0x12926f=_0x4a74dc['commandParams'][0x0]['language'],_0x12cc66=_0x566c6c(_0x37d754['find'](_0x1d85a6=>_0x1d85a6['language']===_0x12926f)['label'])['toLowerCase']();return _0x4a74dc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4c4446,'*Set\x20format:*\x20%0',At(_0x4c4446,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x12cc66+')')}:{'type':'format','content':At(_0x4c4446,'*Remove\x20format:*\x20%0',At(_0x4c4446,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0xaea54){return'codeBlock'==_0xaea54['name'];}class Pt extends _0x486e9c{['afterInit'](){const _0x32bbe8=this['editor'];if(!_0x32bbe8['plugins']['has']('CommentsEditing'))return;_0x32bbe8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x486e9c{static get['requires'](){return[at];}['init'](){const _0x103235=this['editor'],_0x53da84=_0x103235['plugins']['get']('TrackChangesEditing');_0x53da84['enableCommand']('delete');const _0x591edd=_0x103235['commands']['get']('deleteForward');_0x53da84['enableCommand']('deleteForward',(_0x5e98a5,_0x379baf={})=>{const _0x26aeb2=_0x103235['model']['createSelection'](_0x103235['model']['document']['selection']);_0x26aeb2['isCollapsed']&&_0x103235['model']['modifySelection'](_0x26aeb2,{'direction':'forward','unit':_0x379baf['unit']});const _0x543f98=_0x26aeb2['getFirstRange'](),_0x3edc37=_0x704ba['fromRange'](_0x543f98);let _0x32fb5b;_0x5e98a5(_0x379baf),_0x32fb5b='$graveyard'==_0x3edc37['root']['rootName']?_0x103235['model']['createRange'](_0x543f98['start']):_0x103235['model']['createRange'](_0x3edc37['start'],_0x3edc37['end']),_0x3edc37['detach'](),_0x103235['model']['enqueueChange'](_0x591edd['buffer']['batch'],_0x6b2b7=>{_0x591edd['buffer']['lock'](),_0x6b2b7['setSelection'](_0x6b2b7['createRange'](_0x32fb5b['end'])),_0x591edd['buffer']['unlock']();});});}}class Gt extends _0x486e9c{['afterInit'](){const _0x351b30=this['editor'];if(!_0x351b30['plugins']['has']('ListEditing'))return;const _0x2be148=_0x351b30['locale'],_0x16eea2=_0x351b30['plugins']['get']('TrackChangesEditing'),_0x845eaa=_0x351b30['plugins']['has']('TodoListEditing'),_0x4909c0=!!_0x351b30['config']['get']('list.multiBlock');function _0x3cb1cc(_0x435bd2){return{'type':'format','content':''+At(_0x2be148,'*Set\x20format:*\x20%0',_0x435bd2)};}function _0x31cb87(_0x2907ec){return{'type':'format','content':''+At(_0x2be148,'*Remove\x20format:*\x20%0',_0x2907ec)};}_0x16eea2['enableDefaultAttributesIntegration']('numberedList'),_0x16eea2['enableDefaultAttributesIntegration']('bulletedList'),_0x16eea2['enableDefaultAttributesIntegration']('customNumberedList'),_0x16eea2['enableDefaultAttributesIntegration']('customBulletedList'),_0x16eea2['enableDefaultAttributesIntegration']('indentList'),_0x16eea2['enableDefaultAttributesIntegration']('outdentList'),_0x16eea2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x16eea2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4909c0&&(_0x16eea2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x16eea2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x845eaa&&(_0x16eea2['enableDefaultAttributesIntegration']('todoList'),_0x16eea2['enableDefaultAttributesIntegration']('checkTodoList'),_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x26bbb6=>{const {data:_0x54dc95}=_0x26bbb6;if(_0x54dc95&&'todoListChecked'==_0x54dc95['key'])return{'type':'format','content':_0x54dc95['newValue']?At(_0x2be148,'*Check\x20item*'):At(_0x2be148,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1d22a5=>{if(_0x1d22a5['batch']['isUndo'])return!0x1;let _0x2a0395=!0x1;const _0x48f6df=_0x16eea2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1d0a=>'todoListChecked'===_0x16eea2['_getAttributeKey'](_0x5e1d0a));for(const _0x1a1014 of _0x48f6df){'todo'!=_0x1a1014['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x16eea2['_findSuggestions'](_0x1a1014['getFirstRange'](),'attribute')['find'](_0x1ac456=>'listType'===_0x16eea2['_getAttributeKey'](_0x1ac456['suggestion']))||(_0x1d22a5['removeMarker'](_0x1a1014['getFirstMarker']()),_0x2a0395=!0x0));}return _0x2a0395;})),_0x16eea2['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x2be148,'FORMAT_INDENT'));const _0x14b5d4={'type':'format','content':''};_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x277c8b=>{const {data:_0x3d0987}=_0x277c8b;if(!_0x3d0987||'listType'!=_0x3d0987['key'])return;let _0x107362=_0x277c8b['head'];for(;_0x107362;){if(_0x107362['data']&&(('listStyle'==_0x107362['data']['key']||'listMarkerStyle'==_0x107362['data']['key'])&&(_0x107362['data']['newValue']&&'default'!=_0x107362['data']['newValue']||'default'!=_0x107362['data']['oldValue']&&!_0x3d0987['newValue'])||!_0x4909c0&&_0x107362['data']['key']==Ke))return _0x14b5d4;_0x107362=_0x107362['next'];}if(null==_0x3d0987['newValue'])switch(_0x3d0987['oldValue']){case'bulleted':return _0x31cb87(At(_0x2be148,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31cb87(At(_0x2be148,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31cb87(At(_0x2be148,'ELEMENT_TODO_LIST'));}switch(_0x3d0987['newValue']){case'bulleted':return _0x3cb1cc(At(_0x2be148,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cb1cc(At(_0x2be148,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cb1cc(At(_0x2be148,'ELEMENT_TODO_LIST'));}}),_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x23fe89=>{const {data:_0x74b51a}=_0x23fe89;if(_0x74b51a&&'listIndent'==_0x74b51a['key'])return null==_0x74b51a['newValue']||null==_0x74b51a['oldValue']&&0x0==_0x74b51a['newValue']?_0x14b5d4:void 0x0;}),_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x4909e8=>{if('attribute'!=_0x4909e8['type'])return;const {data:_0x288fc6}=_0x4909e8;if(!_0x288fc6||'listItemId'!=_0x288fc6['key'])return;const _0xfcaf78=Ht(_0x4909e8);return'newValue'==_0xfcaf78?{'type':'format','content':At(_0x2be148,'*Merge:*\x20list\x20item')}:'oldValue'==_0xfcaf78?{'type':'format','content':At(_0x2be148,'*Split:*\x20list\x20item')}:_0x14b5d4;}),_0x351b30['model']['document']['registerPostFixer'](_0x17f5f6=>this['listItemIdFixer'](_0x17f5f6)),_0x351b30['model']['document']['registerPostFixer'](_0x4bfe60=>this['noTrackChangesFixer'](_0x4bfe60)),_0x351b30['model']['document']['on']('change:data',(_0x2be71a,_0x44bda3)=>{if(_0x44bda3['isUndo']||!_0x44bda3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x566b89){if(_0x566b89['batch']['isUndo']||!_0x566b89['batch']['isLocal'])return!0x1;let _0x59c24e=!0x1;const _0xf55cdc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d2f32=>_0x3d2f32['data']&&'listItemId'==_0x3d2f32['data']['key'])['filter'](_0xb81350=>_0xb81350['data']['newValue']&&_0xb81350['data']['oldValue']);for(const _0x574bd3 of _0xf55cdc)Ht(_0x574bd3)||(_0x566b89['removeMarker'](_0x574bd3['getFirstMarker']()),_0x59c24e=!0x0);return _0x59c24e;}['noTrackChangesFixer'](_0x558bc8){if(_0x558bc8['batch']['isUndo']||!_0x558bc8['batch']['isLocal'])return!0x1;const _0x5d548f=this['editor']['model']['document']['differ'],_0x147ba6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x147ba6['trackChangesCommand']['value'])return!0x1;let _0x2083e6=!0x1;const _0x18c4df=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x3f71c1=_0x5d548f['getChanges']()['filter'](_0x5d5ac6=>'attribute'==_0x5d5ac6['type'])['filter'](_0x873c1c=>_0x18c4df['has'](_0x873c1c['attributeKey']));if(0x0==_0x3f71c1['length'])return _0x2083e6;const _0x14b389=new Set(_0x5d548f['getMarkersToAdd']()['filter'](_0x320ad7=>{if(!_0x320ad7['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x1d803c=_0x36ab20(_0x320ad7['name'])['subType']['split']('|')[0x0];return _0x18c4df['has'](_0x1d803c);})['map'](_0x2a7530=>_0x36ab20(_0x2a7530['name'])['id']));for(const _0x15d77c of _0x3f71c1){const _0xd4cebe=_0x147ba6['_findSuggestions'](_0x15d77c['range'],'attribute')['filter'](_0x9d6202=>{if(_0x9d6202['meta']['isNextTo'])return!0x1;if(_0x14b389['has'](_0x9d6202['suggestion']['id']))return!0x1;const _0x2a1f51=_0x147ba6['_getAttributeKey'](_0x9d6202['suggestion']);return _0x18c4df['has'](_0x2a1f51);})['map'](_0x142942=>_0x142942['suggestion']);if(_0xd4cebe['length']){for(const _0x19dc73 of _0xd4cebe)_0x558bc8['removeMarker'](_0x19dc73['getFirstMarker']());_0x2083e6=!0x0;}}return _0x2083e6;}['assureChains'](){const _0x4e3739=this['editor']['plugins']['get']('TrackChangesEditing'),_0x585df1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x507a01;const _0x3efc41=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bf6dc=>{if(_0x1bf6dc['data']['oldRange']||!_0x1bf6dc['data']['newRange'])return null;if(!_0x1bf6dc['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xdd0158}=_0x36ab20(_0x1bf6dc['name']);if(!_0x4e3739['hasSuggestion'](_0xdd0158))return null;const _0x491ba2=_0x4e3739['getSuggestion'](_0xdd0158);return _0x585df1['includes'](_0x491ba2['data']['key']);})['map'](_0x2b37f4=>{const {id:_0x2c53b6}=_0x36ab20(_0x2b37f4['name']),_0x508e97=_0x4e3739['getSuggestion'](_0x2c53b6);return _0x507a01=_0x508e97['attributes']['groupId'],_0x508e97['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3efc41['size'])return;const _0x1f9913=_0x4e3739['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ae0cd=>'attribute'==_0x2ae0cd['type']&&_0x2ae0cd['data']&&_0x585df1['includes'](_0x2ae0cd['data']['key'])&&_0x2ae0cd['attributes']['groupId']!=_0x507a01)['map'](_0x4f3e7c=>({'listItem':_0x4f3e7c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f3e7c['attributes']['groupId']})),_0x8b420=new Set();for(const {groupId:_0x210db0,listItem:_0x1a64c4}of _0x1f9913)_0x3efc41['has'](_0x1a64c4)&&_0x8b420['add'](_0x210db0);for(const _0x4e4741 of _0x4e3739['getSuggestions']())_0x8b420['has'](_0x4e4741['attributes']['groupId'])&&_0x4e4741['setAttribute']('groupId',_0x507a01);}['_supportLegacySuggestions'](){const _0x1538ab=this['editor'],_0x4021ca=_0x1538ab['locale'],_0x5db141=_0x1538ab['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5db141['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x41b0be,_0x5c76dc){const _0x242a5e=[];for(let _0x5b3115 of _0x41b0be)_0x5b3115['start']['nodeAfter']===_0x5b3115['end']['parent']&&(_0x5b3115=_0x1538ab['model']['createRange'](_0x1538ab['model']['createPositionAt'](_0x5b3115['start']['nodeAfter'],0x0))),_0x242a5e['push'](_0x5b3115);_0x1538ab['model']['change'](_0x8a40bb=>{const _0x2e5f9f=_0x1538ab['model']['document']['selection'],_0x315c60=Array['from'](_0x2e5f9f['getRanges']())['map'](_0x1b026c=>_0x704ba['fromRange'](_0x1b026c));_0x8a40bb['setSelection'](_0x242a5e),_0x1538ab['commands']['get'](_0x5c76dc['commandName'])['refresh'](),_0x5c76dc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1538ab['execute'](_0x5c76dc['commandName'],..._0x5c76dc['commandParams']),_0x8a40bb['setSelection'](_0x315c60);for(const _0x3eb29f of _0x315c60)_0x3eb29f['detach']();});}),_0x5db141['descriptionFactory']['registerElementLabel'](function(_0x3c5101){const _0x572aae=!_0x1538ab['model']['schema']['isObject'](_0x3c5101),_0x1ee655=_0x3c5101['previousSibling'],_0x4a6bfb=_0x3c5101['nextSibling'],_0x4f4b82=_0x3c5101['getAttribute']('listItemId'),_0x550e2b=!_0x1ee655||_0x1ee655['getAttribute']('listItemId')!==_0x4f4b82,_0x479d93=!_0x4a6bfb||_0x4a6bfb['getAttribute']('listItemId')!==_0x4f4b82;return _0x572aae&&Boolean(_0x4f4b82)&&_0x550e2b&&_0x479d93;},_0xce5fcc=>At(_0x4021ca,'ELEMENT_LIST_ITEM',_0xce5fcc));}['_registerLegacyDescription'](){const _0x589074=this['editor'],_0x6458a0=_0x589074['locale'];function _0x1eb0ca(_0x321910){const _0x36e66e=_0x589074['commands']['get']('bulletedList')['value'],_0x12cf94=_0x589074['commands']['get']('numberedList')['value'];return'numberedList'===_0x321910?_0x36e66e:_0x12cf94;}_0x589074['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2dbc52){if('formatBlock'!=_0x2dbc52['type'])return;const {data:_0x4e548c}=_0x2dbc52;if(!_0x4e548c)return;let _0x2c5a6b,_0x435ac0,_0x395633,_0x333b3b;switch(_0x4e548c['commandName']){case'bulletedList':_0x395633=_0x4e548c['commandParams'][0x0]['forceValue'],_0x333b3b=_0x1eb0ca(_0x4e548c['commandName']),_0x2c5a6b=_0x395633?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x333b3b&&_0x589074['config']['get']('list.multiBlock')||(_0x2c5a6b='*Change\x20to:*\x20%0'),_0x435ac0={'type':'format','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x395633=_0x4e548c['commandParams'][0x0]['forceValue'],_0x333b3b=_0x1eb0ca(_0x4e548c['commandName']),_0x2c5a6b=_0x395633?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x333b3b&&_0x589074['config']['get']('list.multiBlock')||(_0x2c5a6b='*Change\x20to:*\x20%0'),_0x435ac0={'type':'format','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2c5a6b='*Indent:*\x20%0',_0x435ac0={'type':'format','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2c5a6b=function(_0x547fe4){const _0x1170e9=_0x547fe4['getFirstRange']();let _0x380977=_0x1170e9['start']['nodeAfter'];for(;_0x380977&&_0x1170e9['containsItem'](_0x380977);){if(_0x380977['getAttribute']('listIndent')>0x0)return!0x1;_0x380977=_0x380977['nextSibling'];}return!0x0;}(_0x2dbc52)?At(_0x6458a0,'*Format:*\x20remove\x20from\x20%0',At(_0x6458a0,function(_0x1ca10d){return'ELEMENT_'+_0x1ca10d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2dbc52))):At(_0x6458a0,'*Outdent:*\x20%0',At(_0x6458a0,'ELEMENT_LIST_ITEM')),_0x435ac0={'type':'format','content':_0x2c5a6b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4e548c['multipleBlocks']&&(_0x2c5a6b='*Merge:*\x20%0',_0x435ac0={'type':'deletion','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_LIST_ITEM'))});}return _0x435ac0;});}}function Ht(_0x414ab5){let _0x517db1=_0x414ab5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x517db1;){const _0x353d2b=_0x517db1['getAttribute']('listItemId');if(!_0x353d2b)return!0x1;if(_0x353d2b==_0x414ab5['data']['newValue'])return'newValue';if(_0x353d2b==_0x414ab5['data']['oldValue'])return'oldValue';_0x517db1=_0x517db1['previousSibling'];}return!0x1;}class $t extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2d7d41=this['editor']['config']['get']('list.properties'),_0x210700=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d7d41['styles']&&_0x210700['enableDefaultAttributesIntegration']('listStyle'),_0x2d7d41['reversed']&&_0x210700['enableDefaultAttributesIntegration']('listReversed'),_0x2d7d41['startIndex']&&_0x210700['enableDefaultAttributesIntegration']('listStart');const _0x4242d6={'type':'format','content':''};_0x210700['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf48faf=this['editor']['locale'];_0x210700['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0xf48faf,'FORMAT_LIST_REVERSED')),_0x210700['descriptionFactory']['registerDescriptionCallback'](_0x28b243=>{const {data:_0x4fbcb8}=_0x28b243;if(_0x4fbcb8&&'listReversed'==_0x4fbcb8['key'])return null==_0x4fbcb8['newValue']||0x0==_0x4fbcb8['newValue']&&null==_0x4fbcb8['oldValue']?_0x4242d6:void 0x0;}),_0x210700['descriptionFactory']['registerAttributeLabel']('listStart',At(_0xf48faf,'FORMAT_LIST_START')),_0x210700['descriptionFactory']['registerDescriptionCallback'](_0x38e24f=>{const {data:_0x3676ff}=_0x38e24f;if(_0x3676ff&&'listStart'==_0x3676ff['key'])return null==_0x3676ff['newValue']||0x1==_0x3676ff['newValue']&&null==_0x3676ff['oldValue']?_0x4242d6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2b93b7=>{if(_0x2b93b7['batch']['isUndo'])return!0x1;let _0x13129f=!0x1;const _0x599400=_0x210700['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f0e71=>{const _0x1b4f8c=_0x210700['_getAttributeKey'](_0x3f0e71);return'listStart'==_0x1b4f8c||'listReversed'==_0x1b4f8c;});for(const _0x1601c7 of _0x599400){const _0x3f5add=_0x1601c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f5add||'customNumbered'==_0x3f5add)continue;_0x210700['_findSuggestions'](_0x1601c7['getFirstRange'](),'attribute')['find'](_0x24c4c5=>'listType'==_0x210700['_getAttributeKey'](_0x24c4c5['suggestion']))||(_0x2b93b7['removeMarker'](_0x1601c7['getFirstMarker']()),_0x13129f=!0x0);}return _0x13129f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4e5470){const _0x92530a=this['editor']['locale'],{data:_0x19dc11}=_0x4e5470,_0x28c46a={'type':'format','content':''};if(!_0x19dc11||'listStyle'!=_0x19dc11['key'])return;if(!_0x19dc11['oldValue'])return'default'==_0x19dc11['newValue']?_0x28c46a:{'type':'format','content':''+At(_0x92530a,'*Set\x20format:*\x20%0',At(_0x92530a,this['_getTranslationKeyForListStyle'](_0x19dc11['newValue'])))};if(!_0x19dc11['newValue']){if('default'==_0x19dc11['oldValue'])return _0x28c46a;let _0xf02381=_0x4e5470['head'];for(;_0xf02381;){if(_0xf02381['data']&&'listType'==_0xf02381['data']['key']&&_0xf02381['data']['newValue'])return _0x28c46a;_0xf02381=_0xf02381['next'];}return{'type':'format','content':''+At(_0x92530a,'*Remove\x20format:*\x20%0',At(_0x92530a,this['_getTranslationKeyForListStyle'](_0x19dc11['oldValue'])))};}if('default'!=_0x19dc11['newValue'])return{'type':'format','content':''+At(_0x92530a,'*Set\x20format:*\x20%0',At(_0x92530a,this['_getTranslationKeyForListStyle'](_0x19dc11['newValue'])))};let _0x307be5=_0x4e5470['head'];for(;_0x307be5;){if(_0x307be5['data']&&'listType'==_0x307be5['data']['key']&&_0x307be5['data']['newValue']&&_0x307be5['data']['oldValue'])return _0x28c46a;_0x307be5=_0x307be5['next'];}return{'type':'format','content':At(_0x92530a,'*Set\x20format:*\x20%0',At(_0x92530a,'ELEMENT_'+_0x4e5470['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x328894=this['editor'],_0x3447c9=_0x328894['locale'];_0x328894['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbd1a=>{if('formatBlock'!=_0x3dbd1a['type'])return;const {data:_0x162e42}=_0x3dbd1a;if(!_0x162e42)return;let _0x46a9b7,_0x1baf09;switch(_0x162e42['commandName']){case'listStyle':_0x46a9b7='*Change\x20to:*\x20%0',_0x1baf09={'type':'format','content':At(_0x3447c9,_0x46a9b7,At(_0x3447c9,this['_getTranslationKeyForListStyle'](_0x162e42['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46a9b7=_0x162e42['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1baf09={'type':'format','content':At(_0x3447c9,_0x46a9b7)};break;case'listStart':_0x46a9b7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1baf09={'type':'format','content':At(_0x3447c9,_0x46a9b7,_0x162e42['commandParams'][0x0]['startIndex'])};}return _0x1baf09;});}['_getTranslationKeyForListStyle'](_0x33a95e){return'ELEMENT_'+function(_0x3de01b){if(Wt['includes'](_0x3de01b))return'bulleted';if(Vt['includes'](_0x3de01b))return'numbered';return null;}(_0x33a95e)['toUpperCase']()+'_LIST_'+_0x33a95e['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 _0x486e9c{['afterInit'](){const _0x43a3ba=this['editor'];_0x43a3ba['commands']['get']('emoji')&&_0x43a3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x486e9c{static get['requires'](){return[lt];}['init'](){const _0xe9b36=this['editor'],_0x18ea7e=_0xe9b36['plugins']['get']('TrackChangesEditing'),_0x5b68b2=_0xe9b36['commands']['get']('enter');_0x18ea7e['enableCommand']('enter',()=>{_0xe9b36['model']['change'](_0x37985c=>{const _0x248072=_0xe9b36['model']['document']['selection'],_0x19cb07=_0x248072['getFirstPosition'](),_0x75306c=_0x704ba['fromRange'](_0x248072['getFirstRange']());if(_0x5b68b2['enterBlock'](_0x37985c)){const _0x318be3=_0xe9b36['model']['createPositionAt'](_0x19cb07['parent']['nextSibling'],0x0),_0x2dbdc2=_0x37985c['createRange'](_0x19cb07,_0x318be3);_0x18ea7e['markInsertion'](_0x2dbdc2);}else _0x37985c['setSelection'](_0x37985c['createRange'](_0x75306c['end']));_0x75306c['detach'](),_0x5b68b2['fire']('afterExecute',{'writer':_0x37985c});});});}}class Kt extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b67cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b67cd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b67cd['enableCommand']('findNext'),_0x1b67cd['enableCommand']('findPrevious'),_0x1b67cd['enableCommand']('replace'),_0x1b67cd['enableCommand']('replaceAll');}['handleFindCommand'](_0x4f6930,_0x189219,_0x1a52ee={}){const _0xbe164a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4f6930(_0x5287fe=>{let _0x485144=('string'==typeof _0x189219?_0xbe164a['findByTextCallback'](_0x189219,_0x1a52ee):_0x189219)(_0x5287fe);Array['isArray'](_0x485144)&&(_0x485144={'results':_0x485144,'searchText':'string'==typeof _0x189219?_0x189219:''});const _0x4caef8=_0x485144['results']['filter'](_0x530ca6=>!0x1===this['_isInDeletionRange'](_0x530ca6,_0x5287fe['item']));return{..._0x485144,'results':_0x4caef8};},_0x1a52ee);}['_isInDeletionRange'](_0x4ebf5a,_0x502a6c){const _0xdf5085=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x502a6c,_0x4ebf5a['start']),this['editor']['model']['createPositionAt'](_0x502a6c,_0x4ebf5a['end']));for(const _0x4ca927 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xdf5085['getIntersection'](_0x4ca927['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 _0x486e9c{['afterInit'](){const _0x26a487=this['editor']['locale'],_0x3357e1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d013b,commandName:_0x2f6fb7}of Xt)this['editor']['plugins']['has'](_0x2d013b)&&_0x3357e1['enableDefaultAttributesIntegration'](_0x2f6fb7);_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x26a487,'FORMAT_FONT_SIZE')),_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x26a487,'FORMAT_FONT_FAMILY')),_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x26a487,'FORMAT_FONT_COLOR')),_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x26a487,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x427cee=this['editor'],_0x478951=_0x427cee['locale'];_0x427cee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173531=>{const _0x3d985d=_0x478951['t'];if('formatInline'!=_0x173531['type'])return;const {data:_0x132243}=_0x173531;if(null!=_0x132243){if('fontSize'==_0x132243['commandName']){const _0x1c7783=_0x132243['commandParams'][0x0]['value'];if(_0x1c7783){const _0xa762aa=_0x3d985d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5e804d=>_0x5e804d['model']==_0x1c7783)['title'])['toLowerCase']();return{'type':'format','content':At(_0x478951,'*Set\x20font\x20size:*\x20%0',_0xa762aa)};}return{'type':'format','content':At(_0x478951,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x132243['commandName']){const _0x2e2bf1=_0x132243['commandParams'][0x0]['value'];return _0x2e2bf1?{'type':'format','content':At(_0x478951,'*Set\x20font\x20family:*\x20%0',_0x2e2bf1)}:{'type':'format','content':At(_0x478951,'*Reset\x20font\x20family*')};}if('fontColor'==_0x132243['commandName']){const _0x4b0f70=_0x132243['commandParams'][0x0]['value'];if(_0x4b0f70){const _0x1c30e5=_0x5cccb4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x76c36b=>_0x76c36b['model']==_0x4b0f70);let _0x1f31b8=_0x4b0f70,_0x4ce0d9='';return _0x1c30e5&&(_0x1f31b8=_0x1c30e5['label'],_0x4ce0d9=_0x3d985d(_0x1f31b8)['toLowerCase']()),{'type':'format','content':At(_0x478951,'*Set\x20font\x20color:*\x20%0',_0x4ce0d9)['trim'](),'color':{'value':_0x4b0f70,'title':_0x4ce0d9||_0x1f31b8}};}return{'type':'format','content':At(_0x478951,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x132243['commandName']){const _0xc2a664=_0x132243['commandParams'][0x0]['value'];if(_0xc2a664){const _0x351d7e=_0x5cccb4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4da088=>_0x4da088['model']==_0xc2a664);let _0x35aa1c=_0xc2a664,_0xb4e657='';return _0x351d7e&&(_0x35aa1c=_0x351d7e['label'],_0xb4e657=_0x3d985d(_0x35aa1c)['toLowerCase']()),{'type':'format','content':At(_0x478951,'*Set\x20font\x20background\x20color:*\x20%0',_0xb4e657)['trim'](),'color':{'value':_0xc2a664,'title':_0xb4e657||_0x35aa1c}};}return{'type':'format','content':At(_0x478951,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x486e9c{['afterInit'](){const {plugins:_0x5b2365}=this['editor'];_0x5b2365['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5b2365['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xc4c645,plugins:_0x3efdbf,commands:_0x579ceb}=this['editor'],_0x484ae7=_0x3efdbf['get']('TrackChangesEditing');_0x579ceb['get']('footnotesStyle')&&_0x484ae7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x579ceb['get']('footnotesStart')&&_0x484ae7['enableDefaultAttributesIntegration']('footnotesStart'),_0x484ae7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xc4c645,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x484ae7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xc4c645,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x44ff10=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xa88a0c,commands:_0x48b79b}=this['editor'];_0x48b79b['get']('insertFootnote')&&_0x44ff10['enableCommand']('insertFootnote'),_0x44ff10['descriptionFactory']['registerElementLabel']('footnoteRef',_0x365fa7=>At(_0xa88a0c,'ELEMENT_FOOTNOTE_REF',_0x365fa7)),_0x44ff10['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3ac9c8=>At(_0xa88a0c,'ELEMENT_FOOTNOTE_DEFINITION',_0x3ac9c8)),_0x44ff10['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1aadfa=>At(_0xa88a0c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1aadfa));}}class Qt extends _0x486e9c{['afterInit'](){const _0x31bba5=this['editor'],_0x243085=_0x31bba5['plugins']['get']('TrackChangesEditing'),_0x1c64d0=_0x31bba5['commands']['get']('copyFormat'),_0x27bcc3=_0x31bba5['commands']['get']('pasteFormat');_0x1c64d0&&_0x27bcc3&&(_0x243085['enableDefaultAttributesIntegration']('pasteFormat'),_0x243085['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xe0ef64=this['editor'],_0x59335a=_0xe0ef64['locale'];_0xe0ef64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54afa1=>{if('formatBlock'!=_0x54afa1['type']&&'formatInline'!=_0x54afa1['type'])return;const {data:_0x5d23cf}=_0x54afa1;if(_0x5d23cf&&'pasteFormat'===_0x5d23cf['commandName']){const _0x5a198c=[],_0x176dcd=_0x5d23cf['commandParams'][0x0];for(const [_0xbd483e,_0xcad205]of Object['entries'](_0x176dcd))_0x5a198c['push'](Zt(_0xe0ef64,_0xbd483e,_0xcad205));return _0x5a198c['length']?{'type':'format','content':At(_0x59335a,'*Set\x20format\x20to:*\x20%0',_0x5a198c['join'](',\x20'))}:{'type':'format','content':At(_0x59335a,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x30d2ca,_0x3a3a01,_0x3ef567){const _0x39620a=_0x30d2ca['locale']['t'],_0x177669=_0x3a3a01['split'](/(?=[A-Z])/)['join']('\x20'),_0x536338=_0x39620a(_0x177669['charAt'](0x0)['toUpperCase']()+_0x177669['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ef567)return _0x536338;if('fontColor'===_0x3a3a01||'fontBackgroundColor'===_0x3a3a01){const _0x232320=_0x5cccb4(_0x30d2ca['config']['get']('fontColor.colors'))['find'](_0x16585e=>_0x16585e['model']==_0x3ef567);return _0x536338+'\x20('+(_0x232320?_0x39620a(_0x232320['label'])['toLowerCase']():_0x3ef567)+')';}if('fontSize'===_0x3a3a01&&isNaN(parseFloat(_0x3ef567))){const _0x513162=_0x30d2ca['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x30d2ca['config']['get']('fontSize.options'))['find'](_0x21ee05=>_0x21ee05['model']==_0x3ef567);return _0x536338+'\x20('+(_0x513162?_0x39620a(_0x513162['title'])['toLowerCase']():_0x3ef567)+')';}return _0x536338+'\x20('+_0x3ef567+')';}class Jt extends _0x486e9c{['_headingOptions'];['afterInit'](){const _0x1876d2=this['editor'];if(!_0x1876d2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1876d2['config']['get']('heading.options');const _0x5f79f=_0x1876d2['locale'],_0x51fe03=_0x1876d2['plugins']['get']('TrackChangesEditing');_0x51fe03['enableDefaultAttributesIntegration']('heading');for(const _0x56d046 of this['_headingOptions'])'paragraph'!=_0x56d046['model']&&_0x51fe03['descriptionFactory']['registerElementLabel'](_0x56d046['model'],_0x2dacfc=>{const _0x2b1fd0=this['_getHeadingLevel'](_0x56d046['model']);return null!==_0x2b1fd0?_0x5c0239(_0x2dacfc,_0x2b1fd0):_0x2df6a5(_0x2dacfc,_0x56d046['title']);});function _0x5c0239(_0x103c2f,_0x149407){return At(_0x5f79f,'ELEMENT_HEADING',[_0x103c2f,_0x149407]);}function _0x2df6a5(_0x20423e,_0x55174c){return At(_0x5f79f,'ELEMENT_HEADING_CUSTOM',[_0x20423e,_0x55174c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29835f=this['editor'],_0xe61a13=_0x29835f['locale'];function _0x5efabf(_0x130761,_0x2e507f){return At(_0xe61a13,'ELEMENT_HEADING_CUSTOM',[_0x130761,_0x2e507f]);}_0x29835f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed078=>{if('formatBlock'!=_0x1ed078['type'])return;const {data:_0x29d25f}=_0x1ed078;if(_0x29d25f&&'heading'==_0x29d25f['commandName']){const _0x331599=_0x29d25f['commandParams'][0x0]['value'],_0x19d5fc=this['_getHeadingLevel'](_0x331599);if(null!==_0x19d5fc)return{'type':'format','content':At(_0xe61a13,'*Change\x20to:*\x20%0',(_0x49bb40=0x1,_0x555296=_0x19d5fc,At(_0xe61a13,'ELEMENT_HEADING',[_0x49bb40,_0x555296])))};const _0x32501e=this['_headingOptions']['find'](_0x38285a=>_0x38285a['model']===_0x331599)['title'];return{'type':'format','content':At(_0xe61a13,'*Change\x20to:*\x20%0',_0x5efabf(0x1,_0x32501e))};}var _0x49bb40,_0x555296;});}['_getHeadingLevel'](_0x251137){const _0x43fb89=_0x251137['match'](/^heading(\d+)/);if(_0x43fb89)return _0x43fb89[0x1];const _0x4e6c8a=this['_headingOptions']?.['find'](_0x24b387=>_0x24b387['model']==_0x251137);if(_0x4e6c8a&&_0x4e6c8a['view']){const _0x239c20=_0x4e6c8a['view'],_0x4ba75e=(_0x239c20['name']??_0x239c20)['match'](/^h(\d+)/);if(_0x4ba75e)return _0x4ba75e[0x1];}return null;}}class te extends _0x486e9c{['afterInit'](){const _0x2db207=this['editor'];if(!_0x2db207['plugins']['has']('HighlightEditing'))return;const _0xde3822=_0x2db207['plugins']['get']('TrackChangesEditing'),_0x172279=_0x2db207['locale'];_0xde3822['enableDefaultAttributesIntegration']('highlight'),_0xde3822['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x172279,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bb231=this['editor'],_0x53a306=_0x4bb231['locale'];_0x4bb231['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4359f7=>{if('formatInline'!=_0x4359f7['type'])return;const {data:_0x29d81c}=_0x4359f7;if(_0x29d81c&&'highlight'==_0x29d81c['commandName']){const _0xa944a7=_0x53a306['t'],_0x4bb15d=_0x29d81c['commandParams'][0x0]['value'];if(_0x4bb15d){const _0x53aaf6=_0x4bb231['config']['get']('highlight.options')['find'](_0x56168d=>_0x56168d['model']==_0x4bb15d),_0x430a8a=_0xa944a7(_0x53aaf6['title'])['toLowerCase']();return{'type':'format','content':At(_0x53a306,'*Set\x20highlight:*\x20%0',_0x430a8a),'color':{'value':_0x53aaf6['color'],'title':_0x53aaf6['title']}};}return{'type':'format','content':At(_0x53a306,'*Remove\x20highlight*',At(_0x53a306,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x486e9c{['afterInit'](){const _0xfd4248=this['editor'];if(!_0xfd4248['plugins']['has']('HorizontalLineEditing'))return;_0xfd4248['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46f9ac=_0xfd4248['plugins']['get']('TrackChangesEditing'),_0x31e609=_0xfd4248['locale'];_0x46f9ac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1ac390=>At(_0x31e609,'ELEMENT_HORIZONTAL_LINE',_0x1ac390));}}class ne extends _0x486e9c{['afterInit'](){const _0xe6b55b=this['editor'];if(!_0xe6b55b['plugins']['has']('HtmlEmbed'))return;const _0x450123=_0xe6b55b['plugins']['get']('TrackChangesEditing'),_0x1e189c=_0xe6b55b['locale'];_0x450123['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d999a=>At(_0x1e189c,'ELEMENT_HTML_EMBED',_0x5d999a)),_0x450123['enableDefaultAttributesIntegration']('htmlEmbed'),_0x450123['descriptionFactory']['registerDescriptionCallback'](_0x5b4ed9=>{if('attribute'!=_0x5b4ed9['type'])return;const {data:_0x1ecbbd}=_0x5b4ed9;if(_0x1ecbbd&&'value'==_0x1ecbbd['key']&&_0x5b4ed9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x27c36a=At(_0x1e189c,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1e189c,'*Change\x20%0\x20content*',_0x27c36a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26c622=this['editor'],_0x1d8e34=_0x26c622['locale'];_0x26c622['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x592401=>{if('formatBlock'!=_0x592401['type'])return;const {data:_0x247f25}=_0x592401;if(_0x247f25&&'htmlEmbed'==_0x247f25['commandName']){const _0x161721=At(_0x1d8e34,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1d8e34,'*Change\x20%0\x20content*',_0x161721)};}});}}class ie extends _0x486e9c{['afterInit'](){const _0x480420=this['editor'];if(!_0x480420['plugins']['has']('ImageEditing'))return;const _0x416de2=_0x480420['plugins']['get']('TrackChangesEditing'),_0x5290f5=_0x480420['plugins']['get']('ImageUtils'),_0x5c047b=_0x480420['locale'];_0x416de2['enableCommand']('insertImage'),_0x416de2['descriptionFactory']['registerElementLabel']('imageBlock',_0x1884ef=>At(_0x5c047b,'ELEMENT_IMAGE',_0x1884ef)),_0x416de2['descriptionFactory']['registerElementLabel']('imageInline',_0x54f8d8=>At(_0x5c047b,'ELEMENT_INLINE_IMAGE',_0x54f8d8)),_0x416de2['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x5c047b,'ELEMENT_CAPTION')),_0x480420['plugins']['has']('ImageUploadEditing')&&_0x416de2['enableCommand']('uploadImage'),_0x480420['plugins']['has']('ImageBlockEditing')&&_0x480420['plugins']['has']('ImageInlineEditing')&&(_0x416de2['enableCommand']('imageTypeInline',(_0x1fe922,_0x4dde93)=>{const _0x5bf4d2=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']);_0x480420['model']['change'](()=>{_0x416de2['markBlockFormat'](_0x5bf4d2,{'commandName':'imageTypeInline','commandParams':[_0x4dde93]},[],'convertBlockImageToInline');});}),_0x416de2['enableCommand']('imageTypeBlock',(_0x3a6d2a,_0x4bbd86)=>{_0x480420['model']['change'](_0x3a82c8=>{let _0x110935=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x5089d3=_0x3a82c8['createRangeOn'](_0x110935);const _0xb422a4=tt['fromPosition'](_0x5089d3['start'],'toPrevious'),_0x16bfa2=tt['fromPosition'](_0x5089d3['end'],'toNext');_0x416de2['forceDefaultExecution'](()=>_0x3a6d2a(_0x4bbd86)),_0x110935=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x5089d3=_0x3a82c8['createRangeOn'](_0x110935);const _0x590ab7=_0x3a82c8['createRange'](_0xb422a4,_0x16bfa2);_0xb422a4['detach'](),_0x16bfa2['detach'](),_0x416de2['markBlockFormat'](_0x110935,{'commandName':'imageTypeInline','commandParams':[_0x4bbd86]},[],'convertInlineImageToBlock'),_0x590ab7['start']['isBefore'](_0x5089d3['start'])&&_0x416de2['markInsertion'](_0x3a82c8['createRange'](_0x590ab7['start'],_0x5089d3['start']),'convertInlineImageToBlock'),_0x5089d3['end']['isBefore'](_0x590ab7['end'])&&_0x416de2['markInsertion'](_0x3a82c8['createRange'](_0x5089d3['end'],_0x590ab7['end']),'convertInlineImageToBlock');});}),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x416de2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e88d6])=>{const _0x577b56=_0x416de2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x30214e=_0x3e88d6['start'],_0x266229=_0x3e88d6['end'];const _0xe7d786=_0x480420['model']['schema']['getNearestSelectionRange'](_0x30214e,'backward'),_0x50b10d=_0x480420['model']['schema']['getNearestSelectionRange'](_0x266229,'forward');_0xe7d786['isCollapsed']&&(_0x30214e=_0xe7d786['start']),_0x50b10d['isCollapsed']&&(_0x266229=_0x50b10d['end']),_0x577b56([_0x480420['model']['createRange'](_0x30214e,_0x266229)]);}),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x190fc7),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x190fc7)),_0x480420['plugins']['has']('ImageCaptionEditing')&&(_0x416de2['enableCommand']('toggleImageCaption',(_0x577a74,_0x438102)=>{const _0x2aeb33=_0x480420['plugins']['get']('ImageCaptionUtils');let _0x342bfd=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x1c1495=_0x2aeb33['getCaptionFromImageModelElement'](_0x342bfd);_0x480420['model']['change'](()=>{if(_0x1c1495)return void _0x416de2['markDeletion'](_0x480420['model']['createRangeOn'](_0x1c1495));const _0x4df8da=_0x5290f5['isBlockImage'](_0x342bfd);_0x577a74(_0x438102),_0x342bfd=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x1c1495=_0x2aeb33['getCaptionFromImageModelElement'](_0x342bfd),_0x416de2['markInsertion'](_0x480420['model']['createRangeOn'](_0x1c1495),_0x4df8da?null:'imageCaption');});}),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x190fc7));const _0x233a96=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x521666(_0x2438b3,_0x51a9c8){const _0x23d9c1=_0x233a96['findIndex'](({type:_0x5d53d7,subType:_0x2c923e})=>_0x2438b3['type']==_0x5d53d7&&_0x2438b3['subType']==_0x2c923e),_0x394a1a=_0x233a96['findIndex'](({type:_0x424389,subType:_0x225fe8})=>_0x51a9c8['type']==_0x424389&&_0x51a9c8['subType']==_0x225fe8);if(_0x23d9c1<0x0||_0x394a1a<0x0)return!0x1;const _0x162b54=_0x2438b3['getFirstRange'](),_0x75c497=_0x51a9c8['getFirstRange']();if((0x0==_0x23d9c1||0x1==_0x23d9c1)&&0x2==_0x394a1a&&_0x162b54['isIntersecting'](_0x75c497))return!0x0;if(0x2==_0x23d9c1&&0x3==_0x394a1a){const _0x53b0ea=_0x416de2['_findSuggestions'](_0x162b54,'insertion')['filter'](({suggestion:_0x405649,meta:_0x4b30da})=>_0x4b30da['isOwn']&&'convertInlineImageToBlock'==_0x405649['subType']);if(_0x53b0ea['length']>0x1&&_0x75c497['end']['isEqual'](_0x162b54['start']))return!0x0;if(0x1==_0x53b0ea['length']&&(_0x162b54['start']['isEqual'](_0x75c497['end'])||_0x162b54['end']['isEqual'](_0x75c497['start'])))return!0x0;}if(0x3==_0x23d9c1&&0x3==_0x394a1a&&_0x162b54['start']['isBefore'](_0x75c497['start'])){const _0xb894c3=_0x162b54['end']['nodeAfter'],_0x3b0100=_0x75c497['start']['nodeBefore'];return _0x5290f5['isBlockImage'](_0xb894c3)&&_0xb894c3===_0x3b0100;}return!0x1;}function _0x190fc7(_0x4181a7,_0x3d57db){return _0x521666(_0x4181a7,_0x3d57db)?[_0x4181a7,_0x3d57db]:_0x521666(_0x3d57db,_0x4181a7)?[_0x3d57db,_0x4181a7]:null;}_0x480420['plugins']['has']('ImageResize')&&(_0x416de2['enableDefaultAttributesIntegration']('resizeImage'),_0x416de2['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x5c047b,'FORMAT_IMAGE_SIZE'))),_0x480420['plugins']['has']('ImageTextAlternativeEditing')&&_0x416de2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x480420['plugins']['has']('PictureEditing')&&_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x4bef1e=>{if('attribute'!=_0x4bef1e['type'])return;const {data:_0x421359}=_0x4bef1e;return _0x421359&&'sources'==_0x421359['key']?{'type':'format','content':''}:void 0x0;}),_0x480420['plugins']['has']('ImageSizeAttributes')&&_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0xca2d36=>{if('attribute'!=_0xca2d36['type'])return;const {data:_0x295368}=_0xca2d36;return!_0x295368||'width'!=_0x295368['key']&&'height'!=_0x295368['key']?void 0x0:{'type':'format','content':''};}),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x224928=>{if(!!_0x233a96['find'](({type:_0x4e53b0,subType:_0x18d39a})=>_0x224928['type']==_0x4e53b0&&_0x224928['subType']==_0x18d39a))return _0x224928['previous']?{}:void 0x0;}),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x5c0233=>{if('insertion'==_0x5c0233['type']||'deletion'==_0x5c0233['type']){const _0x514be8=_0x5c0233['getContainedElement']();if(_0x514be8&&_0x514be8['is']('element','caption'))return{'type':'insertion'==_0x5c0233['type']?'addObject':'removeObject','element':_0x514be8,'quantity':0x1};}}),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x57b1e9=>'formatBlock'==_0x57b1e9['type']&&'convertInlineImageToBlock'==_0x57b1e9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57b1e9['type']&&'convertBlockImageToInline'==_0x57b1e9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x3171d9=>{if('attribute'!=_0x3171d9['type'])return;const {data:_0x5d88b5}=_0x3171d9;if(!_0x5d88b5||'alt'!=_0x5d88b5['key'])return;const _0x5bf46e=_0x5d88b5['newValue'];return _0x5bf46e?{'type':'format','content':At(_0x5c047b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5bf46e+'\x22')}:{'type':'format','content':At(_0x5c047b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c5b70=this['editor'],_0xabcf9f=_0x2c5b70['locale'];_0x2c5b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113b91=>{if('formatBlock'!=_0x113b91['type']&&'formatInline'!=_0x113b91['type'])return;const {data:_0x5becc2}=_0x113b91;if(_0x5becc2){if('imageTextAlternative'==_0x5becc2['commandName']){const _0x224b48=_0x5becc2['commandParams'][0x0]['newValue'];return _0x224b48?{'type':'format','content':At(_0xabcf9f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x224b48+'\x22')}:{'type':'format','content':At(_0xabcf9f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5becc2['commandName']){const _0x7a6d61=_0x5becc2['commandParams'][0x0]['width'];return _0x7a6d61?{'type':'format','content':At(_0xabcf9f,'*Set\x20image\x20width:*\x20%0',_0x7a6d61)}:{'type':'format','content':At(_0xabcf9f,'*Reset\x20image\x20width*')};}}});}}class se extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x383915=this['editor']['locale'],_0x436e04=this['editor']['plugins']['get']('TrackChangesEditing');_0x436e04['enableDefaultAttributesIntegration']('replaceImageSource'),_0x436e04['descriptionFactory']['registerDescriptionCallback'](_0x58c710=>{if('attribute'!=_0x58c710['type'])return;const {data:_0x4db92b}=_0x58c710;return _0x4db92b&&'src'==_0x4db92b['key']?_0x4db92b['newValue']&&_0x4db92b['oldValue']?{'type':'format','content':At(_0x383915,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d0486=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d0486['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d0486['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d0486['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d0486['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2ba04=this['editor'],_0x3e6bd7=_0xc2ba04['locale'];_0xc2ba04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x309ede=>{if('formatBlock'!=_0x309ede['type']&&'formatInline'!=_0x309ede['type'])return;const {data:_0x2610f5}=_0x309ede;if(!_0x2610f5||'replaceImageSource'!=_0x2610f5['commandName'])return;return{'type':'format','content':At(_0x3e6bd7,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x486e9c{['afterInit'](){const _0x14f940=this['editor'];if(!_0x14f940['plugins']['has']('ImageStyleEditing'))return;const _0x4bfdcf=_0x14f940['plugins']['get']('TrackChangesEditing'),_0x9f2f7=_0x14f940['plugins']['get']('ImageUtils'),_0x10cbe3={};_0x4bfdcf['enableCommand']('imageStyle',(_0x4ee746,_0x5267fd)=>{const _0x1ecda3=_0x14f940['plugins']['get']('Users')['me'],_0x225a3a=_0x14f940['commands']['get']('imageStyle');let _0x401a90=_0x9f2f7['getClosestSelectedImageElement'](_0x14f940['model']['document']['selection']),_0x59672c=_0x14f940['model']['createRangeOn'](_0x401a90),_0x5154b4=_0x225a3a['value'];if(_0x5154b4==_0x5267fd['value'])return;const _0x143914={'commandName':'imageStyle','commandParams':[_0x5267fd],'formatGroupId':_0xec3fc0()};_0x14f940['model']['change'](()=>{if(_0x4bfdcf['getSuggestions']()['filter'](_0x2a9700=>_0x2a9700['isInContent']&&_0x1ecda3==_0x2a9700['author']&&('formatBlock'==_0x2a9700['type']||'formatInline'==_0x2a9700['type'])&&('imageStylePreApply'==_0x2a9700['subType']||'imageStylePostApply'==_0x2a9700['subType'])&&_0x2a9700['getFirstRange']()['isEqual'](_0x59672c))['forEach'](_0x2a0008=>_0x4bfdcf['discardSuggestion'](_0x2a0008['head'])),_0x401a90=_0x9f2f7['getClosestSelectedImageElement'](_0x14f940['model']['document']['selection']),_0x59672c=_0x14f940['model']['createRangeOn'](_0x401a90),_0x225a3a['refresh'](),_0x14f940['commands']['get']('imageTypeInline')['refresh'](),_0x14f940['commands']['get']('imageTypeBlock')['refresh'](),_0x5154b4=_0x225a3a['value'],_0x5154b4!=_0x5267fd['value'])return _0x9f2f7['isInlineImage'](_0x401a90)&&_0x225a3a['shouldConvertImageType'](_0x5267fd['value'],_0x401a90)?(_0x4ee746({..._0x5267fd,'setImageSizes':!0x1}),_0x401a90=_0x9f2f7['getClosestSelectedImageElement'](_0x14f940['model']['document']['selection']),void _0x4bfdcf['markBlockFormat'](_0x401a90,{..._0x143914,'commandReversedParams':[{'value':_0x5154b4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9f2f7['isBlockImage'](_0x401a90)?_0x4bfdcf['markBlockFormat'](_0x401a90,_0x143914,[],'imageStylePostApply'):_0x4bfdcf['markInlineFormat'](_0x59672c,_0x143914,'imageStylePostApply'));});});for(const _0x1ca35c of _0x14f940['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10cbe3[_0x1ca35c['name']]=_0x1ca35c['title']['toLowerCase']();_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x38685c])=>{_0x9f2f7['setImageNaturalSizeAttributes'](_0x38685c['getContainedElement']());}),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25176c,_0x4b1e6b)=>{_0x4bfdcf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25176c,{'commandName':_0x4b1e6b['commandName'],'commandParams':_0x4b1e6b['commandReversedParams']});}),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x446e54,_0x4dc880){if(_0x3c6def(_0x446e54,_0x4dc880))return[_0x446e54,_0x4dc880];if(_0x3c6def(_0x4dc880,_0x446e54))return[_0x4dc880,_0x446e54];return null;});const _0x4f841e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c6def(_0x176423,_0x597d6a){const _0x3e66c4=_0x4f841e['findIndex'](({type:_0x45611d,subType:_0x34abf2})=>_0x176423['type']==_0x45611d&&_0x176423['subType']==_0x34abf2),_0x4d5bb6=_0x4f841e['findIndex'](({type:_0x3b0579,subType:_0x19b80d})=>_0x597d6a['type']==_0x3b0579&&_0x597d6a['subType']==_0x19b80d);if(_0x3e66c4<0x0||_0x4d5bb6<0x0)return!0x1;const _0x34ebab=_0x176423['getFirstRange'](),_0x56e85b=_0x597d6a['getFirstRange']();if((0x0==_0x3e66c4||0x1==_0x3e66c4)&&0x2==_0x4d5bb6&&_0x34ebab['isIntersecting'](_0x56e85b))return!0x0;if(0x2==_0x3e66c4&&0x3==_0x4d5bb6){const _0x104171=_0x4bfdcf['_findSuggestions'](_0x34ebab,'insertion')['filter'](({suggestion:_0x3603ef,meta:_0x4762a1})=>_0x4762a1['isOwn']&&'convertInlineImageToBlock'==_0x3603ef['subType']);if(_0x104171['length']>0x1&&_0x56e85b['end']['isEqual'](_0x34ebab['start']))return!0x0;if(0x1==_0x104171['length']&&(_0x34ebab['start']['isEqual'](_0x56e85b['end'])||_0x34ebab['end']['isEqual'](_0x56e85b['start'])))return!0x0;}if(0x3==_0x3e66c4&&0x3==_0x4d5bb6&&_0x34ebab['start']['isBefore'](_0x56e85b['start'])){const _0x21d7ef=_0x34ebab['end']['nodeAfter'],_0x166589=_0x56e85b['start']['nodeBefore'];return _0x9f2f7['isBlockImage'](_0x21d7ef)&&_0x21d7ef===_0x166589;}return!0x1;}_0x14f940['model']['document']['registerPostFixer'](()=>{let _0x5bdb0d=!0x1;const _0x2b8ec9=Array['from'](_0x14f940['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16535d,data:_0x3027a1}of _0x2b8ec9){const {group:_0x4a38ae,type:_0x117ca3,subType:_0x21911a,id:_0xeec00e}=_0x36ab20(_0x16535d);if('suggestion'==_0x4a38ae&&_0x4bfdcf['hasSuggestion'](_0xeec00e)){if('formatBlock'==_0x117ca3&&('imageStylePreApply'==_0x21911a||'imageStylePostApply'==_0x21911a)){const _0x30e61d=_0x4bfdcf['getSuggestion'](_0xeec00e);if(_0x3027a1['newRange']){const _0x5b2a69=_0x30e61d['getFirstRange']()['getContainedElement']();if(_0x9f2f7['isBlockImage'](_0x5b2a69))continue;_0x4bfdcf['discardSuggestion'](_0x30e61d),_0x5bdb0d=!0x0;}}if('insertion'==_0x117ca3&&'imageCaption'==_0x21911a&&!_0x3027a1['newRange']){const _0x5d74d0=_0x4bfdcf['getSuggestion'](_0xeec00e);_0x5d74d0['next']&&_0x5d74d0['next']['isInContent']&&(_0x4bfdcf['discardSuggestion'](_0x5d74d0['next']),_0x5bdb0d=!0x0);}}}return _0x5bdb0d;}),this['_registerLegacyDescription'](_0x10cbe3);}['_registerLegacyDescription'](_0x3fe698){const _0x44ed2c=this['editor'],_0x42bbdb=_0x44ed2c['locale'];_0x44ed2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24dee6=>{if('formatBlock'!=_0x24dee6['type']&&'formatInline'!=_0x24dee6['type'])return;const {data:_0x3a9097}=_0x24dee6;if(!_0x3a9097||'imageStyle'!=_0x3a9097['commandName'])return;const _0x3e30b9=_0x3a9097['commandParams'][0x0]['value'];return _0xb0a172('side'===_0x3e30b9?At(_0x42bbdb,'FORMAT_SIDE_IMAGE'):_0x3fe698[_0x3e30b9]||_0x3e30b9);function _0xb0a172(_0x2702f1){return{'type':'format','content':At(_0x42bbdb,'*Format:*\x20%0',_0x2702f1)};}});}}class oe extends _0x486e9c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24499f){super(_0x24499f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x51d054=this['editor'],_0x41a557=_0x51d054['commands']['get']('importWord'),_0x75797d=_0x51d054['commands']['get']('trackChanges');_0x41a557&&(_0x41a557['on']('execute',(_0x4d2af7,[,_0x2b7b38])=>{this['_trackChangesValueDuringImport']=_0x75797d['value'],_0x2b7b38['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41a557,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41a557,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x75797d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x51d054['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3cc358,_0x2f7638){const {suggestions:_0x4d6d2d}=_0x2f7638,_0x82a8a5=this['editor']['commands']['get']('trackChanges'),_0x1763b0=_0x82a8a5['value'];this['_trackChangesValueDuringImport']!==_0x1763b0&&(_0x82a8a5['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d6d2d&&_0x4d6d2d['forEach'](({id:_0x118b19,type:_0x5724ef,author:_0x9af308,created_at:_0x11ab6f})=>{const _0x4e4c2d={'id':_0x118b19,'type':_0x5724ef,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x9af308,'createdAt':_0x11ab6f?new Date(_0x11ab6f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e4c2d);});}}class ae extends _0x486e9c{['afterInit'](){const _0x36467d=this['editor'],_0x3c209d=_0x36467d['plugins']['get']('TrackChangesEditing');if(_0x36467d['plugins']['has']('IndentEditing')&&(_0x3c209d['enableCommand']('indent'),_0x3c209d['enableCommand']('outdent')),_0x36467d['plugins']['has']('IndentBlock')){for(const _0x13b036 of['indentBlock','outdentBlock'])_0x3c209d['enableDefaultAttributesIntegration'](_0x13b036);if(_0x36467d['plugins']['has']('ListEditing')){for(const _0x2729c7 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3c209d['enableDefaultAttributesIntegration'](_0x2729c7);}}const _0x215fb5=_0x36467d['locale'];_0x3c209d['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x215fb5,'FORMAT_INDENT')),_0x3c209d['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x215fb5,'FORMAT_INDENT')),_0x3c209d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x215fb5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x868426=this['editor'],_0x286e11=_0x868426['locale'],_0x5bcdc1=_0x868426['plugins']['get']('TrackChangesEditing');_0x5bcdc1['descriptionFactory']['registerDescriptionCallback'](_0x26d27d=>{if('formatBlock'!=_0x26d27d['type'])return;const {data:_0x520c13}=_0x26d27d;if(!_0x520c13)return;if('indentBlock'!=_0x520c13['commandName']&&'outdentBlock'!=_0x520c13['commandName'])return;const _0x5e6652=_0x26d27d['getItems']()[0x0],_0x2b15ed=_0x5bcdc1['descriptionFactory']['getItemLabel'](_0x5e6652);return'indentBlock'==_0x520c13['commandName']?{'type':'format','content':At(_0x286e11,'*Indent:*\x20%0',_0x2b15ed)}:'outdentBlock'==_0x520c13['commandName']?{'type':'format','content':At(_0x286e11,'*Outdent:*\x20%0',_0x2b15ed)}:void 0x0;});}}class ce extends _0x486e9c{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x486e9c{['afterInit'](){const _0x303441=this['editor'];if(!_0x303441['plugins']['has']('LinkEditing'))return;const _0x2a3271=_0x303441['plugins']['get']('TrackChangesEditing'),_0x2567b5=_0x303441['commands']['get']('link');_0x2a3271['enableDefaultAttributesIntegration']('link'),_0x2a3271['enableDefaultAttributesIntegration']('unlink');for(const _0x1f6a49 of _0x2567b5['manualDecorators'])_0x2a3271['descriptionFactory']['registerAttributeLabel'](_0x1f6a49['id'],'link\x20('+_0x1f6a49['label']['toLowerCase']()+')');_0x2a3271['descriptionFactory']['registerDescriptionCallback'](_0x4b1b2c=>{if('attribute'!=_0x4b1b2c['type'])return;const {data:_0x36a44d}=_0x4b1b2c;if(!_0x36a44d||'linkHref'!=_0x36a44d['key'])return;const _0x606a2=_0x36a44d['newValue'],_0x58749a=_0x303441['locale'];return{'type':'format','content':null==_0x606a2?At(_0x58749a,'*Remove\x20link*'):At(_0x58749a,'*Set\x20link:*\x20%0','\x22'+_0x606a2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x113760=this['editor'],_0x58d9b9=_0x113760['locale'];_0x113760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ba0ad=>{if('formatInline'!=_0x1ba0ad['type'])return;const {data:_0x239cf4}=_0x1ba0ad;if(_0x239cf4){if('link'==_0x239cf4['commandName']){const _0x32cf18=_0x239cf4['commandParams'][0x0];return{'type':'format','content':At(_0x58d9b9,'*Set\x20link:*\x20%0','\x22'+_0x32cf18+'\x22')};}return'unlink'==_0x239cf4['commandName']?{'type':'format','content':At(_0x58d9b9,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x486e9c{['afterInit'](){const _0x5ecfe0=this['editor'],_0x21e065=_0x5ecfe0['locale'];if(!_0x5ecfe0['plugins']['has']('LegacyListEditing'))return;const _0x35bd31=_0x5ecfe0['plugins']['get']('TrackChangesEditing'),_0x591eee=_0x5ecfe0['plugins']['has']('LegacyTodoListEditing');function _0x252257(_0x2f2a7f){return()=>{const _0xbf2a4b=_0x5ecfe0['model']['document']['selection'],_0x786105=_0x5ecfe0['commands']['get'](_0x2f2a7f);if(_0x786105['value'])return void _0x5ecfe0['execute']('paragraph',{});const _0x35753f=_0x2f2a7f['slice'](0x0,-0x4),_0x98e34e=function(_0x322c81,_0x17de1b,_0x412790){let _0x1b5423=Array['from'](_0x322c81)['filter'](_0x530942=>function(_0x5cb911,_0x42a2b2){return _0x42a2b2['checkChild'](_0x5cb911['parent'],'listItem')&&!_0x42a2b2['isObject'](_0x5cb911);}(_0x530942,_0x412790));_0x1b5423=_0x1b5423['filter'](_0x1e718b=>!_0x1e718b['is']('element','listItem')||_0x1e718b['getAttribute']('listType')!=_0x17de1b);const _0x4f095a=new Set();for(const _0x21edb2 of _0x1b5423)_0x21edb2['is']('element','listItem')?_0x4f095a['add'](he(_0x21edb2)):_0x4f095a['add'](_0x21edb2);return Array['from'](_0x4f095a);}(_0xbf2a4b['getSelectedBlocks'](),_0x35753f,_0x5ecfe0['model']['schema']);_0x5ecfe0['model']['change'](()=>{for(const _0x3d37c8 of _0x98e34e)_0x35bd31['markBlockFormat'](_0x3d37c8,{'commandName':_0x2f2a7f,'commandParams':[{'forceValue':!_0x786105['value']}],'formatGroupId':'blockName'},de(_0x3d37c8));});};}function _0x51d9f8(_0x257c05){return()=>{const _0x399ee3=function(_0x30775c){let _0x462723=Array['from'](_0x30775c);const _0x282259=_0x462723['findIndex'](_0x4a4222=>'listItem'!=_0x4a4222['name']);return _0x282259>-0x1&&(_0x462723=_0x462723['slice'](0x0,_0x282259)),_0x462723;}(_0x5ecfe0['model']['document']['selection']['getSelectedBlocks']()),_0x4726a3=_0x5ecfe0['model']['createRange'](_0x5ecfe0['model']['createPositionAt'](_0x399ee3[0x0],'before'),_0x5ecfe0['model']['createPositionAt'](_0x399ee3[_0x399ee3['length']-0x1],'end'));_0x5ecfe0['model']['change'](()=>{_0x35bd31['markBlockFormat'](_0x4726a3,{'commandName':_0x257c05,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16ecf4){const _0x70e2df=new Set();for(const _0x56d341 of _0x16ecf4){let _0x453072=_0x56d341['nextSibling'];for(;_0x453072&&_0x453072['getAttribute']('listIndent')>_0x56d341['getAttribute']('listIndent');)_0x70e2df['add'](_0x453072),_0x453072=_0x453072['nextSibling'];}return Array['from'](_0x70e2df);}(_0x399ee3));});};}_0x35bd31['enableCommand']('numberedList',_0x252257('numberedList')),_0x35bd31['enableCommand']('bulletedList',_0x252257('bulletedList')),_0x591eee&&_0x35bd31['enableCommand']('todoList',_0x252257('todoList')),_0x35bd31['enableCommand']('indentList',_0x51d9f8('indentList')),_0x35bd31['enableCommand']('outdentList',_0x51d9f8('outdentList')),_0x591eee&&_0x35bd31['enableCommand']('checkTodoList',()=>{const _0x47adee=_0x5ecfe0['commands']['get']('checkTodoList'),_0x2eab6f=Array['from'](_0x47adee['_selectedElements']);_0x2eab6f['filter'](_0x231867=>_0x231867['getAttribute']('todoListChecked')!=_0x47adee['value']),_0x5ecfe0['model']['change'](()=>{for(const _0x209a51 of _0x2eab6f)_0x35bd31['markBlockFormat'](_0x209a51,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47adee['value']}]});});}),_0x35bd31['descriptionFactory']['registerElementLabel']('listItem',_0x5c170d=>At(_0x21e065,'ELEMENT_LIST_ITEM',_0x5c170d)),_0x35bd31['descriptionFactory']['registerDescriptionCallback'](_0x1054b5=>{if('formatBlock'!=_0x1054b5['type']&&'formatInline'!=_0x1054b5['type'])return;const {data:_0x530f19}=_0x1054b5;if(_0x530f19){if('numberedList'==_0x530f19['commandName']||'bulletedList'==_0x530f19['commandName']||'todoList'==_0x530f19['commandName'])switch(_0x530f19['commandName']['replace']('List','')){case'bulleted':return _0x5d44e2(At(_0x21e065,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d44e2(At(_0x21e065,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d44e2(At(_0x21e065,'ELEMENT_TODO_LIST'));}if('indentList'==_0x530f19['commandName'])return{'type':'format','content':At(_0x21e065,'*Indent:*\x20%0',At(_0x21e065,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x530f19['commandName'])return{'type':'format','content':At(_0x21e065,'*Outdent:*\x20%0',At(_0x21e065,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x530f19['commandName'])return _0x530f19['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x21e065,'*Check\x20item*')}:{'type':'format','content':At(_0x21e065,'*Uncheck\x20item*')};}function _0x5d44e2(_0x1a09af){return{'type':'format','content':At(_0x21e065,'*Change\x20to:*\x20%0',_0x1a09af)};}});}}function he(_0x418964){const _0x1edfe8=_0x418964['getAttribute']('listIndent');if(0x0==_0x1edfe8)return _0x418964;let _0x5ae268=_0x418964;for(;_0x418964['previousSibling']&&_0x418964['previousSibling']['is']('element','listItem');){const _0x1527a4=_0x418964['previousSibling']['getAttribute']('listIndent');if(_0x1527a4==_0x1edfe8)_0x5ae268=_0x418964['previousSibling'];else{if(_0x1527a4<_0x1edfe8)break;}_0x418964=_0x418964['previousSibling'];}return _0x5ae268;}function de(_0x36bbfa){const _0x27b8af=[];if(_0x36bbfa['is']('element','listItem')&&_0x36bbfa['getAttribute']('listIndent')>0x0){let _0x150e93=_0x36bbfa['nextSibling'];for(;_0x150e93&&'listItem'==_0x150e93['name']&&_0x150e93['getAttribute']('listIndent')==_0x36bbfa['getAttribute']('listIndent');)_0x27b8af['push'](_0x150e93),_0x150e93=_0x150e93['nextSibling'];}return _0x27b8af;}class fe extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1edabb=this['editor']['config']['get']('list.properties'),_0x26679f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1edabb['styles']&&_0x26679f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1edabb['reversed']&&_0x26679f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1edabb['startIndex']&&_0x26679f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26679f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x207e4f,_0x479aa4={}){const _0xa322fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd599=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xa322fb['markMultiRangeBlockFormat'](_0x4cd599,{'commandName':'listStyle','commandParams':[{'type':_0x479aa4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a7d89,_0x213ac7={}){const _0x1ccf5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bd756=this['_getSuggestionBlocks'](_0x121319=>_0x121319['is']('element','listItem')&&'numbered'===_0x121319['getAttribute']('listType'));if(_0x2bd756['length']<0x1)return;const _0x36e4c5=_0x2bd756['map'](_0x1b3256=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b3256,'before'),this['editor']['model']['createPositionAt'](_0x1b3256,0x0)));this['editor']['model']['change'](()=>{_0x1ccf5a['markMultiRangeBlockFormat'](_0x36e4c5,{'commandName':'listReversed','commandParams':[{'reversed':_0x213ac7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x38cc42,_0x8eca9c={}){const _0xe594e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc953fd=this['_getSuggestionBlocks'](_0x2acf13=>_0x2acf13['is']('element','listItem')&&'numbered'===_0x2acf13['getAttribute']('listType'));if(_0xc953fd['length']<0x1)return;const _0x11b17c=_0xc953fd['map'](_0x2c7f5c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c7f5c,'before'),this['editor']['model']['createPositionAt'](_0x2c7f5c,0x0)));this['editor']['model']['change'](()=>{_0xe594e4['markMultiRangeBlockFormat'](_0x11b17c,{'commandName':'listStart','commandParams':[{'startIndex':_0x8eca9c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb0a07){if('formatBlock'!=_0xb0a07['type']&&'formatInline'!=_0xb0a07['type'])return;const _0x4879dd=this['editor']['locale'],{data:_0x43d5a3}=_0xb0a07;if(!_0x43d5a3)return;let _0x99ea55,_0x42ab51;switch(_0x43d5a3['commandName']){case'listStyle':_0x99ea55='*Change\x20to:*\x20%0',_0x42ab51={'type':'format','content':At(_0x4879dd,_0x99ea55,At(_0x4879dd,this['_getTranslationKeyForListStyle'](_0x43d5a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x99ea55=_0x43d5a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x42ab51={'type':'format','content':At(_0x4879dd,_0x99ea55)};break;case'listStart':_0x99ea55='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x42ab51={'type':'format','content':At(_0x4879dd,_0x99ea55,_0x43d5a3['commandParams'][0x0]['startIndex'])};}return _0x42ab51;}['_getSuggestionBlocksForListStyle'](){const _0x135987=this['editor']['plugins']['get']('LegacyListUtils');let _0x41df1a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x41df1a[0x0]?.['is']('element','listItem')&&_0x41df1a['unshift'](..._0x135987['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x41df1a[_0x41df1a['length']-0x1]?.['is']('element','listItem')&&_0x41df1a['push'](..._0x135987['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x41df1a=[...new Set(_0x41df1a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x41df1a=_0x41df1a['filter'](_0x52ca1a=>_0x52ca1a['is']('element','listItem'))),_0x41df1a;}['_getSuggestionBlocks'](_0x4a5857){const _0x19086c=this['editor']['plugins']['get']('LegacyListUtils');let _0x33e757=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4a5857)['map'](_0x3a19e5=>{const _0x275ed7=this['editor']['model']['createPositionAt'](_0x3a19e5,0x0);return[..._0x19086c['getSiblingNodes'](_0x275ed7,'backward'),..._0x19086c['getSiblingNodes'](_0x275ed7,'forward')];})['flat']();return _0x33e757=[...new Set(_0x33e757)],_0x33e757;}['_getTranslationKeyForListStyle'](_0x152c1e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x152c1e)||'default')['toUpperCase']()+'_LIST_'+_0x152c1e['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x486e9c{['afterInit'](){const _0x126ec5=this['editor'];if(!_0x126ec5['plugins']['has']('MediaEmbedEditing'))return;const _0x2e97fe=_0x126ec5['plugins']['get']('TrackChangesEditing'),_0x2d3660=_0x126ec5['locale'];_0x2e97fe['enableCommand']('mediaEmbed'),_0x2e97fe['descriptionFactory']['registerElementLabel']('media',_0x2b6301=>At(_0x2d3660,'ELEMENT_MEDIA',_0x2b6301));}}class me extends _0x486e9c{['afterInit'](){const _0x4ad12f=this['editor'];_0x4ad12f['plugins']['has']('MentionEditing')&&_0x4ad12f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x486e9c{['afterInit'](){const _0x34577f=this['editor'];if(!_0x34577f['plugins']['has']('MergeFieldsEditing'))return;const _0x32ff86=_0x34577f['plugins']['get']('TrackChangesEditing'),_0x164b57=_0x34577f['locale'];_0x32ff86['enableCommand']('insertMergeField'),_0x32ff86['enableCommand']('insertMergeFieldBlock'),_0x32ff86['enableCommand']('insertMergeFieldImage'),_0x32ff86['descriptionFactory']['registerElementLabel']('mergeField',_0x592048=>At(_0x164b57,'ELEMENT_MERGE_FIELD',_0x592048)),_0x32ff86['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20ed1b=>At(_0x164b57,'ELEMENT_MERGE_FIELD',_0x20ed1b)),_0x32ff86['descriptionFactory']['registerDescriptionCallback'](_0x2eafd0=>{if('insertion'!=_0x2eafd0['type']&&'deletion'!=_0x2eafd0['type'])return;const _0x184c10=_0x2eafd0['getContainedElement']();if(null==_0x184c10)return;const _0x47e83d=_0x34577f['plugins']['get']('MergeFieldsEditing');let _0xcc464c;switch(_0x47e83d['getMergeFieldType'](_0x184c10)){case null:return;case'image':{const _0x500bcf=_0x47e83d['unwrapAffixes'](_0x184c10['getAttribute']('src'));_0xcc464c=_0x47e83d['getLabel'](_0x500bcf)||_0x500bcf;break;}default:{const _0x39ea13=_0x184c10['getAttribute']('id');_0xcc464c=_0x47e83d['getLabel'](_0x39ea13)||_0x39ea13;break;}}return'insertion'==_0x2eafd0['type']?{'type':'insertion','content':At(_0x164b57,'*Insert:*\x20%0','\x22'+_0xcc464c+'\x22\x20'+At(_0x164b57,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x164b57,'*Remove:*\x20%0','\x22'+_0xcc464c+'\x22\x20'+At(_0x164b57,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x486e9c{['afterInit'](){const _0xd911b1=this['editor'],_0x57e3f0=_0xd911b1['plugins']['get']('TrackChangesEditing');_0xd911b1['plugins']['has']('MultiLevelList')&&(_0x57e3f0['enableDefaultAttributesIntegration']('multiLevelList'),_0x57e3f0['descriptionFactory']['registerDescriptionCallback'](_0x24b7f2=>this['handleDescriptions'](_0x24b7f2)));}['handleDescriptions'](_0x3382a8){const _0x5b2634=this['editor']['locale'],{data:_0x556002}=_0x3382a8,_0xb08c60={'type':'format','content':''};if(_0x556002&&'listMarkerStyle'==_0x556002['key']){if(!_0x556002['oldValue'])return{'type':'format','content':At(_0x5b2634,'*Set\x20format:*\x20%0',At(_0x5b2634,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x556002['newValue']+')'};if(!_0x556002['newValue']){let _0x320476=_0x3382a8['head'];for(;_0x320476;){if(_0x320476['data']&&'listType'==_0x320476['data']['key']&&_0x320476['data']['newValue'])return _0xb08c60;_0x320476=_0x320476['next'];}return{'type':'format','content':At(_0x5b2634,'*Remove\x20format:*\x20%0',At(_0x5b2634,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x556002['oldValue']+')'};}}}}class _e extends _0x486e9c{['afterInit'](){const _0x535610=this['editor'];if(!_0x535610['plugins']['has']('PageBreakEditing'))return;_0x535610['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x70959c=_0x535610['plugins']['get']('TrackChangesEditing'),_0x5ecbde=_0x535610['locale'];_0x70959c['descriptionFactory']['registerElementLabel']('pageBreak',_0x53ed8f=>At(_0x5ecbde,'ELEMENT_PAGE_BREAK',_0x53ed8f));}}class pe extends _0x486e9c{['afterInit'](){const _0x36e602=this['editor'];if(!_0x36e602['plugins']['has']('Paragraph'))return;const _0x344af5=_0x36e602['locale'],_0x56e118=_0x36e602['plugins']['get']('TrackChangesEditing');_0x56e118['descriptionFactory']['registerElementLabel']('paragraph',_0x2852a5=>At(_0x344af5,'ELEMENT_PARAGRAPH',_0x2852a5)),_0x56e118['enableDefaultAttributesIntegration']('paragraph'),_0x56e118['enableCommand']('insertParagraph');const _0x56cbff=_0x56e118['descriptionFactory'];_0x56cbff['registerDescriptionCallback'](_0x41fec5=>{if('insertion'!==_0x41fec5['type'])return;const {start:_0xa40121,end:_0xb797df}=_0x41fec5['getFirstRange']();if(!_0xa40121['isTouching'](_0xb797df)||!_0xa40121['nodeAfter'])return;const _0x4c2c3d=_0x36e602['model']['schema'],_0x57cda0=_0xa40121['nodeAfter'];return _0x4c2c3d['isBlock'](_0x57cda0)&&!_0x4c2c3d['isLimit'](_0x57cda0)&&_0x4c2c3d['checkChild'](_0x57cda0,'$text')?{'type':'insertion','content':At(_0x344af5,'*Insert:*\x20%0',_0x56cbff['getItemLabel'](_0x57cda0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e14af=this['editor'],_0xc44b8f=_0x5e14af['locale'];_0x5e14af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ba4f=>{if('formatBlock'!=_0x55ba4f['type'])return;const {data:_0x283f2f}=_0x55ba4f;return _0x283f2f&&'paragraph'==_0x283f2f['commandName']?{'type':'format','content':At(_0xc44b8f,'*Change\x20to:*\x20%0',At(_0xc44b8f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x486e9c{['afterInit'](){const _0x68a80a=this['editor'];_0x68a80a['commands']['get']('replaceSource')&&_0x68a80a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x486e9c{['afterInit'](){const _0x349550=this['editor'];if(!_0x349550['plugins']['has']('RemoveFormatEditing'))return;_0x349550['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6d91=this['editor'];_0x1c6d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e6b0=>{if('formatBlock'!=_0x44e6b0['type']&&'formatInline'!=_0x44e6b0['type'])return;const {data:_0x4bb673}=_0x44e6b0;return _0x4bb673&&'removeFormat'==_0x4bb673['commandName']?{'type':'format','content':At(_0x1c6d91['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x486e9c{['afterInit'](){const _0x3dafea=this['editor'];if(!_0x3dafea['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a7d6d=_0x3dafea['plugins']['get']('TrackChangesEditing');_0x1a7d6d['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a7d6d['enableCommand']('goToNextRestrictedEditingException');const _0x12b6cb=_0x3dafea['plugins']['get']('RestrictedEditingModeEditing');_0x12b6cb['enableCommand']('trackChanges'),_0x12b6cb['enableCommand']('acceptSuggestion'),_0x12b6cb['enableCommand']('discardSuggestion'),_0x12b6cb['enableCommand']('acceptAllSuggestions'),_0x12b6cb['enableCommand']('discardAllSuggestions'),_0x12b6cb['enableCommand']('acceptSelectedSuggestions'),_0x12b6cb['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x486e9c{['afterInit'](){const _0x15f345=this['editor'];if(!_0x15f345['plugins']['has']('ShiftEnter'))return;const _0x24dc15=_0x15f345['plugins']['get']('TrackChangesEditing');_0x24dc15['enableCommand']('shiftEnter'),_0x24dc15['descriptionFactory']['registerElementLabel']('softBreak',_0x6f8f8e=>At(_0x15f345['locale'],'ELEMENT_LINE_BREAK',_0x6f8f8e));}}function ke(_0x17ab5b,_0x8b3eeb,_0x529493){const _0x5f535b=[];for(const _0x33230c of _0x8b3eeb['getItems']())_0x33230c['hasAttribute'](_0x17ab5b)&&_0x5f535b['push'](_0x529493['createRangeOn'](_0x33230c));return _0x5f535b;}class Ce extends _0x486e9c{['afterInit'](){const _0x34f041=this['editor'],_0x21806c=_0x34f041['plugins']['get']('TrackChangesEditing');_0x34f041['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x21806c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x11eb11=this['editor'],_0x3031f3=_0x11eb11['model'],_0x351347=_0x11eb11['locale'],_0x3da391=_0x11eb11['plugins']['get']('TrackChangesEditing'),_0x3e153b='restrictedEditingException',_0x5d7910=_0x11eb11['commands']['get'](_0x3e153b);_0x3da391['enableCommand'](_0x3e153b,(_0x3c6649,_0x347d0d={})=>{const _0x403473=_0x3031f3['document']['selection'];if(_0x403473['isCollapsed'])return void _0x3c6649(_0x347d0d);const _0x3a7bfb=void 0x0!==_0x347d0d['forceValue']?_0x347d0d['forceValue']:!_0x5d7910['value'];_0x3031f3['change'](()=>{const _0x580dac=Array['from'](_0x403473['getRanges']());for(const _0x1c0933 of _0x580dac){const _0x2f3afe=_0x3a7bfb?[_0x1c0933]:ke(_0x3e153b,_0x1c0933,_0x3031f3);for(const _0x24b4bb of _0x2f3afe)_0x3da391['markInlineFormat'](_0x24b4bb,{'commandName':_0x3e153b,'commandParams':[{'forceValue':_0x3a7bfb}]});}});}),_0x3da391['descriptionFactory']['registerDescriptionCallback'](_0x1dd8ae=>{if('formatBlock'!=_0x1dd8ae['type']&&'formatInline'!=_0x1dd8ae['type'])return;const {data:_0x277d9a}=_0x1dd8ae;return _0x277d9a&&_0x277d9a['commandName']==_0x3e153b?_0x277d9a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x351347,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x351347,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x131844=this['editor'],_0x34f15e=_0x131844['locale'],_0x2cf11a=_0x131844['plugins']['get']('TrackChangesEditing'),_0xcab979='restrictedEditingExceptionBlock',_0x560673=this['editor']['commands']['get'](_0xcab979);_0x2cf11a['enableCommand'](_0xcab979,(_0x5c57e5,_0x9ec113={})=>{const _0x57bd25=this['editor']['model']['document']['selection'],_0x149c05=_0x9ec113&&void 0x0!==_0x9ec113['forceValue']?_0x9ec113['forceValue']:!_0x560673['value'];let _0x42b415=[];if(_0x149c05){const _0x2555d9=Array['from'](_0x57bd25['getSelectedBlocks']())['filter'](_0x16d973=>function(_0xdb3dfc){return!!_0xdb3dfc['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x16d973)||function(_0x5227d0,_0xb72c71){const _0x243dba=_0xb72c71['createContext'](_0x5227d0['parent']);if(!_0xb72c71['checkChild'](_0x243dba,'restrictedEditingException'))return!0x1;if(!_0xb72c71['checkChild'](_0x243dba['push']('restrictedEditingException'),_0x5227d0))return!0x1;return!0x0;}(_0x16d973,this['editor']['model']['schema']));_0x42b415=Tt(_0x2555d9,_0x131844['model']);}else{const _0x27961d=Array['from'](_0x57bd25['getSelectedBlocks']())['map'](_0x4a6196=>function(_0x989eba){let _0x4d23b3=_0x989eba;for(;_0x4d23b3['parent'];){if('restrictedEditingException'==_0x4d23b3['parent']['name'])return _0x4d23b3;_0x4d23b3=_0x4d23b3['parent'];}return null;}(_0x4a6196))['filter'](_0x10892c=>!!_0x10892c);_0x42b415=Tt(_0x27961d,_0x131844['model']);}_0x131844['model']['change'](()=>{for(const _0x527b02 of _0x42b415)_0x2cf11a['markBlockFormat'](_0x527b02,{'commandName':_0xcab979,'commandParams':[{'forceValue':_0x149c05}]});});}),_0x2cf11a['descriptionFactory']['registerDescriptionCallback'](_0x261377=>{const {data:_0x4dd1c6}=_0x261377;if(_0x4dd1c6&&_0x4dd1c6['commandName']==_0xcab979)return _0x4dd1c6['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x34f15e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x34f15e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x486e9c{['afterInit'](){const _0x53c98e=this['editor'];if(!_0x53c98e['plugins']['has']('Style')||!_0x53c98e['plugins']['has']('DataSchema'))return;const _0x4cac4a=_0x53c98e['plugins']['get']('TrackChangesEditing'),_0x5532dc=_0x53c98e['locale'],_0x31452f=_0x53c98e['config']['get']('style')||{},_0x2a88c4=_0x53c98e['plugins']['get']('GeneralHtmlSupport'),_0x48c4a0=_0x53c98e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x53c98e['plugins']['get']('DataSchema'),_0x31452f['definitions']);_0x4cac4a['enableDefaultAttributesIntegration']('style');const _0xc9227c=new Set();for(const _0x3a7450 of _0x48c4a0['block']){const _0x4ee697=_0x2a88c4['getGhsAttributeNameForElement'](_0x3a7450['element']);_0xc9227c['add'](_0x4ee697);}const _0x1fc17a=new Set();for(const _0x4b8c50 of _0x48c4a0['inline']){const _0x14dfe1=_0x2a88c4['getGhsAttributeNameForElement'](_0x4b8c50['element']);_0x1fc17a['add'](_0x14dfe1);for(const _0x2e81d7 of _0x4b8c50['ghsAttributes'])_0x1fc17a['add'](_0x2e81d7);}for(const _0x1bb828 of _0xc9227c)_0x4cac4a['descriptionFactory']['registerAttributeLabel'](_0x1bb828,At(_0x5532dc,'FORMAT_STYLE'));for(const _0x4f86d3 of _0x1fc17a)_0x4cac4a['descriptionFactory']['registerAttributeLabel'](_0x4f86d3,At(_0x5532dc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x151099=this['editor'],_0x181f8c=_0x151099['locale'];_0x151099['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9d40=>{if('formatBlock'!=_0x1d9d40['type']&&'formatInline'!=_0x1d9d40['type'])return;const {data:_0x282df1}=_0x1d9d40;return _0x282df1&&'style'===_0x282df1['commandName']?_0x282df1['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x181f8c,'*Set\x20format:*\x20%0',_0x282df1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x181f8c,'*Remove\x20format:*\x20%0',_0x282df1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x486e9c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9b384e){super(_0x9b384e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1d0e7a=this['editor'],_0x435861=_0x1d0e7a['model']['document']['selection'];if(!_0x1d0e7a['plugins']['has']('TableEditing'))return;const _0x16916e=_0x1d0e7a['locale'],_0x1d0176=_0x1d0e7a['plugins']['get']('TrackChangesEditing'),_0xfc14d=_0x1d0e7a['plugins']['get']('TableUtils');_0x1d0176['descriptionFactory']['registerElementLabel']('table',_0x59c617=>At(_0x16916e,'ELEMENT_TABLE',_0x59c617)),this['_setupColumnsRowsFixing'](),_0x1d0176['enableCommand']('insertTable'),_0x1d0176['enableCommand']('selectTableRow'),_0x1d0176['enableCommand']('selectTableColumn');for(const _0x2f7e3f of['insertTableRowAbove','insertTableRowBelow']){const _0x331fcd=_0x1d0e7a['commands']['get'](_0x2f7e3f);_0x1d0176['enableCommand'](_0x2f7e3f,_0x5a8e83=>{_0x1d0e7a['model']['change'](_0x17dcca=>{_0x5a8e83();const _0x430488='above'===_0x331fcd['order'],_0xd1f9b4=_0xfc14d['getSelectionAffectedTableCells'](_0x435861),_0x236e30=_0xfc14d['getRowIndexes'](_0xd1f9b4),_0x3d7c6c=_0x430488?_0x236e30['first']-0x1:_0x236e30['last']+0x1,_0x270014=_0xd1f9b4[0x0]['findAncestor']('table'),_0x3437bd=_0xfc14d['createTableWalker'](_0x270014,{'startRow':_0x3d7c6c,'endRow':_0x3d7c6c}),_0x384a3a=Array['from'](_0x3437bd)['map'](_0x1b6423=>_0x17dcca['createRangeOn'](_0x1b6423['cell']));_0x1d0176['markMultiRangeInsertion'](_0x384a3a,'tableRow');});});}for(const _0x18d3fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x3f84c5=_0x1d0e7a['commands']['get'](_0x18d3fd);_0x1d0176['enableCommand'](_0x18d3fd,_0x3598dd=>{_0x1d0e7a['model']['change'](_0x25b474=>{_0x3598dd();const _0x480dfb='left'===_0x3f84c5['order'],_0x49c0f9=_0xfc14d['getSelectionAffectedTableCells'](_0x435861),_0x1c0e65=_0xfc14d['getColumnIndexes'](_0x49c0f9),_0x4ab3df=_0x480dfb?_0x1c0e65['first']-0x1:_0x1c0e65['last']+0x1,_0x49a28d=_0x49c0f9[0x0]['findAncestor']('table'),_0x420f84=_0xfc14d['createTableWalker'](_0x49a28d,{'startRow':0x0,'column':_0x4ab3df,'includeAllSlots':!0x1}),_0x515652=Array['from'](_0x420f84)['map'](_0x4a8ade=>_0x25b474['createRangeOn'](_0x4a8ade['cell']));_0x1d0176['markMultiRangeInsertion'](_0x515652,'tableColumn');});});}for(const _0xb43c46 of['removeTableRow','removeTableColumn']){const _0x3f6400=_0xb43c46['substr'](0xb),_0x3f6fc4=_0x3f6400['toLowerCase'](),_0x402cbc=_0x3f6fc4['substr'](0x0,0x3)+'span',_0x18408d='table'+_0x3f6400,_0x45b8cc='min'+_0x3f6400,_0x459724='max'+_0x3f6400;_0x1d0176['enableCommand'](_0xb43c46,()=>{_0x1d0e7a['model']['change'](_0x2c793f=>{const _0x23dacf=_0xfc14d['getSelectionAffectedTableCells'](_0x435861),_0x522b9c=_0x23dacf[0x0]['findAncestor']('table');let _0x258016;if('removeTableRow'==_0xb43c46){const _0x1530fa=_0xfc14d['getRowIndexes'](_0x23dacf);_0x258016={'startRow':_0x1530fa['first'],'endRow':_0x1530fa['last'],'includeAllSlots':!0x0};}else{const _0x14f0b5=_0xfc14d['getColumnIndexes'](_0x23dacf);_0x258016={'startColumn':_0x14f0b5['first'],'endColumn':_0x14f0b5['last'],'includeAllSlots':!0x0};}const _0x44ba5c=_0xfc14d['createTableWalker'](_0x522b9c,_0x258016),_0x21a4a1=Array['from'](_0x44ba5c)['map'](({cell:_0x5218d8})=>_0x5218d8),_0x315278=Re(_0x21a4a1['filter'](_0x333e83=>_0x333e83['hasAttribute'](_0x402cbc))),_0x18417a=Re(_0x21a4a1['filter'](_0x29004e=>!_0x29004e['hasAttribute'](_0x402cbc)))['map'](_0x193373=>_0x2c793f['createRangeOn'](_0x193373)),_0x2703e5=_0x1d0176['markMultiRangeDeletion'](_0x18417a,_0x18408d);if(_0x2703e5&&('tableRow'==_0x2703e5['subType']||'tableColumn'==_0x2703e5['subType'])){const _0x15c158=this['_getSuggestionCoords'](_0x2703e5);for(const _0xc056b1 of _0x315278){const _0x414061=_0x2c793f['createRangeOn'](_0xc056b1),_0x1c81d9=_0xfc14d['getCellLocation'](_0xc056b1),_0xfed978=_0xc056b1['getAttribute'](_0x402cbc)-0x1,_0x4b9382=_0x15c158[_0x45b8cc],_0x4e2f62=_0x15c158[_0x459724];_0x4b9382<=_0x1c81d9[_0x3f6fc4]&&_0x1c81d9[_0x3f6fc4]+_0xfed978<=_0x4e2f62&&_0x2703e5['addRange'](_0x414061);}}});});}function _0x25eca1(_0x258c72){const _0x309b5a=Array['from'](_0x435861['getRanges']())['map'](_0xfcc710=>_0x704ba['fromRange'](_0xfcc710));_0x1d0e7a['model']['change'](_0x1658df=>{const _0x10b261=_0x1658df['batch'];_0x258c72=_0x258c72['filter'](_0x67f7b9=>'$graveyard'!=_0x67f7b9['root']['rootName']),_0x1658df['setSelection'](_0x258c72),_0x1d0e7a['commands']['get']('removeTableRow')['refresh'](),_0x1d0e7a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1d0e7a['model']['enqueueChange'](()=>{_0x1d0e7a['model']['enqueueChange'](_0x10b261,_0x3d1f54=>{const _0x2f94ce=_0x309b5a['filter'](_0x273474=>'$graveyard'!=_0x273474['root']['rootName']);_0x2f94ce['length']>0x0&&_0x3d1f54['setSelection'](_0x2f94ce);for(const _0x192fd8 of _0x309b5a)_0x192fd8['detach']();});});});}function _0xfa31(_0x589acb){_0x1d0e7a['model']['change'](_0x19e808=>{const _0x2e3e3c=Array['from'](_0x435861['getRanges']())['map'](_0x549fc9=>_0x704ba['fromRange'](_0x549fc9)),_0x3d9a1f=[];for(const _0x2b9ff2 of _0x589acb)for(const _0x2128d4 of _0x2b9ff2['getItems']({'shallow':!0x0}))_0x3d9a1f['push'](_0x2128d4);for(const _0xf42b6d of _0x3d9a1f)'$graveyard'!=_0xf42b6d['root']['rootName']&&(_0x19e808['setSelection'](_0x19e808['createPositionAt'](_0xf42b6d,0x0)),_0x1d0e7a['commands']['get']('removeTableColumn')['refresh'](),_0x1d0e7a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5072c2=_0x2e3e3c['filter'](_0xe3f053=>'$graveyard'!=_0xe3f053['root']['rootName']);_0x5072c2['length']>0x0&&_0x19e808['setSelection'](_0x5072c2);for(const _0x33f663 of _0x2e3e3c)_0x33f663['detach']();});}function _0x5e59bb(_0x275952,_0x3ac40c){return _0x3ac40c['every'](_0x2cbc85=>_0x275952['some'](_0x138e94=>_0x138e94['end']['isEqual'](_0x2cbc85['start'])||_0x2cbc85['end']['isEqual'](_0x138e94['start'])));}function _0x1ae9e7(_0x4f8802,_0x3e73a1){return!_0x4f8802['some'](_0x56f7e5=>_0x3e73a1['some'](_0x17aafe=>_0x56f7e5['isIntersecting'](_0x17aafe)))&&_0x4f8802['some'](_0x477a02=>_0x3e73a1['some'](_0x47bd83=>_0x477a02['end']['isTouching'](_0x47bd83['start'])));}_0x1d0176['descriptionFactory']['registerDescriptionCallback'](_0x3473da=>{if('insertion'!=_0x3473da['type']&&'deletion'!=_0x3473da['type'])return;const _0x20cf8c=_0x3473da['getContainedElement']();if(null!=_0x20cf8c&&_0x20cf8c['is']('element','table')){if('insertion'==_0x3473da['type']){const _0x41d352=_0x3473da['getItems']()['filter'](_0x585a28=>_0x585a28['is']('$textProxy'))['map'](_0x2533c9=>_0x2533c9['data']);if(_0x41d352['length'])return{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41d352['join']('\x20')+'\x22'))};}if('deletion'==_0x3473da['type']){const _0x32a62e=_0x3473da['getItems']()['filter'](_0x431377=>_0x431377['is']('$textProxy'))['map'](_0x532220=>_0x532220['data']);if(_0x32a62e['length'])return{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32a62e['join']('\x20')+'\x22'))};}}}),_0x1d0176['descriptionFactory']['registerDescriptionCallback'](_0x3f3e84=>{if('tableRow'==_0x3f3e84['subType']){const _0x4c5db=_0x3f3e84['getItems']()['filter'](_0x31ee03=>_0x31ee03['is']('$textProxy'))['map'](_0x6cbe97=>_0x6cbe97['data']),_0x4641ba=this['_getSuggestionCoords'](_0x3f3e84),_0x528369=_0x4641ba['maxRow']-_0x4641ba['minRow']+0x1;if('insertion'==_0x3f3e84['type'])return _0x4c5db['length']?{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x528369,'\x22'+_0x4c5db['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW',_0x528369))};if('deletion'==_0x3f3e84['type'])return _0x4c5db['length']?{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x528369,'\x22'+_0x4c5db['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW',_0x528369))};}if('tableColumn'==_0x3f3e84['subType']){const _0x262c78=_0x3f3e84['getItems']()['filter'](_0x1aac09=>_0x1aac09['is']('$textProxy'))['map'](_0x18b53f=>_0x18b53f['data']),_0x280a1f=this['_getSuggestionCoords'](_0x3f3e84),_0x244bcf=_0x280a1f['maxColumn']-_0x280a1f['minColumn']+0x1;if('insertion'==_0x3f3e84['type'])return _0x262c78['length']?{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x244bcf,'\x22'+_0x262c78['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN',_0x244bcf))};if('deletion'==_0x3f3e84['type'])return _0x262c78['length']?{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x244bcf,'\x22'+_0x262c78['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN',_0x244bcf))};}}),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x25eca1),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x25eca1),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xfa31),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xfa31),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5e59bb),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5e59bb),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1ae9e7),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1ae9e7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x46cbbd=this['editor'],_0x5462f7=_0x46cbbd['model']['document']['selection'];return(_0x2384d6,_0x730034)=>{_0x46cbbd['model']['change'](_0x1c1c27=>{const {commandName:_0x5074e0,commandParams:_0x33be6e}=_0x730034;let _0x51fdc9=_0x2384d6[0x0]['end']['nodeBefore'];_0x33be6e&&_0x33be6e[0x0]&&!0x1===_0x33be6e[0x0]['forceValue']&&(_0x51fdc9=_0x2384d6[0x0]['start']['nodeAfter']);const _0x51ced3=_0x1c1c27['createRangeIn'](_0x51fdc9);if('$graveyard'==_0x51ced3['root']['rootName'])return;const _0x5d25a1=Array['from'](_0x5462f7['getRanges']())['map'](_0x352382=>_0x704ba['fromRange'](_0x352382));_0x1c1c27['setSelection'](_0x51ced3),_0x46cbbd['commands']['get'](_0x5074e0)['refresh'](),_0x33be6e['push']({'forceDefaultExecution':!0x0}),_0x46cbbd['execute'](_0x5074e0,..._0x33be6e);const _0x2f2e77=_0x5d25a1['filter'](_0x582450=>'$graveyard'!=_0x582450['root']['rootName']);_0x2f2e77['length']>0x0&&_0x1c1c27['setSelection'](_0x2f2e77);for(const _0x2da19a of _0x5d25a1)_0x2da19a['detach']();});};}['_getCoordsForCells'](_0x2a5682){const _0x16b9c1=this['editor']['plugins']['get']('TableUtils');let _0x23eded=Number['MAX_SAFE_INTEGER'],_0x26d562=Number['MIN_SAFE_INTEGER'],_0x258db4=Number['MAX_SAFE_INTEGER'],_0x1b4c34=Number['MIN_SAFE_INTEGER'];for(const _0x2fa51f of _0x2a5682){if('$graveyard'==_0x2fa51f['root']['rootName'])continue;const {row:_0x4bd846,column:_0x39ada9}=_0x16b9c1['getCellLocation'](_0x2fa51f),_0x4d0573=_0x2fa51f['hasAttribute']('rowspan')?_0x2fa51f['getAttribute']('rowspan')-0x1:0x0,_0x3759ae=_0x2fa51f['hasAttribute']('colspan')?_0x2fa51f['getAttribute']('colspan')-0x1:0x0;_0x23eded=_0x4bd846<_0x23eded?_0x4bd846:_0x23eded,_0x26d562=_0x4bd846+_0x4d0573>_0x26d562?_0x4bd846+_0x4d0573:_0x26d562,_0x258db4=_0x39ada9<_0x258db4?_0x39ada9:_0x258db4,_0x1b4c34=_0x39ada9+_0x3759ae>_0x1b4c34?_0x39ada9+_0x3759ae:_0x1b4c34;}return{'minRow':_0x23eded,'maxRow':_0x26d562,'minColumn':_0x258db4,'maxColumn':_0x1b4c34};}['_setupColumnsRowsFixing'](){const _0x9badc6=this['editor'],_0x25e66b=_0x9badc6['plugins']['get']('TrackChangesEditing'),_0x29c38d=_0x9badc6['plugins']['get']('TableUtils');_0x9badc6['model']['document']['on']('change:data',()=>{const _0x5620bb=Array['from'](_0x9badc6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a2262,data:_0x9d0b53}of _0x5620bb){const {group:_0x6b1090,id:_0x21a55a,subType:_0x3c1a4d}=_0x36ab20(_0x5a2262);if('suggestion'!=_0x6b1090)continue;if(null!=_0x9d0b53['oldRange'])continue;const _0x55607f=_0x25e66b['getSuggestion'](_0x21a55a);this['_tablePostFixingSubtypes']['includes'](_0x3c1a4d)&&this['_tableSuggestions']['add'](_0x55607f);}},{'priority':'low'});const _0x37302a=(_0x4624bc,_0x560f46)=>{let _0x1fac2e=!0x1;const _0x9e55ce=_0x560f46['createRangeOn'](_0x4624bc),_0x1dd100=_0x4624bc['findAncestor']('table'),_0x31f238=_0x29c38d['getCellLocation'](_0x4624bc);for(const _0x58a233 of this['_tableSuggestions']){const _0x5f0fc3=_0x58a233['subType'],_0x341fbe=_0x5f0fc3['startsWith']('tablePaste'),_0x4e9e7f=_0x5f0fc3['substr'](_0x341fbe?0xa:0x5),_0x2dd4a9=_0x4e9e7f['toLowerCase'](),_0xd298af=_0x2dd4a9['substr'](0x0,0x3)+'span',_0x1df19f='min'+_0x4e9e7f,_0x2e0543='max'+_0x4e9e7f;if(!_0x58a233['isInContent'])continue;if(_0x1dd100!=_0x58a233['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x58a233['isIntersectingWithRange'](_0x9e55ce))continue;const _0x398b98=_0x4624bc['hasAttribute'](_0xd298af)?_0x4624bc['getAttribute'](_0xd298af)-0x1:0x0,_0x1a1e0c=this['_getSuggestionCoords'](_0x58a233),_0x30416d=_0x1a1e0c[_0x1df19f],_0x1677f9=_0x1a1e0c[_0x2e0543];_0x30416d<=_0x31f238[_0x2dd4a9]&&_0x31f238[_0x2dd4a9]+_0x398b98<=_0x1677f9&&(_0x58a233['addRange'](_0x9e55ce),_0x1fac2e=!0x0);}return _0x1fac2e;};_0x9badc6['model']['document']['registerPostFixer'](_0x638c78=>{let _0x1a6887=!0x1;for(const _0x59c301 of _0x9badc6['model']['document']['differ']['getChanges']())if('insert'==_0x59c301['type']){if('tableRow'==_0x59c301['name']){for(const _0x1e2d7d of _0x59c301['position']['nodeAfter']['getChildren']())_0x1a6887=_0x1a6887||_0x37302a(_0x1e2d7d,_0x638c78);}else'tableCell'==_0x59c301['name']&&(_0x1a6887=_0x1a6887||_0x37302a(_0x59c301['position']['nodeAfter'],_0x638c78));}return _0x1a6887;});}['_getSuggestionCoords'](_0x321e6b){return this['_getCoordsForCells'](_0x321e6b['getRanges']()['map'](_0x2cbcf7=>_0x2cbcf7['start']['nodeAfter']));}}function Re(_0x598d65){return Array['from'](new Set(_0x598d65)['values']());}class Se extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x55baad=this['editor'],_0x34a2e9=_0x55baad['model']['document']['selection'],_0x5c9454=_0x55baad['locale'];if(!_0x55baad['plugins']['has']('TableEditing'))return;const _0x363c93=_0x55baad['plugins']['get']('TrackChangesEditing'),_0x2f5017=_0x55baad['plugins']['get']('TableUtils'),_0xaae2a4=_0x55baad['plugins']['get'](Ne);_0xaae2a4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x363c93['enableCommand']('mergeTableCells',()=>{const _0x222272=_0x2f5017['getSelectionAffectedTableCells'](_0x55baad['model']['document']['selection']);_0x55baad['model']['change'](()=>{_0x363c93['markMultiRangeBlockFormat'](_0x222272,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55baad['commands']['get']('mergeTableCells')['on']('execute',(_0x2e2cce,_0x36e9c7)=>{_0x55baad['commands']['get']('trackChanges')['value']&&(_0x36e9c7['length']>0x0&&_0x36e9c7[_0x36e9c7['length']-0x1]&&_0x36e9c7[_0x36e9c7['length']-0x1]['forceDefaultExecution']||_0x363c93['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2e2cce['stop']());},{'priority':'highest'});for(const _0x346877 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23c503=_0x55baad['commands']['get'](_0x346877);_0x363c93['enableCommand'](_0x346877,()=>{const _0xc85633=_0x55baad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x49527e=>_0x49527e['is']('element','tableCell')),_0x233635=_0x23c503['value'];_0x55baad['model']['change'](()=>{_0x363c93['markMultiRangeBlockFormat']([_0xc85633,_0x233635],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x57e39b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x340907=_0x55baad['commands']['get'](_0x57e39b);_0x363c93['enableCommand'](_0x57e39b,()=>{const _0x2a3d7b=_0x2f5017['getSelectionAffectedTableCells'](_0x55baad['model']['document']['selection'])[0x0],_0x53e212=_0x2a3d7b['findAncestor']('table'),{column:_0x4b8b56,row:_0x46fa1a}=_0x2f5017['getCellLocation'](_0x2a3d7b);let _0x4ac283=[];if('horizontally'==_0x340907['direction']){const _0x26b3f6=_0x2f5017['createTableWalker'](_0x53e212,{'startRow':_0x46fa1a,'endRow':_0x46fa1a,'includeAllSlots':!0x0});_0x4ac283=Array['from'](_0x26b3f6)['map'](_0x1174a3=>_0x1174a3['cell']);}else{const _0x4b3981=_0x2f5017['createTableWalker'](_0x53e212,{'column':_0x4b8b56,'includeAllSlots':!0x0});_0x4ac283=Array['from'](_0x4b3981)['map'](_0x261ef3=>_0x261ef3['cell']);}_0x55baad['model']['change'](_0x113587=>{_0x363c93['markBlockFormat'](_0x113587['createRangeOn'](_0x2a3d7b),{'commandName':_0x57e39b,'commandParams':[]},_0x4ac283,_0x57e39b);});});}_0x363c93['descriptionFactory']['registerDescriptionCallback'](_0x4da11c=>{if('formatBlock'!=_0x4da11c['type']&&'formatInline'!=_0x4da11c['type'])return;const {data:_0x2aa61e}=_0x4da11c;return _0x2aa61e&&'mergeTableCells'==_0x2aa61e['commandName']?{'type':'format','content':At(_0x5c9454,'*Merge\x20cells*')}:void 0x0;}),_0x363c93['descriptionFactory']['registerDescriptionCallback'](_0x3e436b=>{if('formatBlock'!=_0x3e436b['type']&&'formatInline'!=_0x3e436b['type'])return;const {data:_0x4532b5}=_0x3e436b;return _0x4532b5?'splitTableCellVertically'==_0x4532b5['commandName']?{'type':'format','content':At(_0x5c9454,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4532b5['commandName']?{'type':'format','content':At(_0x5c9454,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40c032=_0xaae2a4['_acceptFormatSuggestionCallbackFactory']();for(const _0x4555fb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x363c93['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4555fb,'accept',_0x40c032);for(const _0x14ac00 of['splitTableCellVertically','splitTableCellHorizontally'])_0x363c93['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14ac00,'accept',_0x40c032);_0x363c93['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3609e1=>{_0x55baad['model']['change'](_0x9083fe=>{const _0x2e586b=Array['from'](_0x34a2e9['getRanges']())['map'](_0x2dda7e=>_0x704ba['fromRange'](_0x2dda7e));_0x9083fe['setSelection'](_0x3609e1),_0x55baad['commands']['get']('mergeTableCells')['refresh'](),_0x55baad['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17d075=_0x2e586b['filter'](_0x46a5e7=>'$graveyard'!=_0x46a5e7['root']['rootName']);_0x17d075['length']>0x0&&_0x9083fe['setSelection'](_0x17d075);for(const _0x2471fc of _0x2e586b)_0x2471fc['detach']();});});for(const _0x23b108 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a6200=_0x55baad['commands']['get'](_0x23b108);_0x2a6200['on']('set:isEnabled',(_0x3d8216,_0x24018b,_0x4b22af)=>{if(_0x4b22af){const _0x478ede=_0x55baad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x215b81=>_0x215b81['is']('element','tableCell'));this['_areMergableCells'](_0x2a6200['value'],_0x478ede)||(_0x3d8216['return']=!0x1,_0x3d8216['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1aed0b=this['editor']['commands']['get']('mergeTableCells'),_0x360c09=this['editor']['plugins']['get']('TableUtils');if(!_0x1aed0b['isEnabled'])return!0x1;const _0x12d972=_0x360c09['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4a1fec of _0x12d972)for(const _0x57bb5e of _0x12d972)if(_0x4a1fec!=_0x57bb5e&&!this['_areMergableCells'](_0x4a1fec,_0x57bb5e))return!0x1;return!0x0;}['_areMergableCells'](_0x29bcc2,_0x394197){const _0x4647e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19d472=this['editor']['model']['createRangeOn'](_0x29bcc2),_0x1868ee=this['editor']['model']['createRangeOn'](_0x394197),_0x4e71a3=new Set(),_0x3258b9=new Set();for(const _0x595feb of _0x4647e0['getSuggestions']())if(('insertion'==_0x595feb['type']||'deletion'==_0x595feb['type']||'mergeTableCells'==_0x595feb['subType'])&&_0x595feb['isInContent']){for(const _0x2f240b of _0x595feb['getRanges']())_0x2f240b['containsRange'](_0x19d472,!0x0)&&_0x4e71a3['add'](_0x595feb['type']+':'+_0x595feb['author']['id']),_0x2f240b['containsRange'](_0x1868ee,!0x0)&&_0x3258b9['add'](_0x595feb['type']+':'+_0x595feb['author']['id']);}if(_0x4e71a3['size']!=_0x3258b9['size'])return!0x1;for(const _0x15661b of _0x4e71a3)if(!_0x3258b9['has'](_0x15661b))return!0x1;return!0x0;}}class Me extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x165861=this['editor'];if(!_0x165861['plugins']['has']('TableEditing'))return;const _0x35fd44=_0x165861['locale'],_0x3fb601=_0x165861['plugins']['get']('TrackChangesEditing');_0x3fb601['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3fb601['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3fb601['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x35fd44,'FORMAT_HEADER_ROW')),_0x3fb601['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x35fd44,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x487a2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41c71e=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x487a2d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x41c71e),_0x487a2d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x41c71e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4d0d9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfab12c=this['editor']['plugins']['get']('TableUtils');function _0x3503dc({showActiveMarker:_0x4df777=!0x0,setDataAttribute:_0x28dbf0=!0x0}={}){return(_0x332d2c,_0x1b17b7,_0x1ce8f1)=>{const {type:_0x3094b1,id:_0x2bec28}=_0x36ab20(_0x1b17b7['markerName']);if(!_0x4d0d9c['hasSuggestion'](_0x2bec28))return;const _0x397bb8=_0x4d0d9c['getSuggestion'](_0x2bec28),_0x15be45=_0x397bb8['data'];if('formatBlock'!=_0x397bb8['type']||!_0x15be45||'setTableColumnHeader'!=_0x15be45['commandName'])return;if(_0x1b17b7['item'])return void _0x332d2c['stop']();if(!_0x1ce8f1['consumable']['consume'](_0x1b17b7['markerRange'],_0x332d2c['name']))return;const _0x335bfb=_0x1b17b7['markerRange']['start']['nodeAfter'],_0x52351d=_0x1b17b7['markerRange']['end']['nodeBefore'],_0x41e43c=_0x335bfb['parent']['parent'],{column:_0x2a69e9}=_0xfab12c['getCellLocation'](_0x335bfb),{column:_0x485d97}=_0xfab12c['getCellLocation'](_0x52351d);for(let _0x7dd8d=_0x2a69e9;_0x7dd8d<=_0x485d97;_0x7dd8d++){const _0x4a4a3=_0xfab12c['createTableWalker'](_0x41e43c,{'column':_0x7dd8d,'includeAllSlots':!0x1});for(const _0x769b99 of _0x4a4a3){const _0x49f1ef=_0x769b99['cell'],_0x45e0c2=_0x1ce8f1['mapper']['toViewElement'](_0x49f1ef);_0x1ce8f1['writer']['addClass']('ck-suggestion-marker-'+_0x3094b1,_0x45e0c2),_0x28dbf0&&_0x1ce8f1['writer']['setAttribute']('data-suggestion',_0x2bec28,_0x45e0c2),_0x1ce8f1['mapper']['bindElementToMarker'](_0x45e0c2,_0x1b17b7['markerName']),_0x4df777&&(_0x4d0d9c['activeMarkers']['includes'](_0x1b17b7['markerName'])?_0x1ce8f1['writer']['addClass']('ck-suggestion-marker--active',_0x45e0c2):_0x1ce8f1['writer']['removeClass']('ck-suggestion-marker--active',_0x45e0c2));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3503dc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4edce5,_0x3313ba,_0x111561)=>{_0x111561['options']['showSuggestionHighlights']&&_0x3503dc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4edce5,_0x3313ba,_0x111561);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x224102,_0x5b1b19,_0x29b430)=>{const {type:_0x1a3f2a,id:_0x31ab8e}=_0x36ab20(_0x5b1b19['markerName']);if(!_0x4d0d9c['hasSuggestion'](_0x31ab8e))return;const _0x2f38dc=_0x4d0d9c['getSuggestion'](_0x31ab8e),_0x50859e=_0x2f38dc['data'];if('formatBlock'!=_0x2f38dc['type']||!_0x50859e||'setTableColumnHeader'!=_0x50859e['commandName'])return;const _0x31b197=_0x29b430['mapper']['markerNameToElements'](_0x5b1b19['markerName']);if(_0x31b197){for(const _0x351cae of _0x31b197)_0x29b430['writer']['removeClass']('ck-suggestion-marker-'+_0x1a3f2a,_0x351cae),_0x29b430['writer']['removeClass']('ck-suggestion-marker--active',_0x351cae),_0x29b430['writer']['removeAttribute']('data-suggestion',_0x351cae),_0x29b430['mapper']['unbindElementFromMarkerName'](_0x351cae,_0x5b1b19['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x396d5a=this['editor'],_0x1a2350=_0x396d5a['locale'];function _0x316576(_0x1c42b8){return{'type':'format','content':At(_0x1a2350,'*Format:*\x20%0',_0x1c42b8)};}_0x396d5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x380394=>{if('formatBlock'!=_0x380394['type'])return;const {data:_0x5ddb46}=_0x380394;if(_0x5ddb46){if('setTableRowHeader'==_0x5ddb46['commandName']){const _0x13c6cc=_0x5ddb46['commandParams'][0x0]['forceValue'];return _0x316576(At(_0x1a2350,_0x13c6cc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ddb46['commandName']){const _0x530fab=_0x5ddb46['commandParams'][0x0]['forceValue'];return _0x316576(At(_0x1a2350,_0x530fab?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x4ff93d=this['editor'];if(!_0x4ff93d['plugins']['has']('TableEditing')||!_0x4ff93d['config']['get']('table.enableFooters'))return;const _0x3203c2=_0x4ff93d['locale'],_0x5f3381=_0x4ff93d['plugins']['get']('TrackChangesEditing');_0x5f3381['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5f3381['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x3203c2,'FORMAT_FOOTER_ROW'));}}class we extends _0x486e9c{['afterInit'](){const _0xcb26a5=this['editor'],_0x11a331=_0xcb26a5['locale'],_0x589f96=_0xcb26a5['plugins']['get']('TrackChangesEditing');function _0x37d809(_0x2eed39){return{'type':'format','content':''+At(_0x11a331,'*Set\x20table\x20type:*\x20%0',_0x2eed39)};}_0xcb26a5['plugins']['has']('TableLayout')&&(_0x589f96['enableCommand']('insertTableLayout'),_0x589f96['enableDefaultAttributesIntegration']('tableType'),_0x589f96['descriptionFactory']['registerElementLabel'](_0x13bb9c=>_0x13bb9c['is']('element','table')&&'layout'===_0x13bb9c['getAttribute']('tableType'),_0x1ffbc6=>At(_0x11a331,'ELEMENT_LAYOUT_TABLE',_0x1ffbc6)),_0x589f96['descriptionFactory']['registerDescriptionCallback'](_0x17cc94=>{const {data:_0x261462}=_0x17cc94;if(_0x261462&&'tableType'==_0x261462['key'])switch(_0x261462['newValue']){case'layout':return _0x37d809(At(_0x11a331,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x37d809(At(_0x11a331,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x571a6a=>[_0x571a6a,null]));class De extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x39d425=this['editor'];if(!_0x39d425['plugins']['has']('TableClipboard'))return;const _0x1fd658=_0x39d425['plugins']['get']('TrackChangesEditing'),_0x41fcad=_0x39d425['plugins']['get']('TableUtils'),_0x5e276e=_0x39d425['plugins']['get'](Ne),_0x2213ef=_0x39d425['plugins']['get']('TableClipboard'),_0x4db919=_0x39d425['plugins']['get']('TableSelection'),_0x462e76=_0x39d425['plugins']['get'](ut);_0x5e276e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x39d425['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x39d425['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3176c6=null,_0x285925=!0x1;_0x462e76['on']('contentInsertion',(_0x52e7ea,_0x35a98f)=>{_0x285925='paste'===_0x35a98f['method'];}),_0x39d425['model']['on']('insertContent',(_0x5af9fb,_0x185dae)=>{if(!_0x285925&&null===_0x4db919['getSelectedTableCells']())return;const [_0x5f3db8,_0x37a174]=_0x185dae,_0x12224c=_0x185dae[_0x185dae['length']-0x1];_0x12224c&&_0x12224c['forceDefaultExecution']||_0x1fd658['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1478fe,_0x5472fc,_0x566279,_0x408dd0,_0x56c637){if(_0x5472fc&&!_0x5472fc['is']('documentSelection'))return!0x1;const _0x2b2e6e=_0x56c637['getTableIfOnlyTableInContent'](_0x1478fe,_0x566279);if(!_0x2b2e6e||!xe(_0x2b2e6e,void 0x0,_0x408dd0))return!0x1;const _0x139884=_0x408dd0['getSelectionAffectedTableCells'](_0x566279['document']['selection']);if(!_0x139884['length'])return!0x1;const _0x20d89e=_0x139884[0x0]['findAncestor']('table'),_0x2ae7ad=_0x408dd0['getRowIndexes'](_0x139884),_0x376f4f=_0x408dd0['getColumnIndexes'](_0x139884),_0x5b3806={'startRow':_0x2ae7ad['first'],'endRow':_0x2ae7ad['last'],'startColumn':_0x376f4f['first'],'endColumn':_0x376f4f['last']};return 0x1==_0x139884['length']&&(_0x5b3806['endRow']+=_0x408dd0['getRows'](_0x2b2e6e)-0x1,_0x5b3806['endColumn']+=_0x408dd0['getColumns'](_0x2b2e6e)-0x1),xe(_0x20d89e,_0x5b3806,_0x408dd0);}(_0x5f3db8,_0x37a174,_0x39d425['model'],_0x41fcad,_0x2213ef)&&(_0x5af9fb['stop'](),_0x3176c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x39d425['model']['change'](()=>{_0x39d425['model']['insertContent'](_0x185dae[0x0],_0x185dae[0x1],_0x185dae[0x2],{'forceDefaultExecution':!0x0});const _0x29583f=_0xec3fc0(),{rowInsertionRanges:_0x51a1f9,columnInsertionRanges:_0x17c3bd,insertionRanges:_0x3e8cf5,deletionRanges:_0x3b1172,cells:_0x35bd56}=_0x3176c6;_0x51a1f9['length']&&_0x1fd658['markMultiRangeInsertion'](_0x51a1f9,'tablePasteRow',{'tablePasteChainId':_0x29583f}),_0x17c3bd['length']&&_0x1fd658['markMultiRangeInsertion'](_0x17c3bd,'tablePasteColumn',{'tablePasteChainId':_0x29583f}),_0x3e8cf5['length']&&(_0x1fd658['markMultiRangeInsertion'](_0x3e8cf5,'tablePaste',{'tablePasteChainId':_0x29583f,'skipNestingCheck':!0x0}),_0x3e8cf5['forEach'](_0x5463dc=>_0x5463dc['detach']?.())),_0x3b1172['length']&&(_0x1fd658['markMultiRangeDeletion'](_0x3b1172,'tablePaste',{'tablePasteChainId':_0x29583f,'skipNestingCheck':!0x0}),_0x3b1172['forEach'](_0x44a559=>_0x44a559['detach']?.()));const _0x378f69=_0x1fd658['markMultiRangeBlockFormat'](_0x35bd56['map'](({element:_0xce3b03})=>_0xce3b03),{'formatGroupId':_0xec3fc0()},[],'tablePasteCell',{'tablePasteChainId':_0x29583f});if(_0x378f69){const _0x43ffd6=_0x378f69['getMarkers'](),_0x1e1fcb=[];for(const {element:_0x29a3be,attributes:_0x3706da}of _0x35bd56){if(!_0x3706da)continue;const _0x5e5d4c=_0x39d425['model']['createRangeOn'](_0x29a3be),_0x14e9e4=_0x43ffd6['find'](_0x8b8a1c=>_0x8b8a1c['getRange']()['isEqual'](_0x5e5d4c));_0x14e9e4&&_0x1e1fcb['push']([_0x14e9e4['name'],_0x3706da]);}_0x1e1fcb['length']&&_0x378f69['setAttribute']('markerAttributes',Object['fromEntries'](_0x1e1fcb));}_0x3176c6=null;}));},{'priority':_0x5dc5ee['high']+0xa}),_0x462e76['on']('contentInsertion',()=>{_0x285925=!0x1;},{'priority':'lowest'}),_0x39d425['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42a731,_0xd4c2ac)=>{const [_0x5ae715,_0x1f85e7,,_0x45dd87]=_0xd4c2ac;if(!_0x3176c6)return;_0x42a731['stop']();const _0x3f463e=_0x5ae715['cell'],_0x101ce9=_0x1f85e7,_0x429b01=ve(_0x3f463e),_0x4196c6=ve(_0x101ce9);_0x42a731['return']=_0x3f463e;let _0x39a998=null,_0x6a00c8=null;if(_0x4196c6||_0x429b01){if(_0x429b01&&!_0x4196c6){_0x45dd87['remove'](_0x3f463e['getChild'](0x0));for(const _0x4f15cd of Array['from'](_0x101ce9['getChildren']()))_0x45dd87['insert'](_0x4f15cd,_0x3f463e,'end');const _0x43563e=_0x3176c6['rowInsertionIndexes']['includes'](_0x5ae715['row']),_0x772396=_0x3176c6['columnInsertionIndexes']['includes'](_0x5ae715['column']);_0x43563e||_0x772396||(_0x39a998=_0x704ba['fromRange'](_0x45dd87['createRangeIn'](_0x3f463e)));}else _0x4196c6&&!_0x429b01&&(_0x6a00c8=_0x45dd87['createRangeIn'](_0x3f463e));}else{const _0x4ee9ea=_0x45dd87['createElement']('tableCellSuggestion'),_0x5728fe=_0x45dd87['createElement']('tableCellSuggestion');_0x45dd87['wrap'](_0x45dd87['createRangeIn'](_0x3f463e),_0x5728fe),_0x45dd87['insert'](_0x4ee9ea,_0x3f463e,0x0);for(const _0x118ac4 of Array['from'](_0x101ce9['getChildren']()))_0x45dd87['insert'](_0x118ac4,_0x4ee9ea,'end');_0x39a998=_0x704ba['fromRange'](_0x45dd87['createRangeOn'](_0x4ee9ea)),_0x6a00c8=_0x704ba['fromRange'](_0x45dd87['createRangeOn'](_0x5728fe));}const _0x51b63f=Array['from'](_0x101ce9['getAttributes']())['filter'](([_0x174042])=>Be['includes'](_0x174042));_0x3176c6['cells']['push']({'element':_0x3f463e,'attributes':_0x51b63f['length']?Object['fromEntries'](_0x51b63f):null}),_0x39a998&&_0x3176c6['insertionRanges']['push'](_0x39a998),_0x6a00c8&&_0x3176c6['deletionRanges']['push'](_0x6a00c8);},{'priority':'high'}),_0x41fcad['on']('insertColumns',(_0x2b6fe5,_0x1cad1a)=>{const [_0x566c7d,_0x32bc56={}]=_0x1cad1a;if(!_0x3176c6)return;const _0x5511cc=_0x32bc56['at']||0x0,_0xad7fb1=_0x32bc56['columns']||0x1;_0x3176c6['columnInsertionIndexes']=new Array(_0xad7fb1)['fill'](_0x5511cc)['map']((_0x298ec1,_0x2f9d22)=>_0x298ec1+_0x2f9d22);for(const {cell:_0x3c0a5d}of _0x41fcad['createTableWalker'](_0x566c7d,{'startColumn':_0x5511cc,'endColumn':_0x5511cc+_0xad7fb1-0x1}))_0x3176c6['columnInsertionRanges']['push'](_0x39d425['model']['createRangeOn'](_0x3c0a5d));},{'priority':'low'}),_0x41fcad['on']('insertRows',(_0x416275,_0x1abb37)=>{const [_0x4c5f89,_0x1887af={}]=_0x1abb37;if(!_0x3176c6)return;const _0x5c72bd=_0x1887af['at']||0x0,_0x1524fa=_0x1887af['rows']||0x1;_0x3176c6['rowInsertionIndexes']=new Array(_0x1524fa)['fill'](_0x5c72bd)['map']((_0x439014,_0x19b6a1)=>_0x439014+_0x19b6a1);for(const {cell:_0x231d34}of _0x41fcad['createTableWalker'](_0x4c5f89,{'startRow':_0x5c72bd,'endRow':_0x5c72bd+_0x1524fa-0x1}))_0x3176c6['rowInsertionRanges']['push'](_0x39d425['model']['createRangeOn'](_0x231d34));},{'priority':'low'}),_0x1fd658['descriptionFactory']['registerDescriptionCallback'](_0x3cc733=>{if(_0x3cc733['subType']&&_0x3cc733['subType']['startsWith']('tablePaste'))return _0x3cc733['previous']?{}:{'type':'insertion','content':At(_0x39d425['locale'],'*Replace\x20table\x20cells*')};});const _0x2f7fb0=()=>!0x1;for(const _0x2cbb5a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1fd658['_suggestionFactory']['registerCustomCallback']('insertion',_0x2cbb5a,'join',_0x2f7fb0),_0x1fd658['_suggestionFactory']['registerCustomCallback']('deletion',_0x2cbb5a,'join',_0x2f7fb0),_0x1fd658['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cbb5a,'join',_0x2f7fb0);_0x1fd658['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f7fb0),_0x1fd658['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53d813,_0x3818ad,_0x2a7430)=>{const _0x40bb31=_0x53d813['map'](_0x5e8040=>_0x5e8040['getContainedElement']())['filter'](_0x2e1fbe=>_0x2e1fbe),_0x4cdaac=new Map(_0x40bb31['map'](_0x3fa5ec=>[_0x3fa5ec,null]));if(_0x3176c6){for(const {element:_0x4f55d7,attributes:_0x19eb4d}of _0x3176c6['cells'])_0x19eb4d&&_0x4cdaac['set'](_0x4f55d7,_0x19eb4d);}else{if(_0x2a7430&&_0x2a7430['markerAttributes'])for(const [_0x26482c,_0xef6abc]of Object['entries'](_0x2a7430['markerAttributes'])){const _0x142b06=_0x39d425['model']['markers']['get'](_0x26482c),_0x51b4a4=_0x142b06?_0x142b06['getRange']()['getContainedElement']():null;_0x51b4a4&&_0x4cdaac['set'](_0x51b4a4,_0xef6abc);}}_0x39d425['model']['change'](_0x3f1edc=>{for(const [_0x13ba93,_0x2fbb20]of _0x4cdaac)_0x3f1edc['setAttributes']({...Fe,..._0x2fbb20},_0x13ba93);});});const _0x32007e=(_0x2789d2,_0x5dcdf8)=>{_0x1fd658['_suggestionFactory']['registerCustomCallback'](_0x2789d2,'tablePaste',_0x5dcdf8,(_0xe42e8,_0x1ae833,_0x3fb81d)=>{_0x39d425['model']['change'](_0x3a8bac=>{const _0x1e7b6b=[];for(const _0x8a8b7a of _0xe42e8){const _0x139ffb=_0x8a8b7a['start']['nodeAfter'];_0x139ffb['is']('element','tableCellSuggestion')&&_0x1e7b6b['push'](_0x139ffb);}_0x1fd658['_suggestionFactory']['getSuggestionCallback'](_0x2789d2,null,_0x5dcdf8)(_0xe42e8,_0x1ae833,_0x3fb81d);for(const _0x38fa2b of _0x1e7b6b)'$graveyard'!=_0x38fa2b['root']['rootName']&&_0x3a8bac['unwrap'](_0x38fa2b);});});};_0x32007e('insertion','accept'),_0x32007e('insertion','discard'),_0x32007e('deletion','accept'),_0x32007e('deletion','discard'),_0x1fd658['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f8e86=>{const _0x327ea2=_0x3f8e86['map'](_0x210666=>_0x210666['getContainedElement']()),_0x744981=_0x327ea2[0x0]['findAncestor']('table'),{minRow:_0x377c1b,maxRow:_0x2455e6}=_0x5e276e['_getCoordsForCells'](_0x327ea2);_0x41fcad['removeRows'](_0x744981,{'at':_0x377c1b,'rows':_0x2455e6-_0x377c1b+0x1});}),_0x1fd658['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x350a32=>{const _0xcec7d8=_0x350a32['map'](_0x31e3bb=>_0x31e3bb['getContainedElement']()),_0x1f9f77=_0xcec7d8[0x0]['findAncestor']('table'),{minColumn:_0x630b0c,maxColumn:_0x50e3aa}=_0x5e276e['_getCoordsForCells'](_0xcec7d8);_0x41fcad['removeColumns'](_0x1f9f77,{'at':_0x630b0c,'columns':_0x50e3aa-_0x630b0c+0x1});});const _0x46413c=(_0xeaf66e,_0x15b7fd)=>{if(!_0x15b7fd['subType']||!_0x15b7fd['subType']['startsWith']('tablePaste'))return;const _0x474f0c=_0x15b7fd['attributes']['tablePasteChainId'],_0x4a57b9=_0x1fd658['getSuggestions']()['filter'](_0x4db0b9=>_0x4db0b9['isInContent']&&_0x4db0b9['attributes']&&_0x4db0b9['attributes']['tablePasteChainId']==_0x474f0c);_0x4a57b9['length']&&_0x15b7fd['getAllAdjacentSuggestions']()['length']!=_0x4a57b9['length']&&_0x4a57b9['reduce']((_0xc34802,_0xe73636)=>(_0xc34802['next']=_0xe73636,_0xe73636['previous']=_0xc34802,_0xe73636));};function _0xbbe955(_0x4c123f,_0x28b17a=!0x0){const {id:_0x404f8a,authorId:_0x1a778d}=_0x36ab20(_0x4c123f['markerName']),_0x2595c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd81b2=_0x1fd658['activeMarkers']['includes'](_0x4c123f['markerName']);return _0xd81b2&&_0x2595c2['push']('ck-suggestion-marker--active'),{'classes':_0x2595c2,'attributes':{'data-suggestion':_0x404f8a,'data-author-id':_0x1a778d},'priority':_0xd81b2&&_0x28b17a?0xbc2:0xbb8};}_0x1fd658['on']('suggestionLoaded',_0x46413c,{'priority':'high'}),_0x1fd658['on']('suggestionUnloaded',_0x46413c,{'priority':'high'}),_0x39d425['model']['document']['registerPostFixer'](()=>{let _0x5b8c31=!0x1;const _0x2454d9=Array['from'](_0x39d425['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22e845,data:_0xc2b3a9}of _0x2454d9){const {group:_0x2da7eb,type:_0x470c44,id:_0x647534}=_0x36ab20(_0x22e845);if('suggestion'!=_0x2da7eb||'deletion'!=_0x470c44||_0xc2b3a9['oldRange'])continue;if(!_0x1fd658['hasSuggestion'](_0x647534))continue;const _0x5cbb6d=_0x1fd658['getSuggestion'](_0x647534)['getRanges'](),_0xb4c0d9=_0x39d425['plugins']['get']('Users')['me'];for(const _0x438954 of _0x1fd658['getSuggestions']()){if(!_0x438954['isInContent']||_0x438954['author']!=_0xb4c0d9)continue;if('formatBlock'!=_0x438954['type']||'tablePasteCell'!=_0x438954['subType'])continue;if(_0x438954['getRanges']()['every'](_0x33a733=>_0x5cbb6d['some'](_0x725c34=>_0x725c34['containsRange'](_0x33a733,!0x0)))){for(const _0x421de0 of _0x438954['getAllAdjacentSuggestions']())_0x421de0['isInContent']&&(_0x421de0['discard'](),_0x5b8c31=!0x0);}}}return _0x5b8c31;}),_0x39d425['model']['document']['registerPostFixer'](_0x270316=>{const _0x19be30=_0x39d425['commands']['get']('redo');if(!_0x19be30||!_0x19be30['_createdBatches']['has'](_0x270316['batch']))return!0x1;let _0x545bd9=!0x1;const _0x45223d=_0x39d425['plugins']['get']('Users')['me'],_0x3aa7a2=_0x39d425['model']['document']['differ']['getChanges'](),_0x142820=Array['from'](_0x39d425['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1c9dc2,data:_0x4e5823})=>{const {group:_0x25438f,subType:_0x1bfb1a,authorId:_0x13c4b9}=_0x36ab20(_0x1c9dc2);return'suggestion'==_0x25438f&&'tablePaste'==_0x1bfb1a&&_0x13c4b9==_0x45223d['id']&&!_0x4e5823['oldRange'];});for(const _0x467459 of _0x3aa7a2){if('insert'!=_0x467459['type']||'tableCellSuggestion'!=_0x467459['name']||0x1!=_0x467459['length'])continue;const _0x5e73ee=_0x270316['createRange'](_0x467459['position'],_0x467459['position']['getShiftedBy'](0x1));if(!_0x142820['find'](({data:_0x41546d})=>_0x41546d['newRange']['isEqual'](_0x5e73ee))){for(const {name:_0xbe1160,data:_0x126f7e}of _0x142820)if(_0x5e73ee['containsRange'](_0x126f7e['newRange'])){_0x270316['updateMarker'](_0xbe1160,{'range':_0x5e73ee}),_0x545bd9=!0x0;break;}}}return _0x545bd9;}),_0x39d425['model']['document']['registerPostFixer'](_0x2dace0=>{let _0xce4ba4=!0x1;const _0x3ffbdd=_0x39d425['plugins']['get']('Users')['me'],_0x543b6e=_0x1fd658['getSuggestions']()['filter'](_0x305b0b=>_0x305b0b['isInContent']&&_0x305b0b['author']==_0x3ffbdd),_0x6e59b8=new Set(),_0x1cf34c=new Set();for(const _0x2672c5 of _0x543b6e)if('tablePaste'==_0x2672c5['subType'])for(const _0x23d7b0 of _0x2672c5['getMarkers']()){const _0x492d31=_0x23d7b0['getRange']()['getContainedElement']();if(_0x492d31){if(_0x492d31['is']('element','tableCellSuggestion')&&ve(_0x492d31)){_0x2672c5['removeMarker'](_0x23d7b0['name']),_0x6e59b8['add'](_0x492d31),_0xce4ba4=!0x0;const _0x5e5c77=_0x492d31['nextSibling'],_0x355372=_0x492d31['previousSibling'],_0x5bac53=_0x5e5c77&&_0x5e5c77['is']('element','tableCellSuggestion'),_0x33e6ff=_0x355372&&_0x355372['is']('element','tableCellSuggestion');_0x5bac53&&!_0x6e59b8['has'](_0x5e5c77)&&_0x1cf34c['add'](_0x5e5c77),_0x33e6ff&&!_0x6e59b8['has'](_0x355372)&&_0x1cf34c['add'](_0x355372);}else _0x492d31['is']('element','paragraph')&&_0x492d31['isEmpty']&&(_0x2672c5['removeMarker'](_0x23d7b0['name']),_0xce4ba4=!0x0);}}else{if('tablePasteCell'==_0x2672c5['subType']){if(!_0x2672c5['attributes']||!_0x2672c5['attributes']['tablePasteChainId'])continue;const _0x56a7c7=_0x2672c5['attributes']['markerAttributes'];if(_0x56a7c7&&Object['keys'](_0x56a7c7)['length'])continue;const _0x223aae=_0x2672c5['attributes']['tablePasteChainId'];let _0x5998d5=!0x0,_0xd1b776=!0x0;for(const _0x47710f of _0x543b6e)if(_0x47710f['subType']&&_0x47710f['subType']['startsWith']('tablePaste')){if(!_0x47710f['attributes']['tablePasteChainId']){_0xd1b776=!0x1;break;}if(_0x47710f['id']!=_0x2672c5['id']&&_0x47710f['attributes']['tablePasteChainId']==_0x223aae){_0x5998d5=!0x1;break;}}_0xd1b776&&_0x5998d5&&(_0x2672c5['removeMarkers'](),_0xce4ba4=!0x0);}}for(const _0x4cf955 of _0x6e59b8)_0x2dace0['remove'](_0x4cf955);for(const _0x5e1d36 of _0x1cf34c)_0x2dace0['unwrap'](_0x5e1d36);return _0xce4ba4;}),_0x39d425['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x564d49=>_0xbbe955(_0x564d49),'converterPriority':'high'}),_0x39d425['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x47df0c,_0x3cb961)=>_0x3cb961['options']['showSuggestionHighlights']?_0xbbe955(_0x47df0c,!0x1):null,'converterPriority':'high'});const _0x54927b=_0x39d425['editing']['view'];this['listenTo'](_0x54927b['document'],'clipboardOutput',(_0x52c4a2,_0x14dae2)=>{const _0x53761f=[];for(const _0x93549e of _0x54927b['createRangeIn'](_0x14dae2['content'])['getItems']())_0x93549e['is']('element','suggestion-td')&&_0x53761f['push'](_0x93549e);_0x54927b['change'](_0xde432a=>{for(const _0x2770e0 of _0x53761f)_0xde432a['move'](_0xde432a['createRangeIn'](_0x2770e0),_0xde432a['createPositionBefore'](_0x2770e0)),_0xde432a['remove'](_0x2770e0);});});}}function ve(_0x2f5f11){if(_0x2f5f11['isEmpty'])return!0x0;const _0x5df9dc=_0x2f5f11['getChild'](0x0);return _0x5df9dc['is']('element','paragraph')&&_0x5df9dc['isEmpty'];}function xe(_0x71b17d,_0x52c82d={},_0x176e71){for(const {isAnchor:_0x164026,cellHeight:_0x362863,cellWidth:_0x4077f7}of _0x176e71['createTableWalker'](_0x71b17d,{'includeAllSlots':!0x0,..._0x52c82d}))if(!_0x164026||0x1!=_0x362863||0x1!=_0x4077f7)return!0x1;return!0x0;}class Pe extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x43843a=this['editor']['plugins']['get']('TrackChangesEditing');_0x43843a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x43843a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x43843a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43843a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x43843a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x43843a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3746eb,_0x55436a){const _0x1502d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247bf7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c284c=_0x55436a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22e82a=_0x247bf7['getColumnGroupElement'](_0x2c284c);let _0x2db42c=_0x22e82a?_0x247bf7['getTableColumnsWidths'](_0x22e82a):null,_0x5b9f0a=_0x2c284c['getAttribute']('tableWidth')||null;const _0x112b70=_0x55436a['tableWidth']||_0x5b9f0a,_0x39f244=_0x55436a['columnWidths']||_0x2db42c,_0x3c383a=this['editor']['plugins']['get']('Users')['me'];for(const _0x238b9b of _0x1502d7['getSuggestions']()){const _0x33f984=_0x238b9b['getContainedElement']();if('resizeTable'===_0x238b9b['subType']&&_0x33f984===_0x2c284c){_0x238b9b['author']!==_0x3c383a&&_0x238b9b['discard']();const _0x4d1a26=_0x238b9b['data']['commandParams'];_0x5b9f0a=_0x4d1a26[0x0]['tableWidth'],_0x2db42c=_0x4d1a26[0x0]['columnWidths'];break;}}_0x3746eb({'table':_0x2c284c,'tableWidth':_0x112b70,'columnWidths':_0x39f244}),_0x1502d7['markBlockFormat'](_0x2c284c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5b9f0a,'columnWidths':_0x2db42c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x26f3bb){if('formatBlock'!=_0x26f3bb['type']&&'formatInline'!=_0x26f3bb['type'])return;const {data:_0x128f78}=_0x26f3bb;if(_0x128f78&&'resizeTable'===_0x128f78['formatGroupId']){const _0x586066='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x586066)};}}}class Ue extends _0x486e9c{['afterInit'](){const _0x2e81a5=this['editor'];_0x2e81a5['plugins']['has']('Template')&&_0x2e81a5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x486e9c{['afterInit'](){const _0x2574c8=this['editor'];if(!_0x2574c8['commands']['get']('insertTableOfContents'))return;_0x2574c8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xbd4d26=_0x2574c8['plugins']['get']('TrackChangesEditing'),_0xc5dab3=_0x2574c8['locale'];_0xbd4d26['descriptionFactory']['registerElementLabel']('tableOfContents',_0x34eac6=>At(_0xc5dab3,'ELEMENT_TABLE_OF_CONTENTS',_0x34eac6));}}class He extends _0x486e9c{['afterInit'](){const _0x3c9f77=this['editor'];if(!_0x3c9f77['plugins']['has']('Title'))return;_0x3c9f77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x3c9f77['locale'],'ELEMENT_TITLE')),_0x3c9f77['model']['document']['registerPostFixer'](_0x45905d=>{let _0x23c707=!0x1;const _0x583c8a=Array['from'](_0x3c9f77['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14a801,data:_0x472fab}of _0x583c8a){const {group:_0x2f072d}=_0x36ab20(_0x14a801);if('suggestion'!==_0x2f072d||!_0x472fab['newRange'])continue;const _0x2556ab=_0x472fab['newRange'],_0x1b267a=_0x2556ab['end']['nodeBefore'];if(!_0x1b267a||!_0x1b267a['is']('element','title-content'))continue;if(!_0x2556ab['start']['isTouching'](_0x2556ab['end']))continue;const _0x4d6c9=_0x3c9f77['model']['schema']['getNearestSelectionRange'](_0x2556ab['end'],'forward');if(_0x4d6c9&&_0x4d6c9['isCollapsed']){const _0x570697=_0x45905d['createRange'](_0x2556ab['start'],_0x4d6c9['start']);_0x570697['isEqual'](_0x2556ab)||(_0x45905d['updateMarker'](_0x14a801,{'range':_0x570697}),_0x23c707=!0x0);}_0x23c707||(_0x45905d['removeMarker'](_0x14a801),_0x23c707=!0x0);}return _0x23c707;});}}class $e extends _0x486e9c{['afterInit'](){const _0x53ec31=this['editor'],_0x262aed=_0x53ec31['plugins']['get']('TrackChangesEditing');_0x53ec31['plugins']['has']('Uploadcare')&&(_0x262aed['enableCommand']('uploadcare'),_0x53ec31['plugins']['has']('UploadcareImageEdit')&&(_0x262aed['enableCommand']('uploadcareImageEdit'),_0x262aed['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x262aed['descriptionFactory']['registerDescriptionCallback'](_0x5ee008=>{if('attribute'!=_0x5ee008['type'])return;const {data:_0x42038d}=_0x5ee008;return _0x42038d&&'uploadcareImageId'==_0x42038d['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x486e9c{['afterInit'](){const _0x18c9c0=this['editor'],_0x209a3c=_0x18c9c0['plugins']['get']('TrackChangesEditing');_0x18c9c0['plugins']['has']('UndoEditing')&&(_0x209a3c['enableCommand']('undo'),_0x209a3c['enableCommand']('redo'));}}class Ve extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x390973=this['editor'];if(!_0x390973['plugins']['has']('TableCaptionEditing'))return;_0x390973['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x486e9c{['tableProperties'];['tableCellProperties'];constructor(_0x2af176){super(_0x2af176),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 _0x3abfea=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x57c987 of this['tableProperties'])_0x3abfea['enableCommand'](_0x57c987,(_0x6fd0ae,_0x5dfacf)=>{const _0x170e28=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x57c987,[_0x170e28],this['tableProperties'],'tableProperties',_0x6fd0ae,_0x5dfacf);});_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3abfea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x16a4ff,_0x267d58)=>this['handleDiscardAction'](this['tableProperties'],_0x16a4ff,_0x267d58)),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x33e36f of this['tableCellProperties'])this['editor']['commands']['get'](_0x33e36f)&&_0x3abfea['enableCommand'](_0x33e36f,(_0x3c3f46,_0x5988af)=>{const _0x3a37bf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x33e36f,_0x3a37bf,this['tableCellProperties'],'tableCellProperties',_0x3c3f46,_0x5988af);});_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3abfea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x36c729,_0x1880ef)=>this['handleDiscardAction'](this['tableCellProperties'],_0x36c729,_0x1880ef)),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3abfea['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3abfea['descriptionFactory']['registerDescriptionCallback'](_0x4096c6=>this['handleSuggestionDescription'](_0x4096c6)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4d9d3a,_0x4d98ca,_0x3d59fe,_0x9fc2f9,_0x3ea8d8,_0x1c49d8){const _0x3f81f7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1c49d8['batch'],()=>{for(const _0x53a216 of _0x4d98ca){if(this['_getSuggestion'](_0x53a216,_0x9fc2f9))_0x3ea8d8(_0x1c49d8);else{const _0x47ee70={};for(const _0x467bbc of _0x3d59fe){const _0x4bcb2b=_0x53a216['getAttribute'](_0x467bbc);void 0x0!==_0x4bcb2b&&(_0x47ee70[_0x467bbc]=_0x4bcb2b);}_0x3ea8d8(_0x1c49d8),_0x3f81f7['markBlockFormat'](_0x53a216,{'commandParams':[_0x47ee70]},[],_0x9fc2f9);}}});}['handleDiscardAction'](_0x5847a4,_0x13d62e,_0x204f9d){const _0x41e06f=_0x13d62e[0x0]['start']['nodeAfter'],_0x20c897=_0x204f9d['commandParams'][0x0];this['editor']['model']['change'](_0x2ed4b6=>{for(const _0x3d2bf3 of _0x5847a4)void 0x0!==_0x20c897[_0x3d2bf3]?_0x2ed4b6['setAttribute'](_0x3d2bf3,_0x20c897[_0x3d2bf3],_0x41e06f):_0x2ed4b6['removeAttribute'](_0x3d2bf3,_0x41e06f);});}['handleSuggestionDescription'](_0x2e3d20){if(_0x2e3d20['data'])switch(_0x2e3d20['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'](_0x2eafc5,_0x32fa35){const _0x1391d6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1898ef of _0x1391d6['getSuggestions']({'skipNotAttached':!0x0})){const _0x507b8b=_0x1898ef['getContainedElement']();if(_0x1898ef['subType']===_0x32fa35&&_0x507b8b===_0x2eafc5)return _0x1898ef;}return null;}['_registerTablePropertiesAttributes'](){const _0x2df73b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b9be=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2d4db4 of _0x51b9be){const _0x269143=_0x2d4db4['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2df73b['descriptionFactory']['registerAttributeLabel'](_0x2d4db4,At(this['editor']['locale'],'FORMAT_'+_0x269143));}}}class ze extends _0x486e9c{['afterInit'](){const _0x114f7d=this['editor'];if(!_0x114f7d['plugins']['has']('LineHeight'))return;const _0x22ff98=_0x114f7d['plugins']['get']('TrackChangesEditing'),_0x13f0be=_0x114f7d['locale'];_0x22ff98['enableDefaultAttributesIntegration']('lineHeight'),_0x22ff98['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x13f0be,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x486e9c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x267a96,_0xaf0ffc,_0xb8ed5b,_0x389d90,_0x2b1f8b,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(_0x5027cb){super(_0x5027cb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4573c4,_0x3e04ba,_0x4e1b64,_0xa1d4c6)=>{this['_model']['change'](()=>{for(const _0x4f0aba of[..._0xa1d4c6,..._0x4e1b64])this['_model']['markers']['has'](_0x4f0aba)&&_0x5027cb['editing']['reconvertMarker'](_0x4f0aba);});}),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']=_0x5027cb['plugins']['get'](_0x267a96),this['_suggestionsConversion']=_0x5027cb['plugins']['get'](_0xaf0ffc),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5027cb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5027cb['config']['get']('trackChanges.trackFormatChanges'),_0x5027cb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5027cb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x5027cb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x32290c=this['editor'];_0x32290c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18fd55,{writer:_0xba53ba})=>{let _0x51f2b9='suggestion:'+_0x18fd55['getAttribute']('suggestion-type')+':'+_0x18fd55['getAttribute']('id');return _0x18fd55['getAttribute']('marker-count')&&(_0x51f2b9+=':'+_0x18fd55['getAttribute']('marker-count')),_0xba53ba['createElement']('$marker',{'data-name':_0x51f2b9});}}),_0x32290c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x32290c['model']['document']['registerPostFixer'](_0x38d578=>{let _0x385bc=!0x1;const _0x2d9ee0=Array['from'](_0x32290c['model']['document']['differ']['getChangedMarkers']()),_0x25f6a3=new Set();for(const {name:_0x15ecfa,data:_0x2a3181}of _0x2d9ee0){const {group:_0x480fb7,type:_0x2411dd,subType:_0x3ebc4e,id:_0xe33e37}=_0x36ab20(_0x15ecfa);if('suggestion'!==_0x480fb7)continue;const _0x250314=_0x3ebc4e?'suggestion:'+_0x2411dd+':'+_0x3ebc4e+':'+_0xe33e37:'suggestion:'+_0x2411dd+':'+_0xe33e37,_0x1ea802=_0x32290c['model']['markers']['getMarkersGroup'](_0x250314),_0x2a7df3=_0x32290c['model']['markers']['get'](_0x15ecfa),_0x3fd278=this['_suggestions']['get'](_0xe33e37);if(null!=_0x2a3181['newRange']){'formatInline'==_0x2411dd&&(_0x385bc=_0x385bc||Ze(_0x2a3181['newRange'],_0x15ecfa,_0x38d578,_0x32290c['model']['schema']));const _0x5dc488='attribute'==_0x2411dd&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x3ebc4e)),_0x2ac9f2='attribute'==_0x2411dd&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x3ebc4e));if(_0x2a3181['newRange']['isCollapsed']||'$graveyard'==_0x2a3181['newRange']['root']['rootName']||'formatBlock'==_0x2411dd&&!tn(_0x2a3181['newRange'])||_0x5dc488&&!tn(_0x2a3181['newRange'])||_0x2ac9f2&&en(_0x2a3181['newRange'])||'deletion'==_0x2411dd&&en(_0x2a3181['newRange'])||_0x2a7df3&&nn(_0x2a7df3,_0x1ea802))_0x38d578['removeMarker'](_0x15ecfa),_0x385bc=!0x0;else{if(!_0x3fd278||!_0x3fd278['isInContent'])continue;if(_0x2a3181['newRange']&&_0x2a3181['oldRange']&&_0x2a3181['newRange']['isEqual'](_0x2a3181['oldRange']))continue;_0x25f6a3['add'](_0x3fd278);}}}return _0x25f6a3['size']>0x0&&(_0x385bc=!!this['_joinWithAdjacentSuggestions'](_0x25f6a3)||_0x385bc),_0x385bc;}),_0x32290c['model']['document']['registerPostFixer'](_0xb93de2=>{let _0x401d02=!0x1;for(const _0x2336b1 of _0x32290c['model']['document']['differ']['getChanges']())if('insert'==_0x2336b1['type'])for(const _0x38fd8f of this['_suggestions']['values']()){if(_0x38fd8f['isMultiRange']||!_0x38fd8f['isInContent'])continue;const _0x719086='formatBlock'==_0x38fd8f['type'],_0x163f9a=this['_getAttributeKey'](_0x38fd8f),_0x427776=_0x163f9a&&this['_suggestionsConversion']['isBlockAttribute'](_0x163f9a);if(!_0x719086&&!_0x427776)continue;const _0x56ce59=_0x38fd8f['getFirstRange']();if(_0x56ce59['start']['parent']!=_0x56ce59['end']['parent']&&!_0x56ce59['end']['isAtEnd']){const _0x383dd7=_0x32290c['model']['createPositionAt'](_0x56ce59['start']['nodeAfter'],'end'),_0x5ef473=_0x32290c['model']['createRange'](_0x56ce59['start'],_0x383dd7);_0xb93de2['updateMarker'](_0x38fd8f['getFirstMarker'](),{'range':_0x5ef473}),_0x401d02=!0x0;}}return _0x401d02;}),_0x32290c['model']['document']['registerPostFixer'](_0x2bcce5=>this['_processAttributeChanges'](_0x2bcce5)),_0x32290c['model']['document']['registerPostFixer'](_0x162f77=>!_0x162f77['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x162f77)),_0x32290c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x32290c['model']['document']['on']('change:data',(_0x5ab529,_0x1069f0)=>{if(!_0x1069f0['isLocal']||_0x1069f0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x30cef8=_0x32290c['model']['document']['differ']['getChanges']();if(0x0==_0x30cef8['length'])return;const _0x590bba=[],_0x1a76ae=_0x30cef8['filter'](_0x4e85d4=>'attribute'==_0x4e85d4['type']),_0x7dd234=_0x30cef8['filter'](_0x4148e9=>'insert'==_0x4148e9['type']&&'$text'!=_0x4148e9['name']);for(const _0x2f163b of _0x1a76ae)this['_suggestionsConversion']['isRegisteredAttribute'](_0x2f163b['attributeKey'])&&_0x590bba['push']({'key':_0x2f163b['attributeKey'],'newValue':_0x2f163b['attributeNewValue'],'oldValue':_0x2f163b['attributeOldValue'],'range':sn(_0x2f163b['range'],_0x32290c['model'])});for(const _0x415174 of _0x7dd234){if('rename'!=_0x415174['action']&&'refresh'!=_0x415174['action'])continue;const _0x4e0632=rn(_0x415174['position']['nodeAfter'],_0x32290c['model']),_0x39e130=_0x415174['before'];'rename'==_0x415174['action']&&_0x590bba['push']({'key':Ke,'newValue':_0x415174['name'],'oldValue':_0x39e130['name'],'range':_0x4e0632});for(const [_0x2de26d,_0x1dbce8]of _0x39e130['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2de26d))continue;const _0x5eec9f=_0x415174['attributes']['get'](_0x2de26d);_0x1dbce8!==_0x5eec9f&&_0x590bba['push']({'key':_0x2de26d,'newValue':_0x5eec9f,'oldValue':_0x1dbce8,'range':_0x4e0632});}for(const [_0x119533,_0x34d103]of _0x415174['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x119533)&&(_0x39e130['attributes']['has'](_0x119533)||_0x590bba['push']({'key':_0x119533,'newValue':_0x34d103,'oldValue':null,'range':_0x4e0632}));}0x0!=_0x590bba['length']&&_0x32290c['model']['enqueueChange'](_0x1069f0,_0x19973c=>{const _0x2322e9=_0xec3fc0();for(const {range:_0x50d475,key:_0x297d7b,oldValue:_0x112275,newValue:_0x18365e}of _0x590bba)this['markAttributeChange'](_0x50d475,_0x297d7b,_0x112275,_0x18365e,{'groupId':_0x2322e9});this['_reduceExistingSuggestions'](_0x19973c,_0x590bba);});},{'priority':'lowest'}),_0x32290c['model']['markers']['on']('update:suggestion',(_0x5a6fdd,_0xb3272b,_0x23a5d5)=>{if(null==_0x23a5d5){const {id:_0xe5fef2}=_0x36ab20(_0xb3272b['name']),_0x2c2b87=this['_suggestions']['get'](_0xe5fef2);_0x2c2b87&&_0x2c2b87['addMarkerName'](_0xb3272b['name']);}}),_0x32290c['model']['document']['on']('change:data',()=>{const _0x28a72b=Array['from'](_0x32290c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3b7cec=>'suggestion'===_0x36ab20(_0x3b7cec['name'])['group']);if(0x0===_0x28a72b['length'])return;_0x28a72b['sort']((_0x4b64df,_0x3321aa)=>{const _0x43d467=_0x4b64df['data']['oldRange'],_0x47b7a3=_0x3321aa['data']['oldRange'];return null===_0x43d467&&null===_0x47b7a3?0x0:null===_0x43d467&&null!==_0x47b7a3?-0x1:null!==_0x43d467&&null===_0x47b7a3?0x1:_0x43d467['start']['isBefore'](_0x47b7a3['start'])?-0x1:0x1;});const _0x15de65=new Set(),_0x49f309=new Set();for(const {name:_0x4e23ff,data:_0x45e379}of _0x28a72b){const {id:_0x3ca220}=_0x36ab20(_0x4e23ff);if(null===_0x45e379['oldRange']){const _0x44fdbb=this['_handleNewSuggestionMarker'](_0x4e23ff);_0x49f309['add'](_0x44fdbb);}else{const _0x57870e=this['_suggestions']['get'](_0x3ca220);null!==_0x45e379['newRange']||_0x57870e['isInContent']?(_0x15de65['add'](_0x57870e['head']),_0x49f309['add'](_0x57870e)):this['_removeSuggestion'](_0x57870e);}}_0x49f309['size']>0x0&&this['_refreshSuggestionsChain'](_0x49f309);for(const _0x238506 of _0x15de65)this['fire']('suggestionChanged',_0x238506);}),_0x32290c['model']['on']('applyOperation',(_0x57e7fa,_0x14d83e)=>{const _0x28c693=_0x14d83e[0x0];if(!this['_suggestions']['size'])return;if(!_0x28c693['isDocumentOperation'])return;if(_0x28c693['batch']['isUndo']||!_0x28c693['batch']['isLocal'])return;let _0x5c0f85,_0x5cb94d;switch(_0x28c693['type']){case'insert':_0x5c0f85=_0x32290c['model']['createPositionAt'](_0x28c693['position']),_0x5cb94d=_0x5c0f85['getShiftedBy'](_0x28c693['howMany']);break;case'split':_0x5c0f85=_0x32290c['model']['createPositionAt'](_0x28c693['splitPosition']),_0x5cb94d=_0x32290c['model']['createPositionAt'](_0x28c693['moveTargetPosition']);break;case'move':_0x5c0f85=_0x32290c['model']['createPositionAt'](_0x28c693['targetPosition']),_0x5cb94d=_0x5c0f85['getShiftedBy'](_0x28c693['howMany']);break;default:return;}const _0x47e41d=_0x32290c['model']['createRange'](_0x5c0f85,_0x5cb94d);_0x32290c['model']['change'](()=>{for(const {suggestion:_0x4c2c6f,meta:_0x60fa1d}of this['_findSuggestions'](_0x47e41d)){if(_0x4c2c6f['isMultiRange'])continue;if('formatInline'==_0x4c2c6f['type'])continue;const _0x459095=this['_getAttributeKey'](_0x4c2c6f);if(_0x459095&&this['_suggestionsConversion']['isBlockAttribute'](_0x459095)&&'split'!=_0x28c693['type'])continue;const _0x5a4e46=_0x4c2c6f['data']&&_0x4c2c6f['data']['multipleBlocks'];('formatBlock'!=_0x4c2c6f['type']||'split'==_0x28c693['type']&&!_0x5a4e46)&&(_0x60fa1d['containsRangeInObject']||'insertion'==_0x4c2c6f['type']&&_0x60fa1d['isOwn']||_0x4c2c6f['getFirstRange']()['containsRange'](_0x47e41d)&&this['_breakSuggestionMarker'](_0x4c2c6f,_0x5c0f85,_0x5cb94d));}});},{'priority':'lowest'}),_0x32290c['model']['on']('deleteContent',(_0x25fcfc,_0x150201)=>{const _0x47b38c=_0x150201[0x0],_0x3377a4=_0x150201[0x1];if(_0x3377a4&&_0x3377a4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x47b38c['isCollapsed'])return;const _0x2d49d7=_0x32290c['model']['schema'],{start:_0x49ddf4,end:_0x5ffe3b}=_0x47b38c['getFirstRange'](),_0x5db53f=_0x49ddf4['nodeAfter']&&_0x2d49d7['isLimit'](_0x49ddf4['nodeAfter'])?null:_0x2d49d7['getNearestSelectionRange'](_0x49ddf4,'forward'),_0x7f284f=_0x5ffe3b['nodeBefore']&&_0x2d49d7['isLimit'](_0x5ffe3b['nodeBefore'])?null:_0x2d49d7['getNearestSelectionRange'](_0x5ffe3b,'backward'),_0x4da910=_0x32290c['model']['createRange'](_0x5db53f?_0x5db53f['start']:_0x49ddf4,_0x7f284f?_0x7f284f['end']:_0x5ffe3b);_0x32290c['model']['change'](_0x252b78=>{this['markDeletion'](_0x4da910);const _0xe12a13=_0x32290c['model']['schema']['getNearestSelectionRange'](_0x4da910['start']);_0x47b38c['is']('documentSelection')?_0x252b78['setSelection'](_0xe12a13):_0x47b38c['setTo'](_0xe12a13);}),_0x25fcfc['stop']();},{'priority':_0x5dc5ee['normal']+0xa}),_0x32290c['model']['on']('insertContent',(_0x1a040a,_0xd12970)=>{const _0x43799b=_0xd12970[_0xd12970['length']-0x1];_0x43799b&&_0x43799b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x32290c['model']['change'](()=>{let _0x169b9a=_0x32290c['model']['insertContent'](_0xd12970[0x0],_0xd12970[0x1],_0xd12970[0x2],{'forceDefaultExecution':!0x0});if(!_0x169b9a)return;_0x1a040a['return']=_0x169b9a['clone']();const _0x2a5ca2=_0x169b9a['end']['nodeBefore'],_0x35cd66=_0x32290c['model']['schema'];_0x2a5ca2&&_0x35cd66['isBlock'](_0x2a5ca2)&&!_0x35cd66['isObject'](_0x2a5ca2)&&(_0x169b9a=_0x32290c['model']['createRange'](_0x169b9a['start'],_0x32290c['model']['createPositionAt'](_0x2a5ca2,'end'))),this['markInsertion'](_0x169b9a);}),_0x1a040a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14307d=new dt(_0x32290c,this['_suggestions']);_0x32290c['commands']['add']('acceptSuggestion',_0x14307d),this['enableCommand']('acceptSuggestion');const _0x189f07=new ft(_0x32290c,this['_suggestions']);_0x32290c['commands']['add']('discardSuggestion',_0x189f07),this['enableCommand']('discardSuggestion'),_0x32290c['commands']['add']('acceptAllSuggestions',new Lt(_0x32290c,_0x14307d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x32290c['commands']['add']('discardAllSuggestions',new Lt(_0x32290c,_0x189f07,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x32290c['commands']['add']('acceptSelectedSuggestions',new It(_0x32290c,_0x14307d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x32290c['commands']['add']('discardSelectedSuggestions',new It(_0x32290c,_0x189f07,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x31927c=_0x32290c['plugins']['get'](_0x267a96);this['listenTo'](_0x31927c,'addComment',(_0x6cb397,{threadId:_0x3ba00b})=>{const _0x561568=this['_suggestions']['get'](_0x3ba00b);_0x561568&&_0x561568['commentThread']&&0x1===_0x561568['commentThread']['length']&&this['_updateSuggestionData'](_0x3ba00b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x31927c,'removeComment',(_0x38c57d,{threadId:_0x182ff5})=>{const _0x379c31=this['_suggestions']['get'](_0x182ff5);_0x379c31&&_0x379c31['commentThread']&&!_0x379c31['commentThread']['length']&&this['_updateSuggestionData'](_0x182ff5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x77767a){const _0x40a31a=_0x7446f0([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]),_0x38e32e=0x3d8d0df,_0x4ecd6c=0x3df5997^_0x38e32e,_0xcdefdd=window[_0x7446f0([0x44,0x61,0x74,0x65])][_0x7446f0([0x6e,0x6f,0x77])](),_0x41352e=_0x77767a[_0x7446f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cbab9=new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x60a99d=>{_0x41352e[_0x7446f0([0x6f,0x6e,0x63,0x65])](_0x7446f0([0x72,0x65,0x61,0x64,0x79]),_0x60a99d);}),_0x348993={[_0x7446f0([0x6b,0x74,0x79])]:_0x7446f0([0x45,0x43]),[_0x7446f0([0x75,0x73,0x65])]:_0x7446f0([0x73,0x69,0x67]),[_0x7446f0([0x63,0x72,0x76])]:_0x7446f0([0x50,0x2d,0x32,0x35,0x36]),[_0x7446f0([0x78])]:_0x7446f0([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]),[_0x7446f0([0x79])]:_0x7446f0([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]),[_0x7446f0([0x61,0x6c,0x67])]:_0x7446f0([0x45,0x53,0x32,0x35,0x36])},_0x52b10d=_0x41352e[_0x7446f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7446f0([0x67,0x65,0x74])](_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x146598(){let _0x305c76,_0x4b8cb2=null,_0x82e762=null;try{if(_0x52b10d==_0x7446f0([0x47,0x50,0x4c]))return _0x7446f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x305c76=_0x45a403(),!_0x305c76)return _0x7446f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x305c76[_0x7446f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x82e762=_0xded120(_0x305c76[_0x7446f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x305c76[_0x7446f0([0x6a,0x74,0x69])])),await _0x48cbbc()?_0x5a0f91()?_0x5d0d29()?_0x7446f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49f146()?(_0x305c76[_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7446f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b8cb2=_0x269150(_0x7446f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5eb49e()):_0x7446f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7446f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7446f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7446f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d0d29(){const _0x364666=[_0x7446f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7446f0([0x74,0x72,0x69,0x61,0x6c])][_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x305c76[_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcdefdd/0x3e8:0xe10*_0x4ecd6c;return _0x305c76[_0x7446f0([0x65,0x78,0x70])]<_0x364666;}function _0x5a0f91(){const _0x523ecb=_0x305c76[_0x7446f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x523ecb)return!0x1;if(_0x523ecb[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x2a])))return!0x0;if(_0x523ecb[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x54,0x43])))return!0x0;if(_0x523ecb[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x52,0x54,0x43]))){if(_0x219f74())return!0x0;if(_0x419588()||_0x158d8d())return!0x0;}return!0x1;}function _0x49f146(){const _0x4ab4bc=_0x305c76[_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ab4bc||0x0==_0x4ab4bc[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x497da1}=new URL(window[_0x7446f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ab4bc[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497da1))return!0x0;const _0x12f2f8=_0x497da1[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e]));return _0x4ab4bc[_0x7446f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34b52a=>_0x34b52a[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x2a])))[_0x7446f0([0x6d,0x61,0x70])](_0x5a4dee=>_0x5a4dee[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e])))[_0x7446f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xeb5811=>_0xeb5811[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x12f2f8[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7446f0([0x6d,0x61,0x70])](_0xbac961=>Array(_0x12f2f8[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbac961[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7446f0([0x66,0x69,0x6c,0x6c])](_0xbac961[0x0]===_0x7446f0([0x2a])?_0x7446f0([0x2a]):'')[_0x7446f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbac961))[_0x7446f0([0x73,0x6f,0x6d,0x65])](_0x43c6c6=>_0x12f2f8[_0x7446f0([0x65,0x76,0x65,0x72,0x79])]((_0x469278,_0x4116e9)=>_0x43c6c6[_0x4116e9]===_0x469278||_0x43c6c6[_0x4116e9]===_0x7446f0([0x2a])));}function _0x5eb49e(){return _0x4b8cb2&&_0x82e762?new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb6a769,_0x62df8f)=>{_0x4b8cb2[_0x7446f0([0x74,0x68,0x65,0x6e])](_0xb6a769,_0x62df8f),_0x82e762[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x8af59d=>{_0x8af59d!=_0x7446f0([0x56,0x61,0x6c,0x69,0x64])&&_0xb6a769(_0x8af59d);},_0x62df8f);}):_0x4b8cb2||_0x82e762||_0x7446f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xded120(_0x6e5a0,_0x4b9d72){return new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3564af=>{if(_0x342975())return _0x3564af(_0x7446f0([0x56,0x61,0x6c,0x69,0x64]));_0x1d2144(),_0x41352e[_0x7446f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7446f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b4543=!0x1;const _0x43cb06=_0xec3fc0();function _0x539f26(_0xb33688){return!!_0xb33688&&(typeof _0xb33688===_0x7446f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb33688===_0x7446f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb33688[_0x7446f0([0x74,0x68,0x65,0x6e])]===_0x7446f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb33688[_0x7446f0([0x63,0x61,0x74,0x63,0x68])]===_0x7446f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27b459(_0x5bf686){_0x4f59cc(_0x5bf686)[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x324914=>{if(!_0x324914||_0x324914[_0x7446f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7446f0([0x6f,0x6b]))return _0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a9831(_0x3d2ee5(_0x43cb06+_0x4b9d72))!=_0x324914[_0x7446f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7446f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x39547e=>(_0x138646(),_0x39547e),()=>{const _0x29cb39=_0x291139();return null==_0x29cb39?(_0x138646(),_0x7446f0([0x56,0x61,0x6c,0x69,0x64])):_0x7446f0(_0xcdefdd-_0x29cb39>(0x27d454df^_0x38e32e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x3564af)[_0x7446f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3564af(_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x358b0c=0x3ee3e5f^_0x38e32e;function _0x138646(){const _0x2d2518=_0x7446f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9831(_0x3d2ee5(_0x6e5a0)),_0x4b04ed=_0x42d7c6(_0x2a9831(window[_0x7446f0([0x4d,0x61,0x74,0x68])][_0x7446f0([0x63,0x65,0x69,0x6c])](_0xcdefdd/_0x358b0c)));window[_0x7446f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7446f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d2518,_0x4b04ed);}function _0x291139(){const _0x4ba1df=_0x7446f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9831(_0x3d2ee5(_0x6e5a0)),_0x2529df=window[_0x7446f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7446f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ba1df);return _0x2529df?window[_0x7446f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d7c6(_0x2529df),0x10)*_0x358b0c:null;}function _0x4f59cc(_0x23f3a5){return new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1960bc,_0x652d96)=>{_0x23f3a5[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x1960bc,_0x652d96),window[_0x7446f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x652d96,0x3d9041f^_0x38e32e);});}}_0x41352e[_0x7446f0([0x6f,0x6e])](_0x7446f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ce33d,_0x428d1e)=>{if(_0x428d1e[0x0]!=_0x6e5a0)return _0x3564af(_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x428d1e[0x1]={..._0x428d1e[0x1],[_0x7446f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43cb06};},{[_0x7446f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7446f0([0x68,0x69,0x67,0x68])}),_0x41352e[_0x7446f0([0x6f,0x6e])](_0x7446f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfa1648=>{_0x539f26(_0xfa1648[_0x7446f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b4543=!0x0,_0x27b459(_0xfa1648[_0x7446f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7446f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7446f0([0x6c,0x6f,0x77])}),_0x3cbab9[_0x7446f0([0x74,0x68,0x65,0x6e])](()=>{_0x1b4543||_0x3564af(_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x342975(){return _0x41352e[_0x7446f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7446f0([0x76,0x69,0x65,0x77])][_0x7446f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7446f0([0x61,0x75,0x74,0x6f]);}function _0x1d2144(){_0x41352e[_0x7446f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7446f0([0x76,0x69,0x65,0x77])][_0x7446f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7446f0([0x61,0x75,0x74,0x6f]);}}function _0x269150(_0x55cedc){const _0x4a895f=[new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c0356=>setTimeout(_0x5c0356,0x3d1ee13^_0x38e32e)),_0x3cbab9[_0x7446f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d776a=>{let _0x465075=0x0;_0x41352e[_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x7446f0([0x6f,0x6e])](_0x7446f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c9177,_0x122341)=>{_0x122341[0x0][_0x7446f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x465075++,_0x465075==(0x3d8d537^_0x38e32e)&&(_0x3d776a(),_0x1c9177[_0x7446f0([0x6f,0x66,0x66])]());});}))];return window[_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7446f0([0x72,0x61,0x63,0x65])](_0x4a895f)[_0x7446f0([0x74,0x68,0x65,0x6e])](()=>_0x55cedc);}async function _0x2dc658(){await _0x3cbab9,_0x41352e[_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x7446f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeef9,_0x41352e[_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x7446f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeef9,_0x41352e[_0x7446f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x219f74(){return _0x5f35e5(_0x7446f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x160e0e(_0x7446f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x7446f0([0x73,0x74,0x61,0x74,0x65])]==_0x7446f0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x419588(){return _0x5f35e5(_0x7446f0([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 _0x158d8d(){return _0x5f35e5(_0x7446f0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x40a5dd(_0x213c98){const _0x5ed077=_0x4e2069();_0x41352e[_0x5ed077]=_0x7446f0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x213c98,_0x213c98!=_0x7446f0([0x56,0x61,0x6c,0x69,0x64])&&_0x2dc658();}function _0x4e2069(){const _0x89ff34=window[_0x7446f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7446f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7446f0([0x6e,0x6f,0x77])]())[_0x7446f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7446f0([0x2e]),'');let _0x435637=_0x7446f0([0x52]);for(let _0x13adcf=0x0;_0x13adcf<_0x89ff34[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13adcf+=0x2){let _0x2ef55d=window[_0x7446f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x89ff34[_0x7446f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13adcf,_0x13adcf+0x2));_0x2ef55d>=_0x40a31a[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ef55d-=_0x40a31a[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x435637+=_0x40a31a[_0x2ef55d];}return _0x435637;}function _0x45a403(){const _0x485b4c=_0x52b10d[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e]));if(0x3!=_0x485b4c[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa851d2(_0x485b4c[0x1]);function _0xa851d2(_0xe8bf76){const _0x243688=_0x118816(_0xe8bf76);return _0x243688&&_0x57c8e9()?_0x243688:null;function _0x57c8e9(){const _0x50a684=_0x243688[_0x7446f0([0x6a,0x74,0x69])],_0x2cfb1e=window[_0x7446f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a684[_0x7446f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a684[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d1309={..._0x243688,[_0x7446f0([0x6a,0x74,0x69])]:_0x50a684[_0x7446f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50a684[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d1309[_0x7446f0([0x76,0x63])],_0x3d2ee5(_0x4d1309)==_0x2cfb1e;}}}async function _0x48cbbc(){let _0x2fd623=!0x0;try{const _0x2a42f1=_0x52b10d[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e])),[_0x4b0608,_0x3b8833,_0x1500ad]=_0x2a42f1;return _0x507adc(_0x4b0608),await _0x1e3a8e(_0x4b0608,_0x3b8833,_0x1500ad),_0x2fd623;}catch{return!0x1;}function _0x507adc(_0x1a10c2){const _0x46a7ed=_0x118816(_0x1a10c2);_0x46a7ed&&_0x46a7ed[_0x7446f0([0x61,0x6c,0x67])]==_0x7446f0([0x45,0x53,0x32,0x35,0x36])||(_0x2fd623=!0x1);}async function _0x1e3a8e(_0x29eaf4,_0x3437cb,_0x3d707b){const _0x479a65=window[_0x7446f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7446f0([0x66,0x72,0x6f,0x6d])](_0x5201e7(_0x3d707b),_0x430c1f=>_0x430c1f[_0x7446f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x428562=new window[(_0x7446f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7446f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29eaf4+_0x7446f0([0x2e])+_0x3437cb),_0x33682c=window[_0x7446f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7446f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33682c)return;const _0x44fc83=await _0x33682c[_0x7446f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7446f0([0x6a,0x77,0x6b]),_0x348993,{[_0x7446f0([0x6e,0x61,0x6d,0x65])]:_0x7446f0([0x45,0x43,0x44,0x53,0x41]),[_0x7446f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7446f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7446f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33682c[_0x7446f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7446f0([0x6e,0x61,0x6d,0x65])]:_0x7446f0([0x45,0x43,0x44,0x53,0x41]),[_0x7446f0([0x68,0x61,0x73,0x68])]:{[_0x7446f0([0x6e,0x61,0x6d,0x65])]:_0x7446f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44fc83,_0x479a65,_0x428562)||(_0x2fd623=!0x1);}}function _0x118816(_0x2c0690){return _0x2c0690[_0x7446f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7446f0([0x65,0x79]))?JSON[_0x7446f0([0x70,0x61,0x72,0x73,0x65])](_0x5201e7(_0x2c0690)):null;}function _0x5201e7(_0x433c60){return window[_0x7446f0([0x61,0x74,0x6f,0x62])](_0x433c60[_0x7446f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7446f0([0x2b]))[_0x7446f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7446f0([0x2f])));}function _0x3d2ee5(_0x5aa724){let _0x199b3f=0x1505;function _0x3a8d10(_0x42d2e4){for(let _0x5441b0=0x0;_0x5441b0<_0x42d2e4[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5441b0++){const _0x521d0a=_0x42d2e4[_0x7446f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5441b0);_0x199b3f=(_0x199b3f<<0x5)+_0x199b3f+_0x521d0a,_0x199b3f&=_0x199b3f;}}function _0x1ef2e8(_0x17163c){Array[_0x7446f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17163c)?_0x17163c[_0x7446f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ef2e8):_0x17163c&&typeof _0x17163c==_0x7446f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7446f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17163c)[_0x7446f0([0x73,0x6f,0x72,0x74])]()[_0x7446f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fcd52,_0x43797e])=>{_0x3a8d10(_0x4fcd52),_0x1ef2e8(_0x43797e);}):_0x3a8d10(window[_0x7446f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17163c));}return _0x1ef2e8(_0x5aa724),_0x199b3f>>>0x0;}function _0x2a9831(_0x52fa2b){return _0x52fa2b[_0x7446f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7446f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7446f0([0x30]));}function _0x42d7c6(_0x34e663){return _0x34e663[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7446f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7446f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f35e5(_0x49bf86){return _0x41352e[_0x7446f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x7446f0([0x68,0x61,0x73])](_0x49bf86);}function _0x160e0e(_0x2a6c6e){return _0x41352e[_0x7446f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x7446f0([0x67,0x65,0x74])](_0x2a6c6e);}function _0x4aeef9(){}function _0x7446f0(_0x938903){return _0x938903['map'](_0x21f6aa=>String['fromCharCode'](_0x21f6aa))['join']('');}_0x40a5dd(await _0x146598());}(this);}set['adapter'](_0x1ccf55){if(this['_adapter'])throw new _0x24c1f2('track-changes-adapter-already-set',this);this['_adapter']=_0x1ccf55;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xdf9e40=!0x1,toJSON:_0x59cee5=!0x1}={}){const _0x7b1c88=[];for(const _0x425a98 of this['_suggestions']['values']())_0xdf9e40&&!_0x425a98['isInContent']||_0x7b1c88['push'](_0x425a98);return _0x59cee5?_0x7b1c88['map'](_0x5d761d=>_0x5d761d['toJSON']()):_0x7b1c88;}['getSuggestion'](_0x26db74){const _0x48f8b4=this['_suggestions']['get'](_0x26db74);if(!_0x48f8b4)throw new _0x24c1f2('track-changes-suggestion-not-found',this);return _0x48f8b4;}['hasSuggestion'](_0x3277b2){return this['_suggestions']['has'](_0x3277b2);}['addSuggestionData'](_0x3c3726){const {authorId:_0x4b47db,id:_0x39ba0e,originalSuggestionId:_0xfde408,attributes:_0x3e001a}=_0x3c3726,[_0x2ffb73,_0x4d024d]=_0x3c3726['type']['split'](':'),_0x146f18=this['_suggestions']['get'](_0x39ba0e)||this['_createSuggestion'](_0x2ffb73,_0x4d024d,_0x39ba0e,_0x4b47db,_0x3e001a,_0xfde408);if(this['_addThreadToSuggestion'](_0x146f18),this['_checkSuggestionCorrectness'](_0x146f18,_0x2ffb73,_0x4d024d||null,_0x4b47db),_0x146f18['createdAt']=_0x3c3726['createdAt'],_0x146f18['_isDataLoaded']=!0x0,_0x3e001a&&_0x3e001a['@external']){const _0x22e10a=_0x3e001a['@external'],_0x422372=this['_getExternalAuthor'](_0x22e10a['authorName']);_0x146f18['authoredAt']=_0x22e10a['createdAt'],_0x146f18['author']=_0x422372,_0x146f18['isExternal']=!0x0;}else _0x146f18['authoredAt']=_0x3c3726['createdAt'];switch(_0x3c3726['data']&&(_0x146f18['data']=_0x3c3726['data']),_0x3c3726['attributes']&&(_0x146f18['attributes']=_0x3c3726['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x146f18['_saved']=!0x0),this['_suggestionState']['get'](_0x146f18)){case'notReady':this['_suggestionState']['set'](_0x146f18,'dataReady');break;case'markerReady':_0x146f18['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x146f18])),this['_refreshSuggestionsChain'](new Set([_0x146f18])),this['_suggestionState']['set'](_0x146f18,'ready'),this['fire']('suggestionLoaded',_0x146f18)):this['_suggestionState']['set'](_0x146f18,'removed');}return _0x146f18;}['acceptSuggestion'](_0x5751be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28f172 of _0x5751be['getAllAdjacentSuggestions']())_0x28f172['accept']();});});}['discardSuggestion'](_0x20a7eb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e14de of _0x20a7eb['getAllAdjacentSuggestions']())_0x1e14de['discard']();});});}['enableCommand'](_0x2ddfad,_0x5aa37d){const _0x3c019a=this['editor']['commands']['get'](_0x2ddfad);if(!_0x3c019a)throw new _0x24c1f2('track-changes-command-not-found',this,{'commandName':_0x2ddfad});if(this['_enabledCommands']['has'](_0x3c019a))throw new _0x24c1f2('track-changes-enable-command-twice',this,{'commandName':_0x2ddfad});this['_enabledCommands']['add'](_0x3c019a),_0x5aa37d&&_0x3c019a['on']('execute',(_0x5c3677,_0x2ca2f0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ca2f0['length']>0x0&&_0x2ca2f0[_0x2ca2f0['length']-0x1]&&_0x2ca2f0[_0x2ca2f0['length']-0x1]['forceDefaultExecution']?_0x2ca2f0['pop']():(_0x5c3677['return']=_0x5aa37d((..._0x49f318)=>_0x3c019a['execute'](..._0x49f318,{'forceDefaultExecution':!0x0}),..._0x2ca2f0),_0x5c3677['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2c3b81){let _0x1d8d5f,_0x5f1a8f;const _0x23bc56=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1d8d5f=_0x2c3b81();}catch(_0x5d7ca9){_0x5f1a8f=_0x5d7ca9;}return _0x23bc56||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5f1a8f&&_0x24c1f2['rethrowUnexpectedError'](_0x5f1a8f,this),_0x1d8d5f;}['markInsertion'](_0x2dc8ed,_0x47b30d=null,_0x3662df={}){if(_0x2dc8ed['isCollapsed'])return null;const _0x3c59f8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3662df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x234b8f,meta:_0x346ad2}of this['_findSuggestions'](_0x2dc8ed,'insertion'))if(_0x346ad2['isOwn']){if(!_0x346ad2['isNextTo']){if(_0x346ad2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x234b8f,_0x3662df))continue;return _0x234b8f;}if(cn(_0x234b8f,_0x3662df))return _0x234b8f;this['_breakSuggestionMarker'](_0x234b8f,_0x2dc8ed['start'],_0x2dc8ed['end']);break;}if(_0x47b30d==_0x234b8f['subType']&&cn(_0x234b8f,_0x3662df)){const _0x164704=_0x234b8f['getFirstRange']();return _0x164704['start']['isEqual'](_0x2dc8ed['end'])?this['_setSuggestionRange'](_0x234b8f,this['_model']['createRange'](_0x2dc8ed['start'],_0x164704['end'])):this['_setSuggestionRange'](_0x234b8f,this['_model']['createRange'](_0x164704['start'],_0x2dc8ed['end'])),_0x234b8f;}}const _0x454856=_0xec3fc0(),_0x1c5f45=_0x3c59f8['id'],_0x6afd80=_0x47b30d?'insertion:'+_0x47b30d:'insertion',_0x512de6=this['_setSuggestionData']({'id':_0x454856,'type':_0x6afd80,'createdAt':new Date(),'authorId':_0x1c5f45,'attributes':_0x3662df});return this['_addSuggestionMarker'](_0x6afd80,_0x454856,_0x1c5f45,_0x2dc8ed),_0x512de6;}['markMultiRangeInsertion'](_0x49b2ed,_0x4a0df4='multi',_0x8e9b3b={}){const _0x2599f7=this['editor']['plugins']['get']('Users')['me'],_0x534d15=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4a0df4,'join');this['_trackingSessionId']&&(_0x8e9b3b['trackingSessionId']=this['_trackingSessionId']);for(const _0x26b956 of this['getSuggestions']())if(_0x26b956['author']['id']==_0x2599f7['id']&&'insertion'==_0x26b956['type']&&_0x26b956['subType']==_0x4a0df4&&cn(_0x26b956,_0x8e9b3b)&&(_0x534d15(_0x26b956['getRanges'](),_0x49b2ed)||_0x534d15(_0x49b2ed,_0x26b956['getRanges']()))){for(const _0x138e0b of _0x49b2ed)_0x26b956['addRange'](_0x138e0b);return _0x26b956;}for(const {suggestion:_0x513f6a,meta:_0x28c28f}of this['_findSuggestions'](_0x49b2ed,'insertion')){if(!_0x28c28f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28c28f['containsRangeInObject'])continue;if(!cn(_0x513f6a,_0x8e9b3b))continue;let _0x292ebb=!0x0;for(const _0x30858e of _0x513f6a['getRanges']())for(const _0x4734fb of _0x49b2ed)if(!_0x30858e['containsRange'](_0x4734fb)){_0x292ebb=!0x1;break;}if(_0x292ebb)return _0x513f6a;}const _0x30cdc3=_0xec3fc0(),_0x172d52=_0x2599f7['id'],_0x128dcb='insertion:'+_0x4a0df4,_0xa768d4=this['_setSuggestionData']({'id':_0x30cdc3,'type':_0x128dcb,'createdAt':new Date(),'authorId':_0x172d52,'attributes':_0x8e9b3b});for(const _0x6f9518 of _0x49b2ed)this['_addSuggestionMarker'](_0x128dcb,_0x30cdc3,_0x172d52,_0x6f9518,bt['getMultiRangeId']());return _0xa768d4;}['markInlineFormat'](_0x3df3fc,_0x25a36b,_0x3931ee=null,_0xa53407={}){if(_0x3931ee=_0x3931ee||Je(_0x25a36b),_0x3df3fc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xa53407['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2de50b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3931ee,'accept');return this['forceDefaultExecution'](()=>_0x2de50b([_0x3df3fc],_0x25a36b,_0xa53407)),null;}const _0x4b521a=this['editor']['plugins']['get']('Users')['me'],_0x1f4ec6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a2997,meta:_0x4d46b2}of this['_findSuggestions'](_0x3df3fc,'insertion'))_0x4d46b2['isOwn']&&!_0x4d46b2['isInsideObject']&&_0x1f4ec6['push'](..._0x2a2997['getRanges']());}const _0x33b275=function(_0x34293e,_0x3da7f6){const _0x46b5f7=[];for(const _0x2e3383 of _0x3da7f6){const _0x2dfd69=_0x34293e['getIntersection'](_0x2e3383);_0x2dfd69&&_0x46b5f7['push'](_0x2dfd69);}return _0x46b5f7;}(_0x3df3fc,_0x1f4ec6),_0x90d546=function(_0x1ec5dc,_0x18874c){const _0x4a3a5f=[_0x1ec5dc];for(const _0x1bb3d2 of _0x18874c){let _0x42c498=0x0;for(;_0x42c498<_0x4a3a5f['length'];){const _0x19ee91=_0x4a3a5f[_0x42c498]['getDifference'](_0x1bb3d2);_0x4a3a5f['splice'](_0x42c498,0x1,..._0x19ee91),_0x42c498+=_0x19ee91['length'];}}return _0x4a3a5f;}(_0x3df3fc,_0x1f4ec6);_0x33b275['length']&&this['_model']['change'](()=>{for(const _0x2fbeaa of _0x33b275){const _0x152391=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3931ee,'accept');this['forceDefaultExecution'](()=>_0x152391([_0x2fbeaa],_0x25a36b,_0xa53407));}});for(const _0x178aef of _0x90d546){let _0x1822af=null,_0x2fb59c=_0x178aef['start'],_0x35f024=_0x178aef['end'];for(const {suggestion:_0x5c16f6,meta:_0x11f02c}of this['_findSuggestions'](_0x178aef,'formatInline')){if(!_0x11f02c['isOwn'])continue;if(_0x5c16f6['subType']!=_0x3931ee)continue;if(!cn(_0x5c16f6,_0xa53407))continue;const _0x5af51c=_0x5c16f6['getFirstRange']();if(_0x5af51c['containsRange'](_0x178aef,!0x0))return null;_0x2fb59c=_0x2fb59c['isBefore'](_0x5af51c['start'])?_0x2fb59c:_0x5af51c['start'],_0x35f024=_0x35f024['isAfter'](_0x5af51c['end'])?_0x35f024:_0x5af51c['end'],_0x1822af?_0x5af51c['start']['isBefore'](_0x1822af['getFirstRange']()['start'])?(_0x1822af['removeMarkers'](),_0x1822af=_0x5c16f6):_0x5c16f6['removeMarkers']():_0x1822af=_0x5c16f6;}const _0x1811e5=this['_model']['createRange'](_0x2fb59c,_0x35f024);if(_0x1822af)this['_setSuggestionRange'](_0x1822af,_0x1811e5);else{const _0x3d8406=_0xec3fc0(),_0x348cf2=_0x4b521a['id'];this['_setSuggestionData']({'id':_0x3d8406,'type':'formatInline:'+_0x3931ee,'data':_0x25a36b,'createdAt':new Date(),'authorId':_0x348cf2,'attributes':_0xa53407}),this['_addSuggestionMarker']('formatInline:'+_0x3931ee,_0x3d8406,_0x348cf2,_0x1811e5);}}return null;}['markBlockFormat'](_0x38f306,_0x3bcb91,_0xac18eb=[],_0x4e318d=null,_0xc3507a={}){_0x3bcb91['formatGroupId']||(_0x3bcb91['formatGroupId']=_0x3bcb91['commandName']),_0x3bcb91['multipleBlocks']=_0x38f306['is']('range'),_0x4e318d=_0x4e318d||Je(_0x3bcb91);const _0xd08b4c=_0xac18eb['map'](_0x223efd=>rn(_0x223efd,this['_model'])),_0x2a97ef=_0x38f306['is']('range')?_0x38f306:rn(_0x38f306,this['_model']);if(this['_trackingSessionId']&&(_0xc3507a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32e154=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e318d,'accept');return this['forceDefaultExecution'](()=>_0x32e154([_0x2a97ef],_0x3bcb91,_0xc3507a)),null;}_0xd08b4c['push'](_0x2a97ef);let _0x4c2ee2=!0x0;for(const _0x3d5f10 of _0xd08b4c)if(!this['_rangeIsInLocalUserInsertion'](_0x3d5f10)){_0x4c2ee2=!0x1;break;}if(_0x4c2ee2&&'always'!==this['_trackFormatChanges']){const _0x376227=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e318d,'accept');return this['forceDefaultExecution'](()=>_0x376227([_0x2a97ef],_0x3bcb91,_0xc3507a)),null;}let _0x3267d9=null,_0x2c7b9b=_0x2a97ef['start'],_0x570212=_0x2a97ef['end'];for(const {suggestion:_0x473a31,meta:_0x345b21}of this['_findSuggestions'](_0x2a97ef,'formatBlock')){if(!_0x345b21['isOwn'])continue;if(_0x345b21['isNextTo']||_0x345b21['containsRangeInObject']||_0x345b21['isInsideObject'])continue;if(_0x473a31['data']['formatGroupId']!=_0x3bcb91['formatGroupId'])continue;if(!cn(_0x473a31,_0xc3507a))continue;const _0x205f22=_0x473a31['getFirstRange']();if(_0x473a31['subType']==_0x4e318d){if(_0x205f22['containsRange'](_0x2a97ef,!0x0))return null;_0x2c7b9b=_0x2c7b9b['isBefore'](_0x205f22['start'])?_0x2c7b9b:_0x205f22['start'],_0x570212=_0x570212['isAfter'](_0x205f22['end'])?_0x570212:_0x205f22['end'],_0x3267d9?_0x205f22['start']['isBefore'](_0x3267d9['getFirstRange']()['start'])?(_0x3267d9['removeMarkers'](),_0x3267d9=_0x473a31):_0x473a31['removeMarkers']():_0x3267d9=_0x473a31;}else{const _0x2de88f=_0x2a97ef['getIntersection'](_0x205f22);this['_cutOutSuggestionMarker'](_0x473a31,_0x2de88f);}}const _0x2d4540=this['editor']['plugins']['get']('Users')['me'],_0x2993e5=_0xec3fc0(),_0x5eb335=_0x2d4540['id'];if(_0x3267d9)return this['_setSuggestionRange'](_0x3267d9,this['_model']['createRange'](_0x2c7b9b,_0x570212)),_0x3267d9;{const _0x55fd98=this['_setSuggestionData']({'id':_0x2993e5,'type':'formatBlock:'+_0x4e318d,'data':_0x3bcb91,'createdAt':new Date(),'authorId':_0x5eb335,'attributes':_0xc3507a});return this['_addSuggestionMarker']('formatBlock:'+_0x4e318d,_0x2993e5,_0x5eb335,this['_model']['createRange'](_0x2c7b9b,_0x570212)),_0x55fd98;}}['markMultiRangeBlockFormat'](_0x5523ca,_0x22fae2,_0x4335fa=[],_0x2a5d2d=null,_0x2316ee={}){_0x22fae2['formatGroupId']||(_0x22fae2['formatGroupId']=_0x22fae2['commandName']);const _0x1dda2f=_0x5523ca[0x0];_0x22fae2['multipleBlocks']=_0x1dda2f['is']('range'),_0x2a5d2d=_0x2a5d2d||Je(_0x22fae2);const _0xfc4b7c=_0x4335fa['map'](_0x732e24=>rn(_0x732e24,this['_model'])),_0xae796a=_0x1dda2f['is']('range')?_0x5523ca:_0x5523ca['map'](_0x572d04=>rn(_0x572d04,this['_model']));if(this['_trackingSessionId']&&(_0x2316ee['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3dcb6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5d2d,'accept');return this['forceDefaultExecution'](()=>_0x3dcb6c(_0xae796a,_0x22fae2,_0x2316ee)),null;}_0xfc4b7c['push'](..._0xae796a);let _0x3c933a=!0x0;for(const _0x4a63bc of _0xfc4b7c)if(!this['_rangeIsInLocalUserInsertion'](_0x4a63bc)){_0x3c933a=!0x1;break;}if(_0x3c933a&&'always'!==this['_trackFormatChanges']){const _0x118ed6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5d2d,'accept');return this['forceDefaultExecution'](()=>_0x118ed6(_0xae796a,_0x22fae2,_0x2316ee)),null;}const _0x51c331=this['editor']['plugins']['get']('Users')['me'];for(const _0x1be88a of this['getSuggestions']()){const _0x50e83f=_0x1be88a['data'];if(_0x1be88a['author']['id']!=_0x51c331['id'])continue;if('formatBlock'!=_0x1be88a['type']||_0x50e83f['formatGroupId']!=_0x22fae2['formatGroupId'])continue;if(!cn(_0x1be88a,_0x2316ee))continue;const _0x4b20eb=_0x1be88a['subType']==_0x2a5d2d;for(let _0x3d1a42=0x0;_0x3d1a42<_0xae796a['length'];_0x3d1a42++){const _0x4443c2=_0xae796a[_0x3d1a42];for(const _0x750cd4 of _0x1be88a['getMarkers']()){const _0x1582af=_0x750cd4['getRange']();if(_0x4443c2['isEqual'](_0x1582af)){_0x4b20eb?(_0xae796a['splice'](_0x3d1a42,0x1),_0x3d1a42--):_0x1be88a['removeMarker'](_0x750cd4['name']);break;}}}}if(0x0==_0xae796a['length'])return null;const _0x38034e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5d2d,'join');for(const _0x276502 of this['getSuggestions']()){const _0x13384d=_0x276502['data'];if(_0x276502['author']['id']==_0x51c331['id']&&('formatBlock'==_0x276502['type']&&_0x13384d['formatGroupId']==_0x22fae2['formatGroupId']&&_0x276502['subType']==_0x2a5d2d&&cn(_0x276502,_0x2316ee)&&(_0x38034e(_0x276502['getRanges'](),_0xae796a)||_0x38034e(_0xae796a,_0x276502['getRanges']())))){for(const _0x2606b6 of _0xae796a)_0x276502['addRange'](_0x2606b6);return _0x276502;}}const _0x2f5211=_0xec3fc0(),_0x34a99a=_0x51c331['id'],_0x40ade1='formatBlock:'+_0x2a5d2d,_0x387227=this['_setSuggestionData']({'id':_0x2f5211,'type':_0x40ade1,'data':_0x22fae2,'createdAt':new Date(),'authorId':_0x34a99a,'attributes':_0x2316ee});for(const _0x164fc7 of _0xae796a)this['_addSuggestionMarker'](_0x40ade1,_0x2f5211,_0x34a99a,_0x164fc7,bt['getMultiRangeId']());return _0x387227;}['markDeletion'](_0x4152f8,_0x304ec3=null,_0x5235eb={}){if(_0x4152f8['isCollapsed'])return null;const _0x492ae6=this['editor']['plugins']['get']('Users')['me'],_0x5989ca=new _0x704ba(_0x4152f8['start'],_0x4152f8['end']);this['_trackingSessionId']&&(_0x5235eb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x929120,meta:_0x467f52}of this['_findSuggestions'](_0x5989ca,'insertion'))if(_0x467f52['isOwn']&&!_0x467f52['isNextTo']){if(_0x929120['isMultiRange']){const _0x470a31=_0x929120['getRanges']()['filter'](_0x260252=>'$graveyard'!=_0x260252['root']['rootName']);_0x470a31['every'](_0x367081=>_0x5989ca['containsRange'](_0x367081,!0x0))&&_0x929120['discard']();if(_0x470a31['some'](_0x3d2797=>_0x3d2797['containsRange'](_0x5989ca,!0x0))){const _0x563743=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x304ec3,'accept');return this['forceDefaultExecution'](()=>_0x563743([_0x5989ca],null,_0x5235eb)),null;}}else{const _0x239453=_0x5989ca['getIntersection'](_0x929120['getFirstRange']());null!==_0x239453&&_0x929120['_onDiscard']([_0x239453],null,_0x5235eb);}}if(_0x5989ca['detach'](),_0x5989ca['isCollapsed']||'$graveyard'==_0x5989ca['root']['rootName'])return null;let _0x4beebd=null,_0x20f1de=_0x5989ca['start'],_0xedaa25=_0x5989ca['end'];const _0x246fd6=this['_findSuggestions'](_0x5989ca,'deletion');for(const {suggestion:_0x2f961e,meta:_0x2e6ba6}of _0x246fd6){const _0x15aa22=this['_model']['createRange'](_0x20f1de,_0xedaa25);if(_0x2e6ba6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e6ba6['containsRangeInObject']&&!_0x2e6ba6['isInsideObject'])){if(_0x2f961e['isMultiRange']){if(!cn(_0x2f961e,_0x5235eb))continue;let _0x1e3b15=!0x0;for(const _0x453ad1 of _0x2f961e['getRanges']()){if(_0x453ad1['containsRange'](_0x15aa22,!0x0))return _0x2f961e;_0x15aa22['containsRange'](_0x453ad1)||(_0x1e3b15=!0x1);}_0x1e3b15&&_0x2f961e['discard']();}else{const _0x59c116=_0x2f961e['getFirstRange']();if(_0x59c116['containsRange'](_0x15aa22,!0x0))return _0x2f961e;if(!cn(_0x2f961e,_0x5235eb)){_0x15aa22['containsRange'](_0x59c116)?_0x2f961e['removeMarkers']():_0x59c116['containsPosition'](_0x20f1de)?_0x20f1de=_0x59c116['end']:_0x59c116['containsPosition'](_0xedaa25)&&(_0xedaa25=_0x59c116['start']);continue;}_0x20f1de=_0x20f1de['isBefore'](_0x59c116['start'])?_0x20f1de:_0x59c116['start'],_0xedaa25=_0xedaa25['isAfter'](_0x59c116['end'])?_0xedaa25:_0x59c116['end'],_0x5235eb=Object['assign']({},_0x2f961e['attributes']),_0x4beebd?_0x59c116['start']['isBefore'](_0x4beebd['getFirstRange']()['start'])?(_0x4beebd['removeMarkers'](),_0x4beebd=_0x2f961e):_0x2f961e['removeMarkers']():_0x4beebd=_0x2f961e;}}}if(_0x4beebd)return this['_setSuggestionRange'](_0x4beebd,this['_model']['createRange'](_0x20f1de,_0xedaa25)),_0x4beebd;{const _0x19d2ec=_0xec3fc0(),_0x532a3d=this['_model']['createRange'](_0x20f1de,_0xedaa25),_0x59c46f=_0x492ae6['id'],_0x4cb348=_0x304ec3?'deletion:'+_0x304ec3:'deletion',_0x46991c=this['_setSuggestionData']({'id':_0x19d2ec,'type':_0x4cb348,'createdAt':new Date(),'authorId':_0x59c46f,'attributes':_0x5235eb});return this['_addSuggestionMarker'](_0x4cb348,_0x19d2ec,_0x59c46f,_0x532a3d),_0x46991c;}}['markMultiRangeDeletion'](_0x4b622a,_0x45f719='multi',_0x5a6f30={}){const _0xc06b48=this['editor']['plugins']['get']('Users')['me'],_0x37e55d=_0x4b622a['map'](_0x4cde73=>new _0x704ba(_0x4cde73['start'],_0x4cde73['end'])),_0x393ab8=new Set();this['_trackingSessionId']&&(_0x5a6f30['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x234832,meta:_0xaffae4}of this['_findSuggestions'](_0x37e55d,'insertion'))_0xaffae4['isOwn']&&!_0xaffae4['isNextTo']&&_0x393ab8['add'](_0x234832);for(const _0x16bdb9 of _0x393ab8)if(_0x16bdb9['isMultiRange']){const _0x387325=_0x16bdb9['getRanges']();(!_0x16bdb9['attributes']||!_0x16bdb9['attributes']['skipNestingCheck'])&&(_0x387325['every'](_0x17d5c8=>_0x37e55d['some'](_0xab1538=>_0xab1538['containsRange'](_0x17d5c8,!0x0)))&&_0x16bdb9['discard']());if(_0x37e55d['every'](_0x17318d=>_0x387325['some'](_0x3084ee=>_0x3084ee['containsRange'](_0x17318d,!0x0)))){const _0x5b1c02=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45f719,'accept');return this['forceDefaultExecution'](()=>_0x5b1c02(_0x4b622a,null,_0x5a6f30)),null;}}else{const _0x49b566=_0x16bdb9['getFirstRange']();_0x37e55d['some'](_0xe0a61c=>_0xe0a61c['containsRange'](_0x49b566,!0x0))&&_0x16bdb9['discard']();if(_0x37e55d['every'](_0x56ab4c=>_0x49b566['containsRange'](_0x56ab4c,!0x0))){const _0xad962c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45f719,'accept');return this['forceDefaultExecution'](()=>_0xad962c(_0x37e55d,null,_0x5a6f30)),null;}}const _0x428925=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45f719,'join');let _0x4672d9=null;for(const _0x2548a5 of this['getSuggestions']())if(_0x2548a5['author']['id']==_0xc06b48['id']&&_0x2548a5['isInContent']&&'deletion'==_0x2548a5['type']&&_0x2548a5['subType']==_0x45f719&&cn(_0x2548a5,_0x5a6f30)&&(_0x428925(_0x2548a5['getRanges'](),_0x37e55d)||_0x428925(_0x37e55d,_0x2548a5['getRanges']()))){if(_0x4672d9){if(_0x2548a5['commentThread']&&_0x2548a5['commentThread']['length'])continue;for(const _0x6bd9e2 of _0x2548a5['getRanges']())_0x4672d9['isIntersectingWithRange'](_0x6bd9e2)||_0x4672d9['addRange'](_0x6bd9e2);_0x2548a5['removeMarkers']();}else{_0x4672d9=_0x2548a5;for(const _0x4d4d90 of _0x37e55d)_0x2548a5['isIntersectingWithRange'](_0x4d4d90)||_0x2548a5['addRange'](_0x4d4d90);}}if(_0x4672d9)return _0x4672d9;_0x393ab8['clear']();for(const {suggestion:_0x554300,meta:_0x5a8c47}of this['_findSuggestions'](_0x37e55d,'deletion'))_0x5a8c47['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a8c47['containsRangeInObject']&&!_0x5a8c47['isInsideObject'])&&cn(_0x554300,_0x5a6f30)&&_0x393ab8['add'](_0x554300);for(const _0x5beaae of _0x393ab8){const _0x102669=_0x5beaae['getRanges']();if(!_0x5a6f30||!_0x5a6f30['skipNestingCheck']){if(_0x37e55d['every'](_0x30ae47=>_0x102669['some'](_0x1ec049=>_0x1ec049['containsRange'](_0x30ae47,!0x0))))return _0x5beaae;}(!_0x5beaae['attributes']||!_0x5beaae['attributes']['skipNestingCheck'])&&(_0x102669['every'](_0x1e3a39=>_0x37e55d['some'](_0x1a1be5=>_0x1a1be5['containsRange'](_0x1e3a39,!0x0)))&&_0x5beaae['discard']());}const _0x1acec7=_0xec3fc0(),_0x21b1b5=_0xc06b48['id'],_0x55718e='deletion:'+_0x45f719,_0x1f2ab9=this['_setSuggestionData']({'id':_0x1acec7,'type':_0x55718e,'createdAt':new Date(),'authorId':_0x21b1b5,'attributes':_0x5a6f30});for(const _0x55abe6 of _0x37e55d)_0x55abe6['detach'](),_0x55abe6['isCollapsed']||'$graveyard'==_0x55abe6['root']['rootName']||this['_addSuggestionMarker'](_0x55718e,_0x1acec7,_0x21b1b5,_0x55abe6,bt['getMultiRangeId']());return _0x1f2ab9;}['markAttributeChange'](_0x423c30,_0x592504,_0x1ba30f,_0xbf2d96,_0xaccce9){if(_0x423c30['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a4271=this['editor']['plugins']['get']('Users')['me']['id'],_0x75646a=Array['from'](this['_suggestions']['values']())['filter'](_0x4a4a24=>'attribute'==_0x4a4a24['type']&&_0x4a4a24['data']['key']==_0x592504&&_0x4a4a24['isIntersectingWithRange'](_0x423c30));if(this['_trackingSessionId']&&(_0xaccce9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x57ee3e=this['_findSuggestions'](_0x423c30,'insertion')['filter'](({meta:_0x303063})=>_0x303063['isOwn']&&!_0x303063['isInsideObject']&&!_0x303063['isNextTo'])['map'](({suggestion:_0x1d2290})=>_0x1d2290);_0x75646a['unshift'](..._0x57ee3e);}const _0x94c059=new Map([[_0x423c30,_0x1ba30f]]);for(const _0x1bd621 of _0x75646a){const _0x499c6f='attribute'==_0x1bd621['type']?_0x1bd621['data']['oldValue']:void 0x0,_0x6548bd=_0x1bd621['getFirstRange'](),_0x82c352=Array['from'](_0x94c059['keys']())['find'](_0x1e31d6=>_0x1e31d6['isIntersecting'](_0x6548bd));if(!_0x82c352)continue;const _0x571e5f=_0x82c352['getDifference'](_0x6548bd);this['_suggestionsConversion']['isBlockAttribute'](_0x592504)&&'insertion'==_0x1bd621['type']&&0x0!=_0x571e5f['length']||(_0x94c059['delete'](_0x82c352),_0x571e5f['forEach'](_0x1a173d=>{_0x94c059['set'](_0x1a173d,_0x1ba30f);}),'insertion'!=_0x1bd621['type']&&_0x499c6f!=_0xbf2d96&&_0x94c059['set'](_0x82c352['getIntersection'](_0x6548bd),_0x499c6f));}const _0x41acfd=[];for(const [_0x4e9384,_0xba8ab4]of _0x94c059){const _0x2a2662=_0xec3fc0(),_0x11b7a7={'key':_0x592504,'oldValue':_0xba8ab4,'newValue':_0xbf2d96};_0x592504['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':_0x592504});const _0xbf3918=('attribute:'+(_0x592504+'|'+Je({'newValue':_0xbf2d96})))['substring'](0x0,0x3c),_0x5f1b51=this['_setSuggestionData']({'id':_0x2a2662,'type':_0xbf3918,'data':_0x11b7a7,'createdAt':new Date(),'authorId':_0x1a4271,'attributes':_0xaccce9});_0x41acfd['push'](_0x5f1b51),this['_addSuggestionMarker'](_0xbf3918,_0x2a2662,_0x1a4271,_0x4e9384);}return _0x41acfd;}['enableDefaultAttributesIntegration'](_0x1e40b7){this['enableCommand'](_0x1e40b7,(_0x1ad424,..._0x9c3956)=>{this['recordAttributeChanges'](()=>{_0x1ad424(..._0x9c3956);});});}['startTrackingSession'](_0x564169){return this['_trackingSessionId']=void 0x0!==_0x564169?_0x564169:_0xec3fc0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x28443d){return'attribute'==_0x28443d['type']?un(_0x28443d['subType']):null;}['_applyOperationsAsSuggestions'](_0x26ab06){if(0x0==_0x26ab06['length'])return;const _0x771de9=this['editor'],_0x4d2406=_0x771de9['plugins']['get'](_0x2b1f8b),_0x3f8249=[];_0x771de9['model']['change'](_0xc72695=>{for(let _0x192fc3=0x0;_0x192fc3<_0x26ab06['length'];_0x192fc3++){const _0x4faf6a=_0x26ab06[_0x192fc3];if(_0x4faf6a['baseVersion']=_0x771de9['model']['document']['version'],_0x4faf6a['isDocumentOperation']=!0x0,_0x4d2406['isMarkedRemoveOperation'](_0x4faf6a)){const _0x215c3d=_0x3cd981(_0x4faf6a['newRange'],_0x771de9['model']);_0x3f8249['unshift'](_0x704ba['fromRange'](_0x215c3d));}else switch(_0x4faf6a['type']){case'rename':{const _0x2584a1=_0x4faf6a['oldName'],_0x5d47aa=_0x4faf6a['newName'];if(_0x2584a1==_0x5d47aa)break;_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);const _0x5e9934='$elementName',_0x1d0eb3=_0x4faf6a['position'],_0x3621f0=_0x771de9['model']['createRange'](_0x1d0eb3,_0x771de9['model']['createPositionAt'](_0x1d0eb3['nodeAfter'],'end'));this['markAttributeChange'](_0x3621f0,_0x5e9934,_0x2584a1,_0x5d47aa,{'groupId':_0xec3fc0()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x45bfa2=_0x4faf6a['oldValue'],_0x1b0aa7=_0x4faf6a['newValue'];if(_0x45bfa2==_0x1b0aa7)break;_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);const _0x29eac1=_0x4faf6a['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x29eac1))break;const _0x47e9a9=_0x3cd981(_0x4faf6a['range'],_0x771de9['model']);this['markAttributeChange'](_0x47e9a9,_0x29eac1,_0x45bfa2,_0x1b0aa7,{'groupId':_0xec3fc0()});break;}case'insert':{_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);if(_0x26ab06[_0x192fc3+0x1]&&'move'==_0x26ab06[_0x192fc3+0x1]['type'])break;const _0x17e5db=_0x4faf6a['position'],_0x12ce9b=_0x4faf6a['howMany'],_0x21c02f=_0x3cd981(_0x771de9['model']['createRange'](_0x17e5db,_0x17e5db['getShiftedBy'](_0x12ce9b)),_0x771de9['model']);this['markInsertion'](_0x21c02f);break;}case'split':{_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);const _0x3f3a2f=_0x4faf6a['splitPosition'],_0x582129=_0x4faf6a['moveTargetPosition'];this['markInsertion'](_0x771de9['model']['createRange'](_0x3f3a2f,_0x582129));break;}case'move':case'remove':_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);}}for(const _0x3f2284 of _0x3f8249)_0x3f2284['detach'](),this['markDeletion'](_0x3f2284);});}['_setSuggestionRange'](_0x2789f1,_0x4515ef){const _0x5d2a81=_0x2789f1['getFirstMarker']();this['_model']['change'](_0x4dede8=>{_0x4dede8['updateMarker'](_0x5d2a81,{'range':_0x4515ef});});}['_addThreadToSuggestion'](_0x33ad65){const _0x25dc05=_0x33ad65['id'],_0x16f90c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x25dc05)||this['_commentsRepository']['addCommentThread']({'channelId':_0x16f90c,'threadId':_0x25dc05,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x521827=this['_commentsRepository']['getCommentThread'](_0x25dc05);_0x521827['unbind']('isRemovable'),_0x521827['isRemovable']=!0x1,_0x33ad65['commentThread']=_0x521827;}['_checkSuggestionCorrectness'](_0x1b233e,_0x70fa87,_0x24fedf,_0x342c37){if(_0x1b233e['type']!=_0x70fa87||_0x1b233e['subType']!=_0x24fedf||_0x1b233e['creator']['id']!=_0x342c37)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x24c1f2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4ccd1e,_0x86d60c){const _0x895fc6=_0x4ccd1e['getFirstRange']();if(_0x86d60c['isEqual'](_0x895fc6))_0x4ccd1e['removeMarkers']();else{if(_0x895fc6['containsRange'](_0x86d60c)){const _0x63cb0a=this['_model']['createPositionAt'](_0x86d60c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4ccd1e,this['_model']['createRange'](_0x895fc6['start'],_0x63cb0a));const _0x4e5df6=_0xec3fc0(),_0x17aa23=_0x4ccd1e['creator']['id'],_0x312ccf=_0x4ccd1e['type']+':'+_0x4ccd1e['subType'];this['_setSuggestionData']({'id':_0x4e5df6,'type':_0x312ccf,'createdAt':new Date(),'authorId':_0x17aa23,'data':_0x4ccd1e['data'],'attributes':_0x4ccd1e['attributes']});const _0x3adfc1=this['_model']['createPositionAt'](_0x86d60c['end']['parent'],'after'),_0x2edbaa=this['_model']['createRange'](_0x3adfc1,_0x895fc6['end']);this['_addSuggestionMarker'](_0x312ccf,_0x4e5df6,_0x17aa23,_0x2edbaa);}else{if(_0x895fc6['containsPosition'](_0x86d60c['start'])){const _0x4972a6=this['_model']['createPositionAt'](_0x86d60c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4ccd1e,this['_model']['createRange'](_0x895fc6['start'],_0x4972a6));}else{const _0x5ea81d=this['_model']['createPositionAt'](_0x86d60c['end']['parent'],'after');this['_setSuggestionRange'](_0x4ccd1e,this['_model']['createRange'](_0x5ea81d,_0x895fc6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25abc4){for(const {suggestion:_0x5c6800,meta:_0x1bb18a}of this['_findSuggestions'](_0x25abc4,'insertion')){if(!_0x1bb18a['isOwn'])continue;const _0x153af1=_0x5c6800['getRanges']();for(const _0x2db795 of _0x153af1)if(!_0x25abc4['getDifference'](_0x2db795)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2c8448){return this['editor']['plugins']['get']('Users')['getUser'](_0x2c8448);}['_getExternalAuthor'](_0x39f371){const _0x11d572=this['editor']['plugins']['get']('Users'),_0x5627fa=_0x57387b('external:'+_0x39f371),_0x9b8b13=_0x11d572['getUser'](_0x5627fa);return _0x9b8b13||_0x11d572['addUser']({'id':_0x5627fa,'name':_0x39f371});}['_createSuggestion'](_0x3b7f00,_0x195d96,_0x4abc96,_0x3cf50e,_0x190d0f,_0x4141ee){const _0xba1e2=this['_getAuthorFromId'](_0x3cf50e);if(!_0xba1e2)throw new _0x24c1f2('track-changes-user-not-found',this,{'authorId':_0x3cf50e,'suggestionId':_0x4abc96});const _0x27c255=this['_suggestionFactory']['buildSuggestion'](_0x3b7f00,_0x195d96,_0x4abc96,_0xba1e2,_0x190d0f,_0x51d9d8=>{this['_updateSuggestionData'](_0x4abc96,{'attributes':_0x51d9d8});const _0x2309a0=this['getSuggestion'](_0x4abc96);this['_joinWithAdjacentSuggestions'](new Set([_0x2309a0])),this['_refreshSuggestionsChain'](new Set([_0x2309a0]));},_0x4141ee);return this['listenTo'](_0x27c255,'accept',()=>{this['_updateSuggestionData'](_0x4abc96,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27c255,'discard',()=>{this['_updateSuggestionData'](_0x4abc96,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4abc96,_0x27c255),this['_suggestionState']['set'](_0x27c255,'notReady'),_0x27c255;}['_breakSuggestionMarker'](_0x485152,_0x1ca3e4,_0x50fa09){const _0x677bc3=_0x485152['getFirstRange'](),_0x4e3579=_0x677bc3['start'],_0x386839=_0x677bc3['end'];this['_setSuggestionRange'](_0x485152,this['_model']['createRange'](_0x4e3579,_0x1ca3e4));const _0x8c9fba=_0xec3fc0(),_0x5142e0=_0x485152['creator']['id'],_0xa75770=_0x485152['type']+(_0x485152['subType']?':'+_0x485152['subType']:'');this['_setSuggestionData']({'id':_0x8c9fba,'type':_0xa75770,'createdAt':new Date(),'authorId':_0x5142e0,'originalSuggestionId':_0x485152['_originalSuggestionId']||_0x485152['id'],'attributes':_0x485152['attributes'],'data':_0x485152['data']});const _0x3831b6=this['_getAttributeKey'](_0x485152);('formatBlock'==_0x485152['type']||_0x3831b6&&this['_suggestionsConversion']['isBlockAttribute'](_0x3831b6))&&(_0x50fa09=this['_model']['createPositionBefore'](_0x50fa09['parent'])),this['_addSuggestionMarker'](_0xa75770,_0x8c9fba,_0x5142e0,this['_model']['createRange'](_0x50fa09,_0x386839));}['_findSuggestions'](_0x1a85fa,_0x444c2e=null){const _0xda6742=[],_0x46903b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1a85fa)||(_0x1a85fa=[_0x1a85fa]);for(const _0x40fa02 of this['getSuggestions']()){if(!_0x40fa02['isInContent'])continue;if(_0x444c2e&&_0x40fa02['type']!=_0x444c2e)continue;let _0xf72008=!0x1;for(const _0x21e72f of _0x40fa02['getRanges']()){for(const _0x4f4b20 of _0x1a85fa){const _0x2e21f0=_0x4f4b20['start']['isEqual'](_0x21e72f['end'])||_0x4f4b20['end']['isEqual'](_0x21e72f['start']);if(_0x2e21f0||_0x4f4b20['getIntersection'](_0x21e72f)){const _0x28da9a=_0x4f4b20['containsRange'](_0x21e72f)&&qe(this['_model']['schema'],_0x21e72f['start'],_0x4f4b20),_0x534d1e=_0x21e72f['containsRange'](_0x4f4b20)&&qe(this['_model']['schema'],_0x4f4b20['start'],_0x21e72f);_0xda6742['push']({'suggestion':_0x40fa02,'meta':{'isOwn':_0x46903b==_0x40fa02['author'],'isNextTo':_0x2e21f0,'isInsideObject':_0x28da9a,'containsRangeInObject':_0x534d1e}}),_0xf72008=!0x0;break;}}if(_0xf72008)break;}}return _0xda6742;}['_addSuggestionMarker'](_0x306b2c,_0x4d8563,_0xb95ad0,_0x3f013d,_0x328ed7){this['_model']['change'](_0x202958=>{let _0xeab5a3='suggestion:'+_0x306b2c+':'+_0x4d8563+':'+_0xb95ad0;_0x328ed7&&(_0xeab5a3=_0xeab5a3+':'+_0x328ed7),_0x202958['addMarker'](_0xeab5a3,{'range':_0x3f013d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xf87e86){const _0x30b003=_0xf87e86['previous'],_0x594a05=_0xf87e86['next'];_0xf87e86['previous']=null,_0xf87e86['next']=null,null!=_0x30b003&&_0x30b003['next']==_0xf87e86&&(_0x30b003['next']=_0x594a05),null!=_0x594a05&&_0x594a05['previous']==_0xf87e86&&(_0x594a05['previous']=_0x30b003),'ready'==this['_suggestionState']['get'](_0xf87e86)&&(this['_suggestionState']['set'](_0xf87e86,'removed'),this['fire']('suggestionUnloaded',_0xf87e86,_0x30b003,_0x594a05));}['_setSuggestionData'](_0x5b35cb){const _0x551afb=_0x5b35cb['id'],_0x589521=this['addSuggestionData'](_0x5b35cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x292666=this['editor']['plugins']['get']('PendingActions'),_0x51faf0=_0x589521['hasComments'],_0x34efc1=_0x589521['subType']?_0x589521['type']+':'+_0x589521['subType']:_0x589521['type'],_0x33528f=this['editor']['locale'],_0x3756a3=_0x292666['add'](At(_0x33528f,'PENDING_ACTION_SUGGESTION')),_0x4825f5={'id':_0x551afb,'type':_0x34efc1,'hasComments':_0x51faf0,'data':_0x5b35cb['data']||null,'originalSuggestionId':_0x5b35cb['originalSuggestionId']||null,'attributes':_0x589521['attributes']};this['_adapter']['addSuggestion'](_0x4825f5)['then'](_0x569642=>{_0x589521['_saved']=!0x0,_0x292666['remove'](_0x3756a3),_0x569642&&_0x569642['createdAt']&&(this['_suggestions']['get'](_0x551afb)['createdAt']=_0x569642['createdAt']);})['catch'](_0x3d4d76=>{throw _0x4b0915('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x589521['discard']();}),_0x589521['stopListening'](),this['_suggestions']['delete'](_0x589521['id']),this['_suggestionState']['delete'](_0x589521),_0x3d4d76;});}return _0x589521;}['_updateSuggestionData'](_0x582aaa,_0x92983f){const _0x5e11a3=this['editor']['plugins']['get']('PendingActions'),_0x46766c=this['getSuggestion'](_0x582aaa);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x46766c['_saved']){const _0x173191=_0x5e11a3['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x582aaa,_0x92983f)['then'](()=>{_0x5e11a3['remove'](_0x173191);});}else _0x46766c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x582aaa,_0x92983f);});}}['_getSuggestionData'](_0x1af498){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x24c1f2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1af498);}['_handleNewSuggestionMarker'](_0x527b0c){const {id:_0xe37c7e,type:_0x1d4553,subType:_0x23c26f,authorId:_0x3f4e03}=_0x36ab20(_0x527b0c),_0x1d9ba9=this['_suggestions']['get'](_0xe37c7e)||this['_createSuggestion'](_0x1d4553,_0x23c26f,_0xe37c7e,_0x3f4e03,{});switch(this['_checkSuggestionCorrectness'](_0x1d9ba9,_0x1d4553,_0x23c26f,_0x3f4e03),this['_suggestionState']['get'](_0x1d9ba9)){case'notReady':this['_getSuggestionData'](_0xe37c7e)['then'](_0x37c049=>{let _0x24f310=Promise['resolve']();_0x37c049['hasComments']&&(_0x24f310=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe37c7e})),_0x24f310['then'](()=>{this['addSuggestionData'](_0x37c049)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d9ba9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe37c7e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d9ba9,'ready'),this['fire']('suggestionLoaded',_0x1d9ba9);break;case'ready':this['fire']('suggestionChanged',_0x1d9ba9);}return _0x1d9ba9['addMarkerName'](_0x527b0c),_0x1d9ba9;}['_refreshSuggestionsChain'](_0x3fabfb){const _0x27784d=Array['from'](_0x3fabfb),_0x156f02=_0x27784d['filter'](_0xff5b5e=>'attribute'==_0xff5b5e['type']);this['_refreshAttributeSuggestionsChain'](_0x156f02);const _0x34708f=_0x27784d['filter'](_0x390307=>!_0x390307['isMultiRange']&&'attribute'!=_0x390307['type']),_0x41c87d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x100315=>!_0x100315['isMultiRange']&&'attribute'!=_0x100315['type']),_0x4f3dd4=_0x41c87d['filter'](_0x5485e7=>!_0x3fabfb['has'](_0x5485e7)),_0x46f851=new Map(_0x41c87d['map'](_0x5a44e5=>[_0x5a44e5,this['_suggestionFactory']['getSuggestionCallback'](_0x5a44e5['type'],_0x5a44e5['subType'],'chain')])),_0x5b3fba=new Map(_0x41c87d['map'](_0x5ee893=>[_0x5ee893,_0x5ee893['getFirstRange']()])),_0x5894aa=new Set(),_0x5eca0e=new Set();for(let _0x3aade1=0x0;_0x3aade1<_0x34708f['length'];_0x3aade1++)_0x40a7c4(_0x34708f[_0x3aade1],_0x34708f,_0x3aade1+0x1);for(let _0x5af187=0x0;_0x5af187<_0x34708f['length'];_0x5af187++)_0x40a7c4(_0x34708f[_0x5af187],_0x4f3dd4,0x0);const _0x409680=new Set();for(let _0x94954f=0x0;_0x94954f<_0x34708f['length'];_0x94954f++){const _0x478004=_0x34708f[_0x94954f];!_0x5eca0e['has'](_0x478004)&&_0x478004['previous']&&(_0x409680['add'](_0x478004['previous']),_0x478004['previous']['next']===_0x478004&&(_0x478004['previous']['next']=null),_0x478004['previous']=null),!_0x5894aa['has'](_0x478004)&&_0x478004['next']&&(_0x409680['add'](_0x478004['next']),_0x478004['next']['previous']===_0x478004&&(_0x478004['next']['previous']=null),_0x478004['next']=null);}function _0x40a7c4(_0x7e8e74,_0x5e1139,_0x4b0e08){for(let _0x4941f9=_0x4b0e08;_0x4941f9<_0x5e1139['length'];_0x4941f9++){const _0x21fa28=_0x1c8df8(_0x7e8e74,_0x5e1139[_0x4941f9]);_0x21fa28&&(_0x21fa28[0x0]['next']=_0x21fa28[0x1],_0x21fa28[0x1]['previous']=_0x21fa28[0x0],_0x5894aa['add'](_0x21fa28[0x0]),_0x5eca0e['add'](_0x21fa28[0x1]));}}function _0x1c8df8(_0x1b40c7,_0x79f1a1){if(_0x1b40c7['author']['id']!==_0x79f1a1['author']['id'])return null;const _0x21d681=_0x46f851['get'](_0x1b40c7)(_0x1b40c7,_0x79f1a1,_0x5b3fba['get'](_0x1b40c7),_0x5b3fba['get'](_0x79f1a1));if(!_0x21d681)return null;return _0x46f851['get'](_0x79f1a1)(_0x1b40c7,_0x79f1a1,_0x5b3fba['get'](_0x1b40c7),_0x5b3fba['get'](_0x79f1a1))?_0x21d681[0x1]['commentThread']&&_0x21d681[0x1]['commentThread']['length']?null:_0x21d681:null;}_0x409680['size']&&this['_refreshSuggestionsChain'](_0x409680);}['_refreshAttributeSuggestionsChain'](_0x20acca){if(0x0==_0x20acca['length'])return;const _0x533e16=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29cf79=>'attribute'==_0x29cf79['type']&&_0x29cf79['_isDataLoaded']),_0x468ad6=[],_0x339f33=new Map();for(const _0xd2e7d6 of _0x533e16){const _0x4ad237=_0x57387b(_0xd2e7d6['attributes']);_0x339f33['has'](_0x4ad237)||(_0x339f33['set'](_0x4ad237,_0x468ad6['length']),_0x468ad6['push']([]));const _0x2f42e6=_0x339f33['get'](_0x4ad237);_0x468ad6[_0x2f42e6]['push'](_0xd2e7d6);}!(function(){_0x468ad6['sort']((_0x50af7f,_0x5efb3f)=>{const _0x206c65=_0x50af7f[0x0]['createdAt'],_0x42541c=_0x5efb3f[0x0]['createdAt'];return _0x206c65==_0x42541c?_0x50af7f[0x0]['attributes']['groupId']<_0x5efb3f[0x0]['attributes']['groupId']?-0x1:0x1:_0x206c65<_0x42541c?-0x1:0x1;});for(const _0x291633 of _0x468ad6)_0x291633['sort']((_0x410fdc,_0x259582)=>_0x410fdc['id']<_0x259582['id']?-0x1:0x1);}());for(let _0x573628=0x0;_0x573628<_0x468ad6['length'];_0x573628++){if(0x0==_0x468ad6[_0x573628]['length'])continue;const _0x2e012d=[];for(let _0x512a1d=_0x573628+0x1;_0x512a1d<_0x468ad6['length'];_0x512a1d++)0x0!=_0x468ad6[_0x512a1d]['length']&&_0xbabe3c(_0x468ad6[_0x573628],_0x468ad6[_0x512a1d])&&_0x2e012d['push'](_0x512a1d);for(const _0xc782dc of _0x2e012d)_0x468ad6[_0x573628]=_0x468ad6[_0x573628]['concat'](_0x468ad6[_0xc782dc]),_0x468ad6[_0xc782dc]=[];}for(const _0x55556e of _0x468ad6)for(let _0x4a37b8=0x0;_0x4a37b8<_0x55556e['length'];_0x4a37b8++){const _0x16e103=_0x55556e[_0x4a37b8+0x1]||null;_0x55556e[_0x4a37b8]['next']!==_0x16e103&&(_0x55556e[_0x4a37b8]['next']=_0x16e103);}for(const _0x4f40b3 of _0x468ad6)for(let _0x12680d=0x0;_0x12680d<_0x4f40b3['length'];_0x12680d++){const _0x3e8392=_0x4f40b3[_0x12680d-0x1]||null;_0x4f40b3[_0x12680d]['previous']!==_0x3e8392&&(_0x4f40b3[_0x12680d]['previous']=_0x3e8392);}function _0xbabe3c(_0x4b57fc,_0x245f85){if(_0x4b57fc[0x0]['attributes']['groupId']!==_0x245f85[0x0]['attributes']['groupId']&&_0x4b57fc[0x0]['author']!==_0x245f85[0x0]['author'])return!0x1;if(!function(_0x319d9e,_0x2d50a2){if(!_0x319d9e['hasComments']&&!_0x2d50a2['hasComments'])return!0x0;if(_0x319d9e['hasComments']&&_0x2d50a2['hasComments'])return!0x1;if(_0x319d9e['hasComments']&&_0x2d50a2['createdAt']<_0x319d9e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2d50a2['hasComments']&&_0x319d9e['createdAt']<_0x2d50a2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b57fc[0x0],_0x245f85[0x0]))return!0x1;const _0x58413c=ot(_0x4b57fc[0x0]['attributes'],['groupId','trackingSessionId']),_0x4c2cb0=ot(_0x245f85[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x58413c,_0x4c2cb0))return!0x1;if(_0x4b57fc[0x0]['attributes']['groupId']==_0x245f85[0x0]['attributes']['groupId'])return!0x0;if(_0x4b57fc[0x0]['attributes']['trackingSessionId']!==_0x245f85[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b57fc['every'](_0x405934=>_0x245f85['some'](_0x52e0ea=>_0x405934['getFirstRange']()['isEqual'](_0x52e0ea['getFirstRange']())))&&_0x245f85['every'](_0x46b856=>_0x4b57fc['some'](_0x2d97b3=>_0x46b856['getFirstRange']()['isEqual'](_0x2d97b3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x20d29f){const _0x744c02=Array['from'](_0x20d29f),_0x39faaf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11c966=_0x39faaf['filter'](_0x2cdaa4=>!_0x20d29f['has'](_0x2cdaa4)),_0x27b4db=new Map(_0x744c02['map'](_0x32581b=>[_0x32581b,this['_suggestionFactory']['getSuggestionCallback'](_0x32581b['type'],_0x32581b['subType'],'join')])),_0x29064e=new Map(_0x39faaf['map'](_0x41cdde=>[_0x41cdde,_0x41cdde['getRanges']()]));for(let _0x575c4c=0x0;_0x575c4c<_0x744c02['length'];_0x575c4c++){if(_0x80569d(this,_0x744c02[_0x575c4c],_0x744c02,_0x575c4c+0x1))return!0x0;}for(let _0x2063aa=0x0;_0x2063aa<_0x744c02['length'];_0x2063aa++){if(_0x80569d(this,_0x744c02[_0x2063aa],_0x11c966,0x0))return!0x0;}return!0x1;function _0x80569d(_0xf050f5,_0x5a6355,_0xee7c0d,_0xab1b75){for(let _0x482bb8=_0xab1b75;_0x482bb8<_0xee7c0d['length'];_0x482bb8++){const _0x3879ba=_0xee7c0d[_0x482bb8];if(_0x3879ba['type']!==_0x5a6355['type']||_0x3879ba['author']['id']!==_0x5a6355['author']['id']||_0x3879ba['subType']!==_0x5a6355['subType'])continue;if(!an(_0x5a6355,_0x3879ba))continue;if('attribute'==_0x5a6355['type']&&_0x5a6355['data']['oldValue']!=_0x3879ba['data']['oldValue'])continue;if('attribute'==_0x5a6355['type']&&_0xf050f5['_suggestionsConversion']['isBlockAttribute'](_0x5a6355['data']['key']))continue;if('formatBlock'==_0x5a6355['type']){const _0x22a670=_0xf050f5['editor']['model'],_0x4277e6=_0x5a6355['getContainedElement']();if(_0x4277e6&&(_0x22a670['schema']['isObject'](_0x4277e6)||_0x22a670['schema']['isLimit'](_0x4277e6)))continue;}const _0x3c889a=_0x27b4db['get'](_0x5a6355),_0x1b57e5=_0x29064e['get'](_0x5a6355),_0x211565=_0x29064e['get'](_0x3879ba),_0x4e82bd=_0x5a6355['commentThread']&&_0x5a6355['commentThread']['length'],_0x57ef78=_0x3879ba['commentThread']&&_0x3879ba['commentThread']['length'];if(!_0x4e82bd&&_0x3c889a(_0x211565,_0x1b57e5))return _0xf050f5['_joinSuggestions'](_0x3879ba,_0x5a6355),_0x29064e['delete'](_0x5a6355),!0x0;if(!_0x57ef78&&_0x3c889a(_0x1b57e5,_0x211565))return _0xf050f5['_joinSuggestions'](_0x5a6355,_0x3879ba),_0x29064e['delete'](_0x3879ba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x818e6f,_0x193d63){if(_0x818e6f['isMultiRange']){for(const _0x6247a8 of _0x193d63['getRanges']())_0x818e6f['addRange'](_0x6247a8);}else{const _0x29ef0b=_0x193d63['getFirstRange']()['end'];this['_setSuggestionRange'](_0x818e6f,this['_model']['createRange'](_0x818e6f['getFirstRange']()['start'],_0x29ef0b));}_0x193d63['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1424ff,_0x264ebd,_0x31477c){const _0x474115=_0x1424ff['startsWith']('format')||_0x1424ff['startsWith']('attribute')?'FORMATTING':_0x1424ff['toUpperCase']();return At(this['editor']['locale'],_0x264ebd+'_'+_0x474115+'_SUGGESTION_ANNOUNCEMENT',_0x31477c);}['_initAriaMarkerChangeAnnouncements'](){const _0xdbe8ef=this['editor'];if(!_0xdbe8ef['ui'])return;const {ariaLiveAnnouncer:_0xde4f88}=_0xdbe8ef['ui'];_0x58ebd3(this['_model'],({left:_0xb4fb74,entered:_0x2afb11})=>{for(const _0x36a2d9 of _0xb4fb74){const {group:_0x19c7c5,type:_0x3dd1d3}=_0x36ab20(_0x36a2d9['name']);if('suggestion'===_0x19c7c5){_0xde4f88['announce'](this['_getMarkerAnnouncementText'](_0x3dd1d3,'LEAVE'));break;}}for(const _0x2e2201 of _0x2afb11){const {group:_0x3b595e,type:_0x2d9075}=_0x36ab20(_0x2e2201['name']);if('suggestion'===_0x3b595e){_0xde4f88['announce'](this['_getMarkerAnnouncementText'](_0x2d9075,'ENTER',_0x3c958f(_0x2443ba)));break;}}});}['_processAttributeChanges'](_0xbdc4a2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5680d9=this['editor'],_0x4c5595=_0x5680d9['model']['document']['differ']['getChanges']();if(0x0==_0x4c5595['length'])return!0x1;const _0x4a913c=[],_0x2ca880=_0x4c5595['filter'](_0x40e20c=>'attribute'==_0x40e20c['type']),_0x785939=_0x4c5595['filter'](_0x25fc65=>'insert'==_0x25fc65['type']&&'$text'!=_0x25fc65['name']),_0x3f47cd=_0x4c5595['filter'](_0x31434b=>'remove'==_0x31434b['type']&&'$text'!=_0x31434b['name']);for(const _0x3c8f42 of _0x2ca880)_0x4a913c['push']({'key':_0x3c8f42['attributeKey'],'newValue':_0x3c8f42['attributeNewValue'],'oldValue':_0x3c8f42['attributeOldValue'],'range':sn(_0x3c8f42['range'],_0x5680d9['model'])});for(const _0x2119a7 of _0x785939){const _0x22cff2=_0x3f47cd['find'](_0x8aee44=>_0x8aee44['position']['isEqual'](_0x2119a7['position']));_0x22cff2&&_0x4a913c['push']({'key':Ke,'newValue':_0x2119a7['name'],'oldValue':_0x22cff2['name'],'range':_0x5680d9['model']['createRangeOn'](_0x2119a7['position']['nodeAfter'])});}return 0x0!=_0x4a913c['length']&&this['_reduceExistingSuggestions'](_0xbdc4a2,_0x4a913c);}['_processAttributeSuggestions'](_0x2f08e8){let _0xb7fd42=!0x1;const _0x152024=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4451ac=>_0x4451ac['data']['newRange']&&_0x4451ac['name']['startsWith']('suggestion:attribute:'));for(const _0x1421d2 of _0x152024){const {subType:_0x4652ed,id:_0x489efc}=_0x36ab20(_0x1421d2['name']),_0x5a76e5=_0x4652ed['split']('|')[0x0];for(const _0x3e9903 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e9903['id']!=_0x489efc&&'attribute'==_0x3e9903['type']&&_0x3e9903['data']&&_0x3e9903['data']['key']==_0x5a76e5&&_0x3e9903['getFirstRange']()['isIntersecting'](_0x1421d2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e9903,_0x1421d2['data']['newRange'],_0x2f08e8),_0xb7fd42=!0x0);}return _0xb7fd42;}['recordAttributeChanges'](_0x28ebb1){this['_recordAttributeSuggestions']=!0x0,_0x28ebb1();}['_reduceExistingSuggestions'](_0x2f5487,_0x17b948){if(0x0==_0x17b948['length'])return!0x1;let _0x19e67a=!0x1;for(const _0x18a3aa of _0x17b948){const _0x583f5b=this['_findSuggestions'](_0x18a3aa['range'],'attribute')['filter'](_0x5e06f6=>!_0x5e06f6['meta']['isNextTo'])['map'](_0x59f9a6=>_0x59f9a6['suggestion']),_0x1a21da=_0x57387b({'newValue':_0x18a3aa['newValue']});_0x583f5b['filter'](_0x31fdba=>{const [_0x2e397d,_0x1d1774]=_0x31fdba['subType']['split']('|');return _0x2e397d==_0x18a3aa['key']&&_0x1d1774!=_0x1a21da;})['forEach'](_0x2a68c2=>{this['_reduceSuggestionAttributeRange'](_0x2a68c2,_0x18a3aa['range'],_0x2f5487),_0x19e67a=!0x0;});}return _0x19e67a;}['_reduceSuggestionAttributeRange'](_0x43c829,_0x2004e9,_0x9ceb40){const _0x13b043=_0x43c829['getFirstRange']()['getDifference'](_0x2004e9);0x0!==_0x13b043['length']?0x1!==_0x13b043['length']?this['_breakSuggestionMarker'](_0x43c829,_0x2004e9['start'],_0x2004e9['end']):this['_setSuggestionRange'](_0x43c829,_0x13b043[0x0]):_0x9ceb40['removeMarker'](_0x43c829['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5d075b){this['_editor']=_0x5d075b,this['_model']=_0x5d075b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26f792,_0x39dcc8,_0x5c39b9,_0x39e673,_0x50c9c6,_0x64c221,_0x502565){return new bt(this['_model'],{'type':_0x26f792,'subType':_0x39dcc8,'id':_0x5c39b9,'originalSuggestionId':_0x502565,'author':_0x39e673,'creator':_0x39e673,'attributes':_0x50c9c6,'onAttributesChange':_0x64c221,'onAccept':(..._0x763bb3)=>this['getSuggestionCallback'](_0x26f792,_0x39dcc8,'accept')(..._0x763bb3),'onDiscard':(..._0x5a945f)=>this['getSuggestionCallback'](_0x26f792,_0x39dcc8,'discard')(..._0x5a945f)});}['registerCustomCallback'](_0x277044,_0x2d71d8,_0x1e590a,_0x57b78c){const _0xaf9c69=_0x277044+':'+_0x2d71d8+':'+_0x1e590a;this['_customCallbacks']['set'](_0xaf9c69,_0x57b78c);}['getSuggestionCallback'](_0xa9c489,_0x2b77af,_0x2d37bc){const _0x2f2fd8=_0xa9c489+':'+_0x2b77af+':'+_0x2d37bc;return this['_customCallbacks']['get'](_0x2f2fd8)||this['_defaultCallbacks']['get'](_0xa9c489+':'+_0x2d37bc);}['_registerDefaultCallbacks'](){const _0x621350=()=>!0x1,_0x1785cd=_0x2dd54d=>{_0x2dd54d['sort']((_0x386e10,_0x3aeeee)=>_0x386e10['start']['isBefore'](_0x3aeeee['start'])?0x1:-0x1),this['_model']['change'](_0x2cab67=>{for(const _0x2730fa of _0x2dd54d){let _0x28613b;_0x28613b=_0x2730fa['end']['isAtEnd']&&_0x2730fa['end']['parent']==_0x2730fa['start']['nodeAfter']?_0x2cab67['createSelection'](_0x2730fa['start']['nodeAfter'],'on'):_0x2cab67['createSelection'](_0x2730fa),this['_model']['deleteContent'](_0x28613b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x296108=(_0x22fd3c,_0x2099f6)=>{_0x2099f6&&this['_model']['change'](_0x6d38ff=>{const {commandName:_0x1e2c32,commandParams:_0x299063=[]}=_0x2099f6,_0x4acbbe=_0x22fd3c['map'](_0x2cffa9=>(Qe(_0x2cffa9)&&(_0x2cffa9=this['_model']['createRange'](_0x2cffa9['end'])),_0x2cffa9))['filter'](_0x45282a=>'$graveyard'!==_0x45282a['root']['rootName']);if(_0x4acbbe['length']<0x1)return;const _0x1dfe63=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x505b1d=>_0x704ba['fromRange'](_0x505b1d));_0x6d38ff['setSelection'](_0x4acbbe);for(const _0x148f5c of this['_editor']['commands']['commands']())_0x148f5c['refresh']();_0x299063['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e2c32,..._0x299063);const _0x4b5af1=_0x1dfe63['filter'](_0xfbbd5=>'$graveyard'!=_0xfbbd5['root']['rootName']);_0x4b5af1['length']>0x0&&_0x6d38ff['setSelection'](_0x4b5af1);for(const _0x14bfc6 of _0x1dfe63)_0x14bfc6['detach']();});},_0x137c24=(_0x21e18b,_0x3b6e79)=>0x1==_0x21e18b['length']&&0x1==_0x3b6e79['length']&&_0x21e18b[0x0]['end']['isEqual'](_0x3b6e79[0x0]['start']),_0x4241eb=(_0xd387e0,_0x323b9a,_0x2b49d4,_0x3374d5)=>on(_0xd387e0,_0x323b9a,_0x2b49d4,_0x3374d5)?[_0xd387e0,_0x323b9a]:on(_0x323b9a,_0xd387e0,_0x3374d5,_0x2b49d4)?[_0x323b9a,_0xd387e0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x621350),this['_defaultCallbacks']['set']('insertion:discard',_0x1785cd),this['_defaultCallbacks']['set']('insertion:join',_0x137c24),this['_defaultCallbacks']['set']('insertion:chain',_0x4241eb),this['_defaultCallbacks']['set']('deletion:accept',_0x1785cd),this['_defaultCallbacks']['set']('deletion:discard',_0x621350),this['_defaultCallbacks']['set']('deletion:join',_0x137c24),this['_defaultCallbacks']['set']('deletion:chain',_0x4241eb),this['_defaultCallbacks']['set']('formatInline:accept',_0x296108),this['_defaultCallbacks']['set']('formatInline:discard',_0x621350),this['_defaultCallbacks']['set']('formatInline:join',_0x137c24),this['_defaultCallbacks']['set']('formatInline:chain',_0x621350),this['_defaultCallbacks']['set']('formatBlock:accept',_0x296108),this['_defaultCallbacks']['set']('formatBlock:discard',_0x621350),this['_defaultCallbacks']['set']('formatBlock:join',_0x137c24),this['_defaultCallbacks']['set']('formatBlock:chain',_0x621350),this['_defaultCallbacks']['set']('attribute:accept',_0x621350),this['_defaultCallbacks']['set']('attribute:discard',(_0x1be07c,_0x36b9cd)=>{if(!_0x36b9cd)return;const _0x35a6b6=this['_editor']['plugins']['get'](_0xaf0ffc);this['_model']['change'](_0x1f0753=>{if(_0x36b9cd['key']==Ke)for(const _0x246e3a of _0x1be07c){const _0x13e2a6=_0x246e3a['start']['nodeAfter'],_0x1b874a=_0x36b9cd['oldValue'];_0x1f0753['rename'](_0x13e2a6,_0x1b874a);}else{if(_0x35a6b6['isBlockAttribute'](_0x36b9cd['key'])){for(const _0x56f883 of _0x1be07c)void 0x0!==_0x36b9cd['oldValue']?_0x1f0753['setAttribute'](_0x36b9cd['key'],_0x36b9cd['oldValue'],_0x56f883['start']['nodeAfter']):_0x1f0753['removeAttribute'](_0x36b9cd['key'],_0x56f883['start']['nodeAfter']);}else{for(const _0x500494 of _0x1be07c)_0x36b9cd['oldValue']?_0x1f0753['setAttribute'](_0x36b9cd['key'],_0x36b9cd['oldValue'],_0x500494):_0x1f0753['removeAttribute'](_0x36b9cd['key'],_0x500494);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x137c24);}}function qe(_0x1cf238,_0x411eac,_0x45bd74){for(const _0x5bf9f7 of _0x411eac['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5bf9f7['root']==_0x5bf9f7)return!0x1;if(!_0x45bd74['containsItem'](_0x5bf9f7))return!0x1;if(_0x1cf238['isObject'](_0x5bf9f7)||_0x1cf238['isLimit'](_0x5bf9f7))return!0x0;}return!0x1;}function Qe(_0x4ef291){return _0x4ef291['end']['parent']==_0x4ef291['start']['nodeAfter']&&_0x4ef291['end']['isAtStart'];}function Ze(_0x40e077,_0x21a341,_0x6bda78,_0x9e82ef){const _0x43c44c=_0x2cd050=>!_0x2cd050['item']['is']('$textProxy')&&!_0x9e82ef['isObject'](_0x2cd050['item']),_0x978df7=_0x40e077['start']['getLastMatchingPosition'](_0x43c44c),_0x9dbbdf=_0x40e077['end']['getLastMatchingPosition'](_0x43c44c,{'direction':'backward'});return(!_0x40e077['start']['isEqual'](_0x978df7)||!_0x40e077['end']['isEqual'](_0x9dbbdf))&&(_0x978df7['isBefore'](_0x9dbbdf)?_0x6bda78['updateMarker'](_0x21a341,{'range':_0x6bda78['createRange'](_0x978df7,_0x9dbbdf)}):_0x6bda78['removeMarker'](_0x21a341),!0x0);}function Je(_0xcb0d75){return _0x57387b(_0xcb0d75);}function tn(_0x2b97e7){const _0x50a157=_0x2b97e7['start']['nodeAfter'];return _0x50a157&&_0x50a157['is']('element');}function en(_0x24f483){return Qe(_0x24f483)||function(_0x304c0d){return _0x304c0d['start']['parent']==_0x304c0d['end']['nodeBefore']&&_0x304c0d['start']['isAtEnd'];}(_0x24f483);}function nn(_0xe14221,_0x459cb6){try{const _0x3d6c1d=_0xe14221['getRange']();for(const _0x941f0f of _0x459cb6)if(_0xe14221!==_0x941f0f&&_0x3d6c1d&&_0x3d6c1d['isIntersecting'](_0x941f0f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x40d806,_0x282a6d){return null==_0x40d806['end']['nodeBefore']&&_0x40d806['end']['parent']==_0x40d806['start']['nodeAfter']?rn(_0x40d806['start']['nodeAfter'],_0x282a6d):_0x40d806;}function rn(_0x1accc9,_0x3ed7a7){const _0x19680e=_0x3ed7a7['schema']['isObject'](_0x1accc9)||_0x3ed7a7['schema']['isSelectable'](_0x1accc9);return _0x3ed7a7['createRange'](_0x3ed7a7['createPositionAt'](_0x1accc9,'before'),_0x19680e?_0x3ed7a7['createPositionAfter'](_0x1accc9):_0x3ed7a7['createPositionAt'](_0x1accc9,'end'));}function on(_0x15fff7,_0x23df28,_0x361851,_0x2b17cb){return!!an(_0x15fff7,_0x23df28)&&_0x361851['end']['isEqual'](_0x2b17cb['start']);}function an(_0x519689,_0xd5361a){if(!_0x519689['_isDataLoaded']||!_0xd5361a['_isDataLoaded'])return!0x1;const _0x534f0e=new Set(Object['keys'](_0x519689['attributes'])),_0x1af193=new Set(Object['keys'](_0xd5361a['attributes']));if(_0x534f0e['delete']('groupId'),_0x1af193['delete']('groupId'),0x0==_0x534f0e['size']&&0x0==_0x1af193['size'])return!0x0;if(_0x534f0e['size']!=_0x1af193['size'])return!0x1;const _0x470049={..._0x519689['attributes']},_0x3d99d9={..._0xd5361a['attributes']};return delete _0x470049['groupId'],delete _0x3d99d9['groupId'],JSON['stringify'](_0x470049)==JSON['stringify'](_0x3d99d9);}function cn(_0x131849,_0x4428e9){const _0x9d7756=ln(_0x131849['attributes']),_0x123e56=ln(_0x4428e9);if(!_0x131849['_isDataLoaded'])return!0x1;for(const _0x5c00ff of Object['keys'](_0x123e56))if(!st(_0x9d7756[_0x5c00ff],_0x123e56[_0x5c00ff]))return!0x1;return!0x0;}function ln(_0x2d635a){const _0x594365=Object['assign']({},_0x2d635a);return delete _0x594365['skipNestingCheck'],delete _0x594365['tablePasteChainId'],_0x594365;}function un(_0x1f7cb5){return _0x1f7cb5['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x5cd431(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x52e964,_0x360569,_0x26b4f6,_0x163cd4){super(),this['model']=_0x360569,this['view']=_0x26b4f6,this['commentThreadController']=_0x163cd4,this['_editor']=_0x52e964,this['_acceptCommand']=_0x52e964['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x52e964['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d2fce,_0x430247)=>_0x1d2fce||_0x430247),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9d72b0=>_0x9d72b0&&this['_editor']['model']['canEditAt'](_0x360569['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3b65bd=>_0x3b65bd&&this['_editor']['model']['canEditAt'](_0x360569['getRanges']())),this['_pendingAction']=null,_0x26b4f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x26b4f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x26b4f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x26b4f6,'change:isDirty',()=>{_0x26b4f6['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 _0x1bfabd=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1bfabd);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x67f2c3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c97c1,_0x58f6e1,_0x31e53a,_0x3df4f8){super(_0x4c97c1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x18cb74(_0x4c97c1,At(_0x4c97c1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x58f6e1['authoredAt']),this['bind']('authoredAt')['to'](_0x58f6e1),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',_0x58f6e1,'authoredAt',this,'descriptionParts',(_0x196a2c,_0x540d0,_0x3f3aa9)=>{const _0x4fe40e=_0x3f3aa9['map'](_0x4ed1ed=>gt(_0x4ed1ed['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x196a2c-0x1,_0x58f6e1['author']['name'],_0x540d0?_0x3df4f8['formatDateTime'](_0x540d0):'',new DOMParser()['parseFromString'](_0x4fe40e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x374709(),this['focusTracker']=new _0x517caf(),this['keystrokes']=new _0x542a7e(),this['focusCycler']=new _0xcbde57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x9a327a=>_0x9a327a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x58f6e1,this['_localUser']=_0x31e53a,this['_config']=_0x3df4f8,_0x3df4f8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x394c73(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c206c}=this['_config'];this['commentsListView']=new _0x2c206c(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',_0x23a668=>_0x23a668+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a2a04,_0x4c829f)=>_0x3a2a04||!!_0x4c829f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4a5dad}=this['_config'],_0x4e5af3=new _0x4a5dad(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3fccad=_0x4e5af3['commentInputView'];return _0x4e5af3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3fccad,'value',(_0x58d467,_0x298cb4,_0x54c30d)=>!!_0x54c30d||_0x58d467&&!_0x298cb4),_0x3fccad['on']('submit',(_0x1a09ab,_0x27411f)=>{this['fire']('addComment',_0x27411f),_0x3fccad['editor']['setData']('');}),_0x3fccad['on']('cancel',()=>this['focus']()),_0x3fccad['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e5af3;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x424397,_0x299c3f,_0x18da5a,_0x5ace15){super(_0x424397,_0x299c3f,_0x18da5a,_0x5ace15),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12968e=>_0x12968e&&_0x12968e[0x0]?_0x12968e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x241c23,_0x1c1b84)=>{let _0x14a9c9='';for(const _0x5bb406 of _0x241c23)_0x14a9c9+='<p>'+gt(_0x5bb406['content'],_0x5bb406['color'])+'</p>';return _0x1c1b84?_0x14a9c9:_0x14e6fe(_0x14a9c9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5ace15['SuggestionView'](_0x424397,_0x299c3f,{'formatDateTime':_0x5ace15['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 _0x4bbce3=this['bindTemplate'],_0x27f106=[this['suggestionView']];return this['commentsListView']&&_0x27f106['push'](this['commentsListView']),this['commentThreadInputView']&&_0x27f106['push'](this['commentThreadInputView']),_0x27f106['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bbce3['if']('isActive','ck-suggestion-wrapper--active'),_0x4bbce3['to']('type',_0x24f93b=>'ck-suggestion-'+_0x24f93b),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':_0x4bbce3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x27f106};}['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 _0x67f2c3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2973f7,_0x4cd630,_0x15f9c1){super(_0x2973f7),this['_model']=_0x4cd630,this['_config']=_0x15f9c1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4cd630),this['acceptButton']=this['_createButton'](At(_0x2973f7,'Accept\x20suggestion'),_0x2015c1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x2973f7,'Discard\x20suggestion'),_0x21fe15,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5cfa99(_0x2973f7,_0x4cd630['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x374709([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x517caf(),this['keystrokes']=new _0x542a7e(),this['focusCycler']=new _0xcbde57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d18b1=>_0x5d18b1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x367a60=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x367a60['innerHTML']=this['description'],this['on']('change:description',(_0x5bcb04,_0x61a7d3,_0xcd4e43)=>{_0x367a60['innerHTML']=_0xcd4e43;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46dbfd=this['bindTemplate'],_0x160224=[{'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':_0x46dbfd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46dbfd['to']('authoredAt',_0x4e888a=>this['_config']['formatDateTime'](_0x4e888a))}]}]},{'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']&&_0x160224['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':_0x160224}]};}['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'](_0x1192dd,_0x166f81,_0x3d1323,_0xeeca47,_0x5ef411){const _0x2dfe7d=new _0x50358d(this['locale']);return _0x2dfe7d['set']({'label':_0x1192dd,'icon':_0x166f81,'tooltip':!0x0,'tooltipPosition':_0x5ef411}),_0x2dfe7d['extendTemplate']({'attributes':{'class':_0x3d1323}}),_0x2dfe7d['on']('execute',()=>{this['fire'](_0xeeca47,this['_model']['id']);}),_0x2dfe7d;}['_setupKeyboardNavigation'](){const _0x20bb0f=this['element'];this['keystrokes']['listenTo'](_0x20bb0f);for(const _0x7da1c3 of this['focusables'])this['focusTracker']['add'](_0x7da1c3['element']),this['keystrokes']['listenTo'](_0x7da1c3['element']);this['keystrokes']['set']('enter',(_0x2d3173,_0x18e0f0)=>{_0x20bb0f===_0x2d3173['target']&&(this['focusCycler']['focusFirst'](),_0x18e0f0());}),this['keystrokes']['set']('esc',(_0x49654b,_0x28cf9d)=>{_0x20bb0f!==_0x49654b['target']&&(this['focus'](),_0x28cf9d());});}}class mn extends _0x486e9c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0xb8ed5b,_0x267a96,_0x11e1e7,_0x2ed405];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x574844){super(_0x574844),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4c870e=this['editor']['config'];_0x4c870e['define']('trackChanges.SuggestionThreadView',fn),_0x4c870e['define']('trackChanges.SuggestionView',gn),_0x4c870e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4c870e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x282ba5,_0x1ef23a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x13ac57,_0x5a3078]of this['_handleControllerBuffer']){const _0x44d80f=this['_suggestionToController']['has'](_0x13ac57);_0x44d80f||_0x5a3078?_0x44d80f&&_0x5a3078&&this['_destroyController'](_0x13ac57):this['_initializeController'](_0x13ac57);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2ed405)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x282ba5,_0x1ef23a);}['init'](){const _0x2b41a6=this['editor'],_0x57ac69=_0x2b41a6['plugins']['get'](Xe),_0x6b82e7=_0x2b41a6['plugins']['get'](_0x11e1e7),_0x1e5f2d=_0x2b41a6['plugins']['get'](_0x2ed405),_0x24416f=_0x2b41a6['plugins']['get'](_0x267a96);this['_addUIComponentsToFactory'](),_0x1e5f2d['addSourceCollector'](()=>{const _0x51ab78=[];for(const [_0x256713,_0x112204]of Array['from'](this['_suggestionToController'])){const _0x43fb4e=_0x256713['getAllAdjacentSuggestions'](),_0x378b4c=[];for(const _0x547736 of _0x43fb4e){if(!_0x547736['isInContent'])continue;if(_0x547736['isMultiRange']){_0x378b4c['push'](..._0x547736['getRanges']());continue;}const _0x322d68=_0x547736['getFirstRange']();if(_0x378b4c['length']>0x0){const _0x32b045=_0x378b4c[0x0]['getJoined'](_0x322d68);if(_0x32b045){_0x378b4c[0x0]=_0x32b045;continue;}}_0x378b4c['push'](_0x322d68);}_0x51ab78['push']([_0x112204['view'],_0x378b4c]);}return _0x51ab78;}),this['listenTo'](_0x57ac69,'suggestionLoaded',(_0x5e18a4,_0x36fbe2)=>{this['listenTo'](_0x36fbe2,'change:previous',(_0x246d5,_0x25ddc1,_0x31e3fd,_0x517dbb)=>{_0x36fbe2['isInContent']&&(null==_0x31e3fd?(this['_updateController'](_0x517dbb['head']),this['_handleSuggestionControllerDelayed'](_0x36fbe2,!0x1)):(this['_updateController'](_0x31e3fd['head']),null==_0x517dbb&&this['_handleSuggestionControllerDelayed'](_0x36fbe2,!0x0)));}),null!==_0x36fbe2['previous']?this['_updateController'](_0x36fbe2['head']):this['_handleSuggestionControllerDelayed'](_0x36fbe2,!0x1);}),this['listenTo'](_0x57ac69,'suggestionUnloaded',(_0x35b52b,_0x27e151,_0x9a0bf8)=>{this['stopListening'](_0x27e151,'change:previous'),this['_handleControllerBuffer']['delete'](_0x27e151),this['_suggestionToController']['has'](_0x27e151)&&this['_destroyController'](_0x27e151),_0x9a0bf8&&this['_updateController'](_0x9a0bf8['head']);}),this['listenTo'](_0x57ac69,'suggestionChanged',(_0x27d976,_0x15cece)=>{this['_updateController'](_0x15cece);}),this['listenTo'](_0x6b82e7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x24416f,'addComment',(_0x38f941,{threadId:_0x53a22d,isFromAdapter:_0x394972})=>{if(_0x394972||!_0x57ac69['hasSuggestion'](_0x53a22d))return;const _0x3919e2=_0x57ac69['getSuggestion'](_0x53a22d);this['_suggestionToController']['get'](_0x3919e2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc9ee99=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e8c62;for(const _0x5a9d07 in _0xc9ee99){const _0x29f96a=_0x5a9d07,_0x46f91e=_0xc9ee99[_0x29f96a];if('trackChangesLicenseKeyValid'==_0x46f91e||'trackChangesLicenseKeyInvalid'==_0x46f91e||'trackChangesLicenseKeyExpired'==_0x46f91e||'trackChangesLicenseKeyDomainLimit'==_0x46f91e||'trackChangesLicenseKeyNotAllowed'==_0x46f91e||'trackChangesLicenseKeyEvaluationLimit'==_0x46f91e||'trackChangesLicenseKeyUsageLimit'==_0x46f91e){delete _0xc9ee99[_0x29f96a],_0x1e8c62=_0x46f91e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x144c77){const _0x43a208=this['_suggestionToController']['get'](_0x144c77);if(!_0x43a208)return null;return this['editor']['plugins']['get'](_0x11e1e7)['getByInnerView'](_0x43a208['view'])||null;}['getSuggestionForAnnotation'](_0x474087){const _0x3b2e26=this['_viewToController']['get'](_0x474087['innerView']);return _0x3b2e26?_0x3b2e26['model']:null;}['_refreshActiveMarkers'](){const _0x2b4bde=this['editor']['plugins']['get'](_0x11e1e7),_0x19a62d=this['editor']['plugins']['get'](Xe),_0xccd0c0=Array['from'](_0x2b4bde['activeAnnotations'],_0x770e40=>_0x770e40['innerView'])['filter'](_0x3fcfbd=>this['_viewToController']['has'](_0x3fcfbd)),_0x519a22=[];for(const _0x34e314 of _0xccd0c0){const _0x5da08a=this['_viewToController']['get'](_0x34e314)['model']['getAllAdjacentSuggestions']();_0x519a22['push'](..._0x5da08a['reduce']((_0x50f8ab,_0x5f19a5)=>[..._0x50f8ab,..._0x5f19a5['getMarkerNames']()],[]));}_0x19a62d['activeMarkers']=_0x519a22;}['_addUIComponentsToFactory'](){const _0x149cd2=this['editor'],_0x18f323=_0x149cd2['locale'],_0x4cce23=At(_0x18f323,'Track\x20changes'),_0x4d9d90=new _0xff8d07([{'type':'switchbutton','model':new _0x31a026({'withText':!0x0,'isToggleable':!0x0,'label':_0x4cce23,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x149cd2['plugins']['has']('TrackChangesPreview')&&_0x4d9d90['addMany']([{'type':'separator'},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3a1ee1 of _0x4d9d90)if(En(_0x3a1ee1)){const _0x57f234=_0x149cd2['commands']['get'](_0x3a1ee1['model']['commandName']);_0x3a1ee1['model']['bind']('isOn','isEnabled')['to'](_0x57f234,'value','isEnabled');}_0x149cd2['ui']['componentFactory']['add']('trackChanges',_0x50849e=>this['_createToolbarButton'](_0x50849e,_0x4d9d90,_0x4cce23)),_0x149cd2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x221da7=>this['_createMenuBarMenu'](_0x221da7,_0x4d9d90,_0x4cce23));}['_createToolbarButton'](_0x4ef0a9,_0x28b3ff,_0x5dc8c1){const _0x3abeda=_0x1ad775(_0x4ef0a9,_0x3f13ac),_0x5e4d81=this['editor']['commands']['get']('trackChanges');_0x3abeda['buttonView']['set']({'tooltip':_0x5dc8c1,'label':_0x5dc8c1,'icon':_0x2f4582}),_0x3abeda['buttonView']['bind']('isOn')['to'](_0x5e4d81,'value'),_0x3abeda['buttonView']['on']('execute',()=>{_0x5e4d81['execute'](),this['editor']['editing']['view']['focus']();}),_0xb65e76(_0x3abeda,_0x28b3ff,{'role':'menu'});const _0x223114=[];for(const _0xcaaeef of _0x28b3ff)En(_0xcaaeef)&&_0x223114['push'](this['editor']['commands']['get'](_0xcaaeef['model']['commandName']));const _0x461e6f=_0x3abeda['buttonView'];return _0x461e6f['actionView']['unbind']('isEnabled'),_0x461e6f['arrowView']['unbind']('isEnabled'),_0x461e6f['actionView']['bind']('isEnabled')['to'](_0x5e4d81,'isEnabled'),_0x461e6f['arrowView']['bind']('isEnabled')['toMany'](_0x223114,'isEnabled',(..._0x1b62e3)=>_0x1b62e3['some'](_0x3038cd=>_0x3038cd)),_0x3abeda['on']('execute',_0x19ef5e=>{this['editor']['execute'](_0x19ef5e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3abeda;}['_createMenuBarMenu'](_0x3e7013,_0x50343d,_0x23e2f3){const _0x848dd6=new _0x1a83e1(_0x3e7013),_0xd6e889=this['editor']['commands']['get']('trackChanges');_0x848dd6['buttonView']['set']({'label':_0x23e2f3,'icon':_0x2f4582});const _0xc3883b=new _0x3603ca(_0x3e7013);for(const _0x59a868 of _0x50343d){if('separator'==_0x59a868['type']){_0xc3883b['items']['add'](new _0x170c89(_0x3e7013));continue;}const _0x581fe7=new _0x387716(_0x3e7013,_0x848dd6),_0x136ba8=new _0x32325b(_0x3e7013),_0x11a958=_0x59a868['model'];_0x136ba8['bind'](...Object['keys'](_0x11a958))['to'](_0x11a958),_0x136ba8['delegate']('execute')['to'](_0x848dd6),_0x136ba8['on']('execute',()=>{this['editor']['execute'](_0x11a958['commandName']),this['editor']['editing']['view']['focus']();}),_0x581fe7['children']['add'](_0x136ba8),_0xc3883b['items']['add'](_0x581fe7);}return _0x848dd6['bind']('isEnabled')['to'](_0xd6e889,'isEnabled'),_0x848dd6['panelView']['children']['add'](_0xc3883b),_0x848dd6;}['_initializeController'](_0x4e1038){const _0x3a93c7=this['editor'],_0x4f2905=_0x3a93c7['config'],_0x2e9065=_0x3a93c7['plugins']['get'](_0x11e1e7),_0x19cfa3=_0x3a93c7['plugins']['get'](_0x267a96),_0x373edc=_0x3a93c7['plugins']['get'](_0x2ed405),_0x435178=_0x3a93c7['plugins']['get'](_0xb8ed5b)['me'],_0x3e4174=_0x4f2905['get']('trackChanges')['SuggestionThreadView'],_0x509cac=_0x4f2905['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1010d2,CommentThreadInputView:_0x5c3086}=_0x3a93c7['plugins']['get']('CommentsUI');let _0x1f7375,_0x3cc402,_0x5bbb87;this['_annotationViews']['has'](_0x4e1038['id'])?(_0x3cc402=this['_annotationViews']['get'](_0x4e1038['id']),_0x1f7375=_0x3cc402['mainView']):(_0x1f7375=new _0x3e4174(_0x3a93c7['locale'],_0x4e1038,_0x435178,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4f2905['get']('comments.editorConfig'),'licenseKey':_0x4f2905['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4f2905['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4f2905['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4f2905['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x414d9b(_0x4f2905['get']('locale'),_0x3a93c7['locale']),'CommentView':_0x4f2905['get']('comments')['CommentView'],'CommentsListView':_0x1010d2,'CommentThreadInputView':_0x5c3086,'SuggestionView':_0x509cac}),_0x1f7375['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a93c7['editing']['view']['focus']();}),_0x1f7375['suggestionView']['discardButton']['on']('execute',()=>{_0x3a93c7['editing']['view']['focus']();}),_0x3cc402=_0x2e9065['createAnnotationView'](this['editor']['locale'],_0x1f7375),_0x3cc402['bind']('isDirty')['to'](_0x1f7375,'isDirty'),_0x3cc402['bind']('length')['to'](_0x1f7375),_0x3cc402['bind']('type')['to'](_0x1f7375,'type',_0x38b9dd=>'suggestion-'+_0x38b9dd),_0x1f7375['on']('escape',()=>{_0x5bbb87['fire']('escape');}),this['_annotationViews']['set'](_0x4e1038['id'],_0x3cc402));const _0x39e00c=_0x19cfa3['createCommentThreadController'](_0x4e1038['commentThread'],_0x1f7375),_0x53d7b6=new hn(_0x3a93c7,_0x4e1038,_0x1f7375,_0x39e00c),_0x55e487=_0x4e1038['getAllAdjacentSuggestions']()['filter'](_0x48476c=>_0x48476c['isInContent']);_0x1f7375['descriptionParts']=_0x3a93c7['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x55e487),this['_suggestionToController']['set'](_0x4e1038,_0x53d7b6),this['_viewToController']['set'](_0x1f7375,_0x53d7b6);const _0x4a24a2=()=>{const _0x55908b=[],_0x47c4d3=_0x4e1038['getAllAdjacentSuggestions']()['filter'](_0x1e286d=>_0x1e286d['isInContent']);for(const _0x6f918b of _0x47c4d3)_0x55908b['push'](..._0x6f918b['getMarkers']());return _0x48e79d(_0x3a93c7['editing'],_0x55908b);};_0x5bbb87=_0x2e9065['createAnnotation']({'view':_0x3cc402,'target':_0x4a24a2,'type':()=>'suggestion-'+_0x53d7b6['view']['type'],'isVisible':!!_0x4a24a2()}),_0x19cfa3['_bindAnnotationToEditors'](_0x1f7375,_0x5bbb87),_0x2e9065['add'](_0x5bbb87),_0x373edc['registerAnnotation'](_0x5bbb87);}['_destroyController'](_0x2635e6){const _0x5dc631=this['editor']['plugins']['get'](_0x267a96),_0xc44d40=this['editor']['plugins']['get'](_0x11e1e7),_0x470bb0=this['_suggestionToController']['get'](_0x2635e6),_0x13874=_0x470bb0['view'],_0x496cea=_0xc44d40['getByInnerView'](_0x13874);_0x5dc631['_unbindEditors'](_0x13874),_0x496cea&&_0xc44d40['remove'](_0x496cea),this['_suggestionToController']['delete'](_0x2635e6),this['_viewToController']['delete'](_0x13874),_0x470bb0['destroy']();}['_updateController'](_0x5ca934){if(!_0x5ca934['isInContent']||!this['_suggestionToController']['has'](_0x5ca934))return;const _0x19fe72=this['editor']['plugins']['get'](Xe),_0x2972ea=this['_suggestionToController']['get'](_0x5ca934),_0x55f898=_0x5ca934['getAllAdjacentSuggestions']();_0x2972ea['view']['descriptionParts']=_0x19fe72['descriptionFactory']['getDescriptions'](_0x55f898);}['destroy'](){for(const _0x3f1678 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f1678);for(const _0x592e71 of this['_annotationViews']['values']())_0x592e71['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x3dde8d){return'model'in _0x3dde8d;}class Tn extends _0x486e9c{static get['requires'](){return[Xe,mn,_0x711ece];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x290cd2){this['editor']['plugins']['get'](Xe)['adapter']=_0x290cd2;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x46db17){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x46db17);}['getSuggestions']({skipNotAttached:_0x148a63=!0x1,toJSON:_0x4e9f92=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x148a63,'toJSON':_0x4e9f92});}['getSuggestion'](_0xf0acfd){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0xf0acfd);}}const _n=['Pagination'];class pn extends _0x486e9c{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x354ff0=this['editor'];if(_0x354ff0['config']['define']('trackChangesData.editorCreator',_0x4ba423=>{const _0x4e88d2=_0x354ff0['model']['document']['getRootNames']()['reduce']((_0x3f662d,_0x5c759c)=>(_0x3f662d[_0x5c759c]='',_0x3f662d),{});return _0x354ff0['constructor']['create'](_0x4e88d2,_0x4ba423);}),'function'!=typeof _0x354ff0['config']['get']('trackChangesData')['editorCreator'])throw new _0x24c1f2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1833c7){return bn(this['editor'],!0x0,_0x1833c7);}['getDataWithDiscardedSuggestions'](_0x129d3e){return bn(this['editor'],!0x1,_0x129d3e);}}class Ln extends _0x486e9c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x133862){function _0x1e1366(_0x4c1980){return _0x4c1980['map'](_0x141e91=>String['fromCharCode'](_0x141e91))['join']('');}super(_0x133862),this['result']='end',_0x133862[_0x1e1366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e1366([0x76,0x69,0x65,0x77])][_0x1e1366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e1366([0x61,0x75,0x74,0x6f]),_0x133862[_0x1e1366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1e1366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e1366([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1e1366([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1e1366([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(_0x37b9f4){return void 0x0!==_0x37b9f4['getRootsAttributes'];}async function bn(_0x2c7a4e,_0x569caa,_0x5b6989){const _0x2608ed=_0x4dd44f(_0x2c7a4e,_n);if(_0x2608ed['plugins']['push'](Xe,Ln),In(_0x2c7a4e)){_0x2608ed['roots']=Object['create'](null);for(const _0xdd7fe of _0x2c7a4e['model']['document']['getRootNames']())_0x2608ed['roots'][_0xdd7fe]={'modelAttributes':_0x2c7a4e['getRootAttributes'](_0xdd7fe)};}const _0xf795ac=document['createDocumentFragment'](),_0x50408d=_0x2c7a4e['config']['get']('trackChangesData')['editorCreator'],_0xfb5076=await _0x50408d(_0x2608ed,()=>function(_0x4dba54){const _0x38da8a=document['createElement']('div');return _0x4dba54['appendChild'](_0x38da8a),_0x38da8a;}(_0xf795ac));!function(_0x66b1cc,_0xd88f4f){const _0x521be1=_0x66b1cc['model']['document']['getRootNames']()['reduce']((_0x330a62,_0x2aeaeb)=>(_0x330a62[_0x2aeaeb]=_0x66b1cc['data']['get']({'rootName':_0x2aeaeb}),_0x330a62),{}),_0x2b470b=_0x66b1cc['plugins']['get']('Users')['users']['map'](_0x17d8b5=>({'id':_0x17d8b5['id'],'name':_0x17d8b5['name']})),_0x43c051=_0x66b1cc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f84a3=_0x66b1cc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c8148=_0xd88f4f['plugins']['get']('Users'),_0x2f1515=_0xd88f4f['plugins']['get']('TrackChangesEditing'),_0x2946ce=_0xd88f4f['plugins']['get']('CommentsRepository');for(const _0x48b4d9 of _0x2946ce['getCommentThreads']())_0x48b4d9['remove']();for(const _0xf21828 of _0x2b470b)_0x4c8148['getUser'](_0xf21828['id'])||_0x4c8148['addUser'](_0xf21828);_0x4c8148['me']||_0x4c8148['useAnonymousUser']();for(const _0x3e5cf3 of _0x1f84a3)_0x2946ce['addCommentThread'](_0x3e5cf3);for(const _0x3c1085 of _0x43c051)_0x2f1515['addSuggestionData'](_0x3c1085);_0xd88f4f['data']['set'](_0x521be1);}(_0x2c7a4e,_0xfb5076),_0xfb5076['execute'](_0x569caa?'acceptAllSuggestions':'discardAllSuggestions');const _0x43943f=In(_0xfb5076)?_0xfb5076['getFullData'](_0x5b6989):_0xfb5076['data']['get'](_0x5b6989);return await _0xfb5076['destroy'](),_0x43943f;}class An extends _0x67f2c3{['options'];constructor(_0x5435fb,_0x231874){super(_0x5435fb),this['options']=_0x231874,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'](_0x4d5948,_0x513d52){if(!this['element'])return;const _0x444821=[];for(const [_0x16020d,_0x55dbf9]of _0x4d5948){const _0x192c55=document['createElement']('div');_0x192c55['setAttribute']('data-ck-root-name',_0x16020d),_0x192c55['className']=_0x55dbf9['classes']+'\x20ck-track-changes-preview__root-container',_0x192c55['innerHTML']=_0x55dbf9['content'],_0x444821['push'](_0x192c55);}_0x513d52(this['element'],_0x444821),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0xb638e6{constructor(_0x1e2735){super(_0x1e2735),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29cd61=this['editor'],_0x24bbb3=_0x29cd61['locale'],_0x2fa67c=_0x29cd61['plugins']['get']('Dialog');let _0x738c70;const _0x201c08=function(_0x3b7a2d){const _0x25e145={};if('editables'in _0x3b7a2d['ui']['view']){for(const [_0xb4abdc,_0x199e4]of Object['entries'](_0x3b7a2d['ui']['view']['editables']))_0x25e145[_0xb4abdc]=_0x199e4['element'];}else _0x25e145[_0x3b7a2d['model']['document']['getRootNames']()[0x0]]=_0x3b7a2d['ui']['view']['editable']['element'];return _0x25e145;}(_0x29cd61),_0x45a734=function(_0x343bba){let _0x246f8f=0x0;for(const _0x1e9dd9 of Object['values'](_0x343bba))_0x246f8f=Math['max'](_0x246f8f,_0x1e9dd9['getBoundingClientRect']()['width']);let _0x17fd10=0x0;for(const _0x1c0ca2 of Object['values'](_0x343bba))_0x17fd10+=_0x1c0ca2['getBoundingClientRect']()['height'];const _0x2f728a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x48b532=Math['min'](_0x17fd10,_0x2f728a);return{'width':_0x246f8f,'height':_0x48b532};}(_0x201c08);_0x2fa67c['show']({'id':'finalContentPreview','title':At(_0x24bbb3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x24bbb3,{'dialogRects':_0x45a734}),'onHide':()=>{_0x738c70['detachFromDom']();},'onShow':()=>{_0x29cd61['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x10c64d=>{const _0x2d50b1=this['_standarizeRootsData'](_0x10c64d,_0x29cd61,_0x201c08);_0x2fa67c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2d50b1,_0x29cd61['config']['get']('trackChanges.preview.renderFunction'));}),_0x738c70=new _0x556021(_0x24bbb3,[_0x2fa67c['view']]),_0x738c70['attachToDom'](),_0x738c70['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29cd61['once']('destroy',()=>{_0x738c70['detachFromDom']();});const _0x43abf1=_0x2fa67c['view']['headerView']['class'];_0x2fa67c['view']['headerView']['class']=_0x43abf1?_0x43abf1+'\x20ck-reset_all':'ck-reset_all',_0x2fa67c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2fa67c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x291095=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x63d76=_0x291095['previewMode'],_0x1e507d={};if('$labels'===_0x63d76){for(const _0x2809c3 of _0x291095['getMergeFieldsIds']())_0x1e507d[_0x2809c3]=_0x291095['getLabel'](_0x2809c3)||_0x2809c3;}else{const _0x24ee15='$defaultValues'===_0x63d76?_0x291095['getDefaultValues']():_0x291095['getDataSetValues'](_0x63d76,!0x0);for(const _0x22dfed of Object['entries'](_0x24ee15)){const [_0x3a0a0a,_0x2713d4]=_0x22dfed;_0x1e507d[_0x3a0a0a]=null!==_0x2713d4?_0x2713d4:_0x291095['getLabel'](_0x3a0a0a)||_0x3a0a0a;}}return{'mergeFieldsData':_0x1e507d};}['_standarizeRootsData'](_0x3551bc,_0x22a45b,_0x5e2190){let _0x451189;if('string'==typeof _0x3551bc){const _0x37bcc0=_0x22a45b['model']['document']['getRootNames']()[0x0];_0x451189={[_0x37bcc0]:_0x3551bc};}else _0x451189=_0x3551bc;const _0x53ac55=this['_fixMediaEmbeds'](_0x451189,_0x22a45b),_0xacece9=function(_0x391e94,_0x18447b){for(const [_0x549f45,_0x46a818]of _0x391e94)_0x46a818['classes']=_0x18447b[_0x549f45]['classList']['value']['replace']('ck-focused','');return _0x391e94;}(this['_sortRoots'](_0x22a45b)['reduce']((_0x46b963,_0x1c4303)=>(_0x46b963['push']([_0x1c4303,{'content':_0x53ac55[_0x1c4303],'classes':''}]),_0x46b963),[]),_0x5e2190);return _0xacece9;}['_fixMediaEmbeds'](_0x35aca2,_0x1b645d){if(!_0x1b645d['plugins']['has']('MediaEmbedEditing'))return _0x35aca2;const _0x5becde=_0x1b645d['plugins']['get']('MediaEmbedEditing');for(const [_0x3014ad,_0x215d45]of Object['entries'](_0x35aca2)){const _0x5c11da=document['createElement']('div');_0x5c11da['innerHTML']=_0x215d45,(_0x5c11da['querySelectorAll']('figure.media')['forEach'](_0x58989f=>{const _0x3a01f7=_0x58989f['querySelector']('oembed');if(_0x3a01f7){const _0x1d5dde=_0x3a01f7['getAttribute']('url');if(_0x1d5dde){const _0x3352b1=_0x5becde['registry']['getMediaViewElement'](new et(_0x1b645d['editing']['view']['document']),_0x1d5dde,{'elementName':'','renderForEditingView':!0x0}),_0xbc0c35=document['createElement']('div');_0xbc0c35['classList']['add']('ck-media__wrapper'),_0x3352b1['render'](_0xbc0c35,_0x1b645d['editing']['view']['domConverter']),_0x3a01f7['replaceWith'](_0xbc0c35);}}}),_0x35aca2[_0x3014ad]=_0x5c11da['innerHTML']);}return _0x35aca2;}['_sortRoots'](_0x215279){if(!function(_0x4fc7f3){return void 0x0!==_0x4fc7f3['getRootsAttributes'];}(_0x215279))return _0x215279['model']['document']['getRootNames']();const _0x4ea7e3=[],_0x5e70cb=new Map();for(const _0x2f5587 of _0x215279['model']['document']['getRootNames']()){const _0x483b19=_0x215279['editing']['view']['getDomRoot'](_0x2f5587)['getClientRects']()['item'](0x0);_0x4ea7e3['push'](_0x2f5587),_0x5e70cb['set'](_0x2f5587,_0x483b19);}return _0x4ea7e3['sort']((_0x1e74b3,_0x5a8440)=>{const _0x598381=_0x5e70cb['get'](_0x1e74b3),_0x35104b=_0x5e70cb['get'](_0x5a8440);return _0x598381['y']-_0x35104b['y']||_0x598381['x']-_0x35104b['x'];}),_0x4ea7e3;}}class Cn extends _0x486e9c{static get['requires'](){return[pn,_0x5b9744];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c88bf){super(_0x3c88bf),_0x3c88bf['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x3c88bf['config']['define']('trackChanges.preview.renderFunction',(_0x2948b4,_0x5e8a6b)=>{for(const _0x4c7abf of _0x5e8a6b)_0x2948b4['appendChild'](_0x4c7abf);});}}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 _0x1af26c,Plugin as _0x3995f9,PendingActions as _0x23b194}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2be81c,Annotations as _0x212c28,EditorAnnotations as _0x14b8b1,Comments as _0x19a89b}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x4ffcc7,ObservableMixin as _0x3fd659,uid as _0x390171,priorities as _0x534cc6,insertToPriorityArray as _0x5db849,logWarning as _0x3c9b99,getEnvKeystrokeText as _0x2c781a,FocusTracker as _0x5ea58f,KeystrokeHandler as _0x41acf8,Collection as _0x38f909}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x576b1b,IconCancel as _0x4488b5,IconTrackChanges as _0x15e35e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2710d2,View as _0x58b6cf,ViewCollection as _0x3386f0,FocusCycler as _0x1276c6,UIModel as _0x4bb18e,createDropdown as _0x250824,SplitButtonView as _0x41bbc3,addListToDropdown as _0x3b3745,MenuBarMenuView as _0xd01b63,MenuBarMenuListView as _0x32a30c,ListSeparatorView as _0x3f3b31,MenuBarMenuListItemView as _0x4cd474,MenuBarMenuListItemButtonView as _0x145cc7,BodyCollection as _0x4eb6f8,Dialog as _0x4410c7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x1e81d1,SuggestionsConversion as _0x395e5b,Users as _0x114bf6,DocumentCompare as _0x251b21,fixElementSuggestionRange as _0x3ff99b,hashObject as _0x19c7d6,surroundingMarkersDetector as _0x37db99,FOCUS_ANNOTATION_KEYSTROKE as _0x3d2a75,AriaDescriptionView as _0x2d52c5,setupThreadKeyboardNavigation as _0x59f960,trimHtml as _0x498a2f,UserView as _0x290dbc,LateFocusButtonView as _0x46766e,getDateTimeFormatter as _0x57cc99,getAllMarkersDomElementsSorted as _0x5e4ade,sanitizeEditorConfig as _0x193827}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x2f0285,ModelLiveRange as _0x1a0aad,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 _0x1af26c{['_enabledCommands'];constructor(_0x53c4cc,_0x215efb){super(_0x53c4cc),this['_enabledCommands']=_0x215efb,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 _0x34e05e of this['editor']['commands']['commands']())_0x34e05e['affectsData']&&!this['_enabledCommands']['has'](_0x34e05e)&&_0x34e05e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xee3344 of this['editor']['commands']['commands']())_0xee3344['affectsData']&&!this['_enabledCommands']['has'](_0xee3344)&&_0xee3344['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x1af26c{['_suggestions'];constructor(_0x4f4288,_0x46a32b){super(_0x4f4288),this['_suggestions']=_0x46a32b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x261e84){const _0x20902f=this['_suggestions']['get'](_0x261e84);if(!_0x20902f)throw new _0x4ffcc7('track-changes-accept-suggestion-not-found',this);const _0x5e80b1=_0x20902f['getRanges']();this['editor']['model']['canEditAt'](_0x5e80b1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x20902f);}}class ft extends _0x1af26c{['_suggestions'];constructor(_0x4d393e,_0xda2fb0){super(_0x4d393e),this['_suggestions']=_0xda2fb0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe75001){const _0x2599ba=this['_suggestions']['get'](_0xe75001);if(!_0x2599ba)throw new _0x4ffcc7('track-changes-discard-suggestion-not-found',this);const _0x2c1f00=_0x2599ba['getRanges']();this['editor']['model']['canEditAt'](_0x2c1f00)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2599ba);}}function gt(_0x36f53b,_0x111bf8){let _0x18a7d2='';return _0x18a7d2+=_0x36f53b['split']('*')['map']((_0xdc831f,_0x429e6e)=>_0x429e6e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0xdc831f)+'</span>':mt(_0xdc831f))['join'](''),_0x111bf8&&(_0x18a7d2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x111bf8['value']+'\x22\x20title=\x22'+_0x111bf8['title']+'\x22></span>'),_0x18a7d2;}function mt(_0x51be8){const _0x1d1866=document['createElement']('span');return _0x1d1866['innerText']=_0x51be8,_0x1d1866['innerHTML'];}function Et(_0x3ad2dd){return _0x3ad2dd['sort']((_0x2bef2b,_0x616d84)=>'attribute'===_0x2bef2b['type']&&'attribute'!==_0x616d84['type']?-0x1:'attribute'!==_0x2bef2b['type']&&'attribute'===_0x616d84['type']?0x1:'deletion'==_0x2bef2b['type']&&'deletion'!=_0x616d84['type']?-0x1:'deletion'!=_0x2bef2b['type']&&'deletion'==_0x616d84['type']?0x1:0x0);}function Tt(_0xfa51bd,_0x3c8183){let _0x229025,_0x57c8ed=0x0;const _0xf56e4f=[],_0x283bed=_0x3c8183['schema'];for(;_0x57c8ed<_0xfa51bd['length'];){const _0x186808=_0xfa51bd[_0x57c8ed],_0x34e257=_0xfa51bd[_0x57c8ed+0x1];_0x229025||(_0x229025=_0x3c8183['createPositionBefore'](_0x186808)),_t(_0x3c8183,_0x186808,_0x34e257)||(_0xf56e4f['push'](_0x3c8183['createRange'](_0x229025,_0x283bed['isObject'](_0x186808)?_0x3c8183['createPositionAfter'](_0x186808):_0x3c8183['createPositionAt'](_0x186808,'end'))),_0x229025=null),_0x57c8ed++;}return _0xf56e4f;}function _t(_0x20a2ce,_0x35f83a,_0x5204c9){if(!_0x5204c9)return!0x1;const _0x106c96=_0x20a2ce['createPositionAfter'](_0x35f83a),_0x1da6ac=_0x20a2ce['createPositionBefore'](_0x5204c9);return _0x106c96['isTouching'](_0x1da6ac);}function pt(_0x222dfb,_0x30a17f,_0x465701){for(;_0x465701['length'];){const _0xfba494=_0x465701['splice'](0x0,0x64);_0x222dfb['change'](()=>{for(const _0x1dc92e of _0xfba494)_0x1dc92e['isInContent']&&_0x30a17f['execute'](_0x1dc92e['id']);});}}class Lt extends _0x1af26c{['_command'];['_suggestions'];constructor(_0x25cbb8,_0x97de6a,_0x1bb9a7){super(_0x25cbb8),this['_command']=_0x97de6a,this['_suggestions']=_0x1bb9a7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5728ae=Array['from'](this['_suggestions']['values']())['some'](_0x4c8ed3=>_0x4c8ed3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5728ae;}['execute'](){const _0x2b4905=Et(Array['from'](this['_suggestions']['values']()));for(const _0x5a87a8 of _0x2b4905){const _0x19133d=_0x5a87a8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19133d))return;}pt(this['editor']['model'],this['_command'],_0x2b4905);}}class It extends _0x1af26c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x481f32,_0x159c7d,_0x2501fe){super(_0x481f32),this['_command']=_0x159c7d,this['_suggestions']=_0x2501fe,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47706b=this['editor']['model']['document']['selection'],_0x36a9aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x36bf77,_0x42bff5){const _0x51b255=Array['from'](_0x36bf77['getRanges']()),_0x2a55c6=new Set();for(const _0x5b521a of _0x42bff5)if(_0x5b521a['isInContent']){for(const _0x3113b0 of _0x51b255)for(const _0x53540f of _0x5b521a['getRanges']())(_0x3113b0['isIntersecting'](_0x53540f)||_0x36bf77['isCollapsed']&&!_0x5b521a['isMultiRange']&&_0x5b521a['next']&&_0x53540f['end']['isTouching'](_0x3113b0['start']))&&_0x2a55c6['add'](_0x5b521a);}return _0x2a55c6;}(_0x47706b,_0x36a9aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x7737e6=Et(Array['from'](this['_selectedSuggestions']));for(const _0x1da2c6 of _0x7737e6){const _0x31749a=_0x1da2c6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31749a))return;}pt(this['editor']['model'],this['_command'],_0x7737e6);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x3fd659(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2fe12f,_0x416887){super(),this['id']=_0x416887['id'],this['type']=_0x416887['type'],this['subType']=_0x416887['subType']||null,this['author']=_0x416887['author'],this['creator']=_0x416887['creator']||_0x416887['author'],this['isExternal']=Boolean(_0x416887['attributes']&&_0x416887['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x416887['originalSuggestionId']||null,this['_model']=_0x2fe12f,this['_onAccept']=_0x416887['onAccept'],this['_onDiscard']=_0x416887['onDiscard'],this['_onAttributesChange']=_0x416887['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x416887['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 _0x585c31=this;for(;_0x585c31['previous'];)_0x585c31=_0x585c31['previous'];return _0x585c31;}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'](_0x3df515){this['_markerNames']['add'](_0x3df515);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x522a84=>this['_model']['markers']['get'](_0x522a84))['filter'](_0x67ad18=>_0x67ad18);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x139e63=>{for(const _0x11a54f of this['getMarkers']())_0x139e63['removeMarker'](_0x11a54f);}),this['_markerNames']['clear']();}['removeMarker'](_0x1efc0e){this['_model']['change'](_0x35f3e8=>{_0x35f3e8['removeMarker'](_0x1efc0e);}),this['_markerNames']['delete'](_0x1efc0e);}['addRange'](_0x530715){const _0x4387b3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x4387b3),this['_model']['change'](_0x209d4a=>{_0x209d4a['addMarker'](_0x4387b3,{'range':_0x530715,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x155019){for(const _0xb5da17 of this['getRanges']())if(_0xb5da17['isIntersecting'](_0x155019))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x30d2cc=>_0x30d2cc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29108f,_0x1c5317)=>[..._0x29108f,..._0x1c5317['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b1ad1=this['getRanges']();if(0x1!=_0x3b1ad1['length'])return null;const _0x10b80e=_0x3b1ad1[0x0],_0xc3d3cd=_0x10b80e['start']['nodeAfter'],_0x4c6887=_0x10b80e['end']['nodeBefore'];return _0xc3d3cd instanceof _0x2f0285?_0xc3d3cd!=_0x4c6887?null:_0xc3d3cd: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 _0x4b5c1e=[];let _0x20bcb0=this['head'];for(;_0x20bcb0;)_0x4b5c1e['push'](_0x20bcb0),_0x20bcb0=_0x20bcb0['next'];return _0x4b5c1e;}['setAttribute'](_0x24490d,_0x542a6d){const _0x240a5c=nt(this['attributes']);it(_0x240a5c,_0x24490d,_0x542a6d),st(_0x240a5c,this['attributes'])||(this['attributes']=_0x240a5c,this['_onAttributesChange'](_0x240a5c));}['removeAttribute'](_0x3b6a29){const _0x4ad0f0=nt(this['attributes']);rt(_0x4ad0f0,_0x3b6a29),st(_0x4ad0f0,this['attributes'])||(this['attributes']=_0x4ad0f0,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 _0x390171()['substr'](0x1,0x5);}}function At(_0x12d09b,_0x108aa4,_0x4b469){const _0x226038=_0x12d09b['t'],t=_0x12d09b['t'];switch(_0x108aa4){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',_0x4b469);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b469);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b469);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b469);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b469);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',_0x4b469);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b469);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',_0x4b469);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b469);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b469);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b469);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b469);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b469);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b469);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b469);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b469);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b469);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b469);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b469);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b469);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b469);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b469);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b469);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b469);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b469);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'},_0x4b469);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b469);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b469);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b469);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b469);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b469);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b469);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b469);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'},_0x4b469);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b469);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b469);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b469);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b469);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'},_0x4b469);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b469);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'},_0x4b469);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'},_0x4b469);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b469);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'},_0x4b469);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b469);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'},_0x4b469);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b469);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4b469);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4b469);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4b469);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b469);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'},_0x4b469);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b469);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 _0x226038({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b469);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x226038({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b469);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b469);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'},_0x4b469);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'},_0x4b469);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'},_0x4b469);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x108aa4;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x447346,_0x3b7aee){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x447346,this['_locale']=_0x3b7aee;}['getDescriptions'](_0x180f9a){const _0xf3b9a3=[],_0x1464d6=new Set(),_0x53ecfa=new Set();for(let _0xf5ebf9=0x0;_0xf5ebf9<_0x180f9a['length'];_0xf5ebf9++){const _0x34b3eb=_0x180f9a[_0xf5ebf9];if(!_0x34b3eb['isInContent'])continue;const _0x168068=this['_handleCustomCallbackDescription'](_0x34b3eb);if(_0x168068){if(null!=_0x34b3eb['subType']){if(_0x1464d6['has'](_0x34b3eb['subType']))continue;_0x1464d6['add'](_0x34b3eb['subType']);}_0xf3b9a3['push'](_0x168068);}else{if('attribute'==_0x34b3eb['type']){const _0x348439=_0x34b3eb['data']['key'];if(_0x53ecfa['has'](_0x348439))continue;_0x53ecfa['add'](_0x34b3eb['data']['key']),_0x348439==Ke?this['_handleRenameSuggestionDescription'](_0xf3b9a3,_0x34b3eb):this['_handleAttributeSuggestionDescription'](_0xf3b9a3,_0x34b3eb);continue;}'insertion'!=_0x34b3eb['type']&&'deletion'!=_0x34b3eb['type']||this['_handleInsertRemoveSuggestionDescription'](_0xf3b9a3,_0x34b3eb,_0x180f9a[_0xf5ebf9+0x1]);}}return this['_resolveDescriptionItems'](_0xf3b9a3);}['registerDescriptionCallback'](_0x5a1a3c){this['_customCallbacks']['push'](_0x5a1a3c);}['registerElementLabel'](_0x4dcb26,_0x21f77f,_0x3fcbfd=_0x534cc6['normal']){'function'==typeof _0x4dcb26?_0x5db849(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4dcb26,'label':_0x21f77f,'priority':_0x3fcbfd}):this['_itemLabels']['set'](_0x4dcb26,_0x21f77f);}['registerAttributeLabel'](_0x1499f3,_0x32622f){this['_attributeLabels']['set'](_0x1499f3,_0x32622f);}['getItemLabel'](_0x37ce72,_0x49ca10=0x1){let _0x36a1aa;for(const _0x1640c4 of this['_itemLabelsCallbacks'])if(_0x1640c4['matchingCallback'](_0x37ce72)){_0x36a1aa=_0x1640c4['label'];break;}return _0x36a1aa||(_0x36a1aa=this['_itemLabels']['get'](_0x37ce72['name'])),_0x36a1aa?_0x36a1aa(_0x49ca10):0x1!==_0x49ca10?_0x49ca10+'\x20'+_0x37ce72['name']+'s':''+_0x37ce72['name'];}['_addDescriptionItems'](_0x4e6d2e,_0x54d83c){const _0xe8ee24=_0x54d83c['getFirstRange']()['getWalker'](),_0x4b1955='insertion'==_0x54d83c['type']?'add':'remove';for(const _0x3763e8 of _0xe8ee24){const _0x135fbd=_0x3763e8['item'],_0x1d7f3d=_0x4e6d2e[_0x4e6d2e['length']-0x1];if(_0x135fbd['is']('$textProxy'))_0x1d7f3d&&_0x1d7f3d['type']['indexOf']('Container')>-0x1&&_0x4e6d2e['pop'](),_0x1d7f3d&&'text'==_0x1d7f3d['type']?_0x1d7f3d[_0x4b1955]+=_0x135fbd['data']:_0x4e6d2e['push']({'type':'text','add':'add'==_0x4b1955?_0x135fbd['data']:'','remove':'remove'==_0x4b1955?_0x135fbd['data']:''});else{if(this['_schema']['isObject'](_0x135fbd)){const _0x526712=_0x135fbd;if(_0x1d7f3d&&_0x1d7f3d['type']['indexOf']('Container')>-0x1&&_0x4e6d2e['pop'](),'elementEnd'==_0x3763e8['type'])continue;_0x1d7f3d&&_0x1d7f3d['type']==_0x4b1955+'Object'&&_0x1d7f3d['element']['name']==_0x526712['name']?_0x1d7f3d['quantity']++:_0x4e6d2e['push']({'type':_0x4b1955+'Object','element':_0x526712,'quantity':0x1}),_0xe8ee24['skip'](_0x5d036e=>!('elementEnd'==_0x5d036e['type']&&_0x5d036e['item']==_0x135fbd));}else{if(this['_schema']['checkChild'](_0x135fbd,'$text')||_0x135fbd['is']('element','softBreak')){const _0x4ba638=_0x135fbd;if('add'==_0x4b1955&&'elementStart'==_0x3763e8['type']||'remove'==_0x4b1955&&'elementEnd'==_0x3763e8['type'])continue;if(_0x1d7f3d&&-0x1==_0x1d7f3d['type']['indexOf']('Container')){'text'==_0x1d7f3d['type']&&(_0x1d7f3d[_0x4b1955]+='\x0a');continue;}let _0x11c78d;if(_0x11c78d='add'==_0x4b1955?_0x4ba638['nextSibling']&&!this['_schema']['isObject'](_0x4ba638['nextSibling'])?_0x4ba638['nextSibling']:null:_0x4ba638['previousSibling']&&!this['_schema']['isObject'](_0x4ba638['previousSibling'])?_0x4ba638['previousSibling']:null,_0x4ba638['isEmpty']||_0x11c78d&&_0x11c78d['isEmpty']){const _0x4b3a90=_0x11c78d&&_0x11c78d['isEmpty']?_0x11c78d:_0x4ba638;_0x1d7f3d&&_0x1d7f3d['type']==_0x4b1955+'EmptyContainer'&&_0x1d7f3d['element']['name']==_0x4b3a90['name']?_0x1d7f3d['quantity']++:_0x4e6d2e['push']({'type':_0x4b1955+'EmptyContainer','element':_0x4b3a90,'quantity':0x1});}else _0x4e6d2e['push']({'type':_0x4b1955+'Container','element':_0x4ba638});}}}}}['_resolveDescriptionItems'](_0x566f8a){const _0x280056=this['_locale'],_0x4ce1de=[],_0x10bb90=[],_0x4c0775=[];for(const _0x128211 of _0x566f8a)switch(_0x128211['type']){case'text':if(_0x128211['add']=_0x128211['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x128211['remove']=_0x128211['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x128211['add']&&''!=_0x128211['remove']){_0x4ce1de['push']({'type':'replace','content':At(_0x280056,'REPLACE_TEXT',['\x22'+_0x128211['remove']+'\x22','\x22'+_0x128211['add']+'\x22'])});continue;}if(null!=_0x128211['add']['match'](/^ +$/)){_0x4ce1de['push']({'type':'insertion','content':At(_0x280056,'*Insert:*\x20%0',At(_0x280056,'ELEMENT_SPACE',_0x128211['add']['length']))});continue;}if(null!=_0x128211['remove']['match'](/^ +$/)){_0x4ce1de['push']({'type':'deletion','content':At(_0x280056,'*Remove:*\x20%0',At(_0x280056,'ELEMENT_SPACE',_0x128211['remove']['length']))});continue;}if(''!=_0x128211['add']){_0x4ce1de['push']({'type':'insertion','content':At(_0x280056,'*Insert:*\x20%0','\x22'+_0x128211['add']+'\x22')});continue;}_0x4ce1de['push']({'type':'deletion','content':At(_0x280056,'*Remove:*\x20%0','\x22'+_0x128211['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ce1de['push']({'type':'insertion','content':At(_0x280056,'*Insert:*\x20%0',this['getItemLabel'](_0x128211['element'],_0x128211['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ce1de['push']({'type':'deletion','content':At(_0x280056,'*Remove:*\x20%0',this['getItemLabel'](_0x128211['element'],_0x128211['quantity']))});continue;case'addContainer':_0x4ce1de['push']({'type':'insertion','content':At(_0x280056,'*Split:*\x20%0',this['getItemLabel'](_0x128211['element'],_0x128211['quantity']))});continue;case'removeContainer':_0x4ce1de['push']({'type':'deletion','content':At(_0x280056,'*Merge:*\x20%0',this['getItemLabel'](_0x128211['element'],_0x128211['quantity']))});continue;case'addFormat':_0x10bb90['push'](_0x128211['key']);continue;case'removeFormat':_0x4c0775['push'](_0x128211['key']);continue;default:_0x4ce1de['push'](_0x128211);}if(_0x10bb90['length']){const _0x18f955=_0x10bb90['map'](_0x40e3aa=>this['_attributeLabels']['has'](_0x40e3aa)?this['_attributeLabels']['get'](_0x40e3aa):_0x40e3aa)['join'](',\x20');_0x4ce1de['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x18f955)});}if(_0x4c0775['length']){const _0x2930c7=_0x4c0775['map'](_0x429e85=>this['_attributeLabels']['has'](_0x429e85)?this['_attributeLabels']['get'](_0x429e85):_0x429e85)['join'](',\x20');_0x4ce1de['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x2930c7)});}return _0x4ce1de;}['_handleCustomCallbackDescription'](_0x4301ab){for(const _0x501a36 of this['_customCallbacks']){const _0x3f5469=_0x501a36(_0x4301ab);if(_0x3f5469&&'type'in _0x3f5469)return _0x3f5469;}}['_handleAttributeSuggestionDescription'](_0x5b774a,_0x29acf7){const _0x40179f=_0x29acf7['data'],_0x4231e6=void 0x0===_0x40179f['newValue']?'removeFormat':'addFormat';_0x5b774a['push']({'type':_0x4231e6,'key':_0x40179f['key']});}['_handleRenameSuggestionDescription'](_0x1af6a6,_0xc3e4c){_0x1af6a6['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc3e4c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x448b2d,_0x242e7a,_0x36a4d0){if(this['_addDescriptionItems'](_0x448b2d,_0x242e7a),_0x36a4d0&&_0x36a4d0['getFirstRange']()&&!_0x242e7a['getFirstRange']()['end']['isEqual'](_0x36a4d0['getFirstRange']()['start'])){const _0x304724=_0x448b2d[_0x448b2d['length']-0x1],_0x47b3bc='insertion'==_0x242e7a['type']?'add':'remove';_0x304724&&'text'==_0x304724['type']&&(_0x304724[_0x47b3bc]+='\x0a');}}}class Ct extends _0x3995f9{['afterInit'](){const _0x9b6071=this['editor'],_0x414d11=_0x9b6071['plugins']['get']('TrackChangesEditing');_0x9b6071['commands']['get']('showAIAssistant')&&_0x414d11['enableCommand']('showAIAssistant');}}class yt extends _0x3995f9{['afterInit'](){const _0x488590=this['editor'],_0x30d0f7=_0x488590['plugins']['get']('TrackChangesEditing');_0x488590['commands']['get']('toggleAi')&&_0x30d0f7['enableCommand']('toggleAi');}}class Nt extends _0x3995f9{['afterInit'](){const _0x4c9112=this['editor'],_0x538b60=_0x4c9112['plugins']['get']('TrackChangesEditing');_0x4c9112['commands']['get']('aiQuickAction')&&_0x538b60['enableCommand']('aiQuickAction');}}class Rt extends _0x3995f9{['afterInit'](){const _0x4c1418=this['editor'],_0x4adeaf=_0x4c1418['locale'];if(!_0x4c1418['plugins']['has']('AlignmentEditing'))return;const _0x212f3b=_0x4c1418['plugins']['get']('TrackChangesEditing');_0x212f3b['enableDefaultAttributesIntegration']('alignment'),_0x212f3b['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4adeaf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7cf7c2=this['editor'],_0x6ed4e0=_0x7cf7c2['locale'];_0x7cf7c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc816a0=>{if('formatBlock'!=_0xc816a0['type'])return;const {data:_0x20e3a0}=_0xc816a0;if(_0x20e3a0&&'alignment'==_0x20e3a0['commandName']){const _0x3ef0e7=_0x20e3a0['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x6ed4e0,'*Format:*\x20%0',function(_0x4c556f){switch(_0x4c556f){case'left':return At(_0x6ed4e0,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x6ed4e0,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x6ed4e0,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x6ed4e0,'FORMAT_JUSTIFY_TEXT');}}(_0x3ef0e7))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x3995f9{['afterInit'](){const _0x17c6fe=this['editor'],_0x14e6c4=_0x17c6fe['plugins']['get']('TrackChangesEditing'),_0x518e69=_0x17c6fe['locale'];for(const _0x2471bd of St){if(!_0x17c6fe['plugins']['has'](_0x2471bd))continue;const _0x24f865=_0x2471bd['slice'](0x0,-0x7)['toLowerCase'](),_0x475298='FORMAT_'+_0x24f865['toUpperCase']();_0x14e6c4['enableDefaultAttributesIntegration'](_0x24f865),_0x14e6c4['descriptionFactory']['registerAttributeLabel'](_0x24f865,At(_0x518e69,_0x475298));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c322=this['editor'],_0x220ba2=_0x51c322['locale'],_0x3fe047=_0x51c322['plugins']['get']('TrackChangesEditing');function _0x3cffdb(_0x346142,_0x5e2fb2){_0x3fe047['descriptionFactory']['registerDescriptionCallback'](_0x18291e=>{if('formatInline'!=_0x18291e['type'])return;const {data:_0x2a4517}=_0x18291e;return _0x2a4517&&_0x2a4517['commandName']===_0x346142?_0x2a4517['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x220ba2,'*Format:*\x20%0',_0x5e2fb2)}:{'type':'format','content':At(_0x220ba2,'*Remove\x20format:*\x20%0',_0x5e2fb2)}:void 0x0;});}_0x3cffdb('bold',At(_0x220ba2,'FORMAT_BOLD')),_0x3cffdb('italic',At(_0x220ba2,'FORMAT_ITALIC')),_0x3cffdb('underline',At(_0x220ba2,'FORMAT_UNDERLINE')),_0x3cffdb('code',At(_0x220ba2,'FORMAT_CODE')),_0x3cffdb('strikethrough',At(_0x220ba2,'FORMAT_STRIKETHROUGH')),_0x3cffdb('subscript',At(_0x220ba2,'FORMAT_SUBSCRIPT')),_0x3cffdb('superscript',At(_0x220ba2,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x3995f9{['afterInit'](){const _0x31f0ce=this['editor'],_0x1f2ae7=_0x31f0ce['locale'];if(!_0x31f0ce['plugins']['has']('BlockQuoteEditing'))return;const _0x10a03c=_0x31f0ce['plugins']['get']('TrackChangesEditing'),_0x4dd7f2=this['editor']['commands']['get']('blockQuote');_0x10a03c['enableCommand']('blockQuote',(_0x1a9e27,_0x555a4f={})=>{const _0x49bbaa=this['editor']['model']['document']['selection'],_0x27ab09=_0x555a4f&&void 0x0!==_0x555a4f['forceValue']?_0x555a4f['forceValue']:!_0x4dd7f2['value'];let _0x1a174e=[];if(_0x27ab09){const _0x51e1da=Array['from'](_0x49bbaa['getSelectedBlocks']())['filter'](_0x361ce9=>wt(_0x361ce9)||function(_0x294784,_0x3d47c1){const _0x1b8ddb=_0x3d47c1['checkChild'](_0x294784['parent'],'blockQuote'),_0x599e16=_0x3d47c1['checkChild'](['$root','blockQuote'],_0x294784);return _0x1b8ddb&&_0x599e16;}(_0x361ce9,this['editor']['model']['schema']));_0x1a174e=Tt(_0x51e1da,_0x31f0ce['model']);}else{const _0xda4f63=Array['from'](_0x49bbaa['getSelectedBlocks']())['filter'](_0x3edc82=>wt(_0x3edc82));_0x1a174e=Tt(_0xda4f63,_0x31f0ce['model']);}_0x31f0ce['model']['change'](()=>{for(const _0x287453 of _0x1a174e)_0x10a03c['markBlockFormat'](_0x287453,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x27ab09}]});});}),_0x10a03c['descriptionFactory']['registerDescriptionCallback'](_0x53f7d3=>{const {data:_0xf3cf0b}=_0x53f7d3;if(_0xf3cf0b&&'blockQuote'==_0xf3cf0b['commandName']){const _0x50460c=At(_0x1f2ae7,'ELEMENT_BLOCK_QUOTE');return _0xf3cf0b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1f2ae7,'*Set\x20format:*\x20%0',_0x50460c)}:{'type':'format','content':At(_0x1f2ae7,'*Remove\x20format:*\x20%0',_0x50460c)};}});}}function wt(_0x15878b){return'blockQuote'==_0x15878b['parent']['name'];}class Bt extends _0x3995f9{['afterInit'](){const _0x57d598=this['editor'],_0x14fc08=_0x57d598['locale'],_0xf5286f=_0x57d598['plugins']['get']('TrackChangesEditing');_0x57d598['plugins']['has']('BookmarkEditing')&&(_0xf5286f['enableCommand']('insertBookmark'),_0xf5286f['enableDefaultAttributesIntegration']('updateBookmark'),_0xf5286f['descriptionFactory']['registerDescriptionCallback'](_0x3e8e00=>{if('insertion'!=_0x3e8e00['type']&&'deletion'!=_0x3e8e00['type']&&'attribute'!=_0x3e8e00['type'])return;const _0x5b621e=_0x3e8e00['getContainedElement']();if(null==_0x5b621e)return;if(!_0x5b621e['is']('element','bookmark'))return;const _0x2ba451=_0x5b621e['getAttribute']('bookmarkId');if('insertion'==_0x3e8e00['type'])return{'type':'insertion','content':At(_0x14fc08,'*Insert:*\x20%0','\x22'+_0x2ba451+'\x22\x20'+At(_0x14fc08,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3e8e00['type'])return{'type':'deletion','content':At(_0x14fc08,'*Remove:*\x20%0','\x22'+_0x2ba451+'\x22\x20'+At(_0x14fc08,'ELEMENT_BOOKMARK'))};const {data:_0xc4c909}=_0x3e8e00;if(!_0xc4c909||'bookmarkId'!=_0xc4c909['key'])return;return{'type':'format','content':At(_0x14fc08,'*Set\x20bookmark:*\x20%0','\x22'+_0xc4c909['newValue']+'\x22')};}));}}class Ft extends _0x3995f9{['afterInit'](){const _0x437684=this['editor'];_0x437684['plugins']['has']('CaseChange')&&(_0x437684['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x437684['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x437684['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x3995f9{['afterInit'](){const _0x4fa3b8=this['editor'];_0x4fa3b8['commands']['get']('ckbox')&&_0x4fa3b8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x3995f9{['afterInit'](){const _0x3c9517=this['editor'];if(!_0x3c9517['plugins']['has']('CodeBlock'))return;const _0x263071=_0x3c9517['plugins']['get']('TrackChangesEditing'),_0x3e043c=_0x3c9517['locale'],_0x5f48b3=_0x3c9517['config']['get']('codeBlock')['languages'],_0x111b33=_0x3c9517['commands']['get']('codeBlock');_0x263071['enableCommand']('indentCodeBlock'),_0x263071['enableCommand']('outdentCodeBlock'),_0x263071['enableCommand']('codeBlock',(_0x3f694d,_0x90f484={})=>{const _0x58cad7=_0x3c9517['model'],_0x5bfd30=_0x3c9517['model']['document']['selection'],_0xc618e4=_0x90f484&&void 0x0!==_0x90f484['forceValue']?_0x90f484['forceValue']:!_0x111b33['value'];let _0x24244a;_0x90f484['language']||(_0x90f484['language']=_0x5f48b3[0x0]['language']),_0x24244a=_0xc618e4?Array['from'](_0x5bfd30['getSelectedBlocks']())['filter'](_0x638938=>xt(_0x638938)||function(_0x38312f,_0x5b19c5){if(_0x38312f['is']('rootElement')||_0x5b19c5['isLimit'](_0x38312f))return!0x1;return _0x5b19c5['checkChild'](_0x38312f['parent'],'codeBlock');}(_0x638938,_0x58cad7['schema'])):Array['from'](_0x5bfd30['getSelectedBlocks']())['filter'](_0x5d2951=>xt(_0x5d2951));const _0xb0617e=Tt(_0x24244a,_0x58cad7);_0x58cad7['change'](()=>{for(const _0x5b2e0f of _0xb0617e)_0x263071['markBlockFormat'](_0x5b2e0f,{'commandName':'codeBlock','commandParams':[{..._0x90f484,'forceValue':_0xc618e4}],'formatGroupId':'blockName'});});}),(_0x263071['descriptionFactory']['registerElementLabel']('codeBlock',_0x431fd6=>At(_0x3e043c,'ELEMENT_CODE_BLOCK',_0x431fd6)),_0x263071['descriptionFactory']['registerDescriptionCallback'](_0x5cb649=>{if('formatBlock'!=_0x5cb649['type'])return;const _0x46474a=_0x3e043c['t'],{data:_0x200812}=_0x5cb649;if(!_0x200812||'codeBlock'!=_0x200812['commandName'])return;const _0x3d1472=_0x200812['commandParams'][0x0]['language'],_0x2c9be1=_0x46474a(_0x5f48b3['find'](_0x780eca=>_0x780eca['language']===_0x3d1472)['label'])['toLowerCase']();return _0x200812['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3e043c,'*Set\x20format:*\x20%0',At(_0x3e043c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2c9be1+')')}:{'type':'format','content':At(_0x3e043c,'*Remove\x20format:*\x20%0',At(_0x3e043c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0xe20471){return'codeBlock'==_0xe20471['name'];}class Pt extends _0x3995f9{['afterInit'](){const _0x401053=this['editor'];if(!_0x401053['plugins']['has']('CommentsEditing'))return;_0x401053['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x3995f9{static get['requires'](){return[at];}['init'](){const _0x2c69da=this['editor'],_0x5bb8ff=_0x2c69da['plugins']['get']('TrackChangesEditing');_0x5bb8ff['enableCommand']('delete');const _0x41023e=_0x2c69da['commands']['get']('deleteForward');_0x5bb8ff['enableCommand']('deleteForward',(_0x1470da,_0x498783={})=>{const _0x163d15=_0x2c69da['model']['createSelection'](_0x2c69da['model']['document']['selection']);_0x163d15['isCollapsed']&&_0x2c69da['model']['modifySelection'](_0x163d15,{'direction':'forward','unit':_0x498783['unit']});const _0x5d9176=_0x163d15['getFirstRange'](),_0x3059be=_0x1a0aad['fromRange'](_0x5d9176);let _0x434fbf;_0x1470da(_0x498783),_0x434fbf='$graveyard'==_0x3059be['root']['rootName']?_0x2c69da['model']['createRange'](_0x5d9176['start']):_0x2c69da['model']['createRange'](_0x3059be['start'],_0x3059be['end']),_0x3059be['detach'](),_0x2c69da['model']['enqueueChange'](_0x41023e['buffer']['batch'],_0x29600d=>{_0x41023e['buffer']['lock'](),_0x29600d['setSelection'](_0x29600d['createRange'](_0x434fbf['end'])),_0x41023e['buffer']['unlock']();});});}}class Gt extends _0x3995f9{['afterInit'](){const _0x529cf5=this['editor'];if(!_0x529cf5['plugins']['has']('ListEditing'))return;const _0x46974a=_0x529cf5['locale'],_0x1ab74d=_0x529cf5['plugins']['get']('TrackChangesEditing'),_0x31591d=_0x529cf5['plugins']['has']('TodoListEditing'),_0x99ac9a=!!_0x529cf5['config']['get']('list.multiBlock');function _0x58ebc2(_0x50b713){return{'type':'format','content':''+At(_0x46974a,'*Set\x20format:*\x20%0',_0x50b713)};}function _0x365e29(_0x457de1){return{'type':'format','content':''+At(_0x46974a,'*Remove\x20format:*\x20%0',_0x457de1)};}_0x1ab74d['enableDefaultAttributesIntegration']('numberedList'),_0x1ab74d['enableDefaultAttributesIntegration']('bulletedList'),_0x1ab74d['enableDefaultAttributesIntegration']('customNumberedList'),_0x1ab74d['enableDefaultAttributesIntegration']('customBulletedList'),_0x1ab74d['enableDefaultAttributesIntegration']('indentList'),_0x1ab74d['enableDefaultAttributesIntegration']('outdentList'),_0x1ab74d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1ab74d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x99ac9a&&(_0x1ab74d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1ab74d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x31591d&&(_0x1ab74d['enableDefaultAttributesIntegration']('todoList'),_0x1ab74d['enableDefaultAttributesIntegration']('checkTodoList'),_0x1ab74d['descriptionFactory']['registerDescriptionCallback'](_0x21b656=>{const {data:_0x324983}=_0x21b656;if(_0x324983&&'todoListChecked'==_0x324983['key'])return{'type':'format','content':_0x324983['newValue']?At(_0x46974a,'*Check\x20item*'):At(_0x46974a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x49ad1d=>{if(_0x49ad1d['batch']['isUndo'])return!0x1;let _0x4f12b9=!0x1;const _0x23e1a4=_0x1ab74d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20248b=>'todoListChecked'===_0x1ab74d['_getAttributeKey'](_0x20248b));for(const _0x22b7a0 of _0x23e1a4){'todo'!=_0x22b7a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1ab74d['_findSuggestions'](_0x22b7a0['getFirstRange'](),'attribute')['find'](_0x72bd37=>'listType'===_0x1ab74d['_getAttributeKey'](_0x72bd37['suggestion']))||(_0x49ad1d['removeMarker'](_0x22b7a0['getFirstMarker']()),_0x4f12b9=!0x0));}return _0x4f12b9;})),_0x1ab74d['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x46974a,'FORMAT_INDENT'));const _0x40fcfe={'type':'format','content':''};_0x1ab74d['descriptionFactory']['registerDescriptionCallback'](_0x7bb173=>{const {data:_0x35eb8d}=_0x7bb173;if(!_0x35eb8d||'listType'!=_0x35eb8d['key'])return;let _0x184e94=_0x7bb173['head'];for(;_0x184e94;){if(_0x184e94['data']&&(('listStyle'==_0x184e94['data']['key']||'listMarkerStyle'==_0x184e94['data']['key'])&&(_0x184e94['data']['newValue']&&'default'!=_0x184e94['data']['newValue']||'default'!=_0x184e94['data']['oldValue']&&!_0x35eb8d['newValue'])||!_0x99ac9a&&_0x184e94['data']['key']==Ke))return _0x40fcfe;_0x184e94=_0x184e94['next'];}if(null==_0x35eb8d['newValue'])switch(_0x35eb8d['oldValue']){case'bulleted':return _0x365e29(At(_0x46974a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x365e29(At(_0x46974a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x365e29(At(_0x46974a,'ELEMENT_TODO_LIST'));}switch(_0x35eb8d['newValue']){case'bulleted':return _0x58ebc2(At(_0x46974a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58ebc2(At(_0x46974a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58ebc2(At(_0x46974a,'ELEMENT_TODO_LIST'));}}),_0x1ab74d['descriptionFactory']['registerDescriptionCallback'](_0x447521=>{const {data:_0x4a986d}=_0x447521;if(_0x4a986d&&'listIndent'==_0x4a986d['key'])return null==_0x4a986d['newValue']||null==_0x4a986d['oldValue']&&0x0==_0x4a986d['newValue']?_0x40fcfe:void 0x0;}),_0x1ab74d['descriptionFactory']['registerDescriptionCallback'](_0x133af0=>{if('attribute'!=_0x133af0['type'])return;const {data:_0x4b131f}=_0x133af0;if(!_0x4b131f||'listItemId'!=_0x4b131f['key'])return;const _0x4c04b9=Ht(_0x133af0);return'newValue'==_0x4c04b9?{'type':'format','content':At(_0x46974a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4c04b9?{'type':'format','content':At(_0x46974a,'*Split:*\x20list\x20item')}:_0x40fcfe;}),_0x529cf5['model']['document']['registerPostFixer'](_0xed1565=>this['listItemIdFixer'](_0xed1565)),_0x529cf5['model']['document']['registerPostFixer'](_0x3171af=>this['noTrackChangesFixer'](_0x3171af)),_0x529cf5['model']['document']['on']('change:data',(_0x107837,_0x54afc2)=>{if(_0x54afc2['isUndo']||!_0x54afc2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a4556){if(_0x3a4556['batch']['isUndo']||!_0x3a4556['batch']['isLocal'])return!0x1;let _0xb548d2=!0x1;const _0x4afaa6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x586d81=>_0x586d81['data']&&'listItemId'==_0x586d81['data']['key'])['filter'](_0x3293a0=>_0x3293a0['data']['newValue']&&_0x3293a0['data']['oldValue']);for(const _0x30b2ed of _0x4afaa6)Ht(_0x30b2ed)||(_0x3a4556['removeMarker'](_0x30b2ed['getFirstMarker']()),_0xb548d2=!0x0);return _0xb548d2;}['noTrackChangesFixer'](_0x451ede){if(_0x451ede['batch']['isUndo']||!_0x451ede['batch']['isLocal'])return!0x1;const _0x4b40dc=this['editor']['model']['document']['differ'],_0x463c64=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x463c64['trackChangesCommand']['value'])return!0x1;let _0xc3b5ef=!0x1;const _0x27d2d8=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0xb4fdf0=_0x4b40dc['getChanges']()['filter'](_0x2390d1=>'attribute'==_0x2390d1['type'])['filter'](_0x3dd376=>_0x27d2d8['has'](_0x3dd376['attributeKey']));if(0x0==_0xb4fdf0['length'])return _0xc3b5ef;const _0x5a4f65=new Set(_0x4b40dc['getMarkersToAdd']()['filter'](_0x3524fb=>{if(!_0x3524fb['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x1307da=_0x1e81d1(_0x3524fb['name'])['subType']['split']('|')[0x0];return _0x27d2d8['has'](_0x1307da);})['map'](_0x25973a=>_0x1e81d1(_0x25973a['name'])['id']));for(const _0x2eae4d of _0xb4fdf0){const _0x460bc8=_0x463c64['_findSuggestions'](_0x2eae4d['range'],'attribute')['filter'](_0x432d7b=>{if(_0x432d7b['meta']['isNextTo'])return!0x1;if(_0x5a4f65['has'](_0x432d7b['suggestion']['id']))return!0x1;const _0x1e8865=_0x463c64['_getAttributeKey'](_0x432d7b['suggestion']);return _0x27d2d8['has'](_0x1e8865);})['map'](_0x1b0551=>_0x1b0551['suggestion']);if(_0x460bc8['length']){for(const _0x31e166 of _0x460bc8)_0x451ede['removeMarker'](_0x31e166['getFirstMarker']());_0xc3b5ef=!0x0;}}return _0xc3b5ef;}['assureChains'](){const _0xef3694=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23066e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3944ef;const _0x5bec32=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e70db=>{if(_0x5e70db['data']['oldRange']||!_0x5e70db['data']['newRange'])return null;if(!_0x5e70db['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39623f}=_0x1e81d1(_0x5e70db['name']);if(!_0xef3694['hasSuggestion'](_0x39623f))return null;const _0x2cea47=_0xef3694['getSuggestion'](_0x39623f);return _0x23066e['includes'](_0x2cea47['data']['key']);})['map'](_0x507bf6=>{const {id:_0x331e49}=_0x1e81d1(_0x507bf6['name']),_0x82844b=_0xef3694['getSuggestion'](_0x331e49);return _0x3944ef=_0x82844b['attributes']['groupId'],_0x82844b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5bec32['size'])return;const _0xd5b585=_0xef3694['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f1a14=>'attribute'==_0x4f1a14['type']&&_0x4f1a14['data']&&_0x23066e['includes'](_0x4f1a14['data']['key'])&&_0x4f1a14['attributes']['groupId']!=_0x3944ef)['map'](_0x4755fd=>({'listItem':_0x4755fd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4755fd['attributes']['groupId']})),_0x575a23=new Set();for(const {groupId:_0x42dc39,listItem:_0x52ecb1}of _0xd5b585)_0x5bec32['has'](_0x52ecb1)&&_0x575a23['add'](_0x42dc39);for(const _0x1521fa of _0xef3694['getSuggestions']())_0x575a23['has'](_0x1521fa['attributes']['groupId'])&&_0x1521fa['setAttribute']('groupId',_0x3944ef);}['_supportLegacySuggestions'](){const _0x24a1b9=this['editor'],_0x15645b=_0x24a1b9['locale'],_0x2caef2=_0x24a1b9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2caef2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3efea2,_0x68fbb7){const _0x48ad2f=[];for(let _0x8c7c91 of _0x3efea2)_0x8c7c91['start']['nodeAfter']===_0x8c7c91['end']['parent']&&(_0x8c7c91=_0x24a1b9['model']['createRange'](_0x24a1b9['model']['createPositionAt'](_0x8c7c91['start']['nodeAfter'],0x0))),_0x48ad2f['push'](_0x8c7c91);_0x24a1b9['model']['change'](_0x532e2d=>{const _0x5e18c5=_0x24a1b9['model']['document']['selection'],_0x501091=Array['from'](_0x5e18c5['getRanges']())['map'](_0x11acd1=>_0x1a0aad['fromRange'](_0x11acd1));_0x532e2d['setSelection'](_0x48ad2f),_0x24a1b9['commands']['get'](_0x68fbb7['commandName'])['refresh'](),_0x68fbb7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x24a1b9['execute'](_0x68fbb7['commandName'],..._0x68fbb7['commandParams']),_0x532e2d['setSelection'](_0x501091);for(const _0x46d401 of _0x501091)_0x46d401['detach']();});}),_0x2caef2['descriptionFactory']['registerElementLabel'](function(_0x32c47b){const _0x164ef2=!_0x24a1b9['model']['schema']['isObject'](_0x32c47b),_0x4aba99=_0x32c47b['previousSibling'],_0x34bf31=_0x32c47b['nextSibling'],_0x5dc1e9=_0x32c47b['getAttribute']('listItemId'),_0x1d6f21=!_0x4aba99||_0x4aba99['getAttribute']('listItemId')!==_0x5dc1e9,_0x562d0f=!_0x34bf31||_0x34bf31['getAttribute']('listItemId')!==_0x5dc1e9;return _0x164ef2&&Boolean(_0x5dc1e9)&&_0x1d6f21&&_0x562d0f;},_0x36f92b=>At(_0x15645b,'ELEMENT_LIST_ITEM',_0x36f92b));}['_registerLegacyDescription'](){const _0x1cc05f=this['editor'],_0x38dc30=_0x1cc05f['locale'];function _0x3fd1a5(_0x91948c){const _0x3e2883=_0x1cc05f['commands']['get']('bulletedList')['value'],_0xd56cfd=_0x1cc05f['commands']['get']('numberedList')['value'];return'numberedList'===_0x91948c?_0x3e2883:_0xd56cfd;}_0x1cc05f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x301639){if('formatBlock'!=_0x301639['type'])return;const {data:_0x1511c4}=_0x301639;if(!_0x1511c4)return;let _0x30bc7c,_0x28fe77,_0x238054,_0x465c8d;switch(_0x1511c4['commandName']){case'bulletedList':_0x238054=_0x1511c4['commandParams'][0x0]['forceValue'],_0x465c8d=_0x3fd1a5(_0x1511c4['commandName']),_0x30bc7c=_0x238054?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x465c8d&&_0x1cc05f['config']['get']('list.multiBlock')||(_0x30bc7c='*Change\x20to:*\x20%0'),_0x28fe77={'type':'format','content':At(_0x38dc30,_0x30bc7c,At(_0x38dc30,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x238054=_0x1511c4['commandParams'][0x0]['forceValue'],_0x465c8d=_0x3fd1a5(_0x1511c4['commandName']),_0x30bc7c=_0x238054?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x465c8d&&_0x1cc05f['config']['get']('list.multiBlock')||(_0x30bc7c='*Change\x20to:*\x20%0'),_0x28fe77={'type':'format','content':At(_0x38dc30,_0x30bc7c,At(_0x38dc30,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x30bc7c='*Indent:*\x20%0',_0x28fe77={'type':'format','content':At(_0x38dc30,_0x30bc7c,At(_0x38dc30,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x30bc7c=function(_0x31ff68){const _0x5897ec=_0x31ff68['getFirstRange']();let _0x56a5fe=_0x5897ec['start']['nodeAfter'];for(;_0x56a5fe&&_0x5897ec['containsItem'](_0x56a5fe);){if(_0x56a5fe['getAttribute']('listIndent')>0x0)return!0x1;_0x56a5fe=_0x56a5fe['nextSibling'];}return!0x0;}(_0x301639)?At(_0x38dc30,'*Format:*\x20remove\x20from\x20%0',At(_0x38dc30,function(_0x1b92d3){return'ELEMENT_'+_0x1b92d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x301639))):At(_0x38dc30,'*Outdent:*\x20%0',At(_0x38dc30,'ELEMENT_LIST_ITEM')),_0x28fe77={'type':'format','content':_0x30bc7c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1511c4['multipleBlocks']&&(_0x30bc7c='*Merge:*\x20%0',_0x28fe77={'type':'deletion','content':At(_0x38dc30,_0x30bc7c,At(_0x38dc30,'ELEMENT_LIST_ITEM'))});}return _0x28fe77;});}}function Ht(_0x2e49da){let _0x4d00eb=_0x2e49da['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4d00eb;){const _0x5c1a58=_0x4d00eb['getAttribute']('listItemId');if(!_0x5c1a58)return!0x1;if(_0x5c1a58==_0x2e49da['data']['newValue'])return'newValue';if(_0x5c1a58==_0x2e49da['data']['oldValue'])return'oldValue';_0x4d00eb=_0x4d00eb['previousSibling'];}return!0x1;}class $t extends _0x3995f9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x10135f=this['editor']['config']['get']('list.properties'),_0x48ff36=this['editor']['plugins']['get']('TrackChangesEditing');_0x10135f['styles']&&_0x48ff36['enableDefaultAttributesIntegration']('listStyle'),_0x10135f['reversed']&&_0x48ff36['enableDefaultAttributesIntegration']('listReversed'),_0x10135f['startIndex']&&_0x48ff36['enableDefaultAttributesIntegration']('listStart');const _0x6d8627={'type':'format','content':''};_0x48ff36['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x132f34=this['editor']['locale'];_0x48ff36['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x132f34,'FORMAT_LIST_REVERSED')),_0x48ff36['descriptionFactory']['registerDescriptionCallback'](_0x48871e=>{const {data:_0x267d4f}=_0x48871e;if(_0x267d4f&&'listReversed'==_0x267d4f['key'])return null==_0x267d4f['newValue']||0x0==_0x267d4f['newValue']&&null==_0x267d4f['oldValue']?_0x6d8627:void 0x0;}),_0x48ff36['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x132f34,'FORMAT_LIST_START')),_0x48ff36['descriptionFactory']['registerDescriptionCallback'](_0x1db019=>{const {data:_0x448fa9}=_0x1db019;if(_0x448fa9&&'listStart'==_0x448fa9['key'])return null==_0x448fa9['newValue']||0x1==_0x448fa9['newValue']&&null==_0x448fa9['oldValue']?_0x6d8627:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x227636=>{if(_0x227636['batch']['isUndo'])return!0x1;let _0x2b3e13=!0x1;const _0x3ae9d6=_0x48ff36['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41fbec=>{const _0x4339ab=_0x48ff36['_getAttributeKey'](_0x41fbec);return'listStart'==_0x4339ab||'listReversed'==_0x4339ab;});for(const _0x39b57d of _0x3ae9d6){const _0x116a69=_0x39b57d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x116a69||'customNumbered'==_0x116a69)continue;_0x48ff36['_findSuggestions'](_0x39b57d['getFirstRange'](),'attribute')['find'](_0x7af3c4=>'listType'==_0x48ff36['_getAttributeKey'](_0x7af3c4['suggestion']))||(_0x227636['removeMarker'](_0x39b57d['getFirstMarker']()),_0x2b3e13=!0x0);}return _0x2b3e13;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29e840){const _0x30c1c8=this['editor']['locale'],{data:_0x348dad}=_0x29e840,_0x2ea080={'type':'format','content':''};if(!_0x348dad||'listStyle'!=_0x348dad['key'])return;if(!_0x348dad['oldValue'])return'default'==_0x348dad['newValue']?_0x2ea080:{'type':'format','content':''+At(_0x30c1c8,'*Set\x20format:*\x20%0',At(_0x30c1c8,this['_getTranslationKeyForListStyle'](_0x348dad['newValue'])))};if(!_0x348dad['newValue']){if('default'==_0x348dad['oldValue'])return _0x2ea080;let _0x250886=_0x29e840['head'];for(;_0x250886;){if(_0x250886['data']&&'listType'==_0x250886['data']['key']&&_0x250886['data']['newValue'])return _0x2ea080;_0x250886=_0x250886['next'];}return{'type':'format','content':''+At(_0x30c1c8,'*Remove\x20format:*\x20%0',At(_0x30c1c8,this['_getTranslationKeyForListStyle'](_0x348dad['oldValue'])))};}if('default'!=_0x348dad['newValue'])return{'type':'format','content':''+At(_0x30c1c8,'*Set\x20format:*\x20%0',At(_0x30c1c8,this['_getTranslationKeyForListStyle'](_0x348dad['newValue'])))};let _0x9c126a=_0x29e840['head'];for(;_0x9c126a;){if(_0x9c126a['data']&&'listType'==_0x9c126a['data']['key']&&_0x9c126a['data']['newValue']&&_0x9c126a['data']['oldValue'])return _0x2ea080;_0x9c126a=_0x9c126a['next'];}return{'type':'format','content':At(_0x30c1c8,'*Set\x20format:*\x20%0',At(_0x30c1c8,'ELEMENT_'+_0x29e840['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x107591=this['editor'],_0x4010d1=_0x107591['locale'];_0x107591['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd219=>{if('formatBlock'!=_0x1cd219['type'])return;const {data:_0x39391d}=_0x1cd219;if(!_0x39391d)return;let _0x4e60af,_0x5a0192;switch(_0x39391d['commandName']){case'listStyle':_0x4e60af='*Change\x20to:*\x20%0',_0x5a0192={'type':'format','content':At(_0x4010d1,_0x4e60af,At(_0x4010d1,this['_getTranslationKeyForListStyle'](_0x39391d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e60af=_0x39391d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a0192={'type':'format','content':At(_0x4010d1,_0x4e60af)};break;case'listStart':_0x4e60af='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a0192={'type':'format','content':At(_0x4010d1,_0x4e60af,_0x39391d['commandParams'][0x0]['startIndex'])};}return _0x5a0192;});}['_getTranslationKeyForListStyle'](_0x5a5a7e){return'ELEMENT_'+function(_0x28ce7d){if(Wt['includes'](_0x28ce7d))return'bulleted';if(Vt['includes'](_0x28ce7d))return'numbered';return null;}(_0x5a5a7e)['toUpperCase']()+'_LIST_'+_0x5a5a7e['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 _0x3995f9{['afterInit'](){const _0x4464e6=this['editor'];_0x4464e6['commands']['get']('emoji')&&_0x4464e6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x3995f9{static get['requires'](){return[lt];}['init'](){const _0x16b66f=this['editor'],_0x2f71a3=_0x16b66f['plugins']['get']('TrackChangesEditing'),_0x6247a6=_0x16b66f['commands']['get']('enter');_0x2f71a3['enableCommand']('enter',()=>{_0x16b66f['model']['change'](_0x432334=>{const _0x2d5371=_0x16b66f['model']['document']['selection'],_0x1674cb=_0x2d5371['getFirstPosition'](),_0x1f0d39=_0x1a0aad['fromRange'](_0x2d5371['getFirstRange']());if(_0x6247a6['enterBlock'](_0x432334)){const _0x5a6699=_0x16b66f['model']['createPositionAt'](_0x1674cb['parent']['nextSibling'],0x0),_0x3dd6c2=_0x432334['createRange'](_0x1674cb,_0x5a6699);_0x2f71a3['markInsertion'](_0x3dd6c2);}else _0x432334['setSelection'](_0x432334['createRange'](_0x1f0d39['end']));_0x1f0d39['detach'](),_0x6247a6['fire']('afterExecute',{'writer':_0x432334});});});}}class Kt extends _0x3995f9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x56e6a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x56e6a7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x56e6a7['enableCommand']('findNext'),_0x56e6a7['enableCommand']('findPrevious'),_0x56e6a7['enableCommand']('replace'),_0x56e6a7['enableCommand']('replaceAll');}['handleFindCommand'](_0x10ddf7,_0x36f7f5,_0x2cac96={}){const _0x21de6e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x10ddf7(_0x586411=>{let _0x57fc3d=('string'==typeof _0x36f7f5?_0x21de6e['findByTextCallback'](_0x36f7f5,_0x2cac96):_0x36f7f5)(_0x586411);Array['isArray'](_0x57fc3d)&&(_0x57fc3d={'results':_0x57fc3d,'searchText':'string'==typeof _0x36f7f5?_0x36f7f5:''});const _0x353c2d=_0x57fc3d['results']['filter'](_0x5c9840=>!0x1===this['_isInDeletionRange'](_0x5c9840,_0x586411['item']));return{..._0x57fc3d,'results':_0x353c2d};},_0x2cac96);}['_isInDeletionRange'](_0xf835f8,_0x1ded6c){const _0x43150d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ded6c,_0xf835f8['start']),this['editor']['model']['createPositionAt'](_0x1ded6c,_0xf835f8['end']));for(const _0x5b5ae3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x43150d['getIntersection'](_0x5b5ae3['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 _0x3995f9{['afterInit'](){const _0x59d13a=this['editor']['locale'],_0x22630a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xd9d291,commandName:_0x32f709}of Xt)this['editor']['plugins']['has'](_0xd9d291)&&_0x22630a['enableDefaultAttributesIntegration'](_0x32f709);_0x22630a['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x59d13a,'FORMAT_FONT_SIZE')),_0x22630a['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x59d13a,'FORMAT_FONT_FAMILY')),_0x22630a['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x59d13a,'FORMAT_FONT_COLOR')),_0x22630a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x59d13a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56dfa0=this['editor'],_0x8b515c=_0x56dfa0['locale'];_0x56dfa0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58b0c8=>{const _0xe372d3=_0x8b515c['t'];if('formatInline'!=_0x58b0c8['type'])return;const {data:_0x158d0a}=_0x58b0c8;if(null!=_0x158d0a){if('fontSize'==_0x158d0a['commandName']){const _0x23f152=_0x158d0a['commandParams'][0x0]['value'];if(_0x23f152){const _0x5537e4=_0xe372d3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xaef925=>_0xaef925['model']==_0x23f152)['title'])['toLowerCase']();return{'type':'format','content':At(_0x8b515c,'*Set\x20font\x20size:*\x20%0',_0x5537e4)};}return{'type':'format','content':At(_0x8b515c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x158d0a['commandName']){const _0x2e4f3e=_0x158d0a['commandParams'][0x0]['value'];return _0x2e4f3e?{'type':'format','content':At(_0x8b515c,'*Set\x20font\x20family:*\x20%0',_0x2e4f3e)}:{'type':'format','content':At(_0x8b515c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x158d0a['commandName']){const _0xe06661=_0x158d0a['commandParams'][0x0]['value'];if(_0xe06661){const _0x3f380b=_0x2710d2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2bd834=>_0x2bd834['model']==_0xe06661);let _0x3d1039=_0xe06661,_0x4286c5='';return _0x3f380b&&(_0x3d1039=_0x3f380b['label'],_0x4286c5=_0xe372d3(_0x3d1039)['toLowerCase']()),{'type':'format','content':At(_0x8b515c,'*Set\x20font\x20color:*\x20%0',_0x4286c5)['trim'](),'color':{'value':_0xe06661,'title':_0x4286c5||_0x3d1039}};}return{'type':'format','content':At(_0x8b515c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x158d0a['commandName']){const _0x4f6074=_0x158d0a['commandParams'][0x0]['value'];if(_0x4f6074){const _0x430f8f=_0x2710d2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1240a8=>_0x1240a8['model']==_0x4f6074);let _0x485b03=_0x4f6074,_0x48a38d='';return _0x430f8f&&(_0x485b03=_0x430f8f['label'],_0x48a38d=_0xe372d3(_0x485b03)['toLowerCase']()),{'type':'format','content':At(_0x8b515c,'*Set\x20font\x20background\x20color:*\x20%0',_0x48a38d)['trim'](),'color':{'value':_0x4f6074,'title':_0x48a38d||_0x485b03}};}return{'type':'format','content':At(_0x8b515c,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x3995f9{['afterInit'](){const {plugins:_0x12774e}=this['editor'];_0x12774e['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x12774e['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5da20f,plugins:_0x1e678f,commands:_0x91532a}=this['editor'],_0x3d45e2=_0x1e678f['get']('TrackChangesEditing');_0x91532a['get']('footnotesStyle')&&_0x3d45e2['enableDefaultAttributesIntegration']('footnotesStyle'),_0x91532a['get']('footnotesStart')&&_0x3d45e2['enableDefaultAttributesIntegration']('footnotesStart'),_0x3d45e2['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x5da20f,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3d45e2['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x5da20f,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2eb7c0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x27e92a,commands:_0x3c3a23}=this['editor'];_0x3c3a23['get']('insertFootnote')&&_0x2eb7c0['enableCommand']('insertFootnote'),_0x2eb7c0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x58319b=>At(_0x27e92a,'ELEMENT_FOOTNOTE_REF',_0x58319b)),_0x2eb7c0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x473c40=>At(_0x27e92a,'ELEMENT_FOOTNOTE_DEFINITION',_0x473c40)),_0x2eb7c0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1293ac=>At(_0x27e92a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1293ac));}}class Qt extends _0x3995f9{['afterInit'](){const _0x246f1b=this['editor'],_0x3d9630=_0x246f1b['plugins']['get']('TrackChangesEditing'),_0x1a90c9=_0x246f1b['commands']['get']('copyFormat'),_0x10ba4a=_0x246f1b['commands']['get']('pasteFormat');_0x1a90c9&&_0x10ba4a&&(_0x3d9630['enableDefaultAttributesIntegration']('pasteFormat'),_0x3d9630['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x26dad0=this['editor'],_0x993171=_0x26dad0['locale'];_0x26dad0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ceaf2=>{if('formatBlock'!=_0x2ceaf2['type']&&'formatInline'!=_0x2ceaf2['type'])return;const {data:_0x172d4b}=_0x2ceaf2;if(_0x172d4b&&'pasteFormat'===_0x172d4b['commandName']){const _0x131f01=[],_0x314c3e=_0x172d4b['commandParams'][0x0];for(const [_0x486198,_0x5c1dd4]of Object['entries'](_0x314c3e))_0x131f01['push'](Zt(_0x26dad0,_0x486198,_0x5c1dd4));return _0x131f01['length']?{'type':'format','content':At(_0x993171,'*Set\x20format\x20to:*\x20%0',_0x131f01['join'](',\x20'))}:{'type':'format','content':At(_0x993171,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x53148c,_0xfb4e12,_0x3de441){const _0x1dd770=_0x53148c['locale']['t'],_0x18e524=_0xfb4e12['split'](/(?=[A-Z])/)['join']('\x20'),_0x40149d=_0x1dd770(_0x18e524['charAt'](0x0)['toUpperCase']()+_0x18e524['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3de441)return _0x40149d;if('fontColor'===_0xfb4e12||'fontBackgroundColor'===_0xfb4e12){const _0x5e21b7=_0x2710d2(_0x53148c['config']['get']('fontColor.colors'))['find'](_0x443c2a=>_0x443c2a['model']==_0x3de441);return _0x40149d+'\x20('+(_0x5e21b7?_0x1dd770(_0x5e21b7['label'])['toLowerCase']():_0x3de441)+')';}if('fontSize'===_0xfb4e12&&isNaN(parseFloat(_0x3de441))){const _0xe615c9=_0x53148c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53148c['config']['get']('fontSize.options'))['find'](_0x59812e=>_0x59812e['model']==_0x3de441);return _0x40149d+'\x20('+(_0xe615c9?_0x1dd770(_0xe615c9['title'])['toLowerCase']():_0x3de441)+')';}return _0x40149d+'\x20('+_0x3de441+')';}class Jt extends _0x3995f9{['_headingOptions'];['afterInit'](){const _0x33dee8=this['editor'];if(!_0x33dee8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x33dee8['config']['get']('heading.options');const _0xb25d8=_0x33dee8['locale'],_0x435090=_0x33dee8['plugins']['get']('TrackChangesEditing');_0x435090['enableDefaultAttributesIntegration']('heading');for(const _0xe3c9fb of this['_headingOptions'])'paragraph'!=_0xe3c9fb['model']&&_0x435090['descriptionFactory']['registerElementLabel'](_0xe3c9fb['model'],_0x4c68cb=>{const _0x207fef=this['_getHeadingLevel'](_0xe3c9fb['model']);return null!==_0x207fef?_0x262bcd(_0x4c68cb,_0x207fef):_0x255a83(_0x4c68cb,_0xe3c9fb['title']);});function _0x262bcd(_0x5182bb,_0x373566){return At(_0xb25d8,'ELEMENT_HEADING',[_0x5182bb,_0x373566]);}function _0x255a83(_0x588aba,_0x460b88){return At(_0xb25d8,'ELEMENT_HEADING_CUSTOM',[_0x588aba,_0x460b88]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50aedd=this['editor'],_0x1349ef=_0x50aedd['locale'];function _0x3272cc(_0x152b69,_0x3fdb65){return At(_0x1349ef,'ELEMENT_HEADING_CUSTOM',[_0x152b69,_0x3fdb65]);}_0x50aedd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3815d4=>{if('formatBlock'!=_0x3815d4['type'])return;const {data:_0x4a69d7}=_0x3815d4;if(_0x4a69d7&&'heading'==_0x4a69d7['commandName']){const _0x173aa6=_0x4a69d7['commandParams'][0x0]['value'],_0x523375=this['_getHeadingLevel'](_0x173aa6);if(null!==_0x523375)return{'type':'format','content':At(_0x1349ef,'*Change\x20to:*\x20%0',(_0x518352=0x1,_0x2e35f0=_0x523375,At(_0x1349ef,'ELEMENT_HEADING',[_0x518352,_0x2e35f0])))};const _0x25c01c=this['_headingOptions']['find'](_0x266037=>_0x266037['model']===_0x173aa6)['title'];return{'type':'format','content':At(_0x1349ef,'*Change\x20to:*\x20%0',_0x3272cc(0x1,_0x25c01c))};}var _0x518352,_0x2e35f0;});}['_getHeadingLevel'](_0x369021){const _0x56799d=_0x369021['match'](/^heading(\d+)/);if(_0x56799d)return _0x56799d[0x1];const _0x5b51fc=this['_headingOptions']?.['find'](_0x992333=>_0x992333['model']==_0x369021);if(_0x5b51fc&&_0x5b51fc['view']){const _0x5498a4=_0x5b51fc['view'],_0x38e081=(_0x5498a4['name']??_0x5498a4)['match'](/^h(\d+)/);if(_0x38e081)return _0x38e081[0x1];}return null;}}class te extends _0x3995f9{['afterInit'](){const _0x189f56=this['editor'];if(!_0x189f56['plugins']['has']('HighlightEditing'))return;const _0x37eaff=_0x189f56['plugins']['get']('TrackChangesEditing'),_0x2b12a7=_0x189f56['locale'];_0x37eaff['enableDefaultAttributesIntegration']('highlight'),_0x37eaff['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x2b12a7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x809805=this['editor'],_0x4a4d04=_0x809805['locale'];_0x809805['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328830=>{if('formatInline'!=_0x328830['type'])return;const {data:_0x2a312a}=_0x328830;if(_0x2a312a&&'highlight'==_0x2a312a['commandName']){const _0x3b3077=_0x4a4d04['t'],_0x4b6c44=_0x2a312a['commandParams'][0x0]['value'];if(_0x4b6c44){const _0x474c36=_0x809805['config']['get']('highlight.options')['find'](_0x20dc0e=>_0x20dc0e['model']==_0x4b6c44),_0x264110=_0x3b3077(_0x474c36['title'])['toLowerCase']();return{'type':'format','content':At(_0x4a4d04,'*Set\x20highlight:*\x20%0',_0x264110),'color':{'value':_0x474c36['color'],'title':_0x474c36['title']}};}return{'type':'format','content':At(_0x4a4d04,'*Remove\x20highlight*',At(_0x4a4d04,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x3995f9{['afterInit'](){const _0x15e1ae=this['editor'];if(!_0x15e1ae['plugins']['has']('HorizontalLineEditing'))return;_0x15e1ae['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x27697e=_0x15e1ae['plugins']['get']('TrackChangesEditing'),_0x2d9b91=_0x15e1ae['locale'];_0x27697e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2bfbb2=>At(_0x2d9b91,'ELEMENT_HORIZONTAL_LINE',_0x2bfbb2));}}class ne extends _0x3995f9{['afterInit'](){const _0x3cb843=this['editor'];if(!_0x3cb843['plugins']['has']('HtmlEmbed'))return;const _0x41a45c=_0x3cb843['plugins']['get']('TrackChangesEditing'),_0x3b01d6=_0x3cb843['locale'];_0x41a45c['descriptionFactory']['registerElementLabel']('rawHtml',_0x26b0e6=>At(_0x3b01d6,'ELEMENT_HTML_EMBED',_0x26b0e6)),_0x41a45c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x41a45c['descriptionFactory']['registerDescriptionCallback'](_0x3d4a79=>{if('attribute'!=_0x3d4a79['type'])return;const {data:_0x1bdf51}=_0x3d4a79;if(_0x1bdf51&&'value'==_0x1bdf51['key']&&_0x3d4a79['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xab9984=At(_0x3b01d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x3b01d6,'*Change\x20%0\x20content*',_0xab9984)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x116e28=this['editor'],_0x59270d=_0x116e28['locale'];_0x116e28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x115a80=>{if('formatBlock'!=_0x115a80['type'])return;const {data:_0x1dd1f0}=_0x115a80;if(_0x1dd1f0&&'htmlEmbed'==_0x1dd1f0['commandName']){const _0x575bca=At(_0x59270d,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x59270d,'*Change\x20%0\x20content*',_0x575bca)};}});}}class ie extends _0x3995f9{['afterInit'](){const _0x1cdd04=this['editor'];if(!_0x1cdd04['plugins']['has']('ImageEditing'))return;const _0x3ab72b=_0x1cdd04['plugins']['get']('TrackChangesEditing'),_0x210262=_0x1cdd04['plugins']['get']('ImageUtils'),_0x1b4416=_0x1cdd04['locale'];_0x3ab72b['enableCommand']('insertImage'),_0x3ab72b['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ea91e=>At(_0x1b4416,'ELEMENT_IMAGE',_0x5ea91e)),_0x3ab72b['descriptionFactory']['registerElementLabel']('imageInline',_0x2baa13=>At(_0x1b4416,'ELEMENT_INLINE_IMAGE',_0x2baa13)),_0x3ab72b['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x1b4416,'ELEMENT_CAPTION')),_0x1cdd04['plugins']['has']('ImageUploadEditing')&&_0x3ab72b['enableCommand']('uploadImage'),_0x1cdd04['plugins']['has']('ImageBlockEditing')&&_0x1cdd04['plugins']['has']('ImageInlineEditing')&&(_0x3ab72b['enableCommand']('imageTypeInline',(_0xf8dcbe,_0x3a6055)=>{const _0xca7cbb=_0x210262['getClosestSelectedImageElement'](_0x1cdd04['model']['document']['selection']);_0x1cdd04['model']['change'](()=>{_0x3ab72b['markBlockFormat'](_0xca7cbb,{'commandName':'imageTypeInline','commandParams':[_0x3a6055]},[],'convertBlockImageToInline');});}),_0x3ab72b['enableCommand']('imageTypeBlock',(_0xf825bb,_0x461fa4)=>{_0x1cdd04['model']['change'](_0x5387de=>{let _0x53f38c=_0x210262['getClosestSelectedImageElement'](_0x1cdd04['model']['document']['selection']),_0x41cb43=_0x5387de['createRangeOn'](_0x53f38c);const _0x24b90b=tt['fromPosition'](_0x41cb43['start'],'toPrevious'),_0x336acd=tt['fromPosition'](_0x41cb43['end'],'toNext');_0x3ab72b['forceDefaultExecution'](()=>_0xf825bb(_0x461fa4)),_0x53f38c=_0x210262['getClosestSelectedImageElement'](_0x1cdd04['model']['document']['selection']),_0x41cb43=_0x5387de['createRangeOn'](_0x53f38c);const _0x45cfca=_0x5387de['createRange'](_0x24b90b,_0x336acd);_0x24b90b['detach'](),_0x336acd['detach'](),_0x3ab72b['markBlockFormat'](_0x53f38c,{'commandName':'imageTypeInline','commandParams':[_0x461fa4]},[],'convertInlineImageToBlock'),_0x45cfca['start']['isBefore'](_0x41cb43['start'])&&_0x3ab72b['markInsertion'](_0x5387de['createRange'](_0x45cfca['start'],_0x41cb43['start']),'convertInlineImageToBlock'),_0x41cb43['end']['isBefore'](_0x45cfca['end'])&&_0x3ab72b['markInsertion'](_0x5387de['createRange'](_0x41cb43['end'],_0x45cfca['end']),'convertInlineImageToBlock');});}),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ab72b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x121d51])=>{const _0x4f1473=_0x3ab72b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2cd431=_0x121d51['start'],_0x5d3efe=_0x121d51['end'];const _0x2afa04=_0x1cdd04['model']['schema']['getNearestSelectionRange'](_0x2cd431,'backward'),_0x4ab733=_0x1cdd04['model']['schema']['getNearestSelectionRange'](_0x5d3efe,'forward');_0x2afa04['isCollapsed']&&(_0x2cd431=_0x2afa04['start']),_0x4ab733['isCollapsed']&&(_0x5d3efe=_0x4ab733['end']),_0x4f1473([_0x1cdd04['model']['createRange'](_0x2cd431,_0x5d3efe)]);}),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15220a),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15220a)),_0x1cdd04['plugins']['has']('ImageCaptionEditing')&&(_0x3ab72b['enableCommand']('toggleImageCaption',(_0x2932e9,_0x5e90e8)=>{const _0x405fd7=_0x1cdd04['plugins']['get']('ImageCaptionUtils');let _0x559ef1=_0x210262['getClosestSelectedImageElement'](_0x1cdd04['model']['document']['selection']),_0x431df5=_0x405fd7['getCaptionFromImageModelElement'](_0x559ef1);_0x1cdd04['model']['change'](()=>{if(_0x431df5)return void _0x3ab72b['markDeletion'](_0x1cdd04['model']['createRangeOn'](_0x431df5));const _0x3da390=_0x210262['isBlockImage'](_0x559ef1);_0x2932e9(_0x5e90e8),_0x559ef1=_0x210262['getClosestSelectedImageElement'](_0x1cdd04['model']['document']['selection']),_0x431df5=_0x405fd7['getCaptionFromImageModelElement'](_0x559ef1),_0x3ab72b['markInsertion'](_0x1cdd04['model']['createRangeOn'](_0x431df5),_0x3da390?null:'imageCaption');});}),_0x3ab72b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15220a));const _0x35d6a2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x164531(_0x4a32bc,_0x125caa){const _0x56c5e0=_0x35d6a2['findIndex'](({type:_0x5279bf,subType:_0x403bd8})=>_0x4a32bc['type']==_0x5279bf&&_0x4a32bc['subType']==_0x403bd8),_0xdb8d47=_0x35d6a2['findIndex'](({type:_0x4615c0,subType:_0x1d9cf6})=>_0x125caa['type']==_0x4615c0&&_0x125caa['subType']==_0x1d9cf6);if(_0x56c5e0<0x0||_0xdb8d47<0x0)return!0x1;const _0x4d36f9=_0x4a32bc['getFirstRange'](),_0x211f71=_0x125caa['getFirstRange']();if((0x0==_0x56c5e0||0x1==_0x56c5e0)&&0x2==_0xdb8d47&&_0x4d36f9['isIntersecting'](_0x211f71))return!0x0;if(0x2==_0x56c5e0&&0x3==_0xdb8d47){const _0x4b7fa9=_0x3ab72b['_findSuggestions'](_0x4d36f9,'insertion')['filter'](({suggestion:_0x2df529,meta:_0x2e92dd})=>_0x2e92dd['isOwn']&&'convertInlineImageToBlock'==_0x2df529['subType']);if(_0x4b7fa9['length']>0x1&&_0x211f71['end']['isEqual'](_0x4d36f9['start']))return!0x0;if(0x1==_0x4b7fa9['length']&&(_0x4d36f9['start']['isEqual'](_0x211f71['end'])||_0x4d36f9['end']['isEqual'](_0x211f71['start'])))return!0x0;}if(0x3==_0x56c5e0&&0x3==_0xdb8d47&&_0x4d36f9['start']['isBefore'](_0x211f71['start'])){const _0x3f3fd3=_0x4d36f9['end']['nodeAfter'],_0x152399=_0x211f71['start']['nodeBefore'];return _0x210262['isBlockImage'](_0x3f3fd3)&&_0x3f3fd3===_0x152399;}return!0x1;}function _0x15220a(_0x531ff7,_0x552447){return _0x164531(_0x531ff7,_0x552447)?[_0x531ff7,_0x552447]:_0x164531(_0x552447,_0x531ff7)?[_0x552447,_0x531ff7]:null;}_0x1cdd04['plugins']['has']('ImageResize')&&(_0x3ab72b['enableDefaultAttributesIntegration']('resizeImage'),_0x3ab72b['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x1b4416,'FORMAT_IMAGE_SIZE'))),_0x1cdd04['plugins']['has']('ImageTextAlternativeEditing')&&_0x3ab72b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cdd04['plugins']['has']('PictureEditing')&&_0x3ab72b['descriptionFactory']['registerDescriptionCallback'](_0x11071f=>{if('attribute'!=_0x11071f['type'])return;const {data:_0x4994fd}=_0x11071f;return _0x4994fd&&'sources'==_0x4994fd['key']?{'type':'format','content':''}:void 0x0;}),_0x1cdd04['plugins']['has']('ImageSizeAttributes')&&_0x3ab72b['descriptionFactory']['registerDescriptionCallback'](_0x256683=>{if('attribute'!=_0x256683['type'])return;const {data:_0x556eb5}=_0x256683;return!_0x556eb5||'width'!=_0x556eb5['key']&&'height'!=_0x556eb5['key']?void 0x0:{'type':'format','content':''};}),_0x3ab72b['descriptionFactory']['registerDescriptionCallback'](_0x5d8466=>{if(!!_0x35d6a2['find'](({type:_0x317c5d,subType:_0x147167})=>_0x5d8466['type']==_0x317c5d&&_0x5d8466['subType']==_0x147167))return _0x5d8466['previous']?{}:void 0x0;}),_0x3ab72b['descriptionFactory']['registerDescriptionCallback'](_0x3ed95e=>{if('insertion'==_0x3ed95e['type']||'deletion'==_0x3ed95e['type']){const _0x2d49d4=_0x3ed95e['getContainedElement']();if(_0x2d49d4&&_0x2d49d4['is']('element','caption'))return{'type':'insertion'==_0x3ed95e['type']?'addObject':'removeObject','element':_0x2d49d4,'quantity':0x1};}}),_0x3ab72b['descriptionFactory']['registerDescriptionCallback'](_0x2034b1=>'formatBlock'==_0x2034b1['type']&&'convertInlineImageToBlock'==_0x2034b1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2034b1['type']&&'convertBlockImageToInline'==_0x2034b1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ab72b['descriptionFactory']['registerDescriptionCallback'](_0x4e4837=>{if('attribute'!=_0x4e4837['type'])return;const {data:_0x1b5230}=_0x4e4837;if(!_0x1b5230||'alt'!=_0x1b5230['key'])return;const _0x323470=_0x1b5230['newValue'];return _0x323470?{'type':'format','content':At(_0x1b4416,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x323470+'\x22')}:{'type':'format','content':At(_0x1b4416,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50b78d=this['editor'],_0xab4f7=_0x50b78d['locale'];_0x50b78d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54237e=>{if('formatBlock'!=_0x54237e['type']&&'formatInline'!=_0x54237e['type'])return;const {data:_0x1d7faf}=_0x54237e;if(_0x1d7faf){if('imageTextAlternative'==_0x1d7faf['commandName']){const _0x4ee0d8=_0x1d7faf['commandParams'][0x0]['newValue'];return _0x4ee0d8?{'type':'format','content':At(_0xab4f7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ee0d8+'\x22')}:{'type':'format','content':At(_0xab4f7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d7faf['commandName']){const _0x5d1110=_0x1d7faf['commandParams'][0x0]['width'];return _0x5d1110?{'type':'format','content':At(_0xab4f7,'*Set\x20image\x20width:*\x20%0',_0x5d1110)}:{'type':'format','content':At(_0xab4f7,'*Reset\x20image\x20width*')};}}});}}class se extends _0x3995f9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x521165=this['editor']['locale'],_0x199289=this['editor']['plugins']['get']('TrackChangesEditing');_0x199289['enableDefaultAttributesIntegration']('replaceImageSource'),_0x199289['descriptionFactory']['registerDescriptionCallback'](_0x4d47d0=>{if('attribute'!=_0x4d47d0['type'])return;const {data:_0xbcd8ed}=_0x4d47d0;return _0xbcd8ed&&'src'==_0xbcd8ed['key']?_0xbcd8ed['newValue']&&_0xbcd8ed['oldValue']?{'type':'format','content':At(_0x521165,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x419ad0=this['editor']['plugins']['get']('TrackChangesEditing');_0x419ad0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x419ad0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x419ad0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x419ad0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36a76f=this['editor'],_0x1fe4d5=_0x36a76f['locale'];_0x36a76f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ac1d=>{if('formatBlock'!=_0x13ac1d['type']&&'formatInline'!=_0x13ac1d['type'])return;const {data:_0x148674}=_0x13ac1d;if(!_0x148674||'replaceImageSource'!=_0x148674['commandName'])return;return{'type':'format','content':At(_0x1fe4d5,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x3995f9{['afterInit'](){const _0x5a5d1e=this['editor'];if(!_0x5a5d1e['plugins']['has']('ImageStyleEditing'))return;const _0xebd2e6=_0x5a5d1e['plugins']['get']('TrackChangesEditing'),_0x5e9c4a=_0x5a5d1e['plugins']['get']('ImageUtils'),_0xf85635={};_0xebd2e6['enableCommand']('imageStyle',(_0x2cfb0f,_0xa6eaa8)=>{const _0x28b9d4=_0x5a5d1e['plugins']['get']('Users')['me'],_0x3ee594=_0x5a5d1e['commands']['get']('imageStyle');let _0x595bb0=_0x5e9c4a['getClosestSelectedImageElement'](_0x5a5d1e['model']['document']['selection']),_0x528b7a=_0x5a5d1e['model']['createRangeOn'](_0x595bb0),_0x23ee54=_0x3ee594['value'];if(_0x23ee54==_0xa6eaa8['value'])return;const _0x56beb5={'commandName':'imageStyle','commandParams':[_0xa6eaa8],'formatGroupId':_0x390171()};_0x5a5d1e['model']['change'](()=>{if(_0xebd2e6['getSuggestions']()['filter'](_0xb70776=>_0xb70776['isInContent']&&_0x28b9d4==_0xb70776['author']&&('formatBlock'==_0xb70776['type']||'formatInline'==_0xb70776['type'])&&('imageStylePreApply'==_0xb70776['subType']||'imageStylePostApply'==_0xb70776['subType'])&&_0xb70776['getFirstRange']()['isEqual'](_0x528b7a))['forEach'](_0x24b75b=>_0xebd2e6['discardSuggestion'](_0x24b75b['head'])),_0x595bb0=_0x5e9c4a['getClosestSelectedImageElement'](_0x5a5d1e['model']['document']['selection']),_0x528b7a=_0x5a5d1e['model']['createRangeOn'](_0x595bb0),_0x3ee594['refresh'](),_0x5a5d1e['commands']['get']('imageTypeInline')['refresh'](),_0x5a5d1e['commands']['get']('imageTypeBlock')['refresh'](),_0x23ee54=_0x3ee594['value'],_0x23ee54!=_0xa6eaa8['value'])return _0x5e9c4a['isInlineImage'](_0x595bb0)&&_0x3ee594['shouldConvertImageType'](_0xa6eaa8['value'],_0x595bb0)?(_0x2cfb0f({..._0xa6eaa8,'setImageSizes':!0x1}),_0x595bb0=_0x5e9c4a['getClosestSelectedImageElement'](_0x5a5d1e['model']['document']['selection']),void _0xebd2e6['markBlockFormat'](_0x595bb0,{..._0x56beb5,'commandReversedParams':[{'value':_0x23ee54||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e9c4a['isBlockImage'](_0x595bb0)?_0xebd2e6['markBlockFormat'](_0x595bb0,_0x56beb5,[],'imageStylePostApply'):_0xebd2e6['markInlineFormat'](_0x528b7a,_0x56beb5,'imageStylePostApply'));});});for(const _0x1b738b of _0x5a5d1e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf85635[_0x1b738b['name']]=_0x1b738b['title']['toLowerCase']();_0xebd2e6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xebd2e6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xebd2e6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xebd2e6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57c15b])=>{_0x5e9c4a['setImageNaturalSizeAttributes'](_0x57c15b['getContainedElement']());}),_0xebd2e6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x612d89,_0x2ec104)=>{_0xebd2e6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x612d89,{'commandName':_0x2ec104['commandName'],'commandParams':_0x2ec104['commandReversedParams']});}),_0xebd2e6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x368244,_0x867197){if(_0x109809(_0x368244,_0x867197))return[_0x368244,_0x867197];if(_0x109809(_0x867197,_0x368244))return[_0x867197,_0x368244];return null;});const _0x1351f6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x109809(_0x568718,_0x541ba2){const _0x14c5b2=_0x1351f6['findIndex'](({type:_0x142a97,subType:_0x23fe3f})=>_0x568718['type']==_0x142a97&&_0x568718['subType']==_0x23fe3f),_0x367769=_0x1351f6['findIndex'](({type:_0x463c5e,subType:_0x16ff38})=>_0x541ba2['type']==_0x463c5e&&_0x541ba2['subType']==_0x16ff38);if(_0x14c5b2<0x0||_0x367769<0x0)return!0x1;const _0x18f9fd=_0x568718['getFirstRange'](),_0x277193=_0x541ba2['getFirstRange']();if((0x0==_0x14c5b2||0x1==_0x14c5b2)&&0x2==_0x367769&&_0x18f9fd['isIntersecting'](_0x277193))return!0x0;if(0x2==_0x14c5b2&&0x3==_0x367769){const _0x23236e=_0xebd2e6['_findSuggestions'](_0x18f9fd,'insertion')['filter'](({suggestion:_0x94714,meta:_0x118bea})=>_0x118bea['isOwn']&&'convertInlineImageToBlock'==_0x94714['subType']);if(_0x23236e['length']>0x1&&_0x277193['end']['isEqual'](_0x18f9fd['start']))return!0x0;if(0x1==_0x23236e['length']&&(_0x18f9fd['start']['isEqual'](_0x277193['end'])||_0x18f9fd['end']['isEqual'](_0x277193['start'])))return!0x0;}if(0x3==_0x14c5b2&&0x3==_0x367769&&_0x18f9fd['start']['isBefore'](_0x277193['start'])){const _0x5e011b=_0x18f9fd['end']['nodeAfter'],_0x28c7e1=_0x277193['start']['nodeBefore'];return _0x5e9c4a['isBlockImage'](_0x5e011b)&&_0x5e011b===_0x28c7e1;}return!0x1;}_0x5a5d1e['model']['document']['registerPostFixer'](()=>{let _0x28e7e3=!0x1;const _0x3ddf7d=Array['from'](_0x5a5d1e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2537d6,data:_0x56aba4}of _0x3ddf7d){const {group:_0x431bc2,type:_0x329101,subType:_0x243807,id:_0x136de0}=_0x1e81d1(_0x2537d6);if('suggestion'==_0x431bc2&&_0xebd2e6['hasSuggestion'](_0x136de0)){if('formatBlock'==_0x329101&&('imageStylePreApply'==_0x243807||'imageStylePostApply'==_0x243807)){const _0x235b0c=_0xebd2e6['getSuggestion'](_0x136de0);if(_0x56aba4['newRange']){const _0x3b7b7a=_0x235b0c['getFirstRange']()['getContainedElement']();if(_0x5e9c4a['isBlockImage'](_0x3b7b7a))continue;_0xebd2e6['discardSuggestion'](_0x235b0c),_0x28e7e3=!0x0;}}if('insertion'==_0x329101&&'imageCaption'==_0x243807&&!_0x56aba4['newRange']){const _0x124945=_0xebd2e6['getSuggestion'](_0x136de0);_0x124945['next']&&_0x124945['next']['isInContent']&&(_0xebd2e6['discardSuggestion'](_0x124945['next']),_0x28e7e3=!0x0);}}}return _0x28e7e3;}),this['_registerLegacyDescription'](_0xf85635);}['_registerLegacyDescription'](_0x3c7bfc){const _0x3cb6ca=this['editor'],_0x2e2396=_0x3cb6ca['locale'];_0x3cb6ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308dee=>{if('formatBlock'!=_0x308dee['type']&&'formatInline'!=_0x308dee['type'])return;const {data:_0x4f9bf7}=_0x308dee;if(!_0x4f9bf7||'imageStyle'!=_0x4f9bf7['commandName'])return;const _0xc57381=_0x4f9bf7['commandParams'][0x0]['value'];return _0x41c1a7('side'===_0xc57381?At(_0x2e2396,'FORMAT_SIDE_IMAGE'):_0x3c7bfc[_0xc57381]||_0xc57381);function _0x41c1a7(_0x54d87d){return{'type':'format','content':At(_0x2e2396,'*Format:*\x20%0',_0x54d87d)};}});}}class oe extends _0x3995f9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x46f2e3){super(_0x46f2e3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xa3d10e=this['editor'],_0x263973=_0xa3d10e['commands']['get']('importWord'),_0x18d4db=_0xa3d10e['commands']['get']('trackChanges');_0x263973&&(_0x263973['on']('execute',(_0x3f99a2,[,_0x20b26c])=>{this['_trackChangesValueDuringImport']=_0x18d4db['value'],_0x20b26c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x263973,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x263973,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x18d4db['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xa3d10e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x35f41f,_0x2dadf0){const {suggestions:_0x5648ce}=_0x2dadf0,_0xef9512=this['editor']['commands']['get']('trackChanges'),_0x4a866e=_0xef9512['value'];this['_trackChangesValueDuringImport']!==_0x4a866e&&(_0xef9512['execute'](),this['_trackChangesExecuted']=!0x0),_0x5648ce&&_0x5648ce['forEach'](({id:_0x3be6c2,type:_0x1cd5b5,author:_0x334bcf,created_at:_0x54380c})=>{const _0x423632={'id':_0x3be6c2,'type':_0x1cd5b5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x334bcf,'createdAt':_0x54380c?new Date(_0x54380c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x423632);});}}class ae extends _0x3995f9{['afterInit'](){const _0xe440a8=this['editor'],_0x3e212b=_0xe440a8['plugins']['get']('TrackChangesEditing');if(_0xe440a8['plugins']['has']('IndentEditing')&&(_0x3e212b['enableCommand']('indent'),_0x3e212b['enableCommand']('outdent')),_0xe440a8['plugins']['has']('IndentBlock')){for(const _0x2fec40 of['indentBlock','outdentBlock'])_0x3e212b['enableDefaultAttributesIntegration'](_0x2fec40);if(_0xe440a8['plugins']['has']('ListEditing')){for(const _0x411805 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3e212b['enableDefaultAttributesIntegration'](_0x411805);}}const _0x88f3e7=_0xe440a8['locale'];_0x3e212b['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x88f3e7,'FORMAT_INDENT')),_0x3e212b['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x88f3e7,'FORMAT_INDENT')),_0x3e212b['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x88f3e7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c8aef=this['editor'],_0x24d920=_0x5c8aef['locale'],_0x49fee4=_0x5c8aef['plugins']['get']('TrackChangesEditing');_0x49fee4['descriptionFactory']['registerDescriptionCallback'](_0x193614=>{if('formatBlock'!=_0x193614['type'])return;const {data:_0x4c55c3}=_0x193614;if(!_0x4c55c3)return;if('indentBlock'!=_0x4c55c3['commandName']&&'outdentBlock'!=_0x4c55c3['commandName'])return;const _0x460c74=_0x193614['getItems']()[0x0],_0x502b94=_0x49fee4['descriptionFactory']['getItemLabel'](_0x460c74);return'indentBlock'==_0x4c55c3['commandName']?{'type':'format','content':At(_0x24d920,'*Indent:*\x20%0',_0x502b94)}:'outdentBlock'==_0x4c55c3['commandName']?{'type':'format','content':At(_0x24d920,'*Outdent:*\x20%0',_0x502b94)}:void 0x0;});}}class ce extends _0x3995f9{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x3995f9{['afterInit'](){const _0x2801c9=this['editor'];if(!_0x2801c9['plugins']['has']('LinkEditing'))return;const _0xc9a86c=_0x2801c9['plugins']['get']('TrackChangesEditing'),_0x15b6f6=_0x2801c9['commands']['get']('link');_0xc9a86c['enableDefaultAttributesIntegration']('link'),_0xc9a86c['enableDefaultAttributesIntegration']('unlink');for(const _0x3ff4a5 of _0x15b6f6['manualDecorators'])_0xc9a86c['descriptionFactory']['registerAttributeLabel'](_0x3ff4a5['id'],'link\x20('+_0x3ff4a5['label']['toLowerCase']()+')');_0xc9a86c['descriptionFactory']['registerDescriptionCallback'](_0x18bf79=>{if('attribute'!=_0x18bf79['type'])return;const {data:_0x4ff899}=_0x18bf79;if(!_0x4ff899||'linkHref'!=_0x4ff899['key'])return;const _0x2077b2=_0x4ff899['newValue'],_0x52424c=_0x2801c9['locale'];return{'type':'format','content':null==_0x2077b2?At(_0x52424c,'*Remove\x20link*'):At(_0x52424c,'*Set\x20link:*\x20%0','\x22'+_0x2077b2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2def11=this['editor'],_0x414bc2=_0x2def11['locale'];_0x2def11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43fd17=>{if('formatInline'!=_0x43fd17['type'])return;const {data:_0x5df993}=_0x43fd17;if(_0x5df993){if('link'==_0x5df993['commandName']){const _0x32772e=_0x5df993['commandParams'][0x0];return{'type':'format','content':At(_0x414bc2,'*Set\x20link:*\x20%0','\x22'+_0x32772e+'\x22')};}return'unlink'==_0x5df993['commandName']?{'type':'format','content':At(_0x414bc2,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x3995f9{['afterInit'](){const _0x5b8ae4=this['editor'],_0x58bf0f=_0x5b8ae4['locale'];if(!_0x5b8ae4['plugins']['has']('LegacyListEditing'))return;const _0xba9d8f=_0x5b8ae4['plugins']['get']('TrackChangesEditing'),_0x309691=_0x5b8ae4['plugins']['has']('LegacyTodoListEditing');function _0x5a51b2(_0xd5eb27){return()=>{const _0x70a459=_0x5b8ae4['model']['document']['selection'],_0x50c9a3=_0x5b8ae4['commands']['get'](_0xd5eb27);if(_0x50c9a3['value'])return void _0x5b8ae4['execute']('paragraph',{});const _0x14331a=_0xd5eb27['slice'](0x0,-0x4),_0x4e6de7=function(_0x2437b1,_0x40224a,_0x49c36c){let _0x5a016a=Array['from'](_0x2437b1)['filter'](_0x5046ad=>function(_0x314d4d,_0x403289){return _0x403289['checkChild'](_0x314d4d['parent'],'listItem')&&!_0x403289['isObject'](_0x314d4d);}(_0x5046ad,_0x49c36c));_0x5a016a=_0x5a016a['filter'](_0x399430=>!_0x399430['is']('element','listItem')||_0x399430['getAttribute']('listType')!=_0x40224a);const _0x3cffee=new Set();for(const _0x11e4d2 of _0x5a016a)_0x11e4d2['is']('element','listItem')?_0x3cffee['add'](he(_0x11e4d2)):_0x3cffee['add'](_0x11e4d2);return Array['from'](_0x3cffee);}(_0x70a459['getSelectedBlocks'](),_0x14331a,_0x5b8ae4['model']['schema']);_0x5b8ae4['model']['change'](()=>{for(const _0x1776e0 of _0x4e6de7)_0xba9d8f['markBlockFormat'](_0x1776e0,{'commandName':_0xd5eb27,'commandParams':[{'forceValue':!_0x50c9a3['value']}],'formatGroupId':'blockName'},de(_0x1776e0));});};}function _0x37d64c(_0x41c50b){return()=>{const _0x3ffa0a=function(_0x3748c9){let _0x93161=Array['from'](_0x3748c9);const _0x4ebe4e=_0x93161['findIndex'](_0x285094=>'listItem'!=_0x285094['name']);return _0x4ebe4e>-0x1&&(_0x93161=_0x93161['slice'](0x0,_0x4ebe4e)),_0x93161;}(_0x5b8ae4['model']['document']['selection']['getSelectedBlocks']()),_0x3c7836=_0x5b8ae4['model']['createRange'](_0x5b8ae4['model']['createPositionAt'](_0x3ffa0a[0x0],'before'),_0x5b8ae4['model']['createPositionAt'](_0x3ffa0a[_0x3ffa0a['length']-0x1],'end'));_0x5b8ae4['model']['change'](()=>{_0xba9d8f['markBlockFormat'](_0x3c7836,{'commandName':_0x41c50b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1bf2dd){const _0x506fdf=new Set();for(const _0x6ddf73 of _0x1bf2dd){let _0xc01d50=_0x6ddf73['nextSibling'];for(;_0xc01d50&&_0xc01d50['getAttribute']('listIndent')>_0x6ddf73['getAttribute']('listIndent');)_0x506fdf['add'](_0xc01d50),_0xc01d50=_0xc01d50['nextSibling'];}return Array['from'](_0x506fdf);}(_0x3ffa0a));});};}_0xba9d8f['enableCommand']('numberedList',_0x5a51b2('numberedList')),_0xba9d8f['enableCommand']('bulletedList',_0x5a51b2('bulletedList')),_0x309691&&_0xba9d8f['enableCommand']('todoList',_0x5a51b2('todoList')),_0xba9d8f['enableCommand']('indentList',_0x37d64c('indentList')),_0xba9d8f['enableCommand']('outdentList',_0x37d64c('outdentList')),_0x309691&&_0xba9d8f['enableCommand']('checkTodoList',()=>{const _0x4f9c49=_0x5b8ae4['commands']['get']('checkTodoList'),_0xffa7ff=Array['from'](_0x4f9c49['_selectedElements']);_0xffa7ff['filter'](_0x1d4636=>_0x1d4636['getAttribute']('todoListChecked')!=_0x4f9c49['value']),_0x5b8ae4['model']['change'](()=>{for(const _0x24b0fe of _0xffa7ff)_0xba9d8f['markBlockFormat'](_0x24b0fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4f9c49['value']}]});});}),_0xba9d8f['descriptionFactory']['registerElementLabel']('listItem',_0x1b33c2=>At(_0x58bf0f,'ELEMENT_LIST_ITEM',_0x1b33c2)),_0xba9d8f['descriptionFactory']['registerDescriptionCallback'](_0x2dc4b3=>{if('formatBlock'!=_0x2dc4b3['type']&&'formatInline'!=_0x2dc4b3['type'])return;const {data:_0x180d84}=_0x2dc4b3;if(_0x180d84){if('numberedList'==_0x180d84['commandName']||'bulletedList'==_0x180d84['commandName']||'todoList'==_0x180d84['commandName'])switch(_0x180d84['commandName']['replace']('List','')){case'bulleted':return _0xf7a7a4(At(_0x58bf0f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf7a7a4(At(_0x58bf0f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf7a7a4(At(_0x58bf0f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x180d84['commandName'])return{'type':'format','content':At(_0x58bf0f,'*Indent:*\x20%0',At(_0x58bf0f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x180d84['commandName'])return{'type':'format','content':At(_0x58bf0f,'*Outdent:*\x20%0',At(_0x58bf0f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x180d84['commandName'])return _0x180d84['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x58bf0f,'*Check\x20item*')}:{'type':'format','content':At(_0x58bf0f,'*Uncheck\x20item*')};}function _0xf7a7a4(_0x78bba3){return{'type':'format','content':At(_0x58bf0f,'*Change\x20to:*\x20%0',_0x78bba3)};}});}}function he(_0x489de5){const _0x5f8288=_0x489de5['getAttribute']('listIndent');if(0x0==_0x5f8288)return _0x489de5;let _0x338458=_0x489de5;for(;_0x489de5['previousSibling']&&_0x489de5['previousSibling']['is']('element','listItem');){const _0x48cb6c=_0x489de5['previousSibling']['getAttribute']('listIndent');if(_0x48cb6c==_0x5f8288)_0x338458=_0x489de5['previousSibling'];else{if(_0x48cb6c<_0x5f8288)break;}_0x489de5=_0x489de5['previousSibling'];}return _0x338458;}function de(_0x5804e8){const _0x25404c=[];if(_0x5804e8['is']('element','listItem')&&_0x5804e8['getAttribute']('listIndent')>0x0){let _0x46c64f=_0x5804e8['nextSibling'];for(;_0x46c64f&&'listItem'==_0x46c64f['name']&&_0x46c64f['getAttribute']('listIndent')==_0x5804e8['getAttribute']('listIndent');)_0x25404c['push'](_0x46c64f),_0x46c64f=_0x46c64f['nextSibling'];}return _0x25404c;}class fe extends _0x3995f9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x37df5c=this['editor']['config']['get']('list.properties'),_0x4bde7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x37df5c['styles']&&_0x4bde7a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x37df5c['reversed']&&_0x4bde7a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x37df5c['startIndex']&&_0x4bde7a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4bde7a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x471ed7,_0x5cbab4={}){const _0x457ec7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x332e45=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x457ec7['markMultiRangeBlockFormat'](_0x332e45,{'commandName':'listStyle','commandParams':[{'type':_0x5cbab4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4d4965,_0x4f94e4={}){const _0x2c47b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba354=this['_getSuggestionBlocks'](_0x48079e=>_0x48079e['is']('element','listItem')&&'numbered'===_0x48079e['getAttribute']('listType'));if(_0x2ba354['length']<0x1)return;const _0x137ace=_0x2ba354['map'](_0x433157=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x433157,'before'),this['editor']['model']['createPositionAt'](_0x433157,0x0)));this['editor']['model']['change'](()=>{_0x2c47b5['markMultiRangeBlockFormat'](_0x137ace,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f94e4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24319f,_0x127d3d={}){const _0x1c755f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57b32d=this['_getSuggestionBlocks'](_0x3f5775=>_0x3f5775['is']('element','listItem')&&'numbered'===_0x3f5775['getAttribute']('listType'));if(_0x57b32d['length']<0x1)return;const _0x11cae3=_0x57b32d['map'](_0x4af3b5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4af3b5,'before'),this['editor']['model']['createPositionAt'](_0x4af3b5,0x0)));this['editor']['model']['change'](()=>{_0x1c755f['markMultiRangeBlockFormat'](_0x11cae3,{'commandName':'listStart','commandParams':[{'startIndex':_0x127d3d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x227d65){if('formatBlock'!=_0x227d65['type']&&'formatInline'!=_0x227d65['type'])return;const _0x1ac5fa=this['editor']['locale'],{data:_0x375bdb}=_0x227d65;if(!_0x375bdb)return;let _0x2160af,_0x3315ae;switch(_0x375bdb['commandName']){case'listStyle':_0x2160af='*Change\x20to:*\x20%0',_0x3315ae={'type':'format','content':At(_0x1ac5fa,_0x2160af,At(_0x1ac5fa,this['_getTranslationKeyForListStyle'](_0x375bdb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2160af=_0x375bdb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3315ae={'type':'format','content':At(_0x1ac5fa,_0x2160af)};break;case'listStart':_0x2160af='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3315ae={'type':'format','content':At(_0x1ac5fa,_0x2160af,_0x375bdb['commandParams'][0x0]['startIndex'])};}return _0x3315ae;}['_getSuggestionBlocksForListStyle'](){const _0x4e59c8=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b2bd6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b2bd6[0x0]?.['is']('element','listItem')&&_0x5b2bd6['unshift'](..._0x4e59c8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b2bd6[_0x5b2bd6['length']-0x1]?.['is']('element','listItem')&&_0x5b2bd6['push'](..._0x4e59c8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b2bd6=[...new Set(_0x5b2bd6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b2bd6=_0x5b2bd6['filter'](_0x21acb9=>_0x21acb9['is']('element','listItem'))),_0x5b2bd6;}['_getSuggestionBlocks'](_0x36022f){const _0x5e4573=this['editor']['plugins']['get']('LegacyListUtils');let _0x304989=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x36022f)['map'](_0x2070ed=>{const _0xcc13db=this['editor']['model']['createPositionAt'](_0x2070ed,0x0);return[..._0x5e4573['getSiblingNodes'](_0xcc13db,'backward'),..._0x5e4573['getSiblingNodes'](_0xcc13db,'forward')];})['flat']();return _0x304989=[...new Set(_0x304989)],_0x304989;}['_getTranslationKeyForListStyle'](_0x5a8737){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5a8737)||'default')['toUpperCase']()+'_LIST_'+_0x5a8737['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x3995f9{['afterInit'](){const _0x51e3fa=this['editor'];if(!_0x51e3fa['plugins']['has']('MediaEmbedEditing'))return;const _0x4e2fa6=_0x51e3fa['plugins']['get']('TrackChangesEditing'),_0x3dbefe=_0x51e3fa['locale'];_0x4e2fa6['enableCommand']('mediaEmbed'),_0x4e2fa6['descriptionFactory']['registerElementLabel']('media',_0x598528=>At(_0x3dbefe,'ELEMENT_MEDIA',_0x598528));}}class me extends _0x3995f9{['afterInit'](){const _0xca1970=this['editor'];_0xca1970['plugins']['has']('MentionEditing')&&_0xca1970['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x3995f9{['afterInit'](){const _0x10473b=this['editor'];if(!_0x10473b['plugins']['has']('MergeFieldsEditing'))return;const _0x14e624=_0x10473b['plugins']['get']('TrackChangesEditing'),_0x458d85=_0x10473b['locale'];_0x14e624['enableCommand']('insertMergeField'),_0x14e624['enableCommand']('insertMergeFieldBlock'),_0x14e624['enableCommand']('insertMergeFieldImage'),_0x14e624['descriptionFactory']['registerElementLabel']('mergeField',_0x13e7fb=>At(_0x458d85,'ELEMENT_MERGE_FIELD',_0x13e7fb)),_0x14e624['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e3cbc=>At(_0x458d85,'ELEMENT_MERGE_FIELD',_0x2e3cbc)),_0x14e624['descriptionFactory']['registerDescriptionCallback'](_0x89192d=>{if('insertion'!=_0x89192d['type']&&'deletion'!=_0x89192d['type'])return;const _0xbe66b2=_0x89192d['getContainedElement']();if(null==_0xbe66b2)return;const _0xf236d=_0x10473b['plugins']['get']('MergeFieldsEditing');let _0x8fde6c;switch(_0xf236d['getMergeFieldType'](_0xbe66b2)){case null:return;case'image':{const _0x2038c1=_0xf236d['unwrapAffixes'](_0xbe66b2['getAttribute']('src'));_0x8fde6c=_0xf236d['getLabel'](_0x2038c1)||_0x2038c1;break;}default:{const _0x17748b=_0xbe66b2['getAttribute']('id');_0x8fde6c=_0xf236d['getLabel'](_0x17748b)||_0x17748b;break;}}return'insertion'==_0x89192d['type']?{'type':'insertion','content':At(_0x458d85,'*Insert:*\x20%0','\x22'+_0x8fde6c+'\x22\x20'+At(_0x458d85,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x458d85,'*Remove:*\x20%0','\x22'+_0x8fde6c+'\x22\x20'+At(_0x458d85,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x3995f9{['afterInit'](){const _0x4d78b3=this['editor'],_0x32fbd5=_0x4d78b3['plugins']['get']('TrackChangesEditing');_0x4d78b3['plugins']['has']('MultiLevelList')&&(_0x32fbd5['enableDefaultAttributesIntegration']('multiLevelList'),_0x32fbd5['descriptionFactory']['registerDescriptionCallback'](_0x1f5366=>this['handleDescriptions'](_0x1f5366)));}['handleDescriptions'](_0x2a17fc){const _0x409e15=this['editor']['locale'],{data:_0x537207}=_0x2a17fc,_0x477e70={'type':'format','content':''};if(_0x537207&&'listMarkerStyle'==_0x537207['key']){if(!_0x537207['oldValue'])return{'type':'format','content':At(_0x409e15,'*Set\x20format:*\x20%0',At(_0x409e15,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x537207['newValue']+')'};if(!_0x537207['newValue']){let _0x2fa9bc=_0x2a17fc['head'];for(;_0x2fa9bc;){if(_0x2fa9bc['data']&&'listType'==_0x2fa9bc['data']['key']&&_0x2fa9bc['data']['newValue'])return _0x477e70;_0x2fa9bc=_0x2fa9bc['next'];}return{'type':'format','content':At(_0x409e15,'*Remove\x20format:*\x20%0',At(_0x409e15,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x537207['oldValue']+')'};}}}}class _e extends _0x3995f9{['afterInit'](){const _0x14b5f3=this['editor'];if(!_0x14b5f3['plugins']['has']('PageBreakEditing'))return;_0x14b5f3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x33254a=_0x14b5f3['plugins']['get']('TrackChangesEditing'),_0x409abd=_0x14b5f3['locale'];_0x33254a['descriptionFactory']['registerElementLabel']('pageBreak',_0x5302de=>At(_0x409abd,'ELEMENT_PAGE_BREAK',_0x5302de));}}class pe extends _0x3995f9{['afterInit'](){const _0x49c675=this['editor'];if(!_0x49c675['plugins']['has']('Paragraph'))return;const _0x5da729=_0x49c675['locale'],_0x372349=_0x49c675['plugins']['get']('TrackChangesEditing');_0x372349['descriptionFactory']['registerElementLabel']('paragraph',_0x24bdcc=>At(_0x5da729,'ELEMENT_PARAGRAPH',_0x24bdcc)),_0x372349['enableDefaultAttributesIntegration']('paragraph'),_0x372349['enableCommand']('insertParagraph');const _0x14565f=_0x372349['descriptionFactory'];_0x14565f['registerDescriptionCallback'](_0x15e617=>{if('insertion'!==_0x15e617['type'])return;const {start:_0x41cfc9,end:_0x5d1f6e}=_0x15e617['getFirstRange']();if(!_0x41cfc9['isTouching'](_0x5d1f6e)||!_0x41cfc9['nodeAfter'])return;const _0x59b7ad=_0x49c675['model']['schema'],_0x5071e=_0x41cfc9['nodeAfter'];return _0x59b7ad['isBlock'](_0x5071e)&&!_0x59b7ad['isLimit'](_0x5071e)&&_0x59b7ad['checkChild'](_0x5071e,'$text')?{'type':'insertion','content':At(_0x5da729,'*Insert:*\x20%0',_0x14565f['getItemLabel'](_0x5071e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x87346b=this['editor'],_0xbd634d=_0x87346b['locale'];_0x87346b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4685e5=>{if('formatBlock'!=_0x4685e5['type'])return;const {data:_0x393e8b}=_0x4685e5;return _0x393e8b&&'paragraph'==_0x393e8b['commandName']?{'type':'format','content':At(_0xbd634d,'*Change\x20to:*\x20%0',At(_0xbd634d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x3995f9{['afterInit'](){const _0x13dfdd=this['editor'];_0x13dfdd['commands']['get']('replaceSource')&&_0x13dfdd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x3995f9{['afterInit'](){const _0x398a40=this['editor'];if(!_0x398a40['plugins']['has']('RemoveFormatEditing'))return;_0x398a40['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d1d4c=this['editor'];_0x6d1d4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11fda8=>{if('formatBlock'!=_0x11fda8['type']&&'formatInline'!=_0x11fda8['type'])return;const {data:_0x230a1b}=_0x11fda8;return _0x230a1b&&'removeFormat'==_0x230a1b['commandName']?{'type':'format','content':At(_0x6d1d4c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x3995f9{['afterInit'](){const _0x1ccda4=this['editor'];if(!_0x1ccda4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4dc5a1=_0x1ccda4['plugins']['get']('TrackChangesEditing');_0x4dc5a1['enableCommand']('goToPreviousRestrictedEditingException'),_0x4dc5a1['enableCommand']('goToNextRestrictedEditingException');const _0x2ab9cd=_0x1ccda4['plugins']['get']('RestrictedEditingModeEditing');_0x2ab9cd['enableCommand']('trackChanges'),_0x2ab9cd['enableCommand']('acceptSuggestion'),_0x2ab9cd['enableCommand']('discardSuggestion'),_0x2ab9cd['enableCommand']('acceptAllSuggestions'),_0x2ab9cd['enableCommand']('discardAllSuggestions'),_0x2ab9cd['enableCommand']('acceptSelectedSuggestions'),_0x2ab9cd['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x3995f9{['afterInit'](){const _0x4c7808=this['editor'];if(!_0x4c7808['plugins']['has']('ShiftEnter'))return;const _0x3f8643=_0x4c7808['plugins']['get']('TrackChangesEditing');_0x3f8643['enableCommand']('shiftEnter'),_0x3f8643['descriptionFactory']['registerElementLabel']('softBreak',_0x232668=>At(_0x4c7808['locale'],'ELEMENT_LINE_BREAK',_0x232668));}}function ke(_0x4e4a7e,_0x194a2e,_0x45be4c){const _0x476a39=[];for(const _0x56b844 of _0x194a2e['getItems']())_0x56b844['hasAttribute'](_0x4e4a7e)&&_0x476a39['push'](_0x45be4c['createRangeOn'](_0x56b844));return _0x476a39;}class Ce extends _0x3995f9{['afterInit'](){const _0x57d572=this['editor'],_0x3793d2=_0x57d572['plugins']['get']('TrackChangesEditing');_0x57d572['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3793d2['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1a8e8f=this['editor'],_0x4624e4=_0x1a8e8f['model'],_0x4b613a=_0x1a8e8f['locale'],_0xd47edf=_0x1a8e8f['plugins']['get']('TrackChangesEditing'),_0x143a18='restrictedEditingException',_0x1ba2c2=_0x1a8e8f['commands']['get'](_0x143a18);_0xd47edf['enableCommand'](_0x143a18,(_0x103303,_0x38410c={})=>{const _0x2e57ce=_0x4624e4['document']['selection'];if(_0x2e57ce['isCollapsed'])return void _0x103303(_0x38410c);const _0x4a2331=void 0x0!==_0x38410c['forceValue']?_0x38410c['forceValue']:!_0x1ba2c2['value'];_0x4624e4['change'](()=>{const _0x1d9961=Array['from'](_0x2e57ce['getRanges']());for(const _0x7750d3 of _0x1d9961){const _0x56de4d=_0x4a2331?[_0x7750d3]:ke(_0x143a18,_0x7750d3,_0x4624e4);for(const _0x4844ba of _0x56de4d)_0xd47edf['markInlineFormat'](_0x4844ba,{'commandName':_0x143a18,'commandParams':[{'forceValue':_0x4a2331}]});}});}),_0xd47edf['descriptionFactory']['registerDescriptionCallback'](_0xe18f0c=>{if('formatBlock'!=_0xe18f0c['type']&&'formatInline'!=_0xe18f0c['type'])return;const {data:_0x110e3c}=_0xe18f0c;return _0x110e3c&&_0x110e3c['commandName']==_0x143a18?_0x110e3c['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4b613a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x4b613a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x3ad246=this['editor'],_0xa6ed49=_0x3ad246['locale'],_0x2d2e4f=_0x3ad246['plugins']['get']('TrackChangesEditing'),_0x54fe27='restrictedEditingExceptionBlock',_0x8a4181=this['editor']['commands']['get'](_0x54fe27);_0x2d2e4f['enableCommand'](_0x54fe27,(_0xd4f586,_0x233920={})=>{const _0x13b9b7=this['editor']['model']['document']['selection'],_0x466343=_0x233920&&void 0x0!==_0x233920['forceValue']?_0x233920['forceValue']:!_0x8a4181['value'];let _0x42d76c=[];if(_0x466343){const _0x156682=Array['from'](_0x13b9b7['getSelectedBlocks']())['filter'](_0x7f931a=>function(_0x51f00e){return!!_0x51f00e['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x7f931a)||function(_0xccb15,_0xbc59bc){const _0x3a6d46=_0xbc59bc['createContext'](_0xccb15['parent']);if(!_0xbc59bc['checkChild'](_0x3a6d46,'restrictedEditingException'))return!0x1;if(!_0xbc59bc['checkChild'](_0x3a6d46['push']('restrictedEditingException'),_0xccb15))return!0x1;return!0x0;}(_0x7f931a,this['editor']['model']['schema']));_0x42d76c=Tt(_0x156682,_0x3ad246['model']);}else{const _0x1a7b07=Array['from'](_0x13b9b7['getSelectedBlocks']())['map'](_0x587995=>function(_0x253984){let _0x17a290=_0x253984;for(;_0x17a290['parent'];){if('restrictedEditingException'==_0x17a290['parent']['name'])return _0x17a290;_0x17a290=_0x17a290['parent'];}return null;}(_0x587995))['filter'](_0x64c1fe=>!!_0x64c1fe);_0x42d76c=Tt(_0x1a7b07,_0x3ad246['model']);}_0x3ad246['model']['change'](()=>{for(const _0x6e882c of _0x42d76c)_0x2d2e4f['markBlockFormat'](_0x6e882c,{'commandName':_0x54fe27,'commandParams':[{'forceValue':_0x466343}]});});}),_0x2d2e4f['descriptionFactory']['registerDescriptionCallback'](_0x20437e=>{const {data:_0x4d53ee}=_0x20437e;if(_0x4d53ee&&_0x4d53ee['commandName']==_0x54fe27)return _0x4d53ee['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xa6ed49,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xa6ed49,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x3995f9{['afterInit'](){const _0x1f5a6c=this['editor'];if(!_0x1f5a6c['plugins']['has']('Style')||!_0x1f5a6c['plugins']['has']('DataSchema'))return;const _0x212e34=_0x1f5a6c['plugins']['get']('TrackChangesEditing'),_0x143c4d=_0x1f5a6c['locale'],_0xdc71c6=_0x1f5a6c['config']['get']('style')||{},_0x126f51=_0x1f5a6c['plugins']['get']('GeneralHtmlSupport'),_0x2f43e8=_0x1f5a6c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f5a6c['plugins']['get']('DataSchema'),_0xdc71c6['definitions']);_0x212e34['enableDefaultAttributesIntegration']('style');const _0x443a6f=new Set();for(const _0x471d3e of _0x2f43e8['block']){const _0x2717ed=_0x126f51['getGhsAttributeNameForElement'](_0x471d3e['element']);_0x443a6f['add'](_0x2717ed);}const _0x4e3951=new Set();for(const _0x358440 of _0x2f43e8['inline']){const _0x21fd52=_0x126f51['getGhsAttributeNameForElement'](_0x358440['element']);_0x4e3951['add'](_0x21fd52);for(const _0x4c8ceb of _0x358440['ghsAttributes'])_0x4e3951['add'](_0x4c8ceb);}for(const _0x5de604 of _0x443a6f)_0x212e34['descriptionFactory']['registerAttributeLabel'](_0x5de604,At(_0x143c4d,'FORMAT_STYLE'));for(const _0x23f4fe of _0x4e3951)_0x212e34['descriptionFactory']['registerAttributeLabel'](_0x23f4fe,At(_0x143c4d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d992b=this['editor'],_0x259d7e=_0x5d992b['locale'];_0x5d992b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb554=>{if('formatBlock'!=_0x5cb554['type']&&'formatInline'!=_0x5cb554['type'])return;const {data:_0x2eabb4}=_0x5cb554;return _0x2eabb4&&'style'===_0x2eabb4['commandName']?_0x2eabb4['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x259d7e,'*Set\x20format:*\x20%0',_0x2eabb4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x259d7e,'*Remove\x20format:*\x20%0',_0x2eabb4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x3995f9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x318009){super(_0x318009),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x378a6f=this['editor'],_0x49a8f4=_0x378a6f['model']['document']['selection'];if(!_0x378a6f['plugins']['has']('TableEditing'))return;const _0x11909f=_0x378a6f['locale'],_0x398e47=_0x378a6f['plugins']['get']('TrackChangesEditing'),_0x2b0cb3=_0x378a6f['plugins']['get']('TableUtils');_0x398e47['descriptionFactory']['registerElementLabel']('table',_0x28b86a=>At(_0x11909f,'ELEMENT_TABLE',_0x28b86a)),this['_setupColumnsRowsFixing'](),_0x398e47['enableCommand']('insertTable'),_0x398e47['enableCommand']('selectTableRow'),_0x398e47['enableCommand']('selectTableColumn');for(const _0x298727 of['insertTableRowAbove','insertTableRowBelow']){const _0x3f3b5a=_0x378a6f['commands']['get'](_0x298727);_0x398e47['enableCommand'](_0x298727,_0x2feafe=>{_0x378a6f['model']['change'](_0xdc7d27=>{_0x2feafe();const _0x171036='above'===_0x3f3b5a['order'],_0x289227=_0x2b0cb3['getSelectionAffectedTableCells'](_0x49a8f4),_0x54da3b=_0x2b0cb3['getRowIndexes'](_0x289227),_0xba351a=_0x171036?_0x54da3b['first']-0x1:_0x54da3b['last']+0x1,_0x3b48a4=_0x289227[0x0]['findAncestor']('table'),_0x276c01=_0x2b0cb3['createTableWalker'](_0x3b48a4,{'startRow':_0xba351a,'endRow':_0xba351a}),_0x5881e0=Array['from'](_0x276c01)['map'](_0x333964=>_0xdc7d27['createRangeOn'](_0x333964['cell']));_0x398e47['markMultiRangeInsertion'](_0x5881e0,'tableRow');});});}for(const _0x81652b of['insertTableColumnLeft','insertTableColumnRight']){const _0x3ec337=_0x378a6f['commands']['get'](_0x81652b);_0x398e47['enableCommand'](_0x81652b,_0x20263e=>{_0x378a6f['model']['change'](_0x6d925a=>{_0x20263e();const _0x241643='left'===_0x3ec337['order'],_0x51ca77=_0x2b0cb3['getSelectionAffectedTableCells'](_0x49a8f4),_0x3dd764=_0x2b0cb3['getColumnIndexes'](_0x51ca77),_0x5b738d=_0x241643?_0x3dd764['first']-0x1:_0x3dd764['last']+0x1,_0x422284=_0x51ca77[0x0]['findAncestor']('table'),_0x67f13e=_0x2b0cb3['createTableWalker'](_0x422284,{'startRow':0x0,'column':_0x5b738d,'includeAllSlots':!0x1}),_0x228407=Array['from'](_0x67f13e)['map'](_0x4eb9fa=>_0x6d925a['createRangeOn'](_0x4eb9fa['cell']));_0x398e47['markMultiRangeInsertion'](_0x228407,'tableColumn');});});}for(const _0x3f2633 of['removeTableRow','removeTableColumn']){const _0xf6ce7d=_0x3f2633['substr'](0xb),_0x2cb73f=_0xf6ce7d['toLowerCase'](),_0x3822d4=_0x2cb73f['substr'](0x0,0x3)+'span',_0x539d09='table'+_0xf6ce7d,_0x304006='min'+_0xf6ce7d,_0x4f275e='max'+_0xf6ce7d;_0x398e47['enableCommand'](_0x3f2633,()=>{_0x378a6f['model']['change'](_0x390cd2=>{const _0x138ae2=_0x2b0cb3['getSelectionAffectedTableCells'](_0x49a8f4),_0xb68931=_0x138ae2[0x0]['findAncestor']('table');let _0x5bf954;if('removeTableRow'==_0x3f2633){const _0x48efdc=_0x2b0cb3['getRowIndexes'](_0x138ae2);_0x5bf954={'startRow':_0x48efdc['first'],'endRow':_0x48efdc['last'],'includeAllSlots':!0x0};}else{const _0x3a186d=_0x2b0cb3['getColumnIndexes'](_0x138ae2);_0x5bf954={'startColumn':_0x3a186d['first'],'endColumn':_0x3a186d['last'],'includeAllSlots':!0x0};}const _0x5b99dc=_0x2b0cb3['createTableWalker'](_0xb68931,_0x5bf954),_0x5db936=Array['from'](_0x5b99dc)['map'](({cell:_0x1f6b1d})=>_0x1f6b1d),_0x2c5f23=Re(_0x5db936['filter'](_0x124268=>_0x124268['hasAttribute'](_0x3822d4))),_0x159d6e=Re(_0x5db936['filter'](_0x2137a5=>!_0x2137a5['hasAttribute'](_0x3822d4)))['map'](_0x1c05f7=>_0x390cd2['createRangeOn'](_0x1c05f7)),_0x1fd21c=_0x398e47['markMultiRangeDeletion'](_0x159d6e,_0x539d09);if(_0x1fd21c&&('tableRow'==_0x1fd21c['subType']||'tableColumn'==_0x1fd21c['subType'])){const _0x571a97=this['_getSuggestionCoords'](_0x1fd21c);for(const _0xd8a871 of _0x2c5f23){const _0xd6ce19=_0x390cd2['createRangeOn'](_0xd8a871),_0x5a6ee5=_0x2b0cb3['getCellLocation'](_0xd8a871),_0x23be17=_0xd8a871['getAttribute'](_0x3822d4)-0x1,_0x3b48f4=_0x571a97[_0x304006],_0x58510e=_0x571a97[_0x4f275e];_0x3b48f4<=_0x5a6ee5[_0x2cb73f]&&_0x5a6ee5[_0x2cb73f]+_0x23be17<=_0x58510e&&_0x1fd21c['addRange'](_0xd6ce19);}}});});}function _0x33b91f(_0x3b4fa3){const _0x397b29=Array['from'](_0x49a8f4['getRanges']())['map'](_0x2ed0aa=>_0x1a0aad['fromRange'](_0x2ed0aa));_0x378a6f['model']['change'](_0x5182a7=>{const _0x33906d=_0x5182a7['batch'];_0x3b4fa3=_0x3b4fa3['filter'](_0x4d91e2=>'$graveyard'!=_0x4d91e2['root']['rootName']),_0x5182a7['setSelection'](_0x3b4fa3),_0x378a6f['commands']['get']('removeTableRow')['refresh'](),_0x378a6f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x378a6f['model']['enqueueChange'](()=>{_0x378a6f['model']['enqueueChange'](_0x33906d,_0x3110f8=>{const _0x344fb7=_0x397b29['filter'](_0x1a2acd=>'$graveyard'!=_0x1a2acd['root']['rootName']);_0x344fb7['length']>0x0&&_0x3110f8['setSelection'](_0x344fb7);for(const _0x49cbf9 of _0x397b29)_0x49cbf9['detach']();});});});}function _0x2b0a65(_0x22f8e5){_0x378a6f['model']['change'](_0x4990c2=>{const _0x52c95b=Array['from'](_0x49a8f4['getRanges']())['map'](_0x3e7c67=>_0x1a0aad['fromRange'](_0x3e7c67)),_0x1d1c02=[];for(const _0x282b9b of _0x22f8e5)for(const _0x467b42 of _0x282b9b['getItems']({'shallow':!0x0}))_0x1d1c02['push'](_0x467b42);for(const _0x154d87 of _0x1d1c02)'$graveyard'!=_0x154d87['root']['rootName']&&(_0x4990c2['setSelection'](_0x4990c2['createPositionAt'](_0x154d87,0x0)),_0x378a6f['commands']['get']('removeTableColumn')['refresh'](),_0x378a6f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x323446=_0x52c95b['filter'](_0x2ae170=>'$graveyard'!=_0x2ae170['root']['rootName']);_0x323446['length']>0x0&&_0x4990c2['setSelection'](_0x323446);for(const _0x2eeb73 of _0x52c95b)_0x2eeb73['detach']();});}function _0x1d8410(_0x2cf727,_0x12dbe3){return _0x12dbe3['every'](_0x1524ed=>_0x2cf727['some'](_0x4dc966=>_0x4dc966['end']['isEqual'](_0x1524ed['start'])||_0x1524ed['end']['isEqual'](_0x4dc966['start'])));}function _0xe4c7d3(_0xe080ba,_0x4e5508){return!_0xe080ba['some'](_0x1d667c=>_0x4e5508['some'](_0x279ac3=>_0x1d667c['isIntersecting'](_0x279ac3)))&&_0xe080ba['some'](_0x238da7=>_0x4e5508['some'](_0x3b0373=>_0x238da7['end']['isTouching'](_0x3b0373['start'])));}_0x398e47['descriptionFactory']['registerDescriptionCallback'](_0x48db69=>{if('insertion'!=_0x48db69['type']&&'deletion'!=_0x48db69['type'])return;const _0x47ee8f=_0x48db69['getContainedElement']();if(null!=_0x47ee8f&&_0x47ee8f['is']('element','table')){if('insertion'==_0x48db69['type']){const _0x3f0bde=_0x48db69['getItems']()['filter'](_0x49d731=>_0x49d731['is']('$textProxy'))['map'](_0x1e037f=>_0x1e037f['data']);if(_0x3f0bde['length'])return{'type':'insertion','content':At(_0x11909f,'*Insert:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f0bde['join']('\x20')+'\x22'))};}if('deletion'==_0x48db69['type']){const _0x2c9756=_0x48db69['getItems']()['filter'](_0xf62fb4=>_0xf62fb4['is']('$textProxy'))['map'](_0x48e635=>_0x48e635['data']);if(_0x2c9756['length'])return{'type':'deletion','content':At(_0x11909f,'*Remove:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c9756['join']('\x20')+'\x22'))};}}}),_0x398e47['descriptionFactory']['registerDescriptionCallback'](_0x22f609=>{if('tableRow'==_0x22f609['subType']){const _0x27037c=_0x22f609['getItems']()['filter'](_0x1d58ff=>_0x1d58ff['is']('$textProxy'))['map'](_0x306aba=>_0x306aba['data']),_0x2c99d2=this['_getSuggestionCoords'](_0x22f609),_0x164357=_0x2c99d2['maxRow']-_0x2c99d2['minRow']+0x1;if('insertion'==_0x22f609['type'])return _0x27037c['length']?{'type':'insertion','content':At(_0x11909f,'*Insert:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x164357,'\x22'+_0x27037c['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x11909f,'*Insert:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_ROW',_0x164357))};if('deletion'==_0x22f609['type'])return _0x27037c['length']?{'type':'deletion','content':At(_0x11909f,'*Remove:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x164357,'\x22'+_0x27037c['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x11909f,'*Remove:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_ROW',_0x164357))};}if('tableColumn'==_0x22f609['subType']){const _0x3b39b8=_0x22f609['getItems']()['filter'](_0x483570=>_0x483570['is']('$textProxy'))['map'](_0x136800=>_0x136800['data']),_0x5c8804=this['_getSuggestionCoords'](_0x22f609),_0x42673f=_0x5c8804['maxColumn']-_0x5c8804['minColumn']+0x1;if('insertion'==_0x22f609['type'])return _0x3b39b8['length']?{'type':'insertion','content':At(_0x11909f,'*Insert:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42673f,'\x22'+_0x3b39b8['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x11909f,'*Insert:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_COLUMN',_0x42673f))};if('deletion'==_0x22f609['type'])return _0x3b39b8['length']?{'type':'deletion','content':At(_0x11909f,'*Remove:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42673f,'\x22'+_0x3b39b8['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x11909f,'*Remove:*\x20%0',At(_0x11909f,'ELEMENT_TABLE_COLUMN',_0x42673f))};}}),_0x398e47['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x33b91f),_0x398e47['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x33b91f),_0x398e47['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2b0a65),_0x398e47['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2b0a65),_0x398e47['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d8410),_0x398e47['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d8410),_0x398e47['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe4c7d3),_0x398e47['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe4c7d3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x40141f=this['editor'],_0x109d71=_0x40141f['model']['document']['selection'];return(_0x520655,_0x4676e5)=>{_0x40141f['model']['change'](_0x36a249=>{const {commandName:_0x39ede7,commandParams:_0x1cbc50}=_0x4676e5;let _0x510e4c=_0x520655[0x0]['end']['nodeBefore'];_0x1cbc50&&_0x1cbc50[0x0]&&!0x1===_0x1cbc50[0x0]['forceValue']&&(_0x510e4c=_0x520655[0x0]['start']['nodeAfter']);const _0x56f3d5=_0x36a249['createRangeIn'](_0x510e4c);if('$graveyard'==_0x56f3d5['root']['rootName'])return;const _0x2bfd0a=Array['from'](_0x109d71['getRanges']())['map'](_0x31927d=>_0x1a0aad['fromRange'](_0x31927d));_0x36a249['setSelection'](_0x56f3d5),_0x40141f['commands']['get'](_0x39ede7)['refresh'](),_0x1cbc50['push']({'forceDefaultExecution':!0x0}),_0x40141f['execute'](_0x39ede7,..._0x1cbc50);const _0x58fa2b=_0x2bfd0a['filter'](_0x29fccc=>'$graveyard'!=_0x29fccc['root']['rootName']);_0x58fa2b['length']>0x0&&_0x36a249['setSelection'](_0x58fa2b);for(const _0x4ecd5c of _0x2bfd0a)_0x4ecd5c['detach']();});};}['_getCoordsForCells'](_0x1cb360){const _0x59e09a=this['editor']['plugins']['get']('TableUtils');let _0x4fd624=Number['MAX_SAFE_INTEGER'],_0x57c121=Number['MIN_SAFE_INTEGER'],_0x4f00c0=Number['MAX_SAFE_INTEGER'],_0x24ee85=Number['MIN_SAFE_INTEGER'];for(const _0x18f4a7 of _0x1cb360){if('$graveyard'==_0x18f4a7['root']['rootName'])continue;const {row:_0x40ae48,column:_0x12cce6}=_0x59e09a['getCellLocation'](_0x18f4a7),_0x1c4eb7=_0x18f4a7['hasAttribute']('rowspan')?_0x18f4a7['getAttribute']('rowspan')-0x1:0x0,_0x184ce=_0x18f4a7['hasAttribute']('colspan')?_0x18f4a7['getAttribute']('colspan')-0x1:0x0;_0x4fd624=_0x40ae48<_0x4fd624?_0x40ae48:_0x4fd624,_0x57c121=_0x40ae48+_0x1c4eb7>_0x57c121?_0x40ae48+_0x1c4eb7:_0x57c121,_0x4f00c0=_0x12cce6<_0x4f00c0?_0x12cce6:_0x4f00c0,_0x24ee85=_0x12cce6+_0x184ce>_0x24ee85?_0x12cce6+_0x184ce:_0x24ee85;}return{'minRow':_0x4fd624,'maxRow':_0x57c121,'minColumn':_0x4f00c0,'maxColumn':_0x24ee85};}['_setupColumnsRowsFixing'](){const _0x4f97cc=this['editor'],_0xb3bf40=_0x4f97cc['plugins']['get']('TrackChangesEditing'),_0x423688=_0x4f97cc['plugins']['get']('TableUtils');_0x4f97cc['model']['document']['on']('change:data',()=>{const _0x143677=Array['from'](_0x4f97cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4db824,data:_0x58067d}of _0x143677){const {group:_0x3dd076,id:_0x3b078f,subType:_0x4f8539}=_0x1e81d1(_0x4db824);if('suggestion'!=_0x3dd076)continue;if(null!=_0x58067d['oldRange'])continue;const _0x2402bd=_0xb3bf40['getSuggestion'](_0x3b078f);this['_tablePostFixingSubtypes']['includes'](_0x4f8539)&&this['_tableSuggestions']['add'](_0x2402bd);}},{'priority':'low'});const _0x5178ba=(_0x5e8761,_0xaacc7e)=>{let _0x52c28b=!0x1;const _0x296930=_0xaacc7e['createRangeOn'](_0x5e8761),_0x7253b3=_0x5e8761['findAncestor']('table'),_0x58d361=_0x423688['getCellLocation'](_0x5e8761);for(const _0x408cd3 of this['_tableSuggestions']){const _0x3c8a23=_0x408cd3['subType'],_0x595df7=_0x3c8a23['startsWith']('tablePaste'),_0x357625=_0x3c8a23['substr'](_0x595df7?0xa:0x5),_0x2a8111=_0x357625['toLowerCase'](),_0x2c622e=_0x2a8111['substr'](0x0,0x3)+'span',_0x843d98='min'+_0x357625,_0x20e350='max'+_0x357625;if(!_0x408cd3['isInContent'])continue;if(_0x7253b3!=_0x408cd3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x408cd3['isIntersectingWithRange'](_0x296930))continue;const _0x3cb3e8=_0x5e8761['hasAttribute'](_0x2c622e)?_0x5e8761['getAttribute'](_0x2c622e)-0x1:0x0,_0x2d0166=this['_getSuggestionCoords'](_0x408cd3),_0x1c9c61=_0x2d0166[_0x843d98],_0x30cbea=_0x2d0166[_0x20e350];_0x1c9c61<=_0x58d361[_0x2a8111]&&_0x58d361[_0x2a8111]+_0x3cb3e8<=_0x30cbea&&(_0x408cd3['addRange'](_0x296930),_0x52c28b=!0x0);}return _0x52c28b;};_0x4f97cc['model']['document']['registerPostFixer'](_0x149e84=>{let _0x475fdc=!0x1;for(const _0x273d83 of _0x4f97cc['model']['document']['differ']['getChanges']())if('insert'==_0x273d83['type']){if('tableRow'==_0x273d83['name']){for(const _0x12d037 of _0x273d83['position']['nodeAfter']['getChildren']())_0x475fdc=_0x475fdc||_0x5178ba(_0x12d037,_0x149e84);}else'tableCell'==_0x273d83['name']&&(_0x475fdc=_0x475fdc||_0x5178ba(_0x273d83['position']['nodeAfter'],_0x149e84));}return _0x475fdc;});}['_getSuggestionCoords'](_0x1298bb){return this['_getCoordsForCells'](_0x1298bb['getRanges']()['map'](_0x24392b=>_0x24392b['start']['nodeAfter']));}}function Re(_0x294c6f){return Array['from'](new Set(_0x294c6f)['values']());}class Se extends _0x3995f9{static get['requires'](){return[Ne];}['afterInit'](){const _0x216443=this['editor'],_0x277d4f=_0x216443['model']['document']['selection'],_0x4d60df=_0x216443['locale'];if(!_0x216443['plugins']['has']('TableEditing'))return;const _0x4bf8f0=_0x216443['plugins']['get']('TrackChangesEditing'),_0x2bb76d=_0x216443['plugins']['get']('TableUtils'),_0x4f52df=_0x216443['plugins']['get'](Ne);_0x4f52df['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4bf8f0['enableCommand']('mergeTableCells',()=>{const _0x3d321f=_0x2bb76d['getSelectionAffectedTableCells'](_0x216443['model']['document']['selection']);_0x216443['model']['change'](()=>{_0x4bf8f0['markMultiRangeBlockFormat'](_0x3d321f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x216443['commands']['get']('mergeTableCells')['on']('execute',(_0x21f1c7,_0x2dc48f)=>{_0x216443['commands']['get']('trackChanges')['value']&&(_0x2dc48f['length']>0x0&&_0x2dc48f[_0x2dc48f['length']-0x1]&&_0x2dc48f[_0x2dc48f['length']-0x1]['forceDefaultExecution']||_0x4bf8f0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x21f1c7['stop']());},{'priority':'highest'});for(const _0x49f28f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e2e22=_0x216443['commands']['get'](_0x49f28f);_0x4bf8f0['enableCommand'](_0x49f28f,()=>{const _0x297ced=_0x216443['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f2d62=>_0x4f2d62['is']('element','tableCell')),_0x5c6262=_0x1e2e22['value'];_0x216443['model']['change'](()=>{_0x4bf8f0['markMultiRangeBlockFormat']([_0x297ced,_0x5c6262],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x296ad1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3816c7=_0x216443['commands']['get'](_0x296ad1);_0x4bf8f0['enableCommand'](_0x296ad1,()=>{const _0x4dee39=_0x2bb76d['getSelectionAffectedTableCells'](_0x216443['model']['document']['selection'])[0x0],_0x587451=_0x4dee39['findAncestor']('table'),{column:_0xb19211,row:_0x243d5b}=_0x2bb76d['getCellLocation'](_0x4dee39);let _0x210bde=[];if('horizontally'==_0x3816c7['direction']){const _0x284c9c=_0x2bb76d['createTableWalker'](_0x587451,{'startRow':_0x243d5b,'endRow':_0x243d5b,'includeAllSlots':!0x0});_0x210bde=Array['from'](_0x284c9c)['map'](_0x34ef7e=>_0x34ef7e['cell']);}else{const _0x1699c3=_0x2bb76d['createTableWalker'](_0x587451,{'column':_0xb19211,'includeAllSlots':!0x0});_0x210bde=Array['from'](_0x1699c3)['map'](_0x420b9b=>_0x420b9b['cell']);}_0x216443['model']['change'](_0x7cdb7a=>{_0x4bf8f0['markBlockFormat'](_0x7cdb7a['createRangeOn'](_0x4dee39),{'commandName':_0x296ad1,'commandParams':[]},_0x210bde,_0x296ad1);});});}_0x4bf8f0['descriptionFactory']['registerDescriptionCallback'](_0x793f6f=>{if('formatBlock'!=_0x793f6f['type']&&'formatInline'!=_0x793f6f['type'])return;const {data:_0x1f8cf1}=_0x793f6f;return _0x1f8cf1&&'mergeTableCells'==_0x1f8cf1['commandName']?{'type':'format','content':At(_0x4d60df,'*Merge\x20cells*')}:void 0x0;}),_0x4bf8f0['descriptionFactory']['registerDescriptionCallback'](_0x5e59bf=>{if('formatBlock'!=_0x5e59bf['type']&&'formatInline'!=_0x5e59bf['type'])return;const {data:_0x204a1f}=_0x5e59bf;return _0x204a1f?'splitTableCellVertically'==_0x204a1f['commandName']?{'type':'format','content':At(_0x4d60df,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x204a1f['commandName']?{'type':'format','content':At(_0x4d60df,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x16e1fd=_0x4f52df['_acceptFormatSuggestionCallbackFactory']();for(const _0xa471d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4bf8f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa471d,'accept',_0x16e1fd);for(const _0x29c08d of['splitTableCellVertically','splitTableCellHorizontally'])_0x4bf8f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x29c08d,'accept',_0x16e1fd);_0x4bf8f0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x572272=>{_0x216443['model']['change'](_0x168a4e=>{const _0x241f6e=Array['from'](_0x277d4f['getRanges']())['map'](_0x920399=>_0x1a0aad['fromRange'](_0x920399));_0x168a4e['setSelection'](_0x572272),_0x216443['commands']['get']('mergeTableCells')['refresh'](),_0x216443['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xbb5817=_0x241f6e['filter'](_0x1fb664=>'$graveyard'!=_0x1fb664['root']['rootName']);_0xbb5817['length']>0x0&&_0x168a4e['setSelection'](_0xbb5817);for(const _0x3a1068 of _0x241f6e)_0x3a1068['detach']();});});for(const _0x175d36 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x34ce78=_0x216443['commands']['get'](_0x175d36);_0x34ce78['on']('set:isEnabled',(_0x1ed425,_0x1316b2,_0xbf6998)=>{if(_0xbf6998){const _0x234e47=_0x216443['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a8949=>_0x4a8949['is']('element','tableCell'));this['_areMergableCells'](_0x34ce78['value'],_0x234e47)||(_0x1ed425['return']=!0x1,_0x1ed425['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x478f50=this['editor']['commands']['get']('mergeTableCells'),_0x952c7=this['editor']['plugins']['get']('TableUtils');if(!_0x478f50['isEnabled'])return!0x1;const _0x5d5b53=_0x952c7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xfa1af6 of _0x5d5b53)for(const _0x3f0928 of _0x5d5b53)if(_0xfa1af6!=_0x3f0928&&!this['_areMergableCells'](_0xfa1af6,_0x3f0928))return!0x1;return!0x0;}['_areMergableCells'](_0x192220,_0x19e38f){const _0x1f554f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e5b4=this['editor']['model']['createRangeOn'](_0x192220),_0x265fe9=this['editor']['model']['createRangeOn'](_0x19e38f),_0x4b9946=new Set(),_0x4777ec=new Set();for(const _0x423f8f of _0x1f554f['getSuggestions']())if(('insertion'==_0x423f8f['type']||'deletion'==_0x423f8f['type']||'mergeTableCells'==_0x423f8f['subType'])&&_0x423f8f['isInContent']){for(const _0x1ad26d of _0x423f8f['getRanges']())_0x1ad26d['containsRange'](_0x49e5b4,!0x0)&&_0x4b9946['add'](_0x423f8f['type']+':'+_0x423f8f['author']['id']),_0x1ad26d['containsRange'](_0x265fe9,!0x0)&&_0x4777ec['add'](_0x423f8f['type']+':'+_0x423f8f['author']['id']);}if(_0x4b9946['size']!=_0x4777ec['size'])return!0x1;for(const _0x330266 of _0x4b9946)if(!_0x4777ec['has'](_0x330266))return!0x1;return!0x0;}}class Me extends _0x3995f9{static get['requires'](){return[Ne];}['afterInit'](){const _0x65b707=this['editor'];if(!_0x65b707['plugins']['has']('TableEditing'))return;const _0x1a14c3=_0x65b707['locale'],_0x41e2cf=_0x65b707['plugins']['get']('TrackChangesEditing');_0x41e2cf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x41e2cf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x41e2cf['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x1a14c3,'FORMAT_HEADER_ROW')),_0x41e2cf['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x1a14c3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x409939=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540a62=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x409939['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x540a62),_0x409939['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x540a62),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4d9a7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4606b7=this['editor']['plugins']['get']('TableUtils');function _0x5692f4({showActiveMarker:_0xf0a8a3=!0x0,setDataAttribute:_0x3e3ed4=!0x0}={}){return(_0x23c1b0,_0x580d88,_0x2d3267)=>{const {type:_0x5959c9,id:_0x18d296}=_0x1e81d1(_0x580d88['markerName']);if(!_0x4d9a7f['hasSuggestion'](_0x18d296))return;const _0x532059=_0x4d9a7f['getSuggestion'](_0x18d296),_0x14c684=_0x532059['data'];if('formatBlock'!=_0x532059['type']||!_0x14c684||'setTableColumnHeader'!=_0x14c684['commandName'])return;if(_0x580d88['item'])return void _0x23c1b0['stop']();if(!_0x2d3267['consumable']['consume'](_0x580d88['markerRange'],_0x23c1b0['name']))return;const _0x5b9f0f=_0x580d88['markerRange']['start']['nodeAfter'],_0xa24a07=_0x580d88['markerRange']['end']['nodeBefore'],_0x1ee915=_0x5b9f0f['parent']['parent'],{column:_0x147fe2}=_0x4606b7['getCellLocation'](_0x5b9f0f),{column:_0x40a6df}=_0x4606b7['getCellLocation'](_0xa24a07);for(let _0x57bac3=_0x147fe2;_0x57bac3<=_0x40a6df;_0x57bac3++){const _0x1dc0fc=_0x4606b7['createTableWalker'](_0x1ee915,{'column':_0x57bac3,'includeAllSlots':!0x1});for(const _0x24238d of _0x1dc0fc){const _0x45d9ce=_0x24238d['cell'],_0xcebac6=_0x2d3267['mapper']['toViewElement'](_0x45d9ce);_0x2d3267['writer']['addClass']('ck-suggestion-marker-'+_0x5959c9,_0xcebac6),_0x3e3ed4&&_0x2d3267['writer']['setAttribute']('data-suggestion',_0x18d296,_0xcebac6),_0x2d3267['mapper']['bindElementToMarker'](_0xcebac6,_0x580d88['markerName']),_0xf0a8a3&&(_0x4d9a7f['activeMarkers']['includes'](_0x580d88['markerName'])?_0x2d3267['writer']['addClass']('ck-suggestion-marker--active',_0xcebac6):_0x2d3267['writer']['removeClass']('ck-suggestion-marker--active',_0xcebac6));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5692f4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f2559,_0x2987c3,_0x3009da)=>{_0x3009da['options']['showSuggestionHighlights']&&_0x5692f4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f2559,_0x2987c3,_0x3009da);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b91ae,_0x5da053,_0x5d82c6)=>{const {type:_0x3faf1a,id:_0x1ac7fb}=_0x1e81d1(_0x5da053['markerName']);if(!_0x4d9a7f['hasSuggestion'](_0x1ac7fb))return;const _0x55acfd=_0x4d9a7f['getSuggestion'](_0x1ac7fb),_0x13435e=_0x55acfd['data'];if('formatBlock'!=_0x55acfd['type']||!_0x13435e||'setTableColumnHeader'!=_0x13435e['commandName'])return;const _0x1668c6=_0x5d82c6['mapper']['markerNameToElements'](_0x5da053['markerName']);if(_0x1668c6){for(const _0x5eac66 of _0x1668c6)_0x5d82c6['writer']['removeClass']('ck-suggestion-marker-'+_0x3faf1a,_0x5eac66),_0x5d82c6['writer']['removeClass']('ck-suggestion-marker--active',_0x5eac66),_0x5d82c6['writer']['removeAttribute']('data-suggestion',_0x5eac66),_0x5d82c6['mapper']['unbindElementFromMarkerName'](_0x5eac66,_0x5da053['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x56536c=this['editor'],_0x379261=_0x56536c['locale'];function _0x35aefa(_0x166385){return{'type':'format','content':At(_0x379261,'*Format:*\x20%0',_0x166385)};}_0x56536c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x559c97=>{if('formatBlock'!=_0x559c97['type'])return;const {data:_0x351295}=_0x559c97;if(_0x351295){if('setTableRowHeader'==_0x351295['commandName']){const _0xbbf188=_0x351295['commandParams'][0x0]['forceValue'];return _0x35aefa(At(_0x379261,_0xbbf188?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x351295['commandName']){const _0x57c24b=_0x351295['commandParams'][0x0]['forceValue'];return _0x35aefa(At(_0x379261,_0x57c24b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x3995f9{static get['requires'](){return[Ne];}['afterInit'](){const _0x312eb3=this['editor'];if(!_0x312eb3['plugins']['has']('TableEditing')||!_0x312eb3['config']['get']('table.enableFooters'))return;const _0x5bedca=_0x312eb3['locale'],_0x407dc8=_0x312eb3['plugins']['get']('TrackChangesEditing');_0x407dc8['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x407dc8['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x5bedca,'FORMAT_FOOTER_ROW'));}}class we extends _0x3995f9{['afterInit'](){const _0x455ca0=this['editor'],_0x154327=_0x455ca0['locale'],_0x25a01f=_0x455ca0['plugins']['get']('TrackChangesEditing');function _0x5d11ce(_0x42839d){return{'type':'format','content':''+At(_0x154327,'*Set\x20table\x20type:*\x20%0',_0x42839d)};}_0x455ca0['plugins']['has']('TableLayout')&&(_0x25a01f['enableCommand']('insertTableLayout'),_0x25a01f['enableDefaultAttributesIntegration']('tableType'),_0x25a01f['descriptionFactory']['registerElementLabel'](_0x15bbde=>_0x15bbde['is']('element','table')&&'layout'===_0x15bbde['getAttribute']('tableType'),_0x18e83f=>At(_0x154327,'ELEMENT_LAYOUT_TABLE',_0x18e83f)),_0x25a01f['descriptionFactory']['registerDescriptionCallback'](_0x43f99e=>{const {data:_0x3d0f83}=_0x43f99e;if(_0x3d0f83&&'tableType'==_0x3d0f83['key'])switch(_0x3d0f83['newValue']){case'layout':return _0x5d11ce(At(_0x154327,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5d11ce(At(_0x154327,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x5c730f=>[_0x5c730f,null]));class De extends _0x3995f9{static get['requires'](){return[Ne];}['afterInit'](){const _0x5ef5c7=this['editor'];if(!_0x5ef5c7['plugins']['has']('TableClipboard'))return;const _0x10ef24=_0x5ef5c7['plugins']['get']('TrackChangesEditing'),_0x27c6a5=_0x5ef5c7['plugins']['get']('TableUtils'),_0x2c61e5=_0x5ef5c7['plugins']['get'](Ne),_0x11b3aa=_0x5ef5c7['plugins']['get']('TableClipboard'),_0x547d97=_0x5ef5c7['plugins']['get']('TableSelection'),_0x55386b=_0x5ef5c7['plugins']['get'](ut);_0x2c61e5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ef5c7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ef5c7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x47e7aa=null,_0x5420ae=!0x1;_0x55386b['on']('contentInsertion',(_0x12d778,_0x42b340)=>{_0x5420ae='paste'===_0x42b340['method'];}),_0x5ef5c7['model']['on']('insertContent',(_0x34744e,_0x3fa634)=>{if(!_0x5420ae&&null===_0x547d97['getSelectedTableCells']())return;const [_0x503094,_0x52aee6]=_0x3fa634,_0x58d3cb=_0x3fa634[_0x3fa634['length']-0x1];_0x58d3cb&&_0x58d3cb['forceDefaultExecution']||_0x10ef24['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x51d8ea,_0x440bd7,_0x362012,_0x89d50a,_0x525f6){if(_0x440bd7&&!_0x440bd7['is']('documentSelection'))return!0x1;const _0x40f089=_0x525f6['getTableIfOnlyTableInContent'](_0x51d8ea,_0x362012);if(!_0x40f089||!xe(_0x40f089,void 0x0,_0x89d50a))return!0x1;const _0x761c78=_0x89d50a['getSelectionAffectedTableCells'](_0x362012['document']['selection']);if(!_0x761c78['length'])return!0x1;const _0x10a6a6=_0x761c78[0x0]['findAncestor']('table'),_0xbec388=_0x89d50a['getRowIndexes'](_0x761c78),_0x3d199a=_0x89d50a['getColumnIndexes'](_0x761c78),_0x4cb266={'startRow':_0xbec388['first'],'endRow':_0xbec388['last'],'startColumn':_0x3d199a['first'],'endColumn':_0x3d199a['last']};return 0x1==_0x761c78['length']&&(_0x4cb266['endRow']+=_0x89d50a['getRows'](_0x40f089)-0x1,_0x4cb266['endColumn']+=_0x89d50a['getColumns'](_0x40f089)-0x1),xe(_0x10a6a6,_0x4cb266,_0x89d50a);}(_0x503094,_0x52aee6,_0x5ef5c7['model'],_0x27c6a5,_0x11b3aa)&&(_0x34744e['stop'](),_0x47e7aa={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ef5c7['model']['change'](()=>{_0x5ef5c7['model']['insertContent'](_0x3fa634[0x0],_0x3fa634[0x1],_0x3fa634[0x2],{'forceDefaultExecution':!0x0});const _0x5270d9=_0x390171(),{rowInsertionRanges:_0x2f81fe,columnInsertionRanges:_0x20b73f,insertionRanges:_0x287fb9,deletionRanges:_0x422200,cells:_0x5f43be}=_0x47e7aa;_0x2f81fe['length']&&_0x10ef24['markMultiRangeInsertion'](_0x2f81fe,'tablePasteRow',{'tablePasteChainId':_0x5270d9}),_0x20b73f['length']&&_0x10ef24['markMultiRangeInsertion'](_0x20b73f,'tablePasteColumn',{'tablePasteChainId':_0x5270d9}),_0x287fb9['length']&&(_0x10ef24['markMultiRangeInsertion'](_0x287fb9,'tablePaste',{'tablePasteChainId':_0x5270d9,'skipNestingCheck':!0x0}),_0x287fb9['forEach'](_0x19aa7c=>_0x19aa7c['detach']?.())),_0x422200['length']&&(_0x10ef24['markMultiRangeDeletion'](_0x422200,'tablePaste',{'tablePasteChainId':_0x5270d9,'skipNestingCheck':!0x0}),_0x422200['forEach'](_0x4f0a7e=>_0x4f0a7e['detach']?.()));const _0x3cf32a=_0x10ef24['markMultiRangeBlockFormat'](_0x5f43be['map'](({element:_0x25891a})=>_0x25891a),{'formatGroupId':_0x390171()},[],'tablePasteCell',{'tablePasteChainId':_0x5270d9});if(_0x3cf32a){const _0x5c7bfc=_0x3cf32a['getMarkers'](),_0x52143e=[];for(const {element:_0x2e83b7,attributes:_0x380225}of _0x5f43be){if(!_0x380225)continue;const _0x36dfa5=_0x5ef5c7['model']['createRangeOn'](_0x2e83b7),_0x5a96dc=_0x5c7bfc['find'](_0x459a11=>_0x459a11['getRange']()['isEqual'](_0x36dfa5));_0x5a96dc&&_0x52143e['push']([_0x5a96dc['name'],_0x380225]);}_0x52143e['length']&&_0x3cf32a['setAttribute']('markerAttributes',Object['fromEntries'](_0x52143e));}_0x47e7aa=null;}));},{'priority':_0x534cc6['high']+0xa}),_0x55386b['on']('contentInsertion',()=>{_0x5420ae=!0x1;},{'priority':'lowest'}),_0x5ef5c7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x43d3b3,_0x497d6e)=>{const [_0x5113db,_0x160b7f,,_0x1d43af]=_0x497d6e;if(!_0x47e7aa)return;_0x43d3b3['stop']();const _0xb6a911=_0x5113db['cell'],_0xa11209=_0x160b7f,_0x35caf1=ve(_0xb6a911),_0x316b37=ve(_0xa11209);_0x43d3b3['return']=_0xb6a911;let _0x4dc102=null,_0x1bfb9d=null;if(_0x316b37||_0x35caf1){if(_0x35caf1&&!_0x316b37){_0x1d43af['remove'](_0xb6a911['getChild'](0x0));for(const _0x3afd41 of Array['from'](_0xa11209['getChildren']()))_0x1d43af['insert'](_0x3afd41,_0xb6a911,'end');const _0x99c9e6=_0x47e7aa['rowInsertionIndexes']['includes'](_0x5113db['row']),_0x37e4ed=_0x47e7aa['columnInsertionIndexes']['includes'](_0x5113db['column']);_0x99c9e6||_0x37e4ed||(_0x4dc102=_0x1a0aad['fromRange'](_0x1d43af['createRangeIn'](_0xb6a911)));}else _0x316b37&&!_0x35caf1&&(_0x1bfb9d=_0x1d43af['createRangeIn'](_0xb6a911));}else{const _0x31f25f=_0x1d43af['createElement']('tableCellSuggestion'),_0x24c341=_0x1d43af['createElement']('tableCellSuggestion');_0x1d43af['wrap'](_0x1d43af['createRangeIn'](_0xb6a911),_0x24c341),_0x1d43af['insert'](_0x31f25f,_0xb6a911,0x0);for(const _0x3ef2fc of Array['from'](_0xa11209['getChildren']()))_0x1d43af['insert'](_0x3ef2fc,_0x31f25f,'end');_0x4dc102=_0x1a0aad['fromRange'](_0x1d43af['createRangeOn'](_0x31f25f)),_0x1bfb9d=_0x1a0aad['fromRange'](_0x1d43af['createRangeOn'](_0x24c341));}const _0xfd2ee3=Array['from'](_0xa11209['getAttributes']())['filter'](([_0x85cfa6])=>Be['includes'](_0x85cfa6));_0x47e7aa['cells']['push']({'element':_0xb6a911,'attributes':_0xfd2ee3['length']?Object['fromEntries'](_0xfd2ee3):null}),_0x4dc102&&_0x47e7aa['insertionRanges']['push'](_0x4dc102),_0x1bfb9d&&_0x47e7aa['deletionRanges']['push'](_0x1bfb9d);},{'priority':'high'}),_0x27c6a5['on']('insertColumns',(_0x28f7ee,_0x97c2d1)=>{const [_0x5b5fb7,_0xdd5ecd={}]=_0x97c2d1;if(!_0x47e7aa)return;const _0x23e976=_0xdd5ecd['at']||0x0,_0x4c0314=_0xdd5ecd['columns']||0x1;_0x47e7aa['columnInsertionIndexes']=new Array(_0x4c0314)['fill'](_0x23e976)['map']((_0x5d58f3,_0xc5374f)=>_0x5d58f3+_0xc5374f);for(const {cell:_0x2f43a1}of _0x27c6a5['createTableWalker'](_0x5b5fb7,{'startColumn':_0x23e976,'endColumn':_0x23e976+_0x4c0314-0x1}))_0x47e7aa['columnInsertionRanges']['push'](_0x5ef5c7['model']['createRangeOn'](_0x2f43a1));},{'priority':'low'}),_0x27c6a5['on']('insertRows',(_0x3a1281,_0x23fe8d)=>{const [_0x2c3985,_0x1c74b5={}]=_0x23fe8d;if(!_0x47e7aa)return;const _0x2caf22=_0x1c74b5['at']||0x0,_0x2725ff=_0x1c74b5['rows']||0x1;_0x47e7aa['rowInsertionIndexes']=new Array(_0x2725ff)['fill'](_0x2caf22)['map']((_0x12cbd1,_0x126c6c)=>_0x12cbd1+_0x126c6c);for(const {cell:_0x3d25e3}of _0x27c6a5['createTableWalker'](_0x2c3985,{'startRow':_0x2caf22,'endRow':_0x2caf22+_0x2725ff-0x1}))_0x47e7aa['rowInsertionRanges']['push'](_0x5ef5c7['model']['createRangeOn'](_0x3d25e3));},{'priority':'low'}),_0x10ef24['descriptionFactory']['registerDescriptionCallback'](_0xb2e691=>{if(_0xb2e691['subType']&&_0xb2e691['subType']['startsWith']('tablePaste'))return _0xb2e691['previous']?{}:{'type':'insertion','content':At(_0x5ef5c7['locale'],'*Replace\x20table\x20cells*')};});const _0x45bda7=()=>!0x1;for(const _0x40eb8c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x10ef24['_suggestionFactory']['registerCustomCallback']('insertion',_0x40eb8c,'join',_0x45bda7),_0x10ef24['_suggestionFactory']['registerCustomCallback']('deletion',_0x40eb8c,'join',_0x45bda7),_0x10ef24['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40eb8c,'join',_0x45bda7);_0x10ef24['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x45bda7),_0x10ef24['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x464594,_0x288a75,_0x30ef1b)=>{const _0x22ed47=_0x464594['map'](_0x122db7=>_0x122db7['getContainedElement']())['filter'](_0x476284=>_0x476284),_0x5c9b9e=new Map(_0x22ed47['map'](_0x3e4951=>[_0x3e4951,null]));if(_0x47e7aa){for(const {element:_0x127633,attributes:_0x4a0aa0}of _0x47e7aa['cells'])_0x4a0aa0&&_0x5c9b9e['set'](_0x127633,_0x4a0aa0);}else{if(_0x30ef1b&&_0x30ef1b['markerAttributes'])for(const [_0x101697,_0x5bc657]of Object['entries'](_0x30ef1b['markerAttributes'])){const _0x2626ce=_0x5ef5c7['model']['markers']['get'](_0x101697),_0x52c40c=_0x2626ce?_0x2626ce['getRange']()['getContainedElement']():null;_0x52c40c&&_0x5c9b9e['set'](_0x52c40c,_0x5bc657);}}_0x5ef5c7['model']['change'](_0xb3a158=>{for(const [_0x5b3e29,_0x42e985]of _0x5c9b9e)_0xb3a158['setAttributes']({...Fe,..._0x42e985},_0x5b3e29);});});const _0x32f781=(_0x42ac5e,_0x2c741a)=>{_0x10ef24['_suggestionFactory']['registerCustomCallback'](_0x42ac5e,'tablePaste',_0x2c741a,(_0x5641b4,_0x1d11de,_0x49e2c1)=>{_0x5ef5c7['model']['change'](_0x150ff8=>{const _0x553922=[];for(const _0x31d9f8 of _0x5641b4){const _0x59b414=_0x31d9f8['start']['nodeAfter'];_0x59b414['is']('element','tableCellSuggestion')&&_0x553922['push'](_0x59b414);}_0x10ef24['_suggestionFactory']['getSuggestionCallback'](_0x42ac5e,null,_0x2c741a)(_0x5641b4,_0x1d11de,_0x49e2c1);for(const _0xb350d6 of _0x553922)'$graveyard'!=_0xb350d6['root']['rootName']&&_0x150ff8['unwrap'](_0xb350d6);});});};_0x32f781('insertion','accept'),_0x32f781('insertion','discard'),_0x32f781('deletion','accept'),_0x32f781('deletion','discard'),_0x10ef24['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x373d99=>{const _0xbb12f2=_0x373d99['map'](_0x2b3e3a=>_0x2b3e3a['getContainedElement']()),_0x38d0a0=_0xbb12f2[0x0]['findAncestor']('table'),{minRow:_0x47616f,maxRow:_0x13c940}=_0x2c61e5['_getCoordsForCells'](_0xbb12f2);_0x27c6a5['removeRows'](_0x38d0a0,{'at':_0x47616f,'rows':_0x13c940-_0x47616f+0x1});}),_0x10ef24['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1c8dbf=>{const _0x150c25=_0x1c8dbf['map'](_0x819319=>_0x819319['getContainedElement']()),_0x19839c=_0x150c25[0x0]['findAncestor']('table'),{minColumn:_0x407950,maxColumn:_0x3375a0}=_0x2c61e5['_getCoordsForCells'](_0x150c25);_0x27c6a5['removeColumns'](_0x19839c,{'at':_0x407950,'columns':_0x3375a0-_0x407950+0x1});});const _0xc8c6df=(_0x10fb08,_0x229272)=>{if(!_0x229272['subType']||!_0x229272['subType']['startsWith']('tablePaste'))return;const _0x186826=_0x229272['attributes']['tablePasteChainId'],_0x4d6bfc=_0x10ef24['getSuggestions']()['filter'](_0x5c7811=>_0x5c7811['isInContent']&&_0x5c7811['attributes']&&_0x5c7811['attributes']['tablePasteChainId']==_0x186826);_0x4d6bfc['length']&&_0x229272['getAllAdjacentSuggestions']()['length']!=_0x4d6bfc['length']&&_0x4d6bfc['reduce']((_0x3d58f7,_0x235c09)=>(_0x3d58f7['next']=_0x235c09,_0x235c09['previous']=_0x3d58f7,_0x235c09));};function _0x488989(_0x5a1a4c,_0x2c4510=!0x0){const {id:_0x2fae72,authorId:_0xc45c7d}=_0x1e81d1(_0x5a1a4c['markerName']),_0x54656c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4f1363=_0x10ef24['activeMarkers']['includes'](_0x5a1a4c['markerName']);return _0x4f1363&&_0x54656c['push']('ck-suggestion-marker--active'),{'classes':_0x54656c,'attributes':{'data-suggestion':_0x2fae72,'data-author-id':_0xc45c7d},'priority':_0x4f1363&&_0x2c4510?0xbc2:0xbb8};}_0x10ef24['on']('suggestionLoaded',_0xc8c6df,{'priority':'high'}),_0x10ef24['on']('suggestionUnloaded',_0xc8c6df,{'priority':'high'}),_0x5ef5c7['model']['document']['registerPostFixer'](()=>{let _0x299b20=!0x1;const _0x360b4c=Array['from'](_0x5ef5c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a75c4,data:_0x409644}of _0x360b4c){const {group:_0x5f37ee,type:_0x1b959b,id:_0x5a081c}=_0x1e81d1(_0x4a75c4);if('suggestion'!=_0x5f37ee||'deletion'!=_0x1b959b||_0x409644['oldRange'])continue;if(!_0x10ef24['hasSuggestion'](_0x5a081c))continue;const _0x1d8580=_0x10ef24['getSuggestion'](_0x5a081c)['getRanges'](),_0x352cdc=_0x5ef5c7['plugins']['get']('Users')['me'];for(const _0x28aa55 of _0x10ef24['getSuggestions']()){if(!_0x28aa55['isInContent']||_0x28aa55['author']!=_0x352cdc)continue;if('formatBlock'!=_0x28aa55['type']||'tablePasteCell'!=_0x28aa55['subType'])continue;if(_0x28aa55['getRanges']()['every'](_0x9a058b=>_0x1d8580['some'](_0x1bb45b=>_0x1bb45b['containsRange'](_0x9a058b,!0x0)))){for(const _0x1b53f0 of _0x28aa55['getAllAdjacentSuggestions']())_0x1b53f0['isInContent']&&(_0x1b53f0['discard'](),_0x299b20=!0x0);}}}return _0x299b20;}),_0x5ef5c7['model']['document']['registerPostFixer'](_0x537eed=>{const _0x11da40=_0x5ef5c7['commands']['get']('redo');if(!_0x11da40||!_0x11da40['_createdBatches']['has'](_0x537eed['batch']))return!0x1;let _0x2e47ef=!0x1;const _0x56f8ea=_0x5ef5c7['plugins']['get']('Users')['me'],_0x588063=_0x5ef5c7['model']['document']['differ']['getChanges'](),_0x52b91d=Array['from'](_0x5ef5c7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x17679d,data:_0x1ea22c})=>{const {group:_0x51e835,subType:_0x219d9e,authorId:_0x4f806a}=_0x1e81d1(_0x17679d);return'suggestion'==_0x51e835&&'tablePaste'==_0x219d9e&&_0x4f806a==_0x56f8ea['id']&&!_0x1ea22c['oldRange'];});for(const _0x29a5a9 of _0x588063){if('insert'!=_0x29a5a9['type']||'tableCellSuggestion'!=_0x29a5a9['name']||0x1!=_0x29a5a9['length'])continue;const _0x121ccb=_0x537eed['createRange'](_0x29a5a9['position'],_0x29a5a9['position']['getShiftedBy'](0x1));if(!_0x52b91d['find'](({data:_0x408113})=>_0x408113['newRange']['isEqual'](_0x121ccb))){for(const {name:_0x2871d1,data:_0x244ee9}of _0x52b91d)if(_0x121ccb['containsRange'](_0x244ee9['newRange'])){_0x537eed['updateMarker'](_0x2871d1,{'range':_0x121ccb}),_0x2e47ef=!0x0;break;}}}return _0x2e47ef;}),_0x5ef5c7['model']['document']['registerPostFixer'](_0x4df4a5=>{let _0xf9da74=!0x1;const _0xc34717=_0x5ef5c7['plugins']['get']('Users')['me'],_0xb33dc3=_0x10ef24['getSuggestions']()['filter'](_0x69849=>_0x69849['isInContent']&&_0x69849['author']==_0xc34717),_0x1c06be=new Set(),_0x26ca31=new Set();for(const _0x4e0f5c of _0xb33dc3)if('tablePaste'==_0x4e0f5c['subType'])for(const _0x1c7af0 of _0x4e0f5c['getMarkers']()){const _0x738223=_0x1c7af0['getRange']()['getContainedElement']();if(_0x738223){if(_0x738223['is']('element','tableCellSuggestion')&&ve(_0x738223)){_0x4e0f5c['removeMarker'](_0x1c7af0['name']),_0x1c06be['add'](_0x738223),_0xf9da74=!0x0;const _0x35cef1=_0x738223['nextSibling'],_0x1808bb=_0x738223['previousSibling'],_0x5b6964=_0x35cef1&&_0x35cef1['is']('element','tableCellSuggestion'),_0xcc456e=_0x1808bb&&_0x1808bb['is']('element','tableCellSuggestion');_0x5b6964&&!_0x1c06be['has'](_0x35cef1)&&_0x26ca31['add'](_0x35cef1),_0xcc456e&&!_0x1c06be['has'](_0x1808bb)&&_0x26ca31['add'](_0x1808bb);}else _0x738223['is']('element','paragraph')&&_0x738223['isEmpty']&&(_0x4e0f5c['removeMarker'](_0x1c7af0['name']),_0xf9da74=!0x0);}}else{if('tablePasteCell'==_0x4e0f5c['subType']){if(!_0x4e0f5c['attributes']||!_0x4e0f5c['attributes']['tablePasteChainId'])continue;const _0x176949=_0x4e0f5c['attributes']['markerAttributes'];if(_0x176949&&Object['keys'](_0x176949)['length'])continue;const _0x3bb765=_0x4e0f5c['attributes']['tablePasteChainId'];let _0x2b2bfb=!0x0,_0x25314e=!0x0;for(const _0x46b810 of _0xb33dc3)if(_0x46b810['subType']&&_0x46b810['subType']['startsWith']('tablePaste')){if(!_0x46b810['attributes']['tablePasteChainId']){_0x25314e=!0x1;break;}if(_0x46b810['id']!=_0x4e0f5c['id']&&_0x46b810['attributes']['tablePasteChainId']==_0x3bb765){_0x2b2bfb=!0x1;break;}}_0x25314e&&_0x2b2bfb&&(_0x4e0f5c['removeMarkers'](),_0xf9da74=!0x0);}}for(const _0x2d3e4c of _0x1c06be)_0x4df4a5['remove'](_0x2d3e4c);for(const _0x6bd7f9 of _0x26ca31)_0x4df4a5['unwrap'](_0x6bd7f9);return _0xf9da74;}),_0x5ef5c7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1fc3f0=>_0x488989(_0x1fc3f0),'converterPriority':'high'}),_0x5ef5c7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x43d877,_0x58f50f)=>_0x58f50f['options']['showSuggestionHighlights']?_0x488989(_0x43d877,!0x1):null,'converterPriority':'high'});const _0xd387f=_0x5ef5c7['editing']['view'];this['listenTo'](_0xd387f['document'],'clipboardOutput',(_0x209641,_0xeb0210)=>{const _0x5738c6=[];for(const _0x26b9ce of _0xd387f['createRangeIn'](_0xeb0210['content'])['getItems']())_0x26b9ce['is']('element','suggestion-td')&&_0x5738c6['push'](_0x26b9ce);_0xd387f['change'](_0x23891f=>{for(const _0x1f4702 of _0x5738c6)_0x23891f['move'](_0x23891f['createRangeIn'](_0x1f4702),_0x23891f['createPositionBefore'](_0x1f4702)),_0x23891f['remove'](_0x1f4702);});});}}function ve(_0x5c3e49){if(_0x5c3e49['isEmpty'])return!0x0;const _0x56d4e3=_0x5c3e49['getChild'](0x0);return _0x56d4e3['is']('element','paragraph')&&_0x56d4e3['isEmpty'];}function xe(_0x4edb0b,_0x4ac6f1={},_0xfb13f5){for(const {isAnchor:_0x446ef6,cellHeight:_0x98e78,cellWidth:_0x1a689d}of _0xfb13f5['createTableWalker'](_0x4edb0b,{'includeAllSlots':!0x0,..._0x4ac6f1}))if(!_0x446ef6||0x1!=_0x98e78||0x1!=_0x1a689d)return!0x1;return!0x0;}class Pe extends _0x3995f9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x18e427=this['editor']['plugins']['get']('TrackChangesEditing');_0x18e427['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x18e427['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x18e427['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18e427['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x18e427['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x18e427['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x563526,_0xe80cf3){const _0x3ad975=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11b6bd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a592e=_0xe80cf3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x230d4f=_0x11b6bd['getColumnGroupElement'](_0x1a592e);let _0xc40c91=_0x230d4f?_0x11b6bd['getTableColumnsWidths'](_0x230d4f):null,_0x6f48b8=_0x1a592e['getAttribute']('tableWidth')||null;const _0x5d8937=_0xe80cf3['tableWidth']||_0x6f48b8,_0x508617=_0xe80cf3['columnWidths']||_0xc40c91,_0x12e08d=this['editor']['plugins']['get']('Users')['me'];for(const _0xa876a5 of _0x3ad975['getSuggestions']()){const _0x26a0dc=_0xa876a5['getContainedElement']();if('resizeTable'===_0xa876a5['subType']&&_0x26a0dc===_0x1a592e){_0xa876a5['author']!==_0x12e08d&&_0xa876a5['discard']();const _0x4555f8=_0xa876a5['data']['commandParams'];_0x6f48b8=_0x4555f8[0x0]['tableWidth'],_0xc40c91=_0x4555f8[0x0]['columnWidths'];break;}}_0x563526({'table':_0x1a592e,'tableWidth':_0x5d8937,'columnWidths':_0x508617}),_0x3ad975['markBlockFormat'](_0x1a592e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x6f48b8,'columnWidths':_0xc40c91}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x57b5f6){if('formatBlock'!=_0x57b5f6['type']&&'formatInline'!=_0x57b5f6['type'])return;const {data:_0x69a326}=_0x57b5f6;if(_0x69a326&&'resizeTable'===_0x69a326['formatGroupId']){const _0xf1240b='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0xf1240b)};}}}class Ue extends _0x3995f9{['afterInit'](){const _0x20578d=this['editor'];_0x20578d['plugins']['has']('Template')&&_0x20578d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x3995f9{['afterInit'](){const _0x6c8dd7=this['editor'];if(!_0x6c8dd7['commands']['get']('insertTableOfContents'))return;_0x6c8dd7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x591b8f=_0x6c8dd7['plugins']['get']('TrackChangesEditing'),_0x61837=_0x6c8dd7['locale'];_0x591b8f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x46b2ce=>At(_0x61837,'ELEMENT_TABLE_OF_CONTENTS',_0x46b2ce));}}class He extends _0x3995f9{['afterInit'](){const _0x41f362=this['editor'];if(!_0x41f362['plugins']['has']('Title'))return;_0x41f362['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x41f362['locale'],'ELEMENT_TITLE')),_0x41f362['model']['document']['registerPostFixer'](_0x51c0e7=>{let _0xe3cf40=!0x1;const _0x1be6e6=Array['from'](_0x41f362['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f7c23,data:_0x39d4e4}of _0x1be6e6){const {group:_0x81805b}=_0x1e81d1(_0x2f7c23);if('suggestion'!==_0x81805b||!_0x39d4e4['newRange'])continue;const _0xc07cdc=_0x39d4e4['newRange'],_0x75302c=_0xc07cdc['end']['nodeBefore'];if(!_0x75302c||!_0x75302c['is']('element','title-content'))continue;if(!_0xc07cdc['start']['isTouching'](_0xc07cdc['end']))continue;const _0x1f70bc=_0x41f362['model']['schema']['getNearestSelectionRange'](_0xc07cdc['end'],'forward');if(_0x1f70bc&&_0x1f70bc['isCollapsed']){const _0x20db12=_0x51c0e7['createRange'](_0xc07cdc['start'],_0x1f70bc['start']);_0x20db12['isEqual'](_0xc07cdc)||(_0x51c0e7['updateMarker'](_0x2f7c23,{'range':_0x20db12}),_0xe3cf40=!0x0);}_0xe3cf40||(_0x51c0e7['removeMarker'](_0x2f7c23),_0xe3cf40=!0x0);}return _0xe3cf40;});}}class $e extends _0x3995f9{['afterInit'](){const _0x145695=this['editor'],_0x156757=_0x145695['plugins']['get']('TrackChangesEditing');_0x145695['plugins']['has']('Uploadcare')&&(_0x156757['enableCommand']('uploadcare'),_0x145695['plugins']['has']('UploadcareImageEdit')&&(_0x156757['enableCommand']('uploadcareImageEdit'),_0x156757['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x156757['descriptionFactory']['registerDescriptionCallback'](_0x29e635=>{if('attribute'!=_0x29e635['type'])return;const {data:_0x5097e8}=_0x29e635;return _0x5097e8&&'uploadcareImageId'==_0x5097e8['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x3995f9{['afterInit'](){const _0x2a3aae=this['editor'],_0x6f8234=_0x2a3aae['plugins']['get']('TrackChangesEditing');_0x2a3aae['plugins']['has']('UndoEditing')&&(_0x6f8234['enableCommand']('undo'),_0x6f8234['enableCommand']('redo'));}}class Ve extends _0x3995f9{static get['requires'](){return[Ne];}['afterInit'](){const _0x2f6116=this['editor'];if(!_0x2f6116['plugins']['has']('TableCaptionEditing'))return;_0x2f6116['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x3995f9{['tableProperties'];['tableCellProperties'];constructor(_0x926401){super(_0x926401),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 _0x5d1050=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1cdd5b of this['tableProperties'])_0x5d1050['enableCommand'](_0x1cdd5b,(_0x5b9122,_0x5006ae)=>{const _0x216d3f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1cdd5b,[_0x216d3f],this['tableProperties'],'tableProperties',_0x5b9122,_0x5006ae);});_0x5d1050['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5d1050['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d1050['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x10970e,_0x156c02)=>this['handleDiscardAction'](this['tableProperties'],_0x10970e,_0x156c02)),_0x5d1050['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x33790a of this['tableCellProperties'])this['editor']['commands']['get'](_0x33790a)&&_0x5d1050['enableCommand'](_0x33790a,(_0x4de3f6,_0x192142)=>{const _0x518397=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x33790a,_0x518397,this['tableCellProperties'],'tableCellProperties',_0x4de3f6,_0x192142);});_0x5d1050['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5d1050['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d1050['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1982c6,_0x39abce)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1982c6,_0x39abce)),_0x5d1050['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5d1050['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5d1050['descriptionFactory']['registerDescriptionCallback'](_0x3c8fa4=>this['handleSuggestionDescription'](_0x3c8fa4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x54309c,_0xa6c878,_0x2f8db9,_0x4895eb,_0x5e62d7,_0x29fe5c){const _0xaaa7cb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x29fe5c['batch'],()=>{for(const _0x30e1ef of _0xa6c878){if(this['_getSuggestion'](_0x30e1ef,_0x4895eb))_0x5e62d7(_0x29fe5c);else{const _0x1de274={};for(const _0x88b6de of _0x2f8db9){const _0x5a4369=_0x30e1ef['getAttribute'](_0x88b6de);void 0x0!==_0x5a4369&&(_0x1de274[_0x88b6de]=_0x5a4369);}_0x5e62d7(_0x29fe5c),_0xaaa7cb['markBlockFormat'](_0x30e1ef,{'commandParams':[_0x1de274]},[],_0x4895eb);}}});}['handleDiscardAction'](_0x5370cc,_0x110f74,_0x3d2b0a){const _0x35cee4=_0x110f74[0x0]['start']['nodeAfter'],_0xf3e19a=_0x3d2b0a['commandParams'][0x0];this['editor']['model']['change'](_0x369823=>{for(const _0x4f461a of _0x5370cc)void 0x0!==_0xf3e19a[_0x4f461a]?_0x369823['setAttribute'](_0x4f461a,_0xf3e19a[_0x4f461a],_0x35cee4):_0x369823['removeAttribute'](_0x4f461a,_0x35cee4);});}['handleSuggestionDescription'](_0x774472){if(_0x774472['data'])switch(_0x774472['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'](_0x31f241,_0x41a700){const _0x143dff=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x6158fd of _0x143dff['getSuggestions']({'skipNotAttached':!0x0})){const _0x284ca5=_0x6158fd['getContainedElement']();if(_0x6158fd['subType']===_0x41a700&&_0x284ca5===_0x31f241)return _0x6158fd;}return null;}['_registerTablePropertiesAttributes'](){const _0x293d3c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a27f7=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x577b03 of _0x5a27f7){const _0x3a41bd=_0x577b03['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x293d3c['descriptionFactory']['registerAttributeLabel'](_0x577b03,At(this['editor']['locale'],'FORMAT_'+_0x3a41bd));}}}class ze extends _0x3995f9{['afterInit'](){const _0x45bd84=this['editor'];if(!_0x45bd84['plugins']['has']('LineHeight'))return;const _0x4db264=_0x45bd84['plugins']['get']('TrackChangesEditing'),_0x4cc837=_0x45bd84['locale'];_0x4db264['enableDefaultAttributesIntegration']('lineHeight'),_0x4db264['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x4cc837,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x3995f9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2be81c,_0x395e5b,_0x114bf6,_0x23b194,_0x251b21,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(_0x4cdae0){super(_0x4cdae0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4afc94,_0x1e12a2,_0x5ebc42,_0xdad7d2)=>{this['_model']['change'](()=>{for(const _0x3620cd of[..._0xdad7d2,..._0x5ebc42])this['_model']['markers']['has'](_0x3620cd)&&_0x4cdae0['editing']['reconvertMarker'](_0x3620cd);});}),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']=_0x4cdae0['plugins']['get'](_0x2be81c),this['_suggestionsConversion']=_0x4cdae0['plugins']['get'](_0x395e5b),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4cdae0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4cdae0['config']['get']('trackChanges.trackFormatChanges'),_0x4cdae0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4cdae0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x4cdae0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x204b92=this['editor'];_0x204b92['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4dff6d,{writer:_0x371542})=>{let _0xcd4b79='suggestion:'+_0x4dff6d['getAttribute']('suggestion-type')+':'+_0x4dff6d['getAttribute']('id');return _0x4dff6d['getAttribute']('marker-count')&&(_0xcd4b79+=':'+_0x4dff6d['getAttribute']('marker-count')),_0x371542['createElement']('$marker',{'data-name':_0xcd4b79});}}),_0x204b92['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x204b92['model']['document']['registerPostFixer'](_0x31c1bd=>{let _0x23cf24=!0x1;const _0x322c1a=Array['from'](_0x204b92['model']['document']['differ']['getChangedMarkers']()),_0xe4062d=new Set();for(const {name:_0x3787d5,data:_0x2904b0}of _0x322c1a){const {group:_0x4ad7d0,type:_0x33846f,subType:_0x2892b8,id:_0x158949}=_0x1e81d1(_0x3787d5);if('suggestion'!==_0x4ad7d0)continue;const _0x29f314=_0x2892b8?'suggestion:'+_0x33846f+':'+_0x2892b8+':'+_0x158949:'suggestion:'+_0x33846f+':'+_0x158949,_0x4c78bb=_0x204b92['model']['markers']['getMarkersGroup'](_0x29f314),_0x184993=_0x204b92['model']['markers']['get'](_0x3787d5),_0x39c054=this['_suggestions']['get'](_0x158949);if(null!=_0x2904b0['newRange']){'formatInline'==_0x33846f&&(_0x23cf24=_0x23cf24||Ze(_0x2904b0['newRange'],_0x3787d5,_0x31c1bd,_0x204b92['model']['schema']));const _0x1c3799='attribute'==_0x33846f&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x2892b8)),_0x1a079b='attribute'==_0x33846f&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x2892b8));if(_0x2904b0['newRange']['isCollapsed']||'$graveyard'==_0x2904b0['newRange']['root']['rootName']||'formatBlock'==_0x33846f&&!tn(_0x2904b0['newRange'])||_0x1c3799&&!tn(_0x2904b0['newRange'])||_0x1a079b&&en(_0x2904b0['newRange'])||'deletion'==_0x33846f&&en(_0x2904b0['newRange'])||_0x184993&&nn(_0x184993,_0x4c78bb))_0x31c1bd['removeMarker'](_0x3787d5),_0x23cf24=!0x0;else{if(!_0x39c054||!_0x39c054['isInContent'])continue;if(_0x2904b0['newRange']&&_0x2904b0['oldRange']&&_0x2904b0['newRange']['isEqual'](_0x2904b0['oldRange']))continue;_0xe4062d['add'](_0x39c054);}}}return _0xe4062d['size']>0x0&&(_0x23cf24=!!this['_joinWithAdjacentSuggestions'](_0xe4062d)||_0x23cf24),_0x23cf24;}),_0x204b92['model']['document']['registerPostFixer'](_0x30f8fd=>{let _0x4501eb=!0x1;for(const _0x3d59d9 of _0x204b92['model']['document']['differ']['getChanges']())if('insert'==_0x3d59d9['type'])for(const _0x3c66d8 of this['_suggestions']['values']()){if(_0x3c66d8['isMultiRange']||!_0x3c66d8['isInContent'])continue;const _0x134338='formatBlock'==_0x3c66d8['type'],_0x11022d=this['_getAttributeKey'](_0x3c66d8),_0x6f7a5f=_0x11022d&&this['_suggestionsConversion']['isBlockAttribute'](_0x11022d);if(!_0x134338&&!_0x6f7a5f)continue;const _0x5e06bc=_0x3c66d8['getFirstRange']();if(_0x5e06bc['start']['parent']!=_0x5e06bc['end']['parent']&&!_0x5e06bc['end']['isAtEnd']){const _0x75cef1=_0x204b92['model']['createPositionAt'](_0x5e06bc['start']['nodeAfter'],'end'),_0x48ef9c=_0x204b92['model']['createRange'](_0x5e06bc['start'],_0x75cef1);_0x30f8fd['updateMarker'](_0x3c66d8['getFirstMarker'](),{'range':_0x48ef9c}),_0x4501eb=!0x0;}}return _0x4501eb;}),_0x204b92['model']['document']['registerPostFixer'](_0x13d051=>this['_processAttributeChanges'](_0x13d051)),_0x204b92['model']['document']['registerPostFixer'](_0x55ab03=>!_0x55ab03['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x55ab03)),_0x204b92['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x204b92['model']['document']['on']('change:data',(_0x39d605,_0x54bff7)=>{if(!_0x54bff7['isLocal']||_0x54bff7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x388837=_0x204b92['model']['document']['differ']['getChanges']();if(0x0==_0x388837['length'])return;const _0xd3ac31=[],_0x3db0b0=_0x388837['filter'](_0x3e8a25=>'attribute'==_0x3e8a25['type']),_0x42fa87=_0x388837['filter'](_0x27b570=>'insert'==_0x27b570['type']&&'$text'!=_0x27b570['name']);for(const _0x31a62a of _0x3db0b0)this['_suggestionsConversion']['isRegisteredAttribute'](_0x31a62a['attributeKey'])&&_0xd3ac31['push']({'key':_0x31a62a['attributeKey'],'newValue':_0x31a62a['attributeNewValue'],'oldValue':_0x31a62a['attributeOldValue'],'range':sn(_0x31a62a['range'],_0x204b92['model'])});for(const _0x7c82a8 of _0x42fa87){if('rename'!=_0x7c82a8['action']&&'refresh'!=_0x7c82a8['action'])continue;const _0x5a1e50=rn(_0x7c82a8['position']['nodeAfter'],_0x204b92['model']),_0xdeea87=_0x7c82a8['before'];'rename'==_0x7c82a8['action']&&_0xd3ac31['push']({'key':Ke,'newValue':_0x7c82a8['name'],'oldValue':_0xdeea87['name'],'range':_0x5a1e50});for(const [_0x2e1f21,_0x204fcf]of _0xdeea87['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e1f21))continue;const _0x2c6eff=_0x7c82a8['attributes']['get'](_0x2e1f21);_0x204fcf!==_0x2c6eff&&_0xd3ac31['push']({'key':_0x2e1f21,'newValue':_0x2c6eff,'oldValue':_0x204fcf,'range':_0x5a1e50});}for(const [_0x48564d,_0x356c1c]of _0x7c82a8['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x48564d)&&(_0xdeea87['attributes']['has'](_0x48564d)||_0xd3ac31['push']({'key':_0x48564d,'newValue':_0x356c1c,'oldValue':null,'range':_0x5a1e50}));}0x0!=_0xd3ac31['length']&&_0x204b92['model']['enqueueChange'](_0x54bff7,_0xbcf28f=>{const _0x369bb7=_0x390171();for(const {range:_0x473b4a,key:_0x29dea0,oldValue:_0x4d5d63,newValue:_0x487c56}of _0xd3ac31)this['markAttributeChange'](_0x473b4a,_0x29dea0,_0x4d5d63,_0x487c56,{'groupId':_0x369bb7});this['_reduceExistingSuggestions'](_0xbcf28f,_0xd3ac31);});},{'priority':'lowest'}),_0x204b92['model']['markers']['on']('update:suggestion',(_0x2fef31,_0x13019b,_0x2e81cc)=>{if(null==_0x2e81cc){const {id:_0x424b95}=_0x1e81d1(_0x13019b['name']),_0x129e3d=this['_suggestions']['get'](_0x424b95);_0x129e3d&&_0x129e3d['addMarkerName'](_0x13019b['name']);}}),_0x204b92['model']['document']['on']('change:data',()=>{const _0x4fddd5=Array['from'](_0x204b92['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3fb5eb=>'suggestion'===_0x1e81d1(_0x3fb5eb['name'])['group']);if(0x0===_0x4fddd5['length'])return;_0x4fddd5['sort']((_0x1bfb52,_0x5bf8c8)=>{const _0x509334=_0x1bfb52['data']['oldRange'],_0x23dc53=_0x5bf8c8['data']['oldRange'];return null===_0x509334&&null===_0x23dc53?0x0:null===_0x509334&&null!==_0x23dc53?-0x1:null!==_0x509334&&null===_0x23dc53?0x1:_0x509334['start']['isBefore'](_0x23dc53['start'])?-0x1:0x1;});const _0xeda497=new Set(),_0x42bc77=new Set();for(const {name:_0x579545,data:_0x2778cd}of _0x4fddd5){const {id:_0x4a334a}=_0x1e81d1(_0x579545);if(null===_0x2778cd['oldRange']){const _0x160f80=this['_handleNewSuggestionMarker'](_0x579545);_0x42bc77['add'](_0x160f80);}else{const _0x2ac7cd=this['_suggestions']['get'](_0x4a334a);null!==_0x2778cd['newRange']||_0x2ac7cd['isInContent']?(_0xeda497['add'](_0x2ac7cd['head']),_0x42bc77['add'](_0x2ac7cd)):this['_removeSuggestion'](_0x2ac7cd);}}_0x42bc77['size']>0x0&&this['_refreshSuggestionsChain'](_0x42bc77);for(const _0xac0c9f of _0xeda497)this['fire']('suggestionChanged',_0xac0c9f);}),_0x204b92['model']['on']('applyOperation',(_0x3d10f0,_0x4c6820)=>{const _0x99327=_0x4c6820[0x0];if(!this['_suggestions']['size'])return;if(!_0x99327['isDocumentOperation'])return;if(_0x99327['batch']['isUndo']||!_0x99327['batch']['isLocal'])return;let _0x279e41,_0x4e6514;switch(_0x99327['type']){case'insert':_0x279e41=_0x204b92['model']['createPositionAt'](_0x99327['position']),_0x4e6514=_0x279e41['getShiftedBy'](_0x99327['howMany']);break;case'split':_0x279e41=_0x204b92['model']['createPositionAt'](_0x99327['splitPosition']),_0x4e6514=_0x204b92['model']['createPositionAt'](_0x99327['moveTargetPosition']);break;case'move':_0x279e41=_0x204b92['model']['createPositionAt'](_0x99327['targetPosition']),_0x4e6514=_0x279e41['getShiftedBy'](_0x99327['howMany']);break;default:return;}const _0x98815=_0x204b92['model']['createRange'](_0x279e41,_0x4e6514);_0x204b92['model']['change'](()=>{for(const {suggestion:_0x64d7e8,meta:_0xdb4c59}of this['_findSuggestions'](_0x98815)){if(_0x64d7e8['isMultiRange'])continue;if('formatInline'==_0x64d7e8['type'])continue;const _0x44bef1=this['_getAttributeKey'](_0x64d7e8);if(_0x44bef1&&this['_suggestionsConversion']['isBlockAttribute'](_0x44bef1)&&'split'!=_0x99327['type'])continue;const _0x459f69=_0x64d7e8['data']&&_0x64d7e8['data']['multipleBlocks'];('formatBlock'!=_0x64d7e8['type']||'split'==_0x99327['type']&&!_0x459f69)&&(_0xdb4c59['containsRangeInObject']||'insertion'==_0x64d7e8['type']&&_0xdb4c59['isOwn']||_0x64d7e8['getFirstRange']()['containsRange'](_0x98815)&&this['_breakSuggestionMarker'](_0x64d7e8,_0x279e41,_0x4e6514));}});},{'priority':'lowest'}),_0x204b92['model']['on']('deleteContent',(_0x18ac0b,_0x5c2004)=>{const _0x436c43=_0x5c2004[0x0],_0x25aa6e=_0x5c2004[0x1];if(_0x25aa6e&&_0x25aa6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x436c43['isCollapsed'])return;const _0x19d01c=_0x204b92['model']['schema'],{start:_0x26cf69,end:_0xd6340a}=_0x436c43['getFirstRange'](),_0x45264a=_0x26cf69['nodeAfter']&&_0x19d01c['isLimit'](_0x26cf69['nodeAfter'])?null:_0x19d01c['getNearestSelectionRange'](_0x26cf69,'forward'),_0x1cf781=_0xd6340a['nodeBefore']&&_0x19d01c['isLimit'](_0xd6340a['nodeBefore'])?null:_0x19d01c['getNearestSelectionRange'](_0xd6340a,'backward'),_0x2c97f6=_0x204b92['model']['createRange'](_0x45264a?_0x45264a['start']:_0x26cf69,_0x1cf781?_0x1cf781['end']:_0xd6340a);_0x204b92['model']['change'](_0x548533=>{this['markDeletion'](_0x2c97f6);const _0x3442c9=_0x204b92['model']['schema']['getNearestSelectionRange'](_0x2c97f6['start']);_0x436c43['is']('documentSelection')?_0x548533['setSelection'](_0x3442c9):_0x436c43['setTo'](_0x3442c9);}),_0x18ac0b['stop']();},{'priority':_0x534cc6['normal']+0xa}),_0x204b92['model']['on']('insertContent',(_0x656eba,_0x30bd81)=>{const _0x1e1dd9=_0x30bd81[_0x30bd81['length']-0x1];_0x1e1dd9&&_0x1e1dd9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x204b92['model']['change'](()=>{let _0x327941=_0x204b92['model']['insertContent'](_0x30bd81[0x0],_0x30bd81[0x1],_0x30bd81[0x2],{'forceDefaultExecution':!0x0});if(!_0x327941)return;_0x656eba['return']=_0x327941['clone']();const _0x433e97=_0x327941['end']['nodeBefore'],_0x324d89=_0x204b92['model']['schema'];_0x433e97&&_0x324d89['isBlock'](_0x433e97)&&!_0x324d89['isObject'](_0x433e97)&&(_0x327941=_0x204b92['model']['createRange'](_0x327941['start'],_0x204b92['model']['createPositionAt'](_0x433e97,'end'))),this['markInsertion'](_0x327941);}),_0x656eba['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3dc7eb=new dt(_0x204b92,this['_suggestions']);_0x204b92['commands']['add']('acceptSuggestion',_0x3dc7eb),this['enableCommand']('acceptSuggestion');const _0x4da0b4=new ft(_0x204b92,this['_suggestions']);_0x204b92['commands']['add']('discardSuggestion',_0x4da0b4),this['enableCommand']('discardSuggestion'),_0x204b92['commands']['add']('acceptAllSuggestions',new Lt(_0x204b92,_0x3dc7eb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x204b92['commands']['add']('discardAllSuggestions',new Lt(_0x204b92,_0x4da0b4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x204b92['commands']['add']('acceptSelectedSuggestions',new It(_0x204b92,_0x3dc7eb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x204b92['commands']['add']('discardSelectedSuggestions',new It(_0x204b92,_0x4da0b4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x385a83=_0x204b92['plugins']['get'](_0x2be81c);this['listenTo'](_0x385a83,'addComment',(_0x34b799,{threadId:_0x4f34cf})=>{const _0x52771f=this['_suggestions']['get'](_0x4f34cf);_0x52771f&&_0x52771f['commentThread']&&0x1===_0x52771f['commentThread']['length']&&this['_updateSuggestionData'](_0x4f34cf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x385a83,'removeComment',(_0x2e786c,{threadId:_0x4daa78})=>{const _0x57e70f=this['_suggestions']['get'](_0x4daa78);_0x57e70f&&_0x57e70f['commentThread']&&!_0x57e70f['commentThread']['length']&&this['_updateSuggestionData'](_0x4daa78,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2fc807){const _0x5efeeb=_0xb94d4b([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]),_0x5143d1=0x3d8d0df,_0x3ee1ca=0x3df59bf^_0x5143d1,_0x431720=window[_0xb94d4b([0x44,0x61,0x74,0x65])][_0xb94d4b([0x6e,0x6f,0x77])](),_0x2baeb6=_0x2fc807[_0xb94d4b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5460fe=new window[(_0xb94d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49b760=>{_0x2baeb6[_0xb94d4b([0x6f,0x6e,0x63,0x65])](_0xb94d4b([0x72,0x65,0x61,0x64,0x79]),_0x49b760);}),_0x3d229f={[_0xb94d4b([0x6b,0x74,0x79])]:_0xb94d4b([0x45,0x43]),[_0xb94d4b([0x75,0x73,0x65])]:_0xb94d4b([0x73,0x69,0x67]),[_0xb94d4b([0x63,0x72,0x76])]:_0xb94d4b([0x50,0x2d,0x32,0x35,0x36]),[_0xb94d4b([0x78])]:_0xb94d4b([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]),[_0xb94d4b([0x79])]:_0xb94d4b([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]),[_0xb94d4b([0x61,0x6c,0x67])]:_0xb94d4b([0x45,0x53,0x32,0x35,0x36])},_0x1263f9=_0x2baeb6[_0xb94d4b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb94d4b([0x67,0x65,0x74])](_0xb94d4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19b6af(){let _0x35af05,_0x319053=null,_0x2bb609=null;try{if(_0x1263f9==_0xb94d4b([0x47,0x50,0x4c]))return _0xb94d4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35af05=_0x24b4a4(),!_0x35af05)return _0xb94d4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35af05[_0xb94d4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bb609=_0x1fdfee(_0x35af05[_0xb94d4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35af05[_0xb94d4b([0x6a,0x74,0x69])])),await _0x4ead0d()?_0x6b7f0a()?_0x297153()?_0xb94d4b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b2592()?(_0x35af05[_0xb94d4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb94d4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x319053=_0x5c8266(_0xb94d4b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x912e00()):_0xb94d4b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb94d4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb94d4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb94d4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x297153(){const _0x1bea81=[_0xb94d4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb94d4b([0x74,0x72,0x69,0x61,0x6c])][_0xb94d4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35af05[_0xb94d4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x431720/0x3e8:0xe10*_0x3ee1ca;return _0x35af05[_0xb94d4b([0x65,0x78,0x70])]<_0x1bea81;}function _0x6b7f0a(){const _0x17f3ed=_0x35af05[_0xb94d4b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x17f3ed)return!0x1;if(_0x17f3ed[_0xb94d4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94d4b([0x2a])))return!0x0;if(_0x17f3ed[_0xb94d4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94d4b([0x54,0x43])))return!0x0;if(_0x17f3ed[_0xb94d4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94d4b([0x52,0x54,0x43]))){if(_0x4ae8d8())return!0x0;if(_0x2cc7fb()||_0x124f4f())return!0x0;}return!0x1;}function _0x1b2592(){const _0xe1f312=_0x35af05[_0xb94d4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe1f312||0x0==_0xe1f312[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19ce81}=new URL(window[_0xb94d4b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe1f312[_0xb94d4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19ce81))return!0x0;const _0x4a4999=_0x19ce81[_0xb94d4b([0x73,0x70,0x6c,0x69,0x74])](_0xb94d4b([0x2e]));return _0xe1f312[_0xb94d4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4329a0=>_0x4329a0[_0xb94d4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94d4b([0x2a])))[_0xb94d4b([0x6d,0x61,0x70])](_0x54f2e0=>_0x54f2e0[_0xb94d4b([0x73,0x70,0x6c,0x69,0x74])](_0xb94d4b([0x2e])))[_0xb94d4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dbd64=>_0x5dbd64[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a4999[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb94d4b([0x6d,0x61,0x70])](_0x115001=>Array(_0x4a4999[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x115001[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb94d4b([0x66,0x69,0x6c,0x6c])](_0x115001[0x0]===_0xb94d4b([0x2a])?_0xb94d4b([0x2a]):'')[_0xb94d4b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x115001))[_0xb94d4b([0x73,0x6f,0x6d,0x65])](_0x460dbe=>_0x4a4999[_0xb94d4b([0x65,0x76,0x65,0x72,0x79])]((_0x45964a,_0x9d3666)=>_0x460dbe[_0x9d3666]===_0x45964a||_0x460dbe[_0x9d3666]===_0xb94d4b([0x2a])));}function _0x912e00(){return _0x319053&&_0x2bb609?new window[(_0xb94d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b7cf2,_0x2b777a)=>{_0x319053[_0xb94d4b([0x74,0x68,0x65,0x6e])](_0x3b7cf2,_0x2b777a),_0x2bb609[_0xb94d4b([0x74,0x68,0x65,0x6e])](_0x57c167=>{_0x57c167!=_0xb94d4b([0x56,0x61,0x6c,0x69,0x64])&&_0x3b7cf2(_0x57c167);},_0x2b777a);}):_0x319053||_0x2bb609||_0xb94d4b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fdfee(_0x352bc8,_0x2a4da4){return new window[(_0xb94d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fb441=>{if(_0x19ccb0())return _0x1fb441(_0xb94d4b([0x56,0x61,0x6c,0x69,0x64]));_0x1629e8(),_0x2baeb6[_0xb94d4b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb94d4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x436234=!0x1;const _0x387e7e=_0x390171();function _0x12bf0e(_0x7142c0){return!!_0x7142c0&&(typeof _0x7142c0===_0xb94d4b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7142c0===_0xb94d4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7142c0[_0xb94d4b([0x74,0x68,0x65,0x6e])]===_0xb94d4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7142c0[_0xb94d4b([0x63,0x61,0x74,0x63,0x68])]===_0xb94d4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48b4b4(_0x404633){_0x278f56(_0x404633)[_0xb94d4b([0x74,0x68,0x65,0x6e])](_0x533cd7=>{if(!_0x533cd7||_0x533cd7[_0xb94d4b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb94d4b([0x6f,0x6b]))return _0xb94d4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a8b98(_0x435847(_0x387e7e+_0x2a4da4))!=_0x533cd7[_0xb94d4b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb94d4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb94d4b([0x56,0x61,0x6c,0x69,0x64]);})[_0xb94d4b([0x74,0x68,0x65,0x6e])](_0x4fb877=>(_0x4c9322(),_0x4fb877),()=>{const _0x19d468=_0x445dcb();return null==_0x19d468?(_0x4c9322(),_0xb94d4b([0x56,0x61,0x6c,0x69,0x64])):_0xb94d4b(_0x431720-_0x19d468>(0x27d454df^_0x5143d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb94d4b([0x74,0x68,0x65,0x6e])](_0x1fb441)[_0xb94d4b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fb441(_0xb94d4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3af6e7=0x3ee3e5f^_0x5143d1;function _0x4c9322(){const _0x22dc01=_0xb94d4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a8b98(_0x435847(_0x352bc8)),_0x1d22ff=_0x1525a7(_0x1a8b98(window[_0xb94d4b([0x4d,0x61,0x74,0x68])][_0xb94d4b([0x63,0x65,0x69,0x6c])](_0x431720/_0x3af6e7)));window[_0xb94d4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb94d4b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22dc01,_0x1d22ff);}function _0x445dcb(){const _0x2a6527=_0xb94d4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a8b98(_0x435847(_0x352bc8)),_0x2f1255=window[_0xb94d4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb94d4b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a6527);return _0x2f1255?window[_0xb94d4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1525a7(_0x2f1255),0x10)*_0x3af6e7:null;}function _0x278f56(_0x4ac6fc){return new window[(_0xb94d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b9422,_0x30144c)=>{_0x4ac6fc[_0xb94d4b([0x74,0x68,0x65,0x6e])](_0x4b9422,_0x30144c),window[_0xb94d4b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30144c,0x3d9041f^_0x5143d1);});}}_0x2baeb6[_0xb94d4b([0x6f,0x6e])](_0xb94d4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd5af61,_0x12052b)=>{if(_0x12052b[0x0]!=_0x352bc8)return _0x1fb441(_0xb94d4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12052b[0x1]={..._0x12052b[0x1],[_0xb94d4b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x387e7e};},{[_0xb94d4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb94d4b([0x68,0x69,0x67,0x68])}),_0x2baeb6[_0xb94d4b([0x6f,0x6e])](_0xb94d4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53c0ea=>{_0x12bf0e(_0x53c0ea[_0xb94d4b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x436234=!0x0,_0x48b4b4(_0x53c0ea[_0xb94d4b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb94d4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb94d4b([0x6c,0x6f,0x77])}),_0x5460fe[_0xb94d4b([0x74,0x68,0x65,0x6e])](()=>{_0x436234||_0x1fb441(_0xb94d4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19ccb0(){return _0x2baeb6[_0xb94d4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb94d4b([0x76,0x69,0x65,0x77])][_0xb94d4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb94d4b([0x61,0x75,0x74,0x6f]);}function _0x1629e8(){_0x2baeb6[_0xb94d4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb94d4b([0x76,0x69,0x65,0x77])][_0xb94d4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb94d4b([0x61,0x75,0x74,0x6f]);}}function _0x5c8266(_0x48ae09){const _0x317682=[new window[(_0xb94d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c045f=>setTimeout(_0x3c045f,0x3d1ee13^_0x5143d1)),_0x5460fe[_0xb94d4b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb94d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x79c1d7=>{let _0x20491a=0x0;_0x2baeb6[_0xb94d4b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb94d4b([0x6f,0x6e])](_0xb94d4b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x580ce2,_0x5297e5)=>{_0x5297e5[0x0][_0xb94d4b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20491a++,_0x20491a==(0x3d8d537^_0x5143d1)&&(_0x79c1d7(),_0x580ce2[_0xb94d4b([0x6f,0x66,0x66])]());});}))];return window[_0xb94d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb94d4b([0x72,0x61,0x63,0x65])](_0x317682)[_0xb94d4b([0x74,0x68,0x65,0x6e])](()=>_0x48ae09);}async function _0x2bda6d(){await _0x5460fe,_0x2baeb6[_0xb94d4b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb94d4b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30a40b,_0x2baeb6[_0xb94d4b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb94d4b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30a40b,_0x2baeb6[_0xb94d4b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb94d4b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ae8d8(){return _0x1766cd(_0xb94d4b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x9f22a0(_0xb94d4b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xb94d4b([0x73,0x74,0x61,0x74,0x65])]==_0xb94d4b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2cc7fb(){return _0x1766cd(_0xb94d4b([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 _0x124f4f(){return _0x1766cd(_0xb94d4b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3cb52d(_0xf0e20a){const _0x25fab5=_0x3204ea();_0x2baeb6[_0x25fab5]=_0xb94d4b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf0e20a,_0xf0e20a!=_0xb94d4b([0x56,0x61,0x6c,0x69,0x64])&&_0x2bda6d();}function _0x3204ea(){const _0xc8335f=window[_0xb94d4b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb94d4b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb94d4b([0x6e,0x6f,0x77])]())[_0xb94d4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb94d4b([0x2e]),'');let _0x20188b=_0xb94d4b([0x52]);for(let _0x236294=0x0;_0x236294<_0xc8335f[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x236294+=0x2){let _0x41c125=window[_0xb94d4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc8335f[_0xb94d4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x236294,_0x236294+0x2));_0x41c125>=_0x5efeeb[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41c125-=_0x5efeeb[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20188b+=_0x5efeeb[_0x41c125];}return _0x20188b;}function _0x24b4a4(){const _0x12bb26=_0x1263f9[_0xb94d4b([0x73,0x70,0x6c,0x69,0x74])](_0xb94d4b([0x2e]));if(0x3!=_0x12bb26[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42ecc7(_0x12bb26[0x1]);function _0x42ecc7(_0x356cdd){const _0x20e3ac=_0x3e6cfc(_0x356cdd);return _0x20e3ac&&_0x40c55e()?_0x20e3ac:null;function _0x40c55e(){const _0x4aa1f6=_0x20e3ac[_0xb94d4b([0x6a,0x74,0x69])],_0x3d969d=window[_0xb94d4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aa1f6[_0xb94d4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aa1f6[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b91e8={..._0x20e3ac,[_0xb94d4b([0x6a,0x74,0x69])]:_0x4aa1f6[_0xb94d4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4aa1f6[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b91e8[_0xb94d4b([0x76,0x63])],_0x435847(_0x2b91e8)==_0x3d969d;}}}async function _0x4ead0d(){let _0x1a2fcd=!0x0;try{const _0x5123fd=_0x1263f9[_0xb94d4b([0x73,0x70,0x6c,0x69,0x74])](_0xb94d4b([0x2e])),[_0x27c33a,_0xdc9647,_0x104ab2]=_0x5123fd;return _0x1037b4(_0x27c33a),await _0x1d9226(_0x27c33a,_0xdc9647,_0x104ab2),_0x1a2fcd;}catch{return!0x1;}function _0x1037b4(_0x43bc33){const _0x3095c3=_0x3e6cfc(_0x43bc33);_0x3095c3&&_0x3095c3[_0xb94d4b([0x61,0x6c,0x67])]==_0xb94d4b([0x45,0x53,0x32,0x35,0x36])||(_0x1a2fcd=!0x1);}async function _0x1d9226(_0x4ef280,_0x3a3369,_0x54c508){const _0x2b65cf=window[_0xb94d4b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb94d4b([0x66,0x72,0x6f,0x6d])](_0x2962b0(_0x54c508),_0x1819af=>_0x1819af[_0xb94d4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d8d43=new window[(_0xb94d4b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb94d4b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ef280+_0xb94d4b([0x2e])+_0x3a3369),_0x2ae6c9=window[_0xb94d4b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb94d4b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae6c9)return;const _0x3e147f=await _0x2ae6c9[_0xb94d4b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb94d4b([0x6a,0x77,0x6b]),_0x3d229f,{[_0xb94d4b([0x6e,0x61,0x6d,0x65])]:_0xb94d4b([0x45,0x43,0x44,0x53,0x41]),[_0xb94d4b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb94d4b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb94d4b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae6c9[_0xb94d4b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb94d4b([0x6e,0x61,0x6d,0x65])]:_0xb94d4b([0x45,0x43,0x44,0x53,0x41]),[_0xb94d4b([0x68,0x61,0x73,0x68])]:{[_0xb94d4b([0x6e,0x61,0x6d,0x65])]:_0xb94d4b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e147f,_0x2b65cf,_0x4d8d43)||(_0x1a2fcd=!0x1);}}function _0x3e6cfc(_0x567398){return _0x567398[_0xb94d4b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb94d4b([0x65,0x79]))?JSON[_0xb94d4b([0x70,0x61,0x72,0x73,0x65])](_0x2962b0(_0x567398)):null;}function _0x2962b0(_0x1ae045){return window[_0xb94d4b([0x61,0x74,0x6f,0x62])](_0x1ae045[_0xb94d4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb94d4b([0x2b]))[_0xb94d4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb94d4b([0x2f])));}function _0x435847(_0x1bc531){let _0x21f9ce=0x1505;function _0x3fb5b0(_0x1c245f){for(let _0x8eafc3=0x0;_0x8eafc3<_0x1c245f[_0xb94d4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8eafc3++){const _0x4b7411=_0x1c245f[_0xb94d4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8eafc3);_0x21f9ce=(_0x21f9ce<<0x5)+_0x21f9ce+_0x4b7411,_0x21f9ce&=_0x21f9ce;}}function _0x2652f5(_0x6e2256){Array[_0xb94d4b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6e2256)?_0x6e2256[_0xb94d4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2652f5):_0x6e2256&&typeof _0x6e2256==_0xb94d4b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb94d4b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6e2256)[_0xb94d4b([0x73,0x6f,0x72,0x74])]()[_0xb94d4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3caf8d,_0x262f74])=>{_0x3fb5b0(_0x3caf8d),_0x2652f5(_0x262f74);}):_0x3fb5b0(window[_0xb94d4b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6e2256));}return _0x2652f5(_0x1bc531),_0x21f9ce>>>0x0;}function _0x1a8b98(_0x5b8e6c){return _0x5b8e6c[_0xb94d4b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb94d4b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb94d4b([0x30]));}function _0x1525a7(_0x40b3bf){return _0x40b3bf[_0xb94d4b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb94d4b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb94d4b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1766cd(_0x54707d){return _0x2baeb6[_0xb94d4b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xb94d4b([0x68,0x61,0x73])](_0x54707d);}function _0x9f22a0(_0x3a365a){return _0x2baeb6[_0xb94d4b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xb94d4b([0x67,0x65,0x74])](_0x3a365a);}function _0x30a40b(){}function _0xb94d4b(_0x58e4a7){return _0x58e4a7['map'](_0x14bee3=>String['fromCharCode'](_0x14bee3))['join']('');}_0x3cb52d(await _0x19b6af());}(this);}set['adapter'](_0x22627f){if(this['_adapter'])throw new _0x4ffcc7('track-changes-adapter-already-set',this);this['_adapter']=_0x22627f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xd6314c=!0x1,toJSON:_0x2041e9=!0x1}={}){const _0x27326a=[];for(const _0x509654 of this['_suggestions']['values']())_0xd6314c&&!_0x509654['isInContent']||_0x27326a['push'](_0x509654);return _0x2041e9?_0x27326a['map'](_0x5b1888=>_0x5b1888['toJSON']()):_0x27326a;}['getSuggestion'](_0x1ced9d){const _0x383158=this['_suggestions']['get'](_0x1ced9d);if(!_0x383158)throw new _0x4ffcc7('track-changes-suggestion-not-found',this);return _0x383158;}['hasSuggestion'](_0x2465b1){return this['_suggestions']['has'](_0x2465b1);}['addSuggestionData'](_0x164d57){const {authorId:_0x52e63b,id:_0x9c86c0,originalSuggestionId:_0x2ae4d0,attributes:_0x3bb44a}=_0x164d57,[_0x4f8fd0,_0x2f64fa]=_0x164d57['type']['split'](':'),_0x56548d=this['_suggestions']['get'](_0x9c86c0)||this['_createSuggestion'](_0x4f8fd0,_0x2f64fa,_0x9c86c0,_0x52e63b,_0x3bb44a,_0x2ae4d0);if(this['_addThreadToSuggestion'](_0x56548d),this['_checkSuggestionCorrectness'](_0x56548d,_0x4f8fd0,_0x2f64fa||null,_0x52e63b),_0x56548d['createdAt']=_0x164d57['createdAt'],_0x56548d['_isDataLoaded']=!0x0,_0x3bb44a&&_0x3bb44a['@external']){const _0x501014=_0x3bb44a['@external'],_0x4f8624=this['_getExternalAuthor'](_0x501014['authorName']);_0x56548d['authoredAt']=_0x501014['createdAt'],_0x56548d['author']=_0x4f8624,_0x56548d['isExternal']=!0x0;}else _0x56548d['authoredAt']=_0x164d57['createdAt'];switch(_0x164d57['data']&&(_0x56548d['data']=_0x164d57['data']),_0x164d57['attributes']&&(_0x56548d['attributes']=_0x164d57['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x56548d['_saved']=!0x0),this['_suggestionState']['get'](_0x56548d)){case'notReady':this['_suggestionState']['set'](_0x56548d,'dataReady');break;case'markerReady':_0x56548d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x56548d])),this['_refreshSuggestionsChain'](new Set([_0x56548d])),this['_suggestionState']['set'](_0x56548d,'ready'),this['fire']('suggestionLoaded',_0x56548d)):this['_suggestionState']['set'](_0x56548d,'removed');}return _0x56548d;}['acceptSuggestion'](_0x4c7e48){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x136fa4 of _0x4c7e48['getAllAdjacentSuggestions']())_0x136fa4['accept']();});});}['discardSuggestion'](_0x1e4ae3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dc63d of _0x1e4ae3['getAllAdjacentSuggestions']())_0x1dc63d['discard']();});});}['enableCommand'](_0x37ba97,_0x8ed8e5){const _0x21523f=this['editor']['commands']['get'](_0x37ba97);if(!_0x21523f)throw new _0x4ffcc7('track-changes-command-not-found',this,{'commandName':_0x37ba97});if(this['_enabledCommands']['has'](_0x21523f))throw new _0x4ffcc7('track-changes-enable-command-twice',this,{'commandName':_0x37ba97});this['_enabledCommands']['add'](_0x21523f),_0x8ed8e5&&_0x21523f['on']('execute',(_0x47d857,_0x63c0e4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x63c0e4['length']>0x0&&_0x63c0e4[_0x63c0e4['length']-0x1]&&_0x63c0e4[_0x63c0e4['length']-0x1]['forceDefaultExecution']?_0x63c0e4['pop']():(_0x47d857['return']=_0x8ed8e5((..._0x48b336)=>_0x21523f['execute'](..._0x48b336,{'forceDefaultExecution':!0x0}),..._0x63c0e4),_0x47d857['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x26eed2){let _0x4f021e,_0x540368;const _0x47f871=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f021e=_0x26eed2();}catch(_0x22b915){_0x540368=_0x22b915;}return _0x47f871||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x540368&&_0x4ffcc7['rethrowUnexpectedError'](_0x540368,this),_0x4f021e;}['markInsertion'](_0x50401c,_0x351787=null,_0x512bce={}){if(_0x50401c['isCollapsed'])return null;const _0x26b0fd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x512bce['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1b6ce4,meta:_0x42c736}of this['_findSuggestions'](_0x50401c,'insertion'))if(_0x42c736['isOwn']){if(!_0x42c736['isNextTo']){if(_0x42c736['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x1b6ce4,_0x512bce))continue;return _0x1b6ce4;}if(cn(_0x1b6ce4,_0x512bce))return _0x1b6ce4;this['_breakSuggestionMarker'](_0x1b6ce4,_0x50401c['start'],_0x50401c['end']);break;}if(_0x351787==_0x1b6ce4['subType']&&cn(_0x1b6ce4,_0x512bce)){const _0x577b09=_0x1b6ce4['getFirstRange']();return _0x577b09['start']['isEqual'](_0x50401c['end'])?this['_setSuggestionRange'](_0x1b6ce4,this['_model']['createRange'](_0x50401c['start'],_0x577b09['end'])):this['_setSuggestionRange'](_0x1b6ce4,this['_model']['createRange'](_0x577b09['start'],_0x50401c['end'])),_0x1b6ce4;}}const _0xb85ee7=_0x390171(),_0x4413dc=_0x26b0fd['id'],_0x224d64=_0x351787?'insertion:'+_0x351787:'insertion',_0x325a32=this['_setSuggestionData']({'id':_0xb85ee7,'type':_0x224d64,'createdAt':new Date(),'authorId':_0x4413dc,'attributes':_0x512bce});return this['_addSuggestionMarker'](_0x224d64,_0xb85ee7,_0x4413dc,_0x50401c),_0x325a32;}['markMultiRangeInsertion'](_0x18aaab,_0x36023a='multi',_0x1a700e={}){const _0x137951=this['editor']['plugins']['get']('Users')['me'],_0x56af5b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x36023a,'join');this['_trackingSessionId']&&(_0x1a700e['trackingSessionId']=this['_trackingSessionId']);for(const _0x29b2bc of this['getSuggestions']())if(_0x29b2bc['author']['id']==_0x137951['id']&&'insertion'==_0x29b2bc['type']&&_0x29b2bc['subType']==_0x36023a&&cn(_0x29b2bc,_0x1a700e)&&(_0x56af5b(_0x29b2bc['getRanges'](),_0x18aaab)||_0x56af5b(_0x18aaab,_0x29b2bc['getRanges']()))){for(const _0x25f123 of _0x18aaab)_0x29b2bc['addRange'](_0x25f123);return _0x29b2bc;}for(const {suggestion:_0x24abd3,meta:_0x553721}of this['_findSuggestions'](_0x18aaab,'insertion')){if(!_0x553721['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x553721['containsRangeInObject'])continue;if(!cn(_0x24abd3,_0x1a700e))continue;let _0x3e761b=!0x0;for(const _0x584283 of _0x24abd3['getRanges']())for(const _0xc643d6 of _0x18aaab)if(!_0x584283['containsRange'](_0xc643d6)){_0x3e761b=!0x1;break;}if(_0x3e761b)return _0x24abd3;}const _0x1266b9=_0x390171(),_0x1078c7=_0x137951['id'],_0x478290='insertion:'+_0x36023a,_0x21372e=this['_setSuggestionData']({'id':_0x1266b9,'type':_0x478290,'createdAt':new Date(),'authorId':_0x1078c7,'attributes':_0x1a700e});for(const _0xcf574d of _0x18aaab)this['_addSuggestionMarker'](_0x478290,_0x1266b9,_0x1078c7,_0xcf574d,bt['getMultiRangeId']());return _0x21372e;}['markInlineFormat'](_0x18efee,_0x395ec8,_0x1a7525=null,_0x5ce511={}){if(_0x1a7525=_0x1a7525||Je(_0x395ec8),_0x18efee['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5ce511['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3bbb14=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1a7525,'accept');return this['forceDefaultExecution'](()=>_0x3bbb14([_0x18efee],_0x395ec8,_0x5ce511)),null;}const _0x5bd996=this['editor']['plugins']['get']('Users')['me'],_0x372990=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa189c7,meta:_0x2b14ca}of this['_findSuggestions'](_0x18efee,'insertion'))_0x2b14ca['isOwn']&&!_0x2b14ca['isInsideObject']&&_0x372990['push'](..._0xa189c7['getRanges']());}const _0x594b0a=function(_0x227004,_0x11801a){const _0x464d64=[];for(const _0x3433fc of _0x11801a){const _0x37ce39=_0x227004['getIntersection'](_0x3433fc);_0x37ce39&&_0x464d64['push'](_0x37ce39);}return _0x464d64;}(_0x18efee,_0x372990),_0x5c7c83=function(_0x207adb,_0x423d6a){const _0x39827e=[_0x207adb];for(const _0x4bded1 of _0x423d6a){let _0x39edc9=0x0;for(;_0x39edc9<_0x39827e['length'];){const _0xe23aa0=_0x39827e[_0x39edc9]['getDifference'](_0x4bded1);_0x39827e['splice'](_0x39edc9,0x1,..._0xe23aa0),_0x39edc9+=_0xe23aa0['length'];}}return _0x39827e;}(_0x18efee,_0x372990);_0x594b0a['length']&&this['_model']['change'](()=>{for(const _0x2a395c of _0x594b0a){const _0x53f1b6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1a7525,'accept');this['forceDefaultExecution'](()=>_0x53f1b6([_0x2a395c],_0x395ec8,_0x5ce511));}});for(const _0x2460cd of _0x5c7c83){let _0x34e9bb=null,_0x2ae598=_0x2460cd['start'],_0x3c89f3=_0x2460cd['end'];for(const {suggestion:_0x475d86,meta:_0x56b97f}of this['_findSuggestions'](_0x2460cd,'formatInline')){if(!_0x56b97f['isOwn'])continue;if(_0x475d86['subType']!=_0x1a7525)continue;if(!cn(_0x475d86,_0x5ce511))continue;const _0x34caac=_0x475d86['getFirstRange']();if(_0x34caac['containsRange'](_0x2460cd,!0x0))return null;_0x2ae598=_0x2ae598['isBefore'](_0x34caac['start'])?_0x2ae598:_0x34caac['start'],_0x3c89f3=_0x3c89f3['isAfter'](_0x34caac['end'])?_0x3c89f3:_0x34caac['end'],_0x34e9bb?_0x34caac['start']['isBefore'](_0x34e9bb['getFirstRange']()['start'])?(_0x34e9bb['removeMarkers'](),_0x34e9bb=_0x475d86):_0x475d86['removeMarkers']():_0x34e9bb=_0x475d86;}const _0x282978=this['_model']['createRange'](_0x2ae598,_0x3c89f3);if(_0x34e9bb)this['_setSuggestionRange'](_0x34e9bb,_0x282978);else{const _0x55af75=_0x390171(),_0x3cd9fb=_0x5bd996['id'];this['_setSuggestionData']({'id':_0x55af75,'type':'formatInline:'+_0x1a7525,'data':_0x395ec8,'createdAt':new Date(),'authorId':_0x3cd9fb,'attributes':_0x5ce511}),this['_addSuggestionMarker']('formatInline:'+_0x1a7525,_0x55af75,_0x3cd9fb,_0x282978);}}return null;}['markBlockFormat'](_0x1a2d1a,_0x13dbce,_0x2dffe4=[],_0xe1cfa3=null,_0x187ed={}){_0x13dbce['formatGroupId']||(_0x13dbce['formatGroupId']=_0x13dbce['commandName']),_0x13dbce['multipleBlocks']=_0x1a2d1a['is']('range'),_0xe1cfa3=_0xe1cfa3||Je(_0x13dbce);const _0x300dd6=_0x2dffe4['map'](_0x2d5c10=>rn(_0x2d5c10,this['_model'])),_0x6c6baf=_0x1a2d1a['is']('range')?_0x1a2d1a:rn(_0x1a2d1a,this['_model']);if(this['_trackingSessionId']&&(_0x187ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x55218c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe1cfa3,'accept');return this['forceDefaultExecution'](()=>_0x55218c([_0x6c6baf],_0x13dbce,_0x187ed)),null;}_0x300dd6['push'](_0x6c6baf);let _0x2a6e30=!0x0;for(const _0x28201a of _0x300dd6)if(!this['_rangeIsInLocalUserInsertion'](_0x28201a)){_0x2a6e30=!0x1;break;}if(_0x2a6e30&&'always'!==this['_trackFormatChanges']){const _0x349361=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe1cfa3,'accept');return this['forceDefaultExecution'](()=>_0x349361([_0x6c6baf],_0x13dbce,_0x187ed)),null;}let _0x22e3d3=null,_0x8fc74a=_0x6c6baf['start'],_0x1d92f7=_0x6c6baf['end'];for(const {suggestion:_0x58b437,meta:_0x21addb}of this['_findSuggestions'](_0x6c6baf,'formatBlock')){if(!_0x21addb['isOwn'])continue;if(_0x21addb['isNextTo']||_0x21addb['containsRangeInObject']||_0x21addb['isInsideObject'])continue;if(_0x58b437['data']['formatGroupId']!=_0x13dbce['formatGroupId'])continue;if(!cn(_0x58b437,_0x187ed))continue;const _0x242b1a=_0x58b437['getFirstRange']();if(_0x58b437['subType']==_0xe1cfa3){if(_0x242b1a['containsRange'](_0x6c6baf,!0x0))return null;_0x8fc74a=_0x8fc74a['isBefore'](_0x242b1a['start'])?_0x8fc74a:_0x242b1a['start'],_0x1d92f7=_0x1d92f7['isAfter'](_0x242b1a['end'])?_0x1d92f7:_0x242b1a['end'],_0x22e3d3?_0x242b1a['start']['isBefore'](_0x22e3d3['getFirstRange']()['start'])?(_0x22e3d3['removeMarkers'](),_0x22e3d3=_0x58b437):_0x58b437['removeMarkers']():_0x22e3d3=_0x58b437;}else{const _0x1b3a29=_0x6c6baf['getIntersection'](_0x242b1a);this['_cutOutSuggestionMarker'](_0x58b437,_0x1b3a29);}}const _0xe24ecc=this['editor']['plugins']['get']('Users')['me'],_0x5a6b37=_0x390171(),_0x117bdf=_0xe24ecc['id'];if(_0x22e3d3)return this['_setSuggestionRange'](_0x22e3d3,this['_model']['createRange'](_0x8fc74a,_0x1d92f7)),_0x22e3d3;{const _0x3d9da6=this['_setSuggestionData']({'id':_0x5a6b37,'type':'formatBlock:'+_0xe1cfa3,'data':_0x13dbce,'createdAt':new Date(),'authorId':_0x117bdf,'attributes':_0x187ed});return this['_addSuggestionMarker']('formatBlock:'+_0xe1cfa3,_0x5a6b37,_0x117bdf,this['_model']['createRange'](_0x8fc74a,_0x1d92f7)),_0x3d9da6;}}['markMultiRangeBlockFormat'](_0x24fa49,_0x1b718d,_0x425a87=[],_0x1a14ed=null,_0x13b78f={}){_0x1b718d['formatGroupId']||(_0x1b718d['formatGroupId']=_0x1b718d['commandName']);const _0x117c6f=_0x24fa49[0x0];_0x1b718d['multipleBlocks']=_0x117c6f['is']('range'),_0x1a14ed=_0x1a14ed||Je(_0x1b718d);const _0xb0c54d=_0x425a87['map'](_0x47b0c8=>rn(_0x47b0c8,this['_model'])),_0x349912=_0x117c6f['is']('range')?_0x24fa49:_0x24fa49['map'](_0xc32729=>rn(_0xc32729,this['_model']));if(this['_trackingSessionId']&&(_0x13b78f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x75b95e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a14ed,'accept');return this['forceDefaultExecution'](()=>_0x75b95e(_0x349912,_0x1b718d,_0x13b78f)),null;}_0xb0c54d['push'](..._0x349912);let _0x479d5e=!0x0;for(const _0x2d281 of _0xb0c54d)if(!this['_rangeIsInLocalUserInsertion'](_0x2d281)){_0x479d5e=!0x1;break;}if(_0x479d5e&&'always'!==this['_trackFormatChanges']){const _0x4be15a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a14ed,'accept');return this['forceDefaultExecution'](()=>_0x4be15a(_0x349912,_0x1b718d,_0x13b78f)),null;}const _0x4a8da2=this['editor']['plugins']['get']('Users')['me'];for(const _0x751e8f of this['getSuggestions']()){const _0x1ba879=_0x751e8f['data'];if(_0x751e8f['author']['id']!=_0x4a8da2['id'])continue;if('formatBlock'!=_0x751e8f['type']||_0x1ba879['formatGroupId']!=_0x1b718d['formatGroupId'])continue;if(!cn(_0x751e8f,_0x13b78f))continue;const _0x21d5a7=_0x751e8f['subType']==_0x1a14ed;for(let _0x4a7fc0=0x0;_0x4a7fc0<_0x349912['length'];_0x4a7fc0++){const _0x4fe1ef=_0x349912[_0x4a7fc0];for(const _0x491a39 of _0x751e8f['getMarkers']()){const _0x4a1c98=_0x491a39['getRange']();if(_0x4fe1ef['isEqual'](_0x4a1c98)){_0x21d5a7?(_0x349912['splice'](_0x4a7fc0,0x1),_0x4a7fc0--):_0x751e8f['removeMarker'](_0x491a39['name']);break;}}}}if(0x0==_0x349912['length'])return null;const _0x42bf07=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a14ed,'join');for(const _0x56e94e of this['getSuggestions']()){const _0x5223a3=_0x56e94e['data'];if(_0x56e94e['author']['id']==_0x4a8da2['id']&&('formatBlock'==_0x56e94e['type']&&_0x5223a3['formatGroupId']==_0x1b718d['formatGroupId']&&_0x56e94e['subType']==_0x1a14ed&&cn(_0x56e94e,_0x13b78f)&&(_0x42bf07(_0x56e94e['getRanges'](),_0x349912)||_0x42bf07(_0x349912,_0x56e94e['getRanges']())))){for(const _0x3b9446 of _0x349912)_0x56e94e['addRange'](_0x3b9446);return _0x56e94e;}}const _0x125317=_0x390171(),_0x3a9c20=_0x4a8da2['id'],_0x41cc62='formatBlock:'+_0x1a14ed,_0x1b4a02=this['_setSuggestionData']({'id':_0x125317,'type':_0x41cc62,'data':_0x1b718d,'createdAt':new Date(),'authorId':_0x3a9c20,'attributes':_0x13b78f});for(const _0xcd03b7 of _0x349912)this['_addSuggestionMarker'](_0x41cc62,_0x125317,_0x3a9c20,_0xcd03b7,bt['getMultiRangeId']());return _0x1b4a02;}['markDeletion'](_0x4129c3,_0x22f194=null,_0x59e44f={}){if(_0x4129c3['isCollapsed'])return null;const _0x33f8b6=this['editor']['plugins']['get']('Users')['me'],_0x459e79=new _0x1a0aad(_0x4129c3['start'],_0x4129c3['end']);this['_trackingSessionId']&&(_0x59e44f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xedf28f,meta:_0x401f02}of this['_findSuggestions'](_0x459e79,'insertion'))if(_0x401f02['isOwn']&&!_0x401f02['isNextTo']){if(_0xedf28f['isMultiRange']){const _0x2527c5=_0xedf28f['getRanges']()['filter'](_0x361696=>'$graveyard'!=_0x361696['root']['rootName']);_0x2527c5['every'](_0x4c1215=>_0x459e79['containsRange'](_0x4c1215,!0x0))&&_0xedf28f['discard']();if(_0x2527c5['some'](_0x699e51=>_0x699e51['containsRange'](_0x459e79,!0x0))){const _0xe1d87e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22f194,'accept');return this['forceDefaultExecution'](()=>_0xe1d87e([_0x459e79],null,_0x59e44f)),null;}}else{const _0x543248=_0x459e79['getIntersection'](_0xedf28f['getFirstRange']());null!==_0x543248&&_0xedf28f['_onDiscard']([_0x543248],null,_0x59e44f);}}if(_0x459e79['detach'](),_0x459e79['isCollapsed']||'$graveyard'==_0x459e79['root']['rootName'])return null;let _0x26442a=null,_0x49f009=_0x459e79['start'],_0x1a22b7=_0x459e79['end'];const _0x38c8f5=this['_findSuggestions'](_0x459e79,'deletion');for(const {suggestion:_0x3b9358,meta:_0x5484f3}of _0x38c8f5){const _0x4af5ae=this['_model']['createRange'](_0x49f009,_0x1a22b7);if(_0x5484f3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5484f3['containsRangeInObject']&&!_0x5484f3['isInsideObject'])){if(_0x3b9358['isMultiRange']){if(!cn(_0x3b9358,_0x59e44f))continue;let _0x12535a=!0x0;for(const _0x1aaa0b of _0x3b9358['getRanges']()){if(_0x1aaa0b['containsRange'](_0x4af5ae,!0x0))return _0x3b9358;_0x4af5ae['containsRange'](_0x1aaa0b)||(_0x12535a=!0x1);}_0x12535a&&_0x3b9358['discard']();}else{const _0x2a5e4a=_0x3b9358['getFirstRange']();if(_0x2a5e4a['containsRange'](_0x4af5ae,!0x0))return _0x3b9358;if(!cn(_0x3b9358,_0x59e44f)){_0x4af5ae['containsRange'](_0x2a5e4a)?_0x3b9358['removeMarkers']():_0x2a5e4a['containsPosition'](_0x49f009)?_0x49f009=_0x2a5e4a['end']:_0x2a5e4a['containsPosition'](_0x1a22b7)&&(_0x1a22b7=_0x2a5e4a['start']);continue;}_0x49f009=_0x49f009['isBefore'](_0x2a5e4a['start'])?_0x49f009:_0x2a5e4a['start'],_0x1a22b7=_0x1a22b7['isAfter'](_0x2a5e4a['end'])?_0x1a22b7:_0x2a5e4a['end'],_0x59e44f=Object['assign']({},_0x3b9358['attributes']),_0x26442a?_0x2a5e4a['start']['isBefore'](_0x26442a['getFirstRange']()['start'])?(_0x26442a['removeMarkers'](),_0x26442a=_0x3b9358):_0x3b9358['removeMarkers']():_0x26442a=_0x3b9358;}}}if(_0x26442a)return this['_setSuggestionRange'](_0x26442a,this['_model']['createRange'](_0x49f009,_0x1a22b7)),_0x26442a;{const _0x3d0dae=_0x390171(),_0x10460d=this['_model']['createRange'](_0x49f009,_0x1a22b7),_0x410ae6=_0x33f8b6['id'],_0xfe49d0=_0x22f194?'deletion:'+_0x22f194:'deletion',_0x21c753=this['_setSuggestionData']({'id':_0x3d0dae,'type':_0xfe49d0,'createdAt':new Date(),'authorId':_0x410ae6,'attributes':_0x59e44f});return this['_addSuggestionMarker'](_0xfe49d0,_0x3d0dae,_0x410ae6,_0x10460d),_0x21c753;}}['markMultiRangeDeletion'](_0x1ee01f,_0x5a0213='multi',_0x13d28a={}){const _0x54a63d=this['editor']['plugins']['get']('Users')['me'],_0x58e813=_0x1ee01f['map'](_0x4eb675=>new _0x1a0aad(_0x4eb675['start'],_0x4eb675['end'])),_0x2624ab=new Set();this['_trackingSessionId']&&(_0x13d28a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xce2917,meta:_0x27cdd2}of this['_findSuggestions'](_0x58e813,'insertion'))_0x27cdd2['isOwn']&&!_0x27cdd2['isNextTo']&&_0x2624ab['add'](_0xce2917);for(const _0x514557 of _0x2624ab)if(_0x514557['isMultiRange']){const _0x20012c=_0x514557['getRanges']();(!_0x514557['attributes']||!_0x514557['attributes']['skipNestingCheck'])&&(_0x20012c['every'](_0xa5a505=>_0x58e813['some'](_0x218cb8=>_0x218cb8['containsRange'](_0xa5a505,!0x0)))&&_0x514557['discard']());if(_0x58e813['every'](_0x3cb901=>_0x20012c['some'](_0x3434db=>_0x3434db['containsRange'](_0x3cb901,!0x0)))){const _0x1033c8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a0213,'accept');return this['forceDefaultExecution'](()=>_0x1033c8(_0x1ee01f,null,_0x13d28a)),null;}}else{const _0x4db78a=_0x514557['getFirstRange']();_0x58e813['some'](_0x5eaac7=>_0x5eaac7['containsRange'](_0x4db78a,!0x0))&&_0x514557['discard']();if(_0x58e813['every'](_0x2f02ba=>_0x4db78a['containsRange'](_0x2f02ba,!0x0))){const _0x1a29db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a0213,'accept');return this['forceDefaultExecution'](()=>_0x1a29db(_0x58e813,null,_0x13d28a)),null;}}const _0x335b5b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a0213,'join');let _0x5e6c37=null;for(const _0x40fdfe of this['getSuggestions']())if(_0x40fdfe['author']['id']==_0x54a63d['id']&&_0x40fdfe['isInContent']&&'deletion'==_0x40fdfe['type']&&_0x40fdfe['subType']==_0x5a0213&&cn(_0x40fdfe,_0x13d28a)&&(_0x335b5b(_0x40fdfe['getRanges'](),_0x58e813)||_0x335b5b(_0x58e813,_0x40fdfe['getRanges']()))){if(_0x5e6c37){if(_0x40fdfe['commentThread']&&_0x40fdfe['commentThread']['length'])continue;for(const _0xa51c64 of _0x40fdfe['getRanges']())_0x5e6c37['isIntersectingWithRange'](_0xa51c64)||_0x5e6c37['addRange'](_0xa51c64);_0x40fdfe['removeMarkers']();}else{_0x5e6c37=_0x40fdfe;for(const _0x224b8f of _0x58e813)_0x40fdfe['isIntersectingWithRange'](_0x224b8f)||_0x40fdfe['addRange'](_0x224b8f);}}if(_0x5e6c37)return _0x5e6c37;_0x2624ab['clear']();for(const {suggestion:_0x5a27d0,meta:_0x27c876}of this['_findSuggestions'](_0x58e813,'deletion'))_0x27c876['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27c876['containsRangeInObject']&&!_0x27c876['isInsideObject'])&&cn(_0x5a27d0,_0x13d28a)&&_0x2624ab['add'](_0x5a27d0);for(const _0x408f94 of _0x2624ab){const _0x1719b3=_0x408f94['getRanges']();if(!_0x13d28a||!_0x13d28a['skipNestingCheck']){if(_0x58e813['every'](_0xf4fe3e=>_0x1719b3['some'](_0x38e6b1=>_0x38e6b1['containsRange'](_0xf4fe3e,!0x0))))return _0x408f94;}(!_0x408f94['attributes']||!_0x408f94['attributes']['skipNestingCheck'])&&(_0x1719b3['every'](_0x5551d5=>_0x58e813['some'](_0x29a381=>_0x29a381['containsRange'](_0x5551d5,!0x0)))&&_0x408f94['discard']());}const _0x5cff02=_0x390171(),_0x3f5efa=_0x54a63d['id'],_0x5f50f6='deletion:'+_0x5a0213,_0x6da7e2=this['_setSuggestionData']({'id':_0x5cff02,'type':_0x5f50f6,'createdAt':new Date(),'authorId':_0x3f5efa,'attributes':_0x13d28a});for(const _0x381481 of _0x58e813)_0x381481['detach'](),_0x381481['isCollapsed']||'$graveyard'==_0x381481['root']['rootName']||this['_addSuggestionMarker'](_0x5f50f6,_0x5cff02,_0x3f5efa,_0x381481,bt['getMultiRangeId']());return _0x6da7e2;}['markAttributeChange'](_0x29d62e,_0x5a63f4,_0x252833,_0x56fbec,_0x492183){if(_0x29d62e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1bba97=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ae76a=Array['from'](this['_suggestions']['values']())['filter'](_0x4595e6=>'attribute'==_0x4595e6['type']&&_0x4595e6['data']['key']==_0x5a63f4&&_0x4595e6['isIntersectingWithRange'](_0x29d62e));if(this['_trackingSessionId']&&(_0x492183['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xbaf992=this['_findSuggestions'](_0x29d62e,'insertion')['filter'](({meta:_0x3b0501})=>_0x3b0501['isOwn']&&!_0x3b0501['isInsideObject']&&!_0x3b0501['isNextTo'])['map'](({suggestion:_0x3a094a})=>_0x3a094a);_0x2ae76a['unshift'](..._0xbaf992);}const _0x119941=new Map([[_0x29d62e,_0x252833]]);for(const _0x134d3e of _0x2ae76a){const _0x75108e='attribute'==_0x134d3e['type']?_0x134d3e['data']['oldValue']:void 0x0,_0x4cd07c=_0x134d3e['getFirstRange'](),_0x16cd48=Array['from'](_0x119941['keys']())['find'](_0x2bb670=>_0x2bb670['isIntersecting'](_0x4cd07c));if(!_0x16cd48)continue;const _0x17858e=_0x16cd48['getDifference'](_0x4cd07c);this['_suggestionsConversion']['isBlockAttribute'](_0x5a63f4)&&'insertion'==_0x134d3e['type']&&0x0!=_0x17858e['length']||(_0x119941['delete'](_0x16cd48),_0x17858e['forEach'](_0x377f29=>{_0x119941['set'](_0x377f29,_0x252833);}),'insertion'!=_0x134d3e['type']&&_0x75108e!=_0x56fbec&&_0x119941['set'](_0x16cd48['getIntersection'](_0x4cd07c),_0x75108e));}const _0x1bfce6=[];for(const [_0x3c01bc,_0x4b6896]of _0x119941){const _0x2448f3=_0x390171(),_0x3c2f68={'key':_0x5a63f4,'oldValue':_0x4b6896,'newValue':_0x56fbec};_0x5a63f4['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':_0x5a63f4});const _0x33925f=('attribute:'+(_0x5a63f4+'|'+Je({'newValue':_0x56fbec})))['substring'](0x0,0x3c),_0x4d762c=this['_setSuggestionData']({'id':_0x2448f3,'type':_0x33925f,'data':_0x3c2f68,'createdAt':new Date(),'authorId':_0x1bba97,'attributes':_0x492183});_0x1bfce6['push'](_0x4d762c),this['_addSuggestionMarker'](_0x33925f,_0x2448f3,_0x1bba97,_0x3c01bc);}return _0x1bfce6;}['enableDefaultAttributesIntegration'](_0x2d47a3){this['enableCommand'](_0x2d47a3,(_0x7c89ee,..._0x24082a)=>{this['recordAttributeChanges'](()=>{_0x7c89ee(..._0x24082a);});});}['startTrackingSession'](_0x238acc){return this['_trackingSessionId']=void 0x0!==_0x238acc?_0x238acc:_0x390171(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2635c3){return'attribute'==_0x2635c3['type']?un(_0x2635c3['subType']):null;}['_applyOperationsAsSuggestions'](_0xcb2b3){if(0x0==_0xcb2b3['length'])return;const _0x3c4f37=this['editor'],_0x1d1bdb=_0x3c4f37['plugins']['get'](_0x251b21),_0x3b537f=[];_0x3c4f37['model']['change'](_0x42a62a=>{for(let _0x1930cf=0x0;_0x1930cf<_0xcb2b3['length'];_0x1930cf++){const _0x460a4f=_0xcb2b3[_0x1930cf];if(_0x460a4f['baseVersion']=_0x3c4f37['model']['document']['version'],_0x460a4f['isDocumentOperation']=!0x0,_0x1d1bdb['isMarkedRemoveOperation'](_0x460a4f)){const _0x4159e6=_0x3ff99b(_0x460a4f['newRange'],_0x3c4f37['model']);_0x3b537f['unshift'](_0x1a0aad['fromRange'](_0x4159e6));}else switch(_0x460a4f['type']){case'rename':{const _0x5cdf24=_0x460a4f['oldName'],_0x33c638=_0x460a4f['newName'];if(_0x5cdf24==_0x33c638)break;_0x42a62a['batch']['addOperation'](_0x460a4f),_0x3c4f37['model']['applyOperation'](_0x460a4f);const _0x5b0f06='$elementName',_0x4a60c3=_0x460a4f['position'],_0xdfc92b=_0x3c4f37['model']['createRange'](_0x4a60c3,_0x3c4f37['model']['createPositionAt'](_0x4a60c3['nodeAfter'],'end'));this['markAttributeChange'](_0xdfc92b,_0x5b0f06,_0x5cdf24,_0x33c638,{'groupId':_0x390171()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x39cb85=_0x460a4f['oldValue'],_0x39d854=_0x460a4f['newValue'];if(_0x39cb85==_0x39d854)break;_0x42a62a['batch']['addOperation'](_0x460a4f),_0x3c4f37['model']['applyOperation'](_0x460a4f);const _0x359cf9=_0x460a4f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x359cf9))break;const _0x4d6d9c=_0x3ff99b(_0x460a4f['range'],_0x3c4f37['model']);this['markAttributeChange'](_0x4d6d9c,_0x359cf9,_0x39cb85,_0x39d854,{'groupId':_0x390171()});break;}case'insert':{_0x42a62a['batch']['addOperation'](_0x460a4f),_0x3c4f37['model']['applyOperation'](_0x460a4f);if(_0xcb2b3[_0x1930cf+0x1]&&'move'==_0xcb2b3[_0x1930cf+0x1]['type'])break;const _0x149d26=_0x460a4f['position'],_0x1ed0e0=_0x460a4f['howMany'],_0x34e1e6=_0x3ff99b(_0x3c4f37['model']['createRange'](_0x149d26,_0x149d26['getShiftedBy'](_0x1ed0e0)),_0x3c4f37['model']);this['markInsertion'](_0x34e1e6);break;}case'split':{_0x42a62a['batch']['addOperation'](_0x460a4f),_0x3c4f37['model']['applyOperation'](_0x460a4f);const _0x12b6d1=_0x460a4f['splitPosition'],_0x3a4470=_0x460a4f['moveTargetPosition'];this['markInsertion'](_0x3c4f37['model']['createRange'](_0x12b6d1,_0x3a4470));break;}case'move':case'remove':_0x42a62a['batch']['addOperation'](_0x460a4f),_0x3c4f37['model']['applyOperation'](_0x460a4f);}}for(const _0x51e984 of _0x3b537f)_0x51e984['detach'](),this['markDeletion'](_0x51e984);});}['_setSuggestionRange'](_0x561eaf,_0x326b63){const _0x3c1728=_0x561eaf['getFirstMarker']();this['_model']['change'](_0x4ab5d5=>{_0x4ab5d5['updateMarker'](_0x3c1728,{'range':_0x326b63});});}['_addThreadToSuggestion'](_0x365eb9){const _0x5e3777=_0x365eb9['id'],_0x3a1649=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e3777)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3a1649,'threadId':_0x5e3777,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3c02e7=this['_commentsRepository']['getCommentThread'](_0x5e3777);_0x3c02e7['unbind']('isRemovable'),_0x3c02e7['isRemovable']=!0x1,_0x365eb9['commentThread']=_0x3c02e7;}['_checkSuggestionCorrectness'](_0x8e434,_0x459169,_0x15e190,_0x51a5dc){if(_0x8e434['type']!=_0x459169||_0x8e434['subType']!=_0x15e190||_0x8e434['creator']['id']!=_0x51a5dc)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ffcc7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x326462,_0x22d254){const _0x431ece=_0x326462['getFirstRange']();if(_0x22d254['isEqual'](_0x431ece))_0x326462['removeMarkers']();else{if(_0x431ece['containsRange'](_0x22d254)){const _0x5d3a28=this['_model']['createPositionAt'](_0x22d254['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x326462,this['_model']['createRange'](_0x431ece['start'],_0x5d3a28));const _0x1fa183=_0x390171(),_0xb4be1f=_0x326462['creator']['id'],_0x14721d=_0x326462['type']+':'+_0x326462['subType'];this['_setSuggestionData']({'id':_0x1fa183,'type':_0x14721d,'createdAt':new Date(),'authorId':_0xb4be1f,'data':_0x326462['data'],'attributes':_0x326462['attributes']});const _0x4d7bf5=this['_model']['createPositionAt'](_0x22d254['end']['parent'],'after'),_0x39e3ff=this['_model']['createRange'](_0x4d7bf5,_0x431ece['end']);this['_addSuggestionMarker'](_0x14721d,_0x1fa183,_0xb4be1f,_0x39e3ff);}else{if(_0x431ece['containsPosition'](_0x22d254['start'])){const _0xfce61a=this['_model']['createPositionAt'](_0x22d254['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x326462,this['_model']['createRange'](_0x431ece['start'],_0xfce61a));}else{const _0x3a91f1=this['_model']['createPositionAt'](_0x22d254['end']['parent'],'after');this['_setSuggestionRange'](_0x326462,this['_model']['createRange'](_0x3a91f1,_0x431ece['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5bb874){for(const {suggestion:_0x1f8e10,meta:_0x296f59}of this['_findSuggestions'](_0x5bb874,'insertion')){if(!_0x296f59['isOwn'])continue;const _0x22d98d=_0x1f8e10['getRanges']();for(const _0x5c8b3f of _0x22d98d)if(!_0x5bb874['getDifference'](_0x5c8b3f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x27b2e3){return this['editor']['plugins']['get']('Users')['getUser'](_0x27b2e3);}['_getExternalAuthor'](_0x141cba){const _0x43130f=this['editor']['plugins']['get']('Users'),_0x4846ae=_0x19c7d6('external:'+_0x141cba),_0x2b72b3=_0x43130f['getUser'](_0x4846ae);return _0x2b72b3||_0x43130f['addUser']({'id':_0x4846ae,'name':_0x141cba});}['_createSuggestion'](_0x4e4a58,_0x46d0c0,_0xb8627,_0x4c2c34,_0x20180d,_0x4eaf24){const _0x5634fa=this['_getAuthorFromId'](_0x4c2c34);if(!_0x5634fa)throw new _0x4ffcc7('track-changes-user-not-found',this,{'authorId':_0x4c2c34,'suggestionId':_0xb8627});const _0x3e7bd4=this['_suggestionFactory']['buildSuggestion'](_0x4e4a58,_0x46d0c0,_0xb8627,_0x5634fa,_0x20180d,_0x1759c1=>{this['_updateSuggestionData'](_0xb8627,{'attributes':_0x1759c1});const _0x54cbdf=this['getSuggestion'](_0xb8627);this['_joinWithAdjacentSuggestions'](new Set([_0x54cbdf])),this['_refreshSuggestionsChain'](new Set([_0x54cbdf]));},_0x4eaf24);return this['listenTo'](_0x3e7bd4,'accept',()=>{this['_updateSuggestionData'](_0xb8627,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e7bd4,'discard',()=>{this['_updateSuggestionData'](_0xb8627,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xb8627,_0x3e7bd4),this['_suggestionState']['set'](_0x3e7bd4,'notReady'),_0x3e7bd4;}['_breakSuggestionMarker'](_0x30ed3c,_0x314fa3,_0x440f62){const _0x564b86=_0x30ed3c['getFirstRange'](),_0x309831=_0x564b86['start'],_0x18483e=_0x564b86['end'];this['_setSuggestionRange'](_0x30ed3c,this['_model']['createRange'](_0x309831,_0x314fa3));const _0x1db4cd=_0x390171(),_0x1dfd59=_0x30ed3c['creator']['id'],_0x43fb71=_0x30ed3c['type']+(_0x30ed3c['subType']?':'+_0x30ed3c['subType']:'');this['_setSuggestionData']({'id':_0x1db4cd,'type':_0x43fb71,'createdAt':new Date(),'authorId':_0x1dfd59,'originalSuggestionId':_0x30ed3c['_originalSuggestionId']||_0x30ed3c['id'],'attributes':_0x30ed3c['attributes'],'data':_0x30ed3c['data']});const _0x2758b7=this['_getAttributeKey'](_0x30ed3c);('formatBlock'==_0x30ed3c['type']||_0x2758b7&&this['_suggestionsConversion']['isBlockAttribute'](_0x2758b7))&&(_0x440f62=this['_model']['createPositionBefore'](_0x440f62['parent'])),this['_addSuggestionMarker'](_0x43fb71,_0x1db4cd,_0x1dfd59,this['_model']['createRange'](_0x440f62,_0x18483e));}['_findSuggestions'](_0x182747,_0x395536=null){const _0x200ec2=[],_0x5b679c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x182747)||(_0x182747=[_0x182747]);for(const _0x19dfd7 of this['getSuggestions']()){if(!_0x19dfd7['isInContent'])continue;if(_0x395536&&_0x19dfd7['type']!=_0x395536)continue;let _0xc0066b=!0x1;for(const _0x533289 of _0x19dfd7['getRanges']()){for(const _0x5b87fc of _0x182747){const _0x48857c=_0x5b87fc['start']['isEqual'](_0x533289['end'])||_0x5b87fc['end']['isEqual'](_0x533289['start']);if(_0x48857c||_0x5b87fc['getIntersection'](_0x533289)){const _0x438f1d=_0x5b87fc['containsRange'](_0x533289)&&qe(this['_model']['schema'],_0x533289['start'],_0x5b87fc),_0x11071c=_0x533289['containsRange'](_0x5b87fc)&&qe(this['_model']['schema'],_0x5b87fc['start'],_0x533289);_0x200ec2['push']({'suggestion':_0x19dfd7,'meta':{'isOwn':_0x5b679c==_0x19dfd7['author'],'isNextTo':_0x48857c,'isInsideObject':_0x438f1d,'containsRangeInObject':_0x11071c}}),_0xc0066b=!0x0;break;}}if(_0xc0066b)break;}}return _0x200ec2;}['_addSuggestionMarker'](_0x29193e,_0x3db51a,_0x218835,_0x2d8162,_0x3a80bc){this['_model']['change'](_0x15f1ee=>{let _0x4c793a='suggestion:'+_0x29193e+':'+_0x3db51a+':'+_0x218835;_0x3a80bc&&(_0x4c793a=_0x4c793a+':'+_0x3a80bc),_0x15f1ee['addMarker'](_0x4c793a,{'range':_0x2d8162,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x57d142){const _0x26a9f1=_0x57d142['previous'],_0x5c627f=_0x57d142['next'];_0x57d142['previous']=null,_0x57d142['next']=null,null!=_0x26a9f1&&_0x26a9f1['next']==_0x57d142&&(_0x26a9f1['next']=_0x5c627f),null!=_0x5c627f&&_0x5c627f['previous']==_0x57d142&&(_0x5c627f['previous']=_0x26a9f1),'ready'==this['_suggestionState']['get'](_0x57d142)&&(this['_suggestionState']['set'](_0x57d142,'removed'),this['fire']('suggestionUnloaded',_0x57d142,_0x26a9f1,_0x5c627f));}['_setSuggestionData'](_0x142c10){const _0x28004a=_0x142c10['id'],_0x169ab8=this['addSuggestionData'](_0x142c10);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3dd82c=this['editor']['plugins']['get']('PendingActions'),_0xd5005=_0x169ab8['hasComments'],_0xd955e3=_0x169ab8['subType']?_0x169ab8['type']+':'+_0x169ab8['subType']:_0x169ab8['type'],_0x410797=this['editor']['locale'],_0x1160db=_0x3dd82c['add'](At(_0x410797,'PENDING_ACTION_SUGGESTION')),_0x423bb6={'id':_0x28004a,'type':_0xd955e3,'hasComments':_0xd5005,'data':_0x142c10['data']||null,'originalSuggestionId':_0x142c10['originalSuggestionId']||null,'attributes':_0x169ab8['attributes']};this['_adapter']['addSuggestion'](_0x423bb6)['then'](_0x2f1286=>{_0x169ab8['_saved']=!0x0,_0x3dd82c['remove'](_0x1160db),_0x2f1286&&_0x2f1286['createdAt']&&(this['_suggestions']['get'](_0x28004a)['createdAt']=_0x2f1286['createdAt']);})['catch'](_0x50b2de=>{throw _0x3c9b99('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x169ab8['discard']();}),_0x169ab8['stopListening'](),this['_suggestions']['delete'](_0x169ab8['id']),this['_suggestionState']['delete'](_0x169ab8),_0x50b2de;});}return _0x169ab8;}['_updateSuggestionData'](_0x44698f,_0x31915a){const _0x707bef=this['editor']['plugins']['get']('PendingActions'),_0x39d934=this['getSuggestion'](_0x44698f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39d934['_saved']){const _0x46cec7=_0x707bef['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x44698f,_0x31915a)['then'](()=>{_0x707bef['remove'](_0x46cec7);});}else _0x39d934['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x44698f,_0x31915a);});}}['_getSuggestionData'](_0x35b581){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ffcc7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x35b581);}['_handleNewSuggestionMarker'](_0x18af89){const {id:_0x835f59,type:_0x27dc62,subType:_0x425723,authorId:_0x4ebd0d}=_0x1e81d1(_0x18af89),_0x367c64=this['_suggestions']['get'](_0x835f59)||this['_createSuggestion'](_0x27dc62,_0x425723,_0x835f59,_0x4ebd0d,{});switch(this['_checkSuggestionCorrectness'](_0x367c64,_0x27dc62,_0x425723,_0x4ebd0d),this['_suggestionState']['get'](_0x367c64)){case'notReady':this['_getSuggestionData'](_0x835f59)['then'](_0x3b3a7b=>{let _0x5345ca=Promise['resolve']();_0x3b3a7b['hasComments']&&(_0x5345ca=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x835f59})),_0x5345ca['then'](()=>{this['addSuggestionData'](_0x3b3a7b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x367c64,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x835f59,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x367c64,'ready'),this['fire']('suggestionLoaded',_0x367c64);break;case'ready':this['fire']('suggestionChanged',_0x367c64);}return _0x367c64['addMarkerName'](_0x18af89),_0x367c64;}['_refreshSuggestionsChain'](_0x18e60e){const _0x1cd46d=Array['from'](_0x18e60e),_0x5bcd1f=_0x1cd46d['filter'](_0x5a46fa=>'attribute'==_0x5a46fa['type']);this['_refreshAttributeSuggestionsChain'](_0x5bcd1f);const _0x5f53ac=_0x1cd46d['filter'](_0x50965b=>!_0x50965b['isMultiRange']&&'attribute'!=_0x50965b['type']),_0x142f55=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d73a2=>!_0x3d73a2['isMultiRange']&&'attribute'!=_0x3d73a2['type']),_0xaf52a4=_0x142f55['filter'](_0x525e0d=>!_0x18e60e['has'](_0x525e0d)),_0x5e5923=new Map(_0x142f55['map'](_0x185479=>[_0x185479,this['_suggestionFactory']['getSuggestionCallback'](_0x185479['type'],_0x185479['subType'],'chain')])),_0x3e1a2f=new Map(_0x142f55['map'](_0x14af4e=>[_0x14af4e,_0x14af4e['getFirstRange']()])),_0x1a20da=new Set(),_0x250426=new Set();for(let _0x4a2a83=0x0;_0x4a2a83<_0x5f53ac['length'];_0x4a2a83++)_0x242ed2(_0x5f53ac[_0x4a2a83],_0x5f53ac,_0x4a2a83+0x1);for(let _0x5505b6=0x0;_0x5505b6<_0x5f53ac['length'];_0x5505b6++)_0x242ed2(_0x5f53ac[_0x5505b6],_0xaf52a4,0x0);const _0x328557=new Set();for(let _0x1fb1b9=0x0;_0x1fb1b9<_0x5f53ac['length'];_0x1fb1b9++){const _0x59940a=_0x5f53ac[_0x1fb1b9];!_0x250426['has'](_0x59940a)&&_0x59940a['previous']&&(_0x328557['add'](_0x59940a['previous']),_0x59940a['previous']['next']===_0x59940a&&(_0x59940a['previous']['next']=null),_0x59940a['previous']=null),!_0x1a20da['has'](_0x59940a)&&_0x59940a['next']&&(_0x328557['add'](_0x59940a['next']),_0x59940a['next']['previous']===_0x59940a&&(_0x59940a['next']['previous']=null),_0x59940a['next']=null);}function _0x242ed2(_0x5754a2,_0x2030c2,_0x32c99c){for(let _0xd06d1c=_0x32c99c;_0xd06d1c<_0x2030c2['length'];_0xd06d1c++){const _0x3fed20=_0x2ae2e5(_0x5754a2,_0x2030c2[_0xd06d1c]);_0x3fed20&&(_0x3fed20[0x0]['next']=_0x3fed20[0x1],_0x3fed20[0x1]['previous']=_0x3fed20[0x0],_0x1a20da['add'](_0x3fed20[0x0]),_0x250426['add'](_0x3fed20[0x1]));}}function _0x2ae2e5(_0x2e0afe,_0x2bdf0a){if(_0x2e0afe['author']['id']!==_0x2bdf0a['author']['id'])return null;const _0x3f2abb=_0x5e5923['get'](_0x2e0afe)(_0x2e0afe,_0x2bdf0a,_0x3e1a2f['get'](_0x2e0afe),_0x3e1a2f['get'](_0x2bdf0a));if(!_0x3f2abb)return null;return _0x5e5923['get'](_0x2bdf0a)(_0x2e0afe,_0x2bdf0a,_0x3e1a2f['get'](_0x2e0afe),_0x3e1a2f['get'](_0x2bdf0a))?_0x3f2abb[0x1]['commentThread']&&_0x3f2abb[0x1]['commentThread']['length']?null:_0x3f2abb:null;}_0x328557['size']&&this['_refreshSuggestionsChain'](_0x328557);}['_refreshAttributeSuggestionsChain'](_0x2d5755){if(0x0==_0x2d5755['length'])return;const _0x41d70d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e62e2=>'attribute'==_0x1e62e2['type']&&_0x1e62e2['_isDataLoaded']),_0x4c2c5a=[],_0x206f22=new Map();for(const _0x5f9813 of _0x41d70d){const _0x159170=_0x19c7d6(_0x5f9813['attributes']);_0x206f22['has'](_0x159170)||(_0x206f22['set'](_0x159170,_0x4c2c5a['length']),_0x4c2c5a['push']([]));const _0xa826ec=_0x206f22['get'](_0x159170);_0x4c2c5a[_0xa826ec]['push'](_0x5f9813);}!(function(){_0x4c2c5a['sort']((_0x38d58e,_0x4f822c)=>{const _0x493b7e=_0x38d58e[0x0]['createdAt'],_0x45c56e=_0x4f822c[0x0]['createdAt'];return _0x493b7e==_0x45c56e?_0x38d58e[0x0]['attributes']['groupId']<_0x4f822c[0x0]['attributes']['groupId']?-0x1:0x1:_0x493b7e<_0x45c56e?-0x1:0x1;});for(const _0x2151d4 of _0x4c2c5a)_0x2151d4['sort']((_0x1a9b9c,_0x24a754)=>_0x1a9b9c['id']<_0x24a754['id']?-0x1:0x1);}());for(let _0x43f797=0x0;_0x43f797<_0x4c2c5a['length'];_0x43f797++){if(0x0==_0x4c2c5a[_0x43f797]['length'])continue;const _0x137c37=[];for(let _0x410d1a=_0x43f797+0x1;_0x410d1a<_0x4c2c5a['length'];_0x410d1a++)0x0!=_0x4c2c5a[_0x410d1a]['length']&&_0x57ae1d(_0x4c2c5a[_0x43f797],_0x4c2c5a[_0x410d1a])&&_0x137c37['push'](_0x410d1a);for(const _0x1fc369 of _0x137c37)_0x4c2c5a[_0x43f797]=_0x4c2c5a[_0x43f797]['concat'](_0x4c2c5a[_0x1fc369]),_0x4c2c5a[_0x1fc369]=[];}for(const _0x1cbe0d of _0x4c2c5a)for(let _0x3cf42a=0x0;_0x3cf42a<_0x1cbe0d['length'];_0x3cf42a++){const _0x528172=_0x1cbe0d[_0x3cf42a+0x1]||null;_0x1cbe0d[_0x3cf42a]['next']!==_0x528172&&(_0x1cbe0d[_0x3cf42a]['next']=_0x528172);}for(const _0x8ccc97 of _0x4c2c5a)for(let _0x735e68=0x0;_0x735e68<_0x8ccc97['length'];_0x735e68++){const _0x148de6=_0x8ccc97[_0x735e68-0x1]||null;_0x8ccc97[_0x735e68]['previous']!==_0x148de6&&(_0x8ccc97[_0x735e68]['previous']=_0x148de6);}function _0x57ae1d(_0x4ceb81,_0x225b87){if(_0x4ceb81[0x0]['attributes']['groupId']!==_0x225b87[0x0]['attributes']['groupId']&&_0x4ceb81[0x0]['author']!==_0x225b87[0x0]['author'])return!0x1;if(!function(_0x4e4c6e,_0x246537){if(!_0x4e4c6e['hasComments']&&!_0x246537['hasComments'])return!0x0;if(_0x4e4c6e['hasComments']&&_0x246537['hasComments'])return!0x1;if(_0x4e4c6e['hasComments']&&_0x246537['createdAt']<_0x4e4c6e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x246537['hasComments']&&_0x4e4c6e['createdAt']<_0x246537['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4ceb81[0x0],_0x225b87[0x0]))return!0x1;const _0x53bfcb=ot(_0x4ceb81[0x0]['attributes'],['groupId','trackingSessionId']),_0x225829=ot(_0x225b87[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x53bfcb,_0x225829))return!0x1;if(_0x4ceb81[0x0]['attributes']['groupId']==_0x225b87[0x0]['attributes']['groupId'])return!0x0;if(_0x4ceb81[0x0]['attributes']['trackingSessionId']!==_0x225b87[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4ceb81['every'](_0x22f2dd=>_0x225b87['some'](_0x6c9c05=>_0x22f2dd['getFirstRange']()['isEqual'](_0x6c9c05['getFirstRange']())))&&_0x225b87['every'](_0x5ce4f5=>_0x4ceb81['some'](_0x4915df=>_0x5ce4f5['getFirstRange']()['isEqual'](_0x4915df['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x569be6){const _0x3f20c0=Array['from'](_0x569be6),_0x1fdd6a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ba3ef=_0x1fdd6a['filter'](_0x5dc6b3=>!_0x569be6['has'](_0x5dc6b3)),_0x4ba2ae=new Map(_0x3f20c0['map'](_0x205da7=>[_0x205da7,this['_suggestionFactory']['getSuggestionCallback'](_0x205da7['type'],_0x205da7['subType'],'join')])),_0x2aaa29=new Map(_0x1fdd6a['map'](_0x4e94eb=>[_0x4e94eb,_0x4e94eb['getRanges']()]));for(let _0x577f73=0x0;_0x577f73<_0x3f20c0['length'];_0x577f73++){if(_0x4420f4(this,_0x3f20c0[_0x577f73],_0x3f20c0,_0x577f73+0x1))return!0x0;}for(let _0x192cd7=0x0;_0x192cd7<_0x3f20c0['length'];_0x192cd7++){if(_0x4420f4(this,_0x3f20c0[_0x192cd7],_0x3ba3ef,0x0))return!0x0;}return!0x1;function _0x4420f4(_0x481f52,_0xe49eb,_0x1eb927,_0x2c1e0d){for(let _0x23b474=_0x2c1e0d;_0x23b474<_0x1eb927['length'];_0x23b474++){const _0x61280a=_0x1eb927[_0x23b474];if(_0x61280a['type']!==_0xe49eb['type']||_0x61280a['author']['id']!==_0xe49eb['author']['id']||_0x61280a['subType']!==_0xe49eb['subType'])continue;if(!an(_0xe49eb,_0x61280a))continue;if('attribute'==_0xe49eb['type']&&_0xe49eb['data']['oldValue']!=_0x61280a['data']['oldValue'])continue;if('attribute'==_0xe49eb['type']&&_0x481f52['_suggestionsConversion']['isBlockAttribute'](_0xe49eb['data']['key']))continue;if('formatBlock'==_0xe49eb['type']){const _0x221499=_0x481f52['editor']['model'],_0x42232b=_0xe49eb['getContainedElement']();if(_0x42232b&&(_0x221499['schema']['isObject'](_0x42232b)||_0x221499['schema']['isLimit'](_0x42232b)))continue;}const _0x38e245=_0x4ba2ae['get'](_0xe49eb),_0x15ec2b=_0x2aaa29['get'](_0xe49eb),_0x337f82=_0x2aaa29['get'](_0x61280a),_0x22826d=_0xe49eb['commentThread']&&_0xe49eb['commentThread']['length'],_0x5c6e6c=_0x61280a['commentThread']&&_0x61280a['commentThread']['length'];if(!_0x22826d&&_0x38e245(_0x337f82,_0x15ec2b))return _0x481f52['_joinSuggestions'](_0x61280a,_0xe49eb),_0x2aaa29['delete'](_0xe49eb),!0x0;if(!_0x5c6e6c&&_0x38e245(_0x15ec2b,_0x337f82))return _0x481f52['_joinSuggestions'](_0xe49eb,_0x61280a),_0x2aaa29['delete'](_0x61280a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x24359a,_0x4b8c81){if(_0x24359a['isMultiRange']){for(const _0x244a46 of _0x4b8c81['getRanges']())_0x24359a['addRange'](_0x244a46);}else{const _0x4d0895=_0x4b8c81['getFirstRange']()['end'];this['_setSuggestionRange'](_0x24359a,this['_model']['createRange'](_0x24359a['getFirstRange']()['start'],_0x4d0895));}_0x4b8c81['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5871d0,_0x5c4212,_0x3717f6){const _0x337fac=_0x5871d0['startsWith']('format')||_0x5871d0['startsWith']('attribute')?'FORMATTING':_0x5871d0['toUpperCase']();return At(this['editor']['locale'],_0x5c4212+'_'+_0x337fac+'_SUGGESTION_ANNOUNCEMENT',_0x3717f6);}['_initAriaMarkerChangeAnnouncements'](){const _0xa3452=this['editor'];if(!_0xa3452['ui'])return;const {ariaLiveAnnouncer:_0x18ad81}=_0xa3452['ui'];_0x37db99(this['_model'],({left:_0x2b4860,entered:_0x28daa3})=>{for(const _0x1f72cc of _0x2b4860){const {group:_0x518911,type:_0x9ffa8a}=_0x1e81d1(_0x1f72cc['name']);if('suggestion'===_0x518911){_0x18ad81['announce'](this['_getMarkerAnnouncementText'](_0x9ffa8a,'LEAVE'));break;}}for(const _0x1ba300 of _0x28daa3){const {group:_0x3a513e,type:_0x2d0ec1}=_0x1e81d1(_0x1ba300['name']);if('suggestion'===_0x3a513e){_0x18ad81['announce'](this['_getMarkerAnnouncementText'](_0x2d0ec1,'ENTER',_0x2c781a(_0x3d2a75)));break;}}});}['_processAttributeChanges'](_0x2d3d3a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4c9f36=this['editor'],_0x4ae01d=_0x4c9f36['model']['document']['differ']['getChanges']();if(0x0==_0x4ae01d['length'])return!0x1;const _0x3a3f74=[],_0x53697d=_0x4ae01d['filter'](_0x376e1d=>'attribute'==_0x376e1d['type']),_0x363660=_0x4ae01d['filter'](_0x483356=>'insert'==_0x483356['type']&&'$text'!=_0x483356['name']),_0x3c301c=_0x4ae01d['filter'](_0x5b7bfc=>'remove'==_0x5b7bfc['type']&&'$text'!=_0x5b7bfc['name']);for(const _0x5e4ad3 of _0x53697d)_0x3a3f74['push']({'key':_0x5e4ad3['attributeKey'],'newValue':_0x5e4ad3['attributeNewValue'],'oldValue':_0x5e4ad3['attributeOldValue'],'range':sn(_0x5e4ad3['range'],_0x4c9f36['model'])});for(const _0x4ae6db of _0x363660){const _0xad82a8=_0x3c301c['find'](_0xd4e71a=>_0xd4e71a['position']['isEqual'](_0x4ae6db['position']));_0xad82a8&&_0x3a3f74['push']({'key':Ke,'newValue':_0x4ae6db['name'],'oldValue':_0xad82a8['name'],'range':_0x4c9f36['model']['createRangeOn'](_0x4ae6db['position']['nodeAfter'])});}return 0x0!=_0x3a3f74['length']&&this['_reduceExistingSuggestions'](_0x2d3d3a,_0x3a3f74);}['_processAttributeSuggestions'](_0xf85e57){let _0x1b148b=!0x1;const _0x4ef16c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14bfd6=>_0x14bfd6['data']['newRange']&&_0x14bfd6['name']['startsWith']('suggestion:attribute:'));for(const _0x50e4ae of _0x4ef16c){const {subType:_0x36959d,id:_0x271a97}=_0x1e81d1(_0x50e4ae['name']),_0x5a9d8e=_0x36959d['split']('|')[0x0];for(const _0x33e164 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x33e164['id']!=_0x271a97&&'attribute'==_0x33e164['type']&&_0x33e164['data']&&_0x33e164['data']['key']==_0x5a9d8e&&_0x33e164['getFirstRange']()['isIntersecting'](_0x50e4ae['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x33e164,_0x50e4ae['data']['newRange'],_0xf85e57),_0x1b148b=!0x0);}return _0x1b148b;}['recordAttributeChanges'](_0x5718c3){this['_recordAttributeSuggestions']=!0x0,_0x5718c3();}['_reduceExistingSuggestions'](_0x4f289e,_0x2bc5d8){if(0x0==_0x2bc5d8['length'])return!0x1;let _0x571d91=!0x1;for(const _0x1c3cb4 of _0x2bc5d8){const _0x26024f=this['_findSuggestions'](_0x1c3cb4['range'],'attribute')['filter'](_0x427320=>!_0x427320['meta']['isNextTo'])['map'](_0x3b002f=>_0x3b002f['suggestion']),_0x3f5498=_0x19c7d6({'newValue':_0x1c3cb4['newValue']});_0x26024f['filter'](_0x4535ec=>{const [_0x1b0903,_0x3dafa6]=_0x4535ec['subType']['split']('|');return _0x1b0903==_0x1c3cb4['key']&&_0x3dafa6!=_0x3f5498;})['forEach'](_0x3b7980=>{this['_reduceSuggestionAttributeRange'](_0x3b7980,_0x1c3cb4['range'],_0x4f289e),_0x571d91=!0x0;});}return _0x571d91;}['_reduceSuggestionAttributeRange'](_0x20c9fd,_0x5e0a47,_0x25cc60){const _0x4add6d=_0x20c9fd['getFirstRange']()['getDifference'](_0x5e0a47);0x0!==_0x4add6d['length']?0x1!==_0x4add6d['length']?this['_breakSuggestionMarker'](_0x20c9fd,_0x5e0a47['start'],_0x5e0a47['end']):this['_setSuggestionRange'](_0x20c9fd,_0x4add6d[0x0]):_0x25cc60['removeMarker'](_0x20c9fd['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3129be){this['_editor']=_0x3129be,this['_model']=_0x3129be['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x40d128,_0x508840,_0x4e3f8e,_0x1229d5,_0xfe0454,_0x1f31a3,_0x2e0599){return new bt(this['_model'],{'type':_0x40d128,'subType':_0x508840,'id':_0x4e3f8e,'originalSuggestionId':_0x2e0599,'author':_0x1229d5,'creator':_0x1229d5,'attributes':_0xfe0454,'onAttributesChange':_0x1f31a3,'onAccept':(..._0xd46a67)=>this['getSuggestionCallback'](_0x40d128,_0x508840,'accept')(..._0xd46a67),'onDiscard':(..._0x15b02a)=>this['getSuggestionCallback'](_0x40d128,_0x508840,'discard')(..._0x15b02a)});}['registerCustomCallback'](_0x340b5b,_0xcd63cb,_0x29010c,_0x5140bb){const _0xbc2ae0=_0x340b5b+':'+_0xcd63cb+':'+_0x29010c;this['_customCallbacks']['set'](_0xbc2ae0,_0x5140bb);}['getSuggestionCallback'](_0x3fb453,_0x544bbf,_0x2985c4){const _0x4ae7f0=_0x3fb453+':'+_0x544bbf+':'+_0x2985c4;return this['_customCallbacks']['get'](_0x4ae7f0)||this['_defaultCallbacks']['get'](_0x3fb453+':'+_0x2985c4);}['_registerDefaultCallbacks'](){const _0x5e6c17=()=>!0x1,_0x1a31b7=_0x4e1d3e=>{_0x4e1d3e['sort']((_0x4a1cd0,_0x5a3ed7)=>_0x4a1cd0['start']['isBefore'](_0x5a3ed7['start'])?0x1:-0x1),this['_model']['change'](_0x3af671=>{for(const _0x539385 of _0x4e1d3e){let _0x523f7b;_0x523f7b=_0x539385['end']['isAtEnd']&&_0x539385['end']['parent']==_0x539385['start']['nodeAfter']?_0x3af671['createSelection'](_0x539385['start']['nodeAfter'],'on'):_0x3af671['createSelection'](_0x539385),this['_model']['deleteContent'](_0x523f7b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2e2e07=(_0x13a774,_0x57839c)=>{_0x57839c&&this['_model']['change'](_0x4107d3=>{const {commandName:_0x2e1c6c,commandParams:_0x471c82=[]}=_0x57839c,_0x2e1bfc=_0x13a774['map'](_0x587295=>(Qe(_0x587295)&&(_0x587295=this['_model']['createRange'](_0x587295['end'])),_0x587295))['filter'](_0x366671=>'$graveyard'!==_0x366671['root']['rootName']);if(_0x2e1bfc['length']<0x1)return;const _0x41169a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x440552=>_0x1a0aad['fromRange'](_0x440552));_0x4107d3['setSelection'](_0x2e1bfc);for(const _0x5d25f9 of this['_editor']['commands']['commands']())_0x5d25f9['refresh']();_0x471c82['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2e1c6c,..._0x471c82);const _0xb74d84=_0x41169a['filter'](_0x1f3c34=>'$graveyard'!=_0x1f3c34['root']['rootName']);_0xb74d84['length']>0x0&&_0x4107d3['setSelection'](_0xb74d84);for(const _0x261159 of _0x41169a)_0x261159['detach']();});},_0x5bde5a=(_0x22aebf,_0x437d8d)=>0x1==_0x22aebf['length']&&0x1==_0x437d8d['length']&&_0x22aebf[0x0]['end']['isEqual'](_0x437d8d[0x0]['start']),_0x1d1664=(_0x20a79e,_0x24b9cd,_0x3f1a53,_0x14b065)=>on(_0x20a79e,_0x24b9cd,_0x3f1a53,_0x14b065)?[_0x20a79e,_0x24b9cd]:on(_0x24b9cd,_0x20a79e,_0x14b065,_0x3f1a53)?[_0x24b9cd,_0x20a79e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e6c17),this['_defaultCallbacks']['set']('insertion:discard',_0x1a31b7),this['_defaultCallbacks']['set']('insertion:join',_0x5bde5a),this['_defaultCallbacks']['set']('insertion:chain',_0x1d1664),this['_defaultCallbacks']['set']('deletion:accept',_0x1a31b7),this['_defaultCallbacks']['set']('deletion:discard',_0x5e6c17),this['_defaultCallbacks']['set']('deletion:join',_0x5bde5a),this['_defaultCallbacks']['set']('deletion:chain',_0x1d1664),this['_defaultCallbacks']['set']('formatInline:accept',_0x2e2e07),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e6c17),this['_defaultCallbacks']['set']('formatInline:join',_0x5bde5a),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e6c17),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2e2e07),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e6c17),this['_defaultCallbacks']['set']('formatBlock:join',_0x5bde5a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e6c17),this['_defaultCallbacks']['set']('attribute:accept',_0x5e6c17),this['_defaultCallbacks']['set']('attribute:discard',(_0x617a59,_0xe8a0c)=>{if(!_0xe8a0c)return;const _0x18eb24=this['_editor']['plugins']['get'](_0x395e5b);this['_model']['change'](_0x221953=>{if(_0xe8a0c['key']==Ke)for(const _0x2fc89f of _0x617a59){const _0x54293a=_0x2fc89f['start']['nodeAfter'],_0xa9061c=_0xe8a0c['oldValue'];_0x221953['rename'](_0x54293a,_0xa9061c);}else{if(_0x18eb24['isBlockAttribute'](_0xe8a0c['key'])){for(const _0x1ee191 of _0x617a59)void 0x0!==_0xe8a0c['oldValue']?_0x221953['setAttribute'](_0xe8a0c['key'],_0xe8a0c['oldValue'],_0x1ee191['start']['nodeAfter']):_0x221953['removeAttribute'](_0xe8a0c['key'],_0x1ee191['start']['nodeAfter']);}else{for(const _0x5b52a2 of _0x617a59)_0xe8a0c['oldValue']?_0x221953['setAttribute'](_0xe8a0c['key'],_0xe8a0c['oldValue'],_0x5b52a2):_0x221953['removeAttribute'](_0xe8a0c['key'],_0x5b52a2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5bde5a);}}function qe(_0x2f365a,_0x229b50,_0x2f1803){for(const _0x454c6e of _0x229b50['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x454c6e['root']==_0x454c6e)return!0x1;if(!_0x2f1803['containsItem'](_0x454c6e))return!0x1;if(_0x2f365a['isObject'](_0x454c6e)||_0x2f365a['isLimit'](_0x454c6e))return!0x0;}return!0x1;}function Qe(_0x40012b){return _0x40012b['end']['parent']==_0x40012b['start']['nodeAfter']&&_0x40012b['end']['isAtStart'];}function Ze(_0x2be8c9,_0x11612a,_0x24f674,_0x26edc9){const _0x34f236=_0x4b2343=>!_0x4b2343['item']['is']('$textProxy')&&!_0x26edc9['isObject'](_0x4b2343['item']),_0x4bad64=_0x2be8c9['start']['getLastMatchingPosition'](_0x34f236),_0x258857=_0x2be8c9['end']['getLastMatchingPosition'](_0x34f236,{'direction':'backward'});return(!_0x2be8c9['start']['isEqual'](_0x4bad64)||!_0x2be8c9['end']['isEqual'](_0x258857))&&(_0x4bad64['isBefore'](_0x258857)?_0x24f674['updateMarker'](_0x11612a,{'range':_0x24f674['createRange'](_0x4bad64,_0x258857)}):_0x24f674['removeMarker'](_0x11612a),!0x0);}function Je(_0x2f987d){return _0x19c7d6(_0x2f987d);}function tn(_0x36f966){const _0xa4a96d=_0x36f966['start']['nodeAfter'];return _0xa4a96d&&_0xa4a96d['is']('element');}function en(_0x4c6845){return Qe(_0x4c6845)||function(_0x13624c){return _0x13624c['start']['parent']==_0x13624c['end']['nodeBefore']&&_0x13624c['start']['isAtEnd'];}(_0x4c6845);}function nn(_0x431749,_0x45d56a){try{const _0x1528f4=_0x431749['getRange']();for(const _0x2ffb1e of _0x45d56a)if(_0x431749!==_0x2ffb1e&&_0x1528f4&&_0x1528f4['isIntersecting'](_0x2ffb1e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x33e578,_0x38a06f){return null==_0x33e578['end']['nodeBefore']&&_0x33e578['end']['parent']==_0x33e578['start']['nodeAfter']?rn(_0x33e578['start']['nodeAfter'],_0x38a06f):_0x33e578;}function rn(_0x4e64d2,_0x53f0a6){const _0x38882e=_0x53f0a6['schema']['isObject'](_0x4e64d2)||_0x53f0a6['schema']['isSelectable'](_0x4e64d2);return _0x53f0a6['createRange'](_0x53f0a6['createPositionAt'](_0x4e64d2,'before'),_0x38882e?_0x53f0a6['createPositionAfter'](_0x4e64d2):_0x53f0a6['createPositionAt'](_0x4e64d2,'end'));}function on(_0x28f250,_0x3df8ac,_0x5addce,_0xf91b62){return!!an(_0x28f250,_0x3df8ac)&&_0x5addce['end']['isEqual'](_0xf91b62['start']);}function an(_0x47a40d,_0xc43c17){if(!_0x47a40d['_isDataLoaded']||!_0xc43c17['_isDataLoaded'])return!0x1;const _0xa882f7=new Set(Object['keys'](_0x47a40d['attributes'])),_0x868217=new Set(Object['keys'](_0xc43c17['attributes']));if(_0xa882f7['delete']('groupId'),_0x868217['delete']('groupId'),0x0==_0xa882f7['size']&&0x0==_0x868217['size'])return!0x0;if(_0xa882f7['size']!=_0x868217['size'])return!0x1;const _0x4965db={..._0x47a40d['attributes']},_0x247882={..._0xc43c17['attributes']};return delete _0x4965db['groupId'],delete _0x247882['groupId'],JSON['stringify'](_0x4965db)==JSON['stringify'](_0x247882);}function cn(_0x1f27fc,_0x42191a){const _0x5c467c=ln(_0x1f27fc['attributes']),_0x37966b=ln(_0x42191a);if(!_0x1f27fc['_isDataLoaded'])return!0x1;for(const _0x51f974 of Object['keys'](_0x37966b))if(!st(_0x5c467c[_0x51f974],_0x37966b[_0x51f974]))return!0x1;return!0x0;}function ln(_0x26162d){const _0x3496d4=Object['assign']({},_0x26162d);return delete _0x3496d4['skipNestingCheck'],delete _0x3496d4['tablePasteChainId'],_0x3496d4;}function un(_0x70bce9){return _0x70bce9['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x3fd659(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3b9bb0,_0x41c674,_0x5d445f,_0xdd9ce5){super(),this['model']=_0x41c674,this['view']=_0x5d445f,this['commentThreadController']=_0xdd9ce5,this['_editor']=_0x3b9bb0,this['_acceptCommand']=_0x3b9bb0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3b9bb0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x132c03,_0x1e630)=>_0x132c03||_0x1e630),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5435dc=>_0x5435dc&&this['_editor']['model']['canEditAt'](_0x41c674['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x44be72=>_0x44be72&&this['_editor']['model']['canEditAt'](_0x41c674['getRanges']())),this['_pendingAction']=null,_0x5d445f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d445f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d445f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d445f,'change:isDirty',()=>{_0x5d445f['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 _0x3f7aab=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f7aab);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x58b6cf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x8c9585,_0x2a3ea7,_0x41b4ae,_0xbf7eee){super(_0x8c9585),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2d52c5(_0x8c9585,At(_0x8c9585,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a3ea7['authoredAt']),this['bind']('authoredAt')['to'](_0x2a3ea7),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',_0x2a3ea7,'authoredAt',this,'descriptionParts',(_0x548844,_0x8ca942,_0x353787)=>{const _0x1d3a58=_0x353787['map'](_0x350d00=>gt(_0x350d00['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x548844-0x1,_0x2a3ea7['author']['name'],_0x8ca942?_0xbf7eee['formatDateTime'](_0x8ca942):'',new DOMParser()['parseFromString'](_0x1d3a58,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3386f0(),this['focusTracker']=new _0x5ea58f(),this['keystrokes']=new _0x41acf8(),this['focusCycler']=new _0x1276c6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x13faf5=>_0x13faf5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2a3ea7,this['_localUser']=_0x41b4ae,this['_config']=_0xbf7eee,_0xbf7eee['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x59f960(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a4ffe}=this['_config'];this['commentsListView']=new _0x1a4ffe(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',_0x42006c=>_0x42006c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17feb4,_0x234c48)=>_0x17feb4||!!_0x234c48);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x14dce3}=this['_config'],_0x36a55a=new _0x14dce3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a09a8=_0x36a55a['commentInputView'];return _0x36a55a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1a09a8,'value',(_0x13e353,_0x580ccd,_0x5a7f65)=>!!_0x5a7f65||_0x13e353&&!_0x580ccd),_0x1a09a8['on']('submit',(_0x696623,_0x2b5147)=>{this['fire']('addComment',_0x2b5147),_0x1a09a8['editor']['setData']('');}),_0x1a09a8['on']('cancel',()=>this['focus']()),_0x1a09a8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x36a55a;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x8df31,_0x446637,_0x33a467,_0x5e5851){super(_0x8df31,_0x446637,_0x33a467,_0x5e5851),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a31e2=>_0x3a31e2&&_0x3a31e2[0x0]?_0x3a31e2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3454f0,_0x41067a)=>{let _0x1596b4='';for(const _0x1827d5 of _0x3454f0)_0x1596b4+='<p>'+gt(_0x1827d5['content'],_0x1827d5['color'])+'</p>';return _0x41067a?_0x1596b4:_0x498a2f(_0x1596b4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5e5851['SuggestionView'](_0x8df31,_0x446637,{'formatDateTime':_0x5e5851['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 _0x145a83=this['bindTemplate'],_0x4fb45e=[this['suggestionView']];return this['commentsListView']&&_0x4fb45e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4fb45e['push'](this['commentThreadInputView']),_0x4fb45e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x145a83['if']('isActive','ck-suggestion-wrapper--active'),_0x145a83['to']('type',_0x134421=>'ck-suggestion-'+_0x134421),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':_0x145a83['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4fb45e};}['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 _0x58b6cf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xac0764,_0x374310,_0x590d9b){super(_0xac0764),this['_model']=_0x374310,this['_config']=_0x590d9b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x374310),this['acceptButton']=this['_createButton'](At(_0xac0764,'Accept\x20suggestion'),_0x576b1b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0xac0764,'Discard\x20suggestion'),_0x4488b5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x290dbc(_0xac0764,_0x374310['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3386f0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5ea58f(),this['keystrokes']=new _0x41acf8(),this['focusCycler']=new _0x1276c6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x489ca4=>_0x489ca4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3bbf4a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3bbf4a['innerHTML']=this['description'],this['on']('change:description',(_0xf838f6,_0x370e2b,_0x1cb84e)=>{_0x3bbf4a['innerHTML']=_0x1cb84e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x784f23=this['bindTemplate'],_0x15a48d=[{'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':_0x784f23['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x784f23['to']('authoredAt',_0x5992d7=>this['_config']['formatDateTime'](_0x5992d7))}]}]},{'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']&&_0x15a48d['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':_0x15a48d}]};}['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'](_0x235c8b,_0x136742,_0x3be9ff,_0xebddd9,_0xc81cda){const _0x53905f=new _0x46766e(this['locale']);return _0x53905f['set']({'label':_0x235c8b,'icon':_0x136742,'tooltip':!0x0,'tooltipPosition':_0xc81cda}),_0x53905f['extendTemplate']({'attributes':{'class':_0x3be9ff}}),_0x53905f['on']('execute',()=>{this['fire'](_0xebddd9,this['_model']['id']);}),_0x53905f;}['_setupKeyboardNavigation'](){const _0x597f24=this['element'];this['keystrokes']['listenTo'](_0x597f24);for(const _0x4ebbec of this['focusables'])this['focusTracker']['add'](_0x4ebbec['element']),this['keystrokes']['listenTo'](_0x4ebbec['element']);this['keystrokes']['set']('enter',(_0x3a2ecd,_0x2790df)=>{_0x597f24===_0x3a2ecd['target']&&(this['focusCycler']['focusFirst'](),_0x2790df());}),this['keystrokes']['set']('esc',(_0x46003d,_0x4e04db)=>{_0x597f24!==_0x46003d['target']&&(this['focus'](),_0x4e04db());});}}class mn extends _0x3995f9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x114bf6,_0x2be81c,_0x212c28,_0x14b8b1];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x488fa2){super(_0x488fa2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3cbdf6=this['editor']['config'];_0x3cbdf6['define']('trackChanges.SuggestionThreadView',fn),_0x3cbdf6['define']('trackChanges.SuggestionView',gn),_0x3cbdf6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3cbdf6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x43f3bb,_0x136034){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x6e4a8e,_0x3672fc]of this['_handleControllerBuffer']){const _0x2d45a5=this['_suggestionToController']['has'](_0x6e4a8e);_0x2d45a5||_0x3672fc?_0x2d45a5&&_0x3672fc&&this['_destroyController'](_0x6e4a8e):this['_initializeController'](_0x6e4a8e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x14b8b1)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x43f3bb,_0x136034);}['init'](){const _0x2f1778=this['editor'],_0x43b63f=_0x2f1778['plugins']['get'](Xe),_0x2ae7d7=_0x2f1778['plugins']['get'](_0x212c28),_0x381438=_0x2f1778['plugins']['get'](_0x14b8b1),_0x6c2ad7=_0x2f1778['plugins']['get'](_0x2be81c);this['_addUIComponentsToFactory'](),_0x381438['addSourceCollector'](()=>{const _0x5b6620=[];for(const [_0x38832d,_0x2891cf]of Array['from'](this['_suggestionToController'])){const _0xc31ea1=_0x38832d['getAllAdjacentSuggestions'](),_0x573a4f=[];for(const _0x305cd6 of _0xc31ea1){if(!_0x305cd6['isInContent'])continue;if(_0x305cd6['isMultiRange']){_0x573a4f['push'](..._0x305cd6['getRanges']());continue;}const _0xc41fad=_0x305cd6['getFirstRange']();if(_0x573a4f['length']>0x0){const _0x1eff6f=_0x573a4f[0x0]['getJoined'](_0xc41fad);if(_0x1eff6f){_0x573a4f[0x0]=_0x1eff6f;continue;}}_0x573a4f['push'](_0xc41fad);}_0x5b6620['push']([_0x2891cf['view'],_0x573a4f]);}return _0x5b6620;}),this['listenTo'](_0x43b63f,'suggestionLoaded',(_0x39fcee,_0x33bae5)=>{this['listenTo'](_0x33bae5,'change:previous',(_0x351376,_0x252536,_0x186bfc,_0x583758)=>{_0x33bae5['isInContent']&&(null==_0x186bfc?(this['_updateController'](_0x583758['head']),this['_handleSuggestionControllerDelayed'](_0x33bae5,!0x1)):(this['_updateController'](_0x186bfc['head']),null==_0x583758&&this['_handleSuggestionControllerDelayed'](_0x33bae5,!0x0)));}),null!==_0x33bae5['previous']?this['_updateController'](_0x33bae5['head']):this['_handleSuggestionControllerDelayed'](_0x33bae5,!0x1);}),this['listenTo'](_0x43b63f,'suggestionUnloaded',(_0x26bef7,_0x5a640c,_0x9a9872)=>{this['stopListening'](_0x5a640c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5a640c),this['_suggestionToController']['has'](_0x5a640c)&&this['_destroyController'](_0x5a640c),_0x9a9872&&this['_updateController'](_0x9a9872['head']);}),this['listenTo'](_0x43b63f,'suggestionChanged',(_0x33ebcd,_0x2a365e)=>{this['_updateController'](_0x2a365e);}),this['listenTo'](_0x2ae7d7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x6c2ad7,'addComment',(_0x1e9caf,{threadId:_0x11b8a9,isFromAdapter:_0x24ed5d})=>{if(_0x24ed5d||!_0x43b63f['hasSuggestion'](_0x11b8a9))return;const _0x1d788d=_0x43b63f['getSuggestion'](_0x11b8a9);this['_suggestionToController']['get'](_0x1d788d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1883bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37f174;for(const _0x40ba44 in _0x1883bb){const _0x136282=_0x40ba44,_0x481af6=_0x1883bb[_0x136282];if('trackChangesLicenseKeyValid'==_0x481af6||'trackChangesLicenseKeyInvalid'==_0x481af6||'trackChangesLicenseKeyExpired'==_0x481af6||'trackChangesLicenseKeyDomainLimit'==_0x481af6||'trackChangesLicenseKeyNotAllowed'==_0x481af6||'trackChangesLicenseKeyEvaluationLimit'==_0x481af6||'trackChangesLicenseKeyUsageLimit'==_0x481af6){delete _0x1883bb[_0x136282],_0x37f174=_0x481af6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x37f174&&_0x1883bb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x37f174&&_0x1883bb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x37f174&&_0x1883bb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x37f174&&_0x1883bb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x37f174&&_0x1883bb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x37f174&&_0x1883bb['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x26e263){const _0x24e083=this['_suggestionToController']['get'](_0x26e263);if(!_0x24e083)return null;return this['editor']['plugins']['get'](_0x212c28)['getByInnerView'](_0x24e083['view'])||null;}['getSuggestionForAnnotation'](_0x23cf60){const _0x4d7e4c=this['_viewToController']['get'](_0x23cf60['innerView']);return _0x4d7e4c?_0x4d7e4c['model']:null;}['_refreshActiveMarkers'](){const _0x998103=this['editor']['plugins']['get'](_0x212c28),_0x34f90c=this['editor']['plugins']['get'](Xe),_0x28740f=Array['from'](_0x998103['activeAnnotations'],_0x198146=>_0x198146['innerView'])['filter'](_0x4493bd=>this['_viewToController']['has'](_0x4493bd)),_0x16b97f=[];for(const _0x559e34 of _0x28740f){const _0x3e4ca7=this['_viewToController']['get'](_0x559e34)['model']['getAllAdjacentSuggestions']();_0x16b97f['push'](..._0x3e4ca7['reduce']((_0x3f1ade,_0x2f17a4)=>[..._0x3f1ade,..._0x2f17a4['getMarkerNames']()],[]));}_0x34f90c['activeMarkers']=_0x16b97f;}['_addUIComponentsToFactory'](){const _0x500ed7=this['editor'],_0xfb3f3d=_0x500ed7['locale'],_0x12e706=At(_0xfb3f3d,'Track\x20changes'),_0x30bcf4=new _0x38f909([{'type':'switchbutton','model':new _0x4bb18e({'withText':!0x0,'isToggleable':!0x0,'label':_0x12e706,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4bb18e({'withText':!0x0,'label':At(_0xfb3f3d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bb18e({'withText':!0x0,'label':At(_0xfb3f3d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bb18e({'withText':!0x0,'label':At(_0xfb3f3d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bb18e({'withText':!0x0,'label':At(_0xfb3f3d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x500ed7['plugins']['has']('TrackChangesPreview')&&_0x30bcf4['addMany']([{'type':'separator'},{'type':'button','model':new _0x4bb18e({'withText':!0x0,'label':At(_0xfb3f3d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x491f5a of _0x30bcf4)if(En(_0x491f5a)){const _0x325cb3=_0x500ed7['commands']['get'](_0x491f5a['model']['commandName']);_0x491f5a['model']['bind']('isOn','isEnabled')['to'](_0x325cb3,'value','isEnabled');}_0x500ed7['ui']['componentFactory']['add']('trackChanges',_0x19d38f=>this['_createToolbarButton'](_0x19d38f,_0x30bcf4,_0x12e706)),_0x500ed7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x524e81=>this['_createMenuBarMenu'](_0x524e81,_0x30bcf4,_0x12e706));}['_createToolbarButton'](_0xc2aa8f,_0x215c24,_0x559286){const _0xdd2ac=_0x250824(_0xc2aa8f,_0x41bbc3),_0x39c6d2=this['editor']['commands']['get']('trackChanges');_0xdd2ac['buttonView']['set']({'tooltip':_0x559286,'label':_0x559286,'icon':_0x15e35e}),_0xdd2ac['buttonView']['bind']('isOn')['to'](_0x39c6d2,'value'),_0xdd2ac['buttonView']['on']('execute',()=>{_0x39c6d2['execute'](),this['editor']['editing']['view']['focus']();}),_0x3b3745(_0xdd2ac,_0x215c24,{'role':'menu'});const _0x192356=[];for(const _0x340281 of _0x215c24)En(_0x340281)&&_0x192356['push'](this['editor']['commands']['get'](_0x340281['model']['commandName']));const _0x4cd176=_0xdd2ac['buttonView'];return _0x4cd176['actionView']['unbind']('isEnabled'),_0x4cd176['arrowView']['unbind']('isEnabled'),_0x4cd176['actionView']['bind']('isEnabled')['to'](_0x39c6d2,'isEnabled'),_0x4cd176['arrowView']['bind']('isEnabled')['toMany'](_0x192356,'isEnabled',(..._0x41fbf0)=>_0x41fbf0['some'](_0x116755=>_0x116755)),_0xdd2ac['on']('execute',_0x24da9a=>{this['editor']['execute'](_0x24da9a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xdd2ac;}['_createMenuBarMenu'](_0x308552,_0x1e8607,_0xad3e00){const _0x5ddb56=new _0xd01b63(_0x308552),_0xb68660=this['editor']['commands']['get']('trackChanges');_0x5ddb56['buttonView']['set']({'label':_0xad3e00,'icon':_0x15e35e});const _0xbeec8d=new _0x32a30c(_0x308552);for(const _0x2561d4 of _0x1e8607){if('separator'==_0x2561d4['type']){_0xbeec8d['items']['add'](new _0x3f3b31(_0x308552));continue;}const _0x1ec97c=new _0x4cd474(_0x308552,_0x5ddb56),_0x4842c0=new _0x145cc7(_0x308552),_0x44c945=_0x2561d4['model'];_0x4842c0['bind'](...Object['keys'](_0x44c945))['to'](_0x44c945),_0x4842c0['delegate']('execute')['to'](_0x5ddb56),_0x4842c0['on']('execute',()=>{this['editor']['execute'](_0x44c945['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ec97c['children']['add'](_0x4842c0),_0xbeec8d['items']['add'](_0x1ec97c);}return _0x5ddb56['bind']('isEnabled')['to'](_0xb68660,'isEnabled'),_0x5ddb56['panelView']['children']['add'](_0xbeec8d),_0x5ddb56;}['_initializeController'](_0x10d980){const _0xe6144b=this['editor'],_0x410080=_0xe6144b['config'],_0x5129c4=_0xe6144b['plugins']['get'](_0x212c28),_0x16f6db=_0xe6144b['plugins']['get'](_0x2be81c),_0x5de8d6=_0xe6144b['plugins']['get'](_0x14b8b1),_0x3e922a=_0xe6144b['plugins']['get'](_0x114bf6)['me'],_0x1d307f=_0x410080['get']('trackChanges')['SuggestionThreadView'],_0x282c34=_0x410080['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x11291e,CommentThreadInputView:_0x10dd58}=_0xe6144b['plugins']['get']('CommentsUI');let _0x212b4a,_0x13dc2f,_0x5428f1;this['_annotationViews']['has'](_0x10d980['id'])?(_0x13dc2f=this['_annotationViews']['get'](_0x10d980['id']),_0x212b4a=_0x13dc2f['mainView']):(_0x212b4a=new _0x1d307f(_0xe6144b['locale'],_0x10d980,_0x3e922a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x410080['get']('comments.editorConfig'),'licenseKey':_0x410080['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x410080['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x410080['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x410080['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x57cc99(_0x410080['get']('locale'),_0xe6144b['locale']),'CommentView':_0x410080['get']('comments')['CommentView'],'CommentsListView':_0x11291e,'CommentThreadInputView':_0x10dd58,'SuggestionView':_0x282c34}),_0x212b4a['suggestionView']['acceptButton']['on']('execute',()=>{_0xe6144b['editing']['view']['focus']();}),_0x212b4a['suggestionView']['discardButton']['on']('execute',()=>{_0xe6144b['editing']['view']['focus']();}),_0x13dc2f=_0x5129c4['createAnnotationView'](this['editor']['locale'],_0x212b4a),_0x13dc2f['bind']('isDirty')['to'](_0x212b4a,'isDirty'),_0x13dc2f['bind']('length')['to'](_0x212b4a),_0x13dc2f['bind']('type')['to'](_0x212b4a,'type',_0x53a2a8=>'suggestion-'+_0x53a2a8),_0x212b4a['on']('escape',()=>{_0x5428f1['fire']('escape');}),this['_annotationViews']['set'](_0x10d980['id'],_0x13dc2f));const _0xd913a8=_0x16f6db['createCommentThreadController'](_0x10d980['commentThread'],_0x212b4a),_0x4f7336=new hn(_0xe6144b,_0x10d980,_0x212b4a,_0xd913a8),_0xa47946=_0x10d980['getAllAdjacentSuggestions']()['filter'](_0x534bb1=>_0x534bb1['isInContent']);_0x212b4a['descriptionParts']=_0xe6144b['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0xa47946),this['_suggestionToController']['set'](_0x10d980,_0x4f7336),this['_viewToController']['set'](_0x212b4a,_0x4f7336);const _0x56d786=()=>{const _0xa0164d=[],_0x12c9c3=_0x10d980['getAllAdjacentSuggestions']()['filter'](_0x4951a2=>_0x4951a2['isInContent']);for(const _0x422062 of _0x12c9c3)_0xa0164d['push'](..._0x422062['getMarkers']());return _0x5e4ade(_0xe6144b['editing'],_0xa0164d);};_0x5428f1=_0x5129c4['createAnnotation']({'view':_0x13dc2f,'target':_0x56d786,'type':()=>'suggestion-'+_0x4f7336['view']['type'],'isVisible':!!_0x56d786()}),_0x16f6db['_bindAnnotationToEditors'](_0x212b4a,_0x5428f1),_0x5129c4['add'](_0x5428f1),_0x5de8d6['registerAnnotation'](_0x5428f1);}['_destroyController'](_0x16fffc){const _0x528a97=this['editor']['plugins']['get'](_0x2be81c),_0x429666=this['editor']['plugins']['get'](_0x212c28),_0xad5c50=this['_suggestionToController']['get'](_0x16fffc),_0x22ff97=_0xad5c50['view'],_0x1e1b0e=_0x429666['getByInnerView'](_0x22ff97);_0x528a97['_unbindEditors'](_0x22ff97),_0x1e1b0e&&_0x429666['remove'](_0x1e1b0e),this['_suggestionToController']['delete'](_0x16fffc),this['_viewToController']['delete'](_0x22ff97),_0xad5c50['destroy']();}['_updateController'](_0x26dd96){if(!_0x26dd96['isInContent']||!this['_suggestionToController']['has'](_0x26dd96))return;const _0xba0ac7=this['editor']['plugins']['get'](Xe),_0x142ff5=this['_suggestionToController']['get'](_0x26dd96),_0x1a54bc=_0x26dd96['getAllAdjacentSuggestions']();_0x142ff5['view']['descriptionParts']=_0xba0ac7['descriptionFactory']['getDescriptions'](_0x1a54bc);}['destroy'](){for(const _0x4895bb of this['_suggestionToController']['keys']())this['_destroyController'](_0x4895bb);for(const _0x50dd7e of this['_annotationViews']['values']())_0x50dd7e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x35597b){return'model'in _0x35597b;}class Tn extends _0x3995f9{static get['requires'](){return[Xe,mn,_0x19a89b];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x25e8ec){this['editor']['plugins']['get'](Xe)['adapter']=_0x25e8ec;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x4cb672){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x4cb672);}['getSuggestions']({skipNotAttached:_0x551180=!0x1,toJSON:_0x2063d4=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x551180,'toJSON':_0x2063d4});}['getSuggestion'](_0x21d9db){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x21d9db);}}const _n=['Pagination'];class pn extends _0x3995f9{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1f41e9=this['editor'];if(_0x1f41e9['config']['define']('trackChangesData.editorCreator',_0x1ecfa2=>{const _0x50fe46=_0x1f41e9['model']['document']['getRootNames']()['reduce']((_0x4f60bf,_0xb62d3)=>(_0x4f60bf[_0xb62d3]='',_0x4f60bf),{});return _0x1f41e9['constructor']['create'](_0x50fe46,_0x1ecfa2);}),'function'!=typeof _0x1f41e9['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ffcc7('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e548e){return bn(this['editor'],!0x0,_0x2e548e);}['getDataWithDiscardedSuggestions'](_0x47b1b5){return bn(this['editor'],!0x1,_0x47b1b5);}}class Ln extends _0x3995f9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x537c82){function _0x2dfc49(_0x28f91e){return _0x28f91e['map'](_0x895582=>String['fromCharCode'](_0x895582))['join']('');}super(_0x537c82),this['result']='end',_0x537c82[_0x2dfc49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dfc49([0x76,0x69,0x65,0x77])][_0x2dfc49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dfc49([0x61,0x75,0x74,0x6f]),_0x537c82[_0x2dfc49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2dfc49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dfc49([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2dfc49([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2dfc49([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(_0x5b1757){return void 0x0!==_0x5b1757['getRootsAttributes'];}async function bn(_0x4f8a41,_0x507ed1,_0x4e2167){const _0x482951=_0x193827(_0x4f8a41,_n);if(_0x482951['plugins']['push'](Xe,Ln),In(_0x4f8a41)){_0x482951['roots']=Object['create'](null);for(const _0x1ba988 of _0x4f8a41['model']['document']['getRootNames']())_0x482951['roots'][_0x1ba988]={'modelAttributes':_0x4f8a41['getRootAttributes'](_0x1ba988)};}const _0x407987=document['createDocumentFragment'](),_0x38236c=_0x4f8a41['config']['get']('trackChangesData')['editorCreator'],_0x3c94ff=await _0x38236c(_0x482951,()=>function(_0x5d7c5d){const _0xcc5879=document['createElement']('div');return _0x5d7c5d['appendChild'](_0xcc5879),_0xcc5879;}(_0x407987));!function(_0x3253f6,_0x38e0a0){const _0x447da3=_0x3253f6['model']['document']['getRootNames']()['reduce']((_0x176350,_0x418027)=>(_0x176350[_0x418027]=_0x3253f6['data']['get']({'rootName':_0x418027}),_0x176350),{}),_0x970cc7=_0x3253f6['plugins']['get']('Users')['users']['map'](_0x146faa=>({'id':_0x146faa['id'],'name':_0x146faa['name']})),_0x398110=_0x3253f6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x73e78f=_0x3253f6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x314bd7=_0x38e0a0['plugins']['get']('Users'),_0x113769=_0x38e0a0['plugins']['get']('TrackChangesEditing'),_0x37daab=_0x38e0a0['plugins']['get']('CommentsRepository');for(const _0x3f712b of _0x37daab['getCommentThreads']())_0x3f712b['remove']();for(const _0x5ebd2e of _0x970cc7)_0x314bd7['getUser'](_0x5ebd2e['id'])||_0x314bd7['addUser'](_0x5ebd2e);_0x314bd7['me']||_0x314bd7['useAnonymousUser']();for(const _0xc37e4f of _0x73e78f)_0x37daab['addCommentThread'](_0xc37e4f);for(const _0x23e763 of _0x398110)_0x113769['addSuggestionData'](_0x23e763);_0x38e0a0['data']['set'](_0x447da3);}(_0x4f8a41,_0x3c94ff),_0x3c94ff['execute'](_0x507ed1?'acceptAllSuggestions':'discardAllSuggestions');const _0x41f38a=In(_0x3c94ff)?_0x3c94ff['getFullData'](_0x4e2167):_0x3c94ff['data']['get'](_0x4e2167);return await _0x3c94ff['destroy'](),_0x41f38a;}class An extends _0x58b6cf{['options'];constructor(_0x1472fe,_0x556e0e){super(_0x1472fe),this['options']=_0x556e0e,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'](_0x1a5563,_0x2068f5){if(!this['element'])return;const _0x21da5e=[];for(const [_0x2c5f45,_0x1269fb]of _0x1a5563){const _0x428c5e=document['createElement']('div');_0x428c5e['setAttribute']('data-ck-root-name',_0x2c5f45),_0x428c5e['className']=_0x1269fb['classes']+'\x20ck-track-changes-preview__root-container',_0x428c5e['innerHTML']=_0x1269fb['content'],_0x21da5e['push'](_0x428c5e);}_0x2068f5(this['element'],_0x21da5e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x1af26c{constructor(_0x4ec9d4){super(_0x4ec9d4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x379f32=this['editor'],_0x5cb4d8=_0x379f32['locale'],_0x188839=_0x379f32['plugins']['get']('Dialog');let _0x54f308;const _0x3b7604=function(_0x11e216){const _0x113e57={};if('editables'in _0x11e216['ui']['view']){for(const [_0x115e21,_0x46afd1]of Object['entries'](_0x11e216['ui']['view']['editables']))_0x113e57[_0x115e21]=_0x46afd1['element'];}else _0x113e57[_0x11e216['model']['document']['getRootNames']()[0x0]]=_0x11e216['ui']['view']['editable']['element'];return _0x113e57;}(_0x379f32),_0x554415=function(_0x362d01){let _0x182137=0x0;for(const _0x56f172 of Object['values'](_0x362d01))_0x182137=Math['max'](_0x182137,_0x56f172['getBoundingClientRect']()['width']);let _0x2c00fd=0x0;for(const _0x5a7529 of Object['values'](_0x362d01))_0x2c00fd+=_0x5a7529['getBoundingClientRect']()['height'];const _0x6ea0ec=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x143b6d=Math['min'](_0x2c00fd,_0x6ea0ec);return{'width':_0x182137,'height':_0x143b6d};}(_0x3b7604);_0x188839['show']({'id':'finalContentPreview','title':At(_0x5cb4d8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x5cb4d8,{'dialogRects':_0x554415}),'onHide':()=>{_0x54f308['detachFromDom']();},'onShow':()=>{_0x379f32['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1da05c=>{const _0x3e7a69=this['_standarizeRootsData'](_0x1da05c,_0x379f32,_0x3b7604);_0x188839['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3e7a69,_0x379f32['config']['get']('trackChanges.preview.renderFunction'));}),_0x54f308=new _0x4eb6f8(_0x5cb4d8,[_0x188839['view']]),_0x54f308['attachToDom'](),_0x54f308['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x379f32['once']('destroy',()=>{_0x54f308['detachFromDom']();});const _0x30446f=_0x188839['view']['headerView']['class'];_0x188839['view']['headerView']['class']=_0x30446f?_0x30446f+'\x20ck-reset_all':'ck-reset_all',_0x188839['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x188839['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x15aa47=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x26577b=_0x15aa47['previewMode'],_0x229367={};if('$labels'===_0x26577b){for(const _0x1683c9 of _0x15aa47['getMergeFieldsIds']())_0x229367[_0x1683c9]=_0x15aa47['getLabel'](_0x1683c9)||_0x1683c9;}else{const _0x250bfc='$defaultValues'===_0x26577b?_0x15aa47['getDefaultValues']():_0x15aa47['getDataSetValues'](_0x26577b,!0x0);for(const _0x35a1a9 of Object['entries'](_0x250bfc)){const [_0x3c8037,_0x4a320e]=_0x35a1a9;_0x229367[_0x3c8037]=null!==_0x4a320e?_0x4a320e:_0x15aa47['getLabel'](_0x3c8037)||_0x3c8037;}}return{'mergeFieldsData':_0x229367};}['_standarizeRootsData'](_0x45ffee,_0x3b92ad,_0x58e174){let _0x1a6891;if('string'==typeof _0x45ffee){const _0x56459a=_0x3b92ad['model']['document']['getRootNames']()[0x0];_0x1a6891={[_0x56459a]:_0x45ffee};}else _0x1a6891=_0x45ffee;const _0x24da45=this['_fixMediaEmbeds'](_0x1a6891,_0x3b92ad),_0x5da73d=function(_0x41786e,_0x3a54ab){for(const [_0x487f1f,_0x413de7]of _0x41786e)_0x413de7['classes']=_0x3a54ab[_0x487f1f]['classList']['value']['replace']('ck-focused','');return _0x41786e;}(this['_sortRoots'](_0x3b92ad)['reduce']((_0xd410b5,_0x22e18f)=>(_0xd410b5['push']([_0x22e18f,{'content':_0x24da45[_0x22e18f],'classes':''}]),_0xd410b5),[]),_0x58e174);return _0x5da73d;}['_fixMediaEmbeds'](_0x42ee65,_0x34d1fe){if(!_0x34d1fe['plugins']['has']('MediaEmbedEditing'))return _0x42ee65;const _0x5920a4=_0x34d1fe['plugins']['get']('MediaEmbedEditing');for(const [_0x1816dd,_0x2228ee]of Object['entries'](_0x42ee65)){const _0x196eb2=document['createElement']('div');_0x196eb2['innerHTML']=_0x2228ee,(_0x196eb2['querySelectorAll']('figure.media')['forEach'](_0x21196d=>{const _0x3656aa=_0x21196d['querySelector']('oembed');if(_0x3656aa){const _0x346c71=_0x3656aa['getAttribute']('url');if(_0x346c71){const _0x1454d9=_0x5920a4['registry']['getMediaViewElement'](new et(_0x34d1fe['editing']['view']['document']),_0x346c71,{'elementName':'','renderForEditingView':!0x0}),_0x46b44c=document['createElement']('div');_0x46b44c['classList']['add']('ck-media__wrapper'),_0x1454d9['render'](_0x46b44c,_0x34d1fe['editing']['view']['domConverter']),_0x3656aa['replaceWith'](_0x46b44c);}}}),_0x42ee65[_0x1816dd]=_0x196eb2['innerHTML']);}return _0x42ee65;}['_sortRoots'](_0x1ef69d){if(!function(_0x1fdb34){return void 0x0!==_0x1fdb34['getRootsAttributes'];}(_0x1ef69d))return _0x1ef69d['model']['document']['getRootNames']();const _0x1796b3=[],_0x553e32=new Map();for(const _0x3cceb4 of _0x1ef69d['model']['document']['getRootNames']()){const _0x244cb4=_0x1ef69d['editing']['view']['getDomRoot'](_0x3cceb4)['getClientRects']()['item'](0x0);_0x1796b3['push'](_0x3cceb4),_0x553e32['set'](_0x3cceb4,_0x244cb4);}return _0x1796b3['sort']((_0x58922e,_0x4437d0)=>{const _0x5f1da7=_0x553e32['get'](_0x58922e),_0x5d002c=_0x553e32['get'](_0x4437d0);return _0x5f1da7['y']-_0x5d002c['y']||_0x5f1da7['x']-_0x5d002c['x'];}),_0x1796b3;}}class Cn extends _0x3995f9{static get['requires'](){return[pn,_0x4410c7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x212959){super(_0x212959),_0x212959['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x212959['config']['define']('trackChanges.preview.renderFunction',(_0x46ddd8,_0x514c07)=>{for(const _0x382bc3 of _0x514c07)_0x46ddd8['appendChild'](_0x382bc3);});}}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};