@ckeditor/ckeditor5-track-changes 48.3.0-alpha.5 → 48.3.0-alpha.7

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 _0x3bd05a,PendingActions as _0xc66639,Plugin as _0x3f3b34}from'@ckeditor/ckeditor5-core';import{Annotations as _0x157e9d,Comments as _0x3e4ae7,CommentsRepository as _0x4b575b,EditorAnnotations as _0x5516ab}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2185d,Collection as _0x286b38,FocusTracker as _0x3c340c,KeystrokeHandler as _0x2ed861,ObservableMixin as _0x2bef64,getEnvKeystrokeText as _0x381dd1,insertToPriorityArray as _0x5bdb0d,logWarning as _0x540819,priorities as _0x10368a,uid as _0x589c6c}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x2feac2,IconCancel as _0xd3349f,IconCheck as _0x25d455,IconSparkle as _0x385a8f,IconTrackChanges as _0x37bf30}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1c020e,Dialog as _0x2c04b5,FocusCycler as _0x31ed0a,ListSeparatorView as _0x4d8dfa,MenuBarMenuListItemButtonView as _0x1952d3,MenuBarMenuListItemView as _0x4f0f0f,MenuBarMenuListView as _0x43fcad,MenuBarMenuView as _0x5d42ed,SplitButtonView as _0x3a90da,UIModel as _0x3063c3,View as _0x3a3108,ViewCollection as _0x4f5fde,addListToDropdown as _0xd33cb7,createDropdown as _0x383de7,normalizeColorOptions as _0x3878b1}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x175aac,CollaborationUserColor as _0x3459d2,DocumentCompare as _0x34e5cd,FOCUS_ANNOTATION_KEYSTROKE as _0x1f759c,LateFocusButtonView as _0x4057c9,PillView as _0x20187a,SuggestionsConversion as _0x5d966d,User as _0x4eb5bf,UserView as _0x19f167,Users as _0x786008,fixElementSuggestionRange as _0x446f1c,getAllMarkersDomElementsSorted as _0x596e52,getDateTimeFormatter as _0xd7a6c7,hashObject as _0x53a26e,sanitizeEditorConfig as _0xa2435d,setupThreadKeyboardNavigation as _0x361492,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x3bd05a{['_enabledCommands'];constructor(_0x1746a6,_0x2a4574){super(_0x1746a6),this['_enabledCommands']=_0x2a4574,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 _0x878e68 of this['editor']['commands']['commands']())_0x878e68['affectsData']&&!this['_enabledCommands']['has'](_0x878e68)&&_0x878e68['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xd95f44 of this['editor']['commands']['commands']())_0xd95f44['affectsData']&&!this['_enabledCommands']['has'](_0xd95f44)&&_0xd95f44['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x3bd05a{['_suggestions'];constructor(_0x5c281b,_0x2e3943){super(_0x5c281b),this['_suggestions']=_0x2e3943,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5e6bb1){const _0x20fbd7=this['_suggestions']['get'](_0x5e6bb1);if(!_0x20fbd7)throw new _0x2185d('track-changes-accept-suggestion-not-found',this);const _0x2e1572=_0x20fbd7['getRanges']();this['editor']['model']['canEditAt'](_0x2e1572)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x20fbd7);}},_t=class extends _0x3bd05a{['_suggestions'];constructor(_0xf26b89,_0x85af0e){super(_0xf26b89),this['_suggestions']=_0x85af0e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44cb3f){const _0x135004=this['_suggestions']['get'](_0x44cb3f);if(!_0x135004)throw new _0x2185d('track-changes-discard-suggestion-not-found',this);const _0x133ec8=_0x135004['getRanges']();this['editor']['model']['canEditAt'](_0x133ec8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x135004);}};function pt(_0x2d9905,_0x1d4278){let _0x22c794='';return _0x22c794+=_0x2d9905['split']('*')['map']((_0x5c9607,_0x594b6d)=>_0x594b6d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x5c9607)+'</span>':Lt(_0x5c9607))['join'](''),_0x1d4278&&(_0x22c794+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1d4278['value']+'\x22\x20title=\x22'+_0x1d4278['title']+'\x22></span>'),_0x22c794;}function Lt(_0x4e2fee){const _0x5c1bee=document['createElement']('span');return _0x5c1bee['innerText']=_0x4e2fee,_0x5c1bee['innerHTML'];}function It(_0x25f6e9){return _0x25f6e9['sort']((_0x282cf2,_0x4e7344)=>'attribute'===_0x282cf2['type']&&'attribute'!==_0x4e7344['type']?-0x1:'attribute'!==_0x282cf2['type']&&'attribute'===_0x4e7344['type']?0x1:'deletion'==_0x282cf2['type']&&'deletion'!=_0x4e7344['type']?-0x1:'deletion'!=_0x282cf2['type']&&'deletion'==_0x4e7344['type']?0x1:0x0);}function At(_0x5803b4,_0x122b56){let _0x52d724,_0x48d933=0x0;const _0x23d6d5=[],_0x31c1e6=_0x122b56['schema'];for(;_0x48d933<_0x5803b4['length'];){const _0x636f57=_0x5803b4[_0x48d933],_0xd99961=_0x5803b4[_0x48d933+0x1];_0x52d724||(_0x52d724=_0x122b56['createPositionBefore'](_0x636f57)),bt(_0x122b56,_0x636f57,_0xd99961)||(_0x23d6d5['push'](_0x122b56['createRange'](_0x52d724,_0x31c1e6['isObject'](_0x636f57)?_0x122b56['createPositionAfter'](_0x636f57):_0x122b56['createPositionAt'](_0x636f57,'end'))),_0x52d724=null),_0x48d933++;}return _0x23d6d5;}function bt(_0x9df0b1,_0x443e26,_0x1541f6){if(!_0x1541f6)return!0x1;const _0x3acea9=_0x9df0b1['createPositionAfter'](_0x443e26),_0x2dcd09=_0x9df0b1['createPositionBefore'](_0x1541f6);return _0x3acea9['isTouching'](_0x2dcd09);}function kt(_0x486cf3,_0x3663f3,_0x346307){for(;_0x346307['length'];){const _0x58cfbe=_0x346307['splice'](0x0,0x64);_0x486cf3['change'](()=>{for(const _0x11e7a6 of _0x58cfbe)_0x11e7a6['isInContent']&&_0x3663f3['execute'](_0x11e7a6['id']);});}}var Ct=class extends _0x3bd05a{['_command'];['_suggestions'];constructor(_0x31481c,_0x22f81c,_0x5ede4b){super(_0x31481c),this['_command']=_0x22f81c,this['_suggestions']=_0x5ede4b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4da759=Array['from'](this['_suggestions']['values']())['some'](_0x4ed0e3=>_0x4ed0e3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4da759;}['execute'](){const _0x367c6b=It(Array['from'](this['_suggestions']['values']()));for(const _0x163064 of _0x367c6b){const _0x92d6c8=_0x163064['getRanges']();if(!this['editor']['model']['canEditAt'](_0x92d6c8))return;}kt(this['editor']['model'],this['_command'],_0x367c6b);}},Rt=class extends _0x3bd05a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x284c69,_0x16a2a2,_0x25ebd0){super(_0x284c69),this['_command']=_0x16a2a2,this['_suggestions']=_0x25ebd0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59517d=this['editor']['model']['document']['selection'],_0xb6c7a7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5a6e8c,_0x15ad52){const _0x7a01b9=Array['from'](_0x5a6e8c['getRanges']()),_0xb1bb88=new Set();for(const _0x1a5c3f of _0x15ad52)if(_0x1a5c3f['isInContent']){for(const _0x2721c1 of _0x7a01b9)for(const _0x36ffc7 of _0x1a5c3f['getRanges']())(_0x2721c1['isIntersecting'](_0x36ffc7)||_0x5a6e8c['isCollapsed']&&!_0x1a5c3f['isMultiRange']&&_0x1a5c3f['next']&&_0x36ffc7['end']['isTouching'](_0x2721c1['start']))&&_0xb1bb88['add'](_0x1a5c3f);}return _0xb1bb88;}(_0x59517d,_0xb6c7a7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x258e68=It(Array['from'](this['_selectedSuggestions']));for(const _0x11555f of _0x258e68){const _0x944466=_0x11555f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x944466))return;}kt(this['editor']['model'],this['_command'],_0x258e68);}};const Nt=/* #__PURE__ -- @preserve */
24
- _0x2bef64();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x11b256,_0x2e9b9f){super(),this['id']=_0x2e9b9f['id'],this['type']=_0x2e9b9f['type'],this['subType']=_0x2e9b9f['subType']||null,this['author']=_0x2e9b9f['author'],this['creator']=_0x2e9b9f['creator']||_0x2e9b9f['author'],this['data']=null,this['_originalSuggestionId']=_0x2e9b9f['originalSuggestionId']||null,this['_model']=_0x11b256,this['_onAccept']=_0x2e9b9f['onAccept'],this['_onDiscard']=_0x2e9b9f['onDiscard'],this['_onAttributesChange']=_0x2e9b9f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e9b9f['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x40a4=this;for(;_0x40a4['previous'];)_0x40a4=_0x40a4['previous'];return _0x40a4;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x5076ed){this['_markerNames']['add'](_0x5076ed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43e1bd=>this['_model']['markers']['get'](_0x43e1bd))['filter'](_0x33abe5=>_0x33abe5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c06be=>{for(const _0x38f5b1 of this['getMarkers']())_0x2c06be['removeMarker'](_0x38f5b1);}),this['_markerNames']['clear']();}['removeMarker'](_0x4d5616){this['_model']['change'](_0x504a36=>{_0x504a36['removeMarker'](_0x4d5616);}),this['_markerNames']['delete'](_0x4d5616);}['addRange'](_0x422197){const _0xa85fcb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xa85fcb),this['_model']['change'](_0x454d11=>{_0x454d11['addMarker'](_0xa85fcb,{'range':_0x422197,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46eee9){for(const _0x5db2d0 of this['getRanges']())if(_0x5db2d0['isIntersecting'](_0x46eee9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4818de=>_0x4818de['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x47ba1d,_0x46eb51)=>[..._0x47ba1d,..._0x46eb51['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2d7d86=this['getRanges']();if(0x1!=_0x2d7d86['length'])return null;const _0x520e77=_0x2d7d86[0x0],_0x3c786c=_0x520e77['start']['nodeAfter'],_0x5819d9=_0x520e77['end']['nodeBefore'];return _0x3c786c instanceof it?_0x3c786c!=_0x5819d9?null:_0x3c786c: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 _0x3c9984=[];let _0x364d31=this['head'];for(;_0x364d31;)_0x3c9984['push'](_0x364d31),_0x364d31=_0x364d31['next'];return _0x3c9984;}['setAttribute'](_0x3247e4,_0x57d0f3){const _0x1b3398=at(this['attributes']);ut(_0x1b3398,_0x3247e4,_0x57d0f3),ct(_0x1b3398,this['attributes'])||(this['attributes']=_0x1b3398,this['_onAttributesChange'](_0x1b3398));}['removeAttribute'](_0x9d508b){const _0x572c7e=at(this['attributes']);dt(_0x572c7e,_0x9d508b),ct(_0x572c7e,this['attributes'])||(this['attributes']=_0x572c7e,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 _0x589c6c()['substr'](0x1,0x5);}};function St(_0x29d754,_0x5cd759,_0x12058e){const _0x2811d5=_0x29d754['t'],t=_0x29d754['t'];switch(_0x5cd759){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',_0x12058e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x12058e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x12058e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x12058e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x12058e);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',_0x12058e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x12058e);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',_0x12058e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x12058e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x12058e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x12058e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x12058e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x12058e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x12058e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x12058e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x12058e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x12058e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x12058e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x12058e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x12058e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x12058e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x12058e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x12058e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x12058e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x12058e);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'},_0x12058e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x12058e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x12058e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x12058e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x12058e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x12058e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x12058e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x12058e);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x12058e);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x12058e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x12058e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x12058e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x12058e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x12058e);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'},_0x12058e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x12058e);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'},_0x12058e);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x12058e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x12058e);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'},_0x12058e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x12058e);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'},_0x12058e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x12058e);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x12058e);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x12058e);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x12058e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x12058e);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'},_0x12058e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x12058e);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2811d5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x12058e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2811d5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x12058e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x12058e);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'},_0x12058e);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'},_0x12058e);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'},_0x12058e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5cd759;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x210fab,_0x5c7df1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x210fab,this['_locale']=_0x5c7df1;}['getDescriptions'](_0x44f42b){const _0x843604=[],_0x505e80=new Set(),_0x2ea199=new Set();for(let _0x44dac8=0x0;_0x44dac8<_0x44f42b['length'];_0x44dac8++){const _0x2206e7=_0x44f42b[_0x44dac8];if(!_0x2206e7['isInContent'])continue;const _0x429398=this['_handleCustomCallbackDescription'](_0x2206e7);if(_0x429398){if(null!=_0x2206e7['subType']){if(_0x505e80['has'](_0x2206e7['subType']))continue;_0x505e80['add'](_0x2206e7['subType']);}_0x843604['push'](_0x429398);}else{if('attribute'==_0x2206e7['type']){const _0x1f2fa0=_0x2206e7['data']['key'];if(_0x2ea199['has'](_0x1f2fa0))continue;_0x2ea199['add'](_0x2206e7['data']['key']),'$elementName'==_0x1f2fa0?this['_handleRenameSuggestionDescription'](_0x843604,_0x2206e7):this['_handleAttributeSuggestionDescription'](_0x843604,_0x2206e7);continue;}'insertion'!=_0x2206e7['type']&&'deletion'!=_0x2206e7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x843604,_0x2206e7,_0x44f42b[_0x44dac8+0x1]);}}return this['_resolveDescriptionItems'](_0x843604);}['registerDescriptionCallback'](_0x4ab31a){this['_customCallbacks']['push'](_0x4ab31a);}['registerElementLabel'](_0x5051c8,_0x2a76e,_0x556c62=_0x10368a['normal']){'function'==typeof _0x5051c8?_0x5bdb0d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5051c8,'label':_0x2a76e,'priority':_0x556c62}):this['_itemLabels']['set'](_0x5051c8,_0x2a76e);}['registerAttributeLabel'](_0x12d56b,_0x33f9e9){this['_attributeLabels']['set'](_0x12d56b,_0x33f9e9);}['getItemLabel'](_0xb65af2,_0x100220=0x1){let _0x17be0d;for(const _0x5b5a30 of this['_itemLabelsCallbacks'])if(_0x5b5a30['matchingCallback'](_0xb65af2)){_0x17be0d=_0x5b5a30['label'];break;}return _0x17be0d||(_0x17be0d=this['_itemLabels']['get'](_0xb65af2['name'])),_0x17be0d?_0x17be0d(_0x100220):0x1!==_0x100220?_0x100220+'\x20'+_0xb65af2['name']+'s':''+_0xb65af2['name'];}['_addDescriptionItems'](_0x5b75fd,_0x29d2aa){const _0x14f955=_0x29d2aa['getFirstRange']()['getWalker'](),_0x5d6186='insertion'==_0x29d2aa['type']?'add':'remove';for(const _0x1f65d0 of _0x14f955){const _0x2fa023=_0x1f65d0['item'],_0x5a4ce0=_0x5b75fd[_0x5b75fd['length']-0x1];if(_0x2fa023['is']('$textProxy'))_0x5a4ce0&&_0x5a4ce0['type']['indexOf']('Container')>-0x1&&_0x5b75fd['pop'](),_0x5a4ce0&&'text'==_0x5a4ce0['type']?_0x5a4ce0[_0x5d6186]+=_0x2fa023['data']:_0x5b75fd['push']({'type':'text','add':'add'==_0x5d6186?_0x2fa023['data']:'','remove':'remove'==_0x5d6186?_0x2fa023['data']:''});else{if(this['_schema']['isObject'](_0x2fa023)){const _0x43e805=_0x2fa023;if(_0x5a4ce0&&_0x5a4ce0['type']['indexOf']('Container')>-0x1&&_0x5b75fd['pop'](),'elementEnd'==_0x1f65d0['type'])continue;_0x5a4ce0&&_0x5a4ce0['type']==_0x5d6186+'Object'&&_0x5a4ce0['element']['name']==_0x43e805['name']?_0x5a4ce0['quantity']++:_0x5b75fd['push']({'type':_0x5d6186+'Object','element':_0x43e805,'quantity':0x1}),_0x14f955['skip'](_0x48acfb=>!('elementEnd'==_0x48acfb['type']&&_0x48acfb['item']==_0x2fa023));}else{if(this['_schema']['checkChild'](_0x2fa023,'$text')||_0x2fa023['is']('element','softBreak')){const _0x7a9568=_0x2fa023;if('add'==_0x5d6186&&'elementStart'==_0x1f65d0['type']||'remove'==_0x5d6186&&'elementEnd'==_0x1f65d0['type'])continue;if(_0x5a4ce0&&-0x1==_0x5a4ce0['type']['indexOf']('Container')){'text'==_0x5a4ce0['type']&&(_0x5a4ce0[_0x5d6186]+='\x0a');continue;}let _0xb0bf31;if(_0xb0bf31='add'==_0x5d6186?_0x7a9568['nextSibling']&&!this['_schema']['isObject'](_0x7a9568['nextSibling'])?_0x7a9568['nextSibling']:null:_0x7a9568['previousSibling']&&!this['_schema']['isObject'](_0x7a9568['previousSibling'])?_0x7a9568['previousSibling']:null,_0x7a9568['isEmpty']||_0xb0bf31&&_0xb0bf31['isEmpty']){const _0x493d5a=_0xb0bf31&&_0xb0bf31['isEmpty']?_0xb0bf31:_0x7a9568;_0x5a4ce0&&_0x5a4ce0['type']==_0x5d6186+'EmptyContainer'&&_0x5a4ce0['element']['name']==_0x493d5a['name']?_0x5a4ce0['quantity']++:_0x5b75fd['push']({'type':_0x5d6186+'EmptyContainer','element':_0x493d5a,'quantity':0x1});}else _0x5b75fd['push']({'type':_0x5d6186+'Container','element':_0x7a9568});}}}}}['_resolveDescriptionItems'](_0xfd0c7d){const _0x4ae8f6=this['_locale'],_0x8dd02b=[],_0x1f417c=[],_0x3e14a7=[];for(const _0x1f889f of _0xfd0c7d)switch(_0x1f889f['type']){case'text':if(_0x1f889f['add']=_0x1f889f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f889f['remove']=_0x1f889f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f889f['add']&&''!=_0x1f889f['remove']){_0x8dd02b['push']({'type':'replace','content':St(_0x4ae8f6,'REPLACE_TEXT',['\x22'+_0x1f889f['remove']+'\x22','\x22'+_0x1f889f['add']+'\x22'])});continue;}if(null!=_0x1f889f['add']['match'](/^ +$/)){_0x8dd02b['push']({'type':'insertion','content':St(_0x4ae8f6,'*Insert:*\x20%0',St(_0x4ae8f6,'ELEMENT_SPACE',_0x1f889f['add']['length']))});continue;}if(null!=_0x1f889f['remove']['match'](/^ +$/)){_0x8dd02b['push']({'type':'deletion','content':St(_0x4ae8f6,'*Remove:*\x20%0',St(_0x4ae8f6,'ELEMENT_SPACE',_0x1f889f['remove']['length']))});continue;}if(''!=_0x1f889f['add']){_0x8dd02b['push']({'type':'insertion','content':St(_0x4ae8f6,'*Insert:*\x20%0','\x22'+_0x1f889f['add']+'\x22')});continue;}_0x8dd02b['push']({'type':'deletion','content':St(_0x4ae8f6,'*Remove:*\x20%0','\x22'+_0x1f889f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x8dd02b['push']({'type':'insertion','content':St(_0x4ae8f6,'*Insert:*\x20%0',this['getItemLabel'](_0x1f889f['element'],_0x1f889f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x8dd02b['push']({'type':'deletion','content':St(_0x4ae8f6,'*Remove:*\x20%0',this['getItemLabel'](_0x1f889f['element'],_0x1f889f['quantity']))});continue;case'addContainer':_0x8dd02b['push']({'type':'insertion','content':St(_0x4ae8f6,'*Split:*\x20%0',this['getItemLabel'](_0x1f889f['element'],_0x1f889f['quantity']))});continue;case'removeContainer':_0x8dd02b['push']({'type':'deletion','content':St(_0x4ae8f6,'*Merge:*\x20%0',this['getItemLabel'](_0x1f889f['element'],_0x1f889f['quantity']))});continue;case'addFormat':_0x1f417c['push'](_0x1f889f['key']);continue;case'removeFormat':_0x3e14a7['push'](_0x1f889f['key']);continue;default:_0x8dd02b['push'](_0x1f889f);}if(_0x1f417c['length']){const _0x255c34=_0x1f417c['map'](_0x5c0ffd=>this['_attributeLabels']['has'](_0x5c0ffd)?this['_attributeLabels']['get'](_0x5c0ffd):_0x5c0ffd)['join'](',\x20');_0x8dd02b['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x255c34)});}if(_0x3e14a7['length']){const _0x329902=_0x3e14a7['map'](_0x84b954=>this['_attributeLabels']['has'](_0x84b954)?this['_attributeLabels']['get'](_0x84b954):_0x84b954)['join'](',\x20');_0x8dd02b['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x329902)});}return _0x8dd02b;}['_handleCustomCallbackDescription'](_0x4209f0){for(const _0x3454f2 of this['_customCallbacks']){const _0xa5b0ce=_0x3454f2(_0x4209f0);if(_0xa5b0ce&&'type'in _0xa5b0ce)return _0xa5b0ce;}}['_handleAttributeSuggestionDescription'](_0x159590,_0x96a51b){const _0x19595f=_0x96a51b['data'],_0x4a7e3f=void 0x0===_0x19595f['newValue']?'removeFormat':'addFormat';_0x159590['push']({'type':_0x4a7e3f,'key':_0x19595f['key']});}['_handleRenameSuggestionDescription'](_0x15987a,_0x481113){_0x15987a['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x481113['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x25f84f,_0x17f4a6,_0x2c60c3){if(this['_addDescriptionItems'](_0x25f84f,_0x17f4a6),_0x2c60c3&&_0x2c60c3['getFirstRange']()&&!_0x17f4a6['getFirstRange']()['end']['isEqual'](_0x2c60c3['getFirstRange']()['start'])){const _0x229548=_0x25f84f[_0x25f84f['length']-0x1],_0x119d33='insertion'==_0x17f4a6['type']?'add':'remove';_0x229548&&'text'==_0x229548['type']&&(_0x229548[_0x119d33]+='\x0a');}}},Ot=class extends _0x3f3b34{['afterInit'](){const _0x18aefa=this['editor'],_0x441a59=_0x18aefa['plugins']['get']('TrackChangesEditing');_0x18aefa['commands']['get']('showAIAssistant')&&_0x441a59['enableCommand']('showAIAssistant');}},wt=class extends _0x3f3b34{['afterInit'](){const _0x27b7a0=this['editor'],_0x20e972=_0x27b7a0['plugins']['get']('TrackChangesEditing');_0x27b7a0['commands']['get']('toggleAi')&&_0x20e972['enableCommand']('toggleAi');}},Ft=class extends _0x3f3b34{['afterInit'](){const _0x13fe1d=this['editor'],_0x3b7e5a=_0x13fe1d['plugins']['get']('TrackChangesEditing');_0x13fe1d['commands']['get']('aiQuickAction')&&_0x3b7e5a['enableCommand']('aiQuickAction');}},Bt=class extends _0x3f3b34{['afterInit'](){const _0x521dd9=this['editor'],_0x46e76b=_0x521dd9['locale'];if(!_0x521dd9['plugins']['has']('AlignmentEditing'))return;const _0x540309=_0x521dd9['plugins']['get']('TrackChangesEditing');_0x540309['enableDefaultAttributesIntegration']('alignment'),_0x540309['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x46e76b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c4168=this['editor'],_0x5dc8c2=_0x5c4168['locale'];_0x5c4168['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d62ca=>{if('formatBlock'!=_0x7d62ca['type'])return;const {data:_0x3e4a53}=_0x7d62ca;if(_0x3e4a53&&'alignment'==_0x3e4a53['commandName']){const _0x593639=_0x3e4a53['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x5dc8c2,'*Format:*\x20%0',function(_0x529419){switch(_0x529419){case'left':return St(_0x5dc8c2,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x5dc8c2,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x5dc8c2,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x5dc8c2,'FORMAT_JUSTIFY_TEXT');}}(_0x593639))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x3f3b34{['afterInit'](){const _0x3ef84a=this['editor'],_0x18b518=_0x3ef84a['plugins']['get']('TrackChangesEditing'),_0x2c6335=_0x3ef84a['locale'];for(const _0x5a7123 of vt){if(!_0x3ef84a['plugins']['has'](_0x5a7123))continue;const _0x469bd6=_0x5a7123['slice'](0x0,-0x7)['toLowerCase'](),_0x3ff1b8='FORMAT_'+_0x469bd6['toUpperCase']();_0x18b518['enableDefaultAttributesIntegration'](_0x469bd6),_0x18b518['descriptionFactory']['registerAttributeLabel'](_0x469bd6,St(_0x2c6335,_0x3ff1b8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38603f=this['editor'],_0x16b5f0=_0x38603f['locale'],_0x37e886=_0x38603f['plugins']['get']('TrackChangesEditing');function _0x20f88f(_0x265a4e,_0x307fa9){_0x37e886['descriptionFactory']['registerDescriptionCallback'](_0x3db7c9=>{if('formatInline'!=_0x3db7c9['type'])return;const {data:_0x5c2166}=_0x3db7c9;return _0x5c2166&&_0x5c2166['commandName']===_0x265a4e?_0x5c2166['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x16b5f0,'*Format:*\x20%0',_0x307fa9)}:{'type':'format','content':St(_0x16b5f0,'*Remove\x20format:*\x20%0',_0x307fa9)}:void 0x0;});}_0x20f88f('bold',St(_0x16b5f0,'FORMAT_BOLD')),_0x20f88f('italic',St(_0x16b5f0,'FORMAT_ITALIC')),_0x20f88f('underline',St(_0x16b5f0,'FORMAT_UNDERLINE')),_0x20f88f('code',St(_0x16b5f0,'FORMAT_CODE')),_0x20f88f('strikethrough',St(_0x16b5f0,'FORMAT_STRIKETHROUGH')),_0x20f88f('subscript',St(_0x16b5f0,'FORMAT_SUBSCRIPT')),_0x20f88f('superscript',St(_0x16b5f0,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x3f3b34{['afterInit'](){const _0x5f5535=this['editor'],_0x3d074e=_0x5f5535['locale'];if(!_0x5f5535['plugins']['has']('BlockQuoteEditing'))return;const _0x536414=_0x5f5535['plugins']['get']('TrackChangesEditing'),_0x52605f=this['editor']['commands']['get']('blockQuote');_0x536414['enableCommand']('blockQuote',(_0x3c1649,_0x5e24ea={})=>{const _0xda2998=this['editor']['model']['document']['selection'],_0x51ab7f=_0x5e24ea&&void 0x0!==_0x5e24ea['forceValue']?_0x5e24ea['forceValue']:!_0x52605f['value'];let _0x19c06a=[];_0x19c06a=At(_0x51ab7f?Array['from'](_0xda2998['getSelectedBlocks']())['filter'](_0x454cfc=>Pt(_0x454cfc)||function(_0x998cfd,_0x28ba96){const _0x41b257=_0x28ba96['createContext'](_0x998cfd['parent']);return!!_0x28ba96['checkChild'](_0x41b257,'blockQuote')&&!!_0x28ba96['checkChild'](_0x41b257['push']('blockQuote'),_0x998cfd);}(_0x454cfc,this['editor']['model']['schema'])):Array['from'](_0xda2998['getSelectedBlocks']())['filter'](_0xd5a3d=>Pt(_0xd5a3d)),_0x5f5535['model']),_0x5f5535['model']['change'](()=>{for(const _0x403d84 of _0x19c06a)_0x536414['markBlockFormat'](_0x403d84,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51ab7f}]});});}),_0x536414['descriptionFactory']['registerDescriptionCallback'](_0x52e1e1=>{const {data:_0x2bdb19}=_0x52e1e1;if(_0x2bdb19&&'blockQuote'==_0x2bdb19['commandName']){const _0x316ee3=St(_0x3d074e,'ELEMENT_BLOCK_QUOTE');return _0x2bdb19['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3d074e,'*Set\x20format:*\x20%0',_0x316ee3)}:{'type':'format','content':St(_0x3d074e,'*Remove\x20format:*\x20%0',_0x316ee3)};}});}};function Pt(_0x146b51){return'blockQuote'==_0x146b51['parent']['name'];}var xt=class extends _0x3f3b34{['afterInit'](){const _0x3f176d=this['editor'],_0x24ec32=_0x3f176d['locale'],_0x16f27c=_0x3f176d['plugins']['get']('TrackChangesEditing');_0x3f176d['plugins']['has']('BookmarkEditing')&&(_0x16f27c['enableCommand']('insertBookmark'),_0x16f27c['enableDefaultAttributesIntegration']('updateBookmark'),_0x16f27c['descriptionFactory']['registerDescriptionCallback'](_0x57f5ff=>{if('insertion'!=_0x57f5ff['type']&&'deletion'!=_0x57f5ff['type']&&'attribute'!=_0x57f5ff['type'])return;const _0x2b6d47=_0x57f5ff['getContainedElement']();if(null==_0x2b6d47)return;if(!_0x2b6d47['is']('element','bookmark'))return;const _0x1ba64f=_0x2b6d47['getAttribute']('bookmarkId');if('insertion'==_0x57f5ff['type'])return{'type':'insertion','content':St(_0x24ec32,'*Insert:*\x20%0','\x22'+_0x1ba64f+'\x22\x20'+St(_0x24ec32,'ELEMENT_BOOKMARK'))};if('deletion'==_0x57f5ff['type'])return{'type':'deletion','content':St(_0x24ec32,'*Remove:*\x20%0','\x22'+_0x1ba64f+'\x22\x20'+St(_0x24ec32,'ELEMENT_BOOKMARK'))};const {data:_0x38e7a0}=_0x57f5ff;return _0x38e7a0&&'bookmarkId'==_0x38e7a0['key']?{'type':'format','content':St(_0x24ec32,'*Set\x20bookmark:*\x20%0','\x22'+_0x38e7a0['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x3f3b34{['afterInit'](){const _0x3247fc=this['editor'];_0x3247fc['plugins']['has']('CaseChange')&&(_0x3247fc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3247fc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3247fc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x3f3b34{['afterInit'](){const _0x2cf119=this['editor'];_0x2cf119['commands']['get']('ckbox')&&_0x2cf119['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x3f3b34{['afterInit'](){const _0x102e74=this['editor'];if(!_0x102e74['plugins']['has']('CodeBlock'))return;const _0x296af0=_0x102e74['plugins']['get']('TrackChangesEditing'),_0x2d6455=_0x102e74['locale'],_0x20c9cb=_0x102e74['config']['get']('codeBlock')['languages'],_0x18755b=_0x102e74['commands']['get']('codeBlock');_0x296af0['enableCommand']('indentCodeBlock'),_0x296af0['enableCommand']('outdentCodeBlock'),_0x296af0['enableCommand']('codeBlock',(_0x36241a,_0x334edf={})=>{const _0x23a373=_0x102e74['model'],_0x56c797=_0x102e74['model']['document']['selection'],_0x294d1e=_0x334edf&&void 0x0!==_0x334edf['forceValue']?_0x334edf['forceValue']:!_0x18755b['value'];let _0x1b17d5;_0x334edf['language']||(_0x334edf['language']=_0x20c9cb[0x0]['language']),_0x1b17d5=_0x294d1e?Array['from'](_0x56c797['getSelectedBlocks']())['filter'](_0x242813=>{return Vt(_0x242813)||(_0x471b3a=_0x242813,_0x2754d2=_0x23a373['schema'],!_0x471b3a['is']('rootElement')&&!_0x2754d2['isLimit'](_0x471b3a)&&_0x2754d2['checkChild'](_0x471b3a['parent'],'codeBlock'));var _0x471b3a,_0x2754d2;}):Array['from'](_0x56c797['getSelectedBlocks']())['filter'](_0x3abc25=>Vt(_0x3abc25));const _0x3b6f27=At(_0x1b17d5,_0x23a373);_0x23a373['change'](()=>{for(const _0x17ff4f of _0x3b6f27)_0x296af0['markBlockFormat'](_0x17ff4f,{'commandName':'codeBlock','commandParams':[{..._0x334edf,'forceValue':_0x294d1e}],'formatGroupId':'blockName'});});}),(_0x296af0['descriptionFactory']['registerElementLabel']('codeBlock',_0x112e7d=>St(_0x2d6455,'ELEMENT_CODE_BLOCK',_0x112e7d)),_0x296af0['descriptionFactory']['registerDescriptionCallback'](_0x18db00=>{if('formatBlock'!=_0x18db00['type'])return;const _0x47dca5=_0x2d6455['t'],{data:_0x3ba077}=_0x18db00;if(!_0x3ba077||'codeBlock'!=_0x3ba077['commandName'])return;const _0x37385a=_0x3ba077['commandParams'][0x0]['language'],_0x3bf56e=_0x47dca5(_0x20c9cb['find'](_0x2bfe25=>_0x2bfe25['language']===_0x37385a)['label'])['toLowerCase']();return _0x3ba077['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x2d6455,'*Set\x20format:*\x20%0',St(_0x2d6455,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3bf56e+')')}:{'type':'format','content':St(_0x2d6455,'*Remove\x20format:*\x20%0',St(_0x2d6455,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x1f9d70){return'codeBlock'==_0x1f9d70['name'];}var Wt=class extends _0x3f3b34{['afterInit'](){const _0x52efbe=this['editor'];_0x52efbe['plugins']['has']('CommentsEditing')&&_0x52efbe['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x3f3b34{static get['requires'](){return[ht];}['init'](){const _0x315334=this['editor'],_0x2d1e46=_0x315334['plugins']['get']('TrackChangesEditing');_0x2d1e46['enableCommand']('delete');const _0x543ff9=_0x315334['commands']['get']('deleteForward');_0x2d1e46['enableCommand']('deleteForward',(_0x594b90,_0x58384e={})=>{const _0x302500=_0x315334['model']['createSelection'](_0x315334['model']['document']['selection']);_0x302500['isCollapsed']&&_0x315334['model']['modifySelection'](_0x302500,{'direction':'forward','unit':_0x58384e['unit']});const _0x230649=_0x302500['getFirstRange'](),_0x1f449d=rt['fromRange'](_0x230649);let _0x2f4e0d;_0x594b90(_0x58384e),_0x2f4e0d='$graveyard'==_0x1f449d['root']['rootName']?_0x315334['model']['createRange'](_0x230649['start']):_0x315334['model']['createRange'](_0x1f449d['start'],_0x1f449d['end']),_0x1f449d['detach'](),_0x315334['model']['enqueueChange'](_0x543ff9['buffer']['batch'],_0x1da656=>{_0x543ff9['buffer']['lock'](),_0x1da656['setSelection'](_0x1da656['createRange'](_0x2f4e0d['end'])),_0x543ff9['buffer']['unlock']();});});}},Kt=class extends _0x3f3b34{['afterInit'](){const _0x442ff1=this['editor'];if(!_0x442ff1['plugins']['has']('ListEditing'))return;const _0x44f2ea=_0x442ff1['locale'],_0x410047=_0x442ff1['plugins']['get']('TrackChangesEditing'),_0x586eab=_0x442ff1['plugins']['has']('TodoListEditing'),_0x18df68=!!_0x442ff1['config']['get']('list.multiBlock');function _0x2f6e0c(_0x20d6aa){return{'type':'format','content':''+St(_0x44f2ea,'*Set\x20format:*\x20%0',_0x20d6aa)};}function _0x164923(_0x127222){return{'type':'format','content':''+St(_0x44f2ea,'*Remove\x20format:*\x20%0',_0x127222)};}_0x410047['enableDefaultAttributesIntegration']('numberedList'),_0x410047['enableDefaultAttributesIntegration']('bulletedList'),_0x410047['enableDefaultAttributesIntegration']('customNumberedList'),_0x410047['enableDefaultAttributesIntegration']('customBulletedList'),_0x410047['enableDefaultAttributesIntegration']('indentList'),_0x410047['enableDefaultAttributesIntegration']('outdentList'),_0x410047['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x410047['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x18df68&&(_0x410047['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x410047['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x586eab&&(_0x410047['enableDefaultAttributesIntegration']('todoList'),_0x410047['enableDefaultAttributesIntegration']('checkTodoList'),_0x410047['descriptionFactory']['registerDescriptionCallback'](_0x330ae7=>{const {data:_0x30de1a}=_0x330ae7;if(_0x30de1a&&'todoListChecked'==_0x30de1a['key'])return{'type':'format','content':_0x30de1a['newValue']?St(_0x44f2ea,'*Check\x20item*'):St(_0x44f2ea,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3b7937=>{if(_0x3b7937['batch']['isUndo'])return!0x1;let _0x1490a6=!0x1;const _0x135a28=_0x410047['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xdf1e46=>'todoListChecked'===_0x410047['_getAttributeKey'](_0xdf1e46));for(const _0x499853 of _0x135a28)'todo'!=_0x499853['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x410047['_findSuggestions'](_0x499853['getFirstRange'](),'attribute')['find'](_0x5ec95f=>'listType'===_0x410047['_getAttributeKey'](_0x5ec95f['suggestion']))||(_0x3b7937['removeMarker'](_0x499853['getFirstMarker']()),_0x1490a6=!0x0));return _0x1490a6;})),_0x410047['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x44f2ea,'FORMAT_INDENT'));const _0x1f98ea={'type':'format','content':''};_0x410047['descriptionFactory']['registerDescriptionCallback'](_0x5290c2=>{const {data:_0x18a89f}=_0x5290c2;if(!_0x18a89f||'listType'!=_0x18a89f['key'])return;let _0x26366e=_0x5290c2['head'];for(;_0x26366e;){if(_0x26366e['data']&&(('listStyle'==_0x26366e['data']['key']||'listMarkerStyle'==_0x26366e['data']['key'])&&(_0x26366e['data']['newValue']&&'default'!=_0x26366e['data']['newValue']||'default'!=_0x26366e['data']['oldValue']&&!_0x18a89f['newValue'])||!_0x18df68&&'$elementName'==_0x26366e['data']['key']))return _0x1f98ea;_0x26366e=_0x26366e['next'];}if(null==_0x18a89f['newValue'])switch(_0x18a89f['oldValue']){case'bulleted':return _0x164923(St(_0x44f2ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x164923(St(_0x44f2ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x164923(St(_0x44f2ea,'ELEMENT_TODO_LIST'));}switch(_0x18a89f['newValue']){case'bulleted':return _0x2f6e0c(St(_0x44f2ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f6e0c(St(_0x44f2ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f6e0c(St(_0x44f2ea,'ELEMENT_TODO_LIST'));}}),_0x410047['descriptionFactory']['registerDescriptionCallback'](_0xb43705=>{const {data:_0x28f7c1}=_0xb43705;if(_0x28f7c1&&'listIndent'==_0x28f7c1['key'])return null==_0x28f7c1['newValue']||null==_0x28f7c1['oldValue']&&0x0==_0x28f7c1['newValue']?_0x1f98ea:void 0x0;}),_0x410047['descriptionFactory']['registerDescriptionCallback'](_0x25d410=>{if('attribute'!=_0x25d410['type'])return;const {data:_0x4b68c4}=_0x25d410;if(!_0x4b68c4||'listItemId'!=_0x4b68c4['key'])return;const _0x577b85=zt(_0x25d410);return'newValue'==_0x577b85?{'type':'format','content':St(_0x44f2ea,'*Merge:*\x20list\x20item')}:'oldValue'==_0x577b85?{'type':'format','content':St(_0x44f2ea,'*Split:*\x20list\x20item')}:_0x1f98ea;}),_0x442ff1['model']['document']['registerPostFixer'](_0x2524ad=>this['listItemIdFixer'](_0x2524ad)),_0x442ff1['model']['document']['registerPostFixer'](_0x41ae2f=>this['noTrackChangesFixer'](_0x41ae2f)),_0x442ff1['model']['document']['on']('change:data',(_0x172c20,_0x420527)=>{if(_0x420527['isUndo']||!_0x420527['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1cbd12){if(_0x1cbd12['batch']['isUndo']||!_0x1cbd12['batch']['isLocal'])return!0x1;let _0x3a31ed=!0x1;const _0x48ce37=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17ff57=>_0x17ff57['data']&&'listItemId'==_0x17ff57['data']['key'])['filter'](_0x5347a7=>_0x5347a7['data']['newValue']&&_0x5347a7['data']['oldValue']);for(const _0x51d595 of _0x48ce37)zt(_0x51d595)||(_0x1cbd12['removeMarker'](_0x51d595['getFirstMarker']()),_0x3a31ed=!0x0);return _0x3a31ed;}['noTrackChangesFixer'](_0x37427e){if(_0x37427e['batch']['isUndo']||!_0x37427e['batch']['isLocal'])return!0x1;const _0x1ad3e7=this['editor']['model']['document']['differ'],_0x18c8b2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x18c8b2['trackChangesCommand']['value'])return!0x1;let _0x42ba86=!0x1;const _0x3bc800=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0xc5610=_0x1ad3e7['getChanges']()['filter'](_0x18da06=>'attribute'==_0x18da06['type'])['filter'](_0x35bea2=>_0x3bc800['has'](_0x35bea2['attributeKey']));if(0x0==_0xc5610['length'])return _0x42ba86;const _0x26a7f4=new Set(_0x1ad3e7['getMarkersToAdd']()['filter'](_0x243def=>{if(!_0x243def['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4549af=tt(_0x243def['name'])['subType']['split']('|')[0x0];return _0x3bc800['has'](_0x4549af);})['map'](_0x264271=>tt(_0x264271['name'])['id']));for(const _0x2fd161 of _0xc5610){const _0x51d7aa=_0x18c8b2['_findSuggestions'](_0x2fd161['range'],'attribute')['filter'](_0x3796b7=>{if(_0x3796b7['meta']['isNextTo'])return!0x1;if(_0x26a7f4['has'](_0x3796b7['suggestion']['id']))return!0x1;const _0x1dc124=_0x18c8b2['_getAttributeKey'](_0x3796b7['suggestion']);return _0x3bc800['has'](_0x1dc124);})['map'](_0x5ba550=>_0x5ba550['suggestion']);if(_0x51d7aa['length']){for(const _0x551e9e of _0x51d7aa)_0x37427e['removeMarker'](_0x551e9e['getFirstMarker']());_0x42ba86=!0x0;}}return _0x42ba86;}['assureChains'](){const _0x3ee435=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bf682=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4f137f;const _0x340333=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f7d1e=>{if(_0x3f7d1e['data']['oldRange']||!_0x3f7d1e['data']['newRange'])return null;if(!_0x3f7d1e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x305d6f}=tt(_0x3f7d1e['name']);if(!_0x3ee435['hasSuggestion'](_0x305d6f))return null;const _0x2ee915=_0x3ee435['getSuggestion'](_0x305d6f);return _0x3bf682['includes'](_0x2ee915['data']['key']);})['map'](_0x14e095=>{const {id:_0x69878a}=tt(_0x14e095['name']),_0x391234=_0x3ee435['getSuggestion'](_0x69878a);return _0x4f137f=_0x391234['attributes']['groupId'],_0x391234['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x340333['size'])return;const _0x2a09ed=_0x3ee435['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x184f41=>'attribute'==_0x184f41['type']&&_0x184f41['data']&&_0x3bf682['includes'](_0x184f41['data']['key'])&&_0x184f41['attributes']['groupId']!=_0x4f137f)['map'](_0x34b1c4=>({'listItem':_0x34b1c4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34b1c4['attributes']['groupId']})),_0x126946=new Set();for(const {groupId:_0x5ee86d,listItem:_0x23dd52}of _0x2a09ed)_0x340333['has'](_0x23dd52)&&_0x126946['add'](_0x5ee86d);for(const _0x250501 of _0x3ee435['getSuggestions']())_0x126946['has'](_0x250501['attributes']['groupId'])&&_0x250501['setAttribute']('groupId',_0x4f137f);}['_supportLegacySuggestions'](){const _0x21aff1=this['editor'],_0x556bb9=_0x21aff1['locale'],_0x2aca5f=_0x21aff1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2aca5f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1f511e,_0x600914){const _0xfdbb3e=[];for(let _0x57a84e of _0x1f511e)_0x57a84e['start']['nodeAfter']===_0x57a84e['end']['parent']&&(_0x57a84e=_0x21aff1['model']['createRange'](_0x21aff1['model']['createPositionAt'](_0x57a84e['start']['nodeAfter'],0x0))),_0xfdbb3e['push'](_0x57a84e);_0x21aff1['model']['change'](_0x412ea8=>{const _0x3d4a90=_0x21aff1['model']['document']['selection'],_0x990b1c=Array['from'](_0x3d4a90['getRanges']())['map'](_0x460a05=>rt['fromRange'](_0x460a05));_0x412ea8['setSelection'](_0xfdbb3e),_0x21aff1['commands']['get'](_0x600914['commandName'])['refresh'](),_0x600914['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x21aff1['execute'](_0x600914['commandName'],..._0x600914['commandParams']),_0x412ea8['setSelection'](_0x990b1c);for(const _0x433c02 of _0x990b1c)_0x433c02['detach']();});}),_0x2aca5f['descriptionFactory']['registerElementLabel'](function(_0x323604){const _0x5023d6=!_0x21aff1['model']['schema']['isObject'](_0x323604),_0xf442fc=_0x323604['previousSibling'],_0x53287a=_0x323604['nextSibling'],_0x1269b2=_0x323604['getAttribute']('listItemId'),_0x3cc9fc=!_0xf442fc||_0xf442fc['getAttribute']('listItemId')!==_0x1269b2,_0x53f3f3=!_0x53287a||_0x53287a['getAttribute']('listItemId')!==_0x1269b2;return _0x5023d6&&Boolean(_0x1269b2)&&_0x3cc9fc&&_0x53f3f3;},_0x4c0f1f=>St(_0x556bb9,'ELEMENT_LIST_ITEM',_0x4c0f1f));}['_registerLegacyDescription'](){const _0x14b5fb=this['editor'],_0x1dd342=_0x14b5fb['locale'];function _0x59aa97(_0x292000){const _0x34131c=_0x14b5fb['commands']['get']('bulletedList')['value'],_0x5d22e2=_0x14b5fb['commands']['get']('numberedList')['value'];return'numberedList'===_0x292000?_0x34131c:_0x5d22e2;}_0x14b5fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xa0067a){if('formatBlock'!=_0xa0067a['type'])return;const {data:_0x104564}=_0xa0067a;if(!_0x104564)return;let _0x11be75,_0x6424b4,_0x5566eb,_0xdec00a;switch(_0x104564['commandName']){case'bulletedList':_0x5566eb=_0x104564['commandParams'][0x0]['forceValue'],_0xdec00a=_0x59aa97(_0x104564['commandName']),_0x11be75=_0x5566eb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdec00a&&_0x14b5fb['config']['get']('list.multiBlock')||(_0x11be75='*Change\x20to:*\x20%0'),_0x6424b4={'type':'format','content':St(_0x1dd342,_0x11be75,St(_0x1dd342,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5566eb=_0x104564['commandParams'][0x0]['forceValue'],_0xdec00a=_0x59aa97(_0x104564['commandName']),_0x11be75=_0x5566eb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdec00a&&_0x14b5fb['config']['get']('list.multiBlock')||(_0x11be75='*Change\x20to:*\x20%0'),_0x6424b4={'type':'format','content':St(_0x1dd342,_0x11be75,St(_0x1dd342,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x11be75='*Indent:*\x20%0',_0x6424b4={'type':'format','content':St(_0x1dd342,_0x11be75,St(_0x1dd342,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x11be75=function(_0x563871){const _0x3d6149=_0x563871['getFirstRange']();let _0x20c584=_0x3d6149['start']['nodeAfter'];for(;_0x20c584&&_0x3d6149['containsItem'](_0x20c584);){if(_0x20c584['getAttribute']('listIndent')>0x0)return!0x1;_0x20c584=_0x20c584['nextSibling'];}return!0x0;}(_0xa0067a)?St(_0x1dd342,'*Format:*\x20remove\x20from\x20%0',St(_0x1dd342,function(_0x134476){return'ELEMENT_'+_0x134476['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xa0067a))):St(_0x1dd342,'*Outdent:*\x20%0',St(_0x1dd342,'ELEMENT_LIST_ITEM')),_0x6424b4={'type':'format','content':_0x11be75};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x104564['multipleBlocks']&&(_0x11be75='*Merge:*\x20%0',_0x6424b4={'type':'deletion','content':St(_0x1dd342,_0x11be75,St(_0x1dd342,'ELEMENT_LIST_ITEM'))});}return _0x6424b4;});}};function zt(_0x6bcc25){let _0x151fc5=_0x6bcc25['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x151fc5;){const _0x335a0d=_0x151fc5['getAttribute']('listItemId');if(!_0x335a0d)return!0x1;if(_0x335a0d==_0x6bcc25['data']['newValue'])return'newValue';if(_0x335a0d==_0x6bcc25['data']['oldValue'])return'oldValue';_0x151fc5=_0x151fc5['previousSibling'];}return!0x1;}var Xt=class extends _0x3f3b34{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc2355d=this['editor']['config']['get']('list.properties'),_0x231b73=this['editor']['plugins']['get']('TrackChangesEditing');_0xc2355d['styles']&&_0x231b73['enableDefaultAttributesIntegration']('listStyle'),_0xc2355d['reversed']&&_0x231b73['enableDefaultAttributesIntegration']('listReversed'),_0xc2355d['startIndex']&&_0x231b73['enableDefaultAttributesIntegration']('listStart');const _0x16adff={'type':'format','content':''};_0x231b73['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x20bdc3=this['editor']['locale'];_0x231b73['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x20bdc3,'FORMAT_LIST_REVERSED')),_0x231b73['descriptionFactory']['registerDescriptionCallback'](_0x5d4cc1=>{const {data:_0x57addf}=_0x5d4cc1;if(_0x57addf&&'listReversed'==_0x57addf['key'])return null==_0x57addf['newValue']||0x0==_0x57addf['newValue']&&null==_0x57addf['oldValue']?_0x16adff:void 0x0;}),_0x231b73['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x20bdc3,'FORMAT_LIST_START')),_0x231b73['descriptionFactory']['registerDescriptionCallback'](_0x37339a=>{const {data:_0x3297ec}=_0x37339a;if(_0x3297ec&&'listStart'==_0x3297ec['key'])return null==_0x3297ec['newValue']||0x1==_0x3297ec['newValue']&&null==_0x3297ec['oldValue']?_0x16adff:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x110382=>{if(_0x110382['batch']['isUndo'])return!0x1;let _0x576196=!0x1;const _0x41f5ea=_0x231b73['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50c9ca=>{const _0x2530e4=_0x231b73['_getAttributeKey'](_0x50c9ca);return'listStart'==_0x2530e4||'listReversed'==_0x2530e4;});for(const _0x1dd269 of _0x41f5ea){const _0x2d07fa=_0x1dd269['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x2d07fa&&'customNumbered'!=_0x2d07fa&&(_0x231b73['_findSuggestions'](_0x1dd269['getFirstRange'](),'attribute')['find'](_0x43e47d=>'listType'==_0x231b73['_getAttributeKey'](_0x43e47d['suggestion']))||(_0x110382['removeMarker'](_0x1dd269['getFirstMarker']()),_0x576196=!0x0));}return _0x576196;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x30f2f3){const _0x271a7f=this['editor']['locale'],{data:_0x468472}=_0x30f2f3,_0x36c6de={'type':'format','content':''};if(!_0x468472||'listStyle'!=_0x468472['key'])return;if(!_0x468472['oldValue'])return'default'==_0x468472['newValue']?_0x36c6de:{'type':'format','content':''+St(_0x271a7f,'*Set\x20format:*\x20%0',St(_0x271a7f,this['_getTranslationKeyForListStyle'](_0x468472['newValue'])))};if(!_0x468472['newValue']){if('default'==_0x468472['oldValue'])return _0x36c6de;let _0xa6e7fe=_0x30f2f3['head'];for(;_0xa6e7fe;){if(_0xa6e7fe['data']&&'listType'==_0xa6e7fe['data']['key']&&_0xa6e7fe['data']['newValue'])return _0x36c6de;_0xa6e7fe=_0xa6e7fe['next'];}return{'type':'format','content':''+St(_0x271a7f,'*Remove\x20format:*\x20%0',St(_0x271a7f,this['_getTranslationKeyForListStyle'](_0x468472['oldValue'])))};}if('default'!=_0x468472['newValue'])return{'type':'format','content':''+St(_0x271a7f,'*Set\x20format:*\x20%0',St(_0x271a7f,this['_getTranslationKeyForListStyle'](_0x468472['newValue'])))};let _0x498253=_0x30f2f3['head'];for(;_0x498253;){if(_0x498253['data']&&'listType'==_0x498253['data']['key']&&_0x498253['data']['newValue']&&_0x498253['data']['oldValue'])return _0x36c6de;_0x498253=_0x498253['next'];}return{'type':'format','content':St(_0x271a7f,'*Set\x20format:*\x20%0',St(_0x271a7f,'ELEMENT_'+_0x30f2f3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21d775=this['editor'],_0x1dbf38=_0x21d775['locale'];_0x21d775['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa2d9cc=>{if('formatBlock'!=_0xa2d9cc['type'])return;const {data:_0x440e51}=_0xa2d9cc;if(!_0x440e51)return;let _0x34870d,_0x3d3cbd;switch(_0x440e51['commandName']){case'listStyle':_0x34870d='*Change\x20to:*\x20%0',_0x3d3cbd={'type':'format','content':St(_0x1dbf38,_0x34870d,St(_0x1dbf38,this['_getTranslationKeyForListStyle'](_0x440e51['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34870d=_0x440e51['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d3cbd={'type':'format','content':St(_0x1dbf38,_0x34870d)};break;case'listStart':_0x34870d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d3cbd={'type':'format','content':St(_0x1dbf38,_0x34870d,_0x440e51['commandParams'][0x0]['startIndex'])};}return _0x3d3cbd;});}['_getTranslationKeyForListStyle'](_0x33cf4b){return'ELEMENT_'+(_0x411a32=_0x33cf4b,qt['includes'](_0x411a32)?'bulleted':Yt['includes'](_0x411a32)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x33cf4b['toUpperCase']()['replace'](/-/g,'_');var _0x411a32;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x3f3b34{['afterInit'](){const _0x8d9409=this['editor'];_0x8d9409['commands']['get']('emoji')&&_0x8d9409['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x3f3b34{static get['requires'](){return[ft];}['init'](){const _0x32dad4=this['editor'],_0xf5bb43=_0x32dad4['plugins']['get']('TrackChangesEditing'),_0x8874a9=_0x32dad4['commands']['get']('enter');_0xf5bb43['enableCommand']('enter',()=>{_0x32dad4['model']['change'](_0x1e6bd2=>{const _0x5275a3=_0x32dad4['model']['document']['selection'],_0x50f4d1=_0x5275a3['getFirstPosition'](),_0xc4d65f=rt['fromRange'](_0x5275a3['getFirstRange']());if(_0x8874a9['enterBlock'](_0x1e6bd2)){const _0x17dd2f=_0x32dad4['model']['createPositionAt'](_0x50f4d1['parent']['nextSibling'],0x0),_0x4c5d8f=_0x1e6bd2['createRange'](_0x50f4d1,_0x17dd2f);_0xf5bb43['markInsertion'](_0x4c5d8f);}else _0x1e6bd2['setSelection'](_0x1e6bd2['createRange'](_0xc4d65f['end']));_0xc4d65f['detach'](),_0x8874a9['fire']('afterExecute',{'writer':_0x1e6bd2});});});}},Jt=class extends _0x3f3b34{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x49e90a=this['editor']['plugins']['get']('TrackChangesEditing');_0x49e90a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x49e90a['enableCommand']('findNext'),_0x49e90a['enableCommand']('findPrevious'),_0x49e90a['enableCommand']('replace'),_0x49e90a['enableCommand']('replaceAll');}['handleFindCommand'](_0x3d5a9d,_0x11674c,_0x153853={}){const _0x2ae136=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3d5a9d(_0x22e786=>{let _0x38c014=('string'==typeof _0x11674c?_0x2ae136['findByTextCallback'](_0x11674c,_0x153853):_0x11674c)(_0x22e786);Array['isArray'](_0x38c014)&&(_0x38c014={'results':_0x38c014,'searchText':'string'==typeof _0x11674c?_0x11674c:''});const _0x1e3d8a=_0x38c014['results']['filter'](_0x17b078=>!0x1===this['_isInDeletionRange'](_0x17b078,_0x22e786['item']));return{..._0x38c014,'results':_0x1e3d8a};},_0x153853);}['_isInDeletionRange'](_0x10484b,_0x3f7419){const _0x604bfc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f7419,_0x10484b['start']),this['editor']['model']['createPositionAt'](_0x3f7419,_0x10484b['end']));for(const _0x55abc3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x604bfc['getIntersection'](_0x55abc3['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x3f3b34{['afterInit'](){const _0x5dd652=this['editor']['locale'],_0x1e4118=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x15a68c,commandName:_0x56edf1}of te)this['editor']['plugins']['has'](_0x15a68c)&&_0x1e4118['enableDefaultAttributesIntegration'](_0x56edf1);_0x1e4118['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x5dd652,'FORMAT_FONT_SIZE')),_0x1e4118['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x5dd652,'FORMAT_FONT_FAMILY')),_0x1e4118['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x5dd652,'FORMAT_FONT_COLOR')),_0x1e4118['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x5dd652,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x163d27=this['editor'],_0x68fb6e=_0x163d27['locale'];_0x163d27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x472b25=>{const _0x5f1cf9=_0x68fb6e['t'];if('formatInline'!=_0x472b25['type'])return;const {data:_0x8ccc80}=_0x472b25;if(null!=_0x8ccc80){if('fontSize'==_0x8ccc80['commandName']){const _0x3f245b=_0x8ccc80['commandParams'][0x0]['value'];if(_0x3f245b){const _0x1b6dab=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5c5665=>_0x5c5665['model']==_0x3f245b)['title'];return{'type':'format','content':St(_0x68fb6e,'*Set\x20font\x20size:*\x20%0',_0x5f1cf9(_0x1b6dab)['toLowerCase']())};}return{'type':'format','content':St(_0x68fb6e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8ccc80['commandName']){const _0x19aa38=_0x8ccc80['commandParams'][0x0]['value'];return _0x19aa38?{'type':'format','content':St(_0x68fb6e,'*Set\x20font\x20family:*\x20%0',_0x19aa38)}:{'type':'format','content':St(_0x68fb6e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8ccc80['commandName']){const _0x532c21=_0x8ccc80['commandParams'][0x0]['value'];if(_0x532c21){const _0x3b52f1=_0x3878b1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x109d37=>_0x109d37['model']==_0x532c21);let _0x331508=_0x532c21,_0x24cd92='';return _0x3b52f1&&(_0x331508=_0x3b52f1['label'],_0x24cd92=_0x5f1cf9(_0x331508)['toLowerCase']()),{'type':'format','content':St(_0x68fb6e,'*Set\x20font\x20color:*\x20%0',_0x24cd92)['trim'](),'color':{'value':_0x532c21,'title':_0x24cd92||_0x331508}};}return{'type':'format','content':St(_0x68fb6e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8ccc80['commandName']){const _0xb47181=_0x8ccc80['commandParams'][0x0]['value'];if(_0xb47181){const _0x5ba658=_0x3878b1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x30ccd8=>_0x30ccd8['model']==_0xb47181);let _0x4a2e1e=_0xb47181,_0xa72237='';return _0x5ba658&&(_0x4a2e1e=_0x5ba658['label'],_0xa72237=_0x5f1cf9(_0x4a2e1e)['toLowerCase']()),{'type':'format','content':St(_0x68fb6e,'*Set\x20font\x20background\x20color:*\x20%0',_0xa72237)['trim'](),'color':{'value':_0xb47181,'title':_0xa72237||_0x4a2e1e}};}return{'type':'format','content':St(_0x68fb6e,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x3f3b34{['afterInit'](){const {plugins:_0x9e1042}=this['editor'];_0x9e1042['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x9e1042['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x26ca75,plugins:_0x5e63f1,commands:_0x5c71d0}=this['editor'],_0x3c2f36=_0x5e63f1['get']('TrackChangesEditing');_0x5c71d0['get']('footnotesStyle')&&_0x3c2f36['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5c71d0['get']('footnotesStart')&&_0x3c2f36['enableDefaultAttributesIntegration']('footnotesStart'),_0x3c2f36['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x26ca75,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3c2f36['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x26ca75,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2b96ae=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x13e547,commands:_0x3cde5d}=this['editor'];_0x3cde5d['get']('insertFootnote')&&_0x2b96ae['enableCommand']('insertFootnote'),_0x2b96ae['descriptionFactory']['registerElementLabel']('footnoteRef',_0x483720=>St(_0x13e547,'ELEMENT_FOOTNOTE_REF',_0x483720)),_0x2b96ae['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x396907=>St(_0x13e547,'ELEMENT_FOOTNOTE_DEFINITION',_0x396907)),_0x2b96ae['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x535be6=>St(_0x13e547,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x535be6));}},ie=class extends _0x3f3b34{['afterInit'](){const _0x12eccc=this['editor'],_0x457737=_0x12eccc['plugins']['get']('TrackChangesEditing'),_0x3fc1f5=_0x12eccc['commands']['get']('copyFormat'),_0x50211c=_0x12eccc['commands']['get']('pasteFormat');_0x3fc1f5&&_0x50211c&&(_0x457737['enableDefaultAttributesIntegration']('pasteFormat'),_0x457737['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5eebb5=this['editor'],_0x2031c5=_0x5eebb5['locale'];_0x5eebb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b936=>{if('formatBlock'!=_0x25b936['type']&&'formatInline'!=_0x25b936['type'])return;const {data:_0x5cbb9e}=_0x25b936;if(_0x5cbb9e&&'pasteFormat'===_0x5cbb9e['commandName']){const _0x1f363f=[],_0x30b986=_0x5cbb9e['commandParams'][0x0];for(const [_0xc0ec85,_0x13866f]of Object['entries'](_0x30b986))_0x1f363f['push'](se(_0x5eebb5,_0xc0ec85,_0x13866f));return _0x1f363f['length']?{'type':'format','content':St(_0x2031c5,'*Set\x20format\x20to:*\x20%0',_0x1f363f['join'](',\x20'))}:{'type':'format','content':St(_0x2031c5,'*Remove\x20all\x20formatting*')};}});}};function se(_0x18c5d5,_0x521cea,_0x11eac3){const _0x5156c6=_0x18c5d5['locale']['t'],_0x2bb03c=_0x521cea['split'](/(?=[A-Z])/)['join']('\x20'),_0x510893=_0x5156c6(_0x2bb03c['charAt'](0x0)['toUpperCase']()+_0x2bb03c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11eac3)return _0x510893;if('fontColor'===_0x521cea||'fontBackgroundColor'===_0x521cea){const _0x27cafc=_0x3878b1(_0x18c5d5['config']['get']('fontColor.colors'))['find'](_0x5e0b01=>_0x5e0b01['model']==_0x11eac3);return _0x510893+'\x20('+(_0x27cafc?_0x5156c6(_0x27cafc['label'])['toLowerCase']():_0x11eac3)+')';}if('fontSize'===_0x521cea&&isNaN(parseFloat(_0x11eac3))){const _0x5408b6=_0x18c5d5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x18c5d5['config']['get']('fontSize.options'))['find'](_0xcae804=>_0xcae804['model']==_0x11eac3);return _0x510893+'\x20('+(_0x5408b6?_0x5156c6(_0x5408b6['title'])['toLowerCase']():_0x11eac3)+')';}return _0x510893+'\x20('+_0x11eac3+')';}var re=class extends _0x3f3b34{['afterInit'](){const _0x4d3617=this['editor'];if(!_0x4d3617['plugins']['has']('GeneralHtmlSupport')||!_0x4d3617['plugins']['has']('DataSchema'))return;const _0xb08891=_0x4d3617['plugins']['get']('TrackChangesEditing'),_0x4bb41c=_0x4d3617['plugins']['get']('GeneralHtmlSupport'),_0x45147e=_0x4d3617['plugins']['get']('DataSchema'),_0xd25431=_0x4d3617['locale'],_0x5a36f3=new Set(['htmlContent']);for(const _0x2fdaf4 of _0x45147e['getDefinitionsForView'](/.*/,!0x1)){const _0x5e1a74=_0x2fdaf4['view'],_0x3b8e68=_0x4bb41c['getGhsAttributeNameForElement'](_0x5e1a74);_0x5a36f3['add'](_0x3b8e68),!_0x2fdaf4['isInline']||_0x2fdaf4['isObject']||'appliesToBlock'in _0x2fdaf4&&_0x2fdaf4['appliesToBlock']||_0xb08891['descriptionFactory']['registerAttributeLabel'](_0x3b8e68,_0x5e1a74),_0x2fdaf4['model']['startsWith']('html')&&_0xb08891['descriptionFactory']['registerElementLabel'](_0x2fdaf4['model'],_0x47f43e=>St(_0xd25431,'ELEMENT_HTML_TAG',[_0x47f43e,_0x5e1a74]));}_0xb08891['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0xd25431,'FORMAT_RAW_HTML_CONTENT')),_0xb08891['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0xd25431,'FORMAT_HTML_LIST_ITEM')),_0xb08891['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0xd25431,'FORMAT_HTML_BULLETED_LIST')),_0xb08891['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0xd25431,'FORMAT_HTML_NUMBERED_LIST')),_0xb08891['descriptionFactory']['registerDescriptionCallback'](_0x4583c2=>{if('attribute'!==_0x4583c2['type'])return;const _0x480d30=_0x4583c2['data'];if(!_0x480d30||!_0x5a36f3['has'](_0x480d30['key']))return;if('htmlContent'===_0x480d30['key'])return{'type':'format','content':St(_0xd25431,'*Change\x20%0\x20content*',St(_0xd25431,'ELEMENT_RAW_HTML'))};const {setItems:_0x22e58b,removeItems:_0x549886}=function(_0x25c5a2,_0x35c7f1,_0x3b1c4a){const _0x23fbaa=[],_0x58a9d1=[],_0x1c28d3=_0x25c5a2['styles']??{},_0x49d101=_0x35c7f1['styles']??{};for(const _0x188fe3 of new Set([...Object['keys'](_0x1c28d3),...Object['keys'](_0x49d101)]))_0x1c28d3[_0x188fe3]!==_0x49d101[_0x188fe3]&&(void 0x0===_0x49d101[_0x188fe3]?_0x58a9d1['push'](_0x188fe3):_0x23fbaa['push'](_0x188fe3+'\x20('+_0x49d101[_0x188fe3]+')'));const _0x14a633=St(_0x3b1c4a,'FORMAT_HTML_CLASS'),_0x51cb4d=new Set(_0x25c5a2['classes']??[]),_0x55b335=new Set(_0x35c7f1['classes']??[]),_0x2ae830=[..._0x55b335]['some'](_0x5731d3=>!_0x51cb4d['has'](_0x5731d3)),_0x29eb26=[..._0x51cb4d]['some'](_0x48bffe=>!_0x55b335['has'](_0x48bffe));_0x2ae830&&_0x23fbaa['push'](_0x14a633),_0x29eb26&&_0x58a9d1['push'](_0x14a633);const _0x2aeeed=St(_0x3b1c4a,'FORMAT_HTML_ATTRIBUTE'),_0x5e4b23=_0x25c5a2['attributes']??{},_0x5e1792=_0x35c7f1['attributes']??{};let _0x3ee7d1=!0x1,_0x49a139=!0x1;for(const _0x2df6da of new Set([...Object['keys'](_0x5e4b23),...Object['keys'](_0x5e1792)]))_0x5e4b23[_0x2df6da]!==_0x5e1792[_0x2df6da]&&(void 0x0===_0x5e1792[_0x2df6da]?_0x49a139=!0x0:_0x3ee7d1=!0x0);return _0x3ee7d1&&_0x23fbaa['push'](_0x2aeeed),_0x49a139&&_0x58a9d1['push'](_0x2aeeed),{'setItems':_0x23fbaa,'removeItems':_0x58a9d1};}(_0x480d30['oldValue']??{},_0x480d30['newValue']??{},_0xd25431);if(!_0x22e58b['length']&&!_0x549886['length'])return;const _0x6a8dae=[];return _0x22e58b['length']&&_0x6a8dae['push'](St(_0xd25431,'*Set\x20format:*\x20%0',_0x22e58b['join'](',\x20'))),_0x549886['length']&&_0x6a8dae['push'](St(_0xd25431,'*Remove\x20format:*\x20%0',_0x549886['join'](',\x20'))),{'type':'format','content':_0x6a8dae['join']('\x0a')};});}},oe=class extends _0x3f3b34{['_headingOptions'];['afterInit'](){const _0x241da3=this['editor'];if(!_0x241da3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x241da3['config']['get']('heading.options');const _0x594ee0=_0x241da3['locale'],_0x3b6cec=_0x241da3['plugins']['get']('TrackChangesEditing');_0x3b6cec['enableDefaultAttributesIntegration']('heading');for(const _0x89d6 of this['_headingOptions'])'paragraph'!=_0x89d6['model']&&_0x3b6cec['descriptionFactory']['registerElementLabel'](_0x89d6['model'],_0x56188b=>{const _0x78931a=this['_getHeadingLevel'](_0x89d6['model']);return null!==_0x78931a?_0xf1ac05(_0x56188b,_0x78931a):_0x40c11d(_0x56188b,_0x89d6['title']);});function _0xf1ac05(_0x19d347,_0x2e1c96){return St(_0x594ee0,'ELEMENT_HEADING',[_0x19d347,_0x2e1c96]);}function _0x40c11d(_0x2ec776,_0x44b998){return St(_0x594ee0,'ELEMENT_HEADING_CUSTOM',[_0x2ec776,_0x44b998]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a9618=this['editor'],_0x244c7d=_0x2a9618['locale'];function _0x1a23e1(_0x7c1cb9,_0x196c06){return St(_0x244c7d,'ELEMENT_HEADING_CUSTOM',[_0x7c1cb9,_0x196c06]);}_0x2a9618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d98a=>{if('formatBlock'!=_0x34d98a['type'])return;const {data:_0x4e57a5}=_0x34d98a;if(_0x4e57a5&&'heading'==_0x4e57a5['commandName']){const _0x13f99e=_0x4e57a5['commandParams'][0x0]['value'],_0x21a55a=this['_getHeadingLevel'](_0x13f99e);if(null!==_0x21a55a)return{'type':'format','content':St(_0x244c7d,'*Change\x20to:*\x20%0',(_0x5e6761=0x1,_0x436846=_0x21a55a,St(_0x244c7d,'ELEMENT_HEADING',[_0x5e6761,_0x436846])))};const _0x3be049=this['_headingOptions']['find'](_0x5667c9=>_0x5667c9['model']===_0x13f99e)['title'];return{'type':'format','content':St(_0x244c7d,'*Change\x20to:*\x20%0',_0x1a23e1(0x1,_0x3be049))};}var _0x5e6761,_0x436846;});}['_getHeadingLevel'](_0x4235b6){const _0x14a569=_0x4235b6['match'](/^heading(\d+)/);if(_0x14a569)return _0x14a569[0x1];const _0x2e4e77=this['_headingOptions']?.['find'](_0x53e6eb=>_0x53e6eb['model']==_0x4235b6);if(_0x2e4e77&&_0x2e4e77['view']){const _0x264b7f=_0x2e4e77['view'],_0x48b70f=(_0x264b7f['name']??_0x264b7f)['match'](/^h(\d+)/);if(_0x48b70f)return _0x48b70f[0x1];}return null;}},ae=class extends _0x3f3b34{['afterInit'](){const _0x4d4f6a=this['editor'];if(!_0x4d4f6a['plugins']['has']('HighlightEditing'))return;const _0x32645d=_0x4d4f6a['plugins']['get']('TrackChangesEditing'),_0x5e5392=_0x4d4f6a['locale'];_0x32645d['enableDefaultAttributesIntegration']('highlight'),_0x32645d['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x5e5392,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406895=this['editor'],_0x4f8c3c=_0x406895['locale'];_0x406895['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c8ba7=>{if('formatInline'!=_0x4c8ba7['type'])return;const {data:_0x1cce28}=_0x4c8ba7;if(_0x1cce28&&'highlight'==_0x1cce28['commandName']){const _0x37bfdf=_0x4f8c3c['t'],_0x56ab5f=_0x1cce28['commandParams'][0x0]['value'];if(_0x56ab5f){const _0x5048ae=_0x406895['config']['get']('highlight.options')['find'](_0x3c8253=>_0x3c8253['model']==_0x56ab5f);return{'type':'format','content':St(_0x4f8c3c,'*Set\x20highlight:*\x20%0',_0x37bfdf(_0x5048ae['title'])['toLowerCase']()),'color':{'value':_0x5048ae['color'],'title':_0x5048ae['title']}};}return{'type':'format','content':St(_0x4f8c3c,'*Remove\x20highlight*',St(_0x4f8c3c,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x3f3b34{['afterInit'](){const _0x4d703c=this['editor'];if(!_0x4d703c['plugins']['has']('HorizontalLineEditing'))return;_0x4d703c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2a7110=_0x4d703c['plugins']['get']('TrackChangesEditing'),_0x2e025d=_0x4d703c['locale'];_0x2a7110['descriptionFactory']['registerElementLabel']('horizontalLine',_0x57dc8a=>St(_0x2e025d,'ELEMENT_HORIZONTAL_LINE',_0x57dc8a));}},le=class extends _0x3f3b34{['afterInit'](){const _0x42939e=this['editor'];if(!_0x42939e['plugins']['has']('HtmlEmbed'))return;const _0x253e21=_0x42939e['plugins']['get']('TrackChangesEditing'),_0x11b11a=_0x42939e['locale'];_0x253e21['descriptionFactory']['registerElementLabel']('rawHtml',_0x87a4ec=>St(_0x11b11a,'ELEMENT_HTML_EMBED',_0x87a4ec)),_0x253e21['enableDefaultAttributesIntegration']('htmlEmbed'),_0x253e21['descriptionFactory']['registerDescriptionCallback'](_0x216185=>{if('attribute'!=_0x216185['type'])return;const {data:_0x4f24c7}=_0x216185;return _0x4f24c7&&'value'==_0x4f24c7['key']&&_0x216185['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x11b11a,'*Change\x20%0\x20content*',St(_0x11b11a,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a24e8=this['editor'],_0x15bf21=_0x4a24e8['locale'];_0x4a24e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504da3=>{if('formatBlock'!=_0x504da3['type'])return;const {data:_0x403b22}=_0x504da3;return _0x403b22&&'htmlEmbed'==_0x403b22['commandName']?{'type':'format','content':St(_0x15bf21,'*Change\x20%0\x20content*',St(_0x15bf21,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x3f3b34{['afterInit'](){const _0x4ebcb1=this['editor'];if(!_0x4ebcb1['plugins']['has']('ImageEditing'))return;const _0x20abb6=_0x4ebcb1['plugins']['get']('TrackChangesEditing'),_0x368c9c=_0x4ebcb1['plugins']['get']('ImageUtils'),_0x1f6627=_0x4ebcb1['locale'];_0x20abb6['enableCommand']('insertImage'),_0x20abb6['descriptionFactory']['registerElementLabel']('imageBlock',_0x1d6375=>St(_0x1f6627,'ELEMENT_IMAGE',_0x1d6375)),_0x20abb6['descriptionFactory']['registerElementLabel']('imageInline',_0x230876=>St(_0x1f6627,'ELEMENT_INLINE_IMAGE',_0x230876)),_0x20abb6['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x1f6627,'ELEMENT_CAPTION')),_0x4ebcb1['plugins']['has']('ImageUploadEditing')&&_0x20abb6['enableCommand']('uploadImage'),_0x4ebcb1['plugins']['has']('ImageBlockEditing')&&_0x4ebcb1['plugins']['has']('ImageInlineEditing')&&(_0x20abb6['enableCommand']('imageTypeInline',(_0x1e898e,_0x9abc8a)=>{const _0x393900=_0x368c9c['getClosestSelectedImageElement'](_0x4ebcb1['model']['document']['selection']);_0x4ebcb1['model']['change'](()=>{_0x20abb6['markBlockFormat'](_0x393900,{'commandName':'imageTypeInline','commandParams':[_0x9abc8a]},[],'convertBlockImageToInline');});}),_0x20abb6['enableCommand']('imageTypeBlock',(_0x5893ea,_0x17cbe5)=>{_0x4ebcb1['model']['change'](_0xc50fb7=>{let _0x5b3a7b=_0x368c9c['getClosestSelectedImageElement'](_0x4ebcb1['model']['document']['selection']),_0x5c12c6=_0xc50fb7['createRangeOn'](_0x5b3a7b);const _0x1e448e=st['fromPosition'](_0x5c12c6['start'],'toPrevious'),_0x200bfa=st['fromPosition'](_0x5c12c6['end'],'toNext');_0x20abb6['forceDefaultExecution'](()=>_0x5893ea(_0x17cbe5)),_0x5b3a7b=_0x368c9c['getClosestSelectedImageElement'](_0x4ebcb1['model']['document']['selection']),_0x5c12c6=_0xc50fb7['createRangeOn'](_0x5b3a7b);const _0x357fc4=_0xc50fb7['createRange'](_0x1e448e,_0x200bfa);_0x1e448e['detach'](),_0x200bfa['detach'](),_0x20abb6['markBlockFormat'](_0x5b3a7b,{'commandName':'imageTypeInline','commandParams':[_0x17cbe5]},[],'convertInlineImageToBlock'),_0x357fc4['start']['isBefore'](_0x5c12c6['start'])&&_0x20abb6['markInsertion'](_0xc50fb7['createRange'](_0x357fc4['start'],_0x5c12c6['start']),'convertInlineImageToBlock'),_0x5c12c6['end']['isBefore'](_0x357fc4['end'])&&_0x20abb6['markInsertion'](_0xc50fb7['createRange'](_0x5c12c6['end'],_0x357fc4['end']),'convertInlineImageToBlock');});}),_0x20abb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20abb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20abb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20abb6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20abb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20abb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4c9354])=>{const _0x581e87=_0x20abb6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x692a1c=_0x4c9354['start'],_0x15d2cc=_0x4c9354['end'];const _0x57e2d3=_0x4ebcb1['model']['schema']['getNearestSelectionRange'](_0x692a1c,'backward'),_0x1785d3=_0x4ebcb1['model']['schema']['getNearestSelectionRange'](_0x15d2cc,'forward');_0x57e2d3['isCollapsed']&&(_0x692a1c=_0x57e2d3['start']),_0x1785d3['isCollapsed']&&(_0x15d2cc=_0x1785d3['end']),_0x581e87([_0x4ebcb1['model']['createRange'](_0x692a1c,_0x15d2cc)]);}),_0x20abb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x51e74d),_0x20abb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x51e74d)),_0x4ebcb1['plugins']['has']('ImageCaptionEditing')&&(_0x20abb6['enableCommand']('toggleImageCaption',(_0x1a6d1f,_0x209377)=>{const _0x4b0e80=_0x4ebcb1['plugins']['get']('ImageCaptionUtils');let _0x433c52=_0x368c9c['getClosestSelectedImageElement'](_0x4ebcb1['model']['document']['selection']),_0x53a29c=_0x4b0e80['getCaptionFromImageModelElement'](_0x433c52);_0x4ebcb1['model']['change'](()=>{if(_0x53a29c)return void _0x20abb6['markDeletion'](_0x4ebcb1['model']['createRangeOn'](_0x53a29c));const _0x11079d=_0x368c9c['isBlockImage'](_0x433c52);_0x1a6d1f(_0x209377),_0x433c52=_0x368c9c['getClosestSelectedImageElement'](_0x4ebcb1['model']['document']['selection']),_0x53a29c=_0x4b0e80['getCaptionFromImageModelElement'](_0x433c52),_0x20abb6['markInsertion'](_0x4ebcb1['model']['createRangeOn'](_0x53a29c),_0x11079d?null:'imageCaption');});}),_0x20abb6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x51e74d));const _0x39340b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40751e(_0x368275,_0x1d3d03){const _0x288af3=_0x39340b['findIndex'](({type:_0x135524,subType:_0x34b372})=>_0x368275['type']==_0x135524&&_0x368275['subType']==_0x34b372),_0x16631d=_0x39340b['findIndex'](({type:_0x3b442a,subType:_0x3f37e7})=>_0x1d3d03['type']==_0x3b442a&&_0x1d3d03['subType']==_0x3f37e7);if(_0x288af3<0x0||_0x16631d<0x0)return!0x1;const _0x21791=_0x368275['getFirstRange'](),_0x92b90b=_0x1d3d03['getFirstRange']();if((0x0==_0x288af3||0x1==_0x288af3)&&0x2==_0x16631d&&_0x21791['isIntersecting'](_0x92b90b))return!0x0;if(0x2==_0x288af3&&0x3==_0x16631d){const _0x3cd54d=_0x20abb6['_findSuggestions'](_0x21791,'insertion')['filter'](({suggestion:_0x2d59ee,meta:_0x16c30f})=>_0x16c30f['isOwn']&&'convertInlineImageToBlock'==_0x2d59ee['subType']);if(_0x3cd54d['length']>0x1&&_0x92b90b['end']['isEqual'](_0x21791['start']))return!0x0;if(0x1==_0x3cd54d['length']&&(_0x21791['start']['isEqual'](_0x92b90b['end'])||_0x21791['end']['isEqual'](_0x92b90b['start'])))return!0x0;}if(0x3==_0x288af3&&0x3==_0x16631d&&_0x21791['start']['isBefore'](_0x92b90b['start'])){const _0x3bcf6e=_0x21791['end']['nodeAfter'],_0x34bcf2=_0x92b90b['start']['nodeBefore'];return _0x368c9c['isBlockImage'](_0x3bcf6e)&&_0x3bcf6e===_0x34bcf2;}return!0x1;}function _0x51e74d(_0x22e7f2,_0x5ac935){return _0x40751e(_0x22e7f2,_0x5ac935)?[_0x22e7f2,_0x5ac935]:_0x40751e(_0x5ac935,_0x22e7f2)?[_0x5ac935,_0x22e7f2]:null;}_0x4ebcb1['plugins']['has']('ImageResize')&&(_0x20abb6['enableDefaultAttributesIntegration']('resizeImage'),_0x20abb6['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x1f6627,'FORMAT_IMAGE_SIZE'))),_0x4ebcb1['plugins']['has']('ImageTextAlternativeEditing')&&_0x20abb6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ebcb1['plugins']['has']('PictureEditing')&&_0x20abb6['descriptionFactory']['registerDescriptionCallback'](_0x198d3f=>{if('attribute'!=_0x198d3f['type'])return;const {data:_0x55af77}=_0x198d3f;return _0x55af77&&'sources'==_0x55af77['key']?{'type':'format','content':''}:void 0x0;}),_0x4ebcb1['plugins']['has']('ImageSizeAttributes')&&_0x20abb6['descriptionFactory']['registerDescriptionCallback'](_0xe084db=>{if('attribute'!=_0xe084db['type'])return;const {data:_0x188111}=_0xe084db;return!_0x188111||'width'!=_0x188111['key']&&'height'!=_0x188111['key']?void 0x0:{'type':'format','content':''};}),_0x20abb6['descriptionFactory']['registerDescriptionCallback'](_0xdf4e58=>{if(_0x39340b['find'](({type:_0x2c0a73,subType:_0x5e0d41})=>_0xdf4e58['type']==_0x2c0a73&&_0xdf4e58['subType']==_0x5e0d41))return _0xdf4e58['previous']?{}:void 0x0;}),_0x20abb6['descriptionFactory']['registerDescriptionCallback'](_0x4ab2f0=>{if('insertion'==_0x4ab2f0['type']||'deletion'==_0x4ab2f0['type']){const _0x213320=_0x4ab2f0['getContainedElement']();if(_0x213320&&_0x213320['is']('element','caption'))return{'type':'insertion'==_0x4ab2f0['type']?'addObject':'removeObject','element':_0x213320,'quantity':0x1};}}),_0x20abb6['descriptionFactory']['registerDescriptionCallback'](_0x50827a=>'formatBlock'==_0x50827a['type']&&'convertInlineImageToBlock'==_0x50827a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x50827a['type']&&'convertBlockImageToInline'==_0x50827a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20abb6['descriptionFactory']['registerDescriptionCallback'](_0x2735eb=>{if('attribute'!=_0x2735eb['type'])return;const {data:_0x25b19c}=_0x2735eb;if(!_0x25b19c||'alt'!=_0x25b19c['key'])return;const _0x3ad35e=_0x25b19c['newValue'];return _0x3ad35e?{'type':'format','content':St(_0x1f6627,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ad35e+'\x22')}:{'type':'format','content':St(_0x1f6627,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ebc82=this['editor'],_0x2a3d3d=_0x3ebc82['locale'];_0x3ebc82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x65c2f9=>{if('formatBlock'!=_0x65c2f9['type']&&'formatInline'!=_0x65c2f9['type'])return;const {data:_0x1f7735}=_0x65c2f9;if(_0x1f7735){if('imageTextAlternative'==_0x1f7735['commandName']){const _0x347b58=_0x1f7735['commandParams'][0x0]['newValue'];return _0x347b58?{'type':'format','content':St(_0x2a3d3d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x347b58+'\x22')}:{'type':'format','content':St(_0x2a3d3d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1f7735['commandName']){const _0xaa8956=_0x1f7735['commandParams'][0x0]['width'];return _0xaa8956?{'type':'format','content':St(_0x2a3d3d,'*Set\x20image\x20width:*\x20%0',_0xaa8956)}:{'type':'format','content':St(_0x2a3d3d,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x3f3b34{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5baae4=this['editor']['locale'],_0x3b05c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b05c8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b05c8['descriptionFactory']['registerDescriptionCallback'](_0x15945b=>{if('attribute'!=_0x15945b['type'])return;const {data:_0x1e9a1f}=_0x15945b;return _0x1e9a1f&&'src'==_0x1e9a1f['key']?_0x1e9a1f['newValue']&&_0x1e9a1f['oldValue']?{'type':'format','content':St(_0x5baae4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4c730c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c730c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4c730c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c730c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4c730c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34ff71=this['editor'],_0x368462=_0x34ff71['locale'];_0x34ff71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x491f78=>{if('formatBlock'!=_0x491f78['type']&&'formatInline'!=_0x491f78['type'])return;const {data:_0x5541d9}=_0x491f78;return _0x5541d9&&'replaceImageSource'==_0x5541d9['commandName']?{'type':'format','content':St(_0x368462,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x3f3b34{['afterInit'](){const _0x3a55ee=this['editor'];if(!_0x3a55ee['plugins']['has']('ImageStyleEditing'))return;const _0x75a92d=_0x3a55ee['plugins']['get']('TrackChangesEditing'),_0x35cc10=_0x3a55ee['plugins']['get']('ImageUtils'),_0x2eb941={};_0x75a92d['enableCommand']('imageStyle',(_0x4715bc,_0x469077)=>{const _0x1671ff=_0x3a55ee['plugins']['get']('Users')['me'],_0x4ddbd9=_0x3a55ee['commands']['get']('imageStyle');let _0x6019e2=_0x35cc10['getClosestSelectedImageElement'](_0x3a55ee['model']['document']['selection']),_0x48c2b0=_0x3a55ee['model']['createRangeOn'](_0x6019e2),_0x43de33=_0x4ddbd9['value'];if(_0x43de33==_0x469077['value'])return;if(_0x469077['value']&&_0x35cc10['isInlineImage'](_0x6019e2)&&!_0x4ddbd9['isStyleEnabled'](_0x469077['value']))return;const _0x199600={'commandName':'imageStyle','commandParams':[_0x469077],'formatGroupId':_0x589c6c()};_0x3a55ee['model']['change'](()=>{if(_0x75a92d['getSuggestions']()['filter'](_0x1455b2=>_0x1455b2['isInContent']&&_0x1671ff==_0x1455b2['author']&&('formatBlock'==_0x1455b2['type']||'formatInline'==_0x1455b2['type'])&&('imageStylePreApply'==_0x1455b2['subType']||'imageStylePostApply'==_0x1455b2['subType'])&&_0x1455b2['getFirstRange']()['isEqual'](_0x48c2b0))['forEach'](_0xfd6c2=>_0x75a92d['discardSuggestion'](_0xfd6c2['head'])),_0x6019e2=_0x35cc10['getClosestSelectedImageElement'](_0x3a55ee['model']['document']['selection']),_0x48c2b0=_0x3a55ee['model']['createRangeOn'](_0x6019e2),_0x4ddbd9['refresh'](),_0x3a55ee['commands']['get']('imageTypeInline')['refresh'](),_0x3a55ee['commands']['get']('imageTypeBlock')['refresh'](),_0x43de33=_0x4ddbd9['value'],_0x43de33!=_0x469077['value'])return _0x35cc10['isInlineImage'](_0x6019e2)&&_0x4ddbd9['shouldConvertImageType'](_0x469077['value'],_0x6019e2)?(_0x4715bc({..._0x469077,'setImageSizes':!0x1}),_0x6019e2=_0x35cc10['getClosestSelectedImageElement'](_0x3a55ee['model']['document']['selection']),void _0x75a92d['markBlockFormat'](_0x6019e2,{..._0x199600,'commandReversedParams':[{'value':_0x43de33||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x35cc10['isBlockImage'](_0x6019e2)?_0x75a92d['markBlockFormat'](_0x6019e2,_0x199600,[],'imageStylePostApply'):_0x75a92d['markInlineFormat'](_0x48c2b0,_0x199600,'imageStylePostApply'));});});for(const _0x4a2214 of _0x3a55ee['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2eb941[_0x4a2214['name']]=_0x4a2214['title']['toLowerCase']();_0x75a92d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x75a92d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x75a92d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x75a92d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57eea7])=>{_0x35cc10['setImageNaturalSizeAttributes'](_0x57eea7['getContainedElement']());}),_0x75a92d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x295808,_0x1f73c0)=>{_0x75a92d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x295808,{'commandName':_0x1f73c0['commandName'],'commandParams':_0x1f73c0['commandReversedParams']});}),_0x75a92d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30187c,_0x2ff15c){return _0x3bba83(_0x30187c,_0x2ff15c)?[_0x30187c,_0x2ff15c]:_0x3bba83(_0x2ff15c,_0x30187c)?[_0x2ff15c,_0x30187c]:null;});const _0x346607=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3bba83(_0x1b0a1f,_0x33ed00){const _0xf14cdf=_0x346607['findIndex'](({type:_0x360f3c,subType:_0x28608e})=>_0x1b0a1f['type']==_0x360f3c&&_0x1b0a1f['subType']==_0x28608e),_0x544898=_0x346607['findIndex'](({type:_0x4f3455,subType:_0x353a74})=>_0x33ed00['type']==_0x4f3455&&_0x33ed00['subType']==_0x353a74);if(_0xf14cdf<0x0||_0x544898<0x0)return!0x1;const _0x34cdf6=_0x1b0a1f['getFirstRange'](),_0x53c652=_0x33ed00['getFirstRange']();if((0x0==_0xf14cdf||0x1==_0xf14cdf)&&0x2==_0x544898&&_0x34cdf6['isIntersecting'](_0x53c652))return!0x0;if(0x2==_0xf14cdf&&0x3==_0x544898){const _0x24c0d3=_0x75a92d['_findSuggestions'](_0x34cdf6,'insertion')['filter'](({suggestion:_0x1da372,meta:_0x5a625e})=>_0x5a625e['isOwn']&&'convertInlineImageToBlock'==_0x1da372['subType']);if(_0x24c0d3['length']>0x1&&_0x53c652['end']['isEqual'](_0x34cdf6['start']))return!0x0;if(0x1==_0x24c0d3['length']&&(_0x34cdf6['start']['isEqual'](_0x53c652['end'])||_0x34cdf6['end']['isEqual'](_0x53c652['start'])))return!0x0;}if(0x3==_0xf14cdf&&0x3==_0x544898&&_0x34cdf6['start']['isBefore'](_0x53c652['start'])){const _0x170105=_0x34cdf6['end']['nodeAfter'],_0x286188=_0x53c652['start']['nodeBefore'];return _0x35cc10['isBlockImage'](_0x170105)&&_0x170105===_0x286188;}return!0x1;}_0x3a55ee['model']['document']['registerPostFixer'](()=>{let _0x2c8813=!0x1;const _0x4dcab3=Array['from'](_0x3a55ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4981f6,data:_0x38d6bd}of _0x4dcab3){const {group:_0xc3faf5,type:_0x3405e6,subType:_0x3f6921,id:_0x216e43}=tt(_0x4981f6);if('suggestion'==_0xc3faf5&&_0x75a92d['hasSuggestion'](_0x216e43)){if('formatBlock'==_0x3405e6&&('imageStylePreApply'==_0x3f6921||'imageStylePostApply'==_0x3f6921)){const _0x45f09f=_0x75a92d['getSuggestion'](_0x216e43);if(_0x38d6bd['newRange']){const _0x445868=_0x45f09f['getFirstRange']()['getContainedElement']();if(_0x35cc10['isBlockImage'](_0x445868))continue;_0x75a92d['discardSuggestion'](_0x45f09f),_0x2c8813=!0x0;}}if('insertion'==_0x3405e6&&'imageCaption'==_0x3f6921&&!_0x38d6bd['newRange']){const _0x34de5f=_0x75a92d['getSuggestion'](_0x216e43);_0x34de5f['next']&&_0x34de5f['next']['isInContent']&&(_0x75a92d['discardSuggestion'](_0x34de5f['next']),_0x2c8813=!0x0);}}}return _0x2c8813;}),this['_registerLegacyDescription'](_0x2eb941);}['_registerLegacyDescription'](_0x519032){const _0x23e6d7=this['editor'],_0xc7c9f8=_0x23e6d7['locale'];_0x23e6d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f04bb=>{if('formatBlock'!=_0x5f04bb['type']&&'formatInline'!=_0x5f04bb['type'])return;const {data:_0x116554}=_0x5f04bb;if(!_0x116554||'imageStyle'!=_0x116554['commandName'])return;const _0x33b14d=_0x116554['commandParams'][0x0]['value'];return _0x10c525('side'===_0x33b14d?St(_0xc7c9f8,'FORMAT_SIDE_IMAGE'):_0x519032[_0x33b14d]||_0x33b14d);function _0x10c525(_0x2b561d){return{'type':'format','content':St(_0xc7c9f8,'*Format:*\x20%0',_0x2b561d)};}});}},ge=class extends _0x3f3b34{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2e6924){super(_0x2e6924),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f16cb=this['editor'],_0x2934b4=_0x1f16cb['commands']['get']('importWord'),_0x51ab1f=_0x1f16cb['commands']['get']('trackChanges');_0x2934b4&&(_0x2934b4['on']('execute',(_0x2f6475,[,_0x119c7c])=>{this['_trackChangesValueDuringImport']=_0x51ab1f['value'],_0x119c7c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2934b4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2934b4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x51ab1f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f16cb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1c41aa,_0x376908){const {suggestions:_0x238060}=_0x376908,_0x2cc4c6=this['editor']['commands']['get']('trackChanges'),_0x270df2=_0x2cc4c6['value'];this['_trackChangesValueDuringImport']!==_0x270df2&&(_0x2cc4c6['execute'](),this['_trackChangesExecuted']=!0x0),_0x238060&&_0x238060['forEach'](({id:_0x367014,type:_0x35f131,author:_0x1fea30,created_at:_0x5e445a})=>{const _0x527d63={'id':_0x367014,'type':_0x35f131,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1fea30,'createdAt':_0x5e445a?new Date(_0x5e445a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x527d63);});}},fe=class extends _0x3f3b34{['afterInit'](){const _0x2db5ba=this['editor'],_0x262e44=_0x2db5ba['plugins']['get']('TrackChangesEditing');if(_0x2db5ba['plugins']['has']('IndentEditing')&&(_0x262e44['enableCommand']('indent'),_0x262e44['enableCommand']('outdent')),_0x2db5ba['plugins']['has']('IndentBlock')){for(const _0x5e3f4f of['indentBlock','outdentBlock'])_0x262e44['enableDefaultAttributesIntegration'](_0x5e3f4f);if(_0x2db5ba['plugins']['has']('ListEditing')){for(const _0x453789 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x262e44['enableDefaultAttributesIntegration'](_0x453789);}}const _0x219b41=_0x2db5ba['locale'];_0x262e44['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x219b41,'FORMAT_INDENT')),_0x262e44['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x219b41,'FORMAT_INDENT')),_0x262e44['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x219b41,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9a3ee=this['editor'],_0x46c001=_0x9a3ee['locale'],_0x2ec417=_0x9a3ee['plugins']['get']('TrackChangesEditing');_0x2ec417['descriptionFactory']['registerDescriptionCallback'](_0x3b36c9=>{if('formatBlock'!=_0x3b36c9['type'])return;const {data:_0x1f295c}=_0x3b36c9;if(!_0x1f295c)return;if('indentBlock'!=_0x1f295c['commandName']&&'outdentBlock'!=_0x1f295c['commandName'])return;const _0x1330b6=_0x3b36c9['getItems']()[0x0],_0x397dc8=_0x2ec417['descriptionFactory']['getItemLabel'](_0x1330b6);return'indentBlock'==_0x1f295c['commandName']?{'type':'format','content':St(_0x46c001,'*Indent:*\x20%0',_0x397dc8)}:'outdentBlock'==_0x1f295c['commandName']?{'type':'format','content':St(_0x46c001,'*Outdent:*\x20%0',_0x397dc8)}:void 0x0;});}},me=class extends _0x3f3b34{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x3f3b34{['afterInit'](){const _0x4d4711=this['editor'];if(!_0x4d4711['plugins']['has']('LinkEditing'))return;const _0x462750=_0x4d4711['plugins']['get']('TrackChangesEditing'),_0x4cfc49=_0x4d4711['commands']['get']('link');_0x462750['enableDefaultAttributesIntegration']('link'),_0x462750['enableDefaultAttributesIntegration']('unlink');for(const _0x3ba3a8 of _0x4cfc49['manualDecorators'])_0x462750['descriptionFactory']['registerAttributeLabel'](_0x3ba3a8['id'],'link\x20('+_0x3ba3a8['label']['toLowerCase']()+')');_0x462750['descriptionFactory']['registerDescriptionCallback'](_0x5bed9d=>{if('attribute'!=_0x5bed9d['type'])return;const {data:_0x42c9b0}=_0x5bed9d;if(!_0x42c9b0||'linkHref'!=_0x42c9b0['key'])return;const _0x18cb0b=_0x42c9b0['newValue'],_0xd46643=_0x4d4711['locale'];return{'type':'format','content':null==_0x18cb0b?St(_0xd46643,'*Remove\x20link*'):St(_0xd46643,'*Set\x20link:*\x20%0','\x22'+_0x18cb0b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f4114=this['editor'],_0x595829=_0x3f4114['locale'];_0x3f4114['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cdf49=>{if('formatInline'!=_0x5cdf49['type'])return;const {data:_0xfcf191}=_0x5cdf49;if(_0xfcf191){if('link'==_0xfcf191['commandName']){const _0x47fcc7=_0xfcf191['commandParams'][0x0];return{'type':'format','content':St(_0x595829,'*Set\x20link:*\x20%0','\x22'+_0x47fcc7+'\x22')};}return'unlink'==_0xfcf191['commandName']?{'type':'format','content':St(_0x595829,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x3f3b34{['afterInit'](){const _0xbe7a13=this['editor'],_0x505981=_0xbe7a13['locale'];if(!_0xbe7a13['plugins']['has']('LegacyListEditing'))return;const _0x40b5cf=_0xbe7a13['plugins']['get']('TrackChangesEditing'),_0x59a873=_0xbe7a13['plugins']['has']('LegacyTodoListEditing');function _0x3e7c26(_0x5ddd66){return()=>{const _0x5b6fe4=_0xbe7a13['model']['document']['selection'],_0x4a2fd8=_0xbe7a13['commands']['get'](_0x5ddd66);if(_0x4a2fd8['value'])return void _0xbe7a13['execute']('paragraph',{});const _0x16a78b=_0x5ddd66['slice'](0x0,-0x4),_0x3fd181=function(_0x1ca8e3,_0x241fd4,_0x348415){let _0x1f7d85=Array['from'](_0x1ca8e3)['filter'](_0x2ec4ba=>function(_0x4d07df,_0x13009a){return _0x13009a['checkChild'](_0x4d07df['parent'],'listItem')&&!_0x13009a['isObject'](_0x4d07df);}(_0x2ec4ba,_0x348415));_0x1f7d85=_0x1f7d85['filter'](_0x33db15=>!_0x33db15['is']('element','listItem')||_0x33db15['getAttribute']('listType')!=_0x241fd4);const _0x327fa4=new Set();for(const _0x23b948 of _0x1f7d85)_0x23b948['is']('element','listItem')?_0x327fa4['add'](_e(_0x23b948)):_0x327fa4['add'](_0x23b948);return Array['from'](_0x327fa4);}(_0x5b6fe4['getSelectedBlocks'](),_0x16a78b,_0xbe7a13['model']['schema']);_0xbe7a13['model']['change'](()=>{for(const _0x25ef5b of _0x3fd181)_0x40b5cf['markBlockFormat'](_0x25ef5b,{'commandName':_0x5ddd66,'commandParams':[{'forceValue':!_0x4a2fd8['value']}],'formatGroupId':'blockName'},pe(_0x25ef5b));});};}function _0x56efcb(_0x2df463){return()=>{const _0x4c4c2b=function(_0x19e723){let _0xc46184=Array['from'](_0x19e723);const _0x2f10d7=_0xc46184['findIndex'](_0x7e784c=>'listItem'!=_0x7e784c['name']);return _0x2f10d7>-0x1&&(_0xc46184=_0xc46184['slice'](0x0,_0x2f10d7)),_0xc46184;}(_0xbe7a13['model']['document']['selection']['getSelectedBlocks']()),_0x1d6645=_0xbe7a13['model']['createRange'](_0xbe7a13['model']['createPositionAt'](_0x4c4c2b[0x0],'before'),_0xbe7a13['model']['createPositionAt'](_0x4c4c2b[_0x4c4c2b['length']-0x1],'end'));_0xbe7a13['model']['change'](()=>{_0x40b5cf['markBlockFormat'](_0x1d6645,{'commandName':_0x2df463,'commandParams':[],'formatGroupId':'listIndent'},function(_0x31199d){const _0x471bc5=new Set();for(const _0x5167dc of _0x31199d){let _0x270b45=_0x5167dc['nextSibling'];for(;_0x270b45&&_0x270b45['getAttribute']('listIndent')>_0x5167dc['getAttribute']('listIndent');)_0x471bc5['add'](_0x270b45),_0x270b45=_0x270b45['nextSibling'];}return Array['from'](_0x471bc5);}(_0x4c4c2b));});};}_0x40b5cf['enableCommand']('numberedList',_0x3e7c26('numberedList')),_0x40b5cf['enableCommand']('bulletedList',_0x3e7c26('bulletedList')),_0x59a873&&_0x40b5cf['enableCommand']('todoList',_0x3e7c26('todoList')),_0x40b5cf['enableCommand']('indentList',_0x56efcb('indentList')),_0x40b5cf['enableCommand']('outdentList',_0x56efcb('outdentList')),_0x59a873&&_0x40b5cf['enableCommand']('checkTodoList',()=>{const _0x1aefda=_0xbe7a13['commands']['get']('checkTodoList'),_0x47e44b=Array['from'](_0x1aefda['_selectedElements']);_0x47e44b['filter'](_0x1e4e78=>_0x1e4e78['getAttribute']('todoListChecked')!=_0x1aefda['value']),_0xbe7a13['model']['change'](()=>{for(const _0x513c34 of _0x47e44b)_0x40b5cf['markBlockFormat'](_0x513c34,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1aefda['value']}]});});}),_0x40b5cf['descriptionFactory']['registerElementLabel']('listItem',_0x553c00=>St(_0x505981,'ELEMENT_LIST_ITEM',_0x553c00)),_0x40b5cf['descriptionFactory']['registerDescriptionCallback'](_0x5c0449=>{if('formatBlock'!=_0x5c0449['type']&&'formatInline'!=_0x5c0449['type'])return;const {data:_0x1938ca}=_0x5c0449;if(_0x1938ca){if('numberedList'==_0x1938ca['commandName']||'bulletedList'==_0x1938ca['commandName']||'todoList'==_0x1938ca['commandName'])switch(_0x1938ca['commandName']['replace']('List','')){case'bulleted':return _0x196454(St(_0x505981,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x196454(St(_0x505981,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x196454(St(_0x505981,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1938ca['commandName'])return{'type':'format','content':St(_0x505981,'*Indent:*\x20%0',St(_0x505981,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1938ca['commandName'])return{'type':'format','content':St(_0x505981,'*Outdent:*\x20%0',St(_0x505981,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1938ca['commandName'])return _0x1938ca['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x505981,'*Check\x20item*')}:{'type':'format','content':St(_0x505981,'*Uncheck\x20item*')};}function _0x196454(_0x54410a){return{'type':'format','content':St(_0x505981,'*Change\x20to:*\x20%0',_0x54410a)};}});}};function _e(_0x26b05f){const _0x225060=_0x26b05f['getAttribute']('listIndent');if(0x0==_0x225060)return _0x26b05f;let _0xe2ca64=_0x26b05f;for(;_0x26b05f['previousSibling']&&_0x26b05f['previousSibling']['is']('element','listItem');){const _0x55094c=_0x26b05f['previousSibling']['getAttribute']('listIndent');if(_0x55094c==_0x225060)_0xe2ca64=_0x26b05f['previousSibling'];else{if(_0x55094c<_0x225060)break;}_0x26b05f=_0x26b05f['previousSibling'];}return _0xe2ca64;}function pe(_0x26334a){const _0x45333a=[];if(_0x26334a['is']('element','listItem')&&_0x26334a['getAttribute']('listIndent')>0x0){let _0x479d29=_0x26334a['nextSibling'];for(;_0x479d29&&'listItem'==_0x479d29['name']&&_0x479d29['getAttribute']('listIndent')==_0x26334a['getAttribute']('listIndent');)_0x45333a['push'](_0x479d29),_0x479d29=_0x479d29['nextSibling'];}return _0x45333a;}var Le=class extends _0x3f3b34{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32367e=this['editor']['config']['get']('list.properties'),_0x23dfaa=this['editor']['plugins']['get']('TrackChangesEditing');_0x32367e['styles']&&_0x23dfaa['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32367e['reversed']&&_0x23dfaa['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32367e['startIndex']&&_0x23dfaa['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x23dfaa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5673bf,_0xb8a59a={}){const _0x243bcc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5205fa=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x243bcc['markMultiRangeBlockFormat'](_0x5205fa,{'commandName':'listStyle','commandParams':[{'type':_0xb8a59a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2dd84c,_0x2a8fa4={}){const _0x5304a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32ec68=this['_getSuggestionBlocks'](_0x1db92c=>_0x1db92c['is']('element','listItem')&&'numbered'===_0x1db92c['getAttribute']('listType'));if(_0x32ec68['length']<0x1)return;const _0x4badac=_0x32ec68['map'](_0x1a47e5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a47e5,'before'),this['editor']['model']['createPositionAt'](_0x1a47e5,0x0)));this['editor']['model']['change'](()=>{_0x5304a0['markMultiRangeBlockFormat'](_0x4badac,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a8fa4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x366569,_0x4c5066={}){const _0x36246c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x399238=this['_getSuggestionBlocks'](_0x5d9318=>_0x5d9318['is']('element','listItem')&&'numbered'===_0x5d9318['getAttribute']('listType'));if(_0x399238['length']<0x1)return;const _0x199f5c=_0x399238['map'](_0x3537ef=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3537ef,'before'),this['editor']['model']['createPositionAt'](_0x3537ef,0x0)));this['editor']['model']['change'](()=>{_0x36246c['markMultiRangeBlockFormat'](_0x199f5c,{'commandName':'listStart','commandParams':[{'startIndex':_0x4c5066['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x439cb7){if('formatBlock'!=_0x439cb7['type']&&'formatInline'!=_0x439cb7['type'])return;const _0xf67d8c=this['editor']['locale'],{data:_0x2ee6f6}=_0x439cb7;if(!_0x2ee6f6)return;let _0x53899f,_0xa0ad0c;switch(_0x2ee6f6['commandName']){case'listStyle':_0x53899f='*Change\x20to:*\x20%0',_0xa0ad0c={'type':'format','content':St(_0xf67d8c,_0x53899f,St(_0xf67d8c,this['_getTranslationKeyForListStyle'](_0x2ee6f6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53899f=_0x2ee6f6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa0ad0c={'type':'format','content':St(_0xf67d8c,_0x53899f)};break;case'listStart':_0x53899f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa0ad0c={'type':'format','content':St(_0xf67d8c,_0x53899f,_0x2ee6f6['commandParams'][0x0]['startIndex'])};}return _0xa0ad0c;}['_getSuggestionBlocksForListStyle'](){const _0x41f23c=this['editor']['plugins']['get']('LegacyListUtils');let _0x66b838=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x66b838[0x0]?.['is']('element','listItem')&&_0x66b838['unshift'](..._0x41f23c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x66b838[_0x66b838['length']-0x1]?.['is']('element','listItem')&&_0x66b838['push'](..._0x41f23c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x66b838=[...new Set(_0x66b838)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x66b838=_0x66b838['filter'](_0x5370c2=>_0x5370c2['is']('element','listItem'))),_0x66b838;}['_getSuggestionBlocks'](_0x744254){const _0x2adfa3=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d7b16=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x744254)['map'](_0x1a17a7=>{const _0x466dfb=this['editor']['model']['createPositionAt'](_0x1a17a7,0x0);return[..._0x2adfa3['getSiblingNodes'](_0x466dfb,'backward'),..._0x2adfa3['getSiblingNodes'](_0x466dfb,'forward')];})['flat']();return _0x2d7b16=[...new Set(_0x2d7b16)],_0x2d7b16;}['_getTranslationKeyForListStyle'](_0x4a46c7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a46c7)||'default')['toUpperCase']()+'_LIST_'+_0x4a46c7['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x3f3b34{['afterInit'](){const _0x382959=this['editor'];if(!_0x382959['plugins']['has']('MediaEmbedEditing'))return;const _0x436c29=_0x382959['plugins']['get']('TrackChangesEditing'),_0x202d3d=_0x382959['locale'];_0x436c29['enableCommand']('mediaEmbed'),_0x436c29['descriptionFactory']['registerElementLabel']('media',_0x2df540=>St(_0x202d3d,'ELEMENT_MEDIA',_0x2df540)),_0x382959['plugins']['has']('MediaEmbedResizeEditing')&&(_0x436c29['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x436c29['descriptionFactory']['registerDescriptionCallback'](_0x2e1c71=>{if('attribute'!=_0x2e1c71['type'])return;const {data:_0x2a8fba}=_0x2e1c71;if(!_0x2a8fba||'resizedWidth'!=_0x2a8fba['key'])return;const _0x4f2fd4=_0x2e1c71['getContainedElement']();return _0x4f2fd4&&_0x4f2fd4['is']('element','media')?{'type':'format','content':St(_0x202d3d,'*Set\x20format:*\x20%0',St(_0x202d3d,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x3f3b34{['afterInit'](){const _0x4f6f06=this['editor'];if(!_0x4f6f06['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x55eb2e=_0x4f6f06['plugins']['get']('TrackChangesEditing'),_0x10b04c=_0x4f6f06['locale'],_0x4fff9e=_0x4f6f06['plugins']['get']('MediaEmbedStyleEditing'),_0x28a0c5={};for(const _0x4dcad8 of _0x4fff9e['normalizedStyles'])_0x28a0c5[_0x4dcad8['name']]=_0x4dcad8['title']['toLowerCase']();const _0x3c5119=_0x4fff9e['normalizedStyles']['find'](_0xf5985e=>_0xf5985e['isDefault'])?.['name'];_0x55eb2e['enableCommand']('mediaStyle',(_0x2b3c79,_0x134dde)=>{const _0x2b918d=_0x4f6f06['plugins']['get']('Users')['me'],_0xe05eed=_0x4f6f06['commands']['get']('mediaStyle'),_0x138348=function(_0x48dd5c){const _0x2efcd8=_0x48dd5c['model']['document']['selection']['getSelectedElement']();return _0x2efcd8&&_0x2efcd8['is']('element','media')?_0x2efcd8:null;}(_0x4f6f06);if(!_0x138348)return;const _0x3c565c=_0x4f6f06['model']['createRangeOn'](_0x138348);let _0x55efe5=_0xe05eed['value'];if(_0x55efe5==_0x134dde['value'])return;const _0x53bd03={'commandName':'mediaStyle','commandParams':[_0x134dde],'formatGroupId':_0x589c6c()};_0x4f6f06['model']['change'](()=>{_0x55eb2e['getSuggestions']()['filter'](_0x44e768=>_0x44e768['isInContent']&&_0x2b918d==_0x44e768['author']&&'formatBlock'==_0x44e768['type']&&'mediaStylePostApply'==_0x44e768['subType']&&_0x44e768['getFirstRange']()['isEqual'](_0x3c565c))['forEach'](_0x2e5e54=>_0x55eb2e['discardSuggestion'](_0x2e5e54['head'])),_0xe05eed['refresh'](),_0x55efe5=_0xe05eed['value'],_0x55efe5!=_0x134dde['value']&&_0x55eb2e['markBlockFormat'](_0x138348,{..._0x53bd03,'commandReversedParams':[{'value':'string'==typeof _0x55efe5?_0x55efe5:null}]},[],'mediaStylePostApply');});}),_0x55eb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x55eb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5573c2,_0x3f4eea)=>{_0x55eb2e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5573c2,{'commandName':_0x3f4eea['commandName'],'commandParams':_0x3f4eea['commandReversedParams']});}),_0x55eb2e['descriptionFactory']['registerDescriptionCallback'](_0x39142d=>{if('formatBlock'!=_0x39142d['type'])return;const {data:_0x34b6d6}=_0x39142d;if(!_0x34b6d6||'mediaStyle'!=_0x34b6d6['commandName'])return;const _0x292696=_0x34b6d6['commandParams'][0x0]['value']||_0x3c5119;return _0x292696?{'type':'format','content':St(_0x10b04c,'*Format:*\x20%0',_0x28a0c5[_0x292696]||_0x292696)}:void 0x0;});}},be=class extends _0x3f3b34{['afterInit'](){const _0x496e01=this['editor'];_0x496e01['plugins']['has']('MentionEditing')&&_0x496e01['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x3f3b34{['afterInit'](){const _0x13938f=this['editor'];if(!_0x13938f['plugins']['has']('MergeFieldsEditing'))return;const _0x76e74d=_0x13938f['plugins']['get']('TrackChangesEditing'),_0x17d8ac=_0x13938f['locale'];_0x76e74d['enableCommand']('insertMergeField'),_0x76e74d['enableCommand']('insertMergeFieldBlock'),_0x76e74d['enableCommand']('insertMergeFieldImage'),_0x76e74d['descriptionFactory']['registerElementLabel']('mergeField',_0x43ca2b=>St(_0x17d8ac,'ELEMENT_MERGE_FIELD',_0x43ca2b)),_0x76e74d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3dd0c2=>St(_0x17d8ac,'ELEMENT_MERGE_FIELD',_0x3dd0c2)),_0x76e74d['descriptionFactory']['registerDescriptionCallback'](_0x2e6084=>{if('insertion'!=_0x2e6084['type']&&'deletion'!=_0x2e6084['type'])return;const _0x5c64f2=_0x2e6084['getContainedElement']();if(null==_0x5c64f2)return;const _0x38d890=_0x13938f['plugins']['get']('MergeFieldsEditing');let _0x8d2ea6;switch(_0x38d890['getMergeFieldType'](_0x5c64f2)){case null:return;case'image':{const _0x393738=_0x38d890['unwrapAffixes'](_0x5c64f2['getAttribute']('src'));_0x8d2ea6=_0x38d890['getLabel'](_0x393738)||_0x393738;break;}default:{const _0x11e711=_0x5c64f2['getAttribute']('id');_0x8d2ea6=_0x38d890['getLabel'](_0x11e711)||_0x11e711;break;}}return'insertion'==_0x2e6084['type']?{'type':'insertion','content':St(_0x17d8ac,'*Insert:*\x20%0','\x22'+_0x8d2ea6+'\x22\x20'+St(_0x17d8ac,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x17d8ac,'*Remove:*\x20%0','\x22'+_0x8d2ea6+'\x22\x20'+St(_0x17d8ac,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x3f3b34{['afterInit'](){const _0x3cd1f3=this['editor'],_0x474605=_0x3cd1f3['plugins']['get']('TrackChangesEditing');_0x3cd1f3['plugins']['has']('MultiLevelList')&&(_0x474605['enableDefaultAttributesIntegration']('multiLevelList'),_0x474605['descriptionFactory']['registerDescriptionCallback'](_0xd2559e=>this['handleDescriptions'](_0xd2559e)));}['handleDescriptions'](_0x4eb780){const _0x459760=this['editor']['locale'],{data:_0x243ce1}=_0x4eb780,_0x516369={'type':'format','content':''};if(_0x243ce1&&'listMarkerStyle'==_0x243ce1['key']){if(!_0x243ce1['oldValue'])return{'type':'format','content':St(_0x459760,'*Set\x20format:*\x20%0',St(_0x459760,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x243ce1['newValue']+')'};if(!_0x243ce1['newValue']){let _0x2abc0c=_0x4eb780['head'];for(;_0x2abc0c;){if(_0x2abc0c['data']&&'listType'==_0x2abc0c['data']['key']&&_0x2abc0c['data']['newValue'])return _0x516369;_0x2abc0c=_0x2abc0c['next'];}return{'type':'format','content':St(_0x459760,'*Remove\x20format:*\x20%0',St(_0x459760,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x243ce1['oldValue']+')'};}}}},Re=class extends _0x3f3b34{['afterInit'](){const _0x33aa09=this['editor'];if(!_0x33aa09['plugins']['has']('PageBreakEditing'))return;_0x33aa09['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xf8ca19=_0x33aa09['plugins']['get']('TrackChangesEditing'),_0x541a43=_0x33aa09['locale'];_0xf8ca19['descriptionFactory']['registerElementLabel']('pageBreak',_0x247b1d=>St(_0x541a43,'ELEMENT_PAGE_BREAK',_0x247b1d));}},Ne=class extends _0x3f3b34{['afterInit'](){const _0x400162=this['editor'];if(!_0x400162['plugins']['has']('Paragraph'))return;const _0x5c56ec=_0x400162['locale'],_0xb4bf1b=_0x400162['plugins']['get']('TrackChangesEditing');_0xb4bf1b['descriptionFactory']['registerElementLabel']('paragraph',_0x5a54e1=>St(_0x5c56ec,'ELEMENT_PARAGRAPH',_0x5a54e1)),_0xb4bf1b['enableDefaultAttributesIntegration']('paragraph'),_0xb4bf1b['enableCommand']('insertParagraph');const _0x2cdba5=_0xb4bf1b['descriptionFactory'];_0x2cdba5['registerDescriptionCallback'](_0x24169d=>{if('insertion'!==_0x24169d['type'])return;const {start:_0x4ac931,end:_0x49d832}=_0x24169d['getFirstRange']();if(!_0x4ac931['isTouching'](_0x49d832)||!_0x4ac931['nodeAfter'])return;const _0x54e58f=_0x400162['model']['schema'],_0x18bf52=_0x4ac931['nodeAfter'];return _0x54e58f['isBlock'](_0x18bf52)&&!_0x54e58f['isLimit'](_0x18bf52)&&_0x54e58f['checkChild'](_0x18bf52,'$text')?{'type':'insertion','content':St(_0x5c56ec,'*Insert:*\x20%0',_0x2cdba5['getItemLabel'](_0x18bf52,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4af89e=this['editor'],_0x28d549=_0x4af89e['locale'];_0x4af89e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d48b9=>{if('formatBlock'!=_0x4d48b9['type'])return;const {data:_0xac2534}=_0x4d48b9;return _0xac2534&&'paragraph'==_0xac2534['commandName']?{'type':'format','content':St(_0x28d549,'*Change\x20to:*\x20%0',St(_0x28d549,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x3f3b34{['afterInit'](){const _0x53cb8c=this['editor'];_0x53cb8c['commands']['get']('replaceSource')&&_0x53cb8c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x3f3b34{['afterInit'](){const _0x186b09=this['editor'];_0x186b09['plugins']['has']('RemoveFormatEditing')&&(_0x186b09['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5e9970=this['editor'];_0x5e9970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38d006=>{if('formatBlock'!=_0x38d006['type']&&'formatInline'!=_0x38d006['type'])return;const {data:_0xcfa107}=_0x38d006;return _0xcfa107&&'removeFormat'==_0xcfa107['commandName']?{'type':'format','content':St(_0x5e9970['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x3f3b34{['afterInit'](){const _0x3e782f=this['editor'];if(!_0x3e782f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x300d28=_0x3e782f['plugins']['get']('TrackChangesEditing');_0x300d28['enableCommand']('goToPreviousRestrictedEditingException'),_0x300d28['enableCommand']('goToNextRestrictedEditingException');const _0x35891e=_0x3e782f['plugins']['get']('RestrictedEditingModeEditing');_0x35891e['enableCommand']('trackChanges'),_0x35891e['enableCommand']('acceptSuggestion'),_0x35891e['enableCommand']('discardSuggestion'),_0x35891e['enableCommand']('acceptAllSuggestions'),_0x35891e['enableCommand']('discardAllSuggestions'),_0x35891e['enableCommand']('acceptSelectedSuggestions'),_0x35891e['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x3f3b34{['afterInit'](){const _0x58b76b=this['editor'];if(!_0x58b76b['plugins']['has']('ShiftEnter'))return;const _0x420089=_0x58b76b['plugins']['get']('TrackChangesEditing');_0x420089['enableCommand']('shiftEnter'),_0x420089['descriptionFactory']['registerElementLabel']('softBreak',_0x5dc7a1=>St(_0x58b76b['locale'],'ELEMENT_LINE_BREAK',_0x5dc7a1));}};function we(_0xb306d3,_0x367a1c,_0xfce9dd){const _0x2705b9=[];for(const _0x2857da of _0x367a1c['getItems']())_0x2857da['hasAttribute'](_0xb306d3)&&_0x2705b9['push'](_0xfce9dd['createRangeOn'](_0x2857da));return _0x2705b9;}var Fe=class extends _0x3f3b34{['afterInit'](){const _0x3e412b=this['editor'],_0x3b2b88=_0x3e412b['plugins']['get']('TrackChangesEditing');_0x3e412b['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3b2b88['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1cd0ec=this['editor'],_0x36f22c=_0x1cd0ec['model'],_0x1fedf9=_0x1cd0ec['locale'],_0x1138e3=_0x1cd0ec['plugins']['get']('TrackChangesEditing'),_0x504ca5='restrictedEditingException',_0x8ae49e=_0x1cd0ec['commands']['get'](_0x504ca5);_0x1138e3['enableCommand'](_0x504ca5,(_0x2b1dea,_0x258a49={})=>{const _0x574428=_0x36f22c['document']['selection'];if(_0x574428['isCollapsed'])return void _0x2b1dea(_0x258a49);const _0xd8c656=void 0x0!==_0x258a49['forceValue']?_0x258a49['forceValue']:!_0x8ae49e['value'];_0x36f22c['change'](()=>{const _0xf19b82=Array['from'](_0x574428['getRanges']());for(const _0x4f3f9e of _0xf19b82){const _0x15fd8d=_0xd8c656?[_0x4f3f9e]:we(_0x504ca5,_0x4f3f9e,_0x36f22c);for(const _0x8cd5d of _0x15fd8d)_0x1138e3['markInlineFormat'](_0x8cd5d,{'commandName':_0x504ca5,'commandParams':[{'forceValue':_0xd8c656}]});}});}),_0x1138e3['descriptionFactory']['registerDescriptionCallback'](_0x43abc7=>{if('formatBlock'!=_0x43abc7['type']&&'formatInline'!=_0x43abc7['type'])return;const {data:_0x4f941d}=_0x43abc7;return _0x4f941d&&_0x4f941d['commandName']==_0x504ca5?_0x4f941d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1fedf9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x1fedf9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x2345c7=this['editor'],_0xd98223=_0x2345c7['locale'],_0x18b658=_0x2345c7['plugins']['get']('TrackChangesEditing'),_0x193aa7='restrictedEditingExceptionBlock',_0x262a42=this['editor']['commands']['get'](_0x193aa7);_0x18b658['enableCommand'](_0x193aa7,(_0x3d6a23,_0x89e296={})=>{const _0x113145=this['editor']['model']['document']['selection'],_0xa9b190=_0x89e296&&void 0x0!==_0x89e296['forceValue']?_0x89e296['forceValue']:!_0x262a42['value'];let _0xa37853=[];_0xa37853=At(_0xa9b190?Array['from'](_0x113145['getSelectedBlocks']())['filter'](_0xdc4cad=>function(_0x299bb6){return!!_0x299bb6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xdc4cad)||function(_0x535f18,_0x12e8a2){const _0x1a7cd2=_0x12e8a2['createContext'](_0x535f18['parent']);return!!_0x12e8a2['checkChild'](_0x1a7cd2,'restrictedEditingException')&&!!_0x12e8a2['checkChild'](_0x1a7cd2['push']('restrictedEditingException'),_0x535f18);}(_0xdc4cad,this['editor']['model']['schema'])):Array['from'](_0x113145['getSelectedBlocks']())['map'](_0x1d2c99=>function(_0x166492){let _0x231dbb=_0x166492;for(;_0x231dbb['parent'];){if('restrictedEditingException'==_0x231dbb['parent']['name'])return _0x231dbb;_0x231dbb=_0x231dbb['parent'];}return null;}(_0x1d2c99))['filter'](_0x1c9e57=>!!_0x1c9e57),_0x2345c7['model']),_0x2345c7['model']['change'](()=>{for(const _0x273e5f of _0xa37853)_0x18b658['markBlockFormat'](_0x273e5f,{'commandName':_0x193aa7,'commandParams':[{'forceValue':_0xa9b190}]});});}),_0x18b658['descriptionFactory']['registerDescriptionCallback'](_0x4fcacc=>{const {data:_0x14fb4a}=_0x4fcacc;if(_0x14fb4a&&_0x14fb4a['commandName']==_0x193aa7)return _0x14fb4a['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0xd98223,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0xd98223,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x3f3b34{['afterInit'](){const _0x509d46=this['editor'];_0x509d46['plugins']['has']('Style')&&_0x509d46['plugins']['has']('DataSchema')&&(_0x509d46['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x43bbd5=this['editor'],_0x1ca521=_0x43bbd5['locale'];_0x43bbd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f90ee=>{if('formatBlock'!=_0x2f90ee['type']&&'formatInline'!=_0x2f90ee['type'])return;const {data:_0x1cfba8}=_0x2f90ee;return _0x1cfba8&&'style'===_0x1cfba8['commandName']?_0x1cfba8['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1ca521,'*Set\x20format:*\x20%0',_0x1cfba8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x1ca521,'*Remove\x20format:*\x20%0',_0x1cfba8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x3f3b34{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x30d110){super(_0x30d110),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5500d5=this['editor'],_0x9877d1=_0x5500d5['model']['document']['selection'];if(!_0x5500d5['plugins']['has']('TableEditing'))return;const _0x16a90f=_0x5500d5['locale'],_0x1dd27e=_0x5500d5['plugins']['get']('TrackChangesEditing'),_0x32927a=_0x5500d5['plugins']['get']('TableUtils');_0x1dd27e['descriptionFactory']['registerElementLabel']('table',_0x3be102=>St(_0x16a90f,'ELEMENT_TABLE',_0x3be102)),this['_setupColumnsRowsFixing'](),_0x1dd27e['enableCommand']('insertTable'),_0x1dd27e['enableCommand']('selectTableRow'),_0x1dd27e['enableCommand']('selectTableColumn');for(const _0x105ab8 of['insertTableRowAbove','insertTableRowBelow']){const _0x380479=_0x5500d5['commands']['get'](_0x105ab8);_0x1dd27e['enableCommand'](_0x105ab8,_0x38d90b=>{_0x5500d5['model']['change'](_0x3edaf6=>{_0x38d90b();const _0x59ff8b='above'===_0x380479['order'],_0x4d25fc=_0x32927a['getSelectionAffectedTableCells'](_0x9877d1),_0x569855=_0x32927a['getRowIndexes'](_0x4d25fc),_0x32c19f=_0x59ff8b?_0x569855['first']-0x1:_0x569855['last']+0x1,_0x2785c6=_0x4d25fc[0x0]['findAncestor']('table'),_0x509a14=_0x32927a['createTableWalker'](_0x2785c6,{'startRow':_0x32c19f,'endRow':_0x32c19f}),_0x20fce4=Array['from'](_0x509a14)['map'](_0x505cca=>_0x3edaf6['createRangeOn'](_0x505cca['cell']));_0x1dd27e['markMultiRangeInsertion'](_0x20fce4,'tableRow');});});}for(const _0x2b608d of['insertTableColumnLeft','insertTableColumnRight']){const _0x24746c=_0x5500d5['commands']['get'](_0x2b608d);_0x1dd27e['enableCommand'](_0x2b608d,_0x76746=>{_0x5500d5['model']['change'](_0x3b328f=>{_0x76746();const _0x21852a='left'===_0x24746c['order'],_0x2a3711=_0x32927a['getSelectionAffectedTableCells'](_0x9877d1),_0x45ac96=_0x32927a['getColumnIndexes'](_0x2a3711),_0x253e26=_0x21852a?_0x45ac96['first']-0x1:_0x45ac96['last']+0x1,_0x2a2d7c=_0x2a3711[0x0]['findAncestor']('table'),_0x9d6ab5=_0x32927a['createTableWalker'](_0x2a2d7c,{'startRow':0x0,'column':_0x253e26,'includeAllSlots':!0x1}),_0x2f4df5=Array['from'](_0x9d6ab5)['map'](_0x1e0369=>_0x3b328f['createRangeOn'](_0x1e0369['cell']));_0x1dd27e['markMultiRangeInsertion'](_0x2f4df5,'tableColumn');});});}for(const _0x3e5180 of['removeTableRow','removeTableColumn']){const _0x4251a7=_0x3e5180['substr'](0xb),_0x3f40cd=_0x4251a7['toLowerCase'](),_0x3a883a=_0x3f40cd['substr'](0x0,0x3)+'span',_0x3dd00a='table'+_0x4251a7,_0x54b770='min'+_0x4251a7,_0xf05d54='max'+_0x4251a7;_0x1dd27e['enableCommand'](_0x3e5180,()=>{_0x5500d5['model']['change'](_0x34bc19=>{const _0x7b6f94=_0x32927a['getSelectionAffectedTableCells'](_0x9877d1),_0x43593d=_0x7b6f94[0x0]['findAncestor']('table');let _0x191206;if('removeTableRow'==_0x3e5180){const _0xe9c9d4=_0x32927a['getRowIndexes'](_0x7b6f94);_0x191206={'startRow':_0xe9c9d4['first'],'endRow':_0xe9c9d4['last'],'includeAllSlots':!0x0};}else{const _0x4a727a=_0x32927a['getColumnIndexes'](_0x7b6f94);_0x191206={'startColumn':_0x4a727a['first'],'endColumn':_0x4a727a['last'],'includeAllSlots':!0x0};}const _0x5eaa8f=_0x32927a['createTableWalker'](_0x43593d,_0x191206),_0x160936=Array['from'](_0x5eaa8f)['map'](({cell:_0x30cc18})=>_0x30cc18),_0x23135e=De(_0x160936['filter'](_0x3330f5=>_0x3330f5['hasAttribute'](_0x3a883a))),_0x2989ab=De(_0x160936['filter'](_0x4dc6dd=>!_0x4dc6dd['hasAttribute'](_0x3a883a)))['map'](_0x208639=>_0x34bc19['createRangeOn'](_0x208639)),_0x2ec0e9=_0x1dd27e['markMultiRangeDeletion'](_0x2989ab,_0x3dd00a);if(_0x2ec0e9&&('tableRow'==_0x2ec0e9['subType']||'tableColumn'==_0x2ec0e9['subType'])){const _0x289ed4=this['_getSuggestionCoords'](_0x2ec0e9);for(const _0x4da2b0 of _0x23135e){const _0x1566fe=_0x34bc19['createRangeOn'](_0x4da2b0),_0x214423=_0x32927a['getCellLocation'](_0x4da2b0),_0x6cb39=_0x4da2b0['getAttribute'](_0x3a883a)-0x1,_0x35e7b0=_0x289ed4[_0x54b770],_0x2b07a4=_0x289ed4[_0xf05d54];_0x35e7b0<=_0x214423[_0x3f40cd]&&_0x214423[_0x3f40cd]+_0x6cb39<=_0x2b07a4&&_0x2ec0e9['addRange'](_0x1566fe);}}});});}function _0x21c403(_0x50aa8c){const _0x59c18e=Array['from'](_0x9877d1['getRanges']())['map'](_0x20dc29=>rt['fromRange'](_0x20dc29));_0x5500d5['model']['change'](_0x4bc78a=>{const _0x3aea75=_0x4bc78a['batch'];_0x50aa8c=_0x50aa8c['filter'](_0x58d26c=>'$graveyard'!=_0x58d26c['root']['rootName']),_0x4bc78a['setSelection'](_0x50aa8c),_0x5500d5['commands']['get']('removeTableRow')['refresh'](),_0x5500d5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5500d5['model']['enqueueChange'](()=>{_0x5500d5['model']['enqueueChange'](_0x3aea75,_0x50b2a9=>{const _0x25d411=_0x59c18e['filter'](_0x3d8814=>'$graveyard'!=_0x3d8814['root']['rootName']);_0x25d411['length']>0x0&&_0x50b2a9['setSelection'](_0x25d411);for(const _0x5a351f of _0x59c18e)_0x5a351f['detach']();});});});}function _0x342d58(_0x3b7599){_0x5500d5['model']['change'](_0x3b3cf9=>{const _0x577813=Array['from'](_0x9877d1['getRanges']())['map'](_0x3360dd=>rt['fromRange'](_0x3360dd)),_0x336bac=[];for(const _0x11392e of _0x3b7599)for(const _0x33da28 of _0x11392e['getItems']({'shallow':!0x0}))_0x336bac['push'](_0x33da28);for(const _0x30f00b of _0x336bac)'$graveyard'!=_0x30f00b['root']['rootName']&&(_0x3b3cf9['setSelection'](_0x3b3cf9['createPositionAt'](_0x30f00b,0x0)),_0x5500d5['commands']['get']('removeTableColumn')['refresh'](),_0x5500d5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x507846=_0x577813['filter'](_0xec6fb8=>'$graveyard'!=_0xec6fb8['root']['rootName']);_0x507846['length']>0x0&&_0x3b3cf9['setSelection'](_0x507846);for(const _0x28f5fb of _0x577813)_0x28f5fb['detach']();});}function _0x33671c(_0x4f5525,_0x1f7346){return _0x1f7346['every'](_0x272206=>_0x4f5525['some'](_0x181e08=>_0x181e08['end']['isEqual'](_0x272206['start'])||_0x272206['end']['isEqual'](_0x181e08['start'])));}function _0x4a704f(_0x706dab,_0x40f789){return!_0x706dab['some'](_0x1e8293=>_0x40f789['some'](_0x2e3e94=>_0x1e8293['isIntersecting'](_0x2e3e94)))&&_0x706dab['some'](_0xf0aca1=>_0x40f789['some'](_0x11c74c=>_0xf0aca1['end']['isTouching'](_0x11c74c['start'])));}_0x1dd27e['descriptionFactory']['registerDescriptionCallback'](_0x103ce4=>{if('insertion'!=_0x103ce4['type']&&'deletion'!=_0x103ce4['type'])return;const _0x459734=_0x103ce4['getContainedElement']();if(null!=_0x459734&&_0x459734['is']('element','table')){if('insertion'==_0x103ce4['type']){const _0x5ee43d=_0x103ce4['getItems']()['filter'](_0x92e8cd=>_0x92e8cd['is']('$textProxy'))['map'](_0x5194bd=>_0x5194bd['data']);if(_0x5ee43d['length'])return{'type':'insertion','content':St(_0x16a90f,'*Insert:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ee43d['join']('\x20')+'\x22'))};}if('deletion'==_0x103ce4['type']){const _0x1fc1e3=_0x103ce4['getItems']()['filter'](_0x221744=>_0x221744['is']('$textProxy'))['map'](_0x3441a6=>_0x3441a6['data']);if(_0x1fc1e3['length'])return{'type':'deletion','content':St(_0x16a90f,'*Remove:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fc1e3['join']('\x20')+'\x22'))};}}}),_0x1dd27e['descriptionFactory']['registerDescriptionCallback'](_0x2fcc18=>{if('tableRow'==_0x2fcc18['subType']){const _0x5a1b44=_0x2fcc18['getItems']()['filter'](_0x5e0de9=>_0x5e0de9['is']('$textProxy'))['map'](_0x206f7e=>_0x206f7e['data']),_0x30bef5=this['_getSuggestionCoords'](_0x2fcc18),_0x4ac12f=_0x30bef5['maxRow']-_0x30bef5['minRow']+0x1;if('insertion'==_0x2fcc18['type'])return _0x5a1b44['length']?{'type':'insertion','content':St(_0x16a90f,'*Insert:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ac12f,'\x22'+_0x5a1b44['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x16a90f,'*Insert:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_ROW',_0x4ac12f))};if('deletion'==_0x2fcc18['type'])return _0x5a1b44['length']?{'type':'deletion','content':St(_0x16a90f,'*Remove:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ac12f,'\x22'+_0x5a1b44['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x16a90f,'*Remove:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_ROW',_0x4ac12f))};}if('tableColumn'==_0x2fcc18['subType']){const _0x559169=_0x2fcc18['getItems']()['filter'](_0x3b237e=>_0x3b237e['is']('$textProxy'))['map'](_0xc76526=>_0xc76526['data']),_0x100196=this['_getSuggestionCoords'](_0x2fcc18),_0x2e0dd9=_0x100196['maxColumn']-_0x100196['minColumn']+0x1;if('insertion'==_0x2fcc18['type'])return _0x559169['length']?{'type':'insertion','content':St(_0x16a90f,'*Insert:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e0dd9,'\x22'+_0x559169['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x16a90f,'*Insert:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_COLUMN',_0x2e0dd9))};if('deletion'==_0x2fcc18['type'])return _0x559169['length']?{'type':'deletion','content':St(_0x16a90f,'*Remove:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e0dd9,'\x22'+_0x559169['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x16a90f,'*Remove:*\x20%0',St(_0x16a90f,'ELEMENT_TABLE_COLUMN',_0x2e0dd9))};}}),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x21c403),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x21c403),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x342d58),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x342d58),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33671c),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33671c),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4a704f),_0x1dd27e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4a704f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1053dd=this['editor'],_0x1e400d=_0x1053dd['model']['document']['selection'];return(_0x897f8e,_0x1221bd)=>{_0x1053dd['model']['change'](_0x129d39=>{const {commandName:_0xcb81ef,commandParams:_0x545d2b}=_0x1221bd;let _0x893b25=_0x897f8e[0x0]['end']['nodeBefore'];_0x545d2b&&_0x545d2b[0x0]&&!0x1===_0x545d2b[0x0]['forceValue']&&(_0x893b25=_0x897f8e[0x0]['start']['nodeAfter']);const _0x33f30d=_0x129d39['createRangeIn'](_0x893b25);if('$graveyard'==_0x33f30d['root']['rootName'])return;const _0x50562d=Array['from'](_0x1e400d['getRanges']())['map'](_0x297007=>rt['fromRange'](_0x297007));_0x129d39['setSelection'](_0x33f30d),_0x1053dd['commands']['get'](_0xcb81ef)['refresh'](),_0x545d2b['push']({'forceDefaultExecution':!0x0}),_0x1053dd['execute'](_0xcb81ef,..._0x545d2b);const _0x357a31=_0x50562d['filter'](_0x4a47a8=>'$graveyard'!=_0x4a47a8['root']['rootName']);_0x357a31['length']>0x0&&_0x129d39['setSelection'](_0x357a31);for(const _0x4351cd of _0x50562d)_0x4351cd['detach']();});};}['_getCoordsForCells'](_0x3ed8e1){const _0x43b815=this['editor']['plugins']['get']('TableUtils');let _0x27cc1f=Number['MAX_SAFE_INTEGER'],_0x1d8eab=Number['MIN_SAFE_INTEGER'],_0x3835c4=Number['MAX_SAFE_INTEGER'],_0xb90b23=Number['MIN_SAFE_INTEGER'];for(const _0x2799fb of _0x3ed8e1){if('$graveyard'==_0x2799fb['root']['rootName'])continue;const {row:_0x16d5fb,column:_0x3ab2c7}=_0x43b815['getCellLocation'](_0x2799fb),_0x291cff=_0x2799fb['hasAttribute']('rowspan')?_0x2799fb['getAttribute']('rowspan')-0x1:0x0,_0x4574de=_0x2799fb['hasAttribute']('colspan')?_0x2799fb['getAttribute']('colspan')-0x1:0x0;_0x27cc1f=_0x16d5fb<_0x27cc1f?_0x16d5fb:_0x27cc1f,_0x1d8eab=_0x16d5fb+_0x291cff>_0x1d8eab?_0x16d5fb+_0x291cff:_0x1d8eab,_0x3835c4=_0x3ab2c7<_0x3835c4?_0x3ab2c7:_0x3835c4,_0xb90b23=_0x3ab2c7+_0x4574de>_0xb90b23?_0x3ab2c7+_0x4574de:_0xb90b23;}return{'minRow':_0x27cc1f,'maxRow':_0x1d8eab,'minColumn':_0x3835c4,'maxColumn':_0xb90b23};}['_setupColumnsRowsFixing'](){const _0x27cbf7=this['editor'],_0x1ca569=_0x27cbf7['plugins']['get']('TrackChangesEditing'),_0xadbe24=_0x27cbf7['plugins']['get']('TableUtils');_0x27cbf7['model']['document']['on']('change:data',()=>{const _0x46563d=Array['from'](_0x27cbf7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d5cf8,data:_0x2dbe2b}of _0x46563d){const {group:_0x486c25,id:_0x144622,subType:_0x4316ba}=tt(_0x5d5cf8);if('suggestion'!=_0x486c25)continue;if(null!=_0x2dbe2b['oldRange'])continue;const _0x1c5a21=_0x1ca569['getSuggestion'](_0x144622);this['_tablePostFixingSubtypes']['includes'](_0x4316ba)&&this['_tableSuggestions']['add'](_0x1c5a21);}},{'priority':'low'});const _0x3a2910=(_0x6d4329,_0x133b68)=>{let _0x582cba=!0x1;const _0x178926=_0x133b68['createRangeOn'](_0x6d4329),_0x52008a=_0x6d4329['findAncestor']('table'),_0x537904=_0xadbe24['getCellLocation'](_0x6d4329);for(const _0x5f1659 of this['_tableSuggestions']){const _0x5dbc51=_0x5f1659['subType'],_0x5a7a0a=_0x5dbc51['startsWith']('tablePaste'),_0x777eef=_0x5dbc51['substr'](_0x5a7a0a?0xa:0x5),_0x2406fc=_0x777eef['toLowerCase'](),_0x2fd1d1=_0x2406fc['substr'](0x0,0x3)+'span',_0x22af06='min'+_0x777eef,_0x31f5be='max'+_0x777eef;if(!_0x5f1659['isInContent'])continue;if(_0x52008a!=_0x5f1659['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5f1659['isIntersectingWithRange'](_0x178926))continue;const _0x7555f8=_0x6d4329['hasAttribute'](_0x2fd1d1)?_0x6d4329['getAttribute'](_0x2fd1d1)-0x1:0x0,_0x42bdfe=this['_getSuggestionCoords'](_0x5f1659),_0xc1e193=_0x42bdfe[_0x22af06],_0x44a943=_0x42bdfe[_0x31f5be];_0xc1e193<=_0x537904[_0x2406fc]&&_0x537904[_0x2406fc]+_0x7555f8<=_0x44a943&&(_0x5f1659['addRange'](_0x178926),_0x582cba=!0x0);}return _0x582cba;};_0x27cbf7['model']['document']['registerPostFixer'](_0x2e3de6=>{let _0x891a2e=!0x1;for(const _0xdd50e5 of _0x27cbf7['model']['document']['differ']['getChanges']())if('insert'==_0xdd50e5['type']){if('tableRow'==_0xdd50e5['name']){for(const _0x543a91 of _0xdd50e5['position']['nodeAfter']['getChildren']())_0x891a2e=_0x891a2e||_0x3a2910(_0x543a91,_0x2e3de6);}else'tableCell'==_0xdd50e5['name']&&(_0x891a2e=_0x891a2e||_0x3a2910(_0xdd50e5['position']['nodeAfter'],_0x2e3de6));}return _0x891a2e;});}['_getSuggestionCoords'](_0x54d976){return this['_getCoordsForCells'](_0x54d976['getRanges']()['map'](_0x375e57=>_0x375e57['start']['nodeAfter']));}};function De(_0x4212be){return Array['from'](new Set(_0x4212be)['values']());}var Ue=class extends _0x3f3b34{static get['requires'](){return[ve];}['afterInit'](){const _0x3310ee=this['editor'],_0x5f19eb=_0x3310ee['model']['document']['selection'],_0x4146ca=_0x3310ee['locale'];if(!_0x3310ee['plugins']['has']('TableEditing'))return;const _0x140458=_0x3310ee['plugins']['get']('TrackChangesEditing'),_0x57dd75=_0x3310ee['plugins']['get']('TableUtils'),_0x1755b8=_0x3310ee['plugins']['get'](ve);_0x1755b8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x140458['enableCommand']('mergeTableCells',()=>{const _0xd23d91=_0x57dd75['getSelectionAffectedTableCells'](_0x3310ee['model']['document']['selection']);_0x3310ee['model']['change'](()=>{_0x140458['markMultiRangeBlockFormat'](_0xd23d91,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3310ee['commands']['get']('mergeTableCells')['on']('execute',(_0xff3a24,_0x35c41a)=>{_0x3310ee['commands']['get']('trackChanges')['value']&&(_0x35c41a['length']>0x0&&_0x35c41a[_0x35c41a['length']-0x1]&&_0x35c41a[_0x35c41a['length']-0x1]['forceDefaultExecution']||_0x140458['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xff3a24['stop']());},{'priority':'highest'});for(const _0x375599 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e66a3=_0x3310ee['commands']['get'](_0x375599);_0x140458['enableCommand'](_0x375599,()=>{const _0x30e0cd=_0x3310ee['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7a60b7=>_0x7a60b7['is']('element','tableCell')),_0x3d4301=_0x4e66a3['value'];_0x3310ee['model']['change'](()=>{_0x140458['markMultiRangeBlockFormat']([_0x30e0cd,_0x3d4301],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x388461 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x72197b=_0x3310ee['commands']['get'](_0x388461);_0x140458['enableCommand'](_0x388461,()=>{const _0x591938=_0x57dd75['getSelectionAffectedTableCells'](_0x3310ee['model']['document']['selection'])[0x0],_0x1769f4=_0x591938['findAncestor']('table'),{column:_0x4676ba,row:_0x44959b}=_0x57dd75['getCellLocation'](_0x591938);let _0x76abd9=[];if('horizontally'==_0x72197b['direction']){const _0x3ca376=_0x57dd75['createTableWalker'](_0x1769f4,{'startRow':_0x44959b,'endRow':_0x44959b,'includeAllSlots':!0x0});_0x76abd9=Array['from'](_0x3ca376)['map'](_0x3ec1fb=>_0x3ec1fb['cell']);}else{const _0x1a5d05=_0x57dd75['createTableWalker'](_0x1769f4,{'column':_0x4676ba,'includeAllSlots':!0x0});_0x76abd9=Array['from'](_0x1a5d05)['map'](_0x541674=>_0x541674['cell']);}_0x3310ee['model']['change'](_0x3c4c4e=>{_0x140458['markBlockFormat'](_0x3c4c4e['createRangeOn'](_0x591938),{'commandName':_0x388461,'commandParams':[]},_0x76abd9,_0x388461);});});}_0x140458['descriptionFactory']['registerDescriptionCallback'](_0x5d8337=>{if('formatBlock'!=_0x5d8337['type']&&'formatInline'!=_0x5d8337['type'])return;const {data:_0x54e7b9}=_0x5d8337;return _0x54e7b9&&'mergeTableCells'==_0x54e7b9['commandName']?{'type':'format','content':St(_0x4146ca,'*Merge\x20cells*')}:void 0x0;}),_0x140458['descriptionFactory']['registerDescriptionCallback'](_0x499d56=>{if('formatBlock'!=_0x499d56['type']&&'formatInline'!=_0x499d56['type'])return;const {data:_0x963266}=_0x499d56;return _0x963266?'splitTableCellVertically'==_0x963266['commandName']?{'type':'format','content':St(_0x4146ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x963266['commandName']?{'type':'format','content':St(_0x4146ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1190e0=_0x1755b8['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b7e8f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x140458['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b7e8f,'accept',_0x1190e0);for(const _0x346f5d of['splitTableCellVertically','splitTableCellHorizontally'])_0x140458['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x346f5d,'accept',_0x1190e0);_0x140458['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1decf5=>{_0x3310ee['model']['change'](_0x4c22b2=>{const _0x31e040=Array['from'](_0x5f19eb['getRanges']())['map'](_0x1b6b1b=>rt['fromRange'](_0x1b6b1b));_0x4c22b2['setSelection'](_0x1decf5),_0x3310ee['commands']['get']('mergeTableCells')['refresh'](),_0x3310ee['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22b7bc=_0x31e040['filter'](_0xa67cdd=>'$graveyard'!=_0xa67cdd['root']['rootName']);_0x22b7bc['length']>0x0&&_0x4c22b2['setSelection'](_0x22b7bc);for(const _0x41062a of _0x31e040)_0x41062a['detach']();});});for(const _0x199947 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5475dc=_0x3310ee['commands']['get'](_0x199947);_0x5475dc['on']('set:isEnabled',(_0x3023a6,_0x34d8d0,_0x4c807f)=>{if(_0x4c807f){const _0x1d56c3=_0x3310ee['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33b562=>_0x33b562['is']('element','tableCell'));this['_areMergableCells'](_0x5475dc['value'],_0x1d56c3)||(_0x3023a6['return']=!0x1,_0x3023a6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a1d32=this['editor']['commands']['get']('mergeTableCells'),_0x1ddf59=this['editor']['plugins']['get']('TableUtils');if(!_0x4a1d32['isEnabled'])return!0x1;const _0x1b024f=_0x1ddf59['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xcc9a66 of _0x1b024f)for(const _0x1ef0ac of _0x1b024f)if(_0xcc9a66!=_0x1ef0ac&&!this['_areMergableCells'](_0xcc9a66,_0x1ef0ac))return!0x1;return!0x0;}['_areMergableCells'](_0x1c6ddf,_0x3f31dc){const _0x6e4b6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55197b=this['editor']['model']['createRangeOn'](_0x1c6ddf),_0x1e6dab=this['editor']['model']['createRangeOn'](_0x3f31dc),_0x68dd54=new Set(),_0x5347de=new Set();for(const _0x14c5cc of _0x6e4b6b['getSuggestions']())if(('insertion'==_0x14c5cc['type']||'deletion'==_0x14c5cc['type']||'mergeTableCells'==_0x14c5cc['subType'])&&_0x14c5cc['isInContent']){for(const _0x4389f5 of _0x14c5cc['getRanges']())_0x4389f5['containsRange'](_0x55197b,!0x0)&&_0x68dd54['add'](_0x14c5cc['type']+':'+_0x14c5cc['author']['id']),_0x4389f5['containsRange'](_0x1e6dab,!0x0)&&_0x5347de['add'](_0x14c5cc['type']+':'+_0x14c5cc['author']['id']);}if(_0x68dd54['size']!=_0x5347de['size'])return!0x1;for(const _0x29be85 of _0x68dd54)if(!_0x5347de['has'](_0x29be85))return!0x1;return!0x0;}},Pe=class extends _0x3f3b34{static get['requires'](){return[ve];}['afterInit'](){const _0x23d453=this['editor'];if(!_0x23d453['plugins']['has']('TableEditing'))return;const _0x4df0a3=_0x23d453['locale'],_0x139e9d=_0x23d453['plugins']['get']('TrackChangesEditing');_0x139e9d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x139e9d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x139e9d['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x4df0a3,'FORMAT_HEADER_ROW')),_0x139e9d['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x4df0a3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x17e9b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e209d=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x17e9b6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1e209d),_0x17e9b6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1e209d),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x30e9ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54e8d0=this['editor']['plugins']['get']('TableUtils');function _0x5310d2({showActiveMarker:_0x49b539=!0x0,setDataAttribute:_0x10d147=!0x0}={}){return(_0x16071a,_0x5400dd,_0x5b2df5)=>{const {type:_0x11d34a,id:_0x38c224}=tt(_0x5400dd['markerName']);if(!_0x30e9ac['hasSuggestion'](_0x38c224))return;const _0x38114e=_0x30e9ac['getSuggestion'](_0x38c224),_0x12c0b3=_0x38114e['data'];if('formatBlock'!=_0x38114e['type']||!_0x12c0b3||'setTableColumnHeader'!=_0x12c0b3['commandName'])return;if(_0x5400dd['item'])return void _0x16071a['stop']();if(!_0x5b2df5['consumable']['consume'](_0x5400dd['markerRange'],_0x16071a['name']))return;const _0x5736a8=_0x5400dd['markerRange']['start']['nodeAfter'],_0x32ff5e=_0x5400dd['markerRange']['end']['nodeBefore'],_0x42fc34=_0x5736a8['parent']['parent'],{column:_0xdefdcb}=_0x54e8d0['getCellLocation'](_0x5736a8),{column:_0x42415c}=_0x54e8d0['getCellLocation'](_0x32ff5e);for(let _0x51e80e=_0xdefdcb;_0x51e80e<=_0x42415c;_0x51e80e++){const _0x5df18a=_0x54e8d0['createTableWalker'](_0x42fc34,{'column':_0x51e80e,'includeAllSlots':!0x1});for(const _0x4a8ca0 of _0x5df18a){const _0x37656f=_0x4a8ca0['cell'],_0x4f7fb4=_0x5b2df5['mapper']['toViewElement'](_0x37656f);_0x5b2df5['writer']['addClass']('ck-suggestion-marker-'+_0x11d34a,_0x4f7fb4),_0x10d147&&_0x5b2df5['writer']['setAttribute']('data-suggestion',_0x38c224,_0x4f7fb4),_0x5b2df5['mapper']['bindElementToMarker'](_0x4f7fb4,_0x5400dd['markerName']),_0x49b539&&(_0x30e9ac['activeMarkers']['includes'](_0x5400dd['markerName'])?_0x5b2df5['writer']['addClass']('ck-suggestion-marker--active',_0x4f7fb4):_0x5b2df5['writer']['removeClass']('ck-suggestion-marker--active',_0x4f7fb4));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5310d2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d42fa,_0x2cc15c,_0x102ee7)=>{_0x102ee7['options']['showSuggestionHighlights']&&_0x5310d2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1d42fa,_0x2cc15c,_0x102ee7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5bb270,_0x3e10ba,_0x5aad9b)=>{const {type:_0x47115b,id:_0x381d52}=tt(_0x3e10ba['markerName']);if(!_0x30e9ac['hasSuggestion'](_0x381d52))return;const _0x51b8d9=_0x30e9ac['getSuggestion'](_0x381d52),_0x50cba6=_0x51b8d9['data'];if('formatBlock'!=_0x51b8d9['type']||!_0x50cba6||'setTableColumnHeader'!=_0x50cba6['commandName'])return;const _0xef70f=_0x5aad9b['mapper']['markerNameToElements'](_0x3e10ba['markerName']);if(_0xef70f){for(const _0x3b95a9 of _0xef70f)_0x5aad9b['writer']['removeClass']('ck-suggestion-marker-'+_0x47115b,_0x3b95a9),_0x5aad9b['writer']['removeClass']('ck-suggestion-marker--active',_0x3b95a9),_0x5aad9b['writer']['removeAttribute']('data-suggestion',_0x3b95a9),_0x5aad9b['mapper']['unbindElementFromMarkerName'](_0x3b95a9,_0x3e10ba['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x20b16a=this['editor'],_0x2440e3=_0x20b16a['locale'];function _0x2edee9(_0x38a914){return{'type':'format','content':St(_0x2440e3,'*Format:*\x20%0',_0x38a914)};}_0x20b16a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11f4c5=>{if('formatBlock'!=_0x11f4c5['type'])return;const {data:_0x3e1a57}=_0x11f4c5;return _0x3e1a57?'setTableRowHeader'==_0x3e1a57['commandName']?_0x3e1a57['commandParams'][0x0]['forceValue']?_0x2edee9(St(_0x2440e3,'FORMAT_HEADER_ROW')):_0x2edee9(St(_0x2440e3,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x3e1a57['commandName']?_0x3e1a57['commandParams'][0x0]['forceValue']?_0x2edee9(St(_0x2440e3,'FORMAT_HEADER_COLUMN')):_0x2edee9(St(_0x2440e3,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x3f3b34{static get['requires'](){return[ve];}['afterInit'](){const _0x19f885=this['editor'];if(!_0x19f885['plugins']['has']('TableEditing')||!_0x19f885['config']['get']('table.enableFooters'))return;const _0x2148f2=_0x19f885['locale'],_0x1261c3=_0x19f885['plugins']['get']('TrackChangesEditing');_0x1261c3['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1261c3['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x2148f2,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x3f3b34{['afterInit'](){const _0x1a49d3=this['editor'],_0x18c17d=_0x1a49d3['locale'],_0x5bebb4=_0x1a49d3['plugins']['get']('TrackChangesEditing');function _0x567f6b(_0x2a8a2a){return{'type':'format','content':''+St(_0x18c17d,'*Set\x20table\x20type:*\x20%0',_0x2a8a2a)};}_0x1a49d3['plugins']['has']('TableLayout')&&(_0x5bebb4['enableCommand']('insertTableLayout'),_0x5bebb4['enableDefaultAttributesIntegration']('tableType'),_0x5bebb4['descriptionFactory']['registerElementLabel'](_0x281c9b=>_0x281c9b['is']('element','table')&&'layout'===_0x281c9b['getAttribute']('tableType'),_0x4641c5=>St(_0x18c17d,'ELEMENT_LAYOUT_TABLE',_0x4641c5)),_0x5bebb4['descriptionFactory']['registerDescriptionCallback'](_0xaa88fe=>{const {data:_0x393473}=_0xaa88fe;if(_0x393473&&'tableType'==_0x393473['key'])switch(_0x393473['newValue']){case'layout':return _0x567f6b(St(_0x18c17d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x567f6b(St(_0x18c17d,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](He['map'](_0x3cbbf9=>[_0x3cbbf9,null]));var Ve=class extends _0x3f3b34{static get['requires'](){return[ve];}['afterInit'](){const _0x4fd544=this['editor'];if(!_0x4fd544['plugins']['has']('TableClipboard'))return;const _0x51d8ab=_0x4fd544['plugins']['get']('TrackChangesEditing'),_0x39b3bc=_0x4fd544['plugins']['get']('TableUtils'),_0x4f4588=_0x4fd544['plugins']['get'](ve),_0x159721=_0x4fd544['plugins']['get']('TableClipboard'),_0x1392b0=_0x4fd544['plugins']['get']('TableSelection'),_0x3a2f44=_0x4fd544['plugins']['get'](mt);_0x4f4588['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4fd544['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4fd544['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5c84d0=null,_0x4f90d8=!0x1;_0x3a2f44['on']('contentInsertion',(_0x5168fb,_0x387511)=>{_0x4f90d8='paste'===_0x387511['method'];}),_0x4fd544['model']['on']('insertContent',(_0x56854f,_0x2ee1f7)=>{if(!_0x4f90d8&&null===_0x1392b0['getSelectedTableCells']())return;const [_0x35aa4b,_0x294dc3]=_0x2ee1f7,_0x2f00e0=_0x2ee1f7[_0x2ee1f7['length']-0x1];_0x2f00e0&&_0x2f00e0['forceDefaultExecution']||_0x51d8ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5df452,_0x2ad044,_0x367519,_0x5dfaa4,_0x5b8995){if(_0x2ad044&&!_0x2ad044['is']('documentSelection'))return!0x1;const _0x4a57fd=_0x5b8995['getTableIfOnlyTableInContent'](_0x5df452,_0x367519);if(!_0x4a57fd||!je(_0x4a57fd,void 0x0,_0x5dfaa4))return!0x1;const _0x54d332=_0x5dfaa4['getSelectionAffectedTableCells'](_0x367519['document']['selection']);if(!_0x54d332['length'])return!0x1;const _0xe89292=_0x54d332[0x0]['findAncestor']('table'),_0x2ed036=_0x5dfaa4['getRowIndexes'](_0x54d332),_0x4bf0ab=_0x5dfaa4['getColumnIndexes'](_0x54d332),_0x423bb9={'startRow':_0x2ed036['first'],'endRow':_0x2ed036['last'],'startColumn':_0x4bf0ab['first'],'endColumn':_0x4bf0ab['last']};return 0x1==_0x54d332['length']&&(_0x423bb9['endRow']+=_0x5dfaa4['getRows'](_0x4a57fd)-0x1,_0x423bb9['endColumn']+=_0x5dfaa4['getColumns'](_0x4a57fd)-0x1),je(_0xe89292,_0x423bb9,_0x5dfaa4);}(_0x35aa4b,_0x294dc3,_0x4fd544['model'],_0x39b3bc,_0x159721)&&(_0x56854f['stop'](),_0x5c84d0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4fd544['model']['change'](()=>{_0x4fd544['model']['insertContent'](_0x2ee1f7[0x0],_0x2ee1f7[0x1],_0x2ee1f7[0x2],{'forceDefaultExecution':!0x0});const _0x27d712=_0x589c6c(),{rowInsertionRanges:_0xef1cf2,columnInsertionRanges:_0x4ac3fe,insertionRanges:_0x6181ea,deletionRanges:_0x46fc19,cells:_0x573afb}=_0x5c84d0;_0xef1cf2['length']&&_0x51d8ab['markMultiRangeInsertion'](_0xef1cf2,'tablePasteRow',{'tablePasteChainId':_0x27d712}),_0x4ac3fe['length']&&_0x51d8ab['markMultiRangeInsertion'](_0x4ac3fe,'tablePasteColumn',{'tablePasteChainId':_0x27d712}),_0x6181ea['length']&&(_0x51d8ab['markMultiRangeInsertion'](_0x6181ea,'tablePaste',{'tablePasteChainId':_0x27d712,'skipNestingCheck':!0x0}),_0x6181ea['forEach'](_0x8e7b52=>_0x8e7b52['detach']?.())),_0x46fc19['length']&&(_0x51d8ab['markMultiRangeDeletion'](_0x46fc19,'tablePaste',{'tablePasteChainId':_0x27d712,'skipNestingCheck':!0x0}),_0x46fc19['forEach'](_0x5af5bc=>_0x5af5bc['detach']?.()));const _0x58215f=_0x51d8ab['markMultiRangeBlockFormat'](_0x573afb['map'](({element:_0x5132b9})=>_0x5132b9),{'formatGroupId':_0x589c6c()},[],'tablePasteCell',{'tablePasteChainId':_0x27d712});if(_0x58215f){const _0x50c08d=_0x58215f['getMarkers'](),_0x125c33=[];for(const {element:_0x1114e3,attributes:_0x2c0537}of _0x573afb){if(!_0x2c0537)continue;const _0x43c35f=_0x4fd544['model']['createRangeOn'](_0x1114e3),_0xc01480=_0x50c08d['find'](_0x24d4e6=>_0x24d4e6['getRange']()['isEqual'](_0x43c35f));_0xc01480&&_0x125c33['push']([_0xc01480['name'],_0x2c0537]);}_0x125c33['length']&&_0x58215f['setAttribute']('markerAttributes',Object['fromEntries'](_0x125c33));}_0x5c84d0=null;}));},{'priority':_0x10368a['high']+0xa}),_0x3a2f44['on']('contentInsertion',()=>{_0x4f90d8=!0x1;},{'priority':'lowest'}),_0x4fd544['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x81b8f9,_0x23e89a)=>{const [_0x548dba,_0x128ff9,,_0x23177a]=_0x23e89a;if(!_0x5c84d0)return;_0x81b8f9['stop']();const _0x2af4b3=_0x548dba['cell'],_0x5be359=_0x128ff9,_0x314941=We(_0x2af4b3),_0x2a2c3f=We(_0x5be359);_0x81b8f9['return']=_0x2af4b3;let _0x44d8f9=null,_0x1964fb=null;if(_0x2a2c3f||_0x314941){if(_0x314941&&!_0x2a2c3f){_0x23177a['remove'](_0x2af4b3['getChild'](0x0));for(const _0x3b1b60 of Array['from'](_0x5be359['getChildren']()))_0x23177a['insert'](_0x3b1b60,_0x2af4b3,'end');const _0x4bf6f3=_0x5c84d0['rowInsertionIndexes']['includes'](_0x548dba['row']),_0x505796=_0x5c84d0['columnInsertionIndexes']['includes'](_0x548dba['column']);_0x4bf6f3||_0x505796||(_0x44d8f9=rt['fromRange'](_0x23177a['createRangeIn'](_0x2af4b3)));}else _0x2a2c3f&&!_0x314941&&(_0x1964fb=_0x23177a['createRangeIn'](_0x2af4b3));}else{const _0x9d9124=_0x23177a['createElement']('tableCellSuggestion'),_0x19e1a7=_0x23177a['createElement']('tableCellSuggestion');_0x23177a['wrap'](_0x23177a['createRangeIn'](_0x2af4b3),_0x19e1a7),_0x23177a['insert'](_0x9d9124,_0x2af4b3,0x0);for(const _0x1777b9 of Array['from'](_0x5be359['getChildren']()))_0x23177a['insert'](_0x1777b9,_0x9d9124,'end');_0x44d8f9=rt['fromRange'](_0x23177a['createRangeOn'](_0x9d9124)),_0x1964fb=rt['fromRange'](_0x23177a['createRangeOn'](_0x19e1a7));}const _0x3c1776=Array['from'](_0x5be359['getAttributes']())['filter'](([_0x37b855])=>He['includes'](_0x37b855));_0x5c84d0['cells']['push']({'element':_0x2af4b3,'attributes':_0x3c1776['length']?Object['fromEntries'](_0x3c1776):null}),_0x44d8f9&&_0x5c84d0['insertionRanges']['push'](_0x44d8f9),_0x1964fb&&_0x5c84d0['deletionRanges']['push'](_0x1964fb);},{'priority':'high'}),_0x39b3bc['on']('insertColumns',(_0x1332eb,_0x6596d0)=>{const [_0x5157b5,_0x9b774f={}]=_0x6596d0;if(!_0x5c84d0)return;const _0x32181c=_0x9b774f['at']||0x0,_0x25c954=_0x9b774f['columns']||0x1;_0x5c84d0['columnInsertionIndexes']=new Array(_0x25c954)['fill'](_0x32181c)['map']((_0x3b30b6,_0x48e5b8)=>_0x3b30b6+_0x48e5b8);for(const {cell:_0x405d56}of _0x39b3bc['createTableWalker'](_0x5157b5,{'startColumn':_0x32181c,'endColumn':_0x32181c+_0x25c954-0x1}))_0x5c84d0['columnInsertionRanges']['push'](_0x4fd544['model']['createRangeOn'](_0x405d56));},{'priority':'low'}),_0x39b3bc['on']('insertRows',(_0x5b855c,_0x39662c)=>{const [_0x1bb83c,_0x7028fa={}]=_0x39662c;if(!_0x5c84d0)return;const _0x2d4b70=_0x7028fa['at']||0x0,_0x28023f=_0x7028fa['rows']||0x1;_0x5c84d0['rowInsertionIndexes']=new Array(_0x28023f)['fill'](_0x2d4b70)['map']((_0x11dabc,_0x28de85)=>_0x11dabc+_0x28de85);for(const {cell:_0x4eea7d}of _0x39b3bc['createTableWalker'](_0x1bb83c,{'startRow':_0x2d4b70,'endRow':_0x2d4b70+_0x28023f-0x1}))_0x5c84d0['rowInsertionRanges']['push'](_0x4fd544['model']['createRangeOn'](_0x4eea7d));},{'priority':'low'}),_0x51d8ab['descriptionFactory']['registerDescriptionCallback'](_0x30ef48=>{if(_0x30ef48['subType']&&_0x30ef48['subType']['startsWith']('tablePaste'))return _0x30ef48['previous']?{}:{'type':'insertion','content':St(_0x4fd544['locale'],'*Replace\x20table\x20cells*')};});const _0x5c449c=()=>!0x1;for(const _0x240364 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x51d8ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x240364,'join',_0x5c449c),_0x51d8ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x240364,'join',_0x5c449c),_0x51d8ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x240364,'join',_0x5c449c);_0x51d8ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5c449c),_0x51d8ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd2571c,_0xf70756,_0x3d7373)=>{const _0x378434=_0xd2571c['map'](_0x6759=>_0x6759['getContainedElement']())['filter'](_0x54ae6d=>_0x54ae6d),_0x41e6fb=new Map(_0x378434['map'](_0x284d38=>[_0x284d38,null]));if(_0x5c84d0){for(const {element:_0x1c1d67,attributes:_0x141710}of _0x5c84d0['cells'])_0x141710&&_0x41e6fb['set'](_0x1c1d67,_0x141710);}else{if(_0x3d7373&&_0x3d7373['markerAttributes'])for(const [_0x238315,_0x5dcac2]of Object['entries'](_0x3d7373['markerAttributes'])){const _0x44f247=_0x4fd544['model']['markers']['get'](_0x238315),_0x3b943c=_0x44f247?_0x44f247['getRange']()['getContainedElement']():null;_0x3b943c&&_0x41e6fb['set'](_0x3b943c,_0x5dcac2);}}_0x4fd544['model']['change'](_0x57f907=>{for(const [_0x64d19e,_0x258f4b]of _0x41e6fb)_0x57f907['setAttributes']({...$e,..._0x258f4b},_0x64d19e);});});const _0x41dcb3=(_0x515d8c,_0x3bd548)=>{_0x51d8ab['_suggestionFactory']['registerCustomCallback'](_0x515d8c,'tablePaste',_0x3bd548,(_0x3b6750,_0x2bde98,_0x2b99e7)=>{_0x4fd544['model']['change'](_0x189a04=>{const _0x31c2a9=[];for(const _0xfbb68b of _0x3b6750){const _0x58b900=_0xfbb68b['start']['nodeAfter'];_0x58b900['is']('element','tableCellSuggestion')&&_0x31c2a9['push'](_0x58b900);}_0x51d8ab['_suggestionFactory']['getSuggestionCallback'](_0x515d8c,null,_0x3bd548)(_0x3b6750,_0x2bde98,_0x2b99e7);for(const _0x72bc67 of _0x31c2a9)'$graveyard'!=_0x72bc67['root']['rootName']&&_0x189a04['unwrap'](_0x72bc67);});});};_0x41dcb3('insertion','accept'),_0x41dcb3('insertion','discard'),_0x41dcb3('deletion','accept'),_0x41dcb3('deletion','discard'),_0x51d8ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x426ba4=>{const _0x51d4f3=_0x426ba4['map'](_0x4ebc05=>_0x4ebc05['getContainedElement']()),_0x1c7f9a=_0x51d4f3[0x0]['findAncestor']('table'),{minRow:_0x2ff540,maxRow:_0x17d922}=_0x4f4588['_getCoordsForCells'](_0x51d4f3);_0x39b3bc['removeRows'](_0x1c7f9a,{'at':_0x2ff540,'rows':_0x17d922-_0x2ff540+0x1});}),_0x51d8ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x200603=>{const _0x5db00d=_0x200603['map'](_0x269d1f=>_0x269d1f['getContainedElement']()),_0x343792=_0x5db00d[0x0]['findAncestor']('table'),{minColumn:_0x2a8916,maxColumn:_0x258e3e}=_0x4f4588['_getCoordsForCells'](_0x5db00d);_0x39b3bc['removeColumns'](_0x343792,{'at':_0x2a8916,'columns':_0x258e3e-_0x2a8916+0x1});});const _0xeea32d=(_0xf25f3c,_0x1f66b3)=>{if(!_0x1f66b3['subType']||!_0x1f66b3['subType']['startsWith']('tablePaste'))return;const _0x49b9ea=_0x1f66b3['attributes']['tablePasteChainId'],_0x1346e2=_0x51d8ab['getSuggestions']()['filter'](_0x3f6448=>_0x3f6448['isInContent']&&_0x3f6448['attributes']&&_0x3f6448['attributes']['tablePasteChainId']==_0x49b9ea);_0x1346e2['length']&&_0x1f66b3['getAllAdjacentSuggestions']()['length']!=_0x1346e2['length']&&_0x1346e2['reduce']((_0x41a837,_0x41bb9b)=>(_0x41a837['next']=_0x41bb9b,_0x41bb9b['previous']=_0x41a837,_0x41bb9b));};function _0x55d1c0(_0x9c34a8,_0x57f64a=!0x0){const {id:_0x4f47b7,authorId:_0x3fd03d}=tt(_0x9c34a8['markerName']),_0x350d5d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2f0a46=_0x51d8ab['activeMarkers']['includes'](_0x9c34a8['markerName']);return _0x2f0a46&&_0x350d5d['push']('ck-suggestion-marker--active'),{'classes':_0x350d5d,'attributes':{'data-suggestion':_0x4f47b7,'data-author-id':_0x3fd03d},'priority':_0x2f0a46&&_0x57f64a?0xbc2:0xbb8};}_0x51d8ab['on']('suggestionLoaded',_0xeea32d,{'priority':'high'}),_0x51d8ab['on']('suggestionUnloaded',_0xeea32d,{'priority':'high'}),_0x4fd544['model']['document']['registerPostFixer'](()=>{let _0x23dd75=!0x1;const _0x4fbae2=Array['from'](_0x4fd544['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a58d0,data:_0x6846be}of _0x4fbae2){const {group:_0x5e527a,type:_0x5d986a,id:_0x442a9d}=tt(_0x3a58d0);if('suggestion'!=_0x5e527a||'deletion'!=_0x5d986a||_0x6846be['oldRange'])continue;if(!_0x51d8ab['hasSuggestion'](_0x442a9d))continue;const _0x4881a9=_0x51d8ab['getSuggestion'](_0x442a9d)['getRanges'](),_0x2263f8=_0x4fd544['plugins']['get']('Users')['me'];for(const _0x59a6c4 of _0x51d8ab['getSuggestions']())if(_0x59a6c4['isInContent']&&_0x59a6c4['author']==_0x2263f8&&'formatBlock'==_0x59a6c4['type']&&'tablePasteCell'==_0x59a6c4['subType']&&_0x59a6c4['getRanges']()['every'](_0x5c7f60=>_0x4881a9['some'](_0x2e6aec=>_0x2e6aec['containsRange'](_0x5c7f60,!0x0)))){for(const _0x182bca of _0x59a6c4['getAllAdjacentSuggestions']())_0x182bca['isInContent']&&(_0x182bca['discard'](),_0x23dd75=!0x0);}}return _0x23dd75;}),_0x4fd544['model']['document']['registerPostFixer'](_0x203585=>{const _0x14b36b=_0x4fd544['commands']['get']('redo');if(!_0x14b36b||!_0x14b36b['_createdBatches']['has'](_0x203585['batch']))return!0x1;let _0x41dc77=!0x1;const _0x1ff3e3=_0x4fd544['plugins']['get']('Users')['me'],_0x468d70=_0x4fd544['model']['document']['differ']['getChanges'](),_0x2d57fe=Array['from'](_0x4fd544['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x220d96,data:_0x45a4dd})=>{const {group:_0x1b3ae7,subType:_0x53b876,authorId:_0x1e7e26}=tt(_0x220d96);return'suggestion'==_0x1b3ae7&&'tablePaste'==_0x53b876&&_0x1e7e26==_0x1ff3e3['id']&&!_0x45a4dd['oldRange'];});for(const _0x2495f4 of _0x468d70){if('insert'!=_0x2495f4['type']||'tableCellSuggestion'!=_0x2495f4['name']||0x1!=_0x2495f4['length'])continue;const _0x561ec5=_0x203585['createRange'](_0x2495f4['position'],_0x2495f4['position']['getShiftedBy'](0x1));if(!_0x2d57fe['find'](({data:_0x78f4fa})=>_0x78f4fa['newRange']['isEqual'](_0x561ec5))){for(const {name:_0x562640,data:_0x467fcc}of _0x2d57fe)if(_0x561ec5['containsRange'](_0x467fcc['newRange'])){_0x203585['updateMarker'](_0x562640,{'range':_0x561ec5}),_0x41dc77=!0x0;break;}}}return _0x41dc77;}),_0x4fd544['model']['document']['registerPostFixer'](_0x5e2330=>{let _0x38258f=!0x1;const _0x2f4084=_0x4fd544['plugins']['get']('Users')['me'],_0x89eccc=_0x51d8ab['getSuggestions']()['filter'](_0x52433b=>_0x52433b['isInContent']&&_0x52433b['author']==_0x2f4084),_0x2dfefb=new Set(),_0xa63460=new Set();for(const _0xcd8595 of _0x89eccc)if('tablePaste'==_0xcd8595['subType'])for(const _0x1e4258 of _0xcd8595['getMarkers']()){const _0x2b7cf7=_0x1e4258['getRange']()['getContainedElement']();if(_0x2b7cf7){if(_0x2b7cf7['is']('element','tableCellSuggestion')&&We(_0x2b7cf7)){_0xcd8595['removeMarker'](_0x1e4258['name']),_0x2dfefb['add'](_0x2b7cf7),_0x38258f=!0x0;const _0x341f0f=_0x2b7cf7['nextSibling'],_0x28de00=_0x2b7cf7['previousSibling'],_0x244cbd=_0x341f0f&&_0x341f0f['is']('element','tableCellSuggestion'),_0x2ba8ca=_0x28de00&&_0x28de00['is']('element','tableCellSuggestion');_0x244cbd&&!_0x2dfefb['has'](_0x341f0f)&&_0xa63460['add'](_0x341f0f),_0x2ba8ca&&!_0x2dfefb['has'](_0x28de00)&&_0xa63460['add'](_0x28de00);}else _0x2b7cf7['is']('element','paragraph')&&_0x2b7cf7['isEmpty']&&(_0xcd8595['removeMarker'](_0x1e4258['name']),_0x38258f=!0x0);}}else{if('tablePasteCell'==_0xcd8595['subType']){if(!_0xcd8595['attributes']||!_0xcd8595['attributes']['tablePasteChainId'])continue;const _0x55c3b7=_0xcd8595['attributes']['markerAttributes'];if(_0x55c3b7&&Object['keys'](_0x55c3b7)['length'])continue;const _0x1e9da6=_0xcd8595['attributes']['tablePasteChainId'];let _0x59fdeb=!0x0,_0x18723c=!0x0;for(const _0x12664c of _0x89eccc)if(_0x12664c['subType']&&_0x12664c['subType']['startsWith']('tablePaste')){if(!_0x12664c['attributes']['tablePasteChainId']){_0x18723c=!0x1;break;}if(_0x12664c['id']!=_0xcd8595['id']&&_0x12664c['attributes']['tablePasteChainId']==_0x1e9da6){_0x59fdeb=!0x1;break;}}_0x18723c&&_0x59fdeb&&(_0xcd8595['removeMarkers'](),_0x38258f=!0x0);}}for(const _0x19eb82 of _0x2dfefb)_0x5e2330['remove'](_0x19eb82);for(const _0x125b0b of _0xa63460)_0x5e2330['unwrap'](_0x125b0b);return _0x38258f;}),_0x4fd544['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3f6d2e=>_0x55d1c0(_0x3f6d2e),'converterPriority':'high'}),_0x4fd544['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50c4fd,_0x38b97a)=>_0x38b97a['options']['showSuggestionHighlights']?_0x55d1c0(_0x50c4fd,!0x1):null,'converterPriority':'high'});const _0x59a9e8=_0x4fd544['editing']['view'];this['listenTo'](_0x59a9e8['document'],'clipboardOutput',(_0x5b97e3,_0x360185)=>{const _0x114636=[];for(const _0x3cffdd of _0x59a9e8['createRangeIn'](_0x360185['content'])['getItems']())_0x3cffdd['is']('element','suggestion-td')&&_0x114636['push'](_0x3cffdd);_0x59a9e8['change'](_0x35c86e=>{for(const _0x17446a of _0x114636)_0x35c86e['move'](_0x35c86e['createRangeIn'](_0x17446a),_0x35c86e['createPositionBefore'](_0x17446a)),_0x35c86e['remove'](_0x17446a);});});}};function We(_0x5e6ff1){if(_0x5e6ff1['isEmpty'])return!0x0;const _0x470b62=_0x5e6ff1['getChild'](0x0);return _0x470b62['is']('element','paragraph')&&_0x470b62['isEmpty'];}function je(_0x5254e6,_0x22f361={},_0x2bdf09){for(const {isAnchor:_0x44745b,cellHeight:_0x513c6c,cellWidth:_0x1907a6}of _0x2bdf09['createTableWalker'](_0x5254e6,{'includeAllSlots':!0x0,..._0x22f361}))if(!_0x44745b||0x1!=_0x513c6c||0x1!=_0x1907a6)return!0x1;return!0x0;}var Ke=class extends _0x3f3b34{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xca7ec2=this['editor']['plugins']['get']('TrackChangesEditing');_0xca7ec2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xca7ec2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xca7ec2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xca7ec2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xca7ec2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xca7ec2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x16d92f,_0x4ebdfb){const _0x3fec10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x268485=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5c2576=_0x4ebdfb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xcd94e5=_0x268485['getColumnGroupElement'](_0x5c2576);let _0x42d989=_0xcd94e5?_0x268485['getTableColumnsWidths'](_0xcd94e5):null,_0x3b2767=_0x5c2576['getAttribute']('tableWidth')||null;const _0xcbc9b3=_0x4ebdfb['tableWidth']||_0x3b2767,_0x5cc569=_0x4ebdfb['columnWidths']||_0x42d989,_0x33900d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c8df4 of _0x3fec10['getSuggestions']()){const _0x2d836e=_0x2c8df4['getContainedElement']();if('resizeTable'===_0x2c8df4['subType']&&_0x2d836e===_0x5c2576){_0x2c8df4['author']!==_0x33900d&&_0x2c8df4['discard']();const _0x253c77=_0x2c8df4['data']['commandParams'];_0x3b2767=_0x253c77[0x0]['tableWidth'],_0x42d989=_0x253c77[0x0]['columnWidths'];break;}}_0x16d92f({'table':_0x5c2576,'tableWidth':_0xcbc9b3,'columnWidths':_0x5cc569}),_0x3fec10['markBlockFormat'](_0x5c2576,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b2767,'columnWidths':_0x42d989}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5edb1c){if('formatBlock'!=_0x5edb1c['type']&&'formatInline'!=_0x5edb1c['type'])return;const {data:_0x9337a9}=_0x5edb1c;return _0x9337a9&&'resizeTable'===_0x9337a9['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x3f3b34{['afterInit'](){const _0x2ba048=this['editor'];_0x2ba048['plugins']['has']('Template')&&_0x2ba048['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x3f3b34{['afterInit'](){const _0x20caf3=this['editor'];if(!_0x20caf3['commands']['get']('insertTableOfContents'))return;_0x20caf3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f1792=_0x20caf3['plugins']['get']('TrackChangesEditing'),_0x336033=_0x20caf3['locale'];_0x1f1792['descriptionFactory']['registerElementLabel']('tableOfContents',_0x458deb=>St(_0x336033,'ELEMENT_TABLE_OF_CONTENTS',_0x458deb));}},qe=class extends _0x3f3b34{['afterInit'](){const _0x40a393=this['editor'];_0x40a393['plugins']['has']('Title')&&(_0x40a393['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x40a393['locale'],'ELEMENT_TITLE')),_0x40a393['model']['document']['registerPostFixer'](_0x5e4563=>{let _0x1b2ec0=!0x1;const _0x5d4ccd=Array['from'](_0x40a393['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c5ed7,data:_0x5647f6}of _0x5d4ccd){const {group:_0x435474}=tt(_0x2c5ed7);if('suggestion'!==_0x435474||!_0x5647f6['newRange'])continue;const _0x9b0ad=_0x5647f6['newRange'],_0x20f0ce=_0x9b0ad['end']['nodeBefore'];if(!_0x20f0ce||!_0x20f0ce['is']('element','title-content'))continue;if(!_0x9b0ad['start']['isTouching'](_0x9b0ad['end']))continue;const _0x161eb3=_0x40a393['model']['schema']['getNearestSelectionRange'](_0x9b0ad['end'],'forward');if(_0x161eb3&&_0x161eb3['isCollapsed']){const _0x1d23db=_0x5e4563['createRange'](_0x9b0ad['start'],_0x161eb3['start']);_0x1d23db['isEqual'](_0x9b0ad)||(_0x5e4563['updateMarker'](_0x2c5ed7,{'range':_0x1d23db}),_0x1b2ec0=!0x0);}_0x1b2ec0||(_0x5e4563['removeMarker'](_0x2c5ed7),_0x1b2ec0=!0x0);}return _0x1b2ec0;}));}},Ye=class extends _0x3f3b34{['afterInit'](){const _0x2cb06f=this['editor'],_0x313402=_0x2cb06f['plugins']['get']('TrackChangesEditing');_0x2cb06f['plugins']['has']('Uploadcare')&&(_0x313402['enableCommand']('uploadcare'),_0x2cb06f['plugins']['has']('UploadcareImageEdit')&&(_0x313402['enableCommand']('uploadcareImageEdit'),_0x313402['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x313402['descriptionFactory']['registerDescriptionCallback'](_0x643f13=>{if('attribute'!=_0x643f13['type'])return;const {data:_0x268a2f}=_0x643f13;return _0x268a2f&&'uploadcareImageId'==_0x268a2f['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x3f3b34{['afterInit'](){const _0x264208=this['editor'],_0x4ae3a2=_0x264208['plugins']['get']('TrackChangesEditing');_0x264208['plugins']['has']('UndoEditing')&&(_0x4ae3a2['enableCommand']('undo'),_0x4ae3a2['enableCommand']('redo'));}},Ze=class extends _0x3f3b34{static get['requires'](){return[ve];}['afterInit'](){const _0x1a4a79=this['editor'];_0x1a4a79['plugins']['has']('TableCaptionEditing')&&_0x1a4a79['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x3f3b34{['tableProperties'];['tableCellProperties'];constructor(_0x3e662d){super(_0x3e662d),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 _0x3e2860=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e0865 of this['tableProperties'])_0x3e2860['enableCommand'](_0x1e0865,(_0x8db64,_0x395d57)=>{const _0x195d37=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e0865,[_0x195d37],this['tableProperties'],'tableProperties',_0x8db64,_0x395d57);});_0x3e2860['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3e2860['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e2860['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1620a7,_0x4a935d)=>this['handleDiscardAction'](this['tableProperties'],_0x1620a7,_0x4a935d)),_0x3e2860['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x452264 of this['tableCellProperties'])this['editor']['commands']['get'](_0x452264)&&_0x3e2860['enableCommand'](_0x452264,(_0x5f37bc,_0x10af55)=>{const _0x1b58b9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x452264,_0x1b58b9,this['tableCellProperties'],'tableCellProperties',_0x5f37bc,_0x10af55);});_0x3e2860['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3e2860['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e2860['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2fe889,_0x3df025)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2fe889,_0x3df025)),_0x3e2860['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3e2860['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3e2860['descriptionFactory']['registerDescriptionCallback'](_0x48f1ca=>this['handleSuggestionDescription'](_0x48f1ca)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5c3496,_0x14172e,_0x250466,_0x436e3f,_0x418af1,_0x33862c){const _0x5d7c9c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x33862c['batch'],()=>{for(const _0x2a8e3c of _0x14172e)if(this['_getSuggestion'](_0x2a8e3c,_0x436e3f))_0x418af1(_0x33862c);else{const _0x4ceaea={};for(const _0x10b5ad of _0x250466){const _0x265f0e=_0x2a8e3c['getAttribute'](_0x10b5ad);void 0x0!==_0x265f0e&&(_0x4ceaea[_0x10b5ad]=_0x265f0e);}_0x418af1(_0x33862c),_0x5d7c9c['markBlockFormat'](_0x2a8e3c,{'commandParams':[_0x4ceaea]},[],_0x436e3f);}});}['handleDiscardAction'](_0x589e84,_0x1d11db,_0x2dbd5e){const _0x3eab32=_0x1d11db[0x0]['start']['nodeAfter'],_0x5ebe7a=_0x2dbd5e['commandParams'][0x0];this['editor']['model']['change'](_0x4bfb22=>{for(const _0x1d9c53 of _0x589e84)void 0x0!==_0x5ebe7a[_0x1d9c53]?_0x4bfb22['setAttribute'](_0x1d9c53,_0x5ebe7a[_0x1d9c53],_0x3eab32):_0x4bfb22['removeAttribute'](_0x1d9c53,_0x3eab32);});}['handleSuggestionDescription'](_0x2a2001){if(_0x2a2001['data'])switch(_0x2a2001['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5d63f7,_0x224563){const _0x252c5e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x78f372 of _0x252c5e['getSuggestions']({'skipNotAttached':!0x0})){const _0xf45de6=_0x78f372['getContainedElement']();if(_0x78f372['subType']===_0x224563&&_0xf45de6===_0x5d63f7)return _0x78f372;}return null;}['_registerTablePropertiesAttributes'](){const _0x3d2c52=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb5dd0d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x122fdb of _0xb5dd0d){const _0x377c88=_0x122fdb['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3d2c52['descriptionFactory']['registerAttributeLabel'](_0x122fdb,St(this['editor']['locale'],'FORMAT_'+_0x377c88));}}},tn=class extends _0x3f3b34{['afterInit'](){const _0x3e1831=this['editor'];if(!_0x3e1831['plugins']['has']('LineHeight'))return;const _0x47684b=_0x3e1831['plugins']['get']('TrackChangesEditing'),_0xc71e94=_0x3e1831['locale'];_0x47684b['enableDefaultAttributesIntegration']('lineHeight'),_0x47684b['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0xc71e94,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x3f3b34{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x4b575b,_0x5d966d,_0x786008,_0xc66639,_0x34e5cd,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3022c8){super(_0x3022c8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x565a0c,_0x46013f,_0x1e52e3,_0x5e496b)=>{this['_model']['change'](()=>{for(const _0xe4cfbb of[..._0x5e496b,..._0x1e52e3])this['_model']['markers']['has'](_0xe4cfbb)&&_0x3022c8['editing']['reconvertMarker'](_0xe4cfbb);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3022c8['plugins']['get'](_0x4b575b),this['_suggestionsConversion']=_0x3022c8['plugins']['get'](_0x5d966d),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3022c8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3022c8['config']['get']('trackChanges.trackFormatChanges'),_0x3022c8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3022c8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x3022c8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d7c47=this['editor'];_0x3d7c47['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ae932,{writer:_0x22c9c1})=>{let _0x5dc0d0='suggestion:'+_0x4ae932['getAttribute']('suggestion-type')+':'+_0x4ae932['getAttribute']('id');return _0x4ae932['getAttribute']('marker-count')&&(_0x5dc0d0+=':'+_0x4ae932['getAttribute']('marker-count')),_0x22c9c1['createElement']('$marker',{'data-name':_0x5dc0d0});}}),_0x3d7c47['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d7c47['model']['document']['registerPostFixer'](_0x2450ca=>{let _0x45b5b1=!0x1;const _0x3ad889=Array['from'](_0x3d7c47['model']['document']['differ']['getChangedMarkers']()),_0x470fa4=new Set();for(const {name:_0xd84b4e,data:_0x37a1e0}of _0x3ad889){const {group:_0x54077b,type:_0xab23ac,subType:_0xe10140,id:_0x555a3c}=tt(_0xd84b4e);if('suggestion'!==_0x54077b)continue;const _0x241447=_0xe10140?'suggestion:'+_0xab23ac+':'+_0xe10140+':'+_0x555a3c:'suggestion:'+_0xab23ac+':'+_0x555a3c,_0x5a0130=_0x3d7c47['model']['markers']['getMarkersGroup'](_0x241447),_0x2dcec3=_0x3d7c47['model']['markers']['get'](_0xd84b4e),_0x3ff771=this['_suggestions']['get'](_0x555a3c);if(null!=_0x37a1e0['newRange']){'formatInline'==_0xab23ac&&(_0x45b5b1=_0x45b5b1||an(_0x37a1e0['newRange'],_0xd84b4e,_0x2450ca,_0x3d7c47['model']['schema']));const _0x3e3486='attribute'==_0xab23ac&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0xe10140)),_0x127d43='attribute'==_0xab23ac&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0xe10140));if(_0x37a1e0['newRange']['isCollapsed']||'$graveyard'==_0x37a1e0['newRange']['root']['rootName']||'formatBlock'==_0xab23ac&&!ln(_0x37a1e0['newRange'])||_0x3e3486&&!ln(_0x37a1e0['newRange'])||_0x127d43&&un(_0x37a1e0['newRange'])||'deletion'==_0xab23ac&&un(_0x37a1e0['newRange'])||_0x2dcec3&&dn(_0x2dcec3,_0x5a0130))_0x2450ca['removeMarker'](_0xd84b4e),_0x45b5b1=!0x0;else{if(!_0x3ff771||!_0x3ff771['isInContent'])continue;if(_0x37a1e0['newRange']&&_0x37a1e0['oldRange']&&_0x37a1e0['newRange']['isEqual'](_0x37a1e0['oldRange']))continue;_0x470fa4['add'](_0x3ff771);}}}return _0x470fa4['size']>0x0&&(_0x45b5b1=!!this['_joinWithAdjacentSuggestions'](_0x470fa4)||_0x45b5b1),_0x45b5b1;}),_0x3d7c47['model']['document']['registerPostFixer'](_0x4c4d01=>{let _0x2582bb=!0x1;for(const _0x1b895e of _0x3d7c47['model']['document']['differ']['getChanges']())if('insert'==_0x1b895e['type'])for(const _0x5e97fc of this['_suggestions']['values']()){if(_0x5e97fc['isMultiRange']||!_0x5e97fc['isInContent'])continue;const _0x1b434d='formatBlock'==_0x5e97fc['type'],_0x14fcf8=this['_getAttributeKey'](_0x5e97fc),_0x565a8d=_0x14fcf8&&this['_suggestionsConversion']['isBlockAttribute'](_0x14fcf8);if(!_0x1b434d&&!_0x565a8d)continue;const _0x2ac218=_0x5e97fc['getFirstRange']();if(_0x2ac218['start']['parent']!=_0x2ac218['end']['parent']&&!_0x2ac218['end']['isAtEnd']){const _0x39d6b8=_0x3d7c47['model']['createPositionAt'](_0x2ac218['start']['nodeAfter'],'end'),_0x5423d9=_0x3d7c47['model']['createRange'](_0x2ac218['start'],_0x39d6b8);_0x4c4d01['updateMarker'](_0x5e97fc['getFirstMarker'](),{'range':_0x5423d9}),_0x2582bb=!0x0;}}return _0x2582bb;}),_0x3d7c47['model']['document']['registerPostFixer'](_0x252515=>this['_processAttributeChanges'](_0x252515)),_0x3d7c47['model']['document']['registerPostFixer'](_0x5976f6=>!_0x5976f6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5976f6)),_0x3d7c47['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d7c47['model']['document']['on']('change:data',(_0x11d6bc,_0xf12528)=>{if(!_0xf12528['isLocal']||_0xf12528['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4edc80=_0x3d7c47['model']['document']['differ']['getChanges']();if(0x0==_0x4edc80['length'])return;const _0xc81736=[],_0x21e593=_0x4edc80['filter'](_0x4b18bb=>'attribute'==_0x4b18bb['type']),_0x5edd42=_0x4edc80['filter'](_0x173411=>'insert'==_0x173411['type']&&'$text'!=_0x173411['name']);for(const _0x41c7da of _0x21e593)this['_suggestionsConversion']['isRegisteredAttribute'](_0x41c7da['attributeKey'])&&_0xc81736['push']({'key':_0x41c7da['attributeKey'],'newValue':_0x41c7da['attributeNewValue'],'oldValue':_0x41c7da['attributeOldValue'],'range':hn(_0x41c7da['range'],_0x3d7c47['model'])});for(const _0x2649a8 of _0x5edd42){if('rename'!=_0x2649a8['action']&&'refresh'!=_0x2649a8['action'])continue;const _0x1ef9ee=gn(_0x2649a8['position']['nodeAfter'],_0x3d7c47['model']),_0x471b30=_0x2649a8['before'];'rename'==_0x2649a8['action']&&_0xc81736['push']({'key':en,'newValue':_0x2649a8['name'],'oldValue':_0x471b30['name'],'range':_0x1ef9ee});for(const [_0x41da32,_0x3576d0]of _0x471b30['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x41da32))continue;const _0x4378d6=_0x2649a8['attributes']['get'](_0x41da32);_0x3576d0!==_0x4378d6&&_0xc81736['push']({'key':_0x41da32,'newValue':_0x4378d6,'oldValue':_0x3576d0,'range':_0x1ef9ee});}for(const [_0x2bc686,_0x348394]of _0x2649a8['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2bc686)&&(_0x471b30['attributes']['has'](_0x2bc686)||_0xc81736['push']({'key':_0x2bc686,'newValue':_0x348394,'oldValue':null,'range':_0x1ef9ee}));}0x0!=_0xc81736['length']&&_0x3d7c47['model']['enqueueChange'](_0xf12528,_0x456673=>{const _0x3e47b5=_0x589c6c();for(const {range:_0x42b1ec,key:_0x2a2226,oldValue:_0x468eba,newValue:_0x2cc523}of _0xc81736)this['markAttributeChange'](_0x42b1ec,_0x2a2226,_0x468eba,_0x2cc523,{'groupId':_0x3e47b5});this['_reduceExistingSuggestions'](_0x456673,_0xc81736);});},{'priority':'lowest'}),_0x3d7c47['model']['markers']['on']('update:suggestion',(_0x311d3c,_0x458af0,_0x48d185)=>{if(null==_0x48d185){const {id:_0x2b3cdf}=tt(_0x458af0['name']),_0x36df2c=this['_suggestions']['get'](_0x2b3cdf);_0x36df2c&&_0x36df2c['addMarkerName'](_0x458af0['name']);}}),_0x3d7c47['model']['document']['on']('change:data',()=>{const _0x25efda=Array['from'](_0x3d7c47['model']['document']['differ']['getChangedMarkers']())['filter'](_0x167602=>'suggestion'===tt(_0x167602['name'])['group']);if(0x0===_0x25efda['length'])return;_0x25efda['sort']((_0x25ccc3,_0xf131fd)=>{const _0x1418aa=_0x25ccc3['data']['oldRange'],_0x44d5a3=_0xf131fd['data']['oldRange'];return null===_0x1418aa&&null===_0x44d5a3?0x0:null===_0x1418aa&&null!==_0x44d5a3?-0x1:null!==_0x1418aa&&null===_0x44d5a3?0x1:_0x1418aa['start']['isBefore'](_0x44d5a3['start'])?-0x1:0x1;});const _0x2da7df=new Set(),_0x498ca6=new Set();for(const {name:_0x16d205,data:_0x2f2274}of _0x25efda){const {id:_0x4dd084}=tt(_0x16d205);if(null===_0x2f2274['oldRange']){const _0x435cda=this['_handleNewSuggestionMarker'](_0x16d205);_0x498ca6['add'](_0x435cda);}else{const _0x186214=this['_suggestions']['get'](_0x4dd084);null!==_0x2f2274['newRange']||_0x186214['isInContent']?(_0x2da7df['add'](_0x186214['head']),_0x498ca6['add'](_0x186214)):this['_removeSuggestion'](_0x186214);}}_0x498ca6['size']>0x0&&this['_refreshSuggestionsChain'](_0x498ca6);for(const _0x5f571e of _0x2da7df)this['fire']('suggestionChanged',_0x5f571e);}),_0x3d7c47['model']['on']('applyOperation',(_0x36c911,_0x1b1ccd)=>{const _0x27b8c8=_0x1b1ccd[0x0];if(!this['_suggestions']['size'])return;if(!_0x27b8c8['isDocumentOperation'])return;if(_0x27b8c8['batch']['isUndo']||!_0x27b8c8['batch']['isLocal'])return;let _0x1f93ed,_0x1539d2;switch(_0x27b8c8['type']){case'insert':_0x1f93ed=_0x3d7c47['model']['createPositionAt'](_0x27b8c8['position']),_0x1539d2=_0x1f93ed['getShiftedBy'](_0x27b8c8['howMany']);break;case'split':_0x1f93ed=_0x3d7c47['model']['createPositionAt'](_0x27b8c8['splitPosition']),_0x1539d2=_0x3d7c47['model']['createPositionAt'](_0x27b8c8['moveTargetPosition']);break;case'move':_0x1f93ed=_0x3d7c47['model']['createPositionAt'](_0x27b8c8['targetPosition']),_0x1539d2=_0x1f93ed['getShiftedBy'](_0x27b8c8['howMany']);break;default:return;}const _0xb8eeec=_0x3d7c47['model']['createRange'](_0x1f93ed,_0x1539d2);_0x3d7c47['model']['change'](()=>{for(const {suggestion:_0x57647e,meta:_0x2e1a4e}of this['_findSuggestions'](_0xb8eeec)){if(_0x57647e['isMultiRange'])continue;if('formatInline'==_0x57647e['type'])continue;const _0x31830f=this['_getAttributeKey'](_0x57647e);if(_0x31830f&&this['_suggestionsConversion']['isBlockAttribute'](_0x31830f)&&'split'!=_0x27b8c8['type'])continue;const _0x343d12=_0x57647e['data']&&_0x57647e['data']['multipleBlocks'];('formatBlock'!=_0x57647e['type']||'split'==_0x27b8c8['type']&&!_0x343d12)&&(_0x2e1a4e['containsRangeInObject']||'insertion'==_0x57647e['type']&&_0x2e1a4e['isOwn']||_0x57647e['getFirstRange']()['containsRange'](_0xb8eeec)&&this['_breakSuggestionMarker'](_0x57647e,_0x1f93ed,_0x1539d2));}});},{'priority':'lowest'}),_0x3d7c47['model']['on']('deleteContent',(_0x4706f3,_0x57e5e0)=>{const _0x2f0de9=_0x57e5e0[0x0],_0x119c7b=_0x57e5e0[0x1];if(_0x119c7b&&_0x119c7b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2f0de9['isCollapsed'])return;const _0x4e909c=_0x3d7c47['model']['schema'],{start:_0x6b82c0,end:_0x37d5ea}=_0x2f0de9['getFirstRange'](),_0x7ffe13=_0x6b82c0['nodeAfter']&&_0x4e909c['isLimit'](_0x6b82c0['nodeAfter'])?null:_0x4e909c['getNearestSelectionRange'](_0x6b82c0,'forward'),_0x4930dc=_0x37d5ea['nodeBefore']&&_0x4e909c['isLimit'](_0x37d5ea['nodeBefore'])?null:_0x4e909c['getNearestSelectionRange'](_0x37d5ea,'backward'),_0x104b48=_0x3d7c47['model']['createRange'](_0x7ffe13?_0x7ffe13['start']:_0x6b82c0,_0x4930dc?_0x4930dc['end']:_0x37d5ea);_0x3d7c47['model']['change'](_0x1055ad=>{this['markDeletion'](_0x104b48);const _0x3cf4f8=_0x3d7c47['model']['schema']['getNearestSelectionRange'](_0x104b48['start']);_0x2f0de9['is']('documentSelection')?_0x1055ad['setSelection'](_0x3cf4f8):_0x2f0de9['setTo'](_0x3cf4f8);}),_0x4706f3['stop']();},{'priority':_0x10368a['normal']+0xa}),_0x3d7c47['model']['on']('insertContent',(_0x575a07,_0x9ccba1)=>{const _0x4f306d=_0x9ccba1[_0x9ccba1['length']-0x1];_0x4f306d&&_0x4f306d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d7c47['model']['change'](()=>{let _0x4c33b1=_0x3d7c47['model']['insertContent'](_0x9ccba1[0x0],_0x9ccba1[0x1],_0x9ccba1[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c33b1)return;_0x575a07['return']=_0x4c33b1['clone']();const _0x5e6e93=_0x4c33b1['end']['nodeBefore'],_0x377d21=_0x3d7c47['model']['schema'];_0x5e6e93&&_0x377d21['isBlock'](_0x5e6e93)&&!_0x377d21['isObject'](_0x5e6e93)&&(_0x4c33b1=_0x3d7c47['model']['createRange'](_0x4c33b1['start'],_0x3d7c47['model']['createPositionAt'](_0x5e6e93,'end'))),this['markInsertion'](_0x4c33b1);}),_0x575a07['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c536f=new Tt(_0x3d7c47,this['_suggestions']);_0x3d7c47['commands']['add']('acceptSuggestion',_0x5c536f),this['enableCommand']('acceptSuggestion');const _0x3fbbee=new _t(_0x3d7c47,this['_suggestions']);_0x3d7c47['commands']['add']('discardSuggestion',_0x3fbbee),this['enableCommand']('discardSuggestion'),_0x3d7c47['commands']['add']('acceptAllSuggestions',new Ct(_0x3d7c47,_0x5c536f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d7c47['commands']['add']('discardAllSuggestions',new Ct(_0x3d7c47,_0x3fbbee,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d7c47['commands']['add']('acceptSelectedSuggestions',new Rt(_0x3d7c47,_0x5c536f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d7c47['commands']['add']('discardSelectedSuggestions',new Rt(_0x3d7c47,_0x3fbbee,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e414e=_0x3d7c47['plugins']['get'](_0x4b575b);this['listenTo'](_0x1e414e,'addComment',(_0x489119,{threadId:_0x4d0b69})=>{const _0x52939a=this['_suggestions']['get'](_0x4d0b69);_0x52939a&&_0x52939a['commentThread']&&0x1===_0x52939a['commentThread']['length']&&this['_updateSuggestionData'](_0x4d0b69,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e414e,'removeComment',(_0x31876e,{threadId:_0x41ddc0})=>{const _0xe23613=this['_suggestions']['get'](_0x41ddc0);_0xe23613&&_0xe23613['commentThread']&&!_0xe23613['commentThread']['length']&&this['_updateSuggestionData'](_0x41ddc0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x16252c){const _0x3f099a='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0xed1c43=0x78e40,_0x3344f5=window['Date']['now'](),_0x3afdb7=_0x16252c['editor'],_0x48f828=new window['Promise'](_0x5353ae=>{_0x3afdb7['once']('ready',_0x5353ae);}),_0x146885={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1db270=_0x3afdb7['config']['get']('licenseKey');async function _0x5b1377(){let _0x28231f,_0x13f930=null,_0x9644e2=null;try{return'GPL'==_0x1db270?'NotAllowed':(_0x28231f=_0x2f4756(),_0x28231f?(_0x28231f['usageEndpoint']&&(_0x9644e2=_0x2b4a64(_0x28231f['usageEndpoint'],_0x28231f['jti'])),await _0x2db83d()?_0x659ca8()?_0x1167be()?'Expired':_0x3a493c()?('evaluation'==_0x28231f['licenseType']&&(_0x13f930=_0x2af73e('EvaluationLimit')),await _0x25a121()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1167be(){const _0x59afae=['evaluation','trial']['includes'](_0x28231f['licenseType'])?_0x3344f5/0x3e8:0xe10*_0xed1c43;return _0x28231f['exp']<_0x59afae;}function _0x659ca8(){const _0x55aabe=_0x28231f['features'];if(!_0x55aabe)return!0x1;if(_0x55aabe['includes']('*'))return!0x0;if(_0x55aabe['includes']('TC'))return!0x0;if(_0x55aabe['includes']('RTC')){if(_0x42367c())return!0x0;if(_0x5eac95()||_0x3042e0())return!0x0;}return!0x1;}function _0x3a493c(){const _0x5c13d7=_0x28231f['licensedHosts'];if(!_0x5c13d7||0x0==_0x5c13d7['length'])return!0x0;const {hostname:_0x42b15f}=new URL(window['location']['href']);if(_0x5c13d7['includes'](_0x42b15f))return!0x0;const _0x5a2afe=_0x42b15f['split']('.');return _0x5c13d7['filter'](_0x5c496a=>_0x5c496a['includes']('*'))['map'](_0x508511=>_0x508511['split']('.'))['filter'](_0x32aa07=>_0x32aa07['length']<=_0x5a2afe['length'])['map'](_0x441e06=>Array(_0x5a2afe['length']-_0x441e06['length'])['fill']('*'===_0x441e06[0x0]?'*':'')['concat'](_0x441e06))['some'](_0x4492a5=>_0x5a2afe['every']((_0x187cb8,_0xf12499)=>_0x4492a5[_0xf12499]===_0x187cb8||'*'===_0x4492a5[_0xf12499]));}function _0x25a121(){return _0x13f930&&_0x9644e2?new window['Promise']((_0x5715c3,_0x2bc3fa)=>{_0x13f930['then'](_0x5715c3,_0x2bc3fa),_0x9644e2['then'](_0x6484d8=>{'Valid'!=_0x6484d8&&_0x5715c3(_0x6484d8);},_0x2bc3fa);}):_0x13f930||_0x9644e2||'Valid';}}function _0x2b4a64(_0x195b86,_0x365979){return new window['Promise'](_0xb13d85=>{if(_0x272d66())return _0xb13d85('Valid');_0x149de3(),_0x3afdb7['decorate']('_sendUsageRequest');let _0x4fa4bd=!0x1;const _0x2f6a9a=_0x589c6c();function _0xaf0ff4(_0x39a185){return!!_0x39a185&&('object'==typeof _0x39a185||'function'==typeof _0x39a185)&&'function'==typeof _0x39a185['then']&&'function'==typeof _0x39a185['catch'];}function _0xc07ce8(_0x113614){_0x3df290(_0x113614)['then'](_0x3a98c8=>_0x3a98c8&&'ok'==_0x3a98c8['status']?_0x504034(_0x3cc5b2(_0x2f6a9a+_0x365979))!=_0x3a98c8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xde01c8=>(_0x4f3a67(),_0xde01c8),()=>{const _0x3505fb=_0x28d5cd();return null==_0x3505fb?(_0x4f3a67(),'Valid'):_0x3344f5-_0x3505fb>0x240c8400?'UsageLimit':'Valid';})['then'](_0xb13d85)['catch'](()=>{_0xb13d85('UsageLimit');});const _0x43f3d4=0x36ee80;function _0x4f3a67(){const _0x5e1f83='llct-'+_0x504034(_0x3cc5b2(_0x195b86)),_0x48db14=_0x34134e(_0x504034(window['Math']['ceil'](_0x3344f5/_0x43f3d4)));window['localStorage']['setItem'](_0x5e1f83,_0x48db14);}function _0x28d5cd(){const _0x295764='llct-'+_0x504034(_0x3cc5b2(_0x195b86)),_0x4a3e5c=window['localStorage']['getItem'](_0x295764);return _0x4a3e5c?window['parseInt'](_0x34134e(_0x4a3e5c),0x10)*_0x43f3d4:null;}function _0x3df290(_0x183805){return new window['Promise']((_0x40e218,_0x292dff)=>{_0x183805['then'](_0x40e218,_0x292dff),window['setTimeout'](_0x292dff,0x1d4c0);});}}_0x3afdb7['on']('_sendUsageRequest',(_0x2eebfe,_0x28c7cf)=>{if(_0x28c7cf[0x0]!=_0x195b86)return _0xb13d85('UsageLimit');_0x28c7cf[0x1]={..._0x28c7cf[0x1],'requestId':_0x2f6a9a};},{'priority':'high'}),_0x3afdb7['on']('_sendUsageRequest',_0x523083=>{_0xaf0ff4(_0x523083['return'])&&(_0x4fa4bd=!0x0,_0xc07ce8(_0x523083['return']));},{'priority':'low'}),_0x48f828['then'](()=>{_0x4fa4bd||_0xb13d85('UsageLimit');});});function _0x272d66(){return'auto'==_0x3afdb7['editing']['view']['_overlayModeHint'];}function _0x149de3(){_0x3afdb7['editing']['view']['_overlayModeHint']='auto';}}function _0x2af73e(_0x282dab){const _0x87524d=[new window['Promise'](_0x19f3f7=>setTimeout(_0x19f3f7,0x93ecc)),_0x48f828['then'](()=>new window['Promise'](_0x478e95=>{let _0x5dc427=0x0;_0x3afdb7['model']['on']('applyOperation',(_0x19a6b9,_0x56783d)=>{_0x56783d[0x0]['isDocumentOperation']&&_0x5dc427++,0x5e8==_0x5dc427&&(_0x478e95(),_0x19a6b9['off']());});}))];return window['Promise']['race'](_0x87524d)['then'](()=>_0x282dab);}async function _0x52a319(){await _0x48f828,_0x3afdb7['model']['change']=_0x3f9b87,_0x3afdb7['model']['enqueueChange']=_0x3f9b87,_0x3afdb7['enableReadOnlyMode']('model');}function _0x42367c(){return _0x389a55('WebSocketGateway')&&'connected'==_0xbaab04('WebSocketGateway')['state'];}function _0x5eac95(){return _0x389a55('RevisionViewerIntegration');}function _0x3042e0(){return _0x389a55('TrackChangesDataGetter');}function _0xa7161a(_0x5d0ce4){const _0x2dc63d=_0x417b04();_0x3afdb7[_0x2dc63d]='trackChangesLicenseKey'+_0x5d0ce4,'Valid'!=_0x5d0ce4&&_0x52a319();}function _0x417b04(){const _0x577486=window['String'](window['performance']['now']())['replace']('.','');let _0x41374a='R';for(let _0x2a791e=0x0;_0x2a791e<_0x577486['length'];_0x2a791e+=0x2){let _0xc47a6a=window['parseInt'](_0x577486['substring'](_0x2a791e,_0x2a791e+0x2));_0xc47a6a>=0x3e&&(_0xc47a6a-=0x3e),_0x41374a+=_0x3f099a[_0xc47a6a];}return _0x41374a;}function _0x2f4756(){const _0x2575bc=_0x1db270['split']('.');if(0x3!=_0x2575bc['length'])return null;return _0x33b294(_0x2575bc[0x1]);function _0x33b294(_0x2e34ce){const _0x523310=_0x449965(_0x2e34ce);return _0x523310&&_0x98664a()?_0x523310:null;function _0x98664a(){const _0x5e984e=_0x523310['jti'],_0x5533fa=window['parseInt'](_0x5e984e['substring'](_0x5e984e['length']-0x8),0x10),_0x47fbff={..._0x523310,'jti':_0x5e984e['substring'](0x0,_0x5e984e['length']-0x8)};return delete _0x47fbff['vc'],_0x3cc5b2(_0x47fbff)==_0x5533fa;}}}async function _0x2db83d(){let _0x1b2685=!0x0;try{const [_0x2d45c4,_0x525671,_0x2a04fa]=_0x1db270['split']('.');return _0x507aee(_0x2d45c4),await _0x4bcef2(_0x2d45c4,_0x525671,_0x2a04fa),_0x1b2685;}catch{return!0x1;}function _0x507aee(_0x4557d9){const _0x411d48=_0x449965(_0x4557d9);_0x411d48&&'ES256'==_0x411d48['alg']||(_0x1b2685=!0x1);}async function _0x4bcef2(_0x4167cb,_0x246554,_0x2b0a0f){const _0x1051c1=window['Uint8Array']['from'](_0x5e12c4(_0x2b0a0f),_0x5ca553=>_0x5ca553['charCodeAt'](0x0)),_0x4b2883=new window['TextEncoder']()['encode'](_0x4167cb+'.'+_0x246554),_0x5604c5=window['crypto']['subtle'];if(!_0x5604c5)return;const _0x3e7f59=await _0x5604c5['importKey']('jwk',_0x146885,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5604c5['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3e7f59,_0x1051c1,_0x4b2883)||(_0x1b2685=!0x1);}}function _0x449965(_0xe546bc){return _0xe546bc['startsWith']('ey')?JSON['parse'](_0x5e12c4(_0xe546bc)):null;}function _0x5e12c4(_0x18fb77){return window['atob'](_0x18fb77['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3cc5b2(_0x1fba07){let _0x468b6d=0x1505;function _0x55bd9c(_0x941e25){for(let _0x38f834=0x0;_0x38f834<_0x941e25['length'];_0x38f834++){const _0x881bc1=_0x941e25['charCodeAt'](_0x38f834);_0x468b6d=(_0x468b6d<<0x5)+_0x468b6d+_0x881bc1,_0x468b6d&=_0x468b6d;}}function _0x44dab3(_0x24f4d0){Array['isArray'](_0x24f4d0)?_0x24f4d0['forEach'](_0x44dab3):_0x24f4d0&&'object'==typeof _0x24f4d0?Object['entries'](_0x24f4d0)['sort']()['forEach'](([_0x2a6eaf,_0x536d13])=>{_0x55bd9c(_0x2a6eaf),_0x44dab3(_0x536d13);}):_0x55bd9c(window['String'](_0x24f4d0));}return _0x44dab3(_0x1fba07),_0x468b6d>>>0x0;}function _0x504034(_0x515b4c){return _0x515b4c['toString'](0x10)['padStart'](0x8,'0');}function _0x34134e(_0x358930){return _0x358930['split']('')['reverse']()['join']('');}function _0x389a55(_0x284ccd){return _0x3afdb7['plugins']['has'](_0x284ccd);}function _0xbaab04(_0x29e14f){return _0x3afdb7['plugins']['get'](_0x29e14f);}function _0x3f9b87(){}_0xa7161a(await _0x5b1377());}(this);}set['adapter'](_0x9b70e4){if(this['_adapter'])throw new _0x2185d('track-changes-adapter-already-set',this);this['_adapter']=_0x9b70e4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x102895=!0x1,toJSON:_0xded454=!0x1}={}){const _0x478d62=[];for(const _0x4da391 of this['_suggestions']['values']())_0x102895&&!_0x4da391['isInContent']||_0x478d62['push'](_0x4da391);return _0xded454?_0x478d62['map'](_0x493748=>_0x493748['toJSON']()):_0x478d62;}['getSuggestion'](_0x56bb27){const _0x117dcd=this['_suggestions']['get'](_0x56bb27);if(!_0x117dcd)throw new _0x2185d('track-changes-suggestion-not-found',this);return _0x117dcd;}['hasSuggestion'](_0x56189b){return this['_suggestions']['has'](_0x56189b);}['addSuggestionData'](_0x13167f){const {authorId:_0xe1da1,id:_0x2ce42c,originalSuggestionId:_0x2e8359,attributes:_0x268f1d}=_0x13167f,[_0x419068,_0x54eb53]=_0x13167f['type']['split'](':'),_0x185f0d=this['_suggestions']['get'](_0x2ce42c)||this['_createSuggestion'](_0x419068,_0x54eb53,_0x2ce42c,_0xe1da1,_0x268f1d,_0x2e8359);if(this['_addThreadToSuggestion'](_0x185f0d),this['_checkSuggestionCorrectness'](_0x185f0d,_0x419068,_0x54eb53||null,_0xe1da1),_0x185f0d['createdAt']=_0x13167f['createdAt'],_0x185f0d['_isDataLoaded']=!0x0,_0x268f1d&&_0x268f1d['@external']){const _0x1064f9=_0x268f1d['@external'],_0x1aaed1=this['_getExternalAuthor'](_0x1064f9['authorName']);_0x185f0d['authoredAt']=_0x1064f9['createdAt'],_0x185f0d['author']=_0x1aaed1;}else _0x185f0d['authoredAt']=_0x13167f['createdAt'];switch(_0x13167f['data']&&(_0x185f0d['data']=_0x13167f['data']),_0x13167f['attributes']&&(_0x185f0d['attributes']=_0x13167f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x185f0d['_saved']=!0x0),this['_suggestionState']['get'](_0x185f0d)){case'notReady':this['_suggestionState']['set'](_0x185f0d,'dataReady');break;case'markerReady':_0x185f0d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x185f0d])),this['_refreshSuggestionsChain'](new Set([_0x185f0d])),this['_suggestionState']['set'](_0x185f0d,'ready'),this['fire']('suggestionLoaded',_0x185f0d)):this['_suggestionState']['set'](_0x185f0d,'removed');}return _0x185f0d;}['acceptSuggestion'](_0x4db8c9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c66d2 of _0x4db8c9['getAllAdjacentSuggestions']())_0x2c66d2['accept']();});});}['discardSuggestion'](_0x1d0be9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30bc11 of _0x1d0be9['getAllAdjacentSuggestions']())_0x30bc11['discard']();});});}['enableCommand'](_0x3420b1,_0x17ff70){const _0x2c4a32=this['editor']['commands']['get'](_0x3420b1);if(!_0x2c4a32)throw new _0x2185d('track-changes-command-not-found',this,{'commandName':_0x3420b1});if(this['_enabledCommands']['has'](_0x2c4a32))throw new _0x2185d('track-changes-enable-command-twice',this,{'commandName':_0x3420b1});this['_enabledCommands']['add'](_0x2c4a32),_0x17ff70&&_0x2c4a32['on']('execute',(_0x44d02c,_0x20bada)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20bada['length']>0x0&&_0x20bada[_0x20bada['length']-0x1]&&_0x20bada[_0x20bada['length']-0x1]['forceDefaultExecution']?_0x20bada['pop']():(_0x44d02c['return']=_0x17ff70((..._0x24abc8)=>_0x2c4a32['execute'](..._0x24abc8,{'forceDefaultExecution':!0x0}),..._0x20bada),_0x44d02c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4c8730){let _0x5c5bc6,_0x553dd7;const _0x34cc37=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5c5bc6=_0x4c8730();}catch(_0x3706ac){_0x553dd7=_0x3706ac;}return _0x34cc37||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x553dd7&&_0x2185d['rethrowUnexpectedError'](_0x553dd7,this),_0x5c5bc6;}['markInsertion'](_0xde5a9a,_0x42a2e4=null,_0x20e8ff={}){if(_0xde5a9a['isCollapsed'])return null;const _0x44ed39=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x20e8ff['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4253d4,meta:_0x1c08ae}of this['_findSuggestions'](_0xde5a9a,'insertion'))if(_0x1c08ae['isOwn']){if(!_0x1c08ae['isNextTo']){if(_0x1c08ae['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x4253d4,_0x20e8ff))continue;return _0x4253d4;}if(En(_0x4253d4,_0x20e8ff))return _0x4253d4;this['_breakSuggestionMarker'](_0x4253d4,_0xde5a9a['start'],_0xde5a9a['end']);break;}if(_0x42a2e4==_0x4253d4['subType']&&En(_0x4253d4,_0x20e8ff)){const _0x123550=_0x4253d4['getFirstRange']();return _0x123550['start']['isEqual'](_0xde5a9a['end'])?this['_setSuggestionRange'](_0x4253d4,this['_model']['createRange'](_0xde5a9a['start'],_0x123550['end'])):this['_setSuggestionRange'](_0x4253d4,this['_model']['createRange'](_0x123550['start'],_0xde5a9a['end'])),_0x4253d4;}}const _0x5e7099=_0x589c6c(),_0x2db9c6=_0x44ed39['id'],_0xa2ad70=_0x42a2e4?'insertion:'+_0x42a2e4:'insertion',_0x3acdf8=this['_setSuggestionData']({'id':_0x5e7099,'type':_0xa2ad70,'createdAt':new Date(),'authorId':_0x2db9c6,'attributes':_0x20e8ff});return this['_addSuggestionMarker'](_0xa2ad70,_0x5e7099,_0x2db9c6,_0xde5a9a),_0x3acdf8;}['markMultiRangeInsertion'](_0x52c75f,_0x2033bd='multi',_0x45b1c2={}){const _0x38b7c9=this['editor']['plugins']['get']('Users')['me'],_0x129920=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2033bd,'join');this['_trackingSessionId']&&(_0x45b1c2['trackingSessionId']=this['_trackingSessionId']);for(const _0x15f884 of this['getSuggestions']())if(_0x15f884['author']['id']==_0x38b7c9['id']&&'insertion'==_0x15f884['type']&&_0x15f884['subType']==_0x2033bd&&En(_0x15f884,_0x45b1c2)&&(_0x129920(_0x15f884['getRanges'](),_0x52c75f)||_0x129920(_0x52c75f,_0x15f884['getRanges']()))){for(const _0x399992 of _0x52c75f)_0x15f884['addRange'](_0x399992);return _0x15f884;}for(const {suggestion:_0x243370,meta:_0x252891}of this['_findSuggestions'](_0x52c75f,'insertion')){if(!_0x252891['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x252891['containsRangeInObject'])continue;if(!En(_0x243370,_0x45b1c2))continue;let _0x3d0e05=!0x0;for(const _0x5768b3 of _0x243370['getRanges']())for(const _0x51d499 of _0x52c75f)if(!_0x5768b3['containsRange'](_0x51d499)){_0x3d0e05=!0x1;break;}if(_0x3d0e05)return _0x243370;}const _0x3080dd=_0x589c6c(),_0x3b8a7e=_0x38b7c9['id'],_0x5cf0fd='insertion:'+_0x2033bd,_0x5cc7e0=this['_setSuggestionData']({'id':_0x3080dd,'type':_0x5cf0fd,'createdAt':new Date(),'authorId':_0x3b8a7e,'attributes':_0x45b1c2});for(const _0x3187db of _0x52c75f)this['_addSuggestionMarker'](_0x5cf0fd,_0x3080dd,_0x3b8a7e,_0x3187db,yt['getMultiRangeId']());return _0x5cc7e0;}['markInlineFormat'](_0x206268,_0x1e0bff,_0x2bf336=null,_0x4c5d45={}){if(_0x2bf336=_0x2bf336||cn(_0x1e0bff),_0x206268['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4c5d45['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa76e2d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2bf336,'accept');return this['forceDefaultExecution'](()=>_0xa76e2d([_0x206268],_0x1e0bff,_0x4c5d45)),null;}const _0x2a1076=this['editor']['plugins']['get']('Users')['me'],_0x3107c3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5357c5,meta:_0x201bb9}of this['_findSuggestions'](_0x206268,'insertion'))_0x201bb9['isOwn']&&!_0x201bb9['isInsideObject']&&_0x3107c3['push'](..._0x5357c5['getRanges']());}const _0x2467aa=function(_0x2878a6,_0x235d91){const _0x2e76f8=[];for(const _0x3d84dd of _0x235d91){const _0x440bdc=_0x2878a6['getIntersection'](_0x3d84dd);_0x440bdc&&_0x2e76f8['push'](_0x440bdc);}return _0x2e76f8;}(_0x206268,_0x3107c3),_0x23d2e6=function(_0x54f168,_0x20b5f5){const _0x5861a1=[_0x54f168];for(const _0x4be671 of _0x20b5f5){let _0x21354f=0x0;for(;_0x21354f<_0x5861a1['length'];){const _0x300ddf=_0x5861a1[_0x21354f]['getDifference'](_0x4be671);_0x5861a1['splice'](_0x21354f,0x1,..._0x300ddf),_0x21354f+=_0x300ddf['length'];}}return _0x5861a1;}(_0x206268,_0x3107c3);_0x2467aa['length']&&this['_model']['change'](()=>{for(const _0x487c42 of _0x2467aa){const _0x45866e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2bf336,'accept');this['forceDefaultExecution'](()=>_0x45866e([_0x487c42],_0x1e0bff,_0x4c5d45));}});for(const _0x15f57a of _0x23d2e6){let _0x895cd0=null,_0x5ddee1=_0x15f57a['start'],_0x27ea53=_0x15f57a['end'];for(const {suggestion:_0x269654,meta:_0x2fd4e3}of this['_findSuggestions'](_0x15f57a,'formatInline')){if(!_0x2fd4e3['isOwn'])continue;if(_0x269654['subType']!=_0x2bf336)continue;if(!En(_0x269654,_0x4c5d45))continue;const _0x537999=_0x269654['getFirstRange']();if(_0x537999['containsRange'](_0x15f57a,!0x0))return null;_0x5ddee1=_0x5ddee1['isBefore'](_0x537999['start'])?_0x5ddee1:_0x537999['start'],_0x27ea53=_0x27ea53['isAfter'](_0x537999['end'])?_0x27ea53:_0x537999['end'],_0x895cd0?_0x537999['start']['isBefore'](_0x895cd0['getFirstRange']()['start'])?(_0x895cd0['removeMarkers'](),_0x895cd0=_0x269654):_0x269654['removeMarkers']():_0x895cd0=_0x269654;}const _0x57ae81=this['_model']['createRange'](_0x5ddee1,_0x27ea53);if(_0x895cd0)this['_setSuggestionRange'](_0x895cd0,_0x57ae81);else{const _0x2f37b4=_0x589c6c(),_0x282dec=_0x2a1076['id'];this['_setSuggestionData']({'id':_0x2f37b4,'type':'formatInline:'+_0x2bf336,'data':_0x1e0bff,'createdAt':new Date(),'authorId':_0x282dec,'attributes':_0x4c5d45}),this['_addSuggestionMarker']('formatInline:'+_0x2bf336,_0x2f37b4,_0x282dec,_0x57ae81);}}return null;}['markBlockFormat'](_0x5a1740,_0x4d7700,_0x42a47a=[],_0x144c4b=null,_0x7f475a={}){_0x4d7700['formatGroupId']||(_0x4d7700['formatGroupId']=_0x4d7700['commandName']),_0x4d7700['multipleBlocks']=_0x5a1740['is']('range'),_0x144c4b=_0x144c4b||cn(_0x4d7700);const _0x4700ee=_0x42a47a['map'](_0xd2d9a7=>gn(_0xd2d9a7,this['_model'])),_0x2afaf1=_0x5a1740['is']('range')?_0x5a1740:gn(_0x5a1740,this['_model']);if(this['_trackingSessionId']&&(_0x7f475a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2a7793=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x144c4b,'accept');return this['forceDefaultExecution'](()=>_0x2a7793([_0x2afaf1],_0x4d7700,_0x7f475a)),null;}_0x4700ee['push'](_0x2afaf1);let _0x141d4b=!0x0;for(const _0x58d14d of _0x4700ee)if(!this['_rangeIsInLocalUserInsertion'](_0x58d14d)){_0x141d4b=!0x1;break;}if(_0x141d4b&&'always'!==this['_trackFormatChanges']){const _0x2fc4f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x144c4b,'accept');return this['forceDefaultExecution'](()=>_0x2fc4f1([_0x2afaf1],_0x4d7700,_0x7f475a)),null;}let _0x11efee=null,_0x3b75ea=_0x2afaf1['start'],_0x49ad11=_0x2afaf1['end'];for(const {suggestion:_0x378100,meta:_0x3cb88e}of this['_findSuggestions'](_0x2afaf1,'formatBlock')){if(!_0x3cb88e['isOwn'])continue;if(_0x3cb88e['isNextTo']||_0x3cb88e['containsRangeInObject']||_0x3cb88e['isInsideObject'])continue;if(_0x378100['data']['formatGroupId']!=_0x4d7700['formatGroupId'])continue;if(!En(_0x378100,_0x7f475a))continue;const _0x5723cb=_0x378100['getFirstRange']();if(_0x378100['subType']==_0x144c4b){if(_0x5723cb['containsRange'](_0x2afaf1,!0x0))return null;_0x3b75ea=_0x3b75ea['isBefore'](_0x5723cb['start'])?_0x3b75ea:_0x5723cb['start'],_0x49ad11=_0x49ad11['isAfter'](_0x5723cb['end'])?_0x49ad11:_0x5723cb['end'],_0x11efee?_0x5723cb['start']['isBefore'](_0x11efee['getFirstRange']()['start'])?(_0x11efee['removeMarkers'](),_0x11efee=_0x378100):_0x378100['removeMarkers']():_0x11efee=_0x378100;}else{const _0x158dcf=_0x2afaf1['getIntersection'](_0x5723cb);this['_cutOutSuggestionMarker'](_0x378100,_0x158dcf);}}const _0x4bf288=this['editor']['plugins']['get']('Users')['me'],_0x206177=_0x589c6c(),_0x32c351=_0x4bf288['id'];if(_0x11efee)return this['_setSuggestionRange'](_0x11efee,this['_model']['createRange'](_0x3b75ea,_0x49ad11)),_0x11efee;{const _0x42521e=this['_setSuggestionData']({'id':_0x206177,'type':'formatBlock:'+_0x144c4b,'data':_0x4d7700,'createdAt':new Date(),'authorId':_0x32c351,'attributes':_0x7f475a});return this['_addSuggestionMarker']('formatBlock:'+_0x144c4b,_0x206177,_0x32c351,this['_model']['createRange'](_0x3b75ea,_0x49ad11)),_0x42521e;}}['markMultiRangeBlockFormat'](_0x437f5f,_0x234226,_0x456cb9=[],_0x5608e8=null,_0x4e2b84={}){_0x234226['formatGroupId']||(_0x234226['formatGroupId']=_0x234226['commandName']);const _0x156a5e=_0x437f5f[0x0];_0x234226['multipleBlocks']=_0x156a5e['is']('range'),_0x5608e8=_0x5608e8||cn(_0x234226);const _0x11d249=_0x456cb9['map'](_0x260d06=>gn(_0x260d06,this['_model'])),_0x15ef76=_0x156a5e['is']('range')?_0x437f5f:_0x437f5f['map'](_0x5c3bff=>gn(_0x5c3bff,this['_model']));if(this['_trackingSessionId']&&(_0x4e2b84['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x153a61=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5608e8,'accept');return this['forceDefaultExecution'](()=>_0x153a61(_0x15ef76,_0x234226,_0x4e2b84)),null;}_0x11d249['push'](..._0x15ef76);let _0x2715b5=!0x0;for(const _0xd82537 of _0x11d249)if(!this['_rangeIsInLocalUserInsertion'](_0xd82537)){_0x2715b5=!0x1;break;}if(_0x2715b5&&'always'!==this['_trackFormatChanges']){const _0x33c319=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5608e8,'accept');return this['forceDefaultExecution'](()=>_0x33c319(_0x15ef76,_0x234226,_0x4e2b84)),null;}const _0x2b816a=this['editor']['plugins']['get']('Users')['me'];for(const _0x186ea5 of this['getSuggestions']()){const _0x4c7d8d=_0x186ea5['data'];if(_0x186ea5['author']['id']!=_0x2b816a['id'])continue;if('formatBlock'!=_0x186ea5['type']||_0x4c7d8d['formatGroupId']!=_0x234226['formatGroupId'])continue;if(!En(_0x186ea5,_0x4e2b84))continue;const _0x4e1c10=_0x186ea5['subType']==_0x5608e8;for(let _0x2e7479=0x0;_0x2e7479<_0x15ef76['length'];_0x2e7479++){const _0x56528d=_0x15ef76[_0x2e7479];for(const _0x4aa23e of _0x186ea5['getMarkers']()){const _0x2efe8e=_0x4aa23e['getRange']();if(_0x56528d['isEqual'](_0x2efe8e)){_0x4e1c10?(_0x15ef76['splice'](_0x2e7479,0x1),_0x2e7479--):_0x186ea5['removeMarker'](_0x4aa23e['name']);break;}}}}if(0x0==_0x15ef76['length'])return null;const _0x2ace04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5608e8,'join');for(const _0x2e130b of this['getSuggestions']()){const _0x22c146=_0x2e130b['data'];if(_0x2e130b['author']['id']==_0x2b816a['id']&&('formatBlock'==_0x2e130b['type']&&_0x22c146['formatGroupId']==_0x234226['formatGroupId']&&_0x2e130b['subType']==_0x5608e8&&En(_0x2e130b,_0x4e2b84)&&(_0x2ace04(_0x2e130b['getRanges'](),_0x15ef76)||_0x2ace04(_0x15ef76,_0x2e130b['getRanges']())))){for(const _0x1122a9 of _0x15ef76)_0x2e130b['addRange'](_0x1122a9);return _0x2e130b;}}const _0x2cbb61=_0x589c6c(),_0x5d2bbf=_0x2b816a['id'],_0x30864f='formatBlock:'+_0x5608e8,_0x12a6ab=this['_setSuggestionData']({'id':_0x2cbb61,'type':_0x30864f,'data':_0x234226,'createdAt':new Date(),'authorId':_0x5d2bbf,'attributes':_0x4e2b84});for(const _0x11743a of _0x15ef76)this['_addSuggestionMarker'](_0x30864f,_0x2cbb61,_0x5d2bbf,_0x11743a,yt['getMultiRangeId']());return _0x12a6ab;}['markDeletion'](_0x364103,_0x3802f7=null,_0x2a6724={}){if(_0x364103['isCollapsed'])return null;const _0x260e78=this['editor']['plugins']['get']('Users')['me'],_0x4804d7=new rt(_0x364103['start'],_0x364103['end']);this['_trackingSessionId']&&(_0x2a6724['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x592801,meta:_0x12c071}of this['_findSuggestions'](_0x4804d7,'insertion'))if(_0x12c071['isOwn']&&!_0x12c071['isNextTo']){if(_0x592801['isMultiRange']){const _0x5b800b=_0x592801['getRanges']()['filter'](_0x146436=>'$graveyard'!=_0x146436['root']['rootName']);if(_0x5b800b['every'](_0x187bb8=>_0x4804d7['containsRange'](_0x187bb8,!0x0))&&_0x592801['discard'](),_0x5b800b['some'](_0x53a3f4=>_0x53a3f4['containsRange'](_0x4804d7,!0x0))){const _0x13a77e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3802f7,'accept');return this['forceDefaultExecution'](()=>_0x13a77e([_0x4804d7],null,_0x2a6724)),null;}}else{const _0x146d74=_0x4804d7['getIntersection'](_0x592801['getFirstRange']());null!==_0x146d74&&_0x592801['_onDiscard']([_0x146d74],null,_0x2a6724);}}if(_0x4804d7['detach'](),_0x4804d7['isCollapsed']||'$graveyard'==_0x4804d7['root']['rootName'])return null;let _0x48bc64=null,_0x47bd3b=_0x4804d7['start'],_0xccec67=_0x4804d7['end'];const _0x418b2e=this['_findSuggestions'](_0x4804d7,'deletion');for(const {suggestion:_0x386553,meta:_0x127c8d}of _0x418b2e){const _0x2a098b=this['_model']['createRange'](_0x47bd3b,_0xccec67);if(_0x127c8d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x127c8d['containsRangeInObject']&&!_0x127c8d['isInsideObject'])){if(_0x386553['isMultiRange']){if(!En(_0x386553,_0x2a6724))continue;let _0x2afe9d=!0x0;for(const _0x5db7cf of _0x386553['getRanges']()){if(_0x5db7cf['containsRange'](_0x2a098b,!0x0))return _0x386553;_0x2a098b['containsRange'](_0x5db7cf)||(_0x2afe9d=!0x1);}_0x2afe9d&&_0x386553['discard']();}else{const _0x2f8bbb=_0x386553['getFirstRange']();if(_0x2f8bbb['containsRange'](_0x2a098b,!0x0))return _0x386553;if(!En(_0x386553,_0x2a6724)){_0x2a098b['containsRange'](_0x2f8bbb)?_0x386553['removeMarkers']():_0x2f8bbb['containsPosition'](_0x47bd3b)?_0x47bd3b=_0x2f8bbb['end']:_0x2f8bbb['containsPosition'](_0xccec67)&&(_0xccec67=_0x2f8bbb['start']);continue;}_0x47bd3b=_0x47bd3b['isBefore'](_0x2f8bbb['start'])?_0x47bd3b:_0x2f8bbb['start'],_0xccec67=_0xccec67['isAfter'](_0x2f8bbb['end'])?_0xccec67:_0x2f8bbb['end'],_0x2a6724=Object['assign']({},_0x386553['attributes']),_0x48bc64?_0x2f8bbb['start']['isBefore'](_0x48bc64['getFirstRange']()['start'])?(_0x48bc64['removeMarkers'](),_0x48bc64=_0x386553):_0x386553['removeMarkers']():_0x48bc64=_0x386553;}}}if(_0x48bc64)return this['_setSuggestionRange'](_0x48bc64,this['_model']['createRange'](_0x47bd3b,_0xccec67)),_0x48bc64;{const _0x123130=_0x589c6c(),_0x574771=this['_model']['createRange'](_0x47bd3b,_0xccec67),_0x36225d=_0x260e78['id'],_0x11966b=_0x3802f7?'deletion:'+_0x3802f7:'deletion',_0x108f05=this['_setSuggestionData']({'id':_0x123130,'type':_0x11966b,'createdAt':new Date(),'authorId':_0x36225d,'attributes':_0x2a6724});return this['_addSuggestionMarker'](_0x11966b,_0x123130,_0x36225d,_0x574771),_0x108f05;}}['markMultiRangeDeletion'](_0x2f8333,_0x4c8f23='multi',_0x4767d5={}){const _0x52f226=this['editor']['plugins']['get']('Users')['me'],_0x3a8817=_0x2f8333['map'](_0x1bb840=>new rt(_0x1bb840['start'],_0x1bb840['end'])),_0x3a150f=new Set();this['_trackingSessionId']&&(_0x4767d5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14b861,meta:_0x3dcda7}of this['_findSuggestions'](_0x3a8817,'insertion'))_0x3dcda7['isOwn']&&!_0x3dcda7['isNextTo']&&_0x3a150f['add'](_0x14b861);for(const _0x403e17 of _0x3a150f)if(_0x403e17['isMultiRange']){const _0x458e33=_0x403e17['getRanges']();if(_0x403e17['attributes']&&_0x403e17['attributes']['skipNestingCheck']||_0x458e33['every'](_0x12dbca=>_0x3a8817['some'](_0x42fab0=>_0x42fab0['containsRange'](_0x12dbca,!0x0)))&&_0x403e17['discard'](),_0x3a8817['every'](_0x5ad7ea=>_0x458e33['some'](_0x5efad2=>_0x5efad2['containsRange'](_0x5ad7ea,!0x0)))){const _0x396fc7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c8f23,'accept');return this['forceDefaultExecution'](()=>_0x396fc7(_0x2f8333,null,_0x4767d5)),null;}}else{const _0x78c2c5=_0x403e17['getFirstRange']();if(_0x3a8817['some'](_0x27bafc=>_0x27bafc['containsRange'](_0x78c2c5,!0x0))&&_0x403e17['discard'](),_0x3a8817['every'](_0x54de42=>_0x78c2c5['containsRange'](_0x54de42,!0x0))){const _0x48343a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c8f23,'accept');return this['forceDefaultExecution'](()=>_0x48343a(_0x3a8817,null,_0x4767d5)),null;}}const _0x262e79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c8f23,'join');let _0x5278ec=null;for(const _0x16b308 of this['getSuggestions']())if(_0x16b308['author']['id']==_0x52f226['id']&&_0x16b308['isInContent']&&'deletion'==_0x16b308['type']&&_0x16b308['subType']==_0x4c8f23&&En(_0x16b308,_0x4767d5)&&(_0x262e79(_0x16b308['getRanges'](),_0x3a8817)||_0x262e79(_0x3a8817,_0x16b308['getRanges']()))){if(_0x5278ec){if(_0x16b308['commentThread']&&_0x16b308['commentThread']['length'])continue;for(const _0x3b1832 of _0x16b308['getRanges']())_0x5278ec['isIntersectingWithRange'](_0x3b1832)||_0x5278ec['addRange'](_0x3b1832);_0x16b308['removeMarkers']();}else{_0x5278ec=_0x16b308;for(const _0x2df4ca of _0x3a8817)_0x16b308['isIntersectingWithRange'](_0x2df4ca)||_0x16b308['addRange'](_0x2df4ca);}}if(_0x5278ec)return _0x5278ec;_0x3a150f['clear']();for(const {suggestion:_0x1d5563,meta:_0x15144a}of this['_findSuggestions'](_0x3a8817,'deletion'))_0x15144a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15144a['containsRangeInObject']&&!_0x15144a['isInsideObject'])&&En(_0x1d5563,_0x4767d5)&&_0x3a150f['add'](_0x1d5563);for(const _0xb12e29 of _0x3a150f){const _0x1f91d5=_0xb12e29['getRanges']();if((!_0x4767d5||!_0x4767d5['skipNestingCheck'])&&_0x3a8817['every'](_0x17fc9d=>_0x1f91d5['some'](_0x5b34a5=>_0x5b34a5['containsRange'](_0x17fc9d,!0x0))))return _0xb12e29;_0xb12e29['attributes']&&_0xb12e29['attributes']['skipNestingCheck']||_0x1f91d5['every'](_0x4e624d=>_0x3a8817['some'](_0x467a5a=>_0x467a5a['containsRange'](_0x4e624d,!0x0)))&&_0xb12e29['discard']();}const _0x11e687=_0x589c6c(),_0x94478d=_0x52f226['id'],_0x727fed='deletion:'+_0x4c8f23,_0x3c92c7=this['_setSuggestionData']({'id':_0x11e687,'type':_0x727fed,'createdAt':new Date(),'authorId':_0x94478d,'attributes':_0x4767d5});for(const _0x3ee72e of _0x3a8817)_0x3ee72e['detach'](),_0x3ee72e['isCollapsed']||'$graveyard'==_0x3ee72e['root']['rootName']||this['_addSuggestionMarker'](_0x727fed,_0x11e687,_0x94478d,_0x3ee72e,yt['getMultiRangeId']());return _0x3c92c7;}['markAttributeChange'](_0x40baff,_0x2ecc9e,_0x383ff2,_0x527362,_0x46ab18){if(_0x40baff['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x37c799=this['editor']['plugins']['get']('Users')['me']['id'],_0xf9d785=Array['from'](this['_suggestions']['values']())['filter'](_0x53135d=>'attribute'==_0x53135d['type']&&_0x53135d['data']['key']==_0x2ecc9e&&_0x53135d['isIntersectingWithRange'](_0x40baff));if(this['_trackingSessionId']&&(_0x46ab18['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x112a4e=this['_findSuggestions'](_0x40baff,'insertion')['filter'](({meta:_0x1e29c6})=>_0x1e29c6['isOwn']&&!_0x1e29c6['isInsideObject']&&!_0x1e29c6['isNextTo'])['map'](({suggestion:_0x2e2fe9})=>_0x2e2fe9);_0xf9d785['unshift'](..._0x112a4e);}const _0x396f14=new Map([[_0x40baff,_0x383ff2]]);for(const _0xb54aea of _0xf9d785){const _0x234832='attribute'==_0xb54aea['type']?_0xb54aea['data']['oldValue']:void 0x0,_0x1acba5=_0xb54aea['getFirstRange'](),_0x40ce4d=Array['from'](_0x396f14['keys']())['find'](_0x16571d=>_0x16571d['isIntersecting'](_0x1acba5));if(!_0x40ce4d)continue;const _0x1b58a8=_0x40ce4d['getDifference'](_0x1acba5);this['_suggestionsConversion']['isBlockAttribute'](_0x2ecc9e)&&'insertion'==_0xb54aea['type']&&0x0!=_0x1b58a8['length']||(_0x396f14['delete'](_0x40ce4d),_0x1b58a8['forEach'](_0x491892=>{_0x396f14['set'](_0x491892,_0x383ff2);}),'insertion'!=_0xb54aea['type']&&_0x234832!=_0x527362&&_0x396f14['set'](_0x40ce4d['getIntersection'](_0x1acba5),_0x234832));}const _0x1fe837=[];for(const [_0x152875,_0x322a9b]of _0x396f14){const _0xda23da=_0x589c6c(),_0x26bfae={'key':_0x2ecc9e,'oldValue':_0x322a9b,'newValue':_0x527362};_0x2ecc9e['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':_0x2ecc9e});const _0x3fe7db=('attribute:'+_0x2ecc9e+'|'+cn({'newValue':_0x527362}))['substring'](0x0,0x3c),_0x34152d=this['_setSuggestionData']({'id':_0xda23da,'type':_0x3fe7db,'data':_0x26bfae,'createdAt':new Date(),'authorId':_0x37c799,'attributes':_0x46ab18});_0x1fe837['push'](_0x34152d),this['_addSuggestionMarker'](_0x3fe7db,_0xda23da,_0x37c799,_0x152875);}return _0x1fe837;}['enableDefaultAttributesIntegration'](_0x5d0c2f){this['enableCommand'](_0x5d0c2f,(_0x22c1af,..._0x589203)=>{this['recordAttributeChanges'](()=>{_0x22c1af(..._0x589203);});});}['startTrackingSession'](_0x5918e9){return this['_trackingSessionId']=void 0x0!==_0x5918e9?_0x5918e9:_0x589c6c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x15e403){return'attribute'==_0x15e403['type']?_n(_0x15e403['subType']):null;}['_applyOperationsAsSuggestions'](_0x277687){if(0x0==_0x277687['length'])return;const _0x4820af=this['editor'],_0x24d747=_0x4820af['plugins']['get'](_0x34e5cd),_0x3712cd=[],_0x3dc51e=_0x61b477=>{const _0x4d66a8=_0x61b477['_aiSource'];return _0x4d66a8?{'@ai':{'type':_0x4d66a8}}:{};},_0x591f1a=(_0x5d055e,_0x2bbc92,_0x565800)=>{for(let _0x15548d=_0x2bbc92;_0x15548d<_0x5d055e['operations']['length'];_0x15548d++){const _0x3f7e9b=_0x5d055e['operations'][_0x15548d];'marker'===_0x3f7e9b['type']&&(_0x3f7e9b['_aiSource']=_0x565800);}};_0x4820af['model']['change'](_0x14c3e7=>{for(let _0xcdbef2=0x0;_0xcdbef2<_0x277687['length'];_0xcdbef2++){const _0x262fc6=_0x277687[_0xcdbef2],_0x3db4bd=_0x262fc6['_aiSource'],_0x27627b=_0x14c3e7['batch']['operations']['length'];if(_0x262fc6['baseVersion']=_0x4820af['model']['document']['version'],_0x262fc6['isDocumentOperation']=!0x0,_0x24d747['isMarkedRemoveOperation'](_0x262fc6)){const _0x4b68c2=_0x446f1c(_0x262fc6['newRange'],_0x4820af['model']);_0x3712cd['unshift']({'range':rt['fromRange'](_0x4b68c2),'opAttributes':_0x3dc51e(_0x262fc6),'aiSource':_0x3db4bd});}else{switch(_0x262fc6['type']){case'rename':{const _0x10cb9d=_0x262fc6['oldName'],_0x2f1c09=_0x262fc6['newName'];if(_0x10cb9d==_0x2f1c09)break;_0x14c3e7['batch']['addOperation'](_0x262fc6),_0x4820af['model']['applyOperation'](_0x262fc6);const _0x428b16='$elementName',_0x215fc8=_0x262fc6['position'],_0x507899=_0x4820af['model']['createRange'](_0x215fc8,_0x4820af['model']['createPositionAt'](_0x215fc8['nodeAfter'],'end'));this['markAttributeChange'](_0x507899,_0x428b16,_0x10cb9d,_0x2f1c09,{..._0x3dc51e(_0x262fc6),'groupId':_0x589c6c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2d14c1=_0x262fc6['oldValue'],_0x51eb58=_0x262fc6['newValue'];if(_0x2d14c1==_0x51eb58)break;_0x14c3e7['batch']['addOperation'](_0x262fc6),_0x4820af['model']['applyOperation'](_0x262fc6);const _0x54715e=_0x262fc6['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x54715e))break;const _0xbad0b2=_0x446f1c(_0x262fc6['range'],_0x4820af['model']);this['markAttributeChange'](_0xbad0b2,_0x54715e,_0x2d14c1,_0x51eb58,{..._0x3dc51e(_0x262fc6),'groupId':_0x589c6c()});break;}case'insert':{if(_0x14c3e7['batch']['addOperation'](_0x262fc6),_0x4820af['model']['applyOperation'](_0x262fc6),_0x277687[_0xcdbef2+0x1]&&'move'==_0x277687[_0xcdbef2+0x1]['type'])break;const _0x546c0d=_0x262fc6['position'],_0x3c8944=_0x262fc6['howMany'],_0x2ca44d=_0x446f1c(_0x4820af['model']['createRange'](_0x546c0d,_0x546c0d['getShiftedBy'](_0x3c8944)),_0x4820af['model']);this['markInsertion'](_0x2ca44d,null,{..._0x3dc51e(_0x262fc6)});break;}case'split':{_0x14c3e7['batch']['addOperation'](_0x262fc6),_0x4820af['model']['applyOperation'](_0x262fc6);const _0x173314=_0x262fc6['splitPosition'],_0x227751=_0x262fc6['moveTargetPosition'],_0x46da5d=_0x4820af['model']['createRange'](_0x173314,_0x227751);this['markInsertion'](_0x46da5d,null,{..._0x3dc51e(_0x262fc6)});break;}case'move':case'remove':_0x14c3e7['batch']['addOperation'](_0x262fc6),_0x4820af['model']['applyOperation'](_0x262fc6);}_0x3db4bd&&_0x591f1a(_0x14c3e7['batch'],_0x27627b,_0x3db4bd);}}for(const {range:_0x4783bf,opAttributes:_0x2174a4,aiSource:_0x53a72e}of _0x3712cd){const _0x5e9b23=_0x14c3e7['batch']['operations']['length'];_0x4783bf['detach'](),this['markDeletion'](_0x4783bf,null,{..._0x2174a4}),_0x53a72e&&_0x591f1a(_0x14c3e7['batch'],_0x5e9b23,_0x53a72e);}});}['_setSuggestionRange'](_0x37ac99,_0x60c7ae){const _0x206f0c=_0x37ac99['getFirstMarker']();this['_model']['change'](_0x352143=>{_0x352143['updateMarker'](_0x206f0c,{'range':_0x60c7ae});});}['_addThreadToSuggestion'](_0x2ae5f3){const _0x52b922=_0x2ae5f3['id'],_0x44c14d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x52b922)||this['_commentsRepository']['addCommentThread']({'channelId':_0x44c14d,'threadId':_0x52b922,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x177e37=this['_commentsRepository']['getCommentThread'](_0x52b922);_0x177e37['unbind']('isRemovable'),_0x177e37['isRemovable']=!0x1,_0x2ae5f3['commentThread']=_0x177e37;}['_checkSuggestionCorrectness'](_0x17e831,_0x3523ea,_0x3c91ce,_0xffe753){if(_0x17e831['type']!=_0x3523ea||_0x17e831['subType']!=_0x3c91ce||_0x17e831['creator']['id']!=_0xffe753)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2185d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x460e86,_0x375332){const _0x17b89a=_0x460e86['getFirstRange']();if(_0x375332['isEqual'](_0x17b89a))_0x460e86['removeMarkers']();else{if(_0x17b89a['containsRange'](_0x375332)){const _0x3a257e=this['_model']['createPositionAt'](_0x375332['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x460e86,this['_model']['createRange'](_0x17b89a['start'],_0x3a257e));const _0x49844c=_0x589c6c(),_0x3b7a6a=_0x460e86['creator']['id'],_0x28d69a=_0x460e86['type']+':'+_0x460e86['subType'];this['_setSuggestionData']({'id':_0x49844c,'type':_0x28d69a,'createdAt':new Date(),'authorId':_0x3b7a6a,'data':_0x460e86['data'],'attributes':_0x460e86['attributes']});const _0xe5c209=this['_model']['createPositionAt'](_0x375332['end']['parent'],'after'),_0x496076=this['_model']['createRange'](_0xe5c209,_0x17b89a['end']);this['_addSuggestionMarker'](_0x28d69a,_0x49844c,_0x3b7a6a,_0x496076);}else{if(_0x17b89a['containsPosition'](_0x375332['start'])){const _0x3ecfa5=this['_model']['createPositionAt'](_0x375332['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x460e86,this['_model']['createRange'](_0x17b89a['start'],_0x3ecfa5));}else{const _0x3d3ec5=this['_model']['createPositionAt'](_0x375332['end']['parent'],'after');this['_setSuggestionRange'](_0x460e86,this['_model']['createRange'](_0x3d3ec5,_0x17b89a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x182d77){for(const {suggestion:_0x1c8994,meta:_0x58b043}of this['_findSuggestions'](_0x182d77,'insertion')){if(!_0x58b043['isOwn'])continue;const _0x247ae4=_0x1c8994['getRanges']();for(const _0xa89ebd of _0x247ae4)if(!_0x182d77['getDifference'](_0xa89ebd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x364c37){return this['editor']['plugins']['get']('Users')['getUser'](_0x364c37);}['_getExternalAuthor'](_0x228746){const _0xff8e32=this['editor']['plugins']['get']('Users'),_0x51debc=_0x53a26e('external:'+_0x228746),_0xe1429d=_0xff8e32['getUser'](_0x51debc);return _0xe1429d||_0xff8e32['addUser']({'id':_0x51debc,'name':_0x228746});}['_createSuggestion'](_0x3ac97a,_0x40d687,_0x30054a,_0xf33be8,_0x1fe45d,_0x58ada4){const _0x539435=this['_getAuthorFromId'](_0xf33be8);if(!_0x539435)throw new _0x2185d('track-changes-user-not-found',this,{'authorId':_0xf33be8,'suggestionId':_0x30054a});const _0x3837c5=this['_suggestionFactory']['buildSuggestion'](_0x3ac97a,_0x40d687,_0x30054a,_0x539435,_0x1fe45d,_0x52b72d=>{this['_updateSuggestionData'](_0x30054a,{'attributes':_0x52b72d});const _0x304437=this['getSuggestion'](_0x30054a);this['_joinWithAdjacentSuggestions'](new Set([_0x304437])),this['_refreshSuggestionsChain'](new Set([_0x304437]));},_0x58ada4);return this['listenTo'](_0x3837c5,'accept',()=>{this['_updateSuggestionData'](_0x30054a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3837c5,'discard',()=>{this['_updateSuggestionData'](_0x30054a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x30054a,_0x3837c5),this['_suggestionState']['set'](_0x3837c5,'notReady'),_0x3837c5;}['_breakSuggestionMarker'](_0x786248,_0x5c977b,_0x23aff1){const _0x35e727=_0x786248['getFirstRange'](),_0x107673=_0x35e727['start'],_0xe9278a=_0x35e727['end'];this['_setSuggestionRange'](_0x786248,this['_model']['createRange'](_0x107673,_0x5c977b));const _0x4531b7=_0x589c6c(),_0x2392a7=_0x786248['creator']['id'],_0x351301=_0x786248['type']+(_0x786248['subType']?':'+_0x786248['subType']:'');this['_setSuggestionData']({'id':_0x4531b7,'type':_0x351301,'createdAt':new Date(),'authorId':_0x2392a7,'originalSuggestionId':_0x786248['_originalSuggestionId']||_0x786248['id'],'attributes':_0x786248['attributes'],'data':_0x786248['data']});const _0x3337ff=this['_getAttributeKey'](_0x786248);('formatBlock'==_0x786248['type']||_0x3337ff&&this['_suggestionsConversion']['isBlockAttribute'](_0x3337ff))&&(_0x23aff1=this['_model']['createPositionBefore'](_0x23aff1['parent'])),this['_addSuggestionMarker'](_0x351301,_0x4531b7,_0x2392a7,this['_model']['createRange'](_0x23aff1,_0xe9278a));}['_findSuggestions'](_0x185cd5,_0xdf3cd9=null){const _0x32a424=[],_0x15b778=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x185cd5)||(_0x185cd5=[_0x185cd5]);for(const _0x4e033a of this['getSuggestions']()){if(!_0x4e033a['isInContent'])continue;if(_0xdf3cd9&&_0x4e033a['type']!=_0xdf3cd9)continue;let _0x159415=!0x1;for(const _0x552500 of _0x4e033a['getRanges']()){for(const _0x2a9144 of _0x185cd5){const _0x21cde2=_0x2a9144['start']['isEqual'](_0x552500['end'])||_0x2a9144['end']['isEqual'](_0x552500['start']);if(_0x21cde2||_0x2a9144['getIntersection'](_0x552500)){const _0x1ae185=_0x2a9144['containsRange'](_0x552500)&&rn(this['_model']['schema'],_0x552500['start'],_0x2a9144),_0x463dec=_0x552500['containsRange'](_0x2a9144)&&rn(this['_model']['schema'],_0x2a9144['start'],_0x552500);_0x32a424['push']({'suggestion':_0x4e033a,'meta':{'isOwn':_0x15b778==_0x4e033a['author'],'isNextTo':_0x21cde2,'isInsideObject':_0x1ae185,'containsRangeInObject':_0x463dec}}),_0x159415=!0x0;break;}}if(_0x159415)break;}}return _0x32a424;}['_addSuggestionMarker'](_0x176f7c,_0x4db475,_0x53cd15,_0x1b133a,_0xcb4aad){this['_model']['change'](_0x1545fb=>{let _0x20ab3d='suggestion:'+_0x176f7c+':'+_0x4db475+':'+_0x53cd15;_0xcb4aad&&(_0x20ab3d=_0x20ab3d+':'+_0xcb4aad),_0x1545fb['addMarker'](_0x20ab3d,{'range':_0x1b133a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x43631a){const _0x3e50a4=_0x43631a['previous'],_0x2273f6=_0x43631a['next'];_0x43631a['previous']=null,_0x43631a['next']=null,null!=_0x3e50a4&&_0x3e50a4['next']==_0x43631a&&(_0x3e50a4['next']=_0x2273f6),null!=_0x2273f6&&_0x2273f6['previous']==_0x43631a&&(_0x2273f6['previous']=_0x3e50a4),'ready'==this['_suggestionState']['get'](_0x43631a)&&(this['_suggestionState']['set'](_0x43631a,'removed'),this['fire']('suggestionUnloaded',_0x43631a,_0x3e50a4,_0x2273f6));}['_setSuggestionData'](_0x4bb442){const _0x9122f8=_0x4bb442['id'],_0x2da985=this['addSuggestionData'](_0x4bb442);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e5045=this['editor']['plugins']['get']('PendingActions'),_0x118f47=_0x2da985['hasComments'],_0x2a5716=_0x2da985['subType']?_0x2da985['type']+':'+_0x2da985['subType']:_0x2da985['type'],_0x2bfcca=this['editor']['locale'],_0xe769b9=_0x3e5045['add'](St(_0x2bfcca,'PENDING_ACTION_SUGGESTION')),_0x594747={'id':_0x9122f8,'type':_0x2a5716,'hasComments':_0x118f47,'data':_0x4bb442['data']||null,'originalSuggestionId':_0x4bb442['originalSuggestionId']||null,'attributes':_0x2da985['attributes']};this['_adapter']['addSuggestion'](_0x594747)['then'](_0x1f4963=>{_0x2da985['_saved']=!0x0,_0x3e5045['remove'](_0xe769b9),_0x1f4963&&_0x1f4963['createdAt']&&(this['_suggestions']['get'](_0x9122f8)['createdAt']=_0x1f4963['createdAt']);})['catch'](_0x2426de=>{throw _0x540819('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2da985['discard']();}),_0x2da985['stopListening'](),this['_suggestions']['delete'](_0x2da985['id']),this['_suggestionState']['delete'](_0x2da985),_0x2426de;});}return _0x2da985;}['_updateSuggestionData'](_0xfe396c,_0x31ae22){const _0x2dc829=this['editor']['plugins']['get']('PendingActions'),_0x245ee8=this['getSuggestion'](_0xfe396c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x245ee8['_saved']){const _0x1a82d8=_0x2dc829['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xfe396c,_0x31ae22)['then'](()=>{_0x2dc829['remove'](_0x1a82d8);});}else _0x245ee8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xfe396c,_0x31ae22);});}}['_getSuggestionData'](_0x1181d3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2185d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1181d3);}['_handleNewSuggestionMarker'](_0x5d769d){const {id:_0x39b271,type:_0x2670f8,subType:_0x445d06,authorId:_0x590ea5}=tt(_0x5d769d),_0x3378e8=this['_suggestions']['get'](_0x39b271)||this['_createSuggestion'](_0x2670f8,_0x445d06,_0x39b271,_0x590ea5,{});switch(this['_checkSuggestionCorrectness'](_0x3378e8,_0x2670f8,_0x445d06,_0x590ea5),this['_suggestionState']['get'](_0x3378e8)){case'notReady':this['_getSuggestionData'](_0x39b271)['then'](_0x2e4aeb=>{let _0x72b4b3=Promise['resolve']();_0x2e4aeb['hasComments']&&(_0x72b4b3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x39b271})),_0x72b4b3['then'](()=>{this['addSuggestionData'](_0x2e4aeb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3378e8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x39b271,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3378e8,'ready'),this['fire']('suggestionLoaded',_0x3378e8);break;case'ready':this['fire']('suggestionChanged',_0x3378e8);}return _0x3378e8['addMarkerName'](_0x5d769d),_0x3378e8;}['_refreshSuggestionsChain'](_0x1c89dd){const _0x1a0db0=Array['from'](_0x1c89dd),_0x434a07=_0x1a0db0['filter'](_0x7d93c2=>'attribute'==_0x7d93c2['type']);this['_refreshAttributeSuggestionsChain'](_0x434a07);const _0xf8db0f=_0x1a0db0['filter'](_0x1529c8=>!_0x1529c8['isMultiRange']&&'attribute'!=_0x1529c8['type']),_0x4ff2ee=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52f8b8=>!_0x52f8b8['isMultiRange']&&'attribute'!=_0x52f8b8['type']),_0x152ae1=_0x4ff2ee['filter'](_0x1f1f65=>!_0x1c89dd['has'](_0x1f1f65)),_0x18f34e=new Map(_0x4ff2ee['map'](_0x55da24=>[_0x55da24,this['_suggestionFactory']['getSuggestionCallback'](_0x55da24['type'],_0x55da24['subType'],'chain')])),_0x20f386=new Map(_0x4ff2ee['map'](_0x392e8a=>[_0x392e8a,_0x392e8a['getFirstRange']()])),_0x105dfb=new Set(),_0x56191f=new Set();for(let _0xed1b36=0x0;_0xed1b36<_0xf8db0f['length'];_0xed1b36++)_0x2729da(_0xf8db0f[_0xed1b36],_0xf8db0f,_0xed1b36+0x1);for(let _0x52c695=0x0;_0x52c695<_0xf8db0f['length'];_0x52c695++)_0x2729da(_0xf8db0f[_0x52c695],_0x152ae1,0x0);const _0x2810f8=new Set();for(let _0x493805=0x0;_0x493805<_0xf8db0f['length'];_0x493805++){const _0x4ef1ed=_0xf8db0f[_0x493805];!_0x56191f['has'](_0x4ef1ed)&&_0x4ef1ed['previous']&&(_0x2810f8['add'](_0x4ef1ed['previous']),_0x4ef1ed['previous']['next']===_0x4ef1ed&&(_0x4ef1ed['previous']['next']=null),_0x4ef1ed['previous']=null),!_0x105dfb['has'](_0x4ef1ed)&&_0x4ef1ed['next']&&(_0x2810f8['add'](_0x4ef1ed['next']),_0x4ef1ed['next']['previous']===_0x4ef1ed&&(_0x4ef1ed['next']['previous']=null),_0x4ef1ed['next']=null);}function _0x2729da(_0x2c0fa4,_0x3dfc73,_0x180749){for(let _0x2fb506=_0x180749;_0x2fb506<_0x3dfc73['length'];_0x2fb506++){const _0x4b8a34=_0x451dac(_0x2c0fa4,_0x3dfc73[_0x2fb506]);_0x4b8a34&&(_0x4b8a34[0x0]['next']=_0x4b8a34[0x1],_0x4b8a34[0x1]['previous']=_0x4b8a34[0x0],_0x105dfb['add'](_0x4b8a34[0x0]),_0x56191f['add'](_0x4b8a34[0x1]));}}function _0x451dac(_0x432851,_0x3b97b0){if(_0x432851['author']['id']!==_0x3b97b0['author']['id'])return null;const _0x3f3db6=_0x18f34e['get'](_0x432851)(_0x432851,_0x3b97b0,_0x20f386['get'](_0x432851),_0x20f386['get'](_0x3b97b0));return _0x3f3db6&&_0x18f34e['get'](_0x3b97b0)(_0x432851,_0x3b97b0,_0x20f386['get'](_0x432851),_0x20f386['get'](_0x3b97b0))?_0x3f3db6[0x1]['commentThread']&&_0x3f3db6[0x1]['commentThread']['length']?null:_0x3f3db6:null;}_0x2810f8['size']&&this['_refreshSuggestionsChain'](_0x2810f8);}['_refreshAttributeSuggestionsChain'](_0x56a97e){if(0x0==_0x56a97e['length'])return;const _0x2c08b2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51dbe7=>'attribute'==_0x51dbe7['type']&&_0x51dbe7['_isDataLoaded']),_0x4af598=[],_0x119caa=new Map();for(const _0xe98da4 of _0x2c08b2){const _0x3e57de=_0x53a26e(_0xe98da4['attributes']);_0x119caa['has'](_0x3e57de)||(_0x119caa['set'](_0x3e57de,_0x4af598['length']),_0x4af598['push']([])),_0x4af598[_0x119caa['get'](_0x3e57de)]['push'](_0xe98da4);}!(function(){_0x4af598['sort']((_0x281d8b,_0x37aa3c)=>{const _0x53b7e0=_0x281d8b[0x0]['createdAt'],_0x1c33b9=_0x37aa3c[0x0]['createdAt'];return _0x53b7e0==_0x1c33b9?_0x281d8b[0x0]['attributes']['groupId']<_0x37aa3c[0x0]['attributes']['groupId']?-0x1:0x1:_0x53b7e0<_0x1c33b9?-0x1:0x1;});for(const _0x204eaa of _0x4af598)_0x204eaa['sort']((_0x2340ee,_0x30d058)=>_0x2340ee['id']<_0x30d058['id']?-0x1:0x1);}());for(let _0x575789=0x0;_0x575789<_0x4af598['length'];_0x575789++){if(0x0==_0x4af598[_0x575789]['length'])continue;const _0x4cbda5=[];for(let _0x202749=_0x575789+0x1;_0x202749<_0x4af598['length'];_0x202749++)0x0!=_0x4af598[_0x202749]['length']&&_0x3a2899(_0x4af598[_0x575789],_0x4af598[_0x202749])&&_0x4cbda5['push'](_0x202749);for(const _0x5b955a of _0x4cbda5)_0x4af598[_0x575789]=_0x4af598[_0x575789]['concat'](_0x4af598[_0x5b955a]),_0x4af598[_0x5b955a]=[];}for(const _0x138a28 of _0x4af598)for(let _0xfc7472=0x0;_0xfc7472<_0x138a28['length'];_0xfc7472++){const _0x287456=_0x138a28[_0xfc7472+0x1]||null;_0x138a28[_0xfc7472]['next']!==_0x287456&&(_0x138a28[_0xfc7472]['next']=_0x287456);}for(const _0x3fe3dd of _0x4af598)for(let _0x45341d=0x0;_0x45341d<_0x3fe3dd['length'];_0x45341d++){const _0x13c7e1=_0x3fe3dd[_0x45341d-0x1]||null;_0x3fe3dd[_0x45341d]['previous']!==_0x13c7e1&&(_0x3fe3dd[_0x45341d]['previous']=_0x13c7e1);}function _0x3a2899(_0x5921c6,_0x467068){return(_0x5921c6[0x0]['attributes']['groupId']===_0x467068[0x0]['attributes']['groupId']||_0x5921c6[0x0]['author']===_0x467068[0x0]['author'])&&(!!function(_0x2f2336,_0x518417){return!_0x2f2336['hasComments']&&!_0x518417['hasComments']||(!_0x2f2336['hasComments']||!_0x518417['hasComments'])&&(!!(_0x2f2336['hasComments']&&_0x518417['createdAt']<_0x2f2336['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x518417['hasComments']&&_0x2f2336['createdAt']<_0x518417['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x5921c6[0x0],_0x467068[0x0])&&(!!ct(lt(_0x5921c6[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x467068[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x5921c6[0x0]['attributes']['groupId']==_0x467068[0x0]['attributes']['groupId']||_0x5921c6[0x0]['attributes']['trackingSessionId']===_0x467068[0x0]['attributes']['trackingSessionId']&&(!!_0x5921c6['every'](_0x261a92=>_0x467068['some'](_0x157dd2=>_0x261a92['getFirstRange']()['isEqual'](_0x157dd2['getFirstRange']())))&&_0x467068['every'](_0x1f6720=>_0x5921c6['some'](_0x17ab5f=>_0x1f6720['getFirstRange']()['isEqual'](_0x17ab5f['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x129c78){const _0x4d63cc=Array['from'](_0x129c78),_0x4954db=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f2779=_0x4954db['filter'](_0x50d286=>!_0x129c78['has'](_0x50d286)),_0x4f1e82=new Map(_0x4d63cc['map'](_0x1d46e5=>[_0x1d46e5,this['_suggestionFactory']['getSuggestionCallback'](_0x1d46e5['type'],_0x1d46e5['subType'],'join')])),_0x1e0de4=new Map(_0x4954db['map'](_0x5aa41d=>[_0x5aa41d,_0x5aa41d['getRanges']()]));for(let _0x513809=0x0;_0x513809<_0x4d63cc['length'];_0x513809++)if(_0x94fb0f(this,_0x4d63cc[_0x513809],_0x4d63cc,_0x513809+0x1))return!0x0;for(let _0x56cfef=0x0;_0x56cfef<_0x4d63cc['length'];_0x56cfef++)if(_0x94fb0f(this,_0x4d63cc[_0x56cfef],_0x3f2779,0x0))return!0x0;return!0x1;function _0x94fb0f(_0x1e337c,_0x11dc00,_0x36315f,_0x4567af){for(let _0x44ab17=_0x4567af;_0x44ab17<_0x36315f['length'];_0x44ab17++){const _0x22b0d8=_0x36315f[_0x44ab17];if(_0x22b0d8['type']!==_0x11dc00['type']||_0x22b0d8['author']['id']!==_0x11dc00['author']['id']||_0x22b0d8['subType']!==_0x11dc00['subType'])continue;if(!mn(_0x11dc00,_0x22b0d8))continue;if('attribute'==_0x11dc00['type']&&_0x11dc00['data']['oldValue']!=_0x22b0d8['data']['oldValue'])continue;if('attribute'==_0x11dc00['type']&&_0x1e337c['_suggestionsConversion']['isBlockAttribute'](_0x11dc00['data']['key']))continue;if('formatBlock'==_0x11dc00['type']){const _0xe9c7ec=_0x1e337c['editor']['model'],_0x563cf8=_0x11dc00['getContainedElement']();if(_0x563cf8&&(_0xe9c7ec['schema']['isObject'](_0x563cf8)||_0xe9c7ec['schema']['isLimit'](_0x563cf8)))continue;}const _0x12f607=_0x4f1e82['get'](_0x11dc00),_0x59cb97=_0x1e0de4['get'](_0x11dc00),_0x166315=_0x1e0de4['get'](_0x22b0d8),_0x2d711c=_0x11dc00['commentThread']&&_0x11dc00['commentThread']['length'],_0x49372f=_0x22b0d8['commentThread']&&_0x22b0d8['commentThread']['length'];if(!_0x2d711c&&_0x12f607(_0x166315,_0x59cb97))return _0x1e337c['_joinSuggestions'](_0x22b0d8,_0x11dc00),_0x1e0de4['delete'](_0x11dc00),!0x0;if(!_0x49372f&&_0x12f607(_0x59cb97,_0x166315))return _0x1e337c['_joinSuggestions'](_0x11dc00,_0x22b0d8),_0x1e0de4['delete'](_0x22b0d8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32fe23,_0x423fe3){if(_0x32fe23['isMultiRange']){for(const _0x46dd69 of _0x423fe3['getRanges']())_0x32fe23['addRange'](_0x46dd69);}else{const _0x49fae7=_0x423fe3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32fe23,this['_model']['createRange'](_0x32fe23['getFirstRange']()['start'],_0x49fae7));}_0x423fe3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x378f1b,_0x260a5b,_0x5a0c13){const _0x38655e=_0x378f1b['startsWith']('format')||_0x378f1b['startsWith']('attribute')?'FORMATTING':_0x378f1b['toUpperCase']();return St(this['editor']['locale'],_0x260a5b+'_'+_0x38655e+'_SUGGESTION_ANNOUNCEMENT',_0x5a0c13);}['_initAriaMarkerChangeAnnouncements'](){const _0x59f248=this['editor'];if(!_0x59f248['ui'])return;const {ariaLiveAnnouncer:_0xd305e2}=_0x59f248['ui'];et(this['_model'],({left:_0xaa9ada,entered:_0xfef606})=>{for(const _0xe8fe4b of _0xaa9ada){const {group:_0x11eba2,type:_0x546505}=tt(_0xe8fe4b['name']);if('suggestion'===_0x11eba2){_0xd305e2['announce'](this['_getMarkerAnnouncementText'](_0x546505,'LEAVE'));break;}}for(const _0x11aa11 of _0xfef606){const {group:_0x14ca88,type:_0x465e1a}=tt(_0x11aa11['name']);if('suggestion'===_0x14ca88){_0xd305e2['announce'](this['_getMarkerAnnouncementText'](_0x465e1a,'ENTER',_0x381dd1(_0x1f759c)));break;}}});}['_processAttributeChanges'](_0x30d6d0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24d352=this['editor'],_0x87d8d7=_0x24d352['model']['document']['differ']['getChanges']();if(0x0==_0x87d8d7['length'])return!0x1;const _0x34b455=[],_0x1a5e8b=_0x87d8d7['filter'](_0x569a83=>'attribute'==_0x569a83['type']),_0x4cf26d=_0x87d8d7['filter'](_0x4ebfc6=>'insert'==_0x4ebfc6['type']&&'$text'!=_0x4ebfc6['name']),_0x133ae7=_0x87d8d7['filter'](_0x47e73f=>'remove'==_0x47e73f['type']&&'$text'!=_0x47e73f['name']);for(const _0x410347 of _0x1a5e8b)_0x34b455['push']({'key':_0x410347['attributeKey'],'newValue':_0x410347['attributeNewValue'],'oldValue':_0x410347['attributeOldValue'],'range':hn(_0x410347['range'],_0x24d352['model'])});for(const _0x3b3c84 of _0x4cf26d){const _0xe1f2d8=_0x133ae7['find'](_0x2cd2b2=>_0x2cd2b2['position']['isEqual'](_0x3b3c84['position']));_0xe1f2d8&&_0x34b455['push']({'key':en,'newValue':_0x3b3c84['name'],'oldValue':_0xe1f2d8['name'],'range':_0x24d352['model']['createRangeOn'](_0x3b3c84['position']['nodeAfter'])});}return 0x0!=_0x34b455['length']&&this['_reduceExistingSuggestions'](_0x30d6d0,_0x34b455);}['_processAttributeSuggestions'](_0x103a01){let _0x237a80=!0x1;const _0x266d48=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1df687=>_0x1df687['data']['newRange']&&_0x1df687['name']['startsWith']('suggestion:attribute:'));for(const _0x7bfac0 of _0x266d48){const {subType:_0x135ede,id:_0x33ecf1}=tt(_0x7bfac0['name']),_0x5f3edf=_0x135ede['split']('|')[0x0];for(const _0x5308ff of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5308ff['id']!=_0x33ecf1&&'attribute'==_0x5308ff['type']&&_0x5308ff['data']&&_0x5308ff['data']['key']==_0x5f3edf&&_0x5308ff['getFirstRange']()['isIntersecting'](_0x7bfac0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5308ff,_0x7bfac0['data']['newRange'],_0x103a01),_0x237a80=!0x0);}return _0x237a80;}['recordAttributeChanges'](_0x15c0b7){this['_recordAttributeSuggestions']=!0x0,_0x15c0b7();}['_reduceExistingSuggestions'](_0x3ed9cf,_0x35c97e){if(0x0==_0x35c97e['length'])return!0x1;let _0x587a29=!0x1;for(const _0x571da2 of _0x35c97e){const _0x5d6298=this['_findSuggestions'](_0x571da2['range'],'attribute')['filter'](_0x9ab307=>!_0x9ab307['meta']['isNextTo'])['map'](_0x4a684b=>_0x4a684b['suggestion']),_0x38ef5b=_0x53a26e({'newValue':_0x571da2['newValue']});_0x5d6298['filter'](_0x340a5a=>{const [_0x2931ed,_0x42859f]=_0x340a5a['subType']['split']('|');return _0x2931ed==_0x571da2['key']&&_0x42859f!=_0x38ef5b;})['forEach'](_0x3090dc=>{this['_reduceSuggestionAttributeRange'](_0x3090dc,_0x571da2['range'],_0x3ed9cf),_0x587a29=!0x0;});}return _0x587a29;}['_reduceSuggestionAttributeRange'](_0x2af8bc,_0x3a151f,_0x2b582a){const _0x806e42=_0x2af8bc['getFirstRange']()['getDifference'](_0x3a151f);0x0!==_0x806e42['length']?0x1!==_0x806e42['length']?this['_breakSuggestionMarker'](_0x2af8bc,_0x3a151f['start'],_0x3a151f['end']):this['_setSuggestionRange'](_0x2af8bc,_0x806e42[0x0]):_0x2b582a['removeMarker'](_0x2af8bc['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x689752){this['_editor']=_0x689752,this['_model']=_0x689752['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x531201,_0xbb4d8,_0xb86967,_0x57bfc7,_0xcb0fd2,_0x133e94,_0x10780d){return new yt(this['_model'],{'type':_0x531201,'subType':_0xbb4d8,'id':_0xb86967,'originalSuggestionId':_0x10780d,'author':_0x57bfc7,'creator':_0x57bfc7,'attributes':_0xcb0fd2,'onAttributesChange':_0x133e94,'onAccept':(..._0x168c57)=>this['getSuggestionCallback'](_0x531201,_0xbb4d8,'accept')(..._0x168c57),'onDiscard':(..._0x23811c)=>this['getSuggestionCallback'](_0x531201,_0xbb4d8,'discard')(..._0x23811c)});}['registerCustomCallback'](_0x14f370,_0x25cbad,_0x54306f,_0x4fae61){const _0x3dac8b=_0x14f370+':'+_0x25cbad+':'+_0x54306f;this['_customCallbacks']['set'](_0x3dac8b,_0x4fae61);}['getSuggestionCallback'](_0x346e1d,_0x1bae00,_0x19f9f6){const _0x4381d7=_0x346e1d+':'+_0x1bae00+':'+_0x19f9f6;return this['_customCallbacks']['get'](_0x4381d7)||this['_defaultCallbacks']['get'](_0x346e1d+':'+_0x19f9f6);}['_registerDefaultCallbacks'](){const _0x4bcd4e=()=>!0x1,_0x439763=_0x4e9c81=>{_0x4e9c81['sort']((_0x42a90c,_0x758f12)=>_0x42a90c['start']['isBefore'](_0x758f12['start'])?0x1:-0x1),this['_model']['change'](_0xa6b583=>{for(const _0x116bb6 of _0x4e9c81){let _0xd0682f;_0xd0682f=_0x116bb6['end']['isAtEnd']&&_0x116bb6['end']['parent']==_0x116bb6['start']['nodeAfter']?_0xa6b583['createSelection'](_0x116bb6['start']['nodeAfter'],'on'):_0xa6b583['createSelection'](_0x116bb6),this['_model']['deleteContent'](_0xd0682f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1509fa=(_0x50adea,_0x1aa52d)=>{_0x1aa52d&&this['_model']['change'](_0x3eb150=>{const {commandName:_0x21842f,commandParams:_0xe69fad=[]}=_0x1aa52d,_0x3c43f7=_0x50adea['map'](_0xd76dc8=>(on(_0xd76dc8)&&(_0xd76dc8=this['_model']['createRange'](_0xd76dc8['end'])),_0xd76dc8))['filter'](_0x386648=>'$graveyard'!==_0x386648['root']['rootName']);if(_0x3c43f7['length']<0x1)return;const _0x5b454a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x228026=>rt['fromRange'](_0x228026));_0x3eb150['setSelection'](_0x3c43f7);for(const _0x54e9a4 of this['_editor']['commands']['commands']())_0x54e9a4['refresh']();_0xe69fad['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x21842f,..._0xe69fad);const _0x1b1fd5=_0x5b454a['filter'](_0x5d030c=>'$graveyard'!=_0x5d030c['root']['rootName']);_0x1b1fd5['length']>0x0&&_0x3eb150['setSelection'](_0x1b1fd5);for(const _0x440f7d of _0x5b454a)_0x440f7d['detach']();});},_0x28a454=(_0x43280c,_0x1c1ed1)=>0x1==_0x43280c['length']&&0x1==_0x1c1ed1['length']&&_0x43280c[0x0]['end']['isEqual'](_0x1c1ed1[0x0]['start']),_0x512c10=(_0x41bcdd,_0x59942c,_0x321a6c,_0x51cf1f)=>fn(_0x41bcdd,_0x59942c,_0x321a6c,_0x51cf1f)?[_0x41bcdd,_0x59942c]:fn(_0x59942c,_0x41bcdd,_0x51cf1f,_0x321a6c)?[_0x59942c,_0x41bcdd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4bcd4e),this['_defaultCallbacks']['set']('insertion:discard',_0x439763),this['_defaultCallbacks']['set']('insertion:join',_0x28a454),this['_defaultCallbacks']['set']('insertion:chain',_0x512c10),this['_defaultCallbacks']['set']('deletion:accept',_0x439763),this['_defaultCallbacks']['set']('deletion:discard',_0x4bcd4e),this['_defaultCallbacks']['set']('deletion:join',_0x28a454),this['_defaultCallbacks']['set']('deletion:chain',_0x512c10),this['_defaultCallbacks']['set']('formatInline:accept',_0x1509fa),this['_defaultCallbacks']['set']('formatInline:discard',_0x4bcd4e),this['_defaultCallbacks']['set']('formatInline:join',_0x28a454),this['_defaultCallbacks']['set']('formatInline:chain',_0x4bcd4e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1509fa),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4bcd4e),this['_defaultCallbacks']['set']('formatBlock:join',_0x28a454),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4bcd4e),this['_defaultCallbacks']['set']('attribute:accept',_0x4bcd4e),this['_defaultCallbacks']['set']('attribute:discard',(_0x12b6b1,_0x5b6bc0)=>{if(!_0x5b6bc0)return;const _0x5135de=this['_editor']['plugins']['get'](_0x5d966d);this['_model']['change'](_0x2659fa=>{if('$elementName'==_0x5b6bc0['key'])for(const _0x4370e3 of _0x12b6b1){const _0x58e789=_0x4370e3['start']['nodeAfter'],_0xd39a91=_0x5b6bc0['oldValue'];_0x2659fa['rename'](_0x58e789,_0xd39a91);}else{if(_0x5135de['isBlockAttribute'](_0x5b6bc0['key'])){for(const _0x4ea4c6 of _0x12b6b1)void 0x0!==_0x5b6bc0['oldValue']?_0x2659fa['setAttribute'](_0x5b6bc0['key'],_0x5b6bc0['oldValue'],_0x4ea4c6['start']['nodeAfter']):_0x2659fa['removeAttribute'](_0x5b6bc0['key'],_0x4ea4c6['start']['nodeAfter']);}else{for(const _0x2cdbe7 of _0x12b6b1)_0x5b6bc0['oldValue']?_0x2659fa['setAttribute'](_0x5b6bc0['key'],_0x5b6bc0['oldValue'],_0x2cdbe7):_0x2659fa['removeAttribute'](_0x5b6bc0['key'],_0x2cdbe7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x28a454);}};function rn(_0x2a032f,_0x53273f,_0x10c339){for(const _0xc964b7 of _0x53273f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xc964b7['root']==_0xc964b7)return!0x1;if(!_0x10c339['containsItem'](_0xc964b7))return!0x1;if(_0x2a032f['isObject'](_0xc964b7)||_0x2a032f['isLimit'](_0xc964b7))return!0x0;}return!0x1;}function on(_0x101c9f){return _0x101c9f['end']['parent']==_0x101c9f['start']['nodeAfter']&&_0x101c9f['end']['isAtStart'];}function an(_0x257247,_0x1170af,_0x9f120b,_0x2ab09d){const _0x4f11f4=_0x4c036a=>!_0x4c036a['item']['is']('$textProxy')&&!_0x2ab09d['isObject'](_0x4c036a['item']),_0x44ee24=_0x257247['start']['getLastMatchingPosition'](_0x4f11f4),_0x3f2982=_0x257247['end']['getLastMatchingPosition'](_0x4f11f4,{'direction':'backward'});return(!_0x257247['start']['isEqual'](_0x44ee24)||!_0x257247['end']['isEqual'](_0x3f2982))&&(_0x44ee24['isBefore'](_0x3f2982)?_0x9f120b['updateMarker'](_0x1170af,{'range':_0x9f120b['createRange'](_0x44ee24,_0x3f2982)}):_0x9f120b['removeMarker'](_0x1170af),!0x0);}function cn(_0x5c4aec){return _0x53a26e(_0x5c4aec);}function ln(_0x236aca){const _0x73113=_0x236aca['start']['nodeAfter'];return _0x73113&&_0x73113['is']('element');}function un(_0x275439){return on(_0x275439)||function(_0x538b36){return _0x538b36['start']['parent']==_0x538b36['end']['nodeBefore']&&_0x538b36['start']['isAtEnd'];}(_0x275439);}function dn(_0x55c189,_0x47ba20){try{const _0x1dff26=_0x55c189['getRange']();for(const _0x4680c7 of _0x47ba20)if(_0x55c189!==_0x4680c7&&_0x1dff26&&_0x1dff26['isIntersecting'](_0x4680c7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x4d3cba,_0x443ae8){return null==_0x4d3cba['end']['nodeBefore']&&_0x4d3cba['end']['parent']==_0x4d3cba['start']['nodeAfter']?gn(_0x4d3cba['start']['nodeAfter'],_0x443ae8):_0x4d3cba;}function gn(_0x69f01e,_0x2f7a57){const _0x1da0db=_0x2f7a57['schema']['isObject'](_0x69f01e)||_0x2f7a57['schema']['isSelectable'](_0x69f01e);return _0x2f7a57['createRange'](_0x2f7a57['createPositionAt'](_0x69f01e,'before'),_0x1da0db?_0x2f7a57['createPositionAfter'](_0x69f01e):_0x2f7a57['createPositionAt'](_0x69f01e,'end'));}function fn(_0x5a69a7,_0x340144,_0x1969e9,_0x535afb){return!!mn(_0x5a69a7,_0x340144)&&_0x1969e9['end']['isEqual'](_0x535afb['start']);}function mn(_0x4b2452,_0x2d5eee){if(!_0x4b2452['_isDataLoaded']||!_0x2d5eee['_isDataLoaded'])return!0x1;const _0x3b5003=new Set(Object['keys'](_0x4b2452['attributes'])),_0xcdcd46=new Set(Object['keys'](_0x2d5eee['attributes']));if(_0x3b5003['delete']('groupId'),_0xcdcd46['delete']('groupId'),0x0==_0x3b5003['size']&&0x0==_0xcdcd46['size'])return!0x0;if(_0x3b5003['size']!=_0xcdcd46['size'])return!0x1;const _0x40a54a={..._0x4b2452['attributes']},_0x5575a2={..._0x2d5eee['attributes']};return delete _0x40a54a['groupId'],delete _0x5575a2['groupId'],JSON['stringify'](_0x40a54a)==JSON['stringify'](_0x5575a2);}function En(_0x380e7f,_0x2cf207){const _0x3f2059=Tn(_0x380e7f['attributes']),_0x422d73=Tn(_0x2cf207);if(!_0x380e7f['_isDataLoaded'])return!0x1;if(!ct(_0x3f2059['@ai'],_0x422d73['@ai']))return!0x1;for(const _0xcd876a of Object['keys'](_0x422d73))if(!ct(_0x3f2059[_0xcd876a],_0x422d73[_0xcd876a]))return!0x1;return!0x0;}function Tn(_0x574437){const _0x27ca42=Object['assign']({},_0x574437);return delete _0x27ca42['skipNestingCheck'],delete _0x27ca42['tablePasteChainId'],_0x27ca42;}function _n(_0x102358){return _0x102358['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
26
- _0x2bef64();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5d91a4,_0x2ddc08,_0x19b8c7,_0x4f62d1){super(),this['model']=_0x2ddc08,this['view']=_0x19b8c7,this['commentThreadController']=_0x4f62d1,this['_editor']=_0x5d91a4,this['_acceptCommand']=_0x5d91a4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5d91a4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x287eb1,_0x2a63fd)=>_0x287eb1||_0x2a63fd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x146a23=>_0x146a23&&this['_editor']['model']['canEditAt'](_0x2ddc08['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x362cab=>_0x362cab&&this['_editor']['model']['canEditAt'](_0x2ddc08['getRanges']())),this['_pendingAction']=null,_0x19b8c7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x19b8c7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x19b8c7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x19b8c7,'change:isDirty',()=>{_0x19b8c7['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 _0x5082db=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5082db);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x3a3108{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x11812f,_0x4e10d2,_0x2223e3,_0x407bcd){super(_0x11812f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x175aac(_0x11812f,St(_0x11812f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e10d2['authoredAt']),this['bind']('authoredAt')['to'](_0x4e10d2),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',_0x4e10d2,'authoredAt',this,'descriptionParts',(_0x566c51,_0x5f5501,_0x420cf7)=>{const _0x2aed13=_0x420cf7['map'](_0x24450e=>pt(_0x24450e['content']))['join']('.\x20')+'.',_0x278314=_0x4e10d2['aiSource']&&'author'===_0x407bcd['showAISource']?_0x407bcd['aiAuthor']['name']:_0x4e10d2['author']['name'],_0x11b50a=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x566c51-0x1,_0x278314,_0x5f5501?_0x407bcd['formatDateTime'](_0x5f5501):'',new DOMParser()['parseFromString'](_0x2aed13,'text/html')['body']['textContent']]);return _0x4e10d2['aiSource']&&'pill'===_0x407bcd['showAISource']?_0x11b50a+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x11b50a;}),this['focusables']=new _0x4f5fde(),this['focusTracker']=new _0x3c340c(),this['keystrokes']=new _0x2ed861(),this['focusCycler']=new _0x31ed0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e019d=>_0x1e019d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4e10d2,this['_localUser']=_0x2223e3,this['_config']=_0x407bcd,_0x407bcd['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x361492(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1da454}=this['_config'];this['commentsListView']=new _0x1da454(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',_0x5d2c49=>_0x5d2c49+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3998e9,_0xf9120d)=>_0x3998e9||!!_0xf9120d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1acdb0}=this['_config'],_0x52840f=new _0x1acdb0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x12e075=_0x52840f['commentInputView'];return _0x52840f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x12e075,'value',(_0x349094,_0x53c280,_0x56bdbb)=>!!_0x56bdbb||_0x349094&&!_0x53c280),_0x12e075['on']('submit',(_0x36d49f,_0x3e6d01)=>{this['fire']('addComment',_0x3e6d01),_0x12e075['editor']['setData']('');}),_0x12e075['on']('cancel',()=>this['focus']()),_0x12e075['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x52840f;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x448e0e,_0x19cc3b,_0x19ec03,_0x54ad7e){super(_0x448e0e,_0x19cc3b,_0x19ec03,_0x54ad7e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x346ecf=>_0x346ecf&&_0x346ecf[0x0]?_0x346ecf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2ec9fc,_0x5bc75e)=>{let _0x299252='';for(const _0x39a659 of _0x2ec9fc)_0x299252+='<p>'+pt(_0x39a659['content'],_0x39a659['color'])+'</p>';return _0x5bc75e?_0x299252:nt(_0x299252,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x54ad7e['SuggestionView'](_0x448e0e,_0x19cc3b,{'formatDateTime':_0x54ad7e['formatDateTime'],'showAISource':_0x54ad7e['showAISource'],'aiAuthor':_0x54ad7e['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x386990=this['bindTemplate'],_0x474531=[this['suggestionView']];return this['commentsListView']&&_0x474531['push'](this['commentsListView']),this['commentThreadInputView']&&_0x474531['push'](this['commentThreadInputView']),_0x474531['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x386990['if']('isActive','ck-suggestion-wrapper--active'),_0x386990['to']('type',_0x15a4d7=>'ck-suggestion-'+_0x15a4d7),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':_0x386990['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x474531};}['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));}},bn=class extends _0x3a3108{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x457b06,_0x40a880,_0x525e13){super(_0x457b06),this['_model']=_0x40a880,this['_config']=_0x525e13,this['set']('description',''),this['bind']('authoredAt')['to'](_0x40a880),this['acceptButton']=this['_createButton'](St(_0x457b06,'Accept\x20suggestion'),_0x25d455,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x457b06,'Discard\x20suggestion'),_0xd3349f,'ck-suggestion--discard','discardSuggestion','sw');const _0x2c2e6e=!!_0x40a880['aiSource']&&'author'===_0x525e13['showAISource'],_0x5a9750=_0x2c2e6e?this['_createAIUser'](_0x525e13['aiAuthor']):_0x40a880['author'],_0xeb218b=_0x2c2e6e&&!_0x525e13['aiAuthor']['avatar']?_0x2feac2:void 0x0;this['userView']=new _0x19f167(_0x457b06,_0x5a9750,this['getUserViewNotificationText'](),_0xeb218b),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f5fde([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3c340c(),this['keystrokes']=new _0x2ed861(),this['focusCycler']=new _0x31ed0a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55c2c5=>_0x55c2c5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3675b1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3675b1['innerHTML']=this['description'],this['on']('change:description',(_0x2f151e,_0x48407a,_0x77ef96)=>{_0x3675b1['innerHTML']=_0x77ef96;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3b52cb=this['bindTemplate'],_0x415924=[{'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':_0x3b52cb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3b52cb['to']('authoredAt',_0x373bee=>this['_config']['formatDateTime'](_0x373bee))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x415924['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1a115f=new _0x20187a(this['locale']);_0x1a115f['set']({'icon':_0x385a8f,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x415924['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1a115f]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x415924}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x42b9fb){return new _0x4eb5bf({'id':'ck-ai-author','name':_0x42b9fb['name'],'avatar':_0x42b9fb['avatar'],'color':new _0x3459d2(0x0)});}['_createButton'](_0xb8f3cf,_0x48f315,_0x17bbe9,_0x595b12,_0x1d2e18){const _0x4ae41f=new _0x4057c9(this['locale']);return _0x4ae41f['set']({'label':_0xb8f3cf,'icon':_0x48f315,'tooltip':!0x0,'tooltipPosition':_0x1d2e18}),_0x4ae41f['extendTemplate']({'attributes':{'class':_0x17bbe9}}),_0x4ae41f['on']('execute',()=>{this['fire'](_0x595b12,this['_model']['id']);}),_0x4ae41f;}['_setupKeyboardNavigation'](){const _0x258729=this['element'];this['keystrokes']['listenTo'](_0x258729);for(const _0x2891e0 of this['focusables'])this['focusTracker']['add'](_0x2891e0['element']),this['keystrokes']['listenTo'](_0x2891e0['element']);this['keystrokes']['set']('enter',(_0x1b72b0,_0x87c106)=>{_0x258729===_0x1b72b0['target']&&(this['focusCycler']['focusFirst'](),_0x87c106());}),this['keystrokes']['set']('esc',(_0xf6764e,_0x42aa43)=>{_0x258729!==_0xf6764e['target']&&(this['focus'](),_0x42aa43());});}},kn=class extends _0x3f3b34{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x786008,_0x4b575b,_0x157e9d,_0x5516ab];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17699f){super(_0x17699f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4ed930=this['editor']['config'];_0x4ed930['define']('trackChanges.SuggestionThreadView',An),_0x4ed930['define']('trackChanges.SuggestionView',bn),_0x4ed930['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4ed930['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x196fb3,_0x2309cb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45fdbc,_0x158c6c]of this['_handleControllerBuffer']){const _0xd9c4a9=this['_suggestionToController']['has'](_0x45fdbc);_0xd9c4a9||_0x158c6c?_0xd9c4a9&&_0x158c6c&&this['_destroyController'](_0x45fdbc):this['_initializeController'](_0x45fdbc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5516ab)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x196fb3,_0x2309cb);}['init'](){const _0x41ea2f=this['editor'],_0x1509ec=_0x41ea2f['plugins']['get'](nn),_0x2cb51d=_0x41ea2f['plugins']['get'](_0x157e9d),_0x57c374=_0x41ea2f['plugins']['get'](_0x5516ab),_0xa8258=_0x41ea2f['plugins']['get'](_0x4b575b);this['_addUIComponentsToFactory'](),_0x57c374['addSourceCollector'](()=>{const _0x5b7e7c=[];for(const [_0x244f0e,_0x1fda42]of Array['from'](this['_suggestionToController'])){const _0x5e92c7=_0x244f0e['getAllAdjacentSuggestions'](),_0x18996b=[];for(const _0x4c17e9 of _0x5e92c7){if(!_0x4c17e9['isInContent'])continue;if(_0x4c17e9['isMultiRange']){_0x18996b['push'](..._0x4c17e9['getRanges']());continue;}const _0x3416b8=_0x4c17e9['getFirstRange']();if(_0x18996b['length']>0x0){const _0x370ebe=_0x18996b[0x0]['getJoined'](_0x3416b8);if(_0x370ebe){_0x18996b[0x0]=_0x370ebe;continue;}}_0x18996b['push'](_0x3416b8);}_0x5b7e7c['push']([_0x1fda42['view'],_0x18996b]);}return _0x5b7e7c;}),this['listenTo'](_0x1509ec,'suggestionLoaded',(_0x54ff70,_0x3cfef8)=>{this['listenTo'](_0x3cfef8,'change:previous',(_0x33394d,_0x5b25f0,_0x1312f7,_0x5cd8a2)=>{_0x3cfef8['isInContent']&&(null==_0x1312f7?(this['_updateController'](_0x5cd8a2['head']),this['_handleSuggestionControllerDelayed'](_0x3cfef8,!0x1)):(this['_updateController'](_0x1312f7['head']),null==_0x5cd8a2&&this['_handleSuggestionControllerDelayed'](_0x3cfef8,!0x0)));}),null!==_0x3cfef8['previous']?this['_updateController'](_0x3cfef8['head']):this['_handleSuggestionControllerDelayed'](_0x3cfef8,!0x1);}),this['listenTo'](_0x1509ec,'suggestionUnloaded',(_0x4956b5,_0x2ea52d,_0x110825)=>{this['stopListening'](_0x2ea52d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ea52d),this['_suggestionToController']['has'](_0x2ea52d)&&this['_destroyController'](_0x2ea52d),_0x110825&&this['_updateController'](_0x110825['head']);}),this['listenTo'](_0x1509ec,'suggestionChanged',(_0x396687,_0x51974c)=>{this['_updateController'](_0x51974c);}),this['listenTo'](_0x2cb51d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xa8258,'addComment',(_0x45d790,{threadId:_0x44fd31,isFromAdapter:_0x1a67dc})=>{if(_0x1a67dc||!_0x1509ec['hasSuggestion'](_0x44fd31))return;const _0x21be57=_0x1509ec['getSuggestion'](_0x44fd31);this['_suggestionToController']['get'](_0x21be57)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x171d97=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa56056;for(const _0x861fb3 in _0x171d97){const _0x4a08d5=_0x861fb3,_0x1b5913=_0x171d97[_0x4a08d5];if('trackChangesLicenseKeyValid'==_0x1b5913||'trackChangesLicenseKeyInvalid'==_0x1b5913||'trackChangesLicenseKeyExpired'==_0x1b5913||'trackChangesLicenseKeyDomainLimit'==_0x1b5913||'trackChangesLicenseKeyNotAllowed'==_0x1b5913||'trackChangesLicenseKeyEvaluationLimit'==_0x1b5913||'trackChangesLicenseKeyUsageLimit'==_0x1b5913){delete _0x171d97[_0x4a08d5],_0xa56056=_0x1b5913,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xa56056&&_0x171d97['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xa56056&&_0x171d97['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xa56056&&_0x171d97['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xa56056&&_0x171d97['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xa56056&&_0x171d97['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0xa56056&&_0x171d97['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1e1826){const _0x23c901=this['_suggestionToController']['get'](_0x1e1826);return _0x23c901&&this['editor']['plugins']['get'](_0x157e9d)['getByInnerView'](_0x23c901['view'])||null;}['getSuggestionForAnnotation'](_0x244d1b){const _0x37ef6b=this['_viewToController']['get'](_0x244d1b['innerView']);return _0x37ef6b?_0x37ef6b['model']:null;}['_refreshActiveMarkers'](){const _0x2f0155=this['editor']['plugins']['get'](_0x157e9d),_0x31ff6b=this['editor']['plugins']['get'](nn),_0x2b594c=Array['from'](_0x2f0155['activeAnnotations'],_0x392abd=>_0x392abd['innerView'])['filter'](_0x2b4110=>this['_viewToController']['has'](_0x2b4110)),_0x32b325=[];for(const _0x36dbb5 of _0x2b594c){const _0x5b6206=this['_viewToController']['get'](_0x36dbb5)['model']['getAllAdjacentSuggestions']();_0x32b325['push'](..._0x5b6206['reduce']((_0x3ab535,_0x1e7d77)=>[..._0x3ab535,..._0x1e7d77['getMarkerNames']()],[]));}_0x31ff6b['activeMarkers']=_0x32b325;}['_addUIComponentsToFactory'](){const _0x20a4d8=this['editor'],_0x49eae6=_0x20a4d8['locale'],_0x48807c=St(_0x49eae6,'Track\x20changes'),_0x2815e5=new _0x286b38([{'type':'switchbutton','model':new _0x3063c3({'withText':!0x0,'isToggleable':!0x0,'label':_0x48807c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3063c3({'withText':!0x0,'label':St(_0x49eae6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3063c3({'withText':!0x0,'label':St(_0x49eae6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3063c3({'withText':!0x0,'label':St(_0x49eae6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3063c3({'withText':!0x0,'label':St(_0x49eae6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x20a4d8['plugins']['has']('TrackChangesPreview')&&_0x2815e5['addMany']([{'type':'separator'},{'type':'button','model':new _0x3063c3({'withText':!0x0,'label':St(_0x49eae6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x24a161 of _0x2815e5)if(Cn(_0x24a161)){const _0x25c271=_0x20a4d8['commands']['get'](_0x24a161['model']['commandName']);_0x24a161['model']['bind']('isOn','isEnabled')['to'](_0x25c271,'value','isEnabled');}_0x20a4d8['ui']['componentFactory']['add']('trackChanges',_0x4321f5=>this['_createToolbarButton'](_0x4321f5,_0x2815e5,_0x48807c)),_0x20a4d8['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa26d9c=>this['_createMenuBarMenu'](_0xa26d9c,_0x2815e5,_0x48807c));}['_createToolbarButton'](_0x628c97,_0x5c9e8a,_0x11668b){const _0x597c89=_0x383de7(_0x628c97,_0x3a90da),_0x3629f2=this['editor']['commands']['get']('trackChanges');_0x597c89['buttonView']['set']({'tooltip':_0x11668b,'label':_0x11668b,'icon':_0x37bf30}),_0x597c89['buttonView']['bind']('isOn')['to'](_0x3629f2,'value'),_0x597c89['buttonView']['on']('execute',()=>{_0x3629f2['execute'](),this['editor']['editing']['view']['focus']();}),_0xd33cb7(_0x597c89,_0x5c9e8a,{'role':'menu'});const _0xcb3804=[];for(const _0x30daac of _0x5c9e8a)Cn(_0x30daac)&&_0xcb3804['push'](this['editor']['commands']['get'](_0x30daac['model']['commandName']));const _0x1dd6fa=_0x597c89['buttonView'];return _0x1dd6fa['actionView']['unbind']('isEnabled'),_0x1dd6fa['arrowView']['unbind']('isEnabled'),_0x1dd6fa['actionView']['bind']('isEnabled')['to'](_0x3629f2,'isEnabled'),_0x1dd6fa['arrowView']['bind']('isEnabled')['toMany'](_0xcb3804,'isEnabled',(..._0x4773ec)=>_0x4773ec['some'](_0xc46633=>_0xc46633)),_0x597c89['on']('execute',_0x1bb4be=>{this['editor']['execute'](_0x1bb4be['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x597c89;}['_createMenuBarMenu'](_0x4715e3,_0x89691f,_0x62ff17){const _0x3cfce4=new _0x5d42ed(_0x4715e3),_0x2ec61b=this['editor']['commands']['get']('trackChanges');_0x3cfce4['buttonView']['set']({'label':_0x62ff17,'icon':_0x37bf30});const _0x3674ce=new _0x43fcad(_0x4715e3);for(const _0x44dbb4 of _0x89691f){if('separator'==_0x44dbb4['type']){_0x3674ce['items']['add'](new _0x4d8dfa(_0x4715e3));continue;}const _0x4844da=new _0x4f0f0f(_0x4715e3,_0x3cfce4),_0xc5992b=new _0x1952d3(_0x4715e3),_0x343d1e=_0x44dbb4['model'];_0xc5992b['bind'](...Object['keys'](_0x343d1e))['to'](_0x343d1e),_0xc5992b['delegate']('execute')['to'](_0x3cfce4),_0xc5992b['on']('execute',()=>{this['editor']['execute'](_0x343d1e['commandName']),this['editor']['editing']['view']['focus']();}),_0x4844da['children']['add'](_0xc5992b),_0x3674ce['items']['add'](_0x4844da);}return _0x3cfce4['bind']('isEnabled')['to'](_0x2ec61b,'isEnabled'),_0x3cfce4['panelView']['children']['add'](_0x3674ce),_0x3cfce4;}['_initializeController'](_0x4a8e4d){const _0x99373d=this['editor'],_0x342151=_0x99373d['config'],_0x13e029=_0x99373d['plugins']['get'](_0x157e9d),_0x1ce23d=_0x99373d['plugins']['get'](_0x4b575b),_0x4a3470=_0x99373d['plugins']['get'](_0x5516ab),_0x251d57=_0x99373d['plugins']['get'](_0x786008)['me'],_0x1b7edd=_0x342151['get']('trackChanges')['SuggestionThreadView'],_0x1f603c=_0x342151['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3898d5,CommentThreadInputView:_0x4c4249}=_0x99373d['plugins']['get']('CommentsUI');let _0x2b14d9,_0x2d4df6,_0x30f05c;this['_annotationViews']['has'](_0x4a8e4d['id'])?(_0x2d4df6=this['_annotationViews']['get'](_0x4a8e4d['id']),_0x2b14d9=_0x2d4df6['mainView']):(_0x2b14d9=new _0x1b7edd(_0x99373d['locale'],_0x4a8e4d,_0x251d57,{'disableComments':this['_disableComments'],'editorConfig':{..._0x342151['get']('comments.editorConfig'),'licenseKey':_0x342151['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x342151['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x342151['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x342151['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd7a6c7(_0x342151['get']('locale'),_0x99373d['locale']),'CommentView':_0x342151['get']('comments')['CommentView'],'CommentsListView':_0x3898d5,'CommentThreadInputView':_0x4c4249,'SuggestionView':_0x1f603c,'showAISource':_0x342151['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x342151['get']('trackChanges.aiAuthor'),'name':_0x342151['get']('trackChanges.aiAuthor')?.['name']||St(_0x99373d['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x2b14d9['suggestionView']['acceptButton']['on']('execute',()=>{_0x99373d['editing']['view']['focus']();}),_0x2b14d9['suggestionView']['discardButton']['on']('execute',()=>{_0x99373d['editing']['view']['focus']();}),_0x2d4df6=_0x13e029['createAnnotationView'](this['editor']['locale'],_0x2b14d9),_0x2d4df6['bind']('isDirty')['to'](_0x2b14d9,'isDirty'),_0x2d4df6['bind']('length')['to'](_0x2b14d9),_0x2d4df6['bind']('type')['to'](_0x2b14d9,'type',_0x394e0e=>'suggestion-'+_0x394e0e),_0x2b14d9['on']('escape',()=>{_0x30f05c['fire']('escape');}),this['_annotationViews']['set'](_0x4a8e4d['id'],_0x2d4df6));const _0x6609da=_0x1ce23d['createCommentThreadController'](_0x4a8e4d['commentThread'],_0x2b14d9),_0x50655c=new Ln(_0x99373d,_0x4a8e4d,_0x2b14d9,_0x6609da),_0xd6826e=_0x4a8e4d['getAllAdjacentSuggestions']()['filter'](_0x2d18a6=>_0x2d18a6['isInContent']);_0x2b14d9['descriptionParts']=_0x99373d['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0xd6826e),this['_suggestionToController']['set'](_0x4a8e4d,_0x50655c),this['_viewToController']['set'](_0x2b14d9,_0x50655c);const _0x2097fd=()=>{const _0x1b0eb5=[],_0x132347=_0x4a8e4d['getAllAdjacentSuggestions']()['filter'](_0x451eca=>_0x451eca['isInContent']);for(const _0x54ae0a of _0x132347)_0x1b0eb5['push'](..._0x54ae0a['getMarkers']());return _0x596e52(_0x99373d['editing'],_0x1b0eb5);};_0x30f05c=_0x13e029['createAnnotation']({'view':_0x2d4df6,'target':_0x2097fd,'type':()=>'suggestion-'+_0x50655c['view']['type'],'isVisible':!!_0x2097fd()}),_0x1ce23d['_bindAnnotationToEditors'](_0x2b14d9,_0x30f05c),_0x13e029['add'](_0x30f05c),_0x4a3470['registerAnnotation'](_0x30f05c);}['_destroyController'](_0x8834c7){const _0xedc90c=this['editor']['plugins']['get'](_0x4b575b),_0x26a2ff=this['editor']['plugins']['get'](_0x157e9d),_0x2f1f88=this['_suggestionToController']['get'](_0x8834c7),_0x58afa5=_0x2f1f88['view'],_0x2e005b=_0x26a2ff['getByInnerView'](_0x58afa5);_0xedc90c['_unbindEditors'](_0x58afa5),_0x2e005b&&_0x26a2ff['remove'](_0x2e005b),this['_suggestionToController']['delete'](_0x8834c7),this['_viewToController']['delete'](_0x58afa5),_0x2f1f88['destroy']();}['_updateController'](_0x56fe93){if(!_0x56fe93['isInContent']||!this['_suggestionToController']['has'](_0x56fe93))return;const _0x571908=this['editor']['plugins']['get'](nn),_0x4d0823=this['_suggestionToController']['get'](_0x56fe93),_0x3322bf=_0x56fe93['getAllAdjacentSuggestions']();_0x4d0823['view']['descriptionParts']=_0x571908['descriptionFactory']['getDescriptions'](_0x3322bf);}['destroy'](){for(const _0x331e32 of this['_suggestionToController']['keys']())this['_destroyController'](_0x331e32);for(const _0x484995 of this['_annotationViews']['values']())_0x484995['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x1badcf){return'model'in _0x1badcf;}var Rn=class extends _0x3f3b34{static get['requires'](){return[nn,kn,_0x3e4ae7];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x42ddb8){this['editor']['plugins']['get'](nn)['adapter']=_0x42ddb8;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x45ac0e){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x45ac0e);}['getSuggestions']({skipNotAttached:_0x3ef2a7=!0x1,toJSON:_0x4d8514=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x3ef2a7,'toJSON':_0x4d8514});}['getSuggestion'](_0x312717){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x312717);}};const Nn=['Pagination'];var yn=class extends _0x3f3b34{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53b0e8=this['editor'];if(_0x53b0e8['config']['define']('trackChangesData.editorCreator',_0xced823=>{const _0x2c125b=_0x53b0e8['model']['document']['getRootNames']()['reduce']((_0x4d24bd,_0x30e66c)=>(_0x4d24bd[_0x30e66c]='',_0x4d24bd),{});return _0x53b0e8['constructor']['create'](_0x2c125b,_0xced823);}),'function'!=typeof _0x53b0e8['config']['get']('trackChangesData')['editorCreator'])throw new _0x2185d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x21ff71){return On(this['editor'],!0x0,_0x21ff71);}['getDataWithDiscardedSuggestions'](_0x3fc155){return On(this['editor'],!0x1,_0x3fc155);}},Sn=class extends _0x3f3b34{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4134bf){super(_0x4134bf),this['result']='end',_0x4134bf['editing']['view']['_overlayModeHint']='auto',_0x4134bf['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Mn(_0x800361){return void 0x0!==_0x800361['getRootsAttributes'];}async function On(_0x5ccfc5,_0x5d03b0,_0x17d9b3){const _0x3b1ab2=_0xa2435d(_0x5ccfc5,Nn);if(_0x3b1ab2['plugins']['push'](nn,Sn),Mn(_0x5ccfc5)){_0x3b1ab2['roots']=Object['create'](null);for(const _0x538152 of _0x5ccfc5['model']['document']['getRootNames']())_0x3b1ab2['roots'][_0x538152]={'modelAttributes':_0x5ccfc5['getRootAttributes'](_0x538152)};}const _0x5b58cb=document['createDocumentFragment'](),_0x2aa898=_0x5ccfc5['config']['get']('trackChangesData')['editorCreator'],_0x3306e0=await _0x2aa898(_0x3b1ab2,()=>function(_0x453078){const _0x4e0b14=document['createElement']('div');return _0x453078['appendChild'](_0x4e0b14),_0x4e0b14;}(_0x5b58cb));!function(_0x5effc8,_0x24d24d){const _0x47ae7e=_0x5effc8['model']['document']['getRootNames']()['reduce']((_0x3b9022,_0x2d493c)=>(_0x3b9022[_0x2d493c]=_0x5effc8['data']['get']({'rootName':_0x2d493c}),_0x3b9022),{}),_0x5db4e4=_0x5effc8['plugins']['get']('Users')['users']['map'](_0xb23052=>({'id':_0xb23052['id'],'name':_0xb23052['name']})),_0x3d7a43=_0x5effc8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x229e1c=_0x5effc8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32e0df=_0x24d24d['plugins']['get']('Users'),_0x287f9d=_0x24d24d['plugins']['get']('TrackChangesEditing'),_0x43cc62=_0x24d24d['plugins']['get']('CommentsRepository');for(const _0x21b120 of _0x43cc62['getCommentThreads']())_0x21b120['remove']();for(const _0x4df12f of _0x5db4e4)_0x32e0df['getUser'](_0x4df12f['id'])||_0x32e0df['addUser'](_0x4df12f);_0x32e0df['me']||_0x32e0df['useAnonymousUser']();for(const _0x21486a of _0x229e1c)_0x43cc62['addCommentThread'](_0x21486a);for(const _0x2d42f8 of _0x3d7a43)_0x287f9d['addSuggestionData'](_0x2d42f8);_0x24d24d['data']['set'](_0x47ae7e);}(_0x5ccfc5,_0x3306e0),_0x3306e0['execute'](_0x5d03b0?'acceptAllSuggestions':'discardAllSuggestions');const _0x41b244=Mn(_0x3306e0)?_0x3306e0['getFullData'](_0x17d9b3):_0x3306e0['data']['get'](_0x17d9b3);return await _0x3306e0['destroy'](),_0x41b244;}var wn=class extends _0x3a3108{['options'];constructor(_0x2e6b66,_0x166873){super(_0x2e6b66),this['options']=_0x166873,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'](_0x4c0c59,_0x2f2e6b){if(!this['element'])return;const _0x13b255=[];for(const [_0x5f5962,_0x53eb7d]of _0x4c0c59){const _0xb2904d=document['createElement']('div');_0xb2904d['setAttribute']('data-ck-root-name',_0x5f5962),_0xb2904d['className']=_0x53eb7d['classes']+'\x20ck-track-changes-preview__root-container',_0xb2904d['innerHTML']=_0x53eb7d['content'],_0x13b255['push'](_0xb2904d);}_0x2f2e6b(this['element'],_0x13b255),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x3bd05a{constructor(_0x4a490f){super(_0x4a490f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x43a087=this['editor'],_0x325751=_0x43a087['locale'],_0x374bc=_0x43a087['plugins']['get']('Dialog');let _0x189816;const _0x17a9c2=function(_0x374588){const _0x13d5d5={};if('editables'in _0x374588['ui']['view']){for(const [_0x23cd1b,_0xf2d100]of Object['entries'](_0x374588['ui']['view']['editables']))_0x13d5d5[_0x23cd1b]=_0xf2d100['element'];}else _0x13d5d5[_0x374588['model']['document']['getRootNames']()[0x0]]=_0x374588['ui']['view']['editable']['element'];return _0x13d5d5;}(_0x43a087),_0x1d4800=function(_0x4dc9b6){let _0x388f64=0x0;for(const _0x1f6457 of Object['values'](_0x4dc9b6))_0x388f64=Math['max'](_0x388f64,_0x1f6457['getBoundingClientRect']()['width']);let _0x574da3=0x0;for(const _0x13d124 of Object['values'](_0x4dc9b6))_0x574da3+=_0x13d124['getBoundingClientRect']()['height'];const _0x36a915=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x388f64,'height':Math['min'](_0x574da3,_0x36a915)};}(_0x17a9c2);_0x374bc['show']({'id':'finalContentPreview','title':St(_0x325751,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x325751,{'dialogRects':_0x1d4800}),'onHide':()=>{_0x189816['detachFromDom']();},'onShow':()=>{_0x43a087['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5dab0d=>{const _0x4d8302=this['_standarizeRootsData'](_0x5dab0d,_0x43a087,_0x17a9c2);_0x374bc['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4d8302,_0x43a087['config']['get']('trackChanges.preview.renderFunction'));}),_0x189816=new _0x1c020e(_0x325751,[_0x374bc['view']]),_0x189816['attachToDom'](),_0x189816['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x43a087['once']('destroy',()=>{_0x189816['detachFromDom']();});const _0xcd30d6=_0x374bc['view']['headerView']['class'];_0x374bc['view']['headerView']['class']=_0xcd30d6?_0xcd30d6+'\x20ck-reset_all':'ck-reset_all',_0x374bc['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x374bc['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x36fc45=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x256003=_0x36fc45['previewMode'],_0x495ca4={};if('$labels'===_0x256003){for(const _0x4dfd27 of _0x36fc45['getMergeFieldsIds']())_0x495ca4[_0x4dfd27]=_0x36fc45['getLabel'](_0x4dfd27)||_0x4dfd27;}else{const _0x37a636='$defaultValues'===_0x256003?_0x36fc45['getDefaultValues']():_0x36fc45['getDataSetValues'](_0x256003,!0x0);for(const _0x562930 of Object['entries'](_0x37a636)){const [_0x1ceee5,_0x314023]=_0x562930;_0x495ca4[_0x1ceee5]=null!==_0x314023?_0x314023:_0x36fc45['getLabel'](_0x1ceee5)||_0x1ceee5;}}return{'mergeFieldsData':_0x495ca4};}['_standarizeRootsData'](_0xfabc95,_0x549129,_0x3bc622){let _0x1c01e6;_0x1c01e6='string'==typeof _0xfabc95?{[_0x549129['model']['document']['getRootNames']()[0x0]]:_0xfabc95}:_0xfabc95;const _0x4e56f7=this['_fixMediaEmbeds'](_0x1c01e6,_0x549129);return function(_0xff6eb5,_0xbd953c){for(const [_0x156898,_0x31afb6]of _0xff6eb5)_0x31afb6['classes']=_0xbd953c[_0x156898]['classList']['value']['replace']('ck-focused','');return _0xff6eb5;}(this['_sortRoots'](_0x549129)['reduce']((_0xe6247d,_0x5a1fd6)=>(_0xe6247d['push']([_0x5a1fd6,{'content':_0x4e56f7[_0x5a1fd6],'classes':''}]),_0xe6247d),[]),_0x3bc622);}['_fixMediaEmbeds'](_0x18e0e6,_0x2f66bb){if(!_0x2f66bb['plugins']['has']('MediaEmbedEditing'))return _0x18e0e6;const _0xabd737=_0x2f66bb['plugins']['get']('MediaEmbedEditing');for(const [_0x4cd56e,_0x534834]of Object['entries'](_0x18e0e6)){const _0x30033a=document['createElement']('div');_0x30033a['innerHTML']=_0x534834,_0x30033a['querySelectorAll']('figure.media')['forEach'](_0xbae1bf=>{const _0x3bcb33=_0xbae1bf['querySelector']('oembed');if(_0x3bcb33){const _0x52921e=_0x3bcb33['getAttribute']('url');if(_0x52921e){const _0x46540b=_0xabd737['registry']['getMediaViewElement'](new ot(_0x2f66bb['editing']['view']['document']),_0x52921e,{'elementName':'','renderForEditingView':!0x0}),_0x378e49=document['createElement']('div');_0x378e49['classList']['add']('ck-media__wrapper'),_0x46540b['render'](_0x378e49,_0x2f66bb['editing']['view']['domConverter']),_0x3bcb33['replaceWith'](_0x378e49);}}}),_0x18e0e6[_0x4cd56e]=_0x30033a['innerHTML'];}return _0x18e0e6;}['_sortRoots'](_0x147608){if(!function(_0x1ae191){return void 0x0!==_0x1ae191['getRootsAttributes'];}(_0x147608))return _0x147608['model']['document']['getRootNames']();const _0x485665=[],_0xbd1ddc=new Map();for(const _0x367f29 of _0x147608['model']['document']['getRootNames']()){const _0x2f7251=_0x147608['editing']['view']['getDomRoot'](_0x367f29)['getClientRects']()['item'](0x0);_0x485665['push'](_0x367f29),_0xbd1ddc['set'](_0x367f29,_0x2f7251);}return _0x485665['sort']((_0x2efc7c,_0x581ca8)=>{const _0x1b20c0=_0xbd1ddc['get'](_0x2efc7c),_0x565500=_0xbd1ddc['get'](_0x581ca8);return _0x1b20c0['y']-_0x565500['y']||_0x1b20c0['x']-_0x565500['x'];}),_0x485665;}},Bn=class extends _0x3f3b34{static get['requires'](){return[yn,_0x2c04b5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x542f22){super(_0x542f22),_0x542f22['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x542f22['config']['define']('trackChanges.preview.renderFunction',(_0x3688e7,_0x112ca4)=>{for(const _0x151ad0 of _0x112ca4)_0x3688e7['appendChild'](_0x151ad0);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
23
+ import{Command as _0x1da237,PendingActions as _0x1cc5ec,Plugin as _0x2dafdc}from'@ckeditor/ckeditor5-core';import{Annotations as _0x3a4036,Comments as _0x2fb358,CommentsRepository as _0xe4cf4f,EditorAnnotations as _0x3eea2f}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0xb0a0f9,Collection as _0x1350c2,FocusTracker as _0x27d278,KeystrokeHandler as _0x2b5be1,ObservableMixin as _0x41a589,getEnvKeystrokeText as _0x4b7938,insertToPriorityArray as _0x27bbee,logWarning as _0x5722b1,priorities as _0x5eb1e0,uid as _0x24c80d}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x5bcc5c,IconCancel as _0x376450,IconCheck as _0x50f8b3,IconSparkle as _0x5207dc,IconTrackChanges as _0x152b1f}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x53523d,Dialog as _0x4dc3b7,FocusCycler as _0x3b07c2,ListSeparatorView as _0x73fd58,MenuBarMenuListItemButtonView as _0x2a72c8,MenuBarMenuListItemView as _0x5d3ceb,MenuBarMenuListView as _0x5c449a,MenuBarMenuView as _0x55e3f3,SplitButtonView as _0x4440c7,UIModel as _0x5440b6,View as _0x359f90,ViewCollection as _0x4aa534,addListToDropdown as _0x53017d,createDropdown as _0x5873aa,normalizeColorOptions as _0x575edc}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x48d7c9,CollaborationUserColor as _0x1cc976,DocumentCompare as _0x30e621,FOCUS_ANNOTATION_KEYSTROKE as _0x525bb2,LateFocusButtonView as _0x2bc11b,PillView as _0x5e5110,SuggestionsConversion as _0x4df9c4,User as _0x360be7,UserView as _0x5c1d3d,Users as _0x30610e,fixElementSuggestionRange as _0x3dc5bc,getAllMarkersDomElementsSorted as _0x16637f,getDateTimeFormatter as _0x5d204d,hashObject as _0x24f18d,sanitizeEditorConfig as _0x4257ae,setupThreadKeyboardNavigation as _0x21d6af,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x1da237{['_enabledCommands'];constructor(_0x63361c,_0x1e464c){super(_0x63361c),this['_enabledCommands']=_0x1e464c,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 _0x491368 of this['editor']['commands']['commands']())_0x491368['affectsData']&&!this['_enabledCommands']['has'](_0x491368)&&_0x491368['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3ff5e2 of this['editor']['commands']['commands']())_0x3ff5e2['affectsData']&&!this['_enabledCommands']['has'](_0x3ff5e2)&&_0x3ff5e2['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x1da237{['_suggestions'];constructor(_0x12c030,_0x3bf6b1){super(_0x12c030),this['_suggestions']=_0x3bf6b1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x53159b){const _0x39236c=this['_suggestions']['get'](_0x53159b);if(!_0x39236c)throw new _0xb0a0f9('track-changes-accept-suggestion-not-found',this);const _0x7eb9d8=_0x39236c['getRanges']();this['editor']['model']['canEditAt'](_0x7eb9d8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x39236c);}},_t=class extends _0x1da237{['_suggestions'];constructor(_0x34f679,_0xf30ec5){super(_0x34f679),this['_suggestions']=_0xf30ec5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1aeff1){const _0x2fa234=this['_suggestions']['get'](_0x1aeff1);if(!_0x2fa234)throw new _0xb0a0f9('track-changes-discard-suggestion-not-found',this);const _0x20ded1=_0x2fa234['getRanges']();this['editor']['model']['canEditAt'](_0x20ded1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2fa234);}};function pt(_0x41e608,_0xd15529){let _0x1f8651='';return _0x1f8651+=_0x41e608['split']('*')['map']((_0x4b3fd6,_0x6c9b9f)=>_0x6c9b9f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x4b3fd6)+'</span>':Lt(_0x4b3fd6))['join'](''),_0xd15529&&(_0x1f8651+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xd15529['value']+'\x22\x20title=\x22'+_0xd15529['title']+'\x22></span>'),_0x1f8651;}function Lt(_0x3d898f){const _0xf8fe4d=document['createElement']('span');return _0xf8fe4d['innerText']=_0x3d898f,_0xf8fe4d['innerHTML'];}function It(_0x5667dd){return _0x5667dd['sort']((_0x326fec,_0x980942)=>'attribute'===_0x326fec['type']&&'attribute'!==_0x980942['type']?-0x1:'attribute'!==_0x326fec['type']&&'attribute'===_0x980942['type']?0x1:'deletion'==_0x326fec['type']&&'deletion'!=_0x980942['type']?-0x1:'deletion'!=_0x326fec['type']&&'deletion'==_0x980942['type']?0x1:0x0);}function At(_0x2276fe,_0x4095c7){let _0x30b7e3,_0x4598dc=0x0;const _0x3ef633=[],_0x3f500e=_0x4095c7['schema'];for(;_0x4598dc<_0x2276fe['length'];){const _0x464226=_0x2276fe[_0x4598dc],_0x48c4bf=_0x2276fe[_0x4598dc+0x1];_0x30b7e3||(_0x30b7e3=_0x4095c7['createPositionBefore'](_0x464226)),bt(_0x4095c7,_0x464226,_0x48c4bf)||(_0x3ef633['push'](_0x4095c7['createRange'](_0x30b7e3,_0x3f500e['isObject'](_0x464226)?_0x4095c7['createPositionAfter'](_0x464226):_0x4095c7['createPositionAt'](_0x464226,'end'))),_0x30b7e3=null),_0x4598dc++;}return _0x3ef633;}function bt(_0x1216d7,_0x35069f,_0x3f6bd5){if(!_0x3f6bd5)return!0x1;const _0x5453a7=_0x1216d7['createPositionAfter'](_0x35069f),_0x4b609b=_0x1216d7['createPositionBefore'](_0x3f6bd5);return _0x5453a7['isTouching'](_0x4b609b);}function kt(_0x29cd34,_0x584dc0,_0x28f270){for(;_0x28f270['length'];){const _0x3565a5=_0x28f270['splice'](0x0,0x64);_0x29cd34['change'](()=>{for(const _0x5b52ea of _0x3565a5)_0x5b52ea['isInContent']&&_0x584dc0['execute'](_0x5b52ea['id']);});}}var Ct=class extends _0x1da237{['_command'];['_suggestions'];constructor(_0x4b9b82,_0x2371f3,_0x2fd468){super(_0x4b9b82),this['_command']=_0x2371f3,this['_suggestions']=_0x2fd468,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xa1d53=Array['from'](this['_suggestions']['values']())['some'](_0x2154f6=>_0x2154f6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xa1d53;}['execute'](){const _0x4530b8=It(Array['from'](this['_suggestions']['values']()));for(const _0x5a7ce8 of _0x4530b8){const _0x591934=_0x5a7ce8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x591934))return;}kt(this['editor']['model'],this['_command'],_0x4530b8);}},Rt=class extends _0x1da237{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x118d86,_0x71e372,_0x4f5c7b){super(_0x118d86),this['_command']=_0x71e372,this['_suggestions']=_0x4f5c7b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a98eb=this['editor']['model']['document']['selection'],_0xfe06c8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1a82d3,_0x4bf9d2){const _0x2790b1=Array['from'](_0x1a82d3['getRanges']()),_0x2ff8d7=new Set();for(const _0x11a639 of _0x4bf9d2)if(_0x11a639['isInContent']){for(const _0x3daa7e of _0x2790b1)for(const _0x18076e of _0x11a639['getRanges']())(_0x3daa7e['isIntersecting'](_0x18076e)||_0x1a82d3['isCollapsed']&&!_0x11a639['isMultiRange']&&_0x11a639['next']&&_0x18076e['end']['isTouching'](_0x3daa7e['start']))&&_0x2ff8d7['add'](_0x11a639);}return _0x2ff8d7;}(_0x5a98eb,_0xfe06c8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5ced7e=It(Array['from'](this['_selectedSuggestions']));for(const _0x55543b of _0x5ced7e){const _0x46ba2d=_0x55543b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x46ba2d))return;}kt(this['editor']['model'],this['_command'],_0x5ced7e);}};const Nt=/* #__PURE__ -- @preserve */
24
+ _0x41a589();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x32cccf,_0x2b5d18){super(),this['id']=_0x2b5d18['id'],this['type']=_0x2b5d18['type'],this['subType']=_0x2b5d18['subType']||null,this['author']=_0x2b5d18['author'],this['creator']=_0x2b5d18['creator']||_0x2b5d18['author'],this['data']=null,this['_originalSuggestionId']=_0x2b5d18['originalSuggestionId']||null,this['_model']=_0x32cccf,this['_onAccept']=_0x2b5d18['onAccept'],this['_onDiscard']=_0x2b5d18['onDiscard'],this['_onAttributesChange']=_0x2b5d18['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2b5d18['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x4587bb=this;for(;_0x4587bb['previous'];)_0x4587bb=_0x4587bb['previous'];return _0x4587bb;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x113be1){this['_markerNames']['add'](_0x113be1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x343d31=>this['_model']['markers']['get'](_0x343d31))['filter'](_0x119dea=>_0x119dea);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x535d26=>{for(const _0x5126bf of this['getMarkers']())_0x535d26['removeMarker'](_0x5126bf);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c9d67){this['_model']['change'](_0x337f10=>{_0x337f10['removeMarker'](_0x1c9d67);}),this['_markerNames']['delete'](_0x1c9d67);}['addRange'](_0x36af8f){const _0x51e47d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x51e47d),this['_model']['change'](_0x201c83=>{_0x201c83['addMarker'](_0x51e47d,{'range':_0x36af8f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5f1019){for(const _0x233127 of this['getRanges']())if(_0x233127['isIntersecting'](_0x5f1019))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x990f24=>_0x990f24['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1c2f16,_0x4e5eae)=>[..._0x1c2f16,..._0x4e5eae['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x257503=this['getRanges']();if(0x1!=_0x257503['length'])return null;const _0x3de28e=_0x257503[0x0],_0x56dc71=_0x3de28e['start']['nodeAfter'],_0x2fd656=_0x3de28e['end']['nodeBefore'];return _0x56dc71 instanceof it?_0x56dc71!=_0x2fd656?null:_0x56dc71: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 _0x339d15=[];let _0x2b7bdf=this['head'];for(;_0x2b7bdf;)_0x339d15['push'](_0x2b7bdf),_0x2b7bdf=_0x2b7bdf['next'];return _0x339d15;}['setAttribute'](_0x532bfb,_0x11a953){const _0x1ed559=at(this['attributes']);ut(_0x1ed559,_0x532bfb,_0x11a953),ct(_0x1ed559,this['attributes'])||(this['attributes']=_0x1ed559,this['_onAttributesChange'](_0x1ed559));}['removeAttribute'](_0x3af3a9){const _0x39448d=at(this['attributes']);dt(_0x39448d,_0x3af3a9),ct(_0x39448d,this['attributes'])||(this['attributes']=_0x39448d,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 _0x24c80d()['substr'](0x1,0x5);}};function St(_0x4df7f0,_0x5cc9c8,_0x22e6d5){const _0x5c7ba1=_0x4df7f0['t'],t=_0x4df7f0['t'];switch(_0x5cc9c8){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',_0x22e6d5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x22e6d5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x22e6d5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x22e6d5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x22e6d5);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',_0x22e6d5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x22e6d5);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',_0x22e6d5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x22e6d5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x22e6d5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x22e6d5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x22e6d5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x22e6d5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x22e6d5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x22e6d5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x22e6d5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x22e6d5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x22e6d5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x22e6d5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x22e6d5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x22e6d5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x22e6d5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x22e6d5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x22e6d5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x22e6d5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x22e6d5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x22e6d5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x22e6d5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x22e6d5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x22e6d5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x22e6d5);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x22e6d5);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x22e6d5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x22e6d5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x22e6d5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x22e6d5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x22e6d5);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'},_0x22e6d5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x22e6d5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x22e6d5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x22e6d5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x22e6d5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x22e6d5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x22e6d5);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x5c7ba1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x22e6d5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5c7ba1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x22e6d5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x22e6d5);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'},_0x22e6d5);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'},_0x22e6d5);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'},_0x22e6d5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5cc9c8;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x51a460,_0x453892){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x51a460,this['_locale']=_0x453892;}['getDescriptions'](_0x2a2f40){const _0x329989=[],_0xe5b42b=new Set(),_0x5ed54e=new Set();for(let _0x2d9934=0x0;_0x2d9934<_0x2a2f40['length'];_0x2d9934++){const _0x4009c7=_0x2a2f40[_0x2d9934];if(!_0x4009c7['isInContent'])continue;const _0x326069=this['_handleCustomCallbackDescription'](_0x4009c7);if(_0x326069){if(null!=_0x4009c7['subType']){if(_0xe5b42b['has'](_0x4009c7['subType']))continue;_0xe5b42b['add'](_0x4009c7['subType']);}_0x329989['push'](_0x326069);}else{if('attribute'==_0x4009c7['type']){const _0x18cfce=_0x4009c7['data']['key'];if(_0x5ed54e['has'](_0x18cfce))continue;_0x5ed54e['add'](_0x4009c7['data']['key']),'$elementName'==_0x18cfce?this['_handleRenameSuggestionDescription'](_0x329989,_0x4009c7):this['_handleAttributeSuggestionDescription'](_0x329989,_0x4009c7);continue;}'insertion'!=_0x4009c7['type']&&'deletion'!=_0x4009c7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x329989,_0x4009c7,_0x2a2f40[_0x2d9934+0x1]);}}return this['_resolveDescriptionItems'](_0x329989);}['registerDescriptionCallback'](_0x36ac48){this['_customCallbacks']['push'](_0x36ac48);}['registerElementLabel'](_0xd17585,_0x455910,_0x466f9c=_0x5eb1e0['normal']){'function'==typeof _0xd17585?_0x27bbee(this['_itemLabelsCallbacks'],{'matchingCallback':_0xd17585,'label':_0x455910,'priority':_0x466f9c}):this['_itemLabels']['set'](_0xd17585,_0x455910);}['registerAttributeLabel'](_0x5be329,_0x54ac01){this['_attributeLabels']['set'](_0x5be329,_0x54ac01);}['getItemLabel'](_0x4f5b82,_0x42d169=0x1){let _0x5f1be6;for(const _0x60f7c4 of this['_itemLabelsCallbacks'])if(_0x60f7c4['matchingCallback'](_0x4f5b82)){_0x5f1be6=_0x60f7c4['label'];break;}return _0x5f1be6||(_0x5f1be6=this['_itemLabels']['get'](_0x4f5b82['name'])),_0x5f1be6?_0x5f1be6(_0x42d169):0x1!==_0x42d169?_0x42d169+'\x20'+_0x4f5b82['name']+'s':''+_0x4f5b82['name'];}['_addDescriptionItems'](_0x5198e6,_0xf74f65){const _0xa4fa07=_0xf74f65['getFirstRange']()['getWalker'](),_0x3fce24='insertion'==_0xf74f65['type']?'add':'remove';for(const _0x1a586f of _0xa4fa07){const _0x29760d=_0x1a586f['item'],_0x1eec07=_0x5198e6[_0x5198e6['length']-0x1];if(_0x29760d['is']('$textProxy'))_0x1eec07&&_0x1eec07['type']['indexOf']('Container')>-0x1&&_0x5198e6['pop'](),_0x1eec07&&'text'==_0x1eec07['type']?_0x1eec07[_0x3fce24]+=_0x29760d['data']:_0x5198e6['push']({'type':'text','add':'add'==_0x3fce24?_0x29760d['data']:'','remove':'remove'==_0x3fce24?_0x29760d['data']:''});else{if(this['_schema']['isObject'](_0x29760d)){const _0x46c937=_0x29760d;if(_0x1eec07&&_0x1eec07['type']['indexOf']('Container')>-0x1&&_0x5198e6['pop'](),'elementEnd'==_0x1a586f['type'])continue;_0x1eec07&&_0x1eec07['type']==_0x3fce24+'Object'&&_0x1eec07['element']['name']==_0x46c937['name']?_0x1eec07['quantity']++:_0x5198e6['push']({'type':_0x3fce24+'Object','element':_0x46c937,'quantity':0x1}),_0xa4fa07['skip'](_0x1e881e=>!('elementEnd'==_0x1e881e['type']&&_0x1e881e['item']==_0x29760d));}else{if(this['_schema']['checkChild'](_0x29760d,'$text')||_0x29760d['is']('element','softBreak')){const _0x31d22a=_0x29760d;if('add'==_0x3fce24&&'elementStart'==_0x1a586f['type']||'remove'==_0x3fce24&&'elementEnd'==_0x1a586f['type'])continue;if(_0x1eec07&&-0x1==_0x1eec07['type']['indexOf']('Container')){'text'==_0x1eec07['type']&&(_0x1eec07[_0x3fce24]+='\x0a');continue;}let _0x389c0f;if(_0x389c0f='add'==_0x3fce24?_0x31d22a['nextSibling']&&!this['_schema']['isObject'](_0x31d22a['nextSibling'])?_0x31d22a['nextSibling']:null:_0x31d22a['previousSibling']&&!this['_schema']['isObject'](_0x31d22a['previousSibling'])?_0x31d22a['previousSibling']:null,_0x31d22a['isEmpty']||_0x389c0f&&_0x389c0f['isEmpty']){const _0x5502ff=_0x389c0f&&_0x389c0f['isEmpty']?_0x389c0f:_0x31d22a;_0x1eec07&&_0x1eec07['type']==_0x3fce24+'EmptyContainer'&&_0x1eec07['element']['name']==_0x5502ff['name']?_0x1eec07['quantity']++:_0x5198e6['push']({'type':_0x3fce24+'EmptyContainer','element':_0x5502ff,'quantity':0x1});}else _0x5198e6['push']({'type':_0x3fce24+'Container','element':_0x31d22a});}}}}}['_resolveDescriptionItems'](_0x782020){const _0x18062b=this['_locale'],_0x24279b=[],_0x56aecc=[],_0x436033=[];for(const _0x2a7fe9 of _0x782020)switch(_0x2a7fe9['type']){case'text':if(_0x2a7fe9['add']=_0x2a7fe9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2a7fe9['remove']=_0x2a7fe9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2a7fe9['add']&&''!=_0x2a7fe9['remove']){_0x24279b['push']({'type':'replace','content':St(_0x18062b,'REPLACE_TEXT',['\x22'+_0x2a7fe9['remove']+'\x22','\x22'+_0x2a7fe9['add']+'\x22'])});continue;}if(null!=_0x2a7fe9['add']['match'](/^ +$/)){_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Insert:*\x20%0',St(_0x18062b,'ELEMENT_SPACE',_0x2a7fe9['add']['length']))});continue;}if(null!=_0x2a7fe9['remove']['match'](/^ +$/)){_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Remove:*\x20%0',St(_0x18062b,'ELEMENT_SPACE',_0x2a7fe9['remove']['length']))});continue;}if(''!=_0x2a7fe9['add']){_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Insert:*\x20%0','\x22'+_0x2a7fe9['add']+'\x22')});continue;}_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Remove:*\x20%0','\x22'+_0x2a7fe9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Insert:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Remove:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'addContainer':_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Split:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'removeContainer':_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Merge:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'addFormat':_0x56aecc['push'](_0x2a7fe9['key']);continue;case'removeFormat':_0x436033['push'](_0x2a7fe9['key']);continue;default:_0x24279b['push'](_0x2a7fe9);}if(_0x56aecc['length']){const _0x207cb6=_0x56aecc['map'](_0x5d95a6=>this['_attributeLabels']['has'](_0x5d95a6)?this['_attributeLabels']['get'](_0x5d95a6):_0x5d95a6)['join'](',\x20');_0x24279b['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x207cb6)});}if(_0x436033['length']){const _0x556704=_0x436033['map'](_0x396b55=>this['_attributeLabels']['has'](_0x396b55)?this['_attributeLabels']['get'](_0x396b55):_0x396b55)['join'](',\x20');_0x24279b['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x556704)});}return _0x24279b;}['_handleCustomCallbackDescription'](_0x28eb21){for(const _0x10c4f4 of this['_customCallbacks']){const _0x3851bf=_0x10c4f4(_0x28eb21);if(_0x3851bf&&'type'in _0x3851bf)return _0x3851bf;}}['_handleAttributeSuggestionDescription'](_0x581921,_0x44c9bf){const _0x154ca3=_0x44c9bf['data'],_0x9d018f=void 0x0===_0x154ca3['newValue']?'removeFormat':'addFormat';_0x581921['push']({'type':_0x9d018f,'key':_0x154ca3['key']});}['_handleRenameSuggestionDescription'](_0x2c2067,_0x240d10){_0x2c2067['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x240d10['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x9158a5,_0x131980,_0x25340d){if(this['_addDescriptionItems'](_0x9158a5,_0x131980),_0x25340d&&_0x25340d['getFirstRange']()&&!_0x131980['getFirstRange']()['end']['isEqual'](_0x25340d['getFirstRange']()['start'])){const _0x8cb1b6=_0x9158a5[_0x9158a5['length']-0x1],_0x27298b='insertion'==_0x131980['type']?'add':'remove';_0x8cb1b6&&'text'==_0x8cb1b6['type']&&(_0x8cb1b6[_0x27298b]+='\x0a');}}},Ot=class extends _0x2dafdc{['afterInit'](){const _0x54a0b2=this['editor'],_0x40500c=_0x54a0b2['plugins']['get']('TrackChangesEditing');_0x54a0b2['commands']['get']('showAIAssistant')&&_0x40500c['enableCommand']('showAIAssistant');}},wt=class extends _0x2dafdc{['afterInit'](){const _0x4e831f=this['editor'],_0x6ffe71=_0x4e831f['plugins']['get']('TrackChangesEditing');_0x4e831f['commands']['get']('toggleAi')&&_0x6ffe71['enableCommand']('toggleAi');}},Ft=class extends _0x2dafdc{['afterInit'](){const _0x221845=this['editor'],_0x456097=_0x221845['plugins']['get']('TrackChangesEditing');_0x221845['commands']['get']('aiQuickAction')&&_0x456097['enableCommand']('aiQuickAction');}},Bt=class extends _0x2dafdc{['afterInit'](){const _0x1e4b79=this['editor'],_0x427e7e=_0x1e4b79['locale'];if(!_0x1e4b79['plugins']['has']('AlignmentEditing'))return;const _0x8446b=_0x1e4b79['plugins']['get']('TrackChangesEditing');_0x8446b['enableDefaultAttributesIntegration']('alignment'),_0x8446b['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x427e7e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xafda7d=this['editor'],_0x4ed6cf=_0xafda7d['locale'];_0xafda7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49a256=>{if('formatBlock'!=_0x49a256['type'])return;const {data:_0x17eae2}=_0x49a256;if(_0x17eae2&&'alignment'==_0x17eae2['commandName']){const _0x22a11e=_0x17eae2['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x4ed6cf,'*Format:*\x20%0',function(_0x3702f6){switch(_0x3702f6){case'left':return St(_0x4ed6cf,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x4ed6cf,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x4ed6cf,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x4ed6cf,'FORMAT_JUSTIFY_TEXT');}}(_0x22a11e))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x2dafdc{['afterInit'](){const _0x12f729=this['editor'],_0x165e87=_0x12f729['plugins']['get']('TrackChangesEditing'),_0x14a03b=_0x12f729['locale'];for(const _0x3fec19 of vt){if(!_0x12f729['plugins']['has'](_0x3fec19))continue;const _0x2a4c8e=_0x3fec19['slice'](0x0,-0x7)['toLowerCase'](),_0x219c75='FORMAT_'+_0x2a4c8e['toUpperCase']();_0x165e87['enableDefaultAttributesIntegration'](_0x2a4c8e),_0x165e87['descriptionFactory']['registerAttributeLabel'](_0x2a4c8e,St(_0x14a03b,_0x219c75));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9c28=this['editor'],_0x130739=_0x3c9c28['locale'],_0x223acc=_0x3c9c28['plugins']['get']('TrackChangesEditing');function _0x6d2080(_0x57a9f3,_0x5ad525){_0x223acc['descriptionFactory']['registerDescriptionCallback'](_0x3cd96b=>{if('formatInline'!=_0x3cd96b['type'])return;const {data:_0xafea49}=_0x3cd96b;return _0xafea49&&_0xafea49['commandName']===_0x57a9f3?_0xafea49['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x130739,'*Format:*\x20%0',_0x5ad525)}:{'type':'format','content':St(_0x130739,'*Remove\x20format:*\x20%0',_0x5ad525)}:void 0x0;});}_0x6d2080('bold',St(_0x130739,'FORMAT_BOLD')),_0x6d2080('italic',St(_0x130739,'FORMAT_ITALIC')),_0x6d2080('underline',St(_0x130739,'FORMAT_UNDERLINE')),_0x6d2080('code',St(_0x130739,'FORMAT_CODE')),_0x6d2080('strikethrough',St(_0x130739,'FORMAT_STRIKETHROUGH')),_0x6d2080('subscript',St(_0x130739,'FORMAT_SUBSCRIPT')),_0x6d2080('superscript',St(_0x130739,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x2dafdc{['afterInit'](){const _0x29a793=this['editor'],_0x82d0ea=_0x29a793['locale'];if(!_0x29a793['plugins']['has']('BlockQuoteEditing'))return;const _0x3734c6=_0x29a793['plugins']['get']('TrackChangesEditing'),_0x16b9af=this['editor']['commands']['get']('blockQuote');_0x3734c6['enableCommand']('blockQuote',(_0x144797,_0x177373={})=>{const _0x4aefe0=this['editor']['model']['document']['selection'],_0x57ddb2=_0x177373&&void 0x0!==_0x177373['forceValue']?_0x177373['forceValue']:!_0x16b9af['value'];let _0x2a66e1=[];_0x2a66e1=At(_0x57ddb2?Array['from'](_0x4aefe0['getSelectedBlocks']())['filter'](_0x36f4ba=>Pt(_0x36f4ba)||function(_0x42ec40,_0x51cef4){const _0x4a6546=_0x51cef4['createContext'](_0x42ec40['parent']);return!!_0x51cef4['checkChild'](_0x4a6546,'blockQuote')&&!!_0x51cef4['checkChild'](_0x4a6546['push']('blockQuote'),_0x42ec40);}(_0x36f4ba,this['editor']['model']['schema'])):Array['from'](_0x4aefe0['getSelectedBlocks']())['filter'](_0x33a4bc=>Pt(_0x33a4bc)),_0x29a793['model']),_0x29a793['model']['change'](()=>{for(const _0x740ec6 of _0x2a66e1)_0x3734c6['markBlockFormat'](_0x740ec6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57ddb2}]});});}),_0x3734c6['descriptionFactory']['registerDescriptionCallback'](_0x4e0171=>{const {data:_0x2eca8f}=_0x4e0171;if(_0x2eca8f&&'blockQuote'==_0x2eca8f['commandName']){const _0x5a10b4=St(_0x82d0ea,'ELEMENT_BLOCK_QUOTE');return _0x2eca8f['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x82d0ea,'*Set\x20format:*\x20%0',_0x5a10b4)}:{'type':'format','content':St(_0x82d0ea,'*Remove\x20format:*\x20%0',_0x5a10b4)};}});}};function Pt(_0x4e65a5){return'blockQuote'==_0x4e65a5['parent']['name'];}var xt=class extends _0x2dafdc{['afterInit'](){const _0xa49482=this['editor'],_0x4fd733=_0xa49482['locale'],_0x214c75=_0xa49482['plugins']['get']('TrackChangesEditing');_0xa49482['plugins']['has']('BookmarkEditing')&&(_0x214c75['enableCommand']('insertBookmark'),_0x214c75['enableDefaultAttributesIntegration']('updateBookmark'),_0x214c75['descriptionFactory']['registerDescriptionCallback'](_0xd72227=>{if('insertion'!=_0xd72227['type']&&'deletion'!=_0xd72227['type']&&'attribute'!=_0xd72227['type'])return;const _0x32f80f=_0xd72227['getContainedElement']();if(null==_0x32f80f)return;if(!_0x32f80f['is']('element','bookmark'))return;const _0x123b20=_0x32f80f['getAttribute']('bookmarkId');if('insertion'==_0xd72227['type'])return{'type':'insertion','content':St(_0x4fd733,'*Insert:*\x20%0','\x22'+_0x123b20+'\x22\x20'+St(_0x4fd733,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd72227['type'])return{'type':'deletion','content':St(_0x4fd733,'*Remove:*\x20%0','\x22'+_0x123b20+'\x22\x20'+St(_0x4fd733,'ELEMENT_BOOKMARK'))};const {data:_0x2f0a32}=_0xd72227;return _0x2f0a32&&'bookmarkId'==_0x2f0a32['key']?{'type':'format','content':St(_0x4fd733,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f0a32['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x2dafdc{['afterInit'](){const _0x5f23ab=this['editor'];_0x5f23ab['plugins']['has']('CaseChange')&&(_0x5f23ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5f23ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5f23ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x2dafdc{['afterInit'](){const _0x4f82b3=this['editor'];_0x4f82b3['commands']['get']('ckbox')&&_0x4f82b3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x2dafdc{['afterInit'](){const _0x1c3a17=this['editor'];if(!_0x1c3a17['plugins']['has']('CodeBlock'))return;const _0x41dddb=_0x1c3a17['plugins']['get']('TrackChangesEditing'),_0x1572f=_0x1c3a17['locale'],_0x2eff34=_0x1c3a17['config']['get']('codeBlock')['languages'],_0x14a265=_0x1c3a17['commands']['get']('codeBlock');_0x41dddb['enableCommand']('indentCodeBlock'),_0x41dddb['enableCommand']('outdentCodeBlock'),_0x41dddb['enableCommand']('codeBlock',(_0x492e7b,_0x13f05c={})=>{const _0x32bcd3=_0x1c3a17['model'],_0xf6d0f0=_0x1c3a17['model']['document']['selection'],_0x4234b7=_0x13f05c&&void 0x0!==_0x13f05c['forceValue']?_0x13f05c['forceValue']:!_0x14a265['value'];let _0x480310;_0x13f05c['language']||(_0x13f05c['language']=_0x2eff34[0x0]['language']),_0x480310=_0x4234b7?Array['from'](_0xf6d0f0['getSelectedBlocks']())['filter'](_0x30cb07=>{return Vt(_0x30cb07)||(_0x1ca8ac=_0x30cb07,_0x2211e3=_0x32bcd3['schema'],!_0x1ca8ac['is']('rootElement')&&!_0x2211e3['isLimit'](_0x1ca8ac)&&_0x2211e3['checkChild'](_0x1ca8ac['parent'],'codeBlock'));var _0x1ca8ac,_0x2211e3;}):Array['from'](_0xf6d0f0['getSelectedBlocks']())['filter'](_0x2add11=>Vt(_0x2add11));const _0x5cfe79=At(_0x480310,_0x32bcd3);_0x32bcd3['change'](()=>{for(const _0x571a54 of _0x5cfe79)_0x41dddb['markBlockFormat'](_0x571a54,{'commandName':'codeBlock','commandParams':[{..._0x13f05c,'forceValue':_0x4234b7}],'formatGroupId':'blockName'});});}),(_0x41dddb['descriptionFactory']['registerElementLabel']('codeBlock',_0x5be27b=>St(_0x1572f,'ELEMENT_CODE_BLOCK',_0x5be27b)),_0x41dddb['descriptionFactory']['registerDescriptionCallback'](_0x376c2d=>{if('formatBlock'!=_0x376c2d['type'])return;const _0x48b624=_0x1572f['t'],{data:_0x35e714}=_0x376c2d;if(!_0x35e714||'codeBlock'!=_0x35e714['commandName'])return;const _0x37cbcc=_0x35e714['commandParams'][0x0]['language'],_0x406d88=_0x48b624(_0x2eff34['find'](_0x404912=>_0x404912['language']===_0x37cbcc)['label'])['toLowerCase']();return _0x35e714['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1572f,'*Set\x20format:*\x20%0',St(_0x1572f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x406d88+')')}:{'type':'format','content':St(_0x1572f,'*Remove\x20format:*\x20%0',St(_0x1572f,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x1fa2fc){return'codeBlock'==_0x1fa2fc['name'];}var Wt=class extends _0x2dafdc{['afterInit'](){const _0x333597=this['editor'];_0x333597['plugins']['has']('CommentsEditing')&&_0x333597['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x2dafdc{static get['requires'](){return[ht];}['init'](){const _0xfd97c0=this['editor'],_0x4c798b=_0xfd97c0['plugins']['get']('TrackChangesEditing');_0x4c798b['enableCommand']('delete');const _0x36666d=_0xfd97c0['commands']['get']('deleteForward');_0x4c798b['enableCommand']('deleteForward',(_0x6c8763,_0x91e2a5={})=>{const _0x407014=_0xfd97c0['model']['createSelection'](_0xfd97c0['model']['document']['selection']);_0x407014['isCollapsed']&&_0xfd97c0['model']['modifySelection'](_0x407014,{'direction':'forward','unit':_0x91e2a5['unit']});const _0x22650d=_0x407014['getFirstRange'](),_0x553a6a=rt['fromRange'](_0x22650d);let _0x223772;_0x6c8763(_0x91e2a5),_0x223772='$graveyard'==_0x553a6a['root']['rootName']?_0xfd97c0['model']['createRange'](_0x22650d['start']):_0xfd97c0['model']['createRange'](_0x553a6a['start'],_0x553a6a['end']),_0x553a6a['detach'](),_0xfd97c0['model']['enqueueChange'](_0x36666d['buffer']['batch'],_0x103686=>{_0x36666d['buffer']['lock'](),_0x103686['setSelection'](_0x103686['createRange'](_0x223772['end'])),_0x36666d['buffer']['unlock']();});});}},Kt=class extends _0x2dafdc{['afterInit'](){const _0xfb45df=this['editor'];if(!_0xfb45df['plugins']['has']('ListEditing'))return;const _0x2a585d=_0xfb45df['locale'],_0x185f3d=_0xfb45df['plugins']['get']('TrackChangesEditing'),_0x397757=_0xfb45df['plugins']['has']('TodoListEditing'),_0x49494c=!!_0xfb45df['config']['get']('list.multiBlock');function _0x32fa4c(_0x9019b2){return{'type':'format','content':''+St(_0x2a585d,'*Set\x20format:*\x20%0',_0x9019b2)};}function _0x5cfa75(_0x2a4820){return{'type':'format','content':''+St(_0x2a585d,'*Remove\x20format:*\x20%0',_0x2a4820)};}_0x185f3d['enableDefaultAttributesIntegration']('numberedList'),_0x185f3d['enableDefaultAttributesIntegration']('bulletedList'),_0x185f3d['enableDefaultAttributesIntegration']('customNumberedList'),_0x185f3d['enableDefaultAttributesIntegration']('customBulletedList'),_0x185f3d['enableDefaultAttributesIntegration']('indentList'),_0x185f3d['enableDefaultAttributesIntegration']('outdentList'),_0x185f3d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x185f3d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x49494c&&(_0x185f3d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x185f3d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x397757&&(_0x185f3d['enableDefaultAttributesIntegration']('todoList'),_0x185f3d['enableDefaultAttributesIntegration']('checkTodoList'),_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x2ac445=>{const {data:_0x14dfcb}=_0x2ac445;if(_0x14dfcb&&'todoListChecked'==_0x14dfcb['key'])return{'type':'format','content':_0x14dfcb['newValue']?St(_0x2a585d,'*Check\x20item*'):St(_0x2a585d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5bf17b=>{if(_0x5bf17b['batch']['isUndo'])return!0x1;let _0x147ecb=!0x1;const _0x3f0ff0=_0x185f3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e8f58=>'todoListChecked'===_0x185f3d['_getAttributeKey'](_0x1e8f58));for(const _0x96704 of _0x3f0ff0)'todo'!=_0x96704['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x185f3d['_findSuggestions'](_0x96704['getFirstRange'](),'attribute')['find'](_0x347db2=>'listType'===_0x185f3d['_getAttributeKey'](_0x347db2['suggestion']))||(_0x5bf17b['removeMarker'](_0x96704['getFirstMarker']()),_0x147ecb=!0x0));return _0x147ecb;})),_0x185f3d['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x2a585d,'FORMAT_INDENT'));const _0x54ee85={'type':'format','content':''};_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x2e8b1d=>{const {data:_0x5ff0d2}=_0x2e8b1d;if(!_0x5ff0d2||'listType'!=_0x5ff0d2['key'])return;let _0x3b5619=_0x2e8b1d['head'];for(;_0x3b5619;){if(_0x3b5619['data']&&(('listStyle'==_0x3b5619['data']['key']||'listMarkerStyle'==_0x3b5619['data']['key'])&&(_0x3b5619['data']['newValue']&&'default'!=_0x3b5619['data']['newValue']||'default'!=_0x3b5619['data']['oldValue']&&!_0x5ff0d2['newValue'])||!_0x49494c&&'$elementName'==_0x3b5619['data']['key']))return _0x54ee85;_0x3b5619=_0x3b5619['next'];}if(null==_0x5ff0d2['newValue'])switch(_0x5ff0d2['oldValue']){case'bulleted':return _0x5cfa75(St(_0x2a585d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5cfa75(St(_0x2a585d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5cfa75(St(_0x2a585d,'ELEMENT_TODO_LIST'));}switch(_0x5ff0d2['newValue']){case'bulleted':return _0x32fa4c(St(_0x2a585d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32fa4c(St(_0x2a585d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32fa4c(St(_0x2a585d,'ELEMENT_TODO_LIST'));}}),_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x14d5ff=>{const {data:_0x50f021}=_0x14d5ff;if(_0x50f021&&'listIndent'==_0x50f021['key'])return null==_0x50f021['newValue']||null==_0x50f021['oldValue']&&0x0==_0x50f021['newValue']?_0x54ee85:void 0x0;}),_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x5f4b7d=>{if('attribute'!=_0x5f4b7d['type'])return;const {data:_0x48d741}=_0x5f4b7d;if(!_0x48d741||'listItemId'!=_0x48d741['key'])return;const _0x5cf72b=zt(_0x5f4b7d);return'newValue'==_0x5cf72b?{'type':'format','content':St(_0x2a585d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5cf72b?{'type':'format','content':St(_0x2a585d,'*Split:*\x20list\x20item')}:_0x54ee85;}),_0xfb45df['model']['document']['registerPostFixer'](_0xc78c6f=>this['listItemIdFixer'](_0xc78c6f)),_0xfb45df['model']['document']['registerPostFixer'](_0x41c25e=>this['noTrackChangesFixer'](_0x41c25e)),_0xfb45df['model']['document']['on']('change:data',(_0x10a175,_0xad54c1)=>{if(_0xad54c1['isUndo']||!_0xad54c1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x456dbf){if(_0x456dbf['batch']['isUndo']||!_0x456dbf['batch']['isLocal'])return!0x1;let _0x149c36=!0x1;const _0x10d62b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x110930=>_0x110930['data']&&'listItemId'==_0x110930['data']['key'])['filter'](_0xf9ab01=>_0xf9ab01['data']['newValue']&&_0xf9ab01['data']['oldValue']);for(const _0x111d1c of _0x10d62b)zt(_0x111d1c)||(_0x456dbf['removeMarker'](_0x111d1c['getFirstMarker']()),_0x149c36=!0x0);return _0x149c36;}['noTrackChangesFixer'](_0x37e251){if(_0x37e251['batch']['isUndo']||!_0x37e251['batch']['isLocal'])return!0x1;const _0x2bd845=this['editor']['model']['document']['differ'],_0x4c8f92=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c8f92['trackChangesCommand']['value'])return!0x1;let _0x4dd00b=!0x1;const _0x44548c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x523c65=_0x2bd845['getChanges']()['filter'](_0x51d05e=>'attribute'==_0x51d05e['type'])['filter'](_0x18f9d6=>_0x44548c['has'](_0x18f9d6['attributeKey']));if(0x0==_0x523c65['length'])return _0x4dd00b;const _0x57eaed=new Set(_0x2bd845['getMarkersToAdd']()['filter'](_0x4353e1=>{if(!_0x4353e1['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3bceb1=tt(_0x4353e1['name'])['subType']['split']('|')[0x0];return _0x44548c['has'](_0x3bceb1);})['map'](_0x245d07=>tt(_0x245d07['name'])['id']));for(const _0x2b8f83 of _0x523c65){const _0x231e98=_0x4c8f92['_findSuggestions'](_0x2b8f83['range'],'attribute')['filter'](_0x587fcd=>{if(_0x587fcd['meta']['isNextTo'])return!0x1;if(_0x57eaed['has'](_0x587fcd['suggestion']['id']))return!0x1;const _0x4ed42d=_0x4c8f92['_getAttributeKey'](_0x587fcd['suggestion']);return _0x44548c['has'](_0x4ed42d);})['map'](_0x3e663e=>_0x3e663e['suggestion']);if(_0x231e98['length']){for(const _0x1b0f4c of _0x231e98)_0x37e251['removeMarker'](_0x1b0f4c['getFirstMarker']());_0x4dd00b=!0x0;}}return _0x4dd00b;}['assureChains'](){const _0xb31a3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35d251=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1ce66c;const _0x52b82b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35695f=>{if(_0x35695f['data']['oldRange']||!_0x35695f['data']['newRange'])return null;if(!_0x35695f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x211627}=tt(_0x35695f['name']);if(!_0xb31a3b['hasSuggestion'](_0x211627))return null;const _0x5e7fa6=_0xb31a3b['getSuggestion'](_0x211627);return _0x35d251['includes'](_0x5e7fa6['data']['key']);})['map'](_0x5e666f=>{const {id:_0x561638}=tt(_0x5e666f['name']),_0x41e087=_0xb31a3b['getSuggestion'](_0x561638);return _0x1ce66c=_0x41e087['attributes']['groupId'],_0x41e087['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x52b82b['size'])return;const _0x5dc96b=_0xb31a3b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45898e=>'attribute'==_0x45898e['type']&&_0x45898e['data']&&_0x35d251['includes'](_0x45898e['data']['key'])&&_0x45898e['attributes']['groupId']!=_0x1ce66c)['map'](_0x1ae30c=>({'listItem':_0x1ae30c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ae30c['attributes']['groupId']})),_0x1ffdf5=new Set();for(const {groupId:_0x59d180,listItem:_0x25dfbc}of _0x5dc96b)_0x52b82b['has'](_0x25dfbc)&&_0x1ffdf5['add'](_0x59d180);for(const _0x4f3416 of _0xb31a3b['getSuggestions']())_0x1ffdf5['has'](_0x4f3416['attributes']['groupId'])&&_0x4f3416['setAttribute']('groupId',_0x1ce66c);}['_supportLegacySuggestions'](){const _0x8119b8=this['editor'],_0x204136=_0x8119b8['locale'],_0xf4d1cf=_0x8119b8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf4d1cf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb1784a,_0x2e8316){const _0x338c08=[];for(let _0x2f28fc of _0xb1784a)_0x2f28fc['start']['nodeAfter']===_0x2f28fc['end']['parent']&&(_0x2f28fc=_0x8119b8['model']['createRange'](_0x8119b8['model']['createPositionAt'](_0x2f28fc['start']['nodeAfter'],0x0))),_0x338c08['push'](_0x2f28fc);_0x8119b8['model']['change'](_0x9aa3c2=>{const _0x2b61ad=_0x8119b8['model']['document']['selection'],_0x426c6b=Array['from'](_0x2b61ad['getRanges']())['map'](_0x1cc7cc=>rt['fromRange'](_0x1cc7cc));_0x9aa3c2['setSelection'](_0x338c08),_0x8119b8['commands']['get'](_0x2e8316['commandName'])['refresh'](),_0x2e8316['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8119b8['execute'](_0x2e8316['commandName'],..._0x2e8316['commandParams']),_0x9aa3c2['setSelection'](_0x426c6b);for(const _0x5089cc of _0x426c6b)_0x5089cc['detach']();});}),_0xf4d1cf['descriptionFactory']['registerElementLabel'](function(_0x3e2b5a){const _0x225628=!_0x8119b8['model']['schema']['isObject'](_0x3e2b5a),_0x65cf96=_0x3e2b5a['previousSibling'],_0x3e92e3=_0x3e2b5a['nextSibling'],_0x4d2cab=_0x3e2b5a['getAttribute']('listItemId'),_0x15eb1d=!_0x65cf96||_0x65cf96['getAttribute']('listItemId')!==_0x4d2cab,_0xc74993=!_0x3e92e3||_0x3e92e3['getAttribute']('listItemId')!==_0x4d2cab;return _0x225628&&Boolean(_0x4d2cab)&&_0x15eb1d&&_0xc74993;},_0x175588=>St(_0x204136,'ELEMENT_LIST_ITEM',_0x175588));}['_registerLegacyDescription'](){const _0x277897=this['editor'],_0x1c38c0=_0x277897['locale'];function _0x5cd436(_0x525fed){const _0x31fff9=_0x277897['commands']['get']('bulletedList')['value'],_0x5adbf5=_0x277897['commands']['get']('numberedList')['value'];return'numberedList'===_0x525fed?_0x31fff9:_0x5adbf5;}_0x277897['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x23c8fd){if('formatBlock'!=_0x23c8fd['type'])return;const {data:_0x52046e}=_0x23c8fd;if(!_0x52046e)return;let _0x3bdb37,_0x1b296d,_0x174512,_0x20ea30;switch(_0x52046e['commandName']){case'bulletedList':_0x174512=_0x52046e['commandParams'][0x0]['forceValue'],_0x20ea30=_0x5cd436(_0x52046e['commandName']),_0x3bdb37=_0x174512?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20ea30&&_0x277897['config']['get']('list.multiBlock')||(_0x3bdb37='*Change\x20to:*\x20%0'),_0x1b296d={'type':'format','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x174512=_0x52046e['commandParams'][0x0]['forceValue'],_0x20ea30=_0x5cd436(_0x52046e['commandName']),_0x3bdb37=_0x174512?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20ea30&&_0x277897['config']['get']('list.multiBlock')||(_0x3bdb37='*Change\x20to:*\x20%0'),_0x1b296d={'type':'format','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3bdb37='*Indent:*\x20%0',_0x1b296d={'type':'format','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3bdb37=function(_0x3fcc66){const _0x45b217=_0x3fcc66['getFirstRange']();let _0x3fe9f1=_0x45b217['start']['nodeAfter'];for(;_0x3fe9f1&&_0x45b217['containsItem'](_0x3fe9f1);){if(_0x3fe9f1['getAttribute']('listIndent')>0x0)return!0x1;_0x3fe9f1=_0x3fe9f1['nextSibling'];}return!0x0;}(_0x23c8fd)?St(_0x1c38c0,'*Format:*\x20remove\x20from\x20%0',St(_0x1c38c0,function(_0xdd7173){return'ELEMENT_'+_0xdd7173['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x23c8fd))):St(_0x1c38c0,'*Outdent:*\x20%0',St(_0x1c38c0,'ELEMENT_LIST_ITEM')),_0x1b296d={'type':'format','content':_0x3bdb37};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52046e['multipleBlocks']&&(_0x3bdb37='*Merge:*\x20%0',_0x1b296d={'type':'deletion','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_LIST_ITEM'))});}return _0x1b296d;});}};function zt(_0x412e6d){let _0xa7b8c3=_0x412e6d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xa7b8c3;){const _0x10e49c=_0xa7b8c3['getAttribute']('listItemId');if(!_0x10e49c)return!0x1;if(_0x10e49c==_0x412e6d['data']['newValue'])return'newValue';if(_0x10e49c==_0x412e6d['data']['oldValue'])return'oldValue';_0xa7b8c3=_0xa7b8c3['previousSibling'];}return!0x1;}var Xt=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5d3a91=this['editor']['config']['get']('list.properties'),_0x111835=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d3a91['styles']&&_0x111835['enableDefaultAttributesIntegration']('listStyle'),_0x5d3a91['reversed']&&_0x111835['enableDefaultAttributesIntegration']('listReversed'),_0x5d3a91['startIndex']&&_0x111835['enableDefaultAttributesIntegration']('listStart');const _0x100fe2={'type':'format','content':''};_0x111835['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x39228d=this['editor']['locale'];_0x111835['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x39228d,'FORMAT_LIST_REVERSED')),_0x111835['descriptionFactory']['registerDescriptionCallback'](_0xff4cc3=>{const {data:_0x55f10e}=_0xff4cc3;if(_0x55f10e&&'listReversed'==_0x55f10e['key'])return null==_0x55f10e['newValue']||0x0==_0x55f10e['newValue']&&null==_0x55f10e['oldValue']?_0x100fe2:void 0x0;}),_0x111835['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x39228d,'FORMAT_LIST_START')),_0x111835['descriptionFactory']['registerDescriptionCallback'](_0x561175=>{const {data:_0x487808}=_0x561175;if(_0x487808&&'listStart'==_0x487808['key'])return null==_0x487808['newValue']||0x1==_0x487808['newValue']&&null==_0x487808['oldValue']?_0x100fe2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a2679=>{if(_0x1a2679['batch']['isUndo'])return!0x1;let _0x34ddd7=!0x1;const _0x139e08=_0x111835['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317e0c=>{const _0x3f1e4e=_0x111835['_getAttributeKey'](_0x317e0c);return'listStart'==_0x3f1e4e||'listReversed'==_0x3f1e4e;});for(const _0xab43e9 of _0x139e08){const _0x227afc=_0xab43e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x227afc&&'customNumbered'!=_0x227afc&&(_0x111835['_findSuggestions'](_0xab43e9['getFirstRange'](),'attribute')['find'](_0x34336b=>'listType'==_0x111835['_getAttributeKey'](_0x34336b['suggestion']))||(_0x1a2679['removeMarker'](_0xab43e9['getFirstMarker']()),_0x34ddd7=!0x0));}return _0x34ddd7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x14376c){const _0x135344=this['editor']['locale'],{data:_0x1b1d19}=_0x14376c,_0x51f4f8={'type':'format','content':''};if(!_0x1b1d19||'listStyle'!=_0x1b1d19['key'])return;if(!_0x1b1d19['oldValue'])return'default'==_0x1b1d19['newValue']?_0x51f4f8:{'type':'format','content':''+St(_0x135344,'*Set\x20format:*\x20%0',St(_0x135344,this['_getTranslationKeyForListStyle'](_0x1b1d19['newValue'])))};if(!_0x1b1d19['newValue']){if('default'==_0x1b1d19['oldValue'])return _0x51f4f8;let _0xab2267=_0x14376c['head'];for(;_0xab2267;){if(_0xab2267['data']&&'listType'==_0xab2267['data']['key']&&_0xab2267['data']['newValue'])return _0x51f4f8;_0xab2267=_0xab2267['next'];}return{'type':'format','content':''+St(_0x135344,'*Remove\x20format:*\x20%0',St(_0x135344,this['_getTranslationKeyForListStyle'](_0x1b1d19['oldValue'])))};}if('default'!=_0x1b1d19['newValue'])return{'type':'format','content':''+St(_0x135344,'*Set\x20format:*\x20%0',St(_0x135344,this['_getTranslationKeyForListStyle'](_0x1b1d19['newValue'])))};let _0x48aca5=_0x14376c['head'];for(;_0x48aca5;){if(_0x48aca5['data']&&'listType'==_0x48aca5['data']['key']&&_0x48aca5['data']['newValue']&&_0x48aca5['data']['oldValue'])return _0x51f4f8;_0x48aca5=_0x48aca5['next'];}return{'type':'format','content':St(_0x135344,'*Set\x20format:*\x20%0',St(_0x135344,'ELEMENT_'+_0x14376c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d4df7=this['editor'],_0x56e1f5=_0x2d4df7['locale'];_0x2d4df7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x166e18=>{if('formatBlock'!=_0x166e18['type'])return;const {data:_0x29bab6}=_0x166e18;if(!_0x29bab6)return;let _0x149992,_0x4d67b3;switch(_0x29bab6['commandName']){case'listStyle':_0x149992='*Change\x20to:*\x20%0',_0x4d67b3={'type':'format','content':St(_0x56e1f5,_0x149992,St(_0x56e1f5,this['_getTranslationKeyForListStyle'](_0x29bab6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x149992=_0x29bab6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d67b3={'type':'format','content':St(_0x56e1f5,_0x149992)};break;case'listStart':_0x149992='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d67b3={'type':'format','content':St(_0x56e1f5,_0x149992,_0x29bab6['commandParams'][0x0]['startIndex'])};}return _0x4d67b3;});}['_getTranslationKeyForListStyle'](_0x209f18){return'ELEMENT_'+(_0x4c75bc=_0x209f18,qt['includes'](_0x4c75bc)?'bulleted':Yt['includes'](_0x4c75bc)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x209f18['toUpperCase']()['replace'](/-/g,'_');var _0x4c75bc;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x2dafdc{['afterInit'](){const _0xfcef7e=this['editor'];_0xfcef7e['commands']['get']('emoji')&&_0xfcef7e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x2dafdc{static get['requires'](){return[ft];}['init'](){const _0x5f29d0=this['editor'],_0x474569=_0x5f29d0['plugins']['get']('TrackChangesEditing'),_0x754153=_0x5f29d0['commands']['get']('enter');_0x474569['enableCommand']('enter',()=>{_0x5f29d0['model']['change'](_0xc7d8dd=>{const _0x22eca8=_0x5f29d0['model']['document']['selection'],_0x22e318=_0x22eca8['getFirstPosition'](),_0x160ca4=rt['fromRange'](_0x22eca8['getFirstRange']());if(_0x754153['enterBlock'](_0xc7d8dd)){const _0x3b4447=_0x5f29d0['model']['createPositionAt'](_0x22e318['parent']['nextSibling'],0x0),_0xa61411=_0xc7d8dd['createRange'](_0x22e318,_0x3b4447);_0x474569['markInsertion'](_0xa61411);}else _0xc7d8dd['setSelection'](_0xc7d8dd['createRange'](_0x160ca4['end']));_0x160ca4['detach'](),_0x754153['fire']('afterExecute',{'writer':_0xc7d8dd});});});}},Jt=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x34f04c=this['editor']['plugins']['get']('TrackChangesEditing');_0x34f04c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x34f04c['enableCommand']('findNext'),_0x34f04c['enableCommand']('findPrevious'),_0x34f04c['enableCommand']('replace'),_0x34f04c['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c4417,_0x5177ba,_0x362d0c={}){const _0x29ed6e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c4417(_0x20ba74=>{let _0x30f37d=('string'==typeof _0x5177ba?_0x29ed6e['findByTextCallback'](_0x5177ba,_0x362d0c):_0x5177ba)(_0x20ba74);Array['isArray'](_0x30f37d)&&(_0x30f37d={'results':_0x30f37d,'searchText':'string'==typeof _0x5177ba?_0x5177ba:''});const _0x1c7015=_0x30f37d['results']['filter'](_0x373e5e=>!0x1===this['_isInDeletionRange'](_0x373e5e,_0x20ba74['item']));return{..._0x30f37d,'results':_0x1c7015};},_0x362d0c);}['_isInDeletionRange'](_0x5df715,_0x3822dc){const _0x29674d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3822dc,_0x5df715['start']),this['editor']['model']['createPositionAt'](_0x3822dc,_0x5df715['end']));for(const _0x224821 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29674d['getIntersection'](_0x224821['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x2dafdc{['afterInit'](){const _0x4f2920=this['editor']['locale'],_0x3a47a9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x588d55,commandName:_0x169c2f}of te)this['editor']['plugins']['has'](_0x588d55)&&_0x3a47a9['enableDefaultAttributesIntegration'](_0x169c2f);_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x4f2920,'FORMAT_FONT_SIZE')),_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x4f2920,'FORMAT_FONT_FAMILY')),_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x4f2920,'FORMAT_FONT_COLOR')),_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x4f2920,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c444b=this['editor'],_0x329eaf=_0x2c444b['locale'];_0x2c444b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4905e2=>{const _0x16a075=_0x329eaf['t'];if('formatInline'!=_0x4905e2['type'])return;const {data:_0x14cbd9}=_0x4905e2;if(null!=_0x14cbd9){if('fontSize'==_0x14cbd9['commandName']){const _0x176b1e=_0x14cbd9['commandParams'][0x0]['value'];if(_0x176b1e){const _0x3fc439=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x624752=>_0x624752['model']==_0x176b1e)['title'];return{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20size:*\x20%0',_0x16a075(_0x3fc439)['toLowerCase']())};}return{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x14cbd9['commandName']){const _0x50361c=_0x14cbd9['commandParams'][0x0]['value'];return _0x50361c?{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20family:*\x20%0',_0x50361c)}:{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x14cbd9['commandName']){const _0xd960e0=_0x14cbd9['commandParams'][0x0]['value'];if(_0xd960e0){const _0x59e56f=_0x575edc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4baa6b=>_0x4baa6b['model']==_0xd960e0);let _0x14686e=_0xd960e0,_0x1a2f60='';return _0x59e56f&&(_0x14686e=_0x59e56f['label'],_0x1a2f60=_0x16a075(_0x14686e)['toLowerCase']()),{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20color:*\x20%0',_0x1a2f60)['trim'](),'color':{'value':_0xd960e0,'title':_0x1a2f60||_0x14686e}};}return{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x14cbd9['commandName']){const _0x430736=_0x14cbd9['commandParams'][0x0]['value'];if(_0x430736){const _0x162511=_0x575edc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x335663=>_0x335663['model']==_0x430736);let _0x20516b=_0x430736,_0x4cce45='';return _0x162511&&(_0x20516b=_0x162511['label'],_0x4cce45=_0x16a075(_0x20516b)['toLowerCase']()),{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20background\x20color:*\x20%0',_0x4cce45)['trim'](),'color':{'value':_0x430736,'title':_0x4cce45||_0x20516b}};}return{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x2dafdc{['afterInit'](){const {plugins:_0x3aeb44}=this['editor'];_0x3aeb44['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3aeb44['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x16f1ff,plugins:_0x5477bc,commands:_0xdbc4f7}=this['editor'],_0xa4e48b=_0x5477bc['get']('TrackChangesEditing');_0xdbc4f7['get']('footnotesStyle')&&_0xa4e48b['enableDefaultAttributesIntegration']('footnotesStyle'),_0xdbc4f7['get']('footnotesStart')&&_0xa4e48b['enableDefaultAttributesIntegration']('footnotesStart'),_0xa4e48b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x16f1ff,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xa4e48b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x16f1ff,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x32377b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x47ae09,commands:_0x17887a}=this['editor'];_0x17887a['get']('insertFootnote')&&_0x32377b['enableCommand']('insertFootnote'),_0x32377b['descriptionFactory']['registerElementLabel']('footnoteRef',_0xc568e4=>St(_0x47ae09,'ELEMENT_FOOTNOTE_REF',_0xc568e4)),_0x32377b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1f3407=>St(_0x47ae09,'ELEMENT_FOOTNOTE_DEFINITION',_0x1f3407)),_0x32377b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x417495=>St(_0x47ae09,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x417495));}},ie=class extends _0x2dafdc{['afterInit'](){const _0x3712bc=this['editor'],_0x31d4d0=_0x3712bc['plugins']['get']('TrackChangesEditing'),_0xf4f952=_0x3712bc['commands']['get']('copyFormat'),_0x46fcad=_0x3712bc['commands']['get']('pasteFormat');_0xf4f952&&_0x46fcad&&(_0x31d4d0['enableDefaultAttributesIntegration']('pasteFormat'),_0x31d4d0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x16ed5e=this['editor'],_0x5c748d=_0x16ed5e['locale'];_0x16ed5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15af05=>{if('formatBlock'!=_0x15af05['type']&&'formatInline'!=_0x15af05['type'])return;const {data:_0x215662}=_0x15af05;if(_0x215662&&'pasteFormat'===_0x215662['commandName']){const _0x15af96=[],_0x28fa63=_0x215662['commandParams'][0x0];for(const [_0x4b1041,_0x4d04df]of Object['entries'](_0x28fa63))_0x15af96['push'](se(_0x16ed5e,_0x4b1041,_0x4d04df));return _0x15af96['length']?{'type':'format','content':St(_0x5c748d,'*Set\x20format\x20to:*\x20%0',_0x15af96['join'](',\x20'))}:{'type':'format','content':St(_0x5c748d,'*Remove\x20all\x20formatting*')};}});}};function se(_0x2291a2,_0x547892,_0x17ed03){const _0x55755d=_0x2291a2['locale']['t'],_0x38514a=_0x547892['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ac2f0=_0x55755d(_0x38514a['charAt'](0x0)['toUpperCase']()+_0x38514a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x17ed03)return _0x2ac2f0;if('fontColor'===_0x547892||'fontBackgroundColor'===_0x547892){const _0x10c6f7=_0x575edc(_0x2291a2['config']['get']('fontColor.colors'))['find'](_0x1cee99=>_0x1cee99['model']==_0x17ed03);return _0x2ac2f0+'\x20('+(_0x10c6f7?_0x55755d(_0x10c6f7['label'])['toLowerCase']():_0x17ed03)+')';}if('fontSize'===_0x547892&&isNaN(parseFloat(_0x17ed03))){const _0xb09909=_0x2291a2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2291a2['config']['get']('fontSize.options'))['find'](_0x52c19f=>_0x52c19f['model']==_0x17ed03);return _0x2ac2f0+'\x20('+(_0xb09909?_0x55755d(_0xb09909['title'])['toLowerCase']():_0x17ed03)+')';}return _0x2ac2f0+'\x20('+_0x17ed03+')';}var re=class extends _0x2dafdc{['afterInit'](){const _0x47100c=this['editor'];if(!_0x47100c['plugins']['has']('GeneralHtmlSupport')||!_0x47100c['plugins']['has']('DataSchema'))return;const _0x366acb=_0x47100c['plugins']['get']('TrackChangesEditing'),_0x286914=_0x47100c['plugins']['get']('GeneralHtmlSupport'),_0x3b14b1=_0x47100c['plugins']['get']('DataSchema'),_0x219a43=_0x47100c['locale'],_0x2a3c25=new Set(['htmlContent']);for(const _0x2bae66 of _0x3b14b1['getDefinitionsForView'](/.*/,!0x1)){const _0x3c6068=_0x2bae66['view'],_0xe1257=_0x286914['getGhsAttributeNameForElement'](_0x3c6068);_0x2a3c25['add'](_0xe1257),!_0x2bae66['isInline']||_0x2bae66['isObject']||'appliesToBlock'in _0x2bae66&&_0x2bae66['appliesToBlock']||_0x366acb['descriptionFactory']['registerAttributeLabel'](_0xe1257,_0x3c6068),_0x2bae66['model']['startsWith']('html')&&_0x366acb['descriptionFactory']['registerElementLabel'](_0x2bae66['model'],_0x5cf044=>St(_0x219a43,'ELEMENT_HTML_TAG',[_0x5cf044,_0x3c6068]));}_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x219a43,'FORMAT_RAW_HTML_CONTENT')),_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x219a43,'FORMAT_HTML_LIST_ITEM')),_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x219a43,'FORMAT_HTML_BULLETED_LIST')),_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x219a43,'FORMAT_HTML_NUMBERED_LIST')),_0x366acb['descriptionFactory']['registerDescriptionCallback'](_0x212dac=>{if('attribute'!==_0x212dac['type'])return;const _0x2d0a27=_0x212dac['data'];if(!_0x2d0a27||!_0x2a3c25['has'](_0x2d0a27['key']))return;if('htmlContent'===_0x2d0a27['key'])return{'type':'format','content':St(_0x219a43,'*Change\x20%0\x20content*',St(_0x219a43,'ELEMENT_RAW_HTML'))};const {setItems:_0x5a0a8c,removeItems:_0x44b1a4}=function(_0x5d2ed0,_0x5e4aa9,_0x31852f){const _0x187872=[],_0x43c73d=[],_0x169b2c=_0x5d2ed0['styles']??{},_0x137c93=_0x5e4aa9['styles']??{};for(const _0x35adf1 of new Set([...Object['keys'](_0x169b2c),...Object['keys'](_0x137c93)]))_0x169b2c[_0x35adf1]!==_0x137c93[_0x35adf1]&&(void 0x0===_0x137c93[_0x35adf1]?_0x43c73d['push'](_0x35adf1):_0x187872['push'](_0x35adf1+'\x20('+_0x137c93[_0x35adf1]+')'));const _0x56b227=St(_0x31852f,'FORMAT_HTML_CLASS'),_0x289535=new Set(_0x5d2ed0['classes']??[]),_0x2f9c26=new Set(_0x5e4aa9['classes']??[]),_0x35d25b=[..._0x2f9c26]['some'](_0x2150b0=>!_0x289535['has'](_0x2150b0)),_0x5b487a=[..._0x289535]['some'](_0x49ae89=>!_0x2f9c26['has'](_0x49ae89));_0x35d25b&&_0x187872['push'](_0x56b227),_0x5b487a&&_0x43c73d['push'](_0x56b227);const _0x53f140=St(_0x31852f,'FORMAT_HTML_ATTRIBUTE'),_0x573a77=_0x5d2ed0['attributes']??{},_0x1fdb72=_0x5e4aa9['attributes']??{};let _0x3d4cd2=!0x1,_0x22808b=!0x1;for(const _0x46a400 of new Set([...Object['keys'](_0x573a77),...Object['keys'](_0x1fdb72)]))_0x573a77[_0x46a400]!==_0x1fdb72[_0x46a400]&&(void 0x0===_0x1fdb72[_0x46a400]?_0x22808b=!0x0:_0x3d4cd2=!0x0);return _0x3d4cd2&&_0x187872['push'](_0x53f140),_0x22808b&&_0x43c73d['push'](_0x53f140),{'setItems':_0x187872,'removeItems':_0x43c73d};}(_0x2d0a27['oldValue']??{},_0x2d0a27['newValue']??{},_0x219a43);if(!_0x5a0a8c['length']&&!_0x44b1a4['length'])return;const _0x4d0390=[];return _0x5a0a8c['length']&&_0x4d0390['push'](St(_0x219a43,'*Set\x20format:*\x20%0',_0x5a0a8c['join'](',\x20'))),_0x44b1a4['length']&&_0x4d0390['push'](St(_0x219a43,'*Remove\x20format:*\x20%0',_0x44b1a4['join'](',\x20'))),{'type':'format','content':_0x4d0390['join']('\x0a')};});}},oe=class extends _0x2dafdc{['_headingOptions'];['afterInit'](){const _0x2eae84=this['editor'];if(!_0x2eae84['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2eae84['config']['get']('heading.options');const _0x4644d4=_0x2eae84['locale'],_0xbd1c88=_0x2eae84['plugins']['get']('TrackChangesEditing');_0xbd1c88['enableDefaultAttributesIntegration']('heading');for(const _0x20e088 of this['_headingOptions'])'paragraph'!=_0x20e088['model']&&_0xbd1c88['descriptionFactory']['registerElementLabel'](_0x20e088['model'],_0x2907e8=>{const _0x3f89fd=this['_getHeadingLevel'](_0x20e088['model']);return null!==_0x3f89fd?_0x172c9c(_0x2907e8,_0x3f89fd):_0x308df7(_0x2907e8,_0x20e088['title']);});function _0x172c9c(_0x24e978,_0x15664d){return St(_0x4644d4,'ELEMENT_HEADING',[_0x24e978,_0x15664d]);}function _0x308df7(_0x535fb5,_0x3badca){return St(_0x4644d4,'ELEMENT_HEADING_CUSTOM',[_0x535fb5,_0x3badca]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9324cc=this['editor'],_0x24ac7e=_0x9324cc['locale'];function _0x31fa21(_0xef3f90,_0x422c9d){return St(_0x24ac7e,'ELEMENT_HEADING_CUSTOM',[_0xef3f90,_0x422c9d]);}_0x9324cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259237=>{if('formatBlock'!=_0x259237['type'])return;const {data:_0x241707}=_0x259237;if(_0x241707&&'heading'==_0x241707['commandName']){const _0x1d5ee2=_0x241707['commandParams'][0x0]['value'],_0x35216e=this['_getHeadingLevel'](_0x1d5ee2);if(null!==_0x35216e)return{'type':'format','content':St(_0x24ac7e,'*Change\x20to:*\x20%0',(_0x409cf4=0x1,_0x359e27=_0x35216e,St(_0x24ac7e,'ELEMENT_HEADING',[_0x409cf4,_0x359e27])))};const _0x501463=this['_headingOptions']['find'](_0x1ab7a9=>_0x1ab7a9['model']===_0x1d5ee2)['title'];return{'type':'format','content':St(_0x24ac7e,'*Change\x20to:*\x20%0',_0x31fa21(0x1,_0x501463))};}var _0x409cf4,_0x359e27;});}['_getHeadingLevel'](_0x2bcc19){const _0x1b7ee0=_0x2bcc19['match'](/^heading(\d+)/);if(_0x1b7ee0)return _0x1b7ee0[0x1];const _0x320068=this['_headingOptions']?.['find'](_0x5919cf=>_0x5919cf['model']==_0x2bcc19);if(_0x320068&&_0x320068['view']){const _0x3eaaa6=_0x320068['view'],_0x320e22=(_0x3eaaa6['name']??_0x3eaaa6)['match'](/^h(\d+)/);if(_0x320e22)return _0x320e22[0x1];}return null;}},ae=class extends _0x2dafdc{['afterInit'](){const _0x59b03f=this['editor'];if(!_0x59b03f['plugins']['has']('HighlightEditing'))return;const _0xf32aba=_0x59b03f['plugins']['get']('TrackChangesEditing'),_0x3a00ed=_0x59b03f['locale'];_0xf32aba['enableDefaultAttributesIntegration']('highlight'),_0xf32aba['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x3a00ed,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319794=this['editor'],_0x406566=_0x319794['locale'];_0x319794['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c9d9=>{if('formatInline'!=_0x11c9d9['type'])return;const {data:_0x13b58c}=_0x11c9d9;if(_0x13b58c&&'highlight'==_0x13b58c['commandName']){const _0x39ab3b=_0x406566['t'],_0x544f88=_0x13b58c['commandParams'][0x0]['value'];if(_0x544f88){const _0x8a1cf6=_0x319794['config']['get']('highlight.options')['find'](_0x24e7dd=>_0x24e7dd['model']==_0x544f88);return{'type':'format','content':St(_0x406566,'*Set\x20highlight:*\x20%0',_0x39ab3b(_0x8a1cf6['title'])['toLowerCase']()),'color':{'value':_0x8a1cf6['color'],'title':_0x8a1cf6['title']}};}return{'type':'format','content':St(_0x406566,'*Remove\x20highlight*',St(_0x406566,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x2dafdc{['afterInit'](){const _0x3b2224=this['editor'];if(!_0x3b2224['plugins']['has']('HorizontalLineEditing'))return;_0x3b2224['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2ecdb0=_0x3b2224['plugins']['get']('TrackChangesEditing'),_0x4ff0fb=_0x3b2224['locale'];_0x2ecdb0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4aa5b5=>St(_0x4ff0fb,'ELEMENT_HORIZONTAL_LINE',_0x4aa5b5));}},le=class extends _0x2dafdc{['afterInit'](){const _0x197d33=this['editor'];if(!_0x197d33['plugins']['has']('HtmlEmbed'))return;const _0x10ae5c=_0x197d33['plugins']['get']('TrackChangesEditing'),_0x45de1a=_0x197d33['locale'];_0x10ae5c['descriptionFactory']['registerElementLabel']('rawHtml',_0x3663d1=>St(_0x45de1a,'ELEMENT_HTML_EMBED',_0x3663d1)),_0x10ae5c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10ae5c['descriptionFactory']['registerDescriptionCallback'](_0x1d2928=>{if('attribute'!=_0x1d2928['type'])return;const {data:_0x2294e7}=_0x1d2928;return _0x2294e7&&'value'==_0x2294e7['key']&&_0x1d2928['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x45de1a,'*Change\x20%0\x20content*',St(_0x45de1a,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b170=this['editor'],_0x3e3c88=_0x19b170['locale'];_0x19b170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aa0e7=>{if('formatBlock'!=_0x5aa0e7['type'])return;const {data:_0x1b2350}=_0x5aa0e7;return _0x1b2350&&'htmlEmbed'==_0x1b2350['commandName']?{'type':'format','content':St(_0x3e3c88,'*Change\x20%0\x20content*',St(_0x3e3c88,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x2dafdc{['afterInit'](){const _0x104095=this['editor'];if(!_0x104095['plugins']['has']('ImageEditing'))return;const _0xd8e1d=_0x104095['plugins']['get']('TrackChangesEditing'),_0x214410=_0x104095['plugins']['get']('ImageUtils'),_0x102131=_0x104095['locale'];_0xd8e1d['enableCommand']('insertImage'),_0xd8e1d['descriptionFactory']['registerElementLabel']('imageBlock',_0x4e093f=>St(_0x102131,'ELEMENT_IMAGE',_0x4e093f)),_0xd8e1d['descriptionFactory']['registerElementLabel']('imageInline',_0x4089f6=>St(_0x102131,'ELEMENT_INLINE_IMAGE',_0x4089f6)),_0xd8e1d['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x102131,'ELEMENT_CAPTION')),_0x104095['plugins']['has']('ImageUploadEditing')&&_0xd8e1d['enableCommand']('uploadImage'),_0x104095['plugins']['has']('ImageBlockEditing')&&_0x104095['plugins']['has']('ImageInlineEditing')&&(_0xd8e1d['enableCommand']('imageTypeInline',(_0x3ac0e8,_0x7fe216)=>{const _0x558b81=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']);_0x104095['model']['change'](()=>{_0xd8e1d['markBlockFormat'](_0x558b81,{'commandName':'imageTypeInline','commandParams':[_0x7fe216]},[],'convertBlockImageToInline');});}),_0xd8e1d['enableCommand']('imageTypeBlock',(_0x58fe43,_0x32dae4)=>{_0x104095['model']['change'](_0x19735b=>{let _0x22e83a=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x18a485=_0x19735b['createRangeOn'](_0x22e83a);const _0x457f5d=st['fromPosition'](_0x18a485['start'],'toPrevious'),_0x5a649d=st['fromPosition'](_0x18a485['end'],'toNext');_0xd8e1d['forceDefaultExecution'](()=>_0x58fe43(_0x32dae4)),_0x22e83a=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x18a485=_0x19735b['createRangeOn'](_0x22e83a);const _0x1cffd9=_0x19735b['createRange'](_0x457f5d,_0x5a649d);_0x457f5d['detach'](),_0x5a649d['detach'](),_0xd8e1d['markBlockFormat'](_0x22e83a,{'commandName':'imageTypeInline','commandParams':[_0x32dae4]},[],'convertInlineImageToBlock'),_0x1cffd9['start']['isBefore'](_0x18a485['start'])&&_0xd8e1d['markInsertion'](_0x19735b['createRange'](_0x1cffd9['start'],_0x18a485['start']),'convertInlineImageToBlock'),_0x18a485['end']['isBefore'](_0x1cffd9['end'])&&_0xd8e1d['markInsertion'](_0x19735b['createRange'](_0x18a485['end'],_0x1cffd9['end']),'convertInlineImageToBlock');});}),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xd8e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xdcd514])=>{const _0x4dc7be=_0xd8e1d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xe501cc=_0xdcd514['start'],_0x2f1037=_0xdcd514['end'];const _0x3f232f=_0x104095['model']['schema']['getNearestSelectionRange'](_0xe501cc,'backward'),_0x507134=_0x104095['model']['schema']['getNearestSelectionRange'](_0x2f1037,'forward');_0x3f232f['isCollapsed']&&(_0xe501cc=_0x3f232f['start']),_0x507134['isCollapsed']&&(_0x2f1037=_0x507134['end']),_0x4dc7be([_0x104095['model']['createRange'](_0xe501cc,_0x2f1037)]);}),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3b4fe0),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3b4fe0)),_0x104095['plugins']['has']('ImageCaptionEditing')&&(_0xd8e1d['enableCommand']('toggleImageCaption',(_0x13e25a,_0x6fed77)=>{const _0x5d4c2f=_0x104095['plugins']['get']('ImageCaptionUtils');let _0x9710a6=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x8a40f3=_0x5d4c2f['getCaptionFromImageModelElement'](_0x9710a6);_0x104095['model']['change'](()=>{if(_0x8a40f3)return void _0xd8e1d['markDeletion'](_0x104095['model']['createRangeOn'](_0x8a40f3));const _0x188cdb=_0x214410['isBlockImage'](_0x9710a6);_0x13e25a(_0x6fed77),_0x9710a6=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x8a40f3=_0x5d4c2f['getCaptionFromImageModelElement'](_0x9710a6),_0xd8e1d['markInsertion'](_0x104095['model']['createRangeOn'](_0x8a40f3),_0x188cdb?null:'imageCaption');});}),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3b4fe0));const _0xdd71f2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2031bf(_0x26ea95,_0xcb43fc){const _0x1e1678=_0xdd71f2['findIndex'](({type:_0x1e2f43,subType:_0xcd8b23})=>_0x26ea95['type']==_0x1e2f43&&_0x26ea95['subType']==_0xcd8b23),_0x49e876=_0xdd71f2['findIndex'](({type:_0x50e309,subType:_0x4b8072})=>_0xcb43fc['type']==_0x50e309&&_0xcb43fc['subType']==_0x4b8072);if(_0x1e1678<0x0||_0x49e876<0x0)return!0x1;const _0x2f8881=_0x26ea95['getFirstRange'](),_0x2939ce=_0xcb43fc['getFirstRange']();if((0x0==_0x1e1678||0x1==_0x1e1678)&&0x2==_0x49e876&&_0x2f8881['isIntersecting'](_0x2939ce))return!0x0;if(0x2==_0x1e1678&&0x3==_0x49e876){const _0x188291=_0xd8e1d['_findSuggestions'](_0x2f8881,'insertion')['filter'](({suggestion:_0x4b2ec3,meta:_0x394040})=>_0x394040['isOwn']&&'convertInlineImageToBlock'==_0x4b2ec3['subType']);if(_0x188291['length']>0x1&&_0x2939ce['end']['isEqual'](_0x2f8881['start']))return!0x0;if(0x1==_0x188291['length']&&(_0x2f8881['start']['isEqual'](_0x2939ce['end'])||_0x2f8881['end']['isEqual'](_0x2939ce['start'])))return!0x0;}if(0x3==_0x1e1678&&0x3==_0x49e876&&_0x2f8881['start']['isBefore'](_0x2939ce['start'])){const _0x2eee8a=_0x2f8881['end']['nodeAfter'],_0x37a664=_0x2939ce['start']['nodeBefore'];return _0x214410['isBlockImage'](_0x2eee8a)&&_0x2eee8a===_0x37a664;}return!0x1;}function _0x3b4fe0(_0x55a62f,_0x36047f){return _0x2031bf(_0x55a62f,_0x36047f)?[_0x55a62f,_0x36047f]:_0x2031bf(_0x36047f,_0x55a62f)?[_0x36047f,_0x55a62f]:null;}_0x104095['plugins']['has']('ImageResize')&&(_0xd8e1d['enableDefaultAttributesIntegration']('resizeImage'),_0xd8e1d['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x102131,'FORMAT_IMAGE_SIZE'))),_0x104095['plugins']['has']('ImageTextAlternativeEditing')&&_0xd8e1d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x104095['plugins']['has']('PictureEditing')&&_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x38c80c=>{if('attribute'!=_0x38c80c['type'])return;const {data:_0x3f5e85}=_0x38c80c;return _0x3f5e85&&'sources'==_0x3f5e85['key']?{'type':'format','content':''}:void 0x0;}),_0x104095['plugins']['has']('ImageSizeAttributes')&&_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x34eeef=>{if('attribute'!=_0x34eeef['type'])return;const {data:_0x2767d4}=_0x34eeef;return!_0x2767d4||'width'!=_0x2767d4['key']&&'height'!=_0x2767d4['key']?void 0x0:{'type':'format','content':''};}),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x4399d0=>{if(_0xdd71f2['find'](({type:_0x9fa6c2,subType:_0x10256c})=>_0x4399d0['type']==_0x9fa6c2&&_0x4399d0['subType']==_0x10256c))return _0x4399d0['previous']?{}:void 0x0;}),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x1c82a1=>{if('insertion'==_0x1c82a1['type']||'deletion'==_0x1c82a1['type']){const _0x295939=_0x1c82a1['getContainedElement']();if(_0x295939&&_0x295939['is']('element','caption'))return{'type':'insertion'==_0x1c82a1['type']?'addObject':'removeObject','element':_0x295939,'quantity':0x1};}}),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x400fcf=>'formatBlock'==_0x400fcf['type']&&'convertInlineImageToBlock'==_0x400fcf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x400fcf['type']&&'convertBlockImageToInline'==_0x400fcf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x5404fb=>{if('attribute'!=_0x5404fb['type'])return;const {data:_0x14624b}=_0x5404fb;if(!_0x14624b||'alt'!=_0x14624b['key'])return;const _0x3c11b4=_0x14624b['newValue'];return _0x3c11b4?{'type':'format','content':St(_0x102131,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c11b4+'\x22')}:{'type':'format','content':St(_0x102131,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442435=this['editor'],_0x5a6820=_0x442435['locale'];_0x442435['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0416=>{if('formatBlock'!=_0x2a0416['type']&&'formatInline'!=_0x2a0416['type'])return;const {data:_0x2b5034}=_0x2a0416;if(_0x2b5034){if('imageTextAlternative'==_0x2b5034['commandName']){const _0x7f125a=_0x2b5034['commandParams'][0x0]['newValue'];return _0x7f125a?{'type':'format','content':St(_0x5a6820,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7f125a+'\x22')}:{'type':'format','content':St(_0x5a6820,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b5034['commandName']){const _0x315fbe=_0x2b5034['commandParams'][0x0]['width'];return _0x315fbe?{'type':'format','content':St(_0x5a6820,'*Set\x20image\x20width:*\x20%0',_0x315fbe)}:{'type':'format','content':St(_0x5a6820,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x50b220=this['editor']['locale'],_0x4f7692=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f7692['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f7692['descriptionFactory']['registerDescriptionCallback'](_0x8dd5b7=>{if('attribute'!=_0x8dd5b7['type'])return;const {data:_0x1d4482}=_0x8dd5b7;return _0x1d4482&&'src'==_0x1d4482['key']?_0x1d4482['newValue']&&_0x1d4482['oldValue']?{'type':'format','content':St(_0x50b220,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5abfe3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5abfe3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5abfe3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5abfe3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5abfe3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491b11=this['editor'],_0x3d4e60=_0x491b11['locale'];_0x491b11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5768e9=>{if('formatBlock'!=_0x5768e9['type']&&'formatInline'!=_0x5768e9['type'])return;const {data:_0x2c93fd}=_0x5768e9;return _0x2c93fd&&'replaceImageSource'==_0x2c93fd['commandName']?{'type':'format','content':St(_0x3d4e60,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x2dafdc{['afterInit'](){const _0x347139=this['editor'];if(!_0x347139['plugins']['has']('ImageStyleEditing'))return;const _0x5a7bdc=_0x347139['plugins']['get']('TrackChangesEditing'),_0x2c0353=_0x347139['plugins']['get']('ImageUtils'),_0x1a9130={};_0x5a7bdc['enableCommand']('imageStyle',(_0x4decc4,_0x20d00e)=>{const _0x547ade=_0x347139['plugins']['get']('Users')['me'],_0x2ed02e=_0x347139['commands']['get']('imageStyle');let _0x2c97e2=_0x2c0353['getClosestSelectedImageElement'](_0x347139['model']['document']['selection']),_0x2d8bb7=_0x347139['model']['createRangeOn'](_0x2c97e2),_0xd6e4ba=_0x2ed02e['value'];if(_0xd6e4ba==_0x20d00e['value'])return;if(_0x20d00e['value']&&_0x2c0353['isInlineImage'](_0x2c97e2)&&!_0x2ed02e['isStyleEnabled'](_0x20d00e['value']))return;const _0x36c1be={'commandName':'imageStyle','commandParams':[_0x20d00e],'formatGroupId':_0x24c80d()};_0x347139['model']['change'](()=>{if(_0x5a7bdc['getSuggestions']()['filter'](_0x2e408c=>_0x2e408c['isInContent']&&_0x547ade==_0x2e408c['author']&&('formatBlock'==_0x2e408c['type']||'formatInline'==_0x2e408c['type'])&&('imageStylePreApply'==_0x2e408c['subType']||'imageStylePostApply'==_0x2e408c['subType'])&&_0x2e408c['getFirstRange']()['isEqual'](_0x2d8bb7))['forEach'](_0x2ff63f=>_0x5a7bdc['discardSuggestion'](_0x2ff63f['head'])),_0x2c97e2=_0x2c0353['getClosestSelectedImageElement'](_0x347139['model']['document']['selection']),_0x2d8bb7=_0x347139['model']['createRangeOn'](_0x2c97e2),_0x2ed02e['refresh'](),_0x347139['commands']['get']('imageTypeInline')['refresh'](),_0x347139['commands']['get']('imageTypeBlock')['refresh'](),_0xd6e4ba=_0x2ed02e['value'],_0xd6e4ba!=_0x20d00e['value'])return _0x2c0353['isInlineImage'](_0x2c97e2)&&_0x2ed02e['shouldConvertImageType'](_0x20d00e['value'],_0x2c97e2)?(_0x4decc4({..._0x20d00e,'setImageSizes':!0x1}),_0x2c97e2=_0x2c0353['getClosestSelectedImageElement'](_0x347139['model']['document']['selection']),void _0x5a7bdc['markBlockFormat'](_0x2c97e2,{..._0x36c1be,'commandReversedParams':[{'value':_0xd6e4ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c0353['isBlockImage'](_0x2c97e2)?_0x5a7bdc['markBlockFormat'](_0x2c97e2,_0x36c1be,[],'imageStylePostApply'):_0x5a7bdc['markInlineFormat'](_0x2d8bb7,_0x36c1be,'imageStylePostApply'));});});for(const _0x3034dc of _0x347139['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1a9130[_0x3034dc['name']]=_0x3034dc['title']['toLowerCase']();_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x597665])=>{_0x2c0353['setImageNaturalSizeAttributes'](_0x597665['getContainedElement']());}),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fe326,_0x12f646)=>{_0x5a7bdc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fe326,{'commandName':_0x12f646['commandName'],'commandParams':_0x12f646['commandReversedParams']});}),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x59aa1f,_0x452173){return _0x27a652(_0x59aa1f,_0x452173)?[_0x59aa1f,_0x452173]:_0x27a652(_0x452173,_0x59aa1f)?[_0x452173,_0x59aa1f]:null;});const _0x450b3a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27a652(_0x2201e6,_0xcf0ff5){const _0x50c37f=_0x450b3a['findIndex'](({type:_0x130dc3,subType:_0x581eb8})=>_0x2201e6['type']==_0x130dc3&&_0x2201e6['subType']==_0x581eb8),_0xd23365=_0x450b3a['findIndex'](({type:_0x6b7495,subType:_0x56df70})=>_0xcf0ff5['type']==_0x6b7495&&_0xcf0ff5['subType']==_0x56df70);if(_0x50c37f<0x0||_0xd23365<0x0)return!0x1;const _0x16fbf6=_0x2201e6['getFirstRange'](),_0x4503b2=_0xcf0ff5['getFirstRange']();if((0x0==_0x50c37f||0x1==_0x50c37f)&&0x2==_0xd23365&&_0x16fbf6['isIntersecting'](_0x4503b2))return!0x0;if(0x2==_0x50c37f&&0x3==_0xd23365){const _0x4c3d1f=_0x5a7bdc['_findSuggestions'](_0x16fbf6,'insertion')['filter'](({suggestion:_0x135508,meta:_0x5493a5})=>_0x5493a5['isOwn']&&'convertInlineImageToBlock'==_0x135508['subType']);if(_0x4c3d1f['length']>0x1&&_0x4503b2['end']['isEqual'](_0x16fbf6['start']))return!0x0;if(0x1==_0x4c3d1f['length']&&(_0x16fbf6['start']['isEqual'](_0x4503b2['end'])||_0x16fbf6['end']['isEqual'](_0x4503b2['start'])))return!0x0;}if(0x3==_0x50c37f&&0x3==_0xd23365&&_0x16fbf6['start']['isBefore'](_0x4503b2['start'])){const _0x2029e4=_0x16fbf6['end']['nodeAfter'],_0x1052b5=_0x4503b2['start']['nodeBefore'];return _0x2c0353['isBlockImage'](_0x2029e4)&&_0x2029e4===_0x1052b5;}return!0x1;}_0x347139['model']['document']['registerPostFixer'](()=>{let _0x5779cf=!0x1;const _0xfa2dd1=Array['from'](_0x347139['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d3ea1,data:_0x2d5938}of _0xfa2dd1){const {group:_0x1f4117,type:_0x64e5da,subType:_0x34d177,id:_0x19dae9}=tt(_0x4d3ea1);if('suggestion'==_0x1f4117&&_0x5a7bdc['hasSuggestion'](_0x19dae9)){if('formatBlock'==_0x64e5da&&('imageStylePreApply'==_0x34d177||'imageStylePostApply'==_0x34d177)){const _0x15b8e5=_0x5a7bdc['getSuggestion'](_0x19dae9);if(_0x2d5938['newRange']){const _0x539329=_0x15b8e5['getFirstRange']()['getContainedElement']();if(_0x2c0353['isBlockImage'](_0x539329))continue;_0x5a7bdc['discardSuggestion'](_0x15b8e5),_0x5779cf=!0x0;}}if('insertion'==_0x64e5da&&'imageCaption'==_0x34d177&&!_0x2d5938['newRange']){const _0x43643f=_0x5a7bdc['getSuggestion'](_0x19dae9);_0x43643f['next']&&_0x43643f['next']['isInContent']&&(_0x5a7bdc['discardSuggestion'](_0x43643f['next']),_0x5779cf=!0x0);}}}return _0x5779cf;}),this['_registerLegacyDescription'](_0x1a9130);}['_registerLegacyDescription'](_0x2e3898){const _0x79e15c=this['editor'],_0xcbf61d=_0x79e15c['locale'];_0x79e15c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b4527=>{if('formatBlock'!=_0x2b4527['type']&&'formatInline'!=_0x2b4527['type'])return;const {data:_0x226365}=_0x2b4527;if(!_0x226365||'imageStyle'!=_0x226365['commandName'])return;const _0x51adec=_0x226365['commandParams'][0x0]['value'];return _0x140690('side'===_0x51adec?St(_0xcbf61d,'FORMAT_SIDE_IMAGE'):_0x2e3898[_0x51adec]||_0x51adec);function _0x140690(_0x38732b){return{'type':'format','content':St(_0xcbf61d,'*Format:*\x20%0',_0x38732b)};}});}},ge=class extends _0x2dafdc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5cf6fb){super(_0x5cf6fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x17d1a3=this['editor'],_0x4f6669=_0x17d1a3['commands']['get']('importWord'),_0x1ea25c=_0x17d1a3['commands']['get']('trackChanges');_0x4f6669&&(_0x4f6669['on']('execute',(_0x21bae7,[,_0x30549e])=>{this['_trackChangesValueDuringImport']=_0x1ea25c['value'],_0x30549e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f6669,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f6669,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1ea25c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x17d1a3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4962f3,_0x579999){const {suggestions:_0x50e62f}=_0x579999,_0x39f01f=this['editor']['commands']['get']('trackChanges'),_0x1a97c9=_0x39f01f['value'];this['_trackChangesValueDuringImport']!==_0x1a97c9&&(_0x39f01f['execute'](),this['_trackChangesExecuted']=!0x0),_0x50e62f&&_0x50e62f['forEach'](({id:_0x29c8f2,type:_0x43d28d,author:_0x2defc7,created_at:_0x1d0f9a})=>{const _0x1e9d93={'id':_0x29c8f2,'type':_0x43d28d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2defc7,'createdAt':_0x1d0f9a?new Date(_0x1d0f9a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e9d93);});}},fe=class extends _0x2dafdc{['afterInit'](){const _0x48a246=this['editor'],_0x183822=_0x48a246['plugins']['get']('TrackChangesEditing');if(_0x48a246['plugins']['has']('IndentEditing')&&(_0x183822['enableCommand']('indent'),_0x183822['enableCommand']('outdent')),_0x48a246['plugins']['has']('IndentBlock')){for(const _0x4b073b of['indentBlock','outdentBlock'])_0x183822['enableDefaultAttributesIntegration'](_0x4b073b);if(_0x48a246['plugins']['has']('ListEditing')){for(const _0xd3b51a of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x183822['enableDefaultAttributesIntegration'](_0xd3b51a);}}const _0xeeb11c=_0x48a246['locale'];_0x183822['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0xeeb11c,'FORMAT_INDENT')),_0x183822['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0xeeb11c,'FORMAT_INDENT')),_0x183822['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0xeeb11c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x590a7b=this['editor'],_0x521864=_0x590a7b['locale'],_0x59bdb3=_0x590a7b['plugins']['get']('TrackChangesEditing');_0x59bdb3['descriptionFactory']['registerDescriptionCallback'](_0x3b4af4=>{if('formatBlock'!=_0x3b4af4['type'])return;const {data:_0x2548bf}=_0x3b4af4;if(!_0x2548bf)return;if('indentBlock'!=_0x2548bf['commandName']&&'outdentBlock'!=_0x2548bf['commandName'])return;const _0x45526d=_0x3b4af4['getItems']()[0x0],_0x28a422=_0x59bdb3['descriptionFactory']['getItemLabel'](_0x45526d);return'indentBlock'==_0x2548bf['commandName']?{'type':'format','content':St(_0x521864,'*Indent:*\x20%0',_0x28a422)}:'outdentBlock'==_0x2548bf['commandName']?{'type':'format','content':St(_0x521864,'*Outdent:*\x20%0',_0x28a422)}:void 0x0;});}},me=class extends _0x2dafdc{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x2dafdc{['afterInit'](){const _0x3d565e=this['editor'];if(!_0x3d565e['plugins']['has']('LinkEditing'))return;const _0x19a681=_0x3d565e['plugins']['get']('TrackChangesEditing'),_0x5a8f93=_0x3d565e['commands']['get']('link');_0x19a681['enableDefaultAttributesIntegration']('link'),_0x19a681['enableDefaultAttributesIntegration']('unlink');for(const _0x293d66 of _0x5a8f93['manualDecorators'])_0x19a681['descriptionFactory']['registerAttributeLabel'](_0x293d66['id'],'link\x20('+_0x293d66['label']['toLowerCase']()+')');_0x19a681['descriptionFactory']['registerDescriptionCallback'](_0x2dbdc0=>{if('attribute'!=_0x2dbdc0['type'])return;const {data:_0x529bf4}=_0x2dbdc0;if(!_0x529bf4||'linkHref'!=_0x529bf4['key'])return;const _0x2859d2=_0x529bf4['newValue'],_0x540d41=_0x3d565e['locale'];return{'type':'format','content':null==_0x2859d2?St(_0x540d41,'*Remove\x20link*'):St(_0x540d41,'*Set\x20link:*\x20%0','\x22'+_0x2859d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26db36=this['editor'],_0x213130=_0x26db36['locale'];_0x26db36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7aa3cc=>{if('formatInline'!=_0x7aa3cc['type'])return;const {data:_0x45aafd}=_0x7aa3cc;if(_0x45aafd){if('link'==_0x45aafd['commandName']){const _0x7b9e6=_0x45aafd['commandParams'][0x0];return{'type':'format','content':St(_0x213130,'*Set\x20link:*\x20%0','\x22'+_0x7b9e6+'\x22')};}return'unlink'==_0x45aafd['commandName']?{'type':'format','content':St(_0x213130,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x2dafdc{['afterInit'](){const _0x4130c8=this['editor'],_0x4d722f=_0x4130c8['locale'];if(!_0x4130c8['plugins']['has']('LegacyListEditing'))return;const _0x2fbe56=_0x4130c8['plugins']['get']('TrackChangesEditing'),_0x36c16b=_0x4130c8['plugins']['has']('LegacyTodoListEditing');function _0x57a51f(_0x10fa51){return()=>{const _0x19fc2d=_0x4130c8['model']['document']['selection'],_0x2e518a=_0x4130c8['commands']['get'](_0x10fa51);if(_0x2e518a['value'])return void _0x4130c8['execute']('paragraph',{});const _0x33b87a=_0x10fa51['slice'](0x0,-0x4),_0x33bede=function(_0x3647e2,_0x19c260,_0x525129){let _0x4683e2=Array['from'](_0x3647e2)['filter'](_0x4182be=>function(_0x1e4f22,_0x30bb8a){return _0x30bb8a['checkChild'](_0x1e4f22['parent'],'listItem')&&!_0x30bb8a['isObject'](_0x1e4f22);}(_0x4182be,_0x525129));_0x4683e2=_0x4683e2['filter'](_0x40e042=>!_0x40e042['is']('element','listItem')||_0x40e042['getAttribute']('listType')!=_0x19c260);const _0x2dd99e=new Set();for(const _0x2a3a59 of _0x4683e2)_0x2a3a59['is']('element','listItem')?_0x2dd99e['add'](_e(_0x2a3a59)):_0x2dd99e['add'](_0x2a3a59);return Array['from'](_0x2dd99e);}(_0x19fc2d['getSelectedBlocks'](),_0x33b87a,_0x4130c8['model']['schema']);_0x4130c8['model']['change'](()=>{for(const _0x15ee9 of _0x33bede)_0x2fbe56['markBlockFormat'](_0x15ee9,{'commandName':_0x10fa51,'commandParams':[{'forceValue':!_0x2e518a['value']}],'formatGroupId':'blockName'},pe(_0x15ee9));});};}function _0x3879b1(_0x5448fa){return()=>{const _0x281e8d=function(_0x1befb0){let _0x6f19c6=Array['from'](_0x1befb0);const _0x19b065=_0x6f19c6['findIndex'](_0x5723a7=>'listItem'!=_0x5723a7['name']);return _0x19b065>-0x1&&(_0x6f19c6=_0x6f19c6['slice'](0x0,_0x19b065)),_0x6f19c6;}(_0x4130c8['model']['document']['selection']['getSelectedBlocks']()),_0x2daf6c=_0x4130c8['model']['createRange'](_0x4130c8['model']['createPositionAt'](_0x281e8d[0x0],'before'),_0x4130c8['model']['createPositionAt'](_0x281e8d[_0x281e8d['length']-0x1],'end'));_0x4130c8['model']['change'](()=>{_0x2fbe56['markBlockFormat'](_0x2daf6c,{'commandName':_0x5448fa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x471c7c){const _0x3ced43=new Set();for(const _0x11ebb of _0x471c7c){let _0xce959a=_0x11ebb['nextSibling'];for(;_0xce959a&&_0xce959a['getAttribute']('listIndent')>_0x11ebb['getAttribute']('listIndent');)_0x3ced43['add'](_0xce959a),_0xce959a=_0xce959a['nextSibling'];}return Array['from'](_0x3ced43);}(_0x281e8d));});};}_0x2fbe56['enableCommand']('numberedList',_0x57a51f('numberedList')),_0x2fbe56['enableCommand']('bulletedList',_0x57a51f('bulletedList')),_0x36c16b&&_0x2fbe56['enableCommand']('todoList',_0x57a51f('todoList')),_0x2fbe56['enableCommand']('indentList',_0x3879b1('indentList')),_0x2fbe56['enableCommand']('outdentList',_0x3879b1('outdentList')),_0x36c16b&&_0x2fbe56['enableCommand']('checkTodoList',()=>{const _0x2b7c8c=_0x4130c8['commands']['get']('checkTodoList'),_0x6418c4=Array['from'](_0x2b7c8c['_selectedElements']);_0x6418c4['filter'](_0x12dfdc=>_0x12dfdc['getAttribute']('todoListChecked')!=_0x2b7c8c['value']),_0x4130c8['model']['change'](()=>{for(const _0x5494b4 of _0x6418c4)_0x2fbe56['markBlockFormat'](_0x5494b4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b7c8c['value']}]});});}),_0x2fbe56['descriptionFactory']['registerElementLabel']('listItem',_0xc61bfc=>St(_0x4d722f,'ELEMENT_LIST_ITEM',_0xc61bfc)),_0x2fbe56['descriptionFactory']['registerDescriptionCallback'](_0x57006e=>{if('formatBlock'!=_0x57006e['type']&&'formatInline'!=_0x57006e['type'])return;const {data:_0xdee70d}=_0x57006e;if(_0xdee70d){if('numberedList'==_0xdee70d['commandName']||'bulletedList'==_0xdee70d['commandName']||'todoList'==_0xdee70d['commandName'])switch(_0xdee70d['commandName']['replace']('List','')){case'bulleted':return _0x46698d(St(_0x4d722f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46698d(St(_0x4d722f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46698d(St(_0x4d722f,'ELEMENT_TODO_LIST'));}if('indentList'==_0xdee70d['commandName'])return{'type':'format','content':St(_0x4d722f,'*Indent:*\x20%0',St(_0x4d722f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xdee70d['commandName'])return{'type':'format','content':St(_0x4d722f,'*Outdent:*\x20%0',St(_0x4d722f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xdee70d['commandName'])return _0xdee70d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x4d722f,'*Check\x20item*')}:{'type':'format','content':St(_0x4d722f,'*Uncheck\x20item*')};}function _0x46698d(_0x5ae47a){return{'type':'format','content':St(_0x4d722f,'*Change\x20to:*\x20%0',_0x5ae47a)};}});}};function _e(_0x52069b){const _0x22dcd7=_0x52069b['getAttribute']('listIndent');if(0x0==_0x22dcd7)return _0x52069b;let _0x248593=_0x52069b;for(;_0x52069b['previousSibling']&&_0x52069b['previousSibling']['is']('element','listItem');){const _0x4fba92=_0x52069b['previousSibling']['getAttribute']('listIndent');if(_0x4fba92==_0x22dcd7)_0x248593=_0x52069b['previousSibling'];else{if(_0x4fba92<_0x22dcd7)break;}_0x52069b=_0x52069b['previousSibling'];}return _0x248593;}function pe(_0x5bbb32){const _0x3d2362=[];if(_0x5bbb32['is']('element','listItem')&&_0x5bbb32['getAttribute']('listIndent')>0x0){let _0x15125f=_0x5bbb32['nextSibling'];for(;_0x15125f&&'listItem'==_0x15125f['name']&&_0x15125f['getAttribute']('listIndent')==_0x5bbb32['getAttribute']('listIndent');)_0x3d2362['push'](_0x15125f),_0x15125f=_0x15125f['nextSibling'];}return _0x3d2362;}var Le=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x17325f=this['editor']['config']['get']('list.properties'),_0x5b42f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x17325f['styles']&&_0x5b42f3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x17325f['reversed']&&_0x5b42f3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x17325f['startIndex']&&_0x5b42f3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5b42f3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3cae7b,_0x543d77={}){const _0xd3b04e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f4666=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd3b04e['markMultiRangeBlockFormat'](_0x1f4666,{'commandName':'listStyle','commandParams':[{'type':_0x543d77['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xf6fa29,_0x4ef8a9={}){const _0x250232=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2899ae=this['_getSuggestionBlocks'](_0x25b667=>_0x25b667['is']('element','listItem')&&'numbered'===_0x25b667['getAttribute']('listType'));if(_0x2899ae['length']<0x1)return;const _0x36c78e=_0x2899ae['map'](_0x5e2114=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e2114,'before'),this['editor']['model']['createPositionAt'](_0x5e2114,0x0)));this['editor']['model']['change'](()=>{_0x250232['markMultiRangeBlockFormat'](_0x36c78e,{'commandName':'listReversed','commandParams':[{'reversed':_0x4ef8a9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x264d5a,_0x3503b1={}){const _0x58fc8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe093a6=this['_getSuggestionBlocks'](_0x18ac77=>_0x18ac77['is']('element','listItem')&&'numbered'===_0x18ac77['getAttribute']('listType'));if(_0xe093a6['length']<0x1)return;const _0x1223b6=_0xe093a6['map'](_0x2c7e0e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c7e0e,'before'),this['editor']['model']['createPositionAt'](_0x2c7e0e,0x0)));this['editor']['model']['change'](()=>{_0x58fc8b['markMultiRangeBlockFormat'](_0x1223b6,{'commandName':'listStart','commandParams':[{'startIndex':_0x3503b1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27ed31){if('formatBlock'!=_0x27ed31['type']&&'formatInline'!=_0x27ed31['type'])return;const _0x40a3a7=this['editor']['locale'],{data:_0x376969}=_0x27ed31;if(!_0x376969)return;let _0x2b50c2,_0x14b09f;switch(_0x376969['commandName']){case'listStyle':_0x2b50c2='*Change\x20to:*\x20%0',_0x14b09f={'type':'format','content':St(_0x40a3a7,_0x2b50c2,St(_0x40a3a7,this['_getTranslationKeyForListStyle'](_0x376969['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b50c2=_0x376969['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14b09f={'type':'format','content':St(_0x40a3a7,_0x2b50c2)};break;case'listStart':_0x2b50c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14b09f={'type':'format','content':St(_0x40a3a7,_0x2b50c2,_0x376969['commandParams'][0x0]['startIndex'])};}return _0x14b09f;}['_getSuggestionBlocksForListStyle'](){const _0x11c570=this['editor']['plugins']['get']('LegacyListUtils');let _0x410290=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x410290[0x0]?.['is']('element','listItem')&&_0x410290['unshift'](..._0x11c570['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x410290[_0x410290['length']-0x1]?.['is']('element','listItem')&&_0x410290['push'](..._0x11c570['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x410290=[...new Set(_0x410290)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x410290=_0x410290['filter'](_0x320375=>_0x320375['is']('element','listItem'))),_0x410290;}['_getSuggestionBlocks'](_0x40db9a){const _0x5b3f7c=this['editor']['plugins']['get']('LegacyListUtils');let _0x379972=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x40db9a)['map'](_0x4aa12e=>{const _0x1c2327=this['editor']['model']['createPositionAt'](_0x4aa12e,0x0);return[..._0x5b3f7c['getSiblingNodes'](_0x1c2327,'backward'),..._0x5b3f7c['getSiblingNodes'](_0x1c2327,'forward')];})['flat']();return _0x379972=[...new Set(_0x379972)],_0x379972;}['_getTranslationKeyForListStyle'](_0x188b01){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x188b01)||'default')['toUpperCase']()+'_LIST_'+_0x188b01['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x2dafdc{['afterInit'](){const _0x25343e=this['editor'];if(!_0x25343e['plugins']['has']('MediaEmbedEditing'))return;const _0x57fbdd=_0x25343e['plugins']['get']('TrackChangesEditing'),_0x88a8ef=_0x25343e['locale'];_0x57fbdd['enableCommand']('mediaEmbed'),_0x57fbdd['descriptionFactory']['registerElementLabel']('media',_0x10c1d9=>St(_0x88a8ef,'ELEMENT_MEDIA',_0x10c1d9)),_0x25343e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x57fbdd['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x57fbdd['descriptionFactory']['registerDescriptionCallback'](_0x378344=>{if('attribute'!=_0x378344['type'])return;const {data:_0x5aae43}=_0x378344;if(!_0x5aae43||'resizedWidth'!=_0x5aae43['key'])return;const _0x55cfae=_0x378344['getContainedElement']();return _0x55cfae&&_0x55cfae['is']('element','media')?{'type':'format','content':St(_0x88a8ef,'*Set\x20format:*\x20%0',St(_0x88a8ef,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x2dafdc{['afterInit'](){const _0x422b83=this['editor'];if(!_0x422b83['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x12468b=_0x422b83['plugins']['get']('TrackChangesEditing'),_0x557fc5=_0x422b83['locale'],_0x2a67f7=_0x422b83['plugins']['get']('MediaEmbedStyleEditing'),_0x2527e5={};for(const _0x5663e0 of _0x2a67f7['normalizedStyles'])_0x2527e5[_0x5663e0['name']]=_0x5663e0['title']['toLowerCase']();const _0x46ed9f=_0x2a67f7['normalizedStyles']['find'](_0x39ba2a=>_0x39ba2a['isDefault'])?.['name'];_0x12468b['enableCommand']('mediaStyle',(_0x30983a,_0x29fca8)=>{const _0x54db92=_0x422b83['plugins']['get']('Users')['me'],_0x15a333=_0x422b83['commands']['get']('mediaStyle'),_0x48b597=function(_0x1fc0c7){const _0x23d689=_0x1fc0c7['model']['document']['selection']['getSelectedElement']();return _0x23d689&&_0x23d689['is']('element','media')?_0x23d689:null;}(_0x422b83);if(!_0x48b597)return;const _0x383741=_0x422b83['model']['createRangeOn'](_0x48b597);let _0x3e244f=_0x15a333['value'];if(_0x3e244f==_0x29fca8['value'])return;const _0x15bfc6={'commandName':'mediaStyle','commandParams':[_0x29fca8],'formatGroupId':_0x24c80d()};_0x422b83['model']['change'](()=>{_0x12468b['getSuggestions']()['filter'](_0x2386c9=>_0x2386c9['isInContent']&&_0x54db92==_0x2386c9['author']&&'formatBlock'==_0x2386c9['type']&&'mediaStylePostApply'==_0x2386c9['subType']&&_0x2386c9['getFirstRange']()['isEqual'](_0x383741))['forEach'](_0x177e28=>_0x12468b['discardSuggestion'](_0x177e28['head'])),_0x15a333['refresh'](),_0x3e244f=_0x15a333['value'],_0x3e244f!=_0x29fca8['value']&&_0x12468b['markBlockFormat'](_0x48b597,{..._0x15bfc6,'commandReversedParams':[{'value':'string'==typeof _0x3e244f?_0x3e244f:null}]},[],'mediaStylePostApply');});}),_0x12468b['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x12468b['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x207123,_0x21b47c)=>{_0x12468b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x207123,{'commandName':_0x21b47c['commandName'],'commandParams':_0x21b47c['commandReversedParams']});}),_0x12468b['descriptionFactory']['registerDescriptionCallback'](_0xad847f=>{if('formatBlock'!=_0xad847f['type'])return;const {data:_0x50d2c9}=_0xad847f;if(!_0x50d2c9||'mediaStyle'!=_0x50d2c9['commandName'])return;const _0x40b5d4=_0x50d2c9['commandParams'][0x0]['value']||_0x46ed9f;return _0x40b5d4?{'type':'format','content':St(_0x557fc5,'*Format:*\x20%0',_0x2527e5[_0x40b5d4]||_0x40b5d4)}:void 0x0;});}},be=class extends _0x2dafdc{['afterInit'](){const _0x207c0e=this['editor'];_0x207c0e['plugins']['has']('MentionEditing')&&_0x207c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x2dafdc{['afterInit'](){const _0x4ccda8=this['editor'];if(!_0x4ccda8['plugins']['has']('MergeFieldsEditing'))return;const _0x113117=_0x4ccda8['plugins']['get']('TrackChangesEditing'),_0x3860a3=_0x4ccda8['locale'];_0x113117['enableCommand']('insertMergeField'),_0x113117['enableCommand']('insertMergeFieldBlock'),_0x113117['enableCommand']('insertMergeFieldImage'),_0x113117['descriptionFactory']['registerElementLabel']('mergeField',_0x311567=>St(_0x3860a3,'ELEMENT_MERGE_FIELD',_0x311567)),_0x113117['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2b5601=>St(_0x3860a3,'ELEMENT_MERGE_FIELD',_0x2b5601)),_0x113117['descriptionFactory']['registerDescriptionCallback'](_0x15ee37=>{if('insertion'!=_0x15ee37['type']&&'deletion'!=_0x15ee37['type'])return;const _0xcec28e=_0x15ee37['getContainedElement']();if(null==_0xcec28e)return;const _0x895d5b=_0x4ccda8['plugins']['get']('MergeFieldsEditing');let _0x4d3057;switch(_0x895d5b['getMergeFieldType'](_0xcec28e)){case null:return;case'image':{const _0x3ad4fb=_0x895d5b['unwrapAffixes'](_0xcec28e['getAttribute']('src'));_0x4d3057=_0x895d5b['getLabel'](_0x3ad4fb)||_0x3ad4fb;break;}default:{const _0x2146cd=_0xcec28e['getAttribute']('id');_0x4d3057=_0x895d5b['getLabel'](_0x2146cd)||_0x2146cd;break;}}return'insertion'==_0x15ee37['type']?{'type':'insertion','content':St(_0x3860a3,'*Insert:*\x20%0','\x22'+_0x4d3057+'\x22\x20'+St(_0x3860a3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x3860a3,'*Remove:*\x20%0','\x22'+_0x4d3057+'\x22\x20'+St(_0x3860a3,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x2dafdc{['afterInit'](){const _0x48bbe7=this['editor'],_0xa2d391=_0x48bbe7['plugins']['get']('TrackChangesEditing');_0x48bbe7['plugins']['has']('MultiLevelList')&&(_0xa2d391['enableDefaultAttributesIntegration']('multiLevelList'),_0xa2d391['descriptionFactory']['registerDescriptionCallback'](_0x28639b=>this['handleDescriptions'](_0x28639b)));}['handleDescriptions'](_0x55ebd9){const _0x30cb44=this['editor']['locale'],{data:_0x53168b}=_0x55ebd9,_0x34e4ee={'type':'format','content':''};if(_0x53168b&&'listMarkerStyle'==_0x53168b['key']){if(!_0x53168b['oldValue'])return{'type':'format','content':St(_0x30cb44,'*Set\x20format:*\x20%0',St(_0x30cb44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53168b['newValue']+')'};if(!_0x53168b['newValue']){let _0x520d98=_0x55ebd9['head'];for(;_0x520d98;){if(_0x520d98['data']&&'listType'==_0x520d98['data']['key']&&_0x520d98['data']['newValue'])return _0x34e4ee;_0x520d98=_0x520d98['next'];}return{'type':'format','content':St(_0x30cb44,'*Remove\x20format:*\x20%0',St(_0x30cb44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53168b['oldValue']+')'};}}}},Re=class extends _0x2dafdc{['afterInit'](){const _0x25c506=this['editor'];if(!_0x25c506['plugins']['has']('PageBreakEditing'))return;_0x25c506['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x306581=_0x25c506['plugins']['get']('TrackChangesEditing'),_0xc7cc38=_0x25c506['locale'];_0x306581['descriptionFactory']['registerElementLabel']('pageBreak',_0x8c1f9e=>St(_0xc7cc38,'ELEMENT_PAGE_BREAK',_0x8c1f9e));}},Ne=class extends _0x2dafdc{['afterInit'](){const _0x509b32=this['editor'];if(!_0x509b32['plugins']['has']('Paragraph'))return;const _0x4a9a2f=_0x509b32['locale'],_0x3f586e=_0x509b32['plugins']['get']('TrackChangesEditing');_0x3f586e['descriptionFactory']['registerElementLabel']('paragraph',_0x47e015=>St(_0x4a9a2f,'ELEMENT_PARAGRAPH',_0x47e015)),_0x3f586e['enableDefaultAttributesIntegration']('paragraph'),_0x3f586e['enableCommand']('insertParagraph');const _0x2eadf8=_0x3f586e['descriptionFactory'];_0x2eadf8['registerDescriptionCallback'](_0x2ad6c6=>{if('insertion'!==_0x2ad6c6['type'])return;const {start:_0x53be4e,end:_0x54394a}=_0x2ad6c6['getFirstRange']();if(!_0x53be4e['isTouching'](_0x54394a)||!_0x53be4e['nodeAfter'])return;const _0x100d90=_0x509b32['model']['schema'],_0x18834b=_0x53be4e['nodeAfter'];return _0x100d90['isBlock'](_0x18834b)&&!_0x100d90['isLimit'](_0x18834b)&&_0x100d90['checkChild'](_0x18834b,'$text')?{'type':'insertion','content':St(_0x4a9a2f,'*Insert:*\x20%0',_0x2eadf8['getItemLabel'](_0x18834b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x427c49=this['editor'],_0x35d35f=_0x427c49['locale'];_0x427c49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df402=>{if('formatBlock'!=_0x5df402['type'])return;const {data:_0x29c173}=_0x5df402;return _0x29c173&&'paragraph'==_0x29c173['commandName']?{'type':'format','content':St(_0x35d35f,'*Change\x20to:*\x20%0',St(_0x35d35f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x2dafdc{['afterInit'](){const _0x3c14e9=this['editor'];_0x3c14e9['commands']['get']('replaceSource')&&_0x3c14e9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x2dafdc{['afterInit'](){const _0x3c1df9=this['editor'];_0x3c1df9['plugins']['has']('RemoveFormatEditing')&&(_0x3c1df9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2598e1=this['editor'];_0x2598e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e27f=>{if('formatBlock'!=_0x33e27f['type']&&'formatInline'!=_0x33e27f['type'])return;const {data:_0x5b3f02}=_0x33e27f;return _0x5b3f02&&'removeFormat'==_0x5b3f02['commandName']?{'type':'format','content':St(_0x2598e1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x2dafdc{['afterInit'](){const _0x52aef0=this['editor'];if(!_0x52aef0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8af858=_0x52aef0['plugins']['get']('TrackChangesEditing');_0x8af858['enableCommand']('goToPreviousRestrictedEditingException'),_0x8af858['enableCommand']('goToNextRestrictedEditingException');const _0x2050a1=_0x52aef0['plugins']['get']('RestrictedEditingModeEditing');_0x2050a1['enableCommand']('trackChanges'),_0x2050a1['enableCommand']('acceptSuggestion'),_0x2050a1['enableCommand']('discardSuggestion'),_0x2050a1['enableCommand']('acceptAllSuggestions'),_0x2050a1['enableCommand']('discardAllSuggestions'),_0x2050a1['enableCommand']('acceptSelectedSuggestions'),_0x2050a1['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x2dafdc{['afterInit'](){const _0x5791be=this['editor'];if(!_0x5791be['plugins']['has']('ShiftEnter'))return;const _0x15baa0=_0x5791be['plugins']['get']('TrackChangesEditing');_0x15baa0['enableCommand']('shiftEnter'),_0x15baa0['descriptionFactory']['registerElementLabel']('softBreak',_0x38f783=>St(_0x5791be['locale'],'ELEMENT_LINE_BREAK',_0x38f783));}};function we(_0xef108a,_0x5a19e5,_0x157be6){const _0x4a08bc=[];for(const _0x4d1579 of _0x5a19e5['getItems']())_0x4d1579['hasAttribute'](_0xef108a)&&_0x4a08bc['push'](_0x157be6['createRangeOn'](_0x4d1579));return _0x4a08bc;}var Fe=class extends _0x2dafdc{['afterInit'](){const _0xb2f7b9=this['editor'],_0x3acfb8=_0xb2f7b9['plugins']['get']('TrackChangesEditing');_0xb2f7b9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3acfb8['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x56c22d=this['editor'],_0x1b180f=_0x56c22d['model'],_0x25aa9a=_0x56c22d['locale'],_0x4a3d65=_0x56c22d['plugins']['get']('TrackChangesEditing'),_0x38404b='restrictedEditingException',_0x4ba3da=_0x56c22d['commands']['get'](_0x38404b);_0x4a3d65['enableCommand'](_0x38404b,(_0x4f38ef,_0x476adb={})=>{const _0x564901=_0x1b180f['document']['selection'];if(_0x564901['isCollapsed'])return void _0x4f38ef(_0x476adb);const _0x2d3883=void 0x0!==_0x476adb['forceValue']?_0x476adb['forceValue']:!_0x4ba3da['value'];_0x1b180f['change'](()=>{const _0x49407f=Array['from'](_0x564901['getRanges']());for(const _0x10bbb0 of _0x49407f){const _0x4e7d0c=_0x2d3883?[_0x10bbb0]:we(_0x38404b,_0x10bbb0,_0x1b180f);for(const _0x4ca622 of _0x4e7d0c)_0x4a3d65['markInlineFormat'](_0x4ca622,{'commandName':_0x38404b,'commandParams':[{'forceValue':_0x2d3883}]});}});}),_0x4a3d65['descriptionFactory']['registerDescriptionCallback'](_0x3ffd1d=>{if('formatBlock'!=_0x3ffd1d['type']&&'formatInline'!=_0x3ffd1d['type'])return;const {data:_0x174d3c}=_0x3ffd1d;return _0x174d3c&&_0x174d3c['commandName']==_0x38404b?_0x174d3c['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x25aa9a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x25aa9a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4c9683=this['editor'],_0x459f47=_0x4c9683['locale'],_0x4eac7a=_0x4c9683['plugins']['get']('TrackChangesEditing'),_0x1b4b90='restrictedEditingExceptionBlock',_0x9154=this['editor']['commands']['get'](_0x1b4b90);_0x4eac7a['enableCommand'](_0x1b4b90,(_0x578589,_0x283a7d={})=>{const _0x56bab4=this['editor']['model']['document']['selection'],_0x7fbb06=_0x283a7d&&void 0x0!==_0x283a7d['forceValue']?_0x283a7d['forceValue']:!_0x9154['value'];let _0x67a7e5=[];_0x67a7e5=At(_0x7fbb06?Array['from'](_0x56bab4['getSelectedBlocks']())['filter'](_0xd47ee5=>function(_0x2b56a5){return!!_0x2b56a5['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xd47ee5)||function(_0x46f86d,_0x4b7895){const _0x2394b9=_0x4b7895['createContext'](_0x46f86d['parent']);return!!_0x4b7895['checkChild'](_0x2394b9,'restrictedEditingException')&&!!_0x4b7895['checkChild'](_0x2394b9['push']('restrictedEditingException'),_0x46f86d);}(_0xd47ee5,this['editor']['model']['schema'])):Array['from'](_0x56bab4['getSelectedBlocks']())['map'](_0x354d2e=>function(_0x4863a2){let _0x5cd134=_0x4863a2;for(;_0x5cd134['parent'];){if('restrictedEditingException'==_0x5cd134['parent']['name'])return _0x5cd134;_0x5cd134=_0x5cd134['parent'];}return null;}(_0x354d2e))['filter'](_0x4203c0=>!!_0x4203c0),_0x4c9683['model']),_0x4c9683['model']['change'](()=>{for(const _0x2a7fb3 of _0x67a7e5)_0x4eac7a['markBlockFormat'](_0x2a7fb3,{'commandName':_0x1b4b90,'commandParams':[{'forceValue':_0x7fbb06}]});});}),_0x4eac7a['descriptionFactory']['registerDescriptionCallback'](_0x5d850e=>{const {data:_0x2b09c5}=_0x5d850e;if(_0x2b09c5&&_0x2b09c5['commandName']==_0x1b4b90)return _0x2b09c5['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x459f47,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x459f47,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x2dafdc{['afterInit'](){const _0xe53af1=this['editor'];_0xe53af1['plugins']['has']('Style')&&_0xe53af1['plugins']['has']('DataSchema')&&(_0xe53af1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x445c7b=this['editor'],_0x448c87=_0x445c7b['locale'];_0x445c7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480b17=>{if('formatBlock'!=_0x480b17['type']&&'formatInline'!=_0x480b17['type'])return;const {data:_0x402b08}=_0x480b17;return _0x402b08&&'style'===_0x402b08['commandName']?_0x402b08['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x448c87,'*Set\x20format:*\x20%0',_0x402b08['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x448c87,'*Remove\x20format:*\x20%0',_0x402b08['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x2dafdc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2af227){super(_0x2af227),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x500008=this['editor'],_0x53be2f=_0x500008['model']['document']['selection'];if(!_0x500008['plugins']['has']('TableEditing'))return;const _0x2b8ca3=_0x500008['locale'],_0x29e998=_0x500008['plugins']['get']('TrackChangesEditing'),_0x47c3cd=_0x500008['plugins']['get']('TableUtils');_0x29e998['descriptionFactory']['registerElementLabel']('table',_0x1fa5af=>St(_0x2b8ca3,'ELEMENT_TABLE',_0x1fa5af)),this['_setupColumnsRowsFixing'](),_0x29e998['enableCommand']('insertTable'),_0x29e998['enableCommand']('selectTableRow'),_0x29e998['enableCommand']('selectTableColumn');for(const _0x1f0216 of['insertTableRowAbove','insertTableRowBelow']){const _0x2452fd=_0x500008['commands']['get'](_0x1f0216);_0x29e998['enableCommand'](_0x1f0216,_0x53ba79=>{_0x500008['model']['change'](_0x167187=>{_0x53ba79();const _0x22b31b='above'===_0x2452fd['order'],_0x4bc0e3=_0x47c3cd['getSelectionAffectedTableCells'](_0x53be2f),_0x3b52c0=_0x47c3cd['getRowIndexes'](_0x4bc0e3),_0x4286b8=_0x22b31b?_0x3b52c0['first']-0x1:_0x3b52c0['last']+0x1,_0x130ee7=_0x4bc0e3[0x0]['findAncestor']('table'),_0x4a7390=_0x47c3cd['createTableWalker'](_0x130ee7,{'startRow':_0x4286b8,'endRow':_0x4286b8}),_0x27e478=Array['from'](_0x4a7390)['map'](_0x12e9a4=>_0x167187['createRangeOn'](_0x12e9a4['cell']));_0x29e998['markMultiRangeInsertion'](_0x27e478,'tableRow');});});}for(const _0x12246e of['insertTableColumnLeft','insertTableColumnRight']){const _0x50549e=_0x500008['commands']['get'](_0x12246e);_0x29e998['enableCommand'](_0x12246e,_0x521ef9=>{_0x500008['model']['change'](_0x325c72=>{_0x521ef9();const _0x25e001='left'===_0x50549e['order'],_0x5c2f87=_0x47c3cd['getSelectionAffectedTableCells'](_0x53be2f),_0x474e04=_0x47c3cd['getColumnIndexes'](_0x5c2f87),_0x244521=_0x25e001?_0x474e04['first']-0x1:_0x474e04['last']+0x1,_0xed7c08=_0x5c2f87[0x0]['findAncestor']('table'),_0x5483a6=_0x47c3cd['createTableWalker'](_0xed7c08,{'startRow':0x0,'column':_0x244521,'includeAllSlots':!0x1}),_0x4f5edd=Array['from'](_0x5483a6)['map'](_0x129d39=>_0x325c72['createRangeOn'](_0x129d39['cell']));_0x29e998['markMultiRangeInsertion'](_0x4f5edd,'tableColumn');});});}for(const _0x3b9b51 of['removeTableRow','removeTableColumn']){const _0x5159f5=_0x3b9b51['substr'](0xb),_0x3a3ed0=_0x5159f5['toLowerCase'](),_0x11bc98=_0x3a3ed0['substr'](0x0,0x3)+'span',_0x2ad323='table'+_0x5159f5,_0x7470c5='min'+_0x5159f5,_0x6a9788='max'+_0x5159f5;_0x29e998['enableCommand'](_0x3b9b51,()=>{_0x500008['model']['change'](_0x349183=>{const _0x55ec55=_0x47c3cd['getSelectionAffectedTableCells'](_0x53be2f),_0x3b4a15=_0x55ec55[0x0]['findAncestor']('table');let _0x13a269;if('removeTableRow'==_0x3b9b51){const _0xffec22=_0x47c3cd['getRowIndexes'](_0x55ec55);_0x13a269={'startRow':_0xffec22['first'],'endRow':_0xffec22['last'],'includeAllSlots':!0x0};}else{const _0x1f17cc=_0x47c3cd['getColumnIndexes'](_0x55ec55);_0x13a269={'startColumn':_0x1f17cc['first'],'endColumn':_0x1f17cc['last'],'includeAllSlots':!0x0};}const _0x3fcd9e=_0x47c3cd['createTableWalker'](_0x3b4a15,_0x13a269),_0xba33f6=Array['from'](_0x3fcd9e)['map'](({cell:_0x31717f})=>_0x31717f),_0x431063=De(_0xba33f6['filter'](_0x47d8d5=>_0x47d8d5['hasAttribute'](_0x11bc98))),_0x179e42=De(_0xba33f6['filter'](_0x2d1df1=>!_0x2d1df1['hasAttribute'](_0x11bc98)))['map'](_0x22c9b0=>_0x349183['createRangeOn'](_0x22c9b0)),_0x1f289e=_0x29e998['markMultiRangeDeletion'](_0x179e42,_0x2ad323);if(_0x1f289e&&('tableRow'==_0x1f289e['subType']||'tableColumn'==_0x1f289e['subType'])){const _0x5ea911=this['_getSuggestionCoords'](_0x1f289e);for(const _0xbb752c of _0x431063){const _0x881656=_0x349183['createRangeOn'](_0xbb752c),_0x38c15d=_0x47c3cd['getCellLocation'](_0xbb752c),_0x4693fa=_0xbb752c['getAttribute'](_0x11bc98)-0x1,_0x25db32=_0x5ea911[_0x7470c5],_0x3afd52=_0x5ea911[_0x6a9788];_0x25db32<=_0x38c15d[_0x3a3ed0]&&_0x38c15d[_0x3a3ed0]+_0x4693fa<=_0x3afd52&&_0x1f289e['addRange'](_0x881656);}}});});}function _0x36e070(_0x463fc3){const _0x557691=Array['from'](_0x53be2f['getRanges']())['map'](_0x3b43c9=>rt['fromRange'](_0x3b43c9));_0x500008['model']['change'](_0x1f563f=>{const _0x41c6a6=_0x1f563f['batch'];_0x463fc3=_0x463fc3['filter'](_0x329239=>'$graveyard'!=_0x329239['root']['rootName']),_0x1f563f['setSelection'](_0x463fc3),_0x500008['commands']['get']('removeTableRow')['refresh'](),_0x500008['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x500008['model']['enqueueChange'](()=>{_0x500008['model']['enqueueChange'](_0x41c6a6,_0x57a688=>{const _0xa76649=_0x557691['filter'](_0x90d444=>'$graveyard'!=_0x90d444['root']['rootName']);_0xa76649['length']>0x0&&_0x57a688['setSelection'](_0xa76649);for(const _0x5815d9 of _0x557691)_0x5815d9['detach']();});});});}function _0x178c0e(_0x342584){_0x500008['model']['change'](_0x122cbf=>{const _0x4ad256=Array['from'](_0x53be2f['getRanges']())['map'](_0x3c65eb=>rt['fromRange'](_0x3c65eb)),_0x206833=[];for(const _0x38e17c of _0x342584)for(const _0x2e6966 of _0x38e17c['getItems']({'shallow':!0x0}))_0x206833['push'](_0x2e6966);for(const _0x1c562d of _0x206833)'$graveyard'!=_0x1c562d['root']['rootName']&&(_0x122cbf['setSelection'](_0x122cbf['createPositionAt'](_0x1c562d,0x0)),_0x500008['commands']['get']('removeTableColumn')['refresh'](),_0x500008['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4cb691=_0x4ad256['filter'](_0x14c0fc=>'$graveyard'!=_0x14c0fc['root']['rootName']);_0x4cb691['length']>0x0&&_0x122cbf['setSelection'](_0x4cb691);for(const _0x3ebc7a of _0x4ad256)_0x3ebc7a['detach']();});}function _0x2528b2(_0x57cbd1,_0xb26d2){return _0xb26d2['every'](_0x3623c6=>_0x57cbd1['some'](_0x23e7bc=>_0x23e7bc['end']['isEqual'](_0x3623c6['start'])||_0x3623c6['end']['isEqual'](_0x23e7bc['start'])));}function _0x16a99b(_0x1d93e5,_0x576434){return!_0x1d93e5['some'](_0x5aa13e=>_0x576434['some'](_0x171eb5=>_0x5aa13e['isIntersecting'](_0x171eb5)))&&_0x1d93e5['some'](_0x6ccd23=>_0x576434['some'](_0x4438d6=>_0x6ccd23['end']['isTouching'](_0x4438d6['start'])));}_0x29e998['descriptionFactory']['registerDescriptionCallback'](_0x819b64=>{if('insertion'!=_0x819b64['type']&&'deletion'!=_0x819b64['type'])return;const _0x588eed=_0x819b64['getContainedElement']();if(null!=_0x588eed&&_0x588eed['is']('element','table')){if('insertion'==_0x819b64['type']){const _0x18d005=_0x819b64['getItems']()['filter'](_0x4b635b=>_0x4b635b['is']('$textProxy'))['map'](_0x2e089e=>_0x2e089e['data']);if(_0x18d005['length'])return{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18d005['join']('\x20')+'\x22'))};}if('deletion'==_0x819b64['type']){const _0x484f0f=_0x819b64['getItems']()['filter'](_0x5708d1=>_0x5708d1['is']('$textProxy'))['map'](_0x52c5c7=>_0x52c5c7['data']);if(_0x484f0f['length'])return{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x484f0f['join']('\x20')+'\x22'))};}}}),_0x29e998['descriptionFactory']['registerDescriptionCallback'](_0x521169=>{if('tableRow'==_0x521169['subType']){const _0x5f4cd3=_0x521169['getItems']()['filter'](_0x5ae0f4=>_0x5ae0f4['is']('$textProxy'))['map'](_0xfb4c76=>_0xfb4c76['data']),_0x14e0ae=this['_getSuggestionCoords'](_0x521169),_0x10e880=_0x14e0ae['maxRow']-_0x14e0ae['minRow']+0x1;if('insertion'==_0x521169['type'])return _0x5f4cd3['length']?{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x10e880,'\x22'+_0x5f4cd3['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW',_0x10e880))};if('deletion'==_0x521169['type'])return _0x5f4cd3['length']?{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x10e880,'\x22'+_0x5f4cd3['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW',_0x10e880))};}if('tableColumn'==_0x521169['subType']){const _0x27c4c0=_0x521169['getItems']()['filter'](_0x36b235=>_0x36b235['is']('$textProxy'))['map'](_0xd583b0=>_0xd583b0['data']),_0x3e72ba=this['_getSuggestionCoords'](_0x521169),_0xe25c1b=_0x3e72ba['maxColumn']-_0x3e72ba['minColumn']+0x1;if('insertion'==_0x521169['type'])return _0x27c4c0['length']?{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe25c1b,'\x22'+_0x27c4c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN',_0xe25c1b))};if('deletion'==_0x521169['type'])return _0x27c4c0['length']?{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe25c1b,'\x22'+_0x27c4c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN',_0xe25c1b))};}}),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x36e070),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x36e070),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x178c0e),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x178c0e),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2528b2),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2528b2),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x16a99b),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x16a99b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x202002=this['editor'],_0x441fe0=_0x202002['model']['document']['selection'];return(_0x580980,_0x4f85f7)=>{_0x202002['model']['change'](_0x169ac1=>{const {commandName:_0xf1c633,commandParams:_0x1a088c}=_0x4f85f7;let _0x3a1b7c=_0x580980[0x0]['end']['nodeBefore'];_0x1a088c&&_0x1a088c[0x0]&&!0x1===_0x1a088c[0x0]['forceValue']&&(_0x3a1b7c=_0x580980[0x0]['start']['nodeAfter']);const _0x56db0f=_0x169ac1['createRangeIn'](_0x3a1b7c);if('$graveyard'==_0x56db0f['root']['rootName'])return;const _0x11ecb6=Array['from'](_0x441fe0['getRanges']())['map'](_0x3c454e=>rt['fromRange'](_0x3c454e));_0x169ac1['setSelection'](_0x56db0f),_0x202002['commands']['get'](_0xf1c633)['refresh'](),_0x1a088c['push']({'forceDefaultExecution':!0x0}),_0x202002['execute'](_0xf1c633,..._0x1a088c);const _0x44ea4d=_0x11ecb6['filter'](_0xdb1332=>'$graveyard'!=_0xdb1332['root']['rootName']);_0x44ea4d['length']>0x0&&_0x169ac1['setSelection'](_0x44ea4d);for(const _0x3ff9fc of _0x11ecb6)_0x3ff9fc['detach']();});};}['_getCoordsForCells'](_0x20fcc2){const _0x371ce9=this['editor']['plugins']['get']('TableUtils');let _0x4a8df4=Number['MAX_SAFE_INTEGER'],_0x25e88b=Number['MIN_SAFE_INTEGER'],_0x221453=Number['MAX_SAFE_INTEGER'],_0x2a9ab5=Number['MIN_SAFE_INTEGER'];for(const _0x813704 of _0x20fcc2){if('$graveyard'==_0x813704['root']['rootName'])continue;const {row:_0x344675,column:_0x226700}=_0x371ce9['getCellLocation'](_0x813704),_0x9600ce=_0x813704['hasAttribute']('rowspan')?_0x813704['getAttribute']('rowspan')-0x1:0x0,_0x7244b=_0x813704['hasAttribute']('colspan')?_0x813704['getAttribute']('colspan')-0x1:0x0;_0x4a8df4=_0x344675<_0x4a8df4?_0x344675:_0x4a8df4,_0x25e88b=_0x344675+_0x9600ce>_0x25e88b?_0x344675+_0x9600ce:_0x25e88b,_0x221453=_0x226700<_0x221453?_0x226700:_0x221453,_0x2a9ab5=_0x226700+_0x7244b>_0x2a9ab5?_0x226700+_0x7244b:_0x2a9ab5;}return{'minRow':_0x4a8df4,'maxRow':_0x25e88b,'minColumn':_0x221453,'maxColumn':_0x2a9ab5};}['_setupColumnsRowsFixing'](){const _0x4cb4ab=this['editor'],_0x4e1b37=_0x4cb4ab['plugins']['get']('TrackChangesEditing'),_0x2a12d3=_0x4cb4ab['plugins']['get']('TableUtils');_0x4cb4ab['model']['document']['on']('change:data',()=>{const _0x55e8f2=Array['from'](_0x4cb4ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3879b9,data:_0x8f1cf7}of _0x55e8f2){const {group:_0x54c358,id:_0x4c2da1,subType:_0x1eacb3}=tt(_0x3879b9);if('suggestion'!=_0x54c358)continue;if(null!=_0x8f1cf7['oldRange'])continue;const _0x242447=_0x4e1b37['getSuggestion'](_0x4c2da1);this['_tablePostFixingSubtypes']['includes'](_0x1eacb3)&&this['_tableSuggestions']['add'](_0x242447);}},{'priority':'low'});const _0x1be908=(_0x47b1b2,_0x84780f)=>{let _0x175a48=!0x1;const _0x46b7e5=_0x84780f['createRangeOn'](_0x47b1b2),_0x40be27=_0x47b1b2['findAncestor']('table'),_0x184752=_0x2a12d3['getCellLocation'](_0x47b1b2);for(const _0x4a8398 of this['_tableSuggestions']){const _0x4dd147=_0x4a8398['subType'],_0x31e371=_0x4dd147['startsWith']('tablePaste'),_0x4df870=_0x4dd147['substr'](_0x31e371?0xa:0x5),_0x13186c=_0x4df870['toLowerCase'](),_0x3411a6=_0x13186c['substr'](0x0,0x3)+'span',_0x1c182a='min'+_0x4df870,_0x47ba72='max'+_0x4df870;if(!_0x4a8398['isInContent'])continue;if(_0x40be27!=_0x4a8398['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4a8398['isIntersectingWithRange'](_0x46b7e5))continue;const _0x371b88=_0x47b1b2['hasAttribute'](_0x3411a6)?_0x47b1b2['getAttribute'](_0x3411a6)-0x1:0x0,_0x3e7ff1=this['_getSuggestionCoords'](_0x4a8398),_0x59e706=_0x3e7ff1[_0x1c182a],_0x29a803=_0x3e7ff1[_0x47ba72];_0x59e706<=_0x184752[_0x13186c]&&_0x184752[_0x13186c]+_0x371b88<=_0x29a803&&(_0x4a8398['addRange'](_0x46b7e5),_0x175a48=!0x0);}return _0x175a48;};_0x4cb4ab['model']['document']['registerPostFixer'](_0x569dcc=>{let _0x3ff87b=!0x1;for(const _0x15732f of _0x4cb4ab['model']['document']['differ']['getChanges']())if('insert'==_0x15732f['type']){if('tableRow'==_0x15732f['name']){for(const _0x34a0d0 of _0x15732f['position']['nodeAfter']['getChildren']())_0x3ff87b=_0x3ff87b||_0x1be908(_0x34a0d0,_0x569dcc);}else'tableCell'==_0x15732f['name']&&(_0x3ff87b=_0x3ff87b||_0x1be908(_0x15732f['position']['nodeAfter'],_0x569dcc));}return _0x3ff87b;});}['_getSuggestionCoords'](_0x27869b){return this['_getCoordsForCells'](_0x27869b['getRanges']()['map'](_0x107832=>_0x107832['start']['nodeAfter']));}};function De(_0x35ec39){return Array['from'](new Set(_0x35ec39)['values']());}var Ue=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x2919db=this['editor'],_0x3a7013=_0x2919db['model']['document']['selection'],_0xdbacef=_0x2919db['locale'];if(!_0x2919db['plugins']['has']('TableEditing'))return;const _0x5de081=_0x2919db['plugins']['get']('TrackChangesEditing'),_0x151a9c=_0x2919db['plugins']['get']('TableUtils'),_0x21d009=_0x2919db['plugins']['get'](ve);_0x21d009['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5de081['enableCommand']('mergeTableCells',()=>{const _0x4e9817=_0x151a9c['getSelectionAffectedTableCells'](_0x2919db['model']['document']['selection']);_0x2919db['model']['change'](()=>{_0x5de081['markMultiRangeBlockFormat'](_0x4e9817,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2919db['commands']['get']('mergeTableCells')['on']('execute',(_0x569b8e,_0xc82b1f)=>{_0x2919db['commands']['get']('trackChanges')['value']&&(_0xc82b1f['length']>0x0&&_0xc82b1f[_0xc82b1f['length']-0x1]&&_0xc82b1f[_0xc82b1f['length']-0x1]['forceDefaultExecution']||_0x5de081['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x569b8e['stop']());},{'priority':'highest'});for(const _0x39763a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24bf34=_0x2919db['commands']['get'](_0x39763a);_0x5de081['enableCommand'](_0x39763a,()=>{const _0x2cb269=_0x2919db['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x93b472=>_0x93b472['is']('element','tableCell')),_0x10290a=_0x24bf34['value'];_0x2919db['model']['change'](()=>{_0x5de081['markMultiRangeBlockFormat']([_0x2cb269,_0x10290a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55a042 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57751f=_0x2919db['commands']['get'](_0x55a042);_0x5de081['enableCommand'](_0x55a042,()=>{const _0xd9e48e=_0x151a9c['getSelectionAffectedTableCells'](_0x2919db['model']['document']['selection'])[0x0],_0x1fc241=_0xd9e48e['findAncestor']('table'),{column:_0x3f3376,row:_0x29d900}=_0x151a9c['getCellLocation'](_0xd9e48e);let _0x4c1f4d=[];if('horizontally'==_0x57751f['direction']){const _0x3fe573=_0x151a9c['createTableWalker'](_0x1fc241,{'startRow':_0x29d900,'endRow':_0x29d900,'includeAllSlots':!0x0});_0x4c1f4d=Array['from'](_0x3fe573)['map'](_0x4d8251=>_0x4d8251['cell']);}else{const _0xe0865f=_0x151a9c['createTableWalker'](_0x1fc241,{'column':_0x3f3376,'includeAllSlots':!0x0});_0x4c1f4d=Array['from'](_0xe0865f)['map'](_0xe1070a=>_0xe1070a['cell']);}_0x2919db['model']['change'](_0x2928b4=>{_0x5de081['markBlockFormat'](_0x2928b4['createRangeOn'](_0xd9e48e),{'commandName':_0x55a042,'commandParams':[]},_0x4c1f4d,_0x55a042);});});}_0x5de081['descriptionFactory']['registerDescriptionCallback'](_0x181456=>{if('formatBlock'!=_0x181456['type']&&'formatInline'!=_0x181456['type'])return;const {data:_0x206621}=_0x181456;return _0x206621&&'mergeTableCells'==_0x206621['commandName']?{'type':'format','content':St(_0xdbacef,'*Merge\x20cells*')}:void 0x0;}),_0x5de081['descriptionFactory']['registerDescriptionCallback'](_0xb254b5=>{if('formatBlock'!=_0xb254b5['type']&&'formatInline'!=_0xb254b5['type'])return;const {data:_0x194d0e}=_0xb254b5;return _0x194d0e?'splitTableCellVertically'==_0x194d0e['commandName']?{'type':'format','content':St(_0xdbacef,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x194d0e['commandName']?{'type':'format','content':St(_0xdbacef,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x6e7294=_0x21d009['_acceptFormatSuggestionCallbackFactory']();for(const _0xd4185f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5de081['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd4185f,'accept',_0x6e7294);for(const _0x115fc2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5de081['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x115fc2,'accept',_0x6e7294);_0x5de081['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x72ff8b=>{_0x2919db['model']['change'](_0x45a227=>{const _0xd812aa=Array['from'](_0x3a7013['getRanges']())['map'](_0x2fdbde=>rt['fromRange'](_0x2fdbde));_0x45a227['setSelection'](_0x72ff8b),_0x2919db['commands']['get']('mergeTableCells')['refresh'](),_0x2919db['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x500804=_0xd812aa['filter'](_0x5039e8=>'$graveyard'!=_0x5039e8['root']['rootName']);_0x500804['length']>0x0&&_0x45a227['setSelection'](_0x500804);for(const _0x392ec7 of _0xd812aa)_0x392ec7['detach']();});});for(const _0x4edb34 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c7684=_0x2919db['commands']['get'](_0x4edb34);_0x3c7684['on']('set:isEnabled',(_0xed13f7,_0x1a81b2,_0x3a10c7)=>{if(_0x3a10c7){const _0x4a9cdc=_0x2919db['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd5b23=>_0xd5b23['is']('element','tableCell'));this['_areMergableCells'](_0x3c7684['value'],_0x4a9cdc)||(_0xed13f7['return']=!0x1,_0xed13f7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3cb301=this['editor']['commands']['get']('mergeTableCells'),_0x1f6ca1=this['editor']['plugins']['get']('TableUtils');if(!_0x3cb301['isEnabled'])return!0x1;const _0x4ae060=_0x1f6ca1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5bd7bf of _0x4ae060)for(const _0x137234 of _0x4ae060)if(_0x5bd7bf!=_0x137234&&!this['_areMergableCells'](_0x5bd7bf,_0x137234))return!0x1;return!0x0;}['_areMergableCells'](_0x138ab4,_0x1781d0){const _0x1f1066=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bc72e=this['editor']['model']['createRangeOn'](_0x138ab4),_0x2253cd=this['editor']['model']['createRangeOn'](_0x1781d0),_0x36b463=new Set(),_0x2cde2e=new Set();for(const _0x212005 of _0x1f1066['getSuggestions']())if(('insertion'==_0x212005['type']||'deletion'==_0x212005['type']||'mergeTableCells'==_0x212005['subType'])&&_0x212005['isInContent']){for(const _0x35c554 of _0x212005['getRanges']())_0x35c554['containsRange'](_0x3bc72e,!0x0)&&_0x36b463['add'](_0x212005['type']+':'+_0x212005['author']['id']),_0x35c554['containsRange'](_0x2253cd,!0x0)&&_0x2cde2e['add'](_0x212005['type']+':'+_0x212005['author']['id']);}if(_0x36b463['size']!=_0x2cde2e['size'])return!0x1;for(const _0x302ed0 of _0x36b463)if(!_0x2cde2e['has'](_0x302ed0))return!0x1;return!0x0;}},Pe=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x1e37e9=this['editor'];if(!_0x1e37e9['plugins']['has']('TableEditing'))return;const _0xbbd276=_0x1e37e9['locale'],_0x34de16=_0x1e37e9['plugins']['get']('TrackChangesEditing');_0x34de16['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x34de16['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x34de16['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0xbbd276,'FORMAT_HEADER_ROW')),_0x34de16['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0xbbd276,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e82f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2988a7=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x1e82f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2988a7),_0x1e82f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2988a7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x12ac50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x539b7b=this['editor']['plugins']['get']('TableUtils');function _0x2da09f({showActiveMarker:_0xd7bd81=!0x0,setDataAttribute:_0x90b087=!0x0}={}){return(_0x2bb5c2,_0x4fd513,_0x1a97b8)=>{const {type:_0x43b1be,id:_0x5f27eb}=tt(_0x4fd513['markerName']);if(!_0x12ac50['hasSuggestion'](_0x5f27eb))return;const _0x35f897=_0x12ac50['getSuggestion'](_0x5f27eb),_0x7b820a=_0x35f897['data'];if('formatBlock'!=_0x35f897['type']||!_0x7b820a||'setTableColumnHeader'!=_0x7b820a['commandName'])return;if(_0x4fd513['item'])return void _0x2bb5c2['stop']();if(!_0x1a97b8['consumable']['consume'](_0x4fd513['markerRange'],_0x2bb5c2['name']))return;const _0xfdba6f=_0x4fd513['markerRange']['start']['nodeAfter'],_0x4baca6=_0x4fd513['markerRange']['end']['nodeBefore'],_0x49ccf4=_0xfdba6f['parent']['parent'],{column:_0x4a636f}=_0x539b7b['getCellLocation'](_0xfdba6f),{column:_0x2b0377}=_0x539b7b['getCellLocation'](_0x4baca6);for(let _0x4be09f=_0x4a636f;_0x4be09f<=_0x2b0377;_0x4be09f++){const _0x248441=_0x539b7b['createTableWalker'](_0x49ccf4,{'column':_0x4be09f,'includeAllSlots':!0x1});for(const _0x3c9772 of _0x248441){const _0x4028ae=_0x3c9772['cell'],_0x43877d=_0x1a97b8['mapper']['toViewElement'](_0x4028ae);_0x1a97b8['writer']['addClass']('ck-suggestion-marker-'+_0x43b1be,_0x43877d),_0x90b087&&_0x1a97b8['writer']['setAttribute']('data-suggestion',_0x5f27eb,_0x43877d),_0x1a97b8['mapper']['bindElementToMarker'](_0x43877d,_0x4fd513['markerName']),_0xd7bd81&&(_0x12ac50['activeMarkers']['includes'](_0x4fd513['markerName'])?_0x1a97b8['writer']['addClass']('ck-suggestion-marker--active',_0x43877d):_0x1a97b8['writer']['removeClass']('ck-suggestion-marker--active',_0x43877d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2da09f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x510ad2,_0x149890,_0x326d7d)=>{_0x326d7d['options']['showSuggestionHighlights']&&_0x2da09f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x510ad2,_0x149890,_0x326d7d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x39330a,_0x4f44ae,_0x56a433)=>{const {type:_0x595a5b,id:_0x2f35d8}=tt(_0x4f44ae['markerName']);if(!_0x12ac50['hasSuggestion'](_0x2f35d8))return;const _0x5cd598=_0x12ac50['getSuggestion'](_0x2f35d8),_0x285c7f=_0x5cd598['data'];if('formatBlock'!=_0x5cd598['type']||!_0x285c7f||'setTableColumnHeader'!=_0x285c7f['commandName'])return;const _0x2f51cd=_0x56a433['mapper']['markerNameToElements'](_0x4f44ae['markerName']);if(_0x2f51cd){for(const _0x5ee99e of _0x2f51cd)_0x56a433['writer']['removeClass']('ck-suggestion-marker-'+_0x595a5b,_0x5ee99e),_0x56a433['writer']['removeClass']('ck-suggestion-marker--active',_0x5ee99e),_0x56a433['writer']['removeAttribute']('data-suggestion',_0x5ee99e),_0x56a433['mapper']['unbindElementFromMarkerName'](_0x5ee99e,_0x4f44ae['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4cf24f=this['editor'],_0x1ecdc4=_0x4cf24f['locale'];function _0x3c5d24(_0x1abb93){return{'type':'format','content':St(_0x1ecdc4,'*Format:*\x20%0',_0x1abb93)};}_0x4cf24f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5ac2=>{if('formatBlock'!=_0x2b5ac2['type'])return;const {data:_0x50fba1}=_0x2b5ac2;return _0x50fba1?'setTableRowHeader'==_0x50fba1['commandName']?_0x50fba1['commandParams'][0x0]['forceValue']?_0x3c5d24(St(_0x1ecdc4,'FORMAT_HEADER_ROW')):_0x3c5d24(St(_0x1ecdc4,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x50fba1['commandName']?_0x50fba1['commandParams'][0x0]['forceValue']?_0x3c5d24(St(_0x1ecdc4,'FORMAT_HEADER_COLUMN')):_0x3c5d24(St(_0x1ecdc4,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x1a5db9=this['editor'];if(!_0x1a5db9['plugins']['has']('TableEditing')||!_0x1a5db9['config']['get']('table.enableFooters'))return;const _0x21f451=_0x1a5db9['locale'],_0x25433b=_0x1a5db9['plugins']['get']('TrackChangesEditing');_0x25433b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x25433b['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x21f451,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x2dafdc{['afterInit'](){const _0x35950e=this['editor'],_0x4d875a=_0x35950e['locale'],_0xe0e2fd=_0x35950e['plugins']['get']('TrackChangesEditing');function _0xbbe66(_0x4761d0){return{'type':'format','content':''+St(_0x4d875a,'*Set\x20table\x20type:*\x20%0',_0x4761d0)};}_0x35950e['plugins']['has']('TableLayout')&&(_0xe0e2fd['enableCommand']('insertTableLayout'),_0xe0e2fd['enableDefaultAttributesIntegration']('tableType'),_0xe0e2fd['descriptionFactory']['registerElementLabel'](_0x441dbc=>_0x441dbc['is']('element','table')&&'layout'===_0x441dbc['getAttribute']('tableType'),_0x398b14=>St(_0x4d875a,'ELEMENT_LAYOUT_TABLE',_0x398b14)),_0xe0e2fd['descriptionFactory']['registerDescriptionCallback'](_0x5c9656=>{const {data:_0x5353f9}=_0x5c9656;if(_0x5353f9&&'tableType'==_0x5353f9['key'])switch(_0x5353f9['newValue']){case'layout':return _0xbbe66(St(_0x4d875a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xbbe66(St(_0x4d875a,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](He['map'](_0x425796=>[_0x425796,null]));var Ve=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x1c696b=this['editor'];if(!_0x1c696b['plugins']['has']('TableClipboard'))return;const _0x572856=_0x1c696b['plugins']['get']('TrackChangesEditing'),_0x45bd14=_0x1c696b['plugins']['get']('TableUtils'),_0x4c9ff7=_0x1c696b['plugins']['get'](ve),_0x1aa6ca=_0x1c696b['plugins']['get']('TableClipboard'),_0x55969a=_0x1c696b['plugins']['get']('TableSelection'),_0x5baf05=_0x1c696b['plugins']['get'](mt);_0x4c9ff7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1c696b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1c696b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x211aff=null,_0x4a3f01=!0x1;_0x5baf05['on']('contentInsertion',(_0x121edd,_0x173c3d)=>{_0x4a3f01='paste'===_0x173c3d['method'];}),_0x1c696b['model']['on']('insertContent',(_0x14db23,_0x15f3d8)=>{if(!_0x4a3f01&&null===_0x55969a['getSelectedTableCells']())return;const [_0xb7f6f9,_0x203e86]=_0x15f3d8,_0x4a3333=_0x15f3d8[_0x15f3d8['length']-0x1];_0x4a3333&&_0x4a3333['forceDefaultExecution']||_0x572856['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3223b4,_0x24c40c,_0x4ebcbe,_0x2fca46,_0x23973c){if(_0x24c40c&&!_0x24c40c['is']('documentSelection'))return!0x1;const _0x5c09cf=_0x23973c['getTableIfOnlyTableInContent'](_0x3223b4,_0x4ebcbe);if(!_0x5c09cf||!je(_0x5c09cf,void 0x0,_0x2fca46))return!0x1;const _0x54bb18=_0x2fca46['getSelectionAffectedTableCells'](_0x4ebcbe['document']['selection']);if(!_0x54bb18['length'])return!0x1;const _0x3ad486=_0x54bb18[0x0]['findAncestor']('table'),_0x349907=_0x2fca46['getRowIndexes'](_0x54bb18),_0x25fe4a=_0x2fca46['getColumnIndexes'](_0x54bb18),_0x37e2f9={'startRow':_0x349907['first'],'endRow':_0x349907['last'],'startColumn':_0x25fe4a['first'],'endColumn':_0x25fe4a['last']};return 0x1==_0x54bb18['length']&&(_0x37e2f9['endRow']+=_0x2fca46['getRows'](_0x5c09cf)-0x1,_0x37e2f9['endColumn']+=_0x2fca46['getColumns'](_0x5c09cf)-0x1),je(_0x3ad486,_0x37e2f9,_0x2fca46);}(_0xb7f6f9,_0x203e86,_0x1c696b['model'],_0x45bd14,_0x1aa6ca)&&(_0x14db23['stop'](),_0x211aff={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1c696b['model']['change'](()=>{_0x1c696b['model']['insertContent'](_0x15f3d8[0x0],_0x15f3d8[0x1],_0x15f3d8[0x2],{'forceDefaultExecution':!0x0});const _0x3859bb=_0x24c80d(),{rowInsertionRanges:_0x3abb68,columnInsertionRanges:_0x5b48c2,insertionRanges:_0x5ababa,deletionRanges:_0x59f952,cells:_0x2ffe87}=_0x211aff;_0x3abb68['length']&&_0x572856['markMultiRangeInsertion'](_0x3abb68,'tablePasteRow',{'tablePasteChainId':_0x3859bb}),_0x5b48c2['length']&&_0x572856['markMultiRangeInsertion'](_0x5b48c2,'tablePasteColumn',{'tablePasteChainId':_0x3859bb}),_0x5ababa['length']&&(_0x572856['markMultiRangeInsertion'](_0x5ababa,'tablePaste',{'tablePasteChainId':_0x3859bb,'skipNestingCheck':!0x0}),_0x5ababa['forEach'](_0x377b12=>_0x377b12['detach']?.())),_0x59f952['length']&&(_0x572856['markMultiRangeDeletion'](_0x59f952,'tablePaste',{'tablePasteChainId':_0x3859bb,'skipNestingCheck':!0x0}),_0x59f952['forEach'](_0x39ecff=>_0x39ecff['detach']?.()));const _0x1b7d34=_0x572856['markMultiRangeBlockFormat'](_0x2ffe87['map'](({element:_0x542a72})=>_0x542a72),{'formatGroupId':_0x24c80d()},[],'tablePasteCell',{'tablePasteChainId':_0x3859bb});if(_0x1b7d34){const _0x3ebddc=_0x1b7d34['getMarkers'](),_0x3fddd7=[];for(const {element:_0x5f1993,attributes:_0x318255}of _0x2ffe87){if(!_0x318255)continue;const _0x181c06=_0x1c696b['model']['createRangeOn'](_0x5f1993),_0x5a4430=_0x3ebddc['find'](_0x13ad3d=>_0x13ad3d['getRange']()['isEqual'](_0x181c06));_0x5a4430&&_0x3fddd7['push']([_0x5a4430['name'],_0x318255]);}_0x3fddd7['length']&&_0x1b7d34['setAttribute']('markerAttributes',Object['fromEntries'](_0x3fddd7));}_0x211aff=null;}));},{'priority':_0x5eb1e0['high']+0xa}),_0x5baf05['on']('contentInsertion',()=>{_0x4a3f01=!0x1;},{'priority':'lowest'}),_0x1c696b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24b60b,_0x5e01b9)=>{const [_0x4ae624,_0x1a0623,,_0x250ea4]=_0x5e01b9;if(!_0x211aff)return;_0x24b60b['stop']();const _0x2ef12f=_0x4ae624['cell'],_0x4677e3=_0x1a0623,_0x4ce99a=We(_0x2ef12f),_0x32b5a1=We(_0x4677e3);_0x24b60b['return']=_0x2ef12f;let _0x53f4be=null,_0x5bb930=null;if(_0x32b5a1||_0x4ce99a){if(_0x4ce99a&&!_0x32b5a1){_0x250ea4['remove'](_0x2ef12f['getChild'](0x0));for(const _0x524c6b of Array['from'](_0x4677e3['getChildren']()))_0x250ea4['insert'](_0x524c6b,_0x2ef12f,'end');const _0x543b2d=_0x211aff['rowInsertionIndexes']['includes'](_0x4ae624['row']),_0x9d7d9=_0x211aff['columnInsertionIndexes']['includes'](_0x4ae624['column']);_0x543b2d||_0x9d7d9||(_0x53f4be=rt['fromRange'](_0x250ea4['createRangeIn'](_0x2ef12f)));}else _0x32b5a1&&!_0x4ce99a&&(_0x5bb930=_0x250ea4['createRangeIn'](_0x2ef12f));}else{const _0x2e2e38=_0x250ea4['createElement']('tableCellSuggestion'),_0x746015=_0x250ea4['createElement']('tableCellSuggestion');_0x250ea4['wrap'](_0x250ea4['createRangeIn'](_0x2ef12f),_0x746015),_0x250ea4['insert'](_0x2e2e38,_0x2ef12f,0x0);for(const _0x3616f0 of Array['from'](_0x4677e3['getChildren']()))_0x250ea4['insert'](_0x3616f0,_0x2e2e38,'end');_0x53f4be=rt['fromRange'](_0x250ea4['createRangeOn'](_0x2e2e38)),_0x5bb930=rt['fromRange'](_0x250ea4['createRangeOn'](_0x746015));}const _0x45d752=Array['from'](_0x4677e3['getAttributes']())['filter'](([_0x39d895])=>He['includes'](_0x39d895));_0x211aff['cells']['push']({'element':_0x2ef12f,'attributes':_0x45d752['length']?Object['fromEntries'](_0x45d752):null}),_0x53f4be&&_0x211aff['insertionRanges']['push'](_0x53f4be),_0x5bb930&&_0x211aff['deletionRanges']['push'](_0x5bb930);},{'priority':'high'}),_0x45bd14['on']('insertColumns',(_0x985065,_0x331a1c)=>{const [_0x244f58,_0x39ca44={}]=_0x331a1c;if(!_0x211aff)return;const _0xbd2069=_0x39ca44['at']||0x0,_0x2547dd=_0x39ca44['columns']||0x1;_0x211aff['columnInsertionIndexes']=new Array(_0x2547dd)['fill'](_0xbd2069)['map']((_0x1c569f,_0x3a72e3)=>_0x1c569f+_0x3a72e3);for(const {cell:_0x11d69a}of _0x45bd14['createTableWalker'](_0x244f58,{'startColumn':_0xbd2069,'endColumn':_0xbd2069+_0x2547dd-0x1}))_0x211aff['columnInsertionRanges']['push'](_0x1c696b['model']['createRangeOn'](_0x11d69a));},{'priority':'low'}),_0x45bd14['on']('insertRows',(_0x4d3953,_0x25bd2c)=>{const [_0x572629,_0x220d2f={}]=_0x25bd2c;if(!_0x211aff)return;const _0x15c8a4=_0x220d2f['at']||0x0,_0x41eb77=_0x220d2f['rows']||0x1;_0x211aff['rowInsertionIndexes']=new Array(_0x41eb77)['fill'](_0x15c8a4)['map']((_0x93c67,_0x2b7fa8)=>_0x93c67+_0x2b7fa8);for(const {cell:_0x4b1d25}of _0x45bd14['createTableWalker'](_0x572629,{'startRow':_0x15c8a4,'endRow':_0x15c8a4+_0x41eb77-0x1}))_0x211aff['rowInsertionRanges']['push'](_0x1c696b['model']['createRangeOn'](_0x4b1d25));},{'priority':'low'}),_0x572856['descriptionFactory']['registerDescriptionCallback'](_0x3b3334=>{if(_0x3b3334['subType']&&_0x3b3334['subType']['startsWith']('tablePaste'))return _0x3b3334['previous']?{}:{'type':'insertion','content':St(_0x1c696b['locale'],'*Replace\x20table\x20cells*')};});const _0x133f77=()=>!0x1;for(const _0x4771e7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x572856['_suggestionFactory']['registerCustomCallback']('insertion',_0x4771e7,'join',_0x133f77),_0x572856['_suggestionFactory']['registerCustomCallback']('deletion',_0x4771e7,'join',_0x133f77),_0x572856['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4771e7,'join',_0x133f77);_0x572856['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x133f77),_0x572856['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x408db1,_0x23eb9e,_0x55aa06)=>{const _0x83c235=_0x408db1['map'](_0x4d7287=>_0x4d7287['getContainedElement']())['filter'](_0x10f7b5=>_0x10f7b5),_0x142494=new Map(_0x83c235['map'](_0x12fb87=>[_0x12fb87,null]));if(_0x211aff){for(const {element:_0x263e89,attributes:_0x3abaf2}of _0x211aff['cells'])_0x3abaf2&&_0x142494['set'](_0x263e89,_0x3abaf2);}else{if(_0x55aa06&&_0x55aa06['markerAttributes'])for(const [_0x8ea9fa,_0x377d5a]of Object['entries'](_0x55aa06['markerAttributes'])){const _0x3382c0=_0x1c696b['model']['markers']['get'](_0x8ea9fa),_0x3f33d0=_0x3382c0?_0x3382c0['getRange']()['getContainedElement']():null;_0x3f33d0&&_0x142494['set'](_0x3f33d0,_0x377d5a);}}_0x1c696b['model']['change'](_0x3a925e=>{for(const [_0x2c3635,_0x2bb9bc]of _0x142494)_0x3a925e['setAttributes']({...$e,..._0x2bb9bc},_0x2c3635);});});const _0x27a52b=(_0x28541e,_0x451b45)=>{_0x572856['_suggestionFactory']['registerCustomCallback'](_0x28541e,'tablePaste',_0x451b45,(_0x34d6c2,_0x4d109a,_0x411e79)=>{_0x1c696b['model']['change'](_0x51270b=>{const _0x1c55c8=[];for(const _0x140b85 of _0x34d6c2){const _0x5cae03=_0x140b85['start']['nodeAfter'];_0x5cae03['is']('element','tableCellSuggestion')&&_0x1c55c8['push'](_0x5cae03);}_0x572856['_suggestionFactory']['getSuggestionCallback'](_0x28541e,null,_0x451b45)(_0x34d6c2,_0x4d109a,_0x411e79);for(const _0xa8e824 of _0x1c55c8)'$graveyard'!=_0xa8e824['root']['rootName']&&_0x51270b['unwrap'](_0xa8e824);});});};_0x27a52b('insertion','accept'),_0x27a52b('insertion','discard'),_0x27a52b('deletion','accept'),_0x27a52b('deletion','discard'),_0x572856['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2c833f=>{const _0x131f32=_0x2c833f['map'](_0x2384b1=>_0x2384b1['getContainedElement']()),_0x1396db=_0x131f32[0x0]['findAncestor']('table'),{minRow:_0x58223c,maxRow:_0x401be0}=_0x4c9ff7['_getCoordsForCells'](_0x131f32);_0x45bd14['removeRows'](_0x1396db,{'at':_0x58223c,'rows':_0x401be0-_0x58223c+0x1});}),_0x572856['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x56e19d=>{const _0x40b601=_0x56e19d['map'](_0xd5e859=>_0xd5e859['getContainedElement']()),_0xb81c62=_0x40b601[0x0]['findAncestor']('table'),{minColumn:_0x1831e7,maxColumn:_0x26187a}=_0x4c9ff7['_getCoordsForCells'](_0x40b601);_0x45bd14['removeColumns'](_0xb81c62,{'at':_0x1831e7,'columns':_0x26187a-_0x1831e7+0x1});});const _0x586ba9=(_0x44b088,_0x20cbed)=>{if(!_0x20cbed['subType']||!_0x20cbed['subType']['startsWith']('tablePaste'))return;const _0x4ba7b1=_0x20cbed['attributes']['tablePasteChainId'],_0x2b0d06=_0x572856['getSuggestions']()['filter'](_0x3e4120=>_0x3e4120['isInContent']&&_0x3e4120['attributes']&&_0x3e4120['attributes']['tablePasteChainId']==_0x4ba7b1);_0x2b0d06['length']&&_0x20cbed['getAllAdjacentSuggestions']()['length']!=_0x2b0d06['length']&&_0x2b0d06['reduce']((_0x12a78d,_0x186e7b)=>(_0x12a78d['next']=_0x186e7b,_0x186e7b['previous']=_0x12a78d,_0x186e7b));};function _0x71ef48(_0x1877e4,_0x3e7b7c=!0x0){const {id:_0x2f5fb3,authorId:_0x596b0a}=tt(_0x1877e4['markerName']),_0x3ebf3a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x50ecd5=_0x572856['activeMarkers']['includes'](_0x1877e4['markerName']);return _0x50ecd5&&_0x3ebf3a['push']('ck-suggestion-marker--active'),{'classes':_0x3ebf3a,'attributes':{'data-suggestion':_0x2f5fb3,'data-author-id':_0x596b0a},'priority':_0x50ecd5&&_0x3e7b7c?0xbc2:0xbb8};}_0x572856['on']('suggestionLoaded',_0x586ba9,{'priority':'high'}),_0x572856['on']('suggestionUnloaded',_0x586ba9,{'priority':'high'}),_0x1c696b['model']['document']['registerPostFixer'](()=>{let _0x37d59d=!0x1;const _0x14ee9e=Array['from'](_0x1c696b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x507055,data:_0x5acee4}of _0x14ee9e){const {group:_0x12935e,type:_0xdb0884,id:_0x25d90e}=tt(_0x507055);if('suggestion'!=_0x12935e||'deletion'!=_0xdb0884||_0x5acee4['oldRange'])continue;if(!_0x572856['hasSuggestion'](_0x25d90e))continue;const _0x2c7a71=_0x572856['getSuggestion'](_0x25d90e)['getRanges'](),_0x5c536a=_0x1c696b['plugins']['get']('Users')['me'];for(const _0x38b76f of _0x572856['getSuggestions']())if(_0x38b76f['isInContent']&&_0x38b76f['author']==_0x5c536a&&'formatBlock'==_0x38b76f['type']&&'tablePasteCell'==_0x38b76f['subType']&&_0x38b76f['getRanges']()['every'](_0x3ab80f=>_0x2c7a71['some'](_0x5467c6=>_0x5467c6['containsRange'](_0x3ab80f,!0x0)))){for(const _0x31e178 of _0x38b76f['getAllAdjacentSuggestions']())_0x31e178['isInContent']&&(_0x31e178['discard'](),_0x37d59d=!0x0);}}return _0x37d59d;}),_0x1c696b['model']['document']['registerPostFixer'](_0x54f990=>{const _0x577bbd=_0x1c696b['commands']['get']('redo');if(!_0x577bbd||!_0x577bbd['_createdBatches']['has'](_0x54f990['batch']))return!0x1;let _0xa83b87=!0x1;const _0x4a2eb8=_0x1c696b['plugins']['get']('Users')['me'],_0x5e7a0c=_0x1c696b['model']['document']['differ']['getChanges'](),_0x3d3b39=Array['from'](_0x1c696b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb0367b,data:_0x56ee5f})=>{const {group:_0x494230,subType:_0x35b47a,authorId:_0x69e8f6}=tt(_0xb0367b);return'suggestion'==_0x494230&&'tablePaste'==_0x35b47a&&_0x69e8f6==_0x4a2eb8['id']&&!_0x56ee5f['oldRange'];});for(const _0x4289a9 of _0x5e7a0c){if('insert'!=_0x4289a9['type']||'tableCellSuggestion'!=_0x4289a9['name']||0x1!=_0x4289a9['length'])continue;const _0x1a754f=_0x54f990['createRange'](_0x4289a9['position'],_0x4289a9['position']['getShiftedBy'](0x1));if(!_0x3d3b39['find'](({data:_0x44efb7})=>_0x44efb7['newRange']['isEqual'](_0x1a754f))){for(const {name:_0x5b89a4,data:_0x314988}of _0x3d3b39)if(_0x1a754f['containsRange'](_0x314988['newRange'])){_0x54f990['updateMarker'](_0x5b89a4,{'range':_0x1a754f}),_0xa83b87=!0x0;break;}}}return _0xa83b87;}),_0x1c696b['model']['document']['registerPostFixer'](_0x33eba0=>{let _0xddc254=!0x1;const _0x22b7ed=_0x1c696b['plugins']['get']('Users')['me'],_0x428e2f=_0x572856['getSuggestions']()['filter'](_0xb3b282=>_0xb3b282['isInContent']&&_0xb3b282['author']==_0x22b7ed),_0x30bbff=new Set(),_0x18b3a9=new Set();for(const _0x499d26 of _0x428e2f)if('tablePaste'==_0x499d26['subType'])for(const _0x41b918 of _0x499d26['getMarkers']()){const _0x1411fb=_0x41b918['getRange']()['getContainedElement']();if(_0x1411fb){if(_0x1411fb['is']('element','tableCellSuggestion')&&We(_0x1411fb)){_0x499d26['removeMarker'](_0x41b918['name']),_0x30bbff['add'](_0x1411fb),_0xddc254=!0x0;const _0xe48fe=_0x1411fb['nextSibling'],_0x1ad9e7=_0x1411fb['previousSibling'],_0x357366=_0xe48fe&&_0xe48fe['is']('element','tableCellSuggestion'),_0x2d9674=_0x1ad9e7&&_0x1ad9e7['is']('element','tableCellSuggestion');_0x357366&&!_0x30bbff['has'](_0xe48fe)&&_0x18b3a9['add'](_0xe48fe),_0x2d9674&&!_0x30bbff['has'](_0x1ad9e7)&&_0x18b3a9['add'](_0x1ad9e7);}else _0x1411fb['is']('element','paragraph')&&_0x1411fb['isEmpty']&&(_0x499d26['removeMarker'](_0x41b918['name']),_0xddc254=!0x0);}}else{if('tablePasteCell'==_0x499d26['subType']){if(!_0x499d26['attributes']||!_0x499d26['attributes']['tablePasteChainId'])continue;const _0x552390=_0x499d26['attributes']['markerAttributes'];if(_0x552390&&Object['keys'](_0x552390)['length'])continue;const _0x250e40=_0x499d26['attributes']['tablePasteChainId'];let _0x584122=!0x0,_0x2d462d=!0x0;for(const _0x3591da of _0x428e2f)if(_0x3591da['subType']&&_0x3591da['subType']['startsWith']('tablePaste')){if(!_0x3591da['attributes']['tablePasteChainId']){_0x2d462d=!0x1;break;}if(_0x3591da['id']!=_0x499d26['id']&&_0x3591da['attributes']['tablePasteChainId']==_0x250e40){_0x584122=!0x1;break;}}_0x2d462d&&_0x584122&&(_0x499d26['removeMarkers'](),_0xddc254=!0x0);}}for(const _0xefd95b of _0x30bbff)_0x33eba0['remove'](_0xefd95b);for(const _0x5eb023 of _0x18b3a9)_0x33eba0['unwrap'](_0x5eb023);return _0xddc254;}),_0x1c696b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2c0c45=>_0x71ef48(_0x2c0c45),'converterPriority':'high'}),_0x1c696b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x17cad2,_0x3bb25c)=>_0x3bb25c['options']['showSuggestionHighlights']?_0x71ef48(_0x17cad2,!0x1):null,'converterPriority':'high'});const _0x10067f=_0x1c696b['editing']['view'];this['listenTo'](_0x10067f['document'],'clipboardOutput',(_0x3de581,_0x2a1ef6)=>{const _0x5e7d58=[];for(const _0x345a9d of _0x10067f['createRangeIn'](_0x2a1ef6['content'])['getItems']())_0x345a9d['is']('element','suggestion-td')&&_0x5e7d58['push'](_0x345a9d);_0x10067f['change'](_0x358231=>{for(const _0x2a4afe of _0x5e7d58)_0x358231['move'](_0x358231['createRangeIn'](_0x2a4afe),_0x358231['createPositionBefore'](_0x2a4afe)),_0x358231['remove'](_0x2a4afe);});});}};function We(_0x2b24b2){if(_0x2b24b2['isEmpty'])return!0x0;const _0x3ddf47=_0x2b24b2['getChild'](0x0);return _0x3ddf47['is']('element','paragraph')&&_0x3ddf47['isEmpty'];}function je(_0x8d0104,_0x6e74fb={},_0x30dabc){for(const {isAnchor:_0x5197b1,cellHeight:_0x5adacd,cellWidth:_0x3a3c1a}of _0x30dabc['createTableWalker'](_0x8d0104,{'includeAllSlots':!0x0,..._0x6e74fb}))if(!_0x5197b1||0x1!=_0x5adacd||0x1!=_0x3a3c1a)return!0x1;return!0x0;}var Ke=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3726aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3726aa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3726aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3726aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3726aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3726aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3726aa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x412a3b,_0xe29629){const _0x14821f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3499f1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1268d2=_0xe29629['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x49c81d=_0x3499f1['getColumnGroupElement'](_0x1268d2);let _0x53aac4=_0x49c81d?_0x3499f1['getTableColumnsWidths'](_0x49c81d):null,_0x61007f=_0x1268d2['getAttribute']('tableWidth')||null;const _0x2f416f=_0xe29629['tableWidth']||_0x61007f,_0x128be2=_0xe29629['columnWidths']||_0x53aac4,_0xc21713=this['editor']['plugins']['get']('Users')['me'];for(const _0x467c68 of _0x14821f['getSuggestions']()){const _0x397a90=_0x467c68['getContainedElement']();if('resizeTable'===_0x467c68['subType']&&_0x397a90===_0x1268d2){_0x467c68['author']!==_0xc21713&&_0x467c68['discard']();const _0x1da0d8=_0x467c68['data']['commandParams'];_0x61007f=_0x1da0d8[0x0]['tableWidth'],_0x53aac4=_0x1da0d8[0x0]['columnWidths'];break;}}_0x412a3b({'table':_0x1268d2,'tableWidth':_0x2f416f,'columnWidths':_0x128be2}),_0x14821f['markBlockFormat'](_0x1268d2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x61007f,'columnWidths':_0x53aac4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x164774){if('formatBlock'!=_0x164774['type']&&'formatInline'!=_0x164774['type'])return;const {data:_0x5c04a5}=_0x164774;return _0x5c04a5&&'resizeTable'===_0x5c04a5['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x2dafdc{['afterInit'](){const _0x3ce59a=this['editor'];_0x3ce59a['plugins']['has']('Template')&&_0x3ce59a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x2dafdc{['afterInit'](){const _0x4da92e=this['editor'];if(!_0x4da92e['commands']['get']('insertTableOfContents'))return;_0x4da92e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49e1d8=_0x4da92e['plugins']['get']('TrackChangesEditing'),_0x589e8a=_0x4da92e['locale'];_0x49e1d8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1164d0=>St(_0x589e8a,'ELEMENT_TABLE_OF_CONTENTS',_0x1164d0));}},qe=class extends _0x2dafdc{['afterInit'](){const _0x15e555=this['editor'];_0x15e555['plugins']['has']('Title')&&(_0x15e555['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x15e555['locale'],'ELEMENT_TITLE')),_0x15e555['model']['document']['registerPostFixer'](_0x20743d=>{let _0x2146a0=!0x1;const _0x4b75d2=Array['from'](_0x15e555['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55dca1,data:_0x61cae8}of _0x4b75d2){const {group:_0x5bcda8}=tt(_0x55dca1);if('suggestion'!==_0x5bcda8||!_0x61cae8['newRange'])continue;const _0x24c8dc=_0x61cae8['newRange'],_0x2e67b6=_0x24c8dc['end']['nodeBefore'];if(!_0x2e67b6||!_0x2e67b6['is']('element','title-content'))continue;if(!_0x24c8dc['start']['isTouching'](_0x24c8dc['end']))continue;const _0xe37a60=_0x15e555['model']['schema']['getNearestSelectionRange'](_0x24c8dc['end'],'forward');if(_0xe37a60&&_0xe37a60['isCollapsed']){const _0x1d522c=_0x20743d['createRange'](_0x24c8dc['start'],_0xe37a60['start']);_0x1d522c['isEqual'](_0x24c8dc)||(_0x20743d['updateMarker'](_0x55dca1,{'range':_0x1d522c}),_0x2146a0=!0x0);}_0x2146a0||(_0x20743d['removeMarker'](_0x55dca1),_0x2146a0=!0x0);}return _0x2146a0;}));}},Ye=class extends _0x2dafdc{['afterInit'](){const _0x19b8c2=this['editor'],_0x5c7bd4=_0x19b8c2['plugins']['get']('TrackChangesEditing');_0x19b8c2['plugins']['has']('Uploadcare')&&(_0x5c7bd4['enableCommand']('uploadcare'),_0x19b8c2['plugins']['has']('UploadcareImageEdit')&&(_0x5c7bd4['enableCommand']('uploadcareImageEdit'),_0x5c7bd4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5c7bd4['descriptionFactory']['registerDescriptionCallback'](_0x59d855=>{if('attribute'!=_0x59d855['type'])return;const {data:_0x26ba32}=_0x59d855;return _0x26ba32&&'uploadcareImageId'==_0x26ba32['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x2dafdc{['afterInit'](){const _0x1bad5f=this['editor'],_0xaf53a=_0x1bad5f['plugins']['get']('TrackChangesEditing');_0x1bad5f['plugins']['has']('UndoEditing')&&(_0xaf53a['enableCommand']('undo'),_0xaf53a['enableCommand']('redo'));}},Ze=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x531436=this['editor'];_0x531436['plugins']['has']('TableCaptionEditing')&&_0x531436['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x2dafdc{['tableProperties'];['tableCellProperties'];constructor(_0xfe120c){super(_0xfe120c),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 _0x7aca44=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e9209 of this['tableProperties'])_0x7aca44['enableCommand'](_0x1e9209,(_0x15ca19,_0x36f86b)=>{const _0x544e58=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e9209,[_0x544e58],this['tableProperties'],'tableProperties',_0x15ca19,_0x36f86b);});_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x7aca44['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x63903,_0x5e5d64)=>this['handleDiscardAction'](this['tableProperties'],_0x63903,_0x5e5d64)),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x244b19 of this['tableCellProperties'])this['editor']['commands']['get'](_0x244b19)&&_0x7aca44['enableCommand'](_0x244b19,(_0x421228,_0x3e76a2)=>{const _0x12a5dc=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x244b19,_0x12a5dc,this['tableCellProperties'],'tableCellProperties',_0x421228,_0x3e76a2);});_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x7aca44['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x252e42,_0x52aaf5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x252e42,_0x52aaf5)),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x7aca44['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x7aca44['descriptionFactory']['registerDescriptionCallback'](_0x86a670=>this['handleSuggestionDescription'](_0x86a670)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xca38c5,_0x2c3953,_0x4c2b96,_0x5142d6,_0x1831f3,_0xf1e33e){const _0x3536ca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xf1e33e['batch'],()=>{for(const _0x157c5d of _0x2c3953)if(this['_getSuggestion'](_0x157c5d,_0x5142d6))_0x1831f3(_0xf1e33e);else{const _0x4de847={};for(const _0x3e3df4 of _0x4c2b96){const _0x13662a=_0x157c5d['getAttribute'](_0x3e3df4);void 0x0!==_0x13662a&&(_0x4de847[_0x3e3df4]=_0x13662a);}_0x1831f3(_0xf1e33e),_0x3536ca['markBlockFormat'](_0x157c5d,{'commandParams':[_0x4de847]},[],_0x5142d6);}});}['handleDiscardAction'](_0xb69093,_0x38352c,_0xc3e5ce){const _0x56fcbf=_0x38352c[0x0]['start']['nodeAfter'],_0x40512e=_0xc3e5ce['commandParams'][0x0];this['editor']['model']['change'](_0x7a83b2=>{for(const _0x4e618b of _0xb69093)void 0x0!==_0x40512e[_0x4e618b]?_0x7a83b2['setAttribute'](_0x4e618b,_0x40512e[_0x4e618b],_0x56fcbf):_0x7a83b2['removeAttribute'](_0x4e618b,_0x56fcbf);});}['handleSuggestionDescription'](_0x5d6275){if(_0x5d6275['data'])switch(_0x5d6275['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x147b52,_0x571e52){const _0x4c85e1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x55aa0f of _0x4c85e1['getSuggestions']({'skipNotAttached':!0x0})){const _0x3b5d3e=_0x55aa0f['getContainedElement']();if(_0x55aa0f['subType']===_0x571e52&&_0x3b5d3e===_0x147b52)return _0x55aa0f;}return null;}['_registerTablePropertiesAttributes'](){const _0x2555c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26a054=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5cd645 of _0x26a054){const _0x5d15a0=_0x5cd645['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2555c9['descriptionFactory']['registerAttributeLabel'](_0x5cd645,St(this['editor']['locale'],'FORMAT_'+_0x5d15a0));}}},tn=class extends _0x2dafdc{['afterInit'](){const _0x5d82bc=this['editor'];if(!_0x5d82bc['plugins']['has']('LineHeight'))return;const _0x3f0904=_0x5d82bc['plugins']['get']('TrackChangesEditing'),_0x49de32=_0x5d82bc['locale'];_0x3f0904['enableDefaultAttributesIntegration']('lineHeight'),_0x3f0904['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x49de32,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x2dafdc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xe4cf4f,_0x4df9c4,_0x30610e,_0x1cc5ec,_0x30e621,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12cdfe){super(_0x12cdfe),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x14aaa1,_0x43d9e0,_0x57512a,_0x5cbb9d)=>{this['_model']['change'](()=>{for(const _0x27d99c of[..._0x5cbb9d,..._0x57512a])this['_model']['markers']['has'](_0x27d99c)&&_0x12cdfe['editing']['reconvertMarker'](_0x27d99c);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x12cdfe['plugins']['get'](_0xe4cf4f),this['_suggestionsConversion']=_0x12cdfe['plugins']['get'](_0x4df9c4),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x12cdfe['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x12cdfe['config']['get']('trackChanges.trackFormatChanges'),_0x12cdfe['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x12cdfe['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x12cdfe,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x14884b=this['editor'];_0x14884b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c5858,{writer:_0x583002})=>{let _0xa47217='suggestion:'+_0x1c5858['getAttribute']('suggestion-type')+':'+_0x1c5858['getAttribute']('id');return _0x1c5858['getAttribute']('marker-count')&&(_0xa47217+=':'+_0x1c5858['getAttribute']('marker-count')),_0x583002['createElement']('$marker',{'data-name':_0xa47217});}}),_0x14884b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x14884b['model']['document']['registerPostFixer'](_0x1b5170=>{let _0x13eb37=!0x1;const _0x23f4f1=Array['from'](_0x14884b['model']['document']['differ']['getChangedMarkers']()),_0x28f7c8=new Set();for(const {name:_0x1c82f,data:_0x1b8873}of _0x23f4f1){const {group:_0x4aacdf,type:_0x340536,subType:_0x341ef2,id:_0x43f791}=tt(_0x1c82f);if('suggestion'!==_0x4aacdf)continue;const _0x37e082=_0x341ef2?'suggestion:'+_0x340536+':'+_0x341ef2+':'+_0x43f791:'suggestion:'+_0x340536+':'+_0x43f791,_0x182915=_0x14884b['model']['markers']['getMarkersGroup'](_0x37e082),_0x5c9645=_0x14884b['model']['markers']['get'](_0x1c82f),_0x55541b=this['_suggestions']['get'](_0x43f791);if(null!=_0x1b8873['newRange']){'formatInline'==_0x340536&&(_0x13eb37=_0x13eb37||an(_0x1b8873['newRange'],_0x1c82f,_0x1b5170,_0x14884b['model']['schema']));const _0x2c6385='attribute'==_0x340536&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x341ef2)),_0x7e559d='attribute'==_0x340536&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x341ef2));if(_0x1b8873['newRange']['isCollapsed']||'$graveyard'==_0x1b8873['newRange']['root']['rootName']||'formatBlock'==_0x340536&&!ln(_0x1b8873['newRange'])||_0x2c6385&&!ln(_0x1b8873['newRange'])||_0x7e559d&&un(_0x1b8873['newRange'])||'deletion'==_0x340536&&un(_0x1b8873['newRange'])||_0x5c9645&&dn(_0x5c9645,_0x182915))_0x1b5170['removeMarker'](_0x1c82f),_0x13eb37=!0x0;else{if(!_0x55541b||!_0x55541b['isInContent'])continue;if(_0x1b8873['newRange']&&_0x1b8873['oldRange']&&_0x1b8873['newRange']['isEqual'](_0x1b8873['oldRange']))continue;_0x28f7c8['add'](_0x55541b);}}}return _0x28f7c8['size']>0x0&&(_0x13eb37=!!this['_joinWithAdjacentSuggestions'](_0x28f7c8)||_0x13eb37),_0x13eb37;}),_0x14884b['model']['document']['registerPostFixer'](_0xa7aa70=>{let _0x40da10=!0x1;for(const _0xefeee8 of _0x14884b['model']['document']['differ']['getChanges']())if('insert'==_0xefeee8['type'])for(const _0x575b10 of this['_suggestions']['values']()){if(_0x575b10['isMultiRange']||!_0x575b10['isInContent'])continue;const _0x29d95e='formatBlock'==_0x575b10['type'],_0x587842=this['_getAttributeKey'](_0x575b10),_0x5d2c5c=_0x587842&&this['_suggestionsConversion']['isBlockAttribute'](_0x587842);if(!_0x29d95e&&!_0x5d2c5c)continue;const _0x553be8=_0x575b10['getFirstRange']();if(_0x553be8['start']['parent']!=_0x553be8['end']['parent']&&!_0x553be8['end']['isAtEnd']){const _0x4fbf4e=_0x14884b['model']['createPositionAt'](_0x553be8['start']['nodeAfter'],'end'),_0x189327=_0x14884b['model']['createRange'](_0x553be8['start'],_0x4fbf4e);_0xa7aa70['updateMarker'](_0x575b10['getFirstMarker'](),{'range':_0x189327}),_0x40da10=!0x0;}}return _0x40da10;}),_0x14884b['model']['document']['registerPostFixer'](_0x414b71=>this['_processAttributeChanges'](_0x414b71)),_0x14884b['model']['document']['registerPostFixer'](_0x163a61=>!_0x163a61['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x163a61)),_0x14884b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x14884b['model']['document']['on']('change:data',(_0x2fb078,_0xcf0064)=>{if(!_0xcf0064['isLocal']||_0xcf0064['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b279b=_0x14884b['model']['document']['differ']['getChanges']();if(0x0==_0x2b279b['length'])return;const _0x2ee460=[],_0x4bbec6=_0x2b279b['filter'](_0x30d526=>'attribute'==_0x30d526['type']),_0x3866e9=_0x2b279b['filter'](_0x2f29e8=>'insert'==_0x2f29e8['type']&&'$text'!=_0x2f29e8['name']);for(const _0x258688 of _0x4bbec6)this['_suggestionsConversion']['isRegisteredAttribute'](_0x258688['attributeKey'])&&_0x2ee460['push']({'key':_0x258688['attributeKey'],'newValue':_0x258688['attributeNewValue'],'oldValue':_0x258688['attributeOldValue'],'range':hn(_0x258688['range'],_0x14884b['model'])});for(const _0x493c47 of _0x3866e9){if('rename'!=_0x493c47['action']&&'refresh'!=_0x493c47['action'])continue;const _0xaf35a6=gn(_0x493c47['position']['nodeAfter'],_0x14884b['model']),_0x33e6e7=_0x493c47['before'];'rename'==_0x493c47['action']&&_0x2ee460['push']({'key':en,'newValue':_0x493c47['name'],'oldValue':_0x33e6e7['name'],'range':_0xaf35a6});for(const [_0x5d1baf,_0x8b029a]of _0x33e6e7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5d1baf))continue;const _0xb7f54=_0x493c47['attributes']['get'](_0x5d1baf);_0x8b029a!==_0xb7f54&&_0x2ee460['push']({'key':_0x5d1baf,'newValue':_0xb7f54,'oldValue':_0x8b029a,'range':_0xaf35a6});}for(const [_0x55f7f8,_0x208921]of _0x493c47['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x55f7f8)&&(_0x33e6e7['attributes']['has'](_0x55f7f8)||_0x2ee460['push']({'key':_0x55f7f8,'newValue':_0x208921,'oldValue':null,'range':_0xaf35a6}));}0x0!=_0x2ee460['length']&&_0x14884b['model']['enqueueChange'](_0xcf0064,_0x3b55f6=>{const _0x51eec4=_0x24c80d();for(const {range:_0x449674,key:_0x42ab6f,oldValue:_0x3b7bd0,newValue:_0xf5257}of _0x2ee460)this['markAttributeChange'](_0x449674,_0x42ab6f,_0x3b7bd0,_0xf5257,{'groupId':_0x51eec4});this['_reduceExistingSuggestions'](_0x3b55f6,_0x2ee460);});},{'priority':'lowest'}),_0x14884b['model']['markers']['on']('update:suggestion',(_0x4c192e,_0x505c1b,_0x1a9e52)=>{if(null==_0x1a9e52){const {id:_0x29030b}=tt(_0x505c1b['name']),_0x1abdb3=this['_suggestions']['get'](_0x29030b);_0x1abdb3&&_0x1abdb3['addMarkerName'](_0x505c1b['name']);}}),_0x14884b['model']['document']['on']('change:data',()=>{const _0x1b8cff=Array['from'](_0x14884b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b0341=>'suggestion'===tt(_0x1b0341['name'])['group']);if(0x0===_0x1b8cff['length'])return;_0x1b8cff['sort']((_0x514712,_0x37139b)=>{const _0x2ac3e5=_0x514712['data']['oldRange'],_0x53aabb=_0x37139b['data']['oldRange'];return null===_0x2ac3e5&&null===_0x53aabb?0x0:null===_0x2ac3e5&&null!==_0x53aabb?-0x1:null!==_0x2ac3e5&&null===_0x53aabb?0x1:_0x2ac3e5['start']['isBefore'](_0x53aabb['start'])?-0x1:0x1;});const _0x549742=new Set(),_0x368473=new Set();for(const {name:_0x524b16,data:_0x320cce}of _0x1b8cff){const {id:_0x50de22}=tt(_0x524b16);if(null===_0x320cce['oldRange']){const _0x4e5aec=this['_handleNewSuggestionMarker'](_0x524b16);_0x368473['add'](_0x4e5aec);}else{const _0x2b7f64=this['_suggestions']['get'](_0x50de22);null!==_0x320cce['newRange']||_0x2b7f64['isInContent']?(_0x549742['add'](_0x2b7f64['head']),_0x368473['add'](_0x2b7f64)):this['_removeSuggestion'](_0x2b7f64);}}_0x368473['size']>0x0&&this['_refreshSuggestionsChain'](_0x368473);for(const _0x50fcf7 of _0x549742)this['fire']('suggestionChanged',_0x50fcf7);}),_0x14884b['model']['on']('applyOperation',(_0x5d8d26,_0x41813a)=>{const _0x1c0a98=_0x41813a[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c0a98['isDocumentOperation'])return;if(_0x1c0a98['batch']['isUndo']||!_0x1c0a98['batch']['isLocal'])return;let _0x5d5fe4,_0x25cd01;switch(_0x1c0a98['type']){case'insert':_0x5d5fe4=_0x14884b['model']['createPositionAt'](_0x1c0a98['position']),_0x25cd01=_0x5d5fe4['getShiftedBy'](_0x1c0a98['howMany']);break;case'split':_0x5d5fe4=_0x14884b['model']['createPositionAt'](_0x1c0a98['splitPosition']),_0x25cd01=_0x14884b['model']['createPositionAt'](_0x1c0a98['moveTargetPosition']);break;case'move':_0x5d5fe4=_0x14884b['model']['createPositionAt'](_0x1c0a98['targetPosition']),_0x25cd01=_0x5d5fe4['getShiftedBy'](_0x1c0a98['howMany']);break;default:return;}const _0xa037c0=_0x14884b['model']['createRange'](_0x5d5fe4,_0x25cd01);_0x14884b['model']['change'](()=>{for(const {suggestion:_0x49ccfb,meta:_0x398b6c}of this['_findSuggestions'](_0xa037c0)){if(_0x49ccfb['isMultiRange'])continue;if('formatInline'==_0x49ccfb['type'])continue;const _0x108f4c=this['_getAttributeKey'](_0x49ccfb);if(_0x108f4c&&this['_suggestionsConversion']['isBlockAttribute'](_0x108f4c)&&'split'!=_0x1c0a98['type'])continue;const _0x5b1e4c=_0x49ccfb['data']&&_0x49ccfb['data']['multipleBlocks'];('formatBlock'!=_0x49ccfb['type']||'split'==_0x1c0a98['type']&&!_0x5b1e4c)&&(_0x398b6c['containsRangeInObject']||'insertion'==_0x49ccfb['type']&&_0x398b6c['isOwn']||_0x49ccfb['getFirstRange']()['containsRange'](_0xa037c0)&&this['_breakSuggestionMarker'](_0x49ccfb,_0x5d5fe4,_0x25cd01));}});},{'priority':'lowest'}),_0x14884b['model']['on']('deleteContent',(_0x40b36e,_0x1a857d)=>{const _0x3fbb33=_0x1a857d[0x0],_0x4f6144=_0x1a857d[0x1];if(_0x4f6144&&_0x4f6144['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3fbb33['isCollapsed'])return;const _0x2169f5=_0x14884b['model']['schema'],{start:_0x1b44e3,end:_0x4bcb32}=_0x3fbb33['getFirstRange'](),_0x56f7e2=_0x1b44e3['nodeAfter']&&_0x2169f5['isLimit'](_0x1b44e3['nodeAfter'])?null:_0x2169f5['getNearestSelectionRange'](_0x1b44e3,'forward'),_0x5da06a=_0x4bcb32['nodeBefore']&&_0x2169f5['isLimit'](_0x4bcb32['nodeBefore'])?null:_0x2169f5['getNearestSelectionRange'](_0x4bcb32,'backward'),_0x1609a0=_0x14884b['model']['createRange'](_0x56f7e2?_0x56f7e2['start']:_0x1b44e3,_0x5da06a?_0x5da06a['end']:_0x4bcb32);_0x14884b['model']['change'](_0x942043=>{this['markDeletion'](_0x1609a0);const _0x38147b=_0x14884b['model']['schema']['getNearestSelectionRange'](_0x1609a0['start']);_0x3fbb33['is']('documentSelection')?_0x942043['setSelection'](_0x38147b):_0x3fbb33['setTo'](_0x38147b);}),_0x40b36e['stop']();},{'priority':_0x5eb1e0['normal']+0xa}),_0x14884b['model']['on']('insertContent',(_0x497b5c,_0x4cb5df)=>{const _0x22073b=_0x4cb5df[_0x4cb5df['length']-0x1];_0x22073b&&_0x22073b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x14884b['model']['change'](()=>{let _0x26b03b=_0x14884b['model']['insertContent'](_0x4cb5df[0x0],_0x4cb5df[0x1],_0x4cb5df[0x2],{'forceDefaultExecution':!0x0});if(!_0x26b03b)return;_0x497b5c['return']=_0x26b03b['clone']();const _0x40059e=_0x26b03b['end']['nodeBefore'],_0x4dbbb3=_0x14884b['model']['schema'];_0x40059e&&_0x4dbbb3['isBlock'](_0x40059e)&&!_0x4dbbb3['isObject'](_0x40059e)&&(_0x26b03b=_0x14884b['model']['createRange'](_0x26b03b['start'],_0x14884b['model']['createPositionAt'](_0x40059e,'end'))),this['markInsertion'](_0x26b03b);}),_0x497b5c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31f62a=new Tt(_0x14884b,this['_suggestions']);_0x14884b['commands']['add']('acceptSuggestion',_0x31f62a),this['enableCommand']('acceptSuggestion');const _0xf046cf=new _t(_0x14884b,this['_suggestions']);_0x14884b['commands']['add']('discardSuggestion',_0xf046cf),this['enableCommand']('discardSuggestion'),_0x14884b['commands']['add']('acceptAllSuggestions',new Ct(_0x14884b,_0x31f62a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x14884b['commands']['add']('discardAllSuggestions',new Ct(_0x14884b,_0xf046cf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x14884b['commands']['add']('acceptSelectedSuggestions',new Rt(_0x14884b,_0x31f62a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x14884b['commands']['add']('discardSelectedSuggestions',new Rt(_0x14884b,_0xf046cf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2f5407=_0x14884b['plugins']['get'](_0xe4cf4f);this['listenTo'](_0x2f5407,'addComment',(_0x4ee553,{threadId:_0x230a5f})=>{const _0x25c785=this['_suggestions']['get'](_0x230a5f);_0x25c785&&_0x25c785['commentThread']&&0x1===_0x25c785['commentThread']['length']&&this['_updateSuggestionData'](_0x230a5f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2f5407,'removeComment',(_0xd0f47b,{threadId:_0x684975})=>{const _0x15a0bd=this['_suggestions']['get'](_0x684975);_0x15a0bd&&_0x15a0bd['commentThread']&&!_0x15a0bd['commentThread']['length']&&this['_updateSuggestionData'](_0x684975,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49fa3d){const _0x34fbaa='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x466ddc=0x78e70,_0x3ea2cf=window['Date']['now'](),_0x4c6c8f=_0x49fa3d['editor'],_0x2bf544=new window['Promise'](_0x5ad00e=>{_0x4c6c8f['once']('ready',_0x5ad00e);}),_0x47d22e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x535850=_0x4c6c8f['config']['get']('licenseKey');async function _0x5eb4ce(){let _0x306cce,_0x299345=null,_0x5d3476=null;try{return'GPL'==_0x535850?'NotAllowed':(_0x306cce=_0x254531(),_0x306cce?(_0x306cce['usageEndpoint']&&(_0x5d3476=_0x2dd91c(_0x306cce['usageEndpoint'],_0x306cce['jti'])),await _0x1b55b8()?_0x478d5()?_0x98355f()?'Expired':_0x557826()?('evaluation'==_0x306cce['licenseType']&&(_0x299345=_0x2bf09f('EvaluationLimit')),await _0x54aaac()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x98355f(){const _0x4231c6=['evaluation','trial']['includes'](_0x306cce['licenseType'])?_0x3ea2cf/0x3e8:0xe10*_0x466ddc;return _0x306cce['exp']<_0x4231c6;}function _0x478d5(){const _0xc75b0f=_0x306cce['features'];if(!_0xc75b0f)return!0x1;if(_0xc75b0f['includes']('*'))return!0x0;if(_0xc75b0f['includes']('TC'))return!0x0;if(_0xc75b0f['includes']('RTC')){if(_0x29cc03())return!0x0;if(_0x173caa()||_0x34a17c())return!0x0;}return!0x1;}function _0x557826(){const _0x46fcc6=_0x306cce['licensedHosts'];if(!_0x46fcc6||0x0==_0x46fcc6['length'])return!0x0;const {hostname:_0x3eb2a4}=new URL(window['location']['href']);if(_0x46fcc6['includes'](_0x3eb2a4))return!0x0;const _0x16a7d4=_0x3eb2a4['split']('.');return _0x46fcc6['filter'](_0x5cbfd9=>_0x5cbfd9['includes']('*'))['map'](_0x561a3d=>_0x561a3d['split']('.'))['filter'](_0x162747=>_0x162747['length']<=_0x16a7d4['length'])['map'](_0x5abbf2=>Array(_0x16a7d4['length']-_0x5abbf2['length'])['fill']('*'===_0x5abbf2[0x0]?'*':'')['concat'](_0x5abbf2))['some'](_0x21e173=>_0x16a7d4['every']((_0x1f6bf9,_0x17d6ab)=>_0x21e173[_0x17d6ab]===_0x1f6bf9||'*'===_0x21e173[_0x17d6ab]));}function _0x54aaac(){return _0x299345&&_0x5d3476?new window['Promise']((_0x41dbbd,_0x477c88)=>{_0x299345['then'](_0x41dbbd,_0x477c88),_0x5d3476['then'](_0x1601d7=>{'Valid'!=_0x1601d7&&_0x41dbbd(_0x1601d7);},_0x477c88);}):_0x299345||_0x5d3476||'Valid';}}function _0x2dd91c(_0x3765ac,_0x301e68){return new window['Promise'](_0x596731=>{if(_0x4beac9())return _0x596731('Valid');_0x555c44(),_0x4c6c8f['decorate']('_sendUsageRequest');let _0x5a2b4d=!0x1;const _0x50f460=_0x24c80d();function _0x5d9bbf(_0x30df7a){return!!_0x30df7a&&('object'==typeof _0x30df7a||'function'==typeof _0x30df7a)&&'function'==typeof _0x30df7a['then']&&'function'==typeof _0x30df7a['catch'];}function _0x323250(_0xf573e2){_0x143cb5(_0xf573e2)['then'](_0x269a43=>_0x269a43&&'ok'==_0x269a43['status']?_0x1632d5(_0x3c6836(_0x50f460+_0x301e68))!=_0x269a43['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x195dd5=>(_0x10e388(),_0x195dd5),()=>{const _0x24d2dc=_0x6fce21();return null==_0x24d2dc?(_0x10e388(),'Valid'):_0x3ea2cf-_0x24d2dc>0x240c8400?'UsageLimit':'Valid';})['then'](_0x596731)['catch'](()=>{_0x596731('UsageLimit');});const _0x1f0817=0x36ee80;function _0x10e388(){const _0xf86344='llct-'+_0x1632d5(_0x3c6836(_0x3765ac)),_0x3bf707=_0x56ec54(_0x1632d5(window['Math']['ceil'](_0x3ea2cf/_0x1f0817)));window['localStorage']['setItem'](_0xf86344,_0x3bf707);}function _0x6fce21(){const _0x112174='llct-'+_0x1632d5(_0x3c6836(_0x3765ac)),_0x2cd219=window['localStorage']['getItem'](_0x112174);return _0x2cd219?window['parseInt'](_0x56ec54(_0x2cd219),0x10)*_0x1f0817:null;}function _0x143cb5(_0xae5eb){return new window['Promise']((_0x27923c,_0x3f5027)=>{_0xae5eb['then'](_0x27923c,_0x3f5027),window['setTimeout'](_0x3f5027,0x1d4c0);});}}_0x4c6c8f['on']('_sendUsageRequest',(_0xe4edfb,_0x4aa247)=>{if(_0x4aa247[0x0]!=_0x3765ac)return _0x596731('UsageLimit');_0x4aa247[0x1]={..._0x4aa247[0x1],'requestId':_0x50f460};},{'priority':'high'}),_0x4c6c8f['on']('_sendUsageRequest',_0x4c5c75=>{_0x5d9bbf(_0x4c5c75['return'])&&(_0x5a2b4d=!0x0,_0x323250(_0x4c5c75['return']));},{'priority':'low'}),_0x2bf544['then'](()=>{_0x5a2b4d||_0x596731('UsageLimit');});});function _0x4beac9(){return'auto'==_0x4c6c8f['editing']['view']['_overlayModeHint'];}function _0x555c44(){_0x4c6c8f['editing']['view']['_overlayModeHint']='auto';}}function _0x2bf09f(_0x40f41d){const _0x267932=[new window['Promise'](_0x31c81d=>setTimeout(_0x31c81d,0x93ecc)),_0x2bf544['then'](()=>new window['Promise'](_0xb802b8=>{let _0x10008a=0x0;_0x4c6c8f['model']['on']('applyOperation',(_0x3cfd93,_0x1ce820)=>{_0x1ce820[0x0]['isDocumentOperation']&&_0x10008a++,0x5e8==_0x10008a&&(_0xb802b8(),_0x3cfd93['off']());});}))];return window['Promise']['race'](_0x267932)['then'](()=>_0x40f41d);}async function _0x1fd06f(){await _0x2bf544,_0x4c6c8f['model']['change']=_0x4bda3,_0x4c6c8f['model']['enqueueChange']=_0x4bda3,_0x4c6c8f['enableReadOnlyMode']('model');}function _0x29cc03(){return _0x1e8e7f('WebSocketGateway')&&'connected'==_0xf97f5('WebSocketGateway')['state'];}function _0x173caa(){return _0x1e8e7f('RevisionViewerIntegration');}function _0x34a17c(){return _0x1e8e7f('TrackChangesDataGetter');}function _0x4ad180(_0x1e8d5e){const _0x4c3349=_0x4bb9a2();_0x4c6c8f[_0x4c3349]='trackChangesLicenseKey'+_0x1e8d5e,'Valid'!=_0x1e8d5e&&_0x1fd06f();}function _0x4bb9a2(){const _0x26927e=window['String'](window['performance']['now']())['replace']('.','');let _0xc7d5b6='R';for(let _0x226452=0x0;_0x226452<_0x26927e['length'];_0x226452+=0x2){let _0x37d48b=window['parseInt'](_0x26927e['substring'](_0x226452,_0x226452+0x2));_0x37d48b>=0x3e&&(_0x37d48b-=0x3e),_0xc7d5b6+=_0x34fbaa[_0x37d48b];}return _0xc7d5b6;}function _0x254531(){const _0x25ac67=_0x535850['split']('.');if(0x3!=_0x25ac67['length'])return null;return _0x5ad230(_0x25ac67[0x1]);function _0x5ad230(_0x17d6a2){const _0x25ba77=_0x47772b(_0x17d6a2);return _0x25ba77&&_0xd14076()?_0x25ba77:null;function _0xd14076(){const _0x67da38=_0x25ba77['jti'],_0x24cb55=window['parseInt'](_0x67da38['substring'](_0x67da38['length']-0x8),0x10),_0x4c30d8={..._0x25ba77,'jti':_0x67da38['substring'](0x0,_0x67da38['length']-0x8)};return delete _0x4c30d8['vc'],_0x3c6836(_0x4c30d8)==_0x24cb55;}}}async function _0x1b55b8(){let _0x45742b=!0x0;try{const [_0x11aad8,_0x384616,_0x3098dd]=_0x535850['split']('.');return _0xbb4c43(_0x11aad8),await _0x44469f(_0x11aad8,_0x384616,_0x3098dd),_0x45742b;}catch{return!0x1;}function _0xbb4c43(_0x384f03){const _0x593c56=_0x47772b(_0x384f03);_0x593c56&&'ES256'==_0x593c56['alg']||(_0x45742b=!0x1);}async function _0x44469f(_0x23bc37,_0x378c9f,_0x1ff6f6){const _0x5050f3=window['Uint8Array']['from'](_0x1e39d7(_0x1ff6f6),_0x5905fc=>_0x5905fc['charCodeAt'](0x0)),_0x2b052d=new window['TextEncoder']()['encode'](_0x23bc37+'.'+_0x378c9f),_0x1e54fb=window['crypto']['subtle'];if(!_0x1e54fb)return;const _0x39b241=await _0x1e54fb['importKey']('jwk',_0x47d22e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1e54fb['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x39b241,_0x5050f3,_0x2b052d)||(_0x45742b=!0x1);}}function _0x47772b(_0x3025f9){return _0x3025f9['startsWith']('ey')?JSON['parse'](_0x1e39d7(_0x3025f9)):null;}function _0x1e39d7(_0x2ad696){return window['atob'](_0x2ad696['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3c6836(_0x3096f1){let _0x3d23eb=0x1505;function _0x371f8e(_0x3c428f){for(let _0xf24e67=0x0;_0xf24e67<_0x3c428f['length'];_0xf24e67++){const _0x293112=_0x3c428f['charCodeAt'](_0xf24e67);_0x3d23eb=(_0x3d23eb<<0x5)+_0x3d23eb+_0x293112,_0x3d23eb&=_0x3d23eb;}}function _0x4ed2aa(_0x444ed8){Array['isArray'](_0x444ed8)?_0x444ed8['forEach'](_0x4ed2aa):_0x444ed8&&'object'==typeof _0x444ed8?Object['entries'](_0x444ed8)['sort']()['forEach'](([_0x23f1a6,_0x36ac40])=>{_0x371f8e(_0x23f1a6),_0x4ed2aa(_0x36ac40);}):_0x371f8e(window['String'](_0x444ed8));}return _0x4ed2aa(_0x3096f1),_0x3d23eb>>>0x0;}function _0x1632d5(_0x31fa9c){return _0x31fa9c['toString'](0x10)['padStart'](0x8,'0');}function _0x56ec54(_0x524ada){return _0x524ada['split']('')['reverse']()['join']('');}function _0x1e8e7f(_0x2e7971){return _0x4c6c8f['plugins']['has'](_0x2e7971);}function _0xf97f5(_0x2b2959){return _0x4c6c8f['plugins']['get'](_0x2b2959);}function _0x4bda3(){}_0x4ad180(await _0x5eb4ce());}(this);}set['adapter'](_0x2638ed){if(this['_adapter'])throw new _0xb0a0f9('track-changes-adapter-already-set',this);this['_adapter']=_0x2638ed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x47c4ff=!0x1,toJSON:_0x450478=!0x1}={}){const _0x5dac76=[];for(const _0x2a9a82 of this['_suggestions']['values']())_0x47c4ff&&!_0x2a9a82['isInContent']||_0x5dac76['push'](_0x2a9a82);return _0x450478?_0x5dac76['map'](_0x5bea9b=>_0x5bea9b['toJSON']()):_0x5dac76;}['getSuggestion'](_0x9040bf){const _0xc43722=this['_suggestions']['get'](_0x9040bf);if(!_0xc43722)throw new _0xb0a0f9('track-changes-suggestion-not-found',this);return _0xc43722;}['hasSuggestion'](_0x12d531){return this['_suggestions']['has'](_0x12d531);}['addSuggestionData'](_0x380526){const {authorId:_0x35b028,id:_0x445ebf,originalSuggestionId:_0x89f3e1,attributes:_0x442e5a}=_0x380526,[_0x38a7f0,_0x3bc80b]=_0x380526['type']['split'](':'),_0x3c9965=this['_suggestions']['get'](_0x445ebf)||this['_createSuggestion'](_0x38a7f0,_0x3bc80b,_0x445ebf,_0x35b028,_0x442e5a,_0x89f3e1);if(this['_addThreadToSuggestion'](_0x3c9965),this['_checkSuggestionCorrectness'](_0x3c9965,_0x38a7f0,_0x3bc80b||null,_0x35b028),_0x3c9965['createdAt']=_0x380526['createdAt'],_0x3c9965['_isDataLoaded']=!0x0,_0x442e5a&&_0x442e5a['@external']){const _0x4ba492=_0x442e5a['@external'],_0x2fd7a2=this['_getExternalAuthor'](_0x4ba492['authorName']);_0x3c9965['authoredAt']=_0x4ba492['createdAt'],_0x3c9965['author']=_0x2fd7a2;}else _0x3c9965['authoredAt']=_0x380526['createdAt'];switch(_0x380526['data']&&(_0x3c9965['data']=_0x380526['data']),_0x380526['attributes']&&(_0x3c9965['attributes']=_0x380526['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c9965['_saved']=!0x0),this['_suggestionState']['get'](_0x3c9965)){case'notReady':this['_suggestionState']['set'](_0x3c9965,'dataReady');break;case'markerReady':_0x3c9965['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c9965])),this['_refreshSuggestionsChain'](new Set([_0x3c9965])),this['_suggestionState']['set'](_0x3c9965,'ready'),this['fire']('suggestionLoaded',_0x3c9965)):this['_suggestionState']['set'](_0x3c9965,'removed');}return _0x3c9965;}['acceptSuggestion'](_0x44e07f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f9c51 of _0x44e07f['getAllAdjacentSuggestions']())_0x2f9c51['accept']();});});}['discardSuggestion'](_0x47f588){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb801f2 of _0x47f588['getAllAdjacentSuggestions']())_0xb801f2['discard']();});});}['enableCommand'](_0x40aac3,_0x5e6737){const _0x4f5d31=this['editor']['commands']['get'](_0x40aac3);if(!_0x4f5d31)throw new _0xb0a0f9('track-changes-command-not-found',this,{'commandName':_0x40aac3});if(this['_enabledCommands']['has'](_0x4f5d31))throw new _0xb0a0f9('track-changes-enable-command-twice',this,{'commandName':_0x40aac3});this['_enabledCommands']['add'](_0x4f5d31),_0x5e6737&&_0x4f5d31['on']('execute',(_0x19b722,_0x57e984)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x57e984['length']>0x0&&_0x57e984[_0x57e984['length']-0x1]&&_0x57e984[_0x57e984['length']-0x1]['forceDefaultExecution']?_0x57e984['pop']():(_0x19b722['return']=_0x5e6737((..._0x13a841)=>_0x4f5d31['execute'](..._0x13a841,{'forceDefaultExecution':!0x0}),..._0x57e984),_0x19b722['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d7330){let _0x331e2d,_0x472fe5;const _0x42c8c2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x331e2d=_0x5d7330();}catch(_0x64776b){_0x472fe5=_0x64776b;}return _0x42c8c2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x472fe5&&_0xb0a0f9['rethrowUnexpectedError'](_0x472fe5,this),_0x331e2d;}['markInsertion'](_0x31ff54,_0x1c1ea1=null,_0xff9548={}){if(_0x31ff54['isCollapsed'])return null;const _0x3f60b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xff9548['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4eb98d,meta:_0xee1cf8}of this['_findSuggestions'](_0x31ff54,'insertion'))if(_0xee1cf8['isOwn']){if(!_0xee1cf8['isNextTo']){if(_0xee1cf8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x4eb98d,_0xff9548))continue;return _0x4eb98d;}if(En(_0x4eb98d,_0xff9548))return _0x4eb98d;this['_breakSuggestionMarker'](_0x4eb98d,_0x31ff54['start'],_0x31ff54['end']);break;}if(_0x1c1ea1==_0x4eb98d['subType']&&En(_0x4eb98d,_0xff9548)){const _0x53553c=_0x4eb98d['getFirstRange']();return _0x53553c['start']['isEqual'](_0x31ff54['end'])?this['_setSuggestionRange'](_0x4eb98d,this['_model']['createRange'](_0x31ff54['start'],_0x53553c['end'])):this['_setSuggestionRange'](_0x4eb98d,this['_model']['createRange'](_0x53553c['start'],_0x31ff54['end'])),_0x4eb98d;}}const _0x3d0a18=_0x24c80d(),_0x549d9c=_0x3f60b8['id'],_0x10568a=_0x1c1ea1?'insertion:'+_0x1c1ea1:'insertion',_0x2e3c5e=this['_setSuggestionData']({'id':_0x3d0a18,'type':_0x10568a,'createdAt':new Date(),'authorId':_0x549d9c,'attributes':_0xff9548});return this['_addSuggestionMarker'](_0x10568a,_0x3d0a18,_0x549d9c,_0x31ff54),_0x2e3c5e;}['markMultiRangeInsertion'](_0x5c313d,_0x22684d='multi',_0x5ef0a9={}){const _0x445e84=this['editor']['plugins']['get']('Users')['me'],_0x1e4d8d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x22684d,'join');this['_trackingSessionId']&&(_0x5ef0a9['trackingSessionId']=this['_trackingSessionId']);for(const _0x2595fb of this['getSuggestions']())if(_0x2595fb['author']['id']==_0x445e84['id']&&'insertion'==_0x2595fb['type']&&_0x2595fb['subType']==_0x22684d&&En(_0x2595fb,_0x5ef0a9)&&(_0x1e4d8d(_0x2595fb['getRanges'](),_0x5c313d)||_0x1e4d8d(_0x5c313d,_0x2595fb['getRanges']()))){for(const _0x2f464a of _0x5c313d)_0x2595fb['addRange'](_0x2f464a);return _0x2595fb;}for(const {suggestion:_0x576f32,meta:_0x2bd192}of this['_findSuggestions'](_0x5c313d,'insertion')){if(!_0x2bd192['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2bd192['containsRangeInObject'])continue;if(!En(_0x576f32,_0x5ef0a9))continue;let _0x4ea8a2=!0x0;for(const _0x3dad0c of _0x576f32['getRanges']())for(const _0x56bd15 of _0x5c313d)if(!_0x3dad0c['containsRange'](_0x56bd15)){_0x4ea8a2=!0x1;break;}if(_0x4ea8a2)return _0x576f32;}const _0x334677=_0x24c80d(),_0x5e9888=_0x445e84['id'],_0x5618d7='insertion:'+_0x22684d,_0x3dcbc9=this['_setSuggestionData']({'id':_0x334677,'type':_0x5618d7,'createdAt':new Date(),'authorId':_0x5e9888,'attributes':_0x5ef0a9});for(const _0x13a189 of _0x5c313d)this['_addSuggestionMarker'](_0x5618d7,_0x334677,_0x5e9888,_0x13a189,yt['getMultiRangeId']());return _0x3dcbc9;}['markInlineFormat'](_0x17dcfc,_0x284443,_0x2dec76=null,_0x34a5ed={}){if(_0x2dec76=_0x2dec76||cn(_0x284443),_0x17dcfc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x34a5ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdccf44=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dec76,'accept');return this['forceDefaultExecution'](()=>_0xdccf44([_0x17dcfc],_0x284443,_0x34a5ed)),null;}const _0x2f25b9=this['editor']['plugins']['get']('Users')['me'],_0x4a42c7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d6a99,meta:_0x41848a}of this['_findSuggestions'](_0x17dcfc,'insertion'))_0x41848a['isOwn']&&!_0x41848a['isInsideObject']&&_0x4a42c7['push'](..._0x2d6a99['getRanges']());}const _0x17dec3=function(_0x2f0fe9,_0x2ba671){const _0x341fd7=[];for(const _0x3332a7 of _0x2ba671){const _0x491289=_0x2f0fe9['getIntersection'](_0x3332a7);_0x491289&&_0x341fd7['push'](_0x491289);}return _0x341fd7;}(_0x17dcfc,_0x4a42c7),_0x3488cd=function(_0x2a3549,_0x17a571){const _0xecdf14=[_0x2a3549];for(const _0x4ed18c of _0x17a571){let _0x603fb2=0x0;for(;_0x603fb2<_0xecdf14['length'];){const _0x288575=_0xecdf14[_0x603fb2]['getDifference'](_0x4ed18c);_0xecdf14['splice'](_0x603fb2,0x1,..._0x288575),_0x603fb2+=_0x288575['length'];}}return _0xecdf14;}(_0x17dcfc,_0x4a42c7);_0x17dec3['length']&&this['_model']['change'](()=>{for(const _0x4223e8 of _0x17dec3){const _0xbec45=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dec76,'accept');this['forceDefaultExecution'](()=>_0xbec45([_0x4223e8],_0x284443,_0x34a5ed));}});for(const _0x4f5951 of _0x3488cd){let _0x15e658=null,_0x3fc5ab=_0x4f5951['start'],_0x5b14c4=_0x4f5951['end'];for(const {suggestion:_0x3824f8,meta:_0x1a1134}of this['_findSuggestions'](_0x4f5951,'formatInline')){if(!_0x1a1134['isOwn'])continue;if(_0x3824f8['subType']!=_0x2dec76)continue;if(!En(_0x3824f8,_0x34a5ed))continue;const _0x25f22a=_0x3824f8['getFirstRange']();if(_0x25f22a['containsRange'](_0x4f5951,!0x0))return null;_0x3fc5ab=_0x3fc5ab['isBefore'](_0x25f22a['start'])?_0x3fc5ab:_0x25f22a['start'],_0x5b14c4=_0x5b14c4['isAfter'](_0x25f22a['end'])?_0x5b14c4:_0x25f22a['end'],_0x15e658?_0x25f22a['start']['isBefore'](_0x15e658['getFirstRange']()['start'])?(_0x15e658['removeMarkers'](),_0x15e658=_0x3824f8):_0x3824f8['removeMarkers']():_0x15e658=_0x3824f8;}const _0x36ee2a=this['_model']['createRange'](_0x3fc5ab,_0x5b14c4);if(_0x15e658)this['_setSuggestionRange'](_0x15e658,_0x36ee2a);else{const _0x48c5c2=_0x24c80d(),_0xc98f3f=_0x2f25b9['id'];this['_setSuggestionData']({'id':_0x48c5c2,'type':'formatInline:'+_0x2dec76,'data':_0x284443,'createdAt':new Date(),'authorId':_0xc98f3f,'attributes':_0x34a5ed}),this['_addSuggestionMarker']('formatInline:'+_0x2dec76,_0x48c5c2,_0xc98f3f,_0x36ee2a);}}return null;}['markBlockFormat'](_0x13838a,_0x5b617b,_0x3b5195=[],_0x558a00=null,_0x479833={}){_0x5b617b['formatGroupId']||(_0x5b617b['formatGroupId']=_0x5b617b['commandName']),_0x5b617b['multipleBlocks']=_0x13838a['is']('range'),_0x558a00=_0x558a00||cn(_0x5b617b);const _0x5886df=_0x3b5195['map'](_0x45c049=>gn(_0x45c049,this['_model'])),_0x402126=_0x13838a['is']('range')?_0x13838a:gn(_0x13838a,this['_model']);if(this['_trackingSessionId']&&(_0x479833['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b2b6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x558a00,'accept');return this['forceDefaultExecution'](()=>_0x1b2b6d([_0x402126],_0x5b617b,_0x479833)),null;}_0x5886df['push'](_0x402126);let _0x57cea6=!0x0;for(const _0x11de00 of _0x5886df)if(!this['_rangeIsInLocalUserInsertion'](_0x11de00)){_0x57cea6=!0x1;break;}if(_0x57cea6&&'always'!==this['_trackFormatChanges']){const _0x1f7e4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x558a00,'accept');return this['forceDefaultExecution'](()=>_0x1f7e4a([_0x402126],_0x5b617b,_0x479833)),null;}let _0x595f01=null,_0x1a14b7=_0x402126['start'],_0x58779b=_0x402126['end'];for(const {suggestion:_0x536f6a,meta:_0x2b2ec0}of this['_findSuggestions'](_0x402126,'formatBlock')){if(!_0x2b2ec0['isOwn'])continue;if(_0x2b2ec0['isNextTo']||_0x2b2ec0['containsRangeInObject']||_0x2b2ec0['isInsideObject'])continue;if(_0x536f6a['data']['formatGroupId']!=_0x5b617b['formatGroupId'])continue;if(!En(_0x536f6a,_0x479833))continue;const _0x21aac2=_0x536f6a['getFirstRange']();if(_0x536f6a['subType']==_0x558a00){if(_0x21aac2['containsRange'](_0x402126,!0x0))return null;_0x1a14b7=_0x1a14b7['isBefore'](_0x21aac2['start'])?_0x1a14b7:_0x21aac2['start'],_0x58779b=_0x58779b['isAfter'](_0x21aac2['end'])?_0x58779b:_0x21aac2['end'],_0x595f01?_0x21aac2['start']['isBefore'](_0x595f01['getFirstRange']()['start'])?(_0x595f01['removeMarkers'](),_0x595f01=_0x536f6a):_0x536f6a['removeMarkers']():_0x595f01=_0x536f6a;}else{const _0x13224b=_0x402126['getIntersection'](_0x21aac2);this['_cutOutSuggestionMarker'](_0x536f6a,_0x13224b);}}const _0x41bfbf=this['editor']['plugins']['get']('Users')['me'],_0xdcb3f2=_0x24c80d(),_0x1ee308=_0x41bfbf['id'];if(_0x595f01)return this['_setSuggestionRange'](_0x595f01,this['_model']['createRange'](_0x1a14b7,_0x58779b)),_0x595f01;{const _0x4f24c9=this['_setSuggestionData']({'id':_0xdcb3f2,'type':'formatBlock:'+_0x558a00,'data':_0x5b617b,'createdAt':new Date(),'authorId':_0x1ee308,'attributes':_0x479833});return this['_addSuggestionMarker']('formatBlock:'+_0x558a00,_0xdcb3f2,_0x1ee308,this['_model']['createRange'](_0x1a14b7,_0x58779b)),_0x4f24c9;}}['markMultiRangeBlockFormat'](_0x5f3f6c,_0xcfb3cc,_0x575ee3=[],_0x48c2d5=null,_0x2925ec={}){_0xcfb3cc['formatGroupId']||(_0xcfb3cc['formatGroupId']=_0xcfb3cc['commandName']);const _0xd6e7c9=_0x5f3f6c[0x0];_0xcfb3cc['multipleBlocks']=_0xd6e7c9['is']('range'),_0x48c2d5=_0x48c2d5||cn(_0xcfb3cc);const _0x20acc1=_0x575ee3['map'](_0x2e5a12=>gn(_0x2e5a12,this['_model'])),_0x29cf66=_0xd6e7c9['is']('range')?_0x5f3f6c:_0x5f3f6c['map'](_0x454733=>gn(_0x454733,this['_model']));if(this['_trackingSessionId']&&(_0x2925ec['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5ab379=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c2d5,'accept');return this['forceDefaultExecution'](()=>_0x5ab379(_0x29cf66,_0xcfb3cc,_0x2925ec)),null;}_0x20acc1['push'](..._0x29cf66);let _0x5f1603=!0x0;for(const _0xe5f930 of _0x20acc1)if(!this['_rangeIsInLocalUserInsertion'](_0xe5f930)){_0x5f1603=!0x1;break;}if(_0x5f1603&&'always'!==this['_trackFormatChanges']){const _0x4c48fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c2d5,'accept');return this['forceDefaultExecution'](()=>_0x4c48fb(_0x29cf66,_0xcfb3cc,_0x2925ec)),null;}const _0x57b3d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x5e320a of this['getSuggestions']()){const _0x277f15=_0x5e320a['data'];if(_0x5e320a['author']['id']!=_0x57b3d5['id'])continue;if('formatBlock'!=_0x5e320a['type']||_0x277f15['formatGroupId']!=_0xcfb3cc['formatGroupId'])continue;if(!En(_0x5e320a,_0x2925ec))continue;const _0xca8bd6=_0x5e320a['subType']==_0x48c2d5;for(let _0x42045f=0x0;_0x42045f<_0x29cf66['length'];_0x42045f++){const _0x3a971c=_0x29cf66[_0x42045f];for(const _0x4298c1 of _0x5e320a['getMarkers']()){const _0x2736bb=_0x4298c1['getRange']();if(_0x3a971c['isEqual'](_0x2736bb)){_0xca8bd6?(_0x29cf66['splice'](_0x42045f,0x1),_0x42045f--):_0x5e320a['removeMarker'](_0x4298c1['name']);break;}}}}if(0x0==_0x29cf66['length'])return null;const _0x5d70c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c2d5,'join');for(const _0xc21b62 of this['getSuggestions']()){const _0x369f5d=_0xc21b62['data'];if(_0xc21b62['author']['id']==_0x57b3d5['id']&&('formatBlock'==_0xc21b62['type']&&_0x369f5d['formatGroupId']==_0xcfb3cc['formatGroupId']&&_0xc21b62['subType']==_0x48c2d5&&En(_0xc21b62,_0x2925ec)&&(_0x5d70c9(_0xc21b62['getRanges'](),_0x29cf66)||_0x5d70c9(_0x29cf66,_0xc21b62['getRanges']())))){for(const _0x58262 of _0x29cf66)_0xc21b62['addRange'](_0x58262);return _0xc21b62;}}const _0x254989=_0x24c80d(),_0x9a1bdd=_0x57b3d5['id'],_0xfafed7='formatBlock:'+_0x48c2d5,_0x3641dd=this['_setSuggestionData']({'id':_0x254989,'type':_0xfafed7,'data':_0xcfb3cc,'createdAt':new Date(),'authorId':_0x9a1bdd,'attributes':_0x2925ec});for(const _0x967b2f of _0x29cf66)this['_addSuggestionMarker'](_0xfafed7,_0x254989,_0x9a1bdd,_0x967b2f,yt['getMultiRangeId']());return _0x3641dd;}['markDeletion'](_0x5d5738,_0x400fc4=null,_0x5b542c={}){if(_0x5d5738['isCollapsed'])return null;const _0x1b874c=this['editor']['plugins']['get']('Users')['me'],_0xce4671=new rt(_0x5d5738['start'],_0x5d5738['end']);this['_trackingSessionId']&&(_0x5b542c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x522650,meta:_0x46df82}of this['_findSuggestions'](_0xce4671,'insertion'))if(_0x46df82['isOwn']&&!_0x46df82['isNextTo']){if(_0x522650['isMultiRange']){const _0x2666db=_0x522650['getRanges']()['filter'](_0xcb7728=>'$graveyard'!=_0xcb7728['root']['rootName']);if(_0x2666db['every'](_0x214865=>_0xce4671['containsRange'](_0x214865,!0x0))&&_0x522650['discard'](),_0x2666db['some'](_0x469f36=>_0x469f36['containsRange'](_0xce4671,!0x0))){const _0x423d2a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x400fc4,'accept');return this['forceDefaultExecution'](()=>_0x423d2a([_0xce4671],null,_0x5b542c)),null;}}else{const _0x207f75=_0xce4671['getIntersection'](_0x522650['getFirstRange']());null!==_0x207f75&&_0x522650['_onDiscard']([_0x207f75],null,_0x5b542c);}}if(_0xce4671['detach'](),_0xce4671['isCollapsed']||'$graveyard'==_0xce4671['root']['rootName'])return null;let _0x15f267=null,_0x94fa35=_0xce4671['start'],_0x5ed2d1=_0xce4671['end'];const _0x229411=this['_findSuggestions'](_0xce4671,'deletion');for(const {suggestion:_0x894a61,meta:_0x3e652c}of _0x229411){const _0x5f4bb0=this['_model']['createRange'](_0x94fa35,_0x5ed2d1);if(_0x3e652c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e652c['containsRangeInObject']&&!_0x3e652c['isInsideObject'])){if(_0x894a61['isMultiRange']){if(!En(_0x894a61,_0x5b542c))continue;let _0x20dc0f=!0x0;for(const _0x54126f of _0x894a61['getRanges']()){if(_0x54126f['containsRange'](_0x5f4bb0,!0x0))return _0x894a61;_0x5f4bb0['containsRange'](_0x54126f)||(_0x20dc0f=!0x1);}_0x20dc0f&&_0x894a61['discard']();}else{const _0x4d9793=_0x894a61['getFirstRange']();if(_0x4d9793['containsRange'](_0x5f4bb0,!0x0))return _0x894a61;if(!En(_0x894a61,_0x5b542c)){_0x5f4bb0['containsRange'](_0x4d9793)?_0x894a61['removeMarkers']():_0x4d9793['containsPosition'](_0x94fa35)?_0x94fa35=_0x4d9793['end']:_0x4d9793['containsPosition'](_0x5ed2d1)&&(_0x5ed2d1=_0x4d9793['start']);continue;}_0x94fa35=_0x94fa35['isBefore'](_0x4d9793['start'])?_0x94fa35:_0x4d9793['start'],_0x5ed2d1=_0x5ed2d1['isAfter'](_0x4d9793['end'])?_0x5ed2d1:_0x4d9793['end'],_0x5b542c=Object['assign']({},_0x894a61['attributes']),_0x15f267?_0x4d9793['start']['isBefore'](_0x15f267['getFirstRange']()['start'])?(_0x15f267['removeMarkers'](),_0x15f267=_0x894a61):_0x894a61['removeMarkers']():_0x15f267=_0x894a61;}}}if(_0x15f267)return this['_setSuggestionRange'](_0x15f267,this['_model']['createRange'](_0x94fa35,_0x5ed2d1)),_0x15f267;{const _0x3a4d0c=_0x24c80d(),_0x3b5822=this['_model']['createRange'](_0x94fa35,_0x5ed2d1),_0x2ec545=_0x1b874c['id'],_0x5f407a=_0x400fc4?'deletion:'+_0x400fc4:'deletion',_0x2302e2=this['_setSuggestionData']({'id':_0x3a4d0c,'type':_0x5f407a,'createdAt':new Date(),'authorId':_0x2ec545,'attributes':_0x5b542c});return this['_addSuggestionMarker'](_0x5f407a,_0x3a4d0c,_0x2ec545,_0x3b5822),_0x2302e2;}}['markMultiRangeDeletion'](_0x4ec07b,_0x45771d='multi',_0x4aadc2={}){const _0x56d1ea=this['editor']['plugins']['get']('Users')['me'],_0x18d6fd=_0x4ec07b['map'](_0x347b34=>new rt(_0x347b34['start'],_0x347b34['end'])),_0x567078=new Set();this['_trackingSessionId']&&(_0x4aadc2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x23b0e7,meta:_0x258a63}of this['_findSuggestions'](_0x18d6fd,'insertion'))_0x258a63['isOwn']&&!_0x258a63['isNextTo']&&_0x567078['add'](_0x23b0e7);for(const _0x21a1f8 of _0x567078)if(_0x21a1f8['isMultiRange']){const _0x4417a7=_0x21a1f8['getRanges']();if(_0x21a1f8['attributes']&&_0x21a1f8['attributes']['skipNestingCheck']||_0x4417a7['every'](_0x20867d=>_0x18d6fd['some'](_0x379f5e=>_0x379f5e['containsRange'](_0x20867d,!0x0)))&&_0x21a1f8['discard'](),_0x18d6fd['every'](_0x1ad47f=>_0x4417a7['some'](_0x36e919=>_0x36e919['containsRange'](_0x1ad47f,!0x0)))){const _0x5ca0e7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45771d,'accept');return this['forceDefaultExecution'](()=>_0x5ca0e7(_0x4ec07b,null,_0x4aadc2)),null;}}else{const _0x4fd7b9=_0x21a1f8['getFirstRange']();if(_0x18d6fd['some'](_0x3967b9=>_0x3967b9['containsRange'](_0x4fd7b9,!0x0))&&_0x21a1f8['discard'](),_0x18d6fd['every'](_0x39fc10=>_0x4fd7b9['containsRange'](_0x39fc10,!0x0))){const _0x4b9574=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45771d,'accept');return this['forceDefaultExecution'](()=>_0x4b9574(_0x18d6fd,null,_0x4aadc2)),null;}}const _0x2249ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45771d,'join');let _0x223255=null;for(const _0x320cd9 of this['getSuggestions']())if(_0x320cd9['author']['id']==_0x56d1ea['id']&&_0x320cd9['isInContent']&&'deletion'==_0x320cd9['type']&&_0x320cd9['subType']==_0x45771d&&En(_0x320cd9,_0x4aadc2)&&(_0x2249ee(_0x320cd9['getRanges'](),_0x18d6fd)||_0x2249ee(_0x18d6fd,_0x320cd9['getRanges']()))){if(_0x223255){if(_0x320cd9['commentThread']&&_0x320cd9['commentThread']['length'])continue;for(const _0x769d0e of _0x320cd9['getRanges']())_0x223255['isIntersectingWithRange'](_0x769d0e)||_0x223255['addRange'](_0x769d0e);_0x320cd9['removeMarkers']();}else{_0x223255=_0x320cd9;for(const _0x2c4b52 of _0x18d6fd)_0x320cd9['isIntersectingWithRange'](_0x2c4b52)||_0x320cd9['addRange'](_0x2c4b52);}}if(_0x223255)return _0x223255;_0x567078['clear']();for(const {suggestion:_0x527dc5,meta:_0x149b8c}of this['_findSuggestions'](_0x18d6fd,'deletion'))_0x149b8c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x149b8c['containsRangeInObject']&&!_0x149b8c['isInsideObject'])&&En(_0x527dc5,_0x4aadc2)&&_0x567078['add'](_0x527dc5);for(const _0xa36609 of _0x567078){const _0x453c00=_0xa36609['getRanges']();if((!_0x4aadc2||!_0x4aadc2['skipNestingCheck'])&&_0x18d6fd['every'](_0x16fc7d=>_0x453c00['some'](_0x22f87c=>_0x22f87c['containsRange'](_0x16fc7d,!0x0))))return _0xa36609;_0xa36609['attributes']&&_0xa36609['attributes']['skipNestingCheck']||_0x453c00['every'](_0x177f5d=>_0x18d6fd['some'](_0x151062=>_0x151062['containsRange'](_0x177f5d,!0x0)))&&_0xa36609['discard']();}const _0x2d6520=_0x24c80d(),_0x1fed35=_0x56d1ea['id'],_0x288719='deletion:'+_0x45771d,_0x194f5e=this['_setSuggestionData']({'id':_0x2d6520,'type':_0x288719,'createdAt':new Date(),'authorId':_0x1fed35,'attributes':_0x4aadc2});for(const _0xab58c0 of _0x18d6fd)_0xab58c0['detach'](),_0xab58c0['isCollapsed']||'$graveyard'==_0xab58c0['root']['rootName']||this['_addSuggestionMarker'](_0x288719,_0x2d6520,_0x1fed35,_0xab58c0,yt['getMultiRangeId']());return _0x194f5e;}['markAttributeChange'](_0x1bf555,_0xb7e35f,_0x3bb2f9,_0x2198d2,_0x471a0a){if(_0x1bf555['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f7332=this['editor']['plugins']['get']('Users')['me']['id'],_0x15aa32=Array['from'](this['_suggestions']['values']())['filter'](_0x556f0=>'attribute'==_0x556f0['type']&&_0x556f0['data']['key']==_0xb7e35f&&_0x556f0['isIntersectingWithRange'](_0x1bf555));if(this['_trackingSessionId']&&(_0x471a0a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x197bf9=this['_findSuggestions'](_0x1bf555,'insertion')['filter'](({meta:_0x3bf7f1})=>_0x3bf7f1['isOwn']&&!_0x3bf7f1['isInsideObject']&&!_0x3bf7f1['isNextTo'])['map'](({suggestion:_0x33cf35})=>_0x33cf35);_0x15aa32['unshift'](..._0x197bf9);}const _0x2fa02e=new Map([[_0x1bf555,_0x3bb2f9]]);for(const _0x1f5268 of _0x15aa32){const _0x54bf8e='attribute'==_0x1f5268['type']?_0x1f5268['data']['oldValue']:void 0x0,_0x514a4f=_0x1f5268['getFirstRange'](),_0x5ab088=Array['from'](_0x2fa02e['keys']())['find'](_0x1faa41=>_0x1faa41['isIntersecting'](_0x514a4f));if(!_0x5ab088)continue;const _0x275b44=_0x5ab088['getDifference'](_0x514a4f);this['_suggestionsConversion']['isBlockAttribute'](_0xb7e35f)&&'insertion'==_0x1f5268['type']&&0x0!=_0x275b44['length']||(_0x2fa02e['delete'](_0x5ab088),_0x275b44['forEach'](_0x5c53f8=>{_0x2fa02e['set'](_0x5c53f8,_0x3bb2f9);}),'insertion'!=_0x1f5268['type']&&_0x54bf8e!=_0x2198d2&&_0x2fa02e['set'](_0x5ab088['getIntersection'](_0x514a4f),_0x54bf8e));}const _0x22bb63=[];for(const [_0x3920d3,_0x530cc0]of _0x2fa02e){const _0x33d4fc=_0x24c80d(),_0x4575cb={'key':_0xb7e35f,'oldValue':_0x530cc0,'newValue':_0x2198d2};_0xb7e35f['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':_0xb7e35f});const _0x3524d8=('attribute:'+_0xb7e35f+'|'+cn({'newValue':_0x2198d2}))['substring'](0x0,0x3c),_0x26e213=this['_setSuggestionData']({'id':_0x33d4fc,'type':_0x3524d8,'data':_0x4575cb,'createdAt':new Date(),'authorId':_0x2f7332,'attributes':_0x471a0a});_0x22bb63['push'](_0x26e213),this['_addSuggestionMarker'](_0x3524d8,_0x33d4fc,_0x2f7332,_0x3920d3);}return _0x22bb63;}['enableDefaultAttributesIntegration'](_0xf88ec6){this['enableCommand'](_0xf88ec6,(_0x205f98,..._0x2f10aa)=>{this['recordAttributeChanges'](()=>{_0x205f98(..._0x2f10aa);});});}['startTrackingSession'](_0x455f63){return this['_trackingSessionId']=void 0x0!==_0x455f63?_0x455f63:_0x24c80d(),this['_trackingSessionId'];}['_getAttributeKey'](_0xa02f08){return'attribute'==_0xa02f08['type']?_n(_0xa02f08['subType']):null;}['_applyOperationsAsSuggestions'](_0x5292b2){if(0x0==_0x5292b2['length'])return;const _0x5341e3=this['editor'],_0x4f4e7d=_0x5341e3['plugins']['get'](_0x30e621),_0xe8d69=[],_0x5f4a6a=_0x2488f3=>{const _0x1d8109=_0x2488f3['_aiSource'];return _0x1d8109?{'@ai':{'type':_0x1d8109}}:{};},_0x584a2f=(_0x2cda5f,_0x33de7c,_0x2bfe01)=>{for(let _0xb510f3=_0x33de7c;_0xb510f3<_0x2cda5f['operations']['length'];_0xb510f3++){const _0x4960c8=_0x2cda5f['operations'][_0xb510f3];'marker'===_0x4960c8['type']&&(_0x4960c8['_aiSource']=_0x2bfe01);}};_0x5341e3['model']['change'](_0x4a6b47=>{for(let _0x37bdbd=0x0;_0x37bdbd<_0x5292b2['length'];_0x37bdbd++){const _0x1ae95d=_0x5292b2[_0x37bdbd],_0x37393c=_0x1ae95d['_aiSource'],_0x34170a=_0x4a6b47['batch']['operations']['length'];if(_0x1ae95d['baseVersion']=_0x5341e3['model']['document']['version'],_0x1ae95d['isDocumentOperation']=!0x0,_0x4f4e7d['isMarkedRemoveOperation'](_0x1ae95d)){const _0x968f8c=_0x3dc5bc(_0x1ae95d['newRange'],_0x5341e3['model']);_0xe8d69['unshift']({'range':rt['fromRange'](_0x968f8c),'opAttributes':_0x5f4a6a(_0x1ae95d),'aiSource':_0x37393c});}else{switch(_0x1ae95d['type']){case'rename':{const _0x16caae=_0x1ae95d['oldName'],_0x5289ab=_0x1ae95d['newName'];if(_0x16caae==_0x5289ab)break;_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);const _0xc1e2e3='$elementName',_0x29aedd=_0x1ae95d['position'],_0x4ecdc4=_0x5341e3['model']['createRange'](_0x29aedd,_0x5341e3['model']['createPositionAt'](_0x29aedd['nodeAfter'],'end'));this['markAttributeChange'](_0x4ecdc4,_0xc1e2e3,_0x16caae,_0x5289ab,{..._0x5f4a6a(_0x1ae95d),'groupId':_0x24c80d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x57ff51=_0x1ae95d['oldValue'],_0x450e6b=_0x1ae95d['newValue'];if(_0x57ff51==_0x450e6b)break;_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);const _0x5a2ef0=_0x1ae95d['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5a2ef0))break;const _0x1b6484=_0x3dc5bc(_0x1ae95d['range'],_0x5341e3['model']);this['markAttributeChange'](_0x1b6484,_0x5a2ef0,_0x57ff51,_0x450e6b,{..._0x5f4a6a(_0x1ae95d),'groupId':_0x24c80d()});break;}case'insert':{if(_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d),_0x5292b2[_0x37bdbd+0x1]&&'move'==_0x5292b2[_0x37bdbd+0x1]['type'])break;const _0x14479d=_0x1ae95d['position'],_0xb01ce3=_0x1ae95d['howMany'],_0x4a519f=_0x3dc5bc(_0x5341e3['model']['createRange'](_0x14479d,_0x14479d['getShiftedBy'](_0xb01ce3)),_0x5341e3['model']);this['markInsertion'](_0x4a519f,null,{..._0x5f4a6a(_0x1ae95d)});break;}case'split':{_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);const _0x6f4e52=_0x1ae95d['splitPosition'],_0x50ea9a=_0x1ae95d['moveTargetPosition'],_0x532695=_0x5341e3['model']['createRange'](_0x6f4e52,_0x50ea9a);this['markInsertion'](_0x532695,null,{..._0x5f4a6a(_0x1ae95d)});break;}case'move':case'remove':_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);}_0x37393c&&_0x584a2f(_0x4a6b47['batch'],_0x34170a,_0x37393c);}}for(const {range:_0x551821,opAttributes:_0x4e3c0b,aiSource:_0x51deb7}of _0xe8d69){const _0x44f39a=_0x4a6b47['batch']['operations']['length'];_0x551821['detach'](),this['markDeletion'](_0x551821,null,{..._0x4e3c0b}),_0x51deb7&&_0x584a2f(_0x4a6b47['batch'],_0x44f39a,_0x51deb7);}});}['_setSuggestionRange'](_0x4aaf3e,_0x97787d){const _0x347659=_0x4aaf3e['getFirstMarker']();this['_model']['change'](_0x202bf0=>{_0x202bf0['updateMarker'](_0x347659,{'range':_0x97787d});});}['_addThreadToSuggestion'](_0x366b96){const _0x286404=_0x366b96['id'],_0x2e7cca=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x286404)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2e7cca,'threadId':_0x286404,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x38b565=this['_commentsRepository']['getCommentThread'](_0x286404);_0x38b565['unbind']('isRemovable'),_0x38b565['isRemovable']=!0x1,_0x366b96['commentThread']=_0x38b565;}['_checkSuggestionCorrectness'](_0x334bb8,_0x220b29,_0x5a3891,_0x38c660){if(_0x334bb8['type']!=_0x220b29||_0x334bb8['subType']!=_0x5a3891||_0x334bb8['creator']['id']!=_0x38c660)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xb0a0f9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x346bf1,_0x524048){const _0x4ce5cb=_0x346bf1['getFirstRange']();if(_0x524048['isEqual'](_0x4ce5cb))_0x346bf1['removeMarkers']();else{if(_0x4ce5cb['containsRange'](_0x524048)){const _0xd74b17=this['_model']['createPositionAt'](_0x524048['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x346bf1,this['_model']['createRange'](_0x4ce5cb['start'],_0xd74b17));const _0xaaf8a7=_0x24c80d(),_0x53e7a6=_0x346bf1['creator']['id'],_0x1b0a2e=_0x346bf1['type']+':'+_0x346bf1['subType'];this['_setSuggestionData']({'id':_0xaaf8a7,'type':_0x1b0a2e,'createdAt':new Date(),'authorId':_0x53e7a6,'data':_0x346bf1['data'],'attributes':_0x346bf1['attributes']});const _0x235a93=this['_model']['createPositionAt'](_0x524048['end']['parent'],'after'),_0x166cf6=this['_model']['createRange'](_0x235a93,_0x4ce5cb['end']);this['_addSuggestionMarker'](_0x1b0a2e,_0xaaf8a7,_0x53e7a6,_0x166cf6);}else{if(_0x4ce5cb['containsPosition'](_0x524048['start'])){const _0x4df6f0=this['_model']['createPositionAt'](_0x524048['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x346bf1,this['_model']['createRange'](_0x4ce5cb['start'],_0x4df6f0));}else{const _0x588446=this['_model']['createPositionAt'](_0x524048['end']['parent'],'after');this['_setSuggestionRange'](_0x346bf1,this['_model']['createRange'](_0x588446,_0x4ce5cb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x32c85b){for(const {suggestion:_0x585f63,meta:_0x57806d}of this['_findSuggestions'](_0x32c85b,'insertion')){if(!_0x57806d['isOwn'])continue;const _0x51c67e=_0x585f63['getRanges']();for(const _0x1d212f of _0x51c67e)if(!_0x32c85b['getDifference'](_0x1d212f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55fddd){return this['editor']['plugins']['get']('Users')['getUser'](_0x55fddd);}['_getExternalAuthor'](_0x9fce53){const _0x1cdaf3=this['editor']['plugins']['get']('Users'),_0x161a24=_0x24f18d('external:'+_0x9fce53),_0x1f795f=_0x1cdaf3['getUser'](_0x161a24);return _0x1f795f||_0x1cdaf3['addUser']({'id':_0x161a24,'name':_0x9fce53});}['_createSuggestion'](_0x2a0eab,_0x1fc6d5,_0x331dd3,_0x18b6be,_0x2bf21d,_0xd4f44){const _0x21d8ea=this['_getAuthorFromId'](_0x18b6be);if(!_0x21d8ea)throw new _0xb0a0f9('track-changes-user-not-found',this,{'authorId':_0x18b6be,'suggestionId':_0x331dd3});const _0x525c1e=this['_suggestionFactory']['buildSuggestion'](_0x2a0eab,_0x1fc6d5,_0x331dd3,_0x21d8ea,_0x2bf21d,_0x15d04d=>{this['_updateSuggestionData'](_0x331dd3,{'attributes':_0x15d04d});const _0x4fe579=this['getSuggestion'](_0x331dd3);this['_joinWithAdjacentSuggestions'](new Set([_0x4fe579])),this['_refreshSuggestionsChain'](new Set([_0x4fe579]));},_0xd4f44);return this['listenTo'](_0x525c1e,'accept',()=>{this['_updateSuggestionData'](_0x331dd3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x525c1e,'discard',()=>{this['_updateSuggestionData'](_0x331dd3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x331dd3,_0x525c1e),this['_suggestionState']['set'](_0x525c1e,'notReady'),_0x525c1e;}['_breakSuggestionMarker'](_0x2827af,_0x5ab67b,_0x2069a9){const _0x5d0f7e=_0x2827af['getFirstRange'](),_0x438389=_0x5d0f7e['start'],_0x2a9c0f=_0x5d0f7e['end'];this['_setSuggestionRange'](_0x2827af,this['_model']['createRange'](_0x438389,_0x5ab67b));const _0x50dfe4=_0x24c80d(),_0x583199=_0x2827af['creator']['id'],_0x2ae567=_0x2827af['type']+(_0x2827af['subType']?':'+_0x2827af['subType']:'');this['_setSuggestionData']({'id':_0x50dfe4,'type':_0x2ae567,'createdAt':new Date(),'authorId':_0x583199,'originalSuggestionId':_0x2827af['_originalSuggestionId']||_0x2827af['id'],'attributes':_0x2827af['attributes'],'data':_0x2827af['data']});const _0x937684=this['_getAttributeKey'](_0x2827af);('formatBlock'==_0x2827af['type']||_0x937684&&this['_suggestionsConversion']['isBlockAttribute'](_0x937684))&&(_0x2069a9=this['_model']['createPositionBefore'](_0x2069a9['parent'])),this['_addSuggestionMarker'](_0x2ae567,_0x50dfe4,_0x583199,this['_model']['createRange'](_0x2069a9,_0x2a9c0f));}['_findSuggestions'](_0x2e956d,_0x108299=null){const _0x535be3=[],_0x1ce11d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2e956d)||(_0x2e956d=[_0x2e956d]);for(const _0x3f57ea of this['getSuggestions']()){if(!_0x3f57ea['isInContent'])continue;if(_0x108299&&_0x3f57ea['type']!=_0x108299)continue;let _0x513416=!0x1;for(const _0x2d1c5a of _0x3f57ea['getRanges']()){for(const _0x13af60 of _0x2e956d){const _0x2a6e2a=_0x13af60['start']['isEqual'](_0x2d1c5a['end'])||_0x13af60['end']['isEqual'](_0x2d1c5a['start']);if(_0x2a6e2a||_0x13af60['getIntersection'](_0x2d1c5a)){const _0x5e6ee5=_0x13af60['containsRange'](_0x2d1c5a)&&rn(this['_model']['schema'],_0x2d1c5a['start'],_0x13af60),_0x1ec12f=_0x2d1c5a['containsRange'](_0x13af60)&&rn(this['_model']['schema'],_0x13af60['start'],_0x2d1c5a);_0x535be3['push']({'suggestion':_0x3f57ea,'meta':{'isOwn':_0x1ce11d==_0x3f57ea['author'],'isNextTo':_0x2a6e2a,'isInsideObject':_0x5e6ee5,'containsRangeInObject':_0x1ec12f}}),_0x513416=!0x0;break;}}if(_0x513416)break;}}return _0x535be3;}['_addSuggestionMarker'](_0x1fb727,_0x566ee4,_0x5b3db5,_0x44f3bd,_0x4d84da){this['_model']['change'](_0x32a686=>{let _0x59c36b='suggestion:'+_0x1fb727+':'+_0x566ee4+':'+_0x5b3db5;_0x4d84da&&(_0x59c36b=_0x59c36b+':'+_0x4d84da),_0x32a686['addMarker'](_0x59c36b,{'range':_0x44f3bd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x34b361){const _0x4859f8=_0x34b361['previous'],_0x464f21=_0x34b361['next'];_0x34b361['previous']=null,_0x34b361['next']=null,null!=_0x4859f8&&_0x4859f8['next']==_0x34b361&&(_0x4859f8['next']=_0x464f21),null!=_0x464f21&&_0x464f21['previous']==_0x34b361&&(_0x464f21['previous']=_0x4859f8),'ready'==this['_suggestionState']['get'](_0x34b361)&&(this['_suggestionState']['set'](_0x34b361,'removed'),this['fire']('suggestionUnloaded',_0x34b361,_0x4859f8,_0x464f21));}['_setSuggestionData'](_0x2af58f){const _0x14694f=_0x2af58f['id'],_0x1a8fdc=this['addSuggestionData'](_0x2af58f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5b22e3=this['editor']['plugins']['get']('PendingActions'),_0x47b04b=_0x1a8fdc['hasComments'],_0x4cc6df=_0x1a8fdc['subType']?_0x1a8fdc['type']+':'+_0x1a8fdc['subType']:_0x1a8fdc['type'],_0x4754f1=this['editor']['locale'],_0x175362=_0x5b22e3['add'](St(_0x4754f1,'PENDING_ACTION_SUGGESTION')),_0x9e0a6={'id':_0x14694f,'type':_0x4cc6df,'hasComments':_0x47b04b,'data':_0x2af58f['data']||null,'originalSuggestionId':_0x2af58f['originalSuggestionId']||null,'attributes':_0x1a8fdc['attributes']};this['_adapter']['addSuggestion'](_0x9e0a6)['then'](_0x5b1e4b=>{_0x1a8fdc['_saved']=!0x0,_0x5b22e3['remove'](_0x175362),_0x5b1e4b&&_0x5b1e4b['createdAt']&&(this['_suggestions']['get'](_0x14694f)['createdAt']=_0x5b1e4b['createdAt']);})['catch'](_0x57d3b5=>{throw _0x5722b1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1a8fdc['discard']();}),_0x1a8fdc['stopListening'](),this['_suggestions']['delete'](_0x1a8fdc['id']),this['_suggestionState']['delete'](_0x1a8fdc),_0x57d3b5;});}return _0x1a8fdc;}['_updateSuggestionData'](_0x315e98,_0x284c40){const _0x227be1=this['editor']['plugins']['get']('PendingActions'),_0x4dbec6=this['getSuggestion'](_0x315e98);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4dbec6['_saved']){const _0x2e7c67=_0x227be1['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x315e98,_0x284c40)['then'](()=>{_0x227be1['remove'](_0x2e7c67);});}else _0x4dbec6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x315e98,_0x284c40);});}}['_getSuggestionData'](_0x4efddd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xb0a0f9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4efddd);}['_handleNewSuggestionMarker'](_0x6c1018){const {id:_0x1e4c08,type:_0x31a42b,subType:_0x5b715a,authorId:_0x4c56b5}=tt(_0x6c1018),_0x40b78b=this['_suggestions']['get'](_0x1e4c08)||this['_createSuggestion'](_0x31a42b,_0x5b715a,_0x1e4c08,_0x4c56b5,{});switch(this['_checkSuggestionCorrectness'](_0x40b78b,_0x31a42b,_0x5b715a,_0x4c56b5),this['_suggestionState']['get'](_0x40b78b)){case'notReady':this['_getSuggestionData'](_0x1e4c08)['then'](_0x3c1b58=>{let _0x5c87fe=Promise['resolve']();_0x3c1b58['hasComments']&&(_0x5c87fe=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e4c08})),_0x5c87fe['then'](()=>{this['addSuggestionData'](_0x3c1b58)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40b78b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e4c08,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40b78b,'ready'),this['fire']('suggestionLoaded',_0x40b78b);break;case'ready':this['fire']('suggestionChanged',_0x40b78b);}return _0x40b78b['addMarkerName'](_0x6c1018),_0x40b78b;}['_refreshSuggestionsChain'](_0x3d091c){const _0x13f55f=Array['from'](_0x3d091c),_0x32e6d6=_0x13f55f['filter'](_0x151964=>'attribute'==_0x151964['type']);this['_refreshAttributeSuggestionsChain'](_0x32e6d6);const _0x3669c6=_0x13f55f['filter'](_0x57b572=>!_0x57b572['isMultiRange']&&'attribute'!=_0x57b572['type']),_0x16d208=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcb00ac=>!_0xcb00ac['isMultiRange']&&'attribute'!=_0xcb00ac['type']),_0x25187d=_0x16d208['filter'](_0x4ef946=>!_0x3d091c['has'](_0x4ef946)),_0x13840f=new Map(_0x16d208['map'](_0xca862=>[_0xca862,this['_suggestionFactory']['getSuggestionCallback'](_0xca862['type'],_0xca862['subType'],'chain')])),_0x4fe630=new Map(_0x16d208['map'](_0x205c3e=>[_0x205c3e,_0x205c3e['getFirstRange']()])),_0xde9bfa=new Set(),_0xbb6f3a=new Set();for(let _0x1a2fee=0x0;_0x1a2fee<_0x3669c6['length'];_0x1a2fee++)_0x5e6852(_0x3669c6[_0x1a2fee],_0x3669c6,_0x1a2fee+0x1);for(let _0x30222d=0x0;_0x30222d<_0x3669c6['length'];_0x30222d++)_0x5e6852(_0x3669c6[_0x30222d],_0x25187d,0x0);const _0x3f37ec=new Set();for(let _0x45abb2=0x0;_0x45abb2<_0x3669c6['length'];_0x45abb2++){const _0xfbe971=_0x3669c6[_0x45abb2];!_0xbb6f3a['has'](_0xfbe971)&&_0xfbe971['previous']&&(_0x3f37ec['add'](_0xfbe971['previous']),_0xfbe971['previous']['next']===_0xfbe971&&(_0xfbe971['previous']['next']=null),_0xfbe971['previous']=null),!_0xde9bfa['has'](_0xfbe971)&&_0xfbe971['next']&&(_0x3f37ec['add'](_0xfbe971['next']),_0xfbe971['next']['previous']===_0xfbe971&&(_0xfbe971['next']['previous']=null),_0xfbe971['next']=null);}function _0x5e6852(_0x172c5d,_0x5e695d,_0x15efb3){for(let _0x5dd690=_0x15efb3;_0x5dd690<_0x5e695d['length'];_0x5dd690++){const _0xfecc95=_0x2d8608(_0x172c5d,_0x5e695d[_0x5dd690]);_0xfecc95&&(_0xfecc95[0x0]['next']=_0xfecc95[0x1],_0xfecc95[0x1]['previous']=_0xfecc95[0x0],_0xde9bfa['add'](_0xfecc95[0x0]),_0xbb6f3a['add'](_0xfecc95[0x1]));}}function _0x2d8608(_0xca2db3,_0x361f5a){if(_0xca2db3['author']['id']!==_0x361f5a['author']['id'])return null;const _0x5814b3=_0x13840f['get'](_0xca2db3)(_0xca2db3,_0x361f5a,_0x4fe630['get'](_0xca2db3),_0x4fe630['get'](_0x361f5a));return _0x5814b3&&_0x13840f['get'](_0x361f5a)(_0xca2db3,_0x361f5a,_0x4fe630['get'](_0xca2db3),_0x4fe630['get'](_0x361f5a))?_0x5814b3[0x1]['commentThread']&&_0x5814b3[0x1]['commentThread']['length']?null:_0x5814b3:null;}_0x3f37ec['size']&&this['_refreshSuggestionsChain'](_0x3f37ec);}['_refreshAttributeSuggestionsChain'](_0x1a01a0){if(0x0==_0x1a01a0['length'])return;const _0x1a8127=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21b5f4=>'attribute'==_0x21b5f4['type']&&_0x21b5f4['_isDataLoaded']),_0x266043=[],_0x23dec0=new Map();for(const _0x33c046 of _0x1a8127){const _0x592a61=_0x24f18d(_0x33c046['attributes']);_0x23dec0['has'](_0x592a61)||(_0x23dec0['set'](_0x592a61,_0x266043['length']),_0x266043['push']([])),_0x266043[_0x23dec0['get'](_0x592a61)]['push'](_0x33c046);}!(function(){_0x266043['sort']((_0x4e8b,_0x231ffe)=>{const _0x2ae18c=_0x4e8b[0x0]['createdAt'],_0xe89ab1=_0x231ffe[0x0]['createdAt'];return _0x2ae18c==_0xe89ab1?_0x4e8b[0x0]['attributes']['groupId']<_0x231ffe[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ae18c<_0xe89ab1?-0x1:0x1;});for(const _0x4fdb8d of _0x266043)_0x4fdb8d['sort']((_0x48ddbf,_0x50baa9)=>_0x48ddbf['id']<_0x50baa9['id']?-0x1:0x1);}());for(let _0x2ed3a4=0x0;_0x2ed3a4<_0x266043['length'];_0x2ed3a4++){if(0x0==_0x266043[_0x2ed3a4]['length'])continue;const _0x1387ed=[];for(let _0x59d040=_0x2ed3a4+0x1;_0x59d040<_0x266043['length'];_0x59d040++)0x0!=_0x266043[_0x59d040]['length']&&_0x318733(_0x266043[_0x2ed3a4],_0x266043[_0x59d040])&&_0x1387ed['push'](_0x59d040);for(const _0x2a078a of _0x1387ed)_0x266043[_0x2ed3a4]=_0x266043[_0x2ed3a4]['concat'](_0x266043[_0x2a078a]),_0x266043[_0x2a078a]=[];}for(const _0x27d24b of _0x266043)for(let _0x45fc9c=0x0;_0x45fc9c<_0x27d24b['length'];_0x45fc9c++){const _0x3a8850=_0x27d24b[_0x45fc9c+0x1]||null;_0x27d24b[_0x45fc9c]['next']!==_0x3a8850&&(_0x27d24b[_0x45fc9c]['next']=_0x3a8850);}for(const _0x88790c of _0x266043)for(let _0x4e1b39=0x0;_0x4e1b39<_0x88790c['length'];_0x4e1b39++){const _0x7ad3f=_0x88790c[_0x4e1b39-0x1]||null;_0x88790c[_0x4e1b39]['previous']!==_0x7ad3f&&(_0x88790c[_0x4e1b39]['previous']=_0x7ad3f);}function _0x318733(_0x4e6565,_0x15475f){return(_0x4e6565[0x0]['attributes']['groupId']===_0x15475f[0x0]['attributes']['groupId']||_0x4e6565[0x0]['author']===_0x15475f[0x0]['author'])&&(!!function(_0x6c35f1,_0x42d223){return!_0x6c35f1['hasComments']&&!_0x42d223['hasComments']||(!_0x6c35f1['hasComments']||!_0x42d223['hasComments'])&&(!!(_0x6c35f1['hasComments']&&_0x42d223['createdAt']<_0x6c35f1['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x42d223['hasComments']&&_0x6c35f1['createdAt']<_0x42d223['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x4e6565[0x0],_0x15475f[0x0])&&(!!ct(lt(_0x4e6565[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x15475f[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x4e6565[0x0]['attributes']['groupId']==_0x15475f[0x0]['attributes']['groupId']||_0x4e6565[0x0]['attributes']['trackingSessionId']===_0x15475f[0x0]['attributes']['trackingSessionId']&&(!!_0x4e6565['every'](_0x3d2d9e=>_0x15475f['some'](_0x40908e=>_0x3d2d9e['getFirstRange']()['isEqual'](_0x40908e['getFirstRange']())))&&_0x15475f['every'](_0x591997=>_0x4e6565['some'](_0x428610=>_0x591997['getFirstRange']()['isEqual'](_0x428610['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x2479bb){const _0x30ab04=Array['from'](_0x2479bb),_0x1bd4c8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1fb755=_0x1bd4c8['filter'](_0xf03e70=>!_0x2479bb['has'](_0xf03e70)),_0x274c59=new Map(_0x30ab04['map'](_0x5ca595=>[_0x5ca595,this['_suggestionFactory']['getSuggestionCallback'](_0x5ca595['type'],_0x5ca595['subType'],'join')])),_0x278949=new Map(_0x1bd4c8['map'](_0x11212a=>[_0x11212a,_0x11212a['getRanges']()]));for(let _0x529a5f=0x0;_0x529a5f<_0x30ab04['length'];_0x529a5f++)if(_0x19f989(this,_0x30ab04[_0x529a5f],_0x30ab04,_0x529a5f+0x1))return!0x0;for(let _0x52adf2=0x0;_0x52adf2<_0x30ab04['length'];_0x52adf2++)if(_0x19f989(this,_0x30ab04[_0x52adf2],_0x1fb755,0x0))return!0x0;return!0x1;function _0x19f989(_0x275d88,_0x52d8b8,_0x23ab6c,_0x52ce32){for(let _0x2e10b6=_0x52ce32;_0x2e10b6<_0x23ab6c['length'];_0x2e10b6++){const _0x588b46=_0x23ab6c[_0x2e10b6];if(_0x588b46['type']!==_0x52d8b8['type']||_0x588b46['author']['id']!==_0x52d8b8['author']['id']||_0x588b46['subType']!==_0x52d8b8['subType'])continue;if(!mn(_0x52d8b8,_0x588b46))continue;if('attribute'==_0x52d8b8['type']&&_0x52d8b8['data']['oldValue']!=_0x588b46['data']['oldValue'])continue;if('attribute'==_0x52d8b8['type']&&_0x275d88['_suggestionsConversion']['isBlockAttribute'](_0x52d8b8['data']['key']))continue;if('formatBlock'==_0x52d8b8['type']){const _0x1238e4=_0x275d88['editor']['model'],_0x4a20e6=_0x52d8b8['getContainedElement']();if(_0x4a20e6&&(_0x1238e4['schema']['isObject'](_0x4a20e6)||_0x1238e4['schema']['isLimit'](_0x4a20e6)))continue;}const _0x275fc5=_0x274c59['get'](_0x52d8b8),_0xb3cee7=_0x278949['get'](_0x52d8b8),_0x586c11=_0x278949['get'](_0x588b46),_0xa398b2=_0x52d8b8['commentThread']&&_0x52d8b8['commentThread']['length'],_0x9f9dd=_0x588b46['commentThread']&&_0x588b46['commentThread']['length'];if(!_0xa398b2&&_0x275fc5(_0x586c11,_0xb3cee7))return _0x275d88['_joinSuggestions'](_0x588b46,_0x52d8b8),_0x278949['delete'](_0x52d8b8),!0x0;if(!_0x9f9dd&&_0x275fc5(_0xb3cee7,_0x586c11))return _0x275d88['_joinSuggestions'](_0x52d8b8,_0x588b46),_0x278949['delete'](_0x588b46),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14f8af,_0x43f30f){if(_0x14f8af['isMultiRange']){for(const _0x4d5929 of _0x43f30f['getRanges']())_0x14f8af['addRange'](_0x4d5929);}else{const _0x52f5f1=_0x43f30f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14f8af,this['_model']['createRange'](_0x14f8af['getFirstRange']()['start'],_0x52f5f1));}_0x43f30f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1f99cd,_0x249d83,_0x53deca){const _0x3bf6fa=_0x1f99cd['startsWith']('format')||_0x1f99cd['startsWith']('attribute')?'FORMATTING':_0x1f99cd['toUpperCase']();return St(this['editor']['locale'],_0x249d83+'_'+_0x3bf6fa+'_SUGGESTION_ANNOUNCEMENT',_0x53deca);}['_initAriaMarkerChangeAnnouncements'](){const _0xfba789=this['editor'];if(!_0xfba789['ui'])return;const {ariaLiveAnnouncer:_0x28f071}=_0xfba789['ui'];et(this['_model'],({left:_0x49ed71,entered:_0x4dc90e})=>{for(const _0x41888e of _0x49ed71){const {group:_0x49f48e,type:_0x2fe9dc}=tt(_0x41888e['name']);if('suggestion'===_0x49f48e){_0x28f071['announce'](this['_getMarkerAnnouncementText'](_0x2fe9dc,'LEAVE'));break;}}for(const _0x5b1255 of _0x4dc90e){const {group:_0x1aabae,type:_0xa32cb4}=tt(_0x5b1255['name']);if('suggestion'===_0x1aabae){_0x28f071['announce'](this['_getMarkerAnnouncementText'](_0xa32cb4,'ENTER',_0x4b7938(_0x525bb2)));break;}}});}['_processAttributeChanges'](_0x1b391e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2bcf9e=this['editor'],_0x39b6d8=_0x2bcf9e['model']['document']['differ']['getChanges']();if(0x0==_0x39b6d8['length'])return!0x1;const _0x2f5f47=[],_0x24e835=_0x39b6d8['filter'](_0x4afada=>'attribute'==_0x4afada['type']),_0x5ae277=_0x39b6d8['filter'](_0x218d3d=>'insert'==_0x218d3d['type']&&'$text'!=_0x218d3d['name']),_0x3267b3=_0x39b6d8['filter'](_0x26aa23=>'remove'==_0x26aa23['type']&&'$text'!=_0x26aa23['name']);for(const _0x5efd7d of _0x24e835)_0x2f5f47['push']({'key':_0x5efd7d['attributeKey'],'newValue':_0x5efd7d['attributeNewValue'],'oldValue':_0x5efd7d['attributeOldValue'],'range':hn(_0x5efd7d['range'],_0x2bcf9e['model'])});for(const _0x5f1a69 of _0x5ae277){const _0x5e5097=_0x3267b3['find'](_0x379e37=>_0x379e37['position']['isEqual'](_0x5f1a69['position']));_0x5e5097&&_0x2f5f47['push']({'key':en,'newValue':_0x5f1a69['name'],'oldValue':_0x5e5097['name'],'range':_0x2bcf9e['model']['createRangeOn'](_0x5f1a69['position']['nodeAfter'])});}return 0x0!=_0x2f5f47['length']&&this['_reduceExistingSuggestions'](_0x1b391e,_0x2f5f47);}['_processAttributeSuggestions'](_0x44b57c){let _0xa46ceb=!0x1;const _0x7143f9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x395e59=>_0x395e59['data']['newRange']&&_0x395e59['name']['startsWith']('suggestion:attribute:'));for(const _0x2612a3 of _0x7143f9){const {subType:_0x5c1cb8,id:_0x4cf881}=tt(_0x2612a3['name']),_0x3029ac=_0x5c1cb8['split']('|')[0x0];for(const _0x592b34 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x592b34['id']!=_0x4cf881&&'attribute'==_0x592b34['type']&&_0x592b34['data']&&_0x592b34['data']['key']==_0x3029ac&&_0x592b34['getFirstRange']()['isIntersecting'](_0x2612a3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x592b34,_0x2612a3['data']['newRange'],_0x44b57c),_0xa46ceb=!0x0);}return _0xa46ceb;}['recordAttributeChanges'](_0x11dc81){this['_recordAttributeSuggestions']=!0x0,_0x11dc81();}['_reduceExistingSuggestions'](_0x4eacf9,_0x3bb0af){if(0x0==_0x3bb0af['length'])return!0x1;let _0x1f30e1=!0x1;for(const _0x2e0e08 of _0x3bb0af){const _0x192e66=this['_findSuggestions'](_0x2e0e08['range'],'attribute')['filter'](_0x4cece5=>!_0x4cece5['meta']['isNextTo'])['map'](_0x2b553d=>_0x2b553d['suggestion']),_0x81ecad=_0x24f18d({'newValue':_0x2e0e08['newValue']});_0x192e66['filter'](_0x1b6aab=>{const [_0x56bd4a,_0x2d0868]=_0x1b6aab['subType']['split']('|');return _0x56bd4a==_0x2e0e08['key']&&_0x2d0868!=_0x81ecad;})['forEach'](_0x192322=>{this['_reduceSuggestionAttributeRange'](_0x192322,_0x2e0e08['range'],_0x4eacf9),_0x1f30e1=!0x0;});}return _0x1f30e1;}['_reduceSuggestionAttributeRange'](_0x843c01,_0x542c6d,_0x146f4b){const _0x2a2f34=_0x843c01['getFirstRange']()['getDifference'](_0x542c6d);0x0!==_0x2a2f34['length']?0x1!==_0x2a2f34['length']?this['_breakSuggestionMarker'](_0x843c01,_0x542c6d['start'],_0x542c6d['end']):this['_setSuggestionRange'](_0x843c01,_0x2a2f34[0x0]):_0x146f4b['removeMarker'](_0x843c01['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d0670){this['_editor']=_0x3d0670,this['_model']=_0x3d0670['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x49ba14,_0x125801,_0x1fe92c,_0x61c5da,_0x2c9607,_0x50974b,_0x1e17d2){return new yt(this['_model'],{'type':_0x49ba14,'subType':_0x125801,'id':_0x1fe92c,'originalSuggestionId':_0x1e17d2,'author':_0x61c5da,'creator':_0x61c5da,'attributes':_0x2c9607,'onAttributesChange':_0x50974b,'onAccept':(..._0x3f340e)=>this['getSuggestionCallback'](_0x49ba14,_0x125801,'accept')(..._0x3f340e),'onDiscard':(..._0x5f3f14)=>this['getSuggestionCallback'](_0x49ba14,_0x125801,'discard')(..._0x5f3f14)});}['registerCustomCallback'](_0xb72c98,_0x5077ab,_0x48a94c,_0x506370){const _0x4a3a2e=_0xb72c98+':'+_0x5077ab+':'+_0x48a94c;this['_customCallbacks']['set'](_0x4a3a2e,_0x506370);}['getSuggestionCallback'](_0x4d8688,_0x2cff4f,_0x39b770){const _0x5df434=_0x4d8688+':'+_0x2cff4f+':'+_0x39b770;return this['_customCallbacks']['get'](_0x5df434)||this['_defaultCallbacks']['get'](_0x4d8688+':'+_0x39b770);}['_registerDefaultCallbacks'](){const _0x2eac45=()=>!0x1,_0x25d1ca=_0x80bfd9=>{_0x80bfd9['sort']((_0x1138d0,_0x2adbbb)=>_0x1138d0['start']['isBefore'](_0x2adbbb['start'])?0x1:-0x1),this['_model']['change'](_0x540c1a=>{for(const _0x3ecc64 of _0x80bfd9){let _0x792ce7;_0x792ce7=_0x3ecc64['end']['isAtEnd']&&_0x3ecc64['end']['parent']==_0x3ecc64['start']['nodeAfter']?_0x540c1a['createSelection'](_0x3ecc64['start']['nodeAfter'],'on'):_0x540c1a['createSelection'](_0x3ecc64),this['_model']['deleteContent'](_0x792ce7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x38896a=(_0x326a01,_0x184230)=>{_0x184230&&this['_model']['change'](_0x399fcb=>{const {commandName:_0x15de9a,commandParams:_0x19c9f2=[]}=_0x184230,_0x4eb4a9=_0x326a01['map'](_0x4365ac=>(on(_0x4365ac)&&(_0x4365ac=this['_model']['createRange'](_0x4365ac['end'])),_0x4365ac))['filter'](_0x5c0648=>'$graveyard'!==_0x5c0648['root']['rootName']);if(_0x4eb4a9['length']<0x1)return;const _0x3148a5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x529d8f=>rt['fromRange'](_0x529d8f));_0x399fcb['setSelection'](_0x4eb4a9);for(const _0xec0eab of this['_editor']['commands']['commands']())_0xec0eab['refresh']();_0x19c9f2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15de9a,..._0x19c9f2);const _0x5da1f9=_0x3148a5['filter'](_0x8248ae=>'$graveyard'!=_0x8248ae['root']['rootName']);_0x5da1f9['length']>0x0&&_0x399fcb['setSelection'](_0x5da1f9);for(const _0xbe3768 of _0x3148a5)_0xbe3768['detach']();});},_0x23e142=(_0x48e29d,_0x37eb68)=>0x1==_0x48e29d['length']&&0x1==_0x37eb68['length']&&_0x48e29d[0x0]['end']['isEqual'](_0x37eb68[0x0]['start']),_0xb89d9c=(_0x3e36a5,_0x47f1f2,_0x153c71,_0x3c0890)=>fn(_0x3e36a5,_0x47f1f2,_0x153c71,_0x3c0890)?[_0x3e36a5,_0x47f1f2]:fn(_0x47f1f2,_0x3e36a5,_0x3c0890,_0x153c71)?[_0x47f1f2,_0x3e36a5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2eac45),this['_defaultCallbacks']['set']('insertion:discard',_0x25d1ca),this['_defaultCallbacks']['set']('insertion:join',_0x23e142),this['_defaultCallbacks']['set']('insertion:chain',_0xb89d9c),this['_defaultCallbacks']['set']('deletion:accept',_0x25d1ca),this['_defaultCallbacks']['set']('deletion:discard',_0x2eac45),this['_defaultCallbacks']['set']('deletion:join',_0x23e142),this['_defaultCallbacks']['set']('deletion:chain',_0xb89d9c),this['_defaultCallbacks']['set']('formatInline:accept',_0x38896a),this['_defaultCallbacks']['set']('formatInline:discard',_0x2eac45),this['_defaultCallbacks']['set']('formatInline:join',_0x23e142),this['_defaultCallbacks']['set']('formatInline:chain',_0x2eac45),this['_defaultCallbacks']['set']('formatBlock:accept',_0x38896a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2eac45),this['_defaultCallbacks']['set']('formatBlock:join',_0x23e142),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2eac45),this['_defaultCallbacks']['set']('attribute:accept',_0x2eac45),this['_defaultCallbacks']['set']('attribute:discard',(_0x294c04,_0x4fc93e)=>{if(!_0x4fc93e)return;const _0x20aee0=this['_editor']['plugins']['get'](_0x4df9c4);this['_model']['change'](_0x141cc4=>{if('$elementName'==_0x4fc93e['key'])for(const _0xdc6467 of _0x294c04){const _0x4f8bc2=_0xdc6467['start']['nodeAfter'],_0x29c28f=_0x4fc93e['oldValue'];_0x141cc4['rename'](_0x4f8bc2,_0x29c28f);}else{if(_0x20aee0['isBlockAttribute'](_0x4fc93e['key'])){for(const _0x2eb45d of _0x294c04)void 0x0!==_0x4fc93e['oldValue']?_0x141cc4['setAttribute'](_0x4fc93e['key'],_0x4fc93e['oldValue'],_0x2eb45d['start']['nodeAfter']):_0x141cc4['removeAttribute'](_0x4fc93e['key'],_0x2eb45d['start']['nodeAfter']);}else{for(const _0x27bee2 of _0x294c04)_0x4fc93e['oldValue']?_0x141cc4['setAttribute'](_0x4fc93e['key'],_0x4fc93e['oldValue'],_0x27bee2):_0x141cc4['removeAttribute'](_0x4fc93e['key'],_0x27bee2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x23e142);}};function rn(_0x367770,_0x2c565a,_0x553e3a){for(const _0x2da69d of _0x2c565a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2da69d['root']==_0x2da69d)return!0x1;if(!_0x553e3a['containsItem'](_0x2da69d))return!0x1;if(_0x367770['isObject'](_0x2da69d)||_0x367770['isLimit'](_0x2da69d))return!0x0;}return!0x1;}function on(_0x116862){return _0x116862['end']['parent']==_0x116862['start']['nodeAfter']&&_0x116862['end']['isAtStart'];}function an(_0x3bbde1,_0x37111c,_0x1a80e2,_0x44cba2){const _0x400768=_0x3919ef=>!_0x3919ef['item']['is']('$textProxy')&&!_0x44cba2['isObject'](_0x3919ef['item']),_0x283fb7=_0x3bbde1['start']['getLastMatchingPosition'](_0x400768),_0x120a05=_0x3bbde1['end']['getLastMatchingPosition'](_0x400768,{'direction':'backward'});return(!_0x3bbde1['start']['isEqual'](_0x283fb7)||!_0x3bbde1['end']['isEqual'](_0x120a05))&&(_0x283fb7['isBefore'](_0x120a05)?_0x1a80e2['updateMarker'](_0x37111c,{'range':_0x1a80e2['createRange'](_0x283fb7,_0x120a05)}):_0x1a80e2['removeMarker'](_0x37111c),!0x0);}function cn(_0x21e5dd){return _0x24f18d(_0x21e5dd);}function ln(_0xe21a3f){const _0x4cc216=_0xe21a3f['start']['nodeAfter'];return _0x4cc216&&_0x4cc216['is']('element');}function un(_0x4e4a6f){return on(_0x4e4a6f)||function(_0x263936){return _0x263936['start']['parent']==_0x263936['end']['nodeBefore']&&_0x263936['start']['isAtEnd'];}(_0x4e4a6f);}function dn(_0x20b0fa,_0x5665bc){try{const _0x992f61=_0x20b0fa['getRange']();for(const _0x50f79f of _0x5665bc)if(_0x20b0fa!==_0x50f79f&&_0x992f61&&_0x992f61['isIntersecting'](_0x50f79f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x2b85dd,_0x372ea7){return null==_0x2b85dd['end']['nodeBefore']&&_0x2b85dd['end']['parent']==_0x2b85dd['start']['nodeAfter']?gn(_0x2b85dd['start']['nodeAfter'],_0x372ea7):_0x2b85dd;}function gn(_0x51b5e9,_0x53c1b2){const _0x43a161=_0x53c1b2['schema']['isObject'](_0x51b5e9)||_0x53c1b2['schema']['isSelectable'](_0x51b5e9);return _0x53c1b2['createRange'](_0x53c1b2['createPositionAt'](_0x51b5e9,'before'),_0x43a161?_0x53c1b2['createPositionAfter'](_0x51b5e9):_0x53c1b2['createPositionAt'](_0x51b5e9,'end'));}function fn(_0x3f0209,_0x570f14,_0x396509,_0x41e5ce){return!!mn(_0x3f0209,_0x570f14)&&_0x396509['end']['isEqual'](_0x41e5ce['start']);}function mn(_0x473f57,_0x16cb96){if(!_0x473f57['_isDataLoaded']||!_0x16cb96['_isDataLoaded'])return!0x1;const _0x1b4318=new Set(Object['keys'](_0x473f57['attributes'])),_0x3c46ad=new Set(Object['keys'](_0x16cb96['attributes']));if(_0x1b4318['delete']('groupId'),_0x3c46ad['delete']('groupId'),0x0==_0x1b4318['size']&&0x0==_0x3c46ad['size'])return!0x0;if(_0x1b4318['size']!=_0x3c46ad['size'])return!0x1;const _0x4b0bdc={..._0x473f57['attributes']},_0x5ea055={..._0x16cb96['attributes']};return delete _0x4b0bdc['groupId'],delete _0x5ea055['groupId'],JSON['stringify'](_0x4b0bdc)==JSON['stringify'](_0x5ea055);}function En(_0x389e3b,_0x5202b9){const _0x23d803=Tn(_0x389e3b['attributes']),_0x265758=Tn(_0x5202b9);if(!_0x389e3b['_isDataLoaded'])return!0x1;if(!ct(_0x23d803['@ai'],_0x265758['@ai']))return!0x1;for(const _0x296d64 of Object['keys'](_0x265758))if(!ct(_0x23d803[_0x296d64],_0x265758[_0x296d64]))return!0x1;return!0x0;}function Tn(_0x215e8b){const _0x3d2993=Object['assign']({},_0x215e8b);return delete _0x3d2993['skipNestingCheck'],delete _0x3d2993['tablePasteChainId'],_0x3d2993;}function _n(_0x1a0105){return _0x1a0105['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
26
+ _0x41a589();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2296da,_0xef579a,_0x2d675b,_0x463705){super(),this['model']=_0xef579a,this['view']=_0x2d675b,this['commentThreadController']=_0x463705,this['_editor']=_0x2296da,this['_acceptCommand']=_0x2296da['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2296da['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ee0ca,_0x381326)=>_0x3ee0ca||_0x381326),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x140cf4=>_0x140cf4&&this['_editor']['model']['canEditAt'](_0xef579a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x525761=>_0x525761&&this['_editor']['model']['canEditAt'](_0xef579a['getRanges']())),this['_pendingAction']=null,_0x2d675b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2d675b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2d675b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2d675b,'change:isDirty',()=>{_0x2d675b['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 _0x1d053a=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1d053a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x359f90{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d3f68,_0x5a2fb3,_0x3336cf,_0x103070){super(_0x4d3f68),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48d7c9(_0x4d3f68,St(_0x4d3f68,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a2fb3['authoredAt']),this['bind']('authoredAt')['to'](_0x5a2fb3),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',_0x5a2fb3,'authoredAt',this,'descriptionParts',(_0x106286,_0x36808d,_0x59dff8)=>{const _0x180165=_0x59dff8['map'](_0x3a4d28=>pt(_0x3a4d28['content']))['join']('.\x20')+'.',_0x2b3e49=_0x5a2fb3['aiSource']&&'author'===_0x103070['showAISource']?_0x103070['aiAuthor']['name']:_0x5a2fb3['author']['name'],_0xc74880=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x106286-0x1,_0x2b3e49,_0x36808d?_0x103070['formatDateTime'](_0x36808d):'',new DOMParser()['parseFromString'](_0x180165,'text/html')['body']['textContent']]);return _0x5a2fb3['aiSource']&&'pill'===_0x103070['showAISource']?_0xc74880+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0xc74880;}),this['focusables']=new _0x4aa534(),this['focusTracker']=new _0x27d278(),this['keystrokes']=new _0x2b5be1(),this['focusCycler']=new _0x3b07c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x68fe50=>_0x68fe50['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a2fb3,this['_localUser']=_0x3336cf,this['_config']=_0x103070,_0x103070['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x21d6af(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1346d2}=this['_config'];this['commentsListView']=new _0x1346d2(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',_0x30c5cd=>_0x30c5cd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44eab,_0x329540)=>_0x44eab||!!_0x329540);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x130d22}=this['_config'],_0x3f54c4=new _0x130d22(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3372ca=_0x3f54c4['commentInputView'];return _0x3f54c4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3372ca,'value',(_0x2a9aa0,_0x3780e3,_0x1a8830)=>!!_0x1a8830||_0x2a9aa0&&!_0x3780e3),_0x3372ca['on']('submit',(_0x2988bf,_0xd21c49)=>{this['fire']('addComment',_0xd21c49),_0x3372ca['editor']['setData']('');}),_0x3372ca['on']('cancel',()=>this['focus']()),_0x3372ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f54c4;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x171754,_0x591c30,_0x1c4d76,_0x5acbf3){super(_0x171754,_0x591c30,_0x1c4d76,_0x5acbf3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a5b3b=>_0x2a5b3b&&_0x2a5b3b[0x0]?_0x2a5b3b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x382af2,_0x1297d6)=>{let _0x520cfe='';for(const _0x5ae551 of _0x382af2)_0x520cfe+='<p>'+pt(_0x5ae551['content'],_0x5ae551['color'])+'</p>';return _0x1297d6?_0x520cfe:nt(_0x520cfe,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5acbf3['SuggestionView'](_0x171754,_0x591c30,{'formatDateTime':_0x5acbf3['formatDateTime'],'showAISource':_0x5acbf3['showAISource'],'aiAuthor':_0x5acbf3['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x40e62a=this['bindTemplate'],_0x134c94=[this['suggestionView']];return this['commentsListView']&&_0x134c94['push'](this['commentsListView']),this['commentThreadInputView']&&_0x134c94['push'](this['commentThreadInputView']),_0x134c94['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x40e62a['if']('isActive','ck-suggestion-wrapper--active'),_0x40e62a['to']('type',_0x1ae24c=>'ck-suggestion-'+_0x1ae24c),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':_0x40e62a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x134c94};}['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));}},bn=class extends _0x359f90{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1a4e95,_0x19718e,_0x26ba2b){super(_0x1a4e95),this['_model']=_0x19718e,this['_config']=_0x26ba2b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x19718e),this['acceptButton']=this['_createButton'](St(_0x1a4e95,'Accept\x20suggestion'),_0x50f8b3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x1a4e95,'Discard\x20suggestion'),_0x376450,'ck-suggestion--discard','discardSuggestion','sw');const _0x591736=!!_0x19718e['aiSource']&&'author'===_0x26ba2b['showAISource'],_0x129c2f=_0x591736?this['_createAIUser'](_0x26ba2b['aiAuthor']):_0x19718e['author'],_0x15da2a=_0x591736&&!_0x26ba2b['aiAuthor']['avatar']?_0x5bcc5c:void 0x0;this['userView']=new _0x5c1d3d(_0x1a4e95,_0x129c2f,this['getUserViewNotificationText'](),_0x15da2a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4aa534([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x27d278(),this['keystrokes']=new _0x2b5be1(),this['focusCycler']=new _0x3b07c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xfaa24=>_0xfaa24['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x491bac=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x491bac['innerHTML']=this['description'],this['on']('change:description',(_0xe1eda3,_0x1fc1d8,_0xa718b6)=>{_0x491bac['innerHTML']=_0xa718b6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e8a91=this['bindTemplate'],_0x365c0a=[{'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':_0x3e8a91['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e8a91['to']('authoredAt',_0x801ae8=>this['_config']['formatDateTime'](_0x801ae8))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x365c0a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5d14aa=new _0x5e5110(this['locale']);_0x5d14aa['set']({'icon':_0x5207dc,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x365c0a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5d14aa]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x365c0a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x4482c3){return new _0x360be7({'id':'ck-ai-author','name':_0x4482c3['name'],'avatar':_0x4482c3['avatar'],'color':new _0x1cc976(0x0)});}['_createButton'](_0x2b06ed,_0x6b51d5,_0x48d5c6,_0x1e5ad0,_0x59098f){const _0x3900de=new _0x2bc11b(this['locale']);return _0x3900de['set']({'label':_0x2b06ed,'icon':_0x6b51d5,'tooltip':!0x0,'tooltipPosition':_0x59098f}),_0x3900de['extendTemplate']({'attributes':{'class':_0x48d5c6}}),_0x3900de['on']('execute',()=>{this['fire'](_0x1e5ad0,this['_model']['id']);}),_0x3900de;}['_setupKeyboardNavigation'](){const _0x208823=this['element'];this['keystrokes']['listenTo'](_0x208823);for(const _0x2710c4 of this['focusables'])this['focusTracker']['add'](_0x2710c4['element']),this['keystrokes']['listenTo'](_0x2710c4['element']);this['keystrokes']['set']('enter',(_0x6fba88,_0x5cf487)=>{_0x208823===_0x6fba88['target']&&(this['focusCycler']['focusFirst'](),_0x5cf487());}),this['keystrokes']['set']('esc',(_0x5ab2f9,_0x54d783)=>{_0x208823!==_0x5ab2f9['target']&&(this['focus'](),_0x54d783());});}},kn=class extends _0x2dafdc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x30610e,_0xe4cf4f,_0x3a4036,_0x3eea2f];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc7b8f5){super(_0xc7b8f5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4dbf5d=this['editor']['config'];_0x4dbf5d['define']('trackChanges.SuggestionThreadView',An),_0x4dbf5d['define']('trackChanges.SuggestionView',bn),_0x4dbf5d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4dbf5d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4f7b49,_0x19c430){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2a28b1,_0x768e6e]of this['_handleControllerBuffer']){const _0x19ffd=this['_suggestionToController']['has'](_0x2a28b1);_0x19ffd||_0x768e6e?_0x19ffd&&_0x768e6e&&this['_destroyController'](_0x2a28b1):this['_initializeController'](_0x2a28b1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x3eea2f)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4f7b49,_0x19c430);}['init'](){const _0x5d7076=this['editor'],_0x29c6dc=_0x5d7076['plugins']['get'](nn),_0x2075eb=_0x5d7076['plugins']['get'](_0x3a4036),_0x36b65d=_0x5d7076['plugins']['get'](_0x3eea2f),_0x5c552d=_0x5d7076['plugins']['get'](_0xe4cf4f);this['_addUIComponentsToFactory'](),_0x36b65d['addSourceCollector'](()=>{const _0x5f446d=[];for(const [_0x115a07,_0x7ba81a]of Array['from'](this['_suggestionToController'])){const _0x3af180=_0x115a07['getAllAdjacentSuggestions'](),_0x4f516a=[];for(const _0x3daba9 of _0x3af180){if(!_0x3daba9['isInContent'])continue;if(_0x3daba9['isMultiRange']){_0x4f516a['push'](..._0x3daba9['getRanges']());continue;}const _0x259b48=_0x3daba9['getFirstRange']();if(_0x4f516a['length']>0x0){const _0x9ce702=_0x4f516a[0x0]['getJoined'](_0x259b48);if(_0x9ce702){_0x4f516a[0x0]=_0x9ce702;continue;}}_0x4f516a['push'](_0x259b48);}_0x5f446d['push']([_0x7ba81a['view'],_0x4f516a]);}return _0x5f446d;}),this['listenTo'](_0x29c6dc,'suggestionLoaded',(_0x7b230,_0x5ad8d2)=>{this['listenTo'](_0x5ad8d2,'change:previous',(_0x29e8e9,_0x1c84f8,_0x2cd42e,_0x5c98d7)=>{_0x5ad8d2['isInContent']&&(null==_0x2cd42e?(this['_updateController'](_0x5c98d7['head']),this['_handleSuggestionControllerDelayed'](_0x5ad8d2,!0x1)):(this['_updateController'](_0x2cd42e['head']),null==_0x5c98d7&&this['_handleSuggestionControllerDelayed'](_0x5ad8d2,!0x0)));}),null!==_0x5ad8d2['previous']?this['_updateController'](_0x5ad8d2['head']):this['_handleSuggestionControllerDelayed'](_0x5ad8d2,!0x1);}),this['listenTo'](_0x29c6dc,'suggestionUnloaded',(_0x45ae02,_0x54ceaa,_0x588ae5)=>{this['stopListening'](_0x54ceaa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x54ceaa),this['_suggestionToController']['has'](_0x54ceaa)&&this['_destroyController'](_0x54ceaa),_0x588ae5&&this['_updateController'](_0x588ae5['head']);}),this['listenTo'](_0x29c6dc,'suggestionChanged',(_0x2b535e,_0x504d73)=>{this['_updateController'](_0x504d73);}),this['listenTo'](_0x2075eb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c552d,'addComment',(_0x235747,{threadId:_0x3475ca,isFromAdapter:_0x343678})=>{if(_0x343678||!_0x29c6dc['hasSuggestion'](_0x3475ca))return;const _0x2a9901=_0x29c6dc['getSuggestion'](_0x3475ca);this['_suggestionToController']['get'](_0x2a9901)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46722d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18ff04;for(const _0x27ec11 in _0x46722d){const _0x59b816=_0x27ec11,_0xfea42c=_0x46722d[_0x59b816];if('trackChangesLicenseKeyValid'==_0xfea42c||'trackChangesLicenseKeyInvalid'==_0xfea42c||'trackChangesLicenseKeyExpired'==_0xfea42c||'trackChangesLicenseKeyDomainLimit'==_0xfea42c||'trackChangesLicenseKeyNotAllowed'==_0xfea42c||'trackChangesLicenseKeyEvaluationLimit'==_0xfea42c||'trackChangesLicenseKeyUsageLimit'==_0xfea42c){delete _0x46722d[_0x59b816],_0x18ff04=_0xfea42c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x18ff04&&_0x46722d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x18ff04&&_0x46722d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x18ff04&&_0x46722d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x18ff04&&_0x46722d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x18ff04&&_0x46722d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x18ff04&&_0x46722d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4e3b88){const _0x5a5fc9=this['_suggestionToController']['get'](_0x4e3b88);return _0x5a5fc9&&this['editor']['plugins']['get'](_0x3a4036)['getByInnerView'](_0x5a5fc9['view'])||null;}['getSuggestionForAnnotation'](_0x35ad90){const _0x4248f2=this['_viewToController']['get'](_0x35ad90['innerView']);return _0x4248f2?_0x4248f2['model']:null;}['_refreshActiveMarkers'](){const _0x3255f0=this['editor']['plugins']['get'](_0x3a4036),_0x356725=this['editor']['plugins']['get'](nn),_0x143cd3=Array['from'](_0x3255f0['activeAnnotations'],_0x5c30aa=>_0x5c30aa['innerView'])['filter'](_0x11a614=>this['_viewToController']['has'](_0x11a614)),_0x180ab1=[];for(const _0x5b8681 of _0x143cd3){const _0x3f7874=this['_viewToController']['get'](_0x5b8681)['model']['getAllAdjacentSuggestions']();_0x180ab1['push'](..._0x3f7874['reduce']((_0x129b1a,_0x2678ca)=>[..._0x129b1a,..._0x2678ca['getMarkerNames']()],[]));}_0x356725['activeMarkers']=_0x180ab1;}['_addUIComponentsToFactory'](){const _0x5a2f8b=this['editor'],_0x39f1a9=_0x5a2f8b['locale'],_0x534d1d=St(_0x39f1a9,'Track\x20changes'),_0x125eaf=new _0x1350c2([{'type':'switchbutton','model':new _0x5440b6({'withText':!0x0,'isToggleable':!0x0,'label':_0x534d1d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5a2f8b['plugins']['has']('TrackChangesPreview')&&_0x125eaf['addMany']([{'type':'separator'},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x13e957 of _0x125eaf)if(Cn(_0x13e957)){const _0xfce7c0=_0x5a2f8b['commands']['get'](_0x13e957['model']['commandName']);_0x13e957['model']['bind']('isOn','isEnabled')['to'](_0xfce7c0,'value','isEnabled');}_0x5a2f8b['ui']['componentFactory']['add']('trackChanges',_0x653237=>this['_createToolbarButton'](_0x653237,_0x125eaf,_0x534d1d)),_0x5a2f8b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x12851e=>this['_createMenuBarMenu'](_0x12851e,_0x125eaf,_0x534d1d));}['_createToolbarButton'](_0x5e8117,_0x2e3579,_0x2a031a){const _0x528597=_0x5873aa(_0x5e8117,_0x4440c7),_0x5d8c7e=this['editor']['commands']['get']('trackChanges');_0x528597['buttonView']['set']({'tooltip':_0x2a031a,'label':_0x2a031a,'icon':_0x152b1f}),_0x528597['buttonView']['bind']('isOn')['to'](_0x5d8c7e,'value'),_0x528597['buttonView']['on']('execute',()=>{_0x5d8c7e['execute'](),this['editor']['editing']['view']['focus']();}),_0x53017d(_0x528597,_0x2e3579,{'role':'menu'});const _0x1cf7d3=[];for(const _0x3bbb49 of _0x2e3579)Cn(_0x3bbb49)&&_0x1cf7d3['push'](this['editor']['commands']['get'](_0x3bbb49['model']['commandName']));const _0x4a713d=_0x528597['buttonView'];return _0x4a713d['actionView']['unbind']('isEnabled'),_0x4a713d['arrowView']['unbind']('isEnabled'),_0x4a713d['actionView']['bind']('isEnabled')['to'](_0x5d8c7e,'isEnabled'),_0x4a713d['arrowView']['bind']('isEnabled')['toMany'](_0x1cf7d3,'isEnabled',(..._0x29c85c)=>_0x29c85c['some'](_0xad910c=>_0xad910c)),_0x528597['on']('execute',_0x394ad3=>{this['editor']['execute'](_0x394ad3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x528597;}['_createMenuBarMenu'](_0x334016,_0x2afe42,_0x2a68e8){const _0x1c52c9=new _0x55e3f3(_0x334016),_0x4e6a53=this['editor']['commands']['get']('trackChanges');_0x1c52c9['buttonView']['set']({'label':_0x2a68e8,'icon':_0x152b1f});const _0x4e493d=new _0x5c449a(_0x334016);for(const _0x48a61f of _0x2afe42){if('separator'==_0x48a61f['type']){_0x4e493d['items']['add'](new _0x73fd58(_0x334016));continue;}const _0x49b85a=new _0x5d3ceb(_0x334016,_0x1c52c9),_0x2b42bc=new _0x2a72c8(_0x334016),_0x4581e0=_0x48a61f['model'];_0x2b42bc['bind'](...Object['keys'](_0x4581e0))['to'](_0x4581e0),_0x2b42bc['delegate']('execute')['to'](_0x1c52c9),_0x2b42bc['on']('execute',()=>{this['editor']['execute'](_0x4581e0['commandName']),this['editor']['editing']['view']['focus']();}),_0x49b85a['children']['add'](_0x2b42bc),_0x4e493d['items']['add'](_0x49b85a);}return _0x1c52c9['bind']('isEnabled')['to'](_0x4e6a53,'isEnabled'),_0x1c52c9['panelView']['children']['add'](_0x4e493d),_0x1c52c9;}['_initializeController'](_0x4e3e30){const _0xcbe35e=this['editor'],_0xe06ffd=_0xcbe35e['config'],_0x1ab294=_0xcbe35e['plugins']['get'](_0x3a4036),_0xb8b3cd=_0xcbe35e['plugins']['get'](_0xe4cf4f),_0xa7e4d5=_0xcbe35e['plugins']['get'](_0x3eea2f),_0x2ec493=_0xcbe35e['plugins']['get'](_0x30610e)['me'],_0x1310de=_0xe06ffd['get']('trackChanges')['SuggestionThreadView'],_0xfae3c7=_0xe06ffd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4e3925,CommentThreadInputView:_0x250f12}=_0xcbe35e['plugins']['get']('CommentsUI');let _0x27cc40,_0x12f138,_0x4b0af4;this['_annotationViews']['has'](_0x4e3e30['id'])?(_0x12f138=this['_annotationViews']['get'](_0x4e3e30['id']),_0x27cc40=_0x12f138['mainView']):(_0x27cc40=new _0x1310de(_0xcbe35e['locale'],_0x4e3e30,_0x2ec493,{'disableComments':this['_disableComments'],'editorConfig':{..._0xe06ffd['get']('comments.editorConfig'),'licenseKey':_0xe06ffd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xe06ffd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe06ffd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe06ffd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5d204d(_0xe06ffd['get']('locale'),_0xcbe35e['locale']),'CommentView':_0xe06ffd['get']('comments')['CommentView'],'CommentsListView':_0x4e3925,'CommentThreadInputView':_0x250f12,'SuggestionView':_0xfae3c7,'showAISource':_0xe06ffd['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xe06ffd['get']('trackChanges.aiAuthor'),'name':_0xe06ffd['get']('trackChanges.aiAuthor')?.['name']||St(_0xcbe35e['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x27cc40['suggestionView']['acceptButton']['on']('execute',()=>{_0xcbe35e['editing']['view']['focus']();}),_0x27cc40['suggestionView']['discardButton']['on']('execute',()=>{_0xcbe35e['editing']['view']['focus']();}),_0x12f138=_0x1ab294['createAnnotationView'](this['editor']['locale'],_0x27cc40),_0x12f138['bind']('isDirty')['to'](_0x27cc40,'isDirty'),_0x12f138['bind']('length')['to'](_0x27cc40),_0x12f138['bind']('type')['to'](_0x27cc40,'type',_0x7d742c=>'suggestion-'+_0x7d742c),_0x27cc40['on']('escape',()=>{_0x4b0af4['fire']('escape');}),this['_annotationViews']['set'](_0x4e3e30['id'],_0x12f138));const _0x346c0b=_0xb8b3cd['createCommentThreadController'](_0x4e3e30['commentThread'],_0x27cc40),_0x2c21d4=new Ln(_0xcbe35e,_0x4e3e30,_0x27cc40,_0x346c0b),_0x2c0d3e=_0x4e3e30['getAllAdjacentSuggestions']()['filter'](_0x355ff5=>_0x355ff5['isInContent']);_0x27cc40['descriptionParts']=_0xcbe35e['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x2c0d3e),this['_suggestionToController']['set'](_0x4e3e30,_0x2c21d4),this['_viewToController']['set'](_0x27cc40,_0x2c21d4);const _0x5e6cca=()=>{const _0x203d31=[],_0x28aa04=_0x4e3e30['getAllAdjacentSuggestions']()['filter'](_0xe2f6a4=>_0xe2f6a4['isInContent']);for(const _0x5ed584 of _0x28aa04)_0x203d31['push'](..._0x5ed584['getMarkers']());return _0x16637f(_0xcbe35e['editing'],_0x203d31);};_0x4b0af4=_0x1ab294['createAnnotation']({'view':_0x12f138,'target':_0x5e6cca,'type':()=>'suggestion-'+_0x2c21d4['view']['type'],'isVisible':!!_0x5e6cca()}),_0xb8b3cd['_bindAnnotationToEditors'](_0x27cc40,_0x4b0af4),_0x1ab294['add'](_0x4b0af4),_0xa7e4d5['registerAnnotation'](_0x4b0af4);}['_destroyController'](_0x50d56d){const _0x5756e9=this['editor']['plugins']['get'](_0xe4cf4f),_0xef2c3c=this['editor']['plugins']['get'](_0x3a4036),_0x3f6368=this['_suggestionToController']['get'](_0x50d56d),_0x3545a0=_0x3f6368['view'],_0x37ad08=_0xef2c3c['getByInnerView'](_0x3545a0);_0x5756e9['_unbindEditors'](_0x3545a0),_0x37ad08&&_0xef2c3c['remove'](_0x37ad08),this['_suggestionToController']['delete'](_0x50d56d),this['_viewToController']['delete'](_0x3545a0),_0x3f6368['destroy']();}['_updateController'](_0x2ee8d7){if(!_0x2ee8d7['isInContent']||!this['_suggestionToController']['has'](_0x2ee8d7))return;const _0x2d6294=this['editor']['plugins']['get'](nn),_0x308b1c=this['_suggestionToController']['get'](_0x2ee8d7),_0x165149=_0x2ee8d7['getAllAdjacentSuggestions']();_0x308b1c['view']['descriptionParts']=_0x2d6294['descriptionFactory']['getDescriptions'](_0x165149);}['destroy'](){for(const _0x47ef5e of this['_suggestionToController']['keys']())this['_destroyController'](_0x47ef5e);for(const _0x2bf7bb of this['_annotationViews']['values']())_0x2bf7bb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x11e70a){return'model'in _0x11e70a;}var Rn=class extends _0x2dafdc{static get['requires'](){return[nn,kn,_0x2fb358];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xaa1ced){this['editor']['plugins']['get'](nn)['adapter']=_0xaa1ced;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x53a408){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x53a408);}['getSuggestions']({skipNotAttached:_0x227273=!0x1,toJSON:_0x518c00=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x227273,'toJSON':_0x518c00});}['getSuggestion'](_0x5a8a3e){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x5a8a3e);}};const Nn=['Pagination'];var yn=class extends _0x2dafdc{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e4f54=this['editor'];if(_0x1e4f54['config']['define']('trackChangesData.editorCreator',_0x168581=>{const _0x3991e5=_0x1e4f54['model']['document']['getRootNames']()['reduce']((_0x33c652,_0x13cf1b)=>(_0x33c652[_0x13cf1b]='',_0x33c652),{});return _0x1e4f54['constructor']['create'](_0x3991e5,_0x168581);}),'function'!=typeof _0x1e4f54['config']['get']('trackChangesData')['editorCreator'])throw new _0xb0a0f9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9775){return On(this['editor'],!0x0,_0x9775);}['getDataWithDiscardedSuggestions'](_0xb154dc){return On(this['editor'],!0x1,_0xb154dc);}},Sn=class extends _0x2dafdc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1daa19){super(_0x1daa19),this['result']='end',_0x1daa19['editing']['view']['_overlayModeHint']='auto',_0x1daa19['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Mn(_0x3bc4b4){return void 0x0!==_0x3bc4b4['getRootsAttributes'];}async function On(_0x4a8eff,_0x508677,_0x16bda1){const _0x21e89d=_0x4257ae(_0x4a8eff,Nn);if(_0x21e89d['plugins']['push'](nn,Sn),Mn(_0x4a8eff)){_0x21e89d['roots']=Object['create'](null);for(const _0x3fab66 of _0x4a8eff['model']['document']['getRootNames']())_0x21e89d['roots'][_0x3fab66]={'modelAttributes':_0x4a8eff['getRootAttributes'](_0x3fab66)};}const _0x3681ca=document['createDocumentFragment'](),_0x363132=_0x4a8eff['config']['get']('trackChangesData')['editorCreator'],_0x5cb2eb=await _0x363132(_0x21e89d,()=>function(_0x383543){const _0x4808e6=document['createElement']('div');return _0x383543['appendChild'](_0x4808e6),_0x4808e6;}(_0x3681ca));!function(_0x350cde,_0x4c7a92){const _0x37998d=_0x350cde['model']['document']['getRootNames']()['reduce']((_0x396b79,_0x355f2e)=>(_0x396b79[_0x355f2e]=_0x350cde['data']['get']({'rootName':_0x355f2e}),_0x396b79),{}),_0xd63261=_0x350cde['plugins']['get']('Users')['users']['map'](_0x150482=>({'id':_0x150482['id'],'name':_0x150482['name']})),_0x3ba176=_0x350cde['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4fdf2c=_0x350cde['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5f58a0=_0x4c7a92['plugins']['get']('Users'),_0x21a90d=_0x4c7a92['plugins']['get']('TrackChangesEditing'),_0x4f84ab=_0x4c7a92['plugins']['get']('CommentsRepository');for(const _0x447e49 of _0x4f84ab['getCommentThreads']())_0x447e49['remove']();for(const _0xd78768 of _0xd63261)_0x5f58a0['getUser'](_0xd78768['id'])||_0x5f58a0['addUser'](_0xd78768);_0x5f58a0['me']||_0x5f58a0['useAnonymousUser']();for(const _0x6f666d of _0x4fdf2c)_0x4f84ab['addCommentThread'](_0x6f666d);for(const _0x1ee254 of _0x3ba176)_0x21a90d['addSuggestionData'](_0x1ee254);_0x4c7a92['data']['set'](_0x37998d);}(_0x4a8eff,_0x5cb2eb),_0x5cb2eb['execute'](_0x508677?'acceptAllSuggestions':'discardAllSuggestions');const _0x42cb6f=Mn(_0x5cb2eb)?_0x5cb2eb['getFullData'](_0x16bda1):_0x5cb2eb['data']['get'](_0x16bda1);return await _0x5cb2eb['destroy'](),_0x42cb6f;}var wn=class extends _0x359f90{['options'];constructor(_0x6bffee,_0x1fb926){super(_0x6bffee),this['options']=_0x1fb926,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'](_0xfd23e8,_0x4237a7){if(!this['element'])return;const _0x3d6c49=[];for(const [_0x4f0d3f,_0x14af98]of _0xfd23e8){const _0x49c794=document['createElement']('div');_0x49c794['setAttribute']('data-ck-root-name',_0x4f0d3f),_0x49c794['className']=_0x14af98['classes']+'\x20ck-track-changes-preview__root-container',_0x49c794['innerHTML']=_0x14af98['content'],_0x3d6c49['push'](_0x49c794);}_0x4237a7(this['element'],_0x3d6c49),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x1da237{constructor(_0x41ccf9){super(_0x41ccf9),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1eb95b=this['editor'],_0x5b3900=_0x1eb95b['locale'],_0x5282bf=_0x1eb95b['plugins']['get']('Dialog');let _0x1ac76c;const _0x28e0a4=function(_0x71cd15){const _0x3e6042={};if('editables'in _0x71cd15['ui']['view']){for(const [_0x1cbe0f,_0x92867e]of Object['entries'](_0x71cd15['ui']['view']['editables']))_0x3e6042[_0x1cbe0f]=_0x92867e['element'];}else _0x3e6042[_0x71cd15['model']['document']['getRootNames']()[0x0]]=_0x71cd15['ui']['view']['editable']['element'];return _0x3e6042;}(_0x1eb95b),_0x16a61b=function(_0x7a90aa){let _0x557b7d=0x0;for(const _0x2b6a74 of Object['values'](_0x7a90aa))_0x557b7d=Math['max'](_0x557b7d,_0x2b6a74['getBoundingClientRect']()['width']);let _0x539458=0x0;for(const _0x30a81b of Object['values'](_0x7a90aa))_0x539458+=_0x30a81b['getBoundingClientRect']()['height'];const _0x31f956=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x557b7d,'height':Math['min'](_0x539458,_0x31f956)};}(_0x28e0a4);_0x5282bf['show']({'id':'finalContentPreview','title':St(_0x5b3900,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x5b3900,{'dialogRects':_0x16a61b}),'onHide':()=>{_0x1ac76c['detachFromDom']();},'onShow':()=>{_0x1eb95b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x260ba5=>{const _0x363d74=this['_standarizeRootsData'](_0x260ba5,_0x1eb95b,_0x28e0a4);_0x5282bf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x363d74,_0x1eb95b['config']['get']('trackChanges.preview.renderFunction'));}),_0x1ac76c=new _0x53523d(_0x5b3900,[_0x5282bf['view']]),_0x1ac76c['attachToDom'](),_0x1ac76c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1eb95b['once']('destroy',()=>{_0x1ac76c['detachFromDom']();});const _0xa90fec=_0x5282bf['view']['headerView']['class'];_0x5282bf['view']['headerView']['class']=_0xa90fec?_0xa90fec+'\x20ck-reset_all':'ck-reset_all',_0x5282bf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5282bf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1d26f5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16b15f=_0x1d26f5['previewMode'],_0x4a6a8e={};if('$labels'===_0x16b15f){for(const _0x2c635d of _0x1d26f5['getMergeFieldsIds']())_0x4a6a8e[_0x2c635d]=_0x1d26f5['getLabel'](_0x2c635d)||_0x2c635d;}else{const _0x483584='$defaultValues'===_0x16b15f?_0x1d26f5['getDefaultValues']():_0x1d26f5['getDataSetValues'](_0x16b15f,!0x0);for(const _0x579745 of Object['entries'](_0x483584)){const [_0x51f064,_0x40b46f]=_0x579745;_0x4a6a8e[_0x51f064]=null!==_0x40b46f?_0x40b46f:_0x1d26f5['getLabel'](_0x51f064)||_0x51f064;}}return{'mergeFieldsData':_0x4a6a8e};}['_standarizeRootsData'](_0x2fb404,_0x46da5b,_0x46f56b){let _0x738453;_0x738453='string'==typeof _0x2fb404?{[_0x46da5b['model']['document']['getRootNames']()[0x0]]:_0x2fb404}:_0x2fb404;const _0x134857=this['_fixMediaEmbeds'](_0x738453,_0x46da5b);return function(_0x207510,_0xd84fb9){for(const [_0x19db4a,_0x47baa5]of _0x207510)_0x47baa5['classes']=_0xd84fb9[_0x19db4a]['classList']['value']['replace']('ck-focused','');return _0x207510;}(this['_sortRoots'](_0x46da5b)['reduce']((_0x2102e0,_0x365e2e)=>(_0x2102e0['push']([_0x365e2e,{'content':_0x134857[_0x365e2e],'classes':''}]),_0x2102e0),[]),_0x46f56b);}['_fixMediaEmbeds'](_0x5845f6,_0x21a04f){if(!_0x21a04f['plugins']['has']('MediaEmbedEditing'))return _0x5845f6;const _0x438fd3=_0x21a04f['plugins']['get']('MediaEmbedEditing');for(const [_0x1ae67d,_0x41a8f0]of Object['entries'](_0x5845f6)){const _0x43eb2f=document['createElement']('div');_0x43eb2f['innerHTML']=_0x41a8f0,_0x43eb2f['querySelectorAll']('figure.media')['forEach'](_0x1803f3=>{const _0x2a93fb=_0x1803f3['querySelector']('oembed');if(_0x2a93fb){const _0x50b2e8=_0x2a93fb['getAttribute']('url');if(_0x50b2e8){const _0x4fa320=_0x438fd3['registry']['getMediaViewElement'](new ot(_0x21a04f['editing']['view']['document']),_0x50b2e8,{'elementName':'','renderForEditingView':!0x0}),_0x3fcdc2=document['createElement']('div');_0x3fcdc2['classList']['add']('ck-media__wrapper'),_0x4fa320['render'](_0x3fcdc2,_0x21a04f['editing']['view']['domConverter']),_0x2a93fb['replaceWith'](_0x3fcdc2);}}}),_0x5845f6[_0x1ae67d]=_0x43eb2f['innerHTML'];}return _0x5845f6;}['_sortRoots'](_0x2e55dd){if(!function(_0x2e5195){return void 0x0!==_0x2e5195['getRootsAttributes'];}(_0x2e55dd))return _0x2e55dd['model']['document']['getRootNames']();const _0x6ed79a=[],_0x437fa1=new Map();for(const _0x494c9c of _0x2e55dd['model']['document']['getRootNames']()){const _0x539d24=_0x2e55dd['editing']['view']['getDomRoot'](_0x494c9c)['getClientRects']()['item'](0x0);_0x6ed79a['push'](_0x494c9c),_0x437fa1['set'](_0x494c9c,_0x539d24);}return _0x6ed79a['sort']((_0x21f93a,_0x14252d)=>{const _0x298529=_0x437fa1['get'](_0x21f93a),_0x5b3f57=_0x437fa1['get'](_0x14252d);return _0x298529['y']-_0x5b3f57['y']||_0x298529['x']-_0x5b3f57['x'];}),_0x6ed79a;}},Bn=class extends _0x2dafdc{static get['requires'](){return[yn,_0x4dc3b7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c2d1f){super(_0x2c2d1f),_0x2c2d1f['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x2c2d1f['config']['define']('trackChanges.preview.renderFunction',(_0x535211,_0x58c4f5)=>{for(const _0x2e7043 of _0x58c4f5)_0x535211['appendChild'](_0x2e7043);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};