@ckeditor/ckeditor5-track-changes 48.4.0-alpha.2 → 48.4.0-alpha.4

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 _0x16d293,PendingActions as _0x4f7893,Plugin as _0x9bd549}from'@ckeditor/ckeditor5-core';import{Annotations as _0x59e02d,Comments as _0x435a16,CommentsRepository as _0x203ad7,EditorAnnotations as _0x38d953}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x354614,Collection as _0x312921,FocusTracker as _0x591c9e,KeystrokeHandler as _0x5b7cb6,ObservableMixin as _0x1377a3,getEnvKeystrokeText as _0x4d423e,insertToPriorityArray as _0x26314f,logWarning as _0x18c9eb,priorities as _0x2b2839,uid as _0x2e6a13}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x1e2770,IconCancel as _0x15d8dd,IconCheck as _0xf15df7,IconSparkle as _0x1fc493,IconTrackChanges as _0x5c9b3e}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1e8118,Dialog as _0x15cd88,FocusCycler as _0x7ae866,ListSeparatorView as _0x188ba7,MenuBarMenuListItemButtonView as _0x452ca1,MenuBarMenuListItemView as _0xdc420d,MenuBarMenuListView as _0x5d0013,MenuBarMenuView as _0x34c878,SplitButtonView as _0x2ed566,UIModel as _0x53a520,View as _0x50f806,ViewCollection as _0x32a053,addListToDropdown as _0x4a8502,createDropdown as _0x2112c8,normalizeColorOptions as _0x178ae1}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x30c9b4,CollaborationUserColor as _0x3b64d0,DocumentCompare as _0x2c9489,FOCUS_ANNOTATION_KEYSTROKE as _0x341358,LateFocusButtonView as _0x50d24e,PillView as _0x23bf39,SuggestionsConversion as _0x358b09,User as _0x44bfc7,UserView as _0x19bc2d,Users as _0xfe45c9,fixElementSuggestionRange as _0x425f5d,getAllMarkersDomElementsSorted as _0x136b64,getDateTimeFormatter as _0x49bb80,hashObject as _0x1724db,isInvalidAttributeOperation as _0x4a631e,sanitizeEditorConfig as _0x423519,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x16d293{['_enabledCommands'];constructor(_0x1c0522,_0x3bf49b){super(_0x1c0522),this['_enabledCommands']=_0x3bf49b,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}_disableUnsupportedCommands(){for(const _0x12c81f of this['editor']['commands']['commands']())_0x12c81f['affectsData']&&!this['_enabledCommands']['has'](_0x12c81f)&&_0x12c81f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x12c998 of this['editor']['commands']['commands']())_0x12c998['affectsData']&&!this['_enabledCommands']['has'](_0x12c998)&&_0x12c998['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x16d293{_suggestions;constructor(_0x1c007e,_0x4e9cbc){super(_0x1c007e),this['_suggestions']=_0x4e9cbc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1f1b2c){const _0x2dab4a=this['_suggestions']['get'](_0x1f1b2c);if(!_0x2dab4a)throw new _0x354614('track-changes-accept-suggestion-not-found',this);const _0x25276f=_0x2dab4a['getRanges']();this['editor']['model']['canEditAt'](_0x25276f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2dab4a);}},Lt=class extends _0x16d293{_suggestions;constructor(_0x1af48d,_0x572232){super(_0x1af48d),this['_suggestions']=_0x572232,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5df9ab){const _0x5b9811=this['_suggestions']['get'](_0x5df9ab);if(!_0x5b9811)throw new _0x354614('track-changes-discard-suggestion-not-found',this);const _0x360d5d=_0x5b9811['getRanges']();this['editor']['model']['canEditAt'](_0x360d5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5b9811);}};function It(_0x1d36f5,_0x2740b9){let _0x305162='';return _0x305162+=_0x1d36f5['split']('*')['map']((_0x570206,_0x3064d5)=>_0x3064d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x570206)+'</span>':At(_0x570206))['join'](''),_0x2740b9&&(_0x305162+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2740b9['value']+'\x22\x20title=\x22'+_0x2740b9['title']+'\x22></span>'),_0x305162;}function At(_0x41480a){const _0x5880e3=document['createElement']('span');return _0x5880e3['innerText']=_0x41480a,_0x5880e3['innerHTML'];}function bt(_0x2a1b05){return _0x2a1b05['sort']((_0x243603,_0x1d9aa7)=>'attribute'===_0x243603['type']&&'attribute'!==_0x1d9aa7['type']?-0x1:'attribute'!==_0x243603['type']&&'attribute'===_0x1d9aa7['type']?0x1:'deletion'==_0x243603['type']&&'deletion'!=_0x1d9aa7['type']?-0x1:'deletion'!=_0x243603['type']&&'deletion'==_0x1d9aa7['type']?0x1:0x0);}function Ct(_0x1028dd,_0x4f0cc9){let _0xfe71cf,_0x14db18=0x0;const _0x8f3b4e=[],_0x141176=_0x4f0cc9['schema'];for(;_0x14db18<_0x1028dd['length'];){const _0x1b821f=_0x1028dd[_0x14db18],_0x472306=_0x1028dd[_0x14db18+0x1];_0xfe71cf||(_0xfe71cf=_0x4f0cc9['createPositionBefore'](_0x1b821f)),kt(_0x4f0cc9,_0x1b821f,_0x472306)||(_0x8f3b4e['push'](_0x4f0cc9['createRange'](_0xfe71cf,_0x141176['isObject'](_0x1b821f)?_0x4f0cc9['createPositionAfter'](_0x1b821f):_0x4f0cc9['createPositionAt'](_0x1b821f,'end'))),_0xfe71cf=null),_0x14db18++;}return _0x8f3b4e;}function kt(_0x53101f,_0x96a406,_0x1f152e){if(!_0x1f152e)return!0x1;const _0x5505cd=_0x53101f['createPositionAfter'](_0x96a406),_0x50d597=_0x53101f['createPositionBefore'](_0x1f152e);return _0x5505cd['isTouching'](_0x50d597);}function Rt(_0x545d0c,_0x6e204b,_0x1ead40){for(;_0x1ead40['length'];){const _0x404335=_0x1ead40['splice'](0x0,0x64);_0x545d0c['change'](()=>{for(const _0x2f0fd0 of _0x404335)_0x2f0fd0['isInContent']&&_0x6e204b['execute'](_0x2f0fd0['id']);});}}var yt=class extends _0x16d293{['_command'];_suggestions;constructor(_0x429f96,_0x40690b,_0x2ad749){super(_0x429f96),this['_command']=_0x40690b,this['_suggestions']=_0x2ad749,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x476f5f=Array['from'](this['_suggestions']['values']())['some'](_0x1c5828=>_0x1c5828['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x476f5f;}execute(){const _0x481072=bt(Array['from'](this['_suggestions']['values']()));for(const _0x1c99f4 of _0x481072){const _0x3fb303=_0x1c99f4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3fb303))return;}Rt(this['editor']['model'],this['_command'],_0x481072);}},Nt=class extends _0x16d293{['_command'];_suggestions;_selectedSuggestions;constructor(_0x55e5b8,_0x1597df,_0x3da6a8){super(_0x55e5b8),this['_command']=_0x1597df,this['_suggestions']=_0x3da6a8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2de699=this['editor']['model']['document']['selection'],_0x3fb7e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56996b,_0x33794f){const _0x2fa2fa=Array['from'](_0x56996b['getRanges']()),_0x4f6516=new Set();for(const _0x4d11b2 of _0x33794f)if(_0x4d11b2['isInContent']){for(const _0x186ebb of _0x2fa2fa)for(const _0x42f834 of _0x4d11b2['getRanges']())(_0x186ebb['isIntersecting'](_0x42f834)||_0x56996b['isCollapsed']&&!_0x4d11b2['isMultiRange']&&_0x4d11b2['next']&&_0x42f834['end']['isTouching'](_0x186ebb['start']))&&_0x4f6516['add'](_0x4d11b2);}return _0x4f6516;}(_0x2de699,_0x3fb7e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x1bc2ad=bt(Array['from'](this['_selectedSuggestions']));for(const _0x5da6f3 of _0x1bc2ad){const _0x13ebb3=_0x5da6f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13ebb3))return;}Rt(this['editor']['model'],this['_command'],_0x1bc2ad);}};const St=/* #__PURE__ -- @preserve */
24
- _0x1377a3();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x360592,_0x1fbd48){super(),this['id']=_0x1fbd48['id'],this['type']=_0x1fbd48['type'],this['subType']=_0x1fbd48['subType']||null,this['author']=_0x1fbd48['author'],this['creator']=_0x1fbd48['creator']||_0x1fbd48['author'],this['data']=null,this['_originalSuggestionId']=_0x1fbd48['originalSuggestionId']||null,this['_model']=_0x360592,this['_onAccept']=_0x1fbd48['onAccept'],this['_onDiscard']=_0x1fbd48['onDiscard'],this['_onAttributesChange']=_0x1fbd48['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1fbd48['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x267827=this;for(;_0x267827['previous'];)_0x267827=_0x267827['previous'];return _0x267827;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1dcb32){this['_markerNames']['add'](_0x1dcb32);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x58fc4d=>this['_model']['markers']['get'](_0x58fc4d))['filter'](_0x57fce2=>_0x57fce2);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ac18e=>{for(const _0x2274f7 of this['getMarkers']())_0x1ac18e['removeMarker'](_0x2274f7);}),this['_markerNames']['clear']();}['removeMarker'](_0x50b347){this['_model']['change'](_0x933633=>{_0x933633['removeMarker'](_0x50b347);}),this['_markerNames']['delete'](_0x50b347);}['addRange'](_0x1163a3){const _0xdbf62d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xdbf62d),this['_model']['change'](_0x136c3d=>{_0x136c3d['addMarker'](_0xdbf62d,{'range':_0x1163a3,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x5bdd90){for(const _0x4e136c of this['getRanges']())if(_0x4e136c['isIntersecting'](_0x5bdd90))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x461c4d=>_0x461c4d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x4f1069,_0x62cd6b)=>[..._0x4f1069,..._0x62cd6b['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x4d3c50=this['getRanges']();if(0x1!=_0x4d3c50['length'])return null;const _0x4125eb=_0x4d3c50[0x0],_0x22be17=_0x4125eb['start']['nodeAfter'],_0xd3e72d=_0x4125eb['end']['nodeBefore'];return _0x22be17 instanceof st?_0x22be17!=_0xd3e72d?null:_0x22be17:null;}accept(){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}getAllAdjacentSuggestions(){const _0x52310b=[];let _0x4cc240=this['head'];for(;_0x4cc240;)_0x52310b['push'](_0x4cc240),_0x4cc240=_0x4cc240['next'];return _0x52310b;}setAttribute(_0x48a6d8,_0xdbbb7b){const _0x230b01=ct(this['attributes']);dt(_0x230b01,_0x48a6d8,_0xdbbb7b),lt(_0x230b01,this['attributes'])||(this['attributes']=_0x230b01,this['_onAttributesChange'](_0x230b01));}removeAttribute(_0x16e2d8){const _0x277eb4=ct(this['attributes']);ht(_0x277eb4,_0x16e2d8),lt(_0x277eb4,this['attributes'])||(this['attributes']=_0x277eb4,this['_onAttributesChange'](this['attributes']));}toJSON(){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static getMultiRangeId(){return _0x2e6a13()['substr'](0x1,0x5);}};function Ot(_0x1938b3,_0x4b2b56,_0x2e2e1f){const _0x2cd183=_0x1938b3['t'],t=_0x1938b3['t'];switch(_0x4b2b56){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2e2e1f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e2e1f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e2e1f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e2e1f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e2e1f);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x2e2e1f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e2e1f);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e2e1f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e2e1f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e2e1f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e2e1f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e2e1f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e2e1f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e2e1f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e2e1f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e2e1f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e2e1f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e2e1f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e2e1f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e2e1f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2e2e1f);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x2e2e1f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2e2e1f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2e2e1f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e2e1f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e2e1f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e2e1f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e2e1f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e2e1f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x2e2e1f);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2e2e1f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e2e1f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e2e1f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e2e1f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e2e1f);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2e2e1f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e2e1f);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2e2e1f);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2e2e1f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e2e1f);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x2e2e1f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e2e1f);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x2e2e1f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e2e1f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2e2e1f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2e2e1f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2e2e1f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e2e1f);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2e2e1f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2e2e1f);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2cd183({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2e2e1f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2cd183({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2e2e1f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2e2e1f);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2e2e1f);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2e2e1f);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2e2e1f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4b2b56;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x212172,_0x5b713b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x212172,this['_locale']=_0x5b713b;}getDescriptions(_0x122f0b){const _0x59809e=[],_0x2c21d7=new Set(),_0x380e67=new Set();for(let _0x2b0e5c=0x0;_0x2b0e5c<_0x122f0b['length'];_0x2b0e5c++){const _0x2ed4bb=_0x122f0b[_0x2b0e5c];if(!_0x2ed4bb['isInContent'])continue;const _0x3fe482=this['_handleCustomCallbackDescription'](_0x2ed4bb);if(_0x3fe482){if(null!=_0x2ed4bb['subType']){if(_0x2c21d7['has'](_0x2ed4bb['subType']))continue;_0x2c21d7['add'](_0x2ed4bb['subType']);}_0x59809e['push'](_0x3fe482);}else{if('attribute'==_0x2ed4bb['type']){const _0x58e2cf=_0x2ed4bb['data']['key'];if(_0x380e67['has'](_0x58e2cf))continue;_0x380e67['add'](_0x2ed4bb['data']['key']),'$elementName'==_0x58e2cf?this['_handleRenameSuggestionDescription'](_0x59809e,_0x2ed4bb):this['_handleAttributeSuggestionDescription'](_0x59809e,_0x2ed4bb);continue;}'insertion'!=_0x2ed4bb['type']&&'deletion'!=_0x2ed4bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x59809e,_0x2ed4bb,_0x122f0b[_0x2b0e5c+0x1]);}}return this['_resolveDescriptionItems'](_0x59809e);}registerDescriptionCallback(_0x19eaff){this['_customCallbacks']['push'](_0x19eaff);}registerElementLabel(_0x49d107,_0x480359,_0x44365a=_0x2b2839['normal']){'function'==typeof _0x49d107?_0x26314f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49d107,'label':_0x480359,'priority':_0x44365a}):this['_itemLabels']['set'](_0x49d107,_0x480359);}registerAttributeLabel(_0x29e4b0,_0x2465b0){this['_attributeLabels']['set'](_0x29e4b0,_0x2465b0);}getItemLabel(_0x537004,_0x50fcf0=0x1){let _0x445e9e;for(const _0x54bc0f of this['_itemLabelsCallbacks'])if(_0x54bc0f['matchingCallback'](_0x537004)){_0x445e9e=_0x54bc0f['label'];break;}return _0x445e9e||(_0x445e9e=this['_itemLabels']['get'](_0x537004['name'])),_0x445e9e?_0x445e9e(_0x50fcf0):0x1!==_0x50fcf0?_0x50fcf0+'\x20'+_0x537004['name']+'s':''+_0x537004['name'];}_addDescriptionItems(_0x1779c5,_0x1ea9e1){const _0x2c6b15=_0x1ea9e1['getFirstRange']()['getWalker'](),_0x34a914='insertion'==_0x1ea9e1['type']?'add':'remove';for(const _0x25448f of _0x2c6b15){const _0x1aa207=_0x25448f['item'],_0xc732ac=_0x1779c5[_0x1779c5['length']-0x1];if(_0x1aa207['is']('$textProxy'))_0xc732ac&&_0xc732ac['type']['indexOf']('Container')>-0x1&&_0x1779c5['pop'](),_0xc732ac&&'text'==_0xc732ac['type']?_0xc732ac[_0x34a914]+=_0x1aa207['data']:_0x1779c5['push']({'type':'text','add':'add'==_0x34a914?_0x1aa207['data']:'','remove':'remove'==_0x34a914?_0x1aa207['data']:''});else{if(this['_schema']['isObject'](_0x1aa207)){const _0x4212e3=_0x1aa207;if(_0xc732ac&&_0xc732ac['type']['indexOf']('Container')>-0x1&&_0x1779c5['pop'](),'elementEnd'==_0x25448f['type'])continue;_0xc732ac&&_0xc732ac['type']==_0x34a914+'Object'&&_0xc732ac['element']['name']==_0x4212e3['name']?_0xc732ac['quantity']++:_0x1779c5['push']({'type':_0x34a914+'Object','element':_0x4212e3,'quantity':0x1}),_0x2c6b15['skip'](_0x61c6a4=>!('elementEnd'==_0x61c6a4['type']&&_0x61c6a4['item']==_0x1aa207));}else{if(this['_schema']['checkChild'](_0x1aa207,'$text')||_0x1aa207['is']('element','softBreak')){const _0x4fdece=_0x1aa207;if('add'==_0x34a914&&'elementStart'==_0x25448f['type']||'remove'==_0x34a914&&'elementEnd'==_0x25448f['type'])continue;if(_0xc732ac&&-0x1==_0xc732ac['type']['indexOf']('Container')){'text'==_0xc732ac['type']&&(_0xc732ac[_0x34a914]+='\x0a');continue;}let _0x11110e;if(_0x11110e='add'==_0x34a914?_0x4fdece['nextSibling']&&!this['_schema']['isObject'](_0x4fdece['nextSibling'])?_0x4fdece['nextSibling']:null:_0x4fdece['previousSibling']&&!this['_schema']['isObject'](_0x4fdece['previousSibling'])?_0x4fdece['previousSibling']:null,_0x4fdece['isEmpty']||_0x11110e&&_0x11110e['isEmpty']){const _0x2c5808=_0x11110e&&_0x11110e['isEmpty']?_0x11110e:_0x4fdece;_0xc732ac&&_0xc732ac['type']==_0x34a914+'EmptyContainer'&&_0xc732ac['element']['name']==_0x2c5808['name']?_0xc732ac['quantity']++:_0x1779c5['push']({'type':_0x34a914+'EmptyContainer','element':_0x2c5808,'quantity':0x1});}else _0x1779c5['push']({'type':_0x34a914+'Container','element':_0x4fdece});}}}}}_resolveDescriptionItems(_0x27cc2c){const _0x1cca94=this['_locale'],_0x47f555=[],_0x23636c=[],_0x430f93=[];for(const _0x50675f of _0x27cc2c)switch(_0x50675f['type']){case'text':if(_0x50675f['add']=_0x50675f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x50675f['remove']=_0x50675f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x50675f['add']&&''!=_0x50675f['remove']){_0x47f555['push']({'type':'replace','content':Ot(_0x1cca94,'REPLACE_TEXT',['\x22'+_0x50675f['remove']+'\x22','\x22'+_0x50675f['add']+'\x22'])});continue;}if(null!=_0x50675f['add']['match'](/^ +$/)){_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0',Ot(_0x1cca94,'ELEMENT_SPACE',_0x50675f['add']['length']))});continue;}if(null!=_0x50675f['remove']['match'](/^ +$/)){_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0',Ot(_0x1cca94,'ELEMENT_SPACE',_0x50675f['remove']['length']))});continue;}if(''!=_0x50675f['add']){_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0','\x22'+_0x50675f['add']+'\x22')});continue;}_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0','\x22'+_0x50675f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'addContainer':_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Split:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'removeContainer':_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Merge:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'addFormat':_0x23636c['push'](_0x50675f['key']);continue;case'removeFormat':_0x430f93['push'](_0x50675f['key']);continue;default:_0x47f555['push'](_0x50675f);}if(_0x23636c['length']){const _0x495348=_0x23636c['map'](_0x324370=>this['_attributeLabels']['has'](_0x324370)?this['_attributeLabels']['get'](_0x324370):_0x324370)['join'](',\x20');_0x47f555['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x495348)});}if(_0x430f93['length']){const _0x1c5ebc=_0x430f93['map'](_0x1c46e1=>this['_attributeLabels']['has'](_0x1c46e1)?this['_attributeLabels']['get'](_0x1c46e1):_0x1c46e1)['join'](',\x20');_0x47f555['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c5ebc)});}return _0x47f555;}_handleCustomCallbackDescription(_0x3dd432){for(const _0x15dea5 of this['_customCallbacks']){const _0x2ff13a=_0x15dea5(_0x3dd432);if(_0x2ff13a&&'type'in _0x2ff13a)return _0x2ff13a;}}_handleAttributeSuggestionDescription(_0x37e9f2,_0xb7b699){const _0x3c4e4a=_0xb7b699['data'],_0x3f231a=void 0x0===_0x3c4e4a['newValue']?'removeFormat':'addFormat';_0x37e9f2['push']({'type':_0x3f231a,'key':_0x3c4e4a['key']});}_handleRenameSuggestionDescription(_0xa2cb19,_0x402bf9){_0xa2cb19['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x402bf9['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0xda17ec,_0x1c2ce0,_0x3b110d){if(this['_addDescriptionItems'](_0xda17ec,_0x1c2ce0),_0x3b110d&&_0x3b110d['getFirstRange']()&&!_0x1c2ce0['getFirstRange']()['end']['isEqual'](_0x3b110d['getFirstRange']()['start'])){const _0x2440d6=_0xda17ec[_0xda17ec['length']-0x1],_0x18f5c2='insertion'==_0x1c2ce0['type']?'add':'remove';_0x2440d6&&'text'==_0x2440d6['type']&&(_0x2440d6[_0x18f5c2]+='\x0a');}}},Ft=class extends _0x9bd549{afterInit(){const _0x4694e6=this['editor'],_0x1d3c59=_0x4694e6['plugins']['get']('TrackChangesEditing');_0x4694e6['commands']['get']('showAIAssistant')&&_0x1d3c59['enableCommand']('showAIAssistant');}},Bt=class extends _0x9bd549{afterInit(){const _0x372959=this['editor'],_0x19e942=_0x372959['plugins']['get']('TrackChangesEditing');_0x372959['commands']['get']('toggleAi')&&_0x19e942['enableCommand']('toggleAi');}},vt=class extends _0x9bd549{afterInit(){const _0x1c211e=this['editor'],_0x6873ac=_0x1c211e['plugins']['get']('TrackChangesEditing');_0x1c211e['commands']['get']('aiQuickAction')&&_0x6873ac['enableCommand']('aiQuickAction');}},Dt=class extends _0x9bd549{afterInit(){const _0x29ea5f=this['editor'],_0x4c49b7=_0x29ea5f['locale'];if(!_0x29ea5f['plugins']['has']('AlignmentEditing'))return;const _0x49ce7b=_0x29ea5f['plugins']['get']('TrackChangesEditing');_0x49ce7b['enableDefaultAttributesIntegration']('alignment'),_0x49ce7b['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x4c49b7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x19d98e=this['editor'],_0x2465d5=_0x19d98e['locale'];_0x19d98e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40b2e2=>{if('formatBlock'!=_0x40b2e2['type'])return;const {data:_0x31ca82}=_0x40b2e2;if(_0x31ca82&&'alignment'==_0x31ca82['commandName']){const _0xc0263e=_0x31ca82['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x2465d5,'*Format:*\x20%0',function(_0x2e9c20){switch(_0x2e9c20){case'left':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x2465d5,'FORMAT_JUSTIFY_TEXT');}}(_0xc0263e))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x9bd549{afterInit(){const _0x28799f=this['editor'],_0x379617=_0x28799f['plugins']['get']('TrackChangesEditing'),_0x536dba=_0x28799f['locale'];for(const _0xfbeff2 of Ut){if(!_0x28799f['plugins']['has'](_0xfbeff2))continue;const _0x505a92=_0xfbeff2['slice'](0x0,-0x7)['toLowerCase'](),_0x1e79fc='FORMAT_'+_0x505a92['toUpperCase']();_0x379617['enableDefaultAttributesIntegration'](_0x505a92),_0x379617['descriptionFactory']['registerAttributeLabel'](_0x505a92,Ot(_0x536dba,_0x1e79fc));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x324cf7=this['editor'],_0xbb120f=_0x324cf7['locale'],_0x323e71=_0x324cf7['plugins']['get']('TrackChangesEditing');function _0x90c6c9(_0x2e5495,_0x7d03ea){_0x323e71['descriptionFactory']['registerDescriptionCallback'](_0x4de9ad=>{if('formatInline'!=_0x4de9ad['type'])return;const {data:_0x77c542}=_0x4de9ad;return _0x77c542&&_0x77c542['commandName']===_0x2e5495?_0x77c542['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xbb120f,'*Format:*\x20%0',_0x7d03ea)}:{'type':'format','content':Ot(_0xbb120f,'*Remove\x20format:*\x20%0',_0x7d03ea)}:void 0x0;});}_0x90c6c9('bold',Ot(_0xbb120f,'FORMAT_BOLD')),_0x90c6c9('italic',Ot(_0xbb120f,'FORMAT_ITALIC')),_0x90c6c9('underline',Ot(_0xbb120f,'FORMAT_UNDERLINE')),_0x90c6c9('code',Ot(_0xbb120f,'FORMAT_CODE')),_0x90c6c9('strikethrough',Ot(_0xbb120f,'FORMAT_STRIKETHROUGH')),_0x90c6c9('subscript',Ot(_0xbb120f,'FORMAT_SUBSCRIPT')),_0x90c6c9('superscript',Ot(_0xbb120f,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x9bd549{afterInit(){const _0x2a2321=this['editor'],_0x5039a2=_0x2a2321['locale'];if(!_0x2a2321['plugins']['has']('BlockQuoteEditing'))return;const _0x2940fb=_0x2a2321['plugins']['get']('TrackChangesEditing'),_0x212439=this['editor']['commands']['get']('blockQuote');_0x2940fb['enableCommand']('blockQuote',(_0x19960b,_0x5ac0cb={})=>{const _0x364621=this['editor']['model']['document']['selection'],_0x77ffee=_0x5ac0cb&&void 0x0!==_0x5ac0cb['forceValue']?_0x5ac0cb['forceValue']:!_0x212439['value'];let _0x12513e=[];_0x12513e=Ct(_0x77ffee?Array['from'](_0x364621['getSelectedBlocks']())['filter'](_0x2d844a=>Gt(_0x2d844a)||function(_0x585a55,_0x55b8c5){const _0x4b6e46=_0x55b8c5['createContext'](_0x585a55['parent']);return!!_0x55b8c5['checkChild'](_0x4b6e46,'blockQuote')&&!!_0x55b8c5['checkChild'](_0x4b6e46['push']('blockQuote'),_0x585a55);}(_0x2d844a,this['editor']['model']['schema'])):Array['from'](_0x364621['getSelectedBlocks']())['filter'](_0x50773e=>Gt(_0x50773e)),_0x2a2321['model']),_0x2a2321['model']['change'](()=>{for(const _0x4f5685 of _0x12513e)_0x2940fb['markBlockFormat'](_0x4f5685,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x77ffee}]});});}),_0x2940fb['descriptionFactory']['registerDescriptionCallback'](_0x221b2e=>{const {data:_0x539e65}=_0x221b2e;if(_0x539e65&&'blockQuote'==_0x539e65['commandName']){const _0x493745=Ot(_0x5039a2,'ELEMENT_BLOCK_QUOTE');return _0x539e65['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x5039a2,'*Set\x20format:*\x20%0',_0x493745)}:{'type':'format','content':Ot(_0x5039a2,'*Remove\x20format:*\x20%0',_0x493745)};}});}};function Gt(_0x88b2af){return'blockQuote'==_0x88b2af['parent']['name'];}var Ht=class extends _0x9bd549{afterInit(){const _0x15a6e7=this['editor'],_0x5a3f82=_0x15a6e7['locale'],_0x43b1da=_0x15a6e7['plugins']['get']('TrackChangesEditing');_0x15a6e7['plugins']['has']('BookmarkEditing')&&(_0x43b1da['enableCommand']('insertBookmark'),_0x43b1da['enableDefaultAttributesIntegration']('updateBookmark'),_0x43b1da['descriptionFactory']['registerDescriptionCallback'](_0x28e451=>{if('insertion'!=_0x28e451['type']&&'deletion'!=_0x28e451['type']&&'attribute'!=_0x28e451['type'])return;const _0x146190=_0x28e451['getContainedElement']();if(null==_0x146190)return;if(!_0x146190['is']('element','bookmark'))return;const _0x12d5ff=_0x146190['getAttribute']('bookmarkId');if('insertion'==_0x28e451['type'])return{'type':'insertion','content':Ot(_0x5a3f82,'*Insert:*\x20%0','\x22'+_0x12d5ff+'\x22\x20'+Ot(_0x5a3f82,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28e451['type'])return{'type':'deletion','content':Ot(_0x5a3f82,'*Remove:*\x20%0','\x22'+_0x12d5ff+'\x22\x20'+Ot(_0x5a3f82,'ELEMENT_BOOKMARK'))};const {data:_0x4be337}=_0x28e451;return _0x4be337&&'bookmarkId'==_0x4be337['key']?{'type':'format','content':Ot(_0x5a3f82,'*Set\x20bookmark:*\x20%0','\x22'+_0x4be337['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x9bd549{afterInit(){const _0x884b9e=this['editor'];_0x884b9e['plugins']['has']('CaseChange')&&(_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x9bd549{afterInit(){const _0x431703=this['editor'];_0x431703['commands']['get']('ckbox')&&_0x431703['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x9bd549{static get requires(){return[gt,ft];}constructor(_0x230b5f){super(_0x230b5f),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x376783=this['editor'],_0x32d41e=_0x376783['plugins']['get']('ClipboardMarkersUtils'),_0x2dced6=_0x376783['plugins']['get'](ft);_0x32d41e['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x2dced6['on']('outputTransformation',(_0x475cbd,_0x10cb45)=>{const _0xb4a8bb=this['_getSuggestionEntries'](_0x10cb45);for(const [_0x5bb480,_0x8235f1]of _0x10cb45['content']['markers']){const _0x3e499d=ot['_fromRangeInDocumentFragment'](_0x8235f1,_0x376783['model']);function _0x2ae23a(){_0x3e499d['detach'](),_0x10cb45['content']['markers']['delete'](_0x5bb480);}_0x3e499d['on']('change:drop',_0x2ae23a),(_0x5bb480['startsWith']('suggestion:')||_0x5bb480['startsWith']('comment:'))&&_0x3e499d['on']('change:range',()=>{_0x3e499d['isCollapsed']&&_0x2ae23a();}),_0x10cb45['content']['markers']['set'](_0x5bb480,_0x3e499d);}const _0x29f3a6=_0xb4a8bb['filter'](_0x4bb27b=>'deletion'===_0x4bb27b['meta']['type'])['map'](_0x548307=>_0x548307['modelRange']);if(this['_shouldSkipDeletions'](_0x29f3a6,_0x10cb45['content']))return[..._0xb4a8bb]['forEach'](_0x478c9b=>{_0x10cb45['content']['markers']['get'](_0x478c9b['markerName'])['detach'](),_0x10cb45['content']['markers']['delete'](_0x478c9b['markerName']);}),void this['_restoreRegularRanges'](_0x10cb45['content']['markers']);[..._0xb4a8bb]['forEach'](_0x5513ee=>{const _0x1a1920=_0x376783['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x5513ee['meta']['type'],_0x5513ee['meta']['subType'],'accept'),{markerName:_0x3751cf,meta:_0x4c4f2f}=_0x5513ee;if(_0x10cb45['content']['markers']['has'](_0x3751cf)){switch(_0x4c4f2f['type']){case'deletion':if('tableRow'===_0x4c4f2f['subType']||'tableColumn'===_0x4c4f2f['subType']){if(!_0x376783['plugins']['has']('TableUtils'))break;const _0x43601a=_0x376783['plugins']['get']('TableUtils'),_0x51fe0e=_0x43601a['getSelectionAffectedTableCells'](_0x376783['model']['createSelection'](_0x10cb45['content']['markers']['get'](_0x3751cf))),_0x1335af=_0x51fe0e[0x0]['findAncestor']('table');if('tableRow'===_0x4c4f2f['subType']){const {first:_0x30e57d,last:_0x47a10a}=_0x43601a['getRowIndexes'](_0x51fe0e);_0x43601a['removeRows'](_0x1335af,{'at':_0x30e57d,'rows':_0x47a10a-_0x30e57d+0x1});}else{const {first:_0x1db2fc,last:_0x12c378}=_0x43601a['getColumnIndexes'](_0x51fe0e);_0x43601a['removeColumns'](_0x1335af,{'at':_0x1db2fc,'columns':_0x12c378-_0x1db2fc+0x1});}break;}_0x1a1920([_0x10cb45['content']['markers']['get'](_0x3751cf)]);}_0x10cb45['content']['markers']['has'](_0x3751cf)&&(_0x10cb45['content']['markers']['get'](_0x3751cf)['detach'](),_0x10cb45['content']['markers']['delete'](_0x3751cf));}}),this['_restoreRegularRanges'](_0x10cb45['content']['markers']);});}_getSuggestionEntries(_0x244e2a){const _0x3fc613=_0x5ddb8c=>'dragstart'===_0x244e2a['method']?_0x5ddb8c['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x5ddb8c;return Array['from'](_0x244e2a['content']['markers'])['map'](([_0x50c59f,_0x3cb0f3])=>({'markerName':_0x50c59f,'modelRange':_0x3cb0f3,'meta':et(_0x3fc613(_0x50c59f))}))['filter'](({meta:_0x429c3c})=>'suggestion'===_0x429c3c['group']);}_shouldSkipDeletions(_0x416f74,_0x2d2aae){if(!_0x416f74['length'])return!0x1;let _0x4bd520=[this['editor']['model']['createRangeIn'](_0x2d2aae)];for(const _0x862de2 of _0x416f74)_0x4bd520=_0x4bd520['flatMap'](_0xd754e9=>_0xd754e9['getDifference'](_0x862de2));return!_0x4bd520['some'](_0x1c99f6=>this['editor']['model']['hasContent'](_0x1c99f6,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2b16f6){[..._0x2b16f6['keys']()]['forEach'](_0x3d2a4b=>{const _0x38a225=_0x2b16f6['get'](_0x3d2a4b);_0x38a225['detach'](),_0x2b16f6['set'](_0x3d2a4b,_0x38a225['toRange']());});}},jt=class extends _0x9bd549{afterInit(){const _0x2dccb4=this['editor'];if(!_0x2dccb4['plugins']['has']('CodeBlock'))return;const _0x424252=_0x2dccb4['plugins']['get']('TrackChangesEditing'),_0x1f8938=_0x2dccb4['locale'],_0x4ca020=_0x2dccb4['config']['get']('codeBlock')['languages'],_0x4d75c7=_0x2dccb4['commands']['get']('codeBlock');_0x424252['enableCommand']('indentCodeBlock'),_0x424252['enableCommand']('outdentCodeBlock'),_0x424252['enableCommand']('codeBlock',(_0x1469a2,_0x40ce27={})=>{const _0x2e3ea0=_0x2dccb4['model'],_0x14a6e7=_0x2dccb4['model']['document']['selection'],_0x319b87=_0x40ce27&&void 0x0!==_0x40ce27['forceValue']?_0x40ce27['forceValue']:!_0x4d75c7['value'];let _0x37d9eb;_0x40ce27['language']||(_0x40ce27['language']=_0x4ca020[0x0]['language']),_0x37d9eb=_0x319b87?Array['from'](_0x14a6e7['getSelectedBlocks']())['filter'](_0x3260c8=>{return zt(_0x3260c8)||(_0x463a24=_0x3260c8,_0x42ba22=_0x2e3ea0['schema'],!_0x463a24['is']('rootElement')&&!_0x42ba22['isLimit'](_0x463a24)&&_0x42ba22['checkChild'](_0x463a24['parent'],'codeBlock'));var _0x463a24,_0x42ba22;}):Array['from'](_0x14a6e7['getSelectedBlocks']())['filter'](_0x7b2d4d=>zt(_0x7b2d4d));const _0x20cf99=Ct(_0x37d9eb,_0x2e3ea0);_0x2e3ea0['change'](()=>{for(const _0x186a9b of _0x20cf99)_0x424252['markBlockFormat'](_0x186a9b,{'commandName':'codeBlock','commandParams':[{..._0x40ce27,'forceValue':_0x319b87}],'formatGroupId':'blockName'});});}),(_0x424252['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d1697=>Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',_0x4d1697)),_0x424252['descriptionFactory']['registerDescriptionCallback'](_0x5ba558=>{if('formatBlock'!=_0x5ba558['type'])return;const _0x4f9235=_0x1f8938['t'],{data:_0x5518de}=_0x5ba558;if(!_0x5518de||'codeBlock'!=_0x5518de['commandName'])return;const _0x480ad3=_0x5518de['commandParams'][0x0]['language'],_0x2f75cb=_0x4f9235(_0x4ca020['find'](_0x40c8f1=>_0x40c8f1['language']===_0x480ad3)['label'])['toLowerCase']();return _0x5518de['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1f8938,'*Set\x20format:*\x20%0',Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f75cb+')')}:{'type':'format','content':Ot(_0x1f8938,'*Remove\x20format:*\x20%0',Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x2778c3){return'codeBlock'==_0x2778c3['name'];}var Kt=class extends _0x9bd549{afterInit(){const _0x12e5eb=this['editor'];_0x12e5eb['plugins']['has']('CommentsEditing')&&_0x12e5eb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x9bd549{static get requires(){return[mt];}init(){const _0x42ebd1=this['editor'],_0xdda8de=_0x42ebd1['plugins']['get']('TrackChangesEditing');_0xdda8de['enableCommand']('delete');const _0x1d6970=_0x42ebd1['commands']['get']('deleteForward');_0xdda8de['enableCommand']('deleteForward',(_0x53c491,_0x58513b={})=>{const _0x400c22=_0x42ebd1['model']['createSelection'](_0x42ebd1['model']['document']['selection']);_0x400c22['isCollapsed']&&_0x42ebd1['model']['modifySelection'](_0x400c22,{'direction':'forward','unit':_0x58513b['unit']});const _0x5a0176=_0x400c22['getFirstRange'](),_0x4173cf=ot['fromRange'](_0x5a0176);let _0x45beaf;_0x53c491(_0x58513b),_0x45beaf='$graveyard'==_0x4173cf['root']['rootName']?_0x42ebd1['model']['createRange'](_0x5a0176['start']):_0x42ebd1['model']['createRange'](_0x4173cf['start'],_0x4173cf['end']),_0x4173cf['detach'](),_0x42ebd1['model']['enqueueChange'](_0x1d6970['buffer']['batch'],_0x9f2bf0=>{_0x1d6970['buffer']['lock'](),_0x9f2bf0['setSelection'](_0x9f2bf0['createRange'](_0x45beaf['end'])),_0x1d6970['buffer']['unlock']();});});}},qt=class extends _0x9bd549{afterInit(){const _0x47276e=this['editor'];if(!_0x47276e['plugins']['has']('ListEditing'))return;const _0x477c92=_0x47276e['locale'],_0x160096=_0x47276e['plugins']['get']('TrackChangesEditing'),_0x4516de=_0x47276e['plugins']['has']('TodoListEditing'),_0x5d9737=!!_0x47276e['config']['get']('list.multiBlock');function _0x30c15d(_0x4fd152){return{'type':'format','content':''+Ot(_0x477c92,'*Set\x20format:*\x20%0',_0x4fd152)};}function _0x1d6e00(_0x5200c0){return{'type':'format','content':''+Ot(_0x477c92,'*Remove\x20format:*\x20%0',_0x5200c0)};}_0x160096['enableDefaultAttributesIntegration']('numberedList'),_0x160096['enableDefaultAttributesIntegration']('bulletedList'),_0x160096['enableDefaultAttributesIntegration']('customNumberedList'),_0x160096['enableDefaultAttributesIntegration']('customBulletedList'),_0x160096['enableDefaultAttributesIntegration']('indentList'),_0x160096['enableDefaultAttributesIntegration']('outdentList'),_0x160096['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x160096['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d9737&&(_0x160096['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x160096['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4516de&&(_0x160096['enableDefaultAttributesIntegration']('todoList'),_0x160096['enableDefaultAttributesIntegration']('checkTodoList'),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x166c20=>{const {data:_0x33ab83}=_0x166c20;if(_0x33ab83&&'todoListChecked'==_0x33ab83['key'])return{'type':'format','content':_0x33ab83['newValue']?Ot(_0x477c92,'*Check\x20item*'):Ot(_0x477c92,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xb27082=>{if(_0xb27082['batch']['isUndo'])return!0x1;let _0x450c80=!0x1;const _0x400885=_0x160096['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f7628=>'todoListChecked'===_0x160096['_getAttributeKey'](_0x3f7628));for(const _0x5b2ca7 of _0x400885)'todo'!=_0x5b2ca7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x160096['_findSuggestions'](_0x5b2ca7['getFirstRange'](),'attribute')['find'](_0x4fd70e=>'listType'===_0x160096['_getAttributeKey'](_0x4fd70e['suggestion']))||(_0xb27082['removeMarker'](_0x5b2ca7['getFirstMarker']()),_0x450c80=!0x0));return _0x450c80;})),_0x160096['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x477c92,'FORMAT_INDENT'));const _0x3db429={'type':'format','content':''};_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x16bdf2=>{const {data:_0x428988}=_0x16bdf2;if(!_0x428988||'listType'!=_0x428988['key'])return;let _0x544abc=_0x16bdf2['head'];for(;_0x544abc;){if(_0x544abc['data']&&(('listStyle'==_0x544abc['data']['key']||'listMarkerStyle'==_0x544abc['data']['key'])&&(_0x544abc['data']['newValue']&&'default'!=_0x544abc['data']['newValue']||'default'!=_0x544abc['data']['oldValue']&&!_0x428988['newValue'])||!_0x5d9737&&'$elementName'==_0x544abc['data']['key']))return _0x3db429;_0x544abc=_0x544abc['next'];}if(null==_0x428988['newValue'])switch(_0x428988['oldValue']){case'bulleted':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_TODO_LIST'));}switch(_0x428988['newValue']){case'bulleted':return _0x30c15d(Ot(_0x477c92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30c15d(Ot(_0x477c92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30c15d(Ot(_0x477c92,'ELEMENT_TODO_LIST'));}}),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x59d6f0=>{const {data:_0x1af39d}=_0x59d6f0;if(_0x1af39d&&'listIndent'==_0x1af39d['key'])return null==_0x1af39d['newValue']||null==_0x1af39d['oldValue']&&0x0==_0x1af39d['newValue']?_0x3db429:void 0x0;}),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x4b8356=>{if('attribute'!=_0x4b8356['type'])return;const {data:_0x516c5f}=_0x4b8356;if(!_0x516c5f||'listItemId'!=_0x516c5f['key'])return;const _0x52da9f=Yt(_0x4b8356);return'newValue'==_0x52da9f?{'type':'format','content':Ot(_0x477c92,'*Merge:*\x20list\x20item')}:'oldValue'==_0x52da9f?{'type':'format','content':Ot(_0x477c92,'*Split:*\x20list\x20item')}:_0x3db429;}),_0x47276e['model']['document']['registerPostFixer'](_0x57e785=>this['listItemIdFixer'](_0x57e785)),_0x47276e['model']['document']['registerPostFixer'](_0x20c325=>this['noTrackChangesFixer'](_0x20c325)),_0x47276e['model']['document']['on']('change:data',(_0xc29492,_0x2ff07a)=>{if(_0x2ff07a['isUndo']||!_0x2ff07a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x2d7f10){if(_0x2d7f10['batch']['isUndo']||!_0x2d7f10['batch']['isLocal'])return!0x1;let _0x5aa104=!0x1;const _0x25ce7b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8fce9d=>_0x8fce9d['data']&&'listItemId'==_0x8fce9d['data']['key'])['filter'](_0x3c0aee=>_0x3c0aee['data']['newValue']&&_0x3c0aee['data']['oldValue']);for(const _0x5216e7 of _0x25ce7b)Yt(_0x5216e7)||(_0x2d7f10['removeMarker'](_0x5216e7['getFirstMarker']()),_0x5aa104=!0x0);return _0x5aa104;}['noTrackChangesFixer'](_0x13f854){if(_0x13f854['batch']['isUndo']||!_0x13f854['batch']['isLocal'])return!0x1;const _0x3a5625=this['editor']['model']['document']['differ'],_0x13c930=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13c930['trackChangesCommand']['value'])return!0x1;let _0x3d11e1=!0x1;const _0x3c0dc8=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x1a61d0=_0x3a5625['getChanges']()['filter'](_0x3ff23c=>'attribute'==_0x3ff23c['type'])['filter'](_0x45883f=>_0x3c0dc8['has'](_0x45883f['attributeKey']));if(0x0==_0x1a61d0['length'])return _0x3d11e1;const _0x3820a2=new Set(_0x3a5625['getMarkersToAdd']()['filter'](_0x264625=>{if(!_0x264625['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x772885=et(_0x264625['name'])['subType']['split']('|')[0x0];return _0x3c0dc8['has'](_0x772885);})['map'](_0x213625=>et(_0x213625['name'])['id']));for(const _0x34a6ab of _0x1a61d0){const _0x21b307=_0x13c930['_findSuggestions'](_0x34a6ab['range'],'attribute')['filter'](_0x3101b3=>{if(_0x3101b3['meta']['isNextTo'])return!0x1;if(_0x3820a2['has'](_0x3101b3['suggestion']['id']))return!0x1;const _0x32d609=_0x13c930['_getAttributeKey'](_0x3101b3['suggestion']);return _0x3c0dc8['has'](_0x32d609);})['map'](_0x3d4244=>_0x3d4244['suggestion']);if(_0x21b307['length']){for(const _0x4971a4 of _0x21b307)_0x13f854['removeMarker'](_0x4971a4['getFirstMarker']());_0x3d11e1=!0x0;}}return _0x3d11e1;}['assureChains'](){const _0x4522dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5881a4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4f9df6;const _0x5e71f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5978d4=>{if(_0x5978d4['data']['oldRange']||!_0x5978d4['data']['newRange'])return null;if(!_0x5978d4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x165368}=et(_0x5978d4['name']);if(!_0x4522dd['hasSuggestion'](_0x165368))return null;const _0x309122=_0x4522dd['getSuggestion'](_0x165368);return _0x5881a4['includes'](_0x309122['data']['key']);})['map'](_0x39bf3d=>{const {id:_0x434794}=et(_0x39bf3d['name']),_0x12f76f=_0x4522dd['getSuggestion'](_0x434794);return _0x4f9df6=_0x12f76f['attributes']['groupId'],_0x12f76f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e71f3['size'])return;const _0x3886ce=_0x4522dd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x304ca4=>'attribute'==_0x304ca4['type']&&_0x304ca4['data']&&_0x5881a4['includes'](_0x304ca4['data']['key'])&&_0x304ca4['attributes']['groupId']!=_0x4f9df6)['map'](_0x70f344=>({'listItem':_0x70f344['getFirstRange']()['start']['nodeAfter'],'groupId':_0x70f344['attributes']['groupId']})),_0x2c066d=new Set();for(const {groupId:_0x277904,listItem:_0x28b0f5}of _0x3886ce)_0x5e71f3['has'](_0x28b0f5)&&_0x2c066d['add'](_0x277904);for(const _0x324aa2 of _0x4522dd['getSuggestions']())_0x2c066d['has'](_0x324aa2['attributes']['groupId'])&&_0x324aa2['setAttribute']('groupId',_0x4f9df6);}_supportLegacySuggestions(){const _0x27532d=this['editor'],_0x438a0c=_0x27532d['locale'],_0xbfa068=_0x27532d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbfa068['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x229ad8,_0x22f39f){const _0x905a35=[];for(let _0xa71b19 of _0x229ad8)_0xa71b19['start']['nodeAfter']===_0xa71b19['end']['parent']&&(_0xa71b19=_0x27532d['model']['createRange'](_0x27532d['model']['createPositionAt'](_0xa71b19['start']['nodeAfter'],0x0))),_0x905a35['push'](_0xa71b19);_0x27532d['model']['change'](_0x2f31f8=>{const _0x46a995=_0x27532d['model']['document']['selection'],_0xe9f387=Array['from'](_0x46a995['getRanges']())['map'](_0xbb1f97=>ot['fromRange'](_0xbb1f97));_0x2f31f8['setSelection'](_0x905a35),_0x27532d['commands']['get'](_0x22f39f['commandName'])['refresh'](),_0x22f39f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27532d['execute'](_0x22f39f['commandName'],..._0x22f39f['commandParams']),_0x2f31f8['setSelection'](_0xe9f387);for(const _0x184e2b of _0xe9f387)_0x184e2b['detach']();});}),_0xbfa068['descriptionFactory']['registerElementLabel'](function(_0xa9704c){const _0x46bf54=!_0x27532d['model']['schema']['isObject'](_0xa9704c),_0x58fc68=_0xa9704c['previousSibling'],_0x40b257=_0xa9704c['nextSibling'],_0x88eb5=_0xa9704c['getAttribute']('listItemId'),_0x29e047=!_0x58fc68||_0x58fc68['getAttribute']('listItemId')!==_0x88eb5,_0x239eee=!_0x40b257||_0x40b257['getAttribute']('listItemId')!==_0x88eb5;return _0x46bf54&&Boolean(_0x88eb5)&&_0x29e047&&_0x239eee;},_0x3e21c5=>Ot(_0x438a0c,'ELEMENT_LIST_ITEM',_0x3e21c5));}_registerLegacyDescription(){const _0x5dc13c=this['editor'],_0x57e93d=_0x5dc13c['locale'];function _0x108269(_0x537605){const _0x2336d7=_0x5dc13c['commands']['get']('bulletedList')['value'],_0x1f07bb=_0x5dc13c['commands']['get']('numberedList')['value'];return'numberedList'===_0x537605?_0x2336d7:_0x1f07bb;}_0x5dc13c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a0710){if('formatBlock'!=_0x4a0710['type'])return;const {data:_0x379f53}=_0x4a0710;if(!_0x379f53)return;let _0x1f7d60,_0x24d107,_0x308e,_0x5528c1;switch(_0x379f53['commandName']){case'bulletedList':_0x308e=_0x379f53['commandParams'][0x0]['forceValue'],_0x5528c1=_0x108269(_0x379f53['commandName']),_0x1f7d60=_0x308e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5528c1&&_0x5dc13c['config']['get']('list.multiBlock')||(_0x1f7d60='*Change\x20to:*\x20%0'),_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x308e=_0x379f53['commandParams'][0x0]['forceValue'],_0x5528c1=_0x108269(_0x379f53['commandName']),_0x1f7d60=_0x308e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5528c1&&_0x5dc13c['config']['get']('list.multiBlock')||(_0x1f7d60='*Change\x20to:*\x20%0'),_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f7d60='*Indent:*\x20%0',_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f7d60=function(_0x306381){const _0x4ab34f=_0x306381['getFirstRange']();let _0x225366=_0x4ab34f['start']['nodeAfter'];for(;_0x225366&&_0x4ab34f['containsItem'](_0x225366);){if(_0x225366['getAttribute']('listIndent')>0x0)return!0x1;_0x225366=_0x225366['nextSibling'];}return!0x0;}(_0x4a0710)?Ot(_0x57e93d,'*Format:*\x20remove\x20from\x20%0',Ot(_0x57e93d,function(_0x198947){return'ELEMENT_'+_0x198947['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a0710))):Ot(_0x57e93d,'*Outdent:*\x20%0',Ot(_0x57e93d,'ELEMENT_LIST_ITEM')),_0x24d107={'type':'format','content':_0x1f7d60};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x379f53['multipleBlocks']&&(_0x1f7d60='*Merge:*\x20%0',_0x24d107={'type':'deletion','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_LIST_ITEM'))});}return _0x24d107;});}};function Yt(_0x4ca4bf){let _0x529b82=_0x4ca4bf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x529b82;){const _0x5bfb92=_0x529b82['getAttribute']('listItemId');if(!_0x5bfb92)return!0x1;if(_0x5bfb92==_0x4ca4bf['data']['newValue'])return'newValue';if(_0x5bfb92==_0x4ca4bf['data']['oldValue'])return'oldValue';_0x529b82=_0x529b82['previousSibling'];}return!0x1;}var Qt=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x395723=this['editor']['config']['get']('list.properties'),_0x6a33=this['editor']['plugins']['get']('TrackChangesEditing');_0x395723['styles']&&_0x6a33['enableDefaultAttributesIntegration']('listStyle'),_0x395723['reversed']&&_0x6a33['enableDefaultAttributesIntegration']('listReversed'),_0x395723['startIndex']&&_0x6a33['enableDefaultAttributesIntegration']('listStart');const _0x392e0e={'type':'format','content':''};_0x6a33['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2a8a49=this['editor']['locale'];_0x6a33['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x2a8a49,'FORMAT_LIST_REVERSED')),_0x6a33['descriptionFactory']['registerDescriptionCallback'](_0x27af53=>{const {data:_0x504b56}=_0x27af53;if(_0x504b56&&'listReversed'==_0x504b56['key'])return null==_0x504b56['newValue']||0x0==_0x504b56['newValue']&&null==_0x504b56['oldValue']?_0x392e0e:void 0x0;}),_0x6a33['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x2a8a49,'FORMAT_LIST_START')),_0x6a33['descriptionFactory']['registerDescriptionCallback'](_0x408db0=>{const {data:_0x1a4ca4}=_0x408db0;if(_0x1a4ca4&&'listStart'==_0x1a4ca4['key'])return null==_0x1a4ca4['newValue']||0x1==_0x1a4ca4['newValue']&&null==_0x1a4ca4['oldValue']?_0x392e0e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x789838=>{if(_0x789838['batch']['isUndo'])return!0x1;let _0x42160c=!0x1;const _0x1b87eb=_0x6a33['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x176ee6=>{const _0x42c737=_0x6a33['_getAttributeKey'](_0x176ee6);return'listStart'==_0x42c737||'listReversed'==_0x42c737;});for(const _0x55be64 of _0x1b87eb){const _0x24a406=_0x55be64['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x24a406&&'customNumbered'!=_0x24a406&&(_0x6a33['_findSuggestions'](_0x55be64['getFirstRange'](),'attribute')['find'](_0x102f8d=>'listType'==_0x6a33['_getAttributeKey'](_0x102f8d['suggestion']))||(_0x789838['removeMarker'](_0x55be64['getFirstMarker']()),_0x42160c=!0x0));}return _0x42160c;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3f9528){const _0x596e14=this['editor']['locale'],{data:_0x365901}=_0x3f9528,_0x263e5b={'type':'format','content':''};if(!_0x365901||'listStyle'!=_0x365901['key'])return;if(!_0x365901['oldValue'])return'default'==_0x365901['newValue']?_0x263e5b:{'type':'format','content':''+Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['newValue'])))};if(!_0x365901['newValue']){if('default'==_0x365901['oldValue'])return _0x263e5b;let _0x3cce72=_0x3f9528['head'];for(;_0x3cce72;){if(_0x3cce72['data']&&'listType'==_0x3cce72['data']['key']&&_0x3cce72['data']['newValue'])return _0x263e5b;_0x3cce72=_0x3cce72['next'];}return{'type':'format','content':''+Ot(_0x596e14,'*Remove\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['oldValue'])))};}if('default'!=_0x365901['newValue'])return{'type':'format','content':''+Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['newValue'])))};let _0x4ab4b2=_0x3f9528['head'];for(;_0x4ab4b2;){if(_0x4ab4b2['data']&&'listType'==_0x4ab4b2['data']['key']&&_0x4ab4b2['data']['newValue']&&_0x4ab4b2['data']['oldValue'])return _0x263e5b;_0x4ab4b2=_0x4ab4b2['next'];}return{'type':'format','content':Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,'ELEMENT_'+_0x3f9528['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x386e67=this['editor'],_0x4f1d23=_0x386e67['locale'];_0x386e67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x266437=>{if('formatBlock'!=_0x266437['type'])return;const {data:_0x1d2481}=_0x266437;if(!_0x1d2481)return;let _0x1b4c31,_0x558d57;switch(_0x1d2481['commandName']){case'listStyle':_0x1b4c31='*Change\x20to:*\x20%0',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31,Ot(_0x4f1d23,this['_getTranslationKeyForListStyle'](_0x1d2481['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b4c31=_0x1d2481['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31)};break;case'listStart':_0x1b4c31='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31,_0x1d2481['commandParams'][0x0]['startIndex'])};}return _0x558d57;});}_getTranslationKeyForListStyle(_0x2686e0){return'ELEMENT_'+(_0x3ebd56=_0x2686e0,Zt['includes'](_0x3ebd56)?'bulleted':Jt['includes'](_0x3ebd56)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x2686e0['toUpperCase']()['replace'](/-/g,'_');var _0x3ebd56;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x9bd549{afterInit(){const _0x2ef4b6=this['editor'];_0x2ef4b6['commands']['get']('emoji')&&_0x2ef4b6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x9bd549{static get requires(){return[Tt];}init(){const _0x5c1440=this['editor'],_0x128708=_0x5c1440['plugins']['get']('TrackChangesEditing'),_0x1e3954=_0x5c1440['commands']['get']('enter');_0x128708['enableCommand']('enter',()=>{_0x5c1440['model']['change'](_0x506e90=>{const _0x1b3b92=_0x5c1440['model']['document']['selection'],_0x7ed92d=_0x1b3b92['getFirstPosition'](),_0x5bdf8c=ot['fromRange'](_0x1b3b92['getFirstRange']());if(_0x1e3954['enterBlock'](_0x506e90)){const _0x5e84e9=_0x5c1440['model']['createPositionAt'](_0x7ed92d['parent']['nextSibling'],0x0),_0xd4a731=_0x506e90['createRange'](_0x7ed92d,_0x5e84e9);_0x128708['markInsertion'](_0xd4a731);}else _0x506e90['setSelection'](_0x506e90['createRange'](_0x5bdf8c['end']));_0x5bdf8c['detach'](),_0x1e3954['fire']('afterExecute',{'writer':_0x506e90});});});}},ne=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2ed9df=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ed9df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2ed9df['enableCommand']('findNext'),_0x2ed9df['enableCommand']('findPrevious'),_0x2ed9df['enableCommand']('replace'),_0x2ed9df['enableCommand']('replaceAll');}['handleFindCommand'](_0x1c53a8,_0x550b0f,_0x35760c={}){const _0x2cbeb3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1c53a8(_0xcaef31=>{let _0x763459=('string'==typeof _0x550b0f?_0x2cbeb3['findByTextCallback'](_0x550b0f,_0x35760c):_0x550b0f)(_0xcaef31);Array['isArray'](_0x763459)&&(_0x763459={'results':_0x763459,'searchText':'string'==typeof _0x550b0f?_0x550b0f:''});const _0x2d1980=_0x763459['results']['filter'](_0x1c44da=>!0x1===this['_isInDeletionRange'](_0x1c44da,_0xcaef31['item']));return{..._0x763459,'results':_0x2d1980};},_0x35760c);}_isInDeletionRange(_0xc86b58,_0x157462){const _0x522cfe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x157462,_0xc86b58['start']),this['editor']['model']['createPositionAt'](_0x157462,_0xc86b58['end']));for(const _0x567b42 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x522cfe['getIntersection'](_0x567b42['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x9bd549{afterInit(){const _0x298bba=this['editor']['locale'],_0x4558bf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2caa62,commandName:_0x2e4b2d}of ie)this['editor']['plugins']['has'](_0x2caa62)&&_0x4558bf['enableDefaultAttributesIntegration'](_0x2e4b2d);_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x298bba,'FORMAT_FONT_SIZE')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x298bba,'FORMAT_FONT_FAMILY')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x298bba,'FORMAT_FONT_COLOR')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x298bba,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5b5c7c=this['editor'],_0x36e5d7=_0x5b5c7c['locale'];_0x5b5c7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15f2c3=>{const _0x5ce263=_0x36e5d7['t'];if('formatInline'!=_0x15f2c3['type'])return;const {data:_0x5d51c6}=_0x15f2c3;if(null!=_0x5d51c6){if('fontSize'==_0x5d51c6['commandName']){const _0x1ae0e6=_0x5d51c6['commandParams'][0x0]['value'];if(_0x1ae0e6){const _0x1331dd=_0x5ce263(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43c26c=>_0x43c26c['model']==_0x1ae0e6)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20size:*\x20%0',_0x1331dd)};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5d51c6['commandName']){const _0x4ef48c=_0x5d51c6['commandParams'][0x0]['value'];return _0x4ef48c?{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20family:*\x20%0',_0x4ef48c)}:{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5d51c6['commandName']){const _0x1848d2=_0x5d51c6['commandParams'][0x0]['value'];if(_0x1848d2){const _0x34f22e=_0x178ae1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c917e=>_0x5c917e['model']==_0x1848d2);let _0x1e2246=_0x1848d2,_0xe044b9='';return _0x34f22e&&(_0x1e2246=_0x34f22e['label'],_0xe044b9=_0x5ce263(_0x1e2246)['toLowerCase']()),{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20color:*\x20%0',_0xe044b9)['trim'](),'color':{'value':_0x1848d2,'title':_0xe044b9||_0x1e2246}};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5d51c6['commandName']){const _0x541cf1=_0x5d51c6['commandParams'][0x0]['value'];if(_0x541cf1){const _0x7927a6=_0x178ae1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa7ca82=>_0xa7ca82['model']==_0x541cf1);let _0xb64d08=_0x541cf1,_0x5996f0='';return _0x7927a6&&(_0xb64d08=_0x7927a6['label'],_0x5996f0=_0x5ce263(_0xb64d08)['toLowerCase']()),{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x5996f0)['trim'](),'color':{'value':_0x541cf1,'title':_0x5996f0||_0xb64d08}};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x9bd549{afterInit(){const {plugins:_0x3467f4}=this['editor'];_0x3467f4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3467f4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x53f8ef,plugins:_0x515a7d,commands:_0x22086d}=this['editor'],_0x32cacc=_0x515a7d['get']('TrackChangesEditing');_0x22086d['get']('footnotesStyle')&&_0x32cacc['enableDefaultAttributesIntegration']('footnotesStyle'),_0x22086d['get']('footnotesStart')&&_0x32cacc['enableDefaultAttributesIntegration']('footnotesStart'),_0x32cacc['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x53f8ef,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x32cacc['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x53f8ef,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x14fb71=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3a31e7,commands:_0x58bd74}=this['editor'];_0x58bd74['get']('insertFootnote')&&_0x14fb71['enableCommand']('insertFootnote'),_0x14fb71['descriptionFactory']['registerElementLabel']('footnoteRef',_0x28934e=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTE_REF',_0x28934e)),_0x14fb71['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x204f97=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTE_DEFINITION',_0x204f97)),_0x14fb71['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5009cd=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5009cd));}},oe=class extends _0x9bd549{afterInit(){const _0x2c09b6=this['editor'],_0xf288e=_0x2c09b6['plugins']['get']('TrackChangesEditing'),_0x5bb2be=_0x2c09b6['commands']['get']('copyFormat'),_0x3fae7d=_0x2c09b6['commands']['get']('pasteFormat');_0x5bb2be&&_0x3fae7d&&(_0xf288e['enableDefaultAttributesIntegration']('pasteFormat'),_0xf288e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x45d77a=this['editor'],_0x498c39=_0x45d77a['locale'];_0x45d77a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352348=>{if('formatBlock'!=_0x352348['type']&&'formatInline'!=_0x352348['type'])return;const {data:_0x127680}=_0x352348;if(_0x127680&&'pasteFormat'===_0x127680['commandName']){const _0x5884c0=[],_0x553ef0=_0x127680['commandParams'][0x0];for(const [_0x19c44f,_0x5a42cc]of Object['entries'](_0x553ef0))_0x5884c0['push'](ae(_0x45d77a,_0x19c44f,_0x5a42cc));return _0x5884c0['length']?{'type':'format','content':Ot(_0x498c39,'*Set\x20format\x20to:*\x20%0',_0x5884c0['join'](',\x20'))}:{'type':'format','content':Ot(_0x498c39,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x2d1b86,_0x34ecbd,_0x58b998){const _0xaa76c0=_0x2d1b86['locale']['t'],_0x31a0c0=_0x34ecbd['split'](/(?=[A-Z])/)['join']('\x20'),_0x2520a7=_0xaa76c0(_0x31a0c0['charAt'](0x0)['toUpperCase']()+_0x31a0c0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58b998)return _0x2520a7;if('fontColor'===_0x34ecbd||'fontBackgroundColor'===_0x34ecbd){const _0x24258d=_0x178ae1(_0x2d1b86['config']['get']('fontColor.colors'))['find'](_0x12a8b7=>_0x12a8b7['model']==_0x58b998);return _0x2520a7+'\x20('+(_0x24258d?_0xaa76c0(_0x24258d['label'])['toLowerCase']():_0x58b998)+')';}if('fontSize'===_0x34ecbd&&isNaN(parseFloat(_0x58b998))){const _0x253257=_0x2d1b86['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d1b86['config']['get']('fontSize.options'))['find'](_0x341b99=>_0x341b99['model']==_0x58b998);return _0x2520a7+'\x20('+(_0x253257?_0xaa76c0(_0x253257['title'])['toLowerCase']():_0x58b998)+')';}return _0x2520a7+'\x20('+_0x58b998+')';}var ce=class extends _0x9bd549{afterInit(){const _0x48e910=this['editor'];if(!_0x48e910['plugins']['has']('GeneralHtmlSupport')||!_0x48e910['plugins']['has']('DataSchema'))return;const _0x2b429a=_0x48e910['plugins']['get']('TrackChangesEditing'),_0x444670=_0x48e910['plugins']['get']('GeneralHtmlSupport'),_0x22e477=_0x48e910['plugins']['get']('DataSchema'),_0x10de56=_0x48e910['locale'],_0x4d35cc=new Set(['htmlContent']);for(const _0x1e4e80 of _0x22e477['getDefinitionsForView'](/.*/,!0x1)){const _0x11a223=_0x1e4e80['view'],_0x396d88=_0x444670['getGhsAttributeNameForElement'](_0x11a223);_0x4d35cc['add'](_0x396d88),!_0x1e4e80['isInline']||_0x1e4e80['isObject']||'appliesToBlock'in _0x1e4e80&&_0x1e4e80['appliesToBlock']||_0x2b429a['descriptionFactory']['registerAttributeLabel'](_0x396d88,_0x11a223),_0x1e4e80['model']['startsWith']('html')&&_0x2b429a['descriptionFactory']['registerElementLabel'](_0x1e4e80['model'],_0x4db070=>Ot(_0x10de56,'ELEMENT_HTML_TAG',[_0x4db070,_0x11a223]));}_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x10de56,'FORMAT_RAW_HTML_CONTENT')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x10de56,'FORMAT_HTML_LIST_ITEM')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x10de56,'FORMAT_HTML_BULLETED_LIST')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x10de56,'FORMAT_HTML_NUMBERED_LIST')),_0x2b429a['descriptionFactory']['registerDescriptionCallback'](_0xf40aeb=>{if('attribute'!==_0xf40aeb['type'])return;const _0x467421=_0xf40aeb['data'];if(!_0x467421||!_0x4d35cc['has'](_0x467421['key']))return;if('htmlContent'===_0x467421['key'])return{'type':'format','content':Ot(_0x10de56,'*Change\x20%0\x20content*',Ot(_0x10de56,'ELEMENT_RAW_HTML'))};const {setItems:_0xf2d72f,removeItems:_0x4c3a54}=function(_0x2df38d,_0x12612d,_0x3a0f75){const _0x556ba0=[],_0x995f37=[],_0x5930a7=_0x2df38d['styles']??{},_0x3d01d3=_0x12612d['styles']??{};for(const _0x79f738 of new Set([...Object['keys'](_0x5930a7),...Object['keys'](_0x3d01d3)]))_0x5930a7[_0x79f738]!==_0x3d01d3[_0x79f738]&&(void 0x0===_0x3d01d3[_0x79f738]?_0x995f37['push'](_0x79f738):_0x556ba0['push'](_0x79f738+'\x20('+_0x3d01d3[_0x79f738]+')'));const _0x426ce4=Ot(_0x3a0f75,'FORMAT_HTML_CLASS'),_0x4ef6f2=new Set(_0x2df38d['classes']??[]),_0x367568=new Set(_0x12612d['classes']??[]),_0x45a922=[..._0x367568]['some'](_0x5ed7d7=>!_0x4ef6f2['has'](_0x5ed7d7)),_0x1716e0=[..._0x4ef6f2]['some'](_0x178764=>!_0x367568['has'](_0x178764));_0x45a922&&_0x556ba0['push'](_0x426ce4),_0x1716e0&&_0x995f37['push'](_0x426ce4);const _0x33bf5b=Ot(_0x3a0f75,'FORMAT_HTML_ATTRIBUTE'),_0x32a582=_0x2df38d['attributes']??{},_0x592d75=_0x12612d['attributes']??{};let _0x3d7dae=!0x1,_0x1ef294=!0x1;for(const _0x18f664 of new Set([...Object['keys'](_0x32a582),...Object['keys'](_0x592d75)]))_0x32a582[_0x18f664]!==_0x592d75[_0x18f664]&&(void 0x0===_0x592d75[_0x18f664]?_0x1ef294=!0x0:_0x3d7dae=!0x0);return _0x3d7dae&&_0x556ba0['push'](_0x33bf5b),_0x1ef294&&_0x995f37['push'](_0x33bf5b),{'setItems':_0x556ba0,'removeItems':_0x995f37};}(_0x467421['oldValue']??{},_0x467421['newValue']??{},_0x10de56);if(!_0xf2d72f['length']&&!_0x4c3a54['length'])return;const _0xcded86=[];return _0xf2d72f['length']&&_0xcded86['push'](Ot(_0x10de56,'*Set\x20format:*\x20%0',_0xf2d72f['join'](',\x20'))),_0x4c3a54['length']&&_0xcded86['push'](Ot(_0x10de56,'*Remove\x20format:*\x20%0',_0x4c3a54['join'](',\x20'))),{'type':'format','content':_0xcded86['join']('\x0a')};});}},le=class extends _0x9bd549{_headingOptions;afterInit(){const _0x5573a6=this['editor'];if(!_0x5573a6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5573a6['config']['get']('heading.options');const _0x3d73e0=_0x5573a6['locale'],_0x5722a3=_0x5573a6['plugins']['get']('TrackChangesEditing');_0x5722a3['enableDefaultAttributesIntegration']('heading');for(const _0x1fc503 of this['_headingOptions'])'paragraph'!=_0x1fc503['model']&&_0x5722a3['descriptionFactory']['registerElementLabel'](_0x1fc503['model'],_0x2302dd=>{const _0x547e97=this['_getHeadingLevel'](_0x1fc503['model']);return null!==_0x547e97?_0x3d19ab(_0x2302dd,_0x547e97):_0x309514(_0x2302dd,_0x1fc503['title']);});function _0x3d19ab(_0x5986e6,_0x5f0f77){return Ot(_0x3d73e0,'ELEMENT_HEADING',[_0x5986e6,_0x5f0f77]);}function _0x309514(_0x38ca67,_0x357d61){return Ot(_0x3d73e0,'ELEMENT_HEADING_CUSTOM',[_0x38ca67,_0x357d61]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1958d4=this['editor'],_0x4d8a03=_0x1958d4['locale'];function _0x40190a(_0x61604e,_0x6688e){return Ot(_0x4d8a03,'ELEMENT_HEADING_CUSTOM',[_0x61604e,_0x6688e]);}_0x1958d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e80d=>{if('formatBlock'!=_0x46e80d['type'])return;const {data:_0x408721}=_0x46e80d;if(_0x408721&&'heading'==_0x408721['commandName']){const _0x5fd74c=_0x408721['commandParams'][0x0]['value'],_0x5f48b0=this['_getHeadingLevel'](_0x5fd74c);if(null!==_0x5f48b0)return{'type':'format','content':Ot(_0x4d8a03,'*Change\x20to:*\x20%0',(_0x29e476=0x1,_0x3224c9=_0x5f48b0,Ot(_0x4d8a03,'ELEMENT_HEADING',[_0x29e476,_0x3224c9])))};const _0x715654=this['_headingOptions']['find'](_0xd7b24=>_0xd7b24['model']===_0x5fd74c)['title'];return{'type':'format','content':Ot(_0x4d8a03,'*Change\x20to:*\x20%0',_0x40190a(0x1,_0x715654))};}var _0x29e476,_0x3224c9;});}_getHeadingLevel(_0x5caf5b){const _0x962db4=_0x5caf5b['match'](/^heading(\d+)/);if(_0x962db4)return _0x962db4[0x1];const _0x2d19c1=this['_headingOptions']?.['find'](_0x1b7ec2=>_0x1b7ec2['model']==_0x5caf5b);if(_0x2d19c1&&_0x2d19c1['view']){const _0x5d650c=_0x2d19c1['view'],_0x5e2a1d=(_0x5d650c['name']??_0x5d650c)['match'](/^h(\d+)/);if(_0x5e2a1d)return _0x5e2a1d[0x1];}return null;}},ue=class extends _0x9bd549{afterInit(){const _0x3cee0a=this['editor'];if(!_0x3cee0a['plugins']['has']('HighlightEditing'))return;const _0x2f59f1=_0x3cee0a['plugins']['get']('TrackChangesEditing'),_0x2a706b=_0x3cee0a['locale'];_0x2f59f1['enableDefaultAttributesIntegration']('highlight'),_0x2f59f1['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x2a706b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x457f0a=this['editor'],_0x2a3b38=_0x457f0a['locale'];_0x457f0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ced25=>{if('formatInline'!=_0x3ced25['type'])return;const {data:_0x4e7a16}=_0x3ced25;if(_0x4e7a16&&'highlight'==_0x4e7a16['commandName']){const _0x5493c8=_0x2a3b38['t'],_0x21ba44=_0x4e7a16['commandParams'][0x0]['value'];if(_0x21ba44){const _0x3e659d=_0x457f0a['config']['get']('highlight.options')['find'](_0x43937d=>_0x43937d['model']==_0x21ba44),_0x154029=_0x5493c8(_0x3e659d['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2a3b38,'*Set\x20highlight:*\x20%0',_0x154029),'color':{'value':_0x3e659d['color'],'title':_0x3e659d['title']}};}return{'type':'format','content':Ot(_0x2a3b38,'*Remove\x20highlight*',Ot(_0x2a3b38,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x9bd549{afterInit(){const _0x2891ec=this['editor'];if(!_0x2891ec['plugins']['has']('HorizontalLineEditing'))return;_0x2891ec['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1e4e7d=_0x2891ec['plugins']['get']('TrackChangesEditing'),_0x1ad283=_0x2891ec['locale'];_0x1e4e7d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x574969=>Ot(_0x1ad283,'ELEMENT_HORIZONTAL_LINE',_0x574969));}},he=class extends _0x9bd549{afterInit(){const _0x5c3e64=this['editor'];if(!_0x5c3e64['plugins']['has']('HtmlEmbed'))return;const _0x3af3a7=_0x5c3e64['plugins']['get']('TrackChangesEditing'),_0x44405a=_0x5c3e64['locale'];_0x3af3a7['descriptionFactory']['registerElementLabel']('rawHtml',_0xaded1a=>Ot(_0x44405a,'ELEMENT_HTML_EMBED',_0xaded1a)),_0x3af3a7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3af3a7['descriptionFactory']['registerDescriptionCallback'](_0x22a2b2=>{if('attribute'!=_0x22a2b2['type'])return;const {data:_0x3facdf}=_0x22a2b2;if(_0x3facdf&&'value'==_0x3facdf['key']&&_0x22a2b2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1af8c3=Ot(_0x44405a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x44405a,'*Change\x20%0\x20content*',_0x1af8c3)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xafd541=this['editor'],_0x213f3e=_0xafd541['locale'];_0xafd541['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b57d2=>{if('formatBlock'!=_0x1b57d2['type'])return;const {data:_0x524413}=_0x1b57d2;if(_0x524413&&'htmlEmbed'==_0x524413['commandName']){const _0x290c13=Ot(_0x213f3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x213f3e,'*Change\x20%0\x20content*',_0x290c13)};}});}},ge=class extends _0x9bd549{afterInit(){const _0x45b027=this['editor'];if(!_0x45b027['plugins']['has']('ImageEditing'))return;const _0x48a2aa=_0x45b027['plugins']['get']('TrackChangesEditing'),_0x187b67=_0x45b027['plugins']['get']('ImageUtils'),_0x165a8d=_0x45b027['locale'];_0x48a2aa['enableCommand']('insertImage'),_0x48a2aa['descriptionFactory']['registerElementLabel']('imageBlock',_0x5058a1=>Ot(_0x165a8d,'ELEMENT_IMAGE',_0x5058a1)),_0x48a2aa['descriptionFactory']['registerElementLabel']('imageInline',_0x1a1c8c=>Ot(_0x165a8d,'ELEMENT_INLINE_IMAGE',_0x1a1c8c)),_0x48a2aa['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x165a8d,'ELEMENT_CAPTION')),_0x45b027['plugins']['has']('ImageUploadEditing')&&_0x48a2aa['enableCommand']('uploadImage'),_0x45b027['plugins']['has']('ImageBlockEditing')&&_0x45b027['plugins']['has']('ImageInlineEditing')&&(_0x48a2aa['enableCommand']('imageTypeInline',(_0x1a1492,_0x4627a8)=>{const _0xa368a2=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']);_0x45b027['model']['change'](()=>{_0x48a2aa['markBlockFormat'](_0xa368a2,{'commandName':'imageTypeInline','commandParams':[_0x4627a8]},[],'convertBlockImageToInline');});}),_0x48a2aa['enableCommand']('imageTypeBlock',(_0x7f9895,_0x3d985e)=>{_0x45b027['model']['change'](_0x426fc0=>{let _0x23cf1e=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x2cdeec=_0x426fc0['createRangeOn'](_0x23cf1e);const _0x4ea15a=rt['fromPosition'](_0x2cdeec['start'],'toPrevious'),_0xe3902e=rt['fromPosition'](_0x2cdeec['end'],'toNext');_0x48a2aa['forceDefaultExecution'](()=>_0x7f9895(_0x3d985e)),_0x23cf1e=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x2cdeec=_0x426fc0['createRangeOn'](_0x23cf1e);const _0x57c8e2=_0x426fc0['createRange'](_0x4ea15a,_0xe3902e);_0x4ea15a['detach'](),_0xe3902e['detach'](),_0x48a2aa['markBlockFormat'](_0x23cf1e,{'commandName':'imageTypeInline','commandParams':[_0x3d985e]},[],'convertInlineImageToBlock'),_0x57c8e2['start']['isBefore'](_0x2cdeec['start'])&&_0x48a2aa['markInsertion'](_0x426fc0['createRange'](_0x57c8e2['start'],_0x2cdeec['start']),'convertInlineImageToBlock'),_0x2cdeec['end']['isBefore'](_0x57c8e2['end'])&&_0x48a2aa['markInsertion'](_0x426fc0['createRange'](_0x2cdeec['end'],_0x57c8e2['end']),'convertInlineImageToBlock');});}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48a2aa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1bebbf])=>{const _0x524343=_0x48a2aa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd62793=_0x1bebbf['start'],_0x4388b8=_0x1bebbf['end'];const _0x44016f=_0x45b027['model']['schema']['getNearestSelectionRange'](_0xd62793,'backward'),_0x4c6246=_0x45b027['model']['schema']['getNearestSelectionRange'](_0x4388b8,'forward');_0x44016f['isCollapsed']&&(_0xd62793=_0x44016f['start']),_0x4c6246['isCollapsed']&&(_0x4388b8=_0x4c6246['end']),_0x524343([_0x45b027['model']['createRange'](_0xd62793,_0x4388b8)]);}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf29745),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf29745)),_0x45b027['plugins']['has']('ImageCaptionEditing')&&(_0x48a2aa['enableCommand']('toggleImageCaption',(_0x251e16,_0x50ef60)=>{const _0x19911a=_0x45b027['plugins']['get']('ImageCaptionUtils');let _0x19b9e5=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x4fe56a=_0x19911a['getCaptionFromImageModelElement'](_0x19b9e5);_0x45b027['model']['change'](()=>{if(_0x4fe56a)return void _0x48a2aa['markDeletion'](_0x45b027['model']['createRangeOn'](_0x4fe56a));const _0x5df2a1=_0x187b67['isBlockImage'](_0x19b9e5);_0x251e16(_0x50ef60),_0x19b9e5=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x4fe56a=_0x19911a['getCaptionFromImageModelElement'](_0x19b9e5),_0x48a2aa['markInsertion'](_0x45b027['model']['createRangeOn'](_0x4fe56a),_0x5df2a1?null:'imageCaption');});}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf29745));const _0x2c7b5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x55b00c(_0x1a3891,_0x14f15f){const _0xb4deb6=_0x2c7b5d['findIndex'](({type:_0x1e4125,subType:_0x5d99df})=>_0x1a3891['type']==_0x1e4125&&_0x1a3891['subType']==_0x5d99df),_0x3f3a7e=_0x2c7b5d['findIndex'](({type:_0x4f62c8,subType:_0x1c6813})=>_0x14f15f['type']==_0x4f62c8&&_0x14f15f['subType']==_0x1c6813);if(_0xb4deb6<0x0||_0x3f3a7e<0x0)return!0x1;const _0x70b34e=_0x1a3891['getFirstRange'](),_0x4f67bc=_0x14f15f['getFirstRange']();if((0x0==_0xb4deb6||0x1==_0xb4deb6)&&0x2==_0x3f3a7e&&_0x70b34e['isIntersecting'](_0x4f67bc))return!0x0;if(0x2==_0xb4deb6&&0x3==_0x3f3a7e){const _0x43ad43=_0x48a2aa['_findSuggestions'](_0x70b34e,'insertion')['filter'](({suggestion:_0x43f9ae,meta:_0x356464})=>_0x356464['isOwn']&&'convertInlineImageToBlock'==_0x43f9ae['subType']);if(_0x43ad43['length']>0x1&&_0x4f67bc['end']['isEqual'](_0x70b34e['start']))return!0x0;if(0x1==_0x43ad43['length']&&(_0x70b34e['start']['isEqual'](_0x4f67bc['end'])||_0x70b34e['end']['isEqual'](_0x4f67bc['start'])))return!0x0;}if(0x3==_0xb4deb6&&0x3==_0x3f3a7e&&_0x70b34e['start']['isBefore'](_0x4f67bc['start'])){const _0x433a31=_0x70b34e['end']['nodeAfter'],_0x3a07a5=_0x4f67bc['start']['nodeBefore'];return _0x187b67['isBlockImage'](_0x433a31)&&_0x433a31===_0x3a07a5;}return!0x1;}function _0xf29745(_0xcc670c,_0x26539c){return _0x55b00c(_0xcc670c,_0x26539c)?[_0xcc670c,_0x26539c]:_0x55b00c(_0x26539c,_0xcc670c)?[_0x26539c,_0xcc670c]:null;}_0x45b027['plugins']['has']('ImageResize')&&(_0x48a2aa['enableDefaultAttributesIntegration']('resizeImage'),_0x48a2aa['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x165a8d,'FORMAT_IMAGE_SIZE'))),_0x45b027['plugins']['has']('ImageTextAlternativeEditing')&&_0x48a2aa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45b027['plugins']['has']('PictureEditing')&&_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x227408=>{if('attribute'!=_0x227408['type'])return;const {data:_0x17120d}=_0x227408;return _0x17120d&&'sources'==_0x17120d['key']?{'type':'format','content':''}:void 0x0;}),_0x45b027['plugins']['has']('ImageSizeAttributes')&&_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x4eeffa=>{if('attribute'!=_0x4eeffa['type'])return;const {data:_0x3ca58e}=_0x4eeffa;return!_0x3ca58e||'width'!=_0x3ca58e['key']&&'height'!=_0x3ca58e['key']?void 0x0:{'type':'format','content':''};}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x3e86a0=>{if(_0x2c7b5d['find'](({type:_0x509874,subType:_0xbf7eb4})=>_0x3e86a0['type']==_0x509874&&_0x3e86a0['subType']==_0xbf7eb4))return _0x3e86a0['previous']?{}:void 0x0;}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x305b8d=>{if('insertion'==_0x305b8d['type']||'deletion'==_0x305b8d['type']){const _0x3f35a0=_0x305b8d['getContainedElement']();if(_0x3f35a0&&_0x3f35a0['is']('element','caption'))return{'type':'insertion'==_0x305b8d['type']?'addObject':'removeObject','element':_0x3f35a0,'quantity':0x1};}}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x52670b=>'formatBlock'==_0x52670b['type']&&'convertInlineImageToBlock'==_0x52670b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52670b['type']&&'convertBlockImageToInline'==_0x52670b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x7e2172=>{if('attribute'!=_0x7e2172['type'])return;const {data:_0x57a32f}=_0x7e2172;if(!_0x57a32f||'alt'!=_0x57a32f['key'])return;const _0x49aa33=_0x57a32f['newValue'];return _0x49aa33?{'type':'format','content':Ot(_0x165a8d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49aa33+'\x22')}:{'type':'format','content':Ot(_0x165a8d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5db348=this['editor'],_0x10706b=_0x5db348['locale'];_0x5db348['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a968c=>{if('formatBlock'!=_0x1a968c['type']&&'formatInline'!=_0x1a968c['type'])return;const {data:_0x6ece95}=_0x1a968c;if(_0x6ece95){if('imageTextAlternative'==_0x6ece95['commandName']){const _0x2e16f5=_0x6ece95['commandParams'][0x0]['newValue'];return _0x2e16f5?{'type':'format','content':Ot(_0x10706b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e16f5+'\x22')}:{'type':'format','content':Ot(_0x10706b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x6ece95['commandName']){const _0x1841ea=_0x6ece95['commandParams'][0x0]['width'];return _0x1841ea?{'type':'format','content':Ot(_0x10706b,'*Set\x20image\x20width:*\x20%0',_0x1841ea)}:{'type':'format','content':Ot(_0x10706b,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3b5393=this['editor']['locale'],_0xa55ae7=this['editor']['plugins']['get']('TrackChangesEditing');_0xa55ae7['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa55ae7['descriptionFactory']['registerDescriptionCallback'](_0xecc139=>{if('attribute'!=_0xecc139['type'])return;const {data:_0x34aa37}=_0xecc139;return _0x34aa37&&'src'==_0x34aa37['key']?_0x34aa37['newValue']&&_0x34aa37['oldValue']?{'type':'format','content':Ot(_0x3b5393,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4d20f5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d20f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d20f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d20f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d20f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x171dfe=this['editor'],_0x2bc286=_0x171dfe['locale'];_0x171dfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x398ee5=>{if('formatBlock'!=_0x398ee5['type']&&'formatInline'!=_0x398ee5['type'])return;const {data:_0x40b71d}=_0x398ee5;return _0x40b71d&&'replaceImageSource'==_0x40b71d['commandName']?{'type':'format','content':Ot(_0x2bc286,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x9bd549{afterInit(){const _0x35c326=this['editor'];if(!_0x35c326['plugins']['has']('ImageStyleEditing'))return;const _0x17404f=_0x35c326['plugins']['get']('TrackChangesEditing'),_0x5e4e43=_0x35c326['plugins']['get']('ImageUtils'),_0xb55065={};_0x17404f['enableCommand']('imageStyle',(_0x428ec4,_0x28396a)=>{const _0xb4b54f=_0x35c326['plugins']['get']('Users')['me'],_0x203217=_0x35c326['commands']['get']('imageStyle');let _0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),_0x310721=_0x35c326['model']['createRangeOn'](_0x491306),_0x2e2a85=_0x203217['value'];if(_0x2e2a85==_0x28396a['value'])return;if(_0x28396a['value']&&_0x5e4e43['isInlineImage'](_0x491306)&&!_0x203217['isStyleEnabled'](_0x28396a['value']))return;const _0x46662a={'commandName':'imageStyle','commandParams':[_0x28396a],'formatGroupId':_0x2e6a13()};_0x35c326['model']['change'](()=>{if(_0x17404f['getSuggestions']()['filter'](_0x478cf6=>_0x478cf6['isInContent']&&_0xb4b54f==_0x478cf6['author']&&('formatBlock'==_0x478cf6['type']||'formatInline'==_0x478cf6['type'])&&('imageStylePreApply'==_0x478cf6['subType']||'imageStylePostApply'==_0x478cf6['subType'])&&_0x478cf6['getFirstRange']()['isEqual'](_0x310721))['forEach'](_0x3aebb2=>_0x17404f['discardSuggestion'](_0x3aebb2['head'])),_0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),_0x310721=_0x35c326['model']['createRangeOn'](_0x491306),_0x203217['refresh'](),_0x35c326['commands']['get']('imageTypeInline')['refresh'](),_0x35c326['commands']['get']('imageTypeBlock')['refresh'](),_0x2e2a85=_0x203217['value'],_0x2e2a85!=_0x28396a['value'])return _0x5e4e43['isInlineImage'](_0x491306)&&_0x203217['shouldConvertImageType'](_0x28396a['value'],_0x491306)?(_0x428ec4({..._0x28396a,'setImageSizes':!0x1}),_0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),void _0x17404f['markBlockFormat'](_0x491306,{..._0x46662a,'commandReversedParams':[{'value':_0x2e2a85||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e4e43['isBlockImage'](_0x491306)?_0x17404f['markBlockFormat'](_0x491306,_0x46662a,[],'imageStylePostApply'):_0x17404f['markInlineFormat'](_0x310721,_0x46662a,'imageStylePostApply'));});});for(const _0x709b20 of _0x35c326['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xb55065[_0x709b20['name']]=_0x709b20['title']['toLowerCase']();_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f2808])=>{_0x5e4e43['setImageNaturalSizeAttributes'](_0x4f2808['getContainedElement']());}),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4c0f69,_0x3bfb72)=>{_0x17404f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c0f69,{'commandName':_0x3bfb72['commandName'],'commandParams':_0x3bfb72['commandReversedParams']});}),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6a8c73,_0x3f4d63){return _0x43b316(_0x6a8c73,_0x3f4d63)?[_0x6a8c73,_0x3f4d63]:_0x43b316(_0x3f4d63,_0x6a8c73)?[_0x3f4d63,_0x6a8c73]:null;});const _0x59fc3c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43b316(_0x57603b,_0x3007a2){const _0x5352e7=_0x59fc3c['findIndex'](({type:_0x5c21f2,subType:_0xae2411})=>_0x57603b['type']==_0x5c21f2&&_0x57603b['subType']==_0xae2411),_0x2b8ef7=_0x59fc3c['findIndex'](({type:_0x1e0a97,subType:_0xeef976})=>_0x3007a2['type']==_0x1e0a97&&_0x3007a2['subType']==_0xeef976);if(_0x5352e7<0x0||_0x2b8ef7<0x0)return!0x1;const _0x2e6e93=_0x57603b['getFirstRange'](),_0x20bdaa=_0x3007a2['getFirstRange']();if((0x0==_0x5352e7||0x1==_0x5352e7)&&0x2==_0x2b8ef7&&_0x2e6e93['isIntersecting'](_0x20bdaa))return!0x0;if(0x2==_0x5352e7&&0x3==_0x2b8ef7){const _0x364642=_0x17404f['_findSuggestions'](_0x2e6e93,'insertion')['filter'](({suggestion:_0x1ab3e0,meta:_0x2558a7})=>_0x2558a7['isOwn']&&'convertInlineImageToBlock'==_0x1ab3e0['subType']);if(_0x364642['length']>0x1&&_0x20bdaa['end']['isEqual'](_0x2e6e93['start']))return!0x0;if(0x1==_0x364642['length']&&(_0x2e6e93['start']['isEqual'](_0x20bdaa['end'])||_0x2e6e93['end']['isEqual'](_0x20bdaa['start'])))return!0x0;}if(0x3==_0x5352e7&&0x3==_0x2b8ef7&&_0x2e6e93['start']['isBefore'](_0x20bdaa['start'])){const _0x2fcd37=_0x2e6e93['end']['nodeAfter'],_0x231e24=_0x20bdaa['start']['nodeBefore'];return _0x5e4e43['isBlockImage'](_0x2fcd37)&&_0x2fcd37===_0x231e24;}return!0x1;}_0x35c326['model']['document']['registerPostFixer'](()=>{let _0x4a8be6=!0x1;const _0x253653=Array['from'](_0x35c326['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b7406,data:_0x2c299c}of _0x253653){const {group:_0x259d7f,type:_0x5b1892,subType:_0x149bf8,id:_0x261c7b}=et(_0x2b7406);if('suggestion'==_0x259d7f&&_0x17404f['hasSuggestion'](_0x261c7b)){if('formatBlock'==_0x5b1892&&('imageStylePreApply'==_0x149bf8||'imageStylePostApply'==_0x149bf8)){const _0x50c241=_0x17404f['getSuggestion'](_0x261c7b);if(_0x2c299c['newRange']){const _0x3a8aea=_0x50c241['getFirstRange']()['getContainedElement']();if(_0x5e4e43['isBlockImage'](_0x3a8aea))continue;_0x17404f['discardSuggestion'](_0x50c241),_0x4a8be6=!0x0;}}if('insertion'==_0x5b1892&&'imageCaption'==_0x149bf8&&!_0x2c299c['newRange']){const _0x304fa0=_0x17404f['getSuggestion'](_0x261c7b);_0x304fa0['next']&&_0x304fa0['next']['isInContent']&&(_0x17404f['discardSuggestion'](_0x304fa0['next']),_0x4a8be6=!0x0);}}}return _0x4a8be6;}),this['_registerLegacyDescription'](_0xb55065);}_registerLegacyDescription(_0x4169fa){const _0x42afc6=this['editor'],_0x11d345=_0x42afc6['locale'];_0x42afc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a1bb=>{if('formatBlock'!=_0x47a1bb['type']&&'formatInline'!=_0x47a1bb['type'])return;const {data:_0x477581}=_0x47a1bb;if(!_0x477581||'imageStyle'!=_0x477581['commandName'])return;const _0x49af10=_0x477581['commandParams'][0x0]['value'];return _0x1a3e17('side'===_0x49af10?Ot(_0x11d345,'FORMAT_SIDE_IMAGE'):_0x4169fa[_0x49af10]||_0x49af10);function _0x1a3e17(_0x14820e){return{'type':'format','content':Ot(_0x11d345,'*Format:*\x20%0',_0x14820e)};}});}},Ee=class extends _0x9bd549{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x193520){super(_0x193520),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x376fb4=this['editor'],_0x29f0e1=_0x376fb4['commands']['get']('importWord'),_0x39e544=_0x376fb4['commands']['get']('trackChanges');_0x29f0e1&&(_0x29f0e1['on']('execute',(_0x4ed729,[,_0x766790])=>{this['_trackChangesValueDuringImport']=_0x39e544['value'],_0x766790['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29f0e1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29f0e1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x39e544['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x376fb4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x53bb6e,_0x2701fd){const {suggestions:_0x7908fa}=_0x2701fd,_0x21ab46=this['editor']['commands']['get']('trackChanges'),_0x53d928=_0x21ab46['value'];this['_trackChangesValueDuringImport']!==_0x53d928&&(_0x21ab46['execute'](),this['_trackChangesExecuted']=!0x0),_0x7908fa&&_0x7908fa['forEach'](({id:_0x5a748d,type:_0x3a759c,author:_0x525b32,created_at:_0x16f1b6})=>{const _0x1629fd={'id':_0x5a748d,'type':_0x3a759c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x525b32,'createdAt':_0x16f1b6?new Date(_0x16f1b6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1629fd);});}},Te=class extends _0x9bd549{afterInit(){const _0x3189d5=this['editor'],_0x28c1e6=_0x3189d5['plugins']['get']('TrackChangesEditing');if(_0x3189d5['plugins']['has']('IndentEditing')&&(_0x28c1e6['enableCommand']('indent'),_0x28c1e6['enableCommand']('outdent')),_0x3189d5['plugins']['has']('IndentBlock')){for(const _0x4e1c42 of['indentBlock','outdentBlock'])_0x28c1e6['enableDefaultAttributesIntegration'](_0x4e1c42);if(_0x3189d5['plugins']['has']('ListEditing')){for(const _0x4ce902 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x28c1e6['enableDefaultAttributesIntegration'](_0x4ce902);}}const _0x36feaa=_0x3189d5['locale'];_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x36feaa,'FORMAT_INDENT')),_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x36feaa,'FORMAT_INDENT')),_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x36feaa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1a6222=this['editor'],_0x526413=_0x1a6222['locale'],_0x5be367=_0x1a6222['plugins']['get']('TrackChangesEditing');_0x5be367['descriptionFactory']['registerDescriptionCallback'](_0x2bf52e=>{if('formatBlock'!=_0x2bf52e['type'])return;const {data:_0x4a873c}=_0x2bf52e;if(!_0x4a873c)return;if('indentBlock'!=_0x4a873c['commandName']&&'outdentBlock'!=_0x4a873c['commandName'])return;const _0x4f1ce4=_0x2bf52e['getItems']()[0x0],_0x17f1cf=_0x5be367['descriptionFactory']['getItemLabel'](_0x4f1ce4);return'indentBlock'==_0x4a873c['commandName']?{'type':'format','content':Ot(_0x526413,'*Indent:*\x20%0',_0x17f1cf)}:'outdentBlock'==_0x4a873c['commandName']?{'type':'format','content':Ot(_0x526413,'*Outdent:*\x20%0',_0x17f1cf)}:void 0x0;});}},_e=class extends _0x9bd549{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x9bd549{afterInit(){const _0x2d5aa7=this['editor'];if(!_0x2d5aa7['plugins']['has']('LinkEditing'))return;const _0x1bdc1e=_0x2d5aa7['plugins']['get']('TrackChangesEditing'),_0x4dd563=_0x2d5aa7['commands']['get']('link');_0x1bdc1e['enableDefaultAttributesIntegration']('link'),_0x1bdc1e['enableDefaultAttributesIntegration']('unlink');for(const _0x53b6b7 of _0x4dd563['manualDecorators'])_0x1bdc1e['descriptionFactory']['registerAttributeLabel'](_0x53b6b7['id'],'link\x20('+_0x53b6b7['label']['toLowerCase']()+')');_0x1bdc1e['descriptionFactory']['registerDescriptionCallback'](_0x498e0e=>{if('attribute'!=_0x498e0e['type'])return;const {data:_0x4746f1}=_0x498e0e;if(!_0x4746f1||'linkHref'!=_0x4746f1['key'])return;const _0x59389e=_0x4746f1['newValue'],_0x2d5be3=_0x2d5aa7['locale'];return{'type':'format','content':null==_0x59389e?Ot(_0x2d5be3,'*Remove\x20link*'):Ot(_0x2d5be3,'*Set\x20link:*\x20%0','\x22'+_0x59389e+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2844f5=this['editor'],_0x40daa7=_0x2844f5['locale'];_0x2844f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b6a09=>{if('formatInline'!=_0x5b6a09['type'])return;const {data:_0x3564d0}=_0x5b6a09;if(_0x3564d0){if('link'==_0x3564d0['commandName']){const _0x298156=_0x3564d0['commandParams'][0x0];return{'type':'format','content':Ot(_0x40daa7,'*Set\x20link:*\x20%0','\x22'+_0x298156+'\x22')};}return'unlink'==_0x3564d0['commandName']?{'type':'format','content':Ot(_0x40daa7,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x9bd549{afterInit(){const _0x42a93c=this['editor'],_0x52a696=_0x42a93c['locale'];if(!_0x42a93c['plugins']['has']('LegacyListEditing'))return;const _0x1d8c40=_0x42a93c['plugins']['get']('TrackChangesEditing'),_0x54e0cd=_0x42a93c['plugins']['has']('LegacyTodoListEditing');function _0xd9669d(_0x2708f6){return()=>{const _0x1ba9bf=_0x42a93c['model']['document']['selection'],_0x3a3117=_0x42a93c['commands']['get'](_0x2708f6);if(_0x3a3117['value'])return void _0x42a93c['execute']('paragraph',{});const _0x17fad1=_0x2708f6['slice'](0x0,-0x4),_0x2762b3=function(_0x21d31a,_0x443065,_0x4af08f){let _0x226999=Array['from'](_0x21d31a)['filter'](_0x6f28e3=>function(_0x470bf2,_0xf790f4){return _0xf790f4['checkChild'](_0x470bf2['parent'],'listItem')&&!_0xf790f4['isObject'](_0x470bf2);}(_0x6f28e3,_0x4af08f));_0x226999=_0x226999['filter'](_0xf41e25=>!_0xf41e25['is']('element','listItem')||_0xf41e25['getAttribute']('listType')!=_0x443065);const _0x5016c1=new Set();for(const _0x8c7ae4 of _0x226999)_0x8c7ae4['is']('element','listItem')?_0x5016c1['add'](Ie(_0x8c7ae4)):_0x5016c1['add'](_0x8c7ae4);return Array['from'](_0x5016c1);}(_0x1ba9bf['getSelectedBlocks'](),_0x17fad1,_0x42a93c['model']['schema']);_0x42a93c['model']['change'](()=>{for(const _0x4a2e9f of _0x2762b3)_0x1d8c40['markBlockFormat'](_0x4a2e9f,{'commandName':_0x2708f6,'commandParams':[{'forceValue':!_0x3a3117['value']}],'formatGroupId':'blockName'},Ae(_0x4a2e9f));});};}function _0x3d4a7c(_0x1afa60){return()=>{const _0x1e244f=function(_0x5969cb){let _0xd2efa8=Array['from'](_0x5969cb);const _0x41aeca=_0xd2efa8['findIndex'](_0x3ee4e8=>'listItem'!=_0x3ee4e8['name']);return _0x41aeca>-0x1&&(_0xd2efa8=_0xd2efa8['slice'](0x0,_0x41aeca)),_0xd2efa8;}(_0x42a93c['model']['document']['selection']['getSelectedBlocks']()),_0x54b7c9=_0x42a93c['model']['createRange'](_0x42a93c['model']['createPositionAt'](_0x1e244f[0x0],'before'),_0x42a93c['model']['createPositionAt'](_0x1e244f[_0x1e244f['length']-0x1],'end'));_0x42a93c['model']['change'](()=>{_0x1d8c40['markBlockFormat'](_0x54b7c9,{'commandName':_0x1afa60,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f7ea9){const _0x28cfab=new Set();for(const _0x31c9a2 of _0x2f7ea9){let _0x131021=_0x31c9a2['nextSibling'];for(;_0x131021&&_0x131021['getAttribute']('listIndent')>_0x31c9a2['getAttribute']('listIndent');)_0x28cfab['add'](_0x131021),_0x131021=_0x131021['nextSibling'];}return Array['from'](_0x28cfab);}(_0x1e244f));});};}_0x1d8c40['enableCommand']('numberedList',_0xd9669d('numberedList')),_0x1d8c40['enableCommand']('bulletedList',_0xd9669d('bulletedList')),_0x54e0cd&&_0x1d8c40['enableCommand']('todoList',_0xd9669d('todoList')),_0x1d8c40['enableCommand']('indentList',_0x3d4a7c('indentList')),_0x1d8c40['enableCommand']('outdentList',_0x3d4a7c('outdentList')),_0x54e0cd&&_0x1d8c40['enableCommand']('checkTodoList',()=>{const _0x484283=_0x42a93c['commands']['get']('checkTodoList'),_0xad1166=Array['from'](_0x484283['_selectedElements']);_0xad1166['filter'](_0x550d58=>_0x550d58['getAttribute']('todoListChecked')!=_0x484283['value']),_0x42a93c['model']['change'](()=>{for(const _0x1676e2 of _0xad1166)_0x1d8c40['markBlockFormat'](_0x1676e2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x484283['value']}]});});}),_0x1d8c40['descriptionFactory']['registerElementLabel']('listItem',_0x29b203=>Ot(_0x52a696,'ELEMENT_LIST_ITEM',_0x29b203)),_0x1d8c40['descriptionFactory']['registerDescriptionCallback'](_0x48f591=>{if('formatBlock'!=_0x48f591['type']&&'formatInline'!=_0x48f591['type'])return;const {data:_0x35e2c8}=_0x48f591;if(_0x35e2c8){if('numberedList'==_0x35e2c8['commandName']||'bulletedList'==_0x35e2c8['commandName']||'todoList'==_0x35e2c8['commandName'])switch(_0x35e2c8['commandName']['replace']('List','')){case'bulleted':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_TODO_LIST'));}if('indentList'==_0x35e2c8['commandName'])return{'type':'format','content':Ot(_0x52a696,'*Indent:*\x20%0',Ot(_0x52a696,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x35e2c8['commandName'])return{'type':'format','content':Ot(_0x52a696,'*Outdent:*\x20%0',Ot(_0x52a696,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x35e2c8['commandName'])return _0x35e2c8['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x52a696,'*Check\x20item*')}:{'type':'format','content':Ot(_0x52a696,'*Uncheck\x20item*')};}function _0x3ccb00(_0x2dc534){return{'type':'format','content':Ot(_0x52a696,'*Change\x20to:*\x20%0',_0x2dc534)};}});}};function Ie(_0x55f8f3){const _0x12863e=_0x55f8f3['getAttribute']('listIndent');if(0x0==_0x12863e)return _0x55f8f3;let _0x24c725=_0x55f8f3;for(;_0x55f8f3['previousSibling']&&_0x55f8f3['previousSibling']['is']('element','listItem');){const _0x52cd93=_0x55f8f3['previousSibling']['getAttribute']('listIndent');if(_0x52cd93==_0x12863e)_0x24c725=_0x55f8f3['previousSibling'];else{if(_0x52cd93<_0x12863e)break;}_0x55f8f3=_0x55f8f3['previousSibling'];}return _0x24c725;}function Ae(_0x5f47ef){const _0x56a0be=[];if(_0x5f47ef['is']('element','listItem')&&_0x5f47ef['getAttribute']('listIndent')>0x0){let _0x3c1391=_0x5f47ef['nextSibling'];for(;_0x3c1391&&'listItem'==_0x3c1391['name']&&_0x3c1391['getAttribute']('listIndent')==_0x5f47ef['getAttribute']('listIndent');)_0x56a0be['push'](_0x3c1391),_0x3c1391=_0x3c1391['nextSibling'];}return _0x56a0be;}var be=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x39b28c=this['editor']['config']['get']('list.properties'),_0x5ef98a=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b28c['styles']&&_0x5ef98a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x39b28c['reversed']&&_0x5ef98a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x39b28c['startIndex']&&_0x5ef98a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5ef98a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x247120,_0x3ee0e8={}){const _0xce204f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a7f89=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xce204f['markMultiRangeBlockFormat'](_0x5a7f89,{'commandName':'listStyle','commandParams':[{'type':_0x3ee0e8['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x471eae,_0x4b7d42={}){const _0x304493=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21e528=this['_getSuggestionBlocks'](_0x277f30=>_0x277f30['is']('element','listItem')&&'numbered'===_0x277f30['getAttribute']('listType'));if(_0x21e528['length']<0x1)return;const _0x3b41d0=_0x21e528['map'](_0x5f190b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f190b,'before'),this['editor']['model']['createPositionAt'](_0x5f190b,0x0)));this['editor']['model']['change'](()=>{_0x304493['markMultiRangeBlockFormat'](_0x3b41d0,{'commandName':'listReversed','commandParams':[{'reversed':_0x4b7d42['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0xd54d4a,_0x3a73e5={}){const _0x47bec4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x231962=this['_getSuggestionBlocks'](_0x3e4fab=>_0x3e4fab['is']('element','listItem')&&'numbered'===_0x3e4fab['getAttribute']('listType'));if(_0x231962['length']<0x1)return;const _0xdc253b=_0x231962['map'](_0x5ac928=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ac928,'before'),this['editor']['model']['createPositionAt'](_0x5ac928,0x0)));this['editor']['model']['change'](()=>{_0x47bec4['markMultiRangeBlockFormat'](_0xdc253b,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a73e5['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x106e32){if('formatBlock'!=_0x106e32['type']&&'formatInline'!=_0x106e32['type'])return;const _0x39d73d=this['editor']['locale'],{data:_0x50a657}=_0x106e32;if(!_0x50a657)return;let _0x1991c2,_0x1d32da;switch(_0x50a657['commandName']){case'listStyle':_0x1991c2='*Change\x20to:*\x20%0',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2,Ot(_0x39d73d,this['_getTranslationKeyForListStyle'](_0x50a657['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1991c2=_0x50a657['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2)};break;case'listStart':_0x1991c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2,_0x50a657['commandParams'][0x0]['startIndex'])};}return _0x1d32da;}_getSuggestionBlocksForListStyle(){const _0x4df4b8=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e104c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1e104c[0x0]?.['is']('element','listItem')&&_0x1e104c['unshift'](..._0x4df4b8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1e104c[_0x1e104c['length']-0x1]?.['is']('element','listItem')&&_0x1e104c['push'](..._0x4df4b8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1e104c=[...new Set(_0x1e104c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1e104c=_0x1e104c['filter'](_0x39cc8c=>_0x39cc8c['is']('element','listItem'))),_0x1e104c;}_getSuggestionBlocks(_0x53da32){const _0x1c0458=this['editor']['plugins']['get']('LegacyListUtils');let _0x44a86d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x53da32)['map'](_0x24b73d=>{const _0x3df525=this['editor']['model']['createPositionAt'](_0x24b73d,0x0);return[..._0x1c0458['getSiblingNodes'](_0x3df525,'backward'),..._0x1c0458['getSiblingNodes'](_0x3df525,'forward')];})['flat']();return _0x44a86d=[...new Set(_0x44a86d)],_0x44a86d;}_getTranslationKeyForListStyle(_0x926e5b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x926e5b)||'default')['toUpperCase']()+'_LIST_'+_0x926e5b['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x9bd549{afterInit(){const _0x3ec8c2=this['editor'];if(!_0x3ec8c2['plugins']['has']('MediaEmbedEditing'))return;const _0x24f94=_0x3ec8c2['plugins']['get']('TrackChangesEditing'),_0x3d501b=_0x3ec8c2['locale'];_0x24f94['enableCommand']('mediaEmbed'),_0x24f94['descriptionFactory']['registerElementLabel']('media',_0x40793f=>Ot(_0x3d501b,'ELEMENT_MEDIA',_0x40793f)),_0x3ec8c2['plugins']['has']('MediaEmbedResizeEditing')&&(_0x24f94['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x24f94['descriptionFactory']['registerDescriptionCallback'](_0x4626d1=>{if('attribute'!=_0x4626d1['type'])return;const {data:_0x16a562}=_0x4626d1;if(!_0x16a562||'resizedWidth'!=_0x16a562['key'])return;const _0x53e589=_0x4626d1['getContainedElement']();if(!_0x53e589||!_0x53e589['is']('element','media'))return;const _0x271f92=Ot(_0x3d501b,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x3d501b,'*Set\x20format:*\x20%0',_0x271f92)};}));}},ke=class extends _0x9bd549{afterInit(){const _0x274351=this['editor'];if(!_0x274351['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x19613d=_0x274351['plugins']['get']('TrackChangesEditing'),_0x27c4e3=_0x274351['locale'],_0x107499=_0x274351['plugins']['get']('MediaEmbedStyleEditing'),_0x5ad4fa={};for(const _0x3b6b8b of _0x107499['normalizedStyles'])_0x5ad4fa[_0x3b6b8b['name']]=_0x3b6b8b['title']['toLowerCase']();const _0x306e63=_0x107499['normalizedStyles']['find'](_0x2f276b=>_0x2f276b['isDefault'])?.['name'];_0x19613d['enableCommand']('mediaStyle',(_0x527811,_0x120593)=>{const _0x4e8911=_0x274351['plugins']['get']('Users')['me'],_0x71be1f=_0x274351['commands']['get']('mediaStyle'),_0x2dfbf9=function(_0x4b36c1){const _0x7ac845=_0x4b36c1['model']['document']['selection']['getSelectedElement']();return _0x7ac845&&_0x7ac845['is']('element','media')?_0x7ac845:null;}(_0x274351);if(!_0x2dfbf9)return;const _0xca0e0d=_0x274351['model']['createRangeOn'](_0x2dfbf9);let _0x3cd6d0=_0x71be1f['value'];if(_0x3cd6d0==_0x120593['value'])return;const _0x4ab83e={'commandName':'mediaStyle','commandParams':[_0x120593],'formatGroupId':_0x2e6a13()};_0x274351['model']['change'](()=>{_0x19613d['getSuggestions']()['filter'](_0x3ff858=>_0x3ff858['isInContent']&&_0x4e8911==_0x3ff858['author']&&'formatBlock'==_0x3ff858['type']&&'mediaStylePostApply'==_0x3ff858['subType']&&_0x3ff858['getFirstRange']()['isEqual'](_0xca0e0d))['forEach'](_0x5a656d=>_0x19613d['discardSuggestion'](_0x5a656d['head'])),_0x71be1f['refresh'](),_0x3cd6d0=_0x71be1f['value'],_0x3cd6d0!=_0x120593['value']&&_0x19613d['markBlockFormat'](_0x2dfbf9,{..._0x4ab83e,'commandReversedParams':[{'value':'string'==typeof _0x3cd6d0?_0x3cd6d0:null}]},[],'mediaStylePostApply');});}),_0x19613d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x19613d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1295a9,_0x291009)=>{_0x19613d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1295a9,{'commandName':_0x291009['commandName'],'commandParams':_0x291009['commandReversedParams']});}),_0x19613d['descriptionFactory']['registerDescriptionCallback'](_0x2f4201=>{if('formatBlock'!=_0x2f4201['type'])return;const {data:_0x55e754}=_0x2f4201;if(!_0x55e754||'mediaStyle'!=_0x55e754['commandName'])return;const _0xd908a0=_0x55e754['commandParams'][0x0]['value']||_0x306e63;if(!_0xd908a0)return;const _0x217d94=_0x5ad4fa[_0xd908a0]||_0xd908a0;return{'type':'format','content':Ot(_0x27c4e3,'*Format:*\x20%0',_0x217d94)};});}},Re=class extends _0x9bd549{afterInit(){const _0x34fef8=this['editor'];_0x34fef8['plugins']['has']('MentionEditing')&&_0x34fef8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x9bd549{afterInit(){const _0x36f4b0=this['editor'];if(!_0x36f4b0['plugins']['has']('MergeFieldsEditing'))return;const _0x24770a=_0x36f4b0['plugins']['get']('TrackChangesEditing'),_0x287fc5=_0x36f4b0['locale'];_0x24770a['enableCommand']('insertMergeField'),_0x24770a['enableCommand']('insertMergeFieldBlock'),_0x24770a['enableCommand']('insertMergeFieldImage'),_0x24770a['descriptionFactory']['registerElementLabel']('mergeField',_0x3356f8=>Ot(_0x287fc5,'ELEMENT_MERGE_FIELD',_0x3356f8)),_0x24770a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20c9b2=>Ot(_0x287fc5,'ELEMENT_MERGE_FIELD',_0x20c9b2)),_0x24770a['descriptionFactory']['registerDescriptionCallback'](_0x1d4dc7=>{if('insertion'!=_0x1d4dc7['type']&&'deletion'!=_0x1d4dc7['type'])return;const _0x17f646=_0x1d4dc7['getContainedElement']();if(null==_0x17f646)return;const _0x5edd26=_0x36f4b0['plugins']['get']('MergeFieldsEditing');let _0x57b9ea;switch(_0x5edd26['getMergeFieldType'](_0x17f646)){case null:return;case'image':{const _0x31b47f=_0x5edd26['unwrapAffixes'](_0x17f646['getAttribute']('src'));_0x57b9ea=_0x5edd26['getLabel'](_0x31b47f)||_0x31b47f;break;}default:{const _0x11003d=_0x17f646['getAttribute']('id');_0x57b9ea=_0x5edd26['getLabel'](_0x11003d)||_0x11003d;break;}}return'insertion'==_0x1d4dc7['type']?{'type':'insertion','content':Ot(_0x287fc5,'*Insert:*\x20%0','\x22'+_0x57b9ea+'\x22\x20'+Ot(_0x287fc5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x287fc5,'*Remove:*\x20%0','\x22'+_0x57b9ea+'\x22\x20'+Ot(_0x287fc5,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x9bd549{afterInit(){const _0x2e101e=this['editor'],_0x341f71=_0x2e101e['plugins']['get']('TrackChangesEditing');_0x2e101e['plugins']['has']('MultiLevelList')&&(_0x341f71['enableDefaultAttributesIntegration']('multiLevelList'),_0x341f71['descriptionFactory']['registerDescriptionCallback'](_0x5132d7=>this['handleDescriptions'](_0x5132d7)));}handleDescriptions(_0x5a8714){const _0x33eb6a=this['editor']['locale'],{data:_0x36628c}=_0x5a8714,_0x3e6970={'type':'format','content':''};if(_0x36628c&&'listMarkerStyle'==_0x36628c['key']){if(!_0x36628c['oldValue'])return{'type':'format','content':Ot(_0x33eb6a,'*Set\x20format:*\x20%0',Ot(_0x33eb6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36628c['newValue']+')'};if(!_0x36628c['newValue']){let _0x2437a4=_0x5a8714['head'];for(;_0x2437a4;){if(_0x2437a4['data']&&'listType'==_0x2437a4['data']['key']&&_0x2437a4['data']['newValue'])return _0x3e6970;_0x2437a4=_0x2437a4['next'];}return{'type':'format','content':Ot(_0x33eb6a,'*Remove\x20format:*\x20%0',Ot(_0x33eb6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36628c['oldValue']+')'};}}}},Se=class extends _0x9bd549{afterInit(){const _0x3ac10f=this['editor'];if(!_0x3ac10f['plugins']['has']('PageBreakEditing'))return;_0x3ac10f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x19237a=_0x3ac10f['plugins']['get']('TrackChangesEditing'),_0x40c0b4=_0x3ac10f['locale'];_0x19237a['descriptionFactory']['registerElementLabel']('pageBreak',_0x501e7f=>Ot(_0x40c0b4,'ELEMENT_PAGE_BREAK',_0x501e7f));}},Me=class extends _0x9bd549{afterInit(){const _0x2d1869=this['editor'];if(!_0x2d1869['plugins']['has']('Paragraph'))return;const _0x22639d=_0x2d1869['locale'],_0x18f891=_0x2d1869['plugins']['get']('TrackChangesEditing');_0x18f891['descriptionFactory']['registerElementLabel']('paragraph',_0x411c65=>Ot(_0x22639d,'ELEMENT_PARAGRAPH',_0x411c65)),_0x18f891['enableDefaultAttributesIntegration']('paragraph'),_0x18f891['enableCommand']('insertParagraph');const _0x54fcf5=_0x18f891['descriptionFactory'];_0x54fcf5['registerDescriptionCallback'](_0x37436f=>{if('insertion'!==_0x37436f['type'])return;const {start:_0x4521d0,end:_0x4d6734}=_0x37436f['getFirstRange']();if(!_0x4521d0['isTouching'](_0x4d6734)||!_0x4521d0['nodeAfter'])return;const _0x25f540=_0x2d1869['model']['schema'],_0x70045a=_0x4521d0['nodeAfter'];return _0x25f540['isBlock'](_0x70045a)&&!_0x25f540['isLimit'](_0x70045a)&&_0x25f540['checkChild'](_0x70045a,'$text')?{'type':'insertion','content':Ot(_0x22639d,'*Insert:*\x20%0',_0x54fcf5['getItemLabel'](_0x70045a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3cebb3=this['editor'],_0x30284c=_0x3cebb3['locale'];_0x3cebb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39fc0b=>{if('formatBlock'!=_0x39fc0b['type'])return;const {data:_0x4e302b}=_0x39fc0b;return _0x4e302b&&'paragraph'==_0x4e302b['commandName']?{'type':'format','content':Ot(_0x30284c,'*Change\x20to:*\x20%0',Ot(_0x30284c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x9bd549{afterInit(){const _0x9db802=this['editor'];_0x9db802['commands']['get']('replaceSource')&&_0x9db802['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x9bd549{afterInit(){const _0x5177dc=this['editor'];_0x5177dc['plugins']['has']('RemoveFormatEditing')&&(_0x5177dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x58df58=this['editor'];_0x58df58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x859efd=>{if('formatBlock'!=_0x859efd['type']&&'formatInline'!=_0x859efd['type'])return;const {data:_0x5cb6d9}=_0x859efd;return _0x5cb6d9&&'removeFormat'==_0x5cb6d9['commandName']?{'type':'format','content':Ot(_0x58df58['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x9bd549{afterInit(){const _0x45484a=this['editor'];if(!_0x45484a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b1e03=_0x45484a['plugins']['get']('TrackChangesEditing');_0x3b1e03['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b1e03['enableCommand']('goToNextRestrictedEditingException');const _0xcb4526=_0x45484a['plugins']['get']('RestrictedEditingModeEditing');_0xcb4526['enableCommand']('trackChanges'),_0xcb4526['enableCommand']('acceptSuggestion'),_0xcb4526['enableCommand']('discardSuggestion'),_0xcb4526['enableCommand']('acceptAllSuggestions'),_0xcb4526['enableCommand']('discardAllSuggestions'),_0xcb4526['enableCommand']('acceptSelectedSuggestions'),_0xcb4526['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x9bd549{afterInit(){const _0x468436=this['editor'];if(!_0x468436['plugins']['has']('ShiftEnter'))return;const _0x221062=_0x468436['plugins']['get']('TrackChangesEditing');_0x221062['enableCommand']('shiftEnter'),_0x221062['descriptionFactory']['registerElementLabel']('softBreak',_0x4f6dd6=>Ot(_0x468436['locale'],'ELEMENT_LINE_BREAK',_0x4f6dd6));}};function ve(_0xebe290,_0x4bd351,_0x2718a7){const _0x51584b=[];for(const _0x2e7f35 of _0x4bd351['getItems']())_0x2e7f35['hasAttribute'](_0xebe290)&&_0x51584b['push'](_0x2718a7['createRangeOn'](_0x2e7f35));return _0x51584b;}var De=class extends _0x9bd549{afterInit(){const _0x76e4fe=this['editor'],_0x4b4f50=_0x76e4fe['plugins']['get']('TrackChangesEditing');_0x76e4fe['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4b4f50['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5bebac=this['editor'],_0xaeed79=_0x5bebac['model'],_0x326e42=_0x5bebac['locale'],_0x483c35=_0x5bebac['plugins']['get']('TrackChangesEditing'),_0x4a110d='restrictedEditingException',_0x530591=_0x5bebac['commands']['get'](_0x4a110d);_0x483c35['enableCommand'](_0x4a110d,(_0x438201,_0x3e3a92={})=>{const _0x542f3c=_0xaeed79['document']['selection'];if(_0x542f3c['isCollapsed'])return void _0x438201(_0x3e3a92);const _0x470515=void 0x0!==_0x3e3a92['forceValue']?_0x3e3a92['forceValue']:!_0x530591['value'];_0xaeed79['change'](()=>{const _0x1e9cd7=Array['from'](_0x542f3c['getRanges']());for(const _0x3c31b4 of _0x1e9cd7){const _0x40b37a=_0x470515?[_0x3c31b4]:ve(_0x4a110d,_0x3c31b4,_0xaeed79);for(const _0x5118eb of _0x40b37a)_0x483c35['markInlineFormat'](_0x5118eb,{'commandName':_0x4a110d,'commandParams':[{'forceValue':_0x470515}]});}});}),_0x483c35['descriptionFactory']['registerDescriptionCallback'](_0x211038=>{if('formatBlock'!=_0x211038['type']&&'formatInline'!=_0x211038['type'])return;const {data:_0x43526a}=_0x211038;return _0x43526a&&_0x43526a['commandName']==_0x4a110d?_0x43526a['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x326e42,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x326e42,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x5663a9=this['editor'],_0xb9ca9=_0x5663a9['locale'],_0x398115=_0x5663a9['plugins']['get']('TrackChangesEditing'),_0x4ba78b='restrictedEditingExceptionBlock',_0x2b4f42=this['editor']['commands']['get'](_0x4ba78b);_0x398115['enableCommand'](_0x4ba78b,(_0x58bfcd,_0x4c6fc7={})=>{const _0x5b9711=this['editor']['model']['document']['selection'],_0x2e02bf=_0x4c6fc7&&void 0x0!==_0x4c6fc7['forceValue']?_0x4c6fc7['forceValue']:!_0x2b4f42['value'];let _0x5449af=[];_0x5449af=Ct(_0x2e02bf?Array['from'](_0x5b9711['getSelectedBlocks']())['filter'](_0x391f15=>function(_0x25b1a9){return!!_0x25b1a9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x391f15)||function(_0x4b9485,_0x4787a4){const _0x4b218b=_0x4787a4['createContext'](_0x4b9485['parent']);return!!_0x4787a4['checkChild'](_0x4b218b,'restrictedEditingException')&&!!_0x4787a4['checkChild'](_0x4b218b['push']('restrictedEditingException'),_0x4b9485);}(_0x391f15,this['editor']['model']['schema'])):Array['from'](_0x5b9711['getSelectedBlocks']())['map'](_0x23ecb7=>function(_0x248f99){let _0x3ad377=_0x248f99;for(;_0x3ad377['parent'];){if('restrictedEditingException'==_0x3ad377['parent']['name'])return _0x3ad377;_0x3ad377=_0x3ad377['parent'];}return null;}(_0x23ecb7))['filter'](_0x4c27dc=>!!_0x4c27dc),_0x5663a9['model']),_0x5663a9['model']['change'](()=>{for(const _0x16e47e of _0x5449af)_0x398115['markBlockFormat'](_0x16e47e,{'commandName':_0x4ba78b,'commandParams':[{'forceValue':_0x2e02bf}]});});}),_0x398115['descriptionFactory']['registerDescriptionCallback'](_0x134431=>{const {data:_0x473f52}=_0x134431;if(_0x473f52&&_0x473f52['commandName']==_0x4ba78b)return _0x473f52['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xb9ca9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0xb9ca9,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x9bd549{afterInit(){const _0x3c52ef=this['editor'];_0x3c52ef['plugins']['has']('Style')&&_0x3c52ef['plugins']['has']('DataSchema')&&(_0x3c52ef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x27cd0c=this['editor'],_0x76b97e=_0x27cd0c['locale'];_0x27cd0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52b5e5=>{if('formatBlock'!=_0x52b5e5['type']&&'formatInline'!=_0x52b5e5['type'])return;const {data:_0x31f8ea}=_0x52b5e5;return _0x31f8ea&&'style'===_0x31f8ea['commandName']?_0x31f8ea['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x76b97e,'*Set\x20format:*\x20%0',_0x31f8ea['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x76b97e,'*Remove\x20format:*\x20%0',_0x31f8ea['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x9bd549{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x41b2e3){super(_0x41b2e3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x3f335d=this['editor'],_0x5b8c28=_0x3f335d['model']['document']['selection'];if(!_0x3f335d['plugins']['has']('TableEditing'))return;const _0x4f1ca6=_0x3f335d['locale'],_0x24c07d=_0x3f335d['plugins']['get']('TrackChangesEditing'),_0x412434=_0x3f335d['plugins']['get']('TableUtils');_0x24c07d['descriptionFactory']['registerElementLabel']('table',_0x4ce934=>Ot(_0x4f1ca6,'ELEMENT_TABLE',_0x4ce934)),this['_setupColumnsRowsFixing'](),_0x24c07d['enableCommand']('insertTable'),_0x24c07d['enableCommand']('selectTableRow'),_0x24c07d['enableCommand']('selectTableColumn');for(const _0x4ab5c6 of['insertTableRowAbove','insertTableRowBelow']){const _0x10a552=_0x3f335d['commands']['get'](_0x4ab5c6);_0x24c07d['enableCommand'](_0x4ab5c6,_0x17bb0a=>{_0x3f335d['model']['change'](_0x14a882=>{_0x17bb0a();const _0x439347='above'===_0x10a552['order'],_0x3abd5c=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x25698c=_0x412434['getRowIndexes'](_0x3abd5c),_0x1ec3ff=_0x439347?_0x25698c['first']-0x1:_0x25698c['last']+0x1,_0xc97d55=_0x3abd5c[0x0]['findAncestor']('table'),_0x5ebdae=_0x412434['createTableWalker'](_0xc97d55,{'startRow':_0x1ec3ff,'endRow':_0x1ec3ff}),_0x44b628=Array['from'](_0x5ebdae)['map'](_0x20978b=>_0x14a882['createRangeOn'](_0x20978b['cell']));_0x24c07d['markMultiRangeInsertion'](_0x44b628,'tableRow');});});}for(const _0x516e42 of['insertTableColumnLeft','insertTableColumnRight']){const _0x39f916=_0x3f335d['commands']['get'](_0x516e42);_0x24c07d['enableCommand'](_0x516e42,_0x5aefb7=>{_0x3f335d['model']['change'](_0x5ce3fd=>{_0x5aefb7();const _0x370e9c='left'===_0x39f916['order'],_0x4c7788=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x176126=_0x412434['getColumnIndexes'](_0x4c7788),_0x2ee49f=_0x370e9c?_0x176126['first']-0x1:_0x176126['last']+0x1,_0x35f6dd=_0x4c7788[0x0]['findAncestor']('table'),_0x9a5793=_0x412434['createTableWalker'](_0x35f6dd,{'startRow':0x0,'column':_0x2ee49f,'includeAllSlots':!0x1}),_0x126d4d=Array['from'](_0x9a5793)['map'](_0x1ef773=>_0x5ce3fd['createRangeOn'](_0x1ef773['cell']));_0x24c07d['markMultiRangeInsertion'](_0x126d4d,'tableColumn');});});}for(const _0x4db958 of['removeTableRow','removeTableColumn']){const _0x32f91e=_0x4db958['substr'](0xb),_0x2ca4ad=_0x32f91e['toLowerCase'](),_0x2c019c=_0x2ca4ad['substr'](0x0,0x3)+'span',_0x97973c='table'+_0x32f91e,_0x19761c='min'+_0x32f91e,_0x1d60c6='max'+_0x32f91e;_0x24c07d['enableCommand'](_0x4db958,()=>{_0x3f335d['model']['change'](_0x18a436=>{const _0xe607dd=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x408adb=_0xe607dd[0x0]['findAncestor']('table');let _0x47a3f2;if('removeTableRow'==_0x4db958){const _0x959be1=_0x412434['getRowIndexes'](_0xe607dd);_0x47a3f2={'startRow':_0x959be1['first'],'endRow':_0x959be1['last'],'includeAllSlots':!0x0};}else{const _0x434c19=_0x412434['getColumnIndexes'](_0xe607dd);_0x47a3f2={'startColumn':_0x434c19['first'],'endColumn':_0x434c19['last'],'includeAllSlots':!0x0};}const _0x2c7840=_0x412434['createTableWalker'](_0x408adb,_0x47a3f2),_0x3bd277=Array['from'](_0x2c7840)['map'](({cell:_0xb368ab})=>_0xb368ab),_0x3139e7=xe(_0x3bd277['filter'](_0x5723be=>_0x5723be['hasAttribute'](_0x2c019c))),_0x1cd8fc=xe(_0x3bd277['filter'](_0x1b3188=>!_0x1b3188['hasAttribute'](_0x2c019c)))['map'](_0x4dbb87=>_0x18a436['createRangeOn'](_0x4dbb87)),_0x2a7e8d=_0x24c07d['markMultiRangeDeletion'](_0x1cd8fc,_0x97973c);if(_0x2a7e8d&&('tableRow'==_0x2a7e8d['subType']||'tableColumn'==_0x2a7e8d['subType'])){const _0x6211e8=this['_getSuggestionCoords'](_0x2a7e8d);for(const _0x54d4bc of _0x3139e7){const _0x3a94f6=_0x18a436['createRangeOn'](_0x54d4bc),_0x11067b=_0x412434['getCellLocation'](_0x54d4bc),_0x4144a6=_0x54d4bc['getAttribute'](_0x2c019c)-0x1,_0x510346=_0x6211e8[_0x19761c],_0x107fdc=_0x6211e8[_0x1d60c6];_0x510346<=_0x11067b[_0x2ca4ad]&&_0x11067b[_0x2ca4ad]+_0x4144a6<=_0x107fdc&&_0x2a7e8d['addRange'](_0x3a94f6);}}});});}function _0x2fe696(_0x229f5f){const _0x5f221a=Array['from'](_0x5b8c28['getRanges']())['map'](_0x459d5f=>ot['fromRange'](_0x459d5f));_0x3f335d['model']['change'](_0xe2ac08=>{const _0x854e79=_0xe2ac08['batch'];_0x229f5f=_0x229f5f['filter'](_0x5f252a=>'$graveyard'!=_0x5f252a['root']['rootName']),_0xe2ac08['setSelection'](_0x229f5f),_0x3f335d['commands']['get']('removeTableRow')['refresh'](),_0x3f335d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f335d['model']['enqueueChange'](()=>{_0x3f335d['model']['enqueueChange'](_0x854e79,_0xa5dcaf=>{const _0x49c283=_0x5f221a['filter'](_0x2272b5=>'$graveyard'!=_0x2272b5['root']['rootName']);_0x49c283['length']>0x0&&_0xa5dcaf['setSelection'](_0x49c283);for(const _0x5c2bee of _0x5f221a)_0x5c2bee['detach']();});});});}function _0x5e6926(_0x39d618){_0x3f335d['model']['change'](_0x4e7748=>{const _0x554dc9=Array['from'](_0x5b8c28['getRanges']())['map'](_0x58deec=>ot['fromRange'](_0x58deec)),_0x361171=[];for(const _0xef33b3 of _0x39d618)for(const _0x5c14f2 of _0xef33b3['getItems']({'shallow':!0x0}))_0x361171['push'](_0x5c14f2);for(const _0x926c87 of _0x361171)'$graveyard'!=_0x926c87['root']['rootName']&&(_0x4e7748['setSelection'](_0x4e7748['createPositionAt'](_0x926c87,0x0)),_0x3f335d['commands']['get']('removeTableColumn')['refresh'](),_0x3f335d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x11a00c=_0x554dc9['filter'](_0xd5db5=>'$graveyard'!=_0xd5db5['root']['rootName']);_0x11a00c['length']>0x0&&_0x4e7748['setSelection'](_0x11a00c);for(const _0x1b52d0 of _0x554dc9)_0x1b52d0['detach']();});}function _0x61b941(_0x4b30b7,_0x4e3bd7){return _0x4e3bd7['every'](_0x3f9082=>_0x4b30b7['some'](_0x4c0eb0=>_0x4c0eb0['end']['isEqual'](_0x3f9082['start'])||_0x3f9082['end']['isEqual'](_0x4c0eb0['start'])));}function _0x4a6a46(_0x2fb15f,_0xbb225c){return!_0x2fb15f['some'](_0x47a7ea=>_0xbb225c['some'](_0xb6e394=>_0x47a7ea['isIntersecting'](_0xb6e394)))&&_0x2fb15f['some'](_0x26ac04=>_0xbb225c['some'](_0xa73071=>_0x26ac04['end']['isTouching'](_0xa73071['start'])));}_0x24c07d['descriptionFactory']['registerDescriptionCallback'](_0x42ac00=>{if('insertion'!=_0x42ac00['type']&&'deletion'!=_0x42ac00['type'])return;const _0xd662e7=_0x42ac00['getContainedElement']();if(null!=_0xd662e7&&_0xd662e7['is']('element','table')){if('insertion'==_0x42ac00['type']){const _0x3b2bc1=_0x42ac00['getItems']()['filter'](_0x218ccf=>_0x218ccf['is']('$textProxy'))['map'](_0x58f0e4=>_0x58f0e4['data']);if(_0x3b2bc1['length'])return{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b2bc1['join']('\x20')+'\x22'))};}if('deletion'==_0x42ac00['type']){const _0x5145f2=_0x42ac00['getItems']()['filter'](_0x17236a=>_0x17236a['is']('$textProxy'))['map'](_0x42db2=>_0x42db2['data']);if(_0x5145f2['length'])return{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5145f2['join']('\x20')+'\x22'))};}}}),_0x24c07d['descriptionFactory']['registerDescriptionCallback'](_0x2b337e=>{if('tableRow'==_0x2b337e['subType']){const _0x2c95ea=_0x2b337e['getItems']()['filter'](_0x17b779=>_0x17b779['is']('$textProxy'))['map'](_0x56e9d8=>_0x56e9d8['data']),_0x91c294=this['_getSuggestionCoords'](_0x2b337e),_0xed9ff3=_0x91c294['maxRow']-_0x91c294['minRow']+0x1;if('insertion'==_0x2b337e['type'])return _0x2c95ea['length']?{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xed9ff3,'\x22'+_0x2c95ea['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW',_0xed9ff3))};if('deletion'==_0x2b337e['type'])return _0x2c95ea['length']?{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xed9ff3,'\x22'+_0x2c95ea['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW',_0xed9ff3))};}if('tableColumn'==_0x2b337e['subType']){const _0x3a4a98=_0x2b337e['getItems']()['filter'](_0x3158b5=>_0x3158b5['is']('$textProxy'))['map'](_0x36f7c9=>_0x36f7c9['data']),_0x1a0b85=this['_getSuggestionCoords'](_0x2b337e),_0x4d1f6c=_0x1a0b85['maxColumn']-_0x1a0b85['minColumn']+0x1;if('insertion'==_0x2b337e['type'])return _0x3a4a98['length']?{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1f6c,'\x22'+_0x3a4a98['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN',_0x4d1f6c))};if('deletion'==_0x2b337e['type'])return _0x3a4a98['length']?{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1f6c,'\x22'+_0x3a4a98['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN',_0x4d1f6c))};}}),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fe696),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fe696),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e6926),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e6926),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x61b941),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x61b941),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4a6a46),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4a6a46);}_acceptFormatSuggestionCallbackFactory(){const _0x5d2eee=this['editor'],_0x15d1ed=_0x5d2eee['model']['document']['selection'];return(_0x5e6c22,_0x1babb0)=>{_0x5d2eee['model']['change'](_0x240e06=>{const {commandName:_0x27a6d7,commandParams:_0x59ba39}=_0x1babb0;let _0x3b86d3=_0x5e6c22[0x0]['end']['nodeBefore'];_0x59ba39&&_0x59ba39[0x0]&&!0x1===_0x59ba39[0x0]['forceValue']&&(_0x3b86d3=_0x5e6c22[0x0]['start']['nodeAfter']);const _0x25ded3=_0x240e06['createRangeIn'](_0x3b86d3);if('$graveyard'==_0x25ded3['root']['rootName'])return;const _0x372af1=Array['from'](_0x15d1ed['getRanges']())['map'](_0x2145a6=>ot['fromRange'](_0x2145a6));_0x240e06['setSelection'](_0x25ded3),_0x5d2eee['commands']['get'](_0x27a6d7)['refresh'](),_0x59ba39['push']({'forceDefaultExecution':!0x0}),_0x5d2eee['execute'](_0x27a6d7,..._0x59ba39);const _0x32a2fc=_0x372af1['filter'](_0x51eb38=>'$graveyard'!=_0x51eb38['root']['rootName']);_0x32a2fc['length']>0x0&&_0x240e06['setSelection'](_0x32a2fc);for(const _0x5aae09 of _0x372af1)_0x5aae09['detach']();});};}_getCoordsForCells(_0x57a288){const _0x55ee21=this['editor']['plugins']['get']('TableUtils');let _0x3a2313=Number['MAX_SAFE_INTEGER'],_0x5e4f94=Number['MIN_SAFE_INTEGER'],_0x2d4318=Number['MAX_SAFE_INTEGER'],_0x5647ef=Number['MIN_SAFE_INTEGER'];for(const _0x45940e of _0x57a288){if('$graveyard'==_0x45940e['root']['rootName'])continue;const {row:_0x4871e7,column:_0x262da3}=_0x55ee21['getCellLocation'](_0x45940e),_0x170c67=_0x45940e['hasAttribute']('rowspan')?_0x45940e['getAttribute']('rowspan')-0x1:0x0,_0x25c8af=_0x45940e['hasAttribute']('colspan')?_0x45940e['getAttribute']('colspan')-0x1:0x0;_0x3a2313=_0x4871e7<_0x3a2313?_0x4871e7:_0x3a2313,_0x5e4f94=_0x4871e7+_0x170c67>_0x5e4f94?_0x4871e7+_0x170c67:_0x5e4f94,_0x2d4318=_0x262da3<_0x2d4318?_0x262da3:_0x2d4318,_0x5647ef=_0x262da3+_0x25c8af>_0x5647ef?_0x262da3+_0x25c8af:_0x5647ef;}return{'minRow':_0x3a2313,'maxRow':_0x5e4f94,'minColumn':_0x2d4318,'maxColumn':_0x5647ef};}_setupColumnsRowsFixing(){const _0x125bf6=this['editor'],_0x55a70e=_0x125bf6['plugins']['get']('TrackChangesEditing'),_0x3ee91d=_0x125bf6['plugins']['get']('TableUtils');_0x125bf6['model']['document']['on']('change:data',()=>{const _0x3e99cd=Array['from'](_0x125bf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15ccd0,data:_0x46dc14}of _0x3e99cd){const {group:_0x3dddeb,id:_0x37a0df,subType:_0x51ab45}=et(_0x15ccd0);if('suggestion'!=_0x3dddeb)continue;if(null!=_0x46dc14['oldRange'])continue;const _0x5512c2=_0x55a70e['getSuggestion'](_0x37a0df);this['_tablePostFixingSubtypes']['includes'](_0x51ab45)&&this['_tableSuggestions']['add'](_0x5512c2);}},{'priority':'low'});const _0x5a2862=(_0x40e08e,_0x38b298)=>{let _0x35999c=!0x1;const _0x2fc973=_0x38b298['createRangeOn'](_0x40e08e),_0x5e3767=_0x40e08e['findAncestor']('table'),_0x15fc49=_0x3ee91d['getCellLocation'](_0x40e08e);for(const _0x105be7 of this['_tableSuggestions']){const _0x374485=_0x105be7['subType'],_0x2892e5=_0x374485['startsWith']('tablePaste'),_0x344559=_0x374485['substr'](_0x2892e5?0xa:0x5),_0x2559de=_0x344559['toLowerCase'](),_0x399ad7=_0x2559de['substr'](0x0,0x3)+'span',_0x3dc32a='min'+_0x344559,_0x2333fa='max'+_0x344559;if(!_0x105be7['isInContent'])continue;if(_0x5e3767!=_0x105be7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x105be7['isIntersectingWithRange'](_0x2fc973))continue;const _0x5483b5=_0x40e08e['hasAttribute'](_0x399ad7)?_0x40e08e['getAttribute'](_0x399ad7)-0x1:0x0,_0x14a2ba=this['_getSuggestionCoords'](_0x105be7),_0x10c226=_0x14a2ba[_0x3dc32a],_0x2641a0=_0x14a2ba[_0x2333fa];_0x10c226<=_0x15fc49[_0x2559de]&&_0x15fc49[_0x2559de]+_0x5483b5<=_0x2641a0&&(_0x105be7['addRange'](_0x2fc973),_0x35999c=!0x0);}return _0x35999c;};_0x125bf6['model']['document']['registerPostFixer'](_0x1e3265=>{let _0x448f0d=!0x1;for(const _0x5dce9f of _0x125bf6['model']['document']['differ']['getChanges']())if('insert'==_0x5dce9f['type']){if('tableRow'==_0x5dce9f['name']){for(const _0x34e491 of _0x5dce9f['position']['nodeAfter']['getChildren']())_0x448f0d=_0x448f0d||_0x5a2862(_0x34e491,_0x1e3265);}else'tableCell'==_0x5dce9f['name']&&(_0x448f0d=_0x448f0d||_0x5a2862(_0x5dce9f['position']['nodeAfter'],_0x1e3265));}return _0x448f0d;});}_getSuggestionCoords(_0x19d326){return this['_getCoordsForCells'](_0x19d326['getRanges']()['map'](_0x6a17de=>_0x6a17de['start']['nodeAfter']));}};function xe(_0x373419){return Array['from'](new Set(_0x373419)['values']());}var Ge=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x21c8ec=this['editor'],_0x31a6e9=_0x21c8ec['model']['document']['selection'],_0x5b27ca=_0x21c8ec['locale'];if(!_0x21c8ec['plugins']['has']('TableEditing'))return;const _0x287334=_0x21c8ec['plugins']['get']('TrackChangesEditing'),_0x2b35d2=_0x21c8ec['plugins']['get']('TableUtils'),_0x4a42c5=_0x21c8ec['plugins']['get'](Pe);_0x4a42c5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x287334['enableCommand']('mergeTableCells',()=>{const _0x19e2db=_0x2b35d2['getSelectionAffectedTableCells'](_0x21c8ec['model']['document']['selection']);_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat'](_0x19e2db,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21c8ec['commands']['get']('mergeTableCells')['on']('execute',(_0x2248b7,_0x2feb86)=>{_0x21c8ec['commands']['get']('trackChanges')['value']&&(_0x2feb86['length']>0x0&&_0x2feb86[_0x2feb86['length']-0x1]&&_0x2feb86[_0x2feb86['length']-0x1]['forceDefaultExecution']||_0x287334['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2248b7['stop']());},{'priority':'highest'});for(const _0x6fbf8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x517836=_0x21c8ec['commands']['get'](_0x6fbf8a);_0x287334['enableCommand'](_0x6fbf8a,()=>{const _0x37e572=_0x21c8ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1571a0=>_0x1571a0['is']('element','tableCell')),_0x595a3f=_0x517836['value'];_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat']([_0x37e572,_0x595a3f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55ac9d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17e66e=_0x21c8ec['commands']['get'](_0x55ac9d);_0x287334['enableCommand'](_0x55ac9d,()=>{const _0x24dd03=_0x2b35d2['getSelectionAffectedTableCells'](_0x21c8ec['model']['document']['selection']),_0x2b0f38=_0x24dd03[0x0]['findAncestor']('table'),_0x42e922=new Set();for(const _0x5af9c8 of _0x24dd03){const {column:_0xee39b4,row:_0x2c1bce}=_0x2b35d2['getCellLocation'](_0x5af9c8),_0x19f333='horizontally'==_0x17e66e['direction']?_0x2b35d2['createTableWalker'](_0x2b0f38,{'startRow':_0x2c1bce,'endRow':_0x2c1bce,'includeAllSlots':!0x0}):_0x2b35d2['createTableWalker'](_0x2b0f38,{'column':_0xee39b4,'includeAllSlots':!0x0});for(const {cell:_0x51b1ac}of _0x19f333)_0x42e922['add'](_0x51b1ac);}_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat'](_0x24dd03,{'commandName':_0x55ac9d,'commandParams':[]},Array['from'](_0x42e922),_0x55ac9d);});});}_0x287334['descriptionFactory']['registerDescriptionCallback'](_0x3848e8=>{if('formatBlock'!=_0x3848e8['type']&&'formatInline'!=_0x3848e8['type'])return;const {data:_0x273004}=_0x3848e8;return _0x273004&&'mergeTableCells'==_0x273004['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Merge\x20cells*')}:void 0x0;}),_0x287334['descriptionFactory']['registerDescriptionCallback'](_0x2fdd35=>{if('formatBlock'!=_0x2fdd35['type']&&'formatInline'!=_0x2fdd35['type'])return;const {data:_0x1470b8}=_0x2fdd35;return _0x1470b8?'splitTableCellVertically'==_0x1470b8['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1470b8['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e2279=_0x4a42c5['_acceptFormatSuggestionCallbackFactory']();for(const _0x413649 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x413649,'accept',_0x3e2279);for(const _0x41145f of['splitTableCellVertically','splitTableCellHorizontally'])_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41145f,'accept',_0x9a383d=>{_0x21c8ec['model']['change'](_0xedb00d=>{const _0x4f187b=Array['from'](_0x9a383d)['filter'](_0x50e6dc=>'$graveyard'!=_0x50e6dc['root']['rootName']&&!!_0x50e6dc['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x4f187b['length'])return;const _0x16760f=Array['from'](_0x31a6e9['getRanges']())['map'](_0x472945=>ot['fromRange'](_0x472945));_0xedb00d['setSelection'](_0x4f187b),_0x21c8ec['commands']['get'](_0x41145f)['refresh'](),_0x21c8ec['execute'](_0x41145f,{'forceDefaultExecution':!0x0});const _0x18afc6=_0x16760f['filter'](_0x330bd1=>'$graveyard'!=_0x330bd1['root']['rootName']);_0x18afc6['length']>0x0&&_0xedb00d['setSelection'](_0x18afc6);for(const _0x3a851f of _0x16760f)_0x3a851f['detach']();});});_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17c3f7=>{_0x21c8ec['model']['change'](_0x22faf3=>{const _0x548113=Array['from'](_0x31a6e9['getRanges']())['map'](_0x2d7051=>ot['fromRange'](_0x2d7051));_0x22faf3['setSelection'](_0x17c3f7),_0x21c8ec['commands']['get']('mergeTableCells')['refresh'](),_0x21c8ec['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x14fd36=_0x548113['filter'](_0x1c91ba=>'$graveyard'!=_0x1c91ba['root']['rootName']);_0x14fd36['length']>0x0&&_0x22faf3['setSelection'](_0x14fd36);for(const _0x24433f of _0x548113)_0x24433f['detach']();});});for(const _0x3cbdec of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x43ef2a=_0x21c8ec['commands']['get'](_0x3cbdec);_0x43ef2a['on']('set:isEnabled',(_0x561a31,_0x3945ef,_0x37a254)=>{if(_0x37a254){const _0x18bb3a=_0x21c8ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10877c=>_0x10877c['is']('element','tableCell'));this['_areMergableCells'](_0x43ef2a['value'],_0x18bb3a)||(_0x561a31['return']=!0x1,_0x561a31['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x35beaf=this['editor']['commands']['get']('mergeTableCells'),_0xcb959e=this['editor']['plugins']['get']('TableUtils');if(!_0x35beaf['isEnabled'])return!0x1;const _0x4b29a2=_0xcb959e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x982a62 of _0x4b29a2)for(const _0x46e874 of _0x4b29a2)if(_0x982a62!=_0x46e874&&!this['_areMergableCells'](_0x982a62,_0x46e874))return!0x1;return!0x0;}['_areMergableCells'](_0x2331b7,_0x52bf04){const _0x26b4c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9d0711=this['editor']['model']['createRangeOn'](_0x2331b7),_0x3cd8ed=this['editor']['model']['createRangeOn'](_0x52bf04),_0x433ec9=new Set(),_0x2eb111=new Set();for(const _0x3c34d3 of _0x26b4c7['getSuggestions']())if(('insertion'==_0x3c34d3['type']||'deletion'==_0x3c34d3['type']||'mergeTableCells'==_0x3c34d3['subType'])&&_0x3c34d3['isInContent']){for(const _0x211218 of _0x3c34d3['getRanges']())_0x211218['containsRange'](_0x9d0711,!0x0)&&_0x433ec9['add'](_0x3c34d3['type']+':'+_0x3c34d3['author']['id']),_0x211218['containsRange'](_0x3cd8ed,!0x0)&&_0x2eb111['add'](_0x3c34d3['type']+':'+_0x3c34d3['author']['id']);}if(_0x433ec9['size']!=_0x2eb111['size'])return!0x1;for(const _0x26fa72 of _0x433ec9)if(!_0x2eb111['has'](_0x26fa72))return!0x1;return!0x0;}},He=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x4b14b1=this['editor'];if(!_0x4b14b1['plugins']['has']('TableEditing'))return;const _0x54b440=_0x4b14b1['locale'],_0x3fd54b=_0x4b14b1['plugins']['get']('TrackChangesEditing');_0x3fd54b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3fd54b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3fd54b['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x54b440,'FORMAT_HEADER_ROW')),_0x3fd54b['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x54b440,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3b50fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x580f34=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x3b50fc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x580f34),_0x3b50fc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x580f34),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x4a403b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a6352=this['editor']['plugins']['get']('TableUtils');function _0x5dc593({showActiveMarker:_0x255f60=!0x0,setDataAttribute:_0x135af5=!0x0}={}){return(_0x4674ca,_0x29781c,_0x2845d3)=>{const {type:_0x49bad4,id:_0x5e6f2a}=et(_0x29781c['markerName']);if(!_0x4a403b['hasSuggestion'](_0x5e6f2a))return;const _0x1b6a5b=_0x4a403b['getSuggestion'](_0x5e6f2a),_0x1e8d16=_0x1b6a5b['data'];if('formatBlock'!=_0x1b6a5b['type']||!_0x1e8d16||'setTableColumnHeader'!=_0x1e8d16['commandName'])return;if(_0x29781c['item'])return void _0x4674ca['stop']();if(!_0x2845d3['consumable']['consume'](_0x29781c['markerRange'],_0x4674ca['name']))return;const _0xe30bca=_0x29781c['markerRange']['start']['nodeAfter'],_0x212980=_0x29781c['markerRange']['end']['nodeBefore'],_0x5547b6=_0xe30bca['parent']['parent'],{column:_0x32355b}=_0x5a6352['getCellLocation'](_0xe30bca),{column:_0x1f17f7}=_0x5a6352['getCellLocation'](_0x212980);for(let _0x278d6a=_0x32355b;_0x278d6a<=_0x1f17f7;_0x278d6a++){const _0x1ab279=_0x5a6352['createTableWalker'](_0x5547b6,{'column':_0x278d6a,'includeAllSlots':!0x1});for(const _0x42cd8b of _0x1ab279){const _0x87618f=_0x42cd8b['cell'],_0x5f37bc=_0x2845d3['mapper']['toViewElement'](_0x87618f);_0x2845d3['writer']['addClass']('ck-suggestion-marker-'+_0x49bad4,_0x5f37bc),_0x135af5&&_0x2845d3['writer']['setAttribute']('data-suggestion',_0x5e6f2a,_0x5f37bc),_0x2845d3['mapper']['bindElementToMarker'](_0x5f37bc,_0x29781c['markerName']),_0x255f60&&(_0x4a403b['activeMarkers']['includes'](_0x29781c['markerName'])?_0x2845d3['writer']['addClass']('ck-suggestion-marker--active',_0x5f37bc):_0x2845d3['writer']['removeClass']('ck-suggestion-marker--active',_0x5f37bc));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5dc593(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34d9ac,_0x3e4c97,_0x559148)=>{_0x559148['options']['showSuggestionHighlights']&&_0x5dc593({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34d9ac,_0x3e4c97,_0x559148);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4b4220,_0x1539ca,_0x3c3c40)=>{const {type:_0x1d001b,id:_0x499200}=et(_0x1539ca['markerName']);if(!_0x4a403b['hasSuggestion'](_0x499200))return;const _0x2a02b5=_0x4a403b['getSuggestion'](_0x499200),_0x29fd12=_0x2a02b5['data'];if('formatBlock'!=_0x2a02b5['type']||!_0x29fd12||'setTableColumnHeader'!=_0x29fd12['commandName'])return;const _0x34f39e=_0x3c3c40['mapper']['markerNameToElements'](_0x1539ca['markerName']);if(_0x34f39e){for(const _0x4be8f3 of _0x34f39e)_0x3c3c40['writer']['removeClass']('ck-suggestion-marker-'+_0x1d001b,_0x4be8f3),_0x3c3c40['writer']['removeClass']('ck-suggestion-marker--active',_0x4be8f3),_0x3c3c40['writer']['removeAttribute']('data-suggestion',_0x4be8f3),_0x3c3c40['mapper']['unbindElementFromMarkerName'](_0x4be8f3,_0x1539ca['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x5acfd7=this['editor'],_0x2c833d=_0x5acfd7['locale'];function _0x51279f(_0x4b289b){return{'type':'format','content':Ot(_0x2c833d,'*Format:*\x20%0',_0x4b289b)};}_0x5acfd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f84e2=>{if('formatBlock'!=_0x3f84e2['type'])return;const {data:_0x3c6789}=_0x3f84e2;return _0x3c6789?'setTableRowHeader'==_0x3c6789['commandName']?_0x3c6789['commandParams'][0x0]['forceValue']?_0x51279f(Ot(_0x2c833d,'FORMAT_HEADER_ROW')):_0x51279f(Ot(_0x2c833d,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x3c6789['commandName']?_0x3c6789['commandParams'][0x0]['forceValue']?_0x51279f(Ot(_0x2c833d,'FORMAT_HEADER_COLUMN')):_0x51279f(Ot(_0x2c833d,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x2a47c1=this['editor'];if(!_0x2a47c1['plugins']['has']('TableEditing')||!_0x2a47c1['config']['get']('table.enableFooters'))return;const _0x51527a=_0x2a47c1['locale'],_0x558a43=_0x2a47c1['plugins']['get']('TrackChangesEditing');_0x558a43['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x558a43['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x51527a,'FORMAT_FOOTER_ROW'));}},We=class extends _0x9bd549{afterInit(){const _0x4b47cf=this['editor'],_0x52e71f=_0x4b47cf['locale'],_0x302832=_0x4b47cf['plugins']['get']('TrackChangesEditing');function _0xc3d88f(_0x58b968){return{'type':'format','content':''+Ot(_0x52e71f,'*Set\x20table\x20type:*\x20%0',_0x58b968)};}_0x4b47cf['plugins']['has']('TableLayout')&&(_0x302832['enableCommand']('insertTableLayout'),_0x302832['enableDefaultAttributesIntegration']('tableType'),_0x302832['descriptionFactory']['registerElementLabel'](_0xdf4289=>_0xdf4289['is']('element','table')&&'layout'===_0xdf4289['getAttribute']('tableType'),_0x67e9d4=>Ot(_0x52e71f,'ELEMENT_LAYOUT_TABLE',_0x67e9d4)),_0x302832['descriptionFactory']['registerDescriptionCallback'](_0x278829=>{const {data:_0x2902ea}=_0x278829;if(_0x2902ea&&'tableType'==_0x2902ea['key'])switch(_0x2902ea['newValue']){case'layout':return _0xc3d88f(Ot(_0x52e71f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xc3d88f(Ot(_0x52e71f,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ve['map'](_0x403c02=>[_0x403c02,null]));var ze=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x4cbef5=this['editor'];if(!_0x4cbef5['plugins']['has']('TableClipboard'))return;const _0x4e9699=_0x4cbef5['plugins']['get']('TrackChangesEditing'),_0x3a8204=_0x4cbef5['plugins']['get']('TableUtils'),_0x5d99c8=_0x4cbef5['plugins']['get'](Pe),_0x4f8c44=_0x4cbef5['plugins']['get']('TableClipboard'),_0x1cd511=_0x4cbef5['plugins']['get']('TableSelection'),_0x3919cc=_0x4cbef5['plugins']['get'](ft);_0x5d99c8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4cbef5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4cbef5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f5cf0=null,_0x5277f0=!0x1;_0x3919cc['on']('contentInsertion',(_0x460894,_0x37b763)=>{_0x5277f0='paste'===_0x37b763['method'];}),_0x4cbef5['model']['on']('insertContent',(_0x33cde6,_0x293361)=>{if(!_0x5277f0&&null===_0x1cd511['getSelectedTableCells']())return;const [_0x5dc9e7,_0x30f7db]=_0x293361,_0x3cc385=_0x293361[_0x293361['length']-0x1];_0x3cc385&&_0x3cc385['forceDefaultExecution']||_0x4e9699['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28ec8c,_0xfed37c,_0x2af85a,_0x314edb,_0x41bd29){if(_0xfed37c&&!_0xfed37c['is']('documentSelection'))return!0x1;const _0x11dcc4=_0x41bd29['getTableIfOnlyTableInContent'](_0x28ec8c,_0x2af85a);if(!_0x11dcc4||!Xe(_0x11dcc4,void 0x0,_0x314edb))return!0x1;const _0x2c1d7d=_0x314edb['getSelectionAffectedTableCells'](_0x2af85a['document']['selection']);if(!_0x2c1d7d['length'])return!0x1;const _0x70dd2c=_0x2c1d7d[0x0]['findAncestor']('table'),_0x307850=_0x314edb['getRowIndexes'](_0x2c1d7d),_0x57588e=_0x314edb['getColumnIndexes'](_0x2c1d7d),_0x1ff04e={'startRow':_0x307850['first'],'endRow':_0x307850['last'],'startColumn':_0x57588e['first'],'endColumn':_0x57588e['last']};return 0x1==_0x2c1d7d['length']&&(_0x1ff04e['endRow']+=_0x314edb['getRows'](_0x11dcc4)-0x1,_0x1ff04e['endColumn']+=_0x314edb['getColumns'](_0x11dcc4)-0x1),Xe(_0x70dd2c,_0x1ff04e,_0x314edb);}(_0x5dc9e7,_0x30f7db,_0x4cbef5['model'],_0x3a8204,_0x4f8c44)&&(_0x33cde6['stop'](),_0x2f5cf0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4cbef5['model']['change'](()=>{_0x4cbef5['model']['insertContent'](_0x293361[0x0],_0x293361[0x1],_0x293361[0x2],{'forceDefaultExecution':!0x0});const _0x2ff7e4=_0x2e6a13(),{rowInsertionRanges:_0x288082,columnInsertionRanges:_0x2ce034,insertionRanges:_0x20f5e2,deletionRanges:_0x3b6824,cells:_0x540698}=_0x2f5cf0;_0x288082['length']&&_0x4e9699['markMultiRangeInsertion'](_0x288082,'tablePasteRow',{'tablePasteChainId':_0x2ff7e4}),_0x2ce034['length']&&_0x4e9699['markMultiRangeInsertion'](_0x2ce034,'tablePasteColumn',{'tablePasteChainId':_0x2ff7e4}),_0x20f5e2['length']&&(_0x4e9699['markMultiRangeInsertion'](_0x20f5e2,'tablePaste',{'tablePasteChainId':_0x2ff7e4,'skipNestingCheck':!0x0}),_0x20f5e2['forEach'](_0x54c8da=>_0x54c8da['detach']?.())),_0x3b6824['length']&&(_0x4e9699['markMultiRangeDeletion'](_0x3b6824,'tablePaste',{'tablePasteChainId':_0x2ff7e4,'skipNestingCheck':!0x0}),_0x3b6824['forEach'](_0x38c27c=>_0x38c27c['detach']?.()));const _0x102e53=_0x4e9699['markMultiRangeBlockFormat'](_0x540698['map'](({element:_0x5a8724})=>_0x5a8724),{'formatGroupId':_0x2e6a13()},[],'tablePasteCell',{'tablePasteChainId':_0x2ff7e4});if(_0x102e53){const _0x4e8400=_0x102e53['getMarkers'](),_0x587cb1=[];for(const {element:_0xf8f4ef,attributes:_0x15904c}of _0x540698){if(!_0x15904c)continue;const _0x18f05f=_0x4cbef5['model']['createRangeOn'](_0xf8f4ef),_0x3794cc=_0x4e8400['find'](_0x2c1910=>_0x2c1910['getRange']()['isEqual'](_0x18f05f));_0x3794cc&&_0x587cb1['push']([_0x3794cc['name'],_0x15904c]);}_0x587cb1['length']&&_0x102e53['setAttribute']('markerAttributes',Object['fromEntries'](_0x587cb1));}_0x2f5cf0=null;}));},{'priority':_0x2b2839['high']+0xa}),_0x3919cc['on']('contentInsertion',()=>{_0x5277f0=!0x1;},{'priority':'lowest'}),_0x4cbef5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a3abe,_0x50efcc)=>{const [_0x33698f,_0x1f5248,,_0x38df20]=_0x50efcc;if(!_0x2f5cf0)return;_0x2a3abe['stop']();const _0x50f496=_0x33698f['cell'],_0x35ec98=_0x1f5248,_0x1307fa=Ke(_0x50f496),_0x101ca4=Ke(_0x35ec98);_0x2a3abe['return']=_0x50f496;let _0x208594=null,_0x48270c=null;if(_0x101ca4||_0x1307fa){if(_0x1307fa&&!_0x101ca4){_0x38df20['remove'](_0x50f496['getChild'](0x0));for(const _0x504778 of Array['from'](_0x35ec98['getChildren']()))_0x38df20['insert'](_0x504778,_0x50f496,'end');const _0x4f7b78=_0x2f5cf0['rowInsertionIndexes']['includes'](_0x33698f['row']),_0x38ccd7=_0x2f5cf0['columnInsertionIndexes']['includes'](_0x33698f['column']);_0x4f7b78||_0x38ccd7||(_0x208594=ot['fromRange'](_0x38df20['createRangeIn'](_0x50f496)));}else _0x101ca4&&!_0x1307fa&&(_0x48270c=_0x38df20['createRangeIn'](_0x50f496));}else{const _0x424a71=_0x38df20['createElement']('tableCellSuggestion'),_0x5b3bdb=_0x38df20['createElement']('tableCellSuggestion');_0x38df20['wrap'](_0x38df20['createRangeIn'](_0x50f496),_0x5b3bdb),_0x38df20['insert'](_0x424a71,_0x50f496,0x0);for(const _0x3679c8 of Array['from'](_0x35ec98['getChildren']()))_0x38df20['insert'](_0x3679c8,_0x424a71,'end');_0x208594=ot['fromRange'](_0x38df20['createRangeOn'](_0x424a71)),_0x48270c=ot['fromRange'](_0x38df20['createRangeOn'](_0x5b3bdb));}const _0x2aa08f=Array['from'](_0x35ec98['getAttributes']())['filter'](([_0x5d7f33])=>Ve['includes'](_0x5d7f33));_0x2f5cf0['cells']['push']({'element':_0x50f496,'attributes':_0x2aa08f['length']?Object['fromEntries'](_0x2aa08f):null}),_0x208594&&_0x2f5cf0['insertionRanges']['push'](_0x208594),_0x48270c&&_0x2f5cf0['deletionRanges']['push'](_0x48270c);},{'priority':'high'}),_0x3a8204['on']('insertColumns',(_0x3c7da3,_0x244f79)=>{const [_0x2a3853,_0x2c7a54={}]=_0x244f79;if(!_0x2f5cf0)return;const _0x37dcec=_0x2c7a54['at']||0x0,_0x2f7d2e=_0x2c7a54['columns']||0x1;_0x2f5cf0['columnInsertionIndexes']=new Array(_0x2f7d2e)['fill'](_0x37dcec)['map']((_0x2485bf,_0x1f2896)=>_0x2485bf+_0x1f2896);for(const {cell:_0x4576b7}of _0x3a8204['createTableWalker'](_0x2a3853,{'startColumn':_0x37dcec,'endColumn':_0x37dcec+_0x2f7d2e-0x1}))_0x2f5cf0['columnInsertionRanges']['push'](_0x4cbef5['model']['createRangeOn'](_0x4576b7));},{'priority':'low'}),_0x3a8204['on']('insertRows',(_0x127461,_0x5ae58a)=>{const [_0x1341f3,_0x4f8fa1={}]=_0x5ae58a;if(!_0x2f5cf0)return;const _0xc35c7a=_0x4f8fa1['at']||0x0,_0x509b13=_0x4f8fa1['rows']||0x1;_0x2f5cf0['rowInsertionIndexes']=new Array(_0x509b13)['fill'](_0xc35c7a)['map']((_0x30419d,_0x22272a)=>_0x30419d+_0x22272a);for(const {cell:_0x39385c}of _0x3a8204['createTableWalker'](_0x1341f3,{'startRow':_0xc35c7a,'endRow':_0xc35c7a+_0x509b13-0x1}))_0x2f5cf0['rowInsertionRanges']['push'](_0x4cbef5['model']['createRangeOn'](_0x39385c));},{'priority':'low'}),_0x4e9699['descriptionFactory']['registerDescriptionCallback'](_0x4fcca1=>{if(_0x4fcca1['subType']&&_0x4fcca1['subType']['startsWith']('tablePaste'))return _0x4fcca1['previous']?{}:{'type':'insertion','content':Ot(_0x4cbef5['locale'],'*Replace\x20table\x20cells*')};});const _0x589565=()=>!0x1;for(const _0x25f88d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion',_0x25f88d,'join',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('deletion',_0x25f88d,'join',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25f88d,'join',_0x589565);_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a2f8e,_0x3c30fa,_0xa6d46b)=>{const _0x4dca5c=_0x4a2f8e['map'](_0x54ed71=>_0x54ed71['getContainedElement']())['filter'](_0x4d28ef=>_0x4d28ef),_0x27db32=new Map(_0x4dca5c['map'](_0x55cf0f=>[_0x55cf0f,null]));if(_0x2f5cf0){for(const {element:_0x3bc054,attributes:_0xd7340a}of _0x2f5cf0['cells'])_0xd7340a&&_0x27db32['set'](_0x3bc054,_0xd7340a);}else{if(_0xa6d46b&&_0xa6d46b['markerAttributes'])for(const [_0x227911,_0x4bec34]of Object['entries'](_0xa6d46b['markerAttributes'])){const _0x5c2951=_0x4cbef5['model']['markers']['get'](_0x227911),_0x3ef361=_0x5c2951?_0x5c2951['getRange']()['getContainedElement']():null;_0x3ef361&&_0x27db32['set'](_0x3ef361,_0x4bec34);}}_0x4cbef5['model']['change'](_0x5785e7=>{for(const [_0x2e7b30,_0x2a0fd9]of _0x27db32)_0x5785e7['setAttributes']({...je,..._0x2a0fd9},_0x2e7b30);});});const _0x264a4d=(_0x2b76f2,_0x5c1c78)=>{_0x4e9699['_suggestionFactory']['registerCustomCallback'](_0x2b76f2,'tablePaste',_0x5c1c78,(_0x33381c,_0x2dbf3e,_0x4901b4)=>{_0x4cbef5['model']['change'](_0x3d9c78=>{const _0x3e552b=[];for(const _0x7467f5 of _0x33381c){const _0x224cff=_0x7467f5['start']['nodeAfter'];_0x224cff['is']('element','tableCellSuggestion')&&_0x3e552b['push'](_0x224cff);}_0x4e9699['_suggestionFactory']['getSuggestionCallback'](_0x2b76f2,null,_0x5c1c78)(_0x33381c,_0x2dbf3e,_0x4901b4);for(const _0x2880ca of _0x3e552b)'$graveyard'!=_0x2880ca['root']['rootName']&&_0x3d9c78['unwrap'](_0x2880ca);});});};_0x264a4d('insertion','accept'),_0x264a4d('insertion','discard'),_0x264a4d('deletion','accept'),_0x264a4d('deletion','discard'),_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x19ef31=>{const _0xf876d8=_0x19ef31['map'](_0x37ee5c=>_0x37ee5c['getContainedElement']()),_0x419396=_0xf876d8[0x0]['findAncestor']('table'),{minRow:_0x1ffeff,maxRow:_0x1930c6}=_0x5d99c8['_getCoordsForCells'](_0xf876d8);_0x3a8204['removeRows'](_0x419396,{'at':_0x1ffeff,'rows':_0x1930c6-_0x1ffeff+0x1});}),_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x301355=>{const _0x1c7d63=_0x301355['map'](_0x5b90b9=>_0x5b90b9['getContainedElement']()),_0x189a98=_0x1c7d63[0x0]['findAncestor']('table'),{minColumn:_0x31a708,maxColumn:_0x497d49}=_0x5d99c8['_getCoordsForCells'](_0x1c7d63);_0x3a8204['removeColumns'](_0x189a98,{'at':_0x31a708,'columns':_0x497d49-_0x31a708+0x1});});const _0x58699a=(_0xd1af14,_0x3fb1bb)=>{if(!_0x3fb1bb['subType']||!_0x3fb1bb['subType']['startsWith']('tablePaste'))return;const _0x4984fd=_0x3fb1bb['attributes']['tablePasteChainId'],_0x2d4069=_0x4e9699['getSuggestions']()['filter'](_0x568c2e=>_0x568c2e['isInContent']&&_0x568c2e['attributes']&&_0x568c2e['attributes']['tablePasteChainId']==_0x4984fd);_0x2d4069['length']&&_0x3fb1bb['getAllAdjacentSuggestions']()['length']!=_0x2d4069['length']&&_0x2d4069['reduce']((_0x11d093,_0x4fa242)=>(_0x11d093['next']=_0x4fa242,_0x4fa242['previous']=_0x11d093,_0x4fa242));};function _0x3debe2(_0x5cfcf1,_0x514787=!0x0){const {id:_0x4ff712,authorId:_0x22f460}=et(_0x5cfcf1['markerName']),_0x50050e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5e093a=_0x4e9699['activeMarkers']['includes'](_0x5cfcf1['markerName']);return _0x5e093a&&_0x50050e['push']('ck-suggestion-marker--active'),{'classes':_0x50050e,'attributes':{'data-suggestion':_0x4ff712,'data-author-id':_0x22f460},'priority':_0x5e093a&&_0x514787?0xbc2:0xbb8};}_0x4e9699['on']('suggestionLoaded',_0x58699a,{'priority':'high'}),_0x4e9699['on']('suggestionUnloaded',_0x58699a,{'priority':'high'}),_0x4cbef5['model']['document']['registerPostFixer'](()=>{let _0x2c9cd5=!0x1;const _0x581614=Array['from'](_0x4cbef5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc3dc,data:_0x100578}of _0x581614){const {group:_0x46374e,type:_0x2ba21a,id:_0x3a50ef}=et(_0x3fc3dc);if('suggestion'!=_0x46374e||'deletion'!=_0x2ba21a||_0x100578['oldRange'])continue;if(!_0x4e9699['hasSuggestion'](_0x3a50ef))continue;const _0x46f670=_0x4e9699['getSuggestion'](_0x3a50ef)['getRanges'](),_0x4cc462=_0x4cbef5['plugins']['get']('Users')['me'];for(const _0x4ed939 of _0x4e9699['getSuggestions']())if(_0x4ed939['isInContent']&&_0x4ed939['author']==_0x4cc462&&'formatBlock'==_0x4ed939['type']&&'tablePasteCell'==_0x4ed939['subType']&&_0x4ed939['getRanges']()['every'](_0x1f39cc=>_0x46f670['some'](_0x50ff62=>_0x50ff62['containsRange'](_0x1f39cc,!0x0)))){for(const _0x4c3ee9 of _0x4ed939['getAllAdjacentSuggestions']())_0x4c3ee9['isInContent']&&(_0x4c3ee9['discard'](),_0x2c9cd5=!0x0);}}return _0x2c9cd5;}),_0x4cbef5['model']['document']['registerPostFixer'](_0xdeb214=>{const _0x358c5c=_0x4cbef5['commands']['get']('redo');if(!_0x358c5c||!_0x358c5c['_createdBatches']['has'](_0xdeb214['batch']))return!0x1;let _0x234aac=!0x1;const _0x24f40f=_0x4cbef5['plugins']['get']('Users')['me'],_0x159d96=_0x4cbef5['model']['document']['differ']['getChanges'](),_0x28e175=Array['from'](_0x4cbef5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x156a15,data:_0xa21596})=>{const {group:_0x11231a,subType:_0x141f40,authorId:_0x320063}=et(_0x156a15);return'suggestion'==_0x11231a&&'tablePaste'==_0x141f40&&_0x320063==_0x24f40f['id']&&!_0xa21596['oldRange'];});for(const _0x303a88 of _0x159d96){if('insert'!=_0x303a88['type']||'tableCellSuggestion'!=_0x303a88['name']||0x1!=_0x303a88['length'])continue;const _0x3c3204=_0xdeb214['createRange'](_0x303a88['position'],_0x303a88['position']['getShiftedBy'](0x1));if(!_0x28e175['find'](({data:_0x42aa4a})=>_0x42aa4a['newRange']['isEqual'](_0x3c3204))){for(const {name:_0x15b1ed,data:_0x3cc0d2}of _0x28e175)if(_0x3c3204['containsRange'](_0x3cc0d2['newRange'])){_0xdeb214['updateMarker'](_0x15b1ed,{'range':_0x3c3204}),_0x234aac=!0x0;break;}}}return _0x234aac;}),_0x4cbef5['model']['document']['registerPostFixer'](_0x3d1a99=>{let _0x8eaacc=!0x1;const _0x2951d5=_0x4cbef5['plugins']['get']('Users')['me'],_0x35fa61=_0x4e9699['getSuggestions']()['filter'](_0x40ba23=>_0x40ba23['isInContent']&&_0x40ba23['author']==_0x2951d5),_0x1630bc=new Set(),_0x3f98db=new Set();for(const _0x2f691c of _0x35fa61)if('tablePaste'==_0x2f691c['subType'])for(const _0x581fca of _0x2f691c['getMarkers']()){const _0x289302=_0x581fca['getRange']()['getContainedElement']();if(_0x289302){if(_0x289302['is']('element','tableCellSuggestion')&&Ke(_0x289302)){_0x2f691c['removeMarker'](_0x581fca['name']),_0x1630bc['add'](_0x289302),_0x8eaacc=!0x0;const _0x2df403=_0x289302['nextSibling'],_0xaad945=_0x289302['previousSibling'],_0xb2304d=_0x2df403&&_0x2df403['is']('element','tableCellSuggestion'),_0x464805=_0xaad945&&_0xaad945['is']('element','tableCellSuggestion');_0xb2304d&&!_0x1630bc['has'](_0x2df403)&&_0x3f98db['add'](_0x2df403),_0x464805&&!_0x1630bc['has'](_0xaad945)&&_0x3f98db['add'](_0xaad945);}else _0x289302['is']('element','paragraph')&&_0x289302['isEmpty']&&(_0x2f691c['removeMarker'](_0x581fca['name']),_0x8eaacc=!0x0);}}else{if('tablePasteCell'==_0x2f691c['subType']){if(!_0x2f691c['attributes']||!_0x2f691c['attributes']['tablePasteChainId'])continue;const _0x59cfc9=_0x2f691c['attributes']['markerAttributes'];if(_0x59cfc9&&Object['keys'](_0x59cfc9)['length'])continue;const _0x2ca634=_0x2f691c['attributes']['tablePasteChainId'];let _0x56b72f=!0x0,_0x447036=!0x0;for(const _0x22ba4e of _0x35fa61)if(_0x22ba4e['subType']&&_0x22ba4e['subType']['startsWith']('tablePaste')){if(!_0x22ba4e['attributes']['tablePasteChainId']){_0x447036=!0x1;break;}if(_0x22ba4e['id']!=_0x2f691c['id']&&_0x22ba4e['attributes']['tablePasteChainId']==_0x2ca634){_0x56b72f=!0x1;break;}}_0x447036&&_0x56b72f&&(_0x2f691c['removeMarkers'](),_0x8eaacc=!0x0);}}for(const _0x4080cb of _0x1630bc)_0x3d1a99['remove'](_0x4080cb);for(const _0x5c75f6 of _0x3f98db)_0x3d1a99['unwrap'](_0x5c75f6);return _0x8eaacc;}),_0x4cbef5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4914d2=>_0x3debe2(_0x4914d2),'converterPriority':'high'}),_0x4cbef5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x348510,_0x19d4ce)=>_0x19d4ce['options']['showSuggestionHighlights']?_0x3debe2(_0x348510,!0x1):null,'converterPriority':'high'});const _0x4c88ed=_0x4cbef5['editing']['view'];this['listenTo'](_0x4c88ed['document'],'clipboardOutput',(_0x15aec1,_0x5143c5)=>{const _0x12bd1b=[];for(const _0x2021aa of _0x4c88ed['createRangeIn'](_0x5143c5['content'])['getItems']())_0x2021aa['is']('element','suggestion-td')&&_0x12bd1b['push'](_0x2021aa);_0x4c88ed['change'](_0x464e7b=>{for(const _0x4f1aa7 of _0x12bd1b)_0x464e7b['move'](_0x464e7b['createRangeIn'](_0x4f1aa7),_0x464e7b['createPositionBefore'](_0x4f1aa7)),_0x464e7b['remove'](_0x4f1aa7);});});}};function Ke(_0x4fc819){if(_0x4fc819['isEmpty'])return!0x0;const _0x418ed9=_0x4fc819['getChild'](0x0);return _0x418ed9['is']('element','paragraph')&&_0x418ed9['isEmpty'];}function Xe(_0x591f30,_0x1cb490={},_0x4f3838){for(const {isAnchor:_0x5de5ac,cellHeight:_0x2e8b5b,cellWidth:_0x3cb5fb}of _0x4f3838['createTableWalker'](_0x591f30,{'includeAllSlots':!0x0,..._0x1cb490}))if(!_0x5de5ac||0x1!=_0x2e8b5b||0x1!=_0x3cb5fb)return!0x1;return!0x0;}var qe=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x12a839=this['editor']['plugins']['get']('TrackChangesEditing');_0x12a839['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x12a839['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x12a839['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x12a839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x101a8f=_0x12a839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x12a839['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x26e408,_0x36e999)=>{_0x101a8f(_0x26e408,_0x36e999),this['_restoreCellWidths'](_0x26e408[0x0]['start']['nodeAfter'],_0x36e999['commandParams'][0x0]['cellWidths']);}),_0x12a839['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x3a3f6d,_0x533f84){const _0x12a326=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a1700=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xd8e07f=_0x533f84['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x310999=_0x1a1700['getColumnGroupElement'](_0xd8e07f);let _0x1d3fb4=_0x310999?_0x1a1700['getTableColumnsWidths'](_0x310999):null,_0x3d673e=_0xd8e07f['getAttribute']('tableWidth')||null;const _0x365126=_0x533f84['tableWidth']||_0x3d673e,_0x1f4858=_0x533f84['columnWidths']||_0x1d3fb4;let _0x3dbd41=this['_getCellWidths'](_0xd8e07f);const _0x414634=this['_foldResizeTableSuggestion'](_0xd8e07f);_0x414634&&(_0x3d673e=_0x414634['tableWidth'],_0x1d3fb4=_0x414634['columnWidths'],_0x3dbd41=_0x414634['cellWidths']||_0x3dbd41),_0x3a3f6d({'table':_0xd8e07f,'tableWidth':_0x365126,'columnWidths':_0x1f4858}),_0x12a326['markBlockFormat'](_0xd8e07f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3d673e,'columnWidths':_0x1d3fb4,'cellWidths':_0x3dbd41}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x27c83c,_0xc32c78={}){if(void 0x0===_0xc32c78['value']||''===_0xc32c78['value'])return void _0x27c83c(_0xc32c78);const _0x3566b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46ce8d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5176a4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xc32c78['batch']||(_0xc32c78['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xc32c78['batch'],()=>{const _0x45ccd8=_0x46ce8d['getColumnGroupElement'](_0x5176a4);let _0x5ee071=_0x45ccd8?_0x46ce8d['getTableColumnsWidths'](_0x45ccd8):null,_0x3967b4=_0x5176a4['getAttribute']('tableWidth')||null,_0x34c334=this['_getCellWidths'](_0x5176a4);const _0x5374d0=this['_foldResizeTableSuggestion'](_0x5176a4,!0x0);_0x5374d0&&(_0x3967b4=_0x5374d0['tableWidth'],_0x5ee071=_0x5374d0['columnWidths'],_0x34c334=_0x5374d0['cellWidths']||_0x34c334),_0x27c83c(_0xc32c78),_0x3566b8['markBlockFormat'](_0x5176a4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3967b4,'columnWidths':_0x5ee071,'cellWidths':_0x34c334}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x1886d1,_0x549205=!0x1){const _0x53dbac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x770f7c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a17e5 of _0x53dbac['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ece94=_0x5a17e5['getContainedElement']();if('resizeTable'===_0x5a17e5['subType']&&_0x3ece94===_0x1886d1){_0x5a17e5['author']!==_0x770f7c&&(_0x549205?_0x5a17e5['removeMarkers']():_0x5a17e5['discard']());const _0x724e5b=_0x5a17e5['data']['commandParams'];return{'tableWidth':_0x724e5b[0x0]['tableWidth'],'columnWidths':_0x724e5b[0x0]['columnWidths'],'cellWidths':_0x724e5b[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x315cc7){const _0x545c5b=[];for(const _0x29eefa of _0x315cc7['getChildren']())if(_0x29eefa['is']('element','tableRow')){for(const _0x27fbee of _0x29eefa['getChildren']())_0x545c5b['push'](_0x27fbee['getAttribute']('tableCellWidth')||null);}return _0x545c5b;}_restoreCellWidths(_0x453b10,_0x5c7f24){_0x5c7f24&&this['editor']['model']['change'](_0x4c754a=>{let _0x25e04e=0x0;for(const _0x1341f7 of _0x453b10['getChildren']())if(_0x1341f7['is']('element','tableRow'))for(const _0x4cc836 of _0x1341f7['getChildren']()){const _0x4f442c=_0x5c7f24[_0x25e04e++];_0x4f442c&&_0x4c754a['setAttribute']('tableCellWidth',_0x4f442c,_0x4cc836);}});}handleSuggestionDescription(_0x458b60){if('formatBlock'!=_0x458b60['type']&&'formatInline'!=_0x458b60['type'])return;const {data:_0x181366}=_0x458b60;return _0x181366&&'resizeTable'===_0x181366['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x9bd549{afterInit(){const _0x10731d=this['editor'];_0x10731d['plugins']['has']('Template')&&_0x10731d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x9bd549{afterInit(){const _0x17bc7e=this['editor'];if(!_0x17bc7e['commands']['get']('insertTableOfContents'))return;_0x17bc7e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f61b9=_0x17bc7e['plugins']['get']('TrackChangesEditing'),_0x2d2230=_0x17bc7e['locale'];_0x3f61b9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x570ed1=>Ot(_0x2d2230,'ELEMENT_TABLE_OF_CONTENTS',_0x570ed1));}},Ze=class extends _0x9bd549{afterInit(){const _0x1f672c=this['editor'];_0x1f672c['plugins']['has']('Title')&&(_0x1f672c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x1f672c['locale'],'ELEMENT_TITLE')),_0x1f672c['model']['document']['registerPostFixer'](_0x39f4d0=>{let _0x40696f=!0x1;const _0x65e20a=Array['from'](_0x1f672c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b13bc,data:_0x2a8459}of _0x65e20a){const {group:_0x5f2dec}=et(_0x5b13bc);if('suggestion'!==_0x5f2dec||!_0x2a8459['newRange'])continue;const _0x38599c=_0x2a8459['newRange'],_0x27cb15=_0x38599c['end']['nodeBefore'];if(!_0x27cb15||!_0x27cb15['is']('element','title-content'))continue;if(!_0x38599c['start']['isTouching'](_0x38599c['end']))continue;const _0x552700=_0x1f672c['model']['schema']['getNearestSelectionRange'](_0x38599c['end'],'forward');if(_0x552700&&_0x552700['isCollapsed']){const _0x37a497=_0x39f4d0['createRange'](_0x38599c['start'],_0x552700['start']);_0x37a497['isEqual'](_0x38599c)||(_0x39f4d0['updateMarker'](_0x5b13bc,{'range':_0x37a497}),_0x40696f=!0x0);}_0x40696f||(_0x39f4d0['removeMarker'](_0x5b13bc),_0x40696f=!0x0);}return _0x40696f;}));}},Je=class extends _0x9bd549{afterInit(){const _0x3046e8=this['editor'],_0xed4740=_0x3046e8['plugins']['get']('TrackChangesEditing');_0x3046e8['plugins']['has']('Uploadcare')&&(_0xed4740['enableCommand']('uploadcare'),_0x3046e8['plugins']['has']('UploadcareImageEdit')&&(_0xed4740['enableCommand']('uploadcareImageEdit'),_0xed4740['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xed4740['descriptionFactory']['registerDescriptionCallback'](_0x920549=>{if('attribute'!=_0x920549['type'])return;const {data:_0x134fdf}=_0x920549;return _0x134fdf&&'uploadcareImageId'==_0x134fdf['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x9bd549{afterInit(){const _0xce3c4d=this['editor'],_0x566b3f=_0xce3c4d['plugins']['get']('TrackChangesEditing');_0xce3c4d['plugins']['has']('UndoEditing')&&(_0x566b3f['enableCommand']('undo'),_0x566b3f['enableCommand']('redo'));}},en=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x501294=this['editor'];_0x501294['plugins']['has']('TableCaptionEditing')&&_0x501294['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x9bd549{tableProperties;tableCellProperties;constructor(_0x28bf93){super(_0x28bf93),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x2b6a5e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x426578 of this['tableProperties'])_0x2b6a5e['enableCommand'](_0x426578,(_0x657732,_0x536e6f)=>{const _0x5c56d4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x426578,[_0x5c56d4],this['tableProperties'],'tableProperties',_0x657732,_0x536e6f);});_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2b6a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x8fd700,_0x2a9692)=>this['handleDiscardAction'](this['tableProperties'],_0x8fd700,_0x2a9692)),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2a1192 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2a1192)&&_0x2b6a5e['enableCommand'](_0x2a1192,(_0x451187,_0x4016c6)=>{const _0x5e6584=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2a1192,_0x5e6584,this['tableCellProperties'],'tableCellProperties',_0x451187,_0x4016c6);});_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2b6a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x6dfabd,_0x46f3e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x6dfabd,_0x46f3e4)),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2b6a5e['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2b6a5e['descriptionFactory']['registerDescriptionCallback'](_0x17ea0a=>this['handleSuggestionDescription'](_0x17ea0a)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x306c1d,_0x4dac43,_0xd749fe,_0x32201a,_0x18b558,_0x18a51d){const _0x4c73f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18a51d['batch'],()=>{for(const _0x17d1fc of _0x4dac43)if(this['_getSuggestion'](_0x17d1fc,_0x32201a))_0x18b558(_0x18a51d);else{const _0xc10dd2={};for(const _0x487df0 of _0xd749fe){const _0x21bb74=_0x17d1fc['getAttribute'](_0x487df0);void 0x0!==_0x21bb74&&(_0xc10dd2[_0x487df0]=_0x21bb74);}const _0xc7fdb3=this['_getResizedColumnWidths'](_0x17d1fc);_0xc7fdb3&&(_0xc10dd2['columnWidths']=_0xc7fdb3),_0x18b558(_0x18a51d),_0x4c73f0['markBlockFormat'](_0x17d1fc,{'commandParams':[_0xc10dd2]},[],_0x32201a);}});}handleDiscardAction(_0x5b5a17,_0x586d5b,_0x58f3ef){const _0x4bb590=_0x586d5b[0x0]['start']['nodeAfter'],_0x3c09da=_0x58f3ef['commandParams'][0x0];this['editor']['model']['change'](_0x5ae3ad=>{for(const _0x4615ad of _0x5b5a17)void 0x0!==_0x3c09da[_0x4615ad]?_0x5ae3ad['setAttribute'](_0x4615ad,_0x3c09da[_0x4615ad],_0x4bb590):_0x5ae3ad['removeAttribute'](_0x4615ad,_0x4bb590);if(_0x3c09da['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x4c1f25=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x279368=_0x4c1f25['getColumnGroupElement'](_0x4bb590);if(_0x279368){const _0x248097=_0x4c1f25['getTableColumnsWidths'](_0x279368),_0x36ad81=_0x4bb590['getAttribute']('tableWidth');if(('string'==typeof _0x36ad81&&_0x36ad81['trim']()['endsWith']('px'))!==_0x248097['some'](_0x310d7f=>'string'==typeof _0x310d7f&&_0x310d7f['endsWith']('px'))){const _0x4afd27=_0x4c1f25['getTableColumnElements'](_0x279368);_0x3c09da['columnWidths']['forEach']((_0x3db0e1,_0x15573a)=>{_0x4afd27[_0x15573a]&&_0x5ae3ad['setAttribute']('columnWidth',_0x3db0e1,_0x4afd27[_0x15573a]);});}}}});}_getResizedColumnWidths(_0x231747){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x231747['is']('element','table'))return;const _0x198dbc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x466ec6=_0x198dbc['getColumnGroupElement'](_0x231747);return _0x466ec6?_0x198dbc['getTableColumnsWidths'](_0x466ec6):void 0x0;}handleSuggestionDescription(_0x58ae34){if(_0x58ae34['data'])switch(_0x58ae34['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x2af16e,_0x445838){const _0x402da8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x430ab2 of _0x402da8['getSuggestions']({'skipNotAttached':!0x0})){const _0x117ba0=_0x430ab2['getContainedElement']();if(_0x430ab2['subType']===_0x445838&&_0x117ba0===_0x2af16e)return _0x430ab2;}return null;}_registerTablePropertiesAttributes(){const _0xbc1b19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cdd29=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4bc5e0 of _0x5cdd29){const _0x5ddb13=_0x4bc5e0['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xbc1b19['descriptionFactory']['registerAttributeLabel'](_0x4bc5e0,Ot(this['editor']['locale'],'FORMAT_'+_0x5ddb13));}}},sn=class extends _0x9bd549{afterInit(){const _0x2d8ae3=this['editor'];if(!_0x2d8ae3['plugins']['has']('LineHeight'))return;const _0x95370f=_0x2d8ae3['plugins']['get']('TrackChangesEditing'),_0x52d2c4=_0x2d8ae3['locale'];_0x95370f['enableDefaultAttributesIntegration']('lineHeight'),_0x95370f['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x52d2c4,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x9bd549{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x203ad7,_0x358b09,_0xfe45c9,_0x4f7893,_0x2c9489,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45af0f){super(_0x45af0f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d6c9c,_0x331792,_0x11c831,_0x4dbbe3)=>{this['_model']['change'](()=>{for(const _0x30fb4a of[..._0x4dbbe3,..._0x11c831])this['_model']['markers']['has'](_0x30fb4a)&&_0x45af0f['editing']['reconvertMarker'](_0x30fb4a);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45af0f['plugins']['get'](_0x203ad7),this['_suggestionsConversion']=_0x45af0f['plugins']['get'](_0x358b09),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x45af0f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45af0f['config']['get']('trackChanges.trackFormatChanges'),_0x45af0f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45af0f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x45af0f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4f9135=this['editor'];_0x4f9135['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x22a783,{writer:_0xb78b6c})=>{let _0x374dc9='suggestion:'+_0x22a783['getAttribute']('suggestion-type')+':'+_0x22a783['getAttribute']('id');return _0x22a783['getAttribute']('marker-count')&&(_0x374dc9+=':'+_0x22a783['getAttribute']('marker-count')),_0xb78b6c['createElement']('$marker',{'data-name':_0x374dc9});}}),_0x4f9135['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f9135['model']['document']['registerPostFixer'](_0xb0c7b9=>{let _0x1789bc=!0x1;const _0x418d8f=Array['from'](_0x4f9135['model']['document']['differ']['getChangedMarkers']()),_0xe54dbf=new Set();for(const {name:_0x5a5123,data:_0x2354ea}of _0x418d8f){const {group:_0x1bd1b3,type:_0x480ee9,subType:_0x5c8e1f,id:_0x5e5d51}=et(_0x5a5123);if('suggestion'!==_0x1bd1b3)continue;const _0x261eaa=_0x5c8e1f?'suggestion:'+_0x480ee9+':'+_0x5c8e1f+':'+_0x5e5d51:'suggestion:'+_0x480ee9+':'+_0x5e5d51,_0x5332e9=_0x4f9135['model']['markers']['getMarkersGroup'](_0x261eaa),_0x34f4ec=_0x4f9135['model']['markers']['get'](_0x5a5123),_0x4b5fb0=this['_suggestions']['get'](_0x5e5d51);if(null!=_0x2354ea['newRange']){'formatInline'==_0x480ee9&&(_0x1789bc=_0x1789bc||un(_0x2354ea['newRange'],_0x5a5123,_0xb0c7b9,_0x4f9135['model']['schema']));const _0x3bc312='attribute'==_0x480ee9&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x5c8e1f)),_0x328915='attribute'==_0x480ee9&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x5c8e1f));if(_0x2354ea['newRange']['isCollapsed']||'$graveyard'==_0x2354ea['newRange']['root']['rootName']||'formatBlock'==_0x480ee9&&!hn(_0x2354ea['newRange'])||_0x3bc312&&!hn(_0x2354ea['newRange'])||_0x328915&&gn(_0x2354ea['newRange'])||'deletion'==_0x480ee9&&gn(_0x2354ea['newRange'])||_0x34f4ec&&fn(_0x34f4ec,_0x5332e9))_0xb0c7b9['removeMarker'](_0x5a5123),_0x1789bc=!0x0;else{if(!_0x4b5fb0||!_0x4b5fb0['isInContent'])continue;if(_0x2354ea['newRange']&&_0x2354ea['oldRange']&&_0x2354ea['newRange']['isEqual'](_0x2354ea['oldRange']))continue;_0xe54dbf['add'](_0x4b5fb0);}}}return _0xe54dbf['size']>0x0&&(_0x1789bc=!!this['_joinWithAdjacentSuggestions'](_0xe54dbf)||_0x1789bc),_0x1789bc;}),_0x4f9135['model']['document']['registerPostFixer'](_0x5c9d33=>{let _0x1e919b=!0x1;for(const _0x148885 of _0x4f9135['model']['document']['differ']['getChanges']())if('insert'==_0x148885['type'])for(const _0x2164d6 of this['_suggestions']['values']()){if(_0x2164d6['isMultiRange']||!_0x2164d6['isInContent'])continue;const _0x11cdd2='formatBlock'==_0x2164d6['type'],_0x2ed835=this['_getAttributeKey'](_0x2164d6),_0x10b926=_0x2ed835&&this['_suggestionsConversion']['isBlockAttribute'](_0x2ed835);if(!_0x11cdd2&&!_0x10b926)continue;const _0x3bc5b1=_0x2164d6['getFirstRange']();if(_0x3bc5b1['start']['parent']!=_0x3bc5b1['end']['parent']&&!_0x3bc5b1['end']['isAtEnd']){const _0x2e0663=_0x4f9135['model']['createPositionAt'](_0x3bc5b1['start']['nodeAfter'],'end'),_0x434914=_0x4f9135['model']['createRange'](_0x3bc5b1['start'],_0x2e0663);_0x5c9d33['updateMarker'](_0x2164d6['getFirstMarker'](),{'range':_0x434914}),_0x1e919b=!0x0;}}return _0x1e919b;}),_0x4f9135['model']['document']['registerPostFixer'](_0x4c4b00=>this['_processAttributeChanges'](_0x4c4b00)),_0x4f9135['model']['document']['registerPostFixer'](_0xd7d43=>!_0xd7d43['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd7d43)),_0x4f9135['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f9135['model']['document']['on']('change:data',(_0x40e819,_0x48cfac)=>{if(!_0x48cfac['isLocal']||_0x48cfac['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ef1d7=_0x4f9135['model']['document']['differ']['getChanges']();if(0x0==_0x3ef1d7['length'])return;const _0x5377a9=[],_0x466e17=_0x3ef1d7['filter'](_0x1bc317=>'attribute'==_0x1bc317['type']),_0x4cc155=_0x3ef1d7['filter'](_0x98629a=>'insert'==_0x98629a['type']&&'$text'!=_0x98629a['name']);for(const _0x3a2cdd of _0x466e17)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3a2cdd['attributeKey'])&&_0x5377a9['push']({'key':_0x3a2cdd['attributeKey'],'newValue':_0x3a2cdd['attributeNewValue'],'oldValue':_0x3a2cdd['attributeOldValue'],'range':mn(_0x3a2cdd['range'],_0x4f9135['model'])});for(const _0x88b9c9 of _0x4cc155){if('rename'!=_0x88b9c9['action']&&'refresh'!=_0x88b9c9['action'])continue;const _0x5d0748=En(_0x88b9c9['position']['nodeAfter'],_0x4f9135['model']),_0x3bd44d=_0x88b9c9['before'];'rename'==_0x88b9c9['action']&&_0x5377a9['push']({'key':rn,'newValue':_0x88b9c9['name'],'oldValue':_0x3bd44d['name'],'range':_0x5d0748});for(const [_0x3ad3e9,_0x1d5d01]of _0x3bd44d['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3ad3e9))continue;const _0x508710=_0x88b9c9['attributes']['get'](_0x3ad3e9);_0x1d5d01!==_0x508710&&_0x5377a9['push']({'key':_0x3ad3e9,'newValue':_0x508710,'oldValue':_0x1d5d01,'range':_0x5d0748});}for(const [_0x170a76,_0x490fef]of _0x88b9c9['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x170a76)&&(_0x3bd44d['attributes']['has'](_0x170a76)||_0x5377a9['push']({'key':_0x170a76,'newValue':_0x490fef,'oldValue':null,'range':_0x5d0748}));}0x0!=_0x5377a9['length']&&_0x4f9135['model']['enqueueChange'](_0x48cfac,_0xeaa8a9=>{const _0x38b15e=_0x2e6a13();for(const {range:_0x2b0eb9,key:_0x519832,oldValue:_0x2545bc,newValue:_0x31b5f7}of _0x5377a9)this['markAttributeChange'](_0x2b0eb9,_0x519832,_0x2545bc,_0x31b5f7,{'groupId':_0x38b15e});this['_reduceExistingSuggestions'](_0xeaa8a9,_0x5377a9);});},{'priority':'lowest'}),_0x4f9135['model']['markers']['on']('update:suggestion',(_0x493bb1,_0xd0ede5,_0x5506b5)=>{if(null==_0x5506b5){const {id:_0x499ea1}=et(_0xd0ede5['name']),_0x154bf6=this['_suggestions']['get'](_0x499ea1);_0x154bf6&&_0x154bf6['addMarkerName'](_0xd0ede5['name']);}}),_0x4f9135['model']['document']['on']('change:data',()=>{const _0x542370=Array['from'](_0x4f9135['model']['document']['differ']['getChangedMarkers']())['filter'](_0x495c8c=>'suggestion'===et(_0x495c8c['name'])['group']);if(0x0===_0x542370['length'])return;_0x542370['sort']((_0x3c3a12,_0x170155)=>{const _0x4c82a3=_0x3c3a12['data']['oldRange'],_0xcc1fb1=_0x170155['data']['oldRange'];return null===_0x4c82a3&&null===_0xcc1fb1?0x0:null===_0x4c82a3&&null!==_0xcc1fb1?-0x1:null!==_0x4c82a3&&null===_0xcc1fb1?0x1:_0x4c82a3['start']['isBefore'](_0xcc1fb1['start'])?-0x1:0x1;});const _0x57e19c=new Set(),_0x4538f0=new Set();for(const {name:_0x5def4c,data:_0x16d009}of _0x542370){const {id:_0x1e1a3b}=et(_0x5def4c);if(null===_0x16d009['oldRange']){const _0x2f2988=this['_handleNewSuggestionMarker'](_0x5def4c);_0x4538f0['add'](_0x2f2988);}else{const _0x4e1c0e=this['_suggestions']['get'](_0x1e1a3b);null!==_0x16d009['newRange']||_0x4e1c0e['isInContent']?(_0x57e19c['add'](_0x4e1c0e['head']),_0x4538f0['add'](_0x4e1c0e)):this['_removeSuggestion'](_0x4e1c0e);}}_0x4538f0['size']>0x0&&this['_refreshSuggestionsChain'](_0x4538f0);for(const _0x1ea47d of _0x57e19c)this['fire']('suggestionChanged',_0x1ea47d);}),_0x4f9135['model']['on']('applyOperation',(_0x12b767,_0x290a18)=>{const _0x1c7ebd=_0x290a18[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c7ebd['isDocumentOperation'])return;if(_0x1c7ebd['batch']['isUndo']||!_0x1c7ebd['batch']['isLocal'])return;let _0x1ba590,_0x3eb7fa;switch(_0x1c7ebd['type']){case'insert':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['position']),_0x3eb7fa=_0x1ba590['getShiftedBy'](_0x1c7ebd['howMany']);break;case'split':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['splitPosition']),_0x3eb7fa=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['moveTargetPosition']);break;case'move':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['targetPosition']),_0x3eb7fa=_0x1ba590['getShiftedBy'](_0x1c7ebd['howMany']);break;default:return;}const _0x2c060c=_0x4f9135['model']['createRange'](_0x1ba590,_0x3eb7fa);_0x4f9135['model']['change'](()=>{for(const {suggestion:_0x3d4a1a,meta:_0x4f6147}of this['_findSuggestions'](_0x2c060c)){if(_0x3d4a1a['isMultiRange'])continue;if('formatInline'==_0x3d4a1a['type'])continue;const _0x17da63=this['_getAttributeKey'](_0x3d4a1a);if(_0x17da63&&this['_suggestionsConversion']['isBlockAttribute'](_0x17da63)&&'split'!=_0x1c7ebd['type'])continue;const _0x328457=_0x3d4a1a['data']&&_0x3d4a1a['data']['multipleBlocks'];('formatBlock'!=_0x3d4a1a['type']||'split'==_0x1c7ebd['type']&&!_0x328457)&&(_0x4f6147['containsRangeInObject']||'insertion'==_0x3d4a1a['type']&&_0x4f6147['isOwn']||_0x3d4a1a['getFirstRange']()['containsRange'](_0x2c060c)&&this['_breakSuggestionMarker'](_0x3d4a1a,_0x1ba590,_0x3eb7fa));}});},{'priority':'lowest'}),_0x4f9135['model']['on']('deleteContent',(_0x103535,_0x172f68)=>{const _0x4067b1=_0x172f68[0x0],_0x373dc6=_0x172f68[0x1];if(_0x373dc6&&_0x373dc6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4067b1['isCollapsed'])return;const _0xcb5a4b=_0x4f9135['model']['schema'],{start:_0x46ddc3,end:_0x1198a0}=_0x4067b1['getFirstRange'](),_0x41f5d0=_0x46ddc3['nodeAfter']&&_0xcb5a4b['isLimit'](_0x46ddc3['nodeAfter'])?null:_0xcb5a4b['getNearestSelectionRange'](_0x46ddc3,'forward'),_0x547abb=_0x1198a0['nodeBefore']&&_0xcb5a4b['isLimit'](_0x1198a0['nodeBefore'])?null:_0xcb5a4b['getNearestSelectionRange'](_0x1198a0,'backward'),_0x4db3ca=_0x4f9135['model']['createRange'](_0x41f5d0?_0x41f5d0['start']:_0x46ddc3,_0x547abb?_0x547abb['end']:_0x1198a0);_0x4f9135['model']['change'](_0x4f722c=>{this['markDeletion'](_0x4db3ca);const _0x59dde0=_0x4f9135['model']['schema']['getNearestSelectionRange'](_0x4db3ca['start']);_0x4067b1['is']('documentSelection')?_0x4f722c['setSelection'](_0x59dde0):_0x4067b1['setTo'](_0x59dde0);}),_0x103535['stop']();},{'priority':_0x2b2839['normal']+0xa}),_0x4f9135['model']['on']('insertContent',(_0x317b81,_0x47605b)=>{const _0x86d576=_0x47605b[_0x47605b['length']-0x1];_0x86d576&&_0x86d576['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f9135['model']['change'](()=>{let _0x2dc0b2=_0x4f9135['model']['insertContent'](_0x47605b[0x0],_0x47605b[0x1],_0x47605b[0x2],{'forceDefaultExecution':!0x0});if(!_0x2dc0b2)return;_0x317b81['return']=_0x2dc0b2['clone']();const _0x1db76e=_0x2dc0b2['end']['nodeBefore'],_0x137d6f=_0x4f9135['model']['schema'];_0x1db76e&&_0x137d6f['isBlock'](_0x1db76e)&&!_0x137d6f['isObject'](_0x1db76e)&&(_0x2dc0b2=_0x4f9135['model']['createRange'](_0x2dc0b2['start'],_0x4f9135['model']['createPositionAt'](_0x1db76e,'end'))),this['markInsertion'](_0x2dc0b2);}),_0x317b81['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d2a56=new pt(_0x4f9135,this['_suggestions']);_0x4f9135['commands']['add']('acceptSuggestion',_0x3d2a56),this['enableCommand']('acceptSuggestion');const _0xafb1ac=new Lt(_0x4f9135,this['_suggestions']);_0x4f9135['commands']['add']('discardSuggestion',_0xafb1ac),this['enableCommand']('discardSuggestion'),_0x4f9135['commands']['add']('acceptAllSuggestions',new yt(_0x4f9135,_0x3d2a56,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f9135['commands']['add']('discardAllSuggestions',new yt(_0x4f9135,_0xafb1ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f9135['commands']['add']('acceptSelectedSuggestions',new Nt(_0x4f9135,_0x3d2a56,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f9135['commands']['add']('discardSelectedSuggestions',new Nt(_0x4f9135,_0xafb1ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10513c=_0x4f9135['plugins']['get'](_0x203ad7);this['listenTo'](_0x10513c,'addComment',(_0x3c9585,{threadId:_0x9b2814})=>{const _0x5710f5=this['_suggestions']['get'](_0x9b2814);_0x5710f5&&_0x5710f5['commentThread']&&0x1===_0x5710f5['commentThread']['length']&&this['_updateSuggestionData'](_0x9b2814,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10513c,'removeComment',(_0x969447,{threadId:_0xd59438})=>{const _0x106937=this['_suggestions']['get'](_0xd59438);_0x106937&&_0x106937['commentThread']&&!_0x106937['commentThread']['length']&&this['_updateSuggestionData'](_0xd59438,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x46a1a4){const _0x1d89bf='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x267d7f=0x79158,_0x195b30=window['Date']['now'](),_0x30392f=_0x46a1a4['editor'],_0x2d0b7d=new window['Promise'](_0x102600=>{_0x30392f['once']('ready',_0x102600);}),_0x10fb3f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x10221d=_0x30392f['config']['get']('licenseKey');async function _0x3b37c9(){let _0x276394,_0x15dec1=null,_0x5c799c=null;try{return'GPL'==_0x10221d?'NotAllowed':(_0x276394=_0x5dc09b(),_0x276394?(_0x276394['usageEndpoint']&&(_0x5c799c=_0x1525ac(_0x276394['usageEndpoint'],_0x276394['jti'])),await _0x1ea715()?_0x5cc7ec()?_0x23cb6a()?'Expired':_0x54650b()?('evaluation'==_0x276394['licenseType']&&(_0x15dec1=_0x1ddeee('EvaluationLimit')),await _0xdb49bf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x23cb6a(){const _0x7d6a42=['evaluation','trial']['includes'](_0x276394['licenseType'])?_0x195b30/0x3e8:0xe10*_0x267d7f;return _0x276394['exp']<_0x7d6a42;}function _0x5cc7ec(){const _0x2c417a=_0x276394['features'];if(!_0x2c417a)return!0x1;if(_0x2c417a['includes']('*'))return!0x0;if(_0x2c417a['includes']('TC'))return!0x0;if(_0x2c417a['includes']('RTC')){if(_0x1d9c94())return!0x0;if(_0x5678e9()||_0x546101())return!0x0;}return!0x1;}function _0x54650b(){const _0x18df40=_0x276394['licensedHosts'];if(!_0x18df40||0x0==_0x18df40['length'])return!0x0;const {hostname:_0x9f4428}=new URL(window['location']['href']);if(_0x18df40['includes'](_0x9f4428))return!0x0;const _0x1e48ee=_0x9f4428['split']('.');return _0x18df40['filter'](_0x59c194=>_0x59c194['includes']('*'))['map'](_0x12aff3=>_0x12aff3['split']('.'))['filter'](_0x4bc2dc=>_0x4bc2dc['length']<=_0x1e48ee['length'])['map'](_0x28c1cf=>Array(_0x1e48ee['length']-_0x28c1cf['length'])['fill']('*'===_0x28c1cf[0x0]?'*':'')['concat'](_0x28c1cf))['some'](_0x4d01b9=>_0x1e48ee['every']((_0x45b62b,_0x20a3ee)=>_0x4d01b9[_0x20a3ee]===_0x45b62b||'*'===_0x4d01b9[_0x20a3ee]));}function _0xdb49bf(){return _0x15dec1&&_0x5c799c?new window['Promise']((_0x16e5c6,_0x397306)=>{_0x15dec1['then'](_0x16e5c6,_0x397306),_0x5c799c['then'](_0x5f19e2=>{'Valid'!=_0x5f19e2&&_0x16e5c6(_0x5f19e2);},_0x397306);}):_0x15dec1||_0x5c799c||'Valid';}}function _0x1525ac(_0x1819e1,_0x47db27){return new window['Promise'](_0x54da38=>{if(_0x201c5d())return _0x54da38('Valid');_0x2f4f84(),_0x30392f['decorate']('_sendUsageRequest');let _0x2e43a7=!0x1;const _0x41b265=_0x2e6a13();function _0x440ea8(_0x20ab7b){return!!_0x20ab7b&&('object'==typeof _0x20ab7b||'function'==typeof _0x20ab7b)&&'function'==typeof _0x20ab7b['then']&&'function'==typeof _0x20ab7b['catch'];}function _0x531f59(_0xc4d2c6){_0x41145a(_0xc4d2c6)['then'](_0x33de58=>_0x33de58&&'ok'==_0x33de58['status']?_0x2bef83(_0x1461a8(_0x41b265+_0x47db27))!=_0x33de58['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x18aab7=>(_0x47cc1a(),_0x18aab7),()=>{const _0x781a41=_0x45709b();return null==_0x781a41?(_0x47cc1a(),'Valid'):_0x195b30-_0x781a41>0x240c8400?'UsageLimit':'Valid';})['then'](_0x54da38)['catch'](()=>{_0x54da38('UsageLimit');});const _0x5e2a29=0x36ee80;function _0x47cc1a(){const _0x15ee5f='llct-'+_0x2bef83(_0x1461a8(_0x1819e1)),_0x21c369=_0x5a8d8c(_0x2bef83(window['Math']['ceil'](_0x195b30/_0x5e2a29)));window['localStorage']['setItem'](_0x15ee5f,_0x21c369);}function _0x45709b(){const _0x2f5157='llct-'+_0x2bef83(_0x1461a8(_0x1819e1)),_0x4d0635=window['localStorage']['getItem'](_0x2f5157);return _0x4d0635?window['parseInt'](_0x5a8d8c(_0x4d0635),0x10)*_0x5e2a29:null;}function _0x41145a(_0x5401c9){return new window['Promise']((_0xe00b01,_0x1619fa)=>{_0x5401c9['then'](_0xe00b01,_0x1619fa),window['setTimeout'](_0x1619fa,0x1d4c0);});}}_0x30392f['on']('_sendUsageRequest',(_0x5d227f,_0x1d8b8d)=>{if(_0x1d8b8d[0x0]!=_0x1819e1)return _0x54da38('UsageLimit');_0x1d8b8d[0x1]={..._0x1d8b8d[0x1],'requestId':_0x41b265};},{'priority':'high'}),_0x30392f['on']('_sendUsageRequest',_0x4a313b=>{_0x440ea8(_0x4a313b['return'])&&(_0x2e43a7=!0x0,_0x531f59(_0x4a313b['return']));},{'priority':'low'}),_0x2d0b7d['then'](()=>{_0x2e43a7||_0x54da38('UsageLimit');});});function _0x201c5d(){return'auto'==_0x30392f['editing']['view']['_overlayModeHint'];}function _0x2f4f84(){_0x30392f['editing']['view']['_overlayModeHint']='auto';}}function _0x1ddeee(_0x2d9b49){const _0x2b1302=[new window['Promise'](_0x535327=>setTimeout(_0x535327,0x93ecc)),_0x2d0b7d['then'](()=>new window['Promise'](_0x5dee09=>{let _0x961165=0x0;_0x30392f['model']['on']('applyOperation',(_0x23cdc5,_0x34154f)=>{_0x34154f[0x0]['isDocumentOperation']&&_0x961165++,0x5e8==_0x961165&&(_0x5dee09(),_0x23cdc5['off']());});}))];return window['Promise']['race'](_0x2b1302)['then'](()=>_0x2d9b49);}async function _0x54fcbe(){await _0x2d0b7d,_0x30392f['model']['change']=_0x1646db,_0x30392f['model']['enqueueChange']=_0x1646db,_0x30392f['enableReadOnlyMode']('model');}function _0x1d9c94(){return _0x594fab('WebSocketGateway')&&'connected'==_0x11d438('WebSocketGateway')['state'];}function _0x5678e9(){return _0x594fab('RevisionViewerIntegration');}function _0x546101(){return _0x594fab('TrackChangesDataGetter');}function _0x1c7e2f(_0x2bc24e){const _0x40b2bb=_0x54da6b();_0x30392f[_0x40b2bb]='trackChangesLicenseKey'+_0x2bc24e,'Valid'!=_0x2bc24e&&_0x54fcbe();}function _0x54da6b(){const _0x5cb127=window['String'](window['performance']['now']())['replace']('.','');let _0x121e87='R';for(let _0x341edf=0x0;_0x341edf<_0x5cb127['length'];_0x341edf+=0x2){let _0x5d6cd2=window['parseInt'](_0x5cb127['substring'](_0x341edf,_0x341edf+0x2));_0x5d6cd2>=0x3e&&(_0x5d6cd2-=0x3e),_0x121e87+=_0x1d89bf[_0x5d6cd2];}return _0x121e87;}function _0x5dc09b(){const _0x182c4b=_0x10221d['split']('.');if(0x3!=_0x182c4b['length'])return null;return _0x3f7d3f(_0x182c4b[0x1]);function _0x3f7d3f(_0x3e8cad){const _0x488f47=_0x26ae3c(_0x3e8cad);return _0x488f47&&_0x3a0571()?_0x488f47:null;function _0x3a0571(){const _0x1ca281=_0x488f47['jti'],_0x3d993f=window['parseInt'](_0x1ca281['substring'](_0x1ca281['length']-0x8),0x10),_0x1f8a59={..._0x488f47,'jti':_0x1ca281['substring'](0x0,_0x1ca281['length']-0x8)};return delete _0x1f8a59['vc'],_0x1461a8(_0x1f8a59)==_0x3d993f;}}}async function _0x1ea715(){let _0x800d99=!0x0;try{const [_0xc6491d,_0x4f6a20,_0xe5ebd8]=_0x10221d['split']('.');return _0x173d91(_0xc6491d),await _0x325b8c(_0xc6491d,_0x4f6a20,_0xe5ebd8),_0x800d99;}catch{return!0x1;}function _0x173d91(_0x3874db){const _0x25f069=_0x26ae3c(_0x3874db);_0x25f069&&'ES256'==_0x25f069['alg']||(_0x800d99=!0x1);}async function _0x325b8c(_0x17f1c5,_0x449058,_0x4b83e7){const _0x12d029=window['Uint8Array']['from'](_0x4e7680(_0x4b83e7),_0x371bf3=>_0x371bf3['charCodeAt'](0x0)),_0x1191de=new window['TextEncoder']()['encode'](_0x17f1c5+'.'+_0x449058),_0x307524=window['crypto']['subtle'];if(!_0x307524)return;const _0x16fb77=await _0x307524['importKey']('jwk',_0x10fb3f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x307524['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x16fb77,_0x12d029,_0x1191de)||(_0x800d99=!0x1);}}function _0x26ae3c(_0x2f46b0){return _0x2f46b0['startsWith']('ey')?JSON['parse'](_0x4e7680(_0x2f46b0)):null;}function _0x4e7680(_0x153ead){return window['atob'](_0x153ead['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1461a8(_0x226ade){let _0xb165c1=0x1505;function _0xe21ff7(_0x11450b){for(let _0x12afed=0x0;_0x12afed<_0x11450b['length'];_0x12afed++){const _0x1d01a0=_0x11450b['charCodeAt'](_0x12afed);_0xb165c1=(_0xb165c1<<0x5)+_0xb165c1+_0x1d01a0,_0xb165c1&=_0xb165c1;}}function _0x497329(_0x3dfd42){Array['isArray'](_0x3dfd42)?_0x3dfd42['forEach'](_0x497329):_0x3dfd42&&'object'==typeof _0x3dfd42?Object['entries'](_0x3dfd42)['sort']()['forEach'](([_0x3721c9,_0x3fad33])=>{_0xe21ff7(_0x3721c9),_0x497329(_0x3fad33);}):_0xe21ff7(window['String'](_0x3dfd42));}return _0x497329(_0x226ade),_0xb165c1>>>0x0;}function _0x2bef83(_0x5ecd7a){return _0x5ecd7a['toString'](0x10)['padStart'](0x8,'0');}function _0x5a8d8c(_0x10ca15){return _0x10ca15['split']('')['reverse']()['join']('');}function _0x594fab(_0x3f5f57){return _0x30392f['plugins']['has'](_0x3f5f57);}function _0x11d438(_0x1d32dc){return _0x30392f['plugins']['get'](_0x1d32dc);}function _0x1646db(){}_0x1c7e2f(await _0x3b37c9());}(this);}set adapter(_0x22b827){if(this['_adapter'])throw new _0x354614('track-changes-adapter-already-set',this);this['_adapter']=_0x22b827;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1c7135=!0x1,toJSON:_0x24b009=!0x1}={}){const _0x5136c9=[];for(const _0x23bb9f of this['_suggestions']['values']())_0x1c7135&&!_0x23bb9f['isInContent']||_0x5136c9['push'](_0x23bb9f);return _0x24b009?_0x5136c9['map'](_0x382b10=>_0x382b10['toJSON']()):_0x5136c9;}getSuggestion(_0x37ef8d){const _0x1a4b1a=this['_suggestions']['get'](_0x37ef8d);if(!_0x1a4b1a)throw new _0x354614('track-changes-suggestion-not-found',this);return _0x1a4b1a;}hasSuggestion(_0x1093d6){return this['_suggestions']['has'](_0x1093d6);}addSuggestionData(_0x98b8f5){const {authorId:_0x1fb9c2,id:_0x20a4cb,originalSuggestionId:_0xceabbc,attributes:_0x55b102}=_0x98b8f5,[_0x3773a5,_0x3de986]=_0x98b8f5['type']['split'](':'),_0x425419=this['_suggestions']['get'](_0x20a4cb)||this['_createSuggestion'](_0x3773a5,_0x3de986,_0x20a4cb,_0x1fb9c2,_0x55b102,_0xceabbc);if(this['_addThreadToSuggestion'](_0x425419),this['_checkSuggestionCorrectness'](_0x425419,_0x3773a5,_0x3de986||null,_0x1fb9c2),_0x425419['createdAt']=_0x98b8f5['createdAt'],_0x425419['_isDataLoaded']=!0x0,_0x55b102&&_0x55b102['@external']){const _0x4a5d59=_0x55b102['@external'],_0x2f00fe=this['_getExternalAuthor'](_0x4a5d59['authorName']);_0x425419['authoredAt']=_0x4a5d59['createdAt'],_0x425419['author']=_0x2f00fe;}else _0x425419['authoredAt']=_0x98b8f5['createdAt'];switch(_0x98b8f5['data']&&(_0x425419['data']=_0x98b8f5['data']),_0x98b8f5['attributes']&&(_0x425419['attributes']=_0x98b8f5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x425419['_saved']=!0x0),this['_suggestionState']['get'](_0x425419)){case'notReady':this['_suggestionState']['set'](_0x425419,'dataReady');break;case'markerReady':_0x425419['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x425419])),this['_refreshSuggestionsChain'](new Set([_0x425419])),this['_suggestionState']['set'](_0x425419,'ready'),this['fire']('suggestionLoaded',_0x425419)):this['_suggestionState']['set'](_0x425419,'removed');}return _0x425419;}acceptSuggestion(_0x4e46df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3ef010 of _0x4e46df['getAllAdjacentSuggestions']())_0x3ef010['accept']();});});}discardSuggestion(_0x208bb8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26f090 of _0x208bb8['getAllAdjacentSuggestions']())_0x26f090['discard']();});});}['enableCommand'](_0x5f88ef,_0x3be466){const _0x3f54f2=this['editor']['commands']['get'](_0x5f88ef);if(!_0x3f54f2)throw new _0x354614('track-changes-command-not-found',this,{'commandName':_0x5f88ef});if(this['_enabledCommands']['has'](_0x3f54f2))throw new _0x354614('track-changes-enable-command-twice',this,{'commandName':_0x5f88ef});this['_enabledCommands']['add'](_0x3f54f2),_0x3be466&&_0x3f54f2['on']('execute',(_0x5d0134,_0x2f5965)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2f5965['length']>0x0&&_0x2f5965[_0x2f5965['length']-0x1]&&_0x2f5965[_0x2f5965['length']-0x1]['forceDefaultExecution']?_0x2f5965['pop']():(_0x5d0134['return']=_0x3be466((..._0x3f6a36)=>_0x3f54f2['execute'](..._0x3f6a36,{'forceDefaultExecution':!0x0}),..._0x2f5965),_0x5d0134['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x211a1a){let _0x3b6902,_0x13ac9b;const _0xaef1c8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3b6902=_0x211a1a();}catch(_0x37b39f){_0x13ac9b=_0x37b39f;}return _0xaef1c8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x13ac9b&&_0x354614['rethrowUnexpectedError'](_0x13ac9b,this),_0x3b6902;}markInsertion(_0x53ed1d,_0x4bdff2=null,_0x2e4dfe={}){if(_0x53ed1d['isCollapsed'])return null;const _0x39432c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2e4dfe['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x289306,meta:_0xa230d2}of this['_findSuggestions'](_0x53ed1d,'insertion'))if(_0xa230d2['isOwn']){if(!_0xa230d2['isNextTo']){if(_0xa230d2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x289306,_0x2e4dfe))continue;return _0x289306;}if(pn(_0x289306,_0x2e4dfe))return _0x289306;this['_breakSuggestionMarker'](_0x289306,_0x53ed1d['start'],_0x53ed1d['end']);break;}if(_0x4bdff2==_0x289306['subType']&&pn(_0x289306,_0x2e4dfe)){const _0x5dbcdb=_0x289306['getFirstRange']();return _0x5dbcdb['start']['isEqual'](_0x53ed1d['end'])?this['_setSuggestionRange'](_0x289306,this['_model']['createRange'](_0x53ed1d['start'],_0x5dbcdb['end'])):this['_setSuggestionRange'](_0x289306,this['_model']['createRange'](_0x5dbcdb['start'],_0x53ed1d['end'])),_0x289306;}}const _0x2d669c=_0x2e6a13(),_0x26cdbf=_0x39432c['id'],_0x159cc1=_0x4bdff2?'insertion:'+_0x4bdff2:'insertion',_0x22bea9=this['_setSuggestionData']({'id':_0x2d669c,'type':_0x159cc1,'createdAt':new Date(),'authorId':_0x26cdbf,'attributes':_0x2e4dfe});return this['_addSuggestionMarker'](_0x159cc1,_0x2d669c,_0x26cdbf,_0x53ed1d),_0x22bea9;}markMultiRangeInsertion(_0x2f3e43,_0x3a8861='multi',_0x523827={}){const _0x8b33c2=this['editor']['plugins']['get']('Users')['me'],_0x3cdf38=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a8861,'join');this['_trackingSessionId']&&(_0x523827['trackingSessionId']=this['_trackingSessionId']);for(const _0x161d97 of this['getSuggestions']())if(_0x161d97['author']['id']==_0x8b33c2['id']&&'insertion'==_0x161d97['type']&&_0x161d97['subType']==_0x3a8861&&pn(_0x161d97,_0x523827)&&(_0x3cdf38(_0x161d97['getRanges'](),_0x2f3e43)||_0x3cdf38(_0x2f3e43,_0x161d97['getRanges']()))){for(const _0x481726 of _0x2f3e43)_0x161d97['addRange'](_0x481726);return _0x161d97;}for(const {suggestion:_0x3a2e99,meta:_0x3f25a4}of this['_findSuggestions'](_0x2f3e43,'insertion')){if(!_0x3f25a4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3f25a4['containsRangeInObject'])continue;if(!pn(_0x3a2e99,_0x523827))continue;let _0x35c204=!0x0;for(const _0x3c947a of _0x3a2e99['getRanges']())for(const _0x26d98f of _0x2f3e43)if(!_0x3c947a['containsRange'](_0x26d98f)){_0x35c204=!0x1;break;}if(_0x35c204)return _0x3a2e99;}const _0x4e7d63=_0x2e6a13(),_0xf25ba2=_0x8b33c2['id'],_0x2abe19='insertion:'+_0x3a8861,_0x573745=this['_setSuggestionData']({'id':_0x4e7d63,'type':_0x2abe19,'createdAt':new Date(),'authorId':_0xf25ba2,'attributes':_0x523827});for(const _0x5950b3 of _0x2f3e43)this['_addSuggestionMarker'](_0x2abe19,_0x4e7d63,_0xf25ba2,_0x5950b3,Mt['getMultiRangeId']());return _0x573745;}markInlineFormat(_0x267c24,_0x3e556d,_0x29fc3c=null,_0x19cbfb={}){if(_0x29fc3c=_0x29fc3c||dn(_0x3e556d),_0x267c24['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x19cbfb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x359bef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29fc3c,'accept');return this['forceDefaultExecution'](()=>_0x359bef([_0x267c24],_0x3e556d,_0x19cbfb)),null;}const _0xb89c6e=this['editor']['plugins']['get']('Users')['me'],_0x280cad=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4147ea,meta:_0x228147}of this['_findSuggestions'](_0x267c24,'insertion'))_0x228147['isOwn']&&!_0x228147['isInsideObject']&&_0x280cad['push'](..._0x4147ea['getRanges']());}const _0x231b5e=function(_0x4d48f6,_0x15cce8){const _0x22e607=[];for(const _0x36730f of _0x15cce8){const _0x2f2fb4=_0x4d48f6['getIntersection'](_0x36730f);_0x2f2fb4&&_0x22e607['push'](_0x2f2fb4);}return _0x22e607;}(_0x267c24,_0x280cad),_0x3dab9c=function(_0x51d00d,_0x4f0cf4){const _0x44e393=[_0x51d00d];for(const _0x550ab4 of _0x4f0cf4){let _0x3c2917=0x0;for(;_0x3c2917<_0x44e393['length'];){const _0x2e68c3=_0x44e393[_0x3c2917]['getDifference'](_0x550ab4);_0x44e393['splice'](_0x3c2917,0x1,..._0x2e68c3),_0x3c2917+=_0x2e68c3['length'];}}return _0x44e393;}(_0x267c24,_0x280cad);_0x231b5e['length']&&this['_model']['change'](()=>{for(const _0x2ebd34 of _0x231b5e){const _0x54fde4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29fc3c,'accept');this['forceDefaultExecution'](()=>_0x54fde4([_0x2ebd34],_0x3e556d,_0x19cbfb));}});for(const _0xb69423 of _0x3dab9c){let _0x2220c3=null,_0x2591d3=_0xb69423['start'],_0x8b02c4=_0xb69423['end'];for(const {suggestion:_0x413cd9,meta:_0x4988e7}of this['_findSuggestions'](_0xb69423,'formatInline')){if(!_0x4988e7['isOwn'])continue;if(_0x413cd9['subType']!=_0x29fc3c)continue;if(!pn(_0x413cd9,_0x19cbfb))continue;const _0x24b613=_0x413cd9['getFirstRange']();if(_0x24b613['containsRange'](_0xb69423,!0x0))return null;_0x2591d3=_0x2591d3['isBefore'](_0x24b613['start'])?_0x2591d3:_0x24b613['start'],_0x8b02c4=_0x8b02c4['isAfter'](_0x24b613['end'])?_0x8b02c4:_0x24b613['end'],_0x2220c3?_0x24b613['start']['isBefore'](_0x2220c3['getFirstRange']()['start'])?(_0x2220c3['removeMarkers'](),_0x2220c3=_0x413cd9):_0x413cd9['removeMarkers']():_0x2220c3=_0x413cd9;}const _0x50bf7b=this['_model']['createRange'](_0x2591d3,_0x8b02c4);if(_0x2220c3)this['_setSuggestionRange'](_0x2220c3,_0x50bf7b);else{const _0xe798e2=_0x2e6a13(),_0x423759=_0xb89c6e['id'];this['_setSuggestionData']({'id':_0xe798e2,'type':'formatInline:'+_0x29fc3c,'data':_0x3e556d,'createdAt':new Date(),'authorId':_0x423759,'attributes':_0x19cbfb}),this['_addSuggestionMarker']('formatInline:'+_0x29fc3c,_0xe798e2,_0x423759,_0x50bf7b);}}return null;}markBlockFormat(_0xb58d03,_0x19d491,_0x3f377c=[],_0x2c9706=null,_0x2002e9={}){_0x19d491['formatGroupId']||(_0x19d491['formatGroupId']=_0x19d491['commandName']),_0x19d491['multipleBlocks']=_0xb58d03['is']('range'),_0x2c9706=_0x2c9706||dn(_0x19d491);const _0x183e33=_0x3f377c['map'](_0x1fd5e3=>En(_0x1fd5e3,this['_model'])),_0x3a6f0a=_0xb58d03['is']('range')?_0xb58d03:En(_0xb58d03,this['_model']);if(this['_trackingSessionId']&&(_0x2002e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xeaa016=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c9706,'accept');return this['forceDefaultExecution'](()=>_0xeaa016([_0x3a6f0a],_0x19d491,_0x2002e9)),null;}_0x183e33['push'](_0x3a6f0a);let _0xc40173=!0x0;for(const _0x12f449 of _0x183e33)if(!this['_rangeIsInLocalUserInsertion'](_0x12f449)){_0xc40173=!0x1;break;}if(_0xc40173&&'always'!==this['_trackFormatChanges']){const _0x3f8777=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c9706,'accept');return this['forceDefaultExecution'](()=>_0x3f8777([_0x3a6f0a],_0x19d491,_0x2002e9)),null;}let _0x172bbf=null,_0xc2641d=_0x3a6f0a['start'],_0x38f6ac=_0x3a6f0a['end'];for(const {suggestion:_0x25373,meta:_0x375ef4}of this['_findSuggestions'](_0x3a6f0a,'formatBlock')){if(!_0x375ef4['isOwn'])continue;if(_0x375ef4['isNextTo']||_0x375ef4['containsRangeInObject']||_0x375ef4['isInsideObject'])continue;if(_0x25373['data']['formatGroupId']!=_0x19d491['formatGroupId'])continue;if(!pn(_0x25373,_0x2002e9))continue;const _0x1c1193=_0x25373['getFirstRange']();if(_0x25373['subType']==_0x2c9706){if(_0x1c1193['containsRange'](_0x3a6f0a,!0x0))return null;_0xc2641d=_0xc2641d['isBefore'](_0x1c1193['start'])?_0xc2641d:_0x1c1193['start'],_0x38f6ac=_0x38f6ac['isAfter'](_0x1c1193['end'])?_0x38f6ac:_0x1c1193['end'],_0x172bbf?_0x1c1193['start']['isBefore'](_0x172bbf['getFirstRange']()['start'])?(_0x172bbf['removeMarkers'](),_0x172bbf=_0x25373):_0x25373['removeMarkers']():_0x172bbf=_0x25373;}else{const _0x237388=_0x3a6f0a['getIntersection'](_0x1c1193);this['_cutOutSuggestionMarker'](_0x25373,_0x237388);}}const _0xb045ab=this['editor']['plugins']['get']('Users')['me'],_0x1b950e=_0x2e6a13(),_0x450754=_0xb045ab['id'];if(_0x172bbf)return this['_setSuggestionRange'](_0x172bbf,this['_model']['createRange'](_0xc2641d,_0x38f6ac)),_0x172bbf;{const _0x1592d9=this['_setSuggestionData']({'id':_0x1b950e,'type':'formatBlock:'+_0x2c9706,'data':_0x19d491,'createdAt':new Date(),'authorId':_0x450754,'attributes':_0x2002e9});return this['_addSuggestionMarker']('formatBlock:'+_0x2c9706,_0x1b950e,_0x450754,this['_model']['createRange'](_0xc2641d,_0x38f6ac)),_0x1592d9;}}markMultiRangeBlockFormat(_0xa840c6,_0x16b8c5,_0x3bf926=[],_0x582434=null,_0x5ef669={}){_0x16b8c5['formatGroupId']||(_0x16b8c5['formatGroupId']=_0x16b8c5['commandName']);const _0x5bdea8=_0xa840c6[0x0];_0x16b8c5['multipleBlocks']=_0x5bdea8['is']('range'),_0x582434=_0x582434||dn(_0x16b8c5);const _0x323a3e=_0x3bf926['map'](_0x1496bf=>En(_0x1496bf,this['_model'])),_0x4ec1d1=_0x5bdea8['is']('range')?_0xa840c6:_0xa840c6['map'](_0x574ce9=>En(_0x574ce9,this['_model']));if(this['_trackingSessionId']&&(_0x5ef669['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1451be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'accept');return this['forceDefaultExecution'](()=>_0x1451be(_0x4ec1d1,_0x16b8c5,_0x5ef669)),null;}_0x323a3e['push'](..._0x4ec1d1);let _0x49eb14=!0x0;for(const _0x26c00a of _0x323a3e)if(!this['_rangeIsInLocalUserInsertion'](_0x26c00a)){_0x49eb14=!0x1;break;}if(_0x49eb14&&'always'!==this['_trackFormatChanges']){const _0x318f12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'accept');return this['forceDefaultExecution'](()=>_0x318f12(_0x4ec1d1,_0x16b8c5,_0x5ef669)),null;}const _0x555283=this['editor']['plugins']['get']('Users')['me'];for(const _0x16bdaf of this['getSuggestions']()){const _0x50d16e=_0x16bdaf['data'];if(_0x16bdaf['author']['id']!=_0x555283['id'])continue;if('formatBlock'!=_0x16bdaf['type']||_0x50d16e['formatGroupId']!=_0x16b8c5['formatGroupId'])continue;if(!pn(_0x16bdaf,_0x5ef669))continue;const _0x17b44d=_0x16bdaf['subType']==_0x582434;for(let _0x3fa060=0x0;_0x3fa060<_0x4ec1d1['length'];_0x3fa060++){const _0x1d029d=_0x4ec1d1[_0x3fa060];for(const _0x1597c9 of _0x16bdaf['getMarkers']()){const _0x240a59=_0x1597c9['getRange']();if(_0x1d029d['isEqual'](_0x240a59)){_0x17b44d?(_0x4ec1d1['splice'](_0x3fa060,0x1),_0x3fa060--):_0x16bdaf['removeMarker'](_0x1597c9['name']);break;}}}}if(0x0==_0x4ec1d1['length'])return null;const _0x1327ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'join');for(const _0x505ed2 of this['getSuggestions']()){const _0x5de2e5=_0x505ed2['data'];if(_0x505ed2['author']['id']==_0x555283['id']&&('formatBlock'==_0x505ed2['type']&&_0x5de2e5['formatGroupId']==_0x16b8c5['formatGroupId']&&_0x505ed2['subType']==_0x582434&&pn(_0x505ed2,_0x5ef669)&&(_0x1327ec(_0x505ed2['getRanges'](),_0x4ec1d1)||_0x1327ec(_0x4ec1d1,_0x505ed2['getRanges']())))){for(const _0x14b65c of _0x4ec1d1)_0x505ed2['addRange'](_0x14b65c);return _0x505ed2;}}const _0x44daeb=_0x2e6a13(),_0x3a5747=_0x555283['id'],_0x1e91d5='formatBlock:'+_0x582434,_0x29b144=this['_setSuggestionData']({'id':_0x44daeb,'type':_0x1e91d5,'data':_0x16b8c5,'createdAt':new Date(),'authorId':_0x3a5747,'attributes':_0x5ef669});for(const _0x235afc of _0x4ec1d1)this['_addSuggestionMarker'](_0x1e91d5,_0x44daeb,_0x3a5747,_0x235afc,Mt['getMultiRangeId']());return _0x29b144;}markDeletion(_0x11de48,_0x3be4c1=null,_0x139da4={}){if(_0x11de48['isCollapsed'])return null;const _0x31d351=this['editor']['plugins']['get']('Users')['me'],_0x3c5fe6=new ot(_0x11de48['start'],_0x11de48['end']);this['_trackingSessionId']&&(_0x139da4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2dd3ce,meta:_0x54d1a4}of this['_findSuggestions'](_0x3c5fe6,'insertion'))if(_0x54d1a4['isOwn']&&!_0x54d1a4['isNextTo']){if(_0x2dd3ce['isMultiRange']){const _0x520932=_0x2dd3ce['getRanges']()['filter'](_0x32dfe1=>'$graveyard'!=_0x32dfe1['root']['rootName']);if(_0x520932['every'](_0x2628a9=>_0x3c5fe6['containsRange'](_0x2628a9,!0x0))&&_0x2dd3ce['discard'](),_0x520932['some'](_0x234af0=>_0x234af0['containsRange'](_0x3c5fe6,!0x0))){const _0x40a393=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be4c1,'accept');return this['forceDefaultExecution'](()=>_0x40a393([_0x3c5fe6],null,_0x139da4)),null;}}else{const _0x2790b8=_0x3c5fe6['getIntersection'](_0x2dd3ce['getFirstRange']());null!==_0x2790b8&&_0x2dd3ce['_onDiscard']([_0x2790b8],null,_0x139da4);}}if(_0x3c5fe6['detach'](),_0x3c5fe6['isCollapsed']||'$graveyard'==_0x3c5fe6['root']['rootName'])return null;let _0x5390af=null,_0x59387d=_0x3c5fe6['start'],_0x5095b5=_0x3c5fe6['end'];const _0x15c5de=this['_findSuggestions'](_0x3c5fe6,'deletion');for(const {suggestion:_0x494c79,meta:_0x4bdd3d}of _0x15c5de){const _0x3a5c1d=this['_model']['createRange'](_0x59387d,_0x5095b5);if(_0x4bdd3d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4bdd3d['containsRangeInObject']&&!_0x4bdd3d['isInsideObject'])){if(_0x494c79['isMultiRange']){if(!pn(_0x494c79,_0x139da4))continue;let _0x481656=!0x0;for(const _0x9a3c8c of _0x494c79['getRanges']()){if(_0x9a3c8c['containsRange'](_0x3a5c1d,!0x0))return _0x494c79;_0x3a5c1d['containsRange'](_0x9a3c8c)||(_0x481656=!0x1);}_0x481656&&_0x494c79['discard']();}else{const _0x476fe6=_0x494c79['getFirstRange']();if(_0x476fe6['containsRange'](_0x3a5c1d,!0x0))return _0x494c79;if(!pn(_0x494c79,_0x139da4)){_0x3a5c1d['containsRange'](_0x476fe6)?_0x494c79['removeMarkers']():_0x476fe6['containsPosition'](_0x59387d)?_0x59387d=_0x476fe6['end']:_0x476fe6['containsPosition'](_0x5095b5)&&(_0x5095b5=_0x476fe6['start']);continue;}_0x59387d=_0x59387d['isBefore'](_0x476fe6['start'])?_0x59387d:_0x476fe6['start'],_0x5095b5=_0x5095b5['isAfter'](_0x476fe6['end'])?_0x5095b5:_0x476fe6['end'],_0x139da4=Object['assign']({},_0x494c79['attributes']),_0x5390af?_0x476fe6['start']['isBefore'](_0x5390af['getFirstRange']()['start'])?(_0x5390af['removeMarkers'](),_0x5390af=_0x494c79):_0x494c79['removeMarkers']():_0x5390af=_0x494c79;}}}if(_0x5390af)return this['_setSuggestionRange'](_0x5390af,this['_model']['createRange'](_0x59387d,_0x5095b5)),_0x5390af;{const _0x39a56a=_0x2e6a13(),_0x3bc131=this['_model']['createRange'](_0x59387d,_0x5095b5),_0x477804=_0x31d351['id'],_0x4d32f8=_0x3be4c1?'deletion:'+_0x3be4c1:'deletion',_0x58677=this['_setSuggestionData']({'id':_0x39a56a,'type':_0x4d32f8,'createdAt':new Date(),'authorId':_0x477804,'attributes':_0x139da4});return this['_addSuggestionMarker'](_0x4d32f8,_0x39a56a,_0x477804,_0x3bc131),_0x58677;}}markMultiRangeDeletion(_0x2b499c,_0x2fd845='multi',_0xde69dd={}){const _0x36b1a8=this['editor']['plugins']['get']('Users')['me'],_0x1788a9=_0x2b499c['map'](_0x2a2ddb=>new ot(_0x2a2ddb['start'],_0x2a2ddb['end'])),_0xea661b=new Set();this['_trackingSessionId']&&(_0xde69dd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa622fe,meta:_0x5b9aa2}of this['_findSuggestions'](_0x1788a9,'insertion'))_0x5b9aa2['isOwn']&&!_0x5b9aa2['isNextTo']&&_0xea661b['add'](_0xa622fe);for(const _0x4e310f of _0xea661b)if(_0x4e310f['isMultiRange']){const _0x3ca3bc=_0x4e310f['getRanges']();if(_0x4e310f['attributes']&&_0x4e310f['attributes']['skipNestingCheck']||_0x3ca3bc['every'](_0x197351=>_0x1788a9['some'](_0x3b0701=>_0x3b0701['containsRange'](_0x197351,!0x0)))&&_0x4e310f['discard'](),_0x1788a9['every'](_0x18566a=>_0x3ca3bc['some'](_0x5546fd=>_0x5546fd['containsRange'](_0x18566a,!0x0)))){const _0x41aac5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'accept');return this['forceDefaultExecution'](()=>_0x41aac5(_0x2b499c,null,_0xde69dd)),null;}}else{const _0x1913e5=_0x4e310f['getFirstRange']();if(_0x1788a9['some'](_0x58590a=>_0x58590a['containsRange'](_0x1913e5,!0x0))&&_0x4e310f['discard'](),_0x1788a9['every'](_0x511d59=>_0x1913e5['containsRange'](_0x511d59,!0x0))){const _0x366824=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'accept');return this['forceDefaultExecution'](()=>_0x366824(_0x1788a9,null,_0xde69dd)),null;}}const _0x11349c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'join');let _0x1cf024=null;for(const _0x69a1a6 of this['getSuggestions']())if(_0x69a1a6['author']['id']==_0x36b1a8['id']&&_0x69a1a6['isInContent']&&'deletion'==_0x69a1a6['type']&&_0x69a1a6['subType']==_0x2fd845&&pn(_0x69a1a6,_0xde69dd)&&(_0x11349c(_0x69a1a6['getRanges'](),_0x1788a9)||_0x11349c(_0x1788a9,_0x69a1a6['getRanges']()))){if(_0x1cf024){if(_0x69a1a6['commentThread']&&_0x69a1a6['commentThread']['length'])continue;for(const _0x1f63fd of _0x69a1a6['getRanges']())_0x1cf024['isIntersectingWithRange'](_0x1f63fd)||_0x1cf024['addRange'](_0x1f63fd);_0x69a1a6['removeMarkers']();}else{_0x1cf024=_0x69a1a6;for(const _0x552eb0 of _0x1788a9)_0x69a1a6['isIntersectingWithRange'](_0x552eb0)||_0x69a1a6['addRange'](_0x552eb0);}}if(_0x1cf024)return _0x1cf024;_0xea661b['clear']();for(const {suggestion:_0x5a97e8,meta:_0x15ffbd}of this['_findSuggestions'](_0x1788a9,'deletion'))_0x15ffbd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15ffbd['containsRangeInObject']&&!_0x15ffbd['isInsideObject'])&&pn(_0x5a97e8,_0xde69dd)&&_0xea661b['add'](_0x5a97e8);for(const _0x452f89 of _0xea661b){const _0x5fd6e6=_0x452f89['getRanges']();if((!_0xde69dd||!_0xde69dd['skipNestingCheck'])&&_0x1788a9['every'](_0xdd8bbe=>_0x5fd6e6['some'](_0x47f628=>_0x47f628['containsRange'](_0xdd8bbe,!0x0))))return _0x452f89;_0x452f89['attributes']&&_0x452f89['attributes']['skipNestingCheck']||_0x5fd6e6['every'](_0x28cd56=>_0x1788a9['some'](_0x1771a3=>_0x1771a3['containsRange'](_0x28cd56,!0x0)))&&_0x452f89['discard']();}const _0x20ef1a=_0x2e6a13(),_0x5a4d2c=_0x36b1a8['id'],_0x4a3cbe='deletion:'+_0x2fd845,_0x53754e=this['_setSuggestionData']({'id':_0x20ef1a,'type':_0x4a3cbe,'createdAt':new Date(),'authorId':_0x5a4d2c,'attributes':_0xde69dd});for(const _0x454f8c of _0x1788a9)_0x454f8c['detach'](),_0x454f8c['isCollapsed']||'$graveyard'==_0x454f8c['root']['rootName']||this['_addSuggestionMarker'](_0x4a3cbe,_0x20ef1a,_0x5a4d2c,_0x454f8c,Mt['getMultiRangeId']());return _0x53754e;}markAttributeChange(_0x531385,_0x1ee037,_0x425739,_0x1d95c1,_0x147cce){if(_0x531385['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xdcfd48=this['editor']['plugins']['get']('Users')['me']['id'],_0x15511d=Array['from'](this['_suggestions']['values']())['filter'](_0x1abe5f=>'attribute'==_0x1abe5f['type']&&_0x1abe5f['data']['key']==_0x1ee037&&_0x1abe5f['isIntersectingWithRange'](_0x531385));if(this['_trackingSessionId']&&(_0x147cce['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x22858f=this['_findSuggestions'](_0x531385,'insertion')['filter'](({meta:_0x4d6487})=>_0x4d6487['isOwn']&&!_0x4d6487['isInsideObject']&&!_0x4d6487['isNextTo'])['map'](({suggestion:_0x51497c})=>_0x51497c);_0x15511d['unshift'](..._0x22858f);}const _0x54308d=new Map([[_0x531385,_0x425739]]);for(const _0x1db59a of _0x15511d){const _0x6c14a0='attribute'==_0x1db59a['type']?_0x1db59a['data']['oldValue']:void 0x0,_0x22764b=_0x1db59a['getFirstRange'](),_0x28d098=Array['from'](_0x54308d['keys']())['find'](_0x11b9c9=>_0x11b9c9['isIntersecting'](_0x22764b));if(!_0x28d098)continue;const _0x4bb5db=_0x28d098['getDifference'](_0x22764b);this['_suggestionsConversion']['isBlockAttribute'](_0x1ee037)&&'insertion'==_0x1db59a['type']&&0x0!=_0x4bb5db['length']||(_0x54308d['delete'](_0x28d098),_0x4bb5db['forEach'](_0x6b447c=>{_0x54308d['set'](_0x6b447c,_0x425739);}),'insertion'!=_0x1db59a['type']&&_0x6c14a0!=_0x1d95c1&&_0x54308d['set'](_0x28d098['getIntersection'](_0x22764b),_0x6c14a0));}const _0x5ae469=[];for(const [_0x7db8e2,_0x45d378]of _0x54308d){const _0x4531e5=_0x2e6a13(),_0x5aff85={'key':_0x1ee037,'oldValue':_0x45d378,'newValue':_0x1d95c1};_0x1ee037['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x1ee037});const _0x3d761b=('attribute:'+_0x1ee037+'|'+dn({'newValue':_0x1d95c1}))['substring'](0x0,0x3c),_0x116719=this['_setSuggestionData']({'id':_0x4531e5,'type':_0x3d761b,'data':_0x5aff85,'createdAt':new Date(),'authorId':_0xdcfd48,'attributes':_0x147cce});_0x5ae469['push'](_0x116719),this['_addSuggestionMarker'](_0x3d761b,_0x4531e5,_0xdcfd48,_0x7db8e2);}return _0x5ae469;}enableDefaultAttributesIntegration(_0x4fde67){this['enableCommand'](_0x4fde67,(_0x33eb2d,..._0x1a064e)=>{this['recordAttributeChanges'](()=>{_0x33eb2d(..._0x1a064e);});});}startTrackingSession(_0x1e9afa){return this['_trackingSessionId']=void 0x0!==_0x1e9afa?_0x1e9afa:_0x2e6a13(),this['_trackingSessionId'];}_getAttributeKey(_0x219536){return'attribute'==_0x219536['type']?In(_0x219536['subType']):null;}_applyOperationsAsSuggestions(_0x4da695){if(0x0==_0x4da695['length'])return;const _0x41cf2c=this['editor'],_0xf6ffe=_0x41cf2c['plugins']['get'](_0x2c9489),_0xa96bed=[],_0x5beb74=_0x39da45=>{const _0x122417=_0x39da45['_aiSource'];return _0x122417?{'@ai':{'type':_0x122417}}:{};},_0x5c9761=(_0x19f3b8,_0x423ef2,_0x1cfc4a)=>{for(let _0x37f18e=_0x423ef2;_0x37f18e<_0x19f3b8['operations']['length'];_0x37f18e++){const _0x52e9a2=_0x19f3b8['operations'][_0x37f18e];'marker'===_0x52e9a2['type']&&(_0x52e9a2['_aiSource']=_0x1cfc4a);}};_0x41cf2c['model']['change'](_0x5880f6=>{for(let _0x4d34bd=0x0;_0x4d34bd<_0x4da695['length'];_0x4d34bd++){const _0x4d324e=_0x4da695[_0x4d34bd],_0x535bd2=_0x4d324e['_aiSource'],_0x2100ea=_0x5880f6['batch']['operations']['length'];if(_0x4d324e['baseVersion']=_0x41cf2c['model']['document']['version'],_0x4d324e['isDocumentOperation']=!0x0,!_0x4a631e(_0x4d324e)){if(_0xf6ffe['isMarkedRemoveOperation'](_0x4d324e)){const _0x2da2d2=_0x425f5d(_0x4d324e['newRange'],_0x41cf2c['model']);_0xa96bed['unshift']({'range':ot['fromRange'](_0x2da2d2),'opAttributes':_0x5beb74(_0x4d324e),'aiSource':_0x535bd2});}else{switch(_0x4d324e['type']){case'rename':{const _0x2cbae5=_0x4d324e['oldName'],_0x152a50=_0x4d324e['newName'];if(_0x2cbae5==_0x152a50)break;_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x213ebf='$elementName',_0x32e4eb=_0x4d324e['position'],_0x4840d4=_0x41cf2c['model']['createRange'](_0x32e4eb,_0x41cf2c['model']['createPositionAt'](_0x32e4eb['nodeAfter'],'end'));this['markAttributeChange'](_0x4840d4,_0x213ebf,_0x2cbae5,_0x152a50,{..._0x5beb74(_0x4d324e),'groupId':_0x2e6a13()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x19b4aa=_0x4d324e['oldValue'],_0x3a061e=_0x4d324e['newValue'];if(_0x19b4aa==_0x3a061e)break;_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x4e0e9a=_0x4d324e['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4e0e9a))break;const _0x1302d5=_0x425f5d(_0x4d324e['range'],_0x41cf2c['model']);this['markAttributeChange'](_0x1302d5,_0x4e0e9a,_0x19b4aa,_0x3a061e,{..._0x5beb74(_0x4d324e),'groupId':_0x2e6a13()});break;}case'insert':{if(_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e),_0x4da695[_0x4d34bd+0x1]&&'move'==_0x4da695[_0x4d34bd+0x1]['type'])break;const _0x39a035=_0x4d324e['position'],_0x3b6232=_0x4d324e['howMany'],_0x1af7f7=_0x425f5d(_0x41cf2c['model']['createRange'](_0x39a035,_0x39a035['getShiftedBy'](_0x3b6232)),_0x41cf2c['model']);this['markInsertion'](_0x1af7f7,null,{..._0x5beb74(_0x4d324e)});break;}case'split':{_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x4fca3a=_0x4d324e['splitPosition'],_0x5bd5d2=_0x4d324e['moveTargetPosition'],_0x450871=_0x41cf2c['model']['createRange'](_0x4fca3a,_0x5bd5d2);this['markInsertion'](_0x450871,null,{..._0x5beb74(_0x4d324e)});break;}case'move':case'remove':_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);}_0x535bd2&&_0x5c9761(_0x5880f6['batch'],_0x2100ea,_0x535bd2);}}}for(const {range:_0x4727c1,opAttributes:_0x2b885a,aiSource:_0x1f5e6f}of _0xa96bed){const _0x199dc5=_0x5880f6['batch']['operations']['length'];_0x4727c1['detach'](),this['markDeletion'](_0x4727c1,null,{..._0x2b885a}),_0x1f5e6f&&_0x5c9761(_0x5880f6['batch'],_0x199dc5,_0x1f5e6f);}});}_setSuggestionRange(_0xe512eb,_0x1ae341){const _0x227d96=_0xe512eb['getFirstMarker']();this['_model']['change'](_0x4d755b=>{_0x4d755b['updateMarker'](_0x227d96,{'range':_0x1ae341});});}_addThreadToSuggestion(_0x4c8d5d){const _0x521642=_0x4c8d5d['id'],_0x3c8e04=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x521642)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3c8e04,'threadId':_0x521642,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e50d4=this['_commentsRepository']['getCommentThread'](_0x521642);_0x4e50d4['unbind']('isRemovable'),_0x4e50d4['isRemovable']=!0x1,_0x4c8d5d['commentThread']=_0x4e50d4;}_checkSuggestionCorrectness(_0x34f06e,_0xd69fe0,_0x318713,_0x5e8cec){if(_0x34f06e['type']!=_0xd69fe0||_0x34f06e['subType']!=_0x318713||_0x34f06e['creator']['id']!=_0x5e8cec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x354614('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x312fb1,_0x433299){const _0xb813f4=_0x312fb1['getFirstRange']();if(_0x433299['isEqual'](_0xb813f4))_0x312fb1['removeMarkers']();else{if(_0xb813f4['containsRange'](_0x433299)){const _0x5e4b3a=this['_model']['createPositionAt'](_0x433299['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xb813f4['start'],_0x5e4b3a));const _0x1a207a=_0x2e6a13(),_0x1cf18a=_0x312fb1['creator']['id'],_0x83a4c5=_0x312fb1['type']+':'+_0x312fb1['subType'];this['_setSuggestionData']({'id':_0x1a207a,'type':_0x83a4c5,'createdAt':new Date(),'authorId':_0x1cf18a,'data':_0x312fb1['data'],'attributes':_0x312fb1['attributes']});const _0x405250=this['_model']['createPositionAt'](_0x433299['end']['parent'],'after'),_0x3c4898=this['_model']['createRange'](_0x405250,_0xb813f4['end']);this['_addSuggestionMarker'](_0x83a4c5,_0x1a207a,_0x1cf18a,_0x3c4898);}else{if(_0xb813f4['containsPosition'](_0x433299['start'])){const _0x1d49e0=this['_model']['createPositionAt'](_0x433299['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xb813f4['start'],_0x1d49e0));}else{const _0xea3f36=this['_model']['createPositionAt'](_0x433299['end']['parent'],'after');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xea3f36,_0xb813f4['end']));}}}}_rangeIsInLocalUserInsertion(_0x3e2498){for(const {suggestion:_0x696e80,meta:_0xa81d60}of this['_findSuggestions'](_0x3e2498,'insertion')){if(!_0xa81d60['isOwn'])continue;const _0x3907f9=_0x696e80['getRanges']();for(const _0x134c36 of _0x3907f9)if(!_0x3e2498['getDifference'](_0x134c36)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x49ffe0){return this['editor']['plugins']['get']('Users')['getUser'](_0x49ffe0);}_getExternalAuthor(_0x46e322){const _0x144585=this['editor']['plugins']['get']('Users'),_0x511213=_0x1724db('external:'+_0x46e322),_0x5f0c91=_0x144585['getUser'](_0x511213);return _0x5f0c91||_0x144585['addUser']({'id':_0x511213,'name':_0x46e322});}_createSuggestion(_0x28731d,_0x67f366,_0x36ed79,_0x33ea0f,_0x49c004,_0x1d00c7){const _0x266dde=this['_getAuthorFromId'](_0x33ea0f);if(!_0x266dde)throw new _0x354614('track-changes-user-not-found',this,{'authorId':_0x33ea0f,'suggestionId':_0x36ed79});const _0x3f0e35=this['_suggestionFactory']['buildSuggestion'](_0x28731d,_0x67f366,_0x36ed79,_0x266dde,_0x49c004,_0xbd325=>{this['_updateSuggestionData'](_0x36ed79,{'attributes':_0xbd325});const _0x53609b=this['getSuggestion'](_0x36ed79);this['_joinWithAdjacentSuggestions'](new Set([_0x53609b])),this['_refreshSuggestionsChain'](new Set([_0x53609b]));},_0x1d00c7);return this['listenTo'](_0x3f0e35,'accept',()=>{this['_updateSuggestionData'](_0x36ed79,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3f0e35,'discard',()=>{this['_updateSuggestionData'](_0x36ed79,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x36ed79,_0x3f0e35),this['_suggestionState']['set'](_0x3f0e35,'notReady'),_0x3f0e35;}_breakSuggestionMarker(_0x518c0d,_0x4232cf,_0x658ad4){const _0x4a23ab=_0x518c0d['getFirstRange'](),_0x1738f2=_0x4a23ab['start'],_0xffbc67=_0x4a23ab['end'];this['_setSuggestionRange'](_0x518c0d,this['_model']['createRange'](_0x1738f2,_0x4232cf));const _0x589776=_0x2e6a13(),_0x13fee0=_0x518c0d['creator']['id'],_0x1849ac=_0x518c0d['type']+(_0x518c0d['subType']?':'+_0x518c0d['subType']:'');this['_setSuggestionData']({'id':_0x589776,'type':_0x1849ac,'createdAt':new Date(),'authorId':_0x13fee0,'originalSuggestionId':_0x518c0d['_originalSuggestionId']||_0x518c0d['id'],'attributes':_0x518c0d['attributes'],'data':_0x518c0d['data']});const _0x48aa65=this['_getAttributeKey'](_0x518c0d);('formatBlock'==_0x518c0d['type']||_0x48aa65&&this['_suggestionsConversion']['isBlockAttribute'](_0x48aa65))&&(_0x658ad4=this['_model']['createPositionBefore'](_0x658ad4['parent'])),this['_addSuggestionMarker'](_0x1849ac,_0x589776,_0x13fee0,this['_model']['createRange'](_0x658ad4,_0xffbc67));}_findSuggestions(_0x44b7b,_0x1f777b=null){const _0x48b908=[],_0x5edf99=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44b7b)||(_0x44b7b=[_0x44b7b]);for(const _0x406e33 of this['getSuggestions']()){if(!_0x406e33['isInContent'])continue;if(_0x1f777b&&_0x406e33['type']!=_0x1f777b)continue;let _0x371b95=!0x1;for(const _0xf713a1 of _0x406e33['getRanges']()){for(const _0x45d3b3 of _0x44b7b){const _0x2bb69a=_0x45d3b3['start']['isEqual'](_0xf713a1['end'])||_0x45d3b3['end']['isEqual'](_0xf713a1['start']);if(_0x2bb69a||_0x45d3b3['getIntersection'](_0xf713a1)){const _0x76d7a2=_0x45d3b3['containsRange'](_0xf713a1)&&cn(this['_model']['schema'],_0xf713a1['start'],_0x45d3b3),_0x27fbcb=_0xf713a1['containsRange'](_0x45d3b3)&&cn(this['_model']['schema'],_0x45d3b3['start'],_0xf713a1);_0x48b908['push']({'suggestion':_0x406e33,'meta':{'isOwn':_0x5edf99==_0x406e33['author'],'isNextTo':_0x2bb69a,'isInsideObject':_0x76d7a2,'containsRangeInObject':_0x27fbcb}}),_0x371b95=!0x0;break;}}if(_0x371b95)break;}}return _0x48b908;}_addSuggestionMarker(_0x11b10d,_0xbda245,_0x2679bb,_0x33d81b,_0x4dfe53){this['_model']['change'](_0x15bc5f=>{let _0x2de677='suggestion:'+_0x11b10d+':'+_0xbda245+':'+_0x2679bb;_0x4dfe53&&(_0x2de677=_0x2de677+':'+_0x4dfe53),_0x15bc5f['addMarker'](_0x2de677,{'range':_0x33d81b,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x3e66c0){const _0x1f9e0f=_0x3e66c0['previous'],_0x4d61f1=_0x3e66c0['next'];_0x3e66c0['previous']=null,_0x3e66c0['next']=null,null!=_0x1f9e0f&&_0x1f9e0f['next']==_0x3e66c0&&(_0x1f9e0f['next']=_0x4d61f1),null!=_0x4d61f1&&_0x4d61f1['previous']==_0x3e66c0&&(_0x4d61f1['previous']=_0x1f9e0f),'ready'==this['_suggestionState']['get'](_0x3e66c0)&&(this['_suggestionState']['set'](_0x3e66c0,'removed'),this['fire']('suggestionUnloaded',_0x3e66c0,_0x1f9e0f,_0x4d61f1));}_setSuggestionData(_0x1ecdb1){const _0x26a48e=_0x1ecdb1['id'],_0x150f8e=this['addSuggestionData'](_0x1ecdb1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50e3c3=this['editor']['plugins']['get']('PendingActions'),_0x12bfb4=_0x150f8e['hasComments'],_0x2e80b4=_0x150f8e['subType']?_0x150f8e['type']+':'+_0x150f8e['subType']:_0x150f8e['type'],_0xc3de94=this['editor']['locale'],_0x185ebf=_0x50e3c3['add'](Ot(_0xc3de94,'PENDING_ACTION_SUGGESTION')),_0x2824cb={'id':_0x26a48e,'type':_0x2e80b4,'hasComments':_0x12bfb4,'data':_0x1ecdb1['data']||null,'originalSuggestionId':_0x1ecdb1['originalSuggestionId']||null,'attributes':_0x150f8e['attributes']};this['_adapter']['addSuggestion'](_0x2824cb)['then'](_0x4383d6=>{_0x150f8e['_saved']=!0x0,_0x50e3c3['remove'](_0x185ebf),_0x4383d6&&_0x4383d6['createdAt']&&(this['_suggestions']['get'](_0x26a48e)['createdAt']=_0x4383d6['createdAt']);})['catch'](_0x9ab1bf=>{throw _0x18c9eb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x150f8e['discard']();}),_0x150f8e['stopListening'](),this['_suggestions']['delete'](_0x150f8e['id']),this['_suggestionState']['delete'](_0x150f8e),_0x9ab1bf;});}return _0x150f8e;}_updateSuggestionData(_0x46953a,_0x3822bb){const _0x4d66f3=this['editor']['plugins']['get']('PendingActions'),_0x292be4=this['getSuggestion'](_0x46953a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x292be4['_saved']){const _0x1b9810=_0x4d66f3['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46953a,_0x3822bb)['then'](()=>{_0x4d66f3['remove'](_0x1b9810);});}else _0x292be4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46953a,_0x3822bb);});}}_getSuggestionData(_0x2b9f84){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x354614('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2b9f84);}_handleNewSuggestionMarker(_0x355846){const {id:_0x3fd41f,type:_0x423033,subType:_0x2ad507,authorId:_0x342e7e}=et(_0x355846),_0x29bfad=this['_suggestions']['get'](_0x3fd41f)||this['_createSuggestion'](_0x423033,_0x2ad507,_0x3fd41f,_0x342e7e,{});switch(this['_checkSuggestionCorrectness'](_0x29bfad,_0x423033,_0x2ad507,_0x342e7e),this['_suggestionState']['get'](_0x29bfad)){case'notReady':this['_getSuggestionData'](_0x3fd41f)['then'](_0x309a5d=>{let _0x42acf9=Promise['resolve']();_0x309a5d['hasComments']&&(_0x42acf9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fd41f})),_0x42acf9['then'](()=>{this['addSuggestionData'](_0x309a5d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29bfad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fd41f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29bfad,'ready'),this['fire']('suggestionLoaded',_0x29bfad);break;case'ready':this['fire']('suggestionChanged',_0x29bfad);}return _0x29bfad['addMarkerName'](_0x355846),_0x29bfad;}_refreshSuggestionsChain(_0x456f6d){const _0x4db2c0=Array['from'](_0x456f6d),_0x1709d6=_0x4db2c0['filter'](_0x32823e=>'attribute'==_0x32823e['type']);this['_refreshAttributeSuggestionsChain'](_0x1709d6);const _0x1fc263=_0x4db2c0['filter'](_0x1a5ce3=>!_0x1a5ce3['isMultiRange']&&'attribute'!=_0x1a5ce3['type']),_0x12d3ed=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17d911=>!_0x17d911['isMultiRange']&&'attribute'!=_0x17d911['type']),_0x2a8438=_0x12d3ed['filter'](_0x4bfc77=>!_0x456f6d['has'](_0x4bfc77)),_0xb7b2e2=new Map(_0x12d3ed['map'](_0x449be2=>[_0x449be2,this['_suggestionFactory']['getSuggestionCallback'](_0x449be2['type'],_0x449be2['subType'],'chain')])),_0x4f786d=new Map(_0x12d3ed['map'](_0xa42a09=>[_0xa42a09,_0xa42a09['getFirstRange']()])),_0x58ebba=new Set(),_0x4bf110=new Set();for(let _0x5e4488=0x0;_0x5e4488<_0x1fc263['length'];_0x5e4488++)_0x2dffcf(_0x1fc263[_0x5e4488],_0x1fc263,_0x5e4488+0x1);for(let _0x52b0e4=0x0;_0x52b0e4<_0x1fc263['length'];_0x52b0e4++)_0x2dffcf(_0x1fc263[_0x52b0e4],_0x2a8438,0x0);const _0x44018e=new Set();for(let _0x3afdb5=0x0;_0x3afdb5<_0x1fc263['length'];_0x3afdb5++){const _0x56b7d8=_0x1fc263[_0x3afdb5];!_0x4bf110['has'](_0x56b7d8)&&_0x56b7d8['previous']&&(_0x44018e['add'](_0x56b7d8['previous']),_0x56b7d8['previous']['next']===_0x56b7d8&&(_0x56b7d8['previous']['next']=null),_0x56b7d8['previous']=null),!_0x58ebba['has'](_0x56b7d8)&&_0x56b7d8['next']&&(_0x44018e['add'](_0x56b7d8['next']),_0x56b7d8['next']['previous']===_0x56b7d8&&(_0x56b7d8['next']['previous']=null),_0x56b7d8['next']=null);}function _0x2dffcf(_0x25fa2d,_0x24a76c,_0x2371b3){for(let _0x4aba2c=_0x2371b3;_0x4aba2c<_0x24a76c['length'];_0x4aba2c++){const _0x4eda19=_0x1592db(_0x25fa2d,_0x24a76c[_0x4aba2c]);_0x4eda19&&(_0x4eda19[0x0]['next']=_0x4eda19[0x1],_0x4eda19[0x1]['previous']=_0x4eda19[0x0],_0x58ebba['add'](_0x4eda19[0x0]),_0x4bf110['add'](_0x4eda19[0x1]));}}function _0x1592db(_0x49fc5d,_0x285fa1){if(_0x49fc5d['author']['id']!==_0x285fa1['author']['id'])return null;const _0x5d8496=_0xb7b2e2['get'](_0x49fc5d)(_0x49fc5d,_0x285fa1,_0x4f786d['get'](_0x49fc5d),_0x4f786d['get'](_0x285fa1));return _0x5d8496&&_0xb7b2e2['get'](_0x285fa1)(_0x49fc5d,_0x285fa1,_0x4f786d['get'](_0x49fc5d),_0x4f786d['get'](_0x285fa1))?_0x5d8496[0x1]['commentThread']&&_0x5d8496[0x1]['commentThread']['length']?null:_0x5d8496:null;}_0x44018e['size']&&this['_refreshSuggestionsChain'](_0x44018e);}_refreshAttributeSuggestionsChain(_0x401ab8){if(0x0==_0x401ab8['length'])return;const _0xde55d8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22d887=>'attribute'==_0x22d887['type']&&_0x22d887['_isDataLoaded']),_0x43d1e0=[],_0x466406=new Map();for(const _0x5671c1 of _0xde55d8){const _0x2648ba=_0x1724db(_0x5671c1['attributes']);_0x466406['has'](_0x2648ba)||(_0x466406['set'](_0x2648ba,_0x43d1e0['length']),_0x43d1e0['push']([])),_0x43d1e0[_0x466406['get'](_0x2648ba)]['push'](_0x5671c1);}!(function(){_0x43d1e0['sort']((_0x4bab76,_0x587c2f)=>{const _0x99b9d4=_0x4bab76[0x0]['createdAt'],_0x1caa6d=_0x587c2f[0x0]['createdAt'];return _0x99b9d4==_0x1caa6d?_0x4bab76[0x0]['attributes']['groupId']<_0x587c2f[0x0]['attributes']['groupId']?-0x1:0x1:_0x99b9d4<_0x1caa6d?-0x1:0x1;});for(const _0x3464ba of _0x43d1e0)_0x3464ba['sort']((_0xf48a48,_0x29c128)=>_0xf48a48['id']<_0x29c128['id']?-0x1:0x1);}());for(let _0x29a311=0x0;_0x29a311<_0x43d1e0['length'];_0x29a311++){if(0x0==_0x43d1e0[_0x29a311]['length'])continue;const _0x27bfa1=[];for(let _0x437e80=_0x29a311+0x1;_0x437e80<_0x43d1e0['length'];_0x437e80++)0x0!=_0x43d1e0[_0x437e80]['length']&&_0x46c041(_0x43d1e0[_0x29a311],_0x43d1e0[_0x437e80])&&_0x27bfa1['push'](_0x437e80);for(const _0x414a6f of _0x27bfa1)_0x43d1e0[_0x29a311]=_0x43d1e0[_0x29a311]['concat'](_0x43d1e0[_0x414a6f]),_0x43d1e0[_0x414a6f]=[];}for(const _0x11bbec of _0x43d1e0)for(let _0x50528a=0x0;_0x50528a<_0x11bbec['length'];_0x50528a++){const _0xdec08f=_0x11bbec[_0x50528a+0x1]||null;_0x11bbec[_0x50528a]['next']!==_0xdec08f&&(_0x11bbec[_0x50528a]['next']=_0xdec08f);}for(const _0x3720e8 of _0x43d1e0)for(let _0xb0458c=0x0;_0xb0458c<_0x3720e8['length'];_0xb0458c++){const _0x24e380=_0x3720e8[_0xb0458c-0x1]||null;_0x3720e8[_0xb0458c]['previous']!==_0x24e380&&(_0x3720e8[_0xb0458c]['previous']=_0x24e380);}function _0x46c041(_0x107667,_0x5730a0){return(_0x107667[0x0]['attributes']['groupId']===_0x5730a0[0x0]['attributes']['groupId']||_0x107667[0x0]['author']===_0x5730a0[0x0]['author'])&&(!!function(_0x497a16,_0x588171){return!_0x497a16['hasComments']&&!_0x588171['hasComments']||(!_0x497a16['hasComments']||!_0x588171['hasComments'])&&(!!(_0x497a16['hasComments']&&_0x588171['createdAt']<_0x497a16['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x588171['hasComments']&&_0x497a16['createdAt']<_0x588171['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x107667[0x0],_0x5730a0[0x0])&&(!!lt(ut(_0x107667[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x5730a0[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x107667[0x0]['attributes']['groupId']==_0x5730a0[0x0]['attributes']['groupId']||_0x107667[0x0]['attributes']['trackingSessionId']===_0x5730a0[0x0]['attributes']['trackingSessionId']&&(!!_0x107667['every'](_0x1e171e=>_0x5730a0['some'](_0xfeed06=>_0x1e171e['getFirstRange']()['isEqual'](_0xfeed06['getFirstRange']())))&&_0x5730a0['every'](_0x19e98b=>_0x107667['some'](_0x380071=>_0x19e98b['getFirstRange']()['isEqual'](_0x380071['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x5d1333){const _0x139b01=Array['from'](_0x5d1333),_0x3c8d1a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x36be56=_0x3c8d1a['filter'](_0xa340d9=>!_0x5d1333['has'](_0xa340d9)),_0x522bff=new Map(_0x139b01['map'](_0x2910f2=>[_0x2910f2,this['_suggestionFactory']['getSuggestionCallback'](_0x2910f2['type'],_0x2910f2['subType'],'join')])),_0x33484d=new Map(_0x3c8d1a['map'](_0x135ad0=>[_0x135ad0,_0x135ad0['getRanges']()]));for(let _0x2dbc77=0x0;_0x2dbc77<_0x139b01['length'];_0x2dbc77++)if(_0x2cece8(this,_0x139b01[_0x2dbc77],_0x139b01,_0x2dbc77+0x1))return!0x0;for(let _0x5485e6=0x0;_0x5485e6<_0x139b01['length'];_0x5485e6++)if(_0x2cece8(this,_0x139b01[_0x5485e6],_0x36be56,0x0))return!0x0;return!0x1;function _0x2cece8(_0x4d5940,_0x3e52be,_0x2c17e5,_0x3c47ad){for(let _0x1cc0a5=_0x3c47ad;_0x1cc0a5<_0x2c17e5['length'];_0x1cc0a5++){const _0x56fa36=_0x2c17e5[_0x1cc0a5];if(_0x56fa36['type']!==_0x3e52be['type']||_0x56fa36['author']['id']!==_0x3e52be['author']['id']||_0x56fa36['subType']!==_0x3e52be['subType'])continue;if(!_n(_0x3e52be,_0x56fa36))continue;if('attribute'==_0x3e52be['type']&&_0x3e52be['data']['oldValue']!=_0x56fa36['data']['oldValue'])continue;if('attribute'==_0x3e52be['type']&&_0x4d5940['_suggestionsConversion']['isBlockAttribute'](_0x3e52be['data']['key']))continue;if('formatBlock'==_0x3e52be['type']){const _0x46f259=_0x4d5940['editor']['model'],_0x58e995=_0x3e52be['getContainedElement']();if(_0x58e995&&(_0x46f259['schema']['isObject'](_0x58e995)||_0x46f259['schema']['isLimit'](_0x58e995)))continue;}const _0x564d7d=_0x522bff['get'](_0x3e52be),_0x365752=_0x33484d['get'](_0x3e52be),_0x182323=_0x33484d['get'](_0x56fa36),_0x50918b=_0x3e52be['commentThread']&&_0x3e52be['commentThread']['length'],_0x1bd99e=_0x56fa36['commentThread']&&_0x56fa36['commentThread']['length'];if(!_0x50918b&&_0x564d7d(_0x182323,_0x365752))return _0x4d5940['_joinSuggestions'](_0x56fa36,_0x3e52be),_0x33484d['delete'](_0x3e52be),!0x0;if(!_0x1bd99e&&_0x564d7d(_0x365752,_0x182323))return _0x4d5940['_joinSuggestions'](_0x3e52be,_0x56fa36),_0x33484d['delete'](_0x56fa36),!0x0;}return!0x1;}}_joinSuggestions(_0x36a91b,_0x28bc07){if(_0x36a91b['isMultiRange']){for(const _0x155092 of _0x28bc07['getRanges']())_0x36a91b['addRange'](_0x155092);}else{const _0x2da125=_0x28bc07['getFirstRange']()['end'];this['_setSuggestionRange'](_0x36a91b,this['_model']['createRange'](_0x36a91b['getFirstRange']()['start'],_0x2da125));}_0x28bc07['removeMarkers']();}_getMarkerAnnouncementText(_0x2856be,_0x10c32a,_0x54399c){const _0x1d230f=_0x2856be['startsWith']('format')||_0x2856be['startsWith']('attribute')?'FORMATTING':_0x2856be['toUpperCase']();return Ot(this['editor']['locale'],_0x10c32a+'_'+_0x1d230f+'_SUGGESTION_ANNOUNCEMENT',_0x54399c);}_initAriaMarkerChangeAnnouncements(){const _0x568b03=this['editor'];if(!_0x568b03['ui'])return;const {ariaLiveAnnouncer:_0x2dc772}=_0x568b03['ui'];nt(this['_model'],({left:_0x30530a,entered:_0x1341af})=>{for(const _0x321053 of _0x30530a){const {group:_0x2f1337,type:_0x4da563}=et(_0x321053['name']);if('suggestion'===_0x2f1337){_0x2dc772['announce'](this['_getMarkerAnnouncementText'](_0x4da563,'LEAVE'));break;}}for(const _0x5887fd of _0x1341af){const {group:_0x5521f8,type:_0x4db227}=et(_0x5887fd['name']);if('suggestion'===_0x5521f8){_0x2dc772['announce'](this['_getMarkerAnnouncementText'](_0x4db227,'ENTER',_0x4d423e(_0x341358)));break;}}});}_processAttributeChanges(_0x1ef470){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3c297b=this['editor'],_0x42e74=_0x3c297b['model']['document']['differ']['getChanges']();if(0x0==_0x42e74['length'])return!0x1;const _0x29976b=[],_0x1e9335=_0x42e74['filter'](_0x53ba0e=>'attribute'==_0x53ba0e['type']),_0x1129cb=_0x42e74['filter'](_0x541173=>'insert'==_0x541173['type']&&'$text'!=_0x541173['name']),_0x4b4637=_0x42e74['filter'](_0x12fd51=>'remove'==_0x12fd51['type']&&'$text'!=_0x12fd51['name']);for(const _0x192268 of _0x1e9335)_0x29976b['push']({'key':_0x192268['attributeKey'],'newValue':_0x192268['attributeNewValue'],'oldValue':_0x192268['attributeOldValue'],'range':mn(_0x192268['range'],_0x3c297b['model'])});for(const _0x2a5caf of _0x1129cb){const _0x68692b=_0x4b4637['find'](_0x4f8254=>_0x4f8254['position']['isEqual'](_0x2a5caf['position']));_0x68692b&&_0x29976b['push']({'key':rn,'newValue':_0x2a5caf['name'],'oldValue':_0x68692b['name'],'range':_0x3c297b['model']['createRangeOn'](_0x2a5caf['position']['nodeAfter'])});}return 0x0!=_0x29976b['length']&&this['_reduceExistingSuggestions'](_0x1ef470,_0x29976b);}_processAttributeSuggestions(_0x56577d){let _0x936fdd=!0x1;const _0x54c5ec=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b816c=>_0x5b816c['data']['newRange']&&_0x5b816c['name']['startsWith']('suggestion:attribute:'));for(const _0x14e9aa of _0x54c5ec){const {subType:_0x2ca158,id:_0x17c9fa}=et(_0x14e9aa['name']),_0x363750=_0x2ca158['split']('|')[0x0];for(const _0x4c3b4f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4c3b4f['id']!=_0x17c9fa&&'attribute'==_0x4c3b4f['type']&&_0x4c3b4f['data']&&_0x4c3b4f['data']['key']==_0x363750&&_0x4c3b4f['getFirstRange']()['isIntersecting'](_0x14e9aa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4c3b4f,_0x14e9aa['data']['newRange'],_0x56577d),_0x936fdd=!0x0);}return _0x936fdd;}recordAttributeChanges(_0xd8e529){this['_recordAttributeSuggestions']=!0x0,_0xd8e529();}_reduceExistingSuggestions(_0x2611a0,_0xb4dbcc){if(0x0==_0xb4dbcc['length'])return!0x1;let _0x12a4dc=!0x1;for(const _0x18292c of _0xb4dbcc){const _0x8b9581=this['_findSuggestions'](_0x18292c['range'],'attribute')['filter'](_0x233dbf=>!_0x233dbf['meta']['isNextTo'])['map'](_0x34fbc6=>_0x34fbc6['suggestion']),_0x18154b=_0x1724db({'newValue':_0x18292c['newValue']});_0x8b9581['filter'](_0x3dd671=>{const [_0x1f198a,_0x38ba3c]=_0x3dd671['subType']['split']('|');return _0x1f198a==_0x18292c['key']&&_0x38ba3c!=_0x18154b;})['forEach'](_0xfab23f=>{this['_reduceSuggestionAttributeRange'](_0xfab23f,_0x18292c['range'],_0x2611a0),_0x12a4dc=!0x0;});}return _0x12a4dc;}_reduceSuggestionAttributeRange(_0x33f851,_0x430507,_0xd2e41a){const _0x4ca6dd=_0x33f851['getFirstRange']()['getDifference'](_0x430507);0x0!==_0x4ca6dd['length']?0x1!==_0x4ca6dd['length']?this['_breakSuggestionMarker'](_0x33f851,_0x430507['start'],_0x430507['end']):this['_setSuggestionRange'](_0x33f851,_0x4ca6dd[0x0]):_0xd2e41a['removeMarker'](_0x33f851['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x27789d){this['_editor']=_0x27789d,this['_model']=_0x27789d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x8a1c68,_0x179339,_0x575bc9,_0x3b7301,_0x72b31b,_0x14b494,_0x2aa7ff){return new Mt(this['_model'],{'type':_0x8a1c68,'subType':_0x179339,'id':_0x575bc9,'originalSuggestionId':_0x2aa7ff,'author':_0x3b7301,'creator':_0x3b7301,'attributes':_0x72b31b,'onAttributesChange':_0x14b494,'onAccept':(..._0x454390)=>this['getSuggestionCallback'](_0x8a1c68,_0x179339,'accept')(..._0x454390),'onDiscard':(..._0x26cc83)=>this['getSuggestionCallback'](_0x8a1c68,_0x179339,'discard')(..._0x26cc83)});}registerCustomCallback(_0x10f1ea,_0x36c818,_0x46063c,_0x200ae2){const _0x317664=_0x10f1ea+':'+_0x36c818+':'+_0x46063c;this['_customCallbacks']['set'](_0x317664,_0x200ae2);}getSuggestionCallback(_0x24ccec,_0x59a581,_0x5c322e){const _0x3a18ab=_0x24ccec+':'+_0x59a581+':'+_0x5c322e;return this['_customCallbacks']['get'](_0x3a18ab)||this['_defaultCallbacks']['get'](_0x24ccec+':'+_0x5c322e);}_registerDefaultCallbacks(){const _0x38995e=()=>!0x1,_0x2b1891=_0x5e05a5=>{_0x5e05a5['sort']((_0x787cb7,_0x4b4abd)=>_0x787cb7['start']['isBefore'](_0x4b4abd['start'])?0x1:-0x1),this['_model']['change'](_0x443a35=>{for(const _0x2f9d45 of _0x5e05a5){let _0x1d1f70;_0x1d1f70=_0x2f9d45['end']['isAtEnd']&&_0x2f9d45['end']['parent']==_0x2f9d45['start']['nodeAfter']?_0x443a35['createSelection'](_0x2f9d45['start']['nodeAfter'],'on'):_0x443a35['createSelection'](_0x2f9d45),this['_model']['deleteContent'](_0x1d1f70,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5c758c=(_0x32820e,_0x183918)=>{_0x183918&&this['_model']['change'](_0x56cfe2=>{const {commandName:_0x7b9363,commandParams:_0x19b9b4=[]}=_0x183918,_0x551cdf=_0x32820e['map'](_0x8bdca0=>(ln(_0x8bdca0)&&(_0x8bdca0=this['_model']['createRange'](_0x8bdca0['end'])),_0x8bdca0))['filter'](_0xcf19e0=>'$graveyard'!==_0xcf19e0['root']['rootName']);if(_0x551cdf['length']<0x1)return;const _0x4a27d4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x8da29b=>ot['fromRange'](_0x8da29b));_0x56cfe2['setSelection'](_0x551cdf);for(const _0x50261d of this['_editor']['commands']['commands']())_0x50261d['refresh']();_0x19b9b4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7b9363,..._0x19b9b4);const _0x5427ca=_0x4a27d4['filter'](_0x5bc709=>'$graveyard'!=_0x5bc709['root']['rootName']);_0x5427ca['length']>0x0&&_0x56cfe2['setSelection'](_0x5427ca);for(const _0x4a23cf of _0x4a27d4)_0x4a23cf['detach']();});},_0x594953=(_0x50ce32,_0x1b1c37)=>0x1==_0x50ce32['length']&&0x1==_0x1b1c37['length']&&_0x50ce32[0x0]['end']['isEqual'](_0x1b1c37[0x0]['start']),_0x25e03d=(_0x2094db,_0x6afaa6,_0x1a4786,_0x58f591)=>Tn(_0x2094db,_0x6afaa6,_0x1a4786,_0x58f591)?[_0x2094db,_0x6afaa6]:Tn(_0x6afaa6,_0x2094db,_0x58f591,_0x1a4786)?[_0x6afaa6,_0x2094db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38995e),this['_defaultCallbacks']['set']('insertion:discard',_0x2b1891),this['_defaultCallbacks']['set']('insertion:join',_0x594953),this['_defaultCallbacks']['set']('insertion:chain',_0x25e03d),this['_defaultCallbacks']['set']('deletion:accept',_0x2b1891),this['_defaultCallbacks']['set']('deletion:discard',_0x38995e),this['_defaultCallbacks']['set']('deletion:join',_0x594953),this['_defaultCallbacks']['set']('deletion:chain',_0x25e03d),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c758c),this['_defaultCallbacks']['set']('formatInline:discard',_0x38995e),this['_defaultCallbacks']['set']('formatInline:join',_0x594953),this['_defaultCallbacks']['set']('formatInline:chain',_0x38995e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c758c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38995e),this['_defaultCallbacks']['set']('formatBlock:join',_0x594953),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38995e),this['_defaultCallbacks']['set']('attribute:accept',_0x38995e),this['_defaultCallbacks']['set']('attribute:discard',(_0xe99485,_0x34b114)=>{if(!_0x34b114)return;const _0x5b4c9e=this['_editor']['plugins']['get'](_0x358b09);this['_model']['change'](_0x2def74=>{if('$elementName'==_0x34b114['key'])for(const _0xd1f1c5 of _0xe99485){const _0x21304b=_0xd1f1c5['start']['nodeAfter'],_0x8a7598=_0x34b114['oldValue'];_0x2def74['rename'](_0x21304b,_0x8a7598);}else{if(_0x5b4c9e['isBlockAttribute'](_0x34b114['key'])){for(const _0x19f662 of _0xe99485)void 0x0!==_0x34b114['oldValue']?_0x2def74['setAttribute'](_0x34b114['key'],_0x34b114['oldValue'],_0x19f662['start']['nodeAfter']):_0x2def74['removeAttribute'](_0x34b114['key'],_0x19f662['start']['nodeAfter']);}else{for(const _0x169caf of _0xe99485)_0x34b114['oldValue']?_0x2def74['setAttribute'](_0x34b114['key'],_0x34b114['oldValue'],_0x169caf):_0x2def74['removeAttribute'](_0x34b114['key'],_0x169caf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x594953);}};function cn(_0x4aba1f,_0xd93787,_0x1613e8){for(const _0x3e15a3 of _0xd93787['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3e15a3['root']==_0x3e15a3)return!0x1;if(!_0x1613e8['containsItem'](_0x3e15a3))return!0x1;if(_0x4aba1f['isObject'](_0x3e15a3)||_0x4aba1f['isLimit'](_0x3e15a3))return!0x0;}return!0x1;}function ln(_0x523d68){return _0x523d68['end']['parent']==_0x523d68['start']['nodeAfter']&&_0x523d68['end']['isAtStart'];}function un(_0xd5816a,_0x55fe0e,_0x127c21,_0x16592f){const _0x400ec0=_0x2140c0=>!_0x2140c0['item']['is']('$textProxy')&&!_0x16592f['isObject'](_0x2140c0['item']),_0x18a938=_0xd5816a['start']['getLastMatchingPosition'](_0x400ec0),_0x5b39bd=_0xd5816a['end']['getLastMatchingPosition'](_0x400ec0,{'direction':'backward'});return(!_0xd5816a['start']['isEqual'](_0x18a938)||!_0xd5816a['end']['isEqual'](_0x5b39bd))&&(_0x18a938['isBefore'](_0x5b39bd)?_0x127c21['updateMarker'](_0x55fe0e,{'range':_0x127c21['createRange'](_0x18a938,_0x5b39bd)}):_0x127c21['removeMarker'](_0x55fe0e),!0x0);}function dn(_0x42fea3){return _0x1724db(_0x42fea3);}function hn(_0x30a869){const _0x178d08=_0x30a869['start']['nodeAfter'];return _0x178d08&&_0x178d08['is']('element');}function gn(_0x31baf3){return ln(_0x31baf3)||function(_0x4337b1){return _0x4337b1['start']['parent']==_0x4337b1['end']['nodeBefore']&&_0x4337b1['start']['isAtEnd'];}(_0x31baf3);}function fn(_0x5aebb0,_0x4a527d){try{const _0xc11d85=_0x5aebb0['getRange']();for(const _0x34064c of _0x4a527d)if(_0x5aebb0!==_0x34064c&&_0xc11d85&&_0xc11d85['isIntersecting'](_0x34064c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x1f4f62,_0x2147bd){return null==_0x1f4f62['end']['nodeBefore']&&_0x1f4f62['end']['parent']==_0x1f4f62['start']['nodeAfter']?En(_0x1f4f62['start']['nodeAfter'],_0x2147bd):_0x1f4f62;}function En(_0x74e184,_0x2cffcd){const _0x17799c=_0x2cffcd['schema']['isObject'](_0x74e184)||_0x2cffcd['schema']['isSelectable'](_0x74e184);return _0x2cffcd['createRange'](_0x2cffcd['createPositionAt'](_0x74e184,'before'),_0x17799c?_0x2cffcd['createPositionAfter'](_0x74e184):_0x2cffcd['createPositionAt'](_0x74e184,'end'));}function Tn(_0x411c4e,_0x1ff6c0,_0x214102,_0x1c64d0){return!!_n(_0x411c4e,_0x1ff6c0)&&_0x214102['end']['isEqual'](_0x1c64d0['start']);}function _n(_0x2f7b00,_0x5fb4e9){if(!_0x2f7b00['_isDataLoaded']||!_0x5fb4e9['_isDataLoaded'])return!0x1;const _0x48b833=new Set(Object['keys'](_0x2f7b00['attributes'])),_0x561636=new Set(Object['keys'](_0x5fb4e9['attributes']));if(_0x48b833['delete']('groupId'),_0x561636['delete']('groupId'),0x0==_0x48b833['size']&&0x0==_0x561636['size'])return!0x0;if(_0x48b833['size']!=_0x561636['size'])return!0x1;const _0x1438e8={..._0x2f7b00['attributes']},_0x3b197c={..._0x5fb4e9['attributes']};return delete _0x1438e8['groupId'],delete _0x3b197c['groupId'],JSON['stringify'](_0x1438e8)==JSON['stringify'](_0x3b197c);}function pn(_0x4834c5,_0x59ca8e){const _0x2713b1=Ln(_0x4834c5['attributes']),_0x429aec=Ln(_0x59ca8e);if(!_0x4834c5['_isDataLoaded'])return!0x1;if(!lt(_0x2713b1['@ai'],_0x429aec['@ai']))return!0x1;for(const _0x4cbb44 of Object['keys'](_0x429aec))if(!lt(_0x2713b1[_0x4cbb44],_0x429aec[_0x4cbb44]))return!0x1;return!0x0;}function Ln(_0x1c6671){const _0x4a38b3=Object['assign']({},_0x1c6671);return delete _0x4a38b3['skipNestingCheck'],delete _0x4a38b3['tablePasteChainId'],_0x4a38b3;}function In(_0x4a9eae){return _0x4a9eae['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
- _0x1377a3();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0xb725df,_0x3db51f,_0x59c731,_0x41a7e6){super(),this['model']=_0x3db51f,this['view']=_0x59c731,this['commentThreadController']=_0x41a7e6,this['_editor']=_0xb725df,this['_acceptCommand']=_0xb725df['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xb725df['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x312c1d,_0x43df50)=>_0x312c1d||_0x43df50),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32df82=>_0x32df82&&this['_editor']['model']['canEditAt'](_0x3db51f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x6e018c=>_0x6e018c&&this['_editor']['model']['canEditAt'](_0x3db51f['getRanges']())),this['_pendingAction']=null,_0x59c731['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59c731,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59c731,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59c731,'change:isDirty',()=>{_0x59c731['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}acceptSuggestion(){this['_acceptCommand']['execute'](this['model']['id']);}discardSuggestion(){this['_discardCommand']['execute'](this['model']['id']);}destroy(){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}_setPendingAction(){const _0x24013a=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x24013a);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x50f806{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3e1a0b,_0x47c2e8,_0x21f3b7,_0x4ba7a2){super(_0x3e1a0b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30c9b4(_0x3e1a0b,Ot(_0x3e1a0b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x47c2e8['authoredAt']),this['bind']('authoredAt')['to'](_0x47c2e8),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x47c2e8,'authoredAt',this,'descriptionParts',(_0xfd980b,_0x3d5012,_0x29c1ee)=>{const _0x54ccba=_0x29c1ee['map'](_0x42b1cf=>It(_0x42b1cf['content']))['join']('.\x20')+'.',_0x5c5f58=_0x47c2e8['aiSource']&&'author'===_0x4ba7a2['showAISource']?_0x4ba7a2['aiAuthor']['name']:_0x47c2e8['author']['name'],_0x381493=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xfd980b-0x1,_0x5c5f58,_0x3d5012?_0x4ba7a2['formatDateTime'](_0x3d5012):'',new DOMParser()['parseFromString'](_0x54ccba,'text/html')['body']['textContent']]);return _0x47c2e8['aiSource']&&'pill'===_0x4ba7a2['showAISource']?_0x381493+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x381493;}),this['focusables']=new _0x32a053(),this['focusTracker']=new _0x591c9e(),this['keystrokes']=new _0x5b7cb6(),this['focusCycler']=new _0x7ae866({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bde38=>_0x2bde38['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x47c2e8,this['_localUser']=_0x21f3b7,this['_config']=_0x4ba7a2,_0x4ba7a2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x538629}=this['_config'];this['commentsListView']=new _0x538629(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x660403=>_0x660403+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21cad6,_0x12c0bf)=>_0x21cad6||!!_0x12c0bf);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4e08ed}=this['_config'],_0x22f288=new _0x4e08ed(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x49d00a=_0x22f288['commentInputView'];return _0x22f288['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x49d00a,'value',(_0x24317e,_0x26ece7,_0x1afe55)=>!!_0x1afe55||_0x24317e&&!_0x26ece7),_0x49d00a['on']('submit',(_0x48b616,_0x4f53c9)=>{this['fire']('addComment',_0x4f53c9),_0x49d00a['editor']['setData']('');}),_0x49d00a['on']('cancel',()=>this['focus']()),_0x49d00a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22f288;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x216ac1,_0x254b7f,_0x53edc6,_0x11070b){super(_0x216ac1,_0x254b7f,_0x53edc6,_0x11070b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x434f11=>_0x434f11&&_0x434f11[0x0]?_0x434f11[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x528732,_0x19ac49)=>{let _0x8929c7='';for(const _0x3380da of _0x528732)_0x8929c7+='<p>'+It(_0x3380da['content'],_0x3380da['color'])+'</p>';return _0x19ac49?_0x8929c7:it(_0x8929c7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x11070b['SuggestionView'](_0x216ac1,_0x254b7f,{'formatDateTime':_0x11070b['formatDateTime'],'showAISource':_0x11070b['showAISource'],'aiAuthor':_0x11070b['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x582f5a=this['bindTemplate'],_0x302fa8=[this['suggestionView']];return this['commentsListView']&&_0x302fa8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x302fa8['push'](this['commentThreadInputView']),_0x302fa8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x582f5a['if']('isActive','ck-suggestion-wrapper--active'),_0x582f5a['to']('type',_0x2ed5a2=>'ck-suggestion-'+_0x2ed5a2),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x582f5a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x302fa8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0x50f806{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x493035,_0x494700,_0xc1e1ba){super(_0x493035),this['_model']=_0x494700,this['_config']=_0xc1e1ba,this['set']('description',''),this['bind']('authoredAt')['to'](_0x494700),this['acceptButton']=this['_createButton'](Ot(_0x493035,'Accept\x20suggestion'),_0xf15df7,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x493035,'Discard\x20suggestion'),_0x15d8dd,'ck-suggestion--discard','discardSuggestion','sw');const _0x7390fb=!!_0x494700['aiSource']&&'author'===_0xc1e1ba['showAISource'],_0x34ef7d=_0x7390fb?this['_createAIUser'](_0xc1e1ba['aiAuthor']):_0x494700['author'],_0x490442=_0x7390fb&&!_0xc1e1ba['aiAuthor']['avatar']?_0x1e2770:void 0x0;this['userView']=new _0x19bc2d(_0x493035,_0x34ef7d,this['getUserViewNotificationText'](),_0x490442),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x32a053([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x591c9e(),this['keystrokes']=new _0x5b7cb6(),this['focusCycler']=new _0x7ae866({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4acb=>_0x4acb['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x29e4ef=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x29e4ef['innerHTML']=this['description'],this['on']('change:description',(_0x164261,_0x2bc9d8,_0x5e0e8d)=>{_0x29e4ef['innerHTML']=_0x5e0e8d;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3ca96a=this['bindTemplate'],_0x16561a=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3ca96a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ca96a['to']('authoredAt',_0x5b4df2=>this['_config']['formatDateTime'](_0x5b4df2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x16561a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x548b86=new _0x23bf39(this['locale']);_0x548b86['set']({'icon':_0x1fc493,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x16561a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x548b86]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x16561a}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x14d83a){return new _0x44bfc7({'id':'ck-ai-author','name':_0x14d83a['name'],'avatar':_0x14d83a['avatar'],'color':new _0x3b64d0(0x0)});}_createButton(_0x3a2735,_0x52a969,_0x3add2a,_0x35418d,_0x18cca2){const _0x34898d=new _0x50d24e(this['locale']);return _0x34898d['set']({'label':_0x3a2735,'icon':_0x52a969,'tooltip':!0x0,'tooltipPosition':_0x18cca2}),_0x34898d['extendTemplate']({'attributes':{'class':_0x3add2a}}),_0x34898d['on']('execute',()=>{this['fire'](_0x35418d,this['_model']['id']);}),_0x34898d;}_setupKeyboardNavigation(){const _0x4f6532=this['element'];this['keystrokes']['listenTo'](_0x4f6532);for(const _0x4292d1 of this['focusables'])this['focusTracker']['add'](_0x4292d1['element']),this['keystrokes']['listenTo'](_0x4292d1['element']);this['keystrokes']['set']('enter',(_0x959bb0,_0x4c7857)=>{_0x4f6532===_0x959bb0['target']&&(this['focusCycler']['focusFirst'](),_0x4c7857());}),this['keystrokes']['set']('esc',(_0x164216,_0x2b90ba)=>{_0x4f6532!==_0x164216['target']&&(this['focus'](),_0x2b90ba());});}},yn=class extends _0x9bd549{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0xfe45c9,_0x203ad7,_0x59e02d,_0x38d953];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x590a3c){super(_0x590a3c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f8f63=this['editor']['config'];_0x3f8f63['define']('trackChanges.SuggestionThreadView',kn),_0x3f8f63['define']('trackChanges.SuggestionView',Rn),_0x3f8f63['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f8f63['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x50464d,_0x32e128){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48d234,_0x5064f4]of this['_handleControllerBuffer']){const _0x277cbf=this['_suggestionToController']['has'](_0x48d234);_0x277cbf||_0x5064f4?_0x277cbf&&_0x5064f4&&this['_destroyController'](_0x48d234):this['_initializeController'](_0x48d234);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x38d953)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x50464d,_0x32e128);}init(){const _0x3758aa=this['editor'],_0x53d523=_0x3758aa['plugins']['get'](on),_0xe31ad3=_0x3758aa['plugins']['get'](_0x59e02d),_0x4f4686=_0x3758aa['plugins']['get'](_0x38d953),_0x28fd97=_0x3758aa['plugins']['get'](_0x203ad7);this['_addUIComponentsToFactory'](),_0x4f4686['addSourceCollector'](()=>{const _0x299bb6=[];for(const [_0x3641d4,_0x3429c8]of Array['from'](this['_suggestionToController'])){const _0x5ab363=_0x3641d4['getAllAdjacentSuggestions'](),_0x1a0c16=[];for(const _0x32b6a3 of _0x5ab363){if(!_0x32b6a3['isInContent'])continue;if(_0x32b6a3['isMultiRange']){_0x1a0c16['push'](..._0x32b6a3['getRanges']());continue;}const _0x2e7c2c=_0x32b6a3['getFirstRange']();if(_0x1a0c16['length']>0x0){const _0x426518=_0x1a0c16[0x0]['getJoined'](_0x2e7c2c);if(_0x426518){_0x1a0c16[0x0]=_0x426518;continue;}}_0x1a0c16['push'](_0x2e7c2c);}_0x299bb6['push']([_0x3429c8['view'],_0x1a0c16]);}return _0x299bb6;}),this['listenTo'](_0x53d523,'suggestionLoaded',(_0x1f919d,_0x540296)=>{this['listenTo'](_0x540296,'change:previous',(_0x3e12e0,_0x10765e,_0x38c8cd,_0x152197)=>{_0x540296['isInContent']&&(null==_0x38c8cd?(this['_updateController'](_0x152197['head']),this['_handleSuggestionControllerDelayed'](_0x540296,!0x1)):(this['_updateController'](_0x38c8cd['head']),null==_0x152197&&this['_handleSuggestionControllerDelayed'](_0x540296,!0x0)));}),null!==_0x540296['previous']?this['_updateController'](_0x540296['head']):this['_handleSuggestionControllerDelayed'](_0x540296,!0x1);}),this['listenTo'](_0x53d523,'suggestionUnloaded',(_0x445366,_0x29931f,_0x291238)=>{this['stopListening'](_0x29931f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29931f),this['_suggestionToController']['has'](_0x29931f)&&this['_destroyController'](_0x29931f),_0x291238&&this['_updateController'](_0x291238['head']);}),this['listenTo'](_0x53d523,'suggestionChanged',(_0xd9acfa,_0x47d79c)=>{this['_updateController'](_0x47d79c);}),this['listenTo'](_0xe31ad3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x28fd97,'addComment',(_0x365965,{threadId:_0xaf9363,isFromAdapter:_0x528132})=>{if(_0x528132||!_0x53d523['hasSuggestion'](_0xaf9363))return;const _0x109fad=_0x53d523['getSuggestion'](_0xaf9363);this['_suggestionToController']['get'](_0x109fad)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1af41c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x82fc1e;for(const _0x33b034 in _0x1af41c){const _0x396c16=_0x33b034,_0x49e71e=_0x1af41c[_0x396c16];if('trackChangesLicenseKeyValid'==_0x49e71e||'trackChangesLicenseKeyInvalid'==_0x49e71e||'trackChangesLicenseKeyExpired'==_0x49e71e||'trackChangesLicenseKeyDomainLimit'==_0x49e71e||'trackChangesLicenseKeyNotAllowed'==_0x49e71e||'trackChangesLicenseKeyEvaluationLimit'==_0x49e71e||'trackChangesLicenseKeyUsageLimit'==_0x49e71e){delete _0x1af41c[_0x396c16],_0x82fc1e=_0x49e71e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x82fc1e&&_0x1af41c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x82fc1e&&_0x1af41c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x82fc1e&&_0x1af41c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x1b28cf){const _0x351192=this['_suggestionToController']['get'](_0x1b28cf);return _0x351192&&this['editor']['plugins']['get'](_0x59e02d)['getByInnerView'](_0x351192['view'])||null;}getSuggestionForAnnotation(_0x2317dd){const _0x3c7ec4=this['_viewToController']['get'](_0x2317dd['innerView']);return _0x3c7ec4?_0x3c7ec4['model']:null;}_refreshActiveMarkers(){const _0x476d4c=this['editor']['plugins']['get'](_0x59e02d),_0x423938=this['editor']['plugins']['get'](on),_0x365e8d=Array['from'](_0x476d4c['activeAnnotations'],_0x924ac=>_0x924ac['innerView'])['filter'](_0x3fe8a5=>this['_viewToController']['has'](_0x3fe8a5)),_0xdcd290=[];for(const _0x51ad13 of _0x365e8d){const _0x127576=this['_viewToController']['get'](_0x51ad13)['model']['getAllAdjacentSuggestions']();_0xdcd290['push'](..._0x127576['reduce']((_0x85e974,_0x1c937c)=>[..._0x85e974,..._0x1c937c['getMarkerNames']()],[]));}_0x423938['activeMarkers']=_0xdcd290;}_addUIComponentsToFactory(){const _0x3eabef=this['editor'],_0x354724=_0x3eabef['locale'],_0x6b0a3d=Ot(_0x354724,'Track\x20changes'),_0x8a6b1c=new _0x312921([{'type':'switchbutton','model':new _0x53a520({'withText':!0x0,'isToggleable':!0x0,'label':_0x6b0a3d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3eabef['plugins']['has']('TrackChangesPreview')&&_0x8a6b1c['addMany']([{'type':'separator'},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x337926 of _0x8a6b1c)if(Nn(_0x337926)){const _0x25ff74=_0x3eabef['commands']['get'](_0x337926['model']['commandName']);_0x337926['model']['bind']('isOn','isEnabled')['to'](_0x25ff74,'value','isEnabled');}_0x3eabef['ui']['componentFactory']['add']('trackChanges',_0x5ecbe9=>this['_createToolbarButton'](_0x5ecbe9,_0x8a6b1c,_0x6b0a3d)),_0x3eabef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e91d6=>this['_createMenuBarMenu'](_0x1e91d6,_0x8a6b1c,_0x6b0a3d));}_createToolbarButton(_0x4ed820,_0x41a075,_0x3bd831){const _0x5cd39b=_0x2112c8(_0x4ed820,_0x2ed566),_0x7a1175=this['editor']['commands']['get']('trackChanges');_0x5cd39b['buttonView']['set']({'tooltip':_0x3bd831,'label':_0x3bd831,'icon':_0x5c9b3e}),_0x5cd39b['buttonView']['bind']('isOn')['to'](_0x7a1175,'value'),_0x5cd39b['buttonView']['on']('execute',()=>{_0x7a1175['execute'](),this['editor']['editing']['view']['focus']();}),_0x4a8502(_0x5cd39b,_0x41a075,{'role':'menu'});const _0x2a1ddf=[];for(const _0x3d7494 of _0x41a075)Nn(_0x3d7494)&&_0x2a1ddf['push'](this['editor']['commands']['get'](_0x3d7494['model']['commandName']));const _0x253318=_0x5cd39b['buttonView'];return _0x253318['actionView']['unbind']('isEnabled'),_0x253318['arrowView']['unbind']('isEnabled'),_0x253318['actionView']['bind']('isEnabled')['to'](_0x7a1175,'isEnabled'),_0x253318['arrowView']['bind']('isEnabled')['toMany'](_0x2a1ddf,'isEnabled',(..._0x569793)=>_0x569793['some'](_0x2a2ae8=>_0x2a2ae8)),_0x5cd39b['on']('execute',_0x7b48a5=>{this['editor']['execute'](_0x7b48a5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5cd39b;}_createMenuBarMenu(_0x32dbe3,_0x204678,_0x4c9b91){const _0x2d56e9=new _0x34c878(_0x32dbe3),_0x2024f2=this['editor']['commands']['get']('trackChanges');_0x2d56e9['buttonView']['set']({'label':_0x4c9b91,'icon':_0x5c9b3e});const _0x24d0c0=new _0x5d0013(_0x32dbe3);for(const _0x25cf1c of _0x204678){if('separator'==_0x25cf1c['type']){_0x24d0c0['items']['add'](new _0x188ba7(_0x32dbe3));continue;}const _0x1f2494=new _0xdc420d(_0x32dbe3,_0x2d56e9),_0x2bba29=new _0x452ca1(_0x32dbe3),_0xe6ecd0=_0x25cf1c['model'];_0x2bba29['bind'](...Object['keys'](_0xe6ecd0))['to'](_0xe6ecd0),_0x2bba29['delegate']('execute')['to'](_0x2d56e9),_0x2bba29['on']('execute',()=>{this['editor']['execute'](_0xe6ecd0['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f2494['children']['add'](_0x2bba29),_0x24d0c0['items']['add'](_0x1f2494);}return _0x2d56e9['bind']('isEnabled')['to'](_0x2024f2,'isEnabled'),_0x2d56e9['panelView']['children']['add'](_0x24d0c0),_0x2d56e9;}_initializeController(_0x2d47d5){const _0x135c86=this['editor'],_0x5c04ce=_0x135c86['config'],_0xa3d5ba=_0x135c86['plugins']['get'](_0x59e02d),_0x402a34=_0x135c86['plugins']['get'](_0x203ad7),_0x27c14e=_0x135c86['plugins']['get'](_0x38d953),_0x2eb6ee=_0x135c86['plugins']['get'](_0xfe45c9)['me'],_0x87a382=_0x5c04ce['get']('trackChanges')['SuggestionThreadView'],_0x710eb8=_0x5c04ce['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2833ac,CommentThreadInputView:_0x4cb231}=_0x135c86['plugins']['get']('CommentsUI');let _0x31c7fa,_0x58ab04,_0x28e12f;this['_annotationViews']['has'](_0x2d47d5['id'])?(_0x58ab04=this['_annotationViews']['get'](_0x2d47d5['id']),_0x31c7fa=_0x58ab04['mainView']):(_0x31c7fa=new _0x87a382(_0x135c86['locale'],_0x2d47d5,_0x2eb6ee,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5c04ce['get']('comments.editorConfig'),'licenseKey':_0x5c04ce['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5c04ce['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5c04ce['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5c04ce['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49bb80(_0x5c04ce['get']('locale'),_0x135c86['locale']),'CommentView':_0x5c04ce['get']('comments')['CommentView'],'CommentsListView':_0x2833ac,'CommentThreadInputView':_0x4cb231,'SuggestionView':_0x710eb8,'showAISource':_0x5c04ce['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5c04ce['get']('trackChanges.aiAuthor'),'name':_0x5c04ce['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x135c86['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x31c7fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x135c86['editing']['view']['focus']();}),_0x31c7fa['suggestionView']['discardButton']['on']('execute',()=>{_0x135c86['editing']['view']['focus']();}),_0x58ab04=_0xa3d5ba['createAnnotationView'](this['editor']['locale'],_0x31c7fa),_0x58ab04['bind']('isDirty')['to'](_0x31c7fa,'isDirty'),_0x58ab04['bind']('length')['to'](_0x31c7fa),_0x58ab04['bind']('type')['to'](_0x31c7fa,'type',_0x2de8fa=>'suggestion-'+_0x2de8fa),_0x31c7fa['on']('escape',()=>{_0x28e12f['fire']('escape');}),this['_annotationViews']['set'](_0x2d47d5['id'],_0x58ab04));const _0x1266b4=_0x402a34['createCommentThreadController'](_0x2d47d5['commentThread'],_0x31c7fa),_0x30ff20=new bn(_0x135c86,_0x2d47d5,_0x31c7fa,_0x1266b4),_0x577e3c=_0x2d47d5['getAllAdjacentSuggestions']()['filter'](_0x336749=>_0x336749['isInContent']);_0x31c7fa['descriptionParts']=_0x135c86['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x577e3c),this['_suggestionToController']['set'](_0x2d47d5,_0x30ff20),this['_viewToController']['set'](_0x31c7fa,_0x30ff20);const _0x2c9d23=()=>{const _0x431971=[],_0x3a9fb1=_0x2d47d5['getAllAdjacentSuggestions']()['filter'](_0x302d57=>_0x302d57['isInContent']);for(const _0x1915dd of _0x3a9fb1)_0x431971['push'](..._0x1915dd['getMarkers']());return _0x136b64(_0x135c86['editing'],_0x431971);};_0x28e12f=_0xa3d5ba['createAnnotation']({'view':_0x58ab04,'target':_0x2c9d23,'type':()=>'suggestion-'+_0x30ff20['view']['type'],'isVisible':!!_0x2c9d23()}),_0x402a34['_bindAnnotationToEditors'](_0x31c7fa,_0x28e12f),_0xa3d5ba['add'](_0x28e12f),_0x27c14e['registerAnnotation'](_0x28e12f);}_destroyController(_0x54a4b8){const _0x188f84=this['editor']['plugins']['get'](_0x203ad7),_0x1dc793=this['editor']['plugins']['get'](_0x59e02d),_0x313384=this['_suggestionToController']['get'](_0x54a4b8),_0x338c55=_0x313384['view'],_0x2ce5fd=_0x1dc793['getByInnerView'](_0x338c55);_0x188f84['_unbindEditors'](_0x338c55),_0x2ce5fd&&_0x1dc793['remove'](_0x2ce5fd),this['_suggestionToController']['delete'](_0x54a4b8),this['_viewToController']['delete'](_0x338c55),_0x313384['destroy']();}_updateController(_0x12d872){if(!_0x12d872['isInContent']||!this['_suggestionToController']['has'](_0x12d872))return;const _0x2d98fb=this['editor']['plugins']['get'](on),_0x49ee79=this['_suggestionToController']['get'](_0x12d872),_0x2d8023=_0x12d872['getAllAdjacentSuggestions']();_0x49ee79['view']['descriptionParts']=_0x2d98fb['descriptionFactory']['getDescriptions'](_0x2d8023);}destroy(){for(const _0x3499b7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3499b7);for(const _0x339372 of this['_annotationViews']['values']())_0x339372['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x15ea22){return'model'in _0x15ea22;}var Sn=class extends _0x9bd549{static get requires(){return[on,yn,_0x435a16];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3dd871){this['editor']['plugins']['get'](on)['adapter']=_0x3dd871;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x57e5a8){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x57e5a8);}getSuggestions({skipNotAttached:_0x5cfa4e=!0x1,toJSON:_0x131929=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x5cfa4e,'toJSON':_0x131929});}getSuggestion(_0x58debc){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x58debc);}};const Mn=['Pagination'];var On=class extends _0x9bd549{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4ec73f=this['editor'];if(_0x4ec73f['config']['define']('trackChangesData.editorCreator',_0x4bf035=>{const _0x1d2f8c=_0x4ec73f['model']['document']['getRootNames']()['reduce']((_0x43df39,_0x161b93)=>(_0x43df39[_0x161b93]='',_0x43df39),{});return _0x4ec73f['constructor']['create'](_0x1d2f8c,_0x4bf035);}),'function'!=typeof _0x4ec73f['config']['get']('trackChangesData')['editorCreator'])throw new _0x354614('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x1e883e){return Bn(this['editor'],!0x0,_0x1e883e);}getDataWithDiscardedSuggestions(_0x2eb5bf){return Bn(this['editor'],!0x1,_0x2eb5bf);}},wn=class extends _0x9bd549{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2438a5){super(_0x2438a5),this['result']='end',_0x2438a5['editing']['view']['_overlayModeHint']='auto',_0x2438a5['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Fn(_0x13ce1a){return void 0x0!==_0x13ce1a['getRootsAttributes'];}async function Bn(_0x158898,_0x480854,_0x98ef1f){const _0x2963ca=_0x423519(_0x158898,Mn);if(_0x2963ca['plugins']['push'](on,wn),Fn(_0x158898)){_0x2963ca['roots']=Object['create'](null);for(const _0x15b81f of _0x158898['model']['document']['getRootNames']())_0x2963ca['roots'][_0x15b81f]={'modelAttributes':_0x158898['getRootAttributes'](_0x15b81f)};}const _0xea4247=document['createDocumentFragment'](),_0x4b6cc7=_0x158898['config']['get']('trackChangesData')['editorCreator'],_0x5a004b=await _0x4b6cc7(_0x2963ca,()=>function(_0x59cc17){const _0x1613ff=document['createElement']('div');return _0x59cc17['appendChild'](_0x1613ff),_0x1613ff;}(_0xea4247));!function(_0x2ae655,_0x418104){const _0x682888=_0x2ae655['model']['document']['getRootNames']()['reduce']((_0x21be86,_0x58ed0d)=>(_0x21be86[_0x58ed0d]=_0x2ae655['data']['get']({'rootName':_0x58ed0d}),_0x21be86),{}),_0x35142a=_0x2ae655['plugins']['get']('Users')['users']['map'](_0x186834=>({'id':_0x186834['id'],'name':_0x186834['name']})),_0x54d438=_0x2ae655['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1371b4=_0x2ae655['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32aa69=_0x418104['plugins']['get']('Users'),_0x2e3b87=_0x418104['plugins']['get']('TrackChangesEditing'),_0x2c4ef1=_0x418104['plugins']['get']('CommentsRepository');for(const _0x3364ff of _0x2c4ef1['getCommentThreads']())_0x3364ff['remove']();for(const _0x50480c of _0x35142a)_0x32aa69['getUser'](_0x50480c['id'])||_0x32aa69['addUser'](_0x50480c);_0x32aa69['me']||_0x32aa69['useAnonymousUser']();for(const _0x9faf53 of _0x1371b4)_0x2c4ef1['addCommentThread'](_0x9faf53);for(const _0x3841f5 of _0x54d438)_0x2e3b87['addSuggestionData'](_0x3841f5);_0x418104['data']['set'](_0x682888);}(_0x158898,_0x5a004b),_0x5a004b['execute'](_0x480854?'acceptAllSuggestions':'discardAllSuggestions');const _0x572cc6=Fn(_0x5a004b)?_0x5a004b['getFullData'](_0x98ef1f):_0x5a004b['data']['get'](_0x98ef1f);return await _0x5a004b['destroy'](),_0x572cc6;}var vn=class extends _0x50f806{options;constructor(_0xaec245,_0x5409e3){super(_0xaec245),this['options']=_0x5409e3,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x2e0f88,_0xda6b78){if(!this['element'])return;const _0x521b73=[];for(const [_0x4ddb29,_0x26a2ae]of _0x2e0f88){const _0x4a8e20=document['createElement']('div');_0x4a8e20['setAttribute']('data-ck-root-name',_0x4ddb29),_0x4a8e20['className']=_0x26a2ae['classes']+'\x20ck-track-changes-preview__root-container',_0x4a8e20['innerHTML']=_0x26a2ae['content'],_0x521b73['push'](_0x4a8e20);}_0xda6b78(this['element'],_0x521b73),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x16d293{constructor(_0x4c5c09){super(_0x4c5c09),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x1a32d3=this['editor'],_0x23a437=_0x1a32d3['locale'],_0x1374be=_0x1a32d3['plugins']['get']('Dialog');let _0x522418;const _0x4d3736=function(_0x516ee8){const _0x42a70b={};if('editables'in _0x516ee8['ui']['view']){for(const [_0x31c39a,_0x3bf226]of Object['entries'](_0x516ee8['ui']['view']['editables']))_0x42a70b[_0x31c39a]=_0x3bf226['element'];}else _0x42a70b[_0x516ee8['model']['document']['getRootNames']()[0x0]]=_0x516ee8['ui']['view']['editable']['element'];return _0x42a70b;}(_0x1a32d3),_0x2d808c=function(_0x4b0219){let _0x34ad96=0x0;for(const _0x39f2e4 of Object['values'](_0x4b0219))_0x34ad96=Math['max'](_0x34ad96,_0x39f2e4['getBoundingClientRect']()['width']);let _0x5f2ecd=0x0;for(const _0x5deac0 of Object['values'](_0x4b0219))_0x5f2ecd+=_0x5deac0['getBoundingClientRect']()['height'];const _0x31553a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x34ad96,'height':Math['min'](_0x5f2ecd,_0x31553a)};}(_0x4d3736);_0x1374be['show']({'id':'finalContentPreview','title':Ot(_0x23a437,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x23a437,{'dialogRects':_0x2d808c}),'onHide':()=>{_0x522418['detachFromDom']();},'onShow':()=>{_0x1a32d3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x464ec5=>{const _0x17fc87=this['_standarizeRootsData'](_0x464ec5,_0x1a32d3,_0x4d3736);_0x1374be['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x17fc87,_0x1a32d3['config']['get']('trackChanges.preview.renderFunction'));}),_0x522418=new _0x1e8118(_0x23a437,[_0x1374be['view']]),_0x522418['attachToDom'](),_0x522418['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a32d3['once']('destroy',()=>{_0x522418['detachFromDom']();});const _0x35177c=_0x1374be['view']['headerView']['class'];_0x1374be['view']['headerView']['class']=_0x35177c?_0x35177c+'\x20ck-reset_all':'ck-reset_all',_0x1374be['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1374be['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xe13f0e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16756f=_0xe13f0e['previewMode'],_0x364829={};if('$labels'===_0x16756f){for(const _0x58233f of _0xe13f0e['getMergeFieldsIds']())_0x364829[_0x58233f]=_0xe13f0e['getLabel'](_0x58233f)||_0x58233f;}else{const _0x302b23='$defaultValues'===_0x16756f?_0xe13f0e['getDefaultValues']():_0xe13f0e['getDataSetValues'](_0x16756f,!0x0);for(const _0x262b9d of Object['entries'](_0x302b23)){const [_0x2b653e,_0x3b6a4e]=_0x262b9d;_0x364829[_0x2b653e]=null!==_0x3b6a4e?_0x3b6a4e:_0xe13f0e['getLabel'](_0x2b653e)||_0x2b653e;}}return{'mergeFieldsData':_0x364829};}_standarizeRootsData(_0x62412,_0x2292e0,_0x4e9fb3){let _0x32d440;_0x32d440='string'==typeof _0x62412?{[_0x2292e0['model']['document']['getRootNames']()[0x0]]:_0x62412}:_0x62412;const _0x4eae98=this['_fixMediaEmbeds'](_0x32d440,_0x2292e0);return function(_0x234aff,_0x4c0a1f){for(const [_0x11d4fb,_0x455f61]of _0x234aff)_0x455f61['classes']=_0x4c0a1f[_0x11d4fb]['classList']['value']['replace']('ck-focused','');return _0x234aff;}(this['_sortRoots'](_0x2292e0)['reduce']((_0x5e21a3,_0xb85a90)=>(_0x5e21a3['push']([_0xb85a90,{'content':_0x4eae98[_0xb85a90],'classes':''}]),_0x5e21a3),[]),_0x4e9fb3);}['_fixMediaEmbeds'](_0x81b957,_0x4ac98f){if(!_0x4ac98f['plugins']['has']('MediaEmbedEditing'))return _0x81b957;const _0x2d64a2=_0x4ac98f['plugins']['get']('MediaEmbedEditing');for(const [_0x5beb43,_0x47704c]of Object['entries'](_0x81b957)){const _0x29df66=document['createElement']('div');_0x29df66['innerHTML']=_0x47704c,_0x29df66['querySelectorAll']('figure.media')['forEach'](_0x38165e=>{const _0x55b985=_0x38165e['querySelector']('oembed');if(_0x55b985){const _0x3502b4=_0x55b985['getAttribute']('url');if(_0x3502b4){const _0x497145=_0x2d64a2['registry']['getMediaViewElement'](new at(_0x4ac98f['editing']['view']['document']),_0x3502b4,{'elementName':'','renderForEditingView':!0x0}),_0x437ff5=document['createElement']('div');_0x437ff5['classList']['add']('ck-media__wrapper'),_0x497145['render'](_0x437ff5,_0x4ac98f['editing']['view']['domConverter']),_0x55b985['replaceWith'](_0x437ff5);}}}),_0x81b957[_0x5beb43]=_0x29df66['innerHTML'];}return _0x81b957;}_sortRoots(_0x3c519b){if(!function(_0x513b32){return void 0x0!==_0x513b32['getRootsAttributes'];}(_0x3c519b))return _0x3c519b['model']['document']['getRootNames']();const _0x57ee7a=[],_0xf15415=new Map();for(const _0x220631 of _0x3c519b['model']['document']['getRootNames']()){const _0xf0a3fc=_0x3c519b['editing']['view']['getDomRoot'](_0x220631)['getClientRects']()['item'](0x0);_0x57ee7a['push'](_0x220631),_0xf15415['set'](_0x220631,_0xf0a3fc);}return _0x57ee7a['sort']((_0x1110ec,_0xa429c1)=>{const _0x55cfdf=_0xf15415['get'](_0x1110ec),_0x553ed0=_0xf15415['get'](_0xa429c1);return _0x55cfdf['y']-_0x553ed0['y']||_0x55cfdf['x']-_0x553ed0['x'];}),_0x57ee7a;}},Un=class extends _0x9bd549{static get requires(){return[On,_0x15cd88];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x539c15){super(_0x539c15),_0x539c15['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x539c15['config']['define']('trackChanges.preview.renderFunction',(_0x11ab1c,_0x1a0b2d)=>{for(const _0x51de62 of _0x1a0b2d)_0x11ab1c['appendChild'](_0x51de62);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
23
+ import{Command as _0x22624a,PendingActions as _0x39e43f,Plugin as _0x5ef0cd}from'@ckeditor/ckeditor5-core';import{Annotations as _0x200563,Comments as _0x4405cc,CommentsRepository as _0x3018ff,EditorAnnotations as _0x146c88}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x106f70,Collection as _0x860328,FocusTracker as _0x355493,KeystrokeHandler as _0x27b9b3,ObservableMixin as _0x146e79,getEnvKeystrokeText as _0x598ef4,insertToPriorityArray as _0x511b36,logWarning as _0x53309d,priorities as _0x430b7c,uid as _0x2a260a}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x33fac9,IconCancel as _0x4abdaa,IconCheck as _0x3040e1,IconSparkle as _0x404231,IconTrackChanges as _0x162a6a}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x3137eb,Dialog as _0x42231e,FocusCycler as _0x2eac73,ListSeparatorView as _0x34a713,MenuBarMenuListItemButtonView as _0x47cc62,MenuBarMenuListItemView as _0x457771,MenuBarMenuListView as _0x52bbbf,MenuBarMenuView as _0x319d83,SplitButtonView as _0x473b31,UIModel as _0x55430f,View as _0x2623ce,ViewCollection as _0x4b066c,addListToDropdown as _0x5d84c3,createDropdown as _0x4002eb,normalizeColorOptions as _0x4145bf}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x3222cb,CollaborationUserColor as _0xceb824,DocumentCompare as _0x566391,FOCUS_ANNOTATION_KEYSTROKE as _0x3dac5b,LateFocusButtonView as _0x173d8d,PillView as _0x33fbce,SuggestionsConversion as _0x5b7531,User as _0x7da0a1,UserView as _0x5b61d9,Users as _0x4eac81,fixElementSuggestionRange as _0x563cb9,getAllMarkersDomElementsSorted as _0x4ba58b,getDateTimeFormatter as _0x3fd085,hashObject as _0x20a1c6,isInvalidAttributeOperation as _0x10cf20,sanitizeEditorConfig as _0x1e49da,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x22624a{['_enabledCommands'];constructor(_0x28c460,_0x4a30bd){super(_0x28c460),this['_enabledCommands']=_0x4a30bd,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 _0x3f8f3a of this['editor']['commands']['commands']())_0x3f8f3a['affectsData']&&!this['_enabledCommands']['has'](_0x3f8f3a)&&_0x3f8f3a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xba454c of this['editor']['commands']['commands']())_0xba454c['affectsData']&&!this['_enabledCommands']['has'](_0xba454c)&&_0xba454c['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x22624a{_suggestions;constructor(_0x322e68,_0x1e0c41){super(_0x322e68),this['_suggestions']=_0x1e0c41,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x483154){const _0x31f34d=this['_suggestions']['get'](_0x483154);if(!_0x31f34d)throw new _0x106f70('track-changes-accept-suggestion-not-found',this);const _0x31596f=_0x31f34d['getRanges']();this['editor']['model']['canEditAt'](_0x31596f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x31f34d);}},Lt=class extends _0x22624a{_suggestions;constructor(_0x46b2ba,_0x23296d){super(_0x46b2ba),this['_suggestions']=_0x23296d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x2761a8){const _0x1c1f13=this['_suggestions']['get'](_0x2761a8);if(!_0x1c1f13)throw new _0x106f70('track-changes-discard-suggestion-not-found',this);const _0x5a3a3d=_0x1c1f13['getRanges']();this['editor']['model']['canEditAt'](_0x5a3a3d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1c1f13);}};function It(_0x2b3001,_0x9079f){let _0x357a74='';return _0x357a74+=_0x2b3001['split']('*')['map']((_0x527c21,_0x463810)=>_0x463810%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x527c21)+'</span>':At(_0x527c21))['join'](''),_0x9079f&&(_0x357a74+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x9079f['value']+'\x22\x20title=\x22'+_0x9079f['title']+'\x22></span>'),_0x357a74;}function At(_0xc01d49){const _0x373a97=document['createElement']('span');return _0x373a97['innerText']=_0xc01d49,_0x373a97['innerHTML'];}function bt(_0xcef00a){return _0xcef00a['sort']((_0x191dbb,_0x5729c1)=>'attribute'===_0x191dbb['type']&&'attribute'!==_0x5729c1['type']?-0x1:'attribute'!==_0x191dbb['type']&&'attribute'===_0x5729c1['type']?0x1:'deletion'==_0x191dbb['type']&&'deletion'!=_0x5729c1['type']?-0x1:'deletion'!=_0x191dbb['type']&&'deletion'==_0x5729c1['type']?0x1:0x0);}function Ct(_0xd7a974,_0x285923){let _0x1955c2,_0x52516b=0x0;const _0x127636=[],_0x2985f9=_0x285923['schema'];for(;_0x52516b<_0xd7a974['length'];){const _0x281e03=_0xd7a974[_0x52516b],_0x1f3fd5=_0xd7a974[_0x52516b+0x1];_0x1955c2||(_0x1955c2=_0x285923['createPositionBefore'](_0x281e03)),kt(_0x285923,_0x281e03,_0x1f3fd5)||(_0x127636['push'](_0x285923['createRange'](_0x1955c2,_0x2985f9['isObject'](_0x281e03)?_0x285923['createPositionAfter'](_0x281e03):_0x285923['createPositionAt'](_0x281e03,'end'))),_0x1955c2=null),_0x52516b++;}return _0x127636;}function kt(_0x5a06b8,_0x928a48,_0x461f7a){if(!_0x461f7a)return!0x1;const _0x3fdfae=_0x5a06b8['createPositionAfter'](_0x928a48),_0x2ee6d8=_0x5a06b8['createPositionBefore'](_0x461f7a);return _0x3fdfae['isTouching'](_0x2ee6d8);}function Rt(_0xcf3713,_0x39e995,_0x3a72b8){for(;_0x3a72b8['length'];){const _0x22ecb8=_0x3a72b8['splice'](0x0,0x64);_0xcf3713['change'](()=>{for(const _0xc02176 of _0x22ecb8)_0xc02176['isInContent']&&_0x39e995['execute'](_0xc02176['id']);});}}var yt=class extends _0x22624a{['_command'];_suggestions;constructor(_0x2c647d,_0x52bdb4,_0x553207){super(_0x2c647d),this['_command']=_0x52bdb4,this['_suggestions']=_0x553207,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36be2a=Array['from'](this['_suggestions']['values']())['some'](_0x4a0e98=>_0x4a0e98['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36be2a;}execute(){const _0x566fbe=bt(Array['from'](this['_suggestions']['values']()));for(const _0x1864c4 of _0x566fbe){const _0x3f2a0e=_0x1864c4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f2a0e))return;}Rt(this['editor']['model'],this['_command'],_0x566fbe);}},Nt=class extends _0x22624a{['_command'];_suggestions;_selectedSuggestions;constructor(_0x5b3547,_0x5cecdf,_0x3db023){super(_0x5b3547),this['_command']=_0x5cecdf,this['_suggestions']=_0x3db023,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e8442=this['editor']['model']['document']['selection'],_0x449aa5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x207f24,_0x1ef4db){const _0x220871=Array['from'](_0x207f24['getRanges']()),_0x2df96b=new Set();for(const _0x38071f of _0x1ef4db)if(_0x38071f['isInContent']){for(const _0x54f66d of _0x220871)for(const _0x175cb3 of _0x38071f['getRanges']())(_0x54f66d['isIntersecting'](_0x175cb3)||_0x207f24['isCollapsed']&&!_0x38071f['isMultiRange']&&_0x38071f['next']&&_0x175cb3['end']['isTouching'](_0x54f66d['start']))&&_0x2df96b['add'](_0x38071f);}return _0x2df96b;}(_0x3e8442,_0x449aa5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x5ead45=bt(Array['from'](this['_selectedSuggestions']));for(const _0x450d67 of _0x5ead45){const _0x57ec13=_0x450d67['getRanges']();if(!this['editor']['model']['canEditAt'](_0x57ec13))return;}Rt(this['editor']['model'],this['_command'],_0x5ead45);}};const St=/* #__PURE__ -- @preserve */
24
+ _0x146e79();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x53c0ab,_0x426952){super(),this['id']=_0x426952['id'],this['type']=_0x426952['type'],this['subType']=_0x426952['subType']||null,this['author']=_0x426952['author'],this['creator']=_0x426952['creator']||_0x426952['author'],this['data']=null,this['_originalSuggestionId']=_0x426952['originalSuggestionId']||null,this['_model']=_0x53c0ab,this['_onAccept']=_0x426952['onAccept'],this['_onDiscard']=_0x426952['onDiscard'],this['_onAttributesChange']=_0x426952['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x426952['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 _0x582cd0=this;for(;_0x582cd0['previous'];)_0x582cd0=_0x582cd0['previous'];return _0x582cd0;}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'](_0x24f2f0){this['_markerNames']['add'](_0x24f2f0);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x235b45=>this['_model']['markers']['get'](_0x235b45))['filter'](_0x4c8537=>_0x4c8537);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c6f74=>{for(const _0x5622d0 of this['getMarkers']())_0x2c6f74['removeMarker'](_0x5622d0);}),this['_markerNames']['clear']();}['removeMarker'](_0x554c00){this['_model']['change'](_0x4863e6=>{_0x4863e6['removeMarker'](_0x554c00);}),this['_markerNames']['delete'](_0x554c00);}['addRange'](_0x484ad6){const _0x34fe82='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x34fe82),this['_model']['change'](_0x3d6360=>{_0x3d6360['addMarker'](_0x34fe82,{'range':_0x484ad6,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2473f8){for(const _0x3ad1f2 of this['getRanges']())if(_0x3ad1f2['isIntersecting'](_0x2473f8))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x1dd5f8=>_0x1dd5f8['getRange']());}getItems(){return this['getRanges']()['reduce']((_0xa51cd2,_0x1f2a1c)=>[..._0xa51cd2,..._0x1f2a1c['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x11fd9c=this['getRanges']();if(0x1!=_0x11fd9c['length'])return null;const _0x5bc87b=_0x11fd9c[0x0],_0x885935=_0x5bc87b['start']['nodeAfter'],_0xe6fc99=_0x5bc87b['end']['nodeBefore'];return _0x885935 instanceof st?_0x885935!=_0xe6fc99?null:_0x885935: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 _0x41d61e=[];let _0x1dd315=this['head'];for(;_0x1dd315;)_0x41d61e['push'](_0x1dd315),_0x1dd315=_0x1dd315['next'];return _0x41d61e;}setAttribute(_0x1cbce0,_0x12746a){const _0x338f98=ct(this['attributes']);dt(_0x338f98,_0x1cbce0,_0x12746a),lt(_0x338f98,this['attributes'])||(this['attributes']=_0x338f98,this['_onAttributesChange'](_0x338f98));}removeAttribute(_0x2ee77d){const _0x2cd35e=ct(this['attributes']);ht(_0x2cd35e,_0x2ee77d),lt(_0x2cd35e,this['attributes'])||(this['attributes']=_0x2cd35e,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 _0x2a260a()['substr'](0x1,0x5);}};function Ot(_0x597540,_0x265949,_0x1fa545){const _0x1bd23e=_0x597540['t'],t=_0x597540['t'];switch(_0x265949){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',_0x1fa545);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1fa545);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1fa545);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1fa545);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1fa545);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',_0x1fa545);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1fa545);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',_0x1fa545);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1fa545);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1fa545);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1fa545);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1fa545);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1fa545);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1fa545);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1fa545);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1fa545);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1fa545);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1fa545);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1fa545);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1fa545);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1fa545);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1fa545);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1fa545);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1fa545);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1fa545);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'},_0x1fa545);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1fa545);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1fa545);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1fa545);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1fa545);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1fa545);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1fa545);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1fa545);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'},_0x1fa545);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'},_0x1fa545);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1fa545);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1fa545);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1fa545);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1fa545);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'},_0x1fa545);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1fa545);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'},_0x1fa545);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'},_0x1fa545);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1fa545);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'},_0x1fa545);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1fa545);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'},_0x1fa545);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1fa545);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1fa545);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1fa545);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1fa545);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1fa545);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'},_0x1fa545);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1fa545);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 _0x1bd23e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1fa545);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1bd23e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1fa545);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1fa545);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'},_0x1fa545);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'},_0x1fa545);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'},_0x1fa545);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x265949;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x162614,_0x331ae5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x162614,this['_locale']=_0x331ae5;}getDescriptions(_0x4f7d32){const _0x3dc25a=[],_0x8f574f=new Set(),_0x18da43=new Set();for(let _0x560734=0x0;_0x560734<_0x4f7d32['length'];_0x560734++){const _0x5372e5=_0x4f7d32[_0x560734];if(!_0x5372e5['isInContent'])continue;const _0x87b72=this['_handleCustomCallbackDescription'](_0x5372e5);if(_0x87b72){if(null!=_0x5372e5['subType']){if(_0x8f574f['has'](_0x5372e5['subType']))continue;_0x8f574f['add'](_0x5372e5['subType']);}_0x3dc25a['push'](_0x87b72);}else{if('attribute'==_0x5372e5['type']){const _0x40c069=_0x5372e5['data']['key'];if(_0x18da43['has'](_0x40c069))continue;_0x18da43['add'](_0x5372e5['data']['key']),'$elementName'==_0x40c069?this['_handleRenameSuggestionDescription'](_0x3dc25a,_0x5372e5):this['_handleAttributeSuggestionDescription'](_0x3dc25a,_0x5372e5);continue;}'insertion'!=_0x5372e5['type']&&'deletion'!=_0x5372e5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3dc25a,_0x5372e5,_0x4f7d32[_0x560734+0x1]);}}return this['_resolveDescriptionItems'](_0x3dc25a);}registerDescriptionCallback(_0x13904b){this['_customCallbacks']['push'](_0x13904b);}registerElementLabel(_0x1f6b7e,_0x4d3268,_0x55d774=_0x430b7c['normal']){'function'==typeof _0x1f6b7e?_0x511b36(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1f6b7e,'label':_0x4d3268,'priority':_0x55d774}):this['_itemLabels']['set'](_0x1f6b7e,_0x4d3268);}registerAttributeLabel(_0x33a342,_0x3c27ee){this['_attributeLabels']['set'](_0x33a342,_0x3c27ee);}getItemLabel(_0xa426f3,_0x389788=0x1){let _0x2bacbb;for(const _0x10537d of this['_itemLabelsCallbacks'])if(_0x10537d['matchingCallback'](_0xa426f3)){_0x2bacbb=_0x10537d['label'];break;}return _0x2bacbb||(_0x2bacbb=this['_itemLabels']['get'](_0xa426f3['name'])),_0x2bacbb?_0x2bacbb(_0x389788):0x1!==_0x389788?_0x389788+'\x20'+_0xa426f3['name']+'s':''+_0xa426f3['name'];}_addDescriptionItems(_0x450370,_0x49712b){const _0x344d38=_0x49712b['getFirstRange']()['getWalker'](),_0x1a4c0f='insertion'==_0x49712b['type']?'add':'remove';for(const _0x391ea5 of _0x344d38){const _0x43f3d2=_0x391ea5['item'],_0x4ffa4c=_0x450370[_0x450370['length']-0x1];if(_0x43f3d2['is']('$textProxy'))_0x4ffa4c&&_0x4ffa4c['type']['indexOf']('Container')>-0x1&&_0x450370['pop'](),_0x4ffa4c&&'text'==_0x4ffa4c['type']?_0x4ffa4c[_0x1a4c0f]+=_0x43f3d2['data']:_0x450370['push']({'type':'text','add':'add'==_0x1a4c0f?_0x43f3d2['data']:'','remove':'remove'==_0x1a4c0f?_0x43f3d2['data']:''});else{if(this['_schema']['isObject'](_0x43f3d2)){const _0x1b0c2d=_0x43f3d2;if(_0x4ffa4c&&_0x4ffa4c['type']['indexOf']('Container')>-0x1&&_0x450370['pop'](),'elementEnd'==_0x391ea5['type'])continue;_0x4ffa4c&&_0x4ffa4c['type']==_0x1a4c0f+'Object'&&_0x4ffa4c['element']['name']==_0x1b0c2d['name']?_0x4ffa4c['quantity']++:_0x450370['push']({'type':_0x1a4c0f+'Object','element':_0x1b0c2d,'quantity':0x1}),_0x344d38['skip'](_0x5cae3f=>!('elementEnd'==_0x5cae3f['type']&&_0x5cae3f['item']==_0x43f3d2));}else{if(this['_schema']['checkChild'](_0x43f3d2,'$text')||_0x43f3d2['is']('element','softBreak')){const _0x4441e9=_0x43f3d2;if('add'==_0x1a4c0f&&'elementStart'==_0x391ea5['type']||'remove'==_0x1a4c0f&&'elementEnd'==_0x391ea5['type'])continue;if(_0x4ffa4c&&-0x1==_0x4ffa4c['type']['indexOf']('Container')){'text'==_0x4ffa4c['type']&&(_0x4ffa4c[_0x1a4c0f]+='\x0a');continue;}let _0x290137;if(_0x290137='add'==_0x1a4c0f?_0x4441e9['nextSibling']&&!this['_schema']['isObject'](_0x4441e9['nextSibling'])?_0x4441e9['nextSibling']:null:_0x4441e9['previousSibling']&&!this['_schema']['isObject'](_0x4441e9['previousSibling'])?_0x4441e9['previousSibling']:null,_0x4441e9['isEmpty']||_0x290137&&_0x290137['isEmpty']){const _0x20fdb4=_0x290137&&_0x290137['isEmpty']?_0x290137:_0x4441e9;_0x4ffa4c&&_0x4ffa4c['type']==_0x1a4c0f+'EmptyContainer'&&_0x4ffa4c['element']['name']==_0x20fdb4['name']?_0x4ffa4c['quantity']++:_0x450370['push']({'type':_0x1a4c0f+'EmptyContainer','element':_0x20fdb4,'quantity':0x1});}else _0x450370['push']({'type':_0x1a4c0f+'Container','element':_0x4441e9});}}}}}_resolveDescriptionItems(_0x386d39){const _0x1843c8=this['_locale'],_0x55d52e=[],_0x18860d=[],_0x48f61b=[];for(const _0x25c621 of _0x386d39)switch(_0x25c621['type']){case'text':if(_0x25c621['add']=_0x25c621['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x25c621['remove']=_0x25c621['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x25c621['add']&&''!=_0x25c621['remove']){_0x55d52e['push']({'type':'replace','content':Ot(_0x1843c8,'REPLACE_TEXT',['\x22'+_0x25c621['remove']+'\x22','\x22'+_0x25c621['add']+'\x22'])});continue;}if(null!=_0x25c621['add']['match'](/^ +$/)){_0x55d52e['push']({'type':'insertion','content':Ot(_0x1843c8,'*Insert:*\x20%0',Ot(_0x1843c8,'ELEMENT_SPACE',_0x25c621['add']['length']))});continue;}if(null!=_0x25c621['remove']['match'](/^ +$/)){_0x55d52e['push']({'type':'deletion','content':Ot(_0x1843c8,'*Remove:*\x20%0',Ot(_0x1843c8,'ELEMENT_SPACE',_0x25c621['remove']['length']))});continue;}if(''!=_0x25c621['add']){_0x55d52e['push']({'type':'insertion','content':Ot(_0x1843c8,'*Insert:*\x20%0','\x22'+_0x25c621['add']+'\x22')});continue;}_0x55d52e['push']({'type':'deletion','content':Ot(_0x1843c8,'*Remove:*\x20%0','\x22'+_0x25c621['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x55d52e['push']({'type':'insertion','content':Ot(_0x1843c8,'*Insert:*\x20%0',this['getItemLabel'](_0x25c621['element'],_0x25c621['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x55d52e['push']({'type':'deletion','content':Ot(_0x1843c8,'*Remove:*\x20%0',this['getItemLabel'](_0x25c621['element'],_0x25c621['quantity']))});continue;case'addContainer':_0x55d52e['push']({'type':'insertion','content':Ot(_0x1843c8,'*Split:*\x20%0',this['getItemLabel'](_0x25c621['element'],_0x25c621['quantity']))});continue;case'removeContainer':_0x55d52e['push']({'type':'deletion','content':Ot(_0x1843c8,'*Merge:*\x20%0',this['getItemLabel'](_0x25c621['element'],_0x25c621['quantity']))});continue;case'addFormat':_0x18860d['push'](_0x25c621['key']);continue;case'removeFormat':_0x48f61b['push'](_0x25c621['key']);continue;default:_0x55d52e['push'](_0x25c621);}if(_0x18860d['length']){const _0x449c73=_0x18860d['map'](_0x12341c=>this['_attributeLabels']['has'](_0x12341c)?this['_attributeLabels']['get'](_0x12341c):_0x12341c)['join'](',\x20');_0x55d52e['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x449c73)});}if(_0x48f61b['length']){const _0x126cd8=_0x48f61b['map'](_0x5f0d6d=>this['_attributeLabels']['has'](_0x5f0d6d)?this['_attributeLabels']['get'](_0x5f0d6d):_0x5f0d6d)['join'](',\x20');_0x55d52e['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x126cd8)});}return _0x55d52e;}_handleCustomCallbackDescription(_0x361d75){for(const _0x12ad47 of this['_customCallbacks']){const _0x172706=_0x12ad47(_0x361d75);if(_0x172706&&'type'in _0x172706)return _0x172706;}}_handleAttributeSuggestionDescription(_0x4ae73f,_0x5d34ff){const _0x50fe97=_0x5d34ff['data'],_0x3fd017=void 0x0===_0x50fe97['newValue']?'removeFormat':'addFormat';_0x4ae73f['push']({'type':_0x3fd017,'key':_0x50fe97['key']});}_handleRenameSuggestionDescription(_0x2d393c,_0x437fdb){_0x2d393c['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x437fdb['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x3c3ffa,_0x44ec2f,_0x27933e){if(this['_addDescriptionItems'](_0x3c3ffa,_0x44ec2f),_0x27933e&&_0x27933e['getFirstRange']()&&!_0x44ec2f['getFirstRange']()['end']['isEqual'](_0x27933e['getFirstRange']()['start'])){const _0x1beda1=_0x3c3ffa[_0x3c3ffa['length']-0x1],_0x553386='insertion'==_0x44ec2f['type']?'add':'remove';_0x1beda1&&'text'==_0x1beda1['type']&&(_0x1beda1[_0x553386]+='\x0a');}}},Ft=class extends _0x5ef0cd{afterInit(){const _0x5ddbb8=this['editor'],_0x37a076=_0x5ddbb8['plugins']['get']('TrackChangesEditing');_0x5ddbb8['commands']['get']('showAIAssistant')&&_0x37a076['enableCommand']('showAIAssistant');}},Bt=class extends _0x5ef0cd{afterInit(){const _0x53af80=this['editor'],_0x3498c6=_0x53af80['plugins']['get']('TrackChangesEditing');_0x53af80['commands']['get']('toggleAi')&&_0x3498c6['enableCommand']('toggleAi');}},vt=class extends _0x5ef0cd{afterInit(){const _0x3b3b84=this['editor'],_0x407452=_0x3b3b84['plugins']['get']('TrackChangesEditing');_0x3b3b84['commands']['get']('aiQuickAction')&&_0x407452['enableCommand']('aiQuickAction');}},Dt=class extends _0x5ef0cd{afterInit(){const _0x2cc4c6=this['editor'],_0x5556fc=_0x2cc4c6['locale'];if(!_0x2cc4c6['plugins']['has']('AlignmentEditing'))return;const _0x2f57dd=_0x2cc4c6['plugins']['get']('TrackChangesEditing');_0x2f57dd['enableDefaultAttributesIntegration']('alignment'),_0x2f57dd['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x5556fc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1e6d6d=this['editor'],_0x3bfb83=_0x1e6d6d['locale'];_0x1e6d6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x186350=>{if('formatBlock'!=_0x186350['type'])return;const {data:_0x291288}=_0x186350;if(_0x291288&&'alignment'==_0x291288['commandName']){const _0x42ef1f=_0x291288['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x3bfb83,'*Format:*\x20%0',function(_0xc77387){switch(_0xc77387){case'left':return Ot(_0x3bfb83,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x3bfb83,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x3bfb83,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x3bfb83,'FORMAT_JUSTIFY_TEXT');}}(_0x42ef1f))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x5ef0cd{afterInit(){const _0x3a73fe=this['editor'],_0x531b49=_0x3a73fe['plugins']['get']('TrackChangesEditing'),_0x297bab=_0x3a73fe['locale'];for(const _0xf62793 of Ut){if(!_0x3a73fe['plugins']['has'](_0xf62793))continue;const _0x54f330=_0xf62793['slice'](0x0,-0x7)['toLowerCase'](),_0x20cd8e='FORMAT_'+_0x54f330['toUpperCase']();_0x531b49['enableDefaultAttributesIntegration'](_0x54f330),_0x531b49['descriptionFactory']['registerAttributeLabel'](_0x54f330,Ot(_0x297bab,_0x20cd8e));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x633a3a=this['editor'],_0x2f1660=_0x633a3a['locale'],_0x5ca4c5=_0x633a3a['plugins']['get']('TrackChangesEditing');function _0x33b459(_0x1bee46,_0x233f05){_0x5ca4c5['descriptionFactory']['registerDescriptionCallback'](_0x255cf8=>{if('formatInline'!=_0x255cf8['type'])return;const {data:_0x9fc857}=_0x255cf8;return _0x9fc857&&_0x9fc857['commandName']===_0x1bee46?_0x9fc857['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x2f1660,'*Format:*\x20%0',_0x233f05)}:{'type':'format','content':Ot(_0x2f1660,'*Remove\x20format:*\x20%0',_0x233f05)}:void 0x0;});}_0x33b459('bold',Ot(_0x2f1660,'FORMAT_BOLD')),_0x33b459('italic',Ot(_0x2f1660,'FORMAT_ITALIC')),_0x33b459('underline',Ot(_0x2f1660,'FORMAT_UNDERLINE')),_0x33b459('code',Ot(_0x2f1660,'FORMAT_CODE')),_0x33b459('strikethrough',Ot(_0x2f1660,'FORMAT_STRIKETHROUGH')),_0x33b459('subscript',Ot(_0x2f1660,'FORMAT_SUBSCRIPT')),_0x33b459('superscript',Ot(_0x2f1660,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x5ef0cd{afterInit(){const _0x168c7a=this['editor'],_0xa1ecb4=_0x168c7a['locale'];if(!_0x168c7a['plugins']['has']('BlockQuoteEditing'))return;const _0x230fbb=_0x168c7a['plugins']['get']('TrackChangesEditing'),_0x558baf=this['editor']['commands']['get']('blockQuote');_0x230fbb['enableCommand']('blockQuote',(_0x4c581f,_0x401026={})=>{const _0x59e59e=this['editor']['model']['document']['selection'],_0x17e525=_0x401026&&void 0x0!==_0x401026['forceValue']?_0x401026['forceValue']:!_0x558baf['value'];let _0x39c30a=[];_0x39c30a=Ct(_0x17e525?Array['from'](_0x59e59e['getSelectedBlocks']())['filter'](_0x1204cb=>Gt(_0x1204cb)||function(_0x41cc48,_0x1e4adf){const _0xc1252e=_0x1e4adf['createContext'](_0x41cc48['parent']);return!!_0x1e4adf['checkChild'](_0xc1252e,'blockQuote')&&!!_0x1e4adf['checkChild'](_0xc1252e['push']('blockQuote'),_0x41cc48);}(_0x1204cb,this['editor']['model']['schema'])):Array['from'](_0x59e59e['getSelectedBlocks']())['filter'](_0x525a39=>Gt(_0x525a39)),_0x168c7a['model']),_0x168c7a['model']['change'](()=>{for(const _0x3a914f of _0x39c30a)_0x230fbb['markBlockFormat'](_0x3a914f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x17e525}]});});}),_0x230fbb['descriptionFactory']['registerDescriptionCallback'](_0x3dc9f8=>{const {data:_0x1db6c4}=_0x3dc9f8;if(_0x1db6c4&&'blockQuote'==_0x1db6c4['commandName']){const _0x3a3d09=Ot(_0xa1ecb4,'ELEMENT_BLOCK_QUOTE');return _0x1db6c4['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xa1ecb4,'*Set\x20format:*\x20%0',_0x3a3d09)}:{'type':'format','content':Ot(_0xa1ecb4,'*Remove\x20format:*\x20%0',_0x3a3d09)};}});}};function Gt(_0x9b0b72){return'blockQuote'==_0x9b0b72['parent']['name'];}var Ht=class extends _0x5ef0cd{afterInit(){const _0x676680=this['editor'],_0x1236e4=_0x676680['locale'],_0x1287dd=_0x676680['plugins']['get']('TrackChangesEditing');_0x676680['plugins']['has']('BookmarkEditing')&&(_0x1287dd['enableCommand']('insertBookmark'),_0x1287dd['enableDefaultAttributesIntegration']('updateBookmark'),_0x1287dd['descriptionFactory']['registerDescriptionCallback'](_0x2d2048=>{if('insertion'!=_0x2d2048['type']&&'deletion'!=_0x2d2048['type']&&'attribute'!=_0x2d2048['type'])return;const _0x4637ca=_0x2d2048['getContainedElement']();if(null==_0x4637ca)return;if(!_0x4637ca['is']('element','bookmark'))return;const _0x13efba=_0x4637ca['getAttribute']('bookmarkId');if('insertion'==_0x2d2048['type'])return{'type':'insertion','content':Ot(_0x1236e4,'*Insert:*\x20%0','\x22'+_0x13efba+'\x22\x20'+Ot(_0x1236e4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2d2048['type'])return{'type':'deletion','content':Ot(_0x1236e4,'*Remove:*\x20%0','\x22'+_0x13efba+'\x22\x20'+Ot(_0x1236e4,'ELEMENT_BOOKMARK'))};const {data:_0x3054a7}=_0x2d2048;return _0x3054a7&&'bookmarkId'==_0x3054a7['key']?{'type':'format','content':Ot(_0x1236e4,'*Set\x20bookmark:*\x20%0','\x22'+_0x3054a7['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x5ef0cd{afterInit(){const _0x655cc8=this['editor'];_0x655cc8['plugins']['has']('CaseChange')&&(_0x655cc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x655cc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x655cc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x5ef0cd{afterInit(){const _0x2a09dc=this['editor'];_0x2a09dc['commands']['get']('ckbox')&&_0x2a09dc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x5ef0cd{static get requires(){return[gt,ft];}constructor(_0x2b72ed){super(_0x2b72ed),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x56b1bc=this['editor'],_0x127bce=_0x56b1bc['plugins']['get']('ClipboardMarkersUtils'),_0x7b5d9b=_0x56b1bc['plugins']['get'](ft);_0x127bce['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x7b5d9b['on']('outputTransformation',(_0x20c170,_0x31d43d)=>{const _0xe3bef4=this['_getSuggestionEntries'](_0x31d43d);for(const [_0x1af1eb,_0x1bc485]of _0x31d43d['content']['markers']){const _0x391dd7=ot['_fromRangeInDocumentFragment'](_0x1bc485,_0x56b1bc['model']);function _0xffc841(){_0x391dd7['detach'](),_0x31d43d['content']['markers']['delete'](_0x1af1eb);}_0x391dd7['on']('change:drop',_0xffc841),(_0x1af1eb['startsWith']('suggestion:')||_0x1af1eb['startsWith']('comment:'))&&_0x391dd7['on']('change:range',()=>{_0x391dd7['isCollapsed']&&_0xffc841();}),_0x31d43d['content']['markers']['set'](_0x1af1eb,_0x391dd7);}const _0x3ae1ea=_0xe3bef4['filter'](_0x406427=>'deletion'===_0x406427['meta']['type'])['map'](_0x2543f5=>_0x2543f5['modelRange']);if(this['_shouldSkipDeletions'](_0x3ae1ea,_0x31d43d['content']))return[..._0xe3bef4]['forEach'](_0x2801ac=>{_0x31d43d['content']['markers']['get'](_0x2801ac['markerName'])['detach'](),_0x31d43d['content']['markers']['delete'](_0x2801ac['markerName']);}),void this['_restoreRegularRanges'](_0x31d43d['content']['markers']);[..._0xe3bef4]['forEach'](_0x533725=>{const _0x444dcd=_0x56b1bc['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x533725['meta']['type'],_0x533725['meta']['subType'],'accept'),{markerName:_0x49f646,meta:_0x3f6dc5}=_0x533725;if(_0x31d43d['content']['markers']['has'](_0x49f646)){switch(_0x3f6dc5['type']){case'deletion':if('tableRow'===_0x3f6dc5['subType']||'tableColumn'===_0x3f6dc5['subType']){if(!_0x56b1bc['plugins']['has']('TableUtils'))break;const _0x35bca9=_0x56b1bc['plugins']['get']('TableUtils'),_0x210ace=_0x35bca9['getSelectionAffectedTableCells'](_0x56b1bc['model']['createSelection'](_0x31d43d['content']['markers']['get'](_0x49f646))),_0xb54156=_0x210ace[0x0]['findAncestor']('table');if('tableRow'===_0x3f6dc5['subType']){const {first:_0x3488b2,last:_0x542593}=_0x35bca9['getRowIndexes'](_0x210ace);_0x35bca9['removeRows'](_0xb54156,{'at':_0x3488b2,'rows':_0x542593-_0x3488b2+0x1});}else{const {first:_0xae7aee,last:_0x35156e}=_0x35bca9['getColumnIndexes'](_0x210ace);_0x35bca9['removeColumns'](_0xb54156,{'at':_0xae7aee,'columns':_0x35156e-_0xae7aee+0x1});}break;}_0x444dcd([_0x31d43d['content']['markers']['get'](_0x49f646)]);}_0x31d43d['content']['markers']['has'](_0x49f646)&&(_0x31d43d['content']['markers']['get'](_0x49f646)['detach'](),_0x31d43d['content']['markers']['delete'](_0x49f646));}}),this['_restoreRegularRanges'](_0x31d43d['content']['markers']);});}_getSuggestionEntries(_0xd801a6){const _0x176e42=_0x55fa1a=>'dragstart'===_0xd801a6['method']?_0x55fa1a['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x55fa1a;return Array['from'](_0xd801a6['content']['markers'])['map'](([_0x1bef18,_0x9dc8b6])=>({'markerName':_0x1bef18,'modelRange':_0x9dc8b6,'meta':et(_0x176e42(_0x1bef18))}))['filter'](({meta:_0x4640f0})=>'suggestion'===_0x4640f0['group']);}_shouldSkipDeletions(_0x2e50da,_0x5ddee8){if(!_0x2e50da['length'])return!0x1;let _0x48de2f=[this['editor']['model']['createRangeIn'](_0x5ddee8)];for(const _0x38ee0e of _0x2e50da)_0x48de2f=_0x48de2f['flatMap'](_0xc482b0=>_0xc482b0['getDifference'](_0x38ee0e));return!_0x48de2f['some'](_0x4d2974=>this['editor']['model']['hasContent'](_0x4d2974,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x63e1d3){[..._0x63e1d3['keys']()]['forEach'](_0x2b7b28=>{const _0x307dd4=_0x63e1d3['get'](_0x2b7b28);_0x307dd4['detach'](),_0x63e1d3['set'](_0x2b7b28,_0x307dd4['toRange']());});}},jt=class extends _0x5ef0cd{afterInit(){const _0x5d6d=this['editor'];if(!_0x5d6d['plugins']['has']('CodeBlock'))return;const _0x295257=_0x5d6d['plugins']['get']('TrackChangesEditing'),_0x107070=_0x5d6d['locale'],_0x3a6f42=_0x5d6d['config']['get']('codeBlock')['languages'],_0x2ee6cd=_0x5d6d['commands']['get']('codeBlock');_0x295257['enableCommand']('indentCodeBlock'),_0x295257['enableCommand']('outdentCodeBlock'),_0x295257['enableCommand']('codeBlock',(_0xdea96d,_0x37933d={})=>{const _0x470bd1=_0x5d6d['model'],_0x50c781=_0x5d6d['model']['document']['selection'],_0x1cbc43=_0x37933d&&void 0x0!==_0x37933d['forceValue']?_0x37933d['forceValue']:!_0x2ee6cd['value'];let _0x24063c;_0x37933d['language']||(_0x37933d['language']=_0x3a6f42[0x0]['language']),_0x24063c=_0x1cbc43?Array['from'](_0x50c781['getSelectedBlocks']())['filter'](_0x4f4456=>{return zt(_0x4f4456)||(_0x13ba8d=_0x4f4456,_0x37c1be=_0x470bd1['schema'],!_0x13ba8d['is']('rootElement')&&!_0x37c1be['isLimit'](_0x13ba8d)&&_0x37c1be['checkChild'](_0x13ba8d['parent'],'codeBlock'));var _0x13ba8d,_0x37c1be;}):Array['from'](_0x50c781['getSelectedBlocks']())['filter'](_0x428ae9=>zt(_0x428ae9));const _0x4a08eb=Ct(_0x24063c,_0x470bd1);_0x470bd1['change'](()=>{for(const _0x446e36 of _0x4a08eb)_0x295257['markBlockFormat'](_0x446e36,{'commandName':'codeBlock','commandParams':[{..._0x37933d,'forceValue':_0x1cbc43}],'formatGroupId':'blockName'});});}),(_0x295257['descriptionFactory']['registerElementLabel']('codeBlock',_0x44f326=>Ot(_0x107070,'ELEMENT_CODE_BLOCK',_0x44f326)),_0x295257['descriptionFactory']['registerDescriptionCallback'](_0x118c5e=>{if('formatBlock'!=_0x118c5e['type'])return;const _0x471e2c=_0x107070['t'],{data:_0xe32b97}=_0x118c5e;if(!_0xe32b97||'codeBlock'!=_0xe32b97['commandName'])return;const _0x206595=_0xe32b97['commandParams'][0x0]['language'],_0x351a37=_0x471e2c(_0x3a6f42['find'](_0x456ba2=>_0x456ba2['language']===_0x206595)['label'])['toLowerCase']();return _0xe32b97['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x107070,'*Set\x20format:*\x20%0',Ot(_0x107070,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x351a37+')')}:{'type':'format','content':Ot(_0x107070,'*Remove\x20format:*\x20%0',Ot(_0x107070,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x707456){return'codeBlock'==_0x707456['name'];}var Kt=class extends _0x5ef0cd{afterInit(){const _0x2f6f93=this['editor'];_0x2f6f93['plugins']['has']('CommentsEditing')&&_0x2f6f93['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x5ef0cd{static get requires(){return[mt];}init(){const _0x221759=this['editor'],_0x168009=_0x221759['plugins']['get']('TrackChangesEditing');_0x168009['enableCommand']('delete');const _0x4eae22=_0x221759['commands']['get']('deleteForward');_0x168009['enableCommand']('deleteForward',(_0x3ee441,_0x4a3c7f={})=>{const _0x1f83de=_0x221759['model']['createSelection'](_0x221759['model']['document']['selection']);_0x1f83de['isCollapsed']&&_0x221759['model']['modifySelection'](_0x1f83de,{'direction':'forward','unit':_0x4a3c7f['unit']});const _0x1ea897=_0x1f83de['getFirstRange'](),_0x35960f=ot['fromRange'](_0x1ea897);let _0xa235d9;_0x3ee441(_0x4a3c7f),_0xa235d9='$graveyard'==_0x35960f['root']['rootName']?_0x221759['model']['createRange'](_0x1ea897['start']):_0x221759['model']['createRange'](_0x35960f['start'],_0x35960f['end']),_0x35960f['detach'](),_0x221759['model']['enqueueChange'](_0x4eae22['buffer']['batch'],_0x2d28cc=>{_0x4eae22['buffer']['lock'](),_0x2d28cc['setSelection'](_0x2d28cc['createRange'](_0xa235d9['end'])),_0x4eae22['buffer']['unlock']();});});}},qt=class extends _0x5ef0cd{afterInit(){const _0x3d9fb7=this['editor'];if(!_0x3d9fb7['plugins']['has']('ListEditing'))return;const _0x5e35c1=_0x3d9fb7['locale'],_0x318eba=_0x3d9fb7['plugins']['get']('TrackChangesEditing'),_0x396947=_0x3d9fb7['plugins']['has']('TodoListEditing'),_0x18e03d=!!_0x3d9fb7['config']['get']('list.multiBlock');function _0x45b418(_0x3ad77a){return{'type':'format','content':''+Ot(_0x5e35c1,'*Set\x20format:*\x20%0',_0x3ad77a)};}function _0x15b74c(_0x4583a5){return{'type':'format','content':''+Ot(_0x5e35c1,'*Remove\x20format:*\x20%0',_0x4583a5)};}_0x318eba['enableDefaultAttributesIntegration']('numberedList'),_0x318eba['enableDefaultAttributesIntegration']('bulletedList'),_0x318eba['enableDefaultAttributesIntegration']('customNumberedList'),_0x318eba['enableDefaultAttributesIntegration']('customBulletedList'),_0x318eba['enableDefaultAttributesIntegration']('indentList'),_0x318eba['enableDefaultAttributesIntegration']('outdentList'),_0x318eba['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x318eba['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x18e03d&&(_0x318eba['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x318eba['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x396947&&(_0x318eba['enableDefaultAttributesIntegration']('todoList'),_0x318eba['enableDefaultAttributesIntegration']('checkTodoList'),_0x318eba['descriptionFactory']['registerDescriptionCallback'](_0x4a66a3=>{const {data:_0x2de95a}=_0x4a66a3;if(_0x2de95a&&'todoListChecked'==_0x2de95a['key'])return{'type':'format','content':_0x2de95a['newValue']?Ot(_0x5e35c1,'*Check\x20item*'):Ot(_0x5e35c1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3cd01f=>{if(_0x3cd01f['batch']['isUndo'])return!0x1;let _0xc205d9=!0x1;const _0x51758=_0x318eba['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x116ca7=>'todoListChecked'===_0x318eba['_getAttributeKey'](_0x116ca7));for(const _0x2c0195 of _0x51758)'todo'!=_0x2c0195['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x318eba['_findSuggestions'](_0x2c0195['getFirstRange'](),'attribute')['find'](_0x1f5e39=>'listType'===_0x318eba['_getAttributeKey'](_0x1f5e39['suggestion']))||(_0x3cd01f['removeMarker'](_0x2c0195['getFirstMarker']()),_0xc205d9=!0x0));return _0xc205d9;})),_0x318eba['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x5e35c1,'FORMAT_INDENT'));const _0x3b7c5a={'type':'format','content':''};_0x318eba['descriptionFactory']['registerDescriptionCallback'](_0x22ad6d=>{const {data:_0x5f242b}=_0x22ad6d;if(!_0x5f242b||'listType'!=_0x5f242b['key'])return;let _0x2d2dcc=_0x22ad6d['head'];for(;_0x2d2dcc;){if(_0x2d2dcc['data']&&(('listStyle'==_0x2d2dcc['data']['key']||'listMarkerStyle'==_0x2d2dcc['data']['key'])&&(_0x2d2dcc['data']['newValue']&&'default'!=_0x2d2dcc['data']['newValue']||'default'!=_0x2d2dcc['data']['oldValue']&&!_0x5f242b['newValue'])||!_0x18e03d&&'$elementName'==_0x2d2dcc['data']['key']))return _0x3b7c5a;_0x2d2dcc=_0x2d2dcc['next'];}if(null==_0x5f242b['newValue'])switch(_0x5f242b['oldValue']){case'bulleted':return _0x15b74c(Ot(_0x5e35c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15b74c(Ot(_0x5e35c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15b74c(Ot(_0x5e35c1,'ELEMENT_TODO_LIST'));}switch(_0x5f242b['newValue']){case'bulleted':return _0x45b418(Ot(_0x5e35c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45b418(Ot(_0x5e35c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45b418(Ot(_0x5e35c1,'ELEMENT_TODO_LIST'));}}),_0x318eba['descriptionFactory']['registerDescriptionCallback'](_0xf87671=>{const {data:_0x4da414}=_0xf87671;if(_0x4da414&&'listIndent'==_0x4da414['key'])return null==_0x4da414['newValue']||null==_0x4da414['oldValue']&&0x0==_0x4da414['newValue']?_0x3b7c5a:void 0x0;}),_0x318eba['descriptionFactory']['registerDescriptionCallback'](_0x598555=>{if('attribute'!=_0x598555['type'])return;const {data:_0x39debf}=_0x598555;if(!_0x39debf||'listItemId'!=_0x39debf['key'])return;const _0x47e717=Yt(_0x598555);return'newValue'==_0x47e717?{'type':'format','content':Ot(_0x5e35c1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x47e717?{'type':'format','content':Ot(_0x5e35c1,'*Split:*\x20list\x20item')}:_0x3b7c5a;}),_0x3d9fb7['model']['document']['registerPostFixer'](_0x3bfef9=>this['listItemIdFixer'](_0x3bfef9)),_0x3d9fb7['model']['document']['registerPostFixer'](_0x572299=>this['noTrackChangesFixer'](_0x572299)),_0x3d9fb7['model']['document']['on']('change:data',(_0x27e70e,_0x4ff3f2)=>{if(_0x4ff3f2['isUndo']||!_0x4ff3f2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x295533){if(_0x295533['batch']['isUndo']||!_0x295533['batch']['isLocal'])return!0x1;let _0x2f4b7e=!0x1;const _0x499d3b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cc0b7=>_0x2cc0b7['data']&&'listItemId'==_0x2cc0b7['data']['key'])['filter'](_0x4afdfc=>_0x4afdfc['data']['newValue']&&_0x4afdfc['data']['oldValue']);for(const _0x5ed500 of _0x499d3b)Yt(_0x5ed500)||(_0x295533['removeMarker'](_0x5ed500['getFirstMarker']()),_0x2f4b7e=!0x0);return _0x2f4b7e;}['noTrackChangesFixer'](_0x5f331d){if(_0x5f331d['batch']['isUndo']||!_0x5f331d['batch']['isLocal'])return!0x1;const _0xe5bdeb=this['editor']['model']['document']['differ'],_0x42c587=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x42c587['trackChangesCommand']['value'])return!0x1;let _0x25621e=!0x1;const _0x4894ee=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x1761c9=_0xe5bdeb['getChanges']()['filter'](_0x4bd06c=>'attribute'==_0x4bd06c['type'])['filter'](_0x453833=>_0x4894ee['has'](_0x453833['attributeKey']));if(0x0==_0x1761c9['length'])return _0x25621e;const _0x5bee5d=new Set(_0xe5bdeb['getMarkersToAdd']()['filter'](_0xb5c460=>{if(!_0xb5c460['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x55d3ea=et(_0xb5c460['name'])['subType']['split']('|')[0x0];return _0x4894ee['has'](_0x55d3ea);})['map'](_0x506342=>et(_0x506342['name'])['id']));for(const _0x412cf3 of _0x1761c9){const _0x11239a=_0x42c587['_findSuggestions'](_0x412cf3['range'],'attribute')['filter'](_0x55f35a=>{if(_0x55f35a['meta']['isNextTo'])return!0x1;if(_0x5bee5d['has'](_0x55f35a['suggestion']['id']))return!0x1;const _0x17c89a=_0x42c587['_getAttributeKey'](_0x55f35a['suggestion']);return _0x4894ee['has'](_0x17c89a);})['map'](_0x2a7d80=>_0x2a7d80['suggestion']);if(_0x11239a['length']){for(const _0x54cf2a of _0x11239a)_0x5f331d['removeMarker'](_0x54cf2a['getFirstMarker']());_0x25621e=!0x0;}}return _0x25621e;}['assureChains'](){const _0xd5af2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x194d5d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x261d35;const _0x4724be=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xc7dc7d=>{if(_0xc7dc7d['data']['oldRange']||!_0xc7dc7d['data']['newRange'])return null;if(!_0xc7dc7d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e6081}=et(_0xc7dc7d['name']);if(!_0xd5af2e['hasSuggestion'](_0x1e6081))return null;const _0x373da3=_0xd5af2e['getSuggestion'](_0x1e6081);return _0x194d5d['includes'](_0x373da3['data']['key']);})['map'](_0x49e5a0=>{const {id:_0x481123}=et(_0x49e5a0['name']),_0x51e484=_0xd5af2e['getSuggestion'](_0x481123);return _0x261d35=_0x51e484['attributes']['groupId'],_0x51e484['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4724be['size'])return;const _0x16b232=_0xd5af2e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39193c=>'attribute'==_0x39193c['type']&&_0x39193c['data']&&_0x194d5d['includes'](_0x39193c['data']['key'])&&_0x39193c['attributes']['groupId']!=_0x261d35)['map'](_0x208179=>({'listItem':_0x208179['getFirstRange']()['start']['nodeAfter'],'groupId':_0x208179['attributes']['groupId']})),_0x5c0a02=new Set();for(const {groupId:_0x43bc9e,listItem:_0x240424}of _0x16b232)_0x4724be['has'](_0x240424)&&_0x5c0a02['add'](_0x43bc9e);for(const _0x342fbc of _0xd5af2e['getSuggestions']())_0x5c0a02['has'](_0x342fbc['attributes']['groupId'])&&_0x342fbc['setAttribute']('groupId',_0x261d35);}_supportLegacySuggestions(){const _0x3d6732=this['editor'],_0x47e5cc=_0x3d6732['locale'],_0x1fd24a=_0x3d6732['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fd24a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb828,_0x5d8318){const _0x5510eb=[];for(let _0x34e89a of _0xb828)_0x34e89a['start']['nodeAfter']===_0x34e89a['end']['parent']&&(_0x34e89a=_0x3d6732['model']['createRange'](_0x3d6732['model']['createPositionAt'](_0x34e89a['start']['nodeAfter'],0x0))),_0x5510eb['push'](_0x34e89a);_0x3d6732['model']['change'](_0x8d7557=>{const _0x45aab2=_0x3d6732['model']['document']['selection'],_0x5a79d0=Array['from'](_0x45aab2['getRanges']())['map'](_0x2581cf=>ot['fromRange'](_0x2581cf));_0x8d7557['setSelection'](_0x5510eb),_0x3d6732['commands']['get'](_0x5d8318['commandName'])['refresh'](),_0x5d8318['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d6732['execute'](_0x5d8318['commandName'],..._0x5d8318['commandParams']),_0x8d7557['setSelection'](_0x5a79d0);for(const _0xfa4ed7 of _0x5a79d0)_0xfa4ed7['detach']();});}),_0x1fd24a['descriptionFactory']['registerElementLabel'](function(_0x340044){const _0xf31c97=!_0x3d6732['model']['schema']['isObject'](_0x340044),_0x3c1543=_0x340044['previousSibling'],_0x289938=_0x340044['nextSibling'],_0x80b97=_0x340044['getAttribute']('listItemId'),_0x16b16a=!_0x3c1543||_0x3c1543['getAttribute']('listItemId')!==_0x80b97,_0xf4a4f2=!_0x289938||_0x289938['getAttribute']('listItemId')!==_0x80b97;return _0xf31c97&&Boolean(_0x80b97)&&_0x16b16a&&_0xf4a4f2;},_0x46da69=>Ot(_0x47e5cc,'ELEMENT_LIST_ITEM',_0x46da69));}_registerLegacyDescription(){const _0x15108b=this['editor'],_0x486638=_0x15108b['locale'];function _0x3a7d12(_0x487c3f){const _0x8dcedb=_0x15108b['commands']['get']('bulletedList')['value'],_0x5e6189=_0x15108b['commands']['get']('numberedList')['value'];return'numberedList'===_0x487c3f?_0x8dcedb:_0x5e6189;}_0x15108b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5a32d2){if('formatBlock'!=_0x5a32d2['type'])return;const {data:_0x59c3d4}=_0x5a32d2;if(!_0x59c3d4)return;let _0x105620,_0x3a3a81,_0x19e6b0,_0x1230d3;switch(_0x59c3d4['commandName']){case'bulletedList':_0x19e6b0=_0x59c3d4['commandParams'][0x0]['forceValue'],_0x1230d3=_0x3a7d12(_0x59c3d4['commandName']),_0x105620=_0x19e6b0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1230d3&&_0x15108b['config']['get']('list.multiBlock')||(_0x105620='*Change\x20to:*\x20%0'),_0x3a3a81={'type':'format','content':Ot(_0x486638,_0x105620,Ot(_0x486638,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19e6b0=_0x59c3d4['commandParams'][0x0]['forceValue'],_0x1230d3=_0x3a7d12(_0x59c3d4['commandName']),_0x105620=_0x19e6b0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1230d3&&_0x15108b['config']['get']('list.multiBlock')||(_0x105620='*Change\x20to:*\x20%0'),_0x3a3a81={'type':'format','content':Ot(_0x486638,_0x105620,Ot(_0x486638,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x105620='*Indent:*\x20%0',_0x3a3a81={'type':'format','content':Ot(_0x486638,_0x105620,Ot(_0x486638,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x105620=function(_0x286bf3){const _0x2cb955=_0x286bf3['getFirstRange']();let _0x3129d0=_0x2cb955['start']['nodeAfter'];for(;_0x3129d0&&_0x2cb955['containsItem'](_0x3129d0);){if(_0x3129d0['getAttribute']('listIndent')>0x0)return!0x1;_0x3129d0=_0x3129d0['nextSibling'];}return!0x0;}(_0x5a32d2)?Ot(_0x486638,'*Format:*\x20remove\x20from\x20%0',Ot(_0x486638,function(_0x1ee94d){return'ELEMENT_'+_0x1ee94d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5a32d2))):Ot(_0x486638,'*Outdent:*\x20%0',Ot(_0x486638,'ELEMENT_LIST_ITEM')),_0x3a3a81={'type':'format','content':_0x105620};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x59c3d4['multipleBlocks']&&(_0x105620='*Merge:*\x20%0',_0x3a3a81={'type':'deletion','content':Ot(_0x486638,_0x105620,Ot(_0x486638,'ELEMENT_LIST_ITEM'))});}return _0x3a3a81;});}};function Yt(_0x1bed6f){let _0xb727ca=_0x1bed6f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xb727ca;){const _0x5d5100=_0xb727ca['getAttribute']('listItemId');if(!_0x5d5100)return!0x1;if(_0x5d5100==_0x1bed6f['data']['newValue'])return'newValue';if(_0x5d5100==_0x1bed6f['data']['oldValue'])return'oldValue';_0xb727ca=_0xb727ca['previousSibling'];}return!0x1;}var Qt=class extends _0x5ef0cd{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22ade9=this['editor']['config']['get']('list.properties'),_0x194c96=this['editor']['plugins']['get']('TrackChangesEditing');_0x22ade9['styles']&&_0x194c96['enableDefaultAttributesIntegration']('listStyle'),_0x22ade9['reversed']&&_0x194c96['enableDefaultAttributesIntegration']('listReversed'),_0x22ade9['startIndex']&&_0x194c96['enableDefaultAttributesIntegration']('listStart');const _0x2b53e5={'type':'format','content':''};_0x194c96['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3fdd2b=this['editor']['locale'];_0x194c96['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x3fdd2b,'FORMAT_LIST_REVERSED')),_0x194c96['descriptionFactory']['registerDescriptionCallback'](_0x5aaf91=>{const {data:_0x1c48e9}=_0x5aaf91;if(_0x1c48e9&&'listReversed'==_0x1c48e9['key'])return null==_0x1c48e9['newValue']||0x0==_0x1c48e9['newValue']&&null==_0x1c48e9['oldValue']?_0x2b53e5:void 0x0;}),_0x194c96['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x3fdd2b,'FORMAT_LIST_START')),_0x194c96['descriptionFactory']['registerDescriptionCallback'](_0x2e4919=>{const {data:_0x4f2a12}=_0x2e4919;if(_0x4f2a12&&'listStart'==_0x4f2a12['key'])return null==_0x4f2a12['newValue']||0x1==_0x4f2a12['newValue']&&null==_0x4f2a12['oldValue']?_0x2b53e5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1fb594=>{if(_0x1fb594['batch']['isUndo'])return!0x1;let _0x2261d3=!0x1;const _0x1594e0=_0x194c96['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34dd90=>{const _0xd3c4bf=_0x194c96['_getAttributeKey'](_0x34dd90);return'listStart'==_0xd3c4bf||'listReversed'==_0xd3c4bf;});for(const _0x18176d of _0x1594e0){const _0x3e6993=_0x18176d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x3e6993&&'customNumbered'!=_0x3e6993&&(_0x194c96['_findSuggestions'](_0x18176d['getFirstRange'](),'attribute')['find'](_0x3076f8=>'listType'==_0x194c96['_getAttributeKey'](_0x3076f8['suggestion']))||(_0x1fb594['removeMarker'](_0x18176d['getFirstMarker']()),_0x2261d3=!0x0));}return _0x2261d3;}),this['_registerLegacyDescription']();}handleDescriptions(_0x56af29){const _0x2e2a0=this['editor']['locale'],{data:_0x10d3d}=_0x56af29,_0x3bae09={'type':'format','content':''};if(!_0x10d3d||'listStyle'!=_0x10d3d['key'])return;if(!_0x10d3d['oldValue'])return'default'==_0x10d3d['newValue']?_0x3bae09:{'type':'format','content':''+Ot(_0x2e2a0,'*Set\x20format:*\x20%0',Ot(_0x2e2a0,this['_getTranslationKeyForListStyle'](_0x10d3d['newValue'])))};if(!_0x10d3d['newValue']){if('default'==_0x10d3d['oldValue'])return _0x3bae09;let _0x5c1fc4=_0x56af29['head'];for(;_0x5c1fc4;){if(_0x5c1fc4['data']&&'listType'==_0x5c1fc4['data']['key']&&_0x5c1fc4['data']['newValue'])return _0x3bae09;_0x5c1fc4=_0x5c1fc4['next'];}return{'type':'format','content':''+Ot(_0x2e2a0,'*Remove\x20format:*\x20%0',Ot(_0x2e2a0,this['_getTranslationKeyForListStyle'](_0x10d3d['oldValue'])))};}if('default'!=_0x10d3d['newValue'])return{'type':'format','content':''+Ot(_0x2e2a0,'*Set\x20format:*\x20%0',Ot(_0x2e2a0,this['_getTranslationKeyForListStyle'](_0x10d3d['newValue'])))};let _0x1d73c1=_0x56af29['head'];for(;_0x1d73c1;){if(_0x1d73c1['data']&&'listType'==_0x1d73c1['data']['key']&&_0x1d73c1['data']['newValue']&&_0x1d73c1['data']['oldValue'])return _0x3bae09;_0x1d73c1=_0x1d73c1['next'];}return{'type':'format','content':Ot(_0x2e2a0,'*Set\x20format:*\x20%0',Ot(_0x2e2a0,'ELEMENT_'+_0x56af29['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x3d3d50=this['editor'],_0x262dc5=_0x3d3d50['locale'];_0x3d3d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x514cbc=>{if('formatBlock'!=_0x514cbc['type'])return;const {data:_0x1803dd}=_0x514cbc;if(!_0x1803dd)return;let _0x3a5187,_0x2c6be1;switch(_0x1803dd['commandName']){case'listStyle':_0x3a5187='*Change\x20to:*\x20%0',_0x2c6be1={'type':'format','content':Ot(_0x262dc5,_0x3a5187,Ot(_0x262dc5,this['_getTranslationKeyForListStyle'](_0x1803dd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a5187=_0x1803dd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c6be1={'type':'format','content':Ot(_0x262dc5,_0x3a5187)};break;case'listStart':_0x3a5187='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c6be1={'type':'format','content':Ot(_0x262dc5,_0x3a5187,_0x1803dd['commandParams'][0x0]['startIndex'])};}return _0x2c6be1;});}_getTranslationKeyForListStyle(_0x5a91f7){return'ELEMENT_'+(_0x387a91=_0x5a91f7,Zt['includes'](_0x387a91)?'bulleted':Jt['includes'](_0x387a91)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x5a91f7['toUpperCase']()['replace'](/-/g,'_');var _0x387a91;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x5ef0cd{afterInit(){const _0x2856d2=this['editor'];_0x2856d2['commands']['get']('emoji')&&_0x2856d2['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x5ef0cd{static get requires(){return[Tt];}init(){const _0x264690=this['editor'],_0x1c4cad=_0x264690['plugins']['get']('TrackChangesEditing'),_0x3de9c4=_0x264690['commands']['get']('enter');_0x1c4cad['enableCommand']('enter',()=>{_0x264690['model']['change'](_0x5f5834=>{const _0x598012=_0x264690['model']['document']['selection'],_0x5a6c12=_0x598012['getFirstPosition'](),_0x48c785=ot['fromRange'](_0x598012['getFirstRange']());if(_0x3de9c4['enterBlock'](_0x5f5834)){const _0x1bc805=_0x264690['model']['createPositionAt'](_0x5a6c12['parent']['nextSibling'],0x0),_0x488fc5=_0x5f5834['createRange'](_0x5a6c12,_0x1bc805);_0x1c4cad['markInsertion'](_0x488fc5);}else _0x5f5834['setSelection'](_0x5f5834['createRange'](_0x48c785['end']));_0x48c785['detach'](),_0x3de9c4['fire']('afterExecute',{'writer':_0x5f5834});});});}},ne=class extends _0x5ef0cd{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4d005c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d005c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4d005c['enableCommand']('findNext'),_0x4d005c['enableCommand']('findPrevious'),_0x4d005c['enableCommand']('replace'),_0x4d005c['enableCommand']('replaceAll');}['handleFindCommand'](_0x186c86,_0x14c77b,_0x514149={}){const _0x90d7a5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x186c86(_0x259c4e=>{let _0x112a29=('string'==typeof _0x14c77b?_0x90d7a5['findByTextCallback'](_0x14c77b,_0x514149):_0x14c77b)(_0x259c4e);Array['isArray'](_0x112a29)&&(_0x112a29={'results':_0x112a29,'searchText':'string'==typeof _0x14c77b?_0x14c77b:''});const _0x48edca=_0x112a29['results']['filter'](_0x45e2f4=>!0x1===this['_isInDeletionRange'](_0x45e2f4,_0x259c4e['item']));return{..._0x112a29,'results':_0x48edca};},_0x514149);}_isInDeletionRange(_0x5477f7,_0x1804e2){const _0x311baa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1804e2,_0x5477f7['start']),this['editor']['model']['createPositionAt'](_0x1804e2,_0x5477f7['end']));for(const _0x3d145b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x311baa['getIntersection'](_0x3d145b['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x5ef0cd{afterInit(){const _0x332e0a=this['editor']['locale'],_0x42c96d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe504c,commandName:_0x3a86fa}of ie)this['editor']['plugins']['has'](_0xe504c)&&_0x42c96d['enableDefaultAttributesIntegration'](_0x3a86fa);_0x42c96d['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x332e0a,'FORMAT_FONT_SIZE')),_0x42c96d['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x332e0a,'FORMAT_FONT_FAMILY')),_0x42c96d['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x332e0a,'FORMAT_FONT_COLOR')),_0x42c96d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x332e0a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x399435=this['editor'],_0x47af64=_0x399435['locale'];_0x399435['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ccd58=>{const _0x5088f6=_0x47af64['t'];if('formatInline'!=_0x5ccd58['type'])return;const {data:_0x9bcb46}=_0x5ccd58;if(null!=_0x9bcb46){if('fontSize'==_0x9bcb46['commandName']){const _0x51329d=_0x9bcb46['commandParams'][0x0]['value'];if(_0x51329d){const _0x15748b=_0x5088f6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x56f92f=>_0x56f92f['model']==_0x51329d)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x47af64,'*Set\x20font\x20size:*\x20%0',_0x15748b)};}return{'type':'format','content':Ot(_0x47af64,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x9bcb46['commandName']){const _0x32dc49=_0x9bcb46['commandParams'][0x0]['value'];return _0x32dc49?{'type':'format','content':Ot(_0x47af64,'*Set\x20font\x20family:*\x20%0',_0x32dc49)}:{'type':'format','content':Ot(_0x47af64,'*Reset\x20font\x20family*')};}if('fontColor'==_0x9bcb46['commandName']){const _0x36c7e3=_0x9bcb46['commandParams'][0x0]['value'];if(_0x36c7e3){const _0x440fad=_0x4145bf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x230066=>_0x230066['model']==_0x36c7e3);let _0xd9cdb5=_0x36c7e3,_0x4df2c5='';return _0x440fad&&(_0xd9cdb5=_0x440fad['label'],_0x4df2c5=_0x5088f6(_0xd9cdb5)['toLowerCase']()),{'type':'format','content':Ot(_0x47af64,'*Set\x20font\x20color:*\x20%0',_0x4df2c5)['trim'](),'color':{'value':_0x36c7e3,'title':_0x4df2c5||_0xd9cdb5}};}return{'type':'format','content':Ot(_0x47af64,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x9bcb46['commandName']){const _0x193f08=_0x9bcb46['commandParams'][0x0]['value'];if(_0x193f08){const _0x5d1e8b=_0x4145bf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x131e79=>_0x131e79['model']==_0x193f08);let _0x52c344=_0x193f08,_0x1efd1e='';return _0x5d1e8b&&(_0x52c344=_0x5d1e8b['label'],_0x1efd1e=_0x5088f6(_0x52c344)['toLowerCase']()),{'type':'format','content':Ot(_0x47af64,'*Set\x20font\x20background\x20color:*\x20%0',_0x1efd1e)['trim'](),'color':{'value':_0x193f08,'title':_0x1efd1e||_0x52c344}};}return{'type':'format','content':Ot(_0x47af64,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x5ef0cd{afterInit(){const {plugins:_0x7f8caa}=this['editor'];_0x7f8caa['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x7f8caa['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x46c1de,plugins:_0xb80425,commands:_0x3db94f}=this['editor'],_0x9456f8=_0xb80425['get']('TrackChangesEditing');_0x3db94f['get']('footnotesStyle')&&_0x9456f8['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3db94f['get']('footnotesStart')&&_0x9456f8['enableDefaultAttributesIntegration']('footnotesStart'),_0x9456f8['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x46c1de,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x9456f8['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x46c1de,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x465998=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x35422f,commands:_0x1805b3}=this['editor'];_0x1805b3['get']('insertFootnote')&&_0x465998['enableCommand']('insertFootnote'),_0x465998['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3e4b46=>Ot(_0x35422f,'ELEMENT_FOOTNOTE_REF',_0x3e4b46)),_0x465998['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3c7888=>Ot(_0x35422f,'ELEMENT_FOOTNOTE_DEFINITION',_0x3c7888)),_0x465998['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5dcddc=>Ot(_0x35422f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5dcddc));}},oe=class extends _0x5ef0cd{afterInit(){const _0x52ceb2=this['editor'],_0x5bb850=_0x52ceb2['plugins']['get']('TrackChangesEditing'),_0x57d3d0=_0x52ceb2['commands']['get']('copyFormat'),_0x474bb6=_0x52ceb2['commands']['get']('pasteFormat');_0x57d3d0&&_0x474bb6&&(_0x5bb850['enableDefaultAttributesIntegration']('pasteFormat'),_0x5bb850['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x50ba08=this['editor'],_0x31f168=_0x50ba08['locale'];_0x50ba08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe33883=>{if('formatBlock'!=_0xe33883['type']&&'formatInline'!=_0xe33883['type'])return;const {data:_0x9e48fe}=_0xe33883;if(_0x9e48fe&&'pasteFormat'===_0x9e48fe['commandName']){const _0x20f273=[],_0x35b2c7=_0x9e48fe['commandParams'][0x0];for(const [_0x40857d,_0x220147]of Object['entries'](_0x35b2c7))_0x20f273['push'](ae(_0x50ba08,_0x40857d,_0x220147));return _0x20f273['length']?{'type':'format','content':Ot(_0x31f168,'*Set\x20format\x20to:*\x20%0',_0x20f273['join'](',\x20'))}:{'type':'format','content':Ot(_0x31f168,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x3e632f,_0x2bab9e,_0x1e7700){const _0x109f29=_0x3e632f['locale']['t'],_0x2dc12a=_0x2bab9e['split'](/(?=[A-Z])/)['join']('\x20'),_0x5c3f4f=_0x109f29(_0x2dc12a['charAt'](0x0)['toUpperCase']()+_0x2dc12a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1e7700)return _0x5c3f4f;if('fontColor'===_0x2bab9e||'fontBackgroundColor'===_0x2bab9e){const _0x17a5c6=_0x4145bf(_0x3e632f['config']['get']('fontColor.colors'))['find'](_0x31ac8c=>_0x31ac8c['model']==_0x1e7700);return _0x5c3f4f+'\x20('+(_0x17a5c6?_0x109f29(_0x17a5c6['label'])['toLowerCase']():_0x1e7700)+')';}if('fontSize'===_0x2bab9e&&isNaN(parseFloat(_0x1e7700))){const _0x3c6ef9=_0x3e632f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3e632f['config']['get']('fontSize.options'))['find'](_0x1cd0f1=>_0x1cd0f1['model']==_0x1e7700);return _0x5c3f4f+'\x20('+(_0x3c6ef9?_0x109f29(_0x3c6ef9['title'])['toLowerCase']():_0x1e7700)+')';}return _0x5c3f4f+'\x20('+_0x1e7700+')';}var ce=class extends _0x5ef0cd{afterInit(){const _0x1be0c0=this['editor'];if(!_0x1be0c0['plugins']['has']('GeneralHtmlSupport')||!_0x1be0c0['plugins']['has']('DataSchema'))return;const _0x3c3070=_0x1be0c0['plugins']['get']('TrackChangesEditing'),_0x2a4503=_0x1be0c0['plugins']['get']('GeneralHtmlSupport'),_0x2f4259=_0x1be0c0['plugins']['get']('DataSchema'),_0x212d68=_0x1be0c0['locale'],_0x319537=new Set(['htmlContent']);for(const _0x4ef67a of _0x2f4259['getDefinitionsForView'](/.*/,!0x1)){const _0x5dbe02=_0x4ef67a['view'],_0x434d77=_0x2a4503['getGhsAttributeNameForElement'](_0x5dbe02);_0x319537['add'](_0x434d77),!_0x4ef67a['isInline']||_0x4ef67a['isObject']||'appliesToBlock'in _0x4ef67a&&_0x4ef67a['appliesToBlock']||_0x3c3070['descriptionFactory']['registerAttributeLabel'](_0x434d77,_0x5dbe02),_0x4ef67a['model']['startsWith']('html')&&_0x3c3070['descriptionFactory']['registerElementLabel'](_0x4ef67a['model'],_0x1427f7=>Ot(_0x212d68,'ELEMENT_HTML_TAG',[_0x1427f7,_0x5dbe02]));}_0x3c3070['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x212d68,'FORMAT_RAW_HTML_CONTENT')),_0x3c3070['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x212d68,'FORMAT_HTML_LIST_ITEM')),_0x3c3070['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x212d68,'FORMAT_HTML_BULLETED_LIST')),_0x3c3070['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x212d68,'FORMAT_HTML_NUMBERED_LIST')),_0x3c3070['descriptionFactory']['registerDescriptionCallback'](_0x14cd80=>{if('attribute'!==_0x14cd80['type'])return;const _0x323332=_0x14cd80['data'];if(!_0x323332||!_0x319537['has'](_0x323332['key']))return;if('htmlContent'===_0x323332['key'])return{'type':'format','content':Ot(_0x212d68,'*Change\x20%0\x20content*',Ot(_0x212d68,'ELEMENT_RAW_HTML'))};const {setItems:_0x51f074,removeItems:_0x54f4a4}=function(_0x81758,_0x4a67a8,_0x34da74){const _0x95e2d2=[],_0x25a861=[],_0x42db5f=_0x81758['styles']??{},_0x12e5b7=_0x4a67a8['styles']??{};for(const _0x42b44c of new Set([...Object['keys'](_0x42db5f),...Object['keys'](_0x12e5b7)]))_0x42db5f[_0x42b44c]!==_0x12e5b7[_0x42b44c]&&(void 0x0===_0x12e5b7[_0x42b44c]?_0x25a861['push'](_0x42b44c):_0x95e2d2['push'](_0x42b44c+'\x20('+_0x12e5b7[_0x42b44c]+')'));const _0x5d40ed=Ot(_0x34da74,'FORMAT_HTML_CLASS'),_0x20812b=new Set(_0x81758['classes']??[]),_0x104cf5=new Set(_0x4a67a8['classes']??[]),_0x46e9d7=[..._0x104cf5]['some'](_0x4437ee=>!_0x20812b['has'](_0x4437ee)),_0x323d83=[..._0x20812b]['some'](_0x2e1393=>!_0x104cf5['has'](_0x2e1393));_0x46e9d7&&_0x95e2d2['push'](_0x5d40ed),_0x323d83&&_0x25a861['push'](_0x5d40ed);const _0x1f0d50=Ot(_0x34da74,'FORMAT_HTML_ATTRIBUTE'),_0x438e57=_0x81758['attributes']??{},_0x44947d=_0x4a67a8['attributes']??{};let _0x35c337=!0x1,_0x5e3de6=!0x1;for(const _0x11992b of new Set([...Object['keys'](_0x438e57),...Object['keys'](_0x44947d)]))_0x438e57[_0x11992b]!==_0x44947d[_0x11992b]&&(void 0x0===_0x44947d[_0x11992b]?_0x5e3de6=!0x0:_0x35c337=!0x0);return _0x35c337&&_0x95e2d2['push'](_0x1f0d50),_0x5e3de6&&_0x25a861['push'](_0x1f0d50),{'setItems':_0x95e2d2,'removeItems':_0x25a861};}(_0x323332['oldValue']??{},_0x323332['newValue']??{},_0x212d68);if(!_0x51f074['length']&&!_0x54f4a4['length'])return;const _0x780554=[];return _0x51f074['length']&&_0x780554['push'](Ot(_0x212d68,'*Set\x20format:*\x20%0',_0x51f074['join'](',\x20'))),_0x54f4a4['length']&&_0x780554['push'](Ot(_0x212d68,'*Remove\x20format:*\x20%0',_0x54f4a4['join'](',\x20'))),{'type':'format','content':_0x780554['join']('\x0a')};});}},le=class extends _0x5ef0cd{_headingOptions;afterInit(){const _0x549b99=this['editor'];if(!_0x549b99['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x549b99['config']['get']('heading.options');const _0x549546=_0x549b99['locale'],_0x1c22bc=_0x549b99['plugins']['get']('TrackChangesEditing');_0x1c22bc['enableDefaultAttributesIntegration']('heading');for(const _0x4fa68e of this['_headingOptions'])'paragraph'!=_0x4fa68e['model']&&_0x1c22bc['descriptionFactory']['registerElementLabel'](_0x4fa68e['model'],_0x5f067c=>{const _0x2063b=this['_getHeadingLevel'](_0x4fa68e['model']);return null!==_0x2063b?_0x309f7f(_0x5f067c,_0x2063b):_0x4ade13(_0x5f067c,_0x4fa68e['title']);});function _0x309f7f(_0x558d1e,_0x5eb964){return Ot(_0x549546,'ELEMENT_HEADING',[_0x558d1e,_0x5eb964]);}function _0x4ade13(_0x44ca79,_0x4d81ef){return Ot(_0x549546,'ELEMENT_HEADING_CUSTOM',[_0x44ca79,_0x4d81ef]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x48027b=this['editor'],_0x145057=_0x48027b['locale'];function _0x111dc5(_0x7fdd55,_0x1d6740){return Ot(_0x145057,'ELEMENT_HEADING_CUSTOM',[_0x7fdd55,_0x1d6740]);}_0x48027b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc1f46e=>{if('formatBlock'!=_0xc1f46e['type'])return;const {data:_0x5ef9bf}=_0xc1f46e;if(_0x5ef9bf&&'heading'==_0x5ef9bf['commandName']){const _0x50aca5=_0x5ef9bf['commandParams'][0x0]['value'],_0x4c6b6b=this['_getHeadingLevel'](_0x50aca5);if(null!==_0x4c6b6b)return{'type':'format','content':Ot(_0x145057,'*Change\x20to:*\x20%0',(_0xf817f4=0x1,_0x50bfa2=_0x4c6b6b,Ot(_0x145057,'ELEMENT_HEADING',[_0xf817f4,_0x50bfa2])))};const _0x557277=this['_headingOptions']['find'](_0x4ae951=>_0x4ae951['model']===_0x50aca5)['title'];return{'type':'format','content':Ot(_0x145057,'*Change\x20to:*\x20%0',_0x111dc5(0x1,_0x557277))};}var _0xf817f4,_0x50bfa2;});}_getHeadingLevel(_0x112fda){const _0x4cd2a8=_0x112fda['match'](/^heading(\d+)/);if(_0x4cd2a8)return _0x4cd2a8[0x1];const _0x405cd5=this['_headingOptions']?.['find'](_0x3e88c6=>_0x3e88c6['model']==_0x112fda);if(_0x405cd5&&_0x405cd5['view']){const _0x1bac12=_0x405cd5['view'],_0x3454b8=(_0x1bac12['name']??_0x1bac12)['match'](/^h(\d+)/);if(_0x3454b8)return _0x3454b8[0x1];}return null;}},ue=class extends _0x5ef0cd{afterInit(){const _0x1050de=this['editor'];if(!_0x1050de['plugins']['has']('HighlightEditing'))return;const _0x117a00=_0x1050de['plugins']['get']('TrackChangesEditing'),_0x413cb3=_0x1050de['locale'];_0x117a00['enableDefaultAttributesIntegration']('highlight'),_0x117a00['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x413cb3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x534739=this['editor'],_0x229a27=_0x534739['locale'];_0x534739['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x216e8e=>{if('formatInline'!=_0x216e8e['type'])return;const {data:_0x27b47f}=_0x216e8e;if(_0x27b47f&&'highlight'==_0x27b47f['commandName']){const _0x39f114=_0x229a27['t'],_0x48b8b2=_0x27b47f['commandParams'][0x0]['value'];if(_0x48b8b2){const _0x37ad77=_0x534739['config']['get']('highlight.options')['find'](_0x20aa7c=>_0x20aa7c['model']==_0x48b8b2),_0x164779=_0x39f114(_0x37ad77['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x229a27,'*Set\x20highlight:*\x20%0',_0x164779),'color':{'value':_0x37ad77['color'],'title':_0x37ad77['title']}};}return{'type':'format','content':Ot(_0x229a27,'*Remove\x20highlight*',Ot(_0x229a27,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x5ef0cd{afterInit(){const _0x921298=this['editor'];if(!_0x921298['plugins']['has']('HorizontalLineEditing'))return;_0x921298['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xbd594a=_0x921298['plugins']['get']('TrackChangesEditing'),_0x10d82d=_0x921298['locale'];_0xbd594a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x294489=>Ot(_0x10d82d,'ELEMENT_HORIZONTAL_LINE',_0x294489));}},he=class extends _0x5ef0cd{afterInit(){const _0x2d64f9=this['editor'];if(!_0x2d64f9['plugins']['has']('HtmlEmbed'))return;const _0x25546c=_0x2d64f9['plugins']['get']('TrackChangesEditing'),_0x261e4f=_0x2d64f9['locale'];_0x25546c['descriptionFactory']['registerElementLabel']('rawHtml',_0x1eb98f=>Ot(_0x261e4f,'ELEMENT_HTML_EMBED',_0x1eb98f)),_0x25546c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x25546c['descriptionFactory']['registerDescriptionCallback'](_0x5b9f0f=>{if('attribute'!=_0x5b9f0f['type'])return;const {data:_0x32f937}=_0x5b9f0f;if(_0x32f937&&'value'==_0x32f937['key']&&_0x5b9f0f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b034a=Ot(_0x261e4f,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x261e4f,'*Change\x20%0\x20content*',_0x2b034a)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x57bfc2=this['editor'],_0x29c1e2=_0x57bfc2['locale'];_0x57bfc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f0c86=>{if('formatBlock'!=_0x5f0c86['type'])return;const {data:_0x1ca932}=_0x5f0c86;if(_0x1ca932&&'htmlEmbed'==_0x1ca932['commandName']){const _0x574a8b=Ot(_0x29c1e2,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x29c1e2,'*Change\x20%0\x20content*',_0x574a8b)};}});}},ge=class extends _0x5ef0cd{afterInit(){const _0x470130=this['editor'];if(!_0x470130['plugins']['has']('ImageEditing'))return;const _0x1432c3=_0x470130['plugins']['get']('TrackChangesEditing'),_0x57c19c=_0x470130['plugins']['get']('ImageUtils'),_0xe50bc2=_0x470130['locale'];_0x1432c3['enableCommand']('insertImage'),_0x1432c3['descriptionFactory']['registerElementLabel']('imageBlock',_0xcd777d=>Ot(_0xe50bc2,'ELEMENT_IMAGE',_0xcd777d)),_0x1432c3['descriptionFactory']['registerElementLabel']('imageInline',_0x34f433=>Ot(_0xe50bc2,'ELEMENT_INLINE_IMAGE',_0x34f433)),_0x1432c3['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0xe50bc2,'ELEMENT_CAPTION')),_0x470130['plugins']['has']('ImageUploadEditing')&&_0x1432c3['enableCommand']('uploadImage'),_0x470130['plugins']['has']('ImageBlockEditing')&&_0x470130['plugins']['has']('ImageInlineEditing')&&(_0x1432c3['enableCommand']('imageTypeInline',(_0x2f21bb,_0x5351a6)=>{const _0x1e5119=_0x57c19c['getClosestSelectedImageElement'](_0x470130['model']['document']['selection']);_0x470130['model']['change'](()=>{_0x1432c3['markBlockFormat'](_0x1e5119,{'commandName':'imageTypeInline','commandParams':[_0x5351a6]},[],'convertBlockImageToInline');});}),_0x1432c3['enableCommand']('imageTypeBlock',(_0x39e0f2,_0x159bd4)=>{_0x470130['model']['change'](_0x117259=>{let _0x34d6b8=_0x57c19c['getClosestSelectedImageElement'](_0x470130['model']['document']['selection']),_0x5851ab=_0x117259['createRangeOn'](_0x34d6b8);const _0x681170=rt['fromPosition'](_0x5851ab['start'],'toPrevious'),_0x1ab49e=rt['fromPosition'](_0x5851ab['end'],'toNext');_0x1432c3['forceDefaultExecution'](()=>_0x39e0f2(_0x159bd4)),_0x34d6b8=_0x57c19c['getClosestSelectedImageElement'](_0x470130['model']['document']['selection']),_0x5851ab=_0x117259['createRangeOn'](_0x34d6b8);const _0x31aaf5=_0x117259['createRange'](_0x681170,_0x1ab49e);_0x681170['detach'](),_0x1ab49e['detach'](),_0x1432c3['markBlockFormat'](_0x34d6b8,{'commandName':'imageTypeInline','commandParams':[_0x159bd4]},[],'convertInlineImageToBlock'),_0x31aaf5['start']['isBefore'](_0x5851ab['start'])&&_0x1432c3['markInsertion'](_0x117259['createRange'](_0x31aaf5['start'],_0x5851ab['start']),'convertInlineImageToBlock'),_0x5851ab['end']['isBefore'](_0x31aaf5['end'])&&_0x1432c3['markInsertion'](_0x117259['createRange'](_0x5851ab['end'],_0x31aaf5['end']),'convertInlineImageToBlock');});}),_0x1432c3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1432c3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1432c3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1432c3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1432c3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1432c3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e9e6a])=>{const _0x413901=_0x1432c3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1bde5c=_0x3e9e6a['start'],_0x21b14b=_0x3e9e6a['end'];const _0x8b6cb7=_0x470130['model']['schema']['getNearestSelectionRange'](_0x1bde5c,'backward'),_0x32bf91=_0x470130['model']['schema']['getNearestSelectionRange'](_0x21b14b,'forward');_0x8b6cb7['isCollapsed']&&(_0x1bde5c=_0x8b6cb7['start']),_0x32bf91['isCollapsed']&&(_0x21b14b=_0x32bf91['end']),_0x413901([_0x470130['model']['createRange'](_0x1bde5c,_0x21b14b)]);}),_0x1432c3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13d2f6),_0x1432c3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13d2f6)),_0x470130['plugins']['has']('ImageCaptionEditing')&&(_0x1432c3['enableCommand']('toggleImageCaption',(_0xde6730,_0x559e7c)=>{const _0xca1847=_0x470130['plugins']['get']('ImageCaptionUtils');let _0x387e65=_0x57c19c['getClosestSelectedImageElement'](_0x470130['model']['document']['selection']),_0xa6a4a3=_0xca1847['getCaptionFromImageModelElement'](_0x387e65);_0x470130['model']['change'](()=>{if(_0xa6a4a3)return void _0x1432c3['markDeletion'](_0x470130['model']['createRangeOn'](_0xa6a4a3));const _0x2a6a70=_0x57c19c['isBlockImage'](_0x387e65);_0xde6730(_0x559e7c),_0x387e65=_0x57c19c['getClosestSelectedImageElement'](_0x470130['model']['document']['selection']),_0xa6a4a3=_0xca1847['getCaptionFromImageModelElement'](_0x387e65),_0x1432c3['markInsertion'](_0x470130['model']['createRangeOn'](_0xa6a4a3),_0x2a6a70?null:'imageCaption');});}),_0x1432c3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13d2f6));const _0x2b65d4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3bc9f1(_0x17599d,_0x34f9b6){const _0x4d4581=_0x2b65d4['findIndex'](({type:_0x3b5aee,subType:_0x363e05})=>_0x17599d['type']==_0x3b5aee&&_0x17599d['subType']==_0x363e05),_0x343df6=_0x2b65d4['findIndex'](({type:_0xdf6316,subType:_0x2d84f6})=>_0x34f9b6['type']==_0xdf6316&&_0x34f9b6['subType']==_0x2d84f6);if(_0x4d4581<0x0||_0x343df6<0x0)return!0x1;const _0x2ea0d3=_0x17599d['getFirstRange'](),_0x1b8346=_0x34f9b6['getFirstRange']();if((0x0==_0x4d4581||0x1==_0x4d4581)&&0x2==_0x343df6&&_0x2ea0d3['isIntersecting'](_0x1b8346))return!0x0;if(0x2==_0x4d4581&&0x3==_0x343df6){const _0x2d15c3=_0x1432c3['_findSuggestions'](_0x2ea0d3,'insertion')['filter'](({suggestion:_0x412566,meta:_0x10e6f9})=>_0x10e6f9['isOwn']&&'convertInlineImageToBlock'==_0x412566['subType']);if(_0x2d15c3['length']>0x1&&_0x1b8346['end']['isEqual'](_0x2ea0d3['start']))return!0x0;if(0x1==_0x2d15c3['length']&&(_0x2ea0d3['start']['isEqual'](_0x1b8346['end'])||_0x2ea0d3['end']['isEqual'](_0x1b8346['start'])))return!0x0;}if(0x3==_0x4d4581&&0x3==_0x343df6&&_0x2ea0d3['start']['isBefore'](_0x1b8346['start'])){const _0x3cd3a6=_0x2ea0d3['end']['nodeAfter'],_0x3550cc=_0x1b8346['start']['nodeBefore'];return _0x57c19c['isBlockImage'](_0x3cd3a6)&&_0x3cd3a6===_0x3550cc;}return!0x1;}function _0x13d2f6(_0x263cb6,_0x4953d1){return _0x3bc9f1(_0x263cb6,_0x4953d1)?[_0x263cb6,_0x4953d1]:_0x3bc9f1(_0x4953d1,_0x263cb6)?[_0x4953d1,_0x263cb6]:null;}_0x470130['plugins']['has']('ImageResize')&&(_0x1432c3['enableDefaultAttributesIntegration']('resizeImage'),_0x1432c3['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0xe50bc2,'FORMAT_IMAGE_SIZE'))),_0x470130['plugins']['has']('ImageTextAlternativeEditing')&&_0x1432c3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x470130['plugins']['has']('PictureEditing')&&_0x1432c3['descriptionFactory']['registerDescriptionCallback'](_0x2dd565=>{if('attribute'!=_0x2dd565['type'])return;const {data:_0x3f7cf7}=_0x2dd565;return _0x3f7cf7&&'sources'==_0x3f7cf7['key']?{'type':'format','content':''}:void 0x0;}),_0x470130['plugins']['has']('ImageSizeAttributes')&&_0x1432c3['descriptionFactory']['registerDescriptionCallback'](_0x25aca4=>{if('attribute'!=_0x25aca4['type'])return;const {data:_0x131a3d}=_0x25aca4;return!_0x131a3d||'width'!=_0x131a3d['key']&&'height'!=_0x131a3d['key']?void 0x0:{'type':'format','content':''};}),_0x1432c3['descriptionFactory']['registerDescriptionCallback'](_0x1e3be1=>{if(_0x2b65d4['find'](({type:_0x2e778f,subType:_0xea39})=>_0x1e3be1['type']==_0x2e778f&&_0x1e3be1['subType']==_0xea39))return _0x1e3be1['previous']?{}:void 0x0;}),_0x1432c3['descriptionFactory']['registerDescriptionCallback'](_0x652c6a=>{if('insertion'==_0x652c6a['type']||'deletion'==_0x652c6a['type']){const _0x2a9533=_0x652c6a['getContainedElement']();if(_0x2a9533&&_0x2a9533['is']('element','caption'))return{'type':'insertion'==_0x652c6a['type']?'addObject':'removeObject','element':_0x2a9533,'quantity':0x1};}}),_0x1432c3['descriptionFactory']['registerDescriptionCallback'](_0x1e9f7a=>'formatBlock'==_0x1e9f7a['type']&&'convertInlineImageToBlock'==_0x1e9f7a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1e9f7a['type']&&'convertBlockImageToInline'==_0x1e9f7a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1432c3['descriptionFactory']['registerDescriptionCallback'](_0x8df700=>{if('attribute'!=_0x8df700['type'])return;const {data:_0x5c3181}=_0x8df700;if(!_0x5c3181||'alt'!=_0x5c3181['key'])return;const _0x3f6831=_0x5c3181['newValue'];return _0x3f6831?{'type':'format','content':Ot(_0xe50bc2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f6831+'\x22')}:{'type':'format','content':Ot(_0xe50bc2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1a8a30=this['editor'],_0x2adb04=_0x1a8a30['locale'];_0x1a8a30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dbf26=>{if('formatBlock'!=_0x4dbf26['type']&&'formatInline'!=_0x4dbf26['type'])return;const {data:_0x59bd99}=_0x4dbf26;if(_0x59bd99){if('imageTextAlternative'==_0x59bd99['commandName']){const _0x4fb75e=_0x59bd99['commandParams'][0x0]['newValue'];return _0x4fb75e?{'type':'format','content':Ot(_0x2adb04,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4fb75e+'\x22')}:{'type':'format','content':Ot(_0x2adb04,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x59bd99['commandName']){const _0xca8f55=_0x59bd99['commandParams'][0x0]['width'];return _0xca8f55?{'type':'format','content':Ot(_0x2adb04,'*Set\x20image\x20width:*\x20%0',_0xca8f55)}:{'type':'format','content':Ot(_0x2adb04,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x5ef0cd{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x254e01=this['editor']['locale'],_0x334e6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x334e6f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x334e6f['descriptionFactory']['registerDescriptionCallback'](_0x6dd76e=>{if('attribute'!=_0x6dd76e['type'])return;const {data:_0x3a535c}=_0x6dd76e;return _0x3a535c&&'src'==_0x3a535c['key']?_0x3a535c['newValue']&&_0x3a535c['oldValue']?{'type':'format','content':Ot(_0x254e01,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x5d42b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d42b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d42b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d42b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d42b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xcb283=this['editor'],_0x1a5641=_0xcb283['locale'];_0xcb283['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57dcbe=>{if('formatBlock'!=_0x57dcbe['type']&&'formatInline'!=_0x57dcbe['type'])return;const {data:_0x2ebb18}=_0x57dcbe;return _0x2ebb18&&'replaceImageSource'==_0x2ebb18['commandName']?{'type':'format','content':Ot(_0x1a5641,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x5ef0cd{afterInit(){const _0x4f80b=this['editor'];if(!_0x4f80b['plugins']['has']('ImageStyleEditing'))return;const _0x38a5c2=_0x4f80b['plugins']['get']('TrackChangesEditing'),_0x183860=_0x4f80b['plugins']['get']('ImageUtils'),_0x163aa6={};_0x38a5c2['enableCommand']('imageStyle',(_0x567766,_0x2d2fa9)=>{const _0x35fb3b=_0x4f80b['plugins']['get']('Users')['me'],_0x3129a3=_0x4f80b['commands']['get']('imageStyle');let _0x37986d=_0x183860['getClosestSelectedImageElement'](_0x4f80b['model']['document']['selection']),_0x4e40bc=_0x4f80b['model']['createRangeOn'](_0x37986d),_0x221cf3=_0x3129a3['value'];if(_0x221cf3==_0x2d2fa9['value'])return;if(_0x2d2fa9['value']&&_0x183860['isInlineImage'](_0x37986d)&&!_0x3129a3['isStyleEnabled'](_0x2d2fa9['value']))return;const _0xdcba5d={'commandName':'imageStyle','commandParams':[_0x2d2fa9],'formatGroupId':_0x2a260a()};_0x4f80b['model']['change'](()=>{if(_0x38a5c2['getSuggestions']()['filter'](_0x42f118=>_0x42f118['isInContent']&&_0x35fb3b==_0x42f118['author']&&('formatBlock'==_0x42f118['type']||'formatInline'==_0x42f118['type'])&&('imageStylePreApply'==_0x42f118['subType']||'imageStylePostApply'==_0x42f118['subType'])&&_0x42f118['getFirstRange']()['isEqual'](_0x4e40bc))['forEach'](_0x3ea68a=>_0x38a5c2['discardSuggestion'](_0x3ea68a['head'])),_0x37986d=_0x183860['getClosestSelectedImageElement'](_0x4f80b['model']['document']['selection']),_0x4e40bc=_0x4f80b['model']['createRangeOn'](_0x37986d),_0x3129a3['refresh'](),_0x4f80b['commands']['get']('imageTypeInline')['refresh'](),_0x4f80b['commands']['get']('imageTypeBlock')['refresh'](),_0x221cf3=_0x3129a3['value'],_0x221cf3!=_0x2d2fa9['value'])return _0x183860['isInlineImage'](_0x37986d)&&_0x3129a3['shouldConvertImageType'](_0x2d2fa9['value'],_0x37986d)?(_0x567766({..._0x2d2fa9,'setImageSizes':!0x1}),_0x37986d=_0x183860['getClosestSelectedImageElement'](_0x4f80b['model']['document']['selection']),void _0x38a5c2['markBlockFormat'](_0x37986d,{..._0xdcba5d,'commandReversedParams':[{'value':_0x221cf3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x183860['isBlockImage'](_0x37986d)?_0x38a5c2['markBlockFormat'](_0x37986d,_0xdcba5d,[],'imageStylePostApply'):_0x38a5c2['markInlineFormat'](_0x4e40bc,_0xdcba5d,'imageStylePostApply'));});});for(const _0x4f7868 of _0x4f80b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x163aa6[_0x4f7868['name']]=_0x4f7868['title']['toLowerCase']();_0x38a5c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x38a5c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x38a5c2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x38a5c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x424719])=>{_0x183860['setImageNaturalSizeAttributes'](_0x424719['getContainedElement']());}),_0x38a5c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3cb42b,_0x4ab130)=>{_0x38a5c2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3cb42b,{'commandName':_0x4ab130['commandName'],'commandParams':_0x4ab130['commandReversedParams']});}),_0x38a5c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52e673,_0xfaa9fb){return _0x3e6fc9(_0x52e673,_0xfaa9fb)?[_0x52e673,_0xfaa9fb]:_0x3e6fc9(_0xfaa9fb,_0x52e673)?[_0xfaa9fb,_0x52e673]:null;});const _0x3cc599=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e6fc9(_0x12964d,_0x12b0dc){const _0x44df86=_0x3cc599['findIndex'](({type:_0x1c468b,subType:_0x358359})=>_0x12964d['type']==_0x1c468b&&_0x12964d['subType']==_0x358359),_0x1766c7=_0x3cc599['findIndex'](({type:_0x4c6f19,subType:_0x18d902})=>_0x12b0dc['type']==_0x4c6f19&&_0x12b0dc['subType']==_0x18d902);if(_0x44df86<0x0||_0x1766c7<0x0)return!0x1;const _0x2d4ee6=_0x12964d['getFirstRange'](),_0x561b98=_0x12b0dc['getFirstRange']();if((0x0==_0x44df86||0x1==_0x44df86)&&0x2==_0x1766c7&&_0x2d4ee6['isIntersecting'](_0x561b98))return!0x0;if(0x2==_0x44df86&&0x3==_0x1766c7){const _0x3f0872=_0x38a5c2['_findSuggestions'](_0x2d4ee6,'insertion')['filter'](({suggestion:_0x1ed062,meta:_0x4b7ba9})=>_0x4b7ba9['isOwn']&&'convertInlineImageToBlock'==_0x1ed062['subType']);if(_0x3f0872['length']>0x1&&_0x561b98['end']['isEqual'](_0x2d4ee6['start']))return!0x0;if(0x1==_0x3f0872['length']&&(_0x2d4ee6['start']['isEqual'](_0x561b98['end'])||_0x2d4ee6['end']['isEqual'](_0x561b98['start'])))return!0x0;}if(0x3==_0x44df86&&0x3==_0x1766c7&&_0x2d4ee6['start']['isBefore'](_0x561b98['start'])){const _0x1120b1=_0x2d4ee6['end']['nodeAfter'],_0x1ffe80=_0x561b98['start']['nodeBefore'];return _0x183860['isBlockImage'](_0x1120b1)&&_0x1120b1===_0x1ffe80;}return!0x1;}_0x4f80b['model']['document']['registerPostFixer'](()=>{let _0xb74524=!0x1;const _0x29d957=Array['from'](_0x4f80b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d1ec1,data:_0x193880}of _0x29d957){const {group:_0x325716,type:_0x2e250d,subType:_0x1269cf,id:_0x55cd6b}=et(_0x3d1ec1);if('suggestion'==_0x325716&&_0x38a5c2['hasSuggestion'](_0x55cd6b)){if('formatBlock'==_0x2e250d&&('imageStylePreApply'==_0x1269cf||'imageStylePostApply'==_0x1269cf)){const _0x5ea6cc=_0x38a5c2['getSuggestion'](_0x55cd6b);if(_0x193880['newRange']){const _0x205c47=_0x5ea6cc['getFirstRange']()['getContainedElement']();if(_0x183860['isBlockImage'](_0x205c47))continue;_0x38a5c2['discardSuggestion'](_0x5ea6cc),_0xb74524=!0x0;}}if('insertion'==_0x2e250d&&'imageCaption'==_0x1269cf&&!_0x193880['newRange']){const _0x793529=_0x38a5c2['getSuggestion'](_0x55cd6b);_0x793529['next']&&_0x793529['next']['isInContent']&&(_0x38a5c2['discardSuggestion'](_0x793529['next']),_0xb74524=!0x0);}}}return _0xb74524;}),this['_registerLegacyDescription'](_0x163aa6);}_registerLegacyDescription(_0x1d614c){const _0x4bd472=this['editor'],_0x572471=_0x4bd472['locale'];_0x4bd472['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a7989=>{if('formatBlock'!=_0x3a7989['type']&&'formatInline'!=_0x3a7989['type'])return;const {data:_0x56eb64}=_0x3a7989;if(!_0x56eb64||'imageStyle'!=_0x56eb64['commandName'])return;const _0x51a4cb=_0x56eb64['commandParams'][0x0]['value'];return _0x3c7f65('side'===_0x51a4cb?Ot(_0x572471,'FORMAT_SIDE_IMAGE'):_0x1d614c[_0x51a4cb]||_0x51a4cb);function _0x3c7f65(_0x9b0a96){return{'type':'format','content':Ot(_0x572471,'*Format:*\x20%0',_0x9b0a96)};}});}},Ee=class extends _0x5ef0cd{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x132d00){super(_0x132d00),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x3e63b6=this['editor'],_0xeaae34=_0x3e63b6['commands']['get']('importWord'),_0x57bda2=_0x3e63b6['commands']['get']('trackChanges');_0xeaae34&&(_0xeaae34['on']('execute',(_0x3e4dce,[,_0x855f42])=>{this['_trackChangesValueDuringImport']=_0x57bda2['value'],_0x855f42['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xeaae34,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xeaae34,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x57bda2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e63b6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x775314,_0x41c027){const {suggestions:_0x3d6351}=_0x41c027,_0x3d3bc9=this['editor']['commands']['get']('trackChanges'),_0x42d618=_0x3d3bc9['value'];this['_trackChangesValueDuringImport']!==_0x42d618&&(_0x3d3bc9['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d6351&&_0x3d6351['forEach'](({id:_0x14f07e,type:_0x1409d9,author:_0x3a2f01,created_at:_0x2b6f07})=>{const _0x5efcd5={'id':_0x14f07e,'type':_0x1409d9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3a2f01,'createdAt':_0x2b6f07?new Date(_0x2b6f07):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5efcd5);});}},Te=class extends _0x5ef0cd{afterInit(){const _0x4f81cb=this['editor'],_0x5c9128=_0x4f81cb['plugins']['get']('TrackChangesEditing');if(_0x4f81cb['plugins']['has']('IndentEditing')&&(_0x5c9128['enableCommand']('indent'),_0x5c9128['enableCommand']('outdent')),_0x4f81cb['plugins']['has']('IndentBlock')){for(const _0x20f08a of['indentBlock','outdentBlock'])_0x5c9128['enableDefaultAttributesIntegration'](_0x20f08a);if(_0x4f81cb['plugins']['has']('ListEditing')){for(const _0x5eddcc of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5c9128['enableDefaultAttributesIntegration'](_0x5eddcc);}}const _0x3e5982=_0x4f81cb['locale'];_0x5c9128['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x3e5982,'FORMAT_INDENT')),_0x5c9128['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x3e5982,'FORMAT_INDENT')),_0x5c9128['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x3e5982,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d7757=this['editor'],_0x54ca6d=_0x1d7757['locale'],_0x30322=_0x1d7757['plugins']['get']('TrackChangesEditing');_0x30322['descriptionFactory']['registerDescriptionCallback'](_0x5c8fc6=>{if('formatBlock'!=_0x5c8fc6['type'])return;const {data:_0x1ec8fb}=_0x5c8fc6;if(!_0x1ec8fb)return;if('indentBlock'!=_0x1ec8fb['commandName']&&'outdentBlock'!=_0x1ec8fb['commandName'])return;const _0x5474bf=_0x5c8fc6['getItems']()[0x0],_0x40c14b=_0x30322['descriptionFactory']['getItemLabel'](_0x5474bf);return'indentBlock'==_0x1ec8fb['commandName']?{'type':'format','content':Ot(_0x54ca6d,'*Indent:*\x20%0',_0x40c14b)}:'outdentBlock'==_0x1ec8fb['commandName']?{'type':'format','content':Ot(_0x54ca6d,'*Outdent:*\x20%0',_0x40c14b)}:void 0x0;});}},_e=class extends _0x5ef0cd{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x5ef0cd{afterInit(){const _0x5c53f1=this['editor'];if(!_0x5c53f1['plugins']['has']('LinkEditing'))return;const _0x379ea9=_0x5c53f1['plugins']['get']('TrackChangesEditing'),_0x194220=_0x5c53f1['commands']['get']('link');_0x379ea9['enableDefaultAttributesIntegration']('link'),_0x379ea9['enableDefaultAttributesIntegration']('unlink');for(const _0x4e7d5d of _0x194220['manualDecorators'])_0x379ea9['descriptionFactory']['registerAttributeLabel'](_0x4e7d5d['id'],'link\x20('+_0x4e7d5d['label']['toLowerCase']()+')');_0x379ea9['descriptionFactory']['registerDescriptionCallback'](_0x2d9177=>{if('attribute'!=_0x2d9177['type'])return;const {data:_0x4084d9}=_0x2d9177;if(!_0x4084d9||'linkHref'!=_0x4084d9['key'])return;const _0x51c11a=_0x4084d9['newValue'],_0x5208f0=_0x5c53f1['locale'];return{'type':'format','content':null==_0x51c11a?Ot(_0x5208f0,'*Remove\x20link*'):Ot(_0x5208f0,'*Set\x20link:*\x20%0','\x22'+_0x51c11a+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1743e6=this['editor'],_0x32b374=_0x1743e6['locale'];_0x1743e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307784=>{if('formatInline'!=_0x307784['type'])return;const {data:_0x51fc98}=_0x307784;if(_0x51fc98){if('link'==_0x51fc98['commandName']){const _0x52893a=_0x51fc98['commandParams'][0x0];return{'type':'format','content':Ot(_0x32b374,'*Set\x20link:*\x20%0','\x22'+_0x52893a+'\x22')};}return'unlink'==_0x51fc98['commandName']?{'type':'format','content':Ot(_0x32b374,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x5ef0cd{afterInit(){const _0x4e0564=this['editor'],_0xc9f764=_0x4e0564['locale'];if(!_0x4e0564['plugins']['has']('LegacyListEditing'))return;const _0x4180c7=_0x4e0564['plugins']['get']('TrackChangesEditing'),_0x38ebd4=_0x4e0564['plugins']['has']('LegacyTodoListEditing');function _0xaf03f2(_0x1ddb5f){return()=>{const _0x334bff=_0x4e0564['model']['document']['selection'],_0x8a3fb2=_0x4e0564['commands']['get'](_0x1ddb5f);if(_0x8a3fb2['value'])return void _0x4e0564['execute']('paragraph',{});const _0x5654a3=_0x1ddb5f['slice'](0x0,-0x4),_0x50dcf4=function(_0x389e3a,_0x18cf4c,_0x37ae0e){let _0x11d9e2=Array['from'](_0x389e3a)['filter'](_0x5c8e19=>function(_0x55101c,_0x52c311){return _0x52c311['checkChild'](_0x55101c['parent'],'listItem')&&!_0x52c311['isObject'](_0x55101c);}(_0x5c8e19,_0x37ae0e));_0x11d9e2=_0x11d9e2['filter'](_0x2e08f2=>!_0x2e08f2['is']('element','listItem')||_0x2e08f2['getAttribute']('listType')!=_0x18cf4c);const _0xf717f3=new Set();for(const _0x216edf of _0x11d9e2)_0x216edf['is']('element','listItem')?_0xf717f3['add'](Ie(_0x216edf)):_0xf717f3['add'](_0x216edf);return Array['from'](_0xf717f3);}(_0x334bff['getSelectedBlocks'](),_0x5654a3,_0x4e0564['model']['schema']);_0x4e0564['model']['change'](()=>{for(const _0x29ee03 of _0x50dcf4)_0x4180c7['markBlockFormat'](_0x29ee03,{'commandName':_0x1ddb5f,'commandParams':[{'forceValue':!_0x8a3fb2['value']}],'formatGroupId':'blockName'},Ae(_0x29ee03));});};}function _0x5b5073(_0x5b6297){return()=>{const _0x2c2830=function(_0xe71e26){let _0x184104=Array['from'](_0xe71e26);const _0x98cfff=_0x184104['findIndex'](_0x240175=>'listItem'!=_0x240175['name']);return _0x98cfff>-0x1&&(_0x184104=_0x184104['slice'](0x0,_0x98cfff)),_0x184104;}(_0x4e0564['model']['document']['selection']['getSelectedBlocks']()),_0x279a36=_0x4e0564['model']['createRange'](_0x4e0564['model']['createPositionAt'](_0x2c2830[0x0],'before'),_0x4e0564['model']['createPositionAt'](_0x2c2830[_0x2c2830['length']-0x1],'end'));_0x4e0564['model']['change'](()=>{_0x4180c7['markBlockFormat'](_0x279a36,{'commandName':_0x5b6297,'commandParams':[],'formatGroupId':'listIndent'},function(_0xdbc46b){const _0x53d23b=new Set();for(const _0x3d3937 of _0xdbc46b){let _0x336800=_0x3d3937['nextSibling'];for(;_0x336800&&_0x336800['getAttribute']('listIndent')>_0x3d3937['getAttribute']('listIndent');)_0x53d23b['add'](_0x336800),_0x336800=_0x336800['nextSibling'];}return Array['from'](_0x53d23b);}(_0x2c2830));});};}_0x4180c7['enableCommand']('numberedList',_0xaf03f2('numberedList')),_0x4180c7['enableCommand']('bulletedList',_0xaf03f2('bulletedList')),_0x38ebd4&&_0x4180c7['enableCommand']('todoList',_0xaf03f2('todoList')),_0x4180c7['enableCommand']('indentList',_0x5b5073('indentList')),_0x4180c7['enableCommand']('outdentList',_0x5b5073('outdentList')),_0x38ebd4&&_0x4180c7['enableCommand']('checkTodoList',()=>{const _0x4c8ddc=_0x4e0564['commands']['get']('checkTodoList'),_0x593194=Array['from'](_0x4c8ddc['_selectedElements']);_0x593194['filter'](_0x28aaf4=>_0x28aaf4['getAttribute']('todoListChecked')!=_0x4c8ddc['value']),_0x4e0564['model']['change'](()=>{for(const _0x5043e4 of _0x593194)_0x4180c7['markBlockFormat'](_0x5043e4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4c8ddc['value']}]});});}),_0x4180c7['descriptionFactory']['registerElementLabel']('listItem',_0x1874f2=>Ot(_0xc9f764,'ELEMENT_LIST_ITEM',_0x1874f2)),_0x4180c7['descriptionFactory']['registerDescriptionCallback'](_0x1d8649=>{if('formatBlock'!=_0x1d8649['type']&&'formatInline'!=_0x1d8649['type'])return;const {data:_0x11f496}=_0x1d8649;if(_0x11f496){if('numberedList'==_0x11f496['commandName']||'bulletedList'==_0x11f496['commandName']||'todoList'==_0x11f496['commandName'])switch(_0x11f496['commandName']['replace']('List','')){case'bulleted':return _0xea9f4b(Ot(_0xc9f764,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xea9f4b(Ot(_0xc9f764,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xea9f4b(Ot(_0xc9f764,'ELEMENT_TODO_LIST'));}if('indentList'==_0x11f496['commandName'])return{'type':'format','content':Ot(_0xc9f764,'*Indent:*\x20%0',Ot(_0xc9f764,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x11f496['commandName'])return{'type':'format','content':Ot(_0xc9f764,'*Outdent:*\x20%0',Ot(_0xc9f764,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x11f496['commandName'])return _0x11f496['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xc9f764,'*Check\x20item*')}:{'type':'format','content':Ot(_0xc9f764,'*Uncheck\x20item*')};}function _0xea9f4b(_0x584b76){return{'type':'format','content':Ot(_0xc9f764,'*Change\x20to:*\x20%0',_0x584b76)};}});}};function Ie(_0x1ec1ea){const _0x2ae196=_0x1ec1ea['getAttribute']('listIndent');if(0x0==_0x2ae196)return _0x1ec1ea;let _0x172100=_0x1ec1ea;for(;_0x1ec1ea['previousSibling']&&_0x1ec1ea['previousSibling']['is']('element','listItem');){const _0x3d2a83=_0x1ec1ea['previousSibling']['getAttribute']('listIndent');if(_0x3d2a83==_0x2ae196)_0x172100=_0x1ec1ea['previousSibling'];else{if(_0x3d2a83<_0x2ae196)break;}_0x1ec1ea=_0x1ec1ea['previousSibling'];}return _0x172100;}function Ae(_0x2437fe){const _0x4b8d2d=[];if(_0x2437fe['is']('element','listItem')&&_0x2437fe['getAttribute']('listIndent')>0x0){let _0xdb0b10=_0x2437fe['nextSibling'];for(;_0xdb0b10&&'listItem'==_0xdb0b10['name']&&_0xdb0b10['getAttribute']('listIndent')==_0x2437fe['getAttribute']('listIndent');)_0x4b8d2d['push'](_0xdb0b10),_0xdb0b10=_0xdb0b10['nextSibling'];}return _0x4b8d2d;}var be=class extends _0x5ef0cd{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b4367=this['editor']['config']['get']('list.properties'),_0x50bf25=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b4367['styles']&&_0x50bf25['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b4367['reversed']&&_0x50bf25['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b4367['startIndex']&&_0x50bf25['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x50bf25['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x38b639,_0x3b3d1f={}){const _0x2b32cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fe7ae=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2b32cb['markMultiRangeBlockFormat'](_0x1fe7ae,{'commandName':'listStyle','commandParams':[{'type':_0x3b3d1f['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x5088a9,_0x1b46b8={}){const _0x3f34e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d1dc8=this['_getSuggestionBlocks'](_0x2a03b1=>_0x2a03b1['is']('element','listItem')&&'numbered'===_0x2a03b1['getAttribute']('listType'));if(_0x4d1dc8['length']<0x1)return;const _0x15a18d=_0x4d1dc8['map'](_0x6e1eed=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6e1eed,'before'),this['editor']['model']['createPositionAt'](_0x6e1eed,0x0)));this['editor']['model']['change'](()=>{_0x3f34e5['markMultiRangeBlockFormat'](_0x15a18d,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b46b8['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x3a7291,_0x8eea01={}){const _0x53b121=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e927d=this['_getSuggestionBlocks'](_0x43c1b1=>_0x43c1b1['is']('element','listItem')&&'numbered'===_0x43c1b1['getAttribute']('listType'));if(_0x4e927d['length']<0x1)return;const _0xa8647b=_0x4e927d['map'](_0x2b453f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b453f,'before'),this['editor']['model']['createPositionAt'](_0x2b453f,0x0)));this['editor']['model']['change'](()=>{_0x53b121['markMultiRangeBlockFormat'](_0xa8647b,{'commandName':'listStart','commandParams':[{'startIndex':_0x8eea01['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x440178){if('formatBlock'!=_0x440178['type']&&'formatInline'!=_0x440178['type'])return;const _0x1751ea=this['editor']['locale'],{data:_0x17fabf}=_0x440178;if(!_0x17fabf)return;let _0x351a4f,_0x4f8399;switch(_0x17fabf['commandName']){case'listStyle':_0x351a4f='*Change\x20to:*\x20%0',_0x4f8399={'type':'format','content':Ot(_0x1751ea,_0x351a4f,Ot(_0x1751ea,this['_getTranslationKeyForListStyle'](_0x17fabf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x351a4f=_0x17fabf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f8399={'type':'format','content':Ot(_0x1751ea,_0x351a4f)};break;case'listStart':_0x351a4f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f8399={'type':'format','content':Ot(_0x1751ea,_0x351a4f,_0x17fabf['commandParams'][0x0]['startIndex'])};}return _0x4f8399;}_getSuggestionBlocksForListStyle(){const _0x40890a=this['editor']['plugins']['get']('LegacyListUtils');let _0x10f3dc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x10f3dc[0x0]?.['is']('element','listItem')&&_0x10f3dc['unshift'](..._0x40890a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x10f3dc[_0x10f3dc['length']-0x1]?.['is']('element','listItem')&&_0x10f3dc['push'](..._0x40890a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x10f3dc=[...new Set(_0x10f3dc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x10f3dc=_0x10f3dc['filter'](_0x1fc1d5=>_0x1fc1d5['is']('element','listItem'))),_0x10f3dc;}_getSuggestionBlocks(_0x589ab6){const _0x272345=this['editor']['plugins']['get']('LegacyListUtils');let _0x5adf6f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x589ab6)['map'](_0x46e8d5=>{const _0x40f69f=this['editor']['model']['createPositionAt'](_0x46e8d5,0x0);return[..._0x272345['getSiblingNodes'](_0x40f69f,'backward'),..._0x272345['getSiblingNodes'](_0x40f69f,'forward')];})['flat']();return _0x5adf6f=[...new Set(_0x5adf6f)],_0x5adf6f;}_getTranslationKeyForListStyle(_0x211c57){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x211c57)||'default')['toUpperCase']()+'_LIST_'+_0x211c57['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x5ef0cd{afterInit(){const _0x3677ec=this['editor'];if(!_0x3677ec['plugins']['has']('MediaEmbedEditing'))return;const _0x54360c=_0x3677ec['plugins']['get']('TrackChangesEditing'),_0x184b35=_0x3677ec['locale'];_0x54360c['enableCommand']('mediaEmbed'),_0x54360c['descriptionFactory']['registerElementLabel']('media',_0x5ad3bf=>Ot(_0x184b35,'ELEMENT_MEDIA',_0x5ad3bf)),_0x3677ec['plugins']['has']('MediaEmbedResizeEditing')&&(_0x54360c['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x54360c['descriptionFactory']['registerDescriptionCallback'](_0x4a5cf9=>{if('attribute'!=_0x4a5cf9['type'])return;const {data:_0x5b2021}=_0x4a5cf9;if(!_0x5b2021||'resizedWidth'!=_0x5b2021['key'])return;const _0x70b4d0=_0x4a5cf9['getContainedElement']();if(!_0x70b4d0||!_0x70b4d0['is']('element','media'))return;const _0x1720d4=Ot(_0x184b35,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x184b35,'*Set\x20format:*\x20%0',_0x1720d4)};}));}},ke=class extends _0x5ef0cd{afterInit(){const _0x14155c=this['editor'];if(!_0x14155c['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2ed0ae=_0x14155c['plugins']['get']('TrackChangesEditing'),_0x2169cf=_0x14155c['locale'],_0x3610b3=_0x14155c['plugins']['get']('MediaEmbedStyleEditing'),_0x352e9d={};for(const _0x4831f0 of _0x3610b3['normalizedStyles'])_0x352e9d[_0x4831f0['name']]=_0x4831f0['title']['toLowerCase']();const _0xdef95d=_0x3610b3['normalizedStyles']['find'](_0x8e8369=>_0x8e8369['isDefault'])?.['name'];_0x2ed0ae['enableCommand']('mediaStyle',(_0x4e0e46,_0x1ad166)=>{const _0x105d77=_0x14155c['plugins']['get']('Users')['me'],_0xdaece0=_0x14155c['commands']['get']('mediaStyle'),_0x4906e5=function(_0x548668){const _0x17f05c=_0x548668['model']['document']['selection']['getSelectedElement']();return _0x17f05c&&_0x17f05c['is']('element','media')?_0x17f05c:null;}(_0x14155c);if(!_0x4906e5)return;const _0x135e3d=_0x14155c['model']['createRangeOn'](_0x4906e5);let _0x3874c7=_0xdaece0['value'];if(_0x3874c7==_0x1ad166['value'])return;const _0x37a41b={'commandName':'mediaStyle','commandParams':[_0x1ad166],'formatGroupId':_0x2a260a()};_0x14155c['model']['change'](()=>{_0x2ed0ae['getSuggestions']()['filter'](_0x3c9bc5=>_0x3c9bc5['isInContent']&&_0x105d77==_0x3c9bc5['author']&&'formatBlock'==_0x3c9bc5['type']&&'mediaStylePostApply'==_0x3c9bc5['subType']&&_0x3c9bc5['getFirstRange']()['isEqual'](_0x135e3d))['forEach'](_0x5002e2=>_0x2ed0ae['discardSuggestion'](_0x5002e2['head'])),_0xdaece0['refresh'](),_0x3874c7=_0xdaece0['value'],_0x3874c7!=_0x1ad166['value']&&_0x2ed0ae['markBlockFormat'](_0x4906e5,{..._0x37a41b,'commandReversedParams':[{'value':'string'==typeof _0x3874c7?_0x3874c7:null}]},[],'mediaStylePostApply');});}),_0x2ed0ae['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2ed0ae['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0xa7caaf,_0x22eebc)=>{_0x2ed0ae['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa7caaf,{'commandName':_0x22eebc['commandName'],'commandParams':_0x22eebc['commandReversedParams']});}),_0x2ed0ae['descriptionFactory']['registerDescriptionCallback'](_0x30f2cf=>{if('formatBlock'!=_0x30f2cf['type'])return;const {data:_0x420549}=_0x30f2cf;if(!_0x420549||'mediaStyle'!=_0x420549['commandName'])return;const _0x509ff2=_0x420549['commandParams'][0x0]['value']||_0xdef95d;if(!_0x509ff2)return;const _0xa6d1d0=_0x352e9d[_0x509ff2]||_0x509ff2;return{'type':'format','content':Ot(_0x2169cf,'*Format:*\x20%0',_0xa6d1d0)};});}},Re=class extends _0x5ef0cd{afterInit(){const _0x6195bc=this['editor'];_0x6195bc['plugins']['has']('MentionEditing')&&_0x6195bc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x5ef0cd{afterInit(){const _0x212da3=this['editor'];if(!_0x212da3['plugins']['has']('MergeFieldsEditing'))return;const _0x111e87=_0x212da3['plugins']['get']('TrackChangesEditing'),_0x33d010=_0x212da3['locale'];_0x111e87['enableCommand']('insertMergeField'),_0x111e87['enableCommand']('insertMergeFieldBlock'),_0x111e87['enableCommand']('insertMergeFieldImage'),_0x111e87['descriptionFactory']['registerElementLabel']('mergeField',_0x199926=>Ot(_0x33d010,'ELEMENT_MERGE_FIELD',_0x199926)),_0x111e87['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x36cb64=>Ot(_0x33d010,'ELEMENT_MERGE_FIELD',_0x36cb64)),_0x111e87['descriptionFactory']['registerDescriptionCallback'](_0x220795=>{if('insertion'!=_0x220795['type']&&'deletion'!=_0x220795['type'])return;const _0x36af1b=_0x220795['getContainedElement']();if(null==_0x36af1b)return;const _0xb2fca6=_0x212da3['plugins']['get']('MergeFieldsEditing');let _0x5ad9fc;switch(_0xb2fca6['getMergeFieldType'](_0x36af1b)){case null:return;case'image':{const _0x442b3f=_0xb2fca6['unwrapAffixes'](_0x36af1b['getAttribute']('src'));_0x5ad9fc=_0xb2fca6['getLabel'](_0x442b3f)||_0x442b3f;break;}default:{const _0x4ebdb5=_0x36af1b['getAttribute']('id');_0x5ad9fc=_0xb2fca6['getLabel'](_0x4ebdb5)||_0x4ebdb5;break;}}return'insertion'==_0x220795['type']?{'type':'insertion','content':Ot(_0x33d010,'*Insert:*\x20%0','\x22'+_0x5ad9fc+'\x22\x20'+Ot(_0x33d010,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x33d010,'*Remove:*\x20%0','\x22'+_0x5ad9fc+'\x22\x20'+Ot(_0x33d010,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x5ef0cd{afterInit(){const _0x308fba=this['editor'],_0x5c9319=_0x308fba['plugins']['get']('TrackChangesEditing');_0x308fba['plugins']['has']('MultiLevelList')&&(_0x5c9319['enableDefaultAttributesIntegration']('multiLevelList'),_0x5c9319['descriptionFactory']['registerDescriptionCallback'](_0x3c794f=>this['handleDescriptions'](_0x3c794f)));}handleDescriptions(_0x589185){const _0x586bd0=this['editor']['locale'],{data:_0x4c9bad}=_0x589185,_0x20d87a={'type':'format','content':''};if(_0x4c9bad&&'listMarkerStyle'==_0x4c9bad['key']){if(!_0x4c9bad['oldValue'])return{'type':'format','content':Ot(_0x586bd0,'*Set\x20format:*\x20%0',Ot(_0x586bd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c9bad['newValue']+')'};if(!_0x4c9bad['newValue']){let _0x510b62=_0x589185['head'];for(;_0x510b62;){if(_0x510b62['data']&&'listType'==_0x510b62['data']['key']&&_0x510b62['data']['newValue'])return _0x20d87a;_0x510b62=_0x510b62['next'];}return{'type':'format','content':Ot(_0x586bd0,'*Remove\x20format:*\x20%0',Ot(_0x586bd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c9bad['oldValue']+')'};}}}},Se=class extends _0x5ef0cd{afterInit(){const _0xd92b02=this['editor'];if(!_0xd92b02['plugins']['has']('PageBreakEditing'))return;_0xd92b02['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1108fc=_0xd92b02['plugins']['get']('TrackChangesEditing'),_0x522300=_0xd92b02['locale'];_0x1108fc['descriptionFactory']['registerElementLabel']('pageBreak',_0x5c000a=>Ot(_0x522300,'ELEMENT_PAGE_BREAK',_0x5c000a));}},Me=class extends _0x5ef0cd{afterInit(){const _0x2f8c1c=this['editor'];if(!_0x2f8c1c['plugins']['has']('Paragraph'))return;const _0x3ddba0=_0x2f8c1c['locale'],_0x505837=_0x2f8c1c['plugins']['get']('TrackChangesEditing');_0x505837['descriptionFactory']['registerElementLabel']('paragraph',_0x10d149=>Ot(_0x3ddba0,'ELEMENT_PARAGRAPH',_0x10d149)),_0x505837['enableDefaultAttributesIntegration']('paragraph'),_0x505837['enableCommand']('insertParagraph');const _0x567646=_0x505837['descriptionFactory'];_0x567646['registerDescriptionCallback'](_0x271750=>{if('insertion'!==_0x271750['type'])return;const {start:_0x2428ea,end:_0x59a4a8}=_0x271750['getFirstRange']();if(!_0x2428ea['isTouching'](_0x59a4a8)||!_0x2428ea['nodeAfter'])return;const _0x36b8ed=_0x2f8c1c['model']['schema'],_0x56755f=_0x2428ea['nodeAfter'];return _0x36b8ed['isBlock'](_0x56755f)&&!_0x36b8ed['isLimit'](_0x56755f)&&_0x36b8ed['checkChild'](_0x56755f,'$text')?{'type':'insertion','content':Ot(_0x3ddba0,'*Insert:*\x20%0',_0x567646['getItemLabel'](_0x56755f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x32cd5a=this['editor'],_0x34fcbc=_0x32cd5a['locale'];_0x32cd5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcf743b=>{if('formatBlock'!=_0xcf743b['type'])return;const {data:_0x2ace81}=_0xcf743b;return _0x2ace81&&'paragraph'==_0x2ace81['commandName']?{'type':'format','content':Ot(_0x34fcbc,'*Change\x20to:*\x20%0',Ot(_0x34fcbc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x5ef0cd{afterInit(){const _0x1f868d=this['editor'];_0x1f868d['commands']['get']('replaceSource')&&_0x1f868d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x5ef0cd{afterInit(){const _0x25677c=this['editor'];_0x25677c['plugins']['has']('RemoveFormatEditing')&&(_0x25677c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x58d64b=this['editor'];_0x58d64b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x95505a=>{if('formatBlock'!=_0x95505a['type']&&'formatInline'!=_0x95505a['type'])return;const {data:_0x195112}=_0x95505a;return _0x195112&&'removeFormat'==_0x195112['commandName']?{'type':'format','content':Ot(_0x58d64b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x5ef0cd{afterInit(){const _0x22a253=this['editor'];if(!_0x22a253['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x477a85=_0x22a253['plugins']['get']('TrackChangesEditing');_0x477a85['enableCommand']('goToPreviousRestrictedEditingException'),_0x477a85['enableCommand']('goToNextRestrictedEditingException');const _0x550711=_0x22a253['plugins']['get']('RestrictedEditingModeEditing');_0x550711['enableCommand']('trackChanges'),_0x550711['enableCommand']('acceptSuggestion'),_0x550711['enableCommand']('discardSuggestion'),_0x550711['enableCommand']('acceptAllSuggestions'),_0x550711['enableCommand']('discardAllSuggestions'),_0x550711['enableCommand']('acceptSelectedSuggestions'),_0x550711['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x5ef0cd{afterInit(){const _0xdb3e4b=this['editor'];if(!_0xdb3e4b['plugins']['has']('ShiftEnter'))return;const _0x393339=_0xdb3e4b['plugins']['get']('TrackChangesEditing');_0x393339['enableCommand']('shiftEnter'),_0x393339['descriptionFactory']['registerElementLabel']('softBreak',_0x51c754=>Ot(_0xdb3e4b['locale'],'ELEMENT_LINE_BREAK',_0x51c754));}};function ve(_0x45a429,_0x3d972d,_0x8a3c72){const _0xc322e=[];for(const _0x29bc06 of _0x3d972d['getItems']())_0x29bc06['hasAttribute'](_0x45a429)&&_0xc322e['push'](_0x8a3c72['createRangeOn'](_0x29bc06));return _0xc322e;}var De=class extends _0x5ef0cd{afterInit(){const _0xe7262c=this['editor'],_0xad7ba2=_0xe7262c['plugins']['get']('TrackChangesEditing');_0xe7262c['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xad7ba2['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x49d0b4=this['editor'],_0x2a0650=_0x49d0b4['model'],_0x3a05f7=_0x49d0b4['locale'],_0x193e65=_0x49d0b4['plugins']['get']('TrackChangesEditing'),_0x58a990='restrictedEditingException',_0x1021e9=_0x49d0b4['commands']['get'](_0x58a990);_0x193e65['enableCommand'](_0x58a990,(_0x1fd43d,_0x857881={})=>{const _0x7e0bbb=_0x2a0650['document']['selection'];if(_0x7e0bbb['isCollapsed'])return void _0x1fd43d(_0x857881);const _0x25521c=void 0x0!==_0x857881['forceValue']?_0x857881['forceValue']:!_0x1021e9['value'];_0x2a0650['change'](()=>{const _0x275413=Array['from'](_0x7e0bbb['getRanges']());for(const _0x3dd5fe of _0x275413){const _0x7a560d=_0x25521c?[_0x3dd5fe]:ve(_0x58a990,_0x3dd5fe,_0x2a0650);for(const _0x5c64fe of _0x7a560d)_0x193e65['markInlineFormat'](_0x5c64fe,{'commandName':_0x58a990,'commandParams':[{'forceValue':_0x25521c}]});}});}),_0x193e65['descriptionFactory']['registerDescriptionCallback'](_0x2deaa0=>{if('formatBlock'!=_0x2deaa0['type']&&'formatInline'!=_0x2deaa0['type'])return;const {data:_0x4dc925}=_0x2deaa0;return _0x4dc925&&_0x4dc925['commandName']==_0x58a990?_0x4dc925['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x3a05f7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x3a05f7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x1f48f9=this['editor'],_0x56aa34=_0x1f48f9['locale'],_0x303cca=_0x1f48f9['plugins']['get']('TrackChangesEditing'),_0x55bc47='restrictedEditingExceptionBlock',_0x464a11=this['editor']['commands']['get'](_0x55bc47);_0x303cca['enableCommand'](_0x55bc47,(_0x40322e,_0x572aef={})=>{const _0x1dbedd=this['editor']['model']['document']['selection'],_0xcc8dd9=_0x572aef&&void 0x0!==_0x572aef['forceValue']?_0x572aef['forceValue']:!_0x464a11['value'];let _0x38daaa=[];_0x38daaa=Ct(_0xcc8dd9?Array['from'](_0x1dbedd['getSelectedBlocks']())['filter'](_0x2887b9=>function(_0x15bcbe){return!!_0x15bcbe['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2887b9)||function(_0x125ff5,_0x5ed08b){const _0x1470f3=_0x5ed08b['createContext'](_0x125ff5['parent']);return!!_0x5ed08b['checkChild'](_0x1470f3,'restrictedEditingException')&&!!_0x5ed08b['checkChild'](_0x1470f3['push']('restrictedEditingException'),_0x125ff5);}(_0x2887b9,this['editor']['model']['schema'])):Array['from'](_0x1dbedd['getSelectedBlocks']())['map'](_0x49a464=>function(_0x56c2de){let _0x10ed63=_0x56c2de;for(;_0x10ed63['parent'];){if('restrictedEditingException'==_0x10ed63['parent']['name'])return _0x10ed63;_0x10ed63=_0x10ed63['parent'];}return null;}(_0x49a464))['filter'](_0x851196=>!!_0x851196),_0x1f48f9['model']),_0x1f48f9['model']['change'](()=>{for(const _0x35fd59 of _0x38daaa)_0x303cca['markBlockFormat'](_0x35fd59,{'commandName':_0x55bc47,'commandParams':[{'forceValue':_0xcc8dd9}]});});}),_0x303cca['descriptionFactory']['registerDescriptionCallback'](_0xd08539=>{const {data:_0x158dc2}=_0xd08539;if(_0x158dc2&&_0x158dc2['commandName']==_0x55bc47)return _0x158dc2['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x56aa34,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x56aa34,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x5ef0cd{afterInit(){const _0xffb320=this['editor'];_0xffb320['plugins']['has']('Style')&&_0xffb320['plugins']['has']('DataSchema')&&(_0xffb320['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5b9136=this['editor'],_0x135a23=_0x5b9136['locale'];_0x5b9136['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x578b83=>{if('formatBlock'!=_0x578b83['type']&&'formatInline'!=_0x578b83['type'])return;const {data:_0x7d0c1f}=_0x578b83;return _0x7d0c1f&&'style'===_0x7d0c1f['commandName']?_0x7d0c1f['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x135a23,'*Set\x20format:*\x20%0',_0x7d0c1f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x135a23,'*Remove\x20format:*\x20%0',_0x7d0c1f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x5ef0cd{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x532012){super(_0x532012),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x1583d5=this['editor'],_0x16146b=_0x1583d5['model']['document']['selection'];if(!_0x1583d5['plugins']['has']('TableEditing'))return;const _0x2e4684=_0x1583d5['locale'],_0x341dfe=_0x1583d5['plugins']['get']('TrackChangesEditing'),_0x16660d=_0x1583d5['plugins']['get']('TableUtils');_0x341dfe['descriptionFactory']['registerElementLabel']('table',_0x356c6c=>Ot(_0x2e4684,'ELEMENT_TABLE',_0x356c6c)),this['_setupColumnsRowsFixing'](),_0x341dfe['enableCommand']('insertTable'),_0x341dfe['enableCommand']('selectTableRow'),_0x341dfe['enableCommand']('selectTableColumn');for(const _0x3bd27b of['insertTableRowAbove','insertTableRowBelow']){const _0x489912=_0x1583d5['commands']['get'](_0x3bd27b);_0x341dfe['enableCommand'](_0x3bd27b,_0x410a20=>{_0x1583d5['model']['change'](_0x3561d1=>{_0x410a20();const _0xdadde2='above'===_0x489912['order'],_0x4540ac=_0x16660d['getSelectionAffectedTableCells'](_0x16146b),_0x1a0d74=_0x16660d['getRowIndexes'](_0x4540ac),_0x2de6d0=_0xdadde2?_0x1a0d74['first']-0x1:_0x1a0d74['last']+0x1,_0x58f797=_0x4540ac[0x0]['findAncestor']('table'),_0x14807c=_0x16660d['createTableWalker'](_0x58f797,{'startRow':_0x2de6d0,'endRow':_0x2de6d0}),_0x4a55ca=Array['from'](_0x14807c)['map'](_0x2f59b0=>_0x3561d1['createRangeOn'](_0x2f59b0['cell']));_0x341dfe['markMultiRangeInsertion'](_0x4a55ca,'tableRow');});});}for(const _0x3871dd of['insertTableColumnLeft','insertTableColumnRight']){const _0x29ec44=_0x1583d5['commands']['get'](_0x3871dd);_0x341dfe['enableCommand'](_0x3871dd,_0x38a588=>{_0x1583d5['model']['change'](_0x59f8e6=>{_0x38a588();const _0xc1ead6='left'===_0x29ec44['order'],_0x2691ff=_0x16660d['getSelectionAffectedTableCells'](_0x16146b),_0xb0d44a=_0x16660d['getColumnIndexes'](_0x2691ff),_0x1d514d=_0xc1ead6?_0xb0d44a['first']-0x1:_0xb0d44a['last']+0x1,_0x167ea8=_0x2691ff[0x0]['findAncestor']('table'),_0x4eb1b4=_0x16660d['createTableWalker'](_0x167ea8,{'startRow':0x0,'column':_0x1d514d,'includeAllSlots':!0x1}),_0x172299=Array['from'](_0x4eb1b4)['map'](_0x3c9b5e=>_0x59f8e6['createRangeOn'](_0x3c9b5e['cell']));_0x341dfe['markMultiRangeInsertion'](_0x172299,'tableColumn');});});}for(const _0x2713dd of['removeTableRow','removeTableColumn']){const _0x325d5c=_0x2713dd['substr'](0xb),_0x6a9be2=_0x325d5c['toLowerCase'](),_0x2a1e3f=_0x6a9be2['substr'](0x0,0x3)+'span',_0x55d7be='table'+_0x325d5c,_0x5dcab1='min'+_0x325d5c,_0x4ce5d8='max'+_0x325d5c;_0x341dfe['enableCommand'](_0x2713dd,()=>{_0x1583d5['model']['change'](_0x1b9e16=>{const _0x245665=_0x16660d['getSelectionAffectedTableCells'](_0x16146b),_0x4898a=_0x245665[0x0]['findAncestor']('table');let _0x429023;if('removeTableRow'==_0x2713dd){const _0x3f46e3=_0x16660d['getRowIndexes'](_0x245665);_0x429023={'startRow':_0x3f46e3['first'],'endRow':_0x3f46e3['last'],'includeAllSlots':!0x0};}else{const _0x1d29c7=_0x16660d['getColumnIndexes'](_0x245665);_0x429023={'startColumn':_0x1d29c7['first'],'endColumn':_0x1d29c7['last'],'includeAllSlots':!0x0};}const _0x173125=_0x16660d['createTableWalker'](_0x4898a,_0x429023),_0x422ba3=Array['from'](_0x173125)['map'](({cell:_0x152453})=>_0x152453),_0x56e2c4=xe(_0x422ba3['filter'](_0x4580ca=>_0x4580ca['hasAttribute'](_0x2a1e3f))),_0x58dc2d=xe(_0x422ba3['filter'](_0x539052=>!_0x539052['hasAttribute'](_0x2a1e3f)))['map'](_0x2949c0=>_0x1b9e16['createRangeOn'](_0x2949c0)),_0x430ada=_0x341dfe['markMultiRangeDeletion'](_0x58dc2d,_0x55d7be);if(_0x430ada&&('tableRow'==_0x430ada['subType']||'tableColumn'==_0x430ada['subType'])){const _0x2dd620=this['_getSuggestionCoords'](_0x430ada);for(const _0x3cf1f0 of _0x56e2c4){const _0x5cca90=_0x1b9e16['createRangeOn'](_0x3cf1f0),_0x1963fc=_0x16660d['getCellLocation'](_0x3cf1f0),_0xbb61bd=_0x3cf1f0['getAttribute'](_0x2a1e3f)-0x1,_0x337a5c=_0x2dd620[_0x5dcab1],_0x21f685=_0x2dd620[_0x4ce5d8];_0x337a5c<=_0x1963fc[_0x6a9be2]&&_0x1963fc[_0x6a9be2]+_0xbb61bd<=_0x21f685&&_0x430ada['addRange'](_0x5cca90);}}});});}function _0x548c8f(_0x5e111d){const _0x4a6f1e=Array['from'](_0x16146b['getRanges']())['map'](_0x3f1f95=>ot['fromRange'](_0x3f1f95));_0x1583d5['model']['change'](_0x4e3700=>{const _0x1fba15=_0x4e3700['batch'];_0x5e111d=_0x5e111d['filter'](_0x4145f9=>'$graveyard'!=_0x4145f9['root']['rootName']),_0x4e3700['setSelection'](_0x5e111d),_0x1583d5['commands']['get']('removeTableRow')['refresh'](),_0x1583d5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1583d5['model']['enqueueChange'](()=>{_0x1583d5['model']['enqueueChange'](_0x1fba15,_0x1543ef=>{const _0x4f1d57=_0x4a6f1e['filter'](_0x550908=>'$graveyard'!=_0x550908['root']['rootName']);_0x4f1d57['length']>0x0&&_0x1543ef['setSelection'](_0x4f1d57);for(const _0x4a2dd5 of _0x4a6f1e)_0x4a2dd5['detach']();});});});}function _0x22393a(_0x4b040a){_0x1583d5['model']['change'](_0x205504=>{const _0x59cf59=Array['from'](_0x16146b['getRanges']())['map'](_0x563097=>ot['fromRange'](_0x563097)),_0x3dfd42=[];for(const _0x5bc787 of _0x4b040a)for(const _0x4781e6 of _0x5bc787['getItems']({'shallow':!0x0}))_0x3dfd42['push'](_0x4781e6);for(const _0xe7eb8 of _0x3dfd42)'$graveyard'!=_0xe7eb8['root']['rootName']&&(_0x205504['setSelection'](_0x205504['createPositionAt'](_0xe7eb8,0x0)),_0x1583d5['commands']['get']('removeTableColumn')['refresh'](),_0x1583d5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6954f5=_0x59cf59['filter'](_0xd110e8=>'$graveyard'!=_0xd110e8['root']['rootName']);_0x6954f5['length']>0x0&&_0x205504['setSelection'](_0x6954f5);for(const _0x15379e of _0x59cf59)_0x15379e['detach']();});}function _0x5dbacd(_0x51606c,_0x4d969e){return _0x4d969e['every'](_0x380c76=>_0x51606c['some'](_0x50bb2d=>_0x50bb2d['end']['isEqual'](_0x380c76['start'])||_0x380c76['end']['isEqual'](_0x50bb2d['start'])));}function _0x527964(_0x274f7b,_0x401471){return!_0x274f7b['some'](_0x4a101a=>_0x401471['some'](_0x15c6fe=>_0x4a101a['isIntersecting'](_0x15c6fe)))&&_0x274f7b['some'](_0x11a925=>_0x401471['some'](_0x1299b7=>_0x11a925['end']['isTouching'](_0x1299b7['start'])));}_0x341dfe['descriptionFactory']['registerDescriptionCallback'](_0x1e0dd2=>{if('insertion'!=_0x1e0dd2['type']&&'deletion'!=_0x1e0dd2['type'])return;const _0xf009ac=_0x1e0dd2['getContainedElement']();if(null!=_0xf009ac&&_0xf009ac['is']('element','table')){if('insertion'==_0x1e0dd2['type']){const _0x2d3668=_0x1e0dd2['getItems']()['filter'](_0x5e5804=>_0x5e5804['is']('$textProxy'))['map'](_0x4cc66a=>_0x4cc66a['data']);if(_0x2d3668['length'])return{'type':'insertion','content':Ot(_0x2e4684,'*Insert:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d3668['join']('\x20')+'\x22'))};}if('deletion'==_0x1e0dd2['type']){const _0x396396=_0x1e0dd2['getItems']()['filter'](_0x38b4ae=>_0x38b4ae['is']('$textProxy'))['map'](_0x556827=>_0x556827['data']);if(_0x396396['length'])return{'type':'deletion','content':Ot(_0x2e4684,'*Remove:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x396396['join']('\x20')+'\x22'))};}}}),_0x341dfe['descriptionFactory']['registerDescriptionCallback'](_0x4ef250=>{if('tableRow'==_0x4ef250['subType']){const _0x2f42e6=_0x4ef250['getItems']()['filter'](_0x496493=>_0x496493['is']('$textProxy'))['map'](_0x3ea9dd=>_0x3ea9dd['data']),_0xb7f14a=this['_getSuggestionCoords'](_0x4ef250),_0x555054=_0xb7f14a['maxRow']-_0xb7f14a['minRow']+0x1;if('insertion'==_0x4ef250['type'])return _0x2f42e6['length']?{'type':'insertion','content':Ot(_0x2e4684,'*Insert:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x555054,'\x22'+_0x2f42e6['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x2e4684,'*Insert:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_ROW',_0x555054))};if('deletion'==_0x4ef250['type'])return _0x2f42e6['length']?{'type':'deletion','content':Ot(_0x2e4684,'*Remove:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x555054,'\x22'+_0x2f42e6['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x2e4684,'*Remove:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_ROW',_0x555054))};}if('tableColumn'==_0x4ef250['subType']){const _0x480c1f=_0x4ef250['getItems']()['filter'](_0x5e5d84=>_0x5e5d84['is']('$textProxy'))['map'](_0x15b1fe=>_0x15b1fe['data']),_0x49b165=this['_getSuggestionCoords'](_0x4ef250),_0x2d8638=_0x49b165['maxColumn']-_0x49b165['minColumn']+0x1;if('insertion'==_0x4ef250['type'])return _0x480c1f['length']?{'type':'insertion','content':Ot(_0x2e4684,'*Insert:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d8638,'\x22'+_0x480c1f['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x2e4684,'*Insert:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_COLUMN',_0x2d8638))};if('deletion'==_0x4ef250['type'])return _0x480c1f['length']?{'type':'deletion','content':Ot(_0x2e4684,'*Remove:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d8638,'\x22'+_0x480c1f['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x2e4684,'*Remove:*\x20%0',Ot(_0x2e4684,'ELEMENT_TABLE_COLUMN',_0x2d8638))};}}),_0x341dfe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x548c8f),_0x341dfe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x548c8f),_0x341dfe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x22393a),_0x341dfe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x22393a),_0x341dfe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5dbacd),_0x341dfe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5dbacd),_0x341dfe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x527964),_0x341dfe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x527964);}_acceptFormatSuggestionCallbackFactory(){const _0xa65683=this['editor'],_0x3aee63=_0xa65683['model']['document']['selection'];return(_0x4ccde0,_0x2ea0fc)=>{_0xa65683['model']['change'](_0x4eef4c=>{const {commandName:_0x48c26a,commandParams:_0x27e270}=_0x2ea0fc;let _0x575a0b=_0x4ccde0[0x0]['end']['nodeBefore'];_0x27e270&&_0x27e270[0x0]&&!0x1===_0x27e270[0x0]['forceValue']&&(_0x575a0b=_0x4ccde0[0x0]['start']['nodeAfter']);const _0x11f774=_0x4eef4c['createRangeIn'](_0x575a0b);if('$graveyard'==_0x11f774['root']['rootName'])return;const _0x4fb958=Array['from'](_0x3aee63['getRanges']())['map'](_0x2ce6a1=>ot['fromRange'](_0x2ce6a1));_0x4eef4c['setSelection'](_0x11f774),_0xa65683['commands']['get'](_0x48c26a)['refresh'](),_0x27e270['push']({'forceDefaultExecution':!0x0}),_0xa65683['execute'](_0x48c26a,..._0x27e270);const _0x36cff0=_0x4fb958['filter'](_0x3a839d=>'$graveyard'!=_0x3a839d['root']['rootName']);_0x36cff0['length']>0x0&&_0x4eef4c['setSelection'](_0x36cff0);for(const _0x77d1bf of _0x4fb958)_0x77d1bf['detach']();});};}_getCoordsForCells(_0x240a01){const _0x54b764=this['editor']['plugins']['get']('TableUtils');let _0x2de2d4=Number['MAX_SAFE_INTEGER'],_0x58260a=Number['MIN_SAFE_INTEGER'],_0x2a4b62=Number['MAX_SAFE_INTEGER'],_0x202d85=Number['MIN_SAFE_INTEGER'];for(const _0x2bab5b of _0x240a01){if('$graveyard'==_0x2bab5b['root']['rootName'])continue;const {row:_0x1c13a1,column:_0x5d1e52}=_0x54b764['getCellLocation'](_0x2bab5b),_0x1910a6=_0x2bab5b['hasAttribute']('rowspan')?_0x2bab5b['getAttribute']('rowspan')-0x1:0x0,_0x33555b=_0x2bab5b['hasAttribute']('colspan')?_0x2bab5b['getAttribute']('colspan')-0x1:0x0;_0x2de2d4=_0x1c13a1<_0x2de2d4?_0x1c13a1:_0x2de2d4,_0x58260a=_0x1c13a1+_0x1910a6>_0x58260a?_0x1c13a1+_0x1910a6:_0x58260a,_0x2a4b62=_0x5d1e52<_0x2a4b62?_0x5d1e52:_0x2a4b62,_0x202d85=_0x5d1e52+_0x33555b>_0x202d85?_0x5d1e52+_0x33555b:_0x202d85;}return{'minRow':_0x2de2d4,'maxRow':_0x58260a,'minColumn':_0x2a4b62,'maxColumn':_0x202d85};}_setupColumnsRowsFixing(){const _0x4ab4ce=this['editor'],_0x360ab5=_0x4ab4ce['plugins']['get']('TrackChangesEditing'),_0x18ae97=_0x4ab4ce['plugins']['get']('TableUtils');_0x4ab4ce['model']['document']['on']('change:data',()=>{const _0xa52157=Array['from'](_0x4ab4ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59f709,data:_0x2beb57}of _0xa52157){const {group:_0x28a0bf,id:_0x585341,subType:_0x1ae3d9}=et(_0x59f709);if('suggestion'!=_0x28a0bf)continue;if(null!=_0x2beb57['oldRange'])continue;const _0x1ea7f7=_0x360ab5['getSuggestion'](_0x585341);this['_tablePostFixingSubtypes']['includes'](_0x1ae3d9)&&this['_tableSuggestions']['add'](_0x1ea7f7);}},{'priority':'low'});const _0x5c727f=(_0x169902,_0xcdeed7)=>{let _0x22db89=!0x1;const _0xcbabcd=_0xcdeed7['createRangeOn'](_0x169902),_0x19950f=_0x169902['findAncestor']('table'),_0x502552=_0x18ae97['getCellLocation'](_0x169902);for(const _0x165be8 of this['_tableSuggestions']){const _0x581d40=_0x165be8['subType'],_0x402d3b=_0x581d40['startsWith']('tablePaste'),_0x2ab0f9=_0x581d40['substr'](_0x402d3b?0xa:0x5),_0x17ca7a=_0x2ab0f9['toLowerCase'](),_0x3fb657=_0x17ca7a['substr'](0x0,0x3)+'span',_0xf34900='min'+_0x2ab0f9,_0x24aa8f='max'+_0x2ab0f9;if(!_0x165be8['isInContent'])continue;if(_0x19950f!=_0x165be8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x165be8['isIntersectingWithRange'](_0xcbabcd))continue;const _0x3da861=_0x169902['hasAttribute'](_0x3fb657)?_0x169902['getAttribute'](_0x3fb657)-0x1:0x0,_0x576e5e=this['_getSuggestionCoords'](_0x165be8),_0x4c271d=_0x576e5e[_0xf34900],_0x15a771=_0x576e5e[_0x24aa8f];_0x4c271d<=_0x502552[_0x17ca7a]&&_0x502552[_0x17ca7a]+_0x3da861<=_0x15a771&&(_0x165be8['addRange'](_0xcbabcd),_0x22db89=!0x0);}return _0x22db89;};_0x4ab4ce['model']['document']['registerPostFixer'](_0x157a88=>{let _0xcc8c2f=!0x1;for(const _0x20b71a of _0x4ab4ce['model']['document']['differ']['getChanges']())if('insert'==_0x20b71a['type']){if('tableRow'==_0x20b71a['name']){for(const _0x46b45e of _0x20b71a['position']['nodeAfter']['getChildren']())_0xcc8c2f=_0xcc8c2f||_0x5c727f(_0x46b45e,_0x157a88);}else'tableCell'==_0x20b71a['name']&&(_0xcc8c2f=_0xcc8c2f||_0x5c727f(_0x20b71a['position']['nodeAfter'],_0x157a88));}return _0xcc8c2f;});}_getSuggestionCoords(_0x380943){return this['_getCoordsForCells'](_0x380943['getRanges']()['map'](_0x18e6e0=>_0x18e6e0['start']['nodeAfter']));}};function xe(_0x44b663){return Array['from'](new Set(_0x44b663)['values']());}var Ge=class extends _0x5ef0cd{static get requires(){return[Pe];}afterInit(){const _0x2d8db8=this['editor'],_0x56cc9a=_0x2d8db8['model']['document']['selection'],_0x4208bb=_0x2d8db8['locale'];if(!_0x2d8db8['plugins']['has']('TableEditing'))return;const _0x5e255d=_0x2d8db8['plugins']['get']('TrackChangesEditing'),_0x28347=_0x2d8db8['plugins']['get']('TableUtils'),_0x3613c6=_0x2d8db8['plugins']['get'](Pe);_0x3613c6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e255d['enableCommand']('mergeTableCells',()=>{const _0x302be9=_0x28347['getSelectionAffectedTableCells'](_0x2d8db8['model']['document']['selection']);_0x2d8db8['model']['change'](()=>{_0x5e255d['markMultiRangeBlockFormat'](_0x302be9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d8db8['commands']['get']('mergeTableCells')['on']('execute',(_0x17cc08,_0x52b51a)=>{_0x2d8db8['commands']['get']('trackChanges')['value']&&(_0x52b51a['length']>0x0&&_0x52b51a[_0x52b51a['length']-0x1]&&_0x52b51a[_0x52b51a['length']-0x1]['forceDefaultExecution']||_0x5e255d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x17cc08['stop']());},{'priority':'highest'});for(const _0x5a114b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x415974=_0x2d8db8['commands']['get'](_0x5a114b);_0x5e255d['enableCommand'](_0x5a114b,()=>{const _0x16de39=_0x2d8db8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ce02a=>_0x2ce02a['is']('element','tableCell')),_0x5c3bf4=_0x415974['value'];_0x2d8db8['model']['change'](()=>{_0x5e255d['markMultiRangeBlockFormat']([_0x16de39,_0x5c3bf4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3783ad of['splitTableCellVertically','splitTableCellHorizontally']){const _0xb82bbc=_0x2d8db8['commands']['get'](_0x3783ad);_0x5e255d['enableCommand'](_0x3783ad,()=>{const _0x2fd2c9=_0x28347['getSelectionAffectedTableCells'](_0x2d8db8['model']['document']['selection']),_0x27f9f3=_0x2fd2c9[0x0]['findAncestor']('table'),_0x49c636=new Set();for(const _0x15e2c6 of _0x2fd2c9){const {column:_0x55de52,row:_0x435bae}=_0x28347['getCellLocation'](_0x15e2c6),_0x355701='horizontally'==_0xb82bbc['direction']?_0x28347['createTableWalker'](_0x27f9f3,{'startRow':_0x435bae,'endRow':_0x435bae,'includeAllSlots':!0x0}):_0x28347['createTableWalker'](_0x27f9f3,{'column':_0x55de52,'includeAllSlots':!0x0});for(const {cell:_0x445a04}of _0x355701)_0x49c636['add'](_0x445a04);}_0x2d8db8['model']['change'](()=>{_0x5e255d['markMultiRangeBlockFormat'](_0x2fd2c9,{'commandName':_0x3783ad,'commandParams':[]},Array['from'](_0x49c636),_0x3783ad);});});}_0x5e255d['descriptionFactory']['registerDescriptionCallback'](_0x554be9=>{if('formatBlock'!=_0x554be9['type']&&'formatInline'!=_0x554be9['type'])return;const {data:_0x18c2bd}=_0x554be9;return _0x18c2bd&&'mergeTableCells'==_0x18c2bd['commandName']?{'type':'format','content':Ot(_0x4208bb,'*Merge\x20cells*')}:void 0x0;}),_0x5e255d['descriptionFactory']['registerDescriptionCallback'](_0x4dccdd=>{if('formatBlock'!=_0x4dccdd['type']&&'formatInline'!=_0x4dccdd['type'])return;const {data:_0x4123e0}=_0x4dccdd;return _0x4123e0?'splitTableCellVertically'==_0x4123e0['commandName']?{'type':'format','content':Ot(_0x4208bb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4123e0['commandName']?{'type':'format','content':Ot(_0x4208bb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3fc109=_0x3613c6['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a5b62 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e255d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a5b62,'accept',_0x3fc109);for(const _0x2e87bc of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e255d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e87bc,'accept',_0x53b8df=>{_0x2d8db8['model']['change'](_0x578407=>{const _0x171389=Array['from'](_0x53b8df)['filter'](_0x716a6b=>'$graveyard'!=_0x716a6b['root']['rootName']&&!!_0x716a6b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x171389['length'])return;const _0x2331ca=Array['from'](_0x56cc9a['getRanges']())['map'](_0x25866b=>ot['fromRange'](_0x25866b));_0x578407['setSelection'](_0x171389),_0x2d8db8['commands']['get'](_0x2e87bc)['refresh'](),_0x2d8db8['execute'](_0x2e87bc,{'forceDefaultExecution':!0x0});const _0x163073=_0x2331ca['filter'](_0x4d5b35=>'$graveyard'!=_0x4d5b35['root']['rootName']);_0x163073['length']>0x0&&_0x578407['setSelection'](_0x163073);for(const _0xa7a532 of _0x2331ca)_0xa7a532['detach']();});});_0x5e255d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x421c57=>{_0x2d8db8['model']['change'](_0x38aaf7=>{const _0x6dd9e5=Array['from'](_0x56cc9a['getRanges']())['map'](_0x2590aa=>ot['fromRange'](_0x2590aa));_0x38aaf7['setSelection'](_0x421c57),_0x2d8db8['commands']['get']('mergeTableCells')['refresh'](),_0x2d8db8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xc07c57=_0x6dd9e5['filter'](_0x34eb99=>'$graveyard'!=_0x34eb99['root']['rootName']);_0xc07c57['length']>0x0&&_0x38aaf7['setSelection'](_0xc07c57);for(const _0x2d83ad of _0x6dd9e5)_0x2d83ad['detach']();});});for(const _0x587716 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c5704=_0x2d8db8['commands']['get'](_0x587716);_0x3c5704['on']('set:isEnabled',(_0xbc228f,_0x5e3e04,_0x158c20)=>{if(_0x158c20){const _0xd020d9=_0x2d8db8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x155dbd=>_0x155dbd['is']('element','tableCell'));this['_areMergableCells'](_0x3c5704['value'],_0xd020d9)||(_0xbc228f['return']=!0x1,_0xbc228f['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0xbe4e71=this['editor']['commands']['get']('mergeTableCells'),_0x237625=this['editor']['plugins']['get']('TableUtils');if(!_0xbe4e71['isEnabled'])return!0x1;const _0x1fcd1e=_0x237625['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1f2f1c of _0x1fcd1e)for(const _0x36990c of _0x1fcd1e)if(_0x1f2f1c!=_0x36990c&&!this['_areMergableCells'](_0x1f2f1c,_0x36990c))return!0x1;return!0x0;}['_areMergableCells'](_0x17b1af,_0x70242c){const _0x3c52b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39c83f=this['editor']['model']['createRangeOn'](_0x17b1af),_0x35ceec=this['editor']['model']['createRangeOn'](_0x70242c),_0x2ddef4=new Set(),_0x395c06=new Set();for(const _0x120e2b of _0x3c52b7['getSuggestions']())if(('insertion'==_0x120e2b['type']||'deletion'==_0x120e2b['type']||'mergeTableCells'==_0x120e2b['subType'])&&_0x120e2b['isInContent']){for(const _0x54d732 of _0x120e2b['getRanges']())_0x54d732['containsRange'](_0x39c83f,!0x0)&&_0x2ddef4['add'](_0x120e2b['type']+':'+_0x120e2b['author']['id']),_0x54d732['containsRange'](_0x35ceec,!0x0)&&_0x395c06['add'](_0x120e2b['type']+':'+_0x120e2b['author']['id']);}if(_0x2ddef4['size']!=_0x395c06['size'])return!0x1;for(const _0x149173 of _0x2ddef4)if(!_0x395c06['has'](_0x149173))return!0x1;return!0x0;}},He=class extends _0x5ef0cd{static get requires(){return[Pe];}afterInit(){const _0x17bcd8=this['editor'];if(!_0x17bcd8['plugins']['has']('TableEditing'))return;const _0xb70400=_0x17bcd8['locale'],_0x55b7dd=_0x17bcd8['plugins']['get']('TrackChangesEditing');_0x55b7dd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55b7dd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55b7dd['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0xb70400,'FORMAT_HEADER_ROW')),_0x55b7dd['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0xb70400,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x275057=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7ffdfa=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x275057['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x7ffdfa),_0x275057['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x7ffdfa),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x177b29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a63e1=this['editor']['plugins']['get']('TableUtils');function _0x2722b0({showActiveMarker:_0x4062e1=!0x0,setDataAttribute:_0x42d10a=!0x0}={}){return(_0x531844,_0x1922ad,_0x76e928)=>{const {type:_0xb02c4,id:_0x2ca0e9}=et(_0x1922ad['markerName']);if(!_0x177b29['hasSuggestion'](_0x2ca0e9))return;const _0x36f521=_0x177b29['getSuggestion'](_0x2ca0e9),_0x29ef0c=_0x36f521['data'];if('formatBlock'!=_0x36f521['type']||!_0x29ef0c||'setTableColumnHeader'!=_0x29ef0c['commandName'])return;if(_0x1922ad['item'])return void _0x531844['stop']();if(!_0x76e928['consumable']['consume'](_0x1922ad['markerRange'],_0x531844['name']))return;const _0x14bd77=_0x1922ad['markerRange']['start']['nodeAfter'],_0x2afb64=_0x1922ad['markerRange']['end']['nodeBefore'],_0x3a6a5f=_0x14bd77['parent']['parent'],{column:_0x10fa25}=_0x5a63e1['getCellLocation'](_0x14bd77),{column:_0x1c8e56}=_0x5a63e1['getCellLocation'](_0x2afb64);for(let _0x1e56d9=_0x10fa25;_0x1e56d9<=_0x1c8e56;_0x1e56d9++){const _0x571c7d=_0x5a63e1['createTableWalker'](_0x3a6a5f,{'column':_0x1e56d9,'includeAllSlots':!0x1});for(const _0x86113b of _0x571c7d){const _0x4c76a6=_0x86113b['cell'],_0x3fbe76=_0x76e928['mapper']['toViewElement'](_0x4c76a6);_0x76e928['writer']['addClass']('ck-suggestion-marker-'+_0xb02c4,_0x3fbe76),_0x42d10a&&_0x76e928['writer']['setAttribute']('data-suggestion',_0x2ca0e9,_0x3fbe76),_0x76e928['mapper']['bindElementToMarker'](_0x3fbe76,_0x1922ad['markerName']),_0x4062e1&&(_0x177b29['activeMarkers']['includes'](_0x1922ad['markerName'])?_0x76e928['writer']['addClass']('ck-suggestion-marker--active',_0x3fbe76):_0x76e928['writer']['removeClass']('ck-suggestion-marker--active',_0x3fbe76));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2722b0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3505c2,_0x2237cf,_0x59eeb6)=>{_0x59eeb6['options']['showSuggestionHighlights']&&_0x2722b0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3505c2,_0x2237cf,_0x59eeb6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x295f25,_0x54dfc0,_0x3462dc)=>{const {type:_0x51079d,id:_0x3bb444}=et(_0x54dfc0['markerName']);if(!_0x177b29['hasSuggestion'](_0x3bb444))return;const _0x5c31c1=_0x177b29['getSuggestion'](_0x3bb444),_0x2b9b33=_0x5c31c1['data'];if('formatBlock'!=_0x5c31c1['type']||!_0x2b9b33||'setTableColumnHeader'!=_0x2b9b33['commandName'])return;const _0xf54b1d=_0x3462dc['mapper']['markerNameToElements'](_0x54dfc0['markerName']);if(_0xf54b1d){for(const _0x4f24b7 of _0xf54b1d)_0x3462dc['writer']['removeClass']('ck-suggestion-marker-'+_0x51079d,_0x4f24b7),_0x3462dc['writer']['removeClass']('ck-suggestion-marker--active',_0x4f24b7),_0x3462dc['writer']['removeAttribute']('data-suggestion',_0x4f24b7),_0x3462dc['mapper']['unbindElementFromMarkerName'](_0x4f24b7,_0x54dfc0['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x1d88bf=this['editor'],_0x4e9342=_0x1d88bf['locale'];function _0x10edca(_0x358a2d){return{'type':'format','content':Ot(_0x4e9342,'*Format:*\x20%0',_0x358a2d)};}_0x1d88bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x172462=>{if('formatBlock'!=_0x172462['type'])return;const {data:_0x1d1fbe}=_0x172462;return _0x1d1fbe?'setTableRowHeader'==_0x1d1fbe['commandName']?_0x1d1fbe['commandParams'][0x0]['forceValue']?_0x10edca(Ot(_0x4e9342,'FORMAT_HEADER_ROW')):_0x10edca(Ot(_0x4e9342,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x1d1fbe['commandName']?_0x1d1fbe['commandParams'][0x0]['forceValue']?_0x10edca(Ot(_0x4e9342,'FORMAT_HEADER_COLUMN')):_0x10edca(Ot(_0x4e9342,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x5ef0cd{static get requires(){return[Pe];}afterInit(){const _0x3676b0=this['editor'];if(!_0x3676b0['plugins']['has']('TableEditing')||!_0x3676b0['config']['get']('table.enableFooters'))return;const _0x461d66=_0x3676b0['locale'],_0x358403=_0x3676b0['plugins']['get']('TrackChangesEditing');_0x358403['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x358403['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x461d66,'FORMAT_FOOTER_ROW'));}},We=class extends _0x5ef0cd{afterInit(){const _0x423880=this['editor'],_0xc0201d=_0x423880['locale'],_0x2470f5=_0x423880['plugins']['get']('TrackChangesEditing');function _0x3fb357(_0x71a805){return{'type':'format','content':''+Ot(_0xc0201d,'*Set\x20table\x20type:*\x20%0',_0x71a805)};}_0x423880['plugins']['has']('TableLayout')&&(_0x2470f5['enableCommand']('insertTableLayout'),_0x2470f5['enableDefaultAttributesIntegration']('tableType'),_0x2470f5['descriptionFactory']['registerElementLabel'](_0x1a27a0=>_0x1a27a0['is']('element','table')&&'layout'===_0x1a27a0['getAttribute']('tableType'),_0xe857c2=>Ot(_0xc0201d,'ELEMENT_LAYOUT_TABLE',_0xe857c2)),_0x2470f5['descriptionFactory']['registerDescriptionCallback'](_0x253474=>{const {data:_0x58dee3}=_0x253474;if(_0x58dee3&&'tableType'==_0x58dee3['key'])switch(_0x58dee3['newValue']){case'layout':return _0x3fb357(Ot(_0xc0201d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3fb357(Ot(_0xc0201d,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ve['map'](_0x294abf=>[_0x294abf,null]));var ze=class extends _0x5ef0cd{static get requires(){return[Pe];}afterInit(){const _0x127eb7=this['editor'];if(!_0x127eb7['plugins']['has']('TableClipboard'))return;const _0x36c065=_0x127eb7['plugins']['get']('TrackChangesEditing'),_0x116d90=_0x127eb7['plugins']['get']('TableUtils'),_0x369293=_0x127eb7['plugins']['get'](Pe),_0x2c5127=_0x127eb7['plugins']['get']('TableClipboard'),_0x2f455a=_0x127eb7['plugins']['get']('TableSelection'),_0x136a7f=_0x127eb7['plugins']['get'](ft);_0x369293['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x127eb7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x127eb7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x243992=null,_0x454fa8=!0x1;_0x136a7f['on']('contentInsertion',(_0x39d55b,_0x36e518)=>{_0x454fa8='paste'===_0x36e518['method'];}),_0x127eb7['model']['on']('insertContent',(_0x25d8c3,_0x57a247)=>{if(!_0x454fa8&&null===_0x2f455a['getSelectedTableCells']())return;const [_0x5c0f16,_0x269c79]=_0x57a247,_0x9ce403=_0x57a247[_0x57a247['length']-0x1];_0x9ce403&&_0x9ce403['forceDefaultExecution']||_0x36c065['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x44646d,_0x5e4709,_0x282fa8,_0x5521ed,_0x487d40){if(_0x5e4709&&!_0x5e4709['is']('documentSelection'))return!0x1;const _0x26af3b=_0x487d40['getTableIfOnlyTableInContent'](_0x44646d,_0x282fa8);if(!_0x26af3b||!Xe(_0x26af3b,void 0x0,_0x5521ed))return!0x1;const _0x2a28b9=_0x5521ed['getSelectionAffectedTableCells'](_0x282fa8['document']['selection']);if(!_0x2a28b9['length'])return!0x1;const _0x4ef494=_0x2a28b9[0x0]['findAncestor']('table'),_0x5f2477=_0x5521ed['getRowIndexes'](_0x2a28b9),_0x5c76c2=_0x5521ed['getColumnIndexes'](_0x2a28b9),_0x8de595={'startRow':_0x5f2477['first'],'endRow':_0x5f2477['last'],'startColumn':_0x5c76c2['first'],'endColumn':_0x5c76c2['last']};return 0x1==_0x2a28b9['length']&&(_0x8de595['endRow']+=_0x5521ed['getRows'](_0x26af3b)-0x1,_0x8de595['endColumn']+=_0x5521ed['getColumns'](_0x26af3b)-0x1),Xe(_0x4ef494,_0x8de595,_0x5521ed);}(_0x5c0f16,_0x269c79,_0x127eb7['model'],_0x116d90,_0x2c5127)&&(_0x25d8c3['stop'](),_0x243992={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x127eb7['model']['change'](()=>{_0x127eb7['model']['insertContent'](_0x57a247[0x0],_0x57a247[0x1],_0x57a247[0x2],{'forceDefaultExecution':!0x0});const _0x5efd57=_0x2a260a(),{rowInsertionRanges:_0x22066c,columnInsertionRanges:_0x516c59,insertionRanges:_0x529038,deletionRanges:_0x4b02c6,cells:_0x38bd68}=_0x243992;_0x22066c['length']&&_0x36c065['markMultiRangeInsertion'](_0x22066c,'tablePasteRow',{'tablePasteChainId':_0x5efd57}),_0x516c59['length']&&_0x36c065['markMultiRangeInsertion'](_0x516c59,'tablePasteColumn',{'tablePasteChainId':_0x5efd57}),_0x529038['length']&&(_0x36c065['markMultiRangeInsertion'](_0x529038,'tablePaste',{'tablePasteChainId':_0x5efd57,'skipNestingCheck':!0x0}),_0x529038['forEach'](_0x2b2724=>_0x2b2724['detach']?.())),_0x4b02c6['length']&&(_0x36c065['markMultiRangeDeletion'](_0x4b02c6,'tablePaste',{'tablePasteChainId':_0x5efd57,'skipNestingCheck':!0x0}),_0x4b02c6['forEach'](_0x54defb=>_0x54defb['detach']?.()));const _0x45b3cd=_0x36c065['markMultiRangeBlockFormat'](_0x38bd68['map'](({element:_0x1ec2bb})=>_0x1ec2bb),{'formatGroupId':_0x2a260a()},[],'tablePasteCell',{'tablePasteChainId':_0x5efd57});if(_0x45b3cd){const _0x2084d3=_0x45b3cd['getMarkers'](),_0x1b56fb=[];for(const {element:_0x2cf967,attributes:_0x3f0a3f}of _0x38bd68){if(!_0x3f0a3f)continue;const _0x528819=_0x127eb7['model']['createRangeOn'](_0x2cf967),_0x486b5e=_0x2084d3['find'](_0x55498c=>_0x55498c['getRange']()['isEqual'](_0x528819));_0x486b5e&&_0x1b56fb['push']([_0x486b5e['name'],_0x3f0a3f]);}_0x1b56fb['length']&&_0x45b3cd['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b56fb));}_0x243992=null;}));},{'priority':_0x430b7c['high']+0xa}),_0x136a7f['on']('contentInsertion',()=>{_0x454fa8=!0x1;},{'priority':'lowest'}),_0x127eb7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3b2a9b,_0x34400d)=>{const [_0x2bddd0,_0x1f3a63,,_0x319e53]=_0x34400d;if(!_0x243992)return;_0x3b2a9b['stop']();const _0x3b054d=_0x2bddd0['cell'],_0x4e4453=_0x1f3a63,_0x217266=Ke(_0x3b054d),_0x46daa7=Ke(_0x4e4453);_0x3b2a9b['return']=_0x3b054d;let _0x5731c7=null,_0x5619ca=null;if(_0x46daa7||_0x217266){if(_0x217266&&!_0x46daa7){_0x319e53['remove'](_0x3b054d['getChild'](0x0));for(const _0x38533e of Array['from'](_0x4e4453['getChildren']()))_0x319e53['insert'](_0x38533e,_0x3b054d,'end');const _0x38ca50=_0x243992['rowInsertionIndexes']['includes'](_0x2bddd0['row']),_0x1963b5=_0x243992['columnInsertionIndexes']['includes'](_0x2bddd0['column']);_0x38ca50||_0x1963b5||(_0x5731c7=ot['fromRange'](_0x319e53['createRangeIn'](_0x3b054d)));}else _0x46daa7&&!_0x217266&&(_0x5619ca=_0x319e53['createRangeIn'](_0x3b054d));}else{const _0x33aaf6=_0x319e53['createElement']('tableCellSuggestion'),_0x14e7a2=_0x319e53['createElement']('tableCellSuggestion');_0x319e53['wrap'](_0x319e53['createRangeIn'](_0x3b054d),_0x14e7a2),_0x319e53['insert'](_0x33aaf6,_0x3b054d,0x0);for(const _0x290adb of Array['from'](_0x4e4453['getChildren']()))_0x319e53['insert'](_0x290adb,_0x33aaf6,'end');_0x5731c7=ot['fromRange'](_0x319e53['createRangeOn'](_0x33aaf6)),_0x5619ca=ot['fromRange'](_0x319e53['createRangeOn'](_0x14e7a2));}const _0x17d011=Array['from'](_0x4e4453['getAttributes']())['filter'](([_0x4e6917])=>Ve['includes'](_0x4e6917));_0x243992['cells']['push']({'element':_0x3b054d,'attributes':_0x17d011['length']?Object['fromEntries'](_0x17d011):null}),_0x5731c7&&_0x243992['insertionRanges']['push'](_0x5731c7),_0x5619ca&&_0x243992['deletionRanges']['push'](_0x5619ca);},{'priority':'high'}),_0x116d90['on']('insertColumns',(_0x505385,_0xb194f5)=>{const [_0x3ca6b8,_0x3ea753={}]=_0xb194f5;if(!_0x243992)return;const _0x3bbf19=_0x3ea753['at']||0x0,_0x5a3653=_0x3ea753['columns']||0x1;_0x243992['columnInsertionIndexes']=new Array(_0x5a3653)['fill'](_0x3bbf19)['map']((_0x543f6c,_0x22ab1b)=>_0x543f6c+_0x22ab1b);for(const {cell:_0xa51b7c}of _0x116d90['createTableWalker'](_0x3ca6b8,{'startColumn':_0x3bbf19,'endColumn':_0x3bbf19+_0x5a3653-0x1}))_0x243992['columnInsertionRanges']['push'](_0x127eb7['model']['createRangeOn'](_0xa51b7c));},{'priority':'low'}),_0x116d90['on']('insertRows',(_0x34323d,_0x11ec2e)=>{const [_0xe939ea,_0x4af10f={}]=_0x11ec2e;if(!_0x243992)return;const _0x4177ea=_0x4af10f['at']||0x0,_0x454f2e=_0x4af10f['rows']||0x1;_0x243992['rowInsertionIndexes']=new Array(_0x454f2e)['fill'](_0x4177ea)['map']((_0x259795,_0x28c15c)=>_0x259795+_0x28c15c);for(const {cell:_0x40892b}of _0x116d90['createTableWalker'](_0xe939ea,{'startRow':_0x4177ea,'endRow':_0x4177ea+_0x454f2e-0x1}))_0x243992['rowInsertionRanges']['push'](_0x127eb7['model']['createRangeOn'](_0x40892b));},{'priority':'low'}),_0x36c065['descriptionFactory']['registerDescriptionCallback'](_0xa7c0b4=>{if(_0xa7c0b4['subType']&&_0xa7c0b4['subType']['startsWith']('tablePaste'))return _0xa7c0b4['previous']?{}:{'type':'insertion','content':Ot(_0x127eb7['locale'],'*Replace\x20table\x20cells*')};});const _0x1e4167=()=>!0x1;for(const _0x2fb914 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x36c065['_suggestionFactory']['registerCustomCallback']('insertion',_0x2fb914,'join',_0x1e4167),_0x36c065['_suggestionFactory']['registerCustomCallback']('deletion',_0x2fb914,'join',_0x1e4167),_0x36c065['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fb914,'join',_0x1e4167);_0x36c065['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1e4167),_0x36c065['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50ab81,_0x38ad0b,_0x54cf2)=>{const _0x56a413=_0x50ab81['map'](_0x397908=>_0x397908['getContainedElement']())['filter'](_0x599b3f=>_0x599b3f),_0x3bffa3=new Map(_0x56a413['map'](_0x33fa24=>[_0x33fa24,null]));if(_0x243992){for(const {element:_0x5533a8,attributes:_0x26d674}of _0x243992['cells'])_0x26d674&&_0x3bffa3['set'](_0x5533a8,_0x26d674);}else{if(_0x54cf2&&_0x54cf2['markerAttributes'])for(const [_0x58469f,_0x3d5d67]of Object['entries'](_0x54cf2['markerAttributes'])){const _0x52b263=_0x127eb7['model']['markers']['get'](_0x58469f),_0x5abc0b=_0x52b263?_0x52b263['getRange']()['getContainedElement']():null;_0x5abc0b&&_0x3bffa3['set'](_0x5abc0b,_0x3d5d67);}}_0x127eb7['model']['change'](_0x4baad3=>{for(const [_0x57ea0e,_0x46ea3c]of _0x3bffa3)_0x4baad3['setAttributes']({...je,..._0x46ea3c},_0x57ea0e);});});const _0x28eb5f=(_0xa120bb,_0x5c08bb)=>{_0x36c065['_suggestionFactory']['registerCustomCallback'](_0xa120bb,'tablePaste',_0x5c08bb,(_0x502831,_0x136b40,_0x49d395)=>{_0x127eb7['model']['change'](_0x2fb13e=>{const _0x412763=[];for(const _0x2a3698 of _0x502831){const _0x4f1ded=_0x2a3698['start']['nodeAfter'];_0x4f1ded['is']('element','tableCellSuggestion')&&_0x412763['push'](_0x4f1ded);}_0x36c065['_suggestionFactory']['getSuggestionCallback'](_0xa120bb,null,_0x5c08bb)(_0x502831,_0x136b40,_0x49d395);for(const _0x493a04 of _0x412763)'$graveyard'!=_0x493a04['root']['rootName']&&_0x2fb13e['unwrap'](_0x493a04);});});};_0x28eb5f('insertion','accept'),_0x28eb5f('insertion','discard'),_0x28eb5f('deletion','accept'),_0x28eb5f('deletion','discard'),_0x36c065['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3710e1=>{const _0x446174=_0x3710e1['map'](_0x1c110a=>_0x1c110a['getContainedElement']()),_0x479e35=_0x446174[0x0]['findAncestor']('table'),{minRow:_0xa13e18,maxRow:_0x1bb629}=_0x369293['_getCoordsForCells'](_0x446174);_0x116d90['removeRows'](_0x479e35,{'at':_0xa13e18,'rows':_0x1bb629-_0xa13e18+0x1});}),_0x36c065['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x213450=>{const _0x8283f5=_0x213450['map'](_0x2cb536=>_0x2cb536['getContainedElement']()),_0x5f3b5d=_0x8283f5[0x0]['findAncestor']('table'),{minColumn:_0x40b42e,maxColumn:_0x3c458e}=_0x369293['_getCoordsForCells'](_0x8283f5);_0x116d90['removeColumns'](_0x5f3b5d,{'at':_0x40b42e,'columns':_0x3c458e-_0x40b42e+0x1});});const _0x394ef6=(_0x579bd7,_0x515ec1)=>{if(!_0x515ec1['subType']||!_0x515ec1['subType']['startsWith']('tablePaste'))return;const _0x46a14f=_0x515ec1['attributes']['tablePasteChainId'],_0x49590e=_0x36c065['getSuggestions']()['filter'](_0x2bec2e=>_0x2bec2e['isInContent']&&_0x2bec2e['attributes']&&_0x2bec2e['attributes']['tablePasteChainId']==_0x46a14f);_0x49590e['length']&&_0x515ec1['getAllAdjacentSuggestions']()['length']!=_0x49590e['length']&&_0x49590e['reduce']((_0x564e8d,_0x4764a2)=>(_0x564e8d['next']=_0x4764a2,_0x4764a2['previous']=_0x564e8d,_0x4764a2));};function _0x16a9a7(_0x3df0aa,_0x104201=!0x0){const {id:_0x161da0,authorId:_0x4703dd}=et(_0x3df0aa['markerName']),_0x57b8b0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2227f4=_0x36c065['activeMarkers']['includes'](_0x3df0aa['markerName']);return _0x2227f4&&_0x57b8b0['push']('ck-suggestion-marker--active'),{'classes':_0x57b8b0,'attributes':{'data-suggestion':_0x161da0,'data-author-id':_0x4703dd},'priority':_0x2227f4&&_0x104201?0xbc2:0xbb8};}_0x36c065['on']('suggestionLoaded',_0x394ef6,{'priority':'high'}),_0x36c065['on']('suggestionUnloaded',_0x394ef6,{'priority':'high'}),_0x127eb7['model']['document']['registerPostFixer'](()=>{let _0x441421=!0x1;const _0x2ee08d=Array['from'](_0x127eb7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4abf47,data:_0x48228a}of _0x2ee08d){const {group:_0x1cbf68,type:_0x354443,id:_0xe9a2e3}=et(_0x4abf47);if('suggestion'!=_0x1cbf68||'deletion'!=_0x354443||_0x48228a['oldRange'])continue;if(!_0x36c065['hasSuggestion'](_0xe9a2e3))continue;const _0x1e9de1=_0x36c065['getSuggestion'](_0xe9a2e3)['getRanges'](),_0x12d333=_0x127eb7['plugins']['get']('Users')['me'];for(const _0xd3c831 of _0x36c065['getSuggestions']())if(_0xd3c831['isInContent']&&_0xd3c831['author']==_0x12d333&&'formatBlock'==_0xd3c831['type']&&'tablePasteCell'==_0xd3c831['subType']&&_0xd3c831['getRanges']()['every'](_0xd2adce=>_0x1e9de1['some'](_0x5c9fd5=>_0x5c9fd5['containsRange'](_0xd2adce,!0x0)))){for(const _0x17c284 of _0xd3c831['getAllAdjacentSuggestions']())_0x17c284['isInContent']&&(_0x17c284['discard'](),_0x441421=!0x0);}}return _0x441421;}),_0x127eb7['model']['document']['registerPostFixer'](_0x6ad2eb=>{const _0x141fc0=_0x127eb7['commands']['get']('redo');if(!_0x141fc0||!_0x141fc0['_createdBatches']['has'](_0x6ad2eb['batch']))return!0x1;let _0x4ba30c=!0x1;const _0x203e0b=_0x127eb7['plugins']['get']('Users')['me'],_0x3108e2=_0x127eb7['model']['document']['differ']['getChanges'](),_0x294ec4=Array['from'](_0x127eb7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1d74d6,data:_0x2875a0})=>{const {group:_0x4a9b0d,subType:_0x454be6,authorId:_0x1efed6}=et(_0x1d74d6);return'suggestion'==_0x4a9b0d&&'tablePaste'==_0x454be6&&_0x1efed6==_0x203e0b['id']&&!_0x2875a0['oldRange'];});for(const _0x3cb137 of _0x3108e2){if('insert'!=_0x3cb137['type']||'tableCellSuggestion'!=_0x3cb137['name']||0x1!=_0x3cb137['length'])continue;const _0x3d2ecc=_0x6ad2eb['createRange'](_0x3cb137['position'],_0x3cb137['position']['getShiftedBy'](0x1));if(!_0x294ec4['find'](({data:_0x5f0c06})=>_0x5f0c06['newRange']['isEqual'](_0x3d2ecc))){for(const {name:_0x30b591,data:_0x11a8fd}of _0x294ec4)if(_0x3d2ecc['containsRange'](_0x11a8fd['newRange'])){_0x6ad2eb['updateMarker'](_0x30b591,{'range':_0x3d2ecc}),_0x4ba30c=!0x0;break;}}}return _0x4ba30c;}),_0x127eb7['model']['document']['registerPostFixer'](_0x14f8ed=>{let _0x2f8c35=!0x1;const _0x58fea=_0x127eb7['plugins']['get']('Users')['me'],_0x383803=_0x36c065['getSuggestions']()['filter'](_0x36c29c=>_0x36c29c['isInContent']&&_0x36c29c['author']==_0x58fea),_0x1f6936=new Set(),_0x3894e4=new Set();for(const _0x22e2f5 of _0x383803)if('tablePaste'==_0x22e2f5['subType'])for(const _0x22c46d of _0x22e2f5['getMarkers']()){const _0x558212=_0x22c46d['getRange']()['getContainedElement']();if(_0x558212){if(_0x558212['is']('element','tableCellSuggestion')&&Ke(_0x558212)){_0x22e2f5['removeMarker'](_0x22c46d['name']),_0x1f6936['add'](_0x558212),_0x2f8c35=!0x0;const _0x421552=_0x558212['nextSibling'],_0x3a3303=_0x558212['previousSibling'],_0x21f2aa=_0x421552&&_0x421552['is']('element','tableCellSuggestion'),_0x5b97ad=_0x3a3303&&_0x3a3303['is']('element','tableCellSuggestion');_0x21f2aa&&!_0x1f6936['has'](_0x421552)&&_0x3894e4['add'](_0x421552),_0x5b97ad&&!_0x1f6936['has'](_0x3a3303)&&_0x3894e4['add'](_0x3a3303);}else _0x558212['is']('element','paragraph')&&_0x558212['isEmpty']&&(_0x22e2f5['removeMarker'](_0x22c46d['name']),_0x2f8c35=!0x0);}}else{if('tablePasteCell'==_0x22e2f5['subType']){if(!_0x22e2f5['attributes']||!_0x22e2f5['attributes']['tablePasteChainId'])continue;const _0x5df7e5=_0x22e2f5['attributes']['markerAttributes'];if(_0x5df7e5&&Object['keys'](_0x5df7e5)['length'])continue;const _0x329d5d=_0x22e2f5['attributes']['tablePasteChainId'];let _0x34a797=!0x0,_0x2f4881=!0x0;for(const _0x2c3a7f of _0x383803)if(_0x2c3a7f['subType']&&_0x2c3a7f['subType']['startsWith']('tablePaste')){if(!_0x2c3a7f['attributes']['tablePasteChainId']){_0x2f4881=!0x1;break;}if(_0x2c3a7f['id']!=_0x22e2f5['id']&&_0x2c3a7f['attributes']['tablePasteChainId']==_0x329d5d){_0x34a797=!0x1;break;}}_0x2f4881&&_0x34a797&&(_0x22e2f5['removeMarkers'](),_0x2f8c35=!0x0);}}for(const _0xd6f589 of _0x1f6936)_0x14f8ed['remove'](_0xd6f589);for(const _0x144f1e of _0x3894e4)_0x14f8ed['unwrap'](_0x144f1e);return _0x2f8c35;}),_0x127eb7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xee9266=>_0x16a9a7(_0xee9266),'converterPriority':'high'}),_0x127eb7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x511ff2,_0x2cf6be)=>_0x2cf6be['options']['showSuggestionHighlights']?_0x16a9a7(_0x511ff2,!0x1):null,'converterPriority':'high'});const _0xbf9730=_0x127eb7['editing']['view'];this['listenTo'](_0xbf9730['document'],'clipboardOutput',(_0x4ce2a2,_0x402cc9)=>{const _0x4f8741=[];for(const _0x41b782 of _0xbf9730['createRangeIn'](_0x402cc9['content'])['getItems']())_0x41b782['is']('element','suggestion-td')&&_0x4f8741['push'](_0x41b782);_0xbf9730['change'](_0x1bc8c4=>{for(const _0x155bfb of _0x4f8741)_0x1bc8c4['move'](_0x1bc8c4['createRangeIn'](_0x155bfb),_0x1bc8c4['createPositionBefore'](_0x155bfb)),_0x1bc8c4['remove'](_0x155bfb);});});}};function Ke(_0x252d19){if(_0x252d19['isEmpty'])return!0x0;const _0x4ef9b9=_0x252d19['getChild'](0x0);return _0x4ef9b9['is']('element','paragraph')&&_0x4ef9b9['isEmpty'];}function Xe(_0x57933c,_0xe8cc7b={},_0x567531){for(const {isAnchor:_0x46d732,cellHeight:_0x4fc42d,cellWidth:_0x30d468}of _0x567531['createTableWalker'](_0x57933c,{'includeAllSlots':!0x0,..._0xe8cc7b}))if(!_0x46d732||0x1!=_0x4fc42d||0x1!=_0x30d468)return!0x1;return!0x0;}var qe=class extends _0x5ef0cd{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xf391cd=this['editor']['plugins']['get']('TrackChangesEditing');_0xf391cd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0xf391cd['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0xf391cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xf391cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0xf1a58a=_0xf391cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0xf391cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x5cf7ad,_0x274884)=>{_0xf1a58a(_0x5cf7ad,_0x274884),this['_restoreCellWidths'](_0x5cf7ad[0x0]['start']['nodeAfter'],_0x274884['commandParams'][0x0]['cellWidths']);}),_0xf391cd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x57e3df,_0x47f272){const _0x18281c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e0b08=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x492466=_0x47f272['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2fcf78=_0x1e0b08['getColumnGroupElement'](_0x492466);let _0x3a4564=_0x2fcf78?_0x1e0b08['getTableColumnsWidths'](_0x2fcf78):null,_0x5d0a1b=_0x492466['getAttribute']('tableWidth')||null;const _0x5c1326=_0x47f272['tableWidth']||_0x5d0a1b,_0x38a006=_0x47f272['columnWidths']||_0x3a4564;let _0x21ea2d=this['_getCellWidths'](_0x492466);const _0x2d555=this['_foldResizeTableSuggestion'](_0x492466);_0x2d555&&(_0x5d0a1b=_0x2d555['tableWidth'],_0x3a4564=_0x2d555['columnWidths'],_0x21ea2d=_0x2d555['cellWidths']||_0x21ea2d),_0x57e3df({'table':_0x492466,'tableWidth':_0x5c1326,'columnWidths':_0x38a006}),_0x18281c['markBlockFormat'](_0x492466,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d0a1b,'columnWidths':_0x3a4564,'cellWidths':_0x21ea2d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x57afc5,_0x4db4c3={}){if(void 0x0===_0x4db4c3['value']||''===_0x4db4c3['value'])return void _0x57afc5(_0x4db4c3);const _0x7ea28f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4db137=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1c3198=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x4db4c3['batch']||(_0x4db4c3['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x4db4c3['batch'],()=>{const _0x3e5709=_0x4db137['getColumnGroupElement'](_0x1c3198);let _0x414da2=_0x3e5709?_0x4db137['getTableColumnsWidths'](_0x3e5709):null,_0x15a8ef=_0x1c3198['getAttribute']('tableWidth')||null,_0x1168f7=this['_getCellWidths'](_0x1c3198);const _0xe1069d=this['_foldResizeTableSuggestion'](_0x1c3198,!0x0);_0xe1069d&&(_0x15a8ef=_0xe1069d['tableWidth'],_0x414da2=_0xe1069d['columnWidths'],_0x1168f7=_0xe1069d['cellWidths']||_0x1168f7),_0x57afc5(_0x4db4c3),_0x7ea28f['markBlockFormat'](_0x1c3198,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15a8ef,'columnWidths':_0x414da2,'cellWidths':_0x1168f7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0xa058e2,_0x4ba80e=!0x1){const _0xd1801c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bf65b=this['editor']['plugins']['get']('Users')['me'];for(const _0xcfd270 of _0xd1801c['getSuggestions']({'skipNotAttached':!0x0})){const _0xa1c8ef=_0xcfd270['getContainedElement']();if('resizeTable'===_0xcfd270['subType']&&_0xa1c8ef===_0xa058e2){_0xcfd270['author']!==_0x5bf65b&&(_0x4ba80e?_0xcfd270['removeMarkers']():_0xcfd270['discard']());const _0x160878=_0xcfd270['data']['commandParams'];return{'tableWidth':_0x160878[0x0]['tableWidth'],'columnWidths':_0x160878[0x0]['columnWidths'],'cellWidths':_0x160878[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x36c26a){const _0x2823ec=[];for(const _0x2ae197 of _0x36c26a['getChildren']())if(_0x2ae197['is']('element','tableRow')){for(const _0x1904c5 of _0x2ae197['getChildren']())_0x2823ec['push'](_0x1904c5['getAttribute']('tableCellWidth')||null);}return _0x2823ec;}_restoreCellWidths(_0x159015,_0xd26ffa){_0xd26ffa&&this['editor']['model']['change'](_0x432cb9=>{let _0x50f559=0x0;for(const _0xa6a423 of _0x159015['getChildren']())if(_0xa6a423['is']('element','tableRow'))for(const _0x961e1b of _0xa6a423['getChildren']()){const _0xae9e43=_0xd26ffa[_0x50f559++];_0xae9e43&&_0x432cb9['setAttribute']('tableCellWidth',_0xae9e43,_0x961e1b);}});}handleSuggestionDescription(_0x751d67){if('formatBlock'!=_0x751d67['type']&&'formatInline'!=_0x751d67['type'])return;const {data:_0x4bb717}=_0x751d67;return _0x4bb717&&'resizeTable'===_0x4bb717['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x5ef0cd{afterInit(){const _0x35d51a=this['editor'];_0x35d51a['plugins']['has']('Template')&&_0x35d51a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x5ef0cd{afterInit(){const _0x2673c6=this['editor'];if(!_0x2673c6['commands']['get']('insertTableOfContents'))return;_0x2673c6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x57800c=_0x2673c6['plugins']['get']('TrackChangesEditing'),_0x15d8e3=_0x2673c6['locale'];_0x57800c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x549fb8=>Ot(_0x15d8e3,'ELEMENT_TABLE_OF_CONTENTS',_0x549fb8));}},Ze=class extends _0x5ef0cd{afterInit(){const _0x5b8e23=this['editor'];_0x5b8e23['plugins']['has']('Title')&&(_0x5b8e23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x5b8e23['locale'],'ELEMENT_TITLE')),_0x5b8e23['model']['document']['registerPostFixer'](_0x29d07e=>{let _0x4c62c1=!0x1;const _0xbac24a=Array['from'](_0x5b8e23['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc1feeb,data:_0x12cd4b}of _0xbac24a){const {group:_0x41b3d0}=et(_0xc1feeb);if('suggestion'!==_0x41b3d0||!_0x12cd4b['newRange'])continue;const _0x99623d=_0x12cd4b['newRange'],_0xfb0256=_0x99623d['end']['nodeBefore'];if(!_0xfb0256||!_0xfb0256['is']('element','title-content'))continue;if(!_0x99623d['start']['isTouching'](_0x99623d['end']))continue;const _0xca2004=_0x5b8e23['model']['schema']['getNearestSelectionRange'](_0x99623d['end'],'forward');if(_0xca2004&&_0xca2004['isCollapsed']){const _0x1d909e=_0x29d07e['createRange'](_0x99623d['start'],_0xca2004['start']);_0x1d909e['isEqual'](_0x99623d)||(_0x29d07e['updateMarker'](_0xc1feeb,{'range':_0x1d909e}),_0x4c62c1=!0x0);}_0x4c62c1||(_0x29d07e['removeMarker'](_0xc1feeb),_0x4c62c1=!0x0);}return _0x4c62c1;}));}},Je=class extends _0x5ef0cd{afterInit(){const _0x3aee5d=this['editor'],_0x268c3e=_0x3aee5d['plugins']['get']('TrackChangesEditing');_0x3aee5d['plugins']['has']('Uploadcare')&&(_0x268c3e['enableCommand']('uploadcare'),_0x3aee5d['plugins']['has']('UploadcareImageEdit')&&(_0x268c3e['enableCommand']('uploadcareImageEdit'),_0x268c3e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x268c3e['descriptionFactory']['registerDescriptionCallback'](_0x5e7a56=>{if('attribute'!=_0x5e7a56['type'])return;const {data:_0x4b547a}=_0x5e7a56;return _0x4b547a&&'uploadcareImageId'==_0x4b547a['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x5ef0cd{afterInit(){const _0x3ff549=this['editor'],_0x12db44=_0x3ff549['plugins']['get']('TrackChangesEditing');_0x3ff549['plugins']['has']('UndoEditing')&&(_0x12db44['enableCommand']('undo'),_0x12db44['enableCommand']('redo'));}},en=class extends _0x5ef0cd{static get requires(){return[Pe];}afterInit(){const _0x30e3c7=this['editor'];_0x30e3c7['plugins']['has']('TableCaptionEditing')&&_0x30e3c7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x5ef0cd{tableProperties;tableCellProperties;constructor(_0x3b0914){super(_0x3b0914),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 _0xe6713c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x50a951 of this['tableProperties'])_0xe6713c['enableCommand'](_0x50a951,(_0x3f45cb,_0xb608ba)=>{const _0xaad680=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x50a951,[_0xaad680],this['tableProperties'],'tableProperties',_0x3f45cb,_0xb608ba);});_0xe6713c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xe6713c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe6713c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x23c500,_0x366878)=>this['handleDiscardAction'](this['tableProperties'],_0x23c500,_0x366878)),_0xe6713c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x517f0d of this['tableCellProperties'])this['editor']['commands']['get'](_0x517f0d)&&_0xe6713c['enableCommand'](_0x517f0d,(_0x3aa381,_0x1ecb08)=>{const _0x66cb0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x517f0d,_0x66cb0,this['tableCellProperties'],'tableCellProperties',_0x3aa381,_0x1ecb08);});_0xe6713c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xe6713c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe6713c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4510a6,_0x2529f3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4510a6,_0x2529f3)),_0xe6713c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xe6713c['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xe6713c['descriptionFactory']['registerDescriptionCallback'](_0x5d294c=>this['handleSuggestionDescription'](_0x5d294c)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x311bc1,_0x568964,_0x564fa3,_0x40fcf0,_0x5df1d4,_0x3cf5d3){const _0x5eb8b7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3cf5d3['batch'],()=>{for(const _0x499b2e of _0x568964)if(this['_getSuggestion'](_0x499b2e,_0x40fcf0))_0x5df1d4(_0x3cf5d3);else{const _0x303e14={};for(const _0x5e9cfa of _0x564fa3){const _0x2e2c3a=_0x499b2e['getAttribute'](_0x5e9cfa);void 0x0!==_0x2e2c3a&&(_0x303e14[_0x5e9cfa]=_0x2e2c3a);}const _0x32e435=this['_getResizedColumnWidths'](_0x499b2e);_0x32e435&&(_0x303e14['columnWidths']=_0x32e435),_0x5df1d4(_0x3cf5d3),_0x5eb8b7['markBlockFormat'](_0x499b2e,{'commandParams':[_0x303e14]},[],_0x40fcf0);}});}handleDiscardAction(_0x3fbe91,_0x500856,_0x2d1de0){const _0x2f8a1f=_0x500856[0x0]['start']['nodeAfter'],_0x1adb04=_0x2d1de0['commandParams'][0x0];this['editor']['model']['change'](_0x165fff=>{for(const _0x4b3ce1 of _0x3fbe91)void 0x0!==_0x1adb04[_0x4b3ce1]?_0x165fff['setAttribute'](_0x4b3ce1,_0x1adb04[_0x4b3ce1],_0x2f8a1f):_0x165fff['removeAttribute'](_0x4b3ce1,_0x2f8a1f);if(_0x1adb04['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x158781=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3d317c=_0x158781['getColumnGroupElement'](_0x2f8a1f);if(_0x3d317c){const _0xee3be2=_0x158781['getTableColumnsWidths'](_0x3d317c),_0x402555=_0x2f8a1f['getAttribute']('tableWidth');if(('string'==typeof _0x402555&&_0x402555['trim']()['endsWith']('px'))!==_0xee3be2['some'](_0x1f7bd2=>'string'==typeof _0x1f7bd2&&_0x1f7bd2['endsWith']('px'))){const _0x248db1=_0x158781['getTableColumnElements'](_0x3d317c);_0x1adb04['columnWidths']['forEach']((_0x4c3109,_0x4ee55f)=>{_0x248db1[_0x4ee55f]&&_0x165fff['setAttribute']('columnWidth',_0x4c3109,_0x248db1[_0x4ee55f]);});}}}});}_getResizedColumnWidths(_0x2588e4){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2588e4['is']('element','table'))return;const _0x1e1f0b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2824d6=_0x1e1f0b['getColumnGroupElement'](_0x2588e4);return _0x2824d6?_0x1e1f0b['getTableColumnsWidths'](_0x2824d6):void 0x0;}handleSuggestionDescription(_0x474211){if(_0x474211['data'])switch(_0x474211['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x1d69a0,_0x3bcb56){const _0x108296=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x246dd6 of _0x108296['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ca764=_0x246dd6['getContainedElement']();if(_0x246dd6['subType']===_0x3bcb56&&_0x1ca764===_0x1d69a0)return _0x246dd6;}return null;}_registerTablePropertiesAttributes(){const _0x405332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x398901=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1ec6ca of _0x398901){const _0x45102e=_0x1ec6ca['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x405332['descriptionFactory']['registerAttributeLabel'](_0x1ec6ca,Ot(this['editor']['locale'],'FORMAT_'+_0x45102e));}}},sn=class extends _0x5ef0cd{afterInit(){const _0x12c2ea=this['editor'];if(!_0x12c2ea['plugins']['has']('LineHeight'))return;const _0x5bfa4c=_0x12c2ea['plugins']['get']('TrackChangesEditing'),_0x2c847=_0x12c2ea['locale'];_0x5bfa4c['enableDefaultAttributesIntegration']('lineHeight'),_0x5bfa4c['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x2c847,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x5ef0cd{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x3018ff,_0x5b7531,_0x4eac81,_0x39e43f,_0x566391,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29f674){super(_0x29f674),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x143050,_0x47e8ef,_0x5322f9,_0x8951ff)=>{this['_model']['change'](()=>{for(const _0x4ff39a of[..._0x8951ff,..._0x5322f9])this['_model']['markers']['has'](_0x4ff39a)&&_0x29f674['editing']['reconvertMarker'](_0x4ff39a);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29f674['plugins']['get'](_0x3018ff),this['_suggestionsConversion']=_0x29f674['plugins']['get'](_0x5b7531),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x29f674['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29f674['config']['get']('trackChanges.trackFormatChanges'),_0x29f674['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29f674['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x29f674,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x2b2ee8=this['editor'];_0x2b2ee8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x263fb1,{writer:_0x5d1ba9})=>{let _0x1117de='suggestion:'+_0x263fb1['getAttribute']('suggestion-type')+':'+_0x263fb1['getAttribute']('id');return _0x263fb1['getAttribute']('marker-count')&&(_0x1117de+=':'+_0x263fb1['getAttribute']('marker-count')),_0x5d1ba9['createElement']('$marker',{'data-name':_0x1117de});}}),_0x2b2ee8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2b2ee8['model']['document']['registerPostFixer'](_0x15cc94=>{let _0x4434c8=!0x1;const _0x24f8de=Array['from'](_0x2b2ee8['model']['document']['differ']['getChangedMarkers']()),_0x3a2d86=new Set();for(const {name:_0x14d160,data:_0x4822a1}of _0x24f8de){const {group:_0x1edb29,type:_0xd1bfd2,subType:_0x48d5b0,id:_0x3565da}=et(_0x14d160);if('suggestion'!==_0x1edb29)continue;const _0x23072e=_0x48d5b0?'suggestion:'+_0xd1bfd2+':'+_0x48d5b0+':'+_0x3565da:'suggestion:'+_0xd1bfd2+':'+_0x3565da,_0x1c9956=_0x2b2ee8['model']['markers']['getMarkersGroup'](_0x23072e),_0x252a2d=_0x2b2ee8['model']['markers']['get'](_0x14d160),_0xddb778=this['_suggestions']['get'](_0x3565da);if(null!=_0x4822a1['newRange']){'formatInline'==_0xd1bfd2&&(_0x4434c8=_0x4434c8||un(_0x4822a1['newRange'],_0x14d160,_0x15cc94,_0x2b2ee8['model']['schema']));const _0x3976e1='attribute'==_0xd1bfd2&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x48d5b0)),_0x409e81='attribute'==_0xd1bfd2&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x48d5b0));if(_0x4822a1['newRange']['isCollapsed']||'$graveyard'==_0x4822a1['newRange']['root']['rootName']||'formatBlock'==_0xd1bfd2&&!hn(_0x4822a1['newRange'])||_0x3976e1&&!hn(_0x4822a1['newRange'])||_0x409e81&&gn(_0x4822a1['newRange'])||'deletion'==_0xd1bfd2&&gn(_0x4822a1['newRange'])||_0x252a2d&&fn(_0x252a2d,_0x1c9956))_0x15cc94['removeMarker'](_0x14d160),_0x4434c8=!0x0;else{if(!_0xddb778||!_0xddb778['isInContent'])continue;if(_0x4822a1['newRange']&&_0x4822a1['oldRange']&&_0x4822a1['newRange']['isEqual'](_0x4822a1['oldRange']))continue;_0x3a2d86['add'](_0xddb778);}}}return _0x3a2d86['size']>0x0&&(_0x4434c8=!!this['_joinWithAdjacentSuggestions'](_0x3a2d86)||_0x4434c8),_0x4434c8;}),_0x2b2ee8['model']['document']['registerPostFixer'](_0x460649=>{let _0x53a701=!0x1;for(const _0xd149e0 of _0x2b2ee8['model']['document']['differ']['getChanges']())if('insert'==_0xd149e0['type'])for(const _0x44ebfd of this['_suggestions']['values']()){if(_0x44ebfd['isMultiRange']||!_0x44ebfd['isInContent'])continue;const _0x110d28='formatBlock'==_0x44ebfd['type'],_0xe7e4c6=this['_getAttributeKey'](_0x44ebfd),_0x2542c2=_0xe7e4c6&&this['_suggestionsConversion']['isBlockAttribute'](_0xe7e4c6);if(!_0x110d28&&!_0x2542c2)continue;const _0x431177=_0x44ebfd['getFirstRange']();if(_0x431177['start']['parent']!=_0x431177['end']['parent']&&!_0x431177['end']['isAtEnd']){const _0x23d3b0=_0x2b2ee8['model']['createPositionAt'](_0x431177['start']['nodeAfter'],'end'),_0x32c067=_0x2b2ee8['model']['createRange'](_0x431177['start'],_0x23d3b0);_0x460649['updateMarker'](_0x44ebfd['getFirstMarker'](),{'range':_0x32c067}),_0x53a701=!0x0;}}return _0x53a701;}),_0x2b2ee8['model']['document']['registerPostFixer'](_0x19dec3=>this['_processAttributeChanges'](_0x19dec3)),_0x2b2ee8['model']['document']['registerPostFixer'](_0x30b8b8=>!_0x30b8b8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30b8b8)),_0x2b2ee8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2b2ee8['model']['document']['on']('change:data',(_0x3ac542,_0x136c94)=>{if(!_0x136c94['isLocal']||_0x136c94['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5714ee=_0x2b2ee8['model']['document']['differ']['getChanges']();if(0x0==_0x5714ee['length'])return;const _0x14ac31=[],_0x3e0d69=_0x5714ee['filter'](_0x51d98f=>'attribute'==_0x51d98f['type']),_0x5a0220=_0x5714ee['filter'](_0x1a5b4d=>'insert'==_0x1a5b4d['type']&&'$text'!=_0x1a5b4d['name']);for(const _0x972b8 of _0x3e0d69)this['_suggestionsConversion']['isRegisteredAttribute'](_0x972b8['attributeKey'])&&_0x14ac31['push']({'key':_0x972b8['attributeKey'],'newValue':_0x972b8['attributeNewValue'],'oldValue':_0x972b8['attributeOldValue'],'range':mn(_0x972b8['range'],_0x2b2ee8['model'])});for(const _0x40a06a of _0x5a0220){if('rename'!=_0x40a06a['action']&&'refresh'!=_0x40a06a['action'])continue;const _0x2d8701=En(_0x40a06a['position']['nodeAfter'],_0x2b2ee8['model']),_0xf9dec3=_0x40a06a['before'];'rename'==_0x40a06a['action']&&_0x14ac31['push']({'key':rn,'newValue':_0x40a06a['name'],'oldValue':_0xf9dec3['name'],'range':_0x2d8701});for(const [_0x27e6dd,_0x386f7e]of _0xf9dec3['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x27e6dd))continue;const _0x17fe66=_0x40a06a['attributes']['get'](_0x27e6dd);_0x386f7e!==_0x17fe66&&_0x14ac31['push']({'key':_0x27e6dd,'newValue':_0x17fe66,'oldValue':_0x386f7e,'range':_0x2d8701});}for(const [_0x479571,_0x3d2d8b]of _0x40a06a['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x479571)&&(_0xf9dec3['attributes']['has'](_0x479571)||_0x14ac31['push']({'key':_0x479571,'newValue':_0x3d2d8b,'oldValue':null,'range':_0x2d8701}));}0x0!=_0x14ac31['length']&&_0x2b2ee8['model']['enqueueChange'](_0x136c94,_0x43f9d5=>{const _0x2ff06c=_0x2a260a();for(const {range:_0x4e5e45,key:_0x70281d,oldValue:_0x99fd5c,newValue:_0x481d42}of _0x14ac31)this['markAttributeChange'](_0x4e5e45,_0x70281d,_0x99fd5c,_0x481d42,{'groupId':_0x2ff06c});this['_reduceExistingSuggestions'](_0x43f9d5,_0x14ac31);});},{'priority':'lowest'}),_0x2b2ee8['model']['markers']['on']('update:suggestion',(_0x3d175a,_0x164f1a,_0x543a9f)=>{if(null==_0x543a9f){const {id:_0x1a7d9b}=et(_0x164f1a['name']),_0x25b652=this['_suggestions']['get'](_0x1a7d9b);_0x25b652&&_0x25b652['addMarkerName'](_0x164f1a['name']);}}),_0x2b2ee8['model']['document']['on']('change:data',()=>{const _0x23465e=Array['from'](_0x2b2ee8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ffd6d=>'suggestion'===et(_0x3ffd6d['name'])['group']);if(0x0===_0x23465e['length'])return;_0x23465e['sort']((_0x275021,_0x1c5c9a)=>{const _0x4847fc=_0x275021['data']['oldRange'],_0x3f6af1=_0x1c5c9a['data']['oldRange'];return null===_0x4847fc&&null===_0x3f6af1?0x0:null===_0x4847fc&&null!==_0x3f6af1?-0x1:null!==_0x4847fc&&null===_0x3f6af1?0x1:_0x4847fc['start']['isBefore'](_0x3f6af1['start'])?-0x1:0x1;});const _0x348959=new Set(),_0x4e4eea=new Set();for(const {name:_0x4f66b8,data:_0x3ee8ea}of _0x23465e){const {id:_0x764e50}=et(_0x4f66b8);if(null===_0x3ee8ea['oldRange']){const _0x5bb18e=this['_handleNewSuggestionMarker'](_0x4f66b8);_0x4e4eea['add'](_0x5bb18e);}else{const _0x54f77d=this['_suggestions']['get'](_0x764e50);null!==_0x3ee8ea['newRange']||_0x54f77d['isInContent']?(_0x348959['add'](_0x54f77d['head']),_0x4e4eea['add'](_0x54f77d)):this['_removeSuggestion'](_0x54f77d);}}_0x4e4eea['size']>0x0&&this['_refreshSuggestionsChain'](_0x4e4eea);for(const _0x51bcca of _0x348959)this['fire']('suggestionChanged',_0x51bcca);}),_0x2b2ee8['model']['on']('applyOperation',(_0x52b6aa,_0xbbf4a7)=>{const _0x19b7b4=_0xbbf4a7[0x0];if(!this['_suggestions']['size'])return;if(!_0x19b7b4['isDocumentOperation'])return;if(_0x19b7b4['batch']['isUndo']||!_0x19b7b4['batch']['isLocal'])return;let _0x295047,_0x660e35;switch(_0x19b7b4['type']){case'insert':_0x295047=_0x2b2ee8['model']['createPositionAt'](_0x19b7b4['position']),_0x660e35=_0x295047['getShiftedBy'](_0x19b7b4['howMany']);break;case'split':_0x295047=_0x2b2ee8['model']['createPositionAt'](_0x19b7b4['splitPosition']),_0x660e35=_0x2b2ee8['model']['createPositionAt'](_0x19b7b4['moveTargetPosition']);break;case'move':_0x295047=_0x2b2ee8['model']['createPositionAt'](_0x19b7b4['targetPosition']),_0x660e35=_0x295047['getShiftedBy'](_0x19b7b4['howMany']);break;default:return;}const _0x2012f6=_0x2b2ee8['model']['createRange'](_0x295047,_0x660e35);_0x2b2ee8['model']['change'](()=>{for(const {suggestion:_0x11a236,meta:_0x3f149f}of this['_findSuggestions'](_0x2012f6)){if(_0x11a236['isMultiRange'])continue;if('formatInline'==_0x11a236['type'])continue;const _0x802e26=this['_getAttributeKey'](_0x11a236);if(_0x802e26&&this['_suggestionsConversion']['isBlockAttribute'](_0x802e26)&&'split'!=_0x19b7b4['type'])continue;const _0x5b0810=_0x11a236['data']&&_0x11a236['data']['multipleBlocks'];('formatBlock'!=_0x11a236['type']||'split'==_0x19b7b4['type']&&!_0x5b0810)&&(_0x3f149f['containsRangeInObject']||'insertion'==_0x11a236['type']&&_0x3f149f['isOwn']||_0x11a236['getFirstRange']()['containsRange'](_0x2012f6)&&this['_breakSuggestionMarker'](_0x11a236,_0x295047,_0x660e35));}});},{'priority':'lowest'}),_0x2b2ee8['model']['on']('deleteContent',(_0x613436,_0x3e151e)=>{const _0x543712=_0x3e151e[0x0],_0xc37dea=_0x3e151e[0x1];if(_0xc37dea&&_0xc37dea['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x543712['isCollapsed'])return;const _0x31f63b=_0x2b2ee8['model']['schema'],{start:_0x2192ab,end:_0x509d40}=_0x543712['getFirstRange'](),_0x48d9a1=_0x2192ab['nodeAfter']&&_0x31f63b['isLimit'](_0x2192ab['nodeAfter'])?null:_0x31f63b['getNearestSelectionRange'](_0x2192ab,'forward'),_0x31ad6a=_0x509d40['nodeBefore']&&_0x31f63b['isLimit'](_0x509d40['nodeBefore'])?null:_0x31f63b['getNearestSelectionRange'](_0x509d40,'backward'),_0x53b9eb=_0x2b2ee8['model']['createRange'](_0x48d9a1?_0x48d9a1['start']:_0x2192ab,_0x31ad6a?_0x31ad6a['end']:_0x509d40);_0x2b2ee8['model']['change'](_0x2d8400=>{this['markDeletion'](_0x53b9eb);const _0x1aafb2=_0x2b2ee8['model']['schema']['getNearestSelectionRange'](_0x53b9eb['start']);_0x543712['is']('documentSelection')?_0x2d8400['setSelection'](_0x1aafb2):_0x543712['setTo'](_0x1aafb2);}),_0x613436['stop']();},{'priority':_0x430b7c['normal']+0xa}),_0x2b2ee8['model']['on']('insertContent',(_0x4d7619,_0x564c7f)=>{const _0x5b9fce=_0x564c7f[_0x564c7f['length']-0x1];_0x5b9fce&&_0x5b9fce['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2b2ee8['model']['change'](()=>{let _0x475633=_0x2b2ee8['model']['insertContent'](_0x564c7f[0x0],_0x564c7f[0x1],_0x564c7f[0x2],{'forceDefaultExecution':!0x0});if(!_0x475633)return;_0x4d7619['return']=_0x475633['clone']();const _0x28aced=_0x475633['end']['nodeBefore'],_0x4e4a2b=_0x2b2ee8['model']['schema'];_0x28aced&&_0x4e4a2b['isBlock'](_0x28aced)&&!_0x4e4a2b['isObject'](_0x28aced)&&(_0x475633=_0x2b2ee8['model']['createRange'](_0x475633['start'],_0x2b2ee8['model']['createPositionAt'](_0x28aced,'end'))),this['markInsertion'](_0x475633);}),_0x4d7619['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x40e585=new pt(_0x2b2ee8,this['_suggestions']);_0x2b2ee8['commands']['add']('acceptSuggestion',_0x40e585),this['enableCommand']('acceptSuggestion');const _0x211a75=new Lt(_0x2b2ee8,this['_suggestions']);_0x2b2ee8['commands']['add']('discardSuggestion',_0x211a75),this['enableCommand']('discardSuggestion'),_0x2b2ee8['commands']['add']('acceptAllSuggestions',new yt(_0x2b2ee8,_0x40e585,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2b2ee8['commands']['add']('discardAllSuggestions',new yt(_0x2b2ee8,_0x211a75,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2b2ee8['commands']['add']('acceptSelectedSuggestions',new Nt(_0x2b2ee8,_0x40e585,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2b2ee8['commands']['add']('discardSelectedSuggestions',new Nt(_0x2b2ee8,_0x211a75,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3f6833=_0x2b2ee8['plugins']['get'](_0x3018ff);this['listenTo'](_0x3f6833,'addComment',(_0x40166a,{threadId:_0x393aad})=>{const _0x54ec60=this['_suggestions']['get'](_0x393aad);_0x54ec60&&_0x54ec60['commentThread']&&0x1===_0x54ec60['commentThread']['length']&&this['_updateSuggestionData'](_0x393aad,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f6833,'removeComment',(_0x593fcc,{threadId:_0x51e3b1})=>{const _0x582cfd=this['_suggestions']['get'](_0x51e3b1);_0x582cfd&&_0x582cfd['commentThread']&&!_0x582cfd['commentThread']['length']&&this['_updateSuggestionData'](_0x51e3b1,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x46e37b){const _0x354de1='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x52dca9=0x79188,_0x6f0740=window['Date']['now'](),_0x1dce8f=_0x46e37b['editor'],_0x1f8536=new window['Promise'](_0x29c50d=>{_0x1dce8f['once']('ready',_0x29c50d);}),_0x53de9c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4b2bd7=_0x1dce8f['config']['get']('licenseKey');async function _0x374301(){let _0xc8dc51,_0x1b52ee=null,_0x3eec65=null;try{return'GPL'==_0x4b2bd7?'NotAllowed':(_0xc8dc51=_0x4757b4(),_0xc8dc51?(_0xc8dc51['usageEndpoint']&&(_0x3eec65=_0x24310d(_0xc8dc51['usageEndpoint'],_0xc8dc51['jti'])),await _0x55e178()?_0x166a6e()?_0x311ccc()?'Expired':_0x2ac708()?('evaluation'==_0xc8dc51['licenseType']&&(_0x1b52ee=_0x349d48('EvaluationLimit')),await _0x565a12()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x311ccc(){const _0x562b4d=['evaluation','trial']['includes'](_0xc8dc51['licenseType'])?_0x6f0740/0x3e8:0xe10*_0x52dca9;return _0xc8dc51['exp']<_0x562b4d;}function _0x166a6e(){const _0x34413f=_0xc8dc51['features'];if(!_0x34413f)return!0x1;if(_0x34413f['includes']('*'))return!0x0;if(_0x34413f['includes']('TC'))return!0x0;if(_0x34413f['includes']('RTC')){if(_0x196317())return!0x0;if(_0x568bd7()||_0x1003b8())return!0x0;}return!0x1;}function _0x2ac708(){const _0x346bd5=_0xc8dc51['licensedHosts'];if(!_0x346bd5||0x0==_0x346bd5['length'])return!0x0;const {hostname:_0x566797}=new URL(window['location']['href']);if(_0x346bd5['includes'](_0x566797))return!0x0;const _0x4f55ec=_0x566797['split']('.');return _0x346bd5['filter'](_0x27cebe=>_0x27cebe['includes']('*'))['map'](_0x15e54d=>_0x15e54d['split']('.'))['filter'](_0x51cd03=>_0x51cd03['length']<=_0x4f55ec['length'])['map'](_0x32f17e=>Array(_0x4f55ec['length']-_0x32f17e['length'])['fill']('*'===_0x32f17e[0x0]?'*':'')['concat'](_0x32f17e))['some'](_0x57bfb3=>_0x4f55ec['every']((_0x437711,_0x46dcc4)=>_0x57bfb3[_0x46dcc4]===_0x437711||'*'===_0x57bfb3[_0x46dcc4]));}function _0x565a12(){return _0x1b52ee&&_0x3eec65?new window['Promise']((_0x3dc018,_0x36a7e2)=>{_0x1b52ee['then'](_0x3dc018,_0x36a7e2),_0x3eec65['then'](_0x1440c4=>{'Valid'!=_0x1440c4&&_0x3dc018(_0x1440c4);},_0x36a7e2);}):_0x1b52ee||_0x3eec65||'Valid';}}function _0x24310d(_0x4e2c44,_0x21f440){return new window['Promise'](_0x416c39=>{if(_0x1020d6())return _0x416c39('Valid');_0x3dc91a(),_0x1dce8f['decorate']('_sendUsageRequest');let _0x41a5a3=!0x1;const _0x21056c=_0x2a260a();function _0xa54cec(_0x46a647){return!!_0x46a647&&('object'==typeof _0x46a647||'function'==typeof _0x46a647)&&'function'==typeof _0x46a647['then']&&'function'==typeof _0x46a647['catch'];}function _0xf966f(_0x3906ac){_0x391cf6(_0x3906ac)['then'](_0x5103bd=>_0x5103bd&&'ok'==_0x5103bd['status']?_0x42fafa(_0x8cc78c(_0x21056c+_0x21f440))!=_0x5103bd['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x80a4dd=>(_0x47efa8(),_0x80a4dd),()=>{const _0x4d10f5=_0x338af9();return null==_0x4d10f5?(_0x47efa8(),'Valid'):_0x6f0740-_0x4d10f5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x416c39)['catch'](()=>{_0x416c39('UsageLimit');});const _0x408a71=0x36ee80;function _0x47efa8(){const _0x26ec38='llct-'+_0x42fafa(_0x8cc78c(_0x4e2c44)),_0x26223c=_0x1330e8(_0x42fafa(window['Math']['ceil'](_0x6f0740/_0x408a71)));window['localStorage']['setItem'](_0x26ec38,_0x26223c);}function _0x338af9(){const _0x47cb69='llct-'+_0x42fafa(_0x8cc78c(_0x4e2c44)),_0xc469c2=window['localStorage']['getItem'](_0x47cb69);return _0xc469c2?window['parseInt'](_0x1330e8(_0xc469c2),0x10)*_0x408a71:null;}function _0x391cf6(_0x5604a7){return new window['Promise']((_0x1bfab5,_0x24eac2)=>{_0x5604a7['then'](_0x1bfab5,_0x24eac2),window['setTimeout'](_0x24eac2,0x1d4c0);});}}_0x1dce8f['on']('_sendUsageRequest',(_0x2f35bd,_0x390947)=>{if(_0x390947[0x0]!=_0x4e2c44)return _0x416c39('UsageLimit');_0x390947[0x1]={..._0x390947[0x1],'requestId':_0x21056c};},{'priority':'high'}),_0x1dce8f['on']('_sendUsageRequest',_0x245be3=>{_0xa54cec(_0x245be3['return'])&&(_0x41a5a3=!0x0,_0xf966f(_0x245be3['return']));},{'priority':'low'}),_0x1f8536['then'](()=>{_0x41a5a3||_0x416c39('UsageLimit');});});function _0x1020d6(){return'auto'==_0x1dce8f['editing']['view']['_overlayModeHint'];}function _0x3dc91a(){_0x1dce8f['editing']['view']['_overlayModeHint']='auto';}}function _0x349d48(_0x1b9fc2){const _0xaae8fa=[new window['Promise'](_0x45e2bf=>setTimeout(_0x45e2bf,0x93ecc)),_0x1f8536['then'](()=>new window['Promise'](_0x3ad06d=>{let _0x4d748e=0x0;_0x1dce8f['model']['on']('applyOperation',(_0x193eef,_0x4312c5)=>{_0x4312c5[0x0]['isDocumentOperation']&&_0x4d748e++,0x5e8==_0x4d748e&&(_0x3ad06d(),_0x193eef['off']());});}))];return window['Promise']['race'](_0xaae8fa)['then'](()=>_0x1b9fc2);}async function _0x28e260(){await _0x1f8536,_0x1dce8f['model']['change']=_0x41161c,_0x1dce8f['model']['enqueueChange']=_0x41161c,_0x1dce8f['enableReadOnlyMode']('model');}function _0x196317(){return _0x29e669('WebSocketGateway')&&'connected'==_0xcd4d64('WebSocketGateway')['state'];}function _0x568bd7(){return _0x29e669('RevisionViewerIntegration');}function _0x1003b8(){return _0x29e669('TrackChangesDataGetter');}function _0x8c3cdf(_0x41fdb8){const _0x476e30=_0x31b4e4();_0x1dce8f[_0x476e30]='trackChangesLicenseKey'+_0x41fdb8,'Valid'!=_0x41fdb8&&_0x28e260();}function _0x31b4e4(){const _0x3fc2d6=window['String'](window['performance']['now']())['replace']('.','');let _0x11e22a='R';for(let _0x2c894d=0x0;_0x2c894d<_0x3fc2d6['length'];_0x2c894d+=0x2){let _0x943695=window['parseInt'](_0x3fc2d6['substring'](_0x2c894d,_0x2c894d+0x2));_0x943695>=0x3e&&(_0x943695-=0x3e),_0x11e22a+=_0x354de1[_0x943695];}return _0x11e22a;}function _0x4757b4(){const _0x15827c=_0x4b2bd7['split']('.');if(0x3!=_0x15827c['length'])return null;return _0xc4e655(_0x15827c[0x1]);function _0xc4e655(_0x1c7e02){const _0x4bcb02=_0x10519d(_0x1c7e02);return _0x4bcb02&&_0x4d2a0a()?_0x4bcb02:null;function _0x4d2a0a(){const _0x1d96e7=_0x4bcb02['jti'],_0x4ab3df=window['parseInt'](_0x1d96e7['substring'](_0x1d96e7['length']-0x8),0x10),_0x4a6ae6={..._0x4bcb02,'jti':_0x1d96e7['substring'](0x0,_0x1d96e7['length']-0x8)};return delete _0x4a6ae6['vc'],_0x8cc78c(_0x4a6ae6)==_0x4ab3df;}}}async function _0x55e178(){let _0x1ff453=!0x0;try{const [_0x2d7b6f,_0x268b41,_0xc78fe9]=_0x4b2bd7['split']('.');return _0x253066(_0x2d7b6f),await _0x4c4da2(_0x2d7b6f,_0x268b41,_0xc78fe9),_0x1ff453;}catch{return!0x1;}function _0x253066(_0x1b4db1){const _0x4b81a8=_0x10519d(_0x1b4db1);_0x4b81a8&&'ES256'==_0x4b81a8['alg']||(_0x1ff453=!0x1);}async function _0x4c4da2(_0x93c418,_0x30dbe5,_0x2aa0f1){const _0x104367=window['Uint8Array']['from'](_0x15e0fd(_0x2aa0f1),_0x524ec2=>_0x524ec2['charCodeAt'](0x0)),_0x39dbf4=new window['TextEncoder']()['encode'](_0x93c418+'.'+_0x30dbe5),_0x20e467=window['crypto']['subtle'];if(!_0x20e467)return;const _0xdac185=await _0x20e467['importKey']('jwk',_0x53de9c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x20e467['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xdac185,_0x104367,_0x39dbf4)||(_0x1ff453=!0x1);}}function _0x10519d(_0x2bdf24){return _0x2bdf24['startsWith']('ey')?JSON['parse'](_0x15e0fd(_0x2bdf24)):null;}function _0x15e0fd(_0x76ce84){return window['atob'](_0x76ce84['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x8cc78c(_0x2ede9a){let _0x2cee53=0x1505;function _0x4b957f(_0x53a0a0){for(let _0x5a1ba6=0x0;_0x5a1ba6<_0x53a0a0['length'];_0x5a1ba6++){const _0x3ebc9e=_0x53a0a0['charCodeAt'](_0x5a1ba6);_0x2cee53=(_0x2cee53<<0x5)+_0x2cee53+_0x3ebc9e,_0x2cee53&=_0x2cee53;}}function _0x2faa03(_0x4aed4e){Array['isArray'](_0x4aed4e)?_0x4aed4e['forEach'](_0x2faa03):_0x4aed4e&&'object'==typeof _0x4aed4e?Object['entries'](_0x4aed4e)['sort']()['forEach'](([_0x54baf6,_0x5de3e2])=>{_0x4b957f(_0x54baf6),_0x2faa03(_0x5de3e2);}):_0x4b957f(window['String'](_0x4aed4e));}return _0x2faa03(_0x2ede9a),_0x2cee53>>>0x0;}function _0x42fafa(_0x55dad0){return _0x55dad0['toString'](0x10)['padStart'](0x8,'0');}function _0x1330e8(_0x13365c){return _0x13365c['split']('')['reverse']()['join']('');}function _0x29e669(_0x52c910){return _0x1dce8f['plugins']['has'](_0x52c910);}function _0xcd4d64(_0x295554){return _0x1dce8f['plugins']['get'](_0x295554);}function _0x41161c(){}_0x8c3cdf(await _0x374301());}(this);}set adapter(_0x2882e7){if(this['_adapter'])throw new _0x106f70('track-changes-adapter-already-set',this);this['_adapter']=_0x2882e7;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x42b2cb=!0x1,toJSON:_0x57e6d1=!0x1}={}){const _0x619a1b=[];for(const _0x1fcdc7 of this['_suggestions']['values']())_0x42b2cb&&!_0x1fcdc7['isInContent']||_0x619a1b['push'](_0x1fcdc7);return _0x57e6d1?_0x619a1b['map'](_0xef65ec=>_0xef65ec['toJSON']()):_0x619a1b;}getSuggestion(_0x52ee05){const _0x4f966f=this['_suggestions']['get'](_0x52ee05);if(!_0x4f966f)throw new _0x106f70('track-changes-suggestion-not-found',this);return _0x4f966f;}hasSuggestion(_0x3fcef6){return this['_suggestions']['has'](_0x3fcef6);}addSuggestionData(_0x4c8deb){const {authorId:_0x132a99,id:_0x17b772,originalSuggestionId:_0x598f91,attributes:_0x39311a}=_0x4c8deb,[_0x2b9f70,_0x57ac2c]=_0x4c8deb['type']['split'](':'),_0x337f04=this['_suggestions']['get'](_0x17b772)||this['_createSuggestion'](_0x2b9f70,_0x57ac2c,_0x17b772,_0x132a99,_0x39311a,_0x598f91);if(this['_addThreadToSuggestion'](_0x337f04),this['_checkSuggestionCorrectness'](_0x337f04,_0x2b9f70,_0x57ac2c||null,_0x132a99),_0x337f04['createdAt']=_0x4c8deb['createdAt'],_0x337f04['_isDataLoaded']=!0x0,_0x39311a&&_0x39311a['@external']){const _0x248a0b=_0x39311a['@external'],_0x1bccf4=this['_getExternalAuthor'](_0x248a0b['authorName']);_0x337f04['authoredAt']=_0x248a0b['createdAt'],_0x337f04['author']=_0x1bccf4;}else _0x337f04['authoredAt']=_0x4c8deb['createdAt'];switch(_0x4c8deb['data']&&(_0x337f04['data']=_0x4c8deb['data']),_0x4c8deb['attributes']&&(_0x337f04['attributes']=_0x4c8deb['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x337f04['_saved']=!0x0),this['_suggestionState']['get'](_0x337f04)){case'notReady':this['_suggestionState']['set'](_0x337f04,'dataReady');break;case'markerReady':_0x337f04['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x337f04])),this['_refreshSuggestionsChain'](new Set([_0x337f04])),this['_suggestionState']['set'](_0x337f04,'ready'),this['fire']('suggestionLoaded',_0x337f04)):this['_suggestionState']['set'](_0x337f04,'removed');}return _0x337f04;}acceptSuggestion(_0x14da5c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2239fe of _0x14da5c['getAllAdjacentSuggestions']())_0x2239fe['accept']();});});}discardSuggestion(_0x45a3a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4723db of _0x45a3a4['getAllAdjacentSuggestions']())_0x4723db['discard']();});});}['enableCommand'](_0x8c3de1,_0x48b4c3){const _0x4eab5f=this['editor']['commands']['get'](_0x8c3de1);if(!_0x4eab5f)throw new _0x106f70('track-changes-command-not-found',this,{'commandName':_0x8c3de1});if(this['_enabledCommands']['has'](_0x4eab5f))throw new _0x106f70('track-changes-enable-command-twice',this,{'commandName':_0x8c3de1});this['_enabledCommands']['add'](_0x4eab5f),_0x48b4c3&&_0x4eab5f['on']('execute',(_0x275746,_0x1b8032)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1b8032['length']>0x0&&_0x1b8032[_0x1b8032['length']-0x1]&&_0x1b8032[_0x1b8032['length']-0x1]['forceDefaultExecution']?_0x1b8032['pop']():(_0x275746['return']=_0x48b4c3((..._0x100dc9)=>_0x4eab5f['execute'](..._0x100dc9,{'forceDefaultExecution':!0x0}),..._0x1b8032),_0x275746['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x373010){let _0x3c8231,_0x1ba076;const _0x2fddb3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c8231=_0x373010();}catch(_0x437e70){_0x1ba076=_0x437e70;}return _0x2fddb3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ba076&&_0x106f70['rethrowUnexpectedError'](_0x1ba076,this),_0x3c8231;}markInsertion(_0x42abbc,_0x463109=null,_0x1bee80={}){if(_0x42abbc['isCollapsed'])return null;const _0x3b9d4d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1bee80['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdcba7c,meta:_0x24e6d9}of this['_findSuggestions'](_0x42abbc,'insertion'))if(_0x24e6d9['isOwn']){if(!_0x24e6d9['isNextTo']){if(_0x24e6d9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0xdcba7c,_0x1bee80))continue;return _0xdcba7c;}if(pn(_0xdcba7c,_0x1bee80))return _0xdcba7c;this['_breakSuggestionMarker'](_0xdcba7c,_0x42abbc['start'],_0x42abbc['end']);break;}if(_0x463109==_0xdcba7c['subType']&&pn(_0xdcba7c,_0x1bee80)){const _0x3530ee=_0xdcba7c['getFirstRange']();return _0x3530ee['start']['isEqual'](_0x42abbc['end'])?this['_setSuggestionRange'](_0xdcba7c,this['_model']['createRange'](_0x42abbc['start'],_0x3530ee['end'])):this['_setSuggestionRange'](_0xdcba7c,this['_model']['createRange'](_0x3530ee['start'],_0x42abbc['end'])),_0xdcba7c;}}const _0x532ca4=_0x2a260a(),_0x3e00d3=_0x3b9d4d['id'],_0x4419ad=_0x463109?'insertion:'+_0x463109:'insertion',_0x41fa4d=this['_setSuggestionData']({'id':_0x532ca4,'type':_0x4419ad,'createdAt':new Date(),'authorId':_0x3e00d3,'attributes':_0x1bee80});return this['_addSuggestionMarker'](_0x4419ad,_0x532ca4,_0x3e00d3,_0x42abbc),_0x41fa4d;}markMultiRangeInsertion(_0x229757,_0x38defa='multi',_0xc7d8ce={}){const _0x4f8ee8=this['editor']['plugins']['get']('Users')['me'],_0x4948ee=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x38defa,'join');this['_trackingSessionId']&&(_0xc7d8ce['trackingSessionId']=this['_trackingSessionId']);for(const _0x9c670c of this['getSuggestions']())if(_0x9c670c['author']['id']==_0x4f8ee8['id']&&'insertion'==_0x9c670c['type']&&_0x9c670c['subType']==_0x38defa&&pn(_0x9c670c,_0xc7d8ce)&&(_0x4948ee(_0x9c670c['getRanges'](),_0x229757)||_0x4948ee(_0x229757,_0x9c670c['getRanges']()))){for(const _0x41d47a of _0x229757)_0x9c670c['addRange'](_0x41d47a);return _0x9c670c;}for(const {suggestion:_0x1af731,meta:_0x105501}of this['_findSuggestions'](_0x229757,'insertion')){if(!_0x105501['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x105501['containsRangeInObject'])continue;if(!pn(_0x1af731,_0xc7d8ce))continue;let _0x16df49=!0x0;for(const _0x3cce6f of _0x1af731['getRanges']())for(const _0x3e0c95 of _0x229757)if(!_0x3cce6f['containsRange'](_0x3e0c95)){_0x16df49=!0x1;break;}if(_0x16df49)return _0x1af731;}const _0x3cfb0e=_0x2a260a(),_0x4d8a4d=_0x4f8ee8['id'],_0x289e48='insertion:'+_0x38defa,_0xdb07=this['_setSuggestionData']({'id':_0x3cfb0e,'type':_0x289e48,'createdAt':new Date(),'authorId':_0x4d8a4d,'attributes':_0xc7d8ce});for(const _0x3f0aac of _0x229757)this['_addSuggestionMarker'](_0x289e48,_0x3cfb0e,_0x4d8a4d,_0x3f0aac,Mt['getMultiRangeId']());return _0xdb07;}markInlineFormat(_0x583bd4,_0x4af4db,_0x129a3c=null,_0x43c938={}){if(_0x129a3c=_0x129a3c||dn(_0x4af4db),_0x583bd4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x43c938['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x378280=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x129a3c,'accept');return this['forceDefaultExecution'](()=>_0x378280([_0x583bd4],_0x4af4db,_0x43c938)),null;}const _0x30ce62=this['editor']['plugins']['get']('Users')['me'],_0x7613e3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x38251e,meta:_0x384ad1}of this['_findSuggestions'](_0x583bd4,'insertion'))_0x384ad1['isOwn']&&!_0x384ad1['isInsideObject']&&_0x7613e3['push'](..._0x38251e['getRanges']());}const _0x410b75=function(_0x4b61cc,_0x1e88b4){const _0x518618=[];for(const _0x339fdb of _0x1e88b4){const _0x2288a8=_0x4b61cc['getIntersection'](_0x339fdb);_0x2288a8&&_0x518618['push'](_0x2288a8);}return _0x518618;}(_0x583bd4,_0x7613e3),_0x4200b9=function(_0x196e38,_0x49699c){const _0x3dfb3f=[_0x196e38];for(const _0x5888ae of _0x49699c){let _0x2921eb=0x0;for(;_0x2921eb<_0x3dfb3f['length'];){const _0x369ea7=_0x3dfb3f[_0x2921eb]['getDifference'](_0x5888ae);_0x3dfb3f['splice'](_0x2921eb,0x1,..._0x369ea7),_0x2921eb+=_0x369ea7['length'];}}return _0x3dfb3f;}(_0x583bd4,_0x7613e3);_0x410b75['length']&&this['_model']['change'](()=>{for(const _0x4463d9 of _0x410b75){const _0x32db67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x129a3c,'accept');this['forceDefaultExecution'](()=>_0x32db67([_0x4463d9],_0x4af4db,_0x43c938));}});for(const _0x13e9dc of _0x4200b9){let _0x410950=null,_0x3e7cc4=_0x13e9dc['start'],_0x1fc259=_0x13e9dc['end'];for(const {suggestion:_0x264334,meta:_0x3d04c3}of this['_findSuggestions'](_0x13e9dc,'formatInline')){if(!_0x3d04c3['isOwn'])continue;if(_0x264334['subType']!=_0x129a3c)continue;if(!pn(_0x264334,_0x43c938))continue;const _0x13854d=_0x264334['getFirstRange']();if(_0x13854d['containsRange'](_0x13e9dc,!0x0))return null;_0x3e7cc4=_0x3e7cc4['isBefore'](_0x13854d['start'])?_0x3e7cc4:_0x13854d['start'],_0x1fc259=_0x1fc259['isAfter'](_0x13854d['end'])?_0x1fc259:_0x13854d['end'],_0x410950?_0x13854d['start']['isBefore'](_0x410950['getFirstRange']()['start'])?(_0x410950['removeMarkers'](),_0x410950=_0x264334):_0x264334['removeMarkers']():_0x410950=_0x264334;}const _0x2b55e9=this['_model']['createRange'](_0x3e7cc4,_0x1fc259);if(_0x410950)this['_setSuggestionRange'](_0x410950,_0x2b55e9);else{const _0x568122=_0x2a260a(),_0x5d8e5e=_0x30ce62['id'];this['_setSuggestionData']({'id':_0x568122,'type':'formatInline:'+_0x129a3c,'data':_0x4af4db,'createdAt':new Date(),'authorId':_0x5d8e5e,'attributes':_0x43c938}),this['_addSuggestionMarker']('formatInline:'+_0x129a3c,_0x568122,_0x5d8e5e,_0x2b55e9);}}return null;}markBlockFormat(_0x45ad4d,_0x1e42cd,_0x34fe28=[],_0x1d0812=null,_0x17658a={}){_0x1e42cd['formatGroupId']||(_0x1e42cd['formatGroupId']=_0x1e42cd['commandName']),_0x1e42cd['multipleBlocks']=_0x45ad4d['is']('range'),_0x1d0812=_0x1d0812||dn(_0x1e42cd);const _0x1f509a=_0x34fe28['map'](_0x540fa4=>En(_0x540fa4,this['_model'])),_0x334447=_0x45ad4d['is']('range')?_0x45ad4d:En(_0x45ad4d,this['_model']);if(this['_trackingSessionId']&&(_0x17658a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x216b5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d0812,'accept');return this['forceDefaultExecution'](()=>_0x216b5d([_0x334447],_0x1e42cd,_0x17658a)),null;}_0x1f509a['push'](_0x334447);let _0x5bae6f=!0x0;for(const _0x79b1c8 of _0x1f509a)if(!this['_rangeIsInLocalUserInsertion'](_0x79b1c8)){_0x5bae6f=!0x1;break;}if(_0x5bae6f&&'always'!==this['_trackFormatChanges']){const _0x392478=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d0812,'accept');return this['forceDefaultExecution'](()=>_0x392478([_0x334447],_0x1e42cd,_0x17658a)),null;}let _0x17de31=null,_0x349dd1=_0x334447['start'],_0x57d4e5=_0x334447['end'];for(const {suggestion:_0x2c88b0,meta:_0x340a03}of this['_findSuggestions'](_0x334447,'formatBlock')){if(!_0x340a03['isOwn'])continue;if(_0x340a03['isNextTo']||_0x340a03['containsRangeInObject']||_0x340a03['isInsideObject'])continue;if(_0x2c88b0['data']['formatGroupId']!=_0x1e42cd['formatGroupId'])continue;if(!pn(_0x2c88b0,_0x17658a))continue;const _0x5e1c66=_0x2c88b0['getFirstRange']();if(_0x2c88b0['subType']==_0x1d0812){if(_0x5e1c66['containsRange'](_0x334447,!0x0))return null;_0x349dd1=_0x349dd1['isBefore'](_0x5e1c66['start'])?_0x349dd1:_0x5e1c66['start'],_0x57d4e5=_0x57d4e5['isAfter'](_0x5e1c66['end'])?_0x57d4e5:_0x5e1c66['end'],_0x17de31?_0x5e1c66['start']['isBefore'](_0x17de31['getFirstRange']()['start'])?(_0x17de31['removeMarkers'](),_0x17de31=_0x2c88b0):_0x2c88b0['removeMarkers']():_0x17de31=_0x2c88b0;}else{const _0x4fcc06=_0x334447['getIntersection'](_0x5e1c66);this['_cutOutSuggestionMarker'](_0x2c88b0,_0x4fcc06);}}const _0x27d409=this['editor']['plugins']['get']('Users')['me'],_0x50a2fd=_0x2a260a(),_0x2bf73b=_0x27d409['id'];if(_0x17de31)return this['_setSuggestionRange'](_0x17de31,this['_model']['createRange'](_0x349dd1,_0x57d4e5)),_0x17de31;{const _0xb8f9f4=this['_setSuggestionData']({'id':_0x50a2fd,'type':'formatBlock:'+_0x1d0812,'data':_0x1e42cd,'createdAt':new Date(),'authorId':_0x2bf73b,'attributes':_0x17658a});return this['_addSuggestionMarker']('formatBlock:'+_0x1d0812,_0x50a2fd,_0x2bf73b,this['_model']['createRange'](_0x349dd1,_0x57d4e5)),_0xb8f9f4;}}markMultiRangeBlockFormat(_0x166d98,_0x16acbb,_0x5dd57d=[],_0x5364f4=null,_0x258568={}){_0x16acbb['formatGroupId']||(_0x16acbb['formatGroupId']=_0x16acbb['commandName']);const _0x210d9f=_0x166d98[0x0];_0x16acbb['multipleBlocks']=_0x210d9f['is']('range'),_0x5364f4=_0x5364f4||dn(_0x16acbb);const _0x240cb4=_0x5dd57d['map'](_0x280996=>En(_0x280996,this['_model'])),_0xb064d9=_0x210d9f['is']('range')?_0x166d98:_0x166d98['map'](_0x54014f=>En(_0x54014f,this['_model']));if(this['_trackingSessionId']&&(_0x258568['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x498452=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5364f4,'accept');return this['forceDefaultExecution'](()=>_0x498452(_0xb064d9,_0x16acbb,_0x258568)),null;}_0x240cb4['push'](..._0xb064d9);let _0x51bf9e=!0x0;for(const _0x3f0f23 of _0x240cb4)if(!this['_rangeIsInLocalUserInsertion'](_0x3f0f23)){_0x51bf9e=!0x1;break;}if(_0x51bf9e&&'always'!==this['_trackFormatChanges']){const _0x43091b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5364f4,'accept');return this['forceDefaultExecution'](()=>_0x43091b(_0xb064d9,_0x16acbb,_0x258568)),null;}const _0x58adf6=this['editor']['plugins']['get']('Users')['me'];for(const _0x1cae65 of this['getSuggestions']()){const _0x45fd86=_0x1cae65['data'];if(_0x1cae65['author']['id']!=_0x58adf6['id'])continue;if('formatBlock'!=_0x1cae65['type']||_0x45fd86['formatGroupId']!=_0x16acbb['formatGroupId'])continue;if(!pn(_0x1cae65,_0x258568))continue;const _0x7f2167=_0x1cae65['subType']==_0x5364f4;for(let _0x53681c=0x0;_0x53681c<_0xb064d9['length'];_0x53681c++){const _0x3c987b=_0xb064d9[_0x53681c];for(const _0x3a4c65 of _0x1cae65['getMarkers']()){const _0x414ca0=_0x3a4c65['getRange']();if(_0x3c987b['isEqual'](_0x414ca0)){_0x7f2167?(_0xb064d9['splice'](_0x53681c,0x1),_0x53681c--):_0x1cae65['removeMarker'](_0x3a4c65['name']);break;}}}}if(0x0==_0xb064d9['length'])return null;const _0x2f8edd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5364f4,'join');for(const _0x539e58 of this['getSuggestions']()){const _0x3969db=_0x539e58['data'];if(_0x539e58['author']['id']==_0x58adf6['id']&&('formatBlock'==_0x539e58['type']&&_0x3969db['formatGroupId']==_0x16acbb['formatGroupId']&&_0x539e58['subType']==_0x5364f4&&pn(_0x539e58,_0x258568)&&(_0x2f8edd(_0x539e58['getRanges'](),_0xb064d9)||_0x2f8edd(_0xb064d9,_0x539e58['getRanges']())))){for(const _0x82e85e of _0xb064d9)_0x539e58['addRange'](_0x82e85e);return _0x539e58;}}const _0x49e73a=_0x2a260a(),_0x334e4e=_0x58adf6['id'],_0x12f9f4='formatBlock:'+_0x5364f4,_0x25cb47=this['_setSuggestionData']({'id':_0x49e73a,'type':_0x12f9f4,'data':_0x16acbb,'createdAt':new Date(),'authorId':_0x334e4e,'attributes':_0x258568});for(const _0x9dc67d of _0xb064d9)this['_addSuggestionMarker'](_0x12f9f4,_0x49e73a,_0x334e4e,_0x9dc67d,Mt['getMultiRangeId']());return _0x25cb47;}markDeletion(_0x592fed,_0x2ac2e2=null,_0xfa7884={}){if(_0x592fed['isCollapsed'])return null;const _0x14dcf5=this['editor']['plugins']['get']('Users')['me'],_0x10363a=new ot(_0x592fed['start'],_0x592fed['end']);this['_trackingSessionId']&&(_0xfa7884['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c41d2,meta:_0x40fea9}of this['_findSuggestions'](_0x10363a,'insertion'))if(_0x40fea9['isOwn']&&!_0x40fea9['isNextTo']){if(_0x2c41d2['isMultiRange']){const _0x315703=_0x2c41d2['getRanges']()['filter'](_0x9be4d6=>'$graveyard'!=_0x9be4d6['root']['rootName']);if(_0x315703['every'](_0x2c2ee2=>_0x10363a['containsRange'](_0x2c2ee2,!0x0))&&_0x2c41d2['discard'](),_0x315703['some'](_0x3cdb7d=>_0x3cdb7d['containsRange'](_0x10363a,!0x0))){const _0x41fbb1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ac2e2,'accept');return this['forceDefaultExecution'](()=>_0x41fbb1([_0x10363a],null,_0xfa7884)),null;}}else{const _0x50a242=_0x10363a['getIntersection'](_0x2c41d2['getFirstRange']());null!==_0x50a242&&_0x2c41d2['_onDiscard']([_0x50a242],null,_0xfa7884);}}if(_0x10363a['detach'](),_0x10363a['isCollapsed']||'$graveyard'==_0x10363a['root']['rootName'])return null;let _0x44be97=null,_0x4f3222=_0x10363a['start'],_0x52f208=_0x10363a['end'];const _0x289a33=this['_findSuggestions'](_0x10363a,'deletion');for(const {suggestion:_0x574d0b,meta:_0x189eb6}of _0x289a33){const _0x1e9dbe=this['_model']['createRange'](_0x4f3222,_0x52f208);if(_0x189eb6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x189eb6['containsRangeInObject']&&!_0x189eb6['isInsideObject'])){if(_0x574d0b['isMultiRange']){if(!pn(_0x574d0b,_0xfa7884))continue;let _0x56a78b=!0x0;for(const _0x7843f6 of _0x574d0b['getRanges']()){if(_0x7843f6['containsRange'](_0x1e9dbe,!0x0))return _0x574d0b;_0x1e9dbe['containsRange'](_0x7843f6)||(_0x56a78b=!0x1);}_0x56a78b&&_0x574d0b['discard']();}else{const _0x13d1fc=_0x574d0b['getFirstRange']();if(_0x13d1fc['containsRange'](_0x1e9dbe,!0x0))return _0x574d0b;if(!pn(_0x574d0b,_0xfa7884)){_0x1e9dbe['containsRange'](_0x13d1fc)?_0x574d0b['removeMarkers']():_0x13d1fc['containsPosition'](_0x4f3222)?_0x4f3222=_0x13d1fc['end']:_0x13d1fc['containsPosition'](_0x52f208)&&(_0x52f208=_0x13d1fc['start']);continue;}_0x4f3222=_0x4f3222['isBefore'](_0x13d1fc['start'])?_0x4f3222:_0x13d1fc['start'],_0x52f208=_0x52f208['isAfter'](_0x13d1fc['end'])?_0x52f208:_0x13d1fc['end'],_0xfa7884=Object['assign']({},_0x574d0b['attributes']),_0x44be97?_0x13d1fc['start']['isBefore'](_0x44be97['getFirstRange']()['start'])?(_0x44be97['removeMarkers'](),_0x44be97=_0x574d0b):_0x574d0b['removeMarkers']():_0x44be97=_0x574d0b;}}}if(_0x44be97)return this['_setSuggestionRange'](_0x44be97,this['_model']['createRange'](_0x4f3222,_0x52f208)),_0x44be97;{const _0x159aa1=_0x2a260a(),_0x58bf0b=this['_model']['createRange'](_0x4f3222,_0x52f208),_0x5a5226=_0x14dcf5['id'],_0x8e7880=_0x2ac2e2?'deletion:'+_0x2ac2e2:'deletion',_0x1eb8b4=this['_setSuggestionData']({'id':_0x159aa1,'type':_0x8e7880,'createdAt':new Date(),'authorId':_0x5a5226,'attributes':_0xfa7884});return this['_addSuggestionMarker'](_0x8e7880,_0x159aa1,_0x5a5226,_0x58bf0b),_0x1eb8b4;}}markMultiRangeDeletion(_0x5098a5,_0x134d3c='multi',_0x23c883={}){const _0x5564d5=this['editor']['plugins']['get']('Users')['me'],_0x38012a=_0x5098a5['map'](_0x46abac=>new ot(_0x46abac['start'],_0x46abac['end'])),_0x85b126=new Set();this['_trackingSessionId']&&(_0x23c883['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x26e1ca,meta:_0x3b26c0}of this['_findSuggestions'](_0x38012a,'insertion'))_0x3b26c0['isOwn']&&!_0x3b26c0['isNextTo']&&_0x85b126['add'](_0x26e1ca);for(const _0x4080ef of _0x85b126)if(_0x4080ef['isMultiRange']){const _0x40728b=_0x4080ef['getRanges']();if(_0x4080ef['attributes']&&_0x4080ef['attributes']['skipNestingCheck']||_0x40728b['every'](_0x512d43=>_0x38012a['some'](_0x2b0b51=>_0x2b0b51['containsRange'](_0x512d43,!0x0)))&&_0x4080ef['discard'](),_0x38012a['every'](_0x597584=>_0x40728b['some'](_0xcf30ef=>_0xcf30ef['containsRange'](_0x597584,!0x0)))){const _0x21188c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x134d3c,'accept');return this['forceDefaultExecution'](()=>_0x21188c(_0x5098a5,null,_0x23c883)),null;}}else{const _0x2d4576=_0x4080ef['getFirstRange']();if(_0x38012a['some'](_0x5d4753=>_0x5d4753['containsRange'](_0x2d4576,!0x0))&&_0x4080ef['discard'](),_0x38012a['every'](_0xb0d16=>_0x2d4576['containsRange'](_0xb0d16,!0x0))){const _0x20bf90=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x134d3c,'accept');return this['forceDefaultExecution'](()=>_0x20bf90(_0x38012a,null,_0x23c883)),null;}}const _0x210b2b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x134d3c,'join');let _0x1d243c=null;for(const _0x4526fc of this['getSuggestions']())if(_0x4526fc['author']['id']==_0x5564d5['id']&&_0x4526fc['isInContent']&&'deletion'==_0x4526fc['type']&&_0x4526fc['subType']==_0x134d3c&&pn(_0x4526fc,_0x23c883)&&(_0x210b2b(_0x4526fc['getRanges'](),_0x38012a)||_0x210b2b(_0x38012a,_0x4526fc['getRanges']()))){if(_0x1d243c){if(_0x4526fc['commentThread']&&_0x4526fc['commentThread']['length'])continue;for(const _0x3ae61c of _0x4526fc['getRanges']())_0x1d243c['isIntersectingWithRange'](_0x3ae61c)||_0x1d243c['addRange'](_0x3ae61c);_0x4526fc['removeMarkers']();}else{_0x1d243c=_0x4526fc;for(const _0x56ce83 of _0x38012a)_0x4526fc['isIntersectingWithRange'](_0x56ce83)||_0x4526fc['addRange'](_0x56ce83);}}if(_0x1d243c)return _0x1d243c;_0x85b126['clear']();for(const {suggestion:_0x5165f2,meta:_0x144f72}of this['_findSuggestions'](_0x38012a,'deletion'))_0x144f72['isOwn']&&(this['_mergeNestedSuggestions']||!_0x144f72['containsRangeInObject']&&!_0x144f72['isInsideObject'])&&pn(_0x5165f2,_0x23c883)&&_0x85b126['add'](_0x5165f2);for(const _0x2ce9bf of _0x85b126){const _0x176e32=_0x2ce9bf['getRanges']();if((!_0x23c883||!_0x23c883['skipNestingCheck'])&&_0x38012a['every'](_0xba7179=>_0x176e32['some'](_0x2ca1f3=>_0x2ca1f3['containsRange'](_0xba7179,!0x0))))return _0x2ce9bf;_0x2ce9bf['attributes']&&_0x2ce9bf['attributes']['skipNestingCheck']||_0x176e32['every'](_0xbb784c=>_0x38012a['some'](_0x1bafe8=>_0x1bafe8['containsRange'](_0xbb784c,!0x0)))&&_0x2ce9bf['discard']();}const _0x327be1=_0x2a260a(),_0x5a41d3=_0x5564d5['id'],_0x22da9c='deletion:'+_0x134d3c,_0x25ce78=this['_setSuggestionData']({'id':_0x327be1,'type':_0x22da9c,'createdAt':new Date(),'authorId':_0x5a41d3,'attributes':_0x23c883});for(const _0x266b57 of _0x38012a)_0x266b57['detach'](),_0x266b57['isCollapsed']||'$graveyard'==_0x266b57['root']['rootName']||this['_addSuggestionMarker'](_0x22da9c,_0x327be1,_0x5a41d3,_0x266b57,Mt['getMultiRangeId']());return _0x25ce78;}markAttributeChange(_0x563276,_0x1d5d40,_0x3bf156,_0x25d579,_0x14f5b8){if(_0x563276['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2dcf17=this['editor']['plugins']['get']('Users')['me']['id'],_0x5528e2=Array['from'](this['_suggestions']['values']())['filter'](_0x417317=>'attribute'==_0x417317['type']&&_0x417317['data']['key']==_0x1d5d40&&_0x417317['isIntersectingWithRange'](_0x563276));if(this['_trackingSessionId']&&(_0x14f5b8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x20cdf0=this['_findSuggestions'](_0x563276,'insertion')['filter'](({meta:_0x148970})=>_0x148970['isOwn']&&!_0x148970['isInsideObject']&&!_0x148970['isNextTo'])['map'](({suggestion:_0x55bd50})=>_0x55bd50);_0x5528e2['unshift'](..._0x20cdf0);}const _0x30e6ee=new Map([[_0x563276,_0x3bf156]]);for(const _0x295cc1 of _0x5528e2){const _0xfc76dc='attribute'==_0x295cc1['type']?_0x295cc1['data']['oldValue']:void 0x0,_0x47f0d2=_0x295cc1['getFirstRange'](),_0x5cf5c9=Array['from'](_0x30e6ee['keys']())['find'](_0x4ad558=>_0x4ad558['isIntersecting'](_0x47f0d2));if(!_0x5cf5c9)continue;const _0x3837fb=_0x5cf5c9['getDifference'](_0x47f0d2);this['_suggestionsConversion']['isBlockAttribute'](_0x1d5d40)&&'insertion'==_0x295cc1['type']&&0x0!=_0x3837fb['length']||(_0x30e6ee['delete'](_0x5cf5c9),_0x3837fb['forEach'](_0x4c8b98=>{_0x30e6ee['set'](_0x4c8b98,_0x3bf156);}),'insertion'!=_0x295cc1['type']&&_0xfc76dc!=_0x25d579&&_0x30e6ee['set'](_0x5cf5c9['getIntersection'](_0x47f0d2),_0xfc76dc));}const _0x14c384=[];for(const [_0x4c7e1f,_0x209fbd]of _0x30e6ee){const _0x1b9263=_0x2a260a(),_0x5c731b={'key':_0x1d5d40,'oldValue':_0x209fbd,'newValue':_0x25d579};_0x1d5d40['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':_0x1d5d40});const _0x3ef464=('attribute:'+_0x1d5d40+'|'+dn({'newValue':_0x25d579}))['substring'](0x0,0x3c),_0x1b80fe=this['_setSuggestionData']({'id':_0x1b9263,'type':_0x3ef464,'data':_0x5c731b,'createdAt':new Date(),'authorId':_0x2dcf17,'attributes':_0x14f5b8});_0x14c384['push'](_0x1b80fe),this['_addSuggestionMarker'](_0x3ef464,_0x1b9263,_0x2dcf17,_0x4c7e1f);}return _0x14c384;}enableDefaultAttributesIntegration(_0x33796e){this['enableCommand'](_0x33796e,(_0x2c6f90,..._0xb6557f)=>{this['recordAttributeChanges'](()=>{_0x2c6f90(..._0xb6557f);});});}startTrackingSession(_0x1959c5){return this['_trackingSessionId']=void 0x0!==_0x1959c5?_0x1959c5:_0x2a260a(),this['_trackingSessionId'];}_getAttributeKey(_0x44ae21){return'attribute'==_0x44ae21['type']?In(_0x44ae21['subType']):null;}_applyOperationsAsSuggestions(_0x12eaec){if(0x0==_0x12eaec['length'])return;const _0x908d12=this['editor'],_0x170799=_0x908d12['plugins']['get'](_0x566391),_0x49ba17=[],_0x47b7f1=_0x53d989=>{const _0x45e755=_0x53d989['_aiSource'];return _0x45e755?{'@ai':{'type':_0x45e755}}:{};},_0x4c783f=(_0x3c64bb,_0x4efe17,_0x20296d)=>{for(let _0x229ea1=_0x4efe17;_0x229ea1<_0x3c64bb['operations']['length'];_0x229ea1++){const _0x458c92=_0x3c64bb['operations'][_0x229ea1];'marker'===_0x458c92['type']&&(_0x458c92['_aiSource']=_0x20296d);}};_0x908d12['model']['change'](_0x315096=>{for(let _0x22208f=0x0;_0x22208f<_0x12eaec['length'];_0x22208f++){const _0x298521=_0x12eaec[_0x22208f],_0x589d99=_0x298521['_aiSource'],_0xaae9a6=_0x315096['batch']['operations']['length'];if(_0x298521['baseVersion']=_0x908d12['model']['document']['version'],_0x298521['isDocumentOperation']=!0x0,!_0x10cf20(_0x298521)){if(_0x170799['isMarkedRemoveOperation'](_0x298521)){const _0x5889a9=_0x563cb9(_0x298521['newRange'],_0x908d12['model']);_0x49ba17['unshift']({'range':ot['fromRange'](_0x5889a9),'opAttributes':_0x47b7f1(_0x298521),'aiSource':_0x589d99});}else{switch(_0x298521['type']){case'rename':{const _0x55adbd=_0x298521['oldName'],_0x2fc040=_0x298521['newName'];if(_0x55adbd==_0x2fc040)break;_0x315096['batch']['addOperation'](_0x298521),_0x908d12['model']['applyOperation'](_0x298521);const _0x134f2e='$elementName',_0x31c508=_0x298521['position'],_0x400dc7=_0x908d12['model']['createRange'](_0x31c508,_0x908d12['model']['createPositionAt'](_0x31c508['nodeAfter'],'end'));this['markAttributeChange'](_0x400dc7,_0x134f2e,_0x55adbd,_0x2fc040,{..._0x47b7f1(_0x298521),'groupId':_0x2a260a()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x9a559e=_0x298521['oldValue'],_0x555cc4=_0x298521['newValue'];if(_0x9a559e==_0x555cc4)break;_0x315096['batch']['addOperation'](_0x298521),_0x908d12['model']['applyOperation'](_0x298521);const _0x2b08af=_0x298521['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2b08af))break;const _0x218bb7=_0x563cb9(_0x298521['range'],_0x908d12['model']);this['markAttributeChange'](_0x218bb7,_0x2b08af,_0x9a559e,_0x555cc4,{..._0x47b7f1(_0x298521),'groupId':_0x2a260a()});break;}case'insert':{if(_0x315096['batch']['addOperation'](_0x298521),_0x908d12['model']['applyOperation'](_0x298521),_0x12eaec[_0x22208f+0x1]&&'move'==_0x12eaec[_0x22208f+0x1]['type'])break;const _0x42c4dc=_0x298521['position'],_0x5464f0=_0x298521['howMany'],_0x55c917=_0x563cb9(_0x908d12['model']['createRange'](_0x42c4dc,_0x42c4dc['getShiftedBy'](_0x5464f0)),_0x908d12['model']);this['markInsertion'](_0x55c917,null,{..._0x47b7f1(_0x298521)});break;}case'split':{_0x315096['batch']['addOperation'](_0x298521),_0x908d12['model']['applyOperation'](_0x298521);const _0x333916=_0x298521['splitPosition'],_0x1ba6fb=_0x298521['moveTargetPosition'],_0x434fb1=_0x908d12['model']['createRange'](_0x333916,_0x1ba6fb);this['markInsertion'](_0x434fb1,null,{..._0x47b7f1(_0x298521)});break;}case'move':case'remove':_0x315096['batch']['addOperation'](_0x298521),_0x908d12['model']['applyOperation'](_0x298521);}_0x589d99&&_0x4c783f(_0x315096['batch'],_0xaae9a6,_0x589d99);}}}for(const {range:_0x4a5fee,opAttributes:_0x332c12,aiSource:_0x358632}of _0x49ba17){const _0x5691e2=_0x315096['batch']['operations']['length'];_0x4a5fee['detach'](),this['markDeletion'](_0x4a5fee,null,{..._0x332c12}),_0x358632&&_0x4c783f(_0x315096['batch'],_0x5691e2,_0x358632);}});}_setSuggestionRange(_0x221d8c,_0x4f3490){const _0x1693a1=_0x221d8c['getFirstMarker']();this['_model']['change'](_0x1c2f16=>{_0x1c2f16['updateMarker'](_0x1693a1,{'range':_0x4f3490});});}_addThreadToSuggestion(_0x2ab0a7){const _0x1a99be=_0x2ab0a7['id'],_0x35f87a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1a99be)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35f87a,'threadId':_0x1a99be,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4d4888=this['_commentsRepository']['getCommentThread'](_0x1a99be);_0x4d4888['unbind']('isRemovable'),_0x4d4888['isRemovable']=!0x1,_0x2ab0a7['commentThread']=_0x4d4888;}_checkSuggestionCorrectness(_0x2a87e6,_0x368c32,_0x559bb4,_0x43b420){if(_0x2a87e6['type']!=_0x368c32||_0x2a87e6['subType']!=_0x559bb4||_0x2a87e6['creator']['id']!=_0x43b420)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x106f70('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x10bdc9,_0x5c31fe){const _0x5481cd=_0x10bdc9['getFirstRange']();if(_0x5c31fe['isEqual'](_0x5481cd))_0x10bdc9['removeMarkers']();else{if(_0x5481cd['containsRange'](_0x5c31fe)){const _0x8a9721=this['_model']['createPositionAt'](_0x5c31fe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x10bdc9,this['_model']['createRange'](_0x5481cd['start'],_0x8a9721));const _0x212453=_0x2a260a(),_0xaada8d=_0x10bdc9['creator']['id'],_0x2d8980=_0x10bdc9['type']+':'+_0x10bdc9['subType'];this['_setSuggestionData']({'id':_0x212453,'type':_0x2d8980,'createdAt':new Date(),'authorId':_0xaada8d,'data':_0x10bdc9['data'],'attributes':_0x10bdc9['attributes']});const _0xc07dfb=this['_model']['createPositionAt'](_0x5c31fe['end']['parent'],'after'),_0x2bffdf=this['_model']['createRange'](_0xc07dfb,_0x5481cd['end']);this['_addSuggestionMarker'](_0x2d8980,_0x212453,_0xaada8d,_0x2bffdf);}else{if(_0x5481cd['containsPosition'](_0x5c31fe['start'])){const _0x47f650=this['_model']['createPositionAt'](_0x5c31fe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x10bdc9,this['_model']['createRange'](_0x5481cd['start'],_0x47f650));}else{const _0x540664=this['_model']['createPositionAt'](_0x5c31fe['end']['parent'],'after');this['_setSuggestionRange'](_0x10bdc9,this['_model']['createRange'](_0x540664,_0x5481cd['end']));}}}}_rangeIsInLocalUserInsertion(_0x539680){for(const {suggestion:_0xd9ec3e,meta:_0x353e97}of this['_findSuggestions'](_0x539680,'insertion')){if(!_0x353e97['isOwn'])continue;const _0x1f244e=_0xd9ec3e['getRanges']();for(const _0xc31cce of _0x1f244e)if(!_0x539680['getDifference'](_0xc31cce)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x168b5b){return this['editor']['plugins']['get']('Users')['getUser'](_0x168b5b);}_getExternalAuthor(_0x43f170){const _0x15debe=this['editor']['plugins']['get']('Users'),_0x4e8d07=_0x20a1c6('external:'+_0x43f170),_0x152089=_0x15debe['getUser'](_0x4e8d07);return _0x152089||_0x15debe['addUser']({'id':_0x4e8d07,'name':_0x43f170});}_createSuggestion(_0x395091,_0x10b1ac,_0x1083b8,_0x1f5915,_0x5a344d,_0x59e3f7){const _0x1ac4d4=this['_getAuthorFromId'](_0x1f5915);if(!_0x1ac4d4)throw new _0x106f70('track-changes-user-not-found',this,{'authorId':_0x1f5915,'suggestionId':_0x1083b8});const _0x1a59ad=this['_suggestionFactory']['buildSuggestion'](_0x395091,_0x10b1ac,_0x1083b8,_0x1ac4d4,_0x5a344d,_0xdb2d59=>{this['_updateSuggestionData'](_0x1083b8,{'attributes':_0xdb2d59});const _0x230029=this['getSuggestion'](_0x1083b8);this['_joinWithAdjacentSuggestions'](new Set([_0x230029])),this['_refreshSuggestionsChain'](new Set([_0x230029]));},_0x59e3f7);return this['listenTo'](_0x1a59ad,'accept',()=>{this['_updateSuggestionData'](_0x1083b8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1a59ad,'discard',()=>{this['_updateSuggestionData'](_0x1083b8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1083b8,_0x1a59ad),this['_suggestionState']['set'](_0x1a59ad,'notReady'),_0x1a59ad;}_breakSuggestionMarker(_0x18cd85,_0x677ef9,_0x4fcae8){const _0xe37fa=_0x18cd85['getFirstRange'](),_0x229fe4=_0xe37fa['start'],_0x317cb6=_0xe37fa['end'];this['_setSuggestionRange'](_0x18cd85,this['_model']['createRange'](_0x229fe4,_0x677ef9));const _0x365e73=_0x2a260a(),_0x3b1074=_0x18cd85['creator']['id'],_0x12066a=_0x18cd85['type']+(_0x18cd85['subType']?':'+_0x18cd85['subType']:'');this['_setSuggestionData']({'id':_0x365e73,'type':_0x12066a,'createdAt':new Date(),'authorId':_0x3b1074,'originalSuggestionId':_0x18cd85['_originalSuggestionId']||_0x18cd85['id'],'attributes':_0x18cd85['attributes'],'data':_0x18cd85['data']});const _0x3d5965=this['_getAttributeKey'](_0x18cd85);('formatBlock'==_0x18cd85['type']||_0x3d5965&&this['_suggestionsConversion']['isBlockAttribute'](_0x3d5965))&&(_0x4fcae8=this['_model']['createPositionBefore'](_0x4fcae8['parent'])),this['_addSuggestionMarker'](_0x12066a,_0x365e73,_0x3b1074,this['_model']['createRange'](_0x4fcae8,_0x317cb6));}_findSuggestions(_0x293a2c,_0x1dc7fb=null){const _0x353a5e=[],_0x3c26ee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x293a2c)||(_0x293a2c=[_0x293a2c]);for(const _0x1873f6 of this['getSuggestions']()){if(!_0x1873f6['isInContent'])continue;if(_0x1dc7fb&&_0x1873f6['type']!=_0x1dc7fb)continue;let _0x1ee80d=!0x1;for(const _0x5da84d of _0x1873f6['getRanges']()){for(const _0x2652f9 of _0x293a2c){const _0x2cbde1=_0x2652f9['start']['isEqual'](_0x5da84d['end'])||_0x2652f9['end']['isEqual'](_0x5da84d['start']);if(_0x2cbde1||_0x2652f9['getIntersection'](_0x5da84d)){const _0x30445c=_0x2652f9['containsRange'](_0x5da84d)&&cn(this['_model']['schema'],_0x5da84d['start'],_0x2652f9),_0x36624f=_0x5da84d['containsRange'](_0x2652f9)&&cn(this['_model']['schema'],_0x2652f9['start'],_0x5da84d);_0x353a5e['push']({'suggestion':_0x1873f6,'meta':{'isOwn':_0x3c26ee==_0x1873f6['author'],'isNextTo':_0x2cbde1,'isInsideObject':_0x30445c,'containsRangeInObject':_0x36624f}}),_0x1ee80d=!0x0;break;}}if(_0x1ee80d)break;}}return _0x353a5e;}_addSuggestionMarker(_0x5b0ffe,_0x1db0b7,_0x4b13f3,_0x38f9df,_0x24a377){this['_model']['change'](_0x50798f=>{let _0x2fe056='suggestion:'+_0x5b0ffe+':'+_0x1db0b7+':'+_0x4b13f3;_0x24a377&&(_0x2fe056=_0x2fe056+':'+_0x24a377),_0x50798f['addMarker'](_0x2fe056,{'range':_0x38f9df,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x1edb0b){const _0x253b32=_0x1edb0b['previous'],_0x4f8fe1=_0x1edb0b['next'];_0x1edb0b['previous']=null,_0x1edb0b['next']=null,null!=_0x253b32&&_0x253b32['next']==_0x1edb0b&&(_0x253b32['next']=_0x4f8fe1),null!=_0x4f8fe1&&_0x4f8fe1['previous']==_0x1edb0b&&(_0x4f8fe1['previous']=_0x253b32),'ready'==this['_suggestionState']['get'](_0x1edb0b)&&(this['_suggestionState']['set'](_0x1edb0b,'removed'),this['fire']('suggestionUnloaded',_0x1edb0b,_0x253b32,_0x4f8fe1));}_setSuggestionData(_0x4fd159){const _0x3e4a51=_0x4fd159['id'],_0x45724f=this['addSuggestionData'](_0x4fd159);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3105ba=this['editor']['plugins']['get']('PendingActions'),_0x485164=_0x45724f['hasComments'],_0x2ae682=_0x45724f['subType']?_0x45724f['type']+':'+_0x45724f['subType']:_0x45724f['type'],_0x5e07c1=this['editor']['locale'],_0x27c195=_0x3105ba['add'](Ot(_0x5e07c1,'PENDING_ACTION_SUGGESTION')),_0x5e60dc={'id':_0x3e4a51,'type':_0x2ae682,'hasComments':_0x485164,'data':_0x4fd159['data']||null,'originalSuggestionId':_0x4fd159['originalSuggestionId']||null,'attributes':_0x45724f['attributes']};this['_adapter']['addSuggestion'](_0x5e60dc)['then'](_0xb12fa5=>{_0x45724f['_saved']=!0x0,_0x3105ba['remove'](_0x27c195),_0xb12fa5&&_0xb12fa5['createdAt']&&(this['_suggestions']['get'](_0x3e4a51)['createdAt']=_0xb12fa5['createdAt']);})['catch'](_0x5e5f4a=>{throw _0x53309d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x45724f['discard']();}),_0x45724f['stopListening'](),this['_suggestions']['delete'](_0x45724f['id']),this['_suggestionState']['delete'](_0x45724f),_0x5e5f4a;});}return _0x45724f;}_updateSuggestionData(_0x409064,_0x8f53b4){const _0x4821a4=this['editor']['plugins']['get']('PendingActions'),_0xf43b9e=this['getSuggestion'](_0x409064);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf43b9e['_saved']){const _0x2e3427=_0x4821a4['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x409064,_0x8f53b4)['then'](()=>{_0x4821a4['remove'](_0x2e3427);});}else _0xf43b9e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x409064,_0x8f53b4);});}}_getSuggestionData(_0x7c2dbb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x106f70('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x7c2dbb);}_handleNewSuggestionMarker(_0x53cd4e){const {id:_0x4bf7ad,type:_0x86eae1,subType:_0x2ebc91,authorId:_0x4d366c}=et(_0x53cd4e),_0x4e9f58=this['_suggestions']['get'](_0x4bf7ad)||this['_createSuggestion'](_0x86eae1,_0x2ebc91,_0x4bf7ad,_0x4d366c,{});switch(this['_checkSuggestionCorrectness'](_0x4e9f58,_0x86eae1,_0x2ebc91,_0x4d366c),this['_suggestionState']['get'](_0x4e9f58)){case'notReady':this['_getSuggestionData'](_0x4bf7ad)['then'](_0xc8d8da=>{let _0x5c9014=Promise['resolve']();_0xc8d8da['hasComments']&&(_0x5c9014=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4bf7ad})),_0x5c9014['then'](()=>{this['addSuggestionData'](_0xc8d8da)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e9f58,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4bf7ad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e9f58,'ready'),this['fire']('suggestionLoaded',_0x4e9f58);break;case'ready':this['fire']('suggestionChanged',_0x4e9f58);}return _0x4e9f58['addMarkerName'](_0x53cd4e),_0x4e9f58;}_refreshSuggestionsChain(_0x180286){const _0x213737=Array['from'](_0x180286),_0x3dfb89=_0x213737['filter'](_0x5bfc6e=>'attribute'==_0x5bfc6e['type']);this['_refreshAttributeSuggestionsChain'](_0x3dfb89);const _0x2fde46=_0x213737['filter'](_0x3a3f69=>!_0x3a3f69['isMultiRange']&&'attribute'!=_0x3a3f69['type']),_0x427122=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d82ec=>!_0x4d82ec['isMultiRange']&&'attribute'!=_0x4d82ec['type']),_0x5b7aea=_0x427122['filter'](_0x3f8ef3=>!_0x180286['has'](_0x3f8ef3)),_0x3519aa=new Map(_0x427122['map'](_0x1aaa4b=>[_0x1aaa4b,this['_suggestionFactory']['getSuggestionCallback'](_0x1aaa4b['type'],_0x1aaa4b['subType'],'chain')])),_0x40b85f=new Map(_0x427122['map'](_0x35a271=>[_0x35a271,_0x35a271['getFirstRange']()])),_0x4c4786=new Set(),_0x5bb328=new Set();for(let _0x55c6ff=0x0;_0x55c6ff<_0x2fde46['length'];_0x55c6ff++)_0x1fcf0e(_0x2fde46[_0x55c6ff],_0x2fde46,_0x55c6ff+0x1);for(let _0x1560df=0x0;_0x1560df<_0x2fde46['length'];_0x1560df++)_0x1fcf0e(_0x2fde46[_0x1560df],_0x5b7aea,0x0);const _0x2966c6=new Set();for(let _0x1c1ec7=0x0;_0x1c1ec7<_0x2fde46['length'];_0x1c1ec7++){const _0x212aaa=_0x2fde46[_0x1c1ec7];!_0x5bb328['has'](_0x212aaa)&&_0x212aaa['previous']&&(_0x2966c6['add'](_0x212aaa['previous']),_0x212aaa['previous']['next']===_0x212aaa&&(_0x212aaa['previous']['next']=null),_0x212aaa['previous']=null),!_0x4c4786['has'](_0x212aaa)&&_0x212aaa['next']&&(_0x2966c6['add'](_0x212aaa['next']),_0x212aaa['next']['previous']===_0x212aaa&&(_0x212aaa['next']['previous']=null),_0x212aaa['next']=null);}function _0x1fcf0e(_0x50aafb,_0x377f2f,_0x2f4866){for(let _0x59f830=_0x2f4866;_0x59f830<_0x377f2f['length'];_0x59f830++){const _0x4234cc=_0x237548(_0x50aafb,_0x377f2f[_0x59f830]);_0x4234cc&&(_0x4234cc[0x0]['next']=_0x4234cc[0x1],_0x4234cc[0x1]['previous']=_0x4234cc[0x0],_0x4c4786['add'](_0x4234cc[0x0]),_0x5bb328['add'](_0x4234cc[0x1]));}}function _0x237548(_0x2c98f5,_0x187360){if(_0x2c98f5['author']['id']!==_0x187360['author']['id'])return null;const _0x29cbda=_0x3519aa['get'](_0x2c98f5)(_0x2c98f5,_0x187360,_0x40b85f['get'](_0x2c98f5),_0x40b85f['get'](_0x187360));return _0x29cbda&&_0x3519aa['get'](_0x187360)(_0x2c98f5,_0x187360,_0x40b85f['get'](_0x2c98f5),_0x40b85f['get'](_0x187360))?_0x29cbda[0x1]['commentThread']&&_0x29cbda[0x1]['commentThread']['length']?null:_0x29cbda:null;}_0x2966c6['size']&&this['_refreshSuggestionsChain'](_0x2966c6);}_refreshAttributeSuggestionsChain(_0x34bbd0){if(0x0==_0x34bbd0['length'])return;const _0x5edd58=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bb6fa=>'attribute'==_0x4bb6fa['type']&&_0x4bb6fa['_isDataLoaded']),_0x3c2795=[],_0x5e00e1=new Map();for(const _0x5e653b of _0x5edd58){const _0x4b9a4f=_0x20a1c6(_0x5e653b['attributes']);_0x5e00e1['has'](_0x4b9a4f)||(_0x5e00e1['set'](_0x4b9a4f,_0x3c2795['length']),_0x3c2795['push']([])),_0x3c2795[_0x5e00e1['get'](_0x4b9a4f)]['push'](_0x5e653b);}!(function(){_0x3c2795['sort']((_0x165d2c,_0x27b544)=>{const _0x5c3919=_0x165d2c[0x0]['createdAt'],_0x2e3c6d=_0x27b544[0x0]['createdAt'];return _0x5c3919==_0x2e3c6d?_0x165d2c[0x0]['attributes']['groupId']<_0x27b544[0x0]['attributes']['groupId']?-0x1:0x1:_0x5c3919<_0x2e3c6d?-0x1:0x1;});for(const _0x20987a of _0x3c2795)_0x20987a['sort']((_0x11b2c5,_0x2c1929)=>_0x11b2c5['id']<_0x2c1929['id']?-0x1:0x1);}());for(let _0x3b5a1f=0x0;_0x3b5a1f<_0x3c2795['length'];_0x3b5a1f++){if(0x0==_0x3c2795[_0x3b5a1f]['length'])continue;const _0x5169d8=[];for(let _0x1fe37f=_0x3b5a1f+0x1;_0x1fe37f<_0x3c2795['length'];_0x1fe37f++)0x0!=_0x3c2795[_0x1fe37f]['length']&&_0x42679e(_0x3c2795[_0x3b5a1f],_0x3c2795[_0x1fe37f])&&_0x5169d8['push'](_0x1fe37f);for(const _0x887484 of _0x5169d8)_0x3c2795[_0x3b5a1f]=_0x3c2795[_0x3b5a1f]['concat'](_0x3c2795[_0x887484]),_0x3c2795[_0x887484]=[];}for(const _0x1583af of _0x3c2795)for(let _0x7ae1d8=0x0;_0x7ae1d8<_0x1583af['length'];_0x7ae1d8++){const _0x50e1a7=_0x1583af[_0x7ae1d8+0x1]||null;_0x1583af[_0x7ae1d8]['next']!==_0x50e1a7&&(_0x1583af[_0x7ae1d8]['next']=_0x50e1a7);}for(const _0x146670 of _0x3c2795)for(let _0x323b1f=0x0;_0x323b1f<_0x146670['length'];_0x323b1f++){const _0x1ddae6=_0x146670[_0x323b1f-0x1]||null;_0x146670[_0x323b1f]['previous']!==_0x1ddae6&&(_0x146670[_0x323b1f]['previous']=_0x1ddae6);}function _0x42679e(_0x1a9f72,_0x57bb3d){return(_0x1a9f72[0x0]['attributes']['groupId']===_0x57bb3d[0x0]['attributes']['groupId']||_0x1a9f72[0x0]['author']===_0x57bb3d[0x0]['author'])&&(!!function(_0x5159f9,_0xff64a9){return!_0x5159f9['hasComments']&&!_0xff64a9['hasComments']||(!_0x5159f9['hasComments']||!_0xff64a9['hasComments'])&&(!!(_0x5159f9['hasComments']&&_0xff64a9['createdAt']<_0x5159f9['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0xff64a9['hasComments']&&_0x5159f9['createdAt']<_0xff64a9['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x1a9f72[0x0],_0x57bb3d[0x0])&&(!!lt(ut(_0x1a9f72[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x57bb3d[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x1a9f72[0x0]['attributes']['groupId']==_0x57bb3d[0x0]['attributes']['groupId']||_0x1a9f72[0x0]['attributes']['trackingSessionId']===_0x57bb3d[0x0]['attributes']['trackingSessionId']&&(!!_0x1a9f72['every'](_0x448b4=>_0x57bb3d['some'](_0x4f8fd2=>_0x448b4['getFirstRange']()['isEqual'](_0x4f8fd2['getFirstRange']())))&&_0x57bb3d['every'](_0x100ef9=>_0x1a9f72['some'](_0x53ca39=>_0x100ef9['getFirstRange']()['isEqual'](_0x53ca39['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x121255){const _0xd65856=Array['from'](_0x121255),_0x2c5339=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3682cf=_0x2c5339['filter'](_0x56d9a0=>!_0x121255['has'](_0x56d9a0)),_0x42ea75=new Map(_0xd65856['map'](_0x499c8e=>[_0x499c8e,this['_suggestionFactory']['getSuggestionCallback'](_0x499c8e['type'],_0x499c8e['subType'],'join')])),_0x5b30f8=new Map(_0x2c5339['map'](_0x2e0726=>[_0x2e0726,_0x2e0726['getRanges']()]));for(let _0x120cc8=0x0;_0x120cc8<_0xd65856['length'];_0x120cc8++)if(_0x1afbd2(this,_0xd65856[_0x120cc8],_0xd65856,_0x120cc8+0x1))return!0x0;for(let _0x45e235=0x0;_0x45e235<_0xd65856['length'];_0x45e235++)if(_0x1afbd2(this,_0xd65856[_0x45e235],_0x3682cf,0x0))return!0x0;return!0x1;function _0x1afbd2(_0x27e256,_0x51928a,_0x597cf4,_0x5ef265){for(let _0x71f625=_0x5ef265;_0x71f625<_0x597cf4['length'];_0x71f625++){const _0x4420fb=_0x597cf4[_0x71f625];if(_0x4420fb['type']!==_0x51928a['type']||_0x4420fb['author']['id']!==_0x51928a['author']['id']||_0x4420fb['subType']!==_0x51928a['subType'])continue;if(!_n(_0x51928a,_0x4420fb))continue;if('attribute'==_0x51928a['type']&&_0x51928a['data']['oldValue']!=_0x4420fb['data']['oldValue'])continue;if('attribute'==_0x51928a['type']&&_0x27e256['_suggestionsConversion']['isBlockAttribute'](_0x51928a['data']['key']))continue;if('formatBlock'==_0x51928a['type']){const _0x176ec4=_0x27e256['editor']['model'],_0x39f7eb=_0x51928a['getContainedElement']();if(_0x39f7eb&&(_0x176ec4['schema']['isObject'](_0x39f7eb)||_0x176ec4['schema']['isLimit'](_0x39f7eb)))continue;}const _0x395fb0=_0x42ea75['get'](_0x51928a),_0x1242ca=_0x5b30f8['get'](_0x51928a),_0x91af73=_0x5b30f8['get'](_0x4420fb),_0x3717ab=_0x51928a['commentThread']&&_0x51928a['commentThread']['length'],_0x43a816=_0x4420fb['commentThread']&&_0x4420fb['commentThread']['length'];if(!_0x3717ab&&_0x395fb0(_0x91af73,_0x1242ca))return _0x27e256['_joinSuggestions'](_0x4420fb,_0x51928a),_0x5b30f8['delete'](_0x51928a),!0x0;if(!_0x43a816&&_0x395fb0(_0x1242ca,_0x91af73))return _0x27e256['_joinSuggestions'](_0x51928a,_0x4420fb),_0x5b30f8['delete'](_0x4420fb),!0x0;}return!0x1;}}_joinSuggestions(_0x55b3c5,_0xe63b3f){if(_0x55b3c5['isMultiRange']){for(const _0x419f69 of _0xe63b3f['getRanges']())_0x55b3c5['addRange'](_0x419f69);}else{const _0x10bfc6=_0xe63b3f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x55b3c5,this['_model']['createRange'](_0x55b3c5['getFirstRange']()['start'],_0x10bfc6));}_0xe63b3f['removeMarkers']();}_getMarkerAnnouncementText(_0x57db0f,_0x3f78e8,_0x910360){const _0x404ed7=_0x57db0f['startsWith']('format')||_0x57db0f['startsWith']('attribute')?'FORMATTING':_0x57db0f['toUpperCase']();return Ot(this['editor']['locale'],_0x3f78e8+'_'+_0x404ed7+'_SUGGESTION_ANNOUNCEMENT',_0x910360);}_initAriaMarkerChangeAnnouncements(){const _0x5938c6=this['editor'];if(!_0x5938c6['ui'])return;const {ariaLiveAnnouncer:_0x3951a5}=_0x5938c6['ui'];nt(this['_model'],({left:_0x3f62c1,entered:_0x11c03b})=>{for(const _0x34297c of _0x3f62c1){const {group:_0x34ed01,type:_0x3a8057}=et(_0x34297c['name']);if('suggestion'===_0x34ed01){_0x3951a5['announce'](this['_getMarkerAnnouncementText'](_0x3a8057,'LEAVE'));break;}}for(const _0x8b53d4 of _0x11c03b){const {group:_0x314d59,type:_0x1410d5}=et(_0x8b53d4['name']);if('suggestion'===_0x314d59){_0x3951a5['announce'](this['_getMarkerAnnouncementText'](_0x1410d5,'ENTER',_0x598ef4(_0x3dac5b)));break;}}});}_processAttributeChanges(_0x15b559){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d937a=this['editor'],_0xd804d8=_0x5d937a['model']['document']['differ']['getChanges']();if(0x0==_0xd804d8['length'])return!0x1;const _0x1974fe=[],_0x238edc=_0xd804d8['filter'](_0x53d6ee=>'attribute'==_0x53d6ee['type']),_0x432512=_0xd804d8['filter'](_0x26f59c=>'insert'==_0x26f59c['type']&&'$text'!=_0x26f59c['name']),_0xfec0c5=_0xd804d8['filter'](_0xee9165=>'remove'==_0xee9165['type']&&'$text'!=_0xee9165['name']);for(const _0x59ca69 of _0x238edc)_0x1974fe['push']({'key':_0x59ca69['attributeKey'],'newValue':_0x59ca69['attributeNewValue'],'oldValue':_0x59ca69['attributeOldValue'],'range':mn(_0x59ca69['range'],_0x5d937a['model'])});for(const _0x3acb5b of _0x432512){const _0x132487=_0xfec0c5['find'](_0x5528d7=>_0x5528d7['position']['isEqual'](_0x3acb5b['position']));_0x132487&&_0x1974fe['push']({'key':rn,'newValue':_0x3acb5b['name'],'oldValue':_0x132487['name'],'range':_0x5d937a['model']['createRangeOn'](_0x3acb5b['position']['nodeAfter'])});}return 0x0!=_0x1974fe['length']&&this['_reduceExistingSuggestions'](_0x15b559,_0x1974fe);}_processAttributeSuggestions(_0xf7fc5f){let _0x784624=!0x1;const _0x1e19ac=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ac20b=>_0x2ac20b['data']['newRange']&&_0x2ac20b['name']['startsWith']('suggestion:attribute:'));for(const _0x238397 of _0x1e19ac){const {subType:_0x52763c,id:_0x1cec83}=et(_0x238397['name']),_0x136504=_0x52763c['split']('|')[0x0];for(const _0x33d011 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x33d011['id']!=_0x1cec83&&'attribute'==_0x33d011['type']&&_0x33d011['data']&&_0x33d011['data']['key']==_0x136504&&_0x33d011['getFirstRange']()['isIntersecting'](_0x238397['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x33d011,_0x238397['data']['newRange'],_0xf7fc5f),_0x784624=!0x0);}return _0x784624;}recordAttributeChanges(_0x4fe0f4){this['_recordAttributeSuggestions']=!0x0,_0x4fe0f4();}_reduceExistingSuggestions(_0x398935,_0x4b305a){if(0x0==_0x4b305a['length'])return!0x1;let _0xa0f895=!0x1;for(const _0x28e63d of _0x4b305a){const _0x2af44e=this['_findSuggestions'](_0x28e63d['range'],'attribute')['filter'](_0x54be56=>!_0x54be56['meta']['isNextTo'])['map'](_0x5df50b=>_0x5df50b['suggestion']),_0x457f19=_0x20a1c6({'newValue':_0x28e63d['newValue']});_0x2af44e['filter'](_0x2bcd45=>{const [_0x5a4cd7,_0x33d851]=_0x2bcd45['subType']['split']('|');return _0x5a4cd7==_0x28e63d['key']&&_0x33d851!=_0x457f19;})['forEach'](_0x5cd71e=>{this['_reduceSuggestionAttributeRange'](_0x5cd71e,_0x28e63d['range'],_0x398935),_0xa0f895=!0x0;});}return _0xa0f895;}_reduceSuggestionAttributeRange(_0x32aaa3,_0x4aef0a,_0x252a1f){const _0x238cdc=_0x32aaa3['getFirstRange']()['getDifference'](_0x4aef0a);0x0!==_0x238cdc['length']?0x1!==_0x238cdc['length']?this['_breakSuggestionMarker'](_0x32aaa3,_0x4aef0a['start'],_0x4aef0a['end']):this['_setSuggestionRange'](_0x32aaa3,_0x238cdc[0x0]):_0x252a1f['removeMarker'](_0x32aaa3['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x102acb){this['_editor']=_0x102acb,this['_model']=_0x102acb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x1b97b9,_0x14f9fb,_0x55b67d,_0xc82035,_0x2eed5f,_0x1a5df6,_0x53133e){return new Mt(this['_model'],{'type':_0x1b97b9,'subType':_0x14f9fb,'id':_0x55b67d,'originalSuggestionId':_0x53133e,'author':_0xc82035,'creator':_0xc82035,'attributes':_0x2eed5f,'onAttributesChange':_0x1a5df6,'onAccept':(..._0x1ff693)=>this['getSuggestionCallback'](_0x1b97b9,_0x14f9fb,'accept')(..._0x1ff693),'onDiscard':(..._0x4814b4)=>this['getSuggestionCallback'](_0x1b97b9,_0x14f9fb,'discard')(..._0x4814b4)});}registerCustomCallback(_0x8b9d7c,_0x1bdf8f,_0xfcb8f8,_0x11cf8c){const _0x5de7ee=_0x8b9d7c+':'+_0x1bdf8f+':'+_0xfcb8f8;this['_customCallbacks']['set'](_0x5de7ee,_0x11cf8c);}getSuggestionCallback(_0x10387,_0x4a212f,_0x68e23a){const _0x41aab4=_0x10387+':'+_0x4a212f+':'+_0x68e23a;return this['_customCallbacks']['get'](_0x41aab4)||this['_defaultCallbacks']['get'](_0x10387+':'+_0x68e23a);}_registerDefaultCallbacks(){const _0x535c3d=()=>!0x1,_0x14f105=_0x55e4f7=>{_0x55e4f7['sort']((_0x3a92e2,_0x453e8c)=>_0x3a92e2['start']['isBefore'](_0x453e8c['start'])?0x1:-0x1),this['_model']['change'](_0x5eeed4=>{for(const _0x474571 of _0x55e4f7){let _0x42c44b;_0x42c44b=_0x474571['end']['isAtEnd']&&_0x474571['end']['parent']==_0x474571['start']['nodeAfter']?_0x5eeed4['createSelection'](_0x474571['start']['nodeAfter'],'on'):_0x5eeed4['createSelection'](_0x474571),this['_model']['deleteContent'](_0x42c44b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x13dd0f=(_0x896d3a,_0x3d9f14)=>{_0x3d9f14&&this['_model']['change'](_0x3ea8c2=>{const {commandName:_0x23eb05,commandParams:_0x5a8fa7=[]}=_0x3d9f14,_0x2c1cd2=_0x896d3a['map'](_0x579237=>(ln(_0x579237)&&(_0x579237=this['_model']['createRange'](_0x579237['end'])),_0x579237))['filter'](_0x33f40d=>'$graveyard'!==_0x33f40d['root']['rootName']);if(_0x2c1cd2['length']<0x1)return;const _0x376346=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d23a7=>ot['fromRange'](_0x3d23a7));_0x3ea8c2['setSelection'](_0x2c1cd2);for(const _0x3491b7 of this['_editor']['commands']['commands']())_0x3491b7['refresh']();_0x5a8fa7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x23eb05,..._0x5a8fa7);const _0x40d63d=_0x376346['filter'](_0x14ba29=>'$graveyard'!=_0x14ba29['root']['rootName']);_0x40d63d['length']>0x0&&_0x3ea8c2['setSelection'](_0x40d63d);for(const _0x57d77b of _0x376346)_0x57d77b['detach']();});},_0x1dfc3e=(_0x2d2da2,_0x3622fa)=>0x1==_0x2d2da2['length']&&0x1==_0x3622fa['length']&&_0x2d2da2[0x0]['end']['isEqual'](_0x3622fa[0x0]['start']),_0x3a3a39=(_0x220e1f,_0x229118,_0x39d144,_0xfe6b57)=>Tn(_0x220e1f,_0x229118,_0x39d144,_0xfe6b57)?[_0x220e1f,_0x229118]:Tn(_0x229118,_0x220e1f,_0xfe6b57,_0x39d144)?[_0x229118,_0x220e1f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x535c3d),this['_defaultCallbacks']['set']('insertion:discard',_0x14f105),this['_defaultCallbacks']['set']('insertion:join',_0x1dfc3e),this['_defaultCallbacks']['set']('insertion:chain',_0x3a3a39),this['_defaultCallbacks']['set']('deletion:accept',_0x14f105),this['_defaultCallbacks']['set']('deletion:discard',_0x535c3d),this['_defaultCallbacks']['set']('deletion:join',_0x1dfc3e),this['_defaultCallbacks']['set']('deletion:chain',_0x3a3a39),this['_defaultCallbacks']['set']('formatInline:accept',_0x13dd0f),this['_defaultCallbacks']['set']('formatInline:discard',_0x535c3d),this['_defaultCallbacks']['set']('formatInline:join',_0x1dfc3e),this['_defaultCallbacks']['set']('formatInline:chain',_0x535c3d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x13dd0f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x535c3d),this['_defaultCallbacks']['set']('formatBlock:join',_0x1dfc3e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x535c3d),this['_defaultCallbacks']['set']('attribute:accept',_0x535c3d),this['_defaultCallbacks']['set']('attribute:discard',(_0x36195d,_0xcf3d1e)=>{if(!_0xcf3d1e)return;const _0x41e9e6=this['_editor']['plugins']['get'](_0x5b7531);this['_model']['change'](_0x3b497a=>{if('$elementName'==_0xcf3d1e['key'])for(const _0x4b2d5c of _0x36195d){const _0x3e43db=_0x4b2d5c['start']['nodeAfter'],_0x12e907=_0xcf3d1e['oldValue'];_0x3b497a['rename'](_0x3e43db,_0x12e907);}else{if(_0x41e9e6['isBlockAttribute'](_0xcf3d1e['key'])){for(const _0x4c2609 of _0x36195d)void 0x0!==_0xcf3d1e['oldValue']?_0x3b497a['setAttribute'](_0xcf3d1e['key'],_0xcf3d1e['oldValue'],_0x4c2609['start']['nodeAfter']):_0x3b497a['removeAttribute'](_0xcf3d1e['key'],_0x4c2609['start']['nodeAfter']);}else{for(const _0x3e6c98 of _0x36195d)_0xcf3d1e['oldValue']?_0x3b497a['setAttribute'](_0xcf3d1e['key'],_0xcf3d1e['oldValue'],_0x3e6c98):_0x3b497a['removeAttribute'](_0xcf3d1e['key'],_0x3e6c98);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1dfc3e);}};function cn(_0x2c35ac,_0x4c478e,_0x566dd0){for(const _0x4babb3 of _0x4c478e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4babb3['root']==_0x4babb3)return!0x1;if(!_0x566dd0['containsItem'](_0x4babb3))return!0x1;if(_0x2c35ac['isObject'](_0x4babb3)||_0x2c35ac['isLimit'](_0x4babb3))return!0x0;}return!0x1;}function ln(_0x4ce023){return _0x4ce023['end']['parent']==_0x4ce023['start']['nodeAfter']&&_0x4ce023['end']['isAtStart'];}function un(_0x1094db,_0x478aaf,_0x1c73e0,_0x3bd209){const _0x4595b4=_0x48ae71=>!_0x48ae71['item']['is']('$textProxy')&&!_0x3bd209['isObject'](_0x48ae71['item']),_0x527d3f=_0x1094db['start']['getLastMatchingPosition'](_0x4595b4),_0x3d98eb=_0x1094db['end']['getLastMatchingPosition'](_0x4595b4,{'direction':'backward'});return(!_0x1094db['start']['isEqual'](_0x527d3f)||!_0x1094db['end']['isEqual'](_0x3d98eb))&&(_0x527d3f['isBefore'](_0x3d98eb)?_0x1c73e0['updateMarker'](_0x478aaf,{'range':_0x1c73e0['createRange'](_0x527d3f,_0x3d98eb)}):_0x1c73e0['removeMarker'](_0x478aaf),!0x0);}function dn(_0x1d609d){return _0x20a1c6(_0x1d609d);}function hn(_0x553c6b){const _0x4c48f5=_0x553c6b['start']['nodeAfter'];return _0x4c48f5&&_0x4c48f5['is']('element');}function gn(_0x16c6e8){return ln(_0x16c6e8)||function(_0x55f3ed){return _0x55f3ed['start']['parent']==_0x55f3ed['end']['nodeBefore']&&_0x55f3ed['start']['isAtEnd'];}(_0x16c6e8);}function fn(_0x7b7656,_0x5e16fa){try{const _0x1558d6=_0x7b7656['getRange']();for(const _0x4bb4ca of _0x5e16fa)if(_0x7b7656!==_0x4bb4ca&&_0x1558d6&&_0x1558d6['isIntersecting'](_0x4bb4ca['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x472db1,_0x5a0d87){return null==_0x472db1['end']['nodeBefore']&&_0x472db1['end']['parent']==_0x472db1['start']['nodeAfter']?En(_0x472db1['start']['nodeAfter'],_0x5a0d87):_0x472db1;}function En(_0x6e1b3e,_0x5b9f88){const _0x10377e=_0x5b9f88['schema']['isObject'](_0x6e1b3e)||_0x5b9f88['schema']['isSelectable'](_0x6e1b3e);return _0x5b9f88['createRange'](_0x5b9f88['createPositionAt'](_0x6e1b3e,'before'),_0x10377e?_0x5b9f88['createPositionAfter'](_0x6e1b3e):_0x5b9f88['createPositionAt'](_0x6e1b3e,'end'));}function Tn(_0x4202e0,_0x49480d,_0x51b9fe,_0x2c9b21){return!!_n(_0x4202e0,_0x49480d)&&_0x51b9fe['end']['isEqual'](_0x2c9b21['start']);}function _n(_0x2fa01f,_0x280aeb){if(!_0x2fa01f['_isDataLoaded']||!_0x280aeb['_isDataLoaded'])return!0x1;const _0x13a6e9=new Set(Object['keys'](_0x2fa01f['attributes'])),_0x22e704=new Set(Object['keys'](_0x280aeb['attributes']));if(_0x13a6e9['delete']('groupId'),_0x22e704['delete']('groupId'),0x0==_0x13a6e9['size']&&0x0==_0x22e704['size'])return!0x0;if(_0x13a6e9['size']!=_0x22e704['size'])return!0x1;const _0x33f804={..._0x2fa01f['attributes']},_0x5a0b7f={..._0x280aeb['attributes']};return delete _0x33f804['groupId'],delete _0x5a0b7f['groupId'],JSON['stringify'](_0x33f804)==JSON['stringify'](_0x5a0b7f);}function pn(_0x11d3a8,_0x525cf8){const _0x195b6a=Ln(_0x11d3a8['attributes']),_0x57aca5=Ln(_0x525cf8);if(!_0x11d3a8['_isDataLoaded'])return!0x1;if(!lt(_0x195b6a['@ai'],_0x57aca5['@ai']))return!0x1;for(const _0x154155 of Object['keys'](_0x57aca5))if(!lt(_0x195b6a[_0x154155],_0x57aca5[_0x154155]))return!0x1;return!0x0;}function Ln(_0x5e50e3){const _0x24a961=Object['assign']({},_0x5e50e3);return delete _0x24a961['skipNestingCheck'],delete _0x24a961['tablePasteChainId'],_0x24a961;}function In(_0x2c978b){return _0x2c978b['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
+ _0x146e79();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x34b449,_0x25689a,_0x60eff7,_0x352f4e){super(),this['model']=_0x25689a,this['view']=_0x60eff7,this['commentThreadController']=_0x352f4e,this['_editor']=_0x34b449,this['_acceptCommand']=_0x34b449['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x34b449['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x33417c,_0x5c9a81)=>_0x33417c||_0x5c9a81),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2493c5=>_0x2493c5&&this['_editor']['model']['canEditAt'](_0x25689a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x341925=>_0x341925&&this['_editor']['model']['canEditAt'](_0x25689a['getRanges']())),this['_pendingAction']=null,_0x60eff7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x60eff7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x60eff7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x60eff7,'change:isDirty',()=>{_0x60eff7['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 _0x260395=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x260395);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x2623ce{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x398a76,_0xf3bee,_0xf4ca3f,_0x53bd5f){super(_0x398a76),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3222cb(_0x398a76,Ot(_0x398a76,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xf3bee['authoredAt']),this['bind']('authoredAt')['to'](_0xf3bee),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',_0xf3bee,'authoredAt',this,'descriptionParts',(_0x531bec,_0x2e5bd2,_0x44115a)=>{const _0x4cb030=_0x44115a['map'](_0x2af43d=>It(_0x2af43d['content']))['join']('.\x20')+'.',_0x512998=_0xf3bee['aiSource']&&'author'===_0x53bd5f['showAISource']?_0x53bd5f['aiAuthor']['name']:_0xf3bee['author']['name'],_0x5d8a42=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x531bec-0x1,_0x512998,_0x2e5bd2?_0x53bd5f['formatDateTime'](_0x2e5bd2):'',new DOMParser()['parseFromString'](_0x4cb030,'text/html')['body']['textContent']]);return _0xf3bee['aiSource']&&'pill'===_0x53bd5f['showAISource']?_0x5d8a42+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x5d8a42;}),this['focusables']=new _0x4b066c(),this['focusTracker']=new _0x355493(),this['keystrokes']=new _0x27b9b3(),this['focusCycler']=new _0x2eac73({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x418ab7=>_0x418ab7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xf3bee,this['_localUser']=_0xf4ca3f,this['_config']=_0x53bd5f,_0x53bd5f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x2ab64a}=this['_config'];this['commentsListView']=new _0x2ab64a(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',_0x34def6=>_0x34def6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1f1d49,_0x4d5fc0)=>_0x1f1d49||!!_0x4d5fc0);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x19590f}=this['_config'],_0xe953f9=new _0x19590f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d6e71=_0xe953f9['commentInputView'];return _0xe953f9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d6e71,'value',(_0x509663,_0x34cad8,_0x4a75bf)=>!!_0x4a75bf||_0x509663&&!_0x34cad8),_0x5d6e71['on']('submit',(_0x3167db,_0x262c78)=>{this['fire']('addComment',_0x262c78),_0x5d6e71['editor']['setData']('');}),_0x5d6e71['on']('cancel',()=>this['focus']()),_0x5d6e71['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe953f9;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0xacd2c5,_0x2332a6,_0x5e8dc0,_0x16f3f6){super(_0xacd2c5,_0x2332a6,_0x5e8dc0,_0x16f3f6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x406bb8=>_0x406bb8&&_0x406bb8[0x0]?_0x406bb8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x553adc,_0x788816)=>{let _0x31e440='';for(const _0x3b97e1 of _0x553adc)_0x31e440+='<p>'+It(_0x3b97e1['content'],_0x3b97e1['color'])+'</p>';return _0x788816?_0x31e440:it(_0x31e440,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x16f3f6['SuggestionView'](_0xacd2c5,_0x2332a6,{'formatDateTime':_0x16f3f6['formatDateTime'],'showAISource':_0x16f3f6['showAISource'],'aiAuthor':_0x16f3f6['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 _0x652d9f=this['bindTemplate'],_0x1f172f=[this['suggestionView']];return this['commentsListView']&&_0x1f172f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f172f['push'](this['commentThreadInputView']),_0x1f172f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x652d9f['if']('isActive','ck-suggestion-wrapper--active'),_0x652d9f['to']('type',_0xf9ff6a=>'ck-suggestion-'+_0xf9ff6a),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':_0x652d9f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f172f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0x2623ce{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x14684f,_0x20e1a8,_0x386040){super(_0x14684f),this['_model']=_0x20e1a8,this['_config']=_0x386040,this['set']('description',''),this['bind']('authoredAt')['to'](_0x20e1a8),this['acceptButton']=this['_createButton'](Ot(_0x14684f,'Accept\x20suggestion'),_0x3040e1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x14684f,'Discard\x20suggestion'),_0x4abdaa,'ck-suggestion--discard','discardSuggestion','sw');const _0x4dbc3f=!!_0x20e1a8['aiSource']&&'author'===_0x386040['showAISource'],_0x199349=_0x4dbc3f?this['_createAIUser'](_0x386040['aiAuthor']):_0x20e1a8['author'],_0x3f1732=_0x4dbc3f&&!_0x386040['aiAuthor']['avatar']?_0x33fac9:void 0x0;this['userView']=new _0x5b61d9(_0x14684f,_0x199349,this['getUserViewNotificationText'](),_0x3f1732),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b066c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x355493(),this['keystrokes']=new _0x27b9b3(),this['focusCycler']=new _0x2eac73({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2bbe41=>_0x2bbe41['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5eaf16=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5eaf16['innerHTML']=this['description'],this['on']('change:description',(_0x10bc3b,_0xe9b3bc,_0x1e3dc9)=>{_0x5eaf16['innerHTML']=_0x1e3dc9;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x2af775=this['bindTemplate'],_0x476d45=[{'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':_0x2af775['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2af775['to']('authoredAt',_0x34992f=>this['_config']['formatDateTime'](_0x34992f))}]}]},{'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']&&_0x476d45['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5d742d=new _0x33fbce(this['locale']);_0x5d742d['set']({'icon':_0x404231,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x476d45['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5d742d]});}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':_0x476d45}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x430b1e){return new _0x7da0a1({'id':'ck-ai-author','name':_0x430b1e['name'],'avatar':_0x430b1e['avatar'],'color':new _0xceb824(0x0)});}_createButton(_0xc7ff3c,_0x337fff,_0x2d13b9,_0x42e049,_0x238401){const _0x1f369b=new _0x173d8d(this['locale']);return _0x1f369b['set']({'label':_0xc7ff3c,'icon':_0x337fff,'tooltip':!0x0,'tooltipPosition':_0x238401}),_0x1f369b['extendTemplate']({'attributes':{'class':_0x2d13b9}}),_0x1f369b['on']('execute',()=>{this['fire'](_0x42e049,this['_model']['id']);}),_0x1f369b;}_setupKeyboardNavigation(){const _0x41376a=this['element'];this['keystrokes']['listenTo'](_0x41376a);for(const _0x35f662 of this['focusables'])this['focusTracker']['add'](_0x35f662['element']),this['keystrokes']['listenTo'](_0x35f662['element']);this['keystrokes']['set']('enter',(_0xea90f3,_0xb35886)=>{_0x41376a===_0xea90f3['target']&&(this['focusCycler']['focusFirst'](),_0xb35886());}),this['keystrokes']['set']('esc',(_0x505d7d,_0x5d179c)=>{_0x41376a!==_0x505d7d['target']&&(this['focus'](),_0x5d179c());});}},yn=class extends _0x5ef0cd{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x4eac81,_0x3018ff,_0x200563,_0x146c88];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x145310){super(_0x145310),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15ce7d=this['editor']['config'];_0x15ce7d['define']('trackChanges.SuggestionThreadView',kn),_0x15ce7d['define']('trackChanges.SuggestionView',Rn),_0x15ce7d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15ce7d['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x2f041b,_0x1eba3b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5473dc,_0x5b15c4]of this['_handleControllerBuffer']){const _0x5bf441=this['_suggestionToController']['has'](_0x5473dc);_0x5bf441||_0x5b15c4?_0x5bf441&&_0x5b15c4&&this['_destroyController'](_0x5473dc):this['_initializeController'](_0x5473dc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x146c88)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f041b,_0x1eba3b);}init(){const _0x322f5a=this['editor'],_0x50b066=_0x322f5a['plugins']['get'](on),_0x4726a9=_0x322f5a['plugins']['get'](_0x200563),_0x5b16b2=_0x322f5a['plugins']['get'](_0x146c88),_0x49316d=_0x322f5a['plugins']['get'](_0x3018ff);this['_addUIComponentsToFactory'](),_0x5b16b2['addSourceCollector'](()=>{const _0x4af151=[];for(const [_0x5ea9f3,_0x440dd8]of Array['from'](this['_suggestionToController'])){const _0x39b9b7=_0x5ea9f3['getAllAdjacentSuggestions'](),_0x152f7e=[];for(const _0x3b9dc3 of _0x39b9b7){if(!_0x3b9dc3['isInContent'])continue;if(_0x3b9dc3['isMultiRange']){_0x152f7e['push'](..._0x3b9dc3['getRanges']());continue;}const _0x32cf29=_0x3b9dc3['getFirstRange']();if(_0x152f7e['length']>0x0){const _0x3ea81f=_0x152f7e[0x0]['getJoined'](_0x32cf29);if(_0x3ea81f){_0x152f7e[0x0]=_0x3ea81f;continue;}}_0x152f7e['push'](_0x32cf29);}_0x4af151['push']([_0x440dd8['view'],_0x152f7e]);}return _0x4af151;}),this['listenTo'](_0x50b066,'suggestionLoaded',(_0x1025ac,_0x207ffb)=>{this['listenTo'](_0x207ffb,'change:previous',(_0x1d2762,_0x48b2ac,_0x37184e,_0x1276db)=>{_0x207ffb['isInContent']&&(null==_0x37184e?(this['_updateController'](_0x1276db['head']),this['_handleSuggestionControllerDelayed'](_0x207ffb,!0x1)):(this['_updateController'](_0x37184e['head']),null==_0x1276db&&this['_handleSuggestionControllerDelayed'](_0x207ffb,!0x0)));}),null!==_0x207ffb['previous']?this['_updateController'](_0x207ffb['head']):this['_handleSuggestionControllerDelayed'](_0x207ffb,!0x1);}),this['listenTo'](_0x50b066,'suggestionUnloaded',(_0x3fc5f6,_0x3bd57d,_0x26b604)=>{this['stopListening'](_0x3bd57d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3bd57d),this['_suggestionToController']['has'](_0x3bd57d)&&this['_destroyController'](_0x3bd57d),_0x26b604&&this['_updateController'](_0x26b604['head']);}),this['listenTo'](_0x50b066,'suggestionChanged',(_0x559ba8,_0x3168fd)=>{this['_updateController'](_0x3168fd);}),this['listenTo'](_0x4726a9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x49316d,'addComment',(_0x29a433,{threadId:_0x2c02a0,isFromAdapter:_0x3f2040})=>{if(_0x3f2040||!_0x50b066['hasSuggestion'](_0x2c02a0))return;const _0x48277b=_0x50b066['getSuggestion'](_0x2c02a0);this['_suggestionToController']['get'](_0x48277b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x41bd1f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3387b8;for(const _0x3ba84b in _0x41bd1f){const _0x8b20ee=_0x3ba84b,_0x30275a=_0x41bd1f[_0x8b20ee];if('trackChangesLicenseKeyValid'==_0x30275a||'trackChangesLicenseKeyInvalid'==_0x30275a||'trackChangesLicenseKeyExpired'==_0x30275a||'trackChangesLicenseKeyDomainLimit'==_0x30275a||'trackChangesLicenseKeyNotAllowed'==_0x30275a||'trackChangesLicenseKeyEvaluationLimit'==_0x30275a||'trackChangesLicenseKeyUsageLimit'==_0x30275a){delete _0x41bd1f[_0x8b20ee],_0x3387b8=_0x30275a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3387b8&&_0x41bd1f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3387b8&&_0x41bd1f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3387b8&&_0x41bd1f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3387b8&&_0x41bd1f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3387b8&&_0x41bd1f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3387b8&&_0x41bd1f['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x50bf76){const _0x48c724=this['_suggestionToController']['get'](_0x50bf76);return _0x48c724&&this['editor']['plugins']['get'](_0x200563)['getByInnerView'](_0x48c724['view'])||null;}getSuggestionForAnnotation(_0x4a5da8){const _0x593bf8=this['_viewToController']['get'](_0x4a5da8['innerView']);return _0x593bf8?_0x593bf8['model']:null;}_refreshActiveMarkers(){const _0x223b9d=this['editor']['plugins']['get'](_0x200563),_0xfb7993=this['editor']['plugins']['get'](on),_0x6ef050=Array['from'](_0x223b9d['activeAnnotations'],_0x1868f4=>_0x1868f4['innerView'])['filter'](_0x2b2fd4=>this['_viewToController']['has'](_0x2b2fd4)),_0xb34f59=[];for(const _0x5400e1 of _0x6ef050){const _0x47cb72=this['_viewToController']['get'](_0x5400e1)['model']['getAllAdjacentSuggestions']();_0xb34f59['push'](..._0x47cb72['reduce']((_0x1c8503,_0x1287b5)=>[..._0x1c8503,..._0x1287b5['getMarkerNames']()],[]));}_0xfb7993['activeMarkers']=_0xb34f59;}_addUIComponentsToFactory(){const _0x32bb5c=this['editor'],_0x11a142=_0x32bb5c['locale'],_0x147c7d=Ot(_0x11a142,'Track\x20changes'),_0x442d80=new _0x860328([{'type':'switchbutton','model':new _0x55430f({'withText':!0x0,'isToggleable':!0x0,'label':_0x147c7d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x55430f({'withText':!0x0,'label':Ot(_0x11a142,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x55430f({'withText':!0x0,'label':Ot(_0x11a142,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x55430f({'withText':!0x0,'label':Ot(_0x11a142,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x55430f({'withText':!0x0,'label':Ot(_0x11a142,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x32bb5c['plugins']['has']('TrackChangesPreview')&&_0x442d80['addMany']([{'type':'separator'},{'type':'button','model':new _0x55430f({'withText':!0x0,'label':Ot(_0x11a142,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x53c37a of _0x442d80)if(Nn(_0x53c37a)){const _0x152942=_0x32bb5c['commands']['get'](_0x53c37a['model']['commandName']);_0x53c37a['model']['bind']('isOn','isEnabled')['to'](_0x152942,'value','isEnabled');}_0x32bb5c['ui']['componentFactory']['add']('trackChanges',_0x589fa=>this['_createToolbarButton'](_0x589fa,_0x442d80,_0x147c7d)),_0x32bb5c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x6c07fb=>this['_createMenuBarMenu'](_0x6c07fb,_0x442d80,_0x147c7d));}_createToolbarButton(_0x173848,_0x3fcbcc,_0x1265c4){const _0x46b135=_0x4002eb(_0x173848,_0x473b31),_0x548fe0=this['editor']['commands']['get']('trackChanges');_0x46b135['buttonView']['set']({'tooltip':_0x1265c4,'label':_0x1265c4,'icon':_0x162a6a}),_0x46b135['buttonView']['bind']('isOn')['to'](_0x548fe0,'value'),_0x46b135['buttonView']['on']('execute',()=>{_0x548fe0['execute'](),this['editor']['editing']['view']['focus']();}),_0x5d84c3(_0x46b135,_0x3fcbcc,{'role':'menu'});const _0x305e1b=[];for(const _0x20a653 of _0x3fcbcc)Nn(_0x20a653)&&_0x305e1b['push'](this['editor']['commands']['get'](_0x20a653['model']['commandName']));const _0x5ee7cf=_0x46b135['buttonView'];return _0x5ee7cf['actionView']['unbind']('isEnabled'),_0x5ee7cf['arrowView']['unbind']('isEnabled'),_0x5ee7cf['actionView']['bind']('isEnabled')['to'](_0x548fe0,'isEnabled'),_0x5ee7cf['arrowView']['bind']('isEnabled')['toMany'](_0x305e1b,'isEnabled',(..._0xc3b8bc)=>_0xc3b8bc['some'](_0x2e7f7b=>_0x2e7f7b)),_0x46b135['on']('execute',_0x573e50=>{this['editor']['execute'](_0x573e50['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x46b135;}_createMenuBarMenu(_0x29ee74,_0x2afddb,_0x231f69){const _0x1362e4=new _0x319d83(_0x29ee74),_0x4ab687=this['editor']['commands']['get']('trackChanges');_0x1362e4['buttonView']['set']({'label':_0x231f69,'icon':_0x162a6a});const _0x460e3e=new _0x52bbbf(_0x29ee74);for(const _0x58cc16 of _0x2afddb){if('separator'==_0x58cc16['type']){_0x460e3e['items']['add'](new _0x34a713(_0x29ee74));continue;}const _0x53a509=new _0x457771(_0x29ee74,_0x1362e4),_0x23b142=new _0x47cc62(_0x29ee74),_0x5dc5c5=_0x58cc16['model'];_0x23b142['bind'](...Object['keys'](_0x5dc5c5))['to'](_0x5dc5c5),_0x23b142['delegate']('execute')['to'](_0x1362e4),_0x23b142['on']('execute',()=>{this['editor']['execute'](_0x5dc5c5['commandName']),this['editor']['editing']['view']['focus']();}),_0x53a509['children']['add'](_0x23b142),_0x460e3e['items']['add'](_0x53a509);}return _0x1362e4['bind']('isEnabled')['to'](_0x4ab687,'isEnabled'),_0x1362e4['panelView']['children']['add'](_0x460e3e),_0x1362e4;}_initializeController(_0x3962b4){const _0x3d2057=this['editor'],_0x1e4dc6=_0x3d2057['config'],_0x2cad9a=_0x3d2057['plugins']['get'](_0x200563),_0x10dcf1=_0x3d2057['plugins']['get'](_0x3018ff),_0x16ace3=_0x3d2057['plugins']['get'](_0x146c88),_0x2eb220=_0x3d2057['plugins']['get'](_0x4eac81)['me'],_0x540722=_0x1e4dc6['get']('trackChanges')['SuggestionThreadView'],_0x4532a9=_0x1e4dc6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x31636c,CommentThreadInputView:_0x1b505a}=_0x3d2057['plugins']['get']('CommentsUI');let _0x2a6359,_0x3d9793,_0x2023b7;this['_annotationViews']['has'](_0x3962b4['id'])?(_0x3d9793=this['_annotationViews']['get'](_0x3962b4['id']),_0x2a6359=_0x3d9793['mainView']):(_0x2a6359=new _0x540722(_0x3d2057['locale'],_0x3962b4,_0x2eb220,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1e4dc6['get']('comments.editorConfig'),'licenseKey':_0x1e4dc6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1e4dc6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e4dc6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e4dc6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3fd085(_0x1e4dc6['get']('locale'),_0x3d2057['locale']),'CommentView':_0x1e4dc6['get']('comments')['CommentView'],'CommentsListView':_0x31636c,'CommentThreadInputView':_0x1b505a,'SuggestionView':_0x4532a9,'showAISource':_0x1e4dc6['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x1e4dc6['get']('trackChanges.aiAuthor'),'name':_0x1e4dc6['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x3d2057['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x2a6359['suggestionView']['acceptButton']['on']('execute',()=>{_0x3d2057['editing']['view']['focus']();}),_0x2a6359['suggestionView']['discardButton']['on']('execute',()=>{_0x3d2057['editing']['view']['focus']();}),_0x3d9793=_0x2cad9a['createAnnotationView'](this['editor']['locale'],_0x2a6359),_0x3d9793['bind']('isDirty')['to'](_0x2a6359,'isDirty'),_0x3d9793['bind']('length')['to'](_0x2a6359),_0x3d9793['bind']('type')['to'](_0x2a6359,'type',_0x4c9676=>'suggestion-'+_0x4c9676),_0x2a6359['on']('escape',()=>{_0x2023b7['fire']('escape');}),this['_annotationViews']['set'](_0x3962b4['id'],_0x3d9793));const _0x4a2f8b=_0x10dcf1['createCommentThreadController'](_0x3962b4['commentThread'],_0x2a6359),_0x1d4f9a=new bn(_0x3d2057,_0x3962b4,_0x2a6359,_0x4a2f8b),_0x42739a=_0x3962b4['getAllAdjacentSuggestions']()['filter'](_0x37205f=>_0x37205f['isInContent']);_0x2a6359['descriptionParts']=_0x3d2057['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x42739a),this['_suggestionToController']['set'](_0x3962b4,_0x1d4f9a),this['_viewToController']['set'](_0x2a6359,_0x1d4f9a);const _0x404815=()=>{const _0x3f3fe7=[],_0x406d81=_0x3962b4['getAllAdjacentSuggestions']()['filter'](_0x13b30f=>_0x13b30f['isInContent']);for(const _0x134d38 of _0x406d81)_0x3f3fe7['push'](..._0x134d38['getMarkers']());return _0x4ba58b(_0x3d2057['editing'],_0x3f3fe7);};_0x2023b7=_0x2cad9a['createAnnotation']({'view':_0x3d9793,'target':_0x404815,'type':()=>'suggestion-'+_0x1d4f9a['view']['type'],'isVisible':!!_0x404815()}),_0x10dcf1['_bindAnnotationToEditors'](_0x2a6359,_0x2023b7),_0x2cad9a['add'](_0x2023b7),_0x16ace3['registerAnnotation'](_0x2023b7);}_destroyController(_0x23e85b){const _0x56762a=this['editor']['plugins']['get'](_0x3018ff),_0x21513b=this['editor']['plugins']['get'](_0x200563),_0x5dedde=this['_suggestionToController']['get'](_0x23e85b),_0x419b71=_0x5dedde['view'],_0x37e5f9=_0x21513b['getByInnerView'](_0x419b71);_0x56762a['_unbindEditors'](_0x419b71),_0x37e5f9&&_0x21513b['remove'](_0x37e5f9),this['_suggestionToController']['delete'](_0x23e85b),this['_viewToController']['delete'](_0x419b71),_0x5dedde['destroy']();}_updateController(_0x525b77){if(!_0x525b77['isInContent']||!this['_suggestionToController']['has'](_0x525b77))return;const _0x3c0287=this['editor']['plugins']['get'](on),_0x588542=this['_suggestionToController']['get'](_0x525b77),_0x3d34a6=_0x525b77['getAllAdjacentSuggestions']();_0x588542['view']['descriptionParts']=_0x3c0287['descriptionFactory']['getDescriptions'](_0x3d34a6);}destroy(){for(const _0x925be8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x925be8);for(const _0x588249 of this['_annotationViews']['values']())_0x588249['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x22360b){return'model'in _0x22360b;}var Sn=class extends _0x5ef0cd{static get requires(){return[on,yn,_0x4405cc];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x46aba3){this['editor']['plugins']['get'](on)['adapter']=_0x46aba3;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x4b2a96){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x4b2a96);}getSuggestions({skipNotAttached:_0x2e1885=!0x1,toJSON:_0x3d7f06=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x2e1885,'toJSON':_0x3d7f06});}getSuggestion(_0x2c593b){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x2c593b);}};const Mn=['Pagination'];var On=class extends _0x5ef0cd{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4a7309=this['editor'];if(_0x4a7309['config']['define']('trackChangesData.editorCreator',_0x4eb686=>{const _0xc0911f=_0x4a7309['model']['document']['getRootNames']()['reduce']((_0x412ea2,_0x46743e)=>(_0x412ea2[_0x46743e]='',_0x412ea2),{});return _0x4a7309['constructor']['create'](_0xc0911f,_0x4eb686);}),'function'!=typeof _0x4a7309['config']['get']('trackChangesData')['editorCreator'])throw new _0x106f70('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0xd0cb5b){return Bn(this['editor'],!0x0,_0xd0cb5b);}getDataWithDiscardedSuggestions(_0x5af909){return Bn(this['editor'],!0x1,_0x5af909);}},wn=class extends _0x5ef0cd{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d5ca4){super(_0x1d5ca4),this['result']='end',_0x1d5ca4['editing']['view']['_overlayModeHint']='auto',_0x1d5ca4['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Fn(_0x19cd9b){return void 0x0!==_0x19cd9b['getRootsAttributes'];}async function Bn(_0x26ac18,_0x1caffd,_0x2aa7bc){const _0x4ce1cd=_0x1e49da(_0x26ac18,Mn);if(_0x4ce1cd['plugins']['push'](on,wn),Fn(_0x26ac18)){_0x4ce1cd['roots']=Object['create'](null);for(const _0x15df9c of _0x26ac18['model']['document']['getRootNames']())_0x4ce1cd['roots'][_0x15df9c]={'modelAttributes':_0x26ac18['getRootAttributes'](_0x15df9c)};}const _0x4a23cc=document['createDocumentFragment'](),_0x536c57=_0x26ac18['config']['get']('trackChangesData')['editorCreator'],_0x24d9e6=await _0x536c57(_0x4ce1cd,()=>function(_0x3f65ad){const _0xbf626d=document['createElement']('div');return _0x3f65ad['appendChild'](_0xbf626d),_0xbf626d;}(_0x4a23cc));!function(_0x447e12,_0x9bfae6){const _0x13715f=_0x447e12['model']['document']['getRootNames']()['reduce']((_0x33c341,_0x25806c)=>(_0x33c341[_0x25806c]=_0x447e12['data']['get']({'rootName':_0x25806c}),_0x33c341),{}),_0x26d8e3=_0x447e12['plugins']['get']('Users')['users']['map'](_0x380989=>({'id':_0x380989['id'],'name':_0x380989['name']})),_0x122c5f=_0x447e12['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e963b=_0x447e12['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x210f52=_0x9bfae6['plugins']['get']('Users'),_0x539436=_0x9bfae6['plugins']['get']('TrackChangesEditing'),_0x379695=_0x9bfae6['plugins']['get']('CommentsRepository');for(const _0x56cbc2 of _0x379695['getCommentThreads']())_0x56cbc2['remove']();for(const _0x12c967 of _0x26d8e3)_0x210f52['getUser'](_0x12c967['id'])||_0x210f52['addUser'](_0x12c967);_0x210f52['me']||_0x210f52['useAnonymousUser']();for(const _0x37b424 of _0x3e963b)_0x379695['addCommentThread'](_0x37b424);for(const _0x1ac67b of _0x122c5f)_0x539436['addSuggestionData'](_0x1ac67b);_0x9bfae6['data']['set'](_0x13715f);}(_0x26ac18,_0x24d9e6),_0x24d9e6['execute'](_0x1caffd?'acceptAllSuggestions':'discardAllSuggestions');const _0x404605=Fn(_0x24d9e6)?_0x24d9e6['getFullData'](_0x2aa7bc):_0x24d9e6['data']['get'](_0x2aa7bc);return await _0x24d9e6['destroy'](),_0x404605;}var vn=class extends _0x2623ce{options;constructor(_0x5315ae,_0x3ac950){super(_0x5315ae),this['options']=_0x3ac950,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(_0x35d910,_0x4f0137){if(!this['element'])return;const _0x153cd4=[];for(const [_0xa7dd2a,_0x180b4a]of _0x35d910){const _0x376c37=document['createElement']('div');_0x376c37['setAttribute']('data-ck-root-name',_0xa7dd2a),_0x376c37['className']=_0x180b4a['classes']+'\x20ck-track-changes-preview__root-container',_0x376c37['innerHTML']=_0x180b4a['content'],_0x153cd4['push'](_0x376c37);}_0x4f0137(this['element'],_0x153cd4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x22624a{constructor(_0x22a82f){super(_0x22a82f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x940f1b=this['editor'],_0x3a3f22=_0x940f1b['locale'],_0x7d97af=_0x940f1b['plugins']['get']('Dialog');let _0xc3f44b;const _0x245c50=function(_0x3e7e7a){const _0x4d83a1={};if('editables'in _0x3e7e7a['ui']['view']){for(const [_0x3b6ed1,_0x255286]of Object['entries'](_0x3e7e7a['ui']['view']['editables']))_0x4d83a1[_0x3b6ed1]=_0x255286['element'];}else _0x4d83a1[_0x3e7e7a['model']['document']['getRootNames']()[0x0]]=_0x3e7e7a['ui']['view']['editable']['element'];return _0x4d83a1;}(_0x940f1b),_0xf89ae0=function(_0x5825d3){let _0x2930bf=0x0;for(const _0x484730 of Object['values'](_0x5825d3))_0x2930bf=Math['max'](_0x2930bf,_0x484730['getBoundingClientRect']()['width']);let _0x39d400=0x0;for(const _0x2bd8d0 of Object['values'](_0x5825d3))_0x39d400+=_0x2bd8d0['getBoundingClientRect']()['height'];const _0x24ec77=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x2930bf,'height':Math['min'](_0x39d400,_0x24ec77)};}(_0x245c50);_0x7d97af['show']({'id':'finalContentPreview','title':Ot(_0x3a3f22,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x3a3f22,{'dialogRects':_0xf89ae0}),'onHide':()=>{_0xc3f44b['detachFromDom']();},'onShow':()=>{_0x940f1b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x351a59=>{const _0x2152a1=this['_standarizeRootsData'](_0x351a59,_0x940f1b,_0x245c50);_0x7d97af['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2152a1,_0x940f1b['config']['get']('trackChanges.preview.renderFunction'));}),_0xc3f44b=new _0x3137eb(_0x3a3f22,[_0x7d97af['view']]),_0xc3f44b['attachToDom'](),_0xc3f44b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x940f1b['once']('destroy',()=>{_0xc3f44b['detachFromDom']();});const _0x522d2c=_0x7d97af['view']['headerView']['class'];_0x7d97af['view']['headerView']['class']=_0x522d2c?_0x522d2c+'\x20ck-reset_all':'ck-reset_all',_0x7d97af['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x7d97af['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x537719=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x466e80=_0x537719['previewMode'],_0x5742a5={};if('$labels'===_0x466e80){for(const _0x2dfc06 of _0x537719['getMergeFieldsIds']())_0x5742a5[_0x2dfc06]=_0x537719['getLabel'](_0x2dfc06)||_0x2dfc06;}else{const _0x5c86d7='$defaultValues'===_0x466e80?_0x537719['getDefaultValues']():_0x537719['getDataSetValues'](_0x466e80,!0x0);for(const _0x5a1b1d of Object['entries'](_0x5c86d7)){const [_0x196400,_0x2d5521]=_0x5a1b1d;_0x5742a5[_0x196400]=null!==_0x2d5521?_0x2d5521:_0x537719['getLabel'](_0x196400)||_0x196400;}}return{'mergeFieldsData':_0x5742a5};}_standarizeRootsData(_0x37f2ce,_0x4e1b20,_0x2b3a72){let _0x59bd8e;_0x59bd8e='string'==typeof _0x37f2ce?{[_0x4e1b20['model']['document']['getRootNames']()[0x0]]:_0x37f2ce}:_0x37f2ce;const _0xbef975=this['_fixMediaEmbeds'](_0x59bd8e,_0x4e1b20);return function(_0x27b558,_0x1d66fb){for(const [_0x1538e8,_0x104d90]of _0x27b558)_0x104d90['classes']=_0x1d66fb[_0x1538e8]['classList']['value']['replace']('ck-focused','');return _0x27b558;}(this['_sortRoots'](_0x4e1b20)['reduce']((_0x3105d9,_0xffa416)=>(_0x3105d9['push']([_0xffa416,{'content':_0xbef975[_0xffa416],'classes':''}]),_0x3105d9),[]),_0x2b3a72);}['_fixMediaEmbeds'](_0x15cebf,_0x570830){if(!_0x570830['plugins']['has']('MediaEmbedEditing'))return _0x15cebf;const _0x6f8a58=_0x570830['plugins']['get']('MediaEmbedEditing');for(const [_0x3c682a,_0x5b4585]of Object['entries'](_0x15cebf)){const _0x1f2a44=document['createElement']('div');_0x1f2a44['innerHTML']=_0x5b4585,_0x1f2a44['querySelectorAll']('figure.media')['forEach'](_0x2a649d=>{const _0x15290e=_0x2a649d['querySelector']('oembed');if(_0x15290e){const _0x56db23=_0x15290e['getAttribute']('url');if(_0x56db23){const _0x58c5e1=_0x6f8a58['registry']['getMediaViewElement'](new at(_0x570830['editing']['view']['document']),_0x56db23,{'elementName':'','renderForEditingView':!0x0}),_0x555aca=document['createElement']('div');_0x555aca['classList']['add']('ck-media__wrapper'),_0x58c5e1['render'](_0x555aca,_0x570830['editing']['view']['domConverter']),_0x15290e['replaceWith'](_0x555aca);}}}),_0x15cebf[_0x3c682a]=_0x1f2a44['innerHTML'];}return _0x15cebf;}_sortRoots(_0x4db414){if(!function(_0x3bd6a0){return void 0x0!==_0x3bd6a0['getRootsAttributes'];}(_0x4db414))return _0x4db414['model']['document']['getRootNames']();const _0x27c5a5=[],_0x17c15d=new Map();for(const _0xa80126 of _0x4db414['model']['document']['getRootNames']()){const _0x157fde=_0x4db414['editing']['view']['getDomRoot'](_0xa80126)['getClientRects']()['item'](0x0);_0x27c5a5['push'](_0xa80126),_0x17c15d['set'](_0xa80126,_0x157fde);}return _0x27c5a5['sort']((_0x52b41f,_0x3aee9e)=>{const _0x49d525=_0x17c15d['get'](_0x52b41f),_0x4608b7=_0x17c15d['get'](_0x3aee9e);return _0x49d525['y']-_0x4608b7['y']||_0x49d525['x']-_0x4608b7['x'];}),_0x27c5a5;}},Un=class extends _0x5ef0cd{static get requires(){return[On,_0x42231e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e013b){super(_0x2e013b),_0x2e013b['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x2e013b['config']['define']('trackChanges.preview.renderFunction',(_0x44776c,_0x259fbc)=>{for(const _0x4a4231 of _0x259fbc)_0x44776c['appendChild'](_0x4a4231);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};