@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240924.0 → 0.0.0-nightly-20240926.0

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 (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x4db285,PendingActions as _0x110daa,icons as _0x79ba0e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xec2a34,ObservableMixin as _0x1eebb1,uid as _0x1d9854,insertToPriorityArray as _0xd6dd24,priorities as _0xa03c08,logWarning as _0x144746,getEnvKeystrokeText as _0x8b9ade,FocusTracker as _0x4735f9,KeystrokeHandler as _0x2da3ad,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x34f3ec,View as _0x243c5a,ViewCollection as _0x487448,FocusCycler as _0x58e1d3,ViewModel as _0x22f470,createDropdown as Qt,SplitButtonView as _0x49aaaa,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x4ef32a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3c2de3,hashObject as _0x40a42b,surroundingMarkersDetector as _0x3e644a,FOCUS_ANNOTATION_KEYSTROKE as _0x20e465,AriaDescriptionView as _0x3872c0,setupThreadKeyboardNavigation as _0x3c2da8,trimHtml as _0x1d1250,UserView as _0x3bc74b,LateFocusButtonView as _0x2f3f93,getDateTimeFormatter as _0x13ba63,getAllMarkersDomElementsSorted as _0x35144d,sanitizeEditorConfig as _0x1e1033}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xf87c82,LiveRange as _0x52a99c,LivePosition as _0x2c0c65}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x519e3d,toWidget as _0x3df2e5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x39ecdd,set as _0x1ab7a5,isEqual as _0x33fc0b,unset as _0x4c8de7,omit as Tt}from'lodash-es';import{Delete as _0x221a60,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4adfe0,ShiftEnter as _0x3fc02e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x43f187,_0x141465){super(_0x43f187),this['_enabledCommands']=_0x141465,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 _0x582ed1 of this['editor']['commands']['commands']())_0x582ed1['affectsData']&&!this['_enabledCommands']['has'](_0x582ed1)&&_0x582ed1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2acb64 of this['editor']['commands']['commands']())_0x2acb64['affectsData']&&!this['_enabledCommands']['has'](_0x2acb64)&&_0x2acb64['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x55d04e,_0x328616){super(_0x55d04e),this['_suggestions']=_0x328616,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1ff9c0){const _0x25d30c=this['_suggestions']['get'](_0x1ff9c0);if(!_0x25d30c)throw new _0xec2a34('track-changes-accept-suggestion-not-found',this);const _0x48b1d4=_0x25d30c['getRanges']();this['editor']['model']['canEditAt'](_0x48b1d4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x25d30c);}}class R extends ts{['_suggestions'];constructor(_0xebfc2e,_0x5d9c3f){super(_0xebfc2e),this['_suggestions']=_0x5d9c3f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2c7749){const _0x491403=this['_suggestions']['get'](_0x2c7749);if(!_0x491403)throw new _0xec2a34('track-changes-discard-suggestion-not-found',this);const _0x492d53=_0x491403['getRanges']();this['editor']['model']['canEditAt'](_0x492d53)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x491403);}}function ls(_0x33d242,_0x192790){let _0xd53478='';return _0xd53478+=_0x33d242['split']('*')['map']((_0x6588aa,_0x141b94)=>_0x141b94%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x6588aa)+'</span>':nn(_0x6588aa))['join'](''),_0x192790&&(_0xd53478+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x192790['value']+'\x22\x20title=\x22'+_0x192790['title']+'\x22></span>'),_0xd53478;}function nn(_0xc16b89){const _0xc25ca=document['createElement']('span');return _0xc25ca['innerText']=_0xc16b89,_0xc25ca['innerHTML'];}function ss(_0x1ff53e){return _0x1ff53e['sort']((_0x1e5507,_0x3c03de)=>'deletion'==_0x1e5507['type']&&'deletion'!=_0x3c03de['type']?-0x1:'deletion'!=_0x1e5507['type']&&'deletion'==_0x3c03de['type']?0x1:0x0);}function to(_0x554ecc,_0x1a6097){let _0x4d7b37,_0x1ee382=0x0;const _0x1a60ba=[],_0xa7571f=_0x1a6097['schema'];for(;_0x1ee382<_0x554ecc['length'];){const _0x4e6e7c=_0x554ecc[_0x1ee382],_0x45c2ac=_0x554ecc[_0x1ee382+0x1];_0x4d7b37||(_0x4d7b37=_0x1a6097['createPositionBefore'](_0x4e6e7c)),on(_0x1a6097,_0x4e6e7c,_0x45c2ac)||(_0x1a60ba['push'](_0x1a6097['createRange'](_0x4d7b37,_0xa7571f['isObject'](_0x4e6e7c)?_0x1a6097['createPositionAfter'](_0x4e6e7c):_0x1a6097['createPositionAt'](_0x4e6e7c,'end'))),_0x4d7b37=null),_0x1ee382++;}return _0x1a60ba;}function on(_0x30c8c7,_0x2b0a72,_0x55de7d){if(!_0x55de7d)return!0x1;const _0x5433fc=_0x30c8c7['createPositionAfter'](_0x2b0a72),_0x1db184=_0x30c8c7['createPositionBefore'](_0x55de7d);return _0x5433fc['isTouching'](_0x1db184);}function rs(_0x336f92,_0x4771a2,_0x19af8a){for(;_0x19af8a['length'];){const _0x73afa3=_0x19af8a['splice'](0x0,0x64);_0x336f92['change'](()=>{for(const _0x1935b7 of _0x73afa3)_0x1935b7['isInContent']&&_0x4771a2['execute'](_0x1935b7['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x37add8,_0x1f5aab,_0x3be08f){super(_0x37add8),this['_command']=_0x1f5aab,this['_suggestions']=_0x3be08f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2626a1=Array['from'](this['_suggestions']['values']())['some'](_0x2c40d6=>_0x2c40d6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2626a1;}['execute'](){const _0x3aed44=ss(Array['from'](this['_suggestions']['values']()));for(const _0x559c8d of _0x3aed44){const _0xd57ac3=_0x559c8d['getRanges']();if(!this['editor']['model']['canEditAt'](_0xd57ac3))return;}rs(this['editor']['model'],this['_command'],_0x3aed44);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x56a557,_0x5389ba,_0x3e6255){super(_0x56a557),this['_command']=_0x5389ba,this['_suggestions']=_0x3e6255,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4570e3=this['editor']['model']['document']['selection'],_0x49efa3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x50069f,_0x24f0f5){const _0x35cf7f=Array['from'](_0x50069f['getRanges']()),_0x2d7185=new Set();for(const _0x210600 of _0x24f0f5)if(_0x210600['isInContent']){for(const _0x167d15 of _0x35cf7f)for(const _0x520d09 of _0x210600['getRanges']())(_0x167d15['isIntersecting'](_0x520d09)||_0x50069f['isCollapsed']&&!_0x210600['isMultiRange']&&_0x210600['next']&&_0x520d09['end']['isTouching'](_0x167d15['start']))&&_0x2d7185['add'](_0x210600);}return _0x2d7185;}(_0x4570e3,_0x49efa3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x50b919=ss(Array['from'](this['_selectedSuggestions']));for(const _0x24f446 of _0x50b919){const _0x5aeca7=_0x24f446['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5aeca7))return;}rs(this['editor']['model'],this['_command'],_0x50b919);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1eebb1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x567c31,_0x4336de){super(),this['id']=_0x4336de['id'],this['type']=_0x4336de['type'],this['subType']=_0x4336de['subType']||null,this['author']=_0x4336de['author'],this['creator']=_0x4336de['creator']||_0x4336de['author'],this['isExternal']=Boolean(_0x4336de['attributes']&&_0x4336de['attributes']['@external']),this['data']=null,this['_model']=_0x567c31,this['_onAccept']=_0x4336de['onAccept'],this['_onDiscard']=_0x4336de['onDiscard'],this['_onAttributesChange']=_0x4336de['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4336de['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x245063=this;for(;_0x245063['previous'];)_0x245063=_0x245063['previous'];return _0x245063;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x28ea02){this['_markerNames']['add'](_0x28ea02);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2ea649=>this['_model']['markers']['get'](_0x2ea649))['filter'](_0x412324=>_0x412324);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x513003=>{for(const _0x541443 of this['getMarkers']())_0x513003['removeMarker'](_0x541443);}),this['_markerNames']['clear']();}['removeMarker'](_0xc8b137){this['_model']['change'](_0x5bb7d4=>{_0x5bb7d4['removeMarker'](_0xc8b137);}),this['_markerNames']['delete'](_0xc8b137);}['addRange'](_0x4af666){const _0x14c0ea='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x14c0ea),this['_model']['change'](_0x5445f6=>{_0x5445f6['addMarker'](_0x14c0ea,{'range':_0x4af666,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5baad1){for(const _0x4db5fd of this['getRanges']())if(_0x4db5fd['isIntersecting'](_0x5baad1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x346467=>_0x346467['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f7f6a,_0x1cd95b)=>[..._0x1f7f6a,..._0x1cd95b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ddc5d=this['getRanges']();if(0x1!=_0x1ddc5d['length'])return null;const _0x1f924f=_0x1ddc5d[0x0],_0x205e3e=_0x1f924f['start']['nodeAfter'],_0x56590c=_0x1f924f['end']['nodeBefore'];return _0x205e3e instanceof _0xf87c82?_0x205e3e!=_0x56590c?null:_0x205e3e: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 _0x4e091d=[];let _0x2d1dd3=this['head'];for(;_0x2d1dd3;)_0x4e091d['push'](_0x2d1dd3),_0x2d1dd3=_0x2d1dd3['next'];return _0x4e091d;}['setAttribute'](_0x5e9b71,_0x5994f5){const _0x4111bd=_0x39ecdd(this['attributes']);_0x1ab7a5(_0x4111bd,_0x5e9b71,_0x5994f5),_0x33fc0b(_0x4111bd,this['attributes'])||(this['attributes']=_0x4111bd,this['_onAttributesChange'](_0x4111bd));}['removeAttribute'](_0xc42909){const _0xd6b21c=_0x39ecdd(this['attributes']);_0x4c8de7(_0xd6b21c,_0xc42909),_0x33fc0b(_0xd6b21c,this['attributes'])||(this['attributes']=_0xd6b21c,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 _0x1d9854()['substr'](0x1,0x5);}}function o(_0xe51a69,_0x186f34,_0x236fc8){const t=_0xe51a69['t'];switch(_0x186f34){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'*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',_0x236fc8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x236fc8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x236fc8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x236fc8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x236fc8);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',_0x236fc8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x236fc8);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x236fc8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x236fc8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x236fc8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x236fc8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x236fc8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x236fc8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x236fc8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x236fc8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x236fc8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x236fc8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x236fc8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x236fc8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x236fc8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x236fc8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x236fc8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x236fc8);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'},_0x236fc8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x236fc8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x236fc8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x236fc8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x236fc8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x236fc8);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x236fc8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x236fc8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x236fc8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x236fc8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x236fc8);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_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'},_0x236fc8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x236fc8);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'},_0x236fc8);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_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'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'},_0x236fc8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x236fc8);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'},_0x236fc8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x236fc8);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'},_0x236fc8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x236fc8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x236fc8);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'},_0x236fc8);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x236fc8);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x236fc8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x236fc8);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'},_0x236fc8);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'},_0x236fc8);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'},_0x236fc8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x186f34;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59084e,_0x3dbcf6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59084e,this['_locale']=_0x3dbcf6;}['getDescriptions'](_0x3ff281){const _0x42fd24=[],_0x2d12e0=new Set(),_0x1ee36d=new Set();for(let _0x2d66c1=0x0;_0x2d66c1<_0x3ff281['length'];_0x2d66c1++){const _0x5fa673=_0x3ff281[_0x2d66c1];if(!_0x5fa673['isInContent'])continue;const _0x2687bf=this['_handleCustomCallbackDescription'](_0x5fa673);if(_0x2687bf){if(null!=_0x5fa673['subType']){if(_0x2d12e0['has'](_0x5fa673['subType']))continue;_0x2d12e0['add'](_0x5fa673['subType']);}_0x42fd24['push'](_0x2687bf);}else{if('attribute'!=_0x5fa673['type'])'insertion'!=_0x5fa673['type']&&'deletion'!=_0x5fa673['type']||this['_handleInsertRemoveSuggestionDescription'](_0x42fd24,_0x5fa673,_0x3ff281[_0x2d66c1+0x1]);else{const _0x4dde25=_0x5fa673['data']['key'];if(_0x1ee36d['has'](_0x4dde25))continue;_0x1ee36d['add'](_0x5fa673['data']['key']),_0x4dde25==m?this['_handleRenameSuggestionDescription'](_0x42fd24,_0x5fa673):this['_handleAttributeSuggestionDescription'](_0x42fd24,_0x5fa673);}}}return this['_resolveDescriptionItems'](_0x42fd24);}['registerDescriptionCallback'](_0x6acf65){this['_customCallbacks']['push'](_0x6acf65);}['registerElementLabel'](_0x46a0b1,_0x5d60a9,_0xdbb13c=_0xa03c08['normal']){'function'==typeof _0x46a0b1?_0xd6dd24(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46a0b1,'label':_0x5d60a9,'priority':_0xdbb13c}):this['_itemLabels']['set'](_0x46a0b1,_0x5d60a9);}['registerAttributeLabel'](_0x2935ec,_0x1fd611){this['_attributeLabels']['set'](_0x2935ec,_0x1fd611);}['getItemLabel'](_0x2529e7,_0x5f369e=0x1){let _0x32337a;for(const _0x404c8b of this['_itemLabelsCallbacks'])if(_0x404c8b['matchingCallback'](_0x2529e7)){_0x32337a=_0x404c8b['label'];break;}return _0x32337a||(_0x32337a=this['_itemLabels']['get'](_0x2529e7['name'])),_0x32337a?_0x32337a(_0x5f369e):0x1!==_0x5f369e?_0x5f369e+'\x20'+_0x2529e7['name']+'s':''+_0x2529e7['name'];}['_addDescriptionItems'](_0x39c650,_0x2f3b86){const _0x19aff0=_0x2f3b86['getFirstRange']()['getWalker'](),_0x3aaa62='insertion'==_0x2f3b86['type']?'add':'remove';for(const _0x4b5e0d of _0x19aff0){const _0x6ee7f4=_0x4b5e0d['item'],_0x4045e1=_0x39c650[_0x39c650['length']-0x1];if(_0x6ee7f4['is']('$textProxy'))_0x4045e1&&_0x4045e1['type']['indexOf']('Container')>-0x1&&_0x39c650['pop'](),_0x4045e1&&'text'==_0x4045e1['type']?_0x4045e1[_0x3aaa62]+=_0x6ee7f4['data']:_0x39c650['push']({'type':'text','add':'add'==_0x3aaa62?_0x6ee7f4['data']:'','remove':'remove'==_0x3aaa62?_0x6ee7f4['data']:''});else{if(this['_schema']['isObject'](_0x6ee7f4)){const _0x11bae1=_0x6ee7f4;if(_0x4045e1&&_0x4045e1['type']['indexOf']('Container')>-0x1&&_0x39c650['pop'](),'elementEnd'==_0x4b5e0d['type'])continue;_0x4045e1&&_0x4045e1['type']==_0x3aaa62+'Object'&&_0x4045e1['element']['name']==_0x11bae1['name']?_0x4045e1['quantity']++:_0x39c650['push']({'type':_0x3aaa62+'Object','element':_0x11bae1,'quantity':0x1}),_0x19aff0['skip'](_0x185d6a=>!('elementEnd'==_0x185d6a['type']&&_0x185d6a['item']==_0x6ee7f4));}else{if(this['_schema']['checkChild'](_0x6ee7f4,'$text')||_0x6ee7f4['is']('element','softBreak')){const _0x5bd1cf=_0x6ee7f4;if('add'==_0x3aaa62&&'elementStart'==_0x4b5e0d['type']||'remove'==_0x3aaa62&&'elementEnd'==_0x4b5e0d['type'])continue;if(_0x4045e1&&-0x1==_0x4045e1['type']['indexOf']('Container')){'text'==_0x4045e1['type']&&(_0x4045e1[_0x3aaa62]+='\x0a');continue;}let _0x5b54f3;if(_0x5b54f3='add'==_0x3aaa62?_0x5bd1cf['nextSibling']&&!this['_schema']['isObject'](_0x5bd1cf['nextSibling'])?_0x5bd1cf['nextSibling']:null:_0x5bd1cf['previousSibling']&&!this['_schema']['isObject'](_0x5bd1cf['previousSibling'])?_0x5bd1cf['previousSibling']:null,_0x5bd1cf['isEmpty']||_0x5b54f3&&_0x5b54f3['isEmpty']){const _0x474cd6=_0x5b54f3&&_0x5b54f3['isEmpty']?_0x5b54f3:_0x5bd1cf;_0x4045e1&&_0x4045e1['type']==_0x3aaa62+'EmptyContainer'&&_0x4045e1['element']['name']==_0x474cd6['name']?_0x4045e1['quantity']++:_0x39c650['push']({'type':_0x3aaa62+'EmptyContainer','element':_0x474cd6,'quantity':0x1});}else _0x39c650['push']({'type':_0x3aaa62+'Container','element':_0x5bd1cf});}}}}}['_resolveDescriptionItems'](_0x3eb8be){const _0xfe9055=this['_locale'],_0x5506cf=[],_0x17fbd2=[],_0xf85043=[];for(const _0xb394ce of _0x3eb8be)switch(_0xb394ce['type']){case'text':if(_0xb394ce['add']=_0xb394ce['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb394ce['remove']=_0xb394ce['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb394ce['add']&&''!=_0xb394ce['remove']){_0x5506cf['push']({'type':'replace','content':o(_0xfe9055,'REPLACE_TEXT',['\x22'+_0xb394ce['remove']+'\x22','\x22'+_0xb394ce['add']+'\x22'])});continue;}if(null!=_0xb394ce['add']['match'](/^ +$/)){_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Insert:*\x20%0',o(_0xfe9055,'ELEMENT_SPACE',_0xb394ce['add']['length']))});continue;}if(null!=_0xb394ce['remove']['match'](/^ +$/)){_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Remove:*\x20%0',o(_0xfe9055,'ELEMENT_SPACE',_0xb394ce['remove']['length']))});continue;}if(''!=_0xb394ce['add']){_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Insert:*\x20%0','\x22'+_0xb394ce['add']+'\x22')});continue;}_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Remove:*\x20%0','\x22'+_0xb394ce['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Insert:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Remove:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'addContainer':_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Split:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'removeContainer':_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Merge:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'addFormat':_0x17fbd2['push'](_0xb394ce['key']);continue;case'removeFormat':_0xf85043['push'](_0xb394ce['key']);continue;default:_0x5506cf['push'](_0xb394ce);}if(_0x17fbd2['length']){const _0x3df20a=_0x17fbd2['map'](_0x28bb8d=>this['_attributeLabels']['has'](_0x28bb8d)?this['_attributeLabels']['get'](_0x28bb8d):_0x28bb8d)['join'](',\x20');_0x5506cf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3df20a)});}if(_0xf85043['length']){const _0x1a7397=_0xf85043['map'](_0x39b080=>this['_attributeLabels']['has'](_0x39b080)?this['_attributeLabels']['get'](_0x39b080):_0x39b080)['join'](',\x20');_0x5506cf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1a7397)});}return _0x5506cf;}['_handleCustomCallbackDescription'](_0x4f45cc){for(const _0x35ffb3 of this['_customCallbacks']){const _0x1123c9=_0x35ffb3(_0x4f45cc);if(_0x1123c9&&'type'in _0x1123c9)return _0x1123c9;}}['_handleAttributeSuggestionDescription'](_0x8ee047,_0x56d6e8){const _0x4ceba7=_0x56d6e8['data'],_0x55a1f7=void 0x0===_0x4ceba7['newValue']?'removeFormat':'addFormat';_0x8ee047['push']({'type':_0x55a1f7,'key':_0x4ceba7['key']});}['_handleRenameSuggestionDescription'](_0x1e1ae6,_0x2e3d0a){_0x1e1ae6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e3d0a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f7d8e,_0x4647f4,_0x3ec721){if(this['_addDescriptionItems'](_0x4f7d8e,_0x4647f4),_0x3ec721&&_0x3ec721['getFirstRange']()&&!_0x4647f4['getFirstRange']()['end']['isEqual'](_0x3ec721['getFirstRange']()['start'])){const _0x49a9fa=_0x4f7d8e[_0x4f7d8e['length']-0x1],_0x31a526='insertion'==_0x4647f4['type']?'add':'remove';_0x49a9fa&&'text'==_0x49a9fa['type']&&(_0x49a9fa[_0x31a526]+='\x0a');}}}class V extends _0x4db285{['afterInit'](){const _0x532b3b=this['editor'],_0x42cc89=_0x532b3b['plugins']['get']('TrackChangesEditing');_0x532b3b['commands']['get']('showAIAssistant')&&_0x42cc89['enableCommand']('showAIAssistant');}}class U extends _0x4db285{['afterInit'](){const _0x565b5f=this['editor'],_0x38379f=_0x565b5f['locale'];if(!_0x565b5f['plugins']['has']('AlignmentEditing'))return;const _0x1648c3=_0x565b5f['plugins']['get']('TrackChangesEditing');_0x1648c3['enableDefaultAttributesIntegration']('alignment'),_0x1648c3['registerBlockAttribute']('alignment'),_0x1648c3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x38379f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d3dd=this['editor'],_0x2681b1=_0x32d3dd['locale'];_0x32d3dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45aa35=>{if('formatBlock'!=_0x45aa35['type'])return;const {data:_0x4145af}=_0x45aa35;if(_0x4145af&&'alignment'==_0x4145af['commandName']){const _0x42da8a=_0x4145af['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2681b1,'*Format:*\x20%0',function(_0x119702){switch(_0x119702){case'left':return o(_0x2681b1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2681b1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2681b1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2681b1,'FORMAT_JUSTIFY_TEXT');}}(_0x42da8a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4db285{['afterInit'](){const _0xb5ec4d=this['editor'],_0x51088a=_0xb5ec4d['plugins']['get']('TrackChangesEditing'),_0x4cf2df=_0xb5ec4d['locale'];for(const _0x2a920e of ti){if(!_0xb5ec4d['plugins']['has'](_0x2a920e))continue;const _0x4ec2bd=_0x2a920e['slice'](0x0,-0x7)['toLowerCase'](),_0x3e7eac='FORMAT_'+_0x4ec2bd['toUpperCase']();_0x51088a['enableDefaultAttributesIntegration'](_0x4ec2bd),_0x51088a['registerInlineAttribute'](_0x4ec2bd),_0x51088a['descriptionFactory']['registerAttributeLabel'](_0x4ec2bd,o(_0x4cf2df,_0x3e7eac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a87bc=this['editor'],_0x528a87=_0x3a87bc['locale'],_0x10dec5=_0x3a87bc['plugins']['get']('TrackChangesEditing');function _0x47a520(_0x13e9a1,_0x37fe13){_0x10dec5['descriptionFactory']['registerDescriptionCallback'](_0xa5f1ed=>{if('formatInline'!=_0xa5f1ed['type'])return;const {data:_0x261f40}=_0xa5f1ed;return _0x261f40&&_0x261f40['commandName']===_0x13e9a1?_0x261f40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x528a87,'*Format:*\x20%0',_0x37fe13)}:{'type':'format','content':o(_0x528a87,'*Remove\x20format:*\x20%0',_0x37fe13)}:void 0x0;});}_0x47a520('bold',o(_0x528a87,'FORMAT_BOLD')),_0x47a520('italic',o(_0x528a87,'FORMAT_ITALIC')),_0x47a520('underline',o(_0x528a87,'FORMAT_UNDERLINE')),_0x47a520('code',o(_0x528a87,'FORMAT_CODE')),_0x47a520('strikethrough',o(_0x528a87,'FORMAT_STRIKETHROUGH')),_0x47a520('subscript',o(_0x528a87,'FORMAT_SUBSCRIPT')),_0x47a520('superscript',o(_0x528a87,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4db285{['afterInit'](){const _0x4bf6fd=this['editor'],_0x1aad30=_0x4bf6fd['locale'];if(!_0x4bf6fd['plugins']['has']('BlockQuoteEditing'))return;const _0x1b4d9b=_0x4bf6fd['plugins']['get']('TrackChangesEditing'),_0x36a68e=this['editor']['commands']['get']('blockQuote');_0x1b4d9b['enableCommand']('blockQuote',(_0x3c288d,_0x269fd7={})=>{const _0x381e92=this['editor']['model']['document']['selection'],_0xf2d1=_0x269fd7&&void 0x0!==_0x269fd7['forceValue']?_0x269fd7['forceValue']:!_0x36a68e['value'];let _0x53aacb=[];if(_0xf2d1){const _0x3bb7cb=Array['from'](_0x381e92['getSelectedBlocks']())['filter'](_0x25ef09=>oo(_0x25ef09)||function(_0x5a981b,_0x24fdf1){const _0x2c630d=_0x24fdf1['checkChild'](_0x5a981b['parent'],'blockQuote'),_0x2c6f0a=_0x24fdf1['checkChild'](['$root','blockQuote'],_0x5a981b);return _0x2c630d&&_0x2c6f0a;}(_0x25ef09,this['editor']['model']['schema']));_0x53aacb=to(_0x3bb7cb,_0x4bf6fd['model']);}else{const _0x26b966=Array['from'](_0x381e92['getSelectedBlocks']())['filter'](_0x3cf345=>oo(_0x3cf345));_0x53aacb=to(_0x26b966,_0x4bf6fd['model']);}_0x4bf6fd['model']['change'](()=>{for(const _0x13393f of _0x53aacb)_0x1b4d9b['markBlockFormat'](_0x13393f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xf2d1}]});});}),_0x1b4d9b['descriptionFactory']['registerDescriptionCallback'](_0x41f6e6=>{const {data:_0x5a4d9a}=_0x41f6e6;if(_0x5a4d9a&&'blockQuote'==_0x5a4d9a['commandName']){const _0x1e0893=o(_0x1aad30,'ELEMENT_BLOCK_QUOTE');return _0x5a4d9a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1aad30,'*Set\x20format:*\x20%0',_0x1e0893)}:{'type':'format','content':o(_0x1aad30,'*Remove\x20format:*\x20%0',_0x1e0893)};}});}}function oo(_0x214678){return'blockQuote'==_0x214678['parent']['name'];}class L extends _0x4db285{['afterInit'](){const _0x3e04e4=this['editor'];_0x3e04e4['plugins']['has']('CaseChange')&&(_0x3e04e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3e04e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3e04e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4db285{['afterInit'](){const _0x59bd0d=this['editor'];_0x59bd0d['commands']['get']('ckbox')&&_0x59bd0d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4db285{['afterInit'](){const _0x41bf1e=this['editor'];if(!_0x41bf1e['plugins']['has']('CodeBlock'))return;const _0xd2abb9=_0x41bf1e['plugins']['get']('TrackChangesEditing'),_0x55b404=_0x41bf1e['locale'],_0x182b7a=_0x41bf1e['config']['get']('codeBlock')['languages'],_0x44852d=_0x41bf1e['commands']['get']('codeBlock');_0xd2abb9['enableCommand']('indentCodeBlock'),_0xd2abb9['enableCommand']('outdentCodeBlock'),_0xd2abb9['enableCommand']('codeBlock',(_0x32b5dc,_0x544e15={})=>{const _0x5827c6=_0x41bf1e['model'],_0x3d93d7=_0x41bf1e['model']['document']['selection'],_0x366ac6=_0x544e15&&void 0x0!==_0x544e15['forceValue']?_0x544e15['forceValue']:!_0x44852d['value'];let _0xeb0b4;_0x544e15['language']||(_0x544e15['language']=_0x182b7a[0x0]['language']),_0xeb0b4=_0x366ac6?Array['from'](_0x3d93d7['getSelectedBlocks']())['filter'](_0x2ae556=>eo(_0x2ae556)||function(_0x183b4a,_0x11e84c){if(_0x183b4a['is']('rootElement')||_0x11e84c['isLimit'](_0x183b4a))return!0x1;return _0x11e84c['checkChild'](_0x183b4a['parent'],'codeBlock');}(_0x2ae556,_0x5827c6['schema'])):Array['from'](_0x3d93d7['getSelectedBlocks']())['filter'](_0x1c2d30=>eo(_0x1c2d30));const _0x55cf35=to(_0xeb0b4,_0x5827c6);_0x5827c6['change'](()=>{for(const _0x43e266 of _0x55cf35)_0xd2abb9['markBlockFormat'](_0x43e266,{'commandName':'codeBlock','commandParams':[{..._0x544e15,'forceValue':_0x366ac6}],'formatGroupId':'blockName'});});}),(_0xd2abb9['descriptionFactory']['registerElementLabel']('codeBlock',_0x51116f=>o(_0x55b404,'ELEMENT_CODE_BLOCK',_0x51116f)),_0xd2abb9['descriptionFactory']['registerDescriptionCallback'](_0x1e5156=>{if('formatBlock'!=_0x1e5156['type'])return;const _0x2bfb02=_0x55b404['t'],{data:_0x49dde7}=_0x1e5156;if(!_0x49dde7||'codeBlock'!=_0x49dde7['commandName'])return;const _0x531ac3=_0x49dde7['commandParams'][0x0]['language'],_0x5142cb=_0x2bfb02(_0x182b7a['find'](_0x5605f1=>_0x5605f1['language']===_0x531ac3)['label'])['toLowerCase']();return _0x49dde7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55b404,'*Set\x20format:*\x20%0',o(_0x55b404,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5142cb+')')}:{'type':'format','content':o(_0x55b404,'*Remove\x20format:*\x20%0',o(_0x55b404,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4cf5b9){return'codeBlock'==_0x4cf5b9['name'];}class q extends _0x4db285{['afterInit'](){const _0x4f32f8=this['editor'];if(!_0x4f32f8['plugins']['has']('CommentsEditing'))return;_0x4f32f8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xa77069,_0x4d82fc,_0xd3192a){const _0x419364=[];for(const _0x434e3e of _0x4d82fc['getItems']())_0x434e3e['hasAttribute'](_0xa77069)&&_0x419364['push'](_0xd3192a['createRangeOn'](_0x434e3e));return _0x419364;}function _e(_0x510339,_0x2de205,{showActiveMarker:_0x41c39b=!0x0}={}){const _0x99d3cc=_0x510339['plugins']['get']('TrackChangesEditing');return(_0x19ba38,_0x5a0558,_0x495810)=>{if(!_0x495810['consumable']['test'](_0x5a0558['markerRange'],_0x19ba38['name']))return;const _0x57e84b=_0x5a0558['markerRange']['getWalker'](),_0x565187=_0x5a0558['markerRange']['start'],_0x35cbcb=_0x510339['model']['schema'];let _0x1f4eac=null,_0x53cee8=null,_0x4c6eca=!0x1,_0x434003=!0x1;for(const _0x430575 of _0x57e84b){const _0x28f05d=_0x430575['item'];_0x4c6eca=_0x4c6eca||_0x35cbcb['isContent'](_0x28f05d);const _0x404a4a=_0x495810['mapper']['toViewElement'](_0x28f05d);if(_0x404a4a&&_0x404a4a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x430575['type']&&(_0x35cbcb['isBlock'](_0x28f05d)&&!_0x35cbcb['isLimit'](_0x28f05d)&&(_0x28f05d['nextSibling']||_0x565187['isAtEnd']?_0x1f4eac&&_0x1f4eac['parent']==_0x28f05d||(_0x1f4eac=_0x28f05d,_0x2a760e(_0x430575['previousPosition']),_0x434003=!0x0):_0x53cee8=_0x53cee8||_0x430575['previousPosition']));}function _0x2a760e(_0x49987b){const {authorId:_0x55547c}=_0x99d3cc['_splitMarkerName'](_0x5a0558['markerName']),_0x314e30=_0x495810['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2de205,'data-author-id':_0x55547c}),_0x54e59d=_0x495810['mapper']['toViewPosition'](_0x49987b);_0x41c39b&&_0x99d3cc['activeMarkers']['includes'](_0x5a0558['markerName'])&&_0x495810['writer']['addClass']('ck-suggestion-marker--active',_0x314e30),_0x495810['writer']['insert'](_0x54e59d,_0x314e30),_0x495810['mapper']['bindElementToMarker'](_0x314e30,_0x5a0558['markerName']);}_0x4c6eca||_0x434003||!_0x53cee8||_0x2a760e(_0x53cee8);};}class z extends _0x4db285{static get['requires'](){return[_0x221a60];}['init'](){const _0x42b451=this['editor'],_0x1f865c=_0x42b451['plugins']['get']('TrackChangesEditing');_0x1f865c['enableCommand']('delete');const _0x3dbf1f=_0x42b451['commands']['get']('deleteForward');_0x1f865c['enableCommand']('deleteForward',(_0x34062c,_0x340673={})=>{const _0x254c28=_0x42b451['model']['createSelection'](_0x42b451['model']['document']['selection']);_0x254c28['isCollapsed']&&_0x42b451['model']['modifySelection'](_0x254c28,{'direction':'forward','unit':_0x340673['unit']});const _0xf7f40b=_0x254c28['getFirstRange'](),_0x5f0ebf=_0x52a99c['fromRange'](_0xf7f40b);let _0x5049b7;_0x34062c(_0x340673),_0x5049b7='$graveyard'==_0x5f0ebf['root']['rootName']?_0x42b451['model']['createRange'](_0xf7f40b['start']):_0x42b451['model']['createRange'](_0x5f0ebf['start'],_0x5f0ebf['end']),_0x5f0ebf['detach'](),_0x42b451['model']['enqueueChange'](_0x3dbf1f['buffer']['batch'],_0x2178d7=>{_0x3dbf1f['buffer']['lock'](),_0x2178d7['setSelection'](_0x2178d7['createRange'](_0x5049b7['end'])),_0x3dbf1f['buffer']['unlock']();});}),_0x42b451['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x42b451,'merge'),{'priority':'high'}),_0x42b451['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1f4184,_0x447782,_0x39734b)=>{_0x39734b['options']['showSuggestionHighlights']&&_e(_0x42b451,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1f4184,_0x447782,_0x39734b);},{'priority':'high'}),_0x42b451['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3ca8a5,_0x23f4bb,_0x240a94)=>{const _0x5a6693=_0x240a94['mapper']['markerNameToElements'](_0x23f4bb['markerName']);if(_0x5a6693){for(const _0x4e1946 of _0x5a6693)_0x4e1946['is']('uiElement')&&(_0x240a94['mapper']['unbindElementFromMarkerName'](_0x4e1946,_0x23f4bb['markerName']),_0x240a94['writer']['remove'](_0x4e1946));}},{'priority':'high'});}}class K extends _0x4db285{['afterInit'](){const _0x34f99a=this['editor'];if(!_0x34f99a['plugins']['has']('ListEditing'))return;const _0xe28a58=_0x34f99a['locale'],_0x1ff0e0=_0x34f99a['plugins']['get']('TrackChangesEditing'),_0x4e2038=_0x34f99a['plugins']['has']('TodoListEditing'),_0x4b066f=!!_0x34f99a['config']['get']('list.multiBlock');function _0x1d6232(_0x24713d){return{'type':'format','content':''+o(_0xe28a58,'*Set\x20format:*\x20%0',_0x24713d)};}function _0x4f6fb4(_0x2194f6){return{'type':'format','content':''+o(_0xe28a58,'*Remove\x20format:*\x20%0',_0x2194f6)};}_0x1ff0e0['enableDefaultAttributesIntegration']('numberedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('bulletedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('customNumberedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('customBulletedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('indentList'),_0x1ff0e0['enableDefaultAttributesIntegration']('outdentList'),_0x1ff0e0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1ff0e0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1ff0e0['registerBlockAttribute']('listItemId'),_0x1ff0e0['registerBlockAttribute']('listType'),_0x1ff0e0['registerBlockAttribute']('listIndent'),_0x4b066f&&(_0x1ff0e0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1ff0e0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4e2038&&(_0x1ff0e0['enableDefaultAttributesIntegration']('todoList'),_0x1ff0e0['enableDefaultAttributesIntegration']('checkTodoList'),_0x1ff0e0['registerBlockAttribute']('todoListChecked'),_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x57dd93=>{const {data:_0x5b48e3}=_0x57dd93;if(_0x5b48e3&&'todoListChecked'==_0x5b48e3['key'])return{'type':'format','content':_0x5b48e3['newValue']?o(_0xe28a58,'*Check\x20item*'):o(_0xe28a58,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x238596=>{if(_0x238596['batch']['isUndo'])return!0x1;let _0x27250e=!0x1;const _0x15a2a9=_0x1ff0e0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5df760=>'todoListChecked'===_0x1ff0e0['_getAttributeKey'](_0x5df760));for(const _0xf31fd8 of _0x15a2a9){'todo'!=_0xf31fd8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1ff0e0['_findSuggestions'](_0xf31fd8['getFirstRange'](),'attribute')['find'](_0x5bd47a=>'listType'===_0x1ff0e0['_getAttributeKey'](_0x5bd47a['suggestion']))||(_0x238596['removeMarker'](_0xf31fd8['getFirstMarker']()),_0x27250e=!0x0));}return _0x27250e;})),_0x1ff0e0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xe28a58,'FORMAT_INDENT'));const _0x557d01={'type':'format','content':''};_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x13bde1=>{const {data:_0x13fe97}=_0x13bde1;if(!_0x13fe97||'listType'!=_0x13fe97['key'])return;let _0x50bbf0=_0x13bde1['head'];for(;_0x50bbf0;){if(_0x50bbf0['data']&&(('listStyle'==_0x50bbf0['data']['key']||'listMarkerStyle'==_0x50bbf0['data']['key'])&&(_0x50bbf0['data']['newValue']&&'default'!=_0x50bbf0['data']['newValue']||'default'!=_0x50bbf0['data']['oldValue']&&!_0x13fe97['newValue'])||!_0x4b066f&&_0x50bbf0['data']['key']==m))return _0x557d01;_0x50bbf0=_0x50bbf0['next'];}if(null==_0x13fe97['newValue'])switch(_0x13fe97['oldValue']){case'bulleted':return _0x4f6fb4(o(_0xe28a58,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f6fb4(o(_0xe28a58,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f6fb4(o(_0xe28a58,'ELEMENT_TODO_LIST'));}switch(_0x13fe97['newValue']){case'bulleted':return _0x1d6232(o(_0xe28a58,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6232(o(_0xe28a58,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6232(o(_0xe28a58,'ELEMENT_TODO_LIST'));}}),_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x5a35d6=>{const {data:_0x1201a2}=_0x5a35d6;if(_0x1201a2&&'listIndent'==_0x1201a2['key'])return null==_0x1201a2['newValue']||null==_0x1201a2['oldValue']&&0x0==_0x1201a2['newValue']?_0x557d01:void 0x0;}),_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x2511a4=>{if('attribute'!=_0x2511a4['type'])return;const {data:_0x377296}=_0x2511a4;if(!_0x377296||'listItemId'!=_0x377296['key'])return;const _0x1cea1d=Ee(_0x2511a4);return'newValue'==_0x1cea1d?{'type':'format','content':o(_0xe28a58,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1cea1d?{'type':'format','content':o(_0xe28a58,'*Split:*\x20list\x20item')}:_0x557d01;}),_0x34f99a['model']['document']['registerPostFixer'](_0x4f52a5=>this['listItemIdFixer'](_0x4f52a5)),_0x34f99a['model']['document']['registerPostFixer'](_0x420adf=>this['noTrackChangesFixer'](_0x420adf)),_0x34f99a['model']['document']['on']('change:data',(_0x44851b,_0x210bd1)=>{if(_0x210bd1['isUndo']||!_0x210bd1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4dce69){if(_0x4dce69['batch']['isUndo']||!_0x4dce69['batch']['isLocal'])return!0x1;let _0x25f3a9=!0x1;const _0x41d63c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f7a4c=>_0x2f7a4c['data']&&'listItemId'==_0x2f7a4c['data']['key'])['filter'](_0x374b9b=>_0x374b9b['data']['newValue']&&_0x374b9b['data']['oldValue']);for(const _0x1cd8fb of _0x41d63c)Ee(_0x1cd8fb)||(_0x4dce69['removeMarker'](_0x1cd8fb['getFirstMarker']()),_0x25f3a9=!0x0);return _0x25f3a9;}['noTrackChangesFixer'](_0x42dc7f){if(_0x42dc7f['batch']['isUndo']||!_0x42dc7f['batch']['isLocal'])return!0x1;const _0x4796fb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4796fb['trackChangesCommand']['value'])return!0x1;let _0x1a2811=!0x1;const _0x2873af=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53a66d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2ba62e=>'attribute'==_0x2ba62e['type'])['filter'](_0xc010cf=>_0x2873af['includes'](_0xc010cf['attributeKey']));if(0x0==_0x53a66d['length'])return _0x1a2811;for(const _0x5852c0 of _0x53a66d){const _0x2c5d31=_0x4796fb['_findSuggestions'](_0x5852c0['range'],'attribute')['filter'](_0x42eaf0=>!_0x42eaf0['meta']['isNextTo'])['map'](_0x31f367=>_0x31f367['suggestion'])['filter'](_0xf95e59=>{const _0x49bb2b=_0x4796fb['_getAttributeKey'](_0xf95e59);return _0x2873af['includes'](_0x49bb2b);});if(_0x2c5d31['length']){for(const _0x108db7 of _0x2c5d31)_0x42dc7f['removeMarker'](_0x108db7['getFirstMarker']());_0x1a2811=!0x0;}}return _0x1a2811;}['assureChains'](){const _0x7d7d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fa313=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4bd277;const _0x51a0f7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4dfa23=>{if(_0x4dfa23['data']['oldRange']||!_0x4dfa23['data']['newRange'])return null;if(!_0x4dfa23['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x41f751}=_0x7d7d6['_splitMarkerName'](_0x4dfa23['name']);if(!_0x7d7d6['hasSuggestion'](_0x41f751))return null;const _0x4e3fef=_0x7d7d6['getSuggestion'](_0x41f751);return _0x3fa313['includes'](_0x4e3fef['data']['key']);})['map'](_0xf02bc0=>{const {id:_0x5ca217}=_0x7d7d6['_splitMarkerName'](_0xf02bc0['name']),_0x308d84=_0x7d7d6['getSuggestion'](_0x5ca217);return _0x4bd277=_0x308d84['attributes']['groupId'],_0x308d84['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x51a0f7['size'])return;const _0x1cac62=_0x7d7d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b495=>'attribute'==_0x33b495['type']&&_0x33b495['data']&&_0x3fa313['includes'](_0x33b495['data']['key'])&&_0x33b495['attributes']['groupId']!=_0x4bd277)['map'](_0x158532=>({'listItem':_0x158532['getFirstRange']()['start']['nodeAfter'],'groupId':_0x158532['attributes']['groupId']})),_0x51a54d=new Set();for(const {groupId:_0x3236d0,listItem:_0x41508f}of _0x1cac62)_0x51a0f7['has'](_0x41508f)&&_0x51a54d['add'](_0x3236d0);for(const _0x3d2e7b of _0x7d7d6['getSuggestions']())_0x51a54d['has'](_0x3d2e7b['attributes']['groupId'])&&_0x3d2e7b['setAttribute']('groupId',_0x4bd277);}['_supportLegacySuggestions'](){const _0x46afcd=this['editor'],_0x125fd4=_0x46afcd['locale'],_0x49b89a=_0x46afcd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49b89a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x20e902,_0x40f1f2){const _0x5ad7dc=[];for(let _0x20082d of _0x20e902)_0x20082d['start']['nodeAfter']===_0x20082d['end']['parent']&&(_0x20082d=_0x46afcd['model']['createRange'](_0x46afcd['model']['createPositionAt'](_0x20082d['start']['nodeAfter'],0x0))),_0x5ad7dc['push'](_0x20082d);_0x46afcd['model']['change'](_0x18a2ec=>{const _0x5236c2=_0x46afcd['model']['document']['selection'],_0x13ad4b=Array['from'](_0x5236c2['getRanges']())['map'](_0xf5e319=>_0x52a99c['fromRange'](_0xf5e319));_0x18a2ec['setSelection'](_0x5ad7dc),_0x46afcd['commands']['get'](_0x40f1f2['commandName'])['refresh'](),_0x40f1f2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46afcd['execute'](_0x40f1f2['commandName'],..._0x40f1f2['commandParams']),_0x18a2ec['setSelection'](_0x13ad4b);for(const _0x107009 of _0x13ad4b)_0x107009['detach']();});}),_0x49b89a['descriptionFactory']['registerElementLabel'](function(_0x583752){const _0x20e3d9=!_0x46afcd['model']['schema']['isObject'](_0x583752),_0x236e39=_0x583752['previousSibling'],_0x31da26=_0x583752['nextSibling'],_0x439e6e=_0x583752['getAttribute']('listItemId'),_0x30f849=!_0x236e39||_0x236e39['getAttribute']('listItemId')!==_0x439e6e,_0x4b4247=!_0x31da26||_0x31da26['getAttribute']('listItemId')!==_0x439e6e;return _0x20e3d9&&Boolean(_0x439e6e)&&_0x30f849&&_0x4b4247;},_0xbb087e=>o(_0x125fd4,'ELEMENT_LIST_ITEM',_0xbb087e));}['_registerLegacyDescription'](){const _0x538241=this['editor'],_0x471ede=_0x538241['locale'];function _0x25402c(_0xafad6e){const _0x571940=_0x538241['commands']['get']('bulletedList')['value'],_0x50369c=_0x538241['commands']['get']('numberedList')['value'];return'numberedList'===_0xafad6e?_0x571940:_0x50369c;}_0x538241['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d27fb){if('formatBlock'!=_0x5d27fb['type'])return;const {data:_0xe21d72}=_0x5d27fb;if(!_0xe21d72)return;let _0x3591ac,_0x4c088e,_0x44e0e3,_0x159a8c;switch(_0xe21d72['commandName']){case'bulletedList':_0x44e0e3=_0xe21d72['commandParams'][0x0]['forceValue'],_0x159a8c=_0x25402c(_0xe21d72['commandName']),_0x3591ac=_0x44e0e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x159a8c&&_0x538241['config']['get']('list.multiBlock')||(_0x3591ac='*Change\x20to:*\x20%0'),_0x4c088e={'type':'format','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x44e0e3=_0xe21d72['commandParams'][0x0]['forceValue'],_0x159a8c=_0x25402c(_0xe21d72['commandName']),_0x3591ac=_0x44e0e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x159a8c&&_0x538241['config']['get']('list.multiBlock')||(_0x3591ac='*Change\x20to:*\x20%0'),_0x4c088e={'type':'format','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3591ac='*Indent:*\x20%0',_0x4c088e={'type':'format','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3591ac=function(_0x4e25be){const _0x3f8280=_0x4e25be['getFirstRange']();let _0x316538=_0x3f8280['start']['nodeAfter'];for(;_0x316538&&_0x3f8280['containsItem'](_0x316538);){if(_0x316538['getAttribute']('listIndent')>0x0)return!0x1;_0x316538=_0x316538['nextSibling'];}return!0x0;}(_0x5d27fb)?o(_0x471ede,'*Format:*\x20remove\x20from\x20%0',o(_0x471ede,function(_0x2a1d00){return'ELEMENT_'+_0x2a1d00['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d27fb))):o(_0x471ede,'*Outdent:*\x20%0',o(_0x471ede,'ELEMENT_LIST_ITEM')),_0x4c088e={'type':'format','content':_0x3591ac};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe21d72['multipleBlocks']&&(_0x3591ac='*Merge:*\x20%0',_0x4c088e={'type':'deletion','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_LIST_ITEM'))});}return _0x4c088e;});}}function Ee(_0x282a53){let _0x5c6874=_0x282a53['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5c6874;){const _0x153d20=_0x5c6874['getAttribute']('listItemId');if(!_0x153d20)return!0x1;if(_0x153d20==_0x282a53['data']['newValue'])return'newValue';if(_0x153d20==_0x282a53['data']['oldValue'])return'oldValue';_0x5c6874=_0x5c6874['previousSibling'];}return!0x1;}class pe extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x238518=this['editor']['config']['get']('list.properties'),_0x243a2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x238518['styles']&&(_0x243a2b['enableDefaultAttributesIntegration']('listStyle'),_0x243a2b['registerBlockAttribute']('listStyle')),_0x238518['reversed']&&(_0x243a2b['enableDefaultAttributesIntegration']('listReversed'),_0x243a2b['registerBlockAttribute']('listReversed')),_0x238518['startIndex']&&(_0x243a2b['enableDefaultAttributesIntegration']('listStart'),_0x243a2b['registerBlockAttribute']('listStart'));const _0x2a6675={'type':'format','content':''};_0x243a2b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c4363=this['editor']['locale'];_0x243a2b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c4363,'FORMAT_LIST_REVERSED')),_0x243a2b['descriptionFactory']['registerDescriptionCallback'](_0x3f13dc=>{const {data:_0x46d817}=_0x3f13dc;if(_0x46d817&&'listReversed'==_0x46d817['key'])return null==_0x46d817['newValue']||0x0==_0x46d817['newValue']&&null==_0x46d817['oldValue']?_0x2a6675:void 0x0;}),_0x243a2b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c4363,'FORMAT_LIST_START')),_0x243a2b['descriptionFactory']['registerDescriptionCallback'](_0x1653f8=>{const {data:_0x359b53}=_0x1653f8;if(_0x359b53&&'listStart'==_0x359b53['key'])return null==_0x359b53['newValue']||0x1==_0x359b53['newValue']&&null==_0x359b53['oldValue']?_0x2a6675:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e928f=>{if(_0x2e928f['batch']['isUndo'])return!0x1;let _0x11d895=!0x1;const _0x2bdd3d=_0x243a2b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e8161=>{const _0x547294=_0x243a2b['_getAttributeKey'](_0x2e8161);return'listStart'==_0x547294||'listReversed'==_0x547294;});for(const _0x368590 of _0x2bdd3d){const _0x557e36=_0x368590['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x557e36||'customNumbered'==_0x557e36)continue;_0x243a2b['_findSuggestions'](_0x368590['getFirstRange'](),'attribute')['find'](_0x153094=>'listType'==_0x243a2b['_getAttributeKey'](_0x153094['suggestion']))||(_0x2e928f['removeMarker'](_0x368590['getFirstMarker']()),_0x11d895=!0x0);}return _0x11d895;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3d7bac){const _0x2bfa03=this['editor']['locale'],{data:_0x541762}=_0x3d7bac,_0x104468={'type':'format','content':''};if(!_0x541762||'listStyle'!=_0x541762['key'])return;if(!_0x541762['oldValue'])return'default'==_0x541762['newValue']?_0x104468:{'type':'format','content':''+o(_0x2bfa03,'*Set\x20format:*\x20%0',o(_0x2bfa03,this['_getTranslationKeyForListStyle'](_0x541762['newValue'])))};if(!_0x541762['newValue']){if('default'==_0x541762['oldValue'])return _0x104468;let _0x11492a=_0x3d7bac['head'];for(;_0x11492a;){if(_0x11492a['data']&&'listType'==_0x11492a['data']['key']&&_0x11492a['data']['newValue'])return _0x104468;_0x11492a=_0x11492a['next'];}return{'type':'format','content':''+o(_0x2bfa03,'*Remove\x20format:*\x20%0',o(_0x2bfa03,this['_getTranslationKeyForListStyle'](_0x541762['oldValue'])))};}if('default'!=_0x541762['newValue'])return{'type':'format','content':''+o(_0x2bfa03,'*Set\x20format:*\x20%0',o(_0x2bfa03,this['_getTranslationKeyForListStyle'](_0x541762['newValue'])))};let _0x3592d3=_0x3d7bac['head'];for(;_0x3592d3;){if(_0x3592d3['data']&&'listType'==_0x3592d3['data']['key']&&_0x3592d3['data']['newValue']&&_0x3592d3['data']['oldValue'])return _0x104468;_0x3592d3=_0x3592d3['next'];}return{'type':'format','content':o(_0x2bfa03,'*Set\x20format:*\x20%0',o(_0x2bfa03,'ELEMENT_'+_0x3d7bac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1fce73=this['editor'],_0x31882d=_0x1fce73['locale'];_0x1fce73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33fabc=>{if('formatBlock'!=_0x33fabc['type'])return;const {data:_0x528851}=_0x33fabc;if(!_0x528851)return;let _0x33dcd0,_0x4e6816;switch(_0x528851['commandName']){case'listStyle':_0x33dcd0='*Change\x20to:*\x20%0',_0x4e6816={'type':'format','content':o(_0x31882d,_0x33dcd0,o(_0x31882d,this['_getTranslationKeyForListStyle'](_0x528851['commandParams'][0x0]['type'])))};break;case'listReversed':_0x33dcd0=_0x528851['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e6816={'type':'format','content':o(_0x31882d,_0x33dcd0)};break;case'listStart':_0x33dcd0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e6816={'type':'format','content':o(_0x31882d,_0x33dcd0,_0x528851['commandParams'][0x0]['startIndex'])};}return _0x4e6816;});}['_getTranslationKeyForListStyle'](_0x28b126){return'ELEMENT_'+function(_0x40255f){if(ye['includes'](_0x40255f))return'bulleted';if(Se['includes'](_0x40255f))return'numbered';return null;}(_0x28b126)['toUpperCase']()+'_LIST_'+_0x28b126['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4db285{static get['requires'](){return[_0x4adfe0];}['init'](){const _0x408221=this['editor'],_0x2d43f9=_0x408221['plugins']['get']('TrackChangesEditing'),_0x1b15e9=_0x408221['commands']['get']('enter');_0x2d43f9['enableCommand']('enter',()=>{_0x408221['model']['change'](_0x55f393=>{const _0x286b1c=_0x408221['model']['document']['selection'],_0x2857fb=_0x286b1c['getFirstPosition'](),_0x2ec919=_0x52a99c['fromRange'](_0x286b1c['getFirstRange']());if(_0x1b15e9['enterBlock'](_0x55f393)){const _0x1dbd21=_0x408221['model']['createPositionAt'](_0x2857fb['parent']['nextSibling'],0x0),_0x88d720=_0x55f393['createRange'](_0x2857fb,_0x1dbd21);_0x2d43f9['markInsertion'](_0x88d720);}else _0x55f393['setSelection'](_0x55f393['createRange'](_0x2ec919['end']));_0x2ec919['detach'](),_0x1b15e9['fire']('afterExecute',{'writer':_0x55f393});});}),_0x408221['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x408221,'split'),{'priority':'high'}),_0x408221['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27e75f,_0x5a21c7,_0x2f7955)=>{const _0x570bee=_0x2f7955['mapper']['markerNameToElements'](_0x5a21c7['markerName']);if(_0x570bee){for(const _0x55f505 of _0x570bee)_0x55f505['hasClass']('ck-suggestion-marker-split')&&(_0x2f7955['mapper']['unbindElementFromMarkerName'](_0x55f505,_0x5a21c7['markerName']),_0x2f7955['writer']['remove'](_0x55f505));}},{'priority':'high'}),_0x408221['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e03ca,_0x58b38b,_0x25d1a2)=>{_0x25d1a2['options']['showSuggestionHighlights']&&_e(_0x408221,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1e03ca,_0x58b38b,_0x25d1a2);},{'priority':'high'});}}class X extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x426271=this['editor']['plugins']['get']('TrackChangesEditing');_0x426271['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x426271['enableCommand']('findNext'),_0x426271['enableCommand']('findPrevious'),_0x426271['enableCommand']('replace'),_0x426271['enableCommand']('replaceAll');}['handleFindCommand'](_0x316fb5,_0x5130eb,_0x5d6748={}){const _0x1557cf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x316fb5(_0x141d81=>{let _0x322e74=('string'==typeof _0x5130eb?_0x1557cf['findByTextCallback'](_0x5130eb,_0x5d6748):_0x5130eb)(_0x141d81);Array['isArray'](_0x322e74)&&(_0x322e74={'results':_0x322e74,'searchText':'string'==typeof _0x5130eb?_0x5130eb:''});const _0xe20181=_0x322e74['results']['filter'](_0xb199e8=>!0x1===this['_isInDeletionRange'](_0xb199e8,_0x141d81['item']));return{..._0x322e74,'results':_0xe20181};},_0x5d6748);}['_isInDeletionRange'](_0x3fc5a1,_0x4f32bf){const _0xd9e8d9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f32bf,_0x3fc5a1['start']),this['editor']['model']['createPositionAt'](_0x4f32bf,_0x3fc5a1['end']));for(const _0x3fecfb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd9e8d9['getIntersection'](_0x3fecfb['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x4db285{['afterInit'](){const _0xd0166b=this['editor']['locale'],_0x371ec2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4395cc,commandName:_0xd2bb14}of ro)this['editor']['plugins']['has'](_0x4395cc)&&(_0x371ec2['enableDefaultAttributesIntegration'](_0xd2bb14),_0x371ec2['registerInlineAttribute'](_0xd2bb14));_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xd0166b,'FORMAT_FONT_SIZE')),_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xd0166b,'FORMAT_FONT_FAMILY')),_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xd0166b,'FORMAT_FONT_COLOR')),_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xd0166b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26b94b=this['editor'],_0x3220d1=_0x26b94b['locale'];_0x26b94b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51c15a=>{const _0x16847f=_0x3220d1['t'];if('formatInline'!=_0x51c15a['type'])return;const {data:_0x2433dd}=_0x51c15a;if(null!=_0x2433dd){if('fontSize'==_0x2433dd['commandName']){const _0x5087bf=_0x2433dd['commandParams'][0x0]['value'];if(_0x5087bf){const _0x20ab40=_0x16847f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x49aee1=>_0x49aee1['model']==_0x5087bf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20size:*\x20%0',_0x20ab40)};}return{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2433dd['commandName']){const _0x20d3f3=_0x2433dd['commandParams'][0x0]['value'];return _0x20d3f3?{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20family:*\x20%0',_0x20d3f3)}:{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2433dd['commandName']){const _0x13ff2d=_0x2433dd['commandParams'][0x0]['value'];if(_0x13ff2d){const _0x47a56f=_0x34f3ec(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1db0e0=>_0x1db0e0['model']==_0x13ff2d);let _0x44044f=_0x13ff2d,_0x37a0d9='';return _0x47a56f&&(_0x44044f=_0x47a56f['label'],_0x37a0d9=_0x16847f(_0x44044f)['toLowerCase']()),{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20color:*\x20%0',_0x37a0d9)['trim'](),'color':{'value':_0x13ff2d,'title':_0x37a0d9||_0x44044f}};}return{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2433dd['commandName']){const _0x372464=_0x2433dd['commandParams'][0x0]['value'];if(_0x372464){const _0x3f00d7=_0x34f3ec(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4612ad=>_0x4612ad['model']==_0x372464);let _0x15bd9a=_0x372464,_0x10087e='';return _0x3f00d7&&(_0x15bd9a=_0x3f00d7['label'],_0x10087e=_0x16847f(_0x15bd9a)['toLowerCase']()),{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20background\x20color:*\x20%0',_0x10087e)['trim'](),'color':{'value':_0x372464,'title':_0x10087e||_0x15bd9a}};}return{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4db285{['afterInit'](){const _0x23e8ae=this['editor'],_0x3207e3=_0x23e8ae['plugins']['get']('TrackChangesEditing'),_0x1b989d=_0x23e8ae['commands']['get']('copyFormat'),_0x4a55bb=_0x23e8ae['commands']['get']('pasteFormat');_0x1b989d&&_0x4a55bb&&(_0x3207e3['enableDefaultAttributesIntegration']('pasteFormat'),_0x3207e3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x32a120=this['editor'],_0x4dedfa=_0x32a120['locale'];_0x32a120['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb01c39=>{if('formatBlock'!=_0xb01c39['type']&&'formatInline'!=_0xb01c39['type'])return;const {data:_0xedf50b}=_0xb01c39;if(_0xedf50b&&'pasteFormat'===_0xedf50b['commandName']){const _0x3acf2d=[],_0x45c314=_0xedf50b['commandParams'][0x0];for(const [_0xac0659,_0x1f6605]of Object['entries'](_0x45c314))_0x3acf2d['push'](so(_0x32a120,_0xac0659,_0x1f6605));return _0x3acf2d['length']?{'type':'format','content':o(_0x4dedfa,'*Set\x20format\x20to:*\x20%0',_0x3acf2d['join'](',\x20'))}:{'type':'format','content':o(_0x4dedfa,'*Remove\x20all\x20formatting*')};}});}}function so(_0x356f1a,_0x147b45,_0x3d940b){const _0x2bfd76=_0x356f1a['locale']['t'],_0x30e1f3=_0x147b45['split'](/(?=[A-Z])/)['join']('\x20'),_0x13d483=_0x2bfd76(_0x30e1f3['charAt'](0x0)['toUpperCase']()+_0x30e1f3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3d940b)return _0x13d483;if('fontColor'===_0x147b45||'fontBackgroundColor'===_0x147b45){const _0x4a8ee8=_0x34f3ec(_0x356f1a['config']['get']('fontColor.colors'))['find'](_0x2393c3=>_0x2393c3['model']==_0x3d940b);return _0x13d483+'\x20('+(_0x4a8ee8?_0x2bfd76(_0x4a8ee8['label'])['toLowerCase']():_0x3d940b)+')';}if('fontSize'===_0x147b45&&isNaN(parseFloat(_0x3d940b))){const _0x39656f=_0x356f1a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x356f1a['config']['get']('fontSize.options'))['find'](_0x3d7523=>_0x3d7523['model']==_0x3d940b);return _0x13d483+'\x20('+(_0x39656f?_0x2bfd76(_0x39656f['title'])['toLowerCase']():_0x3d940b)+')';}return _0x13d483+'\x20('+_0x3d940b+')';}class tt extends _0x4db285{['_headingOptions'];['afterInit'](){const _0x50a88b=this['editor'];if(!_0x50a88b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x50a88b['config']['get']('heading.options');const _0x2f8364=_0x50a88b['locale'],_0x274d2a=_0x50a88b['plugins']['get']('TrackChangesEditing');_0x274d2a['enableDefaultAttributesIntegration']('heading');for(const _0x2c2f1b of this['_headingOptions'])'paragraph'!=_0x2c2f1b['model']&&_0x274d2a['descriptionFactory']['registerElementLabel'](_0x2c2f1b['model'],_0x415118=>{const _0x2a4eea=this['_getHeadingLevel'](_0x2c2f1b['model']);return null!==_0x2a4eea?_0x588047(_0x415118,_0x2a4eea):_0x42535a(_0x415118,_0x2c2f1b['title']);});function _0x588047(_0x2a8c67,_0x4455ff){return o(_0x2f8364,'ELEMENT_HEADING',[_0x2a8c67,_0x4455ff]);}function _0x42535a(_0x438eea,_0x431aa6){return o(_0x2f8364,'ELEMENT_HEADING_CUSTOM',[_0x438eea,_0x431aa6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f6e1b=this['editor'],_0x3fc796=_0x1f6e1b['locale'];function _0x429ee7(_0x1ac3db,_0x33bd75){return o(_0x3fc796,'ELEMENT_HEADING_CUSTOM',[_0x1ac3db,_0x33bd75]);}_0x1f6e1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2985f7=>{if('formatBlock'!=_0x2985f7['type'])return;const {data:_0x25d96a}=_0x2985f7;if(_0x25d96a&&'heading'==_0x25d96a['commandName']){const _0x487f01=_0x25d96a['commandParams'][0x0]['value'],_0x2792c5=this['_getHeadingLevel'](_0x487f01);if(null!==_0x2792c5)return{'type':'format','content':o(_0x3fc796,'*Change\x20to:*\x20%0',(_0x349038=0x1,_0x2ff31e=_0x2792c5,o(_0x3fc796,'ELEMENT_HEADING',[_0x349038,_0x2ff31e])))};const _0x406b2b=this['_headingOptions']['find'](_0x19ba0e=>_0x19ba0e['model']===_0x487f01)['title'];return{'type':'format','content':o(_0x3fc796,'*Change\x20to:*\x20%0',_0x429ee7(0x1,_0x406b2b))};}var _0x349038,_0x2ff31e;});}['_getHeadingLevel'](_0x2a7a1d){const _0xf201e=_0x2a7a1d['match'](/^heading(\d+)/);if(_0xf201e)return _0xf201e[0x1];const _0x101eca=this['_headingOptions']?.['find'](_0x256f48=>_0x256f48['model']==_0x2a7a1d);if(_0x101eca&&_0x101eca['view']){const _0x545df1=_0x101eca['view'],_0x17e11a=(_0x545df1['name']??_0x545df1)['match'](/^h(\d+)/);if(_0x17e11a)return _0x17e11a[0x1];}return null;}}class et extends _0x4db285{['afterInit'](){const _0x496f69=this['editor'];if(!_0x496f69['plugins']['has']('HighlightEditing'))return;const _0x1b7b9e=_0x496f69['plugins']['get']('TrackChangesEditing'),_0x390a42=_0x496f69['locale'];_0x1b7b9e['enableDefaultAttributesIntegration']('highlight'),_0x1b7b9e['registerInlineAttribute']('highlight'),_0x1b7b9e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x390a42,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x423dec=this['editor'],_0x5c545b=_0x423dec['locale'];_0x423dec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15632d=>{if('formatInline'!=_0x15632d['type'])return;const {data:_0xec11c8}=_0x15632d;if(_0xec11c8&&'highlight'==_0xec11c8['commandName']){const _0x293b64=_0x5c545b['t'],_0x314c2f=_0xec11c8['commandParams'][0x0]['value'];if(_0x314c2f){const _0x4b3956=_0x423dec['config']['get']('highlight.options')['find'](_0x2c41bc=>_0x2c41bc['model']==_0x314c2f),_0xfb98fc=_0x293b64(_0x4b3956['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c545b,'*Set\x20highlight:*\x20%0',_0xfb98fc),'color':{'value':_0x4b3956['color'],'title':_0x4b3956['title']}};}return{'type':'format','content':o(_0x5c545b,'*Remove\x20highlight*',o(_0x5c545b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4db285{['afterInit'](){const _0x29f76c=this['editor'];if(!_0x29f76c['plugins']['has']('HorizontalLineEditing'))return;_0x29f76c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1a1ad4=_0x29f76c['plugins']['get']('TrackChangesEditing'),_0xd6251f=_0x29f76c['locale'];_0x1a1ad4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x538582=>o(_0xd6251f,'ELEMENT_HORIZONTAL_LINE',_0x538582)),_0x29f76c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1061d0,{writer:_0x5e9c91,options:_0x33bcc0})=>{if(!_0x33bcc0['showSuggestionHighlights'])return null;const _0x4608bf=_0x5e9c91['createContainerElement']('div'),_0x4d3199=_0x5e9c91['createEmptyElement']('hr');return _0x5e9c91['addClass']('ck-horizontal-line',_0x4608bf),_0x5e9c91['insert'](_0x5e9c91['createPositionAt'](_0x4608bf,0x0),_0x4d3199),_0x4608bf;},'converterPriority':'high'});}}class st extends _0x4db285{['afterInit'](){const _0xa95984=this['editor'];if(!_0xa95984['plugins']['has']('HtmlEmbed'))return;const _0x45c06f=_0xa95984['plugins']['get']('TrackChangesEditing'),_0x1cdb84=_0xa95984['locale'];_0x45c06f['descriptionFactory']['registerElementLabel']('rawHtml',_0x2e5d10=>o(_0x1cdb84,'ELEMENT_HTML_EMBED',_0x2e5d10)),_0x45c06f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x45c06f['registerBlockAttribute']('value'),_0x45c06f['descriptionFactory']['registerDescriptionCallback'](_0x99a5be=>{if('attribute'!=_0x99a5be['type'])return;const {data:_0x90868b}=_0x99a5be;if(_0x90868b&&'value'==_0x90868b['key']&&_0x99a5be['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x54e6be=o(_0x1cdb84,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1cdb84,'*Change\x20%0\x20content*',_0x54e6be)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4672aa=this['editor'],_0x1a4b52=_0x4672aa['locale'];_0x4672aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37aa73=>{if('formatBlock'!=_0x37aa73['type'])return;const {data:_0x55d56d}=_0x37aa73;if(_0x55d56d&&'htmlEmbed'==_0x55d56d['commandName']){const _0x5091ca=o(_0x1a4b52,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1a4b52,'*Change\x20%0\x20content*',_0x5091ca)};}});}}class nt extends _0x4db285{['afterInit'](){const _0x374c86=this['editor'];if(!_0x374c86['plugins']['has']('ImageEditing'))return;const _0x686ff7=_0x374c86['plugins']['get']('TrackChangesEditing'),_0x51c93f=_0x374c86['plugins']['get']('ImageUtils'),_0x5bcb6f=_0x374c86['locale'];_0x686ff7['enableCommand']('insertImage'),_0x686ff7['descriptionFactory']['registerElementLabel']('imageBlock',_0x1287a9=>o(_0x5bcb6f,'ELEMENT_IMAGE',_0x1287a9)),_0x686ff7['descriptionFactory']['registerElementLabel']('imageInline',_0x2dc30d=>o(_0x5bcb6f,'ELEMENT_INLINE_IMAGE',_0x2dc30d)),_0x686ff7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5bcb6f,'ELEMENT_CAPTION')),_0x374c86['plugins']['has']('ImageUploadEditing')&&_0x686ff7['enableCommand']('uploadImage'),_0x374c86['plugins']['has']('ImageBlockEditing')&&_0x374c86['plugins']['has']('ImageInlineEditing')&&(_0x686ff7['enableCommand']('imageTypeInline',(_0x571e8f,_0x2bce5a)=>{const _0x3f2c09=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']);_0x374c86['model']['change'](()=>{_0x686ff7['markBlockFormat'](_0x3f2c09,{'commandName':'imageTypeInline','commandParams':[_0x2bce5a]},[],'convertBlockImageToInline');});}),_0x686ff7['enableCommand']('imageTypeBlock',(_0x4c9ab3,_0x31eb00)=>{_0x374c86['model']['change'](_0x2dca48=>{let _0x310d1f=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x3fd310=_0x2dca48['createRangeOn'](_0x310d1f);const _0x2d44e2=_0x2c0c65['fromPosition'](_0x3fd310['start'],'toPrevious'),_0x419f2f=_0x2c0c65['fromPosition'](_0x3fd310['end'],'toNext');_0x686ff7['forceDefaultExecution'](()=>_0x4c9ab3(_0x31eb00)),_0x310d1f=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x3fd310=_0x2dca48['createRangeOn'](_0x310d1f);const _0x2876b5=_0x2dca48['createRange'](_0x2d44e2,_0x419f2f);_0x2d44e2['detach'](),_0x419f2f['detach'](),_0x686ff7['markBlockFormat'](_0x310d1f,{'commandName':'imageTypeInline','commandParams':[_0x31eb00]},[],'convertInlineImageToBlock'),_0x2876b5['start']['isBefore'](_0x3fd310['start'])&&_0x686ff7['markInsertion'](_0x2dca48['createRange'](_0x2876b5['start'],_0x3fd310['start']),'convertInlineImageToBlock'),_0x3fd310['end']['isBefore'](_0x2876b5['end'])&&_0x686ff7['markInsertion'](_0x2dca48['createRange'](_0x3fd310['end'],_0x2876b5['end']),'convertInlineImageToBlock');});}),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x686ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x309baa])=>{const _0x980688=_0x686ff7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x28217a=_0x309baa['start'],_0x4845f6=_0x309baa['end'];const _0x595b6d=_0x374c86['model']['schema']['getNearestSelectionRange'](_0x28217a,'backward'),_0x40c9f8=_0x374c86['model']['schema']['getNearestSelectionRange'](_0x4845f6,'forward');_0x595b6d['isCollapsed']&&(_0x28217a=_0x595b6d['start']),_0x40c9f8['isCollapsed']&&(_0x4845f6=_0x40c9f8['end']),_0x980688([_0x374c86['model']['createRange'](_0x28217a,_0x4845f6)]);}),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2098b6),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2098b6)),_0x374c86['plugins']['has']('ImageCaptionEditing')&&(_0x686ff7['enableCommand']('toggleImageCaption',(_0x22d954,_0x4ee80e)=>{const _0xaa0747=_0x374c86['plugins']['get']('ImageCaptionUtils');let _0x24a3ab=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x5cda85=_0xaa0747['getCaptionFromImageModelElement'](_0x24a3ab);_0x374c86['model']['change'](()=>{if(_0x5cda85)return void _0x686ff7['markDeletion'](_0x374c86['model']['createRangeOn'](_0x5cda85));const _0x8a4750=_0x51c93f['isBlockImage'](_0x24a3ab);_0x22d954(_0x4ee80e),_0x24a3ab=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x5cda85=_0xaa0747['getCaptionFromImageModelElement'](_0x24a3ab),_0x686ff7['markInsertion'](_0x374c86['model']['createRangeOn'](_0x5cda85),_0x8a4750?null:'imageCaption');});}),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2098b6));const _0x57aedf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x575327(_0x174455,_0x322db7){const _0x2de6a1=_0x57aedf['findIndex'](({type:_0x468d30,subType:_0x2c5410})=>_0x174455['type']==_0x468d30&&_0x174455['subType']==_0x2c5410),_0x82e219=_0x57aedf['findIndex'](({type:_0x288ae2,subType:_0x12c961})=>_0x322db7['type']==_0x288ae2&&_0x322db7['subType']==_0x12c961);if(_0x2de6a1<0x0||_0x82e219<0x0)return!0x1;const _0x207618=_0x174455['getFirstRange'](),_0x366d5e=_0x322db7['getFirstRange']();if((0x0==_0x2de6a1||0x1==_0x2de6a1)&&0x2==_0x82e219&&_0x207618['isIntersecting'](_0x366d5e))return!0x0;if(0x2==_0x2de6a1&&0x3==_0x82e219){const _0xead3bb=_0x686ff7['_findSuggestions'](_0x207618,'insertion')['filter'](({suggestion:_0x12ef2e,meta:_0x1a256f})=>_0x1a256f['isOwn']&&'convertInlineImageToBlock'==_0x12ef2e['subType']);if(_0xead3bb['length']>0x1&&_0x366d5e['end']['isEqual'](_0x207618['start']))return!0x0;if(0x1==_0xead3bb['length']&&(_0x207618['start']['isEqual'](_0x366d5e['end'])||_0x207618['end']['isEqual'](_0x366d5e['start'])))return!0x0;}if(0x3==_0x2de6a1&&0x3==_0x82e219&&_0x207618['start']['isBefore'](_0x366d5e['start'])){const _0x2b2ec2=_0x207618['end']['nodeAfter'],_0x113453=_0x366d5e['start']['nodeBefore'];return _0x51c93f['isBlockImage'](_0x2b2ec2)&&_0x2b2ec2===_0x113453;}return!0x1;}function _0x2098b6(_0x440a7f,_0x2485f7){return _0x575327(_0x440a7f,_0x2485f7)?[_0x440a7f,_0x2485f7]:_0x575327(_0x2485f7,_0x440a7f)?[_0x2485f7,_0x440a7f]:null;}_0x374c86['plugins']['has']('ImageResize')&&(_0x686ff7['enableDefaultAttributesIntegration']('resizeImage'),_0x686ff7['registerBlockAttribute']('resizedWidth'),_0x686ff7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5bcb6f,'FORMAT_IMAGE_SIZE'))),_0x374c86['plugins']['has']('ImageTextAlternativeEditing')&&(_0x686ff7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x686ff7['registerBlockAttribute']('alt')),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x1fe104=>{if(!!_0x57aedf['find'](({type:_0x30ca9e,subType:_0x39d275})=>_0x1fe104['type']==_0x30ca9e&&_0x1fe104['subType']==_0x39d275))return _0x1fe104['previous']?{}:void 0x0;}),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x91fee8=>{if('insertion'==_0x91fee8['type']||'deletion'==_0x91fee8['type']){const _0x35fe57=_0x91fee8['getContainedElement']();if(_0x35fe57&&_0x35fe57['is']('element','caption'))return{'type':'insertion'==_0x91fee8['type']?'addObject':'removeObject','element':_0x35fe57,'quantity':0x1};}}),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x3ba0f1=>'formatBlock'==_0x3ba0f1['type']&&'convertInlineImageToBlock'==_0x3ba0f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3ba0f1['type']&&'convertBlockImageToInline'==_0x3ba0f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x25da3c=>{if('attribute'!=_0x25da3c['type'])return;const {data:_0x318fdd}=_0x25da3c;if(!_0x318fdd||'alt'!=_0x318fdd['key'])return;const _0x23bcd8=_0x318fdd['newValue'];return _0x23bcd8?{'type':'format','content':o(_0x5bcb6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23bcd8+'\x22')}:{'type':'format','content':o(_0x5bcb6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4ef0=this['editor'],_0x5a6adb=_0x1b4ef0['locale'];_0x1b4ef0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13e635=>{if('formatBlock'!=_0x13e635['type']&&'formatInline'!=_0x13e635['type'])return;const {data:_0x3b6c57}=_0x13e635;if(_0x3b6c57){if('imageTextAlternative'==_0x3b6c57['commandName']){const _0x887d64=_0x3b6c57['commandParams'][0x0]['newValue'];return _0x887d64?{'type':'format','content':o(_0x5a6adb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x887d64+'\x22')}:{'type':'format','content':o(_0x5a6adb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b6c57['commandName']){const _0x5cb6f6=_0x3b6c57['commandParams'][0x0]['width'];return _0x5cb6f6?{'type':'format','content':o(_0x5a6adb,'*Set\x20image\x20width:*\x20%0',_0x5cb6f6)}:{'type':'format','content':o(_0x5a6adb,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3bc911=this['editor']['locale'],_0x259547=this['editor']['plugins']['get']('TrackChangesEditing');_0x259547['enableDefaultAttributesIntegration']('replaceImageSource'),_0x259547['registerBlockAttribute']('src'),_0x259547['descriptionFactory']['registerDescriptionCallback'](_0x58b356=>{if('attribute'!=_0x58b356['type'])return;const {data:_0x2d8988}=_0x58b356;return _0x2d8988&&'src'==_0x2d8988['key']?_0x2d8988['newValue']&&_0x2d8988['oldValue']?{'type':'format','content':o(_0x3bc911,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x46b999=this['editor']['plugins']['get']('TrackChangesEditing');_0x46b999['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x46b999['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46b999['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x46b999['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bb53f=this['editor'],_0x567507=_0x4bb53f['locale'];_0x4bb53f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x392edb=>{if('formatBlock'!=_0x392edb['type']&&'formatInline'!=_0x392edb['type'])return;const {data:_0x37f0a3}=_0x392edb;if(!_0x37f0a3||'replaceImageSource'!=_0x37f0a3['commandName'])return;return{'type':'format','content':o(_0x567507,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4db285{['afterInit'](){const _0x1b0803=this['editor'];if(!_0x1b0803['plugins']['has']('ImageStyleEditing'))return;const _0x1603f0=_0x1b0803['plugins']['get']('TrackChangesEditing'),_0x160900=_0x1b0803['plugins']['get']('ImageUtils'),_0xd20048={};_0x1603f0['enableCommand']('imageStyle',(_0x5a81b8,_0x134277)=>{const _0x325f8f=_0x1b0803['plugins']['get']('Users')['me'],_0x5356e7=_0x1b0803['commands']['get']('imageStyle');let _0x155897=_0x160900['getClosestSelectedImageElement'](_0x1b0803['model']['document']['selection']),_0x9d45a4=_0x1b0803['model']['createRangeOn'](_0x155897),_0x2f7205=_0x5356e7['value'];if(_0x2f7205==_0x134277['value'])return;const _0x484a3b={'commandName':'imageStyle','commandParams':[_0x134277],'formatGroupId':_0x1d9854()};_0x1b0803['model']['change'](()=>{if(_0x1603f0['getSuggestions']()['filter'](_0x483dd4=>_0x483dd4['isInContent']&&_0x325f8f==_0x483dd4['author']&&('formatBlock'==_0x483dd4['type']||'formatInline'==_0x483dd4['type'])&&('imageStylePreApply'==_0x483dd4['subType']||'imageStylePostApply'==_0x483dd4['subType'])&&_0x483dd4['getFirstRange']()['isEqual'](_0x9d45a4))['forEach'](_0x400ce3=>_0x1603f0['discardSuggestion'](_0x400ce3['head'])),_0x155897=_0x160900['getClosestSelectedImageElement'](_0x1b0803['model']['document']['selection']),_0x9d45a4=_0x1b0803['model']['createRangeOn'](_0x155897),_0x5356e7['refresh'](),_0x1b0803['commands']['get']('imageTypeInline')['refresh'](),_0x1b0803['commands']['get']('imageTypeBlock')['refresh'](),_0x2f7205=_0x5356e7['value'],_0x2f7205!=_0x134277['value'])return _0x160900['isInlineImage'](_0x155897)&&_0x5356e7['shouldConvertImageType'](_0x134277['value'],_0x155897)?(_0x5a81b8({..._0x134277,'setImageSizes':!0x1}),_0x155897=_0x160900['getClosestSelectedImageElement'](_0x1b0803['model']['document']['selection']),void _0x1603f0['markBlockFormat'](_0x155897,{..._0x484a3b,'commandReversedParams':[{'value':_0x2f7205||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x160900['isBlockImage'](_0x155897)?_0x1603f0['markBlockFormat'](_0x155897,_0x484a3b,[],'imageStylePostApply'):_0x1603f0['markInlineFormat'](_0x9d45a4,_0x484a3b,'imageStylePostApply'));});});for(const _0x1d6ecd of _0x1b0803['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xd20048[_0x1d6ecd['name']]=_0x1d6ecd['title']['toLowerCase']();_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3dd9af])=>{_0x160900['setImageNaturalSizeAttributes'](_0x3dd9af['getContainedElement']());}),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ba447,_0x119c6f)=>{_0x1603f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ba447,{'commandName':_0x119c6f['commandName'],'commandParams':_0x119c6f['commandReversedParams']});}),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2c1ee0,_0x5207f0){if(_0x360eac(_0x2c1ee0,_0x5207f0))return[_0x2c1ee0,_0x5207f0];if(_0x360eac(_0x5207f0,_0x2c1ee0))return[_0x5207f0,_0x2c1ee0];return null;});const _0x35b090=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x360eac(_0x1f832b,_0x1bb27a){const _0x39a098=_0x35b090['findIndex'](({type:_0x519fe0,subType:_0x2bf80f})=>_0x1f832b['type']==_0x519fe0&&_0x1f832b['subType']==_0x2bf80f),_0x4ca67d=_0x35b090['findIndex'](({type:_0x58fe6d,subType:_0x24a67e})=>_0x1bb27a['type']==_0x58fe6d&&_0x1bb27a['subType']==_0x24a67e);if(_0x39a098<0x0||_0x4ca67d<0x0)return!0x1;const _0x373df1=_0x1f832b['getFirstRange'](),_0x4d2cd0=_0x1bb27a['getFirstRange']();if((0x0==_0x39a098||0x1==_0x39a098)&&0x2==_0x4ca67d&&_0x373df1['isIntersecting'](_0x4d2cd0))return!0x0;if(0x2==_0x39a098&&0x3==_0x4ca67d){const _0x4e8be9=_0x1603f0['_findSuggestions'](_0x373df1,'insertion')['filter'](({suggestion:_0x5f3f49,meta:_0xbcfe02})=>_0xbcfe02['isOwn']&&'convertInlineImageToBlock'==_0x5f3f49['subType']);if(_0x4e8be9['length']>0x1&&_0x4d2cd0['end']['isEqual'](_0x373df1['start']))return!0x0;if(0x1==_0x4e8be9['length']&&(_0x373df1['start']['isEqual'](_0x4d2cd0['end'])||_0x373df1['end']['isEqual'](_0x4d2cd0['start'])))return!0x0;}if(0x3==_0x39a098&&0x3==_0x4ca67d&&_0x373df1['start']['isBefore'](_0x4d2cd0['start'])){const _0xe053b7=_0x373df1['end']['nodeAfter'],_0x2ccba7=_0x4d2cd0['start']['nodeBefore'];return _0x160900['isBlockImage'](_0xe053b7)&&_0xe053b7===_0x2ccba7;}return!0x1;}_0x1b0803['model']['document']['registerPostFixer'](()=>{let _0x1c29ce=!0x1;const _0x512018=Array['from'](_0x1b0803['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34df7b,data:_0x18237a}of _0x512018){const {group:_0x577883,type:_0x4a4bd0,subType:_0x32b80d,id:_0x2942c8}=_0x1603f0['_splitMarkerName'](_0x34df7b);if('suggestion'==_0x577883&&_0x1603f0['hasSuggestion'](_0x2942c8)){if('formatBlock'==_0x4a4bd0&&('imageStylePreApply'==_0x32b80d||'imageStylePostApply'==_0x32b80d)){const _0x319f25=_0x1603f0['getSuggestion'](_0x2942c8);if(_0x18237a['newRange']){const _0x1b3ca8=_0x319f25['getFirstRange']()['getContainedElement']();if(_0x160900['isBlockImage'](_0x1b3ca8))continue;_0x1603f0['discardSuggestion'](_0x319f25),_0x1c29ce=!0x0;}}if('insertion'==_0x4a4bd0&&'imageCaption'==_0x32b80d&&!_0x18237a['newRange']){const _0x4f51f8=_0x1603f0['getSuggestion'](_0x2942c8);_0x4f51f8['next']&&_0x4f51f8['next']['isInContent']&&(_0x1603f0['discardSuggestion'](_0x4f51f8['next']),_0x1c29ce=!0x0);}}}return _0x1c29ce;}),this['_registerLegacyDescription'](_0xd20048);}['_registerLegacyDescription'](_0x30e810){const _0x4bfd31=this['editor'],_0x5a78a2=_0x4bfd31['locale'];_0x4bfd31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x549e26=>{if('formatBlock'!=_0x549e26['type']&&'formatInline'!=_0x549e26['type'])return;const {data:_0x12ff6c}=_0x549e26;if(!_0x12ff6c||'imageStyle'!=_0x12ff6c['commandName'])return;const _0x20a45d=_0x12ff6c['commandParams'][0x0]['value'];return _0x7b28a0('side'===_0x20a45d?o(_0x5a78a2,'FORMAT_SIDE_IMAGE'):_0x30e810[_0x20a45d]||_0x20a45d);function _0x7b28a0(_0x192712){return{'type':'format','content':o(_0x5a78a2,'*Format:*\x20%0',_0x192712)};}});}}class at extends _0x4db285{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5bef68){super(_0x5bef68),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x10a608=this['editor'],_0x3b8075=_0x10a608['commands']['get']('importWord'),_0x33e305=_0x10a608['commands']['get']('trackChanges');_0x3b8075&&(_0x3b8075['on']('execute',(_0x39aee1,[,_0x24792a])=>{this['_trackChangesValueDuringImport']=_0x33e305['value'],_0x24792a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3b8075,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3b8075,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x33e305['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x10a608['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x49189f,_0x3723c7){const {suggestions:_0x1cba78}=_0x3723c7,_0x54c059=this['editor']['commands']['get']('trackChanges'),_0xe8663a=_0x54c059['value'];this['_trackChangesValueDuringImport']!==_0xe8663a&&(_0x54c059['execute'](),this['_trackChangesExecuted']=!0x0),_0x1cba78&&_0x1cba78['forEach'](({id:_0x3716b9,type:_0x557108,author:_0x1178cb,created_at:_0x23a9a8})=>{const _0xbceaaf={'id':_0x3716b9,'type':_0x557108,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1178cb,'createdAt':_0x23a9a8?new Date(_0x23a9a8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xbceaaf);});}}class ct extends _0x4db285{['afterInit'](){const _0x20898d=this['editor'],_0x10dad9=_0x20898d['plugins']['get']('TrackChangesEditing');if(_0x20898d['plugins']['has']('IndentEditing')&&(_0x10dad9['enableCommand']('indent'),_0x10dad9['enableCommand']('outdent')),_0x20898d['plugins']['has']('IndentBlock')){for(const _0x3d3e2a of['indentBlock','outdentBlock'])_0x10dad9['enableDefaultAttributesIntegration'](_0x3d3e2a);}const _0x1acccc=_0x20898d['locale'];_0x10dad9['registerBlockAttribute']('blockIndent'),_0x10dad9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1acccc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x510389=this['editor'],_0x8d379c=_0x510389['locale'],_0x28e76a=_0x510389['plugins']['get']('TrackChangesEditing');_0x28e76a['descriptionFactory']['registerDescriptionCallback'](_0x3d5e20=>{if('formatBlock'!=_0x3d5e20['type'])return;const {data:_0x49e1fc}=_0x3d5e20;if(!_0x49e1fc)return;if('indentBlock'!=_0x49e1fc['commandName']&&'outdentBlock'!=_0x49e1fc['commandName'])return;const _0x55ce60=_0x3d5e20['getItems']()[0x0],_0x14c5fd=_0x28e76a['descriptionFactory']['getItemLabel'](_0x55ce60);return'indentBlock'==_0x49e1fc['commandName']?{'type':'format','content':o(_0x8d379c,'*Indent:*\x20%0',_0x14c5fd)}:'outdentBlock'==_0x49e1fc['commandName']?{'type':'format','content':o(_0x8d379c,'*Outdent:*\x20%0',_0x14c5fd)}:void 0x0;});}}class ut extends _0x4db285{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4db285{['afterInit'](){const _0x21bc6b=this['editor'];if(!_0x21bc6b['plugins']['has']('LinkEditing'))return;const _0x38a981=_0x21bc6b['plugins']['get']('TrackChangesEditing'),_0x51cdc2=_0x21bc6b['commands']['get']('link');_0x38a981['enableDefaultAttributesIntegration']('link'),_0x38a981['enableDefaultAttributesIntegration']('unlink'),_0x38a981['registerInlineAttribute']('linkHref');for(const _0x587dbb of _0x51cdc2['manualDecorators'])_0x38a981['registerInlineAttribute'](_0x587dbb['id']),_0x38a981['descriptionFactory']['registerAttributeLabel'](_0x587dbb['id'],'link\x20('+_0x587dbb['label']['toLowerCase']()+')');_0x38a981['descriptionFactory']['registerDescriptionCallback'](_0x744b1c=>{if('attribute'!=_0x744b1c['type'])return;const {data:_0x132156}=_0x744b1c;if(!_0x132156||'linkHref'!=_0x132156['key'])return;const _0x21b2b5=_0x132156['newValue'],_0x2b993b=_0x21bc6b['locale'];return{'type':'format','content':null==_0x21b2b5?o(_0x2b993b,'*Remove\x20link*'):o(_0x2b993b,'*Set\x20link:*\x20%0','\x22'+_0x21b2b5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a80a9=this['editor'],_0x567d78=_0x5a80a9['locale'];_0x5a80a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ef572=>{if('formatInline'!=_0x3ef572['type'])return;const {data:_0xbb616}=_0x3ef572;if(_0xbb616){if('link'==_0xbb616['commandName']){const _0x4ec01e=_0xbb616['commandParams'][0x0];return{'type':'format','content':o(_0x567d78,'*Set\x20link:*\x20%0','\x22'+_0x4ec01e+'\x22')};}return'unlink'==_0xbb616['commandName']?{'type':'format','content':o(_0x567d78,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4db285{['afterInit'](){const _0x2c600c=this['editor'],_0x3bd573=_0x2c600c['locale'];if(!_0x2c600c['plugins']['has']('LegacyListEditing'))return;const _0x283334=_0x2c600c['plugins']['get']('TrackChangesEditing'),_0x10ced2=_0x2c600c['plugins']['has']('LegacyTodoListEditing');function _0x4d899c(_0x3acbdd){return()=>{const _0x3ccab5=_0x2c600c['model']['document']['selection'],_0x1d55e7=_0x2c600c['commands']['get'](_0x3acbdd);if(_0x1d55e7['value'])return void _0x2c600c['execute']('paragraph',{});const _0x5b56b5=_0x3acbdd['slice'](0x0,-0x4),_0x343a45=function(_0x26af64,_0x4f6ea3,_0x2f0f37){let _0x12818b=Array['from'](_0x26af64)['filter'](_0x4740eb=>function(_0x5c6065,_0x1e5fc3){return _0x1e5fc3['checkChild'](_0x5c6065['parent'],'listItem')&&!_0x1e5fc3['isObject'](_0x5c6065);}(_0x4740eb,_0x2f0f37));_0x12818b=_0x12818b['filter'](_0x11e7db=>!_0x11e7db['is']('element','listItem')||_0x11e7db['getAttribute']('listType')!=_0x4f6ea3);const _0x1ee67b=new Set();for(const _0x503d3b of _0x12818b)_0x503d3b['is']('element','listItem')?_0x1ee67b['add'](fe(_0x503d3b)):_0x1ee67b['add'](_0x503d3b);return Array['from'](_0x1ee67b);}(_0x3ccab5['getSelectedBlocks'](),_0x5b56b5,_0x2c600c['model']['schema']);_0x2c600c['model']['change'](()=>{for(const _0x218c49 of _0x343a45)_0x283334['markBlockFormat'](_0x218c49,{'commandName':_0x3acbdd,'commandParams':[{'forceValue':!_0x1d55e7['value']}],'formatGroupId':'blockName'},ue(_0x218c49));});};}function _0x146da3(_0x2827e1){return()=>{const _0x3d2c83=function(_0x5e65fa){let _0x5686e1=Array['from'](_0x5e65fa);const _0x5c9f5b=_0x5686e1['findIndex'](_0xfcd240=>'listItem'!=_0xfcd240['name']);return _0x5c9f5b>-0x1&&(_0x5686e1=_0x5686e1['slice'](0x0,_0x5c9f5b)),_0x5686e1;}(_0x2c600c['model']['document']['selection']['getSelectedBlocks']()),_0x5178c1=_0x2c600c['model']['createRange'](_0x2c600c['model']['createPositionAt'](_0x3d2c83[0x0],'before'),_0x2c600c['model']['createPositionAt'](_0x3d2c83[_0x3d2c83['length']-0x1],'end'));_0x2c600c['model']['change'](()=>{_0x283334['markBlockFormat'](_0x5178c1,{'commandName':_0x2827e1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x20e230){const _0x574480=new Set();for(const _0x5748e6 of _0x20e230){let _0x32b705=_0x5748e6['nextSibling'];for(;_0x32b705&&_0x32b705['getAttribute']('listIndent')>_0x5748e6['getAttribute']('listIndent');)_0x574480['add'](_0x32b705),_0x32b705=_0x32b705['nextSibling'];}return Array['from'](_0x574480);}(_0x3d2c83));});};}_0x283334['enableCommand']('numberedList',_0x4d899c('numberedList')),_0x283334['enableCommand']('bulletedList',_0x4d899c('bulletedList')),_0x10ced2&&_0x283334['enableCommand']('todoList',_0x4d899c('todoList')),_0x283334['enableCommand']('indentList',_0x146da3('indentList')),_0x283334['enableCommand']('outdentList',_0x146da3('outdentList')),_0x10ced2&&_0x283334['enableCommand']('checkTodoList',()=>{const _0x84af14=_0x2c600c['commands']['get']('checkTodoList'),_0x528c50=Array['from'](_0x84af14['_selectedElements']);_0x528c50['filter'](_0x529f13=>_0x529f13['getAttribute']('todoListChecked')!=_0x84af14['value']),_0x2c600c['model']['change'](()=>{for(const _0x148365 of _0x528c50)_0x283334['markBlockFormat'](_0x148365,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x84af14['value']}]});});}),_0x283334['descriptionFactory']['registerElementLabel']('listItem',_0x296658=>o(_0x3bd573,'ELEMENT_LIST_ITEM',_0x296658)),_0x283334['descriptionFactory']['registerDescriptionCallback'](_0x50ce73=>{if('formatBlock'!=_0x50ce73['type']&&'formatInline'!=_0x50ce73['type'])return;const {data:_0x13e774}=_0x50ce73;if(_0x13e774){if('numberedList'==_0x13e774['commandName']||'bulletedList'==_0x13e774['commandName']||'todoList'==_0x13e774['commandName'])switch(_0x13e774['commandName']['replace']('List','')){case'bulleted':return _0x2ff0d0(o(_0x3bd573,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ff0d0(o(_0x3bd573,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ff0d0(o(_0x3bd573,'ELEMENT_TODO_LIST'));}if('indentList'==_0x13e774['commandName'])return{'type':'format','content':o(_0x3bd573,'*Indent:*\x20%0',o(_0x3bd573,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x13e774['commandName'])return{'type':'format','content':o(_0x3bd573,'*Outdent:*\x20%0',o(_0x3bd573,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x13e774['commandName'])return _0x13e774['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bd573,'*Check\x20item*')}:{'type':'format','content':o(_0x3bd573,'*Uncheck\x20item*')};}function _0x2ff0d0(_0x192360){return{'type':'format','content':o(_0x3bd573,'*Change\x20to:*\x20%0',_0x192360)};}});}}function fe(_0x28547a){const _0xe0c333=_0x28547a['getAttribute']('listIndent');if(0x0==_0xe0c333)return _0x28547a;let _0x5320b1=_0x28547a;for(;_0x28547a['previousSibling']&&_0x28547a['previousSibling']['is']('element','listItem');){const _0x25e957=_0x28547a['previousSibling']['getAttribute']('listIndent');if(_0x25e957==_0xe0c333)_0x5320b1=_0x28547a['previousSibling'];else{if(_0x25e957<_0xe0c333)break;}_0x28547a=_0x28547a['previousSibling'];}return _0x5320b1;}function ue(_0x5997e6){const _0x47de28=[];if(_0x5997e6['is']('element','listItem')&&_0x5997e6['getAttribute']('listIndent')>0x0){let _0x21bc5e=_0x5997e6['nextSibling'];for(;_0x21bc5e&&'listItem'==_0x21bc5e['name']&&_0x21bc5e['getAttribute']('listIndent')==_0x5997e6['getAttribute']('listIndent');)_0x47de28['push'](_0x21bc5e),_0x21bc5e=_0x21bc5e['nextSibling'];}return _0x47de28;}class W extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xfaa0b=this['editor']['config']['get']('list.properties'),_0xa7931c=this['editor']['plugins']['get']('TrackChangesEditing');_0xfaa0b['styles']&&_0xa7931c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xfaa0b['reversed']&&_0xa7931c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xfaa0b['startIndex']&&_0xa7931c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa7931c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x29a87c,_0x203ad4={}){const _0x5a160f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x735e2c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5a160f['markMultiRangeBlockFormat'](_0x735e2c,{'commandName':'listStyle','commandParams':[{'type':_0x203ad4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x45d828,_0xf9be80={}){const _0x434a6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fad5e=this['_getSuggestionBlocks'](_0x5a40f3=>_0x5a40f3['is']('element','listItem')&&'numbered'===_0x5a40f3['getAttribute']('listType'));if(_0x3fad5e['length']<0x1)return;const _0x47a4ce=_0x3fad5e['map'](_0x40b8f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40b8f4,'before'),this['editor']['model']['createPositionAt'](_0x40b8f4,0x0)));this['editor']['model']['change'](()=>{_0x434a6f['markMultiRangeBlockFormat'](_0x47a4ce,{'commandName':'listReversed','commandParams':[{'reversed':_0xf9be80['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x33ba3a,_0x5e05a8={}){const _0x2693f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x280887=this['_getSuggestionBlocks'](_0x40de49=>_0x40de49['is']('element','listItem')&&'numbered'===_0x40de49['getAttribute']('listType'));if(_0x280887['length']<0x1)return;const _0xa9f9f=_0x280887['map'](_0x15f057=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f057,'before'),this['editor']['model']['createPositionAt'](_0x15f057,0x0)));this['editor']['model']['change'](()=>{_0x2693f7['markMultiRangeBlockFormat'](_0xa9f9f,{'commandName':'listStart','commandParams':[{'startIndex':_0x5e05a8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56567a){if('formatBlock'!=_0x56567a['type']&&'formatInline'!=_0x56567a['type'])return;const _0x55e7b5=this['editor']['locale'],{data:_0x4daf72}=_0x56567a;if(!_0x4daf72)return;let _0x39cf6b,_0x51d87f;switch(_0x4daf72['commandName']){case'listStyle':_0x39cf6b='*Change\x20to:*\x20%0',_0x51d87f={'type':'format','content':o(_0x55e7b5,_0x39cf6b,o(_0x55e7b5,this['_getTranslationKeyForListStyle'](_0x4daf72['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39cf6b=_0x4daf72['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51d87f={'type':'format','content':o(_0x55e7b5,_0x39cf6b)};break;case'listStart':_0x39cf6b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51d87f={'type':'format','content':o(_0x55e7b5,_0x39cf6b,_0x4daf72['commandParams'][0x0]['startIndex'])};}return _0x51d87f;}['_getSuggestionBlocksForListStyle'](){const _0x110a7d=this['editor']['plugins']['get']('LegacyListUtils');let _0x1794f5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1794f5[0x0]?.['is']('element','listItem')&&_0x1794f5['unshift'](..._0x110a7d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1794f5[_0x1794f5['length']-0x1]?.['is']('element','listItem')&&_0x1794f5['push'](..._0x110a7d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1794f5=[...new Set(_0x1794f5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1794f5=_0x1794f5['filter'](_0x490684=>_0x490684['is']('element','listItem'))),_0x1794f5;}['_getSuggestionBlocks'](_0x2bca65){const _0x18a7c4=this['editor']['plugins']['get']('LegacyListUtils');let _0x47c043=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2bca65)['map'](_0x2b61b3=>{const _0x3e82d1=this['editor']['model']['createPositionAt'](_0x2b61b3,0x0);return[..._0x18a7c4['getSiblingNodes'](_0x3e82d1,'backward'),..._0x18a7c4['getSiblingNodes'](_0x3e82d1,'forward')];})['flat']();return _0x47c043=[...new Set(_0x47c043)],_0x47c043;}['_getTranslationKeyForListStyle'](_0x974ef8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x974ef8)||'default')['toUpperCase']()+'_LIST_'+_0x974ef8['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4db285{['afterInit'](){const _0x2654e7=this['editor'];if(!_0x2654e7['plugins']['has']('MediaEmbedEditing'))return;const _0x15633b=_0x2654e7['plugins']['get']('TrackChangesEditing'),_0x1cf53a=_0x2654e7['locale'];_0x15633b['enableCommand']('mediaEmbed'),_0x15633b['descriptionFactory']['registerElementLabel']('media',_0x4de72d=>o(_0x1cf53a,'ELEMENT_MEDIA',_0x4de72d)),_0x2654e7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x86a42c,{writer:_0x35db76,options:_0x4172e0})=>{if(_0x4172e0['showSuggestionHighlights'])return _0x35db76['createEmptyElement']('div');},'converterPriority':'high'}),_0x2654e7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x607251,_0x2b79b4,_0x4e8a35)=>{_0x4e8a35['options']['showSuggestionHighlights']&&_0x607251['stop']();},{'priority':'high'});}}class mt extends _0x4db285{['afterInit'](){const _0x42fa12=this['editor'];_0x42fa12['plugins']['has']('MentionEditing')&&_0x42fa12['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4db285{['afterInit'](){const _0x566d59=this['editor'];if(!_0x566d59['plugins']['has']('MergeFieldsEditing'))return;_0x566d59['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x566d59['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1a4d28=_0x566d59['plugins']['get']('TrackChangesEditing'),_0x22af56=_0x566d59['locale'];_0x1a4d28['descriptionFactory']['registerElementLabel']('mergeField',_0x17c51a=>o(_0x22af56,'ELEMENT_MERGE_FIELD',_0x17c51a)),_0x1a4d28['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2be0d6=>o(_0x22af56,'ELEMENT_MERGE_FIELD',_0x2be0d6)),_0x1a4d28['descriptionFactory']['registerDescriptionCallback'](_0x391c3f=>{if('insertion'!=_0x391c3f['type']&&'deletion'!=_0x391c3f['type'])return;const _0xadb612=_0x391c3f['getContainedElement']();if(null==_0xadb612)return;if(!_0xadb612['is']('element','mergeField')&&!_0xadb612['is']('element','mergeFieldBlock'))return;const _0xf8e9eb=_0x566d59['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xadb612['getAttribute']('id'));return'insertion'==_0x391c3f['type']?{'type':'insertion','content':o(_0x22af56,'*Insert:*\x20%0','\x22'+_0xf8e9eb+'\x22\x20'+o(_0x22af56,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x22af56,'*Remove:*\x20%0','\x22'+_0xf8e9eb+'\x22\x20'+o(_0x22af56,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4db285{['afterInit'](){const _0x2d4916=this['editor'],_0x254b5b=_0x2d4916['plugins']['get']('TrackChangesEditing');_0x2d4916['plugins']['has']('MultiLevelList')&&(_0x254b5b['enableDefaultAttributesIntegration']('multiLevelList'),_0x254b5b['registerBlockAttribute']('listMarkerStyle'),_0x254b5b['descriptionFactory']['registerDescriptionCallback'](_0x46a6f3=>this['handleDescriptions'](_0x46a6f3)));}['handleDescriptions'](_0x2bbd6b){const _0x531eab=this['editor']['locale'],{data:_0x1a085f}=_0x2bbd6b,_0x18cc20={'type':'format','content':''};if(_0x1a085f&&'listMarkerStyle'==_0x1a085f['key']){if(!_0x1a085f['oldValue'])return{'type':'format','content':o(_0x531eab,'*Set\x20format:*\x20%0',o(_0x531eab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a085f['newValue']+')'};if(!_0x1a085f['newValue']){let _0x4d789d=_0x2bbd6b['head'];for(;_0x4d789d;){if(_0x4d789d['data']&&'listType'==_0x4d789d['data']['key']&&_0x4d789d['data']['newValue'])return _0x18cc20;_0x4d789d=_0x4d789d['next'];}return{'type':'format','content':o(_0x531eab,'*Remove\x20format:*\x20%0',o(_0x531eab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a085f['oldValue']+')'};}}}}class kt extends _0x4db285{['afterInit'](){const _0x32b607=this['editor'];if(!_0x32b607['plugins']['has']('PageBreakEditing'))return;_0x32b607['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x57f65a=_0x32b607['plugins']['get']('TrackChangesEditing'),_0x4bbb7b=_0x32b607['locale'];_0x57f65a['descriptionFactory']['registerElementLabel']('pageBreak',_0x228bec=>o(_0x4bbb7b,'ELEMENT_PAGE_BREAK',_0x228bec));}}class bt extends _0x4db285{['afterInit'](){const _0x56d9e4=this['editor'];if(!_0x56d9e4['plugins']['has']('Paragraph'))return;const _0x12a990=_0x56d9e4['locale'],_0x3330fe=_0x56d9e4['plugins']['get']('TrackChangesEditing');_0x3330fe['descriptionFactory']['registerElementLabel']('paragraph',_0x3278db=>o(_0x12a990,'ELEMENT_PARAGRAPH',_0x3278db)),_0x3330fe['enableDefaultAttributesIntegration']('paragraph'),_0x3330fe['enableCommand']('insertParagraph'),_0x56d9e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x56d9e4),{'priority':'highest'}),_0x56d9e4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a2165,_0x11db73,_0x103293)=>{_0x103293['options']['showSuggestionHighlights']&&nr(_0x56d9e4,{'showActiveMarker':!0x1})(_0x4a2165,_0x11db73,_0x103293);},{'priority':'highest'});const _0x1f9425=_0x3330fe['descriptionFactory'];_0x1f9425['registerDescriptionCallback'](_0x1f6b61=>{if('insertion'!==_0x1f6b61['type'])return;const {start:_0xad8841,end:_0x583fbe}=_0x1f6b61['getFirstRange']();if(!_0xad8841['isTouching'](_0x583fbe)||!_0xad8841['nodeAfter'])return;const _0x502a60=_0x56d9e4['model']['schema'],_0x55afb7=_0xad8841['nodeAfter'];return _0x502a60['isBlock'](_0x55afb7)&&!_0x502a60['isLimit'](_0x55afb7)&&_0x502a60['checkChild'](_0x55afb7,'$text')?{'type':'insertion','content':o(_0x12a990,'*Insert:*\x20%0',_0x1f9425['getItemLabel'](_0x55afb7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380691=this['editor'],_0x4e0e24=_0x380691['locale'];_0x380691['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58de4b=>{if('formatBlock'!=_0x58de4b['type'])return;const {data:_0x33a9b9}=_0x58de4b;return _0x33a9b9&&'paragraph'==_0x33a9b9['commandName']?{'type':'format','content':o(_0x4e0e24,'*Change\x20to:*\x20%0',o(_0x4e0e24,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2ece5c,{showActiveMarker:_0x355ba7=!0x0}={}){return(_0x2081cb,_0x3c3864,_0x2b5d58)=>{const _0x155ca4=_0x2ece5c['plugins']['get']('TrackChangesEditing'),_0x51317f=_0x3c3864['markerRange']['start'],_0x3c80c9=_0x3c3864['markerRange']['end'],_0x4c1838=_0x2ece5c['model']['schema'];if(!_0x51317f['isTouching'](_0x3c80c9)||!_0x51317f['nodeAfter'])return;const _0x5ea482=_0x51317f['nodeAfter'];if(_0x4c1838['isBlock'](_0x5ea482)&&!_0x4c1838['isLimit'](_0x5ea482)&&_0x4c1838['checkChild'](_0x5ea482,'$text')){if(!_0x2b5d58['consumable']['consume'](_0x3c3864['markerRange'],_0x2081cb['name']))return;const {authorId:_0x283a02}=_0x155ca4['_splitMarkerName'](_0x3c3864['markerName']),_0x4c5c04=_0x2b5d58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x283a02}),_0x19203c=_0x2b5d58['mapper']['toViewPosition'](_0x3c80c9);_0x355ba7&&_0x155ca4['activeMarkers']['includes'](_0x3c3864['markerName'])&&_0x2b5d58['writer']['addClass']('ck-suggestion-marker--active',_0x4c5c04),_0x2b5d58['writer']['insert'](_0x19203c,_0x4c5c04),_0x2b5d58['mapper']['bindElementToMarker'](_0x4c5c04,_0x3c3864['markerName']);}};}class wt extends _0x4db285{['afterInit'](){const _0x23fa3a=this['editor'];if(!_0x23fa3a['plugins']['has']('RemoveFormatEditing'))return;_0x23fa3a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8edd=this['editor'];_0x1b8edd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58a783=>{if('formatBlock'!=_0x58a783['type']&&'formatInline'!=_0x58a783['type'])return;const {data:_0x293ef9}=_0x58a783;return _0x293ef9&&'removeFormat'==_0x293ef9['commandName']?{'type':'format','content':o(_0x1b8edd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4db285{['afterInit'](){const _0x3a209d=this['editor'];if(!_0x3a209d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xcb6142=_0x3a209d['plugins']['get']('TrackChangesEditing');_0xcb6142['enableCommand']('goToPreviousRestrictedEditingException'),_0xcb6142['enableCommand']('goToNextRestrictedEditingException');const _0x4614ae=_0x3a209d['plugins']['get']('RestrictedEditingModeEditing');_0x4614ae['enableCommand']('trackChanges'),_0x4614ae['enableCommand']('acceptSuggestion'),_0x4614ae['enableCommand']('discardSuggestion'),_0x4614ae['enableCommand']('acceptAllSuggestions'),_0x4614ae['enableCommand']('discardAllSuggestions'),_0x4614ae['enableCommand']('acceptSelectedSuggestions'),_0x4614ae['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4db285{static get['requires'](){return[_0x3fc02e];}['init'](){const _0x290a9c=this['editor'],_0x271b40=_0x290a9c['plugins']['get']('TrackChangesEditing');_0x271b40['enableCommand']('shiftEnter'),_0x290a9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x290a9c),{'priority':'high'}),_0x290a9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x290a9c),{'priority':'high'}),_0x290a9c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x846673,_0x5be72f,_0x49dbb3)=>{_0x49dbb3['options']['showSuggestionHighlights']&&ge(_0x290a9c,{'showActiveMarker':!0x1})(_0x846673,_0x5be72f,_0x49dbb3);}),_0x271b40['descriptionFactory']['registerElementLabel']('softBreak',_0x46309a=>o(_0x290a9c['locale'],'ELEMENT_LINE_BREAK',_0x46309a));}}function ge(_0x138dc8,{showActiveMarker:_0xcaa49b=!0x0}={}){return(_0x13bef5,_0x517ad4,_0x398b58)=>{const _0x126c31=_0x138dc8['plugins']['get']('TrackChangesEditing');if(!_0x398b58['consumable']['test'](_0x517ad4['markerRange'],_0x13bef5['name']))return;const _0x4380f3=_0x138dc8['model'];for(const _0x429a17 of _0x517ad4['markerRange']['getItems']()){if(!_0x429a17['is']('element','softBreak'))continue;const _0x3c2d34='deletion'==_0x517ad4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x29b354}=_0x126c31['_splitMarkerName'](_0x517ad4['markerName']),_0x5590e6=_0x398b58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c2d34,'data-author-id':_0x29b354}),_0x246a0f=_0x398b58['mapper']['toViewPosition'](_0x4380f3['createPositionBefore'](_0x429a17));_0xcaa49b&&_0x126c31['activeMarkers']['includes'](_0x517ad4['markerName'])&&_0x398b58['writer']['addClass']('ck-suggestion-marker--active',_0x5590e6),_0x398b58['writer']['insert'](_0x246a0f,_0x5590e6),_0x398b58['mapper']['bindElementToMarker'](_0x5590e6,_0x517ad4['markerName']);}};}class St extends _0x4db285{['afterInit'](){const _0x2bcc03=this['editor'],_0x105bdb=_0x2bcc03['model'],_0x120989=_0x2bcc03['locale'];if(!_0x2bcc03['plugins']['has']('StandardEditingModeEditing'))return;const _0x17b61b=_0x2bcc03['plugins']['get']('TrackChangesEditing'),_0x2b1bf9='restrictedEditingException',_0x1e868e=_0x2bcc03['commands']['get'](_0x2b1bf9);_0x17b61b['enableCommand'](_0x2b1bf9,(_0x2ac98e,_0x35014f={})=>{const _0x19c492=_0x105bdb['document']['selection'];if(_0x19c492['isCollapsed'])return void _0x2ac98e(_0x35014f);const _0x5d63b1=void 0x0!==_0x35014f['forceValue']?_0x35014f['forceValue']:!_0x1e868e['value'];_0x105bdb['change'](()=>{const _0x42d63b=Array['from'](_0x19c492['getRanges']());for(const _0x5082d6 of _0x42d63b){const _0xc8ef4e=_0x5d63b1?[_0x5082d6]:io(_0x2b1bf9,_0x5082d6,_0x105bdb);for(const _0x49a7f4 of _0xc8ef4e)_0x17b61b['markInlineFormat'](_0x49a7f4,{'commandName':_0x2b1bf9,'commandParams':[{'forceValue':_0x5d63b1}]});}});}),_0x17b61b['descriptionFactory']['registerDescriptionCallback'](_0x14f577=>{if('formatBlock'!=_0x14f577['type']&&'formatInline'!=_0x14f577['type'])return;const {data:_0x3ef87e}=_0x14f577;return _0x3ef87e&&_0x3ef87e['commandName']==_0x2b1bf9?_0x3ef87e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x120989,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x120989,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4db285{['afterInit'](){const _0x21796e=this['editor'];if(!_0x21796e['plugins']['has']('Style')||!_0x21796e['plugins']['has']('DataSchema'))return;const _0x3222d1=_0x21796e['plugins']['get']('TrackChangesEditing'),_0x1d462c=_0x21796e['locale'],_0x5606ed=_0x21796e['config']['get']('style')||{},_0x12ca0f=_0x21796e['plugins']['get']('GeneralHtmlSupport'),_0x1d2132=_0x21796e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x21796e['plugins']['get']('DataSchema'),_0x5606ed['definitions']);_0x3222d1['enableDefaultAttributesIntegration']('style');const _0x57307c=new Set();for(const _0x51bffa of _0x1d2132['block']){const _0x31d345=_0x12ca0f['getGhsAttributeNameForElement'](_0x51bffa['element']);_0x57307c['add'](_0x31d345);}const _0x32c643=new Set();for(const _0x3b6568 of _0x1d2132['inline']){const _0x1ab6f2=_0x12ca0f['getGhsAttributeNameForElement'](_0x3b6568['element']);_0x32c643['add'](_0x1ab6f2);for(const _0x5cc823 of _0x3b6568['ghsAttributes'])_0x32c643['add'](_0x5cc823);}for(const _0x42aaf5 of _0x57307c)_0x3222d1['registerBlockAttribute'](_0x42aaf5),_0x3222d1['descriptionFactory']['registerAttributeLabel'](_0x42aaf5,o(_0x1d462c,'FORMAT_STYLE'));for(const _0x3d01db of _0x32c643)_0x3222d1['registerInlineAttribute'](_0x3d01db),_0x3222d1['descriptionFactory']['registerAttributeLabel'](_0x3d01db,o(_0x1d462c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d265f=this['editor'],_0x38653a=_0x6d265f['locale'];_0x6d265f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56276b=>{if('formatBlock'!=_0x56276b['type']&&'formatInline'!=_0x56276b['type'])return;const {data:_0x48a8c2}=_0x56276b;return _0x48a8c2&&'style'===_0x48a8c2['commandName']?_0x48a8c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38653a,'*Set\x20format:*\x20%0',_0x48a8c2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x38653a,'*Remove\x20format:*\x20%0',_0x48a8c2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4db285{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x48cb9f){super(_0x48cb9f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x78203c=this['editor'],_0x173293=_0x78203c['model']['document']['selection'];if(!_0x78203c['plugins']['has']('TableEditing'))return;const _0x3a7279=_0x78203c['locale'],_0x15fb2f=_0x78203c['plugins']['get']('TrackChangesEditing'),_0x52de83=_0x78203c['plugins']['get']('TableUtils');_0x15fb2f['descriptionFactory']['registerElementLabel']('table',_0x22f648=>o(_0x3a7279,'ELEMENT_TABLE',_0x22f648)),this['_setupColumnsRowsFixing'](),_0x15fb2f['enableCommand']('insertTable'),_0x15fb2f['enableCommand']('selectTableRow'),_0x15fb2f['enableCommand']('selectTableColumn');for(const _0x569f8b of['insertTableRowAbove','insertTableRowBelow']){const _0x128d5b=_0x78203c['commands']['get'](_0x569f8b);_0x15fb2f['enableCommand'](_0x569f8b,_0x44ea6f=>{_0x78203c['model']['change'](_0x5ae01a=>{_0x44ea6f();const _0xa6f81a='above'===_0x128d5b['order'],_0x4f02aa=_0x52de83['getSelectionAffectedTableCells'](_0x173293),_0x5ec8c0=_0x52de83['getRowIndexes'](_0x4f02aa),_0x5840d3=_0xa6f81a?_0x5ec8c0['first']-0x1:_0x5ec8c0['last']+0x1,_0x4dafda=_0x4f02aa[0x0]['findAncestor']('table'),_0x2fa2fa=_0x52de83['createTableWalker'](_0x4dafda,{'startRow':_0x5840d3,'endRow':_0x5840d3}),_0x5aca2c=Array['from'](_0x2fa2fa)['map'](_0x3c7978=>_0x5ae01a['createRangeOn'](_0x3c7978['cell']));_0x15fb2f['markMultiRangeInsertion'](_0x5aca2c,'tableRow');});});}for(const _0x22e630 of['insertTableColumnLeft','insertTableColumnRight']){const _0x44702f=_0x78203c['commands']['get'](_0x22e630);_0x15fb2f['enableCommand'](_0x22e630,_0x441934=>{_0x78203c['model']['change'](_0x10d989=>{_0x441934();const _0x48a6f3='left'===_0x44702f['order'],_0x1659bf=_0x52de83['getSelectionAffectedTableCells'](_0x173293),_0x544b4f=_0x52de83['getColumnIndexes'](_0x1659bf),_0x3060b2=_0x48a6f3?_0x544b4f['first']-0x1:_0x544b4f['last']+0x1,_0x586a7f=_0x1659bf[0x0]['findAncestor']('table'),_0x456d0c=_0x52de83['createTableWalker'](_0x586a7f,{'startRow':0x0,'column':_0x3060b2,'includeAllSlots':!0x1}),_0x11b4d9=Array['from'](_0x456d0c)['map'](_0x465dd7=>_0x10d989['createRangeOn'](_0x465dd7['cell']));_0x15fb2f['markMultiRangeInsertion'](_0x11b4d9,'tableColumn');});});}for(const _0x2cb6f4 of['removeTableRow','removeTableColumn']){const _0xac1f84=_0x2cb6f4['substr'](0xb),_0x18edb5=_0xac1f84['toLowerCase'](),_0x5d7bf4=_0x18edb5['substr'](0x0,0x3)+'span',_0x5dedac='table'+_0xac1f84,_0x48990e='min'+_0xac1f84,_0xb01aea='max'+_0xac1f84;_0x15fb2f['enableCommand'](_0x2cb6f4,()=>{_0x78203c['model']['change'](_0xd30ea7=>{const _0x89bc91=_0x52de83['getSelectionAffectedTableCells'](_0x173293),_0x320c1d=_0x89bc91[0x0]['findAncestor']('table');let _0x3d8e0c;if('removeTableRow'==_0x2cb6f4){const _0x585e82=_0x52de83['getRowIndexes'](_0x89bc91);_0x3d8e0c={'startRow':_0x585e82['first'],'endRow':_0x585e82['last'],'includeAllSlots':!0x0};}else{const _0x4e212b=_0x52de83['getColumnIndexes'](_0x89bc91);_0x3d8e0c={'startColumn':_0x4e212b['first'],'endColumn':_0x4e212b['last'],'includeAllSlots':!0x0};}const _0x190d0c=_0x52de83['createTableWalker'](_0x320c1d,_0x3d8e0c),_0xfcd833=Array['from'](_0x190d0c)['map'](({cell:_0x390253})=>_0x390253),_0x139766=be(_0xfcd833['filter'](_0x3a9729=>_0x3a9729['hasAttribute'](_0x5d7bf4))),_0x18d41a=be(_0xfcd833['filter'](_0x4a1063=>!_0x4a1063['hasAttribute'](_0x5d7bf4)))['map'](_0x55e93b=>_0xd30ea7['createRangeOn'](_0x55e93b)),_0x593cc6=_0x15fb2f['markMultiRangeDeletion'](_0x18d41a,_0x5dedac);if(_0x593cc6&&('tableRow'==_0x593cc6['subType']||'tableColumn'==_0x593cc6['subType'])){const _0xec5eb3=this['_getSuggestionCoords'](_0x593cc6);for(const _0x2d7f32 of _0x139766){const _0xe98ee1=_0xd30ea7['createRangeOn'](_0x2d7f32),_0x447ece=_0x52de83['getCellLocation'](_0x2d7f32),_0x5daa80=_0x2d7f32['getAttribute'](_0x5d7bf4)-0x1,_0x50066f=_0xec5eb3[_0x48990e],_0x4d4c0b=_0xec5eb3[_0xb01aea];_0x50066f<=_0x447ece[_0x18edb5]&&_0x447ece[_0x18edb5]+_0x5daa80<=_0x4d4c0b&&_0x593cc6['addRange'](_0xe98ee1);}}});});}function _0x1e2ed9(_0x1e6db6){const _0x1e2079=Array['from'](_0x173293['getRanges']())['map'](_0xd08dee=>_0x52a99c['fromRange'](_0xd08dee));_0x78203c['model']['change'](_0xadb89b=>{const _0x9ad7cc=_0xadb89b['batch'];_0x1e6db6=_0x1e6db6['filter'](_0x5e0e60=>'$graveyard'!=_0x5e0e60['root']['rootName']),_0xadb89b['setSelection'](_0x1e6db6),_0x78203c['commands']['get']('removeTableRow')['refresh'](),_0x78203c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x78203c['model']['enqueueChange'](()=>{_0x78203c['model']['enqueueChange'](_0x9ad7cc,_0x3f9cb1=>{const _0x38e537=_0x1e2079['filter'](_0x142a17=>'$graveyard'!=_0x142a17['root']['rootName']);_0x38e537['length']>0x0&&_0x3f9cb1['setSelection'](_0x38e537);for(const _0x4e5db0 of _0x1e2079)_0x4e5db0['detach']();});});});}function _0x512884(_0x1fabe6){_0x78203c['model']['change'](_0x4dee3f=>{const _0x283427=Array['from'](_0x173293['getRanges']())['map'](_0x5ed276=>_0x52a99c['fromRange'](_0x5ed276)),_0x3e533d=[];for(const _0x4499a9 of _0x1fabe6)for(const _0x14a017 of _0x4499a9['getItems']({'shallow':!0x0}))_0x3e533d['push'](_0x14a017);for(const _0x3861fc of _0x3e533d)'$graveyard'!=_0x3861fc['root']['rootName']&&(_0x4dee3f['setSelection'](_0x4dee3f['createPositionAt'](_0x3861fc,0x0)),_0x78203c['commands']['get']('removeTableColumn')['refresh'](),_0x78203c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3ce1a1=_0x283427['filter'](_0x334635=>'$graveyard'!=_0x334635['root']['rootName']);_0x3ce1a1['length']>0x0&&_0x4dee3f['setSelection'](_0x3ce1a1);for(const _0xab0623 of _0x283427)_0xab0623['detach']();});}function _0x568318(_0x40343f,_0x39d0a8){return _0x39d0a8['every'](_0x3667b5=>_0x40343f['some'](_0x232212=>_0x232212['end']['isEqual'](_0x3667b5['start'])||_0x3667b5['end']['isEqual'](_0x232212['start'])));}function _0x582ece(_0x52debc,_0xdaa1c0){return!_0x52debc['some'](_0x1a1715=>_0xdaa1c0['some'](_0x2073eb=>_0x1a1715['isIntersecting'](_0x2073eb)))&&_0x52debc['some'](_0x47828d=>_0xdaa1c0['some'](_0x330b3a=>_0x47828d['end']['isTouching'](_0x330b3a['start'])));}_0x78203c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x416797,_0xf6f2ff,_0x585dc7)=>{if(!_0x585dc7['options']['showSuggestionHighlights'])return;const _0x19017f=_0xf6f2ff['item'];if(!_0x19017f)return;const _0x384de7=_0x585dc7['mapper']['toViewElement'](_0x19017f);function _0x4b5b1c(_0x14d88f){return Array['isArray'](_0x14d88f)?_0x14d88f:[_0x14d88f];}_0x384de7&&'tableCell'===_0x19017f['name']&&_0x519e3d(_0x384de7,_0x585dc7['writer'],(_0x4f6dfa,_0x3b3d6e,_0x1f7921)=>_0x1f7921['addClass'](_0x4b5b1c(_0x3b3d6e['classes']),_0x4f6dfa),(_0x51040a,_0x41329b,_0x99cfbe)=>_0x99cfbe['removeClass'](_0x4b5b1c(_0x41329b['classes']),_0x51040a));},{'priority':'highest'}),_0x15fb2f['descriptionFactory']['registerDescriptionCallback'](_0x5bf552=>{if('insertion'!=_0x5bf552['type']&&'deletion'!=_0x5bf552['type'])return;const _0x303b86=_0x5bf552['getContainedElement']();if(null!=_0x303b86&&_0x303b86['is']('element','table')){if('insertion'==_0x5bf552['type']){const _0x245c20=_0x5bf552['getItems']()['filter'](_0x253dd2=>_0x253dd2['is']('$textProxy'))['map'](_0x430ac7=>_0x430ac7['data']);if(_0x245c20['length'])return{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x245c20['join']('\x20')+'\x22'))};}if('deletion'==_0x5bf552['type']){const _0x9b650a=_0x5bf552['getItems']()['filter'](_0x4a1ad0=>_0x4a1ad0['is']('$textProxy'))['map'](_0x26ed69=>_0x26ed69['data']);if(_0x9b650a['length'])return{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9b650a['join']('\x20')+'\x22'))};}}}),_0x15fb2f['descriptionFactory']['registerDescriptionCallback'](_0x172326=>{if('tableRow'==_0x172326['subType']){const _0x31390d=_0x172326['getItems']()['filter'](_0x5bd13b=>_0x5bd13b['is']('$textProxy'))['map'](_0x37100c=>_0x37100c['data']),_0x3afaf1=this['_getSuggestionCoords'](_0x172326),_0x915b4d=_0x3afaf1['maxRow']-_0x3afaf1['minRow']+0x1;if('insertion'==_0x172326['type'])return _0x31390d['length']?{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x915b4d,'\x22'+_0x31390d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW',_0x915b4d))};if('deletion'==_0x172326['type'])return _0x31390d['length']?{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x915b4d,'\x22'+_0x31390d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW',_0x915b4d))};}if('tableColumn'==_0x172326['subType']){const _0xf8bfcc=_0x172326['getItems']()['filter'](_0x4ef420=>_0x4ef420['is']('$textProxy'))['map'](_0x38f550=>_0x38f550['data']),_0x33c272=this['_getSuggestionCoords'](_0x172326),_0x1acfce=_0x33c272['maxColumn']-_0x33c272['minColumn']+0x1;if('insertion'==_0x172326['type'])return _0xf8bfcc['length']?{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1acfce,'\x22'+_0xf8bfcc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN',_0x1acfce))};if('deletion'==_0x172326['type'])return _0xf8bfcc['length']?{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1acfce,'\x22'+_0xf8bfcc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN',_0x1acfce))};}}),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e2ed9),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e2ed9),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x512884),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x512884),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x568318),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x568318),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x582ece),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x582ece);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c9517=this['editor'],_0x15386b=_0x3c9517['model']['document']['selection'];return(_0x1cc2f0,_0xc2b534)=>{_0x3c9517['model']['change'](_0x47b1e3=>{const {commandName:_0x34555b,commandParams:_0x2e1fc8}=_0xc2b534;let _0x2a147f=_0x1cc2f0[0x0]['end']['nodeBefore'];_0x2e1fc8&&_0x2e1fc8[0x0]&&!0x1===_0x2e1fc8[0x0]['forceValue']&&(_0x2a147f=_0x1cc2f0[0x0]['start']['nodeAfter']);const _0x474652=_0x47b1e3['createRangeIn'](_0x2a147f);if('$graveyard'==_0x474652['root']['rootName'])return;const _0x18cdb9=Array['from'](_0x15386b['getRanges']())['map'](_0x588094=>_0x52a99c['fromRange'](_0x588094));_0x47b1e3['setSelection'](_0x474652),_0x3c9517['commands']['get'](_0x34555b)['refresh'](),_0x2e1fc8['push']({'forceDefaultExecution':!0x0}),_0x3c9517['execute'](_0x34555b,..._0x2e1fc8);const _0x4c5974=_0x18cdb9['filter'](_0x37c527=>'$graveyard'!=_0x37c527['root']['rootName']);_0x4c5974['length']>0x0&&_0x47b1e3['setSelection'](_0x4c5974);for(const _0x86506c of _0x18cdb9)_0x86506c['detach']();});};}['_getCoordsForCells'](_0x3d1937){const _0x4d9d34=this['editor']['plugins']['get']('TableUtils');let _0x1009a2=Number['MAX_SAFE_INTEGER'],_0x55be1f=Number['MIN_SAFE_INTEGER'],_0x56d42d=Number['MAX_SAFE_INTEGER'],_0x34dbfc=Number['MIN_SAFE_INTEGER'];for(const _0x5d621c of _0x3d1937){if('$graveyard'==_0x5d621c['root']['rootName'])continue;const {row:_0x255737,column:_0x5b030b}=_0x4d9d34['getCellLocation'](_0x5d621c),_0x22b7fe=_0x5d621c['hasAttribute']('rowspan')?_0x5d621c['getAttribute']('rowspan')-0x1:0x0,_0x2f5c93=_0x5d621c['hasAttribute']('colspan')?_0x5d621c['getAttribute']('colspan')-0x1:0x0;_0x1009a2=_0x255737<_0x1009a2?_0x255737:_0x1009a2,_0x55be1f=_0x255737+_0x22b7fe>_0x55be1f?_0x255737+_0x22b7fe:_0x55be1f,_0x56d42d=_0x5b030b<_0x56d42d?_0x5b030b:_0x56d42d,_0x34dbfc=_0x5b030b+_0x2f5c93>_0x34dbfc?_0x5b030b+_0x2f5c93:_0x34dbfc;}return{'minRow':_0x1009a2,'maxRow':_0x55be1f,'minColumn':_0x56d42d,'maxColumn':_0x34dbfc};}['_setupColumnsRowsFixing'](){const _0x5826e2=this['editor'],_0x3955e2=_0x5826e2['plugins']['get']('TrackChangesEditing'),_0x407645=_0x5826e2['plugins']['get']('TableUtils');_0x5826e2['model']['document']['on']('change:data',()=>{const _0x25d64d=Array['from'](_0x5826e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bd0eb,data:_0x23180a}of _0x25d64d){const {group:_0x46ce94,id:_0x341f81,subType:_0x21c605}=_0x3955e2['_splitMarkerName'](_0x4bd0eb);if('suggestion'!=_0x46ce94)continue;if(null!=_0x23180a['oldRange'])continue;const _0x9f7216=_0x3955e2['getSuggestion'](_0x341f81);this['_tablePostFixingSubtypes']['includes'](_0x21c605)&&this['_tableSuggestions']['add'](_0x9f7216);}},{'priority':'low'});const _0x37dd28=(_0x36d325,_0x405940)=>{let _0x49c696=!0x1;const _0x23dcb7=_0x405940['createRangeOn'](_0x36d325),_0xd06d39=_0x36d325['findAncestor']('table'),_0x3f4aa4=_0x407645['getCellLocation'](_0x36d325);for(const _0x37ec8f of this['_tableSuggestions']){const _0xeaa8a2=_0x37ec8f['subType'],_0x528266=_0xeaa8a2['startsWith']('tablePaste'),_0x312e98=_0xeaa8a2['substr'](_0x528266?0xa:0x5),_0x4f4e06=_0x312e98['toLowerCase'](),_0x6bf834=_0x4f4e06['substr'](0x0,0x3)+'span',_0x2804a8='min'+_0x312e98,_0x69f575='max'+_0x312e98;if(!_0x37ec8f['isInContent'])continue;if(_0xd06d39!=_0x37ec8f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x37ec8f['isIntersectingWithRange'](_0x23dcb7))continue;const _0x5b46c4=_0x36d325['hasAttribute'](_0x6bf834)?_0x36d325['getAttribute'](_0x6bf834)-0x1:0x0,_0x3a6fb3=this['_getSuggestionCoords'](_0x37ec8f),_0x277469=_0x3a6fb3[_0x2804a8],_0x356560=_0x3a6fb3[_0x69f575];_0x277469<=_0x3f4aa4[_0x4f4e06]&&_0x3f4aa4[_0x4f4e06]+_0x5b46c4<=_0x356560&&(_0x37ec8f['addRange'](_0x23dcb7),_0x49c696=!0x0);}return _0x49c696;};_0x5826e2['model']['document']['registerPostFixer'](_0x861efe=>{let _0x46aa38=!0x1;for(const _0x44969a of _0x5826e2['model']['document']['differ']['getChanges']())if('insert'==_0x44969a['type']){if('tableRow'==_0x44969a['name']){for(const _0x220507 of _0x44969a['position']['nodeAfter']['getChildren']())_0x46aa38=_0x46aa38||_0x37dd28(_0x220507,_0x861efe);}else'tableCell'==_0x44969a['name']&&(_0x46aa38=_0x46aa38||_0x37dd28(_0x44969a['position']['nodeAfter'],_0x861efe));}return _0x46aa38;});}['_getSuggestionCoords'](_0x44578e){return this['_getCoordsForCells'](_0x44578e['getRanges']()['map'](_0x1177d8=>_0x1177d8['start']['nodeAfter']));}}function be(_0x104b03){return Array['from'](new Set(_0x104b03)['values']());}class vt extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x28a0cf=this['editor'],_0x97e606=_0x28a0cf['model']['document']['selection'],_0x3acb04=_0x28a0cf['locale'];if(!_0x28a0cf['plugins']['has']('TableEditing'))return;const _0x51147b=_0x28a0cf['plugins']['get']('TrackChangesEditing'),_0x47ff8a=_0x28a0cf['plugins']['get']('TableUtils'),_0x42de4f=_0x28a0cf['plugins']['get'](It);_0x42de4f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51147b['enableCommand']('mergeTableCells',()=>{const _0x29741a=_0x47ff8a['getSelectionAffectedTableCells'](_0x28a0cf['model']['document']['selection']);_0x28a0cf['model']['change'](()=>{_0x51147b['markMultiRangeBlockFormat'](_0x29741a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x28a0cf['commands']['get']('mergeTableCells')['on']('execute',(_0x25dd3a,_0x33efec)=>{_0x28a0cf['commands']['get']('trackChanges')['value']&&(_0x33efec['length']>0x0&&_0x33efec[_0x33efec['length']-0x1]&&_0x33efec[_0x33efec['length']-0x1]['forceDefaultExecution']||_0x51147b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x25dd3a['stop']());},{'priority':'highest'});for(const _0x1940d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x212c8c=_0x28a0cf['commands']['get'](_0x1940d1);_0x51147b['enableCommand'](_0x1940d1,()=>{const _0x32a195=_0x28a0cf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x71932d=>_0x71932d['is']('element','tableCell')),_0x27da21=_0x212c8c['value'];_0x28a0cf['model']['change'](()=>{_0x51147b['markMultiRangeBlockFormat']([_0x32a195,_0x27da21],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1270a1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x407b7d=_0x28a0cf['commands']['get'](_0x1270a1);_0x51147b['enableCommand'](_0x1270a1,()=>{const _0x15d682=_0x47ff8a['getSelectionAffectedTableCells'](_0x28a0cf['model']['document']['selection'])[0x0],_0x78750b=_0x15d682['findAncestor']('table'),{column:_0x651de7,row:_0x2ccf79}=_0x47ff8a['getCellLocation'](_0x15d682);let _0x1c5427=[];if('horizontally'==_0x407b7d['direction']){const _0x4baba1=_0x47ff8a['createTableWalker'](_0x78750b,{'startRow':_0x2ccf79,'endRow':_0x2ccf79,'includeAllSlots':!0x0});_0x1c5427=Array['from'](_0x4baba1)['map'](_0x41d567=>_0x41d567['cell']);}else{const _0x48ab0b=_0x47ff8a['createTableWalker'](_0x78750b,{'column':_0x651de7,'includeAllSlots':!0x0});_0x1c5427=Array['from'](_0x48ab0b)['map'](_0x2a2f15=>_0x2a2f15['cell']);}_0x28a0cf['model']['change'](_0x16d357=>{_0x51147b['markBlockFormat'](_0x16d357['createRangeOn'](_0x15d682),{'commandName':_0x1270a1,'commandParams':[]},_0x1c5427,_0x1270a1);});});}_0x51147b['descriptionFactory']['registerDescriptionCallback'](_0x582f26=>{if('formatBlock'!=_0x582f26['type']&&'formatInline'!=_0x582f26['type'])return;const {data:_0xe8aa86}=_0x582f26;return _0xe8aa86&&'mergeTableCells'==_0xe8aa86['commandName']?{'type':'format','content':o(_0x3acb04,'*Merge\x20cells*')}:void 0x0;}),_0x51147b['descriptionFactory']['registerDescriptionCallback'](_0x1aff91=>{if('formatBlock'!=_0x1aff91['type']&&'formatInline'!=_0x1aff91['type'])return;const {data:_0x1f7893}=_0x1aff91;return _0x1f7893?'splitTableCellVertically'==_0x1f7893['commandName']?{'type':'format','content':o(_0x3acb04,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1f7893['commandName']?{'type':'format','content':o(_0x3acb04,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa789f3=_0x42de4f['_acceptFormatSuggestionCallbackFactory']();for(const _0x5e332d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51147b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e332d,'accept',_0xa789f3);for(const _0x67c6af of['splitTableCellVertically','splitTableCellHorizontally'])_0x51147b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x67c6af,'accept',_0xa789f3);_0x51147b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xa90772=>{_0x28a0cf['model']['change'](_0x2a1f49=>{const _0x225d32=Array['from'](_0x97e606['getRanges']())['map'](_0x5991bd=>_0x52a99c['fromRange'](_0x5991bd));_0x2a1f49['setSelection'](_0xa90772),_0x28a0cf['commands']['get']('mergeTableCells')['refresh'](),_0x28a0cf['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x502fa4=_0x225d32['filter'](_0x237ef7=>'$graveyard'!=_0x237ef7['root']['rootName']);_0x502fa4['length']>0x0&&_0x2a1f49['setSelection'](_0x502fa4);for(const _0x2b9f96 of _0x225d32)_0x2b9f96['detach']();});});for(const _0x4235ea of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56ce00=_0x28a0cf['commands']['get'](_0x4235ea);_0x56ce00['on']('set:isEnabled',(_0x22e961,_0x4143cb,_0x282a7b)=>{if(_0x282a7b){const _0x2dbd3e=_0x28a0cf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38651d=>_0x38651d['is']('element','tableCell'));this['_areMergableCells'](_0x56ce00['value'],_0x2dbd3e)||(_0x22e961['return']=!0x1,_0x22e961['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xa6fca5=this['editor']['commands']['get']('mergeTableCells'),_0x2ded25=this['editor']['plugins']['get']('TableUtils');if(!_0xa6fca5['isEnabled'])return!0x1;const _0x3fd61f=_0x2ded25['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x551cfe of _0x3fd61f)for(const _0x3e7277 of _0x3fd61f)if(_0x551cfe!=_0x3e7277&&!this['_areMergableCells'](_0x551cfe,_0x3e7277))return!0x1;return!0x0;}['_areMergableCells'](_0x2241a8,_0x3a752f){const _0x30273f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32cb77=this['editor']['model']['createRangeOn'](_0x2241a8),_0x5895a4=this['editor']['model']['createRangeOn'](_0x3a752f),_0xe9aac0=new Set(),_0x246bef=new Set();for(const _0x2faecf of _0x30273f['getSuggestions']())if(('insertion'==_0x2faecf['type']||'deletion'==_0x2faecf['type']||'mergeTableCells'==_0x2faecf['subType'])&&_0x2faecf['isInContent']){for(const _0x545e23 of _0x2faecf['getRanges']())_0x545e23['containsRange'](_0x32cb77,!0x0)&&_0xe9aac0['add'](_0x2faecf['type']+':'+_0x2faecf['author']['id']),_0x545e23['containsRange'](_0x5895a4,!0x0)&&_0x246bef['add'](_0x2faecf['type']+':'+_0x2faecf['author']['id']);}if(_0xe9aac0['size']!=_0x246bef['size'])return!0x1;for(const _0x29974d of _0xe9aac0)if(!_0x246bef['has'](_0x29974d))return!0x1;return!0x0;}}class Ct extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x47da2b=this['editor'];if(!_0x47da2b['plugins']['has']('TableEditing'))return;const _0x1bf5e6=_0x47da2b['locale'],_0x29465e=_0x47da2b['plugins']['get']('TrackChangesEditing');_0x29465e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x29465e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x29465e['registerBlockAttribute']('headingRows'),_0x29465e['registerBlockAttribute']('headingColumns'),_0x29465e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1bf5e6,'FORMAT_HEADER_ROW')),_0x29465e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1bf5e6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8b16f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce501e=this['editor']['plugins']['get']('TableUtils'),_0x59e730=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x495d17({showActiveMarker:_0x65c14=!0x0,setDataAttribute:_0x13ad72=!0x0}={}){return(_0x38c196,_0x478c76,_0x34a4b6)=>{const {type:_0x4e8ec5,id:_0x1481ed}=_0x8b16f4['_splitMarkerName'](_0x478c76['markerName']),_0x46d120=_0x8b16f4['getSuggestion'](_0x1481ed),_0x42ef56=_0x46d120['data'];if('formatBlock'!=_0x46d120['type']||!_0x42ef56||'setTableColumnHeader'!=_0x42ef56['commandName'])return;if(_0x478c76['item'])return void _0x38c196['stop']();if(!_0x34a4b6['consumable']['consume'](_0x478c76['markerRange'],_0x38c196['name']))return;const _0x34db3a=_0x478c76['markerRange']['start']['nodeAfter'],_0x46ea9f=_0x478c76['markerRange']['end']['nodeBefore'],_0x5054ef=_0x34db3a['parent']['parent'],{column:_0x5840fc}=_0xce501e['getCellLocation'](_0x34db3a),{column:_0x104d6a}=_0xce501e['getCellLocation'](_0x46ea9f);for(let _0xeaffcb=_0x5840fc;_0xeaffcb<=_0x104d6a;_0xeaffcb++){const _0x155ef6=_0xce501e['createTableWalker'](_0x5054ef,{'column':_0xeaffcb,'includeAllSlots':!0x1});for(const _0x167555 of _0x155ef6){const _0x4337f2=_0x167555['cell'],_0x108c73=_0x34a4b6['mapper']['toViewElement'](_0x4337f2);_0x34a4b6['writer']['addClass']('ck-suggestion-marker-'+_0x4e8ec5,_0x108c73),_0x13ad72&&_0x34a4b6['writer']['setAttribute']('data-suggestion',_0x1481ed,_0x108c73),_0x34a4b6['mapper']['bindElementToMarker'](_0x108c73,_0x478c76['markerName']),_0x65c14&&(_0x8b16f4['activeMarkers']['includes'](_0x478c76['markerName'])?_0x34a4b6['writer']['addClass']('ck-suggestion-marker--active',_0x108c73):_0x34a4b6['writer']['removeClass']('ck-suggestion-marker--active',_0x108c73));}}};}_0x8b16f4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x59e730),_0x8b16f4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x59e730),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x495d17(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x195a8a,_0x33445e,_0x460f05)=>{_0x460f05['options']['showSuggestionHighlights']&&_0x495d17({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x195a8a,_0x33445e,_0x460f05);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4afdda,_0x44571d,_0x1c4a36)=>{const {type:_0x1ef154,id:_0xeaebed}=_0x8b16f4['_splitMarkerName'](_0x44571d['markerName']),_0x473ef9=_0x8b16f4['getSuggestion'](_0xeaebed),_0x4e4ccd=_0x473ef9['data'];if('formatBlock'!=_0x473ef9['type']||!_0x4e4ccd||'setTableColumnHeader'!=_0x4e4ccd['commandName'])return;const _0x71b6cf=_0x1c4a36['mapper']['markerNameToElements'](_0x44571d['markerName']);if(_0x71b6cf){for(const _0xb07239 of _0x71b6cf)_0x1c4a36['writer']['removeClass']('ck-suggestion-marker-'+_0x1ef154,_0xb07239),_0x1c4a36['writer']['removeClass']('ck-suggestion-marker--active',_0xb07239),_0x1c4a36['writer']['removeAttribute']('data-suggestion',_0xb07239),_0x1c4a36['mapper']['unbindElementFromMarkerName'](_0xb07239,_0x44571d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b747a=this['editor'],_0x29d4d0=_0x3b747a['locale'];function _0x17ae7c(_0x582912){return{'type':'format','content':o(_0x29d4d0,'*Format:*\x20%0',_0x582912)};}_0x3b747a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x348b23=>{if('formatBlock'!=_0x348b23['type'])return;const {data:_0x2289c9}=_0x348b23;if(_0x2289c9){if('setTableRowHeader'==_0x2289c9['commandName']){const _0x1aed14=_0x2289c9['commandParams'][0x0]['forceValue'];return _0x17ae7c(o(_0x29d4d0,_0x1aed14?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2289c9['commandName']){const _0x1a403e=_0x2289c9['commandParams'][0x0]['forceValue'];return _0x17ae7c(o(_0x29d4d0,_0x1a403e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x231568=>[_0x231568,null]));class _t extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x184741=this['editor'];if(!_0x184741['plugins']['has']('TableClipboard'))return;const _0x271346=_0x184741['plugins']['get']('TrackChangesEditing'),_0x3c78cb=_0x184741['plugins']['get']('TableUtils'),_0x374bb7=_0x184741['plugins']['get'](It),_0x1aaa7e=_0x184741['plugins']['get']('TableClipboard');_0x374bb7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x184741['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x184741['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x26ab15=null;_0x184741['model']['on']('insertContent',(_0x25d234,_0x3768c3)=>{const [_0x19a5db,_0x2bc82e]=_0x3768c3,_0x1891d3=_0x3768c3[_0x3768c3['length']-0x1];_0x1891d3&&_0x1891d3['forceDefaultExecution']||_0x271346['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28167e,_0x337311,_0xbed8ba,_0x48c2f6,_0x34ff73){if(_0x337311&&!_0x337311['is']('documentSelection'))return!0x1;const _0x277d51=_0x34ff73['getTableIfOnlyTableInContent'](_0x28167e,_0xbed8ba);if(!_0x277d51||!Re(_0x277d51,void 0x0,_0x48c2f6))return!0x1;const _0xc4616=_0x48c2f6['getSelectionAffectedTableCells'](_0xbed8ba['document']['selection']);if(!_0xc4616['length'])return!0x1;const _0xa4e6f9=_0xc4616[0x0]['findAncestor']('table'),_0x969853=_0x48c2f6['getRowIndexes'](_0xc4616),_0x20d67a=_0x48c2f6['getColumnIndexes'](_0xc4616),_0x132ae2={'startRow':_0x969853['first'],'endRow':_0x969853['last'],'startColumn':_0x20d67a['first'],'endColumn':_0x20d67a['last']};return 0x1==_0xc4616['length']&&(_0x132ae2['endRow']+=_0x48c2f6['getRows'](_0x277d51)-0x1,_0x132ae2['endColumn']+=_0x48c2f6['getColumns'](_0x277d51)-0x1),Re(_0xa4e6f9,_0x132ae2,_0x48c2f6);}(_0x19a5db,_0x2bc82e,_0x184741['model'],_0x3c78cb,_0x1aaa7e)&&(_0x25d234['stop'](),_0x26ab15={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x184741['model']['change'](()=>{_0x184741['model']['insertContent'](_0x3768c3[0x0],_0x3768c3[0x1],_0x3768c3[0x2],{'forceDefaultExecution':!0x0});const _0x2642ee=_0x1d9854(),{rowInsertionRanges:_0x3eaa1a,columnInsertionRanges:_0x48511a,insertionRanges:_0x35d178,deletionRanges:_0x433d4d,cells:_0xd3e4ed}=_0x26ab15;_0x3eaa1a['length']&&_0x271346['markMultiRangeInsertion'](_0x3eaa1a,'tablePasteRow',{'tablePasteChainId':_0x2642ee}),_0x48511a['length']&&_0x271346['markMultiRangeInsertion'](_0x48511a,'tablePasteColumn',{'tablePasteChainId':_0x2642ee}),_0x35d178['length']&&(_0x271346['markMultiRangeInsertion'](_0x35d178,'tablePaste',{'tablePasteChainId':_0x2642ee,'skipNestingCheck':!0x0}),_0x35d178['forEach'](_0x5c5cab=>_0x5c5cab['detach']?.())),_0x433d4d['length']&&(_0x271346['markMultiRangeDeletion'](_0x433d4d,'tablePaste',{'tablePasteChainId':_0x2642ee,'skipNestingCheck':!0x0}),_0x433d4d['forEach'](_0x3ba79e=>_0x3ba79e['detach']?.()));const _0x262fdf=_0x271346['markMultiRangeBlockFormat'](_0xd3e4ed['map'](({element:_0x11ba04})=>_0x11ba04),{'formatGroupId':_0x1d9854()},[],'tablePasteCell',{'tablePasteChainId':_0x2642ee});if(_0x262fdf){const _0xe66d9d=_0x262fdf['getMarkers'](),_0x66e650=[];for(const {element:_0x4c2c0f,attributes:_0x207efb}of _0xd3e4ed){if(!_0x207efb)continue;const _0x3bb766=_0x184741['model']['createRangeOn'](_0x4c2c0f),_0x174d02=_0xe66d9d['find'](_0x451b10=>_0x451b10['getRange']()['isEqual'](_0x3bb766));_0x174d02&&_0x66e650['push']([_0x174d02['name'],_0x207efb]);}_0x66e650['length']&&_0x262fdf['setAttribute']('markerAttributes',Object['fromEntries'](_0x66e650));}_0x26ab15=null;}));},{'priority':_0xa03c08['high']+0xa}),_0x184741['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d9f49,_0x44a84a)=>{const [_0x286194,_0x316e11,,_0x336166]=_0x44a84a;if(!_0x26ab15)return;_0x3d9f49['stop']();const _0x1995f6=_0x286194['cell'],_0x374e1b=_0x316e11,_0x200dd1=ke(_0x1995f6),_0x1c05a3=ke(_0x374e1b);_0x3d9f49['return']=_0x1995f6;let _0x4ddeda=null,_0x4adf28=null;if(_0x1c05a3||_0x200dd1){if(_0x200dd1&&!_0x1c05a3){_0x336166['remove'](_0x1995f6['getChild'](0x0));for(const _0xf6a8c9 of Array['from'](_0x374e1b['getChildren']()))_0x336166['insert'](_0xf6a8c9,_0x1995f6,'end');const _0x4d16c5=_0x26ab15['rowInsertionIndexes']['includes'](_0x286194['row']),_0xfc4c9f=_0x26ab15['columnInsertionIndexes']['includes'](_0x286194['column']);_0x4d16c5||_0xfc4c9f||(_0x4ddeda=_0x52a99c['fromRange'](_0x336166['createRangeIn'](_0x1995f6)));}else _0x1c05a3&&!_0x200dd1&&(_0x4adf28=_0x336166['createRangeIn'](_0x1995f6));}else{const _0xfc48cc=_0x336166['createElement']('tableCellSuggestion'),_0x542461=_0x336166['createElement']('tableCellSuggestion');_0x336166['wrap'](_0x336166['createRangeIn'](_0x1995f6),_0x542461),_0x336166['insert'](_0xfc48cc,_0x1995f6,0x0);for(const _0x47fe34 of Array['from'](_0x374e1b['getChildren']()))_0x336166['insert'](_0x47fe34,_0xfc48cc,'end');_0x4ddeda=_0x52a99c['fromRange'](_0x336166['createRangeOn'](_0xfc48cc)),_0x4adf28=_0x52a99c['fromRange'](_0x336166['createRangeOn'](_0x542461));}const _0x3a3022=Array['from'](_0x374e1b['getAttributes']())['filter'](([_0x3a17e2])=>Pe['includes'](_0x3a17e2));_0x26ab15['cells']['push']({'element':_0x1995f6,'attributes':_0x3a3022['length']?Object['fromEntries'](_0x3a3022):null}),_0x4ddeda&&_0x26ab15['insertionRanges']['push'](_0x4ddeda),_0x4adf28&&_0x26ab15['deletionRanges']['push'](_0x4adf28);},{'priority':'high'}),_0x3c78cb['on']('insertColumns',(_0x23ab0f,_0x3a9fd5)=>{const [_0x110dcb,_0x9840bb={}]=_0x3a9fd5;if(!_0x26ab15)return;const _0x593271=_0x9840bb['at']||0x0,_0x4ff377=_0x9840bb['columns']||0x1;_0x26ab15['columnInsertionIndexes']=new Array(_0x4ff377)['fill'](_0x593271)['map']((_0x6b25d2,_0x1afe97)=>_0x6b25d2+_0x1afe97);for(const {cell:_0x4b77fc}of _0x3c78cb['createTableWalker'](_0x110dcb,{'startColumn':_0x593271,'endColumn':_0x593271+_0x4ff377-0x1}))_0x26ab15['columnInsertionRanges']['push'](_0x184741['model']['createRangeOn'](_0x4b77fc));},{'priority':'low'}),_0x3c78cb['on']('insertRows',(_0x9597a5,_0x2cf057)=>{const [_0x406c30,_0x41f820={}]=_0x2cf057;if(!_0x26ab15)return;const _0x572ffe=_0x41f820['at']||0x0,_0x4818b7=_0x41f820['rows']||0x1;_0x26ab15['rowInsertionIndexes']=new Array(_0x4818b7)['fill'](_0x572ffe)['map']((_0x5cb241,_0x286226)=>_0x5cb241+_0x286226);for(const {cell:_0x417e68}of _0x3c78cb['createTableWalker'](_0x406c30,{'startRow':_0x572ffe,'endRow':_0x572ffe+_0x4818b7-0x1}))_0x26ab15['rowInsertionRanges']['push'](_0x184741['model']['createRangeOn'](_0x417e68));},{'priority':'low'}),_0x271346['descriptionFactory']['registerDescriptionCallback'](_0x4c9cc4=>{if(_0x4c9cc4['subType']&&_0x4c9cc4['subType']['startsWith']('tablePaste'))return _0x4c9cc4['previous']?{}:{'type':'insertion','content':o(_0x184741['locale'],'*Replace\x20table\x20cells*')};});const _0x4a6154=()=>!0x1;for(const _0x40826b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x271346['_suggestionFactory']['registerCustomCallback']('insertion',_0x40826b,'join',_0x4a6154),_0x271346['_suggestionFactory']['registerCustomCallback']('deletion',_0x40826b,'join',_0x4a6154),_0x271346['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40826b,'join',_0x4a6154);_0x271346['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4a6154),_0x271346['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4bba5c,_0x3eb72e,_0xe74d59)=>{const _0x4bfc42=_0x4bba5c['map'](_0xee919d=>_0xee919d['getContainedElement']())['filter'](_0x5efbef=>_0x5efbef),_0x10fcc6=new Map(_0x4bfc42['map'](_0x421797=>[_0x421797,null]));if(_0x26ab15){for(const {element:_0x19d629,attributes:_0xaecb36}of _0x26ab15['cells'])_0xaecb36&&_0x10fcc6['set'](_0x19d629,_0xaecb36);}else{if(_0xe74d59&&_0xe74d59['markerAttributes'])for(const [_0x26861e,_0xc6edab]of Object['entries'](_0xe74d59['markerAttributes'])){const _0x146660=_0x184741['model']['markers']['get'](_0x26861e),_0x49008a=_0x146660?_0x146660['getRange']()['getContainedElement']():null;_0x49008a&&_0x10fcc6['set'](_0x49008a,_0xc6edab);}}_0x184741['model']['change'](_0x425a45=>{for(const [_0x1551a0,_0x52f7ef]of _0x10fcc6)_0x425a45['setAttributes']({...we,..._0x52f7ef},_0x1551a0);});});const _0x23e76c=(_0x4d0601,_0x498a5d)=>{_0x271346['_suggestionFactory']['registerCustomCallback'](_0x4d0601,'tablePaste',_0x498a5d,(_0x30b865,_0x39f6d8,_0x5be470)=>{_0x184741['model']['change'](_0x5f2e80=>{const _0x576fc3=[];for(const _0x54aef4 of _0x30b865){const _0x29f678=_0x54aef4['start']['nodeAfter'];_0x29f678['is']('element','tableCellSuggestion')&&_0x576fc3['push'](_0x29f678);}_0x271346['_suggestionFactory']['getSuggestionCallback'](_0x4d0601,null,_0x498a5d)(_0x30b865,_0x39f6d8,_0x5be470);for(const _0x352f22 of _0x576fc3)'$graveyard'!=_0x352f22['root']['rootName']&&_0x5f2e80['unwrap'](_0x352f22);});});};_0x23e76c('insertion','accept'),_0x23e76c('insertion','discard'),_0x23e76c('deletion','accept'),_0x23e76c('deletion','discard'),_0x271346['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22c3cf=>{const _0x51ca27=_0x22c3cf['map'](_0x1937bc=>_0x1937bc['getContainedElement']()),_0x47e24b=_0x51ca27[0x0]['findAncestor']('table'),{minRow:_0x468c44,maxRow:_0x545be6}=_0x374bb7['_getCoordsForCells'](_0x51ca27);_0x3c78cb['removeRows'](_0x47e24b,{'at':_0x468c44,'rows':_0x545be6-_0x468c44+0x1});}),_0x271346['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2b2de0=>{const _0x5782a9=_0x2b2de0['map'](_0x3ac24e=>_0x3ac24e['getContainedElement']()),_0x3e55d5=_0x5782a9[0x0]['findAncestor']('table'),{minColumn:_0x24e321,maxColumn:_0xa420b4}=_0x374bb7['_getCoordsForCells'](_0x5782a9);_0x3c78cb['removeColumns'](_0x3e55d5,{'at':_0x24e321,'columns':_0xa420b4-_0x24e321+0x1});});const _0x3b5c87=(_0x276afd,_0xa97e48)=>{if(!_0xa97e48['subType']||!_0xa97e48['subType']['startsWith']('tablePaste'))return;const _0x3a9076=_0xa97e48['attributes']['tablePasteChainId'],_0x3d55af=_0x271346['getSuggestions']()['filter'](_0x1abe45=>_0x1abe45['isInContent']&&_0x1abe45['attributes']&&_0x1abe45['attributes']['tablePasteChainId']==_0x3a9076);_0x3d55af['length']&&_0xa97e48['getAllAdjacentSuggestions']()['length']!=_0x3d55af['length']&&_0x3d55af['reduce']((_0xd52999,_0xeff0da)=>(_0xd52999['next']=_0xeff0da,_0xeff0da['previous']=_0xd52999,_0xeff0da));};function _0x565b30(_0x234047,_0x418bae=!0x0){const {id:_0x44f1b1,authorId:_0x1c68f2}=_0x271346['_splitMarkerName'](_0x234047['markerName']),_0x161661=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d88e7=_0x271346['activeMarkers']['includes'](_0x234047['markerName']);return _0x1d88e7&&_0x161661['push']('ck-suggestion-marker--active'),{'classes':_0x161661,'attributes':{'data-suggestion':_0x44f1b1,'data-author-id':_0x1c68f2},'priority':_0x1d88e7&&_0x418bae?0xbc2:0xbb8};}_0x271346['on']('suggestionLoaded',_0x3b5c87,{'priority':'high'}),_0x271346['on']('suggestionUnloaded',_0x3b5c87,{'priority':'high'}),_0x184741['model']['document']['registerPostFixer'](()=>{let _0x3afa6c=!0x1;const _0x232115=Array['from'](_0x184741['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25bb39,data:_0x15997c}of _0x232115){const {group:_0x54a306,type:_0x4e8535,id:_0x306b9f}=_0x271346['_splitMarkerName'](_0x25bb39);if('suggestion'!=_0x54a306||'deletion'!=_0x4e8535||_0x15997c['oldRange'])continue;if(!_0x271346['hasSuggestion'](_0x306b9f))continue;const _0xa7c944=_0x271346['getSuggestion'](_0x306b9f)['getRanges'](),_0x39883b=_0x184741['plugins']['get']('Users')['me'];for(const _0x46596b of _0x271346['getSuggestions']()){if(!_0x46596b['isInContent']||_0x46596b['author']!=_0x39883b)continue;if('formatBlock'!=_0x46596b['type']||'tablePasteCell'!=_0x46596b['subType'])continue;if(_0x46596b['getRanges']()['every'](_0x2a1812=>_0xa7c944['some'](_0x36176d=>_0x36176d['containsRange'](_0x2a1812,!0x0)))){for(const _0xaad244 of _0x46596b['getAllAdjacentSuggestions']())_0xaad244['isInContent']&&(_0xaad244['discard'](),_0x3afa6c=!0x0);}}}return _0x3afa6c;}),_0x184741['model']['document']['registerPostFixer'](_0x4d9e7e=>{const _0x5533a3=_0x184741['commands']['get']('redo');if(!_0x5533a3||!_0x5533a3['_createdBatches']['has'](_0x4d9e7e['batch']))return!0x1;let _0x333df8=!0x1;const _0x4bd8f8=_0x184741['plugins']['get']('Users')['me'],_0x2a78c8=_0x184741['model']['document']['differ']['getChanges'](),_0x458d23=Array['from'](_0x184741['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2ab9a3,data:_0x38f608})=>{const {group:_0x192b83,subType:_0x433b8f,authorId:_0x317efb}=_0x271346['_splitMarkerName'](_0x2ab9a3);return'suggestion'==_0x192b83&&'tablePaste'==_0x433b8f&&_0x317efb==_0x4bd8f8['id']&&!_0x38f608['oldRange'];});for(const _0x40a95d of _0x2a78c8){if('insert'!=_0x40a95d['type']||'tableCellSuggestion'!=_0x40a95d['name']||0x1!=_0x40a95d['length'])continue;const _0x2d90cd=_0x4d9e7e['createRange'](_0x40a95d['position'],_0x40a95d['position']['getShiftedBy'](0x1));if(!_0x458d23['find'](({data:_0x32bac4})=>_0x32bac4['newRange']['isEqual'](_0x2d90cd))){for(const {name:_0x13d013,data:_0x5828c5}of _0x458d23)if(_0x2d90cd['containsRange'](_0x5828c5['newRange'])){_0x4d9e7e['updateMarker'](_0x13d013,{'range':_0x2d90cd}),_0x333df8=!0x0;break;}}}return _0x333df8;}),_0x184741['model']['document']['registerPostFixer'](_0x19ef04=>{let _0x3bb873=!0x1;const _0x46b789=_0x184741['plugins']['get']('Users')['me'],_0x376ad1=_0x271346['getSuggestions']()['filter'](_0x37b7b5=>_0x37b7b5['isInContent']&&_0x37b7b5['author']==_0x46b789),_0x1bd373=new Set(),_0xbb59dc=new Set();for(const _0x2a96c1 of _0x376ad1)if('tablePaste'==_0x2a96c1['subType'])for(const _0x5189a6 of _0x2a96c1['getMarkers']()){const _0x592963=_0x5189a6['getRange']()['getContainedElement']();if(_0x592963){if(_0x592963['is']('element','tableCellSuggestion')&&ke(_0x592963)){_0x2a96c1['removeMarker'](_0x5189a6['name']),_0x1bd373['add'](_0x592963),_0x3bb873=!0x0;const _0x6e2b5e=_0x592963['nextSibling'],_0x21cb9f=_0x592963['previousSibling'],_0xba1d1=_0x6e2b5e&&_0x6e2b5e['is']('element','tableCellSuggestion'),_0x5ec732=_0x21cb9f&&_0x21cb9f['is']('element','tableCellSuggestion');_0xba1d1&&!_0x1bd373['has'](_0x6e2b5e)&&_0xbb59dc['add'](_0x6e2b5e),_0x5ec732&&!_0x1bd373['has'](_0x21cb9f)&&_0xbb59dc['add'](_0x21cb9f);}else _0x592963['is']('element','paragraph')&&_0x592963['isEmpty']&&(_0x2a96c1['removeMarker'](_0x5189a6['name']),_0x3bb873=!0x0);}}else{if('tablePasteCell'==_0x2a96c1['subType']){if(!_0x2a96c1['attributes']||!_0x2a96c1['attributes']['tablePasteChainId'])continue;const _0x583db0=_0x2a96c1['attributes']['markerAttributes'];if(_0x583db0&&Object['keys'](_0x583db0)['length'])continue;const _0x1c6746=_0x2a96c1['attributes']['tablePasteChainId'];let _0x3fa05d=!0x0,_0x3441ca=!0x0;for(const _0x595232 of _0x376ad1)if(_0x595232['subType']&&_0x595232['subType']['startsWith']('tablePaste')){if(!_0x595232['attributes']['tablePasteChainId']){_0x3441ca=!0x1;break;}if(_0x595232['id']!=_0x2a96c1['id']&&_0x595232['attributes']['tablePasteChainId']==_0x1c6746){_0x3fa05d=!0x1;break;}}_0x3441ca&&_0x3fa05d&&(_0x2a96c1['removeMarkers'](),_0x3bb873=!0x0);}}for(const _0x1859c2 of _0x1bd373)_0x19ef04['remove'](_0x1859c2);for(const _0x2957d3 of _0xbb59dc)_0x19ef04['unwrap'](_0x2957d3);return _0x3bb873;}),_0x184741['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2059db=>_0x565b30(_0x2059db),'converterPriority':'high'}),_0x184741['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c6643,_0x36e7da)=>_0x36e7da['options']['showSuggestionHighlights']?_0x565b30(_0x4c6643,!0x1):null,'converterPriority':'high'});const _0x5e20d8=_0x184741['editing']['view'];this['listenTo'](_0x5e20d8['document'],'clipboardOutput',(_0x3ebc89,_0x1d45ce)=>{const _0x489da8=[];for(const _0xac30f8 of _0x5e20d8['createRangeIn'](_0x1d45ce['content'])['getItems']())_0xac30f8['is']('element','suggestion-td')&&_0x489da8['push'](_0xac30f8);_0x5e20d8['change'](_0x12adbc=>{for(const _0x41226f of _0x489da8)_0x12adbc['move'](_0x12adbc['createRangeIn'](_0x41226f),_0x12adbc['createPositionBefore'](_0x41226f)),_0x12adbc['remove'](_0x41226f);});});}}function ke(_0x4f3b21){if(_0x4f3b21['isEmpty'])return!0x0;const _0x1b9944=_0x4f3b21['getChild'](0x0);return _0x1b9944['is']('element','paragraph')&&_0x1b9944['isEmpty'];}function Re(_0x565cb2,_0x1145d0={},_0x31c6f4){for(const {isAnchor:_0x2331dc,cellHeight:_0x2e183e,cellWidth:_0x3a43f5}of _0x31c6f4['createTableWalker'](_0x565cb2,{'includeAllSlots':!0x0,..._0x1145d0}))if(!_0x2331dc||0x1!=_0x2e183e||0x1!=_0x3a43f5)return!0x1;return!0x0;}class Nt extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x42fc5=this['editor']['plugins']['get']('TrackChangesEditing');_0x42fc5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x42fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x42fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x42fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x42fc5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x570b5f,_0x1bacf2){const _0xaa4c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f2ce4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x63f36a=_0x1bacf2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x6f3d22=_0x1f2ce4['getColumnGroupElement'](_0x63f36a);let _0x3171b9=_0x6f3d22?_0x1f2ce4['getTableColumnsWidths'](_0x6f3d22):null,_0x28e08a=_0x63f36a['getAttribute']('tableWidth')||null;const _0xec6df8=_0x1bacf2['tableWidth']||_0x28e08a,_0x4b56b8=_0x1bacf2['columnWidths']||_0x3171b9,_0x45426b=this['editor']['plugins']['get']('Users')['me'];for(const _0x3108b6 of _0xaa4c3['getSuggestions']()){const _0x492603=_0x3108b6['getContainedElement']();if('resizeTable'===_0x3108b6['subType']&&_0x492603===_0x63f36a){_0x3108b6['author']!==_0x45426b&&_0x3108b6['discard']();const _0x5a59bf=_0x3108b6['data']['commandParams'];_0x28e08a=_0x5a59bf[0x0]['tableWidth'],_0x3171b9=_0x5a59bf[0x0]['columnWidths'];break;}}_0x570b5f({'table':_0x63f36a,'tableWidth':_0xec6df8,'columnWidths':_0x4b56b8}),_0xaa4c3['markBlockFormat'](_0x63f36a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x28e08a,'columnWidths':_0x3171b9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b374a){if('formatBlock'!=_0x4b374a['type']&&'formatInline'!=_0x4b374a['type'])return;const {data:_0x54e65c}=_0x4b374a;if(_0x54e65c&&'resizeTable'===_0x54e65c['formatGroupId']){const _0x2834a8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2834a8)};}}}class Dt extends _0x4db285{['afterInit'](){const _0x43ee6d=this['editor'];_0x43ee6d['plugins']['has']('Template')&&_0x43ee6d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4db285{['afterInit'](){const _0x1403ff=this['editor'];if(!_0x1403ff['commands']['get']('insertTableOfContents'))return;_0x1403ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc54d77=_0x1403ff['plugins']['get']('TrackChangesEditing'),_0x318439=_0x1403ff['locale'];_0xc54d77['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3600cd=>o(_0x318439,'ELEMENT_TABLE_OF_CONTENTS',_0x3600cd));}}class $t extends _0x4db285{['afterInit'](){const _0x2e722e=this['editor'];if(!_0x2e722e['plugins']['has']('Title'))return;const _0x5b2563=_0x2e722e['plugins']['get']('TrackChangesEditing');_0x5b2563['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e722e['locale'],'ELEMENT_TITLE')),_0x2e722e['model']['document']['registerPostFixer'](_0x2e3da2=>{let _0x2ef3af=!0x1;const _0x458f06=Array['from'](_0x2e722e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x508185,data:_0x1cfce1}of _0x458f06){const {group:_0x538e78}=_0x5b2563['_splitMarkerName'](_0x508185);if('suggestion'!==_0x538e78||!_0x1cfce1['newRange'])continue;const _0x56cbe9=_0x1cfce1['newRange'],_0x50c2aa=_0x56cbe9['end']['nodeBefore'];if(!_0x50c2aa||!_0x50c2aa['is']('element','title-content'))continue;if(!_0x56cbe9['start']['isTouching'](_0x56cbe9['end']))continue;const _0x4627a5=_0x2e722e['model']['schema']['getNearestSelectionRange'](_0x56cbe9['end'],'forward');if(_0x4627a5&&_0x4627a5['isCollapsed']){const _0x11f3de=_0x2e3da2['createRange'](_0x56cbe9['start'],_0x4627a5['start']);_0x11f3de['isEqual'](_0x56cbe9)||(_0x2e3da2['updateMarker'](_0x508185,{'range':_0x11f3de}),_0x2ef3af=!0x0);}_0x2ef3af||(_0x2e3da2['removeMarker'](_0x508185),_0x2ef3af=!0x0);}return _0x2ef3af;});}}class Bt extends _0x4db285{['afterInit'](){const _0x468e4c=this['editor'],_0x488430=_0x468e4c['plugins']['get']('TrackChangesEditing');_0x468e4c['plugins']['has']('UndoEditing')&&(_0x488430['enableCommand']('undo'),_0x488430['enableCommand']('redo'));}}class xt extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x1abaa8=this['editor'];if(!_0x1abaa8['plugins']['has']('TableCaptionEditing'))return;_0x1abaa8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4db285{['tableProperties'];['tableCellProperties'];constructor(_0x313572){super(_0x313572),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xfbe044=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29c17a of this['tableProperties'])_0xfbe044['enableCommand'](_0x29c17a,(_0x3014a1,_0x498ef6)=>{const _0x4f883d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29c17a,[_0x4f883d],this['tableProperties'],'tableProperties',_0x3014a1,_0x498ef6);});_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xfbe044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45da82,_0x4c693f)=>this['handleDiscardAction'](this['tableProperties'],_0x45da82,_0x4c693f)),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x26ab10 of this['tableCellProperties'])_0xfbe044['enableCommand'](_0x26ab10,(_0x1b54e3,_0x4f2f7b)=>{const _0x1bab78=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x26ab10,_0x1bab78,this['tableCellProperties'],'tableCellProperties',_0x1b54e3,_0x4f2f7b);});_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xfbe044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e7455,_0x32965e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e7455,_0x32965e)),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xfbe044['descriptionFactory']['registerDescriptionCallback'](_0x46f6ad=>this['handleSuggestionDescription'](_0x46f6ad));}['_handlePropertyChange'](_0x300ed9,_0x2d939f,_0x32b1b0,_0x48c03e,_0x1b9080,_0x250a04){const _0x391c93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x250a04['batch'],()=>{for(const _0x4e18d7 of _0x2d939f){if(this['_getSuggestion'](_0x4e18d7,_0x48c03e))_0x1b9080(_0x250a04);else{const _0x5c85a6={};for(const _0x39ffc6 of _0x32b1b0){const _0x3715f5=_0x4e18d7['getAttribute'](_0x39ffc6);void 0x0!==_0x3715f5&&(_0x5c85a6[_0x39ffc6]=_0x3715f5);}_0x1b9080(_0x250a04),_0x391c93['markBlockFormat'](_0x4e18d7,{'commandParams':[_0x5c85a6]},[],_0x48c03e);}}});}['handleDiscardAction'](_0x11f3f8,_0x57d8d5,_0x110aa7){const _0x47f1dc=_0x57d8d5[0x0]['start']['nodeAfter'],_0x4ff26e=_0x110aa7['commandParams'][0x0];this['editor']['model']['change'](_0x1cc633=>{for(const _0x340439 of _0x11f3f8)void 0x0!==_0x4ff26e[_0x340439]?_0x1cc633['setAttribute'](_0x340439,_0x4ff26e[_0x340439],_0x47f1dc):_0x1cc633['removeAttribute'](_0x340439,_0x47f1dc);});}['handleSuggestionDescription'](_0x282215){if(_0x282215['data'])switch(_0x282215['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4dd372,_0xab1a9a){const _0x57a8a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53be1d of _0x57a8a5['getSuggestions']({'skipNotAttached':!0x0})){const _0xb58406=_0x53be1d['getContainedElement']();if(_0x53be1d['subType']===_0xab1a9a&&_0xb58406===_0x4dd372)return _0x53be1d;}return null;}}const m='$elementName';class p extends _0x4db285{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3c2de3,_0x110daa,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x11f49f){function _0x4193b3(_0xeb5b7c){return _0xeb5b7c['map'](_0x32abd5=>String['fromCharCode'](_0x32abd5))['join']('');}super(_0x11f49f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xa793fb,_0x6e4956,_0x19d453,_0x13feb7)=>{this['_model']['change'](()=>{for(const _0x517bdf of[..._0x13feb7,..._0x19d453])this['_model']['markers']['has'](_0x517bdf)&&_0x11f49f['editing']['reconvertMarker'](_0x517bdf);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x11f49f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x11f49f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x11f49f['config']['get']('trackChanges.trackFormatChanges'),_0x11f49f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x11f49f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x11f49f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4193b3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4193b3([0x34,0x30,0x34,0x38,0x31,0x38,0x34,0x38]);}['init'](){const _0x5737d6=this['editor'],_0x413309=(_0x768cc4,_0x7e1888)=>{if('attribute'!=_0x768cc4)return'ck-suggestion-marker-'+_0x768cc4;const _0x58e30d=_0x7e1888['split']('|')[0x0];return this['_isBlockAttribute'](_0x58e30d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5737d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x21d118=>{const {id:_0x560c21,authorId:_0x347702,type:_0x8cb3f3,subType:_0x5f4102}=this['_splitMarkerName'](_0x21d118['markerName']),_0x2dccf1=['ck-suggestion-marker',_0x413309(_0x8cb3f3,_0x5f4102)];let _0x54e194=0xbb8;return this['activeMarkers']['includes'](_0x21d118['markerName'])&&(_0x2dccf1['push']('ck-suggestion-marker--active'),_0x54e194=0xbc2),'deletion'==_0x8cb3f3&&(_0x54e194+=0x5),{'classes':_0x2dccf1,'attributes':{'data-suggestion':_0x560c21,'data-author-id':_0x347702},'priority':_0x54e194};}}),_0x5737d6['conversion']['for']('dataDowncast')['add'](_0x500b43=>{_0x500b43['on']('addMarker:suggestion',(_0x744103,_0x7463e1,_0x2b693c)=>{if(!_0x2b693c['options']['showSuggestionHighlights'])return;const _0x5b057c=_0x7463e1['item'];if(!_0x5b057c)return;const _0x1245bd=_0x2b693c['mapper']['toViewElement'](_0x5b057c);_0x5737d6['model']['schema']['isObject'](_0x5b057c)&&_0x1245bd&&!_0x1245bd['getCustomProperty']('widget')&&_0x1245bd['is']('containerElement')&&_0x3df2e5(_0x1245bd,_0x2b693c['writer']);},{'priority':'high'});}),_0x5737d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1d3105,_0x81d7ef)=>{if(!_0x81d7ef['options']['showSuggestionHighlights'])return null;const {type:_0x1c2a41,subType:_0x1f4a0f}=this['_splitMarkerName'](_0x1d3105['markerName']);return{'classes':['ck-suggestion-marker',_0x413309(_0x1c2a41,_0x1f4a0f)],'priority':0xbb8};}});const _0x145c2b=({showActiveMarkers:_0x4c8cef=!0x0,isAttributeSuggestion:_0x55c562=!0x1}={})=>(_0x7dcffe,_0x2daf39,_0x5b13e4)=>{if(!_0x2daf39['item'])return;const {id:_0x299da6,authorId:_0x129f73}=this['_splitMarkerName'](_0x2daf39['markerName']);if(_0x55c562){const _0x573a55=this['_suggestions']['get'](_0x299da6),_0x35f605=this['_getAttributeKey'](_0x573a55);if(!this['_isBlockAttribute'](_0x35f605))return;}if(_0x2daf39['item']['is']('selection'))return void _0x5b13e4['consumable']['consume'](_0x2daf39['item'],_0x7dcffe['name']);const _0x226654=_0x5b13e4['mapper']['toViewElement'](_0x2daf39['item']);if(_0x2daf39['item']['is']('element')&&_0x5737d6['model']['schema']['isBlock'](_0x2daf39['item'])&&!_0x226654['getCustomProperty']('addHighlight')){_0x5b13e4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x226654),_0x5b13e4['writer']['setAttribute']('data-suggestion',_0x299da6,_0x226654),_0x5b13e4['writer']['setAttribute']('data-author-id',_0x129f73,_0x226654),_0x5b13e4['mapper']['bindElementToMarker'](_0x226654,_0x2daf39['markerName']),_0x4c8cef&&(this['activeMarkers']['includes'](_0x2daf39['markerName'])?_0x5b13e4['writer']['addClass']('ck-suggestion-marker--active',_0x226654):_0x5b13e4['writer']['removeClass']('ck-suggestion-marker--active',_0x226654));for(const _0x344952 of _0x5737d6['model']['createRangeIn'](_0x2daf39['item'])['getItems']())_0x5b13e4['consumable']['consume'](_0x344952,_0x7dcffe['name']);_0x5b13e4['consumable']['consume'](_0x2daf39['item'],_0x7dcffe['name']);}};_0x5737d6['conversion']['for']('dataDowncast')['add'](_0x3c7a2e=>{_0x3c7a2e['on']('addMarker:suggestion:formatBlock',(_0x3e898a,_0x20da4d,_0x119587)=>{_0x119587['options']['showSuggestionHighlights']&&_0x145c2b({'showActiveMarkers':!0x1})(_0x3e898a,_0x20da4d,_0x119587);},{'priority':'highest'});}),_0x5737d6['conversion']['for']('dataDowncast')['add'](_0x187ef8=>{_0x187ef8['on']('addMarker:suggestion:attribute',(_0x14aee1,_0x51ed6e,_0x1483d8)=>{_0x1483d8['options']['showSuggestionHighlights']&&_0x145c2b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x14aee1,_0x51ed6e,_0x1483d8);},{'priority':'highest'});}),_0x5737d6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2120ce,_0x1c6c0a)=>_0x1c6c0a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2120ce['substr'](0xb)}}),_0x5737d6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1209d6,{writer:_0x41ebf7})=>{let _0x3a6bdd='suggestion:'+_0x1209d6['getAttribute']('suggestion-type')+':'+_0x1209d6['getAttribute']('id');return _0x1209d6['getAttribute']('marker-count')&&(_0x3a6bdd+=':'+_0x1209d6['getAttribute']('marker-count')),_0x41ebf7['createElement']('$marker',{'data-name':_0x3a6bdd});}}),_0x5737d6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x207ea6=>{_0x207ea6['on']('addMarker:suggestion:formatBlock',_0x145c2b(),{'priority':'high'});}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x2ee221=>{_0x2ee221['on']('addMarker:suggestion:attribute',_0x145c2b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x30cd23=>{_0x30cd23['on']('removeMarker:suggestion:formatBlock',(_0x3ae654,_0x2a2ae7,_0x215a9f)=>{const _0xba92ad=_0x215a9f['mapper']['markerNameToElements'](_0x2a2ae7['markerName']);if(_0xba92ad){for(const _0x35cd91 of _0xba92ad)_0x35cd91['getCustomProperty']('addHighlight')||(_0x215a9f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35cd91),_0x215a9f['writer']['removeAttribute']('data-suggestion',_0x35cd91),_0x215a9f['writer']['removeAttribute']('data-author-id',_0x35cd91),_0x215a9f['mapper']['unbindElementFromMarkerName'](_0x35cd91,_0x2a2ae7['markerName']));}},{'priority':'high'});}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x32ec81=>{_0x32ec81['on']('removeMarker:suggestion:attribute',(_0x4679bf,_0x57ea9a,_0x467d45)=>{const _0x517d7f=_0x467d45['mapper']['markerNameToElements'](_0x57ea9a['markerName']);if(!_0x517d7f)return;const {id:_0x561fd0}=this['_splitMarkerName'](_0x57ea9a['markerName']),_0x59cf47=this['_suggestions']['get'](_0x561fd0),_0x115d76=this['_getAttributeKey'](_0x59cf47);if(this['_isBlockAttribute'](_0x115d76)){for(const _0x5b42be of _0x517d7f)_0x5b42be['getCustomProperty']('addHighlight')||(_0x467d45['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5b42be),_0x467d45['writer']['removeAttribute']('data-suggestion',_0x5b42be),_0x467d45['writer']['removeAttribute']('data-author-id',_0x5b42be),_0x467d45['mapper']['unbindElementFromMarkerName'](_0x5b42be,_0x57ea9a['markerName']));}},{'priority':'high'});}),_0x5737d6['model']['document']['registerPostFixer'](_0x3bfdc3=>{let _0x31e819=!0x1;const _0x488292=Array['from'](_0x5737d6['model']['document']['differ']['getChangedMarkers']()),_0xbbfac6=new Set();for(const {name:_0x3f0b5e,data:_0xc1d6ce}of _0x488292){const {group:_0x73f227,type:_0x1e6f66,subType:_0x1971a6,id:_0x42cd95}=this['_splitMarkerName'](_0x3f0b5e);if('suggestion'!==_0x73f227)continue;const _0x3f907e=this['_suggestions']['get'](_0x42cd95);if(null!=_0xc1d6ce['newRange']){'formatInline'==_0x1e6f66&&(_0x31e819=_0x31e819||Ut(_0xc1d6ce['newRange'],_0x3f0b5e,_0x3bfdc3,_0x5737d6['model']['schema']));const _0x3b95b3='attribute'==_0x1e6f66&&this['_isBlockAttribute'](_0x1971a6['split']('|')[0x0]);if(_0xc1d6ce['newRange']['isCollapsed']||'$graveyard'==_0xc1d6ce['newRange']['root']['rootName']||'formatBlock'==_0x1e6f66&&!Ft(_0xc1d6ce['newRange'])||_0x3b95b3&&!Ft(_0xc1d6ce['newRange'])||'deletion'==_0x1e6f66&&!(!Vt(_0x4307f7=_0xc1d6ce['newRange'])&&!function(_0x2c4dd3){return _0x2c4dd3['start']['parent']==_0x2c4dd3['end']['nodeBefore']&&_0x2c4dd3['start']['isAtEnd'];}(_0x4307f7)))_0x3bfdc3['removeMarker'](_0x3f0b5e),_0x31e819=!0x0;else{if(!_0x3f907e||!_0x3f907e['isInContent'])continue;if(_0xc1d6ce['newRange']&&_0xc1d6ce['oldRange']&&_0xc1d6ce['newRange']['isEqual'](_0xc1d6ce['oldRange']))continue;_0xbbfac6['add'](_0x3f907e);}}}var _0x4307f7;return _0xbbfac6['size']>0x0&&(_0x31e819=!!this['_joinWithAdjacentSuggestions'](_0xbbfac6)||_0x31e819),_0x31e819;}),_0x5737d6['model']['document']['registerPostFixer'](_0x505c4f=>{let _0x303155=!0x1;for(const _0x435d52 of _0x5737d6['model']['document']['differ']['getChanges']())if('insert'==_0x435d52['type'])for(const _0x21065e of this['_suggestions']['values']()){if(_0x21065e['isMultiRange']||!_0x21065e['isInContent'])continue;const _0xe10a96='formatBlock'==_0x21065e['type'],_0x45830c=this['_getAttributeKey'](_0x21065e),_0xc2923d=_0x45830c&&this['_isBlockAttribute'](_0x45830c);if(!_0xe10a96&&!_0xc2923d)continue;const _0x533543=_0x21065e['getFirstRange']();if(_0x533543['start']['parent']!=_0x533543['end']['parent']&&!_0x533543['end']['isAtEnd']){const _0x5ca84a=_0x5737d6['model']['createPositionAt'](_0x533543['start']['nodeAfter'],'end'),_0x5a9d86=_0x5737d6['model']['createRange'](_0x533543['start'],_0x5ca84a);_0x505c4f['updateMarker'](_0x21065e['getFirstMarker'](),{'range':_0x5a9d86}),_0x303155=!0x0;}}return _0x303155;}),_0x5737d6['model']['document']['registerPostFixer'](_0x55c116=>this['_processAttributeChanges'](_0x55c116)),_0x5737d6['model']['document']['registerPostFixer'](_0x1ee858=>!_0x1ee858['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1ee858)),_0x5737d6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5737d6['model']['document']['on']('change:data',(_0x26bf14,_0x2f891b)=>{if(!_0x2f891b['isLocal']||_0x2f891b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x501579=_0x5737d6['model']['document']['differ']['getChanges']();if(0x0==_0x501579['length'])return;const _0x1a8259=[],_0x36ee62=_0x501579['filter'](_0x16bb22=>'attribute'==_0x16bb22['type']),_0x3bf9a9=_0x501579['filter'](_0xbbb4ea=>'insert'==_0xbbb4ea['type']&&'$text'!=_0xbbb4ea['name']);for(const _0x5354f3 of _0x36ee62)this['_isRegisteredAttribute'](_0x5354f3['attributeKey'])&&_0x1a8259['push']({'key':_0x5354f3['attributeKey'],'newValue':_0x5354f3['attributeNewValue'],'oldValue':_0x5354f3['attributeOldValue'],'range':Pt(_0x5354f3['range'],_0x5737d6['model'])});for(const _0x4d95d1 of _0x3bf9a9){if('rename'!=_0x4d95d1['action']&&'refresh'!=_0x4d95d1['action'])continue;const _0x21eb38=Lt(_0x4d95d1['position']['nodeAfter'],_0x5737d6['model']),_0x339c58=_0x4d95d1['before'];'rename'==_0x4d95d1['action']&&_0x1a8259['push']({'key':m,'newValue':_0x4d95d1['name'],'oldValue':_0x339c58['name'],'range':_0x21eb38});for(const [_0xb4b720,_0xc3dfeb]of _0x339c58['attributes']){if(!this['_isRegisteredAttribute'](_0xb4b720))continue;const _0x32c8f1=_0x4d95d1['attributes']['get'](_0xb4b720);_0xc3dfeb!==_0x32c8f1&&_0x1a8259['push']({'key':_0xb4b720,'newValue':_0x32c8f1,'oldValue':_0xc3dfeb,'range':_0x21eb38});}for(const [_0xef73d9,_0x427fd6]of _0x4d95d1['attributes'])this['_isRegisteredAttribute'](_0xef73d9)&&(_0x339c58['attributes']['has'](_0xef73d9)||_0x1a8259['push']({'key':_0xef73d9,'newValue':_0x427fd6,'oldValue':null,'range':_0x21eb38}));}0x0!=_0x1a8259['length']&&_0x5737d6['model']['enqueueChange'](_0x2f891b,_0x30413f=>{const _0x265656=_0x1d9854();for(const {range:_0x2af65d,key:_0x2de68d,oldValue:_0xee0337,newValue:_0x1f3d19}of _0x1a8259)this['markAttributeChange'](_0x2af65d,_0x2de68d,_0xee0337,_0x1f3d19,{'groupId':_0x265656});this['_reduceExistingSuggestions'](_0x30413f,_0x1a8259);});},{'priority':'lowest'}),_0x5737d6['model']['markers']['on']('update:suggestion',(_0x2bfdf5,_0x423468,_0x242546)=>{if(null==_0x242546){const {id:_0x5793f8}=this['_splitMarkerName'](_0x423468['name']),_0x356ae1=this['_suggestions']['get'](_0x5793f8);_0x356ae1&&_0x356ae1['addMarkerName'](_0x423468['name']);}}),_0x5737d6['model']['document']['on']('change:data',()=>{const _0x288f16=Array['from'](_0x5737d6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31554b=>'suggestion'===this['_splitMarkerName'](_0x31554b['name'])['group']);if(0x0===_0x288f16['length'])return;_0x288f16['sort']((_0x22b6c7,_0x1d611a)=>{const _0x5b1755=_0x22b6c7['data']['oldRange'],_0xd98588=_0x1d611a['data']['oldRange'];return null===_0x5b1755&&null===_0xd98588?0x0:null===_0x5b1755&&null!==_0xd98588?-0x1:null!==_0x5b1755&&null===_0xd98588?0x1:_0x5b1755['start']['isBefore'](_0xd98588['start'])?-0x1:0x1;});const _0x834f7=new Set(),_0x5ee310=new Set();for(const {name:_0x55e96e,data:_0x936010}of _0x288f16){const {id:_0x133e61}=this['_splitMarkerName'](_0x55e96e);if(null===_0x936010['oldRange']){const _0x51b754=this['_handleNewSuggestionMarker'](_0x55e96e);_0x5ee310['add'](_0x51b754);}else{const _0x58b65d=this['_suggestions']['get'](_0x133e61);null!==_0x936010['newRange']||_0x58b65d['isInContent']?(_0x834f7['add'](_0x58b65d['head']),_0x5ee310['add'](_0x58b65d)):this['_removeSuggestion'](_0x58b65d);}}_0x5ee310['size']>0x0&&this['_refreshSuggestionsChain'](_0x5ee310);for(const _0x13c031 of _0x834f7)this['fire']('suggestionChanged',_0x13c031);}),_0x5737d6['model']['on']('applyOperation',(_0x3a664c,_0x380a44)=>{const _0xbe75bb=_0x380a44[0x0];if(!this['_suggestions']['size'])return;if(!_0xbe75bb['isDocumentOperation'])return;if(_0xbe75bb['batch']['isUndo']||!_0xbe75bb['batch']['isLocal'])return;let _0x8e0a77,_0x5c450f;switch(_0xbe75bb['type']){case'insert':_0x8e0a77=_0x5737d6['model']['createPositionAt'](_0xbe75bb['position']),_0x5c450f=_0x8e0a77['getShiftedBy'](_0xbe75bb['howMany']);break;case'split':_0x8e0a77=_0x5737d6['model']['createPositionAt'](_0xbe75bb['splitPosition']),_0x5c450f=_0x5737d6['model']['createPositionAt'](_0xbe75bb['moveTargetPosition']);break;case'move':_0x8e0a77=_0x5737d6['model']['createPositionAt'](_0xbe75bb['targetPosition']),_0x5c450f=_0x8e0a77['getShiftedBy'](_0xbe75bb['howMany']);break;default:return;}const _0x3b7fa0=_0x5737d6['model']['createRange'](_0x8e0a77,_0x5c450f);_0x5737d6['model']['change'](()=>{for(const {suggestion:_0x1e63b7,meta:_0x3f85ae}of this['_findSuggestions'](_0x3b7fa0)){if(_0x1e63b7['isMultiRange'])continue;if('formatInline'==_0x1e63b7['type'])continue;const _0x559012=this['_getAttributeKey'](_0x1e63b7);if(_0x559012&&this['_isBlockAttribute'](_0x559012)&&'split'!=_0xbe75bb['type'])continue;const _0x9bb60d=_0x1e63b7['data']&&_0x1e63b7['data']['multipleBlocks'];('formatBlock'!=_0x1e63b7['type']||'split'==_0xbe75bb['type']&&!_0x9bb60d)&&(_0x3f85ae['containsRangeInObject']||'insertion'==_0x1e63b7['type']&&_0x3f85ae['isOwn']||_0x1e63b7['getFirstRange']()['containsRange'](_0x3b7fa0)&&this['_breakSuggestionMarker'](_0x1e63b7,_0x8e0a77,_0x5c450f));}});},{'priority':'lowest'}),_0x5737d6['model']['on']('deleteContent',(_0x4988dc,_0x2cca12)=>{const _0x3b8e37=_0x2cca12[0x0],_0x51604b=_0x2cca12[0x1];if(_0x51604b&&_0x51604b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b8e37['isCollapsed'])return;const _0x44b7bc=_0x5737d6['model']['schema'],{start:_0x6ecc1,end:_0x5b197e}=_0x3b8e37['getFirstRange'](),_0x4d394d=_0x6ecc1['nodeAfter']&&_0x44b7bc['isLimit'](_0x6ecc1['nodeAfter'])?null:_0x44b7bc['getNearestSelectionRange'](_0x6ecc1,'forward'),_0x5038a0=_0x5b197e['nodeBefore']&&_0x44b7bc['isLimit'](_0x5b197e['nodeBefore'])?null:_0x44b7bc['getNearestSelectionRange'](_0x5b197e,'backward'),_0x4c6375=_0x5737d6['model']['createRange'](_0x4d394d?_0x4d394d['start']:_0x6ecc1,_0x5038a0?_0x5038a0['end']:_0x5b197e);_0x5737d6['model']['change'](_0x5c643b=>{this['markDeletion'](_0x4c6375);const _0x102210=_0x5737d6['model']['schema']['getNearestSelectionRange'](_0x4c6375['start']);_0x3b8e37['is']('documentSelection')?_0x5c643b['setSelection'](_0x102210):_0x3b8e37['setTo'](_0x102210);}),_0x4988dc['stop']();},{'priority':_0xa03c08['normal']+0xa}),_0x5737d6['model']['on']('insertContent',(_0x239d3c,_0x737bcb)=>{const _0xd0c27e=_0x737bcb[_0x737bcb['length']-0x1];_0xd0c27e&&_0xd0c27e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5737d6['model']['change'](()=>{let _0x966c1c=_0x5737d6['model']['insertContent'](_0x737bcb[0x0],_0x737bcb[0x1],_0x737bcb[0x2],{'forceDefaultExecution':!0x0});if(!_0x966c1c)return;_0x239d3c['return']=_0x966c1c['clone']();const _0x2419c2=_0x966c1c['end']['nodeBefore'],_0x4d9f28=_0x5737d6['model']['schema'];_0x2419c2&&_0x4d9f28['isBlock'](_0x2419c2)&&!_0x4d9f28['isObject'](_0x2419c2)&&(_0x966c1c=_0x5737d6['model']['createRange'](_0x966c1c['start'],_0x5737d6['model']['createPositionAt'](_0x2419c2,'end'))),this['markInsertion'](_0x966c1c);}),_0x239d3c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x457c51=new x(_0x5737d6,this['_suggestions']);_0x5737d6['commands']['add']('acceptSuggestion',_0x457c51),this['enableCommand']('acceptSuggestion');const _0x382d60=new R(_0x5737d6,this['_suggestions']);_0x5737d6['commands']['add']('discardSuggestion',_0x382d60),this['enableCommand']('discardSuggestion'),_0x5737d6['commands']['add']('acceptAllSuggestions',new E(_0x5737d6,_0x457c51,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5737d6['commands']['add']('discardAllSuggestions',new E(_0x5737d6,_0x382d60,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5737d6['commands']['add']('acceptSelectedSuggestions',new O(_0x5737d6,_0x457c51,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5737d6['commands']['add']('discardSelectedSuggestions',new O(_0x5737d6,_0x382d60,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xec6b2=_0x5737d6['plugins']['get']('CommentsRepository');this['listenTo'](_0xec6b2,'addComment',(_0xaff947,{threadId:_0x4d199e})=>{const _0x22ec20=this['_suggestions']['get'](_0x4d199e);_0x22ec20&&_0x22ec20['commentThread']&&0x1===_0x22ec20['commentThread']['length']&&this['_updateSuggestionData'](_0x4d199e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xec6b2,'removeComment',(_0x2ffe48,{threadId:_0x271476})=>{const _0x54f9db=this['_suggestions']['get'](_0x271476);_0x54f9db&&_0x54f9db['commentThread']&&!_0x54f9db['commentThread']['length']&&this['_updateSuggestionData'](_0x271476,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5dc007){if(this['_adapter'])throw new _0xec2a34('track-changes-adapter-already-set',this);this['_adapter']=_0x5dc007;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b5cfa=!0x1,toJSON:_0x37acde=!0x1}={}){const _0x5c5949=[];for(const _0x4680c0 of this['_suggestions']['values']())_0x2b5cfa&&!_0x4680c0['isInContent']||_0x5c5949['push'](_0x4680c0);return _0x37acde?_0x5c5949['map'](_0x550144=>_0x550144['toJSON']()):_0x5c5949;}['getSuggestion'](_0x181013){const _0x3621eb=this['_suggestions']['get'](_0x181013);if(!_0x3621eb)throw new _0xec2a34('track-changes-suggestion-not-found',this);return _0x3621eb;}['hasSuggestion'](_0x4b5b19){return this['_suggestions']['has'](_0x4b5b19);}['addSuggestionData'](_0x190599){const {authorId:_0x6f2a87,id:_0x22f6b7,attributes:_0x33933b}=_0x190599,[_0x120dc4,_0x458a6b]=_0x190599['type']['split'](':'),_0x1e1c25=this['_suggestions']['get'](_0x22f6b7)||this['_createSuggestion'](_0x120dc4,_0x458a6b,_0x22f6b7,_0x6f2a87,_0x33933b);if(this['_addThreadToSuggestion'](_0x1e1c25),this['_checkSuggestionCorrectness'](_0x1e1c25,_0x120dc4,_0x458a6b||null,_0x6f2a87),_0x1e1c25['createdAt']=_0x190599['createdAt'],_0x1e1c25['_isDataLoaded']=!0x0,_0x33933b&&_0x33933b['@external']){const _0x2958b0=_0x33933b['@external'],_0x1445d2=this['_getExternalAuthor'](_0x2958b0['authorName']);_0x1e1c25['authoredAt']=_0x2958b0['createdAt'],_0x1e1c25['author']=_0x1445d2,_0x1e1c25['isExternal']=!0x0;}else _0x1e1c25['authoredAt']=_0x190599['createdAt'];switch(_0x190599['data']&&(_0x1e1c25['data']=_0x190599['data']),_0x190599['attributes']&&(_0x1e1c25['attributes']=_0x190599['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1e1c25['_saved']=!0x0),this['_suggestionState']['get'](_0x1e1c25)){case'notReady':this['_suggestionState']['set'](_0x1e1c25,'dataReady');break;case'markerReady':_0x1e1c25['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1e1c25])),this['_refreshSuggestionsChain'](new Set([_0x1e1c25])),this['_suggestionState']['set'](_0x1e1c25,'ready'),this['fire']('suggestionLoaded',_0x1e1c25)):this['_suggestionState']['set'](_0x1e1c25,'removed');}return _0x1e1c25;}['acceptSuggestion'](_0x584751){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3393c9 of _0x584751['getAllAdjacentSuggestions']())_0x3393c9['accept']();});});}['discardSuggestion'](_0x59b9fc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5afee8 of _0x59b9fc['getAllAdjacentSuggestions']())_0x5afee8['discard']();});});}['enableCommand'](_0x2eae1e,_0x516ad0){const _0x51b1d1=this['editor']['commands']['get'](_0x2eae1e);if(!_0x51b1d1)throw new _0xec2a34('track-changes-command-not-found',this,{'commandName':_0x2eae1e});if(this['_enabledCommands']['has'](_0x51b1d1))throw new _0xec2a34('track-changes-enable-command-twice',this,{'commandName':_0x2eae1e});this['_enabledCommands']['add'](_0x51b1d1),_0x516ad0&&_0x51b1d1['on']('execute',(_0x342bb7,_0x1f8f6b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1f8f6b['length']>0x0&&_0x1f8f6b[_0x1f8f6b['length']-0x1]&&_0x1f8f6b[_0x1f8f6b['length']-0x1]['forceDefaultExecution']?_0x1f8f6b['pop']():(_0x342bb7['return']=_0x516ad0((..._0x27dfca)=>_0x51b1d1['execute'](..._0x27dfca,{'forceDefaultExecution':!0x0}),..._0x1f8f6b),_0x342bb7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a8032){let _0x163cf4,_0x30b6da;const _0x426970=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x163cf4=_0x4a8032();}catch(_0x416020){_0x30b6da=_0x416020;}return _0x426970||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30b6da&&_0xec2a34['rethrowUnexpectedError'](_0x30b6da,this),_0x163cf4;}['markInsertion'](_0x285db9,_0x224f10=null,_0x147b51={}){if(_0x285db9['isCollapsed'])return null;const _0x164d61=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x54b595,meta:_0xe21249}of this['_findSuggestions'](_0x285db9,'insertion'))if(_0xe21249['isOwn']){if(!_0xe21249['isNextTo']){if(_0xe21249['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x54b595,_0x147b51))continue;return _0x54b595;}if(qt(_0x54b595,_0x147b51))return _0x54b595;this['_breakSuggestionMarker'](_0x54b595,_0x285db9['start'],_0x285db9['end']);break;}if(_0x224f10==_0x54b595['subType']&&qt(_0x54b595,_0x147b51)){const _0x409b36=_0x54b595['getFirstRange']();return _0x409b36['start']['isEqual'](_0x285db9['end'])?this['_setSuggestionRange'](_0x54b595,this['_model']['createRange'](_0x285db9['start'],_0x409b36['end'])):this['_setSuggestionRange'](_0x54b595,this['_model']['createRange'](_0x409b36['start'],_0x285db9['end'])),_0x54b595;}}const _0x328268=_0x1d9854(),_0x1d54cf=_0x164d61['id'],_0xffeefc=_0x224f10?'insertion:'+_0x224f10:'insertion',_0x5c5582=this['_setSuggestionData']({'id':_0x328268,'type':_0xffeefc,'createdAt':new Date(),'authorId':_0x1d54cf,'attributes':_0x147b51});return this['_addSuggestionMarker'](_0xffeefc,_0x328268,_0x1d54cf,_0x285db9),_0x5c5582;}['markMultiRangeInsertion'](_0x4031f4,_0x3c4212='multi',_0x539dc1={}){const _0xc394fd=this['editor']['plugins']['get']('Users')['me'],_0x12531f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c4212,'join');for(const _0x4c79e7 of this['getSuggestions']())if(_0x4c79e7['author']['id']==_0xc394fd['id']&&'insertion'==_0x4c79e7['type']&&_0x4c79e7['subType']==_0x3c4212&&qt(_0x4c79e7,_0x539dc1)&&(_0x12531f(_0x4c79e7['getRanges'](),_0x4031f4)||_0x12531f(_0x4031f4,_0x4c79e7['getRanges']()))){for(const _0x11911c of _0x4031f4)_0x4c79e7['addRange'](_0x11911c);return _0x4c79e7;}for(const {suggestion:_0x5bfa8a,meta:_0xa407d4}of this['_findSuggestions'](_0x4031f4,'insertion')){if(!_0xa407d4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa407d4['containsRangeInObject'])continue;if(!qt(_0x5bfa8a,_0x539dc1))continue;let _0x31d4ee=!0x0;for(const _0x3ef2df of _0x5bfa8a['getRanges']())for(const _0x36b093 of _0x4031f4)if(!_0x3ef2df['containsRange'](_0x36b093)){_0x31d4ee=!0x1;break;}if(_0x31d4ee)return _0x5bfa8a;}const _0xc214fd=_0x1d9854(),_0x1c8646=_0xc394fd['id'],_0xc44292='insertion:'+_0x3c4212,_0x3a15c8=this['_setSuggestionData']({'id':_0xc214fd,'type':_0xc44292,'createdAt':new Date(),'authorId':_0x1c8646,'attributes':_0x539dc1});for(const _0x156495 of _0x4031f4)this['_addSuggestionMarker'](_0xc44292,_0xc214fd,_0x1c8646,_0x156495,u['getMultiRangeId']());return _0x3a15c8;}['markInlineFormat'](_0x1fe3b2,_0x5d440b,_0x6eca1=null,_0x5bc179={}){if(_0x6eca1=_0x6eca1||Gt(_0x5d440b),_0x1fe3b2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xe90f97=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6eca1,'accept');return this['forceDefaultExecution'](()=>_0xe90f97([_0x1fe3b2],_0x5d440b,_0x5bc179)),null;}const _0x398ee8=this['editor']['plugins']['get']('Users')['me'],_0x3e2959=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d966a,meta:_0x2f4a24}of this['_findSuggestions'](_0x1fe3b2,'insertion'))_0x2f4a24['isOwn']&&!_0x2f4a24['isInsideObject']&&_0x3e2959['push'](..._0x2d966a['getRanges']());}const _0x1e2580=function(_0x1542f0,_0x2db9ee){const _0x557612=[];for(const _0x4c59e7 of _0x2db9ee){const _0x427db1=_0x1542f0['getIntersection'](_0x4c59e7);_0x427db1&&_0x557612['push'](_0x427db1);}return _0x557612;}(_0x1fe3b2,_0x3e2959),_0x54ce96=function(_0x4f8f3e,_0x57bb43){const _0x17643f=[_0x4f8f3e];for(const _0x587832 of _0x57bb43){let _0x5f07f8=0x0;for(;_0x5f07f8<_0x17643f['length'];){const _0x5c5d7b=_0x17643f[_0x5f07f8]['getDifference'](_0x587832);_0x17643f['splice'](_0x5f07f8,0x1,..._0x5c5d7b),_0x5f07f8+=_0x5c5d7b['length'];}}return _0x17643f;}(_0x1fe3b2,_0x3e2959);_0x1e2580['length']&&this['_model']['change'](()=>{for(const _0x5cf34c of _0x1e2580){const _0x18c55e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6eca1,'accept');this['forceDefaultExecution'](()=>_0x18c55e([_0x5cf34c],_0x5d440b,_0x5bc179));}});for(const _0x5aee6c of _0x54ce96){let _0x550c38=null,_0x38766e=_0x5aee6c['start'],_0x986088=_0x5aee6c['end'];for(const {suggestion:_0x171bc2,meta:_0x43296a}of this['_findSuggestions'](_0x5aee6c,'formatInline')){if(!_0x43296a['isOwn'])continue;if(_0x171bc2['subType']!=_0x6eca1)continue;if(!qt(_0x171bc2,_0x5bc179))continue;const _0x370511=_0x171bc2['getFirstRange']();if(_0x370511['containsRange'](_0x5aee6c,!0x0))return null;_0x38766e=_0x38766e['isBefore'](_0x370511['start'])?_0x38766e:_0x370511['start'],_0x986088=_0x986088['isAfter'](_0x370511['end'])?_0x986088:_0x370511['end'],_0x550c38?_0x370511['start']['isBefore'](_0x550c38['getFirstRange']()['start'])?(_0x550c38['removeMarkers'](),_0x550c38=_0x171bc2):_0x171bc2['removeMarkers']():_0x550c38=_0x171bc2;}const _0x179627=this['_model']['createRange'](_0x38766e,_0x986088);if(_0x550c38)this['_setSuggestionRange'](_0x550c38,_0x179627);else{const _0xe96fe4=_0x1d9854(),_0x455915=_0x398ee8['id'];this['_setSuggestionData']({'id':_0xe96fe4,'type':'formatInline:'+_0x6eca1,'data':_0x5d440b,'createdAt':new Date(),'authorId':_0x455915,'attributes':_0x5bc179}),this['_addSuggestionMarker']('formatInline:'+_0x6eca1,_0xe96fe4,_0x455915,_0x179627);}}return null;}['markBlockFormat'](_0xe0bfd7,_0x4950e4,_0x1c0411=[],_0x4464df=null,_0x35bc63={}){_0x4950e4['formatGroupId']||(_0x4950e4['formatGroupId']=_0x4950e4['commandName']),_0x4950e4['multipleBlocks']=_0xe0bfd7['is']('range'),_0x4464df=_0x4464df||Gt(_0x4950e4);const _0x52d9ed=_0x1c0411['map'](_0x33aaca=>Lt(_0x33aaca,this['_model'])),_0x1abb68=_0xe0bfd7['is']('range')?_0xe0bfd7:Lt(_0xe0bfd7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x494905=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4464df,'accept');return this['forceDefaultExecution'](()=>_0x494905([_0x1abb68],_0x4950e4,_0x35bc63)),null;}_0x52d9ed['push'](_0x1abb68);let _0x1423d8=!0x0;for(const _0x5c9f2e of _0x52d9ed)if(!this['_rangeIsInLocalUserInsertion'](_0x5c9f2e)){_0x1423d8=!0x1;break;}if(_0x1423d8&&'always'!==this['_trackFormatChanges']){const _0x16632b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4464df,'accept');return this['forceDefaultExecution'](()=>_0x16632b([_0x1abb68],_0x4950e4,_0x35bc63)),null;}let _0x104789=null,_0x5f48e5=_0x1abb68['start'],_0x24818b=_0x1abb68['end'];for(const {suggestion:_0x3f3621,meta:_0x2fe572}of this['_findSuggestions'](_0x1abb68,'formatBlock')){if(!_0x2fe572['isOwn'])continue;if(_0x2fe572['isNextTo']||_0x2fe572['containsRangeInObject']||_0x2fe572['isInsideObject'])continue;if(_0x3f3621['data']['formatGroupId']!=_0x4950e4['formatGroupId'])continue;if(!qt(_0x3f3621,_0x35bc63))continue;const _0x465eb1=_0x3f3621['getFirstRange']();if(_0x3f3621['subType']==_0x4464df){if(_0x465eb1['containsRange'](_0x1abb68,!0x0))return null;_0x5f48e5=_0x5f48e5['isBefore'](_0x465eb1['start'])?_0x5f48e5:_0x465eb1['start'],_0x24818b=_0x24818b['isAfter'](_0x465eb1['end'])?_0x24818b:_0x465eb1['end'],_0x104789?_0x465eb1['start']['isBefore'](_0x104789['getFirstRange']()['start'])?(_0x104789['removeMarkers'](),_0x104789=_0x3f3621):_0x3f3621['removeMarkers']():_0x104789=_0x3f3621;}else{const _0x271910=_0x1abb68['getIntersection'](_0x465eb1);this['_cutOutSuggestionMarker'](_0x3f3621,_0x271910);}}const _0x5ca2a2=this['editor']['plugins']['get']('Users')['me'],_0x3631fb=_0x1d9854(),_0x2c4b7a=_0x5ca2a2['id'];if(_0x104789)return this['_setSuggestionRange'](_0x104789,this['_model']['createRange'](_0x5f48e5,_0x24818b)),_0x104789;{const _0x1d9290=this['_setSuggestionData']({'id':_0x3631fb,'type':'formatBlock:'+_0x4464df,'data':_0x4950e4,'createdAt':new Date(),'authorId':_0x2c4b7a,'attributes':_0x35bc63});return this['_addSuggestionMarker']('formatBlock:'+_0x4464df,_0x3631fb,_0x2c4b7a,this['_model']['createRange'](_0x5f48e5,_0x24818b)),_0x1d9290;}}['markMultiRangeBlockFormat'](_0x418013,_0x4d0b01,_0x3769e1=[],_0x51261b=null,_0x14615b={}){_0x4d0b01['formatGroupId']||(_0x4d0b01['formatGroupId']=_0x4d0b01['commandName']);const _0x429f67=_0x418013[0x0];_0x4d0b01['multipleBlocks']=_0x429f67['is']('range'),_0x51261b=_0x51261b||Gt(_0x4d0b01);const _0x14b35d=_0x3769e1['map'](_0x259008=>Lt(_0x259008,this['_model'])),_0x5d4597=_0x429f67['is']('range')?_0x418013:_0x418013['map'](_0x322bbc=>Lt(_0x322bbc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3fb534=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51261b,'accept');return this['forceDefaultExecution'](()=>_0x3fb534(_0x5d4597,_0x4d0b01,_0x14615b)),null;}_0x14b35d['push'](..._0x5d4597);let _0x3b7c0d=!0x0;for(const _0x3836ad of _0x14b35d)if(!this['_rangeIsInLocalUserInsertion'](_0x3836ad)){_0x3b7c0d=!0x1;break;}if(_0x3b7c0d&&'always'!==this['_trackFormatChanges']){const _0x4137bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51261b,'accept');return this['forceDefaultExecution'](()=>_0x4137bb(_0x5d4597,_0x4d0b01,_0x14615b)),null;}const _0x360cc3=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d3f2d of this['getSuggestions']()){if(_0x3d3f2d['author']['id']!=_0x360cc3['id'])continue;if('formatBlock'!=_0x3d3f2d['type']||_0x3d3f2d['data']['formatGroupId']!=_0x4d0b01['formatGroupId'])continue;if(!qt(_0x3d3f2d,_0x14615b))continue;const _0x53b96c=_0x3d3f2d['subType']==_0x51261b;for(let _0x48297e=0x0;_0x48297e<_0x5d4597['length'];_0x48297e++){const _0x554e64=_0x5d4597[_0x48297e];for(const _0x1f17e3 of _0x3d3f2d['getMarkers']()){const _0x194021=_0x1f17e3['getRange']();if(_0x554e64['isEqual'](_0x194021)){_0x53b96c?(_0x5d4597['splice'](_0x48297e,0x1),_0x48297e--):_0x3d3f2d['removeMarker'](_0x1f17e3['name']);break;}}}}if(0x0==_0x5d4597['length'])return null;const _0x676144=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51261b,'join');for(const _0x175d71 of this['getSuggestions']())if(_0x175d71['author']['id']==_0x360cc3['id']&&'formatBlock'==_0x175d71['type']&&_0x175d71['data']['formatGroupId']==_0x4d0b01['formatGroupId']&&_0x175d71['subType']==_0x51261b&&qt(_0x175d71,_0x14615b)&&(_0x676144(_0x175d71['getRanges'](),_0x5d4597)||_0x676144(_0x5d4597,_0x175d71['getRanges']()))){for(const _0x3aa16c of _0x5d4597)_0x175d71['addRange'](_0x3aa16c);return _0x175d71;}const _0x138fb1=_0x1d9854(),_0x46724b=_0x360cc3['id'],_0x58d22d='formatBlock:'+_0x51261b,_0x3cd992=this['_setSuggestionData']({'id':_0x138fb1,'type':_0x58d22d,'data':_0x4d0b01,'createdAt':new Date(),'authorId':_0x46724b,'attributes':_0x14615b});for(const _0x2505ca of _0x5d4597)this['_addSuggestionMarker'](_0x58d22d,_0x138fb1,_0x46724b,_0x2505ca,u['getMultiRangeId']());return _0x3cd992;}['markDeletion'](_0x4dc275,_0x5bd242=null,_0x4029a8={}){if(_0x4dc275['isCollapsed'])return null;const _0x5a7049=this['editor']['plugins']['get']('Users')['me'],_0x23af1a=new _0x52a99c(_0x4dc275['start'],_0x4dc275['end']);for(const {suggestion:_0x1d3066,meta:_0x594dcf}of this['_findSuggestions'](_0x23af1a,'insertion'))if(_0x594dcf['isOwn']&&!_0x594dcf['isNextTo']){if(_0x1d3066['isMultiRange']){const _0x21a949=_0x1d3066['getRanges']()['filter'](_0x52f967=>'$graveyard'!=_0x52f967['root']['rootName']);_0x21a949['every'](_0x34ed2b=>_0x23af1a['containsRange'](_0x34ed2b,!0x0))&&_0x1d3066['discard']();if(_0x21a949['some'](_0x4ad08f=>_0x4ad08f['containsRange'](_0x23af1a,!0x0))){const _0x224d46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bd242,'accept');return this['forceDefaultExecution'](()=>_0x224d46([_0x23af1a],null,_0x4029a8)),null;}}else{const _0x419dcc=_0x23af1a['getIntersection'](_0x1d3066['getFirstRange']());null!==_0x419dcc&&_0x1d3066['_onDiscard']([_0x419dcc],null,_0x4029a8);}}if(_0x23af1a['detach'](),_0x23af1a['isCollapsed']||'$graveyard'==_0x23af1a['root']['rootName'])return null;let _0x315b61=null,_0x16e907=_0x23af1a['start'],_0x93b096=_0x23af1a['end'];const _0x32866c=this['_findSuggestions'](_0x23af1a,'deletion');for(const {suggestion:_0xd27e98,meta:_0x29e301}of _0x32866c){const _0x29d380=this['_model']['createRange'](_0x16e907,_0x93b096);if(_0x29e301['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29e301['containsRangeInObject']&&!_0x29e301['isInsideObject'])){if(_0xd27e98['isMultiRange']){if(!qt(_0xd27e98,_0x4029a8))continue;let _0x5511ee=!0x0;for(const _0x17da64 of _0xd27e98['getRanges']()){if(_0x17da64['containsRange'](_0x29d380,!0x0))return _0xd27e98;_0x29d380['containsRange'](_0x17da64)||(_0x5511ee=!0x1);}_0x5511ee&&_0xd27e98['discard']();}else{const _0x7e3192=_0xd27e98['getFirstRange']();if(_0x7e3192['containsRange'](_0x29d380,!0x0))return _0xd27e98;if(!qt(_0xd27e98,_0x4029a8)){_0x29d380['containsRange'](_0x7e3192)?_0xd27e98['removeMarkers']():_0x7e3192['containsPosition'](_0x16e907)?_0x16e907=_0x7e3192['end']:_0x7e3192['containsPosition'](_0x93b096)&&(_0x93b096=_0x7e3192['start']);continue;}_0x16e907=_0x16e907['isBefore'](_0x7e3192['start'])?_0x16e907:_0x7e3192['start'],_0x93b096=_0x93b096['isAfter'](_0x7e3192['end'])?_0x93b096:_0x7e3192['end'],_0x4029a8=Object['assign']({},_0xd27e98['attributes']),_0x315b61?_0x7e3192['start']['isBefore'](_0x315b61['getFirstRange']()['start'])?(_0x315b61['removeMarkers'](),_0x315b61=_0xd27e98):_0xd27e98['removeMarkers']():_0x315b61=_0xd27e98;}}}if(_0x315b61)return this['_setSuggestionRange'](_0x315b61,this['_model']['createRange'](_0x16e907,_0x93b096)),_0x315b61;{const _0x59f8af=_0x1d9854(),_0x5d0d85=this['_model']['createRange'](_0x16e907,_0x93b096),_0x3d60fc=_0x5a7049['id'],_0x2ed233=_0x5bd242?'deletion:'+_0x5bd242:'deletion',_0x3312a9=this['_setSuggestionData']({'id':_0x59f8af,'type':_0x2ed233,'createdAt':new Date(),'authorId':_0x3d60fc,'attributes':_0x4029a8});return this['_addSuggestionMarker'](_0x2ed233,_0x59f8af,_0x3d60fc,_0x5d0d85),_0x3312a9;}}['markMultiRangeDeletion'](_0x3e8109,_0x3c3cb2='multi',_0x44641a={}){const _0x2f89f6=this['editor']['plugins']['get']('Users')['me'],_0x305016=_0x3e8109['map'](_0x18c407=>new _0x52a99c(_0x18c407['start'],_0x18c407['end'])),_0x277097=new Set();for(const {suggestion:_0x11e08d,meta:_0x34190d}of this['_findSuggestions'](_0x305016,'insertion'))_0x34190d['isOwn']&&!_0x34190d['isNextTo']&&_0x277097['add'](_0x11e08d);for(const _0x568285 of _0x277097)if(_0x568285['isMultiRange']){const _0x434255=_0x568285['getRanges']();(!_0x568285['attributes']||!_0x568285['attributes']['skipNestingCheck'])&&(_0x434255['every'](_0x50b8ad=>_0x305016['some'](_0x49ebee=>_0x49ebee['containsRange'](_0x50b8ad,!0x0)))&&_0x568285['discard']());if(_0x305016['every'](_0x2ca686=>_0x434255['some'](_0x4f099e=>_0x4f099e['containsRange'](_0x2ca686,!0x0)))){const _0x221773=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3cb2,'accept');return this['forceDefaultExecution'](()=>_0x221773(_0x3e8109,null,_0x44641a)),null;}}else{const _0xaeeff3=_0x568285['getFirstRange']();_0x305016['some'](_0x1bed6c=>_0x1bed6c['containsRange'](_0xaeeff3,!0x0))&&_0x568285['discard']();if(_0x305016['every'](_0x37e93b=>_0xaeeff3['containsRange'](_0x37e93b,!0x0))){const _0x686f8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3cb2,'accept');return this['forceDefaultExecution'](()=>_0x686f8(_0x305016,null,_0x44641a)),null;}}const _0x2ae4bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3cb2,'join');let _0x3e734e=null;for(const _0x1231cc of this['getSuggestions']())if(_0x1231cc['author']['id']==_0x2f89f6['id']&&_0x1231cc['isInContent']&&'deletion'==_0x1231cc['type']&&_0x1231cc['subType']==_0x3c3cb2&&qt(_0x1231cc,_0x44641a)&&(_0x2ae4bc(_0x1231cc['getRanges'](),_0x305016)||_0x2ae4bc(_0x305016,_0x1231cc['getRanges']()))){if(_0x3e734e){if(_0x1231cc['commentThread']&&_0x1231cc['commentThread']['length'])continue;for(const _0x1022cf of _0x1231cc['getRanges']())_0x3e734e['isIntersectingWithRange'](_0x1022cf)||_0x3e734e['addRange'](_0x1022cf);_0x1231cc['removeMarkers']();}else{_0x3e734e=_0x1231cc;for(const _0x4c2287 of _0x305016)_0x1231cc['isIntersectingWithRange'](_0x4c2287)||_0x1231cc['addRange'](_0x4c2287);}}if(_0x3e734e)return _0x3e734e;_0x277097['clear']();for(const {suggestion:_0x451ad6,meta:_0x555d32}of this['_findSuggestions'](_0x305016,'deletion'))_0x555d32['isOwn']&&(this['_mergeNestedSuggestions']||!_0x555d32['containsRangeInObject']&&!_0x555d32['isInsideObject'])&&qt(_0x451ad6,_0x44641a)&&_0x277097['add'](_0x451ad6);for(const _0x2bc9c6 of _0x277097){const _0x311c15=_0x2bc9c6['getRanges']();if(!_0x44641a||!_0x44641a['skipNestingCheck']){if(_0x305016['every'](_0xe6aef8=>_0x311c15['some'](_0x3c5670=>_0x3c5670['containsRange'](_0xe6aef8,!0x0))))return _0x2bc9c6;}(!_0x2bc9c6['attributes']||!_0x2bc9c6['attributes']['skipNestingCheck'])&&(_0x311c15['every'](_0x10a992=>_0x305016['some'](_0x5ba6a8=>_0x5ba6a8['containsRange'](_0x10a992,!0x0)))&&_0x2bc9c6['discard']());}const _0x17280b=_0x1d9854(),_0x18c38e=_0x2f89f6['id'],_0x24fc9c='deletion:'+_0x3c3cb2,_0x38809b=this['_setSuggestionData']({'id':_0x17280b,'type':_0x24fc9c,'createdAt':new Date(),'authorId':_0x18c38e,'attributes':_0x44641a});for(const _0x44325e of _0x305016)_0x44325e['detach'](),_0x44325e['isCollapsed']||'$graveyard'==_0x44325e['root']['rootName']||this['_addSuggestionMarker'](_0x24fc9c,_0x17280b,_0x18c38e,_0x44325e,u['getMultiRangeId']());return _0x38809b;}['markAttributeChange'](_0x487d2b,_0x37cf99,_0x38c0de,_0x3d4894,_0x23fa76){if(_0x487d2b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x542d83=this['editor']['plugins']['get']('Users')['me']['id'],_0x414e7f=Array['from'](this['_suggestions']['values']())['filter'](_0x559c17=>'attribute'==_0x559c17['type']&&_0x559c17['data']['key']==_0x37cf99&&_0x559c17['isIntersectingWithRange'](_0x487d2b));if('default'===this['_trackFormatChanges']){const _0x5c2ff5=this['_findSuggestions'](_0x487d2b,'insertion')['filter'](({meta:_0x488765})=>_0x488765['isOwn']&&!_0x488765['isInsideObject']&&!_0x488765['isNextTo'])['map'](({suggestion:_0x34a610})=>_0x34a610);_0x414e7f['unshift'](..._0x5c2ff5);}const _0x1a1921=new Map([[_0x487d2b,_0x38c0de]]);for(const _0x3d268e of _0x414e7f){const _0x27233d='attribute'==_0x3d268e['type']?_0x3d268e['data']['oldValue']:void 0x0,_0x24feda=_0x3d268e['getFirstRange'](),_0x5cfc39=Array['from'](_0x1a1921['keys']())['find'](_0x3993c2=>_0x3993c2['isIntersecting'](_0x24feda));if(!_0x5cfc39)continue;const _0x1c9b51=_0x5cfc39['getDifference'](_0x24feda);this['_isBlockAttribute'](_0x37cf99)&&'insertion'==_0x3d268e['type']&&0x0!=_0x1c9b51['length']||(_0x1a1921['delete'](_0x5cfc39),_0x1c9b51['forEach'](_0x266fa5=>{_0x1a1921['set'](_0x266fa5,_0x38c0de);}),'insertion'!=_0x3d268e['type']&&_0x27233d!=_0x3d4894&&_0x1a1921['set'](_0x5cfc39['getIntersection'](_0x24feda),_0x27233d));}const _0x87000=[];for(const [_0x5baab9,_0x2036a6]of _0x1a1921){const _0x2c1f62=_0x1d9854(),_0x4bcf42={'key':_0x37cf99,'oldValue':_0x2036a6,'newValue':_0x3d4894};_0x37cf99['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':_0x37cf99});const _0x193e4c=('attribute:'+(_0x37cf99+'|'+Gt({'newValue':_0x3d4894})))['substring'](0x0,0x3c),_0xbf2353=this['_setSuggestionData']({'id':_0x2c1f62,'type':_0x193e4c,'data':_0x4bcf42,'createdAt':new Date(),'authorId':_0x542d83,'attributes':_0x23fa76});_0x87000['push'](_0xbf2353),this['_addSuggestionMarker'](_0x193e4c,_0x2c1f62,_0x542d83,_0x5baab9);}return _0x87000;}['enableDefaultAttributesIntegration'](_0x9d5df9){this['enableCommand'](_0x9d5df9,(_0x37098a,..._0xfa090)=>{this['_recordAttributeChanges'](()=>{_0x37098a(..._0xfa090);});});}['registerBlockAttribute'](_0x2a869a){this['_blockAttributeKeys']['add'](_0x2a869a);}['registerInlineAttribute'](_0x556aea){this['_inlineAttributeKeys']['add'](_0x556aea);}['_getAttributeKey'](_0x130c40){return'attribute'==_0x130c40['type']?_0x130c40['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xe4fa7e,_0xa0c8ed){const _0x293672=_0xe4fa7e['getFirstMarker']();this['_model']['change'](_0x322a3f=>{_0x322a3f['updateMarker'](_0x293672,{'range':_0xa0c8ed});});}['_addThreadToSuggestion'](_0x3efee5){const _0x113790=_0x3efee5['id'],_0x11f3a5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x113790)||this['_commentsRepository']['addCommentThread']({'channelId':_0x11f3a5,'threadId':_0x113790,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x298c3a=this['_commentsRepository']['getCommentThread'](_0x113790);_0x298c3a['unbind']('isRemovable'),_0x298c3a['isRemovable']=!0x1,_0x3efee5['commentThread']=_0x298c3a;}['_checkSuggestionCorrectness'](_0x4ca54a,_0x414919,_0x49e0fb,_0x3e203a){if(_0x4ca54a['type']!=_0x414919||_0x4ca54a['subType']!=_0x49e0fb||_0x4ca54a['creator']['id']!=_0x3e203a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xec2a34('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x203575,_0x42b2b6){const _0x2424c5=_0x203575['getFirstRange']();if(_0x42b2b6['isEqual'](_0x2424c5))_0x203575['removeMarkers']();else{if(_0x2424c5['containsRange'](_0x42b2b6)){const _0x4368b9=this['_model']['createPositionAt'](_0x42b2b6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x203575,this['_model']['createRange'](_0x2424c5['start'],_0x4368b9));const _0x208829=_0x1d9854(),_0x5a1a4b=_0x203575['creator']['id'],_0x34f035=_0x203575['type']+':'+_0x203575['subType'];this['_setSuggestionData']({'id':_0x208829,'type':_0x34f035,'createdAt':new Date(),'authorId':_0x5a1a4b,'data':_0x203575['data'],'attributes':_0x203575['attributes']});const _0x2d1836=this['_model']['createPositionAt'](_0x42b2b6['end']['parent'],'after'),_0x3714ac=this['_model']['createRange'](_0x2d1836,_0x2424c5['end']);this['_addSuggestionMarker'](_0x34f035,_0x208829,_0x5a1a4b,_0x3714ac);}else{if(_0x2424c5['containsPosition'](_0x42b2b6['start'])){const _0x5a5328=this['_model']['createPositionAt'](_0x42b2b6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x203575,this['_model']['createRange'](_0x2424c5['start'],_0x5a5328));}else{const _0x42ea47=this['_model']['createPositionAt'](_0x42b2b6['end']['parent'],'after');this['_setSuggestionRange'](_0x203575,this['_model']['createRange'](_0x42ea47,_0x2424c5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2cfc96){for(const {suggestion:_0x4e8704,meta:_0x1ca58a}of this['_findSuggestions'](_0x2cfc96,'insertion')){if(!_0x1ca58a['isOwn'])continue;const _0x2ad545=_0x4e8704['getRanges']();for(const _0x85efb6 of _0x2ad545)if(!_0x2cfc96['getDifference'](_0x85efb6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x15c36c){const _0x168c7a=this['editor']['plugins']['get']('Users')['getUser'](_0x15c36c);if(!_0x168c7a)throw new _0xec2a34('track-changes-user-not-found',this);return _0x168c7a;}['_getExternalAuthor'](_0x522a03){const _0x5149f6=this['editor']['plugins']['get']('Users'),_0x329693=_0x40a42b('external:'+_0x522a03),_0x119aac=_0x5149f6['getUser'](_0x329693);return _0x119aac||_0x5149f6['addUser']({'id':_0x329693,'name':_0x522a03});}['_createSuggestion'](_0x24bc47,_0x30e40d,_0x5961f8,_0x419713,_0x4c2350){const _0x1a94fc=this['_getAuthorFromId'](_0x419713),_0x5fb11=this['_suggestionFactory']['buildSuggestion'](_0x24bc47,_0x30e40d,_0x5961f8,_0x1a94fc,_0x4c2350,_0x712934=>{this['_updateSuggestionData'](_0x5961f8,{'attributes':_0x712934});const _0x3c98e2=this['getSuggestion'](_0x5961f8);this['_joinWithAdjacentSuggestions'](new Set([_0x3c98e2])),this['_refreshSuggestionsChain'](new Set([_0x3c98e2]));});return this['listenTo'](_0x5fb11,'accept',()=>{this['_updateSuggestionData'](_0x5961f8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5fb11,'discard',()=>{this['_updateSuggestionData'](_0x5961f8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5961f8,_0x5fb11),this['_suggestionState']['set'](_0x5fb11,'notReady'),_0x5fb11;}['_splitMarkerName'](_0x2c109c){const _0x12feaf=_0x2c109c['split'](':');return{'group':_0x12feaf[0x0],'type':_0x12feaf[0x1],'subType':_0x12feaf['length']>=0x5?_0x12feaf[0x2]:null,'id':_0x12feaf['length']<0x5?_0x12feaf[0x2]:_0x12feaf[0x3],'authorId':_0x12feaf['length']<0x5?_0x12feaf[0x3]:_0x12feaf[0x4],'markerCount':0x6==_0x12feaf['length']?_0x12feaf[0x5]:null};}['_breakSuggestionMarker'](_0x302802,_0x166ef4,_0x1be359){const _0x1c30c8=_0x302802['getFirstRange'](),_0x5c6842=_0x1c30c8['start'],_0x3f600d=_0x1c30c8['end'];this['_setSuggestionRange'](_0x302802,this['_model']['createRange'](_0x5c6842,_0x166ef4));const _0x3c2208=_0x1d9854(),_0x38c133=_0x302802['creator']['id'],_0x5e5ee4=_0x302802['type']+(_0x302802['subType']?':'+_0x302802['subType']:'');this['_setSuggestionData']({'id':_0x3c2208,'type':_0x5e5ee4,'createdAt':new Date(),'authorId':_0x38c133,'originalSuggestionId':_0x302802['id'],'attributes':_0x302802['attributes'],'data':_0x302802['data']});const _0x52212d=this['_getAttributeKey'](_0x302802);('formatBlock'==_0x302802['type']||_0x52212d&&this['_isBlockAttribute'](_0x52212d))&&(_0x1be359=this['_model']['createPositionBefore'](_0x1be359['parent'])),this['_addSuggestionMarker'](_0x5e5ee4,_0x3c2208,_0x38c133,this['_model']['createRange'](_0x1be359,_0x3f600d));}['_findSuggestions'](_0x5d548d,_0x596409=null){const _0x315235=[],_0x187872=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5d548d)||(_0x5d548d=[_0x5d548d]);for(const _0x46bcc3 of this['getSuggestions']()){if(!_0x46bcc3['isInContent'])continue;if(_0x596409&&_0x46bcc3['type']!=_0x596409)continue;let _0x1599f4=!0x1;for(const _0x442fc8 of _0x46bcc3['getRanges']()){for(const _0x2d647e of _0x5d548d){const _0x31e2df=_0x2d647e['start']['isEqual'](_0x442fc8['end'])||_0x2d647e['end']['isEqual'](_0x442fc8['start']);if(_0x31e2df||_0x2d647e['getIntersection'](_0x442fc8)){const _0x2e2f89=_0x2d647e['containsRange'](_0x442fc8)&&Ot(this['_model']['schema'],_0x442fc8['start'],_0x2d647e),_0x9142da=_0x442fc8['containsRange'](_0x2d647e)&&Ot(this['_model']['schema'],_0x2d647e['start'],_0x442fc8);_0x315235['push']({'suggestion':_0x46bcc3,'meta':{'isOwn':_0x187872==_0x46bcc3['author'],'isNextTo':_0x31e2df,'isInsideObject':_0x2e2f89,'containsRangeInObject':_0x9142da}}),_0x1599f4=!0x0;break;}}if(_0x1599f4)break;}}return _0x315235;}['_addSuggestionMarker'](_0x2d6bf6,_0x4c24ea,_0x311b9e,_0x2d55d2,_0x544bf8){this['_model']['change'](_0x337393=>{let _0x308370='suggestion:'+_0x2d6bf6+':'+_0x4c24ea+':'+_0x311b9e;_0x544bf8&&(_0x308370=_0x308370+':'+_0x544bf8),_0x337393['addMarker'](_0x308370,{'range':_0x2d55d2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3504c0){const _0x4748d2=_0x3504c0['previous'],_0x142d6e=_0x3504c0['next'];_0x3504c0['previous']=null,_0x3504c0['next']=null,null!=_0x4748d2&&_0x4748d2['next']==_0x3504c0&&(_0x4748d2['next']=_0x142d6e),null!=_0x142d6e&&_0x142d6e['previous']==_0x3504c0&&(_0x142d6e['previous']=_0x4748d2),'ready'==this['_suggestionState']['get'](_0x3504c0)&&(this['_suggestionState']['set'](_0x3504c0,'removed'),this['fire']('suggestionUnloaded',_0x3504c0,_0x4748d2,_0x142d6e));}['_setSuggestionData'](_0x5be378){const _0x405510=_0x5be378['id'],_0x2ca513=this['addSuggestionData'](_0x5be378);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x36a2be=this['editor']['plugins']['get']('PendingActions'),_0x209ef3=_0x2ca513['hasComments'],_0x96ddd7=_0x2ca513['subType']?_0x2ca513['type']+':'+_0x2ca513['subType']:_0x2ca513['type'],_0x250b02=this['editor']['locale'],_0x28c481=_0x36a2be['add'](o(_0x250b02,'PENDING_ACTION_SUGGESTION')),_0x3e5dfc={'id':_0x405510,'type':_0x96ddd7,'hasComments':_0x209ef3,'data':_0x5be378['data']||null,'originalSuggestionId':_0x5be378['originalSuggestionId']||null,'attributes':_0x2ca513['attributes']};this['_adapter']['addSuggestion'](_0x3e5dfc)['then'](_0x2c87fc=>{_0x2ca513['_saved']=!0x0,_0x36a2be['remove'](_0x28c481),_0x2c87fc&&_0x2c87fc['createdAt']&&(this['_suggestions']['get'](_0x405510)['createdAt']=_0x2c87fc['createdAt']);})['catch'](_0x23632e=>{throw _0x144746('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ca513['discard']();}),_0x2ca513['stopListening'](),this['_suggestions']['delete'](_0x2ca513['id']),this['_suggestionState']['delete'](_0x2ca513),_0x23632e;});}return _0x2ca513;}['_isBlockAttribute'](_0x4fea13){return this['_blockAttributeKeys']['has'](_0x4fea13);}['_updateSuggestionData'](_0x404a70,_0x32cb36){const _0x44d4b1=this['editor']['plugins']['get']('PendingActions'),_0x41531e=this['getSuggestion'](_0x404a70);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x41531e['_saved']){const _0x14ec54=_0x44d4b1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x404a70,_0x32cb36)['then'](()=>{_0x44d4b1['remove'](_0x14ec54);});}else _0x41531e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x404a70,_0x32cb36);});}}['_getSuggestionData'](_0x47f65d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xec2a34('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47f65d);}['_handleNewSuggestionMarker'](_0x3d003b){const {id:_0x180747,type:_0x3b084c,subType:_0x2b8512,authorId:_0x43f645}=this['_splitMarkerName'](_0x3d003b),_0x2c422d=this['_suggestions']['get'](_0x180747)||this['_createSuggestion'](_0x3b084c,_0x2b8512,_0x180747,_0x43f645,{});switch(this['_checkSuggestionCorrectness'](_0x2c422d,_0x3b084c,_0x2b8512,_0x43f645),this['_suggestionState']['get'](_0x2c422d)){case'notReady':this['_getSuggestionData'](_0x180747)['then'](_0x285ab2=>{let _0x28c28c=Promise['resolve']();_0x285ab2['hasComments']&&(_0x28c28c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x180747})),_0x28c28c['then'](()=>{this['addSuggestionData'](_0x285ab2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c422d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x180747,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c422d,'ready'),this['fire']('suggestionLoaded',_0x2c422d);break;case'ready':this['fire']('suggestionChanged',_0x2c422d);}return _0x2c422d['addMarkerName'](_0x3d003b),_0x2c422d;}['_refreshSuggestionsChain'](_0x35a3d9){const _0x4ffeec=Array['from'](_0x35a3d9),_0x279461=_0x4ffeec['filter'](_0x3f3c2b=>'attribute'==_0x3f3c2b['type']);this['_refreshAttributeSuggestionsChain'](_0x279461);const _0x490636=_0x4ffeec['filter'](_0x1ea7aa=>!_0x1ea7aa['isMultiRange']&&'attribute'!=_0x1ea7aa['type']),_0x5fdfda=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bc1a0=>!_0x1bc1a0['isMultiRange']&&'attribute'!=_0x1bc1a0['type']),_0x30d58f=_0x5fdfda['filter'](_0x4b7363=>!_0x35a3d9['has'](_0x4b7363)),_0x3d751b=new Map(_0x5fdfda['map'](_0x284937=>[_0x284937,this['_suggestionFactory']['getSuggestionCallback'](_0x284937['type'],_0x284937['subType'],'chain')])),_0x489bbc=new Map(_0x5fdfda['map'](_0x5eb053=>[_0x5eb053,_0x5eb053['getFirstRange']()])),_0x4c72a7=new Set(),_0x4679e6=new Set();for(let _0x173932=0x0;_0x173932<_0x490636['length'];_0x173932++)_0xe2bfbb(_0x490636[_0x173932],_0x490636,_0x173932+0x1);for(let _0xaba5da=0x0;_0xaba5da<_0x490636['length'];_0xaba5da++)_0xe2bfbb(_0x490636[_0xaba5da],_0x30d58f,0x0);const _0x3d7691=new Set();for(let _0x10a1b5=0x0;_0x10a1b5<_0x490636['length'];_0x10a1b5++){const _0x257595=_0x490636[_0x10a1b5];!_0x4679e6['has'](_0x257595)&&_0x257595['previous']&&(_0x3d7691['add'](_0x257595['previous']),_0x257595['previous']['next']===_0x257595&&(_0x257595['previous']['next']=null),_0x257595['previous']=null),!_0x4c72a7['has'](_0x257595)&&_0x257595['next']&&(_0x3d7691['add'](_0x257595['next']),_0x257595['next']['previous']===_0x257595&&(_0x257595['next']['previous']=null),_0x257595['next']=null);}function _0xe2bfbb(_0x11eb3a,_0x16c948,_0xaa8d23){for(let _0x5e6af7=_0xaa8d23;_0x5e6af7<_0x16c948['length'];_0x5e6af7++){const _0x2bda59=_0xa484b1(_0x11eb3a,_0x16c948[_0x5e6af7]);_0x2bda59&&(_0x2bda59[0x0]['next']=_0x2bda59[0x1],_0x2bda59[0x1]['previous']=_0x2bda59[0x0],_0x4c72a7['add'](_0x2bda59[0x0]),_0x4679e6['add'](_0x2bda59[0x1]));}}function _0xa484b1(_0x254b8d,_0x433b99){if(_0x254b8d['author']['id']!==_0x433b99['author']['id'])return null;const _0x1d3205=_0x3d751b['get'](_0x254b8d)(_0x254b8d,_0x433b99,_0x489bbc['get'](_0x254b8d),_0x489bbc['get'](_0x433b99));if(!_0x1d3205)return null;return _0x3d751b['get'](_0x433b99)(_0x254b8d,_0x433b99,_0x489bbc['get'](_0x254b8d),_0x489bbc['get'](_0x433b99))?_0x1d3205[0x1]['commentThread']&&_0x1d3205[0x1]['commentThread']['length']?null:_0x1d3205:null;}_0x3d7691['size']&&this['_refreshSuggestionsChain'](_0x3d7691);}['_refreshAttributeSuggestionsChain'](_0x372070){if(0x0==_0x372070['length'])return;const _0x10f688=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x270ad2=>'attribute'==_0x270ad2['type']&&_0x270ad2['_isDataLoaded']),_0x38c6a0=[],_0x2e92a4=new Map();for(const _0x3042f0 of _0x10f688){const _0x33c302=_0x40a42b(_0x3042f0['attributes']);_0x2e92a4['has'](_0x33c302)||(_0x2e92a4['set'](_0x33c302,_0x38c6a0['length']),_0x38c6a0['push']([]));const _0x1a954c=_0x2e92a4['get'](_0x33c302);_0x38c6a0[_0x1a954c]['push'](_0x3042f0);}!(function(){_0x38c6a0['sort']((_0x73b3f5,_0x12347a)=>{const _0x52a6fa=_0x73b3f5[0x0]['createdAt'],_0x4bedd1=_0x12347a[0x0]['createdAt'];return _0x52a6fa==_0x4bedd1?_0x73b3f5[0x0]['attributes']['groupId']<_0x12347a[0x0]['attributes']['groupId']?-0x1:0x1:_0x52a6fa<_0x4bedd1?-0x1:0x1;});for(const _0x4c1dd8 of _0x38c6a0)_0x4c1dd8['sort']((_0x56e56d,_0xedf378)=>_0x56e56d['id']<_0xedf378['id']?-0x1:0x1);}());for(let _0x331f01=0x0;_0x331f01<_0x38c6a0['length'];_0x331f01++){if(0x0==_0x38c6a0[_0x331f01]['length'])continue;const _0x5d3248=[];for(let _0x3ee525=_0x331f01+0x1;_0x3ee525<_0x38c6a0['length'];_0x3ee525++)0x0!=_0x38c6a0[_0x3ee525]['length']&&_0x485fdb(_0x38c6a0[_0x331f01],_0x38c6a0[_0x3ee525])&&_0x5d3248['push'](_0x3ee525);for(const _0x1be61c of _0x5d3248)_0x38c6a0[_0x331f01]=_0x38c6a0[_0x331f01]['concat'](_0x38c6a0[_0x1be61c]),_0x38c6a0[_0x1be61c]=[];}for(const _0x2b6b9b of _0x38c6a0)for(let _0x33cc1b=0x0;_0x33cc1b<_0x2b6b9b['length'];_0x33cc1b++){const _0x2caf2b=_0x2b6b9b[_0x33cc1b+0x1]||null;_0x2b6b9b[_0x33cc1b]['next']!==_0x2caf2b&&(_0x2b6b9b[_0x33cc1b]['next']=_0x2caf2b);}for(const _0x110601 of _0x38c6a0)for(let _0x522ac1=0x0;_0x522ac1<_0x110601['length'];_0x522ac1++){const _0x292371=_0x110601[_0x522ac1-0x1]||null;_0x110601[_0x522ac1]['previous']!==_0x292371&&(_0x110601[_0x522ac1]['previous']=_0x292371);}function _0x485fdb(_0x340771,_0x18e61b){if(_0x340771[0x0]['attributes']['groupId']!==_0x18e61b[0x0]['attributes']['groupId']&&_0x340771[0x0]['author']!==_0x18e61b[0x0]['author'])return!0x1;if(!function(_0x4aefac,_0x2e4347){if(!_0x4aefac['hasComments']&&!_0x2e4347['hasComments'])return!0x0;if(_0x4aefac['hasComments']&&_0x2e4347['hasComments'])return!0x1;if(_0x4aefac['hasComments']&&_0x2e4347['createdAt']<_0x4aefac['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2e4347['hasComments']&&_0x4aefac['createdAt']<_0x2e4347['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x340771[0x0],_0x18e61b[0x0]))return!0x1;const _0x116c0d=Tt(_0x340771[0x0]['attributes'],'groupId'),_0x4fbf27=Tt(_0x18e61b[0x0]['attributes'],'groupId');if(!_0x33fc0b(_0x116c0d,_0x4fbf27))return!0x1;return!!_0x340771['every'](_0x3af921=>_0x18e61b['some'](_0x473be6=>_0x3af921['getFirstRange']()['isEqual'](_0x473be6['getFirstRange']())))&&_0x18e61b['every'](_0x20f9eb=>_0x340771['some'](_0x566e66=>_0x20f9eb['getFirstRange']()['isEqual'](_0x566e66['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1d6a2c){const _0x2e2137=Array['from'](_0x1d6a2c),_0x2e5c39=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4292b4=_0x2e5c39['filter'](_0x1df34c=>!_0x1d6a2c['has'](_0x1df34c)),_0x507703=new Map(_0x2e2137['map'](_0x2de990=>[_0x2de990,this['_suggestionFactory']['getSuggestionCallback'](_0x2de990['type'],_0x2de990['subType'],'join')])),_0x3cfdd9=new Map(_0x2e5c39['map'](_0x13466a=>[_0x13466a,_0x13466a['getRanges']()]));for(let _0x2cb58d=0x0;_0x2cb58d<_0x2e2137['length'];_0x2cb58d++){if(_0x3cdc8a(this,_0x2e2137[_0x2cb58d],_0x2e2137,_0x2cb58d+0x1))return!0x0;}for(let _0x4f455d=0x0;_0x4f455d<_0x2e2137['length'];_0x4f455d++){if(_0x3cdc8a(this,_0x2e2137[_0x4f455d],_0x4292b4,0x0))return!0x0;}return!0x1;function _0x3cdc8a(_0x4102f7,_0x5b2c0d,_0x21a142,_0x57e482){for(let _0x227d38=_0x57e482;_0x227d38<_0x21a142['length'];_0x227d38++){const _0x1b3251=_0x21a142[_0x227d38];if(_0x1b3251['type']!==_0x5b2c0d['type']||_0x1b3251['author']['id']!==_0x5b2c0d['author']['id']||_0x1b3251['subType']!==_0x5b2c0d['subType'])continue;if(!Jt(_0x5b2c0d,_0x1b3251))continue;if('attribute'==_0x5b2c0d['type']&&_0x5b2c0d['data']['oldValue']!=_0x1b3251['data']['oldValue'])continue;if('attribute'==_0x5b2c0d['type']&&_0x4102f7['_isBlockAttribute'](_0x5b2c0d['data']['key']))continue;if('formatBlock'==_0x5b2c0d['type']){const _0x4d9906=_0x4102f7['editor']['model'],_0x54f239=_0x5b2c0d['getContainedElement']();if(_0x54f239&&(_0x4d9906['schema']['isObject'](_0x54f239)||_0x4d9906['schema']['isLimit'](_0x54f239)))continue;}const _0xd5efd6=_0x507703['get'](_0x5b2c0d),_0x3305a6=_0x3cfdd9['get'](_0x5b2c0d),_0x3cb8f6=_0x3cfdd9['get'](_0x1b3251),_0x3cefea=_0x5b2c0d['commentThread']&&_0x5b2c0d['commentThread']['length'],_0x13b4ba=_0x1b3251['commentThread']&&_0x1b3251['commentThread']['length'];if(!_0x3cefea&&_0xd5efd6(_0x3cb8f6,_0x3305a6))return _0x4102f7['_joinSuggestions'](_0x1b3251,_0x5b2c0d),_0x3cfdd9['delete'](_0x5b2c0d),!0x0;if(!_0x13b4ba&&_0xd5efd6(_0x3305a6,_0x3cb8f6))return _0x4102f7['_joinSuggestions'](_0x5b2c0d,_0x1b3251),_0x3cfdd9['delete'](_0x1b3251),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2459c3,_0x160fb2){if(_0x2459c3['isMultiRange']){for(const _0x48533f of _0x160fb2['getRanges']())_0x2459c3['addRange'](_0x48533f);}else{const _0x3ac892=_0x160fb2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2459c3,this['_model']['createRange'](_0x2459c3['getFirstRange']()['start'],_0x3ac892));}_0x160fb2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x25a042,_0x3961f1,_0x31f6c2){const _0x52a028=_0x25a042['startsWith']('format')||_0x25a042['startsWith']('attribute')?'FORMATTING':_0x25a042['toUpperCase']();return o(this['editor']['locale'],_0x3961f1+'_'+_0x52a028+'_SUGGESTION_ANNOUNCEMENT',_0x31f6c2);}['_initAriaMarkerChangeAnnouncements'](){const _0x46be51=this['editor'];if(!_0x46be51['ui'])return;const {ariaLiveAnnouncer:_0x26cd35}=_0x46be51['ui'];_0x3e644a(this['_model'],({left:_0x338a90,entered:_0x42437b})=>{for(const _0x3d400d of _0x338a90){const {group:_0xbee4aa,type:_0x1548ed}=this['_splitMarkerName'](_0x3d400d['name']);if('suggestion'===_0xbee4aa){_0x26cd35['announce'](this['_getMarkerAnnouncementText'](_0x1548ed,'LEAVE'));break;}}for(const _0x2bb114 of _0x42437b){const {group:_0x2525da,type:_0x55ea86}=this['_splitMarkerName'](_0x2bb114['name']);if('suggestion'===_0x2525da){_0x26cd35['announce'](this['_getMarkerAnnouncementText'](_0x55ea86,'ENTER',_0x8b9ade(_0x20e465)));break;}}});}['_processAttributeChanges'](_0x3b323e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2673d9=this['editor'],_0x2887db=_0x2673d9['model']['document']['differ']['getChanges']();if(0x0==_0x2887db['length'])return!0x1;const _0x2c3e75=[],_0x16632f=_0x2887db['filter'](_0x5132b9=>'attribute'==_0x5132b9['type']),_0x359eaf=_0x2887db['filter'](_0x5789fe=>'insert'==_0x5789fe['type']&&'$text'!=_0x5789fe['name']),_0x1b7eca=_0x2887db['filter'](_0x23f840=>'remove'==_0x23f840['type']&&'$text'!=_0x23f840['name']);for(const _0x51d04c of _0x16632f)_0x2c3e75['push']({'key':_0x51d04c['attributeKey'],'newValue':_0x51d04c['attributeNewValue'],'oldValue':_0x51d04c['attributeOldValue'],'range':Pt(_0x51d04c['range'],_0x2673d9['model'])});for(const _0x2d9b30 of _0x359eaf){const _0x37506b=_0x1b7eca['find'](_0x246169=>_0x246169['position']['isEqual'](_0x2d9b30['position']));_0x37506b&&_0x2c3e75['push']({'key':m,'newValue':_0x2d9b30['name'],'oldValue':_0x37506b['name'],'range':_0x2673d9['model']['createRangeOn'](_0x2d9b30['position']['nodeAfter'])});}return 0x0!=_0x2c3e75['length']&&this['_reduceExistingSuggestions'](_0x3b323e,_0x2c3e75);}['_processAttributeSuggestions'](_0x41d73e){let _0x107e6f=!0x1;const _0x3cc994=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x47f1d6=>_0x47f1d6['data']['newRange']&&_0x47f1d6['name']['startsWith']('suggestion:attribute:'));for(const _0x2d6efd of _0x3cc994){const {subType:_0xb07aff,id:_0x1313b1}=this['_splitMarkerName'](_0x2d6efd['name']),_0x12fcc7=_0xb07aff['split']('|')[0x0];for(const _0x33a434 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x33a434['id']!=_0x1313b1&&'attribute'==_0x33a434['type']&&_0x33a434['data']&&_0x33a434['data']['key']==_0x12fcc7&&_0x33a434['getFirstRange']()['isIntersecting'](_0x2d6efd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x33a434,_0x2d6efd['data']['newRange'],_0x41d73e),_0x107e6f=!0x0);}return _0x107e6f;}['_recordAttributeChanges'](_0x16a88f){this['_recordAttributeSuggestions']=!0x0,_0x16a88f();}['_isRegisteredAttribute'](_0x1c992a){const _0x33c249=this['_isBlockAttribute'](_0x1c992a),_0x318928=this['_inlineAttributeKeys']['has'](_0x1c992a);return _0x33c249||_0x318928;}['_reduceExistingSuggestions'](_0x50b054,_0x5d01bd){if(0x0==_0x5d01bd['length'])return!0x1;let _0x30ddc2=!0x1;for(const _0x464457 of _0x5d01bd){const _0x13d106=this['_findSuggestions'](_0x464457['range'],'attribute')['filter'](_0x45eb0f=>!_0x45eb0f['meta']['isNextTo'])['map'](_0x241328=>_0x241328['suggestion']),_0xdbc537=_0x40a42b({'newValue':_0x464457['newValue']});_0x13d106['filter'](_0x32b2e7=>{const [_0x3f2774,_0x4c437b]=_0x32b2e7['subType']['split']('|');return _0x3f2774==_0x464457['key']&&_0x4c437b!=_0xdbc537;})['forEach'](_0x200e61=>{this['_reduceSuggestionAttributeRange'](_0x200e61,_0x464457['range'],_0x50b054),_0x30ddc2=!0x0;});}return _0x30ddc2;}['_reduceSuggestionAttributeRange'](_0x28a6f9,_0x4c5694,_0x1b3e09){const _0x4a4626=_0x28a6f9['getFirstRange']()['getDifference'](_0x4c5694);0x0!==_0x4a4626['length']?0x1!==_0x4a4626['length']?this['_breakSuggestionMarker'](_0x28a6f9,_0x4c5694['start'],_0x4c5694['end']):this['_setSuggestionRange'](_0x28a6f9,_0x4a4626[0x0]):_0x1b3e09['removeMarker'](_0x28a6f9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x107cfc){this['_editor']=_0x107cfc,this['_model']=_0x107cfc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c7f88,_0x5885,_0xa46652,_0x37565c,_0x327773,_0x4dc4ae){return new u(this['_model'],{'type':_0x5c7f88,'subType':_0x5885,'id':_0xa46652,'author':_0x37565c,'creator':_0x37565c,'attributes':_0x327773,'onAttributesChange':_0x4dc4ae,'onAccept':(..._0x4ddaee)=>this['getSuggestionCallback'](_0x5c7f88,_0x5885,'accept')(..._0x4ddaee),'onDiscard':(..._0x127ee4)=>this['getSuggestionCallback'](_0x5c7f88,_0x5885,'discard')(..._0x127ee4)});}['registerCustomCallback'](_0x4f9aec,_0xdd5573,_0x4b9bb9,_0x438128){const _0x1cc902=_0x4f9aec+':'+_0xdd5573+':'+_0x4b9bb9;this['_customCallbacks']['set'](_0x1cc902,_0x438128);}['getSuggestionCallback'](_0x3b9b07,_0x2f2202,_0x2e8b99){const _0x375705=_0x3b9b07+':'+_0x2f2202+':'+_0x2e8b99;return this['_customCallbacks']['get'](_0x375705)||this['_defaultCallbacks']['get'](_0x3b9b07+':'+_0x2e8b99);}['_registerDefaultCallbacks'](){const _0x4b4f28=()=>!0x1,_0x210f0b=_0x49e0d4=>{_0x49e0d4['sort']((_0x2d7e5f,_0xb9b56)=>_0x2d7e5f['start']['isBefore'](_0xb9b56['start'])?0x1:-0x1),this['_model']['change'](_0x46e88c=>{for(const _0x272f7d of _0x49e0d4){let _0x359502;_0x359502=_0x272f7d['end']['isAtEnd']&&_0x272f7d['end']['parent']==_0x272f7d['start']['nodeAfter']?_0x46e88c['createSelection'](_0x272f7d['start']['nodeAfter'],'on'):_0x46e88c['createSelection'](_0x272f7d),this['_model']['deleteContent'](_0x359502,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x316f01=(_0x46b8ac,_0x4697e7)=>{_0x4697e7&&this['_model']['change'](_0x2c5ef4=>{const {commandName:_0x37dc7d,commandParams:_0x207208=[]}=_0x4697e7,_0x4b81bc=_0x46b8ac['map'](_0x173177=>(Vt(_0x173177)&&(_0x173177=this['_model']['createRange'](_0x173177['end'])),_0x173177))['filter'](_0x400c79=>'$graveyard'!==_0x400c79['root']['rootName']);if(_0x4b81bc['length']<0x1)return;const _0xbec087=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4da425=>_0x52a99c['fromRange'](_0x4da425));_0x2c5ef4['setSelection'](_0x4b81bc);for(const _0x5ec902 of this['_editor']['commands']['commands']())_0x5ec902['refresh']();_0x207208['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37dc7d,..._0x207208);const _0x18feba=_0xbec087['filter'](_0x547b54=>'$graveyard'!=_0x547b54['root']['rootName']);_0x18feba['length']>0x0&&_0x2c5ef4['setSelection'](_0x18feba);for(const _0x27cece of _0xbec087)_0x27cece['detach']();});},_0x28c4c1=(_0x43873d,_0x1baf6c)=>0x1==_0x43873d['length']&&0x1==_0x1baf6c['length']&&_0x43873d[0x0]['end']['isEqual'](_0x1baf6c[0x0]['start']),_0x29dfee=(_0x43c2db,_0x2057fe,_0x21e1bf,_0x9eb370)=>Ht(_0x43c2db,_0x2057fe,_0x21e1bf,_0x9eb370,this['_model'])?[_0x43c2db,_0x2057fe]:Ht(_0x2057fe,_0x43c2db,_0x9eb370,_0x21e1bf,this['_model'])?[_0x2057fe,_0x43c2db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b4f28),this['_defaultCallbacks']['set']('insertion:discard',_0x210f0b),this['_defaultCallbacks']['set']('insertion:join',_0x28c4c1),this['_defaultCallbacks']['set']('insertion:chain',_0x29dfee),this['_defaultCallbacks']['set']('deletion:accept',_0x210f0b),this['_defaultCallbacks']['set']('deletion:discard',_0x4b4f28),this['_defaultCallbacks']['set']('deletion:join',_0x28c4c1),this['_defaultCallbacks']['set']('deletion:chain',_0x29dfee),this['_defaultCallbacks']['set']('formatInline:accept',_0x316f01),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b4f28),this['_defaultCallbacks']['set']('formatInline:join',_0x28c4c1),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b4f28),this['_defaultCallbacks']['set']('formatBlock:accept',_0x316f01),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b4f28),this['_defaultCallbacks']['set']('formatBlock:join',_0x28c4c1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b4f28),this['_defaultCallbacks']['set']('attribute:accept',_0x4b4f28),this['_defaultCallbacks']['set']('attribute:discard',(_0x2058ee,_0x10dc05)=>{if(!_0x10dc05)return;const _0x442f9c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x18e276=>{if(_0x10dc05['key']==m)for(const _0x3e3e96 of _0x2058ee){const _0x3c7c75=_0x3e3e96['start']['nodeAfter'],_0x33f17c=_0x10dc05['oldValue'];_0x18e276['rename'](_0x3c7c75,_0x33f17c);}else{if(_0x442f9c['_isBlockAttribute'](_0x10dc05['key'])){for(const _0xe42d3d of _0x2058ee)void 0x0!==_0x10dc05['oldValue']?_0x18e276['setAttribute'](_0x10dc05['key'],_0x10dc05['oldValue'],_0xe42d3d['start']['nodeAfter']):_0x18e276['removeAttribute'](_0x10dc05['key'],_0xe42d3d['start']['nodeAfter']);}else{for(const _0xdb2af0 of _0x2058ee)_0x10dc05['oldValue']?_0x18e276['setAttribute'](_0x10dc05['key'],_0x10dc05['oldValue'],_0xdb2af0):_0x18e276['removeAttribute'](_0x10dc05['key'],_0xdb2af0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x28c4c1);}}function Ot(_0x8eb756,_0x5f572c,_0x94aac7){for(const _0x4e6d02 of _0x5f572c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4e6d02['root']==_0x4e6d02)return!0x1;if(!_0x94aac7['containsItem'](_0x4e6d02))return!0x1;if(_0x8eb756['isObject'](_0x4e6d02)||_0x8eb756['isLimit'](_0x4e6d02))return!0x0;}return!0x1;}function Vt(_0x5bf533){return _0x5bf533['end']['parent']==_0x5bf533['start']['nodeAfter']&&_0x5bf533['end']['isAtStart'];}function Ut(_0x390612,_0x10f3fd,_0x59c463,_0x28c93a){const _0x295262=_0x4d469b=>!_0x4d469b['item']['is']('$textProxy')&&!_0x28c93a['isObject'](_0x4d469b['item']),_0x1082e1=_0x390612['start']['getLastMatchingPosition'](_0x295262),_0x50963d=_0x390612['end']['getLastMatchingPosition'](_0x295262,{'direction':'backward'});return(!_0x390612['start']['isEqual'](_0x1082e1)||!_0x390612['end']['isEqual'](_0x50963d))&&(_0x1082e1['isBefore'](_0x50963d)?_0x59c463['updateMarker'](_0x10f3fd,{'range':_0x59c463['createRange'](_0x1082e1,_0x50963d)}):_0x59c463['removeMarker'](_0x10f3fd),!0x0);}function Gt(_0x2990a2){return _0x40a42b(_0x2990a2);}function Ft(_0x1b5c91){const _0x36a494=_0x1b5c91['start']['nodeAfter'];return _0x36a494&&_0x36a494['is']('element');}function Pt(_0x2e1cde,_0xc8df4d){return null==_0x2e1cde['end']['nodeBefore']&&_0x2e1cde['end']['parent']==_0x2e1cde['start']['nodeAfter']?Lt(_0x2e1cde['start']['nodeAfter'],_0xc8df4d):_0x2e1cde;}function Lt(_0x2aa49b,_0x5aa412){const _0x4b5609=_0x5aa412['schema']['isObject'](_0x2aa49b)||_0x5aa412['schema']['isSelectable'](_0x2aa49b);return _0x5aa412['createRange'](_0x5aa412['createPositionAt'](_0x2aa49b,'before'),_0x4b5609?_0x5aa412['createPositionAfter'](_0x2aa49b):_0x5aa412['createPositionAt'](_0x2aa49b,'end'));}function Ht(_0xef0ead,_0x13d746,_0x55ea0f,_0x3ddaef,_0x380e06){if(_0xef0ead['next'])return!0x1;if(!Jt(_0xef0ead,_0x13d746))return!0x1;if(_0x55ea0f['end']['isEqual'](_0x3ddaef['start']))return!0x0;if(_0xef0ead['type']!=_0x13d746['type'])return!0x1;if(!_0x55ea0f['end']['isTouching'](_0x3ddaef['start']))return!0x1;const _0x30bc0b=_0x380e06['createRange'](_0x55ea0f['end'],_0x3ddaef['start'])['getWalker']();for(const _0x874400 of _0x30bc0b)if(['elementStart','elementEnd']['includes'](_0x874400['type'])&&_0x380e06['schema']['isLimit'](_0x874400['item']))return!0x1;return!0x0;}function Jt(_0x313da,_0x47fdef){if(!_0x313da['_isDataLoaded']||!_0x47fdef['_isDataLoaded'])return!0x1;const _0x248c77=new Set(Object['keys'](_0x313da['attributes'])),_0xec9eb6=new Set(Object['keys'](_0x47fdef['attributes']));if(_0x248c77['delete']('groupId'),_0xec9eb6['delete']('groupId'),0x0==_0x248c77['size']&&0x0==_0xec9eb6['size'])return!0x0;if(_0x248c77['size']!=_0xec9eb6['size'])return!0x1;const _0xf6ba0d={..._0x313da['attributes']},_0x207f5c={..._0x47fdef['attributes']};return delete _0xf6ba0d['groupId'],delete _0x207f5c['groupId'],JSON['stringify'](_0xf6ba0d)==JSON['stringify'](_0x207f5c);}function qt(_0x26347a,_0x4d1975){const _0xfad32e=zt(_0x26347a['attributes']),_0x56da7c=zt(_0x4d1975);if(!_0x26347a['_isDataLoaded'])return!0x1;for(const _0x4f8778 of Object['keys'](_0x56da7c))if(!_0x33fc0b(_0xfad32e[_0x4f8778],_0x56da7c[_0x4f8778]))return!0x1;return!0x0;}function zt(_0x307083){const _0x542a2d=Object['assign']({},_0x307083);return delete _0x542a2d['skipNestingCheck'],delete _0x542a2d['tablePasteChainId'],_0x542a2d;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x1eebb1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4cc1eb,_0x4a5707,_0x270a92,_0x3943e1){super(),this['model']=_0x4a5707,this['view']=_0x270a92,this['commentThreadController']=_0x3943e1,this['_editor']=_0x4cc1eb,this['_acceptCommand']=_0x4cc1eb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4cc1eb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4fe80b,_0x5cb3f2)=>_0x4fe80b||_0x5cb3f2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x331672=>_0x331672&&this['_editor']['model']['canEditAt'](_0x4a5707['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3773d2=>_0x3773d2&&this['_editor']['model']['canEditAt'](_0x4a5707['getRanges']())),this['_pendingAction']=null,_0x270a92['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x270a92,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x270a92,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x270a92,'change:isDirty',()=>{_0x270a92['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 _0x4c4d50=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4c4d50);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x243c5a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c8a9a,_0x10436f,_0x5c85d0,_0x6df479){super(_0x3c8a9a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3872c0(_0x3c8a9a,o(_0x3c8a9a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10436f['authoredAt']),this['bind']('authoredAt')['to'](_0x10436f),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',_0x10436f,'authoredAt',this,'descriptionParts',(_0x3cabc8,_0x25e92e,_0x58f473)=>{const _0x1881b8=_0x58f473['map'](_0x21170b=>ls(_0x21170b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3cabc8-0x1,_0x10436f['author']['name'],_0x25e92e?_0x6df479['formatDateTime'](_0x25e92e):'',new DOMParser()['parseFromString'](_0x1881b8,'text/html')['body']['textContent']]);}),this['focusables']=new _0x487448(),this['focusTracker']=new _0x4735f9(),this['keystrokes']=new _0x2da3ad(),this['focusCycler']=new _0x58e1d3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1cbc07=>_0x1cbc07['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10436f,this['_localUser']=_0x5c85d0,this['_config']=_0x6df479,_0x6df479['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3c2da8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x56a4e9}=this['_config'];this['commentsListView']=new _0x56a4e9(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',_0x5e591c=>_0x5e591c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x14dc2c,_0x5a3dec)=>_0x14dc2c||!!_0x5a3dec);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x526598}=this['_config'],_0x51d9ea=new _0x526598(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5e5582=_0x51d9ea['commentInputView'];return _0x51d9ea['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5e5582,'value',(_0x205f01,_0x5f18b7,_0x1e86f2)=>!!_0x1e86f2||_0x205f01&&!_0x5f18b7),_0x5e5582['on']('submit',(_0x57f3a4,_0x423031)=>{this['fire']('addComment',_0x423031),_0x5e5582['editor']['setData']('');}),_0x5e5582['on']('cancel',()=>this['focus']()),_0x5e5582['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51d9ea;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5c12c5,_0x464838,_0x2cabe5,_0x1d800f){super(_0x5c12c5,_0x464838,_0x2cabe5,_0x1d800f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x23fdac=>_0x23fdac&&_0x23fdac[0x0]?_0x23fdac[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x901b71,_0x1f1085)=>{let _0x1d4878='';for(const _0x45fe19 of _0x901b71)_0x1d4878+='<p>'+ls(_0x45fe19['content'],_0x45fe19['color'])+'</p>';return _0x1f1085?_0x1d4878:_0x1d1250(_0x1d4878,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1d800f['SuggestionView'](_0x5c12c5,_0x464838,{'formatDateTime':_0x1d800f['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1e1feb=this['bindTemplate'],_0x2de0ca=[this['suggestionView']];return this['commentsListView']&&_0x2de0ca['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2de0ca['push'](this['commentThreadInputView']),_0x2de0ca['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1e1feb['if']('isActive','ck-suggestion-wrapper--active'),_0x1e1feb['to']('type',_0x373bf0=>'ck-suggestion-'+_0x373bf0),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':_0x1e1feb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2de0ca};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x243c5a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x161e9c,_0x88865b,_0x565177){super(_0x161e9c),this['_model']=_0x88865b,this['_config']=_0x565177,this['set']('description',''),this['bind']('authoredAt')['to'](_0x88865b),this['acceptButton']=this['_createButton'](o(_0x161e9c,'Accept\x20suggestion'),_0x79ba0e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x161e9c,'Discard\x20suggestion'),_0x79ba0e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3bc74b(_0x161e9c,_0x88865b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x487448([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4735f9(),this['keystrokes']=new _0x2da3ad(),this['focusCycler']=new _0x58e1d3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x118f76=>_0x118f76['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x41de66=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x41de66['innerHTML']=this['description'],this['on']('change:description',(_0x590375,_0x5f01af,_0x2ba7e2)=>{_0x41de66['innerHTML']=_0x2ba7e2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x59f045=this['bindTemplate'],_0x43d5f5=[{'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']}},{'tag':'time','attributes':{'datetime':_0x59f045['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59f045['to']('authoredAt',_0x1637bc=>this['_config']['formatDateTime'](_0x1637bc))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x43d5f5['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x43d5f5}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2a17ed,_0x4d65b1,_0x192348,_0x54cd50,_0x4e90c1){const _0x383bb3=new _0x2f3f93(this['locale']);return _0x383bb3['set']({'label':_0x2a17ed,'icon':_0x4d65b1,'tooltip':!0x0,'tooltipPosition':_0x4e90c1}),_0x383bb3['extendTemplate']({'attributes':{'class':_0x192348}}),_0x383bb3['on']('execute',()=>{this['fire'](_0x54cd50,this['_model']['id']);}),_0x383bb3;}['_setupKeyboardNavigation'](){const _0x36e7c1=this['element'];this['keystrokes']['listenTo'](_0x36e7c1);for(const _0x12faa7 of this['focusables'])this['focusTracker']['add'](_0x12faa7['element']),this['keystrokes']['listenTo'](_0x12faa7['element']);this['keystrokes']['set']('enter',(_0x651d0e,_0x4ab626)=>{_0x36e7c1===_0x651d0e['target']&&(this['focusCycler']['focusFirst'](),_0x4ab626());}),this['keystrokes']['set']('esc',(_0x38312b,_0x37f726)=>{_0x36e7c1!==_0x38312b['target']&&(this['focus'](),_0x37f726());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x4db285{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c2de3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x27ac27){super(_0x27ac27),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x41af71=this['editor']['config'];_0x41af71['define']('trackChanges.SuggestionThreadView',re),_0x41af71['define']('trackChanges.SuggestionView',ce),_0x41af71['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x41af71['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b9024,_0x3296b6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3eed89,_0x323b43]of this['_handleControllerBuffer']){const _0x31bebe=this['_suggestionToController']['has'](_0x3eed89);_0x31bebe||_0x323b43?_0x31bebe&&_0x323b43&&this['_destroyController'](_0x3eed89):this['_initializeController'](_0x3eed89);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b9024,_0x3296b6);}['init'](){const _0xc9149b=this['editor'],_0x2ecf22=_0xc9149b['plugins']['get']('TrackChangesEditing'),_0x59776f=_0xc9149b['plugins']['get']('Annotations'),_0x3a6604=_0xc9149b['plugins']['get']('EditorAnnotations'),_0x39aedf=_0xc9149b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3a6604['addSourceCollector'](()=>{const _0x11089f=[];for(const [_0x16398c,_0x57cc0a]of Array['from'](this['_suggestionToController'])){const _0x5ec68a=_0x16398c['getAllAdjacentSuggestions'](),_0x2bb6b7=[];for(const _0x1327c7 of _0x5ec68a){if(!_0x1327c7['isInContent'])continue;if(_0x1327c7['isMultiRange']){_0x2bb6b7['push'](..._0x1327c7['getRanges']());continue;}const _0x1b551f=_0x1327c7['getFirstRange']();if(_0x2bb6b7['length']>0x0){const _0x48a180=_0x2bb6b7[0x0]['getJoined'](_0x1b551f);if(_0x48a180){_0x2bb6b7[0x0]=_0x48a180;continue;}}_0x2bb6b7['push'](_0x1b551f);}_0x11089f['push']([_0x57cc0a['view'],_0x2bb6b7]);}return _0x11089f;}),this['listenTo'](_0x2ecf22,'suggestionLoaded',(_0x30cf1a,_0x5f094d)=>{this['listenTo'](_0x5f094d,'change:previous',(_0x4ff42d,_0x3bdb74,_0x5bda0d,_0x48d82a)=>{_0x5f094d['isInContent']&&(null==_0x5bda0d?(this['_updateController'](_0x48d82a['head']),this['_handleSuggestionControllerDelayed'](_0x5f094d,!0x1)):(this['_updateController'](_0x5bda0d['head']),null==_0x48d82a&&this['_handleSuggestionControllerDelayed'](_0x5f094d,!0x0)));}),null!==_0x5f094d['previous']?this['_updateController'](_0x5f094d['head']):this['_handleSuggestionControllerDelayed'](_0x5f094d,!0x1);}),this['listenTo'](_0x2ecf22,'suggestionUnloaded',(_0x1f3b3f,_0x3fa645,_0x1adb8a)=>{this['stopListening'](_0x3fa645,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3fa645),this['_suggestionToController']['has'](_0x3fa645)&&this['_destroyController'](_0x3fa645),_0x1adb8a&&this['_updateController'](_0x1adb8a['head']);}),this['listenTo'](_0x2ecf22,'suggestionChanged',(_0x1bc7eb,_0x1ee217)=>{this['_updateController'](_0x1ee217);}),this['listenTo'](_0x59776f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39aedf,'addComment',(_0x5f1740,{threadId:_0x284b67,isFromAdapter:_0x105dfe})=>{if(_0x105dfe||!_0x2ecf22['hasSuggestion'](_0x284b67))return;const _0xc16578=_0x2ecf22['getSuggestion'](_0x284b67);this['_suggestionToController']['get'](_0xc16578)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x35ebb6=this['editor']['plugins']['get']('Annotations'),_0x33c5e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ee3ca=Array['from'](_0x35ebb6['activeAnnotations'],_0x5062eb=>_0x5062eb['innerView'])['filter'](_0x4d1560=>this['_viewToController']['has'](_0x4d1560)),_0x18aea6=[];for(const _0x2b47b7 of _0x5ee3ca){const _0x230a09=this['_viewToController']['get'](_0x2b47b7)['model']['getAllAdjacentSuggestions']();_0x18aea6['push'](..._0x230a09['reduce']((_0x1154a5,_0x5a9f46)=>[..._0x1154a5,..._0x5a9f46['getMarkerNames']()],[]));}_0x33c5e7['activeMarkers']=_0x18aea6;}['_addUIComponentsToFactory'](){const _0x23b744=this['editor'],_0x5d696d=_0x23b744['locale'],_0x36d4d9=o(_0x5d696d,'Track\x20changes'),_0x5ef9c0=new Wt([{'type':'switchbutton','model':new _0x22f470({'withText':!0x0,'isToggleable':!0x0,'label':_0x36d4d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x33811d of _0x5ef9c0)if(me(_0x33811d)){const _0x19e6f9=_0x23b744['commands']['get'](_0x33811d['model']['commandName']);_0x33811d['model']['bind']('isOn','isEnabled')['to'](_0x19e6f9,'value','isEnabled');}_0x23b744['ui']['componentFactory']['add']('trackChanges',_0x6a67e=>this['_createToolbarButton'](_0x6a67e,_0x5ef9c0,_0x36d4d9)),_0x23b744['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d5d3e=>this['_createMenuBarMenu'](_0x4d5d3e,_0x5ef9c0,_0x36d4d9));}['_createToolbarButton'](_0x3f798d,_0x5cb582,_0x3d54d8){const _0xa3015c=Qt(_0x3f798d,_0x49aaaa),_0x4628ce=this['editor']['commands']['get']('trackChanges');_0xa3015c['buttonView']['set']({'tooltip':_0x3d54d8,'label':_0x3d54d8,'icon':he}),_0xa3015c['buttonView']['bind']('isOn')['to'](_0x4628ce,'value'),_0xa3015c['buttonView']['on']('execute',()=>{_0x4628ce['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xa3015c,_0x5cb582,{'role':'menu'});const _0x4c905d=[];for(const _0x58a4d4 of _0x5cb582)me(_0x58a4d4)&&_0x4c905d['push'](this['editor']['commands']['get'](_0x58a4d4['model']['commandName']));const _0x288492=_0xa3015c['buttonView'];return _0x288492['actionView']['unbind']('isEnabled'),_0x288492['arrowView']['unbind']('isEnabled'),_0x288492['actionView']['bind']('isEnabled')['to'](_0x4628ce,'isEnabled'),_0x288492['arrowView']['bind']('isEnabled')['toMany'](_0x4c905d,'isEnabled',(..._0x562076)=>_0x562076['some'](_0x4e4bdb=>_0x4e4bdb)),_0xa3015c['on']('execute',_0x1c1fe8=>{this['editor']['execute'](_0x1c1fe8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xa3015c;}['_createMenuBarMenu'](_0x24f44b,_0x5e08f0,_0x5e1f0d){const _0x57dd30=new Yt(_0x24f44b),_0x31973c=this['editor']['commands']['get']('trackChanges');_0x57dd30['buttonView']['set']({'label':_0x5e1f0d,'icon':he});const _0x2b4bcd=new Zt(_0x24f44b);for(const _0x29e64a of _0x5e08f0){if('separator'==_0x29e64a['type']){_0x2b4bcd['items']['add'](new Xt(_0x24f44b));continue;}const _0x406887=new te(_0x24f44b,_0x57dd30),_0x4b6fb6=new _0x4ef32a(_0x24f44b),_0x4a9792=_0x29e64a['model'];_0x4b6fb6['bind'](...Object['keys'](_0x4a9792))['to'](_0x4a9792),_0x4b6fb6['delegate']('execute')['to'](_0x57dd30),_0x4b6fb6['on']('execute',()=>{this['editor']['execute'](_0x4a9792['commandName']),this['editor']['editing']['view']['focus']();}),_0x406887['children']['add'](_0x4b6fb6),_0x2b4bcd['items']['add'](_0x406887);}return _0x57dd30['bind']('isEnabled')['to'](_0x31973c,'isEnabled'),_0x57dd30['panelView']['children']['add'](_0x2b4bcd),_0x57dd30;}['_initializeController'](_0xed3918){const _0x3c38bf=this['editor'],_0x5d6d53=_0x3c38bf['config'],_0x23814e=_0x3c38bf['plugins']['get']('Annotations'),_0x5bae4e=_0x3c38bf['plugins']['get']('CommentsRepository'),_0x28addb=_0x3c38bf['plugins']['get']('EditorAnnotations'),_0x3e52b3=_0x3c38bf['plugins']['get'](_0x3c2de3)['me'],_0xb622bd=_0x5d6d53['get']('trackChanges')['SuggestionThreadView'],_0x195a50=_0x5d6d53['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x35eada,CommentThreadInputView:_0x106fde}=_0x3c38bf['plugins']['get']('CommentsUI');let _0x55958b,_0x3baabf,_0x5e3c40;this['_annotationViews']['has'](_0xed3918['id'])?(_0x3baabf=this['_annotationViews']['get'](_0xed3918['id']),_0x55958b=_0x3baabf['mainView']):(_0x55958b=new _0xb622bd(_0x3c38bf['locale'],_0xed3918,_0x3e52b3,{'disableComments':this['_disableComments'],'editorConfig':_0x5d6d53['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5d6d53['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5d6d53['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5d6d53['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x13ba63(_0x5d6d53['get']('locale')),'CommentView':_0x5d6d53['get']('comments')['CommentView'],'CommentsListView':_0x35eada,'CommentThreadInputView':_0x106fde,'SuggestionView':_0x195a50}),_0x55958b['suggestionView']['acceptButton']['on']('execute',()=>{_0x3c38bf['editing']['view']['focus']();}),_0x55958b['suggestionView']['discardButton']['on']('execute',()=>{_0x3c38bf['editing']['view']['focus']();}),_0x3baabf=_0x23814e['createAnnotationView'](this['editor']['locale'],_0x55958b),_0x3baabf['bind']('isDirty')['to'](_0x55958b,'isDirty'),_0x3baabf['bind']('length')['to'](_0x55958b),_0x3baabf['bind']('type')['to'](_0x55958b,'type',_0x2201f7=>'suggestion-'+_0x2201f7),_0x55958b['on']('escape',()=>{_0x5e3c40['fire']('escape');}),this['_annotationViews']['set'](_0xed3918['id'],_0x3baabf));const _0x22959e=_0x5bae4e['createCommentThreadController'](_0xed3918['commentThread'],_0x55958b),_0x2ebacf=new ae(_0x3c38bf,_0xed3918,_0x55958b,_0x22959e),_0x3233a8=_0xed3918['getAllAdjacentSuggestions']()['filter'](_0x180391=>_0x180391['isInContent']);_0x55958b['descriptionParts']=_0x3c38bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3233a8),this['_suggestionToController']['set'](_0xed3918,_0x2ebacf),this['_viewToController']['set'](_0x55958b,_0x2ebacf),_0x5e3c40=_0x23814e['createAnnotation']({'view':_0x3baabf,'target':()=>{const _0x565f2b=[],_0x49615f=_0xed3918['getAllAdjacentSuggestions']()['filter'](_0x2a9f31=>_0x2a9f31['isInContent']);for(const _0xafc679 of _0x49615f)_0x565f2b['push'](..._0xafc679['getMarkers']());return _0x35144d(_0x3c38bf['editing'],_0x565f2b);},'type':()=>'suggestion-'+_0x2ebacf['view']['type']}),_0x5bae4e['_bindAnnotationToEditors'](_0x55958b,_0x5e3c40),_0x23814e['add'](_0x5e3c40),_0x28addb['registerAnnotation'](_0x5e3c40);}['_destroyController'](_0x8f67e8){const _0x20594b=this['editor']['plugins']['get']('CommentsRepository'),_0x2798ab=this['editor']['plugins']['get']('Annotations'),_0x2d0f7e=this['_suggestionToController']['get'](_0x8f67e8),_0x31bb5b=_0x2d0f7e['view'],_0x23d2f3=_0x2798ab['getByInnerView'](_0x31bb5b);_0x20594b['_unbindEditors'](_0x31bb5b),_0x23d2f3&&_0x2798ab['remove'](_0x23d2f3),this['_suggestionToController']['delete'](_0x8f67e8),this['_viewToController']['delete'](_0x31bb5b),_0x2d0f7e['destroy']();}['_updateController'](_0x52dd29){if(!_0x52dd29['isInContent']||!this['_suggestionToController']['has'](_0x52dd29))return;const _0x24c096=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171594=this['_suggestionToController']['get'](_0x52dd29),_0xfc43fe=_0x52dd29['getAllAdjacentSuggestions']();_0x171594['view']['descriptionParts']=_0x24c096['descriptionFactory']['getDescriptions'](_0xfc43fe);}['destroy'](){for(const _0x82e4bc of this['_suggestionToController']['keys']())this['_destroyController'](_0x82e4bc);for(const _0x5f2e5d of this['_annotationViews']['values']())_0x5f2e5d['mainView']['destroy']();super['destroy']();}}function me(_0x3b3118){return'model'in _0x3b3118;}class k extends _0x4db285{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x38eacb){this['editor']['plugins']['get'](p)['adapter']=_0x38eacb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x232580){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x232580);}['getSuggestions']({skipNotAttached:_0x2f5de9=!0x1,toJSON:_0x3ca4c8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2f5de9,'toJSON':_0x3ca4c8});}['getSuggestion'](_0xac3b63){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xac3b63);}}const T=['Pagination'];class P extends _0x4db285{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1fd903=this['editor'];if(_0x1fd903['config']['define']('trackChangesData.editorCreator',_0x1c102b=>{const _0x25d290=_0x1fd903['model']['document']['getRootNames']()['reduce']((_0x180850,_0x42c90e)=>(_0x180850[_0x42c90e]='',_0x180850),{});return _0x1fd903['constructor']['create'](_0x25d290,_0x1c102b);}),'function'!=typeof _0x1fd903['config']['get']('trackChangesData')['editorCreator'])throw new _0xec2a34('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7f98b8){return N(this['editor'],!0x0,_0x7f98b8);}['getDataWithDiscardedSuggestions'](_0x49065c){return N(this['editor'],!0x1,_0x49065c);}}class D extends _0x4db285{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4e49dd){super(_0x4e49dd),this['result']='end';}['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 v(_0x73ed81){return void 0x0!==_0x73ed81['getRootsAttributes'];}async function N(_0x5b58a4,_0x237ee3,_0x4b4b57){const _0x5581a1=_0x1e1033(_0x5b58a4,T);_0x5581a1['plugins']['push'](p,D),_0x5581a1['rootsAttributes']=v(_0x5b58a4)?_0x5b58a4['getRootsAttributes']():void 0x0;const _0x3fdb45=document['createDocumentFragment'](),_0x1b19ab=_0x5b58a4['config']['get']('trackChangesData')['editorCreator'],_0x32c4e3=await _0x1b19ab(_0x5581a1,()=>function(_0x3c5ded){const _0x23e867=document['createElement']('div');return _0x3c5ded['appendChild'](_0x23e867),_0x23e867;}(_0x3fdb45));!function(_0x4b8fbf,_0x4df920){const _0x5f29d4=_0x4b8fbf['model']['document']['getRootNames']()['reduce']((_0x5b861d,_0x2ac583)=>(_0x5b861d[_0x2ac583]=_0x4b8fbf['data']['get']({'rootName':_0x2ac583}),_0x5b861d),{}),_0x4683f8=_0x4b8fbf['plugins']['get']('Users')['users']['map'](_0x485591=>({'id':_0x485591['id'],'name':_0x485591['name']})),_0x3a691e=_0x4b8fbf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47c48c=_0x4b8fbf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x390c89=_0x4df920['plugins']['get']('Users'),_0x129d48=_0x4df920['plugins']['get']('TrackChangesEditing'),_0x3f365a=_0x4df920['plugins']['get']('CommentsRepository');for(const _0x31857d of _0x3f365a['getCommentThreads']())_0x31857d['remove']();for(const _0x223ae8 of _0x4683f8)_0x390c89['getUser'](_0x223ae8['id'])||_0x390c89['addUser'](_0x223ae8);_0x390c89['me']||_0x390c89['useAnonymousUser']();for(const _0x5236c0 of _0x47c48c)_0x3f365a['addCommentThread'](_0x5236c0);for(const _0x32e4d5 of _0x3a691e)_0x129d48['addSuggestionData'](_0x32e4d5);_0x4df920['data']['set'](_0x5f29d4);}(_0x5b58a4,_0x32c4e3),_0x32c4e3['execute'](_0x237ee3?'acceptAllSuggestions':'discardAllSuggestions');const _0x4ed67c=v(_0x32c4e3)?_0x32c4e3['getFullData'](_0x4b4b57):_0x32c4e3['data']['get'](_0x4b4b57);return await _0x32c4e3['destroy'](),_0x4ed67c;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x3b500e,PendingActions as _0x44c7e8,icons as _0x16fa2c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x211b8d,ObservableMixin as _0x3b24e8,uid as _0xd600d8,insertToPriorityArray as _0x3f2cce,priorities as _0x3c5031,logWarning as _0x561d8c,getEnvKeystrokeText as _0x51ffb5,FocusTracker as _0x369830,KeystrokeHandler as _0x3d06ef,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x48e3fc,View as _0x193ba2,ViewCollection as _0x173d6d,FocusCycler as _0x517967,ViewModel as _0x15d12e,createDropdown as Qt,SplitButtonView as _0x2d7119,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x44f3fc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x35af3d,hashObject as _0x3c88ec,surroundingMarkersDetector as _0x5abc58,FOCUS_ANNOTATION_KEYSTROKE as _0x2c24fb,AriaDescriptionView as _0x577152,setupThreadKeyboardNavigation as _0x4aae6d,trimHtml as _0x59e3e6,UserView as _0x4a5ca3,LateFocusButtonView as _0x428c53,getDateTimeFormatter as _0x4d619e,getAllMarkersDomElementsSorted as _0x29c9c0,sanitizeEditorConfig as _0x540ad8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3e2670,LiveRange as _0x5e2088,LivePosition as _0x106a9e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x59e075,toWidget as _0xd0a2a2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x24cda6,set as _0x199dc2,isEqual as _0x599b4c,unset as _0x189f21,omit as Tt}from'lodash-es';import{Delete as _0x2ceeab,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x160161,ShiftEnter as _0x3492a8}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x1d87e1,_0x42212f){super(_0x1d87e1),this['_enabledCommands']=_0x42212f,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 _0x41dfb2 of this['editor']['commands']['commands']())_0x41dfb2['affectsData']&&!this['_enabledCommands']['has'](_0x41dfb2)&&_0x41dfb2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x98d855 of this['editor']['commands']['commands']())_0x98d855['affectsData']&&!this['_enabledCommands']['has'](_0x98d855)&&_0x98d855['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x3f9e52,_0x5ea864){super(_0x3f9e52),this['_suggestions']=_0x5ea864,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x525d78){const _0x4b6be1=this['_suggestions']['get'](_0x525d78);if(!_0x4b6be1)throw new _0x211b8d('track-changes-accept-suggestion-not-found',this);const _0x2c6bb8=_0x4b6be1['getRanges']();this['editor']['model']['canEditAt'](_0x2c6bb8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4b6be1);}}class R extends ts{['_suggestions'];constructor(_0x156fea,_0x123865){super(_0x156fea),this['_suggestions']=_0x123865,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2fdaf6){const _0x352814=this['_suggestions']['get'](_0x2fdaf6);if(!_0x352814)throw new _0x211b8d('track-changes-discard-suggestion-not-found',this);const _0x39d47b=_0x352814['getRanges']();this['editor']['model']['canEditAt'](_0x39d47b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x352814);}}function ls(_0x25dc3e,_0x5727f4){let _0x37b6bb='';return _0x37b6bb+=_0x25dc3e['split']('*')['map']((_0x4d22cd,_0x4d3fc7)=>_0x4d3fc7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4d22cd)+'</span>':nn(_0x4d22cd))['join'](''),_0x5727f4&&(_0x37b6bb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5727f4['value']+'\x22\x20title=\x22'+_0x5727f4['title']+'\x22></span>'),_0x37b6bb;}function nn(_0x73460a){const _0x2ee270=document['createElement']('span');return _0x2ee270['innerText']=_0x73460a,_0x2ee270['innerHTML'];}function ss(_0x46c09b){return _0x46c09b['sort']((_0x35f88c,_0x224a78)=>'deletion'==_0x35f88c['type']&&'deletion'!=_0x224a78['type']?-0x1:'deletion'!=_0x35f88c['type']&&'deletion'==_0x224a78['type']?0x1:0x0);}function to(_0x26c517,_0x4b7b38){let _0xaa97a,_0x5ce56b=0x0;const _0x2c2af5=[],_0x5b87c1=_0x4b7b38['schema'];for(;_0x5ce56b<_0x26c517['length'];){const _0x16b706=_0x26c517[_0x5ce56b],_0x13047c=_0x26c517[_0x5ce56b+0x1];_0xaa97a||(_0xaa97a=_0x4b7b38['createPositionBefore'](_0x16b706)),on(_0x4b7b38,_0x16b706,_0x13047c)||(_0x2c2af5['push'](_0x4b7b38['createRange'](_0xaa97a,_0x5b87c1['isObject'](_0x16b706)?_0x4b7b38['createPositionAfter'](_0x16b706):_0x4b7b38['createPositionAt'](_0x16b706,'end'))),_0xaa97a=null),_0x5ce56b++;}return _0x2c2af5;}function on(_0x51ce8e,_0x46b7ab,_0x16e16f){if(!_0x16e16f)return!0x1;const _0x32f7d3=_0x51ce8e['createPositionAfter'](_0x46b7ab),_0x437bc5=_0x51ce8e['createPositionBefore'](_0x16e16f);return _0x32f7d3['isTouching'](_0x437bc5);}function rs(_0x4df853,_0x11c72f,_0x590e75){for(;_0x590e75['length'];){const _0x29bdc4=_0x590e75['splice'](0x0,0x64);_0x4df853['change'](()=>{for(const _0x1de97f of _0x29bdc4)_0x1de97f['isInContent']&&_0x11c72f['execute'](_0x1de97f['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x5289b6,_0x7539c,_0x165550){super(_0x5289b6),this['_command']=_0x7539c,this['_suggestions']=_0x165550,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14b4b5=Array['from'](this['_suggestions']['values']())['some'](_0x49bdeb=>_0x49bdeb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14b4b5;}['execute'](){const _0x4bc3a2=ss(Array['from'](this['_suggestions']['values']()));for(const _0x303f59 of _0x4bc3a2){const _0x1d7ca6=_0x303f59['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1d7ca6))return;}rs(this['editor']['model'],this['_command'],_0x4bc3a2);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x32440d,_0x383ab5,_0x1027cf){super(_0x32440d),this['_command']=_0x383ab5,this['_suggestions']=_0x1027cf,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e4fe6=this['editor']['model']['document']['selection'],_0x30efd8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x285f5d,_0x11fadd){const _0x436f7a=Array['from'](_0x285f5d['getRanges']()),_0x16b2f8=new Set();for(const _0x4ed700 of _0x11fadd)if(_0x4ed700['isInContent']){for(const _0xb7707a of _0x436f7a)for(const _0x41b399 of _0x4ed700['getRanges']())(_0xb7707a['isIntersecting'](_0x41b399)||_0x285f5d['isCollapsed']&&!_0x4ed700['isMultiRange']&&_0x4ed700['next']&&_0x41b399['end']['isTouching'](_0xb7707a['start']))&&_0x16b2f8['add'](_0x4ed700);}return _0x16b2f8;}(_0x5e4fe6,_0x30efd8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2a8af4=ss(Array['from'](this['_selectedSuggestions']));for(const _0x283c9d of _0x2a8af4){const _0x3517f6=_0x283c9d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3517f6))return;}rs(this['editor']['model'],this['_command'],_0x2a8af4);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x3b24e8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2ba41f,_0x19566b){super(),this['id']=_0x19566b['id'],this['type']=_0x19566b['type'],this['subType']=_0x19566b['subType']||null,this['author']=_0x19566b['author'],this['creator']=_0x19566b['creator']||_0x19566b['author'],this['isExternal']=Boolean(_0x19566b['attributes']&&_0x19566b['attributes']['@external']),this['data']=null,this['_model']=_0x2ba41f,this['_onAccept']=_0x19566b['onAccept'],this['_onDiscard']=_0x19566b['onDiscard'],this['_onAttributesChange']=_0x19566b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x19566b['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x534e71=this;for(;_0x534e71['previous'];)_0x534e71=_0x534e71['previous'];return _0x534e71;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1829ad){this['_markerNames']['add'](_0x1829ad);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x599f98=>this['_model']['markers']['get'](_0x599f98))['filter'](_0xcca39a=>_0xcca39a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x39b5ae=>{for(const _0x5c338c of this['getMarkers']())_0x39b5ae['removeMarker'](_0x5c338c);}),this['_markerNames']['clear']();}['removeMarker'](_0x5bb653){this['_model']['change'](_0x11ba1b=>{_0x11ba1b['removeMarker'](_0x5bb653);}),this['_markerNames']['delete'](_0x5bb653);}['addRange'](_0xf61d38){const _0x231fa1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x231fa1),this['_model']['change'](_0x1ae840=>{_0x1ae840['addMarker'](_0x231fa1,{'range':_0xf61d38,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58ca0a){for(const _0x26840b of this['getRanges']())if(_0x26840b['isIntersecting'](_0x58ca0a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x530258=>_0x530258['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x45fccc,_0x5c9802)=>[..._0x45fccc,..._0x5c9802['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b7776=this['getRanges']();if(0x1!=_0x3b7776['length'])return null;const _0x409915=_0x3b7776[0x0],_0x346137=_0x409915['start']['nodeAfter'],_0x59bdfd=_0x409915['end']['nodeBefore'];return _0x346137 instanceof _0x3e2670?_0x346137!=_0x59bdfd?null:_0x346137: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 _0x2bc5dc=[];let _0x1d1a56=this['head'];for(;_0x1d1a56;)_0x2bc5dc['push'](_0x1d1a56),_0x1d1a56=_0x1d1a56['next'];return _0x2bc5dc;}['setAttribute'](_0x496ac8,_0x376406){const _0x544a28=_0x24cda6(this['attributes']);_0x199dc2(_0x544a28,_0x496ac8,_0x376406),_0x599b4c(_0x544a28,this['attributes'])||(this['attributes']=_0x544a28,this['_onAttributesChange'](_0x544a28));}['removeAttribute'](_0x41e4bc){const _0x983322=_0x24cda6(this['attributes']);_0x189f21(_0x983322,_0x41e4bc),_0x599b4c(_0x983322,this['attributes'])||(this['attributes']=_0x983322,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 _0xd600d8()['substr'](0x1,0x5);}}function o(_0x28c715,_0x5dc6a0,_0x3a3e81){const t=_0x28c715['t'];switch(_0x5dc6a0){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'*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',_0x3a3e81);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a3e81);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a3e81);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a3e81);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a3e81);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',_0x3a3e81);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a3e81);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x3a3e81);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a3e81);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a3e81);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a3e81);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a3e81);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a3e81);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a3e81);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a3e81);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a3e81);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a3e81);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a3e81);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a3e81);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a3e81);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a3e81);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a3e81);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a3e81);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a3e81);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a3e81);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a3e81);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a3e81);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x3a3e81);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a3e81);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a3e81);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a3e81);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a3e81);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_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'},_0x3a3e81);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a3e81);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'},_0x3a3e81);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_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'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'},_0x3a3e81);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a3e81);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a3e81);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'},_0x3a3e81);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a3e81);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a3e81);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a3e81);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'},_0x3a3e81);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'},_0x3a3e81);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'},_0x3a3e81);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5dc6a0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x488b17,_0x29bdf9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x488b17,this['_locale']=_0x29bdf9;}['getDescriptions'](_0xecef9f){const _0x514f1e=[],_0x342a84=new Set(),_0x525b76=new Set();for(let _0x1dab74=0x0;_0x1dab74<_0xecef9f['length'];_0x1dab74++){const _0x15af55=_0xecef9f[_0x1dab74];if(!_0x15af55['isInContent'])continue;const _0x58b7b9=this['_handleCustomCallbackDescription'](_0x15af55);if(_0x58b7b9){if(null!=_0x15af55['subType']){if(_0x342a84['has'](_0x15af55['subType']))continue;_0x342a84['add'](_0x15af55['subType']);}_0x514f1e['push'](_0x58b7b9);}else{if('attribute'!=_0x15af55['type'])'insertion'!=_0x15af55['type']&&'deletion'!=_0x15af55['type']||this['_handleInsertRemoveSuggestionDescription'](_0x514f1e,_0x15af55,_0xecef9f[_0x1dab74+0x1]);else{const _0x21aaf6=_0x15af55['data']['key'];if(_0x525b76['has'](_0x21aaf6))continue;_0x525b76['add'](_0x15af55['data']['key']),_0x21aaf6==m?this['_handleRenameSuggestionDescription'](_0x514f1e,_0x15af55):this['_handleAttributeSuggestionDescription'](_0x514f1e,_0x15af55);}}}return this['_resolveDescriptionItems'](_0x514f1e);}['registerDescriptionCallback'](_0x864243){this['_customCallbacks']['push'](_0x864243);}['registerElementLabel'](_0x332fa1,_0xfd7e86,_0x1ff923=_0x3c5031['normal']){'function'==typeof _0x332fa1?_0x3f2cce(this['_itemLabelsCallbacks'],{'matchingCallback':_0x332fa1,'label':_0xfd7e86,'priority':_0x1ff923}):this['_itemLabels']['set'](_0x332fa1,_0xfd7e86);}['registerAttributeLabel'](_0x4e1dde,_0xaaf1f2){this['_attributeLabels']['set'](_0x4e1dde,_0xaaf1f2);}['getItemLabel'](_0x41e325,_0x1dde3a=0x1){let _0x29e1ef;for(const _0x3ff682 of this['_itemLabelsCallbacks'])if(_0x3ff682['matchingCallback'](_0x41e325)){_0x29e1ef=_0x3ff682['label'];break;}return _0x29e1ef||(_0x29e1ef=this['_itemLabels']['get'](_0x41e325['name'])),_0x29e1ef?_0x29e1ef(_0x1dde3a):0x1!==_0x1dde3a?_0x1dde3a+'\x20'+_0x41e325['name']+'s':''+_0x41e325['name'];}['_addDescriptionItems'](_0x323e1a,_0x1e93d7){const _0x5827b6=_0x1e93d7['getFirstRange']()['getWalker'](),_0x56213c='insertion'==_0x1e93d7['type']?'add':'remove';for(const _0x11d53a of _0x5827b6){const _0xe79745=_0x11d53a['item'],_0x2a1cf2=_0x323e1a[_0x323e1a['length']-0x1];if(_0xe79745['is']('$textProxy'))_0x2a1cf2&&_0x2a1cf2['type']['indexOf']('Container')>-0x1&&_0x323e1a['pop'](),_0x2a1cf2&&'text'==_0x2a1cf2['type']?_0x2a1cf2[_0x56213c]+=_0xe79745['data']:_0x323e1a['push']({'type':'text','add':'add'==_0x56213c?_0xe79745['data']:'','remove':'remove'==_0x56213c?_0xe79745['data']:''});else{if(this['_schema']['isObject'](_0xe79745)){const _0x10f48c=_0xe79745;if(_0x2a1cf2&&_0x2a1cf2['type']['indexOf']('Container')>-0x1&&_0x323e1a['pop'](),'elementEnd'==_0x11d53a['type'])continue;_0x2a1cf2&&_0x2a1cf2['type']==_0x56213c+'Object'&&_0x2a1cf2['element']['name']==_0x10f48c['name']?_0x2a1cf2['quantity']++:_0x323e1a['push']({'type':_0x56213c+'Object','element':_0x10f48c,'quantity':0x1}),_0x5827b6['skip'](_0x41a982=>!('elementEnd'==_0x41a982['type']&&_0x41a982['item']==_0xe79745));}else{if(this['_schema']['checkChild'](_0xe79745,'$text')||_0xe79745['is']('element','softBreak')){const _0x43110f=_0xe79745;if('add'==_0x56213c&&'elementStart'==_0x11d53a['type']||'remove'==_0x56213c&&'elementEnd'==_0x11d53a['type'])continue;if(_0x2a1cf2&&-0x1==_0x2a1cf2['type']['indexOf']('Container')){'text'==_0x2a1cf2['type']&&(_0x2a1cf2[_0x56213c]+='\x0a');continue;}let _0x54aa94;if(_0x54aa94='add'==_0x56213c?_0x43110f['nextSibling']&&!this['_schema']['isObject'](_0x43110f['nextSibling'])?_0x43110f['nextSibling']:null:_0x43110f['previousSibling']&&!this['_schema']['isObject'](_0x43110f['previousSibling'])?_0x43110f['previousSibling']:null,_0x43110f['isEmpty']||_0x54aa94&&_0x54aa94['isEmpty']){const _0x2b5946=_0x54aa94&&_0x54aa94['isEmpty']?_0x54aa94:_0x43110f;_0x2a1cf2&&_0x2a1cf2['type']==_0x56213c+'EmptyContainer'&&_0x2a1cf2['element']['name']==_0x2b5946['name']?_0x2a1cf2['quantity']++:_0x323e1a['push']({'type':_0x56213c+'EmptyContainer','element':_0x2b5946,'quantity':0x1});}else _0x323e1a['push']({'type':_0x56213c+'Container','element':_0x43110f});}}}}}['_resolveDescriptionItems'](_0x1d484b){const _0x22febe=this['_locale'],_0x44b78b=[],_0x2374b9=[],_0x417245=[];for(const _0x2e26c4 of _0x1d484b)switch(_0x2e26c4['type']){case'text':if(_0x2e26c4['add']=_0x2e26c4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2e26c4['remove']=_0x2e26c4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2e26c4['add']&&''!=_0x2e26c4['remove']){_0x44b78b['push']({'type':'replace','content':o(_0x22febe,'REPLACE_TEXT',['\x22'+_0x2e26c4['remove']+'\x22','\x22'+_0x2e26c4['add']+'\x22'])});continue;}if(null!=_0x2e26c4['add']['match'](/^ +$/)){_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Insert:*\x20%0',o(_0x22febe,'ELEMENT_SPACE',_0x2e26c4['add']['length']))});continue;}if(null!=_0x2e26c4['remove']['match'](/^ +$/)){_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Remove:*\x20%0',o(_0x22febe,'ELEMENT_SPACE',_0x2e26c4['remove']['length']))});continue;}if(''!=_0x2e26c4['add']){_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Insert:*\x20%0','\x22'+_0x2e26c4['add']+'\x22')});continue;}_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Remove:*\x20%0','\x22'+_0x2e26c4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Insert:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Remove:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'addContainer':_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Split:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'removeContainer':_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Merge:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'addFormat':_0x2374b9['push'](_0x2e26c4['key']);continue;case'removeFormat':_0x417245['push'](_0x2e26c4['key']);continue;default:_0x44b78b['push'](_0x2e26c4);}if(_0x2374b9['length']){const _0x39fcc3=_0x2374b9['map'](_0x67df46=>this['_attributeLabels']['has'](_0x67df46)?this['_attributeLabels']['get'](_0x67df46):_0x67df46)['join'](',\x20');_0x44b78b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39fcc3)});}if(_0x417245['length']){const _0xd0c0d2=_0x417245['map'](_0x37f579=>this['_attributeLabels']['has'](_0x37f579)?this['_attributeLabels']['get'](_0x37f579):_0x37f579)['join'](',\x20');_0x44b78b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xd0c0d2)});}return _0x44b78b;}['_handleCustomCallbackDescription'](_0x1473c9){for(const _0x4397b2 of this['_customCallbacks']){const _0x30e0de=_0x4397b2(_0x1473c9);if(_0x30e0de&&'type'in _0x30e0de)return _0x30e0de;}}['_handleAttributeSuggestionDescription'](_0x24c94a,_0x5af956){const _0x2b2652=_0x5af956['data'],_0x273cbc=void 0x0===_0x2b2652['newValue']?'removeFormat':'addFormat';_0x24c94a['push']({'type':_0x273cbc,'key':_0x2b2652['key']});}['_handleRenameSuggestionDescription'](_0x18fd0c,_0x4bb68f){_0x18fd0c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4bb68f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1c2390,_0x4f9e06,_0x425f10){if(this['_addDescriptionItems'](_0x1c2390,_0x4f9e06),_0x425f10&&_0x425f10['getFirstRange']()&&!_0x4f9e06['getFirstRange']()['end']['isEqual'](_0x425f10['getFirstRange']()['start'])){const _0x26f0ef=_0x1c2390[_0x1c2390['length']-0x1],_0x3d759f='insertion'==_0x4f9e06['type']?'add':'remove';_0x26f0ef&&'text'==_0x26f0ef['type']&&(_0x26f0ef[_0x3d759f]+='\x0a');}}}class V extends _0x3b500e{['afterInit'](){const _0x42cc4e=this['editor'],_0x2515d3=_0x42cc4e['plugins']['get']('TrackChangesEditing');_0x42cc4e['commands']['get']('showAIAssistant')&&_0x2515d3['enableCommand']('showAIAssistant');}}class U extends _0x3b500e{['afterInit'](){const _0x1b47e9=this['editor'],_0x1fbbe9=_0x1b47e9['locale'];if(!_0x1b47e9['plugins']['has']('AlignmentEditing'))return;const _0x1e8703=_0x1b47e9['plugins']['get']('TrackChangesEditing');_0x1e8703['enableDefaultAttributesIntegration']('alignment'),_0x1e8703['registerBlockAttribute']('alignment'),_0x1e8703['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1fbbe9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bc02a=this['editor'],_0x4b34ab=_0x3bc02a['locale'];_0x3bc02a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x302839=>{if('formatBlock'!=_0x302839['type'])return;const {data:_0x58f906}=_0x302839;if(_0x58f906&&'alignment'==_0x58f906['commandName']){const _0xaf847b=_0x58f906['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4b34ab,'*Format:*\x20%0',function(_0x38c1a7){switch(_0x38c1a7){case'left':return o(_0x4b34ab,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4b34ab,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4b34ab,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4b34ab,'FORMAT_JUSTIFY_TEXT');}}(_0xaf847b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3b500e{['afterInit'](){const _0x43b553=this['editor'],_0xd0ab6b=_0x43b553['plugins']['get']('TrackChangesEditing'),_0x3cb007=_0x43b553['locale'];for(const _0x24f203 of ti){if(!_0x43b553['plugins']['has'](_0x24f203))continue;const _0x314f9e=_0x24f203['slice'](0x0,-0x7)['toLowerCase'](),_0x5821c9='FORMAT_'+_0x314f9e['toUpperCase']();_0xd0ab6b['enableDefaultAttributesIntegration'](_0x314f9e),_0xd0ab6b['registerInlineAttribute'](_0x314f9e),_0xd0ab6b['descriptionFactory']['registerAttributeLabel'](_0x314f9e,o(_0x3cb007,_0x5821c9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b0c6=this['editor'],_0x38416c=_0x13b0c6['locale'],_0x21d59b=_0x13b0c6['plugins']['get']('TrackChangesEditing');function _0x313f35(_0x15a96c,_0x1b89c1){_0x21d59b['descriptionFactory']['registerDescriptionCallback'](_0x54e9b3=>{if('formatInline'!=_0x54e9b3['type'])return;const {data:_0x193f10}=_0x54e9b3;return _0x193f10&&_0x193f10['commandName']===_0x15a96c?_0x193f10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38416c,'*Format:*\x20%0',_0x1b89c1)}:{'type':'format','content':o(_0x38416c,'*Remove\x20format:*\x20%0',_0x1b89c1)}:void 0x0;});}_0x313f35('bold',o(_0x38416c,'FORMAT_BOLD')),_0x313f35('italic',o(_0x38416c,'FORMAT_ITALIC')),_0x313f35('underline',o(_0x38416c,'FORMAT_UNDERLINE')),_0x313f35('code',o(_0x38416c,'FORMAT_CODE')),_0x313f35('strikethrough',o(_0x38416c,'FORMAT_STRIKETHROUGH')),_0x313f35('subscript',o(_0x38416c,'FORMAT_SUBSCRIPT')),_0x313f35('superscript',o(_0x38416c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3b500e{['afterInit'](){const _0x53a62d=this['editor'],_0x4d1a62=_0x53a62d['locale'];if(!_0x53a62d['plugins']['has']('BlockQuoteEditing'))return;const _0x47fa51=_0x53a62d['plugins']['get']('TrackChangesEditing'),_0x561789=this['editor']['commands']['get']('blockQuote');_0x47fa51['enableCommand']('blockQuote',(_0x41031e,_0x19c9b7={})=>{const _0x171eb7=this['editor']['model']['document']['selection'],_0x26e02a=_0x19c9b7&&void 0x0!==_0x19c9b7['forceValue']?_0x19c9b7['forceValue']:!_0x561789['value'];let _0xbc6003=[];if(_0x26e02a){const _0x78c7dc=Array['from'](_0x171eb7['getSelectedBlocks']())['filter'](_0xb7e098=>oo(_0xb7e098)||function(_0x157ae6,_0x5ed9ca){const _0x2c3b86=_0x5ed9ca['checkChild'](_0x157ae6['parent'],'blockQuote'),_0x5011b0=_0x5ed9ca['checkChild'](['$root','blockQuote'],_0x157ae6);return _0x2c3b86&&_0x5011b0;}(_0xb7e098,this['editor']['model']['schema']));_0xbc6003=to(_0x78c7dc,_0x53a62d['model']);}else{const _0x3ae4bc=Array['from'](_0x171eb7['getSelectedBlocks']())['filter'](_0x4c95fe=>oo(_0x4c95fe));_0xbc6003=to(_0x3ae4bc,_0x53a62d['model']);}_0x53a62d['model']['change'](()=>{for(const _0x4f8fb3 of _0xbc6003)_0x47fa51['markBlockFormat'](_0x4f8fb3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x26e02a}]});});}),_0x47fa51['descriptionFactory']['registerDescriptionCallback'](_0x548346=>{const {data:_0x1832bd}=_0x548346;if(_0x1832bd&&'blockQuote'==_0x1832bd['commandName']){const _0x4d6849=o(_0x4d1a62,'ELEMENT_BLOCK_QUOTE');return _0x1832bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d1a62,'*Set\x20format:*\x20%0',_0x4d6849)}:{'type':'format','content':o(_0x4d1a62,'*Remove\x20format:*\x20%0',_0x4d6849)};}});}}function oo(_0x1c3e50){return'blockQuote'==_0x1c3e50['parent']['name'];}class L extends _0x3b500e{['afterInit'](){const _0x3f1506=this['editor'];_0x3f1506['plugins']['has']('CaseChange')&&(_0x3f1506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f1506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f1506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3b500e{['afterInit'](){const _0x2c57ed=this['editor'];_0x2c57ed['commands']['get']('ckbox')&&_0x2c57ed['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3b500e{['afterInit'](){const _0x105a7b=this['editor'];if(!_0x105a7b['plugins']['has']('CodeBlock'))return;const _0x11a130=_0x105a7b['plugins']['get']('TrackChangesEditing'),_0x5f0154=_0x105a7b['locale'],_0x49469f=_0x105a7b['config']['get']('codeBlock')['languages'],_0x525907=_0x105a7b['commands']['get']('codeBlock');_0x11a130['enableCommand']('indentCodeBlock'),_0x11a130['enableCommand']('outdentCodeBlock'),_0x11a130['enableCommand']('codeBlock',(_0x586a60,_0x1d7169={})=>{const _0x10095d=_0x105a7b['model'],_0x10e554=_0x105a7b['model']['document']['selection'],_0x2862c8=_0x1d7169&&void 0x0!==_0x1d7169['forceValue']?_0x1d7169['forceValue']:!_0x525907['value'];let _0x36fbfc;_0x1d7169['language']||(_0x1d7169['language']=_0x49469f[0x0]['language']),_0x36fbfc=_0x2862c8?Array['from'](_0x10e554['getSelectedBlocks']())['filter'](_0xc98079=>eo(_0xc98079)||function(_0x29811d,_0x22cbde){if(_0x29811d['is']('rootElement')||_0x22cbde['isLimit'](_0x29811d))return!0x1;return _0x22cbde['checkChild'](_0x29811d['parent'],'codeBlock');}(_0xc98079,_0x10095d['schema'])):Array['from'](_0x10e554['getSelectedBlocks']())['filter'](_0x582940=>eo(_0x582940));const _0x3626cb=to(_0x36fbfc,_0x10095d);_0x10095d['change'](()=>{for(const _0x3b6f2f of _0x3626cb)_0x11a130['markBlockFormat'](_0x3b6f2f,{'commandName':'codeBlock','commandParams':[{..._0x1d7169,'forceValue':_0x2862c8}],'formatGroupId':'blockName'});});}),(_0x11a130['descriptionFactory']['registerElementLabel']('codeBlock',_0x4462bd=>o(_0x5f0154,'ELEMENT_CODE_BLOCK',_0x4462bd)),_0x11a130['descriptionFactory']['registerDescriptionCallback'](_0x2ec21c=>{if('formatBlock'!=_0x2ec21c['type'])return;const _0x4b4caa=_0x5f0154['t'],{data:_0x3ddcff}=_0x2ec21c;if(!_0x3ddcff||'codeBlock'!=_0x3ddcff['commandName'])return;const _0x2cb3a7=_0x3ddcff['commandParams'][0x0]['language'],_0x4f7dd7=_0x4b4caa(_0x49469f['find'](_0x26f7b2=>_0x26f7b2['language']===_0x2cb3a7)['label'])['toLowerCase']();return _0x3ddcff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f0154,'*Set\x20format:*\x20%0',o(_0x5f0154,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f7dd7+')')}:{'type':'format','content':o(_0x5f0154,'*Remove\x20format:*\x20%0',o(_0x5f0154,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xd44824){return'codeBlock'==_0xd44824['name'];}class q extends _0x3b500e{['afterInit'](){const _0x47976e=this['editor'];if(!_0x47976e['plugins']['has']('CommentsEditing'))return;_0x47976e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2ef1b6,_0x55121e,_0x24389a){const _0x4e5dab=[];for(const _0x5139ed of _0x55121e['getItems']())_0x5139ed['hasAttribute'](_0x2ef1b6)&&_0x4e5dab['push'](_0x24389a['createRangeOn'](_0x5139ed));return _0x4e5dab;}function _e(_0x2b9a8d,_0xe0016d,{showActiveMarker:_0x42f4c0=!0x0}={}){const _0x2fe5a1=_0x2b9a8d['plugins']['get']('TrackChangesEditing');return(_0x4e7916,_0x4aaded,_0x5e6c8c)=>{if(!_0x5e6c8c['consumable']['test'](_0x4aaded['markerRange'],_0x4e7916['name']))return;const _0x2fc952=_0x4aaded['markerRange']['getWalker'](),_0x45b251=_0x4aaded['markerRange']['start'],_0x501bf4=_0x2b9a8d['model']['schema'];let _0x3e4d13=null,_0x351671=null,_0x2a042a=!0x1,_0x716ab0=!0x1;for(const _0x27487c of _0x2fc952){const _0x2cef83=_0x27487c['item'];_0x2a042a=_0x2a042a||_0x501bf4['isContent'](_0x2cef83);const _0x59502b=_0x5e6c8c['mapper']['toViewElement'](_0x2cef83);if(_0x59502b&&_0x59502b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x27487c['type']&&(_0x501bf4['isBlock'](_0x2cef83)&&!_0x501bf4['isLimit'](_0x2cef83)&&(_0x2cef83['nextSibling']||_0x45b251['isAtEnd']?_0x3e4d13&&_0x3e4d13['parent']==_0x2cef83||(_0x3e4d13=_0x2cef83,_0x12ca7f(_0x27487c['previousPosition']),_0x716ab0=!0x0):_0x351671=_0x351671||_0x27487c['previousPosition']));}function _0x12ca7f(_0x5e908e){const {authorId:_0x8618dd}=_0x2fe5a1['_splitMarkerName'](_0x4aaded['markerName']),_0x4c5720=_0x5e6c8c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe0016d,'data-author-id':_0x8618dd}),_0x1547d9=_0x5e6c8c['mapper']['toViewPosition'](_0x5e908e);_0x42f4c0&&_0x2fe5a1['activeMarkers']['includes'](_0x4aaded['markerName'])&&_0x5e6c8c['writer']['addClass']('ck-suggestion-marker--active',_0x4c5720),_0x5e6c8c['writer']['insert'](_0x1547d9,_0x4c5720),_0x5e6c8c['mapper']['bindElementToMarker'](_0x4c5720,_0x4aaded['markerName']);}_0x2a042a||_0x716ab0||!_0x351671||_0x12ca7f(_0x351671);};}class z extends _0x3b500e{static get['requires'](){return[_0x2ceeab];}['init'](){const _0x4318e4=this['editor'],_0x2338cb=_0x4318e4['plugins']['get']('TrackChangesEditing');_0x2338cb['enableCommand']('delete');const _0x4cd40e=_0x4318e4['commands']['get']('deleteForward');_0x2338cb['enableCommand']('deleteForward',(_0x5a7cfc,_0x4dbc11={})=>{const _0x36ab7f=_0x4318e4['model']['createSelection'](_0x4318e4['model']['document']['selection']);_0x36ab7f['isCollapsed']&&_0x4318e4['model']['modifySelection'](_0x36ab7f,{'direction':'forward','unit':_0x4dbc11['unit']});const _0x444932=_0x36ab7f['getFirstRange'](),_0x53c8cc=_0x5e2088['fromRange'](_0x444932);let _0x531afe;_0x5a7cfc(_0x4dbc11),_0x531afe='$graveyard'==_0x53c8cc['root']['rootName']?_0x4318e4['model']['createRange'](_0x444932['start']):_0x4318e4['model']['createRange'](_0x53c8cc['start'],_0x53c8cc['end']),_0x53c8cc['detach'](),_0x4318e4['model']['enqueueChange'](_0x4cd40e['buffer']['batch'],_0x5876eb=>{_0x4cd40e['buffer']['lock'](),_0x5876eb['setSelection'](_0x5876eb['createRange'](_0x531afe['end'])),_0x4cd40e['buffer']['unlock']();});}),_0x4318e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4318e4,'merge'),{'priority':'high'}),_0x4318e4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x216e7d,_0xd89ac9,_0x2ceae9)=>{_0x2ceae9['options']['showSuggestionHighlights']&&_e(_0x4318e4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x216e7d,_0xd89ac9,_0x2ceae9);},{'priority':'high'}),_0x4318e4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5b4b7f,_0xbd138a,_0x15a34a)=>{const _0x2d101f=_0x15a34a['mapper']['markerNameToElements'](_0xbd138a['markerName']);if(_0x2d101f){for(const _0x494484 of _0x2d101f)_0x494484['is']('uiElement')&&(_0x15a34a['mapper']['unbindElementFromMarkerName'](_0x494484,_0xbd138a['markerName']),_0x15a34a['writer']['remove'](_0x494484));}},{'priority':'high'});}}class K extends _0x3b500e{['afterInit'](){const _0x216b6f=this['editor'];if(!_0x216b6f['plugins']['has']('ListEditing'))return;const _0x58516c=_0x216b6f['locale'],_0x22b153=_0x216b6f['plugins']['get']('TrackChangesEditing'),_0x39360f=_0x216b6f['plugins']['has']('TodoListEditing'),_0x2166ca=!!_0x216b6f['config']['get']('list.multiBlock');function _0x450f82(_0x342403){return{'type':'format','content':''+o(_0x58516c,'*Set\x20format:*\x20%0',_0x342403)};}function _0x2c4991(_0x11c47d){return{'type':'format','content':''+o(_0x58516c,'*Remove\x20format:*\x20%0',_0x11c47d)};}_0x22b153['enableDefaultAttributesIntegration']('numberedList'),_0x22b153['enableDefaultAttributesIntegration']('bulletedList'),_0x22b153['enableDefaultAttributesIntegration']('customNumberedList'),_0x22b153['enableDefaultAttributesIntegration']('customBulletedList'),_0x22b153['enableDefaultAttributesIntegration']('indentList'),_0x22b153['enableDefaultAttributesIntegration']('outdentList'),_0x22b153['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x22b153['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x22b153['registerBlockAttribute']('listItemId'),_0x22b153['registerBlockAttribute']('listType'),_0x22b153['registerBlockAttribute']('listIndent'),_0x2166ca&&(_0x22b153['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x22b153['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x39360f&&(_0x22b153['enableDefaultAttributesIntegration']('todoList'),_0x22b153['enableDefaultAttributesIntegration']('checkTodoList'),_0x22b153['registerBlockAttribute']('todoListChecked'),_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0x1b54db=>{const {data:_0x3bf310}=_0x1b54db;if(_0x3bf310&&'todoListChecked'==_0x3bf310['key'])return{'type':'format','content':_0x3bf310['newValue']?o(_0x58516c,'*Check\x20item*'):o(_0x58516c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2af7ad=>{if(_0x2af7ad['batch']['isUndo'])return!0x1;let _0x35159a=!0x1;const _0x367456=_0x22b153['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24c7a1=>'todoListChecked'===_0x22b153['_getAttributeKey'](_0x24c7a1));for(const _0x3495f6 of _0x367456){'todo'!=_0x3495f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x22b153['_findSuggestions'](_0x3495f6['getFirstRange'](),'attribute')['find'](_0x3ad4a0=>'listType'===_0x22b153['_getAttributeKey'](_0x3ad4a0['suggestion']))||(_0x2af7ad['removeMarker'](_0x3495f6['getFirstMarker']()),_0x35159a=!0x0));}return _0x35159a;})),_0x22b153['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x58516c,'FORMAT_INDENT'));const _0x2ba181={'type':'format','content':''};_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0xb510e8=>{const {data:_0x36b953}=_0xb510e8;if(!_0x36b953||'listType'!=_0x36b953['key'])return;let _0x1c3f98=_0xb510e8['head'];for(;_0x1c3f98;){if(_0x1c3f98['data']&&(('listStyle'==_0x1c3f98['data']['key']||'listMarkerStyle'==_0x1c3f98['data']['key'])&&(_0x1c3f98['data']['newValue']&&'default'!=_0x1c3f98['data']['newValue']||'default'!=_0x1c3f98['data']['oldValue']&&!_0x36b953['newValue'])||!_0x2166ca&&_0x1c3f98['data']['key']==m))return _0x2ba181;_0x1c3f98=_0x1c3f98['next'];}if(null==_0x36b953['newValue'])switch(_0x36b953['oldValue']){case'bulleted':return _0x2c4991(o(_0x58516c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c4991(o(_0x58516c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c4991(o(_0x58516c,'ELEMENT_TODO_LIST'));}switch(_0x36b953['newValue']){case'bulleted':return _0x450f82(o(_0x58516c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x450f82(o(_0x58516c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x450f82(o(_0x58516c,'ELEMENT_TODO_LIST'));}}),_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0x4d263e=>{const {data:_0x2b34ad}=_0x4d263e;if(_0x2b34ad&&'listIndent'==_0x2b34ad['key'])return null==_0x2b34ad['newValue']||null==_0x2b34ad['oldValue']&&0x0==_0x2b34ad['newValue']?_0x2ba181:void 0x0;}),_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0x2385ef=>{if('attribute'!=_0x2385ef['type'])return;const {data:_0x14b3e9}=_0x2385ef;if(!_0x14b3e9||'listItemId'!=_0x14b3e9['key'])return;const _0x1e1a5d=Ee(_0x2385ef);return'newValue'==_0x1e1a5d?{'type':'format','content':o(_0x58516c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1e1a5d?{'type':'format','content':o(_0x58516c,'*Split:*\x20list\x20item')}:_0x2ba181;}),_0x216b6f['model']['document']['registerPostFixer'](_0x6fcdf9=>this['listItemIdFixer'](_0x6fcdf9)),_0x216b6f['model']['document']['registerPostFixer'](_0x439dc8=>this['noTrackChangesFixer'](_0x439dc8)),_0x216b6f['model']['document']['on']('change:data',(_0x49534a,_0x30fa17)=>{if(_0x30fa17['isUndo']||!_0x30fa17['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5a54e1){if(_0x5a54e1['batch']['isUndo']||!_0x5a54e1['batch']['isLocal'])return!0x1;let _0x14b8ed=!0x1;const _0x37feab=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eb133=>_0x2eb133['data']&&'listItemId'==_0x2eb133['data']['key'])['filter'](_0x4c3d23=>_0x4c3d23['data']['newValue']&&_0x4c3d23['data']['oldValue']);for(const _0x2c14b2 of _0x37feab)Ee(_0x2c14b2)||(_0x5a54e1['removeMarker'](_0x2c14b2['getFirstMarker']()),_0x14b8ed=!0x0);return _0x14b8ed;}['noTrackChangesFixer'](_0x5183a1){if(_0x5183a1['batch']['isUndo']||!_0x5183a1['batch']['isLocal'])return!0x1;const _0x4ccfd6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4ccfd6['trackChangesCommand']['value'])return!0x1;let _0xb93375=!0x1;const _0x2d1a3e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x13aaac=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5c0c6d=>'attribute'==_0x5c0c6d['type'])['filter'](_0x279fa4=>_0x2d1a3e['includes'](_0x279fa4['attributeKey']));if(0x0==_0x13aaac['length'])return _0xb93375;for(const _0xdcfaa of _0x13aaac){const _0x140034=_0x4ccfd6['_findSuggestions'](_0xdcfaa['range'],'attribute')['filter'](_0x1f9046=>!_0x1f9046['meta']['isNextTo'])['map'](_0x3f04f6=>_0x3f04f6['suggestion'])['filter'](_0x250225=>{const _0x8d9172=_0x4ccfd6['_getAttributeKey'](_0x250225);return _0x2d1a3e['includes'](_0x8d9172);});if(_0x140034['length']){for(const _0x25918d of _0x140034)_0x5183a1['removeMarker'](_0x25918d['getFirstMarker']());_0xb93375=!0x0;}}return _0xb93375;}['assureChains'](){const _0x5d3339=this['editor']['plugins']['get']('TrackChangesEditing'),_0xee2ab5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1f8632;const _0x5969f9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb7fbf2=>{if(_0xb7fbf2['data']['oldRange']||!_0xb7fbf2['data']['newRange'])return null;if(!_0xb7fbf2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xc0041b}=_0x5d3339['_splitMarkerName'](_0xb7fbf2['name']);if(!_0x5d3339['hasSuggestion'](_0xc0041b))return null;const _0x3cff53=_0x5d3339['getSuggestion'](_0xc0041b);return _0xee2ab5['includes'](_0x3cff53['data']['key']);})['map'](_0x562bc9=>{const {id:_0x41c3a1}=_0x5d3339['_splitMarkerName'](_0x562bc9['name']),_0x395244=_0x5d3339['getSuggestion'](_0x41c3a1);return _0x1f8632=_0x395244['attributes']['groupId'],_0x395244['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5969f9['size'])return;const _0x22cbd1=_0x5d3339['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13ec4e=>'attribute'==_0x13ec4e['type']&&_0x13ec4e['data']&&_0xee2ab5['includes'](_0x13ec4e['data']['key'])&&_0x13ec4e['attributes']['groupId']!=_0x1f8632)['map'](_0x12edf6=>({'listItem':_0x12edf6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12edf6['attributes']['groupId']})),_0x1d737b=new Set();for(const {groupId:_0x1d95b2,listItem:_0x43595a}of _0x22cbd1)_0x5969f9['has'](_0x43595a)&&_0x1d737b['add'](_0x1d95b2);for(const _0x14accf of _0x5d3339['getSuggestions']())_0x1d737b['has'](_0x14accf['attributes']['groupId'])&&_0x14accf['setAttribute']('groupId',_0x1f8632);}['_supportLegacySuggestions'](){const _0x516075=this['editor'],_0x46d475=_0x516075['locale'],_0x2ae068=_0x516075['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2ae068['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x41cd8e,_0x2d680e){const _0x379586=[];for(let _0x1f83bc of _0x41cd8e)_0x1f83bc['start']['nodeAfter']===_0x1f83bc['end']['parent']&&(_0x1f83bc=_0x516075['model']['createRange'](_0x516075['model']['createPositionAt'](_0x1f83bc['start']['nodeAfter'],0x0))),_0x379586['push'](_0x1f83bc);_0x516075['model']['change'](_0x30f72e=>{const _0x3840f3=_0x516075['model']['document']['selection'],_0x43bfed=Array['from'](_0x3840f3['getRanges']())['map'](_0x1bca31=>_0x5e2088['fromRange'](_0x1bca31));_0x30f72e['setSelection'](_0x379586),_0x516075['commands']['get'](_0x2d680e['commandName'])['refresh'](),_0x2d680e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x516075['execute'](_0x2d680e['commandName'],..._0x2d680e['commandParams']),_0x30f72e['setSelection'](_0x43bfed);for(const _0x572a82 of _0x43bfed)_0x572a82['detach']();});}),_0x2ae068['descriptionFactory']['registerElementLabel'](function(_0x4cfea0){const _0x246726=!_0x516075['model']['schema']['isObject'](_0x4cfea0),_0x40556d=_0x4cfea0['previousSibling'],_0x1b5fc2=_0x4cfea0['nextSibling'],_0xcb5690=_0x4cfea0['getAttribute']('listItemId'),_0x5d36d1=!_0x40556d||_0x40556d['getAttribute']('listItemId')!==_0xcb5690,_0x3d77c1=!_0x1b5fc2||_0x1b5fc2['getAttribute']('listItemId')!==_0xcb5690;return _0x246726&&Boolean(_0xcb5690)&&_0x5d36d1&&_0x3d77c1;},_0x23d3c3=>o(_0x46d475,'ELEMENT_LIST_ITEM',_0x23d3c3));}['_registerLegacyDescription'](){const _0x4fb51d=this['editor'],_0x210468=_0x4fb51d['locale'];function _0x2cfd03(_0xe7ccc1){const _0x3663d9=_0x4fb51d['commands']['get']('bulletedList')['value'],_0x346ed0=_0x4fb51d['commands']['get']('numberedList')['value'];return'numberedList'===_0xe7ccc1?_0x3663d9:_0x346ed0;}_0x4fb51d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x11792f){if('formatBlock'!=_0x11792f['type'])return;const {data:_0x56b998}=_0x11792f;if(!_0x56b998)return;let _0x3ec9c9,_0x415e9c,_0x315875,_0x17a96f;switch(_0x56b998['commandName']){case'bulletedList':_0x315875=_0x56b998['commandParams'][0x0]['forceValue'],_0x17a96f=_0x2cfd03(_0x56b998['commandName']),_0x3ec9c9=_0x315875?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x17a96f&&_0x4fb51d['config']['get']('list.multiBlock')||(_0x3ec9c9='*Change\x20to:*\x20%0'),_0x415e9c={'type':'format','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x315875=_0x56b998['commandParams'][0x0]['forceValue'],_0x17a96f=_0x2cfd03(_0x56b998['commandName']),_0x3ec9c9=_0x315875?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x17a96f&&_0x4fb51d['config']['get']('list.multiBlock')||(_0x3ec9c9='*Change\x20to:*\x20%0'),_0x415e9c={'type':'format','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ec9c9='*Indent:*\x20%0',_0x415e9c={'type':'format','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ec9c9=function(_0x35a8b5){const _0x524004=_0x35a8b5['getFirstRange']();let _0x24fb1b=_0x524004['start']['nodeAfter'];for(;_0x24fb1b&&_0x524004['containsItem'](_0x24fb1b);){if(_0x24fb1b['getAttribute']('listIndent')>0x0)return!0x1;_0x24fb1b=_0x24fb1b['nextSibling'];}return!0x0;}(_0x11792f)?o(_0x210468,'*Format:*\x20remove\x20from\x20%0',o(_0x210468,function(_0x17584d){return'ELEMENT_'+_0x17584d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x11792f))):o(_0x210468,'*Outdent:*\x20%0',o(_0x210468,'ELEMENT_LIST_ITEM')),_0x415e9c={'type':'format','content':_0x3ec9c9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x56b998['multipleBlocks']&&(_0x3ec9c9='*Merge:*\x20%0',_0x415e9c={'type':'deletion','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_LIST_ITEM'))});}return _0x415e9c;});}}function Ee(_0x9ba46c){let _0x15e5a4=_0x9ba46c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x15e5a4;){const _0x261c07=_0x15e5a4['getAttribute']('listItemId');if(!_0x261c07)return!0x1;if(_0x261c07==_0x9ba46c['data']['newValue'])return'newValue';if(_0x261c07==_0x9ba46c['data']['oldValue'])return'oldValue';_0x15e5a4=_0x15e5a4['previousSibling'];}return!0x1;}class pe extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e9e6d=this['editor']['config']['get']('list.properties'),_0x208097=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9e6d['styles']&&(_0x208097['enableDefaultAttributesIntegration']('listStyle'),_0x208097['registerBlockAttribute']('listStyle')),_0x4e9e6d['reversed']&&(_0x208097['enableDefaultAttributesIntegration']('listReversed'),_0x208097['registerBlockAttribute']('listReversed')),_0x4e9e6d['startIndex']&&(_0x208097['enableDefaultAttributesIntegration']('listStart'),_0x208097['registerBlockAttribute']('listStart'));const _0x312e78={'type':'format','content':''};_0x208097['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xb6b5ac=this['editor']['locale'];_0x208097['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xb6b5ac,'FORMAT_LIST_REVERSED')),_0x208097['descriptionFactory']['registerDescriptionCallback'](_0x4ed0f0=>{const {data:_0x36a355}=_0x4ed0f0;if(_0x36a355&&'listReversed'==_0x36a355['key'])return null==_0x36a355['newValue']||0x0==_0x36a355['newValue']&&null==_0x36a355['oldValue']?_0x312e78:void 0x0;}),_0x208097['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xb6b5ac,'FORMAT_LIST_START')),_0x208097['descriptionFactory']['registerDescriptionCallback'](_0x2f39ba=>{const {data:_0x21407c}=_0x2f39ba;if(_0x21407c&&'listStart'==_0x21407c['key'])return null==_0x21407c['newValue']||0x1==_0x21407c['newValue']&&null==_0x21407c['oldValue']?_0x312e78:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4ac235=>{if(_0x4ac235['batch']['isUndo'])return!0x1;let _0x50ce30=!0x1;const _0x3cf277=_0x208097['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bd9d5=>{const _0x1662f8=_0x208097['_getAttributeKey'](_0x4bd9d5);return'listStart'==_0x1662f8||'listReversed'==_0x1662f8;});for(const _0x46380e of _0x3cf277){const _0x4132cb=_0x46380e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4132cb||'customNumbered'==_0x4132cb)continue;_0x208097['_findSuggestions'](_0x46380e['getFirstRange'](),'attribute')['find'](_0x442886=>'listType'==_0x208097['_getAttributeKey'](_0x442886['suggestion']))||(_0x4ac235['removeMarker'](_0x46380e['getFirstMarker']()),_0x50ce30=!0x0);}return _0x50ce30;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x312f74){const _0x53d2fa=this['editor']['locale'],{data:_0x3c1c3a}=_0x312f74,_0x1cdf20={'type':'format','content':''};if(!_0x3c1c3a||'listStyle'!=_0x3c1c3a['key'])return;if(!_0x3c1c3a['oldValue'])return'default'==_0x3c1c3a['newValue']?_0x1cdf20:{'type':'format','content':''+o(_0x53d2fa,'*Set\x20format:*\x20%0',o(_0x53d2fa,this['_getTranslationKeyForListStyle'](_0x3c1c3a['newValue'])))};if(!_0x3c1c3a['newValue']){if('default'==_0x3c1c3a['oldValue'])return _0x1cdf20;let _0x3b431b=_0x312f74['head'];for(;_0x3b431b;){if(_0x3b431b['data']&&'listType'==_0x3b431b['data']['key']&&_0x3b431b['data']['newValue'])return _0x1cdf20;_0x3b431b=_0x3b431b['next'];}return{'type':'format','content':''+o(_0x53d2fa,'*Remove\x20format:*\x20%0',o(_0x53d2fa,this['_getTranslationKeyForListStyle'](_0x3c1c3a['oldValue'])))};}if('default'!=_0x3c1c3a['newValue'])return{'type':'format','content':''+o(_0x53d2fa,'*Set\x20format:*\x20%0',o(_0x53d2fa,this['_getTranslationKeyForListStyle'](_0x3c1c3a['newValue'])))};let _0x4d0c7a=_0x312f74['head'];for(;_0x4d0c7a;){if(_0x4d0c7a['data']&&'listType'==_0x4d0c7a['data']['key']&&_0x4d0c7a['data']['newValue']&&_0x4d0c7a['data']['oldValue'])return _0x1cdf20;_0x4d0c7a=_0x4d0c7a['next'];}return{'type':'format','content':o(_0x53d2fa,'*Set\x20format:*\x20%0',o(_0x53d2fa,'ELEMENT_'+_0x312f74['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43f576=this['editor'],_0x5d8dbb=_0x43f576['locale'];_0x43f576['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2d255=>{if('formatBlock'!=_0xd2d255['type'])return;const {data:_0x21cb42}=_0xd2d255;if(!_0x21cb42)return;let _0x4ca6e2,_0x1b4891;switch(_0x21cb42['commandName']){case'listStyle':_0x4ca6e2='*Change\x20to:*\x20%0',_0x1b4891={'type':'format','content':o(_0x5d8dbb,_0x4ca6e2,o(_0x5d8dbb,this['_getTranslationKeyForListStyle'](_0x21cb42['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ca6e2=_0x21cb42['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b4891={'type':'format','content':o(_0x5d8dbb,_0x4ca6e2)};break;case'listStart':_0x4ca6e2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b4891={'type':'format','content':o(_0x5d8dbb,_0x4ca6e2,_0x21cb42['commandParams'][0x0]['startIndex'])};}return _0x1b4891;});}['_getTranslationKeyForListStyle'](_0x48b758){return'ELEMENT_'+function(_0x3afcb0){if(ye['includes'](_0x3afcb0))return'bulleted';if(Se['includes'](_0x3afcb0))return'numbered';return null;}(_0x48b758)['toUpperCase']()+'_LIST_'+_0x48b758['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3b500e{static get['requires'](){return[_0x160161];}['init'](){const _0x588b1c=this['editor'],_0x1305e6=_0x588b1c['plugins']['get']('TrackChangesEditing'),_0x2daf26=_0x588b1c['commands']['get']('enter');_0x1305e6['enableCommand']('enter',()=>{_0x588b1c['model']['change'](_0x41a97a=>{const _0x530be4=_0x588b1c['model']['document']['selection'],_0x26efb5=_0x530be4['getFirstPosition'](),_0x15ffc6=_0x5e2088['fromRange'](_0x530be4['getFirstRange']());if(_0x2daf26['enterBlock'](_0x41a97a)){const _0x2ff6db=_0x588b1c['model']['createPositionAt'](_0x26efb5['parent']['nextSibling'],0x0),_0x2d6c54=_0x41a97a['createRange'](_0x26efb5,_0x2ff6db);_0x1305e6['markInsertion'](_0x2d6c54);}else _0x41a97a['setSelection'](_0x41a97a['createRange'](_0x15ffc6['end']));_0x15ffc6['detach'](),_0x2daf26['fire']('afterExecute',{'writer':_0x41a97a});});}),_0x588b1c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x588b1c,'split'),{'priority':'high'}),_0x588b1c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20b142,_0x419ca6,_0x1abaa7)=>{const _0x416171=_0x1abaa7['mapper']['markerNameToElements'](_0x419ca6['markerName']);if(_0x416171){for(const _0x151ff8 of _0x416171)_0x151ff8['hasClass']('ck-suggestion-marker-split')&&(_0x1abaa7['mapper']['unbindElementFromMarkerName'](_0x151ff8,_0x419ca6['markerName']),_0x1abaa7['writer']['remove'](_0x151ff8));}},{'priority':'high'}),_0x588b1c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36bc1f,_0x2e7e16,_0x2241e0)=>{_0x2241e0['options']['showSuggestionHighlights']&&_e(_0x588b1c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x36bc1f,_0x2e7e16,_0x2241e0);},{'priority':'high'});}}class X extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b83bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b83bd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b83bd['enableCommand']('findNext'),_0x2b83bd['enableCommand']('findPrevious'),_0x2b83bd['enableCommand']('replace'),_0x2b83bd['enableCommand']('replaceAll');}['handleFindCommand'](_0x180dea,_0x3d5cd2,_0x49a60c={}){const _0x407c36=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x180dea(_0x3167d2=>{let _0x1c5641=('string'==typeof _0x3d5cd2?_0x407c36['findByTextCallback'](_0x3d5cd2,_0x49a60c):_0x3d5cd2)(_0x3167d2);Array['isArray'](_0x1c5641)&&(_0x1c5641={'results':_0x1c5641,'searchText':'string'==typeof _0x3d5cd2?_0x3d5cd2:''});const _0x18c035=_0x1c5641['results']['filter'](_0x2e90a8=>!0x1===this['_isInDeletionRange'](_0x2e90a8,_0x3167d2['item']));return{..._0x1c5641,'results':_0x18c035};},_0x49a60c);}['_isInDeletionRange'](_0x5d5929,_0x2a09cf){const _0x4b7a20=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a09cf,_0x5d5929['start']),this['editor']['model']['createPositionAt'](_0x2a09cf,_0x5d5929['end']));for(const _0x42089d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4b7a20['getIntersection'](_0x42089d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x3b500e{['afterInit'](){const _0x2ae8ca=this['editor']['locale'],_0x23d079=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xfb5826,commandName:_0x180ffb}of ro)this['editor']['plugins']['has'](_0xfb5826)&&(_0x23d079['enableDefaultAttributesIntegration'](_0x180ffb),_0x23d079['registerInlineAttribute'](_0x180ffb));_0x23d079['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2ae8ca,'FORMAT_FONT_SIZE')),_0x23d079['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2ae8ca,'FORMAT_FONT_FAMILY')),_0x23d079['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2ae8ca,'FORMAT_FONT_COLOR')),_0x23d079['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2ae8ca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dc789=this['editor'],_0x2d3389=_0x3dc789['locale'];_0x3dc789['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5758cd=>{const _0x5b1aca=_0x2d3389['t'];if('formatInline'!=_0x5758cd['type'])return;const {data:_0x4e05df}=_0x5758cd;if(null!=_0x4e05df){if('fontSize'==_0x4e05df['commandName']){const _0x5dc884=_0x4e05df['commandParams'][0x0]['value'];if(_0x5dc884){const _0x15909a=_0x5b1aca(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ea46a=>_0x2ea46a['model']==_0x5dc884)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20size:*\x20%0',_0x15909a)};}return{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e05df['commandName']){const _0x5c3121=_0x4e05df['commandParams'][0x0]['value'];return _0x5c3121?{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20family:*\x20%0',_0x5c3121)}:{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e05df['commandName']){const _0x53304a=_0x4e05df['commandParams'][0x0]['value'];if(_0x53304a){const _0x300b60=_0x48e3fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53cf80=>_0x53cf80['model']==_0x53304a);let _0x5a0c22=_0x53304a,_0x11bffe='';return _0x300b60&&(_0x5a0c22=_0x300b60['label'],_0x11bffe=_0x5b1aca(_0x5a0c22)['toLowerCase']()),{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20color:*\x20%0',_0x11bffe)['trim'](),'color':{'value':_0x53304a,'title':_0x11bffe||_0x5a0c22}};}return{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e05df['commandName']){const _0x5bbc8e=_0x4e05df['commandParams'][0x0]['value'];if(_0x5bbc8e){const _0x25c698=_0x48e3fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42a28f=>_0x42a28f['model']==_0x5bbc8e);let _0x43a245=_0x5bbc8e,_0x33380e='';return _0x25c698&&(_0x43a245=_0x25c698['label'],_0x33380e=_0x5b1aca(_0x43a245)['toLowerCase']()),{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20background\x20color:*\x20%0',_0x33380e)['trim'](),'color':{'value':_0x5bbc8e,'title':_0x33380e||_0x43a245}};}return{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3b500e{['afterInit'](){const _0x2f963d=this['editor'],_0x15a581=_0x2f963d['plugins']['get']('TrackChangesEditing'),_0x457572=_0x2f963d['commands']['get']('copyFormat'),_0x120841=_0x2f963d['commands']['get']('pasteFormat');_0x457572&&_0x120841&&(_0x15a581['enableDefaultAttributesIntegration']('pasteFormat'),_0x15a581['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b25fb=this['editor'],_0xb7ea5b=_0x3b25fb['locale'];_0x3b25fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15db6e=>{if('formatBlock'!=_0x15db6e['type']&&'formatInline'!=_0x15db6e['type'])return;const {data:_0x401264}=_0x15db6e;if(_0x401264&&'pasteFormat'===_0x401264['commandName']){const _0x428e34=[],_0x433411=_0x401264['commandParams'][0x0];for(const [_0x5227c4,_0x3d77cf]of Object['entries'](_0x433411))_0x428e34['push'](so(_0x3b25fb,_0x5227c4,_0x3d77cf));return _0x428e34['length']?{'type':'format','content':o(_0xb7ea5b,'*Set\x20format\x20to:*\x20%0',_0x428e34['join'](',\x20'))}:{'type':'format','content':o(_0xb7ea5b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x10a705,_0xbb96a,_0x3cc7ff){const _0x2f55d4=_0x10a705['locale']['t'],_0x2595c3=_0xbb96a['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c3457=_0x2f55d4(_0x2595c3['charAt'](0x0)['toUpperCase']()+_0x2595c3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3cc7ff)return _0x3c3457;if('fontColor'===_0xbb96a||'fontBackgroundColor'===_0xbb96a){const _0x279ac5=_0x48e3fc(_0x10a705['config']['get']('fontColor.colors'))['find'](_0x1f00b9=>_0x1f00b9['model']==_0x3cc7ff);return _0x3c3457+'\x20('+(_0x279ac5?_0x2f55d4(_0x279ac5['label'])['toLowerCase']():_0x3cc7ff)+')';}if('fontSize'===_0xbb96a&&isNaN(parseFloat(_0x3cc7ff))){const _0xfd47aa=_0x10a705['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x10a705['config']['get']('fontSize.options'))['find'](_0x3c73f3=>_0x3c73f3['model']==_0x3cc7ff);return _0x3c3457+'\x20('+(_0xfd47aa?_0x2f55d4(_0xfd47aa['title'])['toLowerCase']():_0x3cc7ff)+')';}return _0x3c3457+'\x20('+_0x3cc7ff+')';}class tt extends _0x3b500e{['_headingOptions'];['afterInit'](){const _0x324b3f=this['editor'];if(!_0x324b3f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x324b3f['config']['get']('heading.options');const _0x579984=_0x324b3f['locale'],_0x2151e5=_0x324b3f['plugins']['get']('TrackChangesEditing');_0x2151e5['enableDefaultAttributesIntegration']('heading');for(const _0x3af757 of this['_headingOptions'])'paragraph'!=_0x3af757['model']&&_0x2151e5['descriptionFactory']['registerElementLabel'](_0x3af757['model'],_0x363639=>{const _0x593a5e=this['_getHeadingLevel'](_0x3af757['model']);return null!==_0x593a5e?_0x1ba538(_0x363639,_0x593a5e):_0x5e29a0(_0x363639,_0x3af757['title']);});function _0x1ba538(_0x103a64,_0x59b62d){return o(_0x579984,'ELEMENT_HEADING',[_0x103a64,_0x59b62d]);}function _0x5e29a0(_0xa599d,_0x3c850d){return o(_0x579984,'ELEMENT_HEADING_CUSTOM',[_0xa599d,_0x3c850d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b2de2=this['editor'],_0x5cf57d=_0x5b2de2['locale'];function _0x4e5a47(_0x2dab6b,_0x20deb0){return o(_0x5cf57d,'ELEMENT_HEADING_CUSTOM',[_0x2dab6b,_0x20deb0]);}_0x5b2de2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e8d5a=>{if('formatBlock'!=_0x6e8d5a['type'])return;const {data:_0x1a418d}=_0x6e8d5a;if(_0x1a418d&&'heading'==_0x1a418d['commandName']){const _0x34fdfd=_0x1a418d['commandParams'][0x0]['value'],_0x5af590=this['_getHeadingLevel'](_0x34fdfd);if(null!==_0x5af590)return{'type':'format','content':o(_0x5cf57d,'*Change\x20to:*\x20%0',(_0x320dd2=0x1,_0x4192e0=_0x5af590,o(_0x5cf57d,'ELEMENT_HEADING',[_0x320dd2,_0x4192e0])))};const _0x261483=this['_headingOptions']['find'](_0x24e4f7=>_0x24e4f7['model']===_0x34fdfd)['title'];return{'type':'format','content':o(_0x5cf57d,'*Change\x20to:*\x20%0',_0x4e5a47(0x1,_0x261483))};}var _0x320dd2,_0x4192e0;});}['_getHeadingLevel'](_0x1f7339){const _0x4d1c02=_0x1f7339['match'](/^heading(\d+)/);if(_0x4d1c02)return _0x4d1c02[0x1];const _0xf9f9fa=this['_headingOptions']?.['find'](_0x1e357f=>_0x1e357f['model']==_0x1f7339);if(_0xf9f9fa&&_0xf9f9fa['view']){const _0x4ef66a=_0xf9f9fa['view'],_0x43657f=(_0x4ef66a['name']??_0x4ef66a)['match'](/^h(\d+)/);if(_0x43657f)return _0x43657f[0x1];}return null;}}class et extends _0x3b500e{['afterInit'](){const _0x42fd60=this['editor'];if(!_0x42fd60['plugins']['has']('HighlightEditing'))return;const _0x189e49=_0x42fd60['plugins']['get']('TrackChangesEditing'),_0x8558f2=_0x42fd60['locale'];_0x189e49['enableDefaultAttributesIntegration']('highlight'),_0x189e49['registerInlineAttribute']('highlight'),_0x189e49['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x8558f2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28eef8=this['editor'],_0x217e46=_0x28eef8['locale'];_0x28eef8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15c183=>{if('formatInline'!=_0x15c183['type'])return;const {data:_0x5eacfc}=_0x15c183;if(_0x5eacfc&&'highlight'==_0x5eacfc['commandName']){const _0x318600=_0x217e46['t'],_0x24003d=_0x5eacfc['commandParams'][0x0]['value'];if(_0x24003d){const _0x21e090=_0x28eef8['config']['get']('highlight.options')['find'](_0x543c17=>_0x543c17['model']==_0x24003d),_0x475a9f=_0x318600(_0x21e090['title'])['toLowerCase']();return{'type':'format','content':o(_0x217e46,'*Set\x20highlight:*\x20%0',_0x475a9f),'color':{'value':_0x21e090['color'],'title':_0x21e090['title']}};}return{'type':'format','content':o(_0x217e46,'*Remove\x20highlight*',o(_0x217e46,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3b500e{['afterInit'](){const _0x3a23bd=this['editor'];if(!_0x3a23bd['plugins']['has']('HorizontalLineEditing'))return;_0x3a23bd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x13e7ef=_0x3a23bd['plugins']['get']('TrackChangesEditing'),_0x26a8b3=_0x3a23bd['locale'];_0x13e7ef['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1a1b71=>o(_0x26a8b3,'ELEMENT_HORIZONTAL_LINE',_0x1a1b71)),_0x3a23bd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x53c83f,{writer:_0x44406b,options:_0x43e0a5})=>{if(!_0x43e0a5['showSuggestionHighlights'])return null;const _0x90ab6d=_0x44406b['createContainerElement']('div'),_0x38734c=_0x44406b['createEmptyElement']('hr');return _0x44406b['addClass']('ck-horizontal-line',_0x90ab6d),_0x44406b['insert'](_0x44406b['createPositionAt'](_0x90ab6d,0x0),_0x38734c),_0x90ab6d;},'converterPriority':'high'});}}class st extends _0x3b500e{['afterInit'](){const _0x5c5db2=this['editor'];if(!_0x5c5db2['plugins']['has']('HtmlEmbed'))return;const _0x129bf4=_0x5c5db2['plugins']['get']('TrackChangesEditing'),_0x5623c2=_0x5c5db2['locale'];_0x129bf4['descriptionFactory']['registerElementLabel']('rawHtml',_0x5cd97d=>o(_0x5623c2,'ELEMENT_HTML_EMBED',_0x5cd97d)),_0x129bf4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x129bf4['registerBlockAttribute']('value'),_0x129bf4['descriptionFactory']['registerDescriptionCallback'](_0x370a30=>{if('attribute'!=_0x370a30['type'])return;const {data:_0x2b519f}=_0x370a30;if(_0x2b519f&&'value'==_0x2b519f['key']&&_0x370a30['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x266353=o(_0x5623c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5623c2,'*Change\x20%0\x20content*',_0x266353)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf909=this['editor'],_0x10e11f=_0x3cf909['locale'];_0x3cf909['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16137b=>{if('formatBlock'!=_0x16137b['type'])return;const {data:_0x567b49}=_0x16137b;if(_0x567b49&&'htmlEmbed'==_0x567b49['commandName']){const _0x33ca47=o(_0x10e11f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x10e11f,'*Change\x20%0\x20content*',_0x33ca47)};}});}}class nt extends _0x3b500e{['afterInit'](){const _0x3449e5=this['editor'];if(!_0x3449e5['plugins']['has']('ImageEditing'))return;const _0x48e26d=_0x3449e5['plugins']['get']('TrackChangesEditing'),_0x502bc5=_0x3449e5['plugins']['get']('ImageUtils'),_0x4b718c=_0x3449e5['locale'];_0x48e26d['enableCommand']('insertImage'),_0x48e26d['descriptionFactory']['registerElementLabel']('imageBlock',_0x125606=>o(_0x4b718c,'ELEMENT_IMAGE',_0x125606)),_0x48e26d['descriptionFactory']['registerElementLabel']('imageInline',_0x2449f4=>o(_0x4b718c,'ELEMENT_INLINE_IMAGE',_0x2449f4)),_0x48e26d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4b718c,'ELEMENT_CAPTION')),_0x3449e5['plugins']['has']('ImageUploadEditing')&&_0x48e26d['enableCommand']('uploadImage'),_0x3449e5['plugins']['has']('ImageBlockEditing')&&_0x3449e5['plugins']['has']('ImageInlineEditing')&&(_0x48e26d['enableCommand']('imageTypeInline',(_0x9ae580,_0x182ceb)=>{const _0x2cf4c0=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']);_0x3449e5['model']['change'](()=>{_0x48e26d['markBlockFormat'](_0x2cf4c0,{'commandName':'imageTypeInline','commandParams':[_0x182ceb]},[],'convertBlockImageToInline');});}),_0x48e26d['enableCommand']('imageTypeBlock',(_0x24f464,_0x5cb4dd)=>{_0x3449e5['model']['change'](_0x23ea66=>{let _0x507673=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x5f01b0=_0x23ea66['createRangeOn'](_0x507673);const _0x2f3375=_0x106a9e['fromPosition'](_0x5f01b0['start'],'toPrevious'),_0x480afe=_0x106a9e['fromPosition'](_0x5f01b0['end'],'toNext');_0x48e26d['forceDefaultExecution'](()=>_0x24f464(_0x5cb4dd)),_0x507673=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x5f01b0=_0x23ea66['createRangeOn'](_0x507673);const _0x5c09ca=_0x23ea66['createRange'](_0x2f3375,_0x480afe);_0x2f3375['detach'](),_0x480afe['detach'](),_0x48e26d['markBlockFormat'](_0x507673,{'commandName':'imageTypeInline','commandParams':[_0x5cb4dd]},[],'convertInlineImageToBlock'),_0x5c09ca['start']['isBefore'](_0x5f01b0['start'])&&_0x48e26d['markInsertion'](_0x23ea66['createRange'](_0x5c09ca['start'],_0x5f01b0['start']),'convertInlineImageToBlock'),_0x5f01b0['end']['isBefore'](_0x5c09ca['end'])&&_0x48e26d['markInsertion'](_0x23ea66['createRange'](_0x5f01b0['end'],_0x5c09ca['end']),'convertInlineImageToBlock');});}),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48e26d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x35b872])=>{const _0x8f58cb=_0x48e26d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x16e90b=_0x35b872['start'],_0x3220ef=_0x35b872['end'];const _0x1eddd8=_0x3449e5['model']['schema']['getNearestSelectionRange'](_0x16e90b,'backward'),_0x37594e=_0x3449e5['model']['schema']['getNearestSelectionRange'](_0x3220ef,'forward');_0x1eddd8['isCollapsed']&&(_0x16e90b=_0x1eddd8['start']),_0x37594e['isCollapsed']&&(_0x3220ef=_0x37594e['end']),_0x8f58cb([_0x3449e5['model']['createRange'](_0x16e90b,_0x3220ef)]);}),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb68cd5),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb68cd5)),_0x3449e5['plugins']['has']('ImageCaptionEditing')&&(_0x48e26d['enableCommand']('toggleImageCaption',(_0xd8115b,_0x3164e9)=>{const _0x34e297=_0x3449e5['plugins']['get']('ImageCaptionUtils');let _0x265b92=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x42033f=_0x34e297['getCaptionFromImageModelElement'](_0x265b92);_0x3449e5['model']['change'](()=>{if(_0x42033f)return void _0x48e26d['markDeletion'](_0x3449e5['model']['createRangeOn'](_0x42033f));const _0x18defb=_0x502bc5['isBlockImage'](_0x265b92);_0xd8115b(_0x3164e9),_0x265b92=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x42033f=_0x34e297['getCaptionFromImageModelElement'](_0x265b92),_0x48e26d['markInsertion'](_0x3449e5['model']['createRangeOn'](_0x42033f),_0x18defb?null:'imageCaption');});}),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb68cd5));const _0x1ee803=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbf607b(_0x4e5483,_0x42579c){const _0x33a269=_0x1ee803['findIndex'](({type:_0x4996bf,subType:_0x152ca8})=>_0x4e5483['type']==_0x4996bf&&_0x4e5483['subType']==_0x152ca8),_0x464ebb=_0x1ee803['findIndex'](({type:_0x177331,subType:_0x53a16c})=>_0x42579c['type']==_0x177331&&_0x42579c['subType']==_0x53a16c);if(_0x33a269<0x0||_0x464ebb<0x0)return!0x1;const _0x36375b=_0x4e5483['getFirstRange'](),_0x3c89b3=_0x42579c['getFirstRange']();if((0x0==_0x33a269||0x1==_0x33a269)&&0x2==_0x464ebb&&_0x36375b['isIntersecting'](_0x3c89b3))return!0x0;if(0x2==_0x33a269&&0x3==_0x464ebb){const _0x3c76d0=_0x48e26d['_findSuggestions'](_0x36375b,'insertion')['filter'](({suggestion:_0xd8a9b4,meta:_0x4c1d3c})=>_0x4c1d3c['isOwn']&&'convertInlineImageToBlock'==_0xd8a9b4['subType']);if(_0x3c76d0['length']>0x1&&_0x3c89b3['end']['isEqual'](_0x36375b['start']))return!0x0;if(0x1==_0x3c76d0['length']&&(_0x36375b['start']['isEqual'](_0x3c89b3['end'])||_0x36375b['end']['isEqual'](_0x3c89b3['start'])))return!0x0;}if(0x3==_0x33a269&&0x3==_0x464ebb&&_0x36375b['start']['isBefore'](_0x3c89b3['start'])){const _0x43a8d5=_0x36375b['end']['nodeAfter'],_0x1f0564=_0x3c89b3['start']['nodeBefore'];return _0x502bc5['isBlockImage'](_0x43a8d5)&&_0x43a8d5===_0x1f0564;}return!0x1;}function _0xb68cd5(_0xfd61cb,_0x342c81){return _0xbf607b(_0xfd61cb,_0x342c81)?[_0xfd61cb,_0x342c81]:_0xbf607b(_0x342c81,_0xfd61cb)?[_0x342c81,_0xfd61cb]:null;}_0x3449e5['plugins']['has']('ImageResize')&&(_0x48e26d['enableDefaultAttributesIntegration']('resizeImage'),_0x48e26d['registerBlockAttribute']('resizedWidth'),_0x48e26d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4b718c,'FORMAT_IMAGE_SIZE'))),_0x3449e5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48e26d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48e26d['registerBlockAttribute']('alt')),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x50492d=>{if(!!_0x1ee803['find'](({type:_0x5536b6,subType:_0x37dc08})=>_0x50492d['type']==_0x5536b6&&_0x50492d['subType']==_0x37dc08))return _0x50492d['previous']?{}:void 0x0;}),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x252b21=>{if('insertion'==_0x252b21['type']||'deletion'==_0x252b21['type']){const _0xe6c09f=_0x252b21['getContainedElement']();if(_0xe6c09f&&_0xe6c09f['is']('element','caption'))return{'type':'insertion'==_0x252b21['type']?'addObject':'removeObject','element':_0xe6c09f,'quantity':0x1};}}),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x536862=>'formatBlock'==_0x536862['type']&&'convertInlineImageToBlock'==_0x536862['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x536862['type']&&'convertBlockImageToInline'==_0x536862['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x2ade3f=>{if('attribute'!=_0x2ade3f['type'])return;const {data:_0x14e20c}=_0x2ade3f;if(!_0x14e20c||'alt'!=_0x14e20c['key'])return;const _0x4cdf1f=_0x14e20c['newValue'];return _0x4cdf1f?{'type':'format','content':o(_0x4b718c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4cdf1f+'\x22')}:{'type':'format','content':o(_0x4b718c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d3903=this['editor'],_0xafa3ee=_0x4d3903['locale'];_0x4d3903['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f9407=>{if('formatBlock'!=_0x4f9407['type']&&'formatInline'!=_0x4f9407['type'])return;const {data:_0x1566ec}=_0x4f9407;if(_0x1566ec){if('imageTextAlternative'==_0x1566ec['commandName']){const _0x2f0f3c=_0x1566ec['commandParams'][0x0]['newValue'];return _0x2f0f3c?{'type':'format','content':o(_0xafa3ee,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f0f3c+'\x22')}:{'type':'format','content':o(_0xafa3ee,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1566ec['commandName']){const _0x29bd7f=_0x1566ec['commandParams'][0x0]['width'];return _0x29bd7f?{'type':'format','content':o(_0xafa3ee,'*Set\x20image\x20width:*\x20%0',_0x29bd7f)}:{'type':'format','content':o(_0xafa3ee,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a440e=this['editor']['locale'],_0x1f82bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f82bc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1f82bc['registerBlockAttribute']('src'),_0x1f82bc['descriptionFactory']['registerDescriptionCallback'](_0x4f6b13=>{if('attribute'!=_0x4f6b13['type'])return;const {data:_0x5091b1}=_0x4f6b13;return _0x5091b1&&'src'==_0x5091b1['key']?_0x5091b1['newValue']&&_0x5091b1['oldValue']?{'type':'format','content':o(_0x1a440e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45ee45=this['editor']['plugins']['get']('TrackChangesEditing');_0x45ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45ee45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45ee45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14e72c=this['editor'],_0x22fe54=_0x14e72c['locale'];_0x14e72c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f03d1=>{if('formatBlock'!=_0x4f03d1['type']&&'formatInline'!=_0x4f03d1['type'])return;const {data:_0x19e4c1}=_0x4f03d1;if(!_0x19e4c1||'replaceImageSource'!=_0x19e4c1['commandName'])return;return{'type':'format','content':o(_0x22fe54,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3b500e{['afterInit'](){const _0x309a42=this['editor'];if(!_0x309a42['plugins']['has']('ImageStyleEditing'))return;const _0x114988=_0x309a42['plugins']['get']('TrackChangesEditing'),_0x587940=_0x309a42['plugins']['get']('ImageUtils'),_0x15ab81={};_0x114988['enableCommand']('imageStyle',(_0x4f907b,_0x41899a)=>{const _0x4a234a=_0x309a42['plugins']['get']('Users')['me'],_0x1fa09a=_0x309a42['commands']['get']('imageStyle');let _0x4282c5=_0x587940['getClosestSelectedImageElement'](_0x309a42['model']['document']['selection']),_0x55040d=_0x309a42['model']['createRangeOn'](_0x4282c5),_0x3540e8=_0x1fa09a['value'];if(_0x3540e8==_0x41899a['value'])return;const _0x341347={'commandName':'imageStyle','commandParams':[_0x41899a],'formatGroupId':_0xd600d8()};_0x309a42['model']['change'](()=>{if(_0x114988['getSuggestions']()['filter'](_0x2210cf=>_0x2210cf['isInContent']&&_0x4a234a==_0x2210cf['author']&&('formatBlock'==_0x2210cf['type']||'formatInline'==_0x2210cf['type'])&&('imageStylePreApply'==_0x2210cf['subType']||'imageStylePostApply'==_0x2210cf['subType'])&&_0x2210cf['getFirstRange']()['isEqual'](_0x55040d))['forEach'](_0x28a25=>_0x114988['discardSuggestion'](_0x28a25['head'])),_0x4282c5=_0x587940['getClosestSelectedImageElement'](_0x309a42['model']['document']['selection']),_0x55040d=_0x309a42['model']['createRangeOn'](_0x4282c5),_0x1fa09a['refresh'](),_0x309a42['commands']['get']('imageTypeInline')['refresh'](),_0x309a42['commands']['get']('imageTypeBlock')['refresh'](),_0x3540e8=_0x1fa09a['value'],_0x3540e8!=_0x41899a['value'])return _0x587940['isInlineImage'](_0x4282c5)&&_0x1fa09a['shouldConvertImageType'](_0x41899a['value'],_0x4282c5)?(_0x4f907b({..._0x41899a,'setImageSizes':!0x1}),_0x4282c5=_0x587940['getClosestSelectedImageElement'](_0x309a42['model']['document']['selection']),void _0x114988['markBlockFormat'](_0x4282c5,{..._0x341347,'commandReversedParams':[{'value':_0x3540e8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x587940['isBlockImage'](_0x4282c5)?_0x114988['markBlockFormat'](_0x4282c5,_0x341347,[],'imageStylePostApply'):_0x114988['markInlineFormat'](_0x55040d,_0x341347,'imageStylePostApply'));});});for(const _0x425687 of _0x309a42['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x15ab81[_0x425687['name']]=_0x425687['title']['toLowerCase']();_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x114988['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x39c1e2])=>{_0x587940['setImageNaturalSizeAttributes'](_0x39c1e2['getContainedElement']());}),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa200e3,_0x45916d)=>{_0x114988['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa200e3,{'commandName':_0x45916d['commandName'],'commandParams':_0x45916d['commandReversedParams']});}),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1305ea,_0x426170){if(_0x5027a7(_0x1305ea,_0x426170))return[_0x1305ea,_0x426170];if(_0x5027a7(_0x426170,_0x1305ea))return[_0x426170,_0x1305ea];return null;});const _0x38f696=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5027a7(_0x2e5d1f,_0x1313e2){const _0x126fdb=_0x38f696['findIndex'](({type:_0x140c72,subType:_0x47e8d3})=>_0x2e5d1f['type']==_0x140c72&&_0x2e5d1f['subType']==_0x47e8d3),_0x42bdd0=_0x38f696['findIndex'](({type:_0x5bcf4e,subType:_0x3d19bb})=>_0x1313e2['type']==_0x5bcf4e&&_0x1313e2['subType']==_0x3d19bb);if(_0x126fdb<0x0||_0x42bdd0<0x0)return!0x1;const _0x179296=_0x2e5d1f['getFirstRange'](),_0x655bc9=_0x1313e2['getFirstRange']();if((0x0==_0x126fdb||0x1==_0x126fdb)&&0x2==_0x42bdd0&&_0x179296['isIntersecting'](_0x655bc9))return!0x0;if(0x2==_0x126fdb&&0x3==_0x42bdd0){const _0x51ac87=_0x114988['_findSuggestions'](_0x179296,'insertion')['filter'](({suggestion:_0x48b783,meta:_0x34a055})=>_0x34a055['isOwn']&&'convertInlineImageToBlock'==_0x48b783['subType']);if(_0x51ac87['length']>0x1&&_0x655bc9['end']['isEqual'](_0x179296['start']))return!0x0;if(0x1==_0x51ac87['length']&&(_0x179296['start']['isEqual'](_0x655bc9['end'])||_0x179296['end']['isEqual'](_0x655bc9['start'])))return!0x0;}if(0x3==_0x126fdb&&0x3==_0x42bdd0&&_0x179296['start']['isBefore'](_0x655bc9['start'])){const _0x148a4c=_0x179296['end']['nodeAfter'],_0x475717=_0x655bc9['start']['nodeBefore'];return _0x587940['isBlockImage'](_0x148a4c)&&_0x148a4c===_0x475717;}return!0x1;}_0x309a42['model']['document']['registerPostFixer'](()=>{let _0x3b46ef=!0x1;const _0x281552=Array['from'](_0x309a42['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x355d90,data:_0x2286d9}of _0x281552){const {group:_0x144ff1,type:_0x2d23c5,subType:_0x223969,id:_0x55ee40}=_0x114988['_splitMarkerName'](_0x355d90);if('suggestion'==_0x144ff1&&_0x114988['hasSuggestion'](_0x55ee40)){if('formatBlock'==_0x2d23c5&&('imageStylePreApply'==_0x223969||'imageStylePostApply'==_0x223969)){const _0x21da74=_0x114988['getSuggestion'](_0x55ee40);if(_0x2286d9['newRange']){const _0x4bde27=_0x21da74['getFirstRange']()['getContainedElement']();if(_0x587940['isBlockImage'](_0x4bde27))continue;_0x114988['discardSuggestion'](_0x21da74),_0x3b46ef=!0x0;}}if('insertion'==_0x2d23c5&&'imageCaption'==_0x223969&&!_0x2286d9['newRange']){const _0x107ceb=_0x114988['getSuggestion'](_0x55ee40);_0x107ceb['next']&&_0x107ceb['next']['isInContent']&&(_0x114988['discardSuggestion'](_0x107ceb['next']),_0x3b46ef=!0x0);}}}return _0x3b46ef;}),this['_registerLegacyDescription'](_0x15ab81);}['_registerLegacyDescription'](_0xc3854a){const _0x2f5daf=this['editor'],_0xb3f00e=_0x2f5daf['locale'];_0x2f5daf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x228126=>{if('formatBlock'!=_0x228126['type']&&'formatInline'!=_0x228126['type'])return;const {data:_0xdc4d1e}=_0x228126;if(!_0xdc4d1e||'imageStyle'!=_0xdc4d1e['commandName'])return;const _0x5b5bf8=_0xdc4d1e['commandParams'][0x0]['value'];return _0x49812c('side'===_0x5b5bf8?o(_0xb3f00e,'FORMAT_SIDE_IMAGE'):_0xc3854a[_0x5b5bf8]||_0x5b5bf8);function _0x49812c(_0x26a1e0){return{'type':'format','content':o(_0xb3f00e,'*Format:*\x20%0',_0x26a1e0)};}});}}class at extends _0x3b500e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x44848f){super(_0x44848f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xfaf788=this['editor'],_0x4f2545=_0xfaf788['commands']['get']('importWord'),_0x4f2cfa=_0xfaf788['commands']['get']('trackChanges');_0x4f2545&&(_0x4f2545['on']('execute',(_0x46bd0c,[,_0xb49af8])=>{this['_trackChangesValueDuringImport']=_0x4f2cfa['value'],_0xb49af8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f2545,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f2545,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f2cfa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xfaf788['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4d2602,_0x1b3224){const {suggestions:_0x2959ff}=_0x1b3224,_0x18b8ff=this['editor']['commands']['get']('trackChanges'),_0x513bdd=_0x18b8ff['value'];this['_trackChangesValueDuringImport']!==_0x513bdd&&(_0x18b8ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x2959ff&&_0x2959ff['forEach'](({id:_0x48bd6b,type:_0x5317ca,author:_0x2b5999,created_at:_0x4a2ce9})=>{const _0x100ebc={'id':_0x48bd6b,'type':_0x5317ca,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2b5999,'createdAt':_0x4a2ce9?new Date(_0x4a2ce9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x100ebc);});}}class ct extends _0x3b500e{['afterInit'](){const _0x10948d=this['editor'],_0x4cead1=_0x10948d['plugins']['get']('TrackChangesEditing');if(_0x10948d['plugins']['has']('IndentEditing')&&(_0x4cead1['enableCommand']('indent'),_0x4cead1['enableCommand']('outdent')),_0x10948d['plugins']['has']('IndentBlock')){for(const _0x414a6e of['indentBlock','outdentBlock'])_0x4cead1['enableDefaultAttributesIntegration'](_0x414a6e);}const _0xcd85de=_0x10948d['locale'];_0x4cead1['registerBlockAttribute']('blockIndent'),_0x4cead1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xcd85de,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13cdcd=this['editor'],_0x43a04a=_0x13cdcd['locale'],_0x9f6f0c=_0x13cdcd['plugins']['get']('TrackChangesEditing');_0x9f6f0c['descriptionFactory']['registerDescriptionCallback'](_0x224b3f=>{if('formatBlock'!=_0x224b3f['type'])return;const {data:_0x221ecf}=_0x224b3f;if(!_0x221ecf)return;if('indentBlock'!=_0x221ecf['commandName']&&'outdentBlock'!=_0x221ecf['commandName'])return;const _0x570029=_0x224b3f['getItems']()[0x0],_0x29a6f4=_0x9f6f0c['descriptionFactory']['getItemLabel'](_0x570029);return'indentBlock'==_0x221ecf['commandName']?{'type':'format','content':o(_0x43a04a,'*Indent:*\x20%0',_0x29a6f4)}:'outdentBlock'==_0x221ecf['commandName']?{'type':'format','content':o(_0x43a04a,'*Outdent:*\x20%0',_0x29a6f4)}:void 0x0;});}}class ut extends _0x3b500e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3b500e{['afterInit'](){const _0x2895fd=this['editor'];if(!_0x2895fd['plugins']['has']('LinkEditing'))return;const _0xfd09ef=_0x2895fd['plugins']['get']('TrackChangesEditing'),_0xae526f=_0x2895fd['commands']['get']('link');_0xfd09ef['enableDefaultAttributesIntegration']('link'),_0xfd09ef['enableDefaultAttributesIntegration']('unlink'),_0xfd09ef['registerInlineAttribute']('linkHref');for(const _0x1f6a12 of _0xae526f['manualDecorators'])_0xfd09ef['registerInlineAttribute'](_0x1f6a12['id']),_0xfd09ef['descriptionFactory']['registerAttributeLabel'](_0x1f6a12['id'],'link\x20('+_0x1f6a12['label']['toLowerCase']()+')');_0xfd09ef['descriptionFactory']['registerDescriptionCallback'](_0x4091de=>{if('attribute'!=_0x4091de['type'])return;const {data:_0x2ff5cd}=_0x4091de;if(!_0x2ff5cd||'linkHref'!=_0x2ff5cd['key'])return;const _0x4356a3=_0x2ff5cd['newValue'],_0x5a2377=_0x2895fd['locale'];return{'type':'format','content':null==_0x4356a3?o(_0x5a2377,'*Remove\x20link*'):o(_0x5a2377,'*Set\x20link:*\x20%0','\x22'+_0x4356a3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40b27b=this['editor'],_0x321f26=_0x40b27b['locale'];_0x40b27b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c02c3=>{if('formatInline'!=_0x4c02c3['type'])return;const {data:_0x23233f}=_0x4c02c3;if(_0x23233f){if('link'==_0x23233f['commandName']){const _0x420e06=_0x23233f['commandParams'][0x0];return{'type':'format','content':o(_0x321f26,'*Set\x20link:*\x20%0','\x22'+_0x420e06+'\x22')};}return'unlink'==_0x23233f['commandName']?{'type':'format','content':o(_0x321f26,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3b500e{['afterInit'](){const _0x318439=this['editor'],_0x3e1e8d=_0x318439['locale'];if(!_0x318439['plugins']['has']('LegacyListEditing'))return;const _0x440c65=_0x318439['plugins']['get']('TrackChangesEditing'),_0x10e93e=_0x318439['plugins']['has']('LegacyTodoListEditing');function _0x5d594c(_0xc9ea28){return()=>{const _0x5d02b7=_0x318439['model']['document']['selection'],_0x59944d=_0x318439['commands']['get'](_0xc9ea28);if(_0x59944d['value'])return void _0x318439['execute']('paragraph',{});const _0x5618de=_0xc9ea28['slice'](0x0,-0x4),_0x804be2=function(_0x499430,_0x6b0778,_0x45294d){let _0x216cad=Array['from'](_0x499430)['filter'](_0x524ded=>function(_0x3cb42d,_0x5733e5){return _0x5733e5['checkChild'](_0x3cb42d['parent'],'listItem')&&!_0x5733e5['isObject'](_0x3cb42d);}(_0x524ded,_0x45294d));_0x216cad=_0x216cad['filter'](_0xaeb4e5=>!_0xaeb4e5['is']('element','listItem')||_0xaeb4e5['getAttribute']('listType')!=_0x6b0778);const _0x46aa6b=new Set();for(const _0x1c9f7a of _0x216cad)_0x1c9f7a['is']('element','listItem')?_0x46aa6b['add'](fe(_0x1c9f7a)):_0x46aa6b['add'](_0x1c9f7a);return Array['from'](_0x46aa6b);}(_0x5d02b7['getSelectedBlocks'](),_0x5618de,_0x318439['model']['schema']);_0x318439['model']['change'](()=>{for(const _0x4f9de0 of _0x804be2)_0x440c65['markBlockFormat'](_0x4f9de0,{'commandName':_0xc9ea28,'commandParams':[{'forceValue':!_0x59944d['value']}],'formatGroupId':'blockName'},ue(_0x4f9de0));});};}function _0x3efffc(_0x48b257){return()=>{const _0x3c2e09=function(_0x26559e){let _0x26c077=Array['from'](_0x26559e);const _0x1cbb19=_0x26c077['findIndex'](_0x237869=>'listItem'!=_0x237869['name']);return _0x1cbb19>-0x1&&(_0x26c077=_0x26c077['slice'](0x0,_0x1cbb19)),_0x26c077;}(_0x318439['model']['document']['selection']['getSelectedBlocks']()),_0xed7eca=_0x318439['model']['createRange'](_0x318439['model']['createPositionAt'](_0x3c2e09[0x0],'before'),_0x318439['model']['createPositionAt'](_0x3c2e09[_0x3c2e09['length']-0x1],'end'));_0x318439['model']['change'](()=>{_0x440c65['markBlockFormat'](_0xed7eca,{'commandName':_0x48b257,'commandParams':[],'formatGroupId':'listIndent'},function(_0x367fa2){const _0x377a63=new Set();for(const _0x16a68d of _0x367fa2){let _0x327c17=_0x16a68d['nextSibling'];for(;_0x327c17&&_0x327c17['getAttribute']('listIndent')>_0x16a68d['getAttribute']('listIndent');)_0x377a63['add'](_0x327c17),_0x327c17=_0x327c17['nextSibling'];}return Array['from'](_0x377a63);}(_0x3c2e09));});};}_0x440c65['enableCommand']('numberedList',_0x5d594c('numberedList')),_0x440c65['enableCommand']('bulletedList',_0x5d594c('bulletedList')),_0x10e93e&&_0x440c65['enableCommand']('todoList',_0x5d594c('todoList')),_0x440c65['enableCommand']('indentList',_0x3efffc('indentList')),_0x440c65['enableCommand']('outdentList',_0x3efffc('outdentList')),_0x10e93e&&_0x440c65['enableCommand']('checkTodoList',()=>{const _0x5bdbd5=_0x318439['commands']['get']('checkTodoList'),_0x1ef80e=Array['from'](_0x5bdbd5['_selectedElements']);_0x1ef80e['filter'](_0xbb0fb7=>_0xbb0fb7['getAttribute']('todoListChecked')!=_0x5bdbd5['value']),_0x318439['model']['change'](()=>{for(const _0x10893c of _0x1ef80e)_0x440c65['markBlockFormat'](_0x10893c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5bdbd5['value']}]});});}),_0x440c65['descriptionFactory']['registerElementLabel']('listItem',_0x30bd1f=>o(_0x3e1e8d,'ELEMENT_LIST_ITEM',_0x30bd1f)),_0x440c65['descriptionFactory']['registerDescriptionCallback'](_0x53e04d=>{if('formatBlock'!=_0x53e04d['type']&&'formatInline'!=_0x53e04d['type'])return;const {data:_0x41d4f8}=_0x53e04d;if(_0x41d4f8){if('numberedList'==_0x41d4f8['commandName']||'bulletedList'==_0x41d4f8['commandName']||'todoList'==_0x41d4f8['commandName'])switch(_0x41d4f8['commandName']['replace']('List','')){case'bulleted':return _0x4f4702(o(_0x3e1e8d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f4702(o(_0x3e1e8d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f4702(o(_0x3e1e8d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x41d4f8['commandName'])return{'type':'format','content':o(_0x3e1e8d,'*Indent:*\x20%0',o(_0x3e1e8d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x41d4f8['commandName'])return{'type':'format','content':o(_0x3e1e8d,'*Outdent:*\x20%0',o(_0x3e1e8d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x41d4f8['commandName'])return _0x41d4f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e1e8d,'*Check\x20item*')}:{'type':'format','content':o(_0x3e1e8d,'*Uncheck\x20item*')};}function _0x4f4702(_0x1d4f2b){return{'type':'format','content':o(_0x3e1e8d,'*Change\x20to:*\x20%0',_0x1d4f2b)};}});}}function fe(_0x346550){const _0x16cdca=_0x346550['getAttribute']('listIndent');if(0x0==_0x16cdca)return _0x346550;let _0x56477c=_0x346550;for(;_0x346550['previousSibling']&&_0x346550['previousSibling']['is']('element','listItem');){const _0xa4451a=_0x346550['previousSibling']['getAttribute']('listIndent');if(_0xa4451a==_0x16cdca)_0x56477c=_0x346550['previousSibling'];else{if(_0xa4451a<_0x16cdca)break;}_0x346550=_0x346550['previousSibling'];}return _0x56477c;}function ue(_0x214627){const _0x3ed5c2=[];if(_0x214627['is']('element','listItem')&&_0x214627['getAttribute']('listIndent')>0x0){let _0x5206bb=_0x214627['nextSibling'];for(;_0x5206bb&&'listItem'==_0x5206bb['name']&&_0x5206bb['getAttribute']('listIndent')==_0x214627['getAttribute']('listIndent');)_0x3ed5c2['push'](_0x5206bb),_0x5206bb=_0x5206bb['nextSibling'];}return _0x3ed5c2;}class W extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d0962=this['editor']['config']['get']('list.properties'),_0xa81fb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d0962['styles']&&_0xa81fb3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d0962['reversed']&&_0xa81fb3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d0962['startIndex']&&_0xa81fb3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa81fb3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4739d2,_0x2dc3ea={}){const _0x8234db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59ef18=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x8234db['markMultiRangeBlockFormat'](_0x59ef18,{'commandName':'listStyle','commandParams':[{'type':_0x2dc3ea['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xce0ba3,_0xeac1a7={}){const _0x3b1182=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2be12c=this['_getSuggestionBlocks'](_0xae132f=>_0xae132f['is']('element','listItem')&&'numbered'===_0xae132f['getAttribute']('listType'));if(_0x2be12c['length']<0x1)return;const _0x395bf5=_0x2be12c['map'](_0x267d5a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x267d5a,'before'),this['editor']['model']['createPositionAt'](_0x267d5a,0x0)));this['editor']['model']['change'](()=>{_0x3b1182['markMultiRangeBlockFormat'](_0x395bf5,{'commandName':'listReversed','commandParams':[{'reversed':_0xeac1a7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2cf1ff,_0x712319={}){const _0x5d2c2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1886b1=this['_getSuggestionBlocks'](_0x578ffe=>_0x578ffe['is']('element','listItem')&&'numbered'===_0x578ffe['getAttribute']('listType'));if(_0x1886b1['length']<0x1)return;const _0x12047f=_0x1886b1['map'](_0xde89e2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xde89e2,'before'),this['editor']['model']['createPositionAt'](_0xde89e2,0x0)));this['editor']['model']['change'](()=>{_0x5d2c2e['markMultiRangeBlockFormat'](_0x12047f,{'commandName':'listStart','commandParams':[{'startIndex':_0x712319['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3e8750){if('formatBlock'!=_0x3e8750['type']&&'formatInline'!=_0x3e8750['type'])return;const _0x35f405=this['editor']['locale'],{data:_0x3984ff}=_0x3e8750;if(!_0x3984ff)return;let _0x5688ba,_0x45c04d;switch(_0x3984ff['commandName']){case'listStyle':_0x5688ba='*Change\x20to:*\x20%0',_0x45c04d={'type':'format','content':o(_0x35f405,_0x5688ba,o(_0x35f405,this['_getTranslationKeyForListStyle'](_0x3984ff['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5688ba=_0x3984ff['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45c04d={'type':'format','content':o(_0x35f405,_0x5688ba)};break;case'listStart':_0x5688ba='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45c04d={'type':'format','content':o(_0x35f405,_0x5688ba,_0x3984ff['commandParams'][0x0]['startIndex'])};}return _0x45c04d;}['_getSuggestionBlocksForListStyle'](){const _0x17042b=this['editor']['plugins']['get']('LegacyListUtils');let _0x231943=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x231943[0x0]?.['is']('element','listItem')&&_0x231943['unshift'](..._0x17042b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x231943[_0x231943['length']-0x1]?.['is']('element','listItem')&&_0x231943['push'](..._0x17042b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x231943=[...new Set(_0x231943)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x231943=_0x231943['filter'](_0x18773e=>_0x18773e['is']('element','listItem'))),_0x231943;}['_getSuggestionBlocks'](_0xcb3f72){const _0x2c079d=this['editor']['plugins']['get']('LegacyListUtils');let _0x2eb7a4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xcb3f72)['map'](_0x3c6865=>{const _0x4177f5=this['editor']['model']['createPositionAt'](_0x3c6865,0x0);return[..._0x2c079d['getSiblingNodes'](_0x4177f5,'backward'),..._0x2c079d['getSiblingNodes'](_0x4177f5,'forward')];})['flat']();return _0x2eb7a4=[...new Set(_0x2eb7a4)],_0x2eb7a4;}['_getTranslationKeyForListStyle'](_0x3e5d48){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e5d48)||'default')['toUpperCase']()+'_LIST_'+_0x3e5d48['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3b500e{['afterInit'](){const _0x48eaa1=this['editor'];if(!_0x48eaa1['plugins']['has']('MediaEmbedEditing'))return;const _0x3af355=_0x48eaa1['plugins']['get']('TrackChangesEditing'),_0x32406a=_0x48eaa1['locale'];_0x3af355['enableCommand']('mediaEmbed'),_0x3af355['descriptionFactory']['registerElementLabel']('media',_0x3a8966=>o(_0x32406a,'ELEMENT_MEDIA',_0x3a8966)),_0x48eaa1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x212a63,{writer:_0x4256f6,options:_0x495af7})=>{if(_0x495af7['showSuggestionHighlights'])return _0x4256f6['createEmptyElement']('div');},'converterPriority':'high'}),_0x48eaa1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4ba71,_0x56487c,_0x193429)=>{_0x193429['options']['showSuggestionHighlights']&&_0x4ba71['stop']();},{'priority':'high'});}}class mt extends _0x3b500e{['afterInit'](){const _0x20bd7c=this['editor'];_0x20bd7c['plugins']['has']('MentionEditing')&&_0x20bd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3b500e{['afterInit'](){const _0x592cb9=this['editor'];if(!_0x592cb9['plugins']['has']('MergeFieldsEditing'))return;_0x592cb9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x592cb9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1e7c92=_0x592cb9['plugins']['get']('TrackChangesEditing'),_0x4b469f=_0x592cb9['locale'];_0x1e7c92['descriptionFactory']['registerElementLabel']('mergeField',_0x491bbb=>o(_0x4b469f,'ELEMENT_MERGE_FIELD',_0x491bbb)),_0x1e7c92['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2ac424=>o(_0x4b469f,'ELEMENT_MERGE_FIELD',_0x2ac424)),_0x1e7c92['descriptionFactory']['registerDescriptionCallback'](_0x24beeb=>{if('insertion'!=_0x24beeb['type']&&'deletion'!=_0x24beeb['type'])return;const _0x155602=_0x24beeb['getContainedElement']();if(null==_0x155602)return;if(!_0x155602['is']('element','mergeField')&&!_0x155602['is']('element','mergeFieldBlock'))return;const _0x4ce355=_0x592cb9['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x155602['getAttribute']('id'));return'insertion'==_0x24beeb['type']?{'type':'insertion','content':o(_0x4b469f,'*Insert:*\x20%0','\x22'+_0x4ce355+'\x22\x20'+o(_0x4b469f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4b469f,'*Remove:*\x20%0','\x22'+_0x4ce355+'\x22\x20'+o(_0x4b469f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3b500e{['afterInit'](){const _0x1676a7=this['editor'],_0x5de872=_0x1676a7['plugins']['get']('TrackChangesEditing');_0x1676a7['plugins']['has']('MultiLevelList')&&(_0x5de872['enableDefaultAttributesIntegration']('multiLevelList'),_0x5de872['registerBlockAttribute']('listMarkerStyle'),_0x5de872['descriptionFactory']['registerDescriptionCallback'](_0x52adf4=>this['handleDescriptions'](_0x52adf4)));}['handleDescriptions'](_0x92d960){const _0x1e9f03=this['editor']['locale'],{data:_0x4920f2}=_0x92d960,_0x116cf8={'type':'format','content':''};if(_0x4920f2&&'listMarkerStyle'==_0x4920f2['key']){if(!_0x4920f2['oldValue'])return{'type':'format','content':o(_0x1e9f03,'*Set\x20format:*\x20%0',o(_0x1e9f03,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4920f2['newValue']+')'};if(!_0x4920f2['newValue']){let _0x2f8ad3=_0x92d960['head'];for(;_0x2f8ad3;){if(_0x2f8ad3['data']&&'listType'==_0x2f8ad3['data']['key']&&_0x2f8ad3['data']['newValue'])return _0x116cf8;_0x2f8ad3=_0x2f8ad3['next'];}return{'type':'format','content':o(_0x1e9f03,'*Remove\x20format:*\x20%0',o(_0x1e9f03,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4920f2['oldValue']+')'};}}}}class kt extends _0x3b500e{['afterInit'](){const _0x5e4da9=this['editor'];if(!_0x5e4da9['plugins']['has']('PageBreakEditing'))return;_0x5e4da9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x41eb8b=_0x5e4da9['plugins']['get']('TrackChangesEditing'),_0x5c9652=_0x5e4da9['locale'];_0x41eb8b['descriptionFactory']['registerElementLabel']('pageBreak',_0x1374ec=>o(_0x5c9652,'ELEMENT_PAGE_BREAK',_0x1374ec));}}class bt extends _0x3b500e{['afterInit'](){const _0x4a74eb=this['editor'];if(!_0x4a74eb['plugins']['has']('Paragraph'))return;const _0x229b65=_0x4a74eb['locale'],_0x3d4f33=_0x4a74eb['plugins']['get']('TrackChangesEditing');_0x3d4f33['descriptionFactory']['registerElementLabel']('paragraph',_0x5cd25b=>o(_0x229b65,'ELEMENT_PARAGRAPH',_0x5cd25b)),_0x3d4f33['enableDefaultAttributesIntegration']('paragraph'),_0x3d4f33['enableCommand']('insertParagraph'),_0x4a74eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4a74eb),{'priority':'highest'}),_0x4a74eb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cc730,_0x527797,_0x3b47c8)=>{_0x3b47c8['options']['showSuggestionHighlights']&&nr(_0x4a74eb,{'showActiveMarker':!0x1})(_0x3cc730,_0x527797,_0x3b47c8);},{'priority':'highest'});const _0x32e154=_0x3d4f33['descriptionFactory'];_0x32e154['registerDescriptionCallback'](_0x595ce5=>{if('insertion'!==_0x595ce5['type'])return;const {start:_0x45646a,end:_0x4d75b1}=_0x595ce5['getFirstRange']();if(!_0x45646a['isTouching'](_0x4d75b1)||!_0x45646a['nodeAfter'])return;const _0x59a5a3=_0x4a74eb['model']['schema'],_0x405a63=_0x45646a['nodeAfter'];return _0x59a5a3['isBlock'](_0x405a63)&&!_0x59a5a3['isLimit'](_0x405a63)&&_0x59a5a3['checkChild'](_0x405a63,'$text')?{'type':'insertion','content':o(_0x229b65,'*Insert:*\x20%0',_0x32e154['getItemLabel'](_0x405a63,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x151c34=this['editor'],_0x945a25=_0x151c34['locale'];_0x151c34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598b71=>{if('formatBlock'!=_0x598b71['type'])return;const {data:_0x421bb}=_0x598b71;return _0x421bb&&'paragraph'==_0x421bb['commandName']?{'type':'format','content':o(_0x945a25,'*Change\x20to:*\x20%0',o(_0x945a25,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd6b8b5,{showActiveMarker:_0x3de0fd=!0x0}={}){return(_0x504acc,_0x2f8b3d,_0x10bb30)=>{const _0x53c438=_0xd6b8b5['plugins']['get']('TrackChangesEditing'),_0x28bec9=_0x2f8b3d['markerRange']['start'],_0x25c656=_0x2f8b3d['markerRange']['end'],_0x3b7edb=_0xd6b8b5['model']['schema'];if(!_0x28bec9['isTouching'](_0x25c656)||!_0x28bec9['nodeAfter'])return;const _0x3180de=_0x28bec9['nodeAfter'];if(_0x3b7edb['isBlock'](_0x3180de)&&!_0x3b7edb['isLimit'](_0x3180de)&&_0x3b7edb['checkChild'](_0x3180de,'$text')){if(!_0x10bb30['consumable']['consume'](_0x2f8b3d['markerRange'],_0x504acc['name']))return;const {authorId:_0x1e227a}=_0x53c438['_splitMarkerName'](_0x2f8b3d['markerName']),_0x2dba83=_0x10bb30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1e227a}),_0x8c60eb=_0x10bb30['mapper']['toViewPosition'](_0x25c656);_0x3de0fd&&_0x53c438['activeMarkers']['includes'](_0x2f8b3d['markerName'])&&_0x10bb30['writer']['addClass']('ck-suggestion-marker--active',_0x2dba83),_0x10bb30['writer']['insert'](_0x8c60eb,_0x2dba83),_0x10bb30['mapper']['bindElementToMarker'](_0x2dba83,_0x2f8b3d['markerName']);}};}class wt extends _0x3b500e{['afterInit'](){const _0x27b8e2=this['editor'];if(!_0x27b8e2['plugins']['has']('RemoveFormatEditing'))return;_0x27b8e2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32cad4=this['editor'];_0x32cad4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bdae7=>{if('formatBlock'!=_0x2bdae7['type']&&'formatInline'!=_0x2bdae7['type'])return;const {data:_0x5f22e8}=_0x2bdae7;return _0x5f22e8&&'removeFormat'==_0x5f22e8['commandName']?{'type':'format','content':o(_0x32cad4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3b500e{['afterInit'](){const _0x56e718=this['editor'];if(!_0x56e718['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x174aeb=_0x56e718['plugins']['get']('TrackChangesEditing');_0x174aeb['enableCommand']('goToPreviousRestrictedEditingException'),_0x174aeb['enableCommand']('goToNextRestrictedEditingException');const _0x177275=_0x56e718['plugins']['get']('RestrictedEditingModeEditing');_0x177275['enableCommand']('trackChanges'),_0x177275['enableCommand']('acceptSuggestion'),_0x177275['enableCommand']('discardSuggestion'),_0x177275['enableCommand']('acceptAllSuggestions'),_0x177275['enableCommand']('discardAllSuggestions'),_0x177275['enableCommand']('acceptSelectedSuggestions'),_0x177275['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3b500e{static get['requires'](){return[_0x3492a8];}['init'](){const _0x37d963=this['editor'],_0x30b959=_0x37d963['plugins']['get']('TrackChangesEditing');_0x30b959['enableCommand']('shiftEnter'),_0x37d963['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x37d963),{'priority':'high'}),_0x37d963['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x37d963),{'priority':'high'}),_0x37d963['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52e10b,_0x24467b,_0x2b8d0e)=>{_0x2b8d0e['options']['showSuggestionHighlights']&&ge(_0x37d963,{'showActiveMarker':!0x1})(_0x52e10b,_0x24467b,_0x2b8d0e);}),_0x30b959['descriptionFactory']['registerElementLabel']('softBreak',_0x4837da=>o(_0x37d963['locale'],'ELEMENT_LINE_BREAK',_0x4837da));}}function ge(_0x3e15d8,{showActiveMarker:_0x4a1934=!0x0}={}){return(_0x13541a,_0xddf40b,_0xa1d7d9)=>{const _0xe66de4=_0x3e15d8['plugins']['get']('TrackChangesEditing');if(!_0xa1d7d9['consumable']['test'](_0xddf40b['markerRange'],_0x13541a['name']))return;const _0x7e03fb=_0x3e15d8['model'];for(const _0x95f41d of _0xddf40b['markerRange']['getItems']()){if(!_0x95f41d['is']('element','softBreak'))continue;const _0x1a3fa5='deletion'==_0xddf40b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2cc16b}=_0xe66de4['_splitMarkerName'](_0xddf40b['markerName']),_0x387f0f=_0xa1d7d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a3fa5,'data-author-id':_0x2cc16b}),_0x1d6d5e=_0xa1d7d9['mapper']['toViewPosition'](_0x7e03fb['createPositionBefore'](_0x95f41d));_0x4a1934&&_0xe66de4['activeMarkers']['includes'](_0xddf40b['markerName'])&&_0xa1d7d9['writer']['addClass']('ck-suggestion-marker--active',_0x387f0f),_0xa1d7d9['writer']['insert'](_0x1d6d5e,_0x387f0f),_0xa1d7d9['mapper']['bindElementToMarker'](_0x387f0f,_0xddf40b['markerName']);}};}class St extends _0x3b500e{['afterInit'](){const _0x2b4ec3=this['editor'],_0x3bcfff=_0x2b4ec3['model'],_0x203b0b=_0x2b4ec3['locale'];if(!_0x2b4ec3['plugins']['has']('StandardEditingModeEditing'))return;const _0x1398b1=_0x2b4ec3['plugins']['get']('TrackChangesEditing'),_0x329aee='restrictedEditingException',_0x2a643d=_0x2b4ec3['commands']['get'](_0x329aee);_0x1398b1['enableCommand'](_0x329aee,(_0xcca97e,_0x4e626c={})=>{const _0x460c10=_0x3bcfff['document']['selection'];if(_0x460c10['isCollapsed'])return void _0xcca97e(_0x4e626c);const _0x4bff73=void 0x0!==_0x4e626c['forceValue']?_0x4e626c['forceValue']:!_0x2a643d['value'];_0x3bcfff['change'](()=>{const _0x4131c0=Array['from'](_0x460c10['getRanges']());for(const _0x2af158 of _0x4131c0){const _0x599374=_0x4bff73?[_0x2af158]:io(_0x329aee,_0x2af158,_0x3bcfff);for(const _0x10274c of _0x599374)_0x1398b1['markInlineFormat'](_0x10274c,{'commandName':_0x329aee,'commandParams':[{'forceValue':_0x4bff73}]});}});}),_0x1398b1['descriptionFactory']['registerDescriptionCallback'](_0x5e4459=>{if('formatBlock'!=_0x5e4459['type']&&'formatInline'!=_0x5e4459['type'])return;const {data:_0x268aba}=_0x5e4459;return _0x268aba&&_0x268aba['commandName']==_0x329aee?_0x268aba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x203b0b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x203b0b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3b500e{['afterInit'](){const _0x115f72=this['editor'];if(!_0x115f72['plugins']['has']('Style')||!_0x115f72['plugins']['has']('DataSchema'))return;const _0x34c537=_0x115f72['plugins']['get']('TrackChangesEditing'),_0x502335=_0x115f72['locale'],_0x1f8f38=_0x115f72['config']['get']('style')||{},_0x46f6ba=_0x115f72['plugins']['get']('GeneralHtmlSupport'),_0x8af00b=_0x115f72['plugins']['get']('StyleUtils')['normalizeConfig'](_0x115f72['plugins']['get']('DataSchema'),_0x1f8f38['definitions']);_0x34c537['enableDefaultAttributesIntegration']('style');const _0x1f4c1d=new Set();for(const _0x1cfcf8 of _0x8af00b['block']){const _0x2c0c66=_0x46f6ba['getGhsAttributeNameForElement'](_0x1cfcf8['element']);_0x1f4c1d['add'](_0x2c0c66);}const _0x538bb9=new Set();for(const _0x883395 of _0x8af00b['inline']){const _0x406d58=_0x46f6ba['getGhsAttributeNameForElement'](_0x883395['element']);_0x538bb9['add'](_0x406d58);for(const _0x10135a of _0x883395['ghsAttributes'])_0x538bb9['add'](_0x10135a);}for(const _0x3d42b8 of _0x1f4c1d)_0x34c537['registerBlockAttribute'](_0x3d42b8),_0x34c537['descriptionFactory']['registerAttributeLabel'](_0x3d42b8,o(_0x502335,'FORMAT_STYLE'));for(const _0x3d93a6 of _0x538bb9)_0x34c537['registerInlineAttribute'](_0x3d93a6),_0x34c537['descriptionFactory']['registerAttributeLabel'](_0x3d93a6,o(_0x502335,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2192=this['editor'],_0xc74c96=_0x3d2192['locale'];_0x3d2192['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23de04=>{if('formatBlock'!=_0x23de04['type']&&'formatInline'!=_0x23de04['type'])return;const {data:_0x5d12da}=_0x23de04;return _0x5d12da&&'style'===_0x5d12da['commandName']?_0x5d12da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc74c96,'*Set\x20format:*\x20%0',_0x5d12da['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc74c96,'*Remove\x20format:*\x20%0',_0x5d12da['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3b500e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9c117a){super(_0x9c117a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1b7568=this['editor'],_0x1fd235=_0x1b7568['model']['document']['selection'];if(!_0x1b7568['plugins']['has']('TableEditing'))return;const _0x19612b=_0x1b7568['locale'],_0x160f82=_0x1b7568['plugins']['get']('TrackChangesEditing'),_0x503bc7=_0x1b7568['plugins']['get']('TableUtils');_0x160f82['descriptionFactory']['registerElementLabel']('table',_0x4263ea=>o(_0x19612b,'ELEMENT_TABLE',_0x4263ea)),this['_setupColumnsRowsFixing'](),_0x160f82['enableCommand']('insertTable'),_0x160f82['enableCommand']('selectTableRow'),_0x160f82['enableCommand']('selectTableColumn');for(const _0x3e054e of['insertTableRowAbove','insertTableRowBelow']){const _0x42020d=_0x1b7568['commands']['get'](_0x3e054e);_0x160f82['enableCommand'](_0x3e054e,_0x84ef5a=>{_0x1b7568['model']['change'](_0x38a019=>{_0x84ef5a();const _0x40b3b5='above'===_0x42020d['order'],_0x6ad381=_0x503bc7['getSelectionAffectedTableCells'](_0x1fd235),_0x263c6f=_0x503bc7['getRowIndexes'](_0x6ad381),_0x5d94a9=_0x40b3b5?_0x263c6f['first']-0x1:_0x263c6f['last']+0x1,_0x164229=_0x6ad381[0x0]['findAncestor']('table'),_0x592374=_0x503bc7['createTableWalker'](_0x164229,{'startRow':_0x5d94a9,'endRow':_0x5d94a9}),_0x402f15=Array['from'](_0x592374)['map'](_0x288460=>_0x38a019['createRangeOn'](_0x288460['cell']));_0x160f82['markMultiRangeInsertion'](_0x402f15,'tableRow');});});}for(const _0x38bf60 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4504ba=_0x1b7568['commands']['get'](_0x38bf60);_0x160f82['enableCommand'](_0x38bf60,_0x385876=>{_0x1b7568['model']['change'](_0x2332ec=>{_0x385876();const _0x54c608='left'===_0x4504ba['order'],_0x3d21cf=_0x503bc7['getSelectionAffectedTableCells'](_0x1fd235),_0x14b8ca=_0x503bc7['getColumnIndexes'](_0x3d21cf),_0x2d7abe=_0x54c608?_0x14b8ca['first']-0x1:_0x14b8ca['last']+0x1,_0x1561e1=_0x3d21cf[0x0]['findAncestor']('table'),_0x528e78=_0x503bc7['createTableWalker'](_0x1561e1,{'startRow':0x0,'column':_0x2d7abe,'includeAllSlots':!0x1}),_0x1bd3cc=Array['from'](_0x528e78)['map'](_0x5760d5=>_0x2332ec['createRangeOn'](_0x5760d5['cell']));_0x160f82['markMultiRangeInsertion'](_0x1bd3cc,'tableColumn');});});}for(const _0x450611 of['removeTableRow','removeTableColumn']){const _0x30f321=_0x450611['substr'](0xb),_0x378685=_0x30f321['toLowerCase'](),_0x34c458=_0x378685['substr'](0x0,0x3)+'span',_0x14b1d5='table'+_0x30f321,_0x2a905e='min'+_0x30f321,_0x3671fb='max'+_0x30f321;_0x160f82['enableCommand'](_0x450611,()=>{_0x1b7568['model']['change'](_0x50a761=>{const _0x44224c=_0x503bc7['getSelectionAffectedTableCells'](_0x1fd235),_0xbad830=_0x44224c[0x0]['findAncestor']('table');let _0xe5eb00;if('removeTableRow'==_0x450611){const _0x541543=_0x503bc7['getRowIndexes'](_0x44224c);_0xe5eb00={'startRow':_0x541543['first'],'endRow':_0x541543['last'],'includeAllSlots':!0x0};}else{const _0x56ad26=_0x503bc7['getColumnIndexes'](_0x44224c);_0xe5eb00={'startColumn':_0x56ad26['first'],'endColumn':_0x56ad26['last'],'includeAllSlots':!0x0};}const _0x54dcca=_0x503bc7['createTableWalker'](_0xbad830,_0xe5eb00),_0x3e184a=Array['from'](_0x54dcca)['map'](({cell:_0x40647f})=>_0x40647f),_0x5d8b3c=be(_0x3e184a['filter'](_0x1b2c73=>_0x1b2c73['hasAttribute'](_0x34c458))),_0x3f6045=be(_0x3e184a['filter'](_0x34c40d=>!_0x34c40d['hasAttribute'](_0x34c458)))['map'](_0x1a079c=>_0x50a761['createRangeOn'](_0x1a079c)),_0x3dfb77=_0x160f82['markMultiRangeDeletion'](_0x3f6045,_0x14b1d5);if(_0x3dfb77&&('tableRow'==_0x3dfb77['subType']||'tableColumn'==_0x3dfb77['subType'])){const _0x1e64be=this['_getSuggestionCoords'](_0x3dfb77);for(const _0x5167e2 of _0x5d8b3c){const _0x2f6e75=_0x50a761['createRangeOn'](_0x5167e2),_0x446ad2=_0x503bc7['getCellLocation'](_0x5167e2),_0x5db8f8=_0x5167e2['getAttribute'](_0x34c458)-0x1,_0x5b7865=_0x1e64be[_0x2a905e],_0x30744a=_0x1e64be[_0x3671fb];_0x5b7865<=_0x446ad2[_0x378685]&&_0x446ad2[_0x378685]+_0x5db8f8<=_0x30744a&&_0x3dfb77['addRange'](_0x2f6e75);}}});});}function _0x25d872(_0x53c7be){const _0x1e5894=Array['from'](_0x1fd235['getRanges']())['map'](_0x7a9d21=>_0x5e2088['fromRange'](_0x7a9d21));_0x1b7568['model']['change'](_0x27ebf9=>{const _0x24a973=_0x27ebf9['batch'];_0x53c7be=_0x53c7be['filter'](_0x400157=>'$graveyard'!=_0x400157['root']['rootName']),_0x27ebf9['setSelection'](_0x53c7be),_0x1b7568['commands']['get']('removeTableRow')['refresh'](),_0x1b7568['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b7568['model']['enqueueChange'](()=>{_0x1b7568['model']['enqueueChange'](_0x24a973,_0x49ce5a=>{const _0x494646=_0x1e5894['filter'](_0x23029a=>'$graveyard'!=_0x23029a['root']['rootName']);_0x494646['length']>0x0&&_0x49ce5a['setSelection'](_0x494646);for(const _0x38abc0 of _0x1e5894)_0x38abc0['detach']();});});});}function _0x471bea(_0x111d73){_0x1b7568['model']['change'](_0x2d2690=>{const _0x17f6a7=Array['from'](_0x1fd235['getRanges']())['map'](_0x1871d7=>_0x5e2088['fromRange'](_0x1871d7)),_0x59f3ad=[];for(const _0x3a6867 of _0x111d73)for(const _0x276098 of _0x3a6867['getItems']({'shallow':!0x0}))_0x59f3ad['push'](_0x276098);for(const _0x4a5199 of _0x59f3ad)'$graveyard'!=_0x4a5199['root']['rootName']&&(_0x2d2690['setSelection'](_0x2d2690['createPositionAt'](_0x4a5199,0x0)),_0x1b7568['commands']['get']('removeTableColumn')['refresh'](),_0x1b7568['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1024d4=_0x17f6a7['filter'](_0xc028db=>'$graveyard'!=_0xc028db['root']['rootName']);_0x1024d4['length']>0x0&&_0x2d2690['setSelection'](_0x1024d4);for(const _0x5cc3c0 of _0x17f6a7)_0x5cc3c0['detach']();});}function _0x3d278f(_0x5f018d,_0x47bb32){return _0x47bb32['every'](_0x585101=>_0x5f018d['some'](_0x387050=>_0x387050['end']['isEqual'](_0x585101['start'])||_0x585101['end']['isEqual'](_0x387050['start'])));}function _0x51c97c(_0x125727,_0xb212df){return!_0x125727['some'](_0x2aaeaa=>_0xb212df['some'](_0x1f545e=>_0x2aaeaa['isIntersecting'](_0x1f545e)))&&_0x125727['some'](_0x340b93=>_0xb212df['some'](_0x2da628=>_0x340b93['end']['isTouching'](_0x2da628['start'])));}_0x1b7568['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3487f3,_0x4ca6b7,_0x17b1d0)=>{if(!_0x17b1d0['options']['showSuggestionHighlights'])return;const _0x301027=_0x4ca6b7['item'];if(!_0x301027)return;const _0x25c4fd=_0x17b1d0['mapper']['toViewElement'](_0x301027);function _0x20e82f(_0x17b9c5){return Array['isArray'](_0x17b9c5)?_0x17b9c5:[_0x17b9c5];}_0x25c4fd&&'tableCell'===_0x301027['name']&&_0x59e075(_0x25c4fd,_0x17b1d0['writer'],(_0x2eff82,_0x24528a,_0x4431e5)=>_0x4431e5['addClass'](_0x20e82f(_0x24528a['classes']),_0x2eff82),(_0x4914b6,_0x37e8fb,_0x3d0d53)=>_0x3d0d53['removeClass'](_0x20e82f(_0x37e8fb['classes']),_0x4914b6));},{'priority':'highest'}),_0x160f82['descriptionFactory']['registerDescriptionCallback'](_0x35ca71=>{if('insertion'!=_0x35ca71['type']&&'deletion'!=_0x35ca71['type'])return;const _0x231e50=_0x35ca71['getContainedElement']();if(null!=_0x231e50&&_0x231e50['is']('element','table')){if('insertion'==_0x35ca71['type']){const _0x2db2e4=_0x35ca71['getItems']()['filter'](_0x2d2762=>_0x2d2762['is']('$textProxy'))['map'](_0x57bec1=>_0x57bec1['data']);if(_0x2db2e4['length'])return{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2db2e4['join']('\x20')+'\x22'))};}if('deletion'==_0x35ca71['type']){const _0x5bf5d4=_0x35ca71['getItems']()['filter'](_0x276a3e=>_0x276a3e['is']('$textProxy'))['map'](_0x18b92e=>_0x18b92e['data']);if(_0x5bf5d4['length'])return{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bf5d4['join']('\x20')+'\x22'))};}}}),_0x160f82['descriptionFactory']['registerDescriptionCallback'](_0x2b2f01=>{if('tableRow'==_0x2b2f01['subType']){const _0x718dc=_0x2b2f01['getItems']()['filter'](_0x107a4e=>_0x107a4e['is']('$textProxy'))['map'](_0x5026b0=>_0x5026b0['data']),_0x25f114=this['_getSuggestionCoords'](_0x2b2f01),_0x261359=_0x25f114['maxRow']-_0x25f114['minRow']+0x1;if('insertion'==_0x2b2f01['type'])return _0x718dc['length']?{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x261359,'\x22'+_0x718dc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW',_0x261359))};if('deletion'==_0x2b2f01['type'])return _0x718dc['length']?{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x261359,'\x22'+_0x718dc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW',_0x261359))};}if('tableColumn'==_0x2b2f01['subType']){const _0x271be0=_0x2b2f01['getItems']()['filter'](_0x5bbcc8=>_0x5bbcc8['is']('$textProxy'))['map'](_0x5d6653=>_0x5d6653['data']),_0x1d8b51=this['_getSuggestionCoords'](_0x2b2f01),_0x1a3a3b=_0x1d8b51['maxColumn']-_0x1d8b51['minColumn']+0x1;if('insertion'==_0x2b2f01['type'])return _0x271be0['length']?{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a3a3b,'\x22'+_0x271be0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN',_0x1a3a3b))};if('deletion'==_0x2b2f01['type'])return _0x271be0['length']?{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a3a3b,'\x22'+_0x271be0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN',_0x1a3a3b))};}}),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x25d872),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x25d872),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x471bea),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x471bea),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d278f),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d278f),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51c97c),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51c97c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5b26a3=this['editor'],_0x1c79cd=_0x5b26a3['model']['document']['selection'];return(_0xf299d1,_0x5d6aa0)=>{_0x5b26a3['model']['change'](_0x404d4d=>{const {commandName:_0x1c1dbd,commandParams:_0x4feaad}=_0x5d6aa0;let _0x2d6219=_0xf299d1[0x0]['end']['nodeBefore'];_0x4feaad&&_0x4feaad[0x0]&&!0x1===_0x4feaad[0x0]['forceValue']&&(_0x2d6219=_0xf299d1[0x0]['start']['nodeAfter']);const _0xe62002=_0x404d4d['createRangeIn'](_0x2d6219);if('$graveyard'==_0xe62002['root']['rootName'])return;const _0x132952=Array['from'](_0x1c79cd['getRanges']())['map'](_0x1e178e=>_0x5e2088['fromRange'](_0x1e178e));_0x404d4d['setSelection'](_0xe62002),_0x5b26a3['commands']['get'](_0x1c1dbd)['refresh'](),_0x4feaad['push']({'forceDefaultExecution':!0x0}),_0x5b26a3['execute'](_0x1c1dbd,..._0x4feaad);const _0x39b927=_0x132952['filter'](_0x3fef4d=>'$graveyard'!=_0x3fef4d['root']['rootName']);_0x39b927['length']>0x0&&_0x404d4d['setSelection'](_0x39b927);for(const _0x5f2b9a of _0x132952)_0x5f2b9a['detach']();});};}['_getCoordsForCells'](_0x5b59d5){const _0x72a0ad=this['editor']['plugins']['get']('TableUtils');let _0x147459=Number['MAX_SAFE_INTEGER'],_0x5c41a0=Number['MIN_SAFE_INTEGER'],_0x1fbcb6=Number['MAX_SAFE_INTEGER'],_0x51d8d9=Number['MIN_SAFE_INTEGER'];for(const _0x6c63f7 of _0x5b59d5){if('$graveyard'==_0x6c63f7['root']['rootName'])continue;const {row:_0x4af337,column:_0x18d4c8}=_0x72a0ad['getCellLocation'](_0x6c63f7),_0x20c706=_0x6c63f7['hasAttribute']('rowspan')?_0x6c63f7['getAttribute']('rowspan')-0x1:0x0,_0x4674aa=_0x6c63f7['hasAttribute']('colspan')?_0x6c63f7['getAttribute']('colspan')-0x1:0x0;_0x147459=_0x4af337<_0x147459?_0x4af337:_0x147459,_0x5c41a0=_0x4af337+_0x20c706>_0x5c41a0?_0x4af337+_0x20c706:_0x5c41a0,_0x1fbcb6=_0x18d4c8<_0x1fbcb6?_0x18d4c8:_0x1fbcb6,_0x51d8d9=_0x18d4c8+_0x4674aa>_0x51d8d9?_0x18d4c8+_0x4674aa:_0x51d8d9;}return{'minRow':_0x147459,'maxRow':_0x5c41a0,'minColumn':_0x1fbcb6,'maxColumn':_0x51d8d9};}['_setupColumnsRowsFixing'](){const _0x52b7f1=this['editor'],_0x18f1c6=_0x52b7f1['plugins']['get']('TrackChangesEditing'),_0x212192=_0x52b7f1['plugins']['get']('TableUtils');_0x52b7f1['model']['document']['on']('change:data',()=>{const _0x1713f9=Array['from'](_0x52b7f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x143c96,data:_0x21bc41}of _0x1713f9){const {group:_0x1ff20a,id:_0x9c0ebd,subType:_0x2c91f1}=_0x18f1c6['_splitMarkerName'](_0x143c96);if('suggestion'!=_0x1ff20a)continue;if(null!=_0x21bc41['oldRange'])continue;const _0x40d073=_0x18f1c6['getSuggestion'](_0x9c0ebd);this['_tablePostFixingSubtypes']['includes'](_0x2c91f1)&&this['_tableSuggestions']['add'](_0x40d073);}},{'priority':'low'});const _0x129fe2=(_0x1cce2f,_0x230675)=>{let _0x353b67=!0x1;const _0x4d5788=_0x230675['createRangeOn'](_0x1cce2f),_0x44d6a7=_0x1cce2f['findAncestor']('table'),_0x201576=_0x212192['getCellLocation'](_0x1cce2f);for(const _0x2a2892 of this['_tableSuggestions']){const _0xd290b0=_0x2a2892['subType'],_0x24683d=_0xd290b0['startsWith']('tablePaste'),_0x569044=_0xd290b0['substr'](_0x24683d?0xa:0x5),_0x37d7a8=_0x569044['toLowerCase'](),_0x510949=_0x37d7a8['substr'](0x0,0x3)+'span',_0x4920d0='min'+_0x569044,_0x3d129c='max'+_0x569044;if(!_0x2a2892['isInContent'])continue;if(_0x44d6a7!=_0x2a2892['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2a2892['isIntersectingWithRange'](_0x4d5788))continue;const _0x252bc0=_0x1cce2f['hasAttribute'](_0x510949)?_0x1cce2f['getAttribute'](_0x510949)-0x1:0x0,_0x58130f=this['_getSuggestionCoords'](_0x2a2892),_0x63bff7=_0x58130f[_0x4920d0],_0x35cad1=_0x58130f[_0x3d129c];_0x63bff7<=_0x201576[_0x37d7a8]&&_0x201576[_0x37d7a8]+_0x252bc0<=_0x35cad1&&(_0x2a2892['addRange'](_0x4d5788),_0x353b67=!0x0);}return _0x353b67;};_0x52b7f1['model']['document']['registerPostFixer'](_0x550848=>{let _0x44a942=!0x1;for(const _0x2d7ec5 of _0x52b7f1['model']['document']['differ']['getChanges']())if('insert'==_0x2d7ec5['type']){if('tableRow'==_0x2d7ec5['name']){for(const _0x302124 of _0x2d7ec5['position']['nodeAfter']['getChildren']())_0x44a942=_0x44a942||_0x129fe2(_0x302124,_0x550848);}else'tableCell'==_0x2d7ec5['name']&&(_0x44a942=_0x44a942||_0x129fe2(_0x2d7ec5['position']['nodeAfter'],_0x550848));}return _0x44a942;});}['_getSuggestionCoords'](_0x41e243){return this['_getCoordsForCells'](_0x41e243['getRanges']()['map'](_0x4e5bdf=>_0x4e5bdf['start']['nodeAfter']));}}function be(_0x36dda8){return Array['from'](new Set(_0x36dda8)['values']());}class vt extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x48298d=this['editor'],_0x546f60=_0x48298d['model']['document']['selection'],_0x107903=_0x48298d['locale'];if(!_0x48298d['plugins']['has']('TableEditing'))return;const _0x4828d4=_0x48298d['plugins']['get']('TrackChangesEditing'),_0x4c9eff=_0x48298d['plugins']['get']('TableUtils'),_0xf04722=_0x48298d['plugins']['get'](It);_0xf04722['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4828d4['enableCommand']('mergeTableCells',()=>{const _0x2803e0=_0x4c9eff['getSelectionAffectedTableCells'](_0x48298d['model']['document']['selection']);_0x48298d['model']['change'](()=>{_0x4828d4['markMultiRangeBlockFormat'](_0x2803e0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x48298d['commands']['get']('mergeTableCells')['on']('execute',(_0x19de65,_0xb295c5)=>{_0x48298d['commands']['get']('trackChanges')['value']&&(_0xb295c5['length']>0x0&&_0xb295c5[_0xb295c5['length']-0x1]&&_0xb295c5[_0xb295c5['length']-0x1]['forceDefaultExecution']||_0x4828d4['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x19de65['stop']());},{'priority':'highest'});for(const _0x4d12bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x192bf3=_0x48298d['commands']['get'](_0x4d12bd);_0x4828d4['enableCommand'](_0x4d12bd,()=>{const _0x3a61df=_0x48298d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f5fff=>_0x2f5fff['is']('element','tableCell')),_0x2e00a7=_0x192bf3['value'];_0x48298d['model']['change'](()=>{_0x4828d4['markMultiRangeBlockFormat']([_0x3a61df,_0x2e00a7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50cade of['splitTableCellVertically','splitTableCellHorizontally']){const _0x561130=_0x48298d['commands']['get'](_0x50cade);_0x4828d4['enableCommand'](_0x50cade,()=>{const _0x4c8261=_0x4c9eff['getSelectionAffectedTableCells'](_0x48298d['model']['document']['selection'])[0x0],_0x52cfa6=_0x4c8261['findAncestor']('table'),{column:_0x49f633,row:_0x2c680c}=_0x4c9eff['getCellLocation'](_0x4c8261);let _0x22b54c=[];if('horizontally'==_0x561130['direction']){const _0x1833bc=_0x4c9eff['createTableWalker'](_0x52cfa6,{'startRow':_0x2c680c,'endRow':_0x2c680c,'includeAllSlots':!0x0});_0x22b54c=Array['from'](_0x1833bc)['map'](_0x1e6362=>_0x1e6362['cell']);}else{const _0x272db3=_0x4c9eff['createTableWalker'](_0x52cfa6,{'column':_0x49f633,'includeAllSlots':!0x0});_0x22b54c=Array['from'](_0x272db3)['map'](_0x592a4d=>_0x592a4d['cell']);}_0x48298d['model']['change'](_0x3eadb6=>{_0x4828d4['markBlockFormat'](_0x3eadb6['createRangeOn'](_0x4c8261),{'commandName':_0x50cade,'commandParams':[]},_0x22b54c,_0x50cade);});});}_0x4828d4['descriptionFactory']['registerDescriptionCallback'](_0x1e57d0=>{if('formatBlock'!=_0x1e57d0['type']&&'formatInline'!=_0x1e57d0['type'])return;const {data:_0xd5e9e7}=_0x1e57d0;return _0xd5e9e7&&'mergeTableCells'==_0xd5e9e7['commandName']?{'type':'format','content':o(_0x107903,'*Merge\x20cells*')}:void 0x0;}),_0x4828d4['descriptionFactory']['registerDescriptionCallback'](_0x37cfb9=>{if('formatBlock'!=_0x37cfb9['type']&&'formatInline'!=_0x37cfb9['type'])return;const {data:_0x4aad5b}=_0x37cfb9;return _0x4aad5b?'splitTableCellVertically'==_0x4aad5b['commandName']?{'type':'format','content':o(_0x107903,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4aad5b['commandName']?{'type':'format','content':o(_0x107903,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x42a10f=_0xf04722['_acceptFormatSuggestionCallbackFactory']();for(const _0x308acd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4828d4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x308acd,'accept',_0x42a10f);for(const _0x45a9d2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4828d4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45a9d2,'accept',_0x42a10f);_0x4828d4['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4134d5=>{_0x48298d['model']['change'](_0x12b458=>{const _0x158aa3=Array['from'](_0x546f60['getRanges']())['map'](_0xcbc9ef=>_0x5e2088['fromRange'](_0xcbc9ef));_0x12b458['setSelection'](_0x4134d5),_0x48298d['commands']['get']('mergeTableCells')['refresh'](),_0x48298d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xa317d6=_0x158aa3['filter'](_0x193da8=>'$graveyard'!=_0x193da8['root']['rootName']);_0xa317d6['length']>0x0&&_0x12b458['setSelection'](_0xa317d6);for(const _0x321a18 of _0x158aa3)_0x321a18['detach']();});});for(const _0x3b468a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a3f10=_0x48298d['commands']['get'](_0x3b468a);_0x2a3f10['on']('set:isEnabled',(_0x4bb799,_0x3074d6,_0xded75c)=>{if(_0xded75c){const _0x8c3efc=_0x48298d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d0f22=>_0x5d0f22['is']('element','tableCell'));this['_areMergableCells'](_0x2a3f10['value'],_0x8c3efc)||(_0x4bb799['return']=!0x1,_0x4bb799['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1bbcfd=this['editor']['commands']['get']('mergeTableCells'),_0x307513=this['editor']['plugins']['get']('TableUtils');if(!_0x1bbcfd['isEnabled'])return!0x1;const _0x36d590=_0x307513['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ac02e of _0x36d590)for(const _0x36aa4e of _0x36d590)if(_0x3ac02e!=_0x36aa4e&&!this['_areMergableCells'](_0x3ac02e,_0x36aa4e))return!0x1;return!0x0;}['_areMergableCells'](_0x64747d,_0x427fd1){const _0x58a380=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14104c=this['editor']['model']['createRangeOn'](_0x64747d),_0xc7b6ac=this['editor']['model']['createRangeOn'](_0x427fd1),_0x38c68d=new Set(),_0x10ab6b=new Set();for(const _0x4c8acf of _0x58a380['getSuggestions']())if(('insertion'==_0x4c8acf['type']||'deletion'==_0x4c8acf['type']||'mergeTableCells'==_0x4c8acf['subType'])&&_0x4c8acf['isInContent']){for(const _0x21c9ab of _0x4c8acf['getRanges']())_0x21c9ab['containsRange'](_0x14104c,!0x0)&&_0x38c68d['add'](_0x4c8acf['type']+':'+_0x4c8acf['author']['id']),_0x21c9ab['containsRange'](_0xc7b6ac,!0x0)&&_0x10ab6b['add'](_0x4c8acf['type']+':'+_0x4c8acf['author']['id']);}if(_0x38c68d['size']!=_0x10ab6b['size'])return!0x1;for(const _0x2b2971 of _0x38c68d)if(!_0x10ab6b['has'](_0x2b2971))return!0x1;return!0x0;}}class Ct extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x5c92a7=this['editor'];if(!_0x5c92a7['plugins']['has']('TableEditing'))return;const _0x462c43=_0x5c92a7['locale'],_0xc61618=_0x5c92a7['plugins']['get']('TrackChangesEditing');_0xc61618['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc61618['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc61618['registerBlockAttribute']('headingRows'),_0xc61618['registerBlockAttribute']('headingColumns'),_0xc61618['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x462c43,'FORMAT_HEADER_ROW')),_0xc61618['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x462c43,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x21430b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x64b21f=this['editor']['plugins']['get']('TableUtils'),_0x412341=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0xbbdc2d({showActiveMarker:_0x3de201=!0x0,setDataAttribute:_0xc5833e=!0x0}={}){return(_0x5b6c4f,_0x448d42,_0x37ecab)=>{const {type:_0x50c29c,id:_0x4d0f74}=_0x21430b['_splitMarkerName'](_0x448d42['markerName']),_0x148dc8=_0x21430b['getSuggestion'](_0x4d0f74),_0x390e27=_0x148dc8['data'];if('formatBlock'!=_0x148dc8['type']||!_0x390e27||'setTableColumnHeader'!=_0x390e27['commandName'])return;if(_0x448d42['item'])return void _0x5b6c4f['stop']();if(!_0x37ecab['consumable']['consume'](_0x448d42['markerRange'],_0x5b6c4f['name']))return;const _0x331498=_0x448d42['markerRange']['start']['nodeAfter'],_0x3f849a=_0x448d42['markerRange']['end']['nodeBefore'],_0x581235=_0x331498['parent']['parent'],{column:_0x127f8b}=_0x64b21f['getCellLocation'](_0x331498),{column:_0x32b60c}=_0x64b21f['getCellLocation'](_0x3f849a);for(let _0x558fe9=_0x127f8b;_0x558fe9<=_0x32b60c;_0x558fe9++){const _0x359b4e=_0x64b21f['createTableWalker'](_0x581235,{'column':_0x558fe9,'includeAllSlots':!0x1});for(const _0x22419b of _0x359b4e){const _0x1cdaf5=_0x22419b['cell'],_0x5b10f9=_0x37ecab['mapper']['toViewElement'](_0x1cdaf5);_0x37ecab['writer']['addClass']('ck-suggestion-marker-'+_0x50c29c,_0x5b10f9),_0xc5833e&&_0x37ecab['writer']['setAttribute']('data-suggestion',_0x4d0f74,_0x5b10f9),_0x37ecab['mapper']['bindElementToMarker'](_0x5b10f9,_0x448d42['markerName']),_0x3de201&&(_0x21430b['activeMarkers']['includes'](_0x448d42['markerName'])?_0x37ecab['writer']['addClass']('ck-suggestion-marker--active',_0x5b10f9):_0x37ecab['writer']['removeClass']('ck-suggestion-marker--active',_0x5b10f9));}}};}_0x21430b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x412341),_0x21430b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x412341),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xbbdc2d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29098b,_0x2e3159,_0x2743cc)=>{_0x2743cc['options']['showSuggestionHighlights']&&_0xbbdc2d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29098b,_0x2e3159,_0x2743cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4ce92f,_0x3b9c04,_0x4e605d)=>{const {type:_0x5440a7,id:_0x27db1f}=_0x21430b['_splitMarkerName'](_0x3b9c04['markerName']),_0x2af8b1=_0x21430b['getSuggestion'](_0x27db1f),_0x528353=_0x2af8b1['data'];if('formatBlock'!=_0x2af8b1['type']||!_0x528353||'setTableColumnHeader'!=_0x528353['commandName'])return;const _0x380a0c=_0x4e605d['mapper']['markerNameToElements'](_0x3b9c04['markerName']);if(_0x380a0c){for(const _0x1663de of _0x380a0c)_0x4e605d['writer']['removeClass']('ck-suggestion-marker-'+_0x5440a7,_0x1663de),_0x4e605d['writer']['removeClass']('ck-suggestion-marker--active',_0x1663de),_0x4e605d['writer']['removeAttribute']('data-suggestion',_0x1663de),_0x4e605d['mapper']['unbindElementFromMarkerName'](_0x1663de,_0x3b9c04['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fceb5=this['editor'],_0x547964=_0x3fceb5['locale'];function _0x40fa89(_0x10df1f){return{'type':'format','content':o(_0x547964,'*Format:*\x20%0',_0x10df1f)};}_0x3fceb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22abf7=>{if('formatBlock'!=_0x22abf7['type'])return;const {data:_0x10dda2}=_0x22abf7;if(_0x10dda2){if('setTableRowHeader'==_0x10dda2['commandName']){const _0x2d788e=_0x10dda2['commandParams'][0x0]['forceValue'];return _0x40fa89(o(_0x547964,_0x2d788e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x10dda2['commandName']){const _0x43be70=_0x10dda2['commandParams'][0x0]['forceValue'];return _0x40fa89(o(_0x547964,_0x43be70?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x121801=>[_0x121801,null]));class _t extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x1b673f=this['editor'];if(!_0x1b673f['plugins']['has']('TableClipboard'))return;const _0x40b123=_0x1b673f['plugins']['get']('TrackChangesEditing'),_0x103cd1=_0x1b673f['plugins']['get']('TableUtils'),_0x25e91d=_0x1b673f['plugins']['get'](It),_0x18a6ef=_0x1b673f['plugins']['get']('TableClipboard');_0x25e91d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1b673f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b673f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ccecb=null;_0x1b673f['model']['on']('insertContent',(_0x301c91,_0x1564fa)=>{const [_0x2fa531,_0xfe17d0]=_0x1564fa,_0x293591=_0x1564fa[_0x1564fa['length']-0x1];_0x293591&&_0x293591['forceDefaultExecution']||_0x40b123['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5d06b4,_0x3d8229,_0x175eca,_0x5a687d,_0x329874){if(_0x3d8229&&!_0x3d8229['is']('documentSelection'))return!0x1;const _0xdc0590=_0x329874['getTableIfOnlyTableInContent'](_0x5d06b4,_0x175eca);if(!_0xdc0590||!Re(_0xdc0590,void 0x0,_0x5a687d))return!0x1;const _0x3e337c=_0x5a687d['getSelectionAffectedTableCells'](_0x175eca['document']['selection']);if(!_0x3e337c['length'])return!0x1;const _0x297a7b=_0x3e337c[0x0]['findAncestor']('table'),_0x58565d=_0x5a687d['getRowIndexes'](_0x3e337c),_0x4d0d6b=_0x5a687d['getColumnIndexes'](_0x3e337c),_0x4a13ca={'startRow':_0x58565d['first'],'endRow':_0x58565d['last'],'startColumn':_0x4d0d6b['first'],'endColumn':_0x4d0d6b['last']};return 0x1==_0x3e337c['length']&&(_0x4a13ca['endRow']+=_0x5a687d['getRows'](_0xdc0590)-0x1,_0x4a13ca['endColumn']+=_0x5a687d['getColumns'](_0xdc0590)-0x1),Re(_0x297a7b,_0x4a13ca,_0x5a687d);}(_0x2fa531,_0xfe17d0,_0x1b673f['model'],_0x103cd1,_0x18a6ef)&&(_0x301c91['stop'](),_0x5ccecb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b673f['model']['change'](()=>{_0x1b673f['model']['insertContent'](_0x1564fa[0x0],_0x1564fa[0x1],_0x1564fa[0x2],{'forceDefaultExecution':!0x0});const _0x204eae=_0xd600d8(),{rowInsertionRanges:_0x915adf,columnInsertionRanges:_0x3203d5,insertionRanges:_0x51c492,deletionRanges:_0x5e8e7d,cells:_0x5613c9}=_0x5ccecb;_0x915adf['length']&&_0x40b123['markMultiRangeInsertion'](_0x915adf,'tablePasteRow',{'tablePasteChainId':_0x204eae}),_0x3203d5['length']&&_0x40b123['markMultiRangeInsertion'](_0x3203d5,'tablePasteColumn',{'tablePasteChainId':_0x204eae}),_0x51c492['length']&&(_0x40b123['markMultiRangeInsertion'](_0x51c492,'tablePaste',{'tablePasteChainId':_0x204eae,'skipNestingCheck':!0x0}),_0x51c492['forEach'](_0x35bea4=>_0x35bea4['detach']?.())),_0x5e8e7d['length']&&(_0x40b123['markMultiRangeDeletion'](_0x5e8e7d,'tablePaste',{'tablePasteChainId':_0x204eae,'skipNestingCheck':!0x0}),_0x5e8e7d['forEach'](_0x5e6218=>_0x5e6218['detach']?.()));const _0x21d27e=_0x40b123['markMultiRangeBlockFormat'](_0x5613c9['map'](({element:_0x634666})=>_0x634666),{'formatGroupId':_0xd600d8()},[],'tablePasteCell',{'tablePasteChainId':_0x204eae});if(_0x21d27e){const _0x4ec7bc=_0x21d27e['getMarkers'](),_0x49ef87=[];for(const {element:_0x4109bc,attributes:_0x3f0713}of _0x5613c9){if(!_0x3f0713)continue;const _0x2e1d53=_0x1b673f['model']['createRangeOn'](_0x4109bc),_0x4388b6=_0x4ec7bc['find'](_0x7a1558=>_0x7a1558['getRange']()['isEqual'](_0x2e1d53));_0x4388b6&&_0x49ef87['push']([_0x4388b6['name'],_0x3f0713]);}_0x49ef87['length']&&_0x21d27e['setAttribute']('markerAttributes',Object['fromEntries'](_0x49ef87));}_0x5ccecb=null;}));},{'priority':_0x3c5031['high']+0xa}),_0x1b673f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2097e8,_0x422ca2)=>{const [_0x5653fc,_0x2c2845,,_0x4e9e61]=_0x422ca2;if(!_0x5ccecb)return;_0x2097e8['stop']();const _0x3de75f=_0x5653fc['cell'],_0x2cf260=_0x2c2845,_0xd04557=ke(_0x3de75f),_0x5034d7=ke(_0x2cf260);_0x2097e8['return']=_0x3de75f;let _0x5247dd=null,_0xf060ea=null;if(_0x5034d7||_0xd04557){if(_0xd04557&&!_0x5034d7){_0x4e9e61['remove'](_0x3de75f['getChild'](0x0));for(const _0x1d2c09 of Array['from'](_0x2cf260['getChildren']()))_0x4e9e61['insert'](_0x1d2c09,_0x3de75f,'end');const _0xe62505=_0x5ccecb['rowInsertionIndexes']['includes'](_0x5653fc['row']),_0x26f0c6=_0x5ccecb['columnInsertionIndexes']['includes'](_0x5653fc['column']);_0xe62505||_0x26f0c6||(_0x5247dd=_0x5e2088['fromRange'](_0x4e9e61['createRangeIn'](_0x3de75f)));}else _0x5034d7&&!_0xd04557&&(_0xf060ea=_0x4e9e61['createRangeIn'](_0x3de75f));}else{const _0x329b1e=_0x4e9e61['createElement']('tableCellSuggestion'),_0x32ecbc=_0x4e9e61['createElement']('tableCellSuggestion');_0x4e9e61['wrap'](_0x4e9e61['createRangeIn'](_0x3de75f),_0x32ecbc),_0x4e9e61['insert'](_0x329b1e,_0x3de75f,0x0);for(const _0x220604 of Array['from'](_0x2cf260['getChildren']()))_0x4e9e61['insert'](_0x220604,_0x329b1e,'end');_0x5247dd=_0x5e2088['fromRange'](_0x4e9e61['createRangeOn'](_0x329b1e)),_0xf060ea=_0x5e2088['fromRange'](_0x4e9e61['createRangeOn'](_0x32ecbc));}const _0x47ba0b=Array['from'](_0x2cf260['getAttributes']())['filter'](([_0x484da7])=>Pe['includes'](_0x484da7));_0x5ccecb['cells']['push']({'element':_0x3de75f,'attributes':_0x47ba0b['length']?Object['fromEntries'](_0x47ba0b):null}),_0x5247dd&&_0x5ccecb['insertionRanges']['push'](_0x5247dd),_0xf060ea&&_0x5ccecb['deletionRanges']['push'](_0xf060ea);},{'priority':'high'}),_0x103cd1['on']('insertColumns',(_0x14eade,_0x5c4cd8)=>{const [_0x12f37a,_0x221fb2={}]=_0x5c4cd8;if(!_0x5ccecb)return;const _0x1bbfcf=_0x221fb2['at']||0x0,_0xff7405=_0x221fb2['columns']||0x1;_0x5ccecb['columnInsertionIndexes']=new Array(_0xff7405)['fill'](_0x1bbfcf)['map']((_0x567cdf,_0x8970a0)=>_0x567cdf+_0x8970a0);for(const {cell:_0x4e5368}of _0x103cd1['createTableWalker'](_0x12f37a,{'startColumn':_0x1bbfcf,'endColumn':_0x1bbfcf+_0xff7405-0x1}))_0x5ccecb['columnInsertionRanges']['push'](_0x1b673f['model']['createRangeOn'](_0x4e5368));},{'priority':'low'}),_0x103cd1['on']('insertRows',(_0x1f93ea,_0x16c74d)=>{const [_0x57c69c,_0x42c6fe={}]=_0x16c74d;if(!_0x5ccecb)return;const _0x14e20f=_0x42c6fe['at']||0x0,_0xb103fc=_0x42c6fe['rows']||0x1;_0x5ccecb['rowInsertionIndexes']=new Array(_0xb103fc)['fill'](_0x14e20f)['map']((_0x448ce3,_0x5723fc)=>_0x448ce3+_0x5723fc);for(const {cell:_0x5a0ed4}of _0x103cd1['createTableWalker'](_0x57c69c,{'startRow':_0x14e20f,'endRow':_0x14e20f+_0xb103fc-0x1}))_0x5ccecb['rowInsertionRanges']['push'](_0x1b673f['model']['createRangeOn'](_0x5a0ed4));},{'priority':'low'}),_0x40b123['descriptionFactory']['registerDescriptionCallback'](_0x5cff03=>{if(_0x5cff03['subType']&&_0x5cff03['subType']['startsWith']('tablePaste'))return _0x5cff03['previous']?{}:{'type':'insertion','content':o(_0x1b673f['locale'],'*Replace\x20table\x20cells*')};});const _0xb96cb6=()=>!0x1;for(const _0x400ba8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x40b123['_suggestionFactory']['registerCustomCallback']('insertion',_0x400ba8,'join',_0xb96cb6),_0x40b123['_suggestionFactory']['registerCustomCallback']('deletion',_0x400ba8,'join',_0xb96cb6),_0x40b123['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x400ba8,'join',_0xb96cb6);_0x40b123['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xb96cb6),_0x40b123['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4d5cf5,_0x142b3f,_0x466500)=>{const _0x1dfd42=_0x4d5cf5['map'](_0x60ace8=>_0x60ace8['getContainedElement']())['filter'](_0x4f14a1=>_0x4f14a1),_0x24d7a9=new Map(_0x1dfd42['map'](_0x1aaae5=>[_0x1aaae5,null]));if(_0x5ccecb){for(const {element:_0xc108c1,attributes:_0x4aebac}of _0x5ccecb['cells'])_0x4aebac&&_0x24d7a9['set'](_0xc108c1,_0x4aebac);}else{if(_0x466500&&_0x466500['markerAttributes'])for(const [_0x32ce11,_0x1e07d6]of Object['entries'](_0x466500['markerAttributes'])){const _0x28c91c=_0x1b673f['model']['markers']['get'](_0x32ce11),_0x29617f=_0x28c91c?_0x28c91c['getRange']()['getContainedElement']():null;_0x29617f&&_0x24d7a9['set'](_0x29617f,_0x1e07d6);}}_0x1b673f['model']['change'](_0x529ea0=>{for(const [_0x3f4b59,_0x413e16]of _0x24d7a9)_0x529ea0['setAttributes']({...we,..._0x413e16},_0x3f4b59);});});const _0x3584ee=(_0x14f0f6,_0xcb8b5c)=>{_0x40b123['_suggestionFactory']['registerCustomCallback'](_0x14f0f6,'tablePaste',_0xcb8b5c,(_0x2fecf5,_0x5277b6,_0xd275a6)=>{_0x1b673f['model']['change'](_0xa7a65e=>{const _0x2fb779=[];for(const _0x33ddd3 of _0x2fecf5){const _0x513cef=_0x33ddd3['start']['nodeAfter'];_0x513cef['is']('element','tableCellSuggestion')&&_0x2fb779['push'](_0x513cef);}_0x40b123['_suggestionFactory']['getSuggestionCallback'](_0x14f0f6,null,_0xcb8b5c)(_0x2fecf5,_0x5277b6,_0xd275a6);for(const _0x35f22d of _0x2fb779)'$graveyard'!=_0x35f22d['root']['rootName']&&_0xa7a65e['unwrap'](_0x35f22d);});});};_0x3584ee('insertion','accept'),_0x3584ee('insertion','discard'),_0x3584ee('deletion','accept'),_0x3584ee('deletion','discard'),_0x40b123['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x575cd1=>{const _0x27ef6e=_0x575cd1['map'](_0x1e7e94=>_0x1e7e94['getContainedElement']()),_0x264ca5=_0x27ef6e[0x0]['findAncestor']('table'),{minRow:_0x206929,maxRow:_0x476e93}=_0x25e91d['_getCoordsForCells'](_0x27ef6e);_0x103cd1['removeRows'](_0x264ca5,{'at':_0x206929,'rows':_0x476e93-_0x206929+0x1});}),_0x40b123['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x10fae2=>{const _0x1c0e71=_0x10fae2['map'](_0x26c99e=>_0x26c99e['getContainedElement']()),_0x594528=_0x1c0e71[0x0]['findAncestor']('table'),{minColumn:_0x10cef3,maxColumn:_0x179370}=_0x25e91d['_getCoordsForCells'](_0x1c0e71);_0x103cd1['removeColumns'](_0x594528,{'at':_0x10cef3,'columns':_0x179370-_0x10cef3+0x1});});const _0x5c246b=(_0x593f04,_0x3fe583)=>{if(!_0x3fe583['subType']||!_0x3fe583['subType']['startsWith']('tablePaste'))return;const _0xf4ec49=_0x3fe583['attributes']['tablePasteChainId'],_0x39132e=_0x40b123['getSuggestions']()['filter'](_0xf159ab=>_0xf159ab['isInContent']&&_0xf159ab['attributes']&&_0xf159ab['attributes']['tablePasteChainId']==_0xf4ec49);_0x39132e['length']&&_0x3fe583['getAllAdjacentSuggestions']()['length']!=_0x39132e['length']&&_0x39132e['reduce']((_0x42c04f,_0xfe3fad)=>(_0x42c04f['next']=_0xfe3fad,_0xfe3fad['previous']=_0x42c04f,_0xfe3fad));};function _0x952758(_0x38bf8c,_0x24d328=!0x0){const {id:_0x5dce20,authorId:_0x96054c}=_0x40b123['_splitMarkerName'](_0x38bf8c['markerName']),_0x242ca8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d1fdc=_0x40b123['activeMarkers']['includes'](_0x38bf8c['markerName']);return _0x3d1fdc&&_0x242ca8['push']('ck-suggestion-marker--active'),{'classes':_0x242ca8,'attributes':{'data-suggestion':_0x5dce20,'data-author-id':_0x96054c},'priority':_0x3d1fdc&&_0x24d328?0xbc2:0xbb8};}_0x40b123['on']('suggestionLoaded',_0x5c246b,{'priority':'high'}),_0x40b123['on']('suggestionUnloaded',_0x5c246b,{'priority':'high'}),_0x1b673f['model']['document']['registerPostFixer'](()=>{let _0x34f248=!0x1;const _0x290190=Array['from'](_0x1b673f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38c3e5,data:_0x243f9a}of _0x290190){const {group:_0x11ace4,type:_0x220c37,id:_0x32bd5c}=_0x40b123['_splitMarkerName'](_0x38c3e5);if('suggestion'!=_0x11ace4||'deletion'!=_0x220c37||_0x243f9a['oldRange'])continue;if(!_0x40b123['hasSuggestion'](_0x32bd5c))continue;const _0x3adfa1=_0x40b123['getSuggestion'](_0x32bd5c)['getRanges'](),_0x2aec9a=_0x1b673f['plugins']['get']('Users')['me'];for(const _0x59e0fd of _0x40b123['getSuggestions']()){if(!_0x59e0fd['isInContent']||_0x59e0fd['author']!=_0x2aec9a)continue;if('formatBlock'!=_0x59e0fd['type']||'tablePasteCell'!=_0x59e0fd['subType'])continue;if(_0x59e0fd['getRanges']()['every'](_0xe09469=>_0x3adfa1['some'](_0xd65fac=>_0xd65fac['containsRange'](_0xe09469,!0x0)))){for(const _0x2b98d3 of _0x59e0fd['getAllAdjacentSuggestions']())_0x2b98d3['isInContent']&&(_0x2b98d3['discard'](),_0x34f248=!0x0);}}}return _0x34f248;}),_0x1b673f['model']['document']['registerPostFixer'](_0x585d3d=>{const _0x514d51=_0x1b673f['commands']['get']('redo');if(!_0x514d51||!_0x514d51['_createdBatches']['has'](_0x585d3d['batch']))return!0x1;let _0x1d5836=!0x1;const _0x171d5e=_0x1b673f['plugins']['get']('Users')['me'],_0x5c4638=_0x1b673f['model']['document']['differ']['getChanges'](),_0x74b484=Array['from'](_0x1b673f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2d5d7b,data:_0x185fb3})=>{const {group:_0x692c03,subType:_0x1b622f,authorId:_0x2989ec}=_0x40b123['_splitMarkerName'](_0x2d5d7b);return'suggestion'==_0x692c03&&'tablePaste'==_0x1b622f&&_0x2989ec==_0x171d5e['id']&&!_0x185fb3['oldRange'];});for(const _0x1e40de of _0x5c4638){if('insert'!=_0x1e40de['type']||'tableCellSuggestion'!=_0x1e40de['name']||0x1!=_0x1e40de['length'])continue;const _0x57e068=_0x585d3d['createRange'](_0x1e40de['position'],_0x1e40de['position']['getShiftedBy'](0x1));if(!_0x74b484['find'](({data:_0x3ea67d})=>_0x3ea67d['newRange']['isEqual'](_0x57e068))){for(const {name:_0x44a243,data:_0x18cf62}of _0x74b484)if(_0x57e068['containsRange'](_0x18cf62['newRange'])){_0x585d3d['updateMarker'](_0x44a243,{'range':_0x57e068}),_0x1d5836=!0x0;break;}}}return _0x1d5836;}),_0x1b673f['model']['document']['registerPostFixer'](_0x3c29a9=>{let _0x11e4e7=!0x1;const _0x5cde3b=_0x1b673f['plugins']['get']('Users')['me'],_0x37f1da=_0x40b123['getSuggestions']()['filter'](_0x32dc59=>_0x32dc59['isInContent']&&_0x32dc59['author']==_0x5cde3b),_0x325a64=new Set(),_0x45556d=new Set();for(const _0x241d17 of _0x37f1da)if('tablePaste'==_0x241d17['subType'])for(const _0x31b1b3 of _0x241d17['getMarkers']()){const _0x4d2cd2=_0x31b1b3['getRange']()['getContainedElement']();if(_0x4d2cd2){if(_0x4d2cd2['is']('element','tableCellSuggestion')&&ke(_0x4d2cd2)){_0x241d17['removeMarker'](_0x31b1b3['name']),_0x325a64['add'](_0x4d2cd2),_0x11e4e7=!0x0;const _0x3eb1c5=_0x4d2cd2['nextSibling'],_0x1eca5e=_0x4d2cd2['previousSibling'],_0x281ffa=_0x3eb1c5&&_0x3eb1c5['is']('element','tableCellSuggestion'),_0x2224b0=_0x1eca5e&&_0x1eca5e['is']('element','tableCellSuggestion');_0x281ffa&&!_0x325a64['has'](_0x3eb1c5)&&_0x45556d['add'](_0x3eb1c5),_0x2224b0&&!_0x325a64['has'](_0x1eca5e)&&_0x45556d['add'](_0x1eca5e);}else _0x4d2cd2['is']('element','paragraph')&&_0x4d2cd2['isEmpty']&&(_0x241d17['removeMarker'](_0x31b1b3['name']),_0x11e4e7=!0x0);}}else{if('tablePasteCell'==_0x241d17['subType']){if(!_0x241d17['attributes']||!_0x241d17['attributes']['tablePasteChainId'])continue;const _0x4b32d2=_0x241d17['attributes']['markerAttributes'];if(_0x4b32d2&&Object['keys'](_0x4b32d2)['length'])continue;const _0x2fbbcf=_0x241d17['attributes']['tablePasteChainId'];let _0x2ec213=!0x0,_0x1995e2=!0x0;for(const _0x489aa1 of _0x37f1da)if(_0x489aa1['subType']&&_0x489aa1['subType']['startsWith']('tablePaste')){if(!_0x489aa1['attributes']['tablePasteChainId']){_0x1995e2=!0x1;break;}if(_0x489aa1['id']!=_0x241d17['id']&&_0x489aa1['attributes']['tablePasteChainId']==_0x2fbbcf){_0x2ec213=!0x1;break;}}_0x1995e2&&_0x2ec213&&(_0x241d17['removeMarkers'](),_0x11e4e7=!0x0);}}for(const _0x12f6ff of _0x325a64)_0x3c29a9['remove'](_0x12f6ff);for(const _0x1cdde4 of _0x45556d)_0x3c29a9['unwrap'](_0x1cdde4);return _0x11e4e7;}),_0x1b673f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x67a48c=>_0x952758(_0x67a48c),'converterPriority':'high'}),_0x1b673f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x450b28,_0x25bf16)=>_0x25bf16['options']['showSuggestionHighlights']?_0x952758(_0x450b28,!0x1):null,'converterPriority':'high'});const _0x165ad0=_0x1b673f['editing']['view'];this['listenTo'](_0x165ad0['document'],'clipboardOutput',(_0x4f2c0e,_0x40c078)=>{const _0x3eb353=[];for(const _0x229262 of _0x165ad0['createRangeIn'](_0x40c078['content'])['getItems']())_0x229262['is']('element','suggestion-td')&&_0x3eb353['push'](_0x229262);_0x165ad0['change'](_0x26f8cb=>{for(const _0x207de5 of _0x3eb353)_0x26f8cb['move'](_0x26f8cb['createRangeIn'](_0x207de5),_0x26f8cb['createPositionBefore'](_0x207de5)),_0x26f8cb['remove'](_0x207de5);});});}}function ke(_0x48967d){if(_0x48967d['isEmpty'])return!0x0;const _0x33385b=_0x48967d['getChild'](0x0);return _0x33385b['is']('element','paragraph')&&_0x33385b['isEmpty'];}function Re(_0x11e356,_0x186214={},_0x21eabb){for(const {isAnchor:_0x253824,cellHeight:_0x2e8552,cellWidth:_0x3358fd}of _0x21eabb['createTableWalker'](_0x11e356,{'includeAllSlots':!0x0,..._0x186214}))if(!_0x253824||0x1!=_0x2e8552||0x1!=_0x3358fd)return!0x1;return!0x0;}class Nt extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x27f8b4=this['editor']['plugins']['get']('TrackChangesEditing');_0x27f8b4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x27f8b4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x27f8b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27f8b4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x27f8b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x27f8b4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12a355,_0x35608c){const _0x444563=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b8900=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x43956f=_0x35608c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7a4ea0=_0x1b8900['getColumnGroupElement'](_0x43956f);let _0x180cb0=_0x7a4ea0?_0x1b8900['getTableColumnsWidths'](_0x7a4ea0):null,_0x4a5d09=_0x43956f['getAttribute']('tableWidth')||null;const _0xd59ec2=_0x35608c['tableWidth']||_0x4a5d09,_0x3d5aa3=_0x35608c['columnWidths']||_0x180cb0,_0x395642=this['editor']['plugins']['get']('Users')['me'];for(const _0x244eda of _0x444563['getSuggestions']()){const _0x161576=_0x244eda['getContainedElement']();if('resizeTable'===_0x244eda['subType']&&_0x161576===_0x43956f){_0x244eda['author']!==_0x395642&&_0x244eda['discard']();const _0xe4177f=_0x244eda['data']['commandParams'];_0x4a5d09=_0xe4177f[0x0]['tableWidth'],_0x180cb0=_0xe4177f[0x0]['columnWidths'];break;}}_0x12a355({'table':_0x43956f,'tableWidth':_0xd59ec2,'columnWidths':_0x3d5aa3}),_0x444563['markBlockFormat'](_0x43956f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4a5d09,'columnWidths':_0x180cb0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcccc2){if('formatBlock'!=_0xcccc2['type']&&'formatInline'!=_0xcccc2['type'])return;const {data:_0x27ca7b}=_0xcccc2;if(_0x27ca7b&&'resizeTable'===_0x27ca7b['formatGroupId']){const _0x5f26e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5f26e)};}}}class Dt extends _0x3b500e{['afterInit'](){const _0x68d239=this['editor'];_0x68d239['plugins']['has']('Template')&&_0x68d239['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3b500e{['afterInit'](){const _0x2e3117=this['editor'];if(!_0x2e3117['commands']['get']('insertTableOfContents'))return;_0x2e3117['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x81b81b=_0x2e3117['plugins']['get']('TrackChangesEditing'),_0x4bee0f=_0x2e3117['locale'];_0x81b81b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c9072=>o(_0x4bee0f,'ELEMENT_TABLE_OF_CONTENTS',_0x4c9072));}}class $t extends _0x3b500e{['afterInit'](){const _0x2a1fd2=this['editor'];if(!_0x2a1fd2['plugins']['has']('Title'))return;const _0x386398=_0x2a1fd2['plugins']['get']('TrackChangesEditing');_0x386398['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2a1fd2['locale'],'ELEMENT_TITLE')),_0x2a1fd2['model']['document']['registerPostFixer'](_0x587213=>{let _0x49adcb=!0x1;const _0x413e5e=Array['from'](_0x2a1fd2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e93b2,data:_0x30f4db}of _0x413e5e){const {group:_0x364130}=_0x386398['_splitMarkerName'](_0x5e93b2);if('suggestion'!==_0x364130||!_0x30f4db['newRange'])continue;const _0x42d732=_0x30f4db['newRange'],_0x15f338=_0x42d732['end']['nodeBefore'];if(!_0x15f338||!_0x15f338['is']('element','title-content'))continue;if(!_0x42d732['start']['isTouching'](_0x42d732['end']))continue;const _0x41d6e5=_0x2a1fd2['model']['schema']['getNearestSelectionRange'](_0x42d732['end'],'forward');if(_0x41d6e5&&_0x41d6e5['isCollapsed']){const _0x3fb85c=_0x587213['createRange'](_0x42d732['start'],_0x41d6e5['start']);_0x3fb85c['isEqual'](_0x42d732)||(_0x587213['updateMarker'](_0x5e93b2,{'range':_0x3fb85c}),_0x49adcb=!0x0);}_0x49adcb||(_0x587213['removeMarker'](_0x5e93b2),_0x49adcb=!0x0);}return _0x49adcb;});}}class Bt extends _0x3b500e{['afterInit'](){const _0x32c9d6=this['editor'],_0x3750a0=_0x32c9d6['plugins']['get']('TrackChangesEditing');_0x32c9d6['plugins']['has']('UndoEditing')&&(_0x3750a0['enableCommand']('undo'),_0x3750a0['enableCommand']('redo'));}}class xt extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x5648bb=this['editor'];if(!_0x5648bb['plugins']['has']('TableCaptionEditing'))return;_0x5648bb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3b500e{['tableProperties'];['tableCellProperties'];constructor(_0x2e2b14){super(_0x2e2b14),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x892560=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f80cd of this['tableProperties'])_0x892560['enableCommand'](_0x3f80cd,(_0x502f9c,_0x430485)=>{const _0x969220=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f80cd,[_0x969220],this['tableProperties'],'tableProperties',_0x502f9c,_0x430485);});_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x892560['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x50f0bc,_0x4d152b)=>this['handleDiscardAction'](this['tableProperties'],_0x50f0bc,_0x4d152b)),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2deb82 of this['tableCellProperties'])_0x892560['enableCommand'](_0x2deb82,(_0x597cb6,_0x4e743f)=>{const _0x57c4ea=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2deb82,_0x57c4ea,this['tableCellProperties'],'tableCellProperties',_0x597cb6,_0x4e743f);});_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x892560['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x28a0e5,_0x3210d3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x28a0e5,_0x3210d3)),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x892560['descriptionFactory']['registerDescriptionCallback'](_0x5e6167=>this['handleSuggestionDescription'](_0x5e6167));}['_handlePropertyChange'](_0x1ab4cd,_0x42757c,_0x4aa957,_0xe09f49,_0x3090ba,_0x380cdd){const _0x3ff1a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x380cdd['batch'],()=>{for(const _0x5ba1e6 of _0x42757c){if(this['_getSuggestion'](_0x5ba1e6,_0xe09f49))_0x3090ba(_0x380cdd);else{const _0x596842={};for(const _0x345767 of _0x4aa957){const _0x4460b1=_0x5ba1e6['getAttribute'](_0x345767);void 0x0!==_0x4460b1&&(_0x596842[_0x345767]=_0x4460b1);}_0x3090ba(_0x380cdd),_0x3ff1a2['markBlockFormat'](_0x5ba1e6,{'commandParams':[_0x596842]},[],_0xe09f49);}}});}['handleDiscardAction'](_0x1b1574,_0x15998a,_0x5053a5){const _0x2412a3=_0x15998a[0x0]['start']['nodeAfter'],_0x279678=_0x5053a5['commandParams'][0x0];this['editor']['model']['change'](_0x36ea35=>{for(const _0x1e5113 of _0x1b1574)void 0x0!==_0x279678[_0x1e5113]?_0x36ea35['setAttribute'](_0x1e5113,_0x279678[_0x1e5113],_0x2412a3):_0x36ea35['removeAttribute'](_0x1e5113,_0x2412a3);});}['handleSuggestionDescription'](_0x2d61fc){if(_0x2d61fc['data'])switch(_0x2d61fc['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x467dea,_0x2ed1eb){const _0x28dc1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3664b3 of _0x28dc1['getSuggestions']({'skipNotAttached':!0x0})){const _0x26a8d4=_0x3664b3['getContainedElement']();if(_0x3664b3['subType']===_0x2ed1eb&&_0x26a8d4===_0x467dea)return _0x3664b3;}return null;}}const m='$elementName';class p extends _0x3b500e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x35af3d,_0x44c7e8,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x46783a){function _0x4e7d3d(_0x5eb701){return _0x5eb701['map'](_0x55a9ad=>String['fromCharCode'](_0x55a9ad))['join']('');}super(_0x46783a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a474d,_0x257ffd,_0x5a47da,_0x150b6b)=>{this['_model']['change'](()=>{for(const _0xa35050 of[..._0x150b6b,..._0x5a47da])this['_model']['markers']['has'](_0xa35050)&&_0x46783a['editing']['reconvertMarker'](_0xa35050);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x46783a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x46783a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x46783a['config']['get']('trackChanges.trackFormatChanges'),_0x46783a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x46783a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x46783a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4e7d3d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4e7d3d([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x32]);}['init'](){const _0x23d9ec=this['editor'],_0x2b8101=(_0x11ad08,_0x4d9eca)=>{if('attribute'!=_0x11ad08)return'ck-suggestion-marker-'+_0x11ad08;const _0x3bf745=_0x4d9eca['split']('|')[0x0];return this['_isBlockAttribute'](_0x3bf745)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23d9ec['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5a63b3=>{const {id:_0x49bb84,authorId:_0x3032da,type:_0x504df3,subType:_0x53bbe5}=this['_splitMarkerName'](_0x5a63b3['markerName']),_0x160fbd=['ck-suggestion-marker',_0x2b8101(_0x504df3,_0x53bbe5)];let _0x3c0a9b=0xbb8;return this['activeMarkers']['includes'](_0x5a63b3['markerName'])&&(_0x160fbd['push']('ck-suggestion-marker--active'),_0x3c0a9b=0xbc2),'deletion'==_0x504df3&&(_0x3c0a9b+=0x5),{'classes':_0x160fbd,'attributes':{'data-suggestion':_0x49bb84,'data-author-id':_0x3032da},'priority':_0x3c0a9b};}}),_0x23d9ec['conversion']['for']('dataDowncast')['add'](_0x596330=>{_0x596330['on']('addMarker:suggestion',(_0x89a7fd,_0x3e6548,_0x45b180)=>{if(!_0x45b180['options']['showSuggestionHighlights'])return;const _0x5e38be=_0x3e6548['item'];if(!_0x5e38be)return;const _0x31b8b4=_0x45b180['mapper']['toViewElement'](_0x5e38be);_0x23d9ec['model']['schema']['isObject'](_0x5e38be)&&_0x31b8b4&&!_0x31b8b4['getCustomProperty']('widget')&&_0x31b8b4['is']('containerElement')&&_0xd0a2a2(_0x31b8b4,_0x45b180['writer']);},{'priority':'high'});}),_0x23d9ec['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x6fcae,_0x21697c)=>{if(!_0x21697c['options']['showSuggestionHighlights'])return null;const {type:_0x4efce9,subType:_0x1a3105}=this['_splitMarkerName'](_0x6fcae['markerName']);return{'classes':['ck-suggestion-marker',_0x2b8101(_0x4efce9,_0x1a3105)],'priority':0xbb8};}});const _0x46bdaa=({showActiveMarkers:_0x3e5b00=!0x0,isAttributeSuggestion:_0x550ef3=!0x1}={})=>(_0x151459,_0x847ffa,_0x17dae8)=>{if(!_0x847ffa['item'])return;const {id:_0x228e4c,authorId:_0x2aad0a}=this['_splitMarkerName'](_0x847ffa['markerName']);if(_0x550ef3){const _0x116178=this['_suggestions']['get'](_0x228e4c),_0x50b448=this['_getAttributeKey'](_0x116178);if(!this['_isBlockAttribute'](_0x50b448))return;}if(_0x847ffa['item']['is']('selection'))return void _0x17dae8['consumable']['consume'](_0x847ffa['item'],_0x151459['name']);const _0x2f3cc5=_0x17dae8['mapper']['toViewElement'](_0x847ffa['item']);if(_0x847ffa['item']['is']('element')&&_0x23d9ec['model']['schema']['isBlock'](_0x847ffa['item'])&&!_0x2f3cc5['getCustomProperty']('addHighlight')){_0x17dae8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2f3cc5),_0x17dae8['writer']['setAttribute']('data-suggestion',_0x228e4c,_0x2f3cc5),_0x17dae8['writer']['setAttribute']('data-author-id',_0x2aad0a,_0x2f3cc5),_0x17dae8['mapper']['bindElementToMarker'](_0x2f3cc5,_0x847ffa['markerName']),_0x3e5b00&&(this['activeMarkers']['includes'](_0x847ffa['markerName'])?_0x17dae8['writer']['addClass']('ck-suggestion-marker--active',_0x2f3cc5):_0x17dae8['writer']['removeClass']('ck-suggestion-marker--active',_0x2f3cc5));for(const _0x11d976 of _0x23d9ec['model']['createRangeIn'](_0x847ffa['item'])['getItems']())_0x17dae8['consumable']['consume'](_0x11d976,_0x151459['name']);_0x17dae8['consumable']['consume'](_0x847ffa['item'],_0x151459['name']);}};_0x23d9ec['conversion']['for']('dataDowncast')['add'](_0x36e8a3=>{_0x36e8a3['on']('addMarker:suggestion:formatBlock',(_0x27f4cc,_0x3ac3f9,_0x40e871)=>{_0x40e871['options']['showSuggestionHighlights']&&_0x46bdaa({'showActiveMarkers':!0x1})(_0x27f4cc,_0x3ac3f9,_0x40e871);},{'priority':'highest'});}),_0x23d9ec['conversion']['for']('dataDowncast')['add'](_0x1d9ed0=>{_0x1d9ed0['on']('addMarker:suggestion:attribute',(_0x39eaa6,_0x1e5955,_0x3e0495)=>{_0x3e0495['options']['showSuggestionHighlights']&&_0x46bdaa({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39eaa6,_0x1e5955,_0x3e0495);},{'priority':'highest'});}),_0x23d9ec['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x44f736,_0x1b4de8)=>_0x1b4de8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x44f736['substr'](0xb)}}),_0x23d9ec['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2c6cc1,{writer:_0x50312e})=>{let _0x52ba25='suggestion:'+_0x2c6cc1['getAttribute']('suggestion-type')+':'+_0x2c6cc1['getAttribute']('id');return _0x2c6cc1['getAttribute']('marker-count')&&(_0x52ba25+=':'+_0x2c6cc1['getAttribute']('marker-count')),_0x50312e['createElement']('$marker',{'data-name':_0x52ba25});}}),_0x23d9ec['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0xecad69=>{_0xecad69['on']('addMarker:suggestion:formatBlock',_0x46bdaa(),{'priority':'high'});}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0x5a2f36=>{_0x5a2f36['on']('addMarker:suggestion:attribute',_0x46bdaa({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0x47bf74=>{_0x47bf74['on']('removeMarker:suggestion:formatBlock',(_0x29d51c,_0x102653,_0x28a537)=>{const _0x591190=_0x28a537['mapper']['markerNameToElements'](_0x102653['markerName']);if(_0x591190){for(const _0x1a0252 of _0x591190)_0x1a0252['getCustomProperty']('addHighlight')||(_0x28a537['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a0252),_0x28a537['writer']['removeAttribute']('data-suggestion',_0x1a0252),_0x28a537['writer']['removeAttribute']('data-author-id',_0x1a0252),_0x28a537['mapper']['unbindElementFromMarkerName'](_0x1a0252,_0x102653['markerName']));}},{'priority':'high'});}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0x9520ac=>{_0x9520ac['on']('removeMarker:suggestion:attribute',(_0x5dfc42,_0x2791c2,_0x1542db)=>{const _0x10b5c3=_0x1542db['mapper']['markerNameToElements'](_0x2791c2['markerName']);if(!_0x10b5c3)return;const {id:_0x4fec94}=this['_splitMarkerName'](_0x2791c2['markerName']),_0x37fdf3=this['_suggestions']['get'](_0x4fec94),_0x3b523c=this['_getAttributeKey'](_0x37fdf3);if(this['_isBlockAttribute'](_0x3b523c)){for(const _0x4f1d0f of _0x10b5c3)_0x4f1d0f['getCustomProperty']('addHighlight')||(_0x1542db['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f1d0f),_0x1542db['writer']['removeAttribute']('data-suggestion',_0x4f1d0f),_0x1542db['writer']['removeAttribute']('data-author-id',_0x4f1d0f),_0x1542db['mapper']['unbindElementFromMarkerName'](_0x4f1d0f,_0x2791c2['markerName']));}},{'priority':'high'});}),_0x23d9ec['model']['document']['registerPostFixer'](_0x1e7432=>{let _0x44a2e1=!0x1;const _0x3154c7=Array['from'](_0x23d9ec['model']['document']['differ']['getChangedMarkers']()),_0xfb85d9=new Set();for(const {name:_0xecfad1,data:_0x30499c}of _0x3154c7){const {group:_0x52b3b5,type:_0x2400b7,subType:_0x11c65e,id:_0x2446e2}=this['_splitMarkerName'](_0xecfad1);if('suggestion'!==_0x52b3b5)continue;const _0x190742=this['_suggestions']['get'](_0x2446e2);if(null!=_0x30499c['newRange']){'formatInline'==_0x2400b7&&(_0x44a2e1=_0x44a2e1||Ut(_0x30499c['newRange'],_0xecfad1,_0x1e7432,_0x23d9ec['model']['schema']));const _0x5b9221='attribute'==_0x2400b7&&this['_isBlockAttribute'](_0x11c65e['split']('|')[0x0]);if(_0x30499c['newRange']['isCollapsed']||'$graveyard'==_0x30499c['newRange']['root']['rootName']||'formatBlock'==_0x2400b7&&!Ft(_0x30499c['newRange'])||_0x5b9221&&!Ft(_0x30499c['newRange'])||'deletion'==_0x2400b7&&!(!Vt(_0x673592=_0x30499c['newRange'])&&!function(_0x19933c){return _0x19933c['start']['parent']==_0x19933c['end']['nodeBefore']&&_0x19933c['start']['isAtEnd'];}(_0x673592)))_0x1e7432['removeMarker'](_0xecfad1),_0x44a2e1=!0x0;else{if(!_0x190742||!_0x190742['isInContent'])continue;if(_0x30499c['newRange']&&_0x30499c['oldRange']&&_0x30499c['newRange']['isEqual'](_0x30499c['oldRange']))continue;_0xfb85d9['add'](_0x190742);}}}var _0x673592;return _0xfb85d9['size']>0x0&&(_0x44a2e1=!!this['_joinWithAdjacentSuggestions'](_0xfb85d9)||_0x44a2e1),_0x44a2e1;}),_0x23d9ec['model']['document']['registerPostFixer'](_0x924631=>{let _0x4f1003=!0x1;for(const _0x16bd9f of _0x23d9ec['model']['document']['differ']['getChanges']())if('insert'==_0x16bd9f['type'])for(const _0x7db583 of this['_suggestions']['values']()){if(_0x7db583['isMultiRange']||!_0x7db583['isInContent'])continue;const _0x2070fd='formatBlock'==_0x7db583['type'],_0xda0d85=this['_getAttributeKey'](_0x7db583),_0x5538a4=_0xda0d85&&this['_isBlockAttribute'](_0xda0d85);if(!_0x2070fd&&!_0x5538a4)continue;const _0x52b241=_0x7db583['getFirstRange']();if(_0x52b241['start']['parent']!=_0x52b241['end']['parent']&&!_0x52b241['end']['isAtEnd']){const _0x496cd1=_0x23d9ec['model']['createPositionAt'](_0x52b241['start']['nodeAfter'],'end'),_0x4edff4=_0x23d9ec['model']['createRange'](_0x52b241['start'],_0x496cd1);_0x924631['updateMarker'](_0x7db583['getFirstMarker'](),{'range':_0x4edff4}),_0x4f1003=!0x0;}}return _0x4f1003;}),_0x23d9ec['model']['document']['registerPostFixer'](_0x443919=>this['_processAttributeChanges'](_0x443919)),_0x23d9ec['model']['document']['registerPostFixer'](_0x146dac=>!_0x146dac['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x146dac)),_0x23d9ec['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23d9ec['model']['document']['on']('change:data',(_0x4205fd,_0x5f3063)=>{if(!_0x5f3063['isLocal']||_0x5f3063['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f6d75=_0x23d9ec['model']['document']['differ']['getChanges']();if(0x0==_0x1f6d75['length'])return;const _0xd870e3=[],_0x5c000b=_0x1f6d75['filter'](_0x468c45=>'attribute'==_0x468c45['type']),_0x3ded2a=_0x1f6d75['filter'](_0x4718ea=>'insert'==_0x4718ea['type']&&'$text'!=_0x4718ea['name']);for(const _0x3079c5 of _0x5c000b)this['_isRegisteredAttribute'](_0x3079c5['attributeKey'])&&_0xd870e3['push']({'key':_0x3079c5['attributeKey'],'newValue':_0x3079c5['attributeNewValue'],'oldValue':_0x3079c5['attributeOldValue'],'range':Pt(_0x3079c5['range'],_0x23d9ec['model'])});for(const _0x308565 of _0x3ded2a){if('rename'!=_0x308565['action']&&'refresh'!=_0x308565['action'])continue;const _0x1acca5=Lt(_0x308565['position']['nodeAfter'],_0x23d9ec['model']),_0xac2d3b=_0x308565['before'];'rename'==_0x308565['action']&&_0xd870e3['push']({'key':m,'newValue':_0x308565['name'],'oldValue':_0xac2d3b['name'],'range':_0x1acca5});for(const [_0x587eb4,_0x20d19d]of _0xac2d3b['attributes']){if(!this['_isRegisteredAttribute'](_0x587eb4))continue;const _0x5de186=_0x308565['attributes']['get'](_0x587eb4);_0x20d19d!==_0x5de186&&_0xd870e3['push']({'key':_0x587eb4,'newValue':_0x5de186,'oldValue':_0x20d19d,'range':_0x1acca5});}for(const [_0x3dda31,_0x61e797]of _0x308565['attributes'])this['_isRegisteredAttribute'](_0x3dda31)&&(_0xac2d3b['attributes']['has'](_0x3dda31)||_0xd870e3['push']({'key':_0x3dda31,'newValue':_0x61e797,'oldValue':null,'range':_0x1acca5}));}0x0!=_0xd870e3['length']&&_0x23d9ec['model']['enqueueChange'](_0x5f3063,_0x5625d0=>{const _0x45baa2=_0xd600d8();for(const {range:_0x4205d7,key:_0x5c4993,oldValue:_0x1fead3,newValue:_0x1bb912}of _0xd870e3)this['markAttributeChange'](_0x4205d7,_0x5c4993,_0x1fead3,_0x1bb912,{'groupId':_0x45baa2});this['_reduceExistingSuggestions'](_0x5625d0,_0xd870e3);});},{'priority':'lowest'}),_0x23d9ec['model']['markers']['on']('update:suggestion',(_0x28214e,_0x4e1b8d,_0x268896)=>{if(null==_0x268896){const {id:_0x173143}=this['_splitMarkerName'](_0x4e1b8d['name']),_0x35db56=this['_suggestions']['get'](_0x173143);_0x35db56&&_0x35db56['addMarkerName'](_0x4e1b8d['name']);}}),_0x23d9ec['model']['document']['on']('change:data',()=>{const _0x3bec88=Array['from'](_0x23d9ec['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5d3362=>'suggestion'===this['_splitMarkerName'](_0x5d3362['name'])['group']);if(0x0===_0x3bec88['length'])return;_0x3bec88['sort']((_0x189ea7,_0x19b305)=>{const _0xe04c2d=_0x189ea7['data']['oldRange'],_0x225db1=_0x19b305['data']['oldRange'];return null===_0xe04c2d&&null===_0x225db1?0x0:null===_0xe04c2d&&null!==_0x225db1?-0x1:null!==_0xe04c2d&&null===_0x225db1?0x1:_0xe04c2d['start']['isBefore'](_0x225db1['start'])?-0x1:0x1;});const _0x1350b3=new Set(),_0x3aec87=new Set();for(const {name:_0x21115b,data:_0xd2f864}of _0x3bec88){const {id:_0x26b31e}=this['_splitMarkerName'](_0x21115b);if(null===_0xd2f864['oldRange']){const _0x43695e=this['_handleNewSuggestionMarker'](_0x21115b);_0x3aec87['add'](_0x43695e);}else{const _0x5eb0e1=this['_suggestions']['get'](_0x26b31e);null!==_0xd2f864['newRange']||_0x5eb0e1['isInContent']?(_0x1350b3['add'](_0x5eb0e1['head']),_0x3aec87['add'](_0x5eb0e1)):this['_removeSuggestion'](_0x5eb0e1);}}_0x3aec87['size']>0x0&&this['_refreshSuggestionsChain'](_0x3aec87);for(const _0x3faf4a of _0x1350b3)this['fire']('suggestionChanged',_0x3faf4a);}),_0x23d9ec['model']['on']('applyOperation',(_0x4e0e87,_0x6bfd5a)=>{const _0x21fef8=_0x6bfd5a[0x0];if(!this['_suggestions']['size'])return;if(!_0x21fef8['isDocumentOperation'])return;if(_0x21fef8['batch']['isUndo']||!_0x21fef8['batch']['isLocal'])return;let _0x3c4912,_0x1a486d;switch(_0x21fef8['type']){case'insert':_0x3c4912=_0x23d9ec['model']['createPositionAt'](_0x21fef8['position']),_0x1a486d=_0x3c4912['getShiftedBy'](_0x21fef8['howMany']);break;case'split':_0x3c4912=_0x23d9ec['model']['createPositionAt'](_0x21fef8['splitPosition']),_0x1a486d=_0x23d9ec['model']['createPositionAt'](_0x21fef8['moveTargetPosition']);break;case'move':_0x3c4912=_0x23d9ec['model']['createPositionAt'](_0x21fef8['targetPosition']),_0x1a486d=_0x3c4912['getShiftedBy'](_0x21fef8['howMany']);break;default:return;}const _0x52f955=_0x23d9ec['model']['createRange'](_0x3c4912,_0x1a486d);_0x23d9ec['model']['change'](()=>{for(const {suggestion:_0xf82c28,meta:_0x38aef6}of this['_findSuggestions'](_0x52f955)){if(_0xf82c28['isMultiRange'])continue;if('formatInline'==_0xf82c28['type'])continue;const _0x3e91bb=this['_getAttributeKey'](_0xf82c28);if(_0x3e91bb&&this['_isBlockAttribute'](_0x3e91bb)&&'split'!=_0x21fef8['type'])continue;const _0x27a23a=_0xf82c28['data']&&_0xf82c28['data']['multipleBlocks'];('formatBlock'!=_0xf82c28['type']||'split'==_0x21fef8['type']&&!_0x27a23a)&&(_0x38aef6['containsRangeInObject']||'insertion'==_0xf82c28['type']&&_0x38aef6['isOwn']||_0xf82c28['getFirstRange']()['containsRange'](_0x52f955)&&this['_breakSuggestionMarker'](_0xf82c28,_0x3c4912,_0x1a486d));}});},{'priority':'lowest'}),_0x23d9ec['model']['on']('deleteContent',(_0x25f4e4,_0x233e16)=>{const _0x543adf=_0x233e16[0x0],_0x5e9e7d=_0x233e16[0x1];if(_0x5e9e7d&&_0x5e9e7d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x543adf['isCollapsed'])return;const _0x494f88=_0x23d9ec['model']['schema'],{start:_0x2414d5,end:_0x49fd2d}=_0x543adf['getFirstRange'](),_0x3023a1=_0x2414d5['nodeAfter']&&_0x494f88['isLimit'](_0x2414d5['nodeAfter'])?null:_0x494f88['getNearestSelectionRange'](_0x2414d5,'forward'),_0x14d3c4=_0x49fd2d['nodeBefore']&&_0x494f88['isLimit'](_0x49fd2d['nodeBefore'])?null:_0x494f88['getNearestSelectionRange'](_0x49fd2d,'backward'),_0x4a290a=_0x23d9ec['model']['createRange'](_0x3023a1?_0x3023a1['start']:_0x2414d5,_0x14d3c4?_0x14d3c4['end']:_0x49fd2d);_0x23d9ec['model']['change'](_0x4c1ad8=>{this['markDeletion'](_0x4a290a);const _0x49cfb5=_0x23d9ec['model']['schema']['getNearestSelectionRange'](_0x4a290a['start']);_0x543adf['is']('documentSelection')?_0x4c1ad8['setSelection'](_0x49cfb5):_0x543adf['setTo'](_0x49cfb5);}),_0x25f4e4['stop']();},{'priority':_0x3c5031['normal']+0xa}),_0x23d9ec['model']['on']('insertContent',(_0x501dc7,_0x2ecd17)=>{const _0x55dec7=_0x2ecd17[_0x2ecd17['length']-0x1];_0x55dec7&&_0x55dec7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23d9ec['model']['change'](()=>{let _0x36daff=_0x23d9ec['model']['insertContent'](_0x2ecd17[0x0],_0x2ecd17[0x1],_0x2ecd17[0x2],{'forceDefaultExecution':!0x0});if(!_0x36daff)return;_0x501dc7['return']=_0x36daff['clone']();const _0xa309c0=_0x36daff['end']['nodeBefore'],_0x219219=_0x23d9ec['model']['schema'];_0xa309c0&&_0x219219['isBlock'](_0xa309c0)&&!_0x219219['isObject'](_0xa309c0)&&(_0x36daff=_0x23d9ec['model']['createRange'](_0x36daff['start'],_0x23d9ec['model']['createPositionAt'](_0xa309c0,'end'))),this['markInsertion'](_0x36daff);}),_0x501dc7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x441230=new x(_0x23d9ec,this['_suggestions']);_0x23d9ec['commands']['add']('acceptSuggestion',_0x441230),this['enableCommand']('acceptSuggestion');const _0x594f60=new R(_0x23d9ec,this['_suggestions']);_0x23d9ec['commands']['add']('discardSuggestion',_0x594f60),this['enableCommand']('discardSuggestion'),_0x23d9ec['commands']['add']('acceptAllSuggestions',new E(_0x23d9ec,_0x441230,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23d9ec['commands']['add']('discardAllSuggestions',new E(_0x23d9ec,_0x594f60,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23d9ec['commands']['add']('acceptSelectedSuggestions',new O(_0x23d9ec,_0x441230,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23d9ec['commands']['add']('discardSelectedSuggestions',new O(_0x23d9ec,_0x594f60,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x321dfc=_0x23d9ec['plugins']['get']('CommentsRepository');this['listenTo'](_0x321dfc,'addComment',(_0x3ca12f,{threadId:_0x5cfb4f})=>{const _0x227732=this['_suggestions']['get'](_0x5cfb4f);_0x227732&&_0x227732['commentThread']&&0x1===_0x227732['commentThread']['length']&&this['_updateSuggestionData'](_0x5cfb4f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x321dfc,'removeComment',(_0x3a305d,{threadId:_0x55c106})=>{const _0x4ffc12=this['_suggestions']['get'](_0x55c106);_0x4ffc12&&_0x4ffc12['commentThread']&&!_0x4ffc12['commentThread']['length']&&this['_updateSuggestionData'](_0x55c106,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1093b1){if(this['_adapter'])throw new _0x211b8d('track-changes-adapter-already-set',this);this['_adapter']=_0x1093b1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3b18c3=!0x1,toJSON:_0x16e360=!0x1}={}){const _0xfed028=[];for(const _0x4542ff of this['_suggestions']['values']())_0x3b18c3&&!_0x4542ff['isInContent']||_0xfed028['push'](_0x4542ff);return _0x16e360?_0xfed028['map'](_0x3a615d=>_0x3a615d['toJSON']()):_0xfed028;}['getSuggestion'](_0x1c8a71){const _0x3ff3fb=this['_suggestions']['get'](_0x1c8a71);if(!_0x3ff3fb)throw new _0x211b8d('track-changes-suggestion-not-found',this);return _0x3ff3fb;}['hasSuggestion'](_0x2484ce){return this['_suggestions']['has'](_0x2484ce);}['addSuggestionData'](_0x5e0d76){const {authorId:_0x2ad2e5,id:_0xe24e84,attributes:_0x4670fd}=_0x5e0d76,[_0x2800d7,_0x4e2791]=_0x5e0d76['type']['split'](':'),_0x565216=this['_suggestions']['get'](_0xe24e84)||this['_createSuggestion'](_0x2800d7,_0x4e2791,_0xe24e84,_0x2ad2e5,_0x4670fd);if(this['_addThreadToSuggestion'](_0x565216),this['_checkSuggestionCorrectness'](_0x565216,_0x2800d7,_0x4e2791||null,_0x2ad2e5),_0x565216['createdAt']=_0x5e0d76['createdAt'],_0x565216['_isDataLoaded']=!0x0,_0x4670fd&&_0x4670fd['@external']){const _0xb269b9=_0x4670fd['@external'],_0x157352=this['_getExternalAuthor'](_0xb269b9['authorName']);_0x565216['authoredAt']=_0xb269b9['createdAt'],_0x565216['author']=_0x157352,_0x565216['isExternal']=!0x0;}else _0x565216['authoredAt']=_0x5e0d76['createdAt'];switch(_0x5e0d76['data']&&(_0x565216['data']=_0x5e0d76['data']),_0x5e0d76['attributes']&&(_0x565216['attributes']=_0x5e0d76['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x565216['_saved']=!0x0),this['_suggestionState']['get'](_0x565216)){case'notReady':this['_suggestionState']['set'](_0x565216,'dataReady');break;case'markerReady':_0x565216['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x565216])),this['_refreshSuggestionsChain'](new Set([_0x565216])),this['_suggestionState']['set'](_0x565216,'ready'),this['fire']('suggestionLoaded',_0x565216)):this['_suggestionState']['set'](_0x565216,'removed');}return _0x565216;}['acceptSuggestion'](_0x32cb5e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x64ecf3 of _0x32cb5e['getAllAdjacentSuggestions']())_0x64ecf3['accept']();});});}['discardSuggestion'](_0x2bfcbb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x392be0 of _0x2bfcbb['getAllAdjacentSuggestions']())_0x392be0['discard']();});});}['enableCommand'](_0x540ed0,_0x551b39){const _0x314fe4=this['editor']['commands']['get'](_0x540ed0);if(!_0x314fe4)throw new _0x211b8d('track-changes-command-not-found',this,{'commandName':_0x540ed0});if(this['_enabledCommands']['has'](_0x314fe4))throw new _0x211b8d('track-changes-enable-command-twice',this,{'commandName':_0x540ed0});this['_enabledCommands']['add'](_0x314fe4),_0x551b39&&_0x314fe4['on']('execute',(_0x31c6fb,_0x1ebb36)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ebb36['length']>0x0&&_0x1ebb36[_0x1ebb36['length']-0x1]&&_0x1ebb36[_0x1ebb36['length']-0x1]['forceDefaultExecution']?_0x1ebb36['pop']():(_0x31c6fb['return']=_0x551b39((..._0x2c7bf3)=>_0x314fe4['execute'](..._0x2c7bf3,{'forceDefaultExecution':!0x0}),..._0x1ebb36),_0x31c6fb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x295c88){let _0x2cb031,_0x629876;const _0x5f29b1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2cb031=_0x295c88();}catch(_0x248557){_0x629876=_0x248557;}return _0x5f29b1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x629876&&_0x211b8d['rethrowUnexpectedError'](_0x629876,this),_0x2cb031;}['markInsertion'](_0x1ad220,_0x494ef3=null,_0x1b8122={}){if(_0x1ad220['isCollapsed'])return null;const _0x425ada=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x41b678,meta:_0x2db3da}of this['_findSuggestions'](_0x1ad220,'insertion'))if(_0x2db3da['isOwn']){if(!_0x2db3da['isNextTo']){if(_0x2db3da['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x41b678,_0x1b8122))continue;return _0x41b678;}if(qt(_0x41b678,_0x1b8122))return _0x41b678;this['_breakSuggestionMarker'](_0x41b678,_0x1ad220['start'],_0x1ad220['end']);break;}if(_0x494ef3==_0x41b678['subType']&&qt(_0x41b678,_0x1b8122)){const _0x124939=_0x41b678['getFirstRange']();return _0x124939['start']['isEqual'](_0x1ad220['end'])?this['_setSuggestionRange'](_0x41b678,this['_model']['createRange'](_0x1ad220['start'],_0x124939['end'])):this['_setSuggestionRange'](_0x41b678,this['_model']['createRange'](_0x124939['start'],_0x1ad220['end'])),_0x41b678;}}const _0x4edd58=_0xd600d8(),_0x25941e=_0x425ada['id'],_0x1ad5c2=_0x494ef3?'insertion:'+_0x494ef3:'insertion',_0x18876f=this['_setSuggestionData']({'id':_0x4edd58,'type':_0x1ad5c2,'createdAt':new Date(),'authorId':_0x25941e,'attributes':_0x1b8122});return this['_addSuggestionMarker'](_0x1ad5c2,_0x4edd58,_0x25941e,_0x1ad220),_0x18876f;}['markMultiRangeInsertion'](_0x16a328,_0x30c173='multi',_0x1fea17={}){const _0x1e2bb6=this['editor']['plugins']['get']('Users')['me'],_0x4f6d4b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x30c173,'join');for(const _0x5a2891 of this['getSuggestions']())if(_0x5a2891['author']['id']==_0x1e2bb6['id']&&'insertion'==_0x5a2891['type']&&_0x5a2891['subType']==_0x30c173&&qt(_0x5a2891,_0x1fea17)&&(_0x4f6d4b(_0x5a2891['getRanges'](),_0x16a328)||_0x4f6d4b(_0x16a328,_0x5a2891['getRanges']()))){for(const _0x1f4cc7 of _0x16a328)_0x5a2891['addRange'](_0x1f4cc7);return _0x5a2891;}for(const {suggestion:_0xfcb800,meta:_0x284444}of this['_findSuggestions'](_0x16a328,'insertion')){if(!_0x284444['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x284444['containsRangeInObject'])continue;if(!qt(_0xfcb800,_0x1fea17))continue;let _0x37a863=!0x0;for(const _0x15c7c1 of _0xfcb800['getRanges']())for(const _0x1177f7 of _0x16a328)if(!_0x15c7c1['containsRange'](_0x1177f7)){_0x37a863=!0x1;break;}if(_0x37a863)return _0xfcb800;}const _0x33f1df=_0xd600d8(),_0x572a34=_0x1e2bb6['id'],_0x38987d='insertion:'+_0x30c173,_0x24c4cf=this['_setSuggestionData']({'id':_0x33f1df,'type':_0x38987d,'createdAt':new Date(),'authorId':_0x572a34,'attributes':_0x1fea17});for(const _0x1d35cd of _0x16a328)this['_addSuggestionMarker'](_0x38987d,_0x33f1df,_0x572a34,_0x1d35cd,u['getMultiRangeId']());return _0x24c4cf;}['markInlineFormat'](_0x5e99be,_0x1dd00f,_0x7ab80e=null,_0x2811c4={}){if(_0x7ab80e=_0x7ab80e||Gt(_0x1dd00f),_0x5e99be['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x562831=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7ab80e,'accept');return this['forceDefaultExecution'](()=>_0x562831([_0x5e99be],_0x1dd00f,_0x2811c4)),null;}const _0x52c9d1=this['editor']['plugins']['get']('Users')['me'],_0x2a2981=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x246e46,meta:_0x285c98}of this['_findSuggestions'](_0x5e99be,'insertion'))_0x285c98['isOwn']&&!_0x285c98['isInsideObject']&&_0x2a2981['push'](..._0x246e46['getRanges']());}const _0xc0f181=function(_0x32d2b6,_0x471a10){const _0x38e0bf=[];for(const _0x20265c of _0x471a10){const _0x5cb525=_0x32d2b6['getIntersection'](_0x20265c);_0x5cb525&&_0x38e0bf['push'](_0x5cb525);}return _0x38e0bf;}(_0x5e99be,_0x2a2981),_0x3de5d3=function(_0x1df964,_0x9d2ba4){const _0x4423cc=[_0x1df964];for(const _0x4e36ef of _0x9d2ba4){let _0x4bd595=0x0;for(;_0x4bd595<_0x4423cc['length'];){const _0x5b5b16=_0x4423cc[_0x4bd595]['getDifference'](_0x4e36ef);_0x4423cc['splice'](_0x4bd595,0x1,..._0x5b5b16),_0x4bd595+=_0x5b5b16['length'];}}return _0x4423cc;}(_0x5e99be,_0x2a2981);_0xc0f181['length']&&this['_model']['change'](()=>{for(const _0x1bd3ae of _0xc0f181){const _0x5dc417=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7ab80e,'accept');this['forceDefaultExecution'](()=>_0x5dc417([_0x1bd3ae],_0x1dd00f,_0x2811c4));}});for(const _0x19f2a5 of _0x3de5d3){let _0x505bb1=null,_0x5ef469=_0x19f2a5['start'],_0x118656=_0x19f2a5['end'];for(const {suggestion:_0x38ab4b,meta:_0x37f347}of this['_findSuggestions'](_0x19f2a5,'formatInline')){if(!_0x37f347['isOwn'])continue;if(_0x38ab4b['subType']!=_0x7ab80e)continue;if(!qt(_0x38ab4b,_0x2811c4))continue;const _0x12058a=_0x38ab4b['getFirstRange']();if(_0x12058a['containsRange'](_0x19f2a5,!0x0))return null;_0x5ef469=_0x5ef469['isBefore'](_0x12058a['start'])?_0x5ef469:_0x12058a['start'],_0x118656=_0x118656['isAfter'](_0x12058a['end'])?_0x118656:_0x12058a['end'],_0x505bb1?_0x12058a['start']['isBefore'](_0x505bb1['getFirstRange']()['start'])?(_0x505bb1['removeMarkers'](),_0x505bb1=_0x38ab4b):_0x38ab4b['removeMarkers']():_0x505bb1=_0x38ab4b;}const _0x428735=this['_model']['createRange'](_0x5ef469,_0x118656);if(_0x505bb1)this['_setSuggestionRange'](_0x505bb1,_0x428735);else{const _0x24c572=_0xd600d8(),_0x423929=_0x52c9d1['id'];this['_setSuggestionData']({'id':_0x24c572,'type':'formatInline:'+_0x7ab80e,'data':_0x1dd00f,'createdAt':new Date(),'authorId':_0x423929,'attributes':_0x2811c4}),this['_addSuggestionMarker']('formatInline:'+_0x7ab80e,_0x24c572,_0x423929,_0x428735);}}return null;}['markBlockFormat'](_0x1a1f6c,_0x5f4efe,_0x3894ae=[],_0xb42bcf=null,_0x4e3139={}){_0x5f4efe['formatGroupId']||(_0x5f4efe['formatGroupId']=_0x5f4efe['commandName']),_0x5f4efe['multipleBlocks']=_0x1a1f6c['is']('range'),_0xb42bcf=_0xb42bcf||Gt(_0x5f4efe);const _0x224ac1=_0x3894ae['map'](_0x3cb867=>Lt(_0x3cb867,this['_model'])),_0x5ddb59=_0x1a1f6c['is']('range')?_0x1a1f6c:Lt(_0x1a1f6c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4eb800=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb42bcf,'accept');return this['forceDefaultExecution'](()=>_0x4eb800([_0x5ddb59],_0x5f4efe,_0x4e3139)),null;}_0x224ac1['push'](_0x5ddb59);let _0x83fe22=!0x0;for(const _0x393ccb of _0x224ac1)if(!this['_rangeIsInLocalUserInsertion'](_0x393ccb)){_0x83fe22=!0x1;break;}if(_0x83fe22&&'always'!==this['_trackFormatChanges']){const _0x18b3d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb42bcf,'accept');return this['forceDefaultExecution'](()=>_0x18b3d1([_0x5ddb59],_0x5f4efe,_0x4e3139)),null;}let _0x343385=null,_0xb9c26f=_0x5ddb59['start'],_0x3cc5bc=_0x5ddb59['end'];for(const {suggestion:_0x2ad180,meta:_0x4da38d}of this['_findSuggestions'](_0x5ddb59,'formatBlock')){if(!_0x4da38d['isOwn'])continue;if(_0x4da38d['isNextTo']||_0x4da38d['containsRangeInObject']||_0x4da38d['isInsideObject'])continue;if(_0x2ad180['data']['formatGroupId']!=_0x5f4efe['formatGroupId'])continue;if(!qt(_0x2ad180,_0x4e3139))continue;const _0x541090=_0x2ad180['getFirstRange']();if(_0x2ad180['subType']==_0xb42bcf){if(_0x541090['containsRange'](_0x5ddb59,!0x0))return null;_0xb9c26f=_0xb9c26f['isBefore'](_0x541090['start'])?_0xb9c26f:_0x541090['start'],_0x3cc5bc=_0x3cc5bc['isAfter'](_0x541090['end'])?_0x3cc5bc:_0x541090['end'],_0x343385?_0x541090['start']['isBefore'](_0x343385['getFirstRange']()['start'])?(_0x343385['removeMarkers'](),_0x343385=_0x2ad180):_0x2ad180['removeMarkers']():_0x343385=_0x2ad180;}else{const _0x29c34e=_0x5ddb59['getIntersection'](_0x541090);this['_cutOutSuggestionMarker'](_0x2ad180,_0x29c34e);}}const _0x46af13=this['editor']['plugins']['get']('Users')['me'],_0x536121=_0xd600d8(),_0x2e884a=_0x46af13['id'];if(_0x343385)return this['_setSuggestionRange'](_0x343385,this['_model']['createRange'](_0xb9c26f,_0x3cc5bc)),_0x343385;{const _0x309316=this['_setSuggestionData']({'id':_0x536121,'type':'formatBlock:'+_0xb42bcf,'data':_0x5f4efe,'createdAt':new Date(),'authorId':_0x2e884a,'attributes':_0x4e3139});return this['_addSuggestionMarker']('formatBlock:'+_0xb42bcf,_0x536121,_0x2e884a,this['_model']['createRange'](_0xb9c26f,_0x3cc5bc)),_0x309316;}}['markMultiRangeBlockFormat'](_0x246e53,_0x375371,_0x2930fd=[],_0x56f8f9=null,_0x28604f={}){_0x375371['formatGroupId']||(_0x375371['formatGroupId']=_0x375371['commandName']);const _0x3b1870=_0x246e53[0x0];_0x375371['multipleBlocks']=_0x3b1870['is']('range'),_0x56f8f9=_0x56f8f9||Gt(_0x375371);const _0x1bab44=_0x2930fd['map'](_0x3cd25a=>Lt(_0x3cd25a,this['_model'])),_0x5353bd=_0x3b1870['is']('range')?_0x246e53:_0x246e53['map'](_0x168888=>Lt(_0x168888,this['_model']));if('never'===this['_trackFormatChanges']){const _0xa5d46d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f8f9,'accept');return this['forceDefaultExecution'](()=>_0xa5d46d(_0x5353bd,_0x375371,_0x28604f)),null;}_0x1bab44['push'](..._0x5353bd);let _0x12e922=!0x0;for(const _0x635b30 of _0x1bab44)if(!this['_rangeIsInLocalUserInsertion'](_0x635b30)){_0x12e922=!0x1;break;}if(_0x12e922&&'always'!==this['_trackFormatChanges']){const _0x25fb05=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f8f9,'accept');return this['forceDefaultExecution'](()=>_0x25fb05(_0x5353bd,_0x375371,_0x28604f)),null;}const _0x42a4b=this['editor']['plugins']['get']('Users')['me'];for(const _0x561760 of this['getSuggestions']()){if(_0x561760['author']['id']!=_0x42a4b['id'])continue;if('formatBlock'!=_0x561760['type']||_0x561760['data']['formatGroupId']!=_0x375371['formatGroupId'])continue;if(!qt(_0x561760,_0x28604f))continue;const _0x1b64c4=_0x561760['subType']==_0x56f8f9;for(let _0x121da9=0x0;_0x121da9<_0x5353bd['length'];_0x121da9++){const _0x50885b=_0x5353bd[_0x121da9];for(const _0x5ba7cb of _0x561760['getMarkers']()){const _0x1a647e=_0x5ba7cb['getRange']();if(_0x50885b['isEqual'](_0x1a647e)){_0x1b64c4?(_0x5353bd['splice'](_0x121da9,0x1),_0x121da9--):_0x561760['removeMarker'](_0x5ba7cb['name']);break;}}}}if(0x0==_0x5353bd['length'])return null;const _0xeb3c87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f8f9,'join');for(const _0x581568 of this['getSuggestions']())if(_0x581568['author']['id']==_0x42a4b['id']&&'formatBlock'==_0x581568['type']&&_0x581568['data']['formatGroupId']==_0x375371['formatGroupId']&&_0x581568['subType']==_0x56f8f9&&qt(_0x581568,_0x28604f)&&(_0xeb3c87(_0x581568['getRanges'](),_0x5353bd)||_0xeb3c87(_0x5353bd,_0x581568['getRanges']()))){for(const _0x58963f of _0x5353bd)_0x581568['addRange'](_0x58963f);return _0x581568;}const _0x254905=_0xd600d8(),_0x4b6cdd=_0x42a4b['id'],_0x2ad003='formatBlock:'+_0x56f8f9,_0x3e9116=this['_setSuggestionData']({'id':_0x254905,'type':_0x2ad003,'data':_0x375371,'createdAt':new Date(),'authorId':_0x4b6cdd,'attributes':_0x28604f});for(const _0x236539 of _0x5353bd)this['_addSuggestionMarker'](_0x2ad003,_0x254905,_0x4b6cdd,_0x236539,u['getMultiRangeId']());return _0x3e9116;}['markDeletion'](_0x41ca0d,_0x5956e5=null,_0x161e12={}){if(_0x41ca0d['isCollapsed'])return null;const _0x5db7e0=this['editor']['plugins']['get']('Users')['me'],_0x104f5a=new _0x5e2088(_0x41ca0d['start'],_0x41ca0d['end']);for(const {suggestion:_0x4f50e8,meta:_0x31a143}of this['_findSuggestions'](_0x104f5a,'insertion'))if(_0x31a143['isOwn']&&!_0x31a143['isNextTo']){if(_0x4f50e8['isMultiRange']){const _0x405ab2=_0x4f50e8['getRanges']()['filter'](_0x3e3dc0=>'$graveyard'!=_0x3e3dc0['root']['rootName']);_0x405ab2['every'](_0x14b477=>_0x104f5a['containsRange'](_0x14b477,!0x0))&&_0x4f50e8['discard']();if(_0x405ab2['some'](_0xe068f7=>_0xe068f7['containsRange'](_0x104f5a,!0x0))){const _0x1a7246=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5956e5,'accept');return this['forceDefaultExecution'](()=>_0x1a7246([_0x104f5a],null,_0x161e12)),null;}}else{const _0x4589ee=_0x104f5a['getIntersection'](_0x4f50e8['getFirstRange']());null!==_0x4589ee&&_0x4f50e8['_onDiscard']([_0x4589ee],null,_0x161e12);}}if(_0x104f5a['detach'](),_0x104f5a['isCollapsed']||'$graveyard'==_0x104f5a['root']['rootName'])return null;let _0x5aa9bc=null,_0x35afa2=_0x104f5a['start'],_0x15eec2=_0x104f5a['end'];const _0x3c965d=this['_findSuggestions'](_0x104f5a,'deletion');for(const {suggestion:_0x1af2ec,meta:_0x349c7e}of _0x3c965d){const _0xcdae7e=this['_model']['createRange'](_0x35afa2,_0x15eec2);if(_0x349c7e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x349c7e['containsRangeInObject']&&!_0x349c7e['isInsideObject'])){if(_0x1af2ec['isMultiRange']){if(!qt(_0x1af2ec,_0x161e12))continue;let _0x4cb720=!0x0;for(const _0x5f838f of _0x1af2ec['getRanges']()){if(_0x5f838f['containsRange'](_0xcdae7e,!0x0))return _0x1af2ec;_0xcdae7e['containsRange'](_0x5f838f)||(_0x4cb720=!0x1);}_0x4cb720&&_0x1af2ec['discard']();}else{const _0x90319a=_0x1af2ec['getFirstRange']();if(_0x90319a['containsRange'](_0xcdae7e,!0x0))return _0x1af2ec;if(!qt(_0x1af2ec,_0x161e12)){_0xcdae7e['containsRange'](_0x90319a)?_0x1af2ec['removeMarkers']():_0x90319a['containsPosition'](_0x35afa2)?_0x35afa2=_0x90319a['end']:_0x90319a['containsPosition'](_0x15eec2)&&(_0x15eec2=_0x90319a['start']);continue;}_0x35afa2=_0x35afa2['isBefore'](_0x90319a['start'])?_0x35afa2:_0x90319a['start'],_0x15eec2=_0x15eec2['isAfter'](_0x90319a['end'])?_0x15eec2:_0x90319a['end'],_0x161e12=Object['assign']({},_0x1af2ec['attributes']),_0x5aa9bc?_0x90319a['start']['isBefore'](_0x5aa9bc['getFirstRange']()['start'])?(_0x5aa9bc['removeMarkers'](),_0x5aa9bc=_0x1af2ec):_0x1af2ec['removeMarkers']():_0x5aa9bc=_0x1af2ec;}}}if(_0x5aa9bc)return this['_setSuggestionRange'](_0x5aa9bc,this['_model']['createRange'](_0x35afa2,_0x15eec2)),_0x5aa9bc;{const _0x5c8082=_0xd600d8(),_0x9ac733=this['_model']['createRange'](_0x35afa2,_0x15eec2),_0x20ac99=_0x5db7e0['id'],_0x29061f=_0x5956e5?'deletion:'+_0x5956e5:'deletion',_0x42bc91=this['_setSuggestionData']({'id':_0x5c8082,'type':_0x29061f,'createdAt':new Date(),'authorId':_0x20ac99,'attributes':_0x161e12});return this['_addSuggestionMarker'](_0x29061f,_0x5c8082,_0x20ac99,_0x9ac733),_0x42bc91;}}['markMultiRangeDeletion'](_0x1164a7,_0x5dd78f='multi',_0x111a89={}){const _0x461d74=this['editor']['plugins']['get']('Users')['me'],_0x389a1b=_0x1164a7['map'](_0x5cbf31=>new _0x5e2088(_0x5cbf31['start'],_0x5cbf31['end'])),_0x4871b0=new Set();for(const {suggestion:_0x43ea1d,meta:_0x111526}of this['_findSuggestions'](_0x389a1b,'insertion'))_0x111526['isOwn']&&!_0x111526['isNextTo']&&_0x4871b0['add'](_0x43ea1d);for(const _0x41a79e of _0x4871b0)if(_0x41a79e['isMultiRange']){const _0x53487f=_0x41a79e['getRanges']();(!_0x41a79e['attributes']||!_0x41a79e['attributes']['skipNestingCheck'])&&(_0x53487f['every'](_0x7e1a8b=>_0x389a1b['some'](_0x4943d9=>_0x4943d9['containsRange'](_0x7e1a8b,!0x0)))&&_0x41a79e['discard']());if(_0x389a1b['every'](_0x109a71=>_0x53487f['some'](_0x563789=>_0x563789['containsRange'](_0x109a71,!0x0)))){const _0x31db00=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd78f,'accept');return this['forceDefaultExecution'](()=>_0x31db00(_0x1164a7,null,_0x111a89)),null;}}else{const _0x525233=_0x41a79e['getFirstRange']();_0x389a1b['some'](_0x15b476=>_0x15b476['containsRange'](_0x525233,!0x0))&&_0x41a79e['discard']();if(_0x389a1b['every'](_0xbc6b0c=>_0x525233['containsRange'](_0xbc6b0c,!0x0))){const _0x34fd6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd78f,'accept');return this['forceDefaultExecution'](()=>_0x34fd6a(_0x389a1b,null,_0x111a89)),null;}}const _0x1f258e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd78f,'join');let _0x1e9aa0=null;for(const _0x235028 of this['getSuggestions']())if(_0x235028['author']['id']==_0x461d74['id']&&_0x235028['isInContent']&&'deletion'==_0x235028['type']&&_0x235028['subType']==_0x5dd78f&&qt(_0x235028,_0x111a89)&&(_0x1f258e(_0x235028['getRanges'](),_0x389a1b)||_0x1f258e(_0x389a1b,_0x235028['getRanges']()))){if(_0x1e9aa0){if(_0x235028['commentThread']&&_0x235028['commentThread']['length'])continue;for(const _0x1e5d09 of _0x235028['getRanges']())_0x1e9aa0['isIntersectingWithRange'](_0x1e5d09)||_0x1e9aa0['addRange'](_0x1e5d09);_0x235028['removeMarkers']();}else{_0x1e9aa0=_0x235028;for(const _0x19b4de of _0x389a1b)_0x235028['isIntersectingWithRange'](_0x19b4de)||_0x235028['addRange'](_0x19b4de);}}if(_0x1e9aa0)return _0x1e9aa0;_0x4871b0['clear']();for(const {suggestion:_0x1a7910,meta:_0x4709ba}of this['_findSuggestions'](_0x389a1b,'deletion'))_0x4709ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4709ba['containsRangeInObject']&&!_0x4709ba['isInsideObject'])&&qt(_0x1a7910,_0x111a89)&&_0x4871b0['add'](_0x1a7910);for(const _0x1971be of _0x4871b0){const _0x32ab83=_0x1971be['getRanges']();if(!_0x111a89||!_0x111a89['skipNestingCheck']){if(_0x389a1b['every'](_0x254346=>_0x32ab83['some'](_0x4b240c=>_0x4b240c['containsRange'](_0x254346,!0x0))))return _0x1971be;}(!_0x1971be['attributes']||!_0x1971be['attributes']['skipNestingCheck'])&&(_0x32ab83['every'](_0x1a4b35=>_0x389a1b['some'](_0x55c8e5=>_0x55c8e5['containsRange'](_0x1a4b35,!0x0)))&&_0x1971be['discard']());}const _0x475e95=_0xd600d8(),_0xfb2801=_0x461d74['id'],_0xceac30='deletion:'+_0x5dd78f,_0x26f1ae=this['_setSuggestionData']({'id':_0x475e95,'type':_0xceac30,'createdAt':new Date(),'authorId':_0xfb2801,'attributes':_0x111a89});for(const _0x4a2b6c of _0x389a1b)_0x4a2b6c['detach'](),_0x4a2b6c['isCollapsed']||'$graveyard'==_0x4a2b6c['root']['rootName']||this['_addSuggestionMarker'](_0xceac30,_0x475e95,_0xfb2801,_0x4a2b6c,u['getMultiRangeId']());return _0x26f1ae;}['markAttributeChange'](_0x10b682,_0x842792,_0x32e542,_0x526d71,_0x3c9c94){if(_0x10b682['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3df614=this['editor']['plugins']['get']('Users')['me']['id'],_0x312d9c=Array['from'](this['_suggestions']['values']())['filter'](_0x396f0f=>'attribute'==_0x396f0f['type']&&_0x396f0f['data']['key']==_0x842792&&_0x396f0f['isIntersectingWithRange'](_0x10b682));if('default'===this['_trackFormatChanges']){const _0x11968a=this['_findSuggestions'](_0x10b682,'insertion')['filter'](({meta:_0x32c490})=>_0x32c490['isOwn']&&!_0x32c490['isInsideObject']&&!_0x32c490['isNextTo'])['map'](({suggestion:_0x596477})=>_0x596477);_0x312d9c['unshift'](..._0x11968a);}const _0x142ddf=new Map([[_0x10b682,_0x32e542]]);for(const _0x3a5e9d of _0x312d9c){const _0x438b17='attribute'==_0x3a5e9d['type']?_0x3a5e9d['data']['oldValue']:void 0x0,_0x7d2dd4=_0x3a5e9d['getFirstRange'](),_0x10b5be=Array['from'](_0x142ddf['keys']())['find'](_0x11f649=>_0x11f649['isIntersecting'](_0x7d2dd4));if(!_0x10b5be)continue;const _0x181340=_0x10b5be['getDifference'](_0x7d2dd4);this['_isBlockAttribute'](_0x842792)&&'insertion'==_0x3a5e9d['type']&&0x0!=_0x181340['length']||(_0x142ddf['delete'](_0x10b5be),_0x181340['forEach'](_0x3dc8a8=>{_0x142ddf['set'](_0x3dc8a8,_0x32e542);}),'insertion'!=_0x3a5e9d['type']&&_0x438b17!=_0x526d71&&_0x142ddf['set'](_0x10b5be['getIntersection'](_0x7d2dd4),_0x438b17));}const _0x34ba04=[];for(const [_0x5c9be5,_0x2489dd]of _0x142ddf){const _0xd122ad=_0xd600d8(),_0x9b3b29={'key':_0x842792,'oldValue':_0x2489dd,'newValue':_0x526d71};_0x842792['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':_0x842792});const _0x584134=('attribute:'+(_0x842792+'|'+Gt({'newValue':_0x526d71})))['substring'](0x0,0x3c),_0x582c24=this['_setSuggestionData']({'id':_0xd122ad,'type':_0x584134,'data':_0x9b3b29,'createdAt':new Date(),'authorId':_0x3df614,'attributes':_0x3c9c94});_0x34ba04['push'](_0x582c24),this['_addSuggestionMarker'](_0x584134,_0xd122ad,_0x3df614,_0x5c9be5);}return _0x34ba04;}['enableDefaultAttributesIntegration'](_0x41fdf7){this['enableCommand'](_0x41fdf7,(_0x4bfc72,..._0x26cd92)=>{this['_recordAttributeChanges'](()=>{_0x4bfc72(..._0x26cd92);});});}['registerBlockAttribute'](_0x22dd6b){this['_blockAttributeKeys']['add'](_0x22dd6b);}['registerInlineAttribute'](_0x3ed41f){this['_inlineAttributeKeys']['add'](_0x3ed41f);}['_getAttributeKey'](_0x29dea1){return'attribute'==_0x29dea1['type']?_0x29dea1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x335c1f,_0x289fd8){const _0x9bc58b=_0x335c1f['getFirstMarker']();this['_model']['change'](_0x24386d=>{_0x24386d['updateMarker'](_0x9bc58b,{'range':_0x289fd8});});}['_addThreadToSuggestion'](_0x5dc453){const _0x520015=_0x5dc453['id'],_0x182b4a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x520015)||this['_commentsRepository']['addCommentThread']({'channelId':_0x182b4a,'threadId':_0x520015,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c3c5f=this['_commentsRepository']['getCommentThread'](_0x520015);_0x5c3c5f['unbind']('isRemovable'),_0x5c3c5f['isRemovable']=!0x1,_0x5dc453['commentThread']=_0x5c3c5f;}['_checkSuggestionCorrectness'](_0x912153,_0x42ea80,_0x1c96db,_0x3b15ff){if(_0x912153['type']!=_0x42ea80||_0x912153['subType']!=_0x1c96db||_0x912153['creator']['id']!=_0x3b15ff)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x211b8d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x109958,_0x12e763){const _0x1f3eda=_0x109958['getFirstRange']();if(_0x12e763['isEqual'](_0x1f3eda))_0x109958['removeMarkers']();else{if(_0x1f3eda['containsRange'](_0x12e763)){const _0x2c7197=this['_model']['createPositionAt'](_0x12e763['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x109958,this['_model']['createRange'](_0x1f3eda['start'],_0x2c7197));const _0x58a369=_0xd600d8(),_0x388167=_0x109958['creator']['id'],_0xb72c7a=_0x109958['type']+':'+_0x109958['subType'];this['_setSuggestionData']({'id':_0x58a369,'type':_0xb72c7a,'createdAt':new Date(),'authorId':_0x388167,'data':_0x109958['data'],'attributes':_0x109958['attributes']});const _0x5cb431=this['_model']['createPositionAt'](_0x12e763['end']['parent'],'after'),_0x31cb44=this['_model']['createRange'](_0x5cb431,_0x1f3eda['end']);this['_addSuggestionMarker'](_0xb72c7a,_0x58a369,_0x388167,_0x31cb44);}else{if(_0x1f3eda['containsPosition'](_0x12e763['start'])){const _0x467d05=this['_model']['createPositionAt'](_0x12e763['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x109958,this['_model']['createRange'](_0x1f3eda['start'],_0x467d05));}else{const _0xb7206e=this['_model']['createPositionAt'](_0x12e763['end']['parent'],'after');this['_setSuggestionRange'](_0x109958,this['_model']['createRange'](_0xb7206e,_0x1f3eda['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4ebd24){for(const {suggestion:_0x1e5322,meta:_0x59dd25}of this['_findSuggestions'](_0x4ebd24,'insertion')){if(!_0x59dd25['isOwn'])continue;const _0x716c28=_0x1e5322['getRanges']();for(const _0x52f3c5 of _0x716c28)if(!_0x4ebd24['getDifference'](_0x52f3c5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2d85b4){const _0x27973a=this['editor']['plugins']['get']('Users')['getUser'](_0x2d85b4);if(!_0x27973a)throw new _0x211b8d('track-changes-user-not-found',this);return _0x27973a;}['_getExternalAuthor'](_0x1a3ed3){const _0x62c52e=this['editor']['plugins']['get']('Users'),_0x4df3c8=_0x3c88ec('external:'+_0x1a3ed3),_0x2f9851=_0x62c52e['getUser'](_0x4df3c8);return _0x2f9851||_0x62c52e['addUser']({'id':_0x4df3c8,'name':_0x1a3ed3});}['_createSuggestion'](_0x12af93,_0x330f19,_0x545e3e,_0xf432bb,_0x389efc){const _0x303d60=this['_getAuthorFromId'](_0xf432bb),_0x3cdc1b=this['_suggestionFactory']['buildSuggestion'](_0x12af93,_0x330f19,_0x545e3e,_0x303d60,_0x389efc,_0x2a41a5=>{this['_updateSuggestionData'](_0x545e3e,{'attributes':_0x2a41a5});const _0x55551b=this['getSuggestion'](_0x545e3e);this['_joinWithAdjacentSuggestions'](new Set([_0x55551b])),this['_refreshSuggestionsChain'](new Set([_0x55551b]));});return this['listenTo'](_0x3cdc1b,'accept',()=>{this['_updateSuggestionData'](_0x545e3e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3cdc1b,'discard',()=>{this['_updateSuggestionData'](_0x545e3e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x545e3e,_0x3cdc1b),this['_suggestionState']['set'](_0x3cdc1b,'notReady'),_0x3cdc1b;}['_splitMarkerName'](_0x223d3f){const _0x4a7e7c=_0x223d3f['split'](':');return{'group':_0x4a7e7c[0x0],'type':_0x4a7e7c[0x1],'subType':_0x4a7e7c['length']>=0x5?_0x4a7e7c[0x2]:null,'id':_0x4a7e7c['length']<0x5?_0x4a7e7c[0x2]:_0x4a7e7c[0x3],'authorId':_0x4a7e7c['length']<0x5?_0x4a7e7c[0x3]:_0x4a7e7c[0x4],'markerCount':0x6==_0x4a7e7c['length']?_0x4a7e7c[0x5]:null};}['_breakSuggestionMarker'](_0xf2734f,_0x434b8e,_0x162973){const _0x289767=_0xf2734f['getFirstRange'](),_0x2d55a0=_0x289767['start'],_0x45ff7e=_0x289767['end'];this['_setSuggestionRange'](_0xf2734f,this['_model']['createRange'](_0x2d55a0,_0x434b8e));const _0x30e83a=_0xd600d8(),_0x429317=_0xf2734f['creator']['id'],_0x43584b=_0xf2734f['type']+(_0xf2734f['subType']?':'+_0xf2734f['subType']:'');this['_setSuggestionData']({'id':_0x30e83a,'type':_0x43584b,'createdAt':new Date(),'authorId':_0x429317,'originalSuggestionId':_0xf2734f['id'],'attributes':_0xf2734f['attributes'],'data':_0xf2734f['data']});const _0x3c9ac0=this['_getAttributeKey'](_0xf2734f);('formatBlock'==_0xf2734f['type']||_0x3c9ac0&&this['_isBlockAttribute'](_0x3c9ac0))&&(_0x162973=this['_model']['createPositionBefore'](_0x162973['parent'])),this['_addSuggestionMarker'](_0x43584b,_0x30e83a,_0x429317,this['_model']['createRange'](_0x162973,_0x45ff7e));}['_findSuggestions'](_0x5a7089,_0x4294e1=null){const _0x2f01e6=[],_0x315718=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a7089)||(_0x5a7089=[_0x5a7089]);for(const _0x13d947 of this['getSuggestions']()){if(!_0x13d947['isInContent'])continue;if(_0x4294e1&&_0x13d947['type']!=_0x4294e1)continue;let _0x5b3dd5=!0x1;for(const _0x19b73b of _0x13d947['getRanges']()){for(const _0x1ea99e of _0x5a7089){const _0x1c568b=_0x1ea99e['start']['isEqual'](_0x19b73b['end'])||_0x1ea99e['end']['isEqual'](_0x19b73b['start']);if(_0x1c568b||_0x1ea99e['getIntersection'](_0x19b73b)){const _0x4ceb22=_0x1ea99e['containsRange'](_0x19b73b)&&Ot(this['_model']['schema'],_0x19b73b['start'],_0x1ea99e),_0x2a343b=_0x19b73b['containsRange'](_0x1ea99e)&&Ot(this['_model']['schema'],_0x1ea99e['start'],_0x19b73b);_0x2f01e6['push']({'suggestion':_0x13d947,'meta':{'isOwn':_0x315718==_0x13d947['author'],'isNextTo':_0x1c568b,'isInsideObject':_0x4ceb22,'containsRangeInObject':_0x2a343b}}),_0x5b3dd5=!0x0;break;}}if(_0x5b3dd5)break;}}return _0x2f01e6;}['_addSuggestionMarker'](_0x4099e8,_0x58bda8,_0x124d3d,_0x3913ce,_0x58856e){this['_model']['change'](_0x5e0c65=>{let _0x322a7f='suggestion:'+_0x4099e8+':'+_0x58bda8+':'+_0x124d3d;_0x58856e&&(_0x322a7f=_0x322a7f+':'+_0x58856e),_0x5e0c65['addMarker'](_0x322a7f,{'range':_0x3913ce,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x90af82){const _0x258345=_0x90af82['previous'],_0x5a09ea=_0x90af82['next'];_0x90af82['previous']=null,_0x90af82['next']=null,null!=_0x258345&&_0x258345['next']==_0x90af82&&(_0x258345['next']=_0x5a09ea),null!=_0x5a09ea&&_0x5a09ea['previous']==_0x90af82&&(_0x5a09ea['previous']=_0x258345),'ready'==this['_suggestionState']['get'](_0x90af82)&&(this['_suggestionState']['set'](_0x90af82,'removed'),this['fire']('suggestionUnloaded',_0x90af82,_0x258345,_0x5a09ea));}['_setSuggestionData'](_0x249c97){const _0x4bc6a0=_0x249c97['id'],_0x3271f4=this['addSuggestionData'](_0x249c97);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a22a8=this['editor']['plugins']['get']('PendingActions'),_0x4f2b46=_0x3271f4['hasComments'],_0xf26ef9=_0x3271f4['subType']?_0x3271f4['type']+':'+_0x3271f4['subType']:_0x3271f4['type'],_0x10025f=this['editor']['locale'],_0x597306=_0x3a22a8['add'](o(_0x10025f,'PENDING_ACTION_SUGGESTION')),_0x14917b={'id':_0x4bc6a0,'type':_0xf26ef9,'hasComments':_0x4f2b46,'data':_0x249c97['data']||null,'originalSuggestionId':_0x249c97['originalSuggestionId']||null,'attributes':_0x3271f4['attributes']};this['_adapter']['addSuggestion'](_0x14917b)['then'](_0x227f93=>{_0x3271f4['_saved']=!0x0,_0x3a22a8['remove'](_0x597306),_0x227f93&&_0x227f93['createdAt']&&(this['_suggestions']['get'](_0x4bc6a0)['createdAt']=_0x227f93['createdAt']);})['catch'](_0xe3baca=>{throw _0x561d8c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3271f4['discard']();}),_0x3271f4['stopListening'](),this['_suggestions']['delete'](_0x3271f4['id']),this['_suggestionState']['delete'](_0x3271f4),_0xe3baca;});}return _0x3271f4;}['_isBlockAttribute'](_0x2e9633){return this['_blockAttributeKeys']['has'](_0x2e9633);}['_updateSuggestionData'](_0x27fd5e,_0xe5eed6){const _0x12c0b3=this['editor']['plugins']['get']('PendingActions'),_0x233626=this['getSuggestion'](_0x27fd5e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x233626['_saved']){const _0x1b2954=_0x12c0b3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x27fd5e,_0xe5eed6)['then'](()=>{_0x12c0b3['remove'](_0x1b2954);});}else _0x233626['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x27fd5e,_0xe5eed6);});}}['_getSuggestionData'](_0x21643c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x211b8d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x21643c);}['_handleNewSuggestionMarker'](_0x3ec6a3){const {id:_0x38790c,type:_0x1cf81d,subType:_0x2fba3e,authorId:_0x3e02e6}=this['_splitMarkerName'](_0x3ec6a3),_0x4be767=this['_suggestions']['get'](_0x38790c)||this['_createSuggestion'](_0x1cf81d,_0x2fba3e,_0x38790c,_0x3e02e6,{});switch(this['_checkSuggestionCorrectness'](_0x4be767,_0x1cf81d,_0x2fba3e,_0x3e02e6),this['_suggestionState']['get'](_0x4be767)){case'notReady':this['_getSuggestionData'](_0x38790c)['then'](_0x1ae0e1=>{let _0x22b299=Promise['resolve']();_0x1ae0e1['hasComments']&&(_0x22b299=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x38790c})),_0x22b299['then'](()=>{this['addSuggestionData'](_0x1ae0e1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4be767,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x38790c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4be767,'ready'),this['fire']('suggestionLoaded',_0x4be767);break;case'ready':this['fire']('suggestionChanged',_0x4be767);}return _0x4be767['addMarkerName'](_0x3ec6a3),_0x4be767;}['_refreshSuggestionsChain'](_0x592815){const _0x38808d=Array['from'](_0x592815),_0x483629=_0x38808d['filter'](_0x2652e7=>'attribute'==_0x2652e7['type']);this['_refreshAttributeSuggestionsChain'](_0x483629);const _0x1de6c5=_0x38808d['filter'](_0x23893b=>!_0x23893b['isMultiRange']&&'attribute'!=_0x23893b['type']),_0x5ccedd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43ae2b=>!_0x43ae2b['isMultiRange']&&'attribute'!=_0x43ae2b['type']),_0x4e6c51=_0x5ccedd['filter'](_0x3e0be7=>!_0x592815['has'](_0x3e0be7)),_0x2fa0ed=new Map(_0x5ccedd['map'](_0x51402f=>[_0x51402f,this['_suggestionFactory']['getSuggestionCallback'](_0x51402f['type'],_0x51402f['subType'],'chain')])),_0x1261e6=new Map(_0x5ccedd['map'](_0x3aaea7=>[_0x3aaea7,_0x3aaea7['getFirstRange']()])),_0x464246=new Set(),_0x4dfc98=new Set();for(let _0x5b2261=0x0;_0x5b2261<_0x1de6c5['length'];_0x5b2261++)_0x477c61(_0x1de6c5[_0x5b2261],_0x1de6c5,_0x5b2261+0x1);for(let _0x41a127=0x0;_0x41a127<_0x1de6c5['length'];_0x41a127++)_0x477c61(_0x1de6c5[_0x41a127],_0x4e6c51,0x0);const _0x51bba4=new Set();for(let _0x2df335=0x0;_0x2df335<_0x1de6c5['length'];_0x2df335++){const _0x3123f4=_0x1de6c5[_0x2df335];!_0x4dfc98['has'](_0x3123f4)&&_0x3123f4['previous']&&(_0x51bba4['add'](_0x3123f4['previous']),_0x3123f4['previous']['next']===_0x3123f4&&(_0x3123f4['previous']['next']=null),_0x3123f4['previous']=null),!_0x464246['has'](_0x3123f4)&&_0x3123f4['next']&&(_0x51bba4['add'](_0x3123f4['next']),_0x3123f4['next']['previous']===_0x3123f4&&(_0x3123f4['next']['previous']=null),_0x3123f4['next']=null);}function _0x477c61(_0x34c044,_0x3a0e7c,_0x3babc2){for(let _0x45bf77=_0x3babc2;_0x45bf77<_0x3a0e7c['length'];_0x45bf77++){const _0x142a0b=_0x68894b(_0x34c044,_0x3a0e7c[_0x45bf77]);_0x142a0b&&(_0x142a0b[0x0]['next']=_0x142a0b[0x1],_0x142a0b[0x1]['previous']=_0x142a0b[0x0],_0x464246['add'](_0x142a0b[0x0]),_0x4dfc98['add'](_0x142a0b[0x1]));}}function _0x68894b(_0x11d0e3,_0x14292e){if(_0x11d0e3['author']['id']!==_0x14292e['author']['id'])return null;const _0x957579=_0x2fa0ed['get'](_0x11d0e3)(_0x11d0e3,_0x14292e,_0x1261e6['get'](_0x11d0e3),_0x1261e6['get'](_0x14292e));if(!_0x957579)return null;return _0x2fa0ed['get'](_0x14292e)(_0x11d0e3,_0x14292e,_0x1261e6['get'](_0x11d0e3),_0x1261e6['get'](_0x14292e))?_0x957579[0x1]['commentThread']&&_0x957579[0x1]['commentThread']['length']?null:_0x957579:null;}_0x51bba4['size']&&this['_refreshSuggestionsChain'](_0x51bba4);}['_refreshAttributeSuggestionsChain'](_0x3ecaa7){if(0x0==_0x3ecaa7['length'])return;const _0x31fc71=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c2404=>'attribute'==_0x2c2404['type']&&_0x2c2404['_isDataLoaded']),_0x5e37b5=[],_0x34b641=new Map();for(const _0x20d053 of _0x31fc71){const _0x2b6840=_0x3c88ec(_0x20d053['attributes']);_0x34b641['has'](_0x2b6840)||(_0x34b641['set'](_0x2b6840,_0x5e37b5['length']),_0x5e37b5['push']([]));const _0x580933=_0x34b641['get'](_0x2b6840);_0x5e37b5[_0x580933]['push'](_0x20d053);}!(function(){_0x5e37b5['sort']((_0x291b31,_0x3aa5ab)=>{const _0x2b148f=_0x291b31[0x0]['createdAt'],_0x281871=_0x3aa5ab[0x0]['createdAt'];return _0x2b148f==_0x281871?_0x291b31[0x0]['attributes']['groupId']<_0x3aa5ab[0x0]['attributes']['groupId']?-0x1:0x1:_0x2b148f<_0x281871?-0x1:0x1;});for(const _0x16226b of _0x5e37b5)_0x16226b['sort']((_0x5c7093,_0x473aed)=>_0x5c7093['id']<_0x473aed['id']?-0x1:0x1);}());for(let _0x549d3a=0x0;_0x549d3a<_0x5e37b5['length'];_0x549d3a++){if(0x0==_0x5e37b5[_0x549d3a]['length'])continue;const _0x51af2b=[];for(let _0x440bef=_0x549d3a+0x1;_0x440bef<_0x5e37b5['length'];_0x440bef++)0x0!=_0x5e37b5[_0x440bef]['length']&&_0x1b5206(_0x5e37b5[_0x549d3a],_0x5e37b5[_0x440bef])&&_0x51af2b['push'](_0x440bef);for(const _0x1f7faa of _0x51af2b)_0x5e37b5[_0x549d3a]=_0x5e37b5[_0x549d3a]['concat'](_0x5e37b5[_0x1f7faa]),_0x5e37b5[_0x1f7faa]=[];}for(const _0x3511f5 of _0x5e37b5)for(let _0x77e2a6=0x0;_0x77e2a6<_0x3511f5['length'];_0x77e2a6++){const _0x51a7bb=_0x3511f5[_0x77e2a6+0x1]||null;_0x3511f5[_0x77e2a6]['next']!==_0x51a7bb&&(_0x3511f5[_0x77e2a6]['next']=_0x51a7bb);}for(const _0x16d6be of _0x5e37b5)for(let _0x5db8e9=0x0;_0x5db8e9<_0x16d6be['length'];_0x5db8e9++){const _0x45f01c=_0x16d6be[_0x5db8e9-0x1]||null;_0x16d6be[_0x5db8e9]['previous']!==_0x45f01c&&(_0x16d6be[_0x5db8e9]['previous']=_0x45f01c);}function _0x1b5206(_0x8e3da,_0x4c0eec){if(_0x8e3da[0x0]['attributes']['groupId']!==_0x4c0eec[0x0]['attributes']['groupId']&&_0x8e3da[0x0]['author']!==_0x4c0eec[0x0]['author'])return!0x1;if(!function(_0x31063f,_0x333550){if(!_0x31063f['hasComments']&&!_0x333550['hasComments'])return!0x0;if(_0x31063f['hasComments']&&_0x333550['hasComments'])return!0x1;if(_0x31063f['hasComments']&&_0x333550['createdAt']<_0x31063f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x333550['hasComments']&&_0x31063f['createdAt']<_0x333550['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x8e3da[0x0],_0x4c0eec[0x0]))return!0x1;const _0x362bf6=Tt(_0x8e3da[0x0]['attributes'],'groupId'),_0x3ef5ba=Tt(_0x4c0eec[0x0]['attributes'],'groupId');if(!_0x599b4c(_0x362bf6,_0x3ef5ba))return!0x1;return!!_0x8e3da['every'](_0x1167d0=>_0x4c0eec['some'](_0x339f95=>_0x1167d0['getFirstRange']()['isEqual'](_0x339f95['getFirstRange']())))&&_0x4c0eec['every'](_0x585982=>_0x8e3da['some'](_0x2e4860=>_0x585982['getFirstRange']()['isEqual'](_0x2e4860['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2e063b){const _0x37b743=Array['from'](_0x2e063b),_0x4e3634=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5c1f00=_0x4e3634['filter'](_0xfbf6a4=>!_0x2e063b['has'](_0xfbf6a4)),_0xeb30c=new Map(_0x37b743['map'](_0xbd775e=>[_0xbd775e,this['_suggestionFactory']['getSuggestionCallback'](_0xbd775e['type'],_0xbd775e['subType'],'join')])),_0x16c7d1=new Map(_0x4e3634['map'](_0x34f349=>[_0x34f349,_0x34f349['getRanges']()]));for(let _0xc7be4d=0x0;_0xc7be4d<_0x37b743['length'];_0xc7be4d++){if(_0x33fde5(this,_0x37b743[_0xc7be4d],_0x37b743,_0xc7be4d+0x1))return!0x0;}for(let _0x39984a=0x0;_0x39984a<_0x37b743['length'];_0x39984a++){if(_0x33fde5(this,_0x37b743[_0x39984a],_0x5c1f00,0x0))return!0x0;}return!0x1;function _0x33fde5(_0x17a2e6,_0x16f887,_0x312d20,_0x3b328c){for(let _0x3cfac7=_0x3b328c;_0x3cfac7<_0x312d20['length'];_0x3cfac7++){const _0x24a7c8=_0x312d20[_0x3cfac7];if(_0x24a7c8['type']!==_0x16f887['type']||_0x24a7c8['author']['id']!==_0x16f887['author']['id']||_0x24a7c8['subType']!==_0x16f887['subType'])continue;if(!Jt(_0x16f887,_0x24a7c8))continue;if('attribute'==_0x16f887['type']&&_0x16f887['data']['oldValue']!=_0x24a7c8['data']['oldValue'])continue;if('attribute'==_0x16f887['type']&&_0x17a2e6['_isBlockAttribute'](_0x16f887['data']['key']))continue;if('formatBlock'==_0x16f887['type']){const _0x2f530b=_0x17a2e6['editor']['model'],_0x56a1e5=_0x16f887['getContainedElement']();if(_0x56a1e5&&(_0x2f530b['schema']['isObject'](_0x56a1e5)||_0x2f530b['schema']['isLimit'](_0x56a1e5)))continue;}const _0xe2c7d9=_0xeb30c['get'](_0x16f887),_0x42ccfe=_0x16c7d1['get'](_0x16f887),_0x1f960e=_0x16c7d1['get'](_0x24a7c8),_0x4d990e=_0x16f887['commentThread']&&_0x16f887['commentThread']['length'],_0x17089f=_0x24a7c8['commentThread']&&_0x24a7c8['commentThread']['length'];if(!_0x4d990e&&_0xe2c7d9(_0x1f960e,_0x42ccfe))return _0x17a2e6['_joinSuggestions'](_0x24a7c8,_0x16f887),_0x16c7d1['delete'](_0x16f887),!0x0;if(!_0x17089f&&_0xe2c7d9(_0x42ccfe,_0x1f960e))return _0x17a2e6['_joinSuggestions'](_0x16f887,_0x24a7c8),_0x16c7d1['delete'](_0x24a7c8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c24f4,_0x5bf39f){if(_0x2c24f4['isMultiRange']){for(const _0x4b79da of _0x5bf39f['getRanges']())_0x2c24f4['addRange'](_0x4b79da);}else{const _0x54af96=_0x5bf39f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c24f4,this['_model']['createRange'](_0x2c24f4['getFirstRange']()['start'],_0x54af96));}_0x5bf39f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4aaba7,_0x3d3652,_0x1584c6){const _0x4f8bc7=_0x4aaba7['startsWith']('format')||_0x4aaba7['startsWith']('attribute')?'FORMATTING':_0x4aaba7['toUpperCase']();return o(this['editor']['locale'],_0x3d3652+'_'+_0x4f8bc7+'_SUGGESTION_ANNOUNCEMENT',_0x1584c6);}['_initAriaMarkerChangeAnnouncements'](){const _0x2e9394=this['editor'];if(!_0x2e9394['ui'])return;const {ariaLiveAnnouncer:_0x4160af}=_0x2e9394['ui'];_0x5abc58(this['_model'],({left:_0x53e042,entered:_0x3d9a95})=>{for(const _0x294d60 of _0x53e042){const {group:_0x590c1a,type:_0x53076a}=this['_splitMarkerName'](_0x294d60['name']);if('suggestion'===_0x590c1a){_0x4160af['announce'](this['_getMarkerAnnouncementText'](_0x53076a,'LEAVE'));break;}}for(const _0x235e81 of _0x3d9a95){const {group:_0x17c4f7,type:_0x535c0f}=this['_splitMarkerName'](_0x235e81['name']);if('suggestion'===_0x17c4f7){_0x4160af['announce'](this['_getMarkerAnnouncementText'](_0x535c0f,'ENTER',_0x51ffb5(_0x2c24fb)));break;}}});}['_processAttributeChanges'](_0x5a562e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4aed47=this['editor'],_0x40877e=_0x4aed47['model']['document']['differ']['getChanges']();if(0x0==_0x40877e['length'])return!0x1;const _0x44f4cd=[],_0x4f9f9a=_0x40877e['filter'](_0x308e1a=>'attribute'==_0x308e1a['type']),_0x5896e4=_0x40877e['filter'](_0xd228e=>'insert'==_0xd228e['type']&&'$text'!=_0xd228e['name']),_0x3bd3b6=_0x40877e['filter'](_0xa44326=>'remove'==_0xa44326['type']&&'$text'!=_0xa44326['name']);for(const _0x51236a of _0x4f9f9a)_0x44f4cd['push']({'key':_0x51236a['attributeKey'],'newValue':_0x51236a['attributeNewValue'],'oldValue':_0x51236a['attributeOldValue'],'range':Pt(_0x51236a['range'],_0x4aed47['model'])});for(const _0x3a5c8e of _0x5896e4){const _0x3704b5=_0x3bd3b6['find'](_0x54fec4=>_0x54fec4['position']['isEqual'](_0x3a5c8e['position']));_0x3704b5&&_0x44f4cd['push']({'key':m,'newValue':_0x3a5c8e['name'],'oldValue':_0x3704b5['name'],'range':_0x4aed47['model']['createRangeOn'](_0x3a5c8e['position']['nodeAfter'])});}return 0x0!=_0x44f4cd['length']&&this['_reduceExistingSuggestions'](_0x5a562e,_0x44f4cd);}['_processAttributeSuggestions'](_0x23ac47){let _0x268e85=!0x1;const _0x2534db=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3840af=>_0x3840af['data']['newRange']&&_0x3840af['name']['startsWith']('suggestion:attribute:'));for(const _0x35db78 of _0x2534db){const {subType:_0x8afd95,id:_0x4fc289}=this['_splitMarkerName'](_0x35db78['name']),_0x321019=_0x8afd95['split']('|')[0x0];for(const _0x25e18c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x25e18c['id']!=_0x4fc289&&'attribute'==_0x25e18c['type']&&_0x25e18c['data']&&_0x25e18c['data']['key']==_0x321019&&_0x25e18c['getFirstRange']()['isIntersecting'](_0x35db78['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x25e18c,_0x35db78['data']['newRange'],_0x23ac47),_0x268e85=!0x0);}return _0x268e85;}['_recordAttributeChanges'](_0x255285){this['_recordAttributeSuggestions']=!0x0,_0x255285();}['_isRegisteredAttribute'](_0x42050b){const _0x34f2d6=this['_isBlockAttribute'](_0x42050b),_0x42045c=this['_inlineAttributeKeys']['has'](_0x42050b);return _0x34f2d6||_0x42045c;}['_reduceExistingSuggestions'](_0x3ebf05,_0x6f5f7){if(0x0==_0x6f5f7['length'])return!0x1;let _0x2985ec=!0x1;for(const _0x1f35fb of _0x6f5f7){const _0x5a30c2=this['_findSuggestions'](_0x1f35fb['range'],'attribute')['filter'](_0xcd01a4=>!_0xcd01a4['meta']['isNextTo'])['map'](_0x425cbe=>_0x425cbe['suggestion']),_0xa21c00=_0x3c88ec({'newValue':_0x1f35fb['newValue']});_0x5a30c2['filter'](_0xa7ff20=>{const [_0x4d2eb9,_0x20d95b]=_0xa7ff20['subType']['split']('|');return _0x4d2eb9==_0x1f35fb['key']&&_0x20d95b!=_0xa21c00;})['forEach'](_0x1e52cb=>{this['_reduceSuggestionAttributeRange'](_0x1e52cb,_0x1f35fb['range'],_0x3ebf05),_0x2985ec=!0x0;});}return _0x2985ec;}['_reduceSuggestionAttributeRange'](_0x1ceee2,_0x596023,_0x54301a){const _0x5000eb=_0x1ceee2['getFirstRange']()['getDifference'](_0x596023);0x0!==_0x5000eb['length']?0x1!==_0x5000eb['length']?this['_breakSuggestionMarker'](_0x1ceee2,_0x596023['start'],_0x596023['end']):this['_setSuggestionRange'](_0x1ceee2,_0x5000eb[0x0]):_0x54301a['removeMarker'](_0x1ceee2['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x546002){this['_editor']=_0x546002,this['_model']=_0x546002['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e1313,_0x4cca15,_0x1e79af,_0x1d287f,_0x2be239,_0x1a4714){return new u(this['_model'],{'type':_0x5e1313,'subType':_0x4cca15,'id':_0x1e79af,'author':_0x1d287f,'creator':_0x1d287f,'attributes':_0x2be239,'onAttributesChange':_0x1a4714,'onAccept':(..._0x18af2e)=>this['getSuggestionCallback'](_0x5e1313,_0x4cca15,'accept')(..._0x18af2e),'onDiscard':(..._0x56cb2e)=>this['getSuggestionCallback'](_0x5e1313,_0x4cca15,'discard')(..._0x56cb2e)});}['registerCustomCallback'](_0x40332c,_0x498784,_0x34ae62,_0x18d044){const _0x2bd565=_0x40332c+':'+_0x498784+':'+_0x34ae62;this['_customCallbacks']['set'](_0x2bd565,_0x18d044);}['getSuggestionCallback'](_0x2d2c83,_0x4dc5d3,_0x542f18){const _0x3d2505=_0x2d2c83+':'+_0x4dc5d3+':'+_0x542f18;return this['_customCallbacks']['get'](_0x3d2505)||this['_defaultCallbacks']['get'](_0x2d2c83+':'+_0x542f18);}['_registerDefaultCallbacks'](){const _0x190ac8=()=>!0x1,_0x5c3257=_0x13b41e=>{_0x13b41e['sort']((_0x1034d9,_0x14e756)=>_0x1034d9['start']['isBefore'](_0x14e756['start'])?0x1:-0x1),this['_model']['change'](_0x282b63=>{for(const _0x565a4e of _0x13b41e){let _0x183711;_0x183711=_0x565a4e['end']['isAtEnd']&&_0x565a4e['end']['parent']==_0x565a4e['start']['nodeAfter']?_0x282b63['createSelection'](_0x565a4e['start']['nodeAfter'],'on'):_0x282b63['createSelection'](_0x565a4e),this['_model']['deleteContent'](_0x183711,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5be99a=(_0x4df814,_0x5b197b)=>{_0x5b197b&&this['_model']['change'](_0x3a880e=>{const {commandName:_0x35e029,commandParams:_0x276345=[]}=_0x5b197b,_0x36c15c=_0x4df814['map'](_0x587915=>(Vt(_0x587915)&&(_0x587915=this['_model']['createRange'](_0x587915['end'])),_0x587915))['filter'](_0x174cd7=>'$graveyard'!==_0x174cd7['root']['rootName']);if(_0x36c15c['length']<0x1)return;const _0x84d138=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x72e077=>_0x5e2088['fromRange'](_0x72e077));_0x3a880e['setSelection'](_0x36c15c);for(const _0x308bf1 of this['_editor']['commands']['commands']())_0x308bf1['refresh']();_0x276345['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x35e029,..._0x276345);const _0x1f4eec=_0x84d138['filter'](_0x1ff8d9=>'$graveyard'!=_0x1ff8d9['root']['rootName']);_0x1f4eec['length']>0x0&&_0x3a880e['setSelection'](_0x1f4eec);for(const _0x51a3fa of _0x84d138)_0x51a3fa['detach']();});},_0x4c1e16=(_0x1e6299,_0x228400)=>0x1==_0x1e6299['length']&&0x1==_0x228400['length']&&_0x1e6299[0x0]['end']['isEqual'](_0x228400[0x0]['start']),_0x10384e=(_0x1960bb,_0x3f669f,_0x5e8546,_0x20600e)=>Ht(_0x1960bb,_0x3f669f,_0x5e8546,_0x20600e,this['_model'])?[_0x1960bb,_0x3f669f]:Ht(_0x3f669f,_0x1960bb,_0x20600e,_0x5e8546,this['_model'])?[_0x3f669f,_0x1960bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x190ac8),this['_defaultCallbacks']['set']('insertion:discard',_0x5c3257),this['_defaultCallbacks']['set']('insertion:join',_0x4c1e16),this['_defaultCallbacks']['set']('insertion:chain',_0x10384e),this['_defaultCallbacks']['set']('deletion:accept',_0x5c3257),this['_defaultCallbacks']['set']('deletion:discard',_0x190ac8),this['_defaultCallbacks']['set']('deletion:join',_0x4c1e16),this['_defaultCallbacks']['set']('deletion:chain',_0x10384e),this['_defaultCallbacks']['set']('formatInline:accept',_0x5be99a),this['_defaultCallbacks']['set']('formatInline:discard',_0x190ac8),this['_defaultCallbacks']['set']('formatInline:join',_0x4c1e16),this['_defaultCallbacks']['set']('formatInline:chain',_0x190ac8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5be99a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x190ac8),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c1e16),this['_defaultCallbacks']['set']('formatBlock:chain',_0x190ac8),this['_defaultCallbacks']['set']('attribute:accept',_0x190ac8),this['_defaultCallbacks']['set']('attribute:discard',(_0x2b3396,_0x4d5f55)=>{if(!_0x4d5f55)return;const _0x5851bc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3f1c5f=>{if(_0x4d5f55['key']==m)for(const _0x1a3361 of _0x2b3396){const _0x4dd54d=_0x1a3361['start']['nodeAfter'],_0x275661=_0x4d5f55['oldValue'];_0x3f1c5f['rename'](_0x4dd54d,_0x275661);}else{if(_0x5851bc['_isBlockAttribute'](_0x4d5f55['key'])){for(const _0x62b73f of _0x2b3396)void 0x0!==_0x4d5f55['oldValue']?_0x3f1c5f['setAttribute'](_0x4d5f55['key'],_0x4d5f55['oldValue'],_0x62b73f['start']['nodeAfter']):_0x3f1c5f['removeAttribute'](_0x4d5f55['key'],_0x62b73f['start']['nodeAfter']);}else{for(const _0x2e30f7 of _0x2b3396)_0x4d5f55['oldValue']?_0x3f1c5f['setAttribute'](_0x4d5f55['key'],_0x4d5f55['oldValue'],_0x2e30f7):_0x3f1c5f['removeAttribute'](_0x4d5f55['key'],_0x2e30f7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c1e16);}}function Ot(_0x90c348,_0x5c6ccf,_0x47083b){for(const _0x28330b of _0x5c6ccf['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28330b['root']==_0x28330b)return!0x1;if(!_0x47083b['containsItem'](_0x28330b))return!0x1;if(_0x90c348['isObject'](_0x28330b)||_0x90c348['isLimit'](_0x28330b))return!0x0;}return!0x1;}function Vt(_0x46786f){return _0x46786f['end']['parent']==_0x46786f['start']['nodeAfter']&&_0x46786f['end']['isAtStart'];}function Ut(_0x5ae181,_0x34f0cc,_0x249ebc,_0x4b94c0){const _0x134602=_0x558f35=>!_0x558f35['item']['is']('$textProxy')&&!_0x4b94c0['isObject'](_0x558f35['item']),_0x2d1e2d=_0x5ae181['start']['getLastMatchingPosition'](_0x134602),_0x4cfe74=_0x5ae181['end']['getLastMatchingPosition'](_0x134602,{'direction':'backward'});return(!_0x5ae181['start']['isEqual'](_0x2d1e2d)||!_0x5ae181['end']['isEqual'](_0x4cfe74))&&(_0x2d1e2d['isBefore'](_0x4cfe74)?_0x249ebc['updateMarker'](_0x34f0cc,{'range':_0x249ebc['createRange'](_0x2d1e2d,_0x4cfe74)}):_0x249ebc['removeMarker'](_0x34f0cc),!0x0);}function Gt(_0x3f4853){return _0x3c88ec(_0x3f4853);}function Ft(_0x158327){const _0x51e1e2=_0x158327['start']['nodeAfter'];return _0x51e1e2&&_0x51e1e2['is']('element');}function Pt(_0x17cfad,_0x4a9f56){return null==_0x17cfad['end']['nodeBefore']&&_0x17cfad['end']['parent']==_0x17cfad['start']['nodeAfter']?Lt(_0x17cfad['start']['nodeAfter'],_0x4a9f56):_0x17cfad;}function Lt(_0x4140d6,_0x2c36fa){const _0x5e7baf=_0x2c36fa['schema']['isObject'](_0x4140d6)||_0x2c36fa['schema']['isSelectable'](_0x4140d6);return _0x2c36fa['createRange'](_0x2c36fa['createPositionAt'](_0x4140d6,'before'),_0x5e7baf?_0x2c36fa['createPositionAfter'](_0x4140d6):_0x2c36fa['createPositionAt'](_0x4140d6,'end'));}function Ht(_0xd1b159,_0x138af0,_0x164613,_0x470580,_0x531c83){if(_0xd1b159['next'])return!0x1;if(!Jt(_0xd1b159,_0x138af0))return!0x1;if(_0x164613['end']['isEqual'](_0x470580['start']))return!0x0;if(_0xd1b159['type']!=_0x138af0['type'])return!0x1;if(!_0x164613['end']['isTouching'](_0x470580['start']))return!0x1;const _0x36ae4f=_0x531c83['createRange'](_0x164613['end'],_0x470580['start'])['getWalker']();for(const _0x973cf2 of _0x36ae4f)if(['elementStart','elementEnd']['includes'](_0x973cf2['type'])&&_0x531c83['schema']['isLimit'](_0x973cf2['item']))return!0x1;return!0x0;}function Jt(_0x585188,_0x52b09a){if(!_0x585188['_isDataLoaded']||!_0x52b09a['_isDataLoaded'])return!0x1;const _0x45beb9=new Set(Object['keys'](_0x585188['attributes'])),_0x440dd3=new Set(Object['keys'](_0x52b09a['attributes']));if(_0x45beb9['delete']('groupId'),_0x440dd3['delete']('groupId'),0x0==_0x45beb9['size']&&0x0==_0x440dd3['size'])return!0x0;if(_0x45beb9['size']!=_0x440dd3['size'])return!0x1;const _0x5a8ae8={..._0x585188['attributes']},_0x3ccb13={..._0x52b09a['attributes']};return delete _0x5a8ae8['groupId'],delete _0x3ccb13['groupId'],JSON['stringify'](_0x5a8ae8)==JSON['stringify'](_0x3ccb13);}function qt(_0x69ed13,_0x38b3a4){const _0x5a0282=zt(_0x69ed13['attributes']),_0x3370b1=zt(_0x38b3a4);if(!_0x69ed13['_isDataLoaded'])return!0x1;for(const _0x387a31 of Object['keys'](_0x3370b1))if(!_0x599b4c(_0x5a0282[_0x387a31],_0x3370b1[_0x387a31]))return!0x1;return!0x0;}function zt(_0x474c61){const _0x28af21=Object['assign']({},_0x474c61);return delete _0x28af21['skipNestingCheck'],delete _0x28af21['tablePasteChainId'],_0x28af21;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x3b24e8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x192a2d,_0x1db4d2,_0x573881,_0x59f4c9){super(),this['model']=_0x1db4d2,this['view']=_0x573881,this['commentThreadController']=_0x59f4c9,this['_editor']=_0x192a2d,this['_acceptCommand']=_0x192a2d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x192a2d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2164f4,_0x3d9df4)=>_0x2164f4||_0x3d9df4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3e0077=>_0x3e0077&&this['_editor']['model']['canEditAt'](_0x1db4d2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41cf8a=>_0x41cf8a&&this['_editor']['model']['canEditAt'](_0x1db4d2['getRanges']())),this['_pendingAction']=null,_0x573881['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x573881,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x573881,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x573881,'change:isDirty',()=>{_0x573881['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 _0x238d7a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x238d7a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x193ba2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a0cc3,_0x5d2ba8,_0x404881,_0x1d185c){super(_0x2a0cc3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x577152(_0x2a0cc3,o(_0x2a0cc3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d2ba8['authoredAt']),this['bind']('authoredAt')['to'](_0x5d2ba8),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',_0x5d2ba8,'authoredAt',this,'descriptionParts',(_0x56a306,_0x1b6442,_0x3de07d)=>{const _0x534a6b=_0x3de07d['map'](_0x30e980=>ls(_0x30e980['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56a306-0x1,_0x5d2ba8['author']['name'],_0x1b6442?_0x1d185c['formatDateTime'](_0x1b6442):'',new DOMParser()['parseFromString'](_0x534a6b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x173d6d(),this['focusTracker']=new _0x369830(),this['keystrokes']=new _0x3d06ef(),this['focusCycler']=new _0x517967({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x118efe=>_0x118efe['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d2ba8,this['_localUser']=_0x404881,this['_config']=_0x1d185c,_0x1d185c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4aae6d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x245658}=this['_config'];this['commentsListView']=new _0x245658(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',_0x1d7ef2=>_0x1d7ef2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44a660,_0x57d123)=>_0x44a660||!!_0x57d123);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a51bc}=this['_config'],_0x573952=new _0x2a51bc(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x196ade=_0x573952['commentInputView'];return _0x573952['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x196ade,'value',(_0x56820c,_0x3bb88e,_0x2194fd)=>!!_0x2194fd||_0x56820c&&!_0x3bb88e),_0x196ade['on']('submit',(_0x595149,_0x49eedb)=>{this['fire']('addComment',_0x49eedb),_0x196ade['editor']['setData']('');}),_0x196ade['on']('cancel',()=>this['focus']()),_0x196ade['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x573952;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3fd129,_0x20bd1d,_0x32e838,_0x6119e){super(_0x3fd129,_0x20bd1d,_0x32e838,_0x6119e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17ba8f=>_0x17ba8f&&_0x17ba8f[0x0]?_0x17ba8f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x409df5,_0x2dfbbb)=>{let _0x406f92='';for(const _0x2e3c1d of _0x409df5)_0x406f92+='<p>'+ls(_0x2e3c1d['content'],_0x2e3c1d['color'])+'</p>';return _0x2dfbbb?_0x406f92:_0x59e3e6(_0x406f92,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6119e['SuggestionView'](_0x3fd129,_0x20bd1d,{'formatDateTime':_0x6119e['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x46c0=this['bindTemplate'],_0x4cfcb1=[this['suggestionView']];return this['commentsListView']&&_0x4cfcb1['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4cfcb1['push'](this['commentThreadInputView']),_0x4cfcb1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x46c0['if']('isActive','ck-suggestion-wrapper--active'),_0x46c0['to']('type',_0x1b909d=>'ck-suggestion-'+_0x1b909d),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':_0x46c0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4cfcb1};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x193ba2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5adbcd,_0xe014d0,_0x14d960){super(_0x5adbcd),this['_model']=_0xe014d0,this['_config']=_0x14d960,this['set']('description',''),this['bind']('authoredAt')['to'](_0xe014d0),this['acceptButton']=this['_createButton'](o(_0x5adbcd,'Accept\x20suggestion'),_0x16fa2c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5adbcd,'Discard\x20suggestion'),_0x16fa2c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a5ca3(_0x5adbcd,_0xe014d0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x173d6d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x369830(),this['keystrokes']=new _0x3d06ef(),this['focusCycler']=new _0x517967({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x42b774=>_0x42b774['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x9076d6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x9076d6['innerHTML']=this['description'],this['on']('change:description',(_0x2aabb6,_0x3b3808,_0x18209d)=>{_0x9076d6['innerHTML']=_0x18209d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x209aba=this['bindTemplate'],_0x2e79a1=[{'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']}},{'tag':'time','attributes':{'datetime':_0x209aba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x209aba['to']('authoredAt',_0x206ac6=>this['_config']['formatDateTime'](_0x206ac6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2e79a1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2e79a1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x335393,_0x114a93,_0x41051f,_0x1f1949,_0x56ec2b){const _0x497c79=new _0x428c53(this['locale']);return _0x497c79['set']({'label':_0x335393,'icon':_0x114a93,'tooltip':!0x0,'tooltipPosition':_0x56ec2b}),_0x497c79['extendTemplate']({'attributes':{'class':_0x41051f}}),_0x497c79['on']('execute',()=>{this['fire'](_0x1f1949,this['_model']['id']);}),_0x497c79;}['_setupKeyboardNavigation'](){const _0x1973ae=this['element'];this['keystrokes']['listenTo'](_0x1973ae);for(const _0x2688b1 of this['focusables'])this['focusTracker']['add'](_0x2688b1['element']),this['keystrokes']['listenTo'](_0x2688b1['element']);this['keystrokes']['set']('enter',(_0x4c5952,_0x5015f1)=>{_0x1973ae===_0x4c5952['target']&&(this['focusCycler']['focusFirst'](),_0x5015f1());}),this['keystrokes']['set']('esc',(_0x6605c3,_0x2f6968)=>{_0x1973ae!==_0x6605c3['target']&&(this['focus'](),_0x2f6968());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3b500e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x35af3d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x35e6a8){super(_0x35e6a8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c6416=this['editor']['config'];_0x3c6416['define']('trackChanges.SuggestionThreadView',re),_0x3c6416['define']('trackChanges.SuggestionView',ce),_0x3c6416['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c6416['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2b5312,_0x43fa5e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4630e3,_0x3264b2]of this['_handleControllerBuffer']){const _0x3d530f=this['_suggestionToController']['has'](_0x4630e3);_0x3d530f||_0x3264b2?_0x3d530f&&_0x3264b2&&this['_destroyController'](_0x4630e3):this['_initializeController'](_0x4630e3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2b5312,_0x43fa5e);}['init'](){const _0x4734c2=this['editor'],_0x314768=_0x4734c2['plugins']['get']('TrackChangesEditing'),_0x21c6a7=_0x4734c2['plugins']['get']('Annotations'),_0x4519ff=_0x4734c2['plugins']['get']('EditorAnnotations'),_0x53f090=_0x4734c2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4519ff['addSourceCollector'](()=>{const _0x22c060=[];for(const [_0x13bec4,_0x424831]of Array['from'](this['_suggestionToController'])){const _0x10e0cf=_0x13bec4['getAllAdjacentSuggestions'](),_0x237d6a=[];for(const _0x2a433b of _0x10e0cf){if(!_0x2a433b['isInContent'])continue;if(_0x2a433b['isMultiRange']){_0x237d6a['push'](..._0x2a433b['getRanges']());continue;}const _0x434f54=_0x2a433b['getFirstRange']();if(_0x237d6a['length']>0x0){const _0xe4b17=_0x237d6a[0x0]['getJoined'](_0x434f54);if(_0xe4b17){_0x237d6a[0x0]=_0xe4b17;continue;}}_0x237d6a['push'](_0x434f54);}_0x22c060['push']([_0x424831['view'],_0x237d6a]);}return _0x22c060;}),this['listenTo'](_0x314768,'suggestionLoaded',(_0x92e328,_0x5db73f)=>{this['listenTo'](_0x5db73f,'change:previous',(_0x129f34,_0x52c017,_0x332e3c,_0x49c202)=>{_0x5db73f['isInContent']&&(null==_0x332e3c?(this['_updateController'](_0x49c202['head']),this['_handleSuggestionControllerDelayed'](_0x5db73f,!0x1)):(this['_updateController'](_0x332e3c['head']),null==_0x49c202&&this['_handleSuggestionControllerDelayed'](_0x5db73f,!0x0)));}),null!==_0x5db73f['previous']?this['_updateController'](_0x5db73f['head']):this['_handleSuggestionControllerDelayed'](_0x5db73f,!0x1);}),this['listenTo'](_0x314768,'suggestionUnloaded',(_0x367780,_0x2a2ca1,_0x224aee)=>{this['stopListening'](_0x2a2ca1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a2ca1),this['_suggestionToController']['has'](_0x2a2ca1)&&this['_destroyController'](_0x2a2ca1),_0x224aee&&this['_updateController'](_0x224aee['head']);}),this['listenTo'](_0x314768,'suggestionChanged',(_0x451d06,_0x171022)=>{this['_updateController'](_0x171022);}),this['listenTo'](_0x21c6a7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x53f090,'addComment',(_0x315170,{threadId:_0xe62702,isFromAdapter:_0x317546})=>{if(_0x317546||!_0x314768['hasSuggestion'](_0xe62702))return;const _0x464064=_0x314768['getSuggestion'](_0xe62702);this['_suggestionToController']['get'](_0x464064)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4dca54=this['editor']['plugins']['get']('Annotations'),_0x419679=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25d846=Array['from'](_0x4dca54['activeAnnotations'],_0x2f2727=>_0x2f2727['innerView'])['filter'](_0x184974=>this['_viewToController']['has'](_0x184974)),_0xe1f226=[];for(const _0x74750f of _0x25d846){const _0x4cb045=this['_viewToController']['get'](_0x74750f)['model']['getAllAdjacentSuggestions']();_0xe1f226['push'](..._0x4cb045['reduce']((_0x4aae14,_0x528175)=>[..._0x4aae14,..._0x528175['getMarkerNames']()],[]));}_0x419679['activeMarkers']=_0xe1f226;}['_addUIComponentsToFactory'](){const _0x490767=this['editor'],_0x126dca=_0x490767['locale'],_0x23eba8=o(_0x126dca,'Track\x20changes'),_0x579f44=new Wt([{'type':'switchbutton','model':new _0x15d12e({'withText':!0x0,'isToggleable':!0x0,'label':_0x23eba8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x290a4a of _0x579f44)if(me(_0x290a4a)){const _0x27cd96=_0x490767['commands']['get'](_0x290a4a['model']['commandName']);_0x290a4a['model']['bind']('isOn','isEnabled')['to'](_0x27cd96,'value','isEnabled');}_0x490767['ui']['componentFactory']['add']('trackChanges',_0x11218f=>this['_createToolbarButton'](_0x11218f,_0x579f44,_0x23eba8)),_0x490767['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4fcc17=>this['_createMenuBarMenu'](_0x4fcc17,_0x579f44,_0x23eba8));}['_createToolbarButton'](_0x355110,_0x3ab55f,_0x296713){const _0x49b622=Qt(_0x355110,_0x2d7119),_0x5716d2=this['editor']['commands']['get']('trackChanges');_0x49b622['buttonView']['set']({'tooltip':_0x296713,'label':_0x296713,'icon':he}),_0x49b622['buttonView']['bind']('isOn')['to'](_0x5716d2,'value'),_0x49b622['buttonView']['on']('execute',()=>{_0x5716d2['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x49b622,_0x3ab55f,{'role':'menu'});const _0x592a88=[];for(const _0x5c4249 of _0x3ab55f)me(_0x5c4249)&&_0x592a88['push'](this['editor']['commands']['get'](_0x5c4249['model']['commandName']));const _0x1e5306=_0x49b622['buttonView'];return _0x1e5306['actionView']['unbind']('isEnabled'),_0x1e5306['arrowView']['unbind']('isEnabled'),_0x1e5306['actionView']['bind']('isEnabled')['to'](_0x5716d2,'isEnabled'),_0x1e5306['arrowView']['bind']('isEnabled')['toMany'](_0x592a88,'isEnabled',(..._0x454632)=>_0x454632['some'](_0x1f56e3=>_0x1f56e3)),_0x49b622['on']('execute',_0x5c3b48=>{this['editor']['execute'](_0x5c3b48['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x49b622;}['_createMenuBarMenu'](_0x4e3103,_0x332064,_0x3c08f2){const _0x11a433=new Yt(_0x4e3103),_0x242c53=this['editor']['commands']['get']('trackChanges');_0x11a433['buttonView']['set']({'label':_0x3c08f2,'icon':he});const _0x4d246f=new Zt(_0x4e3103);for(const _0x5bd787 of _0x332064){if('separator'==_0x5bd787['type']){_0x4d246f['items']['add'](new Xt(_0x4e3103));continue;}const _0x16e1c8=new te(_0x4e3103,_0x11a433),_0x372359=new _0x44f3fc(_0x4e3103),_0x44abeb=_0x5bd787['model'];_0x372359['bind'](...Object['keys'](_0x44abeb))['to'](_0x44abeb),_0x372359['delegate']('execute')['to'](_0x11a433),_0x372359['on']('execute',()=>{this['editor']['execute'](_0x44abeb['commandName']),this['editor']['editing']['view']['focus']();}),_0x16e1c8['children']['add'](_0x372359),_0x4d246f['items']['add'](_0x16e1c8);}return _0x11a433['bind']('isEnabled')['to'](_0x242c53,'isEnabled'),_0x11a433['panelView']['children']['add'](_0x4d246f),_0x11a433;}['_initializeController'](_0x3bd45e){const _0x1c7398=this['editor'],_0xb472e8=_0x1c7398['config'],_0x46a14e=_0x1c7398['plugins']['get']('Annotations'),_0x1cf33c=_0x1c7398['plugins']['get']('CommentsRepository'),_0x2493b3=_0x1c7398['plugins']['get']('EditorAnnotations'),_0x14c8b4=_0x1c7398['plugins']['get'](_0x35af3d)['me'],_0x54931f=_0xb472e8['get']('trackChanges')['SuggestionThreadView'],_0x3fccc9=_0xb472e8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x45a036,CommentThreadInputView:_0x43883e}=_0x1c7398['plugins']['get']('CommentsUI');let _0x10d21c,_0x50cc61,_0x24b21f;this['_annotationViews']['has'](_0x3bd45e['id'])?(_0x50cc61=this['_annotationViews']['get'](_0x3bd45e['id']),_0x10d21c=_0x50cc61['mainView']):(_0x10d21c=new _0x54931f(_0x1c7398['locale'],_0x3bd45e,_0x14c8b4,{'disableComments':this['_disableComments'],'editorConfig':_0xb472e8['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xb472e8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb472e8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb472e8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4d619e(_0xb472e8['get']('locale')),'CommentView':_0xb472e8['get']('comments')['CommentView'],'CommentsListView':_0x45a036,'CommentThreadInputView':_0x43883e,'SuggestionView':_0x3fccc9}),_0x10d21c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1c7398['editing']['view']['focus']();}),_0x10d21c['suggestionView']['discardButton']['on']('execute',()=>{_0x1c7398['editing']['view']['focus']();}),_0x50cc61=_0x46a14e['createAnnotationView'](this['editor']['locale'],_0x10d21c),_0x50cc61['bind']('isDirty')['to'](_0x10d21c,'isDirty'),_0x50cc61['bind']('length')['to'](_0x10d21c),_0x50cc61['bind']('type')['to'](_0x10d21c,'type',_0x3608fc=>'suggestion-'+_0x3608fc),_0x10d21c['on']('escape',()=>{_0x24b21f['fire']('escape');}),this['_annotationViews']['set'](_0x3bd45e['id'],_0x50cc61));const _0x3965ad=_0x1cf33c['createCommentThreadController'](_0x3bd45e['commentThread'],_0x10d21c),_0x482631=new ae(_0x1c7398,_0x3bd45e,_0x10d21c,_0x3965ad),_0xfdbfcd=_0x3bd45e['getAllAdjacentSuggestions']()['filter'](_0x45271c=>_0x45271c['isInContent']);_0x10d21c['descriptionParts']=_0x1c7398['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xfdbfcd),this['_suggestionToController']['set'](_0x3bd45e,_0x482631),this['_viewToController']['set'](_0x10d21c,_0x482631),_0x24b21f=_0x46a14e['createAnnotation']({'view':_0x50cc61,'target':()=>{const _0x2b51ac=[],_0x227afa=_0x3bd45e['getAllAdjacentSuggestions']()['filter'](_0x18b753=>_0x18b753['isInContent']);for(const _0x5ea112 of _0x227afa)_0x2b51ac['push'](..._0x5ea112['getMarkers']());return _0x29c9c0(_0x1c7398['editing'],_0x2b51ac);},'type':()=>'suggestion-'+_0x482631['view']['type']}),_0x1cf33c['_bindAnnotationToEditors'](_0x10d21c,_0x24b21f),_0x46a14e['add'](_0x24b21f),_0x2493b3['registerAnnotation'](_0x24b21f);}['_destroyController'](_0x40af11){const _0x2a1498=this['editor']['plugins']['get']('CommentsRepository'),_0x52c90b=this['editor']['plugins']['get']('Annotations'),_0x474558=this['_suggestionToController']['get'](_0x40af11),_0x4fe984=_0x474558['view'],_0x5928a9=_0x52c90b['getByInnerView'](_0x4fe984);_0x2a1498['_unbindEditors'](_0x4fe984),_0x5928a9&&_0x52c90b['remove'](_0x5928a9),this['_suggestionToController']['delete'](_0x40af11),this['_viewToController']['delete'](_0x4fe984),_0x474558['destroy']();}['_updateController'](_0x66ff71){if(!_0x66ff71['isInContent']||!this['_suggestionToController']['has'](_0x66ff71))return;const _0xbd872e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x365f7c=this['_suggestionToController']['get'](_0x66ff71),_0x1c299e=_0x66ff71['getAllAdjacentSuggestions']();_0x365f7c['view']['descriptionParts']=_0xbd872e['descriptionFactory']['getDescriptions'](_0x1c299e);}['destroy'](){for(const _0x52ef41 of this['_suggestionToController']['keys']())this['_destroyController'](_0x52ef41);for(const _0x3ee6b0 of this['_annotationViews']['values']())_0x3ee6b0['mainView']['destroy']();super['destroy']();}}function me(_0x21ca44){return'model'in _0x21ca44;}class k extends _0x3b500e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4ed386){this['editor']['plugins']['get'](p)['adapter']=_0x4ed386;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x404b05){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x404b05);}['getSuggestions']({skipNotAttached:_0x5410fa=!0x1,toJSON:_0x4488da=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5410fa,'toJSON':_0x4488da});}['getSuggestion'](_0x5e8d14){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5e8d14);}}const T=['Pagination'];class P extends _0x3b500e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x20641b=this['editor'];if(_0x20641b['config']['define']('trackChangesData.editorCreator',_0x3b71e1=>{const _0x16ced3=_0x20641b['model']['document']['getRootNames']()['reduce']((_0x46152e,_0x4f2c12)=>(_0x46152e[_0x4f2c12]='',_0x46152e),{});return _0x20641b['constructor']['create'](_0x16ced3,_0x3b71e1);}),'function'!=typeof _0x20641b['config']['get']('trackChangesData')['editorCreator'])throw new _0x211b8d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44b507){return N(this['editor'],!0x0,_0x44b507);}['getDataWithDiscardedSuggestions'](_0x2b2b5b){return N(this['editor'],!0x1,_0x2b2b5b);}}class D extends _0x3b500e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2e7e3b){super(_0x2e7e3b),this['result']='end';}['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 v(_0x232104){return void 0x0!==_0x232104['getRootsAttributes'];}async function N(_0x13f829,_0x2663d1,_0x2dff08){const _0xd95e0c=_0x540ad8(_0x13f829,T);_0xd95e0c['plugins']['push'](p,D),_0xd95e0c['rootsAttributes']=v(_0x13f829)?_0x13f829['getRootsAttributes']():void 0x0;const _0x384a4f=document['createDocumentFragment'](),_0x48009f=_0x13f829['config']['get']('trackChangesData')['editorCreator'],_0x3ef14d=await _0x48009f(_0xd95e0c,()=>function(_0x1a23ba){const _0x5298ef=document['createElement']('div');return _0x1a23ba['appendChild'](_0x5298ef),_0x5298ef;}(_0x384a4f));!function(_0x2a584b,_0x2a638e){const _0xe0b12=_0x2a584b['model']['document']['getRootNames']()['reduce']((_0x42c107,_0x2c67bb)=>(_0x42c107[_0x2c67bb]=_0x2a584b['data']['get']({'rootName':_0x2c67bb}),_0x42c107),{}),_0x11b643=_0x2a584b['plugins']['get']('Users')['users']['map'](_0x49f765=>({'id':_0x49f765['id'],'name':_0x49f765['name']})),_0x48840b=_0x2a584b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xbc96e3=_0x2a584b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x492bdb=_0x2a638e['plugins']['get']('Users'),_0x13b213=_0x2a638e['plugins']['get']('TrackChangesEditing'),_0x262491=_0x2a638e['plugins']['get']('CommentsRepository');for(const _0x41c014 of _0x262491['getCommentThreads']())_0x41c014['remove']();for(const _0x152c0d of _0x11b643)_0x492bdb['getUser'](_0x152c0d['id'])||_0x492bdb['addUser'](_0x152c0d);_0x492bdb['me']||_0x492bdb['useAnonymousUser']();for(const _0x479b75 of _0xbc96e3)_0x262491['addCommentThread'](_0x479b75);for(const _0x2ed0eb of _0x48840b)_0x13b213['addSuggestionData'](_0x2ed0eb);_0x2a638e['data']['set'](_0xe0b12);}(_0x13f829,_0x3ef14d),_0x3ef14d['execute'](_0x2663d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x2909c1=v(_0x3ef14d)?_0x3ef14d['getFullData'](_0x2dff08):_0x3ef14d['data']['get'](_0x2dff08);return await _0x3ef14d['destroy'](),_0x2909c1;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};