@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240702.0 → 0.0.0-nightly-20240703.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 (165) 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 +3 -3
  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/multilevellist.js +1 -1
  136. package/src/integrations/pagebreak.js +1 -1
  137. package/src/integrations/paragraph.js +1 -1
  138. package/src/integrations/removeformat.js +1 -1
  139. package/src/integrations/restrictededitingmode.js +1 -1
  140. package/src/integrations/shiftentercommand.js +1 -1
  141. package/src/integrations/standardeditingmode.js +1 -1
  142. package/src/integrations/style.js +1 -1
  143. package/src/integrations/table.js +1 -1
  144. package/src/integrations/tablecaption.js +1 -1
  145. package/src/integrations/tableclipboard.js +1 -1
  146. package/src/integrations/tablecolumnresize.js +1 -1
  147. package/src/integrations/tableheadings.js +1 -1
  148. package/src/integrations/tablemergesplit.js +1 -1
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.js +1 -1
  151. package/src/integrations/template.js +1 -1
  152. package/src/integrations/title.js +1 -1
  153. package/src/integrations/undo.js +1 -1
  154. package/src/integrations/utils.js +1 -1
  155. package/src/suggestion.js +2 -2
  156. package/src/suggestiondescriptionfactory.js +1 -1
  157. package/src/trackchanges.js +1 -1
  158. package/src/trackchangesdata.js +1 -1
  159. package/src/trackchangesediting.js +1 -1
  160. package/src/trackchangesui.js +1 -1
  161. package/src/ui/suggestioncontroller.js +2 -2
  162. package/src/ui/view/basesuggestionthreadview.js +1 -1
  163. package/src/ui/view/suggestionthreadview.js +1 -1
  164. package/src/utils/common-translations.js +1 -1
  165. 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 _0x16481a,PendingActions as _0x598d5a,icons as _0x53c6c6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x35d108,ObservableMixin as _0x136a63,uid as _0x287d7d,insertToPriorityArray as _0x33d0b0,priorities as _0x13dea8,logWarning as _0x1d1d01,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5e1628,View as _0x59c07b,ButtonView as _0x4c6253,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x214dba,hashObject as _0xdafb0a,surroundingMarkersDetector as _0x3da964,trimHtml as _0x399d49,UserView as _0x364e1f,getDateTimeFormatter as _0x4b1dd6,getAllMarkersDomElementsSorted as _0x39b42e,sanitizeEditorConfig as _0x5870c3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x35f47f,LiveRange as _0x55c0b1,LivePosition as _0x787259}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x394db3,toWidget as _0x1ae684}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x15050a,set as _0x552b72,isEqual as _0x4de750,unset as _0x2cf5bc,omit as Bt}from'lodash-es';import{Delete as _0x3e6133,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x22e146,ShiftEnter as _0x51d96c}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x461290,_0x4d8bdb){super(_0x461290),this['_enabledCommands']=_0x4d8bdb,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 _0xfbd1e0 of this['editor']['commands']['commands']())_0xfbd1e0['affectsData']&&!this['_enabledCommands']['has'](_0xfbd1e0)&&_0xfbd1e0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d5490 of this['editor']['commands']['commands']())_0x3d5490['affectsData']&&!this['_enabledCommands']['has'](_0x3d5490)&&_0x3d5490['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1244d8,_0x31c09b){super(_0x1244d8),this['_suggestions']=_0x31c09b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x21e60e){const _0xc0e730=this['_suggestions']['get'](_0x21e60e);if(!_0xc0e730)throw new _0x35d108('track-changes-accept-suggestion-not-found',this);const _0x2917f6=_0xc0e730['getRanges']();this['editor']['model']['canEditAt'](_0x2917f6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc0e730);}}class B extends ts{['_suggestions'];constructor(_0x237528,_0x28eda8){super(_0x237528),this['_suggestions']=_0x28eda8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x45fb39){const _0x40c871=this['_suggestions']['get'](_0x45fb39);if(!_0x40c871)throw new _0x35d108('track-changes-discard-suggestion-not-found',this);const _0x67d26f=_0x40c871['getRanges']();this['editor']['model']['canEditAt'](_0x67d26f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x40c871);}}function ss(_0x57064e){return _0x57064e['sort']((_0xef94dc,_0x227033)=>'deletion'==_0xef94dc['type']&&'deletion'!=_0x227033['type']?-0x1:'deletion'!=_0xef94dc['type']&&'deletion'==_0x227033['type']?0x1:0x0);}function to(_0x469f73,_0x212d97){let _0x25b7c8,_0x1fd65c=0x0;const _0x341515=[],_0x12673=_0x212d97['schema'];for(;_0x1fd65c<_0x469f73['length'];){const _0x1805f1=_0x469f73[_0x1fd65c],_0x49316c=_0x469f73[_0x1fd65c+0x1];_0x25b7c8||(_0x25b7c8=_0x212d97['createPositionBefore'](_0x1805f1)),co(_0x212d97,_0x1805f1,_0x49316c)||(_0x341515['push'](_0x212d97['createRange'](_0x25b7c8,_0x12673['isObject'](_0x1805f1)?_0x212d97['createPositionAfter'](_0x1805f1):_0x212d97['createPositionAt'](_0x1805f1,'end'))),_0x25b7c8=null),_0x1fd65c++;}return _0x341515;}function co(_0x35378e,_0x5867b5,_0x46b180){if(!_0x46b180)return!0x1;const _0x14a67c=_0x35378e['createPositionAfter'](_0x5867b5),_0x57f4e5=_0x35378e['createPositionBefore'](_0x46b180);return _0x14a67c['isTouching'](_0x57f4e5);}function rs(_0x38ed41,_0x5baeb2,_0x22b3e3){for(;_0x22b3e3['length'];){const _0x539b8b=_0x22b3e3['splice'](0x0,0x64);_0x38ed41['change'](()=>{for(const _0x4839b1 of _0x539b8b)_0x4839b1['isInContent']&&_0x5baeb2['execute'](_0x4839b1['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4c969d,_0xb1eb9a,_0x3c4149){super(_0x4c969d),this['_command']=_0xb1eb9a,this['_suggestions']=_0x3c4149,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x23a450=Array['from'](this['_suggestions']['values']())['some'](_0xa43155=>_0xa43155['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x23a450;}['execute'](){const _0x5ddceb=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3b9c11 of _0x5ddceb){const _0x4b5a52=_0x3b9c11['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b5a52))return;}rs(this['editor']['model'],this['_command'],_0x5ddceb);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x330cab,_0x3564e0,_0x1733e1){super(_0x330cab),this['_command']=_0x3564e0,this['_suggestions']=_0x1733e1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40754b=this['editor']['model']['document']['selection'],_0x418b9c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x422dd0,_0x46e1ef){const _0x627a5f=Array['from'](_0x422dd0['getRanges']()),_0x3456ed=new Set();for(const _0x3497f3 of _0x46e1ef)if(_0x3497f3['isInContent']){for(const _0x15b632 of _0x627a5f)for(const _0x151791 of _0x3497f3['getRanges']())(_0x15b632['isIntersecting'](_0x151791)||_0x422dd0['isCollapsed']&&!_0x3497f3['isMultiRange']&&_0x3497f3['next']&&_0x151791['end']['isTouching'](_0x15b632['start']))&&_0x3456ed['add'](_0x3497f3);}return _0x3456ed;}(_0x40754b,_0x418b9c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x577525=ss(Array['from'](this['_selectedSuggestions']));for(const _0x34b19d of _0x577525){const _0x27377=_0x34b19d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x27377))return;}rs(this['editor']['model'],this['_command'],_0x577525);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x136a63(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x39ed7f,_0x355c3d){super(),this['id']=_0x355c3d['id'],this['type']=_0x355c3d['type'],this['subType']=_0x355c3d['subType']||null,this['author']=_0x355c3d['author'],this['creator']=_0x355c3d['creator']||_0x355c3d['author'],this['isExternal']=Boolean(_0x355c3d['attributes']&&_0x355c3d['attributes']['@external']),this['data']=null,this['_model']=_0x39ed7f,this['_onAccept']=_0x355c3d['onAccept'],this['_onDiscard']=_0x355c3d['onDiscard'],this['_onAttributesChange']=_0x355c3d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x355c3d['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 _0x2e7910=this;for(;_0x2e7910['previous'];)_0x2e7910=_0x2e7910['previous'];return _0x2e7910;}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'](_0x428300){this['_markerNames']['add'](_0x428300);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x557018=>this['_model']['markers']['get'](_0x557018))['filter'](_0x335ddd=>_0x335ddd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x195bdf=>{for(const _0x502e7e of this['getMarkers']())_0x195bdf['removeMarker'](_0x502e7e);}),this['_markerNames']['clear']();}['removeMarker'](_0x333bb8){this['_model']['change'](_0x129bf9=>{_0x129bf9['removeMarker'](_0x333bb8);}),this['_markerNames']['delete'](_0x333bb8);}['addRange'](_0x1eeb06){const _0x8b7b49='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x8b7b49),this['_model']['change'](_0x4c5cf5=>{_0x4c5cf5['addMarker'](_0x8b7b49,{'range':_0x1eeb06,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7074ad){for(const _0x16d128 of this['getRanges']())if(_0x16d128['isIntersecting'](_0x7074ad))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xcbb2cd=>_0xcbb2cd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x555f96,_0x1a710b)=>[..._0x555f96,..._0x1a710b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x113b73=this['getRanges']();if(0x1!=_0x113b73['length'])return null;const _0x371734=_0x113b73[0x0],_0x335a62=_0x371734['start']['nodeAfter'],_0x16ea5b=_0x371734['end']['nodeBefore'];return _0x335a62 instanceof _0x35f47f?_0x335a62!=_0x16ea5b?null:_0x335a62: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 _0xfeaf8e=[];let _0x1b3c86=this['head'];for(;_0x1b3c86;)_0xfeaf8e['push'](_0x1b3c86),_0x1b3c86=_0x1b3c86['next'];return _0xfeaf8e;}['setAttribute'](_0xa5dd7a,_0x1c466d){const _0x1dd510=_0x15050a(this['attributes']);_0x552b72(_0x1dd510,_0xa5dd7a,_0x1c466d),_0x4de750(_0x1dd510,this['attributes'])||(this['attributes']=_0x1dd510,this['_onAttributesChange'](_0x1dd510));}['removeAttribute'](_0x43375b){const _0x5e6f1c=_0x15050a(this['attributes']);_0x2cf5bc(_0x5e6f1c,_0x43375b),_0x4de750(_0x5e6f1c,this['attributes'])||(this['attributes']=_0x5e6f1c,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 _0x287d7d()['substr'](0x1,0x5);}}function o(_0x19ac33,_0x1008e3,_0x3145ef){const t=_0x19ac33['t'];switch(_0x1008e3){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',_0x3145ef);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3145ef);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3145ef);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3145ef);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3145ef);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',_0x3145ef);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3145ef);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',_0x3145ef);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3145ef);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3145ef);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3145ef);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3145ef);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3145ef);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3145ef);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3145ef);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3145ef);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3145ef);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3145ef);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3145ef);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3145ef);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3145ef);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3145ef);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3145ef);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'},_0x3145ef);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3145ef);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3145ef);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3145ef);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3145ef);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3145ef);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3145ef);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3145ef);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3145ef);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'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3145ef);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3145ef);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x3145ef);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'},_0x3145ef);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1008e3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35c90a,_0x3e8686){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35c90a,this['_locale']=_0x3e8686;}['getDescriptions'](_0x337d54){const _0x32004d=[],_0x269736=new Set(),_0x130af5=new Set();for(let _0x5b8fbb=0x0;_0x5b8fbb<_0x337d54['length'];_0x5b8fbb++){const _0x4aa4bb=_0x337d54[_0x5b8fbb];if(!_0x4aa4bb['isInContent'])continue;const _0x58743c=this['_handleCustomCallbackDescription'](_0x4aa4bb);if(_0x58743c){if(null!=_0x4aa4bb['subType']){if(_0x269736['has'](_0x4aa4bb['subType']))continue;_0x269736['add'](_0x4aa4bb['subType']);}_0x32004d['push'](_0x58743c);}else{if('attribute'!=_0x4aa4bb['type'])'insertion'!=_0x4aa4bb['type']&&'deletion'!=_0x4aa4bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32004d,_0x4aa4bb,_0x337d54[_0x5b8fbb+0x1]);else{const _0x5c0b6d=_0x4aa4bb['data']['key'];if(_0x130af5['has'](_0x5c0b6d))continue;_0x130af5['add'](_0x4aa4bb['data']['key']),_0x5c0b6d==m?this['_handleRenameSuggestionDescription'](_0x32004d,_0x4aa4bb):this['_handleAttributeSuggestionDescription'](_0x32004d,_0x4aa4bb);}}}return this['_resolveDescriptionItems'](_0x32004d);}['registerDescriptionCallback'](_0x2af042){this['_customCallbacks']['push'](_0x2af042);}['registerElementLabel'](_0xf9c0ab,_0x7f7b8c,_0x90884c=_0x13dea8['normal']){'function'==typeof _0xf9c0ab?_0x33d0b0(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf9c0ab,'label':_0x7f7b8c,'priority':_0x90884c}):this['_itemLabels']['set'](_0xf9c0ab,_0x7f7b8c);}['registerAttributeLabel'](_0x772c7,_0x54462f){this['_attributeLabels']['set'](_0x772c7,_0x54462f);}['getItemLabel'](_0x5e9865,_0x2565c3=0x1){let _0x2f4a7a;for(const _0x2c2274 of this['_itemLabelsCallbacks'])if(_0x2c2274['matchingCallback'](_0x5e9865)){_0x2f4a7a=_0x2c2274['label'];break;}return _0x2f4a7a||(_0x2f4a7a=this['_itemLabels']['get'](_0x5e9865['name'])),_0x2f4a7a?_0x2f4a7a(_0x2565c3):0x1!==_0x2565c3?_0x2565c3+'\x20'+_0x5e9865['name']+'s':''+_0x5e9865['name'];}['_addDescriptionItems'](_0xf34a96,_0x4212c1){const _0x33ba4f=_0x4212c1['getFirstRange']()['getWalker'](),_0x2d3cd4='insertion'==_0x4212c1['type']?'add':'remove';for(const _0x5e7496 of _0x33ba4f){const _0x4d08cf=_0x5e7496['item'],_0x3dcf2e=_0xf34a96[_0xf34a96['length']-0x1];if(_0x4d08cf['is']('$textProxy'))_0x3dcf2e&&_0x3dcf2e['type']['indexOf']('Container')>-0x1&&_0xf34a96['pop'](),_0x3dcf2e&&'text'==_0x3dcf2e['type']?_0x3dcf2e[_0x2d3cd4]+=_0x4d08cf['data']:_0xf34a96['push']({'type':'text','add':'add'==_0x2d3cd4?_0x4d08cf['data']:'','remove':'remove'==_0x2d3cd4?_0x4d08cf['data']:''});else{if(this['_schema']['isObject'](_0x4d08cf)){const _0x286c40=_0x4d08cf;if(_0x3dcf2e&&_0x3dcf2e['type']['indexOf']('Container')>-0x1&&_0xf34a96['pop'](),'elementEnd'==_0x5e7496['type'])continue;_0x3dcf2e&&_0x3dcf2e['type']==_0x2d3cd4+'Object'&&_0x3dcf2e['element']['name']==_0x286c40['name']?_0x3dcf2e['quantity']++:_0xf34a96['push']({'type':_0x2d3cd4+'Object','element':_0x286c40,'quantity':0x1}),_0x33ba4f['skip'](_0x3c5d76=>!('elementEnd'==_0x3c5d76['type']&&_0x3c5d76['item']==_0x4d08cf));}else{if(this['_schema']['checkChild'](_0x4d08cf,'$text')||_0x4d08cf['is']('element','softBreak')){const _0x1f8733=_0x4d08cf;if('add'==_0x2d3cd4&&'elementStart'==_0x5e7496['type']||'remove'==_0x2d3cd4&&'elementEnd'==_0x5e7496['type'])continue;if(_0x3dcf2e&&-0x1==_0x3dcf2e['type']['indexOf']('Container')){'text'==_0x3dcf2e['type']&&(_0x3dcf2e[_0x2d3cd4]+='\x0a');continue;}let _0x5e867c;if(_0x5e867c='add'==_0x2d3cd4?_0x1f8733['nextSibling']&&!this['_schema']['isObject'](_0x1f8733['nextSibling'])?_0x1f8733['nextSibling']:null:_0x1f8733['previousSibling']&&!this['_schema']['isObject'](_0x1f8733['previousSibling'])?_0x1f8733['previousSibling']:null,_0x1f8733['isEmpty']||_0x5e867c&&_0x5e867c['isEmpty']){const _0x45392e=_0x5e867c&&_0x5e867c['isEmpty']?_0x5e867c:_0x1f8733;_0x3dcf2e&&_0x3dcf2e['type']==_0x2d3cd4+'EmptyContainer'&&_0x3dcf2e['element']['name']==_0x45392e['name']?_0x3dcf2e['quantity']++:_0xf34a96['push']({'type':_0x2d3cd4+'EmptyContainer','element':_0x45392e,'quantity':0x1});}else _0xf34a96['push']({'type':_0x2d3cd4+'Container','element':_0x1f8733});}}}}}['_resolveDescriptionItems'](_0x25e6f4){const _0x146341=this['_locale'],_0x100b09=[],_0x487a50=[],_0x56cdb5=[];for(const _0x468a3f of _0x25e6f4)switch(_0x468a3f['type']){case'text':if(_0x468a3f['add']=_0x468a3f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x468a3f['remove']=_0x468a3f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x468a3f['add']&&''!=_0x468a3f['remove']){_0x100b09['push']({'type':'replace','content':o(_0x146341,'REPLACE_TEXT',['\x22'+_0x468a3f['remove']+'\x22','\x22'+_0x468a3f['add']+'\x22'])});continue;}if(null!=_0x468a3f['add']['match'](/^ +$/)){_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Insert:*\x20%0',o(_0x146341,'ELEMENT_SPACE',_0x468a3f['add']['length']))});continue;}if(null!=_0x468a3f['remove']['match'](/^ +$/)){_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Remove:*\x20%0',o(_0x146341,'ELEMENT_SPACE',_0x468a3f['remove']['length']))});continue;}if(''!=_0x468a3f['add']){_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Insert:*\x20%0','\x22'+_0x468a3f['add']+'\x22')});continue;}_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Remove:*\x20%0','\x22'+_0x468a3f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Insert:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Remove:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'addContainer':_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Split:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'removeContainer':_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Merge:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'addFormat':_0x487a50['push'](_0x468a3f['key']);continue;case'removeFormat':_0x56cdb5['push'](_0x468a3f['key']);continue;default:_0x100b09['push'](_0x468a3f);}if(_0x487a50['length']){const _0x97ec29=_0x487a50['map'](_0x454a7c=>this['_attributeLabels']['has'](_0x454a7c)?this['_attributeLabels']['get'](_0x454a7c):_0x454a7c)['join'](',\x20');_0x100b09['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x97ec29)});}if(_0x56cdb5['length']){const _0x50509a=_0x56cdb5['map'](_0x1d13cd=>this['_attributeLabels']['has'](_0x1d13cd)?this['_attributeLabels']['get'](_0x1d13cd):_0x1d13cd)['join'](',\x20');_0x100b09['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50509a)});}return _0x100b09;}['_handleCustomCallbackDescription'](_0x2ad00a){for(const _0x524df9 of this['_customCallbacks']){const _0x37c8b5=_0x524df9(_0x2ad00a);if(_0x37c8b5&&'type'in _0x37c8b5)return _0x37c8b5;}}['_handleAttributeSuggestionDescription'](_0x49af72,_0x4be2be){const _0xae50a0=_0x4be2be['data'],_0x539d6e=void 0x0===_0xae50a0['newValue']?'removeFormat':'addFormat';_0x49af72['push']({'type':_0x539d6e,'key':_0xae50a0['key']});}['_handleRenameSuggestionDescription'](_0x373d53,_0x4e0ba6){_0x373d53['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4e0ba6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4164c8,_0x16fc42,_0x59ebee){if(this['_addDescriptionItems'](_0x4164c8,_0x16fc42),_0x59ebee&&_0x59ebee['getFirstRange']()&&!_0x16fc42['getFirstRange']()['end']['isEqual'](_0x59ebee['getFirstRange']()['start'])){const _0x262cc3=_0x4164c8[_0x4164c8['length']-0x1],_0x5acdd2='insertion'==_0x16fc42['type']?'add':'remove';_0x262cc3&&'text'==_0x262cc3['type']&&(_0x262cc3[_0x5acdd2]+='\x0a');}}}class E extends _0x16481a{['afterInit'](){const _0x927256=this['editor'],_0x4e68c1=_0x927256['plugins']['get']('TrackChangesEditing');_0x927256['commands']['get']('showAIAssistant')&&_0x4e68c1['enableCommand']('showAIAssistant');}}class V extends _0x16481a{['afterInit'](){const _0x19e03a=this['editor'],_0x3b0e18=_0x19e03a['locale'];if(!_0x19e03a['plugins']['has']('AlignmentEditing'))return;const _0x3b3a70=_0x19e03a['plugins']['get']('TrackChangesEditing');_0x3b3a70['enableDefaultAttributesIntegration']('alignment'),_0x3b3a70['registerBlockAttribute']('alignment'),_0x3b3a70['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b0e18,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56be8d=this['editor'],_0x18e778=_0x56be8d['locale'];_0x56be8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28394c=>{if('formatBlock'!=_0x28394c['type'])return;const {data:_0xfdc21d}=_0x28394c;if(_0xfdc21d&&'alignment'==_0xfdc21d['commandName']){const _0x243b2e=_0xfdc21d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x18e778,'*Format:*\x20%0',function(_0x117a45){switch(_0x117a45){case'left':return o(_0x18e778,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x18e778,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x18e778,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x18e778,'FORMAT_JUSTIFY_TEXT');}}(_0x243b2e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x16481a{['afterInit'](){const _0x564e23=this['editor'],_0x16fbcc=_0x564e23['plugins']['get']('TrackChangesEditing'),_0x49b4d4=_0x564e23['locale'];for(const _0x2a8de1 of ti){if(!_0x564e23['plugins']['has'](_0x2a8de1))continue;const _0x1d24fc=_0x2a8de1['slice'](0x0,-0x7)['toLowerCase'](),_0x34c5cb='FORMAT_'+_0x1d24fc['toUpperCase']();_0x16fbcc['enableDefaultAttributesIntegration'](_0x1d24fc),_0x16fbcc['registerInlineAttribute'](_0x1d24fc),_0x16fbcc['descriptionFactory']['registerAttributeLabel'](_0x1d24fc,o(_0x49b4d4,_0x34c5cb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c49a5=this['editor'],_0x18e5b2=_0x1c49a5['locale'],_0x68f325=_0x1c49a5['plugins']['get']('TrackChangesEditing');function _0x47fbe0(_0x35afd3,_0x93c6a6){_0x68f325['descriptionFactory']['registerDescriptionCallback'](_0x322bbd=>{if('formatInline'!=_0x322bbd['type'])return;const {data:_0x48e6ef}=_0x322bbd;return _0x48e6ef&&_0x48e6ef['commandName']===_0x35afd3?_0x48e6ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18e5b2,'*Format:*\x20%0',_0x93c6a6)}:{'type':'format','content':o(_0x18e5b2,'*Remove\x20format:*\x20%0',_0x93c6a6)}:void 0x0;});}_0x47fbe0('bold',o(_0x18e5b2,'FORMAT_BOLD')),_0x47fbe0('italic',o(_0x18e5b2,'FORMAT_ITALIC')),_0x47fbe0('underline',o(_0x18e5b2,'FORMAT_UNDERLINE')),_0x47fbe0('code',o(_0x18e5b2,'FORMAT_CODE')),_0x47fbe0('strikethrough',o(_0x18e5b2,'FORMAT_STRIKETHROUGH')),_0x47fbe0('subscript',o(_0x18e5b2,'FORMAT_SUBSCRIPT')),_0x47fbe0('superscript',o(_0x18e5b2,'FORMAT_SUPERSCRIPT'));}}class O extends _0x16481a{['afterInit'](){const _0x3ea3f6=this['editor'],_0xf08199=_0x3ea3f6['locale'];if(!_0x3ea3f6['plugins']['has']('BlockQuoteEditing'))return;const _0xb3b6ee=_0x3ea3f6['plugins']['get']('TrackChangesEditing'),_0x3cb034=this['editor']['commands']['get']('blockQuote');_0xb3b6ee['enableCommand']('blockQuote',(_0x1be1cf,_0x1aa76b={})=>{const _0x88045e=this['editor']['model']['document']['selection'],_0x5bfdf2=_0x1aa76b&&void 0x0!==_0x1aa76b['forceValue']?_0x1aa76b['forceValue']:!_0x3cb034['value'];let _0x55a53e=[];if(_0x5bfdf2){const _0x44cd59=Array['from'](_0x88045e['getSelectedBlocks']())['filter'](_0x39e913=>oo(_0x39e913)||function(_0x434801,_0x34a7ac){const _0x28891c=_0x34a7ac['checkChild'](_0x434801['parent'],'blockQuote'),_0x39aee2=_0x34a7ac['checkChild'](['$root','blockQuote'],_0x434801);return _0x28891c&&_0x39aee2;}(_0x39e913,this['editor']['model']['schema']));_0x55a53e=to(_0x44cd59,_0x3ea3f6['model']);}else{const _0x160d21=Array['from'](_0x88045e['getSelectedBlocks']())['filter'](_0x9a6f47=>oo(_0x9a6f47));_0x55a53e=to(_0x160d21,_0x3ea3f6['model']);}_0x3ea3f6['model']['change'](()=>{for(const _0x40c071 of _0x55a53e)_0xb3b6ee['markBlockFormat'](_0x40c071,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5bfdf2}]});});}),_0xb3b6ee['descriptionFactory']['registerDescriptionCallback'](_0x29cfbc=>{const {data:_0x55fb5d}=_0x29cfbc;if(_0x55fb5d&&'blockQuote'==_0x55fb5d['commandName']){const _0x14bee8=o(_0xf08199,'ELEMENT_BLOCK_QUOTE');return _0x55fb5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf08199,'*Set\x20format:*\x20%0',_0x14bee8)}:{'type':'format','content':o(_0xf08199,'*Remove\x20format:*\x20%0',_0x14bee8)};}});}}function oo(_0x577d03){return'blockQuote'==_0x577d03['parent']['name'];}class G extends _0x16481a{['afterInit'](){const _0x371ae0=this['editor'];_0x371ae0['plugins']['has']('CaseChange')&&(_0x371ae0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x371ae0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x371ae0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x16481a{['afterInit'](){const _0x37df07=this['editor'];_0x37df07['commands']['get']('ckbox')&&_0x37df07['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x16481a{['afterInit'](){const _0x2803fe=this['editor'];if(!_0x2803fe['plugins']['has']('CodeBlock'))return;const _0x5ae6c5=_0x2803fe['plugins']['get']('TrackChangesEditing'),_0x487f8e=_0x2803fe['locale'],_0x45fc79=_0x2803fe['config']['get']('codeBlock')['languages'],_0x84048a=_0x2803fe['commands']['get']('codeBlock');_0x5ae6c5['enableCommand']('indentCodeBlock'),_0x5ae6c5['enableCommand']('outdentCodeBlock'),_0x5ae6c5['enableCommand']('codeBlock',(_0x318e90,_0x52703a={})=>{const _0x631f80=_0x2803fe['model'],_0x4201d4=_0x2803fe['model']['document']['selection'],_0x114171=_0x52703a&&void 0x0!==_0x52703a['forceValue']?_0x52703a['forceValue']:!_0x84048a['value'];let _0xba6e3c;_0x52703a['language']||(_0x52703a['language']=_0x45fc79[0x0]['language']),_0xba6e3c=_0x114171?Array['from'](_0x4201d4['getSelectedBlocks']())['filter'](_0x1194fb=>eo(_0x1194fb)||function(_0x20a2ae,_0x4284be){if(_0x20a2ae['is']('rootElement')||_0x4284be['isLimit'](_0x20a2ae))return!0x1;return _0x4284be['checkChild'](_0x20a2ae['parent'],'codeBlock');}(_0x1194fb,_0x631f80['schema'])):Array['from'](_0x4201d4['getSelectedBlocks']())['filter'](_0x2b0133=>eo(_0x2b0133));const _0x3acea4=to(_0xba6e3c,_0x631f80);_0x631f80['change'](()=>{for(const _0x301f28 of _0x3acea4)_0x5ae6c5['markBlockFormat'](_0x301f28,{'commandName':'codeBlock','commandParams':[{..._0x52703a,'forceValue':_0x114171}],'formatGroupId':'blockName'});});}),(_0x5ae6c5['descriptionFactory']['registerElementLabel']('codeBlock',_0x4017b6=>o(_0x487f8e,'ELEMENT_CODE_BLOCK',_0x4017b6)),_0x5ae6c5['descriptionFactory']['registerDescriptionCallback'](_0x2feb4a=>{if('formatBlock'!=_0x2feb4a['type'])return;const _0x2977be=_0x487f8e['t'],{data:_0x568b5f}=_0x2feb4a;if(!_0x568b5f||'codeBlock'!=_0x568b5f['commandName'])return;const _0x316098=_0x568b5f['commandParams'][0x0]['language'],_0x33f105=_0x2977be(_0x45fc79['find'](_0x4528dd=>_0x4528dd['language']===_0x316098)['label'])['toLowerCase']();return _0x568b5f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x487f8e,'*Set\x20format:*\x20%0',o(_0x487f8e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33f105+')')}:{'type':'format','content':o(_0x487f8e,'*Remove\x20format:*\x20%0',o(_0x487f8e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3491c3){return'codeBlock'==_0x3491c3['name'];}class H extends _0x16481a{['afterInit'](){const _0x5ae7b9=this['editor'];if(!_0x5ae7b9['plugins']['has']('CommentsEditing'))return;_0x5ae7b9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x583d28,_0x59992b,_0x118472){const _0x108f16=[];for(const _0x5b52a1 of _0x59992b['getItems']())_0x5b52a1['hasAttribute'](_0x583d28)&&_0x108f16['push'](_0x118472['createRangeOn'](_0x5b52a1));return _0x108f16;}function _e(_0x1559f8,_0x54216a,{showActiveMarker:_0x5b14f8=!0x0}={}){const _0x25e5a5=_0x1559f8['plugins']['get']('TrackChangesEditing');return(_0x3706e9,_0x33915a,_0xbb115e)=>{if(!_0xbb115e['consumable']['test'](_0x33915a['markerRange'],_0x3706e9['name']))return;const _0x2abc99=_0x33915a['markerRange']['getWalker'](),_0x3829b6=_0x33915a['markerRange']['start'],_0x561356=_0x1559f8['model']['schema'];let _0x53c9f6=null,_0x24dee2=null,_0x335249=!0x1,_0x540568=!0x1;for(const _0x409eb0 of _0x2abc99){const _0x25f3f6=_0x409eb0['item'];_0x335249=_0x335249||_0x561356['isContent'](_0x25f3f6);const _0x57325c=_0xbb115e['mapper']['toViewElement'](_0x25f3f6);if(_0x57325c&&_0x57325c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x409eb0['type']&&(_0x561356['isBlock'](_0x25f3f6)&&!_0x561356['isLimit'](_0x25f3f6)&&(_0x25f3f6['nextSibling']||_0x3829b6['isAtEnd']?_0x53c9f6&&_0x53c9f6['parent']==_0x25f3f6||(_0x53c9f6=_0x25f3f6,_0x22c5d8(_0x409eb0['previousPosition']),_0x540568=!0x0):_0x24dee2=_0x24dee2||_0x409eb0['previousPosition']));}function _0x22c5d8(_0x357649){const _0x54edff=_0xbb115e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54216a}),_0x475547=_0xbb115e['mapper']['toViewPosition'](_0x357649);_0x5b14f8&&_0x25e5a5['activeMarkers']['includes'](_0x33915a['markerName'])&&_0xbb115e['writer']['addClass']('ck-suggestion-marker--active',_0x54edff),_0xbb115e['writer']['insert'](_0x475547,_0x54edff),_0xbb115e['mapper']['bindElementToMarker'](_0x54edff,_0x33915a['markerName']);}_0x335249||_0x540568||!_0x24dee2||_0x22c5d8(_0x24dee2);};}class q extends _0x16481a{static get['requires'](){return[_0x3e6133];}['init'](){const _0xb8aeba=this['editor'],_0x64a097=_0xb8aeba['plugins']['get']('TrackChangesEditing');_0x64a097['enableCommand']('delete');const _0x3aec84=_0xb8aeba['commands']['get']('deleteForward');_0x64a097['enableCommand']('deleteForward',(_0x1c497b,_0x30ded6={})=>{const _0x3ef93c=_0xb8aeba['model']['createSelection'](_0xb8aeba['model']['document']['selection']);_0x3ef93c['isCollapsed']&&_0xb8aeba['model']['modifySelection'](_0x3ef93c,{'direction':'forward','unit':_0x30ded6['unit']});const _0x2bfca5=_0x3ef93c['getFirstRange'](),_0x5bc09f=_0x55c0b1['fromRange'](_0x2bfca5);let _0x20b09e;_0x1c497b(_0x30ded6),_0x20b09e='$graveyard'==_0x5bc09f['root']['rootName']?_0xb8aeba['model']['createRange'](_0x2bfca5['start']):_0xb8aeba['model']['createRange'](_0x5bc09f['start'],_0x5bc09f['end']),_0x5bc09f['detach'](),_0xb8aeba['model']['enqueueChange'](_0x3aec84['buffer']['batch'],_0x5915bf=>{_0x3aec84['buffer']['lock'](),_0x5915bf['setSelection'](_0x5915bf['createRange'](_0x20b09e['end'])),_0x3aec84['buffer']['unlock']();});}),_0xb8aeba['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xb8aeba,'merge'),{'priority':'high'}),_0xb8aeba['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x56a31b,_0x32c2ce,_0x438bef)=>{_0x438bef['options']['showSuggestionHighlights']&&_e(_0xb8aeba,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x56a31b,_0x32c2ce,_0x438bef);},{'priority':'high'}),_0xb8aeba['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3ca79f,_0xff9af2,_0x1529b0)=>{const _0x1c09f6=_0x1529b0['mapper']['markerNameToElements'](_0xff9af2['markerName']);if(_0x1c09f6){for(const _0x220ef5 of _0x1c09f6)_0x220ef5['is']('uiElement')&&(_0x1529b0['mapper']['unbindElementFromMarkerName'](_0x220ef5,_0xff9af2['markerName']),_0x1529b0['writer']['remove'](_0x220ef5));}},{'priority':'high'});}}class z extends _0x16481a{['afterInit'](){const _0x3c80c2=this['editor'];if(!_0x3c80c2['plugins']['has']('ListEditing'))return;const _0x1c3525=_0x3c80c2['locale'],_0x17df51=_0x3c80c2['plugins']['get']('TrackChangesEditing'),_0x5be238=_0x3c80c2['plugins']['has']('TodoListEditing'),_0x17f464=!!_0x3c80c2['config']['get']('list.multiBlock');function _0x37b362(_0x5686eb){return{'type':'format','content':''+o(_0x1c3525,'*Set\x20format:*\x20%0',_0x5686eb)};}function _0x40f53b(_0x198997){return{'type':'format','content':''+o(_0x1c3525,'*Remove\x20format:*\x20%0',_0x198997)};}_0x17df51['enableDefaultAttributesIntegration']('numberedList'),_0x17df51['enableDefaultAttributesIntegration']('bulletedList'),_0x17df51['enableDefaultAttributesIntegration']('customNumberedList'),_0x17df51['enableDefaultAttributesIntegration']('customBulletedList'),_0x17df51['enableDefaultAttributesIntegration']('indentList'),_0x17df51['enableDefaultAttributesIntegration']('outdentList'),_0x17df51['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x17df51['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x17df51['registerBlockAttribute']('listItemId'),_0x17df51['registerBlockAttribute']('listType'),_0x17df51['registerBlockAttribute']('listIndent'),_0x17f464&&(_0x17df51['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x17df51['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5be238&&(_0x17df51['enableDefaultAttributesIntegration']('todoList'),_0x17df51['enableDefaultAttributesIntegration']('checkTodoList'),_0x17df51['registerBlockAttribute']('todoListChecked'),_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x27d3bf=>{const {data:_0x4af4c8}=_0x27d3bf;if(_0x4af4c8&&'todoListChecked'==_0x4af4c8['key'])return{'type':'format','content':_0x4af4c8['newValue']?o(_0x1c3525,'*Check\x20item*'):o(_0x1c3525,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32fd16=>{if(_0x32fd16['batch']['isUndo'])return!0x1;let _0x47d86c=!0x1;const _0x4cce71=_0x17df51['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26c235=>'todoListChecked'===_0x17df51['_getAttributeKey'](_0x26c235));for(const _0x44da8c of _0x4cce71){'todo'!=_0x44da8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x17df51['_findSuggestions'](_0x44da8c['getFirstRange'](),'attribute')['find'](_0xbf1131=>'listType'===_0x17df51['_getAttributeKey'](_0xbf1131['suggestion']))||(_0x32fd16['removeMarker'](_0x44da8c['getFirstMarker']()),_0x47d86c=!0x0));}return _0x47d86c;})),_0x17df51['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1c3525,'FORMAT_INDENT'));const _0x4b1729={'type':'format','content':''};_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x3e7b22=>{const {data:_0x57275a}=_0x3e7b22;if(!_0x57275a||'listType'!=_0x57275a['key'])return;let _0x47234e=_0x3e7b22['head'];for(;_0x47234e;){if(_0x47234e['data']&&(('listStyle'==_0x47234e['data']['key']||'listMarkerStyle'==_0x47234e['data']['key'])&&(_0x47234e['data']['newValue']&&'default'!=_0x47234e['data']['newValue']||'default'!=_0x47234e['data']['oldValue']&&!_0x57275a['newValue'])||!_0x17f464&&_0x47234e['data']['key']==m))return _0x4b1729;_0x47234e=_0x47234e['next'];}if(null==_0x57275a['newValue'])switch(_0x57275a['oldValue']){case'bulleted':return _0x40f53b(o(_0x1c3525,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40f53b(o(_0x1c3525,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40f53b(o(_0x1c3525,'ELEMENT_TODO_LIST'));}switch(_0x57275a['newValue']){case'bulleted':return _0x37b362(o(_0x1c3525,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37b362(o(_0x1c3525,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37b362(o(_0x1c3525,'ELEMENT_TODO_LIST'));}}),_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x519965=>{const {data:_0x58e32b}=_0x519965;if(_0x58e32b&&'listIndent'==_0x58e32b['key'])return null==_0x58e32b['newValue']||null==_0x58e32b['oldValue']&&0x0==_0x58e32b['newValue']?_0x4b1729:void 0x0;}),_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x240ae1=>{if('attribute'!=_0x240ae1['type'])return;const {data:_0x5886dd}=_0x240ae1;if(!_0x5886dd||'listItemId'!=_0x5886dd['key'])return;const _0x57ebb3=le(_0x240ae1);return'newValue'==_0x57ebb3?{'type':'format','content':o(_0x1c3525,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57ebb3?{'type':'format','content':o(_0x1c3525,'*Split:*\x20list\x20item')}:_0x4b1729;}),_0x3c80c2['model']['document']['registerPostFixer'](_0xe3f40=>this['listItemIdFixer'](_0xe3f40)),_0x3c80c2['model']['document']['registerPostFixer'](_0x2bfbf5=>this['noTrackChangesFixer'](_0x2bfbf5)),_0x3c80c2['model']['document']['registerPostFixer'](_0x22e935=>this['assureChains'](_0x22e935)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x56f613){if(_0x56f613['batch']['isUndo']||!_0x56f613['batch']['isLocal'])return!0x1;let _0x246916=!0x1;const _0x54ae6f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17959f=>_0x17959f['data']&&'listItemId'==_0x17959f['data']['key'])['filter'](_0x1bacbb=>_0x1bacbb['data']['newValue']&&_0x1bacbb['data']['oldValue']);for(const _0x27491b of _0x54ae6f)le(_0x27491b)||(_0x56f613['removeMarker'](_0x27491b['getFirstMarker']()),_0x246916=!0x0);return _0x246916;}['noTrackChangesFixer'](_0x154f0b){if(_0x154f0b['batch']['isUndo']||!_0x154f0b['batch']['isLocal'])return!0x1;const _0x5ad3f5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5ad3f5['trackChangesCommand']['value'])return!0x1;let _0x58db05=!0x1;const _0x1098b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x445d20=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30135f=>'attribute'==_0x30135f['type'])['filter'](_0x51013e=>_0x1098b2['includes'](_0x51013e['attributeKey']));if(0x0==_0x445d20['length'])return _0x58db05;for(const _0x2e5288 of _0x445d20){const _0xedbc3a=_0x5ad3f5['_findSuggestions'](_0x2e5288['range'],'attribute')['filter'](_0x4f5b66=>!_0x4f5b66['meta']['isNextTo'])['map'](_0x4f5bd1=>_0x4f5bd1['suggestion'])['filter'](_0x8ef0a0=>{const _0x27350f=_0x5ad3f5['_getAttributeKey'](_0x8ef0a0);return _0x1098b2['includes'](_0x27350f);});if(_0xedbc3a['length']){for(const _0x623f01 of _0xedbc3a)_0x154f0b['removeMarker'](_0x623f01['getFirstMarker']());_0x58db05=!0x0;}}return _0x58db05;}['assureChains'](_0x20a5ba){if(_0x20a5ba['batch']['isUndo']||!_0x20a5ba['batch']['isLocal'])return!0x1;const _0x35a246=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2c14f4=!0x1;const _0x5c8bc0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2a3dcb of _0x35a246['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d082f=_0x35a246['_findSuggestions'](_0x2a3dcb['getFirstRange'](),'attribute')['map'](_0x163d29=>_0x163d29['suggestion'])['filter'](_0x482d24=>_0x482d24['data']&&_0x5c8bc0['includes'](_0x482d24['data']['key']));if(!_0x5d082f['length'])continue;const _0x3f180b=_0x5d082f[0x0]['head']['attributes']['groupId'];if(!_0x5d082f['every'](_0x4100f4=>_0x4100f4['attributes']['groupId']===_0x3f180b)){for(const _0x20d86e of _0x5d082f)_0x166e4d(_0x20d86e,_0x3f180b)&&(_0x2c14f4=!0x0);}}return _0x2c14f4;function _0x17965b(_0x38bf7c,_0x19652d){for(const _0x2dc3e6 of _0x35a246['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x357900=>'attribute'==_0x357900['type']&&_0x357900['attributes']['groupId']==_0x38bf7c))_0x2dc3e6['setAttribute']('groupId',_0x19652d);}function _0x166e4d(_0x2f0a8f,_0x46d48b){let _0x1d53b1=_0x2f0a8f['head'],_0x5cbf09=!0x1;for(;_0x1d53b1;)_0x1d53b1['attributes']['groupId']!=_0x46d48b&&(_0x17965b(_0x1d53b1['attributes']['groupId'],_0x46d48b),_0x1d53b1['setAttribute']('groupId',_0x46d48b),_0x5cbf09=!0x0),_0x1d53b1=_0x1d53b1['next'];return _0x5cbf09;}}['_supportLegacySuggestions'](){const _0x3aee2d=this['editor'],_0x4b0144=_0x3aee2d['locale'],_0x821a10=_0x3aee2d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x821a10['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x458879,_0x2c08ff){const _0x2c8f39=[];for(let _0x242e29 of _0x458879)_0x242e29['start']['nodeAfter']===_0x242e29['end']['parent']&&(_0x242e29=_0x3aee2d['model']['createRange'](_0x3aee2d['model']['createPositionAt'](_0x242e29['start']['nodeAfter'],0x0))),_0x2c8f39['push'](_0x242e29);_0x3aee2d['model']['change'](_0x53d303=>{const _0x53e563=_0x3aee2d['model']['document']['selection'],_0x1925cb=Array['from'](_0x53e563['getRanges']())['map'](_0x177ed3=>_0x55c0b1['fromRange'](_0x177ed3));_0x53d303['setSelection'](_0x2c8f39),_0x3aee2d['commands']['get'](_0x2c08ff['commandName'])['refresh'](),_0x2c08ff['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3aee2d['execute'](_0x2c08ff['commandName'],..._0x2c08ff['commandParams']),_0x53d303['setSelection'](_0x1925cb);for(const _0x3e316f of _0x1925cb)_0x3e316f['detach']();});}),_0x821a10['descriptionFactory']['registerElementLabel'](function(_0x41a6e2){const _0xabc638=!_0x3aee2d['model']['schema']['isObject'](_0x41a6e2),_0x1ea525=_0x41a6e2['previousSibling'],_0x21a090=_0x41a6e2['nextSibling'],_0x70d164=_0x41a6e2['getAttribute']('listItemId'),_0x72f497=!_0x1ea525||_0x1ea525['getAttribute']('listItemId')!==_0x70d164,_0x16b861=!_0x21a090||_0x21a090['getAttribute']('listItemId')!==_0x70d164;return _0xabc638&&Boolean(_0x70d164)&&_0x72f497&&_0x16b861;},_0x57eb98=>o(_0x4b0144,'ELEMENT_LIST_ITEM',_0x57eb98));}['_registerLegacyDescription'](){const _0xced12a=this['editor'],_0x4c1eca=_0xced12a['locale'];function _0x97c4b6(_0x4c112e){const _0x3ace45=_0xced12a['commands']['get']('bulletedList')['value'],_0x446e21=_0xced12a['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c112e?_0x3ace45:_0x446e21;}_0xced12a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x285755){if('formatBlock'!=_0x285755['type'])return;const {data:_0xf9af47}=_0x285755;if(!_0xf9af47)return;let _0x4c451c,_0x5b4296,_0x6f8cd4,_0x12561d;switch(_0xf9af47['commandName']){case'bulletedList':_0x6f8cd4=_0xf9af47['commandParams'][0x0]['forceValue'],_0x12561d=_0x97c4b6(_0xf9af47['commandName']),_0x4c451c=_0x6f8cd4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12561d&&_0xced12a['config']['get']('list.multiBlock')||(_0x4c451c='*Change\x20to:*\x20%0'),_0x5b4296={'type':'format','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x6f8cd4=_0xf9af47['commandParams'][0x0]['forceValue'],_0x12561d=_0x97c4b6(_0xf9af47['commandName']),_0x4c451c=_0x6f8cd4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12561d&&_0xced12a['config']['get']('list.multiBlock')||(_0x4c451c='*Change\x20to:*\x20%0'),_0x5b4296={'type':'format','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c451c='*Indent:*\x20%0',_0x5b4296={'type':'format','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c451c=function(_0x3f8577){const _0x5ed01a=_0x3f8577['getFirstRange']();let _0x2f3f19=_0x5ed01a['start']['nodeAfter'];for(;_0x2f3f19&&_0x5ed01a['containsItem'](_0x2f3f19);){if(_0x2f3f19['getAttribute']('listIndent')>0x0)return!0x1;_0x2f3f19=_0x2f3f19['nextSibling'];}return!0x0;}(_0x285755)?o(_0x4c1eca,'*Format:*\x20remove\x20from\x20%0',o(_0x4c1eca,function(_0x2bd444){return'ELEMENT_'+_0x2bd444['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x285755))):o(_0x4c1eca,'*Outdent:*\x20%0',o(_0x4c1eca,'ELEMENT_LIST_ITEM')),_0x5b4296={'type':'format','content':_0x4c451c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xf9af47['multipleBlocks']&&(_0x4c451c='*Merge:*\x20%0',_0x5b4296={'type':'deletion','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_LIST_ITEM'))});}return _0x5b4296;});}}function le(_0x314568){let _0x4108d0=_0x314568['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4108d0;){const _0x452a37=_0x4108d0['getAttribute']('listItemId');if(!_0x452a37)return!0x1;if(_0x452a37==_0x314568['data']['newValue'])return'newValue';if(_0x452a37==_0x314568['data']['oldValue'])return'oldValue';_0x4108d0=_0x4108d0['previousSibling'];}return!0x1;}class ue extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27bad0=this['editor']['config']['get']('list.properties'),_0x1bf164=this['editor']['plugins']['get']('TrackChangesEditing');_0x27bad0['styles']&&(_0x1bf164['enableDefaultAttributesIntegration']('listStyle'),_0x1bf164['registerBlockAttribute']('listStyle')),_0x27bad0['reversed']&&(_0x1bf164['enableDefaultAttributesIntegration']('listReversed'),_0x1bf164['registerBlockAttribute']('listReversed')),_0x27bad0['startIndex']&&(_0x1bf164['enableDefaultAttributesIntegration']('listStart'),_0x1bf164['registerBlockAttribute']('listStart'));const _0x5ae588={'type':'format','content':''};_0x1bf164['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x129100=this['editor']['locale'];_0x1bf164['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x129100,'FORMAT_LIST_REVERSED')),_0x1bf164['descriptionFactory']['registerDescriptionCallback'](_0x4e7767=>{const {data:_0x2da2bf}=_0x4e7767;if(_0x2da2bf&&'listReversed'==_0x2da2bf['key'])return null==_0x2da2bf['newValue']||0x0==_0x2da2bf['newValue']&&null==_0x2da2bf['oldValue']?_0x5ae588:void 0x0;}),_0x1bf164['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x129100,'FORMAT_LIST_START')),_0x1bf164['descriptionFactory']['registerDescriptionCallback'](_0x533502=>{const {data:_0x5b4a3b}=_0x533502;if(_0x5b4a3b&&'listStart'==_0x5b4a3b['key'])return null==_0x5b4a3b['newValue']||0x1==_0x5b4a3b['newValue']&&null==_0x5b4a3b['oldValue']?_0x5ae588:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2d516b=>{if(_0x2d516b['batch']['isUndo'])return!0x1;let _0x57b279=!0x1;const _0x3b6243=_0x1bf164['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d0c70=>{const _0x412664=_0x1bf164['_getAttributeKey'](_0x5d0c70);return'listStart'==_0x412664||'listReversed'==_0x412664;});for(const _0x518ecb of _0x3b6243){const _0x36be6b=_0x518ecb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36be6b||'customNumbered'==_0x36be6b)continue;_0x1bf164['_findSuggestions'](_0x518ecb['getFirstRange'](),'attribute')['find'](_0x1bebb8=>'listType'==_0x1bf164['_getAttributeKey'](_0x1bebb8['suggestion']))||(_0x2d516b['removeMarker'](_0x518ecb['getFirstMarker']()),_0x57b279=!0x0);}return _0x57b279;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xaf3b30){const _0x1d8795=this['editor']['locale'],{data:_0x20f7b5}=_0xaf3b30,_0x574c9b={'type':'format','content':''};if(!_0x20f7b5||'listStyle'!=_0x20f7b5['key'])return;if(!_0x20f7b5['oldValue'])return'default'==_0x20f7b5['newValue']?_0x574c9b:{'type':'format','content':''+o(_0x1d8795,'*Set\x20format:*\x20%0',o(_0x1d8795,this['_getTranslationKeyForListStyle'](_0x20f7b5['newValue'])))};if(!_0x20f7b5['newValue']){if('default'==_0x20f7b5['oldValue'])return _0x574c9b;let _0x4c5b37=_0xaf3b30['head'];for(;_0x4c5b37;){if(_0x4c5b37['data']&&'listType'==_0x4c5b37['data']['key']&&_0x4c5b37['data']['newValue'])return _0x574c9b;_0x4c5b37=_0x4c5b37['next'];}return{'type':'format','content':''+o(_0x1d8795,'*Remove\x20format:*\x20%0',o(_0x1d8795,this['_getTranslationKeyForListStyle'](_0x20f7b5['oldValue'])))};}if('default'!=_0x20f7b5['newValue'])return{'type':'format','content':''+o(_0x1d8795,'*Set\x20format:*\x20%0',o(_0x1d8795,this['_getTranslationKeyForListStyle'](_0x20f7b5['newValue'])))};let _0x249f17=_0xaf3b30['head'];for(;_0x249f17;){if(_0x249f17['data']&&'listType'==_0x249f17['data']['key']&&_0x249f17['data']['newValue']&&_0x249f17['data']['oldValue'])return _0x574c9b;_0x249f17=_0x249f17['next'];}return{'type':'format','content':o(_0x1d8795,'*Set\x20format:*\x20%0',o(_0x1d8795,'ELEMENT_'+_0xaf3b30['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe5cdaa=this['editor'],_0x1f0ec7=_0xe5cdaa['locale'];_0xe5cdaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a0b62=>{if('formatBlock'!=_0x3a0b62['type'])return;const {data:_0x8002de}=_0x3a0b62;if(!_0x8002de)return;let _0x554416,_0x426a0e;switch(_0x8002de['commandName']){case'listStyle':_0x554416='*Change\x20to:*\x20%0',_0x426a0e={'type':'format','content':o(_0x1f0ec7,_0x554416,o(_0x1f0ec7,this['_getTranslationKeyForListStyle'](_0x8002de['commandParams'][0x0]['type'])))};break;case'listReversed':_0x554416=_0x8002de['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x426a0e={'type':'format','content':o(_0x1f0ec7,_0x554416)};break;case'listStart':_0x554416='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x426a0e={'type':'format','content':o(_0x1f0ec7,_0x554416,_0x8002de['commandParams'][0x0]['startIndex'])};}return _0x426a0e;});}['_getTranslationKeyForListStyle'](_0x540276){return'ELEMENT_'+function(_0x58bcd3){if(pe['includes'](_0x58bcd3))return'bulleted';if(ye['includes'](_0x58bcd3))return'numbered';return null;}(_0x540276)['toUpperCase']()+'_LIST_'+_0x540276['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x16481a{static get['requires'](){return[_0x22e146];}['init'](){const _0x2345c6=this['editor'],_0x410504=_0x2345c6['plugins']['get']('TrackChangesEditing'),_0x5e2039=_0x2345c6['commands']['get']('enter');_0x410504['enableCommand']('enter',()=>{_0x2345c6['model']['change'](_0x845f7f=>{const _0x46a851=_0x2345c6['model']['document']['selection'],_0x5b810b=_0x46a851['getFirstPosition'](),_0xc15533=_0x55c0b1['fromRange'](_0x46a851['getFirstRange']());if(_0x5e2039['enterBlock'](_0x845f7f)){const _0x141d5f=_0x2345c6['model']['createPositionAt'](_0x5b810b['parent']['nextSibling'],0x0),_0x1e928b=_0x845f7f['createRange'](_0x5b810b,_0x141d5f);_0x410504['markInsertion'](_0x1e928b);}else _0x845f7f['setSelection'](_0x845f7f['createRange'](_0xc15533['end']));_0xc15533['detach'](),_0x5e2039['fire']('afterExecute',{'writer':_0x845f7f});});}),_0x2345c6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2345c6,'split'),{'priority':'high'}),_0x2345c6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x25b506,_0x4ceea3,_0x3675ca)=>{const _0x582e99=_0x3675ca['mapper']['markerNameToElements'](_0x4ceea3['markerName']);if(_0x582e99){for(const _0x295265 of _0x582e99)_0x295265['hasClass']('ck-suggestion-marker-split')&&(_0x3675ca['mapper']['unbindElementFromMarkerName'](_0x295265,_0x4ceea3['markerName']),_0x3675ca['writer']['remove'](_0x295265));}},{'priority':'high'}),_0x2345c6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5008ce,_0x28bbd4,_0x5994e6)=>{_0x5994e6['options']['showSuggestionHighlights']&&_e(_0x2345c6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5008ce,_0x28bbd4,_0x5994e6);},{'priority':'high'});}}class J extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x24acc0=this['editor']['plugins']['get']('TrackChangesEditing');_0x24acc0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x24acc0['enableCommand']('findNext'),_0x24acc0['enableCommand']('findPrevious'),_0x24acc0['enableCommand']('replace'),_0x24acc0['enableCommand']('replaceAll');}['handleFindCommand'](_0x107240,_0x327394,_0x49a5ab={}){const _0x1b11f1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x107240(_0x1d34cd=>('string'==typeof _0x327394?_0x1b11f1['findByTextCallback'](_0x327394,_0x49a5ab):_0x327394)(_0x1d34cd)['filter'](_0x21f581=>!0x1===this['_isInDeletionRange'](_0x21f581,_0x1d34cd['item'])),_0x49a5ab);}['_isInDeletionRange'](_0x3f25e3,_0x4ce6ac){const _0x44d2ca=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ce6ac,_0x3f25e3['start']),this['editor']['model']['createPositionAt'](_0x4ce6ac,_0x3f25e3['end']));for(const _0x1ed16d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x44d2ca['getIntersection'](_0x1ed16d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x16481a{['afterInit'](){const _0x3fdaff=this['editor']['locale'],_0x429616=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5e35a3,commandName:_0x4b99ae}of ro)this['editor']['plugins']['has'](_0x5e35a3)&&(_0x429616['enableDefaultAttributesIntegration'](_0x4b99ae),_0x429616['registerInlineAttribute'](_0x4b99ae));_0x429616['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3fdaff,'FORMAT_FONT_SIZE')),_0x429616['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3fdaff,'FORMAT_FONT_FAMILY')),_0x429616['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3fdaff,'FORMAT_FONT_COLOR')),_0x429616['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3fdaff,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bbd64=this['editor'],_0x2bde48=_0x1bbd64['locale'];_0x1bbd64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b42ca=>{const _0x41e5b4=_0x2bde48['t'];if('formatInline'!=_0x5b42ca['type'])return;const {data:_0x3e9bb1}=_0x5b42ca;if(null!=_0x3e9bb1){if('fontSize'==_0x3e9bb1['commandName']){const _0x36ea33=_0x3e9bb1['commandParams'][0x0]['value'];if(_0x36ea33){const _0x2d9ab7=_0x41e5b4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a4dfd=>_0x1a4dfd['model']==_0x36ea33)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20size:*\x20%0',_0x2d9ab7)};}return{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3e9bb1['commandName']){const _0x232054=_0x3e9bb1['commandParams'][0x0]['value'];return _0x232054?{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20family:*\x20%0',_0x232054)}:{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3e9bb1['commandName']){const _0x139740=_0x3e9bb1['commandParams'][0x0]['value'];if(_0x139740){const _0x59060d=_0x5e1628(this['editor']['config']['get']('fontColor.colors'))['find'](_0x224949=>_0x224949['model']==_0x139740);let _0x347e3e=_0x139740,_0x51c948='';return _0x59060d&&(_0x347e3e=_0x59060d['label'],_0x51c948=_0x41e5b4(_0x347e3e)['toLowerCase']()),{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20color:*\x20%0',_0x51c948)['trim'](),'color':{'value':_0x139740,'title':_0x51c948||_0x347e3e}};}return{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3e9bb1['commandName']){const _0x242c8b=_0x3e9bb1['commandParams'][0x0]['value'];if(_0x242c8b){const _0x291630=_0x5e1628(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe03dc6=>_0xe03dc6['model']==_0x242c8b);let _0x2d8ec6=_0x242c8b,_0x5256a4='';return _0x291630&&(_0x2d8ec6=_0x291630['label'],_0x5256a4=_0x41e5b4(_0x2d8ec6)['toLowerCase']()),{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20background\x20color:*\x20%0',_0x5256a4)['trim'](),'color':{'value':_0x242c8b,'title':_0x5256a4||_0x2d8ec6}};}return{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x16481a{['afterInit'](){const _0x4f85ac=this['editor'],_0x490e7b=_0x4f85ac['plugins']['get']('TrackChangesEditing'),_0x3375f4=_0x4f85ac['commands']['get']('copyFormat'),_0x317e9f=_0x4f85ac['commands']['get']('pasteFormat');_0x3375f4&&_0x317e9f&&(_0x490e7b['enableDefaultAttributesIntegration']('pasteFormat'),_0x490e7b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x538eef=this['editor'],_0x5b3a9f=_0x538eef['locale'];_0x538eef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47d24c=>{if('formatBlock'!=_0x47d24c['type']&&'formatInline'!=_0x47d24c['type'])return;const {data:_0x303503}=_0x47d24c;if(_0x303503&&'pasteFormat'===_0x303503['commandName']){const _0xe60b30=[],_0x4f4689=_0x303503['commandParams'][0x0];for(const [_0x3b66cd,_0x3e8f7a]of Object['entries'](_0x4f4689))_0xe60b30['push'](so(_0x538eef,_0x3b66cd,_0x3e8f7a));return _0xe60b30['length']?{'type':'format','content':o(_0x5b3a9f,'*Set\x20format\x20to:*\x20%0',_0xe60b30['join'](',\x20'))}:{'type':'format','content':o(_0x5b3a9f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x531364,_0x3e052e,_0x459327){const _0x5c8f0d=_0x531364['locale']['t'],_0x5d5c64=_0x3e052e['split'](/(?=[A-Z])/)['join']('\x20'),_0x1c28ca=_0x5c8f0d(_0x5d5c64['charAt'](0x0)['toUpperCase']()+_0x5d5c64['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x459327)return _0x1c28ca;if('fontColor'===_0x3e052e||'fontBackgroundColor'===_0x3e052e){const _0x13e514=_0x5e1628(_0x531364['config']['get']('fontColor.colors'))['find'](_0x25e058=>_0x25e058['model']==_0x459327);return _0x1c28ca+'\x20('+(_0x13e514?_0x5c8f0d(_0x13e514['label'])['toLowerCase']():_0x459327)+')';}if('fontSize'===_0x3e052e&&isNaN(parseFloat(_0x459327))){const _0x12c8ee=_0x531364['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x531364['config']['get']('fontSize.options'))['find'](_0x5c5cda=>_0x5c5cda['model']==_0x459327);return _0x1c28ca+'\x20('+(_0x12c8ee?_0x5c8f0d(_0x12c8ee['title'])['toLowerCase']():_0x459327)+')';}return _0x1c28ca+'\x20('+_0x459327+')';}class Y extends _0x16481a{['_headingOptions'];['afterInit'](){const _0x562bf4=this['editor'];if(!_0x562bf4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x562bf4['config']['get']('heading.options');const _0x37a24=_0x562bf4['locale'],_0x32a642=_0x562bf4['plugins']['get']('TrackChangesEditing');_0x32a642['enableDefaultAttributesIntegration']('heading');for(const _0x22c7f5 of this['_headingOptions'])'paragraph'!=_0x22c7f5['model']&&_0x32a642['descriptionFactory']['registerElementLabel'](_0x22c7f5['model'],_0x4baeb4=>{const _0x145c92=this['_getHeadingLevel'](_0x22c7f5['model']);return null!==_0x145c92?_0x578360(_0x4baeb4,_0x145c92):_0x326496(_0x4baeb4,_0x22c7f5['title']);});function _0x578360(_0x15d91b,_0x218468){return o(_0x37a24,'ELEMENT_HEADING',[_0x15d91b,_0x218468]);}function _0x326496(_0x5ce30c,_0x3e331e){return o(_0x37a24,'ELEMENT_HEADING_CUSTOM',[_0x5ce30c,_0x3e331e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2035cc=this['editor'],_0x3a2433=_0x2035cc['locale'];function _0x4af330(_0x2dec1f,_0x40efd2){return o(_0x3a2433,'ELEMENT_HEADING_CUSTOM',[_0x2dec1f,_0x40efd2]);}_0x2035cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4858fb=>{if('formatBlock'!=_0x4858fb['type'])return;const {data:_0x5b8c0f}=_0x4858fb;if(_0x5b8c0f&&'heading'==_0x5b8c0f['commandName']){const _0x190b68=_0x5b8c0f['commandParams'][0x0]['value'],_0x583311=this['_getHeadingLevel'](_0x190b68);if(null!==_0x583311)return{'type':'format','content':o(_0x3a2433,'*Change\x20to:*\x20%0',(_0x154ef3=0x1,_0x5c0538=_0x583311,o(_0x3a2433,'ELEMENT_HEADING',[_0x154ef3,_0x5c0538])))};const _0x176cd5=this['_headingOptions']['find'](_0x222570=>_0x222570['model']===_0x190b68)['title'];return{'type':'format','content':o(_0x3a2433,'*Change\x20to:*\x20%0',_0x4af330(0x1,_0x176cd5))};}var _0x154ef3,_0x5c0538;});}['_getHeadingLevel'](_0x21d0e8){const _0xb392fd=_0x21d0e8['match'](/^heading(\d+)/);if(_0xb392fd)return _0xb392fd[0x1];const _0x1a04e3=this['_headingOptions']?.['find'](_0x4f3c74=>_0x4f3c74['model']==_0x21d0e8);if(_0x1a04e3&&_0x1a04e3['view']){const _0x262d1d=_0x1a04e3['view'],_0x1e7efd=(_0x262d1d['name']??_0x262d1d)['match'](/^h(\d+)/);if(_0x1e7efd)return _0x1e7efd[0x1];}return null;}}class Z extends _0x16481a{['afterInit'](){const _0x5cbdd6=this['editor'];if(!_0x5cbdd6['plugins']['has']('HighlightEditing'))return;const _0x4bd0dc=_0x5cbdd6['plugins']['get']('TrackChangesEditing'),_0x42f8c5=_0x5cbdd6['locale'];_0x4bd0dc['enableDefaultAttributesIntegration']('highlight'),_0x4bd0dc['registerInlineAttribute']('highlight'),_0x4bd0dc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42f8c5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1839fe=this['editor'],_0x404e5d=_0x1839fe['locale'];_0x1839fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ad5e=>{if('formatInline'!=_0x11ad5e['type'])return;const {data:_0x2e157c}=_0x11ad5e;if(_0x2e157c&&'highlight'==_0x2e157c['commandName']){const _0x5c57fc=_0x404e5d['t'],_0xf93787=_0x2e157c['commandParams'][0x0]['value'];if(_0xf93787){const _0x461b84=_0x1839fe['config']['get']('highlight.options')['find'](_0x4bff55=>_0x4bff55['model']==_0xf93787),_0x403d75=_0x5c57fc(_0x461b84['title'])['toLowerCase']();return{'type':'format','content':o(_0x404e5d,'*Set\x20highlight:*\x20%0',_0x403d75),'color':{'value':_0x461b84['color'],'title':_0x461b84['title']}};}return{'type':'format','content':o(_0x404e5d,'*Remove\x20highlight*',o(_0x404e5d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x16481a{['afterInit'](){const _0x5e7d8e=this['editor'];if(!_0x5e7d8e['plugins']['has']('HorizontalLineEditing'))return;_0x5e7d8e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x562fef=_0x5e7d8e['plugins']['get']('TrackChangesEditing'),_0xff6c3a=_0x5e7d8e['locale'];_0x562fef['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf5de19=>o(_0xff6c3a,'ELEMENT_HORIZONTAL_LINE',_0xf5de19)),_0x5e7d8e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x44d142,{writer:_0xae8c73,options:_0x5b355c})=>{if(!_0x5b355c['showSuggestionHighlights'])return null;const _0x2c617a=_0xae8c73['createContainerElement']('div'),_0x54ce40=_0xae8c73['createEmptyElement']('hr');return _0xae8c73['addClass']('ck-horizontal-line',_0x2c617a),_0xae8c73['insert'](_0xae8c73['createPositionAt'](_0x2c617a,0x0),_0x54ce40),_0x2c617a;},'converterPriority':'high'});}}class et extends _0x16481a{['afterInit'](){const _0x5d55d2=this['editor'];if(!_0x5d55d2['plugins']['has']('HtmlEmbed'))return;const _0x436a39=_0x5d55d2['plugins']['get']('TrackChangesEditing'),_0x2b5e1d=_0x5d55d2['locale'];_0x436a39['descriptionFactory']['registerElementLabel']('rawHtml',_0x47534e=>o(_0x2b5e1d,'ELEMENT_HTML_EMBED',_0x47534e)),_0x436a39['enableDefaultAttributesIntegration']('htmlEmbed'),_0x436a39['registerBlockAttribute']('value'),_0x436a39['descriptionFactory']['registerDescriptionCallback'](_0x536909=>{if('attribute'!=_0x536909['type'])return;const {data:_0x7962e9}=_0x536909;if(_0x7962e9&&'value'==_0x7962e9['key']&&_0x536909['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3f555c=o(_0x2b5e1d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b5e1d,'*Change\x20%0\x20content*',_0x3f555c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f9ec8=this['editor'],_0x20f527=_0x4f9ec8['locale'];_0x4f9ec8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2298bf=>{if('formatBlock'!=_0x2298bf['type'])return;const {data:_0x485fbc}=_0x2298bf;if(_0x485fbc&&'htmlEmbed'==_0x485fbc['commandName']){const _0x5a812a=o(_0x20f527,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x20f527,'*Change\x20%0\x20content*',_0x5a812a)};}});}}class it extends _0x16481a{['afterInit'](){const _0xc9ef2e=this['editor'];if(!_0xc9ef2e['plugins']['has']('ImageEditing'))return;const _0x427218=_0xc9ef2e['plugins']['get']('TrackChangesEditing'),_0x20e6d9=_0xc9ef2e['plugins']['get']('ImageUtils'),_0x4580fe=_0xc9ef2e['locale'];_0x427218['enableCommand']('insertImage'),_0x427218['descriptionFactory']['registerElementLabel']('imageBlock',_0x42e5fe=>o(_0x4580fe,'ELEMENT_IMAGE',_0x42e5fe)),_0x427218['descriptionFactory']['registerElementLabel']('imageInline',_0x133405=>o(_0x4580fe,'ELEMENT_INLINE_IMAGE',_0x133405)),_0x427218['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4580fe,'ELEMENT_CAPTION')),_0xc9ef2e['plugins']['has']('ImageUploadEditing')&&_0x427218['enableCommand']('uploadImage'),_0xc9ef2e['plugins']['has']('ImageBlockEditing')&&_0xc9ef2e['plugins']['has']('ImageInlineEditing')&&(_0x427218['enableCommand']('imageTypeInline',(_0x7081d3,_0x2cb108)=>{const _0x56550e=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']);_0xc9ef2e['model']['change'](()=>{_0x427218['markBlockFormat'](_0x56550e,{'commandName':'imageTypeInline','commandParams':[_0x2cb108]},[],'convertBlockImageToInline');});}),_0x427218['enableCommand']('imageTypeBlock',(_0x296af7,_0x5f56bb)=>{_0xc9ef2e['model']['change'](_0x3f9da6=>{let _0x2eb792=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x39cfcb=_0x3f9da6['createRangeOn'](_0x2eb792);const _0x2aca89=_0x787259['fromPosition'](_0x39cfcb['start'],'toPrevious'),_0x22daa2=_0x787259['fromPosition'](_0x39cfcb['end'],'toNext');_0x427218['forceDefaultExecution'](()=>_0x296af7(_0x5f56bb)),_0x2eb792=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x39cfcb=_0x3f9da6['createRangeOn'](_0x2eb792);const _0x52255a=_0x3f9da6['createRange'](_0x2aca89,_0x22daa2);_0x2aca89['detach'](),_0x22daa2['detach'](),_0x427218['markBlockFormat'](_0x2eb792,{'commandName':'imageTypeInline','commandParams':[_0x5f56bb]},[],'convertInlineImageToBlock'),_0x52255a['start']['isBefore'](_0x39cfcb['start'])&&_0x427218['markInsertion'](_0x3f9da6['createRange'](_0x52255a['start'],_0x39cfcb['start']),'convertInlineImageToBlock'),_0x39cfcb['end']['isBefore'](_0x52255a['end'])&&_0x427218['markInsertion'](_0x3f9da6['createRange'](_0x39cfcb['end'],_0x52255a['end']),'convertInlineImageToBlock');});}),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x427218['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x13a152])=>{const _0x1bab36=_0x427218['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x269d0d=_0x13a152['start'],_0x2e35c0=_0x13a152['end'];const _0x187569=_0xc9ef2e['model']['schema']['getNearestSelectionRange'](_0x269d0d,'backward'),_0x1117d9=_0xc9ef2e['model']['schema']['getNearestSelectionRange'](_0x2e35c0,'forward');_0x187569['isCollapsed']&&(_0x269d0d=_0x187569['start']),_0x1117d9['isCollapsed']&&(_0x2e35c0=_0x1117d9['end']),_0x1bab36([_0xc9ef2e['model']['createRange'](_0x269d0d,_0x2e35c0)]);}),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x10644f),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x10644f)),_0xc9ef2e['plugins']['has']('ImageCaptionEditing')&&(_0x427218['enableCommand']('toggleImageCaption',(_0x243bf3,_0x4d4da6)=>{const _0x26eba1=_0xc9ef2e['plugins']['get']('ImageCaptionUtils');let _0x48283b=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x471e56=_0x26eba1['getCaptionFromImageModelElement'](_0x48283b);_0xc9ef2e['model']['change'](()=>{if(_0x471e56)return void _0x427218['markDeletion'](_0xc9ef2e['model']['createRangeOn'](_0x471e56));const _0x2f0d07=_0x20e6d9['isBlockImage'](_0x48283b);_0x243bf3(_0x4d4da6),_0x48283b=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x471e56=_0x26eba1['getCaptionFromImageModelElement'](_0x48283b),_0x427218['markInsertion'](_0xc9ef2e['model']['createRangeOn'](_0x471e56),_0x2f0d07?null:'imageCaption');});}),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x10644f));const _0x221ec7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x433b09(_0x3dfb59,_0x484e66){const _0x2a059d=_0x221ec7['findIndex'](({type:_0x39a1a6,subType:_0x24743f})=>_0x3dfb59['type']==_0x39a1a6&&_0x3dfb59['subType']==_0x24743f),_0x327522=_0x221ec7['findIndex'](({type:_0x468957,subType:_0x61cbe1})=>_0x484e66['type']==_0x468957&&_0x484e66['subType']==_0x61cbe1);if(_0x2a059d<0x0||_0x327522<0x0)return!0x1;const _0x2f979d=_0x3dfb59['getFirstRange'](),_0x2870a4=_0x484e66['getFirstRange']();if((0x0==_0x2a059d||0x1==_0x2a059d)&&0x2==_0x327522&&_0x2f979d['isIntersecting'](_0x2870a4))return!0x0;if(0x2==_0x2a059d&&0x3==_0x327522){const _0x46c27a=_0x427218['_findSuggestions'](_0x2f979d,'insertion')['filter'](({suggestion:_0x5f00eb,meta:_0x5619cc})=>_0x5619cc['isOwn']&&'convertInlineImageToBlock'==_0x5f00eb['subType']);if(_0x46c27a['length']>0x1&&_0x2870a4['end']['isEqual'](_0x2f979d['start']))return!0x0;if(0x1==_0x46c27a['length']&&(_0x2f979d['start']['isEqual'](_0x2870a4['end'])||_0x2f979d['end']['isEqual'](_0x2870a4['start'])))return!0x0;}if(0x3==_0x2a059d&&0x3==_0x327522&&_0x2f979d['start']['isBefore'](_0x2870a4['start'])){const _0x2fbc07=_0x2f979d['end']['nodeAfter'],_0x202e2a=_0x2870a4['start']['nodeBefore'];return _0x20e6d9['isBlockImage'](_0x2fbc07)&&_0x2fbc07===_0x202e2a;}return!0x1;}function _0x10644f(_0x467639,_0xdb8a46){return _0x433b09(_0x467639,_0xdb8a46)?[_0x467639,_0xdb8a46]:_0x433b09(_0xdb8a46,_0x467639)?[_0xdb8a46,_0x467639]:null;}_0xc9ef2e['plugins']['has']('ImageResize')&&(_0x427218['enableDefaultAttributesIntegration']('resizeImage'),_0x427218['registerBlockAttribute']('resizedWidth'),_0x427218['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4580fe,'FORMAT_IMAGE_SIZE'))),_0xc9ef2e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x427218['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x427218['registerBlockAttribute']('alt')),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0xd345cf=>{if(!!_0x221ec7['find'](({type:_0x104d56,subType:_0x4add19})=>_0xd345cf['type']==_0x104d56&&_0xd345cf['subType']==_0x4add19))return _0xd345cf['previous']?{}:void 0x0;}),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0x2794bf=>{if('insertion'==_0x2794bf['type']||'deletion'==_0x2794bf['type']){const _0x581bba=_0x2794bf['getContainedElement']();if(_0x581bba&&_0x581bba['is']('element','caption'))return{'type':'insertion'==_0x2794bf['type']?'addObject':'removeObject','element':_0x581bba,'quantity':0x1};}}),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0x2474c1=>'formatBlock'==_0x2474c1['type']&&'convertInlineImageToBlock'==_0x2474c1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2474c1['type']&&'convertBlockImageToInline'==_0x2474c1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0x42f2af=>{if('attribute'!=_0x42f2af['type'])return;const {data:_0x45226c}=_0x42f2af;if(!_0x45226c||'alt'!=_0x45226c['key'])return;const _0x50dd00=_0x45226c['newValue'];return _0x50dd00?{'type':'format','content':o(_0x4580fe,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50dd00+'\x22')}:{'type':'format','content':o(_0x4580fe,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8b6c99=this['editor'],_0x41149e=_0x8b6c99['locale'];_0x8b6c99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x276639=>{if('formatBlock'!=_0x276639['type']&&'formatInline'!=_0x276639['type'])return;const {data:_0x5f257a}=_0x276639;if(_0x5f257a){if('imageTextAlternative'==_0x5f257a['commandName']){const _0x5c8f21=_0x5f257a['commandParams'][0x0]['newValue'];return _0x5c8f21?{'type':'format','content':o(_0x41149e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c8f21+'\x22')}:{'type':'format','content':o(_0x41149e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5f257a['commandName']){const _0x1299d0=_0x5f257a['commandParams'][0x0]['width'];return _0x1299d0?{'type':'format','content':o(_0x41149e,'*Set\x20image\x20width:*\x20%0',_0x1299d0)}:{'type':'format','content':o(_0x41149e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x237d7e=this['editor']['locale'],_0xc35852=this['editor']['plugins']['get']('TrackChangesEditing');_0xc35852['enableDefaultAttributesIntegration']('replaceImageSource'),_0xc35852['registerBlockAttribute']('src'),_0xc35852['descriptionFactory']['registerDescriptionCallback'](_0x2ca8af=>{if('attribute'!=_0x2ca8af['type'])return;const {data:_0x423dad}=_0x2ca8af;return _0x423dad&&'src'==_0x423dad['key']?_0x423dad['newValue']&&_0x423dad['oldValue']?{'type':'format','content':o(_0x237d7e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e1754=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1754['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e1754['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e1754['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e1754['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x818316=this['editor'],_0x419bf9=_0x818316['locale'];_0x818316['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34acb3=>{if('formatBlock'!=_0x34acb3['type']&&'formatInline'!=_0x34acb3['type'])return;const {data:_0x13db46}=_0x34acb3;if(!_0x13db46||'replaceImageSource'!=_0x13db46['commandName'])return;return{'type':'format','content':o(_0x419bf9,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x16481a{['afterInit'](){const _0x1b9957=this['editor'];if(!_0x1b9957['plugins']['has']('ImageStyleEditing'))return;const _0x37c344=_0x1b9957['plugins']['get']('TrackChangesEditing'),_0x1549b8=_0x1b9957['plugins']['get']('ImageUtils'),_0x529bdf={};_0x37c344['enableCommand']('imageStyle',(_0x4d9ae8,_0x30480b)=>{const _0xd04a19=_0x1b9957['plugins']['get']('Users')['me'],_0x48aadb=_0x1b9957['commands']['get']('imageStyle');let _0x17eae5=_0x1549b8['getClosestSelectedImageElement'](_0x1b9957['model']['document']['selection']),_0x1db5ac=_0x1b9957['model']['createRangeOn'](_0x17eae5),_0x47998b=_0x48aadb['value'];if(_0x47998b==_0x30480b['value'])return;const _0x166751={'commandName':'imageStyle','commandParams':[_0x30480b],'formatGroupId':_0x287d7d()};_0x1b9957['model']['change'](()=>{if(_0x37c344['getSuggestions']()['filter'](_0x330d03=>_0x330d03['isInContent']&&_0xd04a19==_0x330d03['author']&&('formatBlock'==_0x330d03['type']||'formatInline'==_0x330d03['type'])&&('imageStylePreApply'==_0x330d03['subType']||'imageStylePostApply'==_0x330d03['subType'])&&_0x330d03['getFirstRange']()['isEqual'](_0x1db5ac))['forEach'](_0x286084=>_0x37c344['discardSuggestion'](_0x286084['head'])),_0x17eae5=_0x1549b8['getClosestSelectedImageElement'](_0x1b9957['model']['document']['selection']),_0x1db5ac=_0x1b9957['model']['createRangeOn'](_0x17eae5),_0x48aadb['refresh'](),_0x1b9957['commands']['get']('imageTypeInline')['refresh'](),_0x1b9957['commands']['get']('imageTypeBlock')['refresh'](),_0x47998b=_0x48aadb['value'],_0x47998b!=_0x30480b['value'])return _0x1549b8['isInlineImage'](_0x17eae5)&&_0x48aadb['shouldConvertImageType'](_0x30480b['value'],_0x17eae5)?(_0x4d9ae8({..._0x30480b,'setImageSizes':!0x1}),_0x17eae5=_0x1549b8['getClosestSelectedImageElement'](_0x1b9957['model']['document']['selection']),void _0x37c344['markBlockFormat'](_0x17eae5,{..._0x166751,'commandReversedParams':[{'value':_0x47998b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1549b8['isBlockImage'](_0x17eae5)?_0x37c344['markBlockFormat'](_0x17eae5,_0x166751,[],'imageStylePostApply'):_0x37c344['markInlineFormat'](_0x1db5ac,_0x166751,'imageStylePostApply'));});});for(const _0x12d4aa of _0x1b9957['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x529bdf[_0x12d4aa['name']]=_0x12d4aa['title']['toLowerCase']();_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x48fcb8])=>{_0x1549b8['setImageNaturalSizeAttributes'](_0x48fcb8['getContainedElement']());}),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17d8c4,_0xd21a8c)=>{_0x37c344['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17d8c4,{'commandName':_0xd21a8c['commandName'],'commandParams':_0xd21a8c['commandReversedParams']});}),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1d4cb1,_0x2022ed){if(_0x425ca8(_0x1d4cb1,_0x2022ed))return[_0x1d4cb1,_0x2022ed];if(_0x425ca8(_0x2022ed,_0x1d4cb1))return[_0x2022ed,_0x1d4cb1];return null;});const _0x15eb6a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x425ca8(_0x1404f7,_0x449e57){const _0x1d051b=_0x15eb6a['findIndex'](({type:_0x4131fa,subType:_0x3b0daf})=>_0x1404f7['type']==_0x4131fa&&_0x1404f7['subType']==_0x3b0daf),_0xd89221=_0x15eb6a['findIndex'](({type:_0x21af25,subType:_0x2fe3f8})=>_0x449e57['type']==_0x21af25&&_0x449e57['subType']==_0x2fe3f8);if(_0x1d051b<0x0||_0xd89221<0x0)return!0x1;const _0x304c49=_0x1404f7['getFirstRange'](),_0xd8e7bf=_0x449e57['getFirstRange']();if((0x0==_0x1d051b||0x1==_0x1d051b)&&0x2==_0xd89221&&_0x304c49['isIntersecting'](_0xd8e7bf))return!0x0;if(0x2==_0x1d051b&&0x3==_0xd89221){const _0x3eb28f=_0x37c344['_findSuggestions'](_0x304c49,'insertion')['filter'](({suggestion:_0x59d26a,meta:_0x48966a})=>_0x48966a['isOwn']&&'convertInlineImageToBlock'==_0x59d26a['subType']);if(_0x3eb28f['length']>0x1&&_0xd8e7bf['end']['isEqual'](_0x304c49['start']))return!0x0;if(0x1==_0x3eb28f['length']&&(_0x304c49['start']['isEqual'](_0xd8e7bf['end'])||_0x304c49['end']['isEqual'](_0xd8e7bf['start'])))return!0x0;}if(0x3==_0x1d051b&&0x3==_0xd89221&&_0x304c49['start']['isBefore'](_0xd8e7bf['start'])){const _0x522c71=_0x304c49['end']['nodeAfter'],_0x3a7f14=_0xd8e7bf['start']['nodeBefore'];return _0x1549b8['isBlockImage'](_0x522c71)&&_0x522c71===_0x3a7f14;}return!0x1;}_0x1b9957['model']['document']['registerPostFixer'](()=>{let _0x2fe719=!0x1;const _0x457dd3=Array['from'](_0x1b9957['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x418449,data:_0x2b9288}of _0x457dd3){const {group:_0x6a3fdd,type:_0x42002f,subType:_0x59004c,id:_0x41a6d0}=_0x37c344['_splitMarkerName'](_0x418449);if('suggestion'==_0x6a3fdd&&_0x37c344['hasSuggestion'](_0x41a6d0)){if('formatBlock'==_0x42002f&&('imageStylePreApply'==_0x59004c||'imageStylePostApply'==_0x59004c)){const _0x6ef8e=_0x37c344['getSuggestion'](_0x41a6d0);if(_0x2b9288['newRange']){const _0x413d85=_0x6ef8e['getFirstRange']()['getContainedElement']();if(_0x1549b8['isBlockImage'](_0x413d85))continue;_0x37c344['discardSuggestion'](_0x6ef8e),_0x2fe719=!0x0;}}if('insertion'==_0x42002f&&'imageCaption'==_0x59004c&&!_0x2b9288['newRange']){const _0x3440f2=_0x37c344['getSuggestion'](_0x41a6d0);_0x3440f2['next']&&_0x3440f2['next']['isInContent']&&(_0x37c344['discardSuggestion'](_0x3440f2['next']),_0x2fe719=!0x0);}}}return _0x2fe719;}),this['_registerLegacyDescription'](_0x529bdf);}['_registerLegacyDescription'](_0x1c6f5b){const _0x5cd656=this['editor'],_0x10c5a8=_0x5cd656['locale'];_0x5cd656['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x642a40=>{if('formatBlock'!=_0x642a40['type']&&'formatInline'!=_0x642a40['type'])return;const {data:_0x11e51c}=_0x642a40;if(!_0x11e51c||'imageStyle'!=_0x11e51c['commandName'])return;const _0x5d2248=_0x11e51c['commandParams'][0x0]['value'];return _0x8dc8aa('side'===_0x5d2248?o(_0x10c5a8,'FORMAT_SIDE_IMAGE'):_0x1c6f5b[_0x5d2248]||_0x5d2248);function _0x8dc8aa(_0x248034){return{'type':'format','content':o(_0x10c5a8,'*Format:*\x20%0',_0x248034)};}});}}class ot extends _0x16481a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4b8374){super(_0x4b8374),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41bcda=this['editor'],_0x26597a=_0x41bcda['commands']['get']('importWord'),_0x25e215=_0x41bcda['commands']['get']('trackChanges');_0x26597a&&(_0x26597a['on']('execute',(_0x417e1d,[,_0x106c50])=>{this['_trackChangesValueDuringImport']=_0x25e215['value'],_0x106c50['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x26597a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x26597a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x25e215['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41bcda['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x33e382,_0x2dc5eb){const {suggestions:_0x42e4f1}=_0x2dc5eb,_0x56a1fd=this['editor']['commands']['get']('trackChanges'),_0x2afaf0=_0x56a1fd['value'];this['_trackChangesValueDuringImport']!==_0x2afaf0&&(_0x56a1fd['execute'](),this['_trackChangesExecuted']=!0x0),_0x42e4f1&&_0x42e4f1['forEach'](({id:_0x12ae96,type:_0x4fe7af,author:_0x3566e9,created_at:_0x34be09})=>{const _0xdba4b8={'id':_0x12ae96,'type':_0x4fe7af,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3566e9,'createdAt':_0x34be09?new Date(_0x34be09):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xdba4b8);});}}class rt extends _0x16481a{['afterInit'](){const _0x15e9a7=this['editor'],_0x358d76=_0x15e9a7['plugins']['get']('TrackChangesEditing');if(_0x15e9a7['plugins']['has']('IndentEditing')&&(_0x358d76['enableCommand']('indent'),_0x358d76['enableCommand']('outdent')),_0x15e9a7['plugins']['has']('IndentBlock')){for(const _0x4ee83c of['indentBlock','outdentBlock'])_0x358d76['enableDefaultAttributesIntegration'](_0x4ee83c);}const _0x324717=_0x15e9a7['locale'];_0x358d76['registerBlockAttribute']('blockIndent'),_0x358d76['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x324717,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29607c=this['editor'],_0xfa0118=_0x29607c['locale'],_0x3c3737=_0x29607c['plugins']['get']('TrackChangesEditing');_0x3c3737['descriptionFactory']['registerDescriptionCallback'](_0x56fccc=>{if('formatBlock'!=_0x56fccc['type'])return;const {data:_0x2ecb27}=_0x56fccc;if(!_0x2ecb27)return;if('indentBlock'!=_0x2ecb27['commandName']&&'outdentBlock'!=_0x2ecb27['commandName'])return;const _0x50e405=_0x56fccc['getItems']()[0x0],_0x494ae8=_0x3c3737['descriptionFactory']['getItemLabel'](_0x50e405);return'indentBlock'==_0x2ecb27['commandName']?{'type':'format','content':o(_0xfa0118,'*Indent:*\x20%0',_0x494ae8)}:'outdentBlock'==_0x2ecb27['commandName']?{'type':'format','content':o(_0xfa0118,'*Outdent:*\x20%0',_0x494ae8)}:void 0x0;});}}class at extends _0x16481a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x16481a{['afterInit'](){const _0x1c4ad4=this['editor'];if(!_0x1c4ad4['plugins']['has']('LinkEditing'))return;const _0x2b6a5a=_0x1c4ad4['plugins']['get']('TrackChangesEditing'),_0x14c199=_0x1c4ad4['commands']['get']('link');_0x2b6a5a['enableDefaultAttributesIntegration']('link'),_0x2b6a5a['enableDefaultAttributesIntegration']('unlink'),_0x2b6a5a['registerInlineAttribute']('linkHref');for(const _0x470b79 of _0x14c199['manualDecorators'])_0x2b6a5a['registerInlineAttribute'](_0x470b79['id']),_0x2b6a5a['descriptionFactory']['registerAttributeLabel'](_0x470b79['id'],'link\x20('+_0x470b79['label']['toLowerCase']()+')');_0x2b6a5a['descriptionFactory']['registerDescriptionCallback'](_0x2b57e0=>{if('attribute'!=_0x2b57e0['type'])return;const {data:_0x2e0387}=_0x2b57e0;if(!_0x2e0387||'linkHref'!=_0x2e0387['key'])return;const _0x2cc4f3=_0x2e0387['newValue'],_0x50b600=_0x1c4ad4['locale'];return{'type':'format','content':null==_0x2cc4f3?o(_0x50b600,'*Remove\x20link*'):o(_0x50b600,'*Set\x20link:*\x20%0','\x22'+_0x2cc4f3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25f3c6=this['editor'],_0x1c3c07=_0x25f3c6['locale'];_0x25f3c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1c75=>{if('formatInline'!=_0x3d1c75['type'])return;const {data:_0x490e9c}=_0x3d1c75;if(_0x490e9c){if('link'==_0x490e9c['commandName']){const _0x1fc842=_0x490e9c['commandParams'][0x0];return{'type':'format','content':o(_0x1c3c07,'*Set\x20link:*\x20%0','\x22'+_0x1fc842+'\x22')};}return'unlink'==_0x490e9c['commandName']?{'type':'format','content':o(_0x1c3c07,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x16481a{['afterInit'](){const _0xfca512=this['editor'],_0x626361=_0xfca512['locale'];if(!_0xfca512['plugins']['has']('LegacyListEditing'))return;const _0x4d52da=_0xfca512['plugins']['get']('TrackChangesEditing'),_0x140cdf=_0xfca512['plugins']['has']('LegacyTodoListEditing');function _0x2e78f8(_0x15d8dc){return()=>{const _0x4eb982=_0xfca512['model']['document']['selection'],_0x3c92a1=_0xfca512['commands']['get'](_0x15d8dc);if(_0x3c92a1['value'])return void _0xfca512['execute']('paragraph',{});const _0x2a414e=_0x15d8dc['slice'](0x0,-0x4),_0x16e48b=function(_0x34499f,_0x17649c,_0x139dba){let _0x4fa811=Array['from'](_0x34499f)['filter'](_0x48bd44=>function(_0x582dce,_0x3556cd){return _0x3556cd['checkChild'](_0x582dce['parent'],'listItem')&&!_0x3556cd['isObject'](_0x582dce);}(_0x48bd44,_0x139dba));_0x4fa811=_0x4fa811['filter'](_0x37c0cc=>!_0x37c0cc['is']('element','listItem')||_0x37c0cc['getAttribute']('listType')!=_0x17649c);const _0x3edf27=new Set();for(const _0xb188b4 of _0x4fa811)_0xb188b4['is']('element','listItem')?_0x3edf27['add'](me(_0xb188b4)):_0x3edf27['add'](_0xb188b4);return Array['from'](_0x3edf27);}(_0x4eb982['getSelectedBlocks'](),_0x2a414e,_0xfca512['model']['schema']);_0xfca512['model']['change'](()=>{for(const _0x40086a of _0x16e48b)_0x4d52da['markBlockFormat'](_0x40086a,{'commandName':_0x15d8dc,'commandParams':[{'forceValue':!_0x3c92a1['value']}],'formatGroupId':'blockName'},fe(_0x40086a));});};}function _0x290d81(_0x585cd3){return()=>{const _0x5cfe40=function(_0x4ab197){let _0x35ff21=Array['from'](_0x4ab197);const _0x2600e2=_0x35ff21['findIndex'](_0xa08619=>'listItem'!=_0xa08619['name']);return _0x2600e2>-0x1&&(_0x35ff21=_0x35ff21['slice'](0x0,_0x2600e2)),_0x35ff21;}(_0xfca512['model']['document']['selection']['getSelectedBlocks']()),_0x5b82cd=_0xfca512['model']['createRange'](_0xfca512['model']['createPositionAt'](_0x5cfe40[0x0],'before'),_0xfca512['model']['createPositionAt'](_0x5cfe40[_0x5cfe40['length']-0x1],'end'));_0xfca512['model']['change'](()=>{_0x4d52da['markBlockFormat'](_0x5b82cd,{'commandName':_0x585cd3,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1695c6){const _0x126c3e=new Set();for(const _0x582cfc of _0x1695c6){let _0x21f42a=_0x582cfc['nextSibling'];for(;_0x21f42a&&_0x21f42a['getAttribute']('listIndent')>_0x582cfc['getAttribute']('listIndent');)_0x126c3e['add'](_0x21f42a),_0x21f42a=_0x21f42a['nextSibling'];}return Array['from'](_0x126c3e);}(_0x5cfe40));});};}_0x4d52da['enableCommand']('numberedList',_0x2e78f8('numberedList')),_0x4d52da['enableCommand']('bulletedList',_0x2e78f8('bulletedList')),_0x140cdf&&_0x4d52da['enableCommand']('todoList',_0x2e78f8('todoList')),_0x4d52da['enableCommand']('indentList',_0x290d81('indentList')),_0x4d52da['enableCommand']('outdentList',_0x290d81('outdentList')),_0x140cdf&&_0x4d52da['enableCommand']('checkTodoList',()=>{const _0x2eccba=_0xfca512['commands']['get']('checkTodoList'),_0x23fb7f=Array['from'](_0x2eccba['_selectedElements']);_0x23fb7f['filter'](_0x55d229=>_0x55d229['getAttribute']('todoListChecked')!=_0x2eccba['value']),_0xfca512['model']['change'](()=>{for(const _0x4bd3cb of _0x23fb7f)_0x4d52da['markBlockFormat'](_0x4bd3cb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2eccba['value']}]});});}),_0x4d52da['descriptionFactory']['registerElementLabel']('listItem',_0x4a5294=>o(_0x626361,'ELEMENT_LIST_ITEM',_0x4a5294)),_0x4d52da['descriptionFactory']['registerDescriptionCallback'](_0x13524a=>{if('formatBlock'!=_0x13524a['type']&&'formatInline'!=_0x13524a['type'])return;const {data:_0x2630e1}=_0x13524a;if(_0x2630e1){if('numberedList'==_0x2630e1['commandName']||'bulletedList'==_0x2630e1['commandName']||'todoList'==_0x2630e1['commandName'])switch(_0x2630e1['commandName']['replace']('List','')){case'bulleted':return _0x2b2d7a(o(_0x626361,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b2d7a(o(_0x626361,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b2d7a(o(_0x626361,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2630e1['commandName'])return{'type':'format','content':o(_0x626361,'*Indent:*\x20%0',o(_0x626361,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2630e1['commandName'])return{'type':'format','content':o(_0x626361,'*Outdent:*\x20%0',o(_0x626361,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2630e1['commandName'])return _0x2630e1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x626361,'*Check\x20item*')}:{'type':'format','content':o(_0x626361,'*Uncheck\x20item*')};}function _0x2b2d7a(_0x14d2c4){return{'type':'format','content':o(_0x626361,'*Change\x20to:*\x20%0',_0x14d2c4)};}});}}function me(_0x51f5a7){const _0x164a41=_0x51f5a7['getAttribute']('listIndent');if(0x0==_0x164a41)return _0x51f5a7;let _0x1422db=_0x51f5a7;for(;_0x51f5a7['previousSibling']&&_0x51f5a7['previousSibling']['is']('element','listItem');){const _0x2b37dc=_0x51f5a7['previousSibling']['getAttribute']('listIndent');if(_0x2b37dc==_0x164a41)_0x1422db=_0x51f5a7['previousSibling'];else{if(_0x2b37dc<_0x164a41)break;}_0x51f5a7=_0x51f5a7['previousSibling'];}return _0x1422db;}function fe(_0x3f9ad3){const _0x6c11c4=[];if(_0x3f9ad3['is']('element','listItem')&&_0x3f9ad3['getAttribute']('listIndent')>0x0){let _0x57d89c=_0x3f9ad3['nextSibling'];for(;_0x57d89c&&'listItem'==_0x57d89c['name']&&_0x57d89c['getAttribute']('listIndent')==_0x3f9ad3['getAttribute']('listIndent');)_0x6c11c4['push'](_0x57d89c),_0x57d89c=_0x57d89c['nextSibling'];}return _0x6c11c4;}class K extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2e6776=this['editor']['config']['get']('list.properties'),_0x17f24e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e6776['styles']&&_0x17f24e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2e6776['reversed']&&_0x17f24e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2e6776['startIndex']&&_0x17f24e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x17f24e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x13a71c,_0x1ba74f={}){const _0x48c7ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x154a73=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x48c7ca['markMultiRangeBlockFormat'](_0x154a73,{'commandName':'listStyle','commandParams':[{'type':_0x1ba74f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa1d572,_0x317e68={}){const _0x5d854e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31679f=this['_getSuggestionBlocks'](_0x1ef8d1=>_0x1ef8d1['is']('element','listItem')&&'numbered'===_0x1ef8d1['getAttribute']('listType'));if(_0x31679f['length']<0x1)return;const _0x202b5c=_0x31679f['map'](_0x5abb01=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abb01,'before'),this['editor']['model']['createPositionAt'](_0x5abb01,0x0)));this['editor']['model']['change'](()=>{_0x5d854e['markMultiRangeBlockFormat'](_0x202b5c,{'commandName':'listReversed','commandParams':[{'reversed':_0x317e68['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa16a9d,_0x35fd58={}){const _0x43d9c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31e962=this['_getSuggestionBlocks'](_0xd70ad2=>_0xd70ad2['is']('element','listItem')&&'numbered'===_0xd70ad2['getAttribute']('listType'));if(_0x31e962['length']<0x1)return;const _0x5db930=_0x31e962['map'](_0x4f3ee8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f3ee8,'before'),this['editor']['model']['createPositionAt'](_0x4f3ee8,0x0)));this['editor']['model']['change'](()=>{_0x43d9c9['markMultiRangeBlockFormat'](_0x5db930,{'commandName':'listStart','commandParams':[{'startIndex':_0x35fd58['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29de09){if('formatBlock'!=_0x29de09['type']&&'formatInline'!=_0x29de09['type'])return;const _0x5cf54=this['editor']['locale'],{data:_0x5219af}=_0x29de09;if(!_0x5219af)return;let _0x1f1965,_0x493a33;switch(_0x5219af['commandName']){case'listStyle':_0x1f1965='*Change\x20to:*\x20%0',_0x493a33={'type':'format','content':o(_0x5cf54,_0x1f1965,o(_0x5cf54,this['_getTranslationKeyForListStyle'](_0x5219af['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f1965=_0x5219af['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x493a33={'type':'format','content':o(_0x5cf54,_0x1f1965)};break;case'listStart':_0x1f1965='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x493a33={'type':'format','content':o(_0x5cf54,_0x1f1965,_0x5219af['commandParams'][0x0]['startIndex'])};}return _0x493a33;}['_getSuggestionBlocksForListStyle'](){const _0x203c37=this['editor']['plugins']['get']('LegacyListUtils');let _0x100432=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x100432[0x0]?.['is']('element','listItem')&&_0x100432['unshift'](..._0x203c37['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x100432[_0x100432['length']-0x1]?.['is']('element','listItem')&&_0x100432['push'](..._0x203c37['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x100432=[...new Set(_0x100432)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x100432=_0x100432['filter'](_0xcfb9a9=>_0xcfb9a9['is']('element','listItem'))),_0x100432;}['_getSuggestionBlocks'](_0x21a144){const _0x340bee=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a10fd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x21a144)['map'](_0x1f9ebf=>{const _0x2a9baf=this['editor']['model']['createPositionAt'](_0x1f9ebf,0x0);return[..._0x340bee['getSiblingNodes'](_0x2a9baf,'backward'),..._0x340bee['getSiblingNodes'](_0x2a9baf,'forward')];})['flat']();return _0x1a10fd=[...new Set(_0x1a10fd)],_0x1a10fd;}['_getTranslationKeyForListStyle'](_0x348b71){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x348b71)||'default')['toUpperCase']()+'_LIST_'+_0x348b71['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x16481a{['afterInit'](){const _0x15a3be=this['editor'];if(!_0x15a3be['plugins']['has']('MediaEmbedEditing'))return;const _0x315f5d=_0x15a3be['plugins']['get']('TrackChangesEditing'),_0x56865d=_0x15a3be['locale'];_0x315f5d['enableCommand']('mediaEmbed'),_0x315f5d['descriptionFactory']['registerElementLabel']('media',_0x5d6850=>o(_0x56865d,'ELEMENT_MEDIA',_0x5d6850)),_0x15a3be['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3bab6d,{writer:_0x380b32,options:_0x163fec})=>{if(_0x163fec['showSuggestionHighlights'])return _0x380b32['createEmptyElement']('div');},'converterPriority':'high'}),_0x15a3be['data']['downcastDispatcher']['on']('attribute:url:media',(_0x34b159,_0x3f0abc,_0x59453d)=>{_0x59453d['options']['showSuggestionHighlights']&&_0x34b159['stop']();},{'priority':'high'});}}class gt extends _0x16481a{['afterInit'](){const _0xa9613e=this['editor'];_0xa9613e['plugins']['has']('MentionEditing')&&_0xa9613e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x16481a{['afterInit'](){const _0x4cbab0=this['editor'],_0x50392f=_0x4cbab0['plugins']['get']('TrackChangesEditing');_0x4cbab0['plugins']['has']('MultiLevelList')&&(_0x50392f['enableDefaultAttributesIntegration']('multiLevelList'),_0x50392f['registerBlockAttribute']('listMarkerStyle'),_0x50392f['descriptionFactory']['registerDescriptionCallback'](_0x4edacb=>this['handleDescriptions'](_0x4edacb)));}['handleDescriptions'](_0x1688f1){const _0x4e421f=this['editor']['locale'],{data:_0x477e63}=_0x1688f1,_0x5d63e0={'type':'format','content':''};if(_0x477e63&&'listMarkerStyle'==_0x477e63['key']){if(!_0x477e63['oldValue'])return{'type':'format','content':o(_0x4e421f,'*Set\x20format:*\x20%0',o(_0x4e421f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x477e63['newValue']+')'};if(!_0x477e63['newValue']){let _0x10cebb=_0x1688f1['head'];for(;_0x10cebb;){if(_0x10cebb['data']&&'listType'==_0x10cebb['data']['key']&&_0x10cebb['data']['newValue'])return _0x5d63e0;_0x10cebb=_0x10cebb['next'];}return{'type':'format','content':o(_0x4e421f,'*Remove\x20format:*\x20%0',o(_0x4e421f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x477e63['oldValue']+')'};}}}}class mt extends _0x16481a{['afterInit'](){const _0x3a17cd=this['editor'];if(!_0x3a17cd['plugins']['has']('PageBreakEditing'))return;_0x3a17cd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x58a9cd=_0x3a17cd['plugins']['get']('TrackChangesEditing'),_0x283d1b=_0x3a17cd['locale'];_0x58a9cd['descriptionFactory']['registerElementLabel']('pageBreak',_0x311976=>o(_0x283d1b,'ELEMENT_PAGE_BREAK',_0x311976));}}class dt extends _0x16481a{['afterInit'](){const _0x12b497=this['editor'];if(!_0x12b497['plugins']['has']('Paragraph'))return;const _0x257e4a=_0x12b497['locale'],_0x1fe064=_0x12b497['plugins']['get']('TrackChangesEditing');_0x1fe064['descriptionFactory']['registerElementLabel']('paragraph',_0x3e5532=>o(_0x257e4a,'ELEMENT_PARAGRAPH',_0x3e5532)),_0x1fe064['enableDefaultAttributesIntegration']('paragraph'),_0x1fe064['enableCommand']('insertParagraph'),_0x12b497['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x12b497),{'priority':'highest'}),_0x12b497['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b2910,_0x39626c,_0x4f350a)=>{_0x4f350a['options']['showSuggestionHighlights']&&nr(_0x12b497,{'showActiveMarker':!0x1})(_0x1b2910,_0x39626c,_0x4f350a);},{'priority':'highest'});const _0x3c4492=_0x1fe064['descriptionFactory'];_0x3c4492['registerDescriptionCallback'](_0x2118a3=>{if('insertion'!==_0x2118a3['type'])return;const {start:_0x2b4ad7,end:_0x573b36}=_0x2118a3['getFirstRange']();if(!_0x2b4ad7['isTouching'](_0x573b36)||!_0x2b4ad7['nodeAfter'])return;const _0x369570=_0x12b497['model']['schema'],_0x494946=_0x2b4ad7['nodeAfter'];return _0x369570['isBlock'](_0x494946)&&!_0x369570['isLimit'](_0x494946)&&_0x369570['checkChild'](_0x494946,'$text')?{'type':'insertion','content':o(_0x257e4a,'*Insert:*\x20%0',_0x3c4492['getItemLabel'](_0x494946,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9d582=this['editor'],_0x4511a8=_0xa9d582['locale'];_0xa9d582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a1714=>{if('formatBlock'!=_0x5a1714['type'])return;const {data:_0x342517}=_0x5a1714;return _0x342517&&'paragraph'==_0x342517['commandName']?{'type':'format','content':o(_0x4511a8,'*Change\x20to:*\x20%0',o(_0x4511a8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x14e7a1,{showActiveMarker:_0x4f49f1=!0x0}={}){return(_0x1aa387,_0x22dc74,_0x3e964f)=>{const _0x213b78=_0x14e7a1['plugins']['get']('TrackChangesEditing'),_0x4c8038=_0x22dc74['markerRange']['start'],_0x4a5c48=_0x22dc74['markerRange']['end'],_0x1ff133=_0x14e7a1['model']['schema'];if(!_0x4c8038['isTouching'](_0x4a5c48)||!_0x4c8038['nodeAfter'])return;const _0x1e7f56=_0x4c8038['nodeAfter'];if(_0x1ff133['isBlock'](_0x1e7f56)&&!_0x1ff133['isLimit'](_0x1e7f56)&&_0x1ff133['checkChild'](_0x1e7f56,'$text')){if(!_0x3e964f['consumable']['consume'](_0x22dc74['markerRange'],_0x1aa387['name']))return;const _0x519cfe=_0x3e964f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2b212c=_0x3e964f['mapper']['toViewPosition'](_0x4a5c48);_0x4f49f1&&_0x213b78['activeMarkers']['includes'](_0x22dc74['markerName'])&&_0x3e964f['writer']['addClass']('ck-suggestion-marker--active',_0x519cfe),_0x3e964f['writer']['insert'](_0x2b212c,_0x519cfe),_0x3e964f['mapper']['bindElementToMarker'](_0x519cfe,_0x22dc74['markerName']);}};}class pt extends _0x16481a{['afterInit'](){const _0x4f35e0=this['editor'];if(!_0x4f35e0['plugins']['has']('RemoveFormatEditing'))return;_0x4f35e0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x372c18=this['editor'];_0x372c18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b0d58=>{if('formatBlock'!=_0x2b0d58['type']&&'formatInline'!=_0x2b0d58['type'])return;const {data:_0x3ed535}=_0x2b0d58;return _0x3ed535&&'removeFormat'==_0x3ed535['commandName']?{'type':'format','content':o(_0x372c18['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x16481a{['afterInit'](){const _0x2720f5=this['editor'];if(!_0x2720f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x509257=_0x2720f5['plugins']['get']('TrackChangesEditing');_0x509257['enableCommand']('goToPreviousRestrictedEditingException'),_0x509257['enableCommand']('goToNextRestrictedEditingException');const _0x40c8c3=_0x2720f5['plugins']['get']('RestrictedEditingModeEditing');_0x40c8c3['enableCommand']('trackChanges'),_0x40c8c3['enableCommand']('acceptSuggestion'),_0x40c8c3['enableCommand']('discardSuggestion'),_0x40c8c3['enableCommand']('acceptAllSuggestions'),_0x40c8c3['enableCommand']('discardAllSuggestions'),_0x40c8c3['enableCommand']('acceptSelectedSuggestions'),_0x40c8c3['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x16481a{static get['requires'](){return[_0x51d96c];}['init'](){const _0x41e4b6=this['editor'],_0x19d0ea=_0x41e4b6['plugins']['get']('TrackChangesEditing');_0x19d0ea['enableCommand']('shiftEnter'),_0x41e4b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x41e4b6),{'priority':'high'}),_0x41e4b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x41e4b6),{'priority':'high'}),_0x41e4b6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x192afe,_0x2930b2,_0x4a0da6)=>{_0x4a0da6['options']['showSuggestionHighlights']&&de(_0x41e4b6,{'showActiveMarker':!0x1})(_0x192afe,_0x2930b2,_0x4a0da6);}),_0x19d0ea['descriptionFactory']['registerElementLabel']('softBreak',_0x2f8210=>o(_0x41e4b6['locale'],'ELEMENT_LINE_BREAK',_0x2f8210));}}function de(_0x55d89e,{showActiveMarker:_0x255d37=!0x0}={}){return(_0x7d463b,_0x269a64,_0x28c78f)=>{const _0x3c0408=_0x55d89e['plugins']['get']('TrackChangesEditing');if(!_0x28c78f['consumable']['test'](_0x269a64['markerRange'],_0x7d463b['name']))return;const _0x2c6aad=_0x55d89e['model'];for(const _0x1c2cfb of _0x269a64['markerRange']['getItems']()){if(!_0x1c2cfb['is']('element','softBreak'))continue;const _0x215b1e='deletion'==_0x269a64['markerName']['split'](':')[0x1]?'merge':'split',_0x23b7c6=_0x28c78f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x215b1e}),_0x120c5f=_0x28c78f['mapper']['toViewPosition'](_0x2c6aad['createPositionBefore'](_0x1c2cfb));_0x255d37&&_0x3c0408['activeMarkers']['includes'](_0x269a64['markerName'])&&_0x28c78f['writer']['addClass']('ck-suggestion-marker--active',_0x23b7c6),_0x28c78f['writer']['insert'](_0x120c5f,_0x23b7c6),_0x28c78f['mapper']['bindElementToMarker'](_0x23b7c6,_0x269a64['markerName']);}};}class wt extends _0x16481a{['afterInit'](){const _0x4bae6b=this['editor'],_0x4846ce=_0x4bae6b['model'],_0x52d755=_0x4bae6b['locale'];if(!_0x4bae6b['plugins']['has']('StandardEditingModeEditing'))return;const _0x86017a=_0x4bae6b['plugins']['get']('TrackChangesEditing'),_0x3dbb1b='restrictedEditingException',_0x20c965=_0x4bae6b['commands']['get'](_0x3dbb1b);_0x86017a['enableCommand'](_0x3dbb1b,(_0x34538c,_0x472ede={})=>{const _0x44c74d=_0x4846ce['document']['selection'];if(_0x44c74d['isCollapsed'])return void _0x34538c(_0x472ede);const _0x581c79=void 0x0!==_0x472ede['forceValue']?_0x472ede['forceValue']:!_0x20c965['value'];_0x4846ce['change'](()=>{const _0x127734=Array['from'](_0x44c74d['getRanges']());for(const _0x36afb9 of _0x127734){const _0x22c3d0=_0x581c79?[_0x36afb9]:io(_0x3dbb1b,_0x36afb9,_0x4846ce);for(const _0x28d453 of _0x22c3d0)_0x86017a['markInlineFormat'](_0x28d453,{'commandName':_0x3dbb1b,'commandParams':[{'forceValue':_0x581c79}]});}});}),_0x86017a['descriptionFactory']['registerDescriptionCallback'](_0x5dc4ad=>{if('formatBlock'!=_0x5dc4ad['type']&&'formatInline'!=_0x5dc4ad['type'])return;const {data:_0x253b74}=_0x5dc4ad;return _0x253b74&&_0x253b74['commandName']==_0x3dbb1b?_0x253b74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52d755,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52d755,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x16481a{['afterInit'](){const _0x50f1da=this['editor'];if(!_0x50f1da['plugins']['has']('Style')||!_0x50f1da['plugins']['has']('DataSchema'))return;const _0x4013a3=_0x50f1da['plugins']['get']('TrackChangesEditing'),_0x435a00=_0x50f1da['locale'],_0x1cf171=_0x50f1da['config']['get']('style')||{},_0x5be559=_0x50f1da['plugins']['get']('GeneralHtmlSupport'),_0x54e7c5=_0x50f1da['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50f1da['plugins']['get']('DataSchema'),_0x1cf171['definitions']);_0x4013a3['enableDefaultAttributesIntegration']('style');const _0x3f194d=new Set();for(const _0xbe8cd2 of _0x54e7c5['block']){const _0x2d5320=_0x5be559['getGhsAttributeNameForElement'](_0xbe8cd2['element']);_0x3f194d['add'](_0x2d5320);}const _0x2fe1b7=new Set();for(const _0x4a2ca4 of _0x54e7c5['inline']){const _0xd4f1c0=_0x5be559['getGhsAttributeNameForElement'](_0x4a2ca4['element']);_0x2fe1b7['add'](_0xd4f1c0);for(const _0x517a05 of _0x4a2ca4['ghsAttributes'])_0x2fe1b7['add'](_0x517a05);}for(const _0x2fae00 of _0x3f194d)_0x4013a3['registerBlockAttribute'](_0x2fae00),_0x4013a3['descriptionFactory']['registerAttributeLabel'](_0x2fae00,o(_0x435a00,'FORMAT_STYLE'));for(const _0x205fd5 of _0x2fe1b7)_0x4013a3['registerInlineAttribute'](_0x205fd5),_0x4013a3['descriptionFactory']['registerAttributeLabel'](_0x205fd5,o(_0x435a00,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183169=this['editor'],_0xde6be3=_0x183169['locale'];_0x183169['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33a5a9=>{if('formatBlock'!=_0x33a5a9['type']&&'formatInline'!=_0x33a5a9['type'])return;const {data:_0x95e5fd}=_0x33a5a9;return _0x95e5fd&&'style'===_0x95e5fd['commandName']?_0x95e5fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xde6be3,'*Set\x20format:*\x20%0',_0x95e5fd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xde6be3,'*Remove\x20format:*\x20%0',_0x95e5fd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x16481a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x584523){super(_0x584523),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3b28c1=this['editor'],_0x570268=_0x3b28c1['model']['document']['selection'];if(!_0x3b28c1['plugins']['has']('TableEditing'))return;const _0x2aac67=_0x3b28c1['locale'],_0x5122e7=_0x3b28c1['plugins']['get']('TrackChangesEditing'),_0x47e86c=_0x3b28c1['plugins']['get']('TableUtils');_0x5122e7['descriptionFactory']['registerElementLabel']('table',_0x272e0a=>o(_0x2aac67,'ELEMENT_TABLE',_0x272e0a)),this['_setupColumnsRowsFixing'](),_0x5122e7['enableCommand']('insertTable'),_0x5122e7['enableCommand']('selectTableRow'),_0x5122e7['enableCommand']('selectTableColumn');for(const _0x19d049 of['insertTableRowAbove','insertTableRowBelow']){const _0x468969=_0x3b28c1['commands']['get'](_0x19d049);_0x5122e7['enableCommand'](_0x19d049,_0x26a16b=>{_0x3b28c1['model']['change'](_0x169c93=>{_0x26a16b();const _0x5d3d3b='above'===_0x468969['order'],_0x2839fc=_0x47e86c['getSelectionAffectedTableCells'](_0x570268),_0x2853ac=_0x47e86c['getRowIndexes'](_0x2839fc),_0x36179b=_0x5d3d3b?_0x2853ac['first']-0x1:_0x2853ac['last']+0x1,_0x3e4bb3=_0x2839fc[0x0]['findAncestor']('table'),_0xfffca8=_0x47e86c['createTableWalker'](_0x3e4bb3,{'startRow':_0x36179b,'endRow':_0x36179b}),_0x4e676a=Array['from'](_0xfffca8)['map'](_0x15b3c9=>_0x169c93['createRangeOn'](_0x15b3c9['cell']));_0x5122e7['markMultiRangeInsertion'](_0x4e676a,'tableRow');});});}for(const _0x63437d of['insertTableColumnLeft','insertTableColumnRight']){const _0x49131c=_0x3b28c1['commands']['get'](_0x63437d);_0x5122e7['enableCommand'](_0x63437d,_0x32f37f=>{_0x3b28c1['model']['change'](_0x4ef445=>{_0x32f37f();const _0x4f5964='left'===_0x49131c['order'],_0x573f05=_0x47e86c['getSelectionAffectedTableCells'](_0x570268),_0x5855db=_0x47e86c['getColumnIndexes'](_0x573f05),_0x31cba9=_0x4f5964?_0x5855db['first']-0x1:_0x5855db['last']+0x1,_0xcfb82=_0x573f05[0x0]['findAncestor']('table'),_0x2db932=_0x47e86c['createTableWalker'](_0xcfb82,{'startRow':0x0,'column':_0x31cba9,'includeAllSlots':!0x1}),_0x2b4d66=Array['from'](_0x2db932)['map'](_0x421b33=>_0x4ef445['createRangeOn'](_0x421b33['cell']));_0x5122e7['markMultiRangeInsertion'](_0x2b4d66,'tableColumn');});});}for(const _0x1bc40b of['removeTableRow','removeTableColumn']){const _0xa19297=_0x1bc40b['substr'](0xb),_0x5896f6=_0xa19297['toLowerCase'](),_0x307d3d=_0x5896f6['substr'](0x0,0x3)+'span',_0x45b796='table'+_0xa19297,_0x1b78bb='min'+_0xa19297,_0x36c197='max'+_0xa19297;_0x5122e7['enableCommand'](_0x1bc40b,()=>{_0x3b28c1['model']['change'](_0xcfd91b=>{const _0x3a532b=_0x47e86c['getSelectionAffectedTableCells'](_0x570268),_0x159209=_0x3a532b[0x0]['findAncestor']('table');let _0x551dbb;if('removeTableRow'==_0x1bc40b){const _0x16980d=_0x47e86c['getRowIndexes'](_0x3a532b);_0x551dbb={'startRow':_0x16980d['first'],'endRow':_0x16980d['last'],'includeAllSlots':!0x0};}else{const _0x518d21=_0x47e86c['getColumnIndexes'](_0x3a532b);_0x551dbb={'startColumn':_0x518d21['first'],'endColumn':_0x518d21['last'],'includeAllSlots':!0x0};}const _0x3674eb=_0x47e86c['createTableWalker'](_0x159209,_0x551dbb),_0x2600fb=Array['from'](_0x3674eb)['map'](({cell:_0x3119c8})=>_0x3119c8),_0x103f22=Ee(_0x2600fb['filter'](_0x560133=>_0x560133['hasAttribute'](_0x307d3d))),_0x1fcbe5=Ee(_0x2600fb['filter'](_0x2051ae=>!_0x2051ae['hasAttribute'](_0x307d3d)))['map'](_0x112abf=>_0xcfd91b['createRangeOn'](_0x112abf)),_0x5f4afa=_0x5122e7['markMultiRangeDeletion'](_0x1fcbe5,_0x45b796);if(_0x5f4afa&&('tableRow'==_0x5f4afa['subType']||'tableColumn'==_0x5f4afa['subType'])){const _0xe8d62a=this['_getSuggestionCoords'](_0x5f4afa);for(const _0x520786 of _0x103f22){const _0x409134=_0xcfd91b['createRangeOn'](_0x520786),_0x58d082=_0x47e86c['getCellLocation'](_0x520786),_0x291dd0=_0x520786['getAttribute'](_0x307d3d)-0x1,_0x6f1aac=_0xe8d62a[_0x1b78bb],_0x5a4fba=_0xe8d62a[_0x36c197];_0x6f1aac<=_0x58d082[_0x5896f6]&&_0x58d082[_0x5896f6]+_0x291dd0<=_0x5a4fba&&_0x5f4afa['addRange'](_0x409134);}}});});}function _0xbca64a(_0x322cd5){const _0x12336f=Array['from'](_0x570268['getRanges']())['map'](_0x2ec531=>_0x55c0b1['fromRange'](_0x2ec531));_0x3b28c1['model']['change'](_0x2ef1fe=>{const _0x53d477=_0x2ef1fe['batch'];_0x322cd5=_0x322cd5['filter'](_0x18d081=>'$graveyard'!=_0x18d081['root']['rootName']),_0x2ef1fe['setSelection'](_0x322cd5),_0x3b28c1['commands']['get']('removeTableRow')['refresh'](),_0x3b28c1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3b28c1['model']['enqueueChange'](()=>{_0x3b28c1['model']['enqueueChange'](_0x53d477,_0x9b1d3a=>{const _0x3be2d1=_0x12336f['filter'](_0x5076ef=>'$graveyard'!=_0x5076ef['root']['rootName']);_0x3be2d1['length']>0x0&&_0x9b1d3a['setSelection'](_0x3be2d1);for(const _0x41b207 of _0x12336f)_0x41b207['detach']();});});});}function _0xcf0255(_0x56ee2c){_0x3b28c1['model']['change'](_0x3b9acf=>{const _0xc556ec=Array['from'](_0x570268['getRanges']())['map'](_0x12c4d1=>_0x55c0b1['fromRange'](_0x12c4d1)),_0x30ba09=[];for(const _0x4ee7be of _0x56ee2c)for(const _0x26b35a of _0x4ee7be['getItems']({'shallow':!0x0}))_0x30ba09['push'](_0x26b35a);for(const _0x3515cb of _0x30ba09)'$graveyard'!=_0x3515cb['root']['rootName']&&(_0x3b9acf['setSelection'](_0x3b9acf['createPositionAt'](_0x3515cb,0x0)),_0x3b28c1['commands']['get']('removeTableColumn')['refresh'](),_0x3b28c1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x465a90=_0xc556ec['filter'](_0x1f3418=>'$graveyard'!=_0x1f3418['root']['rootName']);_0x465a90['length']>0x0&&_0x3b9acf['setSelection'](_0x465a90);for(const _0x291096 of _0xc556ec)_0x291096['detach']();});}function _0x1b963a(_0x14d6f5,_0x1df216){return _0x1df216['every'](_0x361309=>_0x14d6f5['some'](_0x178345=>_0x178345['end']['isEqual'](_0x361309['start'])||_0x361309['end']['isEqual'](_0x178345['start'])));}function _0x32a8e0(_0x4c5fc9,_0x31b95a){return!_0x4c5fc9['some'](_0x1c57ca=>_0x31b95a['some'](_0x570106=>_0x1c57ca['isIntersecting'](_0x570106)))&&_0x4c5fc9['some'](_0x237de6=>_0x31b95a['some'](_0x4b7c9d=>_0x237de6['end']['isTouching'](_0x4b7c9d['start'])));}_0x3b28c1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c8d01,_0x318c82,_0xa8c377)=>{if(!_0xa8c377['options']['showSuggestionHighlights'])return;const _0x14da82=_0x318c82['item'];if(!_0x14da82)return;const _0x5e402f=_0xa8c377['mapper']['toViewElement'](_0x14da82);function _0x55e5d1(_0x54f236){return Array['isArray'](_0x54f236)?_0x54f236:[_0x54f236];}_0x5e402f&&'tableCell'===_0x14da82['name']&&_0x394db3(_0x5e402f,_0xa8c377['writer'],(_0x3e2d4d,_0x1f2990,_0xc348f3)=>_0xc348f3['addClass'](_0x55e5d1(_0x1f2990['classes']),_0x3e2d4d),(_0x93e534,_0x1a6112,_0x380bf4)=>_0x380bf4['removeClass'](_0x55e5d1(_0x1a6112['classes']),_0x93e534));},{'priority':'highest'}),_0x5122e7['descriptionFactory']['registerDescriptionCallback'](_0x43a78c=>{if('insertion'!=_0x43a78c['type']&&'deletion'!=_0x43a78c['type'])return;const _0x4fe59a=_0x43a78c['getContainedElement']();if(null!=_0x4fe59a&&_0x4fe59a['is']('element','table')){if('insertion'==_0x43a78c['type']){const _0x3f7533=_0x43a78c['getItems']()['filter'](_0x58de11=>_0x58de11['is']('$textProxy'))['map'](_0xf256e1=>_0xf256e1['data']);if(_0x3f7533['length'])return{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f7533['join']('\x20')+'\x22'))};}if('deletion'==_0x43a78c['type']){const _0x6e48e0=_0x43a78c['getItems']()['filter'](_0xa6f170=>_0xa6f170['is']('$textProxy'))['map'](_0x4a14ad=>_0x4a14ad['data']);if(_0x6e48e0['length'])return{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x6e48e0['join']('\x20')+'\x22'))};}}}),_0x5122e7['descriptionFactory']['registerDescriptionCallback'](_0x40d53d=>{if('tableRow'==_0x40d53d['subType']){const _0x8f9aca=_0x40d53d['getItems']()['filter'](_0x5285d2=>_0x5285d2['is']('$textProxy'))['map'](_0x343d7b=>_0x343d7b['data']),_0x16071e=this['_getSuggestionCoords'](_0x40d53d),_0x4f5cdb=_0x16071e['maxRow']-_0x16071e['minRow']+0x1;if('insertion'==_0x40d53d['type'])return _0x8f9aca['length']?{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f5cdb,'\x22'+_0x8f9aca['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW',_0x4f5cdb))};if('deletion'==_0x40d53d['type'])return _0x8f9aca['length']?{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f5cdb,'\x22'+_0x8f9aca['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW',_0x4f5cdb))};}if('tableColumn'==_0x40d53d['subType']){const _0x569098=_0x40d53d['getItems']()['filter'](_0x3c6e1a=>_0x3c6e1a['is']('$textProxy'))['map'](_0x4da26b=>_0x4da26b['data']),_0x45625f=this['_getSuggestionCoords'](_0x40d53d),_0x4ed4e0=_0x45625f['maxColumn']-_0x45625f['minColumn']+0x1;if('insertion'==_0x40d53d['type'])return _0x569098['length']?{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ed4e0,'\x22'+_0x569098['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN',_0x4ed4e0))};if('deletion'==_0x40d53d['type'])return _0x569098['length']?{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ed4e0,'\x22'+_0x569098['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN',_0x4ed4e0))};}}),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xbca64a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xbca64a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xcf0255),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xcf0255),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b963a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b963a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32a8e0),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32a8e0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2777f1=this['editor'],_0x171d0d=_0x2777f1['model']['document']['selection'];return(_0x572935,_0x5b269d)=>{_0x2777f1['model']['change'](_0x1fffc1=>{const {commandName:_0x2146c4,commandParams:_0x8b8348}=_0x5b269d;let _0x1a2111=_0x572935[0x0]['end']['nodeBefore'];_0x8b8348&&_0x8b8348[0x0]&&!0x1===_0x8b8348[0x0]['forceValue']&&(_0x1a2111=_0x572935[0x0]['start']['nodeAfter']);const _0x499b80=_0x1fffc1['createRangeIn'](_0x1a2111);if('$graveyard'==_0x499b80['root']['rootName'])return;const _0x428370=Array['from'](_0x171d0d['getRanges']())['map'](_0x34fea3=>_0x55c0b1['fromRange'](_0x34fea3));_0x1fffc1['setSelection'](_0x499b80),_0x2777f1['commands']['get'](_0x2146c4)['refresh'](),_0x8b8348['push']({'forceDefaultExecution':!0x0}),_0x2777f1['execute'](_0x2146c4,..._0x8b8348);const _0xe3a0db=_0x428370['filter'](_0x58db70=>'$graveyard'!=_0x58db70['root']['rootName']);_0xe3a0db['length']>0x0&&_0x1fffc1['setSelection'](_0xe3a0db);for(const _0x4cf65e of _0x428370)_0x4cf65e['detach']();});};}['_getCoordsForCells'](_0x2e6b2f){const _0x410d33=this['editor']['plugins']['get']('TableUtils');let _0x2b879d=Number['MAX_SAFE_INTEGER'],_0x2b9c61=Number['MIN_SAFE_INTEGER'],_0xf8116b=Number['MAX_SAFE_INTEGER'],_0x51941c=Number['MIN_SAFE_INTEGER'];for(const _0x56eac6 of _0x2e6b2f){if('$graveyard'==_0x56eac6['root']['rootName'])continue;const {row:_0x2c324b,column:_0x21f2ae}=_0x410d33['getCellLocation'](_0x56eac6),_0x3b7e6a=_0x56eac6['hasAttribute']('rowspan')?_0x56eac6['getAttribute']('rowspan')-0x1:0x0,_0x11fd4e=_0x56eac6['hasAttribute']('colspan')?_0x56eac6['getAttribute']('colspan')-0x1:0x0;_0x2b879d=_0x2c324b<_0x2b879d?_0x2c324b:_0x2b879d,_0x2b9c61=_0x2c324b+_0x3b7e6a>_0x2b9c61?_0x2c324b+_0x3b7e6a:_0x2b9c61,_0xf8116b=_0x21f2ae<_0xf8116b?_0x21f2ae:_0xf8116b,_0x51941c=_0x21f2ae+_0x11fd4e>_0x51941c?_0x21f2ae+_0x11fd4e:_0x51941c;}return{'minRow':_0x2b879d,'maxRow':_0x2b9c61,'minColumn':_0xf8116b,'maxColumn':_0x51941c};}['_setupColumnsRowsFixing'](){const _0x584f4a=this['editor'],_0x4232b0=_0x584f4a['plugins']['get']('TrackChangesEditing'),_0xad7c41=_0x584f4a['plugins']['get']('TableUtils');_0x584f4a['model']['document']['on']('change:data',()=>{const _0x593345=Array['from'](_0x584f4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45c1af,data:_0x2208ba}of _0x593345){const {group:_0x165635,id:_0x499c40,subType:_0x3bd965}=_0x4232b0['_splitMarkerName'](_0x45c1af);if('suggestion'!=_0x165635)continue;if(null!=_0x2208ba['oldRange'])continue;const _0x3b6c66=_0x4232b0['getSuggestion'](_0x499c40);this['_tablePostFixingSubtypes']['includes'](_0x3bd965)&&this['_tableSuggestions']['add'](_0x3b6c66);}},{'priority':'low'});const _0x4cf454=(_0x1aacdf,_0x3199d1)=>{let _0x1a994a=!0x1;const _0xb03c55=_0x3199d1['createRangeOn'](_0x1aacdf),_0x52dee9=_0x1aacdf['findAncestor']('table'),_0x562fb1=_0xad7c41['getCellLocation'](_0x1aacdf);for(const _0x1d8159 of this['_tableSuggestions']){const _0x7ff04d=_0x1d8159['subType'],_0x16a257=_0x7ff04d['startsWith']('tablePaste'),_0x6a4f66=_0x7ff04d['substr'](_0x16a257?0xa:0x5),_0x155497=_0x6a4f66['toLowerCase'](),_0x2e1254=_0x155497['substr'](0x0,0x3)+'span',_0x4b9985='min'+_0x6a4f66,_0x3821d8='max'+_0x6a4f66;if(!_0x1d8159['isInContent'])continue;if(_0x52dee9!=_0x1d8159['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1d8159['isIntersectingWithRange'](_0xb03c55))continue;const _0x4c7f53=_0x1aacdf['hasAttribute'](_0x2e1254)?_0x1aacdf['getAttribute'](_0x2e1254)-0x1:0x0,_0x49e432=this['_getSuggestionCoords'](_0x1d8159),_0x1aad03=_0x49e432[_0x4b9985],_0x40fb59=_0x49e432[_0x3821d8];_0x1aad03<=_0x562fb1[_0x155497]&&_0x562fb1[_0x155497]+_0x4c7f53<=_0x40fb59&&(_0x1d8159['addRange'](_0xb03c55),_0x1a994a=!0x0);}return _0x1a994a;};_0x584f4a['model']['document']['registerPostFixer'](_0x40a29e=>{let _0x5df9d7=!0x1;for(const _0xd6440f of _0x584f4a['model']['document']['differ']['getChanges']())if('insert'==_0xd6440f['type']){if('tableRow'==_0xd6440f['name']){for(const _0x574f49 of _0xd6440f['position']['nodeAfter']['getChildren']())_0x5df9d7=_0x5df9d7||_0x4cf454(_0x574f49,_0x40a29e);}else'tableCell'==_0xd6440f['name']&&(_0x5df9d7=_0x5df9d7||_0x4cf454(_0xd6440f['position']['nodeAfter'],_0x40a29e));}return _0x5df9d7;});}['_getSuggestionCoords'](_0x284cdc){return this['_getCoordsForCells'](_0x284cdc['getRanges']()['map'](_0x1910a6=>_0x1910a6['start']['nodeAfter']));}}function Ee(_0x5179ed){return Array['from'](new Set(_0x5179ed)['values']());}class St extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0x39c066=this['editor'],_0x5f2790=_0x39c066['model']['document']['selection'],_0x229e9d=_0x39c066['locale'];if(!_0x39c066['plugins']['has']('TableEditing'))return;const _0xc873d1=_0x39c066['plugins']['get']('TrackChangesEditing'),_0x237eee=_0x39c066['plugins']['get']('TableUtils'),_0x4854e3=_0x39c066['plugins']['get'](jt);_0x4854e3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xc873d1['enableCommand']('mergeTableCells',()=>{const _0xe79e05=_0x237eee['getSelectionAffectedTableCells'](_0x39c066['model']['document']['selection']);_0x39c066['model']['change'](()=>{_0xc873d1['markMultiRangeBlockFormat'](_0xe79e05,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39c066['commands']['get']('mergeTableCells')['on']('execute',(_0x1f136d,_0x510fda)=>{_0x39c066['commands']['get']('trackChanges')['value']&&(_0x510fda['length']>0x0&&_0x510fda[_0x510fda['length']-0x1]&&_0x510fda[_0x510fda['length']-0x1]['forceDefaultExecution']||_0xc873d1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f136d['stop']());},{'priority':'highest'});for(const _0x185d3e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x581444=_0x39c066['commands']['get'](_0x185d3e);_0xc873d1['enableCommand'](_0x185d3e,()=>{const _0x3a6059=_0x39c066['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4da5df=>_0x4da5df['is']('element','tableCell')),_0x249e51=_0x581444['value'];_0x39c066['model']['change'](()=>{_0xc873d1['markMultiRangeBlockFormat']([_0x3a6059,_0x249e51],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3721dc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37f724=_0x39c066['commands']['get'](_0x3721dc);_0xc873d1['enableCommand'](_0x3721dc,()=>{const _0x155608=_0x237eee['getSelectionAffectedTableCells'](_0x39c066['model']['document']['selection'])[0x0],_0xba9a7=_0x155608['findAncestor']('table'),{column:_0x13a614,row:_0x1abcf9}=_0x237eee['getCellLocation'](_0x155608);let _0x5c5d69=[];if('horizontally'==_0x37f724['direction']){const _0x183228=_0x237eee['createTableWalker'](_0xba9a7,{'startRow':_0x1abcf9,'endRow':_0x1abcf9,'includeAllSlots':!0x0});_0x5c5d69=Array['from'](_0x183228)['map'](_0x59151f=>_0x59151f['cell']);}else{const _0x3c8080=_0x237eee['createTableWalker'](_0xba9a7,{'column':_0x13a614,'includeAllSlots':!0x0});_0x5c5d69=Array['from'](_0x3c8080)['map'](_0x4e2a70=>_0x4e2a70['cell']);}_0x39c066['model']['change'](_0x2b4eea=>{_0xc873d1['markBlockFormat'](_0x2b4eea['createRangeOn'](_0x155608),{'commandName':_0x3721dc,'commandParams':[]},_0x5c5d69,_0x3721dc);});});}_0xc873d1['descriptionFactory']['registerDescriptionCallback'](_0x37c015=>{if('formatBlock'!=_0x37c015['type']&&'formatInline'!=_0x37c015['type'])return;const {data:_0x593209}=_0x37c015;return _0x593209&&'mergeTableCells'==_0x593209['commandName']?{'type':'format','content':o(_0x229e9d,'*Merge\x20cells*')}:void 0x0;}),_0xc873d1['descriptionFactory']['registerDescriptionCallback'](_0x494eac=>{if('formatBlock'!=_0x494eac['type']&&'formatInline'!=_0x494eac['type'])return;const {data:_0x36b629}=_0x494eac;return _0x36b629?'splitTableCellVertically'==_0x36b629['commandName']?{'type':'format','content':o(_0x229e9d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36b629['commandName']?{'type':'format','content':o(_0x229e9d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x375105=_0x4854e3['_acceptFormatSuggestionCallbackFactory']();for(const _0x4f0b0b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xc873d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f0b0b,'accept',_0x375105);for(const _0x4e0d68 of['splitTableCellVertically','splitTableCellHorizontally'])_0xc873d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e0d68,'accept',_0x375105);_0xc873d1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7850cc=>{_0x39c066['model']['change'](_0x1e787e=>{const _0x44eba0=Array['from'](_0x5f2790['getRanges']())['map'](_0x117342=>_0x55c0b1['fromRange'](_0x117342));_0x1e787e['setSelection'](_0x7850cc),_0x39c066['commands']['get']('mergeTableCells')['refresh'](),_0x39c066['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x316533=_0x44eba0['filter'](_0x31e3f2=>'$graveyard'!=_0x31e3f2['root']['rootName']);_0x316533['length']>0x0&&_0x1e787e['setSelection'](_0x316533);for(const _0x2d725a of _0x44eba0)_0x2d725a['detach']();});});for(const _0x963db1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x12b3b8=_0x39c066['commands']['get'](_0x963db1);_0x12b3b8['on']('set:isEnabled',(_0x3805ac,_0x1ec8b0,_0x54d285)=>{if(_0x54d285){const _0x484516=_0x39c066['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c13bc=>_0x2c13bc['is']('element','tableCell'));this['_areMergableCells'](_0x12b3b8['value'],_0x484516)||(_0x3805ac['return']=!0x1,_0x3805ac['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x186792=this['editor']['commands']['get']('mergeTableCells'),_0x597947=this['editor']['plugins']['get']('TableUtils');if(!_0x186792['isEnabled'])return!0x1;const _0x45009e=_0x597947['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a10bc of _0x45009e)for(const _0x7405ef of _0x45009e)if(_0x5a10bc!=_0x7405ef&&!this['_areMergableCells'](_0x5a10bc,_0x7405ef))return!0x1;return!0x0;}['_areMergableCells'](_0x1c1af0,_0x45df){const _0xba9bda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19ef3a=this['editor']['model']['createRangeOn'](_0x1c1af0),_0x1af9fd=this['editor']['model']['createRangeOn'](_0x45df),_0x1272d6=new Set(),_0x5a4835=new Set();for(const _0x2c707a of _0xba9bda['getSuggestions']())if(('insertion'==_0x2c707a['type']||'deletion'==_0x2c707a['type']||'mergeTableCells'==_0x2c707a['subType'])&&_0x2c707a['isInContent']){for(const _0x4f139f of _0x2c707a['getRanges']())_0x4f139f['containsRange'](_0x19ef3a,!0x0)&&_0x1272d6['add'](_0x2c707a['type']+':'+_0x2c707a['author']['id']),_0x4f139f['containsRange'](_0x1af9fd,!0x0)&&_0x5a4835['add'](_0x2c707a['type']+':'+_0x2c707a['author']['id']);}if(_0x1272d6['size']!=_0x5a4835['size'])return!0x1;for(const _0x20baa4 of _0x1272d6)if(!_0x5a4835['has'](_0x20baa4))return!0x1;return!0x0;}}class At extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0x2b0dc1=this['editor'];if(!_0x2b0dc1['plugins']['has']('TableEditing'))return;const _0x50130a=_0x2b0dc1['locale'],_0x2196b7=_0x2b0dc1['plugins']['get']('TrackChangesEditing');_0x2196b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2196b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2196b7['registerBlockAttribute']('headingRows'),_0x2196b7['registerBlockAttribute']('headingColumns'),_0x2196b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x50130a,'FORMAT_HEADER_ROW')),_0x2196b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x50130a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x285495=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d35c3=this['editor']['plugins']['get']('TableUtils'),_0x190abc=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x4bd3c0({showActiveMarker:_0x50680a=!0x0,setDataAttribute:_0x1b8aea=!0x0}={}){return(_0x83f97f,_0x30284f,_0x91d57b)=>{const {type:_0x132610,id:_0x1587aa}=_0x285495['_splitMarkerName'](_0x30284f['markerName']),_0x22521a=_0x285495['getSuggestion'](_0x1587aa),_0x302f23=_0x22521a['data'];if('formatBlock'!=_0x22521a['type']||!_0x302f23||'setTableColumnHeader'!=_0x302f23['commandName'])return;if(_0x30284f['item'])return void _0x83f97f['stop']();if(!_0x91d57b['consumable']['consume'](_0x30284f['markerRange'],_0x83f97f['name']))return;const _0x4bc8ce=_0x30284f['markerRange']['start']['nodeAfter'],_0x4b3690=_0x30284f['markerRange']['end']['nodeBefore'],_0x5d4d26=_0x4bc8ce['parent']['parent'],{column:_0x1d669a}=_0x1d35c3['getCellLocation'](_0x4bc8ce),{column:_0x37ed06}=_0x1d35c3['getCellLocation'](_0x4b3690);for(let _0x6c1f66=_0x1d669a;_0x6c1f66<=_0x37ed06;_0x6c1f66++){const _0x11973c=_0x1d35c3['createTableWalker'](_0x5d4d26,{'column':_0x6c1f66,'includeAllSlots':!0x1});for(const _0x2b6a6e of _0x11973c){const _0xa930a9=_0x2b6a6e['cell'],_0x1e0675=_0x91d57b['mapper']['toViewElement'](_0xa930a9);_0x91d57b['writer']['addClass']('ck-suggestion-marker-'+_0x132610,_0x1e0675),_0x1b8aea&&_0x91d57b['writer']['setAttribute']('data-suggestion',_0x1587aa,_0x1e0675),_0x91d57b['mapper']['bindElementToMarker'](_0x1e0675,_0x30284f['markerName']),_0x50680a&&(_0x285495['activeMarkers']['includes'](_0x30284f['markerName'])?_0x91d57b['writer']['addClass']('ck-suggestion-marker--active',_0x1e0675):_0x91d57b['writer']['removeClass']('ck-suggestion-marker--active',_0x1e0675));}}};}_0x285495['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x190abc),_0x285495['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x190abc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4bd3c0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x373b44,_0xaab777,_0x916e31)=>{_0x916e31['options']['showSuggestionHighlights']&&_0x4bd3c0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x373b44,_0xaab777,_0x916e31);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xdad555,_0x4ab8e7,_0x503413)=>{const {type:_0x544655,id:_0x375aad}=_0x285495['_splitMarkerName'](_0x4ab8e7['markerName']),_0x30d7f6=_0x285495['getSuggestion'](_0x375aad),_0x5e51cb=_0x30d7f6['data'];if('formatBlock'!=_0x30d7f6['type']||!_0x5e51cb||'setTableColumnHeader'!=_0x5e51cb['commandName'])return;const _0x11573f=_0x503413['mapper']['markerNameToElements'](_0x4ab8e7['markerName']);if(_0x11573f){for(const _0x2fef8b of _0x11573f)_0x503413['writer']['removeClass']('ck-suggestion-marker-'+_0x544655,_0x2fef8b),_0x503413['writer']['removeClass']('ck-suggestion-marker--active',_0x2fef8b),_0x503413['writer']['removeAttribute']('data-suggestion',_0x2fef8b),_0x503413['mapper']['unbindElementFromMarkerName'](_0x2fef8b,_0x4ab8e7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x463474=this['editor'],_0x51072d=_0x463474['locale'];function _0x1fe842(_0x1d41a0){return{'type':'format','content':o(_0x51072d,'*Format:*\x20%0',_0x1d41a0)};}_0x463474['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bf1a0=>{if('formatBlock'!=_0x2bf1a0['type'])return;const {data:_0x1ca3ab}=_0x2bf1a0;if(_0x1ca3ab){if('setTableRowHeader'==_0x1ca3ab['commandName']){const _0x53bbb3=_0x1ca3ab['commandParams'][0x0]['forceValue'];return _0x1fe842(o(_0x51072d,_0x53bbb3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1ca3ab['commandName']){const _0x25b6cb=_0x1ca3ab['commandParams'][0x0]['forceValue'];return _0x1fe842(o(_0x51072d,_0x25b6cb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xada53b=>[_0xada53b,null]));class It extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0xee09c3=this['editor'];if(!_0xee09c3['plugins']['has']('TableClipboard'))return;const _0x4e1cbb=_0xee09c3['plugins']['get']('TrackChangesEditing'),_0x4501fd=_0xee09c3['plugins']['get']('TableUtils'),_0x384639=_0xee09c3['plugins']['get'](jt),_0x4e5d3a=_0xee09c3['plugins']['get']('TableClipboard');_0x384639['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xee09c3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xee09c3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2400d7=null;_0xee09c3['model']['on']('insertContent',(_0x3bf8b3,_0x1a5bdc)=>{const [_0x14ece8,_0xf8aed7]=_0x1a5bdc,_0x3b2f4e=_0x1a5bdc[_0x1a5bdc['length']-0x1];_0x3b2f4e&&_0x3b2f4e['forceDefaultExecution']||_0x4e1cbb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x460de2,_0x34c347,_0x47ee5d,_0x557232,_0x4d09bf){if(_0x34c347&&!_0x34c347['is']('documentSelection'))return!0x1;const _0xd96788=_0x4d09bf['getTableIfOnlyTableInContent'](_0x460de2,_0x47ee5d);if(!_0xd96788||!he(_0xd96788,void 0x0,_0x557232))return!0x1;const _0x8418a5=_0x557232['getSelectionAffectedTableCells'](_0x47ee5d['document']['selection']);if(!_0x8418a5['length'])return!0x1;const _0x10e786=_0x8418a5[0x0]['findAncestor']('table'),_0x522b4c=_0x557232['getRowIndexes'](_0x8418a5),_0x31ab7d=_0x557232['getColumnIndexes'](_0x8418a5),_0x4f85b2={'startRow':_0x522b4c['first'],'endRow':_0x522b4c['last'],'startColumn':_0x31ab7d['first'],'endColumn':_0x31ab7d['last']};return 0x1==_0x8418a5['length']&&(_0x4f85b2['endRow']+=_0x557232['getRows'](_0xd96788)-0x1,_0x4f85b2['endColumn']+=_0x557232['getColumns'](_0xd96788)-0x1),he(_0x10e786,_0x4f85b2,_0x557232);}(_0x14ece8,_0xf8aed7,_0xee09c3['model'],_0x4501fd,_0x4e5d3a)&&(_0x3bf8b3['stop'](),_0x2400d7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xee09c3['model']['change'](()=>{_0xee09c3['model']['insertContent'](_0x1a5bdc[0x0],_0x1a5bdc[0x1],_0x1a5bdc[0x2],{'forceDefaultExecution':!0x0});const _0x2cb500=_0x287d7d(),{rowInsertionRanges:_0xa1b666,columnInsertionRanges:_0x4b5708,insertionRanges:_0x34d712,deletionRanges:_0x57bb64,cells:_0x3976cf}=_0x2400d7;_0xa1b666['length']&&_0x4e1cbb['markMultiRangeInsertion'](_0xa1b666,'tablePasteRow',{'tablePasteChainId':_0x2cb500}),_0x4b5708['length']&&_0x4e1cbb['markMultiRangeInsertion'](_0x4b5708,'tablePasteColumn',{'tablePasteChainId':_0x2cb500}),_0x34d712['length']&&(_0x4e1cbb['markMultiRangeInsertion'](_0x34d712,'tablePaste',{'tablePasteChainId':_0x2cb500,'skipNestingCheck':!0x0}),_0x34d712['forEach'](_0x398ac9=>_0x398ac9['detach']?.())),_0x57bb64['length']&&(_0x4e1cbb['markMultiRangeDeletion'](_0x57bb64,'tablePaste',{'tablePasteChainId':_0x2cb500,'skipNestingCheck':!0x0}),_0x57bb64['forEach'](_0xa5b754=>_0xa5b754['detach']?.()));const _0x50b8a7=_0x4e1cbb['markMultiRangeBlockFormat'](_0x3976cf['map'](({element:_0x2eefe2})=>_0x2eefe2),{'formatGroupId':_0x287d7d()},[],'tablePasteCell',{'tablePasteChainId':_0x2cb500});if(_0x50b8a7){const _0x42ca6a=_0x50b8a7['getMarkers'](),_0x710c94=[];for(const {element:_0x2d2797,attributes:_0x43c909}of _0x3976cf){if(!_0x43c909)continue;const _0x50933f=_0xee09c3['model']['createRangeOn'](_0x2d2797),_0x149b2c=_0x42ca6a['find'](_0x4dfa8f=>_0x4dfa8f['getRange']()['isEqual'](_0x50933f));_0x149b2c&&_0x710c94['push']([_0x149b2c['name'],_0x43c909]);}_0x710c94['length']&&_0x50b8a7['setAttribute']('markerAttributes',Object['fromEntries'](_0x710c94));}_0x2400d7=null;}));},{'priority':_0x13dea8['high']+0xa}),_0xee09c3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x38a185,_0x466191)=>{const [_0x70b31f,_0x372e50,,_0x1e51d0]=_0x466191;if(!_0x2400d7)return;_0x38a185['stop']();const _0x1c75e8=_0x70b31f['cell'],_0x313b11=_0x372e50,_0x18dc24=Pe(_0x1c75e8),_0x543a09=Pe(_0x313b11);_0x38a185['return']=_0x1c75e8;let _0x4e05f5=null,_0x50de09=null;if(_0x543a09||_0x18dc24){if(_0x18dc24&&!_0x543a09){_0x1e51d0['remove'](_0x1c75e8['getChild'](0x0));for(const _0x5b64d1 of Array['from'](_0x313b11['getChildren']()))_0x1e51d0['insert'](_0x5b64d1,_0x1c75e8,'end');const _0x514ab1=_0x2400d7['rowInsertionIndexes']['includes'](_0x70b31f['row']),_0x1abad3=_0x2400d7['columnInsertionIndexes']['includes'](_0x70b31f['column']);_0x514ab1||_0x1abad3||(_0x4e05f5=_0x55c0b1['fromRange'](_0x1e51d0['createRangeIn'](_0x1c75e8)));}else _0x543a09&&!_0x18dc24&&(_0x50de09=_0x1e51d0['createRangeIn'](_0x1c75e8));}else{const _0x472c83=_0x1e51d0['createElement']('tableCellSuggestion'),_0x3f6dd2=_0x1e51d0['createElement']('tableCellSuggestion');_0x1e51d0['wrap'](_0x1e51d0['createRangeIn'](_0x1c75e8),_0x3f6dd2),_0x1e51d0['insert'](_0x472c83,_0x1c75e8,0x0);for(const _0x5e4f9b of Array['from'](_0x313b11['getChildren']()))_0x1e51d0['insert'](_0x5e4f9b,_0x472c83,'end');_0x4e05f5=_0x55c0b1['fromRange'](_0x1e51d0['createRangeOn'](_0x472c83)),_0x50de09=_0x55c0b1['fromRange'](_0x1e51d0['createRangeOn'](_0x3f6dd2));}const _0x5085be=Array['from'](_0x313b11['getAttributes']())['filter'](([_0x5adee6])=>ge['includes'](_0x5adee6));_0x2400d7['cells']['push']({'element':_0x1c75e8,'attributes':_0x5085be['length']?Object['fromEntries'](_0x5085be):null}),_0x4e05f5&&_0x2400d7['insertionRanges']['push'](_0x4e05f5),_0x50de09&&_0x2400d7['deletionRanges']['push'](_0x50de09);},{'priority':'high'}),_0x4501fd['on']('insertColumns',(_0x456b04,_0x1baf28)=>{const [_0x536bdd,_0x2ff201={}]=_0x1baf28;if(!_0x2400d7)return;const _0x23379f=_0x2ff201['at']||0x0,_0x32e435=_0x2ff201['columns']||0x1;_0x2400d7['columnInsertionIndexes']=new Array(_0x32e435)['fill'](_0x23379f)['map']((_0x1a64f4,_0x351d8c)=>_0x1a64f4+_0x351d8c);for(const {cell:_0x4e98e3}of _0x4501fd['createTableWalker'](_0x536bdd,{'startColumn':_0x23379f,'endColumn':_0x23379f+_0x32e435-0x1}))_0x2400d7['columnInsertionRanges']['push'](_0xee09c3['model']['createRangeOn'](_0x4e98e3));},{'priority':'low'}),_0x4501fd['on']('insertRows',(_0x4c2870,_0x6ae257)=>{const [_0x5afdef,_0x300f65={}]=_0x6ae257;if(!_0x2400d7)return;const _0x89b025=_0x300f65['at']||0x0,_0x79a260=_0x300f65['rows']||0x1;_0x2400d7['rowInsertionIndexes']=new Array(_0x79a260)['fill'](_0x89b025)['map']((_0x27a01f,_0x3a23b5)=>_0x27a01f+_0x3a23b5);for(const {cell:_0x4d953d}of _0x4501fd['createTableWalker'](_0x5afdef,{'startRow':_0x89b025,'endRow':_0x89b025+_0x79a260-0x1}))_0x2400d7['rowInsertionRanges']['push'](_0xee09c3['model']['createRangeOn'](_0x4d953d));},{'priority':'low'}),_0x4e1cbb['descriptionFactory']['registerDescriptionCallback'](_0x1a2118=>{if(_0x1a2118['subType']&&_0x1a2118['subType']['startsWith']('tablePaste'))return _0x1a2118['previous']?{}:{'type':'insertion','content':o(_0xee09c3['locale'],'*Replace\x20table\x20cells*')};});const _0x46360d=()=>!0x1;for(const _0x402ca6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('insertion',_0x402ca6,'join',_0x46360d),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('deletion',_0x402ca6,'join',_0x46360d),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x402ca6,'join',_0x46360d);_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x46360d),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c24e2,_0x2e34a7,_0xa8e14d)=>{const _0x4d215b=_0x5c24e2['map'](_0x2ea364=>_0x2ea364['getContainedElement']())['filter'](_0x148f35=>_0x148f35),_0x28e833=new Map(_0x4d215b['map'](_0x3ab51d=>[_0x3ab51d,null]));if(_0x2400d7){for(const {element:_0x350e90,attributes:_0x58578f}of _0x2400d7['cells'])_0x58578f&&_0x28e833['set'](_0x350e90,_0x58578f);}else{if(_0xa8e14d&&_0xa8e14d['markerAttributes'])for(const [_0x33ed38,_0x8d205b]of Object['entries'](_0xa8e14d['markerAttributes'])){const _0x22e261=_0xee09c3['model']['markers']['get'](_0x33ed38),_0x558ba0=_0x22e261?_0x22e261['getRange']()['getContainedElement']():null;_0x558ba0&&_0x28e833['set'](_0x558ba0,_0x8d205b);}}_0xee09c3['model']['change'](_0x3fbf7d=>{for(const [_0x56e001,_0xe442ab]of _0x28e833)_0x3fbf7d['setAttributes']({...Ce,..._0xe442ab},_0x56e001);});});const _0x241608=(_0x2a4406,_0xaa28f6)=>{_0x4e1cbb['_suggestionFactory']['registerCustomCallback'](_0x2a4406,'tablePaste',_0xaa28f6,(_0x11d9aa,_0x33edc1,_0x277629)=>{_0xee09c3['model']['change'](_0x4bee08=>{const _0x544626=[];for(const _0x456b71 of _0x11d9aa){const _0x4dc465=_0x456b71['start']['nodeAfter'];_0x4dc465['is']('element','tableCellSuggestion')&&_0x544626['push'](_0x4dc465);}_0x4e1cbb['_suggestionFactory']['getSuggestionCallback'](_0x2a4406,null,_0xaa28f6)(_0x11d9aa,_0x33edc1,_0x277629);for(const _0x31c717 of _0x544626)'$graveyard'!=_0x31c717['root']['rootName']&&_0x4bee08['unwrap'](_0x31c717);});});};_0x241608('insertion','accept'),_0x241608('insertion','discard'),_0x241608('deletion','accept'),_0x241608('deletion','discard'),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x341646=>{const _0x544f92=_0x341646['map'](_0xfbbd63=>_0xfbbd63['getContainedElement']()),_0x3378a2=_0x544f92[0x0]['findAncestor']('table'),{minRow:_0x4d398f,maxRow:_0x25f189}=_0x384639['_getCoordsForCells'](_0x544f92);_0x4501fd['removeRows'](_0x3378a2,{'at':_0x4d398f,'rows':_0x25f189-_0x4d398f+0x1});}),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21f695=>{const _0x19157a=_0x21f695['map'](_0x38b995=>_0x38b995['getContainedElement']()),_0x406477=_0x19157a[0x0]['findAncestor']('table'),{minColumn:_0x37a742,maxColumn:_0x411867}=_0x384639['_getCoordsForCells'](_0x19157a);_0x4501fd['removeColumns'](_0x406477,{'at':_0x37a742,'columns':_0x411867-_0x37a742+0x1});});const _0x1d24b2=(_0x24eb78,_0x1f2c98)=>{if(!_0x1f2c98['subType']||!_0x1f2c98['subType']['startsWith']('tablePaste'))return;const _0x5b7eda=_0x1f2c98['attributes']['tablePasteChainId'],_0x540fcb=_0x4e1cbb['getSuggestions']()['filter'](_0x4a387f=>_0x4a387f['isInContent']&&_0x4a387f['attributes']&&_0x4a387f['attributes']['tablePasteChainId']==_0x5b7eda);_0x540fcb['length']&&_0x1f2c98['getAllAdjacentSuggestions']()['length']!=_0x540fcb['length']&&_0x540fcb['reduce']((_0x4dc401,_0x2239d2)=>(_0x4dc401['next']=_0x2239d2,_0x2239d2['previous']=_0x4dc401,_0x2239d2));};function _0x22aa39(_0x161249,_0x86d48d=!0x0){const {id:_0x54a123}=_0x4e1cbb['_splitMarkerName'](_0x161249['markerName']),_0x38d933=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2bebd0=_0x4e1cbb['activeMarkers']['includes'](_0x161249['markerName']);return _0x2bebd0&&_0x38d933['push']('ck-suggestion-marker--active'),{'classes':_0x38d933,'attributes':{'data-suggestion':_0x54a123},'priority':_0x2bebd0&&_0x86d48d?0xbc2:0xbb8};}_0x4e1cbb['on']('suggestionLoaded',_0x1d24b2,{'priority':'high'}),_0x4e1cbb['on']('suggestionUnloaded',_0x1d24b2,{'priority':'high'}),_0xee09c3['model']['document']['registerPostFixer'](()=>{let _0x2398d8=!0x1;const _0x5221bb=Array['from'](_0xee09c3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b20b7,data:_0x3b6d10}of _0x5221bb){const {group:_0x5392bd,type:_0x29a444,id:_0x51bf32}=_0x4e1cbb['_splitMarkerName'](_0x5b20b7);if('suggestion'!=_0x5392bd||'deletion'!=_0x29a444||_0x3b6d10['oldRange'])continue;if(!_0x4e1cbb['hasSuggestion'](_0x51bf32))continue;const _0x2b1856=_0x4e1cbb['getSuggestion'](_0x51bf32)['getRanges'](),_0x45be47=_0xee09c3['plugins']['get']('Users')['me'];for(const _0x3f6d44 of _0x4e1cbb['getSuggestions']()){if(!_0x3f6d44['isInContent']||_0x3f6d44['author']!=_0x45be47)continue;if('formatBlock'!=_0x3f6d44['type']||'tablePasteCell'!=_0x3f6d44['subType'])continue;if(_0x3f6d44['getRanges']()['every'](_0x52f0d9=>_0x2b1856['some'](_0x3405f8=>_0x3405f8['containsRange'](_0x52f0d9,!0x0)))){for(const _0x437587 of _0x3f6d44['getAllAdjacentSuggestions']())_0x437587['isInContent']&&(_0x437587['discard'](),_0x2398d8=!0x0);}}}return _0x2398d8;}),_0xee09c3['model']['document']['registerPostFixer'](_0x2cb7f0=>{const _0x59f21c=_0xee09c3['commands']['get']('redo');if(!_0x59f21c||!_0x59f21c['_createdBatches']['has'](_0x2cb7f0['batch']))return!0x1;let _0x4a59f3=!0x1;const _0x4c8465=_0xee09c3['plugins']['get']('Users')['me'],_0x37a2d3=_0xee09c3['model']['document']['differ']['getChanges'](),_0x22575f=Array['from'](_0xee09c3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x530e94,data:_0xf12795})=>{const {group:_0x367544,subType:_0x3643ac,authorId:_0x2d0fa4}=_0x4e1cbb['_splitMarkerName'](_0x530e94);return'suggestion'==_0x367544&&'tablePaste'==_0x3643ac&&_0x2d0fa4==_0x4c8465['id']&&!_0xf12795['oldRange'];});for(const _0x3d35a4 of _0x37a2d3){if('insert'!=_0x3d35a4['type']||'tableCellSuggestion'!=_0x3d35a4['name']||0x1!=_0x3d35a4['length'])continue;const _0x2a5a9a=_0x2cb7f0['createRange'](_0x3d35a4['position'],_0x3d35a4['position']['getShiftedBy'](0x1));if(!_0x22575f['find'](({data:_0x5e2e78})=>_0x5e2e78['newRange']['isEqual'](_0x2a5a9a))){for(const {name:_0x1c8012,data:_0x5dbe2d}of _0x22575f)if(_0x2a5a9a['containsRange'](_0x5dbe2d['newRange'])){_0x2cb7f0['updateMarker'](_0x1c8012,{'range':_0x2a5a9a}),_0x4a59f3=!0x0;break;}}}return _0x4a59f3;}),_0xee09c3['model']['document']['registerPostFixer'](_0x346d76=>{let _0x1ca614=!0x1;const _0x373a2a=_0xee09c3['plugins']['get']('Users')['me'],_0xefb249=_0x4e1cbb['getSuggestions']()['filter'](_0x2aeeea=>_0x2aeeea['isInContent']&&_0x2aeeea['author']==_0x373a2a),_0x49bd4f=new Set(),_0x26b90b=new Set();for(const _0x316e29 of _0xefb249)if('tablePaste'==_0x316e29['subType'])for(const _0x37cba2 of _0x316e29['getMarkers']()){const _0x289a60=_0x37cba2['getRange']()['getContainedElement']();if(_0x289a60){if(_0x289a60['is']('element','tableCellSuggestion')&&Pe(_0x289a60)){_0x316e29['removeMarker'](_0x37cba2['name']),_0x49bd4f['add'](_0x289a60),_0x1ca614=!0x0;const _0x4152fd=_0x289a60['nextSibling'],_0x42ff56=_0x289a60['previousSibling'],_0x23a1b4=_0x4152fd&&_0x4152fd['is']('element','tableCellSuggestion'),_0x5edbe5=_0x42ff56&&_0x42ff56['is']('element','tableCellSuggestion');_0x23a1b4&&!_0x49bd4f['has'](_0x4152fd)&&_0x26b90b['add'](_0x4152fd),_0x5edbe5&&!_0x49bd4f['has'](_0x42ff56)&&_0x26b90b['add'](_0x42ff56);}else _0x289a60['is']('element','paragraph')&&_0x289a60['isEmpty']&&(_0x316e29['removeMarker'](_0x37cba2['name']),_0x1ca614=!0x0);}}else{if('tablePasteCell'==_0x316e29['subType']){if(!_0x316e29['attributes']||!_0x316e29['attributes']['tablePasteChainId'])continue;const _0x385ae2=_0x316e29['attributes']['markerAttributes'];if(_0x385ae2&&Object['keys'](_0x385ae2)['length'])continue;const _0x3a2f7f=_0x316e29['attributes']['tablePasteChainId'];let _0x30ea12=!0x0,_0x15fc07=!0x0;for(const _0x34fbaf of _0xefb249)if(_0x34fbaf['subType']&&_0x34fbaf['subType']['startsWith']('tablePaste')){if(!_0x34fbaf['attributes']['tablePasteChainId']){_0x15fc07=!0x1;break;}if(_0x34fbaf['id']!=_0x316e29['id']&&_0x34fbaf['attributes']['tablePasteChainId']==_0x3a2f7f){_0x30ea12=!0x1;break;}}_0x15fc07&&_0x30ea12&&(_0x316e29['removeMarkers'](),_0x1ca614=!0x0);}}for(const _0x48dae8 of _0x49bd4f)_0x346d76['remove'](_0x48dae8);for(const _0x56516a of _0x26b90b)_0x346d76['unwrap'](_0x56516a);return _0x1ca614;}),_0xee09c3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3fae41,_0x53fa21)=>_0x22aa39(_0x3fae41),'converterPriority':'high'}),_0xee09c3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4407f0,_0x4686cb)=>_0x4686cb['options']['showSuggestionHighlights']?_0x22aa39(_0x4407f0,!0x1):null,'converterPriority':'high'});const _0x5ed555=_0xee09c3['editing']['view'];this['listenTo'](_0x5ed555['document'],'clipboardOutput',(_0x5a0a28,_0x3810db)=>{const _0x51060e=[];for(const _0x19d575 of _0x5ed555['createRangeIn'](_0x3810db['content'])['getItems']())_0x19d575['is']('element','suggestion-td')&&_0x51060e['push'](_0x19d575);_0x5ed555['change'](_0x2c5cd6=>{for(const _0x489251 of _0x51060e)_0x2c5cd6['move'](_0x2c5cd6['createRangeIn'](_0x489251),_0x2c5cd6['createPositionBefore'](_0x489251)),_0x2c5cd6['remove'](_0x489251);});});}}function Pe(_0x3e7229){if(_0x3e7229['isEmpty'])return!0x0;const _0x541308=_0x3e7229['getChild'](0x0);return _0x541308['is']('element','paragraph')&&_0x541308['isEmpty'];}function he(_0x3c3297,_0x5ddd07={},_0x2cd70f){for(const {isAnchor:_0x5e3cc7,cellHeight:_0x377b37,cellWidth:_0x552d37}of _0x2cd70f['createTableWalker'](_0x3c3297,{'includeAllSlots':!0x0,..._0x5ddd07}))if(!_0x5e3cc7||0x1!=_0x377b37||0x1!=_0x552d37)return!0x1;return!0x0;}class vt extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xb5d9ed=this['editor']['plugins']['get']('TrackChangesEditing');_0xb5d9ed['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xb5d9ed['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xb5d9ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5d9ed['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xb5d9ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xb5d9ed['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2864e7,_0x4caf11){const _0x327878=this['editor']['plugins']['get']('TrackChangesEditing'),_0xedb49e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x27c805=_0x4caf11['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4490d0=_0xedb49e['getColumnGroupElement'](_0x27c805);let _0x5d0110=_0x4490d0?_0xedb49e['getTableColumnsWidths'](_0x4490d0):null,_0x2cd6fd=_0x27c805['getAttribute']('tableWidth')||null;const _0x56fd46=_0x4caf11['tableWidth']||_0x2cd6fd,_0x38ee42=_0x4caf11['columnWidths']||_0x5d0110,_0x3a67a8=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ff6c2 of _0x327878['getSuggestions']()){const _0x4be313=_0x3ff6c2['getContainedElement']();if('resizeTable'===_0x3ff6c2['subType']&&_0x4be313===_0x27c805){_0x3ff6c2['author']!==_0x3a67a8&&_0x3ff6c2['discard']();const _0x2d61be=_0x3ff6c2['data']['commandParams'];_0x2cd6fd=_0x2d61be[0x0]['tableWidth'],_0x5d0110=_0x2d61be[0x0]['columnWidths'];break;}}_0x2864e7({'table':_0x27c805,'tableWidth':_0x56fd46,'columnWidths':_0x38ee42}),_0x327878['markBlockFormat'](_0x27c805,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2cd6fd,'columnWidths':_0x5d0110}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x228078){if('formatBlock'!=_0x228078['type']&&'formatInline'!=_0x228078['type'])return;const {data:_0x238692}=_0x228078;if(_0x238692&&'resizeTable'===_0x238692['formatGroupId']){const _0x3d1e83='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d1e83)};}}}class Ct extends _0x16481a{['afterInit'](){const _0x1bc12c=this['editor'];_0x1bc12c['plugins']['has']('Template')&&_0x1bc12c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x16481a{['afterInit'](){const _0x5baa2d=this['editor'];if(!_0x5baa2d['commands']['get']('insertTableOfContents'))return;_0x5baa2d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33c07a=_0x5baa2d['plugins']['get']('TrackChangesEditing'),_0x5ecd8f=_0x5baa2d['locale'];_0x33c07a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x595af1=>o(_0x5ecd8f,'ELEMENT_TABLE_OF_CONTENTS',_0x595af1));}}class Dt extends _0x16481a{['afterInit'](){const _0x56c552=this['editor'];if(!_0x56c552['plugins']['has']('Title'))return;const _0x168e22=_0x56c552['plugins']['get']('TrackChangesEditing');_0x168e22['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56c552['locale'],'ELEMENT_TITLE')),_0x56c552['model']['document']['registerPostFixer'](_0x17e84e=>{let _0x414b1e=!0x1;const _0x34faed=Array['from'](_0x56c552['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ef972,data:_0x4e5064}of _0x34faed){const {group:_0x2a31dd}=_0x168e22['_splitMarkerName'](_0x3ef972);if('suggestion'!==_0x2a31dd||!_0x4e5064['newRange'])continue;const _0x3a626e=_0x4e5064['newRange'],_0x3e4021=_0x3a626e['end']['nodeBefore'];if(!_0x3e4021||!_0x3e4021['is']('element','title-content'))continue;if(!_0x3a626e['start']['isTouching'](_0x3a626e['end']))continue;const _0x53a72d=_0x56c552['model']['schema']['getNearestSelectionRange'](_0x3a626e['end'],'forward');if(_0x53a72d&&_0x53a72d['isCollapsed']){const _0x31e2f5=_0x17e84e['createRange'](_0x3a626e['start'],_0x53a72d['start']);_0x31e2f5['isEqual'](_0x3a626e)||(_0x17e84e['updateMarker'](_0x3ef972,{'range':_0x31e2f5}),_0x414b1e=!0x0);}_0x414b1e||(_0x17e84e['removeMarker'](_0x3ef972),_0x414b1e=!0x0);}return _0x414b1e;});}}class Nt extends _0x16481a{['afterInit'](){const _0x5d4a27=this['editor'],_0x19efa6=_0x5d4a27['plugins']['get']('TrackChangesEditing');_0x5d4a27['plugins']['has']('UndoEditing')&&(_0x19efa6['enableCommand']('undo'),_0x19efa6['enableCommand']('redo'));}}class Mt extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0x59bbe2=this['editor'];if(!_0x59bbe2['plugins']['has']('TableCaptionEditing'))return;_0x59bbe2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x16481a{['tableProperties'];['tableCellProperties'];constructor(_0x1a9e04){super(_0x1a9e04),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 _0x1cd73f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4605c2 of this['tableProperties'])_0x1cd73f['enableCommand'](_0x4605c2,(_0x3bfd60,_0x2b35e8)=>{const _0x41e73a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4605c2,[_0x41e73a],this['tableProperties'],'tableProperties',_0x3bfd60,_0x2b35e8);});_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1cd73f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47344e,_0x239779)=>this['handleDiscardAction'](this['tableProperties'],_0x47344e,_0x239779)),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d5929 of this['tableCellProperties'])_0x1cd73f['enableCommand'](_0x1d5929,(_0x3e45c4,_0x54e053)=>{const _0x49564f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d5929,_0x49564f,this['tableCellProperties'],'tableCellProperties',_0x3e45c4,_0x54e053);});_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1cd73f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x424ed1,_0x449a82)=>this['handleDiscardAction'](this['tableCellProperties'],_0x424ed1,_0x449a82)),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1cd73f['descriptionFactory']['registerDescriptionCallback'](_0x1a3250=>this['handleSuggestionDescription'](_0x1a3250));}['_handlePropertyChange'](_0x5ee272,_0x19a9c8,_0x3e22fe,_0x225efc,_0x5784e2,_0x5891b1){const _0x517e41=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5891b1['batch'],()=>{for(const _0x5292fc of _0x19a9c8){if(this['_getSuggestion'](_0x5292fc,_0x225efc))_0x5784e2(_0x5891b1);else{const _0x24cf6d={};for(const _0x246672 of _0x3e22fe){const _0x5a9638=_0x5292fc['getAttribute'](_0x246672);void 0x0!==_0x5a9638&&(_0x24cf6d[_0x246672]=_0x5a9638);}_0x5784e2(_0x5891b1),_0x517e41['markBlockFormat'](_0x5292fc,{'commandParams':[_0x24cf6d]},[],_0x225efc);}}});}['handleDiscardAction'](_0x1dcfce,_0x4c7895,_0x403f6e){const _0x2479c1=_0x4c7895[0x0]['start']['nodeAfter'],_0x85b2f0=_0x403f6e['commandParams'][0x0];this['editor']['model']['change'](_0x41b1c0=>{for(const _0x4e78a4 of _0x1dcfce)void 0x0!==_0x85b2f0[_0x4e78a4]?_0x41b1c0['setAttribute'](_0x4e78a4,_0x85b2f0[_0x4e78a4],_0x2479c1):_0x41b1c0['removeAttribute'](_0x4e78a4,_0x2479c1);});}['handleSuggestionDescription'](_0x57f2ff){if(_0x57f2ff['data'])switch(_0x57f2ff['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'](_0x29cba4,_0xd84aad){const _0x3f74ad=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x51c301 of _0x3f74ad['getSuggestions']({'skipNotAttached':!0x0})){const _0x4e5b90=_0x51c301['getContainedElement']();if(_0x51c301['subType']===_0xd84aad&&_0x4e5b90===_0x29cba4)return _0x51c301;}return null;}}const m='$elementName';class p extends _0x16481a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x214dba,_0x598d5a,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x54d1ea){function _0x56c649(_0xa4dfab){return _0xa4dfab['map'](_0x5cd3cb=>String['fromCharCode'](_0x5cd3cb))['join']('');}super(_0x54d1ea),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4908c0,_0x45e53f,_0xa2b2a5,_0x2d5b8c)=>{this['_model']['change'](()=>{for(const _0x2dc0fa of[..._0x2d5b8c,..._0xa2b2a5])this['_model']['markers']['has'](_0x2dc0fa)&&_0x54d1ea['editing']['reconvertMarker'](_0x2dc0fa);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x54d1ea['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(),_0x54d1ea['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x54d1ea['config']['get']('trackChanges.trackFormatChanges'),_0x54d1ea['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x54d1ea['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x54d1ea,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x56c649([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x56c649([0x34,0x30,0x34,0x38,0x31,0x34,0x30,0x34]);}['init'](){const _0x5506b9=this['editor'],_0x289492=(_0x3dc55e,_0xc8d1cc)=>{if('attribute'!=_0x3dc55e)return'ck-suggestion-marker-'+_0x3dc55e;const _0x5720b7=_0xc8d1cc['split']('|')[0x0];return this['_isBlockAttribute'](_0x5720b7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5506b9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4bd115=>{const {id:_0x1066dc,type:_0x4ca0d0,subType:_0x1f842e}=this['_splitMarkerName'](_0x4bd115['markerName']),_0x17d27c=['ck-suggestion-marker',_0x289492(_0x4ca0d0,_0x1f842e)];let _0x6c0de9=0xbb8;return this['activeMarkers']['includes'](_0x4bd115['markerName'])&&(_0x17d27c['push']('ck-suggestion-marker--active'),_0x6c0de9=0xbc2),'deletion'==_0x4ca0d0&&(_0x6c0de9+=0x5),{'classes':_0x17d27c,'attributes':{'data-suggestion':_0x1066dc},'priority':_0x6c0de9};}}),_0x5506b9['conversion']['for']('dataDowncast')['add'](_0x337e9e=>{_0x337e9e['on']('addMarker:suggestion',(_0x2b136b,_0x3fab9a,_0x245247)=>{if(!_0x245247['options']['showSuggestionHighlights'])return;const _0x2dd644=_0x3fab9a['item'];if(!_0x2dd644)return;const _0x204ba9=_0x245247['mapper']['toViewElement'](_0x2dd644);_0x5506b9['model']['schema']['isObject'](_0x2dd644)&&_0x204ba9&&!_0x204ba9['getCustomProperty']('widget')&&_0x204ba9['is']('containerElement')&&_0x1ae684(_0x204ba9,_0x245247['writer']);},{'priority':'high'});}),_0x5506b9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x502e95,_0x125294)=>{if(!_0x125294['options']['showSuggestionHighlights'])return null;const {type:_0x3b8a7b,subType:_0x5296ee}=this['_splitMarkerName'](_0x502e95['markerName']);return{'classes':['ck-suggestion-marker',_0x289492(_0x3b8a7b,_0x5296ee)],'priority':0xbb8};}});const _0x26b5b0=({showActiveMarkers:_0x417c30=!0x0,isAttributeSuggestion:_0x547e20=!0x1}={})=>(_0x48deb3,_0x1f9b9a,_0x4e17d4)=>{if(!_0x1f9b9a['item'])return;const {id:_0x35f3ad}=this['_splitMarkerName'](_0x1f9b9a['markerName']);if(_0x547e20){const _0x2c4dfd=this['_suggestions']['get'](_0x35f3ad),_0x398af9=this['_getAttributeKey'](_0x2c4dfd);if(!this['_isBlockAttribute'](_0x398af9))return;}if(_0x1f9b9a['item']['is']('selection'))return void _0x4e17d4['consumable']['consume'](_0x1f9b9a['item'],_0x48deb3['name']);const _0x4f302d=_0x4e17d4['mapper']['toViewElement'](_0x1f9b9a['item']);if(_0x1f9b9a['item']['is']('element')&&_0x5506b9['model']['schema']['isBlock'](_0x1f9b9a['item'])&&!_0x4f302d['getCustomProperty']('addHighlight')){_0x4e17d4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f302d),_0x4e17d4['writer']['setAttribute']('data-suggestion',_0x35f3ad,_0x4f302d),_0x4e17d4['mapper']['bindElementToMarker'](_0x4f302d,_0x1f9b9a['markerName']),_0x417c30&&(this['activeMarkers']['includes'](_0x1f9b9a['markerName'])?_0x4e17d4['writer']['addClass']('ck-suggestion-marker--active',_0x4f302d):_0x4e17d4['writer']['removeClass']('ck-suggestion-marker--active',_0x4f302d));for(const _0x55ed69 of _0x5506b9['model']['createRangeIn'](_0x1f9b9a['item'])['getItems']())_0x4e17d4['consumable']['consume'](_0x55ed69,_0x48deb3['name']);_0x4e17d4['consumable']['consume'](_0x1f9b9a['item'],_0x48deb3['name']);}};_0x5506b9['conversion']['for']('dataDowncast')['add'](_0x3656a4=>{_0x3656a4['on']('addMarker:suggestion:formatBlock',(_0x2268fb,_0x4c5c36,_0x81f19c)=>{_0x81f19c['options']['showSuggestionHighlights']&&_0x26b5b0({'showActiveMarkers':!0x1})(_0x2268fb,_0x4c5c36,_0x81f19c);},{'priority':'highest'});}),_0x5506b9['conversion']['for']('dataDowncast')['add'](_0x11a5cf=>{_0x11a5cf['on']('addMarker:suggestion:attribute',(_0x46692a,_0x30c8a7,_0xc10c58)=>{_0xc10c58['options']['showSuggestionHighlights']&&_0x26b5b0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x46692a,_0x30c8a7,_0xc10c58);},{'priority':'highest'});}),_0x5506b9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5d75a1,_0x30f29a)=>_0x30f29a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5d75a1['substr'](0xb)}}),_0x5506b9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ffb53,{writer:_0xc648a2})=>{let _0x495159='suggestion:'+_0x5ffb53['getAttribute']('suggestion-type')+':'+_0x5ffb53['getAttribute']('id');return _0x5ffb53['getAttribute']('marker-count')&&(_0x495159+=':'+_0x5ffb53['getAttribute']('marker-count')),_0xc648a2['createElement']('$marker',{'data-name':_0x495159});}}),_0x5506b9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x5db53c=>{_0x5db53c['on']('addMarker:suggestion:formatBlock',_0x26b5b0(),{'priority':'high'});}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x3feaf9=>{_0x3feaf9['on']('addMarker:suggestion:attribute',_0x26b5b0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x226654=>{_0x226654['on']('removeMarker:suggestion:formatBlock',(_0x28e005,_0x3b9d2f,_0x44efb2)=>{const _0x39de5a=_0x44efb2['mapper']['markerNameToElements'](_0x3b9d2f['markerName']);if(_0x39de5a){for(const _0x21186c of _0x39de5a)_0x21186c['getCustomProperty']('addHighlight')||(_0x44efb2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21186c),_0x44efb2['writer']['removeAttribute']('data-suggestion',_0x21186c),_0x44efb2['mapper']['unbindElementFromMarkerName'](_0x21186c,_0x3b9d2f['markerName']));}},{'priority':'high'});}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x316487=>{_0x316487['on']('removeMarker:suggestion:attribute',(_0x7837dc,_0x31be90,_0x4cad05)=>{const _0x26904d=_0x4cad05['mapper']['markerNameToElements'](_0x31be90['markerName']);if(!_0x26904d)return;const {id:_0x1f1d58}=this['_splitMarkerName'](_0x31be90['markerName']),_0x51cd3c=this['_suggestions']['get'](_0x1f1d58),_0x59e756=this['_getAttributeKey'](_0x51cd3c);if(this['_isBlockAttribute'](_0x59e756)){for(const _0x578af8 of _0x26904d)_0x578af8['getCustomProperty']('addHighlight')||(_0x4cad05['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x578af8),_0x4cad05['writer']['removeAttribute']('data-suggestion',_0x578af8),_0x4cad05['mapper']['unbindElementFromMarkerName'](_0x578af8,_0x31be90['markerName']));}},{'priority':'high'});}),_0x5506b9['model']['document']['registerPostFixer'](_0x467837=>{let _0x503d3b=!0x1;const _0x1421e1=Array['from'](_0x5506b9['model']['document']['differ']['getChangedMarkers']()),_0x251910=new Set();for(const {name:_0xd7bc20,data:_0x4ca0b6}of _0x1421e1){const {group:_0x3825db,type:_0x55bfe0,subType:_0x338c19,id:_0x8be056}=this['_splitMarkerName'](_0xd7bc20);if('suggestion'!==_0x3825db)continue;const _0x1124d0=this['_suggestions']['get'](_0x8be056);if(null!=_0x4ca0b6['newRange']){'formatInline'==_0x55bfe0&&(_0x503d3b=_0x503d3b||Et(_0x4ca0b6['newRange'],_0xd7bc20,_0x467837,_0x5506b9['model']['schema']));const _0x59f5df='attribute'==_0x55bfe0&&this['_isBlockAttribute'](_0x338c19['split']('|')[0x0]);if(_0x4ca0b6['newRange']['isCollapsed']||'$graveyard'==_0x4ca0b6['newRange']['root']['rootName']||'formatBlock'==_0x55bfe0&&!Ut(_0x4ca0b6['newRange'])||_0x59f5df&&!Ut(_0x4ca0b6['newRange'])||'deletion'==_0x55bfe0&&!(!Tt(_0x3202ee=_0x4ca0b6['newRange'])&&!function(_0x5b3c34){return _0x5b3c34['start']['parent']==_0x5b3c34['end']['nodeBefore']&&_0x5b3c34['start']['isAtEnd'];}(_0x3202ee)))_0x467837['removeMarker'](_0xd7bc20),_0x503d3b=!0x0;else{if(!_0x1124d0||!_0x1124d0['isInContent'])continue;_0x251910['add'](_0x1124d0);}}}var _0x3202ee;return _0x251910['size']>0x0&&(_0x503d3b=!!this['_joinWithAdjacentSuggestions'](_0x251910)||_0x503d3b),_0x503d3b;}),_0x5506b9['model']['document']['registerPostFixer'](_0x147b22=>{let _0x3097ac=!0x1;for(const _0x4bb52e of _0x5506b9['model']['document']['differ']['getChanges']())if('insert'==_0x4bb52e['type'])for(const _0x2a715e of this['_suggestions']['values']()){if(_0x2a715e['isMultiRange']||!_0x2a715e['isInContent'])continue;const _0x2ec4f1='formatBlock'==_0x2a715e['type'],_0x289809=this['_getAttributeKey'](_0x2a715e),_0x212230=_0x289809&&this['_isBlockAttribute'](_0x289809);if(!_0x2ec4f1&&!_0x212230)continue;const _0x10c785=_0x2a715e['getFirstRange']();if(_0x10c785['start']['parent']!=_0x10c785['end']['parent']&&!_0x10c785['end']['isAtEnd']){const _0x46f831=_0x5506b9['model']['createPositionAt'](_0x10c785['start']['nodeAfter'],'end'),_0x50d0bd=_0x5506b9['model']['createRange'](_0x10c785['start'],_0x46f831);_0x147b22['updateMarker'](_0x2a715e['getFirstMarker'](),{'range':_0x50d0bd}),_0x3097ac=!0x0;}}return _0x3097ac;}),_0x5506b9['model']['document']['registerPostFixer'](_0x153b1a=>this['_processAttributeChanges'](_0x153b1a)),_0x5506b9['model']['document']['registerPostFixer'](_0x3e1788=>!_0x3e1788['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e1788)),_0x5506b9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5506b9['model']['document']['on']('change:data',(_0xc866c7,_0x12f733)=>{if(!_0x12f733['isLocal']||_0x12f733['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5871d4=_0x5506b9['model']['document']['differ']['getChanges']();if(0x0==_0x5871d4['length'])return;const _0x379aa3=[],_0x2615c5=_0x5871d4['filter'](_0x33471f=>'attribute'==_0x33471f['type']),_0x386fdb=_0x5871d4['filter'](_0x27af76=>'insert'==_0x27af76['type']&&'$text'!=_0x27af76['name']);for(const _0x58805b of _0x2615c5)this['_isRegisteredAttribute'](_0x58805b['attributeKey'])&&_0x379aa3['push']({'key':_0x58805b['attributeKey'],'newValue':_0x58805b['attributeNewValue'],'oldValue':_0x58805b['attributeOldValue'],'range':Ot(_0x58805b['range'],_0x5506b9['model'])});for(const _0x16dc7b of _0x386fdb){if('rename'!=_0x16dc7b['action']&&'refresh'!=_0x16dc7b['action'])continue;const _0x4db526=Gt(_0x16dc7b['position']['nodeAfter'],_0x5506b9['model']),_0x2c3ea1=_0x16dc7b['before'];'rename'==_0x16dc7b['action']&&_0x379aa3['push']({'key':m,'newValue':_0x16dc7b['name'],'oldValue':_0x2c3ea1['name'],'range':_0x4db526});for(const [_0x11d4e0,_0x33440e]of _0x2c3ea1['attributes']){if(!this['_isRegisteredAttribute'](_0x11d4e0))continue;const _0x52eee0=_0x16dc7b['attributes']['get'](_0x11d4e0);_0x33440e!==_0x52eee0&&_0x379aa3['push']({'key':_0x11d4e0,'newValue':_0x52eee0,'oldValue':_0x33440e,'range':_0x4db526});}for(const [_0x4aa475,_0x2c0756]of _0x16dc7b['attributes'])this['_isRegisteredAttribute'](_0x4aa475)&&(_0x2c3ea1['attributes']['has'](_0x4aa475)||_0x379aa3['push']({'key':_0x4aa475,'newValue':_0x2c0756,'oldValue':null,'range':_0x4db526}));}0x0!=_0x379aa3['length']&&_0x5506b9['model']['enqueueChange'](_0x12f733,_0x312b20=>{const _0xaa4f45=_0x287d7d();for(const {range:_0x3de682,key:_0x120743,oldValue:_0x3aff59,newValue:_0x4b5e14}of _0x379aa3)this['markAttributeChange'](_0x3de682,_0x120743,_0x3aff59,_0x4b5e14,{'groupId':_0xaa4f45});this['_reduceExistingSuggestions'](_0x312b20,_0x379aa3);});},{'priority':'lowest'}),_0x5506b9['model']['markers']['on']('update:suggestion',(_0x4fbaf7,_0x3a2d0e,_0x579230)=>{if(null==_0x579230){const {id:_0x590b4c}=this['_splitMarkerName'](_0x3a2d0e['name']),_0x526b45=this['_suggestions']['get'](_0x590b4c);_0x526b45&&_0x526b45['addMarkerName'](_0x3a2d0e['name']);}}),_0x5506b9['model']['document']['on']('change:data',()=>{const _0x2954b6=Array['from'](_0x5506b9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x108945=>'suggestion'===this['_splitMarkerName'](_0x108945['name'])['group']);if(0x0===_0x2954b6['length'])return;_0x2954b6['sort']((_0x4fb5c6,_0x11e138)=>{const _0x24d111=_0x4fb5c6['data']['oldRange'],_0x4c2ca2=_0x11e138['data']['oldRange'];return null===_0x24d111&&null===_0x4c2ca2?0x0:null===_0x24d111&&null!==_0x4c2ca2?-0x1:null!==_0x24d111&&null===_0x4c2ca2?0x1:_0x24d111['start']['isBefore'](_0x4c2ca2['start'])?-0x1:0x1;});const _0x255824=new Set(),_0x48c122=new Set();for(const {name:_0x27be9d,data:_0x5db2c0}of _0x2954b6){const {id:_0x1e97eb}=this['_splitMarkerName'](_0x27be9d);if(null===_0x5db2c0['oldRange']){const _0x15e647=this['_handleNewSuggestionMarker'](_0x27be9d);_0x48c122['add'](_0x15e647);}else{const _0xe56231=this['_suggestions']['get'](_0x1e97eb);null!==_0x5db2c0['newRange']||_0xe56231['isInContent']?(_0x255824['add'](_0xe56231['head']),_0x48c122['add'](_0xe56231)):this['_removeSuggestion'](_0xe56231);}}_0x48c122['size']>0x0&&this['_refreshSuggestionsChain'](_0x48c122);for(const _0x15c147 of _0x255824)this['fire']('suggestionChanged',_0x15c147);}),_0x5506b9['model']['on']('applyOperation',(_0x1fda30,_0x4f2ac9)=>{const _0x17c547=_0x4f2ac9[0x0];if(!this['_suggestions']['size'])return;if(!_0x17c547['isDocumentOperation'])return;if(_0x17c547['batch']['isUndo']||!_0x17c547['batch']['isLocal'])return;let _0x56ef10,_0x1335fa;switch(_0x17c547['type']){case'insert':_0x56ef10=_0x5506b9['model']['createPositionAt'](_0x17c547['position']),_0x1335fa=_0x56ef10['getShiftedBy'](_0x17c547['howMany']);break;case'split':_0x56ef10=_0x5506b9['model']['createPositionAt'](_0x17c547['splitPosition']),_0x1335fa=_0x5506b9['model']['createPositionAt'](_0x17c547['moveTargetPosition']);break;case'move':_0x56ef10=_0x5506b9['model']['createPositionAt'](_0x17c547['targetPosition']),_0x1335fa=_0x56ef10['getShiftedBy'](_0x17c547['howMany']);break;default:return;}const _0x2fb007=_0x5506b9['model']['createRange'](_0x56ef10,_0x1335fa);_0x5506b9['model']['change'](()=>{for(const {suggestion:_0x3cf82b,meta:_0x1b90f9}of this['_findSuggestions'](_0x2fb007)){if(_0x3cf82b['isMultiRange'])continue;if('formatInline'==_0x3cf82b['type'])continue;const _0x376fc3=this['_getAttributeKey'](_0x3cf82b);if(_0x376fc3&&this['_isBlockAttribute'](_0x376fc3)&&'split'!=_0x17c547['type'])continue;const _0x3554f5=_0x3cf82b['data']&&_0x3cf82b['data']['multipleBlocks'];('formatBlock'!=_0x3cf82b['type']||'split'==_0x17c547['type']&&!_0x3554f5)&&(_0x1b90f9['containsRangeInObject']||'insertion'==_0x3cf82b['type']&&_0x1b90f9['isOwn']||_0x3cf82b['getFirstRange']()['containsRange'](_0x2fb007)&&this['_breakSuggestionMarker'](_0x3cf82b,_0x56ef10,_0x1335fa));}});},{'priority':'lowest'}),_0x5506b9['model']['on']('deleteContent',(_0x46313c,_0x51eadc)=>{const _0x2cc9fc=_0x51eadc[0x0],_0x15837d=_0x51eadc[0x1];if(_0x15837d&&_0x15837d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2cc9fc['isCollapsed'])return;const _0x3ca88a=_0x5506b9['model']['schema'],{start:_0x49d69c,end:_0xcc47a4}=_0x2cc9fc['getFirstRange'](),_0x3c0d0c=_0x49d69c['nodeAfter']&&_0x3ca88a['isLimit'](_0x49d69c['nodeAfter'])?null:_0x3ca88a['getNearestSelectionRange'](_0x49d69c,'forward'),_0x7899af=_0xcc47a4['nodeBefore']&&_0x3ca88a['isLimit'](_0xcc47a4['nodeBefore'])?null:_0x3ca88a['getNearestSelectionRange'](_0xcc47a4,'backward'),_0x26a6a3=_0x5506b9['model']['createRange'](_0x3c0d0c?_0x3c0d0c['start']:_0x49d69c,_0x7899af?_0x7899af['end']:_0xcc47a4);_0x5506b9['model']['change'](_0x178f30=>{this['markDeletion'](_0x26a6a3);const _0x39f3d0=_0x5506b9['model']['schema']['getNearestSelectionRange'](_0x26a6a3['start']);_0x2cc9fc['is']('documentSelection')?_0x178f30['setSelection'](_0x39f3d0):_0x2cc9fc['setTo'](_0x39f3d0);}),_0x46313c['stop']();},{'priority':_0x13dea8['normal']+0xa}),_0x5506b9['model']['on']('insertContent',(_0x54514e,_0x1473cd)=>{const _0x40f860=_0x1473cd[_0x1473cd['length']-0x1];_0x40f860&&_0x40f860['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5506b9['model']['change'](()=>{let _0xdcf3f5=_0x5506b9['model']['insertContent'](_0x1473cd[0x0],_0x1473cd[0x1],_0x1473cd[0x2],{'forceDefaultExecution':!0x0});if(!_0xdcf3f5)return;_0x54514e['return']=_0xdcf3f5['clone']();const _0x3ebd70=_0xdcf3f5['end']['nodeBefore'],_0x2b0b4e=_0x5506b9['model']['schema'];_0x3ebd70&&_0x2b0b4e['isBlock'](_0x3ebd70)&&!_0x2b0b4e['isObject'](_0x3ebd70)&&(_0xdcf3f5=_0x5506b9['model']['createRange'](_0xdcf3f5['start'],_0x5506b9['model']['createPositionAt'](_0x3ebd70,'end'))),this['markInsertion'](_0xdcf3f5);}),_0x54514e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x245516=new $(_0x5506b9,this['_suggestions']);_0x5506b9['commands']['add']('acceptSuggestion',_0x245516),this['enableCommand']('acceptSuggestion');const _0x278c5b=new B(_0x5506b9,this['_suggestions']);_0x5506b9['commands']['add']('discardSuggestion',_0x278c5b),this['enableCommand']('discardSuggestion'),_0x5506b9['commands']['add']('acceptAllSuggestions',new x(_0x5506b9,_0x245516,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5506b9['commands']['add']('discardAllSuggestions',new x(_0x5506b9,_0x278c5b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5506b9['commands']['add']('acceptSelectedSuggestions',new R(_0x5506b9,_0x245516,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5506b9['commands']['add']('discardSelectedSuggestions',new R(_0x5506b9,_0x278c5b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x213bd8=_0x5506b9['plugins']['get']('CommentsRepository');this['listenTo'](_0x213bd8,'addComment',(_0x4820c8,{threadId:_0x1af899})=>{const _0x3aad56=this['_suggestions']['get'](_0x1af899);_0x3aad56&&_0x3aad56['commentThread']&&0x1===_0x3aad56['commentThread']['length']&&this['_updateSuggestionData'](_0x1af899,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x213bd8,'removeComment',(_0x271ae2,{threadId:_0x51bf38})=>{const _0x1db2dc=this['_suggestions']['get'](_0x51bf38);_0x1db2dc&&_0x1db2dc['commentThread']&&!_0x1db2dc['commentThread']['length']&&this['_updateSuggestionData'](_0x51bf38,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2a5e24){if(this['_adapter'])throw new _0x35d108('track-changes-adapter-already-set',this);this['_adapter']=_0x2a5e24;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x47b1a6=!0x1,toJSON:_0x57ffce=!0x1}={}){const _0x5343e6=[];for(const _0x48f28d of this['_suggestions']['values']())_0x47b1a6&&!_0x48f28d['isInContent']||_0x5343e6['push'](_0x48f28d);return _0x57ffce?_0x5343e6['map'](_0x4118b2=>_0x4118b2['toJSON']()):_0x5343e6;}['getSuggestion'](_0x331ee2){const _0x30a54=this['_suggestions']['get'](_0x331ee2);if(!_0x30a54)throw new _0x35d108('track-changes-suggestion-not-found',this);return _0x30a54;}['hasSuggestion'](_0x566fe5){return this['_suggestions']['has'](_0x566fe5);}['addSuggestionData'](_0x52f3a7){const {authorId:_0x3b9666,id:_0x9ddb83,attributes:_0x24e4ff}=_0x52f3a7,[_0x4d7a18,_0x285b62]=_0x52f3a7['type']['split'](':'),_0x45ab85=this['_suggestions']['get'](_0x9ddb83)||this['_createSuggestion'](_0x4d7a18,_0x285b62,_0x9ddb83,_0x3b9666,_0x24e4ff);if(this['_addThreadToSuggestion'](_0x45ab85),this['_checkSuggestionCorrectness'](_0x45ab85,_0x4d7a18,_0x285b62||null,_0x3b9666),_0x45ab85['createdAt']=_0x52f3a7['createdAt'],_0x45ab85['_isDataLoaded']=!0x0,_0x24e4ff&&_0x24e4ff['@external']){const _0x4c8bfd=_0x24e4ff['@external'],_0xb85651=this['_getExternalAuthor'](_0x4c8bfd['authorName']);_0x45ab85['authoredAt']=_0x4c8bfd['createdAt'],_0x45ab85['author']=_0xb85651,_0x45ab85['isExternal']=!0x0;}else _0x45ab85['authoredAt']=_0x52f3a7['createdAt'];switch(_0x52f3a7['data']&&(_0x45ab85['data']=_0x52f3a7['data']),_0x52f3a7['attributes']&&(_0x45ab85['attributes']=_0x52f3a7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45ab85['_saved']=!0x0),this['_suggestionState']['get'](_0x45ab85)){case'notReady':this['_suggestionState']['set'](_0x45ab85,'dataReady');break;case'markerReady':_0x45ab85['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45ab85])),this['_refreshSuggestionsChain'](new Set([_0x45ab85])),this['_suggestionState']['set'](_0x45ab85,'ready'),this['fire']('suggestionLoaded',_0x45ab85)):this['_suggestionState']['set'](_0x45ab85,'removed');}return _0x45ab85;}['acceptSuggestion'](_0xf96dfb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x39b4e7 of _0xf96dfb['getAllAdjacentSuggestions']())_0x39b4e7['accept']();});});}['discardSuggestion'](_0x18236a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x353984 of _0x18236a['getAllAdjacentSuggestions']())_0x353984['discard']();});});}['enableCommand'](_0x1b1020,_0x10bad6){const _0x29a99f=this['editor']['commands']['get'](_0x1b1020);if(!_0x29a99f)throw new _0x35d108('track-changes-command-not-found',this,{'commandName':_0x1b1020});if(this['_enabledCommands']['has'](_0x29a99f))throw new _0x35d108('track-changes-enable-command-twice',this,{'commandName':_0x1b1020});this['_enabledCommands']['add'](_0x29a99f),_0x10bad6&&_0x29a99f['on']('execute',(_0x4dcc2b,_0x4d830f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d830f['length']>0x0&&_0x4d830f[_0x4d830f['length']-0x1]&&_0x4d830f[_0x4d830f['length']-0x1]['forceDefaultExecution']?_0x4d830f['pop']():(_0x4dcc2b['return']=_0x10bad6((..._0x690fd3)=>_0x29a99f['execute'](..._0x690fd3,{'forceDefaultExecution':!0x0}),..._0x4d830f),_0x4dcc2b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x21dc4c){let _0x28c253,_0x52bd6b;const _0x5cb1c6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x28c253=_0x21dc4c();}catch(_0xcc7420){_0x52bd6b=_0xcc7420;}return _0x5cb1c6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x52bd6b&&_0x35d108['rethrowUnexpectedError'](_0x52bd6b,this),_0x28c253;}['markInsertion'](_0x1e4b23,_0x2096a9=null,_0x4da93a={}){if(_0x1e4b23['isCollapsed'])return null;const _0x3f4361=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2e9625,meta:_0x1421df}of this['_findSuggestions'](_0x1e4b23,'insertion'))if(_0x1421df['isOwn']){if(!_0x1421df['isNextTo']){if(_0x1421df['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2e9625,_0x4da93a))continue;return _0x2e9625;}if(Lt(_0x2e9625,_0x4da93a))return _0x2e9625;this['_breakSuggestionMarker'](_0x2e9625,_0x1e4b23['start'],_0x1e4b23['end']);break;}if(_0x2096a9==_0x2e9625['subType']&&Lt(_0x2e9625,_0x4da93a)){const _0x5ae5a5=_0x2e9625['getFirstRange']();return _0x5ae5a5['start']['isEqual'](_0x1e4b23['end'])?this['_setSuggestionRange'](_0x2e9625,this['_model']['createRange'](_0x1e4b23['start'],_0x5ae5a5['end'])):this['_setSuggestionRange'](_0x2e9625,this['_model']['createRange'](_0x5ae5a5['start'],_0x1e4b23['end'])),_0x2e9625;}}const _0x18880d=_0x287d7d(),_0x321ec3=_0x3f4361['id'],_0x211dba=_0x2096a9?'insertion:'+_0x2096a9:'insertion',_0x27c9cc=this['_setSuggestionData']({'id':_0x18880d,'type':_0x211dba,'createdAt':new Date(),'authorId':_0x321ec3,'attributes':_0x4da93a});return this['_addSuggestionMarker'](_0x211dba,_0x18880d,_0x321ec3,_0x1e4b23),_0x27c9cc;}['markMultiRangeInsertion'](_0x4efe2c,_0x51c192='multi',_0x4866fd={}){const _0x38ac7e=this['editor']['plugins']['get']('Users')['me'],_0x4d2ccc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x51c192,'join');for(const _0x138f10 of this['getSuggestions']())if(_0x138f10['author']['id']==_0x38ac7e['id']&&'insertion'==_0x138f10['type']&&_0x138f10['subType']==_0x51c192&&Lt(_0x138f10,_0x4866fd)&&(_0x4d2ccc(_0x138f10['getRanges'](),_0x4efe2c)||_0x4d2ccc(_0x4efe2c,_0x138f10['getRanges']()))){for(const _0x23e5b6 of _0x4efe2c)_0x138f10['addRange'](_0x23e5b6);return _0x138f10;}for(const {suggestion:_0xba4cca,meta:_0x2add3f}of this['_findSuggestions'](_0x4efe2c,'insertion')){if(!_0x2add3f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2add3f['containsRangeInObject'])continue;if(!Lt(_0xba4cca,_0x4866fd))continue;let _0x3eb22a=!0x0;for(const _0x216f2f of _0xba4cca['getRanges']())for(const _0x3268fd of _0x4efe2c)if(!_0x216f2f['containsRange'](_0x3268fd)){_0x3eb22a=!0x1;break;}if(_0x3eb22a)return _0xba4cca;}const _0x4a2424=_0x287d7d(),_0x274ebf=_0x38ac7e['id'],_0x430a39='insertion:'+_0x51c192,_0xd7acd0=this['_setSuggestionData']({'id':_0x4a2424,'type':_0x430a39,'createdAt':new Date(),'authorId':_0x274ebf,'attributes':_0x4866fd});for(const _0x3190f8 of _0x4efe2c)this['_addSuggestionMarker'](_0x430a39,_0x4a2424,_0x274ebf,_0x3190f8,u['getMultiRangeId']());return _0xd7acd0;}['markInlineFormat'](_0x319f42,_0x28d4b5,_0x416b50=null,_0x5d95bc={}){if(_0x416b50=_0x416b50||Vt(_0x28d4b5),_0x319f42['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2f942d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x416b50,'accept');return this['forceDefaultExecution'](()=>_0x2f942d([_0x319f42],_0x28d4b5,_0x5d95bc)),null;}const _0x3f45b6=this['editor']['plugins']['get']('Users')['me'],_0x32eecd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x783afb,meta:_0x43edc1}of this['_findSuggestions'](_0x319f42,'insertion'))_0x43edc1['isOwn']&&!_0x43edc1['isInsideObject']&&_0x32eecd['push'](..._0x783afb['getRanges']());}const _0x1edcd6=function(_0x41fff0,_0x51e471){const _0x16a180=[];for(const _0x26404a of _0x51e471){const _0x3e8e02=_0x41fff0['getIntersection'](_0x26404a);_0x3e8e02&&_0x16a180['push'](_0x3e8e02);}return _0x16a180;}(_0x319f42,_0x32eecd),_0x35164d=function(_0x4ffdee,_0xcdd626){const _0x500f9d=[_0x4ffdee];for(const _0xf9ec08 of _0xcdd626){let _0x1df959=0x0;for(;_0x1df959<_0x500f9d['length'];){const _0x167f0d=_0x500f9d[_0x1df959]['getDifference'](_0xf9ec08);_0x500f9d['splice'](_0x1df959,0x1,..._0x167f0d),_0x1df959+=_0x167f0d['length'];}}return _0x500f9d;}(_0x319f42,_0x32eecd);_0x1edcd6['length']&&this['_model']['change'](()=>{for(const _0x570eca of _0x1edcd6){const _0x4c552c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x416b50,'accept');this['forceDefaultExecution'](()=>_0x4c552c([_0x570eca],_0x28d4b5,_0x5d95bc));}});for(const _0xd41065 of _0x35164d){let _0x55bbed=null,_0x10e37a=_0xd41065['start'],_0xf815e0=_0xd41065['end'];for(const {suggestion:_0x374856,meta:_0x19b15a}of this['_findSuggestions'](_0xd41065,'formatInline')){if(!_0x19b15a['isOwn'])continue;if(_0x374856['subType']!=_0x416b50)continue;if(!Lt(_0x374856,_0x5d95bc))continue;const _0x1ec58d=_0x374856['getFirstRange']();if(_0x1ec58d['containsRange'](_0xd41065,!0x0))return null;_0x10e37a=_0x10e37a['isBefore'](_0x1ec58d['start'])?_0x10e37a:_0x1ec58d['start'],_0xf815e0=_0xf815e0['isAfter'](_0x1ec58d['end'])?_0xf815e0:_0x1ec58d['end'],_0x55bbed?_0x1ec58d['start']['isBefore'](_0x55bbed['getFirstRange']()['start'])?(_0x55bbed['removeMarkers'](),_0x55bbed=_0x374856):_0x374856['removeMarkers']():_0x55bbed=_0x374856;}const _0xcaf941=this['_model']['createRange'](_0x10e37a,_0xf815e0);if(_0x55bbed)this['_setSuggestionRange'](_0x55bbed,_0xcaf941);else{const _0x10c015=_0x287d7d(),_0xc34763=_0x3f45b6['id'];this['_setSuggestionData']({'id':_0x10c015,'type':'formatInline:'+_0x416b50,'data':_0x28d4b5,'createdAt':new Date(),'authorId':_0xc34763,'attributes':_0x5d95bc}),this['_addSuggestionMarker']('formatInline:'+_0x416b50,_0x10c015,_0xc34763,_0xcaf941);}}return null;}['markBlockFormat'](_0x361458,_0x2b71da,_0x219ed0=[],_0x11fa6a=null,_0x1a744c={}){_0x2b71da['formatGroupId']||(_0x2b71da['formatGroupId']=_0x2b71da['commandName']),_0x2b71da['multipleBlocks']=_0x361458['is']('range'),_0x11fa6a=_0x11fa6a||Vt(_0x2b71da);const _0x577202=_0x219ed0['map'](_0x563cdf=>Gt(_0x563cdf,this['_model'])),_0x3bc21e=_0x361458['is']('range')?_0x361458:Gt(_0x361458,this['_model']);if('never'===this['_trackFormatChanges']){const _0x21d537=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11fa6a,'accept');return this['forceDefaultExecution'](()=>_0x21d537([_0x3bc21e],_0x2b71da,_0x1a744c)),null;}_0x577202['push'](_0x3bc21e);let _0x5736fb=!0x0;for(const _0x1524f6 of _0x577202)if(!this['_rangeIsInLocalUserInsertion'](_0x1524f6)){_0x5736fb=!0x1;break;}if(_0x5736fb&&'always'!==this['_trackFormatChanges']){const _0x2ee175=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11fa6a,'accept');return this['forceDefaultExecution'](()=>_0x2ee175([_0x3bc21e],_0x2b71da,_0x1a744c)),null;}let _0x3fa326=null,_0x24de41=_0x3bc21e['start'],_0x21fa6d=_0x3bc21e['end'];for(const {suggestion:_0x48817b,meta:_0x56c588}of this['_findSuggestions'](_0x3bc21e,'formatBlock')){if(!_0x56c588['isOwn'])continue;if(_0x56c588['isNextTo']||_0x56c588['containsRangeInObject']||_0x56c588['isInsideObject'])continue;if(_0x48817b['data']['formatGroupId']!=_0x2b71da['formatGroupId'])continue;if(!Lt(_0x48817b,_0x1a744c))continue;const _0x4e7e0e=_0x48817b['getFirstRange']();if(_0x48817b['subType']==_0x11fa6a){if(_0x4e7e0e['containsRange'](_0x3bc21e,!0x0))return null;_0x24de41=_0x24de41['isBefore'](_0x4e7e0e['start'])?_0x24de41:_0x4e7e0e['start'],_0x21fa6d=_0x21fa6d['isAfter'](_0x4e7e0e['end'])?_0x21fa6d:_0x4e7e0e['end'],_0x3fa326?_0x4e7e0e['start']['isBefore'](_0x3fa326['getFirstRange']()['start'])?(_0x3fa326['removeMarkers'](),_0x3fa326=_0x48817b):_0x48817b['removeMarkers']():_0x3fa326=_0x48817b;}else{const _0x2aaab8=_0x3bc21e['getIntersection'](_0x4e7e0e);this['_cutOutSuggestionMarker'](_0x48817b,_0x2aaab8);}}const _0x5c8846=this['editor']['plugins']['get']('Users')['me'],_0x7785f8=_0x287d7d(),_0x19c344=_0x5c8846['id'];if(_0x3fa326)return this['_setSuggestionRange'](_0x3fa326,this['_model']['createRange'](_0x24de41,_0x21fa6d)),_0x3fa326;{const _0x2bd66c=this['_setSuggestionData']({'id':_0x7785f8,'type':'formatBlock:'+_0x11fa6a,'data':_0x2b71da,'createdAt':new Date(),'authorId':_0x19c344,'attributes':_0x1a744c});return this['_addSuggestionMarker']('formatBlock:'+_0x11fa6a,_0x7785f8,_0x19c344,this['_model']['createRange'](_0x24de41,_0x21fa6d)),_0x2bd66c;}}['markMultiRangeBlockFormat'](_0x17c6f2,_0x5a6220,_0x42472f=[],_0x158b5a=null,_0x4a3a6c={}){_0x5a6220['formatGroupId']||(_0x5a6220['formatGroupId']=_0x5a6220['commandName']);const _0x180f8d=_0x17c6f2[0x0];_0x5a6220['multipleBlocks']=_0x180f8d['is']('range'),_0x158b5a=_0x158b5a||Vt(_0x5a6220);const _0x84387b=_0x42472f['map'](_0x5a3afd=>Gt(_0x5a3afd,this['_model'])),_0x5a4dfb=_0x180f8d['is']('range')?_0x17c6f2:_0x17c6f2['map'](_0x3c71cb=>Gt(_0x3c71cb,this['_model']));if('never'===this['_trackFormatChanges']){const _0x15ce8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x158b5a,'accept');return this['forceDefaultExecution'](()=>_0x15ce8a(_0x5a4dfb,_0x5a6220,_0x4a3a6c)),null;}_0x84387b['push'](..._0x5a4dfb);let _0x4384a5=!0x0;for(const _0x44b0a0 of _0x84387b)if(!this['_rangeIsInLocalUserInsertion'](_0x44b0a0)){_0x4384a5=!0x1;break;}if(_0x4384a5&&'always'!==this['_trackFormatChanges']){const _0x290375=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x158b5a,'accept');return this['forceDefaultExecution'](()=>_0x290375(_0x5a4dfb,_0x5a6220,_0x4a3a6c)),null;}const _0x109f2a=this['editor']['plugins']['get']('Users')['me'];for(const _0x13b69c of this['getSuggestions']()){if(_0x13b69c['author']['id']!=_0x109f2a['id'])continue;if('formatBlock'!=_0x13b69c['type']||_0x13b69c['data']['formatGroupId']!=_0x5a6220['formatGroupId'])continue;if(!Lt(_0x13b69c,_0x4a3a6c))continue;const _0xe463d9=_0x13b69c['subType']==_0x158b5a;for(let _0x37149a=0x0;_0x37149a<_0x5a4dfb['length'];_0x37149a++){const _0x2314a1=_0x5a4dfb[_0x37149a];for(const _0x2156ac of _0x13b69c['getMarkers']()){const _0x373cb4=_0x2156ac['getRange']();if(_0x2314a1['isEqual'](_0x373cb4)){_0xe463d9?(_0x5a4dfb['splice'](_0x37149a,0x1),_0x37149a--):_0x13b69c['removeMarker'](_0x2156ac['name']);break;}}}}if(0x0==_0x5a4dfb['length'])return null;const _0x1b2f23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x158b5a,'join');for(const _0x3b343f of this['getSuggestions']())if(_0x3b343f['author']['id']==_0x109f2a['id']&&'formatBlock'==_0x3b343f['type']&&_0x3b343f['data']['formatGroupId']==_0x5a6220['formatGroupId']&&_0x3b343f['subType']==_0x158b5a&&Lt(_0x3b343f,_0x4a3a6c)&&(_0x1b2f23(_0x3b343f['getRanges'](),_0x5a4dfb)||_0x1b2f23(_0x5a4dfb,_0x3b343f['getRanges']()))){for(const _0x37402a of _0x5a4dfb)_0x3b343f['addRange'](_0x37402a);return _0x3b343f;}const _0x30eec7=_0x287d7d(),_0x3e886b=_0x109f2a['id'],_0xbcfb71='formatBlock:'+_0x158b5a,_0xdc64ef=this['_setSuggestionData']({'id':_0x30eec7,'type':_0xbcfb71,'data':_0x5a6220,'createdAt':new Date(),'authorId':_0x3e886b,'attributes':_0x4a3a6c});for(const _0x2c56e9 of _0x5a4dfb)this['_addSuggestionMarker'](_0xbcfb71,_0x30eec7,_0x3e886b,_0x2c56e9,u['getMultiRangeId']());return _0xdc64ef;}['markDeletion'](_0x2d4593,_0x152424=null,_0x238d66={}){if(_0x2d4593['isCollapsed'])return null;const _0x4c3400=this['editor']['plugins']['get']('Users')['me'],_0x122892=new _0x55c0b1(_0x2d4593['start'],_0x2d4593['end']);for(const {suggestion:_0x135569,meta:_0x3df971}of this['_findSuggestions'](_0x122892,'insertion'))if(_0x3df971['isOwn']&&!_0x3df971['isNextTo']){if(_0x135569['isMultiRange']){const _0x32be6b=_0x135569['getRanges']()['filter'](_0x3469cf=>'$graveyard'!=_0x3469cf['root']['rootName']);_0x32be6b['every'](_0x2ba6c0=>_0x122892['containsRange'](_0x2ba6c0,!0x0))&&_0x135569['discard']();if(_0x32be6b['some'](_0x73a483=>_0x73a483['containsRange'](_0x122892,!0x0))){const _0x429719=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x152424,'accept');return this['forceDefaultExecution'](()=>_0x429719([_0x122892],null,_0x238d66)),null;}}else{const _0x51b449=_0x122892['getIntersection'](_0x135569['getFirstRange']());null!==_0x51b449&&_0x135569['_onDiscard']([_0x51b449],null,_0x238d66);}}if(_0x122892['detach'](),_0x122892['isCollapsed']||'$graveyard'==_0x122892['root']['rootName'])return null;let _0x123f7a=null,_0x5853ca=_0x122892['start'],_0x6a5421=_0x122892['end'];const _0x28a83a=this['_findSuggestions'](_0x122892,'deletion');for(const {suggestion:_0x2c33fd,meta:_0x44a824}of _0x28a83a){const _0x5b9e34=this['_model']['createRange'](_0x5853ca,_0x6a5421);if(_0x44a824['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44a824['containsRangeInObject']&&!_0x44a824['isInsideObject'])){if(_0x2c33fd['isMultiRange']){if(!Lt(_0x2c33fd,_0x238d66))continue;let _0x5e59c7=!0x0;for(const _0x4f5e5f of _0x2c33fd['getRanges']()){if(_0x4f5e5f['containsRange'](_0x5b9e34,!0x0))return _0x2c33fd;_0x5b9e34['containsRange'](_0x4f5e5f)||(_0x5e59c7=!0x1);}_0x5e59c7&&_0x2c33fd['discard']();}else{const _0x46e71a=_0x2c33fd['getFirstRange']();if(_0x46e71a['containsRange'](_0x5b9e34,!0x0))return _0x2c33fd;if(!Lt(_0x2c33fd,_0x238d66)){_0x5b9e34['containsRange'](_0x46e71a)?_0x2c33fd['removeMarkers']():_0x46e71a['containsPosition'](_0x5853ca)?_0x5853ca=_0x46e71a['end']:_0x46e71a['containsPosition'](_0x6a5421)&&(_0x6a5421=_0x46e71a['start']);continue;}_0x5853ca=_0x5853ca['isBefore'](_0x46e71a['start'])?_0x5853ca:_0x46e71a['start'],_0x6a5421=_0x6a5421['isAfter'](_0x46e71a['end'])?_0x6a5421:_0x46e71a['end'],_0x238d66=Object['assign']({},_0x2c33fd['attributes']),_0x123f7a?_0x46e71a['start']['isBefore'](_0x123f7a['getFirstRange']()['start'])?(_0x123f7a['removeMarkers'](),_0x123f7a=_0x2c33fd):_0x2c33fd['removeMarkers']():_0x123f7a=_0x2c33fd;}}}if(_0x123f7a)return this['_setSuggestionRange'](_0x123f7a,this['_model']['createRange'](_0x5853ca,_0x6a5421)),_0x123f7a;{const _0x4c0208=_0x287d7d(),_0x2767f0=this['_model']['createRange'](_0x5853ca,_0x6a5421),_0x296e10=_0x4c3400['id'],_0x236a4b=_0x152424?'deletion:'+_0x152424:'deletion',_0x3f6ab7=this['_setSuggestionData']({'id':_0x4c0208,'type':_0x236a4b,'createdAt':new Date(),'authorId':_0x296e10,'attributes':_0x238d66});return this['_addSuggestionMarker'](_0x236a4b,_0x4c0208,_0x296e10,_0x2767f0),_0x3f6ab7;}}['markMultiRangeDeletion'](_0x195b0d,_0x46dca6='multi',_0x5ad968={}){const _0x153fcf=this['editor']['plugins']['get']('Users')['me'],_0x4678ae=_0x195b0d['map'](_0x339e20=>new _0x55c0b1(_0x339e20['start'],_0x339e20['end'])),_0x4540b2=new Set();for(const {suggestion:_0x4b5158,meta:_0xaf0088}of this['_findSuggestions'](_0x4678ae,'insertion'))_0xaf0088['isOwn']&&!_0xaf0088['isNextTo']&&_0x4540b2['add'](_0x4b5158);for(const _0x407e72 of _0x4540b2)if(_0x407e72['isMultiRange']){const _0x538bee=_0x407e72['getRanges']();(!_0x407e72['attributes']||!_0x407e72['attributes']['skipNestingCheck'])&&(_0x538bee['every'](_0x4ce2db=>_0x4678ae['some'](_0x3b2ff4=>_0x3b2ff4['containsRange'](_0x4ce2db,!0x0)))&&_0x407e72['discard']());if(_0x4678ae['every'](_0x5e073f=>_0x538bee['some'](_0x4e53c8=>_0x4e53c8['containsRange'](_0x5e073f,!0x0)))){const _0x13bab8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46dca6,'accept');return this['forceDefaultExecution'](()=>_0x13bab8(_0x195b0d,null,_0x5ad968)),null;}}else{const _0x2c15df=_0x407e72['getFirstRange']();_0x4678ae['some'](_0x4f588b=>_0x4f588b['containsRange'](_0x2c15df,!0x0))&&_0x407e72['discard']();if(_0x4678ae['every'](_0x436640=>_0x2c15df['containsRange'](_0x436640,!0x0))){const _0xc8950f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46dca6,'accept');return this['forceDefaultExecution'](()=>_0xc8950f(_0x4678ae,null,_0x5ad968)),null;}}const _0x27abf6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46dca6,'join');let _0xdb1d15=null;for(const _0x455b55 of this['getSuggestions']())if(_0x455b55['author']['id']==_0x153fcf['id']&&_0x455b55['isInContent']&&'deletion'==_0x455b55['type']&&_0x455b55['subType']==_0x46dca6&&Lt(_0x455b55,_0x5ad968)&&(_0x27abf6(_0x455b55['getRanges'](),_0x4678ae)||_0x27abf6(_0x4678ae,_0x455b55['getRanges']()))){if(_0xdb1d15){if(_0x455b55['commentThread']&&_0x455b55['commentThread']['length'])continue;for(const _0x503bef of _0x455b55['getRanges']())_0xdb1d15['isIntersectingWithRange'](_0x503bef)||_0xdb1d15['addRange'](_0x503bef);_0x455b55['removeMarkers']();}else{_0xdb1d15=_0x455b55;for(const _0x583f3e of _0x4678ae)_0x455b55['isIntersectingWithRange'](_0x583f3e)||_0x455b55['addRange'](_0x583f3e);}}if(_0xdb1d15)return _0xdb1d15;_0x4540b2['clear']();for(const {suggestion:_0x507a1c,meta:_0x5322c9}of this['_findSuggestions'](_0x4678ae,'deletion'))_0x5322c9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5322c9['containsRangeInObject']&&!_0x5322c9['isInsideObject'])&&Lt(_0x507a1c,_0x5ad968)&&_0x4540b2['add'](_0x507a1c);for(const _0x5cfbba of _0x4540b2){const _0x181192=_0x5cfbba['getRanges']();if(!_0x5ad968||!_0x5ad968['skipNestingCheck']){if(_0x4678ae['every'](_0x2400b2=>_0x181192['some'](_0x584ef8=>_0x584ef8['containsRange'](_0x2400b2,!0x0))))return _0x5cfbba;}(!_0x5cfbba['attributes']||!_0x5cfbba['attributes']['skipNestingCheck'])&&(_0x181192['every'](_0x6b68b5=>_0x4678ae['some'](_0x25615d=>_0x25615d['containsRange'](_0x6b68b5,!0x0)))&&_0x5cfbba['discard']());}const _0x23d46f=_0x287d7d(),_0x541955=_0x153fcf['id'],_0x2b0b19='deletion:'+_0x46dca6,_0x152d0e=this['_setSuggestionData']({'id':_0x23d46f,'type':_0x2b0b19,'createdAt':new Date(),'authorId':_0x541955,'attributes':_0x5ad968});for(const _0x101c5f of _0x4678ae)_0x101c5f['detach'](),_0x101c5f['isCollapsed']||'$graveyard'==_0x101c5f['root']['rootName']||this['_addSuggestionMarker'](_0x2b0b19,_0x23d46f,_0x541955,_0x101c5f,u['getMultiRangeId']());return _0x152d0e;}['markAttributeChange'](_0x1c5b49,_0x2b0e3c,_0x547a01,_0x4f4dcc,_0x249cca){if(_0x1c5b49['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa7b6db=this['editor']['plugins']['get']('Users')['me']['id'],_0x399d3d=Array['from'](this['_suggestions']['values']())['filter'](_0x4dca63=>'attribute'==_0x4dca63['type']&&_0x4dca63['data']['key']==_0x2b0e3c&&_0x4dca63['isIntersectingWithRange'](_0x1c5b49));if('default'===this['_trackFormatChanges']){const _0x123ffb=this['_findSuggestions'](_0x1c5b49,'insertion')['filter'](({meta:_0x1a93b0})=>_0x1a93b0['isOwn']&&!_0x1a93b0['isInsideObject']&&!_0x1a93b0['isNextTo'])['map'](({suggestion:_0x4a8150})=>_0x4a8150);_0x399d3d['unshift'](..._0x123ffb);}const _0x2f0a1b=new Map([[_0x1c5b49,_0x547a01]]);for(const _0x434a37 of _0x399d3d){const _0x176279='attribute'==_0x434a37['type']?_0x434a37['data']['oldValue']:void 0x0,_0x4adb90=_0x434a37['getFirstRange'](),_0x228e0c=Array['from'](_0x2f0a1b['keys']())['find'](_0x10a6ad=>_0x10a6ad['isIntersecting'](_0x4adb90));if(!_0x228e0c)continue;const _0x44274e=_0x228e0c['getDifference'](_0x4adb90);this['_isBlockAttribute'](_0x2b0e3c)&&'insertion'==_0x434a37['type']&&0x0!=_0x44274e['length']||(_0x2f0a1b['delete'](_0x228e0c),_0x44274e['forEach'](_0x1ecc45=>{_0x2f0a1b['set'](_0x1ecc45,_0x547a01);}),'insertion'!=_0x434a37['type']&&_0x176279!=_0x4f4dcc&&_0x2f0a1b['set'](_0x228e0c['getIntersection'](_0x4adb90),_0x176279));}const _0x444e83=[];for(const [_0x293779,_0x374a49]of _0x2f0a1b){const _0x1fd3b1=_0x287d7d(),_0x44c775={'key':_0x2b0e3c,'oldValue':_0x374a49,'newValue':_0x4f4dcc};_0x2b0e3c['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':_0x2b0e3c});const _0x3eb7b1=('attribute:'+(_0x2b0e3c+'|'+Vt({'newValue':_0x4f4dcc})))['substring'](0x0,0x3c),_0x55bfb9=this['_setSuggestionData']({'id':_0x1fd3b1,'type':_0x3eb7b1,'data':_0x44c775,'createdAt':new Date(),'authorId':_0xa7b6db,'attributes':_0x249cca});_0x444e83['push'](_0x55bfb9),this['_addSuggestionMarker'](_0x3eb7b1,_0x1fd3b1,_0xa7b6db,_0x293779);}return _0x444e83;}['enableDefaultAttributesIntegration'](_0x3551da){this['enableCommand'](_0x3551da,(_0x15f348,..._0x3d1cae)=>{this['_recordAttributeChanges'](()=>{_0x15f348(..._0x3d1cae);});});}['registerBlockAttribute'](_0x18a16a){this['_blockAttributeKeys']['add'](_0x18a16a);}['registerInlineAttribute'](_0xa104e3){this['_inlineAttributeKeys']['add'](_0xa104e3);}['_getAttributeKey'](_0x394a25){return'attribute'==_0x394a25['type']?_0x394a25['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a8686,_0x554436){const _0x6d3696=_0x4a8686['getFirstMarker']();this['_model']['change'](_0x121cc9=>{_0x121cc9['updateMarker'](_0x6d3696,{'range':_0x554436});});}['_addThreadToSuggestion'](_0xf9173a){const _0x1c1560=_0xf9173a['id'],_0x1da892=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c1560)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1da892,'threadId':_0x1c1560,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x53f1ab=this['_commentsRepository']['getCommentThread'](_0x1c1560);_0x53f1ab['unbind']('isRemovable'),_0x53f1ab['isRemovable']=!0x1,_0xf9173a['commentThread']=_0x53f1ab;}['_checkSuggestionCorrectness'](_0x298c02,_0x48daf0,_0x177b59,_0x3cba21){if(_0x298c02['type']!=_0x48daf0||_0x298c02['subType']!=_0x177b59||_0x298c02['creator']['id']!=_0x3cba21)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x35d108('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x234eed,_0xb241ee){const _0x32d182=_0x234eed['getFirstRange']();if(_0xb241ee['isEqual'](_0x32d182))_0x234eed['removeMarkers']();else{if(_0x32d182['containsRange'](_0xb241ee)){const _0x583295=this['_model']['createPositionAt'](_0xb241ee['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x234eed,this['_model']['createRange'](_0x32d182['start'],_0x583295));const _0x2c082a=_0x287d7d(),_0x4ee0a5=_0x234eed['creator']['id'],_0x5cfa19=_0x234eed['type']+':'+_0x234eed['subType'];this['_setSuggestionData']({'id':_0x2c082a,'type':_0x5cfa19,'createdAt':new Date(),'authorId':_0x4ee0a5,'data':_0x234eed['data'],'attributes':_0x234eed['attributes']});const _0x4842f2=this['_model']['createPositionAt'](_0xb241ee['end']['parent'],'after'),_0x3bb19f=this['_model']['createRange'](_0x4842f2,_0x32d182['end']);this['_addSuggestionMarker'](_0x5cfa19,_0x2c082a,_0x4ee0a5,_0x3bb19f);}else{if(_0x32d182['containsPosition'](_0xb241ee['start'])){const _0xba8da2=this['_model']['createPositionAt'](_0xb241ee['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x234eed,this['_model']['createRange'](_0x32d182['start'],_0xba8da2));}else{const _0x39cbd8=this['_model']['createPositionAt'](_0xb241ee['end']['parent'],'after');this['_setSuggestionRange'](_0x234eed,this['_model']['createRange'](_0x39cbd8,_0x32d182['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x144378){for(const {suggestion:_0x4c9347,meta:_0x4c6604}of this['_findSuggestions'](_0x144378,'insertion')){if(!_0x4c6604['isOwn'])continue;const _0x5037ce=_0x4c9347['getRanges']();for(const _0xa3f650 of _0x5037ce)if(!_0x144378['getDifference'](_0xa3f650)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c033d){const _0x2f33af=this['editor']['plugins']['get']('Users')['getUser'](_0x5c033d);if(!_0x2f33af)throw new _0x35d108('track-changes-user-not-found',this);return _0x2f33af;}['_getExternalAuthor'](_0x5f177b){const _0x21f710=this['editor']['plugins']['get']('Users'),_0x52ac43=_0xdafb0a('external:'+_0x5f177b),_0x34ce7d=_0x21f710['getUser'](_0x52ac43);return _0x34ce7d||_0x21f710['addUser']({'id':_0x52ac43,'name':_0x5f177b});}['_createSuggestion'](_0x4b5e36,_0x33054d,_0x51f18f,_0xe065a,_0x56d604){const _0xcaf2a0=this['_getAuthorFromId'](_0xe065a),_0x3d4c47=this['_suggestionFactory']['buildSuggestion'](_0x4b5e36,_0x33054d,_0x51f18f,_0xcaf2a0,_0x56d604,_0x82b5c=>{this['_updateSuggestionData'](_0x51f18f,{'attributes':_0x82b5c});const _0x56148c=this['getSuggestion'](_0x51f18f);this['_joinWithAdjacentSuggestions'](new Set([_0x56148c])),this['_refreshSuggestionsChain'](new Set([_0x56148c]));});return this['listenTo'](_0x3d4c47,'accept',()=>{this['_updateSuggestionData'](_0x51f18f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3d4c47,'discard',()=>{this['_updateSuggestionData'](_0x51f18f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51f18f,_0x3d4c47),this['_suggestionState']['set'](_0x3d4c47,'notReady'),_0x3d4c47;}['_splitMarkerName'](_0x3fc6c7){const _0x4a4983=_0x3fc6c7['split'](':');return{'group':_0x4a4983[0x0],'type':_0x4a4983[0x1],'subType':_0x4a4983['length']>=0x5?_0x4a4983[0x2]:null,'id':_0x4a4983['length']<0x5?_0x4a4983[0x2]:_0x4a4983[0x3],'authorId':_0x4a4983['length']<0x5?_0x4a4983[0x3]:_0x4a4983[0x4],'markerCount':0x6==_0x4a4983['length']?_0x4a4983[0x5]:null};}['_breakSuggestionMarker'](_0x502729,_0x408989,_0x394a6b){const _0x186a34=_0x502729['getFirstRange'](),_0x5c69d4=_0x186a34['start'],_0x580013=_0x186a34['end'];this['_setSuggestionRange'](_0x502729,this['_model']['createRange'](_0x5c69d4,_0x408989));const _0x275da1=_0x287d7d(),_0x22f5d6=_0x502729['creator']['id'],_0x2a3462=_0x502729['type']+(_0x502729['subType']?':'+_0x502729['subType']:'');this['_setSuggestionData']({'id':_0x275da1,'type':_0x2a3462,'createdAt':new Date(),'authorId':_0x22f5d6,'originalSuggestionId':_0x502729['id'],'attributes':_0x502729['attributes'],'data':_0x502729['data']});const _0x37f700=this['_getAttributeKey'](_0x502729);('formatBlock'==_0x502729['type']||_0x37f700&&this['_isBlockAttribute'](_0x37f700))&&(_0x394a6b=this['_model']['createPositionBefore'](_0x394a6b['parent'])),this['_addSuggestionMarker'](_0x2a3462,_0x275da1,_0x22f5d6,this['_model']['createRange'](_0x394a6b,_0x580013));}['_findSuggestions'](_0x1c5a14,_0xf64fa3=null){const _0x255ee6=[],_0x166e09=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1c5a14)||(_0x1c5a14=[_0x1c5a14]);for(const _0x1bb0f1 of this['getSuggestions']()){if(!_0x1bb0f1['isInContent'])continue;if(_0xf64fa3&&_0x1bb0f1['type']!=_0xf64fa3)continue;let _0x42b120=!0x1;for(const _0x15ec1e of _0x1bb0f1['getRanges']()){for(const _0x158cef of _0x1c5a14){const _0x1c1406=_0x158cef['start']['isEqual'](_0x15ec1e['end'])||_0x158cef['end']['isEqual'](_0x15ec1e['start']);if(_0x1c1406||_0x158cef['getIntersection'](_0x15ec1e)){const _0x396c91=_0x158cef['containsRange'](_0x15ec1e)&&Rt(this['_model']['schema'],_0x15ec1e['start'],_0x158cef),_0x4b2e41=_0x15ec1e['containsRange'](_0x158cef)&&Rt(this['_model']['schema'],_0x158cef['start'],_0x15ec1e);_0x255ee6['push']({'suggestion':_0x1bb0f1,'meta':{'isOwn':_0x166e09==_0x1bb0f1['author'],'isNextTo':_0x1c1406,'isInsideObject':_0x396c91,'containsRangeInObject':_0x4b2e41}}),_0x42b120=!0x0;break;}}if(_0x42b120)break;}}return _0x255ee6;}['_addSuggestionMarker'](_0x53629b,_0x2eb46a,_0x732c0c,_0x31eff5,_0x24cb18){this['_model']['change'](_0x27e34b=>{let _0x194eb3='suggestion:'+_0x53629b+':'+_0x2eb46a+':'+_0x732c0c;_0x24cb18&&(_0x194eb3=_0x194eb3+':'+_0x24cb18),_0x27e34b['addMarker'](_0x194eb3,{'range':_0x31eff5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e7393){const _0x4035aa=_0x1e7393['previous'],_0x290e3a=_0x1e7393['next'];_0x1e7393['previous']=null,_0x1e7393['next']=null,null!=_0x4035aa&&_0x4035aa['next']==_0x1e7393&&(_0x4035aa['next']=_0x290e3a),null!=_0x290e3a&&_0x290e3a['previous']==_0x1e7393&&(_0x290e3a['previous']=_0x4035aa),'ready'==this['_suggestionState']['get'](_0x1e7393)&&(this['_suggestionState']['set'](_0x1e7393,'removed'),this['fire']('suggestionUnloaded',_0x1e7393,_0x4035aa,_0x290e3a));}['_setSuggestionData'](_0x5f2604){const _0x2cca59=_0x5f2604['id'],_0x23a353=this['addSuggestionData'](_0x5f2604);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2249a1=this['editor']['plugins']['get']('PendingActions'),_0x26324c=_0x23a353['hasComments'],_0x1eb6df=_0x23a353['subType']?_0x23a353['type']+':'+_0x23a353['subType']:_0x23a353['type'],_0x5b8375=this['editor']['locale'],_0x4ffcd0=_0x2249a1['add'](o(_0x5b8375,'PENDING_ACTION_SUGGESTION')),_0x5598be={'id':_0x2cca59,'type':_0x1eb6df,'hasComments':_0x26324c,'data':_0x5f2604['data']||null,'originalSuggestionId':_0x5f2604['originalSuggestionId']||null,'attributes':_0x23a353['attributes']};this['_adapter']['addSuggestion'](_0x5598be)['then'](_0x11b10c=>{_0x23a353['_saved']=!0x0,_0x2249a1['remove'](_0x4ffcd0),_0x11b10c&&_0x11b10c['createdAt']&&(this['_suggestions']['get'](_0x2cca59)['createdAt']=_0x11b10c['createdAt']);})['catch'](_0x3a0bd1=>{throw _0x1d1d01('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x23a353['discard']();}),_0x23a353['stopListening'](),this['_suggestions']['delete'](_0x23a353['id']),this['_suggestionState']['delete'](_0x23a353),_0x3a0bd1;});}return _0x23a353;}['_isBlockAttribute'](_0x527c01){return this['_blockAttributeKeys']['has'](_0x527c01);}['_updateSuggestionData'](_0x5c4f40,_0x35f98d){const _0x3b3798=this['editor']['plugins']['get']('PendingActions'),_0x3448d3=this['getSuggestion'](_0x5c4f40);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3448d3['_saved']){const _0x2bd4ed=_0x3b3798['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5c4f40,_0x35f98d)['then'](()=>{_0x3b3798['remove'](_0x2bd4ed);});}else _0x3448d3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5c4f40,_0x35f98d);});}}['_getSuggestionData'](_0x144335){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x35d108('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x144335);}['_handleNewSuggestionMarker'](_0x45f2e9){const {id:_0x4520e8,type:_0x3f6f48,subType:_0x3701fb,authorId:_0x3461ba}=this['_splitMarkerName'](_0x45f2e9),_0x3d7877=this['_suggestions']['get'](_0x4520e8)||this['_createSuggestion'](_0x3f6f48,_0x3701fb,_0x4520e8,_0x3461ba,{});switch(this['_checkSuggestionCorrectness'](_0x3d7877,_0x3f6f48,_0x3701fb,_0x3461ba),this['_suggestionState']['get'](_0x3d7877)){case'notReady':this['_getSuggestionData'](_0x4520e8)['then'](_0x4e5b8e=>{let _0x81b8b4=Promise['resolve']();_0x4e5b8e['hasComments']&&(_0x81b8b4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4520e8})),_0x81b8b4['then'](()=>{this['addSuggestionData'](_0x4e5b8e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d7877,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4520e8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d7877,'ready'),this['fire']('suggestionLoaded',_0x3d7877);break;case'ready':this['fire']('suggestionChanged',_0x3d7877);}return _0x3d7877['addMarkerName'](_0x45f2e9),_0x3d7877;}['_refreshSuggestionsChain'](_0x237b16){const _0x2ccf39=Array['from'](_0x237b16),_0x374fc7=_0x2ccf39['filter'](_0x335097=>'attribute'==_0x335097['type']);this['_refreshAttributeSuggestionsChain'](_0x374fc7);const _0x5229df=_0x2ccf39['filter'](_0x9ac072=>!_0x9ac072['isMultiRange']&&'attribute'!=_0x9ac072['type']),_0xda36c9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1068bf=>!_0x1068bf['isMultiRange']&&'attribute'!=_0x1068bf['type']),_0x258957=_0xda36c9['filter'](_0x2ce37b=>!_0x237b16['has'](_0x2ce37b)),_0x10f21c=new Map(_0xda36c9['map'](_0x14d35c=>[_0x14d35c,this['_suggestionFactory']['getSuggestionCallback'](_0x14d35c['type'],_0x14d35c['subType'],'chain')])),_0x7348d4=new Map(_0xda36c9['map'](_0x19ddb2=>[_0x19ddb2,_0x19ddb2['getFirstRange']()])),_0x3f1c03=new Set(),_0x488c99=new Set();for(let _0x216cec=0x0;_0x216cec<_0x5229df['length'];_0x216cec++)_0x5d6663(_0x5229df[_0x216cec],_0x5229df,_0x216cec+0x1);for(let _0x4f4d93=0x0;_0x4f4d93<_0x5229df['length'];_0x4f4d93++)_0x5d6663(_0x5229df[_0x4f4d93],_0x258957,0x0);const _0x5f3370=new Set();for(let _0x2f08b8=0x0;_0x2f08b8<_0x5229df['length'];_0x2f08b8++){const _0x165ed0=_0x5229df[_0x2f08b8];!_0x488c99['has'](_0x165ed0)&&_0x165ed0['previous']&&(_0x5f3370['add'](_0x165ed0['previous']),_0x165ed0['previous']['next']===_0x165ed0&&(_0x165ed0['previous']['next']=null),_0x165ed0['previous']=null),!_0x3f1c03['has'](_0x165ed0)&&_0x165ed0['next']&&(_0x5f3370['add'](_0x165ed0['next']),_0x165ed0['next']['previous']===_0x165ed0&&(_0x165ed0['next']['previous']=null),_0x165ed0['next']=null);}function _0x5d6663(_0x11f86b,_0x546371,_0x568654){for(let _0x143793=_0x568654;_0x143793<_0x546371['length'];_0x143793++){const _0x54de71=_0x3a817c(_0x11f86b,_0x546371[_0x143793]);_0x54de71&&(_0x54de71[0x0]['next']=_0x54de71[0x1],_0x54de71[0x1]['previous']=_0x54de71[0x0],_0x3f1c03['add'](_0x54de71[0x0]),_0x488c99['add'](_0x54de71[0x1]));}}function _0x3a817c(_0x251975,_0x19e3bb){if(_0x251975['author']['id']!==_0x19e3bb['author']['id'])return null;const _0x363ad6=_0x10f21c['get'](_0x251975)(_0x251975,_0x19e3bb,_0x7348d4['get'](_0x251975),_0x7348d4['get'](_0x19e3bb));if(!_0x363ad6)return null;return _0x10f21c['get'](_0x19e3bb)(_0x251975,_0x19e3bb,_0x7348d4['get'](_0x251975),_0x7348d4['get'](_0x19e3bb))?_0x363ad6[0x1]['commentThread']&&_0x363ad6[0x1]['commentThread']['length']?null:_0x363ad6:null;}_0x5f3370['size']&&this['_refreshSuggestionsChain'](_0x5f3370);}['_refreshAttributeSuggestionsChain'](_0x37c95e){if(0x0==_0x37c95e['length'])return;const _0x88d395=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e3d96=>'attribute'==_0x5e3d96['type']&&_0x5e3d96['_isDataLoaded']),_0x389d81=[],_0x9c1465=new Map();for(const _0x4a2177 of _0x88d395){const _0x455eda=_0xdafb0a(_0x4a2177['attributes']);_0x9c1465['has'](_0x455eda)||(_0x9c1465['set'](_0x455eda,_0x389d81['length']),_0x389d81['push']([]));const _0x3330e6=_0x9c1465['get'](_0x455eda);_0x389d81[_0x3330e6]['push'](_0x4a2177);}!(function(){_0x389d81['sort']((_0x19c9c8,_0x1e69bc)=>{const _0x2e7ff2=_0x19c9c8[0x0]['createdAt'],_0x266168=_0x1e69bc[0x0]['createdAt'];return _0x2e7ff2==_0x266168?_0x19c9c8[0x0]['attributes']['groupId']<_0x1e69bc[0x0]['attributes']['groupId']?-0x1:0x1:_0x2e7ff2<_0x266168?-0x1:0x1;});for(const _0x43bc6d of _0x389d81)_0x43bc6d['sort']((_0x5ae305,_0x4726b2)=>_0x5ae305['id']<_0x4726b2['id']?-0x1:0x1);}());for(let _0x25ee12=0x0;_0x25ee12<_0x389d81['length'];_0x25ee12++){if(0x0==_0x389d81[_0x25ee12]['length'])continue;const _0x3fc192=[];for(let _0x2f3995=_0x25ee12+0x1;_0x2f3995<_0x389d81['length'];_0x2f3995++)0x0!=_0x389d81[_0x2f3995]['length']&&_0x14c0db(_0x389d81[_0x25ee12],_0x389d81[_0x2f3995])&&_0x3fc192['push'](_0x2f3995);for(const _0x140c0c of _0x3fc192)_0x389d81[_0x25ee12]=_0x389d81[_0x25ee12]['concat'](_0x389d81[_0x140c0c]),_0x389d81[_0x140c0c]=[];}for(const _0x51a4c5 of _0x389d81)for(let _0x32a5ac=0x0;_0x32a5ac<_0x51a4c5['length'];_0x32a5ac++)_0x51a4c5[_0x32a5ac]['next']=_0x51a4c5[_0x32a5ac+0x1]||null;for(const _0x58f0ce of _0x389d81)for(let _0x4ada21=0x0;_0x4ada21<_0x58f0ce['length'];_0x4ada21++)_0x58f0ce[_0x4ada21]['previous']=_0x58f0ce[_0x4ada21-0x1]||null;function _0x14c0db(_0x1661db,_0x28898a){if(_0x1661db[0x0]['attributes']['groupId']!==_0x28898a[0x0]['attributes']['groupId']&&_0x1661db[0x0]['author']!==_0x28898a[0x0]['author'])return!0x1;if(!function(_0x38e4c2,_0x26d282){if(!_0x38e4c2['hasComments']&&!_0x26d282['hasComments'])return!0x0;if(_0x38e4c2['hasComments']&&_0x26d282['hasComments'])return!0x1;if(_0x38e4c2['hasComments']&&_0x26d282['createdAt']<_0x38e4c2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x26d282['hasComments']&&_0x38e4c2['createdAt']<_0x26d282['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1661db[0x0],_0x28898a[0x0]))return!0x1;const _0x5135af=Bt(_0x1661db[0x0]['attributes'],'groupId'),_0x156797=Bt(_0x28898a[0x0]['attributes'],'groupId');if(!_0x4de750(_0x5135af,_0x156797))return!0x1;return!!_0x1661db['every'](_0xf530ba=>_0x28898a['some'](_0x5dd51c=>_0xf530ba['getFirstRange']()['isEqual'](_0x5dd51c['getFirstRange']())))&&_0x28898a['every'](_0x3f74eb=>_0x1661db['some'](_0x11e884=>_0x3f74eb['getFirstRange']()['isEqual'](_0x11e884['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2a5507){const _0x4cd16c=Array['from'](_0x2a5507),_0x3ccc87=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5cd867=_0x3ccc87['filter'](_0x235bfa=>!_0x2a5507['has'](_0x235bfa)),_0x2994de=new Map(_0x4cd16c['map'](_0x1439c7=>[_0x1439c7,this['_suggestionFactory']['getSuggestionCallback'](_0x1439c7['type'],_0x1439c7['subType'],'join')])),_0x503b19=new Map(_0x3ccc87['map'](_0x2b8a7b=>[_0x2b8a7b,_0x2b8a7b['getRanges']()]));for(let _0x4984bd=0x0;_0x4984bd<_0x4cd16c['length'];_0x4984bd++){if(_0x18934c(this,_0x4cd16c[_0x4984bd],_0x4cd16c,_0x4984bd+0x1))return!0x0;}for(let _0x59dad1=0x0;_0x59dad1<_0x4cd16c['length'];_0x59dad1++){if(_0x18934c(this,_0x4cd16c[_0x59dad1],_0x5cd867,0x0))return!0x0;}return!0x1;function _0x18934c(_0x2dfe1b,_0x3e22d5,_0x1e31d3,_0x35dc87){for(let _0xa8f17c=_0x35dc87;_0xa8f17c<_0x1e31d3['length'];_0xa8f17c++){const _0x1ddb52=_0x1e31d3[_0xa8f17c];if(_0x1ddb52['type']!==_0x3e22d5['type']||_0x1ddb52['author']['id']!==_0x3e22d5['author']['id']||_0x1ddb52['subType']!==_0x3e22d5['subType'])continue;if(!Pt(_0x3e22d5,_0x1ddb52,['groupId']))continue;if('attribute'==_0x3e22d5['type']&&_0x3e22d5['data']['oldValue']!=_0x1ddb52['data']['oldValue'])continue;if('attribute'==_0x3e22d5['type']&&_0x2dfe1b['_isBlockAttribute'](_0x3e22d5['data']['key']))continue;if('formatBlock'==_0x3e22d5['type']){const _0x5a0b5e=_0x2dfe1b['editor']['model'],_0x43fee5=_0x3e22d5['getContainedElement']();if(_0x43fee5&&(_0x5a0b5e['schema']['isObject'](_0x43fee5)||_0x5a0b5e['schema']['isLimit'](_0x43fee5)))continue;}const _0x172ac4=_0x2994de['get'](_0x3e22d5),_0x4768d2=_0x503b19['get'](_0x3e22d5),_0x528b02=_0x503b19['get'](_0x1ddb52),_0x2a2bf6=_0x3e22d5['commentThread']&&_0x3e22d5['commentThread']['length'],_0x15fa04=_0x1ddb52['commentThread']&&_0x1ddb52['commentThread']['length'];if(!_0x2a2bf6&&_0x172ac4(_0x528b02,_0x4768d2))return _0x2dfe1b['_joinSuggestions'](_0x1ddb52,_0x3e22d5),_0x503b19['delete'](_0x3e22d5),!0x0;if(!_0x15fa04&&_0x172ac4(_0x4768d2,_0x528b02))return _0x2dfe1b['_joinSuggestions'](_0x3e22d5,_0x1ddb52),_0x503b19['delete'](_0x1ddb52),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8aeb3b,_0x155f3c){if(_0x8aeb3b['isMultiRange']){for(const _0x3ea00b of _0x155f3c['getRanges']())_0x8aeb3b['addRange'](_0x3ea00b);}else{const _0x22afa9=_0x155f3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8aeb3b,this['_model']['createRange'](_0x8aeb3b['getFirstRange']()['start'],_0x22afa9));}_0x155f3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1ab560,_0xf50b09){const _0x5dd11c=_0x1ab560['startsWith']('format')||_0x1ab560['startsWith']('attribute')?'FORMATTING':_0x1ab560['toUpperCase']();return o(this['editor']['locale'],_0xf50b09+'_'+_0x5dd11c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x486620=this['editor'];if(!_0x486620['ui'])return;const {ariaLiveAnnouncer:_0xd2101e}=_0x486620['ui'];_0x3da964(this['_model'],({left:_0x28f0fd,entered:_0x3bbbc4})=>{for(const _0x2b7f9b of _0x28f0fd){const {group:_0x3221e2,type:_0x34133f}=this['_splitMarkerName'](_0x2b7f9b['name']);if('suggestion'===_0x3221e2){_0xd2101e['announce'](this['_getMarkerAnnouncementText'](_0x34133f,'LEAVE'));break;}}for(const _0x11e68b of _0x3bbbc4){const {group:_0x1f0a14,type:_0x18298e}=this['_splitMarkerName'](_0x11e68b['name']);if('suggestion'===_0x1f0a14){_0xd2101e['announce'](this['_getMarkerAnnouncementText'](_0x18298e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x3a9656){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf31b1c=this['editor'],_0x74932d=_0xf31b1c['model']['document']['differ']['getChanges']();if(0x0==_0x74932d['length'])return!0x1;const _0x2345d5=[],_0x20a5f6=_0x74932d['filter'](_0x250fe3=>'attribute'==_0x250fe3['type']),_0x403df0=_0x74932d['filter'](_0xd12e28=>'insert'==_0xd12e28['type']&&'$text'!=_0xd12e28['name']),_0x178f41=_0x74932d['filter'](_0x54258a=>'remove'==_0x54258a['type']&&'$text'!=_0x54258a['name']);for(const _0x204035 of _0x20a5f6)_0x2345d5['push']({'key':_0x204035['attributeKey'],'newValue':_0x204035['attributeNewValue'],'oldValue':_0x204035['attributeOldValue'],'range':Ot(_0x204035['range'],_0xf31b1c['model'])});for(const _0x4fa5a0 of _0x403df0){const _0x517713=_0x178f41['find'](_0x20a0aa=>_0x20a0aa['position']['isEqual'](_0x4fa5a0['position']));_0x517713&&_0x2345d5['push']({'key':m,'newValue':_0x4fa5a0['name'],'oldValue':_0x517713['name'],'range':_0xf31b1c['model']['createRangeOn'](_0x4fa5a0['position']['nodeAfter'])});}return 0x0!=_0x2345d5['length']&&this['_reduceExistingSuggestions'](_0x3a9656,_0x2345d5);}['_processAttributeSuggestions'](_0x399da2){let _0x426a9f=!0x1;const _0x4c5943=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fe8a0=>_0x3fe8a0['data']['newRange']&&_0x3fe8a0['name']['startsWith']('suggestion:attribute:'));for(const _0x5b93b7 of _0x4c5943){const {subType:_0x20c2ce,id:_0x3eb417}=this['_splitMarkerName'](_0x5b93b7['name']),_0x4739d8=_0x20c2ce['split']('|')[0x0];for(const _0x28c957 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x28c957['id']!=_0x3eb417&&'attribute'==_0x28c957['type']&&_0x28c957['data']&&_0x28c957['data']['key']==_0x4739d8&&_0x28c957['getFirstRange']()['isIntersecting'](_0x5b93b7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x28c957,_0x5b93b7['data']['newRange'],_0x399da2),_0x426a9f=!0x0);}return _0x426a9f;}['_recordAttributeChanges'](_0x4312de){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4312de();}['_isRegisteredAttribute'](_0x31e626){const _0x571324=this['_isBlockAttribute'](_0x31e626),_0xe375c4=this['_inlineAttributeKeys']['has'](_0x31e626);return _0x571324||_0xe375c4;}['_reduceExistingSuggestions'](_0x23927d,_0x1ef744){if(0x0==_0x1ef744['length'])return!0x1;let _0x209782=!0x1;for(const _0x1bcca5 of _0x1ef744){const _0xe4fbea=this['_findSuggestions'](_0x1bcca5['range'],'attribute')['filter'](_0xf4fdda=>!_0xf4fdda['meta']['isNextTo'])['map'](_0x5e82e5=>_0x5e82e5['suggestion']),_0x117ca5=_0xdafb0a({'newValue':_0x1bcca5['newValue']});_0xe4fbea['filter'](_0x5f3225=>{const [_0x1ee9ce,_0x4d6c8d]=_0x5f3225['subType']['split']('|');return _0x1ee9ce==_0x1bcca5['key']&&_0x4d6c8d!=_0x117ca5;})['forEach'](_0x217a78=>{this['_reduceSuggestionAttributeRange'](_0x217a78,_0x1bcca5['range'],_0x23927d),_0x209782=!0x0;});}return _0x209782;}['_reduceSuggestionAttributeRange'](_0x27b329,_0x2978b9,_0x769043){const _0x408e49=_0x27b329['getFirstRange']()['getDifference'](_0x2978b9);0x0!==_0x408e49['length']?0x1!==_0x408e49['length']?this['_breakSuggestionMarker'](_0x27b329,_0x2978b9['start'],_0x2978b9['end']):this['_setSuggestionRange'](_0x27b329,_0x408e49[0x0]):_0x769043['removeMarker'](_0x27b329['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21c894){this['_editor']=_0x21c894,this['_model']=_0x21c894['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x9bcd25,_0x106190,_0x5dc175,_0x5d758a,_0x5f1afa,_0xef991){return new u(this['_model'],{'type':_0x9bcd25,'subType':_0x106190,'id':_0x5dc175,'author':_0x5d758a,'creator':_0x5d758a,'attributes':_0x5f1afa,'onAttributesChange':_0xef991,'onAccept':(..._0x462ab4)=>this['getSuggestionCallback'](_0x9bcd25,_0x106190,'accept')(..._0x462ab4),'onDiscard':(..._0x52abfe)=>this['getSuggestionCallback'](_0x9bcd25,_0x106190,'discard')(..._0x52abfe)});}['registerCustomCallback'](_0x2df096,_0x13620c,_0x70dba3,_0x222814){const _0x4fad13=_0x2df096+':'+_0x13620c+':'+_0x70dba3;this['_customCallbacks']['set'](_0x4fad13,_0x222814);}['getSuggestionCallback'](_0x473a37,_0x534d5f,_0x1d1cf3){const _0x30efe1=_0x473a37+':'+_0x534d5f+':'+_0x1d1cf3;return this['_customCallbacks']['get'](_0x30efe1)||this['_defaultCallbacks']['get'](_0x473a37+':'+_0x1d1cf3);}['_registerDefaultCallbacks'](){const _0x2668c3=()=>!0x1,_0x3086bf=_0xb99542=>{_0xb99542['sort']((_0x2564f0,_0x2d33f6)=>_0x2564f0['start']['isBefore'](_0x2d33f6['start'])?0x1:-0x1),this['_model']['change'](_0xf01278=>{for(const _0x5a28e4 of _0xb99542){let _0x542e96;_0x542e96=_0x5a28e4['end']['isAtEnd']&&_0x5a28e4['end']['parent']==_0x5a28e4['start']['nodeAfter']?_0xf01278['createSelection'](_0x5a28e4['start']['nodeAfter'],'on'):_0xf01278['createSelection'](_0x5a28e4),this['_model']['deleteContent'](_0x542e96,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x514ba8=(_0x436483,_0xb31d0d)=>{_0xb31d0d&&this['_model']['change'](_0x299858=>{const {commandName:_0x415c4c,commandParams:_0x3e0d49=[]}=_0xb31d0d,_0x571041=_0x436483['map'](_0x48dcd8=>(Tt(_0x48dcd8)&&(_0x48dcd8=this['_model']['createRange'](_0x48dcd8['end'])),_0x48dcd8))['filter'](_0x529d5c=>'$graveyard'!==_0x529d5c['root']['rootName']);if(_0x571041['length']<0x1)return;const _0x5666c7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x16af8e=>_0x55c0b1['fromRange'](_0x16af8e));_0x299858['setSelection'](_0x571041);for(const _0x2fd779 of this['_editor']['commands']['commands']())_0x2fd779['refresh']();_0x3e0d49['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x415c4c,..._0x3e0d49);const _0x40006a=_0x5666c7['filter'](_0x4d7e3f=>'$graveyard'!=_0x4d7e3f['root']['rootName']);_0x40006a['length']>0x0&&_0x299858['setSelection'](_0x40006a);for(const _0x170834 of _0x5666c7)_0x170834['detach']();});},_0x53d43b=(_0x516201,_0x44fcbf)=>0x1==_0x516201['length']&&0x1==_0x44fcbf['length']&&_0x516201[0x0]['end']['isEqual'](_0x44fcbf[0x0]['start']),_0x2f2079=(_0x127913,_0x529740,_0x4b507f,_0x553a01)=>Ft(_0x127913,_0x529740,_0x4b507f,_0x553a01,this['_model'])?[_0x127913,_0x529740]:Ft(_0x529740,_0x127913,_0x553a01,_0x4b507f,this['_model'])?[_0x529740,_0x127913]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2668c3),this['_defaultCallbacks']['set']('insertion:discard',_0x3086bf),this['_defaultCallbacks']['set']('insertion:join',_0x53d43b),this['_defaultCallbacks']['set']('insertion:chain',_0x2f2079),this['_defaultCallbacks']['set']('deletion:accept',_0x3086bf),this['_defaultCallbacks']['set']('deletion:discard',_0x2668c3),this['_defaultCallbacks']['set']('deletion:join',_0x53d43b),this['_defaultCallbacks']['set']('deletion:chain',_0x2f2079),this['_defaultCallbacks']['set']('formatInline:accept',_0x514ba8),this['_defaultCallbacks']['set']('formatInline:discard',_0x2668c3),this['_defaultCallbacks']['set']('formatInline:join',_0x53d43b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2668c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x514ba8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2668c3),this['_defaultCallbacks']['set']('formatBlock:join',_0x53d43b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2668c3),this['_defaultCallbacks']['set']('attribute:accept',_0x2668c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x2937ce,_0x4ec2d4)=>{if(!_0x4ec2d4)return;const _0x1f64e5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5c845e=>{if(_0x4ec2d4['key']==m)for(const _0x21fda5 of _0x2937ce){const _0x4f187d=_0x21fda5['start']['nodeAfter'],_0x339eed=_0x4ec2d4['oldValue'];_0x5c845e['rename'](_0x4f187d,_0x339eed);}else{if(_0x1f64e5['_isBlockAttribute'](_0x4ec2d4['key'])){for(const _0x369502 of _0x2937ce)void 0x0!==_0x4ec2d4['oldValue']?_0x5c845e['setAttribute'](_0x4ec2d4['key'],_0x4ec2d4['oldValue'],_0x369502['start']['nodeAfter']):_0x5c845e['removeAttribute'](_0x4ec2d4['key'],_0x369502['start']['nodeAfter']);}else{for(const _0x56ff44 of _0x2937ce)_0x4ec2d4['oldValue']?_0x5c845e['setAttribute'](_0x4ec2d4['key'],_0x4ec2d4['oldValue'],_0x56ff44):_0x5c845e['removeAttribute'](_0x4ec2d4['key'],_0x56ff44);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x53d43b);}}function Rt(_0xfe3f7,_0x463638,_0x3b04d9){for(const _0x2ad6b4 of _0x463638['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ad6b4['root']==_0x2ad6b4)return!0x1;if(!_0x3b04d9['containsItem'](_0x2ad6b4))return!0x1;if(_0xfe3f7['isObject'](_0x2ad6b4)||_0xfe3f7['isLimit'](_0x2ad6b4))return!0x0;}return!0x1;}function Tt(_0x28a991){return _0x28a991['end']['parent']==_0x28a991['start']['nodeAfter']&&_0x28a991['end']['isAtStart'];}function Et(_0x3339c4,_0x3eba75,_0x8cde1c,_0x3f0e7c){const _0x2cdcce=_0xd2df61=>!_0xd2df61['item']['is']('$textProxy')&&!_0x3f0e7c['isObject'](_0xd2df61['item']),_0x2f01b8=_0x3339c4['start']['getLastMatchingPosition'](_0x2cdcce),_0x227c60=_0x3339c4['end']['getLastMatchingPosition'](_0x2cdcce,{'direction':'backward'});return(!_0x3339c4['start']['isEqual'](_0x2f01b8)||!_0x3339c4['end']['isEqual'](_0x227c60))&&(_0x2f01b8['isBefore'](_0x227c60)?_0x8cde1c['updateMarker'](_0x3eba75,{'range':_0x8cde1c['createRange'](_0x2f01b8,_0x227c60)}):_0x8cde1c['removeMarker'](_0x3eba75),!0x0);}function Vt(_0x259b62){return _0xdafb0a(_0x259b62);}function Ut(_0x40ec15){const _0x135be6=_0x40ec15['start']['nodeAfter'];return _0x135be6&&_0x135be6['is']('element');}function Ot(_0x4a3f1f,_0x24aee9){return null==_0x4a3f1f['end']['nodeBefore']&&_0x4a3f1f['end']['parent']==_0x4a3f1f['start']['nodeAfter']?Gt(_0x4a3f1f['start']['nodeAfter'],_0x24aee9):_0x4a3f1f;}function Gt(_0x2ea757,_0x4c88ae){const _0x475a33=_0x4c88ae['schema']['isObject'](_0x2ea757)||_0x4c88ae['schema']['isSelectable'](_0x2ea757);return _0x4c88ae['createRange'](_0x4c88ae['createPositionAt'](_0x2ea757,'before'),_0x475a33?_0x4c88ae['createPositionAfter'](_0x2ea757):_0x4c88ae['createPositionAt'](_0x2ea757,'end'));}function Ft(_0x28fe5a,_0x2505b8,_0x579aa8,_0x2cce8a,_0x428b2b){if(!Pt(_0x28fe5a,_0x2505b8))return!0x1;if(_0x579aa8['end']['isEqual'](_0x2cce8a['start']))return!0x0;if(_0x28fe5a['type']!=_0x2505b8['type'])return!0x1;if(!_0x579aa8['end']['isTouching'](_0x2cce8a['start']))return!0x1;const _0x39b096=_0x428b2b['createRange'](_0x579aa8['end'],_0x2cce8a['start'])['getWalker']();for(const _0x1bf582 of _0x39b096)if(['elementStart','elementEnd']['includes'](_0x1bf582['type'])&&_0x428b2b['schema']['isLimit'](_0x1bf582['item']))return!0x1;return!0x0;}function Pt(_0x5cd3d8,_0xffc12d,_0x1ff9a9=[]){return!(!_0x5cd3d8['_isDataLoaded']||!_0xffc12d['_isDataLoaded'])&&_0x4de750(Bt(_0x5cd3d8['attributes'],_0x1ff9a9),Bt(_0xffc12d['attributes'],_0x1ff9a9));}function Lt(_0x4e0c43,_0x2a14f9){const _0x223339=Ht(_0x4e0c43['attributes']),_0x3a68b1=Ht(_0x2a14f9);if(!_0x4e0c43['_isDataLoaded'])return!0x1;for(const _0x24527b of Object['keys'](_0x3a68b1))if(!_0x4de750(_0x223339[_0x24527b],_0x3a68b1[_0x24527b]))return!0x1;return!0x0;}function Ht(_0x398c89){const _0x463361=Object['assign']({},_0x398c89);return delete _0x463361['skipNestingCheck'],delete _0x463361['tablePasteChainId'],_0x463361;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x136a63(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x576cd0,_0x17e188,_0x17558c,_0x4dfce3){super(),this['model']=_0x17e188,this['view']=_0x17558c,this['commentThreadController']=_0x4dfce3,this['_editor']=_0x576cd0,this['_acceptCommand']=_0x576cd0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x576cd0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x727b95,_0x285e46)=>_0x727b95||_0x285e46),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2f2bd5=>_0x2f2bd5&&this['_editor']['model']['canEditAt'](_0x17e188['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2965af=>_0x2965af&&this['_editor']['model']['canEditAt'](_0x17e188['getRanges']())),this['_pendingAction']=null,_0x17558c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17558c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17558c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17558c,'change:isDirty',()=>{_0x17558c['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 _0x24ec95=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x24ec95);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x59c07b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3cfcc1,_0x2146ef,_0x3ced22,_0x10aab4){super(_0x3cfcc1),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2146ef['authoredAt']),this['bind']('authoredAt')['to'](_0x2146ef),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2146ef,this['_localUser']=_0x3ced22,this['_config']=_0x10aab4,_0x10aab4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x34c3ea}=this['_config'];this['commentsListView']=new _0x34c3ea(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',_0x3d1bd3=>_0x3d1bd3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x7079af,_0x2df2c4)=>_0x7079af||!!_0x2df2c4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c8912}=this['_config'],_0x4dbfab=new _0x4c8912(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8e507a=_0x4dbfab['commentInputView'];return _0x4dbfab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x8e507a,'value',(_0x960698,_0x5eeef8,_0x308a05)=>!!_0x308a05||_0x960698&&!_0x5eeef8),_0x8e507a['on']('submit',(_0x2f44e9,_0x377fb5)=>{this['fire']('addComment',_0x377fb5),_0x8e507a['editor']['setData']('');}),_0x8e507a['on']('cancel',()=>this['focus']()),_0x8e507a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4dbfab;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2db5d6,_0x475229,_0x482254,_0x42a965){super(_0x2db5d6,_0x475229,_0x482254,_0x42a965),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5cc3d1=>_0x5cc3d1&&_0x5cc3d1[0x0]?_0x5cc3d1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe9eac6,_0x531add)=>{let _0x551bb2='';for(const _0x1e6de4 of _0xe9eac6)_0x551bb2+='<p>'+ds(_0x1e6de4['content'],_0x1e6de4['color'])+'</p>';return _0x531add?_0x551bb2:_0x399d49(_0x551bb2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2db5d6,'Accept\x20suggestion'),_0x53c6c6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2db5d6,'Discard\x20suggestion'),_0x53c6c6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x364e1f(_0x2db5d6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2f900e=this['bindTemplate'],_0x5ad060=[{'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':_0x2f900e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f900e['to']('authoredAt',_0x38635d=>this['_config']['formatDateTime'](_0x38635d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x5ad060['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2ddbe8={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2f900e['if']('isActive','ck-suggestion-wrapper--active'),_0x2f900e['to']('type',_0x49bba7=>'ck-suggestion-'+_0x49bba7),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x5ad060}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2ddbe8['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x2ddbe8;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5b44aa,_0x5bf0a1,_0x5f4734)=>{this['_descriptionElement']['innerHTML']=_0x5f4734;});}['_createButton'](_0xbcdc13,_0x3700b4,_0x9e395e,_0x47c3a6,_0x4850c6){const _0x13079f=new _0x4c6253(this['locale']);return _0x13079f['set']({'label':_0xbcdc13,'icon':_0x3700b4,'tooltip':!0x0,'tooltipPosition':_0x4850c6}),_0x13079f['extendTemplate']({'attributes':{'class':_0x9e395e}}),_0x13079f['on']('execute',()=>{this['fire'](_0x47c3a6,this['_model']['id']);}),_0x13079f;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x41ab1c,_0x3dd100){let _0x4776db='';return _0x4776db+=_0x41ab1c['split']('*')['map']((_0x5ee598,_0x33479b)=>_0x33479b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5ee598)+'</span>':us(_0x5ee598))['join'](''),_0x3dd100&&(_0x4776db+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3dd100['value']+'\x22\x20title=\x22'+_0x3dd100['title']+'\x22></span>'),_0x4776db;}function us(_0x6e9048){const _0x19cb9c=document['createElement']('span');return _0x19cb9c['innerText']=_0x6e9048,_0x19cb9c['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x16481a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x214dba,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x21f7c0){super(_0x21f7c0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5237bb=this['editor']['config'];_0x5237bb['define']('trackChanges.SuggestionThreadView',ne),_0x5237bb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5237bb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2bfa81,_0xfdd7a3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x417245,_0x4ae4a0]of this['_handleControllerBuffer']){const _0x536594=this['_suggestionToController']['has'](_0x417245);_0x536594||_0x4ae4a0?_0x536594&&_0x4ae4a0&&this['_destroyController'](_0x417245):this['_initializeController'](_0x417245);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2bfa81,_0xfdd7a3);}['init'](){const _0x27c577=this['editor'],_0x1791ef=_0x27c577['plugins']['get']('TrackChangesEditing'),_0x4b2db9=_0x27c577['plugins']['get']('Annotations'),_0x41bddb=_0x27c577['plugins']['get']('EditorAnnotations'),_0xa6a785=_0x27c577['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41bddb['addSourceCollector'](()=>{const _0x935bc1=[];for(const [_0xbf53e4,_0x4c8ed6]of Array['from'](this['_suggestionToController'])){const _0x4f87a7=_0xbf53e4['getAllAdjacentSuggestions'](),_0x5d1b4e=[];for(const _0x3c0a7a of _0x4f87a7){if(!_0x3c0a7a['isInContent'])continue;if(_0x3c0a7a['isMultiRange']){_0x5d1b4e['push'](..._0x3c0a7a['getRanges']());continue;}const _0x40b80b=_0x3c0a7a['getFirstRange']();if(_0x5d1b4e['length']>0x0){const _0x75b042=_0x5d1b4e[0x0]['getJoined'](_0x40b80b);if(_0x75b042){_0x5d1b4e[0x0]=_0x75b042;continue;}}_0x5d1b4e['push'](_0x40b80b);}_0x935bc1['push']([_0x4c8ed6['view'],_0x5d1b4e]);}return _0x935bc1;}),this['listenTo'](_0x1791ef,'suggestionLoaded',(_0x1c7207,_0x2b4af7)=>{this['listenTo'](_0x2b4af7,'change:previous',(_0x5d5b0e,_0x196852,_0x1d89e2,_0x5498bd)=>{_0x2b4af7['isInContent']&&(null==_0x1d89e2?(this['_updateController'](_0x5498bd['head']),this['_handleSuggestionControllerDelayed'](_0x2b4af7,!0x1)):(this['_updateController'](_0x1d89e2['head']),null==_0x5498bd&&this['_handleSuggestionControllerDelayed'](_0x2b4af7,!0x0)));}),null!==_0x2b4af7['previous']?this['_updateController'](_0x2b4af7['head']):this['_handleSuggestionControllerDelayed'](_0x2b4af7,!0x1);}),this['listenTo'](_0x1791ef,'suggestionUnloaded',(_0x57e6ea,_0x31d821,_0x1d0fe6)=>{this['stopListening'](_0x31d821,'change:previous'),this['_handleControllerBuffer']['delete'](_0x31d821),this['_suggestionToController']['has'](_0x31d821)&&this['_destroyController'](_0x31d821),_0x1d0fe6&&this['_updateController'](_0x1d0fe6['head']);}),this['listenTo'](_0x1791ef,'suggestionChanged',(_0x637bbe,_0x42a8ae)=>{this['_updateController'](_0x42a8ae);}),this['listenTo'](_0x4b2db9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xa6a785,'addComment',(_0x3f16ba,{threadId:_0x2d53e3,isFromAdapter:_0xc5735b})=>{if(_0xc5735b||!_0x1791ef['hasSuggestion'](_0x2d53e3))return;const _0x33fdc9=_0x1791ef['getSuggestion'](_0x2d53e3);this['_suggestionToController']['get'](_0x33fdc9)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2f0e43=this['editor']['plugins']['get']('Annotations'),_0x1e1df9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4879e5=Array['from'](_0x2f0e43['activeAnnotations'],_0x362462=>_0x362462['innerView'])['filter'](_0x285b2d=>this['_viewToController']['has'](_0x285b2d)),_0x51e64c=[];for(const _0x3a5acf of _0x4879e5){const _0x266497=this['_viewToController']['get'](_0x3a5acf)['model']['getAllAdjacentSuggestions']();_0x51e64c['push'](..._0x266497['reduce']((_0x453088,_0x1f0b19)=>[..._0x453088,..._0x1f0b19['getMarkerNames']()],[]));}_0x1e1df9['activeMarkers']=_0x51e64c;}['_addUIComponentsToFactory'](){const _0xef52c2=this['editor'],_0x51f6c1=_0xef52c2['locale'],_0x2b04c7=o(_0x51f6c1,'Track\x20changes'),_0x431644=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b04c7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5e7b69 of _0x431644)if(ae(_0x5e7b69)){const _0x491948=_0xef52c2['commands']['get'](_0x5e7b69['model']['commandName']);_0x5e7b69['model']['bind']('isOn','isEnabled')['to'](_0x491948,'value','isEnabled');}_0xef52c2['ui']['componentFactory']['add']('trackChanges',_0x2b7ab7=>this['_createToolbarButton'](_0x2b7ab7,_0x431644,_0x2b04c7)),_0xef52c2['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa0daa9=>this['_createMenuBarMenu'](_0xa0daa9,_0x431644,_0x2b04c7));}['_createToolbarButton'](_0xfa8c70,_0x5136a2,_0x2091c5){const _0x1f99f0=zt(_0xfa8c70,Zt),_0x1172b4=this['editor']['commands']['get']('trackChanges');_0x1f99f0['buttonView']['set']({'tooltip':_0x2091c5,'label':_0x2091c5,'icon':ie}),_0x1f99f0['buttonView']['bind']('isOn')['to'](_0x1172b4,'value'),_0x1f99f0['buttonView']['on']('execute',()=>{_0x1172b4['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1f99f0,_0x5136a2,{'role':'menu'});const _0x51ef89=[];for(const _0x1bf8f5 of _0x5136a2)ae(_0x1bf8f5)&&_0x51ef89['push'](this['editor']['commands']['get'](_0x1bf8f5['model']['commandName']));const _0x57844a=_0x1f99f0['buttonView'];return _0x57844a['actionView']['unbind']('isEnabled'),_0x57844a['arrowView']['unbind']('isEnabled'),_0x57844a['actionView']['bind']('isEnabled')['to'](_0x1172b4,'isEnabled'),_0x57844a['arrowView']['bind']('isEnabled')['toMany'](_0x51ef89,'isEnabled',(..._0x3056bc)=>_0x3056bc['some'](_0x1e39a0=>_0x1e39a0)),_0x1f99f0['on']('execute',_0x1b124d=>{this['editor']['execute'](_0x1b124d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f99f0;}['_createMenuBarMenu'](_0x1a43ba,_0x28716e,_0x1c78bd){const _0x418d01=new Kt(_0x1a43ba),_0xb6222d=this['editor']['commands']['get']('trackChanges');_0x418d01['buttonView']['set']({'label':_0x1c78bd,'icon':ie});const _0x4b2b66=new Qt(_0x1a43ba);for(const _0x3f7bce of _0x28716e){if('separator'==_0x3f7bce['type']){_0x4b2b66['items']['add'](new Jt(_0x1a43ba));continue;}const _0x4ef0d2=new Xt(_0x1a43ba,_0x418d01),_0x1fb559=new Yt(_0x1a43ba),_0x59c0c9=_0x3f7bce['model'];_0x1fb559['bind'](...Object['keys'](_0x59c0c9))['to'](_0x59c0c9),_0x1fb559['delegate']('execute')['to'](_0x418d01),_0x1fb559['on']('execute',()=>{this['editor']['execute'](_0x59c0c9['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ef0d2['children']['add'](_0x1fb559),_0x4b2b66['items']['add'](_0x4ef0d2);}return _0x418d01['bind']('isEnabled')['to'](_0xb6222d,'isEnabled'),_0x418d01['panelView']['children']['add'](_0x4b2b66),_0x418d01;}['_initializeController'](_0x181f3e){const _0x55ad19=this['editor'],_0x24f06d=_0x55ad19['config'],_0x440fcf=_0x55ad19['plugins']['get']('Annotations'),_0x1652b1=_0x55ad19['plugins']['get']('CommentsRepository'),_0x334a2e=_0x55ad19['plugins']['get']('EditorAnnotations'),_0x50566a=_0x55ad19['plugins']['get'](_0x214dba)['me'],_0x27fabc=_0x24f06d['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x18c0e8,CommentThreadInputView:_0x3ecfd7}=_0x55ad19['plugins']['get']('CommentsUI');let _0x5614d9,_0x58876a;this['_annotationViews']['has'](_0x181f3e['id'])?(_0x58876a=this['_annotationViews']['get'](_0x181f3e['id']),_0x5614d9=_0x58876a['mainView']):(_0x5614d9=new _0x27fabc(_0x55ad19['locale'],_0x181f3e,_0x50566a,{'disableComments':this['_disableComments'],'editorConfig':_0x24f06d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x24f06d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24f06d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24f06d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b1dd6(_0x24f06d['get']('locale')),'CommentView':_0x24f06d['get']('comments')['CommentView'],'CommentsListView':_0x18c0e8,'CommentThreadInputView':_0x3ecfd7}),_0x5614d9['acceptButton']['on']('execute',()=>{_0x55ad19['editing']['view']['focus']();}),_0x5614d9['discardButton']['on']('execute',()=>{_0x55ad19['editing']['view']['focus']();}),_0x58876a=_0x440fcf['createAnnotationView'](this['editor']['locale'],_0x5614d9),_0x58876a['bind']('isDirty')['to'](_0x5614d9,'isDirty'),_0x58876a['bind']('length')['to'](_0x5614d9),_0x58876a['bind']('type')['to'](_0x5614d9,'type',_0x5a5ae1=>'suggestion-'+_0x5a5ae1),this['_annotationViews']['set'](_0x181f3e['id'],_0x58876a));const _0x18791f=_0x1652b1['createCommentThreadController'](_0x181f3e['commentThread'],_0x5614d9),_0x5765dd=new oe(_0x55ad19,_0x181f3e,_0x5614d9,_0x18791f),_0xe62a9f=_0x181f3e['getAllAdjacentSuggestions']()['filter'](_0x310759=>_0x310759['isInContent']);_0x5614d9['descriptionParts']=_0x55ad19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xe62a9f),this['_suggestionToController']['set'](_0x181f3e,_0x5765dd),this['_viewToController']['set'](_0x5614d9,_0x5765dd);const _0x21e65c=_0x440fcf['createAnnotation']({'view':_0x58876a,'target':()=>{const _0x4215a6=[],_0x437a34=_0x181f3e['getAllAdjacentSuggestions']()['filter'](_0x503053=>_0x503053['isInContent']);for(const _0x475272 of _0x437a34)_0x4215a6['push'](..._0x475272['getMarkers']());return _0x39b42e(_0x55ad19['editing'],_0x4215a6);},'type':()=>'suggestion-'+_0x5765dd['view']['type']});_0x1652b1['_bindAnnotationToEditors'](_0x5614d9,_0x21e65c),_0x440fcf['add'](_0x21e65c),_0x334a2e['registerAnnotation'](_0x21e65c);}['_destroyController'](_0x3dddda){const _0x5185f5=this['editor']['plugins']['get']('CommentsRepository'),_0x30836b=this['editor']['plugins']['get']('Annotations'),_0x3e448c=this['_suggestionToController']['get'](_0x3dddda),_0x131340=_0x3e448c['view'],_0x97035b=_0x30836b['getByInnerView'](_0x131340);_0x5185f5['_unbindEditors'](_0x131340),_0x97035b&&_0x30836b['remove'](_0x97035b),this['_suggestionToController']['delete'](_0x3dddda),this['_viewToController']['delete'](_0x131340),_0x3e448c['destroy']();}['_updateController'](_0x5f1928){if(!_0x5f1928['isInContent']||!this['_suggestionToController']['has'](_0x5f1928))return;const _0x3b5ade=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574af5=this['_suggestionToController']['get'](_0x5f1928),_0x962deb=_0x5f1928['getAllAdjacentSuggestions']();_0x574af5['view']['descriptionParts']=_0x3b5ade['descriptionFactory']['getDescriptions'](_0x962deb);}['destroy'](){for(const _0x571a87 of this['_suggestionToController']['keys']())this['_destroyController'](_0x571a87);for(const _0x162c40 of this['_annotationViews']['values']())_0x162c40['mainView']['destroy']();super['destroy']();}}function ae(_0x4916b8){return'model'in _0x4916b8;}class k extends _0x16481a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5596bf){this['editor']['plugins']['get'](p)['adapter']=_0x5596bf;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x47e8ac){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x47e8ac);}['getSuggestions']({skipNotAttached:_0x70251a=!0x1,toJSON:_0x553ab3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x70251a,'toJSON':_0x553ab3});}['getSuggestion'](_0x288343){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x288343);}}const T=['Pagination'];class P extends _0x16481a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xb86a62=this['editor'];if(_0xb86a62['config']['define']('trackChangesData.editorCreator',_0x19bd8b=>{const _0x4cfa09=_0xb86a62['model']['document']['getRootNames']()['reduce']((_0x2dac13,_0x13019e)=>(_0x2dac13[_0x13019e]='',_0x2dac13),{});return _0xb86a62['constructor']['create'](_0x4cfa09,_0x19bd8b);}),'function'!=typeof _0xb86a62['config']['get']('trackChangesData')['editorCreator'])throw new _0x35d108('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x408d73){return N(this['editor'],!0x0,_0x408d73);}['getDataWithDiscardedSuggestions'](_0x211977){return N(this['editor'],!0x1,_0x211977);}}class D extends _0x16481a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x36f8a2){super(_0x36f8a2),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(_0x3f72be){return void 0x0!==_0x3f72be['getRootsAttributes'];}async function N(_0x428f59,_0x4eee09,_0x116487){const _0xa78ed0=_0x5870c3(_0x428f59,T);_0xa78ed0['plugins']['push'](p,D),_0xa78ed0['rootsAttributes']=v(_0x428f59)?_0x428f59['getRootsAttributes']():void 0x0;const _0x5aa678=document['createDocumentFragment'](),_0x13ae5d=_0x428f59['config']['get']('trackChangesData')['editorCreator'],_0xe32781=await _0x13ae5d(_0xa78ed0,()=>function(_0x115674){const _0x2be89f=document['createElement']('div');return _0x115674['appendChild'](_0x2be89f),_0x2be89f;}(_0x5aa678));!function(_0x4f2d25,_0x530d4c){const _0x23d4de=_0x4f2d25['model']['document']['getRootNames']()['reduce']((_0x291d2d,_0x1f82c6)=>(_0x291d2d[_0x1f82c6]=_0x4f2d25['data']['get']({'rootName':_0x1f82c6}),_0x291d2d),{}),_0x5e9efe=_0x4f2d25['plugins']['get']('Users')['users']['map'](_0xeecd64=>({'id':_0xeecd64['id'],'name':_0xeecd64['name']})),_0x3d80a9=_0x4f2d25['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21198e=_0x4f2d25['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23ea3f=_0x530d4c['plugins']['get']('Users'),_0x5037f5=_0x530d4c['plugins']['get']('TrackChangesEditing'),_0x146025=_0x530d4c['plugins']['get']('CommentsRepository');for(const _0x5bef21 of _0x5e9efe)_0x23ea3f['getUser'](_0x5bef21['id'])||_0x23ea3f['addUser'](_0x5bef21);_0x23ea3f['me']||_0x23ea3f['useAnonymousUser']();for(const _0x43e5b3 of _0x21198e)_0x146025['addCommentThread'](_0x43e5b3);for(const _0x207b4 of _0x3d80a9)_0x5037f5['addSuggestionData'](_0x207b4);_0x530d4c['data']['set'](_0x23d4de);}(_0x428f59,_0xe32781),_0xe32781['execute'](_0x4eee09?'acceptAllSuggestions':'discardAllSuggestions');const _0x4815a4=v(_0xe32781)?_0xe32781['getFullData'](_0x116487):_0xe32781['data']['get'](_0x116487);return await _0xe32781['destroy'](),_0x4815a4;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1367c6,PendingActions as _0x4c1d57,icons as _0x5d0072}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xb8c959,ObservableMixin as _0x4e1d0a,uid as _0x22411c,insertToPriorityArray as _0x22521c,priorities as _0x4d67f8,logWarning as _0x2409cd,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x28ac03,View as _0x41761a,ButtonView as _0x588b59,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x54f297,hashObject as _0x33246c,surroundingMarkersDetector as _0xd88263,trimHtml as _0x357300,UserView as _0x23d4a5,getDateTimeFormatter as _0x4ae577,getAllMarkersDomElementsSorted as _0x15c842,sanitizeEditorConfig as _0x24a4b7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x824b1a,LiveRange as _0x24837b,LivePosition as _0x12ff97}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x43bcd0,toWidget as _0xd8b030}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59444f,set as _0xc56700,isEqual as _0x2d0f6d,unset as _0x5d3be2,omit as Bt}from'lodash-es';import{Delete as _0x1726d8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x18c42d,ShiftEnter as _0x5a4f72}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4ff826,_0x226442){super(_0x4ff826),this['_enabledCommands']=_0x226442,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 _0x36e928 of this['editor']['commands']['commands']())_0x36e928['affectsData']&&!this['_enabledCommands']['has'](_0x36e928)&&_0x36e928['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ce3bb of this['editor']['commands']['commands']())_0x2ce3bb['affectsData']&&!this['_enabledCommands']['has'](_0x2ce3bb)&&_0x2ce3bb['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x3475ba,_0x4903c4){super(_0x3475ba),this['_suggestions']=_0x4903c4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2e0299){const _0x3ed1be=this['_suggestions']['get'](_0x2e0299);if(!_0x3ed1be)throw new _0xb8c959('track-changes-accept-suggestion-not-found',this);const _0x4a9175=_0x3ed1be['getRanges']();this['editor']['model']['canEditAt'](_0x4a9175)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3ed1be);}}class B extends ts{['_suggestions'];constructor(_0x367f22,_0x2bc336){super(_0x367f22),this['_suggestions']=_0x2bc336,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x145205){const _0xea4a54=this['_suggestions']['get'](_0x145205);if(!_0xea4a54)throw new _0xb8c959('track-changes-discard-suggestion-not-found',this);const _0x1ea50a=_0xea4a54['getRanges']();this['editor']['model']['canEditAt'](_0x1ea50a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xea4a54);}}function ss(_0x5a53d3){return _0x5a53d3['sort']((_0x20c706,_0x16eac3)=>'deletion'==_0x20c706['type']&&'deletion'!=_0x16eac3['type']?-0x1:'deletion'!=_0x20c706['type']&&'deletion'==_0x16eac3['type']?0x1:0x0);}function to(_0x1076bc,_0x427318){let _0x232088,_0x134854=0x0;const _0x175be7=[],_0x320b4c=_0x427318['schema'];for(;_0x134854<_0x1076bc['length'];){const _0x29c5a7=_0x1076bc[_0x134854],_0x1e77a9=_0x1076bc[_0x134854+0x1];_0x232088||(_0x232088=_0x427318['createPositionBefore'](_0x29c5a7)),co(_0x427318,_0x29c5a7,_0x1e77a9)||(_0x175be7['push'](_0x427318['createRange'](_0x232088,_0x320b4c['isObject'](_0x29c5a7)?_0x427318['createPositionAfter'](_0x29c5a7):_0x427318['createPositionAt'](_0x29c5a7,'end'))),_0x232088=null),_0x134854++;}return _0x175be7;}function co(_0xc77f7e,_0x1ded9e,_0x5deb87){if(!_0x5deb87)return!0x1;const _0x9aa921=_0xc77f7e['createPositionAfter'](_0x1ded9e),_0x39dbbd=_0xc77f7e['createPositionBefore'](_0x5deb87);return _0x9aa921['isTouching'](_0x39dbbd);}function rs(_0x534a9e,_0x38d2e1,_0x306c54){for(;_0x306c54['length'];){const _0xee198f=_0x306c54['splice'](0x0,0x64);_0x534a9e['change'](()=>{for(const _0x44e45d of _0xee198f)_0x44e45d['isInContent']&&_0x38d2e1['execute'](_0x44e45d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3cee02,_0x5ecc03,_0x2b142d){super(_0x3cee02),this['_command']=_0x5ecc03,this['_suggestions']=_0x2b142d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x560dee=Array['from'](this['_suggestions']['values']())['some'](_0x3e6dfb=>_0x3e6dfb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x560dee;}['execute'](){const _0x228a9d=ss(Array['from'](this['_suggestions']['values']()));for(const _0xf9e0e of _0x228a9d){const _0x361b81=_0xf9e0e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x361b81))return;}rs(this['editor']['model'],this['_command'],_0x228a9d);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3fb8b1,_0x3cec73,_0x15b473){super(_0x3fb8b1),this['_command']=_0x3cec73,this['_suggestions']=_0x15b473,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x485c54=this['editor']['model']['document']['selection'],_0x29b52c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10030c,_0x3969d3){const _0x522dbd=Array['from'](_0x10030c['getRanges']()),_0x440289=new Set();for(const _0x6c1d40 of _0x3969d3)if(_0x6c1d40['isInContent']){for(const _0x226717 of _0x522dbd)for(const _0x4db089 of _0x6c1d40['getRanges']())(_0x226717['isIntersecting'](_0x4db089)||_0x10030c['isCollapsed']&&!_0x6c1d40['isMultiRange']&&_0x6c1d40['next']&&_0x4db089['end']['isTouching'](_0x226717['start']))&&_0x440289['add'](_0x6c1d40);}return _0x440289;}(_0x485c54,_0x29b52c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xbebd3d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x340dde of _0xbebd3d){const _0x293528=_0x340dde['getRanges']();if(!this['editor']['model']['canEditAt'](_0x293528))return;}rs(this['editor']['model'],this['_command'],_0xbebd3d);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4e1d0a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1a20af,_0x3d4fb4){super(),this['id']=_0x3d4fb4['id'],this['type']=_0x3d4fb4['type'],this['subType']=_0x3d4fb4['subType']||null,this['author']=_0x3d4fb4['author'],this['creator']=_0x3d4fb4['creator']||_0x3d4fb4['author'],this['isExternal']=Boolean(_0x3d4fb4['attributes']&&_0x3d4fb4['attributes']['@external']),this['data']=null,this['_model']=_0x1a20af,this['_onAccept']=_0x3d4fb4['onAccept'],this['_onDiscard']=_0x3d4fb4['onDiscard'],this['_onAttributesChange']=_0x3d4fb4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d4fb4['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 _0x3a520c=this;for(;_0x3a520c['previous'];)_0x3a520c=_0x3a520c['previous'];return _0x3a520c;}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'](_0x5a15de){this['_markerNames']['add'](_0x5a15de);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x274681=>this['_model']['markers']['get'](_0x274681))['filter'](_0x1eb7ae=>_0x1eb7ae);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4bf6bf=>{for(const _0x1351a7 of this['getMarkers']())_0x4bf6bf['removeMarker'](_0x1351a7);}),this['_markerNames']['clear']();}['removeMarker'](_0x14e9ff){this['_model']['change'](_0x44b698=>{_0x44b698['removeMarker'](_0x14e9ff);}),this['_markerNames']['delete'](_0x14e9ff);}['addRange'](_0x3d5baa){const _0x3aed75='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3aed75),this['_model']['change'](_0x35bff1=>{_0x35bff1['addMarker'](_0x3aed75,{'range':_0x3d5baa,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x358147){for(const _0x3ce9f9 of this['getRanges']())if(_0x3ce9f9['isIntersecting'](_0x358147))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1e0eb5=>_0x1e0eb5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x53b73f,_0x2a50f8)=>[..._0x53b73f,..._0x2a50f8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5d9c53=this['getRanges']();if(0x1!=_0x5d9c53['length'])return null;const _0x423389=_0x5d9c53[0x0],_0x128473=_0x423389['start']['nodeAfter'],_0x55464f=_0x423389['end']['nodeBefore'];return _0x128473 instanceof _0x824b1a?_0x128473!=_0x55464f?null:_0x128473: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 _0xdc607=[];let _0x2fe009=this['head'];for(;_0x2fe009;)_0xdc607['push'](_0x2fe009),_0x2fe009=_0x2fe009['next'];return _0xdc607;}['setAttribute'](_0x2b8cb0,_0x5b03c7){const _0x13cfdd=_0x59444f(this['attributes']);_0xc56700(_0x13cfdd,_0x2b8cb0,_0x5b03c7),_0x2d0f6d(_0x13cfdd,this['attributes'])||(this['attributes']=_0x13cfdd,this['_onAttributesChange'](_0x13cfdd));}['removeAttribute'](_0x464c13){const _0x5187c6=_0x59444f(this['attributes']);_0x5d3be2(_0x5187c6,_0x464c13),_0x2d0f6d(_0x5187c6,this['attributes'])||(this['attributes']=_0x5187c6,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 _0x22411c()['substr'](0x1,0x5);}}function o(_0x508069,_0x526cf9,_0x1afca7){const t=_0x508069['t'];switch(_0x526cf9){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',_0x1afca7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1afca7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1afca7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1afca7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1afca7);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',_0x1afca7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1afca7);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',_0x1afca7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1afca7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1afca7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1afca7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1afca7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1afca7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1afca7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1afca7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1afca7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1afca7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1afca7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1afca7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1afca7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1afca7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1afca7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1afca7);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'},_0x1afca7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1afca7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1afca7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1afca7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1afca7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1afca7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1afca7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1afca7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1afca7);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'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1afca7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1afca7);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x1afca7);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'},_0x1afca7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x526cf9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x909da3,_0x28d9d0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x909da3,this['_locale']=_0x28d9d0;}['getDescriptions'](_0x42e625){const _0x15586b=[],_0x596771=new Set(),_0x525d59=new Set();for(let _0x58b4f6=0x0;_0x58b4f6<_0x42e625['length'];_0x58b4f6++){const _0x5b9624=_0x42e625[_0x58b4f6];if(!_0x5b9624['isInContent'])continue;const _0x3af495=this['_handleCustomCallbackDescription'](_0x5b9624);if(_0x3af495){if(null!=_0x5b9624['subType']){if(_0x596771['has'](_0x5b9624['subType']))continue;_0x596771['add'](_0x5b9624['subType']);}_0x15586b['push'](_0x3af495);}else{if('attribute'!=_0x5b9624['type'])'insertion'!=_0x5b9624['type']&&'deletion'!=_0x5b9624['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15586b,_0x5b9624,_0x42e625[_0x58b4f6+0x1]);else{const _0x3df241=_0x5b9624['data']['key'];if(_0x525d59['has'](_0x3df241))continue;_0x525d59['add'](_0x5b9624['data']['key']),_0x3df241==m?this['_handleRenameSuggestionDescription'](_0x15586b,_0x5b9624):this['_handleAttributeSuggestionDescription'](_0x15586b,_0x5b9624);}}}return this['_resolveDescriptionItems'](_0x15586b);}['registerDescriptionCallback'](_0x482f94){this['_customCallbacks']['push'](_0x482f94);}['registerElementLabel'](_0xb87403,_0xcc0612,_0x1e17c2=_0x4d67f8['normal']){'function'==typeof _0xb87403?_0x22521c(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb87403,'label':_0xcc0612,'priority':_0x1e17c2}):this['_itemLabels']['set'](_0xb87403,_0xcc0612);}['registerAttributeLabel'](_0x20b345,_0x1bc072){this['_attributeLabels']['set'](_0x20b345,_0x1bc072);}['getItemLabel'](_0x3a7678,_0x499bb5=0x1){let _0x2ea283;for(const _0x4d21f of this['_itemLabelsCallbacks'])if(_0x4d21f['matchingCallback'](_0x3a7678)){_0x2ea283=_0x4d21f['label'];break;}return _0x2ea283||(_0x2ea283=this['_itemLabels']['get'](_0x3a7678['name'])),_0x2ea283?_0x2ea283(_0x499bb5):0x1!==_0x499bb5?_0x499bb5+'\x20'+_0x3a7678['name']+'s':''+_0x3a7678['name'];}['_addDescriptionItems'](_0x36e3ab,_0x845ffb){const _0x53886f=_0x845ffb['getFirstRange']()['getWalker'](),_0x3f090c='insertion'==_0x845ffb['type']?'add':'remove';for(const _0x4e7867 of _0x53886f){const _0x10312f=_0x4e7867['item'],_0x12fd23=_0x36e3ab[_0x36e3ab['length']-0x1];if(_0x10312f['is']('$textProxy'))_0x12fd23&&_0x12fd23['type']['indexOf']('Container')>-0x1&&_0x36e3ab['pop'](),_0x12fd23&&'text'==_0x12fd23['type']?_0x12fd23[_0x3f090c]+=_0x10312f['data']:_0x36e3ab['push']({'type':'text','add':'add'==_0x3f090c?_0x10312f['data']:'','remove':'remove'==_0x3f090c?_0x10312f['data']:''});else{if(this['_schema']['isObject'](_0x10312f)){const _0x39ff7b=_0x10312f;if(_0x12fd23&&_0x12fd23['type']['indexOf']('Container')>-0x1&&_0x36e3ab['pop'](),'elementEnd'==_0x4e7867['type'])continue;_0x12fd23&&_0x12fd23['type']==_0x3f090c+'Object'&&_0x12fd23['element']['name']==_0x39ff7b['name']?_0x12fd23['quantity']++:_0x36e3ab['push']({'type':_0x3f090c+'Object','element':_0x39ff7b,'quantity':0x1}),_0x53886f['skip'](_0x117a42=>!('elementEnd'==_0x117a42['type']&&_0x117a42['item']==_0x10312f));}else{if(this['_schema']['checkChild'](_0x10312f,'$text')||_0x10312f['is']('element','softBreak')){const _0x199e04=_0x10312f;if('add'==_0x3f090c&&'elementStart'==_0x4e7867['type']||'remove'==_0x3f090c&&'elementEnd'==_0x4e7867['type'])continue;if(_0x12fd23&&-0x1==_0x12fd23['type']['indexOf']('Container')){'text'==_0x12fd23['type']&&(_0x12fd23[_0x3f090c]+='\x0a');continue;}let _0x4e9bc0;if(_0x4e9bc0='add'==_0x3f090c?_0x199e04['nextSibling']&&!this['_schema']['isObject'](_0x199e04['nextSibling'])?_0x199e04['nextSibling']:null:_0x199e04['previousSibling']&&!this['_schema']['isObject'](_0x199e04['previousSibling'])?_0x199e04['previousSibling']:null,_0x199e04['isEmpty']||_0x4e9bc0&&_0x4e9bc0['isEmpty']){const _0x78a3d6=_0x4e9bc0&&_0x4e9bc0['isEmpty']?_0x4e9bc0:_0x199e04;_0x12fd23&&_0x12fd23['type']==_0x3f090c+'EmptyContainer'&&_0x12fd23['element']['name']==_0x78a3d6['name']?_0x12fd23['quantity']++:_0x36e3ab['push']({'type':_0x3f090c+'EmptyContainer','element':_0x78a3d6,'quantity':0x1});}else _0x36e3ab['push']({'type':_0x3f090c+'Container','element':_0x199e04});}}}}}['_resolveDescriptionItems'](_0x24cf41){const _0x577d2c=this['_locale'],_0x4bfdac=[],_0x7ba86=[],_0x342115=[];for(const _0x41ddcc of _0x24cf41)switch(_0x41ddcc['type']){case'text':if(_0x41ddcc['add']=_0x41ddcc['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x41ddcc['remove']=_0x41ddcc['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x41ddcc['add']&&''!=_0x41ddcc['remove']){_0x4bfdac['push']({'type':'replace','content':o(_0x577d2c,'REPLACE_TEXT',['\x22'+_0x41ddcc['remove']+'\x22','\x22'+_0x41ddcc['add']+'\x22'])});continue;}if(null!=_0x41ddcc['add']['match'](/^ +$/)){_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Insert:*\x20%0',o(_0x577d2c,'ELEMENT_SPACE',_0x41ddcc['add']['length']))});continue;}if(null!=_0x41ddcc['remove']['match'](/^ +$/)){_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Remove:*\x20%0',o(_0x577d2c,'ELEMENT_SPACE',_0x41ddcc['remove']['length']))});continue;}if(''!=_0x41ddcc['add']){_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Insert:*\x20%0','\x22'+_0x41ddcc['add']+'\x22')});continue;}_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Remove:*\x20%0','\x22'+_0x41ddcc['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Insert:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Remove:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'addContainer':_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Split:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'removeContainer':_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Merge:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'addFormat':_0x7ba86['push'](_0x41ddcc['key']);continue;case'removeFormat':_0x342115['push'](_0x41ddcc['key']);continue;default:_0x4bfdac['push'](_0x41ddcc);}if(_0x7ba86['length']){const _0x2ef6d9=_0x7ba86['map'](_0x556603=>this['_attributeLabels']['has'](_0x556603)?this['_attributeLabels']['get'](_0x556603):_0x556603)['join'](',\x20');_0x4bfdac['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ef6d9)});}if(_0x342115['length']){const _0x19003f=_0x342115['map'](_0x26c978=>this['_attributeLabels']['has'](_0x26c978)?this['_attributeLabels']['get'](_0x26c978):_0x26c978)['join'](',\x20');_0x4bfdac['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x19003f)});}return _0x4bfdac;}['_handleCustomCallbackDescription'](_0x3d0429){for(const _0x4b5e57 of this['_customCallbacks']){const _0x45c40e=_0x4b5e57(_0x3d0429);if(_0x45c40e&&'type'in _0x45c40e)return _0x45c40e;}}['_handleAttributeSuggestionDescription'](_0x160cf2,_0x27c4c7){const _0x334f2b=_0x27c4c7['data'],_0x54e44a=void 0x0===_0x334f2b['newValue']?'removeFormat':'addFormat';_0x160cf2['push']({'type':_0x54e44a,'key':_0x334f2b['key']});}['_handleRenameSuggestionDescription'](_0x5d25f0,_0x37016c){_0x5d25f0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x37016c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5335e0,_0x522bec,_0x516fb4){if(this['_addDescriptionItems'](_0x5335e0,_0x522bec),_0x516fb4&&_0x516fb4['getFirstRange']()&&!_0x522bec['getFirstRange']()['end']['isEqual'](_0x516fb4['getFirstRange']()['start'])){const _0x329ae1=_0x5335e0[_0x5335e0['length']-0x1],_0x4c6834='insertion'==_0x522bec['type']?'add':'remove';_0x329ae1&&'text'==_0x329ae1['type']&&(_0x329ae1[_0x4c6834]+='\x0a');}}}class E extends _0x1367c6{['afterInit'](){const _0x1d6b75=this['editor'],_0x2daa1a=_0x1d6b75['plugins']['get']('TrackChangesEditing');_0x1d6b75['commands']['get']('showAIAssistant')&&_0x2daa1a['enableCommand']('showAIAssistant');}}class V extends _0x1367c6{['afterInit'](){const _0x54526a=this['editor'],_0x39fdc5=_0x54526a['locale'];if(!_0x54526a['plugins']['has']('AlignmentEditing'))return;const _0x5d9c2d=_0x54526a['plugins']['get']('TrackChangesEditing');_0x5d9c2d['enableDefaultAttributesIntegration']('alignment'),_0x5d9c2d['registerBlockAttribute']('alignment'),_0x5d9c2d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x39fdc5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56750e=this['editor'],_0x1575b0=_0x56750e['locale'];_0x56750e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ae4ff=>{if('formatBlock'!=_0x2ae4ff['type'])return;const {data:_0x139e5b}=_0x2ae4ff;if(_0x139e5b&&'alignment'==_0x139e5b['commandName']){const _0x2ccd14=_0x139e5b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1575b0,'*Format:*\x20%0',function(_0x59efcc){switch(_0x59efcc){case'left':return o(_0x1575b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1575b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1575b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1575b0,'FORMAT_JUSTIFY_TEXT');}}(_0x2ccd14))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1367c6{['afterInit'](){const _0x3400b1=this['editor'],_0x67b65c=_0x3400b1['plugins']['get']('TrackChangesEditing'),_0xe4245e=_0x3400b1['locale'];for(const _0x5728a4 of ti){if(!_0x3400b1['plugins']['has'](_0x5728a4))continue;const _0x31e91d=_0x5728a4['slice'](0x0,-0x7)['toLowerCase'](),_0x1e3f06='FORMAT_'+_0x31e91d['toUpperCase']();_0x67b65c['enableDefaultAttributesIntegration'](_0x31e91d),_0x67b65c['registerInlineAttribute'](_0x31e91d),_0x67b65c['descriptionFactory']['registerAttributeLabel'](_0x31e91d,o(_0xe4245e,_0x1e3f06));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x741b9c=this['editor'],_0x38195f=_0x741b9c['locale'],_0x57065a=_0x741b9c['plugins']['get']('TrackChangesEditing');function _0x39a8cf(_0x14c5fc,_0x19eaaf){_0x57065a['descriptionFactory']['registerDescriptionCallback'](_0x1a610b=>{if('formatInline'!=_0x1a610b['type'])return;const {data:_0x207bc6}=_0x1a610b;return _0x207bc6&&_0x207bc6['commandName']===_0x14c5fc?_0x207bc6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38195f,'*Format:*\x20%0',_0x19eaaf)}:{'type':'format','content':o(_0x38195f,'*Remove\x20format:*\x20%0',_0x19eaaf)}:void 0x0;});}_0x39a8cf('bold',o(_0x38195f,'FORMAT_BOLD')),_0x39a8cf('italic',o(_0x38195f,'FORMAT_ITALIC')),_0x39a8cf('underline',o(_0x38195f,'FORMAT_UNDERLINE')),_0x39a8cf('code',o(_0x38195f,'FORMAT_CODE')),_0x39a8cf('strikethrough',o(_0x38195f,'FORMAT_STRIKETHROUGH')),_0x39a8cf('subscript',o(_0x38195f,'FORMAT_SUBSCRIPT')),_0x39a8cf('superscript',o(_0x38195f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1367c6{['afterInit'](){const _0x24b426=this['editor'],_0x389840=_0x24b426['locale'];if(!_0x24b426['plugins']['has']('BlockQuoteEditing'))return;const _0x5d7641=_0x24b426['plugins']['get']('TrackChangesEditing'),_0x30ac8d=this['editor']['commands']['get']('blockQuote');_0x5d7641['enableCommand']('blockQuote',(_0x33c8d0,_0x18bb99={})=>{const _0x349f71=this['editor']['model']['document']['selection'],_0x147b04=_0x18bb99&&void 0x0!==_0x18bb99['forceValue']?_0x18bb99['forceValue']:!_0x30ac8d['value'];let _0x241738=[];if(_0x147b04){const _0x21e4ab=Array['from'](_0x349f71['getSelectedBlocks']())['filter'](_0x5be7f5=>oo(_0x5be7f5)||function(_0x4bba75,_0x5de1d7){const _0x23230c=_0x5de1d7['checkChild'](_0x4bba75['parent'],'blockQuote'),_0x5cef31=_0x5de1d7['checkChild'](['$root','blockQuote'],_0x4bba75);return _0x23230c&&_0x5cef31;}(_0x5be7f5,this['editor']['model']['schema']));_0x241738=to(_0x21e4ab,_0x24b426['model']);}else{const _0x27eaf9=Array['from'](_0x349f71['getSelectedBlocks']())['filter'](_0x2330be=>oo(_0x2330be));_0x241738=to(_0x27eaf9,_0x24b426['model']);}_0x24b426['model']['change'](()=>{for(const _0x1e84a6 of _0x241738)_0x5d7641['markBlockFormat'](_0x1e84a6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x147b04}]});});}),_0x5d7641['descriptionFactory']['registerDescriptionCallback'](_0x3f44e6=>{const {data:_0x20174d}=_0x3f44e6;if(_0x20174d&&'blockQuote'==_0x20174d['commandName']){const _0x199eba=o(_0x389840,'ELEMENT_BLOCK_QUOTE');return _0x20174d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x389840,'*Set\x20format:*\x20%0',_0x199eba)}:{'type':'format','content':o(_0x389840,'*Remove\x20format:*\x20%0',_0x199eba)};}});}}function oo(_0x1f0466){return'blockQuote'==_0x1f0466['parent']['name'];}class G extends _0x1367c6{['afterInit'](){const _0x192e91=this['editor'];_0x192e91['plugins']['has']('CaseChange')&&(_0x192e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x192e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x192e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1367c6{['afterInit'](){const _0x6dc4fa=this['editor'];_0x6dc4fa['commands']['get']('ckbox')&&_0x6dc4fa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1367c6{['afterInit'](){const _0x1aba8f=this['editor'];if(!_0x1aba8f['plugins']['has']('CodeBlock'))return;const _0x595734=_0x1aba8f['plugins']['get']('TrackChangesEditing'),_0x33da1e=_0x1aba8f['locale'],_0x50b483=_0x1aba8f['config']['get']('codeBlock')['languages'],_0xd4c1b6=_0x1aba8f['commands']['get']('codeBlock');_0x595734['enableCommand']('indentCodeBlock'),_0x595734['enableCommand']('outdentCodeBlock'),_0x595734['enableCommand']('codeBlock',(_0x474dd0,_0x48a2c8={})=>{const _0x4b63d5=_0x1aba8f['model'],_0x117de4=_0x1aba8f['model']['document']['selection'],_0x5757cc=_0x48a2c8&&void 0x0!==_0x48a2c8['forceValue']?_0x48a2c8['forceValue']:!_0xd4c1b6['value'];let _0x35c480;_0x48a2c8['language']||(_0x48a2c8['language']=_0x50b483[0x0]['language']),_0x35c480=_0x5757cc?Array['from'](_0x117de4['getSelectedBlocks']())['filter'](_0x70f89f=>eo(_0x70f89f)||function(_0x1b7f91,_0xc81011){if(_0x1b7f91['is']('rootElement')||_0xc81011['isLimit'](_0x1b7f91))return!0x1;return _0xc81011['checkChild'](_0x1b7f91['parent'],'codeBlock');}(_0x70f89f,_0x4b63d5['schema'])):Array['from'](_0x117de4['getSelectedBlocks']())['filter'](_0x175958=>eo(_0x175958));const _0x159415=to(_0x35c480,_0x4b63d5);_0x4b63d5['change'](()=>{for(const _0xe2e93d of _0x159415)_0x595734['markBlockFormat'](_0xe2e93d,{'commandName':'codeBlock','commandParams':[{..._0x48a2c8,'forceValue':_0x5757cc}],'formatGroupId':'blockName'});});}),(_0x595734['descriptionFactory']['registerElementLabel']('codeBlock',_0x346776=>o(_0x33da1e,'ELEMENT_CODE_BLOCK',_0x346776)),_0x595734['descriptionFactory']['registerDescriptionCallback'](_0x25f97f=>{if('formatBlock'!=_0x25f97f['type'])return;const _0x175089=_0x33da1e['t'],{data:_0xec8c5d}=_0x25f97f;if(!_0xec8c5d||'codeBlock'!=_0xec8c5d['commandName'])return;const _0x14d6e4=_0xec8c5d['commandParams'][0x0]['language'],_0xe6bf26=_0x175089(_0x50b483['find'](_0x574791=>_0x574791['language']===_0x14d6e4)['label'])['toLowerCase']();return _0xec8c5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33da1e,'*Set\x20format:*\x20%0',o(_0x33da1e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe6bf26+')')}:{'type':'format','content':o(_0x33da1e,'*Remove\x20format:*\x20%0',o(_0x33da1e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x28edc4){return'codeBlock'==_0x28edc4['name'];}class H extends _0x1367c6{['afterInit'](){const _0x1bbce2=this['editor'];if(!_0x1bbce2['plugins']['has']('CommentsEditing'))return;_0x1bbce2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x184b43,_0x1f14e3,_0x5ecb2d){const _0x5d60c6=[];for(const _0x322f56 of _0x1f14e3['getItems']())_0x322f56['hasAttribute'](_0x184b43)&&_0x5d60c6['push'](_0x5ecb2d['createRangeOn'](_0x322f56));return _0x5d60c6;}function _e(_0x42c21d,_0x2cecb5,{showActiveMarker:_0x5a60ac=!0x0}={}){const _0x34e4ff=_0x42c21d['plugins']['get']('TrackChangesEditing');return(_0x10cf83,_0x49515f,_0x3ad359)=>{if(!_0x3ad359['consumable']['test'](_0x49515f['markerRange'],_0x10cf83['name']))return;const _0x47b679=_0x49515f['markerRange']['getWalker'](),_0x2b1b83=_0x49515f['markerRange']['start'],_0xf06c75=_0x42c21d['model']['schema'];let _0x2f2ce2=null,_0x2dc29d=null,_0x522af2=!0x1,_0x415197=!0x1;for(const _0x37172e of _0x47b679){const _0x3b685c=_0x37172e['item'];_0x522af2=_0x522af2||_0xf06c75['isContent'](_0x3b685c);const _0x1b7f62=_0x3ad359['mapper']['toViewElement'](_0x3b685c);if(_0x1b7f62&&_0x1b7f62['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37172e['type']&&(_0xf06c75['isBlock'](_0x3b685c)&&!_0xf06c75['isLimit'](_0x3b685c)&&(_0x3b685c['nextSibling']||_0x2b1b83['isAtEnd']?_0x2f2ce2&&_0x2f2ce2['parent']==_0x3b685c||(_0x2f2ce2=_0x3b685c,_0x11d7b5(_0x37172e['previousPosition']),_0x415197=!0x0):_0x2dc29d=_0x2dc29d||_0x37172e['previousPosition']));}function _0x11d7b5(_0x21d2b3){const _0x2aaaee=_0x3ad359['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cecb5}),_0x1a962d=_0x3ad359['mapper']['toViewPosition'](_0x21d2b3);_0x5a60ac&&_0x34e4ff['activeMarkers']['includes'](_0x49515f['markerName'])&&_0x3ad359['writer']['addClass']('ck-suggestion-marker--active',_0x2aaaee),_0x3ad359['writer']['insert'](_0x1a962d,_0x2aaaee),_0x3ad359['mapper']['bindElementToMarker'](_0x2aaaee,_0x49515f['markerName']);}_0x522af2||_0x415197||!_0x2dc29d||_0x11d7b5(_0x2dc29d);};}class q extends _0x1367c6{static get['requires'](){return[_0x1726d8];}['init'](){const _0x352ff0=this['editor'],_0x348a9c=_0x352ff0['plugins']['get']('TrackChangesEditing');_0x348a9c['enableCommand']('delete');const _0x22ffd8=_0x352ff0['commands']['get']('deleteForward');_0x348a9c['enableCommand']('deleteForward',(_0x109d30,_0x412bd5={})=>{const _0x2fb528=_0x352ff0['model']['createSelection'](_0x352ff0['model']['document']['selection']);_0x2fb528['isCollapsed']&&_0x352ff0['model']['modifySelection'](_0x2fb528,{'direction':'forward','unit':_0x412bd5['unit']});const _0xa937d4=_0x2fb528['getFirstRange'](),_0xcc54cc=_0x24837b['fromRange'](_0xa937d4);let _0x248e1d;_0x109d30(_0x412bd5),_0x248e1d='$graveyard'==_0xcc54cc['root']['rootName']?_0x352ff0['model']['createRange'](_0xa937d4['start']):_0x352ff0['model']['createRange'](_0xcc54cc['start'],_0xcc54cc['end']),_0xcc54cc['detach'](),_0x352ff0['model']['enqueueChange'](_0x22ffd8['buffer']['batch'],_0x5c7cbb=>{_0x22ffd8['buffer']['lock'](),_0x5c7cbb['setSelection'](_0x5c7cbb['createRange'](_0x248e1d['end'])),_0x22ffd8['buffer']['unlock']();});}),_0x352ff0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x352ff0,'merge'),{'priority':'high'}),_0x352ff0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bd810,_0x12232b,_0x1aae4a)=>{_0x1aae4a['options']['showSuggestionHighlights']&&_e(_0x352ff0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1bd810,_0x12232b,_0x1aae4a);},{'priority':'high'}),_0x352ff0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42dae2,_0x59bf47,_0x397746)=>{const _0x2efc40=_0x397746['mapper']['markerNameToElements'](_0x59bf47['markerName']);if(_0x2efc40){for(const _0x4b338e of _0x2efc40)_0x4b338e['is']('uiElement')&&(_0x397746['mapper']['unbindElementFromMarkerName'](_0x4b338e,_0x59bf47['markerName']),_0x397746['writer']['remove'](_0x4b338e));}},{'priority':'high'});}}class z extends _0x1367c6{['afterInit'](){const _0x551c0c=this['editor'];if(!_0x551c0c['plugins']['has']('ListEditing'))return;const _0x502f0c=_0x551c0c['locale'],_0x156cb8=_0x551c0c['plugins']['get']('TrackChangesEditing'),_0x10360e=_0x551c0c['plugins']['has']('TodoListEditing'),_0x475b5d=!!_0x551c0c['config']['get']('list.multiBlock');function _0x3c0d64(_0x57ca8e){return{'type':'format','content':''+o(_0x502f0c,'*Set\x20format:*\x20%0',_0x57ca8e)};}function _0x1ca058(_0x5209b0){return{'type':'format','content':''+o(_0x502f0c,'*Remove\x20format:*\x20%0',_0x5209b0)};}_0x156cb8['enableDefaultAttributesIntegration']('numberedList'),_0x156cb8['enableDefaultAttributesIntegration']('bulletedList'),_0x156cb8['enableDefaultAttributesIntegration']('customNumberedList'),_0x156cb8['enableDefaultAttributesIntegration']('customBulletedList'),_0x156cb8['enableDefaultAttributesIntegration']('indentList'),_0x156cb8['enableDefaultAttributesIntegration']('outdentList'),_0x156cb8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x156cb8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x156cb8['registerBlockAttribute']('listItemId'),_0x156cb8['registerBlockAttribute']('listType'),_0x156cb8['registerBlockAttribute']('listIndent'),_0x475b5d&&(_0x156cb8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x156cb8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x10360e&&(_0x156cb8['enableDefaultAttributesIntegration']('todoList'),_0x156cb8['enableDefaultAttributesIntegration']('checkTodoList'),_0x156cb8['registerBlockAttribute']('todoListChecked'),_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x5a2741=>{const {data:_0x23d329}=_0x5a2741;if(_0x23d329&&'todoListChecked'==_0x23d329['key'])return{'type':'format','content':_0x23d329['newValue']?o(_0x502f0c,'*Check\x20item*'):o(_0x502f0c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x951eb1=>{if(_0x951eb1['batch']['isUndo'])return!0x1;let _0x373721=!0x1;const _0x2bdbb2=_0x156cb8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351789=>'todoListChecked'===_0x156cb8['_getAttributeKey'](_0x351789));for(const _0x3b6a7b of _0x2bdbb2){'todo'!=_0x3b6a7b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x156cb8['_findSuggestions'](_0x3b6a7b['getFirstRange'](),'attribute')['find'](_0x502a5f=>'listType'===_0x156cb8['_getAttributeKey'](_0x502a5f['suggestion']))||(_0x951eb1['removeMarker'](_0x3b6a7b['getFirstMarker']()),_0x373721=!0x0));}return _0x373721;})),_0x156cb8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x502f0c,'FORMAT_INDENT'));const _0x5cccc2={'type':'format','content':''};_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x529bca=>{const {data:_0x22a148}=_0x529bca;if(!_0x22a148||'listType'!=_0x22a148['key'])return;let _0x1fcb67=_0x529bca['head'];for(;_0x1fcb67;){if(_0x1fcb67['data']&&(('listStyle'==_0x1fcb67['data']['key']||'listMarkerStyle'==_0x1fcb67['data']['key'])&&(_0x1fcb67['data']['newValue']&&'default'!=_0x1fcb67['data']['newValue']||'default'!=_0x1fcb67['data']['oldValue']&&!_0x22a148['newValue'])||!_0x475b5d&&_0x1fcb67['data']['key']==m))return _0x5cccc2;_0x1fcb67=_0x1fcb67['next'];}if(null==_0x22a148['newValue'])switch(_0x22a148['oldValue']){case'bulleted':return _0x1ca058(o(_0x502f0c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ca058(o(_0x502f0c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ca058(o(_0x502f0c,'ELEMENT_TODO_LIST'));}switch(_0x22a148['newValue']){case'bulleted':return _0x3c0d64(o(_0x502f0c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c0d64(o(_0x502f0c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c0d64(o(_0x502f0c,'ELEMENT_TODO_LIST'));}}),_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x4e87f5=>{const {data:_0x4cf357}=_0x4e87f5;if(_0x4cf357&&'listIndent'==_0x4cf357['key'])return null==_0x4cf357['newValue']||null==_0x4cf357['oldValue']&&0x0==_0x4cf357['newValue']?_0x5cccc2:void 0x0;}),_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x193520=>{if('attribute'!=_0x193520['type'])return;const {data:_0xdc1cd5}=_0x193520;if(!_0xdc1cd5||'listItemId'!=_0xdc1cd5['key'])return;const _0x554fb=le(_0x193520);return'newValue'==_0x554fb?{'type':'format','content':o(_0x502f0c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x554fb?{'type':'format','content':o(_0x502f0c,'*Split:*\x20list\x20item')}:_0x5cccc2;}),_0x551c0c['model']['document']['registerPostFixer'](_0x46eb05=>this['listItemIdFixer'](_0x46eb05)),_0x551c0c['model']['document']['registerPostFixer'](_0x530848=>this['noTrackChangesFixer'](_0x530848)),_0x551c0c['model']['document']['registerPostFixer'](_0xeb1cfd=>this['assureChains'](_0xeb1cfd)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x48e41c){if(_0x48e41c['batch']['isUndo']||!_0x48e41c['batch']['isLocal'])return!0x1;let _0x409123=!0x1;const _0x56b3c2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dbc0e=>_0x1dbc0e['data']&&'listItemId'==_0x1dbc0e['data']['key'])['filter'](_0xd2412e=>_0xd2412e['data']['newValue']&&_0xd2412e['data']['oldValue']);for(const _0x1a8dae of _0x56b3c2)le(_0x1a8dae)||(_0x48e41c['removeMarker'](_0x1a8dae['getFirstMarker']()),_0x409123=!0x0);return _0x409123;}['noTrackChangesFixer'](_0x51efa4){if(_0x51efa4['batch']['isUndo']||!_0x51efa4['batch']['isLocal'])return!0x1;const _0x3b6956=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3b6956['trackChangesCommand']['value'])return!0x1;let _0x157d19=!0x1;const _0x506b33=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5275a6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf87a6=>'attribute'==_0xf87a6['type'])['filter'](_0x12daf1=>_0x506b33['includes'](_0x12daf1['attributeKey']));if(0x0==_0x5275a6['length'])return _0x157d19;for(const _0x4c2991 of _0x5275a6){const _0x12c402=_0x3b6956['_findSuggestions'](_0x4c2991['range'],'attribute')['filter'](_0x5b83f0=>!_0x5b83f0['meta']['isNextTo'])['map'](_0x382a66=>_0x382a66['suggestion'])['filter'](_0x25d270=>{const _0x10c2f0=_0x3b6956['_getAttributeKey'](_0x25d270);return _0x506b33['includes'](_0x10c2f0);});if(_0x12c402['length']){for(const _0x55902c of _0x12c402)_0x51efa4['removeMarker'](_0x55902c['getFirstMarker']());_0x157d19=!0x0;}}return _0x157d19;}['assureChains'](_0x18d446){if(_0x18d446['batch']['isUndo']||!_0x18d446['batch']['isLocal'])return!0x1;const _0x6805b3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x25cb56=!0x1;const _0x3e067c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x491647 of _0x6805b3['getSuggestions']({'skipNotAttached':!0x0})){const _0x3eb1c6=_0x6805b3['_findSuggestions'](_0x491647['getFirstRange'](),'attribute')['map'](_0x25da16=>_0x25da16['suggestion'])['filter'](_0x309d0=>_0x309d0['data']&&_0x3e067c['includes'](_0x309d0['data']['key']));if(!_0x3eb1c6['length'])continue;const _0x7ba7d=_0x3eb1c6[0x0]['head']['attributes']['groupId'];if(!_0x3eb1c6['every'](_0x49237e=>_0x49237e['attributes']['groupId']===_0x7ba7d)){for(const _0xcc330b of _0x3eb1c6)_0x4a454a(_0xcc330b,_0x7ba7d)&&(_0x25cb56=!0x0);}}return _0x25cb56;function _0x133bf5(_0x5ba984,_0x204e99){for(const _0x322a5c of _0x6805b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7f5243=>'attribute'==_0x7f5243['type']&&_0x7f5243['attributes']['groupId']==_0x5ba984))_0x322a5c['setAttribute']('groupId',_0x204e99);}function _0x4a454a(_0x1a84f1,_0x45ad3d){let _0x2ca4ed=_0x1a84f1['head'],_0x3da327=!0x1;for(;_0x2ca4ed;)_0x2ca4ed['attributes']['groupId']!=_0x45ad3d&&(_0x133bf5(_0x2ca4ed['attributes']['groupId'],_0x45ad3d),_0x2ca4ed['setAttribute']('groupId',_0x45ad3d),_0x3da327=!0x0),_0x2ca4ed=_0x2ca4ed['next'];return _0x3da327;}}['_supportLegacySuggestions'](){const _0xabcc30=this['editor'],_0x1c43e0=_0xabcc30['locale'],_0x2fd10d=_0xabcc30['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2fd10d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xabb132,_0xd3527a){const _0x23f666=[];for(let _0x2633c8 of _0xabb132)_0x2633c8['start']['nodeAfter']===_0x2633c8['end']['parent']&&(_0x2633c8=_0xabcc30['model']['createRange'](_0xabcc30['model']['createPositionAt'](_0x2633c8['start']['nodeAfter'],0x0))),_0x23f666['push'](_0x2633c8);_0xabcc30['model']['change'](_0x347dd5=>{const _0x15cbf4=_0xabcc30['model']['document']['selection'],_0x38823d=Array['from'](_0x15cbf4['getRanges']())['map'](_0x40fa9f=>_0x24837b['fromRange'](_0x40fa9f));_0x347dd5['setSelection'](_0x23f666),_0xabcc30['commands']['get'](_0xd3527a['commandName'])['refresh'](),_0xd3527a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xabcc30['execute'](_0xd3527a['commandName'],..._0xd3527a['commandParams']),_0x347dd5['setSelection'](_0x38823d);for(const _0x32efff of _0x38823d)_0x32efff['detach']();});}),_0x2fd10d['descriptionFactory']['registerElementLabel'](function(_0x3e4bea){const _0x47fa81=!_0xabcc30['model']['schema']['isObject'](_0x3e4bea),_0x1e7af8=_0x3e4bea['previousSibling'],_0x5ce95d=_0x3e4bea['nextSibling'],_0x439abb=_0x3e4bea['getAttribute']('listItemId'),_0x3a989e=!_0x1e7af8||_0x1e7af8['getAttribute']('listItemId')!==_0x439abb,_0x3364a9=!_0x5ce95d||_0x5ce95d['getAttribute']('listItemId')!==_0x439abb;return _0x47fa81&&Boolean(_0x439abb)&&_0x3a989e&&_0x3364a9;},_0xb9950a=>o(_0x1c43e0,'ELEMENT_LIST_ITEM',_0xb9950a));}['_registerLegacyDescription'](){const _0x2e4d59=this['editor'],_0x397eda=_0x2e4d59['locale'];function _0x2832c6(_0x243d65){const _0x313812=_0x2e4d59['commands']['get']('bulletedList')['value'],_0x435ad5=_0x2e4d59['commands']['get']('numberedList')['value'];return'numberedList'===_0x243d65?_0x313812:_0x435ad5;}_0x2e4d59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x152be9){if('formatBlock'!=_0x152be9['type'])return;const {data:_0xcbf9ca}=_0x152be9;if(!_0xcbf9ca)return;let _0x558c29,_0x54ea47,_0x31d201,_0x11aa59;switch(_0xcbf9ca['commandName']){case'bulletedList':_0x31d201=_0xcbf9ca['commandParams'][0x0]['forceValue'],_0x11aa59=_0x2832c6(_0xcbf9ca['commandName']),_0x558c29=_0x31d201?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11aa59&&_0x2e4d59['config']['get']('list.multiBlock')||(_0x558c29='*Change\x20to:*\x20%0'),_0x54ea47={'type':'format','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x31d201=_0xcbf9ca['commandParams'][0x0]['forceValue'],_0x11aa59=_0x2832c6(_0xcbf9ca['commandName']),_0x558c29=_0x31d201?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11aa59&&_0x2e4d59['config']['get']('list.multiBlock')||(_0x558c29='*Change\x20to:*\x20%0'),_0x54ea47={'type':'format','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x558c29='*Indent:*\x20%0',_0x54ea47={'type':'format','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x558c29=function(_0x3d0349){const _0x406253=_0x3d0349['getFirstRange']();let _0x18ebfd=_0x406253['start']['nodeAfter'];for(;_0x18ebfd&&_0x406253['containsItem'](_0x18ebfd);){if(_0x18ebfd['getAttribute']('listIndent')>0x0)return!0x1;_0x18ebfd=_0x18ebfd['nextSibling'];}return!0x0;}(_0x152be9)?o(_0x397eda,'*Format:*\x20remove\x20from\x20%0',o(_0x397eda,function(_0x29e7ab){return'ELEMENT_'+_0x29e7ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x152be9))):o(_0x397eda,'*Outdent:*\x20%0',o(_0x397eda,'ELEMENT_LIST_ITEM')),_0x54ea47={'type':'format','content':_0x558c29};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xcbf9ca['multipleBlocks']&&(_0x558c29='*Merge:*\x20%0',_0x54ea47={'type':'deletion','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_LIST_ITEM'))});}return _0x54ea47;});}}function le(_0x4cb9c0){let _0x232afc=_0x4cb9c0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x232afc;){const _0x4177cd=_0x232afc['getAttribute']('listItemId');if(!_0x4177cd)return!0x1;if(_0x4177cd==_0x4cb9c0['data']['newValue'])return'newValue';if(_0x4177cd==_0x4cb9c0['data']['oldValue'])return'oldValue';_0x232afc=_0x232afc['previousSibling'];}return!0x1;}class ue extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x529ba6=this['editor']['config']['get']('list.properties'),_0x2d03d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x529ba6['styles']&&(_0x2d03d7['enableDefaultAttributesIntegration']('listStyle'),_0x2d03d7['registerBlockAttribute']('listStyle')),_0x529ba6['reversed']&&(_0x2d03d7['enableDefaultAttributesIntegration']('listReversed'),_0x2d03d7['registerBlockAttribute']('listReversed')),_0x529ba6['startIndex']&&(_0x2d03d7['enableDefaultAttributesIntegration']('listStart'),_0x2d03d7['registerBlockAttribute']('listStart'));const _0x6044f9={'type':'format','content':''};_0x2d03d7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x148dab=this['editor']['locale'];_0x2d03d7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x148dab,'FORMAT_LIST_REVERSED')),_0x2d03d7['descriptionFactory']['registerDescriptionCallback'](_0x526d1d=>{const {data:_0x3d3af4}=_0x526d1d;if(_0x3d3af4&&'listReversed'==_0x3d3af4['key'])return null==_0x3d3af4['newValue']||0x0==_0x3d3af4['newValue']&&null==_0x3d3af4['oldValue']?_0x6044f9:void 0x0;}),_0x2d03d7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x148dab,'FORMAT_LIST_START')),_0x2d03d7['descriptionFactory']['registerDescriptionCallback'](_0x5d7702=>{const {data:_0x52bd71}=_0x5d7702;if(_0x52bd71&&'listStart'==_0x52bd71['key'])return null==_0x52bd71['newValue']||0x1==_0x52bd71['newValue']&&null==_0x52bd71['oldValue']?_0x6044f9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ecc86=>{if(_0x1ecc86['batch']['isUndo'])return!0x1;let _0x34d5e7=!0x1;const _0x28f998=_0x2d03d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4be261=>{const _0x4bd99f=_0x2d03d7['_getAttributeKey'](_0x4be261);return'listStart'==_0x4bd99f||'listReversed'==_0x4bd99f;});for(const _0x5be473 of _0x28f998){const _0x27eb60=_0x5be473['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27eb60||'customNumbered'==_0x27eb60)continue;_0x2d03d7['_findSuggestions'](_0x5be473['getFirstRange'](),'attribute')['find'](_0x4daad4=>'listType'==_0x2d03d7['_getAttributeKey'](_0x4daad4['suggestion']))||(_0x1ecc86['removeMarker'](_0x5be473['getFirstMarker']()),_0x34d5e7=!0x0);}return _0x34d5e7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b3110){const _0x29f893=this['editor']['locale'],{data:_0x1ef9d6}=_0x2b3110,_0x42818d={'type':'format','content':''};if(!_0x1ef9d6||'listStyle'!=_0x1ef9d6['key'])return;if(!_0x1ef9d6['oldValue'])return'default'==_0x1ef9d6['newValue']?_0x42818d:{'type':'format','content':''+o(_0x29f893,'*Set\x20format:*\x20%0',o(_0x29f893,this['_getTranslationKeyForListStyle'](_0x1ef9d6['newValue'])))};if(!_0x1ef9d6['newValue']){if('default'==_0x1ef9d6['oldValue'])return _0x42818d;let _0xbce0b9=_0x2b3110['head'];for(;_0xbce0b9;){if(_0xbce0b9['data']&&'listType'==_0xbce0b9['data']['key']&&_0xbce0b9['data']['newValue'])return _0x42818d;_0xbce0b9=_0xbce0b9['next'];}return{'type':'format','content':''+o(_0x29f893,'*Remove\x20format:*\x20%0',o(_0x29f893,this['_getTranslationKeyForListStyle'](_0x1ef9d6['oldValue'])))};}if('default'!=_0x1ef9d6['newValue'])return{'type':'format','content':''+o(_0x29f893,'*Set\x20format:*\x20%0',o(_0x29f893,this['_getTranslationKeyForListStyle'](_0x1ef9d6['newValue'])))};let _0x3332e5=_0x2b3110['head'];for(;_0x3332e5;){if(_0x3332e5['data']&&'listType'==_0x3332e5['data']['key']&&_0x3332e5['data']['newValue']&&_0x3332e5['data']['oldValue'])return _0x42818d;_0x3332e5=_0x3332e5['next'];}return{'type':'format','content':o(_0x29f893,'*Set\x20format:*\x20%0',o(_0x29f893,'ELEMENT_'+_0x2b3110['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3cd49d=this['editor'],_0x3c5d92=_0x3cd49d['locale'];_0x3cd49d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fd54f=>{if('formatBlock'!=_0x1fd54f['type'])return;const {data:_0x507501}=_0x1fd54f;if(!_0x507501)return;let _0x339770,_0x2b187d;switch(_0x507501['commandName']){case'listStyle':_0x339770='*Change\x20to:*\x20%0',_0x2b187d={'type':'format','content':o(_0x3c5d92,_0x339770,o(_0x3c5d92,this['_getTranslationKeyForListStyle'](_0x507501['commandParams'][0x0]['type'])))};break;case'listReversed':_0x339770=_0x507501['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b187d={'type':'format','content':o(_0x3c5d92,_0x339770)};break;case'listStart':_0x339770='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b187d={'type':'format','content':o(_0x3c5d92,_0x339770,_0x507501['commandParams'][0x0]['startIndex'])};}return _0x2b187d;});}['_getTranslationKeyForListStyle'](_0xfed7f9){return'ELEMENT_'+function(_0x100e0e){if(pe['includes'](_0x100e0e))return'bulleted';if(ye['includes'](_0x100e0e))return'numbered';return null;}(_0xfed7f9)['toUpperCase']()+'_LIST_'+_0xfed7f9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1367c6{static get['requires'](){return[_0x18c42d];}['init'](){const _0x1fdaaf=this['editor'],_0x6f411b=_0x1fdaaf['plugins']['get']('TrackChangesEditing'),_0x412447=_0x1fdaaf['commands']['get']('enter');_0x6f411b['enableCommand']('enter',()=>{_0x1fdaaf['model']['change'](_0x406f85=>{const _0x3e8f28=_0x1fdaaf['model']['document']['selection'],_0x2f47ca=_0x3e8f28['getFirstPosition'](),_0x35373b=_0x24837b['fromRange'](_0x3e8f28['getFirstRange']());if(_0x412447['enterBlock'](_0x406f85)){const _0x5474c6=_0x1fdaaf['model']['createPositionAt'](_0x2f47ca['parent']['nextSibling'],0x0),_0x1d04e6=_0x406f85['createRange'](_0x2f47ca,_0x5474c6);_0x6f411b['markInsertion'](_0x1d04e6);}else _0x406f85['setSelection'](_0x406f85['createRange'](_0x35373b['end']));_0x35373b['detach'](),_0x412447['fire']('afterExecute',{'writer':_0x406f85});});}),_0x1fdaaf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1fdaaf,'split'),{'priority':'high'}),_0x1fdaaf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1dc7b4,_0x47d4d8,_0x1ff5a2)=>{const _0x2d1542=_0x1ff5a2['mapper']['markerNameToElements'](_0x47d4d8['markerName']);if(_0x2d1542){for(const _0x58d662 of _0x2d1542)_0x58d662['hasClass']('ck-suggestion-marker-split')&&(_0x1ff5a2['mapper']['unbindElementFromMarkerName'](_0x58d662,_0x47d4d8['markerName']),_0x1ff5a2['writer']['remove'](_0x58d662));}},{'priority':'high'}),_0x1fdaaf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a5c02,_0x2985fc,_0x195604)=>{_0x195604['options']['showSuggestionHighlights']&&_e(_0x1fdaaf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2a5c02,_0x2985fc,_0x195604);},{'priority':'high'});}}class J extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x537407=this['editor']['plugins']['get']('TrackChangesEditing');_0x537407['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x537407['enableCommand']('findNext'),_0x537407['enableCommand']('findPrevious'),_0x537407['enableCommand']('replace'),_0x537407['enableCommand']('replaceAll');}['handleFindCommand'](_0x32eb05,_0x2ce972,_0x1ed83e={}){const _0xc546b9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x32eb05(_0x43cb56=>{let _0x5e95db=('string'==typeof _0x2ce972?_0xc546b9['findByTextCallback'](_0x2ce972,_0x1ed83e):_0x2ce972)(_0x43cb56);Array['isArray'](_0x5e95db)&&(_0x5e95db={'results':_0x5e95db,'searchText':'string'==typeof _0x2ce972?_0x2ce972:''});const _0xf281d8=_0x5e95db['results']['filter'](_0x31af60=>!0x1===this['_isInDeletionRange'](_0x31af60,_0x43cb56['item']));return{..._0x5e95db,'results':_0xf281d8};},_0x1ed83e);}['_isInDeletionRange'](_0x2944df,_0x27d487){const _0x4bfea2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27d487,_0x2944df['start']),this['editor']['model']['createPositionAt'](_0x27d487,_0x2944df['end']));for(const _0x31074e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4bfea2['getIntersection'](_0x31074e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1367c6{['afterInit'](){const _0x11b4dd=this['editor']['locale'],_0x2d1155=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4df492,commandName:_0x391712}of ro)this['editor']['plugins']['has'](_0x4df492)&&(_0x2d1155['enableDefaultAttributesIntegration'](_0x391712),_0x2d1155['registerInlineAttribute'](_0x391712));_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11b4dd,'FORMAT_FONT_SIZE')),_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11b4dd,'FORMAT_FONT_FAMILY')),_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11b4dd,'FORMAT_FONT_COLOR')),_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11b4dd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530cda=this['editor'],_0x4a1298=_0x530cda['locale'];_0x530cda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17eff0=>{const _0x59fa4f=_0x4a1298['t'];if('formatInline'!=_0x17eff0['type'])return;const {data:_0x459931}=_0x17eff0;if(null!=_0x459931){if('fontSize'==_0x459931['commandName']){const _0x52d9c2=_0x459931['commandParams'][0x0]['value'];if(_0x52d9c2){const _0x19a9f0=_0x59fa4f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x55c40d=>_0x55c40d['model']==_0x52d9c2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20size:*\x20%0',_0x19a9f0)};}return{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x459931['commandName']){const _0x2c49df=_0x459931['commandParams'][0x0]['value'];return _0x2c49df?{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20family:*\x20%0',_0x2c49df)}:{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20family*')};}if('fontColor'==_0x459931['commandName']){const _0x1f7e6b=_0x459931['commandParams'][0x0]['value'];if(_0x1f7e6b){const _0x42c609=_0x28ac03(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53e0fe=>_0x53e0fe['model']==_0x1f7e6b);let _0x40f9b6=_0x1f7e6b,_0x1b6f92='';return _0x42c609&&(_0x40f9b6=_0x42c609['label'],_0x1b6f92=_0x59fa4f(_0x40f9b6)['toLowerCase']()),{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20color:*\x20%0',_0x1b6f92)['trim'](),'color':{'value':_0x1f7e6b,'title':_0x1b6f92||_0x40f9b6}};}return{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x459931['commandName']){const _0x428a64=_0x459931['commandParams'][0x0]['value'];if(_0x428a64){const _0x5897aa=_0x28ac03(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x51e6b6=>_0x51e6b6['model']==_0x428a64);let _0x34fca3=_0x428a64,_0x37ebb8='';return _0x5897aa&&(_0x34fca3=_0x5897aa['label'],_0x37ebb8=_0x59fa4f(_0x34fca3)['toLowerCase']()),{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20background\x20color:*\x20%0',_0x37ebb8)['trim'](),'color':{'value':_0x428a64,'title':_0x37ebb8||_0x34fca3}};}return{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1367c6{['afterInit'](){const _0x27771e=this['editor'],_0x5bfe2d=_0x27771e['plugins']['get']('TrackChangesEditing'),_0x3e4baf=_0x27771e['commands']['get']('copyFormat'),_0x2392a4=_0x27771e['commands']['get']('pasteFormat');_0x3e4baf&&_0x2392a4&&(_0x5bfe2d['enableDefaultAttributesIntegration']('pasteFormat'),_0x5bfe2d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3ab256=this['editor'],_0x39e2d6=_0x3ab256['locale'];_0x3ab256['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cde54=>{if('formatBlock'!=_0x4cde54['type']&&'formatInline'!=_0x4cde54['type'])return;const {data:_0x5bed6e}=_0x4cde54;if(_0x5bed6e&&'pasteFormat'===_0x5bed6e['commandName']){const _0x52d984=[],_0x5cb7ee=_0x5bed6e['commandParams'][0x0];for(const [_0x38338f,_0x1ff525]of Object['entries'](_0x5cb7ee))_0x52d984['push'](so(_0x3ab256,_0x38338f,_0x1ff525));return _0x52d984['length']?{'type':'format','content':o(_0x39e2d6,'*Set\x20format\x20to:*\x20%0',_0x52d984['join'](',\x20'))}:{'type':'format','content':o(_0x39e2d6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x230f3e,_0x1946a4,_0x3af116){const _0x320f79=_0x230f3e['locale']['t'],_0xcdf756=_0x1946a4['split'](/(?=[A-Z])/)['join']('\x20'),_0xfd1bcc=_0x320f79(_0xcdf756['charAt'](0x0)['toUpperCase']()+_0xcdf756['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3af116)return _0xfd1bcc;if('fontColor'===_0x1946a4||'fontBackgroundColor'===_0x1946a4){const _0x1681ee=_0x28ac03(_0x230f3e['config']['get']('fontColor.colors'))['find'](_0x180559=>_0x180559['model']==_0x3af116);return _0xfd1bcc+'\x20('+(_0x1681ee?_0x320f79(_0x1681ee['label'])['toLowerCase']():_0x3af116)+')';}if('fontSize'===_0x1946a4&&isNaN(parseFloat(_0x3af116))){const _0x140482=_0x230f3e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x230f3e['config']['get']('fontSize.options'))['find'](_0x183f91=>_0x183f91['model']==_0x3af116);return _0xfd1bcc+'\x20('+(_0x140482?_0x320f79(_0x140482['title'])['toLowerCase']():_0x3af116)+')';}return _0xfd1bcc+'\x20('+_0x3af116+')';}class Y extends _0x1367c6{['_headingOptions'];['afterInit'](){const _0x4cb6d4=this['editor'];if(!_0x4cb6d4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4cb6d4['config']['get']('heading.options');const _0xd77359=_0x4cb6d4['locale'],_0x3b5d7d=_0x4cb6d4['plugins']['get']('TrackChangesEditing');_0x3b5d7d['enableDefaultAttributesIntegration']('heading');for(const _0x3801c4 of this['_headingOptions'])'paragraph'!=_0x3801c4['model']&&_0x3b5d7d['descriptionFactory']['registerElementLabel'](_0x3801c4['model'],_0x12f6b3=>{const _0x21362b=this['_getHeadingLevel'](_0x3801c4['model']);return null!==_0x21362b?_0x51fe27(_0x12f6b3,_0x21362b):_0x4caf7d(_0x12f6b3,_0x3801c4['title']);});function _0x51fe27(_0x25d011,_0x1b8aee){return o(_0xd77359,'ELEMENT_HEADING',[_0x25d011,_0x1b8aee]);}function _0x4caf7d(_0x2a4faa,_0x1c2301){return o(_0xd77359,'ELEMENT_HEADING_CUSTOM',[_0x2a4faa,_0x1c2301]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160625=this['editor'],_0x5e4d19=_0x160625['locale'];function _0x2a513d(_0x35dc09,_0x22cf44){return o(_0x5e4d19,'ELEMENT_HEADING_CUSTOM',[_0x35dc09,_0x22cf44]);}_0x160625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41287a=>{if('formatBlock'!=_0x41287a['type'])return;const {data:_0x36bf50}=_0x41287a;if(_0x36bf50&&'heading'==_0x36bf50['commandName']){const _0x1bb49f=_0x36bf50['commandParams'][0x0]['value'],_0x5ad629=this['_getHeadingLevel'](_0x1bb49f);if(null!==_0x5ad629)return{'type':'format','content':o(_0x5e4d19,'*Change\x20to:*\x20%0',(_0x4793cb=0x1,_0xc21310=_0x5ad629,o(_0x5e4d19,'ELEMENT_HEADING',[_0x4793cb,_0xc21310])))};const _0x275ed4=this['_headingOptions']['find'](_0x2eba3c=>_0x2eba3c['model']===_0x1bb49f)['title'];return{'type':'format','content':o(_0x5e4d19,'*Change\x20to:*\x20%0',_0x2a513d(0x1,_0x275ed4))};}var _0x4793cb,_0xc21310;});}['_getHeadingLevel'](_0xe44439){const _0x1943cf=_0xe44439['match'](/^heading(\d+)/);if(_0x1943cf)return _0x1943cf[0x1];const _0x4dc780=this['_headingOptions']?.['find'](_0x13f0f3=>_0x13f0f3['model']==_0xe44439);if(_0x4dc780&&_0x4dc780['view']){const _0x22bacf=_0x4dc780['view'],_0x640570=(_0x22bacf['name']??_0x22bacf)['match'](/^h(\d+)/);if(_0x640570)return _0x640570[0x1];}return null;}}class Z extends _0x1367c6{['afterInit'](){const _0x32980c=this['editor'];if(!_0x32980c['plugins']['has']('HighlightEditing'))return;const _0x5adaf7=_0x32980c['plugins']['get']('TrackChangesEditing'),_0xebcedd=_0x32980c['locale'];_0x5adaf7['enableDefaultAttributesIntegration']('highlight'),_0x5adaf7['registerInlineAttribute']('highlight'),_0x5adaf7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xebcedd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13cdef=this['editor'],_0x158502=_0x13cdef['locale'];_0x13cdef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a544=>{if('formatInline'!=_0x26a544['type'])return;const {data:_0xe90402}=_0x26a544;if(_0xe90402&&'highlight'==_0xe90402['commandName']){const _0x1ff8ee=_0x158502['t'],_0x538a0c=_0xe90402['commandParams'][0x0]['value'];if(_0x538a0c){const _0x155bc0=_0x13cdef['config']['get']('highlight.options')['find'](_0x5a89e8=>_0x5a89e8['model']==_0x538a0c),_0xdc7e11=_0x1ff8ee(_0x155bc0['title'])['toLowerCase']();return{'type':'format','content':o(_0x158502,'*Set\x20highlight:*\x20%0',_0xdc7e11),'color':{'value':_0x155bc0['color'],'title':_0x155bc0['title']}};}return{'type':'format','content':o(_0x158502,'*Remove\x20highlight*',o(_0x158502,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1367c6{['afterInit'](){const _0x54889a=this['editor'];if(!_0x54889a['plugins']['has']('HorizontalLineEditing'))return;_0x54889a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2b5a8e=_0x54889a['plugins']['get']('TrackChangesEditing'),_0x281565=_0x54889a['locale'];_0x2b5a8e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4436ab=>o(_0x281565,'ELEMENT_HORIZONTAL_LINE',_0x4436ab)),_0x54889a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x23e0f2,{writer:_0x4ea2e1,options:_0x3fd931})=>{if(!_0x3fd931['showSuggestionHighlights'])return null;const _0x142f82=_0x4ea2e1['createContainerElement']('div'),_0x23d4dc=_0x4ea2e1['createEmptyElement']('hr');return _0x4ea2e1['addClass']('ck-horizontal-line',_0x142f82),_0x4ea2e1['insert'](_0x4ea2e1['createPositionAt'](_0x142f82,0x0),_0x23d4dc),_0x142f82;},'converterPriority':'high'});}}class et extends _0x1367c6{['afterInit'](){const _0x10ed16=this['editor'];if(!_0x10ed16['plugins']['has']('HtmlEmbed'))return;const _0x1a4912=_0x10ed16['plugins']['get']('TrackChangesEditing'),_0x53c3c=_0x10ed16['locale'];_0x1a4912['descriptionFactory']['registerElementLabel']('rawHtml',_0x471ec9=>o(_0x53c3c,'ELEMENT_HTML_EMBED',_0x471ec9)),_0x1a4912['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1a4912['registerBlockAttribute']('value'),_0x1a4912['descriptionFactory']['registerDescriptionCallback'](_0x5eb0c7=>{if('attribute'!=_0x5eb0c7['type'])return;const {data:_0x32c63a}=_0x5eb0c7;if(_0x32c63a&&'value'==_0x32c63a['key']&&_0x5eb0c7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56e930=o(_0x53c3c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53c3c,'*Change\x20%0\x20content*',_0x56e930)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3a52=this['editor'],_0xb7c4b1=_0x2c3a52['locale'];_0x2c3a52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2313d0=>{if('formatBlock'!=_0x2313d0['type'])return;const {data:_0x30cc14}=_0x2313d0;if(_0x30cc14&&'htmlEmbed'==_0x30cc14['commandName']){const _0x3c39d0=o(_0xb7c4b1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xb7c4b1,'*Change\x20%0\x20content*',_0x3c39d0)};}});}}class it extends _0x1367c6{['afterInit'](){const _0x4e04e5=this['editor'];if(!_0x4e04e5['plugins']['has']('ImageEditing'))return;const _0x39b7b=_0x4e04e5['plugins']['get']('TrackChangesEditing'),_0x2d26cc=_0x4e04e5['plugins']['get']('ImageUtils'),_0x228ba1=_0x4e04e5['locale'];_0x39b7b['enableCommand']('insertImage'),_0x39b7b['descriptionFactory']['registerElementLabel']('imageBlock',_0xca505a=>o(_0x228ba1,'ELEMENT_IMAGE',_0xca505a)),_0x39b7b['descriptionFactory']['registerElementLabel']('imageInline',_0x2dbcbf=>o(_0x228ba1,'ELEMENT_INLINE_IMAGE',_0x2dbcbf)),_0x39b7b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x228ba1,'ELEMENT_CAPTION')),_0x4e04e5['plugins']['has']('ImageUploadEditing')&&_0x39b7b['enableCommand']('uploadImage'),_0x4e04e5['plugins']['has']('ImageBlockEditing')&&_0x4e04e5['plugins']['has']('ImageInlineEditing')&&(_0x39b7b['enableCommand']('imageTypeInline',(_0x95ca59,_0x4bb175)=>{const _0x429314=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']);_0x4e04e5['model']['change'](()=>{_0x39b7b['markBlockFormat'](_0x429314,{'commandName':'imageTypeInline','commandParams':[_0x4bb175]},[],'convertBlockImageToInline');});}),_0x39b7b['enableCommand']('imageTypeBlock',(_0xddb3bd,_0x3a3366)=>{_0x4e04e5['model']['change'](_0x54bf94=>{let _0xb09112=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x2277ba=_0x54bf94['createRangeOn'](_0xb09112);const _0x8d1ce5=_0x12ff97['fromPosition'](_0x2277ba['start'],'toPrevious'),_0x593780=_0x12ff97['fromPosition'](_0x2277ba['end'],'toNext');_0x39b7b['forceDefaultExecution'](()=>_0xddb3bd(_0x3a3366)),_0xb09112=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x2277ba=_0x54bf94['createRangeOn'](_0xb09112);const _0x3f87a3=_0x54bf94['createRange'](_0x8d1ce5,_0x593780);_0x8d1ce5['detach'](),_0x593780['detach'](),_0x39b7b['markBlockFormat'](_0xb09112,{'commandName':'imageTypeInline','commandParams':[_0x3a3366]},[],'convertInlineImageToBlock'),_0x3f87a3['start']['isBefore'](_0x2277ba['start'])&&_0x39b7b['markInsertion'](_0x54bf94['createRange'](_0x3f87a3['start'],_0x2277ba['start']),'convertInlineImageToBlock'),_0x2277ba['end']['isBefore'](_0x3f87a3['end'])&&_0x39b7b['markInsertion'](_0x54bf94['createRange'](_0x2277ba['end'],_0x3f87a3['end']),'convertInlineImageToBlock');});}),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x39b7b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc651ce])=>{const _0x939f19=_0x39b7b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xae2f6c=_0xc651ce['start'],_0x2607cc=_0xc651ce['end'];const _0x25b7a5=_0x4e04e5['model']['schema']['getNearestSelectionRange'](_0xae2f6c,'backward'),_0x4cc045=_0x4e04e5['model']['schema']['getNearestSelectionRange'](_0x2607cc,'forward');_0x25b7a5['isCollapsed']&&(_0xae2f6c=_0x25b7a5['start']),_0x4cc045['isCollapsed']&&(_0x2607cc=_0x4cc045['end']),_0x939f19([_0x4e04e5['model']['createRange'](_0xae2f6c,_0x2607cc)]);}),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x25887a),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x25887a)),_0x4e04e5['plugins']['has']('ImageCaptionEditing')&&(_0x39b7b['enableCommand']('toggleImageCaption',(_0x49692a,_0x1e26c8)=>{const _0x520641=_0x4e04e5['plugins']['get']('ImageCaptionUtils');let _0x410d06=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x3329ed=_0x520641['getCaptionFromImageModelElement'](_0x410d06);_0x4e04e5['model']['change'](()=>{if(_0x3329ed)return void _0x39b7b['markDeletion'](_0x4e04e5['model']['createRangeOn'](_0x3329ed));const _0x2faef5=_0x2d26cc['isBlockImage'](_0x410d06);_0x49692a(_0x1e26c8),_0x410d06=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x3329ed=_0x520641['getCaptionFromImageModelElement'](_0x410d06),_0x39b7b['markInsertion'](_0x4e04e5['model']['createRangeOn'](_0x3329ed),_0x2faef5?null:'imageCaption');});}),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x25887a));const _0x187c64=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a8347(_0x16e90e,_0x3e2511){const _0xe646b3=_0x187c64['findIndex'](({type:_0x8c7777,subType:_0x2b447b})=>_0x16e90e['type']==_0x8c7777&&_0x16e90e['subType']==_0x2b447b),_0xc22352=_0x187c64['findIndex'](({type:_0x2dbf51,subType:_0x5bc92e})=>_0x3e2511['type']==_0x2dbf51&&_0x3e2511['subType']==_0x5bc92e);if(_0xe646b3<0x0||_0xc22352<0x0)return!0x1;const _0x5a0da9=_0x16e90e['getFirstRange'](),_0x5096b7=_0x3e2511['getFirstRange']();if((0x0==_0xe646b3||0x1==_0xe646b3)&&0x2==_0xc22352&&_0x5a0da9['isIntersecting'](_0x5096b7))return!0x0;if(0x2==_0xe646b3&&0x3==_0xc22352){const _0x359515=_0x39b7b['_findSuggestions'](_0x5a0da9,'insertion')['filter'](({suggestion:_0xe11d97,meta:_0x56f479})=>_0x56f479['isOwn']&&'convertInlineImageToBlock'==_0xe11d97['subType']);if(_0x359515['length']>0x1&&_0x5096b7['end']['isEqual'](_0x5a0da9['start']))return!0x0;if(0x1==_0x359515['length']&&(_0x5a0da9['start']['isEqual'](_0x5096b7['end'])||_0x5a0da9['end']['isEqual'](_0x5096b7['start'])))return!0x0;}if(0x3==_0xe646b3&&0x3==_0xc22352&&_0x5a0da9['start']['isBefore'](_0x5096b7['start'])){const _0x2d38fb=_0x5a0da9['end']['nodeAfter'],_0x22d86a=_0x5096b7['start']['nodeBefore'];return _0x2d26cc['isBlockImage'](_0x2d38fb)&&_0x2d38fb===_0x22d86a;}return!0x1;}function _0x25887a(_0x54d746,_0x4d7c4a){return _0x3a8347(_0x54d746,_0x4d7c4a)?[_0x54d746,_0x4d7c4a]:_0x3a8347(_0x4d7c4a,_0x54d746)?[_0x4d7c4a,_0x54d746]:null;}_0x4e04e5['plugins']['has']('ImageResize')&&(_0x39b7b['enableDefaultAttributesIntegration']('resizeImage'),_0x39b7b['registerBlockAttribute']('resizedWidth'),_0x39b7b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x228ba1,'FORMAT_IMAGE_SIZE'))),_0x4e04e5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x39b7b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x39b7b['registerBlockAttribute']('alt')),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x421f2d=>{if(!!_0x187c64['find'](({type:_0xdcff7a,subType:_0x430156})=>_0x421f2d['type']==_0xdcff7a&&_0x421f2d['subType']==_0x430156))return _0x421f2d['previous']?{}:void 0x0;}),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x33d3e0=>{if('insertion'==_0x33d3e0['type']||'deletion'==_0x33d3e0['type']){const _0x15ea44=_0x33d3e0['getContainedElement']();if(_0x15ea44&&_0x15ea44['is']('element','caption'))return{'type':'insertion'==_0x33d3e0['type']?'addObject':'removeObject','element':_0x15ea44,'quantity':0x1};}}),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x52dd09=>'formatBlock'==_0x52dd09['type']&&'convertInlineImageToBlock'==_0x52dd09['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52dd09['type']&&'convertBlockImageToInline'==_0x52dd09['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x51c5b3=>{if('attribute'!=_0x51c5b3['type'])return;const {data:_0x3ba666}=_0x51c5b3;if(!_0x3ba666||'alt'!=_0x3ba666['key'])return;const _0x1e9be4=_0x3ba666['newValue'];return _0x1e9be4?{'type':'format','content':o(_0x228ba1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e9be4+'\x22')}:{'type':'format','content':o(_0x228ba1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a972c=this['editor'],_0x59ef2d=_0x2a972c['locale'];_0x2a972c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x151535=>{if('formatBlock'!=_0x151535['type']&&'formatInline'!=_0x151535['type'])return;const {data:_0x2796bc}=_0x151535;if(_0x2796bc){if('imageTextAlternative'==_0x2796bc['commandName']){const _0x1405ea=_0x2796bc['commandParams'][0x0]['newValue'];return _0x1405ea?{'type':'format','content':o(_0x59ef2d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1405ea+'\x22')}:{'type':'format','content':o(_0x59ef2d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2796bc['commandName']){const _0x3d9aec=_0x2796bc['commandParams'][0x0]['width'];return _0x3d9aec?{'type':'format','content':o(_0x59ef2d,'*Set\x20image\x20width:*\x20%0',_0x3d9aec)}:{'type':'format','content':o(_0x59ef2d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d7793=this['editor']['locale'],_0x11bb8e=this['editor']['plugins']['get']('TrackChangesEditing');_0x11bb8e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x11bb8e['registerBlockAttribute']('src'),_0x11bb8e['descriptionFactory']['registerDescriptionCallback'](_0x74834c=>{if('attribute'!=_0x74834c['type'])return;const {data:_0x26c928}=_0x74834c;return _0x26c928&&'src'==_0x26c928['key']?_0x26c928['newValue']&&_0x26c928['oldValue']?{'type':'format','content':o(_0x1d7793,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5109e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5109e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5109e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5109e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5109e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12cca3=this['editor'],_0xff107f=_0x12cca3['locale'];_0x12cca3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x367106=>{if('formatBlock'!=_0x367106['type']&&'formatInline'!=_0x367106['type'])return;const {data:_0x55ebad}=_0x367106;if(!_0x55ebad||'replaceImageSource'!=_0x55ebad['commandName'])return;return{'type':'format','content':o(_0xff107f,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1367c6{['afterInit'](){const _0x11dbf6=this['editor'];if(!_0x11dbf6['plugins']['has']('ImageStyleEditing'))return;const _0x5ed47c=_0x11dbf6['plugins']['get']('TrackChangesEditing'),_0x1929d9=_0x11dbf6['plugins']['get']('ImageUtils'),_0x4145e1={};_0x5ed47c['enableCommand']('imageStyle',(_0x5b8675,_0x373ffd)=>{const _0xd3b272=_0x11dbf6['plugins']['get']('Users')['me'],_0x492ef3=_0x11dbf6['commands']['get']('imageStyle');let _0x69724b=_0x1929d9['getClosestSelectedImageElement'](_0x11dbf6['model']['document']['selection']),_0x17c4bf=_0x11dbf6['model']['createRangeOn'](_0x69724b),_0x3cb118=_0x492ef3['value'];if(_0x3cb118==_0x373ffd['value'])return;const _0x49aa96={'commandName':'imageStyle','commandParams':[_0x373ffd],'formatGroupId':_0x22411c()};_0x11dbf6['model']['change'](()=>{if(_0x5ed47c['getSuggestions']()['filter'](_0x7431b9=>_0x7431b9['isInContent']&&_0xd3b272==_0x7431b9['author']&&('formatBlock'==_0x7431b9['type']||'formatInline'==_0x7431b9['type'])&&('imageStylePreApply'==_0x7431b9['subType']||'imageStylePostApply'==_0x7431b9['subType'])&&_0x7431b9['getFirstRange']()['isEqual'](_0x17c4bf))['forEach'](_0x2dbb7d=>_0x5ed47c['discardSuggestion'](_0x2dbb7d['head'])),_0x69724b=_0x1929d9['getClosestSelectedImageElement'](_0x11dbf6['model']['document']['selection']),_0x17c4bf=_0x11dbf6['model']['createRangeOn'](_0x69724b),_0x492ef3['refresh'](),_0x11dbf6['commands']['get']('imageTypeInline')['refresh'](),_0x11dbf6['commands']['get']('imageTypeBlock')['refresh'](),_0x3cb118=_0x492ef3['value'],_0x3cb118!=_0x373ffd['value'])return _0x1929d9['isInlineImage'](_0x69724b)&&_0x492ef3['shouldConvertImageType'](_0x373ffd['value'],_0x69724b)?(_0x5b8675({..._0x373ffd,'setImageSizes':!0x1}),_0x69724b=_0x1929d9['getClosestSelectedImageElement'](_0x11dbf6['model']['document']['selection']),void _0x5ed47c['markBlockFormat'](_0x69724b,{..._0x49aa96,'commandReversedParams':[{'value':_0x3cb118||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1929d9['isBlockImage'](_0x69724b)?_0x5ed47c['markBlockFormat'](_0x69724b,_0x49aa96,[],'imageStylePostApply'):_0x5ed47c['markInlineFormat'](_0x17c4bf,_0x49aa96,'imageStylePostApply'));});});for(const _0x40dbc1 of _0x11dbf6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4145e1[_0x40dbc1['name']]=_0x40dbc1['title']['toLowerCase']();_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x55f1be])=>{_0x1929d9['setImageNaturalSizeAttributes'](_0x55f1be['getContainedElement']());}),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1d08ee,_0x3185c1)=>{_0x5ed47c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1d08ee,{'commandName':_0x3185c1['commandName'],'commandParams':_0x3185c1['commandReversedParams']});}),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x114faf,_0xeada2f){if(_0x1c00fd(_0x114faf,_0xeada2f))return[_0x114faf,_0xeada2f];if(_0x1c00fd(_0xeada2f,_0x114faf))return[_0xeada2f,_0x114faf];return null;});const _0x404574=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c00fd(_0x252b0d,_0x1cade6){const _0x2d2169=_0x404574['findIndex'](({type:_0x4dbb0e,subType:_0x53d1b2})=>_0x252b0d['type']==_0x4dbb0e&&_0x252b0d['subType']==_0x53d1b2),_0x53c798=_0x404574['findIndex'](({type:_0x5e0962,subType:_0x4e0637})=>_0x1cade6['type']==_0x5e0962&&_0x1cade6['subType']==_0x4e0637);if(_0x2d2169<0x0||_0x53c798<0x0)return!0x1;const _0x33a3bd=_0x252b0d['getFirstRange'](),_0x4a9db9=_0x1cade6['getFirstRange']();if((0x0==_0x2d2169||0x1==_0x2d2169)&&0x2==_0x53c798&&_0x33a3bd['isIntersecting'](_0x4a9db9))return!0x0;if(0x2==_0x2d2169&&0x3==_0x53c798){const _0x4ec148=_0x5ed47c['_findSuggestions'](_0x33a3bd,'insertion')['filter'](({suggestion:_0x1edf76,meta:_0x43a214})=>_0x43a214['isOwn']&&'convertInlineImageToBlock'==_0x1edf76['subType']);if(_0x4ec148['length']>0x1&&_0x4a9db9['end']['isEqual'](_0x33a3bd['start']))return!0x0;if(0x1==_0x4ec148['length']&&(_0x33a3bd['start']['isEqual'](_0x4a9db9['end'])||_0x33a3bd['end']['isEqual'](_0x4a9db9['start'])))return!0x0;}if(0x3==_0x2d2169&&0x3==_0x53c798&&_0x33a3bd['start']['isBefore'](_0x4a9db9['start'])){const _0x1d91db=_0x33a3bd['end']['nodeAfter'],_0x325713=_0x4a9db9['start']['nodeBefore'];return _0x1929d9['isBlockImage'](_0x1d91db)&&_0x1d91db===_0x325713;}return!0x1;}_0x11dbf6['model']['document']['registerPostFixer'](()=>{let _0x3e2577=!0x1;const _0x4c710b=Array['from'](_0x11dbf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d7bb1,data:_0x462116}of _0x4c710b){const {group:_0x5e7fa4,type:_0x1ec178,subType:_0x3b0374,id:_0x463f71}=_0x5ed47c['_splitMarkerName'](_0x1d7bb1);if('suggestion'==_0x5e7fa4&&_0x5ed47c['hasSuggestion'](_0x463f71)){if('formatBlock'==_0x1ec178&&('imageStylePreApply'==_0x3b0374||'imageStylePostApply'==_0x3b0374)){const _0x27a09b=_0x5ed47c['getSuggestion'](_0x463f71);if(_0x462116['newRange']){const _0x1318c5=_0x27a09b['getFirstRange']()['getContainedElement']();if(_0x1929d9['isBlockImage'](_0x1318c5))continue;_0x5ed47c['discardSuggestion'](_0x27a09b),_0x3e2577=!0x0;}}if('insertion'==_0x1ec178&&'imageCaption'==_0x3b0374&&!_0x462116['newRange']){const _0x5da81a=_0x5ed47c['getSuggestion'](_0x463f71);_0x5da81a['next']&&_0x5da81a['next']['isInContent']&&(_0x5ed47c['discardSuggestion'](_0x5da81a['next']),_0x3e2577=!0x0);}}}return _0x3e2577;}),this['_registerLegacyDescription'](_0x4145e1);}['_registerLegacyDescription'](_0x27b201){const _0x38cc53=this['editor'],_0x30d931=_0x38cc53['locale'];_0x38cc53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55d961=>{if('formatBlock'!=_0x55d961['type']&&'formatInline'!=_0x55d961['type'])return;const {data:_0x146600}=_0x55d961;if(!_0x146600||'imageStyle'!=_0x146600['commandName'])return;const _0x71bffe=_0x146600['commandParams'][0x0]['value'];return _0x6b20f3('side'===_0x71bffe?o(_0x30d931,'FORMAT_SIDE_IMAGE'):_0x27b201[_0x71bffe]||_0x71bffe);function _0x6b20f3(_0x48c791){return{'type':'format','content':o(_0x30d931,'*Format:*\x20%0',_0x48c791)};}});}}class ot extends _0x1367c6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5ab83c){super(_0x5ab83c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc64abf=this['editor'],_0x243df9=_0xc64abf['commands']['get']('importWord'),_0x1bbc83=_0xc64abf['commands']['get']('trackChanges');_0x243df9&&(_0x243df9['on']('execute',(_0x212955,[,_0x2365bf])=>{this['_trackChangesValueDuringImport']=_0x1bbc83['value'],_0x2365bf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x243df9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x243df9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1bbc83['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc64abf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x51cc7b,_0x1c972f){const {suggestions:_0x51975d}=_0x1c972f,_0x4dc941=this['editor']['commands']['get']('trackChanges'),_0x39d6c0=_0x4dc941['value'];this['_trackChangesValueDuringImport']!==_0x39d6c0&&(_0x4dc941['execute'](),this['_trackChangesExecuted']=!0x0),_0x51975d&&_0x51975d['forEach'](({id:_0x2f4fab,type:_0x1a2d72,author:_0x2ee3bf,created_at:_0x22cb83})=>{const _0x266baf={'id':_0x2f4fab,'type':_0x1a2d72,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2ee3bf,'createdAt':_0x22cb83?new Date(_0x22cb83):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x266baf);});}}class rt extends _0x1367c6{['afterInit'](){const _0x24c5f7=this['editor'],_0x56ee56=_0x24c5f7['plugins']['get']('TrackChangesEditing');if(_0x24c5f7['plugins']['has']('IndentEditing')&&(_0x56ee56['enableCommand']('indent'),_0x56ee56['enableCommand']('outdent')),_0x24c5f7['plugins']['has']('IndentBlock')){for(const _0x13559c of['indentBlock','outdentBlock'])_0x56ee56['enableDefaultAttributesIntegration'](_0x13559c);}const _0x43414d=_0x24c5f7['locale'];_0x56ee56['registerBlockAttribute']('blockIndent'),_0x56ee56['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x43414d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e8dd2=this['editor'],_0x1436e2=_0x5e8dd2['locale'],_0x5bd0e8=_0x5e8dd2['plugins']['get']('TrackChangesEditing');_0x5bd0e8['descriptionFactory']['registerDescriptionCallback'](_0x1aaf3a=>{if('formatBlock'!=_0x1aaf3a['type'])return;const {data:_0x2e470c}=_0x1aaf3a;if(!_0x2e470c)return;if('indentBlock'!=_0x2e470c['commandName']&&'outdentBlock'!=_0x2e470c['commandName'])return;const _0x34ad4e=_0x1aaf3a['getItems']()[0x0],_0x463e24=_0x5bd0e8['descriptionFactory']['getItemLabel'](_0x34ad4e);return'indentBlock'==_0x2e470c['commandName']?{'type':'format','content':o(_0x1436e2,'*Indent:*\x20%0',_0x463e24)}:'outdentBlock'==_0x2e470c['commandName']?{'type':'format','content':o(_0x1436e2,'*Outdent:*\x20%0',_0x463e24)}:void 0x0;});}}class at extends _0x1367c6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1367c6{['afterInit'](){const _0x656709=this['editor'];if(!_0x656709['plugins']['has']('LinkEditing'))return;const _0x4a1c0d=_0x656709['plugins']['get']('TrackChangesEditing'),_0x4b803e=_0x656709['commands']['get']('link');_0x4a1c0d['enableDefaultAttributesIntegration']('link'),_0x4a1c0d['enableDefaultAttributesIntegration']('unlink'),_0x4a1c0d['registerInlineAttribute']('linkHref');for(const _0x4cfb82 of _0x4b803e['manualDecorators'])_0x4a1c0d['registerInlineAttribute'](_0x4cfb82['id']),_0x4a1c0d['descriptionFactory']['registerAttributeLabel'](_0x4cfb82['id'],'link\x20('+_0x4cfb82['label']['toLowerCase']()+')');_0x4a1c0d['descriptionFactory']['registerDescriptionCallback'](_0x949e39=>{if('attribute'!=_0x949e39['type'])return;const {data:_0x4a4199}=_0x949e39;if(!_0x4a4199||'linkHref'!=_0x4a4199['key'])return;const _0x148293=_0x4a4199['newValue'],_0x556c54=_0x656709['locale'];return{'type':'format','content':null==_0x148293?o(_0x556c54,'*Remove\x20link*'):o(_0x556c54,'*Set\x20link:*\x20%0','\x22'+_0x148293+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b2ae=this['editor'],_0x45f03b=_0x56b2ae['locale'];_0x56b2ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2469=>{if('formatInline'!=_0x1b2469['type'])return;const {data:_0x1cf93a}=_0x1b2469;if(_0x1cf93a){if('link'==_0x1cf93a['commandName']){const _0x34786c=_0x1cf93a['commandParams'][0x0];return{'type':'format','content':o(_0x45f03b,'*Set\x20link:*\x20%0','\x22'+_0x34786c+'\x22')};}return'unlink'==_0x1cf93a['commandName']?{'type':'format','content':o(_0x45f03b,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1367c6{['afterInit'](){const _0x3fac3c=this['editor'],_0x4c0eba=_0x3fac3c['locale'];if(!_0x3fac3c['plugins']['has']('LegacyListEditing'))return;const _0x7a8191=_0x3fac3c['plugins']['get']('TrackChangesEditing'),_0x42686e=_0x3fac3c['plugins']['has']('LegacyTodoListEditing');function _0x4e752d(_0x49a0f3){return()=>{const _0x5ce7e1=_0x3fac3c['model']['document']['selection'],_0x24ae14=_0x3fac3c['commands']['get'](_0x49a0f3);if(_0x24ae14['value'])return void _0x3fac3c['execute']('paragraph',{});const _0x2997b1=_0x49a0f3['slice'](0x0,-0x4),_0xe88a2c=function(_0x3ecf2c,_0x44f8f0,_0x3984ea){let _0x28e270=Array['from'](_0x3ecf2c)['filter'](_0x299183=>function(_0x29e895,_0x485ec5){return _0x485ec5['checkChild'](_0x29e895['parent'],'listItem')&&!_0x485ec5['isObject'](_0x29e895);}(_0x299183,_0x3984ea));_0x28e270=_0x28e270['filter'](_0x91ede=>!_0x91ede['is']('element','listItem')||_0x91ede['getAttribute']('listType')!=_0x44f8f0);const _0x1d50d9=new Set();for(const _0x461e79 of _0x28e270)_0x461e79['is']('element','listItem')?_0x1d50d9['add'](me(_0x461e79)):_0x1d50d9['add'](_0x461e79);return Array['from'](_0x1d50d9);}(_0x5ce7e1['getSelectedBlocks'](),_0x2997b1,_0x3fac3c['model']['schema']);_0x3fac3c['model']['change'](()=>{for(const _0x1f1cf8 of _0xe88a2c)_0x7a8191['markBlockFormat'](_0x1f1cf8,{'commandName':_0x49a0f3,'commandParams':[{'forceValue':!_0x24ae14['value']}],'formatGroupId':'blockName'},fe(_0x1f1cf8));});};}function _0x2fcb2d(_0x5c7b00){return()=>{const _0x126251=function(_0x17de9a){let _0x189756=Array['from'](_0x17de9a);const _0x155ac8=_0x189756['findIndex'](_0x4bdca5=>'listItem'!=_0x4bdca5['name']);return _0x155ac8>-0x1&&(_0x189756=_0x189756['slice'](0x0,_0x155ac8)),_0x189756;}(_0x3fac3c['model']['document']['selection']['getSelectedBlocks']()),_0x403264=_0x3fac3c['model']['createRange'](_0x3fac3c['model']['createPositionAt'](_0x126251[0x0],'before'),_0x3fac3c['model']['createPositionAt'](_0x126251[_0x126251['length']-0x1],'end'));_0x3fac3c['model']['change'](()=>{_0x7a8191['markBlockFormat'](_0x403264,{'commandName':_0x5c7b00,'commandParams':[],'formatGroupId':'listIndent'},function(_0x216859){const _0x3b4f34=new Set();for(const _0x43e88a of _0x216859){let _0x42e562=_0x43e88a['nextSibling'];for(;_0x42e562&&_0x42e562['getAttribute']('listIndent')>_0x43e88a['getAttribute']('listIndent');)_0x3b4f34['add'](_0x42e562),_0x42e562=_0x42e562['nextSibling'];}return Array['from'](_0x3b4f34);}(_0x126251));});};}_0x7a8191['enableCommand']('numberedList',_0x4e752d('numberedList')),_0x7a8191['enableCommand']('bulletedList',_0x4e752d('bulletedList')),_0x42686e&&_0x7a8191['enableCommand']('todoList',_0x4e752d('todoList')),_0x7a8191['enableCommand']('indentList',_0x2fcb2d('indentList')),_0x7a8191['enableCommand']('outdentList',_0x2fcb2d('outdentList')),_0x42686e&&_0x7a8191['enableCommand']('checkTodoList',()=>{const _0x35144c=_0x3fac3c['commands']['get']('checkTodoList'),_0x3217f6=Array['from'](_0x35144c['_selectedElements']);_0x3217f6['filter'](_0x126a21=>_0x126a21['getAttribute']('todoListChecked')!=_0x35144c['value']),_0x3fac3c['model']['change'](()=>{for(const _0x4a5a59 of _0x3217f6)_0x7a8191['markBlockFormat'](_0x4a5a59,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x35144c['value']}]});});}),_0x7a8191['descriptionFactory']['registerElementLabel']('listItem',_0xd16cdb=>o(_0x4c0eba,'ELEMENT_LIST_ITEM',_0xd16cdb)),_0x7a8191['descriptionFactory']['registerDescriptionCallback'](_0x190072=>{if('formatBlock'!=_0x190072['type']&&'formatInline'!=_0x190072['type'])return;const {data:_0x490f1e}=_0x190072;if(_0x490f1e){if('numberedList'==_0x490f1e['commandName']||'bulletedList'==_0x490f1e['commandName']||'todoList'==_0x490f1e['commandName'])switch(_0x490f1e['commandName']['replace']('List','')){case'bulleted':return _0x5c5574(o(_0x4c0eba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c5574(o(_0x4c0eba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c5574(o(_0x4c0eba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x490f1e['commandName'])return{'type':'format','content':o(_0x4c0eba,'*Indent:*\x20%0',o(_0x4c0eba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x490f1e['commandName'])return{'type':'format','content':o(_0x4c0eba,'*Outdent:*\x20%0',o(_0x4c0eba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x490f1e['commandName'])return _0x490f1e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c0eba,'*Check\x20item*')}:{'type':'format','content':o(_0x4c0eba,'*Uncheck\x20item*')};}function _0x5c5574(_0x29007a){return{'type':'format','content':o(_0x4c0eba,'*Change\x20to:*\x20%0',_0x29007a)};}});}}function me(_0x2d4bad){const _0xd1a70d=_0x2d4bad['getAttribute']('listIndent');if(0x0==_0xd1a70d)return _0x2d4bad;let _0x37736c=_0x2d4bad;for(;_0x2d4bad['previousSibling']&&_0x2d4bad['previousSibling']['is']('element','listItem');){const _0x37e317=_0x2d4bad['previousSibling']['getAttribute']('listIndent');if(_0x37e317==_0xd1a70d)_0x37736c=_0x2d4bad['previousSibling'];else{if(_0x37e317<_0xd1a70d)break;}_0x2d4bad=_0x2d4bad['previousSibling'];}return _0x37736c;}function fe(_0x125f8a){const _0x1fbfa3=[];if(_0x125f8a['is']('element','listItem')&&_0x125f8a['getAttribute']('listIndent')>0x0){let _0x3b645c=_0x125f8a['nextSibling'];for(;_0x3b645c&&'listItem'==_0x3b645c['name']&&_0x3b645c['getAttribute']('listIndent')==_0x125f8a['getAttribute']('listIndent');)_0x1fbfa3['push'](_0x3b645c),_0x3b645c=_0x3b645c['nextSibling'];}return _0x1fbfa3;}class K extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x396c31=this['editor']['config']['get']('list.properties'),_0x47cb94=this['editor']['plugins']['get']('TrackChangesEditing');_0x396c31['styles']&&_0x47cb94['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x396c31['reversed']&&_0x47cb94['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x396c31['startIndex']&&_0x47cb94['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47cb94['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x55123e,_0x1414a0={}){const _0x27d2fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dbe44=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x27d2fa['markMultiRangeBlockFormat'](_0x4dbe44,{'commandName':'listStyle','commandParams':[{'type':_0x1414a0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x465bde,_0x2d687f={}){const _0x36c92a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3227e0=this['_getSuggestionBlocks'](_0x3cbff0=>_0x3cbff0['is']('element','listItem')&&'numbered'===_0x3cbff0['getAttribute']('listType'));if(_0x3227e0['length']<0x1)return;const _0x2cd963=_0x3227e0['map'](_0xb97e92=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb97e92,'before'),this['editor']['model']['createPositionAt'](_0xb97e92,0x0)));this['editor']['model']['change'](()=>{_0x36c92a['markMultiRangeBlockFormat'](_0x2cd963,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d687f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5da509,_0x3b3714={}){const _0xd49b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ce7fc=this['_getSuggestionBlocks'](_0x2436f3=>_0x2436f3['is']('element','listItem')&&'numbered'===_0x2436f3['getAttribute']('listType'));if(_0x2ce7fc['length']<0x1)return;const _0x5824af=_0x2ce7fc['map'](_0x54cfbe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54cfbe,'before'),this['editor']['model']['createPositionAt'](_0x54cfbe,0x0)));this['editor']['model']['change'](()=>{_0xd49b7['markMultiRangeBlockFormat'](_0x5824af,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b3714['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x48126b){if('formatBlock'!=_0x48126b['type']&&'formatInline'!=_0x48126b['type'])return;const _0x22dd2a=this['editor']['locale'],{data:_0x5109de}=_0x48126b;if(!_0x5109de)return;let _0xe204e0,_0x225e47;switch(_0x5109de['commandName']){case'listStyle':_0xe204e0='*Change\x20to:*\x20%0',_0x225e47={'type':'format','content':o(_0x22dd2a,_0xe204e0,o(_0x22dd2a,this['_getTranslationKeyForListStyle'](_0x5109de['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe204e0=_0x5109de['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x225e47={'type':'format','content':o(_0x22dd2a,_0xe204e0)};break;case'listStart':_0xe204e0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x225e47={'type':'format','content':o(_0x22dd2a,_0xe204e0,_0x5109de['commandParams'][0x0]['startIndex'])};}return _0x225e47;}['_getSuggestionBlocksForListStyle'](){const _0x137635=this['editor']['plugins']['get']('LegacyListUtils');let _0x464466=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x464466[0x0]?.['is']('element','listItem')&&_0x464466['unshift'](..._0x137635['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x464466[_0x464466['length']-0x1]?.['is']('element','listItem')&&_0x464466['push'](..._0x137635['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x464466=[...new Set(_0x464466)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x464466=_0x464466['filter'](_0x3616fa=>_0x3616fa['is']('element','listItem'))),_0x464466;}['_getSuggestionBlocks'](_0x437357){const _0x2dbac3=this['editor']['plugins']['get']('LegacyListUtils');let _0x2643cd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x437357)['map'](_0x49ef3a=>{const _0x1c1567=this['editor']['model']['createPositionAt'](_0x49ef3a,0x0);return[..._0x2dbac3['getSiblingNodes'](_0x1c1567,'backward'),..._0x2dbac3['getSiblingNodes'](_0x1c1567,'forward')];})['flat']();return _0x2643cd=[...new Set(_0x2643cd)],_0x2643cd;}['_getTranslationKeyForListStyle'](_0x4c54e6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c54e6)||'default')['toUpperCase']()+'_LIST_'+_0x4c54e6['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1367c6{['afterInit'](){const _0x5e4899=this['editor'];if(!_0x5e4899['plugins']['has']('MediaEmbedEditing'))return;const _0x4799c7=_0x5e4899['plugins']['get']('TrackChangesEditing'),_0x46f823=_0x5e4899['locale'];_0x4799c7['enableCommand']('mediaEmbed'),_0x4799c7['descriptionFactory']['registerElementLabel']('media',_0x108f4f=>o(_0x46f823,'ELEMENT_MEDIA',_0x108f4f)),_0x5e4899['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2f9323,{writer:_0x140b58,options:_0x55466b})=>{if(_0x55466b['showSuggestionHighlights'])return _0x140b58['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e4899['data']['downcastDispatcher']['on']('attribute:url:media',(_0x342aef,_0x35bc43,_0x344a4b)=>{_0x344a4b['options']['showSuggestionHighlights']&&_0x342aef['stop']();},{'priority':'high'});}}class gt extends _0x1367c6{['afterInit'](){const _0x23bcb0=this['editor'];_0x23bcb0['plugins']['has']('MentionEditing')&&_0x23bcb0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1367c6{['afterInit'](){const _0x5b88c8=this['editor'],_0x3599b4=_0x5b88c8['plugins']['get']('TrackChangesEditing');_0x5b88c8['plugins']['has']('MultiLevelList')&&(_0x3599b4['enableDefaultAttributesIntegration']('multiLevelList'),_0x3599b4['registerBlockAttribute']('listMarkerStyle'),_0x3599b4['descriptionFactory']['registerDescriptionCallback'](_0x10d1f2=>this['handleDescriptions'](_0x10d1f2)));}['handleDescriptions'](_0x3a7030){const _0x4bba0e=this['editor']['locale'],{data:_0x1a59f4}=_0x3a7030,_0x21498a={'type':'format','content':''};if(_0x1a59f4&&'listMarkerStyle'==_0x1a59f4['key']){if(!_0x1a59f4['oldValue'])return{'type':'format','content':o(_0x4bba0e,'*Set\x20format:*\x20%0',o(_0x4bba0e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a59f4['newValue']+')'};if(!_0x1a59f4['newValue']){let _0x1a9617=_0x3a7030['head'];for(;_0x1a9617;){if(_0x1a9617['data']&&'listType'==_0x1a9617['data']['key']&&_0x1a9617['data']['newValue'])return _0x21498a;_0x1a9617=_0x1a9617['next'];}return{'type':'format','content':o(_0x4bba0e,'*Remove\x20format:*\x20%0',o(_0x4bba0e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a59f4['oldValue']+')'};}}}}class mt extends _0x1367c6{['afterInit'](){const _0x1b62d4=this['editor'];if(!_0x1b62d4['plugins']['has']('PageBreakEditing'))return;_0x1b62d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x83272d=_0x1b62d4['plugins']['get']('TrackChangesEditing'),_0x3d146a=_0x1b62d4['locale'];_0x83272d['descriptionFactory']['registerElementLabel']('pageBreak',_0x51b7d1=>o(_0x3d146a,'ELEMENT_PAGE_BREAK',_0x51b7d1));}}class dt extends _0x1367c6{['afterInit'](){const _0x52017a=this['editor'];if(!_0x52017a['plugins']['has']('Paragraph'))return;const _0x40c2dc=_0x52017a['locale'],_0x22f35f=_0x52017a['plugins']['get']('TrackChangesEditing');_0x22f35f['descriptionFactory']['registerElementLabel']('paragraph',_0x23554a=>o(_0x40c2dc,'ELEMENT_PARAGRAPH',_0x23554a)),_0x22f35f['enableDefaultAttributesIntegration']('paragraph'),_0x22f35f['enableCommand']('insertParagraph'),_0x52017a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x52017a),{'priority':'highest'}),_0x52017a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x571926,_0x16d54d,_0x32e08f)=>{_0x32e08f['options']['showSuggestionHighlights']&&nr(_0x52017a,{'showActiveMarker':!0x1})(_0x571926,_0x16d54d,_0x32e08f);},{'priority':'highest'});const _0xaacb06=_0x22f35f['descriptionFactory'];_0xaacb06['registerDescriptionCallback'](_0x20820d=>{if('insertion'!==_0x20820d['type'])return;const {start:_0x44cf46,end:_0xce4ed4}=_0x20820d['getFirstRange']();if(!_0x44cf46['isTouching'](_0xce4ed4)||!_0x44cf46['nodeAfter'])return;const _0x3a9377=_0x52017a['model']['schema'],_0x31a282=_0x44cf46['nodeAfter'];return _0x3a9377['isBlock'](_0x31a282)&&!_0x3a9377['isLimit'](_0x31a282)&&_0x3a9377['checkChild'](_0x31a282,'$text')?{'type':'insertion','content':o(_0x40c2dc,'*Insert:*\x20%0',_0xaacb06['getItemLabel'](_0x31a282,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54fff6=this['editor'],_0x306583=_0x54fff6['locale'];_0x54fff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590778=>{if('formatBlock'!=_0x590778['type'])return;const {data:_0x1baa6c}=_0x590778;return _0x1baa6c&&'paragraph'==_0x1baa6c['commandName']?{'type':'format','content':o(_0x306583,'*Change\x20to:*\x20%0',o(_0x306583,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x52287d,{showActiveMarker:_0x3bbaa0=!0x0}={}){return(_0x5b6d10,_0x5a0772,_0x436e61)=>{const _0x21d0a3=_0x52287d['plugins']['get']('TrackChangesEditing'),_0x2e03a1=_0x5a0772['markerRange']['start'],_0x1bd2e3=_0x5a0772['markerRange']['end'],_0x3eca26=_0x52287d['model']['schema'];if(!_0x2e03a1['isTouching'](_0x1bd2e3)||!_0x2e03a1['nodeAfter'])return;const _0x487766=_0x2e03a1['nodeAfter'];if(_0x3eca26['isBlock'](_0x487766)&&!_0x3eca26['isLimit'](_0x487766)&&_0x3eca26['checkChild'](_0x487766,'$text')){if(!_0x436e61['consumable']['consume'](_0x5a0772['markerRange'],_0x5b6d10['name']))return;const _0x251f9d=_0x436e61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2ba542=_0x436e61['mapper']['toViewPosition'](_0x1bd2e3);_0x3bbaa0&&_0x21d0a3['activeMarkers']['includes'](_0x5a0772['markerName'])&&_0x436e61['writer']['addClass']('ck-suggestion-marker--active',_0x251f9d),_0x436e61['writer']['insert'](_0x2ba542,_0x251f9d),_0x436e61['mapper']['bindElementToMarker'](_0x251f9d,_0x5a0772['markerName']);}};}class pt extends _0x1367c6{['afterInit'](){const _0x4bfa70=this['editor'];if(!_0x4bfa70['plugins']['has']('RemoveFormatEditing'))return;_0x4bfa70['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a98a4=this['editor'];_0x2a98a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466563=>{if('formatBlock'!=_0x466563['type']&&'formatInline'!=_0x466563['type'])return;const {data:_0x8d7d93}=_0x466563;return _0x8d7d93&&'removeFormat'==_0x8d7d93['commandName']?{'type':'format','content':o(_0x2a98a4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1367c6{['afterInit'](){const _0x1684ef=this['editor'];if(!_0x1684ef['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e1a28=_0x1684ef['plugins']['get']('TrackChangesEditing');_0x3e1a28['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e1a28['enableCommand']('goToNextRestrictedEditingException');const _0xc67786=_0x1684ef['plugins']['get']('RestrictedEditingModeEditing');_0xc67786['enableCommand']('trackChanges'),_0xc67786['enableCommand']('acceptSuggestion'),_0xc67786['enableCommand']('discardSuggestion'),_0xc67786['enableCommand']('acceptAllSuggestions'),_0xc67786['enableCommand']('discardAllSuggestions'),_0xc67786['enableCommand']('acceptSelectedSuggestions'),_0xc67786['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1367c6{static get['requires'](){return[_0x5a4f72];}['init'](){const _0x573a6a=this['editor'],_0x48ea1f=_0x573a6a['plugins']['get']('TrackChangesEditing');_0x48ea1f['enableCommand']('shiftEnter'),_0x573a6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x573a6a),{'priority':'high'}),_0x573a6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x573a6a),{'priority':'high'}),_0x573a6a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18e524,_0x41f13e,_0x7ed3b6)=>{_0x7ed3b6['options']['showSuggestionHighlights']&&de(_0x573a6a,{'showActiveMarker':!0x1})(_0x18e524,_0x41f13e,_0x7ed3b6);}),_0x48ea1f['descriptionFactory']['registerElementLabel']('softBreak',_0x1d5e8b=>o(_0x573a6a['locale'],'ELEMENT_LINE_BREAK',_0x1d5e8b));}}function de(_0x4ec36c,{showActiveMarker:_0x460b6d=!0x0}={}){return(_0x5e0249,_0x22e57e,_0x2ef535)=>{const _0x1f91a4=_0x4ec36c['plugins']['get']('TrackChangesEditing');if(!_0x2ef535['consumable']['test'](_0x22e57e['markerRange'],_0x5e0249['name']))return;const _0x115b15=_0x4ec36c['model'];for(const _0x47c189 of _0x22e57e['markerRange']['getItems']()){if(!_0x47c189['is']('element','softBreak'))continue;const _0x5e7061='deletion'==_0x22e57e['markerName']['split'](':')[0x1]?'merge':'split',_0x4726d0=_0x2ef535['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e7061}),_0x48df10=_0x2ef535['mapper']['toViewPosition'](_0x115b15['createPositionBefore'](_0x47c189));_0x460b6d&&_0x1f91a4['activeMarkers']['includes'](_0x22e57e['markerName'])&&_0x2ef535['writer']['addClass']('ck-suggestion-marker--active',_0x4726d0),_0x2ef535['writer']['insert'](_0x48df10,_0x4726d0),_0x2ef535['mapper']['bindElementToMarker'](_0x4726d0,_0x22e57e['markerName']);}};}class wt extends _0x1367c6{['afterInit'](){const _0x170bc9=this['editor'],_0x2c5ba7=_0x170bc9['model'],_0x55bbd6=_0x170bc9['locale'];if(!_0x170bc9['plugins']['has']('StandardEditingModeEditing'))return;const _0x2319d1=_0x170bc9['plugins']['get']('TrackChangesEditing'),_0x57cc7c='restrictedEditingException',_0x167ef3=_0x170bc9['commands']['get'](_0x57cc7c);_0x2319d1['enableCommand'](_0x57cc7c,(_0x223c2f,_0x34346a={})=>{const _0x232b7f=_0x2c5ba7['document']['selection'];if(_0x232b7f['isCollapsed'])return void _0x223c2f(_0x34346a);const _0x22122c=void 0x0!==_0x34346a['forceValue']?_0x34346a['forceValue']:!_0x167ef3['value'];_0x2c5ba7['change'](()=>{const _0x46e656=Array['from'](_0x232b7f['getRanges']());for(const _0x3044d8 of _0x46e656){const _0x349bc9=_0x22122c?[_0x3044d8]:io(_0x57cc7c,_0x3044d8,_0x2c5ba7);for(const _0x16c474 of _0x349bc9)_0x2319d1['markInlineFormat'](_0x16c474,{'commandName':_0x57cc7c,'commandParams':[{'forceValue':_0x22122c}]});}});}),_0x2319d1['descriptionFactory']['registerDescriptionCallback'](_0x9248a6=>{if('formatBlock'!=_0x9248a6['type']&&'formatInline'!=_0x9248a6['type'])return;const {data:_0x53812e}=_0x9248a6;return _0x53812e&&_0x53812e['commandName']==_0x57cc7c?_0x53812e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55bbd6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x55bbd6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1367c6{['afterInit'](){const _0x264680=this['editor'];if(!_0x264680['plugins']['has']('Style')||!_0x264680['plugins']['has']('DataSchema'))return;const _0x58ae82=_0x264680['plugins']['get']('TrackChangesEditing'),_0x3e2b43=_0x264680['locale'],_0x4e4f61=_0x264680['config']['get']('style')||{},_0xb5b923=_0x264680['plugins']['get']('GeneralHtmlSupport'),_0x5e8a4b=_0x264680['plugins']['get']('StyleUtils')['normalizeConfig'](_0x264680['plugins']['get']('DataSchema'),_0x4e4f61['definitions']);_0x58ae82['enableDefaultAttributesIntegration']('style');const _0x3c012c=new Set();for(const _0x49f63c of _0x5e8a4b['block']){const _0x378aac=_0xb5b923['getGhsAttributeNameForElement'](_0x49f63c['element']);_0x3c012c['add'](_0x378aac);}const _0x7b36d3=new Set();for(const _0x5665a7 of _0x5e8a4b['inline']){const _0x57c02f=_0xb5b923['getGhsAttributeNameForElement'](_0x5665a7['element']);_0x7b36d3['add'](_0x57c02f);for(const _0x2487f0 of _0x5665a7['ghsAttributes'])_0x7b36d3['add'](_0x2487f0);}for(const _0x53bb81 of _0x3c012c)_0x58ae82['registerBlockAttribute'](_0x53bb81),_0x58ae82['descriptionFactory']['registerAttributeLabel'](_0x53bb81,o(_0x3e2b43,'FORMAT_STYLE'));for(const _0x279a08 of _0x7b36d3)_0x58ae82['registerInlineAttribute'](_0x279a08),_0x58ae82['descriptionFactory']['registerAttributeLabel'](_0x279a08,o(_0x3e2b43,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x494e28=this['editor'],_0x4f93ef=_0x494e28['locale'];_0x494e28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43278e=>{if('formatBlock'!=_0x43278e['type']&&'formatInline'!=_0x43278e['type'])return;const {data:_0x25ad09}=_0x43278e;return _0x25ad09&&'style'===_0x25ad09['commandName']?_0x25ad09['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f93ef,'*Set\x20format:*\x20%0',_0x25ad09['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f93ef,'*Remove\x20format:*\x20%0',_0x25ad09['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1367c6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1fe863){super(_0x1fe863),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x500c35=this['editor'],_0x3088ae=_0x500c35['model']['document']['selection'];if(!_0x500c35['plugins']['has']('TableEditing'))return;const _0x43c1f2=_0x500c35['locale'],_0xc80bf9=_0x500c35['plugins']['get']('TrackChangesEditing'),_0x5a5125=_0x500c35['plugins']['get']('TableUtils');_0xc80bf9['descriptionFactory']['registerElementLabel']('table',_0x5c9701=>o(_0x43c1f2,'ELEMENT_TABLE',_0x5c9701)),this['_setupColumnsRowsFixing'](),_0xc80bf9['enableCommand']('insertTable'),_0xc80bf9['enableCommand']('selectTableRow'),_0xc80bf9['enableCommand']('selectTableColumn');for(const _0x1e311d of['insertTableRowAbove','insertTableRowBelow']){const _0x485e8b=_0x500c35['commands']['get'](_0x1e311d);_0xc80bf9['enableCommand'](_0x1e311d,_0x187dde=>{_0x500c35['model']['change'](_0x2b4737=>{_0x187dde();const _0x1c2818='above'===_0x485e8b['order'],_0x537d35=_0x5a5125['getSelectionAffectedTableCells'](_0x3088ae),_0x32fc9e=_0x5a5125['getRowIndexes'](_0x537d35),_0x2f66d4=_0x1c2818?_0x32fc9e['first']-0x1:_0x32fc9e['last']+0x1,_0x30b042=_0x537d35[0x0]['findAncestor']('table'),_0x35cffc=_0x5a5125['createTableWalker'](_0x30b042,{'startRow':_0x2f66d4,'endRow':_0x2f66d4}),_0x1355b5=Array['from'](_0x35cffc)['map'](_0x22287b=>_0x2b4737['createRangeOn'](_0x22287b['cell']));_0xc80bf9['markMultiRangeInsertion'](_0x1355b5,'tableRow');});});}for(const _0x56c73f of['insertTableColumnLeft','insertTableColumnRight']){const _0xe1742a=_0x500c35['commands']['get'](_0x56c73f);_0xc80bf9['enableCommand'](_0x56c73f,_0x5c24d0=>{_0x500c35['model']['change'](_0x57e03d=>{_0x5c24d0();const _0x2813fc='left'===_0xe1742a['order'],_0x175764=_0x5a5125['getSelectionAffectedTableCells'](_0x3088ae),_0x4b43cd=_0x5a5125['getColumnIndexes'](_0x175764),_0x3f8b55=_0x2813fc?_0x4b43cd['first']-0x1:_0x4b43cd['last']+0x1,_0x40ccc8=_0x175764[0x0]['findAncestor']('table'),_0x1245e9=_0x5a5125['createTableWalker'](_0x40ccc8,{'startRow':0x0,'column':_0x3f8b55,'includeAllSlots':!0x1}),_0x2b6449=Array['from'](_0x1245e9)['map'](_0x42a182=>_0x57e03d['createRangeOn'](_0x42a182['cell']));_0xc80bf9['markMultiRangeInsertion'](_0x2b6449,'tableColumn');});});}for(const _0x1ff30a of['removeTableRow','removeTableColumn']){const _0x107fc5=_0x1ff30a['substr'](0xb),_0x3d3690=_0x107fc5['toLowerCase'](),_0x34bfe5=_0x3d3690['substr'](0x0,0x3)+'span',_0x2fcf55='table'+_0x107fc5,_0x2d9d4a='min'+_0x107fc5,_0x52d943='max'+_0x107fc5;_0xc80bf9['enableCommand'](_0x1ff30a,()=>{_0x500c35['model']['change'](_0xcf9497=>{const _0x14b4a6=_0x5a5125['getSelectionAffectedTableCells'](_0x3088ae),_0x116db2=_0x14b4a6[0x0]['findAncestor']('table');let _0x1acc24;if('removeTableRow'==_0x1ff30a){const _0x42317e=_0x5a5125['getRowIndexes'](_0x14b4a6);_0x1acc24={'startRow':_0x42317e['first'],'endRow':_0x42317e['last'],'includeAllSlots':!0x0};}else{const _0xd7ac9b=_0x5a5125['getColumnIndexes'](_0x14b4a6);_0x1acc24={'startColumn':_0xd7ac9b['first'],'endColumn':_0xd7ac9b['last'],'includeAllSlots':!0x0};}const _0x5a5d10=_0x5a5125['createTableWalker'](_0x116db2,_0x1acc24),_0x253589=Array['from'](_0x5a5d10)['map'](({cell:_0x7c5f0b})=>_0x7c5f0b),_0xd4f41a=Ee(_0x253589['filter'](_0x1c5551=>_0x1c5551['hasAttribute'](_0x34bfe5))),_0x4cce80=Ee(_0x253589['filter'](_0x3d0299=>!_0x3d0299['hasAttribute'](_0x34bfe5)))['map'](_0x26253e=>_0xcf9497['createRangeOn'](_0x26253e)),_0x14da37=_0xc80bf9['markMultiRangeDeletion'](_0x4cce80,_0x2fcf55);if(_0x14da37&&('tableRow'==_0x14da37['subType']||'tableColumn'==_0x14da37['subType'])){const _0xe9daca=this['_getSuggestionCoords'](_0x14da37);for(const _0x4d28cf of _0xd4f41a){const _0x296105=_0xcf9497['createRangeOn'](_0x4d28cf),_0x1ca490=_0x5a5125['getCellLocation'](_0x4d28cf),_0x40e55b=_0x4d28cf['getAttribute'](_0x34bfe5)-0x1,_0x5ea826=_0xe9daca[_0x2d9d4a],_0x59608e=_0xe9daca[_0x52d943];_0x5ea826<=_0x1ca490[_0x3d3690]&&_0x1ca490[_0x3d3690]+_0x40e55b<=_0x59608e&&_0x14da37['addRange'](_0x296105);}}});});}function _0x59362e(_0x567669){const _0x4fefc6=Array['from'](_0x3088ae['getRanges']())['map'](_0x453ed9=>_0x24837b['fromRange'](_0x453ed9));_0x500c35['model']['change'](_0x416338=>{const _0x33657c=_0x416338['batch'];_0x567669=_0x567669['filter'](_0x49bea6=>'$graveyard'!=_0x49bea6['root']['rootName']),_0x416338['setSelection'](_0x567669),_0x500c35['commands']['get']('removeTableRow')['refresh'](),_0x500c35['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x500c35['model']['enqueueChange'](()=>{_0x500c35['model']['enqueueChange'](_0x33657c,_0x4c00c1=>{const _0x1031dd=_0x4fefc6['filter'](_0x189197=>'$graveyard'!=_0x189197['root']['rootName']);_0x1031dd['length']>0x0&&_0x4c00c1['setSelection'](_0x1031dd);for(const _0x3267a2 of _0x4fefc6)_0x3267a2['detach']();});});});}function _0x559548(_0x375698){_0x500c35['model']['change'](_0x30a642=>{const _0x1adc57=Array['from'](_0x3088ae['getRanges']())['map'](_0xbfa6c7=>_0x24837b['fromRange'](_0xbfa6c7)),_0x3b2f0f=[];for(const _0x5c23b7 of _0x375698)for(const _0x134641 of _0x5c23b7['getItems']({'shallow':!0x0}))_0x3b2f0f['push'](_0x134641);for(const _0x45ca98 of _0x3b2f0f)'$graveyard'!=_0x45ca98['root']['rootName']&&(_0x30a642['setSelection'](_0x30a642['createPositionAt'](_0x45ca98,0x0)),_0x500c35['commands']['get']('removeTableColumn')['refresh'](),_0x500c35['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x57bcbd=_0x1adc57['filter'](_0x5deb46=>'$graveyard'!=_0x5deb46['root']['rootName']);_0x57bcbd['length']>0x0&&_0x30a642['setSelection'](_0x57bcbd);for(const _0x1b483f of _0x1adc57)_0x1b483f['detach']();});}function _0x507061(_0x3074ba,_0x794f78){return _0x794f78['every'](_0x4b83e4=>_0x3074ba['some'](_0x43d681=>_0x43d681['end']['isEqual'](_0x4b83e4['start'])||_0x4b83e4['end']['isEqual'](_0x43d681['start'])));}function _0x21173a(_0x11a0a9,_0x307436){return!_0x11a0a9['some'](_0x15dd2d=>_0x307436['some'](_0x3222c3=>_0x15dd2d['isIntersecting'](_0x3222c3)))&&_0x11a0a9['some'](_0x3a87ef=>_0x307436['some'](_0x257e53=>_0x3a87ef['end']['isTouching'](_0x257e53['start'])));}_0x500c35['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cf0ce,_0x853dc3,_0x149fe7)=>{if(!_0x149fe7['options']['showSuggestionHighlights'])return;const _0x52360a=_0x853dc3['item'];if(!_0x52360a)return;const _0x19cf4f=_0x149fe7['mapper']['toViewElement'](_0x52360a);function _0x5f5aa2(_0xef9079){return Array['isArray'](_0xef9079)?_0xef9079:[_0xef9079];}_0x19cf4f&&'tableCell'===_0x52360a['name']&&_0x43bcd0(_0x19cf4f,_0x149fe7['writer'],(_0x401de7,_0x5ce7a1,_0x2b7aa6)=>_0x2b7aa6['addClass'](_0x5f5aa2(_0x5ce7a1['classes']),_0x401de7),(_0x322211,_0x2bcdc1,_0x4208dc)=>_0x4208dc['removeClass'](_0x5f5aa2(_0x2bcdc1['classes']),_0x322211));},{'priority':'highest'}),_0xc80bf9['descriptionFactory']['registerDescriptionCallback'](_0x3e60df=>{if('insertion'!=_0x3e60df['type']&&'deletion'!=_0x3e60df['type'])return;const _0x24a536=_0x3e60df['getContainedElement']();if(null!=_0x24a536&&_0x24a536['is']('element','table')){if('insertion'==_0x3e60df['type']){const _0x19e025=_0x3e60df['getItems']()['filter'](_0x21a768=>_0x21a768['is']('$textProxy'))['map'](_0x3a9b4d=>_0x3a9b4d['data']);if(_0x19e025['length'])return{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19e025['join']('\x20')+'\x22'))};}if('deletion'==_0x3e60df['type']){const _0xd34f89=_0x3e60df['getItems']()['filter'](_0x1d650d=>_0x1d650d['is']('$textProxy'))['map'](_0x18e979=>_0x18e979['data']);if(_0xd34f89['length'])return{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd34f89['join']('\x20')+'\x22'))};}}}),_0xc80bf9['descriptionFactory']['registerDescriptionCallback'](_0x5467c7=>{if('tableRow'==_0x5467c7['subType']){const _0x21a4bd=_0x5467c7['getItems']()['filter'](_0x1a187d=>_0x1a187d['is']('$textProxy'))['map'](_0x1e9f39=>_0x1e9f39['data']),_0x4c04aa=this['_getSuggestionCoords'](_0x5467c7),_0x141fd7=_0x4c04aa['maxRow']-_0x4c04aa['minRow']+0x1;if('insertion'==_0x5467c7['type'])return _0x21a4bd['length']?{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141fd7,'\x22'+_0x21a4bd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW',_0x141fd7))};if('deletion'==_0x5467c7['type'])return _0x21a4bd['length']?{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141fd7,'\x22'+_0x21a4bd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW',_0x141fd7))};}if('tableColumn'==_0x5467c7['subType']){const _0x307c12=_0x5467c7['getItems']()['filter'](_0x3bdf74=>_0x3bdf74['is']('$textProxy'))['map'](_0x30d597=>_0x30d597['data']),_0x359b3a=this['_getSuggestionCoords'](_0x5467c7),_0x37944d=_0x359b3a['maxColumn']-_0x359b3a['minColumn']+0x1;if('insertion'==_0x5467c7['type'])return _0x307c12['length']?{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37944d,'\x22'+_0x307c12['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN',_0x37944d))};if('deletion'==_0x5467c7['type'])return _0x307c12['length']?{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37944d,'\x22'+_0x307c12['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN',_0x37944d))};}}),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x59362e),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x59362e),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x559548),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x559548),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x507061),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x507061),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21173a),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21173a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x438a19=this['editor'],_0x13b2d7=_0x438a19['model']['document']['selection'];return(_0xf47928,_0x4aefce)=>{_0x438a19['model']['change'](_0x3ce5ac=>{const {commandName:_0x4e4eff,commandParams:_0x2778cc}=_0x4aefce;let _0x4f184c=_0xf47928[0x0]['end']['nodeBefore'];_0x2778cc&&_0x2778cc[0x0]&&!0x1===_0x2778cc[0x0]['forceValue']&&(_0x4f184c=_0xf47928[0x0]['start']['nodeAfter']);const _0x3e7daf=_0x3ce5ac['createRangeIn'](_0x4f184c);if('$graveyard'==_0x3e7daf['root']['rootName'])return;const _0x5534d4=Array['from'](_0x13b2d7['getRanges']())['map'](_0x5c1eb4=>_0x24837b['fromRange'](_0x5c1eb4));_0x3ce5ac['setSelection'](_0x3e7daf),_0x438a19['commands']['get'](_0x4e4eff)['refresh'](),_0x2778cc['push']({'forceDefaultExecution':!0x0}),_0x438a19['execute'](_0x4e4eff,..._0x2778cc);const _0x183aa3=_0x5534d4['filter'](_0x53ba65=>'$graveyard'!=_0x53ba65['root']['rootName']);_0x183aa3['length']>0x0&&_0x3ce5ac['setSelection'](_0x183aa3);for(const _0x1da74a of _0x5534d4)_0x1da74a['detach']();});};}['_getCoordsForCells'](_0x26882d){const _0x22d7f7=this['editor']['plugins']['get']('TableUtils');let _0x73c09b=Number['MAX_SAFE_INTEGER'],_0x3534fa=Number['MIN_SAFE_INTEGER'],_0x524cfa=Number['MAX_SAFE_INTEGER'],_0x2dc0b4=Number['MIN_SAFE_INTEGER'];for(const _0x37a479 of _0x26882d){if('$graveyard'==_0x37a479['root']['rootName'])continue;const {row:_0x22554b,column:_0x5d4fa0}=_0x22d7f7['getCellLocation'](_0x37a479),_0x28a0d6=_0x37a479['hasAttribute']('rowspan')?_0x37a479['getAttribute']('rowspan')-0x1:0x0,_0x5c089e=_0x37a479['hasAttribute']('colspan')?_0x37a479['getAttribute']('colspan')-0x1:0x0;_0x73c09b=_0x22554b<_0x73c09b?_0x22554b:_0x73c09b,_0x3534fa=_0x22554b+_0x28a0d6>_0x3534fa?_0x22554b+_0x28a0d6:_0x3534fa,_0x524cfa=_0x5d4fa0<_0x524cfa?_0x5d4fa0:_0x524cfa,_0x2dc0b4=_0x5d4fa0+_0x5c089e>_0x2dc0b4?_0x5d4fa0+_0x5c089e:_0x2dc0b4;}return{'minRow':_0x73c09b,'maxRow':_0x3534fa,'minColumn':_0x524cfa,'maxColumn':_0x2dc0b4};}['_setupColumnsRowsFixing'](){const _0x460e3e=this['editor'],_0xaf77a4=_0x460e3e['plugins']['get']('TrackChangesEditing'),_0x3c5a62=_0x460e3e['plugins']['get']('TableUtils');_0x460e3e['model']['document']['on']('change:data',()=>{const _0x89cf32=Array['from'](_0x460e3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x171e11,data:_0x5e457a}of _0x89cf32){const {group:_0x118f92,id:_0x40c74f,subType:_0x168296}=_0xaf77a4['_splitMarkerName'](_0x171e11);if('suggestion'!=_0x118f92)continue;if(null!=_0x5e457a['oldRange'])continue;const _0x101dfa=_0xaf77a4['getSuggestion'](_0x40c74f);this['_tablePostFixingSubtypes']['includes'](_0x168296)&&this['_tableSuggestions']['add'](_0x101dfa);}},{'priority':'low'});const _0x1c909d=(_0x5b4708,_0xfe70ae)=>{let _0x53a8ad=!0x1;const _0x5533a5=_0xfe70ae['createRangeOn'](_0x5b4708),_0x2e9528=_0x5b4708['findAncestor']('table'),_0x5a8029=_0x3c5a62['getCellLocation'](_0x5b4708);for(const _0x3199b5 of this['_tableSuggestions']){const _0x290582=_0x3199b5['subType'],_0x5f3358=_0x290582['startsWith']('tablePaste'),_0x14b7e5=_0x290582['substr'](_0x5f3358?0xa:0x5),_0xff7abc=_0x14b7e5['toLowerCase'](),_0xb51aa2=_0xff7abc['substr'](0x0,0x3)+'span',_0x5af73a='min'+_0x14b7e5,_0x2f35ad='max'+_0x14b7e5;if(!_0x3199b5['isInContent'])continue;if(_0x2e9528!=_0x3199b5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3199b5['isIntersectingWithRange'](_0x5533a5))continue;const _0x38bd9b=_0x5b4708['hasAttribute'](_0xb51aa2)?_0x5b4708['getAttribute'](_0xb51aa2)-0x1:0x0,_0x4b50da=this['_getSuggestionCoords'](_0x3199b5),_0x329ac3=_0x4b50da[_0x5af73a],_0x442536=_0x4b50da[_0x2f35ad];_0x329ac3<=_0x5a8029[_0xff7abc]&&_0x5a8029[_0xff7abc]+_0x38bd9b<=_0x442536&&(_0x3199b5['addRange'](_0x5533a5),_0x53a8ad=!0x0);}return _0x53a8ad;};_0x460e3e['model']['document']['registerPostFixer'](_0x31969c=>{let _0x296855=!0x1;for(const _0x1caaa2 of _0x460e3e['model']['document']['differ']['getChanges']())if('insert'==_0x1caaa2['type']){if('tableRow'==_0x1caaa2['name']){for(const _0x257255 of _0x1caaa2['position']['nodeAfter']['getChildren']())_0x296855=_0x296855||_0x1c909d(_0x257255,_0x31969c);}else'tableCell'==_0x1caaa2['name']&&(_0x296855=_0x296855||_0x1c909d(_0x1caaa2['position']['nodeAfter'],_0x31969c));}return _0x296855;});}['_getSuggestionCoords'](_0xf98ae7){return this['_getCoordsForCells'](_0xf98ae7['getRanges']()['map'](_0x57e5ad=>_0x57e5ad['start']['nodeAfter']));}}function Ee(_0xa8eb47){return Array['from'](new Set(_0xa8eb47)['values']());}class St extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x45462b=this['editor'],_0x48c941=_0x45462b['model']['document']['selection'],_0x5a6f36=_0x45462b['locale'];if(!_0x45462b['plugins']['has']('TableEditing'))return;const _0x8f1dd0=_0x45462b['plugins']['get']('TrackChangesEditing'),_0x5e26ef=_0x45462b['plugins']['get']('TableUtils'),_0x3ab1cf=_0x45462b['plugins']['get'](jt);_0x3ab1cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8f1dd0['enableCommand']('mergeTableCells',()=>{const _0x1fedce=_0x5e26ef['getSelectionAffectedTableCells'](_0x45462b['model']['document']['selection']);_0x45462b['model']['change'](()=>{_0x8f1dd0['markMultiRangeBlockFormat'](_0x1fedce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45462b['commands']['get']('mergeTableCells')['on']('execute',(_0x440899,_0x48741a)=>{_0x45462b['commands']['get']('trackChanges')['value']&&(_0x48741a['length']>0x0&&_0x48741a[_0x48741a['length']-0x1]&&_0x48741a[_0x48741a['length']-0x1]['forceDefaultExecution']||_0x8f1dd0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x440899['stop']());},{'priority':'highest'});for(const _0x2a8334 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x354116=_0x45462b['commands']['get'](_0x2a8334);_0x8f1dd0['enableCommand'](_0x2a8334,()=>{const _0x53b0d6=_0x45462b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f10b9=>_0x3f10b9['is']('element','tableCell')),_0x5b711c=_0x354116['value'];_0x45462b['model']['change'](()=>{_0x8f1dd0['markMultiRangeBlockFormat']([_0x53b0d6,_0x5b711c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1dfd6b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3c9017=_0x45462b['commands']['get'](_0x1dfd6b);_0x8f1dd0['enableCommand'](_0x1dfd6b,()=>{const _0x56efc7=_0x5e26ef['getSelectionAffectedTableCells'](_0x45462b['model']['document']['selection'])[0x0],_0x5a62d1=_0x56efc7['findAncestor']('table'),{column:_0x16b34b,row:_0x18af96}=_0x5e26ef['getCellLocation'](_0x56efc7);let _0x310183=[];if('horizontally'==_0x3c9017['direction']){const _0x2df314=_0x5e26ef['createTableWalker'](_0x5a62d1,{'startRow':_0x18af96,'endRow':_0x18af96,'includeAllSlots':!0x0});_0x310183=Array['from'](_0x2df314)['map'](_0x1c367c=>_0x1c367c['cell']);}else{const _0x52543b=_0x5e26ef['createTableWalker'](_0x5a62d1,{'column':_0x16b34b,'includeAllSlots':!0x0});_0x310183=Array['from'](_0x52543b)['map'](_0x8c453e=>_0x8c453e['cell']);}_0x45462b['model']['change'](_0x7f98be=>{_0x8f1dd0['markBlockFormat'](_0x7f98be['createRangeOn'](_0x56efc7),{'commandName':_0x1dfd6b,'commandParams':[]},_0x310183,_0x1dfd6b);});});}_0x8f1dd0['descriptionFactory']['registerDescriptionCallback'](_0x77d5ed=>{if('formatBlock'!=_0x77d5ed['type']&&'formatInline'!=_0x77d5ed['type'])return;const {data:_0x4d4a80}=_0x77d5ed;return _0x4d4a80&&'mergeTableCells'==_0x4d4a80['commandName']?{'type':'format','content':o(_0x5a6f36,'*Merge\x20cells*')}:void 0x0;}),_0x8f1dd0['descriptionFactory']['registerDescriptionCallback'](_0x33b7d7=>{if('formatBlock'!=_0x33b7d7['type']&&'formatInline'!=_0x33b7d7['type'])return;const {data:_0x188930}=_0x33b7d7;return _0x188930?'splitTableCellVertically'==_0x188930['commandName']?{'type':'format','content':o(_0x5a6f36,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x188930['commandName']?{'type':'format','content':o(_0x5a6f36,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x23b7f9=_0x3ab1cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x112e7e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8f1dd0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x112e7e,'accept',_0x23b7f9);for(const _0x1c0af3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x8f1dd0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c0af3,'accept',_0x23b7f9);_0x8f1dd0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5bbc2d=>{_0x45462b['model']['change'](_0x4063b0=>{const _0x139c37=Array['from'](_0x48c941['getRanges']())['map'](_0x1d2fb1=>_0x24837b['fromRange'](_0x1d2fb1));_0x4063b0['setSelection'](_0x5bbc2d),_0x45462b['commands']['get']('mergeTableCells')['refresh'](),_0x45462b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50ee1d=_0x139c37['filter'](_0x19d51d=>'$graveyard'!=_0x19d51d['root']['rootName']);_0x50ee1d['length']>0x0&&_0x4063b0['setSelection'](_0x50ee1d);for(const _0xbda60c of _0x139c37)_0xbda60c['detach']();});});for(const _0x25b2dc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2ae6f0=_0x45462b['commands']['get'](_0x25b2dc);_0x2ae6f0['on']('set:isEnabled',(_0x3d754e,_0x17c753,_0x4d933d)=>{if(_0x4d933d){const _0x5ac8ab=_0x45462b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xea7fa8=>_0xea7fa8['is']('element','tableCell'));this['_areMergableCells'](_0x2ae6f0['value'],_0x5ac8ab)||(_0x3d754e['return']=!0x1,_0x3d754e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x9482d4=this['editor']['commands']['get']('mergeTableCells'),_0x154c0e=this['editor']['plugins']['get']('TableUtils');if(!_0x9482d4['isEnabled'])return!0x1;const _0xa2ef56=_0x154c0e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x58406e of _0xa2ef56)for(const _0x243b23 of _0xa2ef56)if(_0x58406e!=_0x243b23&&!this['_areMergableCells'](_0x58406e,_0x243b23))return!0x1;return!0x0;}['_areMergableCells'](_0x2f5644,_0x7345f7){const _0x5f310e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb97f0b=this['editor']['model']['createRangeOn'](_0x2f5644),_0x173710=this['editor']['model']['createRangeOn'](_0x7345f7),_0x39c220=new Set(),_0x359709=new Set();for(const _0x46767c of _0x5f310e['getSuggestions']())if(('insertion'==_0x46767c['type']||'deletion'==_0x46767c['type']||'mergeTableCells'==_0x46767c['subType'])&&_0x46767c['isInContent']){for(const _0x346d14 of _0x46767c['getRanges']())_0x346d14['containsRange'](_0xb97f0b,!0x0)&&_0x39c220['add'](_0x46767c['type']+':'+_0x46767c['author']['id']),_0x346d14['containsRange'](_0x173710,!0x0)&&_0x359709['add'](_0x46767c['type']+':'+_0x46767c['author']['id']);}if(_0x39c220['size']!=_0x359709['size'])return!0x1;for(const _0x32364d of _0x39c220)if(!_0x359709['has'](_0x32364d))return!0x1;return!0x0;}}class At extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x46962f=this['editor'];if(!_0x46962f['plugins']['has']('TableEditing'))return;const _0x343e9c=_0x46962f['locale'],_0x360bc7=_0x46962f['plugins']['get']('TrackChangesEditing');_0x360bc7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x360bc7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x360bc7['registerBlockAttribute']('headingRows'),_0x360bc7['registerBlockAttribute']('headingColumns'),_0x360bc7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x343e9c,'FORMAT_HEADER_ROW')),_0x360bc7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x343e9c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f8664=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15a3e2=this['editor']['plugins']['get']('TableUtils'),_0x29117c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x28edfb({showActiveMarker:_0x1ee162=!0x0,setDataAttribute:_0x352d2e=!0x0}={}){return(_0x32c5fe,_0x214835,_0x2ef40d)=>{const {type:_0x1a6be3,id:_0x265c38}=_0x4f8664['_splitMarkerName'](_0x214835['markerName']),_0x203d70=_0x4f8664['getSuggestion'](_0x265c38),_0x2e32e7=_0x203d70['data'];if('formatBlock'!=_0x203d70['type']||!_0x2e32e7||'setTableColumnHeader'!=_0x2e32e7['commandName'])return;if(_0x214835['item'])return void _0x32c5fe['stop']();if(!_0x2ef40d['consumable']['consume'](_0x214835['markerRange'],_0x32c5fe['name']))return;const _0x58b4d3=_0x214835['markerRange']['start']['nodeAfter'],_0x3c4106=_0x214835['markerRange']['end']['nodeBefore'],_0x285807=_0x58b4d3['parent']['parent'],{column:_0x3be161}=_0x15a3e2['getCellLocation'](_0x58b4d3),{column:_0x422d66}=_0x15a3e2['getCellLocation'](_0x3c4106);for(let _0x5552a5=_0x3be161;_0x5552a5<=_0x422d66;_0x5552a5++){const _0x8e886d=_0x15a3e2['createTableWalker'](_0x285807,{'column':_0x5552a5,'includeAllSlots':!0x1});for(const _0x19f163 of _0x8e886d){const _0x2fb040=_0x19f163['cell'],_0x168383=_0x2ef40d['mapper']['toViewElement'](_0x2fb040);_0x2ef40d['writer']['addClass']('ck-suggestion-marker-'+_0x1a6be3,_0x168383),_0x352d2e&&_0x2ef40d['writer']['setAttribute']('data-suggestion',_0x265c38,_0x168383),_0x2ef40d['mapper']['bindElementToMarker'](_0x168383,_0x214835['markerName']),_0x1ee162&&(_0x4f8664['activeMarkers']['includes'](_0x214835['markerName'])?_0x2ef40d['writer']['addClass']('ck-suggestion-marker--active',_0x168383):_0x2ef40d['writer']['removeClass']('ck-suggestion-marker--active',_0x168383));}}};}_0x4f8664['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x29117c),_0x4f8664['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x29117c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x28edfb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f4fa4,_0x507a03,_0x139d35)=>{_0x139d35['options']['showSuggestionHighlights']&&_0x28edfb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f4fa4,_0x507a03,_0x139d35);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x94f598,_0x48c171,_0x36d847)=>{const {type:_0x4d5d6d,id:_0x1fb878}=_0x4f8664['_splitMarkerName'](_0x48c171['markerName']),_0x36903e=_0x4f8664['getSuggestion'](_0x1fb878),_0x1aa0c9=_0x36903e['data'];if('formatBlock'!=_0x36903e['type']||!_0x1aa0c9||'setTableColumnHeader'!=_0x1aa0c9['commandName'])return;const _0x4d8bf8=_0x36d847['mapper']['markerNameToElements'](_0x48c171['markerName']);if(_0x4d8bf8){for(const _0x3cee80 of _0x4d8bf8)_0x36d847['writer']['removeClass']('ck-suggestion-marker-'+_0x4d5d6d,_0x3cee80),_0x36d847['writer']['removeClass']('ck-suggestion-marker--active',_0x3cee80),_0x36d847['writer']['removeAttribute']('data-suggestion',_0x3cee80),_0x36d847['mapper']['unbindElementFromMarkerName'](_0x3cee80,_0x48c171['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36ba24=this['editor'],_0x194793=_0x36ba24['locale'];function _0x49597d(_0x1af864){return{'type':'format','content':o(_0x194793,'*Format:*\x20%0',_0x1af864)};}_0x36ba24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x613146=>{if('formatBlock'!=_0x613146['type'])return;const {data:_0x53c2dd}=_0x613146;if(_0x53c2dd){if('setTableRowHeader'==_0x53c2dd['commandName']){const _0x3f6671=_0x53c2dd['commandParams'][0x0]['forceValue'];return _0x49597d(o(_0x194793,_0x3f6671?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53c2dd['commandName']){const _0x5101ea=_0x53c2dd['commandParams'][0x0]['forceValue'];return _0x49597d(o(_0x194793,_0x5101ea?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x57c02e=>[_0x57c02e,null]));class It extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x311e3d=this['editor'];if(!_0x311e3d['plugins']['has']('TableClipboard'))return;const _0x3e5f75=_0x311e3d['plugins']['get']('TrackChangesEditing'),_0x13f0a0=_0x311e3d['plugins']['get']('TableUtils'),_0x44e17e=_0x311e3d['plugins']['get'](jt),_0x5d7d07=_0x311e3d['plugins']['get']('TableClipboard');_0x44e17e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x311e3d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x311e3d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a1339=null;_0x311e3d['model']['on']('insertContent',(_0x1d91d4,_0x53d138)=>{const [_0x28692c,_0x512cc3]=_0x53d138,_0x42bc7a=_0x53d138[_0x53d138['length']-0x1];_0x42bc7a&&_0x42bc7a['forceDefaultExecution']||_0x3e5f75['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x235e7a,_0x48fd61,_0x1967f1,_0x49a4a9,_0x35d223){if(_0x48fd61&&!_0x48fd61['is']('documentSelection'))return!0x1;const _0x1de774=_0x35d223['getTableIfOnlyTableInContent'](_0x235e7a,_0x1967f1);if(!_0x1de774||!he(_0x1de774,void 0x0,_0x49a4a9))return!0x1;const _0x3e1489=_0x49a4a9['getSelectionAffectedTableCells'](_0x1967f1['document']['selection']);if(!_0x3e1489['length'])return!0x1;const _0x136467=_0x3e1489[0x0]['findAncestor']('table'),_0xa9f251=_0x49a4a9['getRowIndexes'](_0x3e1489),_0x319d71=_0x49a4a9['getColumnIndexes'](_0x3e1489),_0x21bfa9={'startRow':_0xa9f251['first'],'endRow':_0xa9f251['last'],'startColumn':_0x319d71['first'],'endColumn':_0x319d71['last']};return 0x1==_0x3e1489['length']&&(_0x21bfa9['endRow']+=_0x49a4a9['getRows'](_0x1de774)-0x1,_0x21bfa9['endColumn']+=_0x49a4a9['getColumns'](_0x1de774)-0x1),he(_0x136467,_0x21bfa9,_0x49a4a9);}(_0x28692c,_0x512cc3,_0x311e3d['model'],_0x13f0a0,_0x5d7d07)&&(_0x1d91d4['stop'](),_0x1a1339={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x311e3d['model']['change'](()=>{_0x311e3d['model']['insertContent'](_0x53d138[0x0],_0x53d138[0x1],_0x53d138[0x2],{'forceDefaultExecution':!0x0});const _0x37abc9=_0x22411c(),{rowInsertionRanges:_0x227748,columnInsertionRanges:_0x2de309,insertionRanges:_0x2b3cb1,deletionRanges:_0x2c4bf9,cells:_0x271304}=_0x1a1339;_0x227748['length']&&_0x3e5f75['markMultiRangeInsertion'](_0x227748,'tablePasteRow',{'tablePasteChainId':_0x37abc9}),_0x2de309['length']&&_0x3e5f75['markMultiRangeInsertion'](_0x2de309,'tablePasteColumn',{'tablePasteChainId':_0x37abc9}),_0x2b3cb1['length']&&(_0x3e5f75['markMultiRangeInsertion'](_0x2b3cb1,'tablePaste',{'tablePasteChainId':_0x37abc9,'skipNestingCheck':!0x0}),_0x2b3cb1['forEach'](_0x15bda5=>_0x15bda5['detach']?.())),_0x2c4bf9['length']&&(_0x3e5f75['markMultiRangeDeletion'](_0x2c4bf9,'tablePaste',{'tablePasteChainId':_0x37abc9,'skipNestingCheck':!0x0}),_0x2c4bf9['forEach'](_0xa44e6e=>_0xa44e6e['detach']?.()));const _0x35483f=_0x3e5f75['markMultiRangeBlockFormat'](_0x271304['map'](({element:_0x3d72ce})=>_0x3d72ce),{'formatGroupId':_0x22411c()},[],'tablePasteCell',{'tablePasteChainId':_0x37abc9});if(_0x35483f){const _0x2462a1=_0x35483f['getMarkers'](),_0x2352a1=[];for(const {element:_0x3eed8a,attributes:_0x55b984}of _0x271304){if(!_0x55b984)continue;const _0x4e84e6=_0x311e3d['model']['createRangeOn'](_0x3eed8a),_0x530d95=_0x2462a1['find'](_0x3aa6af=>_0x3aa6af['getRange']()['isEqual'](_0x4e84e6));_0x530d95&&_0x2352a1['push']([_0x530d95['name'],_0x55b984]);}_0x2352a1['length']&&_0x35483f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2352a1));}_0x1a1339=null;}));},{'priority':_0x4d67f8['high']+0xa}),_0x311e3d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x427968,_0x420d81)=>{const [_0x3cbe91,_0x4b41bf,,_0x4f4c47]=_0x420d81;if(!_0x1a1339)return;_0x427968['stop']();const _0x4c147d=_0x3cbe91['cell'],_0x4923b8=_0x4b41bf,_0x88a85c=Pe(_0x4c147d),_0x22aba6=Pe(_0x4923b8);_0x427968['return']=_0x4c147d;let _0x1eff3a=null,_0x1413e2=null;if(_0x22aba6||_0x88a85c){if(_0x88a85c&&!_0x22aba6){_0x4f4c47['remove'](_0x4c147d['getChild'](0x0));for(const _0x3d1929 of Array['from'](_0x4923b8['getChildren']()))_0x4f4c47['insert'](_0x3d1929,_0x4c147d,'end');const _0x2d48c7=_0x1a1339['rowInsertionIndexes']['includes'](_0x3cbe91['row']),_0x2a3084=_0x1a1339['columnInsertionIndexes']['includes'](_0x3cbe91['column']);_0x2d48c7||_0x2a3084||(_0x1eff3a=_0x24837b['fromRange'](_0x4f4c47['createRangeIn'](_0x4c147d)));}else _0x22aba6&&!_0x88a85c&&(_0x1413e2=_0x4f4c47['createRangeIn'](_0x4c147d));}else{const _0x538cbd=_0x4f4c47['createElement']('tableCellSuggestion'),_0x10d3a2=_0x4f4c47['createElement']('tableCellSuggestion');_0x4f4c47['wrap'](_0x4f4c47['createRangeIn'](_0x4c147d),_0x10d3a2),_0x4f4c47['insert'](_0x538cbd,_0x4c147d,0x0);for(const _0x3d9506 of Array['from'](_0x4923b8['getChildren']()))_0x4f4c47['insert'](_0x3d9506,_0x538cbd,'end');_0x1eff3a=_0x24837b['fromRange'](_0x4f4c47['createRangeOn'](_0x538cbd)),_0x1413e2=_0x24837b['fromRange'](_0x4f4c47['createRangeOn'](_0x10d3a2));}const _0x159edb=Array['from'](_0x4923b8['getAttributes']())['filter'](([_0x295167])=>ge['includes'](_0x295167));_0x1a1339['cells']['push']({'element':_0x4c147d,'attributes':_0x159edb['length']?Object['fromEntries'](_0x159edb):null}),_0x1eff3a&&_0x1a1339['insertionRanges']['push'](_0x1eff3a),_0x1413e2&&_0x1a1339['deletionRanges']['push'](_0x1413e2);},{'priority':'high'}),_0x13f0a0['on']('insertColumns',(_0x52d8c6,_0x4fe12a)=>{const [_0x46c65a,_0x5cd583={}]=_0x4fe12a;if(!_0x1a1339)return;const _0x4d3545=_0x5cd583['at']||0x0,_0x7cf52a=_0x5cd583['columns']||0x1;_0x1a1339['columnInsertionIndexes']=new Array(_0x7cf52a)['fill'](_0x4d3545)['map']((_0x104f6e,_0x185bc0)=>_0x104f6e+_0x185bc0);for(const {cell:_0x3348ca}of _0x13f0a0['createTableWalker'](_0x46c65a,{'startColumn':_0x4d3545,'endColumn':_0x4d3545+_0x7cf52a-0x1}))_0x1a1339['columnInsertionRanges']['push'](_0x311e3d['model']['createRangeOn'](_0x3348ca));},{'priority':'low'}),_0x13f0a0['on']('insertRows',(_0x192041,_0x267891)=>{const [_0x43609f,_0xe356fa={}]=_0x267891;if(!_0x1a1339)return;const _0x52d484=_0xe356fa['at']||0x0,_0x51e039=_0xe356fa['rows']||0x1;_0x1a1339['rowInsertionIndexes']=new Array(_0x51e039)['fill'](_0x52d484)['map']((_0x2a8e59,_0x2b08ac)=>_0x2a8e59+_0x2b08ac);for(const {cell:_0x4ffe61}of _0x13f0a0['createTableWalker'](_0x43609f,{'startRow':_0x52d484,'endRow':_0x52d484+_0x51e039-0x1}))_0x1a1339['rowInsertionRanges']['push'](_0x311e3d['model']['createRangeOn'](_0x4ffe61));},{'priority':'low'}),_0x3e5f75['descriptionFactory']['registerDescriptionCallback'](_0x214a53=>{if(_0x214a53['subType']&&_0x214a53['subType']['startsWith']('tablePaste'))return _0x214a53['previous']?{}:{'type':'insertion','content':o(_0x311e3d['locale'],'*Replace\x20table\x20cells*')};});const _0x2ed107=()=>!0x1;for(const _0x1ff09f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3e5f75['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ff09f,'join',_0x2ed107),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ff09f,'join',_0x2ed107),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ff09f,'join',_0x2ed107);_0x3e5f75['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2ed107),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35d7fb,_0x279623,_0x2df5a3)=>{const _0x2b827c=_0x35d7fb['map'](_0x5ebba5=>_0x5ebba5['getContainedElement']())['filter'](_0x5c41d6=>_0x5c41d6),_0x2cf004=new Map(_0x2b827c['map'](_0x1fd5aa=>[_0x1fd5aa,null]));if(_0x1a1339){for(const {element:_0x1f5186,attributes:_0x44a9b9}of _0x1a1339['cells'])_0x44a9b9&&_0x2cf004['set'](_0x1f5186,_0x44a9b9);}else{if(_0x2df5a3&&_0x2df5a3['markerAttributes'])for(const [_0x4d3629,_0x398180]of Object['entries'](_0x2df5a3['markerAttributes'])){const _0x6a0a9c=_0x311e3d['model']['markers']['get'](_0x4d3629),_0xd9d17f=_0x6a0a9c?_0x6a0a9c['getRange']()['getContainedElement']():null;_0xd9d17f&&_0x2cf004['set'](_0xd9d17f,_0x398180);}}_0x311e3d['model']['change'](_0x150aa2=>{for(const [_0x520a5c,_0x29c129]of _0x2cf004)_0x150aa2['setAttributes']({...Ce,..._0x29c129},_0x520a5c);});});const _0x56eb13=(_0xad89fc,_0x248a0b)=>{_0x3e5f75['_suggestionFactory']['registerCustomCallback'](_0xad89fc,'tablePaste',_0x248a0b,(_0x29d59a,_0x3b90fa,_0x52e713)=>{_0x311e3d['model']['change'](_0x128335=>{const _0x40e044=[];for(const _0x28707 of _0x29d59a){const _0x29f351=_0x28707['start']['nodeAfter'];_0x29f351['is']('element','tableCellSuggestion')&&_0x40e044['push'](_0x29f351);}_0x3e5f75['_suggestionFactory']['getSuggestionCallback'](_0xad89fc,null,_0x248a0b)(_0x29d59a,_0x3b90fa,_0x52e713);for(const _0x4c0c65 of _0x40e044)'$graveyard'!=_0x4c0c65['root']['rootName']&&_0x128335['unwrap'](_0x4c0c65);});});};_0x56eb13('insertion','accept'),_0x56eb13('insertion','discard'),_0x56eb13('deletion','accept'),_0x56eb13('deletion','discard'),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x187ea9=>{const _0x336253=_0x187ea9['map'](_0x4a0ec8=>_0x4a0ec8['getContainedElement']()),_0x4ef93a=_0x336253[0x0]['findAncestor']('table'),{minRow:_0x340d24,maxRow:_0x40d492}=_0x44e17e['_getCoordsForCells'](_0x336253);_0x13f0a0['removeRows'](_0x4ef93a,{'at':_0x340d24,'rows':_0x40d492-_0x340d24+0x1});}),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1dd79f=>{const _0x1ce17d=_0x1dd79f['map'](_0xe3880a=>_0xe3880a['getContainedElement']()),_0x124a5a=_0x1ce17d[0x0]['findAncestor']('table'),{minColumn:_0x55be82,maxColumn:_0x1aab7f}=_0x44e17e['_getCoordsForCells'](_0x1ce17d);_0x13f0a0['removeColumns'](_0x124a5a,{'at':_0x55be82,'columns':_0x1aab7f-_0x55be82+0x1});});const _0x2b8000=(_0x19e46f,_0x469473)=>{if(!_0x469473['subType']||!_0x469473['subType']['startsWith']('tablePaste'))return;const _0x5f2ba0=_0x469473['attributes']['tablePasteChainId'],_0x253cd1=_0x3e5f75['getSuggestions']()['filter'](_0x4d45f9=>_0x4d45f9['isInContent']&&_0x4d45f9['attributes']&&_0x4d45f9['attributes']['tablePasteChainId']==_0x5f2ba0);_0x253cd1['length']&&_0x469473['getAllAdjacentSuggestions']()['length']!=_0x253cd1['length']&&_0x253cd1['reduce']((_0x3c2322,_0x181844)=>(_0x3c2322['next']=_0x181844,_0x181844['previous']=_0x3c2322,_0x181844));};function _0x4378f5(_0x5e31f8,_0x1e1185=!0x0){const {id:_0x514de7}=_0x3e5f75['_splitMarkerName'](_0x5e31f8['markerName']),_0x45c084=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x495936=_0x3e5f75['activeMarkers']['includes'](_0x5e31f8['markerName']);return _0x495936&&_0x45c084['push']('ck-suggestion-marker--active'),{'classes':_0x45c084,'attributes':{'data-suggestion':_0x514de7},'priority':_0x495936&&_0x1e1185?0xbc2:0xbb8};}_0x3e5f75['on']('suggestionLoaded',_0x2b8000,{'priority':'high'}),_0x3e5f75['on']('suggestionUnloaded',_0x2b8000,{'priority':'high'}),_0x311e3d['model']['document']['registerPostFixer'](()=>{let _0x2a84c6=!0x1;const _0x3db1d3=Array['from'](_0x311e3d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24cf75,data:_0x4926aa}of _0x3db1d3){const {group:_0x4ebd1a,type:_0x45511e,id:_0x580d90}=_0x3e5f75['_splitMarkerName'](_0x24cf75);if('suggestion'!=_0x4ebd1a||'deletion'!=_0x45511e||_0x4926aa['oldRange'])continue;if(!_0x3e5f75['hasSuggestion'](_0x580d90))continue;const _0xc49f87=_0x3e5f75['getSuggestion'](_0x580d90)['getRanges'](),_0x55586a=_0x311e3d['plugins']['get']('Users')['me'];for(const _0x1c0b61 of _0x3e5f75['getSuggestions']()){if(!_0x1c0b61['isInContent']||_0x1c0b61['author']!=_0x55586a)continue;if('formatBlock'!=_0x1c0b61['type']||'tablePasteCell'!=_0x1c0b61['subType'])continue;if(_0x1c0b61['getRanges']()['every'](_0x20a236=>_0xc49f87['some'](_0x4983ee=>_0x4983ee['containsRange'](_0x20a236,!0x0)))){for(const _0x5d6a20 of _0x1c0b61['getAllAdjacentSuggestions']())_0x5d6a20['isInContent']&&(_0x5d6a20['discard'](),_0x2a84c6=!0x0);}}}return _0x2a84c6;}),_0x311e3d['model']['document']['registerPostFixer'](_0x157dd3=>{const _0xf80e78=_0x311e3d['commands']['get']('redo');if(!_0xf80e78||!_0xf80e78['_createdBatches']['has'](_0x157dd3['batch']))return!0x1;let _0x4d7eb4=!0x1;const _0x5581c9=_0x311e3d['plugins']['get']('Users')['me'],_0x2b34b2=_0x311e3d['model']['document']['differ']['getChanges'](),_0x5a180b=Array['from'](_0x311e3d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x142e2d,data:_0x2cde97})=>{const {group:_0x37bcee,subType:_0x5ad269,authorId:_0x5d888a}=_0x3e5f75['_splitMarkerName'](_0x142e2d);return'suggestion'==_0x37bcee&&'tablePaste'==_0x5ad269&&_0x5d888a==_0x5581c9['id']&&!_0x2cde97['oldRange'];});for(const _0x5e5e97 of _0x2b34b2){if('insert'!=_0x5e5e97['type']||'tableCellSuggestion'!=_0x5e5e97['name']||0x1!=_0x5e5e97['length'])continue;const _0x2f514b=_0x157dd3['createRange'](_0x5e5e97['position'],_0x5e5e97['position']['getShiftedBy'](0x1));if(!_0x5a180b['find'](({data:_0x2757d1})=>_0x2757d1['newRange']['isEqual'](_0x2f514b))){for(const {name:_0x1e1eda,data:_0x58b887}of _0x5a180b)if(_0x2f514b['containsRange'](_0x58b887['newRange'])){_0x157dd3['updateMarker'](_0x1e1eda,{'range':_0x2f514b}),_0x4d7eb4=!0x0;break;}}}return _0x4d7eb4;}),_0x311e3d['model']['document']['registerPostFixer'](_0x5d3864=>{let _0x98fedd=!0x1;const _0x51a3d9=_0x311e3d['plugins']['get']('Users')['me'],_0x509940=_0x3e5f75['getSuggestions']()['filter'](_0x11ffce=>_0x11ffce['isInContent']&&_0x11ffce['author']==_0x51a3d9),_0x1229f3=new Set(),_0xc0b64a=new Set();for(const _0x348eeb of _0x509940)if('tablePaste'==_0x348eeb['subType'])for(const _0x3fabd3 of _0x348eeb['getMarkers']()){const _0x4a37f1=_0x3fabd3['getRange']()['getContainedElement']();if(_0x4a37f1){if(_0x4a37f1['is']('element','tableCellSuggestion')&&Pe(_0x4a37f1)){_0x348eeb['removeMarker'](_0x3fabd3['name']),_0x1229f3['add'](_0x4a37f1),_0x98fedd=!0x0;const _0x3660d6=_0x4a37f1['nextSibling'],_0x4f1868=_0x4a37f1['previousSibling'],_0x52dc19=_0x3660d6&&_0x3660d6['is']('element','tableCellSuggestion'),_0x49c91e=_0x4f1868&&_0x4f1868['is']('element','tableCellSuggestion');_0x52dc19&&!_0x1229f3['has'](_0x3660d6)&&_0xc0b64a['add'](_0x3660d6),_0x49c91e&&!_0x1229f3['has'](_0x4f1868)&&_0xc0b64a['add'](_0x4f1868);}else _0x4a37f1['is']('element','paragraph')&&_0x4a37f1['isEmpty']&&(_0x348eeb['removeMarker'](_0x3fabd3['name']),_0x98fedd=!0x0);}}else{if('tablePasteCell'==_0x348eeb['subType']){if(!_0x348eeb['attributes']||!_0x348eeb['attributes']['tablePasteChainId'])continue;const _0x291be0=_0x348eeb['attributes']['markerAttributes'];if(_0x291be0&&Object['keys'](_0x291be0)['length'])continue;const _0x17b66d=_0x348eeb['attributes']['tablePasteChainId'];let _0x5c4f51=!0x0,_0x3b21a2=!0x0;for(const _0x567ca3 of _0x509940)if(_0x567ca3['subType']&&_0x567ca3['subType']['startsWith']('tablePaste')){if(!_0x567ca3['attributes']['tablePasteChainId']){_0x3b21a2=!0x1;break;}if(_0x567ca3['id']!=_0x348eeb['id']&&_0x567ca3['attributes']['tablePasteChainId']==_0x17b66d){_0x5c4f51=!0x1;break;}}_0x3b21a2&&_0x5c4f51&&(_0x348eeb['removeMarkers'](),_0x98fedd=!0x0);}}for(const _0x4b79af of _0x1229f3)_0x5d3864['remove'](_0x4b79af);for(const _0x4153d6 of _0xc0b64a)_0x5d3864['unwrap'](_0x4153d6);return _0x98fedd;}),_0x311e3d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19ad95,_0xd31f1)=>_0x4378f5(_0x19ad95),'converterPriority':'high'}),_0x311e3d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4d6967,_0xc966a8)=>_0xc966a8['options']['showSuggestionHighlights']?_0x4378f5(_0x4d6967,!0x1):null,'converterPriority':'high'});const _0x520819=_0x311e3d['editing']['view'];this['listenTo'](_0x520819['document'],'clipboardOutput',(_0x28bc1b,_0x57e6a1)=>{const _0x501261=[];for(const _0x1b23fe of _0x520819['createRangeIn'](_0x57e6a1['content'])['getItems']())_0x1b23fe['is']('element','suggestion-td')&&_0x501261['push'](_0x1b23fe);_0x520819['change'](_0x2cd14f=>{for(const _0x1a25df of _0x501261)_0x2cd14f['move'](_0x2cd14f['createRangeIn'](_0x1a25df),_0x2cd14f['createPositionBefore'](_0x1a25df)),_0x2cd14f['remove'](_0x1a25df);});});}}function Pe(_0x4466ca){if(_0x4466ca['isEmpty'])return!0x0;const _0x46e5d9=_0x4466ca['getChild'](0x0);return _0x46e5d9['is']('element','paragraph')&&_0x46e5d9['isEmpty'];}function he(_0x24c36a,_0xf07791={},_0x31e3cd){for(const {isAnchor:_0x400d0e,cellHeight:_0x2a890a,cellWidth:_0xa4fdae}of _0x31e3cd['createTableWalker'](_0x24c36a,{'includeAllSlots':!0x0,..._0xf07791}))if(!_0x400d0e||0x1!=_0x2a890a||0x1!=_0xa4fdae)return!0x1;return!0x0;}class vt extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x9aa219=this['editor']['plugins']['get']('TrackChangesEditing');_0x9aa219['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x9aa219['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x9aa219['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9aa219['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x9aa219['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x9aa219['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1b2447,_0x4aa649){const _0x1f0d09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ab10b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xd474f=_0x4aa649['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cda05=_0x2ab10b['getColumnGroupElement'](_0xd474f);let _0x513116=_0x3cda05?_0x2ab10b['getTableColumnsWidths'](_0x3cda05):null,_0x13265d=_0xd474f['getAttribute']('tableWidth')||null;const _0x3e6fcb=_0x4aa649['tableWidth']||_0x13265d,_0xc096a4=_0x4aa649['columnWidths']||_0x513116,_0x1cc49a=this['editor']['plugins']['get']('Users')['me'];for(const _0x14221c of _0x1f0d09['getSuggestions']()){const _0x46b865=_0x14221c['getContainedElement']();if('resizeTable'===_0x14221c['subType']&&_0x46b865===_0xd474f){_0x14221c['author']!==_0x1cc49a&&_0x14221c['discard']();const _0x1c733c=_0x14221c['data']['commandParams'];_0x13265d=_0x1c733c[0x0]['tableWidth'],_0x513116=_0x1c733c[0x0]['columnWidths'];break;}}_0x1b2447({'table':_0xd474f,'tableWidth':_0x3e6fcb,'columnWidths':_0xc096a4}),_0x1f0d09['markBlockFormat'](_0xd474f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x13265d,'columnWidths':_0x513116}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x18b585){if('formatBlock'!=_0x18b585['type']&&'formatInline'!=_0x18b585['type'])return;const {data:_0x4a7bae}=_0x18b585;if(_0x4a7bae&&'resizeTable'===_0x4a7bae['formatGroupId']){const _0x258d91='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x258d91)};}}}class Ct extends _0x1367c6{['afterInit'](){const _0x433e2b=this['editor'];_0x433e2b['plugins']['has']('Template')&&_0x433e2b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1367c6{['afterInit'](){const _0x1d9625=this['editor'];if(!_0x1d9625['commands']['get']('insertTableOfContents'))return;_0x1d9625['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4efd2d=_0x1d9625['plugins']['get']('TrackChangesEditing'),_0x1bb3b1=_0x1d9625['locale'];_0x4efd2d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12475e=>o(_0x1bb3b1,'ELEMENT_TABLE_OF_CONTENTS',_0x12475e));}}class Dt extends _0x1367c6{['afterInit'](){const _0x13721e=this['editor'];if(!_0x13721e['plugins']['has']('Title'))return;const _0x233e0a=_0x13721e['plugins']['get']('TrackChangesEditing');_0x233e0a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x13721e['locale'],'ELEMENT_TITLE')),_0x13721e['model']['document']['registerPostFixer'](_0x3e722b=>{let _0x35f71b=!0x1;const _0x481fa2=Array['from'](_0x13721e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29abd3,data:_0x4a6430}of _0x481fa2){const {group:_0x379b18}=_0x233e0a['_splitMarkerName'](_0x29abd3);if('suggestion'!==_0x379b18||!_0x4a6430['newRange'])continue;const _0x3c15a3=_0x4a6430['newRange'],_0x5723d7=_0x3c15a3['end']['nodeBefore'];if(!_0x5723d7||!_0x5723d7['is']('element','title-content'))continue;if(!_0x3c15a3['start']['isTouching'](_0x3c15a3['end']))continue;const _0x32afe4=_0x13721e['model']['schema']['getNearestSelectionRange'](_0x3c15a3['end'],'forward');if(_0x32afe4&&_0x32afe4['isCollapsed']){const _0xc75a61=_0x3e722b['createRange'](_0x3c15a3['start'],_0x32afe4['start']);_0xc75a61['isEqual'](_0x3c15a3)||(_0x3e722b['updateMarker'](_0x29abd3,{'range':_0xc75a61}),_0x35f71b=!0x0);}_0x35f71b||(_0x3e722b['removeMarker'](_0x29abd3),_0x35f71b=!0x0);}return _0x35f71b;});}}class Nt extends _0x1367c6{['afterInit'](){const _0xc1b82b=this['editor'],_0x58ad66=_0xc1b82b['plugins']['get']('TrackChangesEditing');_0xc1b82b['plugins']['has']('UndoEditing')&&(_0x58ad66['enableCommand']('undo'),_0x58ad66['enableCommand']('redo'));}}class Mt extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x15b82e=this['editor'];if(!_0x15b82e['plugins']['has']('TableCaptionEditing'))return;_0x15b82e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1367c6{['tableProperties'];['tableCellProperties'];constructor(_0x90a34d){super(_0x90a34d),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 _0x5c1378=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x20c239 of this['tableProperties'])_0x5c1378['enableCommand'](_0x20c239,(_0x3b46e9,_0x5341ed)=>{const _0x38f725=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x20c239,[_0x38f725],this['tableProperties'],'tableProperties',_0x3b46e9,_0x5341ed);});_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c1378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x51cf5a,_0x281de5)=>this['handleDiscardAction'](this['tableProperties'],_0x51cf5a,_0x281de5)),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x126197 of this['tableCellProperties'])_0x5c1378['enableCommand'](_0x126197,(_0x1fa0a6,_0x41208b)=>{const _0x4e1860=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x126197,_0x4e1860,this['tableCellProperties'],'tableCellProperties',_0x1fa0a6,_0x41208b);});_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c1378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4fc8b9,_0x4177ab)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4fc8b9,_0x4177ab)),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c1378['descriptionFactory']['registerDescriptionCallback'](_0x3ac4e9=>this['handleSuggestionDescription'](_0x3ac4e9));}['_handlePropertyChange'](_0x9901db,_0x406b50,_0x2c45ee,_0x4c42a3,_0x4d11ad,_0x6b093d){const _0x5793e1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6b093d['batch'],()=>{for(const _0x43364c of _0x406b50){if(this['_getSuggestion'](_0x43364c,_0x4c42a3))_0x4d11ad(_0x6b093d);else{const _0x23be97={};for(const _0x462189 of _0x2c45ee){const _0x634a7e=_0x43364c['getAttribute'](_0x462189);void 0x0!==_0x634a7e&&(_0x23be97[_0x462189]=_0x634a7e);}_0x4d11ad(_0x6b093d),_0x5793e1['markBlockFormat'](_0x43364c,{'commandParams':[_0x23be97]},[],_0x4c42a3);}}});}['handleDiscardAction'](_0x3f2163,_0x559763,_0x1ab5f0){const _0x244b85=_0x559763[0x0]['start']['nodeAfter'],_0x49a81f=_0x1ab5f0['commandParams'][0x0];this['editor']['model']['change'](_0x16e98f=>{for(const _0x5ec6f2 of _0x3f2163)void 0x0!==_0x49a81f[_0x5ec6f2]?_0x16e98f['setAttribute'](_0x5ec6f2,_0x49a81f[_0x5ec6f2],_0x244b85):_0x16e98f['removeAttribute'](_0x5ec6f2,_0x244b85);});}['handleSuggestionDescription'](_0x5ddcab){if(_0x5ddcab['data'])switch(_0x5ddcab['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'](_0x59f271,_0x2bb893){const _0x8e0363=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56d622 of _0x8e0363['getSuggestions']({'skipNotAttached':!0x0})){const _0x59aa32=_0x56d622['getContainedElement']();if(_0x56d622['subType']===_0x2bb893&&_0x59aa32===_0x59f271)return _0x56d622;}return null;}}const m='$elementName';class p extends _0x1367c6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x54f297,_0x4c1d57,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xfce86b){function _0x5d5a75(_0x4b54c4){return _0x4b54c4['map'](_0x880d90=>String['fromCharCode'](_0x880d90))['join']('');}super(_0xfce86b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x32cec8,_0x2b3b7a,_0x36b83a,_0x4945df)=>{this['_model']['change'](()=>{for(const _0x23e4cf of[..._0x4945df,..._0x36b83a])this['_model']['markers']['has'](_0x23e4cf)&&_0xfce86b['editing']['reconvertMarker'](_0x23e4cf);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xfce86b['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(),_0xfce86b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xfce86b['config']['get']('trackChanges.trackFormatChanges'),_0xfce86b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xfce86b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xfce86b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5d5a75([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5d5a75([0x34,0x30,0x34,0x38,0x31,0x34,0x30,0x36]);}['init'](){const _0x106d27=this['editor'],_0x13ef26=(_0x5c6489,_0x2e8f2d)=>{if('attribute'!=_0x5c6489)return'ck-suggestion-marker-'+_0x5c6489;const _0x5a07f2=_0x2e8f2d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5a07f2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x106d27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1284e2=>{const {id:_0x110d89,type:_0x564ba6,subType:_0x5a677b}=this['_splitMarkerName'](_0x1284e2['markerName']),_0x1be849=['ck-suggestion-marker',_0x13ef26(_0x564ba6,_0x5a677b)];let _0x149271=0xbb8;return this['activeMarkers']['includes'](_0x1284e2['markerName'])&&(_0x1be849['push']('ck-suggestion-marker--active'),_0x149271=0xbc2),'deletion'==_0x564ba6&&(_0x149271+=0x5),{'classes':_0x1be849,'attributes':{'data-suggestion':_0x110d89},'priority':_0x149271};}}),_0x106d27['conversion']['for']('dataDowncast')['add'](_0x351544=>{_0x351544['on']('addMarker:suggestion',(_0x3e8e83,_0x7ac5fb,_0x259bd0)=>{if(!_0x259bd0['options']['showSuggestionHighlights'])return;const _0x2114b4=_0x7ac5fb['item'];if(!_0x2114b4)return;const _0x39cb5a=_0x259bd0['mapper']['toViewElement'](_0x2114b4);_0x106d27['model']['schema']['isObject'](_0x2114b4)&&_0x39cb5a&&!_0x39cb5a['getCustomProperty']('widget')&&_0x39cb5a['is']('containerElement')&&_0xd8b030(_0x39cb5a,_0x259bd0['writer']);},{'priority':'high'});}),_0x106d27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3781ef,_0x3865c6)=>{if(!_0x3865c6['options']['showSuggestionHighlights'])return null;const {type:_0x191279,subType:_0x2f359f}=this['_splitMarkerName'](_0x3781ef['markerName']);return{'classes':['ck-suggestion-marker',_0x13ef26(_0x191279,_0x2f359f)],'priority':0xbb8};}});const _0x531bca=({showActiveMarkers:_0x55e31e=!0x0,isAttributeSuggestion:_0x45931b=!0x1}={})=>(_0x4d58a2,_0x1d948d,_0x4acb2f)=>{if(!_0x1d948d['item'])return;const {id:_0x418484}=this['_splitMarkerName'](_0x1d948d['markerName']);if(_0x45931b){const _0x5a1b7b=this['_suggestions']['get'](_0x418484),_0xfcb6f6=this['_getAttributeKey'](_0x5a1b7b);if(!this['_isBlockAttribute'](_0xfcb6f6))return;}if(_0x1d948d['item']['is']('selection'))return void _0x4acb2f['consumable']['consume'](_0x1d948d['item'],_0x4d58a2['name']);const _0x14ddf8=_0x4acb2f['mapper']['toViewElement'](_0x1d948d['item']);if(_0x1d948d['item']['is']('element')&&_0x106d27['model']['schema']['isBlock'](_0x1d948d['item'])&&!_0x14ddf8['getCustomProperty']('addHighlight')){_0x4acb2f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x14ddf8),_0x4acb2f['writer']['setAttribute']('data-suggestion',_0x418484,_0x14ddf8),_0x4acb2f['mapper']['bindElementToMarker'](_0x14ddf8,_0x1d948d['markerName']),_0x55e31e&&(this['activeMarkers']['includes'](_0x1d948d['markerName'])?_0x4acb2f['writer']['addClass']('ck-suggestion-marker--active',_0x14ddf8):_0x4acb2f['writer']['removeClass']('ck-suggestion-marker--active',_0x14ddf8));for(const _0x2987e7 of _0x106d27['model']['createRangeIn'](_0x1d948d['item'])['getItems']())_0x4acb2f['consumable']['consume'](_0x2987e7,_0x4d58a2['name']);_0x4acb2f['consumable']['consume'](_0x1d948d['item'],_0x4d58a2['name']);}};_0x106d27['conversion']['for']('dataDowncast')['add'](_0x3b1e35=>{_0x3b1e35['on']('addMarker:suggestion:formatBlock',(_0x3627b5,_0x46dc6b,_0x8217ea)=>{_0x8217ea['options']['showSuggestionHighlights']&&_0x531bca({'showActiveMarkers':!0x1})(_0x3627b5,_0x46dc6b,_0x8217ea);},{'priority':'highest'});}),_0x106d27['conversion']['for']('dataDowncast')['add'](_0x5a1c56=>{_0x5a1c56['on']('addMarker:suggestion:attribute',(_0x40dd91,_0x2d52e3,_0x1a8ed2)=>{_0x1a8ed2['options']['showSuggestionHighlights']&&_0x531bca({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x40dd91,_0x2d52e3,_0x1a8ed2);},{'priority':'highest'});}),_0x106d27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb50012,_0x1f9fb3)=>_0x1f9fb3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xb50012['substr'](0xb)}}),_0x106d27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ef0f5,{writer:_0x233326})=>{let _0x1c6f48='suggestion:'+_0x2ef0f5['getAttribute']('suggestion-type')+':'+_0x2ef0f5['getAttribute']('id');return _0x2ef0f5['getAttribute']('marker-count')&&(_0x1c6f48+=':'+_0x2ef0f5['getAttribute']('marker-count')),_0x233326['createElement']('$marker',{'data-name':_0x1c6f48});}}),_0x106d27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x17a5d0=>{_0x17a5d0['on']('addMarker:suggestion:formatBlock',_0x531bca(),{'priority':'high'});}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x422930=>{_0x422930['on']('addMarker:suggestion:attribute',_0x531bca({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x11f71=>{_0x11f71['on']('removeMarker:suggestion:formatBlock',(_0x56be0b,_0x3471bd,_0x36db49)=>{const _0x37285f=_0x36db49['mapper']['markerNameToElements'](_0x3471bd['markerName']);if(_0x37285f){for(const _0x3c97d7 of _0x37285f)_0x3c97d7['getCustomProperty']('addHighlight')||(_0x36db49['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c97d7),_0x36db49['writer']['removeAttribute']('data-suggestion',_0x3c97d7),_0x36db49['mapper']['unbindElementFromMarkerName'](_0x3c97d7,_0x3471bd['markerName']));}},{'priority':'high'});}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x21ff52=>{_0x21ff52['on']('removeMarker:suggestion:attribute',(_0x30f5a2,_0x15fa2d,_0x84beb0)=>{const _0x1a1e6e=_0x84beb0['mapper']['markerNameToElements'](_0x15fa2d['markerName']);if(!_0x1a1e6e)return;const {id:_0xbda92d}=this['_splitMarkerName'](_0x15fa2d['markerName']),_0x5566dd=this['_suggestions']['get'](_0xbda92d),_0x577f75=this['_getAttributeKey'](_0x5566dd);if(this['_isBlockAttribute'](_0x577f75)){for(const _0x32a279 of _0x1a1e6e)_0x32a279['getCustomProperty']('addHighlight')||(_0x84beb0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x32a279),_0x84beb0['writer']['removeAttribute']('data-suggestion',_0x32a279),_0x84beb0['mapper']['unbindElementFromMarkerName'](_0x32a279,_0x15fa2d['markerName']));}},{'priority':'high'});}),_0x106d27['model']['document']['registerPostFixer'](_0xe71523=>{let _0xc51b82=!0x1;const _0x4bbe4b=Array['from'](_0x106d27['model']['document']['differ']['getChangedMarkers']()),_0x43b2b0=new Set();for(const {name:_0x94ac49,data:_0x16204a}of _0x4bbe4b){const {group:_0x36a07d,type:_0x557802,subType:_0x1a39be,id:_0x565774}=this['_splitMarkerName'](_0x94ac49);if('suggestion'!==_0x36a07d)continue;const _0x10cb31=this['_suggestions']['get'](_0x565774);if(null!=_0x16204a['newRange']){'formatInline'==_0x557802&&(_0xc51b82=_0xc51b82||Et(_0x16204a['newRange'],_0x94ac49,_0xe71523,_0x106d27['model']['schema']));const _0x5b043b='attribute'==_0x557802&&this['_isBlockAttribute'](_0x1a39be['split']('|')[0x0]);if(_0x16204a['newRange']['isCollapsed']||'$graveyard'==_0x16204a['newRange']['root']['rootName']||'formatBlock'==_0x557802&&!Ut(_0x16204a['newRange'])||_0x5b043b&&!Ut(_0x16204a['newRange'])||'deletion'==_0x557802&&!(!Tt(_0x1e238e=_0x16204a['newRange'])&&!function(_0x21b23c){return _0x21b23c['start']['parent']==_0x21b23c['end']['nodeBefore']&&_0x21b23c['start']['isAtEnd'];}(_0x1e238e)))_0xe71523['removeMarker'](_0x94ac49),_0xc51b82=!0x0;else{if(!_0x10cb31||!_0x10cb31['isInContent'])continue;_0x43b2b0['add'](_0x10cb31);}}}var _0x1e238e;return _0x43b2b0['size']>0x0&&(_0xc51b82=!!this['_joinWithAdjacentSuggestions'](_0x43b2b0)||_0xc51b82),_0xc51b82;}),_0x106d27['model']['document']['registerPostFixer'](_0x49b08e=>{let _0x4cafdb=!0x1;for(const _0x527cfe of _0x106d27['model']['document']['differ']['getChanges']())if('insert'==_0x527cfe['type'])for(const _0x2cb6f8 of this['_suggestions']['values']()){if(_0x2cb6f8['isMultiRange']||!_0x2cb6f8['isInContent'])continue;const _0x36fc2='formatBlock'==_0x2cb6f8['type'],_0x4622d6=this['_getAttributeKey'](_0x2cb6f8),_0x49a441=_0x4622d6&&this['_isBlockAttribute'](_0x4622d6);if(!_0x36fc2&&!_0x49a441)continue;const _0x3bf3b1=_0x2cb6f8['getFirstRange']();if(_0x3bf3b1['start']['parent']!=_0x3bf3b1['end']['parent']&&!_0x3bf3b1['end']['isAtEnd']){const _0x3c008f=_0x106d27['model']['createPositionAt'](_0x3bf3b1['start']['nodeAfter'],'end'),_0x46174e=_0x106d27['model']['createRange'](_0x3bf3b1['start'],_0x3c008f);_0x49b08e['updateMarker'](_0x2cb6f8['getFirstMarker'](),{'range':_0x46174e}),_0x4cafdb=!0x0;}}return _0x4cafdb;}),_0x106d27['model']['document']['registerPostFixer'](_0x1aa70d=>this['_processAttributeChanges'](_0x1aa70d)),_0x106d27['model']['document']['registerPostFixer'](_0x1e1435=>!_0x1e1435['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1e1435)),_0x106d27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x106d27['model']['document']['on']('change:data',(_0x118f8a,_0x217239)=>{if(!_0x217239['isLocal']||_0x217239['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4281e7=_0x106d27['model']['document']['differ']['getChanges']();if(0x0==_0x4281e7['length'])return;const _0x1edc62=[],_0x419f0f=_0x4281e7['filter'](_0x263cef=>'attribute'==_0x263cef['type']),_0x52a689=_0x4281e7['filter'](_0x16af5a=>'insert'==_0x16af5a['type']&&'$text'!=_0x16af5a['name']);for(const _0x5079a2 of _0x419f0f)this['_isRegisteredAttribute'](_0x5079a2['attributeKey'])&&_0x1edc62['push']({'key':_0x5079a2['attributeKey'],'newValue':_0x5079a2['attributeNewValue'],'oldValue':_0x5079a2['attributeOldValue'],'range':Ot(_0x5079a2['range'],_0x106d27['model'])});for(const _0x4cb086 of _0x52a689){if('rename'!=_0x4cb086['action']&&'refresh'!=_0x4cb086['action'])continue;const _0x156248=Gt(_0x4cb086['position']['nodeAfter'],_0x106d27['model']),_0x5974bd=_0x4cb086['before'];'rename'==_0x4cb086['action']&&_0x1edc62['push']({'key':m,'newValue':_0x4cb086['name'],'oldValue':_0x5974bd['name'],'range':_0x156248});for(const [_0x3a8ec7,_0x9c1c45]of _0x5974bd['attributes']){if(!this['_isRegisteredAttribute'](_0x3a8ec7))continue;const _0x690c9c=_0x4cb086['attributes']['get'](_0x3a8ec7);_0x9c1c45!==_0x690c9c&&_0x1edc62['push']({'key':_0x3a8ec7,'newValue':_0x690c9c,'oldValue':_0x9c1c45,'range':_0x156248});}for(const [_0x341537,_0x56a02a]of _0x4cb086['attributes'])this['_isRegisteredAttribute'](_0x341537)&&(_0x5974bd['attributes']['has'](_0x341537)||_0x1edc62['push']({'key':_0x341537,'newValue':_0x56a02a,'oldValue':null,'range':_0x156248}));}0x0!=_0x1edc62['length']&&_0x106d27['model']['enqueueChange'](_0x217239,_0x39b366=>{const _0x4df24a=_0x22411c();for(const {range:_0xff81a8,key:_0x244de5,oldValue:_0xf0a413,newValue:_0x546cf2}of _0x1edc62)this['markAttributeChange'](_0xff81a8,_0x244de5,_0xf0a413,_0x546cf2,{'groupId':_0x4df24a});this['_reduceExistingSuggestions'](_0x39b366,_0x1edc62);});},{'priority':'lowest'}),_0x106d27['model']['markers']['on']('update:suggestion',(_0x1f3d8a,_0x2752a9,_0x1d79a9)=>{if(null==_0x1d79a9){const {id:_0x2f6dfc}=this['_splitMarkerName'](_0x2752a9['name']),_0x53deb4=this['_suggestions']['get'](_0x2f6dfc);_0x53deb4&&_0x53deb4['addMarkerName'](_0x2752a9['name']);}}),_0x106d27['model']['document']['on']('change:data',()=>{const _0x7f3f8b=Array['from'](_0x106d27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1724a6=>'suggestion'===this['_splitMarkerName'](_0x1724a6['name'])['group']);if(0x0===_0x7f3f8b['length'])return;_0x7f3f8b['sort']((_0x2565f4,_0x14d2e9)=>{const _0x484ee9=_0x2565f4['data']['oldRange'],_0x30f562=_0x14d2e9['data']['oldRange'];return null===_0x484ee9&&null===_0x30f562?0x0:null===_0x484ee9&&null!==_0x30f562?-0x1:null!==_0x484ee9&&null===_0x30f562?0x1:_0x484ee9['start']['isBefore'](_0x30f562['start'])?-0x1:0x1;});const _0x5c0495=new Set(),_0x3029e2=new Set();for(const {name:_0x3eff7,data:_0x117445}of _0x7f3f8b){const {id:_0x4c1633}=this['_splitMarkerName'](_0x3eff7);if(null===_0x117445['oldRange']){const _0x3c7e36=this['_handleNewSuggestionMarker'](_0x3eff7);_0x3029e2['add'](_0x3c7e36);}else{const _0xfb0d06=this['_suggestions']['get'](_0x4c1633);null!==_0x117445['newRange']||_0xfb0d06['isInContent']?(_0x5c0495['add'](_0xfb0d06['head']),_0x3029e2['add'](_0xfb0d06)):this['_removeSuggestion'](_0xfb0d06);}}_0x3029e2['size']>0x0&&this['_refreshSuggestionsChain'](_0x3029e2);for(const _0x46b094 of _0x5c0495)this['fire']('suggestionChanged',_0x46b094);}),_0x106d27['model']['on']('applyOperation',(_0x163809,_0xd24c5c)=>{const _0x570aac=_0xd24c5c[0x0];if(!this['_suggestions']['size'])return;if(!_0x570aac['isDocumentOperation'])return;if(_0x570aac['batch']['isUndo']||!_0x570aac['batch']['isLocal'])return;let _0x1618b0,_0x14cc1b;switch(_0x570aac['type']){case'insert':_0x1618b0=_0x106d27['model']['createPositionAt'](_0x570aac['position']),_0x14cc1b=_0x1618b0['getShiftedBy'](_0x570aac['howMany']);break;case'split':_0x1618b0=_0x106d27['model']['createPositionAt'](_0x570aac['splitPosition']),_0x14cc1b=_0x106d27['model']['createPositionAt'](_0x570aac['moveTargetPosition']);break;case'move':_0x1618b0=_0x106d27['model']['createPositionAt'](_0x570aac['targetPosition']),_0x14cc1b=_0x1618b0['getShiftedBy'](_0x570aac['howMany']);break;default:return;}const _0x4f5652=_0x106d27['model']['createRange'](_0x1618b0,_0x14cc1b);_0x106d27['model']['change'](()=>{for(const {suggestion:_0x268d63,meta:_0x537619}of this['_findSuggestions'](_0x4f5652)){if(_0x268d63['isMultiRange'])continue;if('formatInline'==_0x268d63['type'])continue;const _0x5de79e=this['_getAttributeKey'](_0x268d63);if(_0x5de79e&&this['_isBlockAttribute'](_0x5de79e)&&'split'!=_0x570aac['type'])continue;const _0x503161=_0x268d63['data']&&_0x268d63['data']['multipleBlocks'];('formatBlock'!=_0x268d63['type']||'split'==_0x570aac['type']&&!_0x503161)&&(_0x537619['containsRangeInObject']||'insertion'==_0x268d63['type']&&_0x537619['isOwn']||_0x268d63['getFirstRange']()['containsRange'](_0x4f5652)&&this['_breakSuggestionMarker'](_0x268d63,_0x1618b0,_0x14cc1b));}});},{'priority':'lowest'}),_0x106d27['model']['on']('deleteContent',(_0x17725a,_0x5e14d9)=>{const _0x236627=_0x5e14d9[0x0],_0x4783fb=_0x5e14d9[0x1];if(_0x4783fb&&_0x4783fb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x236627['isCollapsed'])return;const _0x3881d4=_0x106d27['model']['schema'],{start:_0x160930,end:_0x2dff04}=_0x236627['getFirstRange'](),_0x5bd2de=_0x160930['nodeAfter']&&_0x3881d4['isLimit'](_0x160930['nodeAfter'])?null:_0x3881d4['getNearestSelectionRange'](_0x160930,'forward'),_0x14e52d=_0x2dff04['nodeBefore']&&_0x3881d4['isLimit'](_0x2dff04['nodeBefore'])?null:_0x3881d4['getNearestSelectionRange'](_0x2dff04,'backward'),_0x3ce2ff=_0x106d27['model']['createRange'](_0x5bd2de?_0x5bd2de['start']:_0x160930,_0x14e52d?_0x14e52d['end']:_0x2dff04);_0x106d27['model']['change'](_0x2fa76a=>{this['markDeletion'](_0x3ce2ff);const _0x3eeeea=_0x106d27['model']['schema']['getNearestSelectionRange'](_0x3ce2ff['start']);_0x236627['is']('documentSelection')?_0x2fa76a['setSelection'](_0x3eeeea):_0x236627['setTo'](_0x3eeeea);}),_0x17725a['stop']();},{'priority':_0x4d67f8['normal']+0xa}),_0x106d27['model']['on']('insertContent',(_0x4b2576,_0x221130)=>{const _0x43687d=_0x221130[_0x221130['length']-0x1];_0x43687d&&_0x43687d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x106d27['model']['change'](()=>{let _0x122545=_0x106d27['model']['insertContent'](_0x221130[0x0],_0x221130[0x1],_0x221130[0x2],{'forceDefaultExecution':!0x0});if(!_0x122545)return;_0x4b2576['return']=_0x122545['clone']();const _0x3e83fc=_0x122545['end']['nodeBefore'],_0x22cea5=_0x106d27['model']['schema'];_0x3e83fc&&_0x22cea5['isBlock'](_0x3e83fc)&&!_0x22cea5['isObject'](_0x3e83fc)&&(_0x122545=_0x106d27['model']['createRange'](_0x122545['start'],_0x106d27['model']['createPositionAt'](_0x3e83fc,'end'))),this['markInsertion'](_0x122545);}),_0x4b2576['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x572edc=new $(_0x106d27,this['_suggestions']);_0x106d27['commands']['add']('acceptSuggestion',_0x572edc),this['enableCommand']('acceptSuggestion');const _0x3f0e38=new B(_0x106d27,this['_suggestions']);_0x106d27['commands']['add']('discardSuggestion',_0x3f0e38),this['enableCommand']('discardSuggestion'),_0x106d27['commands']['add']('acceptAllSuggestions',new x(_0x106d27,_0x572edc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x106d27['commands']['add']('discardAllSuggestions',new x(_0x106d27,_0x3f0e38,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x106d27['commands']['add']('acceptSelectedSuggestions',new R(_0x106d27,_0x572edc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x106d27['commands']['add']('discardSelectedSuggestions',new R(_0x106d27,_0x3f0e38,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x136d97=_0x106d27['plugins']['get']('CommentsRepository');this['listenTo'](_0x136d97,'addComment',(_0x46a502,{threadId:_0x23dfb2})=>{const _0x299ed7=this['_suggestions']['get'](_0x23dfb2);_0x299ed7&&_0x299ed7['commentThread']&&0x1===_0x299ed7['commentThread']['length']&&this['_updateSuggestionData'](_0x23dfb2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x136d97,'removeComment',(_0x26f4d2,{threadId:_0x2008bb})=>{const _0x1088b4=this['_suggestions']['get'](_0x2008bb);_0x1088b4&&_0x1088b4['commentThread']&&!_0x1088b4['commentThread']['length']&&this['_updateSuggestionData'](_0x2008bb,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1e47a7){if(this['_adapter'])throw new _0xb8c959('track-changes-adapter-already-set',this);this['_adapter']=_0x1e47a7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b4c91=!0x1,toJSON:_0x353080=!0x1}={}){const _0x47543f=[];for(const _0x406408 of this['_suggestions']['values']())_0x4b4c91&&!_0x406408['isInContent']||_0x47543f['push'](_0x406408);return _0x353080?_0x47543f['map'](_0x57dbd6=>_0x57dbd6['toJSON']()):_0x47543f;}['getSuggestion'](_0x47739a){const _0x5a02fe=this['_suggestions']['get'](_0x47739a);if(!_0x5a02fe)throw new _0xb8c959('track-changes-suggestion-not-found',this);return _0x5a02fe;}['hasSuggestion'](_0x22cc1c){return this['_suggestions']['has'](_0x22cc1c);}['addSuggestionData'](_0x288a35){const {authorId:_0x4ae9ae,id:_0x31244b,attributes:_0x454872}=_0x288a35,[_0x240d9f,_0xd235f1]=_0x288a35['type']['split'](':'),_0x36972c=this['_suggestions']['get'](_0x31244b)||this['_createSuggestion'](_0x240d9f,_0xd235f1,_0x31244b,_0x4ae9ae,_0x454872);if(this['_addThreadToSuggestion'](_0x36972c),this['_checkSuggestionCorrectness'](_0x36972c,_0x240d9f,_0xd235f1||null,_0x4ae9ae),_0x36972c['createdAt']=_0x288a35['createdAt'],_0x36972c['_isDataLoaded']=!0x0,_0x454872&&_0x454872['@external']){const _0x48409c=_0x454872['@external'],_0x264e26=this['_getExternalAuthor'](_0x48409c['authorName']);_0x36972c['authoredAt']=_0x48409c['createdAt'],_0x36972c['author']=_0x264e26,_0x36972c['isExternal']=!0x0;}else _0x36972c['authoredAt']=_0x288a35['createdAt'];switch(_0x288a35['data']&&(_0x36972c['data']=_0x288a35['data']),_0x288a35['attributes']&&(_0x36972c['attributes']=_0x288a35['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x36972c['_saved']=!0x0),this['_suggestionState']['get'](_0x36972c)){case'notReady':this['_suggestionState']['set'](_0x36972c,'dataReady');break;case'markerReady':_0x36972c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x36972c])),this['_refreshSuggestionsChain'](new Set([_0x36972c])),this['_suggestionState']['set'](_0x36972c,'ready'),this['fire']('suggestionLoaded',_0x36972c)):this['_suggestionState']['set'](_0x36972c,'removed');}return _0x36972c;}['acceptSuggestion'](_0x381d80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x19dcf5 of _0x381d80['getAllAdjacentSuggestions']())_0x19dcf5['accept']();});});}['discardSuggestion'](_0x4b9e6a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x138981 of _0x4b9e6a['getAllAdjacentSuggestions']())_0x138981['discard']();});});}['enableCommand'](_0x37e85a,_0x306924){const _0x17febd=this['editor']['commands']['get'](_0x37e85a);if(!_0x17febd)throw new _0xb8c959('track-changes-command-not-found',this,{'commandName':_0x37e85a});if(this['_enabledCommands']['has'](_0x17febd))throw new _0xb8c959('track-changes-enable-command-twice',this,{'commandName':_0x37e85a});this['_enabledCommands']['add'](_0x17febd),_0x306924&&_0x17febd['on']('execute',(_0x58d6e5,_0x5d7f81)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5d7f81['length']>0x0&&_0x5d7f81[_0x5d7f81['length']-0x1]&&_0x5d7f81[_0x5d7f81['length']-0x1]['forceDefaultExecution']?_0x5d7f81['pop']():(_0x58d6e5['return']=_0x306924((..._0x18ff27)=>_0x17febd['execute'](..._0x18ff27,{'forceDefaultExecution':!0x0}),..._0x5d7f81),_0x58d6e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5ea26f){let _0x56541f,_0x3ff285;const _0x437242=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56541f=_0x5ea26f();}catch(_0x46ccc0){_0x3ff285=_0x46ccc0;}return _0x437242||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ff285&&_0xb8c959['rethrowUnexpectedError'](_0x3ff285,this),_0x56541f;}['markInsertion'](_0x4436cb,_0x24060b=null,_0x2c8099={}){if(_0x4436cb['isCollapsed'])return null;const _0x2bf144=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xb8f4a6,meta:_0x55e82b}of this['_findSuggestions'](_0x4436cb,'insertion'))if(_0x55e82b['isOwn']){if(!_0x55e82b['isNextTo']){if(_0x55e82b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0xb8f4a6,_0x2c8099))continue;return _0xb8f4a6;}if(Lt(_0xb8f4a6,_0x2c8099))return _0xb8f4a6;this['_breakSuggestionMarker'](_0xb8f4a6,_0x4436cb['start'],_0x4436cb['end']);break;}if(_0x24060b==_0xb8f4a6['subType']&&Lt(_0xb8f4a6,_0x2c8099)){const _0x362186=_0xb8f4a6['getFirstRange']();return _0x362186['start']['isEqual'](_0x4436cb['end'])?this['_setSuggestionRange'](_0xb8f4a6,this['_model']['createRange'](_0x4436cb['start'],_0x362186['end'])):this['_setSuggestionRange'](_0xb8f4a6,this['_model']['createRange'](_0x362186['start'],_0x4436cb['end'])),_0xb8f4a6;}}const _0x36dca3=_0x22411c(),_0x2f32b1=_0x2bf144['id'],_0x35aa6c=_0x24060b?'insertion:'+_0x24060b:'insertion',_0x13b299=this['_setSuggestionData']({'id':_0x36dca3,'type':_0x35aa6c,'createdAt':new Date(),'authorId':_0x2f32b1,'attributes':_0x2c8099});return this['_addSuggestionMarker'](_0x35aa6c,_0x36dca3,_0x2f32b1,_0x4436cb),_0x13b299;}['markMultiRangeInsertion'](_0x22e2f5,_0x134d54='multi',_0xe08da3={}){const _0x4c14ef=this['editor']['plugins']['get']('Users')['me'],_0x2c04da=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x134d54,'join');for(const _0x163e56 of this['getSuggestions']())if(_0x163e56['author']['id']==_0x4c14ef['id']&&'insertion'==_0x163e56['type']&&_0x163e56['subType']==_0x134d54&&Lt(_0x163e56,_0xe08da3)&&(_0x2c04da(_0x163e56['getRanges'](),_0x22e2f5)||_0x2c04da(_0x22e2f5,_0x163e56['getRanges']()))){for(const _0x192d07 of _0x22e2f5)_0x163e56['addRange'](_0x192d07);return _0x163e56;}for(const {suggestion:_0x39db46,meta:_0xa7dba6}of this['_findSuggestions'](_0x22e2f5,'insertion')){if(!_0xa7dba6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa7dba6['containsRangeInObject'])continue;if(!Lt(_0x39db46,_0xe08da3))continue;let _0x6bb46e=!0x0;for(const _0x2319f9 of _0x39db46['getRanges']())for(const _0x4b0ac4 of _0x22e2f5)if(!_0x2319f9['containsRange'](_0x4b0ac4)){_0x6bb46e=!0x1;break;}if(_0x6bb46e)return _0x39db46;}const _0x3170dd=_0x22411c(),_0x37d685=_0x4c14ef['id'],_0x205864='insertion:'+_0x134d54,_0x6a37ce=this['_setSuggestionData']({'id':_0x3170dd,'type':_0x205864,'createdAt':new Date(),'authorId':_0x37d685,'attributes':_0xe08da3});for(const _0x532a14 of _0x22e2f5)this['_addSuggestionMarker'](_0x205864,_0x3170dd,_0x37d685,_0x532a14,u['getMultiRangeId']());return _0x6a37ce;}['markInlineFormat'](_0x4d478f,_0x239c1a,_0x2221bb=null,_0x5a08f3={}){if(_0x2221bb=_0x2221bb||Vt(_0x239c1a),_0x4d478f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x363b79=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2221bb,'accept');return this['forceDefaultExecution'](()=>_0x363b79([_0x4d478f],_0x239c1a,_0x5a08f3)),null;}const _0x5c30be=this['editor']['plugins']['get']('Users')['me'],_0x3c5cf3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x292c38,meta:_0x248f5d}of this['_findSuggestions'](_0x4d478f,'insertion'))_0x248f5d['isOwn']&&!_0x248f5d['isInsideObject']&&_0x3c5cf3['push'](..._0x292c38['getRanges']());}const _0x12195c=function(_0x3f37ba,_0x2ed56d){const _0x257171=[];for(const _0x414aa1 of _0x2ed56d){const _0x1d1d3b=_0x3f37ba['getIntersection'](_0x414aa1);_0x1d1d3b&&_0x257171['push'](_0x1d1d3b);}return _0x257171;}(_0x4d478f,_0x3c5cf3),_0x418418=function(_0x185676,_0x4253e8){const _0x2ab634=[_0x185676];for(const _0x184dfa of _0x4253e8){let _0x224c24=0x0;for(;_0x224c24<_0x2ab634['length'];){const _0x4e7092=_0x2ab634[_0x224c24]['getDifference'](_0x184dfa);_0x2ab634['splice'](_0x224c24,0x1,..._0x4e7092),_0x224c24+=_0x4e7092['length'];}}return _0x2ab634;}(_0x4d478f,_0x3c5cf3);_0x12195c['length']&&this['_model']['change'](()=>{for(const _0x1d6273 of _0x12195c){const _0x5344be=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2221bb,'accept');this['forceDefaultExecution'](()=>_0x5344be([_0x1d6273],_0x239c1a,_0x5a08f3));}});for(const _0xfd42d7 of _0x418418){let _0x3c77ff=null,_0x188168=_0xfd42d7['start'],_0x1eeeae=_0xfd42d7['end'];for(const {suggestion:_0xec0c5f,meta:_0x39bc2f}of this['_findSuggestions'](_0xfd42d7,'formatInline')){if(!_0x39bc2f['isOwn'])continue;if(_0xec0c5f['subType']!=_0x2221bb)continue;if(!Lt(_0xec0c5f,_0x5a08f3))continue;const _0x57aaa1=_0xec0c5f['getFirstRange']();if(_0x57aaa1['containsRange'](_0xfd42d7,!0x0))return null;_0x188168=_0x188168['isBefore'](_0x57aaa1['start'])?_0x188168:_0x57aaa1['start'],_0x1eeeae=_0x1eeeae['isAfter'](_0x57aaa1['end'])?_0x1eeeae:_0x57aaa1['end'],_0x3c77ff?_0x57aaa1['start']['isBefore'](_0x3c77ff['getFirstRange']()['start'])?(_0x3c77ff['removeMarkers'](),_0x3c77ff=_0xec0c5f):_0xec0c5f['removeMarkers']():_0x3c77ff=_0xec0c5f;}const _0x4aff2e=this['_model']['createRange'](_0x188168,_0x1eeeae);if(_0x3c77ff)this['_setSuggestionRange'](_0x3c77ff,_0x4aff2e);else{const _0x13890c=_0x22411c(),_0x44e63f=_0x5c30be['id'];this['_setSuggestionData']({'id':_0x13890c,'type':'formatInline:'+_0x2221bb,'data':_0x239c1a,'createdAt':new Date(),'authorId':_0x44e63f,'attributes':_0x5a08f3}),this['_addSuggestionMarker']('formatInline:'+_0x2221bb,_0x13890c,_0x44e63f,_0x4aff2e);}}return null;}['markBlockFormat'](_0x3b48e4,_0x455118,_0x1bb183=[],_0x51747e=null,_0x333baa={}){_0x455118['formatGroupId']||(_0x455118['formatGroupId']=_0x455118['commandName']),_0x455118['multipleBlocks']=_0x3b48e4['is']('range'),_0x51747e=_0x51747e||Vt(_0x455118);const _0x38db37=_0x1bb183['map'](_0x401357=>Gt(_0x401357,this['_model'])),_0x494dcb=_0x3b48e4['is']('range')?_0x3b48e4:Gt(_0x3b48e4,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd0ee70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51747e,'accept');return this['forceDefaultExecution'](()=>_0xd0ee70([_0x494dcb],_0x455118,_0x333baa)),null;}_0x38db37['push'](_0x494dcb);let _0x2153e2=!0x0;for(const _0x428cf4 of _0x38db37)if(!this['_rangeIsInLocalUserInsertion'](_0x428cf4)){_0x2153e2=!0x1;break;}if(_0x2153e2&&'always'!==this['_trackFormatChanges']){const _0x51bd06=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51747e,'accept');return this['forceDefaultExecution'](()=>_0x51bd06([_0x494dcb],_0x455118,_0x333baa)),null;}let _0x30417c=null,_0x4b9687=_0x494dcb['start'],_0x15ae4a=_0x494dcb['end'];for(const {suggestion:_0x1c075b,meta:_0x43e272}of this['_findSuggestions'](_0x494dcb,'formatBlock')){if(!_0x43e272['isOwn'])continue;if(_0x43e272['isNextTo']||_0x43e272['containsRangeInObject']||_0x43e272['isInsideObject'])continue;if(_0x1c075b['data']['formatGroupId']!=_0x455118['formatGroupId'])continue;if(!Lt(_0x1c075b,_0x333baa))continue;const _0x32a8bd=_0x1c075b['getFirstRange']();if(_0x1c075b['subType']==_0x51747e){if(_0x32a8bd['containsRange'](_0x494dcb,!0x0))return null;_0x4b9687=_0x4b9687['isBefore'](_0x32a8bd['start'])?_0x4b9687:_0x32a8bd['start'],_0x15ae4a=_0x15ae4a['isAfter'](_0x32a8bd['end'])?_0x15ae4a:_0x32a8bd['end'],_0x30417c?_0x32a8bd['start']['isBefore'](_0x30417c['getFirstRange']()['start'])?(_0x30417c['removeMarkers'](),_0x30417c=_0x1c075b):_0x1c075b['removeMarkers']():_0x30417c=_0x1c075b;}else{const _0x3067d0=_0x494dcb['getIntersection'](_0x32a8bd);this['_cutOutSuggestionMarker'](_0x1c075b,_0x3067d0);}}const _0x1ac26b=this['editor']['plugins']['get']('Users')['me'],_0x56a5a9=_0x22411c(),_0x321ccb=_0x1ac26b['id'];if(_0x30417c)return this['_setSuggestionRange'](_0x30417c,this['_model']['createRange'](_0x4b9687,_0x15ae4a)),_0x30417c;{const _0x3dab63=this['_setSuggestionData']({'id':_0x56a5a9,'type':'formatBlock:'+_0x51747e,'data':_0x455118,'createdAt':new Date(),'authorId':_0x321ccb,'attributes':_0x333baa});return this['_addSuggestionMarker']('formatBlock:'+_0x51747e,_0x56a5a9,_0x321ccb,this['_model']['createRange'](_0x4b9687,_0x15ae4a)),_0x3dab63;}}['markMultiRangeBlockFormat'](_0x43c0a8,_0x18bbe2,_0x4e6046=[],_0x2c491c=null,_0x2c122d={}){_0x18bbe2['formatGroupId']||(_0x18bbe2['formatGroupId']=_0x18bbe2['commandName']);const _0x1f3198=_0x43c0a8[0x0];_0x18bbe2['multipleBlocks']=_0x1f3198['is']('range'),_0x2c491c=_0x2c491c||Vt(_0x18bbe2);const _0x2a80a8=_0x4e6046['map'](_0x4da4d9=>Gt(_0x4da4d9,this['_model'])),_0x455638=_0x1f3198['is']('range')?_0x43c0a8:_0x43c0a8['map'](_0x38d0f9=>Gt(_0x38d0f9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x16a9e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c491c,'accept');return this['forceDefaultExecution'](()=>_0x16a9e6(_0x455638,_0x18bbe2,_0x2c122d)),null;}_0x2a80a8['push'](..._0x455638);let _0x22ce62=!0x0;for(const _0x3ab2c4 of _0x2a80a8)if(!this['_rangeIsInLocalUserInsertion'](_0x3ab2c4)){_0x22ce62=!0x1;break;}if(_0x22ce62&&'always'!==this['_trackFormatChanges']){const _0x4914b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c491c,'accept');return this['forceDefaultExecution'](()=>_0x4914b7(_0x455638,_0x18bbe2,_0x2c122d)),null;}const _0xcdca3a=this['editor']['plugins']['get']('Users')['me'];for(const _0x11ee78 of this['getSuggestions']()){if(_0x11ee78['author']['id']!=_0xcdca3a['id'])continue;if('formatBlock'!=_0x11ee78['type']||_0x11ee78['data']['formatGroupId']!=_0x18bbe2['formatGroupId'])continue;if(!Lt(_0x11ee78,_0x2c122d))continue;const _0x17947c=_0x11ee78['subType']==_0x2c491c;for(let _0x410673=0x0;_0x410673<_0x455638['length'];_0x410673++){const _0x5885df=_0x455638[_0x410673];for(const _0x4e53c3 of _0x11ee78['getMarkers']()){const _0x4f5d2e=_0x4e53c3['getRange']();if(_0x5885df['isEqual'](_0x4f5d2e)){_0x17947c?(_0x455638['splice'](_0x410673,0x1),_0x410673--):_0x11ee78['removeMarker'](_0x4e53c3['name']);break;}}}}if(0x0==_0x455638['length'])return null;const _0x45e225=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c491c,'join');for(const _0x108a23 of this['getSuggestions']())if(_0x108a23['author']['id']==_0xcdca3a['id']&&'formatBlock'==_0x108a23['type']&&_0x108a23['data']['formatGroupId']==_0x18bbe2['formatGroupId']&&_0x108a23['subType']==_0x2c491c&&Lt(_0x108a23,_0x2c122d)&&(_0x45e225(_0x108a23['getRanges'](),_0x455638)||_0x45e225(_0x455638,_0x108a23['getRanges']()))){for(const _0x11bdc0 of _0x455638)_0x108a23['addRange'](_0x11bdc0);return _0x108a23;}const _0x1fcdc3=_0x22411c(),_0x22850c=_0xcdca3a['id'],_0x4fc934='formatBlock:'+_0x2c491c,_0x3e829f=this['_setSuggestionData']({'id':_0x1fcdc3,'type':_0x4fc934,'data':_0x18bbe2,'createdAt':new Date(),'authorId':_0x22850c,'attributes':_0x2c122d});for(const _0x5b4023 of _0x455638)this['_addSuggestionMarker'](_0x4fc934,_0x1fcdc3,_0x22850c,_0x5b4023,u['getMultiRangeId']());return _0x3e829f;}['markDeletion'](_0x395234,_0x671997=null,_0x557443={}){if(_0x395234['isCollapsed'])return null;const _0x1be717=this['editor']['plugins']['get']('Users')['me'],_0x2cbba8=new _0x24837b(_0x395234['start'],_0x395234['end']);for(const {suggestion:_0x4fd242,meta:_0x23552d}of this['_findSuggestions'](_0x2cbba8,'insertion'))if(_0x23552d['isOwn']&&!_0x23552d['isNextTo']){if(_0x4fd242['isMultiRange']){const _0x11429e=_0x4fd242['getRanges']()['filter'](_0x33090f=>'$graveyard'!=_0x33090f['root']['rootName']);_0x11429e['every'](_0x39c4de=>_0x2cbba8['containsRange'](_0x39c4de,!0x0))&&_0x4fd242['discard']();if(_0x11429e['some'](_0xff167c=>_0xff167c['containsRange'](_0x2cbba8,!0x0))){const _0x4c7bdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x671997,'accept');return this['forceDefaultExecution'](()=>_0x4c7bdc([_0x2cbba8],null,_0x557443)),null;}}else{const _0x176c1b=_0x2cbba8['getIntersection'](_0x4fd242['getFirstRange']());null!==_0x176c1b&&_0x4fd242['_onDiscard']([_0x176c1b],null,_0x557443);}}if(_0x2cbba8['detach'](),_0x2cbba8['isCollapsed']||'$graveyard'==_0x2cbba8['root']['rootName'])return null;let _0x21ab19=null,_0x5dc10a=_0x2cbba8['start'],_0x4939cf=_0x2cbba8['end'];const _0xf87fb9=this['_findSuggestions'](_0x2cbba8,'deletion');for(const {suggestion:_0x28b1b6,meta:_0x252556}of _0xf87fb9){const _0x3e0873=this['_model']['createRange'](_0x5dc10a,_0x4939cf);if(_0x252556['isOwn']&&(this['_mergeNestedSuggestions']||!_0x252556['containsRangeInObject']&&!_0x252556['isInsideObject'])){if(_0x28b1b6['isMultiRange']){if(!Lt(_0x28b1b6,_0x557443))continue;let _0x2fbbb1=!0x0;for(const _0x4f8df2 of _0x28b1b6['getRanges']()){if(_0x4f8df2['containsRange'](_0x3e0873,!0x0))return _0x28b1b6;_0x3e0873['containsRange'](_0x4f8df2)||(_0x2fbbb1=!0x1);}_0x2fbbb1&&_0x28b1b6['discard']();}else{const _0x5c9acf=_0x28b1b6['getFirstRange']();if(_0x5c9acf['containsRange'](_0x3e0873,!0x0))return _0x28b1b6;if(!Lt(_0x28b1b6,_0x557443)){_0x3e0873['containsRange'](_0x5c9acf)?_0x28b1b6['removeMarkers']():_0x5c9acf['containsPosition'](_0x5dc10a)?_0x5dc10a=_0x5c9acf['end']:_0x5c9acf['containsPosition'](_0x4939cf)&&(_0x4939cf=_0x5c9acf['start']);continue;}_0x5dc10a=_0x5dc10a['isBefore'](_0x5c9acf['start'])?_0x5dc10a:_0x5c9acf['start'],_0x4939cf=_0x4939cf['isAfter'](_0x5c9acf['end'])?_0x4939cf:_0x5c9acf['end'],_0x557443=Object['assign']({},_0x28b1b6['attributes']),_0x21ab19?_0x5c9acf['start']['isBefore'](_0x21ab19['getFirstRange']()['start'])?(_0x21ab19['removeMarkers'](),_0x21ab19=_0x28b1b6):_0x28b1b6['removeMarkers']():_0x21ab19=_0x28b1b6;}}}if(_0x21ab19)return this['_setSuggestionRange'](_0x21ab19,this['_model']['createRange'](_0x5dc10a,_0x4939cf)),_0x21ab19;{const _0xaa7f6e=_0x22411c(),_0x4c746c=this['_model']['createRange'](_0x5dc10a,_0x4939cf),_0x51c1a9=_0x1be717['id'],_0xf58561=_0x671997?'deletion:'+_0x671997:'deletion',_0x149ae9=this['_setSuggestionData']({'id':_0xaa7f6e,'type':_0xf58561,'createdAt':new Date(),'authorId':_0x51c1a9,'attributes':_0x557443});return this['_addSuggestionMarker'](_0xf58561,_0xaa7f6e,_0x51c1a9,_0x4c746c),_0x149ae9;}}['markMultiRangeDeletion'](_0x52cf17,_0x4fa783='multi',_0x299089={}){const _0x30f02c=this['editor']['plugins']['get']('Users')['me'],_0x3072f9=_0x52cf17['map'](_0x4b9837=>new _0x24837b(_0x4b9837['start'],_0x4b9837['end'])),_0x3f3c44=new Set();for(const {suggestion:_0x55734d,meta:_0x1dfdfe}of this['_findSuggestions'](_0x3072f9,'insertion'))_0x1dfdfe['isOwn']&&!_0x1dfdfe['isNextTo']&&_0x3f3c44['add'](_0x55734d);for(const _0x22bf94 of _0x3f3c44)if(_0x22bf94['isMultiRange']){const _0x3e244a=_0x22bf94['getRanges']();(!_0x22bf94['attributes']||!_0x22bf94['attributes']['skipNestingCheck'])&&(_0x3e244a['every'](_0x4dcef3=>_0x3072f9['some'](_0x461527=>_0x461527['containsRange'](_0x4dcef3,!0x0)))&&_0x22bf94['discard']());if(_0x3072f9['every'](_0x297a45=>_0x3e244a['some'](_0x7c03ad=>_0x7c03ad['containsRange'](_0x297a45,!0x0)))){const _0x26fe49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fa783,'accept');return this['forceDefaultExecution'](()=>_0x26fe49(_0x52cf17,null,_0x299089)),null;}}else{const _0x14bc41=_0x22bf94['getFirstRange']();_0x3072f9['some'](_0x23ebe6=>_0x23ebe6['containsRange'](_0x14bc41,!0x0))&&_0x22bf94['discard']();if(_0x3072f9['every'](_0x257f95=>_0x14bc41['containsRange'](_0x257f95,!0x0))){const _0x1a57a8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fa783,'accept');return this['forceDefaultExecution'](()=>_0x1a57a8(_0x3072f9,null,_0x299089)),null;}}const _0x5d03fe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fa783,'join');let _0xec5233=null;for(const _0x5ea9ed of this['getSuggestions']())if(_0x5ea9ed['author']['id']==_0x30f02c['id']&&_0x5ea9ed['isInContent']&&'deletion'==_0x5ea9ed['type']&&_0x5ea9ed['subType']==_0x4fa783&&Lt(_0x5ea9ed,_0x299089)&&(_0x5d03fe(_0x5ea9ed['getRanges'](),_0x3072f9)||_0x5d03fe(_0x3072f9,_0x5ea9ed['getRanges']()))){if(_0xec5233){if(_0x5ea9ed['commentThread']&&_0x5ea9ed['commentThread']['length'])continue;for(const _0x11b3b9 of _0x5ea9ed['getRanges']())_0xec5233['isIntersectingWithRange'](_0x11b3b9)||_0xec5233['addRange'](_0x11b3b9);_0x5ea9ed['removeMarkers']();}else{_0xec5233=_0x5ea9ed;for(const _0x2131c9 of _0x3072f9)_0x5ea9ed['isIntersectingWithRange'](_0x2131c9)||_0x5ea9ed['addRange'](_0x2131c9);}}if(_0xec5233)return _0xec5233;_0x3f3c44['clear']();for(const {suggestion:_0xc502f2,meta:_0x4687aa}of this['_findSuggestions'](_0x3072f9,'deletion'))_0x4687aa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4687aa['containsRangeInObject']&&!_0x4687aa['isInsideObject'])&&Lt(_0xc502f2,_0x299089)&&_0x3f3c44['add'](_0xc502f2);for(const _0x4d2038 of _0x3f3c44){const _0x5bad54=_0x4d2038['getRanges']();if(!_0x299089||!_0x299089['skipNestingCheck']){if(_0x3072f9['every'](_0x22ffcb=>_0x5bad54['some'](_0x1c0c74=>_0x1c0c74['containsRange'](_0x22ffcb,!0x0))))return _0x4d2038;}(!_0x4d2038['attributes']||!_0x4d2038['attributes']['skipNestingCheck'])&&(_0x5bad54['every'](_0x3e14a0=>_0x3072f9['some'](_0x147413=>_0x147413['containsRange'](_0x3e14a0,!0x0)))&&_0x4d2038['discard']());}const _0x4d9684=_0x22411c(),_0x4ee716=_0x30f02c['id'],_0x2fa149='deletion:'+_0x4fa783,_0x5105bf=this['_setSuggestionData']({'id':_0x4d9684,'type':_0x2fa149,'createdAt':new Date(),'authorId':_0x4ee716,'attributes':_0x299089});for(const _0x160124 of _0x3072f9)_0x160124['detach'](),_0x160124['isCollapsed']||'$graveyard'==_0x160124['root']['rootName']||this['_addSuggestionMarker'](_0x2fa149,_0x4d9684,_0x4ee716,_0x160124,u['getMultiRangeId']());return _0x5105bf;}['markAttributeChange'](_0x2cec90,_0x3c5cc7,_0x2d998d,_0x334aa7,_0xa3400){if(_0x2cec90['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2af519=this['editor']['plugins']['get']('Users')['me']['id'],_0x124865=Array['from'](this['_suggestions']['values']())['filter'](_0x5c2d05=>'attribute'==_0x5c2d05['type']&&_0x5c2d05['data']['key']==_0x3c5cc7&&_0x5c2d05['isIntersectingWithRange'](_0x2cec90));if('default'===this['_trackFormatChanges']){const _0x51033e=this['_findSuggestions'](_0x2cec90,'insertion')['filter'](({meta:_0x4165e1})=>_0x4165e1['isOwn']&&!_0x4165e1['isInsideObject']&&!_0x4165e1['isNextTo'])['map'](({suggestion:_0x1c2788})=>_0x1c2788);_0x124865['unshift'](..._0x51033e);}const _0x555d36=new Map([[_0x2cec90,_0x2d998d]]);for(const _0x3cc895 of _0x124865){const _0x3437fe='attribute'==_0x3cc895['type']?_0x3cc895['data']['oldValue']:void 0x0,_0x7225a4=_0x3cc895['getFirstRange'](),_0x2e085e=Array['from'](_0x555d36['keys']())['find'](_0x229591=>_0x229591['isIntersecting'](_0x7225a4));if(!_0x2e085e)continue;const _0x3e233e=_0x2e085e['getDifference'](_0x7225a4);this['_isBlockAttribute'](_0x3c5cc7)&&'insertion'==_0x3cc895['type']&&0x0!=_0x3e233e['length']||(_0x555d36['delete'](_0x2e085e),_0x3e233e['forEach'](_0x1fded1=>{_0x555d36['set'](_0x1fded1,_0x2d998d);}),'insertion'!=_0x3cc895['type']&&_0x3437fe!=_0x334aa7&&_0x555d36['set'](_0x2e085e['getIntersection'](_0x7225a4),_0x3437fe));}const _0xf6eda5=[];for(const [_0x24e829,_0x4e3f9e]of _0x555d36){const _0x2400c6=_0x22411c(),_0x34f726={'key':_0x3c5cc7,'oldValue':_0x4e3f9e,'newValue':_0x334aa7};_0x3c5cc7['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':_0x3c5cc7});const _0x10d1f7=('attribute:'+(_0x3c5cc7+'|'+Vt({'newValue':_0x334aa7})))['substring'](0x0,0x3c),_0x1c71bb=this['_setSuggestionData']({'id':_0x2400c6,'type':_0x10d1f7,'data':_0x34f726,'createdAt':new Date(),'authorId':_0x2af519,'attributes':_0xa3400});_0xf6eda5['push'](_0x1c71bb),this['_addSuggestionMarker'](_0x10d1f7,_0x2400c6,_0x2af519,_0x24e829);}return _0xf6eda5;}['enableDefaultAttributesIntegration'](_0x243cc9){this['enableCommand'](_0x243cc9,(_0xf43317,..._0x3959be)=>{this['_recordAttributeChanges'](()=>{_0xf43317(..._0x3959be);});});}['registerBlockAttribute'](_0x49f397){this['_blockAttributeKeys']['add'](_0x49f397);}['registerInlineAttribute'](_0x19de9b){this['_inlineAttributeKeys']['add'](_0x19de9b);}['_getAttributeKey'](_0xa91e0d){return'attribute'==_0xa91e0d['type']?_0xa91e0d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4ad5e9,_0x1ac345){const _0x1726e8=_0x4ad5e9['getFirstMarker']();this['_model']['change'](_0x5f3b55=>{_0x5f3b55['updateMarker'](_0x1726e8,{'range':_0x1ac345});});}['_addThreadToSuggestion'](_0xc1b1bc){const _0x179e33=_0xc1b1bc['id'],_0x4f6cfe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x179e33)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f6cfe,'threadId':_0x179e33,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2abeee=this['_commentsRepository']['getCommentThread'](_0x179e33);_0x2abeee['unbind']('isRemovable'),_0x2abeee['isRemovable']=!0x1,_0xc1b1bc['commentThread']=_0x2abeee;}['_checkSuggestionCorrectness'](_0x54b784,_0x656154,_0x28758e,_0x1a12c3){if(_0x54b784['type']!=_0x656154||_0x54b784['subType']!=_0x28758e||_0x54b784['creator']['id']!=_0x1a12c3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xb8c959('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x6a3954,_0xe14ea){const _0x3bd7a9=_0x6a3954['getFirstRange']();if(_0xe14ea['isEqual'](_0x3bd7a9))_0x6a3954['removeMarkers']();else{if(_0x3bd7a9['containsRange'](_0xe14ea)){const _0x3a2622=this['_model']['createPositionAt'](_0xe14ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a3954,this['_model']['createRange'](_0x3bd7a9['start'],_0x3a2622));const _0x205b54=_0x22411c(),_0x1e4946=_0x6a3954['creator']['id'],_0x37bfb2=_0x6a3954['type']+':'+_0x6a3954['subType'];this['_setSuggestionData']({'id':_0x205b54,'type':_0x37bfb2,'createdAt':new Date(),'authorId':_0x1e4946,'data':_0x6a3954['data'],'attributes':_0x6a3954['attributes']});const _0x4d9688=this['_model']['createPositionAt'](_0xe14ea['end']['parent'],'after'),_0x5795d2=this['_model']['createRange'](_0x4d9688,_0x3bd7a9['end']);this['_addSuggestionMarker'](_0x37bfb2,_0x205b54,_0x1e4946,_0x5795d2);}else{if(_0x3bd7a9['containsPosition'](_0xe14ea['start'])){const _0x46b04d=this['_model']['createPositionAt'](_0xe14ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a3954,this['_model']['createRange'](_0x3bd7a9['start'],_0x46b04d));}else{const _0x22c75c=this['_model']['createPositionAt'](_0xe14ea['end']['parent'],'after');this['_setSuggestionRange'](_0x6a3954,this['_model']['createRange'](_0x22c75c,_0x3bd7a9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x489a30){for(const {suggestion:_0xe58524,meta:_0x1ecf09}of this['_findSuggestions'](_0x489a30,'insertion')){if(!_0x1ecf09['isOwn'])continue;const _0x26a7f5=_0xe58524['getRanges']();for(const _0x3febaf of _0x26a7f5)if(!_0x489a30['getDifference'](_0x3febaf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xddb619){const _0x4707e3=this['editor']['plugins']['get']('Users')['getUser'](_0xddb619);if(!_0x4707e3)throw new _0xb8c959('track-changes-user-not-found',this);return _0x4707e3;}['_getExternalAuthor'](_0x3817c1){const _0x59f343=this['editor']['plugins']['get']('Users'),_0x4447a8=_0x33246c('external:'+_0x3817c1),_0x5985d1=_0x59f343['getUser'](_0x4447a8);return _0x5985d1||_0x59f343['addUser']({'id':_0x4447a8,'name':_0x3817c1});}['_createSuggestion'](_0x30c56f,_0x3cb5ab,_0x205ba4,_0x31f7b6,_0x21b55d){const _0x392c4f=this['_getAuthorFromId'](_0x31f7b6),_0x2d9c89=this['_suggestionFactory']['buildSuggestion'](_0x30c56f,_0x3cb5ab,_0x205ba4,_0x392c4f,_0x21b55d,_0x233251=>{this['_updateSuggestionData'](_0x205ba4,{'attributes':_0x233251});const _0x296e7f=this['getSuggestion'](_0x205ba4);this['_joinWithAdjacentSuggestions'](new Set([_0x296e7f])),this['_refreshSuggestionsChain'](new Set([_0x296e7f]));});return this['listenTo'](_0x2d9c89,'accept',()=>{this['_updateSuggestionData'](_0x205ba4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2d9c89,'discard',()=>{this['_updateSuggestionData'](_0x205ba4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x205ba4,_0x2d9c89),this['_suggestionState']['set'](_0x2d9c89,'notReady'),_0x2d9c89;}['_splitMarkerName'](_0xc1e9){const _0x101ba8=_0xc1e9['split'](':');return{'group':_0x101ba8[0x0],'type':_0x101ba8[0x1],'subType':_0x101ba8['length']>=0x5?_0x101ba8[0x2]:null,'id':_0x101ba8['length']<0x5?_0x101ba8[0x2]:_0x101ba8[0x3],'authorId':_0x101ba8['length']<0x5?_0x101ba8[0x3]:_0x101ba8[0x4],'markerCount':0x6==_0x101ba8['length']?_0x101ba8[0x5]:null};}['_breakSuggestionMarker'](_0xd17772,_0x2c21ed,_0xb3ae55){const _0x614706=_0xd17772['getFirstRange'](),_0x121e03=_0x614706['start'],_0x129550=_0x614706['end'];this['_setSuggestionRange'](_0xd17772,this['_model']['createRange'](_0x121e03,_0x2c21ed));const _0x142ee2=_0x22411c(),_0x1d5026=_0xd17772['creator']['id'],_0x28e1ff=_0xd17772['type']+(_0xd17772['subType']?':'+_0xd17772['subType']:'');this['_setSuggestionData']({'id':_0x142ee2,'type':_0x28e1ff,'createdAt':new Date(),'authorId':_0x1d5026,'originalSuggestionId':_0xd17772['id'],'attributes':_0xd17772['attributes'],'data':_0xd17772['data']});const _0xe96ff4=this['_getAttributeKey'](_0xd17772);('formatBlock'==_0xd17772['type']||_0xe96ff4&&this['_isBlockAttribute'](_0xe96ff4))&&(_0xb3ae55=this['_model']['createPositionBefore'](_0xb3ae55['parent'])),this['_addSuggestionMarker'](_0x28e1ff,_0x142ee2,_0x1d5026,this['_model']['createRange'](_0xb3ae55,_0x129550));}['_findSuggestions'](_0x402316,_0x17444d=null){const _0x1a6986=[],_0x14a01e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x402316)||(_0x402316=[_0x402316]);for(const _0x3cdd61 of this['getSuggestions']()){if(!_0x3cdd61['isInContent'])continue;if(_0x17444d&&_0x3cdd61['type']!=_0x17444d)continue;let _0x7217f3=!0x1;for(const _0x904d90 of _0x3cdd61['getRanges']()){for(const _0x2c6440 of _0x402316){const _0x2902af=_0x2c6440['start']['isEqual'](_0x904d90['end'])||_0x2c6440['end']['isEqual'](_0x904d90['start']);if(_0x2902af||_0x2c6440['getIntersection'](_0x904d90)){const _0x307766=_0x2c6440['containsRange'](_0x904d90)&&Rt(this['_model']['schema'],_0x904d90['start'],_0x2c6440),_0x4894c0=_0x904d90['containsRange'](_0x2c6440)&&Rt(this['_model']['schema'],_0x2c6440['start'],_0x904d90);_0x1a6986['push']({'suggestion':_0x3cdd61,'meta':{'isOwn':_0x14a01e==_0x3cdd61['author'],'isNextTo':_0x2902af,'isInsideObject':_0x307766,'containsRangeInObject':_0x4894c0}}),_0x7217f3=!0x0;break;}}if(_0x7217f3)break;}}return _0x1a6986;}['_addSuggestionMarker'](_0xd9a416,_0x5c45c2,_0x487dfa,_0x22d940,_0x41be08){this['_model']['change'](_0x28d479=>{let _0x157eda='suggestion:'+_0xd9a416+':'+_0x5c45c2+':'+_0x487dfa;_0x41be08&&(_0x157eda=_0x157eda+':'+_0x41be08),_0x28d479['addMarker'](_0x157eda,{'range':_0x22d940,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x23d7a9){const _0x45ee3f=_0x23d7a9['previous'],_0x2a666b=_0x23d7a9['next'];_0x23d7a9['previous']=null,_0x23d7a9['next']=null,null!=_0x45ee3f&&_0x45ee3f['next']==_0x23d7a9&&(_0x45ee3f['next']=_0x2a666b),null!=_0x2a666b&&_0x2a666b['previous']==_0x23d7a9&&(_0x2a666b['previous']=_0x45ee3f),'ready'==this['_suggestionState']['get'](_0x23d7a9)&&(this['_suggestionState']['set'](_0x23d7a9,'removed'),this['fire']('suggestionUnloaded',_0x23d7a9,_0x45ee3f,_0x2a666b));}['_setSuggestionData'](_0x724e5d){const _0x7ee4e8=_0x724e5d['id'],_0x239dc7=this['addSuggestionData'](_0x724e5d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x27d1dd=this['editor']['plugins']['get']('PendingActions'),_0x46e8c4=_0x239dc7['hasComments'],_0x379207=_0x239dc7['subType']?_0x239dc7['type']+':'+_0x239dc7['subType']:_0x239dc7['type'],_0x9c1ebf=this['editor']['locale'],_0x3d2d1b=_0x27d1dd['add'](o(_0x9c1ebf,'PENDING_ACTION_SUGGESTION')),_0x17ddca={'id':_0x7ee4e8,'type':_0x379207,'hasComments':_0x46e8c4,'data':_0x724e5d['data']||null,'originalSuggestionId':_0x724e5d['originalSuggestionId']||null,'attributes':_0x239dc7['attributes']};this['_adapter']['addSuggestion'](_0x17ddca)['then'](_0x367286=>{_0x239dc7['_saved']=!0x0,_0x27d1dd['remove'](_0x3d2d1b),_0x367286&&_0x367286['createdAt']&&(this['_suggestions']['get'](_0x7ee4e8)['createdAt']=_0x367286['createdAt']);})['catch'](_0x2350f8=>{throw _0x2409cd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x239dc7['discard']();}),_0x239dc7['stopListening'](),this['_suggestions']['delete'](_0x239dc7['id']),this['_suggestionState']['delete'](_0x239dc7),_0x2350f8;});}return _0x239dc7;}['_isBlockAttribute'](_0x1a414d){return this['_blockAttributeKeys']['has'](_0x1a414d);}['_updateSuggestionData'](_0x15226a,_0x4880c5){const _0x29995d=this['editor']['plugins']['get']('PendingActions'),_0x406eea=this['getSuggestion'](_0x15226a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x406eea['_saved']){const _0x6d805c=_0x29995d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15226a,_0x4880c5)['then'](()=>{_0x29995d['remove'](_0x6d805c);});}else _0x406eea['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15226a,_0x4880c5);});}}['_getSuggestionData'](_0x3f8d45){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xb8c959('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f8d45);}['_handleNewSuggestionMarker'](_0x44d8fb){const {id:_0x49582c,type:_0x31d11d,subType:_0x4d74ed,authorId:_0x5e7dad}=this['_splitMarkerName'](_0x44d8fb),_0x3ee80a=this['_suggestions']['get'](_0x49582c)||this['_createSuggestion'](_0x31d11d,_0x4d74ed,_0x49582c,_0x5e7dad,{});switch(this['_checkSuggestionCorrectness'](_0x3ee80a,_0x31d11d,_0x4d74ed,_0x5e7dad),this['_suggestionState']['get'](_0x3ee80a)){case'notReady':this['_getSuggestionData'](_0x49582c)['then'](_0x219dad=>{let _0x2e39ab=Promise['resolve']();_0x219dad['hasComments']&&(_0x2e39ab=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49582c})),_0x2e39ab['then'](()=>{this['addSuggestionData'](_0x219dad)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3ee80a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49582c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3ee80a,'ready'),this['fire']('suggestionLoaded',_0x3ee80a);break;case'ready':this['fire']('suggestionChanged',_0x3ee80a);}return _0x3ee80a['addMarkerName'](_0x44d8fb),_0x3ee80a;}['_refreshSuggestionsChain'](_0x4774bb){const _0x2d2ecc=Array['from'](_0x4774bb),_0x127013=_0x2d2ecc['filter'](_0x41e0d6=>'attribute'==_0x41e0d6['type']);this['_refreshAttributeSuggestionsChain'](_0x127013);const _0xbf9dc3=_0x2d2ecc['filter'](_0x20a875=>!_0x20a875['isMultiRange']&&'attribute'!=_0x20a875['type']),_0x1e1592=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e8e89=>!_0x4e8e89['isMultiRange']&&'attribute'!=_0x4e8e89['type']),_0x3719c9=_0x1e1592['filter'](_0x1d3412=>!_0x4774bb['has'](_0x1d3412)),_0x2f866b=new Map(_0x1e1592['map'](_0x4f94ce=>[_0x4f94ce,this['_suggestionFactory']['getSuggestionCallback'](_0x4f94ce['type'],_0x4f94ce['subType'],'chain')])),_0x38d865=new Map(_0x1e1592['map'](_0x1dff9e=>[_0x1dff9e,_0x1dff9e['getFirstRange']()])),_0x1aea19=new Set(),_0x59e980=new Set();for(let _0x17c675=0x0;_0x17c675<_0xbf9dc3['length'];_0x17c675++)_0x5ee400(_0xbf9dc3[_0x17c675],_0xbf9dc3,_0x17c675+0x1);for(let _0x488860=0x0;_0x488860<_0xbf9dc3['length'];_0x488860++)_0x5ee400(_0xbf9dc3[_0x488860],_0x3719c9,0x0);const _0x488caa=new Set();for(let _0x47b7c6=0x0;_0x47b7c6<_0xbf9dc3['length'];_0x47b7c6++){const _0x300ed7=_0xbf9dc3[_0x47b7c6];!_0x59e980['has'](_0x300ed7)&&_0x300ed7['previous']&&(_0x488caa['add'](_0x300ed7['previous']),_0x300ed7['previous']['next']===_0x300ed7&&(_0x300ed7['previous']['next']=null),_0x300ed7['previous']=null),!_0x1aea19['has'](_0x300ed7)&&_0x300ed7['next']&&(_0x488caa['add'](_0x300ed7['next']),_0x300ed7['next']['previous']===_0x300ed7&&(_0x300ed7['next']['previous']=null),_0x300ed7['next']=null);}function _0x5ee400(_0x1d916f,_0x5f479d,_0x6a8b11){for(let _0xa1972a=_0x6a8b11;_0xa1972a<_0x5f479d['length'];_0xa1972a++){const _0x2f6a53=_0xc33c76(_0x1d916f,_0x5f479d[_0xa1972a]);_0x2f6a53&&(_0x2f6a53[0x0]['next']=_0x2f6a53[0x1],_0x2f6a53[0x1]['previous']=_0x2f6a53[0x0],_0x1aea19['add'](_0x2f6a53[0x0]),_0x59e980['add'](_0x2f6a53[0x1]));}}function _0xc33c76(_0x1062ff,_0x53e3c0){if(_0x1062ff['author']['id']!==_0x53e3c0['author']['id'])return null;const _0x43b70b=_0x2f866b['get'](_0x1062ff)(_0x1062ff,_0x53e3c0,_0x38d865['get'](_0x1062ff),_0x38d865['get'](_0x53e3c0));if(!_0x43b70b)return null;return _0x2f866b['get'](_0x53e3c0)(_0x1062ff,_0x53e3c0,_0x38d865['get'](_0x1062ff),_0x38d865['get'](_0x53e3c0))?_0x43b70b[0x1]['commentThread']&&_0x43b70b[0x1]['commentThread']['length']?null:_0x43b70b:null;}_0x488caa['size']&&this['_refreshSuggestionsChain'](_0x488caa);}['_refreshAttributeSuggestionsChain'](_0x3686c7){if(0x0==_0x3686c7['length'])return;const _0x17dda1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x466242=>'attribute'==_0x466242['type']&&_0x466242['_isDataLoaded']),_0x532acc=[],_0x2c5437=new Map();for(const _0x4dd1b0 of _0x17dda1){const _0x3226a3=_0x33246c(_0x4dd1b0['attributes']);_0x2c5437['has'](_0x3226a3)||(_0x2c5437['set'](_0x3226a3,_0x532acc['length']),_0x532acc['push']([]));const _0x211a72=_0x2c5437['get'](_0x3226a3);_0x532acc[_0x211a72]['push'](_0x4dd1b0);}!(function(){_0x532acc['sort']((_0x4e89ad,_0x3f8e0f)=>{const _0x23ce36=_0x4e89ad[0x0]['createdAt'],_0x4f85a3=_0x3f8e0f[0x0]['createdAt'];return _0x23ce36==_0x4f85a3?_0x4e89ad[0x0]['attributes']['groupId']<_0x3f8e0f[0x0]['attributes']['groupId']?-0x1:0x1:_0x23ce36<_0x4f85a3?-0x1:0x1;});for(const _0x1fc141 of _0x532acc)_0x1fc141['sort']((_0x3fa248,_0x5a55a6)=>_0x3fa248['id']<_0x5a55a6['id']?-0x1:0x1);}());for(let _0x55c89c=0x0;_0x55c89c<_0x532acc['length'];_0x55c89c++){if(0x0==_0x532acc[_0x55c89c]['length'])continue;const _0x3d2421=[];for(let _0x36a2c7=_0x55c89c+0x1;_0x36a2c7<_0x532acc['length'];_0x36a2c7++)0x0!=_0x532acc[_0x36a2c7]['length']&&_0x3a05e2(_0x532acc[_0x55c89c],_0x532acc[_0x36a2c7])&&_0x3d2421['push'](_0x36a2c7);for(const _0x5485f2 of _0x3d2421)_0x532acc[_0x55c89c]=_0x532acc[_0x55c89c]['concat'](_0x532acc[_0x5485f2]),_0x532acc[_0x5485f2]=[];}for(const _0x2cc49f of _0x532acc)for(let _0x2a32c7=0x0;_0x2a32c7<_0x2cc49f['length'];_0x2a32c7++)_0x2cc49f[_0x2a32c7]['next']=_0x2cc49f[_0x2a32c7+0x1]||null;for(const _0x52170c of _0x532acc)for(let _0x20e4e2=0x0;_0x20e4e2<_0x52170c['length'];_0x20e4e2++)_0x52170c[_0x20e4e2]['previous']=_0x52170c[_0x20e4e2-0x1]||null;function _0x3a05e2(_0x427b81,_0x23c84a){if(_0x427b81[0x0]['attributes']['groupId']!==_0x23c84a[0x0]['attributes']['groupId']&&_0x427b81[0x0]['author']!==_0x23c84a[0x0]['author'])return!0x1;if(!function(_0x4a081d,_0x5cf4d7){if(!_0x4a081d['hasComments']&&!_0x5cf4d7['hasComments'])return!0x0;if(_0x4a081d['hasComments']&&_0x5cf4d7['hasComments'])return!0x1;if(_0x4a081d['hasComments']&&_0x5cf4d7['createdAt']<_0x4a081d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5cf4d7['hasComments']&&_0x4a081d['createdAt']<_0x5cf4d7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x427b81[0x0],_0x23c84a[0x0]))return!0x1;const _0x584329=Bt(_0x427b81[0x0]['attributes'],'groupId'),_0x588b44=Bt(_0x23c84a[0x0]['attributes'],'groupId');if(!_0x2d0f6d(_0x584329,_0x588b44))return!0x1;return!!_0x427b81['every'](_0x354d4a=>_0x23c84a['some'](_0x352d5c=>_0x354d4a['getFirstRange']()['isEqual'](_0x352d5c['getFirstRange']())))&&_0x23c84a['every'](_0x56385f=>_0x427b81['some'](_0x5e064f=>_0x56385f['getFirstRange']()['isEqual'](_0x5e064f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x594e09){const _0x580f5f=Array['from'](_0x594e09),_0x29712a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x23f39b=_0x29712a['filter'](_0x47b1b6=>!_0x594e09['has'](_0x47b1b6)),_0x1c9ee9=new Map(_0x580f5f['map'](_0x185e0f=>[_0x185e0f,this['_suggestionFactory']['getSuggestionCallback'](_0x185e0f['type'],_0x185e0f['subType'],'join')])),_0x588a1b=new Map(_0x29712a['map'](_0x7e0601=>[_0x7e0601,_0x7e0601['getRanges']()]));for(let _0x15f246=0x0;_0x15f246<_0x580f5f['length'];_0x15f246++){if(_0x352995(this,_0x580f5f[_0x15f246],_0x580f5f,_0x15f246+0x1))return!0x0;}for(let _0x1a1403=0x0;_0x1a1403<_0x580f5f['length'];_0x1a1403++){if(_0x352995(this,_0x580f5f[_0x1a1403],_0x23f39b,0x0))return!0x0;}return!0x1;function _0x352995(_0x4c6552,_0x4ac759,_0x54f75a,_0x1c4c23){for(let _0x3ec4af=_0x1c4c23;_0x3ec4af<_0x54f75a['length'];_0x3ec4af++){const _0x5e975f=_0x54f75a[_0x3ec4af];if(_0x5e975f['type']!==_0x4ac759['type']||_0x5e975f['author']['id']!==_0x4ac759['author']['id']||_0x5e975f['subType']!==_0x4ac759['subType'])continue;if(!Pt(_0x4ac759,_0x5e975f,['groupId']))continue;if('attribute'==_0x4ac759['type']&&_0x4ac759['data']['oldValue']!=_0x5e975f['data']['oldValue'])continue;if('attribute'==_0x4ac759['type']&&_0x4c6552['_isBlockAttribute'](_0x4ac759['data']['key']))continue;if('formatBlock'==_0x4ac759['type']){const _0x26463d=_0x4c6552['editor']['model'],_0x155a7e=_0x4ac759['getContainedElement']();if(_0x155a7e&&(_0x26463d['schema']['isObject'](_0x155a7e)||_0x26463d['schema']['isLimit'](_0x155a7e)))continue;}const _0x58a2dd=_0x1c9ee9['get'](_0x4ac759),_0x5c8469=_0x588a1b['get'](_0x4ac759),_0x5e50e6=_0x588a1b['get'](_0x5e975f),_0x4cd93a=_0x4ac759['commentThread']&&_0x4ac759['commentThread']['length'],_0x305304=_0x5e975f['commentThread']&&_0x5e975f['commentThread']['length'];if(!_0x4cd93a&&_0x58a2dd(_0x5e50e6,_0x5c8469))return _0x4c6552['_joinSuggestions'](_0x5e975f,_0x4ac759),_0x588a1b['delete'](_0x4ac759),!0x0;if(!_0x305304&&_0x58a2dd(_0x5c8469,_0x5e50e6))return _0x4c6552['_joinSuggestions'](_0x4ac759,_0x5e975f),_0x588a1b['delete'](_0x5e975f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x53deda,_0x2f5b0a){if(_0x53deda['isMultiRange']){for(const _0x2ebb73 of _0x2f5b0a['getRanges']())_0x53deda['addRange'](_0x2ebb73);}else{const _0x40a151=_0x2f5b0a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x53deda,this['_model']['createRange'](_0x53deda['getFirstRange']()['start'],_0x40a151));}_0x2f5b0a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x238415,_0x71cd4){const _0x532d29=_0x238415['startsWith']('format')||_0x238415['startsWith']('attribute')?'FORMATTING':_0x238415['toUpperCase']();return o(this['editor']['locale'],_0x71cd4+'_'+_0x532d29+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x597c9e=this['editor'];if(!_0x597c9e['ui'])return;const {ariaLiveAnnouncer:_0x228949}=_0x597c9e['ui'];_0xd88263(this['_model'],({left:_0x3faf5d,entered:_0x20f2ec})=>{for(const _0x190c29 of _0x3faf5d){const {group:_0x33a9da,type:_0x389d98}=this['_splitMarkerName'](_0x190c29['name']);if('suggestion'===_0x33a9da){_0x228949['announce'](this['_getMarkerAnnouncementText'](_0x389d98,'LEAVE'));break;}}for(const _0xf9de95 of _0x20f2ec){const {group:_0x5b25f9,type:_0x21f09c}=this['_splitMarkerName'](_0xf9de95['name']);if('suggestion'===_0x5b25f9){_0x228949['announce'](this['_getMarkerAnnouncementText'](_0x21f09c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x21c53d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5122ee=this['editor'],_0x152299=_0x5122ee['model']['document']['differ']['getChanges']();if(0x0==_0x152299['length'])return!0x1;const _0x432f77=[],_0x271ca6=_0x152299['filter'](_0x1b24df=>'attribute'==_0x1b24df['type']),_0x5d51e9=_0x152299['filter'](_0x1aa00c=>'insert'==_0x1aa00c['type']&&'$text'!=_0x1aa00c['name']),_0x3564ea=_0x152299['filter'](_0x575d15=>'remove'==_0x575d15['type']&&'$text'!=_0x575d15['name']);for(const _0x2e63b3 of _0x271ca6)_0x432f77['push']({'key':_0x2e63b3['attributeKey'],'newValue':_0x2e63b3['attributeNewValue'],'oldValue':_0x2e63b3['attributeOldValue'],'range':Ot(_0x2e63b3['range'],_0x5122ee['model'])});for(const _0x2b46b1 of _0x5d51e9){const _0x404306=_0x3564ea['find'](_0x1514ae=>_0x1514ae['position']['isEqual'](_0x2b46b1['position']));_0x404306&&_0x432f77['push']({'key':m,'newValue':_0x2b46b1['name'],'oldValue':_0x404306['name'],'range':_0x5122ee['model']['createRangeOn'](_0x2b46b1['position']['nodeAfter'])});}return 0x0!=_0x432f77['length']&&this['_reduceExistingSuggestions'](_0x21c53d,_0x432f77);}['_processAttributeSuggestions'](_0x1de49e){let _0xb261cf=!0x1;const _0x2f9b43=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f331b=>_0x2f331b['data']['newRange']&&_0x2f331b['name']['startsWith']('suggestion:attribute:'));for(const _0x79dea6 of _0x2f9b43){const {subType:_0x328bb3,id:_0x31731e}=this['_splitMarkerName'](_0x79dea6['name']),_0x1d6888=_0x328bb3['split']('|')[0x0];for(const _0x232906 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x232906['id']!=_0x31731e&&'attribute'==_0x232906['type']&&_0x232906['data']&&_0x232906['data']['key']==_0x1d6888&&_0x232906['getFirstRange']()['isIntersecting'](_0x79dea6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x232906,_0x79dea6['data']['newRange'],_0x1de49e),_0xb261cf=!0x0);}return _0xb261cf;}['_recordAttributeChanges'](_0x4ac81f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4ac81f();}['_isRegisteredAttribute'](_0x2f65a7){const _0x18a7df=this['_isBlockAttribute'](_0x2f65a7),_0x2ccf6e=this['_inlineAttributeKeys']['has'](_0x2f65a7);return _0x18a7df||_0x2ccf6e;}['_reduceExistingSuggestions'](_0x489074,_0x12acdd){if(0x0==_0x12acdd['length'])return!0x1;let _0x420ec5=!0x1;for(const _0x5ab0df of _0x12acdd){const _0x3e3952=this['_findSuggestions'](_0x5ab0df['range'],'attribute')['filter'](_0x4d106e=>!_0x4d106e['meta']['isNextTo'])['map'](_0x537a87=>_0x537a87['suggestion']),_0x1ab043=_0x33246c({'newValue':_0x5ab0df['newValue']});_0x3e3952['filter'](_0x35e427=>{const [_0x2805d0,_0x4b272a]=_0x35e427['subType']['split']('|');return _0x2805d0==_0x5ab0df['key']&&_0x4b272a!=_0x1ab043;})['forEach'](_0x1633f5=>{this['_reduceSuggestionAttributeRange'](_0x1633f5,_0x5ab0df['range'],_0x489074),_0x420ec5=!0x0;});}return _0x420ec5;}['_reduceSuggestionAttributeRange'](_0x5481b1,_0x3b1cb6,_0x410672){const _0x4679b7=_0x5481b1['getFirstRange']()['getDifference'](_0x3b1cb6);0x0!==_0x4679b7['length']?0x1!==_0x4679b7['length']?this['_breakSuggestionMarker'](_0x5481b1,_0x3b1cb6['start'],_0x3b1cb6['end']):this['_setSuggestionRange'](_0x5481b1,_0x4679b7[0x0]):_0x410672['removeMarker'](_0x5481b1['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5650ec){this['_editor']=_0x5650ec,this['_model']=_0x5650ec['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e8208,_0x34bd6f,_0xe00bf9,_0x3af9f7,_0x8e9779,_0x46f105){return new u(this['_model'],{'type':_0x2e8208,'subType':_0x34bd6f,'id':_0xe00bf9,'author':_0x3af9f7,'creator':_0x3af9f7,'attributes':_0x8e9779,'onAttributesChange':_0x46f105,'onAccept':(..._0x4215ff)=>this['getSuggestionCallback'](_0x2e8208,_0x34bd6f,'accept')(..._0x4215ff),'onDiscard':(..._0x3670d3)=>this['getSuggestionCallback'](_0x2e8208,_0x34bd6f,'discard')(..._0x3670d3)});}['registerCustomCallback'](_0x365d2b,_0x22bdff,_0x17bb02,_0x2b3475){const _0x30b989=_0x365d2b+':'+_0x22bdff+':'+_0x17bb02;this['_customCallbacks']['set'](_0x30b989,_0x2b3475);}['getSuggestionCallback'](_0x48d6f8,_0x2c774a,_0x58c577){const _0x357497=_0x48d6f8+':'+_0x2c774a+':'+_0x58c577;return this['_customCallbacks']['get'](_0x357497)||this['_defaultCallbacks']['get'](_0x48d6f8+':'+_0x58c577);}['_registerDefaultCallbacks'](){const _0x44b2ea=()=>!0x1,_0x3bcf25=_0x1c55cc=>{_0x1c55cc['sort']((_0x15a476,_0x5463d1)=>_0x15a476['start']['isBefore'](_0x5463d1['start'])?0x1:-0x1),this['_model']['change'](_0x2a18e8=>{for(const _0x5f217b of _0x1c55cc){let _0x298691;_0x298691=_0x5f217b['end']['isAtEnd']&&_0x5f217b['end']['parent']==_0x5f217b['start']['nodeAfter']?_0x2a18e8['createSelection'](_0x5f217b['start']['nodeAfter'],'on'):_0x2a18e8['createSelection'](_0x5f217b),this['_model']['deleteContent'](_0x298691,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x45e9a2=(_0x4fc229,_0xec0197)=>{_0xec0197&&this['_model']['change'](_0x45428a=>{const {commandName:_0x7fec50,commandParams:_0x4e0e59=[]}=_0xec0197,_0x50842a=_0x4fc229['map'](_0x3b29b3=>(Tt(_0x3b29b3)&&(_0x3b29b3=this['_model']['createRange'](_0x3b29b3['end'])),_0x3b29b3))['filter'](_0x25ac20=>'$graveyard'!==_0x25ac20['root']['rootName']);if(_0x50842a['length']<0x1)return;const _0x36d2e3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x410f32=>_0x24837b['fromRange'](_0x410f32));_0x45428a['setSelection'](_0x50842a);for(const _0x2c9bc9 of this['_editor']['commands']['commands']())_0x2c9bc9['refresh']();_0x4e0e59['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7fec50,..._0x4e0e59);const _0x434f84=_0x36d2e3['filter'](_0x5f2ad9=>'$graveyard'!=_0x5f2ad9['root']['rootName']);_0x434f84['length']>0x0&&_0x45428a['setSelection'](_0x434f84);for(const _0x3bac0f of _0x36d2e3)_0x3bac0f['detach']();});},_0x25b3d4=(_0x2ca6c6,_0x5a17f2)=>0x1==_0x2ca6c6['length']&&0x1==_0x5a17f2['length']&&_0x2ca6c6[0x0]['end']['isEqual'](_0x5a17f2[0x0]['start']),_0x382a5d=(_0x53850d,_0x1c713a,_0xf3a2c8,_0xcf4f42)=>Ft(_0x53850d,_0x1c713a,_0xf3a2c8,_0xcf4f42,this['_model'])?[_0x53850d,_0x1c713a]:Ft(_0x1c713a,_0x53850d,_0xcf4f42,_0xf3a2c8,this['_model'])?[_0x1c713a,_0x53850d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x44b2ea),this['_defaultCallbacks']['set']('insertion:discard',_0x3bcf25),this['_defaultCallbacks']['set']('insertion:join',_0x25b3d4),this['_defaultCallbacks']['set']('insertion:chain',_0x382a5d),this['_defaultCallbacks']['set']('deletion:accept',_0x3bcf25),this['_defaultCallbacks']['set']('deletion:discard',_0x44b2ea),this['_defaultCallbacks']['set']('deletion:join',_0x25b3d4),this['_defaultCallbacks']['set']('deletion:chain',_0x382a5d),this['_defaultCallbacks']['set']('formatInline:accept',_0x45e9a2),this['_defaultCallbacks']['set']('formatInline:discard',_0x44b2ea),this['_defaultCallbacks']['set']('formatInline:join',_0x25b3d4),this['_defaultCallbacks']['set']('formatInline:chain',_0x44b2ea),this['_defaultCallbacks']['set']('formatBlock:accept',_0x45e9a2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x44b2ea),this['_defaultCallbacks']['set']('formatBlock:join',_0x25b3d4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x44b2ea),this['_defaultCallbacks']['set']('attribute:accept',_0x44b2ea),this['_defaultCallbacks']['set']('attribute:discard',(_0x59b7de,_0x304e35)=>{if(!_0x304e35)return;const _0x57938e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xa58595=>{if(_0x304e35['key']==m)for(const _0x345b0d of _0x59b7de){const _0x30d788=_0x345b0d['start']['nodeAfter'],_0x51a594=_0x304e35['oldValue'];_0xa58595['rename'](_0x30d788,_0x51a594);}else{if(_0x57938e['_isBlockAttribute'](_0x304e35['key'])){for(const _0xd1ca9d of _0x59b7de)void 0x0!==_0x304e35['oldValue']?_0xa58595['setAttribute'](_0x304e35['key'],_0x304e35['oldValue'],_0xd1ca9d['start']['nodeAfter']):_0xa58595['removeAttribute'](_0x304e35['key'],_0xd1ca9d['start']['nodeAfter']);}else{for(const _0x509a7d of _0x59b7de)_0x304e35['oldValue']?_0xa58595['setAttribute'](_0x304e35['key'],_0x304e35['oldValue'],_0x509a7d):_0xa58595['removeAttribute'](_0x304e35['key'],_0x509a7d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x25b3d4);}}function Rt(_0x551021,_0x6e37a1,_0x5f0e0d){for(const _0x5b5354 of _0x6e37a1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b5354['root']==_0x5b5354)return!0x1;if(!_0x5f0e0d['containsItem'](_0x5b5354))return!0x1;if(_0x551021['isObject'](_0x5b5354)||_0x551021['isLimit'](_0x5b5354))return!0x0;}return!0x1;}function Tt(_0x129ebb){return _0x129ebb['end']['parent']==_0x129ebb['start']['nodeAfter']&&_0x129ebb['end']['isAtStart'];}function Et(_0xc4e57a,_0x51afe2,_0x3be4e1,_0x3620b8){const _0x228d5e=_0x3e3ab0=>!_0x3e3ab0['item']['is']('$textProxy')&&!_0x3620b8['isObject'](_0x3e3ab0['item']),_0x27b384=_0xc4e57a['start']['getLastMatchingPosition'](_0x228d5e),_0xdaf79f=_0xc4e57a['end']['getLastMatchingPosition'](_0x228d5e,{'direction':'backward'});return(!_0xc4e57a['start']['isEqual'](_0x27b384)||!_0xc4e57a['end']['isEqual'](_0xdaf79f))&&(_0x27b384['isBefore'](_0xdaf79f)?_0x3be4e1['updateMarker'](_0x51afe2,{'range':_0x3be4e1['createRange'](_0x27b384,_0xdaf79f)}):_0x3be4e1['removeMarker'](_0x51afe2),!0x0);}function Vt(_0x4f6344){return _0x33246c(_0x4f6344);}function Ut(_0x3ce67e){const _0x2af34=_0x3ce67e['start']['nodeAfter'];return _0x2af34&&_0x2af34['is']('element');}function Ot(_0x29fb3a,_0x58bb86){return null==_0x29fb3a['end']['nodeBefore']&&_0x29fb3a['end']['parent']==_0x29fb3a['start']['nodeAfter']?Gt(_0x29fb3a['start']['nodeAfter'],_0x58bb86):_0x29fb3a;}function Gt(_0x33e18d,_0x10d732){const _0x306469=_0x10d732['schema']['isObject'](_0x33e18d)||_0x10d732['schema']['isSelectable'](_0x33e18d);return _0x10d732['createRange'](_0x10d732['createPositionAt'](_0x33e18d,'before'),_0x306469?_0x10d732['createPositionAfter'](_0x33e18d):_0x10d732['createPositionAt'](_0x33e18d,'end'));}function Ft(_0x3c1711,_0x2954d4,_0x1a8783,_0x263368,_0x3bbf61){if(!Pt(_0x3c1711,_0x2954d4))return!0x1;if(_0x1a8783['end']['isEqual'](_0x263368['start']))return!0x0;if(_0x3c1711['type']!=_0x2954d4['type'])return!0x1;if(!_0x1a8783['end']['isTouching'](_0x263368['start']))return!0x1;const _0x10ab8c=_0x3bbf61['createRange'](_0x1a8783['end'],_0x263368['start'])['getWalker']();for(const _0x5a00a1 of _0x10ab8c)if(['elementStart','elementEnd']['includes'](_0x5a00a1['type'])&&_0x3bbf61['schema']['isLimit'](_0x5a00a1['item']))return!0x1;return!0x0;}function Pt(_0x18a8ef,_0xc771c5,_0x2947b1=[]){return!(!_0x18a8ef['_isDataLoaded']||!_0xc771c5['_isDataLoaded'])&&_0x2d0f6d(Bt(_0x18a8ef['attributes'],_0x2947b1),Bt(_0xc771c5['attributes'],_0x2947b1));}function Lt(_0x3da004,_0x43e6f6){const _0x5ed8f8=Ht(_0x3da004['attributes']),_0x3198de=Ht(_0x43e6f6);if(!_0x3da004['_isDataLoaded'])return!0x1;for(const _0x3e406f of Object['keys'](_0x3198de))if(!_0x2d0f6d(_0x5ed8f8[_0x3e406f],_0x3198de[_0x3e406f]))return!0x1;return!0x0;}function Ht(_0x497aac){const _0x58069a=Object['assign']({},_0x497aac);return delete _0x58069a['skipNestingCheck'],delete _0x58069a['tablePasteChainId'],_0x58069a;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x4e1d0a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4ed5f4,_0x2e30d6,_0x4f17e2,_0x2dfa21){super(),this['model']=_0x2e30d6,this['view']=_0x4f17e2,this['commentThreadController']=_0x2dfa21,this['_editor']=_0x4ed5f4,this['_acceptCommand']=_0x4ed5f4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4ed5f4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4df05e,_0x43fdc6)=>_0x4df05e||_0x43fdc6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a4a38=>_0x1a4a38&&this['_editor']['model']['canEditAt'](_0x2e30d6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x140d1e=>_0x140d1e&&this['_editor']['model']['canEditAt'](_0x2e30d6['getRanges']())),this['_pendingAction']=null,_0x4f17e2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f17e2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f17e2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f17e2,'change:isDirty',()=>{_0x4f17e2['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 _0x5dee87=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5dee87);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x41761a{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x20331c,_0x4aa8d4,_0x1789bd,_0x5b8283){super(_0x20331c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4aa8d4['authoredAt']),this['bind']('authoredAt')['to'](_0x4aa8d4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4aa8d4,this['_localUser']=_0x1789bd,this['_config']=_0x5b8283,_0x5b8283['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x20f614}=this['_config'];this['commentsListView']=new _0x20f614(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',_0x569c45=>_0x569c45+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x34bdf7,_0x12550b)=>_0x34bdf7||!!_0x12550b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x277efa}=this['_config'],_0x4d1181=new _0x277efa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5227f1=_0x4d1181['commentInputView'];return _0x4d1181['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5227f1,'value',(_0x648c3c,_0x4c7066,_0x5323e7)=>!!_0x5323e7||_0x648c3c&&!_0x4c7066),_0x5227f1['on']('submit',(_0x2e57e6,_0x48be8c)=>{this['fire']('addComment',_0x48be8c),_0x5227f1['editor']['setData']('');}),_0x5227f1['on']('cancel',()=>this['focus']()),_0x5227f1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4d1181;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x50be68,_0x20e0c3,_0x313d9b,_0x3dc9bf){super(_0x50be68,_0x20e0c3,_0x313d9b,_0x3dc9bf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10cb14=>_0x10cb14&&_0x10cb14[0x0]?_0x10cb14[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x26fe5d,_0x50426d)=>{let _0x47218e='';for(const _0x437b34 of _0x26fe5d)_0x47218e+='<p>'+ds(_0x437b34['content'],_0x437b34['color'])+'</p>';return _0x50426d?_0x47218e:_0x357300(_0x47218e,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x50be68,'Accept\x20suggestion'),_0x5d0072['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x50be68,'Discard\x20suggestion'),_0x5d0072['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x23d4a5(_0x50be68,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x21cf3d=this['bindTemplate'],_0x236416=[{'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':_0x21cf3d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21cf3d['to']('authoredAt',_0x408749=>this['_config']['formatDateTime'](_0x408749))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x236416['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x151905={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x21cf3d['if']('isActive','ck-suggestion-wrapper--active'),_0x21cf3d['to']('type',_0x359af6=>'ck-suggestion-'+_0x359af6),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x236416}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x151905['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x151905;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x50d398,_0x75ceed,_0xe221a7)=>{this['_descriptionElement']['innerHTML']=_0xe221a7;});}['_createButton'](_0x4cc715,_0x212841,_0x1e6231,_0x35b1f1,_0x583520){const _0x16b48d=new _0x588b59(this['locale']);return _0x16b48d['set']({'label':_0x4cc715,'icon':_0x212841,'tooltip':!0x0,'tooltipPosition':_0x583520}),_0x16b48d['extendTemplate']({'attributes':{'class':_0x1e6231}}),_0x16b48d['on']('execute',()=>{this['fire'](_0x35b1f1,this['_model']['id']);}),_0x16b48d;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x3439f0,_0x138c4a){let _0x3e467a='';return _0x3e467a+=_0x3439f0['split']('*')['map']((_0x114f03,_0x18ce9e)=>_0x18ce9e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x114f03)+'</span>':us(_0x114f03))['join'](''),_0x138c4a&&(_0x3e467a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x138c4a['value']+'\x22\x20title=\x22'+_0x138c4a['title']+'\x22></span>'),_0x3e467a;}function us(_0x24fb2b){const _0x1af448=document['createElement']('span');return _0x1af448['innerText']=_0x24fb2b,_0x1af448['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1367c6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x54f297,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x48980a){super(_0x48980a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1fb17e=this['editor']['config'];_0x1fb17e['define']('trackChanges.SuggestionThreadView',ne),_0x1fb17e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1fb17e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x399ec0,_0x5db3e6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d9be7,_0x3c7aee]of this['_handleControllerBuffer']){const _0x559bb8=this['_suggestionToController']['has'](_0x5d9be7);_0x559bb8||_0x3c7aee?_0x559bb8&&_0x3c7aee&&this['_destroyController'](_0x5d9be7):this['_initializeController'](_0x5d9be7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x399ec0,_0x5db3e6);}['init'](){const _0x1125ec=this['editor'],_0x5e7c25=_0x1125ec['plugins']['get']('TrackChangesEditing'),_0x390ee3=_0x1125ec['plugins']['get']('Annotations'),_0x36e41f=_0x1125ec['plugins']['get']('EditorAnnotations'),_0x5e9b86=_0x1125ec['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x36e41f['addSourceCollector'](()=>{const _0x341798=[];for(const [_0x4638e1,_0x564e43]of Array['from'](this['_suggestionToController'])){const _0x264a39=_0x4638e1['getAllAdjacentSuggestions'](),_0x15336d=[];for(const _0x264d8f of _0x264a39){if(!_0x264d8f['isInContent'])continue;if(_0x264d8f['isMultiRange']){_0x15336d['push'](..._0x264d8f['getRanges']());continue;}const _0x43d103=_0x264d8f['getFirstRange']();if(_0x15336d['length']>0x0){const _0xfcebfe=_0x15336d[0x0]['getJoined'](_0x43d103);if(_0xfcebfe){_0x15336d[0x0]=_0xfcebfe;continue;}}_0x15336d['push'](_0x43d103);}_0x341798['push']([_0x564e43['view'],_0x15336d]);}return _0x341798;}),this['listenTo'](_0x5e7c25,'suggestionLoaded',(_0x14b0b3,_0x592ad2)=>{this['listenTo'](_0x592ad2,'change:previous',(_0xbf0992,_0x4182ed,_0x5041e0,_0x11b3c3)=>{_0x592ad2['isInContent']&&(null==_0x5041e0?(this['_updateController'](_0x11b3c3['head']),this['_handleSuggestionControllerDelayed'](_0x592ad2,!0x1)):(this['_updateController'](_0x5041e0['head']),null==_0x11b3c3&&this['_handleSuggestionControllerDelayed'](_0x592ad2,!0x0)));}),null!==_0x592ad2['previous']?this['_updateController'](_0x592ad2['head']):this['_handleSuggestionControllerDelayed'](_0x592ad2,!0x1);}),this['listenTo'](_0x5e7c25,'suggestionUnloaded',(_0x2d8f62,_0x4c0b86,_0x17958b)=>{this['stopListening'](_0x4c0b86,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4c0b86),this['_suggestionToController']['has'](_0x4c0b86)&&this['_destroyController'](_0x4c0b86),_0x17958b&&this['_updateController'](_0x17958b['head']);}),this['listenTo'](_0x5e7c25,'suggestionChanged',(_0x159b9a,_0x5697b4)=>{this['_updateController'](_0x5697b4);}),this['listenTo'](_0x390ee3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e9b86,'addComment',(_0x3179cf,{threadId:_0x2300c,isFromAdapter:_0x5cf24e})=>{if(_0x5cf24e||!_0x5e7c25['hasSuggestion'](_0x2300c))return;const _0x3f3e43=_0x5e7c25['getSuggestion'](_0x2300c);this['_suggestionToController']['get'](_0x3f3e43)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x339a2f=this['editor']['plugins']['get']('Annotations'),_0x221777=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8d1d0f=Array['from'](_0x339a2f['activeAnnotations'],_0x486af0=>_0x486af0['innerView'])['filter'](_0x116c29=>this['_viewToController']['has'](_0x116c29)),_0x120fba=[];for(const _0x24b384 of _0x8d1d0f){const _0x4eb428=this['_viewToController']['get'](_0x24b384)['model']['getAllAdjacentSuggestions']();_0x120fba['push'](..._0x4eb428['reduce']((_0x44bc94,_0x11434e)=>[..._0x44bc94,..._0x11434e['getMarkerNames']()],[]));}_0x221777['activeMarkers']=_0x120fba;}['_addUIComponentsToFactory'](){const _0x55c65b=this['editor'],_0x18ba70=_0x55c65b['locale'],_0x36cd6c=o(_0x18ba70,'Track\x20changes'),_0x19d5b0=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x36cd6c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3e697f of _0x19d5b0)if(ae(_0x3e697f)){const _0x259516=_0x55c65b['commands']['get'](_0x3e697f['model']['commandName']);_0x3e697f['model']['bind']('isOn','isEnabled')['to'](_0x259516,'value','isEnabled');}_0x55c65b['ui']['componentFactory']['add']('trackChanges',_0x3f14ce=>this['_createToolbarButton'](_0x3f14ce,_0x19d5b0,_0x36cd6c)),_0x55c65b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a03a9=>this['_createMenuBarMenu'](_0x2a03a9,_0x19d5b0,_0x36cd6c));}['_createToolbarButton'](_0x3c4b19,_0x120608,_0x103ce9){const _0x1a8e66=zt(_0x3c4b19,Zt),_0x546c21=this['editor']['commands']['get']('trackChanges');_0x1a8e66['buttonView']['set']({'tooltip':_0x103ce9,'label':_0x103ce9,'icon':ie}),_0x1a8e66['buttonView']['bind']('isOn')['to'](_0x546c21,'value'),_0x1a8e66['buttonView']['on']('execute',()=>{_0x546c21['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1a8e66,_0x120608,{'role':'menu'});const _0x5e741a=[];for(const _0x201ed8 of _0x120608)ae(_0x201ed8)&&_0x5e741a['push'](this['editor']['commands']['get'](_0x201ed8['model']['commandName']));const _0x2c066a=_0x1a8e66['buttonView'];return _0x2c066a['actionView']['unbind']('isEnabled'),_0x2c066a['arrowView']['unbind']('isEnabled'),_0x2c066a['actionView']['bind']('isEnabled')['to'](_0x546c21,'isEnabled'),_0x2c066a['arrowView']['bind']('isEnabled')['toMany'](_0x5e741a,'isEnabled',(..._0x4c203e)=>_0x4c203e['some'](_0x43f13e=>_0x43f13e)),_0x1a8e66['on']('execute',_0x3ca22b=>{this['editor']['execute'](_0x3ca22b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a8e66;}['_createMenuBarMenu'](_0x4f343b,_0x4f4a7f,_0x1ff5e1){const _0x2aac54=new Kt(_0x4f343b),_0x41cbc3=this['editor']['commands']['get']('trackChanges');_0x2aac54['buttonView']['set']({'label':_0x1ff5e1,'icon':ie});const _0x5aa50b=new Qt(_0x4f343b);for(const _0x26c946 of _0x4f4a7f){if('separator'==_0x26c946['type']){_0x5aa50b['items']['add'](new Jt(_0x4f343b));continue;}const _0x2e0d75=new Xt(_0x4f343b,_0x2aac54),_0xb0ac4e=new Yt(_0x4f343b),_0x19fde7=_0x26c946['model'];_0xb0ac4e['bind'](...Object['keys'](_0x19fde7))['to'](_0x19fde7),_0xb0ac4e['delegate']('execute')['to'](_0x2aac54),_0xb0ac4e['on']('execute',()=>{this['editor']['execute'](_0x19fde7['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e0d75['children']['add'](_0xb0ac4e),_0x5aa50b['items']['add'](_0x2e0d75);}return _0x2aac54['bind']('isEnabled')['to'](_0x41cbc3,'isEnabled'),_0x2aac54['panelView']['children']['add'](_0x5aa50b),_0x2aac54;}['_initializeController'](_0x28f5a5){const _0x123914=this['editor'],_0x4bd413=_0x123914['config'],_0x5008d7=_0x123914['plugins']['get']('Annotations'),_0x2d41df=_0x123914['plugins']['get']('CommentsRepository'),_0x177de4=_0x123914['plugins']['get']('EditorAnnotations'),_0x2f62ee=_0x123914['plugins']['get'](_0x54f297)['me'],_0x2e1c16=_0x4bd413['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1dfda9,CommentThreadInputView:_0x5975d2}=_0x123914['plugins']['get']('CommentsUI');let _0x23fd19,_0x50aca6;this['_annotationViews']['has'](_0x28f5a5['id'])?(_0x50aca6=this['_annotationViews']['get'](_0x28f5a5['id']),_0x23fd19=_0x50aca6['mainView']):(_0x23fd19=new _0x2e1c16(_0x123914['locale'],_0x28f5a5,_0x2f62ee,{'disableComments':this['_disableComments'],'editorConfig':_0x4bd413['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4bd413['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bd413['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bd413['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4ae577(_0x4bd413['get']('locale')),'CommentView':_0x4bd413['get']('comments')['CommentView'],'CommentsListView':_0x1dfda9,'CommentThreadInputView':_0x5975d2}),_0x23fd19['acceptButton']['on']('execute',()=>{_0x123914['editing']['view']['focus']();}),_0x23fd19['discardButton']['on']('execute',()=>{_0x123914['editing']['view']['focus']();}),_0x50aca6=_0x5008d7['createAnnotationView'](this['editor']['locale'],_0x23fd19),_0x50aca6['bind']('isDirty')['to'](_0x23fd19,'isDirty'),_0x50aca6['bind']('length')['to'](_0x23fd19),_0x50aca6['bind']('type')['to'](_0x23fd19,'type',_0xce6efa=>'suggestion-'+_0xce6efa),this['_annotationViews']['set'](_0x28f5a5['id'],_0x50aca6));const _0xd88048=_0x2d41df['createCommentThreadController'](_0x28f5a5['commentThread'],_0x23fd19),_0x1fd698=new oe(_0x123914,_0x28f5a5,_0x23fd19,_0xd88048),_0x1a3ed6=_0x28f5a5['getAllAdjacentSuggestions']()['filter'](_0x1686f0=>_0x1686f0['isInContent']);_0x23fd19['descriptionParts']=_0x123914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a3ed6),this['_suggestionToController']['set'](_0x28f5a5,_0x1fd698),this['_viewToController']['set'](_0x23fd19,_0x1fd698);const _0x1328b8=_0x5008d7['createAnnotation']({'view':_0x50aca6,'target':()=>{const _0x3b5c83=[],_0x27f772=_0x28f5a5['getAllAdjacentSuggestions']()['filter'](_0xe49ff8=>_0xe49ff8['isInContent']);for(const _0x1717f9 of _0x27f772)_0x3b5c83['push'](..._0x1717f9['getMarkers']());return _0x15c842(_0x123914['editing'],_0x3b5c83);},'type':()=>'suggestion-'+_0x1fd698['view']['type']});_0x2d41df['_bindAnnotationToEditors'](_0x23fd19,_0x1328b8),_0x5008d7['add'](_0x1328b8),_0x177de4['registerAnnotation'](_0x1328b8);}['_destroyController'](_0x11be63){const _0x219524=this['editor']['plugins']['get']('CommentsRepository'),_0x59b0fd=this['editor']['plugins']['get']('Annotations'),_0x40f516=this['_suggestionToController']['get'](_0x11be63),_0x5cbfb1=_0x40f516['view'],_0xd2458e=_0x59b0fd['getByInnerView'](_0x5cbfb1);_0x219524['_unbindEditors'](_0x5cbfb1),_0xd2458e&&_0x59b0fd['remove'](_0xd2458e),this['_suggestionToController']['delete'](_0x11be63),this['_viewToController']['delete'](_0x5cbfb1),_0x40f516['destroy']();}['_updateController'](_0x145639){if(!_0x145639['isInContent']||!this['_suggestionToController']['has'](_0x145639))return;const _0x42650e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f41e6=this['_suggestionToController']['get'](_0x145639),_0x3db5e9=_0x145639['getAllAdjacentSuggestions']();_0x1f41e6['view']['descriptionParts']=_0x42650e['descriptionFactory']['getDescriptions'](_0x3db5e9);}['destroy'](){for(const _0x11358a of this['_suggestionToController']['keys']())this['_destroyController'](_0x11358a);for(const _0x25c597 of this['_annotationViews']['values']())_0x25c597['mainView']['destroy']();super['destroy']();}}function ae(_0x354315){return'model'in _0x354315;}class k extends _0x1367c6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4da560){this['editor']['plugins']['get'](p)['adapter']=_0x4da560;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xa41a80){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xa41a80);}['getSuggestions']({skipNotAttached:_0x12e2cd=!0x1,toJSON:_0x16a29d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x12e2cd,'toJSON':_0x16a29d});}['getSuggestion'](_0x2a985a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2a985a);}}const T=['Pagination'];class P extends _0x1367c6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x493b5e=this['editor'];if(_0x493b5e['config']['define']('trackChangesData.editorCreator',_0x26b693=>{const _0x135740=_0x493b5e['model']['document']['getRootNames']()['reduce']((_0x58d3ab,_0x11a962)=>(_0x58d3ab[_0x11a962]='',_0x58d3ab),{});return _0x493b5e['constructor']['create'](_0x135740,_0x26b693);}),'function'!=typeof _0x493b5e['config']['get']('trackChangesData')['editorCreator'])throw new _0xb8c959('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e41cb){return N(this['editor'],!0x0,_0x2e41cb);}['getDataWithDiscardedSuggestions'](_0x459d7e){return N(this['editor'],!0x1,_0x459d7e);}}class D extends _0x1367c6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x11e0da){super(_0x11e0da),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(_0xf55866){return void 0x0!==_0xf55866['getRootsAttributes'];}async function N(_0x5720ff,_0x4fe8db,_0x48e14e){const _0x4e9cb1=_0x24a4b7(_0x5720ff,T);_0x4e9cb1['plugins']['push'](p,D),_0x4e9cb1['rootsAttributes']=v(_0x5720ff)?_0x5720ff['getRootsAttributes']():void 0x0;const _0x17e873=document['createDocumentFragment'](),_0x33f7e3=_0x5720ff['config']['get']('trackChangesData')['editorCreator'],_0x4094e1=await _0x33f7e3(_0x4e9cb1,()=>function(_0x3d334b){const _0x1ff3eb=document['createElement']('div');return _0x3d334b['appendChild'](_0x1ff3eb),_0x1ff3eb;}(_0x17e873));!function(_0x6f42ad,_0x8932e3){const _0x52219d=_0x6f42ad['model']['document']['getRootNames']()['reduce']((_0x5e1d2c,_0x102e3a)=>(_0x5e1d2c[_0x102e3a]=_0x6f42ad['data']['get']({'rootName':_0x102e3a}),_0x5e1d2c),{}),_0x37fbc4=_0x6f42ad['plugins']['get']('Users')['users']['map'](_0x186841=>({'id':_0x186841['id'],'name':_0x186841['name']})),_0x186403=_0x6f42ad['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x8a66f2=_0x6f42ad['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x449e08=_0x8932e3['plugins']['get']('Users'),_0x185fb1=_0x8932e3['plugins']['get']('TrackChangesEditing'),_0x32472e=_0x8932e3['plugins']['get']('CommentsRepository');for(const _0x174a3e of _0x37fbc4)_0x449e08['getUser'](_0x174a3e['id'])||_0x449e08['addUser'](_0x174a3e);_0x449e08['me']||_0x449e08['useAnonymousUser']();for(const _0x380bf7 of _0x8a66f2)_0x32472e['addCommentThread'](_0x380bf7);for(const _0x5aba91 of _0x186403)_0x185fb1['addSuggestionData'](_0x5aba91);_0x8932e3['data']['set'](_0x52219d);}(_0x5720ff,_0x4094e1),_0x4094e1['execute'](_0x4fe8db?'acceptAllSuggestions':'discardAllSuggestions');const _0x178840=v(_0x4094e1)?_0x4094e1['getFullData'](_0x48e14e):_0x4094e1['data']['get'](_0x48e14e);return await _0x4094e1['destroy'](),_0x178840;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};