@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240610.0 → 0.0.0-nightly-20240612.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 _0x4d360f,PendingActions as _0x5bbcf2,icons as _0x3ddd08}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3f3ca6,ObservableMixin as _0x2a7513,uid as _0x3cefaa,insertToPriorityArray as _0x17f874,priorities as _0x36e7bf,logWarning as _0x244bdf,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x7e92f6,View as _0x21ef4a,ButtonView as _0x3ed1f5,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 _0x505173,hashObject as _0x433e2e,surroundingMarkersDetector as _0x176e49,trimHtml as _0x43c02e,UserView as _0x3317b7,getDateTimeFormatter as _0x474164,getAllMarkersDomElementsSorted as _0x36638a,sanitizeEditorConfig as _0x109f03}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x219298,LiveRange as _0x27f355,LivePosition as _0x5f2f62}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x39ca62,toWidget as _0x34fdae}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xbf9a44,set as _0x1a0b59,isEqual as _0x5cd547,unset as _0x407254,omit as Bt}from'lodash-es';import{Delete as _0x1994ec,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x417486,ShiftEnter as _0x177a10}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x108dd3,_0x1c7edf){super(_0x108dd3),this['_enabledCommands']=_0x1c7edf,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 _0x736046 of this['editor']['commands']['commands']())_0x736046['affectsData']&&!this['_enabledCommands']['has'](_0x736046)&&_0x736046['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f99b6 of this['editor']['commands']['commands']())_0x4f99b6['affectsData']&&!this['_enabledCommands']['has'](_0x4f99b6)&&_0x4f99b6['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x28587e,_0x1b5d66){super(_0x28587e),this['_suggestions']=_0x1b5d66,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf06268){const _0x2386f5=this['_suggestions']['get'](_0xf06268);if(!_0x2386f5)throw new _0x3f3ca6('track-changes-accept-suggestion-not-found',this);const _0x33a9c4=_0x2386f5['getRanges']();this['editor']['model']['canEditAt'](_0x33a9c4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2386f5);}}class B extends ts{['_suggestions'];constructor(_0xf2a546,_0x4a78aa){super(_0xf2a546),this['_suggestions']=_0x4a78aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x475f0b){const _0xf12e04=this['_suggestions']['get'](_0x475f0b);if(!_0xf12e04)throw new _0x3f3ca6('track-changes-discard-suggestion-not-found',this);const _0x562602=_0xf12e04['getRanges']();this['editor']['model']['canEditAt'](_0x562602)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xf12e04);}}function ss(_0x4eb086){return _0x4eb086['sort']((_0x34adc7,_0x254720)=>'deletion'==_0x34adc7['type']&&'deletion'!=_0x254720['type']?-0x1:'deletion'!=_0x34adc7['type']&&'deletion'==_0x254720['type']?0x1:0x0);}function to(_0x3e699a,_0x40796d){let _0x50cc3e,_0x11184a=0x0;const _0x435458=[],_0x3d0695=_0x40796d['schema'];for(;_0x11184a<_0x3e699a['length'];){const _0x2501c7=_0x3e699a[_0x11184a],_0x3fb6ce=_0x3e699a[_0x11184a+0x1];_0x50cc3e||(_0x50cc3e=_0x40796d['createPositionBefore'](_0x2501c7)),co(_0x40796d,_0x2501c7,_0x3fb6ce)||(_0x435458['push'](_0x40796d['createRange'](_0x50cc3e,_0x3d0695['isObject'](_0x2501c7)?_0x40796d['createPositionAfter'](_0x2501c7):_0x40796d['createPositionAt'](_0x2501c7,'end'))),_0x50cc3e=null),_0x11184a++;}return _0x435458;}function co(_0x5a43ae,_0x194751,_0x194baa){if(!_0x194baa)return!0x1;const _0x16d3ab=_0x5a43ae['createPositionAfter'](_0x194751),_0x324111=_0x5a43ae['createPositionBefore'](_0x194baa);return _0x16d3ab['isTouching'](_0x324111);}function rs(_0xdafd33,_0xa8da49,_0x1b54f1){for(;_0x1b54f1['length'];){const _0x3caeca=_0x1b54f1['splice'](0x0,0x64);_0xdafd33['change'](()=>{for(const _0x451249 of _0x3caeca)_0x451249['isInContent']&&_0xa8da49['execute'](_0x451249['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4d7ba4,_0x51b755,_0x32dad3){super(_0x4d7ba4),this['_command']=_0x51b755,this['_suggestions']=_0x32dad3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x18c48c=Array['from'](this['_suggestions']['values']())['some'](_0x5efbe3=>_0x5efbe3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x18c48c;}['execute'](){const _0x1a811f=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3f36d5 of _0x1a811f){const _0x45e640=_0x3f36d5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45e640))return;}rs(this['editor']['model'],this['_command'],_0x1a811f);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd52ad0,_0x335309,_0x3987bf){super(_0xd52ad0),this['_command']=_0x335309,this['_suggestions']=_0x3987bf,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x286f43=this['editor']['model']['document']['selection'],_0x4b6100=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4b4fec,_0x495bbc){const _0x474d1e=Array['from'](_0x4b4fec['getRanges']()),_0x47c216=new Set();for(const _0x21776e of _0x495bbc)if(_0x21776e['isInContent']){for(const _0x539620 of _0x474d1e)for(const _0x1c12a8 of _0x21776e['getRanges']())(_0x539620['isIntersecting'](_0x1c12a8)||_0x4b4fec['isCollapsed']&&!_0x21776e['isMultiRange']&&_0x21776e['next']&&_0x1c12a8['end']['isTouching'](_0x539620['start']))&&_0x47c216['add'](_0x21776e);}return _0x47c216;}(_0x286f43,_0x4b6100),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2ea76d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x13d49d of _0x2ea76d){const _0x5bc485=_0x13d49d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5bc485))return;}rs(this['editor']['model'],this['_command'],_0x2ea76d);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2a7513(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4aa75e,_0x576f78){super(),this['id']=_0x576f78['id'],this['type']=_0x576f78['type'],this['subType']=_0x576f78['subType']||null,this['author']=_0x576f78['author'],this['creator']=_0x576f78['creator']||_0x576f78['author'],this['isExternal']=Boolean(_0x576f78['attributes']&&_0x576f78['attributes']['@external']),this['data']=null,this['_model']=_0x4aa75e,this['_onAccept']=_0x576f78['onAccept'],this['_onDiscard']=_0x576f78['onDiscard'],this['_onAttributesChange']=_0x576f78['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x576f78['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 _0x5a5101=this;for(;_0x5a5101['previous'];)_0x5a5101=_0x5a5101['previous'];return _0x5a5101;}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'](_0x4a9894){this['_markerNames']['add'](_0x4a9894);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1d7a54=>this['_model']['markers']['get'](_0x1d7a54))['filter'](_0x55def1=>_0x55def1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1746a4=>{for(const _0x28f92b of this['getMarkers']())_0x1746a4['removeMarker'](_0x28f92b);}),this['_markerNames']['clear']();}['removeMarker'](_0x4b6cf4){this['_model']['change'](_0x4d1783=>{_0x4d1783['removeMarker'](_0x4b6cf4);}),this['_markerNames']['delete'](_0x4b6cf4);}['addRange'](_0x2b431c){const _0x3a8937='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3a8937),this['_model']['change'](_0x4479b8=>{_0x4479b8['addMarker'](_0x3a8937,{'range':_0x2b431c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x354c8d){for(const _0x1e7e4b of this['getRanges']())if(_0x1e7e4b['isIntersecting'](_0x354c8d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8703dd=>_0x8703dd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x41c150,_0x1eb786)=>[..._0x41c150,..._0x1eb786['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1cda9c=this['getRanges']();if(0x1!=_0x1cda9c['length'])return null;const _0x2f45f4=_0x1cda9c[0x0],_0x8b558e=_0x2f45f4['start']['nodeAfter'],_0x48b844=_0x2f45f4['end']['nodeBefore'];return _0x8b558e instanceof _0x219298?_0x8b558e!=_0x48b844?null:_0x8b558e: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 _0x4a7fc0=[];let _0x9311ff=this['head'];for(;_0x9311ff;)_0x4a7fc0['push'](_0x9311ff),_0x9311ff=_0x9311ff['next'];return _0x4a7fc0;}['setAttribute'](_0xfc50b1,_0x3b584f){const _0x422dfd=_0xbf9a44(this['attributes']);_0x1a0b59(_0x422dfd,_0xfc50b1,_0x3b584f),_0x5cd547(_0x422dfd,this['attributes'])||(this['attributes']=_0x422dfd,this['_onAttributesChange'](_0x422dfd));}['removeAttribute'](_0x4e59f1){const _0x22168c=_0xbf9a44(this['attributes']);_0x407254(_0x22168c,_0x4e59f1),_0x5cd547(_0x22168c,this['attributes'])||(this['attributes']=_0x22168c,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 _0x3cefaa()['substr'](0x1,0x5);}}function o(_0x5c3ccd,_0x50b8fb,_0x32fc71){const t=_0x5c3ccd['t'];switch(_0x50b8fb){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',_0x32fc71);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x32fc71);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x32fc71);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x32fc71);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x32fc71);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',_0x32fc71);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x32fc71);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',_0x32fc71);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x32fc71);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x32fc71);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x32fc71);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x32fc71);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x32fc71);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x32fc71);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x32fc71);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x32fc71);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x32fc71);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x32fc71);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x32fc71);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x32fc71);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x32fc71);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x32fc71);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x32fc71);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'},_0x32fc71);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x32fc71);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x32fc71);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x32fc71);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x32fc71);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x32fc71);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x32fc71);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x32fc71);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x32fc71);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'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x32fc71);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x32fc71);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'},_0x32fc71);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'},_0x32fc71);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 _0x50b8fb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4f83d0,_0x2502d3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4f83d0,this['_locale']=_0x2502d3;}['getDescriptions'](_0x17fe2d){const _0x1702ec=[],_0x2a51cc=new Set(),_0x2cf993=new Set();for(let _0xe0db39=0x0;_0xe0db39<_0x17fe2d['length'];_0xe0db39++){const _0x47f519=_0x17fe2d[_0xe0db39];if(!_0x47f519['isInContent'])continue;const _0x34e509=this['_handleCustomCallbackDescription'](_0x47f519);if(_0x34e509){if(null!=_0x47f519['subType']){if(_0x2a51cc['has'](_0x47f519['subType']))continue;_0x2a51cc['add'](_0x47f519['subType']);}_0x1702ec['push'](_0x34e509);}else{if('attribute'!=_0x47f519['type'])'insertion'!=_0x47f519['type']&&'deletion'!=_0x47f519['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1702ec,_0x47f519,_0x17fe2d[_0xe0db39+0x1]);else{const _0x25a137=_0x47f519['data']['key'];if(_0x2cf993['has'](_0x25a137))continue;_0x2cf993['add'](_0x47f519['data']['key']),_0x25a137==m?this['_handleRenameSuggestionDescription'](_0x1702ec,_0x47f519):this['_handleAttributeSuggestionDescription'](_0x1702ec,_0x47f519);}}}return this['_resolveDescriptionItems'](_0x1702ec);}['registerDescriptionCallback'](_0x5e99d3){this['_customCallbacks']['push'](_0x5e99d3);}['registerElementLabel'](_0x18a0e3,_0x52a26f,_0x5da022=_0x36e7bf['normal']){'function'==typeof _0x18a0e3?_0x17f874(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18a0e3,'label':_0x52a26f,'priority':_0x5da022}):this['_itemLabels']['set'](_0x18a0e3,_0x52a26f);}['registerAttributeLabel'](_0x57d524,_0x29b038){this['_attributeLabels']['set'](_0x57d524,_0x29b038);}['getItemLabel'](_0x44915d,_0x15d422=0x1){let _0x613901;for(const _0x563982 of this['_itemLabelsCallbacks'])if(_0x563982['matchingCallback'](_0x44915d)){_0x613901=_0x563982['label'];break;}return _0x613901||(_0x613901=this['_itemLabels']['get'](_0x44915d['name'])),_0x613901?_0x613901(_0x15d422):0x1!==_0x15d422?_0x15d422+'\x20'+_0x44915d['name']+'s':''+_0x44915d['name'];}['_addDescriptionItems'](_0x138f6d,_0x328f92){const _0x2fb0ef=_0x328f92['getFirstRange']()['getWalker'](),_0x289405='insertion'==_0x328f92['type']?'add':'remove';for(const _0x22d06e of _0x2fb0ef){const _0xf717f6=_0x22d06e['item'],_0x497c45=_0x138f6d[_0x138f6d['length']-0x1];if(_0xf717f6['is']('$textProxy'))_0x497c45&&_0x497c45['type']['indexOf']('Container')>-0x1&&_0x138f6d['pop'](),_0x497c45&&'text'==_0x497c45['type']?_0x497c45[_0x289405]+=_0xf717f6['data']:_0x138f6d['push']({'type':'text','add':'add'==_0x289405?_0xf717f6['data']:'','remove':'remove'==_0x289405?_0xf717f6['data']:''});else{if(this['_schema']['isObject'](_0xf717f6)){const _0x57fe5f=_0xf717f6;if(_0x497c45&&_0x497c45['type']['indexOf']('Container')>-0x1&&_0x138f6d['pop'](),'elementEnd'==_0x22d06e['type'])continue;_0x497c45&&_0x497c45['type']==_0x289405+'Object'&&_0x497c45['element']['name']==_0x57fe5f['name']?_0x497c45['quantity']++:_0x138f6d['push']({'type':_0x289405+'Object','element':_0x57fe5f,'quantity':0x1}),_0x2fb0ef['skip'](_0x484850=>!('elementEnd'==_0x484850['type']&&_0x484850['item']==_0xf717f6));}else{if(this['_schema']['checkChild'](_0xf717f6,'$text')||_0xf717f6['is']('element','softBreak')){const _0x4bca39=_0xf717f6;if('add'==_0x289405&&'elementStart'==_0x22d06e['type']||'remove'==_0x289405&&'elementEnd'==_0x22d06e['type'])continue;if(_0x497c45&&-0x1==_0x497c45['type']['indexOf']('Container')){'text'==_0x497c45['type']&&(_0x497c45[_0x289405]+='\x0a');continue;}let _0x596d4a;if(_0x596d4a='add'==_0x289405?_0x4bca39['nextSibling']&&!this['_schema']['isObject'](_0x4bca39['nextSibling'])?_0x4bca39['nextSibling']:null:_0x4bca39['previousSibling']&&!this['_schema']['isObject'](_0x4bca39['previousSibling'])?_0x4bca39['previousSibling']:null,_0x4bca39['isEmpty']||_0x596d4a&&_0x596d4a['isEmpty']){const _0x364afd=_0x596d4a&&_0x596d4a['isEmpty']?_0x596d4a:_0x4bca39;_0x497c45&&_0x497c45['type']==_0x289405+'EmptyContainer'&&_0x497c45['element']['name']==_0x364afd['name']?_0x497c45['quantity']++:_0x138f6d['push']({'type':_0x289405+'EmptyContainer','element':_0x364afd,'quantity':0x1});}else _0x138f6d['push']({'type':_0x289405+'Container','element':_0x4bca39});}}}}}['_resolveDescriptionItems'](_0x4bf6f2){const _0x1d16ad=this['_locale'],_0x2ff5a3=[],_0x4876dd=[],_0x485a09=[];for(const _0x3accec of _0x4bf6f2)switch(_0x3accec['type']){case'text':if(_0x3accec['add']=_0x3accec['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3accec['remove']=_0x3accec['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3accec['add']&&''!=_0x3accec['remove']){_0x2ff5a3['push']({'type':'replace','content':o(_0x1d16ad,'REPLACE_TEXT',['\x22'+_0x3accec['remove']+'\x22','\x22'+_0x3accec['add']+'\x22'])});continue;}if(null!=_0x3accec['add']['match'](/^ +$/)){_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Insert:*\x20%0',o(_0x1d16ad,'ELEMENT_SPACE',_0x3accec['add']['length']))});continue;}if(null!=_0x3accec['remove']['match'](/^ +$/)){_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Remove:*\x20%0',o(_0x1d16ad,'ELEMENT_SPACE',_0x3accec['remove']['length']))});continue;}if(''!=_0x3accec['add']){_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Insert:*\x20%0','\x22'+_0x3accec['add']+'\x22')});continue;}_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Remove:*\x20%0','\x22'+_0x3accec['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Insert:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Remove:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'addContainer':_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Split:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'removeContainer':_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Merge:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'addFormat':_0x4876dd['push'](_0x3accec['key']);continue;case'removeFormat':_0x485a09['push'](_0x3accec['key']);continue;default:_0x2ff5a3['push'](_0x3accec);}if(_0x4876dd['length']){const _0x2cb7c3=_0x4876dd['map'](_0x23bb2d=>this['_attributeLabels']['has'](_0x23bb2d)?this['_attributeLabels']['get'](_0x23bb2d):_0x23bb2d)['join'](',\x20');_0x2ff5a3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2cb7c3)});}if(_0x485a09['length']){const _0x28d35e=_0x485a09['map'](_0x5ebacb=>this['_attributeLabels']['has'](_0x5ebacb)?this['_attributeLabels']['get'](_0x5ebacb):_0x5ebacb)['join'](',\x20');_0x2ff5a3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x28d35e)});}return _0x2ff5a3;}['_handleCustomCallbackDescription'](_0x50566f){for(const _0x9ff64b of this['_customCallbacks']){const _0x110368=_0x9ff64b(_0x50566f);if(_0x110368&&'type'in _0x110368)return _0x110368;}}['_handleAttributeSuggestionDescription'](_0x43538d,_0x57c035){const _0x5283ef=_0x57c035['data'],_0x3cb7ee=void 0x0===_0x5283ef['newValue']?'removeFormat':'addFormat';_0x43538d['push']({'type':_0x3cb7ee,'key':_0x5283ef['key']});}['_handleRenameSuggestionDescription'](_0x32f01e,_0x433468){_0x32f01e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x433468['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x401ac7,_0x647591,_0x424c4e){if(this['_addDescriptionItems'](_0x401ac7,_0x647591),_0x424c4e&&_0x424c4e['getFirstRange']()&&!_0x647591['getFirstRange']()['end']['isEqual'](_0x424c4e['getFirstRange']()['start'])){const _0x1d60d9=_0x401ac7[_0x401ac7['length']-0x1],_0x5cfd5b='insertion'==_0x647591['type']?'add':'remove';_0x1d60d9&&'text'==_0x1d60d9['type']&&(_0x1d60d9[_0x5cfd5b]+='\x0a');}}}class E extends _0x4d360f{['afterInit'](){const _0x46f982=this['editor'],_0x208e54=_0x46f982['plugins']['get']('TrackChangesEditing');_0x46f982['commands']['get']('showAIAssistant')&&_0x208e54['enableCommand']('showAIAssistant');}}class V extends _0x4d360f{['afterInit'](){const _0x136a84=this['editor'],_0xfe1b30=_0x136a84['locale'];if(!_0x136a84['plugins']['has']('AlignmentEditing'))return;const _0x2feea9=_0x136a84['plugins']['get']('TrackChangesEditing');_0x2feea9['enableDefaultAttributesIntegration']('alignment'),_0x2feea9['registerBlockAttribute']('alignment'),_0x2feea9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xfe1b30,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1270df=this['editor'],_0x4f4f45=_0x1270df['locale'];_0x1270df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f37c9=>{if('formatBlock'!=_0x4f37c9['type'])return;const {data:_0x1042bf}=_0x4f37c9;if(_0x1042bf&&'alignment'==_0x1042bf['commandName']){const _0x3bfb9b=_0x1042bf['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4f4f45,'*Format:*\x20%0',function(_0xe0ce04){switch(_0xe0ce04){case'left':return o(_0x4f4f45,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4f4f45,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4f4f45,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4f4f45,'FORMAT_JUSTIFY_TEXT');}}(_0x3bfb9b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4d360f{['afterInit'](){const _0x444089=this['editor'],_0x5028c3=_0x444089['plugins']['get']('TrackChangesEditing'),_0x3ad0ec=_0x444089['locale'];for(const _0x3b382b of ti){if(!_0x444089['plugins']['has'](_0x3b382b))continue;const _0x253b76=_0x3b382b['slice'](0x0,-0x7)['toLowerCase'](),_0x13c8ee='FORMAT_'+_0x253b76['toUpperCase']();_0x5028c3['enableDefaultAttributesIntegration'](_0x253b76),_0x5028c3['registerInlineAttribute'](_0x253b76),_0x5028c3['descriptionFactory']['registerAttributeLabel'](_0x253b76,o(_0x3ad0ec,_0x13c8ee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x258a52=this['editor'],_0x403260=_0x258a52['locale'],_0x4eda8e=_0x258a52['plugins']['get']('TrackChangesEditing');function _0x2b4edc(_0x5ab021,_0x2b0e15){_0x4eda8e['descriptionFactory']['registerDescriptionCallback'](_0x2595b2=>{if('formatInline'!=_0x2595b2['type'])return;const {data:_0x476555}=_0x2595b2;return _0x476555&&_0x476555['commandName']===_0x5ab021?_0x476555['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x403260,'*Format:*\x20%0',_0x2b0e15)}:{'type':'format','content':o(_0x403260,'*Remove\x20format:*\x20%0',_0x2b0e15)}:void 0x0;});}_0x2b4edc('bold',o(_0x403260,'FORMAT_BOLD')),_0x2b4edc('italic',o(_0x403260,'FORMAT_ITALIC')),_0x2b4edc('underline',o(_0x403260,'FORMAT_UNDERLINE')),_0x2b4edc('code',o(_0x403260,'FORMAT_CODE')),_0x2b4edc('strikethrough',o(_0x403260,'FORMAT_STRIKETHROUGH')),_0x2b4edc('subscript',o(_0x403260,'FORMAT_SUBSCRIPT')),_0x2b4edc('superscript',o(_0x403260,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4d360f{['afterInit'](){const _0x54a755=this['editor'],_0x42ff74=_0x54a755['locale'];if(!_0x54a755['plugins']['has']('BlockQuoteEditing'))return;const _0x303195=_0x54a755['plugins']['get']('TrackChangesEditing'),_0x301d1a=this['editor']['commands']['get']('blockQuote');_0x303195['enableCommand']('blockQuote',(_0x5c60e0,_0xa4bb7f={})=>{const _0xeda6fe=this['editor']['model']['document']['selection'],_0x3f7d47=_0xa4bb7f&&void 0x0!==_0xa4bb7f['forceValue']?_0xa4bb7f['forceValue']:!_0x301d1a['value'];let _0x4e162b=[];if(_0x3f7d47){const _0x977fc3=Array['from'](_0xeda6fe['getSelectedBlocks']())['filter'](_0x623e9a=>oo(_0x623e9a)||function(_0x40e86f,_0x5abc37){const _0x27a6fc=_0x5abc37['checkChild'](_0x40e86f['parent'],'blockQuote'),_0x4ac595=_0x5abc37['checkChild'](['$root','blockQuote'],_0x40e86f);return _0x27a6fc&&_0x4ac595;}(_0x623e9a,this['editor']['model']['schema']));_0x4e162b=to(_0x977fc3,_0x54a755['model']);}else{const _0x282cd3=Array['from'](_0xeda6fe['getSelectedBlocks']())['filter'](_0x48325b=>oo(_0x48325b));_0x4e162b=to(_0x282cd3,_0x54a755['model']);}_0x54a755['model']['change'](()=>{for(const _0x4afff3 of _0x4e162b)_0x303195['markBlockFormat'](_0x4afff3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f7d47}]});});}),_0x303195['descriptionFactory']['registerDescriptionCallback'](_0x498237=>{const {data:_0x37b7cb}=_0x498237;if(_0x37b7cb&&'blockQuote'==_0x37b7cb['commandName']){const _0x15156e=o(_0x42ff74,'ELEMENT_BLOCK_QUOTE');return _0x37b7cb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42ff74,'*Set\x20format:*\x20%0',_0x15156e)}:{'type':'format','content':o(_0x42ff74,'*Remove\x20format:*\x20%0',_0x15156e)};}});}}function oo(_0x29c158){return'blockQuote'==_0x29c158['parent']['name'];}class G extends _0x4d360f{['afterInit'](){const _0x3f5e36=this['editor'];_0x3f5e36['plugins']['has']('CaseChange')&&(_0x3f5e36['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f5e36['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f5e36['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4d360f{['afterInit'](){const _0x24ce66=this['editor'];_0x24ce66['commands']['get']('ckbox')&&_0x24ce66['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4d360f{['afterInit'](){const _0x13270a=this['editor'];if(!_0x13270a['plugins']['has']('CodeBlock'))return;const _0x2cb28f=_0x13270a['plugins']['get']('TrackChangesEditing'),_0x195456=_0x13270a['locale'],_0x38b228=_0x13270a['config']['get']('codeBlock')['languages'],_0x24eba3=_0x13270a['commands']['get']('codeBlock');_0x2cb28f['enableCommand']('indentCodeBlock'),_0x2cb28f['enableCommand']('outdentCodeBlock'),_0x2cb28f['enableCommand']('codeBlock',(_0x176dd6,_0x39ca47={})=>{const _0x4669a9=_0x13270a['model'],_0x4b4e0c=_0x13270a['model']['document']['selection'],_0x536563=_0x39ca47&&void 0x0!==_0x39ca47['forceValue']?_0x39ca47['forceValue']:!_0x24eba3['value'];let _0x304a1c;_0x39ca47['language']||(_0x39ca47['language']=_0x38b228[0x0]['language']),_0x304a1c=_0x536563?Array['from'](_0x4b4e0c['getSelectedBlocks']())['filter'](_0x35bf86=>eo(_0x35bf86)||function(_0xbd99fb,_0x3bbb9b){if(_0xbd99fb['is']('rootElement')||_0x3bbb9b['isLimit'](_0xbd99fb))return!0x1;return _0x3bbb9b['checkChild'](_0xbd99fb['parent'],'codeBlock');}(_0x35bf86,_0x4669a9['schema'])):Array['from'](_0x4b4e0c['getSelectedBlocks']())['filter'](_0x231030=>eo(_0x231030));const _0x2e8e45=to(_0x304a1c,_0x4669a9);_0x4669a9['change'](()=>{for(const _0x2e9f5e of _0x2e8e45)_0x2cb28f['markBlockFormat'](_0x2e9f5e,{'commandName':'codeBlock','commandParams':[{..._0x39ca47,'forceValue':_0x536563}],'formatGroupId':'blockName'});});}),(_0x2cb28f['descriptionFactory']['registerElementLabel']('codeBlock',_0x7c5dcd=>o(_0x195456,'ELEMENT_CODE_BLOCK',_0x7c5dcd)),_0x2cb28f['descriptionFactory']['registerDescriptionCallback'](_0x9a88e0=>{if('formatBlock'!=_0x9a88e0['type'])return;const _0x27ff7e=_0x195456['t'],{data:_0x337d8a}=_0x9a88e0;if(!_0x337d8a||'codeBlock'!=_0x337d8a['commandName'])return;const _0x157ab5=_0x337d8a['commandParams'][0x0]['language'],_0x3481e0=_0x27ff7e(_0x38b228['find'](_0x49fa0b=>_0x49fa0b['language']===_0x157ab5)['label'])['toLowerCase']();return _0x337d8a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x195456,'*Set\x20format:*\x20%0',o(_0x195456,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3481e0+')')}:{'type':'format','content':o(_0x195456,'*Remove\x20format:*\x20%0',o(_0x195456,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x56cd4d){return'codeBlock'==_0x56cd4d['name'];}class H extends _0x4d360f{['afterInit'](){const _0x4f0165=this['editor'];if(!_0x4f0165['plugins']['has']('CommentsEditing'))return;_0x4f0165['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x161376,_0x4dad06,_0x1df32a){const _0x3fd424=[];for(const _0x16fa7c of _0x4dad06['getItems']())_0x16fa7c['hasAttribute'](_0x161376)&&_0x3fd424['push'](_0x1df32a['createRangeOn'](_0x16fa7c));return _0x3fd424;}function _e(_0x316348,_0x4dea11,{showActiveMarker:_0x180e50=!0x0}={}){const _0x3ada96=_0x316348['plugins']['get']('TrackChangesEditing');return(_0x5e000f,_0x2f22ff,_0xa92723)=>{if(!_0xa92723['consumable']['test'](_0x2f22ff['markerRange'],_0x5e000f['name']))return;const _0x4a8503=_0x2f22ff['markerRange']['getWalker'](),_0x5240d3=_0x2f22ff['markerRange']['start'],_0x5ade01=_0x316348['model']['schema'];let _0x163504=null,_0x4883f6=null,_0x425168=!0x1,_0x3be90b=!0x1;for(const _0x1db057 of _0x4a8503){const _0x260a8c=_0x1db057['item'];_0x425168=_0x425168||_0x5ade01['isContent'](_0x260a8c);const _0x2c95e1=_0xa92723['mapper']['toViewElement'](_0x260a8c);if(_0x2c95e1&&_0x2c95e1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db057['type']&&(_0x5ade01['isBlock'](_0x260a8c)&&!_0x5ade01['isLimit'](_0x260a8c)&&(_0x260a8c['nextSibling']||_0x5240d3['isAtEnd']?_0x163504&&_0x163504['parent']==_0x260a8c||(_0x163504=_0x260a8c,_0x3e3e92(_0x1db057['previousPosition']),_0x3be90b=!0x0):_0x4883f6=_0x4883f6||_0x1db057['previousPosition']));}function _0x3e3e92(_0x290743){const _0xa43fe7=_0xa92723['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4dea11}),_0x54c77a=_0xa92723['mapper']['toViewPosition'](_0x290743);_0x180e50&&_0x3ada96['activeMarkers']['includes'](_0x2f22ff['markerName'])&&_0xa92723['writer']['addClass']('ck-suggestion-marker--active',_0xa43fe7),_0xa92723['writer']['insert'](_0x54c77a,_0xa43fe7),_0xa92723['mapper']['bindElementToMarker'](_0xa43fe7,_0x2f22ff['markerName']);}_0x425168||_0x3be90b||!_0x4883f6||_0x3e3e92(_0x4883f6);};}class q extends _0x4d360f{static get['requires'](){return[_0x1994ec];}['init'](){const _0x3a54eb=this['editor'],_0x222cca=_0x3a54eb['plugins']['get']('TrackChangesEditing');_0x222cca['enableCommand']('delete');const _0x4484f2=_0x3a54eb['commands']['get']('deleteForward');_0x222cca['enableCommand']('deleteForward',(_0x357427,_0x1bad66={})=>{const _0x115675=_0x3a54eb['model']['createSelection'](_0x3a54eb['model']['document']['selection']);_0x115675['isCollapsed']&&_0x3a54eb['model']['modifySelection'](_0x115675,{'direction':'forward','unit':_0x1bad66['unit']});const _0x40301d=_0x115675['getFirstRange'](),_0x42b163=_0x27f355['fromRange'](_0x40301d);let _0x54e27b;_0x357427(_0x1bad66),_0x54e27b='$graveyard'==_0x42b163['root']['rootName']?_0x3a54eb['model']['createRange'](_0x40301d['start']):_0x3a54eb['model']['createRange'](_0x42b163['start'],_0x42b163['end']),_0x42b163['detach'](),_0x3a54eb['model']['enqueueChange'](_0x4484f2['buffer']['batch'],_0x19b6d9=>{_0x4484f2['buffer']['lock'](),_0x19b6d9['setSelection'](_0x19b6d9['createRange'](_0x54e27b['end'])),_0x4484f2['buffer']['unlock']();});}),_0x3a54eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3a54eb,'merge'),{'priority':'high'}),_0x3a54eb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x256824,_0x2be2fe,_0x5a641d)=>{_0x5a641d['options']['showSuggestionHighlights']&&_e(_0x3a54eb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x256824,_0x2be2fe,_0x5a641d);},{'priority':'high'}),_0x3a54eb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x41ceda,_0x2a366d,_0x11e329)=>{const _0x10bb56=_0x11e329['mapper']['markerNameToElements'](_0x2a366d['markerName']);if(_0x10bb56){for(const _0x4fde8c of _0x10bb56)_0x4fde8c['is']('uiElement')&&(_0x11e329['mapper']['unbindElementFromMarkerName'](_0x4fde8c,_0x2a366d['markerName']),_0x11e329['writer']['remove'](_0x4fde8c));}},{'priority':'high'});}}class z extends _0x4d360f{['afterInit'](){const _0x28be5b=this['editor'];if(!_0x28be5b['plugins']['has']('ListEditing'))return;const _0x56c4c1=_0x28be5b['locale'],_0x4601d2=_0x28be5b['plugins']['get']('TrackChangesEditing'),_0x4d8cde=_0x28be5b['plugins']['has']('TodoListEditing'),_0x18f742=!!_0x28be5b['config']['get']('list.multiBlock');function _0xa21db9(_0x90e4ee){return{'type':'format','content':''+o(_0x56c4c1,'*Set\x20format:*\x20%0',_0x90e4ee)};}function _0x467db0(_0x4cb79a){return{'type':'format','content':''+o(_0x56c4c1,'*Remove\x20format:*\x20%0',_0x4cb79a)};}_0x4601d2['enableDefaultAttributesIntegration']('numberedList'),_0x4601d2['enableDefaultAttributesIntegration']('bulletedList'),_0x4601d2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4601d2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4601d2['enableDefaultAttributesIntegration']('indentList'),_0x4601d2['enableDefaultAttributesIntegration']('outdentList'),_0x4601d2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4601d2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4601d2['registerBlockAttribute']('listItemId'),_0x4601d2['registerBlockAttribute']('listType'),_0x4601d2['registerBlockAttribute']('listIndent'),_0x18f742&&(_0x4601d2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4601d2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d8cde&&(_0x4601d2['enableDefaultAttributesIntegration']('todoList'),_0x4601d2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4601d2['registerBlockAttribute']('todoListChecked'),_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0x150ab1=>{const {data:_0x2eebcf}=_0x150ab1;if(_0x2eebcf&&'todoListChecked'==_0x2eebcf['key'])return{'type':'format','content':_0x2eebcf['newValue']?o(_0x56c4c1,'*Check\x20item*'):o(_0x56c4c1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3998f7=>{if(_0x3998f7['batch']['isUndo'])return!0x1;let _0x82f6ee=!0x1;const _0x1eb28a=_0x4601d2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x159a01=>'todoListChecked'===_0x4601d2['_getAttributeKey'](_0x159a01));for(const _0x40a019 of _0x1eb28a){'todo'!=_0x40a019['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4601d2['_findSuggestions'](_0x40a019['getFirstRange'](),'attribute')['find'](_0x57347f=>'listType'===_0x4601d2['_getAttributeKey'](_0x57347f['suggestion']))||(_0x3998f7['removeMarker'](_0x40a019['getFirstMarker']()),_0x82f6ee=!0x0));}return _0x82f6ee;})),_0x4601d2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x56c4c1,'FORMAT_INDENT'));const _0x258ab2={'type':'format','content':''};_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0xf832e9=>{const {data:_0x2123aa}=_0xf832e9;if(!_0x2123aa||'listType'!=_0x2123aa['key'])return;let _0x15cee7=_0xf832e9['head'];for(;_0x15cee7;){if(_0x15cee7['data']&&(('listStyle'==_0x15cee7['data']['key']||'listMarkerStyle'==_0x15cee7['data']['key'])&&(_0x15cee7['data']['newValue']&&'default'!=_0x15cee7['data']['newValue']||'default'!=_0x15cee7['data']['oldValue']&&!_0x2123aa['newValue'])||!_0x18f742&&_0x15cee7['data']['key']==m))return _0x258ab2;_0x15cee7=_0x15cee7['next'];}if(null==_0x2123aa['newValue'])switch(_0x2123aa['oldValue']){case'bulleted':return _0x467db0(o(_0x56c4c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x467db0(o(_0x56c4c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x467db0(o(_0x56c4c1,'ELEMENT_TODO_LIST'));}switch(_0x2123aa['newValue']){case'bulleted':return _0xa21db9(o(_0x56c4c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa21db9(o(_0x56c4c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa21db9(o(_0x56c4c1,'ELEMENT_TODO_LIST'));}}),_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0x4e593a=>{const {data:_0xb0b871}=_0x4e593a;if(_0xb0b871&&'listIndent'==_0xb0b871['key'])return null==_0xb0b871['newValue']||null==_0xb0b871['oldValue']&&0x0==_0xb0b871['newValue']?_0x258ab2:void 0x0;}),_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0x5b6fde=>{if('attribute'!=_0x5b6fde['type'])return;const {data:_0x5e4d4d}=_0x5b6fde;if(!_0x5e4d4d||'listItemId'!=_0x5e4d4d['key'])return;const _0x3be870=le(_0x5b6fde);return'newValue'==_0x3be870?{'type':'format','content':o(_0x56c4c1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3be870?{'type':'format','content':o(_0x56c4c1,'*Split:*\x20list\x20item')}:_0x258ab2;}),_0x28be5b['model']['document']['registerPostFixer'](_0x507a09=>this['listItemIdFixer'](_0x507a09)),_0x28be5b['model']['document']['registerPostFixer'](_0x3c0aeb=>this['noTrackChangesFixer'](_0x3c0aeb)),_0x28be5b['model']['document']['registerPostFixer'](_0x23bfd6=>this['assureChains'](_0x23bfd6)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3e3a14){if(_0x3e3a14['batch']['isUndo']||!_0x3e3a14['batch']['isLocal'])return!0x1;let _0x59c0f8=!0x1;const _0x56b317=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x171b24=>_0x171b24['data']&&'listItemId'==_0x171b24['data']['key'])['filter'](_0x32c44f=>_0x32c44f['data']['newValue']&&_0x32c44f['data']['oldValue']);for(const _0x17e5fa of _0x56b317)le(_0x17e5fa)||(_0x3e3a14['removeMarker'](_0x17e5fa['getFirstMarker']()),_0x59c0f8=!0x0);return _0x59c0f8;}['noTrackChangesFixer'](_0x44fab4){if(_0x44fab4['batch']['isUndo']||!_0x44fab4['batch']['isLocal'])return!0x1;const _0x48a881=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48a881['trackChangesCommand']['value'])return!0x1;let _0x40e058=!0x1;const _0xec9536=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5461c0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x51af88=>'attribute'==_0x51af88['type'])['filter'](_0x130f0d=>_0xec9536['includes'](_0x130f0d['attributeKey']));if(0x0==_0x5461c0['length'])return _0x40e058;for(const _0x2a6071 of _0x5461c0){const _0x10f851=_0x48a881['_findSuggestions'](_0x2a6071['range'],'attribute')['filter'](_0x2bea05=>!_0x2bea05['meta']['isNextTo'])['map'](_0x279aa6=>_0x279aa6['suggestion'])['filter'](_0x530daf=>{const _0x3a9fec=_0x48a881['_getAttributeKey'](_0x530daf);return _0xec9536['includes'](_0x3a9fec);});if(_0x10f851['length']){for(const _0x1b5937 of _0x10f851)_0x44fab4['removeMarker'](_0x1b5937['getFirstMarker']());_0x40e058=!0x0;}}return _0x40e058;}['assureChains'](_0x1ad75d){if(_0x1ad75d['batch']['isUndo']||!_0x1ad75d['batch']['isLocal'])return!0x1;const _0x8e45f4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x35473b=!0x1;const _0x28e0aa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5689d4 of _0x8e45f4['getSuggestions']({'skipNotAttached':!0x0})){const _0x109571=_0x8e45f4['_findSuggestions'](_0x5689d4['getFirstRange'](),'attribute')['map'](_0x4eba79=>_0x4eba79['suggestion'])['filter'](_0x47d51c=>_0x47d51c['data']&&_0x28e0aa['includes'](_0x47d51c['data']['key']));if(!_0x109571['length'])continue;const _0x496853=_0x109571[0x0]['head']['attributes']['groupId'];if(!_0x109571['every'](_0x5cbe59=>_0x5cbe59['attributes']['groupId']===_0x496853)){for(const _0x38edd9 of _0x109571)_0x3158c4(_0x38edd9,_0x496853)&&(_0x35473b=!0x0);}}return _0x35473b;function _0x4ada9b(_0x6e42f2,_0x57bb04){for(const _0x4adde2 of _0x8e45f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x932102=>'attribute'==_0x932102['type']&&_0x932102['attributes']['groupId']==_0x6e42f2))_0x4adde2['setAttribute']('groupId',_0x57bb04);}function _0x3158c4(_0x4f210d,_0x270878){let _0x42f9eb=_0x4f210d['head'],_0x5ef415=!0x1;for(;_0x42f9eb;)_0x42f9eb['attributes']['groupId']!=_0x270878&&(_0x4ada9b(_0x42f9eb['attributes']['groupId'],_0x270878),_0x42f9eb['setAttribute']('groupId',_0x270878),_0x5ef415=!0x0),_0x42f9eb=_0x42f9eb['next'];return _0x5ef415;}}['_supportLegacySuggestions'](){const _0x38abd1=this['editor'],_0x2469cd=_0x38abd1['locale'],_0x5b0c0d=_0x38abd1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5b0c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31f79f,_0x4ee37c){const _0x1c65a9=[];for(let _0x1f1a52 of _0x31f79f)_0x1f1a52['start']['nodeAfter']===_0x1f1a52['end']['parent']&&(_0x1f1a52=_0x38abd1['model']['createRange'](_0x38abd1['model']['createPositionAt'](_0x1f1a52['start']['nodeAfter'],0x0))),_0x1c65a9['push'](_0x1f1a52);_0x38abd1['model']['change'](_0x752c70=>{const _0x149dcd=_0x38abd1['model']['document']['selection'],_0x5edaeb=Array['from'](_0x149dcd['getRanges']())['map'](_0x3a2d86=>_0x27f355['fromRange'](_0x3a2d86));_0x752c70['setSelection'](_0x1c65a9),_0x38abd1['commands']['get'](_0x4ee37c['commandName'])['refresh'](),_0x4ee37c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x38abd1['execute'](_0x4ee37c['commandName'],..._0x4ee37c['commandParams']),_0x752c70['setSelection'](_0x5edaeb);for(const _0x7de0c of _0x5edaeb)_0x7de0c['detach']();});}),_0x5b0c0d['descriptionFactory']['registerElementLabel'](function(_0x35c49d){const _0x3a6ed6=!_0x38abd1['model']['schema']['isObject'](_0x35c49d),_0x25ead4=_0x35c49d['previousSibling'],_0x32524e=_0x35c49d['nextSibling'],_0x1419f1=_0x35c49d['getAttribute']('listItemId'),_0x64a20b=!_0x25ead4||_0x25ead4['getAttribute']('listItemId')!==_0x1419f1,_0x59712c=!_0x32524e||_0x32524e['getAttribute']('listItemId')!==_0x1419f1;return _0x3a6ed6&&Boolean(_0x1419f1)&&_0x64a20b&&_0x59712c;},_0x4b3f02=>o(_0x2469cd,'ELEMENT_LIST_ITEM',_0x4b3f02));}['_registerLegacyDescription'](){const _0x2fb61e=this['editor'],_0x2edbb6=_0x2fb61e['locale'];function _0x2d3b82(_0xc8144f){const _0x1e6279=_0x2fb61e['commands']['get']('bulletedList')['value'],_0x4a4790=_0x2fb61e['commands']['get']('numberedList')['value'];return'numberedList'===_0xc8144f?_0x1e6279:_0x4a4790;}_0x2fb61e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x13800a){if('formatBlock'!=_0x13800a['type'])return;const {data:_0x31f01a}=_0x13800a;if(!_0x31f01a)return;let _0x5f5ace,_0x55f003,_0x42d1d3,_0x31b5ab;switch(_0x31f01a['commandName']){case'bulletedList':_0x42d1d3=_0x31f01a['commandParams'][0x0]['forceValue'],_0x31b5ab=_0x2d3b82(_0x31f01a['commandName']),_0x5f5ace=_0x42d1d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31b5ab&&_0x2fb61e['config']['get']('list.multiBlock')||(_0x5f5ace='*Change\x20to:*\x20%0'),_0x55f003={'type':'format','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42d1d3=_0x31f01a['commandParams'][0x0]['forceValue'],_0x31b5ab=_0x2d3b82(_0x31f01a['commandName']),_0x5f5ace=_0x42d1d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31b5ab&&_0x2fb61e['config']['get']('list.multiBlock')||(_0x5f5ace='*Change\x20to:*\x20%0'),_0x55f003={'type':'format','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5f5ace='*Indent:*\x20%0',_0x55f003={'type':'format','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5f5ace=function(_0x35f69f){const _0xbe626d=_0x35f69f['getFirstRange']();let _0x4d61e9=_0xbe626d['start']['nodeAfter'];for(;_0x4d61e9&&_0xbe626d['containsItem'](_0x4d61e9);){if(_0x4d61e9['getAttribute']('listIndent')>0x0)return!0x1;_0x4d61e9=_0x4d61e9['nextSibling'];}return!0x0;}(_0x13800a)?o(_0x2edbb6,'*Format:*\x20remove\x20from\x20%0',o(_0x2edbb6,function(_0x4a4817){return'ELEMENT_'+_0x4a4817['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x13800a))):o(_0x2edbb6,'*Outdent:*\x20%0',o(_0x2edbb6,'ELEMENT_LIST_ITEM')),_0x55f003={'type':'format','content':_0x5f5ace};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31f01a['multipleBlocks']&&(_0x5f5ace='*Merge:*\x20%0',_0x55f003={'type':'deletion','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_LIST_ITEM'))});}return _0x55f003;});}}function le(_0x4aa92c){let _0x10e2f9=_0x4aa92c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10e2f9;){const _0x5931cc=_0x10e2f9['getAttribute']('listItemId');if(!_0x5931cc)return!0x1;if(_0x5931cc==_0x4aa92c['data']['newValue'])return'newValue';if(_0x5931cc==_0x4aa92c['data']['oldValue'])return'oldValue';_0x10e2f9=_0x10e2f9['previousSibling'];}return!0x1;}class ue extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5cf3dd=this['editor']['config']['get']('list.properties'),_0x162bcc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cf3dd['styles']&&(_0x162bcc['enableDefaultAttributesIntegration']('listStyle'),_0x162bcc['registerBlockAttribute']('listStyle')),_0x5cf3dd['reversed']&&(_0x162bcc['enableDefaultAttributesIntegration']('listReversed'),_0x162bcc['registerBlockAttribute']('listReversed')),_0x5cf3dd['startIndex']&&(_0x162bcc['enableDefaultAttributesIntegration']('listStart'),_0x162bcc['registerBlockAttribute']('listStart'));const _0x29404f={'type':'format','content':''};_0x162bcc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x330c34=this['editor']['locale'];_0x162bcc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x330c34,'FORMAT_LIST_REVERSED')),_0x162bcc['descriptionFactory']['registerDescriptionCallback'](_0x2efc3=>{const {data:_0x1398d4}=_0x2efc3;if(_0x1398d4&&'listReversed'==_0x1398d4['key'])return null==_0x1398d4['newValue']||0x0==_0x1398d4['newValue']&&null==_0x1398d4['oldValue']?_0x29404f:void 0x0;}),_0x162bcc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x330c34,'FORMAT_LIST_START')),_0x162bcc['descriptionFactory']['registerDescriptionCallback'](_0x7d46bc=>{const {data:_0x2c48ae}=_0x7d46bc;if(_0x2c48ae&&'listStart'==_0x2c48ae['key'])return null==_0x2c48ae['newValue']||0x1==_0x2c48ae['newValue']&&null==_0x2c48ae['oldValue']?_0x29404f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x269c83=>{if(_0x269c83['batch']['isUndo'])return!0x1;let _0x3cf973=!0x1;const _0x4188a4=_0x162bcc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5424da=>{const _0x393035=_0x162bcc['_getAttributeKey'](_0x5424da);return'listStart'==_0x393035||'listReversed'==_0x393035;});for(const _0x210e84 of _0x4188a4){const _0x4e38da=_0x210e84['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e38da||'customNumbered'==_0x4e38da)continue;_0x162bcc['_findSuggestions'](_0x210e84['getFirstRange'](),'attribute')['find'](_0x181165=>'listType'==_0x162bcc['_getAttributeKey'](_0x181165['suggestion']))||(_0x269c83['removeMarker'](_0x210e84['getFirstMarker']()),_0x3cf973=!0x0);}return _0x3cf973;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3dab62){const _0x548745=this['editor']['locale'],{data:_0x2610d3}=_0x3dab62,_0x1ed976={'type':'format','content':''};if(!_0x2610d3||'listStyle'!=_0x2610d3['key'])return;if(!_0x2610d3['oldValue'])return'default'==_0x2610d3['newValue']?_0x1ed976:{'type':'format','content':''+o(_0x548745,'*Set\x20format:*\x20%0',o(_0x548745,this['_getTranslationKeyForListStyle'](_0x2610d3['newValue'])))};if(!_0x2610d3['newValue']){if('default'==_0x2610d3['oldValue'])return _0x1ed976;let _0x56a5c3=_0x3dab62['head'];for(;_0x56a5c3;){if(_0x56a5c3['data']&&'listType'==_0x56a5c3['data']['key']&&_0x56a5c3['data']['newValue'])return _0x1ed976;_0x56a5c3=_0x56a5c3['next'];}return{'type':'format','content':''+o(_0x548745,'*Remove\x20format:*\x20%0',o(_0x548745,this['_getTranslationKeyForListStyle'](_0x2610d3['oldValue'])))};}if('default'!=_0x2610d3['newValue'])return{'type':'format','content':''+o(_0x548745,'*Set\x20format:*\x20%0',o(_0x548745,this['_getTranslationKeyForListStyle'](_0x2610d3['newValue'])))};let _0x3d3328=_0x3dab62['head'];for(;_0x3d3328;){if(_0x3d3328['data']&&'listType'==_0x3d3328['data']['key']&&_0x3d3328['data']['newValue']&&_0x3d3328['data']['oldValue'])return _0x1ed976;_0x3d3328=_0x3d3328['next'];}return{'type':'format','content':o(_0x548745,'*Set\x20format:*\x20%0',o(_0x548745,'ELEMENT_'+_0x3dab62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4395ae=this['editor'],_0x264db8=_0x4395ae['locale'];_0x4395ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x464a67=>{if('formatBlock'!=_0x464a67['type'])return;const {data:_0x42a023}=_0x464a67;if(!_0x42a023)return;let _0x49fab2,_0x4741d4;switch(_0x42a023['commandName']){case'listStyle':_0x49fab2='*Change\x20to:*\x20%0',_0x4741d4={'type':'format','content':o(_0x264db8,_0x49fab2,o(_0x264db8,this['_getTranslationKeyForListStyle'](_0x42a023['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49fab2=_0x42a023['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4741d4={'type':'format','content':o(_0x264db8,_0x49fab2)};break;case'listStart':_0x49fab2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4741d4={'type':'format','content':o(_0x264db8,_0x49fab2,_0x42a023['commandParams'][0x0]['startIndex'])};}return _0x4741d4;});}['_getTranslationKeyForListStyle'](_0x119d5a){return'ELEMENT_'+function(_0x3741ac){if(pe['includes'](_0x3741ac))return'bulleted';if(ye['includes'](_0x3741ac))return'numbered';return null;}(_0x119d5a)['toUpperCase']()+'_LIST_'+_0x119d5a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4d360f{static get['requires'](){return[_0x417486];}['init'](){const _0x37c5e3=this['editor'],_0x43b0a8=_0x37c5e3['plugins']['get']('TrackChangesEditing'),_0x1ac031=_0x37c5e3['commands']['get']('enter');_0x43b0a8['enableCommand']('enter',()=>{_0x37c5e3['model']['change'](_0x2e6a79=>{const _0x4ac53f=_0x37c5e3['model']['document']['selection'],_0x337c1c=_0x4ac53f['getFirstPosition'](),_0x2cbcd2=_0x27f355['fromRange'](_0x4ac53f['getFirstRange']());if(_0x1ac031['enterBlock'](_0x2e6a79)){const _0x38e653=_0x37c5e3['model']['createPositionAt'](_0x337c1c['parent']['nextSibling'],0x0),_0x56529c=_0x2e6a79['createRange'](_0x337c1c,_0x38e653);_0x43b0a8['markInsertion'](_0x56529c);}else _0x2e6a79['setSelection'](_0x2e6a79['createRange'](_0x2cbcd2['end']));_0x2cbcd2['detach'](),_0x1ac031['fire']('afterExecute',{'writer':_0x2e6a79});});}),_0x37c5e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x37c5e3,'split'),{'priority':'high'}),_0x37c5e3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47821f,_0x262271,_0x2d8ad2)=>{const _0xec6ad0=_0x2d8ad2['mapper']['markerNameToElements'](_0x262271['markerName']);if(_0xec6ad0){for(const _0x36b577 of _0xec6ad0)_0x36b577['hasClass']('ck-suggestion-marker-split')&&(_0x2d8ad2['mapper']['unbindElementFromMarkerName'](_0x36b577,_0x262271['markerName']),_0x2d8ad2['writer']['remove'](_0x36b577));}},{'priority':'high'}),_0x37c5e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28e304,_0x422e0b,_0x6f50d7)=>{_0x6f50d7['options']['showSuggestionHighlights']&&_e(_0x37c5e3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x28e304,_0x422e0b,_0x6f50d7);},{'priority':'high'});}}class J extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4f5ba3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f5ba3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4f5ba3['enableCommand']('findNext'),_0x4f5ba3['enableCommand']('findPrevious'),_0x4f5ba3['enableCommand']('replace'),_0x4f5ba3['enableCommand']('replaceAll');}['handleFindCommand'](_0x4833a9,_0x98d47b,_0x342aa4={}){const _0x1de9f9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4833a9(_0x241cd8=>('string'==typeof _0x98d47b?_0x1de9f9['findByTextCallback'](_0x98d47b,_0x342aa4):_0x98d47b)(_0x241cd8)['filter'](_0x1fdf13=>!0x1===this['_isInDeletionRange'](_0x1fdf13,_0x241cd8['item'])),_0x342aa4);}['_isInDeletionRange'](_0x468fd1,_0x38bd17){const _0x1e902e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38bd17,_0x468fd1['start']),this['editor']['model']['createPositionAt'](_0x38bd17,_0x468fd1['end']));for(const _0x59e834 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e902e['getIntersection'](_0x59e834['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 _0x4d360f{['afterInit'](){const _0x5006a1=this['editor']['locale'],_0x5b9754=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f48e2,commandName:_0x204cac}of ro)this['editor']['plugins']['has'](_0x4f48e2)&&(_0x5b9754['enableDefaultAttributesIntegration'](_0x204cac),_0x5b9754['registerInlineAttribute'](_0x204cac));_0x5006a1['t'],_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5006a1,'FORMAT_FONT_SIZE')),_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5006a1,'FORMAT_FONT_FAMILY')),_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5006a1,'FORMAT_FONT_COLOR')),_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5006a1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30fb54=this['editor'],_0x356648=_0x30fb54['locale'];_0x30fb54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59987f=>{const _0x54be8f=_0x356648['t'];if('formatInline'!=_0x59987f['type'])return;const {data:_0x1f8b14}=_0x59987f;if(null!=_0x1f8b14){if('fontSize'==_0x1f8b14['commandName']){const _0x2182a8=_0x1f8b14['commandParams'][0x0]['value'];if(_0x2182a8){const _0x350856=_0x54be8f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x32effb=>_0x32effb['model']==_0x2182a8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x356648,'*Set\x20font\x20size:*\x20%0',_0x350856)};}return{'type':'format','content':o(_0x356648,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1f8b14['commandName']){const _0x502b60=_0x1f8b14['commandParams'][0x0]['value'];return _0x502b60?{'type':'format','content':o(_0x356648,'*Set\x20font\x20family:*\x20%0',_0x502b60)}:{'type':'format','content':o(_0x356648,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1f8b14['commandName']){const _0x3427a2=_0x1f8b14['commandParams'][0x0]['value'];if(_0x3427a2){const _0x372a7f=_0x7e92f6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1bd053=>_0x1bd053['model']==_0x3427a2);let _0x2fb358=_0x3427a2,_0x9063c9='';return _0x372a7f&&(_0x2fb358=_0x372a7f['label'],_0x9063c9=_0x54be8f(_0x2fb358)['toLowerCase']()),{'type':'format','content':o(_0x356648,'*Set\x20font\x20color:*\x20%0',_0x9063c9)['trim'](),'color':{'value':_0x3427a2,'title':_0x9063c9||_0x2fb358}};}return{'type':'format','content':o(_0x356648,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1f8b14['commandName']){const _0x4528e9=_0x1f8b14['commandParams'][0x0]['value'];if(_0x4528e9){const _0x4ac96b=_0x7e92f6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2627fa=>_0x2627fa['model']==_0x4528e9);let _0x2d3eff=_0x4528e9,_0x160593='';return _0x4ac96b&&(_0x2d3eff=_0x4ac96b['label'],_0x160593=_0x54be8f(_0x2d3eff)['toLowerCase']()),{'type':'format','content':o(_0x356648,'*Set\x20font\x20background\x20color:*\x20%0',_0x160593)['trim'](),'color':{'value':_0x4528e9,'title':_0x160593||_0x2d3eff}};}return{'type':'format','content':o(_0x356648,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4d360f{['afterInit'](){const _0x3d8707=this['editor'],_0x5a01a8=_0x3d8707['plugins']['get']('TrackChangesEditing'),_0x554161=_0x3d8707['commands']['get']('copyFormat'),_0x249618=_0x3d8707['commands']['get']('pasteFormat');_0x554161&&_0x249618&&(_0x5a01a8['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a01a8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x36048d=this['editor'],_0x6671ff=_0x36048d['locale'];_0x36048d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f3135=>{if('formatBlock'!=_0x5f3135['type']&&'formatInline'!=_0x5f3135['type'])return;const {data:_0x1b9c5b}=_0x5f3135;if(_0x1b9c5b&&'pasteFormat'===_0x1b9c5b['commandName']){const _0x5abf72=[],_0x19c113=_0x1b9c5b['commandParams'][0x0];for(const [_0x407890,_0x4e9a00]of Object['entries'](_0x19c113))_0x5abf72['push'](so(_0x36048d,_0x407890,_0x4e9a00));return _0x5abf72['length']?{'type':'format','content':o(_0x6671ff,'*Set\x20format\x20to:*\x20%0',_0x5abf72['join'](',\x20'))}:{'type':'format','content':o(_0x6671ff,'*Remove\x20all\x20formatting*')};}});}}function so(_0x11ac1e,_0x1b13f2,_0x13a5af){const _0x55e0ba=_0x11ac1e['locale']['t'],_0x25d78f=_0x1b13f2['split'](/(?=[A-Z])/)['join']('\x20'),_0x489701=_0x55e0ba(_0x25d78f['charAt'](0x0)['toUpperCase']()+_0x25d78f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13a5af)return _0x489701;if('fontColor'===_0x1b13f2||'fontBackgroundColor'===_0x1b13f2){const _0x18f6eb=_0x7e92f6(_0x11ac1e['config']['get']('fontColor.colors'))['find'](_0x3935ab=>_0x3935ab['model']==_0x13a5af);return _0x489701+'\x20('+(_0x18f6eb?_0x55e0ba(_0x18f6eb['label'])['toLowerCase']():_0x13a5af)+')';}if('fontSize'===_0x1b13f2&&isNaN(parseFloat(_0x13a5af))){const _0x30435b=_0x11ac1e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x11ac1e['config']['get']('fontSize.options'))['find'](_0x410967=>_0x410967['model']==_0x13a5af);return _0x489701+'\x20('+(_0x30435b?_0x55e0ba(_0x30435b['title'])['toLowerCase']():_0x13a5af)+')';}return _0x489701+'\x20('+_0x13a5af+')';}class Y extends _0x4d360f{['_headingOptions'];['afterInit'](){const _0x28a66a=this['editor'];if(!_0x28a66a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x28a66a['config']['get']('heading.options');const _0x1cdf29=_0x28a66a['locale'],_0x5473d5=_0x28a66a['plugins']['get']('TrackChangesEditing');_0x5473d5['enableDefaultAttributesIntegration']('heading');for(const _0x762e60 of this['_headingOptions'])'paragraph'!=_0x762e60['model']&&_0x5473d5['descriptionFactory']['registerElementLabel'](_0x762e60['model'],_0x392cf5=>{const _0x2c5edb=this['_getHeadingLevel'](_0x762e60['model']);return null!==_0x2c5edb?_0x9ebd0f(_0x392cf5,_0x2c5edb):_0x221360(_0x392cf5,_0x762e60['title']);});function _0x9ebd0f(_0x9dc051,_0x25a2ad){return o(_0x1cdf29,'ELEMENT_HEADING',[_0x9dc051,_0x25a2ad]);}function _0x221360(_0x24b9c8,_0x35b5c7){return o(_0x1cdf29,'ELEMENT_HEADING_CUSTOM',[_0x24b9c8,_0x35b5c7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26fa39=this['editor'],_0x140f41=_0x26fa39['locale'];function _0x1bf344(_0x2d5952,_0x5a32ad){return o(_0x140f41,'ELEMENT_HEADING_CUSTOM',[_0x2d5952,_0x5a32ad]);}_0x26fa39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519186=>{if('formatBlock'!=_0x519186['type'])return;const {data:_0x2c81c4}=_0x519186;if(_0x2c81c4&&'heading'==_0x2c81c4['commandName']){const _0x501cec=_0x2c81c4['commandParams'][0x0]['value'],_0x469d6c=this['_getHeadingLevel'](_0x501cec);if(null!==_0x469d6c)return{'type':'format','content':o(_0x140f41,'*Change\x20to:*\x20%0',(_0x575ae2=0x1,_0x469dda=_0x469d6c,o(_0x140f41,'ELEMENT_HEADING',[_0x575ae2,_0x469dda])))};const _0x41e5f3=this['_headingOptions']['find'](_0x471278=>_0x471278['model']===_0x501cec)['title'];return{'type':'format','content':o(_0x140f41,'*Change\x20to:*\x20%0',_0x1bf344(0x1,_0x41e5f3))};}var _0x575ae2,_0x469dda;});}['_getHeadingLevel'](_0x3e8905){const _0x3c004a=_0x3e8905['match'](/^heading(\d+)/);if(_0x3c004a)return _0x3c004a[0x1];const _0xda1475=this['_headingOptions']?.['find'](_0x22017a=>_0x22017a['model']==_0x3e8905);if(_0xda1475&&_0xda1475['view']){const _0x419027=_0xda1475['view'],_0x1e172f=(_0x419027['name']??_0x419027)['match'](/^h(\d+)/);if(_0x1e172f)return _0x1e172f[0x1];}return null;}}class Z extends _0x4d360f{['afterInit'](){const _0x561c36=this['editor'];if(!_0x561c36['plugins']['has']('HighlightEditing'))return;const _0xb27934=_0x561c36['plugins']['get']('TrackChangesEditing'),_0x4eabde=_0x561c36['locale'];_0xb27934['enableDefaultAttributesIntegration']('highlight'),_0xb27934['registerInlineAttribute']('highlight'),_0xb27934['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4eabde,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb7283f=this['editor'],_0x28e62f=_0xb7283f['locale'];_0xb7283f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ab20e=>{if('formatInline'!=_0x4ab20e['type'])return;const {data:_0x552c00}=_0x4ab20e;if(_0x552c00&&'highlight'==_0x552c00['commandName']){const _0x2dc60e=_0x28e62f['t'],_0x803855=_0x552c00['commandParams'][0x0]['value'];if(_0x803855){const _0x5c8151=_0xb7283f['config']['get']('highlight.options')['find'](_0x926d03=>_0x926d03['model']==_0x803855),_0xabc2e7=_0x2dc60e(_0x5c8151['title'])['toLowerCase']();return{'type':'format','content':o(_0x28e62f,'*Set\x20highlight:*\x20%0',_0xabc2e7),'color':{'value':_0x5c8151['color'],'title':_0x5c8151['title']}};}return{'type':'format','content':o(_0x28e62f,'*Remove\x20highlight*',o(_0x28e62f,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4d360f{['afterInit'](){const _0x1b7503=this['editor'];if(!_0x1b7503['plugins']['has']('HorizontalLineEditing'))return;_0x1b7503['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c191d=_0x1b7503['plugins']['get']('TrackChangesEditing'),_0x3d0604=_0x1b7503['locale'];_0x4c191d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2abcee=>o(_0x3d0604,'ELEMENT_HORIZONTAL_LINE',_0x2abcee)),_0x1b7503['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x9b3bf9,{writer:_0x52cda4,options:_0x585787})=>{if(!_0x585787['showSuggestionHighlights'])return null;const _0x1544fc=_0x52cda4['createContainerElement']('div'),_0x2cc067=_0x52cda4['createEmptyElement']('hr');return _0x52cda4['addClass']('ck-horizontal-line',_0x1544fc),_0x52cda4['insert'](_0x52cda4['createPositionAt'](_0x1544fc,0x0),_0x2cc067),_0x1544fc;},'converterPriority':'high'});}}class et extends _0x4d360f{['afterInit'](){const _0xb48573=this['editor'];if(!_0xb48573['plugins']['has']('HtmlEmbed'))return;const _0x2c7613=_0xb48573['plugins']['get']('TrackChangesEditing'),_0x1b0ee8=_0xb48573['locale'];_0x2c7613['descriptionFactory']['registerElementLabel']('rawHtml',_0xd7fee=>o(_0x1b0ee8,'ELEMENT_HTML_EMBED',_0xd7fee)),_0x2c7613['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c7613['registerBlockAttribute']('value'),_0x2c7613['descriptionFactory']['registerDescriptionCallback'](_0xa94b49=>{if('attribute'!=_0xa94b49['type'])return;const {data:_0x54e3b4}=_0xa94b49;if(_0x54e3b4&&'value'==_0x54e3b4['key']&&_0xa94b49['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b590d=o(_0x1b0ee8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b0ee8,'*Change\x20%0\x20content*',_0x3b590d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fc89b=this['editor'],_0x3759d7=_0x3fc89b['locale'];_0x3fc89b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb29b1=>{if('formatBlock'!=_0xcb29b1['type'])return;const {data:_0x9f75f2}=_0xcb29b1;if(_0x9f75f2&&'htmlEmbed'==_0x9f75f2['commandName']){const _0x10b800=o(_0x3759d7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3759d7,'*Change\x20%0\x20content*',_0x10b800)};}});}}class it extends _0x4d360f{['afterInit'](){const _0x7fb647=this['editor'];if(!_0x7fb647['plugins']['has']('ImageEditing'))return;const _0x135449=_0x7fb647['plugins']['get']('TrackChangesEditing'),_0x552ab8=_0x7fb647['plugins']['get']('ImageUtils'),_0x55ec7e=_0x7fb647['locale'];_0x135449['enableCommand']('insertImage'),_0x135449['descriptionFactory']['registerElementLabel']('imageBlock',_0xd336f=>o(_0x55ec7e,'ELEMENT_IMAGE',_0xd336f)),_0x135449['descriptionFactory']['registerElementLabel']('imageInline',_0x26e385=>o(_0x55ec7e,'ELEMENT_INLINE_IMAGE',_0x26e385)),_0x135449['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x55ec7e,'ELEMENT_CAPTION')),_0x7fb647['plugins']['has']('ImageUploadEditing')&&_0x135449['enableCommand']('uploadImage'),_0x7fb647['plugins']['has']('ImageBlockEditing')&&_0x7fb647['plugins']['has']('ImageInlineEditing')&&(_0x135449['enableCommand']('imageTypeInline',(_0x1a571f,_0x273898)=>{const _0x27f5b0=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']);_0x7fb647['model']['change'](()=>{_0x135449['markBlockFormat'](_0x27f5b0,{'commandName':'imageTypeInline','commandParams':[_0x273898]},[],'convertBlockImageToInline');});}),_0x135449['enableCommand']('imageTypeBlock',(_0x39c40e,_0x1127e0)=>{_0x7fb647['model']['change'](_0x1ef902=>{let _0xcbfa64=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x544514=_0x1ef902['createRangeOn'](_0xcbfa64);const _0x3cea7b=_0x5f2f62['fromPosition'](_0x544514['start'],'toPrevious'),_0x22764e=_0x5f2f62['fromPosition'](_0x544514['end'],'toNext');_0x135449['forceDefaultExecution'](()=>_0x39c40e(_0x1127e0)),_0xcbfa64=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x544514=_0x1ef902['createRangeOn'](_0xcbfa64);const _0x3363e1=_0x1ef902['createRange'](_0x3cea7b,_0x22764e);_0x3cea7b['detach'](),_0x22764e['detach'](),_0x135449['markBlockFormat'](_0xcbfa64,{'commandName':'imageTypeInline','commandParams':[_0x1127e0]},[],'convertInlineImageToBlock'),_0x3363e1['start']['isBefore'](_0x544514['start'])&&_0x135449['markInsertion'](_0x1ef902['createRange'](_0x3363e1['start'],_0x544514['start']),'convertInlineImageToBlock'),_0x544514['end']['isBefore'](_0x3363e1['end'])&&_0x135449['markInsertion'](_0x1ef902['createRange'](_0x544514['end'],_0x3363e1['end']),'convertInlineImageToBlock');});}),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x135449['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x41450])=>{const _0x3b8731=_0x135449['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x121105=_0x41450['start'],_0x453254=_0x41450['end'];const _0x3986d1=_0x7fb647['model']['schema']['getNearestSelectionRange'](_0x121105,'backward'),_0x588cc1=_0x7fb647['model']['schema']['getNearestSelectionRange'](_0x453254,'forward');_0x3986d1['isCollapsed']&&(_0x121105=_0x3986d1['start']),_0x588cc1['isCollapsed']&&(_0x453254=_0x588cc1['end']),_0x3b8731([_0x7fb647['model']['createRange'](_0x121105,_0x453254)]);}),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ceea4),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ceea4)),_0x7fb647['plugins']['has']('ImageCaptionEditing')&&(_0x135449['enableCommand']('toggleImageCaption',(_0x3287bf,_0x1d0ca9)=>{const _0x2b0311=_0x7fb647['plugins']['get']('ImageCaptionUtils');let _0x1d875c=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x2a957a=_0x2b0311['getCaptionFromImageModelElement'](_0x1d875c);_0x7fb647['model']['change'](()=>{if(_0x2a957a)return void _0x135449['markDeletion'](_0x7fb647['model']['createRangeOn'](_0x2a957a));const _0x1c0ed5=_0x552ab8['isBlockImage'](_0x1d875c);_0x3287bf(_0x1d0ca9),_0x1d875c=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x2a957a=_0x2b0311['getCaptionFromImageModelElement'](_0x1d875c),_0x135449['markInsertion'](_0x7fb647['model']['createRangeOn'](_0x2a957a),_0x1c0ed5?null:'imageCaption');});}),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ceea4));const _0x5882c9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x278400(_0x1818b4,_0x501c04){const _0xfa659a=_0x5882c9['findIndex'](({type:_0x4ed06c,subType:_0x1fc114})=>_0x1818b4['type']==_0x4ed06c&&_0x1818b4['subType']==_0x1fc114),_0x5cff54=_0x5882c9['findIndex'](({type:_0x20327e,subType:_0x22084a})=>_0x501c04['type']==_0x20327e&&_0x501c04['subType']==_0x22084a);if(_0xfa659a<0x0||_0x5cff54<0x0)return!0x1;const _0x13cb05=_0x1818b4['getFirstRange'](),_0xa410d2=_0x501c04['getFirstRange']();if((0x0==_0xfa659a||0x1==_0xfa659a)&&0x2==_0x5cff54&&_0x13cb05['isIntersecting'](_0xa410d2))return!0x0;if(0x2==_0xfa659a&&0x3==_0x5cff54){const _0x278d5a=_0x135449['_findSuggestions'](_0x13cb05,'insertion')['filter'](({suggestion:_0x41f609,meta:_0x1b9497})=>_0x1b9497['isOwn']&&'convertInlineImageToBlock'==_0x41f609['subType']);if(_0x278d5a['length']>0x1&&_0xa410d2['end']['isEqual'](_0x13cb05['start']))return!0x0;if(0x1==_0x278d5a['length']&&(_0x13cb05['start']['isEqual'](_0xa410d2['end'])||_0x13cb05['end']['isEqual'](_0xa410d2['start'])))return!0x0;}if(0x3==_0xfa659a&&0x3==_0x5cff54&&_0x13cb05['start']['isBefore'](_0xa410d2['start'])){const _0xa1186a=_0x13cb05['end']['nodeAfter'],_0x6f0bcc=_0xa410d2['start']['nodeBefore'];return _0x552ab8['isBlockImage'](_0xa1186a)&&_0xa1186a===_0x6f0bcc;}return!0x1;}function _0x5ceea4(_0xcf5eb6,_0x53c833){return _0x278400(_0xcf5eb6,_0x53c833)?[_0xcf5eb6,_0x53c833]:_0x278400(_0x53c833,_0xcf5eb6)?[_0x53c833,_0xcf5eb6]:null;}_0x7fb647['plugins']['has']('ImageResize')&&(_0x135449['enableDefaultAttributesIntegration']('resizeImage'),_0x135449['registerBlockAttribute']('resizedWidth'),_0x135449['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x55ec7e,'FORMAT_IMAGE_SIZE'))),_0x7fb647['plugins']['has']('ImageTextAlternativeEditing')&&(_0x135449['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x135449['registerBlockAttribute']('alt')),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x8d0ab3=>{if(!!_0x5882c9['find'](({type:_0x38a8fb,subType:_0x567b78})=>_0x8d0ab3['type']==_0x38a8fb&&_0x8d0ab3['subType']==_0x567b78))return _0x8d0ab3['previous']?{}:void 0x0;}),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x2e14b9=>{if('insertion'==_0x2e14b9['type']||'deletion'==_0x2e14b9['type']){const _0x2642c4=_0x2e14b9['getContainedElement']();if(_0x2642c4&&_0x2642c4['is']('element','caption'))return{'type':'insertion'==_0x2e14b9['type']?'addObject':'removeObject','element':_0x2642c4,'quantity':0x1};}}),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x3d27d7=>'formatBlock'==_0x3d27d7['type']&&'convertInlineImageToBlock'==_0x3d27d7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3d27d7['type']&&'convertBlockImageToInline'==_0x3d27d7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x4b4fd8=>{if('attribute'!=_0x4b4fd8['type'])return;const {data:_0x3704bf}=_0x4b4fd8;if(!_0x3704bf||'alt'!=_0x3704bf['key'])return;const _0x393ef5=_0x3704bf['newValue'];return _0x393ef5?{'type':'format','content':o(_0x55ec7e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x393ef5+'\x22')}:{'type':'format','content':o(_0x55ec7e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b11d6=this['editor'],_0xa8433a=_0x3b11d6['locale'];_0x3b11d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3858a5=>{if('formatBlock'!=_0x3858a5['type']&&'formatInline'!=_0x3858a5['type'])return;const {data:_0x31fd21}=_0x3858a5;if(_0x31fd21){if('imageTextAlternative'==_0x31fd21['commandName']){const _0x4a5b8b=_0x31fd21['commandParams'][0x0]['newValue'];return _0x4a5b8b?{'type':'format','content':o(_0xa8433a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a5b8b+'\x22')}:{'type':'format','content':o(_0xa8433a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x31fd21['commandName']){const _0x316be7=_0x31fd21['commandParams'][0x0]['width'];return _0x316be7?{'type':'format','content':o(_0xa8433a,'*Set\x20image\x20width:*\x20%0',_0x316be7)}:{'type':'format','content':o(_0xa8433a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x452b62=this['editor']['locale'],_0x108376=this['editor']['plugins']['get']('TrackChangesEditing');_0x108376['enableDefaultAttributesIntegration']('replaceImageSource'),_0x108376['registerBlockAttribute']('src'),_0x108376['descriptionFactory']['registerDescriptionCallback'](_0x3711a4=>{if('attribute'!=_0x3711a4['type'])return;const {data:_0x3080db}=_0x3711a4;return _0x3080db&&'src'==_0x3080db['key']?_0x3080db['newValue']&&_0x3080db['oldValue']?{'type':'format','content':o(_0x452b62,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x6894d6=this['editor']['plugins']['get']('TrackChangesEditing');_0x6894d6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x6894d6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6894d6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x6894d6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x443dbb=this['editor'],_0x546dfa=_0x443dbb['locale'];_0x443dbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20733d=>{if('formatBlock'!=_0x20733d['type']&&'formatInline'!=_0x20733d['type'])return;const {data:_0x2ea8e9}=_0x20733d;if(!_0x2ea8e9||'replaceImageSource'!=_0x2ea8e9['commandName'])return;return{'type':'format','content':o(_0x546dfa,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4d360f{['afterInit'](){const _0x597120=this['editor'];if(!_0x597120['plugins']['has']('ImageStyleEditing'))return;const _0x1a5f74=_0x597120['plugins']['get']('TrackChangesEditing'),_0x53a71c=_0x597120['plugins']['get']('ImageUtils'),_0x3798b0={};_0x1a5f74['enableCommand']('imageStyle',(_0x217dbe,_0xdee0d8)=>{const _0x31d8f2=_0x597120['plugins']['get']('Users')['me'],_0x5cc9c5=_0x597120['commands']['get']('imageStyle');let _0x41874f=_0x53a71c['getClosestSelectedImageElement'](_0x597120['model']['document']['selection']),_0x3c1169=_0x597120['model']['createRangeOn'](_0x41874f),_0x45c02f=_0x5cc9c5['value'];if(_0x45c02f==_0xdee0d8['value'])return;const _0x38dcd9={'commandName':'imageStyle','commandParams':[_0xdee0d8],'formatGroupId':_0x3cefaa()};_0x597120['model']['change'](()=>{if(_0x1a5f74['getSuggestions']()['filter'](_0x44e0aa=>_0x44e0aa['isInContent']&&_0x31d8f2==_0x44e0aa['author']&&('formatBlock'==_0x44e0aa['type']||'formatInline'==_0x44e0aa['type'])&&('imageStylePreApply'==_0x44e0aa['subType']||'imageStylePostApply'==_0x44e0aa['subType'])&&_0x44e0aa['getFirstRange']()['isEqual'](_0x3c1169))['forEach'](_0x361548=>_0x1a5f74['discardSuggestion'](_0x361548['head'])),_0x41874f=_0x53a71c['getClosestSelectedImageElement'](_0x597120['model']['document']['selection']),_0x3c1169=_0x597120['model']['createRangeOn'](_0x41874f),_0x5cc9c5['refresh'](),_0x597120['commands']['get']('imageTypeInline')['refresh'](),_0x597120['commands']['get']('imageTypeBlock')['refresh'](),_0x45c02f=_0x5cc9c5['value'],_0x45c02f!=_0xdee0d8['value'])return _0x53a71c['isInlineImage'](_0x41874f)&&_0x5cc9c5['shouldConvertImageType'](_0xdee0d8['value'],_0x41874f)?(_0x217dbe({..._0xdee0d8,'setImageSizes':!0x1}),_0x41874f=_0x53a71c['getClosestSelectedImageElement'](_0x597120['model']['document']['selection']),void _0x1a5f74['markBlockFormat'](_0x41874f,{..._0x38dcd9,'commandReversedParams':[{'value':_0x45c02f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x53a71c['isBlockImage'](_0x41874f)?_0x1a5f74['markBlockFormat'](_0x41874f,_0x38dcd9,[],'imageStylePostApply'):_0x1a5f74['markInlineFormat'](_0x3c1169,_0x38dcd9,'imageStylePostApply'));});});for(const _0x2d8379 of _0x597120['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3798b0[_0x2d8379['name']]=_0x2d8379['title']['toLowerCase']();_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x58d0a2])=>{_0x53a71c['setImageNaturalSizeAttributes'](_0x58d0a2['getContainedElement']());}),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3fb67b,_0x32c281)=>{_0x1a5f74['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3fb67b,{'commandName':_0x32c281['commandName'],'commandParams':_0x32c281['commandReversedParams']});}),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x348fd1,_0x569441){if(_0x58622e(_0x348fd1,_0x569441))return[_0x348fd1,_0x569441];if(_0x58622e(_0x569441,_0x348fd1))return[_0x569441,_0x348fd1];return null;});const _0x3c7405=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58622e(_0x5c8614,_0x3e3b46){const _0x671c77=_0x3c7405['findIndex'](({type:_0x4a47a1,subType:_0x2b8b9e})=>_0x5c8614['type']==_0x4a47a1&&_0x5c8614['subType']==_0x2b8b9e),_0x532cef=_0x3c7405['findIndex'](({type:_0x3dc444,subType:_0x341888})=>_0x3e3b46['type']==_0x3dc444&&_0x3e3b46['subType']==_0x341888);if(_0x671c77<0x0||_0x532cef<0x0)return!0x1;const _0x5d27a7=_0x5c8614['getFirstRange'](),_0x26d0f6=_0x3e3b46['getFirstRange']();if((0x0==_0x671c77||0x1==_0x671c77)&&0x2==_0x532cef&&_0x5d27a7['isIntersecting'](_0x26d0f6))return!0x0;if(0x2==_0x671c77&&0x3==_0x532cef){const _0x370c08=_0x1a5f74['_findSuggestions'](_0x5d27a7,'insertion')['filter'](({suggestion:_0x4304c6,meta:_0x5c5075})=>_0x5c5075['isOwn']&&'convertInlineImageToBlock'==_0x4304c6['subType']);if(_0x370c08['length']>0x1&&_0x26d0f6['end']['isEqual'](_0x5d27a7['start']))return!0x0;if(0x1==_0x370c08['length']&&(_0x5d27a7['start']['isEqual'](_0x26d0f6['end'])||_0x5d27a7['end']['isEqual'](_0x26d0f6['start'])))return!0x0;}if(0x3==_0x671c77&&0x3==_0x532cef&&_0x5d27a7['start']['isBefore'](_0x26d0f6['start'])){const _0xf2ad1c=_0x5d27a7['end']['nodeAfter'],_0x120bb9=_0x26d0f6['start']['nodeBefore'];return _0x53a71c['isBlockImage'](_0xf2ad1c)&&_0xf2ad1c===_0x120bb9;}return!0x1;}_0x597120['model']['document']['registerPostFixer'](()=>{let _0x96e29a=!0x1;const _0x561a8a=Array['from'](_0x597120['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf51a86,data:_0x37cd9e}of _0x561a8a){const {group:_0x443bc0,type:_0x44b86b,subType:_0x46e2d4,id:_0x201040}=_0x1a5f74['_splitMarkerName'](_0xf51a86);if('suggestion'==_0x443bc0&&_0x1a5f74['hasSuggestion'](_0x201040)){if('formatBlock'==_0x44b86b&&('imageStylePreApply'==_0x46e2d4||'imageStylePostApply'==_0x46e2d4)){const _0x47f386=_0x1a5f74['getSuggestion'](_0x201040);if(_0x37cd9e['newRange']){const _0x1e0501=_0x47f386['getFirstRange']()['getContainedElement']();if(_0x53a71c['isBlockImage'](_0x1e0501))continue;_0x1a5f74['discardSuggestion'](_0x47f386),_0x96e29a=!0x0;}}if('insertion'==_0x44b86b&&'imageCaption'==_0x46e2d4&&!_0x37cd9e['newRange']){const _0x4f34a9=_0x1a5f74['getSuggestion'](_0x201040);_0x4f34a9['next']&&_0x4f34a9['next']['isInContent']&&(_0x1a5f74['discardSuggestion'](_0x4f34a9['next']),_0x96e29a=!0x0);}}}return _0x96e29a;}),this['_registerLegacyDescription'](_0x3798b0);}['_registerLegacyDescription'](_0x5ba9b6){const _0x592ae7=this['editor'],_0x1d2a5c=_0x592ae7['locale'];_0x592ae7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d88a9=>{if('formatBlock'!=_0x2d88a9['type']&&'formatInline'!=_0x2d88a9['type'])return;const {data:_0xcbd8bc}=_0x2d88a9;if(!_0xcbd8bc||'imageStyle'!=_0xcbd8bc['commandName'])return;const _0x4896f9=_0xcbd8bc['commandParams'][0x0]['value'];return _0x1c358f('side'===_0x4896f9?o(_0x1d2a5c,'FORMAT_SIDE_IMAGE'):_0x5ba9b6[_0x4896f9]||_0x4896f9);function _0x1c358f(_0x3e46e4){return{'type':'format','content':o(_0x1d2a5c,'*Format:*\x20%0',_0x3e46e4)};}});}}class ot extends _0x4d360f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x457679){super(_0x457679),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x514fd1=this['editor'],_0x4afbb9=_0x514fd1['commands']['get']('importWord'),_0x2922da=_0x514fd1['commands']['get']('trackChanges');_0x4afbb9&&(_0x4afbb9['on']('execute',(_0x9ce483,[,_0x29ab5b])=>{this['_trackChangesValueDuringImport']=_0x2922da['value'],_0x29ab5b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4afbb9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4afbb9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2922da['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x514fd1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x39a031,_0x519e9f){const {suggestions:_0x30155c}=_0x519e9f,_0x1abfea=this['editor']['commands']['get']('trackChanges'),_0x5c2614=_0x1abfea['value'];this['_trackChangesValueDuringImport']!==_0x5c2614&&(_0x1abfea['execute'](),this['_trackChangesExecuted']=!0x0),_0x30155c&&_0x30155c['forEach'](({id:_0x1a392e,type:_0x2135c5,author:_0xcecf32,created_at:_0x41fdcc})=>{const _0x15df62={'id':_0x1a392e,'type':_0x2135c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xcecf32,'createdAt':_0x41fdcc?new Date(_0x41fdcc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x15df62);});}}class rt extends _0x4d360f{['afterInit'](){const _0x6ab034=this['editor'],_0x48ff48=_0x6ab034['plugins']['get']('TrackChangesEditing');if(_0x6ab034['plugins']['has']('IndentEditing')&&(_0x48ff48['enableCommand']('indent'),_0x48ff48['enableCommand']('outdent')),_0x6ab034['plugins']['has']('IndentBlock')){for(const _0x1011d4 of['indentBlock','outdentBlock'])_0x48ff48['enableDefaultAttributesIntegration'](_0x1011d4);}const _0x26673e=_0x6ab034['locale'];_0x48ff48['registerBlockAttribute']('blockIndent'),_0x48ff48['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x26673e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bca86=this['editor'],_0x57a10c=_0x4bca86['locale'],_0x132eef=_0x4bca86['plugins']['get']('TrackChangesEditing');_0x132eef['descriptionFactory']['registerDescriptionCallback'](_0x1ea53d=>{if('formatBlock'!=_0x1ea53d['type'])return;const {data:_0x4ebcc2}=_0x1ea53d;if(!_0x4ebcc2)return;if('indentBlock'!=_0x4ebcc2['commandName']&&'outdentBlock'!=_0x4ebcc2['commandName'])return;const _0x2923eb=_0x1ea53d['getItems']()[0x0],_0x2f37a7=_0x132eef['descriptionFactory']['getItemLabel'](_0x2923eb);return'indentBlock'==_0x4ebcc2['commandName']?{'type':'format','content':o(_0x57a10c,'*Indent:*\x20%0',_0x2f37a7)}:'outdentBlock'==_0x4ebcc2['commandName']?{'type':'format','content':o(_0x57a10c,'*Outdent:*\x20%0',_0x2f37a7)}:void 0x0;});}}class at extends _0x4d360f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4d360f{['afterInit'](){const _0x241e4b=this['editor'];if(!_0x241e4b['plugins']['has']('LinkEditing'))return;const _0x10fab6=_0x241e4b['plugins']['get']('TrackChangesEditing'),_0x22235e=_0x241e4b['commands']['get']('link');_0x10fab6['enableDefaultAttributesIntegration']('link'),_0x10fab6['enableDefaultAttributesIntegration']('unlink'),_0x10fab6['registerInlineAttribute']('linkHref');for(const _0x888855 of _0x22235e['manualDecorators'])_0x10fab6['registerInlineAttribute'](_0x888855['id']),_0x10fab6['descriptionFactory']['registerAttributeLabel'](_0x888855['id'],'link\x20('+_0x888855['label']['toLowerCase']()+')');_0x10fab6['descriptionFactory']['registerDescriptionCallback'](_0x2d2d0e=>{if('attribute'!=_0x2d2d0e['type'])return;const {data:_0x4aa6c5}=_0x2d2d0e;if(!_0x4aa6c5||'linkHref'!=_0x4aa6c5['key'])return;const _0x12d5a9=_0x4aa6c5['newValue'],_0x5a6ed2=_0x241e4b['locale'];return{'type':'format','content':null==_0x12d5a9?o(_0x5a6ed2,'*Remove\x20link*'):o(_0x5a6ed2,'*Set\x20link:*\x20%0','\x22'+_0x12d5a9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74844b=this['editor'],_0x2ae6a7=_0x74844b['locale'];_0x74844b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdbcf3f=>{if('formatInline'!=_0xdbcf3f['type'])return;const {data:_0xfd65f2}=_0xdbcf3f;if(_0xfd65f2){if('link'==_0xfd65f2['commandName']){const _0x473de9=_0xfd65f2['commandParams'][0x0];return{'type':'format','content':o(_0x2ae6a7,'*Set\x20link:*\x20%0','\x22'+_0x473de9+'\x22')};}return'unlink'==_0xfd65f2['commandName']?{'type':'format','content':o(_0x2ae6a7,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4d360f{['afterInit'](){const _0x324450=this['editor'],_0x106a33=_0x324450['locale'];if(!_0x324450['plugins']['has']('LegacyListEditing'))return;const _0x469f22=_0x324450['plugins']['get']('TrackChangesEditing'),_0x452c8e=_0x324450['plugins']['has']('LegacyTodoListEditing');function _0x45cdcb(_0x45bbca){return()=>{const _0xfd2682=_0x324450['model']['document']['selection'],_0x5616eb=_0x324450['commands']['get'](_0x45bbca);if(_0x5616eb['value'])return void _0x324450['execute']('paragraph',{});const _0x5c9984=_0x45bbca['slice'](0x0,-0x4),_0x13dbe2=function(_0x43ee3e,_0x687f2f,_0x1b24f7){let _0x347dc3=Array['from'](_0x43ee3e)['filter'](_0x4eb82d=>function(_0xd4c5e1,_0x90f3e7){return _0x90f3e7['checkChild'](_0xd4c5e1['parent'],'listItem')&&!_0x90f3e7['isObject'](_0xd4c5e1);}(_0x4eb82d,_0x1b24f7));_0x347dc3=_0x347dc3['filter'](_0x43cb25=>!_0x43cb25['is']('element','listItem')||_0x43cb25['getAttribute']('listType')!=_0x687f2f);const _0x28f915=new Set();for(const _0x4fb5a4 of _0x347dc3)_0x4fb5a4['is']('element','listItem')?_0x28f915['add'](me(_0x4fb5a4)):_0x28f915['add'](_0x4fb5a4);return Array['from'](_0x28f915);}(_0xfd2682['getSelectedBlocks'](),_0x5c9984,_0x324450['model']['schema']);_0x324450['model']['change'](()=>{for(const _0x29e95c of _0x13dbe2)_0x469f22['markBlockFormat'](_0x29e95c,{'commandName':_0x45bbca,'commandParams':[{'forceValue':!_0x5616eb['value']}],'formatGroupId':'blockName'},fe(_0x29e95c));});};}function _0x5f8649(_0x2a729b){return()=>{const _0x58c59d=function(_0xc88b73){let _0x41098f=Array['from'](_0xc88b73);const _0x97b58d=_0x41098f['findIndex'](_0x5c2e2c=>'listItem'!=_0x5c2e2c['name']);return _0x97b58d>-0x1&&(_0x41098f=_0x41098f['slice'](0x0,_0x97b58d)),_0x41098f;}(_0x324450['model']['document']['selection']['getSelectedBlocks']()),_0x332ab9=_0x324450['model']['createRange'](_0x324450['model']['createPositionAt'](_0x58c59d[0x0],'before'),_0x324450['model']['createPositionAt'](_0x58c59d[_0x58c59d['length']-0x1],'end'));_0x324450['model']['change'](()=>{_0x469f22['markBlockFormat'](_0x332ab9,{'commandName':_0x2a729b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x346056){const _0x24b9d2=new Set();for(const _0x274080 of _0x346056){let _0x432948=_0x274080['nextSibling'];for(;_0x432948&&_0x432948['getAttribute']('listIndent')>_0x274080['getAttribute']('listIndent');)_0x24b9d2['add'](_0x432948),_0x432948=_0x432948['nextSibling'];}return Array['from'](_0x24b9d2);}(_0x58c59d));});};}_0x469f22['enableCommand']('numberedList',_0x45cdcb('numberedList')),_0x469f22['enableCommand']('bulletedList',_0x45cdcb('bulletedList')),_0x452c8e&&_0x469f22['enableCommand']('todoList',_0x45cdcb('todoList')),_0x469f22['enableCommand']('indentList',_0x5f8649('indentList')),_0x469f22['enableCommand']('outdentList',_0x5f8649('outdentList')),_0x452c8e&&_0x469f22['enableCommand']('checkTodoList',()=>{const _0xfc522e=_0x324450['commands']['get']('checkTodoList'),_0x2d3268=Array['from'](_0xfc522e['_selectedElements']);_0x2d3268['filter'](_0x2d1f7b=>_0x2d1f7b['getAttribute']('todoListChecked')!=_0xfc522e['value']),_0x324450['model']['change'](()=>{for(const _0x50edb7 of _0x2d3268)_0x469f22['markBlockFormat'](_0x50edb7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xfc522e['value']}]});});}),_0x469f22['descriptionFactory']['registerElementLabel']('listItem',_0x1a75c9=>o(_0x106a33,'ELEMENT_LIST_ITEM',_0x1a75c9)),_0x469f22['descriptionFactory']['registerDescriptionCallback'](_0x1db045=>{if('formatBlock'!=_0x1db045['type']&&'formatInline'!=_0x1db045['type'])return;const {data:_0x2de660}=_0x1db045;if(_0x2de660){if('numberedList'==_0x2de660['commandName']||'bulletedList'==_0x2de660['commandName']||'todoList'==_0x2de660['commandName'])switch(_0x2de660['commandName']['replace']('List','')){case'bulleted':return _0x2e05eb(o(_0x106a33,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e05eb(o(_0x106a33,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e05eb(o(_0x106a33,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2de660['commandName'])return{'type':'format','content':o(_0x106a33,'*Indent:*\x20%0',o(_0x106a33,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2de660['commandName'])return{'type':'format','content':o(_0x106a33,'*Outdent:*\x20%0',o(_0x106a33,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2de660['commandName'])return _0x2de660['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x106a33,'*Check\x20item*')}:{'type':'format','content':o(_0x106a33,'*Uncheck\x20item*')};}function _0x2e05eb(_0x5abb13){return{'type':'format','content':o(_0x106a33,'*Change\x20to:*\x20%0',_0x5abb13)};}});}}function me(_0x564d50){const _0x5c3a7d=_0x564d50['getAttribute']('listIndent');if(0x0==_0x5c3a7d)return _0x564d50;let _0x5a1aa4=_0x564d50;for(;_0x564d50['previousSibling']&&_0x564d50['previousSibling']['is']('element','listItem');){const _0x3b01d9=_0x564d50['previousSibling']['getAttribute']('listIndent');if(_0x3b01d9==_0x5c3a7d)_0x5a1aa4=_0x564d50['previousSibling'];else{if(_0x3b01d9<_0x5c3a7d)break;}_0x564d50=_0x564d50['previousSibling'];}return _0x5a1aa4;}function fe(_0x2eba56){const _0x5da342=[];if(_0x2eba56['is']('element','listItem')&&_0x2eba56['getAttribute']('listIndent')>0x0){let _0x182351=_0x2eba56['nextSibling'];for(;_0x182351&&'listItem'==_0x182351['name']&&_0x182351['getAttribute']('listIndent')==_0x2eba56['getAttribute']('listIndent');)_0x5da342['push'](_0x182351),_0x182351=_0x182351['nextSibling'];}return _0x5da342;}class K extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x512832=this['editor']['config']['get']('list.properties'),_0x14c255=this['editor']['plugins']['get']('TrackChangesEditing');_0x512832['styles']&&_0x14c255['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x512832['reversed']&&_0x14c255['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x512832['startIndex']&&_0x14c255['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x14c255['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x75fe5,_0x3386c5={}){const _0x5e4ff0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x580754=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5e4ff0['markMultiRangeBlockFormat'](_0x580754,{'commandName':'listStyle','commandParams':[{'type':_0x3386c5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x460127,_0xa1fb39={}){const _0x319bf9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d9e3=this['_getSuggestionBlocks'](_0x33fc63=>_0x33fc63['is']('element','listItem')&&'numbered'===_0x33fc63['getAttribute']('listType'));if(_0x40d9e3['length']<0x1)return;const _0x3b81e5=_0x40d9e3['map'](_0x47754a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47754a,'before'),this['editor']['model']['createPositionAt'](_0x47754a,0x0)));this['editor']['model']['change'](()=>{_0x319bf9['markMultiRangeBlockFormat'](_0x3b81e5,{'commandName':'listReversed','commandParams':[{'reversed':_0xa1fb39['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b5a3f,_0x34a02a={}){const _0x596125=this['editor']['plugins']['get']('TrackChangesEditing'),_0x316680=this['_getSuggestionBlocks'](_0xe483f3=>_0xe483f3['is']('element','listItem')&&'numbered'===_0xe483f3['getAttribute']('listType'));if(_0x316680['length']<0x1)return;const _0x1c690f=_0x316680['map'](_0x36c409=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36c409,'before'),this['editor']['model']['createPositionAt'](_0x36c409,0x0)));this['editor']['model']['change'](()=>{_0x596125['markMultiRangeBlockFormat'](_0x1c690f,{'commandName':'listStart','commandParams':[{'startIndex':_0x34a02a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3e818b){if('formatBlock'!=_0x3e818b['type']&&'formatInline'!=_0x3e818b['type'])return;const _0x237c2c=this['editor']['locale'],{data:_0x47121b}=_0x3e818b;if(!_0x47121b)return;let _0x2c9baf,_0x44734e;switch(_0x47121b['commandName']){case'listStyle':_0x2c9baf='*Change\x20to:*\x20%0',_0x44734e={'type':'format','content':o(_0x237c2c,_0x2c9baf,o(_0x237c2c,this['_getTranslationKeyForListStyle'](_0x47121b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c9baf=_0x47121b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x44734e={'type':'format','content':o(_0x237c2c,_0x2c9baf)};break;case'listStart':_0x2c9baf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44734e={'type':'format','content':o(_0x237c2c,_0x2c9baf,_0x47121b['commandParams'][0x0]['startIndex'])};}return _0x44734e;}['_getSuggestionBlocksForListStyle'](){const _0x411610=this['editor']['plugins']['get']('LegacyListUtils');let _0x43a0bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43a0bd[0x0]?.['is']('element','listItem')&&_0x43a0bd['unshift'](..._0x411610['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43a0bd[_0x43a0bd['length']-0x1]?.['is']('element','listItem')&&_0x43a0bd['push'](..._0x411610['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43a0bd=[...new Set(_0x43a0bd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43a0bd=_0x43a0bd['filter'](_0x11f21a=>_0x11f21a['is']('element','listItem'))),_0x43a0bd;}['_getSuggestionBlocks'](_0x16eca5){const _0x4b8941=this['editor']['plugins']['get']('LegacyListUtils');let _0xbf190f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x16eca5)['map'](_0x5e684d=>{const _0x4448c5=this['editor']['model']['createPositionAt'](_0x5e684d,0x0);return[..._0x4b8941['getSiblingNodes'](_0x4448c5,'backward'),..._0x4b8941['getSiblingNodes'](_0x4448c5,'forward')];})['flat']();return _0xbf190f=[...new Set(_0xbf190f)],_0xbf190f;}['_getTranslationKeyForListStyle'](_0x5b4271){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b4271)||'default')['toUpperCase']()+'_LIST_'+_0x5b4271['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4d360f{['afterInit'](){const _0xcb6b25=this['editor'];if(!_0xcb6b25['plugins']['has']('MediaEmbedEditing'))return;const _0x183c74=_0xcb6b25['plugins']['get']('TrackChangesEditing'),_0x4ed65d=_0xcb6b25['locale'];_0x183c74['enableCommand']('mediaEmbed'),_0x183c74['descriptionFactory']['registerElementLabel']('media',_0x3488ef=>o(_0x4ed65d,'ELEMENT_MEDIA',_0x3488ef)),_0xcb6b25['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x254a4d,{writer:_0x2969ff,options:_0x26412c})=>{if(_0x26412c['showSuggestionHighlights'])return _0x2969ff['createEmptyElement']('div');},'converterPriority':'high'}),_0xcb6b25['data']['downcastDispatcher']['on']('attribute:url:media',(_0x42576d,_0x3ba920,_0xb73c3a)=>{_0xb73c3a['options']['showSuggestionHighlights']&&_0x42576d['stop']();},{'priority':'high'});}}class gt extends _0x4d360f{['afterInit'](){const _0x3ba16b=this['editor'];_0x3ba16b['plugins']['has']('MentionEditing')&&_0x3ba16b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4d360f{['afterInit'](){const _0x45ba55=this['editor'],_0x997562=_0x45ba55['plugins']['get']('TrackChangesEditing');_0x45ba55['plugins']['has']('MultiLevelList')&&(_0x997562['enableDefaultAttributesIntegration']('multiLevelList'),_0x997562['registerBlockAttribute']('listMarkerStyle'),_0x997562['descriptionFactory']['registerDescriptionCallback'](_0x1dcf6f=>this['handleDescriptions'](_0x1dcf6f)));}['handleDescriptions'](_0x5761cd){const _0x540da8=this['editor']['locale'],{data:_0xd8397e}=_0x5761cd,_0x515b49={'type':'format','content':''};if(_0xd8397e&&'listMarkerStyle'==_0xd8397e['key']){if(!_0xd8397e['oldValue'])return{'type':'format','content':o(_0x540da8,'*Set\x20format:*\x20%0',o(_0x540da8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd8397e['newValue']+')'};if(!_0xd8397e['newValue']){let _0x5afd80=_0x5761cd['head'];for(;_0x5afd80;){if(_0x5afd80['data']&&'listType'==_0x5afd80['data']['key']&&_0x5afd80['data']['newValue'])return _0x515b49;_0x5afd80=_0x5afd80['next'];}return{'type':'format','content':o(_0x540da8,'*Remove\x20format:*\x20%0',o(_0x540da8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd8397e['oldValue']+')'};}}}}class mt extends _0x4d360f{['afterInit'](){const _0x43202b=this['editor'];if(!_0x43202b['plugins']['has']('PageBreakEditing'))return;_0x43202b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x33e2eb=_0x43202b['plugins']['get']('TrackChangesEditing'),_0x20696c=_0x43202b['locale'];_0x33e2eb['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f9f4e=>o(_0x20696c,'ELEMENT_PAGE_BREAK',_0x1f9f4e));}}class dt extends _0x4d360f{['afterInit'](){const _0x5b2ea5=this['editor'];if(!_0x5b2ea5['plugins']['has']('Paragraph'))return;const _0x49855d=_0x5b2ea5['locale'],_0xf45582=_0x5b2ea5['plugins']['get']('TrackChangesEditing');_0xf45582['descriptionFactory']['registerElementLabel']('paragraph',_0x2eed32=>o(_0x49855d,'ELEMENT_PARAGRAPH',_0x2eed32)),_0xf45582['enableDefaultAttributesIntegration']('paragraph'),_0xf45582['enableCommand']('insertParagraph'),_0x5b2ea5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5b2ea5),{'priority':'highest'}),_0x5b2ea5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf4cd30,_0x11ce87,_0x781cda)=>{_0x781cda['options']['showSuggestionHighlights']&&nr(_0x5b2ea5,{'showActiveMarker':!0x1})(_0xf4cd30,_0x11ce87,_0x781cda);},{'priority':'highest'});const _0x6ec5a8=_0xf45582['descriptionFactory'];_0x6ec5a8['registerDescriptionCallback'](_0x1bf271=>{if('insertion'!==_0x1bf271['type'])return;const {start:_0x4b38ee,end:_0xfe5dee}=_0x1bf271['getFirstRange']();if(!_0x4b38ee['isTouching'](_0xfe5dee)||!_0x4b38ee['nodeAfter'])return;const _0x39f00b=_0x5b2ea5['model']['schema'],_0x210b04=_0x4b38ee['nodeAfter'];return _0x39f00b['isBlock'](_0x210b04)&&!_0x39f00b['isLimit'](_0x210b04)&&_0x39f00b['checkChild'](_0x210b04,'$text')?{'type':'insertion','content':o(_0x49855d,'*Insert:*\x20%0',_0x6ec5a8['getItemLabel'](_0x210b04,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27ab1b=this['editor'],_0x4b58a4=_0x27ab1b['locale'];_0x27ab1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17fb89=>{if('formatBlock'!=_0x17fb89['type'])return;const {data:_0x163b20}=_0x17fb89;return _0x163b20&&'paragraph'==_0x163b20['commandName']?{'type':'format','content':o(_0x4b58a4,'*Change\x20to:*\x20%0',o(_0x4b58a4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b1e3d,{showActiveMarker:_0x44c422=!0x0}={}){return(_0x258a0a,_0x4213cb,_0x4f0a11)=>{const _0x9a2780=_0x3b1e3d['plugins']['get']('TrackChangesEditing'),_0x430f1b=_0x4213cb['markerRange']['start'],_0x5a0761=_0x4213cb['markerRange']['end'],_0x3d7bdc=_0x3b1e3d['model']['schema'];if(!_0x430f1b['isTouching'](_0x5a0761)||!_0x430f1b['nodeAfter'])return;const _0x319093=_0x430f1b['nodeAfter'];if(_0x3d7bdc['isBlock'](_0x319093)&&!_0x3d7bdc['isLimit'](_0x319093)&&_0x3d7bdc['checkChild'](_0x319093,'$text')){if(!_0x4f0a11['consumable']['consume'](_0x4213cb['markerRange'],_0x258a0a['name']))return;const _0x10dee4=_0x4f0a11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5d888e=_0x4f0a11['mapper']['toViewPosition'](_0x5a0761);_0x44c422&&_0x9a2780['activeMarkers']['includes'](_0x4213cb['markerName'])&&_0x4f0a11['writer']['addClass']('ck-suggestion-marker--active',_0x10dee4),_0x4f0a11['writer']['insert'](_0x5d888e,_0x10dee4),_0x4f0a11['mapper']['bindElementToMarker'](_0x10dee4,_0x4213cb['markerName']);}};}class pt extends _0x4d360f{['afterInit'](){const _0x3b25c2=this['editor'];if(!_0x3b25c2['plugins']['has']('RemoveFormatEditing'))return;_0x3b25c2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52a608=this['editor'];_0x52a608['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1063=>{if('formatBlock'!=_0x5e1063['type']&&'formatInline'!=_0x5e1063['type'])return;const {data:_0x5cc9d2}=_0x5e1063;return _0x5cc9d2&&'removeFormat'==_0x5cc9d2['commandName']?{'type':'format','content':o(_0x52a608['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4d360f{['afterInit'](){const _0x1edfa0=this['editor'];if(!_0x1edfa0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x398cc2=_0x1edfa0['plugins']['get']('TrackChangesEditing');_0x398cc2['enableCommand']('goToPreviousRestrictedEditingException'),_0x398cc2['enableCommand']('goToNextRestrictedEditingException');const _0x289902=_0x1edfa0['plugins']['get']('RestrictedEditingModeEditing');_0x289902['enableCommand']('trackChanges'),_0x289902['enableCommand']('acceptSuggestion'),_0x289902['enableCommand']('discardSuggestion'),_0x289902['enableCommand']('acceptAllSuggestions'),_0x289902['enableCommand']('discardAllSuggestions'),_0x289902['enableCommand']('acceptSelectedSuggestions'),_0x289902['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4d360f{static get['requires'](){return[_0x177a10];}['init'](){const _0x26e6e6=this['editor'],_0x7e403a=_0x26e6e6['plugins']['get']('TrackChangesEditing');_0x7e403a['enableCommand']('shiftEnter'),_0x26e6e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x26e6e6),{'priority':'high'}),_0x26e6e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x26e6e6),{'priority':'high'}),_0x26e6e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xeef106,_0x1d5173,_0x199e00)=>{_0x199e00['options']['showSuggestionHighlights']&&de(_0x26e6e6,{'showActiveMarker':!0x1})(_0xeef106,_0x1d5173,_0x199e00);}),_0x7e403a['descriptionFactory']['registerElementLabel']('softBreak',_0x331d41=>o(_0x26e6e6['locale'],'ELEMENT_LINE_BREAK',_0x331d41));}}function de(_0x4f0941,{showActiveMarker:_0x3b0852=!0x0}={}){return(_0x3078a1,_0x4bda1a,_0x414f47)=>{const _0x5104fd=_0x4f0941['plugins']['get']('TrackChangesEditing');if(!_0x414f47['consumable']['test'](_0x4bda1a['markerRange'],_0x3078a1['name']))return;const _0x1b3c03=_0x4f0941['model'];for(const _0x155a2c of _0x4bda1a['markerRange']['getItems']()){if(!_0x155a2c['is']('element','softBreak'))continue;const _0x4c0e5e='deletion'==_0x4bda1a['markerName']['split'](':')[0x1]?'merge':'split',_0x133e86=_0x414f47['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c0e5e}),_0x1b61b7=_0x414f47['mapper']['toViewPosition'](_0x1b3c03['createPositionBefore'](_0x155a2c));_0x3b0852&&_0x5104fd['activeMarkers']['includes'](_0x4bda1a['markerName'])&&_0x414f47['writer']['addClass']('ck-suggestion-marker--active',_0x133e86),_0x414f47['writer']['insert'](_0x1b61b7,_0x133e86),_0x414f47['mapper']['bindElementToMarker'](_0x133e86,_0x4bda1a['markerName']);}};}class wt extends _0x4d360f{['afterInit'](){const _0x117bc5=this['editor'],_0x28ad28=_0x117bc5['model'],_0x19f0de=_0x117bc5['locale'];if(!_0x117bc5['plugins']['has']('StandardEditingModeEditing'))return;const _0x2fa2cf=_0x117bc5['plugins']['get']('TrackChangesEditing'),_0x3b2e9e='restrictedEditingException',_0x1c1571=_0x117bc5['commands']['get'](_0x3b2e9e);_0x2fa2cf['enableCommand'](_0x3b2e9e,(_0x4e7999,_0x4bce88={})=>{const _0x53d4d0=_0x28ad28['document']['selection'];if(_0x53d4d0['isCollapsed'])return void _0x4e7999(_0x4bce88);const _0x15e33d=void 0x0!==_0x4bce88['forceValue']?_0x4bce88['forceValue']:!_0x1c1571['value'];_0x28ad28['change'](()=>{const _0x38eb31=Array['from'](_0x53d4d0['getRanges']());for(const _0x14e780 of _0x38eb31){const _0x39a5ff=_0x15e33d?[_0x14e780]:io(_0x3b2e9e,_0x14e780,_0x28ad28);for(const _0x4260d9 of _0x39a5ff)_0x2fa2cf['markInlineFormat'](_0x4260d9,{'commandName':_0x3b2e9e,'commandParams':[{'forceValue':_0x15e33d}]});}});}),_0x2fa2cf['descriptionFactory']['registerDescriptionCallback'](_0x45a19f=>{if('formatBlock'!=_0x45a19f['type']&&'formatInline'!=_0x45a19f['type'])return;const {data:_0x187f74}=_0x45a19f;return _0x187f74&&_0x187f74['commandName']==_0x3b2e9e?_0x187f74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19f0de,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x19f0de,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4d360f{['afterInit'](){const _0xddd58=this['editor'];if(!_0xddd58['plugins']['has']('Style')||!_0xddd58['plugins']['has']('DataSchema'))return;const _0x52a996=_0xddd58['plugins']['get']('TrackChangesEditing'),_0x3d542d=_0xddd58['locale'],_0x248006=_0xddd58['config']['get']('style')||{},_0xba202=_0xddd58['plugins']['get']('GeneralHtmlSupport'),_0x53f9f6=_0xddd58['plugins']['get']('StyleUtils')['normalizeConfig'](_0xddd58['plugins']['get']('DataSchema'),_0x248006['definitions']);_0x52a996['enableDefaultAttributesIntegration']('style');const _0x1e4f5e=new Set();for(const _0x68db1e of _0x53f9f6['block']){const _0x14d48d=_0xba202['getGhsAttributeNameForElement'](_0x68db1e['element']);_0x1e4f5e['add'](_0x14d48d);}const _0x2ce45f=new Set();for(const _0x1fa52b of _0x53f9f6['inline']){const _0x3ad6d3=_0xba202['getGhsAttributeNameForElement'](_0x1fa52b['element']);_0x2ce45f['add'](_0x3ad6d3);for(const _0x333ea1 of _0x1fa52b['ghsAttributes'])_0x2ce45f['add'](_0x333ea1);}for(const _0x2a4db4 of _0x1e4f5e)_0x52a996['registerBlockAttribute'](_0x2a4db4),_0x52a996['descriptionFactory']['registerAttributeLabel'](_0x2a4db4,o(_0x3d542d,'FORMAT_STYLE'));for(const _0x2d34ef of _0x2ce45f)_0x52a996['registerInlineAttribute'](_0x2d34ef),_0x52a996['descriptionFactory']['registerAttributeLabel'](_0x2d34ef,o(_0x3d542d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5149e1=this['editor'],_0x4dc127=_0x5149e1['locale'];_0x5149e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14e1ed=>{if('formatBlock'!=_0x14e1ed['type']&&'formatInline'!=_0x14e1ed['type'])return;const {data:_0x12e64a}=_0x14e1ed;return _0x12e64a&&'style'===_0x12e64a['commandName']?_0x12e64a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dc127,'*Set\x20format:*\x20%0',_0x12e64a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4dc127,'*Remove\x20format:*\x20%0',_0x12e64a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4d360f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c4de2){super(_0x4c4de2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xce5698=this['editor'],_0x4c4ebb=_0xce5698['model']['document']['selection'];if(!_0xce5698['plugins']['has']('TableEditing'))return;const _0x26e532=_0xce5698['locale'],_0x3d75b5=_0xce5698['plugins']['get']('TrackChangesEditing'),_0x1c5753=_0xce5698['plugins']['get']('TableUtils');_0x3d75b5['descriptionFactory']['registerElementLabel']('table',_0x3099fd=>o(_0x26e532,'ELEMENT_TABLE',_0x3099fd)),this['_setupColumnsRowsFixing'](),_0x3d75b5['enableCommand']('insertTable'),_0x3d75b5['enableCommand']('selectTableRow'),_0x3d75b5['enableCommand']('selectTableColumn');for(const _0x13ed6e of['insertTableRowAbove','insertTableRowBelow']){const _0x5a433e=_0xce5698['commands']['get'](_0x13ed6e);_0x3d75b5['enableCommand'](_0x13ed6e,_0x38e24a=>{_0xce5698['model']['change'](_0x3b52d4=>{_0x38e24a();const _0x261d8c='above'===_0x5a433e['order'],_0x561476=_0x1c5753['getSelectionAffectedTableCells'](_0x4c4ebb),_0x44eb4b=_0x1c5753['getRowIndexes'](_0x561476),_0x55066f=_0x261d8c?_0x44eb4b['first']-0x1:_0x44eb4b['last']+0x1,_0x387c9e=_0x561476[0x0]['findAncestor']('table'),_0x1f5695=_0x1c5753['createTableWalker'](_0x387c9e,{'startRow':_0x55066f,'endRow':_0x55066f}),_0x5139d4=Array['from'](_0x1f5695)['map'](_0x2e6865=>_0x3b52d4['createRangeOn'](_0x2e6865['cell']));_0x3d75b5['markMultiRangeInsertion'](_0x5139d4,'tableRow');});});}for(const _0x3168e1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x18d452=_0xce5698['commands']['get'](_0x3168e1);_0x3d75b5['enableCommand'](_0x3168e1,_0x3f11dc=>{_0xce5698['model']['change'](_0x3da183=>{_0x3f11dc();const _0x2d0f91='left'===_0x18d452['order'],_0x493eb8=_0x1c5753['getSelectionAffectedTableCells'](_0x4c4ebb),_0x32b161=_0x1c5753['getColumnIndexes'](_0x493eb8),_0x38a201=_0x2d0f91?_0x32b161['first']-0x1:_0x32b161['last']+0x1,_0x2ac773=_0x493eb8[0x0]['findAncestor']('table'),_0x5a88b0=_0x1c5753['createTableWalker'](_0x2ac773,{'startRow':0x0,'column':_0x38a201,'includeAllSlots':!0x1}),_0x546347=Array['from'](_0x5a88b0)['map'](_0x4fb5cc=>_0x3da183['createRangeOn'](_0x4fb5cc['cell']));_0x3d75b5['markMultiRangeInsertion'](_0x546347,'tableColumn');});});}for(const _0x31f5e8 of['removeTableRow','removeTableColumn']){const _0x4f3d69=_0x31f5e8['substr'](0xb),_0x5402da=_0x4f3d69['toLowerCase'](),_0x158840=_0x5402da['substr'](0x0,0x3)+'span',_0x5d1610='table'+_0x4f3d69,_0x20bedd='min'+_0x4f3d69,_0x57ef09='max'+_0x4f3d69;_0x3d75b5['enableCommand'](_0x31f5e8,()=>{_0xce5698['model']['change'](_0x4ff278=>{const _0xca1acd=_0x1c5753['getSelectionAffectedTableCells'](_0x4c4ebb),_0x15235e=_0xca1acd[0x0]['findAncestor']('table');let _0x1b8b1d;if('removeTableRow'==_0x31f5e8){const _0x30d72f=_0x1c5753['getRowIndexes'](_0xca1acd);_0x1b8b1d={'startRow':_0x30d72f['first'],'endRow':_0x30d72f['last'],'includeAllSlots':!0x0};}else{const _0x13d072=_0x1c5753['getColumnIndexes'](_0xca1acd);_0x1b8b1d={'startColumn':_0x13d072['first'],'endColumn':_0x13d072['last'],'includeAllSlots':!0x0};}const _0x604bad=_0x1c5753['createTableWalker'](_0x15235e,_0x1b8b1d),_0x21c59e=Array['from'](_0x604bad)['map'](({cell:_0x4d8e7b})=>_0x4d8e7b),_0x508573=Ee(_0x21c59e['filter'](_0x2e7850=>_0x2e7850['hasAttribute'](_0x158840))),_0x37220b=Ee(_0x21c59e['filter'](_0x3f2a38=>!_0x3f2a38['hasAttribute'](_0x158840)))['map'](_0x3125fa=>_0x4ff278['createRangeOn'](_0x3125fa)),_0x5f03b9=_0x3d75b5['markMultiRangeDeletion'](_0x37220b,_0x5d1610);if(_0x5f03b9&&('tableRow'==_0x5f03b9['subType']||'tableColumn'==_0x5f03b9['subType'])){const _0x3e707c=this['_getSuggestionCoords'](_0x5f03b9);for(const _0x987948 of _0x508573){const _0x326063=_0x4ff278['createRangeOn'](_0x987948),_0x196f3d=_0x1c5753['getCellLocation'](_0x987948),_0x3c239f=_0x987948['getAttribute'](_0x158840)-0x1,_0x1a2cb6=_0x3e707c[_0x20bedd],_0x2f31e7=_0x3e707c[_0x57ef09];_0x1a2cb6<=_0x196f3d[_0x5402da]&&_0x196f3d[_0x5402da]+_0x3c239f<=_0x2f31e7&&_0x5f03b9['addRange'](_0x326063);}}});});}function _0x5f50b4(_0x53dd01){const _0x22cb9e=Array['from'](_0x4c4ebb['getRanges']())['map'](_0xfcddf7=>_0x27f355['fromRange'](_0xfcddf7));_0xce5698['model']['change'](_0x576ee7=>{const _0xc6a125=_0x576ee7['batch'];_0x53dd01=_0x53dd01['filter'](_0x1dfd39=>'$graveyard'!=_0x1dfd39['root']['rootName']),_0x576ee7['setSelection'](_0x53dd01),_0xce5698['commands']['get']('removeTableRow')['refresh'](),_0xce5698['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xce5698['model']['enqueueChange'](()=>{_0xce5698['model']['enqueueChange'](_0xc6a125,_0x315ac2=>{const _0x3cbe1a=_0x22cb9e['filter'](_0x1eea8f=>'$graveyard'!=_0x1eea8f['root']['rootName']);_0x3cbe1a['length']>0x0&&_0x315ac2['setSelection'](_0x3cbe1a);for(const _0xfcd839 of _0x22cb9e)_0xfcd839['detach']();});});});}function _0xe95af8(_0x4eae9e){_0xce5698['model']['change'](_0x1a10e5=>{const _0x1da69d=Array['from'](_0x4c4ebb['getRanges']())['map'](_0x20fce5=>_0x27f355['fromRange'](_0x20fce5)),_0x4e0dca=[];for(const _0x255994 of _0x4eae9e)for(const _0x470c47 of _0x255994['getItems']({'shallow':!0x0}))_0x4e0dca['push'](_0x470c47);for(const _0x9ea894 of _0x4e0dca)'$graveyard'!=_0x9ea894['root']['rootName']&&(_0x1a10e5['setSelection'](_0x1a10e5['createPositionAt'](_0x9ea894,0x0)),_0xce5698['commands']['get']('removeTableColumn')['refresh'](),_0xce5698['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4bd8b5=_0x1da69d['filter'](_0x202e2f=>'$graveyard'!=_0x202e2f['root']['rootName']);_0x4bd8b5['length']>0x0&&_0x1a10e5['setSelection'](_0x4bd8b5);for(const _0x462c5b of _0x1da69d)_0x462c5b['detach']();});}function _0x211f64(_0x58b7bc,_0x16c52d){return _0x16c52d['every'](_0x93b58a=>_0x58b7bc['some'](_0x4a2587=>_0x4a2587['end']['isEqual'](_0x93b58a['start'])||_0x93b58a['end']['isEqual'](_0x4a2587['start'])));}function _0x563f44(_0x443e36,_0x565d83){return!_0x443e36['some'](_0x5e3a93=>_0x565d83['some'](_0x17441b=>_0x5e3a93['isIntersecting'](_0x17441b)))&&_0x443e36['some'](_0x249da6=>_0x565d83['some'](_0x27b421=>_0x249da6['end']['isTouching'](_0x27b421['start'])));}_0xce5698['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21c972,_0x2c9ead,_0x3f9199)=>{if(!_0x3f9199['options']['showSuggestionHighlights'])return;const _0x5506a1=_0x2c9ead['item'];if(!_0x5506a1)return;const _0x168f71=_0x3f9199['mapper']['toViewElement'](_0x5506a1);function _0x29d3a7(_0x290336){return Array['isArray'](_0x290336)?_0x290336:[_0x290336];}_0x168f71&&'tableCell'===_0x5506a1['name']&&_0x39ca62(_0x168f71,_0x3f9199['writer'],(_0x514927,_0x222db6,_0x15e689)=>_0x15e689['addClass'](_0x29d3a7(_0x222db6['classes']),_0x514927),(_0x249e27,_0x5e9bd5,_0x34429b)=>_0x34429b['removeClass'](_0x29d3a7(_0x5e9bd5['classes']),_0x249e27));},{'priority':'highest'}),_0x3d75b5['descriptionFactory']['registerDescriptionCallback'](_0x57cf30=>{if('insertion'!=_0x57cf30['type']&&'deletion'!=_0x57cf30['type'])return;const _0x3375eb=_0x57cf30['getContainedElement']();if(null!=_0x3375eb&&_0x3375eb['is']('element','table')){if('insertion'==_0x57cf30['type']){const _0x1484fb=_0x57cf30['getItems']()['filter'](_0x35637f=>_0x35637f['is']('$textProxy'))['map'](_0x5c040e=>_0x5c040e['data']);if(_0x1484fb['length'])return{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1484fb['join']('\x20')+'\x22'))};}if('deletion'==_0x57cf30['type']){const _0x1cd8b2=_0x57cf30['getItems']()['filter'](_0xba8dd8=>_0xba8dd8['is']('$textProxy'))['map'](_0x5a2fb2=>_0x5a2fb2['data']);if(_0x1cd8b2['length'])return{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cd8b2['join']('\x20')+'\x22'))};}}}),_0x3d75b5['descriptionFactory']['registerDescriptionCallback'](_0x520519=>{if('tableRow'==_0x520519['subType']){const _0x4c9c11=_0x520519['getItems']()['filter'](_0x5acf9a=>_0x5acf9a['is']('$textProxy'))['map'](_0xdb808e=>_0xdb808e['data']),_0x53aee9=this['_getSuggestionCoords'](_0x520519),_0x319948=_0x53aee9['maxRow']-_0x53aee9['minRow']+0x1;if('insertion'==_0x520519['type'])return _0x4c9c11['length']?{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x319948,'\x22'+_0x4c9c11['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW',_0x319948))};if('deletion'==_0x520519['type'])return _0x4c9c11['length']?{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x319948,'\x22'+_0x4c9c11['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW',_0x319948))};}if('tableColumn'==_0x520519['subType']){const _0x5af534=_0x520519['getItems']()['filter'](_0x4243b1=>_0x4243b1['is']('$textProxy'))['map'](_0x5a3e7d=>_0x5a3e7d['data']),_0x59611d=this['_getSuggestionCoords'](_0x520519),_0x4d63f6=_0x59611d['maxColumn']-_0x59611d['minColumn']+0x1;if('insertion'==_0x520519['type'])return _0x5af534['length']?{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d63f6,'\x22'+_0x5af534['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN',_0x4d63f6))};if('deletion'==_0x520519['type'])return _0x5af534['length']?{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d63f6,'\x22'+_0x5af534['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN',_0x4d63f6))};}}),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5f50b4),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5f50b4),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe95af8),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe95af8),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x211f64),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x211f64),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x563f44),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x563f44);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4cd173=this['editor'],_0x557761=_0x4cd173['model']['document']['selection'];return(_0x2168cd,_0x34119a)=>{_0x4cd173['model']['change'](_0x45b478=>{const {commandName:_0x53f324,commandParams:_0x581a1c}=_0x34119a;let _0x4b7bc2=_0x2168cd[0x0]['end']['nodeBefore'];_0x581a1c&&_0x581a1c[0x0]&&!0x1===_0x581a1c[0x0]['forceValue']&&(_0x4b7bc2=_0x2168cd[0x0]['start']['nodeAfter']);const _0x26428e=_0x45b478['createRangeIn'](_0x4b7bc2);if('$graveyard'==_0x26428e['root']['rootName'])return;const _0x48232f=Array['from'](_0x557761['getRanges']())['map'](_0x107640=>_0x27f355['fromRange'](_0x107640));_0x45b478['setSelection'](_0x26428e),_0x4cd173['commands']['get'](_0x53f324)['refresh'](),_0x581a1c['push']({'forceDefaultExecution':!0x0}),_0x4cd173['execute'](_0x53f324,..._0x581a1c);const _0x27c1de=_0x48232f['filter'](_0x52360a=>'$graveyard'!=_0x52360a['root']['rootName']);_0x27c1de['length']>0x0&&_0x45b478['setSelection'](_0x27c1de);for(const _0x20b478 of _0x48232f)_0x20b478['detach']();});};}['_getCoordsForCells'](_0x15786c){const _0x1eb783=this['editor']['plugins']['get']('TableUtils');let _0x3ff36a=Number['MAX_SAFE_INTEGER'],_0x43e1ab=Number['MIN_SAFE_INTEGER'],_0x6b293f=Number['MAX_SAFE_INTEGER'],_0x425e3d=Number['MIN_SAFE_INTEGER'];for(const _0x2d3821 of _0x15786c){if('$graveyard'==_0x2d3821['root']['rootName'])continue;const {row:_0x564135,column:_0x4a8362}=_0x1eb783['getCellLocation'](_0x2d3821),_0x5e8927=_0x2d3821['hasAttribute']('rowspan')?_0x2d3821['getAttribute']('rowspan')-0x1:0x0,_0x26b7bc=_0x2d3821['hasAttribute']('colspan')?_0x2d3821['getAttribute']('colspan')-0x1:0x0;_0x3ff36a=_0x564135<_0x3ff36a?_0x564135:_0x3ff36a,_0x43e1ab=_0x564135+_0x5e8927>_0x43e1ab?_0x564135+_0x5e8927:_0x43e1ab,_0x6b293f=_0x4a8362<_0x6b293f?_0x4a8362:_0x6b293f,_0x425e3d=_0x4a8362+_0x26b7bc>_0x425e3d?_0x4a8362+_0x26b7bc:_0x425e3d;}return{'minRow':_0x3ff36a,'maxRow':_0x43e1ab,'minColumn':_0x6b293f,'maxColumn':_0x425e3d};}['_setupColumnsRowsFixing'](){const _0xe899b0=this['editor'],_0xcc3a45=_0xe899b0['plugins']['get']('TrackChangesEditing'),_0x5e5519=_0xe899b0['plugins']['get']('TableUtils');_0xe899b0['model']['document']['on']('change:data',()=>{const _0x4a8db4=Array['from'](_0xe899b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18169c,data:_0xe2b605}of _0x4a8db4){const {group:_0x46d8c3,id:_0x14d232,subType:_0x1f14b3}=_0xcc3a45['_splitMarkerName'](_0x18169c);if('suggestion'!=_0x46d8c3)continue;if(null!=_0xe2b605['oldRange'])continue;const _0x514e82=_0xcc3a45['getSuggestion'](_0x14d232);this['_tablePostFixingSubtypes']['includes'](_0x1f14b3)&&this['_tableSuggestions']['add'](_0x514e82);}},{'priority':'low'});const _0x418beb=(_0x3915e2,_0x467dbc)=>{let _0x23882d=!0x1;const _0x56db11=_0x467dbc['createRangeOn'](_0x3915e2),_0x24f751=_0x3915e2['findAncestor']('table'),_0x166a55=_0x5e5519['getCellLocation'](_0x3915e2);for(const _0x3038e5 of this['_tableSuggestions']){const _0x119f25=_0x3038e5['subType'],_0x28f3c9=_0x119f25['startsWith']('tablePaste'),_0x15cee1=_0x119f25['substr'](_0x28f3c9?0xa:0x5),_0x47af82=_0x15cee1['toLowerCase'](),_0x30da36=_0x47af82['substr'](0x0,0x3)+'span',_0x58cf34='min'+_0x15cee1,_0x5858be='max'+_0x15cee1;if(!_0x3038e5['isInContent'])continue;if(_0x24f751!=_0x3038e5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3038e5['isIntersectingWithRange'](_0x56db11))continue;const _0x3c91e8=_0x3915e2['hasAttribute'](_0x30da36)?_0x3915e2['getAttribute'](_0x30da36)-0x1:0x0,_0xc709fe=this['_getSuggestionCoords'](_0x3038e5),_0x5e2713=_0xc709fe[_0x58cf34],_0x1884d5=_0xc709fe[_0x5858be];_0x5e2713<=_0x166a55[_0x47af82]&&_0x166a55[_0x47af82]+_0x3c91e8<=_0x1884d5&&(_0x3038e5['addRange'](_0x56db11),_0x23882d=!0x0);}return _0x23882d;};_0xe899b0['model']['document']['registerPostFixer'](_0xf20b77=>{let _0x3e7af4=!0x1;for(const _0x3f4f7a of _0xe899b0['model']['document']['differ']['getChanges']())if('insert'==_0x3f4f7a['type']){if('tableRow'==_0x3f4f7a['name']){for(const _0x532e91 of _0x3f4f7a['position']['nodeAfter']['getChildren']())_0x3e7af4=_0x3e7af4||_0x418beb(_0x532e91,_0xf20b77);}else'tableCell'==_0x3f4f7a['name']&&(_0x3e7af4=_0x3e7af4||_0x418beb(_0x3f4f7a['position']['nodeAfter'],_0xf20b77));}return _0x3e7af4;});}['_getSuggestionCoords'](_0x43d35f){return this['_getCoordsForCells'](_0x43d35f['getRanges']()['map'](_0x2f32e0=>_0x2f32e0['start']['nodeAfter']));}}function Ee(_0x4a97e9){return Array['from'](new Set(_0x4a97e9)['values']());}class St extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0xa57dc8=this['editor'],_0x4aa67e=_0xa57dc8['model']['document']['selection'],_0x5dd79e=_0xa57dc8['locale'];if(!_0xa57dc8['plugins']['has']('TableEditing'))return;const _0x50cdb8=_0xa57dc8['plugins']['get']('TrackChangesEditing'),_0x458683=_0xa57dc8['plugins']['get']('TableUtils'),_0x375d7c=_0xa57dc8['plugins']['get'](jt);_0x375d7c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x50cdb8['enableCommand']('mergeTableCells',()=>{const _0x10a887=_0x458683['getSelectionAffectedTableCells'](_0xa57dc8['model']['document']['selection']);_0xa57dc8['model']['change'](()=>{_0x50cdb8['markMultiRangeBlockFormat'](_0x10a887,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa57dc8['commands']['get']('mergeTableCells')['on']('execute',(_0x11b38a,_0x3af3b3)=>{_0xa57dc8['commands']['get']('trackChanges')['value']&&(_0x3af3b3['length']>0x0&&_0x3af3b3[_0x3af3b3['length']-0x1]&&_0x3af3b3[_0x3af3b3['length']-0x1]['forceDefaultExecution']||_0x50cdb8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11b38a['stop']());},{'priority':'highest'});for(const _0x51ad0e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x8a3a0b=_0xa57dc8['commands']['get'](_0x51ad0e);_0x50cdb8['enableCommand'](_0x51ad0e,()=>{const _0xe69b15=_0xa57dc8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x509742=>_0x509742['is']('element','tableCell')),_0x3bf069=_0x8a3a0b['value'];_0xa57dc8['model']['change'](()=>{_0x50cdb8['markMultiRangeBlockFormat']([_0xe69b15,_0x3bf069],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2322b4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x11a298=_0xa57dc8['commands']['get'](_0x2322b4);_0x50cdb8['enableCommand'](_0x2322b4,()=>{const _0x4dff22=_0x458683['getSelectionAffectedTableCells'](_0xa57dc8['model']['document']['selection'])[0x0],_0x386174=_0x4dff22['findAncestor']('table'),{column:_0x230f74,row:_0x343091}=_0x458683['getCellLocation'](_0x4dff22);let _0x5b815c=[];if('horizontally'==_0x11a298['direction']){const _0x3506b7=_0x458683['createTableWalker'](_0x386174,{'startRow':_0x343091,'endRow':_0x343091,'includeAllSlots':!0x0});_0x5b815c=Array['from'](_0x3506b7)['map'](_0x4f34f3=>_0x4f34f3['cell']);}else{const _0x43bfdd=_0x458683['createTableWalker'](_0x386174,{'column':_0x230f74,'includeAllSlots':!0x0});_0x5b815c=Array['from'](_0x43bfdd)['map'](_0x5349ff=>_0x5349ff['cell']);}_0xa57dc8['model']['change'](_0x2c89ca=>{_0x50cdb8['markBlockFormat'](_0x2c89ca['createRangeOn'](_0x4dff22),{'commandName':_0x2322b4,'commandParams':[]},_0x5b815c,_0x2322b4);});});}_0x50cdb8['descriptionFactory']['registerDescriptionCallback'](_0x4599cf=>{if('formatBlock'!=_0x4599cf['type']&&'formatInline'!=_0x4599cf['type'])return;const {data:_0x4f63eb}=_0x4599cf;return _0x4f63eb&&'mergeTableCells'==_0x4f63eb['commandName']?{'type':'format','content':o(_0x5dd79e,'*Merge\x20cells*')}:void 0x0;}),_0x50cdb8['descriptionFactory']['registerDescriptionCallback'](_0x26deff=>{if('formatBlock'!=_0x26deff['type']&&'formatInline'!=_0x26deff['type'])return;const {data:_0x46df8f}=_0x26deff;return _0x46df8f?'splitTableCellVertically'==_0x46df8f['commandName']?{'type':'format','content':o(_0x5dd79e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x46df8f['commandName']?{'type':'format','content':o(_0x5dd79e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1acb11=_0x375d7c['_acceptFormatSuggestionCallbackFactory']();for(const _0x4024de of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x50cdb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4024de,'accept',_0x1acb11);for(const _0x407efc of['splitTableCellVertically','splitTableCellHorizontally'])_0x50cdb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x407efc,'accept',_0x1acb11);_0x50cdb8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4cd720=>{_0xa57dc8['model']['change'](_0x47a560=>{const _0x31a032=Array['from'](_0x4aa67e['getRanges']())['map'](_0x12c837=>_0x27f355['fromRange'](_0x12c837));_0x47a560['setSelection'](_0x4cd720),_0xa57dc8['commands']['get']('mergeTableCells')['refresh'](),_0xa57dc8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2cd2eb=_0x31a032['filter'](_0x26a290=>'$graveyard'!=_0x26a290['root']['rootName']);_0x2cd2eb['length']>0x0&&_0x47a560['setSelection'](_0x2cd2eb);for(const _0x56bc5e of _0x31a032)_0x56bc5e['detach']();});});for(const _0x5eca31 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x540cc4=_0xa57dc8['commands']['get'](_0x5eca31);_0x540cc4['on']('set:isEnabled',(_0x303828,_0x666e62,_0x1d1734)=>{if(_0x1d1734){const _0x2e360b=_0xa57dc8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57a3f6=>_0x57a3f6['is']('element','tableCell'));this['_areMergableCells'](_0x540cc4['value'],_0x2e360b)||(_0x303828['return']=!0x1,_0x303828['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54ce25=this['editor']['commands']['get']('mergeTableCells'),_0x9fdb6=this['editor']['plugins']['get']('TableUtils');if(!_0x54ce25['isEnabled'])return!0x1;const _0x1ae64e=_0x9fdb6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a8c34 of _0x1ae64e)for(const _0x2e391e of _0x1ae64e)if(_0x1a8c34!=_0x2e391e&&!this['_areMergableCells'](_0x1a8c34,_0x2e391e))return!0x1;return!0x0;}['_areMergableCells'](_0x26ccdc,_0x5054ce){const _0x31be13=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf03b=this['editor']['model']['createRangeOn'](_0x26ccdc),_0x2b57be=this['editor']['model']['createRangeOn'](_0x5054ce),_0x43c74b=new Set(),_0x167d46=new Set();for(const _0x4b70d6 of _0x31be13['getSuggestions']())if(('insertion'==_0x4b70d6['type']||'deletion'==_0x4b70d6['type']||'mergeTableCells'==_0x4b70d6['subType'])&&_0x4b70d6['isInContent']){for(const _0x26cd7d of _0x4b70d6['getRanges']())_0x26cd7d['containsRange'](_0x3cf03b,!0x0)&&_0x43c74b['add'](_0x4b70d6['type']+':'+_0x4b70d6['author']['id']),_0x26cd7d['containsRange'](_0x2b57be,!0x0)&&_0x167d46['add'](_0x4b70d6['type']+':'+_0x4b70d6['author']['id']);}if(_0x43c74b['size']!=_0x167d46['size'])return!0x1;for(const _0x1cc189 of _0x43c74b)if(!_0x167d46['has'](_0x1cc189))return!0x1;return!0x0;}}class At extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0x591c23=this['editor'];if(!_0x591c23['plugins']['has']('TableEditing'))return;const _0x5d9cbe=_0x591c23['locale'],_0x14d7d8=_0x591c23['plugins']['get']('TrackChangesEditing');_0x14d7d8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14d7d8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14d7d8['registerBlockAttribute']('headingRows'),_0x14d7d8['registerBlockAttribute']('headingColumns'),_0x14d7d8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d9cbe,'FORMAT_HEADER_ROW')),_0x14d7d8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d9cbe,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54d5cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35f03e=this['editor']['plugins']['get']('TableUtils'),_0x271799=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x22c9db({showActiveMarker:_0x302846=!0x0,setDataAttribute:_0x3f63a4=!0x0}={}){return(_0x241d72,_0x4a4f82,_0x251400)=>{const {type:_0x483f64,id:_0x1dc989}=_0x54d5cc['_splitMarkerName'](_0x4a4f82['markerName']),_0x3a817b=_0x54d5cc['getSuggestion'](_0x1dc989),_0x415f1a=_0x3a817b['data'];if('formatBlock'!=_0x3a817b['type']||!_0x415f1a||'setTableColumnHeader'!=_0x415f1a['commandName'])return;if(_0x4a4f82['item'])return void _0x241d72['stop']();if(!_0x251400['consumable']['consume'](_0x4a4f82['markerRange'],_0x241d72['name']))return;const _0x32d570=_0x4a4f82['markerRange']['start']['nodeAfter'],_0x20a22c=_0x4a4f82['markerRange']['end']['nodeBefore'],_0x27f732=_0x32d570['parent']['parent'],{column:_0x49e238}=_0x35f03e['getCellLocation'](_0x32d570),{column:_0x589bd8}=_0x35f03e['getCellLocation'](_0x20a22c);for(let _0x2aaed1=_0x49e238;_0x2aaed1<=_0x589bd8;_0x2aaed1++){const _0x4f5b23=_0x35f03e['createTableWalker'](_0x27f732,{'column':_0x2aaed1,'includeAllSlots':!0x1});for(const _0xa43a0 of _0x4f5b23){const _0x354c40=_0xa43a0['cell'],_0x12f4b8=_0x251400['mapper']['toViewElement'](_0x354c40);_0x251400['writer']['addClass']('ck-suggestion-marker-'+_0x483f64,_0x12f4b8),_0x3f63a4&&_0x251400['writer']['setAttribute']('data-suggestion',_0x1dc989,_0x12f4b8),_0x251400['mapper']['bindElementToMarker'](_0x12f4b8,_0x4a4f82['markerName']),_0x302846&&(_0x54d5cc['activeMarkers']['includes'](_0x4a4f82['markerName'])?_0x251400['writer']['addClass']('ck-suggestion-marker--active',_0x12f4b8):_0x251400['writer']['removeClass']('ck-suggestion-marker--active',_0x12f4b8));}}};}_0x54d5cc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x271799),_0x54d5cc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x271799),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x22c9db(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e8acd,_0x4cb58a,_0x28af9f)=>{_0x28af9f['options']['showSuggestionHighlights']&&_0x22c9db({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e8acd,_0x4cb58a,_0x28af9f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2889e1,_0x5071c6,_0x41c78d)=>{const {type:_0x38d66d,id:_0x40a23c}=_0x54d5cc['_splitMarkerName'](_0x5071c6['markerName']),_0x463307=_0x54d5cc['getSuggestion'](_0x40a23c),_0x52d8f0=_0x463307['data'];if('formatBlock'!=_0x463307['type']||!_0x52d8f0||'setTableColumnHeader'!=_0x52d8f0['commandName'])return;const _0x158e91=_0x41c78d['mapper']['markerNameToElements'](_0x5071c6['markerName']);if(_0x158e91){for(const _0x53c96c of _0x158e91)_0x41c78d['writer']['removeClass']('ck-suggestion-marker-'+_0x38d66d,_0x53c96c),_0x41c78d['writer']['removeClass']('ck-suggestion-marker--active',_0x53c96c),_0x41c78d['writer']['removeAttribute']('data-suggestion',_0x53c96c),_0x41c78d['mapper']['unbindElementFromMarkerName'](_0x53c96c,_0x5071c6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea230=this['editor'],_0xab870f=_0x1ea230['locale'];function _0x524b12(_0x52d836){return{'type':'format','content':o(_0xab870f,'*Format:*\x20%0',_0x52d836)};}_0x1ea230['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd564=>{if('formatBlock'!=_0x1dd564['type'])return;const {data:_0x226905}=_0x1dd564;if(_0x226905){if('setTableRowHeader'==_0x226905['commandName']){const _0x5b6d78=_0x226905['commandParams'][0x0]['forceValue'];return _0x524b12(o(_0xab870f,_0x5b6d78?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x226905['commandName']){const _0x44a516=_0x226905['commandParams'][0x0]['forceValue'];return _0x524b12(o(_0xab870f,_0x44a516?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x177f48=>[_0x177f48,null]));class It extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0x23d0f8=this['editor'];if(!_0x23d0f8['plugins']['has']('TableClipboard'))return;const _0x4b5562=_0x23d0f8['plugins']['get']('TrackChangesEditing'),_0x44df5b=_0x23d0f8['plugins']['get']('TableUtils'),_0x2d27b7=_0x23d0f8['plugins']['get'](jt),_0x4ffd02=_0x23d0f8['plugins']['get']('TableClipboard');_0x2d27b7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x23d0f8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x23d0f8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x8f05c8=null;_0x23d0f8['model']['on']('insertContent',(_0x526452,_0x1b3ed5)=>{const [_0x5b0711,_0x52510d]=_0x1b3ed5,_0x215096=_0x1b3ed5[_0x1b3ed5['length']-0x1];_0x215096&&_0x215096['forceDefaultExecution']||_0x4b5562['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x412104,_0x2434d7,_0x75694,_0x3d7745,_0x5fbfd1){if(_0x2434d7&&!_0x2434d7['is']('documentSelection'))return!0x1;const _0x5d9b0a=_0x5fbfd1['getTableIfOnlyTableInContent'](_0x412104,_0x75694);if(!_0x5d9b0a||!he(_0x5d9b0a,void 0x0,_0x3d7745))return!0x1;const _0x48660f=_0x3d7745['getSelectionAffectedTableCells'](_0x75694['document']['selection']);if(!_0x48660f['length'])return!0x1;const _0x4cb51a=_0x48660f[0x0]['findAncestor']('table'),_0x1e86d9=_0x3d7745['getRowIndexes'](_0x48660f),_0x5deb7a=_0x3d7745['getColumnIndexes'](_0x48660f),_0x1281f5={'startRow':_0x1e86d9['first'],'endRow':_0x1e86d9['last'],'startColumn':_0x5deb7a['first'],'endColumn':_0x5deb7a['last']};return 0x1==_0x48660f['length']&&(_0x1281f5['endRow']+=_0x3d7745['getRows'](_0x5d9b0a)-0x1,_0x1281f5['endColumn']+=_0x3d7745['getColumns'](_0x5d9b0a)-0x1),he(_0x4cb51a,_0x1281f5,_0x3d7745);}(_0x5b0711,_0x52510d,_0x23d0f8['model'],_0x44df5b,_0x4ffd02)&&(_0x526452['stop'](),_0x8f05c8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x23d0f8['model']['change'](()=>{_0x23d0f8['model']['insertContent'](_0x1b3ed5[0x0],_0x1b3ed5[0x1],_0x1b3ed5[0x2],{'forceDefaultExecution':!0x0});const _0x1b6022=_0x3cefaa(),{rowInsertionRanges:_0x15affb,columnInsertionRanges:_0x2df1ff,insertionRanges:_0x32bdc6,deletionRanges:_0x4e2bb0,cells:_0x201e9b}=_0x8f05c8;_0x15affb['length']&&_0x4b5562['markMultiRangeInsertion'](_0x15affb,'tablePasteRow',{'tablePasteChainId':_0x1b6022}),_0x2df1ff['length']&&_0x4b5562['markMultiRangeInsertion'](_0x2df1ff,'tablePasteColumn',{'tablePasteChainId':_0x1b6022}),_0x32bdc6['length']&&(_0x4b5562['markMultiRangeInsertion'](_0x32bdc6,'tablePaste',{'tablePasteChainId':_0x1b6022,'skipNestingCheck':!0x0}),_0x32bdc6['forEach'](_0x17d5a8=>_0x17d5a8['detach']?.())),_0x4e2bb0['length']&&(_0x4b5562['markMultiRangeDeletion'](_0x4e2bb0,'tablePaste',{'tablePasteChainId':_0x1b6022,'skipNestingCheck':!0x0}),_0x4e2bb0['forEach'](_0x157812=>_0x157812['detach']?.()));const _0x6b6f09=_0x4b5562['markMultiRangeBlockFormat'](_0x201e9b['map'](({element:_0xd137bf})=>_0xd137bf),{'formatGroupId':_0x3cefaa()},[],'tablePasteCell',{'tablePasteChainId':_0x1b6022});if(_0x6b6f09){const _0x467db3=_0x6b6f09['getMarkers'](),_0x5038f1=[];for(const {element:_0x5f20c4,attributes:_0x48c0ef}of _0x201e9b){if(!_0x48c0ef)continue;const _0x47a0a0=_0x23d0f8['model']['createRangeOn'](_0x5f20c4),_0x5b7b2c=_0x467db3['find'](_0x471956=>_0x471956['getRange']()['isEqual'](_0x47a0a0));_0x5b7b2c&&_0x5038f1['push']([_0x5b7b2c['name'],_0x48c0ef]);}_0x5038f1['length']&&_0x6b6f09['setAttribute']('markerAttributes',Object['fromEntries'](_0x5038f1));}_0x8f05c8=null;}));},{'priority':_0x36e7bf['high']+0xa}),_0x23d0f8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb0f0e9,_0x321479)=>{const [_0x4b455f,_0x328b6f,,_0x3ac992]=_0x321479;if(!_0x8f05c8)return;_0xb0f0e9['stop']();const _0x2023ee=_0x4b455f['cell'],_0x4ee1a3=_0x328b6f,_0x294aac=Pe(_0x2023ee),_0x1c725b=Pe(_0x4ee1a3);_0xb0f0e9['return']=_0x2023ee;let _0x1c8f68=null,_0x3eb113=null;if(_0x1c725b||_0x294aac){if(_0x294aac&&!_0x1c725b){_0x3ac992['remove'](_0x2023ee['getChild'](0x0));for(const _0x5e9578 of Array['from'](_0x4ee1a3['getChildren']()))_0x3ac992['insert'](_0x5e9578,_0x2023ee,'end');const _0x2e872c=_0x8f05c8['rowInsertionIndexes']['includes'](_0x4b455f['row']),_0x4c4106=_0x8f05c8['columnInsertionIndexes']['includes'](_0x4b455f['column']);_0x2e872c||_0x4c4106||(_0x1c8f68=_0x27f355['fromRange'](_0x3ac992['createRangeIn'](_0x2023ee)));}else _0x1c725b&&!_0x294aac&&(_0x3eb113=_0x3ac992['createRangeIn'](_0x2023ee));}else{const _0x222049=_0x3ac992['createElement']('tableCellSuggestion'),_0x549058=_0x3ac992['createElement']('tableCellSuggestion');_0x3ac992['wrap'](_0x3ac992['createRangeIn'](_0x2023ee),_0x549058),_0x3ac992['insert'](_0x222049,_0x2023ee,0x0);for(const _0x1fe73c of Array['from'](_0x4ee1a3['getChildren']()))_0x3ac992['insert'](_0x1fe73c,_0x222049,'end');_0x1c8f68=_0x27f355['fromRange'](_0x3ac992['createRangeOn'](_0x222049)),_0x3eb113=_0x27f355['fromRange'](_0x3ac992['createRangeOn'](_0x549058));}const _0x7ce794=Array['from'](_0x4ee1a3['getAttributes']())['filter'](([_0x5d3d35])=>ge['includes'](_0x5d3d35));_0x8f05c8['cells']['push']({'element':_0x2023ee,'attributes':_0x7ce794['length']?Object['fromEntries'](_0x7ce794):null}),_0x1c8f68&&_0x8f05c8['insertionRanges']['push'](_0x1c8f68),_0x3eb113&&_0x8f05c8['deletionRanges']['push'](_0x3eb113);},{'priority':'high'}),_0x44df5b['on']('insertColumns',(_0x1bf1ff,_0x2df110)=>{const [_0x28e519,_0x14b291={}]=_0x2df110;if(!_0x8f05c8)return;const _0x470472=_0x14b291['at']||0x0,_0x25bd36=_0x14b291['columns']||0x1;_0x8f05c8['columnInsertionIndexes']=new Array(_0x25bd36)['fill'](_0x470472)['map']((_0x487e0b,_0x41aa95)=>_0x487e0b+_0x41aa95);for(const {cell:_0x5f3627}of _0x44df5b['createTableWalker'](_0x28e519,{'startColumn':_0x470472,'endColumn':_0x470472+_0x25bd36-0x1}))_0x8f05c8['columnInsertionRanges']['push'](_0x23d0f8['model']['createRangeOn'](_0x5f3627));},{'priority':'low'}),_0x44df5b['on']('insertRows',(_0x591d26,_0x16d699)=>{const [_0x41ee2e,_0x2e0a59={}]=_0x16d699;if(!_0x8f05c8)return;const _0x24a86a=_0x2e0a59['at']||0x0,_0x5cadf3=_0x2e0a59['rows']||0x1;_0x8f05c8['rowInsertionIndexes']=new Array(_0x5cadf3)['fill'](_0x24a86a)['map']((_0x47c739,_0x3bec4d)=>_0x47c739+_0x3bec4d);for(const {cell:_0x28c538}of _0x44df5b['createTableWalker'](_0x41ee2e,{'startRow':_0x24a86a,'endRow':_0x24a86a+_0x5cadf3-0x1}))_0x8f05c8['rowInsertionRanges']['push'](_0x23d0f8['model']['createRangeOn'](_0x28c538));},{'priority':'low'}),_0x4b5562['descriptionFactory']['registerDescriptionCallback'](_0x20970a=>{if(_0x20970a['subType']&&_0x20970a['subType']['startsWith']('tablePaste'))return _0x20970a['previous']?{}:{'type':'insertion','content':o(_0x23d0f8['locale'],'*Replace\x20table\x20cells*')};});const _0x7bd82b=()=>!0x1;for(const _0x42d743 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b5562['_suggestionFactory']['registerCustomCallback']('insertion',_0x42d743,'join',_0x7bd82b),_0x4b5562['_suggestionFactory']['registerCustomCallback']('deletion',_0x42d743,'join',_0x7bd82b),_0x4b5562['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42d743,'join',_0x7bd82b);_0x4b5562['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x7bd82b),_0x4b5562['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd2e270,_0x411858,_0x4f3e5f)=>{const _0x1e4c08=_0xd2e270['map'](_0x2c2fe6=>_0x2c2fe6['getContainedElement']())['filter'](_0x402186=>_0x402186),_0x36f335=new Map(_0x1e4c08['map'](_0x45f81e=>[_0x45f81e,null]));if(_0x8f05c8){for(const {element:_0x4e9840,attributes:_0xd3eb25}of _0x8f05c8['cells'])_0xd3eb25&&_0x36f335['set'](_0x4e9840,_0xd3eb25);}else{if(_0x4f3e5f&&_0x4f3e5f['markerAttributes'])for(const [_0x3205db,_0x33f41d]of Object['entries'](_0x4f3e5f['markerAttributes'])){const _0x3e1d02=_0x23d0f8['model']['markers']['get'](_0x3205db),_0x1c0fba=_0x3e1d02?_0x3e1d02['getRange']()['getContainedElement']():null;_0x1c0fba&&_0x36f335['set'](_0x1c0fba,_0x33f41d);}}_0x23d0f8['model']['change'](_0x4f1666=>{for(const [_0xb94ef1,_0x134c01]of _0x36f335)_0x4f1666['setAttributes']({...Ce,..._0x134c01},_0xb94ef1);});});const _0x361e49=(_0x4628b1,_0xdc9bd8)=>{_0x4b5562['_suggestionFactory']['registerCustomCallback'](_0x4628b1,'tablePaste',_0xdc9bd8,(_0x133fe0,_0x5f15d0,_0x590a69)=>{_0x23d0f8['model']['change'](_0x1b695e=>{const _0x35d755=[];for(const _0x4ab1a0 of _0x133fe0){const _0x1ca4ea=_0x4ab1a0['start']['nodeAfter'];_0x1ca4ea['is']('element','tableCellSuggestion')&&_0x35d755['push'](_0x1ca4ea);}_0x4b5562['_suggestionFactory']['getSuggestionCallback'](_0x4628b1,null,_0xdc9bd8)(_0x133fe0,_0x5f15d0,_0x590a69);for(const _0x130fbd of _0x35d755)'$graveyard'!=_0x130fbd['root']['rootName']&&_0x1b695e['unwrap'](_0x130fbd);});});};_0x361e49('insertion','accept'),_0x361e49('insertion','discard'),_0x361e49('deletion','accept'),_0x361e49('deletion','discard'),_0x4b5562['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x6fcaec=>{const _0x72318b=_0x6fcaec['map'](_0x48fbfd=>_0x48fbfd['getContainedElement']()),_0x1c7e01=_0x72318b[0x0]['findAncestor']('table'),{minRow:_0x2c957f,maxRow:_0x548921}=_0x2d27b7['_getCoordsForCells'](_0x72318b);_0x44df5b['removeRows'](_0x1c7e01,{'at':_0x2c957f,'rows':_0x548921-_0x2c957f+0x1});}),_0x4b5562['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4ac43f=>{const _0x2213ee=_0x4ac43f['map'](_0x5bb0bb=>_0x5bb0bb['getContainedElement']()),_0x105fd1=_0x2213ee[0x0]['findAncestor']('table'),{minColumn:_0x13e355,maxColumn:_0x596aa8}=_0x2d27b7['_getCoordsForCells'](_0x2213ee);_0x44df5b['removeColumns'](_0x105fd1,{'at':_0x13e355,'columns':_0x596aa8-_0x13e355+0x1});});const _0x2607b1=(_0x5456d1,_0x404792)=>{if(!_0x404792['subType']||!_0x404792['subType']['startsWith']('tablePaste'))return;const _0xba9b1a=_0x404792['attributes']['tablePasteChainId'],_0x53fab5=_0x4b5562['getSuggestions']()['filter'](_0x59c05d=>_0x59c05d['isInContent']&&_0x59c05d['attributes']&&_0x59c05d['attributes']['tablePasteChainId']==_0xba9b1a);_0x53fab5['length']&&_0x404792['getAllAdjacentSuggestions']()['length']!=_0x53fab5['length']&&_0x53fab5['reduce']((_0x1f3413,_0x92275)=>(_0x1f3413['next']=_0x92275,_0x92275['previous']=_0x1f3413,_0x92275));};function _0x5a78e0(_0x1b73c5,_0x4ef2ad=!0x0){const {id:_0x5aabe3}=_0x4b5562['_splitMarkerName'](_0x1b73c5['markerName']),_0x2ddf52=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xc13b18=_0x4b5562['activeMarkers']['includes'](_0x1b73c5['markerName']);return _0xc13b18&&_0x2ddf52['push']('ck-suggestion-marker--active'),{'classes':_0x2ddf52,'attributes':{'data-suggestion':_0x5aabe3},'priority':_0xc13b18&&_0x4ef2ad?0xbc2:0xbb8};}_0x4b5562['on']('suggestionLoaded',_0x2607b1,{'priority':'high'}),_0x4b5562['on']('suggestionUnloaded',_0x2607b1,{'priority':'high'}),_0x23d0f8['model']['document']['registerPostFixer'](()=>{let _0x40b59b=!0x1;const _0x4899b8=Array['from'](_0x23d0f8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c13f0,data:_0x3be5c6}of _0x4899b8){const {group:_0x456609,type:_0x3fb9e1,id:_0x191297}=_0x4b5562['_splitMarkerName'](_0x5c13f0);if('suggestion'!=_0x456609||'deletion'!=_0x3fb9e1||_0x3be5c6['oldRange'])continue;if(!_0x4b5562['hasSuggestion'](_0x191297))continue;const _0x13b58c=_0x4b5562['getSuggestion'](_0x191297)['getRanges'](),_0x3bd836=_0x23d0f8['plugins']['get']('Users')['me'];for(const _0x3ad8bb of _0x4b5562['getSuggestions']()){if(!_0x3ad8bb['isInContent']||_0x3ad8bb['author']!=_0x3bd836)continue;if('formatBlock'!=_0x3ad8bb['type']||'tablePasteCell'!=_0x3ad8bb['subType'])continue;if(_0x3ad8bb['getRanges']()['every'](_0x84f4fb=>_0x13b58c['some'](_0x548b39=>_0x548b39['containsRange'](_0x84f4fb,!0x0)))){for(const _0x159266 of _0x3ad8bb['getAllAdjacentSuggestions']())_0x159266['isInContent']&&(_0x159266['discard'](),_0x40b59b=!0x0);}}}return _0x40b59b;}),_0x23d0f8['model']['document']['registerPostFixer'](_0x23abf3=>{const _0x550500=_0x23d0f8['commands']['get']('redo');if(!_0x550500||!_0x550500['_createdBatches']['has'](_0x23abf3['batch']))return!0x1;let _0x4cf3ef=!0x1;const _0x2d2a89=_0x23d0f8['plugins']['get']('Users')['me'],_0x376a69=_0x23d0f8['model']['document']['differ']['getChanges'](),_0x5ce90c=Array['from'](_0x23d0f8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46e84b,data:_0x587796})=>{const {group:_0x4886b2,subType:_0x526cdf,authorId:_0x1ee515}=_0x4b5562['_splitMarkerName'](_0x46e84b);return'suggestion'==_0x4886b2&&'tablePaste'==_0x526cdf&&_0x1ee515==_0x2d2a89['id']&&!_0x587796['oldRange'];});for(const _0x15d6d7 of _0x376a69){if('insert'!=_0x15d6d7['type']||'tableCellSuggestion'!=_0x15d6d7['name']||0x1!=_0x15d6d7['length'])continue;const _0x2c2b03=_0x23abf3['createRange'](_0x15d6d7['position'],_0x15d6d7['position']['getShiftedBy'](0x1));if(!_0x5ce90c['find'](({data:_0x428b60})=>_0x428b60['newRange']['isEqual'](_0x2c2b03))){for(const {name:_0x19bd1c,data:_0x2bb377}of _0x5ce90c)if(_0x2c2b03['containsRange'](_0x2bb377['newRange'])){_0x23abf3['updateMarker'](_0x19bd1c,{'range':_0x2c2b03}),_0x4cf3ef=!0x0;break;}}}return _0x4cf3ef;}),_0x23d0f8['model']['document']['registerPostFixer'](_0x101d73=>{let _0x312617=!0x1;const _0x1497b3=_0x23d0f8['plugins']['get']('Users')['me'],_0x2c65a8=_0x4b5562['getSuggestions']()['filter'](_0x1aeb09=>_0x1aeb09['isInContent']&&_0x1aeb09['author']==_0x1497b3),_0x18073e=new Set(),_0x357af7=new Set();for(const _0x3cad4e of _0x2c65a8)if('tablePaste'==_0x3cad4e['subType'])for(const _0x2786ee of _0x3cad4e['getMarkers']()){const _0x3a1b70=_0x2786ee['getRange']()['getContainedElement']();if(_0x3a1b70){if(_0x3a1b70['is']('element','tableCellSuggestion')&&Pe(_0x3a1b70)){_0x3cad4e['removeMarker'](_0x2786ee['name']),_0x18073e['add'](_0x3a1b70),_0x312617=!0x0;const _0x3938d5=_0x3a1b70['nextSibling'],_0x48fa61=_0x3a1b70['previousSibling'],_0x389acd=_0x3938d5&&_0x3938d5['is']('element','tableCellSuggestion'),_0x48b1cc=_0x48fa61&&_0x48fa61['is']('element','tableCellSuggestion');_0x389acd&&!_0x18073e['has'](_0x3938d5)&&_0x357af7['add'](_0x3938d5),_0x48b1cc&&!_0x18073e['has'](_0x48fa61)&&_0x357af7['add'](_0x48fa61);}else _0x3a1b70['is']('element','paragraph')&&_0x3a1b70['isEmpty']&&(_0x3cad4e['removeMarker'](_0x2786ee['name']),_0x312617=!0x0);}}else{if('tablePasteCell'==_0x3cad4e['subType']){if(!_0x3cad4e['attributes']||!_0x3cad4e['attributes']['tablePasteChainId'])continue;const _0x53b817=_0x3cad4e['attributes']['markerAttributes'];if(_0x53b817&&Object['keys'](_0x53b817)['length'])continue;const _0x2ab48e=_0x3cad4e['attributes']['tablePasteChainId'];let _0x2bc62d=!0x0,_0xdefd9b=!0x0;for(const _0x1defcb of _0x2c65a8)if(_0x1defcb['subType']&&_0x1defcb['subType']['startsWith']('tablePaste')){if(!_0x1defcb['attributes']['tablePasteChainId']){_0xdefd9b=!0x1;break;}if(_0x1defcb['id']!=_0x3cad4e['id']&&_0x1defcb['attributes']['tablePasteChainId']==_0x2ab48e){_0x2bc62d=!0x1;break;}}_0xdefd9b&&_0x2bc62d&&(_0x3cad4e['removeMarkers'](),_0x312617=!0x0);}}for(const _0x1b2922 of _0x18073e)_0x101d73['remove'](_0x1b2922);for(const _0x44d7bb of _0x357af7)_0x101d73['unwrap'](_0x44d7bb);return _0x312617;}),_0x23d0f8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1cded6,_0x1be19e)=>_0x5a78e0(_0x1cded6),'converterPriority':'high'}),_0x23d0f8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x35e87e,_0x29ce27)=>_0x29ce27['options']['showSuggestionHighlights']?_0x5a78e0(_0x35e87e,!0x1):null,'converterPriority':'high'});const _0x5f51ef=_0x23d0f8['editing']['view'];this['listenTo'](_0x5f51ef['document'],'clipboardOutput',(_0x5e7b98,_0x33f381)=>{const _0x4dceca=[];for(const _0x329038 of _0x5f51ef['createRangeIn'](_0x33f381['content'])['getItems']())_0x329038['is']('element','suggestion-td')&&_0x4dceca['push'](_0x329038);_0x5f51ef['change'](_0x14a9b0=>{for(const _0x11f00d of _0x4dceca)_0x14a9b0['move'](_0x14a9b0['createRangeIn'](_0x11f00d),_0x14a9b0['createPositionBefore'](_0x11f00d)),_0x14a9b0['remove'](_0x11f00d);});});}}function Pe(_0x391a3e){if(_0x391a3e['isEmpty'])return!0x0;const _0x4b7c5d=_0x391a3e['getChild'](0x0);return _0x4b7c5d['is']('element','paragraph')&&_0x4b7c5d['isEmpty'];}function he(_0x5cf6fe,_0x2fd742={},_0x5baff1){for(const {isAnchor:_0x109eb6,cellHeight:_0x173ec1,cellWidth:_0xc5488c}of _0x5baff1['createTableWalker'](_0x5cf6fe,{'includeAllSlots':!0x0,..._0x2fd742}))if(!_0x109eb6||0x1!=_0x173ec1||0x1!=_0xc5488c)return!0x1;return!0x0;}class vt extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x461e26=this['editor']['plugins']['get']('TrackChangesEditing');_0x461e26['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x461e26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x461e26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x461e26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x461e26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x461e26['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x26259f,_0xc22c4a){const _0x1975b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26758d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38736b=_0xc22c4a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4250c0=_0x26758d['getColumnGroupElement'](_0x38736b);let _0x390f7d=_0x4250c0?_0x26758d['getTableColumnsWidths'](_0x4250c0):null,_0x1031ee=_0x38736b['getAttribute']('tableWidth')||null;const _0x4acbbe=_0xc22c4a['tableWidth']||_0x1031ee,_0x1430d5=_0xc22c4a['columnWidths']||_0x390f7d,_0x39d779=this['editor']['plugins']['get']('Users')['me'];for(const _0x15f9c0 of _0x1975b7['getSuggestions']()){const _0xfb2a8b=_0x15f9c0['getContainedElement']();if('resizeTable'===_0x15f9c0['subType']&&_0xfb2a8b===_0x38736b){_0x15f9c0['author']!==_0x39d779&&_0x15f9c0['discard']();const _0x2cee56=_0x15f9c0['data']['commandParams'];_0x1031ee=_0x2cee56[0x0]['tableWidth'],_0x390f7d=_0x2cee56[0x0]['columnWidths'];break;}}_0x26259f({'table':_0x38736b,'tableWidth':_0x4acbbe,'columnWidths':_0x1430d5}),_0x1975b7['markBlockFormat'](_0x38736b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1031ee,'columnWidths':_0x390f7d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3f79f5){if('formatBlock'!=_0x3f79f5['type']&&'formatInline'!=_0x3f79f5['type'])return;const {data:_0x1995c0}=_0x3f79f5;if(_0x1995c0&&'resizeTable'===_0x1995c0['formatGroupId']){const _0x2913bf='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2913bf)};}}}class Ct extends _0x4d360f{['afterInit'](){const _0x7f7d1=this['editor'];_0x7f7d1['plugins']['has']('Template')&&_0x7f7d1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4d360f{['afterInit'](){const _0x3eeab5=this['editor'];if(!_0x3eeab5['commands']['get']('insertTableOfContents'))return;_0x3eeab5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x21773a=_0x3eeab5['plugins']['get']('TrackChangesEditing'),_0x42857f=_0x3eeab5['locale'];_0x21773a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x117fb9=>o(_0x42857f,'ELEMENT_TABLE_OF_CONTENTS',_0x117fb9));}}class Dt extends _0x4d360f{['afterInit'](){const _0x284468=this['editor'];if(!_0x284468['plugins']['has']('Title'))return;const _0x2231aa=_0x284468['plugins']['get']('TrackChangesEditing');_0x2231aa['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x284468['locale'],'ELEMENT_TITLE')),_0x284468['model']['document']['registerPostFixer'](_0x29c716=>{let _0x49f9fa=!0x1;const _0x35d820=Array['from'](_0x284468['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4520c1,data:_0x4cc9d1}of _0x35d820){const {group:_0x488a94}=_0x2231aa['_splitMarkerName'](_0x4520c1);if('suggestion'!==_0x488a94||!_0x4cc9d1['newRange'])continue;const _0x425075=_0x4cc9d1['newRange'],_0x5eca92=_0x425075['end']['nodeBefore'];if(!_0x5eca92||!_0x5eca92['is']('element','title-content'))continue;if(!_0x425075['start']['isTouching'](_0x425075['end']))continue;const _0x539bac=_0x284468['model']['schema']['getNearestSelectionRange'](_0x425075['end'],'forward');if(_0x539bac&&_0x539bac['isCollapsed']){const _0x4f2fca=_0x29c716['createRange'](_0x425075['start'],_0x539bac['start']);_0x4f2fca['isEqual'](_0x425075)||(_0x29c716['updateMarker'](_0x4520c1,{'range':_0x4f2fca}),_0x49f9fa=!0x0);}_0x49f9fa||(_0x29c716['removeMarker'](_0x4520c1),_0x49f9fa=!0x0);}return _0x49f9fa;});}}class Nt extends _0x4d360f{['afterInit'](){const _0x432000=this['editor'],_0x10f8c3=_0x432000['plugins']['get']('TrackChangesEditing');_0x432000['plugins']['has']('UndoEditing')&&(_0x10f8c3['enableCommand']('undo'),_0x10f8c3['enableCommand']('redo'));}}class Mt extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0x3051c3=this['editor'];if(!_0x3051c3['plugins']['has']('TableCaptionEditing'))return;_0x3051c3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4d360f{['tableProperties'];['tableCellProperties'];constructor(_0x159b87){super(_0x159b87),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 _0x470624=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2073bf of this['tableProperties'])_0x470624['enableCommand'](_0x2073bf,(_0x504bb1,_0x4c379a)=>{const _0x366e00=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2073bf,[_0x366e00],this['tableProperties'],'tableProperties',_0x504bb1,_0x4c379a);});_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x470624['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a1a22,_0x30c1aa)=>this['handleDiscardAction'](this['tableProperties'],_0x3a1a22,_0x30c1aa)),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x120d10 of this['tableCellProperties'])_0x470624['enableCommand'](_0x120d10,(_0x5f2856,_0x592659)=>{const _0x3ba551=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x120d10,_0x3ba551,this['tableCellProperties'],'tableCellProperties',_0x5f2856,_0x592659);});_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x470624['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b94a0,_0x5425bd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b94a0,_0x5425bd)),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x470624['descriptionFactory']['registerDescriptionCallback'](_0x98af72=>this['handleSuggestionDescription'](_0x98af72));}['_handlePropertyChange'](_0x548464,_0x5cea76,_0x221462,_0x50a561,_0x514722,_0x513cf5){const _0x415f11=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x513cf5['batch'],()=>{for(const _0x51322a of _0x5cea76){if(this['_getSuggestion'](_0x51322a,_0x50a561))_0x514722(_0x513cf5);else{const _0x97e782={};for(const _0x1642d0 of _0x221462){const _0x440b12=_0x51322a['getAttribute'](_0x1642d0);void 0x0!==_0x440b12&&(_0x97e782[_0x1642d0]=_0x440b12);}_0x514722(_0x513cf5),_0x415f11['markBlockFormat'](_0x51322a,{'commandParams':[_0x97e782]},[],_0x50a561);}}});}['handleDiscardAction'](_0x4bb76c,_0x1b2e4f,_0x1f3f68){const _0x415b07=_0x1b2e4f[0x0]['start']['nodeAfter'],_0x31869e=_0x1f3f68['commandParams'][0x0];this['editor']['model']['change'](_0x194a6b=>{for(const _0x46ee3b of _0x4bb76c)void 0x0!==_0x31869e[_0x46ee3b]?_0x194a6b['setAttribute'](_0x46ee3b,_0x31869e[_0x46ee3b],_0x415b07):_0x194a6b['removeAttribute'](_0x46ee3b,_0x415b07);});}['handleSuggestionDescription'](_0x9cbbdd){if(_0x9cbbdd['data'])switch(_0x9cbbdd['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'](_0x410ecb,_0x530426){const _0x13b0af=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4aa563 of _0x13b0af['getSuggestions']({'skipNotAttached':!0x0})){const _0x43db7e=_0x4aa563['getContainedElement']();if(_0x4aa563['subType']===_0x530426&&_0x43db7e===_0x410ecb)return _0x4aa563;}return null;}}const m='$elementName';class p extends _0x4d360f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x505173,_0x5bbcf2,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(_0x545730){function _0x280021(_0x2af9c7){return _0x2af9c7['map'](_0x474a52=>String['fromCharCode'](_0x474a52))['join']('');}super(_0x545730),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x534c82,_0x4fcb8d,_0x2a5de8,_0x108a9d)=>{this['_model']['change'](()=>{for(const _0x1b5004 of[..._0x108a9d,..._0x2a5de8])this['_model']['markers']['has'](_0x1b5004)&&_0x545730['editing']['reconvertMarker'](_0x1b5004);});}),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']=_0x545730['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(),_0x545730['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x545730['config']['get']('trackChanges.trackFormatChanges'),_0x545730['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x545730['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x545730,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x280021([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x280021([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x30]);}['init'](){const _0x35d2e8=this['editor'],_0x3e0073=(_0x1b88d8,_0x442af2)=>{if('attribute'!=_0x1b88d8)return'ck-suggestion-marker-'+_0x1b88d8;const _0x1a1f8f=_0x442af2['split']('|')[0x0];return this['_isBlockAttribute'](_0x1a1f8f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x35d2e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4b4dcd=>{const {id:_0x4656fa,type:_0x192798,subType:_0x66f085}=this['_splitMarkerName'](_0x4b4dcd['markerName']),_0x426fbd=['ck-suggestion-marker',_0x3e0073(_0x192798,_0x66f085)];let _0x17eb11=0xbb8;return this['activeMarkers']['includes'](_0x4b4dcd['markerName'])&&(_0x426fbd['push']('ck-suggestion-marker--active'),_0x17eb11=0xbc2),'deletion'==_0x192798&&(_0x17eb11+=0x5),{'classes':_0x426fbd,'attributes':{'data-suggestion':_0x4656fa},'priority':_0x17eb11};}}),_0x35d2e8['conversion']['for']('dataDowncast')['add'](_0x16bca4=>{_0x16bca4['on']('addMarker:suggestion',(_0x2b1a72,_0x43e4cc,_0x161461)=>{if(!_0x161461['options']['showSuggestionHighlights'])return;const _0x218429=_0x43e4cc['item'];if(!_0x218429)return;const _0x22615d=_0x161461['mapper']['toViewElement'](_0x218429);_0x35d2e8['model']['schema']['isObject'](_0x218429)&&_0x22615d&&!_0x22615d['getCustomProperty']('widget')&&_0x22615d['is']('containerElement')&&_0x34fdae(_0x22615d,_0x161461['writer']);},{'priority':'high'});}),_0x35d2e8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2993c8,_0x227a74)=>{if(!_0x227a74['options']['showSuggestionHighlights'])return null;const {type:_0x52d169,subType:_0x513a1a}=this['_splitMarkerName'](_0x2993c8['markerName']);return{'classes':['ck-suggestion-marker',_0x3e0073(_0x52d169,_0x513a1a)],'priority':0xbb8};}});const _0x3b2750=({showActiveMarkers:_0x21b31d=!0x0,isAttributeSuggestion:_0x3027f9=!0x1}={})=>(_0x46f46e,_0x4da341,_0x3e2516)=>{if(!_0x4da341['item'])return;const {id:_0x5b5335}=this['_splitMarkerName'](_0x4da341['markerName']);if(_0x3027f9){const _0xa8d67b=this['_suggestions']['get'](_0x5b5335),_0x24d555=this['_getAttributeKey'](_0xa8d67b);if(!this['_isBlockAttribute'](_0x24d555))return;}if(_0x4da341['item']['is']('selection'))return void _0x3e2516['consumable']['consume'](_0x4da341['item'],_0x46f46e['name']);const _0x2d82b8=_0x3e2516['mapper']['toViewElement'](_0x4da341['item']);if(_0x4da341['item']['is']('element')&&_0x35d2e8['model']['schema']['isBlock'](_0x4da341['item'])&&!_0x2d82b8['getCustomProperty']('addHighlight')){_0x3e2516['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d82b8),_0x3e2516['writer']['setAttribute']('data-suggestion',_0x5b5335,_0x2d82b8),_0x3e2516['mapper']['bindElementToMarker'](_0x2d82b8,_0x4da341['markerName']),_0x21b31d&&(this['activeMarkers']['includes'](_0x4da341['markerName'])?_0x3e2516['writer']['addClass']('ck-suggestion-marker--active',_0x2d82b8):_0x3e2516['writer']['removeClass']('ck-suggestion-marker--active',_0x2d82b8));for(const _0x1ff5cd of _0x35d2e8['model']['createRangeIn'](_0x4da341['item'])['getItems']())_0x3e2516['consumable']['consume'](_0x1ff5cd,_0x46f46e['name']);_0x3e2516['consumable']['consume'](_0x4da341['item'],_0x46f46e['name']);}};_0x35d2e8['conversion']['for']('dataDowncast')['add'](_0xbf56f8=>{_0xbf56f8['on']('addMarker:suggestion:formatBlock',(_0x3aded4,_0x3f6068,_0x4c559a)=>{_0x4c559a['options']['showSuggestionHighlights']&&_0x3b2750({'showActiveMarkers':!0x1})(_0x3aded4,_0x3f6068,_0x4c559a);},{'priority':'highest'});}),_0x35d2e8['conversion']['for']('dataDowncast')['add'](_0x23a454=>{_0x23a454['on']('addMarker:suggestion:attribute',(_0x4094d6,_0x379f80,_0x330c5e)=>{_0x330c5e['options']['showSuggestionHighlights']&&_0x3b2750({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4094d6,_0x379f80,_0x330c5e);},{'priority':'highest'});}),_0x35d2e8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4a29aa,_0x215d53)=>_0x215d53['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4a29aa['substr'](0xb)}}),_0x35d2e8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x255c15,{writer:_0x1089ab})=>{let _0x3f60c3='suggestion:'+_0x255c15['getAttribute']('suggestion-type')+':'+_0x255c15['getAttribute']('id');return _0x255c15['getAttribute']('marker-count')&&(_0x3f60c3+=':'+_0x255c15['getAttribute']('marker-count')),_0x1089ab['createElement']('$marker',{'data-name':_0x3f60c3});}}),_0x35d2e8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0x4789f3=>{_0x4789f3['on']('addMarker:suggestion:formatBlock',_0x3b2750(),{'priority':'high'});}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0x5de182=>{_0x5de182['on']('addMarker:suggestion:attribute',_0x3b2750({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0xc38845=>{_0xc38845['on']('removeMarker:suggestion:formatBlock',(_0x3e7ef7,_0x56213f,_0xeb9a4c)=>{const _0x23501b=_0xeb9a4c['mapper']['markerNameToElements'](_0x56213f['markerName']);if(_0x23501b){for(const _0x5afceb of _0x23501b)_0x5afceb['getCustomProperty']('addHighlight')||(_0xeb9a4c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5afceb),_0xeb9a4c['writer']['removeAttribute']('data-suggestion',_0x5afceb),_0xeb9a4c['mapper']['unbindElementFromMarkerName'](_0x5afceb,_0x56213f['markerName']));}},{'priority':'high'});}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0x141571=>{_0x141571['on']('removeMarker:suggestion:attribute',(_0x24a223,_0x2afcf0,_0x40ae5f)=>{const _0x2aaae8=_0x40ae5f['mapper']['markerNameToElements'](_0x2afcf0['markerName']);if(!_0x2aaae8)return;const {id:_0x17aecd}=this['_splitMarkerName'](_0x2afcf0['markerName']),_0x5750ae=this['_suggestions']['get'](_0x17aecd),_0x38089e=this['_getAttributeKey'](_0x5750ae);if(this['_isBlockAttribute'](_0x38089e)){for(const _0x233ad3 of _0x2aaae8)_0x233ad3['getCustomProperty']('addHighlight')||(_0x40ae5f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x233ad3),_0x40ae5f['writer']['removeAttribute']('data-suggestion',_0x233ad3),_0x40ae5f['mapper']['unbindElementFromMarkerName'](_0x233ad3,_0x2afcf0['markerName']));}},{'priority':'high'});}),_0x35d2e8['model']['document']['registerPostFixer'](_0x34bd79=>{let _0x459f55=!0x1;const _0x23051e=Array['from'](_0x35d2e8['model']['document']['differ']['getChangedMarkers']()),_0x48569f=new Set();for(const {name:_0x1ca669,data:_0x155e50}of _0x23051e){const {group:_0x4b8cf0,type:_0x17248b,subType:_0x3d618d,id:_0x586f1c}=this['_splitMarkerName'](_0x1ca669);if('suggestion'!==_0x4b8cf0)continue;const _0x52f9e7=this['_suggestions']['get'](_0x586f1c);if(null!=_0x155e50['newRange']){'formatInline'==_0x17248b&&(_0x459f55=_0x459f55||Et(_0x155e50['newRange'],_0x1ca669,_0x34bd79,_0x35d2e8['model']['schema']));const _0x8785d5='attribute'==_0x17248b&&this['_isBlockAttribute'](_0x3d618d['split']('|')[0x0]);if(_0x155e50['newRange']['isCollapsed']||'$graveyard'==_0x155e50['newRange']['root']['rootName']||'formatBlock'==_0x17248b&&!Ut(_0x155e50['newRange'])||_0x8785d5&&!Ut(_0x155e50['newRange'])||'deletion'==_0x17248b&&!(!Tt(_0x4bfb49=_0x155e50['newRange'])&&!function(_0x2eb50c){return _0x2eb50c['start']['parent']==_0x2eb50c['end']['nodeBefore']&&_0x2eb50c['start']['isAtEnd'];}(_0x4bfb49)))_0x34bd79['removeMarker'](_0x1ca669),_0x459f55=!0x0;else{if(!_0x52f9e7||!_0x52f9e7['isInContent'])continue;_0x48569f['add'](_0x52f9e7);}}}var _0x4bfb49;return _0x48569f['size']>0x0&&(_0x459f55=!!this['_joinWithAdjacentSuggestions'](_0x48569f)||_0x459f55),_0x459f55;}),_0x35d2e8['model']['document']['registerPostFixer'](_0x5c36fe=>{let _0x3324e7=!0x1;for(const _0x482a14 of _0x35d2e8['model']['document']['differ']['getChanges']())if('insert'==_0x482a14['type'])for(const _0x53e5d6 of this['_suggestions']['values']()){if(_0x53e5d6['isMultiRange']||!_0x53e5d6['isInContent'])continue;const _0x2db74a='formatBlock'==_0x53e5d6['type'],_0x5bc24a=this['_getAttributeKey'](_0x53e5d6),_0x38f2b2=_0x5bc24a&&this['_isBlockAttribute'](_0x5bc24a);if(!_0x2db74a&&!_0x38f2b2)continue;const _0x4fb21a=_0x53e5d6['getFirstRange']();if(_0x4fb21a['start']['parent']!=_0x4fb21a['end']['parent']&&!_0x4fb21a['end']['isAtEnd']){const _0x37bf81=_0x35d2e8['model']['createPositionAt'](_0x4fb21a['start']['nodeAfter'],'end'),_0x16e373=_0x35d2e8['model']['createRange'](_0x4fb21a['start'],_0x37bf81);_0x5c36fe['updateMarker'](_0x53e5d6['getFirstMarker'](),{'range':_0x16e373}),_0x3324e7=!0x0;}}return _0x3324e7;}),_0x35d2e8['model']['document']['registerPostFixer'](_0x106345=>this['_processAttributeChanges'](_0x106345)),_0x35d2e8['model']['document']['registerPostFixer'](_0x54f4e1=>!_0x54f4e1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54f4e1)),_0x35d2e8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x35d2e8['model']['document']['on']('change:data',(_0x1eccbf,_0x4e2ad3)=>{if(!_0x4e2ad3['isLocal']||_0x4e2ad3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x456163=_0x35d2e8['model']['document']['differ']['getChanges']();if(0x0==_0x456163['length'])return;const _0x3c2557=[],_0x4b8b17=_0x456163['filter'](_0x1d62c8=>'attribute'==_0x1d62c8['type']),_0x7c9cea=_0x456163['filter'](_0x39da08=>'insert'==_0x39da08['type']&&'$text'!=_0x39da08['name']);for(const _0xf0ac65 of _0x4b8b17)this['_isRegisteredAttribute'](_0xf0ac65['attributeKey'])&&_0x3c2557['push']({'key':_0xf0ac65['attributeKey'],'newValue':_0xf0ac65['attributeNewValue'],'oldValue':_0xf0ac65['attributeOldValue'],'range':Ot(_0xf0ac65['range'],_0x35d2e8['model'])});for(const _0x4a0895 of _0x7c9cea){if('rename'!=_0x4a0895['action']&&'refresh'!=_0x4a0895['action'])continue;const _0x3f4f00=Gt(_0x4a0895['position']['nodeAfter'],_0x35d2e8['model']),_0x5cf5a5=_0x4a0895['before'];'rename'==_0x4a0895['action']&&_0x3c2557['push']({'key':m,'newValue':_0x4a0895['name'],'oldValue':_0x5cf5a5['name'],'range':_0x3f4f00});for(const [_0x8e2cc5,_0x5e832b]of _0x5cf5a5['attributes']){if(!this['_isRegisteredAttribute'](_0x8e2cc5))continue;const _0x1c5d1b=_0x4a0895['attributes']['get'](_0x8e2cc5);_0x5e832b!==_0x1c5d1b&&_0x3c2557['push']({'key':_0x8e2cc5,'newValue':_0x1c5d1b,'oldValue':_0x5e832b,'range':_0x3f4f00});}for(const [_0x1654ce,_0x42e7b9]of _0x4a0895['attributes'])this['_isRegisteredAttribute'](_0x1654ce)&&(_0x5cf5a5['attributes']['has'](_0x1654ce)||_0x3c2557['push']({'key':_0x1654ce,'newValue':_0x42e7b9,'oldValue':null,'range':_0x3f4f00}));}0x0!=_0x3c2557['length']&&_0x35d2e8['model']['enqueueChange'](_0x4e2ad3,_0x2193ca=>{const _0x6fdb87=_0x3cefaa();for(const {range:_0x3fcf7f,key:_0x25f8f5,oldValue:_0x2cd239,newValue:_0x40fe4b}of _0x3c2557)this['markAttributeChange'](_0x3fcf7f,_0x25f8f5,_0x2cd239,_0x40fe4b,{'groupId':_0x6fdb87});this['_reduceExistingSuggestions'](_0x2193ca,_0x3c2557);});},{'priority':'lowest'}),_0x35d2e8['model']['markers']['on']('update:suggestion',(_0x6eda90,_0x277778,_0x4946ff)=>{if(null==_0x4946ff){const {id:_0x53d8ec}=this['_splitMarkerName'](_0x277778['name']),_0x3a80fe=this['_suggestions']['get'](_0x53d8ec);_0x3a80fe&&_0x3a80fe['addMarkerName'](_0x277778['name']);}}),_0x35d2e8['model']['document']['on']('change:data',()=>{const _0x1d83e6=Array['from'](_0x35d2e8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x258e92=>'suggestion'===this['_splitMarkerName'](_0x258e92['name'])['group']);if(0x0===_0x1d83e6['length'])return;_0x1d83e6['sort']((_0xe2cf31,_0x358fa3)=>{const _0x419ecf=_0xe2cf31['data']['oldRange'],_0x2f6fe0=_0x358fa3['data']['oldRange'];return null===_0x419ecf&&null===_0x2f6fe0?0x0:null===_0x419ecf&&null!==_0x2f6fe0?-0x1:null!==_0x419ecf&&null===_0x2f6fe0?0x1:_0x419ecf['start']['isBefore'](_0x2f6fe0['start'])?-0x1:0x1;});const _0x30c473=new Set(),_0x207e4e=new Set();for(const {name:_0x39d85a,data:_0x29bca8}of _0x1d83e6){const {id:_0x2963a5}=this['_splitMarkerName'](_0x39d85a);if(null===_0x29bca8['oldRange']){const _0x1758ab=this['_handleNewSuggestionMarker'](_0x39d85a);_0x207e4e['add'](_0x1758ab);}else{const _0x45a2ae=this['_suggestions']['get'](_0x2963a5);null!==_0x29bca8['newRange']||_0x45a2ae['isInContent']?(_0x30c473['add'](_0x45a2ae['head']),_0x207e4e['add'](_0x45a2ae)):this['_removeSuggestion'](_0x45a2ae);}}_0x207e4e['size']>0x0&&this['_refreshSuggestionsChain'](_0x207e4e);for(const _0x317351 of _0x30c473)this['fire']('suggestionChanged',_0x317351);}),_0x35d2e8['model']['on']('applyOperation',(_0x4e3009,_0xdffd1e)=>{const _0x25176f=_0xdffd1e[0x0];if(!this['_suggestions']['size'])return;if(!_0x25176f['isDocumentOperation'])return;if(_0x25176f['batch']['isUndo']||!_0x25176f['batch']['isLocal'])return;let _0x561f2d,_0x330083;switch(_0x25176f['type']){case'insert':_0x561f2d=_0x35d2e8['model']['createPositionAt'](_0x25176f['position']),_0x330083=_0x561f2d['getShiftedBy'](_0x25176f['howMany']);break;case'split':_0x561f2d=_0x35d2e8['model']['createPositionAt'](_0x25176f['splitPosition']),_0x330083=_0x35d2e8['model']['createPositionAt'](_0x25176f['moveTargetPosition']);break;case'move':_0x561f2d=_0x35d2e8['model']['createPositionAt'](_0x25176f['targetPosition']),_0x330083=_0x561f2d['getShiftedBy'](_0x25176f['howMany']);break;default:return;}const _0x3c7271=_0x35d2e8['model']['createRange'](_0x561f2d,_0x330083);_0x35d2e8['model']['change'](()=>{for(const {suggestion:_0x199c79,meta:_0x3bd502}of this['_findSuggestions'](_0x3c7271)){if(_0x199c79['isMultiRange'])continue;if('formatInline'==_0x199c79['type'])continue;const _0x33bd9c=this['_getAttributeKey'](_0x199c79);if(_0x33bd9c&&this['_isBlockAttribute'](_0x33bd9c)&&'split'!=_0x25176f['type'])continue;const _0x38b333=_0x199c79['data']&&_0x199c79['data']['multipleBlocks'];('formatBlock'!=_0x199c79['type']||'split'==_0x25176f['type']&&!_0x38b333)&&(_0x3bd502['containsRangeInObject']||'insertion'==_0x199c79['type']&&_0x3bd502['isOwn']||_0x199c79['getFirstRange']()['containsRange'](_0x3c7271)&&this['_breakSuggestionMarker'](_0x199c79,_0x561f2d,_0x330083));}});},{'priority':'lowest'}),_0x35d2e8['model']['on']('deleteContent',(_0x56aea5,_0x21710d)=>{const _0x3cffd6=_0x21710d[0x0],_0x41afe2=_0x21710d[0x1];if(_0x41afe2&&_0x41afe2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cffd6['isCollapsed'])return;const _0x4d2060=_0x35d2e8['model']['schema'],{start:_0x1adf4f,end:_0x51f621}=_0x3cffd6['getFirstRange'](),_0x4e0879=_0x1adf4f['nodeAfter']&&_0x4d2060['isLimit'](_0x1adf4f['nodeAfter'])?null:_0x4d2060['getNearestSelectionRange'](_0x1adf4f,'forward'),_0x3e09f1=_0x51f621['nodeBefore']&&_0x4d2060['isLimit'](_0x51f621['nodeBefore'])?null:_0x4d2060['getNearestSelectionRange'](_0x51f621,'backward'),_0x295381=_0x35d2e8['model']['createRange'](_0x4e0879?_0x4e0879['start']:_0x1adf4f,_0x3e09f1?_0x3e09f1['end']:_0x51f621);_0x35d2e8['model']['change'](_0x31d86a=>{this['markDeletion'](_0x295381);const _0x40da0d=_0x35d2e8['model']['schema']['getNearestSelectionRange'](_0x295381['start']);_0x3cffd6['is']('documentSelection')?_0x31d86a['setSelection'](_0x40da0d):_0x3cffd6['setTo'](_0x40da0d);}),_0x56aea5['stop']();},{'priority':_0x36e7bf['normal']+0xa}),_0x35d2e8['model']['on']('insertContent',(_0x24a720,_0x2a444c)=>{const _0x37c7fd=_0x2a444c[_0x2a444c['length']-0x1];_0x37c7fd&&_0x37c7fd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x35d2e8['model']['change'](()=>{let _0x43c3f6=_0x35d2e8['model']['insertContent'](_0x2a444c[0x0],_0x2a444c[0x1],_0x2a444c[0x2],{'forceDefaultExecution':!0x0});if(!_0x43c3f6)return;_0x24a720['return']=_0x43c3f6['clone']();const _0x657b10=_0x43c3f6['end']['nodeBefore'],_0x12dd94=_0x35d2e8['model']['schema'];_0x657b10&&_0x12dd94['isBlock'](_0x657b10)&&!_0x12dd94['isObject'](_0x657b10)&&(_0x43c3f6=_0x35d2e8['model']['createRange'](_0x43c3f6['start'],_0x35d2e8['model']['createPositionAt'](_0x657b10,'end'))),this['markInsertion'](_0x43c3f6);}),_0x24a720['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x646ca8=new $(_0x35d2e8,this['_suggestions']);_0x35d2e8['commands']['add']('acceptSuggestion',_0x646ca8),this['enableCommand']('acceptSuggestion');const _0x41ac40=new B(_0x35d2e8,this['_suggestions']);_0x35d2e8['commands']['add']('discardSuggestion',_0x41ac40),this['enableCommand']('discardSuggestion'),_0x35d2e8['commands']['add']('acceptAllSuggestions',new x(_0x35d2e8,_0x646ca8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x35d2e8['commands']['add']('discardAllSuggestions',new x(_0x35d2e8,_0x41ac40,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x35d2e8['commands']['add']('acceptSelectedSuggestions',new R(_0x35d2e8,_0x646ca8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x35d2e8['commands']['add']('discardSelectedSuggestions',new R(_0x35d2e8,_0x41ac40,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x56ee95=_0x35d2e8['plugins']['get']('CommentsRepository');this['listenTo'](_0x56ee95,'addComment',(_0x435237,{threadId:_0x217d26})=>{const _0x5487c5=this['_suggestions']['get'](_0x217d26);_0x5487c5&&_0x5487c5['commentThread']&&0x1===_0x5487c5['commentThread']['length']&&this['_updateSuggestionData'](_0x217d26,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x56ee95,'removeComment',(_0x30331e,{threadId:_0x23ba45})=>{const _0x19971a=this['_suggestions']['get'](_0x23ba45);_0x19971a&&_0x19971a['commentThread']&&!_0x19971a['commentThread']['length']&&this['_updateSuggestionData'](_0x23ba45,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x270070){if(this['_adapter'])throw new _0x3f3ca6('track-changes-adapter-already-set',this);this['_adapter']=_0x270070;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41090c=!0x1,toJSON:_0x448e65=!0x1}={}){const _0x1e78c9=[];for(const _0x50ecb5 of this['_suggestions']['values']())_0x41090c&&!_0x50ecb5['isInContent']||_0x1e78c9['push'](_0x50ecb5);return _0x448e65?_0x1e78c9['map'](_0x5c09cd=>_0x5c09cd['toJSON']()):_0x1e78c9;}['getSuggestion'](_0x4f3268){const _0x114cd8=this['_suggestions']['get'](_0x4f3268);if(!_0x114cd8)throw new _0x3f3ca6('track-changes-suggestion-not-found',this);return _0x114cd8;}['hasSuggestion'](_0x16066f){return this['_suggestions']['has'](_0x16066f);}['addSuggestionData'](_0x1974b6){const {authorId:_0x48a128,id:_0x1ce7b5,attributes:_0x203927}=_0x1974b6,[_0x35beff,_0x3cd982]=_0x1974b6['type']['split'](':'),_0x266cce=this['_suggestions']['get'](_0x1ce7b5)||this['_createSuggestion'](_0x35beff,_0x3cd982,_0x1ce7b5,_0x48a128,_0x203927);if(this['_addThreadToSuggestion'](_0x266cce),this['_checkSuggestionCorrectness'](_0x266cce,_0x35beff,_0x3cd982||null,_0x48a128),_0x266cce['createdAt']=_0x1974b6['createdAt'],_0x266cce['_isDataLoaded']=!0x0,_0x203927&&_0x203927['@external']){const _0x52cdd4=_0x203927['@external'],_0x11631a=this['_getExternalAuthor'](_0x52cdd4['authorName']);_0x266cce['authoredAt']=_0x52cdd4['createdAt'],_0x266cce['author']=_0x11631a,_0x266cce['isExternal']=!0x0;}else _0x266cce['authoredAt']=_0x1974b6['createdAt'];switch(_0x1974b6['data']&&(_0x266cce['data']=_0x1974b6['data']),_0x1974b6['attributes']&&(_0x266cce['attributes']=_0x1974b6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x266cce['_saved']=!0x0),this['_suggestionState']['get'](_0x266cce)){case'notReady':this['_suggestionState']['set'](_0x266cce,'dataReady');break;case'markerReady':_0x266cce['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x266cce])),this['_refreshSuggestionsChain'](new Set([_0x266cce])),this['_suggestionState']['set'](_0x266cce,'ready'),this['fire']('suggestionLoaded',_0x266cce)):this['_suggestionState']['set'](_0x266cce,'removed');}return _0x266cce;}['acceptSuggestion'](_0x93a413){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x22b23a of _0x93a413['getAllAdjacentSuggestions']())_0x22b23a['accept']();});});}['discardSuggestion'](_0x3df986){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x331bc3 of _0x3df986['getAllAdjacentSuggestions']())_0x331bc3['discard']();});});}['enableCommand'](_0x59224c,_0x128941){const _0x30043d=this['editor']['commands']['get'](_0x59224c);if(!_0x30043d)throw new _0x3f3ca6('track-changes-command-not-found',this,{'commandName':_0x59224c});if(this['_enabledCommands']['has'](_0x30043d))throw new _0x3f3ca6('track-changes-enable-command-twice',this,{'commandName':_0x59224c});this['_enabledCommands']['add'](_0x30043d),_0x128941&&_0x30043d['on']('execute',(_0x43c710,_0x15f071)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x15f071['length']>0x0&&_0x15f071[_0x15f071['length']-0x1]&&_0x15f071[_0x15f071['length']-0x1]['forceDefaultExecution']?_0x15f071['pop']():(_0x43c710['return']=_0x128941((..._0x4d4cfb)=>_0x30043d['execute'](..._0x4d4cfb,{'forceDefaultExecution':!0x0}),..._0x15f071),_0x43c710['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x15fe97){let _0x10d723,_0x5da788;const _0x547647=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x10d723=_0x15fe97();}catch(_0x40aef4){_0x5da788=_0x40aef4;}return _0x547647||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5da788&&_0x3f3ca6['rethrowUnexpectedError'](_0x5da788,this),_0x10d723;}['markInsertion'](_0x3a4ad1,_0x469a2f=null,_0x273b2d={}){if(_0x3a4ad1['isCollapsed'])return null;const _0x579545=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2a3711,meta:_0x45963b}of this['_findSuggestions'](_0x3a4ad1,'insertion'))if(_0x45963b['isOwn']){if(!_0x45963b['isNextTo']){if(_0x45963b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2a3711,_0x273b2d))continue;return _0x2a3711;}if(Lt(_0x2a3711,_0x273b2d))return _0x2a3711;this['_breakSuggestionMarker'](_0x2a3711,_0x3a4ad1['start'],_0x3a4ad1['end']);break;}if(_0x469a2f==_0x2a3711['subType']&&Lt(_0x2a3711,_0x273b2d)){const _0x12e3bb=_0x2a3711['getFirstRange']();return _0x12e3bb['start']['isEqual'](_0x3a4ad1['end'])?this['_setSuggestionRange'](_0x2a3711,this['_model']['createRange'](_0x3a4ad1['start'],_0x12e3bb['end'])):this['_setSuggestionRange'](_0x2a3711,this['_model']['createRange'](_0x12e3bb['start'],_0x3a4ad1['end'])),_0x2a3711;}}const _0x23e5de=_0x3cefaa(),_0x494095=_0x579545['id'],_0x15e47c=_0x469a2f?'insertion:'+_0x469a2f:'insertion',_0x28d976=this['_setSuggestionData']({'id':_0x23e5de,'type':_0x15e47c,'createdAt':new Date(),'authorId':_0x494095,'attributes':_0x273b2d});return this['_addSuggestionMarker'](_0x15e47c,_0x23e5de,_0x494095,_0x3a4ad1),_0x28d976;}['markMultiRangeInsertion'](_0x36cde2,_0x507b30='multi',_0x5f0020={}){const _0xcd518b=this['editor']['plugins']['get']('Users')['me'],_0xcc0ddc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x507b30,'join');for(const _0x50f7f2 of this['getSuggestions']())if(_0x50f7f2['author']['id']==_0xcd518b['id']&&'insertion'==_0x50f7f2['type']&&_0x50f7f2['subType']==_0x507b30&&Lt(_0x50f7f2,_0x5f0020)&&(_0xcc0ddc(_0x50f7f2['getRanges'](),_0x36cde2)||_0xcc0ddc(_0x36cde2,_0x50f7f2['getRanges']()))){for(const _0x35f255 of _0x36cde2)_0x50f7f2['addRange'](_0x35f255);return _0x50f7f2;}for(const {suggestion:_0x58afa3,meta:_0x39e17a}of this['_findSuggestions'](_0x36cde2,'insertion')){if(!_0x39e17a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x39e17a['containsRangeInObject'])continue;if(!Lt(_0x58afa3,_0x5f0020))continue;let _0x32f283=!0x0;for(const _0x379162 of _0x58afa3['getRanges']())for(const _0x4dbdec of _0x36cde2)if(!_0x379162['containsRange'](_0x4dbdec)){_0x32f283=!0x1;break;}if(_0x32f283)return _0x58afa3;}const _0xfd8bc6=_0x3cefaa(),_0x4c9676=_0xcd518b['id'],_0x12e79d='insertion:'+_0x507b30,_0x5ed2e5=this['_setSuggestionData']({'id':_0xfd8bc6,'type':_0x12e79d,'createdAt':new Date(),'authorId':_0x4c9676,'attributes':_0x5f0020});for(const _0x39741e of _0x36cde2)this['_addSuggestionMarker'](_0x12e79d,_0xfd8bc6,_0x4c9676,_0x39741e,u['getMultiRangeId']());return _0x5ed2e5;}['markInlineFormat'](_0x3058b8,_0x1dd00b,_0x2c7707=null,_0x57e4e3={}){if(_0x2c7707=_0x2c7707||Vt(_0x1dd00b),_0x3058b8['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x26dbfc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c7707,'accept');return this['forceDefaultExecution'](()=>_0x26dbfc([_0x3058b8],_0x1dd00b,_0x57e4e3)),null;}const _0x30dccd=this['editor']['plugins']['get']('Users')['me'],_0x5d15b3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4a2303,meta:_0x3a256c}of this['_findSuggestions'](_0x3058b8,'insertion'))_0x3a256c['isOwn']&&!_0x3a256c['isInsideObject']&&_0x5d15b3['push'](..._0x4a2303['getRanges']());}const _0x50c100=function(_0x3b572f,_0x36329b){const _0x2d6a95=[];for(const _0x13e7bc of _0x36329b){const _0x11d2d6=_0x3b572f['getIntersection'](_0x13e7bc);_0x11d2d6&&_0x2d6a95['push'](_0x11d2d6);}return _0x2d6a95;}(_0x3058b8,_0x5d15b3),_0x58038e=function(_0x4e3ace,_0x1f7a18){const _0x3f9344=[_0x4e3ace];for(const _0x382d7d of _0x1f7a18){let _0x110beb=0x0;for(;_0x110beb<_0x3f9344['length'];){const _0x52b142=_0x3f9344[_0x110beb]['getDifference'](_0x382d7d);_0x3f9344['splice'](_0x110beb,0x1,..._0x52b142),_0x110beb+=_0x52b142['length'];}}return _0x3f9344;}(_0x3058b8,_0x5d15b3);_0x50c100['length']&&this['_model']['change'](()=>{for(const _0x5bdda6 of _0x50c100){const _0x288620=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c7707,'accept');this['forceDefaultExecution'](()=>_0x288620([_0x5bdda6],_0x1dd00b,_0x57e4e3));}});for(const _0x315bf5 of _0x58038e){let _0x233dbd=null,_0x27cd5f=_0x315bf5['start'],_0x3adfb5=_0x315bf5['end'];for(const {suggestion:_0x4a1750,meta:_0x5b07e6}of this['_findSuggestions'](_0x315bf5,'formatInline')){if(!_0x5b07e6['isOwn'])continue;if(_0x4a1750['subType']!=_0x2c7707)continue;if(!Lt(_0x4a1750,_0x57e4e3))continue;const _0x3d5b20=_0x4a1750['getFirstRange']();if(_0x3d5b20['containsRange'](_0x315bf5,!0x0))return null;_0x27cd5f=_0x27cd5f['isBefore'](_0x3d5b20['start'])?_0x27cd5f:_0x3d5b20['start'],_0x3adfb5=_0x3adfb5['isAfter'](_0x3d5b20['end'])?_0x3adfb5:_0x3d5b20['end'],_0x233dbd?_0x3d5b20['start']['isBefore'](_0x233dbd['getFirstRange']()['start'])?(_0x233dbd['removeMarkers'](),_0x233dbd=_0x4a1750):_0x4a1750['removeMarkers']():_0x233dbd=_0x4a1750;}const _0x38c9e3=this['_model']['createRange'](_0x27cd5f,_0x3adfb5);if(_0x233dbd)this['_setSuggestionRange'](_0x233dbd,_0x38c9e3);else{const _0x739776=_0x3cefaa(),_0x15c0ee=_0x30dccd['id'];this['_setSuggestionData']({'id':_0x739776,'type':'formatInline:'+_0x2c7707,'data':_0x1dd00b,'createdAt':new Date(),'authorId':_0x15c0ee,'attributes':_0x57e4e3}),this['_addSuggestionMarker']('formatInline:'+_0x2c7707,_0x739776,_0x15c0ee,_0x38c9e3);}}return null;}['markBlockFormat'](_0x3fe985,_0x5884d4,_0x4e6120=[],_0x44b57d=null,_0x353670={}){_0x5884d4['formatGroupId']||(_0x5884d4['formatGroupId']=_0x5884d4['commandName']),_0x5884d4['multipleBlocks']=_0x3fe985['is']('range'),_0x44b57d=_0x44b57d||Vt(_0x5884d4);const _0x5dcd05=_0x4e6120['map'](_0x23cae8=>Gt(_0x23cae8,this['_model'])),_0x54938c=_0x3fe985['is']('range')?_0x3fe985:Gt(_0x3fe985,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1d2473=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44b57d,'accept');return this['forceDefaultExecution'](()=>_0x1d2473([_0x54938c],_0x5884d4,_0x353670)),null;}_0x5dcd05['push'](_0x54938c);let _0x58273c=!0x0;for(const _0x6df291 of _0x5dcd05)if(!this['_rangeIsInLocalUserInsertion'](_0x6df291)){_0x58273c=!0x1;break;}if(_0x58273c&&'always'!==this['_trackFormatChanges']){const _0x28e5ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44b57d,'accept');return this['forceDefaultExecution'](()=>_0x28e5ac([_0x54938c],_0x5884d4,_0x353670)),null;}let _0x21d120=null,_0x2d7de8=_0x54938c['start'],_0xc9e657=_0x54938c['end'];for(const {suggestion:_0x1e5a02,meta:_0x7d973d}of this['_findSuggestions'](_0x54938c,'formatBlock')){if(!_0x7d973d['isOwn'])continue;if(_0x7d973d['isNextTo']||_0x7d973d['containsRangeInObject']||_0x7d973d['isInsideObject'])continue;if(_0x1e5a02['data']['formatGroupId']!=_0x5884d4['formatGroupId'])continue;if(!Lt(_0x1e5a02,_0x353670))continue;const _0x148f78=_0x1e5a02['getFirstRange']();if(_0x1e5a02['subType']==_0x44b57d){if(_0x148f78['containsRange'](_0x54938c,!0x0))return null;_0x2d7de8=_0x2d7de8['isBefore'](_0x148f78['start'])?_0x2d7de8:_0x148f78['start'],_0xc9e657=_0xc9e657['isAfter'](_0x148f78['end'])?_0xc9e657:_0x148f78['end'],_0x21d120?_0x148f78['start']['isBefore'](_0x21d120['getFirstRange']()['start'])?(_0x21d120['removeMarkers'](),_0x21d120=_0x1e5a02):_0x1e5a02['removeMarkers']():_0x21d120=_0x1e5a02;}else{const _0x3e3317=_0x54938c['getIntersection'](_0x148f78);this['_cutOutSuggestionMarker'](_0x1e5a02,_0x3e3317);}}const _0x4d02a4=this['editor']['plugins']['get']('Users')['me'],_0x245bc0=_0x3cefaa(),_0x103203=_0x4d02a4['id'];if(_0x21d120)return this['_setSuggestionRange'](_0x21d120,this['_model']['createRange'](_0x2d7de8,_0xc9e657)),_0x21d120;{const _0xe7f237=this['_setSuggestionData']({'id':_0x245bc0,'type':'formatBlock:'+_0x44b57d,'data':_0x5884d4,'createdAt':new Date(),'authorId':_0x103203,'attributes':_0x353670});return this['_addSuggestionMarker']('formatBlock:'+_0x44b57d,_0x245bc0,_0x103203,this['_model']['createRange'](_0x2d7de8,_0xc9e657)),_0xe7f237;}}['markMultiRangeBlockFormat'](_0x2b820d,_0xcb1e7d,_0x104721=[],_0x1ec0f7=null,_0x83e77={}){_0xcb1e7d['formatGroupId']||(_0xcb1e7d['formatGroupId']=_0xcb1e7d['commandName']);const _0x5dc0cd=_0x2b820d[0x0];_0xcb1e7d['multipleBlocks']=_0x5dc0cd['is']('range'),_0x1ec0f7=_0x1ec0f7||Vt(_0xcb1e7d);const _0x5c5ea6=_0x104721['map'](_0x10807e=>Gt(_0x10807e,this['_model'])),_0xc72ee4=_0x5dc0cd['is']('range')?_0x2b820d:_0x2b820d['map'](_0x4711e9=>Gt(_0x4711e9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x405251=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec0f7,'accept');return this['forceDefaultExecution'](()=>_0x405251(_0xc72ee4,_0xcb1e7d,_0x83e77)),null;}_0x5c5ea6['push'](..._0xc72ee4);let _0x4789db=!0x0;for(const _0x523c69 of _0x5c5ea6)if(!this['_rangeIsInLocalUserInsertion'](_0x523c69)){_0x4789db=!0x1;break;}if(_0x4789db&&'always'!==this['_trackFormatChanges']){const _0x4e833a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec0f7,'accept');return this['forceDefaultExecution'](()=>_0x4e833a(_0xc72ee4,_0xcb1e7d,_0x83e77)),null;}const _0x16d028=this['editor']['plugins']['get']('Users')['me'];for(const _0xc4136e of this['getSuggestions']()){if(_0xc4136e['author']['id']!=_0x16d028['id'])continue;if('formatBlock'!=_0xc4136e['type']||_0xc4136e['data']['formatGroupId']!=_0xcb1e7d['formatGroupId'])continue;if(!Lt(_0xc4136e,_0x83e77))continue;const _0xef5e1f=_0xc4136e['subType']==_0x1ec0f7;for(let _0x28ca49=0x0;_0x28ca49<_0xc72ee4['length'];_0x28ca49++){const _0x5af04c=_0xc72ee4[_0x28ca49];for(const _0x1f33cc of _0xc4136e['getMarkers']()){const _0x17bc9e=_0x1f33cc['getRange']();if(_0x5af04c['isEqual'](_0x17bc9e)){_0xef5e1f?(_0xc72ee4['splice'](_0x28ca49,0x1),_0x28ca49--):_0xc4136e['removeMarker'](_0x1f33cc['name']);break;}}}}if(0x0==_0xc72ee4['length'])return null;const _0x395c62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec0f7,'join');for(const _0x1bf9db of this['getSuggestions']())if(_0x1bf9db['author']['id']==_0x16d028['id']&&'formatBlock'==_0x1bf9db['type']&&_0x1bf9db['data']['formatGroupId']==_0xcb1e7d['formatGroupId']&&_0x1bf9db['subType']==_0x1ec0f7&&Lt(_0x1bf9db,_0x83e77)&&(_0x395c62(_0x1bf9db['getRanges'](),_0xc72ee4)||_0x395c62(_0xc72ee4,_0x1bf9db['getRanges']()))){for(const _0x5ec3b4 of _0xc72ee4)_0x1bf9db['addRange'](_0x5ec3b4);return _0x1bf9db;}const _0x42b20f=_0x3cefaa(),_0x187cb3=_0x16d028['id'],_0x2af119='formatBlock:'+_0x1ec0f7,_0x361b4f=this['_setSuggestionData']({'id':_0x42b20f,'type':_0x2af119,'data':_0xcb1e7d,'createdAt':new Date(),'authorId':_0x187cb3,'attributes':_0x83e77});for(const _0x387032 of _0xc72ee4)this['_addSuggestionMarker'](_0x2af119,_0x42b20f,_0x187cb3,_0x387032,u['getMultiRangeId']());return _0x361b4f;}['markDeletion'](_0x3a32f2,_0x157176=null,_0x4d046c={}){if(_0x3a32f2['isCollapsed'])return null;const _0x348c1e=this['editor']['plugins']['get']('Users')['me'],_0x19a7b7=new _0x27f355(_0x3a32f2['start'],_0x3a32f2['end']);for(const {suggestion:_0x13bdd9,meta:_0x4c45b6}of this['_findSuggestions'](_0x19a7b7,'insertion'))if(_0x4c45b6['isOwn']&&!_0x4c45b6['isNextTo']){if(_0x13bdd9['isMultiRange']){const _0x67b513=_0x13bdd9['getRanges']()['filter'](_0x56be6c=>'$graveyard'!=_0x56be6c['root']['rootName']);_0x67b513['every'](_0x49ce67=>_0x19a7b7['containsRange'](_0x49ce67,!0x0))&&_0x13bdd9['discard']();if(_0x67b513['some'](_0xdc6d75=>_0xdc6d75['containsRange'](_0x19a7b7,!0x0))){const _0x3e5b25=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x157176,'accept');return this['forceDefaultExecution'](()=>_0x3e5b25([_0x19a7b7],null,_0x4d046c)),null;}}else{const _0x116aa0=_0x19a7b7['getIntersection'](_0x13bdd9['getFirstRange']());null!==_0x116aa0&&_0x13bdd9['_onDiscard']([_0x116aa0],null,_0x4d046c);}}if(_0x19a7b7['detach'](),_0x19a7b7['isCollapsed']||'$graveyard'==_0x19a7b7['root']['rootName'])return null;let _0x5a4f87=null,_0x2c5eb3=_0x19a7b7['start'],_0x32f593=_0x19a7b7['end'];const _0x22e751=this['_findSuggestions'](_0x19a7b7,'deletion');for(const {suggestion:_0x5cc20d,meta:_0x333f3b}of _0x22e751){const _0x3b5caa=this['_model']['createRange'](_0x2c5eb3,_0x32f593);if(_0x333f3b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x333f3b['containsRangeInObject']&&!_0x333f3b['isInsideObject'])){if(_0x5cc20d['isMultiRange']){if(!Lt(_0x5cc20d,_0x4d046c))continue;let _0x36a49a=!0x0;for(const _0x55bcc4 of _0x5cc20d['getRanges']()){if(_0x55bcc4['containsRange'](_0x3b5caa,!0x0))return _0x5cc20d;_0x3b5caa['containsRange'](_0x55bcc4)||(_0x36a49a=!0x1);}_0x36a49a&&_0x5cc20d['discard']();}else{const _0x3ec832=_0x5cc20d['getFirstRange']();if(_0x3ec832['containsRange'](_0x3b5caa,!0x0))return _0x5cc20d;if(!Lt(_0x5cc20d,_0x4d046c)){_0x3b5caa['containsRange'](_0x3ec832)?_0x5cc20d['removeMarkers']():_0x3ec832['containsPosition'](_0x2c5eb3)?_0x2c5eb3=_0x3ec832['end']:_0x3ec832['containsPosition'](_0x32f593)&&(_0x32f593=_0x3ec832['start']);continue;}_0x2c5eb3=_0x2c5eb3['isBefore'](_0x3ec832['start'])?_0x2c5eb3:_0x3ec832['start'],_0x32f593=_0x32f593['isAfter'](_0x3ec832['end'])?_0x32f593:_0x3ec832['end'],_0x4d046c=Object['assign']({},_0x5cc20d['attributes']),_0x5a4f87?_0x3ec832['start']['isBefore'](_0x5a4f87['getFirstRange']()['start'])?(_0x5a4f87['removeMarkers'](),_0x5a4f87=_0x5cc20d):_0x5cc20d['removeMarkers']():_0x5a4f87=_0x5cc20d;}}}if(_0x5a4f87)return this['_setSuggestionRange'](_0x5a4f87,this['_model']['createRange'](_0x2c5eb3,_0x32f593)),_0x5a4f87;{const _0x5612ea=_0x3cefaa(),_0x6f68ce=this['_model']['createRange'](_0x2c5eb3,_0x32f593),_0x2988d4=_0x348c1e['id'],_0x4a84bf=_0x157176?'deletion:'+_0x157176:'deletion',_0xf2f739=this['_setSuggestionData']({'id':_0x5612ea,'type':_0x4a84bf,'createdAt':new Date(),'authorId':_0x2988d4,'attributes':_0x4d046c});return this['_addSuggestionMarker'](_0x4a84bf,_0x5612ea,_0x2988d4,_0x6f68ce),_0xf2f739;}}['markMultiRangeDeletion'](_0x31ae19,_0x2c6a4b='multi',_0x51ed18={}){const _0x275573=this['editor']['plugins']['get']('Users')['me'],_0x19b0e9=_0x31ae19['map'](_0xf4771=>new _0x27f355(_0xf4771['start'],_0xf4771['end'])),_0x2c2e50=new Set();for(const {suggestion:_0x28c9f9,meta:_0x99d6a9}of this['_findSuggestions'](_0x19b0e9,'insertion'))_0x99d6a9['isOwn']&&!_0x99d6a9['isNextTo']&&_0x2c2e50['add'](_0x28c9f9);for(const _0x487cf5 of _0x2c2e50)if(_0x487cf5['isMultiRange']){const _0x14ad6e=_0x487cf5['getRanges']();(!_0x487cf5['attributes']||!_0x487cf5['attributes']['skipNestingCheck'])&&(_0x14ad6e['every'](_0x4bc023=>_0x19b0e9['some'](_0x5181c6=>_0x5181c6['containsRange'](_0x4bc023,!0x0)))&&_0x487cf5['discard']());if(_0x19b0e9['every'](_0x452b2e=>_0x14ad6e['some'](_0xee0cdc=>_0xee0cdc['containsRange'](_0x452b2e,!0x0)))){const _0x45104a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c6a4b,'accept');return this['forceDefaultExecution'](()=>_0x45104a(_0x31ae19,null,_0x51ed18)),null;}}else{const _0x539cea=_0x487cf5['getFirstRange']();_0x19b0e9['some'](_0x4e9444=>_0x4e9444['containsRange'](_0x539cea,!0x0))&&_0x487cf5['discard']();if(_0x19b0e9['every'](_0x3e3e8d=>_0x539cea['containsRange'](_0x3e3e8d,!0x0))){const _0x38ff70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c6a4b,'accept');return this['forceDefaultExecution'](()=>_0x38ff70(_0x19b0e9,null,_0x51ed18)),null;}}const _0x220f84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c6a4b,'join');let _0x32130a=null;for(const _0x4b965f of this['getSuggestions']())if(_0x4b965f['author']['id']==_0x275573['id']&&_0x4b965f['isInContent']&&'deletion'==_0x4b965f['type']&&_0x4b965f['subType']==_0x2c6a4b&&Lt(_0x4b965f,_0x51ed18)&&(_0x220f84(_0x4b965f['getRanges'](),_0x19b0e9)||_0x220f84(_0x19b0e9,_0x4b965f['getRanges']()))){if(_0x32130a){if(_0x4b965f['commentThread']&&_0x4b965f['commentThread']['length'])continue;for(const _0xf5ac87 of _0x4b965f['getRanges']())_0x32130a['isIntersectingWithRange'](_0xf5ac87)||_0x32130a['addRange'](_0xf5ac87);_0x4b965f['removeMarkers']();}else{_0x32130a=_0x4b965f;for(const _0x4c30a4 of _0x19b0e9)_0x4b965f['isIntersectingWithRange'](_0x4c30a4)||_0x4b965f['addRange'](_0x4c30a4);}}if(_0x32130a)return _0x32130a;_0x2c2e50['clear']();for(const {suggestion:_0xc06d19,meta:_0x17fa4a}of this['_findSuggestions'](_0x19b0e9,'deletion'))_0x17fa4a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17fa4a['containsRangeInObject']&&!_0x17fa4a['isInsideObject'])&&Lt(_0xc06d19,_0x51ed18)&&_0x2c2e50['add'](_0xc06d19);for(const _0x47c90d of _0x2c2e50){const _0x4b82e2=_0x47c90d['getRanges']();if(!_0x51ed18||!_0x51ed18['skipNestingCheck']){if(_0x19b0e9['every'](_0x171c97=>_0x4b82e2['some'](_0x574735=>_0x574735['containsRange'](_0x171c97,!0x0))))return _0x47c90d;}(!_0x47c90d['attributes']||!_0x47c90d['attributes']['skipNestingCheck'])&&(_0x4b82e2['every'](_0x4abe64=>_0x19b0e9['some'](_0x86f6a1=>_0x86f6a1['containsRange'](_0x4abe64,!0x0)))&&_0x47c90d['discard']());}const _0x5e4fe8=_0x3cefaa(),_0x5e5d2e=_0x275573['id'],_0x552c54='deletion:'+_0x2c6a4b,_0x10af61=this['_setSuggestionData']({'id':_0x5e4fe8,'type':_0x552c54,'createdAt':new Date(),'authorId':_0x5e5d2e,'attributes':_0x51ed18});for(const _0x3f9fc8 of _0x19b0e9)_0x3f9fc8['detach'](),_0x3f9fc8['isCollapsed']||'$graveyard'==_0x3f9fc8['root']['rootName']||this['_addSuggestionMarker'](_0x552c54,_0x5e4fe8,_0x5e5d2e,_0x3f9fc8,u['getMultiRangeId']());return _0x10af61;}['markAttributeChange'](_0x5938c8,_0x27a2d8,_0x30928f,_0x560ee0,_0x52f640){if(_0x5938c8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd7067c=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ecb61=Array['from'](this['_suggestions']['values']())['filter'](_0x55dc7e=>'attribute'==_0x55dc7e['type']&&_0x55dc7e['data']['key']==_0x27a2d8&&_0x55dc7e['isIntersectingWithRange'](_0x5938c8));if('default'===this['_trackFormatChanges']){const _0x21fcf3=this['_findSuggestions'](_0x5938c8,'insertion')['filter'](({meta:_0x581784})=>_0x581784['isOwn']&&!_0x581784['isInsideObject']&&!_0x581784['isNextTo'])['map'](({suggestion:_0x313d77})=>_0x313d77);_0x2ecb61['unshift'](..._0x21fcf3);}const _0x3affa1=new Map([[_0x5938c8,_0x30928f]]);for(const _0x63e842 of _0x2ecb61){const _0xdcf614='attribute'==_0x63e842['type']?_0x63e842['data']['oldValue']:void 0x0,_0x1b46ac=_0x63e842['getFirstRange'](),_0x5c8010=Array['from'](_0x3affa1['keys']())['find'](_0x4194d8=>_0x4194d8['isIntersecting'](_0x1b46ac));if(!_0x5c8010)continue;const _0x80c455=_0x5c8010['getDifference'](_0x1b46ac);this['_isBlockAttribute'](_0x27a2d8)&&'insertion'==_0x63e842['type']&&0x0!=_0x80c455['length']||(_0x3affa1['delete'](_0x5c8010),_0x80c455['forEach'](_0x387fb2=>{_0x3affa1['set'](_0x387fb2,_0x30928f);}),'insertion'!=_0x63e842['type']&&_0xdcf614!=_0x560ee0&&_0x3affa1['set'](_0x5c8010['getIntersection'](_0x1b46ac),_0xdcf614));}const _0x5588e8=[];for(const [_0x32fb83,_0x21ba81]of _0x3affa1){const _0x415460=_0x3cefaa(),_0x18a58c={'key':_0x27a2d8,'oldValue':_0x21ba81,'newValue':_0x560ee0};_0x27a2d8['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':_0x27a2d8});const _0x103533=('attribute:'+(_0x27a2d8+'|'+Vt({'newValue':_0x560ee0})))['substring'](0x0,0x3c),_0x294167=this['_setSuggestionData']({'id':_0x415460,'type':_0x103533,'data':_0x18a58c,'createdAt':new Date(),'authorId':_0xd7067c,'attributes':_0x52f640});_0x5588e8['push'](_0x294167),this['_addSuggestionMarker'](_0x103533,_0x415460,_0xd7067c,_0x32fb83);}return _0x5588e8;}['enableDefaultAttributesIntegration'](_0xb9b7f2){this['enableCommand'](_0xb9b7f2,(_0x1de063,..._0x1f5538)=>{this['_recordAttributeChanges'](()=>{_0x1de063(..._0x1f5538);});});}['registerBlockAttribute'](_0x53f56f){this['_blockAttributeKeys']['add'](_0x53f56f);}['registerInlineAttribute'](_0x3729dd){this['_inlineAttributeKeys']['add'](_0x3729dd);}['_getAttributeKey'](_0x4397f5){return'attribute'==_0x4397f5['type']?_0x4397f5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4caa22,_0x548943){const _0xe1f8a8=_0x4caa22['getFirstMarker']();this['_model']['change'](_0x2371c2=>{_0x2371c2['updateMarker'](_0xe1f8a8,{'range':_0x548943});});}['_addThreadToSuggestion'](_0x3474e6){const _0x24b9d1=_0x3474e6['id'],_0x5ae5ad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x24b9d1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5ae5ad,'threadId':_0x24b9d1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x50b4d8=this['_commentsRepository']['getCommentThread'](_0x24b9d1);_0x50b4d8['unbind']('isRemovable'),_0x50b4d8['isRemovable']=!0x1,_0x3474e6['commentThread']=_0x50b4d8;}['_checkSuggestionCorrectness'](_0x2584fc,_0x15427e,_0x35a119,_0x1a68b4){if(_0x2584fc['type']!=_0x15427e||_0x2584fc['subType']!=_0x35a119||_0x2584fc['creator']['id']!=_0x1a68b4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3f3ca6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x32b226,_0x3cfcf9){const _0x2e7c85=_0x32b226['getFirstRange']();if(_0x3cfcf9['isEqual'](_0x2e7c85))_0x32b226['removeMarkers']();else{if(_0x2e7c85['containsRange'](_0x3cfcf9)){const _0x23b202=this['_model']['createPositionAt'](_0x3cfcf9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32b226,this['_model']['createRange'](_0x2e7c85['start'],_0x23b202));const _0x24c1e3=_0x3cefaa(),_0x1c94ad=_0x32b226['creator']['id'],_0x55edda=_0x32b226['type']+':'+_0x32b226['subType'];this['_setSuggestionData']({'id':_0x24c1e3,'type':_0x55edda,'createdAt':new Date(),'authorId':_0x1c94ad,'data':_0x32b226['data'],'attributes':_0x32b226['attributes']});const _0x280066=this['_model']['createPositionAt'](_0x3cfcf9['end']['parent'],'after'),_0x45ace6=this['_model']['createRange'](_0x280066,_0x2e7c85['end']);this['_addSuggestionMarker'](_0x55edda,_0x24c1e3,_0x1c94ad,_0x45ace6);}else{if(_0x2e7c85['containsPosition'](_0x3cfcf9['start'])){const _0x254702=this['_model']['createPositionAt'](_0x3cfcf9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32b226,this['_model']['createRange'](_0x2e7c85['start'],_0x254702));}else{const _0x215243=this['_model']['createPositionAt'](_0x3cfcf9['end']['parent'],'after');this['_setSuggestionRange'](_0x32b226,this['_model']['createRange'](_0x215243,_0x2e7c85['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x22fabf){for(const {suggestion:_0x4a3d01,meta:_0x2fec71}of this['_findSuggestions'](_0x22fabf,'insertion')){if(!_0x2fec71['isOwn'])continue;const _0x21d30a=_0x4a3d01['getRanges']();for(const _0x1633b4 of _0x21d30a)if(!_0x22fabf['getDifference'](_0x1633b4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x49d19a){const _0x20d633=this['editor']['plugins']['get']('Users')['getUser'](_0x49d19a);if(!_0x20d633)throw new _0x3f3ca6('track-changes-user-not-found',this);return _0x20d633;}['_getExternalAuthor'](_0x11a416){const _0x5bbca6=this['editor']['plugins']['get']('Users'),_0x9449f6=_0x433e2e('external:'+_0x11a416),_0x489450=_0x5bbca6['getUser'](_0x9449f6);return _0x489450||_0x5bbca6['addUser']({'id':_0x9449f6,'name':_0x11a416});}['_createSuggestion'](_0x59c585,_0x21f535,_0x17dfc5,_0x202ce1,_0x433d76){const _0x515fa7=this['_getAuthorFromId'](_0x202ce1),_0x43ae36=this['_suggestionFactory']['buildSuggestion'](_0x59c585,_0x21f535,_0x17dfc5,_0x515fa7,_0x433d76,_0x19f624=>{this['_updateSuggestionData'](_0x17dfc5,{'attributes':_0x19f624});const _0x426a22=this['getSuggestion'](_0x17dfc5);this['_joinWithAdjacentSuggestions'](new Set([_0x426a22])),this['_refreshSuggestionsChain'](new Set([_0x426a22]));});return this['listenTo'](_0x43ae36,'accept',()=>{this['_updateSuggestionData'](_0x17dfc5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x43ae36,'discard',()=>{this['_updateSuggestionData'](_0x17dfc5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17dfc5,_0x43ae36),this['_suggestionState']['set'](_0x43ae36,'notReady'),_0x43ae36;}['_splitMarkerName'](_0xe4db51){const _0x6319b9=_0xe4db51['split'](':');return{'group':_0x6319b9[0x0],'type':_0x6319b9[0x1],'subType':_0x6319b9['length']>=0x5?_0x6319b9[0x2]:null,'id':_0x6319b9['length']<0x5?_0x6319b9[0x2]:_0x6319b9[0x3],'authorId':_0x6319b9['length']<0x5?_0x6319b9[0x3]:_0x6319b9[0x4],'markerCount':0x6==_0x6319b9['length']?_0x6319b9[0x5]:null};}['_breakSuggestionMarker'](_0x368e4c,_0x35f68d,_0x418ecd){const _0x5d0920=_0x368e4c['getFirstRange'](),_0x4a1768=_0x5d0920['start'],_0x269184=_0x5d0920['end'];this['_setSuggestionRange'](_0x368e4c,this['_model']['createRange'](_0x4a1768,_0x35f68d));const _0x331d8f=_0x3cefaa(),_0x2ee46b=_0x368e4c['creator']['id'],_0x2601bb=_0x368e4c['type']+(_0x368e4c['subType']?':'+_0x368e4c['subType']:'');this['_setSuggestionData']({'id':_0x331d8f,'type':_0x2601bb,'createdAt':new Date(),'authorId':_0x2ee46b,'originalSuggestionId':_0x368e4c['id'],'attributes':_0x368e4c['attributes'],'data':_0x368e4c['data']});const _0x5d8dd9=this['_getAttributeKey'](_0x368e4c);('formatBlock'==_0x368e4c['type']||_0x5d8dd9&&this['_isBlockAttribute'](_0x5d8dd9))&&(_0x418ecd=this['_model']['createPositionBefore'](_0x418ecd['parent'])),this['_addSuggestionMarker'](_0x2601bb,_0x331d8f,_0x2ee46b,this['_model']['createRange'](_0x418ecd,_0x269184));}['_findSuggestions'](_0x4fc1f9,_0x5542a6=null){const _0x87ee76=[],_0x5b60f6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fc1f9)||(_0x4fc1f9=[_0x4fc1f9]);for(const _0x3a49ac of this['getSuggestions']()){if(!_0x3a49ac['isInContent'])continue;if(_0x5542a6&&_0x3a49ac['type']!=_0x5542a6)continue;let _0x44bab9=!0x1;for(const _0x45f66d of _0x3a49ac['getRanges']()){for(const _0x17008f of _0x4fc1f9){const _0x3d0830=_0x17008f['start']['isEqual'](_0x45f66d['end'])||_0x17008f['end']['isEqual'](_0x45f66d['start']);if(_0x3d0830||_0x17008f['getIntersection'](_0x45f66d)){const _0x432a6c=_0x17008f['containsRange'](_0x45f66d)&&Rt(this['_model']['schema'],_0x45f66d['start'],_0x17008f),_0x500e8c=_0x45f66d['containsRange'](_0x17008f)&&Rt(this['_model']['schema'],_0x17008f['start'],_0x45f66d);_0x87ee76['push']({'suggestion':_0x3a49ac,'meta':{'isOwn':_0x5b60f6==_0x3a49ac['author'],'isNextTo':_0x3d0830,'isInsideObject':_0x432a6c,'containsRangeInObject':_0x500e8c}}),_0x44bab9=!0x0;break;}}if(_0x44bab9)break;}}return _0x87ee76;}['_addSuggestionMarker'](_0x121fdf,_0x2443ca,_0x45157d,_0x56658c,_0x43ebe4){this['_model']['change'](_0x2e78b8=>{let _0x5c4a79='suggestion:'+_0x121fdf+':'+_0x2443ca+':'+_0x45157d;_0x43ebe4&&(_0x5c4a79=_0x5c4a79+':'+_0x43ebe4),_0x2e78b8['addMarker'](_0x5c4a79,{'range':_0x56658c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a1139){const _0x3567c6=_0x4a1139['previous'],_0x2b7b39=_0x4a1139['next'];_0x4a1139['previous']=null,_0x4a1139['next']=null,null!=_0x3567c6&&_0x3567c6['next']==_0x4a1139&&(_0x3567c6['next']=_0x2b7b39),null!=_0x2b7b39&&_0x2b7b39['previous']==_0x4a1139&&(_0x2b7b39['previous']=_0x3567c6),'ready'==this['_suggestionState']['get'](_0x4a1139)&&(this['_suggestionState']['set'](_0x4a1139,'removed'),this['fire']('suggestionUnloaded',_0x4a1139,_0x3567c6,_0x2b7b39));}['_setSuggestionData'](_0x3c2881){const _0x41860d=_0x3c2881['id'],_0x2596cd=this['addSuggestionData'](_0x3c2881);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x241b9c=this['editor']['plugins']['get']('PendingActions'),_0x2ca2b1=_0x2596cd['hasComments'],_0x354664=_0x2596cd['subType']?_0x2596cd['type']+':'+_0x2596cd['subType']:_0x2596cd['type'],_0x91e839=this['editor']['locale'],_0x18381a=_0x241b9c['add'](o(_0x91e839,'PENDING_ACTION_SUGGESTION')),_0x12c042={'id':_0x41860d,'type':_0x354664,'hasComments':_0x2ca2b1,'data':_0x3c2881['data']||null,'originalSuggestionId':_0x3c2881['originalSuggestionId']||null,'attributes':_0x2596cd['attributes']};this['_adapter']['addSuggestion'](_0x12c042)['then'](_0x81dfbc=>{_0x2596cd['_saved']=!0x0,_0x241b9c['remove'](_0x18381a),_0x81dfbc&&_0x81dfbc['createdAt']&&(this['_suggestions']['get'](_0x41860d)['createdAt']=_0x81dfbc['createdAt']);})['catch'](_0x506124=>{throw _0x244bdf('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2596cd['discard']();}),_0x2596cd['stopListening'](),this['_suggestions']['delete'](_0x2596cd['id']),this['_suggestionState']['delete'](_0x2596cd),_0x506124;});}return _0x2596cd;}['_isBlockAttribute'](_0x533376){return this['_blockAttributeKeys']['has'](_0x533376);}['_updateSuggestionData'](_0x12cff0,_0x2cf5db){const _0x246971=this['editor']['plugins']['get']('PendingActions'),_0x5ab23d=this['getSuggestion'](_0x12cff0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5ab23d['_saved']){const _0x56ca8a=_0x246971['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x12cff0,_0x2cf5db)['then'](()=>{_0x246971['remove'](_0x56ca8a);});}else _0x5ab23d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x12cff0,_0x2cf5db);});}}['_getSuggestionData'](_0x49e82c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3f3ca6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x49e82c);}['_handleNewSuggestionMarker'](_0x3d4200){const {id:_0xc934ab,type:_0x216491,subType:_0x142ca5,authorId:_0x46db52}=this['_splitMarkerName'](_0x3d4200),_0x12d21d=this['_suggestions']['get'](_0xc934ab)||this['_createSuggestion'](_0x216491,_0x142ca5,_0xc934ab,_0x46db52,{});switch(this['_checkSuggestionCorrectness'](_0x12d21d,_0x216491,_0x142ca5,_0x46db52),this['_suggestionState']['get'](_0x12d21d)){case'notReady':this['_getSuggestionData'](_0xc934ab)['then'](_0x2d7fa3=>{let _0x453674=Promise['resolve']();_0x2d7fa3['hasComments']&&(_0x453674=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc934ab})),_0x453674['then'](()=>{this['addSuggestionData'](_0x2d7fa3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x12d21d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc934ab,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x12d21d,'ready'),this['fire']('suggestionLoaded',_0x12d21d);break;case'ready':this['fire']('suggestionChanged',_0x12d21d);}return _0x12d21d['addMarkerName'](_0x3d4200),_0x12d21d;}['_refreshSuggestionsChain'](_0x3798eb){const _0x5cc785=Array['from'](_0x3798eb),_0xcc46e6=_0x5cc785['filter'](_0x548a09=>'attribute'==_0x548a09['type']);this['_refreshAttributeSuggestionsChain'](_0xcc46e6);const _0x353550=_0x5cc785['filter'](_0x10c64f=>!_0x10c64f['isMultiRange']&&'attribute'!=_0x10c64f['type']),_0x1f877b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54bbcc=>!_0x54bbcc['isMultiRange']&&'attribute'!=_0x54bbcc['type']),_0x5a0e45=_0x1f877b['filter'](_0x506e94=>!_0x3798eb['has'](_0x506e94)),_0x28392c=new Map(_0x1f877b['map'](_0x74bcbe=>[_0x74bcbe,this['_suggestionFactory']['getSuggestionCallback'](_0x74bcbe['type'],_0x74bcbe['subType'],'chain')])),_0x12ca8e=new Map(_0x1f877b['map'](_0x1de09b=>[_0x1de09b,_0x1de09b['getFirstRange']()])),_0x5c019c=new Set(),_0xa0c39d=new Set();for(let _0x25b22e=0x0;_0x25b22e<_0x353550['length'];_0x25b22e++)_0x2e41ae(_0x353550[_0x25b22e],_0x353550,_0x25b22e+0x1);for(let _0x511058=0x0;_0x511058<_0x353550['length'];_0x511058++)_0x2e41ae(_0x353550[_0x511058],_0x5a0e45,0x0);const _0x1fbcbc=new Set();for(let _0xeeab41=0x0;_0xeeab41<_0x353550['length'];_0xeeab41++){const _0x3fdfbb=_0x353550[_0xeeab41];!_0xa0c39d['has'](_0x3fdfbb)&&_0x3fdfbb['previous']&&(_0x1fbcbc['add'](_0x3fdfbb['previous']),_0x3fdfbb['previous']['next']===_0x3fdfbb&&(_0x3fdfbb['previous']['next']=null),_0x3fdfbb['previous']=null),!_0x5c019c['has'](_0x3fdfbb)&&_0x3fdfbb['next']&&(_0x1fbcbc['add'](_0x3fdfbb['next']),_0x3fdfbb['next']['previous']===_0x3fdfbb&&(_0x3fdfbb['next']['previous']=null),_0x3fdfbb['next']=null);}function _0x2e41ae(_0x5a87c3,_0x53664f,_0x23459f){for(let _0x3202c0=_0x23459f;_0x3202c0<_0x53664f['length'];_0x3202c0++){const _0x50ffb3=_0x3c029a(_0x5a87c3,_0x53664f[_0x3202c0]);_0x50ffb3&&(_0x50ffb3[0x0]['next']=_0x50ffb3[0x1],_0x50ffb3[0x1]['previous']=_0x50ffb3[0x0],_0x5c019c['add'](_0x50ffb3[0x0]),_0xa0c39d['add'](_0x50ffb3[0x1]));}}function _0x3c029a(_0x1e6ce2,_0x5af1e8){if(_0x1e6ce2['author']['id']!==_0x5af1e8['author']['id'])return null;const _0x52b69e=_0x28392c['get'](_0x1e6ce2)(_0x1e6ce2,_0x5af1e8,_0x12ca8e['get'](_0x1e6ce2),_0x12ca8e['get'](_0x5af1e8));if(!_0x52b69e)return null;return _0x28392c['get'](_0x5af1e8)(_0x1e6ce2,_0x5af1e8,_0x12ca8e['get'](_0x1e6ce2),_0x12ca8e['get'](_0x5af1e8))?_0x52b69e[0x1]['commentThread']&&_0x52b69e[0x1]['commentThread']['length']?null:_0x52b69e:null;}_0x1fbcbc['size']&&this['_refreshSuggestionsChain'](_0x1fbcbc);}['_refreshAttributeSuggestionsChain'](_0x47b7d5){if(0x0==_0x47b7d5['length'])return;const _0x11a3fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c6106=>'attribute'==_0x1c6106['type']&&_0x1c6106['_isDataLoaded']),_0x4068f4=[],_0x401b93=new Map();for(const _0x42ec79 of _0x11a3fc){const _0x2e8a29=_0x433e2e(_0x42ec79['attributes']);_0x401b93['has'](_0x2e8a29)||(_0x401b93['set'](_0x2e8a29,_0x4068f4['length']),_0x4068f4['push']([]));const _0x2e528d=_0x401b93['get'](_0x2e8a29);_0x4068f4[_0x2e528d]['push'](_0x42ec79);}!(function(){_0x4068f4['sort']((_0x4fa2b2,_0x26591b)=>{const _0x305036=_0x4fa2b2[0x0]['createdAt'],_0x5f4484=_0x26591b[0x0]['createdAt'];return _0x305036==_0x5f4484?_0x4fa2b2[0x0]['attributes']['groupId']<_0x26591b[0x0]['attributes']['groupId']?-0x1:0x1:_0x305036<_0x5f4484?-0x1:0x1;});for(const _0x46ae92 of _0x4068f4)_0x46ae92['sort']((_0x4eeebc,_0x491d77)=>_0x4eeebc['id']<_0x491d77['id']?-0x1:0x1);}());for(let _0x18e15b=0x0;_0x18e15b<_0x4068f4['length'];_0x18e15b++){if(0x0==_0x4068f4[_0x18e15b]['length'])continue;const _0x519ee4=[];for(let _0x447bc4=_0x18e15b+0x1;_0x447bc4<_0x4068f4['length'];_0x447bc4++)0x0!=_0x4068f4[_0x447bc4]['length']&&_0x5ce5d6(_0x4068f4[_0x18e15b],_0x4068f4[_0x447bc4])&&_0x519ee4['push'](_0x447bc4);for(const _0x429a83 of _0x519ee4)_0x4068f4[_0x18e15b]=_0x4068f4[_0x18e15b]['concat'](_0x4068f4[_0x429a83]),_0x4068f4[_0x429a83]=[];}for(const _0x35eb85 of _0x4068f4)for(let _0x4ed9ea=0x0;_0x4ed9ea<_0x35eb85['length'];_0x4ed9ea++)_0x35eb85[_0x4ed9ea]['next']=_0x35eb85[_0x4ed9ea+0x1]||null;for(const _0x47d0bc of _0x4068f4)for(let _0x1d3bb9=0x0;_0x1d3bb9<_0x47d0bc['length'];_0x1d3bb9++)_0x47d0bc[_0x1d3bb9]['previous']=_0x47d0bc[_0x1d3bb9-0x1]||null;function _0x5ce5d6(_0x288c9d,_0x2447cc){if(_0x288c9d[0x0]['attributes']['groupId']!==_0x2447cc[0x0]['attributes']['groupId']&&_0x288c9d[0x0]['author']!==_0x2447cc[0x0]['author'])return!0x1;if(!function(_0x286214,_0x418cf7){if(!_0x286214['hasComments']&&!_0x418cf7['hasComments'])return!0x0;if(_0x286214['hasComments']&&_0x418cf7['hasComments'])return!0x1;if(_0x286214['hasComments']&&_0x418cf7['createdAt']<_0x286214['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x418cf7['hasComments']&&_0x286214['createdAt']<_0x418cf7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x288c9d[0x0],_0x2447cc[0x0]))return!0x1;const _0x4a10e1=Bt(_0x288c9d[0x0]['attributes'],'groupId'),_0x329b09=Bt(_0x2447cc[0x0]['attributes'],'groupId');if(!_0x5cd547(_0x4a10e1,_0x329b09))return!0x1;return!!_0x288c9d['every'](_0x58b449=>_0x2447cc['some'](_0x133f5b=>_0x58b449['getFirstRange']()['isEqual'](_0x133f5b['getFirstRange']())))&&_0x2447cc['every'](_0xe919a8=>_0x288c9d['some'](_0x466678=>_0xe919a8['getFirstRange']()['isEqual'](_0x466678['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x54b1d4){const _0x2a33c8=Array['from'](_0x54b1d4),_0x229105=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4274e1=_0x229105['filter'](_0x3d27e6=>!_0x54b1d4['has'](_0x3d27e6)),_0x1da049=new Map(_0x2a33c8['map'](_0x5fdf63=>[_0x5fdf63,this['_suggestionFactory']['getSuggestionCallback'](_0x5fdf63['type'],_0x5fdf63['subType'],'join')])),_0x12f577=new Map(_0x229105['map'](_0x48e2f0=>[_0x48e2f0,_0x48e2f0['getRanges']()]));for(let _0x3e5790=0x0;_0x3e5790<_0x2a33c8['length'];_0x3e5790++){if(_0x443546(this,_0x2a33c8[_0x3e5790],_0x2a33c8,_0x3e5790+0x1))return!0x0;}for(let _0x24c422=0x0;_0x24c422<_0x2a33c8['length'];_0x24c422++){if(_0x443546(this,_0x2a33c8[_0x24c422],_0x4274e1,0x0))return!0x0;}return!0x1;function _0x443546(_0x51901f,_0x3a209f,_0xdc7920,_0x1227ae){for(let _0x2909e4=_0x1227ae;_0x2909e4<_0xdc7920['length'];_0x2909e4++){const _0x3a5c2d=_0xdc7920[_0x2909e4];if(_0x3a5c2d['type']!==_0x3a209f['type']||_0x3a5c2d['author']['id']!==_0x3a209f['author']['id']||_0x3a5c2d['subType']!==_0x3a209f['subType'])continue;if(!Pt(_0x3a209f,_0x3a5c2d,['groupId']))continue;if('attribute'==_0x3a209f['type']&&_0x3a209f['data']['oldValue']!=_0x3a5c2d['data']['oldValue'])continue;if('attribute'==_0x3a209f['type']&&_0x51901f['_isBlockAttribute'](_0x3a209f['data']['key']))continue;if('formatBlock'==_0x3a209f['type']){const _0x732ee8=_0x51901f['editor']['model'],_0x4564c4=_0x3a209f['getContainedElement']();if(_0x4564c4&&(_0x732ee8['schema']['isObject'](_0x4564c4)||_0x732ee8['schema']['isLimit'](_0x4564c4)))continue;}const _0xe2f366=_0x1da049['get'](_0x3a209f),_0x5e46a5=_0x12f577['get'](_0x3a209f),_0x3360bf=_0x12f577['get'](_0x3a5c2d),_0x5e81ed=_0x3a209f['commentThread']&&_0x3a209f['commentThread']['length'],_0x25ed88=_0x3a5c2d['commentThread']&&_0x3a5c2d['commentThread']['length'];if(!_0x5e81ed&&_0xe2f366(_0x3360bf,_0x5e46a5))return _0x51901f['_joinSuggestions'](_0x3a5c2d,_0x3a209f),_0x12f577['delete'](_0x3a209f),!0x0;if(!_0x25ed88&&_0xe2f366(_0x5e46a5,_0x3360bf))return _0x51901f['_joinSuggestions'](_0x3a209f,_0x3a5c2d),_0x12f577['delete'](_0x3a5c2d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ecdb6,_0x1d7bfb){if(_0x4ecdb6['isMultiRange']){for(const _0x3a21f3 of _0x1d7bfb['getRanges']())_0x4ecdb6['addRange'](_0x3a21f3);}else{const _0x4df9b1=_0x1d7bfb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ecdb6,this['_model']['createRange'](_0x4ecdb6['getFirstRange']()['start'],_0x4df9b1));}_0x1d7bfb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52d1e0,_0x3912e6){const _0x46d9c1=_0x52d1e0['startsWith']('format')||_0x52d1e0['startsWith']('attribute')?'FORMATTING':_0x52d1e0['toUpperCase']();return o(this['editor']['locale'],_0x3912e6+'_'+_0x46d9c1+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5d7186=this['editor'];if(!_0x5d7186['ui'])return;const {ariaLiveAnnouncer:_0x3700b2}=_0x5d7186['ui'];_0x176e49(this['_model'],({left:_0x116a43,entered:_0xfcba3e})=>{for(const _0x57617d of _0x116a43){const {group:_0x3e64e7,type:_0x2a7174}=this['_splitMarkerName'](_0x57617d['name']);if('suggestion'===_0x3e64e7){_0x3700b2['announce'](this['_getMarkerAnnouncementText'](_0x2a7174,'LEAVE'));break;}}for(const _0x138109 of _0xfcba3e){const {group:_0xe1f4c4,type:_0x19c535}=this['_splitMarkerName'](_0x138109['name']);if('suggestion'===_0xe1f4c4){_0x3700b2['announce'](this['_getMarkerAnnouncementText'](_0x19c535,'ENTER'));break;}}});}['_processAttributeChanges'](_0x14ebaf){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb10b48=this['editor'],_0x2038c9=_0xb10b48['model']['document']['differ']['getChanges']();if(0x0==_0x2038c9['length'])return!0x1;const _0x5d3ef3=[],_0x36ba43=_0x2038c9['filter'](_0x2fbbfb=>'attribute'==_0x2fbbfb['type']),_0x270639=_0x2038c9['filter'](_0x575f9b=>'insert'==_0x575f9b['type']&&'$text'!=_0x575f9b['name']),_0x488379=_0x2038c9['filter'](_0x2cfcee=>'remove'==_0x2cfcee['type']&&'$text'!=_0x2cfcee['name']);for(const _0x441ba1 of _0x36ba43)_0x5d3ef3['push']({'key':_0x441ba1['attributeKey'],'newValue':_0x441ba1['attributeNewValue'],'oldValue':_0x441ba1['attributeOldValue'],'range':Ot(_0x441ba1['range'],_0xb10b48['model'])});for(const _0x37c02e of _0x270639){const _0x3dca13=_0x488379['find'](_0x4ec98a=>_0x4ec98a['position']['isEqual'](_0x37c02e['position']));_0x3dca13&&_0x5d3ef3['push']({'key':m,'newValue':_0x37c02e['name'],'oldValue':_0x3dca13['name'],'range':_0xb10b48['model']['createRangeOn'](_0x37c02e['position']['nodeAfter'])});}return 0x0!=_0x5d3ef3['length']&&this['_reduceExistingSuggestions'](_0x14ebaf,_0x5d3ef3);}['_processAttributeSuggestions'](_0x4689c3){let _0x3d3e21=!0x1;const _0x26533=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4eae86=>_0x4eae86['data']['newRange']&&_0x4eae86['name']['startsWith']('suggestion:attribute:'));for(const _0x3c0d77 of _0x26533){const {subType:_0x5420cf,id:_0x315b11}=this['_splitMarkerName'](_0x3c0d77['name']),_0x80e61f=_0x5420cf['split']('|')[0x0];for(const _0x326216 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x326216['id']!=_0x315b11&&'attribute'==_0x326216['type']&&_0x326216['data']&&_0x326216['data']['key']==_0x80e61f&&_0x326216['getFirstRange']()['isIntersecting'](_0x3c0d77['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x326216,_0x3c0d77['data']['newRange'],_0x4689c3),_0x3d3e21=!0x0);}return _0x3d3e21;}['_recordAttributeChanges'](_0x255c38){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x255c38();}['_isRegisteredAttribute'](_0x322640){const _0x562980=this['_isBlockAttribute'](_0x322640),_0x334bfd=this['_inlineAttributeKeys']['has'](_0x322640);return _0x562980||_0x334bfd;}['_reduceExistingSuggestions'](_0x36370d,_0x1e52b9){if(0x0==_0x1e52b9['length'])return!0x1;let _0x12e6bd=!0x1;for(const _0x5c8571 of _0x1e52b9){const _0x2a7375=this['_findSuggestions'](_0x5c8571['range'],'attribute')['filter'](_0x5cb43e=>!_0x5cb43e['meta']['isNextTo'])['map'](_0x2c5043=>_0x2c5043['suggestion']),_0x47c780=_0x433e2e({'newValue':_0x5c8571['newValue']});_0x2a7375['filter'](_0x1b6d9d=>{const [_0x10b970,_0x6bf369]=_0x1b6d9d['subType']['split']('|');return _0x10b970==_0x5c8571['key']&&_0x6bf369!=_0x47c780;})['forEach'](_0x648ad4=>{this['_reduceSuggestionAttributeRange'](_0x648ad4,_0x5c8571['range'],_0x36370d),_0x12e6bd=!0x0;});}return _0x12e6bd;}['_reduceSuggestionAttributeRange'](_0xc616bf,_0x106c1f,_0x168df5){const _0x435dd6=_0xc616bf['getFirstRange']()['getDifference'](_0x106c1f);0x0!==_0x435dd6['length']?0x1!==_0x435dd6['length']?this['_breakSuggestionMarker'](_0xc616bf,_0x106c1f['start'],_0x106c1f['end']):this['_setSuggestionRange'](_0xc616bf,_0x435dd6[0x0]):_0x168df5['removeMarker'](_0xc616bf['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3fdfa7){this['_editor']=_0x3fdfa7,this['_model']=_0x3fdfa7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c1f21,_0x19b505,_0x388c93,_0x22f16b,_0x32baca,_0x436f60){return new u(this['_model'],{'type':_0x5c1f21,'subType':_0x19b505,'id':_0x388c93,'author':_0x22f16b,'creator':_0x22f16b,'attributes':_0x32baca,'onAttributesChange':_0x436f60,'onAccept':(..._0x3b72bc)=>this['getSuggestionCallback'](_0x5c1f21,_0x19b505,'accept')(..._0x3b72bc),'onDiscard':(..._0x55b438)=>this['getSuggestionCallback'](_0x5c1f21,_0x19b505,'discard')(..._0x55b438)});}['registerCustomCallback'](_0x1f2be1,_0x2a55a5,_0x3506e7,_0x3ed2d9){const _0x1f25f1=_0x1f2be1+':'+_0x2a55a5+':'+_0x3506e7;this['_customCallbacks']['set'](_0x1f25f1,_0x3ed2d9);}['getSuggestionCallback'](_0x3d3c96,_0x2dfcc0,_0x2b65bf){const _0x5a56e4=_0x3d3c96+':'+_0x2dfcc0+':'+_0x2b65bf;return this['_customCallbacks']['get'](_0x5a56e4)||this['_defaultCallbacks']['get'](_0x3d3c96+':'+_0x2b65bf);}['_registerDefaultCallbacks'](){const _0x6519a=()=>!0x1,_0x23e8e7=_0x5e4d2b=>{_0x5e4d2b['sort']((_0x142d21,_0x1e5d97)=>_0x142d21['start']['isBefore'](_0x1e5d97['start'])?0x1:-0x1),this['_model']['change'](_0x33b5c3=>{for(const _0x178bff of _0x5e4d2b){let _0x2fa556;_0x2fa556=_0x178bff['end']['isAtEnd']&&_0x178bff['end']['parent']==_0x178bff['start']['nodeAfter']?_0x33b5c3['createSelection'](_0x178bff['start']['nodeAfter'],'on'):_0x33b5c3['createSelection'](_0x178bff),this['_model']['deleteContent'](_0x2fa556,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43b400=(_0x175607,_0x3e8c3b)=>{_0x3e8c3b&&this['_model']['change'](_0x45d193=>{const {commandName:_0x5a8ae9,commandParams:_0x2f423f=[]}=_0x3e8c3b,_0x42c7a6=_0x175607['map'](_0x194b1b=>(Tt(_0x194b1b)&&(_0x194b1b=this['_model']['createRange'](_0x194b1b['end'])),_0x194b1b))['filter'](_0x388fd0=>'$graveyard'!==_0x388fd0['root']['rootName']);if(_0x42c7a6['length']<0x1)return;const _0x247510=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a42db=>_0x27f355['fromRange'](_0x5a42db));_0x45d193['setSelection'](_0x42c7a6);for(const _0x152040 of this['_editor']['commands']['commands']())_0x152040['refresh']();_0x2f423f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5a8ae9,..._0x2f423f);const _0x4b0180=_0x247510['filter'](_0xf3e484=>'$graveyard'!=_0xf3e484['root']['rootName']);_0x4b0180['length']>0x0&&_0x45d193['setSelection'](_0x4b0180);for(const _0x46d4cb of _0x247510)_0x46d4cb['detach']();});},_0x3fc1bc=(_0x2dcdb8,_0x147fff)=>0x1==_0x2dcdb8['length']&&0x1==_0x147fff['length']&&_0x2dcdb8[0x0]['end']['isEqual'](_0x147fff[0x0]['start']),_0x23985d=(_0x17572e,_0x781806,_0x1d2932,_0x3d86b0)=>Ft(_0x17572e,_0x781806,_0x1d2932,_0x3d86b0,this['_model'])?[_0x17572e,_0x781806]:Ft(_0x781806,_0x17572e,_0x3d86b0,_0x1d2932,this['_model'])?[_0x781806,_0x17572e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x6519a),this['_defaultCallbacks']['set']('insertion:discard',_0x23e8e7),this['_defaultCallbacks']['set']('insertion:join',_0x3fc1bc),this['_defaultCallbacks']['set']('insertion:chain',_0x23985d),this['_defaultCallbacks']['set']('deletion:accept',_0x23e8e7),this['_defaultCallbacks']['set']('deletion:discard',_0x6519a),this['_defaultCallbacks']['set']('deletion:join',_0x3fc1bc),this['_defaultCallbacks']['set']('deletion:chain',_0x23985d),this['_defaultCallbacks']['set']('formatInline:accept',_0x43b400),this['_defaultCallbacks']['set']('formatInline:discard',_0x6519a),this['_defaultCallbacks']['set']('formatInline:join',_0x3fc1bc),this['_defaultCallbacks']['set']('formatInline:chain',_0x6519a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43b400),this['_defaultCallbacks']['set']('formatBlock:discard',_0x6519a),this['_defaultCallbacks']['set']('formatBlock:join',_0x3fc1bc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x6519a),this['_defaultCallbacks']['set']('attribute:accept',_0x6519a),this['_defaultCallbacks']['set']('attribute:discard',(_0x55162e,_0x284c2e)=>{if(!_0x284c2e)return;const _0x1ff28b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x443104=>{if(_0x284c2e['key']==m)for(const _0x2dd090 of _0x55162e){const _0x299c72=_0x2dd090['start']['nodeAfter'],_0x5700c1=_0x284c2e['oldValue'];_0x443104['rename'](_0x299c72,_0x5700c1);}else{if(_0x1ff28b['_isBlockAttribute'](_0x284c2e['key'])){for(const _0x521899 of _0x55162e)void 0x0!==_0x284c2e['oldValue']?_0x443104['setAttribute'](_0x284c2e['key'],_0x284c2e['oldValue'],_0x521899['start']['nodeAfter']):_0x443104['removeAttribute'](_0x284c2e['key'],_0x521899['start']['nodeAfter']);}else{for(const _0x159534 of _0x55162e)_0x284c2e['oldValue']?_0x443104['setAttribute'](_0x284c2e['key'],_0x284c2e['oldValue'],_0x159534):_0x443104['removeAttribute'](_0x284c2e['key'],_0x159534);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3fc1bc);}}function Rt(_0x1b7c03,_0x2cd143,_0x45cc62){for(const _0x4a2399 of _0x2cd143['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4a2399['root']==_0x4a2399)return!0x1;if(!_0x45cc62['containsItem'](_0x4a2399))return!0x1;if(_0x1b7c03['isObject'](_0x4a2399)||_0x1b7c03['isLimit'](_0x4a2399))return!0x0;}return!0x1;}function Tt(_0x423ffe){return _0x423ffe['end']['parent']==_0x423ffe['start']['nodeAfter']&&_0x423ffe['end']['isAtStart'];}function Et(_0x1f10dc,_0x435bd1,_0x320d33,_0x2e1284){const _0xd6d847=_0x3b7697=>!_0x3b7697['item']['is']('$textProxy')&&!_0x2e1284['isObject'](_0x3b7697['item']),_0xb9deb6=_0x1f10dc['start']['getLastMatchingPosition'](_0xd6d847),_0x20eaaf=_0x1f10dc['end']['getLastMatchingPosition'](_0xd6d847,{'direction':'backward'});return(!_0x1f10dc['start']['isEqual'](_0xb9deb6)||!_0x1f10dc['end']['isEqual'](_0x20eaaf))&&(_0xb9deb6['isBefore'](_0x20eaaf)?_0x320d33['updateMarker'](_0x435bd1,{'range':_0x320d33['createRange'](_0xb9deb6,_0x20eaaf)}):_0x320d33['removeMarker'](_0x435bd1),!0x0);}function Vt(_0x9ec343){return _0x433e2e(_0x9ec343);}function Ut(_0x1a3ba0){const _0x230b9a=_0x1a3ba0['start']['nodeAfter'];return _0x230b9a&&_0x230b9a['is']('element');}function Ot(_0x2db7b2,_0x1c88b6){return null==_0x2db7b2['end']['nodeBefore']&&_0x2db7b2['end']['parent']==_0x2db7b2['start']['nodeAfter']?Gt(_0x2db7b2['start']['nodeAfter'],_0x1c88b6):_0x2db7b2;}function Gt(_0x3c7683,_0x113b58){const _0x41b47d=_0x113b58['schema']['isObject'](_0x3c7683)||_0x113b58['schema']['isSelectable'](_0x3c7683);return _0x113b58['createRange'](_0x113b58['createPositionAt'](_0x3c7683,'before'),_0x41b47d?_0x113b58['createPositionAfter'](_0x3c7683):_0x113b58['createPositionAt'](_0x3c7683,'end'));}function Ft(_0x427c44,_0x40f6b7,_0x3e00b3,_0x3fff95,_0x2f4a2c){if(!Pt(_0x427c44,_0x40f6b7))return!0x1;if(_0x3e00b3['end']['isEqual'](_0x3fff95['start']))return!0x0;if(_0x427c44['type']!=_0x40f6b7['type'])return!0x1;if(!_0x3e00b3['end']['isTouching'](_0x3fff95['start']))return!0x1;const _0x3068c7=_0x2f4a2c['createRange'](_0x3e00b3['end'],_0x3fff95['start'])['getWalker']();for(const _0x8b8fd5 of _0x3068c7)if(['elementStart','elementEnd']['includes'](_0x8b8fd5['type'])&&_0x2f4a2c['schema']['isLimit'](_0x8b8fd5['item']))return!0x1;return!0x0;}function Pt(_0x1d44a8,_0x445689,_0x4bd032=[]){return!(!_0x1d44a8['_isDataLoaded']||!_0x445689['_isDataLoaded'])&&_0x5cd547(Bt(_0x1d44a8['attributes'],_0x4bd032),Bt(_0x445689['attributes'],_0x4bd032));}function Lt(_0xd58d08,_0x4d88ca){const _0x55bce0=Ht(_0xd58d08['attributes']),_0x39a885=Ht(_0x4d88ca);if(!_0xd58d08['_isDataLoaded'])return!0x1;for(const _0x487154 of Object['keys'](_0x39a885))if(!_0x5cd547(_0x55bce0[_0x487154],_0x39a885[_0x487154]))return!0x1;return!0x0;}function Ht(_0x1d1359){const _0x549318=Object['assign']({},_0x1d1359);return delete _0x549318['skipNestingCheck'],delete _0x549318['tablePasteChainId'],_0x549318;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x2a7513(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1433ea,_0x53b4e6,_0x5bfc30,_0x28a057){super(),this['model']=_0x53b4e6,this['view']=_0x5bfc30,this['commentThreadController']=_0x28a057,this['_editor']=_0x1433ea,this['_acceptCommand']=_0x1433ea['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1433ea['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1e85f9,_0x587250)=>_0x1e85f9||_0x587250),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x568074=>_0x568074&&this['_editor']['model']['canEditAt'](_0x53b4e6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xcd4d34=>_0xcd4d34&&this['_editor']['model']['canEditAt'](_0x53b4e6['getRanges']())),this['_pendingAction']=null,_0x5bfc30['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5bfc30,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5bfc30,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5bfc30,'change:isDirty',()=>{_0x5bfc30['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 _0x4e8369=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e8369);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x21ef4a{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3ea253,_0x5d7176,_0x2a0fd4,_0x427136){super(_0x3ea253),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d7176['authoredAt']),this['bind']('authoredAt')['to'](_0x5d7176),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5d7176,this['_localUser']=_0x2a0fd4,this['_config']=_0x427136,_0x427136['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:_0x1d8876}=this['_config'];this['commentsListView']=new _0x1d8876(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',_0x81b51f=>_0x81b51f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x53539a,_0x183ae4)=>_0x53539a||!!_0x183ae4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x53db75}=this['_config'],_0xdacd7b=new _0x53db75(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x59d211=_0xdacd7b['commentInputView'];return _0xdacd7b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x59d211,'value',(_0x45e1da,_0x276ca3,_0x3b7fa5)=>!!_0x3b7fa5||_0x45e1da&&!_0x276ca3),_0x59d211['on']('submit',(_0x2270ff,_0x17ac4c)=>{this['fire']('addComment',_0x17ac4c),_0x59d211['editor']['setData']('');}),_0x59d211['on']('cancel',()=>this['focus']()),_0x59d211['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xdacd7b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xa32ff,_0x7e6e8d,_0x3a8934,_0x405971){super(_0xa32ff,_0x7e6e8d,_0x3a8934,_0x405971),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d1e64=>_0x4d1e64&&_0x4d1e64[0x0]?_0x4d1e64[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3deb16,_0x2d7d53)=>{let _0x1c2637='';for(const _0x2d80e1 of _0x3deb16)_0x1c2637+='<p>'+ds(_0x2d80e1['content'],_0x2d80e1['color'])+'</p>';return _0x2d7d53?_0x1c2637:_0x43c02e(_0x1c2637,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xa32ff,'Accept\x20suggestion'),_0x3ddd08['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xa32ff,'Discard\x20suggestion'),_0x3ddd08['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3317b7(_0xa32ff,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4ea355=this['bindTemplate'],_0x42ec62=[{'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':_0x4ea355['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4ea355['to']('authoredAt',_0x3d5d5f=>this['_config']['formatDateTime'](_0x3d5d5f))}]}]},{'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']&&_0x42ec62['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4ddb06={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4ea355['if']('isActive','ck-suggestion-wrapper--active'),_0x4ea355['to']('type',_0x24c9fb=>'ck-suggestion-'+_0x24c9fb),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':_0x42ec62}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4ddb06['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)),_0x4ddb06;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x40d332,_0x4741b9,_0x4ba59d)=>{this['_descriptionElement']['innerHTML']=_0x4ba59d;});}['_createButton'](_0x203fbf,_0x2093a7,_0x305056,_0x3208c5,_0x1e8ef8){const _0x7efcf0=new _0x3ed1f5(this['locale']);return _0x7efcf0['set']({'label':_0x203fbf,'icon':_0x2093a7,'tooltip':!0x0,'tooltipPosition':_0x1e8ef8}),_0x7efcf0['extendTemplate']({'attributes':{'class':_0x305056}}),_0x7efcf0['on']('execute',()=>{this['fire'](_0x3208c5,this['_model']['id']);}),_0x7efcf0;}['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(_0x50142e,_0x2bd23f){let _0x3d2283='';return _0x3d2283+=_0x50142e['split']('*')['map']((_0xe98dd0,_0x1b3224)=>_0x1b3224%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xe98dd0)+'</span>':us(_0xe98dd0))['join'](''),_0x2bd23f&&(_0x3d2283+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2bd23f['value']+'\x22\x20title=\x22'+_0x2bd23f['title']+'\x22></span>'),_0x3d2283;}function us(_0x1350fb){const _0x560fbe=document['createElement']('span');return _0x560fbe['innerText']=_0x1350fb,_0x560fbe['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 _0x4d360f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x505173,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x340c96){super(_0x340c96),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x282bc3=this['editor']['config'];_0x282bc3['define']('trackChanges.SuggestionThreadView',ne),_0x282bc3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x282bc3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc27ddb,_0x751578){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x490402,_0x29ecae]of this['_handleControllerBuffer']){const _0x5e0508=this['_suggestionToController']['has'](_0x490402);_0x5e0508||_0x29ecae?_0x5e0508&&_0x29ecae&&this['_destroyController'](_0x490402):this['_initializeController'](_0x490402);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc27ddb,_0x751578);}['init'](){const _0x4b806b=this['editor'],_0x321375=_0x4b806b['plugins']['get']('TrackChangesEditing'),_0xf4c31c=_0x4b806b['plugins']['get']('Annotations'),_0x3fa2af=_0x4b806b['plugins']['get']('EditorAnnotations'),_0x46c0d8=_0x4b806b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3fa2af['addSourceCollector'](()=>{const _0x74b9cf=[];for(const [_0x89bcc8,_0x3425d1]of Array['from'](this['_suggestionToController'])){const _0x1bea39=_0x89bcc8['getAllAdjacentSuggestions'](),_0x53605e=[];for(const _0x4be6b4 of _0x1bea39){if(!_0x4be6b4['isInContent'])continue;if(_0x4be6b4['isMultiRange']){_0x53605e['push'](..._0x4be6b4['getRanges']());continue;}const _0x49e2d0=_0x4be6b4['getFirstRange']();if(_0x53605e['length']>0x0){const _0x76754a=_0x53605e[0x0]['getJoined'](_0x49e2d0);if(_0x76754a){_0x53605e[0x0]=_0x76754a;continue;}}_0x53605e['push'](_0x49e2d0);}_0x74b9cf['push']([_0x3425d1['view'],_0x53605e]);}return _0x74b9cf;}),this['listenTo'](_0x321375,'suggestionLoaded',(_0x115513,_0x3f217a)=>{this['listenTo'](_0x3f217a,'change:previous',(_0x245668,_0x1f6681,_0x5872e9,_0x3603f2)=>{_0x3f217a['isInContent']&&(null==_0x5872e9?(this['_updateController'](_0x3603f2['head']),this['_handleSuggestionControllerDelayed'](_0x3f217a,!0x1)):(this['_updateController'](_0x5872e9['head']),null==_0x3603f2&&this['_handleSuggestionControllerDelayed'](_0x3f217a,!0x0)));}),null!==_0x3f217a['previous']?this['_updateController'](_0x3f217a['head']):this['_handleSuggestionControllerDelayed'](_0x3f217a,!0x1);}),this['listenTo'](_0x321375,'suggestionUnloaded',(_0x433fd3,_0x35f1d7,_0x3a0ffd)=>{this['stopListening'](_0x35f1d7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x35f1d7),this['_suggestionToController']['has'](_0x35f1d7)&&this['_destroyController'](_0x35f1d7),_0x3a0ffd&&this['_updateController'](_0x3a0ffd['head']);}),this['listenTo'](_0x321375,'suggestionChanged',(_0x14de4b,_0x47a005)=>{this['_updateController'](_0x47a005);}),this['listenTo'](_0xf4c31c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x46c0d8,'addComment',(_0x42d133,{threadId:_0x4dd512,isFromAdapter:_0x2e9cf2})=>{if(_0x2e9cf2||!_0x321375['hasSuggestion'](_0x4dd512))return;const _0x1ee178=_0x321375['getSuggestion'](_0x4dd512);this['_suggestionToController']['get'](_0x1ee178)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2aec6b=this['editor']['plugins']['get']('Annotations'),_0x11a645=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2208ab=Array['from'](_0x2aec6b['activeAnnotations'],_0x6775cd=>_0x6775cd['innerView'])['filter'](_0x178b3c=>this['_viewToController']['has'](_0x178b3c)),_0x4893fd=[];for(const _0x233725 of _0x2208ab){const _0x10503f=this['_viewToController']['get'](_0x233725)['model']['getAllAdjacentSuggestions']();_0x4893fd['push'](..._0x10503f['reduce']((_0x1a76ed,_0x582f0d)=>[..._0x1a76ed,..._0x582f0d['getMarkerNames']()],[]));}_0x11a645['activeMarkers']=_0x4893fd;}['_addUIComponentsToFactory'](){const _0x3a513c=this['editor'],_0x35b13a=_0x3a513c['locale'],_0x27ffb5=o(_0x35b13a,'Track\x20changes'),_0x5525e4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x27ffb5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5774c7 of _0x5525e4)if(ae(_0x5774c7)){const _0x55237a=_0x3a513c['commands']['get'](_0x5774c7['model']['commandName']);_0x5774c7['model']['bind']('isOn','isEnabled')['to'](_0x55237a,'value','isEnabled');}_0x3a513c['ui']['componentFactory']['add']('trackChanges',_0x112799=>this['_createToolbarButton'](_0x112799,_0x5525e4,_0x27ffb5)),_0x3a513c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28f60d=>this['_createMenuBarMenu'](_0x28f60d,_0x5525e4,_0x27ffb5));}['_createToolbarButton'](_0x5ae70f,_0x4c83b3,_0x26eaec){const _0x433524=zt(_0x5ae70f,Zt),_0x1a2433=this['editor']['commands']['get']('trackChanges');_0x433524['buttonView']['set']({'tooltip':_0x26eaec,'label':_0x26eaec,'icon':ie}),_0x433524['buttonView']['bind']('isOn')['to'](_0x1a2433,'value'),_0x433524['buttonView']['on']('execute',()=>{_0x1a2433['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x433524,_0x4c83b3,{'role':'menu'});const _0x1a8f61=[];for(const _0x5e300c of _0x4c83b3)ae(_0x5e300c)&&_0x1a8f61['push'](this['editor']['commands']['get'](_0x5e300c['model']['commandName']));const _0x4c337d=_0x433524['buttonView'];return _0x4c337d['actionView']['unbind']('isEnabled'),_0x4c337d['arrowView']['unbind']('isEnabled'),_0x4c337d['actionView']['bind']('isEnabled')['to'](_0x1a2433,'isEnabled'),_0x4c337d['arrowView']['bind']('isEnabled')['toMany'](_0x1a8f61,'isEnabled',(..._0x5a6689)=>_0x5a6689['some'](_0xbf574d=>_0xbf574d)),_0x433524['on']('execute',_0x14670a=>{this['editor']['execute'](_0x14670a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x433524;}['_createMenuBarMenu'](_0x432bf7,_0x1b8349,_0x15df57){const _0x307063=new Kt(_0x432bf7),_0x4fa168=this['editor']['commands']['get']('trackChanges');_0x307063['buttonView']['set']({'label':_0x15df57,'icon':ie});const _0x17bf49=new Qt(_0x432bf7);for(const _0x23fb79 of _0x1b8349){if('separator'==_0x23fb79['type']){_0x17bf49['items']['add'](new Jt(_0x432bf7));continue;}const _0x279d2c=new Xt(_0x432bf7,_0x307063),_0x590cbc=new Yt(_0x432bf7),_0x2732c8=_0x23fb79['model'];_0x590cbc['bind'](...Object['keys'](_0x2732c8))['to'](_0x2732c8),_0x590cbc['delegate']('execute')['to'](_0x307063),_0x590cbc['on']('execute',()=>{this['editor']['execute'](_0x2732c8['commandName']),this['editor']['editing']['view']['focus']();}),_0x279d2c['children']['add'](_0x590cbc),_0x17bf49['items']['add'](_0x279d2c);}return _0x307063['bind']('isEnabled')['to'](_0x4fa168,'isEnabled'),_0x307063['panelView']['children']['add'](_0x17bf49),_0x307063;}['_initializeController'](_0x5877f3){const _0x31726f=this['editor'],_0x252de1=_0x31726f['config'],_0x3c6171=_0x31726f['plugins']['get']('Annotations'),_0x50a9e6=_0x31726f['plugins']['get']('CommentsRepository'),_0x27c658=_0x31726f['plugins']['get']('EditorAnnotations'),_0x4d78be=_0x31726f['plugins']['get'](_0x505173)['me'],_0x3fb881=_0x252de1['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2a11a8,CommentThreadInputView:_0x16dfc9}=_0x31726f['plugins']['get']('CommentsUI');let _0x520636,_0x2744ba;this['_annotationViews']['has'](_0x5877f3['id'])?(_0x2744ba=this['_annotationViews']['get'](_0x5877f3['id']),_0x520636=_0x2744ba['mainView']):(_0x520636=new _0x3fb881(_0x31726f['locale'],_0x5877f3,_0x4d78be,{'disableComments':this['_disableComments'],'editorConfig':_0x252de1['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x252de1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x252de1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x252de1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x474164(_0x252de1['get']('locale')),'CommentView':_0x252de1['get']('comments')['CommentView'],'CommentsListView':_0x2a11a8,'CommentThreadInputView':_0x16dfc9}),_0x520636['acceptButton']['on']('execute',()=>{_0x31726f['editing']['view']['focus']();}),_0x520636['discardButton']['on']('execute',()=>{_0x31726f['editing']['view']['focus']();}),_0x2744ba=_0x3c6171['createAnnotationView'](this['editor']['locale'],_0x520636),_0x2744ba['bind']('isDirty')['to'](_0x520636,'isDirty'),_0x2744ba['bind']('length')['to'](_0x520636),_0x2744ba['bind']('type')['to'](_0x520636,'type',_0x59a52a=>'suggestion-'+_0x59a52a),this['_annotationViews']['set'](_0x5877f3['id'],_0x2744ba));const _0x4fb999=_0x50a9e6['createCommentThreadController'](_0x5877f3['commentThread'],_0x520636),_0x4e4568=new oe(_0x31726f,_0x5877f3,_0x520636,_0x4fb999),_0x1bffeb=_0x5877f3['getAllAdjacentSuggestions']()['filter'](_0x332f43=>_0x332f43['isInContent']);_0x520636['descriptionParts']=_0x31726f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1bffeb),this['_suggestionToController']['set'](_0x5877f3,_0x4e4568),this['_viewToController']['set'](_0x520636,_0x4e4568);const _0x3ae845=_0x3c6171['createAnnotation']({'view':_0x2744ba,'target':()=>{const _0x5670bd=[],_0x54d171=_0x5877f3['getAllAdjacentSuggestions']()['filter'](_0x5cb43d=>_0x5cb43d['isInContent']);for(const _0x3f65fe of _0x54d171)_0x5670bd['push'](..._0x3f65fe['getMarkers']());return _0x36638a(_0x31726f['editing'],_0x5670bd);},'type':()=>'suggestion-'+_0x4e4568['view']['type']});_0x50a9e6['_bindAnnotationToEditors'](_0x520636,_0x3ae845),_0x3c6171['add'](_0x3ae845),_0x27c658['registerAnnotation'](_0x3ae845);}['_destroyController'](_0x4fa3c8){const _0x4dece3=this['editor']['plugins']['get']('CommentsRepository'),_0x12d1bf=this['editor']['plugins']['get']('Annotations'),_0x772b45=this['_suggestionToController']['get'](_0x4fa3c8),_0x40f5a3=_0x772b45['view'],_0x40c698=_0x12d1bf['getByInnerView'](_0x40f5a3);_0x4dece3['_unbindEditors'](_0x40f5a3),_0x40c698&&_0x12d1bf['remove'](_0x40c698),this['_suggestionToController']['delete'](_0x4fa3c8),this['_viewToController']['delete'](_0x40f5a3),_0x772b45['destroy']();}['_updateController'](_0x555d0f){if(!_0x555d0f['isInContent']||!this['_suggestionToController']['has'](_0x555d0f))return;const _0x571b38=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5847a1=this['_suggestionToController']['get'](_0x555d0f),_0x3345c6=_0x555d0f['getAllAdjacentSuggestions']();_0x5847a1['view']['descriptionParts']=_0x571b38['descriptionFactory']['getDescriptions'](_0x3345c6);}['destroy'](){for(const _0x25fb20 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25fb20);for(const _0x3faf4b of this['_annotationViews']['values']())_0x3faf4b['mainView']['destroy']();super['destroy']();}}function ae(_0x2f2c80){return'model'in _0x2f2c80;}class k extends _0x4d360f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3659b0){this['editor']['plugins']['get'](p)['adapter']=_0x3659b0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5b6e06){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5b6e06);}['getSuggestions']({skipNotAttached:_0xd534ca=!0x1,toJSON:_0x4b690f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xd534ca,'toJSON':_0x4b690f});}['getSuggestion'](_0xfd6cac){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xfd6cac);}}const T=['Pagination'];class P extends _0x4d360f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x25e036=this['editor'];if(_0x25e036['config']['define']('trackChangesData.editorCreator',_0x55b471=>{const _0x1536bc=_0x25e036['model']['document']['getRootNames']()['reduce']((_0x3b4d39,_0x19a41b)=>(_0x3b4d39[_0x19a41b]='',_0x3b4d39),{});return _0x25e036['constructor']['create'](_0x1536bc,_0x55b471);}),'function'!=typeof _0x25e036['config']['get']('trackChangesData')['editorCreator'])throw new _0x3f3ca6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2553b3){return N(this['editor'],!0x0,_0x2553b3);}['getDataWithDiscardedSuggestions'](_0x446d89){return N(this['editor'],!0x1,_0x446d89);}}class D extends _0x4d360f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2e8bdc){super(_0x2e8bdc),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(_0xe9657e){return void 0x0!==_0xe9657e['getRootsAttributes'];}async function N(_0xa16ad3,_0x5b023e,_0x1de6c6){const _0x55569a=_0x109f03(_0xa16ad3,T);_0x55569a['plugins']['push'](p,D),_0x55569a['rootsAttributes']=v(_0xa16ad3)?_0xa16ad3['getRootsAttributes']():void 0x0;const _0x34c447=document['createDocumentFragment'](),_0x44cb75=_0xa16ad3['config']['get']('trackChangesData')['editorCreator'],_0x1f0065=await _0x44cb75(_0x55569a,()=>function(_0x3f9a27){const _0x42fecc=document['createElement']('div');return _0x3f9a27['appendChild'](_0x42fecc),_0x42fecc;}(_0x34c447));!function(_0x2737dc,_0xc3d2e4){const _0x38bb59=_0x2737dc['model']['document']['getRootNames']()['reduce']((_0x52d20e,_0x554a2c)=>(_0x52d20e[_0x554a2c]=_0x2737dc['data']['get']({'rootName':_0x554a2c}),_0x52d20e),{}),_0x4b908e=_0x2737dc['plugins']['get']('Users')['users']['map'](_0x29bed4=>({'id':_0x29bed4['id'],'name':_0x29bed4['name']})),_0x4c37ed=_0x2737dc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f9354=_0x2737dc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d02ba=_0xc3d2e4['plugins']['get']('Users'),_0x1f8198=_0xc3d2e4['plugins']['get']('TrackChangesEditing'),_0x2d8b43=_0xc3d2e4['plugins']['get']('CommentsRepository');for(const _0x1f6c20 of _0x4b908e)_0x2d02ba['getUser'](_0x1f6c20['id'])||_0x2d02ba['addUser'](_0x1f6c20);_0x2d02ba['me']||_0x2d02ba['useAnonymousUser']();for(const _0x25cb17 of _0x3f9354)_0x2d8b43['addCommentThread'](_0x25cb17);for(const _0x14c7a6 of _0x4c37ed)_0x1f8198['addSuggestionData'](_0x14c7a6);_0xc3d2e4['data']['set'](_0x38bb59);}(_0xa16ad3,_0x1f0065),_0x1f0065['execute'](_0x5b023e?'acceptAllSuggestions':'discardAllSuggestions');const _0x120e6b=v(_0x1f0065)?_0x1f0065['getFullData'](_0x1de6c6):_0x1f0065['data']['get'](_0x1de6c6);return await _0x1f0065['destroy'](),_0x120e6b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x4dba3d,PendingActions as _0x8f5a2b,icons as _0x4acb1c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x14c552,ObservableMixin as _0x3d8e5b,uid as _0x5b2e26,insertToPriorityArray as _0x5f01e0,priorities as _0xe9319b,logWarning as _0x19985d,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4b59bb,View as _0x4c1421,ButtonView as _0x1561bc,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 _0x2ee882,hashObject as _0x292841,surroundingMarkersDetector as _0x2e0c46,trimHtml as _0x2a668e,UserView as _0x302e59,getDateTimeFormatter as _0x55d450,getAllMarkersDomElementsSorted as _0x51979d,sanitizeEditorConfig as _0x274820}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x35c4ad,LiveRange as _0x4544ff,LivePosition as _0x415724}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xdf05b2,toWidget as _0x5cb794}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3f8164,set as _0xb62792,isEqual as _0x58edd5,unset as _0x2aebb6,omit as Bt}from'lodash-es';import{Delete as _0x598168,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3f81fa,ShiftEnter as _0x320d60}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4aeba0,_0x50cd73){super(_0x4aeba0),this['_enabledCommands']=_0x50cd73,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 _0x1525c3 of this['editor']['commands']['commands']())_0x1525c3['affectsData']&&!this['_enabledCommands']['has'](_0x1525c3)&&_0x1525c3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1e4b2e of this['editor']['commands']['commands']())_0x1e4b2e['affectsData']&&!this['_enabledCommands']['has'](_0x1e4b2e)&&_0x1e4b2e['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x145119,_0xc05a38){super(_0x145119),this['_suggestions']=_0xc05a38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x56c510){const _0xc17ba7=this['_suggestions']['get'](_0x56c510);if(!_0xc17ba7)throw new _0x14c552('track-changes-accept-suggestion-not-found',this);const _0x5115d3=_0xc17ba7['getRanges']();this['editor']['model']['canEditAt'](_0x5115d3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc17ba7);}}class B extends ts{['_suggestions'];constructor(_0x3b02c5,_0x373135){super(_0x3b02c5),this['_suggestions']=_0x373135,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f051a){const _0x138976=this['_suggestions']['get'](_0x4f051a);if(!_0x138976)throw new _0x14c552('track-changes-discard-suggestion-not-found',this);const _0x18a100=_0x138976['getRanges']();this['editor']['model']['canEditAt'](_0x18a100)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x138976);}}function ss(_0x2c1846){return _0x2c1846['sort']((_0x2e97bc,_0x3aef77)=>'deletion'==_0x2e97bc['type']&&'deletion'!=_0x3aef77['type']?-0x1:'deletion'!=_0x2e97bc['type']&&'deletion'==_0x3aef77['type']?0x1:0x0);}function to(_0x14d417,_0x28a66b){let _0x5909dd,_0x2286a0=0x0;const _0x5e04c9=[],_0x49b229=_0x28a66b['schema'];for(;_0x2286a0<_0x14d417['length'];){const _0x25d825=_0x14d417[_0x2286a0],_0x51b008=_0x14d417[_0x2286a0+0x1];_0x5909dd||(_0x5909dd=_0x28a66b['createPositionBefore'](_0x25d825)),co(_0x28a66b,_0x25d825,_0x51b008)||(_0x5e04c9['push'](_0x28a66b['createRange'](_0x5909dd,_0x49b229['isObject'](_0x25d825)?_0x28a66b['createPositionAfter'](_0x25d825):_0x28a66b['createPositionAt'](_0x25d825,'end'))),_0x5909dd=null),_0x2286a0++;}return _0x5e04c9;}function co(_0x50d12d,_0x3aa8c7,_0x484258){if(!_0x484258)return!0x1;const _0x36bdd5=_0x50d12d['createPositionAfter'](_0x3aa8c7),_0x49cf7a=_0x50d12d['createPositionBefore'](_0x484258);return _0x36bdd5['isTouching'](_0x49cf7a);}function rs(_0x21490d,_0x2af438,_0x360e45){for(;_0x360e45['length'];){const _0x44c5a2=_0x360e45['splice'](0x0,0x64);_0x21490d['change'](()=>{for(const _0x2e470d of _0x44c5a2)_0x2e470d['isInContent']&&_0x2af438['execute'](_0x2e470d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x47c2ec,_0x1ac696,_0x32b292){super(_0x47c2ec),this['_command']=_0x1ac696,this['_suggestions']=_0x32b292,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e9df4=Array['from'](this['_suggestions']['values']())['some'](_0x269673=>_0x269673['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5e9df4;}['execute'](){const _0x23e1f3=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4d8ee1 of _0x23e1f3){const _0x189324=_0x4d8ee1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x189324))return;}rs(this['editor']['model'],this['_command'],_0x23e1f3);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x14588a,_0x286f78,_0x533197){super(_0x14588a),this['_command']=_0x286f78,this['_suggestions']=_0x533197,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x10ed10=this['editor']['model']['document']['selection'],_0x10db98=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x13651c,_0x4df950){const _0x1ac0f5=Array['from'](_0x13651c['getRanges']()),_0x12ada6=new Set();for(const _0x4ef36d of _0x4df950)if(_0x4ef36d['isInContent']){for(const _0x514667 of _0x1ac0f5)for(const _0x2299ad of _0x4ef36d['getRanges']())(_0x514667['isIntersecting'](_0x2299ad)||_0x13651c['isCollapsed']&&!_0x4ef36d['isMultiRange']&&_0x4ef36d['next']&&_0x2299ad['end']['isTouching'](_0x514667['start']))&&_0x12ada6['add'](_0x4ef36d);}return _0x12ada6;}(_0x10ed10,_0x10db98),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xcbcd57=ss(Array['from'](this['_selectedSuggestions']));for(const _0x14c681 of _0xcbcd57){const _0x2909eb=_0x14c681['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2909eb))return;}rs(this['editor']['model'],this['_command'],_0xcbcd57);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x3d8e5b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5602dd,_0x2a2706){super(),this['id']=_0x2a2706['id'],this['type']=_0x2a2706['type'],this['subType']=_0x2a2706['subType']||null,this['author']=_0x2a2706['author'],this['creator']=_0x2a2706['creator']||_0x2a2706['author'],this['isExternal']=Boolean(_0x2a2706['attributes']&&_0x2a2706['attributes']['@external']),this['data']=null,this['_model']=_0x5602dd,this['_onAccept']=_0x2a2706['onAccept'],this['_onDiscard']=_0x2a2706['onDiscard'],this['_onAttributesChange']=_0x2a2706['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a2706['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 _0x121612=this;for(;_0x121612['previous'];)_0x121612=_0x121612['previous'];return _0x121612;}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'](_0x464bbf){this['_markerNames']['add'](_0x464bbf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x22677d=>this['_model']['markers']['get'](_0x22677d))['filter'](_0x1b60c3=>_0x1b60c3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x50cdb8=>{for(const _0x42e6c1 of this['getMarkers']())_0x50cdb8['removeMarker'](_0x42e6c1);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d8e1b){this['_model']['change'](_0x220b78=>{_0x220b78['removeMarker'](_0x3d8e1b);}),this['_markerNames']['delete'](_0x3d8e1b);}['addRange'](_0x5114e5){const _0x1a2f43='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a2f43),this['_model']['change'](_0x64c663=>{_0x64c663['addMarker'](_0x1a2f43,{'range':_0x5114e5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x302c50){for(const _0x661c8c of this['getRanges']())if(_0x661c8c['isIntersecting'](_0x302c50))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xdf715f=>_0xdf715f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x40691f,_0x2fcf20)=>[..._0x40691f,..._0x2fcf20['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x43035e=this['getRanges']();if(0x1!=_0x43035e['length'])return null;const _0x527d66=_0x43035e[0x0],_0x507e34=_0x527d66['start']['nodeAfter'],_0x47be8a=_0x527d66['end']['nodeBefore'];return _0x507e34 instanceof _0x35c4ad?_0x507e34!=_0x47be8a?null:_0x507e34: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 _0x7ba879=[];let _0x47f4ea=this['head'];for(;_0x47f4ea;)_0x7ba879['push'](_0x47f4ea),_0x47f4ea=_0x47f4ea['next'];return _0x7ba879;}['setAttribute'](_0x253c29,_0x599aeb){const _0x1ca178=_0x3f8164(this['attributes']);_0xb62792(_0x1ca178,_0x253c29,_0x599aeb),_0x58edd5(_0x1ca178,this['attributes'])||(this['attributes']=_0x1ca178,this['_onAttributesChange'](_0x1ca178));}['removeAttribute'](_0x3f007d){const _0xd33d76=_0x3f8164(this['attributes']);_0x2aebb6(_0xd33d76,_0x3f007d),_0x58edd5(_0xd33d76,this['attributes'])||(this['attributes']=_0xd33d76,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 _0x5b2e26()['substr'](0x1,0x5);}}function o(_0x794f84,_0x3d9cdd,_0x43121a){const t=_0x794f84['t'];switch(_0x3d9cdd){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',_0x43121a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x43121a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x43121a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x43121a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x43121a);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',_0x43121a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x43121a);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',_0x43121a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x43121a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x43121a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x43121a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x43121a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x43121a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x43121a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x43121a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x43121a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x43121a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x43121a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x43121a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x43121a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x43121a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x43121a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x43121a);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'},_0x43121a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x43121a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x43121a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x43121a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x43121a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x43121a);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'},_0x43121a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x43121a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x43121a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x43121a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x43121a);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'},_0x43121a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x43121a);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'},_0x43121a);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'},_0x43121a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x43121a);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'},_0x43121a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x43121a);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'},_0x43121a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x43121a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x43121a);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'},_0x43121a);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'},_0x43121a);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 _0x3d9cdd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x39a393,_0x5bda54){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x39a393,this['_locale']=_0x5bda54;}['getDescriptions'](_0x776608){const _0x33ff5b=[],_0x2cf138=new Set(),_0x3c7afa=new Set();for(let _0x1c2662=0x0;_0x1c2662<_0x776608['length'];_0x1c2662++){const _0x2dcc34=_0x776608[_0x1c2662];if(!_0x2dcc34['isInContent'])continue;const _0x1407fe=this['_handleCustomCallbackDescription'](_0x2dcc34);if(_0x1407fe){if(null!=_0x2dcc34['subType']){if(_0x2cf138['has'](_0x2dcc34['subType']))continue;_0x2cf138['add'](_0x2dcc34['subType']);}_0x33ff5b['push'](_0x1407fe);}else{if('attribute'!=_0x2dcc34['type'])'insertion'!=_0x2dcc34['type']&&'deletion'!=_0x2dcc34['type']||this['_handleInsertRemoveSuggestionDescription'](_0x33ff5b,_0x2dcc34,_0x776608[_0x1c2662+0x1]);else{const _0x52ce2e=_0x2dcc34['data']['key'];if(_0x3c7afa['has'](_0x52ce2e))continue;_0x3c7afa['add'](_0x2dcc34['data']['key']),_0x52ce2e==m?this['_handleRenameSuggestionDescription'](_0x33ff5b,_0x2dcc34):this['_handleAttributeSuggestionDescription'](_0x33ff5b,_0x2dcc34);}}}return this['_resolveDescriptionItems'](_0x33ff5b);}['registerDescriptionCallback'](_0x27107d){this['_customCallbacks']['push'](_0x27107d);}['registerElementLabel'](_0x526517,_0xb801ce,_0x3de799=_0xe9319b['normal']){'function'==typeof _0x526517?_0x5f01e0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x526517,'label':_0xb801ce,'priority':_0x3de799}):this['_itemLabels']['set'](_0x526517,_0xb801ce);}['registerAttributeLabel'](_0x2886e7,_0x194572){this['_attributeLabels']['set'](_0x2886e7,_0x194572);}['getItemLabel'](_0x268d48,_0x4d56c4=0x1){let _0x2e7621;for(const _0x14d353 of this['_itemLabelsCallbacks'])if(_0x14d353['matchingCallback'](_0x268d48)){_0x2e7621=_0x14d353['label'];break;}return _0x2e7621||(_0x2e7621=this['_itemLabels']['get'](_0x268d48['name'])),_0x2e7621?_0x2e7621(_0x4d56c4):0x1!==_0x4d56c4?_0x4d56c4+'\x20'+_0x268d48['name']+'s':''+_0x268d48['name'];}['_addDescriptionItems'](_0x596ba9,_0x3bac33){const _0x493188=_0x3bac33['getFirstRange']()['getWalker'](),_0x419b4c='insertion'==_0x3bac33['type']?'add':'remove';for(const _0x36002f of _0x493188){const _0x3fdb41=_0x36002f['item'],_0x2bef0e=_0x596ba9[_0x596ba9['length']-0x1];if(_0x3fdb41['is']('$textProxy'))_0x2bef0e&&_0x2bef0e['type']['indexOf']('Container')>-0x1&&_0x596ba9['pop'](),_0x2bef0e&&'text'==_0x2bef0e['type']?_0x2bef0e[_0x419b4c]+=_0x3fdb41['data']:_0x596ba9['push']({'type':'text','add':'add'==_0x419b4c?_0x3fdb41['data']:'','remove':'remove'==_0x419b4c?_0x3fdb41['data']:''});else{if(this['_schema']['isObject'](_0x3fdb41)){const _0x3fa2ac=_0x3fdb41;if(_0x2bef0e&&_0x2bef0e['type']['indexOf']('Container')>-0x1&&_0x596ba9['pop'](),'elementEnd'==_0x36002f['type'])continue;_0x2bef0e&&_0x2bef0e['type']==_0x419b4c+'Object'&&_0x2bef0e['element']['name']==_0x3fa2ac['name']?_0x2bef0e['quantity']++:_0x596ba9['push']({'type':_0x419b4c+'Object','element':_0x3fa2ac,'quantity':0x1}),_0x493188['skip'](_0x5415ad=>!('elementEnd'==_0x5415ad['type']&&_0x5415ad['item']==_0x3fdb41));}else{if(this['_schema']['checkChild'](_0x3fdb41,'$text')||_0x3fdb41['is']('element','softBreak')){const _0x225363=_0x3fdb41;if('add'==_0x419b4c&&'elementStart'==_0x36002f['type']||'remove'==_0x419b4c&&'elementEnd'==_0x36002f['type'])continue;if(_0x2bef0e&&-0x1==_0x2bef0e['type']['indexOf']('Container')){'text'==_0x2bef0e['type']&&(_0x2bef0e[_0x419b4c]+='\x0a');continue;}let _0x29d35e;if(_0x29d35e='add'==_0x419b4c?_0x225363['nextSibling']&&!this['_schema']['isObject'](_0x225363['nextSibling'])?_0x225363['nextSibling']:null:_0x225363['previousSibling']&&!this['_schema']['isObject'](_0x225363['previousSibling'])?_0x225363['previousSibling']:null,_0x225363['isEmpty']||_0x29d35e&&_0x29d35e['isEmpty']){const _0xa39b03=_0x29d35e&&_0x29d35e['isEmpty']?_0x29d35e:_0x225363;_0x2bef0e&&_0x2bef0e['type']==_0x419b4c+'EmptyContainer'&&_0x2bef0e['element']['name']==_0xa39b03['name']?_0x2bef0e['quantity']++:_0x596ba9['push']({'type':_0x419b4c+'EmptyContainer','element':_0xa39b03,'quantity':0x1});}else _0x596ba9['push']({'type':_0x419b4c+'Container','element':_0x225363});}}}}}['_resolveDescriptionItems'](_0x31b01d){const _0x57c031=this['_locale'],_0x2ddeda=[],_0x1e71aa=[],_0x1c1b96=[];for(const _0x35d286 of _0x31b01d)switch(_0x35d286['type']){case'text':if(_0x35d286['add']=_0x35d286['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35d286['remove']=_0x35d286['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35d286['add']&&''!=_0x35d286['remove']){_0x2ddeda['push']({'type':'replace','content':o(_0x57c031,'REPLACE_TEXT',['\x22'+_0x35d286['remove']+'\x22','\x22'+_0x35d286['add']+'\x22'])});continue;}if(null!=_0x35d286['add']['match'](/^ +$/)){_0x2ddeda['push']({'type':'insertion','content':o(_0x57c031,'*Insert:*\x20%0',o(_0x57c031,'ELEMENT_SPACE',_0x35d286['add']['length']))});continue;}if(null!=_0x35d286['remove']['match'](/^ +$/)){_0x2ddeda['push']({'type':'deletion','content':o(_0x57c031,'*Remove:*\x20%0',o(_0x57c031,'ELEMENT_SPACE',_0x35d286['remove']['length']))});continue;}if(''!=_0x35d286['add']){_0x2ddeda['push']({'type':'insertion','content':o(_0x57c031,'*Insert:*\x20%0','\x22'+_0x35d286['add']+'\x22')});continue;}_0x2ddeda['push']({'type':'deletion','content':o(_0x57c031,'*Remove:*\x20%0','\x22'+_0x35d286['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ddeda['push']({'type':'insertion','content':o(_0x57c031,'*Insert:*\x20%0',this['getItemLabel'](_0x35d286['element'],_0x35d286['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ddeda['push']({'type':'deletion','content':o(_0x57c031,'*Remove:*\x20%0',this['getItemLabel'](_0x35d286['element'],_0x35d286['quantity']))});continue;case'addContainer':_0x2ddeda['push']({'type':'insertion','content':o(_0x57c031,'*Split:*\x20%0',this['getItemLabel'](_0x35d286['element'],_0x35d286['quantity']))});continue;case'removeContainer':_0x2ddeda['push']({'type':'deletion','content':o(_0x57c031,'*Merge:*\x20%0',this['getItemLabel'](_0x35d286['element'],_0x35d286['quantity']))});continue;case'addFormat':_0x1e71aa['push'](_0x35d286['key']);continue;case'removeFormat':_0x1c1b96['push'](_0x35d286['key']);continue;default:_0x2ddeda['push'](_0x35d286);}if(_0x1e71aa['length']){const _0x494753=_0x1e71aa['map'](_0x126a15=>this['_attributeLabels']['has'](_0x126a15)?this['_attributeLabels']['get'](_0x126a15):_0x126a15)['join'](',\x20');_0x2ddeda['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x494753)});}if(_0x1c1b96['length']){const _0x22b56f=_0x1c1b96['map'](_0x36efbb=>this['_attributeLabels']['has'](_0x36efbb)?this['_attributeLabels']['get'](_0x36efbb):_0x36efbb)['join'](',\x20');_0x2ddeda['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x22b56f)});}return _0x2ddeda;}['_handleCustomCallbackDescription'](_0x153fdb){for(const _0x195307 of this['_customCallbacks']){const _0x174bdd=_0x195307(_0x153fdb);if(_0x174bdd&&'type'in _0x174bdd)return _0x174bdd;}}['_handleAttributeSuggestionDescription'](_0x3f3c69,_0x6045d1){const _0x173b0a=_0x6045d1['data'],_0x5ecf6b=void 0x0===_0x173b0a['newValue']?'removeFormat':'addFormat';_0x3f3c69['push']({'type':_0x5ecf6b,'key':_0x173b0a['key']});}['_handleRenameSuggestionDescription'](_0x45fa67,_0x204c47){_0x45fa67['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x204c47['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x570538,_0x36d6c1,_0x46c743){if(this['_addDescriptionItems'](_0x570538,_0x36d6c1),_0x46c743&&_0x46c743['getFirstRange']()&&!_0x36d6c1['getFirstRange']()['end']['isEqual'](_0x46c743['getFirstRange']()['start'])){const _0x5a14eb=_0x570538[_0x570538['length']-0x1],_0x18d54e='insertion'==_0x36d6c1['type']?'add':'remove';_0x5a14eb&&'text'==_0x5a14eb['type']&&(_0x5a14eb[_0x18d54e]+='\x0a');}}}class E extends _0x4dba3d{['afterInit'](){const _0x9d46a2=this['editor'],_0x2744ef=_0x9d46a2['plugins']['get']('TrackChangesEditing');_0x9d46a2['commands']['get']('showAIAssistant')&&_0x2744ef['enableCommand']('showAIAssistant');}}class V extends _0x4dba3d{['afterInit'](){const _0x220dc6=this['editor'],_0x516167=_0x220dc6['locale'];if(!_0x220dc6['plugins']['has']('AlignmentEditing'))return;const _0xd5e7bf=_0x220dc6['plugins']['get']('TrackChangesEditing');_0xd5e7bf['enableDefaultAttributesIntegration']('alignment'),_0xd5e7bf['registerBlockAttribute']('alignment'),_0xd5e7bf['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x516167,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592c38=this['editor'],_0x255fec=_0x592c38['locale'];_0x592c38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c1961=>{if('formatBlock'!=_0x4c1961['type'])return;const {data:_0x12a872}=_0x4c1961;if(_0x12a872&&'alignment'==_0x12a872['commandName']){const _0xc11433=_0x12a872['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x255fec,'*Format:*\x20%0',function(_0x4b58a7){switch(_0x4b58a7){case'left':return o(_0x255fec,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x255fec,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x255fec,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x255fec,'FORMAT_JUSTIFY_TEXT');}}(_0xc11433))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4dba3d{['afterInit'](){const _0x2a42f6=this['editor'],_0x570974=_0x2a42f6['plugins']['get']('TrackChangesEditing'),_0x72c406=_0x2a42f6['locale'];for(const _0x1856c2 of ti){if(!_0x2a42f6['plugins']['has'](_0x1856c2))continue;const _0x20ba31=_0x1856c2['slice'](0x0,-0x7)['toLowerCase'](),_0x117668='FORMAT_'+_0x20ba31['toUpperCase']();_0x570974['enableDefaultAttributesIntegration'](_0x20ba31),_0x570974['registerInlineAttribute'](_0x20ba31),_0x570974['descriptionFactory']['registerAttributeLabel'](_0x20ba31,o(_0x72c406,_0x117668));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcda735=this['editor'],_0x200679=_0xcda735['locale'],_0x4fe1a6=_0xcda735['plugins']['get']('TrackChangesEditing');function _0x504c18(_0xdd4420,_0x58f5b1){_0x4fe1a6['descriptionFactory']['registerDescriptionCallback'](_0x103f15=>{if('formatInline'!=_0x103f15['type'])return;const {data:_0x418600}=_0x103f15;return _0x418600&&_0x418600['commandName']===_0xdd4420?_0x418600['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x200679,'*Format:*\x20%0',_0x58f5b1)}:{'type':'format','content':o(_0x200679,'*Remove\x20format:*\x20%0',_0x58f5b1)}:void 0x0;});}_0x504c18('bold',o(_0x200679,'FORMAT_BOLD')),_0x504c18('italic',o(_0x200679,'FORMAT_ITALIC')),_0x504c18('underline',o(_0x200679,'FORMAT_UNDERLINE')),_0x504c18('code',o(_0x200679,'FORMAT_CODE')),_0x504c18('strikethrough',o(_0x200679,'FORMAT_STRIKETHROUGH')),_0x504c18('subscript',o(_0x200679,'FORMAT_SUBSCRIPT')),_0x504c18('superscript',o(_0x200679,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4dba3d{['afterInit'](){const _0x5e5798=this['editor'],_0x418b92=_0x5e5798['locale'];if(!_0x5e5798['plugins']['has']('BlockQuoteEditing'))return;const _0x5e5f02=_0x5e5798['plugins']['get']('TrackChangesEditing'),_0x23ca48=this['editor']['commands']['get']('blockQuote');_0x5e5f02['enableCommand']('blockQuote',(_0x350678,_0xf79034={})=>{const _0x11723d=this['editor']['model']['document']['selection'],_0x43a951=_0xf79034&&void 0x0!==_0xf79034['forceValue']?_0xf79034['forceValue']:!_0x23ca48['value'];let _0x97cca8=[];if(_0x43a951){const _0x239d1b=Array['from'](_0x11723d['getSelectedBlocks']())['filter'](_0x8fa7bc=>oo(_0x8fa7bc)||function(_0x182cb1,_0x3426d9){const _0x45455d=_0x3426d9['checkChild'](_0x182cb1['parent'],'blockQuote'),_0x1448f5=_0x3426d9['checkChild'](['$root','blockQuote'],_0x182cb1);return _0x45455d&&_0x1448f5;}(_0x8fa7bc,this['editor']['model']['schema']));_0x97cca8=to(_0x239d1b,_0x5e5798['model']);}else{const _0x118608=Array['from'](_0x11723d['getSelectedBlocks']())['filter'](_0x2a6836=>oo(_0x2a6836));_0x97cca8=to(_0x118608,_0x5e5798['model']);}_0x5e5798['model']['change'](()=>{for(const _0x3fa06c of _0x97cca8)_0x5e5f02['markBlockFormat'](_0x3fa06c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x43a951}]});});}),_0x5e5f02['descriptionFactory']['registerDescriptionCallback'](_0x4a49d9=>{const {data:_0x4a754a}=_0x4a49d9;if(_0x4a754a&&'blockQuote'==_0x4a754a['commandName']){const _0x43b44d=o(_0x418b92,'ELEMENT_BLOCK_QUOTE');return _0x4a754a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x418b92,'*Set\x20format:*\x20%0',_0x43b44d)}:{'type':'format','content':o(_0x418b92,'*Remove\x20format:*\x20%0',_0x43b44d)};}});}}function oo(_0x4c3105){return'blockQuote'==_0x4c3105['parent']['name'];}class G extends _0x4dba3d{['afterInit'](){const _0x2f6c76=this['editor'];_0x2f6c76['plugins']['has']('CaseChange')&&(_0x2f6c76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2f6c76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2f6c76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4dba3d{['afterInit'](){const _0x24b1a1=this['editor'];_0x24b1a1['commands']['get']('ckbox')&&_0x24b1a1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4dba3d{['afterInit'](){const _0x2f8ea0=this['editor'];if(!_0x2f8ea0['plugins']['has']('CodeBlock'))return;const _0x1081bd=_0x2f8ea0['plugins']['get']('TrackChangesEditing'),_0x516fd0=_0x2f8ea0['locale'],_0x328e65=_0x2f8ea0['config']['get']('codeBlock')['languages'],_0x381bda=_0x2f8ea0['commands']['get']('codeBlock');_0x1081bd['enableCommand']('indentCodeBlock'),_0x1081bd['enableCommand']('outdentCodeBlock'),_0x1081bd['enableCommand']('codeBlock',(_0xff088e,_0x53d875={})=>{const _0x256c0e=_0x2f8ea0['model'],_0x1260a0=_0x2f8ea0['model']['document']['selection'],_0x52cb65=_0x53d875&&void 0x0!==_0x53d875['forceValue']?_0x53d875['forceValue']:!_0x381bda['value'];let _0x8249bb;_0x53d875['language']||(_0x53d875['language']=_0x328e65[0x0]['language']),_0x8249bb=_0x52cb65?Array['from'](_0x1260a0['getSelectedBlocks']())['filter'](_0x2d8ef9=>eo(_0x2d8ef9)||function(_0x576ab3,_0x53c161){if(_0x576ab3['is']('rootElement')||_0x53c161['isLimit'](_0x576ab3))return!0x1;return _0x53c161['checkChild'](_0x576ab3['parent'],'codeBlock');}(_0x2d8ef9,_0x256c0e['schema'])):Array['from'](_0x1260a0['getSelectedBlocks']())['filter'](_0x2b1155=>eo(_0x2b1155));const _0x5d73f5=to(_0x8249bb,_0x256c0e);_0x256c0e['change'](()=>{for(const _0x42a19d of _0x5d73f5)_0x1081bd['markBlockFormat'](_0x42a19d,{'commandName':'codeBlock','commandParams':[{..._0x53d875,'forceValue':_0x52cb65}],'formatGroupId':'blockName'});});}),(_0x1081bd['descriptionFactory']['registerElementLabel']('codeBlock',_0x32a0bd=>o(_0x516fd0,'ELEMENT_CODE_BLOCK',_0x32a0bd)),_0x1081bd['descriptionFactory']['registerDescriptionCallback'](_0x2c9122=>{if('formatBlock'!=_0x2c9122['type'])return;const _0x36209a=_0x516fd0['t'],{data:_0x46cec6}=_0x2c9122;if(!_0x46cec6||'codeBlock'!=_0x46cec6['commandName'])return;const _0x32cdd7=_0x46cec6['commandParams'][0x0]['language'],_0x5a212b=_0x36209a(_0x328e65['find'](_0x1f7684=>_0x1f7684['language']===_0x32cdd7)['label'])['toLowerCase']();return _0x46cec6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x516fd0,'*Set\x20format:*\x20%0',o(_0x516fd0,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5a212b+')')}:{'type':'format','content':o(_0x516fd0,'*Remove\x20format:*\x20%0',o(_0x516fd0,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x16d66d){return'codeBlock'==_0x16d66d['name'];}class H extends _0x4dba3d{['afterInit'](){const _0x5dedc8=this['editor'];if(!_0x5dedc8['plugins']['has']('CommentsEditing'))return;_0x5dedc8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1de2ec,_0x519e82,_0x53ec7d){const _0x572b2a=[];for(const _0x17ce73 of _0x519e82['getItems']())_0x17ce73['hasAttribute'](_0x1de2ec)&&_0x572b2a['push'](_0x53ec7d['createRangeOn'](_0x17ce73));return _0x572b2a;}function _e(_0x27a20b,_0x53eb2f,{showActiveMarker:_0x584d3a=!0x0}={}){const _0x551b1b=_0x27a20b['plugins']['get']('TrackChangesEditing');return(_0x126458,_0x522ea5,_0x585e25)=>{if(!_0x585e25['consumable']['test'](_0x522ea5['markerRange'],_0x126458['name']))return;const _0x3a0a1f=_0x522ea5['markerRange']['getWalker'](),_0x5322af=_0x522ea5['markerRange']['start'],_0x15c0fc=_0x27a20b['model']['schema'];let _0x20e23a=null,_0x146f23=null,_0xdc8d07=!0x1,_0x720b79=!0x1;for(const _0x24d746 of _0x3a0a1f){const _0x3f3494=_0x24d746['item'];_0xdc8d07=_0xdc8d07||_0x15c0fc['isContent'](_0x3f3494);const _0x26c65a=_0x585e25['mapper']['toViewElement'](_0x3f3494);if(_0x26c65a&&_0x26c65a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24d746['type']&&(_0x15c0fc['isBlock'](_0x3f3494)&&!_0x15c0fc['isLimit'](_0x3f3494)&&(_0x3f3494['nextSibling']||_0x5322af['isAtEnd']?_0x20e23a&&_0x20e23a['parent']==_0x3f3494||(_0x20e23a=_0x3f3494,_0x343dff(_0x24d746['previousPosition']),_0x720b79=!0x0):_0x146f23=_0x146f23||_0x24d746['previousPosition']));}function _0x343dff(_0x138213){const _0xdb7583=_0x585e25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53eb2f}),_0x2a9653=_0x585e25['mapper']['toViewPosition'](_0x138213);_0x584d3a&&_0x551b1b['activeMarkers']['includes'](_0x522ea5['markerName'])&&_0x585e25['writer']['addClass']('ck-suggestion-marker--active',_0xdb7583),_0x585e25['writer']['insert'](_0x2a9653,_0xdb7583),_0x585e25['mapper']['bindElementToMarker'](_0xdb7583,_0x522ea5['markerName']);}_0xdc8d07||_0x720b79||!_0x146f23||_0x343dff(_0x146f23);};}class q extends _0x4dba3d{static get['requires'](){return[_0x598168];}['init'](){const _0x372828=this['editor'],_0x54e7ed=_0x372828['plugins']['get']('TrackChangesEditing');_0x54e7ed['enableCommand']('delete');const _0x16a3ba=_0x372828['commands']['get']('deleteForward');_0x54e7ed['enableCommand']('deleteForward',(_0x43fe2a,_0x18f07b={})=>{const _0x419080=_0x372828['model']['createSelection'](_0x372828['model']['document']['selection']);_0x419080['isCollapsed']&&_0x372828['model']['modifySelection'](_0x419080,{'direction':'forward','unit':_0x18f07b['unit']});const _0x3adfcb=_0x419080['getFirstRange'](),_0x2e4381=_0x4544ff['fromRange'](_0x3adfcb);let _0x551c7d;_0x43fe2a(_0x18f07b),_0x551c7d='$graveyard'==_0x2e4381['root']['rootName']?_0x372828['model']['createRange'](_0x3adfcb['start']):_0x372828['model']['createRange'](_0x2e4381['start'],_0x2e4381['end']),_0x2e4381['detach'](),_0x372828['model']['enqueueChange'](_0x16a3ba['buffer']['batch'],_0x2b819d=>{_0x16a3ba['buffer']['lock'](),_0x2b819d['setSelection'](_0x2b819d['createRange'](_0x551c7d['end'])),_0x16a3ba['buffer']['unlock']();});}),_0x372828['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x372828,'merge'),{'priority':'high'}),_0x372828['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x114f63,_0x37645f,_0x528234)=>{_0x528234['options']['showSuggestionHighlights']&&_e(_0x372828,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x114f63,_0x37645f,_0x528234);},{'priority':'high'}),_0x372828['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x513099,_0x116b1e,_0x5c194a)=>{const _0x466d72=_0x5c194a['mapper']['markerNameToElements'](_0x116b1e['markerName']);if(_0x466d72){for(const _0x44b993 of _0x466d72)_0x44b993['is']('uiElement')&&(_0x5c194a['mapper']['unbindElementFromMarkerName'](_0x44b993,_0x116b1e['markerName']),_0x5c194a['writer']['remove'](_0x44b993));}},{'priority':'high'});}}class z extends _0x4dba3d{['afterInit'](){const _0x2f8c7d=this['editor'];if(!_0x2f8c7d['plugins']['has']('ListEditing'))return;const _0x1bfa2e=_0x2f8c7d['locale'],_0x4d046b=_0x2f8c7d['plugins']['get']('TrackChangesEditing'),_0x2c52b9=_0x2f8c7d['plugins']['has']('TodoListEditing'),_0x53f020=!!_0x2f8c7d['config']['get']('list.multiBlock');function _0x300f9c(_0x5623bb){return{'type':'format','content':''+o(_0x1bfa2e,'*Set\x20format:*\x20%0',_0x5623bb)};}function _0x3088e2(_0x434de2){return{'type':'format','content':''+o(_0x1bfa2e,'*Remove\x20format:*\x20%0',_0x434de2)};}_0x4d046b['enableDefaultAttributesIntegration']('numberedList'),_0x4d046b['enableDefaultAttributesIntegration']('bulletedList'),_0x4d046b['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d046b['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d046b['enableDefaultAttributesIntegration']('indentList'),_0x4d046b['enableDefaultAttributesIntegration']('outdentList'),_0x4d046b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d046b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d046b['registerBlockAttribute']('listItemId'),_0x4d046b['registerBlockAttribute']('listType'),_0x4d046b['registerBlockAttribute']('listIndent'),_0x53f020&&(_0x4d046b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d046b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2c52b9&&(_0x4d046b['enableDefaultAttributesIntegration']('todoList'),_0x4d046b['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d046b['registerBlockAttribute']('todoListChecked'),_0x4d046b['descriptionFactory']['registerDescriptionCallback'](_0x5e7b90=>{const {data:_0x3e74a4}=_0x5e7b90;if(_0x3e74a4&&'todoListChecked'==_0x3e74a4['key'])return{'type':'format','content':_0x3e74a4['newValue']?o(_0x1bfa2e,'*Check\x20item*'):o(_0x1bfa2e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42e1cf=>{if(_0x42e1cf['batch']['isUndo'])return!0x1;let _0x43fe34=!0x1;const _0x5ddeda=_0x4d046b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51977c=>'todoListChecked'===_0x4d046b['_getAttributeKey'](_0x51977c));for(const _0x4478be of _0x5ddeda){'todo'!=_0x4478be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d046b['_findSuggestions'](_0x4478be['getFirstRange'](),'attribute')['find'](_0x2d0c2d=>'listType'===_0x4d046b['_getAttributeKey'](_0x2d0c2d['suggestion']))||(_0x42e1cf['removeMarker'](_0x4478be['getFirstMarker']()),_0x43fe34=!0x0));}return _0x43fe34;})),_0x4d046b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1bfa2e,'FORMAT_INDENT'));const _0x550b1a={'type':'format','content':''};_0x4d046b['descriptionFactory']['registerDescriptionCallback'](_0x4a6a0c=>{const {data:_0xe24b8}=_0x4a6a0c;if(!_0xe24b8||'listType'!=_0xe24b8['key'])return;let _0x2eb020=_0x4a6a0c['head'];for(;_0x2eb020;){if(_0x2eb020['data']&&(('listStyle'==_0x2eb020['data']['key']||'listMarkerStyle'==_0x2eb020['data']['key'])&&(_0x2eb020['data']['newValue']&&'default'!=_0x2eb020['data']['newValue']||'default'!=_0x2eb020['data']['oldValue']&&!_0xe24b8['newValue'])||!_0x53f020&&_0x2eb020['data']['key']==m))return _0x550b1a;_0x2eb020=_0x2eb020['next'];}if(null==_0xe24b8['newValue'])switch(_0xe24b8['oldValue']){case'bulleted':return _0x3088e2(o(_0x1bfa2e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3088e2(o(_0x1bfa2e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3088e2(o(_0x1bfa2e,'ELEMENT_TODO_LIST'));}switch(_0xe24b8['newValue']){case'bulleted':return _0x300f9c(o(_0x1bfa2e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x300f9c(o(_0x1bfa2e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x300f9c(o(_0x1bfa2e,'ELEMENT_TODO_LIST'));}}),_0x4d046b['descriptionFactory']['registerDescriptionCallback'](_0x2fd580=>{const {data:_0x1fd9cb}=_0x2fd580;if(_0x1fd9cb&&'listIndent'==_0x1fd9cb['key'])return null==_0x1fd9cb['newValue']||null==_0x1fd9cb['oldValue']&&0x0==_0x1fd9cb['newValue']?_0x550b1a:void 0x0;}),_0x4d046b['descriptionFactory']['registerDescriptionCallback'](_0x57ccc4=>{if('attribute'!=_0x57ccc4['type'])return;const {data:_0x2b708d}=_0x57ccc4;if(!_0x2b708d||'listItemId'!=_0x2b708d['key'])return;const _0x1acfa9=le(_0x57ccc4);return'newValue'==_0x1acfa9?{'type':'format','content':o(_0x1bfa2e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1acfa9?{'type':'format','content':o(_0x1bfa2e,'*Split:*\x20list\x20item')}:_0x550b1a;}),_0x2f8c7d['model']['document']['registerPostFixer'](_0x23db0c=>this['listItemIdFixer'](_0x23db0c)),_0x2f8c7d['model']['document']['registerPostFixer'](_0xad6794=>this['noTrackChangesFixer'](_0xad6794)),_0x2f8c7d['model']['document']['registerPostFixer'](_0x158aa5=>this['assureChains'](_0x158aa5)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x476e45){if(_0x476e45['batch']['isUndo']||!_0x476e45['batch']['isLocal'])return!0x1;let _0x2e332f=!0x1;const _0x558da7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x136694=>_0x136694['data']&&'listItemId'==_0x136694['data']['key'])['filter'](_0x4561a7=>_0x4561a7['data']['newValue']&&_0x4561a7['data']['oldValue']);for(const _0x4bd268 of _0x558da7)le(_0x4bd268)||(_0x476e45['removeMarker'](_0x4bd268['getFirstMarker']()),_0x2e332f=!0x0);return _0x2e332f;}['noTrackChangesFixer'](_0x158452){if(_0x158452['batch']['isUndo']||!_0x158452['batch']['isLocal'])return!0x1;const _0x4c97c6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c97c6['trackChangesCommand']['value'])return!0x1;let _0x2118be=!0x1;const _0x359563=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xaea4c6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x43b6f8=>'attribute'==_0x43b6f8['type'])['filter'](_0x16caea=>_0x359563['includes'](_0x16caea['attributeKey']));if(0x0==_0xaea4c6['length'])return _0x2118be;for(const _0x48d6d5 of _0xaea4c6){const _0x20141e=_0x4c97c6['_findSuggestions'](_0x48d6d5['range'],'attribute')['filter'](_0x2ea984=>!_0x2ea984['meta']['isNextTo'])['map'](_0xec695c=>_0xec695c['suggestion'])['filter'](_0x2a9ffd=>{const _0x591f78=_0x4c97c6['_getAttributeKey'](_0x2a9ffd);return _0x359563['includes'](_0x591f78);});if(_0x20141e['length']){for(const _0x5be6fa of _0x20141e)_0x158452['removeMarker'](_0x5be6fa['getFirstMarker']());_0x2118be=!0x0;}}return _0x2118be;}['assureChains'](_0x381894){if(_0x381894['batch']['isUndo']||!_0x381894['batch']['isLocal'])return!0x1;const _0x4555d4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x48377b=!0x1;const _0x3ec760=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1e2300 of _0x4555d4['getSuggestions']({'skipNotAttached':!0x0})){const _0x2157d4=_0x4555d4['_findSuggestions'](_0x1e2300['getFirstRange'](),'attribute')['map'](_0x56a8c6=>_0x56a8c6['suggestion'])['filter'](_0x596105=>_0x596105['data']&&_0x3ec760['includes'](_0x596105['data']['key']));if(!_0x2157d4['length'])continue;const _0x5a1b3a=_0x2157d4[0x0]['head']['attributes']['groupId'];if(!_0x2157d4['every'](_0x26335b=>_0x26335b['attributes']['groupId']===_0x5a1b3a)){for(const _0x2720bf of _0x2157d4)_0x2631e1(_0x2720bf,_0x5a1b3a)&&(_0x48377b=!0x0);}}return _0x48377b;function _0x5b6065(_0x349055,_0x51ba0a){for(const _0x3ce6a0 of _0x4555d4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50d09b=>'attribute'==_0x50d09b['type']&&_0x50d09b['attributes']['groupId']==_0x349055))_0x3ce6a0['setAttribute']('groupId',_0x51ba0a);}function _0x2631e1(_0x172786,_0x4b2cf6){let _0x56f799=_0x172786['head'],_0x1d401b=!0x1;for(;_0x56f799;)_0x56f799['attributes']['groupId']!=_0x4b2cf6&&(_0x5b6065(_0x56f799['attributes']['groupId'],_0x4b2cf6),_0x56f799['setAttribute']('groupId',_0x4b2cf6),_0x1d401b=!0x0),_0x56f799=_0x56f799['next'];return _0x1d401b;}}['_supportLegacySuggestions'](){const _0x4832ad=this['editor'],_0x3ad231=_0x4832ad['locale'],_0x576fc4=_0x4832ad['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x576fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2053a5,_0x569a52){const _0x36c771=[];for(let _0x27fd65 of _0x2053a5)_0x27fd65['start']['nodeAfter']===_0x27fd65['end']['parent']&&(_0x27fd65=_0x4832ad['model']['createRange'](_0x4832ad['model']['createPositionAt'](_0x27fd65['start']['nodeAfter'],0x0))),_0x36c771['push'](_0x27fd65);_0x4832ad['model']['change'](_0x36e62d=>{const _0x446f00=_0x4832ad['model']['document']['selection'],_0xe05ad8=Array['from'](_0x446f00['getRanges']())['map'](_0x4ec171=>_0x4544ff['fromRange'](_0x4ec171));_0x36e62d['setSelection'](_0x36c771),_0x4832ad['commands']['get'](_0x569a52['commandName'])['refresh'](),_0x569a52['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4832ad['execute'](_0x569a52['commandName'],..._0x569a52['commandParams']),_0x36e62d['setSelection'](_0xe05ad8);for(const _0x47b94f of _0xe05ad8)_0x47b94f['detach']();});}),_0x576fc4['descriptionFactory']['registerElementLabel'](function(_0x509745){const _0x2ec24f=!_0x4832ad['model']['schema']['isObject'](_0x509745),_0x265597=_0x509745['previousSibling'],_0x256915=_0x509745['nextSibling'],_0x122c66=_0x509745['getAttribute']('listItemId'),_0x4d8c1d=!_0x265597||_0x265597['getAttribute']('listItemId')!==_0x122c66,_0x5183fc=!_0x256915||_0x256915['getAttribute']('listItemId')!==_0x122c66;return _0x2ec24f&&Boolean(_0x122c66)&&_0x4d8c1d&&_0x5183fc;},_0x4c311f=>o(_0x3ad231,'ELEMENT_LIST_ITEM',_0x4c311f));}['_registerLegacyDescription'](){const _0x577a8e=this['editor'],_0x2878dd=_0x577a8e['locale'];function _0x440297(_0x2e143b){const _0x20ae19=_0x577a8e['commands']['get']('bulletedList')['value'],_0x2091d8=_0x577a8e['commands']['get']('numberedList')['value'];return'numberedList'===_0x2e143b?_0x20ae19:_0x2091d8;}_0x577a8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x227bf4){if('formatBlock'!=_0x227bf4['type'])return;const {data:_0x4abd15}=_0x227bf4;if(!_0x4abd15)return;let _0x557695,_0x1aea9d,_0x386d90,_0x8617a3;switch(_0x4abd15['commandName']){case'bulletedList':_0x386d90=_0x4abd15['commandParams'][0x0]['forceValue'],_0x8617a3=_0x440297(_0x4abd15['commandName']),_0x557695=_0x386d90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8617a3&&_0x577a8e['config']['get']('list.multiBlock')||(_0x557695='*Change\x20to:*\x20%0'),_0x1aea9d={'type':'format','content':o(_0x2878dd,_0x557695,o(_0x2878dd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x386d90=_0x4abd15['commandParams'][0x0]['forceValue'],_0x8617a3=_0x440297(_0x4abd15['commandName']),_0x557695=_0x386d90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8617a3&&_0x577a8e['config']['get']('list.multiBlock')||(_0x557695='*Change\x20to:*\x20%0'),_0x1aea9d={'type':'format','content':o(_0x2878dd,_0x557695,o(_0x2878dd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x557695='*Indent:*\x20%0',_0x1aea9d={'type':'format','content':o(_0x2878dd,_0x557695,o(_0x2878dd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x557695=function(_0x8e9523){const _0x1daf6f=_0x8e9523['getFirstRange']();let _0x3d44d3=_0x1daf6f['start']['nodeAfter'];for(;_0x3d44d3&&_0x1daf6f['containsItem'](_0x3d44d3);){if(_0x3d44d3['getAttribute']('listIndent')>0x0)return!0x1;_0x3d44d3=_0x3d44d3['nextSibling'];}return!0x0;}(_0x227bf4)?o(_0x2878dd,'*Format:*\x20remove\x20from\x20%0',o(_0x2878dd,function(_0x36f173){return'ELEMENT_'+_0x36f173['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x227bf4))):o(_0x2878dd,'*Outdent:*\x20%0',o(_0x2878dd,'ELEMENT_LIST_ITEM')),_0x1aea9d={'type':'format','content':_0x557695};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4abd15['multipleBlocks']&&(_0x557695='*Merge:*\x20%0',_0x1aea9d={'type':'deletion','content':o(_0x2878dd,_0x557695,o(_0x2878dd,'ELEMENT_LIST_ITEM'))});}return _0x1aea9d;});}}function le(_0x2065d2){let _0x19c174=_0x2065d2['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x19c174;){const _0x54a45c=_0x19c174['getAttribute']('listItemId');if(!_0x54a45c)return!0x1;if(_0x54a45c==_0x2065d2['data']['newValue'])return'newValue';if(_0x54a45c==_0x2065d2['data']['oldValue'])return'oldValue';_0x19c174=_0x19c174['previousSibling'];}return!0x1;}class ue extends _0x4dba3d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5d0652=this['editor']['config']['get']('list.properties'),_0x415c28=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d0652['styles']&&(_0x415c28['enableDefaultAttributesIntegration']('listStyle'),_0x415c28['registerBlockAttribute']('listStyle')),_0x5d0652['reversed']&&(_0x415c28['enableDefaultAttributesIntegration']('listReversed'),_0x415c28['registerBlockAttribute']('listReversed')),_0x5d0652['startIndex']&&(_0x415c28['enableDefaultAttributesIntegration']('listStart'),_0x415c28['registerBlockAttribute']('listStart'));const _0x21322c={'type':'format','content':''};_0x415c28['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x40a3f9=this['editor']['locale'];_0x415c28['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x40a3f9,'FORMAT_LIST_REVERSED')),_0x415c28['descriptionFactory']['registerDescriptionCallback'](_0x47af4a=>{const {data:_0x2397e4}=_0x47af4a;if(_0x2397e4&&'listReversed'==_0x2397e4['key'])return null==_0x2397e4['newValue']||0x0==_0x2397e4['newValue']&&null==_0x2397e4['oldValue']?_0x21322c:void 0x0;}),_0x415c28['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x40a3f9,'FORMAT_LIST_START')),_0x415c28['descriptionFactory']['registerDescriptionCallback'](_0x12ade6=>{const {data:_0x1fa71b}=_0x12ade6;if(_0x1fa71b&&'listStart'==_0x1fa71b['key'])return null==_0x1fa71b['newValue']||0x1==_0x1fa71b['newValue']&&null==_0x1fa71b['oldValue']?_0x21322c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2019a9=>{if(_0x2019a9['batch']['isUndo'])return!0x1;let _0x1d9d13=!0x1;const _0x5c5198=_0x415c28['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27a6f1=>{const _0x2de87e=_0x415c28['_getAttributeKey'](_0x27a6f1);return'listStart'==_0x2de87e||'listReversed'==_0x2de87e;});for(const _0x50b3b8 of _0x5c5198){const _0x54f9d1=_0x50b3b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54f9d1||'customNumbered'==_0x54f9d1)continue;_0x415c28['_findSuggestions'](_0x50b3b8['getFirstRange'](),'attribute')['find'](_0x56ca08=>'listType'==_0x415c28['_getAttributeKey'](_0x56ca08['suggestion']))||(_0x2019a9['removeMarker'](_0x50b3b8['getFirstMarker']()),_0x1d9d13=!0x0);}return _0x1d9d13;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1e9d0f){const _0x3360e3=this['editor']['locale'],{data:_0x3f21b3}=_0x1e9d0f,_0x576f2c={'type':'format','content':''};if(!_0x3f21b3||'listStyle'!=_0x3f21b3['key'])return;if(!_0x3f21b3['oldValue'])return'default'==_0x3f21b3['newValue']?_0x576f2c:{'type':'format','content':''+o(_0x3360e3,'*Set\x20format:*\x20%0',o(_0x3360e3,this['_getTranslationKeyForListStyle'](_0x3f21b3['newValue'])))};if(!_0x3f21b3['newValue']){if('default'==_0x3f21b3['oldValue'])return _0x576f2c;let _0x5a0795=_0x1e9d0f['head'];for(;_0x5a0795;){if(_0x5a0795['data']&&'listType'==_0x5a0795['data']['key']&&_0x5a0795['data']['newValue'])return _0x576f2c;_0x5a0795=_0x5a0795['next'];}return{'type':'format','content':''+o(_0x3360e3,'*Remove\x20format:*\x20%0',o(_0x3360e3,this['_getTranslationKeyForListStyle'](_0x3f21b3['oldValue'])))};}if('default'!=_0x3f21b3['newValue'])return{'type':'format','content':''+o(_0x3360e3,'*Set\x20format:*\x20%0',o(_0x3360e3,this['_getTranslationKeyForListStyle'](_0x3f21b3['newValue'])))};let _0x5e0dba=_0x1e9d0f['head'];for(;_0x5e0dba;){if(_0x5e0dba['data']&&'listType'==_0x5e0dba['data']['key']&&_0x5e0dba['data']['newValue']&&_0x5e0dba['data']['oldValue'])return _0x576f2c;_0x5e0dba=_0x5e0dba['next'];}return{'type':'format','content':o(_0x3360e3,'*Set\x20format:*\x20%0',o(_0x3360e3,'ELEMENT_'+_0x1e9d0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x34c34d=this['editor'],_0x1c608c=_0x34c34d['locale'];_0x34c34d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x573d4e=>{if('formatBlock'!=_0x573d4e['type'])return;const {data:_0x4e8a69}=_0x573d4e;if(!_0x4e8a69)return;let _0x1d2a70,_0x3f2fbf;switch(_0x4e8a69['commandName']){case'listStyle':_0x1d2a70='*Change\x20to:*\x20%0',_0x3f2fbf={'type':'format','content':o(_0x1c608c,_0x1d2a70,o(_0x1c608c,this['_getTranslationKeyForListStyle'](_0x4e8a69['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d2a70=_0x4e8a69['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f2fbf={'type':'format','content':o(_0x1c608c,_0x1d2a70)};break;case'listStart':_0x1d2a70='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f2fbf={'type':'format','content':o(_0x1c608c,_0x1d2a70,_0x4e8a69['commandParams'][0x0]['startIndex'])};}return _0x3f2fbf;});}['_getTranslationKeyForListStyle'](_0x1eee3a){return'ELEMENT_'+function(_0x375b55){if(pe['includes'](_0x375b55))return'bulleted';if(ye['includes'](_0x375b55))return'numbered';return null;}(_0x1eee3a)['toUpperCase']()+'_LIST_'+_0x1eee3a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4dba3d{static get['requires'](){return[_0x3f81fa];}['init'](){const _0xa6742e=this['editor'],_0xfb358=_0xa6742e['plugins']['get']('TrackChangesEditing'),_0x216d77=_0xa6742e['commands']['get']('enter');_0xfb358['enableCommand']('enter',()=>{_0xa6742e['model']['change'](_0xad803d=>{const _0x1e4cd0=_0xa6742e['model']['document']['selection'],_0x167ad1=_0x1e4cd0['getFirstPosition'](),_0xdab952=_0x4544ff['fromRange'](_0x1e4cd0['getFirstRange']());if(_0x216d77['enterBlock'](_0xad803d)){const _0x1c0d3e=_0xa6742e['model']['createPositionAt'](_0x167ad1['parent']['nextSibling'],0x0),_0x36cac8=_0xad803d['createRange'](_0x167ad1,_0x1c0d3e);_0xfb358['markInsertion'](_0x36cac8);}else _0xad803d['setSelection'](_0xad803d['createRange'](_0xdab952['end']));_0xdab952['detach'](),_0x216d77['fire']('afterExecute',{'writer':_0xad803d});});}),_0xa6742e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xa6742e,'split'),{'priority':'high'}),_0xa6742e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xfd447c,_0x1efc55,_0x35e4e3)=>{const _0xa99645=_0x35e4e3['mapper']['markerNameToElements'](_0x1efc55['markerName']);if(_0xa99645){for(const _0x11599b of _0xa99645)_0x11599b['hasClass']('ck-suggestion-marker-split')&&(_0x35e4e3['mapper']['unbindElementFromMarkerName'](_0x11599b,_0x1efc55['markerName']),_0x35e4e3['writer']['remove'](_0x11599b));}},{'priority':'high'}),_0xa6742e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1d2033,_0x39a469,_0x1001a8)=>{_0x1001a8['options']['showSuggestionHighlights']&&_e(_0xa6742e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1d2033,_0x39a469,_0x1001a8);},{'priority':'high'});}}class J extends _0x4dba3d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x106510=this['editor']['plugins']['get']('TrackChangesEditing');_0x106510['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x106510['enableCommand']('findNext'),_0x106510['enableCommand']('findPrevious'),_0x106510['enableCommand']('replace'),_0x106510['enableCommand']('replaceAll');}['handleFindCommand'](_0x47c3aa,_0x45fdd3,_0x5cdb10={}){const _0x5e2c33=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47c3aa(_0x51bb23=>('string'==typeof _0x45fdd3?_0x5e2c33['findByTextCallback'](_0x45fdd3,_0x5cdb10):_0x45fdd3)(_0x51bb23)['filter'](_0x34b1a8=>!0x1===this['_isInDeletionRange'](_0x34b1a8,_0x51bb23['item'])),_0x5cdb10);}['_isInDeletionRange'](_0xc4a7c1,_0x14f40d){const _0x399af0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14f40d,_0xc4a7c1['start']),this['editor']['model']['createPositionAt'](_0x14f40d,_0xc4a7c1['end']));for(const _0x5e26c7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x399af0['getIntersection'](_0x5e26c7['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 _0x4dba3d{['afterInit'](){const _0x12054b=this['editor']['locale'],_0x33c3a9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x67056d,commandName:_0x5726f0}of ro)this['editor']['plugins']['has'](_0x67056d)&&(_0x33c3a9['enableDefaultAttributesIntegration'](_0x5726f0),_0x33c3a9['registerInlineAttribute'](_0x5726f0));_0x12054b['t'],_0x33c3a9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x12054b,'FORMAT_FONT_SIZE')),_0x33c3a9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x12054b,'FORMAT_FONT_FAMILY')),_0x33c3a9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x12054b,'FORMAT_FONT_COLOR')),_0x33c3a9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x12054b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe70c73=this['editor'],_0x24ea1b=_0xe70c73['locale'];_0xe70c73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f951a=>{const _0x2da1dc=_0x24ea1b['t'];if('formatInline'!=_0x4f951a['type'])return;const {data:_0x135eeb}=_0x4f951a;if(null!=_0x135eeb){if('fontSize'==_0x135eeb['commandName']){const _0x25dd7b=_0x135eeb['commandParams'][0x0]['value'];if(_0x25dd7b){const _0x1f07cb=_0x2da1dc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x190a22=>_0x190a22['model']==_0x25dd7b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x24ea1b,'*Set\x20font\x20size:*\x20%0',_0x1f07cb)};}return{'type':'format','content':o(_0x24ea1b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x135eeb['commandName']){const _0xb4a2ed=_0x135eeb['commandParams'][0x0]['value'];return _0xb4a2ed?{'type':'format','content':o(_0x24ea1b,'*Set\x20font\x20family:*\x20%0',_0xb4a2ed)}:{'type':'format','content':o(_0x24ea1b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x135eeb['commandName']){const _0x1531dc=_0x135eeb['commandParams'][0x0]['value'];if(_0x1531dc){const _0x424356=_0x4b59bb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x571179=>_0x571179['model']==_0x1531dc);let _0x461dd1=_0x1531dc,_0x516177='';return _0x424356&&(_0x461dd1=_0x424356['label'],_0x516177=_0x2da1dc(_0x461dd1)['toLowerCase']()),{'type':'format','content':o(_0x24ea1b,'*Set\x20font\x20color:*\x20%0',_0x516177)['trim'](),'color':{'value':_0x1531dc,'title':_0x516177||_0x461dd1}};}return{'type':'format','content':o(_0x24ea1b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x135eeb['commandName']){const _0x3d9db0=_0x135eeb['commandParams'][0x0]['value'];if(_0x3d9db0){const _0x3135a0=_0x4b59bb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ba1b9=>_0x2ba1b9['model']==_0x3d9db0);let _0x2dfb1b=_0x3d9db0,_0x48a5a5='';return _0x3135a0&&(_0x2dfb1b=_0x3135a0['label'],_0x48a5a5=_0x2da1dc(_0x2dfb1b)['toLowerCase']()),{'type':'format','content':o(_0x24ea1b,'*Set\x20font\x20background\x20color:*\x20%0',_0x48a5a5)['trim'](),'color':{'value':_0x3d9db0,'title':_0x48a5a5||_0x2dfb1b}};}return{'type':'format','content':o(_0x24ea1b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4dba3d{['afterInit'](){const _0x3489f6=this['editor'],_0xa0e947=_0x3489f6['plugins']['get']('TrackChangesEditing'),_0x2855e5=_0x3489f6['commands']['get']('copyFormat'),_0x3ccd34=_0x3489f6['commands']['get']('pasteFormat');_0x2855e5&&_0x3ccd34&&(_0xa0e947['enableDefaultAttributesIntegration']('pasteFormat'),_0xa0e947['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x401ad2=this['editor'],_0x4de65b=_0x401ad2['locale'];_0x401ad2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae6b2=>{if('formatBlock'!=_0x1ae6b2['type']&&'formatInline'!=_0x1ae6b2['type'])return;const {data:_0x1024f1}=_0x1ae6b2;if(_0x1024f1&&'pasteFormat'===_0x1024f1['commandName']){const _0x4cfdb6=[],_0xd50553=_0x1024f1['commandParams'][0x0];for(const [_0x55328f,_0x1724b5]of Object['entries'](_0xd50553))_0x4cfdb6['push'](so(_0x401ad2,_0x55328f,_0x1724b5));return _0x4cfdb6['length']?{'type':'format','content':o(_0x4de65b,'*Set\x20format\x20to:*\x20%0',_0x4cfdb6['join'](',\x20'))}:{'type':'format','content':o(_0x4de65b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x153864,_0x361152,_0x3a5942){const _0x335885=_0x153864['locale']['t'],_0x478114=_0x361152['split'](/(?=[A-Z])/)['join']('\x20'),_0x554568=_0x335885(_0x478114['charAt'](0x0)['toUpperCase']()+_0x478114['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3a5942)return _0x554568;if('fontColor'===_0x361152||'fontBackgroundColor'===_0x361152){const _0x73c2b8=_0x4b59bb(_0x153864['config']['get']('fontColor.colors'))['find'](_0xfc3723=>_0xfc3723['model']==_0x3a5942);return _0x554568+'\x20('+(_0x73c2b8?_0x335885(_0x73c2b8['label'])['toLowerCase']():_0x3a5942)+')';}if('fontSize'===_0x361152&&isNaN(parseFloat(_0x3a5942))){const _0x442c9f=_0x153864['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x153864['config']['get']('fontSize.options'))['find'](_0x2c8909=>_0x2c8909['model']==_0x3a5942);return _0x554568+'\x20('+(_0x442c9f?_0x335885(_0x442c9f['title'])['toLowerCase']():_0x3a5942)+')';}return _0x554568+'\x20('+_0x3a5942+')';}class Y extends _0x4dba3d{['_headingOptions'];['afterInit'](){const _0x1cd183=this['editor'];if(!_0x1cd183['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1cd183['config']['get']('heading.options');const _0x10c45e=_0x1cd183['locale'],_0x507fdc=_0x1cd183['plugins']['get']('TrackChangesEditing');_0x507fdc['enableDefaultAttributesIntegration']('heading');for(const _0x3f8d6a of this['_headingOptions'])'paragraph'!=_0x3f8d6a['model']&&_0x507fdc['descriptionFactory']['registerElementLabel'](_0x3f8d6a['model'],_0x3afd97=>{const _0x59ef9b=this['_getHeadingLevel'](_0x3f8d6a['model']);return null!==_0x59ef9b?_0x407d(_0x3afd97,_0x59ef9b):_0x226029(_0x3afd97,_0x3f8d6a['title']);});function _0x407d(_0x2a0b0c,_0x4d9c3e){return o(_0x10c45e,'ELEMENT_HEADING',[_0x2a0b0c,_0x4d9c3e]);}function _0x226029(_0x24162e,_0x18585d){return o(_0x10c45e,'ELEMENT_HEADING_CUSTOM',[_0x24162e,_0x18585d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5926b0=this['editor'],_0x2c23d6=_0x5926b0['locale'];function _0x30d1ec(_0x4450d4,_0xa63211){return o(_0x2c23d6,'ELEMENT_HEADING_CUSTOM',[_0x4450d4,_0xa63211]);}_0x5926b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cc31e=>{if('formatBlock'!=_0x1cc31e['type'])return;const {data:_0xe85a45}=_0x1cc31e;if(_0xe85a45&&'heading'==_0xe85a45['commandName']){const _0x309927=_0xe85a45['commandParams'][0x0]['value'],_0x382c49=this['_getHeadingLevel'](_0x309927);if(null!==_0x382c49)return{'type':'format','content':o(_0x2c23d6,'*Change\x20to:*\x20%0',(_0x29b0b9=0x1,_0x3c0e35=_0x382c49,o(_0x2c23d6,'ELEMENT_HEADING',[_0x29b0b9,_0x3c0e35])))};const _0x1d82ff=this['_headingOptions']['find'](_0x470ff9=>_0x470ff9['model']===_0x309927)['title'];return{'type':'format','content':o(_0x2c23d6,'*Change\x20to:*\x20%0',_0x30d1ec(0x1,_0x1d82ff))};}var _0x29b0b9,_0x3c0e35;});}['_getHeadingLevel'](_0x51c666){const _0x33c56f=_0x51c666['match'](/^heading(\d+)/);if(_0x33c56f)return _0x33c56f[0x1];const _0x185745=this['_headingOptions']?.['find'](_0x507e0a=>_0x507e0a['model']==_0x51c666);if(_0x185745&&_0x185745['view']){const _0x3ab104=_0x185745['view'],_0x1341f7=(_0x3ab104['name']??_0x3ab104)['match'](/^h(\d+)/);if(_0x1341f7)return _0x1341f7[0x1];}return null;}}class Z extends _0x4dba3d{['afterInit'](){const _0xad1915=this['editor'];if(!_0xad1915['plugins']['has']('HighlightEditing'))return;const _0x2a0ccc=_0xad1915['plugins']['get']('TrackChangesEditing'),_0x41e0ba=_0xad1915['locale'];_0x2a0ccc['enableDefaultAttributesIntegration']('highlight'),_0x2a0ccc['registerInlineAttribute']('highlight'),_0x2a0ccc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x41e0ba,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x187bcf=this['editor'],_0x3b9ccb=_0x187bcf['locale'];_0x187bcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x181624=>{if('formatInline'!=_0x181624['type'])return;const {data:_0x8df56b}=_0x181624;if(_0x8df56b&&'highlight'==_0x8df56b['commandName']){const _0x4e43c0=_0x3b9ccb['t'],_0x4604f9=_0x8df56b['commandParams'][0x0]['value'];if(_0x4604f9){const _0x1af477=_0x187bcf['config']['get']('highlight.options')['find'](_0x3edc5c=>_0x3edc5c['model']==_0x4604f9),_0x28aa34=_0x4e43c0(_0x1af477['title'])['toLowerCase']();return{'type':'format','content':o(_0x3b9ccb,'*Set\x20highlight:*\x20%0',_0x28aa34),'color':{'value':_0x1af477['color'],'title':_0x1af477['title']}};}return{'type':'format','content':o(_0x3b9ccb,'*Remove\x20highlight*',o(_0x3b9ccb,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4dba3d{['afterInit'](){const _0x4a295d=this['editor'];if(!_0x4a295d['plugins']['has']('HorizontalLineEditing'))return;_0x4a295d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x89669f=_0x4a295d['plugins']['get']('TrackChangesEditing'),_0x5611fb=_0x4a295d['locale'];_0x89669f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x554702=>o(_0x5611fb,'ELEMENT_HORIZONTAL_LINE',_0x554702)),_0x4a295d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x66c795,{writer:_0x2536e6,options:_0x1d7f87})=>{if(!_0x1d7f87['showSuggestionHighlights'])return null;const _0x53e01e=_0x2536e6['createContainerElement']('div'),_0x15eb94=_0x2536e6['createEmptyElement']('hr');return _0x2536e6['addClass']('ck-horizontal-line',_0x53e01e),_0x2536e6['insert'](_0x2536e6['createPositionAt'](_0x53e01e,0x0),_0x15eb94),_0x53e01e;},'converterPriority':'high'});}}class et extends _0x4dba3d{['afterInit'](){const _0x3cf467=this['editor'];if(!_0x3cf467['plugins']['has']('HtmlEmbed'))return;const _0x2a44cc=_0x3cf467['plugins']['get']('TrackChangesEditing'),_0x11577d=_0x3cf467['locale'];_0x2a44cc['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e97c0=>o(_0x11577d,'ELEMENT_HTML_EMBED',_0x1e97c0)),_0x2a44cc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2a44cc['registerBlockAttribute']('value'),_0x2a44cc['descriptionFactory']['registerDescriptionCallback'](_0x47aa2e=>{if('attribute'!=_0x47aa2e['type'])return;const {data:_0x1bed21}=_0x47aa2e;if(_0x1bed21&&'value'==_0x1bed21['key']&&_0x47aa2e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x57f4d2=o(_0x11577d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11577d,'*Change\x20%0\x20content*',_0x57f4d2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5360bc=this['editor'],_0x2a1aba=_0x5360bc['locale'];_0x5360bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xff6607=>{if('formatBlock'!=_0xff6607['type'])return;const {data:_0x735034}=_0xff6607;if(_0x735034&&'htmlEmbed'==_0x735034['commandName']){const _0x5396df=o(_0x2a1aba,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2a1aba,'*Change\x20%0\x20content*',_0x5396df)};}});}}class it extends _0x4dba3d{['afterInit'](){const _0x4b8220=this['editor'];if(!_0x4b8220['plugins']['has']('ImageEditing'))return;const _0x63cf5b=_0x4b8220['plugins']['get']('TrackChangesEditing'),_0x43db43=_0x4b8220['plugins']['get']('ImageUtils'),_0x37e516=_0x4b8220['locale'];_0x63cf5b['enableCommand']('insertImage'),_0x63cf5b['descriptionFactory']['registerElementLabel']('imageBlock',_0x36b091=>o(_0x37e516,'ELEMENT_IMAGE',_0x36b091)),_0x63cf5b['descriptionFactory']['registerElementLabel']('imageInline',_0x53a577=>o(_0x37e516,'ELEMENT_INLINE_IMAGE',_0x53a577)),_0x63cf5b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x37e516,'ELEMENT_CAPTION')),_0x4b8220['plugins']['has']('ImageUploadEditing')&&_0x63cf5b['enableCommand']('uploadImage'),_0x4b8220['plugins']['has']('ImageBlockEditing')&&_0x4b8220['plugins']['has']('ImageInlineEditing')&&(_0x63cf5b['enableCommand']('imageTypeInline',(_0x14246c,_0x4d9cc8)=>{const _0x588975=_0x43db43['getClosestSelectedImageElement'](_0x4b8220['model']['document']['selection']);_0x4b8220['model']['change'](()=>{_0x63cf5b['markBlockFormat'](_0x588975,{'commandName':'imageTypeInline','commandParams':[_0x4d9cc8]},[],'convertBlockImageToInline');});}),_0x63cf5b['enableCommand']('imageTypeBlock',(_0xb0905b,_0x5ec967)=>{_0x4b8220['model']['change'](_0x1dd1da=>{let _0x529d94=_0x43db43['getClosestSelectedImageElement'](_0x4b8220['model']['document']['selection']),_0x483826=_0x1dd1da['createRangeOn'](_0x529d94);const _0x3138da=_0x415724['fromPosition'](_0x483826['start'],'toPrevious'),_0x29db72=_0x415724['fromPosition'](_0x483826['end'],'toNext');_0x63cf5b['forceDefaultExecution'](()=>_0xb0905b(_0x5ec967)),_0x529d94=_0x43db43['getClosestSelectedImageElement'](_0x4b8220['model']['document']['selection']),_0x483826=_0x1dd1da['createRangeOn'](_0x529d94);const _0x5c89de=_0x1dd1da['createRange'](_0x3138da,_0x29db72);_0x3138da['detach'](),_0x29db72['detach'](),_0x63cf5b['markBlockFormat'](_0x529d94,{'commandName':'imageTypeInline','commandParams':[_0x5ec967]},[],'convertInlineImageToBlock'),_0x5c89de['start']['isBefore'](_0x483826['start'])&&_0x63cf5b['markInsertion'](_0x1dd1da['createRange'](_0x5c89de['start'],_0x483826['start']),'convertInlineImageToBlock'),_0x483826['end']['isBefore'](_0x5c89de['end'])&&_0x63cf5b['markInsertion'](_0x1dd1da['createRange'](_0x483826['end'],_0x5c89de['end']),'convertInlineImageToBlock');});}),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x63cf5b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x154131])=>{const _0x4d1d76=_0x63cf5b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x132582=_0x154131['start'],_0x16dc5d=_0x154131['end'];const _0x1e0309=_0x4b8220['model']['schema']['getNearestSelectionRange'](_0x132582,'backward'),_0x37dd48=_0x4b8220['model']['schema']['getNearestSelectionRange'](_0x16dc5d,'forward');_0x1e0309['isCollapsed']&&(_0x132582=_0x1e0309['start']),_0x37dd48['isCollapsed']&&(_0x16dc5d=_0x37dd48['end']),_0x4d1d76([_0x4b8220['model']['createRange'](_0x132582,_0x16dc5d)]);}),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18c9fd),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18c9fd)),_0x4b8220['plugins']['has']('ImageCaptionEditing')&&(_0x63cf5b['enableCommand']('toggleImageCaption',(_0x530a3f,_0x2a0cce)=>{const _0x44eb0b=_0x4b8220['plugins']['get']('ImageCaptionUtils');let _0x434367=_0x43db43['getClosestSelectedImageElement'](_0x4b8220['model']['document']['selection']),_0x1e3d94=_0x44eb0b['getCaptionFromImageModelElement'](_0x434367);_0x4b8220['model']['change'](()=>{if(_0x1e3d94)return void _0x63cf5b['markDeletion'](_0x4b8220['model']['createRangeOn'](_0x1e3d94));const _0x109b0e=_0x43db43['isBlockImage'](_0x434367);_0x530a3f(_0x2a0cce),_0x434367=_0x43db43['getClosestSelectedImageElement'](_0x4b8220['model']['document']['selection']),_0x1e3d94=_0x44eb0b['getCaptionFromImageModelElement'](_0x434367),_0x63cf5b['markInsertion'](_0x4b8220['model']['createRangeOn'](_0x1e3d94),_0x109b0e?null:'imageCaption');});}),_0x63cf5b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18c9fd));const _0xbdef3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36f8d3(_0x568f44,_0xb7d7e5){const _0x253124=_0xbdef3e['findIndex'](({type:_0x1779f6,subType:_0x44160b})=>_0x568f44['type']==_0x1779f6&&_0x568f44['subType']==_0x44160b),_0x97d8e=_0xbdef3e['findIndex'](({type:_0x5e5029,subType:_0x13dbd0})=>_0xb7d7e5['type']==_0x5e5029&&_0xb7d7e5['subType']==_0x13dbd0);if(_0x253124<0x0||_0x97d8e<0x0)return!0x1;const _0x3f888d=_0x568f44['getFirstRange'](),_0x16310a=_0xb7d7e5['getFirstRange']();if((0x0==_0x253124||0x1==_0x253124)&&0x2==_0x97d8e&&_0x3f888d['isIntersecting'](_0x16310a))return!0x0;if(0x2==_0x253124&&0x3==_0x97d8e){const _0xa052ef=_0x63cf5b['_findSuggestions'](_0x3f888d,'insertion')['filter'](({suggestion:_0x1f1bef,meta:_0x325b1f})=>_0x325b1f['isOwn']&&'convertInlineImageToBlock'==_0x1f1bef['subType']);if(_0xa052ef['length']>0x1&&_0x16310a['end']['isEqual'](_0x3f888d['start']))return!0x0;if(0x1==_0xa052ef['length']&&(_0x3f888d['start']['isEqual'](_0x16310a['end'])||_0x3f888d['end']['isEqual'](_0x16310a['start'])))return!0x0;}if(0x3==_0x253124&&0x3==_0x97d8e&&_0x3f888d['start']['isBefore'](_0x16310a['start'])){const _0xc605a7=_0x3f888d['end']['nodeAfter'],_0x3ac2d3=_0x16310a['start']['nodeBefore'];return _0x43db43['isBlockImage'](_0xc605a7)&&_0xc605a7===_0x3ac2d3;}return!0x1;}function _0x18c9fd(_0x4b07ad,_0x58927b){return _0x36f8d3(_0x4b07ad,_0x58927b)?[_0x4b07ad,_0x58927b]:_0x36f8d3(_0x58927b,_0x4b07ad)?[_0x58927b,_0x4b07ad]:null;}_0x4b8220['plugins']['has']('ImageResize')&&(_0x63cf5b['enableDefaultAttributesIntegration']('resizeImage'),_0x63cf5b['registerBlockAttribute']('resizedWidth'),_0x63cf5b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x37e516,'FORMAT_IMAGE_SIZE'))),_0x4b8220['plugins']['has']('ImageTextAlternativeEditing')&&(_0x63cf5b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x63cf5b['registerBlockAttribute']('alt')),_0x63cf5b['descriptionFactory']['registerDescriptionCallback'](_0x53d380=>{if(!!_0xbdef3e['find'](({type:_0x1b31fb,subType:_0x1ac7ff})=>_0x53d380['type']==_0x1b31fb&&_0x53d380['subType']==_0x1ac7ff))return _0x53d380['previous']?{}:void 0x0;}),_0x63cf5b['descriptionFactory']['registerDescriptionCallback'](_0x25d458=>{if('insertion'==_0x25d458['type']||'deletion'==_0x25d458['type']){const _0x5af838=_0x25d458['getContainedElement']();if(_0x5af838&&_0x5af838['is']('element','caption'))return{'type':'insertion'==_0x25d458['type']?'addObject':'removeObject','element':_0x5af838,'quantity':0x1};}}),_0x63cf5b['descriptionFactory']['registerDescriptionCallback'](_0x42733c=>'formatBlock'==_0x42733c['type']&&'convertInlineImageToBlock'==_0x42733c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x42733c['type']&&'convertBlockImageToInline'==_0x42733c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x63cf5b['descriptionFactory']['registerDescriptionCallback'](_0x354866=>{if('attribute'!=_0x354866['type'])return;const {data:_0x2eb677}=_0x354866;if(!_0x2eb677||'alt'!=_0x2eb677['key'])return;const _0x371427=_0x2eb677['newValue'];return _0x371427?{'type':'format','content':o(_0x37e516,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x371427+'\x22')}:{'type':'format','content':o(_0x37e516,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf7f1=this['editor'],_0x3a30e4=_0x1bf7f1['locale'];_0x1bf7f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16d757=>{if('formatBlock'!=_0x16d757['type']&&'formatInline'!=_0x16d757['type'])return;const {data:_0x324e08}=_0x16d757;if(_0x324e08){if('imageTextAlternative'==_0x324e08['commandName']){const _0x4dabf2=_0x324e08['commandParams'][0x0]['newValue'];return _0x4dabf2?{'type':'format','content':o(_0x3a30e4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4dabf2+'\x22')}:{'type':'format','content':o(_0x3a30e4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x324e08['commandName']){const _0x536376=_0x324e08['commandParams'][0x0]['width'];return _0x536376?{'type':'format','content':o(_0x3a30e4,'*Set\x20image\x20width:*\x20%0',_0x536376)}:{'type':'format','content':o(_0x3a30e4,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4dba3d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x282303=this['editor']['locale'],_0x5a9dc6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a9dc6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5a9dc6['registerBlockAttribute']('src'),_0x5a9dc6['descriptionFactory']['registerDescriptionCallback'](_0x54e659=>{if('attribute'!=_0x54e659['type'])return;const {data:_0x12dd4c}=_0x54e659;return _0x12dd4c&&'src'==_0x12dd4c['key']?_0x12dd4c['newValue']&&_0x12dd4c['oldValue']?{'type':'format','content':o(_0x282303,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x40a999=this['editor']['plugins']['get']('TrackChangesEditing');_0x40a999['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x40a999['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40a999['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x40a999['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a1263=this['editor'],_0x1f56bd=_0x3a1263['locale'];_0x3a1263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x238f2f=>{if('formatBlock'!=_0x238f2f['type']&&'formatInline'!=_0x238f2f['type'])return;const {data:_0x26bfa3}=_0x238f2f;if(!_0x26bfa3||'replaceImageSource'!=_0x26bfa3['commandName'])return;return{'type':'format','content':o(_0x1f56bd,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4dba3d{['afterInit'](){const _0x3c0d99=this['editor'];if(!_0x3c0d99['plugins']['has']('ImageStyleEditing'))return;const _0x237ec4=_0x3c0d99['plugins']['get']('TrackChangesEditing'),_0x366a5b=_0x3c0d99['plugins']['get']('ImageUtils'),_0x321031={};_0x237ec4['enableCommand']('imageStyle',(_0x1bbd8c,_0x4cf2be)=>{const _0x118875=_0x3c0d99['plugins']['get']('Users')['me'],_0x3a4b78=_0x3c0d99['commands']['get']('imageStyle');let _0x564ad6=_0x366a5b['getClosestSelectedImageElement'](_0x3c0d99['model']['document']['selection']),_0x54f4df=_0x3c0d99['model']['createRangeOn'](_0x564ad6),_0x2eabeb=_0x3a4b78['value'];if(_0x2eabeb==_0x4cf2be['value'])return;const _0x572ef7={'commandName':'imageStyle','commandParams':[_0x4cf2be],'formatGroupId':_0x5b2e26()};_0x3c0d99['model']['change'](()=>{if(_0x237ec4['getSuggestions']()['filter'](_0x3fcfd0=>_0x3fcfd0['isInContent']&&_0x118875==_0x3fcfd0['author']&&('formatBlock'==_0x3fcfd0['type']||'formatInline'==_0x3fcfd0['type'])&&('imageStylePreApply'==_0x3fcfd0['subType']||'imageStylePostApply'==_0x3fcfd0['subType'])&&_0x3fcfd0['getFirstRange']()['isEqual'](_0x54f4df))['forEach'](_0x1381c5=>_0x237ec4['discardSuggestion'](_0x1381c5['head'])),_0x564ad6=_0x366a5b['getClosestSelectedImageElement'](_0x3c0d99['model']['document']['selection']),_0x54f4df=_0x3c0d99['model']['createRangeOn'](_0x564ad6),_0x3a4b78['refresh'](),_0x3c0d99['commands']['get']('imageTypeInline')['refresh'](),_0x3c0d99['commands']['get']('imageTypeBlock')['refresh'](),_0x2eabeb=_0x3a4b78['value'],_0x2eabeb!=_0x4cf2be['value'])return _0x366a5b['isInlineImage'](_0x564ad6)&&_0x3a4b78['shouldConvertImageType'](_0x4cf2be['value'],_0x564ad6)?(_0x1bbd8c({..._0x4cf2be,'setImageSizes':!0x1}),_0x564ad6=_0x366a5b['getClosestSelectedImageElement'](_0x3c0d99['model']['document']['selection']),void _0x237ec4['markBlockFormat'](_0x564ad6,{..._0x572ef7,'commandReversedParams':[{'value':_0x2eabeb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x366a5b['isBlockImage'](_0x564ad6)?_0x237ec4['markBlockFormat'](_0x564ad6,_0x572ef7,[],'imageStylePostApply'):_0x237ec4['markInlineFormat'](_0x54f4df,_0x572ef7,'imageStylePostApply'));});});for(const _0x2523cf of _0x3c0d99['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x321031[_0x2523cf['name']]=_0x2523cf['title']['toLowerCase']();_0x237ec4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x237ec4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x237ec4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x237ec4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x460300])=>{_0x366a5b['setImageNaturalSizeAttributes'](_0x460300['getContainedElement']());}),_0x237ec4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4ff464,_0x256d89)=>{_0x237ec4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4ff464,{'commandName':_0x256d89['commandName'],'commandParams':_0x256d89['commandReversedParams']});}),_0x237ec4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3b9162,_0x3f2a8f){if(_0x2ef977(_0x3b9162,_0x3f2a8f))return[_0x3b9162,_0x3f2a8f];if(_0x2ef977(_0x3f2a8f,_0x3b9162))return[_0x3f2a8f,_0x3b9162];return null;});const _0x5ab0ae=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ef977(_0x2995a6,_0x4e879b){const _0x52763a=_0x5ab0ae['findIndex'](({type:_0x23ebb4,subType:_0xc89d92})=>_0x2995a6['type']==_0x23ebb4&&_0x2995a6['subType']==_0xc89d92),_0x193d9b=_0x5ab0ae['findIndex'](({type:_0x189f9e,subType:_0x1add3f})=>_0x4e879b['type']==_0x189f9e&&_0x4e879b['subType']==_0x1add3f);if(_0x52763a<0x0||_0x193d9b<0x0)return!0x1;const _0x4f00e9=_0x2995a6['getFirstRange'](),_0x46e61d=_0x4e879b['getFirstRange']();if((0x0==_0x52763a||0x1==_0x52763a)&&0x2==_0x193d9b&&_0x4f00e9['isIntersecting'](_0x46e61d))return!0x0;if(0x2==_0x52763a&&0x3==_0x193d9b){const _0x42c9ae=_0x237ec4['_findSuggestions'](_0x4f00e9,'insertion')['filter'](({suggestion:_0x59cf0c,meta:_0x208058})=>_0x208058['isOwn']&&'convertInlineImageToBlock'==_0x59cf0c['subType']);if(_0x42c9ae['length']>0x1&&_0x46e61d['end']['isEqual'](_0x4f00e9['start']))return!0x0;if(0x1==_0x42c9ae['length']&&(_0x4f00e9['start']['isEqual'](_0x46e61d['end'])||_0x4f00e9['end']['isEqual'](_0x46e61d['start'])))return!0x0;}if(0x3==_0x52763a&&0x3==_0x193d9b&&_0x4f00e9['start']['isBefore'](_0x46e61d['start'])){const _0x1c72e0=_0x4f00e9['end']['nodeAfter'],_0x2651af=_0x46e61d['start']['nodeBefore'];return _0x366a5b['isBlockImage'](_0x1c72e0)&&_0x1c72e0===_0x2651af;}return!0x1;}_0x3c0d99['model']['document']['registerPostFixer'](()=>{let _0x1aff49=!0x1;const _0x43c36e=Array['from'](_0x3c0d99['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9fee8,data:_0x4a44ac}of _0x43c36e){const {group:_0x127bb1,type:_0x1f6cb8,subType:_0x2db753,id:_0x3f50de}=_0x237ec4['_splitMarkerName'](_0x9fee8);if('suggestion'==_0x127bb1&&_0x237ec4['hasSuggestion'](_0x3f50de)){if('formatBlock'==_0x1f6cb8&&('imageStylePreApply'==_0x2db753||'imageStylePostApply'==_0x2db753)){const _0x6f231=_0x237ec4['getSuggestion'](_0x3f50de);if(_0x4a44ac['newRange']){const _0x282383=_0x6f231['getFirstRange']()['getContainedElement']();if(_0x366a5b['isBlockImage'](_0x282383))continue;_0x237ec4['discardSuggestion'](_0x6f231),_0x1aff49=!0x0;}}if('insertion'==_0x1f6cb8&&'imageCaption'==_0x2db753&&!_0x4a44ac['newRange']){const _0x11dc0e=_0x237ec4['getSuggestion'](_0x3f50de);_0x11dc0e['next']&&_0x11dc0e['next']['isInContent']&&(_0x237ec4['discardSuggestion'](_0x11dc0e['next']),_0x1aff49=!0x0);}}}return _0x1aff49;}),this['_registerLegacyDescription'](_0x321031);}['_registerLegacyDescription'](_0x47f3d9){const _0x50712c=this['editor'],_0x36b935=_0x50712c['locale'];_0x50712c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x482bab=>{if('formatBlock'!=_0x482bab['type']&&'formatInline'!=_0x482bab['type'])return;const {data:_0x28f2f8}=_0x482bab;if(!_0x28f2f8||'imageStyle'!=_0x28f2f8['commandName'])return;const _0xe729aa=_0x28f2f8['commandParams'][0x0]['value'];return _0xb9a955('side'===_0xe729aa?o(_0x36b935,'FORMAT_SIDE_IMAGE'):_0x47f3d9[_0xe729aa]||_0xe729aa);function _0xb9a955(_0x8613ec){return{'type':'format','content':o(_0x36b935,'*Format:*\x20%0',_0x8613ec)};}});}}class ot extends _0x4dba3d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2ee08b){super(_0x2ee08b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5151eb=this['editor'],_0x32cbff=_0x5151eb['commands']['get']('importWord'),_0x2da010=_0x5151eb['commands']['get']('trackChanges');_0x32cbff&&(_0x32cbff['on']('execute',(_0x10b8b0,[,_0x28835f])=>{this['_trackChangesValueDuringImport']=_0x2da010['value'],_0x28835f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32cbff,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32cbff,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2da010['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5151eb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x8399e1,_0x1500ae){const {suggestions:_0x5695e0}=_0x1500ae,_0x1d12e7=this['editor']['commands']['get']('trackChanges'),_0x56a87d=_0x1d12e7['value'];this['_trackChangesValueDuringImport']!==_0x56a87d&&(_0x1d12e7['execute'](),this['_trackChangesExecuted']=!0x0),_0x5695e0&&_0x5695e0['forEach'](({id:_0x373490,type:_0x53cebc,author:_0x54f9a5,created_at:_0x290dde})=>{const _0x427f67={'id':_0x373490,'type':_0x53cebc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x54f9a5,'createdAt':_0x290dde?new Date(_0x290dde):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x427f67);});}}class rt extends _0x4dba3d{['afterInit'](){const _0x4275d2=this['editor'],_0x2211ed=_0x4275d2['plugins']['get']('TrackChangesEditing');if(_0x4275d2['plugins']['has']('IndentEditing')&&(_0x2211ed['enableCommand']('indent'),_0x2211ed['enableCommand']('outdent')),_0x4275d2['plugins']['has']('IndentBlock')){for(const _0x357f50 of['indentBlock','outdentBlock'])_0x2211ed['enableDefaultAttributesIntegration'](_0x357f50);}const _0x140e3f=_0x4275d2['locale'];_0x2211ed['registerBlockAttribute']('blockIndent'),_0x2211ed['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x140e3f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x64621e=this['editor'],_0x548443=_0x64621e['locale'],_0x452b8=_0x64621e['plugins']['get']('TrackChangesEditing');_0x452b8['descriptionFactory']['registerDescriptionCallback'](_0x150b66=>{if('formatBlock'!=_0x150b66['type'])return;const {data:_0x5efa64}=_0x150b66;if(!_0x5efa64)return;if('indentBlock'!=_0x5efa64['commandName']&&'outdentBlock'!=_0x5efa64['commandName'])return;const _0x526063=_0x150b66['getItems']()[0x0],_0x30963a=_0x452b8['descriptionFactory']['getItemLabel'](_0x526063);return'indentBlock'==_0x5efa64['commandName']?{'type':'format','content':o(_0x548443,'*Indent:*\x20%0',_0x30963a)}:'outdentBlock'==_0x5efa64['commandName']?{'type':'format','content':o(_0x548443,'*Outdent:*\x20%0',_0x30963a)}:void 0x0;});}}class at extends _0x4dba3d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4dba3d{['afterInit'](){const _0x422f96=this['editor'];if(!_0x422f96['plugins']['has']('LinkEditing'))return;const _0x4ee5d7=_0x422f96['plugins']['get']('TrackChangesEditing'),_0x4d4b0c=_0x422f96['commands']['get']('link');_0x4ee5d7['enableDefaultAttributesIntegration']('link'),_0x4ee5d7['enableDefaultAttributesIntegration']('unlink'),_0x4ee5d7['registerInlineAttribute']('linkHref');for(const _0x3ac782 of _0x4d4b0c['manualDecorators'])_0x4ee5d7['registerInlineAttribute'](_0x3ac782['id']),_0x4ee5d7['descriptionFactory']['registerAttributeLabel'](_0x3ac782['id'],'link\x20('+_0x3ac782['label']['toLowerCase']()+')');_0x4ee5d7['descriptionFactory']['registerDescriptionCallback'](_0x11ec8d=>{if('attribute'!=_0x11ec8d['type'])return;const {data:_0x23d03c}=_0x11ec8d;if(!_0x23d03c||'linkHref'!=_0x23d03c['key'])return;const _0x5b7a8e=_0x23d03c['newValue'],_0x587934=_0x422f96['locale'];return{'type':'format','content':null==_0x5b7a8e?o(_0x587934,'*Remove\x20link*'):o(_0x587934,'*Set\x20link:*\x20%0','\x22'+_0x5b7a8e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x267c39=this['editor'],_0x2bb2c1=_0x267c39['locale'];_0x267c39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10c024=>{if('formatInline'!=_0x10c024['type'])return;const {data:_0x1e594e}=_0x10c024;if(_0x1e594e){if('link'==_0x1e594e['commandName']){const _0x5cee62=_0x1e594e['commandParams'][0x0];return{'type':'format','content':o(_0x2bb2c1,'*Set\x20link:*\x20%0','\x22'+_0x5cee62+'\x22')};}return'unlink'==_0x1e594e['commandName']?{'type':'format','content':o(_0x2bb2c1,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4dba3d{['afterInit'](){const _0xf78b60=this['editor'],_0x5118eb=_0xf78b60['locale'];if(!_0xf78b60['plugins']['has']('LegacyListEditing'))return;const _0xcb04e0=_0xf78b60['plugins']['get']('TrackChangesEditing'),_0x1810fd=_0xf78b60['plugins']['has']('LegacyTodoListEditing');function _0x240c6b(_0x57a8f0){return()=>{const _0x2aaf31=_0xf78b60['model']['document']['selection'],_0x236611=_0xf78b60['commands']['get'](_0x57a8f0);if(_0x236611['value'])return void _0xf78b60['execute']('paragraph',{});const _0x49fef4=_0x57a8f0['slice'](0x0,-0x4),_0x2aa96f=function(_0x9cd5cc,_0x67ca0c,_0x52d9a1){let _0x3e1200=Array['from'](_0x9cd5cc)['filter'](_0x15bb25=>function(_0x2205e0,_0x5631d5){return _0x5631d5['checkChild'](_0x2205e0['parent'],'listItem')&&!_0x5631d5['isObject'](_0x2205e0);}(_0x15bb25,_0x52d9a1));_0x3e1200=_0x3e1200['filter'](_0x324c3a=>!_0x324c3a['is']('element','listItem')||_0x324c3a['getAttribute']('listType')!=_0x67ca0c);const _0x362f5b=new Set();for(const _0xbc17cc of _0x3e1200)_0xbc17cc['is']('element','listItem')?_0x362f5b['add'](me(_0xbc17cc)):_0x362f5b['add'](_0xbc17cc);return Array['from'](_0x362f5b);}(_0x2aaf31['getSelectedBlocks'](),_0x49fef4,_0xf78b60['model']['schema']);_0xf78b60['model']['change'](()=>{for(const _0x4eaf78 of _0x2aa96f)_0xcb04e0['markBlockFormat'](_0x4eaf78,{'commandName':_0x57a8f0,'commandParams':[{'forceValue':!_0x236611['value']}],'formatGroupId':'blockName'},fe(_0x4eaf78));});};}function _0x465053(_0x5af7d8){return()=>{const _0x42ae9e=function(_0x305c65){let _0x5d5ed0=Array['from'](_0x305c65);const _0x5a4351=_0x5d5ed0['findIndex'](_0x1bf0b9=>'listItem'!=_0x1bf0b9['name']);return _0x5a4351>-0x1&&(_0x5d5ed0=_0x5d5ed0['slice'](0x0,_0x5a4351)),_0x5d5ed0;}(_0xf78b60['model']['document']['selection']['getSelectedBlocks']()),_0x321d7d=_0xf78b60['model']['createRange'](_0xf78b60['model']['createPositionAt'](_0x42ae9e[0x0],'before'),_0xf78b60['model']['createPositionAt'](_0x42ae9e[_0x42ae9e['length']-0x1],'end'));_0xf78b60['model']['change'](()=>{_0xcb04e0['markBlockFormat'](_0x321d7d,{'commandName':_0x5af7d8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5e8ee0){const _0x3e7c21=new Set();for(const _0x4320e of _0x5e8ee0){let _0x5dff43=_0x4320e['nextSibling'];for(;_0x5dff43&&_0x5dff43['getAttribute']('listIndent')>_0x4320e['getAttribute']('listIndent');)_0x3e7c21['add'](_0x5dff43),_0x5dff43=_0x5dff43['nextSibling'];}return Array['from'](_0x3e7c21);}(_0x42ae9e));});};}_0xcb04e0['enableCommand']('numberedList',_0x240c6b('numberedList')),_0xcb04e0['enableCommand']('bulletedList',_0x240c6b('bulletedList')),_0x1810fd&&_0xcb04e0['enableCommand']('todoList',_0x240c6b('todoList')),_0xcb04e0['enableCommand']('indentList',_0x465053('indentList')),_0xcb04e0['enableCommand']('outdentList',_0x465053('outdentList')),_0x1810fd&&_0xcb04e0['enableCommand']('checkTodoList',()=>{const _0x141cb6=_0xf78b60['commands']['get']('checkTodoList'),_0x595597=Array['from'](_0x141cb6['_selectedElements']);_0x595597['filter'](_0x585854=>_0x585854['getAttribute']('todoListChecked')!=_0x141cb6['value']),_0xf78b60['model']['change'](()=>{for(const _0x5e3bf2 of _0x595597)_0xcb04e0['markBlockFormat'](_0x5e3bf2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x141cb6['value']}]});});}),_0xcb04e0['descriptionFactory']['registerElementLabel']('listItem',_0x307245=>o(_0x5118eb,'ELEMENT_LIST_ITEM',_0x307245)),_0xcb04e0['descriptionFactory']['registerDescriptionCallback'](_0x4fb3e7=>{if('formatBlock'!=_0x4fb3e7['type']&&'formatInline'!=_0x4fb3e7['type'])return;const {data:_0x56b1f2}=_0x4fb3e7;if(_0x56b1f2){if('numberedList'==_0x56b1f2['commandName']||'bulletedList'==_0x56b1f2['commandName']||'todoList'==_0x56b1f2['commandName'])switch(_0x56b1f2['commandName']['replace']('List','')){case'bulleted':return _0x146bca(o(_0x5118eb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x146bca(o(_0x5118eb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x146bca(o(_0x5118eb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x56b1f2['commandName'])return{'type':'format','content':o(_0x5118eb,'*Indent:*\x20%0',o(_0x5118eb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x56b1f2['commandName'])return{'type':'format','content':o(_0x5118eb,'*Outdent:*\x20%0',o(_0x5118eb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x56b1f2['commandName'])return _0x56b1f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5118eb,'*Check\x20item*')}:{'type':'format','content':o(_0x5118eb,'*Uncheck\x20item*')};}function _0x146bca(_0x1d2566){return{'type':'format','content':o(_0x5118eb,'*Change\x20to:*\x20%0',_0x1d2566)};}});}}function me(_0x237965){const _0x48ae02=_0x237965['getAttribute']('listIndent');if(0x0==_0x48ae02)return _0x237965;let _0x8573ac=_0x237965;for(;_0x237965['previousSibling']&&_0x237965['previousSibling']['is']('element','listItem');){const _0x17b6e1=_0x237965['previousSibling']['getAttribute']('listIndent');if(_0x17b6e1==_0x48ae02)_0x8573ac=_0x237965['previousSibling'];else{if(_0x17b6e1<_0x48ae02)break;}_0x237965=_0x237965['previousSibling'];}return _0x8573ac;}function fe(_0x4c729c){const _0x63ac86=[];if(_0x4c729c['is']('element','listItem')&&_0x4c729c['getAttribute']('listIndent')>0x0){let _0x269a60=_0x4c729c['nextSibling'];for(;_0x269a60&&'listItem'==_0x269a60['name']&&_0x269a60['getAttribute']('listIndent')==_0x4c729c['getAttribute']('listIndent');)_0x63ac86['push'](_0x269a60),_0x269a60=_0x269a60['nextSibling'];}return _0x63ac86;}class K extends _0x4dba3d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x40d949=this['editor']['config']['get']('list.properties'),_0x5964e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x40d949['styles']&&_0x5964e5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x40d949['reversed']&&_0x5964e5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x40d949['startIndex']&&_0x5964e5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5964e5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x38b53b,_0x31432f={}){const _0x5b7ec9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed58d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5b7ec9['markMultiRangeBlockFormat'](_0x3ed58d,{'commandName':'listStyle','commandParams':[{'type':_0x31432f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15de4e,_0x3b2473={}){const _0x20d213=this['editor']['plugins']['get']('TrackChangesEditing'),_0x337edc=this['_getSuggestionBlocks'](_0x3076b8=>_0x3076b8['is']('element','listItem')&&'numbered'===_0x3076b8['getAttribute']('listType'));if(_0x337edc['length']<0x1)return;const _0x3a75de=_0x337edc['map'](_0x44952b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44952b,'before'),this['editor']['model']['createPositionAt'](_0x44952b,0x0)));this['editor']['model']['change'](()=>{_0x20d213['markMultiRangeBlockFormat'](_0x3a75de,{'commandName':'listReversed','commandParams':[{'reversed':_0x3b2473['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x303cdd,_0xdffd2e={}){const _0x4ceac2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x305ce6=this['_getSuggestionBlocks'](_0x1ac4ad=>_0x1ac4ad['is']('element','listItem')&&'numbered'===_0x1ac4ad['getAttribute']('listType'));if(_0x305ce6['length']<0x1)return;const _0x3522f7=_0x305ce6['map'](_0xc9982a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc9982a,'before'),this['editor']['model']['createPositionAt'](_0xc9982a,0x0)));this['editor']['model']['change'](()=>{_0x4ceac2['markMultiRangeBlockFormat'](_0x3522f7,{'commandName':'listStart','commandParams':[{'startIndex':_0xdffd2e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56e8b1){if('formatBlock'!=_0x56e8b1['type']&&'formatInline'!=_0x56e8b1['type'])return;const _0x7e4a7=this['editor']['locale'],{data:_0x2f321e}=_0x56e8b1;if(!_0x2f321e)return;let _0x50f952,_0x14add2;switch(_0x2f321e['commandName']){case'listStyle':_0x50f952='*Change\x20to:*\x20%0',_0x14add2={'type':'format','content':o(_0x7e4a7,_0x50f952,o(_0x7e4a7,this['_getTranslationKeyForListStyle'](_0x2f321e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x50f952=_0x2f321e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14add2={'type':'format','content':o(_0x7e4a7,_0x50f952)};break;case'listStart':_0x50f952='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14add2={'type':'format','content':o(_0x7e4a7,_0x50f952,_0x2f321e['commandParams'][0x0]['startIndex'])};}return _0x14add2;}['_getSuggestionBlocksForListStyle'](){const _0x5a850d=this['editor']['plugins']['get']('LegacyListUtils');let _0x330522=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x330522[0x0]?.['is']('element','listItem')&&_0x330522['unshift'](..._0x5a850d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x330522[_0x330522['length']-0x1]?.['is']('element','listItem')&&_0x330522['push'](..._0x5a850d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x330522=[...new Set(_0x330522)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x330522=_0x330522['filter'](_0x4b053a=>_0x4b053a['is']('element','listItem'))),_0x330522;}['_getSuggestionBlocks'](_0x398135){const _0xa0c595=this['editor']['plugins']['get']('LegacyListUtils');let _0x438f1f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x398135)['map'](_0x5da0a9=>{const _0x56ea13=this['editor']['model']['createPositionAt'](_0x5da0a9,0x0);return[..._0xa0c595['getSiblingNodes'](_0x56ea13,'backward'),..._0xa0c595['getSiblingNodes'](_0x56ea13,'forward')];})['flat']();return _0x438f1f=[...new Set(_0x438f1f)],_0x438f1f;}['_getTranslationKeyForListStyle'](_0x42ce8a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x42ce8a)||'default')['toUpperCase']()+'_LIST_'+_0x42ce8a['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4dba3d{['afterInit'](){const _0x1bf63f=this['editor'];if(!_0x1bf63f['plugins']['has']('MediaEmbedEditing'))return;const _0x3d4dcf=_0x1bf63f['plugins']['get']('TrackChangesEditing'),_0x326380=_0x1bf63f['locale'];_0x3d4dcf['enableCommand']('mediaEmbed'),_0x3d4dcf['descriptionFactory']['registerElementLabel']('media',_0x41ef26=>o(_0x326380,'ELEMENT_MEDIA',_0x41ef26)),_0x1bf63f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x236656,{writer:_0x2b506f,options:_0x280645})=>{if(_0x280645['showSuggestionHighlights'])return _0x2b506f['createEmptyElement']('div');},'converterPriority':'high'}),_0x1bf63f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x321425,_0xde2c7e,_0x582707)=>{_0x582707['options']['showSuggestionHighlights']&&_0x321425['stop']();},{'priority':'high'});}}class gt extends _0x4dba3d{['afterInit'](){const _0x2d0c32=this['editor'];_0x2d0c32['plugins']['has']('MentionEditing')&&_0x2d0c32['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4dba3d{['afterInit'](){const _0x18b2cd=this['editor'],_0x500d15=_0x18b2cd['plugins']['get']('TrackChangesEditing');_0x18b2cd['plugins']['has']('MultiLevelList')&&(_0x500d15['enableDefaultAttributesIntegration']('multiLevelList'),_0x500d15['registerBlockAttribute']('listMarkerStyle'),_0x500d15['descriptionFactory']['registerDescriptionCallback'](_0x560ed0=>this['handleDescriptions'](_0x560ed0)));}['handleDescriptions'](_0x19be90){const _0x3656ac=this['editor']['locale'],{data:_0x3f7ebd}=_0x19be90,_0x1080cb={'type':'format','content':''};if(_0x3f7ebd&&'listMarkerStyle'==_0x3f7ebd['key']){if(!_0x3f7ebd['oldValue'])return{'type':'format','content':o(_0x3656ac,'*Set\x20format:*\x20%0',o(_0x3656ac,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f7ebd['newValue']+')'};if(!_0x3f7ebd['newValue']){let _0x38e9d9=_0x19be90['head'];for(;_0x38e9d9;){if(_0x38e9d9['data']&&'listType'==_0x38e9d9['data']['key']&&_0x38e9d9['data']['newValue'])return _0x1080cb;_0x38e9d9=_0x38e9d9['next'];}return{'type':'format','content':o(_0x3656ac,'*Remove\x20format:*\x20%0',o(_0x3656ac,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f7ebd['oldValue']+')'};}}}}class mt extends _0x4dba3d{['afterInit'](){const _0x37abe8=this['editor'];if(!_0x37abe8['plugins']['has']('PageBreakEditing'))return;_0x37abe8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5d11da=_0x37abe8['plugins']['get']('TrackChangesEditing'),_0xb51c58=_0x37abe8['locale'];_0x5d11da['descriptionFactory']['registerElementLabel']('pageBreak',_0x140b2f=>o(_0xb51c58,'ELEMENT_PAGE_BREAK',_0x140b2f));}}class dt extends _0x4dba3d{['afterInit'](){const _0x4186dd=this['editor'];if(!_0x4186dd['plugins']['has']('Paragraph'))return;const _0x223aac=_0x4186dd['locale'],_0xf332fe=_0x4186dd['plugins']['get']('TrackChangesEditing');_0xf332fe['descriptionFactory']['registerElementLabel']('paragraph',_0x12a6f4=>o(_0x223aac,'ELEMENT_PARAGRAPH',_0x12a6f4)),_0xf332fe['enableDefaultAttributesIntegration']('paragraph'),_0xf332fe['enableCommand']('insertParagraph'),_0x4186dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4186dd),{'priority':'highest'}),_0x4186dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x562f9c,_0x5855b7,_0x1a239b)=>{_0x1a239b['options']['showSuggestionHighlights']&&nr(_0x4186dd,{'showActiveMarker':!0x1})(_0x562f9c,_0x5855b7,_0x1a239b);},{'priority':'highest'});const _0x5a76fc=_0xf332fe['descriptionFactory'];_0x5a76fc['registerDescriptionCallback'](_0x3187ac=>{if('insertion'!==_0x3187ac['type'])return;const {start:_0x32428c,end:_0x231cb7}=_0x3187ac['getFirstRange']();if(!_0x32428c['isTouching'](_0x231cb7)||!_0x32428c['nodeAfter'])return;const _0x4f049d=_0x4186dd['model']['schema'],_0x31adfe=_0x32428c['nodeAfter'];return _0x4f049d['isBlock'](_0x31adfe)&&!_0x4f049d['isLimit'](_0x31adfe)&&_0x4f049d['checkChild'](_0x31adfe,'$text')?{'type':'insertion','content':o(_0x223aac,'*Insert:*\x20%0',_0x5a76fc['getItemLabel'](_0x31adfe,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d2941=this['editor'],_0x2e196e=_0x2d2941['locale'];_0x2d2941['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b7f7e=>{if('formatBlock'!=_0x4b7f7e['type'])return;const {data:_0x5a2212}=_0x4b7f7e;return _0x5a2212&&'paragraph'==_0x5a2212['commandName']?{'type':'format','content':o(_0x2e196e,'*Change\x20to:*\x20%0',o(_0x2e196e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x57c120,{showActiveMarker:_0x30dcd5=!0x0}={}){return(_0xd38d20,_0x3ae355,_0x3f7545)=>{const _0x2799c8=_0x57c120['plugins']['get']('TrackChangesEditing'),_0x15189c=_0x3ae355['markerRange']['start'],_0x564f03=_0x3ae355['markerRange']['end'],_0x42e6d4=_0x57c120['model']['schema'];if(!_0x15189c['isTouching'](_0x564f03)||!_0x15189c['nodeAfter'])return;const _0x24f907=_0x15189c['nodeAfter'];if(_0x42e6d4['isBlock'](_0x24f907)&&!_0x42e6d4['isLimit'](_0x24f907)&&_0x42e6d4['checkChild'](_0x24f907,'$text')){if(!_0x3f7545['consumable']['consume'](_0x3ae355['markerRange'],_0xd38d20['name']))return;const _0x226e37=_0x3f7545['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x129430=_0x3f7545['mapper']['toViewPosition'](_0x564f03);_0x30dcd5&&_0x2799c8['activeMarkers']['includes'](_0x3ae355['markerName'])&&_0x3f7545['writer']['addClass']('ck-suggestion-marker--active',_0x226e37),_0x3f7545['writer']['insert'](_0x129430,_0x226e37),_0x3f7545['mapper']['bindElementToMarker'](_0x226e37,_0x3ae355['markerName']);}};}class pt extends _0x4dba3d{['afterInit'](){const _0x835ca3=this['editor'];if(!_0x835ca3['plugins']['has']('RemoveFormatEditing'))return;_0x835ca3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23a0d1=this['editor'];_0x23a0d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x320f0b=>{if('formatBlock'!=_0x320f0b['type']&&'formatInline'!=_0x320f0b['type'])return;const {data:_0x5a890d}=_0x320f0b;return _0x5a890d&&'removeFormat'==_0x5a890d['commandName']?{'type':'format','content':o(_0x23a0d1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4dba3d{['afterInit'](){const _0x1dce97=this['editor'];if(!_0x1dce97['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5304df=_0x1dce97['plugins']['get']('TrackChangesEditing');_0x5304df['enableCommand']('goToPreviousRestrictedEditingException'),_0x5304df['enableCommand']('goToNextRestrictedEditingException');const _0x2ab7af=_0x1dce97['plugins']['get']('RestrictedEditingModeEditing');_0x2ab7af['enableCommand']('trackChanges'),_0x2ab7af['enableCommand']('acceptSuggestion'),_0x2ab7af['enableCommand']('discardSuggestion'),_0x2ab7af['enableCommand']('acceptAllSuggestions'),_0x2ab7af['enableCommand']('discardAllSuggestions'),_0x2ab7af['enableCommand']('acceptSelectedSuggestions'),_0x2ab7af['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4dba3d{static get['requires'](){return[_0x320d60];}['init'](){const _0x3baa90=this['editor'],_0x3d0fc8=_0x3baa90['plugins']['get']('TrackChangesEditing');_0x3d0fc8['enableCommand']('shiftEnter'),_0x3baa90['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3baa90),{'priority':'high'}),_0x3baa90['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3baa90),{'priority':'high'}),_0x3baa90['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eb94d,_0x224ec9,_0x5041b7)=>{_0x5041b7['options']['showSuggestionHighlights']&&de(_0x3baa90,{'showActiveMarker':!0x1})(_0x1eb94d,_0x224ec9,_0x5041b7);}),_0x3d0fc8['descriptionFactory']['registerElementLabel']('softBreak',_0x58a472=>o(_0x3baa90['locale'],'ELEMENT_LINE_BREAK',_0x58a472));}}function de(_0x307850,{showActiveMarker:_0x1b2d13=!0x0}={}){return(_0x114600,_0x2a19cc,_0x42eaa4)=>{const _0x484883=_0x307850['plugins']['get']('TrackChangesEditing');if(!_0x42eaa4['consumable']['test'](_0x2a19cc['markerRange'],_0x114600['name']))return;const _0x424d49=_0x307850['model'];for(const _0x279138 of _0x2a19cc['markerRange']['getItems']()){if(!_0x279138['is']('element','softBreak'))continue;const _0x164275='deletion'==_0x2a19cc['markerName']['split'](':')[0x1]?'merge':'split',_0x5c0881=_0x42eaa4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x164275}),_0x3064a9=_0x42eaa4['mapper']['toViewPosition'](_0x424d49['createPositionBefore'](_0x279138));_0x1b2d13&&_0x484883['activeMarkers']['includes'](_0x2a19cc['markerName'])&&_0x42eaa4['writer']['addClass']('ck-suggestion-marker--active',_0x5c0881),_0x42eaa4['writer']['insert'](_0x3064a9,_0x5c0881),_0x42eaa4['mapper']['bindElementToMarker'](_0x5c0881,_0x2a19cc['markerName']);}};}class wt extends _0x4dba3d{['afterInit'](){const _0x3e0117=this['editor'],_0xc9bc8c=_0x3e0117['model'],_0xb12b43=_0x3e0117['locale'];if(!_0x3e0117['plugins']['has']('StandardEditingModeEditing'))return;const _0x1dee72=_0x3e0117['plugins']['get']('TrackChangesEditing'),_0xf3cb8c='restrictedEditingException',_0x35ce45=_0x3e0117['commands']['get'](_0xf3cb8c);_0x1dee72['enableCommand'](_0xf3cb8c,(_0x11ceb9,_0x467ce6={})=>{const _0x1de299=_0xc9bc8c['document']['selection'];if(_0x1de299['isCollapsed'])return void _0x11ceb9(_0x467ce6);const _0x3cb386=void 0x0!==_0x467ce6['forceValue']?_0x467ce6['forceValue']:!_0x35ce45['value'];_0xc9bc8c['change'](()=>{const _0x2e515a=Array['from'](_0x1de299['getRanges']());for(const _0xec8aef of _0x2e515a){const _0x30d5ae=_0x3cb386?[_0xec8aef]:io(_0xf3cb8c,_0xec8aef,_0xc9bc8c);for(const _0x45ac28 of _0x30d5ae)_0x1dee72['markInlineFormat'](_0x45ac28,{'commandName':_0xf3cb8c,'commandParams':[{'forceValue':_0x3cb386}]});}});}),_0x1dee72['descriptionFactory']['registerDescriptionCallback'](_0x14e0a2=>{if('formatBlock'!=_0x14e0a2['type']&&'formatInline'!=_0x14e0a2['type'])return;const {data:_0x43f0d1}=_0x14e0a2;return _0x43f0d1&&_0x43f0d1['commandName']==_0xf3cb8c?_0x43f0d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb12b43,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb12b43,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4dba3d{['afterInit'](){const _0xa0fbf9=this['editor'];if(!_0xa0fbf9['plugins']['has']('Style')||!_0xa0fbf9['plugins']['has']('DataSchema'))return;const _0x26b3aa=_0xa0fbf9['plugins']['get']('TrackChangesEditing'),_0xf40e18=_0xa0fbf9['locale'],_0x22ece0=_0xa0fbf9['config']['get']('style')||{},_0x4c3332=_0xa0fbf9['plugins']['get']('GeneralHtmlSupport'),_0xf03d89=_0xa0fbf9['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa0fbf9['plugins']['get']('DataSchema'),_0x22ece0['definitions']);_0x26b3aa['enableDefaultAttributesIntegration']('style');const _0x70cc6f=new Set();for(const _0x341389 of _0xf03d89['block']){const _0xb439d7=_0x4c3332['getGhsAttributeNameForElement'](_0x341389['element']);_0x70cc6f['add'](_0xb439d7);}const _0x308ac1=new Set();for(const _0x50edf1 of _0xf03d89['inline']){const _0x29a3e4=_0x4c3332['getGhsAttributeNameForElement'](_0x50edf1['element']);_0x308ac1['add'](_0x29a3e4);for(const _0x5c608c of _0x50edf1['ghsAttributes'])_0x308ac1['add'](_0x5c608c);}for(const _0x3fbed3 of _0x70cc6f)_0x26b3aa['registerBlockAttribute'](_0x3fbed3),_0x26b3aa['descriptionFactory']['registerAttributeLabel'](_0x3fbed3,o(_0xf40e18,'FORMAT_STYLE'));for(const _0x23b88c of _0x308ac1)_0x26b3aa['registerInlineAttribute'](_0x23b88c),_0x26b3aa['descriptionFactory']['registerAttributeLabel'](_0x23b88c,o(_0xf40e18,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34c161=this['editor'],_0xe0b235=_0x34c161['locale'];_0x34c161['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d0f13=>{if('formatBlock'!=_0x4d0f13['type']&&'formatInline'!=_0x4d0f13['type'])return;const {data:_0x446b25}=_0x4d0f13;return _0x446b25&&'style'===_0x446b25['commandName']?_0x446b25['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe0b235,'*Set\x20format:*\x20%0',_0x446b25['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xe0b235,'*Remove\x20format:*\x20%0',_0x446b25['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4dba3d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5193e7){super(_0x5193e7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x43a605=this['editor'],_0x3dcbc9=_0x43a605['model']['document']['selection'];if(!_0x43a605['plugins']['has']('TableEditing'))return;const _0x465096=_0x43a605['locale'],_0x314516=_0x43a605['plugins']['get']('TrackChangesEditing'),_0x43fefc=_0x43a605['plugins']['get']('TableUtils');_0x314516['descriptionFactory']['registerElementLabel']('table',_0xe37095=>o(_0x465096,'ELEMENT_TABLE',_0xe37095)),this['_setupColumnsRowsFixing'](),_0x314516['enableCommand']('insertTable'),_0x314516['enableCommand']('selectTableRow'),_0x314516['enableCommand']('selectTableColumn');for(const _0x28eba1 of['insertTableRowAbove','insertTableRowBelow']){const _0x562ecd=_0x43a605['commands']['get'](_0x28eba1);_0x314516['enableCommand'](_0x28eba1,_0x291eba=>{_0x43a605['model']['change'](_0x1185c6=>{_0x291eba();const _0x2cb53a='above'===_0x562ecd['order'],_0x3cdbca=_0x43fefc['getSelectionAffectedTableCells'](_0x3dcbc9),_0x5f3b1c=_0x43fefc['getRowIndexes'](_0x3cdbca),_0x37e99d=_0x2cb53a?_0x5f3b1c['first']-0x1:_0x5f3b1c['last']+0x1,_0x356d23=_0x3cdbca[0x0]['findAncestor']('table'),_0x3f92d0=_0x43fefc['createTableWalker'](_0x356d23,{'startRow':_0x37e99d,'endRow':_0x37e99d}),_0xf8c71c=Array['from'](_0x3f92d0)['map'](_0x26d2ad=>_0x1185c6['createRangeOn'](_0x26d2ad['cell']));_0x314516['markMultiRangeInsertion'](_0xf8c71c,'tableRow');});});}for(const _0xc115b0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x73539c=_0x43a605['commands']['get'](_0xc115b0);_0x314516['enableCommand'](_0xc115b0,_0x1fda4a=>{_0x43a605['model']['change'](_0x24b01c=>{_0x1fda4a();const _0x300709='left'===_0x73539c['order'],_0x4e687c=_0x43fefc['getSelectionAffectedTableCells'](_0x3dcbc9),_0x3f5de6=_0x43fefc['getColumnIndexes'](_0x4e687c),_0x3a82d1=_0x300709?_0x3f5de6['first']-0x1:_0x3f5de6['last']+0x1,_0x280fa9=_0x4e687c[0x0]['findAncestor']('table'),_0x171608=_0x43fefc['createTableWalker'](_0x280fa9,{'startRow':0x0,'column':_0x3a82d1,'includeAllSlots':!0x1}),_0x2825a3=Array['from'](_0x171608)['map'](_0x42870d=>_0x24b01c['createRangeOn'](_0x42870d['cell']));_0x314516['markMultiRangeInsertion'](_0x2825a3,'tableColumn');});});}for(const _0x42d9cc of['removeTableRow','removeTableColumn']){const _0xec4a71=_0x42d9cc['substr'](0xb),_0x2a35ab=_0xec4a71['toLowerCase'](),_0x28fbee=_0x2a35ab['substr'](0x0,0x3)+'span',_0x14c56a='table'+_0xec4a71,_0x5587cb='min'+_0xec4a71,_0x25424c='max'+_0xec4a71;_0x314516['enableCommand'](_0x42d9cc,()=>{_0x43a605['model']['change'](_0x25417e=>{const _0x53a18f=_0x43fefc['getSelectionAffectedTableCells'](_0x3dcbc9),_0xd6cd92=_0x53a18f[0x0]['findAncestor']('table');let _0x505c62;if('removeTableRow'==_0x42d9cc){const _0x1c927c=_0x43fefc['getRowIndexes'](_0x53a18f);_0x505c62={'startRow':_0x1c927c['first'],'endRow':_0x1c927c['last'],'includeAllSlots':!0x0};}else{const _0x4d7708=_0x43fefc['getColumnIndexes'](_0x53a18f);_0x505c62={'startColumn':_0x4d7708['first'],'endColumn':_0x4d7708['last'],'includeAllSlots':!0x0};}const _0x365c67=_0x43fefc['createTableWalker'](_0xd6cd92,_0x505c62),_0x10bb3d=Array['from'](_0x365c67)['map'](({cell:_0x4725c7})=>_0x4725c7),_0x530b02=Ee(_0x10bb3d['filter'](_0x5278f4=>_0x5278f4['hasAttribute'](_0x28fbee))),_0x5bf86b=Ee(_0x10bb3d['filter'](_0x4e66f9=>!_0x4e66f9['hasAttribute'](_0x28fbee)))['map'](_0x51f366=>_0x25417e['createRangeOn'](_0x51f366)),_0x2d495a=_0x314516['markMultiRangeDeletion'](_0x5bf86b,_0x14c56a);if(_0x2d495a&&('tableRow'==_0x2d495a['subType']||'tableColumn'==_0x2d495a['subType'])){const _0x3ab538=this['_getSuggestionCoords'](_0x2d495a);for(const _0xef3c72 of _0x530b02){const _0xa829e6=_0x25417e['createRangeOn'](_0xef3c72),_0x21ebd1=_0x43fefc['getCellLocation'](_0xef3c72),_0x529392=_0xef3c72['getAttribute'](_0x28fbee)-0x1,_0x22c5ad=_0x3ab538[_0x5587cb],_0x4f4b47=_0x3ab538[_0x25424c];_0x22c5ad<=_0x21ebd1[_0x2a35ab]&&_0x21ebd1[_0x2a35ab]+_0x529392<=_0x4f4b47&&_0x2d495a['addRange'](_0xa829e6);}}});});}function _0x43b353(_0x3dc6c3){const _0x44d2be=Array['from'](_0x3dcbc9['getRanges']())['map'](_0x10180a=>_0x4544ff['fromRange'](_0x10180a));_0x43a605['model']['change'](_0x3d68d6=>{const _0x16793e=_0x3d68d6['batch'];_0x3dc6c3=_0x3dc6c3['filter'](_0x598436=>'$graveyard'!=_0x598436['root']['rootName']),_0x3d68d6['setSelection'](_0x3dc6c3),_0x43a605['commands']['get']('removeTableRow')['refresh'](),_0x43a605['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x43a605['model']['enqueueChange'](()=>{_0x43a605['model']['enqueueChange'](_0x16793e,_0x3f8118=>{const _0x3b440b=_0x44d2be['filter'](_0x24e086=>'$graveyard'!=_0x24e086['root']['rootName']);_0x3b440b['length']>0x0&&_0x3f8118['setSelection'](_0x3b440b);for(const _0x3dc0bd of _0x44d2be)_0x3dc0bd['detach']();});});});}function _0x49bf49(_0x10a5fe){_0x43a605['model']['change'](_0x3229fd=>{const _0x2eb313=Array['from'](_0x3dcbc9['getRanges']())['map'](_0x4f1b9e=>_0x4544ff['fromRange'](_0x4f1b9e)),_0x166724=[];for(const _0x23f9e1 of _0x10a5fe)for(const _0x5ae739 of _0x23f9e1['getItems']({'shallow':!0x0}))_0x166724['push'](_0x5ae739);for(const _0x2efdd1 of _0x166724)'$graveyard'!=_0x2efdd1['root']['rootName']&&(_0x3229fd['setSelection'](_0x3229fd['createPositionAt'](_0x2efdd1,0x0)),_0x43a605['commands']['get']('removeTableColumn')['refresh'](),_0x43a605['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x373bf9=_0x2eb313['filter'](_0x1d8ce1=>'$graveyard'!=_0x1d8ce1['root']['rootName']);_0x373bf9['length']>0x0&&_0x3229fd['setSelection'](_0x373bf9);for(const _0x4a1a69 of _0x2eb313)_0x4a1a69['detach']();});}function _0x34ef5c(_0x575257,_0xff9aea){return _0xff9aea['every'](_0x44f3fe=>_0x575257['some'](_0x12addc=>_0x12addc['end']['isEqual'](_0x44f3fe['start'])||_0x44f3fe['end']['isEqual'](_0x12addc['start'])));}function _0x185cde(_0x25ba53,_0x358784){return!_0x25ba53['some'](_0x209400=>_0x358784['some'](_0x2a2589=>_0x209400['isIntersecting'](_0x2a2589)))&&_0x25ba53['some'](_0xcaac40=>_0x358784['some'](_0x512ef0=>_0xcaac40['end']['isTouching'](_0x512ef0['start'])));}_0x43a605['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bd472,_0x4ddb06,_0x44c986)=>{if(!_0x44c986['options']['showSuggestionHighlights'])return;const _0x2619f7=_0x4ddb06['item'];if(!_0x2619f7)return;const _0x27d352=_0x44c986['mapper']['toViewElement'](_0x2619f7);function _0x31a69d(_0x5dc8cb){return Array['isArray'](_0x5dc8cb)?_0x5dc8cb:[_0x5dc8cb];}_0x27d352&&'tableCell'===_0x2619f7['name']&&_0xdf05b2(_0x27d352,_0x44c986['writer'],(_0xa7a01b,_0x2d7b6f,_0x5a5b5d)=>_0x5a5b5d['addClass'](_0x31a69d(_0x2d7b6f['classes']),_0xa7a01b),(_0xb5dbc,_0x2e9e4e,_0x2ef908)=>_0x2ef908['removeClass'](_0x31a69d(_0x2e9e4e['classes']),_0xb5dbc));},{'priority':'highest'}),_0x314516['descriptionFactory']['registerDescriptionCallback'](_0x457dec=>{if('insertion'!=_0x457dec['type']&&'deletion'!=_0x457dec['type'])return;const _0x59728e=_0x457dec['getContainedElement']();if(null!=_0x59728e&&_0x59728e['is']('element','table')){if('insertion'==_0x457dec['type']){const _0x2e9c24=_0x457dec['getItems']()['filter'](_0x203018=>_0x203018['is']('$textProxy'))['map'](_0x3bc41d=>_0x3bc41d['data']);if(_0x2e9c24['length'])return{'type':'insertion','content':o(_0x465096,'*Insert:*\x20%0',o(_0x465096,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2e9c24['join']('\x20')+'\x22'))};}if('deletion'==_0x457dec['type']){const _0x119d14=_0x457dec['getItems']()['filter'](_0x5d0c87=>_0x5d0c87['is']('$textProxy'))['map'](_0x5ed69c=>_0x5ed69c['data']);if(_0x119d14['length'])return{'type':'deletion','content':o(_0x465096,'*Remove:*\x20%0',o(_0x465096,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x119d14['join']('\x20')+'\x22'))};}}}),_0x314516['descriptionFactory']['registerDescriptionCallback'](_0x427494=>{if('tableRow'==_0x427494['subType']){const _0x1b3d51=_0x427494['getItems']()['filter'](_0x475c06=>_0x475c06['is']('$textProxy'))['map'](_0x56256e=>_0x56256e['data']),_0x38f9e5=this['_getSuggestionCoords'](_0x427494),_0x11db96=_0x38f9e5['maxRow']-_0x38f9e5['minRow']+0x1;if('insertion'==_0x427494['type'])return _0x1b3d51['length']?{'type':'insertion','content':o(_0x465096,'*Insert:*\x20%0',o(_0x465096,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x11db96,'\x22'+_0x1b3d51['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x465096,'*Insert:*\x20%0',o(_0x465096,'ELEMENT_TABLE_ROW',_0x11db96))};if('deletion'==_0x427494['type'])return _0x1b3d51['length']?{'type':'deletion','content':o(_0x465096,'*Remove:*\x20%0',o(_0x465096,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x11db96,'\x22'+_0x1b3d51['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x465096,'*Remove:*\x20%0',o(_0x465096,'ELEMENT_TABLE_ROW',_0x11db96))};}if('tableColumn'==_0x427494['subType']){const _0x336cda=_0x427494['getItems']()['filter'](_0x59a36d=>_0x59a36d['is']('$textProxy'))['map'](_0x31e145=>_0x31e145['data']),_0xa38aaf=this['_getSuggestionCoords'](_0x427494),_0x18bf5c=_0xa38aaf['maxColumn']-_0xa38aaf['minColumn']+0x1;if('insertion'==_0x427494['type'])return _0x336cda['length']?{'type':'insertion','content':o(_0x465096,'*Insert:*\x20%0',o(_0x465096,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18bf5c,'\x22'+_0x336cda['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x465096,'*Insert:*\x20%0',o(_0x465096,'ELEMENT_TABLE_COLUMN',_0x18bf5c))};if('deletion'==_0x427494['type'])return _0x336cda['length']?{'type':'deletion','content':o(_0x465096,'*Remove:*\x20%0',o(_0x465096,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18bf5c,'\x22'+_0x336cda['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x465096,'*Remove:*\x20%0',o(_0x465096,'ELEMENT_TABLE_COLUMN',_0x18bf5c))};}}),_0x314516['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x43b353),_0x314516['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x43b353),_0x314516['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x49bf49),_0x314516['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x49bf49),_0x314516['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x34ef5c),_0x314516['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x34ef5c),_0x314516['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x185cde),_0x314516['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x185cde);}['_acceptFormatSuggestionCallbackFactory'](){const _0x7ac23e=this['editor'],_0x25913a=_0x7ac23e['model']['document']['selection'];return(_0x44fb1e,_0x2dc2fa)=>{_0x7ac23e['model']['change'](_0x500bdb=>{const {commandName:_0x54bb40,commandParams:_0xc75d24}=_0x2dc2fa;let _0x527861=_0x44fb1e[0x0]['end']['nodeBefore'];_0xc75d24&&_0xc75d24[0x0]&&!0x1===_0xc75d24[0x0]['forceValue']&&(_0x527861=_0x44fb1e[0x0]['start']['nodeAfter']);const _0xc4b2d1=_0x500bdb['createRangeIn'](_0x527861);if('$graveyard'==_0xc4b2d1['root']['rootName'])return;const _0x45143f=Array['from'](_0x25913a['getRanges']())['map'](_0x43015e=>_0x4544ff['fromRange'](_0x43015e));_0x500bdb['setSelection'](_0xc4b2d1),_0x7ac23e['commands']['get'](_0x54bb40)['refresh'](),_0xc75d24['push']({'forceDefaultExecution':!0x0}),_0x7ac23e['execute'](_0x54bb40,..._0xc75d24);const _0x32b845=_0x45143f['filter'](_0x1504b6=>'$graveyard'!=_0x1504b6['root']['rootName']);_0x32b845['length']>0x0&&_0x500bdb['setSelection'](_0x32b845);for(const _0x4db7bb of _0x45143f)_0x4db7bb['detach']();});};}['_getCoordsForCells'](_0x49f79f){const _0x489ef1=this['editor']['plugins']['get']('TableUtils');let _0x23eb45=Number['MAX_SAFE_INTEGER'],_0xede4a9=Number['MIN_SAFE_INTEGER'],_0x3c8964=Number['MAX_SAFE_INTEGER'],_0x73ae95=Number['MIN_SAFE_INTEGER'];for(const _0x2a86ac of _0x49f79f){if('$graveyard'==_0x2a86ac['root']['rootName'])continue;const {row:_0x32f39f,column:_0x5c2e0e}=_0x489ef1['getCellLocation'](_0x2a86ac),_0x40a30f=_0x2a86ac['hasAttribute']('rowspan')?_0x2a86ac['getAttribute']('rowspan')-0x1:0x0,_0x22cccb=_0x2a86ac['hasAttribute']('colspan')?_0x2a86ac['getAttribute']('colspan')-0x1:0x0;_0x23eb45=_0x32f39f<_0x23eb45?_0x32f39f:_0x23eb45,_0xede4a9=_0x32f39f+_0x40a30f>_0xede4a9?_0x32f39f+_0x40a30f:_0xede4a9,_0x3c8964=_0x5c2e0e<_0x3c8964?_0x5c2e0e:_0x3c8964,_0x73ae95=_0x5c2e0e+_0x22cccb>_0x73ae95?_0x5c2e0e+_0x22cccb:_0x73ae95;}return{'minRow':_0x23eb45,'maxRow':_0xede4a9,'minColumn':_0x3c8964,'maxColumn':_0x73ae95};}['_setupColumnsRowsFixing'](){const _0x3c98a2=this['editor'],_0xe4d7d0=_0x3c98a2['plugins']['get']('TrackChangesEditing'),_0x1c467e=_0x3c98a2['plugins']['get']('TableUtils');_0x3c98a2['model']['document']['on']('change:data',()=>{const _0x5b88f9=Array['from'](_0x3c98a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c62e5,data:_0x28757a}of _0x5b88f9){const {group:_0x119a53,id:_0x51edf4,subType:_0x305828}=_0xe4d7d0['_splitMarkerName'](_0x1c62e5);if('suggestion'!=_0x119a53)continue;if(null!=_0x28757a['oldRange'])continue;const _0x57ae8b=_0xe4d7d0['getSuggestion'](_0x51edf4);this['_tablePostFixingSubtypes']['includes'](_0x305828)&&this['_tableSuggestions']['add'](_0x57ae8b);}},{'priority':'low'});const _0x20b4b6=(_0x2cbb3e,_0x2233e7)=>{let _0x36ff0e=!0x1;const _0x5214bc=_0x2233e7['createRangeOn'](_0x2cbb3e),_0x17426a=_0x2cbb3e['findAncestor']('table'),_0x2d86dd=_0x1c467e['getCellLocation'](_0x2cbb3e);for(const _0x3fa2b1 of this['_tableSuggestions']){const _0x9535b7=_0x3fa2b1['subType'],_0x298928=_0x9535b7['startsWith']('tablePaste'),_0x56a2f3=_0x9535b7['substr'](_0x298928?0xa:0x5),_0x172283=_0x56a2f3['toLowerCase'](),_0x1794f4=_0x172283['substr'](0x0,0x3)+'span',_0xb0496='min'+_0x56a2f3,_0x1da1ad='max'+_0x56a2f3;if(!_0x3fa2b1['isInContent'])continue;if(_0x17426a!=_0x3fa2b1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3fa2b1['isIntersectingWithRange'](_0x5214bc))continue;const _0x560bba=_0x2cbb3e['hasAttribute'](_0x1794f4)?_0x2cbb3e['getAttribute'](_0x1794f4)-0x1:0x0,_0x26a27e=this['_getSuggestionCoords'](_0x3fa2b1),_0x6218ca=_0x26a27e[_0xb0496],_0x3e5f87=_0x26a27e[_0x1da1ad];_0x6218ca<=_0x2d86dd[_0x172283]&&_0x2d86dd[_0x172283]+_0x560bba<=_0x3e5f87&&(_0x3fa2b1['addRange'](_0x5214bc),_0x36ff0e=!0x0);}return _0x36ff0e;};_0x3c98a2['model']['document']['registerPostFixer'](_0x3e17a1=>{let _0x1f25d5=!0x1;for(const _0x2d2644 of _0x3c98a2['model']['document']['differ']['getChanges']())if('insert'==_0x2d2644['type']){if('tableRow'==_0x2d2644['name']){for(const _0x2b1272 of _0x2d2644['position']['nodeAfter']['getChildren']())_0x1f25d5=_0x1f25d5||_0x20b4b6(_0x2b1272,_0x3e17a1);}else'tableCell'==_0x2d2644['name']&&(_0x1f25d5=_0x1f25d5||_0x20b4b6(_0x2d2644['position']['nodeAfter'],_0x3e17a1));}return _0x1f25d5;});}['_getSuggestionCoords'](_0x4d7a8c){return this['_getCoordsForCells'](_0x4d7a8c['getRanges']()['map'](_0x35b523=>_0x35b523['start']['nodeAfter']));}}function Ee(_0x430043){return Array['from'](new Set(_0x430043)['values']());}class St extends _0x4dba3d{static get['requires'](){return[jt];}['afterInit'](){const _0x557d9f=this['editor'],_0x1d973b=_0x557d9f['model']['document']['selection'],_0x20a96e=_0x557d9f['locale'];if(!_0x557d9f['plugins']['has']('TableEditing'))return;const _0x5f5698=_0x557d9f['plugins']['get']('TrackChangesEditing'),_0x208250=_0x557d9f['plugins']['get']('TableUtils'),_0x1f2dc9=_0x557d9f['plugins']['get'](jt);_0x1f2dc9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5f5698['enableCommand']('mergeTableCells',()=>{const _0xc3a62f=_0x208250['getSelectionAffectedTableCells'](_0x557d9f['model']['document']['selection']);_0x557d9f['model']['change'](()=>{_0x5f5698['markMultiRangeBlockFormat'](_0xc3a62f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x557d9f['commands']['get']('mergeTableCells')['on']('execute',(_0x485899,_0x5f8528)=>{_0x557d9f['commands']['get']('trackChanges')['value']&&(_0x5f8528['length']>0x0&&_0x5f8528[_0x5f8528['length']-0x1]&&_0x5f8528[_0x5f8528['length']-0x1]['forceDefaultExecution']||_0x5f5698['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x485899['stop']());},{'priority':'highest'});for(const _0x240eba of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4ff678=_0x557d9f['commands']['get'](_0x240eba);_0x5f5698['enableCommand'](_0x240eba,()=>{const _0x37f637=_0x557d9f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4706bb=>_0x4706bb['is']('element','tableCell')),_0x4835b8=_0x4ff678['value'];_0x557d9f['model']['change'](()=>{_0x5f5698['markMultiRangeBlockFormat']([_0x37f637,_0x4835b8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2dd033 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x501e3a=_0x557d9f['commands']['get'](_0x2dd033);_0x5f5698['enableCommand'](_0x2dd033,()=>{const _0x7dbf25=_0x208250['getSelectionAffectedTableCells'](_0x557d9f['model']['document']['selection'])[0x0],_0x2dbc36=_0x7dbf25['findAncestor']('table'),{column:_0x5f4c14,row:_0x1fba84}=_0x208250['getCellLocation'](_0x7dbf25);let _0x2f3503=[];if('horizontally'==_0x501e3a['direction']){const _0x3a9344=_0x208250['createTableWalker'](_0x2dbc36,{'startRow':_0x1fba84,'endRow':_0x1fba84,'includeAllSlots':!0x0});_0x2f3503=Array['from'](_0x3a9344)['map'](_0x28dddf=>_0x28dddf['cell']);}else{const _0xf2c915=_0x208250['createTableWalker'](_0x2dbc36,{'column':_0x5f4c14,'includeAllSlots':!0x0});_0x2f3503=Array['from'](_0xf2c915)['map'](_0x745a73=>_0x745a73['cell']);}_0x557d9f['model']['change'](_0x5964d9=>{_0x5f5698['markBlockFormat'](_0x5964d9['createRangeOn'](_0x7dbf25),{'commandName':_0x2dd033,'commandParams':[]},_0x2f3503,_0x2dd033);});});}_0x5f5698['descriptionFactory']['registerDescriptionCallback'](_0x1f4bd2=>{if('formatBlock'!=_0x1f4bd2['type']&&'formatInline'!=_0x1f4bd2['type'])return;const {data:_0x6f8de4}=_0x1f4bd2;return _0x6f8de4&&'mergeTableCells'==_0x6f8de4['commandName']?{'type':'format','content':o(_0x20a96e,'*Merge\x20cells*')}:void 0x0;}),_0x5f5698['descriptionFactory']['registerDescriptionCallback'](_0x2d30af=>{if('formatBlock'!=_0x2d30af['type']&&'formatInline'!=_0x2d30af['type'])return;const {data:_0xf17b60}=_0x2d30af;return _0xf17b60?'splitTableCellVertically'==_0xf17b60['commandName']?{'type':'format','content':o(_0x20a96e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf17b60['commandName']?{'type':'format','content':o(_0x20a96e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10b694=_0x1f2dc9['_acceptFormatSuggestionCallbackFactory']();for(const _0x4eb2e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5f5698['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4eb2e7,'accept',_0x10b694);for(const _0x5daa64 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5f5698['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5daa64,'accept',_0x10b694);_0x5f5698['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3e7604=>{_0x557d9f['model']['change'](_0x332a48=>{const _0x3fe448=Array['from'](_0x1d973b['getRanges']())['map'](_0x1f1441=>_0x4544ff['fromRange'](_0x1f1441));_0x332a48['setSelection'](_0x3e7604),_0x557d9f['commands']['get']('mergeTableCells')['refresh'](),_0x557d9f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17d6f3=_0x3fe448['filter'](_0x4641f1=>'$graveyard'!=_0x4641f1['root']['rootName']);_0x17d6f3['length']>0x0&&_0x332a48['setSelection'](_0x17d6f3);for(const _0x20060b of _0x3fe448)_0x20060b['detach']();});});for(const _0x2f4d86 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4da228=_0x557d9f['commands']['get'](_0x2f4d86);_0x4da228['on']('set:isEnabled',(_0x3cbbc8,_0x5459bf,_0x214b91)=>{if(_0x214b91){const _0x1ee2d1=_0x557d9f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x306759=>_0x306759['is']('element','tableCell'));this['_areMergableCells'](_0x4da228['value'],_0x1ee2d1)||(_0x3cbbc8['return']=!0x1,_0x3cbbc8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x20c62c=this['editor']['commands']['get']('mergeTableCells'),_0x29999f=this['editor']['plugins']['get']('TableUtils');if(!_0x20c62c['isEnabled'])return!0x1;const _0x3bc3a8=_0x29999f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4b484a of _0x3bc3a8)for(const _0x46ec2a of _0x3bc3a8)if(_0x4b484a!=_0x46ec2a&&!this['_areMergableCells'](_0x4b484a,_0x46ec2a))return!0x1;return!0x0;}['_areMergableCells'](_0x2c78c0,_0x277f98){const _0x1e2529=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a20f4=this['editor']['model']['createRangeOn'](_0x2c78c0),_0x2a8d32=this['editor']['model']['createRangeOn'](_0x277f98),_0x336840=new Set(),_0x13a1c4=new Set();for(const _0xa2d87c of _0x1e2529['getSuggestions']())if(('insertion'==_0xa2d87c['type']||'deletion'==_0xa2d87c['type']||'mergeTableCells'==_0xa2d87c['subType'])&&_0xa2d87c['isInContent']){for(const _0x5a6da3 of _0xa2d87c['getRanges']())_0x5a6da3['containsRange'](_0x2a20f4,!0x0)&&_0x336840['add'](_0xa2d87c['type']+':'+_0xa2d87c['author']['id']),_0x5a6da3['containsRange'](_0x2a8d32,!0x0)&&_0x13a1c4['add'](_0xa2d87c['type']+':'+_0xa2d87c['author']['id']);}if(_0x336840['size']!=_0x13a1c4['size'])return!0x1;for(const _0x146b8e of _0x336840)if(!_0x13a1c4['has'](_0x146b8e))return!0x1;return!0x0;}}class At extends _0x4dba3d{static get['requires'](){return[jt];}['afterInit'](){const _0x56a96e=this['editor'];if(!_0x56a96e['plugins']['has']('TableEditing'))return;const _0x512c7c=_0x56a96e['locale'],_0x1eac6d=_0x56a96e['plugins']['get']('TrackChangesEditing');_0x1eac6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1eac6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1eac6d['registerBlockAttribute']('headingRows'),_0x1eac6d['registerBlockAttribute']('headingColumns'),_0x1eac6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x512c7c,'FORMAT_HEADER_ROW')),_0x1eac6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x512c7c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c602b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x478140=this['editor']['plugins']['get']('TableUtils'),_0x5696d2=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x597be2({showActiveMarker:_0x50974e=!0x0,setDataAttribute:_0x5026bc=!0x0}={}){return(_0x55238f,_0x487676,_0x31bb35)=>{const {type:_0x3488d6,id:_0x5a3641}=_0x3c602b['_splitMarkerName'](_0x487676['markerName']),_0x2342af=_0x3c602b['getSuggestion'](_0x5a3641),_0x33e7e9=_0x2342af['data'];if('formatBlock'!=_0x2342af['type']||!_0x33e7e9||'setTableColumnHeader'!=_0x33e7e9['commandName'])return;if(_0x487676['item'])return void _0x55238f['stop']();if(!_0x31bb35['consumable']['consume'](_0x487676['markerRange'],_0x55238f['name']))return;const _0x5aaa82=_0x487676['markerRange']['start']['nodeAfter'],_0x26a7da=_0x487676['markerRange']['end']['nodeBefore'],_0x47f058=_0x5aaa82['parent']['parent'],{column:_0x474f44}=_0x478140['getCellLocation'](_0x5aaa82),{column:_0x27d2ff}=_0x478140['getCellLocation'](_0x26a7da);for(let _0x4c4c7f=_0x474f44;_0x4c4c7f<=_0x27d2ff;_0x4c4c7f++){const _0x585d48=_0x478140['createTableWalker'](_0x47f058,{'column':_0x4c4c7f,'includeAllSlots':!0x1});for(const _0x49e6b9 of _0x585d48){const _0xccb6ac=_0x49e6b9['cell'],_0x49064a=_0x31bb35['mapper']['toViewElement'](_0xccb6ac);_0x31bb35['writer']['addClass']('ck-suggestion-marker-'+_0x3488d6,_0x49064a),_0x5026bc&&_0x31bb35['writer']['setAttribute']('data-suggestion',_0x5a3641,_0x49064a),_0x31bb35['mapper']['bindElementToMarker'](_0x49064a,_0x487676['markerName']),_0x50974e&&(_0x3c602b['activeMarkers']['includes'](_0x487676['markerName'])?_0x31bb35['writer']['addClass']('ck-suggestion-marker--active',_0x49064a):_0x31bb35['writer']['removeClass']('ck-suggestion-marker--active',_0x49064a));}}};}_0x3c602b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5696d2),_0x3c602b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5696d2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x597be2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c1626,_0x46303b,_0x5db071)=>{_0x5db071['options']['showSuggestionHighlights']&&_0x597be2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1c1626,_0x46303b,_0x5db071);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5b1197,_0x225e84,_0x291259)=>{const {type:_0x475b9f,id:_0x25d23a}=_0x3c602b['_splitMarkerName'](_0x225e84['markerName']),_0x17a5c7=_0x3c602b['getSuggestion'](_0x25d23a),_0x2e0d0d=_0x17a5c7['data'];if('formatBlock'!=_0x17a5c7['type']||!_0x2e0d0d||'setTableColumnHeader'!=_0x2e0d0d['commandName'])return;const _0x4c8332=_0x291259['mapper']['markerNameToElements'](_0x225e84['markerName']);if(_0x4c8332){for(const _0x574b40 of _0x4c8332)_0x291259['writer']['removeClass']('ck-suggestion-marker-'+_0x475b9f,_0x574b40),_0x291259['writer']['removeClass']('ck-suggestion-marker--active',_0x574b40),_0x291259['writer']['removeAttribute']('data-suggestion',_0x574b40),_0x291259['mapper']['unbindElementFromMarkerName'](_0x574b40,_0x225e84['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3634b0=this['editor'],_0x18fdfa=_0x3634b0['locale'];function _0x3a1ec2(_0x28ffb6){return{'type':'format','content':o(_0x18fdfa,'*Format:*\x20%0',_0x28ffb6)};}_0x3634b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48034d=>{if('formatBlock'!=_0x48034d['type'])return;const {data:_0x225931}=_0x48034d;if(_0x225931){if('setTableRowHeader'==_0x225931['commandName']){const _0x1c717a=_0x225931['commandParams'][0x0]['forceValue'];return _0x3a1ec2(o(_0x18fdfa,_0x1c717a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x225931['commandName']){const _0x3f5e11=_0x225931['commandParams'][0x0]['forceValue'];return _0x3a1ec2(o(_0x18fdfa,_0x3f5e11?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x517607=>[_0x517607,null]));class It extends _0x4dba3d{static get['requires'](){return[jt];}['afterInit'](){const _0x230241=this['editor'];if(!_0x230241['plugins']['has']('TableClipboard'))return;const _0x38bdd8=_0x230241['plugins']['get']('TrackChangesEditing'),_0x18f5e9=_0x230241['plugins']['get']('TableUtils'),_0x1949d7=_0x230241['plugins']['get'](jt),_0x3c9c07=_0x230241['plugins']['get']('TableClipboard');_0x1949d7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x230241['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x230241['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59cf84=null;_0x230241['model']['on']('insertContent',(_0x3b9620,_0xa38500)=>{const [_0x3ed9e2,_0x473bda]=_0xa38500,_0x29b315=_0xa38500[_0xa38500['length']-0x1];_0x29b315&&_0x29b315['forceDefaultExecution']||_0x38bdd8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc37597,_0xe79dd0,_0x5a0fd6,_0xbd8c1e,_0x2e1de5){if(_0xe79dd0&&!_0xe79dd0['is']('documentSelection'))return!0x1;const _0x32a1f2=_0x2e1de5['getTableIfOnlyTableInContent'](_0xc37597,_0x5a0fd6);if(!_0x32a1f2||!he(_0x32a1f2,void 0x0,_0xbd8c1e))return!0x1;const _0x5d847d=_0xbd8c1e['getSelectionAffectedTableCells'](_0x5a0fd6['document']['selection']);if(!_0x5d847d['length'])return!0x1;const _0x2ab14e=_0x5d847d[0x0]['findAncestor']('table'),_0x245152=_0xbd8c1e['getRowIndexes'](_0x5d847d),_0x1f67c1=_0xbd8c1e['getColumnIndexes'](_0x5d847d),_0xa3b281={'startRow':_0x245152['first'],'endRow':_0x245152['last'],'startColumn':_0x1f67c1['first'],'endColumn':_0x1f67c1['last']};return 0x1==_0x5d847d['length']&&(_0xa3b281['endRow']+=_0xbd8c1e['getRows'](_0x32a1f2)-0x1,_0xa3b281['endColumn']+=_0xbd8c1e['getColumns'](_0x32a1f2)-0x1),he(_0x2ab14e,_0xa3b281,_0xbd8c1e);}(_0x3ed9e2,_0x473bda,_0x230241['model'],_0x18f5e9,_0x3c9c07)&&(_0x3b9620['stop'](),_0x59cf84={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x230241['model']['change'](()=>{_0x230241['model']['insertContent'](_0xa38500[0x0],_0xa38500[0x1],_0xa38500[0x2],{'forceDefaultExecution':!0x0});const _0x21ea22=_0x5b2e26(),{rowInsertionRanges:_0x524103,columnInsertionRanges:_0x2c21b9,insertionRanges:_0x2993c8,deletionRanges:_0x18e4d6,cells:_0x2896d8}=_0x59cf84;_0x524103['length']&&_0x38bdd8['markMultiRangeInsertion'](_0x524103,'tablePasteRow',{'tablePasteChainId':_0x21ea22}),_0x2c21b9['length']&&_0x38bdd8['markMultiRangeInsertion'](_0x2c21b9,'tablePasteColumn',{'tablePasteChainId':_0x21ea22}),_0x2993c8['length']&&(_0x38bdd8['markMultiRangeInsertion'](_0x2993c8,'tablePaste',{'tablePasteChainId':_0x21ea22,'skipNestingCheck':!0x0}),_0x2993c8['forEach'](_0xcf452e=>_0xcf452e['detach']?.())),_0x18e4d6['length']&&(_0x38bdd8['markMultiRangeDeletion'](_0x18e4d6,'tablePaste',{'tablePasteChainId':_0x21ea22,'skipNestingCheck':!0x0}),_0x18e4d6['forEach'](_0x2e78a2=>_0x2e78a2['detach']?.()));const _0x21cd47=_0x38bdd8['markMultiRangeBlockFormat'](_0x2896d8['map'](({element:_0x294132})=>_0x294132),{'formatGroupId':_0x5b2e26()},[],'tablePasteCell',{'tablePasteChainId':_0x21ea22});if(_0x21cd47){const _0x419272=_0x21cd47['getMarkers'](),_0x16bc0b=[];for(const {element:_0x48d195,attributes:_0x568587}of _0x2896d8){if(!_0x568587)continue;const _0x18df16=_0x230241['model']['createRangeOn'](_0x48d195),_0x13417a=_0x419272['find'](_0x496db2=>_0x496db2['getRange']()['isEqual'](_0x18df16));_0x13417a&&_0x16bc0b['push']([_0x13417a['name'],_0x568587]);}_0x16bc0b['length']&&_0x21cd47['setAttribute']('markerAttributes',Object['fromEntries'](_0x16bc0b));}_0x59cf84=null;}));},{'priority':_0xe9319b['high']+0xa}),_0x230241['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1d8d16,_0x10fa01)=>{const [_0x430e68,_0x3b54a6,,_0x4eba93]=_0x10fa01;if(!_0x59cf84)return;_0x1d8d16['stop']();const _0xe9b2bc=_0x430e68['cell'],_0xf4571e=_0x3b54a6,_0x3cdf56=Pe(_0xe9b2bc),_0x170e8f=Pe(_0xf4571e);_0x1d8d16['return']=_0xe9b2bc;let _0x4221da=null,_0x4a47da=null;if(_0x170e8f||_0x3cdf56){if(_0x3cdf56&&!_0x170e8f){_0x4eba93['remove'](_0xe9b2bc['getChild'](0x0));for(const _0x47baa7 of Array['from'](_0xf4571e['getChildren']()))_0x4eba93['insert'](_0x47baa7,_0xe9b2bc,'end');const _0x5d51e2=_0x59cf84['rowInsertionIndexes']['includes'](_0x430e68['row']),_0x356c3d=_0x59cf84['columnInsertionIndexes']['includes'](_0x430e68['column']);_0x5d51e2||_0x356c3d||(_0x4221da=_0x4544ff['fromRange'](_0x4eba93['createRangeIn'](_0xe9b2bc)));}else _0x170e8f&&!_0x3cdf56&&(_0x4a47da=_0x4eba93['createRangeIn'](_0xe9b2bc));}else{const _0x5f33be=_0x4eba93['createElement']('tableCellSuggestion'),_0x4c8d6e=_0x4eba93['createElement']('tableCellSuggestion');_0x4eba93['wrap'](_0x4eba93['createRangeIn'](_0xe9b2bc),_0x4c8d6e),_0x4eba93['insert'](_0x5f33be,_0xe9b2bc,0x0);for(const _0x281cfc of Array['from'](_0xf4571e['getChildren']()))_0x4eba93['insert'](_0x281cfc,_0x5f33be,'end');_0x4221da=_0x4544ff['fromRange'](_0x4eba93['createRangeOn'](_0x5f33be)),_0x4a47da=_0x4544ff['fromRange'](_0x4eba93['createRangeOn'](_0x4c8d6e));}const _0x4ec7b4=Array['from'](_0xf4571e['getAttributes']())['filter'](([_0x2f7d8d])=>ge['includes'](_0x2f7d8d));_0x59cf84['cells']['push']({'element':_0xe9b2bc,'attributes':_0x4ec7b4['length']?Object['fromEntries'](_0x4ec7b4):null}),_0x4221da&&_0x59cf84['insertionRanges']['push'](_0x4221da),_0x4a47da&&_0x59cf84['deletionRanges']['push'](_0x4a47da);},{'priority':'high'}),_0x18f5e9['on']('insertColumns',(_0x5f51da,_0x1331f8)=>{const [_0x181ab6,_0xef4e37={}]=_0x1331f8;if(!_0x59cf84)return;const _0x5f4cd5=_0xef4e37['at']||0x0,_0x154a4a=_0xef4e37['columns']||0x1;_0x59cf84['columnInsertionIndexes']=new Array(_0x154a4a)['fill'](_0x5f4cd5)['map']((_0x23aebb,_0x1151d7)=>_0x23aebb+_0x1151d7);for(const {cell:_0x40973d}of _0x18f5e9['createTableWalker'](_0x181ab6,{'startColumn':_0x5f4cd5,'endColumn':_0x5f4cd5+_0x154a4a-0x1}))_0x59cf84['columnInsertionRanges']['push'](_0x230241['model']['createRangeOn'](_0x40973d));},{'priority':'low'}),_0x18f5e9['on']('insertRows',(_0x542caa,_0x75368f)=>{const [_0x3b1bd9,_0x385d76={}]=_0x75368f;if(!_0x59cf84)return;const _0x2d46c2=_0x385d76['at']||0x0,_0x286de9=_0x385d76['rows']||0x1;_0x59cf84['rowInsertionIndexes']=new Array(_0x286de9)['fill'](_0x2d46c2)['map']((_0x3164f5,_0x289359)=>_0x3164f5+_0x289359);for(const {cell:_0x3d937}of _0x18f5e9['createTableWalker'](_0x3b1bd9,{'startRow':_0x2d46c2,'endRow':_0x2d46c2+_0x286de9-0x1}))_0x59cf84['rowInsertionRanges']['push'](_0x230241['model']['createRangeOn'](_0x3d937));},{'priority':'low'}),_0x38bdd8['descriptionFactory']['registerDescriptionCallback'](_0x1e457d=>{if(_0x1e457d['subType']&&_0x1e457d['subType']['startsWith']('tablePaste'))return _0x1e457d['previous']?{}:{'type':'insertion','content':o(_0x230241['locale'],'*Replace\x20table\x20cells*')};});const _0x465d83=()=>!0x1;for(const _0x3effc7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x38bdd8['_suggestionFactory']['registerCustomCallback']('insertion',_0x3effc7,'join',_0x465d83),_0x38bdd8['_suggestionFactory']['registerCustomCallback']('deletion',_0x3effc7,'join',_0x465d83),_0x38bdd8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3effc7,'join',_0x465d83);_0x38bdd8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x465d83),_0x38bdd8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x39efc9,_0x1e1b74,_0x260d78)=>{const _0x45f6ae=_0x39efc9['map'](_0x3f1717=>_0x3f1717['getContainedElement']())['filter'](_0x45a6c5=>_0x45a6c5),_0x5545f2=new Map(_0x45f6ae['map'](_0x51ac6b=>[_0x51ac6b,null]));if(_0x59cf84){for(const {element:_0x37b3a5,attributes:_0x16a3d8}of _0x59cf84['cells'])_0x16a3d8&&_0x5545f2['set'](_0x37b3a5,_0x16a3d8);}else{if(_0x260d78&&_0x260d78['markerAttributes'])for(const [_0x3aa3bd,_0x1b673c]of Object['entries'](_0x260d78['markerAttributes'])){const _0x2396e3=_0x230241['model']['markers']['get'](_0x3aa3bd),_0x2a3367=_0x2396e3?_0x2396e3['getRange']()['getContainedElement']():null;_0x2a3367&&_0x5545f2['set'](_0x2a3367,_0x1b673c);}}_0x230241['model']['change'](_0x38913a=>{for(const [_0x13662d,_0x5f0937]of _0x5545f2)_0x38913a['setAttributes']({...Ce,..._0x5f0937},_0x13662d);});});const _0x905cf5=(_0x5bb2ea,_0x1b2b0a)=>{_0x38bdd8['_suggestionFactory']['registerCustomCallback'](_0x5bb2ea,'tablePaste',_0x1b2b0a,(_0x5615e9,_0x1a2168,_0xcaaeb1)=>{_0x230241['model']['change'](_0x23368a=>{const _0xbaac87=[];for(const _0x2d5fc0 of _0x5615e9){const _0x18092c=_0x2d5fc0['start']['nodeAfter'];_0x18092c['is']('element','tableCellSuggestion')&&_0xbaac87['push'](_0x18092c);}_0x38bdd8['_suggestionFactory']['getSuggestionCallback'](_0x5bb2ea,null,_0x1b2b0a)(_0x5615e9,_0x1a2168,_0xcaaeb1);for(const _0x473f37 of _0xbaac87)'$graveyard'!=_0x473f37['root']['rootName']&&_0x23368a['unwrap'](_0x473f37);});});};_0x905cf5('insertion','accept'),_0x905cf5('insertion','discard'),_0x905cf5('deletion','accept'),_0x905cf5('deletion','discard'),_0x38bdd8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28070a=>{const _0x5a7c8f=_0x28070a['map'](_0x5da568=>_0x5da568['getContainedElement']()),_0xa6582f=_0x5a7c8f[0x0]['findAncestor']('table'),{minRow:_0x21237d,maxRow:_0x472943}=_0x1949d7['_getCoordsForCells'](_0x5a7c8f);_0x18f5e9['removeRows'](_0xa6582f,{'at':_0x21237d,'rows':_0x472943-_0x21237d+0x1});}),_0x38bdd8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x311939=>{const _0x529ec0=_0x311939['map'](_0x50a777=>_0x50a777['getContainedElement']()),_0x168fb8=_0x529ec0[0x0]['findAncestor']('table'),{minColumn:_0x2f1ab4,maxColumn:_0x4943de}=_0x1949d7['_getCoordsForCells'](_0x529ec0);_0x18f5e9['removeColumns'](_0x168fb8,{'at':_0x2f1ab4,'columns':_0x4943de-_0x2f1ab4+0x1});});const _0x1f2f6c=(_0x1bc045,_0xc3d11d)=>{if(!_0xc3d11d['subType']||!_0xc3d11d['subType']['startsWith']('tablePaste'))return;const _0x4215f5=_0xc3d11d['attributes']['tablePasteChainId'],_0x3a8060=_0x38bdd8['getSuggestions']()['filter'](_0x56c4a2=>_0x56c4a2['isInContent']&&_0x56c4a2['attributes']&&_0x56c4a2['attributes']['tablePasteChainId']==_0x4215f5);_0x3a8060['length']&&_0xc3d11d['getAllAdjacentSuggestions']()['length']!=_0x3a8060['length']&&_0x3a8060['reduce']((_0x4e718e,_0x574e70)=>(_0x4e718e['next']=_0x574e70,_0x574e70['previous']=_0x4e718e,_0x574e70));};function _0x5e0b40(_0x1dc1c7,_0x31c8dc=!0x0){const {id:_0x14cfe0}=_0x38bdd8['_splitMarkerName'](_0x1dc1c7['markerName']),_0x313f1d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e7315=_0x38bdd8['activeMarkers']['includes'](_0x1dc1c7['markerName']);return _0x2e7315&&_0x313f1d['push']('ck-suggestion-marker--active'),{'classes':_0x313f1d,'attributes':{'data-suggestion':_0x14cfe0},'priority':_0x2e7315&&_0x31c8dc?0xbc2:0xbb8};}_0x38bdd8['on']('suggestionLoaded',_0x1f2f6c,{'priority':'high'}),_0x38bdd8['on']('suggestionUnloaded',_0x1f2f6c,{'priority':'high'}),_0x230241['model']['document']['registerPostFixer'](()=>{let _0x9a08aa=!0x1;const _0x1b8970=Array['from'](_0x230241['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1634c7,data:_0x379a0d}of _0x1b8970){const {group:_0x5d8007,type:_0x2d4faf,id:_0x2c3e7c}=_0x38bdd8['_splitMarkerName'](_0x1634c7);if('suggestion'!=_0x5d8007||'deletion'!=_0x2d4faf||_0x379a0d['oldRange'])continue;if(!_0x38bdd8['hasSuggestion'](_0x2c3e7c))continue;const _0x289792=_0x38bdd8['getSuggestion'](_0x2c3e7c)['getRanges'](),_0x2f209c=_0x230241['plugins']['get']('Users')['me'];for(const _0x2c95c9 of _0x38bdd8['getSuggestions']()){if(!_0x2c95c9['isInContent']||_0x2c95c9['author']!=_0x2f209c)continue;if('formatBlock'!=_0x2c95c9['type']||'tablePasteCell'!=_0x2c95c9['subType'])continue;if(_0x2c95c9['getRanges']()['every'](_0x309796=>_0x289792['some'](_0x2f62f5=>_0x2f62f5['containsRange'](_0x309796,!0x0)))){for(const _0x554ec6 of _0x2c95c9['getAllAdjacentSuggestions']())_0x554ec6['isInContent']&&(_0x554ec6['discard'](),_0x9a08aa=!0x0);}}}return _0x9a08aa;}),_0x230241['model']['document']['registerPostFixer'](_0x27da21=>{const _0x21a101=_0x230241['commands']['get']('redo');if(!_0x21a101||!_0x21a101['_createdBatches']['has'](_0x27da21['batch']))return!0x1;let _0x4feb57=!0x1;const _0x553db3=_0x230241['plugins']['get']('Users')['me'],_0x2d5090=_0x230241['model']['document']['differ']['getChanges'](),_0x567e81=Array['from'](_0x230241['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5f19f6,data:_0x3bf5e8})=>{const {group:_0xabb920,subType:_0x194a72,authorId:_0x18218d}=_0x38bdd8['_splitMarkerName'](_0x5f19f6);return'suggestion'==_0xabb920&&'tablePaste'==_0x194a72&&_0x18218d==_0x553db3['id']&&!_0x3bf5e8['oldRange'];});for(const _0xb1e0a9 of _0x2d5090){if('insert'!=_0xb1e0a9['type']||'tableCellSuggestion'!=_0xb1e0a9['name']||0x1!=_0xb1e0a9['length'])continue;const _0x14352f=_0x27da21['createRange'](_0xb1e0a9['position'],_0xb1e0a9['position']['getShiftedBy'](0x1));if(!_0x567e81['find'](({data:_0x66023b})=>_0x66023b['newRange']['isEqual'](_0x14352f))){for(const {name:_0x322af1,data:_0x42353c}of _0x567e81)if(_0x14352f['containsRange'](_0x42353c['newRange'])){_0x27da21['updateMarker'](_0x322af1,{'range':_0x14352f}),_0x4feb57=!0x0;break;}}}return _0x4feb57;}),_0x230241['model']['document']['registerPostFixer'](_0x5e705b=>{let _0x12b826=!0x1;const _0xe606c7=_0x230241['plugins']['get']('Users')['me'],_0x296d6e=_0x38bdd8['getSuggestions']()['filter'](_0x32bcbc=>_0x32bcbc['isInContent']&&_0x32bcbc['author']==_0xe606c7),_0x39a274=new Set(),_0xb0c8b1=new Set();for(const _0x379d40 of _0x296d6e)if('tablePaste'==_0x379d40['subType'])for(const _0x38565d of _0x379d40['getMarkers']()){const _0x59a10e=_0x38565d['getRange']()['getContainedElement']();if(_0x59a10e){if(_0x59a10e['is']('element','tableCellSuggestion')&&Pe(_0x59a10e)){_0x379d40['removeMarker'](_0x38565d['name']),_0x39a274['add'](_0x59a10e),_0x12b826=!0x0;const _0x15c436=_0x59a10e['nextSibling'],_0x19d02e=_0x59a10e['previousSibling'],_0xce72d6=_0x15c436&&_0x15c436['is']('element','tableCellSuggestion'),_0x21f839=_0x19d02e&&_0x19d02e['is']('element','tableCellSuggestion');_0xce72d6&&!_0x39a274['has'](_0x15c436)&&_0xb0c8b1['add'](_0x15c436),_0x21f839&&!_0x39a274['has'](_0x19d02e)&&_0xb0c8b1['add'](_0x19d02e);}else _0x59a10e['is']('element','paragraph')&&_0x59a10e['isEmpty']&&(_0x379d40['removeMarker'](_0x38565d['name']),_0x12b826=!0x0);}}else{if('tablePasteCell'==_0x379d40['subType']){if(!_0x379d40['attributes']||!_0x379d40['attributes']['tablePasteChainId'])continue;const _0x18cb8f=_0x379d40['attributes']['markerAttributes'];if(_0x18cb8f&&Object['keys'](_0x18cb8f)['length'])continue;const _0x467b8d=_0x379d40['attributes']['tablePasteChainId'];let _0xf7001c=!0x0,_0x366961=!0x0;for(const _0x24378a of _0x296d6e)if(_0x24378a['subType']&&_0x24378a['subType']['startsWith']('tablePaste')){if(!_0x24378a['attributes']['tablePasteChainId']){_0x366961=!0x1;break;}if(_0x24378a['id']!=_0x379d40['id']&&_0x24378a['attributes']['tablePasteChainId']==_0x467b8d){_0xf7001c=!0x1;break;}}_0x366961&&_0xf7001c&&(_0x379d40['removeMarkers'](),_0x12b826=!0x0);}}for(const _0x3b0c63 of _0x39a274)_0x5e705b['remove'](_0x3b0c63);for(const _0x32b1da of _0xb0c8b1)_0x5e705b['unwrap'](_0x32b1da);return _0x12b826;}),_0x230241['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x48a034,_0x314e42)=>_0x5e0b40(_0x48a034),'converterPriority':'high'}),_0x230241['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c774f,_0x43d690)=>_0x43d690['options']['showSuggestionHighlights']?_0x5e0b40(_0x2c774f,!0x1):null,'converterPriority':'high'});const _0x5f091b=_0x230241['editing']['view'];this['listenTo'](_0x5f091b['document'],'clipboardOutput',(_0x5e25ec,_0x46a798)=>{const _0x53d1ce=[];for(const _0x28f33f of _0x5f091b['createRangeIn'](_0x46a798['content'])['getItems']())_0x28f33f['is']('element','suggestion-td')&&_0x53d1ce['push'](_0x28f33f);_0x5f091b['change'](_0x36764f=>{for(const _0xbb6515 of _0x53d1ce)_0x36764f['move'](_0x36764f['createRangeIn'](_0xbb6515),_0x36764f['createPositionBefore'](_0xbb6515)),_0x36764f['remove'](_0xbb6515);});});}}function Pe(_0x1e3347){if(_0x1e3347['isEmpty'])return!0x0;const _0x40b777=_0x1e3347['getChild'](0x0);return _0x40b777['is']('element','paragraph')&&_0x40b777['isEmpty'];}function he(_0x24264c,_0x1f82de={},_0x2ae789){for(const {isAnchor:_0x4b331d,cellHeight:_0x3a83ad,cellWidth:_0x4f44bb}of _0x2ae789['createTableWalker'](_0x24264c,{'includeAllSlots':!0x0,..._0x1f82de}))if(!_0x4b331d||0x1!=_0x3a83ad||0x1!=_0x4f44bb)return!0x1;return!0x0;}class vt extends _0x4dba3d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41f0fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x41f0fe['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41f0fe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41f0fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f0fe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41f0fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41f0fe['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x521d5a,_0x28fbd2){const _0x55dd4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27a956=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x279258=_0x28fbd2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x693533=_0x27a956['getColumnGroupElement'](_0x279258);let _0x162778=_0x693533?_0x27a956['getTableColumnsWidths'](_0x693533):null,_0x526f0e=_0x279258['getAttribute']('tableWidth')||null;const _0x56e69b=_0x28fbd2['tableWidth']||_0x526f0e,_0x44f5d8=_0x28fbd2['columnWidths']||_0x162778,_0x518cdb=this['editor']['plugins']['get']('Users')['me'];for(const _0xbb3982 of _0x55dd4a['getSuggestions']()){const _0x304834=_0xbb3982['getContainedElement']();if('resizeTable'===_0xbb3982['subType']&&_0x304834===_0x279258){_0xbb3982['author']!==_0x518cdb&&_0xbb3982['discard']();const _0x5a490f=_0xbb3982['data']['commandParams'];_0x526f0e=_0x5a490f[0x0]['tableWidth'],_0x162778=_0x5a490f[0x0]['columnWidths'];break;}}_0x521d5a({'table':_0x279258,'tableWidth':_0x56e69b,'columnWidths':_0x44f5d8}),_0x55dd4a['markBlockFormat'](_0x279258,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x526f0e,'columnWidths':_0x162778}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xb363cc){if('formatBlock'!=_0xb363cc['type']&&'formatInline'!=_0xb363cc['type'])return;const {data:_0x4bb51f}=_0xb363cc;if(_0x4bb51f&&'resizeTable'===_0x4bb51f['formatGroupId']){const _0x153f93='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x153f93)};}}}class Ct extends _0x4dba3d{['afterInit'](){const _0x55c481=this['editor'];_0x55c481['plugins']['has']('Template')&&_0x55c481['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4dba3d{['afterInit'](){const _0x3cd665=this['editor'];if(!_0x3cd665['commands']['get']('insertTableOfContents'))return;_0x3cd665['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xeeb560=_0x3cd665['plugins']['get']('TrackChangesEditing'),_0x8e7b17=_0x3cd665['locale'];_0xeeb560['descriptionFactory']['registerElementLabel']('tableOfContents',_0xdc780a=>o(_0x8e7b17,'ELEMENT_TABLE_OF_CONTENTS',_0xdc780a));}}class Dt extends _0x4dba3d{['afterInit'](){const _0x5409c3=this['editor'];if(!_0x5409c3['plugins']['has']('Title'))return;const _0x4ae9f3=_0x5409c3['plugins']['get']('TrackChangesEditing');_0x4ae9f3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5409c3['locale'],'ELEMENT_TITLE')),_0x5409c3['model']['document']['registerPostFixer'](_0x346d8b=>{let _0x2af10a=!0x1;const _0x443e6f=Array['from'](_0x5409c3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f3e54,data:_0x463408}of _0x443e6f){const {group:_0x3c7d5a}=_0x4ae9f3['_splitMarkerName'](_0x2f3e54);if('suggestion'!==_0x3c7d5a||!_0x463408['newRange'])continue;const _0xd2af84=_0x463408['newRange'],_0x206f96=_0xd2af84['end']['nodeBefore'];if(!_0x206f96||!_0x206f96['is']('element','title-content'))continue;if(!_0xd2af84['start']['isTouching'](_0xd2af84['end']))continue;const _0x8eafe2=_0x5409c3['model']['schema']['getNearestSelectionRange'](_0xd2af84['end'],'forward');if(_0x8eafe2&&_0x8eafe2['isCollapsed']){const _0xd611d9=_0x346d8b['createRange'](_0xd2af84['start'],_0x8eafe2['start']);_0xd611d9['isEqual'](_0xd2af84)||(_0x346d8b['updateMarker'](_0x2f3e54,{'range':_0xd611d9}),_0x2af10a=!0x0);}_0x2af10a||(_0x346d8b['removeMarker'](_0x2f3e54),_0x2af10a=!0x0);}return _0x2af10a;});}}class Nt extends _0x4dba3d{['afterInit'](){const _0x41c6ea=this['editor'],_0x49ef8a=_0x41c6ea['plugins']['get']('TrackChangesEditing');_0x41c6ea['plugins']['has']('UndoEditing')&&(_0x49ef8a['enableCommand']('undo'),_0x49ef8a['enableCommand']('redo'));}}class Mt extends _0x4dba3d{static get['requires'](){return[jt];}['afterInit'](){const _0x3aa130=this['editor'];if(!_0x3aa130['plugins']['has']('TableCaptionEditing'))return;_0x3aa130['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4dba3d{['tableProperties'];['tableCellProperties'];constructor(_0x554f85){super(_0x554f85),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 _0x4918c2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x32c3fe of this['tableProperties'])_0x4918c2['enableCommand'](_0x32c3fe,(_0x1342e7,_0x2d2876)=>{const _0x30060d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x32c3fe,[_0x30060d],this['tableProperties'],'tableProperties',_0x1342e7,_0x2d2876);});_0x4918c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4918c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4918c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32dd99,_0x26ca96)=>this['handleDiscardAction'](this['tableProperties'],_0x32dd99,_0x26ca96)),_0x4918c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3d7de8 of this['tableCellProperties'])_0x4918c2['enableCommand'](_0x3d7de8,(_0x1b653c,_0x80bb47)=>{const _0xc4065=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3d7de8,_0xc4065,this['tableCellProperties'],'tableCellProperties',_0x1b653c,_0x80bb47);});_0x4918c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4918c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4918c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x247f2c,_0x437242)=>this['handleDiscardAction'](this['tableCellProperties'],_0x247f2c,_0x437242)),_0x4918c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4918c2['descriptionFactory']['registerDescriptionCallback'](_0x1b24ac=>this['handleSuggestionDescription'](_0x1b24ac));}['_handlePropertyChange'](_0x57daaf,_0x3a9017,_0x54cfc8,_0x333726,_0x47b9f9,_0x48dbd1){const _0x139629=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x48dbd1['batch'],()=>{for(const _0x29b1a5 of _0x3a9017){if(this['_getSuggestion'](_0x29b1a5,_0x333726))_0x47b9f9(_0x48dbd1);else{const _0x370a06={};for(const _0x15f0ec of _0x54cfc8){const _0x5a7421=_0x29b1a5['getAttribute'](_0x15f0ec);void 0x0!==_0x5a7421&&(_0x370a06[_0x15f0ec]=_0x5a7421);}_0x47b9f9(_0x48dbd1),_0x139629['markBlockFormat'](_0x29b1a5,{'commandParams':[_0x370a06]},[],_0x333726);}}});}['handleDiscardAction'](_0x199c42,_0x5f5a1f,_0x52b66b){const _0x300170=_0x5f5a1f[0x0]['start']['nodeAfter'],_0x51b3f2=_0x52b66b['commandParams'][0x0];this['editor']['model']['change'](_0x5b865d=>{for(const _0x3e745e of _0x199c42)void 0x0!==_0x51b3f2[_0x3e745e]?_0x5b865d['setAttribute'](_0x3e745e,_0x51b3f2[_0x3e745e],_0x300170):_0x5b865d['removeAttribute'](_0x3e745e,_0x300170);});}['handleSuggestionDescription'](_0x13f74c){if(_0x13f74c['data'])switch(_0x13f74c['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'](_0x3e25f2,_0x5e8e63){const _0x2c5f9f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c67a5 of _0x2c5f9f['getSuggestions']({'skipNotAttached':!0x0})){const _0x493c2c=_0x1c67a5['getContainedElement']();if(_0x1c67a5['subType']===_0x5e8e63&&_0x493c2c===_0x3e25f2)return _0x1c67a5;}return null;}}const m='$elementName';class p extends _0x4dba3d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ee882,_0x8f5a2b,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(_0x2efc32){function _0xe469b8(_0x6f2c67){return _0x6f2c67['map'](_0x8fd90d=>String['fromCharCode'](_0x8fd90d))['join']('');}super(_0x2efc32),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x16cc21,_0x2d4a30,_0x465204,_0x552426)=>{this['_model']['change'](()=>{for(const _0x14b8a3 of[..._0x552426,..._0x465204])this['_model']['markers']['has'](_0x14b8a3)&&_0x2efc32['editing']['reconvertMarker'](_0x14b8a3);});}),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']=_0x2efc32['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(),_0x2efc32['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2efc32['config']['get']('trackChanges.trackFormatChanges'),_0x2efc32['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2efc32['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x2efc32,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xe469b8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xe469b8([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x34]);}['init'](){const _0xf8b8ec=this['editor'],_0x2fe150=(_0x2a47b7,_0x526823)=>{if('attribute'!=_0x2a47b7)return'ck-suggestion-marker-'+_0x2a47b7;const _0x2b4da1=_0x526823['split']('|')[0x0];return this['_isBlockAttribute'](_0x2b4da1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xf8b8ec['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x29cb07=>{const {id:_0x4efe6b,type:_0x4542e1,subType:_0x110e4c}=this['_splitMarkerName'](_0x29cb07['markerName']),_0x25dca7=['ck-suggestion-marker',_0x2fe150(_0x4542e1,_0x110e4c)];let _0x19cbd8=0xbb8;return this['activeMarkers']['includes'](_0x29cb07['markerName'])&&(_0x25dca7['push']('ck-suggestion-marker--active'),_0x19cbd8=0xbc2),'deletion'==_0x4542e1&&(_0x19cbd8+=0x5),{'classes':_0x25dca7,'attributes':{'data-suggestion':_0x4efe6b},'priority':_0x19cbd8};}}),_0xf8b8ec['conversion']['for']('dataDowncast')['add'](_0x149a64=>{_0x149a64['on']('addMarker:suggestion',(_0x474793,_0x548b11,_0x400369)=>{if(!_0x400369['options']['showSuggestionHighlights'])return;const _0x51c195=_0x548b11['item'];if(!_0x51c195)return;const _0x2cfba0=_0x400369['mapper']['toViewElement'](_0x51c195);_0xf8b8ec['model']['schema']['isObject'](_0x51c195)&&_0x2cfba0&&!_0x2cfba0['getCustomProperty']('widget')&&_0x2cfba0['is']('containerElement')&&_0x5cb794(_0x2cfba0,_0x400369['writer']);},{'priority':'high'});}),_0xf8b8ec['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5687fc,_0x2ca177)=>{if(!_0x2ca177['options']['showSuggestionHighlights'])return null;const {type:_0x290a74,subType:_0x4a98f8}=this['_splitMarkerName'](_0x5687fc['markerName']);return{'classes':['ck-suggestion-marker',_0x2fe150(_0x290a74,_0x4a98f8)],'priority':0xbb8};}});const _0x11c432=({showActiveMarkers:_0x47e7f6=!0x0,isAttributeSuggestion:_0x195888=!0x1}={})=>(_0x23a9a3,_0x3fd61,_0x38e9ff)=>{if(!_0x3fd61['item'])return;const {id:_0x1559a6}=this['_splitMarkerName'](_0x3fd61['markerName']);if(_0x195888){const _0x725d8f=this['_suggestions']['get'](_0x1559a6),_0x55736c=this['_getAttributeKey'](_0x725d8f);if(!this['_isBlockAttribute'](_0x55736c))return;}if(_0x3fd61['item']['is']('selection'))return void _0x38e9ff['consumable']['consume'](_0x3fd61['item'],_0x23a9a3['name']);const _0x16491c=_0x38e9ff['mapper']['toViewElement'](_0x3fd61['item']);if(_0x3fd61['item']['is']('element')&&_0xf8b8ec['model']['schema']['isBlock'](_0x3fd61['item'])&&!_0x16491c['getCustomProperty']('addHighlight')){_0x38e9ff['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x16491c),_0x38e9ff['writer']['setAttribute']('data-suggestion',_0x1559a6,_0x16491c),_0x38e9ff['mapper']['bindElementToMarker'](_0x16491c,_0x3fd61['markerName']),_0x47e7f6&&(this['activeMarkers']['includes'](_0x3fd61['markerName'])?_0x38e9ff['writer']['addClass']('ck-suggestion-marker--active',_0x16491c):_0x38e9ff['writer']['removeClass']('ck-suggestion-marker--active',_0x16491c));for(const _0xcd3d8c of _0xf8b8ec['model']['createRangeIn'](_0x3fd61['item'])['getItems']())_0x38e9ff['consumable']['consume'](_0xcd3d8c,_0x23a9a3['name']);_0x38e9ff['consumable']['consume'](_0x3fd61['item'],_0x23a9a3['name']);}};_0xf8b8ec['conversion']['for']('dataDowncast')['add'](_0x3626ce=>{_0x3626ce['on']('addMarker:suggestion:formatBlock',(_0x47e025,_0x316bc6,_0x3a4b55)=>{_0x3a4b55['options']['showSuggestionHighlights']&&_0x11c432({'showActiveMarkers':!0x1})(_0x47e025,_0x316bc6,_0x3a4b55);},{'priority':'highest'});}),_0xf8b8ec['conversion']['for']('dataDowncast')['add'](_0x11de31=>{_0x11de31['on']('addMarker:suggestion:attribute',(_0x2dff14,_0x45db28,_0x2c9f3e)=>{_0x2c9f3e['options']['showSuggestionHighlights']&&_0x11c432({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2dff14,_0x45db28,_0x2c9f3e);},{'priority':'highest'});}),_0xf8b8ec['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb3ed1e,_0x2dd3b4)=>_0x2dd3b4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xb3ed1e['substr'](0xb)}}),_0xf8b8ec['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5df449,{writer:_0x408905})=>{let _0x1d6670='suggestion:'+_0x5df449['getAttribute']('suggestion-type')+':'+_0x5df449['getAttribute']('id');return _0x5df449['getAttribute']('marker-count')&&(_0x1d6670+=':'+_0x5df449['getAttribute']('marker-count')),_0x408905['createElement']('$marker',{'data-name':_0x1d6670});}}),_0xf8b8ec['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xf8b8ec['conversion']['for']('editingDowncast')['add'](_0x217127=>{_0x217127['on']('addMarker:suggestion:formatBlock',_0x11c432(),{'priority':'high'});}),_0xf8b8ec['conversion']['for']('editingDowncast')['add'](_0x296263=>{_0x296263['on']('addMarker:suggestion:attribute',_0x11c432({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xf8b8ec['conversion']['for']('editingDowncast')['add'](_0x1a5785=>{_0x1a5785['on']('removeMarker:suggestion:formatBlock',(_0x39bdd6,_0x31615e,_0x179d22)=>{const _0xd526e1=_0x179d22['mapper']['markerNameToElements'](_0x31615e['markerName']);if(_0xd526e1){for(const _0x37d532 of _0xd526e1)_0x37d532['getCustomProperty']('addHighlight')||(_0x179d22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37d532),_0x179d22['writer']['removeAttribute']('data-suggestion',_0x37d532),_0x179d22['mapper']['unbindElementFromMarkerName'](_0x37d532,_0x31615e['markerName']));}},{'priority':'high'});}),_0xf8b8ec['conversion']['for']('editingDowncast')['add'](_0x1a1358=>{_0x1a1358['on']('removeMarker:suggestion:attribute',(_0x37028c,_0x1ee9ca,_0x1b15e4)=>{const _0x1f847b=_0x1b15e4['mapper']['markerNameToElements'](_0x1ee9ca['markerName']);if(!_0x1f847b)return;const {id:_0x2b7a0b}=this['_splitMarkerName'](_0x1ee9ca['markerName']),_0x247442=this['_suggestions']['get'](_0x2b7a0b),_0x1ad804=this['_getAttributeKey'](_0x247442);if(this['_isBlockAttribute'](_0x1ad804)){for(const _0x3c97c1 of _0x1f847b)_0x3c97c1['getCustomProperty']('addHighlight')||(_0x1b15e4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c97c1),_0x1b15e4['writer']['removeAttribute']('data-suggestion',_0x3c97c1),_0x1b15e4['mapper']['unbindElementFromMarkerName'](_0x3c97c1,_0x1ee9ca['markerName']));}},{'priority':'high'});}),_0xf8b8ec['model']['document']['registerPostFixer'](_0x26c12e=>{let _0x5600f5=!0x1;const _0x270104=Array['from'](_0xf8b8ec['model']['document']['differ']['getChangedMarkers']()),_0x43e02f=new Set();for(const {name:_0x46bb09,data:_0x479e1a}of _0x270104){const {group:_0x457b05,type:_0x5cc108,subType:_0x4d32a0,id:_0x36985a}=this['_splitMarkerName'](_0x46bb09);if('suggestion'!==_0x457b05)continue;const _0x11cb14=this['_suggestions']['get'](_0x36985a);if(null!=_0x479e1a['newRange']){'formatInline'==_0x5cc108&&(_0x5600f5=_0x5600f5||Et(_0x479e1a['newRange'],_0x46bb09,_0x26c12e,_0xf8b8ec['model']['schema']));const _0x511208='attribute'==_0x5cc108&&this['_isBlockAttribute'](_0x4d32a0['split']('|')[0x0]);if(_0x479e1a['newRange']['isCollapsed']||'$graveyard'==_0x479e1a['newRange']['root']['rootName']||'formatBlock'==_0x5cc108&&!Ut(_0x479e1a['newRange'])||_0x511208&&!Ut(_0x479e1a['newRange'])||'deletion'==_0x5cc108&&!(!Tt(_0xd19684=_0x479e1a['newRange'])&&!function(_0x401b96){return _0x401b96['start']['parent']==_0x401b96['end']['nodeBefore']&&_0x401b96['start']['isAtEnd'];}(_0xd19684)))_0x26c12e['removeMarker'](_0x46bb09),_0x5600f5=!0x0;else{if(!_0x11cb14||!_0x11cb14['isInContent'])continue;_0x43e02f['add'](_0x11cb14);}}}var _0xd19684;return _0x43e02f['size']>0x0&&(_0x5600f5=!!this['_joinWithAdjacentSuggestions'](_0x43e02f)||_0x5600f5),_0x5600f5;}),_0xf8b8ec['model']['document']['registerPostFixer'](_0x236b33=>{let _0x422f32=!0x1;for(const _0x49a5af of _0xf8b8ec['model']['document']['differ']['getChanges']())if('insert'==_0x49a5af['type'])for(const _0x342852 of this['_suggestions']['values']()){if(_0x342852['isMultiRange']||!_0x342852['isInContent'])continue;const _0x3ac7f6='formatBlock'==_0x342852['type'],_0x31d237=this['_getAttributeKey'](_0x342852),_0x380d89=_0x31d237&&this['_isBlockAttribute'](_0x31d237);if(!_0x3ac7f6&&!_0x380d89)continue;const _0x32ce37=_0x342852['getFirstRange']();if(_0x32ce37['start']['parent']!=_0x32ce37['end']['parent']&&!_0x32ce37['end']['isAtEnd']){const _0x43abcd=_0xf8b8ec['model']['createPositionAt'](_0x32ce37['start']['nodeAfter'],'end'),_0x57caf2=_0xf8b8ec['model']['createRange'](_0x32ce37['start'],_0x43abcd);_0x236b33['updateMarker'](_0x342852['getFirstMarker'](),{'range':_0x57caf2}),_0x422f32=!0x0;}}return _0x422f32;}),_0xf8b8ec['model']['document']['registerPostFixer'](_0x93f5e7=>this['_processAttributeChanges'](_0x93f5e7)),_0xf8b8ec['model']['document']['registerPostFixer'](_0x3e472a=>!_0x3e472a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e472a)),_0xf8b8ec['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xf8b8ec['model']['document']['on']('change:data',(_0x4c3a15,_0x104d10)=>{if(!_0x104d10['isLocal']||_0x104d10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x45ae61=_0xf8b8ec['model']['document']['differ']['getChanges']();if(0x0==_0x45ae61['length'])return;const _0xdc761f=[],_0x16c28d=_0x45ae61['filter'](_0x5c470e=>'attribute'==_0x5c470e['type']),_0x26d291=_0x45ae61['filter'](_0x515b1e=>'insert'==_0x515b1e['type']&&'$text'!=_0x515b1e['name']);for(const _0x2e5ed8 of _0x16c28d)this['_isRegisteredAttribute'](_0x2e5ed8['attributeKey'])&&_0xdc761f['push']({'key':_0x2e5ed8['attributeKey'],'newValue':_0x2e5ed8['attributeNewValue'],'oldValue':_0x2e5ed8['attributeOldValue'],'range':Ot(_0x2e5ed8['range'],_0xf8b8ec['model'])});for(const _0x2721fe of _0x26d291){if('rename'!=_0x2721fe['action']&&'refresh'!=_0x2721fe['action'])continue;const _0x239a18=Gt(_0x2721fe['position']['nodeAfter'],_0xf8b8ec['model']),_0x4006eb=_0x2721fe['before'];'rename'==_0x2721fe['action']&&_0xdc761f['push']({'key':m,'newValue':_0x2721fe['name'],'oldValue':_0x4006eb['name'],'range':_0x239a18});for(const [_0x3b21e4,_0x47cc52]of _0x4006eb['attributes']){if(!this['_isRegisteredAttribute'](_0x3b21e4))continue;const _0x459a1b=_0x2721fe['attributes']['get'](_0x3b21e4);_0x47cc52!==_0x459a1b&&_0xdc761f['push']({'key':_0x3b21e4,'newValue':_0x459a1b,'oldValue':_0x47cc52,'range':_0x239a18});}for(const [_0x5f33ff,_0x303955]of _0x2721fe['attributes'])this['_isRegisteredAttribute'](_0x5f33ff)&&(_0x4006eb['attributes']['has'](_0x5f33ff)||_0xdc761f['push']({'key':_0x5f33ff,'newValue':_0x303955,'oldValue':null,'range':_0x239a18}));}0x0!=_0xdc761f['length']&&_0xf8b8ec['model']['enqueueChange'](_0x104d10,_0x5b8767=>{const _0x8f0e46=_0x5b2e26();for(const {range:_0x17ae44,key:_0xe2c7fe,oldValue:_0x268691,newValue:_0x529a8e}of _0xdc761f)this['markAttributeChange'](_0x17ae44,_0xe2c7fe,_0x268691,_0x529a8e,{'groupId':_0x8f0e46});this['_reduceExistingSuggestions'](_0x5b8767,_0xdc761f);});},{'priority':'lowest'}),_0xf8b8ec['model']['markers']['on']('update:suggestion',(_0x27ba53,_0xba3c50,_0x115a7e)=>{if(null==_0x115a7e){const {id:_0x4bc62b}=this['_splitMarkerName'](_0xba3c50['name']),_0x5d1084=this['_suggestions']['get'](_0x4bc62b);_0x5d1084&&_0x5d1084['addMarkerName'](_0xba3c50['name']);}}),_0xf8b8ec['model']['document']['on']('change:data',()=>{const _0x4978a5=Array['from'](_0xf8b8ec['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3f76ce=>'suggestion'===this['_splitMarkerName'](_0x3f76ce['name'])['group']);if(0x0===_0x4978a5['length'])return;_0x4978a5['sort']((_0x5be0e4,_0x597b1b)=>{const _0xe55bf1=_0x5be0e4['data']['oldRange'],_0x4fb4a1=_0x597b1b['data']['oldRange'];return null===_0xe55bf1&&null===_0x4fb4a1?0x0:null===_0xe55bf1&&null!==_0x4fb4a1?-0x1:null!==_0xe55bf1&&null===_0x4fb4a1?0x1:_0xe55bf1['start']['isBefore'](_0x4fb4a1['start'])?-0x1:0x1;});const _0x3ba18b=new Set(),_0x1615a0=new Set();for(const {name:_0x1fe77c,data:_0x185ceb}of _0x4978a5){const {id:_0x21ceb8}=this['_splitMarkerName'](_0x1fe77c);if(null===_0x185ceb['oldRange']){const _0x33ae32=this['_handleNewSuggestionMarker'](_0x1fe77c);_0x1615a0['add'](_0x33ae32);}else{const _0x410dd0=this['_suggestions']['get'](_0x21ceb8);null!==_0x185ceb['newRange']||_0x410dd0['isInContent']?(_0x3ba18b['add'](_0x410dd0['head']),_0x1615a0['add'](_0x410dd0)):this['_removeSuggestion'](_0x410dd0);}}_0x1615a0['size']>0x0&&this['_refreshSuggestionsChain'](_0x1615a0);for(const _0x2dbc8f of _0x3ba18b)this['fire']('suggestionChanged',_0x2dbc8f);}),_0xf8b8ec['model']['on']('applyOperation',(_0x15761f,_0x1158a7)=>{const _0x15d83a=_0x1158a7[0x0];if(!this['_suggestions']['size'])return;if(!_0x15d83a['isDocumentOperation'])return;if(_0x15d83a['batch']['isUndo']||!_0x15d83a['batch']['isLocal'])return;let _0x5d7d9a,_0x2bc7a7;switch(_0x15d83a['type']){case'insert':_0x5d7d9a=_0xf8b8ec['model']['createPositionAt'](_0x15d83a['position']),_0x2bc7a7=_0x5d7d9a['getShiftedBy'](_0x15d83a['howMany']);break;case'split':_0x5d7d9a=_0xf8b8ec['model']['createPositionAt'](_0x15d83a['splitPosition']),_0x2bc7a7=_0xf8b8ec['model']['createPositionAt'](_0x15d83a['moveTargetPosition']);break;case'move':_0x5d7d9a=_0xf8b8ec['model']['createPositionAt'](_0x15d83a['targetPosition']),_0x2bc7a7=_0x5d7d9a['getShiftedBy'](_0x15d83a['howMany']);break;default:return;}const _0x1442e3=_0xf8b8ec['model']['createRange'](_0x5d7d9a,_0x2bc7a7);_0xf8b8ec['model']['change'](()=>{for(const {suggestion:_0x265405,meta:_0x4ddb37}of this['_findSuggestions'](_0x1442e3)){if(_0x265405['isMultiRange'])continue;if('formatInline'==_0x265405['type'])continue;const _0x295f1c=this['_getAttributeKey'](_0x265405);if(_0x295f1c&&this['_isBlockAttribute'](_0x295f1c)&&'split'!=_0x15d83a['type'])continue;const _0x310ed5=_0x265405['data']&&_0x265405['data']['multipleBlocks'];('formatBlock'!=_0x265405['type']||'split'==_0x15d83a['type']&&!_0x310ed5)&&(_0x4ddb37['containsRangeInObject']||'insertion'==_0x265405['type']&&_0x4ddb37['isOwn']||_0x265405['getFirstRange']()['containsRange'](_0x1442e3)&&this['_breakSuggestionMarker'](_0x265405,_0x5d7d9a,_0x2bc7a7));}});},{'priority':'lowest'}),_0xf8b8ec['model']['on']('deleteContent',(_0x22bba4,_0x445601)=>{const _0x14c8b1=_0x445601[0x0],_0x525f96=_0x445601[0x1];if(_0x525f96&&_0x525f96['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x14c8b1['isCollapsed'])return;const _0x199491=_0xf8b8ec['model']['schema'],{start:_0x419ac6,end:_0x32ad9e}=_0x14c8b1['getFirstRange'](),_0x5abc9d=_0x419ac6['nodeAfter']&&_0x199491['isLimit'](_0x419ac6['nodeAfter'])?null:_0x199491['getNearestSelectionRange'](_0x419ac6,'forward'),_0x404f1f=_0x32ad9e['nodeBefore']&&_0x199491['isLimit'](_0x32ad9e['nodeBefore'])?null:_0x199491['getNearestSelectionRange'](_0x32ad9e,'backward'),_0xfcfc28=_0xf8b8ec['model']['createRange'](_0x5abc9d?_0x5abc9d['start']:_0x419ac6,_0x404f1f?_0x404f1f['end']:_0x32ad9e);_0xf8b8ec['model']['change'](_0x24e84e=>{this['markDeletion'](_0xfcfc28);const _0x309715=_0xf8b8ec['model']['schema']['getNearestSelectionRange'](_0xfcfc28['start']);_0x14c8b1['is']('documentSelection')?_0x24e84e['setSelection'](_0x309715):_0x14c8b1['setTo'](_0x309715);}),_0x22bba4['stop']();},{'priority':_0xe9319b['normal']+0xa}),_0xf8b8ec['model']['on']('insertContent',(_0x186cd3,_0x516437)=>{const _0xa7569d=_0x516437[_0x516437['length']-0x1];_0xa7569d&&_0xa7569d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xf8b8ec['model']['change'](()=>{let _0x4785f0=_0xf8b8ec['model']['insertContent'](_0x516437[0x0],_0x516437[0x1],_0x516437[0x2],{'forceDefaultExecution':!0x0});if(!_0x4785f0)return;_0x186cd3['return']=_0x4785f0['clone']();const _0xdd83a1=_0x4785f0['end']['nodeBefore'],_0x4db585=_0xf8b8ec['model']['schema'];_0xdd83a1&&_0x4db585['isBlock'](_0xdd83a1)&&!_0x4db585['isObject'](_0xdd83a1)&&(_0x4785f0=_0xf8b8ec['model']['createRange'](_0x4785f0['start'],_0xf8b8ec['model']['createPositionAt'](_0xdd83a1,'end'))),this['markInsertion'](_0x4785f0);}),_0x186cd3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x220ade=new $(_0xf8b8ec,this['_suggestions']);_0xf8b8ec['commands']['add']('acceptSuggestion',_0x220ade),this['enableCommand']('acceptSuggestion');const _0x1e2880=new B(_0xf8b8ec,this['_suggestions']);_0xf8b8ec['commands']['add']('discardSuggestion',_0x1e2880),this['enableCommand']('discardSuggestion'),_0xf8b8ec['commands']['add']('acceptAllSuggestions',new x(_0xf8b8ec,_0x220ade,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xf8b8ec['commands']['add']('discardAllSuggestions',new x(_0xf8b8ec,_0x1e2880,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xf8b8ec['commands']['add']('acceptSelectedSuggestions',new R(_0xf8b8ec,_0x220ade,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xf8b8ec['commands']['add']('discardSelectedSuggestions',new R(_0xf8b8ec,_0x1e2880,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xedd26a=_0xf8b8ec['plugins']['get']('CommentsRepository');this['listenTo'](_0xedd26a,'addComment',(_0x74ad4b,{threadId:_0x17c4a6})=>{const _0x4fadb4=this['_suggestions']['get'](_0x17c4a6);_0x4fadb4&&_0x4fadb4['commentThread']&&0x1===_0x4fadb4['commentThread']['length']&&this['_updateSuggestionData'](_0x17c4a6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xedd26a,'removeComment',(_0x2ad912,{threadId:_0x482813})=>{const _0xe01d05=this['_suggestions']['get'](_0x482813);_0xe01d05&&_0xe01d05['commentThread']&&!_0xe01d05['commentThread']['length']&&this['_updateSuggestionData'](_0x482813,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2b5f5c){if(this['_adapter'])throw new _0x14c552('track-changes-adapter-already-set',this);this['_adapter']=_0x2b5f5c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x107b5d=!0x1,toJSON:_0x23cef4=!0x1}={}){const _0x4637e6=[];for(const _0x1bd297 of this['_suggestions']['values']())_0x107b5d&&!_0x1bd297['isInContent']||_0x4637e6['push'](_0x1bd297);return _0x23cef4?_0x4637e6['map'](_0x509da9=>_0x509da9['toJSON']()):_0x4637e6;}['getSuggestion'](_0x39150e){const _0x297030=this['_suggestions']['get'](_0x39150e);if(!_0x297030)throw new _0x14c552('track-changes-suggestion-not-found',this);return _0x297030;}['hasSuggestion'](_0x318d8c){return this['_suggestions']['has'](_0x318d8c);}['addSuggestionData'](_0x1095d8){const {authorId:_0x49cf12,id:_0x53d423,attributes:_0x509b4a}=_0x1095d8,[_0x1fdcf5,_0x51f3ba]=_0x1095d8['type']['split'](':'),_0x1baee7=this['_suggestions']['get'](_0x53d423)||this['_createSuggestion'](_0x1fdcf5,_0x51f3ba,_0x53d423,_0x49cf12,_0x509b4a);if(this['_addThreadToSuggestion'](_0x1baee7),this['_checkSuggestionCorrectness'](_0x1baee7,_0x1fdcf5,_0x51f3ba||null,_0x49cf12),_0x1baee7['createdAt']=_0x1095d8['createdAt'],_0x1baee7['_isDataLoaded']=!0x0,_0x509b4a&&_0x509b4a['@external']){const _0x4a0a5b=_0x509b4a['@external'],_0x3b5a81=this['_getExternalAuthor'](_0x4a0a5b['authorName']);_0x1baee7['authoredAt']=_0x4a0a5b['createdAt'],_0x1baee7['author']=_0x3b5a81,_0x1baee7['isExternal']=!0x0;}else _0x1baee7['authoredAt']=_0x1095d8['createdAt'];switch(_0x1095d8['data']&&(_0x1baee7['data']=_0x1095d8['data']),_0x1095d8['attributes']&&(_0x1baee7['attributes']=_0x1095d8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1baee7['_saved']=!0x0),this['_suggestionState']['get'](_0x1baee7)){case'notReady':this['_suggestionState']['set'](_0x1baee7,'dataReady');break;case'markerReady':_0x1baee7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1baee7])),this['_refreshSuggestionsChain'](new Set([_0x1baee7])),this['_suggestionState']['set'](_0x1baee7,'ready'),this['fire']('suggestionLoaded',_0x1baee7)):this['_suggestionState']['set'](_0x1baee7,'removed');}return _0x1baee7;}['acceptSuggestion'](_0x452182){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x564b98 of _0x452182['getAllAdjacentSuggestions']())_0x564b98['accept']();});});}['discardSuggestion'](_0x10d90f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23024f of _0x10d90f['getAllAdjacentSuggestions']())_0x23024f['discard']();});});}['enableCommand'](_0x19d521,_0x220f66){const _0x805041=this['editor']['commands']['get'](_0x19d521);if(!_0x805041)throw new _0x14c552('track-changes-command-not-found',this,{'commandName':_0x19d521});if(this['_enabledCommands']['has'](_0x805041))throw new _0x14c552('track-changes-enable-command-twice',this,{'commandName':_0x19d521});this['_enabledCommands']['add'](_0x805041),_0x220f66&&_0x805041['on']('execute',(_0x2af5d8,_0x315498)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x315498['length']>0x0&&_0x315498[_0x315498['length']-0x1]&&_0x315498[_0x315498['length']-0x1]['forceDefaultExecution']?_0x315498['pop']():(_0x2af5d8['return']=_0x220f66((..._0x459cff)=>_0x805041['execute'](..._0x459cff,{'forceDefaultExecution':!0x0}),..._0x315498),_0x2af5d8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6ee2ad){let _0x20c471,_0x1c0cd4;const _0x598824=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x20c471=_0x6ee2ad();}catch(_0x20d300){_0x1c0cd4=_0x20d300;}return _0x598824||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1c0cd4&&_0x14c552['rethrowUnexpectedError'](_0x1c0cd4,this),_0x20c471;}['markInsertion'](_0x1d6a12,_0x39f672=null,_0x41deec={}){if(_0x1d6a12['isCollapsed'])return null;const _0xc51213=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5b922a,meta:_0x45456a}of this['_findSuggestions'](_0x1d6a12,'insertion'))if(_0x45456a['isOwn']){if(!_0x45456a['isNextTo']){if(_0x45456a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5b922a,_0x41deec))continue;return _0x5b922a;}if(Lt(_0x5b922a,_0x41deec))return _0x5b922a;this['_breakSuggestionMarker'](_0x5b922a,_0x1d6a12['start'],_0x1d6a12['end']);break;}if(_0x39f672==_0x5b922a['subType']&&Lt(_0x5b922a,_0x41deec)){const _0x3d169a=_0x5b922a['getFirstRange']();return _0x3d169a['start']['isEqual'](_0x1d6a12['end'])?this['_setSuggestionRange'](_0x5b922a,this['_model']['createRange'](_0x1d6a12['start'],_0x3d169a['end'])):this['_setSuggestionRange'](_0x5b922a,this['_model']['createRange'](_0x3d169a['start'],_0x1d6a12['end'])),_0x5b922a;}}const _0x19c223=_0x5b2e26(),_0x29b204=_0xc51213['id'],_0x16e9e3=_0x39f672?'insertion:'+_0x39f672:'insertion',_0x2eef68=this['_setSuggestionData']({'id':_0x19c223,'type':_0x16e9e3,'createdAt':new Date(),'authorId':_0x29b204,'attributes':_0x41deec});return this['_addSuggestionMarker'](_0x16e9e3,_0x19c223,_0x29b204,_0x1d6a12),_0x2eef68;}['markMultiRangeInsertion'](_0x3d3e63,_0x237fb4='multi',_0x154f79={}){const _0x403617=this['editor']['plugins']['get']('Users')['me'],_0x449189=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x237fb4,'join');for(const _0x596391 of this['getSuggestions']())if(_0x596391['author']['id']==_0x403617['id']&&'insertion'==_0x596391['type']&&_0x596391['subType']==_0x237fb4&&Lt(_0x596391,_0x154f79)&&(_0x449189(_0x596391['getRanges'](),_0x3d3e63)||_0x449189(_0x3d3e63,_0x596391['getRanges']()))){for(const _0x1197c1 of _0x3d3e63)_0x596391['addRange'](_0x1197c1);return _0x596391;}for(const {suggestion:_0x399978,meta:_0x352e17}of this['_findSuggestions'](_0x3d3e63,'insertion')){if(!_0x352e17['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x352e17['containsRangeInObject'])continue;if(!Lt(_0x399978,_0x154f79))continue;let _0x2bb9e1=!0x0;for(const _0x3a980f of _0x399978['getRanges']())for(const _0x3eb4d1 of _0x3d3e63)if(!_0x3a980f['containsRange'](_0x3eb4d1)){_0x2bb9e1=!0x1;break;}if(_0x2bb9e1)return _0x399978;}const _0x1918f3=_0x5b2e26(),_0x25986b=_0x403617['id'],_0x294a8b='insertion:'+_0x237fb4,_0x17d716=this['_setSuggestionData']({'id':_0x1918f3,'type':_0x294a8b,'createdAt':new Date(),'authorId':_0x25986b,'attributes':_0x154f79});for(const _0x2b0ec1 of _0x3d3e63)this['_addSuggestionMarker'](_0x294a8b,_0x1918f3,_0x25986b,_0x2b0ec1,u['getMultiRangeId']());return _0x17d716;}['markInlineFormat'](_0x41064d,_0x50e5e9,_0x4d27f7=null,_0x49ef15={}){if(_0x4d27f7=_0x4d27f7||Vt(_0x50e5e9),_0x41064d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4ff8df=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d27f7,'accept');return this['forceDefaultExecution'](()=>_0x4ff8df([_0x41064d],_0x50e5e9,_0x49ef15)),null;}const _0x51ccef=this['editor']['plugins']['get']('Users')['me'],_0x13edb3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28ceb5,meta:_0x431845}of this['_findSuggestions'](_0x41064d,'insertion'))_0x431845['isOwn']&&!_0x431845['isInsideObject']&&_0x13edb3['push'](..._0x28ceb5['getRanges']());}const _0xe3132d=function(_0x3b9421,_0x526fe7){const _0x25d7f3=[];for(const _0x16f33c of _0x526fe7){const _0x2dd3d8=_0x3b9421['getIntersection'](_0x16f33c);_0x2dd3d8&&_0x25d7f3['push'](_0x2dd3d8);}return _0x25d7f3;}(_0x41064d,_0x13edb3),_0x286741=function(_0x15d531,_0x58331e){const _0x263664=[_0x15d531];for(const _0x589065 of _0x58331e){let _0x536465=0x0;for(;_0x536465<_0x263664['length'];){const _0x5a3693=_0x263664[_0x536465]['getDifference'](_0x589065);_0x263664['splice'](_0x536465,0x1,..._0x5a3693),_0x536465+=_0x5a3693['length'];}}return _0x263664;}(_0x41064d,_0x13edb3);_0xe3132d['length']&&this['_model']['change'](()=>{for(const _0x4b0c48 of _0xe3132d){const _0x3edaa9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d27f7,'accept');this['forceDefaultExecution'](()=>_0x3edaa9([_0x4b0c48],_0x50e5e9,_0x49ef15));}});for(const _0x390a6a of _0x286741){let _0x7af78f=null,_0xfb50f5=_0x390a6a['start'],_0x555e9c=_0x390a6a['end'];for(const {suggestion:_0x4b6d12,meta:_0x5a4f16}of this['_findSuggestions'](_0x390a6a,'formatInline')){if(!_0x5a4f16['isOwn'])continue;if(_0x4b6d12['subType']!=_0x4d27f7)continue;if(!Lt(_0x4b6d12,_0x49ef15))continue;const _0x3803f0=_0x4b6d12['getFirstRange']();if(_0x3803f0['containsRange'](_0x390a6a,!0x0))return null;_0xfb50f5=_0xfb50f5['isBefore'](_0x3803f0['start'])?_0xfb50f5:_0x3803f0['start'],_0x555e9c=_0x555e9c['isAfter'](_0x3803f0['end'])?_0x555e9c:_0x3803f0['end'],_0x7af78f?_0x3803f0['start']['isBefore'](_0x7af78f['getFirstRange']()['start'])?(_0x7af78f['removeMarkers'](),_0x7af78f=_0x4b6d12):_0x4b6d12['removeMarkers']():_0x7af78f=_0x4b6d12;}const _0x1f974c=this['_model']['createRange'](_0xfb50f5,_0x555e9c);if(_0x7af78f)this['_setSuggestionRange'](_0x7af78f,_0x1f974c);else{const _0x357915=_0x5b2e26(),_0x34ec04=_0x51ccef['id'];this['_setSuggestionData']({'id':_0x357915,'type':'formatInline:'+_0x4d27f7,'data':_0x50e5e9,'createdAt':new Date(),'authorId':_0x34ec04,'attributes':_0x49ef15}),this['_addSuggestionMarker']('formatInline:'+_0x4d27f7,_0x357915,_0x34ec04,_0x1f974c);}}return null;}['markBlockFormat'](_0x4a0fc7,_0x11cc8f,_0x14931e=[],_0x641427=null,_0x3d18b0={}){_0x11cc8f['formatGroupId']||(_0x11cc8f['formatGroupId']=_0x11cc8f['commandName']),_0x11cc8f['multipleBlocks']=_0x4a0fc7['is']('range'),_0x641427=_0x641427||Vt(_0x11cc8f);const _0x20df98=_0x14931e['map'](_0x226908=>Gt(_0x226908,this['_model'])),_0x5e4141=_0x4a0fc7['is']('range')?_0x4a0fc7:Gt(_0x4a0fc7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5cd701=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x641427,'accept');return this['forceDefaultExecution'](()=>_0x5cd701([_0x5e4141],_0x11cc8f,_0x3d18b0)),null;}_0x20df98['push'](_0x5e4141);let _0x96c8df=!0x0;for(const _0xda6950 of _0x20df98)if(!this['_rangeIsInLocalUserInsertion'](_0xda6950)){_0x96c8df=!0x1;break;}if(_0x96c8df&&'always'!==this['_trackFormatChanges']){const _0x1d87fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x641427,'accept');return this['forceDefaultExecution'](()=>_0x1d87fe([_0x5e4141],_0x11cc8f,_0x3d18b0)),null;}let _0x20906e=null,_0x2467ad=_0x5e4141['start'],_0x458a38=_0x5e4141['end'];for(const {suggestion:_0x14b43f,meta:_0x3ebfba}of this['_findSuggestions'](_0x5e4141,'formatBlock')){if(!_0x3ebfba['isOwn'])continue;if(_0x3ebfba['isNextTo']||_0x3ebfba['containsRangeInObject']||_0x3ebfba['isInsideObject'])continue;if(_0x14b43f['data']['formatGroupId']!=_0x11cc8f['formatGroupId'])continue;if(!Lt(_0x14b43f,_0x3d18b0))continue;const _0x3e365d=_0x14b43f['getFirstRange']();if(_0x14b43f['subType']==_0x641427){if(_0x3e365d['containsRange'](_0x5e4141,!0x0))return null;_0x2467ad=_0x2467ad['isBefore'](_0x3e365d['start'])?_0x2467ad:_0x3e365d['start'],_0x458a38=_0x458a38['isAfter'](_0x3e365d['end'])?_0x458a38:_0x3e365d['end'],_0x20906e?_0x3e365d['start']['isBefore'](_0x20906e['getFirstRange']()['start'])?(_0x20906e['removeMarkers'](),_0x20906e=_0x14b43f):_0x14b43f['removeMarkers']():_0x20906e=_0x14b43f;}else{const _0x2e59ef=_0x5e4141['getIntersection'](_0x3e365d);this['_cutOutSuggestionMarker'](_0x14b43f,_0x2e59ef);}}const _0x428196=this['editor']['plugins']['get']('Users')['me'],_0xb667ff=_0x5b2e26(),_0x507a7f=_0x428196['id'];if(_0x20906e)return this['_setSuggestionRange'](_0x20906e,this['_model']['createRange'](_0x2467ad,_0x458a38)),_0x20906e;{const _0x212666=this['_setSuggestionData']({'id':_0xb667ff,'type':'formatBlock:'+_0x641427,'data':_0x11cc8f,'createdAt':new Date(),'authorId':_0x507a7f,'attributes':_0x3d18b0});return this['_addSuggestionMarker']('formatBlock:'+_0x641427,_0xb667ff,_0x507a7f,this['_model']['createRange'](_0x2467ad,_0x458a38)),_0x212666;}}['markMultiRangeBlockFormat'](_0x175fef,_0x1271a3,_0x4d9689=[],_0x4557a1=null,_0x2890ad={}){_0x1271a3['formatGroupId']||(_0x1271a3['formatGroupId']=_0x1271a3['commandName']);const _0x2a63b9=_0x175fef[0x0];_0x1271a3['multipleBlocks']=_0x2a63b9['is']('range'),_0x4557a1=_0x4557a1||Vt(_0x1271a3);const _0x1fb49c=_0x4d9689['map'](_0x11f709=>Gt(_0x11f709,this['_model'])),_0x168645=_0x2a63b9['is']('range')?_0x175fef:_0x175fef['map'](_0x3aad53=>Gt(_0x3aad53,this['_model']));if('never'===this['_trackFormatChanges']){const _0x9dcc75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4557a1,'accept');return this['forceDefaultExecution'](()=>_0x9dcc75(_0x168645,_0x1271a3,_0x2890ad)),null;}_0x1fb49c['push'](..._0x168645);let _0x151fff=!0x0;for(const _0x22621d of _0x1fb49c)if(!this['_rangeIsInLocalUserInsertion'](_0x22621d)){_0x151fff=!0x1;break;}if(_0x151fff&&'always'!==this['_trackFormatChanges']){const _0x4e024f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4557a1,'accept');return this['forceDefaultExecution'](()=>_0x4e024f(_0x168645,_0x1271a3,_0x2890ad)),null;}const _0x57800d=this['editor']['plugins']['get']('Users')['me'];for(const _0x223b34 of this['getSuggestions']()){if(_0x223b34['author']['id']!=_0x57800d['id'])continue;if('formatBlock'!=_0x223b34['type']||_0x223b34['data']['formatGroupId']!=_0x1271a3['formatGroupId'])continue;if(!Lt(_0x223b34,_0x2890ad))continue;const _0x32a8bb=_0x223b34['subType']==_0x4557a1;for(let _0x3f0201=0x0;_0x3f0201<_0x168645['length'];_0x3f0201++){const _0x104945=_0x168645[_0x3f0201];for(const _0x907b8 of _0x223b34['getMarkers']()){const _0x238868=_0x907b8['getRange']();if(_0x104945['isEqual'](_0x238868)){_0x32a8bb?(_0x168645['splice'](_0x3f0201,0x1),_0x3f0201--):_0x223b34['removeMarker'](_0x907b8['name']);break;}}}}if(0x0==_0x168645['length'])return null;const _0x481fe9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4557a1,'join');for(const _0x3412ea of this['getSuggestions']())if(_0x3412ea['author']['id']==_0x57800d['id']&&'formatBlock'==_0x3412ea['type']&&_0x3412ea['data']['formatGroupId']==_0x1271a3['formatGroupId']&&_0x3412ea['subType']==_0x4557a1&&Lt(_0x3412ea,_0x2890ad)&&(_0x481fe9(_0x3412ea['getRanges'](),_0x168645)||_0x481fe9(_0x168645,_0x3412ea['getRanges']()))){for(const _0x20c571 of _0x168645)_0x3412ea['addRange'](_0x20c571);return _0x3412ea;}const _0x332c89=_0x5b2e26(),_0x384668=_0x57800d['id'],_0x37d80b='formatBlock:'+_0x4557a1,_0x25e6a6=this['_setSuggestionData']({'id':_0x332c89,'type':_0x37d80b,'data':_0x1271a3,'createdAt':new Date(),'authorId':_0x384668,'attributes':_0x2890ad});for(const _0x1d3a75 of _0x168645)this['_addSuggestionMarker'](_0x37d80b,_0x332c89,_0x384668,_0x1d3a75,u['getMultiRangeId']());return _0x25e6a6;}['markDeletion'](_0x3a6622,_0x41d06f=null,_0x10285e={}){if(_0x3a6622['isCollapsed'])return null;const _0x23250e=this['editor']['plugins']['get']('Users')['me'],_0xb79ea6=new _0x4544ff(_0x3a6622['start'],_0x3a6622['end']);for(const {suggestion:_0x38bfa1,meta:_0x228986}of this['_findSuggestions'](_0xb79ea6,'insertion'))if(_0x228986['isOwn']&&!_0x228986['isNextTo']){if(_0x38bfa1['isMultiRange']){const _0x2f7166=_0x38bfa1['getRanges']()['filter'](_0x3a3fcc=>'$graveyard'!=_0x3a3fcc['root']['rootName']);_0x2f7166['every'](_0x240673=>_0xb79ea6['containsRange'](_0x240673,!0x0))&&_0x38bfa1['discard']();if(_0x2f7166['some'](_0x41b3b0=>_0x41b3b0['containsRange'](_0xb79ea6,!0x0))){const _0x1e61ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41d06f,'accept');return this['forceDefaultExecution'](()=>_0x1e61ef([_0xb79ea6],null,_0x10285e)),null;}}else{const _0x3c0891=_0xb79ea6['getIntersection'](_0x38bfa1['getFirstRange']());null!==_0x3c0891&&_0x38bfa1['_onDiscard']([_0x3c0891],null,_0x10285e);}}if(_0xb79ea6['detach'](),_0xb79ea6['isCollapsed']||'$graveyard'==_0xb79ea6['root']['rootName'])return null;let _0x369aa5=null,_0x27fd80=_0xb79ea6['start'],_0x241b3d=_0xb79ea6['end'];const _0x385639=this['_findSuggestions'](_0xb79ea6,'deletion');for(const {suggestion:_0xf911f7,meta:_0x4390eb}of _0x385639){const _0x16a21a=this['_model']['createRange'](_0x27fd80,_0x241b3d);if(_0x4390eb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4390eb['containsRangeInObject']&&!_0x4390eb['isInsideObject'])){if(_0xf911f7['isMultiRange']){if(!Lt(_0xf911f7,_0x10285e))continue;let _0x3f04c7=!0x0;for(const _0x39fe74 of _0xf911f7['getRanges']()){if(_0x39fe74['containsRange'](_0x16a21a,!0x0))return _0xf911f7;_0x16a21a['containsRange'](_0x39fe74)||(_0x3f04c7=!0x1);}_0x3f04c7&&_0xf911f7['discard']();}else{const _0x45af5b=_0xf911f7['getFirstRange']();if(_0x45af5b['containsRange'](_0x16a21a,!0x0))return _0xf911f7;if(!Lt(_0xf911f7,_0x10285e)){_0x16a21a['containsRange'](_0x45af5b)?_0xf911f7['removeMarkers']():_0x45af5b['containsPosition'](_0x27fd80)?_0x27fd80=_0x45af5b['end']:_0x45af5b['containsPosition'](_0x241b3d)&&(_0x241b3d=_0x45af5b['start']);continue;}_0x27fd80=_0x27fd80['isBefore'](_0x45af5b['start'])?_0x27fd80:_0x45af5b['start'],_0x241b3d=_0x241b3d['isAfter'](_0x45af5b['end'])?_0x241b3d:_0x45af5b['end'],_0x10285e=Object['assign']({},_0xf911f7['attributes']),_0x369aa5?_0x45af5b['start']['isBefore'](_0x369aa5['getFirstRange']()['start'])?(_0x369aa5['removeMarkers'](),_0x369aa5=_0xf911f7):_0xf911f7['removeMarkers']():_0x369aa5=_0xf911f7;}}}if(_0x369aa5)return this['_setSuggestionRange'](_0x369aa5,this['_model']['createRange'](_0x27fd80,_0x241b3d)),_0x369aa5;{const _0x543db4=_0x5b2e26(),_0x2e1f94=this['_model']['createRange'](_0x27fd80,_0x241b3d),_0x165793=_0x23250e['id'],_0x434d22=_0x41d06f?'deletion:'+_0x41d06f:'deletion',_0x57d592=this['_setSuggestionData']({'id':_0x543db4,'type':_0x434d22,'createdAt':new Date(),'authorId':_0x165793,'attributes':_0x10285e});return this['_addSuggestionMarker'](_0x434d22,_0x543db4,_0x165793,_0x2e1f94),_0x57d592;}}['markMultiRangeDeletion'](_0x4d0714,_0x138f5d='multi',_0x3936c4={}){const _0x521242=this['editor']['plugins']['get']('Users')['me'],_0x42ff66=_0x4d0714['map'](_0x68b272=>new _0x4544ff(_0x68b272['start'],_0x68b272['end'])),_0x4ea9a0=new Set();for(const {suggestion:_0x42e900,meta:_0x26b19d}of this['_findSuggestions'](_0x42ff66,'insertion'))_0x26b19d['isOwn']&&!_0x26b19d['isNextTo']&&_0x4ea9a0['add'](_0x42e900);for(const _0x4505b6 of _0x4ea9a0)if(_0x4505b6['isMultiRange']){const _0x293ac3=_0x4505b6['getRanges']();(!_0x4505b6['attributes']||!_0x4505b6['attributes']['skipNestingCheck'])&&(_0x293ac3['every'](_0x39927c=>_0x42ff66['some'](_0x29ad6b=>_0x29ad6b['containsRange'](_0x39927c,!0x0)))&&_0x4505b6['discard']());if(_0x42ff66['every'](_0x10e639=>_0x293ac3['some'](_0x3ddfa0=>_0x3ddfa0['containsRange'](_0x10e639,!0x0)))){const _0x2853a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138f5d,'accept');return this['forceDefaultExecution'](()=>_0x2853a7(_0x4d0714,null,_0x3936c4)),null;}}else{const _0xfa674=_0x4505b6['getFirstRange']();_0x42ff66['some'](_0x5c971f=>_0x5c971f['containsRange'](_0xfa674,!0x0))&&_0x4505b6['discard']();if(_0x42ff66['every'](_0x4a7e21=>_0xfa674['containsRange'](_0x4a7e21,!0x0))){const _0x21d86c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138f5d,'accept');return this['forceDefaultExecution'](()=>_0x21d86c(_0x42ff66,null,_0x3936c4)),null;}}const _0x4d4be5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138f5d,'join');let _0x47ff61=null;for(const _0x7fad5a of this['getSuggestions']())if(_0x7fad5a['author']['id']==_0x521242['id']&&_0x7fad5a['isInContent']&&'deletion'==_0x7fad5a['type']&&_0x7fad5a['subType']==_0x138f5d&&Lt(_0x7fad5a,_0x3936c4)&&(_0x4d4be5(_0x7fad5a['getRanges'](),_0x42ff66)||_0x4d4be5(_0x42ff66,_0x7fad5a['getRanges']()))){if(_0x47ff61){if(_0x7fad5a['commentThread']&&_0x7fad5a['commentThread']['length'])continue;for(const _0x38d34c of _0x7fad5a['getRanges']())_0x47ff61['isIntersectingWithRange'](_0x38d34c)||_0x47ff61['addRange'](_0x38d34c);_0x7fad5a['removeMarkers']();}else{_0x47ff61=_0x7fad5a;for(const _0x3a3e68 of _0x42ff66)_0x7fad5a['isIntersectingWithRange'](_0x3a3e68)||_0x7fad5a['addRange'](_0x3a3e68);}}if(_0x47ff61)return _0x47ff61;_0x4ea9a0['clear']();for(const {suggestion:_0x410860,meta:_0x1e0cf4}of this['_findSuggestions'](_0x42ff66,'deletion'))_0x1e0cf4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e0cf4['containsRangeInObject']&&!_0x1e0cf4['isInsideObject'])&&Lt(_0x410860,_0x3936c4)&&_0x4ea9a0['add'](_0x410860);for(const _0x422224 of _0x4ea9a0){const _0x4ecec9=_0x422224['getRanges']();if(!_0x3936c4||!_0x3936c4['skipNestingCheck']){if(_0x42ff66['every'](_0x3d8fa0=>_0x4ecec9['some'](_0x1fbecd=>_0x1fbecd['containsRange'](_0x3d8fa0,!0x0))))return _0x422224;}(!_0x422224['attributes']||!_0x422224['attributes']['skipNestingCheck'])&&(_0x4ecec9['every'](_0x1ae189=>_0x42ff66['some'](_0x8368f7=>_0x8368f7['containsRange'](_0x1ae189,!0x0)))&&_0x422224['discard']());}const _0xb75cfe=_0x5b2e26(),_0x3f2ea5=_0x521242['id'],_0x50c967='deletion:'+_0x138f5d,_0x5670c0=this['_setSuggestionData']({'id':_0xb75cfe,'type':_0x50c967,'createdAt':new Date(),'authorId':_0x3f2ea5,'attributes':_0x3936c4});for(const _0x4b5741 of _0x42ff66)_0x4b5741['detach'](),_0x4b5741['isCollapsed']||'$graveyard'==_0x4b5741['root']['rootName']||this['_addSuggestionMarker'](_0x50c967,_0xb75cfe,_0x3f2ea5,_0x4b5741,u['getMultiRangeId']());return _0x5670c0;}['markAttributeChange'](_0x5decaa,_0x1f8125,_0x55ed3d,_0x3e6d0c,_0x5ef6b1){if(_0x5decaa['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1cd04f=this['editor']['plugins']['get']('Users')['me']['id'],_0x31beb4=Array['from'](this['_suggestions']['values']())['filter'](_0x43b6d8=>'attribute'==_0x43b6d8['type']&&_0x43b6d8['data']['key']==_0x1f8125&&_0x43b6d8['isIntersectingWithRange'](_0x5decaa));if('default'===this['_trackFormatChanges']){const _0x489c03=this['_findSuggestions'](_0x5decaa,'insertion')['filter'](({meta:_0xb7873c})=>_0xb7873c['isOwn']&&!_0xb7873c['isInsideObject']&&!_0xb7873c['isNextTo'])['map'](({suggestion:_0x1a080e})=>_0x1a080e);_0x31beb4['unshift'](..._0x489c03);}const _0x484333=new Map([[_0x5decaa,_0x55ed3d]]);for(const _0x4bf83c of _0x31beb4){const _0x3012ea='attribute'==_0x4bf83c['type']?_0x4bf83c['data']['oldValue']:void 0x0,_0x3bef90=_0x4bf83c['getFirstRange'](),_0x19b5ff=Array['from'](_0x484333['keys']())['find'](_0x2e78fc=>_0x2e78fc['isIntersecting'](_0x3bef90));if(!_0x19b5ff)continue;const _0x50be0d=_0x19b5ff['getDifference'](_0x3bef90);this['_isBlockAttribute'](_0x1f8125)&&'insertion'==_0x4bf83c['type']&&0x0!=_0x50be0d['length']||(_0x484333['delete'](_0x19b5ff),_0x50be0d['forEach'](_0x1a1a4b=>{_0x484333['set'](_0x1a1a4b,_0x55ed3d);}),'insertion'!=_0x4bf83c['type']&&_0x3012ea!=_0x3e6d0c&&_0x484333['set'](_0x19b5ff['getIntersection'](_0x3bef90),_0x3012ea));}const _0x588e54=[];for(const [_0x927f86,_0x577d3c]of _0x484333){const _0x417f5c=_0x5b2e26(),_0x492473={'key':_0x1f8125,'oldValue':_0x577d3c,'newValue':_0x3e6d0c};_0x1f8125['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':_0x1f8125});const _0xf21b4b=('attribute:'+(_0x1f8125+'|'+Vt({'newValue':_0x3e6d0c})))['substring'](0x0,0x3c),_0x52a527=this['_setSuggestionData']({'id':_0x417f5c,'type':_0xf21b4b,'data':_0x492473,'createdAt':new Date(),'authorId':_0x1cd04f,'attributes':_0x5ef6b1});_0x588e54['push'](_0x52a527),this['_addSuggestionMarker'](_0xf21b4b,_0x417f5c,_0x1cd04f,_0x927f86);}return _0x588e54;}['enableDefaultAttributesIntegration'](_0x4ac3b0){this['enableCommand'](_0x4ac3b0,(_0x4aeae9,..._0x21377f)=>{this['_recordAttributeChanges'](()=>{_0x4aeae9(..._0x21377f);});});}['registerBlockAttribute'](_0x8a98c2){this['_blockAttributeKeys']['add'](_0x8a98c2);}['registerInlineAttribute'](_0x582d02){this['_inlineAttributeKeys']['add'](_0x582d02);}['_getAttributeKey'](_0x17e6bd){return'attribute'==_0x17e6bd['type']?_0x17e6bd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x39764d,_0x517d69){const _0x453e86=_0x39764d['getFirstMarker']();this['_model']['change'](_0x7bf049=>{_0x7bf049['updateMarker'](_0x453e86,{'range':_0x517d69});});}['_addThreadToSuggestion'](_0x20acb7){const _0x166dc0=_0x20acb7['id'],_0xcaf671=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x166dc0)||this['_commentsRepository']['addCommentThread']({'channelId':_0xcaf671,'threadId':_0x166dc0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x258a1a=this['_commentsRepository']['getCommentThread'](_0x166dc0);_0x258a1a['unbind']('isRemovable'),_0x258a1a['isRemovable']=!0x1,_0x20acb7['commentThread']=_0x258a1a;}['_checkSuggestionCorrectness'](_0x4145b1,_0xa3d1b0,_0x10928c,_0x4660f1){if(_0x4145b1['type']!=_0xa3d1b0||_0x4145b1['subType']!=_0x10928c||_0x4145b1['creator']['id']!=_0x4660f1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x14c552('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x44355a,_0x38c125){const _0x721ea4=_0x44355a['getFirstRange']();if(_0x38c125['isEqual'](_0x721ea4))_0x44355a['removeMarkers']();else{if(_0x721ea4['containsRange'](_0x38c125)){const _0x5090ad=this['_model']['createPositionAt'](_0x38c125['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44355a,this['_model']['createRange'](_0x721ea4['start'],_0x5090ad));const _0x4bc41e=_0x5b2e26(),_0x5c02c2=_0x44355a['creator']['id'],_0x2d0897=_0x44355a['type']+':'+_0x44355a['subType'];this['_setSuggestionData']({'id':_0x4bc41e,'type':_0x2d0897,'createdAt':new Date(),'authorId':_0x5c02c2,'data':_0x44355a['data'],'attributes':_0x44355a['attributes']});const _0x495985=this['_model']['createPositionAt'](_0x38c125['end']['parent'],'after'),_0x10cebb=this['_model']['createRange'](_0x495985,_0x721ea4['end']);this['_addSuggestionMarker'](_0x2d0897,_0x4bc41e,_0x5c02c2,_0x10cebb);}else{if(_0x721ea4['containsPosition'](_0x38c125['start'])){const _0x16a2d3=this['_model']['createPositionAt'](_0x38c125['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44355a,this['_model']['createRange'](_0x721ea4['start'],_0x16a2d3));}else{const _0x4248f9=this['_model']['createPositionAt'](_0x38c125['end']['parent'],'after');this['_setSuggestionRange'](_0x44355a,this['_model']['createRange'](_0x4248f9,_0x721ea4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x43f086){for(const {suggestion:_0x29d2a2,meta:_0x10bccc}of this['_findSuggestions'](_0x43f086,'insertion')){if(!_0x10bccc['isOwn'])continue;const _0xe8efd1=_0x29d2a2['getRanges']();for(const _0xb113a6 of _0xe8efd1)if(!_0x43f086['getDifference'](_0xb113a6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f6925){const _0x2e45fa=this['editor']['plugins']['get']('Users')['getUser'](_0x1f6925);if(!_0x2e45fa)throw new _0x14c552('track-changes-user-not-found',this);return _0x2e45fa;}['_getExternalAuthor'](_0x1a1a56){const _0x2e8b54=this['editor']['plugins']['get']('Users'),_0x8f898f=_0x292841('external:'+_0x1a1a56),_0x57da67=_0x2e8b54['getUser'](_0x8f898f);return _0x57da67||_0x2e8b54['addUser']({'id':_0x8f898f,'name':_0x1a1a56});}['_createSuggestion'](_0x3a9002,_0x145f79,_0x1bba07,_0x10133c,_0x6c3787){const _0x211365=this['_getAuthorFromId'](_0x10133c),_0x4edb37=this['_suggestionFactory']['buildSuggestion'](_0x3a9002,_0x145f79,_0x1bba07,_0x211365,_0x6c3787,_0x4d73e0=>{this['_updateSuggestionData'](_0x1bba07,{'attributes':_0x4d73e0});const _0x4c846f=this['getSuggestion'](_0x1bba07);this['_joinWithAdjacentSuggestions'](new Set([_0x4c846f])),this['_refreshSuggestionsChain'](new Set([_0x4c846f]));});return this['listenTo'](_0x4edb37,'accept',()=>{this['_updateSuggestionData'](_0x1bba07,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4edb37,'discard',()=>{this['_updateSuggestionData'](_0x1bba07,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1bba07,_0x4edb37),this['_suggestionState']['set'](_0x4edb37,'notReady'),_0x4edb37;}['_splitMarkerName'](_0x3d878c){const _0x323da2=_0x3d878c['split'](':');return{'group':_0x323da2[0x0],'type':_0x323da2[0x1],'subType':_0x323da2['length']>=0x5?_0x323da2[0x2]:null,'id':_0x323da2['length']<0x5?_0x323da2[0x2]:_0x323da2[0x3],'authorId':_0x323da2['length']<0x5?_0x323da2[0x3]:_0x323da2[0x4],'markerCount':0x6==_0x323da2['length']?_0x323da2[0x5]:null};}['_breakSuggestionMarker'](_0x446d86,_0x2b73fe,_0x22c3a5){const _0x28b1b0=_0x446d86['getFirstRange'](),_0x1013bb=_0x28b1b0['start'],_0x27cdf2=_0x28b1b0['end'];this['_setSuggestionRange'](_0x446d86,this['_model']['createRange'](_0x1013bb,_0x2b73fe));const _0x497620=_0x5b2e26(),_0x245b5d=_0x446d86['creator']['id'],_0x41ed7c=_0x446d86['type']+(_0x446d86['subType']?':'+_0x446d86['subType']:'');this['_setSuggestionData']({'id':_0x497620,'type':_0x41ed7c,'createdAt':new Date(),'authorId':_0x245b5d,'originalSuggestionId':_0x446d86['id'],'attributes':_0x446d86['attributes'],'data':_0x446d86['data']});const _0x4ed88c=this['_getAttributeKey'](_0x446d86);('formatBlock'==_0x446d86['type']||_0x4ed88c&&this['_isBlockAttribute'](_0x4ed88c))&&(_0x22c3a5=this['_model']['createPositionBefore'](_0x22c3a5['parent'])),this['_addSuggestionMarker'](_0x41ed7c,_0x497620,_0x245b5d,this['_model']['createRange'](_0x22c3a5,_0x27cdf2));}['_findSuggestions'](_0x5f34e1,_0x3cd101=null){const _0x3809ea=[],_0x419ddb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5f34e1)||(_0x5f34e1=[_0x5f34e1]);for(const _0x302119 of this['getSuggestions']()){if(!_0x302119['isInContent'])continue;if(_0x3cd101&&_0x302119['type']!=_0x3cd101)continue;let _0x193d0d=!0x1;for(const _0x4c2726 of _0x302119['getRanges']()){for(const _0x2ad4ec of _0x5f34e1){const _0x140233=_0x2ad4ec['start']['isEqual'](_0x4c2726['end'])||_0x2ad4ec['end']['isEqual'](_0x4c2726['start']);if(_0x140233||_0x2ad4ec['getIntersection'](_0x4c2726)){const _0x3e374a=_0x2ad4ec['containsRange'](_0x4c2726)&&Rt(this['_model']['schema'],_0x4c2726['start'],_0x2ad4ec),_0x38d916=_0x4c2726['containsRange'](_0x2ad4ec)&&Rt(this['_model']['schema'],_0x2ad4ec['start'],_0x4c2726);_0x3809ea['push']({'suggestion':_0x302119,'meta':{'isOwn':_0x419ddb==_0x302119['author'],'isNextTo':_0x140233,'isInsideObject':_0x3e374a,'containsRangeInObject':_0x38d916}}),_0x193d0d=!0x0;break;}}if(_0x193d0d)break;}}return _0x3809ea;}['_addSuggestionMarker'](_0xdb580e,_0x42a873,_0x30ff5a,_0x58fef8,_0x5a97f0){this['_model']['change'](_0x8d0c75=>{let _0x3e3650='suggestion:'+_0xdb580e+':'+_0x42a873+':'+_0x30ff5a;_0x5a97f0&&(_0x3e3650=_0x3e3650+':'+_0x5a97f0),_0x8d0c75['addMarker'](_0x3e3650,{'range':_0x58fef8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35d8ea){const _0x3aa833=_0x35d8ea['previous'],_0x42f8fe=_0x35d8ea['next'];_0x35d8ea['previous']=null,_0x35d8ea['next']=null,null!=_0x3aa833&&_0x3aa833['next']==_0x35d8ea&&(_0x3aa833['next']=_0x42f8fe),null!=_0x42f8fe&&_0x42f8fe['previous']==_0x35d8ea&&(_0x42f8fe['previous']=_0x3aa833),'ready'==this['_suggestionState']['get'](_0x35d8ea)&&(this['_suggestionState']['set'](_0x35d8ea,'removed'),this['fire']('suggestionUnloaded',_0x35d8ea,_0x3aa833,_0x42f8fe));}['_setSuggestionData'](_0x1cf709){const _0x1e8de3=_0x1cf709['id'],_0x49a671=this['addSuggestionData'](_0x1cf709);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1cbb62=this['editor']['plugins']['get']('PendingActions'),_0x166f6f=_0x49a671['hasComments'],_0x464642=_0x49a671['subType']?_0x49a671['type']+':'+_0x49a671['subType']:_0x49a671['type'],_0x43a6f5=this['editor']['locale'],_0x32e28e=_0x1cbb62['add'](o(_0x43a6f5,'PENDING_ACTION_SUGGESTION')),_0x30c618={'id':_0x1e8de3,'type':_0x464642,'hasComments':_0x166f6f,'data':_0x1cf709['data']||null,'originalSuggestionId':_0x1cf709['originalSuggestionId']||null,'attributes':_0x49a671['attributes']};this['_adapter']['addSuggestion'](_0x30c618)['then'](_0x189d43=>{_0x49a671['_saved']=!0x0,_0x1cbb62['remove'](_0x32e28e),_0x189d43&&_0x189d43['createdAt']&&(this['_suggestions']['get'](_0x1e8de3)['createdAt']=_0x189d43['createdAt']);})['catch'](_0x359e3a=>{throw _0x19985d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x49a671['discard']();}),_0x49a671['stopListening'](),this['_suggestions']['delete'](_0x49a671['id']),this['_suggestionState']['delete'](_0x49a671),_0x359e3a;});}return _0x49a671;}['_isBlockAttribute'](_0x2f75bf){return this['_blockAttributeKeys']['has'](_0x2f75bf);}['_updateSuggestionData'](_0x26edc9,_0x13343f){const _0x3bad63=this['editor']['plugins']['get']('PendingActions'),_0x3fdcb4=this['getSuggestion'](_0x26edc9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3fdcb4['_saved']){const _0x1a96bf=_0x3bad63['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x26edc9,_0x13343f)['then'](()=>{_0x3bad63['remove'](_0x1a96bf);});}else _0x3fdcb4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x26edc9,_0x13343f);});}}['_getSuggestionData'](_0x466f70){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x14c552('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x466f70);}['_handleNewSuggestionMarker'](_0x27098b){const {id:_0x3b0ecb,type:_0x3576b5,subType:_0x2f2e7b,authorId:_0x507aae}=this['_splitMarkerName'](_0x27098b),_0x341510=this['_suggestions']['get'](_0x3b0ecb)||this['_createSuggestion'](_0x3576b5,_0x2f2e7b,_0x3b0ecb,_0x507aae,{});switch(this['_checkSuggestionCorrectness'](_0x341510,_0x3576b5,_0x2f2e7b,_0x507aae),this['_suggestionState']['get'](_0x341510)){case'notReady':this['_getSuggestionData'](_0x3b0ecb)['then'](_0x48540a=>{let _0x4a6699=Promise['resolve']();_0x48540a['hasComments']&&(_0x4a6699=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3b0ecb})),_0x4a6699['then'](()=>{this['addSuggestionData'](_0x48540a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x341510,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3b0ecb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x341510,'ready'),this['fire']('suggestionLoaded',_0x341510);break;case'ready':this['fire']('suggestionChanged',_0x341510);}return _0x341510['addMarkerName'](_0x27098b),_0x341510;}['_refreshSuggestionsChain'](_0x40538b){const _0x3d9d3f=Array['from'](_0x40538b),_0x3c7619=_0x3d9d3f['filter'](_0x9af374=>'attribute'==_0x9af374['type']);this['_refreshAttributeSuggestionsChain'](_0x3c7619);const _0x175581=_0x3d9d3f['filter'](_0x23762a=>!_0x23762a['isMultiRange']&&'attribute'!=_0x23762a['type']),_0x16727a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xab581d=>!_0xab581d['isMultiRange']&&'attribute'!=_0xab581d['type']),_0x3de06c=_0x16727a['filter'](_0x5e0928=>!_0x40538b['has'](_0x5e0928)),_0x307fc6=new Map(_0x16727a['map'](_0x13d423=>[_0x13d423,this['_suggestionFactory']['getSuggestionCallback'](_0x13d423['type'],_0x13d423['subType'],'chain')])),_0x1b8061=new Map(_0x16727a['map'](_0x2c64f7=>[_0x2c64f7,_0x2c64f7['getFirstRange']()])),_0x11f57e=new Set(),_0x233bcc=new Set();for(let _0x4735dd=0x0;_0x4735dd<_0x175581['length'];_0x4735dd++)_0x129e64(_0x175581[_0x4735dd],_0x175581,_0x4735dd+0x1);for(let _0x33890b=0x0;_0x33890b<_0x175581['length'];_0x33890b++)_0x129e64(_0x175581[_0x33890b],_0x3de06c,0x0);const _0x26caa7=new Set();for(let _0x3c6af2=0x0;_0x3c6af2<_0x175581['length'];_0x3c6af2++){const _0x308fdc=_0x175581[_0x3c6af2];!_0x233bcc['has'](_0x308fdc)&&_0x308fdc['previous']&&(_0x26caa7['add'](_0x308fdc['previous']),_0x308fdc['previous']['next']===_0x308fdc&&(_0x308fdc['previous']['next']=null),_0x308fdc['previous']=null),!_0x11f57e['has'](_0x308fdc)&&_0x308fdc['next']&&(_0x26caa7['add'](_0x308fdc['next']),_0x308fdc['next']['previous']===_0x308fdc&&(_0x308fdc['next']['previous']=null),_0x308fdc['next']=null);}function _0x129e64(_0x17f7fb,_0x2aac1e,_0x416f87){for(let _0x40d521=_0x416f87;_0x40d521<_0x2aac1e['length'];_0x40d521++){const _0x9fb5d7=_0x1b3689(_0x17f7fb,_0x2aac1e[_0x40d521]);_0x9fb5d7&&(_0x9fb5d7[0x0]['next']=_0x9fb5d7[0x1],_0x9fb5d7[0x1]['previous']=_0x9fb5d7[0x0],_0x11f57e['add'](_0x9fb5d7[0x0]),_0x233bcc['add'](_0x9fb5d7[0x1]));}}function _0x1b3689(_0x54a415,_0x1fe371){if(_0x54a415['author']['id']!==_0x1fe371['author']['id'])return null;const _0x443e02=_0x307fc6['get'](_0x54a415)(_0x54a415,_0x1fe371,_0x1b8061['get'](_0x54a415),_0x1b8061['get'](_0x1fe371));if(!_0x443e02)return null;return _0x307fc6['get'](_0x1fe371)(_0x54a415,_0x1fe371,_0x1b8061['get'](_0x54a415),_0x1b8061['get'](_0x1fe371))?_0x443e02[0x1]['commentThread']&&_0x443e02[0x1]['commentThread']['length']?null:_0x443e02:null;}_0x26caa7['size']&&this['_refreshSuggestionsChain'](_0x26caa7);}['_refreshAttributeSuggestionsChain'](_0x176c3d){if(0x0==_0x176c3d['length'])return;const _0x2525d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe366cf=>'attribute'==_0xe366cf['type']&&_0xe366cf['_isDataLoaded']),_0x2c7a80=[],_0x7cbc4d=new Map();for(const _0x2a6a3d of _0x2525d9){const _0x590250=_0x292841(_0x2a6a3d['attributes']);_0x7cbc4d['has'](_0x590250)||(_0x7cbc4d['set'](_0x590250,_0x2c7a80['length']),_0x2c7a80['push']([]));const _0x4d9410=_0x7cbc4d['get'](_0x590250);_0x2c7a80[_0x4d9410]['push'](_0x2a6a3d);}!(function(){_0x2c7a80['sort']((_0xc867ae,_0x4d1fe2)=>{const _0x2c6a4c=_0xc867ae[0x0]['createdAt'],_0x22687a=_0x4d1fe2[0x0]['createdAt'];return _0x2c6a4c==_0x22687a?_0xc867ae[0x0]['attributes']['groupId']<_0x4d1fe2[0x0]['attributes']['groupId']?-0x1:0x1:_0x2c6a4c<_0x22687a?-0x1:0x1;});for(const _0x41e696 of _0x2c7a80)_0x41e696['sort']((_0x5c5483,_0x434f70)=>_0x5c5483['id']<_0x434f70['id']?-0x1:0x1);}());for(let _0x573d08=0x0;_0x573d08<_0x2c7a80['length'];_0x573d08++){if(0x0==_0x2c7a80[_0x573d08]['length'])continue;const _0x2d192f=[];for(let _0x510fec=_0x573d08+0x1;_0x510fec<_0x2c7a80['length'];_0x510fec++)0x0!=_0x2c7a80[_0x510fec]['length']&&_0x323ae4(_0x2c7a80[_0x573d08],_0x2c7a80[_0x510fec])&&_0x2d192f['push'](_0x510fec);for(const _0x1bf31e of _0x2d192f)_0x2c7a80[_0x573d08]=_0x2c7a80[_0x573d08]['concat'](_0x2c7a80[_0x1bf31e]),_0x2c7a80[_0x1bf31e]=[];}for(const _0x1633e7 of _0x2c7a80)for(let _0x331af4=0x0;_0x331af4<_0x1633e7['length'];_0x331af4++)_0x1633e7[_0x331af4]['next']=_0x1633e7[_0x331af4+0x1]||null;for(const _0x38e8a3 of _0x2c7a80)for(let _0x862cfb=0x0;_0x862cfb<_0x38e8a3['length'];_0x862cfb++)_0x38e8a3[_0x862cfb]['previous']=_0x38e8a3[_0x862cfb-0x1]||null;function _0x323ae4(_0x4056bd,_0x2d7f6e){if(_0x4056bd[0x0]['attributes']['groupId']!==_0x2d7f6e[0x0]['attributes']['groupId']&&_0x4056bd[0x0]['author']!==_0x2d7f6e[0x0]['author'])return!0x1;if(!function(_0x2c4f9d,_0x30ff39){if(!_0x2c4f9d['hasComments']&&!_0x30ff39['hasComments'])return!0x0;if(_0x2c4f9d['hasComments']&&_0x30ff39['hasComments'])return!0x1;if(_0x2c4f9d['hasComments']&&_0x30ff39['createdAt']<_0x2c4f9d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x30ff39['hasComments']&&_0x2c4f9d['createdAt']<_0x30ff39['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4056bd[0x0],_0x2d7f6e[0x0]))return!0x1;const _0x524bcc=Bt(_0x4056bd[0x0]['attributes'],'groupId'),_0x18df87=Bt(_0x2d7f6e[0x0]['attributes'],'groupId');if(!_0x58edd5(_0x524bcc,_0x18df87))return!0x1;return!!_0x4056bd['every'](_0xfca741=>_0x2d7f6e['some'](_0x382741=>_0xfca741['getFirstRange']()['isEqual'](_0x382741['getFirstRange']())))&&_0x2d7f6e['every'](_0x4c0388=>_0x4056bd['some'](_0x17489f=>_0x4c0388['getFirstRange']()['isEqual'](_0x17489f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4cc77f){const _0x2bce0f=Array['from'](_0x4cc77f),_0x316d55=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1004d9=_0x316d55['filter'](_0x1fba27=>!_0x4cc77f['has'](_0x1fba27)),_0x176bb6=new Map(_0x2bce0f['map'](_0x42255a=>[_0x42255a,this['_suggestionFactory']['getSuggestionCallback'](_0x42255a['type'],_0x42255a['subType'],'join')])),_0x5f2136=new Map(_0x316d55['map'](_0x2439bc=>[_0x2439bc,_0x2439bc['getRanges']()]));for(let _0x4c60a9=0x0;_0x4c60a9<_0x2bce0f['length'];_0x4c60a9++){if(_0x4fecdb(this,_0x2bce0f[_0x4c60a9],_0x2bce0f,_0x4c60a9+0x1))return!0x0;}for(let _0x1b2ae3=0x0;_0x1b2ae3<_0x2bce0f['length'];_0x1b2ae3++){if(_0x4fecdb(this,_0x2bce0f[_0x1b2ae3],_0x1004d9,0x0))return!0x0;}return!0x1;function _0x4fecdb(_0xd3444c,_0x52ba8f,_0xf9c588,_0x466327){for(let _0x3f8e64=_0x466327;_0x3f8e64<_0xf9c588['length'];_0x3f8e64++){const _0x540c67=_0xf9c588[_0x3f8e64];if(_0x540c67['type']!==_0x52ba8f['type']||_0x540c67['author']['id']!==_0x52ba8f['author']['id']||_0x540c67['subType']!==_0x52ba8f['subType'])continue;if(!Pt(_0x52ba8f,_0x540c67,['groupId']))continue;if('attribute'==_0x52ba8f['type']&&_0x52ba8f['data']['oldValue']!=_0x540c67['data']['oldValue'])continue;if('attribute'==_0x52ba8f['type']&&_0xd3444c['_isBlockAttribute'](_0x52ba8f['data']['key']))continue;if('formatBlock'==_0x52ba8f['type']){const _0x21aea7=_0xd3444c['editor']['model'],_0xc17ec7=_0x52ba8f['getContainedElement']();if(_0xc17ec7&&(_0x21aea7['schema']['isObject'](_0xc17ec7)||_0x21aea7['schema']['isLimit'](_0xc17ec7)))continue;}const _0xddcedd=_0x176bb6['get'](_0x52ba8f),_0x33effd=_0x5f2136['get'](_0x52ba8f),_0x3990e8=_0x5f2136['get'](_0x540c67),_0x1de03b=_0x52ba8f['commentThread']&&_0x52ba8f['commentThread']['length'],_0x41cbd7=_0x540c67['commentThread']&&_0x540c67['commentThread']['length'];if(!_0x1de03b&&_0xddcedd(_0x3990e8,_0x33effd))return _0xd3444c['_joinSuggestions'](_0x540c67,_0x52ba8f),_0x5f2136['delete'](_0x52ba8f),!0x0;if(!_0x41cbd7&&_0xddcedd(_0x33effd,_0x3990e8))return _0xd3444c['_joinSuggestions'](_0x52ba8f,_0x540c67),_0x5f2136['delete'](_0x540c67),!0x0;}return!0x1;}}['_joinSuggestions'](_0x333db7,_0x2dbf78){if(_0x333db7['isMultiRange']){for(const _0x35f4a4 of _0x2dbf78['getRanges']())_0x333db7['addRange'](_0x35f4a4);}else{const _0x25dd4f=_0x2dbf78['getFirstRange']()['end'];this['_setSuggestionRange'](_0x333db7,this['_model']['createRange'](_0x333db7['getFirstRange']()['start'],_0x25dd4f));}_0x2dbf78['removeMarkers']();}['_getMarkerAnnouncementText'](_0x31cf44,_0x475982){const _0x31a19e=_0x31cf44['startsWith']('format')||_0x31cf44['startsWith']('attribute')?'FORMATTING':_0x31cf44['toUpperCase']();return o(this['editor']['locale'],_0x475982+'_'+_0x31a19e+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x2999e4=this['editor'];if(!_0x2999e4['ui'])return;const {ariaLiveAnnouncer:_0x20109e}=_0x2999e4['ui'];_0x2e0c46(this['_model'],({left:_0x119a04,entered:_0x1a3d9d})=>{for(const _0x45d78a of _0x119a04){const {group:_0x63172c,type:_0x28616e}=this['_splitMarkerName'](_0x45d78a['name']);if('suggestion'===_0x63172c){_0x20109e['announce'](this['_getMarkerAnnouncementText'](_0x28616e,'LEAVE'));break;}}for(const _0x251193 of _0x1a3d9d){const {group:_0x5b2368,type:_0x39d0ab}=this['_splitMarkerName'](_0x251193['name']);if('suggestion'===_0x5b2368){_0x20109e['announce'](this['_getMarkerAnnouncementText'](_0x39d0ab,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2dc137){if(this['_recordAttributeSuggestions'])return!0x1;const _0x533bc9=this['editor'],_0x17f2ba=_0x533bc9['model']['document']['differ']['getChanges']();if(0x0==_0x17f2ba['length'])return!0x1;const _0x37c8ba=[],_0x26af24=_0x17f2ba['filter'](_0x4040ac=>'attribute'==_0x4040ac['type']),_0x270259=_0x17f2ba['filter'](_0x2e18eb=>'insert'==_0x2e18eb['type']&&'$text'!=_0x2e18eb['name']),_0x516764=_0x17f2ba['filter'](_0x3255d0=>'remove'==_0x3255d0['type']&&'$text'!=_0x3255d0['name']);for(const _0x4b4d54 of _0x26af24)_0x37c8ba['push']({'key':_0x4b4d54['attributeKey'],'newValue':_0x4b4d54['attributeNewValue'],'oldValue':_0x4b4d54['attributeOldValue'],'range':Ot(_0x4b4d54['range'],_0x533bc9['model'])});for(const _0x30ef5d of _0x270259){const _0x54e08c=_0x516764['find'](_0x50583c=>_0x50583c['position']['isEqual'](_0x30ef5d['position']));_0x54e08c&&_0x37c8ba['push']({'key':m,'newValue':_0x30ef5d['name'],'oldValue':_0x54e08c['name'],'range':_0x533bc9['model']['createRangeOn'](_0x30ef5d['position']['nodeAfter'])});}return 0x0!=_0x37c8ba['length']&&this['_reduceExistingSuggestions'](_0x2dc137,_0x37c8ba);}['_processAttributeSuggestions'](_0x3d4563){let _0x3e8b27=!0x1;const _0x54fc86=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31d926=>_0x31d926['data']['newRange']&&_0x31d926['name']['startsWith']('suggestion:attribute:'));for(const _0x120665 of _0x54fc86){const {subType:_0x26fde9,id:_0x5c55c8}=this['_splitMarkerName'](_0x120665['name']),_0x1f7d0c=_0x26fde9['split']('|')[0x0];for(const _0x3aa119 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3aa119['id']!=_0x5c55c8&&'attribute'==_0x3aa119['type']&&_0x3aa119['data']&&_0x3aa119['data']['key']==_0x1f7d0c&&_0x3aa119['getFirstRange']()['isIntersecting'](_0x120665['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3aa119,_0x120665['data']['newRange'],_0x3d4563),_0x3e8b27=!0x0);}return _0x3e8b27;}['_recordAttributeChanges'](_0x2ecc4f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2ecc4f();}['_isRegisteredAttribute'](_0x2463c9){const _0x2dfd9a=this['_isBlockAttribute'](_0x2463c9),_0xe2c24=this['_inlineAttributeKeys']['has'](_0x2463c9);return _0x2dfd9a||_0xe2c24;}['_reduceExistingSuggestions'](_0x266336,_0x443f41){if(0x0==_0x443f41['length'])return!0x1;let _0x596f8c=!0x1;for(const _0x7117d0 of _0x443f41){const _0x24eaff=this['_findSuggestions'](_0x7117d0['range'],'attribute')['filter'](_0x50e813=>!_0x50e813['meta']['isNextTo'])['map'](_0x588937=>_0x588937['suggestion']),_0xf946ac=_0x292841({'newValue':_0x7117d0['newValue']});_0x24eaff['filter'](_0x4014c6=>{const [_0x44c3b8,_0xe5fbed]=_0x4014c6['subType']['split']('|');return _0x44c3b8==_0x7117d0['key']&&_0xe5fbed!=_0xf946ac;})['forEach'](_0x5892c2=>{this['_reduceSuggestionAttributeRange'](_0x5892c2,_0x7117d0['range'],_0x266336),_0x596f8c=!0x0;});}return _0x596f8c;}['_reduceSuggestionAttributeRange'](_0x4c49df,_0x1ac1d8,_0x4f2de2){const _0x171c77=_0x4c49df['getFirstRange']()['getDifference'](_0x1ac1d8);0x0!==_0x171c77['length']?0x1!==_0x171c77['length']?this['_breakSuggestionMarker'](_0x4c49df,_0x1ac1d8['start'],_0x1ac1d8['end']):this['_setSuggestionRange'](_0x4c49df,_0x171c77[0x0]):_0x4f2de2['removeMarker'](_0x4c49df['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5159e8){this['_editor']=_0x5159e8,this['_model']=_0x5159e8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x18d7b5,_0x46ec04,_0x5929c5,_0x2c0fc8,_0x17107f,_0x488a3c){return new u(this['_model'],{'type':_0x18d7b5,'subType':_0x46ec04,'id':_0x5929c5,'author':_0x2c0fc8,'creator':_0x2c0fc8,'attributes':_0x17107f,'onAttributesChange':_0x488a3c,'onAccept':(..._0x5a7526)=>this['getSuggestionCallback'](_0x18d7b5,_0x46ec04,'accept')(..._0x5a7526),'onDiscard':(..._0x88212a)=>this['getSuggestionCallback'](_0x18d7b5,_0x46ec04,'discard')(..._0x88212a)});}['registerCustomCallback'](_0xb95166,_0x31a205,_0x361b5a,_0x39407d){const _0x649791=_0xb95166+':'+_0x31a205+':'+_0x361b5a;this['_customCallbacks']['set'](_0x649791,_0x39407d);}['getSuggestionCallback'](_0x3551ae,_0x207282,_0x12d576){const _0x385158=_0x3551ae+':'+_0x207282+':'+_0x12d576;return this['_customCallbacks']['get'](_0x385158)||this['_defaultCallbacks']['get'](_0x3551ae+':'+_0x12d576);}['_registerDefaultCallbacks'](){const _0x86804b=()=>!0x1,_0x77793f=_0x24572a=>{_0x24572a['sort']((_0x2c25e8,_0x3c7fbd)=>_0x2c25e8['start']['isBefore'](_0x3c7fbd['start'])?0x1:-0x1),this['_model']['change'](_0x3626fd=>{for(const _0x3bc671 of _0x24572a){let _0x41616b;_0x41616b=_0x3bc671['end']['isAtEnd']&&_0x3bc671['end']['parent']==_0x3bc671['start']['nodeAfter']?_0x3626fd['createSelection'](_0x3bc671['start']['nodeAfter'],'on'):_0x3626fd['createSelection'](_0x3bc671),this['_model']['deleteContent'](_0x41616b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x575df4=(_0xdd9ab9,_0x1b610a)=>{_0x1b610a&&this['_model']['change'](_0x30075a=>{const {commandName:_0x16d4ea,commandParams:_0x13ad6b=[]}=_0x1b610a,_0xdbc1cc=_0xdd9ab9['map'](_0x10f8fe=>(Tt(_0x10f8fe)&&(_0x10f8fe=this['_model']['createRange'](_0x10f8fe['end'])),_0x10f8fe))['filter'](_0x3ef7b4=>'$graveyard'!==_0x3ef7b4['root']['rootName']);if(_0xdbc1cc['length']<0x1)return;const _0x56563a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x426796=>_0x4544ff['fromRange'](_0x426796));_0x30075a['setSelection'](_0xdbc1cc);for(const _0x4c0489 of this['_editor']['commands']['commands']())_0x4c0489['refresh']();_0x13ad6b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x16d4ea,..._0x13ad6b);const _0x348ab0=_0x56563a['filter'](_0x41c746=>'$graveyard'!=_0x41c746['root']['rootName']);_0x348ab0['length']>0x0&&_0x30075a['setSelection'](_0x348ab0);for(const _0x5b2f75 of _0x56563a)_0x5b2f75['detach']();});},_0x19f9f5=(_0x2a835d,_0x1019c8)=>0x1==_0x2a835d['length']&&0x1==_0x1019c8['length']&&_0x2a835d[0x0]['end']['isEqual'](_0x1019c8[0x0]['start']),_0x367a37=(_0x13133d,_0x254e0,_0xededb,_0xde71e4)=>Ft(_0x13133d,_0x254e0,_0xededb,_0xde71e4,this['_model'])?[_0x13133d,_0x254e0]:Ft(_0x254e0,_0x13133d,_0xde71e4,_0xededb,this['_model'])?[_0x254e0,_0x13133d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x86804b),this['_defaultCallbacks']['set']('insertion:discard',_0x77793f),this['_defaultCallbacks']['set']('insertion:join',_0x19f9f5),this['_defaultCallbacks']['set']('insertion:chain',_0x367a37),this['_defaultCallbacks']['set']('deletion:accept',_0x77793f),this['_defaultCallbacks']['set']('deletion:discard',_0x86804b),this['_defaultCallbacks']['set']('deletion:join',_0x19f9f5),this['_defaultCallbacks']['set']('deletion:chain',_0x367a37),this['_defaultCallbacks']['set']('formatInline:accept',_0x575df4),this['_defaultCallbacks']['set']('formatInline:discard',_0x86804b),this['_defaultCallbacks']['set']('formatInline:join',_0x19f9f5),this['_defaultCallbacks']['set']('formatInline:chain',_0x86804b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x575df4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x86804b),this['_defaultCallbacks']['set']('formatBlock:join',_0x19f9f5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x86804b),this['_defaultCallbacks']['set']('attribute:accept',_0x86804b),this['_defaultCallbacks']['set']('attribute:discard',(_0x3904b0,_0x286ffc)=>{if(!_0x286ffc)return;const _0x2e3391=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x292a20=>{if(_0x286ffc['key']==m)for(const _0x451d29 of _0x3904b0){const _0x189ed0=_0x451d29['start']['nodeAfter'],_0x40770d=_0x286ffc['oldValue'];_0x292a20['rename'](_0x189ed0,_0x40770d);}else{if(_0x2e3391['_isBlockAttribute'](_0x286ffc['key'])){for(const _0x97939a of _0x3904b0)void 0x0!==_0x286ffc['oldValue']?_0x292a20['setAttribute'](_0x286ffc['key'],_0x286ffc['oldValue'],_0x97939a['start']['nodeAfter']):_0x292a20['removeAttribute'](_0x286ffc['key'],_0x97939a['start']['nodeAfter']);}else{for(const _0x124ef2 of _0x3904b0)_0x286ffc['oldValue']?_0x292a20['setAttribute'](_0x286ffc['key'],_0x286ffc['oldValue'],_0x124ef2):_0x292a20['removeAttribute'](_0x286ffc['key'],_0x124ef2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x19f9f5);}}function Rt(_0x3cf481,_0x2a0164,_0x4bf80c){for(const _0x17b03a of _0x2a0164['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x17b03a['root']==_0x17b03a)return!0x1;if(!_0x4bf80c['containsItem'](_0x17b03a))return!0x1;if(_0x3cf481['isObject'](_0x17b03a)||_0x3cf481['isLimit'](_0x17b03a))return!0x0;}return!0x1;}function Tt(_0x510f80){return _0x510f80['end']['parent']==_0x510f80['start']['nodeAfter']&&_0x510f80['end']['isAtStart'];}function Et(_0x542cd1,_0x15e6d8,_0x213f39,_0x275b95){const _0x1ebc53=_0x110f03=>!_0x110f03['item']['is']('$textProxy')&&!_0x275b95['isObject'](_0x110f03['item']),_0x4b413d=_0x542cd1['start']['getLastMatchingPosition'](_0x1ebc53),_0x17cb81=_0x542cd1['end']['getLastMatchingPosition'](_0x1ebc53,{'direction':'backward'});return(!_0x542cd1['start']['isEqual'](_0x4b413d)||!_0x542cd1['end']['isEqual'](_0x17cb81))&&(_0x4b413d['isBefore'](_0x17cb81)?_0x213f39['updateMarker'](_0x15e6d8,{'range':_0x213f39['createRange'](_0x4b413d,_0x17cb81)}):_0x213f39['removeMarker'](_0x15e6d8),!0x0);}function Vt(_0x3cddd5){return _0x292841(_0x3cddd5);}function Ut(_0x124005){const _0x42f776=_0x124005['start']['nodeAfter'];return _0x42f776&&_0x42f776['is']('element');}function Ot(_0x21dc5c,_0x26ea95){return null==_0x21dc5c['end']['nodeBefore']&&_0x21dc5c['end']['parent']==_0x21dc5c['start']['nodeAfter']?Gt(_0x21dc5c['start']['nodeAfter'],_0x26ea95):_0x21dc5c;}function Gt(_0x263bb5,_0x39d95d){const _0x3f51c9=_0x39d95d['schema']['isObject'](_0x263bb5)||_0x39d95d['schema']['isSelectable'](_0x263bb5);return _0x39d95d['createRange'](_0x39d95d['createPositionAt'](_0x263bb5,'before'),_0x3f51c9?_0x39d95d['createPositionAfter'](_0x263bb5):_0x39d95d['createPositionAt'](_0x263bb5,'end'));}function Ft(_0x19aad2,_0x34f1cf,_0x503b1b,_0x4ad936,_0x52de50){if(!Pt(_0x19aad2,_0x34f1cf))return!0x1;if(_0x503b1b['end']['isEqual'](_0x4ad936['start']))return!0x0;if(_0x19aad2['type']!=_0x34f1cf['type'])return!0x1;if(!_0x503b1b['end']['isTouching'](_0x4ad936['start']))return!0x1;const _0x422f5a=_0x52de50['createRange'](_0x503b1b['end'],_0x4ad936['start'])['getWalker']();for(const _0x4bb51c of _0x422f5a)if(['elementStart','elementEnd']['includes'](_0x4bb51c['type'])&&_0x52de50['schema']['isLimit'](_0x4bb51c['item']))return!0x1;return!0x0;}function Pt(_0x27b258,_0xdb4120,_0x4a961a=[]){return!(!_0x27b258['_isDataLoaded']||!_0xdb4120['_isDataLoaded'])&&_0x58edd5(Bt(_0x27b258['attributes'],_0x4a961a),Bt(_0xdb4120['attributes'],_0x4a961a));}function Lt(_0x48006c,_0x43d12d){const _0x5d39d6=Ht(_0x48006c['attributes']),_0x18db0b=Ht(_0x43d12d);if(!_0x48006c['_isDataLoaded'])return!0x1;for(const _0x1a36c1 of Object['keys'](_0x18db0b))if(!_0x58edd5(_0x5d39d6[_0x1a36c1],_0x18db0b[_0x1a36c1]))return!0x1;return!0x0;}function Ht(_0x245dfc){const _0x3f987c=Object['assign']({},_0x245dfc);return delete _0x3f987c['skipNestingCheck'],delete _0x3f987c['tablePasteChainId'],_0x3f987c;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x3d8e5b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x41c550,_0x3db32d,_0xb31e4e,_0x57a82c){super(),this['model']=_0x3db32d,this['view']=_0xb31e4e,this['commentThreadController']=_0x57a82c,this['_editor']=_0x41c550,this['_acceptCommand']=_0x41c550['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x41c550['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x535f12,_0x252fd6)=>_0x535f12||_0x252fd6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1485ae=>_0x1485ae&&this['_editor']['model']['canEditAt'](_0x3db32d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x10c6ce=>_0x10c6ce&&this['_editor']['model']['canEditAt'](_0x3db32d['getRanges']())),this['_pendingAction']=null,_0xb31e4e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xb31e4e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xb31e4e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xb31e4e,'change:isDirty',()=>{_0xb31e4e['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 _0xd349ee=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd349ee);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4c1421{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x57989b,_0x4f94cd,_0x254332,_0x3f31e5){super(_0x57989b),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4f94cd['authoredAt']),this['bind']('authoredAt')['to'](_0x4f94cd),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4f94cd,this['_localUser']=_0x254332,this['_config']=_0x3f31e5,_0x3f31e5['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:_0x5f83c8}=this['_config'];this['commentsListView']=new _0x5f83c8(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',_0x4b2e6f=>_0x4b2e6f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1a357f,_0x3a7daf)=>_0x1a357f||!!_0x3a7daf);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x18a649}=this['_config'],_0x3aabd1=new _0x18a649(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4d0c5c=_0x3aabd1['commentInputView'];return _0x3aabd1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4d0c5c,'value',(_0x1990f0,_0x3eb6ee,_0xe96b5b)=>!!_0xe96b5b||_0x1990f0&&!_0x3eb6ee),_0x4d0c5c['on']('submit',(_0x502951,_0xe2b6c3)=>{this['fire']('addComment',_0xe2b6c3),_0x4d0c5c['editor']['setData']('');}),_0x4d0c5c['on']('cancel',()=>this['focus']()),_0x4d0c5c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3aabd1;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4b732e,_0x58a79a,_0x308acf,_0x3893e2){super(_0x4b732e,_0x58a79a,_0x308acf,_0x3893e2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x214bfc=>_0x214bfc&&_0x214bfc[0x0]?_0x214bfc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4ce81d,_0x570195)=>{let _0x6bf18b='';for(const _0x4bd3bf of _0x4ce81d)_0x6bf18b+='<p>'+ds(_0x4bd3bf['content'],_0x4bd3bf['color'])+'</p>';return _0x570195?_0x6bf18b:_0x2a668e(_0x6bf18b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4b732e,'Accept\x20suggestion'),_0x4acb1c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4b732e,'Discard\x20suggestion'),_0x4acb1c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x302e59(_0x4b732e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x278c38=this['bindTemplate'],_0x18e92c=[{'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':_0x278c38['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x278c38['to']('authoredAt',_0x5c3686=>this['_config']['formatDateTime'](_0x5c3686))}]}]},{'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']&&_0x18e92c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2be2e1={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x278c38['if']('isActive','ck-suggestion-wrapper--active'),_0x278c38['to']('type',_0x55fb1d=>'ck-suggestion-'+_0x55fb1d),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':_0x18e92c}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2be2e1['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)),_0x2be2e1;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x98b992,_0xcf6bb9,_0x55d7f3)=>{this['_descriptionElement']['innerHTML']=_0x55d7f3;});}['_createButton'](_0x29ef14,_0x170237,_0x243697,_0x20a2db,_0x3d182b){const _0x1e4f2b=new _0x1561bc(this['locale']);return _0x1e4f2b['set']({'label':_0x29ef14,'icon':_0x170237,'tooltip':!0x0,'tooltipPosition':_0x3d182b}),_0x1e4f2b['extendTemplate']({'attributes':{'class':_0x243697}}),_0x1e4f2b['on']('execute',()=>{this['fire'](_0x20a2db,this['_model']['id']);}),_0x1e4f2b;}['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(_0x2c199e,_0x299c4c){let _0x1f3701='';return _0x1f3701+=_0x2c199e['split']('*')['map']((_0x10c47b,_0xe92be3)=>_0xe92be3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x10c47b)+'</span>':us(_0x10c47b))['join'](''),_0x299c4c&&(_0x1f3701+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x299c4c['value']+'\x22\x20title=\x22'+_0x299c4c['title']+'\x22></span>'),_0x1f3701;}function us(_0x222152){const _0x1c83a9=document['createElement']('span');return _0x1c83a9['innerText']=_0x222152,_0x1c83a9['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 _0x4dba3d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ee882,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5d29aa){super(_0x5d29aa),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3fdad2=this['editor']['config'];_0x3fdad2['define']('trackChanges.SuggestionThreadView',ne),_0x3fdad2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3fdad2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8f15e2,_0x5ed4c4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20ef02,_0x2cde26]of this['_handleControllerBuffer']){const _0x2e8aa6=this['_suggestionToController']['has'](_0x20ef02);_0x2e8aa6||_0x2cde26?_0x2e8aa6&&_0x2cde26&&this['_destroyController'](_0x20ef02):this['_initializeController'](_0x20ef02);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8f15e2,_0x5ed4c4);}['init'](){const _0x209a5d=this['editor'],_0x15fc24=_0x209a5d['plugins']['get']('TrackChangesEditing'),_0xa3ce59=_0x209a5d['plugins']['get']('Annotations'),_0x2ec8dc=_0x209a5d['plugins']['get']('EditorAnnotations'),_0x2fa048=_0x209a5d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2ec8dc['addSourceCollector'](()=>{const _0x186d08=[];for(const [_0x248185,_0x4c69a3]of Array['from'](this['_suggestionToController'])){const _0xa6a4b6=_0x248185['getAllAdjacentSuggestions'](),_0x32527c=[];for(const _0x3693c7 of _0xa6a4b6){if(!_0x3693c7['isInContent'])continue;if(_0x3693c7['isMultiRange']){_0x32527c['push'](..._0x3693c7['getRanges']());continue;}const _0x1510f2=_0x3693c7['getFirstRange']();if(_0x32527c['length']>0x0){const _0x2370da=_0x32527c[0x0]['getJoined'](_0x1510f2);if(_0x2370da){_0x32527c[0x0]=_0x2370da;continue;}}_0x32527c['push'](_0x1510f2);}_0x186d08['push']([_0x4c69a3['view'],_0x32527c]);}return _0x186d08;}),this['listenTo'](_0x15fc24,'suggestionLoaded',(_0x4bd2bd,_0x27ff71)=>{this['listenTo'](_0x27ff71,'change:previous',(_0xd76f5f,_0x528f9e,_0x42aeab,_0x284321)=>{_0x27ff71['isInContent']&&(null==_0x42aeab?(this['_updateController'](_0x284321['head']),this['_handleSuggestionControllerDelayed'](_0x27ff71,!0x1)):(this['_updateController'](_0x42aeab['head']),null==_0x284321&&this['_handleSuggestionControllerDelayed'](_0x27ff71,!0x0)));}),null!==_0x27ff71['previous']?this['_updateController'](_0x27ff71['head']):this['_handleSuggestionControllerDelayed'](_0x27ff71,!0x1);}),this['listenTo'](_0x15fc24,'suggestionUnloaded',(_0x407f1f,_0x8849da,_0x5becd5)=>{this['stopListening'](_0x8849da,'change:previous'),this['_handleControllerBuffer']['delete'](_0x8849da),this['_suggestionToController']['has'](_0x8849da)&&this['_destroyController'](_0x8849da),_0x5becd5&&this['_updateController'](_0x5becd5['head']);}),this['listenTo'](_0x15fc24,'suggestionChanged',(_0x4156f9,_0x28772a)=>{this['_updateController'](_0x28772a);}),this['listenTo'](_0xa3ce59,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2fa048,'addComment',(_0x2445d1,{threadId:_0x2ebbab,isFromAdapter:_0x1b3674})=>{if(_0x1b3674||!_0x15fc24['hasSuggestion'](_0x2ebbab))return;const _0x1d5ca7=_0x15fc24['getSuggestion'](_0x2ebbab);this['_suggestionToController']['get'](_0x1d5ca7)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1da078=this['editor']['plugins']['get']('Annotations'),_0x121361=this['editor']['plugins']['get']('TrackChangesEditing'),_0x157eb7=Array['from'](_0x1da078['activeAnnotations'],_0x3ca53e=>_0x3ca53e['innerView'])['filter'](_0x22e75b=>this['_viewToController']['has'](_0x22e75b)),_0x24b4ff=[];for(const _0x50462f of _0x157eb7){const _0x41f30c=this['_viewToController']['get'](_0x50462f)['model']['getAllAdjacentSuggestions']();_0x24b4ff['push'](..._0x41f30c['reduce']((_0x1ed6af,_0x35bbeb)=>[..._0x1ed6af,..._0x35bbeb['getMarkerNames']()],[]));}_0x121361['activeMarkers']=_0x24b4ff;}['_addUIComponentsToFactory'](){const _0x314b5e=this['editor'],_0x4b6fbe=_0x314b5e['locale'],_0x4cfdda=o(_0x4b6fbe,'Track\x20changes'),_0xb22527=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x4cfdda,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6fbe,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6fbe,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6fbe,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6fbe,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x108e9a of _0xb22527)if(ae(_0x108e9a)){const _0x5a9296=_0x314b5e['commands']['get'](_0x108e9a['model']['commandName']);_0x108e9a['model']['bind']('isOn','isEnabled')['to'](_0x5a9296,'value','isEnabled');}_0x314b5e['ui']['componentFactory']['add']('trackChanges',_0x3b36be=>this['_createToolbarButton'](_0x3b36be,_0xb22527,_0x4cfdda)),_0x314b5e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3fe900=>this['_createMenuBarMenu'](_0x3fe900,_0xb22527,_0x4cfdda));}['_createToolbarButton'](_0x2439c1,_0x4532f8,_0x337143){const _0x468242=zt(_0x2439c1,Zt),_0x55f138=this['editor']['commands']['get']('trackChanges');_0x468242['buttonView']['set']({'tooltip':_0x337143,'label':_0x337143,'icon':ie}),_0x468242['buttonView']['bind']('isOn')['to'](_0x55f138,'value'),_0x468242['buttonView']['on']('execute',()=>{_0x55f138['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x468242,_0x4532f8,{'role':'menu'});const _0x535cbe=[];for(const _0x424545 of _0x4532f8)ae(_0x424545)&&_0x535cbe['push'](this['editor']['commands']['get'](_0x424545['model']['commandName']));const _0x56b216=_0x468242['buttonView'];return _0x56b216['actionView']['unbind']('isEnabled'),_0x56b216['arrowView']['unbind']('isEnabled'),_0x56b216['actionView']['bind']('isEnabled')['to'](_0x55f138,'isEnabled'),_0x56b216['arrowView']['bind']('isEnabled')['toMany'](_0x535cbe,'isEnabled',(..._0x4d1c06)=>_0x4d1c06['some'](_0x4f04d4=>_0x4f04d4)),_0x468242['on']('execute',_0x3ce281=>{this['editor']['execute'](_0x3ce281['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x468242;}['_createMenuBarMenu'](_0x39a727,_0xb60a6b,_0x3f688f){const _0x16f9c5=new Kt(_0x39a727),_0x357046=this['editor']['commands']['get']('trackChanges');_0x16f9c5['buttonView']['set']({'label':_0x3f688f,'icon':ie});const _0x4cd7fe=new Qt(_0x39a727);for(const _0x2a890d of _0xb60a6b){if('separator'==_0x2a890d['type']){_0x4cd7fe['items']['add'](new Jt(_0x39a727));continue;}const _0x3ace0d=new Xt(_0x39a727,_0x16f9c5),_0x5ab03b=new Yt(_0x39a727),_0x47f3fd=_0x2a890d['model'];_0x5ab03b['bind'](...Object['keys'](_0x47f3fd))['to'](_0x47f3fd),_0x5ab03b['delegate']('execute')['to'](_0x16f9c5),_0x5ab03b['on']('execute',()=>{this['editor']['execute'](_0x47f3fd['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ace0d['children']['add'](_0x5ab03b),_0x4cd7fe['items']['add'](_0x3ace0d);}return _0x16f9c5['bind']('isEnabled')['to'](_0x357046,'isEnabled'),_0x16f9c5['panelView']['children']['add'](_0x4cd7fe),_0x16f9c5;}['_initializeController'](_0x22521e){const _0x163276=this['editor'],_0x9d2d1a=_0x163276['config'],_0x15aaab=_0x163276['plugins']['get']('Annotations'),_0x381d54=_0x163276['plugins']['get']('CommentsRepository'),_0x3cee95=_0x163276['plugins']['get']('EditorAnnotations'),_0x49125a=_0x163276['plugins']['get'](_0x2ee882)['me'],_0x2b31d8=_0x9d2d1a['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x28ea89,CommentThreadInputView:_0x2b5cff}=_0x163276['plugins']['get']('CommentsUI');let _0x21b2f9,_0x2cdb55;this['_annotationViews']['has'](_0x22521e['id'])?(_0x2cdb55=this['_annotationViews']['get'](_0x22521e['id']),_0x21b2f9=_0x2cdb55['mainView']):(_0x21b2f9=new _0x2b31d8(_0x163276['locale'],_0x22521e,_0x49125a,{'disableComments':this['_disableComments'],'editorConfig':_0x9d2d1a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x9d2d1a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9d2d1a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9d2d1a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x55d450(_0x9d2d1a['get']('locale')),'CommentView':_0x9d2d1a['get']('comments')['CommentView'],'CommentsListView':_0x28ea89,'CommentThreadInputView':_0x2b5cff}),_0x21b2f9['acceptButton']['on']('execute',()=>{_0x163276['editing']['view']['focus']();}),_0x21b2f9['discardButton']['on']('execute',()=>{_0x163276['editing']['view']['focus']();}),_0x2cdb55=_0x15aaab['createAnnotationView'](this['editor']['locale'],_0x21b2f9),_0x2cdb55['bind']('isDirty')['to'](_0x21b2f9,'isDirty'),_0x2cdb55['bind']('length')['to'](_0x21b2f9),_0x2cdb55['bind']('type')['to'](_0x21b2f9,'type',_0x4c5aac=>'suggestion-'+_0x4c5aac),this['_annotationViews']['set'](_0x22521e['id'],_0x2cdb55));const _0x27ca95=_0x381d54['createCommentThreadController'](_0x22521e['commentThread'],_0x21b2f9),_0x458d22=new oe(_0x163276,_0x22521e,_0x21b2f9,_0x27ca95),_0x3b3fd7=_0x22521e['getAllAdjacentSuggestions']()['filter'](_0x478887=>_0x478887['isInContent']);_0x21b2f9['descriptionParts']=_0x163276['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3b3fd7),this['_suggestionToController']['set'](_0x22521e,_0x458d22),this['_viewToController']['set'](_0x21b2f9,_0x458d22);const _0x1154ef=_0x15aaab['createAnnotation']({'view':_0x2cdb55,'target':()=>{const _0x4b8339=[],_0x13f89e=_0x22521e['getAllAdjacentSuggestions']()['filter'](_0xbe5a04=>_0xbe5a04['isInContent']);for(const _0x21a701 of _0x13f89e)_0x4b8339['push'](..._0x21a701['getMarkers']());return _0x51979d(_0x163276['editing'],_0x4b8339);},'type':()=>'suggestion-'+_0x458d22['view']['type']});_0x381d54['_bindAnnotationToEditors'](_0x21b2f9,_0x1154ef),_0x15aaab['add'](_0x1154ef),_0x3cee95['registerAnnotation'](_0x1154ef);}['_destroyController'](_0x221951){const _0x2f88a9=this['editor']['plugins']['get']('CommentsRepository'),_0x411ae5=this['editor']['plugins']['get']('Annotations'),_0x168574=this['_suggestionToController']['get'](_0x221951),_0x422641=_0x168574['view'],_0x3e6d91=_0x411ae5['getByInnerView'](_0x422641);_0x2f88a9['_unbindEditors'](_0x422641),_0x3e6d91&&_0x411ae5['remove'](_0x3e6d91),this['_suggestionToController']['delete'](_0x221951),this['_viewToController']['delete'](_0x422641),_0x168574['destroy']();}['_updateController'](_0x410ac9){if(!_0x410ac9['isInContent']||!this['_suggestionToController']['has'](_0x410ac9))return;const _0x57a3d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7a0657=this['_suggestionToController']['get'](_0x410ac9),_0x1858e8=_0x410ac9['getAllAdjacentSuggestions']();_0x7a0657['view']['descriptionParts']=_0x57a3d7['descriptionFactory']['getDescriptions'](_0x1858e8);}['destroy'](){for(const _0x3566a6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3566a6);for(const _0x2cb018 of this['_annotationViews']['values']())_0x2cb018['mainView']['destroy']();super['destroy']();}}function ae(_0x392429){return'model'in _0x392429;}class k extends _0x4dba3d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x565f31){this['editor']['plugins']['get'](p)['adapter']=_0x565f31;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x50d531){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x50d531);}['getSuggestions']({skipNotAttached:_0x1fe593=!0x1,toJSON:_0x136579=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1fe593,'toJSON':_0x136579});}['getSuggestion'](_0x497db0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x497db0);}}const T=['Pagination'];class P extends _0x4dba3d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1e7e49=this['editor'];if(_0x1e7e49['config']['define']('trackChangesData.editorCreator',_0x435351=>{const _0x5c9720=_0x1e7e49['model']['document']['getRootNames']()['reduce']((_0x41dc2d,_0x1e715a)=>(_0x41dc2d[_0x1e715a]='',_0x41dc2d),{});return _0x1e7e49['constructor']['create'](_0x5c9720,_0x435351);}),'function'!=typeof _0x1e7e49['config']['get']('trackChangesData')['editorCreator'])throw new _0x14c552('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x31f0e8){return N(this['editor'],!0x0,_0x31f0e8);}['getDataWithDiscardedSuggestions'](_0xd1bc4c){return N(this['editor'],!0x1,_0xd1bc4c);}}class D extends _0x4dba3d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x32991a){super(_0x32991a),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(_0x19210d){return void 0x0!==_0x19210d['getRootsAttributes'];}async function N(_0x46a3b2,_0x182c9d,_0x440552){const _0x16720b=_0x274820(_0x46a3b2,T);_0x16720b['plugins']['push'](p,D),_0x16720b['rootsAttributes']=v(_0x46a3b2)?_0x46a3b2['getRootsAttributes']():void 0x0;const _0x2fc75f=document['createDocumentFragment'](),_0x5a8c74=_0x46a3b2['config']['get']('trackChangesData')['editorCreator'],_0x222aff=await _0x5a8c74(_0x16720b,()=>function(_0x45f5de){const _0x50ce52=document['createElement']('div');return _0x45f5de['appendChild'](_0x50ce52),_0x50ce52;}(_0x2fc75f));!function(_0x3fb403,_0x3fb779){const _0x37d812=_0x3fb403['model']['document']['getRootNames']()['reduce']((_0x3c34f6,_0x4b8de9)=>(_0x3c34f6[_0x4b8de9]=_0x3fb403['data']['get']({'rootName':_0x4b8de9}),_0x3c34f6),{}),_0x5ecb89=_0x3fb403['plugins']['get']('Users')['users']['map'](_0x1fc96a=>({'id':_0x1fc96a['id'],'name':_0x1fc96a['name']})),_0x2bd0e=_0x3fb403['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x416554=_0x3fb403['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f0ffa=_0x3fb779['plugins']['get']('Users'),_0x2e8506=_0x3fb779['plugins']['get']('TrackChangesEditing'),_0x5007ba=_0x3fb779['plugins']['get']('CommentsRepository');for(const _0x4c6c85 of _0x5ecb89)_0x2f0ffa['getUser'](_0x4c6c85['id'])||_0x2f0ffa['addUser'](_0x4c6c85);_0x2f0ffa['me']||_0x2f0ffa['useAnonymousUser']();for(const _0x27779f of _0x416554)_0x5007ba['addCommentThread'](_0x27779f);for(const _0x1ea10a of _0x2bd0e)_0x2e8506['addSuggestionData'](_0x1ea10a);_0x3fb779['data']['set'](_0x37d812);}(_0x46a3b2,_0x222aff),_0x222aff['execute'](_0x182c9d?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e4f28=v(_0x222aff)?_0x222aff['getFullData'](_0x440552):_0x222aff['data']['get'](_0x440552);return await _0x222aff['destroy'](),_0x1e4f28;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};