@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241014.0 → 0.0.0-nightly-20241016.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x254461,PendingActions as _0x4893ce,icons as _0x414248}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x24debd,ObservableMixin as _0x1647c4,uid as _0x461dff,insertToPriorityArray as _0x4fda81,priorities as _0x568bb9,logWarning as _0x8a1eb9,getEnvKeystrokeText as _0x1fa791,FocusTracker as _0x1acb6e,KeystrokeHandler as _0x11b522,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x6e5de0,View as _0x41b13d,ViewCollection as _0x511aad,FocusCycler as _0x4cd398,ViewModel as _0x359d1c,createDropdown as Qt,SplitButtonView as _0x3c149c,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0xf68576}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1ed7f3,hashObject as _0x5c1cf2,surroundingMarkersDetector as _0x18ea2e,FOCUS_ANNOTATION_KEYSTROKE as _0x4d4f05,AriaDescriptionView as _0x31a896,setupThreadKeyboardNavigation as _0x113ddf,trimHtml as _0x2ca58a,UserView as _0x26ba73,LateFocusButtonView as _0x2f0ecf,getDateTimeFormatter as _0x35a2dc,getAllMarkersDomElementsSorted as _0x3625e0,sanitizeEditorConfig as _0x109839}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x54487e,LiveRange as _0x5da18b,LivePosition as _0xcc9591}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4574b4,toWidget as _0x378e21}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xdf7c3,set as _0x5a29bb,isEqual as _0x542e5d,unset as _0x313cc0,omit as Tt}from'lodash-es';import{Delete as _0x492a59,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x57cffd,ShiftEnter as _0x14e530}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x397736,_0x5bc807){super(_0x397736),this['_enabledCommands']=_0x5bc807,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 _0x1e1898 of this['editor']['commands']['commands']())_0x1e1898['affectsData']&&!this['_enabledCommands']['has'](_0x1e1898)&&_0x1e1898['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19a9e9 of this['editor']['commands']['commands']())_0x19a9e9['affectsData']&&!this['_enabledCommands']['has'](_0x19a9e9)&&_0x19a9e9['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x3f3353,_0x343b89){super(_0x3f3353),this['_suggestions']=_0x343b89,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1d7ddd){const _0x46bdc0=this['_suggestions']['get'](_0x1d7ddd);if(!_0x46bdc0)throw new _0x24debd('track-changes-accept-suggestion-not-found',this);const _0x111a62=_0x46bdc0['getRanges']();this['editor']['model']['canEditAt'](_0x111a62)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x46bdc0);}}class R extends ts{['_suggestions'];constructor(_0xf01581,_0x3cd9a7){super(_0xf01581),this['_suggestions']=_0x3cd9a7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5618e6){const _0x4f9aa2=this['_suggestions']['get'](_0x5618e6);if(!_0x4f9aa2)throw new _0x24debd('track-changes-discard-suggestion-not-found',this);const _0x3922e0=_0x4f9aa2['getRanges']();this['editor']['model']['canEditAt'](_0x3922e0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4f9aa2);}}function ls(_0x47bbc2,_0x18f50b){let _0x3bf254='';return _0x3bf254+=_0x47bbc2['split']('*')['map']((_0x25a65e,_0xd20960)=>_0xd20960%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x25a65e)+'</span>':nn(_0x25a65e))['join'](''),_0x18f50b&&(_0x3bf254+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x18f50b['value']+'\x22\x20title=\x22'+_0x18f50b['title']+'\x22></span>'),_0x3bf254;}function nn(_0xfdf8f2){const _0x47a594=document['createElement']('span');return _0x47a594['innerText']=_0xfdf8f2,_0x47a594['innerHTML'];}function ss(_0x91eac7){return _0x91eac7['sort']((_0xaaf445,_0x542176)=>'deletion'==_0xaaf445['type']&&'deletion'!=_0x542176['type']?-0x1:'deletion'!=_0xaaf445['type']&&'deletion'==_0x542176['type']?0x1:0x0);}function to(_0x481205,_0x1e7702){let _0x16293c,_0x38b06a=0x0;const _0x4fd35b=[],_0x172650=_0x1e7702['schema'];for(;_0x38b06a<_0x481205['length'];){const _0x642dfb=_0x481205[_0x38b06a],_0x2c2295=_0x481205[_0x38b06a+0x1];_0x16293c||(_0x16293c=_0x1e7702['createPositionBefore'](_0x642dfb)),on(_0x1e7702,_0x642dfb,_0x2c2295)||(_0x4fd35b['push'](_0x1e7702['createRange'](_0x16293c,_0x172650['isObject'](_0x642dfb)?_0x1e7702['createPositionAfter'](_0x642dfb):_0x1e7702['createPositionAt'](_0x642dfb,'end'))),_0x16293c=null),_0x38b06a++;}return _0x4fd35b;}function on(_0x3d793b,_0x4f0daa,_0x1b2a50){if(!_0x1b2a50)return!0x1;const _0x4d30fe=_0x3d793b['createPositionAfter'](_0x4f0daa),_0x1dae7d=_0x3d793b['createPositionBefore'](_0x1b2a50);return _0x4d30fe['isTouching'](_0x1dae7d);}function rs(_0x195a9c,_0x2bf32f,_0x28039c){for(;_0x28039c['length'];){const _0x2e393b=_0x28039c['splice'](0x0,0x64);_0x195a9c['change'](()=>{for(const _0x2a5e01 of _0x2e393b)_0x2a5e01['isInContent']&&_0x2bf32f['execute'](_0x2a5e01['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0xb5410e,_0xdae1e9,_0x2251e1){super(_0xb5410e),this['_command']=_0xdae1e9,this['_suggestions']=_0x2251e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x519219=Array['from'](this['_suggestions']['values']())['some'](_0x3e1538=>_0x3e1538['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x519219;}['execute'](){const _0xdeafcf=ss(Array['from'](this['_suggestions']['values']()));for(const _0x19eab3 of _0xdeafcf){const _0x301672=_0x19eab3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x301672))return;}rs(this['editor']['model'],this['_command'],_0xdeafcf);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x43353b,_0x5b90f5,_0x358a06){super(_0x43353b),this['_command']=_0x5b90f5,this['_suggestions']=_0x358a06,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x456233=this['editor']['model']['document']['selection'],_0x1a9929=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x244889,_0x2a12a0){const _0x5ab832=Array['from'](_0x244889['getRanges']()),_0x588189=new Set();for(const _0x1057a5 of _0x2a12a0)if(_0x1057a5['isInContent']){for(const _0x1df7db of _0x5ab832)for(const _0x5252d1 of _0x1057a5['getRanges']())(_0x1df7db['isIntersecting'](_0x5252d1)||_0x244889['isCollapsed']&&!_0x1057a5['isMultiRange']&&_0x1057a5['next']&&_0x5252d1['end']['isTouching'](_0x1df7db['start']))&&_0x588189['add'](_0x1057a5);}return _0x588189;}(_0x456233,_0x1a9929),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x28e594=ss(Array['from'](this['_selectedSuggestions']));for(const _0xb3ae08 of _0x28e594){const _0x3ed651=_0xb3ae08['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3ed651))return;}rs(this['editor']['model'],this['_command'],_0x28e594);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1647c4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5d9d76,_0x5202b4){super(),this['id']=_0x5202b4['id'],this['type']=_0x5202b4['type'],this['subType']=_0x5202b4['subType']||null,this['author']=_0x5202b4['author'],this['creator']=_0x5202b4['creator']||_0x5202b4['author'],this['isExternal']=Boolean(_0x5202b4['attributes']&&_0x5202b4['attributes']['@external']),this['data']=null,this['_model']=_0x5d9d76,this['_onAccept']=_0x5202b4['onAccept'],this['_onDiscard']=_0x5202b4['onDiscard'],this['_onAttributesChange']=_0x5202b4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5202b4['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 _0x247a03=this;for(;_0x247a03['previous'];)_0x247a03=_0x247a03['previous'];return _0x247a03;}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'](_0x292c06){this['_markerNames']['add'](_0x292c06);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x52abbe=>this['_model']['markers']['get'](_0x52abbe))['filter'](_0x142caf=>_0x142caf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x123ebb=>{for(const _0x650e1 of this['getMarkers']())_0x123ebb['removeMarker'](_0x650e1);}),this['_markerNames']['clear']();}['removeMarker'](_0x3840ae){this['_model']['change'](_0x10e4ec=>{_0x10e4ec['removeMarker'](_0x3840ae);}),this['_markerNames']['delete'](_0x3840ae);}['addRange'](_0x2f882e){const _0x294f35='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x294f35),this['_model']['change'](_0x2ced1f=>{_0x2ced1f['addMarker'](_0x294f35,{'range':_0x2f882e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xe8ff08){for(const _0x3420f9 of this['getRanges']())if(_0x3420f9['isIntersecting'](_0xe8ff08))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1ece36=>_0x1ece36['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x6932c7,_0x525b13)=>[..._0x6932c7,..._0x525b13['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x72d4a=this['getRanges']();if(0x1!=_0x72d4a['length'])return null;const _0x2e6e3c=_0x72d4a[0x0],_0x43901a=_0x2e6e3c['start']['nodeAfter'],_0x14d19b=_0x2e6e3c['end']['nodeBefore'];return _0x43901a instanceof _0x54487e?_0x43901a!=_0x14d19b?null:_0x43901a: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 _0x257105=[];let _0x2ab38f=this['head'];for(;_0x2ab38f;)_0x257105['push'](_0x2ab38f),_0x2ab38f=_0x2ab38f['next'];return _0x257105;}['setAttribute'](_0x106a55,_0x4e7217){const _0x34b40f=_0xdf7c3(this['attributes']);_0x5a29bb(_0x34b40f,_0x106a55,_0x4e7217),_0x542e5d(_0x34b40f,this['attributes'])||(this['attributes']=_0x34b40f,this['_onAttributesChange'](_0x34b40f));}['removeAttribute'](_0x43f911){const _0x2805c9=_0xdf7c3(this['attributes']);_0x313cc0(_0x2805c9,_0x43f911),_0x542e5d(_0x2805c9,this['attributes'])||(this['attributes']=_0x2805c9,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 _0x461dff()['substr'](0x1,0x5);}}function o(_0x1a6fa9,_0x213312,_0x25c8b2){const t=_0x1a6fa9['t'];switch(_0x213312){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',_0x25c8b2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x25c8b2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x25c8b2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x25c8b2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x25c8b2);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',_0x25c8b2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x25c8b2);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',_0x25c8b2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x25c8b2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x25c8b2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x25c8b2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x25c8b2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x25c8b2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x25c8b2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x25c8b2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x25c8b2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x25c8b2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x25c8b2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x25c8b2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x25c8b2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x25c8b2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x25c8b2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x25c8b2);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'},_0x25c8b2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x25c8b2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x25c8b2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x25c8b2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x25c8b2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x25c8b2);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'},_0x25c8b2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x25c8b2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x25c8b2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x25c8b2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x25c8b2);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'},_0x25c8b2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x25c8b2);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'},_0x25c8b2);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'},_0x25c8b2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x25c8b2);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'},_0x25c8b2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x25c8b2);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'},_0x25c8b2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x25c8b2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x25c8b2);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x25c8b2);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'},_0x25c8b2);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'},_0x25c8b2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x25c8b2);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x25c8b2);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x25c8b2);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x25c8b2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x213312;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x269b0f,_0x9f9216){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x269b0f,this['_locale']=_0x9f9216;}['getDescriptions'](_0x19c295){const _0x5af84b=[],_0x3bcb03=new Set(),_0x24c91b=new Set();for(let _0x5eff3d=0x0;_0x5eff3d<_0x19c295['length'];_0x5eff3d++){const _0x8171fd=_0x19c295[_0x5eff3d];if(!_0x8171fd['isInContent'])continue;const _0x284a56=this['_handleCustomCallbackDescription'](_0x8171fd);if(_0x284a56){if(null!=_0x8171fd['subType']){if(_0x3bcb03['has'](_0x8171fd['subType']))continue;_0x3bcb03['add'](_0x8171fd['subType']);}_0x5af84b['push'](_0x284a56);}else{if('attribute'!=_0x8171fd['type'])'insertion'!=_0x8171fd['type']&&'deletion'!=_0x8171fd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5af84b,_0x8171fd,_0x19c295[_0x5eff3d+0x1]);else{const _0x2e497b=_0x8171fd['data']['key'];if(_0x24c91b['has'](_0x2e497b))continue;_0x24c91b['add'](_0x8171fd['data']['key']),_0x2e497b==m?this['_handleRenameSuggestionDescription'](_0x5af84b,_0x8171fd):this['_handleAttributeSuggestionDescription'](_0x5af84b,_0x8171fd);}}}return this['_resolveDescriptionItems'](_0x5af84b);}['registerDescriptionCallback'](_0x136f3a){this['_customCallbacks']['push'](_0x136f3a);}['registerElementLabel'](_0x554f0c,_0x4378fb,_0x395660=_0x568bb9['normal']){'function'==typeof _0x554f0c?_0x4fda81(this['_itemLabelsCallbacks'],{'matchingCallback':_0x554f0c,'label':_0x4378fb,'priority':_0x395660}):this['_itemLabels']['set'](_0x554f0c,_0x4378fb);}['registerAttributeLabel'](_0x4e18e8,_0x2fca10){this['_attributeLabels']['set'](_0x4e18e8,_0x2fca10);}['getItemLabel'](_0x210037,_0x507215=0x1){let _0xa5c588;for(const _0x509841 of this['_itemLabelsCallbacks'])if(_0x509841['matchingCallback'](_0x210037)){_0xa5c588=_0x509841['label'];break;}return _0xa5c588||(_0xa5c588=this['_itemLabels']['get'](_0x210037['name'])),_0xa5c588?_0xa5c588(_0x507215):0x1!==_0x507215?_0x507215+'\x20'+_0x210037['name']+'s':''+_0x210037['name'];}['_addDescriptionItems'](_0x5a5410,_0x1c66db){const _0x316358=_0x1c66db['getFirstRange']()['getWalker'](),_0x5a49d8='insertion'==_0x1c66db['type']?'add':'remove';for(const _0x4c827e of _0x316358){const _0x148af8=_0x4c827e['item'],_0x4057bb=_0x5a5410[_0x5a5410['length']-0x1];if(_0x148af8['is']('$textProxy'))_0x4057bb&&_0x4057bb['type']['indexOf']('Container')>-0x1&&_0x5a5410['pop'](),_0x4057bb&&'text'==_0x4057bb['type']?_0x4057bb[_0x5a49d8]+=_0x148af8['data']:_0x5a5410['push']({'type':'text','add':'add'==_0x5a49d8?_0x148af8['data']:'','remove':'remove'==_0x5a49d8?_0x148af8['data']:''});else{if(this['_schema']['isObject'](_0x148af8)){const _0x7c96c=_0x148af8;if(_0x4057bb&&_0x4057bb['type']['indexOf']('Container')>-0x1&&_0x5a5410['pop'](),'elementEnd'==_0x4c827e['type'])continue;_0x4057bb&&_0x4057bb['type']==_0x5a49d8+'Object'&&_0x4057bb['element']['name']==_0x7c96c['name']?_0x4057bb['quantity']++:_0x5a5410['push']({'type':_0x5a49d8+'Object','element':_0x7c96c,'quantity':0x1}),_0x316358['skip'](_0x46c8d2=>!('elementEnd'==_0x46c8d2['type']&&_0x46c8d2['item']==_0x148af8));}else{if(this['_schema']['checkChild'](_0x148af8,'$text')||_0x148af8['is']('element','softBreak')){const _0x5c7c0b=_0x148af8;if('add'==_0x5a49d8&&'elementStart'==_0x4c827e['type']||'remove'==_0x5a49d8&&'elementEnd'==_0x4c827e['type'])continue;if(_0x4057bb&&-0x1==_0x4057bb['type']['indexOf']('Container')){'text'==_0x4057bb['type']&&(_0x4057bb[_0x5a49d8]+='\x0a');continue;}let _0x48a6bc;if(_0x48a6bc='add'==_0x5a49d8?_0x5c7c0b['nextSibling']&&!this['_schema']['isObject'](_0x5c7c0b['nextSibling'])?_0x5c7c0b['nextSibling']:null:_0x5c7c0b['previousSibling']&&!this['_schema']['isObject'](_0x5c7c0b['previousSibling'])?_0x5c7c0b['previousSibling']:null,_0x5c7c0b['isEmpty']||_0x48a6bc&&_0x48a6bc['isEmpty']){const _0x13f010=_0x48a6bc&&_0x48a6bc['isEmpty']?_0x48a6bc:_0x5c7c0b;_0x4057bb&&_0x4057bb['type']==_0x5a49d8+'EmptyContainer'&&_0x4057bb['element']['name']==_0x13f010['name']?_0x4057bb['quantity']++:_0x5a5410['push']({'type':_0x5a49d8+'EmptyContainer','element':_0x13f010,'quantity':0x1});}else _0x5a5410['push']({'type':_0x5a49d8+'Container','element':_0x5c7c0b});}}}}}['_resolveDescriptionItems'](_0xfb6421){const _0x4f208a=this['_locale'],_0x5b5c89=[],_0x326e71=[],_0x3b2919=[];for(const _0x2dab66 of _0xfb6421)switch(_0x2dab66['type']){case'text':if(_0x2dab66['add']=_0x2dab66['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2dab66['remove']=_0x2dab66['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2dab66['add']&&''!=_0x2dab66['remove']){_0x5b5c89['push']({'type':'replace','content':o(_0x4f208a,'REPLACE_TEXT',['\x22'+_0x2dab66['remove']+'\x22','\x22'+_0x2dab66['add']+'\x22'])});continue;}if(null!=_0x2dab66['add']['match'](/^ +$/)){_0x5b5c89['push']({'type':'insertion','content':o(_0x4f208a,'*Insert:*\x20%0',o(_0x4f208a,'ELEMENT_SPACE',_0x2dab66['add']['length']))});continue;}if(null!=_0x2dab66['remove']['match'](/^ +$/)){_0x5b5c89['push']({'type':'deletion','content':o(_0x4f208a,'*Remove:*\x20%0',o(_0x4f208a,'ELEMENT_SPACE',_0x2dab66['remove']['length']))});continue;}if(''!=_0x2dab66['add']){_0x5b5c89['push']({'type':'insertion','content':o(_0x4f208a,'*Insert:*\x20%0','\x22'+_0x2dab66['add']+'\x22')});continue;}_0x5b5c89['push']({'type':'deletion','content':o(_0x4f208a,'*Remove:*\x20%0','\x22'+_0x2dab66['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5b5c89['push']({'type':'insertion','content':o(_0x4f208a,'*Insert:*\x20%0',this['getItemLabel'](_0x2dab66['element'],_0x2dab66['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5b5c89['push']({'type':'deletion','content':o(_0x4f208a,'*Remove:*\x20%0',this['getItemLabel'](_0x2dab66['element'],_0x2dab66['quantity']))});continue;case'addContainer':_0x5b5c89['push']({'type':'insertion','content':o(_0x4f208a,'*Split:*\x20%0',this['getItemLabel'](_0x2dab66['element'],_0x2dab66['quantity']))});continue;case'removeContainer':_0x5b5c89['push']({'type':'deletion','content':o(_0x4f208a,'*Merge:*\x20%0',this['getItemLabel'](_0x2dab66['element'],_0x2dab66['quantity']))});continue;case'addFormat':_0x326e71['push'](_0x2dab66['key']);continue;case'removeFormat':_0x3b2919['push'](_0x2dab66['key']);continue;default:_0x5b5c89['push'](_0x2dab66);}if(_0x326e71['length']){const _0xd3fe29=_0x326e71['map'](_0x5b071c=>this['_attributeLabels']['has'](_0x5b071c)?this['_attributeLabels']['get'](_0x5b071c):_0x5b071c)['join'](',\x20');_0x5b5c89['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xd3fe29)});}if(_0x3b2919['length']){const _0x440c13=_0x3b2919['map'](_0x476176=>this['_attributeLabels']['has'](_0x476176)?this['_attributeLabels']['get'](_0x476176):_0x476176)['join'](',\x20');_0x5b5c89['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x440c13)});}return _0x5b5c89;}['_handleCustomCallbackDescription'](_0x4c2f87){for(const _0x2916cf of this['_customCallbacks']){const _0x533597=_0x2916cf(_0x4c2f87);if(_0x533597&&'type'in _0x533597)return _0x533597;}}['_handleAttributeSuggestionDescription'](_0x434da2,_0x4751ee){const _0x199c4f=_0x4751ee['data'],_0x10bd6b=void 0x0===_0x199c4f['newValue']?'removeFormat':'addFormat';_0x434da2['push']({'type':_0x10bd6b,'key':_0x199c4f['key']});}['_handleRenameSuggestionDescription'](_0x117776,_0x378298){_0x117776['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x378298['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x500517,_0x5795e8,_0x1ec961){if(this['_addDescriptionItems'](_0x500517,_0x5795e8),_0x1ec961&&_0x1ec961['getFirstRange']()&&!_0x5795e8['getFirstRange']()['end']['isEqual'](_0x1ec961['getFirstRange']()['start'])){const _0x6b723b=_0x500517[_0x500517['length']-0x1],_0x863470='insertion'==_0x5795e8['type']?'add':'remove';_0x6b723b&&'text'==_0x6b723b['type']&&(_0x6b723b[_0x863470]+='\x0a');}}}class V extends _0x254461{['afterInit'](){const _0x163b63=this['editor'],_0x27eb1c=_0x163b63['plugins']['get']('TrackChangesEditing');_0x163b63['commands']['get']('showAIAssistant')&&_0x27eb1c['enableCommand']('showAIAssistant');}}class U extends _0x254461{['afterInit'](){const _0xb77769=this['editor'],_0x27cfec=_0xb77769['locale'];if(!_0xb77769['plugins']['has']('AlignmentEditing'))return;const _0x1e69d9=_0xb77769['plugins']['get']('TrackChangesEditing');_0x1e69d9['enableDefaultAttributesIntegration']('alignment'),_0x1e69d9['registerBlockAttribute']('alignment'),_0x1e69d9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x27cfec,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491e78=this['editor'],_0x56add5=_0x491e78['locale'];_0x491e78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24c54c=>{if('formatBlock'!=_0x24c54c['type'])return;const {data:_0x5bcbdf}=_0x24c54c;if(_0x5bcbdf&&'alignment'==_0x5bcbdf['commandName']){const _0x51cff6=_0x5bcbdf['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56add5,'*Format:*\x20%0',function(_0x90f2a8){switch(_0x90f2a8){case'left':return o(_0x56add5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56add5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56add5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56add5,'FORMAT_JUSTIFY_TEXT');}}(_0x51cff6))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x254461{['afterInit'](){const _0x450d41=this['editor'],_0x2d0c64=_0x450d41['plugins']['get']('TrackChangesEditing'),_0x1b7868=_0x450d41['locale'];for(const _0x4794bf of ti){if(!_0x450d41['plugins']['has'](_0x4794bf))continue;const _0x320d2d=_0x4794bf['slice'](0x0,-0x7)['toLowerCase'](),_0x3335ab='FORMAT_'+_0x320d2d['toUpperCase']();_0x2d0c64['enableDefaultAttributesIntegration'](_0x320d2d),_0x2d0c64['registerInlineAttribute'](_0x320d2d),_0x2d0c64['descriptionFactory']['registerAttributeLabel'](_0x320d2d,o(_0x1b7868,_0x3335ab));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482a40=this['editor'],_0x355ffd=_0x482a40['locale'],_0xfb1056=_0x482a40['plugins']['get']('TrackChangesEditing');function _0x4d8ec5(_0x337ae3,_0x529d89){_0xfb1056['descriptionFactory']['registerDescriptionCallback'](_0x24a1b2=>{if('formatInline'!=_0x24a1b2['type'])return;const {data:_0x179711}=_0x24a1b2;return _0x179711&&_0x179711['commandName']===_0x337ae3?_0x179711['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x355ffd,'*Format:*\x20%0',_0x529d89)}:{'type':'format','content':o(_0x355ffd,'*Remove\x20format:*\x20%0',_0x529d89)}:void 0x0;});}_0x4d8ec5('bold',o(_0x355ffd,'FORMAT_BOLD')),_0x4d8ec5('italic',o(_0x355ffd,'FORMAT_ITALIC')),_0x4d8ec5('underline',o(_0x355ffd,'FORMAT_UNDERLINE')),_0x4d8ec5('code',o(_0x355ffd,'FORMAT_CODE')),_0x4d8ec5('strikethrough',o(_0x355ffd,'FORMAT_STRIKETHROUGH')),_0x4d8ec5('subscript',o(_0x355ffd,'FORMAT_SUBSCRIPT')),_0x4d8ec5('superscript',o(_0x355ffd,'FORMAT_SUPERSCRIPT'));}}class F extends _0x254461{['afterInit'](){const _0x5c8084=this['editor'],_0x479ccf=_0x5c8084['locale'];if(!_0x5c8084['plugins']['has']('BlockQuoteEditing'))return;const _0x3753b2=_0x5c8084['plugins']['get']('TrackChangesEditing'),_0x5cd218=this['editor']['commands']['get']('blockQuote');_0x3753b2['enableCommand']('blockQuote',(_0x30819b,_0x1a5206={})=>{const _0xc9242d=this['editor']['model']['document']['selection'],_0x4260f2=_0x1a5206&&void 0x0!==_0x1a5206['forceValue']?_0x1a5206['forceValue']:!_0x5cd218['value'];let _0x3fffde=[];if(_0x4260f2){const _0x4f6846=Array['from'](_0xc9242d['getSelectedBlocks']())['filter'](_0x37b7ea=>oo(_0x37b7ea)||function(_0x26f6f4,_0x50db73){const _0x4b247a=_0x50db73['checkChild'](_0x26f6f4['parent'],'blockQuote'),_0x1eb96b=_0x50db73['checkChild'](['$root','blockQuote'],_0x26f6f4);return _0x4b247a&&_0x1eb96b;}(_0x37b7ea,this['editor']['model']['schema']));_0x3fffde=to(_0x4f6846,_0x5c8084['model']);}else{const _0x1f6448=Array['from'](_0xc9242d['getSelectedBlocks']())['filter'](_0x2fc376=>oo(_0x2fc376));_0x3fffde=to(_0x1f6448,_0x5c8084['model']);}_0x5c8084['model']['change'](()=>{for(const _0x1c4f79 of _0x3fffde)_0x3753b2['markBlockFormat'](_0x1c4f79,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4260f2}]});});}),_0x3753b2['descriptionFactory']['registerDescriptionCallback'](_0x3a16c3=>{const {data:_0x3a2586}=_0x3a16c3;if(_0x3a2586&&'blockQuote'==_0x3a2586['commandName']){const _0x579528=o(_0x479ccf,'ELEMENT_BLOCK_QUOTE');return _0x3a2586['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x479ccf,'*Set\x20format:*\x20%0',_0x579528)}:{'type':'format','content':o(_0x479ccf,'*Remove\x20format:*\x20%0',_0x579528)};}});}}function oo(_0x838d04){return'blockQuote'==_0x838d04['parent']['name'];}class L extends _0x254461{['afterInit'](){const _0x8b49e=this['editor'];_0x8b49e['plugins']['has']('CaseChange')&&(_0x8b49e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x8b49e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x8b49e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x254461{['afterInit'](){const _0x597ab9=this['editor'];_0x597ab9['commands']['get']('ckbox')&&_0x597ab9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x254461{['afterInit'](){const _0x25e650=this['editor'];if(!_0x25e650['plugins']['has']('CodeBlock'))return;const _0x4c91ab=_0x25e650['plugins']['get']('TrackChangesEditing'),_0x5d3b70=_0x25e650['locale'],_0x405019=_0x25e650['config']['get']('codeBlock')['languages'],_0x194821=_0x25e650['commands']['get']('codeBlock');_0x4c91ab['enableCommand']('indentCodeBlock'),_0x4c91ab['enableCommand']('outdentCodeBlock'),_0x4c91ab['enableCommand']('codeBlock',(_0x23eca5,_0x4c905b={})=>{const _0x785976=_0x25e650['model'],_0x1ca4af=_0x25e650['model']['document']['selection'],_0x39cfb7=_0x4c905b&&void 0x0!==_0x4c905b['forceValue']?_0x4c905b['forceValue']:!_0x194821['value'];let _0x395f0b;_0x4c905b['language']||(_0x4c905b['language']=_0x405019[0x0]['language']),_0x395f0b=_0x39cfb7?Array['from'](_0x1ca4af['getSelectedBlocks']())['filter'](_0x27ea12=>eo(_0x27ea12)||function(_0x27e495,_0x5bcc68){if(_0x27e495['is']('rootElement')||_0x5bcc68['isLimit'](_0x27e495))return!0x1;return _0x5bcc68['checkChild'](_0x27e495['parent'],'codeBlock');}(_0x27ea12,_0x785976['schema'])):Array['from'](_0x1ca4af['getSelectedBlocks']())['filter'](_0xd65af3=>eo(_0xd65af3));const _0x4f6740=to(_0x395f0b,_0x785976);_0x785976['change'](()=>{for(const _0x4b1fa3 of _0x4f6740)_0x4c91ab['markBlockFormat'](_0x4b1fa3,{'commandName':'codeBlock','commandParams':[{..._0x4c905b,'forceValue':_0x39cfb7}],'formatGroupId':'blockName'});});}),(_0x4c91ab['descriptionFactory']['registerElementLabel']('codeBlock',_0x30ad4b=>o(_0x5d3b70,'ELEMENT_CODE_BLOCK',_0x30ad4b)),_0x4c91ab['descriptionFactory']['registerDescriptionCallback'](_0x14d33a=>{if('formatBlock'!=_0x14d33a['type'])return;const _0x3e6ce0=_0x5d3b70['t'],{data:_0x5c6b08}=_0x14d33a;if(!_0x5c6b08||'codeBlock'!=_0x5c6b08['commandName'])return;const _0x2ed90d=_0x5c6b08['commandParams'][0x0]['language'],_0xd0c645=_0x3e6ce0(_0x405019['find'](_0xb82b9d=>_0xb82b9d['language']===_0x2ed90d)['label'])['toLowerCase']();return _0x5c6b08['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d3b70,'*Set\x20format:*\x20%0',o(_0x5d3b70,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xd0c645+')')}:{'type':'format','content':o(_0x5d3b70,'*Remove\x20format:*\x20%0',o(_0x5d3b70,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x257ae4){return'codeBlock'==_0x257ae4['name'];}class q extends _0x254461{['afterInit'](){const _0xe47baf=this['editor'];if(!_0xe47baf['plugins']['has']('CommentsEditing'))return;_0xe47baf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x25a6cf,_0x12d9ca,_0x7e6974){const _0x549545=[];for(const _0x1f46bf of _0x12d9ca['getItems']())_0x1f46bf['hasAttribute'](_0x25a6cf)&&_0x549545['push'](_0x7e6974['createRangeOn'](_0x1f46bf));return _0x549545;}function _e(_0x524d5b,_0x533d1e,{showActiveMarker:_0x136708=!0x0}={}){const _0x2f1a6c=_0x524d5b['plugins']['get']('TrackChangesEditing');return(_0x5c5e70,_0x81d914,_0xdc7dea)=>{if(!_0xdc7dea['consumable']['test'](_0x81d914['markerRange'],_0x5c5e70['name']))return;const _0x1128a8=_0x81d914['markerRange']['getWalker'](),_0x228f3b=_0x81d914['markerRange']['start'],_0x353b1e=_0x524d5b['model']['schema'];let _0x45ac7f=null,_0x1897b6=null,_0x4fbeb9=!0x1,_0x2c3805=!0x1;for(const _0x2c141f of _0x1128a8){const _0x70d56f=_0x2c141f['item'];_0x4fbeb9=_0x4fbeb9||_0x353b1e['isContent'](_0x70d56f);const _0x2e5c58=_0xdc7dea['mapper']['toViewElement'](_0x70d56f);if(_0x2e5c58&&_0x2e5c58['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c141f['type']&&(_0x353b1e['isBlock'](_0x70d56f)&&!_0x353b1e['isLimit'](_0x70d56f)&&(_0x70d56f['nextSibling']||_0x228f3b['isAtEnd']?_0x45ac7f&&_0x45ac7f['parent']==_0x70d56f||(_0x45ac7f=_0x70d56f,_0x35f60a(_0x2c141f['previousPosition']),_0x2c3805=!0x0):_0x1897b6=_0x1897b6||_0x2c141f['previousPosition']));}function _0x35f60a(_0x2b2cfe){const {authorId:_0x29e3f2}=_0x2f1a6c['_splitMarkerName'](_0x81d914['markerName']),_0x382200=_0xdc7dea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x533d1e,'data-author-id':_0x29e3f2}),_0xad4398=_0xdc7dea['mapper']['toViewPosition'](_0x2b2cfe);_0x136708&&_0x2f1a6c['activeMarkers']['includes'](_0x81d914['markerName'])&&_0xdc7dea['writer']['addClass']('ck-suggestion-marker--active',_0x382200),_0xdc7dea['writer']['insert'](_0xad4398,_0x382200),_0xdc7dea['mapper']['bindElementToMarker'](_0x382200,_0x81d914['markerName']);}_0x4fbeb9||_0x2c3805||!_0x1897b6||_0x35f60a(_0x1897b6);};}class z extends _0x254461{static get['requires'](){return[_0x492a59];}['init'](){const _0x27783b=this['editor'],_0x313304=_0x27783b['plugins']['get']('TrackChangesEditing');_0x313304['enableCommand']('delete');const _0x4bb142=_0x27783b['commands']['get']('deleteForward');_0x313304['enableCommand']('deleteForward',(_0x1f2ec7,_0xc5afc4={})=>{const _0x4eeca8=_0x27783b['model']['createSelection'](_0x27783b['model']['document']['selection']);_0x4eeca8['isCollapsed']&&_0x27783b['model']['modifySelection'](_0x4eeca8,{'direction':'forward','unit':_0xc5afc4['unit']});const _0x305899=_0x4eeca8['getFirstRange'](),_0x8c4232=_0x5da18b['fromRange'](_0x305899);let _0x250849;_0x1f2ec7(_0xc5afc4),_0x250849='$graveyard'==_0x8c4232['root']['rootName']?_0x27783b['model']['createRange'](_0x305899['start']):_0x27783b['model']['createRange'](_0x8c4232['start'],_0x8c4232['end']),_0x8c4232['detach'](),_0x27783b['model']['enqueueChange'](_0x4bb142['buffer']['batch'],_0x309a61=>{_0x4bb142['buffer']['lock'](),_0x309a61['setSelection'](_0x309a61['createRange'](_0x250849['end'])),_0x4bb142['buffer']['unlock']();});}),_0x27783b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x27783b,'merge'),{'priority':'high'}),_0x27783b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x515d5d,_0x14e48f,_0x1d2b25)=>{_0x1d2b25['options']['showSuggestionHighlights']&&_e(_0x27783b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x515d5d,_0x14e48f,_0x1d2b25);},{'priority':'high'}),_0x27783b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3c337f,_0x4abd34,_0x33e3ea)=>{const _0x3d7e21=_0x33e3ea['mapper']['markerNameToElements'](_0x4abd34['markerName']);if(_0x3d7e21){for(const _0x168af4 of _0x3d7e21)_0x168af4['is']('uiElement')&&(_0x33e3ea['mapper']['unbindElementFromMarkerName'](_0x168af4,_0x4abd34['markerName']),_0x33e3ea['writer']['remove'](_0x168af4));}},{'priority':'high'});}}class K extends _0x254461{['afterInit'](){const _0x28d028=this['editor'];if(!_0x28d028['plugins']['has']('ListEditing'))return;const _0x1dfeac=_0x28d028['locale'],_0x83191d=_0x28d028['plugins']['get']('TrackChangesEditing'),_0x2fce52=_0x28d028['plugins']['has']('TodoListEditing'),_0x22846e=!!_0x28d028['config']['get']('list.multiBlock');function _0x1a32e0(_0x4fa5de){return{'type':'format','content':''+o(_0x1dfeac,'*Set\x20format:*\x20%0',_0x4fa5de)};}function _0x2421f7(_0xc7879a){return{'type':'format','content':''+o(_0x1dfeac,'*Remove\x20format:*\x20%0',_0xc7879a)};}_0x83191d['enableDefaultAttributesIntegration']('numberedList'),_0x83191d['enableDefaultAttributesIntegration']('bulletedList'),_0x83191d['enableDefaultAttributesIntegration']('customNumberedList'),_0x83191d['enableDefaultAttributesIntegration']('customBulletedList'),_0x83191d['enableDefaultAttributesIntegration']('indentList'),_0x83191d['enableDefaultAttributesIntegration']('outdentList'),_0x83191d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x83191d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x83191d['registerBlockAttribute']('listItemId'),_0x83191d['registerBlockAttribute']('listType'),_0x83191d['registerBlockAttribute']('listIndent'),_0x22846e&&(_0x83191d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x83191d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2fce52&&(_0x83191d['enableDefaultAttributesIntegration']('todoList'),_0x83191d['enableDefaultAttributesIntegration']('checkTodoList'),_0x83191d['registerBlockAttribute']('todoListChecked'),_0x83191d['descriptionFactory']['registerDescriptionCallback'](_0x1e55b2=>{const {data:_0x14a982}=_0x1e55b2;if(_0x14a982&&'todoListChecked'==_0x14a982['key'])return{'type':'format','content':_0x14a982['newValue']?o(_0x1dfeac,'*Check\x20item*'):o(_0x1dfeac,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x47303c=>{if(_0x47303c['batch']['isUndo'])return!0x1;let _0x54e744=!0x1;const _0x5916d4=_0x83191d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1138a4=>'todoListChecked'===_0x83191d['_getAttributeKey'](_0x1138a4));for(const _0x4a2a85 of _0x5916d4){'todo'!=_0x4a2a85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x83191d['_findSuggestions'](_0x4a2a85['getFirstRange'](),'attribute')['find'](_0x16ebd5=>'listType'===_0x83191d['_getAttributeKey'](_0x16ebd5['suggestion']))||(_0x47303c['removeMarker'](_0x4a2a85['getFirstMarker']()),_0x54e744=!0x0));}return _0x54e744;})),_0x83191d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dfeac,'FORMAT_INDENT'));const _0x232e43={'type':'format','content':''};_0x83191d['descriptionFactory']['registerDescriptionCallback'](_0x4c000b=>{const {data:_0x38df47}=_0x4c000b;if(!_0x38df47||'listType'!=_0x38df47['key'])return;let _0x5ed606=_0x4c000b['head'];for(;_0x5ed606;){if(_0x5ed606['data']&&(('listStyle'==_0x5ed606['data']['key']||'listMarkerStyle'==_0x5ed606['data']['key'])&&(_0x5ed606['data']['newValue']&&'default'!=_0x5ed606['data']['newValue']||'default'!=_0x5ed606['data']['oldValue']&&!_0x38df47['newValue'])||!_0x22846e&&_0x5ed606['data']['key']==m))return _0x232e43;_0x5ed606=_0x5ed606['next'];}if(null==_0x38df47['newValue'])switch(_0x38df47['oldValue']){case'bulleted':return _0x2421f7(o(_0x1dfeac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2421f7(o(_0x1dfeac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2421f7(o(_0x1dfeac,'ELEMENT_TODO_LIST'));}switch(_0x38df47['newValue']){case'bulleted':return _0x1a32e0(o(_0x1dfeac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a32e0(o(_0x1dfeac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a32e0(o(_0x1dfeac,'ELEMENT_TODO_LIST'));}}),_0x83191d['descriptionFactory']['registerDescriptionCallback'](_0x2c0059=>{const {data:_0x5dfcd4}=_0x2c0059;if(_0x5dfcd4&&'listIndent'==_0x5dfcd4['key'])return null==_0x5dfcd4['newValue']||null==_0x5dfcd4['oldValue']&&0x0==_0x5dfcd4['newValue']?_0x232e43:void 0x0;}),_0x83191d['descriptionFactory']['registerDescriptionCallback'](_0x53a845=>{if('attribute'!=_0x53a845['type'])return;const {data:_0x47e072}=_0x53a845;if(!_0x47e072||'listItemId'!=_0x47e072['key'])return;const _0x425bbb=Ee(_0x53a845);return'newValue'==_0x425bbb?{'type':'format','content':o(_0x1dfeac,'*Merge:*\x20list\x20item')}:'oldValue'==_0x425bbb?{'type':'format','content':o(_0x1dfeac,'*Split:*\x20list\x20item')}:_0x232e43;}),_0x28d028['model']['document']['registerPostFixer'](_0x829e99=>this['listItemIdFixer'](_0x829e99)),_0x28d028['model']['document']['registerPostFixer'](_0x71dea9=>this['noTrackChangesFixer'](_0x71dea9)),_0x28d028['model']['document']['on']('change:data',(_0x4c3570,_0x29ca20)=>{if(_0x29ca20['isUndo']||!_0x29ca20['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x462d59){if(_0x462d59['batch']['isUndo']||!_0x462d59['batch']['isLocal'])return!0x1;let _0x348f51=!0x1;const _0x2b9741=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4986d0=>_0x4986d0['data']&&'listItemId'==_0x4986d0['data']['key'])['filter'](_0x3e841e=>_0x3e841e['data']['newValue']&&_0x3e841e['data']['oldValue']);for(const _0x54ab94 of _0x2b9741)Ee(_0x54ab94)||(_0x462d59['removeMarker'](_0x54ab94['getFirstMarker']()),_0x348f51=!0x0);return _0x348f51;}['noTrackChangesFixer'](_0x7d66bf){if(_0x7d66bf['batch']['isUndo']||!_0x7d66bf['batch']['isLocal'])return!0x1;const _0x36d373=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x36d373['trackChangesCommand']['value'])return!0x1;let _0x4a8e5d=!0x1;const _0x51231c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5ae45c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2cddf5=>'attribute'==_0x2cddf5['type'])['filter'](_0x474724=>_0x51231c['includes'](_0x474724['attributeKey']));if(0x0==_0x5ae45c['length'])return _0x4a8e5d;for(const _0x453f75 of _0x5ae45c){const _0x383baf=_0x36d373['_findSuggestions'](_0x453f75['range'],'attribute')['filter'](_0x24aa3c=>!_0x24aa3c['meta']['isNextTo'])['map'](_0x8a5f94=>_0x8a5f94['suggestion'])['filter'](_0x1c88cc=>{const _0x376eb7=_0x36d373['_getAttributeKey'](_0x1c88cc);return _0x51231c['includes'](_0x376eb7);});if(_0x383baf['length']){for(const _0x15d845 of _0x383baf)_0x7d66bf['removeMarker'](_0x15d845['getFirstMarker']());_0x4a8e5d=!0x0;}}return _0x4a8e5d;}['assureChains'](){const _0x570a1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38eb83=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x94019d;const _0x2478ec=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b9cf0=>{if(_0x1b9cf0['data']['oldRange']||!_0x1b9cf0['data']['newRange'])return null;if(!_0x1b9cf0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e9b37}=_0x570a1f['_splitMarkerName'](_0x1b9cf0['name']);if(!_0x570a1f['hasSuggestion'](_0x1e9b37))return null;const _0x21ee6c=_0x570a1f['getSuggestion'](_0x1e9b37);return _0x38eb83['includes'](_0x21ee6c['data']['key']);})['map'](_0x264767=>{const {id:_0x489c86}=_0x570a1f['_splitMarkerName'](_0x264767['name']),_0x6aade1=_0x570a1f['getSuggestion'](_0x489c86);return _0x94019d=_0x6aade1['attributes']['groupId'],_0x6aade1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2478ec['size'])return;const _0x582582=_0x570a1f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12f3bb=>'attribute'==_0x12f3bb['type']&&_0x12f3bb['data']&&_0x38eb83['includes'](_0x12f3bb['data']['key'])&&_0x12f3bb['attributes']['groupId']!=_0x94019d)['map'](_0x2bfbee=>({'listItem':_0x2bfbee['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2bfbee['attributes']['groupId']})),_0x2d04d1=new Set();for(const {groupId:_0x382922,listItem:_0x33ff8f}of _0x582582)_0x2478ec['has'](_0x33ff8f)&&_0x2d04d1['add'](_0x382922);for(const _0x748035 of _0x570a1f['getSuggestions']())_0x2d04d1['has'](_0x748035['attributes']['groupId'])&&_0x748035['setAttribute']('groupId',_0x94019d);}['_supportLegacySuggestions'](){const _0x1bcdae=this['editor'],_0x3f592d=_0x1bcdae['locale'],_0x3f58e1=_0x1bcdae['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3f58e1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x34fd3d,_0x4f5cdf){const _0x49124e=[];for(let _0x385b2b of _0x34fd3d)_0x385b2b['start']['nodeAfter']===_0x385b2b['end']['parent']&&(_0x385b2b=_0x1bcdae['model']['createRange'](_0x1bcdae['model']['createPositionAt'](_0x385b2b['start']['nodeAfter'],0x0))),_0x49124e['push'](_0x385b2b);_0x1bcdae['model']['change'](_0x83ee9=>{const _0x60073e=_0x1bcdae['model']['document']['selection'],_0x5cc318=Array['from'](_0x60073e['getRanges']())['map'](_0x186a32=>_0x5da18b['fromRange'](_0x186a32));_0x83ee9['setSelection'](_0x49124e),_0x1bcdae['commands']['get'](_0x4f5cdf['commandName'])['refresh'](),_0x4f5cdf['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1bcdae['execute'](_0x4f5cdf['commandName'],..._0x4f5cdf['commandParams']),_0x83ee9['setSelection'](_0x5cc318);for(const _0x34aefe of _0x5cc318)_0x34aefe['detach']();});}),_0x3f58e1['descriptionFactory']['registerElementLabel'](function(_0x103c51){const _0x4dd866=!_0x1bcdae['model']['schema']['isObject'](_0x103c51),_0x5ab3e2=_0x103c51['previousSibling'],_0x431d93=_0x103c51['nextSibling'],_0x3e7ba9=_0x103c51['getAttribute']('listItemId'),_0xa659f1=!_0x5ab3e2||_0x5ab3e2['getAttribute']('listItemId')!==_0x3e7ba9,_0x490f4b=!_0x431d93||_0x431d93['getAttribute']('listItemId')!==_0x3e7ba9;return _0x4dd866&&Boolean(_0x3e7ba9)&&_0xa659f1&&_0x490f4b;},_0x468c71=>o(_0x3f592d,'ELEMENT_LIST_ITEM',_0x468c71));}['_registerLegacyDescription'](){const _0x461f90=this['editor'],_0x563eea=_0x461f90['locale'];function _0x31e87a(_0x17b710){const _0x4dbb91=_0x461f90['commands']['get']('bulletedList')['value'],_0x5cb501=_0x461f90['commands']['get']('numberedList')['value'];return'numberedList'===_0x17b710?_0x4dbb91:_0x5cb501;}_0x461f90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49efeb){if('formatBlock'!=_0x49efeb['type'])return;const {data:_0x25d6bb}=_0x49efeb;if(!_0x25d6bb)return;let _0x3c5cc9,_0x1e30e1,_0xf8aa24,_0x489ca3;switch(_0x25d6bb['commandName']){case'bulletedList':_0xf8aa24=_0x25d6bb['commandParams'][0x0]['forceValue'],_0x489ca3=_0x31e87a(_0x25d6bb['commandName']),_0x3c5cc9=_0xf8aa24?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x489ca3&&_0x461f90['config']['get']('list.multiBlock')||(_0x3c5cc9='*Change\x20to:*\x20%0'),_0x1e30e1={'type':'format','content':o(_0x563eea,_0x3c5cc9,o(_0x563eea,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xf8aa24=_0x25d6bb['commandParams'][0x0]['forceValue'],_0x489ca3=_0x31e87a(_0x25d6bb['commandName']),_0x3c5cc9=_0xf8aa24?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x489ca3&&_0x461f90['config']['get']('list.multiBlock')||(_0x3c5cc9='*Change\x20to:*\x20%0'),_0x1e30e1={'type':'format','content':o(_0x563eea,_0x3c5cc9,o(_0x563eea,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3c5cc9='*Indent:*\x20%0',_0x1e30e1={'type':'format','content':o(_0x563eea,_0x3c5cc9,o(_0x563eea,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3c5cc9=function(_0x345637){const _0x687c76=_0x345637['getFirstRange']();let _0x219a96=_0x687c76['start']['nodeAfter'];for(;_0x219a96&&_0x687c76['containsItem'](_0x219a96);){if(_0x219a96['getAttribute']('listIndent')>0x0)return!0x1;_0x219a96=_0x219a96['nextSibling'];}return!0x0;}(_0x49efeb)?o(_0x563eea,'*Format:*\x20remove\x20from\x20%0',o(_0x563eea,function(_0x5e6dfe){return'ELEMENT_'+_0x5e6dfe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49efeb))):o(_0x563eea,'*Outdent:*\x20%0',o(_0x563eea,'ELEMENT_LIST_ITEM')),_0x1e30e1={'type':'format','content':_0x3c5cc9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x25d6bb['multipleBlocks']&&(_0x3c5cc9='*Merge:*\x20%0',_0x1e30e1={'type':'deletion','content':o(_0x563eea,_0x3c5cc9,o(_0x563eea,'ELEMENT_LIST_ITEM'))});}return _0x1e30e1;});}}function Ee(_0x7e8775){let _0x274e25=_0x7e8775['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x274e25;){const _0x3e4b0e=_0x274e25['getAttribute']('listItemId');if(!_0x3e4b0e)return!0x1;if(_0x3e4b0e==_0x7e8775['data']['newValue'])return'newValue';if(_0x3e4b0e==_0x7e8775['data']['oldValue'])return'oldValue';_0x274e25=_0x274e25['previousSibling'];}return!0x1;}class pe extends _0x254461{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3f178c=this['editor']['config']['get']('list.properties'),_0x2afec7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f178c['styles']&&(_0x2afec7['enableDefaultAttributesIntegration']('listStyle'),_0x2afec7['registerBlockAttribute']('listStyle')),_0x3f178c['reversed']&&(_0x2afec7['enableDefaultAttributesIntegration']('listReversed'),_0x2afec7['registerBlockAttribute']('listReversed')),_0x3f178c['startIndex']&&(_0x2afec7['enableDefaultAttributesIntegration']('listStart'),_0x2afec7['registerBlockAttribute']('listStart'));const _0x163c35={'type':'format','content':''};_0x2afec7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x8dcbad=this['editor']['locale'];_0x2afec7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x8dcbad,'FORMAT_LIST_REVERSED')),_0x2afec7['descriptionFactory']['registerDescriptionCallback'](_0x4c5f71=>{const {data:_0xd82478}=_0x4c5f71;if(_0xd82478&&'listReversed'==_0xd82478['key'])return null==_0xd82478['newValue']||0x0==_0xd82478['newValue']&&null==_0xd82478['oldValue']?_0x163c35:void 0x0;}),_0x2afec7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x8dcbad,'FORMAT_LIST_START')),_0x2afec7['descriptionFactory']['registerDescriptionCallback'](_0x711a4b=>{const {data:_0x7c6c22}=_0x711a4b;if(_0x7c6c22&&'listStart'==_0x7c6c22['key'])return null==_0x7c6c22['newValue']||0x1==_0x7c6c22['newValue']&&null==_0x7c6c22['oldValue']?_0x163c35:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f886b=>{if(_0x2f886b['batch']['isUndo'])return!0x1;let _0x54b57c=!0x1;const _0x3f0703=_0x2afec7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ef65e=>{const _0x3e215e=_0x2afec7['_getAttributeKey'](_0x5ef65e);return'listStart'==_0x3e215e||'listReversed'==_0x3e215e;});for(const _0x37fd47 of _0x3f0703){const _0x222dc5=_0x37fd47['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x222dc5||'customNumbered'==_0x222dc5)continue;_0x2afec7['_findSuggestions'](_0x37fd47['getFirstRange'](),'attribute')['find'](_0x427ab0=>'listType'==_0x2afec7['_getAttributeKey'](_0x427ab0['suggestion']))||(_0x2f886b['removeMarker'](_0x37fd47['getFirstMarker']()),_0x54b57c=!0x0);}return _0x54b57c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x49a17f){const _0x1e9b9d=this['editor']['locale'],{data:_0x37c57b}=_0x49a17f,_0x29411d={'type':'format','content':''};if(!_0x37c57b||'listStyle'!=_0x37c57b['key'])return;if(!_0x37c57b['oldValue'])return'default'==_0x37c57b['newValue']?_0x29411d:{'type':'format','content':''+o(_0x1e9b9d,'*Set\x20format:*\x20%0',o(_0x1e9b9d,this['_getTranslationKeyForListStyle'](_0x37c57b['newValue'])))};if(!_0x37c57b['newValue']){if('default'==_0x37c57b['oldValue'])return _0x29411d;let _0x1c933f=_0x49a17f['head'];for(;_0x1c933f;){if(_0x1c933f['data']&&'listType'==_0x1c933f['data']['key']&&_0x1c933f['data']['newValue'])return _0x29411d;_0x1c933f=_0x1c933f['next'];}return{'type':'format','content':''+o(_0x1e9b9d,'*Remove\x20format:*\x20%0',o(_0x1e9b9d,this['_getTranslationKeyForListStyle'](_0x37c57b['oldValue'])))};}if('default'!=_0x37c57b['newValue'])return{'type':'format','content':''+o(_0x1e9b9d,'*Set\x20format:*\x20%0',o(_0x1e9b9d,this['_getTranslationKeyForListStyle'](_0x37c57b['newValue'])))};let _0x333811=_0x49a17f['head'];for(;_0x333811;){if(_0x333811['data']&&'listType'==_0x333811['data']['key']&&_0x333811['data']['newValue']&&_0x333811['data']['oldValue'])return _0x29411d;_0x333811=_0x333811['next'];}return{'type':'format','content':o(_0x1e9b9d,'*Set\x20format:*\x20%0',o(_0x1e9b9d,'ELEMENT_'+_0x49a17f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3fdd0b=this['editor'],_0x5571c7=_0x3fdd0b['locale'];_0x3fdd0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bd9a5=>{if('formatBlock'!=_0x5bd9a5['type'])return;const {data:_0x5357cb}=_0x5bd9a5;if(!_0x5357cb)return;let _0x181f89,_0x153e85;switch(_0x5357cb['commandName']){case'listStyle':_0x181f89='*Change\x20to:*\x20%0',_0x153e85={'type':'format','content':o(_0x5571c7,_0x181f89,o(_0x5571c7,this['_getTranslationKeyForListStyle'](_0x5357cb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x181f89=_0x5357cb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x153e85={'type':'format','content':o(_0x5571c7,_0x181f89)};break;case'listStart':_0x181f89='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x153e85={'type':'format','content':o(_0x5571c7,_0x181f89,_0x5357cb['commandParams'][0x0]['startIndex'])};}return _0x153e85;});}['_getTranslationKeyForListStyle'](_0x390c54){return'ELEMENT_'+function(_0x48b832){if(ye['includes'](_0x48b832))return'bulleted';if(Se['includes'](_0x48b832))return'numbered';return null;}(_0x390c54)['toUpperCase']()+'_LIST_'+_0x390c54['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x254461{static get['requires'](){return[_0x57cffd];}['init'](){const _0x3b8285=this['editor'],_0x132647=_0x3b8285['plugins']['get']('TrackChangesEditing'),_0x434e51=_0x3b8285['commands']['get']('enter');_0x132647['enableCommand']('enter',()=>{_0x3b8285['model']['change'](_0x52980e=>{const _0x17175c=_0x3b8285['model']['document']['selection'],_0x30cac5=_0x17175c['getFirstPosition'](),_0x3a80dc=_0x5da18b['fromRange'](_0x17175c['getFirstRange']());if(_0x434e51['enterBlock'](_0x52980e)){const _0x51d737=_0x3b8285['model']['createPositionAt'](_0x30cac5['parent']['nextSibling'],0x0),_0x3c07d3=_0x52980e['createRange'](_0x30cac5,_0x51d737);_0x132647['markInsertion'](_0x3c07d3);}else _0x52980e['setSelection'](_0x52980e['createRange'](_0x3a80dc['end']));_0x3a80dc['detach'](),_0x434e51['fire']('afterExecute',{'writer':_0x52980e});});}),_0x3b8285['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3b8285,'split'),{'priority':'high'}),_0x3b8285['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2d4de2,_0x533e95,_0x18f7a1)=>{const _0x280db2=_0x18f7a1['mapper']['markerNameToElements'](_0x533e95['markerName']);if(_0x280db2){for(const _0x293d6d of _0x280db2)_0x293d6d['hasClass']('ck-suggestion-marker-split')&&(_0x18f7a1['mapper']['unbindElementFromMarkerName'](_0x293d6d,_0x533e95['markerName']),_0x18f7a1['writer']['remove'](_0x293d6d));}},{'priority':'high'}),_0x3b8285['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16c53a,_0xf73a,_0xf94cb5)=>{_0xf94cb5['options']['showSuggestionHighlights']&&_e(_0x3b8285,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x16c53a,_0xf73a,_0xf94cb5);},{'priority':'high'});}}class X extends _0x254461{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1700c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1700c1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1700c1['enableCommand']('findNext'),_0x1700c1['enableCommand']('findPrevious'),_0x1700c1['enableCommand']('replace'),_0x1700c1['enableCommand']('replaceAll');}['handleFindCommand'](_0x1ff9c2,_0xdfae8c,_0x466050={}){const _0x155892=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1ff9c2(_0x391008=>{let _0x37bf85=('string'==typeof _0xdfae8c?_0x155892['findByTextCallback'](_0xdfae8c,_0x466050):_0xdfae8c)(_0x391008);Array['isArray'](_0x37bf85)&&(_0x37bf85={'results':_0x37bf85,'searchText':'string'==typeof _0xdfae8c?_0xdfae8c:''});const _0x3fc7c1=_0x37bf85['results']['filter'](_0x8e1334=>!0x1===this['_isInDeletionRange'](_0x8e1334,_0x391008['item']));return{..._0x37bf85,'results':_0x3fc7c1};},_0x466050);}['_isInDeletionRange'](_0x2f0470,_0x3fc89a){const _0x6bd02d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3fc89a,_0x2f0470['start']),this['editor']['model']['createPositionAt'](_0x3fc89a,_0x2f0470['end']));for(const _0x49f99f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x6bd02d['getIntersection'](_0x49f99f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x254461{['afterInit'](){const _0x5a0a4a=this['editor']['locale'],_0x51b920=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2429ae,commandName:_0x3a20a6}of ro)this['editor']['plugins']['has'](_0x2429ae)&&(_0x51b920['enableDefaultAttributesIntegration'](_0x3a20a6),_0x51b920['registerInlineAttribute'](_0x3a20a6));_0x51b920['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5a0a4a,'FORMAT_FONT_SIZE')),_0x51b920['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5a0a4a,'FORMAT_FONT_FAMILY')),_0x51b920['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5a0a4a,'FORMAT_FONT_COLOR')),_0x51b920['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5a0a4a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa34d61=this['editor'],_0x202283=_0xa34d61['locale'];_0xa34d61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2827dd=>{const _0x59e085=_0x202283['t'];if('formatInline'!=_0x2827dd['type'])return;const {data:_0xd6162c}=_0x2827dd;if(null!=_0xd6162c){if('fontSize'==_0xd6162c['commandName']){const _0xc8b68d=_0xd6162c['commandParams'][0x0]['value'];if(_0xc8b68d){const _0x7faaed=_0x59e085(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4b48ce=>_0x4b48ce['model']==_0xc8b68d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x202283,'*Set\x20font\x20size:*\x20%0',_0x7faaed)};}return{'type':'format','content':o(_0x202283,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xd6162c['commandName']){const _0x2f159b=_0xd6162c['commandParams'][0x0]['value'];return _0x2f159b?{'type':'format','content':o(_0x202283,'*Set\x20font\x20family:*\x20%0',_0x2f159b)}:{'type':'format','content':o(_0x202283,'*Reset\x20font\x20family*')};}if('fontColor'==_0xd6162c['commandName']){const _0x4131ac=_0xd6162c['commandParams'][0x0]['value'];if(_0x4131ac){const _0x39c366=_0x6e5de0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3f75f2=>_0x3f75f2['model']==_0x4131ac);let _0x4878f1=_0x4131ac,_0x4ee418='';return _0x39c366&&(_0x4878f1=_0x39c366['label'],_0x4ee418=_0x59e085(_0x4878f1)['toLowerCase']()),{'type':'format','content':o(_0x202283,'*Set\x20font\x20color:*\x20%0',_0x4ee418)['trim'](),'color':{'value':_0x4131ac,'title':_0x4ee418||_0x4878f1}};}return{'type':'format','content':o(_0x202283,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xd6162c['commandName']){const _0x22b0d8=_0xd6162c['commandParams'][0x0]['value'];if(_0x22b0d8){const _0x2bd58a=_0x6e5de0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x43ad9c=>_0x43ad9c['model']==_0x22b0d8);let _0x794ad6=_0x22b0d8,_0xbd0d63='';return _0x2bd58a&&(_0x794ad6=_0x2bd58a['label'],_0xbd0d63=_0x59e085(_0x794ad6)['toLowerCase']()),{'type':'format','content':o(_0x202283,'*Set\x20font\x20background\x20color:*\x20%0',_0xbd0d63)['trim'](),'color':{'value':_0x22b0d8,'title':_0xbd0d63||_0x794ad6}};}return{'type':'format','content':o(_0x202283,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x254461{['afterInit'](){const _0x274b2e=this['editor'],_0x4b485d=_0x274b2e['plugins']['get']('TrackChangesEditing'),_0x236838=_0x274b2e['commands']['get']('copyFormat'),_0x327527=_0x274b2e['commands']['get']('pasteFormat');_0x236838&&_0x327527&&(_0x4b485d['enableDefaultAttributesIntegration']('pasteFormat'),_0x4b485d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4285eb=this['editor'],_0x31ad78=_0x4285eb['locale'];_0x4285eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bcd93=>{if('formatBlock'!=_0x4bcd93['type']&&'formatInline'!=_0x4bcd93['type'])return;const {data:_0x4116f9}=_0x4bcd93;if(_0x4116f9&&'pasteFormat'===_0x4116f9['commandName']){const _0x53a70f=[],_0x438e17=_0x4116f9['commandParams'][0x0];for(const [_0xe1c9ed,_0x5aa013]of Object['entries'](_0x438e17))_0x53a70f['push'](so(_0x4285eb,_0xe1c9ed,_0x5aa013));return _0x53a70f['length']?{'type':'format','content':o(_0x31ad78,'*Set\x20format\x20to:*\x20%0',_0x53a70f['join'](',\x20'))}:{'type':'format','content':o(_0x31ad78,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4926a6,_0x3cac17,_0x2aaa4b){const _0x38cf71=_0x4926a6['locale']['t'],_0x537613=_0x3cac17['split'](/(?=[A-Z])/)['join']('\x20'),_0x303e7e=_0x38cf71(_0x537613['charAt'](0x0)['toUpperCase']()+_0x537613['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2aaa4b)return _0x303e7e;if('fontColor'===_0x3cac17||'fontBackgroundColor'===_0x3cac17){const _0x4116b2=_0x6e5de0(_0x4926a6['config']['get']('fontColor.colors'))['find'](_0x44326f=>_0x44326f['model']==_0x2aaa4b);return _0x303e7e+'\x20('+(_0x4116b2?_0x38cf71(_0x4116b2['label'])['toLowerCase']():_0x2aaa4b)+')';}if('fontSize'===_0x3cac17&&isNaN(parseFloat(_0x2aaa4b))){const _0x5e28ac=_0x4926a6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4926a6['config']['get']('fontSize.options'))['find'](_0x164b59=>_0x164b59['model']==_0x2aaa4b);return _0x303e7e+'\x20('+(_0x5e28ac?_0x38cf71(_0x5e28ac['title'])['toLowerCase']():_0x2aaa4b)+')';}return _0x303e7e+'\x20('+_0x2aaa4b+')';}class tt extends _0x254461{['_headingOptions'];['afterInit'](){const _0x314b11=this['editor'];if(!_0x314b11['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x314b11['config']['get']('heading.options');const _0x5ef6d0=_0x314b11['locale'],_0x51b070=_0x314b11['plugins']['get']('TrackChangesEditing');_0x51b070['enableDefaultAttributesIntegration']('heading');for(const _0x4aaee3 of this['_headingOptions'])'paragraph'!=_0x4aaee3['model']&&_0x51b070['descriptionFactory']['registerElementLabel'](_0x4aaee3['model'],_0x3fab7d=>{const _0x4ad119=this['_getHeadingLevel'](_0x4aaee3['model']);return null!==_0x4ad119?_0x5f1e2e(_0x3fab7d,_0x4ad119):_0x54ed17(_0x3fab7d,_0x4aaee3['title']);});function _0x5f1e2e(_0x123474,_0x13a0e2){return o(_0x5ef6d0,'ELEMENT_HEADING',[_0x123474,_0x13a0e2]);}function _0x54ed17(_0x1d5e2d,_0x573f7b){return o(_0x5ef6d0,'ELEMENT_HEADING_CUSTOM',[_0x1d5e2d,_0x573f7b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce848=this['editor'],_0x221ccb=_0x4ce848['locale'];function _0x1c68f6(_0x4d7ec2,_0x456cb1){return o(_0x221ccb,'ELEMENT_HEADING_CUSTOM',[_0x4d7ec2,_0x456cb1]);}_0x4ce848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba5f8c=>{if('formatBlock'!=_0xba5f8c['type'])return;const {data:_0x48b497}=_0xba5f8c;if(_0x48b497&&'heading'==_0x48b497['commandName']){const _0x5a0a06=_0x48b497['commandParams'][0x0]['value'],_0x36988c=this['_getHeadingLevel'](_0x5a0a06);if(null!==_0x36988c)return{'type':'format','content':o(_0x221ccb,'*Change\x20to:*\x20%0',(_0x5739b2=0x1,_0x260035=_0x36988c,o(_0x221ccb,'ELEMENT_HEADING',[_0x5739b2,_0x260035])))};const _0xa3df2a=this['_headingOptions']['find'](_0x3c4420=>_0x3c4420['model']===_0x5a0a06)['title'];return{'type':'format','content':o(_0x221ccb,'*Change\x20to:*\x20%0',_0x1c68f6(0x1,_0xa3df2a))};}var _0x5739b2,_0x260035;});}['_getHeadingLevel'](_0x4e417b){const _0x561d70=_0x4e417b['match'](/^heading(\d+)/);if(_0x561d70)return _0x561d70[0x1];const _0x2e936d=this['_headingOptions']?.['find'](_0x33d3d3=>_0x33d3d3['model']==_0x4e417b);if(_0x2e936d&&_0x2e936d['view']){const _0x183ea1=_0x2e936d['view'],_0x468d09=(_0x183ea1['name']??_0x183ea1)['match'](/^h(\d+)/);if(_0x468d09)return _0x468d09[0x1];}return null;}}class et extends _0x254461{['afterInit'](){const _0x4fa55c=this['editor'];if(!_0x4fa55c['plugins']['has']('HighlightEditing'))return;const _0x4360c9=_0x4fa55c['plugins']['get']('TrackChangesEditing'),_0x2d659c=_0x4fa55c['locale'];_0x4360c9['enableDefaultAttributesIntegration']('highlight'),_0x4360c9['registerInlineAttribute']('highlight'),_0x4360c9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2d659c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1486b6=this['editor'],_0x46b1c7=_0x1486b6['locale'];_0x1486b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7d00=>{if('formatInline'!=_0x4f7d00['type'])return;const {data:_0x28359e}=_0x4f7d00;if(_0x28359e&&'highlight'==_0x28359e['commandName']){const _0x42e4f7=_0x46b1c7['t'],_0x2619b0=_0x28359e['commandParams'][0x0]['value'];if(_0x2619b0){const _0x3dc080=_0x1486b6['config']['get']('highlight.options')['find'](_0x135690=>_0x135690['model']==_0x2619b0),_0x1a647f=_0x42e4f7(_0x3dc080['title'])['toLowerCase']();return{'type':'format','content':o(_0x46b1c7,'*Set\x20highlight:*\x20%0',_0x1a647f),'color':{'value':_0x3dc080['color'],'title':_0x3dc080['title']}};}return{'type':'format','content':o(_0x46b1c7,'*Remove\x20highlight*',o(_0x46b1c7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x254461{['afterInit'](){const _0x38152a=this['editor'];if(!_0x38152a['plugins']['has']('HorizontalLineEditing'))return;_0x38152a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x123104=_0x38152a['plugins']['get']('TrackChangesEditing'),_0x4d03b3=_0x38152a['locale'];_0x123104['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1a8d01=>o(_0x4d03b3,'ELEMENT_HORIZONTAL_LINE',_0x1a8d01)),_0x38152a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5758b3,{writer:_0x36be78,options:_0x4374b0})=>{if(!_0x4374b0['showSuggestionHighlights'])return null;const _0x1a157c=_0x36be78['createContainerElement']('div'),_0x58ec89=_0x36be78['createEmptyElement']('hr');return _0x36be78['addClass']('ck-horizontal-line',_0x1a157c),_0x36be78['insert'](_0x36be78['createPositionAt'](_0x1a157c,0x0),_0x58ec89),_0x1a157c;},'converterPriority':'high'});}}class st extends _0x254461{['afterInit'](){const _0x468293=this['editor'];if(!_0x468293['plugins']['has']('HtmlEmbed'))return;const _0x4e4cbf=_0x468293['plugins']['get']('TrackChangesEditing'),_0x451888=_0x468293['locale'];_0x4e4cbf['descriptionFactory']['registerElementLabel']('rawHtml',_0x35cf3d=>o(_0x451888,'ELEMENT_HTML_EMBED',_0x35cf3d)),_0x4e4cbf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4e4cbf['registerBlockAttribute']('value'),_0x4e4cbf['descriptionFactory']['registerDescriptionCallback'](_0x2ddd20=>{if('attribute'!=_0x2ddd20['type'])return;const {data:_0x528dde}=_0x2ddd20;if(_0x528dde&&'value'==_0x528dde['key']&&_0x2ddd20['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2cf518=o(_0x451888,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x451888,'*Change\x20%0\x20content*',_0x2cf518)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4033a3=this['editor'],_0x4a2b96=_0x4033a3['locale'];_0x4033a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7104b9=>{if('formatBlock'!=_0x7104b9['type'])return;const {data:_0xe73c79}=_0x7104b9;if(_0xe73c79&&'htmlEmbed'==_0xe73c79['commandName']){const _0x23a63b=o(_0x4a2b96,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a2b96,'*Change\x20%0\x20content*',_0x23a63b)};}});}}class nt extends _0x254461{['afterInit'](){const _0x48ce57=this['editor'];if(!_0x48ce57['plugins']['has']('ImageEditing'))return;const _0x2ba3ef=_0x48ce57['plugins']['get']('TrackChangesEditing'),_0x423dbc=_0x48ce57['plugins']['get']('ImageUtils'),_0x44b206=_0x48ce57['locale'];_0x2ba3ef['enableCommand']('insertImage'),_0x2ba3ef['descriptionFactory']['registerElementLabel']('imageBlock',_0x93fd7a=>o(_0x44b206,'ELEMENT_IMAGE',_0x93fd7a)),_0x2ba3ef['descriptionFactory']['registerElementLabel']('imageInline',_0x475773=>o(_0x44b206,'ELEMENT_INLINE_IMAGE',_0x475773)),_0x2ba3ef['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x44b206,'ELEMENT_CAPTION')),_0x48ce57['plugins']['has']('ImageUploadEditing')&&_0x2ba3ef['enableCommand']('uploadImage'),_0x48ce57['plugins']['has']('ImageBlockEditing')&&_0x48ce57['plugins']['has']('ImageInlineEditing')&&(_0x2ba3ef['enableCommand']('imageTypeInline',(_0x472675,_0x33b771)=>{const _0x1d8d9d=_0x423dbc['getClosestSelectedImageElement'](_0x48ce57['model']['document']['selection']);_0x48ce57['model']['change'](()=>{_0x2ba3ef['markBlockFormat'](_0x1d8d9d,{'commandName':'imageTypeInline','commandParams':[_0x33b771]},[],'convertBlockImageToInline');});}),_0x2ba3ef['enableCommand']('imageTypeBlock',(_0x192455,_0x334669)=>{_0x48ce57['model']['change'](_0x4fc98c=>{let _0x13d409=_0x423dbc['getClosestSelectedImageElement'](_0x48ce57['model']['document']['selection']),_0x40e6e9=_0x4fc98c['createRangeOn'](_0x13d409);const _0x8d8f65=_0xcc9591['fromPosition'](_0x40e6e9['start'],'toPrevious'),_0x1fa546=_0xcc9591['fromPosition'](_0x40e6e9['end'],'toNext');_0x2ba3ef['forceDefaultExecution'](()=>_0x192455(_0x334669)),_0x13d409=_0x423dbc['getClosestSelectedImageElement'](_0x48ce57['model']['document']['selection']),_0x40e6e9=_0x4fc98c['createRangeOn'](_0x13d409);const _0xd0d335=_0x4fc98c['createRange'](_0x8d8f65,_0x1fa546);_0x8d8f65['detach'](),_0x1fa546['detach'](),_0x2ba3ef['markBlockFormat'](_0x13d409,{'commandName':'imageTypeInline','commandParams':[_0x334669]},[],'convertInlineImageToBlock'),_0xd0d335['start']['isBefore'](_0x40e6e9['start'])&&_0x2ba3ef['markInsertion'](_0x4fc98c['createRange'](_0xd0d335['start'],_0x40e6e9['start']),'convertInlineImageToBlock'),_0x40e6e9['end']['isBefore'](_0xd0d335['end'])&&_0x2ba3ef['markInsertion'](_0x4fc98c['createRange'](_0x40e6e9['end'],_0xd0d335['end']),'convertInlineImageToBlock');});}),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2ba3ef['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x50faf6])=>{const _0x327619=_0x2ba3ef['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x24085e=_0x50faf6['start'],_0x360dd5=_0x50faf6['end'];const _0x50ed8c=_0x48ce57['model']['schema']['getNearestSelectionRange'](_0x24085e,'backward'),_0x1f2f8e=_0x48ce57['model']['schema']['getNearestSelectionRange'](_0x360dd5,'forward');_0x50ed8c['isCollapsed']&&(_0x24085e=_0x50ed8c['start']),_0x1f2f8e['isCollapsed']&&(_0x360dd5=_0x1f2f8e['end']),_0x327619([_0x48ce57['model']['createRange'](_0x24085e,_0x360dd5)]);}),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd9c186),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd9c186)),_0x48ce57['plugins']['has']('ImageCaptionEditing')&&(_0x2ba3ef['enableCommand']('toggleImageCaption',(_0x2177a0,_0x251be7)=>{const _0x3f727a=_0x48ce57['plugins']['get']('ImageCaptionUtils');let _0x21d952=_0x423dbc['getClosestSelectedImageElement'](_0x48ce57['model']['document']['selection']),_0x1859fa=_0x3f727a['getCaptionFromImageModelElement'](_0x21d952);_0x48ce57['model']['change'](()=>{if(_0x1859fa)return void _0x2ba3ef['markDeletion'](_0x48ce57['model']['createRangeOn'](_0x1859fa));const _0x15c91a=_0x423dbc['isBlockImage'](_0x21d952);_0x2177a0(_0x251be7),_0x21d952=_0x423dbc['getClosestSelectedImageElement'](_0x48ce57['model']['document']['selection']),_0x1859fa=_0x3f727a['getCaptionFromImageModelElement'](_0x21d952),_0x2ba3ef['markInsertion'](_0x48ce57['model']['createRangeOn'](_0x1859fa),_0x15c91a?null:'imageCaption');});}),_0x2ba3ef['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd9c186));const _0x2b9312=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7bd056(_0x5bd3b2,_0x599439){const _0x2b22b4=_0x2b9312['findIndex'](({type:_0x49ebef,subType:_0x52584c})=>_0x5bd3b2['type']==_0x49ebef&&_0x5bd3b2['subType']==_0x52584c),_0x5f18ec=_0x2b9312['findIndex'](({type:_0x4fb956,subType:_0x170f93})=>_0x599439['type']==_0x4fb956&&_0x599439['subType']==_0x170f93);if(_0x2b22b4<0x0||_0x5f18ec<0x0)return!0x1;const _0x501c82=_0x5bd3b2['getFirstRange'](),_0x589a4b=_0x599439['getFirstRange']();if((0x0==_0x2b22b4||0x1==_0x2b22b4)&&0x2==_0x5f18ec&&_0x501c82['isIntersecting'](_0x589a4b))return!0x0;if(0x2==_0x2b22b4&&0x3==_0x5f18ec){const _0x55fb86=_0x2ba3ef['_findSuggestions'](_0x501c82,'insertion')['filter'](({suggestion:_0x5cecb1,meta:_0x2eb4a3})=>_0x2eb4a3['isOwn']&&'convertInlineImageToBlock'==_0x5cecb1['subType']);if(_0x55fb86['length']>0x1&&_0x589a4b['end']['isEqual'](_0x501c82['start']))return!0x0;if(0x1==_0x55fb86['length']&&(_0x501c82['start']['isEqual'](_0x589a4b['end'])||_0x501c82['end']['isEqual'](_0x589a4b['start'])))return!0x0;}if(0x3==_0x2b22b4&&0x3==_0x5f18ec&&_0x501c82['start']['isBefore'](_0x589a4b['start'])){const _0x2a573b=_0x501c82['end']['nodeAfter'],_0x22c339=_0x589a4b['start']['nodeBefore'];return _0x423dbc['isBlockImage'](_0x2a573b)&&_0x2a573b===_0x22c339;}return!0x1;}function _0xd9c186(_0x2f5b52,_0x134c28){return _0x7bd056(_0x2f5b52,_0x134c28)?[_0x2f5b52,_0x134c28]:_0x7bd056(_0x134c28,_0x2f5b52)?[_0x134c28,_0x2f5b52]:null;}_0x48ce57['plugins']['has']('ImageResize')&&(_0x2ba3ef['enableDefaultAttributesIntegration']('resizeImage'),_0x2ba3ef['registerBlockAttribute']('resizedWidth'),_0x2ba3ef['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x44b206,'FORMAT_IMAGE_SIZE'))),_0x48ce57['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2ba3ef['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2ba3ef['registerBlockAttribute']('alt')),_0x2ba3ef['descriptionFactory']['registerDescriptionCallback'](_0x328596=>{if(!!_0x2b9312['find'](({type:_0x41d952,subType:_0x3dbc53})=>_0x328596['type']==_0x41d952&&_0x328596['subType']==_0x3dbc53))return _0x328596['previous']?{}:void 0x0;}),_0x2ba3ef['descriptionFactory']['registerDescriptionCallback'](_0x567276=>{if('insertion'==_0x567276['type']||'deletion'==_0x567276['type']){const _0x374f09=_0x567276['getContainedElement']();if(_0x374f09&&_0x374f09['is']('element','caption'))return{'type':'insertion'==_0x567276['type']?'addObject':'removeObject','element':_0x374f09,'quantity':0x1};}}),_0x2ba3ef['descriptionFactory']['registerDescriptionCallback'](_0x20c031=>'formatBlock'==_0x20c031['type']&&'convertInlineImageToBlock'==_0x20c031['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x20c031['type']&&'convertBlockImageToInline'==_0x20c031['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2ba3ef['descriptionFactory']['registerDescriptionCallback'](_0x395a38=>{if('attribute'!=_0x395a38['type'])return;const {data:_0x58067f}=_0x395a38;if(!_0x58067f||'alt'!=_0x58067f['key'])return;const _0x565fef=_0x58067f['newValue'];return _0x565fef?{'type':'format','content':o(_0x44b206,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x565fef+'\x22')}:{'type':'format','content':o(_0x44b206,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d51fc=this['editor'],_0x574ff4=_0x1d51fc['locale'];_0x1d51fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6d16=>{if('formatBlock'!=_0x4b6d16['type']&&'formatInline'!=_0x4b6d16['type'])return;const {data:_0x37806b}=_0x4b6d16;if(_0x37806b){if('imageTextAlternative'==_0x37806b['commandName']){const _0x3d429c=_0x37806b['commandParams'][0x0]['newValue'];return _0x3d429c?{'type':'format','content':o(_0x574ff4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d429c+'\x22')}:{'type':'format','content':o(_0x574ff4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37806b['commandName']){const _0x1f8fc9=_0x37806b['commandParams'][0x0]['width'];return _0x1f8fc9?{'type':'format','content':o(_0x574ff4,'*Set\x20image\x20width:*\x20%0',_0x1f8fc9)}:{'type':'format','content':o(_0x574ff4,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x254461{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa3360e=this['editor']['locale'],_0x69c94c=this['editor']['plugins']['get']('TrackChangesEditing');_0x69c94c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x69c94c['registerBlockAttribute']('src'),_0x69c94c['descriptionFactory']['registerDescriptionCallback'](_0x3c7883=>{if('attribute'!=_0x3c7883['type'])return;const {data:_0x50fb86}=_0x3c7883;return _0x50fb86&&'src'==_0x50fb86['key']?_0x50fb86['newValue']&&_0x50fb86['oldValue']?{'type':'format','content':o(_0xa3360e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xceed91=this['editor']['plugins']['get']('TrackChangesEditing');_0xceed91['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xceed91['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xceed91['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xceed91['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x513a5f=this['editor'],_0x1b57d3=_0x513a5f['locale'];_0x513a5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bafef=>{if('formatBlock'!=_0x1bafef['type']&&'formatInline'!=_0x1bafef['type'])return;const {data:_0x1d0e5f}=_0x1bafef;if(!_0x1d0e5f||'replaceImageSource'!=_0x1d0e5f['commandName'])return;return{'type':'format','content':o(_0x1b57d3,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x254461{['afterInit'](){const _0x5670b9=this['editor'];if(!_0x5670b9['plugins']['has']('ImageStyleEditing'))return;const _0x1a1ca2=_0x5670b9['plugins']['get']('TrackChangesEditing'),_0x6e4201=_0x5670b9['plugins']['get']('ImageUtils'),_0x1f8ec5={};_0x1a1ca2['enableCommand']('imageStyle',(_0x414e6b,_0x3449a3)=>{const _0x1c632f=_0x5670b9['plugins']['get']('Users')['me'],_0x1edc7c=_0x5670b9['commands']['get']('imageStyle');let _0x46f231=_0x6e4201['getClosestSelectedImageElement'](_0x5670b9['model']['document']['selection']),_0x41db7a=_0x5670b9['model']['createRangeOn'](_0x46f231),_0x56c943=_0x1edc7c['value'];if(_0x56c943==_0x3449a3['value'])return;const _0x2ce9e1={'commandName':'imageStyle','commandParams':[_0x3449a3],'formatGroupId':_0x461dff()};_0x5670b9['model']['change'](()=>{if(_0x1a1ca2['getSuggestions']()['filter'](_0x1373a3=>_0x1373a3['isInContent']&&_0x1c632f==_0x1373a3['author']&&('formatBlock'==_0x1373a3['type']||'formatInline'==_0x1373a3['type'])&&('imageStylePreApply'==_0x1373a3['subType']||'imageStylePostApply'==_0x1373a3['subType'])&&_0x1373a3['getFirstRange']()['isEqual'](_0x41db7a))['forEach'](_0x4fea5d=>_0x1a1ca2['discardSuggestion'](_0x4fea5d['head'])),_0x46f231=_0x6e4201['getClosestSelectedImageElement'](_0x5670b9['model']['document']['selection']),_0x41db7a=_0x5670b9['model']['createRangeOn'](_0x46f231),_0x1edc7c['refresh'](),_0x5670b9['commands']['get']('imageTypeInline')['refresh'](),_0x5670b9['commands']['get']('imageTypeBlock')['refresh'](),_0x56c943=_0x1edc7c['value'],_0x56c943!=_0x3449a3['value'])return _0x6e4201['isInlineImage'](_0x46f231)&&_0x1edc7c['shouldConvertImageType'](_0x3449a3['value'],_0x46f231)?(_0x414e6b({..._0x3449a3,'setImageSizes':!0x1}),_0x46f231=_0x6e4201['getClosestSelectedImageElement'](_0x5670b9['model']['document']['selection']),void _0x1a1ca2['markBlockFormat'](_0x46f231,{..._0x2ce9e1,'commandReversedParams':[{'value':_0x56c943||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6e4201['isBlockImage'](_0x46f231)?_0x1a1ca2['markBlockFormat'](_0x46f231,_0x2ce9e1,[],'imageStylePostApply'):_0x1a1ca2['markInlineFormat'](_0x41db7a,_0x2ce9e1,'imageStylePostApply'));});});for(const _0x26c1e0 of _0x5670b9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f8ec5[_0x26c1e0['name']]=_0x26c1e0['title']['toLowerCase']();_0x1a1ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a1ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a1ca2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a1ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xa259a3])=>{_0x6e4201['setImageNaturalSizeAttributes'](_0xa259a3['getContainedElement']());}),_0x1a1ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x32da44,_0x4c96a7)=>{_0x1a1ca2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x32da44,{'commandName':_0x4c96a7['commandName'],'commandParams':_0x4c96a7['commandReversedParams']});}),_0x1a1ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xd2f068,_0xb05cc3){if(_0x395205(_0xd2f068,_0xb05cc3))return[_0xd2f068,_0xb05cc3];if(_0x395205(_0xb05cc3,_0xd2f068))return[_0xb05cc3,_0xd2f068];return null;});const _0x4a71ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x395205(_0x5975b7,_0x5b6455){const _0x20dc9c=_0x4a71ca['findIndex'](({type:_0x33384f,subType:_0x50dbfd})=>_0x5975b7['type']==_0x33384f&&_0x5975b7['subType']==_0x50dbfd),_0x2d330c=_0x4a71ca['findIndex'](({type:_0x4f7dbe,subType:_0x4cdd1f})=>_0x5b6455['type']==_0x4f7dbe&&_0x5b6455['subType']==_0x4cdd1f);if(_0x20dc9c<0x0||_0x2d330c<0x0)return!0x1;const _0x479560=_0x5975b7['getFirstRange'](),_0x4234e4=_0x5b6455['getFirstRange']();if((0x0==_0x20dc9c||0x1==_0x20dc9c)&&0x2==_0x2d330c&&_0x479560['isIntersecting'](_0x4234e4))return!0x0;if(0x2==_0x20dc9c&&0x3==_0x2d330c){const _0x176869=_0x1a1ca2['_findSuggestions'](_0x479560,'insertion')['filter'](({suggestion:_0x5a68e4,meta:_0x91476d})=>_0x91476d['isOwn']&&'convertInlineImageToBlock'==_0x5a68e4['subType']);if(_0x176869['length']>0x1&&_0x4234e4['end']['isEqual'](_0x479560['start']))return!0x0;if(0x1==_0x176869['length']&&(_0x479560['start']['isEqual'](_0x4234e4['end'])||_0x479560['end']['isEqual'](_0x4234e4['start'])))return!0x0;}if(0x3==_0x20dc9c&&0x3==_0x2d330c&&_0x479560['start']['isBefore'](_0x4234e4['start'])){const _0x42fcc9=_0x479560['end']['nodeAfter'],_0x597be6=_0x4234e4['start']['nodeBefore'];return _0x6e4201['isBlockImage'](_0x42fcc9)&&_0x42fcc9===_0x597be6;}return!0x1;}_0x5670b9['model']['document']['registerPostFixer'](()=>{let _0x152aae=!0x1;const _0x35f858=Array['from'](_0x5670b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d337,data:_0x59f0a1}of _0x35f858){const {group:_0x4d88b4,type:_0xe0b1a5,subType:_0x4c010b,id:_0x20dc50}=_0x1a1ca2['_splitMarkerName'](_0x2d337);if('suggestion'==_0x4d88b4&&_0x1a1ca2['hasSuggestion'](_0x20dc50)){if('formatBlock'==_0xe0b1a5&&('imageStylePreApply'==_0x4c010b||'imageStylePostApply'==_0x4c010b)){const _0x4ba49b=_0x1a1ca2['getSuggestion'](_0x20dc50);if(_0x59f0a1['newRange']){const _0x258ce1=_0x4ba49b['getFirstRange']()['getContainedElement']();if(_0x6e4201['isBlockImage'](_0x258ce1))continue;_0x1a1ca2['discardSuggestion'](_0x4ba49b),_0x152aae=!0x0;}}if('insertion'==_0xe0b1a5&&'imageCaption'==_0x4c010b&&!_0x59f0a1['newRange']){const _0xed5aa3=_0x1a1ca2['getSuggestion'](_0x20dc50);_0xed5aa3['next']&&_0xed5aa3['next']['isInContent']&&(_0x1a1ca2['discardSuggestion'](_0xed5aa3['next']),_0x152aae=!0x0);}}}return _0x152aae;}),this['_registerLegacyDescription'](_0x1f8ec5);}['_registerLegacyDescription'](_0x47b569){const _0x2ee9e4=this['editor'],_0x50781a=_0x2ee9e4['locale'];_0x2ee9e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a251=>{if('formatBlock'!=_0x32a251['type']&&'formatInline'!=_0x32a251['type'])return;const {data:_0x1aa1eb}=_0x32a251;if(!_0x1aa1eb||'imageStyle'!=_0x1aa1eb['commandName'])return;const _0x24db5c=_0x1aa1eb['commandParams'][0x0]['value'];return _0x4cef24('side'===_0x24db5c?o(_0x50781a,'FORMAT_SIDE_IMAGE'):_0x47b569[_0x24db5c]||_0x24db5c);function _0x4cef24(_0x5ca657){return{'type':'format','content':o(_0x50781a,'*Format:*\x20%0',_0x5ca657)};}});}}class at extends _0x254461{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x32b468){super(_0x32b468),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x337b93=this['editor'],_0x130fa0=_0x337b93['commands']['get']('importWord'),_0x54e6ab=_0x337b93['commands']['get']('trackChanges');_0x130fa0&&(_0x130fa0['on']('execute',(_0x25fad6,[,_0x170df4])=>{this['_trackChangesValueDuringImport']=_0x54e6ab['value'],_0x170df4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x130fa0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x130fa0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54e6ab['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x337b93['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x31a486,_0x3d2523){const {suggestions:_0x5b3397}=_0x3d2523,_0x48ba3e=this['editor']['commands']['get']('trackChanges'),_0x2cbd96=_0x48ba3e['value'];this['_trackChangesValueDuringImport']!==_0x2cbd96&&(_0x48ba3e['execute'](),this['_trackChangesExecuted']=!0x0),_0x5b3397&&_0x5b3397['forEach'](({id:_0x53c5dc,type:_0x18b7f6,author:_0x576b75,created_at:_0x2ebe03})=>{const _0xde1124={'id':_0x53c5dc,'type':_0x18b7f6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x576b75,'createdAt':_0x2ebe03?new Date(_0x2ebe03):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xde1124);});}}class ct extends _0x254461{['afterInit'](){const _0x22ab5a=this['editor'],_0x2ada86=_0x22ab5a['plugins']['get']('TrackChangesEditing');if(_0x22ab5a['plugins']['has']('IndentEditing')&&(_0x2ada86['enableCommand']('indent'),_0x2ada86['enableCommand']('outdent')),_0x22ab5a['plugins']['has']('IndentBlock')){for(const _0x5869ed of['indentBlock','outdentBlock'])_0x2ada86['enableDefaultAttributesIntegration'](_0x5869ed);}const _0x497144=_0x22ab5a['locale'];_0x2ada86['registerBlockAttribute']('blockIndent'),_0x2ada86['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x497144,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28d537=this['editor'],_0x14440f=_0x28d537['locale'],_0x54d9fa=_0x28d537['plugins']['get']('TrackChangesEditing');_0x54d9fa['descriptionFactory']['registerDescriptionCallback'](_0x410167=>{if('formatBlock'!=_0x410167['type'])return;const {data:_0x2b9564}=_0x410167;if(!_0x2b9564)return;if('indentBlock'!=_0x2b9564['commandName']&&'outdentBlock'!=_0x2b9564['commandName'])return;const _0x178b88=_0x410167['getItems']()[0x0],_0x4b9784=_0x54d9fa['descriptionFactory']['getItemLabel'](_0x178b88);return'indentBlock'==_0x2b9564['commandName']?{'type':'format','content':o(_0x14440f,'*Indent:*\x20%0',_0x4b9784)}:'outdentBlock'==_0x2b9564['commandName']?{'type':'format','content':o(_0x14440f,'*Outdent:*\x20%0',_0x4b9784)}:void 0x0;});}}class ut extends _0x254461{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x254461{['afterInit'](){const _0x4eb6c4=this['editor'];if(!_0x4eb6c4['plugins']['has']('LinkEditing'))return;const _0x907fb4=_0x4eb6c4['plugins']['get']('TrackChangesEditing'),_0x3946a9=_0x4eb6c4['commands']['get']('link');_0x907fb4['enableDefaultAttributesIntegration']('link'),_0x907fb4['enableDefaultAttributesIntegration']('unlink'),_0x907fb4['registerInlineAttribute']('linkHref');for(const _0x58d188 of _0x3946a9['manualDecorators'])_0x907fb4['registerInlineAttribute'](_0x58d188['id']),_0x907fb4['descriptionFactory']['registerAttributeLabel'](_0x58d188['id'],'link\x20('+_0x58d188['label']['toLowerCase']()+')');_0x907fb4['descriptionFactory']['registerDescriptionCallback'](_0x4ca2bc=>{if('attribute'!=_0x4ca2bc['type'])return;const {data:_0x4081db}=_0x4ca2bc;if(!_0x4081db||'linkHref'!=_0x4081db['key'])return;const _0x337438=_0x4081db['newValue'],_0x4d1ab7=_0x4eb6c4['locale'];return{'type':'format','content':null==_0x337438?o(_0x4d1ab7,'*Remove\x20link*'):o(_0x4d1ab7,'*Set\x20link:*\x20%0','\x22'+_0x337438+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1e3e=this['editor'],_0x56f1ff=_0x1e1e3e['locale'];_0x1e1e3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10c649=>{if('formatInline'!=_0x10c649['type'])return;const {data:_0x388619}=_0x10c649;if(_0x388619){if('link'==_0x388619['commandName']){const _0x165750=_0x388619['commandParams'][0x0];return{'type':'format','content':o(_0x56f1ff,'*Set\x20link:*\x20%0','\x22'+_0x165750+'\x22')};}return'unlink'==_0x388619['commandName']?{'type':'format','content':o(_0x56f1ff,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x254461{['afterInit'](){const _0x5f499f=this['editor'],_0x3992a7=_0x5f499f['locale'];if(!_0x5f499f['plugins']['has']('LegacyListEditing'))return;const _0x3363d2=_0x5f499f['plugins']['get']('TrackChangesEditing'),_0x34df16=_0x5f499f['plugins']['has']('LegacyTodoListEditing');function _0x102ff5(_0x20bb36){return()=>{const _0x1e6560=_0x5f499f['model']['document']['selection'],_0xed5b4b=_0x5f499f['commands']['get'](_0x20bb36);if(_0xed5b4b['value'])return void _0x5f499f['execute']('paragraph',{});const _0x3065f0=_0x20bb36['slice'](0x0,-0x4),_0x524e8b=function(_0x1b0826,_0x3a700d,_0x4c2c6a){let _0x1b16ed=Array['from'](_0x1b0826)['filter'](_0x554d20=>function(_0x196f89,_0x2baed0){return _0x2baed0['checkChild'](_0x196f89['parent'],'listItem')&&!_0x2baed0['isObject'](_0x196f89);}(_0x554d20,_0x4c2c6a));_0x1b16ed=_0x1b16ed['filter'](_0x2ce3f9=>!_0x2ce3f9['is']('element','listItem')||_0x2ce3f9['getAttribute']('listType')!=_0x3a700d);const _0x3d8d19=new Set();for(const _0x14521c of _0x1b16ed)_0x14521c['is']('element','listItem')?_0x3d8d19['add'](fe(_0x14521c)):_0x3d8d19['add'](_0x14521c);return Array['from'](_0x3d8d19);}(_0x1e6560['getSelectedBlocks'](),_0x3065f0,_0x5f499f['model']['schema']);_0x5f499f['model']['change'](()=>{for(const _0x4b01f0 of _0x524e8b)_0x3363d2['markBlockFormat'](_0x4b01f0,{'commandName':_0x20bb36,'commandParams':[{'forceValue':!_0xed5b4b['value']}],'formatGroupId':'blockName'},ue(_0x4b01f0));});};}function _0x362020(_0x53f482){return()=>{const _0x582030=function(_0x21b121){let _0xceae84=Array['from'](_0x21b121);const _0x55a4e5=_0xceae84['findIndex'](_0x53232f=>'listItem'!=_0x53232f['name']);return _0x55a4e5>-0x1&&(_0xceae84=_0xceae84['slice'](0x0,_0x55a4e5)),_0xceae84;}(_0x5f499f['model']['document']['selection']['getSelectedBlocks']()),_0x3e7396=_0x5f499f['model']['createRange'](_0x5f499f['model']['createPositionAt'](_0x582030[0x0],'before'),_0x5f499f['model']['createPositionAt'](_0x582030[_0x582030['length']-0x1],'end'));_0x5f499f['model']['change'](()=>{_0x3363d2['markBlockFormat'](_0x3e7396,{'commandName':_0x53f482,'commandParams':[],'formatGroupId':'listIndent'},function(_0x914406){const _0x1b02a3=new Set();for(const _0x58984a of _0x914406){let _0x22032f=_0x58984a['nextSibling'];for(;_0x22032f&&_0x22032f['getAttribute']('listIndent')>_0x58984a['getAttribute']('listIndent');)_0x1b02a3['add'](_0x22032f),_0x22032f=_0x22032f['nextSibling'];}return Array['from'](_0x1b02a3);}(_0x582030));});};}_0x3363d2['enableCommand']('numberedList',_0x102ff5('numberedList')),_0x3363d2['enableCommand']('bulletedList',_0x102ff5('bulletedList')),_0x34df16&&_0x3363d2['enableCommand']('todoList',_0x102ff5('todoList')),_0x3363d2['enableCommand']('indentList',_0x362020('indentList')),_0x3363d2['enableCommand']('outdentList',_0x362020('outdentList')),_0x34df16&&_0x3363d2['enableCommand']('checkTodoList',()=>{const _0x4cd1dc=_0x5f499f['commands']['get']('checkTodoList'),_0xa3f6b5=Array['from'](_0x4cd1dc['_selectedElements']);_0xa3f6b5['filter'](_0x9433d0=>_0x9433d0['getAttribute']('todoListChecked')!=_0x4cd1dc['value']),_0x5f499f['model']['change'](()=>{for(const _0x27b605 of _0xa3f6b5)_0x3363d2['markBlockFormat'](_0x27b605,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4cd1dc['value']}]});});}),_0x3363d2['descriptionFactory']['registerElementLabel']('listItem',_0x1fa40a=>o(_0x3992a7,'ELEMENT_LIST_ITEM',_0x1fa40a)),_0x3363d2['descriptionFactory']['registerDescriptionCallback'](_0xcfb22=>{if('formatBlock'!=_0xcfb22['type']&&'formatInline'!=_0xcfb22['type'])return;const {data:_0x33f587}=_0xcfb22;if(_0x33f587){if('numberedList'==_0x33f587['commandName']||'bulletedList'==_0x33f587['commandName']||'todoList'==_0x33f587['commandName'])switch(_0x33f587['commandName']['replace']('List','')){case'bulleted':return _0x151388(o(_0x3992a7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x151388(o(_0x3992a7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x151388(o(_0x3992a7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x33f587['commandName'])return{'type':'format','content':o(_0x3992a7,'*Indent:*\x20%0',o(_0x3992a7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x33f587['commandName'])return{'type':'format','content':o(_0x3992a7,'*Outdent:*\x20%0',o(_0x3992a7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x33f587['commandName'])return _0x33f587['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3992a7,'*Check\x20item*')}:{'type':'format','content':o(_0x3992a7,'*Uncheck\x20item*')};}function _0x151388(_0x3a1a8d){return{'type':'format','content':o(_0x3992a7,'*Change\x20to:*\x20%0',_0x3a1a8d)};}});}}function fe(_0xd96a7c){const _0x571ea4=_0xd96a7c['getAttribute']('listIndent');if(0x0==_0x571ea4)return _0xd96a7c;let _0x460d2d=_0xd96a7c;for(;_0xd96a7c['previousSibling']&&_0xd96a7c['previousSibling']['is']('element','listItem');){const _0x1b39c7=_0xd96a7c['previousSibling']['getAttribute']('listIndent');if(_0x1b39c7==_0x571ea4)_0x460d2d=_0xd96a7c['previousSibling'];else{if(_0x1b39c7<_0x571ea4)break;}_0xd96a7c=_0xd96a7c['previousSibling'];}return _0x460d2d;}function ue(_0x4a321b){const _0x1b00e0=[];if(_0x4a321b['is']('element','listItem')&&_0x4a321b['getAttribute']('listIndent')>0x0){let _0x2c0c57=_0x4a321b['nextSibling'];for(;_0x2c0c57&&'listItem'==_0x2c0c57['name']&&_0x2c0c57['getAttribute']('listIndent')==_0x4a321b['getAttribute']('listIndent');)_0x1b00e0['push'](_0x2c0c57),_0x2c0c57=_0x2c0c57['nextSibling'];}return _0x1b00e0;}class W extends _0x254461{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3bb83a=this['editor']['config']['get']('list.properties'),_0x4caec8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bb83a['styles']&&_0x4caec8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3bb83a['reversed']&&_0x4caec8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3bb83a['startIndex']&&_0x4caec8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4caec8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3e9e3c,_0x5b3f24={}){const _0x53250a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a36a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x53250a['markMultiRangeBlockFormat'](_0x25a36a,{'commandName':'listStyle','commandParams':[{'type':_0x5b3f24['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x120f58,_0x34074c={}){const _0x2a69e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a5194=this['_getSuggestionBlocks'](_0x4953e7=>_0x4953e7['is']('element','listItem')&&'numbered'===_0x4953e7['getAttribute']('listType'));if(_0x1a5194['length']<0x1)return;const _0x89a7a5=_0x1a5194['map'](_0x5c0433=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c0433,'before'),this['editor']['model']['createPositionAt'](_0x5c0433,0x0)));this['editor']['model']['change'](()=>{_0x2a69e8['markMultiRangeBlockFormat'](_0x89a7a5,{'commandName':'listReversed','commandParams':[{'reversed':_0x34074c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x134411,_0x5f376d={}){const _0x1961f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16f6ff=this['_getSuggestionBlocks'](_0x8d876b=>_0x8d876b['is']('element','listItem')&&'numbered'===_0x8d876b['getAttribute']('listType'));if(_0x16f6ff['length']<0x1)return;const _0x53476e=_0x16f6ff['map'](_0x2a48f5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a48f5,'before'),this['editor']['model']['createPositionAt'](_0x2a48f5,0x0)));this['editor']['model']['change'](()=>{_0x1961f0['markMultiRangeBlockFormat'](_0x53476e,{'commandName':'listStart','commandParams':[{'startIndex':_0x5f376d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x38f0cc){if('formatBlock'!=_0x38f0cc['type']&&'formatInline'!=_0x38f0cc['type'])return;const _0x104b88=this['editor']['locale'],{data:_0x31d455}=_0x38f0cc;if(!_0x31d455)return;let _0x36edbe,_0x4c2ff3;switch(_0x31d455['commandName']){case'listStyle':_0x36edbe='*Change\x20to:*\x20%0',_0x4c2ff3={'type':'format','content':o(_0x104b88,_0x36edbe,o(_0x104b88,this['_getTranslationKeyForListStyle'](_0x31d455['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36edbe=_0x31d455['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c2ff3={'type':'format','content':o(_0x104b88,_0x36edbe)};break;case'listStart':_0x36edbe='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c2ff3={'type':'format','content':o(_0x104b88,_0x36edbe,_0x31d455['commandParams'][0x0]['startIndex'])};}return _0x4c2ff3;}['_getSuggestionBlocksForListStyle'](){const _0x61dca6=this['editor']['plugins']['get']('LegacyListUtils');let _0x56837f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x56837f[0x0]?.['is']('element','listItem')&&_0x56837f['unshift'](..._0x61dca6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x56837f[_0x56837f['length']-0x1]?.['is']('element','listItem')&&_0x56837f['push'](..._0x61dca6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x56837f=[...new Set(_0x56837f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x56837f=_0x56837f['filter'](_0x289986=>_0x289986['is']('element','listItem'))),_0x56837f;}['_getSuggestionBlocks'](_0x4df4ac){const _0x4f7169=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c9b92=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4df4ac)['map'](_0xc77335=>{const _0x238063=this['editor']['model']['createPositionAt'](_0xc77335,0x0);return[..._0x4f7169['getSiblingNodes'](_0x238063,'backward'),..._0x4f7169['getSiblingNodes'](_0x238063,'forward')];})['flat']();return _0x1c9b92=[...new Set(_0x1c9b92)],_0x1c9b92;}['_getTranslationKeyForListStyle'](_0x3f68a1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f68a1)||'default')['toUpperCase']()+'_LIST_'+_0x3f68a1['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x254461{['afterInit'](){const _0x380e01=this['editor'];if(!_0x380e01['plugins']['has']('MediaEmbedEditing'))return;const _0x1cc3c2=_0x380e01['plugins']['get']('TrackChangesEditing'),_0x5eab6b=_0x380e01['locale'];_0x1cc3c2['enableCommand']('mediaEmbed'),_0x1cc3c2['descriptionFactory']['registerElementLabel']('media',_0x3b91c6=>o(_0x5eab6b,'ELEMENT_MEDIA',_0x3b91c6)),_0x380e01['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3663d1,{writer:_0x4918b2,options:_0x59efab})=>{if(_0x59efab['showSuggestionHighlights'])return _0x4918b2['createEmptyElement']('div');},'converterPriority':'high'}),_0x380e01['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4fad21,_0x52b689,_0x131510)=>{_0x131510['options']['showSuggestionHighlights']&&_0x4fad21['stop']();},{'priority':'high'});}}class mt extends _0x254461{['afterInit'](){const _0xcc035b=this['editor'];_0xcc035b['plugins']['has']('MentionEditing')&&_0xcc035b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x254461{['afterInit'](){const _0x1a20c3=this['editor'];if(!_0x1a20c3['plugins']['has']('MergeFieldsEditing'))return;_0x1a20c3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1a20c3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4a7eb4=_0x1a20c3['plugins']['get']('TrackChangesEditing'),_0x38d976=_0x1a20c3['locale'];_0x4a7eb4['descriptionFactory']['registerElementLabel']('mergeField',_0x185c00=>o(_0x38d976,'ELEMENT_MERGE_FIELD',_0x185c00)),_0x4a7eb4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4e90bb=>o(_0x38d976,'ELEMENT_MERGE_FIELD',_0x4e90bb)),_0x4a7eb4['descriptionFactory']['registerDescriptionCallback'](_0x4186c5=>{if('insertion'!=_0x4186c5['type']&&'deletion'!=_0x4186c5['type'])return;const _0x4933be=_0x4186c5['getContainedElement']();if(null==_0x4933be)return;if(!_0x4933be['is']('element','mergeField')&&!_0x4933be['is']('element','mergeFieldBlock'))return;const _0x4daeac=_0x1a20c3['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4933be['getAttribute']('id'));return'insertion'==_0x4186c5['type']?{'type':'insertion','content':o(_0x38d976,'*Insert:*\x20%0','\x22'+_0x4daeac+'\x22\x20'+o(_0x38d976,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x38d976,'*Remove:*\x20%0','\x22'+_0x4daeac+'\x22\x20'+o(_0x38d976,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x254461{['afterInit'](){const _0x39578e=this['editor'],_0x4085aa=_0x39578e['plugins']['get']('TrackChangesEditing');_0x39578e['plugins']['has']('MultiLevelList')&&(_0x4085aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x4085aa['registerBlockAttribute']('listMarkerStyle'),_0x4085aa['descriptionFactory']['registerDescriptionCallback'](_0x3025a5=>this['handleDescriptions'](_0x3025a5)));}['handleDescriptions'](_0x1c425f){const _0x5b2beb=this['editor']['locale'],{data:_0x113b67}=_0x1c425f,_0x51751e={'type':'format','content':''};if(_0x113b67&&'listMarkerStyle'==_0x113b67['key']){if(!_0x113b67['oldValue'])return{'type':'format','content':o(_0x5b2beb,'*Set\x20format:*\x20%0',o(_0x5b2beb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x113b67['newValue']+')'};if(!_0x113b67['newValue']){let _0x6686ce=_0x1c425f['head'];for(;_0x6686ce;){if(_0x6686ce['data']&&'listType'==_0x6686ce['data']['key']&&_0x6686ce['data']['newValue'])return _0x51751e;_0x6686ce=_0x6686ce['next'];}return{'type':'format','content':o(_0x5b2beb,'*Remove\x20format:*\x20%0',o(_0x5b2beb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x113b67['oldValue']+')'};}}}}class kt extends _0x254461{['afterInit'](){const _0x1e9e8f=this['editor'];if(!_0x1e9e8f['plugins']['has']('PageBreakEditing'))return;_0x1e9e8f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5cf3e7=_0x1e9e8f['plugins']['get']('TrackChangesEditing'),_0x3410d8=_0x1e9e8f['locale'];_0x5cf3e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x3f7e36=>o(_0x3410d8,'ELEMENT_PAGE_BREAK',_0x3f7e36));}}class bt extends _0x254461{['afterInit'](){const _0x267706=this['editor'];if(!_0x267706['plugins']['has']('Paragraph'))return;const _0x5543b7=_0x267706['locale'],_0x2f14b1=_0x267706['plugins']['get']('TrackChangesEditing');_0x2f14b1['descriptionFactory']['registerElementLabel']('paragraph',_0x2251ab=>o(_0x5543b7,'ELEMENT_PARAGRAPH',_0x2251ab)),_0x2f14b1['enableDefaultAttributesIntegration']('paragraph'),_0x2f14b1['enableCommand']('insertParagraph'),_0x267706['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x267706),{'priority':'highest'}),_0x267706['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x280d46,_0x377fba,_0x131fe7)=>{_0x131fe7['options']['showSuggestionHighlights']&&nr(_0x267706,{'showActiveMarker':!0x1})(_0x280d46,_0x377fba,_0x131fe7);},{'priority':'highest'});const _0x2dbdb5=_0x2f14b1['descriptionFactory'];_0x2dbdb5['registerDescriptionCallback'](_0xddf2f4=>{if('insertion'!==_0xddf2f4['type'])return;const {start:_0x2fe14a,end:_0x30ebdc}=_0xddf2f4['getFirstRange']();if(!_0x2fe14a['isTouching'](_0x30ebdc)||!_0x2fe14a['nodeAfter'])return;const _0x8dc6b8=_0x267706['model']['schema'],_0x31ec8a=_0x2fe14a['nodeAfter'];return _0x8dc6b8['isBlock'](_0x31ec8a)&&!_0x8dc6b8['isLimit'](_0x31ec8a)&&_0x8dc6b8['checkChild'](_0x31ec8a,'$text')?{'type':'insertion','content':o(_0x5543b7,'*Insert:*\x20%0',_0x2dbdb5['getItemLabel'](_0x31ec8a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a25f=this['editor'],_0x57a655=_0x13a25f['locale'];_0x13a25f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdedb06=>{if('formatBlock'!=_0xdedb06['type'])return;const {data:_0x4883ed}=_0xdedb06;return _0x4883ed&&'paragraph'==_0x4883ed['commandName']?{'type':'format','content':o(_0x57a655,'*Change\x20to:*\x20%0',o(_0x57a655,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x30b822,{showActiveMarker:_0x3fc923=!0x0}={}){return(_0x7960ba,_0x2595f3,_0x34f292)=>{const _0x5a47d3=_0x30b822['plugins']['get']('TrackChangesEditing'),_0x2743d3=_0x2595f3['markerRange']['start'],_0x1335bc=_0x2595f3['markerRange']['end'],_0x5abe38=_0x30b822['model']['schema'];if(!_0x2743d3['isTouching'](_0x1335bc)||!_0x2743d3['nodeAfter'])return;const _0x1ad676=_0x2743d3['nodeAfter'];if(_0x5abe38['isBlock'](_0x1ad676)&&!_0x5abe38['isLimit'](_0x1ad676)&&_0x5abe38['checkChild'](_0x1ad676,'$text')){if(!_0x34f292['consumable']['consume'](_0x2595f3['markerRange'],_0x7960ba['name']))return;const {authorId:_0x3c9113}=_0x5a47d3['_splitMarkerName'](_0x2595f3['markerName']),_0x50d0dc=_0x34f292['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3c9113}),_0x1f8863=_0x34f292['mapper']['toViewPosition'](_0x1335bc);_0x3fc923&&_0x5a47d3['activeMarkers']['includes'](_0x2595f3['markerName'])&&_0x34f292['writer']['addClass']('ck-suggestion-marker--active',_0x50d0dc),_0x34f292['writer']['insert'](_0x1f8863,_0x50d0dc),_0x34f292['mapper']['bindElementToMarker'](_0x50d0dc,_0x2595f3['markerName']);}};}class wt extends _0x254461{['afterInit'](){const _0x528ea0=this['editor'];if(!_0x528ea0['plugins']['has']('RemoveFormatEditing'))return;_0x528ea0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c58e8=this['editor'];_0x1c58e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x233d81=>{if('formatBlock'!=_0x233d81['type']&&'formatInline'!=_0x233d81['type'])return;const {data:_0x344bd3}=_0x233d81;return _0x344bd3&&'removeFormat'==_0x344bd3['commandName']?{'type':'format','content':o(_0x1c58e8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x254461{['afterInit'](){const _0x61c882=this['editor'];if(!_0x61c882['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43811c=_0x61c882['plugins']['get']('TrackChangesEditing');_0x43811c['enableCommand']('goToPreviousRestrictedEditingException'),_0x43811c['enableCommand']('goToNextRestrictedEditingException');const _0x302694=_0x61c882['plugins']['get']('RestrictedEditingModeEditing');_0x302694['enableCommand']('trackChanges'),_0x302694['enableCommand']('acceptSuggestion'),_0x302694['enableCommand']('discardSuggestion'),_0x302694['enableCommand']('acceptAllSuggestions'),_0x302694['enableCommand']('discardAllSuggestions'),_0x302694['enableCommand']('acceptSelectedSuggestions'),_0x302694['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x254461{static get['requires'](){return[_0x14e530];}['init'](){const _0x5b1475=this['editor'],_0x44e137=_0x5b1475['plugins']['get']('TrackChangesEditing');_0x44e137['enableCommand']('shiftEnter'),_0x5b1475['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5b1475),{'priority':'high'}),_0x5b1475['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5b1475),{'priority':'high'}),_0x5b1475['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4eb822,_0x35740e,_0x2f47f5)=>{_0x2f47f5['options']['showSuggestionHighlights']&&ge(_0x5b1475,{'showActiveMarker':!0x1})(_0x4eb822,_0x35740e,_0x2f47f5);}),_0x44e137['descriptionFactory']['registerElementLabel']('softBreak',_0x2017af=>o(_0x5b1475['locale'],'ELEMENT_LINE_BREAK',_0x2017af));}}function ge(_0x136bf4,{showActiveMarker:_0x3c8f30=!0x0}={}){return(_0x20a96d,_0x126452,_0x6e122e)=>{const _0x10c99b=_0x136bf4['plugins']['get']('TrackChangesEditing');if(!_0x6e122e['consumable']['test'](_0x126452['markerRange'],_0x20a96d['name']))return;const _0x57eb4a=_0x136bf4['model'];for(const _0xa35997 of _0x126452['markerRange']['getItems']()){if(!_0xa35997['is']('element','softBreak'))continue;const _0x46d1e6='deletion'==_0x126452['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x636abf}=_0x10c99b['_splitMarkerName'](_0x126452['markerName']),_0x1e1f5d=_0x6e122e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46d1e6,'data-author-id':_0x636abf}),_0x475ec5=_0x6e122e['mapper']['toViewPosition'](_0x57eb4a['createPositionBefore'](_0xa35997));_0x3c8f30&&_0x10c99b['activeMarkers']['includes'](_0x126452['markerName'])&&_0x6e122e['writer']['addClass']('ck-suggestion-marker--active',_0x1e1f5d),_0x6e122e['writer']['insert'](_0x475ec5,_0x1e1f5d),_0x6e122e['mapper']['bindElementToMarker'](_0x1e1f5d,_0x126452['markerName']);}};}class St extends _0x254461{['afterInit'](){const _0x329ec3=this['editor'],_0xc6a99a=_0x329ec3['model'],_0x2eaec0=_0x329ec3['locale'];if(!_0x329ec3['plugins']['has']('StandardEditingModeEditing'))return;const _0xff7b7d=_0x329ec3['plugins']['get']('TrackChangesEditing'),_0x46cd0a='restrictedEditingException',_0x17dfe8=_0x329ec3['commands']['get'](_0x46cd0a);_0xff7b7d['enableCommand'](_0x46cd0a,(_0x1713fb,_0x2a33d6={})=>{const _0x3fb0bf=_0xc6a99a['document']['selection'];if(_0x3fb0bf['isCollapsed'])return void _0x1713fb(_0x2a33d6);const _0x4779d3=void 0x0!==_0x2a33d6['forceValue']?_0x2a33d6['forceValue']:!_0x17dfe8['value'];_0xc6a99a['change'](()=>{const _0x17b354=Array['from'](_0x3fb0bf['getRanges']());for(const _0x3bb975 of _0x17b354){const _0x9333c=_0x4779d3?[_0x3bb975]:io(_0x46cd0a,_0x3bb975,_0xc6a99a);for(const _0xd92c56 of _0x9333c)_0xff7b7d['markInlineFormat'](_0xd92c56,{'commandName':_0x46cd0a,'commandParams':[{'forceValue':_0x4779d3}]});}});}),_0xff7b7d['descriptionFactory']['registerDescriptionCallback'](_0x3d0e5e=>{if('formatBlock'!=_0x3d0e5e['type']&&'formatInline'!=_0x3d0e5e['type'])return;const {data:_0x315ffa}=_0x3d0e5e;return _0x315ffa&&_0x315ffa['commandName']==_0x46cd0a?_0x315ffa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2eaec0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2eaec0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x254461{['afterInit'](){const _0x40be33=this['editor'];if(!_0x40be33['plugins']['has']('Style')||!_0x40be33['plugins']['has']('DataSchema'))return;const _0x277870=_0x40be33['plugins']['get']('TrackChangesEditing'),_0xb1f722=_0x40be33['locale'],_0x1d37e0=_0x40be33['config']['get']('style')||{},_0x242733=_0x40be33['plugins']['get']('GeneralHtmlSupport'),_0x4f85bb=_0x40be33['plugins']['get']('StyleUtils')['normalizeConfig'](_0x40be33['plugins']['get']('DataSchema'),_0x1d37e0['definitions']);_0x277870['enableDefaultAttributesIntegration']('style');const _0x53ba0a=new Set();for(const _0x4bad45 of _0x4f85bb['block']){const _0x48f8e7=_0x242733['getGhsAttributeNameForElement'](_0x4bad45['element']);_0x53ba0a['add'](_0x48f8e7);}const _0x329e31=new Set();for(const _0x3a3814 of _0x4f85bb['inline']){const _0x4c6ad6=_0x242733['getGhsAttributeNameForElement'](_0x3a3814['element']);_0x329e31['add'](_0x4c6ad6);for(const _0x3e7bc3 of _0x3a3814['ghsAttributes'])_0x329e31['add'](_0x3e7bc3);}for(const _0x5e4bae of _0x53ba0a)_0x277870['registerBlockAttribute'](_0x5e4bae),_0x277870['descriptionFactory']['registerAttributeLabel'](_0x5e4bae,o(_0xb1f722,'FORMAT_STYLE'));for(const _0x449d8e of _0x329e31)_0x277870['registerInlineAttribute'](_0x449d8e),_0x277870['descriptionFactory']['registerAttributeLabel'](_0x449d8e,o(_0xb1f722,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c27f0=this['editor'],_0x145761=_0x1c27f0['locale'];_0x1c27f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3136b6=>{if('formatBlock'!=_0x3136b6['type']&&'formatInline'!=_0x3136b6['type'])return;const {data:_0x477f38}=_0x3136b6;return _0x477f38&&'style'===_0x477f38['commandName']?_0x477f38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x145761,'*Set\x20format:*\x20%0',_0x477f38['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x145761,'*Remove\x20format:*\x20%0',_0x477f38['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x254461{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e641){super(_0x4e641),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d0d76=this['editor'],_0x504074=_0x3d0d76['model']['document']['selection'];if(!_0x3d0d76['plugins']['has']('TableEditing'))return;const _0x26745e=_0x3d0d76['locale'],_0x160696=_0x3d0d76['plugins']['get']('TrackChangesEditing'),_0x5e6898=_0x3d0d76['plugins']['get']('TableUtils');_0x160696['descriptionFactory']['registerElementLabel']('table',_0xcdfdc4=>o(_0x26745e,'ELEMENT_TABLE',_0xcdfdc4)),this['_setupColumnsRowsFixing'](),_0x160696['enableCommand']('insertTable'),_0x160696['enableCommand']('selectTableRow'),_0x160696['enableCommand']('selectTableColumn');for(const _0x4e1264 of['insertTableRowAbove','insertTableRowBelow']){const _0x190a1c=_0x3d0d76['commands']['get'](_0x4e1264);_0x160696['enableCommand'](_0x4e1264,_0x3708f9=>{_0x3d0d76['model']['change'](_0xa773cf=>{_0x3708f9();const _0x20fa06='above'===_0x190a1c['order'],_0x218dca=_0x5e6898['getSelectionAffectedTableCells'](_0x504074),_0x3f3bcd=_0x5e6898['getRowIndexes'](_0x218dca),_0x5cf35e=_0x20fa06?_0x3f3bcd['first']-0x1:_0x3f3bcd['last']+0x1,_0x3928ab=_0x218dca[0x0]['findAncestor']('table'),_0x530e97=_0x5e6898['createTableWalker'](_0x3928ab,{'startRow':_0x5cf35e,'endRow':_0x5cf35e}),_0x390c62=Array['from'](_0x530e97)['map'](_0x11778e=>_0xa773cf['createRangeOn'](_0x11778e['cell']));_0x160696['markMultiRangeInsertion'](_0x390c62,'tableRow');});});}for(const _0x2010f9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a7915=_0x3d0d76['commands']['get'](_0x2010f9);_0x160696['enableCommand'](_0x2010f9,_0x395ae3=>{_0x3d0d76['model']['change'](_0x4086aa=>{_0x395ae3();const _0x924600='left'===_0x2a7915['order'],_0x63acd6=_0x5e6898['getSelectionAffectedTableCells'](_0x504074),_0x316f72=_0x5e6898['getColumnIndexes'](_0x63acd6),_0x49abf6=_0x924600?_0x316f72['first']-0x1:_0x316f72['last']+0x1,_0x8e54b4=_0x63acd6[0x0]['findAncestor']('table'),_0x2e1f66=_0x5e6898['createTableWalker'](_0x8e54b4,{'startRow':0x0,'column':_0x49abf6,'includeAllSlots':!0x1}),_0x2fa0ee=Array['from'](_0x2e1f66)['map'](_0x15073d=>_0x4086aa['createRangeOn'](_0x15073d['cell']));_0x160696['markMultiRangeInsertion'](_0x2fa0ee,'tableColumn');});});}for(const _0x3ec4df of['removeTableRow','removeTableColumn']){const _0x568cd0=_0x3ec4df['substr'](0xb),_0x3c49da=_0x568cd0['toLowerCase'](),_0x857fe6=_0x3c49da['substr'](0x0,0x3)+'span',_0x316e3c='table'+_0x568cd0,_0x288e93='min'+_0x568cd0,_0x3b6204='max'+_0x568cd0;_0x160696['enableCommand'](_0x3ec4df,()=>{_0x3d0d76['model']['change'](_0x385b1d=>{const _0x5610d9=_0x5e6898['getSelectionAffectedTableCells'](_0x504074),_0x4a1fb7=_0x5610d9[0x0]['findAncestor']('table');let _0x47b761;if('removeTableRow'==_0x3ec4df){const _0x59195d=_0x5e6898['getRowIndexes'](_0x5610d9);_0x47b761={'startRow':_0x59195d['first'],'endRow':_0x59195d['last'],'includeAllSlots':!0x0};}else{const _0x248d80=_0x5e6898['getColumnIndexes'](_0x5610d9);_0x47b761={'startColumn':_0x248d80['first'],'endColumn':_0x248d80['last'],'includeAllSlots':!0x0};}const _0x2b5625=_0x5e6898['createTableWalker'](_0x4a1fb7,_0x47b761),_0x5cd0f0=Array['from'](_0x2b5625)['map'](({cell:_0x2957d2})=>_0x2957d2),_0x2a5a4e=be(_0x5cd0f0['filter'](_0x5c6da9=>_0x5c6da9['hasAttribute'](_0x857fe6))),_0x430cfb=be(_0x5cd0f0['filter'](_0x458208=>!_0x458208['hasAttribute'](_0x857fe6)))['map'](_0x2be0d3=>_0x385b1d['createRangeOn'](_0x2be0d3)),_0x519c7d=_0x160696['markMultiRangeDeletion'](_0x430cfb,_0x316e3c);if(_0x519c7d&&('tableRow'==_0x519c7d['subType']||'tableColumn'==_0x519c7d['subType'])){const _0x122768=this['_getSuggestionCoords'](_0x519c7d);for(const _0x52cd3a of _0x2a5a4e){const _0x262721=_0x385b1d['createRangeOn'](_0x52cd3a),_0x4325f4=_0x5e6898['getCellLocation'](_0x52cd3a),_0x4a3c25=_0x52cd3a['getAttribute'](_0x857fe6)-0x1,_0xe28edd=_0x122768[_0x288e93],_0xfbc05d=_0x122768[_0x3b6204];_0xe28edd<=_0x4325f4[_0x3c49da]&&_0x4325f4[_0x3c49da]+_0x4a3c25<=_0xfbc05d&&_0x519c7d['addRange'](_0x262721);}}});});}function _0xd8fa90(_0x22ea4a){const _0x3bb487=Array['from'](_0x504074['getRanges']())['map'](_0x2398b1=>_0x5da18b['fromRange'](_0x2398b1));_0x3d0d76['model']['change'](_0x363d14=>{const _0x480c68=_0x363d14['batch'];_0x22ea4a=_0x22ea4a['filter'](_0x244d29=>'$graveyard'!=_0x244d29['root']['rootName']),_0x363d14['setSelection'](_0x22ea4a),_0x3d0d76['commands']['get']('removeTableRow')['refresh'](),_0x3d0d76['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d0d76['model']['enqueueChange'](()=>{_0x3d0d76['model']['enqueueChange'](_0x480c68,_0x41db0c=>{const _0x124271=_0x3bb487['filter'](_0x154c47=>'$graveyard'!=_0x154c47['root']['rootName']);_0x124271['length']>0x0&&_0x41db0c['setSelection'](_0x124271);for(const _0x5d7ba1 of _0x3bb487)_0x5d7ba1['detach']();});});});}function _0x13bac6(_0x1d2b8c){_0x3d0d76['model']['change'](_0x27f48a=>{const _0x2c72d4=Array['from'](_0x504074['getRanges']())['map'](_0x11f72d=>_0x5da18b['fromRange'](_0x11f72d)),_0x42c239=[];for(const _0x57f998 of _0x1d2b8c)for(const _0x3a0a44 of _0x57f998['getItems']({'shallow':!0x0}))_0x42c239['push'](_0x3a0a44);for(const _0x2d2764 of _0x42c239)'$graveyard'!=_0x2d2764['root']['rootName']&&(_0x27f48a['setSelection'](_0x27f48a['createPositionAt'](_0x2d2764,0x0)),_0x3d0d76['commands']['get']('removeTableColumn')['refresh'](),_0x3d0d76['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x490a0b=_0x2c72d4['filter'](_0x43db18=>'$graveyard'!=_0x43db18['root']['rootName']);_0x490a0b['length']>0x0&&_0x27f48a['setSelection'](_0x490a0b);for(const _0x135221 of _0x2c72d4)_0x135221['detach']();});}function _0xd48837(_0x4cd2f1,_0xdc13f4){return _0xdc13f4['every'](_0x300775=>_0x4cd2f1['some'](_0x8506d5=>_0x8506d5['end']['isEqual'](_0x300775['start'])||_0x300775['end']['isEqual'](_0x8506d5['start'])));}function _0x4c3e02(_0x20ddf5,_0x5e156e){return!_0x20ddf5['some'](_0x14caa2=>_0x5e156e['some'](_0xf05100=>_0x14caa2['isIntersecting'](_0xf05100)))&&_0x20ddf5['some'](_0x189f84=>_0x5e156e['some'](_0x26003d=>_0x189f84['end']['isTouching'](_0x26003d['start'])));}_0x3d0d76['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x408c75,_0x5a8ce9,_0x29d621)=>{if(!_0x29d621['options']['showSuggestionHighlights'])return;const _0x4b9145=_0x5a8ce9['item'];if(!_0x4b9145)return;const _0x5e51e9=_0x29d621['mapper']['toViewElement'](_0x4b9145);function _0x5e4b9b(_0x3494d5){return Array['isArray'](_0x3494d5)?_0x3494d5:[_0x3494d5];}_0x5e51e9&&'tableCell'===_0x4b9145['name']&&_0x4574b4(_0x5e51e9,_0x29d621['writer'],(_0x3ee83f,_0x4ba75a,_0x194bff)=>_0x194bff['addClass'](_0x5e4b9b(_0x4ba75a['classes']),_0x3ee83f),(_0x44db8b,_0x1cc22c,_0xee3b64)=>_0xee3b64['removeClass'](_0x5e4b9b(_0x1cc22c['classes']),_0x44db8b));},{'priority':'highest'}),_0x160696['descriptionFactory']['registerDescriptionCallback'](_0x43a1e3=>{if('insertion'!=_0x43a1e3['type']&&'deletion'!=_0x43a1e3['type'])return;const _0x5e9153=_0x43a1e3['getContainedElement']();if(null!=_0x5e9153&&_0x5e9153['is']('element','table')){if('insertion'==_0x43a1e3['type']){const _0x1a9a30=_0x43a1e3['getItems']()['filter'](_0x5e9ed3=>_0x5e9ed3['is']('$textProxy'))['map'](_0x45a6f8=>_0x45a6f8['data']);if(_0x1a9a30['length'])return{'type':'insertion','content':o(_0x26745e,'*Insert:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a9a30['join']('\x20')+'\x22'))};}if('deletion'==_0x43a1e3['type']){const _0x3b882f=_0x43a1e3['getItems']()['filter'](_0x813d42=>_0x813d42['is']('$textProxy'))['map'](_0xb976e0=>_0xb976e0['data']);if(_0x3b882f['length'])return{'type':'deletion','content':o(_0x26745e,'*Remove:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b882f['join']('\x20')+'\x22'))};}}}),_0x160696['descriptionFactory']['registerDescriptionCallback'](_0x182660=>{if('tableRow'==_0x182660['subType']){const _0x347de0=_0x182660['getItems']()['filter'](_0x16c254=>_0x16c254['is']('$textProxy'))['map'](_0x280b6c=>_0x280b6c['data']),_0x335f86=this['_getSuggestionCoords'](_0x182660),_0x465574=_0x335f86['maxRow']-_0x335f86['minRow']+0x1;if('insertion'==_0x182660['type'])return _0x347de0['length']?{'type':'insertion','content':o(_0x26745e,'*Insert:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x465574,'\x22'+_0x347de0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26745e,'*Insert:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_ROW',_0x465574))};if('deletion'==_0x182660['type'])return _0x347de0['length']?{'type':'deletion','content':o(_0x26745e,'*Remove:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x465574,'\x22'+_0x347de0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26745e,'*Remove:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_ROW',_0x465574))};}if('tableColumn'==_0x182660['subType']){const _0x2d4020=_0x182660['getItems']()['filter'](_0x28ba95=>_0x28ba95['is']('$textProxy'))['map'](_0x2d3abb=>_0x2d3abb['data']),_0x1b5c3f=this['_getSuggestionCoords'](_0x182660),_0x505153=_0x1b5c3f['maxColumn']-_0x1b5c3f['minColumn']+0x1;if('insertion'==_0x182660['type'])return _0x2d4020['length']?{'type':'insertion','content':o(_0x26745e,'*Insert:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x505153,'\x22'+_0x2d4020['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26745e,'*Insert:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_COLUMN',_0x505153))};if('deletion'==_0x182660['type'])return _0x2d4020['length']?{'type':'deletion','content':o(_0x26745e,'*Remove:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x505153,'\x22'+_0x2d4020['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26745e,'*Remove:*\x20%0',o(_0x26745e,'ELEMENT_TABLE_COLUMN',_0x505153))};}}),_0x160696['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xd8fa90),_0x160696['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xd8fa90),_0x160696['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13bac6),_0x160696['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13bac6),_0x160696['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xd48837),_0x160696['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xd48837),_0x160696['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4c3e02),_0x160696['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4c3e02);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2e52eb=this['editor'],_0x7d84e4=_0x2e52eb['model']['document']['selection'];return(_0x144c5a,_0x3447e5)=>{_0x2e52eb['model']['change'](_0x5ca2a2=>{const {commandName:_0x5d3b2b,commandParams:_0x5d87a9}=_0x3447e5;let _0x32ffe3=_0x144c5a[0x0]['end']['nodeBefore'];_0x5d87a9&&_0x5d87a9[0x0]&&!0x1===_0x5d87a9[0x0]['forceValue']&&(_0x32ffe3=_0x144c5a[0x0]['start']['nodeAfter']);const _0x5b0702=_0x5ca2a2['createRangeIn'](_0x32ffe3);if('$graveyard'==_0x5b0702['root']['rootName'])return;const _0x1b3bc6=Array['from'](_0x7d84e4['getRanges']())['map'](_0xdfd493=>_0x5da18b['fromRange'](_0xdfd493));_0x5ca2a2['setSelection'](_0x5b0702),_0x2e52eb['commands']['get'](_0x5d3b2b)['refresh'](),_0x5d87a9['push']({'forceDefaultExecution':!0x0}),_0x2e52eb['execute'](_0x5d3b2b,..._0x5d87a9);const _0x11ccdf=_0x1b3bc6['filter'](_0x362bc6=>'$graveyard'!=_0x362bc6['root']['rootName']);_0x11ccdf['length']>0x0&&_0x5ca2a2['setSelection'](_0x11ccdf);for(const _0x387a99 of _0x1b3bc6)_0x387a99['detach']();});};}['_getCoordsForCells'](_0x3d8467){const _0x234238=this['editor']['plugins']['get']('TableUtils');let _0x2259c0=Number['MAX_SAFE_INTEGER'],_0x3bcdfd=Number['MIN_SAFE_INTEGER'],_0x21e904=Number['MAX_SAFE_INTEGER'],_0x472c31=Number['MIN_SAFE_INTEGER'];for(const _0x3fe77c of _0x3d8467){if('$graveyard'==_0x3fe77c['root']['rootName'])continue;const {row:_0x520521,column:_0x57541d}=_0x234238['getCellLocation'](_0x3fe77c),_0xfe49c4=_0x3fe77c['hasAttribute']('rowspan')?_0x3fe77c['getAttribute']('rowspan')-0x1:0x0,_0x3a4c4a=_0x3fe77c['hasAttribute']('colspan')?_0x3fe77c['getAttribute']('colspan')-0x1:0x0;_0x2259c0=_0x520521<_0x2259c0?_0x520521:_0x2259c0,_0x3bcdfd=_0x520521+_0xfe49c4>_0x3bcdfd?_0x520521+_0xfe49c4:_0x3bcdfd,_0x21e904=_0x57541d<_0x21e904?_0x57541d:_0x21e904,_0x472c31=_0x57541d+_0x3a4c4a>_0x472c31?_0x57541d+_0x3a4c4a:_0x472c31;}return{'minRow':_0x2259c0,'maxRow':_0x3bcdfd,'minColumn':_0x21e904,'maxColumn':_0x472c31};}['_setupColumnsRowsFixing'](){const _0x4badf7=this['editor'],_0x29a77b=_0x4badf7['plugins']['get']('TrackChangesEditing'),_0xb8dadd=_0x4badf7['plugins']['get']('TableUtils');_0x4badf7['model']['document']['on']('change:data',()=>{const _0x2a132e=Array['from'](_0x4badf7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x277c26,data:_0x4fbb4e}of _0x2a132e){const {group:_0x4aa765,id:_0xc31f53,subType:_0x2b89ca}=_0x29a77b['_splitMarkerName'](_0x277c26);if('suggestion'!=_0x4aa765)continue;if(null!=_0x4fbb4e['oldRange'])continue;const _0x3a142c=_0x29a77b['getSuggestion'](_0xc31f53);this['_tablePostFixingSubtypes']['includes'](_0x2b89ca)&&this['_tableSuggestions']['add'](_0x3a142c);}},{'priority':'low'});const _0x30741c=(_0x2eebed,_0x5ca9d3)=>{let _0x423d99=!0x1;const _0x3dbc66=_0x5ca9d3['createRangeOn'](_0x2eebed),_0x374fb9=_0x2eebed['findAncestor']('table'),_0xc2c9a1=_0xb8dadd['getCellLocation'](_0x2eebed);for(const _0xb7abb2 of this['_tableSuggestions']){const _0x354bd5=_0xb7abb2['subType'],_0x20e702=_0x354bd5['startsWith']('tablePaste'),_0x447003=_0x354bd5['substr'](_0x20e702?0xa:0x5),_0x37ee69=_0x447003['toLowerCase'](),_0x54d2bb=_0x37ee69['substr'](0x0,0x3)+'span',_0xab5623='min'+_0x447003,_0x4efd62='max'+_0x447003;if(!_0xb7abb2['isInContent'])continue;if(_0x374fb9!=_0xb7abb2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb7abb2['isIntersectingWithRange'](_0x3dbc66))continue;const _0x273be5=_0x2eebed['hasAttribute'](_0x54d2bb)?_0x2eebed['getAttribute'](_0x54d2bb)-0x1:0x0,_0x452336=this['_getSuggestionCoords'](_0xb7abb2),_0x11248d=_0x452336[_0xab5623],_0x33fd25=_0x452336[_0x4efd62];_0x11248d<=_0xc2c9a1[_0x37ee69]&&_0xc2c9a1[_0x37ee69]+_0x273be5<=_0x33fd25&&(_0xb7abb2['addRange'](_0x3dbc66),_0x423d99=!0x0);}return _0x423d99;};_0x4badf7['model']['document']['registerPostFixer'](_0x548a57=>{let _0x6c7f0b=!0x1;for(const _0x164de8 of _0x4badf7['model']['document']['differ']['getChanges']())if('insert'==_0x164de8['type']){if('tableRow'==_0x164de8['name']){for(const _0x242a71 of _0x164de8['position']['nodeAfter']['getChildren']())_0x6c7f0b=_0x6c7f0b||_0x30741c(_0x242a71,_0x548a57);}else'tableCell'==_0x164de8['name']&&(_0x6c7f0b=_0x6c7f0b||_0x30741c(_0x164de8['position']['nodeAfter'],_0x548a57));}return _0x6c7f0b;});}['_getSuggestionCoords'](_0x2eb958){return this['_getCoordsForCells'](_0x2eb958['getRanges']()['map'](_0x41ce3d=>_0x41ce3d['start']['nodeAfter']));}}function be(_0x13890e){return Array['from'](new Set(_0x13890e)['values']());}class vt extends _0x254461{static get['requires'](){return[It];}['afterInit'](){const _0x434483=this['editor'],_0x3b6d9f=_0x434483['model']['document']['selection'],_0x2c2785=_0x434483['locale'];if(!_0x434483['plugins']['has']('TableEditing'))return;const _0x404671=_0x434483['plugins']['get']('TrackChangesEditing'),_0x249bc6=_0x434483['plugins']['get']('TableUtils'),_0x487226=_0x434483['plugins']['get'](It);_0x487226['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x404671['enableCommand']('mergeTableCells',()=>{const _0x50c6b9=_0x249bc6['getSelectionAffectedTableCells'](_0x434483['model']['document']['selection']);_0x434483['model']['change'](()=>{_0x404671['markMultiRangeBlockFormat'](_0x50c6b9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x434483['commands']['get']('mergeTableCells')['on']('execute',(_0x59a5c2,_0x1e4323)=>{_0x434483['commands']['get']('trackChanges')['value']&&(_0x1e4323['length']>0x0&&_0x1e4323[_0x1e4323['length']-0x1]&&_0x1e4323[_0x1e4323['length']-0x1]['forceDefaultExecution']||_0x404671['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59a5c2['stop']());},{'priority':'highest'});for(const _0x579887 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4ab56f=_0x434483['commands']['get'](_0x579887);_0x404671['enableCommand'](_0x579887,()=>{const _0x1c14df=_0x434483['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d1e04=>_0x2d1e04['is']('element','tableCell')),_0x20eff4=_0x4ab56f['value'];_0x434483['model']['change'](()=>{_0x404671['markMultiRangeBlockFormat']([_0x1c14df,_0x20eff4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x25c38 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52f5f8=_0x434483['commands']['get'](_0x25c38);_0x404671['enableCommand'](_0x25c38,()=>{const _0x23ac52=_0x249bc6['getSelectionAffectedTableCells'](_0x434483['model']['document']['selection'])[0x0],_0x4f3e1f=_0x23ac52['findAncestor']('table'),{column:_0x3a4f96,row:_0x59244f}=_0x249bc6['getCellLocation'](_0x23ac52);let _0x1fbc5c=[];if('horizontally'==_0x52f5f8['direction']){const _0x3ef412=_0x249bc6['createTableWalker'](_0x4f3e1f,{'startRow':_0x59244f,'endRow':_0x59244f,'includeAllSlots':!0x0});_0x1fbc5c=Array['from'](_0x3ef412)['map'](_0x5e07db=>_0x5e07db['cell']);}else{const _0x5ab72e=_0x249bc6['createTableWalker'](_0x4f3e1f,{'column':_0x3a4f96,'includeAllSlots':!0x0});_0x1fbc5c=Array['from'](_0x5ab72e)['map'](_0x79bc8a=>_0x79bc8a['cell']);}_0x434483['model']['change'](_0x1e54b8=>{_0x404671['markBlockFormat'](_0x1e54b8['createRangeOn'](_0x23ac52),{'commandName':_0x25c38,'commandParams':[]},_0x1fbc5c,_0x25c38);});});}_0x404671['descriptionFactory']['registerDescriptionCallback'](_0x2d1826=>{if('formatBlock'!=_0x2d1826['type']&&'formatInline'!=_0x2d1826['type'])return;const {data:_0xc8241}=_0x2d1826;return _0xc8241&&'mergeTableCells'==_0xc8241['commandName']?{'type':'format','content':o(_0x2c2785,'*Merge\x20cells*')}:void 0x0;}),_0x404671['descriptionFactory']['registerDescriptionCallback'](_0x10cc7b=>{if('formatBlock'!=_0x10cc7b['type']&&'formatInline'!=_0x10cc7b['type'])return;const {data:_0x40a6b5}=_0x10cc7b;return _0x40a6b5?'splitTableCellVertically'==_0x40a6b5['commandName']?{'type':'format','content':o(_0x2c2785,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x40a6b5['commandName']?{'type':'format','content':o(_0x2c2785,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4ecf77=_0x487226['_acceptFormatSuggestionCallbackFactory']();for(const _0x3b40e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x404671['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b40e0,'accept',_0x4ecf77);for(const _0x2684cf of['splitTableCellVertically','splitTableCellHorizontally'])_0x404671['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2684cf,'accept',_0x4ecf77);_0x404671['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x48c27e=>{_0x434483['model']['change'](_0x5afd60=>{const _0x326635=Array['from'](_0x3b6d9f['getRanges']())['map'](_0x51f3db=>_0x5da18b['fromRange'](_0x51f3db));_0x5afd60['setSelection'](_0x48c27e),_0x434483['commands']['get']('mergeTableCells')['refresh'](),_0x434483['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x234df7=_0x326635['filter'](_0x3e1be3=>'$graveyard'!=_0x3e1be3['root']['rootName']);_0x234df7['length']>0x0&&_0x5afd60['setSelection'](_0x234df7);for(const _0x4913f1 of _0x326635)_0x4913f1['detach']();});});for(const _0x35e732 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x21d23d=_0x434483['commands']['get'](_0x35e732);_0x21d23d['on']('set:isEnabled',(_0x4bcbfa,_0x24b2fb,_0x34720d)=>{if(_0x34720d){const _0x554a5c=_0x434483['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x37e105=>_0x37e105['is']('element','tableCell'));this['_areMergableCells'](_0x21d23d['value'],_0x554a5c)||(_0x4bcbfa['return']=!0x1,_0x4bcbfa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2451a9=this['editor']['commands']['get']('mergeTableCells'),_0x36eb87=this['editor']['plugins']['get']('TableUtils');if(!_0x2451a9['isEnabled'])return!0x1;const _0x27828f=_0x36eb87['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5b3bb6 of _0x27828f)for(const _0x1168bb of _0x27828f)if(_0x5b3bb6!=_0x1168bb&&!this['_areMergableCells'](_0x5b3bb6,_0x1168bb))return!0x1;return!0x0;}['_areMergableCells'](_0x15a9a3,_0x3d1098){const _0x3a5a36=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32441d=this['editor']['model']['createRangeOn'](_0x15a9a3),_0x578884=this['editor']['model']['createRangeOn'](_0x3d1098),_0x5f3d63=new Set(),_0x2158b1=new Set();for(const _0x3797d7 of _0x3a5a36['getSuggestions']())if(('insertion'==_0x3797d7['type']||'deletion'==_0x3797d7['type']||'mergeTableCells'==_0x3797d7['subType'])&&_0x3797d7['isInContent']){for(const _0x492e72 of _0x3797d7['getRanges']())_0x492e72['containsRange'](_0x32441d,!0x0)&&_0x5f3d63['add'](_0x3797d7['type']+':'+_0x3797d7['author']['id']),_0x492e72['containsRange'](_0x578884,!0x0)&&_0x2158b1['add'](_0x3797d7['type']+':'+_0x3797d7['author']['id']);}if(_0x5f3d63['size']!=_0x2158b1['size'])return!0x1;for(const _0x27db76 of _0x5f3d63)if(!_0x2158b1['has'](_0x27db76))return!0x1;return!0x0;}}class Ct extends _0x254461{static get['requires'](){return[It];}['afterInit'](){const _0x3eea52=this['editor'];if(!_0x3eea52['plugins']['has']('TableEditing'))return;const _0x70d51=_0x3eea52['locale'],_0x40faec=_0x3eea52['plugins']['get']('TrackChangesEditing');_0x40faec['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x40faec['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x40faec['registerBlockAttribute']('headingRows'),_0x40faec['registerBlockAttribute']('headingColumns'),_0x40faec['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x70d51,'FORMAT_HEADER_ROW')),_0x40faec['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x70d51,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e7a0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32e977=this['editor']['plugins']['get']('TableUtils'),_0x2ed893=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x241913({showActiveMarker:_0x239e6d=!0x0,setDataAttribute:_0x14d2c4=!0x0}={}){return(_0x34dcac,_0xe1707f,_0x4789bd)=>{const {type:_0x3b2193,id:_0x37d880}=_0x4e7a0e['_splitMarkerName'](_0xe1707f['markerName']),_0x18460c=_0x4e7a0e['getSuggestion'](_0x37d880),_0x354e7d=_0x18460c['data'];if('formatBlock'!=_0x18460c['type']||!_0x354e7d||'setTableColumnHeader'!=_0x354e7d['commandName'])return;if(_0xe1707f['item'])return void _0x34dcac['stop']();if(!_0x4789bd['consumable']['consume'](_0xe1707f['markerRange'],_0x34dcac['name']))return;const _0x46de17=_0xe1707f['markerRange']['start']['nodeAfter'],_0x3e0901=_0xe1707f['markerRange']['end']['nodeBefore'],_0x3d7ea6=_0x46de17['parent']['parent'],{column:_0x21e501}=_0x32e977['getCellLocation'](_0x46de17),{column:_0x3b1852}=_0x32e977['getCellLocation'](_0x3e0901);for(let _0x578c7f=_0x21e501;_0x578c7f<=_0x3b1852;_0x578c7f++){const _0x9d2394=_0x32e977['createTableWalker'](_0x3d7ea6,{'column':_0x578c7f,'includeAllSlots':!0x1});for(const _0x853fc1 of _0x9d2394){const _0x39ac30=_0x853fc1['cell'],_0xd3534a=_0x4789bd['mapper']['toViewElement'](_0x39ac30);_0x4789bd['writer']['addClass']('ck-suggestion-marker-'+_0x3b2193,_0xd3534a),_0x14d2c4&&_0x4789bd['writer']['setAttribute']('data-suggestion',_0x37d880,_0xd3534a),_0x4789bd['mapper']['bindElementToMarker'](_0xd3534a,_0xe1707f['markerName']),_0x239e6d&&(_0x4e7a0e['activeMarkers']['includes'](_0xe1707f['markerName'])?_0x4789bd['writer']['addClass']('ck-suggestion-marker--active',_0xd3534a):_0x4789bd['writer']['removeClass']('ck-suggestion-marker--active',_0xd3534a));}}};}_0x4e7a0e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ed893),_0x4e7a0e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ed893),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x241913(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2196e7,_0x3e121f,_0x817d6)=>{_0x817d6['options']['showSuggestionHighlights']&&_0x241913({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2196e7,_0x3e121f,_0x817d6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xc72151,_0x5557f4,_0x3562c9)=>{const {type:_0x3f9a40,id:_0x329857}=_0x4e7a0e['_splitMarkerName'](_0x5557f4['markerName']),_0x3fcd5d=_0x4e7a0e['getSuggestion'](_0x329857),_0xf843e=_0x3fcd5d['data'];if('formatBlock'!=_0x3fcd5d['type']||!_0xf843e||'setTableColumnHeader'!=_0xf843e['commandName'])return;const _0x45b022=_0x3562c9['mapper']['markerNameToElements'](_0x5557f4['markerName']);if(_0x45b022){for(const _0x149fda of _0x45b022)_0x3562c9['writer']['removeClass']('ck-suggestion-marker-'+_0x3f9a40,_0x149fda),_0x3562c9['writer']['removeClass']('ck-suggestion-marker--active',_0x149fda),_0x3562c9['writer']['removeAttribute']('data-suggestion',_0x149fda),_0x3562c9['mapper']['unbindElementFromMarkerName'](_0x149fda,_0x5557f4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x538d58=this['editor'],_0xa5aed5=_0x538d58['locale'];function _0x216716(_0xad78a5){return{'type':'format','content':o(_0xa5aed5,'*Format:*\x20%0',_0xad78a5)};}_0x538d58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b8ccc=>{if('formatBlock'!=_0x1b8ccc['type'])return;const {data:_0x4cf9c1}=_0x1b8ccc;if(_0x4cf9c1){if('setTableRowHeader'==_0x4cf9c1['commandName']){const _0x259398=_0x4cf9c1['commandParams'][0x0]['forceValue'];return _0x216716(o(_0xa5aed5,_0x259398?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4cf9c1['commandName']){const _0x5d0ac6=_0x4cf9c1['commandParams'][0x0]['forceValue'];return _0x216716(o(_0xa5aed5,_0x5d0ac6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x4b3f20=>[_0x4b3f20,null]));class _t extends _0x254461{static get['requires'](){return[It];}['afterInit'](){const _0x4144f2=this['editor'];if(!_0x4144f2['plugins']['has']('TableClipboard'))return;const _0x4323ab=_0x4144f2['plugins']['get']('TrackChangesEditing'),_0x4d34a8=_0x4144f2['plugins']['get']('TableUtils'),_0x3055eb=_0x4144f2['plugins']['get'](It),_0x40aacb=_0x4144f2['plugins']['get']('TableClipboard');_0x3055eb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4144f2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4144f2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3f2cd7=null;_0x4144f2['model']['on']('insertContent',(_0x27bef1,_0x4d0230)=>{const [_0x327849,_0x464c7b]=_0x4d0230,_0xc88e7f=_0x4d0230[_0x4d0230['length']-0x1];_0xc88e7f&&_0xc88e7f['forceDefaultExecution']||_0x4323ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x24175a,_0x3f0af3,_0x3c8ff0,_0x388172,_0x3109d1){if(_0x3f0af3&&!_0x3f0af3['is']('documentSelection'))return!0x1;const _0x1a6664=_0x3109d1['getTableIfOnlyTableInContent'](_0x24175a,_0x3c8ff0);if(!_0x1a6664||!Re(_0x1a6664,void 0x0,_0x388172))return!0x1;const _0x9321db=_0x388172['getSelectionAffectedTableCells'](_0x3c8ff0['document']['selection']);if(!_0x9321db['length'])return!0x1;const _0x273c85=_0x9321db[0x0]['findAncestor']('table'),_0x554a27=_0x388172['getRowIndexes'](_0x9321db),_0x1c7e5e=_0x388172['getColumnIndexes'](_0x9321db),_0xa109fa={'startRow':_0x554a27['first'],'endRow':_0x554a27['last'],'startColumn':_0x1c7e5e['first'],'endColumn':_0x1c7e5e['last']};return 0x1==_0x9321db['length']&&(_0xa109fa['endRow']+=_0x388172['getRows'](_0x1a6664)-0x1,_0xa109fa['endColumn']+=_0x388172['getColumns'](_0x1a6664)-0x1),Re(_0x273c85,_0xa109fa,_0x388172);}(_0x327849,_0x464c7b,_0x4144f2['model'],_0x4d34a8,_0x40aacb)&&(_0x27bef1['stop'](),_0x3f2cd7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4144f2['model']['change'](()=>{_0x4144f2['model']['insertContent'](_0x4d0230[0x0],_0x4d0230[0x1],_0x4d0230[0x2],{'forceDefaultExecution':!0x0});const _0x800e95=_0x461dff(),{rowInsertionRanges:_0x478850,columnInsertionRanges:_0x2903d3,insertionRanges:_0x5ed70e,deletionRanges:_0x5922c3,cells:_0x1ef1fd}=_0x3f2cd7;_0x478850['length']&&_0x4323ab['markMultiRangeInsertion'](_0x478850,'tablePasteRow',{'tablePasteChainId':_0x800e95}),_0x2903d3['length']&&_0x4323ab['markMultiRangeInsertion'](_0x2903d3,'tablePasteColumn',{'tablePasteChainId':_0x800e95}),_0x5ed70e['length']&&(_0x4323ab['markMultiRangeInsertion'](_0x5ed70e,'tablePaste',{'tablePasteChainId':_0x800e95,'skipNestingCheck':!0x0}),_0x5ed70e['forEach'](_0x1c7b56=>_0x1c7b56['detach']?.())),_0x5922c3['length']&&(_0x4323ab['markMultiRangeDeletion'](_0x5922c3,'tablePaste',{'tablePasteChainId':_0x800e95,'skipNestingCheck':!0x0}),_0x5922c3['forEach'](_0x3d5f0a=>_0x3d5f0a['detach']?.()));const _0x365605=_0x4323ab['markMultiRangeBlockFormat'](_0x1ef1fd['map'](({element:_0x4ba916})=>_0x4ba916),{'formatGroupId':_0x461dff()},[],'tablePasteCell',{'tablePasteChainId':_0x800e95});if(_0x365605){const _0x5ad7df=_0x365605['getMarkers'](),_0x41b291=[];for(const {element:_0x782a59,attributes:_0x2be4ce}of _0x1ef1fd){if(!_0x2be4ce)continue;const _0x2edbd8=_0x4144f2['model']['createRangeOn'](_0x782a59),_0x4c64ff=_0x5ad7df['find'](_0xba6321=>_0xba6321['getRange']()['isEqual'](_0x2edbd8));_0x4c64ff&&_0x41b291['push']([_0x4c64ff['name'],_0x2be4ce]);}_0x41b291['length']&&_0x365605['setAttribute']('markerAttributes',Object['fromEntries'](_0x41b291));}_0x3f2cd7=null;}));},{'priority':_0x568bb9['high']+0xa}),_0x4144f2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x365a50,_0x4d7b26)=>{const [_0x9dc50e,_0xcbb3ac,,_0x447898]=_0x4d7b26;if(!_0x3f2cd7)return;_0x365a50['stop']();const _0x575b96=_0x9dc50e['cell'],_0x245150=_0xcbb3ac,_0x25ff3f=ke(_0x575b96),_0x366bb8=ke(_0x245150);_0x365a50['return']=_0x575b96;let _0x5d8e66=null,_0x52b90e=null;if(_0x366bb8||_0x25ff3f){if(_0x25ff3f&&!_0x366bb8){_0x447898['remove'](_0x575b96['getChild'](0x0));for(const _0x2956d9 of Array['from'](_0x245150['getChildren']()))_0x447898['insert'](_0x2956d9,_0x575b96,'end');const _0x34b3f2=_0x3f2cd7['rowInsertionIndexes']['includes'](_0x9dc50e['row']),_0x167380=_0x3f2cd7['columnInsertionIndexes']['includes'](_0x9dc50e['column']);_0x34b3f2||_0x167380||(_0x5d8e66=_0x5da18b['fromRange'](_0x447898['createRangeIn'](_0x575b96)));}else _0x366bb8&&!_0x25ff3f&&(_0x52b90e=_0x447898['createRangeIn'](_0x575b96));}else{const _0x1882f3=_0x447898['createElement']('tableCellSuggestion'),_0x2a4848=_0x447898['createElement']('tableCellSuggestion');_0x447898['wrap'](_0x447898['createRangeIn'](_0x575b96),_0x2a4848),_0x447898['insert'](_0x1882f3,_0x575b96,0x0);for(const _0x465ef1 of Array['from'](_0x245150['getChildren']()))_0x447898['insert'](_0x465ef1,_0x1882f3,'end');_0x5d8e66=_0x5da18b['fromRange'](_0x447898['createRangeOn'](_0x1882f3)),_0x52b90e=_0x5da18b['fromRange'](_0x447898['createRangeOn'](_0x2a4848));}const _0x8aacf1=Array['from'](_0x245150['getAttributes']())['filter'](([_0x39e050])=>Pe['includes'](_0x39e050));_0x3f2cd7['cells']['push']({'element':_0x575b96,'attributes':_0x8aacf1['length']?Object['fromEntries'](_0x8aacf1):null}),_0x5d8e66&&_0x3f2cd7['insertionRanges']['push'](_0x5d8e66),_0x52b90e&&_0x3f2cd7['deletionRanges']['push'](_0x52b90e);},{'priority':'high'}),_0x4d34a8['on']('insertColumns',(_0x2b9027,_0x154e84)=>{const [_0x37b986,_0x57ebe2={}]=_0x154e84;if(!_0x3f2cd7)return;const _0x8fb423=_0x57ebe2['at']||0x0,_0x3e4d13=_0x57ebe2['columns']||0x1;_0x3f2cd7['columnInsertionIndexes']=new Array(_0x3e4d13)['fill'](_0x8fb423)['map']((_0x1ab05d,_0x2009f1)=>_0x1ab05d+_0x2009f1);for(const {cell:_0x5eddc4}of _0x4d34a8['createTableWalker'](_0x37b986,{'startColumn':_0x8fb423,'endColumn':_0x8fb423+_0x3e4d13-0x1}))_0x3f2cd7['columnInsertionRanges']['push'](_0x4144f2['model']['createRangeOn'](_0x5eddc4));},{'priority':'low'}),_0x4d34a8['on']('insertRows',(_0x377b5a,_0x176f55)=>{const [_0x45a9c2,_0x45ca70={}]=_0x176f55;if(!_0x3f2cd7)return;const _0x1cdea6=_0x45ca70['at']||0x0,_0x38fb93=_0x45ca70['rows']||0x1;_0x3f2cd7['rowInsertionIndexes']=new Array(_0x38fb93)['fill'](_0x1cdea6)['map']((_0x270ac0,_0xb26997)=>_0x270ac0+_0xb26997);for(const {cell:_0x4f08ac}of _0x4d34a8['createTableWalker'](_0x45a9c2,{'startRow':_0x1cdea6,'endRow':_0x1cdea6+_0x38fb93-0x1}))_0x3f2cd7['rowInsertionRanges']['push'](_0x4144f2['model']['createRangeOn'](_0x4f08ac));},{'priority':'low'}),_0x4323ab['descriptionFactory']['registerDescriptionCallback'](_0x5be2c4=>{if(_0x5be2c4['subType']&&_0x5be2c4['subType']['startsWith']('tablePaste'))return _0x5be2c4['previous']?{}:{'type':'insertion','content':o(_0x4144f2['locale'],'*Replace\x20table\x20cells*')};});const _0x5b4004=()=>!0x1;for(const _0x4dfc01 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4323ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x4dfc01,'join',_0x5b4004),_0x4323ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x4dfc01,'join',_0x5b4004),_0x4323ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4dfc01,'join',_0x5b4004);_0x4323ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5b4004),_0x4323ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5a8d89,_0x42e6f3,_0x409abb)=>{const _0x3d27bf=_0x5a8d89['map'](_0x4edb6c=>_0x4edb6c['getContainedElement']())['filter'](_0x4db813=>_0x4db813),_0x55ae1d=new Map(_0x3d27bf['map'](_0x1d9c87=>[_0x1d9c87,null]));if(_0x3f2cd7){for(const {element:_0x4e0099,attributes:_0x33f382}of _0x3f2cd7['cells'])_0x33f382&&_0x55ae1d['set'](_0x4e0099,_0x33f382);}else{if(_0x409abb&&_0x409abb['markerAttributes'])for(const [_0x4a8864,_0x5d0e3f]of Object['entries'](_0x409abb['markerAttributes'])){const _0x2af0d2=_0x4144f2['model']['markers']['get'](_0x4a8864),_0x46ce04=_0x2af0d2?_0x2af0d2['getRange']()['getContainedElement']():null;_0x46ce04&&_0x55ae1d['set'](_0x46ce04,_0x5d0e3f);}}_0x4144f2['model']['change'](_0x3db8d3=>{for(const [_0x287d06,_0x1f71ba]of _0x55ae1d)_0x3db8d3['setAttributes']({...we,..._0x1f71ba},_0x287d06);});});const _0x25caab=(_0x3d90b8,_0x38fb78)=>{_0x4323ab['_suggestionFactory']['registerCustomCallback'](_0x3d90b8,'tablePaste',_0x38fb78,(_0x1d0f19,_0x25f6bb,_0x557fb8)=>{_0x4144f2['model']['change'](_0x27b936=>{const _0x90e6ba=[];for(const _0x46ac56 of _0x1d0f19){const _0x37bc3f=_0x46ac56['start']['nodeAfter'];_0x37bc3f['is']('element','tableCellSuggestion')&&_0x90e6ba['push'](_0x37bc3f);}_0x4323ab['_suggestionFactory']['getSuggestionCallback'](_0x3d90b8,null,_0x38fb78)(_0x1d0f19,_0x25f6bb,_0x557fb8);for(const _0xb98f3c of _0x90e6ba)'$graveyard'!=_0xb98f3c['root']['rootName']&&_0x27b936['unwrap'](_0xb98f3c);});});};_0x25caab('insertion','accept'),_0x25caab('insertion','discard'),_0x25caab('deletion','accept'),_0x25caab('deletion','discard'),_0x4323ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x534f5c=>{const _0x2084a7=_0x534f5c['map'](_0x4769b8=>_0x4769b8['getContainedElement']()),_0x42a17f=_0x2084a7[0x0]['findAncestor']('table'),{minRow:_0x5a08e6,maxRow:_0x51f3ce}=_0x3055eb['_getCoordsForCells'](_0x2084a7);_0x4d34a8['removeRows'](_0x42a17f,{'at':_0x5a08e6,'rows':_0x51f3ce-_0x5a08e6+0x1});}),_0x4323ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x26ca49=>{const _0x37ff39=_0x26ca49['map'](_0x13be1c=>_0x13be1c['getContainedElement']()),_0x2432b5=_0x37ff39[0x0]['findAncestor']('table'),{minColumn:_0x3ed95a,maxColumn:_0x34b756}=_0x3055eb['_getCoordsForCells'](_0x37ff39);_0x4d34a8['removeColumns'](_0x2432b5,{'at':_0x3ed95a,'columns':_0x34b756-_0x3ed95a+0x1});});const _0x38909b=(_0x36b449,_0x5577b1)=>{if(!_0x5577b1['subType']||!_0x5577b1['subType']['startsWith']('tablePaste'))return;const _0x23c756=_0x5577b1['attributes']['tablePasteChainId'],_0x318583=_0x4323ab['getSuggestions']()['filter'](_0x23c2cb=>_0x23c2cb['isInContent']&&_0x23c2cb['attributes']&&_0x23c2cb['attributes']['tablePasteChainId']==_0x23c756);_0x318583['length']&&_0x5577b1['getAllAdjacentSuggestions']()['length']!=_0x318583['length']&&_0x318583['reduce']((_0x4c569b,_0x44ea6c)=>(_0x4c569b['next']=_0x44ea6c,_0x44ea6c['previous']=_0x4c569b,_0x44ea6c));};function _0x3b8498(_0x4d74fe,_0x2be634=!0x0){const {id:_0x49ce74,authorId:_0x1cf474}=_0x4323ab['_splitMarkerName'](_0x4d74fe['markerName']),_0x21baa6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40b3c1=_0x4323ab['activeMarkers']['includes'](_0x4d74fe['markerName']);return _0x40b3c1&&_0x21baa6['push']('ck-suggestion-marker--active'),{'classes':_0x21baa6,'attributes':{'data-suggestion':_0x49ce74,'data-author-id':_0x1cf474},'priority':_0x40b3c1&&_0x2be634?0xbc2:0xbb8};}_0x4323ab['on']('suggestionLoaded',_0x38909b,{'priority':'high'}),_0x4323ab['on']('suggestionUnloaded',_0x38909b,{'priority':'high'}),_0x4144f2['model']['document']['registerPostFixer'](()=>{let _0x70a194=!0x1;const _0x2644cd=Array['from'](_0x4144f2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14b9d4,data:_0x4b74f4}of _0x2644cd){const {group:_0x34ca99,type:_0x3b80c6,id:_0xa06d32}=_0x4323ab['_splitMarkerName'](_0x14b9d4);if('suggestion'!=_0x34ca99||'deletion'!=_0x3b80c6||_0x4b74f4['oldRange'])continue;if(!_0x4323ab['hasSuggestion'](_0xa06d32))continue;const _0x46b8c8=_0x4323ab['getSuggestion'](_0xa06d32)['getRanges'](),_0x3c3151=_0x4144f2['plugins']['get']('Users')['me'];for(const _0x3d5079 of _0x4323ab['getSuggestions']()){if(!_0x3d5079['isInContent']||_0x3d5079['author']!=_0x3c3151)continue;if('formatBlock'!=_0x3d5079['type']||'tablePasteCell'!=_0x3d5079['subType'])continue;if(_0x3d5079['getRanges']()['every'](_0x29d6f4=>_0x46b8c8['some'](_0x156f89=>_0x156f89['containsRange'](_0x29d6f4,!0x0)))){for(const _0x899920 of _0x3d5079['getAllAdjacentSuggestions']())_0x899920['isInContent']&&(_0x899920['discard'](),_0x70a194=!0x0);}}}return _0x70a194;}),_0x4144f2['model']['document']['registerPostFixer'](_0x2f14b3=>{const _0x3e3379=_0x4144f2['commands']['get']('redo');if(!_0x3e3379||!_0x3e3379['_createdBatches']['has'](_0x2f14b3['batch']))return!0x1;let _0x500fcd=!0x1;const _0x2cc1d4=_0x4144f2['plugins']['get']('Users')['me'],_0x41f941=_0x4144f2['model']['document']['differ']['getChanges'](),_0x4024d7=Array['from'](_0x4144f2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2a325f,data:_0x3f4079})=>{const {group:_0x3007ec,subType:_0x5e21ce,authorId:_0x4a6b35}=_0x4323ab['_splitMarkerName'](_0x2a325f);return'suggestion'==_0x3007ec&&'tablePaste'==_0x5e21ce&&_0x4a6b35==_0x2cc1d4['id']&&!_0x3f4079['oldRange'];});for(const _0x3f29f3 of _0x41f941){if('insert'!=_0x3f29f3['type']||'tableCellSuggestion'!=_0x3f29f3['name']||0x1!=_0x3f29f3['length'])continue;const _0x214edd=_0x2f14b3['createRange'](_0x3f29f3['position'],_0x3f29f3['position']['getShiftedBy'](0x1));if(!_0x4024d7['find'](({data:_0xe5361b})=>_0xe5361b['newRange']['isEqual'](_0x214edd))){for(const {name:_0x2f4124,data:_0x25068f}of _0x4024d7)if(_0x214edd['containsRange'](_0x25068f['newRange'])){_0x2f14b3['updateMarker'](_0x2f4124,{'range':_0x214edd}),_0x500fcd=!0x0;break;}}}return _0x500fcd;}),_0x4144f2['model']['document']['registerPostFixer'](_0x2e9db3=>{let _0x55c133=!0x1;const _0x25f6ca=_0x4144f2['plugins']['get']('Users')['me'],_0x45398d=_0x4323ab['getSuggestions']()['filter'](_0xf53e32=>_0xf53e32['isInContent']&&_0xf53e32['author']==_0x25f6ca),_0x4890a5=new Set(),_0x89c330=new Set();for(const _0xb1a5f1 of _0x45398d)if('tablePaste'==_0xb1a5f1['subType'])for(const _0xb5adc5 of _0xb1a5f1['getMarkers']()){const _0x1c1228=_0xb5adc5['getRange']()['getContainedElement']();if(_0x1c1228){if(_0x1c1228['is']('element','tableCellSuggestion')&&ke(_0x1c1228)){_0xb1a5f1['removeMarker'](_0xb5adc5['name']),_0x4890a5['add'](_0x1c1228),_0x55c133=!0x0;const _0x1ea54a=_0x1c1228['nextSibling'],_0xa6a51f=_0x1c1228['previousSibling'],_0x156f7f=_0x1ea54a&&_0x1ea54a['is']('element','tableCellSuggestion'),_0x2d66ab=_0xa6a51f&&_0xa6a51f['is']('element','tableCellSuggestion');_0x156f7f&&!_0x4890a5['has'](_0x1ea54a)&&_0x89c330['add'](_0x1ea54a),_0x2d66ab&&!_0x4890a5['has'](_0xa6a51f)&&_0x89c330['add'](_0xa6a51f);}else _0x1c1228['is']('element','paragraph')&&_0x1c1228['isEmpty']&&(_0xb1a5f1['removeMarker'](_0xb5adc5['name']),_0x55c133=!0x0);}}else{if('tablePasteCell'==_0xb1a5f1['subType']){if(!_0xb1a5f1['attributes']||!_0xb1a5f1['attributes']['tablePasteChainId'])continue;const _0x47e5fd=_0xb1a5f1['attributes']['markerAttributes'];if(_0x47e5fd&&Object['keys'](_0x47e5fd)['length'])continue;const _0x1f88ab=_0xb1a5f1['attributes']['tablePasteChainId'];let _0x4d6bd9=!0x0,_0x15c75e=!0x0;for(const _0x1f3f3b of _0x45398d)if(_0x1f3f3b['subType']&&_0x1f3f3b['subType']['startsWith']('tablePaste')){if(!_0x1f3f3b['attributes']['tablePasteChainId']){_0x15c75e=!0x1;break;}if(_0x1f3f3b['id']!=_0xb1a5f1['id']&&_0x1f3f3b['attributes']['tablePasteChainId']==_0x1f88ab){_0x4d6bd9=!0x1;break;}}_0x15c75e&&_0x4d6bd9&&(_0xb1a5f1['removeMarkers'](),_0x55c133=!0x0);}}for(const _0x32987f of _0x4890a5)_0x2e9db3['remove'](_0x32987f);for(const _0x26f966 of _0x89c330)_0x2e9db3['unwrap'](_0x26f966);return _0x55c133;}),_0x4144f2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xcf3073=>_0x3b8498(_0xcf3073),'converterPriority':'high'}),_0x4144f2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19775a,_0x17cef2)=>_0x17cef2['options']['showSuggestionHighlights']?_0x3b8498(_0x19775a,!0x1):null,'converterPriority':'high'});const _0x51f671=_0x4144f2['editing']['view'];this['listenTo'](_0x51f671['document'],'clipboardOutput',(_0x310b72,_0x5548b7)=>{const _0x50545b=[];for(const _0x320f78 of _0x51f671['createRangeIn'](_0x5548b7['content'])['getItems']())_0x320f78['is']('element','suggestion-td')&&_0x50545b['push'](_0x320f78);_0x51f671['change'](_0xdd4293=>{for(const _0x1bd042 of _0x50545b)_0xdd4293['move'](_0xdd4293['createRangeIn'](_0x1bd042),_0xdd4293['createPositionBefore'](_0x1bd042)),_0xdd4293['remove'](_0x1bd042);});});}}function ke(_0x269b2d){if(_0x269b2d['isEmpty'])return!0x0;const _0x31df27=_0x269b2d['getChild'](0x0);return _0x31df27['is']('element','paragraph')&&_0x31df27['isEmpty'];}function Re(_0x45d4b6,_0x29d567={},_0x3f6420){for(const {isAnchor:_0x5b2488,cellHeight:_0x50775a,cellWidth:_0x18fdd6}of _0x3f6420['createTableWalker'](_0x45d4b6,{'includeAllSlots':!0x0,..._0x29d567}))if(!_0x5b2488||0x1!=_0x50775a||0x1!=_0x18fdd6)return!0x1;return!0x0;}class Nt extends _0x254461{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x50a51b=this['editor']['plugins']['get']('TrackChangesEditing');_0x50a51b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x50a51b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x50a51b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a51b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x50a51b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x50a51b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x17f0c6,_0x476bac){const _0x5465ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56bbfb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x292b55=_0x476bac['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f7099=_0x56bbfb['getColumnGroupElement'](_0x292b55);let _0x37e809=_0x3f7099?_0x56bbfb['getTableColumnsWidths'](_0x3f7099):null,_0x37a8d2=_0x292b55['getAttribute']('tableWidth')||null;const _0xd6eb94=_0x476bac['tableWidth']||_0x37a8d2,_0x3f7a57=_0x476bac['columnWidths']||_0x37e809,_0x9fceff=this['editor']['plugins']['get']('Users')['me'];for(const _0x1a0c31 of _0x5465ca['getSuggestions']()){const _0x34bc3e=_0x1a0c31['getContainedElement']();if('resizeTable'===_0x1a0c31['subType']&&_0x34bc3e===_0x292b55){_0x1a0c31['author']!==_0x9fceff&&_0x1a0c31['discard']();const _0x46ae60=_0x1a0c31['data']['commandParams'];_0x37a8d2=_0x46ae60[0x0]['tableWidth'],_0x37e809=_0x46ae60[0x0]['columnWidths'];break;}}_0x17f0c6({'table':_0x292b55,'tableWidth':_0xd6eb94,'columnWidths':_0x3f7a57}),_0x5465ca['markBlockFormat'](_0x292b55,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x37a8d2,'columnWidths':_0x37e809}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17cb7c){if('formatBlock'!=_0x17cb7c['type']&&'formatInline'!=_0x17cb7c['type'])return;const {data:_0x25bde4}=_0x17cb7c;if(_0x25bde4&&'resizeTable'===_0x25bde4['formatGroupId']){const _0x46d8ce='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x46d8ce)};}}}class Dt extends _0x254461{['afterInit'](){const _0x45d43f=this['editor'];_0x45d43f['plugins']['has']('Template')&&_0x45d43f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x254461{['afterInit'](){const _0x2a2114=this['editor'];if(!_0x2a2114['commands']['get']('insertTableOfContents'))return;_0x2a2114['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x249bb9=_0x2a2114['plugins']['get']('TrackChangesEditing'),_0x19216e=_0x2a2114['locale'];_0x249bb9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x504447=>o(_0x19216e,'ELEMENT_TABLE_OF_CONTENTS',_0x504447));}}class $t extends _0x254461{['afterInit'](){const _0x24285b=this['editor'];if(!_0x24285b['plugins']['has']('Title'))return;const _0x1953e1=_0x24285b['plugins']['get']('TrackChangesEditing');_0x1953e1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x24285b['locale'],'ELEMENT_TITLE')),_0x24285b['model']['document']['registerPostFixer'](_0x37d911=>{let _0x453817=!0x1;const _0xdb7fdf=Array['from'](_0x24285b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2780bc,data:_0x3f7923}of _0xdb7fdf){const {group:_0xbcdcfb}=_0x1953e1['_splitMarkerName'](_0x2780bc);if('suggestion'!==_0xbcdcfb||!_0x3f7923['newRange'])continue;const _0x23121c=_0x3f7923['newRange'],_0x77a0a=_0x23121c['end']['nodeBefore'];if(!_0x77a0a||!_0x77a0a['is']('element','title-content'))continue;if(!_0x23121c['start']['isTouching'](_0x23121c['end']))continue;const _0x3d5269=_0x24285b['model']['schema']['getNearestSelectionRange'](_0x23121c['end'],'forward');if(_0x3d5269&&_0x3d5269['isCollapsed']){const _0x27727a=_0x37d911['createRange'](_0x23121c['start'],_0x3d5269['start']);_0x27727a['isEqual'](_0x23121c)||(_0x37d911['updateMarker'](_0x2780bc,{'range':_0x27727a}),_0x453817=!0x0);}_0x453817||(_0x37d911['removeMarker'](_0x2780bc),_0x453817=!0x0);}return _0x453817;});}}class Bt extends _0x254461{['afterInit'](){const _0x3dca43=this['editor'],_0x2a183f=_0x3dca43['plugins']['get']('TrackChangesEditing');_0x3dca43['plugins']['has']('UndoEditing')&&(_0x2a183f['enableCommand']('undo'),_0x2a183f['enableCommand']('redo'));}}class xt extends _0x254461{static get['requires'](){return[It];}['afterInit'](){const _0x36d0e9=this['editor'];if(!_0x36d0e9['plugins']['has']('TableCaptionEditing'))return;_0x36d0e9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x254461{['tableProperties'];['tableCellProperties'];constructor(_0xed5e3d){super(_0xed5e3d),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 _0xad1dd5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1f6e44 of this['tableProperties'])_0xad1dd5['enableCommand'](_0x1f6e44,(_0x3b9254,_0x233aa7)=>{const _0x567d46=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1f6e44,[_0x567d46],this['tableProperties'],'tableProperties',_0x3b9254,_0x233aa7);});_0xad1dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xad1dd5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xad1dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3c399d,_0x174adb)=>this['handleDiscardAction'](this['tableProperties'],_0x3c399d,_0x174adb)),_0xad1dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b961e of this['tableCellProperties'])_0xad1dd5['enableCommand'](_0x4b961e,(_0x1ebcd,_0x14be79)=>{const _0xfeac1d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b961e,_0xfeac1d,this['tableCellProperties'],'tableCellProperties',_0x1ebcd,_0x14be79);});_0xad1dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xad1dd5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xad1dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x290f1e,_0x5f30f5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x290f1e,_0x5f30f5)),_0xad1dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xad1dd5['descriptionFactory']['registerDescriptionCallback'](_0x389b4e=>this['handleSuggestionDescription'](_0x389b4e));}['_handlePropertyChange'](_0x9aa295,_0x53e7cc,_0x8c235d,_0xf419fd,_0x2812a0,_0x4de8da){const _0x49b12d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4de8da['batch'],()=>{for(const _0x55d392 of _0x53e7cc){if(this['_getSuggestion'](_0x55d392,_0xf419fd))_0x2812a0(_0x4de8da);else{const _0x5d66e2={};for(const _0x2ad970 of _0x8c235d){const _0x49b3c0=_0x55d392['getAttribute'](_0x2ad970);void 0x0!==_0x49b3c0&&(_0x5d66e2[_0x2ad970]=_0x49b3c0);}_0x2812a0(_0x4de8da),_0x49b12d['markBlockFormat'](_0x55d392,{'commandParams':[_0x5d66e2]},[],_0xf419fd);}}});}['handleDiscardAction'](_0x37bd4b,_0x189775,_0x1565d6){const _0xdcdbf2=_0x189775[0x0]['start']['nodeAfter'],_0x3a5a61=_0x1565d6['commandParams'][0x0];this['editor']['model']['change'](_0x524c75=>{for(const _0x412e12 of _0x37bd4b)void 0x0!==_0x3a5a61[_0x412e12]?_0x524c75['setAttribute'](_0x412e12,_0x3a5a61[_0x412e12],_0xdcdbf2):_0x524c75['removeAttribute'](_0x412e12,_0xdcdbf2);});}['handleSuggestionDescription'](_0x3070b5){if(_0x3070b5['data'])switch(_0x3070b5['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'](_0x93599e,_0x337b3c){const _0x2e5f33=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x7170fc of _0x2e5f33['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ebdbd=_0x7170fc['getContainedElement']();if(_0x7170fc['subType']===_0x337b3c&&_0x4ebdbd===_0x93599e)return _0x7170fc;}return null;}}const m='$elementName';class p extends _0x254461{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1ed7f3,_0x4893ce,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1886de){function _0x5b9077(_0x549d01){return _0x549d01['map'](_0x3959b5=>String['fromCharCode'](_0x3959b5))['join']('');}super(_0x1886de),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x15f000,_0x15228b,_0x5ca84c,_0x58c1c7)=>{this['_model']['change'](()=>{for(const _0x18dcee of[..._0x58c1c7,..._0x5ca84c])this['_model']['markers']['has'](_0x18dcee)&&_0x1886de['editing']['reconvertMarker'](_0x18dcee);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1886de['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(),_0x1886de['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1886de['config']['get']('trackChanges.trackFormatChanges'),_0x1886de['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1886de['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1886de,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5b9077([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5b9077([0x34,0x30,0x34,0x38,0x32,0x30,0x32,0x38]);}['init'](){const _0x4456a9=this['editor'],_0x591f3d=(_0x22d13f,_0x5c15a4)=>{if('attribute'!=_0x22d13f)return'ck-suggestion-marker-'+_0x22d13f;const _0x1ca9b9=_0x5c15a4['split']('|')[0x0];return this['_isBlockAttribute'](_0x1ca9b9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4456a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1dc7d7=>{const {id:_0x3640da,authorId:_0xac6cd2,type:_0x5d5e3b,subType:_0x414256}=this['_splitMarkerName'](_0x1dc7d7['markerName']),_0x38daba=['ck-suggestion-marker',_0x591f3d(_0x5d5e3b,_0x414256)];let _0x7cf49d=0xbb8;return this['activeMarkers']['includes'](_0x1dc7d7['markerName'])&&(_0x38daba['push']('ck-suggestion-marker--active'),_0x7cf49d=0xbc2),'deletion'==_0x5d5e3b&&(_0x7cf49d+=0x5),{'classes':_0x38daba,'attributes':{'data-suggestion':_0x3640da,'data-author-id':_0xac6cd2},'priority':_0x7cf49d};}}),_0x4456a9['conversion']['for']('dataDowncast')['add'](_0x59f55b=>{_0x59f55b['on']('addMarker:suggestion',(_0x3aa5d3,_0x238eef,_0x81f112)=>{if(!_0x81f112['options']['showSuggestionHighlights'])return;const _0x5c5aa0=_0x238eef['item'];if(!_0x5c5aa0)return;const _0x4a0a4a=_0x81f112['mapper']['toViewElement'](_0x5c5aa0);_0x4456a9['model']['schema']['isObject'](_0x5c5aa0)&&_0x4a0a4a&&!_0x4a0a4a['getCustomProperty']('widget')&&_0x4a0a4a['is']('containerElement')&&_0x378e21(_0x4a0a4a,_0x81f112['writer']);},{'priority':'high'});}),_0x4456a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x13a910,_0x2274ca)=>{if(!_0x2274ca['options']['showSuggestionHighlights'])return null;const {type:_0x17c5b5,subType:_0x556444}=this['_splitMarkerName'](_0x13a910['markerName']);return{'classes':['ck-suggestion-marker',_0x591f3d(_0x17c5b5,_0x556444)],'priority':0xbb8};}});const _0x1c094e=({showActiveMarkers:_0x53ac1d=!0x0,isAttributeSuggestion:_0x3eaf31=!0x1}={})=>(_0x394e33,_0x428aa8,_0x4be60b)=>{if(!_0x428aa8['item'])return;const {id:_0x46be53,authorId:_0x58a479}=this['_splitMarkerName'](_0x428aa8['markerName']);if(_0x3eaf31){const _0x5414c2=this['_suggestions']['get'](_0x46be53),_0x4c367a=this['_getAttributeKey'](_0x5414c2);if(!this['_isBlockAttribute'](_0x4c367a))return;}if(_0x428aa8['item']['is']('selection'))return void _0x4be60b['consumable']['consume'](_0x428aa8['item'],_0x394e33['name']);const _0x595479=_0x4be60b['mapper']['toViewElement'](_0x428aa8['item']);if(_0x428aa8['item']['is']('element')&&_0x4456a9['model']['schema']['isBlock'](_0x428aa8['item'])&&!_0x595479['getCustomProperty']('addHighlight')){_0x4be60b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x595479),_0x4be60b['writer']['setAttribute']('data-suggestion',_0x46be53,_0x595479),_0x4be60b['writer']['setAttribute']('data-author-id',_0x58a479,_0x595479),_0x4be60b['mapper']['bindElementToMarker'](_0x595479,_0x428aa8['markerName']),_0x53ac1d&&(this['activeMarkers']['includes'](_0x428aa8['markerName'])?_0x4be60b['writer']['addClass']('ck-suggestion-marker--active',_0x595479):_0x4be60b['writer']['removeClass']('ck-suggestion-marker--active',_0x595479));for(const _0x37d8d6 of _0x4456a9['model']['createRangeIn'](_0x428aa8['item'])['getItems']())_0x4be60b['consumable']['consume'](_0x37d8d6,_0x394e33['name']);_0x4be60b['consumable']['consume'](_0x428aa8['item'],_0x394e33['name']);}};_0x4456a9['conversion']['for']('dataDowncast')['add'](_0x1d540b=>{_0x1d540b['on']('addMarker:suggestion:formatBlock',(_0x3d63e6,_0x27ae87,_0x1c55d5)=>{_0x1c55d5['options']['showSuggestionHighlights']&&_0x1c094e({'showActiveMarkers':!0x1})(_0x3d63e6,_0x27ae87,_0x1c55d5);},{'priority':'highest'});}),_0x4456a9['conversion']['for']('dataDowncast')['add'](_0x312b55=>{_0x312b55['on']('addMarker:suggestion:attribute',(_0x372d2a,_0x4e5974,_0x5159c7)=>{_0x5159c7['options']['showSuggestionHighlights']&&_0x1c094e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x372d2a,_0x4e5974,_0x5159c7);},{'priority':'highest'});}),_0x4456a9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24c645,_0x10af89)=>_0x10af89['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24c645['substr'](0xb)}}),_0x4456a9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5384ba,{writer:_0x3390a4})=>{let _0x4355bc='suggestion:'+_0x5384ba['getAttribute']('suggestion-type')+':'+_0x5384ba['getAttribute']('id');return _0x5384ba['getAttribute']('marker-count')&&(_0x4355bc+=':'+_0x5384ba['getAttribute']('marker-count')),_0x3390a4['createElement']('$marker',{'data-name':_0x4355bc});}}),_0x4456a9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4456a9['conversion']['for']('editingDowncast')['add'](_0x1801b0=>{_0x1801b0['on']('addMarker:suggestion:formatBlock',_0x1c094e(),{'priority':'high'});}),_0x4456a9['conversion']['for']('editingDowncast')['add'](_0x4cf61e=>{_0x4cf61e['on']('addMarker:suggestion:attribute',_0x1c094e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4456a9['conversion']['for']('editingDowncast')['add'](_0x19b76d=>{_0x19b76d['on']('removeMarker:suggestion:formatBlock',(_0x2d2ab4,_0x1dbd99,_0x22d762)=>{const _0x1b8b92=_0x22d762['mapper']['markerNameToElements'](_0x1dbd99['markerName']);if(_0x1b8b92){for(const _0x56b520 of _0x1b8b92)_0x56b520['getCustomProperty']('addHighlight')||(_0x22d762['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x56b520),_0x22d762['writer']['removeAttribute']('data-suggestion',_0x56b520),_0x22d762['writer']['removeAttribute']('data-author-id',_0x56b520),_0x22d762['mapper']['unbindElementFromMarkerName'](_0x56b520,_0x1dbd99['markerName']));}},{'priority':'high'});}),_0x4456a9['conversion']['for']('editingDowncast')['add'](_0x1cc84e=>{_0x1cc84e['on']('removeMarker:suggestion:attribute',(_0x2bf01f,_0x5803c4,_0x2678f0)=>{const _0x1d3abb=_0x2678f0['mapper']['markerNameToElements'](_0x5803c4['markerName']);if(!_0x1d3abb)return;const {id:_0x30014c}=this['_splitMarkerName'](_0x5803c4['markerName']),_0x1c2d1c=this['_suggestions']['get'](_0x30014c),_0x5cd786=this['_getAttributeKey'](_0x1c2d1c);if(this['_isBlockAttribute'](_0x5cd786)){for(const _0x5ba942 of _0x1d3abb)_0x5ba942['getCustomProperty']('addHighlight')||(_0x2678f0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5ba942),_0x2678f0['writer']['removeAttribute']('data-suggestion',_0x5ba942),_0x2678f0['writer']['removeAttribute']('data-author-id',_0x5ba942),_0x2678f0['mapper']['unbindElementFromMarkerName'](_0x5ba942,_0x5803c4['markerName']));}},{'priority':'high'});}),_0x4456a9['model']['document']['registerPostFixer'](_0x45e5e7=>{let _0x782579=!0x1;const _0x4aeba3=Array['from'](_0x4456a9['model']['document']['differ']['getChangedMarkers']()),_0xc78d92=new Set();for(const {name:_0x10e911,data:_0x504f66}of _0x4aeba3){const {group:_0x3f4447,type:_0x21fc85,subType:_0x3c8fa6,id:_0x314f95}=this['_splitMarkerName'](_0x10e911);if('suggestion'!==_0x3f4447)continue;const _0x2c9e9f=this['_suggestions']['get'](_0x314f95);if(null!=_0x504f66['newRange']){'formatInline'==_0x21fc85&&(_0x782579=_0x782579||Ut(_0x504f66['newRange'],_0x10e911,_0x45e5e7,_0x4456a9['model']['schema']));const _0x21c23b='attribute'==_0x21fc85&&this['_isBlockAttribute'](_0x3c8fa6['split']('|')[0x0]);if(_0x504f66['newRange']['isCollapsed']||'$graveyard'==_0x504f66['newRange']['root']['rootName']||'formatBlock'==_0x21fc85&&!Ft(_0x504f66['newRange'])||_0x21c23b&&!Ft(_0x504f66['newRange'])||'deletion'==_0x21fc85&&!(!Vt(_0x1d864f=_0x504f66['newRange'])&&!function(_0x42c303){return _0x42c303['start']['parent']==_0x42c303['end']['nodeBefore']&&_0x42c303['start']['isAtEnd'];}(_0x1d864f)))_0x45e5e7['removeMarker'](_0x10e911),_0x782579=!0x0;else{if(!_0x2c9e9f||!_0x2c9e9f['isInContent'])continue;if(_0x504f66['newRange']&&_0x504f66['oldRange']&&_0x504f66['newRange']['isEqual'](_0x504f66['oldRange']))continue;_0xc78d92['add'](_0x2c9e9f);}}}var _0x1d864f;return _0xc78d92['size']>0x0&&(_0x782579=!!this['_joinWithAdjacentSuggestions'](_0xc78d92)||_0x782579),_0x782579;}),_0x4456a9['model']['document']['registerPostFixer'](_0x2d86fc=>{let _0x230683=!0x1;for(const _0x240083 of _0x4456a9['model']['document']['differ']['getChanges']())if('insert'==_0x240083['type'])for(const _0x53d1aa of this['_suggestions']['values']()){if(_0x53d1aa['isMultiRange']||!_0x53d1aa['isInContent'])continue;const _0x34f90c='formatBlock'==_0x53d1aa['type'],_0x910da0=this['_getAttributeKey'](_0x53d1aa),_0x1f021e=_0x910da0&&this['_isBlockAttribute'](_0x910da0);if(!_0x34f90c&&!_0x1f021e)continue;const _0xd81094=_0x53d1aa['getFirstRange']();if(_0xd81094['start']['parent']!=_0xd81094['end']['parent']&&!_0xd81094['end']['isAtEnd']){const _0xf614c7=_0x4456a9['model']['createPositionAt'](_0xd81094['start']['nodeAfter'],'end'),_0x29b50d=_0x4456a9['model']['createRange'](_0xd81094['start'],_0xf614c7);_0x2d86fc['updateMarker'](_0x53d1aa['getFirstMarker'](),{'range':_0x29b50d}),_0x230683=!0x0;}}return _0x230683;}),_0x4456a9['model']['document']['registerPostFixer'](_0x22c22d=>this['_processAttributeChanges'](_0x22c22d)),_0x4456a9['model']['document']['registerPostFixer'](_0x12947c=>!_0x12947c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12947c)),_0x4456a9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4456a9['model']['document']['on']('change:data',(_0x3bed24,_0x5e08d5)=>{if(!_0x5e08d5['isLocal']||_0x5e08d5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd3100e=_0x4456a9['model']['document']['differ']['getChanges']();if(0x0==_0xd3100e['length'])return;const _0x42f1a1=[],_0x2102ac=_0xd3100e['filter'](_0x4ec874=>'attribute'==_0x4ec874['type']),_0x5dcc40=_0xd3100e['filter'](_0x91283b=>'insert'==_0x91283b['type']&&'$text'!=_0x91283b['name']);for(const _0x8b8577 of _0x2102ac)this['_isRegisteredAttribute'](_0x8b8577['attributeKey'])&&_0x42f1a1['push']({'key':_0x8b8577['attributeKey'],'newValue':_0x8b8577['attributeNewValue'],'oldValue':_0x8b8577['attributeOldValue'],'range':Pt(_0x8b8577['range'],_0x4456a9['model'])});for(const _0x1c18e0 of _0x5dcc40){if('rename'!=_0x1c18e0['action']&&'refresh'!=_0x1c18e0['action'])continue;const _0x2de916=Lt(_0x1c18e0['position']['nodeAfter'],_0x4456a9['model']),_0x53c01e=_0x1c18e0['before'];'rename'==_0x1c18e0['action']&&_0x42f1a1['push']({'key':m,'newValue':_0x1c18e0['name'],'oldValue':_0x53c01e['name'],'range':_0x2de916});for(const [_0x527de9,_0x402df3]of _0x53c01e['attributes']){if(!this['_isRegisteredAttribute'](_0x527de9))continue;const _0x19d954=_0x1c18e0['attributes']['get'](_0x527de9);_0x402df3!==_0x19d954&&_0x42f1a1['push']({'key':_0x527de9,'newValue':_0x19d954,'oldValue':_0x402df3,'range':_0x2de916});}for(const [_0x2579a4,_0x444ba9]of _0x1c18e0['attributes'])this['_isRegisteredAttribute'](_0x2579a4)&&(_0x53c01e['attributes']['has'](_0x2579a4)||_0x42f1a1['push']({'key':_0x2579a4,'newValue':_0x444ba9,'oldValue':null,'range':_0x2de916}));}0x0!=_0x42f1a1['length']&&_0x4456a9['model']['enqueueChange'](_0x5e08d5,_0x6635f3=>{const _0x40491b=_0x461dff();for(const {range:_0x318d8b,key:_0x10005a,oldValue:_0x312c8a,newValue:_0xdb2961}of _0x42f1a1)this['markAttributeChange'](_0x318d8b,_0x10005a,_0x312c8a,_0xdb2961,{'groupId':_0x40491b});this['_reduceExistingSuggestions'](_0x6635f3,_0x42f1a1);});},{'priority':'lowest'}),_0x4456a9['model']['markers']['on']('update:suggestion',(_0x186155,_0x1ffed8,_0x56ea4d)=>{if(null==_0x56ea4d){const {id:_0x44fa03}=this['_splitMarkerName'](_0x1ffed8['name']),_0x2416ee=this['_suggestions']['get'](_0x44fa03);_0x2416ee&&_0x2416ee['addMarkerName'](_0x1ffed8['name']);}}),_0x4456a9['model']['document']['on']('change:data',()=>{const _0x476d2d=Array['from'](_0x4456a9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x263748=>'suggestion'===this['_splitMarkerName'](_0x263748['name'])['group']);if(0x0===_0x476d2d['length'])return;_0x476d2d['sort']((_0x30e02e,_0x171927)=>{const _0x5caf29=_0x30e02e['data']['oldRange'],_0x47aff0=_0x171927['data']['oldRange'];return null===_0x5caf29&&null===_0x47aff0?0x0:null===_0x5caf29&&null!==_0x47aff0?-0x1:null!==_0x5caf29&&null===_0x47aff0?0x1:_0x5caf29['start']['isBefore'](_0x47aff0['start'])?-0x1:0x1;});const _0x15186b=new Set(),_0x484da1=new Set();for(const {name:_0x17b81b,data:_0x2c05b3}of _0x476d2d){const {id:_0x62f998}=this['_splitMarkerName'](_0x17b81b);if(null===_0x2c05b3['oldRange']){const _0x5b3d56=this['_handleNewSuggestionMarker'](_0x17b81b);_0x484da1['add'](_0x5b3d56);}else{const _0x1ef279=this['_suggestions']['get'](_0x62f998);null!==_0x2c05b3['newRange']||_0x1ef279['isInContent']?(_0x15186b['add'](_0x1ef279['head']),_0x484da1['add'](_0x1ef279)):this['_removeSuggestion'](_0x1ef279);}}_0x484da1['size']>0x0&&this['_refreshSuggestionsChain'](_0x484da1);for(const _0x59f75c of _0x15186b)this['fire']('suggestionChanged',_0x59f75c);}),_0x4456a9['model']['on']('applyOperation',(_0x1a5339,_0x40fe74)=>{const _0x24d377=_0x40fe74[0x0];if(!this['_suggestions']['size'])return;if(!_0x24d377['isDocumentOperation'])return;if(_0x24d377['batch']['isUndo']||!_0x24d377['batch']['isLocal'])return;let _0x511f60,_0x1959d7;switch(_0x24d377['type']){case'insert':_0x511f60=_0x4456a9['model']['createPositionAt'](_0x24d377['position']),_0x1959d7=_0x511f60['getShiftedBy'](_0x24d377['howMany']);break;case'split':_0x511f60=_0x4456a9['model']['createPositionAt'](_0x24d377['splitPosition']),_0x1959d7=_0x4456a9['model']['createPositionAt'](_0x24d377['moveTargetPosition']);break;case'move':_0x511f60=_0x4456a9['model']['createPositionAt'](_0x24d377['targetPosition']),_0x1959d7=_0x511f60['getShiftedBy'](_0x24d377['howMany']);break;default:return;}const _0x5bfa26=_0x4456a9['model']['createRange'](_0x511f60,_0x1959d7);_0x4456a9['model']['change'](()=>{for(const {suggestion:_0xeb6fe1,meta:_0x4366c0}of this['_findSuggestions'](_0x5bfa26)){if(_0xeb6fe1['isMultiRange'])continue;if('formatInline'==_0xeb6fe1['type'])continue;const _0x13edf=this['_getAttributeKey'](_0xeb6fe1);if(_0x13edf&&this['_isBlockAttribute'](_0x13edf)&&'split'!=_0x24d377['type'])continue;const _0x327536=_0xeb6fe1['data']&&_0xeb6fe1['data']['multipleBlocks'];('formatBlock'!=_0xeb6fe1['type']||'split'==_0x24d377['type']&&!_0x327536)&&(_0x4366c0['containsRangeInObject']||'insertion'==_0xeb6fe1['type']&&_0x4366c0['isOwn']||_0xeb6fe1['getFirstRange']()['containsRange'](_0x5bfa26)&&this['_breakSuggestionMarker'](_0xeb6fe1,_0x511f60,_0x1959d7));}});},{'priority':'lowest'}),_0x4456a9['model']['on']('deleteContent',(_0xd2397f,_0x309468)=>{const _0x3cf26b=_0x309468[0x0],_0x5b81af=_0x309468[0x1];if(_0x5b81af&&_0x5b81af['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cf26b['isCollapsed'])return;const _0x39eff2=_0x4456a9['model']['schema'],{start:_0x500097,end:_0x113fe9}=_0x3cf26b['getFirstRange'](),_0x165916=_0x500097['nodeAfter']&&_0x39eff2['isLimit'](_0x500097['nodeAfter'])?null:_0x39eff2['getNearestSelectionRange'](_0x500097,'forward'),_0x5788c1=_0x113fe9['nodeBefore']&&_0x39eff2['isLimit'](_0x113fe9['nodeBefore'])?null:_0x39eff2['getNearestSelectionRange'](_0x113fe9,'backward'),_0x5bde54=_0x4456a9['model']['createRange'](_0x165916?_0x165916['start']:_0x500097,_0x5788c1?_0x5788c1['end']:_0x113fe9);_0x4456a9['model']['change'](_0x42b9f3=>{this['markDeletion'](_0x5bde54);const _0x4cb77d=_0x4456a9['model']['schema']['getNearestSelectionRange'](_0x5bde54['start']);_0x3cf26b['is']('documentSelection')?_0x42b9f3['setSelection'](_0x4cb77d):_0x3cf26b['setTo'](_0x4cb77d);}),_0xd2397f['stop']();},{'priority':_0x568bb9['normal']+0xa}),_0x4456a9['model']['on']('insertContent',(_0x2d0b9c,_0x15178f)=>{const _0x40c81a=_0x15178f[_0x15178f['length']-0x1];_0x40c81a&&_0x40c81a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4456a9['model']['change'](()=>{let _0x397343=_0x4456a9['model']['insertContent'](_0x15178f[0x0],_0x15178f[0x1],_0x15178f[0x2],{'forceDefaultExecution':!0x0});if(!_0x397343)return;_0x2d0b9c['return']=_0x397343['clone']();const _0x16a263=_0x397343['end']['nodeBefore'],_0x35b78c=_0x4456a9['model']['schema'];_0x16a263&&_0x35b78c['isBlock'](_0x16a263)&&!_0x35b78c['isObject'](_0x16a263)&&(_0x397343=_0x4456a9['model']['createRange'](_0x397343['start'],_0x4456a9['model']['createPositionAt'](_0x16a263,'end'))),this['markInsertion'](_0x397343);}),_0x2d0b9c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1f98a2=new x(_0x4456a9,this['_suggestions']);_0x4456a9['commands']['add']('acceptSuggestion',_0x1f98a2),this['enableCommand']('acceptSuggestion');const _0x4489b1=new R(_0x4456a9,this['_suggestions']);_0x4456a9['commands']['add']('discardSuggestion',_0x4489b1),this['enableCommand']('discardSuggestion'),_0x4456a9['commands']['add']('acceptAllSuggestions',new E(_0x4456a9,_0x1f98a2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4456a9['commands']['add']('discardAllSuggestions',new E(_0x4456a9,_0x4489b1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4456a9['commands']['add']('acceptSelectedSuggestions',new O(_0x4456a9,_0x1f98a2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4456a9['commands']['add']('discardSelectedSuggestions',new O(_0x4456a9,_0x4489b1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3c3038=_0x4456a9['plugins']['get']('CommentsRepository');this['listenTo'](_0x3c3038,'addComment',(_0x4a541c,{threadId:_0x2b8a39})=>{const _0x15859b=this['_suggestions']['get'](_0x2b8a39);_0x15859b&&_0x15859b['commentThread']&&0x1===_0x15859b['commentThread']['length']&&this['_updateSuggestionData'](_0x2b8a39,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3c3038,'removeComment',(_0x46f945,{threadId:_0x328585})=>{const _0x2d91b1=this['_suggestions']['get'](_0x328585);_0x2d91b1&&_0x2d91b1['commentThread']&&!_0x2d91b1['commentThread']['length']&&this['_updateSuggestionData'](_0x328585,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x37c40e){if(this['_adapter'])throw new _0x24debd('track-changes-adapter-already-set',this);this['_adapter']=_0x37c40e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3abaf6=!0x1,toJSON:_0x1d9a45=!0x1}={}){const _0x16a8a2=[];for(const _0x3f4a03 of this['_suggestions']['values']())_0x3abaf6&&!_0x3f4a03['isInContent']||_0x16a8a2['push'](_0x3f4a03);return _0x1d9a45?_0x16a8a2['map'](_0x32f659=>_0x32f659['toJSON']()):_0x16a8a2;}['getSuggestion'](_0x26852d){const _0x667687=this['_suggestions']['get'](_0x26852d);if(!_0x667687)throw new _0x24debd('track-changes-suggestion-not-found',this);return _0x667687;}['hasSuggestion'](_0x4f1991){return this['_suggestions']['has'](_0x4f1991);}['addSuggestionData'](_0x411709){const {authorId:_0x1b9c5c,id:_0x3d6ef0,attributes:_0x3a0a84}=_0x411709,[_0x3ca816,_0x388193]=_0x411709['type']['split'](':'),_0x483a14=this['_suggestions']['get'](_0x3d6ef0)||this['_createSuggestion'](_0x3ca816,_0x388193,_0x3d6ef0,_0x1b9c5c,_0x3a0a84);if(this['_addThreadToSuggestion'](_0x483a14),this['_checkSuggestionCorrectness'](_0x483a14,_0x3ca816,_0x388193||null,_0x1b9c5c),_0x483a14['createdAt']=_0x411709['createdAt'],_0x483a14['_isDataLoaded']=!0x0,_0x3a0a84&&_0x3a0a84['@external']){const _0x1ee8b8=_0x3a0a84['@external'],_0x2bd57a=this['_getExternalAuthor'](_0x1ee8b8['authorName']);_0x483a14['authoredAt']=_0x1ee8b8['createdAt'],_0x483a14['author']=_0x2bd57a,_0x483a14['isExternal']=!0x0;}else _0x483a14['authoredAt']=_0x411709['createdAt'];switch(_0x411709['data']&&(_0x483a14['data']=_0x411709['data']),_0x411709['attributes']&&(_0x483a14['attributes']=_0x411709['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x483a14['_saved']=!0x0),this['_suggestionState']['get'](_0x483a14)){case'notReady':this['_suggestionState']['set'](_0x483a14,'dataReady');break;case'markerReady':_0x483a14['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x483a14])),this['_refreshSuggestionsChain'](new Set([_0x483a14])),this['_suggestionState']['set'](_0x483a14,'ready'),this['fire']('suggestionLoaded',_0x483a14)):this['_suggestionState']['set'](_0x483a14,'removed');}return _0x483a14;}['acceptSuggestion'](_0x4e62ff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18cae0 of _0x4e62ff['getAllAdjacentSuggestions']())_0x18cae0['accept']();});});}['discardSuggestion'](_0x25da03){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5566e of _0x25da03['getAllAdjacentSuggestions']())_0x5566e['discard']();});});}['enableCommand'](_0x54bb41,_0x165d38){const _0xda5a23=this['editor']['commands']['get'](_0x54bb41);if(!_0xda5a23)throw new _0x24debd('track-changes-command-not-found',this,{'commandName':_0x54bb41});if(this['_enabledCommands']['has'](_0xda5a23))throw new _0x24debd('track-changes-enable-command-twice',this,{'commandName':_0x54bb41});this['_enabledCommands']['add'](_0xda5a23),_0x165d38&&_0xda5a23['on']('execute',(_0x5ce622,_0x4f4782)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f4782['length']>0x0&&_0x4f4782[_0x4f4782['length']-0x1]&&_0x4f4782[_0x4f4782['length']-0x1]['forceDefaultExecution']?_0x4f4782['pop']():(_0x5ce622['return']=_0x165d38((..._0x458a4c)=>_0xda5a23['execute'](..._0x458a4c,{'forceDefaultExecution':!0x0}),..._0x4f4782),_0x5ce622['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2b35a7){let _0x5367fc,_0x9493a7;const _0x8e5182=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5367fc=_0x2b35a7();}catch(_0x4fb0b7){_0x9493a7=_0x4fb0b7;}return _0x8e5182||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9493a7&&_0x24debd['rethrowUnexpectedError'](_0x9493a7,this),_0x5367fc;}['markInsertion'](_0xef9969,_0x100aae=null,_0xd6f32={}){if(_0xef9969['isCollapsed'])return null;const _0x1305cb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x477e72,meta:_0x5f2fc5}of this['_findSuggestions'](_0xef9969,'insertion'))if(_0x5f2fc5['isOwn']){if(!_0x5f2fc5['isNextTo']){if(_0x5f2fc5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x477e72,_0xd6f32))continue;return _0x477e72;}if(qt(_0x477e72,_0xd6f32))return _0x477e72;this['_breakSuggestionMarker'](_0x477e72,_0xef9969['start'],_0xef9969['end']);break;}if(_0x100aae==_0x477e72['subType']&&qt(_0x477e72,_0xd6f32)){const _0xf0497d=_0x477e72['getFirstRange']();return _0xf0497d['start']['isEqual'](_0xef9969['end'])?this['_setSuggestionRange'](_0x477e72,this['_model']['createRange'](_0xef9969['start'],_0xf0497d['end'])):this['_setSuggestionRange'](_0x477e72,this['_model']['createRange'](_0xf0497d['start'],_0xef9969['end'])),_0x477e72;}}const _0x3ab900=_0x461dff(),_0x102f49=_0x1305cb['id'],_0x36a0e2=_0x100aae?'insertion:'+_0x100aae:'insertion',_0x5ab050=this['_setSuggestionData']({'id':_0x3ab900,'type':_0x36a0e2,'createdAt':new Date(),'authorId':_0x102f49,'attributes':_0xd6f32});return this['_addSuggestionMarker'](_0x36a0e2,_0x3ab900,_0x102f49,_0xef9969),_0x5ab050;}['markMultiRangeInsertion'](_0x26e3bc,_0x46e66d='multi',_0x1a6415={}){const _0x165b79=this['editor']['plugins']['get']('Users')['me'],_0xcaa102=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x46e66d,'join');for(const _0x1de56f of this['getSuggestions']())if(_0x1de56f['author']['id']==_0x165b79['id']&&'insertion'==_0x1de56f['type']&&_0x1de56f['subType']==_0x46e66d&&qt(_0x1de56f,_0x1a6415)&&(_0xcaa102(_0x1de56f['getRanges'](),_0x26e3bc)||_0xcaa102(_0x26e3bc,_0x1de56f['getRanges']()))){for(const _0x40e215 of _0x26e3bc)_0x1de56f['addRange'](_0x40e215);return _0x1de56f;}for(const {suggestion:_0x580d7,meta:_0x13c594}of this['_findSuggestions'](_0x26e3bc,'insertion')){if(!_0x13c594['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x13c594['containsRangeInObject'])continue;if(!qt(_0x580d7,_0x1a6415))continue;let _0x54bcb9=!0x0;for(const _0x4d40e6 of _0x580d7['getRanges']())for(const _0x17ba10 of _0x26e3bc)if(!_0x4d40e6['containsRange'](_0x17ba10)){_0x54bcb9=!0x1;break;}if(_0x54bcb9)return _0x580d7;}const _0x219f57=_0x461dff(),_0x31f2c2=_0x165b79['id'],_0x5312f4='insertion:'+_0x46e66d,_0x505980=this['_setSuggestionData']({'id':_0x219f57,'type':_0x5312f4,'createdAt':new Date(),'authorId':_0x31f2c2,'attributes':_0x1a6415});for(const _0xf7f79a of _0x26e3bc)this['_addSuggestionMarker'](_0x5312f4,_0x219f57,_0x31f2c2,_0xf7f79a,u['getMultiRangeId']());return _0x505980;}['markInlineFormat'](_0x4e54fe,_0x565103,_0x1107e5=null,_0x232b77={}){if(_0x1107e5=_0x1107e5||Gt(_0x565103),_0x4e54fe['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x33ab8b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1107e5,'accept');return this['forceDefaultExecution'](()=>_0x33ab8b([_0x4e54fe],_0x565103,_0x232b77)),null;}const _0x207309=this['editor']['plugins']['get']('Users')['me'],_0x1bcb20=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x568645,meta:_0x585870}of this['_findSuggestions'](_0x4e54fe,'insertion'))_0x585870['isOwn']&&!_0x585870['isInsideObject']&&_0x1bcb20['push'](..._0x568645['getRanges']());}const _0x5e5690=function(_0x2affed,_0x1f5961){const _0x28a9da=[];for(const _0x4a497b of _0x1f5961){const _0x9aebad=_0x2affed['getIntersection'](_0x4a497b);_0x9aebad&&_0x28a9da['push'](_0x9aebad);}return _0x28a9da;}(_0x4e54fe,_0x1bcb20),_0x53b859=function(_0x5f5927,_0x38c252){const _0x537497=[_0x5f5927];for(const _0x41c05e of _0x38c252){let _0xc95957=0x0;for(;_0xc95957<_0x537497['length'];){const _0xced9ef=_0x537497[_0xc95957]['getDifference'](_0x41c05e);_0x537497['splice'](_0xc95957,0x1,..._0xced9ef),_0xc95957+=_0xced9ef['length'];}}return _0x537497;}(_0x4e54fe,_0x1bcb20);_0x5e5690['length']&&this['_model']['change'](()=>{for(const _0x4b186d of _0x5e5690){const _0xe94c45=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1107e5,'accept');this['forceDefaultExecution'](()=>_0xe94c45([_0x4b186d],_0x565103,_0x232b77));}});for(const _0x30b50c of _0x53b859){let _0x500690=null,_0x3a686a=_0x30b50c['start'],_0x33f956=_0x30b50c['end'];for(const {suggestion:_0xe9be4a,meta:_0x312cc7}of this['_findSuggestions'](_0x30b50c,'formatInline')){if(!_0x312cc7['isOwn'])continue;if(_0xe9be4a['subType']!=_0x1107e5)continue;if(!qt(_0xe9be4a,_0x232b77))continue;const _0x5daa5f=_0xe9be4a['getFirstRange']();if(_0x5daa5f['containsRange'](_0x30b50c,!0x0))return null;_0x3a686a=_0x3a686a['isBefore'](_0x5daa5f['start'])?_0x3a686a:_0x5daa5f['start'],_0x33f956=_0x33f956['isAfter'](_0x5daa5f['end'])?_0x33f956:_0x5daa5f['end'],_0x500690?_0x5daa5f['start']['isBefore'](_0x500690['getFirstRange']()['start'])?(_0x500690['removeMarkers'](),_0x500690=_0xe9be4a):_0xe9be4a['removeMarkers']():_0x500690=_0xe9be4a;}const _0x240bd5=this['_model']['createRange'](_0x3a686a,_0x33f956);if(_0x500690)this['_setSuggestionRange'](_0x500690,_0x240bd5);else{const _0x1f89de=_0x461dff(),_0x239938=_0x207309['id'];this['_setSuggestionData']({'id':_0x1f89de,'type':'formatInline:'+_0x1107e5,'data':_0x565103,'createdAt':new Date(),'authorId':_0x239938,'attributes':_0x232b77}),this['_addSuggestionMarker']('formatInline:'+_0x1107e5,_0x1f89de,_0x239938,_0x240bd5);}}return null;}['markBlockFormat'](_0x3b3bb7,_0x791016,_0x7a0a56=[],_0x1297fc=null,_0x10afe9={}){_0x791016['formatGroupId']||(_0x791016['formatGroupId']=_0x791016['commandName']),_0x791016['multipleBlocks']=_0x3b3bb7['is']('range'),_0x1297fc=_0x1297fc||Gt(_0x791016);const _0x1ddc42=_0x7a0a56['map'](_0x1e6bc0=>Lt(_0x1e6bc0,this['_model'])),_0x23581a=_0x3b3bb7['is']('range')?_0x3b3bb7:Lt(_0x3b3bb7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4cdd3d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1297fc,'accept');return this['forceDefaultExecution'](()=>_0x4cdd3d([_0x23581a],_0x791016,_0x10afe9)),null;}_0x1ddc42['push'](_0x23581a);let _0x2e7bd0=!0x0;for(const _0x4c56c1 of _0x1ddc42)if(!this['_rangeIsInLocalUserInsertion'](_0x4c56c1)){_0x2e7bd0=!0x1;break;}if(_0x2e7bd0&&'always'!==this['_trackFormatChanges']){const _0x23295d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1297fc,'accept');return this['forceDefaultExecution'](()=>_0x23295d([_0x23581a],_0x791016,_0x10afe9)),null;}let _0x51d1f9=null,_0x568674=_0x23581a['start'],_0x1f784d=_0x23581a['end'];for(const {suggestion:_0x26450e,meta:_0x103789}of this['_findSuggestions'](_0x23581a,'formatBlock')){if(!_0x103789['isOwn'])continue;if(_0x103789['isNextTo']||_0x103789['containsRangeInObject']||_0x103789['isInsideObject'])continue;if(_0x26450e['data']['formatGroupId']!=_0x791016['formatGroupId'])continue;if(!qt(_0x26450e,_0x10afe9))continue;const _0x458cc9=_0x26450e['getFirstRange']();if(_0x26450e['subType']==_0x1297fc){if(_0x458cc9['containsRange'](_0x23581a,!0x0))return null;_0x568674=_0x568674['isBefore'](_0x458cc9['start'])?_0x568674:_0x458cc9['start'],_0x1f784d=_0x1f784d['isAfter'](_0x458cc9['end'])?_0x1f784d:_0x458cc9['end'],_0x51d1f9?_0x458cc9['start']['isBefore'](_0x51d1f9['getFirstRange']()['start'])?(_0x51d1f9['removeMarkers'](),_0x51d1f9=_0x26450e):_0x26450e['removeMarkers']():_0x51d1f9=_0x26450e;}else{const _0x41adbe=_0x23581a['getIntersection'](_0x458cc9);this['_cutOutSuggestionMarker'](_0x26450e,_0x41adbe);}}const _0x2db2e1=this['editor']['plugins']['get']('Users')['me'],_0x3938a3=_0x461dff(),_0x5c6365=_0x2db2e1['id'];if(_0x51d1f9)return this['_setSuggestionRange'](_0x51d1f9,this['_model']['createRange'](_0x568674,_0x1f784d)),_0x51d1f9;{const _0x28926b=this['_setSuggestionData']({'id':_0x3938a3,'type':'formatBlock:'+_0x1297fc,'data':_0x791016,'createdAt':new Date(),'authorId':_0x5c6365,'attributes':_0x10afe9});return this['_addSuggestionMarker']('formatBlock:'+_0x1297fc,_0x3938a3,_0x5c6365,this['_model']['createRange'](_0x568674,_0x1f784d)),_0x28926b;}}['markMultiRangeBlockFormat'](_0x50d8ba,_0x19a5f4,_0xbab659=[],_0x2d10ed=null,_0x450e5b={}){_0x19a5f4['formatGroupId']||(_0x19a5f4['formatGroupId']=_0x19a5f4['commandName']);const _0x2b4e7a=_0x50d8ba[0x0];_0x19a5f4['multipleBlocks']=_0x2b4e7a['is']('range'),_0x2d10ed=_0x2d10ed||Gt(_0x19a5f4);const _0x450515=_0xbab659['map'](_0x5ceba9=>Lt(_0x5ceba9,this['_model'])),_0x32a6c0=_0x2b4e7a['is']('range')?_0x50d8ba:_0x50d8ba['map'](_0x59b446=>Lt(_0x59b446,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2c1f90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d10ed,'accept');return this['forceDefaultExecution'](()=>_0x2c1f90(_0x32a6c0,_0x19a5f4,_0x450e5b)),null;}_0x450515['push'](..._0x32a6c0);let _0x26f15d=!0x0;for(const _0x3d7bde of _0x450515)if(!this['_rangeIsInLocalUserInsertion'](_0x3d7bde)){_0x26f15d=!0x1;break;}if(_0x26f15d&&'always'!==this['_trackFormatChanges']){const _0x547c9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d10ed,'accept');return this['forceDefaultExecution'](()=>_0x547c9e(_0x32a6c0,_0x19a5f4,_0x450e5b)),null;}const _0x22c4b1=this['editor']['plugins']['get']('Users')['me'];for(const _0x3539c9 of this['getSuggestions']()){if(_0x3539c9['author']['id']!=_0x22c4b1['id'])continue;if('formatBlock'!=_0x3539c9['type']||_0x3539c9['data']['formatGroupId']!=_0x19a5f4['formatGroupId'])continue;if(!qt(_0x3539c9,_0x450e5b))continue;const _0x27e56a=_0x3539c9['subType']==_0x2d10ed;for(let _0x521182=0x0;_0x521182<_0x32a6c0['length'];_0x521182++){const _0x3fcaee=_0x32a6c0[_0x521182];for(const _0x246066 of _0x3539c9['getMarkers']()){const _0x5d56a5=_0x246066['getRange']();if(_0x3fcaee['isEqual'](_0x5d56a5)){_0x27e56a?(_0x32a6c0['splice'](_0x521182,0x1),_0x521182--):_0x3539c9['removeMarker'](_0x246066['name']);break;}}}}if(0x0==_0x32a6c0['length'])return null;const _0xaa8c03=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d10ed,'join');for(const _0x56324f of this['getSuggestions']())if(_0x56324f['author']['id']==_0x22c4b1['id']&&'formatBlock'==_0x56324f['type']&&_0x56324f['data']['formatGroupId']==_0x19a5f4['formatGroupId']&&_0x56324f['subType']==_0x2d10ed&&qt(_0x56324f,_0x450e5b)&&(_0xaa8c03(_0x56324f['getRanges'](),_0x32a6c0)||_0xaa8c03(_0x32a6c0,_0x56324f['getRanges']()))){for(const _0x282329 of _0x32a6c0)_0x56324f['addRange'](_0x282329);return _0x56324f;}const _0xebb239=_0x461dff(),_0x130800=_0x22c4b1['id'],_0xaf6a54='formatBlock:'+_0x2d10ed,_0x5ea015=this['_setSuggestionData']({'id':_0xebb239,'type':_0xaf6a54,'data':_0x19a5f4,'createdAt':new Date(),'authorId':_0x130800,'attributes':_0x450e5b});for(const _0x2c4e27 of _0x32a6c0)this['_addSuggestionMarker'](_0xaf6a54,_0xebb239,_0x130800,_0x2c4e27,u['getMultiRangeId']());return _0x5ea015;}['markDeletion'](_0x5b0909,_0x4a3960=null,_0x313623={}){if(_0x5b0909['isCollapsed'])return null;const _0x4b0c86=this['editor']['plugins']['get']('Users')['me'],_0x22413f=new _0x5da18b(_0x5b0909['start'],_0x5b0909['end']);for(const {suggestion:_0x3d6614,meta:_0x4de909}of this['_findSuggestions'](_0x22413f,'insertion'))if(_0x4de909['isOwn']&&!_0x4de909['isNextTo']){if(_0x3d6614['isMultiRange']){const _0x525252=_0x3d6614['getRanges']()['filter'](_0x26a986=>'$graveyard'!=_0x26a986['root']['rootName']);_0x525252['every'](_0x26edda=>_0x22413f['containsRange'](_0x26edda,!0x0))&&_0x3d6614['discard']();if(_0x525252['some'](_0x5e3413=>_0x5e3413['containsRange'](_0x22413f,!0x0))){const _0x3ef48f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a3960,'accept');return this['forceDefaultExecution'](()=>_0x3ef48f([_0x22413f],null,_0x313623)),null;}}else{const _0xfcec65=_0x22413f['getIntersection'](_0x3d6614['getFirstRange']());null!==_0xfcec65&&_0x3d6614['_onDiscard']([_0xfcec65],null,_0x313623);}}if(_0x22413f['detach'](),_0x22413f['isCollapsed']||'$graveyard'==_0x22413f['root']['rootName'])return null;let _0x680752=null,_0x5d194d=_0x22413f['start'],_0x49c363=_0x22413f['end'];const _0x37d02a=this['_findSuggestions'](_0x22413f,'deletion');for(const {suggestion:_0x9bec47,meta:_0x4df8df}of _0x37d02a){const _0x552470=this['_model']['createRange'](_0x5d194d,_0x49c363);if(_0x4df8df['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4df8df['containsRangeInObject']&&!_0x4df8df['isInsideObject'])){if(_0x9bec47['isMultiRange']){if(!qt(_0x9bec47,_0x313623))continue;let _0x48dcab=!0x0;for(const _0xc6035b of _0x9bec47['getRanges']()){if(_0xc6035b['containsRange'](_0x552470,!0x0))return _0x9bec47;_0x552470['containsRange'](_0xc6035b)||(_0x48dcab=!0x1);}_0x48dcab&&_0x9bec47['discard']();}else{const _0x341ee5=_0x9bec47['getFirstRange']();if(_0x341ee5['containsRange'](_0x552470,!0x0))return _0x9bec47;if(!qt(_0x9bec47,_0x313623)){_0x552470['containsRange'](_0x341ee5)?_0x9bec47['removeMarkers']():_0x341ee5['containsPosition'](_0x5d194d)?_0x5d194d=_0x341ee5['end']:_0x341ee5['containsPosition'](_0x49c363)&&(_0x49c363=_0x341ee5['start']);continue;}_0x5d194d=_0x5d194d['isBefore'](_0x341ee5['start'])?_0x5d194d:_0x341ee5['start'],_0x49c363=_0x49c363['isAfter'](_0x341ee5['end'])?_0x49c363:_0x341ee5['end'],_0x313623=Object['assign']({},_0x9bec47['attributes']),_0x680752?_0x341ee5['start']['isBefore'](_0x680752['getFirstRange']()['start'])?(_0x680752['removeMarkers'](),_0x680752=_0x9bec47):_0x9bec47['removeMarkers']():_0x680752=_0x9bec47;}}}if(_0x680752)return this['_setSuggestionRange'](_0x680752,this['_model']['createRange'](_0x5d194d,_0x49c363)),_0x680752;{const _0x57a8f6=_0x461dff(),_0x2d874c=this['_model']['createRange'](_0x5d194d,_0x49c363),_0x2dd840=_0x4b0c86['id'],_0x3b612a=_0x4a3960?'deletion:'+_0x4a3960:'deletion',_0x4223d1=this['_setSuggestionData']({'id':_0x57a8f6,'type':_0x3b612a,'createdAt':new Date(),'authorId':_0x2dd840,'attributes':_0x313623});return this['_addSuggestionMarker'](_0x3b612a,_0x57a8f6,_0x2dd840,_0x2d874c),_0x4223d1;}}['markMultiRangeDeletion'](_0x1f2f59,_0x15b23a='multi',_0x1550fa={}){const _0x24d692=this['editor']['plugins']['get']('Users')['me'],_0x44d999=_0x1f2f59['map'](_0x3b5599=>new _0x5da18b(_0x3b5599['start'],_0x3b5599['end'])),_0x2fcad6=new Set();for(const {suggestion:_0x20cf85,meta:_0x3cd011}of this['_findSuggestions'](_0x44d999,'insertion'))_0x3cd011['isOwn']&&!_0x3cd011['isNextTo']&&_0x2fcad6['add'](_0x20cf85);for(const _0x5618fc of _0x2fcad6)if(_0x5618fc['isMultiRange']){const _0xf59669=_0x5618fc['getRanges']();(!_0x5618fc['attributes']||!_0x5618fc['attributes']['skipNestingCheck'])&&(_0xf59669['every'](_0x534daf=>_0x44d999['some'](_0x2a656c=>_0x2a656c['containsRange'](_0x534daf,!0x0)))&&_0x5618fc['discard']());if(_0x44d999['every'](_0x1ab5ff=>_0xf59669['some'](_0x10aff3=>_0x10aff3['containsRange'](_0x1ab5ff,!0x0)))){const _0x59f986=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15b23a,'accept');return this['forceDefaultExecution'](()=>_0x59f986(_0x1f2f59,null,_0x1550fa)),null;}}else{const _0x30f0b2=_0x5618fc['getFirstRange']();_0x44d999['some'](_0x1172f3=>_0x1172f3['containsRange'](_0x30f0b2,!0x0))&&_0x5618fc['discard']();if(_0x44d999['every'](_0x5743ec=>_0x30f0b2['containsRange'](_0x5743ec,!0x0))){const _0x32931f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15b23a,'accept');return this['forceDefaultExecution'](()=>_0x32931f(_0x44d999,null,_0x1550fa)),null;}}const _0x823768=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15b23a,'join');let _0x1863d1=null;for(const _0x9e9ab1 of this['getSuggestions']())if(_0x9e9ab1['author']['id']==_0x24d692['id']&&_0x9e9ab1['isInContent']&&'deletion'==_0x9e9ab1['type']&&_0x9e9ab1['subType']==_0x15b23a&&qt(_0x9e9ab1,_0x1550fa)&&(_0x823768(_0x9e9ab1['getRanges'](),_0x44d999)||_0x823768(_0x44d999,_0x9e9ab1['getRanges']()))){if(_0x1863d1){if(_0x9e9ab1['commentThread']&&_0x9e9ab1['commentThread']['length'])continue;for(const _0x2ce8f1 of _0x9e9ab1['getRanges']())_0x1863d1['isIntersectingWithRange'](_0x2ce8f1)||_0x1863d1['addRange'](_0x2ce8f1);_0x9e9ab1['removeMarkers']();}else{_0x1863d1=_0x9e9ab1;for(const _0x2a16d0 of _0x44d999)_0x9e9ab1['isIntersectingWithRange'](_0x2a16d0)||_0x9e9ab1['addRange'](_0x2a16d0);}}if(_0x1863d1)return _0x1863d1;_0x2fcad6['clear']();for(const {suggestion:_0x369281,meta:_0x645697}of this['_findSuggestions'](_0x44d999,'deletion'))_0x645697['isOwn']&&(this['_mergeNestedSuggestions']||!_0x645697['containsRangeInObject']&&!_0x645697['isInsideObject'])&&qt(_0x369281,_0x1550fa)&&_0x2fcad6['add'](_0x369281);for(const _0x4a8616 of _0x2fcad6){const _0x4c15e4=_0x4a8616['getRanges']();if(!_0x1550fa||!_0x1550fa['skipNestingCheck']){if(_0x44d999['every'](_0x25e7fb=>_0x4c15e4['some'](_0x1ef5c2=>_0x1ef5c2['containsRange'](_0x25e7fb,!0x0))))return _0x4a8616;}(!_0x4a8616['attributes']||!_0x4a8616['attributes']['skipNestingCheck'])&&(_0x4c15e4['every'](_0x5a794f=>_0x44d999['some'](_0x965f5=>_0x965f5['containsRange'](_0x5a794f,!0x0)))&&_0x4a8616['discard']());}const _0x4df0d9=_0x461dff(),_0x549c94=_0x24d692['id'],_0x470107='deletion:'+_0x15b23a,_0x3b9d2b=this['_setSuggestionData']({'id':_0x4df0d9,'type':_0x470107,'createdAt':new Date(),'authorId':_0x549c94,'attributes':_0x1550fa});for(const _0xbe1811 of _0x44d999)_0xbe1811['detach'](),_0xbe1811['isCollapsed']||'$graveyard'==_0xbe1811['root']['rootName']||this['_addSuggestionMarker'](_0x470107,_0x4df0d9,_0x549c94,_0xbe1811,u['getMultiRangeId']());return _0x3b9d2b;}['markAttributeChange'](_0x2bfb8f,_0x485829,_0x41c688,_0x5d54c7,_0x311520){if(_0x2bfb8f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27825f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1c6a41=Array['from'](this['_suggestions']['values']())['filter'](_0x26023b=>'attribute'==_0x26023b['type']&&_0x26023b['data']['key']==_0x485829&&_0x26023b['isIntersectingWithRange'](_0x2bfb8f));if('default'===this['_trackFormatChanges']){const _0x193c1e=this['_findSuggestions'](_0x2bfb8f,'insertion')['filter'](({meta:_0xd6a5ac})=>_0xd6a5ac['isOwn']&&!_0xd6a5ac['isInsideObject']&&!_0xd6a5ac['isNextTo'])['map'](({suggestion:_0x3f52dc})=>_0x3f52dc);_0x1c6a41['unshift'](..._0x193c1e);}const _0x2bccfb=new Map([[_0x2bfb8f,_0x41c688]]);for(const _0x3a0f0a of _0x1c6a41){const _0x5bed45='attribute'==_0x3a0f0a['type']?_0x3a0f0a['data']['oldValue']:void 0x0,_0x443235=_0x3a0f0a['getFirstRange'](),_0x2235b9=Array['from'](_0x2bccfb['keys']())['find'](_0x296103=>_0x296103['isIntersecting'](_0x443235));if(!_0x2235b9)continue;const _0x14715e=_0x2235b9['getDifference'](_0x443235);this['_isBlockAttribute'](_0x485829)&&'insertion'==_0x3a0f0a['type']&&0x0!=_0x14715e['length']||(_0x2bccfb['delete'](_0x2235b9),_0x14715e['forEach'](_0x560b95=>{_0x2bccfb['set'](_0x560b95,_0x41c688);}),'insertion'!=_0x3a0f0a['type']&&_0x5bed45!=_0x5d54c7&&_0x2bccfb['set'](_0x2235b9['getIntersection'](_0x443235),_0x5bed45));}const _0x2e7042=[];for(const [_0x2ede89,_0x1443ba]of _0x2bccfb){const _0x1dbb45=_0x461dff(),_0x4574dd={'key':_0x485829,'oldValue':_0x1443ba,'newValue':_0x5d54c7};_0x485829['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':_0x485829});const _0x3eae1c=('attribute:'+(_0x485829+'|'+Gt({'newValue':_0x5d54c7})))['substring'](0x0,0x3c),_0x176a86=this['_setSuggestionData']({'id':_0x1dbb45,'type':_0x3eae1c,'data':_0x4574dd,'createdAt':new Date(),'authorId':_0x27825f,'attributes':_0x311520});_0x2e7042['push'](_0x176a86),this['_addSuggestionMarker'](_0x3eae1c,_0x1dbb45,_0x27825f,_0x2ede89);}return _0x2e7042;}['enableDefaultAttributesIntegration'](_0x47bcc3){this['enableCommand'](_0x47bcc3,(_0x336fb3,..._0x33e736)=>{this['_recordAttributeChanges'](()=>{_0x336fb3(..._0x33e736);});});}['registerBlockAttribute'](_0x56202d){this['_blockAttributeKeys']['add'](_0x56202d);}['registerInlineAttribute'](_0x216eb5){this['_inlineAttributeKeys']['add'](_0x216eb5);}['_getAttributeKey'](_0x3a20c0){return'attribute'==_0x3a20c0['type']?_0x3a20c0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x497461,_0x3119db){const _0x2b3ede=_0x497461['getFirstMarker']();this['_model']['change'](_0x2f97db=>{_0x2f97db['updateMarker'](_0x2b3ede,{'range':_0x3119db});});}['_addThreadToSuggestion'](_0x376ec2){const _0xb989e5=_0x376ec2['id'],_0x41c2e3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xb989e5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x41c2e3,'threadId':_0xb989e5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x385c47=this['_commentsRepository']['getCommentThread'](_0xb989e5);_0x385c47['unbind']('isRemovable'),_0x385c47['isRemovable']=!0x1,_0x376ec2['commentThread']=_0x385c47;}['_checkSuggestionCorrectness'](_0x79b824,_0x5ad774,_0x5e6d6c,_0x25776c){if(_0x79b824['type']!=_0x5ad774||_0x79b824['subType']!=_0x5e6d6c||_0x79b824['creator']['id']!=_0x25776c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x24debd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3511ad,_0x32ec94){const _0x4a34df=_0x3511ad['getFirstRange']();if(_0x32ec94['isEqual'](_0x4a34df))_0x3511ad['removeMarkers']();else{if(_0x4a34df['containsRange'](_0x32ec94)){const _0x36d562=this['_model']['createPositionAt'](_0x32ec94['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3511ad,this['_model']['createRange'](_0x4a34df['start'],_0x36d562));const _0x2dfb65=_0x461dff(),_0xb347e5=_0x3511ad['creator']['id'],_0x4c9e86=_0x3511ad['type']+':'+_0x3511ad['subType'];this['_setSuggestionData']({'id':_0x2dfb65,'type':_0x4c9e86,'createdAt':new Date(),'authorId':_0xb347e5,'data':_0x3511ad['data'],'attributes':_0x3511ad['attributes']});const _0x36e6ff=this['_model']['createPositionAt'](_0x32ec94['end']['parent'],'after'),_0x4f6794=this['_model']['createRange'](_0x36e6ff,_0x4a34df['end']);this['_addSuggestionMarker'](_0x4c9e86,_0x2dfb65,_0xb347e5,_0x4f6794);}else{if(_0x4a34df['containsPosition'](_0x32ec94['start'])){const _0x387e3a=this['_model']['createPositionAt'](_0x32ec94['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3511ad,this['_model']['createRange'](_0x4a34df['start'],_0x387e3a));}else{const _0xa6170e=this['_model']['createPositionAt'](_0x32ec94['end']['parent'],'after');this['_setSuggestionRange'](_0x3511ad,this['_model']['createRange'](_0xa6170e,_0x4a34df['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x172554){for(const {suggestion:_0x4f3d78,meta:_0x163bf8}of this['_findSuggestions'](_0x172554,'insertion')){if(!_0x163bf8['isOwn'])continue;const _0x40b356=_0x4f3d78['getRanges']();for(const _0x3cb065 of _0x40b356)if(!_0x172554['getDifference'](_0x3cb065)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4cd699){const _0x5aabd0=this['editor']['plugins']['get']('Users')['getUser'](_0x4cd699);if(!_0x5aabd0)throw new _0x24debd('track-changes-user-not-found',this);return _0x5aabd0;}['_getExternalAuthor'](_0x986bc2){const _0x107eb3=this['editor']['plugins']['get']('Users'),_0x4d8aae=_0x5c1cf2('external:'+_0x986bc2),_0x1d2b9c=_0x107eb3['getUser'](_0x4d8aae);return _0x1d2b9c||_0x107eb3['addUser']({'id':_0x4d8aae,'name':_0x986bc2});}['_createSuggestion'](_0x422ab2,_0x231258,_0x3dc4eb,_0x29b4d5,_0x22b7e3){const _0x34c98a=this['_getAuthorFromId'](_0x29b4d5),_0x40a04c=this['_suggestionFactory']['buildSuggestion'](_0x422ab2,_0x231258,_0x3dc4eb,_0x34c98a,_0x22b7e3,_0x51634c=>{this['_updateSuggestionData'](_0x3dc4eb,{'attributes':_0x51634c});const _0x42e783=this['getSuggestion'](_0x3dc4eb);this['_joinWithAdjacentSuggestions'](new Set([_0x42e783])),this['_refreshSuggestionsChain'](new Set([_0x42e783]));});return this['listenTo'](_0x40a04c,'accept',()=>{this['_updateSuggestionData'](_0x3dc4eb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x40a04c,'discard',()=>{this['_updateSuggestionData'](_0x3dc4eb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3dc4eb,_0x40a04c),this['_suggestionState']['set'](_0x40a04c,'notReady'),_0x40a04c;}['_splitMarkerName'](_0x5f33f9){const _0x123557=_0x5f33f9['split'](':');return{'group':_0x123557[0x0],'type':_0x123557[0x1],'subType':_0x123557['length']>=0x5?_0x123557[0x2]:null,'id':_0x123557['length']<0x5?_0x123557[0x2]:_0x123557[0x3],'authorId':_0x123557['length']<0x5?_0x123557[0x3]:_0x123557[0x4],'markerCount':0x6==_0x123557['length']?_0x123557[0x5]:null};}['_breakSuggestionMarker'](_0x593370,_0x172299,_0x10e113){const _0x1872ef=_0x593370['getFirstRange'](),_0x55c1d3=_0x1872ef['start'],_0x27780f=_0x1872ef['end'];this['_setSuggestionRange'](_0x593370,this['_model']['createRange'](_0x55c1d3,_0x172299));const _0x1cdb9d=_0x461dff(),_0xb3f5aa=_0x593370['creator']['id'],_0x20ee1e=_0x593370['type']+(_0x593370['subType']?':'+_0x593370['subType']:'');this['_setSuggestionData']({'id':_0x1cdb9d,'type':_0x20ee1e,'createdAt':new Date(),'authorId':_0xb3f5aa,'originalSuggestionId':_0x593370['id'],'attributes':_0x593370['attributes'],'data':_0x593370['data']});const _0x479b56=this['_getAttributeKey'](_0x593370);('formatBlock'==_0x593370['type']||_0x479b56&&this['_isBlockAttribute'](_0x479b56))&&(_0x10e113=this['_model']['createPositionBefore'](_0x10e113['parent'])),this['_addSuggestionMarker'](_0x20ee1e,_0x1cdb9d,_0xb3f5aa,this['_model']['createRange'](_0x10e113,_0x27780f));}['_findSuggestions'](_0x18b786,_0xa150e6=null){const _0x5ae103=[],_0x15ca71=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x18b786)||(_0x18b786=[_0x18b786]);for(const _0xf1e366 of this['getSuggestions']()){if(!_0xf1e366['isInContent'])continue;if(_0xa150e6&&_0xf1e366['type']!=_0xa150e6)continue;let _0xf7e502=!0x1;for(const _0x214a0e of _0xf1e366['getRanges']()){for(const _0x2cf4f0 of _0x18b786){const _0x4dc04f=_0x2cf4f0['start']['isEqual'](_0x214a0e['end'])||_0x2cf4f0['end']['isEqual'](_0x214a0e['start']);if(_0x4dc04f||_0x2cf4f0['getIntersection'](_0x214a0e)){const _0x12fd25=_0x2cf4f0['containsRange'](_0x214a0e)&&Ot(this['_model']['schema'],_0x214a0e['start'],_0x2cf4f0),_0x2b8df1=_0x214a0e['containsRange'](_0x2cf4f0)&&Ot(this['_model']['schema'],_0x2cf4f0['start'],_0x214a0e);_0x5ae103['push']({'suggestion':_0xf1e366,'meta':{'isOwn':_0x15ca71==_0xf1e366['author'],'isNextTo':_0x4dc04f,'isInsideObject':_0x12fd25,'containsRangeInObject':_0x2b8df1}}),_0xf7e502=!0x0;break;}}if(_0xf7e502)break;}}return _0x5ae103;}['_addSuggestionMarker'](_0x247992,_0xba2ea1,_0x8c4709,_0x671016,_0x37f590){this['_model']['change'](_0x2d252c=>{let _0x1e6f12='suggestion:'+_0x247992+':'+_0xba2ea1+':'+_0x8c4709;_0x37f590&&(_0x1e6f12=_0x1e6f12+':'+_0x37f590),_0x2d252c['addMarker'](_0x1e6f12,{'range':_0x671016,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f357d){const _0x35112e=_0x4f357d['previous'],_0x16f4fa=_0x4f357d['next'];_0x4f357d['previous']=null,_0x4f357d['next']=null,null!=_0x35112e&&_0x35112e['next']==_0x4f357d&&(_0x35112e['next']=_0x16f4fa),null!=_0x16f4fa&&_0x16f4fa['previous']==_0x4f357d&&(_0x16f4fa['previous']=_0x35112e),'ready'==this['_suggestionState']['get'](_0x4f357d)&&(this['_suggestionState']['set'](_0x4f357d,'removed'),this['fire']('suggestionUnloaded',_0x4f357d,_0x35112e,_0x16f4fa));}['_setSuggestionData'](_0x4ee36e){const _0x3f9083=_0x4ee36e['id'],_0xdd6b2a=this['addSuggestionData'](_0x4ee36e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3b676b=this['editor']['plugins']['get']('PendingActions'),_0x50d9cb=_0xdd6b2a['hasComments'],_0x4ae49b=_0xdd6b2a['subType']?_0xdd6b2a['type']+':'+_0xdd6b2a['subType']:_0xdd6b2a['type'],_0x432531=this['editor']['locale'],_0x1b53fa=_0x3b676b['add'](o(_0x432531,'PENDING_ACTION_SUGGESTION')),_0x20c16a={'id':_0x3f9083,'type':_0x4ae49b,'hasComments':_0x50d9cb,'data':_0x4ee36e['data']||null,'originalSuggestionId':_0x4ee36e['originalSuggestionId']||null,'attributes':_0xdd6b2a['attributes']};this['_adapter']['addSuggestion'](_0x20c16a)['then'](_0x45fa7c=>{_0xdd6b2a['_saved']=!0x0,_0x3b676b['remove'](_0x1b53fa),_0x45fa7c&&_0x45fa7c['createdAt']&&(this['_suggestions']['get'](_0x3f9083)['createdAt']=_0x45fa7c['createdAt']);})['catch'](_0x5c2c53=>{throw _0x8a1eb9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xdd6b2a['discard']();}),_0xdd6b2a['stopListening'](),this['_suggestions']['delete'](_0xdd6b2a['id']),this['_suggestionState']['delete'](_0xdd6b2a),_0x5c2c53;});}return _0xdd6b2a;}['_isBlockAttribute'](_0x44582c){return this['_blockAttributeKeys']['has'](_0x44582c);}['_updateSuggestionData'](_0x4043de,_0x54ded4){const _0xc38eb7=this['editor']['plugins']['get']('PendingActions'),_0x529460=this['getSuggestion'](_0x4043de);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x529460['_saved']){const _0x4c26ed=_0xc38eb7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4043de,_0x54ded4)['then'](()=>{_0xc38eb7['remove'](_0x4c26ed);});}else _0x529460['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4043de,_0x54ded4);});}}['_getSuggestionData'](_0x23aa4a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x24debd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x23aa4a);}['_handleNewSuggestionMarker'](_0x5c7f14){const {id:_0x10fb63,type:_0x2e7be1,subType:_0x496657,authorId:_0x5eef32}=this['_splitMarkerName'](_0x5c7f14),_0x4f2f2d=this['_suggestions']['get'](_0x10fb63)||this['_createSuggestion'](_0x2e7be1,_0x496657,_0x10fb63,_0x5eef32,{});switch(this['_checkSuggestionCorrectness'](_0x4f2f2d,_0x2e7be1,_0x496657,_0x5eef32),this['_suggestionState']['get'](_0x4f2f2d)){case'notReady':this['_getSuggestionData'](_0x10fb63)['then'](_0x46dd86=>{let _0x291ee7=Promise['resolve']();_0x46dd86['hasComments']&&(_0x291ee7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x10fb63})),_0x291ee7['then'](()=>{this['addSuggestionData'](_0x46dd86)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f2f2d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x10fb63,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f2f2d,'ready'),this['fire']('suggestionLoaded',_0x4f2f2d);break;case'ready':this['fire']('suggestionChanged',_0x4f2f2d);}return _0x4f2f2d['addMarkerName'](_0x5c7f14),_0x4f2f2d;}['_refreshSuggestionsChain'](_0x394fb0){const _0x457396=Array['from'](_0x394fb0),_0x50b70f=_0x457396['filter'](_0x4eb75e=>'attribute'==_0x4eb75e['type']);this['_refreshAttributeSuggestionsChain'](_0x50b70f);const _0x3b043a=_0x457396['filter'](_0x1e79b5=>!_0x1e79b5['isMultiRange']&&'attribute'!=_0x1e79b5['type']),_0x17e4c6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b1914=>!_0x3b1914['isMultiRange']&&'attribute'!=_0x3b1914['type']),_0xf43c38=_0x17e4c6['filter'](_0x18135c=>!_0x394fb0['has'](_0x18135c)),_0x49ed69=new Map(_0x17e4c6['map'](_0x358f51=>[_0x358f51,this['_suggestionFactory']['getSuggestionCallback'](_0x358f51['type'],_0x358f51['subType'],'chain')])),_0x182f2d=new Map(_0x17e4c6['map'](_0x372ae1=>[_0x372ae1,_0x372ae1['getFirstRange']()])),_0x4da895=new Set(),_0x4a7f81=new Set();for(let _0x84142d=0x0;_0x84142d<_0x3b043a['length'];_0x84142d++)_0x5ba686(_0x3b043a[_0x84142d],_0x3b043a,_0x84142d+0x1);for(let _0x5c2df6=0x0;_0x5c2df6<_0x3b043a['length'];_0x5c2df6++)_0x5ba686(_0x3b043a[_0x5c2df6],_0xf43c38,0x0);const _0x126b5a=new Set();for(let _0x356b83=0x0;_0x356b83<_0x3b043a['length'];_0x356b83++){const _0x5d3b1b=_0x3b043a[_0x356b83];!_0x4a7f81['has'](_0x5d3b1b)&&_0x5d3b1b['previous']&&(_0x126b5a['add'](_0x5d3b1b['previous']),_0x5d3b1b['previous']['next']===_0x5d3b1b&&(_0x5d3b1b['previous']['next']=null),_0x5d3b1b['previous']=null),!_0x4da895['has'](_0x5d3b1b)&&_0x5d3b1b['next']&&(_0x126b5a['add'](_0x5d3b1b['next']),_0x5d3b1b['next']['previous']===_0x5d3b1b&&(_0x5d3b1b['next']['previous']=null),_0x5d3b1b['next']=null);}function _0x5ba686(_0x4edf77,_0x162bea,_0x17a2ba){for(let _0x56f05c=_0x17a2ba;_0x56f05c<_0x162bea['length'];_0x56f05c++){const _0x5f3cc9=_0x49689b(_0x4edf77,_0x162bea[_0x56f05c]);_0x5f3cc9&&(_0x5f3cc9[0x0]['next']=_0x5f3cc9[0x1],_0x5f3cc9[0x1]['previous']=_0x5f3cc9[0x0],_0x4da895['add'](_0x5f3cc9[0x0]),_0x4a7f81['add'](_0x5f3cc9[0x1]));}}function _0x49689b(_0x586afb,_0x398929){if(_0x586afb['author']['id']!==_0x398929['author']['id'])return null;const _0xf2c623=_0x49ed69['get'](_0x586afb)(_0x586afb,_0x398929,_0x182f2d['get'](_0x586afb),_0x182f2d['get'](_0x398929));if(!_0xf2c623)return null;return _0x49ed69['get'](_0x398929)(_0x586afb,_0x398929,_0x182f2d['get'](_0x586afb),_0x182f2d['get'](_0x398929))?_0xf2c623[0x1]['commentThread']&&_0xf2c623[0x1]['commentThread']['length']?null:_0xf2c623:null;}_0x126b5a['size']&&this['_refreshSuggestionsChain'](_0x126b5a);}['_refreshAttributeSuggestionsChain'](_0x25c4b3){if(0x0==_0x25c4b3['length'])return;const _0x12130e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f936d=>'attribute'==_0x3f936d['type']&&_0x3f936d['_isDataLoaded']),_0x4d0864=[],_0x53ca39=new Map();for(const _0x5cdc3d of _0x12130e){const _0x1be096=_0x5c1cf2(_0x5cdc3d['attributes']);_0x53ca39['has'](_0x1be096)||(_0x53ca39['set'](_0x1be096,_0x4d0864['length']),_0x4d0864['push']([]));const _0x552c8e=_0x53ca39['get'](_0x1be096);_0x4d0864[_0x552c8e]['push'](_0x5cdc3d);}!(function(){_0x4d0864['sort']((_0x238791,_0x548648)=>{const _0x3a5ae2=_0x238791[0x0]['createdAt'],_0x31ebcd=_0x548648[0x0]['createdAt'];return _0x3a5ae2==_0x31ebcd?_0x238791[0x0]['attributes']['groupId']<_0x548648[0x0]['attributes']['groupId']?-0x1:0x1:_0x3a5ae2<_0x31ebcd?-0x1:0x1;});for(const _0x2462af of _0x4d0864)_0x2462af['sort']((_0x2cdbe5,_0x578dc0)=>_0x2cdbe5['id']<_0x578dc0['id']?-0x1:0x1);}());for(let _0x5e92f3=0x0;_0x5e92f3<_0x4d0864['length'];_0x5e92f3++){if(0x0==_0x4d0864[_0x5e92f3]['length'])continue;const _0x6809c7=[];for(let _0x331a3d=_0x5e92f3+0x1;_0x331a3d<_0x4d0864['length'];_0x331a3d++)0x0!=_0x4d0864[_0x331a3d]['length']&&_0x2789f1(_0x4d0864[_0x5e92f3],_0x4d0864[_0x331a3d])&&_0x6809c7['push'](_0x331a3d);for(const _0x36e869 of _0x6809c7)_0x4d0864[_0x5e92f3]=_0x4d0864[_0x5e92f3]['concat'](_0x4d0864[_0x36e869]),_0x4d0864[_0x36e869]=[];}for(const _0x186865 of _0x4d0864)for(let _0x4e4196=0x0;_0x4e4196<_0x186865['length'];_0x4e4196++){const _0x587158=_0x186865[_0x4e4196+0x1]||null;_0x186865[_0x4e4196]['next']!==_0x587158&&(_0x186865[_0x4e4196]['next']=_0x587158);}for(const _0x10b0c9 of _0x4d0864)for(let _0x1056a1=0x0;_0x1056a1<_0x10b0c9['length'];_0x1056a1++){const _0x10c2f7=_0x10b0c9[_0x1056a1-0x1]||null;_0x10b0c9[_0x1056a1]['previous']!==_0x10c2f7&&(_0x10b0c9[_0x1056a1]['previous']=_0x10c2f7);}function _0x2789f1(_0x15a6b1,_0x1325d9){if(_0x15a6b1[0x0]['attributes']['groupId']!==_0x1325d9[0x0]['attributes']['groupId']&&_0x15a6b1[0x0]['author']!==_0x1325d9[0x0]['author'])return!0x1;if(!function(_0x4bdd5e,_0x347c9){if(!_0x4bdd5e['hasComments']&&!_0x347c9['hasComments'])return!0x0;if(_0x4bdd5e['hasComments']&&_0x347c9['hasComments'])return!0x1;if(_0x4bdd5e['hasComments']&&_0x347c9['createdAt']<_0x4bdd5e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x347c9['hasComments']&&_0x4bdd5e['createdAt']<_0x347c9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x15a6b1[0x0],_0x1325d9[0x0]))return!0x1;const _0x21056b=Tt(_0x15a6b1[0x0]['attributes'],'groupId'),_0x515c34=Tt(_0x1325d9[0x0]['attributes'],'groupId');if(!_0x542e5d(_0x21056b,_0x515c34))return!0x1;return!!_0x15a6b1['every'](_0x3dbe55=>_0x1325d9['some'](_0x152284=>_0x3dbe55['getFirstRange']()['isEqual'](_0x152284['getFirstRange']())))&&_0x1325d9['every'](_0x468534=>_0x15a6b1['some'](_0x233d71=>_0x468534['getFirstRange']()['isEqual'](_0x233d71['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x14c15d){const _0x42f963=Array['from'](_0x14c15d),_0x2e09fe=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5066e0=_0x2e09fe['filter'](_0x49af42=>!_0x14c15d['has'](_0x49af42)),_0x224626=new Map(_0x42f963['map'](_0x3f5de7=>[_0x3f5de7,this['_suggestionFactory']['getSuggestionCallback'](_0x3f5de7['type'],_0x3f5de7['subType'],'join')])),_0x17100d=new Map(_0x2e09fe['map'](_0x2224e3=>[_0x2224e3,_0x2224e3['getRanges']()]));for(let _0x397b65=0x0;_0x397b65<_0x42f963['length'];_0x397b65++){if(_0x45b014(this,_0x42f963[_0x397b65],_0x42f963,_0x397b65+0x1))return!0x0;}for(let _0x5509b7=0x0;_0x5509b7<_0x42f963['length'];_0x5509b7++){if(_0x45b014(this,_0x42f963[_0x5509b7],_0x5066e0,0x0))return!0x0;}return!0x1;function _0x45b014(_0x495a13,_0x3164ed,_0x465d17,_0x136ff7){for(let _0x77cd19=_0x136ff7;_0x77cd19<_0x465d17['length'];_0x77cd19++){const _0x114832=_0x465d17[_0x77cd19];if(_0x114832['type']!==_0x3164ed['type']||_0x114832['author']['id']!==_0x3164ed['author']['id']||_0x114832['subType']!==_0x3164ed['subType'])continue;if(!Jt(_0x3164ed,_0x114832))continue;if('attribute'==_0x3164ed['type']&&_0x3164ed['data']['oldValue']!=_0x114832['data']['oldValue'])continue;if('attribute'==_0x3164ed['type']&&_0x495a13['_isBlockAttribute'](_0x3164ed['data']['key']))continue;if('formatBlock'==_0x3164ed['type']){const _0x4b213c=_0x495a13['editor']['model'],_0x29f672=_0x3164ed['getContainedElement']();if(_0x29f672&&(_0x4b213c['schema']['isObject'](_0x29f672)||_0x4b213c['schema']['isLimit'](_0x29f672)))continue;}const _0xb23749=_0x224626['get'](_0x3164ed),_0x17d62a=_0x17100d['get'](_0x3164ed),_0x13fb6e=_0x17100d['get'](_0x114832),_0x33c8e4=_0x3164ed['commentThread']&&_0x3164ed['commentThread']['length'],_0x424ead=_0x114832['commentThread']&&_0x114832['commentThread']['length'];if(!_0x33c8e4&&_0xb23749(_0x13fb6e,_0x17d62a))return _0x495a13['_joinSuggestions'](_0x114832,_0x3164ed),_0x17100d['delete'](_0x3164ed),!0x0;if(!_0x424ead&&_0xb23749(_0x17d62a,_0x13fb6e))return _0x495a13['_joinSuggestions'](_0x3164ed,_0x114832),_0x17100d['delete'](_0x114832),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3608cd,_0xa0d038){if(_0x3608cd['isMultiRange']){for(const _0x20d5fd of _0xa0d038['getRanges']())_0x3608cd['addRange'](_0x20d5fd);}else{const _0x434741=_0xa0d038['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3608cd,this['_model']['createRange'](_0x3608cd['getFirstRange']()['start'],_0x434741));}_0xa0d038['removeMarkers']();}['_getMarkerAnnouncementText'](_0x99aa03,_0x2e1e02,_0x52ffc0){const _0xca9776=_0x99aa03['startsWith']('format')||_0x99aa03['startsWith']('attribute')?'FORMATTING':_0x99aa03['toUpperCase']();return o(this['editor']['locale'],_0x2e1e02+'_'+_0xca9776+'_SUGGESTION_ANNOUNCEMENT',_0x52ffc0);}['_initAriaMarkerChangeAnnouncements'](){const _0x28a6d8=this['editor'];if(!_0x28a6d8['ui'])return;const {ariaLiveAnnouncer:_0x3aa6e6}=_0x28a6d8['ui'];_0x18ea2e(this['_model'],({left:_0x52ce9a,entered:_0x19d2a2})=>{for(const _0x279f55 of _0x52ce9a){const {group:_0x4256ee,type:_0x37f90a}=this['_splitMarkerName'](_0x279f55['name']);if('suggestion'===_0x4256ee){_0x3aa6e6['announce'](this['_getMarkerAnnouncementText'](_0x37f90a,'LEAVE'));break;}}for(const _0x5df723 of _0x19d2a2){const {group:_0x25e574,type:_0x57799f}=this['_splitMarkerName'](_0x5df723['name']);if('suggestion'===_0x25e574){_0x3aa6e6['announce'](this['_getMarkerAnnouncementText'](_0x57799f,'ENTER',_0x1fa791(_0x4d4f05)));break;}}});}['_processAttributeChanges'](_0x3bd1dc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x15d765=this['editor'],_0x19f52a=_0x15d765['model']['document']['differ']['getChanges']();if(0x0==_0x19f52a['length'])return!0x1;const _0x18f46d=[],_0x26902c=_0x19f52a['filter'](_0x4a1b6b=>'attribute'==_0x4a1b6b['type']),_0x50a8c1=_0x19f52a['filter'](_0xd7e887=>'insert'==_0xd7e887['type']&&'$text'!=_0xd7e887['name']),_0x7c8aed=_0x19f52a['filter'](_0x443c11=>'remove'==_0x443c11['type']&&'$text'!=_0x443c11['name']);for(const _0x2d6762 of _0x26902c)_0x18f46d['push']({'key':_0x2d6762['attributeKey'],'newValue':_0x2d6762['attributeNewValue'],'oldValue':_0x2d6762['attributeOldValue'],'range':Pt(_0x2d6762['range'],_0x15d765['model'])});for(const _0x3bc08a of _0x50a8c1){const _0x2500ff=_0x7c8aed['find'](_0x22017e=>_0x22017e['position']['isEqual'](_0x3bc08a['position']));_0x2500ff&&_0x18f46d['push']({'key':m,'newValue':_0x3bc08a['name'],'oldValue':_0x2500ff['name'],'range':_0x15d765['model']['createRangeOn'](_0x3bc08a['position']['nodeAfter'])});}return 0x0!=_0x18f46d['length']&&this['_reduceExistingSuggestions'](_0x3bd1dc,_0x18f46d);}['_processAttributeSuggestions'](_0xa836ce){let _0x1afd98=!0x1;const _0x2a7dc9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x532ce9=>_0x532ce9['data']['newRange']&&_0x532ce9['name']['startsWith']('suggestion:attribute:'));for(const _0x185a5f of _0x2a7dc9){const {subType:_0x43d08c,id:_0x247fe6}=this['_splitMarkerName'](_0x185a5f['name']),_0x1c0252=_0x43d08c['split']('|')[0x0];for(const _0xb53ed of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb53ed['id']!=_0x247fe6&&'attribute'==_0xb53ed['type']&&_0xb53ed['data']&&_0xb53ed['data']['key']==_0x1c0252&&_0xb53ed['getFirstRange']()['isIntersecting'](_0x185a5f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb53ed,_0x185a5f['data']['newRange'],_0xa836ce),_0x1afd98=!0x0);}return _0x1afd98;}['_recordAttributeChanges'](_0x3548d5){this['_recordAttributeSuggestions']=!0x0,_0x3548d5();}['_isRegisteredAttribute'](_0x41bf8a){const _0x1e43e4=this['_isBlockAttribute'](_0x41bf8a),_0x21eac4=this['_inlineAttributeKeys']['has'](_0x41bf8a);return _0x1e43e4||_0x21eac4;}['_reduceExistingSuggestions'](_0x211a0b,_0x3656fc){if(0x0==_0x3656fc['length'])return!0x1;let _0x277bed=!0x1;for(const _0x376f14 of _0x3656fc){const _0x226906=this['_findSuggestions'](_0x376f14['range'],'attribute')['filter'](_0x1d2c15=>!_0x1d2c15['meta']['isNextTo'])['map'](_0x568aa0=>_0x568aa0['suggestion']),_0x2e464e=_0x5c1cf2({'newValue':_0x376f14['newValue']});_0x226906['filter'](_0x6da957=>{const [_0x1104be,_0x4549b0]=_0x6da957['subType']['split']('|');return _0x1104be==_0x376f14['key']&&_0x4549b0!=_0x2e464e;})['forEach'](_0x5e6e92=>{this['_reduceSuggestionAttributeRange'](_0x5e6e92,_0x376f14['range'],_0x211a0b),_0x277bed=!0x0;});}return _0x277bed;}['_reduceSuggestionAttributeRange'](_0x569a7a,_0x1a8402,_0x5b9340){const _0x5b2348=_0x569a7a['getFirstRange']()['getDifference'](_0x1a8402);0x0!==_0x5b2348['length']?0x1!==_0x5b2348['length']?this['_breakSuggestionMarker'](_0x569a7a,_0x1a8402['start'],_0x1a8402['end']):this['_setSuggestionRange'](_0x569a7a,_0x5b2348[0x0]):_0x5b9340['removeMarker'](_0x569a7a['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2c1b53){this['_editor']=_0x2c1b53,this['_model']=_0x2c1b53['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x37f1d9,_0x4f1428,_0x459f63,_0x366507,_0x5b464a,_0x12c600){return new u(this['_model'],{'type':_0x37f1d9,'subType':_0x4f1428,'id':_0x459f63,'author':_0x366507,'creator':_0x366507,'attributes':_0x5b464a,'onAttributesChange':_0x12c600,'onAccept':(..._0x389320)=>this['getSuggestionCallback'](_0x37f1d9,_0x4f1428,'accept')(..._0x389320),'onDiscard':(..._0x1b9311)=>this['getSuggestionCallback'](_0x37f1d9,_0x4f1428,'discard')(..._0x1b9311)});}['registerCustomCallback'](_0x5ab2ee,_0x2a44fd,_0x5a4bcc,_0x354943){const _0x3ffcd3=_0x5ab2ee+':'+_0x2a44fd+':'+_0x5a4bcc;this['_customCallbacks']['set'](_0x3ffcd3,_0x354943);}['getSuggestionCallback'](_0x4a340d,_0x125376,_0x3e0aa8){const _0x5eee9e=_0x4a340d+':'+_0x125376+':'+_0x3e0aa8;return this['_customCallbacks']['get'](_0x5eee9e)||this['_defaultCallbacks']['get'](_0x4a340d+':'+_0x3e0aa8);}['_registerDefaultCallbacks'](){const _0x236950=()=>!0x1,_0x2ee12e=_0x36f714=>{_0x36f714['sort']((_0x4a00d9,_0x308596)=>_0x4a00d9['start']['isBefore'](_0x308596['start'])?0x1:-0x1),this['_model']['change'](_0x15b65a=>{for(const _0x7c915d of _0x36f714){let _0x5330b6;_0x5330b6=_0x7c915d['end']['isAtEnd']&&_0x7c915d['end']['parent']==_0x7c915d['start']['nodeAfter']?_0x15b65a['createSelection'](_0x7c915d['start']['nodeAfter'],'on'):_0x15b65a['createSelection'](_0x7c915d),this['_model']['deleteContent'](_0x5330b6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x8478a4=(_0x28a832,_0x2f0617)=>{_0x2f0617&&this['_model']['change'](_0x27bb56=>{const {commandName:_0x51790e,commandParams:_0x3cc297=[]}=_0x2f0617,_0x33e10d=_0x28a832['map'](_0x4dc964=>(Vt(_0x4dc964)&&(_0x4dc964=this['_model']['createRange'](_0x4dc964['end'])),_0x4dc964))['filter'](_0x10d03f=>'$graveyard'!==_0x10d03f['root']['rootName']);if(_0x33e10d['length']<0x1)return;const _0x1dd4f4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x52405b=>_0x5da18b['fromRange'](_0x52405b));_0x27bb56['setSelection'](_0x33e10d);for(const _0x449294 of this['_editor']['commands']['commands']())_0x449294['refresh']();_0x3cc297['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51790e,..._0x3cc297);const _0x13a27a=_0x1dd4f4['filter'](_0x4fbff8=>'$graveyard'!=_0x4fbff8['root']['rootName']);_0x13a27a['length']>0x0&&_0x27bb56['setSelection'](_0x13a27a);for(const _0x4581ed of _0x1dd4f4)_0x4581ed['detach']();});},_0x5b6832=(_0x34f1da,_0x21b31f)=>0x1==_0x34f1da['length']&&0x1==_0x21b31f['length']&&_0x34f1da[0x0]['end']['isEqual'](_0x21b31f[0x0]['start']),_0x249bf3=(_0x422255,_0x43a83a,_0x58ed0a,_0x1673c1)=>Ht(_0x422255,_0x43a83a,_0x58ed0a,_0x1673c1,this['_model'])?[_0x422255,_0x43a83a]:Ht(_0x43a83a,_0x422255,_0x1673c1,_0x58ed0a,this['_model'])?[_0x43a83a,_0x422255]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x236950),this['_defaultCallbacks']['set']('insertion:discard',_0x2ee12e),this['_defaultCallbacks']['set']('insertion:join',_0x5b6832),this['_defaultCallbacks']['set']('insertion:chain',_0x249bf3),this['_defaultCallbacks']['set']('deletion:accept',_0x2ee12e),this['_defaultCallbacks']['set']('deletion:discard',_0x236950),this['_defaultCallbacks']['set']('deletion:join',_0x5b6832),this['_defaultCallbacks']['set']('deletion:chain',_0x249bf3),this['_defaultCallbacks']['set']('formatInline:accept',_0x8478a4),this['_defaultCallbacks']['set']('formatInline:discard',_0x236950),this['_defaultCallbacks']['set']('formatInline:join',_0x5b6832),this['_defaultCallbacks']['set']('formatInline:chain',_0x236950),this['_defaultCallbacks']['set']('formatBlock:accept',_0x8478a4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x236950),this['_defaultCallbacks']['set']('formatBlock:join',_0x5b6832),this['_defaultCallbacks']['set']('formatBlock:chain',_0x236950),this['_defaultCallbacks']['set']('attribute:accept',_0x236950),this['_defaultCallbacks']['set']('attribute:discard',(_0x12b026,_0x379ea1)=>{if(!_0x379ea1)return;const _0x3ac820=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3a2add=>{if(_0x379ea1['key']==m)for(const _0x509040 of _0x12b026){const _0x593bf2=_0x509040['start']['nodeAfter'],_0x54d405=_0x379ea1['oldValue'];_0x3a2add['rename'](_0x593bf2,_0x54d405);}else{if(_0x3ac820['_isBlockAttribute'](_0x379ea1['key'])){for(const _0x38217b of _0x12b026)void 0x0!==_0x379ea1['oldValue']?_0x3a2add['setAttribute'](_0x379ea1['key'],_0x379ea1['oldValue'],_0x38217b['start']['nodeAfter']):_0x3a2add['removeAttribute'](_0x379ea1['key'],_0x38217b['start']['nodeAfter']);}else{for(const _0x1bbaa2 of _0x12b026)_0x379ea1['oldValue']?_0x3a2add['setAttribute'](_0x379ea1['key'],_0x379ea1['oldValue'],_0x1bbaa2):_0x3a2add['removeAttribute'](_0x379ea1['key'],_0x1bbaa2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5b6832);}}function Ot(_0x5b0600,_0x54bc90,_0x2f7874){for(const _0x2975e5 of _0x54bc90['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2975e5['root']==_0x2975e5)return!0x1;if(!_0x2f7874['containsItem'](_0x2975e5))return!0x1;if(_0x5b0600['isObject'](_0x2975e5)||_0x5b0600['isLimit'](_0x2975e5))return!0x0;}return!0x1;}function Vt(_0x3a973d){return _0x3a973d['end']['parent']==_0x3a973d['start']['nodeAfter']&&_0x3a973d['end']['isAtStart'];}function Ut(_0x1cfafe,_0x17dc90,_0x5655bd,_0x337fde){const _0x206c19=_0x1eb634=>!_0x1eb634['item']['is']('$textProxy')&&!_0x337fde['isObject'](_0x1eb634['item']),_0x2e8806=_0x1cfafe['start']['getLastMatchingPosition'](_0x206c19),_0x508215=_0x1cfafe['end']['getLastMatchingPosition'](_0x206c19,{'direction':'backward'});return(!_0x1cfafe['start']['isEqual'](_0x2e8806)||!_0x1cfafe['end']['isEqual'](_0x508215))&&(_0x2e8806['isBefore'](_0x508215)?_0x5655bd['updateMarker'](_0x17dc90,{'range':_0x5655bd['createRange'](_0x2e8806,_0x508215)}):_0x5655bd['removeMarker'](_0x17dc90),!0x0);}function Gt(_0x813c9a){return _0x5c1cf2(_0x813c9a);}function Ft(_0x233833){const _0x18355d=_0x233833['start']['nodeAfter'];return _0x18355d&&_0x18355d['is']('element');}function Pt(_0x632b46,_0x1179d0){return null==_0x632b46['end']['nodeBefore']&&_0x632b46['end']['parent']==_0x632b46['start']['nodeAfter']?Lt(_0x632b46['start']['nodeAfter'],_0x1179d0):_0x632b46;}function Lt(_0x262104,_0x31b4fb){const _0x1d291a=_0x31b4fb['schema']['isObject'](_0x262104)||_0x31b4fb['schema']['isSelectable'](_0x262104);return _0x31b4fb['createRange'](_0x31b4fb['createPositionAt'](_0x262104,'before'),_0x1d291a?_0x31b4fb['createPositionAfter'](_0x262104):_0x31b4fb['createPositionAt'](_0x262104,'end'));}function Ht(_0x3a5ebf,_0xce9b81,_0xc3ca20,_0x40607a,_0x431c9c){if(_0x3a5ebf['next'])return!0x1;if(!Jt(_0x3a5ebf,_0xce9b81))return!0x1;if(_0xc3ca20['end']['isEqual'](_0x40607a['start']))return!0x0;if(_0x3a5ebf['type']!=_0xce9b81['type'])return!0x1;if(!_0xc3ca20['end']['isTouching'](_0x40607a['start']))return!0x1;const _0x5502b0=_0x431c9c['createRange'](_0xc3ca20['end'],_0x40607a['start'])['getWalker']();for(const _0x3fd0cb of _0x5502b0)if(['elementStart','elementEnd']['includes'](_0x3fd0cb['type'])&&_0x431c9c['schema']['isLimit'](_0x3fd0cb['item']))return!0x1;return!0x0;}function Jt(_0x4e4ae8,_0x487057){if(!_0x4e4ae8['_isDataLoaded']||!_0x487057['_isDataLoaded'])return!0x1;const _0x4b977e=new Set(Object['keys'](_0x4e4ae8['attributes'])),_0xd56fc3=new Set(Object['keys'](_0x487057['attributes']));if(_0x4b977e['delete']('groupId'),_0xd56fc3['delete']('groupId'),0x0==_0x4b977e['size']&&0x0==_0xd56fc3['size'])return!0x0;if(_0x4b977e['size']!=_0xd56fc3['size'])return!0x1;const _0x22cba0={..._0x4e4ae8['attributes']},_0x458a85={..._0x487057['attributes']};return delete _0x22cba0['groupId'],delete _0x458a85['groupId'],JSON['stringify'](_0x22cba0)==JSON['stringify'](_0x458a85);}function qt(_0x1b5616,_0x31005a){const _0x186960=zt(_0x1b5616['attributes']),_0x1222bd=zt(_0x31005a);if(!_0x1b5616['_isDataLoaded'])return!0x1;for(const _0x5905cc of Object['keys'](_0x1222bd))if(!_0x542e5d(_0x186960[_0x5905cc],_0x1222bd[_0x5905cc]))return!0x1;return!0x0;}function zt(_0x56f969){const _0x1b3967=Object['assign']({},_0x56f969);return delete _0x1b3967['skipNestingCheck'],delete _0x1b3967['tablePasteChainId'],_0x1b3967;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x1647c4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x262c3d,_0x525238,_0x33029d,_0x1aa65a){super(),this['model']=_0x525238,this['view']=_0x33029d,this['commentThreadController']=_0x1aa65a,this['_editor']=_0x262c3d,this['_acceptCommand']=_0x262c3d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x262c3d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3e7bb7,_0x1ad42e)=>_0x3e7bb7||_0x1ad42e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2bebfe=>_0x2bebfe&&this['_editor']['model']['canEditAt'](_0x525238['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4fb330=>_0x4fb330&&this['_editor']['model']['canEditAt'](_0x525238['getRanges']())),this['_pendingAction']=null,_0x33029d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x33029d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x33029d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x33029d,'change:isDirty',()=>{_0x33029d['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 _0x40fef8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x40fef8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x41b13d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x508f88,_0x3c0047,_0x516d60,_0x25ac06){super(_0x508f88),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x31a896(_0x508f88,o(_0x508f88,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3c0047['authoredAt']),this['bind']('authoredAt')['to'](_0x3c0047),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x3c0047,'authoredAt',this,'descriptionParts',(_0x262171,_0x3330d5,_0x4cf18f)=>{const _0x3e0bd1=_0x4cf18f['map'](_0x3f578f=>ls(_0x3f578f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x262171-0x1,_0x3c0047['author']['name'],_0x3330d5?_0x25ac06['formatDateTime'](_0x3330d5):'',new DOMParser()['parseFromString'](_0x3e0bd1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x511aad(),this['focusTracker']=new _0x1acb6e(),this['keystrokes']=new _0x11b522(),this['focusCycler']=new _0x4cd398({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x446bdd=>_0x446bdd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3c0047,this['_localUser']=_0x516d60,this['_config']=_0x25ac06,_0x25ac06['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x113ddf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4d9fd1}=this['_config'];this['commentsListView']=new _0x4d9fd1(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',_0x1dca4e=>_0x1dca4e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4bd706,_0x5b2bb7)=>_0x4bd706||!!_0x5b2bb7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a58f8}=this['_config'],_0xd74450=new _0x5a58f8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2abe8a=_0xd74450['commentInputView'];return _0xd74450['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2abe8a,'value',(_0x108c52,_0x59f7c7,_0x45c971)=>!!_0x45c971||_0x108c52&&!_0x59f7c7),_0x2abe8a['on']('submit',(_0x550884,_0x1b64c2)=>{this['fire']('addComment',_0x1b64c2),_0x2abe8a['editor']['setData']('');}),_0x2abe8a['on']('cancel',()=>this['focus']()),_0x2abe8a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd74450;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5f44f3,_0x3a1542,_0x3fbe48,_0x178027){super(_0x5f44f3,_0x3a1542,_0x3fbe48,_0x178027),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x39a907=>_0x39a907&&_0x39a907[0x0]?_0x39a907[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x120166,_0x955698)=>{let _0x5bda0a='';for(const _0x11513f of _0x120166)_0x5bda0a+='<p>'+ls(_0x11513f['content'],_0x11513f['color'])+'</p>';return _0x955698?_0x5bda0a:_0x2ca58a(_0x5bda0a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x178027['SuggestionView'](_0x5f44f3,_0x3a1542,{'formatDateTime':_0x178027['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2c45eb=this['bindTemplate'],_0x2a344f=[this['suggestionView']];return this['commentsListView']&&_0x2a344f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2a344f['push'](this['commentThreadInputView']),_0x2a344f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c45eb['if']('isActive','ck-suggestion-wrapper--active'),_0x2c45eb['to']('type',_0x147348=>'ck-suggestion-'+_0x147348),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2c45eb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2a344f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x41b13d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5cafce,_0x3363a9,_0x53e02f){super(_0x5cafce),this['_model']=_0x3363a9,this['_config']=_0x53e02f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3363a9),this['acceptButton']=this['_createButton'](o(_0x5cafce,'Accept\x20suggestion'),_0x414248['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5cafce,'Discard\x20suggestion'),_0x414248['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x26ba73(_0x5cafce,_0x3363a9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x511aad([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1acb6e(),this['keystrokes']=new _0x11b522(),this['focusCycler']=new _0x4cd398({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x16ad68=>_0x16ad68['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1e3018=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1e3018['innerHTML']=this['description'],this['on']('change:description',(_0xad0403,_0x52245a,_0x164d59)=>{_0x1e3018['innerHTML']=_0x164d59;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4586b6=this['bindTemplate'],_0x339eb3=[{'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':_0x4586b6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4586b6['to']('authoredAt',_0x3489b0=>this['_config']['formatDateTime'](_0x3489b0))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x339eb3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x339eb3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x50a959,_0x35839c,_0x43dbfd,_0xf838d9,_0x375434){const _0x1c50f3=new _0x2f0ecf(this['locale']);return _0x1c50f3['set']({'label':_0x50a959,'icon':_0x35839c,'tooltip':!0x0,'tooltipPosition':_0x375434}),_0x1c50f3['extendTemplate']({'attributes':{'class':_0x43dbfd}}),_0x1c50f3['on']('execute',()=>{this['fire'](_0xf838d9,this['_model']['id']);}),_0x1c50f3;}['_setupKeyboardNavigation'](){const _0x3d10eb=this['element'];this['keystrokes']['listenTo'](_0x3d10eb);for(const _0x52ba20 of this['focusables'])this['focusTracker']['add'](_0x52ba20['element']),this['keystrokes']['listenTo'](_0x52ba20['element']);this['keystrokes']['set']('enter',(_0x16f832,_0x5d9228)=>{_0x3d10eb===_0x16f832['target']&&(this['focusCycler']['focusFirst'](),_0x5d9228());}),this['keystrokes']['set']('esc',(_0x4ea037,_0x1e81e3)=>{_0x3d10eb!==_0x4ea037['target']&&(this['focus'](),_0x1e81e3());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x254461{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1ed7f3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1d0be3){super(_0x1d0be3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x461dcc=this['editor']['config'];_0x461dcc['define']('trackChanges.SuggestionThreadView',re),_0x461dcc['define']('trackChanges.SuggestionView',ce),_0x461dcc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x461dcc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x55648c,_0x2431c0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x8b337,_0x4298ca]of this['_handleControllerBuffer']){const _0x2c2ed3=this['_suggestionToController']['has'](_0x8b337);_0x2c2ed3||_0x4298ca?_0x2c2ed3&&_0x4298ca&&this['_destroyController'](_0x8b337):this['_initializeController'](_0x8b337);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x55648c,_0x2431c0);}['init'](){const _0x2d26e0=this['editor'],_0x443856=_0x2d26e0['plugins']['get']('TrackChangesEditing'),_0x3eba2f=_0x2d26e0['plugins']['get']('Annotations'),_0x1b1c34=_0x2d26e0['plugins']['get']('EditorAnnotations'),_0x29a06f=_0x2d26e0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1b1c34['addSourceCollector'](()=>{const _0x197012=[];for(const [_0x372cbd,_0x1a0726]of Array['from'](this['_suggestionToController'])){const _0x203ed9=_0x372cbd['getAllAdjacentSuggestions'](),_0x4f85c7=[];for(const _0x689f59 of _0x203ed9){if(!_0x689f59['isInContent'])continue;if(_0x689f59['isMultiRange']){_0x4f85c7['push'](..._0x689f59['getRanges']());continue;}const _0xff9cb4=_0x689f59['getFirstRange']();if(_0x4f85c7['length']>0x0){const _0x31d309=_0x4f85c7[0x0]['getJoined'](_0xff9cb4);if(_0x31d309){_0x4f85c7[0x0]=_0x31d309;continue;}}_0x4f85c7['push'](_0xff9cb4);}_0x197012['push']([_0x1a0726['view'],_0x4f85c7]);}return _0x197012;}),this['listenTo'](_0x443856,'suggestionLoaded',(_0x38240e,_0x2c161c)=>{this['listenTo'](_0x2c161c,'change:previous',(_0x572f2e,_0xec1d25,_0x39ac77,_0x1aeb9f)=>{_0x2c161c['isInContent']&&(null==_0x39ac77?(this['_updateController'](_0x1aeb9f['head']),this['_handleSuggestionControllerDelayed'](_0x2c161c,!0x1)):(this['_updateController'](_0x39ac77['head']),null==_0x1aeb9f&&this['_handleSuggestionControllerDelayed'](_0x2c161c,!0x0)));}),null!==_0x2c161c['previous']?this['_updateController'](_0x2c161c['head']):this['_handleSuggestionControllerDelayed'](_0x2c161c,!0x1);}),this['listenTo'](_0x443856,'suggestionUnloaded',(_0x12cac7,_0x377c67,_0x434ed5)=>{this['stopListening'](_0x377c67,'change:previous'),this['_handleControllerBuffer']['delete'](_0x377c67),this['_suggestionToController']['has'](_0x377c67)&&this['_destroyController'](_0x377c67),_0x434ed5&&this['_updateController'](_0x434ed5['head']);}),this['listenTo'](_0x443856,'suggestionChanged',(_0x6de21a,_0x99e6a)=>{this['_updateController'](_0x99e6a);}),this['listenTo'](_0x3eba2f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29a06f,'addComment',(_0x2ae54a,{threadId:_0x3c1daa,isFromAdapter:_0x31ecc8})=>{if(_0x31ecc8||!_0x443856['hasSuggestion'](_0x3c1daa))return;const _0x15ab25=_0x443856['getSuggestion'](_0x3c1daa);this['_suggestionToController']['get'](_0x15ab25)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1c83f5=this['editor']['plugins']['get']('Annotations'),_0x3978f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39323e=Array['from'](_0x1c83f5['activeAnnotations'],_0x58f7c0=>_0x58f7c0['innerView'])['filter'](_0x3e8113=>this['_viewToController']['has'](_0x3e8113)),_0x385457=[];for(const _0x197a19 of _0x39323e){const _0x41bc26=this['_viewToController']['get'](_0x197a19)['model']['getAllAdjacentSuggestions']();_0x385457['push'](..._0x41bc26['reduce']((_0x34808d,_0x5460ed)=>[..._0x34808d,..._0x5460ed['getMarkerNames']()],[]));}_0x3978f5['activeMarkers']=_0x385457;}['_addUIComponentsToFactory'](){const _0x3d2896=this['editor'],_0x39e1f6=_0x3d2896['locale'],_0x5aedca=o(_0x39e1f6,'Track\x20changes'),_0x41e248=new Wt([{'type':'switchbutton','model':new _0x359d1c({'withText':!0x0,'isToggleable':!0x0,'label':_0x5aedca,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x359d1c({'withText':!0x0,'label':o(_0x39e1f6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x359d1c({'withText':!0x0,'label':o(_0x39e1f6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x359d1c({'withText':!0x0,'label':o(_0x39e1f6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x359d1c({'withText':!0x0,'label':o(_0x39e1f6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1c0b94 of _0x41e248)if(me(_0x1c0b94)){const _0x1a3439=_0x3d2896['commands']['get'](_0x1c0b94['model']['commandName']);_0x1c0b94['model']['bind']('isOn','isEnabled')['to'](_0x1a3439,'value','isEnabled');}_0x3d2896['ui']['componentFactory']['add']('trackChanges',_0x4a0617=>this['_createToolbarButton'](_0x4a0617,_0x41e248,_0x5aedca)),_0x3d2896['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1817b0=>this['_createMenuBarMenu'](_0x1817b0,_0x41e248,_0x5aedca));}['_createToolbarButton'](_0x359612,_0x397dfd,_0x5e1713){const _0x4d7b5b=Qt(_0x359612,_0x3c149c),_0x451696=this['editor']['commands']['get']('trackChanges');_0x4d7b5b['buttonView']['set']({'tooltip':_0x5e1713,'label':_0x5e1713,'icon':he}),_0x4d7b5b['buttonView']['bind']('isOn')['to'](_0x451696,'value'),_0x4d7b5b['buttonView']['on']('execute',()=>{_0x451696['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x4d7b5b,_0x397dfd,{'role':'menu'});const _0x216567=[];for(const _0x41c468 of _0x397dfd)me(_0x41c468)&&_0x216567['push'](this['editor']['commands']['get'](_0x41c468['model']['commandName']));const _0x22c945=_0x4d7b5b['buttonView'];return _0x22c945['actionView']['unbind']('isEnabled'),_0x22c945['arrowView']['unbind']('isEnabled'),_0x22c945['actionView']['bind']('isEnabled')['to'](_0x451696,'isEnabled'),_0x22c945['arrowView']['bind']('isEnabled')['toMany'](_0x216567,'isEnabled',(..._0x1f9ffe)=>_0x1f9ffe['some'](_0x37d758=>_0x37d758)),_0x4d7b5b['on']('execute',_0x461c83=>{this['editor']['execute'](_0x461c83['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4d7b5b;}['_createMenuBarMenu'](_0x473e58,_0x3c7979,_0x500fbb){const _0xe7acbf=new Yt(_0x473e58),_0x1bfe99=this['editor']['commands']['get']('trackChanges');_0xe7acbf['buttonView']['set']({'label':_0x500fbb,'icon':he});const _0x62da71=new Zt(_0x473e58);for(const _0x545f69 of _0x3c7979){if('separator'==_0x545f69['type']){_0x62da71['items']['add'](new Xt(_0x473e58));continue;}const _0x33bb15=new te(_0x473e58,_0xe7acbf),_0x46f2de=new _0xf68576(_0x473e58),_0x481831=_0x545f69['model'];_0x46f2de['bind'](...Object['keys'](_0x481831))['to'](_0x481831),_0x46f2de['delegate']('execute')['to'](_0xe7acbf),_0x46f2de['on']('execute',()=>{this['editor']['execute'](_0x481831['commandName']),this['editor']['editing']['view']['focus']();}),_0x33bb15['children']['add'](_0x46f2de),_0x62da71['items']['add'](_0x33bb15);}return _0xe7acbf['bind']('isEnabled')['to'](_0x1bfe99,'isEnabled'),_0xe7acbf['panelView']['children']['add'](_0x62da71),_0xe7acbf;}['_initializeController'](_0x50e172){const _0xebe4b6=this['editor'],_0x241086=_0xebe4b6['config'],_0x6efc4c=_0xebe4b6['plugins']['get']('Annotations'),_0x5be6f0=_0xebe4b6['plugins']['get']('CommentsRepository'),_0x55b128=_0xebe4b6['plugins']['get']('EditorAnnotations'),_0x1dedac=_0xebe4b6['plugins']['get'](_0x1ed7f3)['me'],_0x7efec5=_0x241086['get']('trackChanges')['SuggestionThreadView'],_0x3eb4e3=_0x241086['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2260f9,CommentThreadInputView:_0x93db8c}=_0xebe4b6['plugins']['get']('CommentsUI');let _0x3d0cb5,_0x23ee5b,_0x3f3f88;this['_annotationViews']['has'](_0x50e172['id'])?(_0x23ee5b=this['_annotationViews']['get'](_0x50e172['id']),_0x3d0cb5=_0x23ee5b['mainView']):(_0x3d0cb5=new _0x7efec5(_0xebe4b6['locale'],_0x50e172,_0x1dedac,{'disableComments':this['_disableComments'],'editorConfig':_0x241086['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x241086['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x241086['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x241086['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x35a2dc(_0x241086['get']('locale')),'CommentView':_0x241086['get']('comments')['CommentView'],'CommentsListView':_0x2260f9,'CommentThreadInputView':_0x93db8c,'SuggestionView':_0x3eb4e3}),_0x3d0cb5['suggestionView']['acceptButton']['on']('execute',()=>{_0xebe4b6['editing']['view']['focus']();}),_0x3d0cb5['suggestionView']['discardButton']['on']('execute',()=>{_0xebe4b6['editing']['view']['focus']();}),_0x23ee5b=_0x6efc4c['createAnnotationView'](this['editor']['locale'],_0x3d0cb5),_0x23ee5b['bind']('isDirty')['to'](_0x3d0cb5,'isDirty'),_0x23ee5b['bind']('length')['to'](_0x3d0cb5),_0x23ee5b['bind']('type')['to'](_0x3d0cb5,'type',_0x1bb5eb=>'suggestion-'+_0x1bb5eb),_0x3d0cb5['on']('escape',()=>{_0x3f3f88['fire']('escape');}),this['_annotationViews']['set'](_0x50e172['id'],_0x23ee5b));const _0x3737fe=_0x5be6f0['createCommentThreadController'](_0x50e172['commentThread'],_0x3d0cb5),_0x494b3a=new ae(_0xebe4b6,_0x50e172,_0x3d0cb5,_0x3737fe),_0x1aaee5=_0x50e172['getAllAdjacentSuggestions']()['filter'](_0x5861f8=>_0x5861f8['isInContent']);_0x3d0cb5['descriptionParts']=_0xebe4b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1aaee5),this['_suggestionToController']['set'](_0x50e172,_0x494b3a),this['_viewToController']['set'](_0x3d0cb5,_0x494b3a),_0x3f3f88=_0x6efc4c['createAnnotation']({'view':_0x23ee5b,'target':()=>{const _0x2acc91=[],_0x41d5bf=_0x50e172['getAllAdjacentSuggestions']()['filter'](_0x715607=>_0x715607['isInContent']);for(const _0x5114f1 of _0x41d5bf)_0x2acc91['push'](..._0x5114f1['getMarkers']());return _0x3625e0(_0xebe4b6['editing'],_0x2acc91);},'type':()=>'suggestion-'+_0x494b3a['view']['type']}),_0x5be6f0['_bindAnnotationToEditors'](_0x3d0cb5,_0x3f3f88),_0x6efc4c['add'](_0x3f3f88),_0x55b128['registerAnnotation'](_0x3f3f88);}['_destroyController'](_0x305a1f){const _0x1b9bae=this['editor']['plugins']['get']('CommentsRepository'),_0x971f80=this['editor']['plugins']['get']('Annotations'),_0x49c552=this['_suggestionToController']['get'](_0x305a1f),_0x46d484=_0x49c552['view'],_0x3e8220=_0x971f80['getByInnerView'](_0x46d484);_0x1b9bae['_unbindEditors'](_0x46d484),_0x3e8220&&_0x971f80['remove'](_0x3e8220),this['_suggestionToController']['delete'](_0x305a1f),this['_viewToController']['delete'](_0x46d484),_0x49c552['destroy']();}['_updateController'](_0x24b49e){if(!_0x24b49e['isInContent']||!this['_suggestionToController']['has'](_0x24b49e))return;const _0x11ec49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171ef7=this['_suggestionToController']['get'](_0x24b49e),_0x546d70=_0x24b49e['getAllAdjacentSuggestions']();_0x171ef7['view']['descriptionParts']=_0x11ec49['descriptionFactory']['getDescriptions'](_0x546d70);}['destroy'](){for(const _0x5c8f33 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c8f33);for(const _0xe62b56 of this['_annotationViews']['values']())_0xe62b56['mainView']['destroy']();super['destroy']();}}function me(_0x19668c){return'model'in _0x19668c;}class k extends _0x254461{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x58db89){this['editor']['plugins']['get'](p)['adapter']=_0x58db89;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x56eedc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x56eedc);}['getSuggestions']({skipNotAttached:_0x59e6c5=!0x1,toJSON:_0x1e6a1c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x59e6c5,'toJSON':_0x1e6a1c});}['getSuggestion'](_0x55257f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x55257f);}}const T=['Pagination'];class P extends _0x254461{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1fe8f6=this['editor'];if(_0x1fe8f6['config']['define']('trackChangesData.editorCreator',_0x23c521=>{const _0x598574=_0x1fe8f6['model']['document']['getRootNames']()['reduce']((_0x455f66,_0xc76f51)=>(_0x455f66[_0xc76f51]='',_0x455f66),{});return _0x1fe8f6['constructor']['create'](_0x598574,_0x23c521);}),'function'!=typeof _0x1fe8f6['config']['get']('trackChangesData')['editorCreator'])throw new _0x24debd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x58663a){return N(this['editor'],!0x0,_0x58663a);}['getDataWithDiscardedSuggestions'](_0x5e7a54){return N(this['editor'],!0x1,_0x5e7a54);}}class D extends _0x254461{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1e1180){super(_0x1e1180),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(_0x295d54){return void 0x0!==_0x295d54['getRootsAttributes'];}async function N(_0x23795d,_0x363170,_0x3241ba){const _0xe4233e=_0x109839(_0x23795d,T);_0xe4233e['plugins']['push'](p,D),_0xe4233e['rootsAttributes']=v(_0x23795d)?_0x23795d['getRootsAttributes']():void 0x0;const _0x299ac5=document['createDocumentFragment'](),_0x165857=_0x23795d['config']['get']('trackChangesData')['editorCreator'],_0x1099e9=await _0x165857(_0xe4233e,()=>function(_0x3c5dcf){const _0x21e4ed=document['createElement']('div');return _0x3c5dcf['appendChild'](_0x21e4ed),_0x21e4ed;}(_0x299ac5));!function(_0x29d0d5,_0x2dc5ab){const _0x347f59=_0x29d0d5['model']['document']['getRootNames']()['reduce']((_0x507da9,_0x55c3a1)=>(_0x507da9[_0x55c3a1]=_0x29d0d5['data']['get']({'rootName':_0x55c3a1}),_0x507da9),{}),_0x1f7d83=_0x29d0d5['plugins']['get']('Users')['users']['map'](_0x24ad02=>({'id':_0x24ad02['id'],'name':_0x24ad02['name']})),_0x2eca0c=_0x29d0d5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d2839=_0x29d0d5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33d6d5=_0x2dc5ab['plugins']['get']('Users'),_0x1c3943=_0x2dc5ab['plugins']['get']('TrackChangesEditing'),_0x596b66=_0x2dc5ab['plugins']['get']('CommentsRepository');for(const _0x41a4cc of _0x596b66['getCommentThreads']())_0x41a4cc['remove']();for(const _0x25e75e of _0x1f7d83)_0x33d6d5['getUser'](_0x25e75e['id'])||_0x33d6d5['addUser'](_0x25e75e);_0x33d6d5['me']||_0x33d6d5['useAnonymousUser']();for(const _0x415478 of _0x4d2839)_0x596b66['addCommentThread'](_0x415478);for(const _0x233e01 of _0x2eca0c)_0x1c3943['addSuggestionData'](_0x233e01);_0x2dc5ab['data']['set'](_0x347f59);}(_0x23795d,_0x1099e9),_0x1099e9['execute'](_0x363170?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c105b=v(_0x1099e9)?_0x1099e9['getFullData'](_0x3241ba):_0x1099e9['data']['get'](_0x3241ba);return await _0x1099e9['destroy'](),_0x4c105b;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x2be873,PendingActions as _0x1b3abf,icons as _0x24919e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x9ee824,ObservableMixin as _0xecfd75,uid as _0x30a933,insertToPriorityArray as _0x5905be,priorities as _0x55e6df,logWarning as _0x494922,getEnvKeystrokeText as _0x45ae70,FocusTracker as _0x2d9544,KeystrokeHandler as _0xfa6b48,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x408f0d,View as _0x35fcbe,ViewCollection as _0x3700b4,FocusCycler as _0x815bc6,ViewModel as _0xe79664,createDropdown as Qt,SplitButtonView as _0x5e8136,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x14497f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x10e3b2,hashObject as _0x4dc8f2,surroundingMarkersDetector as _0x499b97,FOCUS_ANNOTATION_KEYSTROKE as _0x2f3654,AriaDescriptionView as _0x4d57e8,setupThreadKeyboardNavigation as _0x136a89,trimHtml as _0x5b6ce9,UserView as _0x2251ad,LateFocusButtonView as _0x1b29a6,getDateTimeFormatter as _0x2e8695,getAllMarkersDomElementsSorted as _0x1d452d,sanitizeEditorConfig as _0x36c3fd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1a5965,LiveRange as _0x3f00a1,LivePosition as _0xe63aa9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x52e27,toWidget as _0x4e21a2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x430798,set as _0x28c5fa,isEqual as _0x4d1bff,unset as _0x45103c,omit as Tt}from'lodash-es';import{Delete as _0x3c22a1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x17bcc1,ShiftEnter as _0x4c1f0c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4ee55d,_0x3e9183){super(_0x4ee55d),this['_enabledCommands']=_0x3e9183,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 _0x47fc15 of this['editor']['commands']['commands']())_0x47fc15['affectsData']&&!this['_enabledCommands']['has'](_0x47fc15)&&_0x47fc15['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5e80b5 of this['editor']['commands']['commands']())_0x5e80b5['affectsData']&&!this['_enabledCommands']['has'](_0x5e80b5)&&_0x5e80b5['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x336c09,_0x1ea200){super(_0x336c09),this['_suggestions']=_0x1ea200,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b2a1d){const _0x164624=this['_suggestions']['get'](_0x5b2a1d);if(!_0x164624)throw new _0x9ee824('track-changes-accept-suggestion-not-found',this);const _0x46e3be=_0x164624['getRanges']();this['editor']['model']['canEditAt'](_0x46e3be)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x164624);}}class R extends ts{['_suggestions'];constructor(_0x58bc33,_0x792e9c){super(_0x58bc33),this['_suggestions']=_0x792e9c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x502153){const _0x3c6864=this['_suggestions']['get'](_0x502153);if(!_0x3c6864)throw new _0x9ee824('track-changes-discard-suggestion-not-found',this);const _0x2e270b=_0x3c6864['getRanges']();this['editor']['model']['canEditAt'](_0x2e270b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3c6864);}}function ls(_0x151e0e,_0x5cec0b){let _0x573aa0='';return _0x573aa0+=_0x151e0e['split']('*')['map']((_0x484312,_0x465165)=>_0x465165%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x484312)+'</span>':nn(_0x484312))['join'](''),_0x5cec0b&&(_0x573aa0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5cec0b['value']+'\x22\x20title=\x22'+_0x5cec0b['title']+'\x22></span>'),_0x573aa0;}function nn(_0x5d0796){const _0x196517=document['createElement']('span');return _0x196517['innerText']=_0x5d0796,_0x196517['innerHTML'];}function ss(_0x3892ac){return _0x3892ac['sort']((_0x4be33b,_0x1f4a74)=>'deletion'==_0x4be33b['type']&&'deletion'!=_0x1f4a74['type']?-0x1:'deletion'!=_0x4be33b['type']&&'deletion'==_0x1f4a74['type']?0x1:0x0);}function to(_0x2de89a,_0x4a7056){let _0x27f37f,_0x15384b=0x0;const _0x326f28=[],_0x5ced23=_0x4a7056['schema'];for(;_0x15384b<_0x2de89a['length'];){const _0x1f4e1d=_0x2de89a[_0x15384b],_0x30437f=_0x2de89a[_0x15384b+0x1];_0x27f37f||(_0x27f37f=_0x4a7056['createPositionBefore'](_0x1f4e1d)),on(_0x4a7056,_0x1f4e1d,_0x30437f)||(_0x326f28['push'](_0x4a7056['createRange'](_0x27f37f,_0x5ced23['isObject'](_0x1f4e1d)?_0x4a7056['createPositionAfter'](_0x1f4e1d):_0x4a7056['createPositionAt'](_0x1f4e1d,'end'))),_0x27f37f=null),_0x15384b++;}return _0x326f28;}function on(_0x4ada6d,_0x468310,_0x56f190){if(!_0x56f190)return!0x1;const _0x5057d7=_0x4ada6d['createPositionAfter'](_0x468310),_0xd100c=_0x4ada6d['createPositionBefore'](_0x56f190);return _0x5057d7['isTouching'](_0xd100c);}function rs(_0x1575f1,_0x7cc3ad,_0x5c5354){for(;_0x5c5354['length'];){const _0x32a291=_0x5c5354['splice'](0x0,0x64);_0x1575f1['change'](()=>{for(const _0x18f12c of _0x32a291)_0x18f12c['isInContent']&&_0x7cc3ad['execute'](_0x18f12c['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x38e04a,_0x72a1da,_0x37e44a){super(_0x38e04a),this['_command']=_0x72a1da,this['_suggestions']=_0x37e44a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x527ab7=Array['from'](this['_suggestions']['values']())['some'](_0x403628=>_0x403628['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x527ab7;}['execute'](){const _0x5af38d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5ae9e0 of _0x5af38d){const _0xa6bc86=_0x5ae9e0['getRanges']();if(!this['editor']['model']['canEditAt'](_0xa6bc86))return;}rs(this['editor']['model'],this['_command'],_0x5af38d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11cd19,_0x1b9494,_0x2d3dbd){super(_0x11cd19),this['_command']=_0x1b9494,this['_suggestions']=_0x2d3dbd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f1e54=this['editor']['model']['document']['selection'],_0x27ac03=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e11ae,_0x492b19){const _0x2311e9=Array['from'](_0x1e11ae['getRanges']()),_0x50489b=new Set();for(const _0x38c7b6 of _0x492b19)if(_0x38c7b6['isInContent']){for(const _0x42b1c2 of _0x2311e9)for(const _0x25fb7c of _0x38c7b6['getRanges']())(_0x42b1c2['isIntersecting'](_0x25fb7c)||_0x1e11ae['isCollapsed']&&!_0x38c7b6['isMultiRange']&&_0x38c7b6['next']&&_0x25fb7c['end']['isTouching'](_0x42b1c2['start']))&&_0x50489b['add'](_0x38c7b6);}return _0x50489b;}(_0x2f1e54,_0x27ac03),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x574ddf=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5a5864 of _0x574ddf){const _0x4e3aa0=_0x5a5864['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e3aa0))return;}rs(this['editor']['model'],this['_command'],_0x574ddf);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xecfd75(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x47563d,_0x5580d8){super(),this['id']=_0x5580d8['id'],this['type']=_0x5580d8['type'],this['subType']=_0x5580d8['subType']||null,this['author']=_0x5580d8['author'],this['creator']=_0x5580d8['creator']||_0x5580d8['author'],this['isExternal']=Boolean(_0x5580d8['attributes']&&_0x5580d8['attributes']['@external']),this['data']=null,this['_model']=_0x47563d,this['_onAccept']=_0x5580d8['onAccept'],this['_onDiscard']=_0x5580d8['onDiscard'],this['_onAttributesChange']=_0x5580d8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5580d8['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 _0x5c6867=this;for(;_0x5c6867['previous'];)_0x5c6867=_0x5c6867['previous'];return _0x5c6867;}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'](_0x8d6baf){this['_markerNames']['add'](_0x8d6baf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5376df=>this['_model']['markers']['get'](_0x5376df))['filter'](_0x26b40d=>_0x26b40d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34c6b3=>{for(const _0x1cdc81 of this['getMarkers']())_0x34c6b3['removeMarker'](_0x1cdc81);}),this['_markerNames']['clear']();}['removeMarker'](_0x2098b6){this['_model']['change'](_0x50b8c=>{_0x50b8c['removeMarker'](_0x2098b6);}),this['_markerNames']['delete'](_0x2098b6);}['addRange'](_0x1ebfed){const _0x3d6c53='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3d6c53),this['_model']['change'](_0x39241d=>{_0x39241d['addMarker'](_0x3d6c53,{'range':_0x1ebfed,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f38b9){for(const _0x3ecd94 of this['getRanges']())if(_0x3ecd94['isIntersecting'](_0x1f38b9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x442019=>_0x442019['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d6a23,_0x495864)=>[..._0x3d6a23,..._0x495864['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x46649c=this['getRanges']();if(0x1!=_0x46649c['length'])return null;const _0x17cf99=_0x46649c[0x0],_0x53b69c=_0x17cf99['start']['nodeAfter'],_0x238b46=_0x17cf99['end']['nodeBefore'];return _0x53b69c instanceof _0x1a5965?_0x53b69c!=_0x238b46?null:_0x53b69c: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 _0x3c9ac9=[];let _0x34fd8c=this['head'];for(;_0x34fd8c;)_0x3c9ac9['push'](_0x34fd8c),_0x34fd8c=_0x34fd8c['next'];return _0x3c9ac9;}['setAttribute'](_0x1f626b,_0x2b3ca1){const _0x49a32a=_0x430798(this['attributes']);_0x28c5fa(_0x49a32a,_0x1f626b,_0x2b3ca1),_0x4d1bff(_0x49a32a,this['attributes'])||(this['attributes']=_0x49a32a,this['_onAttributesChange'](_0x49a32a));}['removeAttribute'](_0x3768ae){const _0x20de32=_0x430798(this['attributes']);_0x45103c(_0x20de32,_0x3768ae),_0x4d1bff(_0x20de32,this['attributes'])||(this['attributes']=_0x20de32,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 _0x30a933()['substr'](0x1,0x5);}}function o(_0x11c027,_0x2febb0,_0x14bc73){const t=_0x11c027['t'];switch(_0x2febb0){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',_0x14bc73);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x14bc73);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x14bc73);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x14bc73);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x14bc73);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',_0x14bc73);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x14bc73);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',_0x14bc73);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x14bc73);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x14bc73);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x14bc73);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x14bc73);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x14bc73);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x14bc73);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x14bc73);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x14bc73);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x14bc73);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x14bc73);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x14bc73);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x14bc73);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x14bc73);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x14bc73);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x14bc73);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'},_0x14bc73);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x14bc73);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x14bc73);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x14bc73);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x14bc73);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x14bc73);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x14bc73);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x14bc73);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x14bc73);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x14bc73);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x14bc73);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x14bc73);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x14bc73);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x14bc73);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2febb0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11ede8,_0x2aae2a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11ede8,this['_locale']=_0x2aae2a;}['getDescriptions'](_0x13cddf){const _0x22d634=[],_0x5964b7=new Set(),_0x4c96ab=new Set();for(let _0x59594c=0x0;_0x59594c<_0x13cddf['length'];_0x59594c++){const _0x2327c4=_0x13cddf[_0x59594c];if(!_0x2327c4['isInContent'])continue;const _0xb2699=this['_handleCustomCallbackDescription'](_0x2327c4);if(_0xb2699){if(null!=_0x2327c4['subType']){if(_0x5964b7['has'](_0x2327c4['subType']))continue;_0x5964b7['add'](_0x2327c4['subType']);}_0x22d634['push'](_0xb2699);}else{if('attribute'!=_0x2327c4['type'])'insertion'!=_0x2327c4['type']&&'deletion'!=_0x2327c4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22d634,_0x2327c4,_0x13cddf[_0x59594c+0x1]);else{const _0x436240=_0x2327c4['data']['key'];if(_0x4c96ab['has'](_0x436240))continue;_0x4c96ab['add'](_0x2327c4['data']['key']),_0x436240==m?this['_handleRenameSuggestionDescription'](_0x22d634,_0x2327c4):this['_handleAttributeSuggestionDescription'](_0x22d634,_0x2327c4);}}}return this['_resolveDescriptionItems'](_0x22d634);}['registerDescriptionCallback'](_0x2afeb8){this['_customCallbacks']['push'](_0x2afeb8);}['registerElementLabel'](_0x2e7d4b,_0x14d8ee,_0x5bfca6=_0x55e6df['normal']){'function'==typeof _0x2e7d4b?_0x5905be(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e7d4b,'label':_0x14d8ee,'priority':_0x5bfca6}):this['_itemLabels']['set'](_0x2e7d4b,_0x14d8ee);}['registerAttributeLabel'](_0x3014aa,_0x57839c){this['_attributeLabels']['set'](_0x3014aa,_0x57839c);}['getItemLabel'](_0x4d5904,_0x2988c4=0x1){let _0x302f54;for(const _0x4f7f7d of this['_itemLabelsCallbacks'])if(_0x4f7f7d['matchingCallback'](_0x4d5904)){_0x302f54=_0x4f7f7d['label'];break;}return _0x302f54||(_0x302f54=this['_itemLabels']['get'](_0x4d5904['name'])),_0x302f54?_0x302f54(_0x2988c4):0x1!==_0x2988c4?_0x2988c4+'\x20'+_0x4d5904['name']+'s':''+_0x4d5904['name'];}['_addDescriptionItems'](_0x6df408,_0x11c6e9){const _0x33ce4a=_0x11c6e9['getFirstRange']()['getWalker'](),_0x490cd8='insertion'==_0x11c6e9['type']?'add':'remove';for(const _0x399312 of _0x33ce4a){const _0x3aba2a=_0x399312['item'],_0x217961=_0x6df408[_0x6df408['length']-0x1];if(_0x3aba2a['is']('$textProxy'))_0x217961&&_0x217961['type']['indexOf']('Container')>-0x1&&_0x6df408['pop'](),_0x217961&&'text'==_0x217961['type']?_0x217961[_0x490cd8]+=_0x3aba2a['data']:_0x6df408['push']({'type':'text','add':'add'==_0x490cd8?_0x3aba2a['data']:'','remove':'remove'==_0x490cd8?_0x3aba2a['data']:''});else{if(this['_schema']['isObject'](_0x3aba2a)){const _0x27f1f8=_0x3aba2a;if(_0x217961&&_0x217961['type']['indexOf']('Container')>-0x1&&_0x6df408['pop'](),'elementEnd'==_0x399312['type'])continue;_0x217961&&_0x217961['type']==_0x490cd8+'Object'&&_0x217961['element']['name']==_0x27f1f8['name']?_0x217961['quantity']++:_0x6df408['push']({'type':_0x490cd8+'Object','element':_0x27f1f8,'quantity':0x1}),_0x33ce4a['skip'](_0x191ba9=>!('elementEnd'==_0x191ba9['type']&&_0x191ba9['item']==_0x3aba2a));}else{if(this['_schema']['checkChild'](_0x3aba2a,'$text')||_0x3aba2a['is']('element','softBreak')){const _0x57871b=_0x3aba2a;if('add'==_0x490cd8&&'elementStart'==_0x399312['type']||'remove'==_0x490cd8&&'elementEnd'==_0x399312['type'])continue;if(_0x217961&&-0x1==_0x217961['type']['indexOf']('Container')){'text'==_0x217961['type']&&(_0x217961[_0x490cd8]+='\x0a');continue;}let _0x419a6c;if(_0x419a6c='add'==_0x490cd8?_0x57871b['nextSibling']&&!this['_schema']['isObject'](_0x57871b['nextSibling'])?_0x57871b['nextSibling']:null:_0x57871b['previousSibling']&&!this['_schema']['isObject'](_0x57871b['previousSibling'])?_0x57871b['previousSibling']:null,_0x57871b['isEmpty']||_0x419a6c&&_0x419a6c['isEmpty']){const _0x312ac0=_0x419a6c&&_0x419a6c['isEmpty']?_0x419a6c:_0x57871b;_0x217961&&_0x217961['type']==_0x490cd8+'EmptyContainer'&&_0x217961['element']['name']==_0x312ac0['name']?_0x217961['quantity']++:_0x6df408['push']({'type':_0x490cd8+'EmptyContainer','element':_0x312ac0,'quantity':0x1});}else _0x6df408['push']({'type':_0x490cd8+'Container','element':_0x57871b});}}}}}['_resolveDescriptionItems'](_0x1ac68e){const _0x267313=this['_locale'],_0x4849af=[],_0x44463e=[],_0x1af690=[];for(const _0x43d633 of _0x1ac68e)switch(_0x43d633['type']){case'text':if(_0x43d633['add']=_0x43d633['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x43d633['remove']=_0x43d633['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x43d633['add']&&''!=_0x43d633['remove']){_0x4849af['push']({'type':'replace','content':o(_0x267313,'REPLACE_TEXT',['\x22'+_0x43d633['remove']+'\x22','\x22'+_0x43d633['add']+'\x22'])});continue;}if(null!=_0x43d633['add']['match'](/^ +$/)){_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0',o(_0x267313,'ELEMENT_SPACE',_0x43d633['add']['length']))});continue;}if(null!=_0x43d633['remove']['match'](/^ +$/)){_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0',o(_0x267313,'ELEMENT_SPACE',_0x43d633['remove']['length']))});continue;}if(''!=_0x43d633['add']){_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0','\x22'+_0x43d633['add']+'\x22')});continue;}_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0','\x22'+_0x43d633['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'addContainer':_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Split:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'removeContainer':_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Merge:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'addFormat':_0x44463e['push'](_0x43d633['key']);continue;case'removeFormat':_0x1af690['push'](_0x43d633['key']);continue;default:_0x4849af['push'](_0x43d633);}if(_0x44463e['length']){const _0x480d95=_0x44463e['map'](_0x42c32b=>this['_attributeLabels']['has'](_0x42c32b)?this['_attributeLabels']['get'](_0x42c32b):_0x42c32b)['join'](',\x20');_0x4849af['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x480d95)});}if(_0x1af690['length']){const _0x54739f=_0x1af690['map'](_0x1855a1=>this['_attributeLabels']['has'](_0x1855a1)?this['_attributeLabels']['get'](_0x1855a1):_0x1855a1)['join'](',\x20');_0x4849af['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x54739f)});}return _0x4849af;}['_handleCustomCallbackDescription'](_0x246e0b){for(const _0x3b2ce5 of this['_customCallbacks']){const _0xe4da64=_0x3b2ce5(_0x246e0b);if(_0xe4da64&&'type'in _0xe4da64)return _0xe4da64;}}['_handleAttributeSuggestionDescription'](_0x47c8f8,_0x42247b){const _0x589aa2=_0x42247b['data'],_0xdb775b=void 0x0===_0x589aa2['newValue']?'removeFormat':'addFormat';_0x47c8f8['push']({'type':_0xdb775b,'key':_0x589aa2['key']});}['_handleRenameSuggestionDescription'](_0x2c9a56,_0x45e34e){_0x2c9a56['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x45e34e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5318cc,_0xd65d2f,_0x3510e5){if(this['_addDescriptionItems'](_0x5318cc,_0xd65d2f),_0x3510e5&&_0x3510e5['getFirstRange']()&&!_0xd65d2f['getFirstRange']()['end']['isEqual'](_0x3510e5['getFirstRange']()['start'])){const _0x22c3a1=_0x5318cc[_0x5318cc['length']-0x1],_0x17f351='insertion'==_0xd65d2f['type']?'add':'remove';_0x22c3a1&&'text'==_0x22c3a1['type']&&(_0x22c3a1[_0x17f351]+='\x0a');}}}class V extends _0x2be873{['afterInit'](){const _0x4918f2=this['editor'],_0x278c28=_0x4918f2['plugins']['get']('TrackChangesEditing');_0x4918f2['commands']['get']('showAIAssistant')&&_0x278c28['enableCommand']('showAIAssistant');}}class U extends _0x2be873{['afterInit'](){const _0x11a94e=this['editor'],_0x51e282=_0x11a94e['locale'];if(!_0x11a94e['plugins']['has']('AlignmentEditing'))return;const _0x3b4a16=_0x11a94e['plugins']['get']('TrackChangesEditing');_0x3b4a16['enableDefaultAttributesIntegration']('alignment'),_0x3b4a16['registerBlockAttribute']('alignment'),_0x3b4a16['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x51e282,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2afa5a=this['editor'],_0x5210d9=_0x2afa5a['locale'];_0x2afa5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe0ba=>{if('formatBlock'!=_0x3fe0ba['type'])return;const {data:_0x5d89a8}=_0x3fe0ba;if(_0x5d89a8&&'alignment'==_0x5d89a8['commandName']){const _0x3c464a=_0x5d89a8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5210d9,'*Format:*\x20%0',function(_0x4d7661){switch(_0x4d7661){case'left':return o(_0x5210d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5210d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5210d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5210d9,'FORMAT_JUSTIFY_TEXT');}}(_0x3c464a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2be873{['afterInit'](){const _0x1eebda=this['editor'],_0x4aa636=_0x1eebda['plugins']['get']('TrackChangesEditing'),_0x51ce8a=_0x1eebda['locale'];for(const _0xf8a62c of ti){if(!_0x1eebda['plugins']['has'](_0xf8a62c))continue;const _0x55fd20=_0xf8a62c['slice'](0x0,-0x7)['toLowerCase'](),_0x350055='FORMAT_'+_0x55fd20['toUpperCase']();_0x4aa636['enableDefaultAttributesIntegration'](_0x55fd20),_0x4aa636['registerInlineAttribute'](_0x55fd20),_0x4aa636['descriptionFactory']['registerAttributeLabel'](_0x55fd20,o(_0x51ce8a,_0x350055));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47a570=this['editor'],_0x408eb2=_0x47a570['locale'],_0x5a3499=_0x47a570['plugins']['get']('TrackChangesEditing');function _0x102a88(_0x2b5129,_0x1398e3){_0x5a3499['descriptionFactory']['registerDescriptionCallback'](_0xb73648=>{if('formatInline'!=_0xb73648['type'])return;const {data:_0x41d520}=_0xb73648;return _0x41d520&&_0x41d520['commandName']===_0x2b5129?_0x41d520['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x408eb2,'*Format:*\x20%0',_0x1398e3)}:{'type':'format','content':o(_0x408eb2,'*Remove\x20format:*\x20%0',_0x1398e3)}:void 0x0;});}_0x102a88('bold',o(_0x408eb2,'FORMAT_BOLD')),_0x102a88('italic',o(_0x408eb2,'FORMAT_ITALIC')),_0x102a88('underline',o(_0x408eb2,'FORMAT_UNDERLINE')),_0x102a88('code',o(_0x408eb2,'FORMAT_CODE')),_0x102a88('strikethrough',o(_0x408eb2,'FORMAT_STRIKETHROUGH')),_0x102a88('subscript',o(_0x408eb2,'FORMAT_SUBSCRIPT')),_0x102a88('superscript',o(_0x408eb2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2be873{['afterInit'](){const _0x2abd95=this['editor'],_0x534ca0=_0x2abd95['locale'];if(!_0x2abd95['plugins']['has']('BlockQuoteEditing'))return;const _0x2f93bc=_0x2abd95['plugins']['get']('TrackChangesEditing'),_0x214b5f=this['editor']['commands']['get']('blockQuote');_0x2f93bc['enableCommand']('blockQuote',(_0x3495c7,_0x165dd4={})=>{const _0x57bf5b=this['editor']['model']['document']['selection'],_0x12e914=_0x165dd4&&void 0x0!==_0x165dd4['forceValue']?_0x165dd4['forceValue']:!_0x214b5f['value'];let _0x1ced7d=[];if(_0x12e914){const _0x2248f4=Array['from'](_0x57bf5b['getSelectedBlocks']())['filter'](_0x49e8fa=>oo(_0x49e8fa)||function(_0x11bdf4,_0x309978){const _0x115451=_0x309978['checkChild'](_0x11bdf4['parent'],'blockQuote'),_0x35410c=_0x309978['checkChild'](['$root','blockQuote'],_0x11bdf4);return _0x115451&&_0x35410c;}(_0x49e8fa,this['editor']['model']['schema']));_0x1ced7d=to(_0x2248f4,_0x2abd95['model']);}else{const _0x58dd0c=Array['from'](_0x57bf5b['getSelectedBlocks']())['filter'](_0x1850d6=>oo(_0x1850d6));_0x1ced7d=to(_0x58dd0c,_0x2abd95['model']);}_0x2abd95['model']['change'](()=>{for(const _0x236d58 of _0x1ced7d)_0x2f93bc['markBlockFormat'](_0x236d58,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x12e914}]});});}),_0x2f93bc['descriptionFactory']['registerDescriptionCallback'](_0xd71f47=>{const {data:_0xc2c74d}=_0xd71f47;if(_0xc2c74d&&'blockQuote'==_0xc2c74d['commandName']){const _0x3b40e2=o(_0x534ca0,'ELEMENT_BLOCK_QUOTE');return _0xc2c74d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x534ca0,'*Set\x20format:*\x20%0',_0x3b40e2)}:{'type':'format','content':o(_0x534ca0,'*Remove\x20format:*\x20%0',_0x3b40e2)};}});}}function oo(_0x35a096){return'blockQuote'==_0x35a096['parent']['name'];}class L extends _0x2be873{['afterInit'](){const _0x50dd23=this['editor'];_0x50dd23['plugins']['has']('CaseChange')&&(_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2be873{['afterInit'](){const _0x52cb1d=this['editor'];_0x52cb1d['commands']['get']('ckbox')&&_0x52cb1d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2be873{['afterInit'](){const _0x47d6ae=this['editor'];if(!_0x47d6ae['plugins']['has']('CodeBlock'))return;const _0x43766b=_0x47d6ae['plugins']['get']('TrackChangesEditing'),_0x42bfff=_0x47d6ae['locale'],_0x489852=_0x47d6ae['config']['get']('codeBlock')['languages'],_0x4ad779=_0x47d6ae['commands']['get']('codeBlock');_0x43766b['enableCommand']('indentCodeBlock'),_0x43766b['enableCommand']('outdentCodeBlock'),_0x43766b['enableCommand']('codeBlock',(_0x4d7935,_0x1df5a7={})=>{const _0x3f0414=_0x47d6ae['model'],_0x254254=_0x47d6ae['model']['document']['selection'],_0x1ff997=_0x1df5a7&&void 0x0!==_0x1df5a7['forceValue']?_0x1df5a7['forceValue']:!_0x4ad779['value'];let _0x5534d5;_0x1df5a7['language']||(_0x1df5a7['language']=_0x489852[0x0]['language']),_0x5534d5=_0x1ff997?Array['from'](_0x254254['getSelectedBlocks']())['filter'](_0x329ac3=>eo(_0x329ac3)||function(_0x4b9adb,_0x3051c2){if(_0x4b9adb['is']('rootElement')||_0x3051c2['isLimit'](_0x4b9adb))return!0x1;return _0x3051c2['checkChild'](_0x4b9adb['parent'],'codeBlock');}(_0x329ac3,_0x3f0414['schema'])):Array['from'](_0x254254['getSelectedBlocks']())['filter'](_0x273065=>eo(_0x273065));const _0x136351=to(_0x5534d5,_0x3f0414);_0x3f0414['change'](()=>{for(const _0x3ad025 of _0x136351)_0x43766b['markBlockFormat'](_0x3ad025,{'commandName':'codeBlock','commandParams':[{..._0x1df5a7,'forceValue':_0x1ff997}],'formatGroupId':'blockName'});});}),(_0x43766b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3fa3df=>o(_0x42bfff,'ELEMENT_CODE_BLOCK',_0x3fa3df)),_0x43766b['descriptionFactory']['registerDescriptionCallback'](_0x251b96=>{if('formatBlock'!=_0x251b96['type'])return;const _0x4737ca=_0x42bfff['t'],{data:_0x11d420}=_0x251b96;if(!_0x11d420||'codeBlock'!=_0x11d420['commandName'])return;const _0x3a0eb0=_0x11d420['commandParams'][0x0]['language'],_0x3b139d=_0x4737ca(_0x489852['find'](_0x14b7b9=>_0x14b7b9['language']===_0x3a0eb0)['label'])['toLowerCase']();return _0x11d420['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42bfff,'*Set\x20format:*\x20%0',o(_0x42bfff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b139d+')')}:{'type':'format','content':o(_0x42bfff,'*Remove\x20format:*\x20%0',o(_0x42bfff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x163560){return'codeBlock'==_0x163560['name'];}class q extends _0x2be873{['afterInit'](){const _0x2ff608=this['editor'];if(!_0x2ff608['plugins']['has']('CommentsEditing'))return;_0x2ff608['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x49cdc4,_0x156f26,_0x5932ce){const _0x2b84c8=[];for(const _0x5c3f99 of _0x156f26['getItems']())_0x5c3f99['hasAttribute'](_0x49cdc4)&&_0x2b84c8['push'](_0x5932ce['createRangeOn'](_0x5c3f99));return _0x2b84c8;}function _e(_0x3ae054,_0x5f2b39,{showActiveMarker:_0x41f723=!0x0}={}){const _0x4e46bb=_0x3ae054['plugins']['get']('TrackChangesEditing');return(_0x3175a2,_0x41c3ba,_0x147f10)=>{if(!_0x147f10['consumable']['test'](_0x41c3ba['markerRange'],_0x3175a2['name']))return;const _0x57b33c=_0x41c3ba['markerRange']['getWalker'](),_0x58bae7=_0x41c3ba['markerRange']['start'],_0x17483a=_0x3ae054['model']['schema'];let _0x4fb368=null,_0x47675c=null,_0x36c757=!0x1,_0x2dded3=!0x1;for(const _0x208300 of _0x57b33c){const _0x28cd2c=_0x208300['item'];_0x36c757=_0x36c757||_0x17483a['isContent'](_0x28cd2c);const _0x441f6f=_0x147f10['mapper']['toViewElement'](_0x28cd2c);if(_0x441f6f&&_0x441f6f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x208300['type']&&(_0x17483a['isBlock'](_0x28cd2c)&&!_0x17483a['isLimit'](_0x28cd2c)&&(_0x28cd2c['nextSibling']||_0x58bae7['isAtEnd']?_0x4fb368&&_0x4fb368['parent']==_0x28cd2c||(_0x4fb368=_0x28cd2c,_0x15cb14(_0x208300['previousPosition']),_0x2dded3=!0x0):_0x47675c=_0x47675c||_0x208300['previousPosition']));}function _0x15cb14(_0x44cb02){const {authorId:_0x25cfb6}=_0x4e46bb['_splitMarkerName'](_0x41c3ba['markerName']),_0x17931d=_0x147f10['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f2b39,'data-author-id':_0x25cfb6}),_0x204602=_0x147f10['mapper']['toViewPosition'](_0x44cb02);_0x41f723&&_0x4e46bb['activeMarkers']['includes'](_0x41c3ba['markerName'])&&_0x147f10['writer']['addClass']('ck-suggestion-marker--active',_0x17931d),_0x147f10['writer']['insert'](_0x204602,_0x17931d),_0x147f10['mapper']['bindElementToMarker'](_0x17931d,_0x41c3ba['markerName']);}_0x36c757||_0x2dded3||!_0x47675c||_0x15cb14(_0x47675c);};}class z extends _0x2be873{static get['requires'](){return[_0x3c22a1];}['init'](){const _0x2ec3a9=this['editor'],_0x4738d0=_0x2ec3a9['plugins']['get']('TrackChangesEditing');_0x4738d0['enableCommand']('delete');const _0x5d961a=_0x2ec3a9['commands']['get']('deleteForward');_0x4738d0['enableCommand']('deleteForward',(_0x3b18d7,_0x5e025d={})=>{const _0x4cb356=_0x2ec3a9['model']['createSelection'](_0x2ec3a9['model']['document']['selection']);_0x4cb356['isCollapsed']&&_0x2ec3a9['model']['modifySelection'](_0x4cb356,{'direction':'forward','unit':_0x5e025d['unit']});const _0x23f572=_0x4cb356['getFirstRange'](),_0x4012e0=_0x3f00a1['fromRange'](_0x23f572);let _0xd9748d;_0x3b18d7(_0x5e025d),_0xd9748d='$graveyard'==_0x4012e0['root']['rootName']?_0x2ec3a9['model']['createRange'](_0x23f572['start']):_0x2ec3a9['model']['createRange'](_0x4012e0['start'],_0x4012e0['end']),_0x4012e0['detach'](),_0x2ec3a9['model']['enqueueChange'](_0x5d961a['buffer']['batch'],_0x305fb1=>{_0x5d961a['buffer']['lock'](),_0x305fb1['setSelection'](_0x305fb1['createRange'](_0xd9748d['end'])),_0x5d961a['buffer']['unlock']();});}),_0x2ec3a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2ec3a9,'merge'),{'priority':'high'}),_0x2ec3a9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3360db,_0x496e13,_0x29200b)=>{_0x29200b['options']['showSuggestionHighlights']&&_e(_0x2ec3a9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3360db,_0x496e13,_0x29200b);},{'priority':'high'}),_0x2ec3a9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5f3183,_0x2b2aaf,_0x294a6b)=>{const _0x42ff21=_0x294a6b['mapper']['markerNameToElements'](_0x2b2aaf['markerName']);if(_0x42ff21){for(const _0x3243a8 of _0x42ff21)_0x3243a8['is']('uiElement')&&(_0x294a6b['mapper']['unbindElementFromMarkerName'](_0x3243a8,_0x2b2aaf['markerName']),_0x294a6b['writer']['remove'](_0x3243a8));}},{'priority':'high'});}}class K extends _0x2be873{['afterInit'](){const _0x427a72=this['editor'];if(!_0x427a72['plugins']['has']('ListEditing'))return;const _0x4a9244=_0x427a72['locale'],_0x550e00=_0x427a72['plugins']['get']('TrackChangesEditing'),_0x1c696f=_0x427a72['plugins']['has']('TodoListEditing'),_0x161a46=!!_0x427a72['config']['get']('list.multiBlock');function _0x1b350f(_0x495568){return{'type':'format','content':''+o(_0x4a9244,'*Set\x20format:*\x20%0',_0x495568)};}function _0x1f3220(_0x2e2759){return{'type':'format','content':''+o(_0x4a9244,'*Remove\x20format:*\x20%0',_0x2e2759)};}_0x550e00['enableDefaultAttributesIntegration']('numberedList'),_0x550e00['enableDefaultAttributesIntegration']('bulletedList'),_0x550e00['enableDefaultAttributesIntegration']('customNumberedList'),_0x550e00['enableDefaultAttributesIntegration']('customBulletedList'),_0x550e00['enableDefaultAttributesIntegration']('indentList'),_0x550e00['enableDefaultAttributesIntegration']('outdentList'),_0x550e00['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x550e00['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x550e00['registerBlockAttribute']('listItemId'),_0x550e00['registerBlockAttribute']('listType'),_0x550e00['registerBlockAttribute']('listIndent'),_0x161a46&&(_0x550e00['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x550e00['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1c696f&&(_0x550e00['enableDefaultAttributesIntegration']('todoList'),_0x550e00['enableDefaultAttributesIntegration']('checkTodoList'),_0x550e00['registerBlockAttribute']('todoListChecked'),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x2e408b=>{const {data:_0x24812e}=_0x2e408b;if(_0x24812e&&'todoListChecked'==_0x24812e['key'])return{'type':'format','content':_0x24812e['newValue']?o(_0x4a9244,'*Check\x20item*'):o(_0x4a9244,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1b3d96=>{if(_0x1b3d96['batch']['isUndo'])return!0x1;let _0x55e873=!0x1;const _0x1be916=_0x550e00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d8110=>'todoListChecked'===_0x550e00['_getAttributeKey'](_0x4d8110));for(const _0x468fa3 of _0x1be916){'todo'!=_0x468fa3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x550e00['_findSuggestions'](_0x468fa3['getFirstRange'](),'attribute')['find'](_0x55ad74=>'listType'===_0x550e00['_getAttributeKey'](_0x55ad74['suggestion']))||(_0x1b3d96['removeMarker'](_0x468fa3['getFirstMarker']()),_0x55e873=!0x0));}return _0x55e873;})),_0x550e00['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a9244,'FORMAT_INDENT'));const _0x37ed48={'type':'format','content':''};_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x501a3b=>{const {data:_0x1227a1}=_0x501a3b;if(!_0x1227a1||'listType'!=_0x1227a1['key'])return;let _0x52dba5=_0x501a3b['head'];for(;_0x52dba5;){if(_0x52dba5['data']&&(('listStyle'==_0x52dba5['data']['key']||'listMarkerStyle'==_0x52dba5['data']['key'])&&(_0x52dba5['data']['newValue']&&'default'!=_0x52dba5['data']['newValue']||'default'!=_0x52dba5['data']['oldValue']&&!_0x1227a1['newValue'])||!_0x161a46&&_0x52dba5['data']['key']==m))return _0x37ed48;_0x52dba5=_0x52dba5['next'];}if(null==_0x1227a1['newValue'])switch(_0x1227a1['oldValue']){case'bulleted':return _0x1f3220(o(_0x4a9244,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f3220(o(_0x4a9244,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f3220(o(_0x4a9244,'ELEMENT_TODO_LIST'));}switch(_0x1227a1['newValue']){case'bulleted':return _0x1b350f(o(_0x4a9244,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b350f(o(_0x4a9244,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b350f(o(_0x4a9244,'ELEMENT_TODO_LIST'));}}),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x575a84=>{const {data:_0xeae561}=_0x575a84;if(_0xeae561&&'listIndent'==_0xeae561['key'])return null==_0xeae561['newValue']||null==_0xeae561['oldValue']&&0x0==_0xeae561['newValue']?_0x37ed48:void 0x0;}),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x59abea=>{if('attribute'!=_0x59abea['type'])return;const {data:_0x2de92c}=_0x59abea;if(!_0x2de92c||'listItemId'!=_0x2de92c['key'])return;const _0x5dbf7b=Ee(_0x59abea);return'newValue'==_0x5dbf7b?{'type':'format','content':o(_0x4a9244,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dbf7b?{'type':'format','content':o(_0x4a9244,'*Split:*\x20list\x20item')}:_0x37ed48;}),_0x427a72['model']['document']['registerPostFixer'](_0x144894=>this['listItemIdFixer'](_0x144894)),_0x427a72['model']['document']['registerPostFixer'](_0xece51f=>this['noTrackChangesFixer'](_0xece51f)),_0x427a72['model']['document']['on']('change:data',(_0x832fe4,_0x1bbf5e)=>{if(_0x1bbf5e['isUndo']||!_0x1bbf5e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1950dc){if(_0x1950dc['batch']['isUndo']||!_0x1950dc['batch']['isLocal'])return!0x1;let _0x32dc93=!0x1;const _0x488caa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e2a18=>_0x4e2a18['data']&&'listItemId'==_0x4e2a18['data']['key'])['filter'](_0x1b24ea=>_0x1b24ea['data']['newValue']&&_0x1b24ea['data']['oldValue']);for(const _0x752f07 of _0x488caa)Ee(_0x752f07)||(_0x1950dc['removeMarker'](_0x752f07['getFirstMarker']()),_0x32dc93=!0x0);return _0x32dc93;}['noTrackChangesFixer'](_0x35ee2f){if(_0x35ee2f['batch']['isUndo']||!_0x35ee2f['batch']['isLocal'])return!0x1;const _0x4f521f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f521f['trackChangesCommand']['value'])return!0x1;let _0x4cf007=!0x1;const _0x3ecc69=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x24ca6e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53ad56=>'attribute'==_0x53ad56['type'])['filter'](_0x3f9e03=>_0x3ecc69['includes'](_0x3f9e03['attributeKey']));if(0x0==_0x24ca6e['length'])return _0x4cf007;for(const _0x448f88 of _0x24ca6e){const _0x548627=_0x4f521f['_findSuggestions'](_0x448f88['range'],'attribute')['filter'](_0xfc7870=>!_0xfc7870['meta']['isNextTo'])['map'](_0x2acbc4=>_0x2acbc4['suggestion'])['filter'](_0x19dd96=>{const _0x3f92f0=_0x4f521f['_getAttributeKey'](_0x19dd96);return _0x3ecc69['includes'](_0x3f92f0);});if(_0x548627['length']){for(const _0x2a749c of _0x548627)_0x35ee2f['removeMarker'](_0x2a749c['getFirstMarker']());_0x4cf007=!0x0;}}return _0x4cf007;}['assureChains'](){const _0x1aaf36=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3263cb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x294be1;const _0x2aa2b8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ec99f=>{if(_0x1ec99f['data']['oldRange']||!_0x1ec99f['data']['newRange'])return null;if(!_0x1ec99f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ca126}=_0x1aaf36['_splitMarkerName'](_0x1ec99f['name']);if(!_0x1aaf36['hasSuggestion'](_0x1ca126))return null;const _0x17829f=_0x1aaf36['getSuggestion'](_0x1ca126);return _0x3263cb['includes'](_0x17829f['data']['key']);})['map'](_0x4f4e93=>{const {id:_0x43da2a}=_0x1aaf36['_splitMarkerName'](_0x4f4e93['name']),_0x12f2e1=_0x1aaf36['getSuggestion'](_0x43da2a);return _0x294be1=_0x12f2e1['attributes']['groupId'],_0x12f2e1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2aa2b8['size'])return;const _0x4f0ed9=_0x1aaf36['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ca285=>'attribute'==_0x1ca285['type']&&_0x1ca285['data']&&_0x3263cb['includes'](_0x1ca285['data']['key'])&&_0x1ca285['attributes']['groupId']!=_0x294be1)['map'](_0x195b8c=>({'listItem':_0x195b8c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x195b8c['attributes']['groupId']})),_0x420dd3=new Set();for(const {groupId:_0x6ab042,listItem:_0x4908b1}of _0x4f0ed9)_0x2aa2b8['has'](_0x4908b1)&&_0x420dd3['add'](_0x6ab042);for(const _0x235d23 of _0x1aaf36['getSuggestions']())_0x420dd3['has'](_0x235d23['attributes']['groupId'])&&_0x235d23['setAttribute']('groupId',_0x294be1);}['_supportLegacySuggestions'](){const _0x1225e4=this['editor'],_0x1e3d08=_0x1225e4['locale'],_0x52914e=_0x1225e4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52914e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x36f9fc,_0x4d39f5){const _0x6543e9=[];for(let _0x4339e4 of _0x36f9fc)_0x4339e4['start']['nodeAfter']===_0x4339e4['end']['parent']&&(_0x4339e4=_0x1225e4['model']['createRange'](_0x1225e4['model']['createPositionAt'](_0x4339e4['start']['nodeAfter'],0x0))),_0x6543e9['push'](_0x4339e4);_0x1225e4['model']['change'](_0x454d5a=>{const _0x50853c=_0x1225e4['model']['document']['selection'],_0x1a57fa=Array['from'](_0x50853c['getRanges']())['map'](_0x268c69=>_0x3f00a1['fromRange'](_0x268c69));_0x454d5a['setSelection'](_0x6543e9),_0x1225e4['commands']['get'](_0x4d39f5['commandName'])['refresh'](),_0x4d39f5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1225e4['execute'](_0x4d39f5['commandName'],..._0x4d39f5['commandParams']),_0x454d5a['setSelection'](_0x1a57fa);for(const _0x4621fd of _0x1a57fa)_0x4621fd['detach']();});}),_0x52914e['descriptionFactory']['registerElementLabel'](function(_0x3f8c17){const _0x140e89=!_0x1225e4['model']['schema']['isObject'](_0x3f8c17),_0x689576=_0x3f8c17['previousSibling'],_0x33d806=_0x3f8c17['nextSibling'],_0x4c7916=_0x3f8c17['getAttribute']('listItemId'),_0x268365=!_0x689576||_0x689576['getAttribute']('listItemId')!==_0x4c7916,_0x187f98=!_0x33d806||_0x33d806['getAttribute']('listItemId')!==_0x4c7916;return _0x140e89&&Boolean(_0x4c7916)&&_0x268365&&_0x187f98;},_0x169c36=>o(_0x1e3d08,'ELEMENT_LIST_ITEM',_0x169c36));}['_registerLegacyDescription'](){const _0xf82026=this['editor'],_0x19cc2f=_0xf82026['locale'];function _0x39f8b8(_0x569edc){const _0x5d0f76=_0xf82026['commands']['get']('bulletedList')['value'],_0x3eb85f=_0xf82026['commands']['get']('numberedList')['value'];return'numberedList'===_0x569edc?_0x5d0f76:_0x3eb85f;}_0xf82026['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2237f5){if('formatBlock'!=_0x2237f5['type'])return;const {data:_0x51f7c2}=_0x2237f5;if(!_0x51f7c2)return;let _0x31d4eb,_0x549097,_0x19b418,_0x26f102;switch(_0x51f7c2['commandName']){case'bulletedList':_0x19b418=_0x51f7c2['commandParams'][0x0]['forceValue'],_0x26f102=_0x39f8b8(_0x51f7c2['commandName']),_0x31d4eb=_0x19b418?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26f102&&_0xf82026['config']['get']('list.multiBlock')||(_0x31d4eb='*Change\x20to:*\x20%0'),_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19b418=_0x51f7c2['commandParams'][0x0]['forceValue'],_0x26f102=_0x39f8b8(_0x51f7c2['commandName']),_0x31d4eb=_0x19b418?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26f102&&_0xf82026['config']['get']('list.multiBlock')||(_0x31d4eb='*Change\x20to:*\x20%0'),_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x31d4eb='*Indent:*\x20%0',_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x31d4eb=function(_0x2b3d5d){const _0x5cc1f5=_0x2b3d5d['getFirstRange']();let _0x34fa80=_0x5cc1f5['start']['nodeAfter'];for(;_0x34fa80&&_0x5cc1f5['containsItem'](_0x34fa80);){if(_0x34fa80['getAttribute']('listIndent')>0x0)return!0x1;_0x34fa80=_0x34fa80['nextSibling'];}return!0x0;}(_0x2237f5)?o(_0x19cc2f,'*Format:*\x20remove\x20from\x20%0',o(_0x19cc2f,function(_0x20ca2d){return'ELEMENT_'+_0x20ca2d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2237f5))):o(_0x19cc2f,'*Outdent:*\x20%0',o(_0x19cc2f,'ELEMENT_LIST_ITEM')),_0x549097={'type':'format','content':_0x31d4eb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51f7c2['multipleBlocks']&&(_0x31d4eb='*Merge:*\x20%0',_0x549097={'type':'deletion','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_LIST_ITEM'))});}return _0x549097;});}}function Ee(_0x47f232){let _0x5ae702=_0x47f232['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ae702;){const _0x4c692e=_0x5ae702['getAttribute']('listItemId');if(!_0x4c692e)return!0x1;if(_0x4c692e==_0x47f232['data']['newValue'])return'newValue';if(_0x4c692e==_0x47f232['data']['oldValue'])return'oldValue';_0x5ae702=_0x5ae702['previousSibling'];}return!0x1;}class pe extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x133eec=this['editor']['config']['get']('list.properties'),_0x5e8517=this['editor']['plugins']['get']('TrackChangesEditing');_0x133eec['styles']&&(_0x5e8517['enableDefaultAttributesIntegration']('listStyle'),_0x5e8517['registerBlockAttribute']('listStyle')),_0x133eec['reversed']&&(_0x5e8517['enableDefaultAttributesIntegration']('listReversed'),_0x5e8517['registerBlockAttribute']('listReversed')),_0x133eec['startIndex']&&(_0x5e8517['enableDefaultAttributesIntegration']('listStart'),_0x5e8517['registerBlockAttribute']('listStart'));const _0x1e1a9a={'type':'format','content':''};_0x5e8517['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5526bb=this['editor']['locale'];_0x5e8517['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5526bb,'FORMAT_LIST_REVERSED')),_0x5e8517['descriptionFactory']['registerDescriptionCallback'](_0x42ed04=>{const {data:_0x4f865e}=_0x42ed04;if(_0x4f865e&&'listReversed'==_0x4f865e['key'])return null==_0x4f865e['newValue']||0x0==_0x4f865e['newValue']&&null==_0x4f865e['oldValue']?_0x1e1a9a:void 0x0;}),_0x5e8517['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5526bb,'FORMAT_LIST_START')),_0x5e8517['descriptionFactory']['registerDescriptionCallback'](_0x542a07=>{const {data:_0x1e7fff}=_0x542a07;if(_0x1e7fff&&'listStart'==_0x1e7fff['key'])return null==_0x1e7fff['newValue']||0x1==_0x1e7fff['newValue']&&null==_0x1e7fff['oldValue']?_0x1e1a9a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x11eaa2=>{if(_0x11eaa2['batch']['isUndo'])return!0x1;let _0x156289=!0x1;const _0x2edc4f=_0x5e8517['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1047ff=>{const _0xa25f45=_0x5e8517['_getAttributeKey'](_0x1047ff);return'listStart'==_0xa25f45||'listReversed'==_0xa25f45;});for(const _0x385987 of _0x2edc4f){const _0x3d577d=_0x385987['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d577d||'customNumbered'==_0x3d577d)continue;_0x5e8517['_findSuggestions'](_0x385987['getFirstRange'](),'attribute')['find'](_0x1cdf80=>'listType'==_0x5e8517['_getAttributeKey'](_0x1cdf80['suggestion']))||(_0x11eaa2['removeMarker'](_0x385987['getFirstMarker']()),_0x156289=!0x0);}return _0x156289;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe36ab9){const _0x43a962=this['editor']['locale'],{data:_0x4fd864}=_0xe36ab9,_0x4dc540={'type':'format','content':''};if(!_0x4fd864||'listStyle'!=_0x4fd864['key'])return;if(!_0x4fd864['oldValue'])return'default'==_0x4fd864['newValue']?_0x4dc540:{'type':'format','content':''+o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['newValue'])))};if(!_0x4fd864['newValue']){if('default'==_0x4fd864['oldValue'])return _0x4dc540;let _0x2b7928=_0xe36ab9['head'];for(;_0x2b7928;){if(_0x2b7928['data']&&'listType'==_0x2b7928['data']['key']&&_0x2b7928['data']['newValue'])return _0x4dc540;_0x2b7928=_0x2b7928['next'];}return{'type':'format','content':''+o(_0x43a962,'*Remove\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['oldValue'])))};}if('default'!=_0x4fd864['newValue'])return{'type':'format','content':''+o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['newValue'])))};let _0x1d2f23=_0xe36ab9['head'];for(;_0x1d2f23;){if(_0x1d2f23['data']&&'listType'==_0x1d2f23['data']['key']&&_0x1d2f23['data']['newValue']&&_0x1d2f23['data']['oldValue'])return _0x4dc540;_0x1d2f23=_0x1d2f23['next'];}return{'type':'format','content':o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,'ELEMENT_'+_0xe36ab9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1311a6=this['editor'],_0x355de6=_0x1311a6['locale'];_0x1311a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8d9d6e=>{if('formatBlock'!=_0x8d9d6e['type'])return;const {data:_0x6887ca}=_0x8d9d6e;if(!_0x6887ca)return;let _0x1bee14,_0x5f199e;switch(_0x6887ca['commandName']){case'listStyle':_0x1bee14='*Change\x20to:*\x20%0',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14,o(_0x355de6,this['_getTranslationKeyForListStyle'](_0x6887ca['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bee14=_0x6887ca['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14)};break;case'listStart':_0x1bee14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14,_0x6887ca['commandParams'][0x0]['startIndex'])};}return _0x5f199e;});}['_getTranslationKeyForListStyle'](_0x3867ea){return'ELEMENT_'+function(_0x2aea00){if(ye['includes'](_0x2aea00))return'bulleted';if(Se['includes'](_0x2aea00))return'numbered';return null;}(_0x3867ea)['toUpperCase']()+'_LIST_'+_0x3867ea['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2be873{static get['requires'](){return[_0x17bcc1];}['init'](){const _0x5d48ec=this['editor'],_0x8c0477=_0x5d48ec['plugins']['get']('TrackChangesEditing'),_0x1bf42e=_0x5d48ec['commands']['get']('enter');_0x8c0477['enableCommand']('enter',()=>{_0x5d48ec['model']['change'](_0x3213f6=>{const _0x24c006=_0x5d48ec['model']['document']['selection'],_0x323092=_0x24c006['getFirstPosition'](),_0x2cd824=_0x3f00a1['fromRange'](_0x24c006['getFirstRange']());if(_0x1bf42e['enterBlock'](_0x3213f6)){const _0x52ff3a=_0x5d48ec['model']['createPositionAt'](_0x323092['parent']['nextSibling'],0x0),_0xd8214b=_0x3213f6['createRange'](_0x323092,_0x52ff3a);_0x8c0477['markInsertion'](_0xd8214b);}else _0x3213f6['setSelection'](_0x3213f6['createRange'](_0x2cd824['end']));_0x2cd824['detach'](),_0x1bf42e['fire']('afterExecute',{'writer':_0x3213f6});});}),_0x5d48ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5d48ec,'split'),{'priority':'high'}),_0x5d48ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c701f,_0x517193,_0x5a2229)=>{const _0x268213=_0x5a2229['mapper']['markerNameToElements'](_0x517193['markerName']);if(_0x268213){for(const _0x4f1cbd of _0x268213)_0x4f1cbd['hasClass']('ck-suggestion-marker-split')&&(_0x5a2229['mapper']['unbindElementFromMarkerName'](_0x4f1cbd,_0x517193['markerName']),_0x5a2229['writer']['remove'](_0x4f1cbd));}},{'priority':'high'}),_0x5d48ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb4ef7c,_0x56d00e,_0xc0e57a)=>{_0xc0e57a['options']['showSuggestionHighlights']&&_e(_0x5d48ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xb4ef7c,_0x56d00e,_0xc0e57a);},{'priority':'high'});}}class X extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x385932=this['editor']['plugins']['get']('TrackChangesEditing');_0x385932['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x385932['enableCommand']('findNext'),_0x385932['enableCommand']('findPrevious'),_0x385932['enableCommand']('replace'),_0x385932['enableCommand']('replaceAll');}['handleFindCommand'](_0x48dd15,_0x1a85a2,_0x289322={}){const _0x466864=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48dd15(_0x337cff=>{let _0x15d22f=('string'==typeof _0x1a85a2?_0x466864['findByTextCallback'](_0x1a85a2,_0x289322):_0x1a85a2)(_0x337cff);Array['isArray'](_0x15d22f)&&(_0x15d22f={'results':_0x15d22f,'searchText':'string'==typeof _0x1a85a2?_0x1a85a2:''});const _0x48020c=_0x15d22f['results']['filter'](_0x578b7d=>!0x1===this['_isInDeletionRange'](_0x578b7d,_0x337cff['item']));return{..._0x15d22f,'results':_0x48020c};},_0x289322);}['_isInDeletionRange'](_0xa83973,_0x48e5f0){const _0x5932a6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48e5f0,_0xa83973['start']),this['editor']['model']['createPositionAt'](_0x48e5f0,_0xa83973['end']));for(const _0x3cf41a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5932a6['getIntersection'](_0x3cf41a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x2be873{['afterInit'](){const _0x26bae9=this['editor']['locale'],_0x37c8c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ab546,commandName:_0x8fab4c}of ro)this['editor']['plugins']['has'](_0x2ab546)&&(_0x37c8c9['enableDefaultAttributesIntegration'](_0x8fab4c),_0x37c8c9['registerInlineAttribute'](_0x8fab4c));_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x26bae9,'FORMAT_FONT_SIZE')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x26bae9,'FORMAT_FONT_FAMILY')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x26bae9,'FORMAT_FONT_COLOR')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x26bae9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86e6a7=this['editor'],_0x32e473=_0x86e6a7['locale'];_0x86e6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc167ff=>{const _0x175962=_0x32e473['t'];if('formatInline'!=_0xc167ff['type'])return;const {data:_0x27eaa8}=_0xc167ff;if(null!=_0x27eaa8){if('fontSize'==_0x27eaa8['commandName']){const _0x11ee7a=_0x27eaa8['commandParams'][0x0]['value'];if(_0x11ee7a){const _0x3e65d6=_0x175962(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2e7636=>_0x2e7636['model']==_0x11ee7a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x32e473,'*Set\x20font\x20size:*\x20%0',_0x3e65d6)};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27eaa8['commandName']){const _0x265cb1=_0x27eaa8['commandParams'][0x0]['value'];return _0x265cb1?{'type':'format','content':o(_0x32e473,'*Set\x20font\x20family:*\x20%0',_0x265cb1)}:{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27eaa8['commandName']){const _0x366dcf=_0x27eaa8['commandParams'][0x0]['value'];if(_0x366dcf){const _0xd98847=_0x408f0d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6c19c9=>_0x6c19c9['model']==_0x366dcf);let _0x1214ba=_0x366dcf,_0x17ada3='';return _0xd98847&&(_0x1214ba=_0xd98847['label'],_0x17ada3=_0x175962(_0x1214ba)['toLowerCase']()),{'type':'format','content':o(_0x32e473,'*Set\x20font\x20color:*\x20%0',_0x17ada3)['trim'](),'color':{'value':_0x366dcf,'title':_0x17ada3||_0x1214ba}};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27eaa8['commandName']){const _0x3494cb=_0x27eaa8['commandParams'][0x0]['value'];if(_0x3494cb){const _0x9d40a6=_0x408f0d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34ed5d=>_0x34ed5d['model']==_0x3494cb);let _0x25203e=_0x3494cb,_0xe45ea7='';return _0x9d40a6&&(_0x25203e=_0x9d40a6['label'],_0xe45ea7=_0x175962(_0x25203e)['toLowerCase']()),{'type':'format','content':o(_0x32e473,'*Set\x20font\x20background\x20color:*\x20%0',_0xe45ea7)['trim'](),'color':{'value':_0x3494cb,'title':_0xe45ea7||_0x25203e}};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2be873{['afterInit'](){const _0x1a79de=this['editor'],_0x4a6b66=_0x1a79de['plugins']['get']('TrackChangesEditing'),_0x329ea0=_0x1a79de['commands']['get']('copyFormat'),_0x4ecf50=_0x1a79de['commands']['get']('pasteFormat');_0x329ea0&&_0x4ecf50&&(_0x4a6b66['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a6b66['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x374942=this['editor'],_0xe704bb=_0x374942['locale'];_0x374942['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49bac1=>{if('formatBlock'!=_0x49bac1['type']&&'formatInline'!=_0x49bac1['type'])return;const {data:_0x233b54}=_0x49bac1;if(_0x233b54&&'pasteFormat'===_0x233b54['commandName']){const _0x2ab860=[],_0x406912=_0x233b54['commandParams'][0x0];for(const [_0x128f4e,_0x5870bf]of Object['entries'](_0x406912))_0x2ab860['push'](so(_0x374942,_0x128f4e,_0x5870bf));return _0x2ab860['length']?{'type':'format','content':o(_0xe704bb,'*Set\x20format\x20to:*\x20%0',_0x2ab860['join'](',\x20'))}:{'type':'format','content':o(_0xe704bb,'*Remove\x20all\x20formatting*')};}});}}function so(_0xc1cf88,_0x66749b,_0x140325){const _0x5e3ab9=_0xc1cf88['locale']['t'],_0xfaba1=_0x66749b['split'](/(?=[A-Z])/)['join']('\x20'),_0x20ef50=_0x5e3ab9(_0xfaba1['charAt'](0x0)['toUpperCase']()+_0xfaba1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x140325)return _0x20ef50;if('fontColor'===_0x66749b||'fontBackgroundColor'===_0x66749b){const _0x102b19=_0x408f0d(_0xc1cf88['config']['get']('fontColor.colors'))['find'](_0x3414ac=>_0x3414ac['model']==_0x140325);return _0x20ef50+'\x20('+(_0x102b19?_0x5e3ab9(_0x102b19['label'])['toLowerCase']():_0x140325)+')';}if('fontSize'===_0x66749b&&isNaN(parseFloat(_0x140325))){const _0x7ed143=_0xc1cf88['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc1cf88['config']['get']('fontSize.options'))['find'](_0x16ab3e=>_0x16ab3e['model']==_0x140325);return _0x20ef50+'\x20('+(_0x7ed143?_0x5e3ab9(_0x7ed143['title'])['toLowerCase']():_0x140325)+')';}return _0x20ef50+'\x20('+_0x140325+')';}class tt extends _0x2be873{['_headingOptions'];['afterInit'](){const _0x389801=this['editor'];if(!_0x389801['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x389801['config']['get']('heading.options');const _0x3ace88=_0x389801['locale'],_0x33eac2=_0x389801['plugins']['get']('TrackChangesEditing');_0x33eac2['enableDefaultAttributesIntegration']('heading');for(const _0x3befd1 of this['_headingOptions'])'paragraph'!=_0x3befd1['model']&&_0x33eac2['descriptionFactory']['registerElementLabel'](_0x3befd1['model'],_0x5e828a=>{const _0x5b18b0=this['_getHeadingLevel'](_0x3befd1['model']);return null!==_0x5b18b0?_0x1b21b8(_0x5e828a,_0x5b18b0):_0x245312(_0x5e828a,_0x3befd1['title']);});function _0x1b21b8(_0x24b333,_0x4fa84d){return o(_0x3ace88,'ELEMENT_HEADING',[_0x24b333,_0x4fa84d]);}function _0x245312(_0x11bd02,_0x2255f2){return o(_0x3ace88,'ELEMENT_HEADING_CUSTOM',[_0x11bd02,_0x2255f2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4956fd=this['editor'],_0x5c9dea=_0x4956fd['locale'];function _0x13dc63(_0x4e9016,_0x429902){return o(_0x5c9dea,'ELEMENT_HEADING_CUSTOM',[_0x4e9016,_0x429902]);}_0x4956fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24251a=>{if('formatBlock'!=_0x24251a['type'])return;const {data:_0x559c0b}=_0x24251a;if(_0x559c0b&&'heading'==_0x559c0b['commandName']){const _0x3e822b=_0x559c0b['commandParams'][0x0]['value'],_0x41ed1e=this['_getHeadingLevel'](_0x3e822b);if(null!==_0x41ed1e)return{'type':'format','content':o(_0x5c9dea,'*Change\x20to:*\x20%0',(_0x3f1973=0x1,_0x291158=_0x41ed1e,o(_0x5c9dea,'ELEMENT_HEADING',[_0x3f1973,_0x291158])))};const _0x3cb98e=this['_headingOptions']['find'](_0x4cd6c6=>_0x4cd6c6['model']===_0x3e822b)['title'];return{'type':'format','content':o(_0x5c9dea,'*Change\x20to:*\x20%0',_0x13dc63(0x1,_0x3cb98e))};}var _0x3f1973,_0x291158;});}['_getHeadingLevel'](_0x24ee5a){const _0x239cc9=_0x24ee5a['match'](/^heading(\d+)/);if(_0x239cc9)return _0x239cc9[0x1];const _0x47c163=this['_headingOptions']?.['find'](_0x12dcef=>_0x12dcef['model']==_0x24ee5a);if(_0x47c163&&_0x47c163['view']){const _0x1dda47=_0x47c163['view'],_0x4a55d3=(_0x1dda47['name']??_0x1dda47)['match'](/^h(\d+)/);if(_0x4a55d3)return _0x4a55d3[0x1];}return null;}}class et extends _0x2be873{['afterInit'](){const _0x5df836=this['editor'];if(!_0x5df836['plugins']['has']('HighlightEditing'))return;const _0xf17db8=_0x5df836['plugins']['get']('TrackChangesEditing'),_0x5c9022=_0x5df836['locale'];_0xf17db8['enableDefaultAttributesIntegration']('highlight'),_0xf17db8['registerInlineAttribute']('highlight'),_0xf17db8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5c9022,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x241617=this['editor'],_0x8c3d5f=_0x241617['locale'];_0x241617['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2e65=>{if('formatInline'!=_0x3d2e65['type'])return;const {data:_0x4e4963}=_0x3d2e65;if(_0x4e4963&&'highlight'==_0x4e4963['commandName']){const _0x898b73=_0x8c3d5f['t'],_0x97d3be=_0x4e4963['commandParams'][0x0]['value'];if(_0x97d3be){const _0x4d5ccb=_0x241617['config']['get']('highlight.options')['find'](_0xd0bc9f=>_0xd0bc9f['model']==_0x97d3be),_0x22c40c=_0x898b73(_0x4d5ccb['title'])['toLowerCase']();return{'type':'format','content':o(_0x8c3d5f,'*Set\x20highlight:*\x20%0',_0x22c40c),'color':{'value':_0x4d5ccb['color'],'title':_0x4d5ccb['title']}};}return{'type':'format','content':o(_0x8c3d5f,'*Remove\x20highlight*',o(_0x8c3d5f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2be873{['afterInit'](){const _0x5690dd=this['editor'];if(!_0x5690dd['plugins']['has']('HorizontalLineEditing'))return;_0x5690dd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x29120f=_0x5690dd['plugins']['get']('TrackChangesEditing'),_0x4d7379=_0x5690dd['locale'];_0x29120f['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd8189f=>o(_0x4d7379,'ELEMENT_HORIZONTAL_LINE',_0xd8189f)),_0x5690dd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x136ff8,{writer:_0x6847d8,options:_0x4ad3dc})=>{if(!_0x4ad3dc['showSuggestionHighlights'])return null;const _0x2ba48a=_0x6847d8['createContainerElement']('div'),_0x454721=_0x6847d8['createEmptyElement']('hr');return _0x6847d8['addClass']('ck-horizontal-line',_0x2ba48a),_0x6847d8['insert'](_0x6847d8['createPositionAt'](_0x2ba48a,0x0),_0x454721),_0x2ba48a;},'converterPriority':'high'});}}class st extends _0x2be873{['afterInit'](){const _0x4bc325=this['editor'];if(!_0x4bc325['plugins']['has']('HtmlEmbed'))return;const _0xe82575=_0x4bc325['plugins']['get']('TrackChangesEditing'),_0x1e92e9=_0x4bc325['locale'];_0xe82575['descriptionFactory']['registerElementLabel']('rawHtml',_0x691f6e=>o(_0x1e92e9,'ELEMENT_HTML_EMBED',_0x691f6e)),_0xe82575['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe82575['registerBlockAttribute']('value'),_0xe82575['descriptionFactory']['registerDescriptionCallback'](_0x32a380=>{if('attribute'!=_0x32a380['type'])return;const {data:_0x1325d9}=_0x32a380;if(_0x1325d9&&'value'==_0x1325d9['key']&&_0x32a380['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46ca9d=o(_0x1e92e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e92e9,'*Change\x20%0\x20content*',_0x46ca9d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55436f=this['editor'],_0xf19a65=_0x55436f['locale'];_0x55436f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9722=>{if('formatBlock'!=_0x3c9722['type'])return;const {data:_0x2a8793}=_0x3c9722;if(_0x2a8793&&'htmlEmbed'==_0x2a8793['commandName']){const _0x160c55=o(_0xf19a65,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf19a65,'*Change\x20%0\x20content*',_0x160c55)};}});}}class nt extends _0x2be873{['afterInit'](){const _0x28d8ec=this['editor'];if(!_0x28d8ec['plugins']['has']('ImageEditing'))return;const _0x3b1c64=_0x28d8ec['plugins']['get']('TrackChangesEditing'),_0x399d82=_0x28d8ec['plugins']['get']('ImageUtils'),_0x53be14=_0x28d8ec['locale'];_0x3b1c64['enableCommand']('insertImage'),_0x3b1c64['descriptionFactory']['registerElementLabel']('imageBlock',_0x396431=>o(_0x53be14,'ELEMENT_IMAGE',_0x396431)),_0x3b1c64['descriptionFactory']['registerElementLabel']('imageInline',_0x469f14=>o(_0x53be14,'ELEMENT_INLINE_IMAGE',_0x469f14)),_0x3b1c64['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x53be14,'ELEMENT_CAPTION')),_0x28d8ec['plugins']['has']('ImageUploadEditing')&&_0x3b1c64['enableCommand']('uploadImage'),_0x28d8ec['plugins']['has']('ImageBlockEditing')&&_0x28d8ec['plugins']['has']('ImageInlineEditing')&&(_0x3b1c64['enableCommand']('imageTypeInline',(_0x21be26,_0x31a92e)=>{const _0x30fccc=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']);_0x28d8ec['model']['change'](()=>{_0x3b1c64['markBlockFormat'](_0x30fccc,{'commandName':'imageTypeInline','commandParams':[_0x31a92e]},[],'convertBlockImageToInline');});}),_0x3b1c64['enableCommand']('imageTypeBlock',(_0x4beec4,_0x2371bc)=>{_0x28d8ec['model']['change'](_0x19e474=>{let _0x434c7b=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x4ad28c=_0x19e474['createRangeOn'](_0x434c7b);const _0x50373b=_0xe63aa9['fromPosition'](_0x4ad28c['start'],'toPrevious'),_0x3ad86e=_0xe63aa9['fromPosition'](_0x4ad28c['end'],'toNext');_0x3b1c64['forceDefaultExecution'](()=>_0x4beec4(_0x2371bc)),_0x434c7b=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x4ad28c=_0x19e474['createRangeOn'](_0x434c7b);const _0x3ce038=_0x19e474['createRange'](_0x50373b,_0x3ad86e);_0x50373b['detach'](),_0x3ad86e['detach'](),_0x3b1c64['markBlockFormat'](_0x434c7b,{'commandName':'imageTypeInline','commandParams':[_0x2371bc]},[],'convertInlineImageToBlock'),_0x3ce038['start']['isBefore'](_0x4ad28c['start'])&&_0x3b1c64['markInsertion'](_0x19e474['createRange'](_0x3ce038['start'],_0x4ad28c['start']),'convertInlineImageToBlock'),_0x4ad28c['end']['isBefore'](_0x3ce038['end'])&&_0x3b1c64['markInsertion'](_0x19e474['createRange'](_0x4ad28c['end'],_0x3ce038['end']),'convertInlineImageToBlock');});}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3b1c64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c7a68])=>{const _0x532a3f=_0x3b1c64['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f9506=_0x3c7a68['start'],_0x48fa2c=_0x3c7a68['end'];const _0x3ece60=_0x28d8ec['model']['schema']['getNearestSelectionRange'](_0x3f9506,'backward'),_0xa48f3c=_0x28d8ec['model']['schema']['getNearestSelectionRange'](_0x48fa2c,'forward');_0x3ece60['isCollapsed']&&(_0x3f9506=_0x3ece60['start']),_0xa48f3c['isCollapsed']&&(_0x48fa2c=_0xa48f3c['end']),_0x532a3f([_0x28d8ec['model']['createRange'](_0x3f9506,_0x48fa2c)]);}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x26b20b),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x26b20b)),_0x28d8ec['plugins']['has']('ImageCaptionEditing')&&(_0x3b1c64['enableCommand']('toggleImageCaption',(_0x3e724b,_0x43d0a4)=>{const _0xdd6167=_0x28d8ec['plugins']['get']('ImageCaptionUtils');let _0x16d2cf=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x1d2006=_0xdd6167['getCaptionFromImageModelElement'](_0x16d2cf);_0x28d8ec['model']['change'](()=>{if(_0x1d2006)return void _0x3b1c64['markDeletion'](_0x28d8ec['model']['createRangeOn'](_0x1d2006));const _0x57a900=_0x399d82['isBlockImage'](_0x16d2cf);_0x3e724b(_0x43d0a4),_0x16d2cf=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x1d2006=_0xdd6167['getCaptionFromImageModelElement'](_0x16d2cf),_0x3b1c64['markInsertion'](_0x28d8ec['model']['createRangeOn'](_0x1d2006),_0x57a900?null:'imageCaption');});}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x26b20b));const _0x10310c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x489186(_0x5d9bf0,_0x2b9e44){const _0xddf5e9=_0x10310c['findIndex'](({type:_0x32ff8e,subType:_0x5c7009})=>_0x5d9bf0['type']==_0x32ff8e&&_0x5d9bf0['subType']==_0x5c7009),_0xd9e1d1=_0x10310c['findIndex'](({type:_0x294683,subType:_0x3d862e})=>_0x2b9e44['type']==_0x294683&&_0x2b9e44['subType']==_0x3d862e);if(_0xddf5e9<0x0||_0xd9e1d1<0x0)return!0x1;const _0x4336c8=_0x5d9bf0['getFirstRange'](),_0x1fa494=_0x2b9e44['getFirstRange']();if((0x0==_0xddf5e9||0x1==_0xddf5e9)&&0x2==_0xd9e1d1&&_0x4336c8['isIntersecting'](_0x1fa494))return!0x0;if(0x2==_0xddf5e9&&0x3==_0xd9e1d1){const _0x2c1db8=_0x3b1c64['_findSuggestions'](_0x4336c8,'insertion')['filter'](({suggestion:_0x21d0ac,meta:_0x59dc19})=>_0x59dc19['isOwn']&&'convertInlineImageToBlock'==_0x21d0ac['subType']);if(_0x2c1db8['length']>0x1&&_0x1fa494['end']['isEqual'](_0x4336c8['start']))return!0x0;if(0x1==_0x2c1db8['length']&&(_0x4336c8['start']['isEqual'](_0x1fa494['end'])||_0x4336c8['end']['isEqual'](_0x1fa494['start'])))return!0x0;}if(0x3==_0xddf5e9&&0x3==_0xd9e1d1&&_0x4336c8['start']['isBefore'](_0x1fa494['start'])){const _0x3f98f5=_0x4336c8['end']['nodeAfter'],_0x153f4d=_0x1fa494['start']['nodeBefore'];return _0x399d82['isBlockImage'](_0x3f98f5)&&_0x3f98f5===_0x153f4d;}return!0x1;}function _0x26b20b(_0x298f8b,_0x5773e0){return _0x489186(_0x298f8b,_0x5773e0)?[_0x298f8b,_0x5773e0]:_0x489186(_0x5773e0,_0x298f8b)?[_0x5773e0,_0x298f8b]:null;}_0x28d8ec['plugins']['has']('ImageResize')&&(_0x3b1c64['enableDefaultAttributesIntegration']('resizeImage'),_0x3b1c64['registerBlockAttribute']('resizedWidth'),_0x3b1c64['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x53be14,'FORMAT_IMAGE_SIZE'))),_0x28d8ec['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3b1c64['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3b1c64['registerBlockAttribute']('alt')),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x5f3d59=>{if(!!_0x10310c['find'](({type:_0x2bd2b4,subType:_0x18730d})=>_0x5f3d59['type']==_0x2bd2b4&&_0x5f3d59['subType']==_0x18730d))return _0x5f3d59['previous']?{}:void 0x0;}),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x319eeb=>{if('insertion'==_0x319eeb['type']||'deletion'==_0x319eeb['type']){const _0x56b863=_0x319eeb['getContainedElement']();if(_0x56b863&&_0x56b863['is']('element','caption'))return{'type':'insertion'==_0x319eeb['type']?'addObject':'removeObject','element':_0x56b863,'quantity':0x1};}}),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x5ce22b=>'formatBlock'==_0x5ce22b['type']&&'convertInlineImageToBlock'==_0x5ce22b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ce22b['type']&&'convertBlockImageToInline'==_0x5ce22b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x45b85c=>{if('attribute'!=_0x45b85c['type'])return;const {data:_0xe51217}=_0x45b85c;if(!_0xe51217||'alt'!=_0xe51217['key'])return;const _0x282c65=_0xe51217['newValue'];return _0x282c65?{'type':'format','content':o(_0x53be14,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x282c65+'\x22')}:{'type':'format','content':o(_0x53be14,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228a80=this['editor'],_0x1f7d05=_0x228a80['locale'];_0x228a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9957f0=>{if('formatBlock'!=_0x9957f0['type']&&'formatInline'!=_0x9957f0['type'])return;const {data:_0x216c7f}=_0x9957f0;if(_0x216c7f){if('imageTextAlternative'==_0x216c7f['commandName']){const _0x5c77ad=_0x216c7f['commandParams'][0x0]['newValue'];return _0x5c77ad?{'type':'format','content':o(_0x1f7d05,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c77ad+'\x22')}:{'type':'format','content':o(_0x1f7d05,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x216c7f['commandName']){const _0x209cb6=_0x216c7f['commandParams'][0x0]['width'];return _0x209cb6?{'type':'format','content':o(_0x1f7d05,'*Set\x20image\x20width:*\x20%0',_0x209cb6)}:{'type':'format','content':o(_0x1f7d05,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5edb8b=this['editor']['locale'],_0x34510c=this['editor']['plugins']['get']('TrackChangesEditing');_0x34510c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34510c['registerBlockAttribute']('src'),_0x34510c['descriptionFactory']['registerDescriptionCallback'](_0x1a0781=>{if('attribute'!=_0x1a0781['type'])return;const {data:_0x519c05}=_0x1a0781;return _0x519c05&&'src'==_0x519c05['key']?_0x519c05['newValue']&&_0x519c05['oldValue']?{'type':'format','content':o(_0x5edb8b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c2838=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c2838['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c2838['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c2838['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c2838['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x522e45=this['editor'],_0x262846=_0x522e45['locale'];_0x522e45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c808d=>{if('formatBlock'!=_0x4c808d['type']&&'formatInline'!=_0x4c808d['type'])return;const {data:_0x4efc73}=_0x4c808d;if(!_0x4efc73||'replaceImageSource'!=_0x4efc73['commandName'])return;return{'type':'format','content':o(_0x262846,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2be873{['afterInit'](){const _0x3efa7a=this['editor'];if(!_0x3efa7a['plugins']['has']('ImageStyleEditing'))return;const _0x4e93f8=_0x3efa7a['plugins']['get']('TrackChangesEditing'),_0x3543ae=_0x3efa7a['plugins']['get']('ImageUtils'),_0x4f16b2={};_0x4e93f8['enableCommand']('imageStyle',(_0x3119d5,_0x22b37e)=>{const _0x3d2483=_0x3efa7a['plugins']['get']('Users')['me'],_0x40d723=_0x3efa7a['commands']['get']('imageStyle');let _0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),_0x14e0a5=_0x3efa7a['model']['createRangeOn'](_0x21f703),_0x1948b8=_0x40d723['value'];if(_0x1948b8==_0x22b37e['value'])return;const _0x53695a={'commandName':'imageStyle','commandParams':[_0x22b37e],'formatGroupId':_0x30a933()};_0x3efa7a['model']['change'](()=>{if(_0x4e93f8['getSuggestions']()['filter'](_0x4cd6cc=>_0x4cd6cc['isInContent']&&_0x3d2483==_0x4cd6cc['author']&&('formatBlock'==_0x4cd6cc['type']||'formatInline'==_0x4cd6cc['type'])&&('imageStylePreApply'==_0x4cd6cc['subType']||'imageStylePostApply'==_0x4cd6cc['subType'])&&_0x4cd6cc['getFirstRange']()['isEqual'](_0x14e0a5))['forEach'](_0x175ab1=>_0x4e93f8['discardSuggestion'](_0x175ab1['head'])),_0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),_0x14e0a5=_0x3efa7a['model']['createRangeOn'](_0x21f703),_0x40d723['refresh'](),_0x3efa7a['commands']['get']('imageTypeInline')['refresh'](),_0x3efa7a['commands']['get']('imageTypeBlock')['refresh'](),_0x1948b8=_0x40d723['value'],_0x1948b8!=_0x22b37e['value'])return _0x3543ae['isInlineImage'](_0x21f703)&&_0x40d723['shouldConvertImageType'](_0x22b37e['value'],_0x21f703)?(_0x3119d5({..._0x22b37e,'setImageSizes':!0x1}),_0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),void _0x4e93f8['markBlockFormat'](_0x21f703,{..._0x53695a,'commandReversedParams':[{'value':_0x1948b8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3543ae['isBlockImage'](_0x21f703)?_0x4e93f8['markBlockFormat'](_0x21f703,_0x53695a,[],'imageStylePostApply'):_0x4e93f8['markInlineFormat'](_0x14e0a5,_0x53695a,'imageStylePostApply'));});});for(const _0x5bbccb of _0x3efa7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f16b2[_0x5bbccb['name']]=_0x5bbccb['title']['toLowerCase']();_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4d248e])=>{_0x3543ae['setImageNaturalSizeAttributes'](_0x4d248e['getContainedElement']());}),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2986bc,_0x33624f)=>{_0x4e93f8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2986bc,{'commandName':_0x33624f['commandName'],'commandParams':_0x33624f['commandReversedParams']});}),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x260c07,_0x3cd383){if(_0x4c3284(_0x260c07,_0x3cd383))return[_0x260c07,_0x3cd383];if(_0x4c3284(_0x3cd383,_0x260c07))return[_0x3cd383,_0x260c07];return null;});const _0x234a5e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c3284(_0x5b5b26,_0x158ba0){const _0x202a27=_0x234a5e['findIndex'](({type:_0x446ff7,subType:_0x789b55})=>_0x5b5b26['type']==_0x446ff7&&_0x5b5b26['subType']==_0x789b55),_0x3def62=_0x234a5e['findIndex'](({type:_0x21d5ba,subType:_0x26bdc0})=>_0x158ba0['type']==_0x21d5ba&&_0x158ba0['subType']==_0x26bdc0);if(_0x202a27<0x0||_0x3def62<0x0)return!0x1;const _0x43ac37=_0x5b5b26['getFirstRange'](),_0x3c3988=_0x158ba0['getFirstRange']();if((0x0==_0x202a27||0x1==_0x202a27)&&0x2==_0x3def62&&_0x43ac37['isIntersecting'](_0x3c3988))return!0x0;if(0x2==_0x202a27&&0x3==_0x3def62){const _0x29d476=_0x4e93f8['_findSuggestions'](_0x43ac37,'insertion')['filter'](({suggestion:_0x2e969e,meta:_0x14f5c9})=>_0x14f5c9['isOwn']&&'convertInlineImageToBlock'==_0x2e969e['subType']);if(_0x29d476['length']>0x1&&_0x3c3988['end']['isEqual'](_0x43ac37['start']))return!0x0;if(0x1==_0x29d476['length']&&(_0x43ac37['start']['isEqual'](_0x3c3988['end'])||_0x43ac37['end']['isEqual'](_0x3c3988['start'])))return!0x0;}if(0x3==_0x202a27&&0x3==_0x3def62&&_0x43ac37['start']['isBefore'](_0x3c3988['start'])){const _0x516115=_0x43ac37['end']['nodeAfter'],_0x298994=_0x3c3988['start']['nodeBefore'];return _0x3543ae['isBlockImage'](_0x516115)&&_0x516115===_0x298994;}return!0x1;}_0x3efa7a['model']['document']['registerPostFixer'](()=>{let _0x5480cc=!0x1;const _0xc688e2=Array['from'](_0x3efa7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5975bb,data:_0x4143fd}of _0xc688e2){const {group:_0x1050ee,type:_0x189172,subType:_0x4dee74,id:_0x1d4a3e}=_0x4e93f8['_splitMarkerName'](_0x5975bb);if('suggestion'==_0x1050ee&&_0x4e93f8['hasSuggestion'](_0x1d4a3e)){if('formatBlock'==_0x189172&&('imageStylePreApply'==_0x4dee74||'imageStylePostApply'==_0x4dee74)){const _0x2d3e5d=_0x4e93f8['getSuggestion'](_0x1d4a3e);if(_0x4143fd['newRange']){const _0x458b96=_0x2d3e5d['getFirstRange']()['getContainedElement']();if(_0x3543ae['isBlockImage'](_0x458b96))continue;_0x4e93f8['discardSuggestion'](_0x2d3e5d),_0x5480cc=!0x0;}}if('insertion'==_0x189172&&'imageCaption'==_0x4dee74&&!_0x4143fd['newRange']){const _0x112651=_0x4e93f8['getSuggestion'](_0x1d4a3e);_0x112651['next']&&_0x112651['next']['isInContent']&&(_0x4e93f8['discardSuggestion'](_0x112651['next']),_0x5480cc=!0x0);}}}return _0x5480cc;}),this['_registerLegacyDescription'](_0x4f16b2);}['_registerLegacyDescription'](_0x4207b5){const _0x542536=this['editor'],_0xc7aa46=_0x542536['locale'];_0x542536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e13c0=>{if('formatBlock'!=_0x5e13c0['type']&&'formatInline'!=_0x5e13c0['type'])return;const {data:_0x52bf2d}=_0x5e13c0;if(!_0x52bf2d||'imageStyle'!=_0x52bf2d['commandName'])return;const _0x30ec5d=_0x52bf2d['commandParams'][0x0]['value'];return _0x29b845('side'===_0x30ec5d?o(_0xc7aa46,'FORMAT_SIDE_IMAGE'):_0x4207b5[_0x30ec5d]||_0x30ec5d);function _0x29b845(_0x5dc392){return{'type':'format','content':o(_0xc7aa46,'*Format:*\x20%0',_0x5dc392)};}});}}class at extends _0x2be873{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1d8a09){super(_0x1d8a09),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xe59817=this['editor'],_0x23d3d8=_0xe59817['commands']['get']('importWord'),_0x119951=_0xe59817['commands']['get']('trackChanges');_0x23d3d8&&(_0x23d3d8['on']('execute',(_0x317114,[,_0x4f5a8c])=>{this['_trackChangesValueDuringImport']=_0x119951['value'],_0x4f5a8c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x23d3d8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x23d3d8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x119951['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xe59817['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16c41d,_0x106a30){const {suggestions:_0xbc8c56}=_0x106a30,_0x3eb4a=this['editor']['commands']['get']('trackChanges'),_0x5c2ee4=_0x3eb4a['value'];this['_trackChangesValueDuringImport']!==_0x5c2ee4&&(_0x3eb4a['execute'](),this['_trackChangesExecuted']=!0x0),_0xbc8c56&&_0xbc8c56['forEach'](({id:_0x2ac032,type:_0x545737,author:_0xbed74,created_at:_0x5aac1e})=>{const _0x2628df={'id':_0x2ac032,'type':_0x545737,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xbed74,'createdAt':_0x5aac1e?new Date(_0x5aac1e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2628df);});}}class ct extends _0x2be873{['afterInit'](){const _0x4076cd=this['editor'],_0x1d0a1b=_0x4076cd['plugins']['get']('TrackChangesEditing');if(_0x4076cd['plugins']['has']('IndentEditing')&&(_0x1d0a1b['enableCommand']('indent'),_0x1d0a1b['enableCommand']('outdent')),_0x4076cd['plugins']['has']('IndentBlock')){for(const _0x4e4d6c of['indentBlock','outdentBlock'])_0x1d0a1b['enableDefaultAttributesIntegration'](_0x4e4d6c);}const _0xeb2213=_0x4076cd['locale'];_0x1d0a1b['registerBlockAttribute']('blockIndent'),_0x1d0a1b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xeb2213,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cef17=this['editor'],_0x1b61c3=_0x2cef17['locale'],_0x8be4f=_0x2cef17['plugins']['get']('TrackChangesEditing');_0x8be4f['descriptionFactory']['registerDescriptionCallback'](_0x51d5ef=>{if('formatBlock'!=_0x51d5ef['type'])return;const {data:_0x47b1a0}=_0x51d5ef;if(!_0x47b1a0)return;if('indentBlock'!=_0x47b1a0['commandName']&&'outdentBlock'!=_0x47b1a0['commandName'])return;const _0x543ed8=_0x51d5ef['getItems']()[0x0],_0x52b62a=_0x8be4f['descriptionFactory']['getItemLabel'](_0x543ed8);return'indentBlock'==_0x47b1a0['commandName']?{'type':'format','content':o(_0x1b61c3,'*Indent:*\x20%0',_0x52b62a)}:'outdentBlock'==_0x47b1a0['commandName']?{'type':'format','content':o(_0x1b61c3,'*Outdent:*\x20%0',_0x52b62a)}:void 0x0;});}}class ut extends _0x2be873{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2be873{['afterInit'](){const _0x25d575=this['editor'];if(!_0x25d575['plugins']['has']('LinkEditing'))return;const _0x46cf53=_0x25d575['plugins']['get']('TrackChangesEditing'),_0x59f722=_0x25d575['commands']['get']('link');_0x46cf53['enableDefaultAttributesIntegration']('link'),_0x46cf53['enableDefaultAttributesIntegration']('unlink'),_0x46cf53['registerInlineAttribute']('linkHref');for(const _0x223d4a of _0x59f722['manualDecorators'])_0x46cf53['registerInlineAttribute'](_0x223d4a['id']),_0x46cf53['descriptionFactory']['registerAttributeLabel'](_0x223d4a['id'],'link\x20('+_0x223d4a['label']['toLowerCase']()+')');_0x46cf53['descriptionFactory']['registerDescriptionCallback'](_0x4a69d3=>{if('attribute'!=_0x4a69d3['type'])return;const {data:_0x3f634d}=_0x4a69d3;if(!_0x3f634d||'linkHref'!=_0x3f634d['key'])return;const _0x5157b6=_0x3f634d['newValue'],_0x3ed602=_0x25d575['locale'];return{'type':'format','content':null==_0x5157b6?o(_0x3ed602,'*Remove\x20link*'):o(_0x3ed602,'*Set\x20link:*\x20%0','\x22'+_0x5157b6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4517=this['editor'],_0x5c1642=_0x5b4517['locale'];_0x5b4517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a77b=>{if('formatInline'!=_0x12a77b['type'])return;const {data:_0x117115}=_0x12a77b;if(_0x117115){if('link'==_0x117115['commandName']){const _0x4a77ba=_0x117115['commandParams'][0x0];return{'type':'format','content':o(_0x5c1642,'*Set\x20link:*\x20%0','\x22'+_0x4a77ba+'\x22')};}return'unlink'==_0x117115['commandName']?{'type':'format','content':o(_0x5c1642,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2be873{['afterInit'](){const _0x4b5867=this['editor'],_0x304b68=_0x4b5867['locale'];if(!_0x4b5867['plugins']['has']('LegacyListEditing'))return;const _0x4d1f67=_0x4b5867['plugins']['get']('TrackChangesEditing'),_0x466689=_0x4b5867['plugins']['has']('LegacyTodoListEditing');function _0x19202f(_0x2ea129){return()=>{const _0xb9f61e=_0x4b5867['model']['document']['selection'],_0x3d2345=_0x4b5867['commands']['get'](_0x2ea129);if(_0x3d2345['value'])return void _0x4b5867['execute']('paragraph',{});const _0x55fa66=_0x2ea129['slice'](0x0,-0x4),_0xfeecd6=function(_0x685184,_0x11d077,_0x26e763){let _0x394410=Array['from'](_0x685184)['filter'](_0x5a3f17=>function(_0xc4817d,_0x234aaf){return _0x234aaf['checkChild'](_0xc4817d['parent'],'listItem')&&!_0x234aaf['isObject'](_0xc4817d);}(_0x5a3f17,_0x26e763));_0x394410=_0x394410['filter'](_0x38267a=>!_0x38267a['is']('element','listItem')||_0x38267a['getAttribute']('listType')!=_0x11d077);const _0x1625ad=new Set();for(const _0x11dcbc of _0x394410)_0x11dcbc['is']('element','listItem')?_0x1625ad['add'](fe(_0x11dcbc)):_0x1625ad['add'](_0x11dcbc);return Array['from'](_0x1625ad);}(_0xb9f61e['getSelectedBlocks'](),_0x55fa66,_0x4b5867['model']['schema']);_0x4b5867['model']['change'](()=>{for(const _0x2587eb of _0xfeecd6)_0x4d1f67['markBlockFormat'](_0x2587eb,{'commandName':_0x2ea129,'commandParams':[{'forceValue':!_0x3d2345['value']}],'formatGroupId':'blockName'},ue(_0x2587eb));});};}function _0x3aaf9b(_0x5609d4){return()=>{const _0x138c0d=function(_0x8cd07a){let _0x3b86a7=Array['from'](_0x8cd07a);const _0x25fbec=_0x3b86a7['findIndex'](_0x5b876c=>'listItem'!=_0x5b876c['name']);return _0x25fbec>-0x1&&(_0x3b86a7=_0x3b86a7['slice'](0x0,_0x25fbec)),_0x3b86a7;}(_0x4b5867['model']['document']['selection']['getSelectedBlocks']()),_0x18c307=_0x4b5867['model']['createRange'](_0x4b5867['model']['createPositionAt'](_0x138c0d[0x0],'before'),_0x4b5867['model']['createPositionAt'](_0x138c0d[_0x138c0d['length']-0x1],'end'));_0x4b5867['model']['change'](()=>{_0x4d1f67['markBlockFormat'](_0x18c307,{'commandName':_0x5609d4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x49c9b2){const _0x40fb0c=new Set();for(const _0x39e4a3 of _0x49c9b2){let _0x3c5537=_0x39e4a3['nextSibling'];for(;_0x3c5537&&_0x3c5537['getAttribute']('listIndent')>_0x39e4a3['getAttribute']('listIndent');)_0x40fb0c['add'](_0x3c5537),_0x3c5537=_0x3c5537['nextSibling'];}return Array['from'](_0x40fb0c);}(_0x138c0d));});};}_0x4d1f67['enableCommand']('numberedList',_0x19202f('numberedList')),_0x4d1f67['enableCommand']('bulletedList',_0x19202f('bulletedList')),_0x466689&&_0x4d1f67['enableCommand']('todoList',_0x19202f('todoList')),_0x4d1f67['enableCommand']('indentList',_0x3aaf9b('indentList')),_0x4d1f67['enableCommand']('outdentList',_0x3aaf9b('outdentList')),_0x466689&&_0x4d1f67['enableCommand']('checkTodoList',()=>{const _0x3e5e0c=_0x4b5867['commands']['get']('checkTodoList'),_0x47ab40=Array['from'](_0x3e5e0c['_selectedElements']);_0x47ab40['filter'](_0x5e1a36=>_0x5e1a36['getAttribute']('todoListChecked')!=_0x3e5e0c['value']),_0x4b5867['model']['change'](()=>{for(const _0x2ac170 of _0x47ab40)_0x4d1f67['markBlockFormat'](_0x2ac170,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3e5e0c['value']}]});});}),_0x4d1f67['descriptionFactory']['registerElementLabel']('listItem',_0x339363=>o(_0x304b68,'ELEMENT_LIST_ITEM',_0x339363)),_0x4d1f67['descriptionFactory']['registerDescriptionCallback'](_0x4b250b=>{if('formatBlock'!=_0x4b250b['type']&&'formatInline'!=_0x4b250b['type'])return;const {data:_0x521912}=_0x4b250b;if(_0x521912){if('numberedList'==_0x521912['commandName']||'bulletedList'==_0x521912['commandName']||'todoList'==_0x521912['commandName'])switch(_0x521912['commandName']['replace']('List','')){case'bulleted':return _0x21a551(o(_0x304b68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21a551(o(_0x304b68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21a551(o(_0x304b68,'ELEMENT_TODO_LIST'));}if('indentList'==_0x521912['commandName'])return{'type':'format','content':o(_0x304b68,'*Indent:*\x20%0',o(_0x304b68,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x521912['commandName'])return{'type':'format','content':o(_0x304b68,'*Outdent:*\x20%0',o(_0x304b68,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x521912['commandName'])return _0x521912['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x304b68,'*Check\x20item*')}:{'type':'format','content':o(_0x304b68,'*Uncheck\x20item*')};}function _0x21a551(_0x51a02c){return{'type':'format','content':o(_0x304b68,'*Change\x20to:*\x20%0',_0x51a02c)};}});}}function fe(_0x18a12d){const _0x3c3ddf=_0x18a12d['getAttribute']('listIndent');if(0x0==_0x3c3ddf)return _0x18a12d;let _0x5a1462=_0x18a12d;for(;_0x18a12d['previousSibling']&&_0x18a12d['previousSibling']['is']('element','listItem');){const _0x56e352=_0x18a12d['previousSibling']['getAttribute']('listIndent');if(_0x56e352==_0x3c3ddf)_0x5a1462=_0x18a12d['previousSibling'];else{if(_0x56e352<_0x3c3ddf)break;}_0x18a12d=_0x18a12d['previousSibling'];}return _0x5a1462;}function ue(_0x5864e6){const _0x1f6b51=[];if(_0x5864e6['is']('element','listItem')&&_0x5864e6['getAttribute']('listIndent')>0x0){let _0x48a6a6=_0x5864e6['nextSibling'];for(;_0x48a6a6&&'listItem'==_0x48a6a6['name']&&_0x48a6a6['getAttribute']('listIndent')==_0x5864e6['getAttribute']('listIndent');)_0x1f6b51['push'](_0x48a6a6),_0x48a6a6=_0x48a6a6['nextSibling'];}return _0x1f6b51;}class W extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf99a4e=this['editor']['config']['get']('list.properties'),_0x1ef838=this['editor']['plugins']['get']('TrackChangesEditing');_0xf99a4e['styles']&&_0x1ef838['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf99a4e['reversed']&&_0x1ef838['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf99a4e['startIndex']&&_0x1ef838['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1ef838['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1bfce3,_0xd3a3e9={}){const _0xf44c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ba8bd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf44c1['markMultiRangeBlockFormat'](_0x1ba8bd,{'commandName':'listStyle','commandParams':[{'type':_0xd3a3e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4fa1cf,_0x47d84f={}){const _0xda3c45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d449=this['_getSuggestionBlocks'](_0x308302=>_0x308302['is']('element','listItem')&&'numbered'===_0x308302['getAttribute']('listType'));if(_0x44d449['length']<0x1)return;const _0xd54253=_0x44d449['map'](_0x438a5a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x438a5a,'before'),this['editor']['model']['createPositionAt'](_0x438a5a,0x0)));this['editor']['model']['change'](()=>{_0xda3c45['markMultiRangeBlockFormat'](_0xd54253,{'commandName':'listReversed','commandParams':[{'reversed':_0x47d84f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1a71b1,_0x5c14ab={}){const _0x2fbe41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d451=this['_getSuggestionBlocks'](_0x490413=>_0x490413['is']('element','listItem')&&'numbered'===_0x490413['getAttribute']('listType'));if(_0x39d451['length']<0x1)return;const _0xbd8832=_0x39d451['map'](_0x15511a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15511a,'before'),this['editor']['model']['createPositionAt'](_0x15511a,0x0)));this['editor']['model']['change'](()=>{_0x2fbe41['markMultiRangeBlockFormat'](_0xbd8832,{'commandName':'listStart','commandParams':[{'startIndex':_0x5c14ab['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56875f){if('formatBlock'!=_0x56875f['type']&&'formatInline'!=_0x56875f['type'])return;const _0x170dc5=this['editor']['locale'],{data:_0x424142}=_0x56875f;if(!_0x424142)return;let _0xfb64d3,_0x51a472;switch(_0x424142['commandName']){case'listStyle':_0xfb64d3='*Change\x20to:*\x20%0',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3,o(_0x170dc5,this['_getTranslationKeyForListStyle'](_0x424142['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfb64d3=_0x424142['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3)};break;case'listStart':_0xfb64d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3,_0x424142['commandParams'][0x0]['startIndex'])};}return _0x51a472;}['_getSuggestionBlocksForListStyle'](){const _0x1311c4=this['editor']['plugins']['get']('LegacyListUtils');let _0x31c15b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31c15b[0x0]?.['is']('element','listItem')&&_0x31c15b['unshift'](..._0x1311c4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31c15b[_0x31c15b['length']-0x1]?.['is']('element','listItem')&&_0x31c15b['push'](..._0x1311c4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31c15b=[...new Set(_0x31c15b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31c15b=_0x31c15b['filter'](_0x28da08=>_0x28da08['is']('element','listItem'))),_0x31c15b;}['_getSuggestionBlocks'](_0x2dc3b6){const _0x4f496a=this['editor']['plugins']['get']('LegacyListUtils');let _0xe64c9d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2dc3b6)['map'](_0x3ac0ca=>{const _0x492c3d=this['editor']['model']['createPositionAt'](_0x3ac0ca,0x0);return[..._0x4f496a['getSiblingNodes'](_0x492c3d,'backward'),..._0x4f496a['getSiblingNodes'](_0x492c3d,'forward')];})['flat']();return _0xe64c9d=[...new Set(_0xe64c9d)],_0xe64c9d;}['_getTranslationKeyForListStyle'](_0x489b6c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x489b6c)||'default')['toUpperCase']()+'_LIST_'+_0x489b6c['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2be873{['afterInit'](){const _0x2e43e2=this['editor'];if(!_0x2e43e2['plugins']['has']('MediaEmbedEditing'))return;const _0x284770=_0x2e43e2['plugins']['get']('TrackChangesEditing'),_0x14ea33=_0x2e43e2['locale'];_0x284770['enableCommand']('mediaEmbed'),_0x284770['descriptionFactory']['registerElementLabel']('media',_0x81ef6e=>o(_0x14ea33,'ELEMENT_MEDIA',_0x81ef6e)),_0x2e43e2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x45ac32,{writer:_0xb03df1,options:_0x130b92})=>{if(_0x130b92['showSuggestionHighlights'])return _0xb03df1['createEmptyElement']('div');},'converterPriority':'high'}),_0x2e43e2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x445e74,_0x13e53d,_0x4d78d5)=>{_0x4d78d5['options']['showSuggestionHighlights']&&_0x445e74['stop']();},{'priority':'high'});}}class mt extends _0x2be873{['afterInit'](){const _0x50afb7=this['editor'];_0x50afb7['plugins']['has']('MentionEditing')&&_0x50afb7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2be873{['afterInit'](){const _0x5d90d7=this['editor'];if(!_0x5d90d7['plugins']['has']('MergeFieldsEditing'))return;_0x5d90d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5d90d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2bccbf=_0x5d90d7['plugins']['get']('TrackChangesEditing'),_0x47d5c9=_0x5d90d7['locale'];_0x2bccbf['descriptionFactory']['registerElementLabel']('mergeField',_0x16563d=>o(_0x47d5c9,'ELEMENT_MERGE_FIELD',_0x16563d)),_0x2bccbf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5cbee1=>o(_0x47d5c9,'ELEMENT_MERGE_FIELD',_0x5cbee1)),_0x2bccbf['descriptionFactory']['registerDescriptionCallback'](_0x4d3452=>{if('insertion'!=_0x4d3452['type']&&'deletion'!=_0x4d3452['type'])return;const _0x208f4d=_0x4d3452['getContainedElement']();if(null==_0x208f4d)return;if(!_0x208f4d['is']('element','mergeField')&&!_0x208f4d['is']('element','mergeFieldBlock'))return;const _0x365928=_0x5d90d7['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x208f4d['getAttribute']('id'));return'insertion'==_0x4d3452['type']?{'type':'insertion','content':o(_0x47d5c9,'*Insert:*\x20%0','\x22'+_0x365928+'\x22\x20'+o(_0x47d5c9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x47d5c9,'*Remove:*\x20%0','\x22'+_0x365928+'\x22\x20'+o(_0x47d5c9,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2be873{['afterInit'](){const _0x1f0a50=this['editor'],_0x468e7b=_0x1f0a50['plugins']['get']('TrackChangesEditing');_0x1f0a50['plugins']['has']('MultiLevelList')&&(_0x468e7b['enableDefaultAttributesIntegration']('multiLevelList'),_0x468e7b['registerBlockAttribute']('listMarkerStyle'),_0x468e7b['descriptionFactory']['registerDescriptionCallback'](_0x33ae45=>this['handleDescriptions'](_0x33ae45)));}['handleDescriptions'](_0x2081cc){const _0x859aa7=this['editor']['locale'],{data:_0x42ed56}=_0x2081cc,_0x4c49ea={'type':'format','content':''};if(_0x42ed56&&'listMarkerStyle'==_0x42ed56['key']){if(!_0x42ed56['oldValue'])return{'type':'format','content':o(_0x859aa7,'*Set\x20format:*\x20%0',o(_0x859aa7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ed56['newValue']+')'};if(!_0x42ed56['newValue']){let _0x48bf55=_0x2081cc['head'];for(;_0x48bf55;){if(_0x48bf55['data']&&'listType'==_0x48bf55['data']['key']&&_0x48bf55['data']['newValue'])return _0x4c49ea;_0x48bf55=_0x48bf55['next'];}return{'type':'format','content':o(_0x859aa7,'*Remove\x20format:*\x20%0',o(_0x859aa7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ed56['oldValue']+')'};}}}}class kt extends _0x2be873{['afterInit'](){const _0x5bb492=this['editor'];if(!_0x5bb492['plugins']['has']('PageBreakEditing'))return;_0x5bb492['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d80ce=_0x5bb492['plugins']['get']('TrackChangesEditing'),_0x314ba8=_0x5bb492['locale'];_0x3d80ce['descriptionFactory']['registerElementLabel']('pageBreak',_0x2e6307=>o(_0x314ba8,'ELEMENT_PAGE_BREAK',_0x2e6307));}}class bt extends _0x2be873{['afterInit'](){const _0x1c1824=this['editor'];if(!_0x1c1824['plugins']['has']('Paragraph'))return;const _0x37966b=_0x1c1824['locale'],_0x19853f=_0x1c1824['plugins']['get']('TrackChangesEditing');_0x19853f['descriptionFactory']['registerElementLabel']('paragraph',_0x2f8d0b=>o(_0x37966b,'ELEMENT_PARAGRAPH',_0x2f8d0b)),_0x19853f['enableDefaultAttributesIntegration']('paragraph'),_0x19853f['enableCommand']('insertParagraph'),_0x1c1824['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1c1824),{'priority':'highest'}),_0x1c1824['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f19fb,_0x243aa5,_0x26037c)=>{_0x26037c['options']['showSuggestionHighlights']&&nr(_0x1c1824,{'showActiveMarker':!0x1})(_0x5f19fb,_0x243aa5,_0x26037c);},{'priority':'highest'});const _0x33635f=_0x19853f['descriptionFactory'];_0x33635f['registerDescriptionCallback'](_0x1404e4=>{if('insertion'!==_0x1404e4['type'])return;const {start:_0x365b73,end:_0x278d99}=_0x1404e4['getFirstRange']();if(!_0x365b73['isTouching'](_0x278d99)||!_0x365b73['nodeAfter'])return;const _0x337b9f=_0x1c1824['model']['schema'],_0xf66a02=_0x365b73['nodeAfter'];return _0x337b9f['isBlock'](_0xf66a02)&&!_0x337b9f['isLimit'](_0xf66a02)&&_0x337b9f['checkChild'](_0xf66a02,'$text')?{'type':'insertion','content':o(_0x37966b,'*Insert:*\x20%0',_0x33635f['getItemLabel'](_0xf66a02,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b0a3c=this['editor'],_0x5ef7a3=_0x9b0a3c['locale'];_0x9b0a3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f4c59=>{if('formatBlock'!=_0x4f4c59['type'])return;const {data:_0x3d9e86}=_0x4f4c59;return _0x3d9e86&&'paragraph'==_0x3d9e86['commandName']?{'type':'format','content':o(_0x5ef7a3,'*Change\x20to:*\x20%0',o(_0x5ef7a3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd33620,{showActiveMarker:_0x1a0c25=!0x0}={}){return(_0x19561c,_0x500fc4,_0x56b410)=>{const _0x36f260=_0xd33620['plugins']['get']('TrackChangesEditing'),_0x4b050f=_0x500fc4['markerRange']['start'],_0x18bf5c=_0x500fc4['markerRange']['end'],_0x5061c6=_0xd33620['model']['schema'];if(!_0x4b050f['isTouching'](_0x18bf5c)||!_0x4b050f['nodeAfter'])return;const _0x42db96=_0x4b050f['nodeAfter'];if(_0x5061c6['isBlock'](_0x42db96)&&!_0x5061c6['isLimit'](_0x42db96)&&_0x5061c6['checkChild'](_0x42db96,'$text')){if(!_0x56b410['consumable']['consume'](_0x500fc4['markerRange'],_0x19561c['name']))return;const {authorId:_0x5ec5be}=_0x36f260['_splitMarkerName'](_0x500fc4['markerName']),_0x5251ce=_0x56b410['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5ec5be}),_0x5dc376=_0x56b410['mapper']['toViewPosition'](_0x18bf5c);_0x1a0c25&&_0x36f260['activeMarkers']['includes'](_0x500fc4['markerName'])&&_0x56b410['writer']['addClass']('ck-suggestion-marker--active',_0x5251ce),_0x56b410['writer']['insert'](_0x5dc376,_0x5251ce),_0x56b410['mapper']['bindElementToMarker'](_0x5251ce,_0x500fc4['markerName']);}};}class wt extends _0x2be873{['afterInit'](){const _0x4dd9b0=this['editor'];if(!_0x4dd9b0['plugins']['has']('RemoveFormatEditing'))return;_0x4dd9b0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ac25=this['editor'];_0x17ac25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373b43=>{if('formatBlock'!=_0x373b43['type']&&'formatInline'!=_0x373b43['type'])return;const {data:_0x4ce1eb}=_0x373b43;return _0x4ce1eb&&'removeFormat'==_0x4ce1eb['commandName']?{'type':'format','content':o(_0x17ac25['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2be873{['afterInit'](){const _0x1da0d6=this['editor'];if(!_0x1da0d6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a68cb=_0x1da0d6['plugins']['get']('TrackChangesEditing');_0x2a68cb['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a68cb['enableCommand']('goToNextRestrictedEditingException');const _0x5ab66f=_0x1da0d6['plugins']['get']('RestrictedEditingModeEditing');_0x5ab66f['enableCommand']('trackChanges'),_0x5ab66f['enableCommand']('acceptSuggestion'),_0x5ab66f['enableCommand']('discardSuggestion'),_0x5ab66f['enableCommand']('acceptAllSuggestions'),_0x5ab66f['enableCommand']('discardAllSuggestions'),_0x5ab66f['enableCommand']('acceptSelectedSuggestions'),_0x5ab66f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2be873{static get['requires'](){return[_0x4c1f0c];}['init'](){const _0x659dad=this['editor'],_0x1a7479=_0x659dad['plugins']['get']('TrackChangesEditing');_0x1a7479['enableCommand']('shiftEnter'),_0x659dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x659dad),{'priority':'high'}),_0x659dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x659dad),{'priority':'high'}),_0x659dad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x470086,_0x3cba45,_0x91a94b)=>{_0x91a94b['options']['showSuggestionHighlights']&&ge(_0x659dad,{'showActiveMarker':!0x1})(_0x470086,_0x3cba45,_0x91a94b);}),_0x1a7479['descriptionFactory']['registerElementLabel']('softBreak',_0x505789=>o(_0x659dad['locale'],'ELEMENT_LINE_BREAK',_0x505789));}}function ge(_0x2430c5,{showActiveMarker:_0x561b66=!0x0}={}){return(_0xa2e621,_0x4ea9a9,_0x19fa76)=>{const _0x5281e8=_0x2430c5['plugins']['get']('TrackChangesEditing');if(!_0x19fa76['consumable']['test'](_0x4ea9a9['markerRange'],_0xa2e621['name']))return;const _0x183e0e=_0x2430c5['model'];for(const _0x56c38e of _0x4ea9a9['markerRange']['getItems']()){if(!_0x56c38e['is']('element','softBreak'))continue;const _0x245210='deletion'==_0x4ea9a9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3291be}=_0x5281e8['_splitMarkerName'](_0x4ea9a9['markerName']),_0x4c1e7e=_0x19fa76['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x245210,'data-author-id':_0x3291be}),_0x514f88=_0x19fa76['mapper']['toViewPosition'](_0x183e0e['createPositionBefore'](_0x56c38e));_0x561b66&&_0x5281e8['activeMarkers']['includes'](_0x4ea9a9['markerName'])&&_0x19fa76['writer']['addClass']('ck-suggestion-marker--active',_0x4c1e7e),_0x19fa76['writer']['insert'](_0x514f88,_0x4c1e7e),_0x19fa76['mapper']['bindElementToMarker'](_0x4c1e7e,_0x4ea9a9['markerName']);}};}class St extends _0x2be873{['afterInit'](){const _0x627b55=this['editor'],_0x36f9d5=_0x627b55['model'],_0x4fb556=_0x627b55['locale'];if(!_0x627b55['plugins']['has']('StandardEditingModeEditing'))return;const _0x59e31e=_0x627b55['plugins']['get']('TrackChangesEditing'),_0x57686a='restrictedEditingException',_0x4246de=_0x627b55['commands']['get'](_0x57686a);_0x59e31e['enableCommand'](_0x57686a,(_0x2729a2,_0x380f6d={})=>{const _0x13a66c=_0x36f9d5['document']['selection'];if(_0x13a66c['isCollapsed'])return void _0x2729a2(_0x380f6d);const _0x7c58ab=void 0x0!==_0x380f6d['forceValue']?_0x380f6d['forceValue']:!_0x4246de['value'];_0x36f9d5['change'](()=>{const _0x5a6dce=Array['from'](_0x13a66c['getRanges']());for(const _0x4206a4 of _0x5a6dce){const _0x4ce89c=_0x7c58ab?[_0x4206a4]:io(_0x57686a,_0x4206a4,_0x36f9d5);for(const _0x14d29a of _0x4ce89c)_0x59e31e['markInlineFormat'](_0x14d29a,{'commandName':_0x57686a,'commandParams':[{'forceValue':_0x7c58ab}]});}});}),_0x59e31e['descriptionFactory']['registerDescriptionCallback'](_0x451729=>{if('formatBlock'!=_0x451729['type']&&'formatInline'!=_0x451729['type'])return;const {data:_0x57c22f}=_0x451729;return _0x57c22f&&_0x57c22f['commandName']==_0x57686a?_0x57c22f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fb556,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fb556,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2be873{['afterInit'](){const _0xd57c78=this['editor'];if(!_0xd57c78['plugins']['has']('Style')||!_0xd57c78['plugins']['has']('DataSchema'))return;const _0x3d84aa=_0xd57c78['plugins']['get']('TrackChangesEditing'),_0x1f1716=_0xd57c78['locale'],_0x20e426=_0xd57c78['config']['get']('style')||{},_0x4db3dd=_0xd57c78['plugins']['get']('GeneralHtmlSupport'),_0x553673=_0xd57c78['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd57c78['plugins']['get']('DataSchema'),_0x20e426['definitions']);_0x3d84aa['enableDefaultAttributesIntegration']('style');const _0x591b70=new Set();for(const _0x10fded of _0x553673['block']){const _0x5bacfa=_0x4db3dd['getGhsAttributeNameForElement'](_0x10fded['element']);_0x591b70['add'](_0x5bacfa);}const _0x3238db=new Set();for(const _0x2831dd of _0x553673['inline']){const _0x402921=_0x4db3dd['getGhsAttributeNameForElement'](_0x2831dd['element']);_0x3238db['add'](_0x402921);for(const _0x23665b of _0x2831dd['ghsAttributes'])_0x3238db['add'](_0x23665b);}for(const _0x2296b3 of _0x591b70)_0x3d84aa['registerBlockAttribute'](_0x2296b3),_0x3d84aa['descriptionFactory']['registerAttributeLabel'](_0x2296b3,o(_0x1f1716,'FORMAT_STYLE'));for(const _0x1056bc of _0x3238db)_0x3d84aa['registerInlineAttribute'](_0x1056bc),_0x3d84aa['descriptionFactory']['registerAttributeLabel'](_0x1056bc,o(_0x1f1716,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450051=this['editor'],_0x2c56ab=_0x450051['locale'];_0x450051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ccdc=>{if('formatBlock'!=_0x30ccdc['type']&&'formatInline'!=_0x30ccdc['type'])return;const {data:_0x4d8ad5}=_0x30ccdc;return _0x4d8ad5&&'style'===_0x4d8ad5['commandName']?_0x4d8ad5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c56ab,'*Set\x20format:*\x20%0',_0x4d8ad5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2c56ab,'*Remove\x20format:*\x20%0',_0x4d8ad5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2be873{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c3333){super(_0x4c3333),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x285108=this['editor'],_0x24db77=_0x285108['model']['document']['selection'];if(!_0x285108['plugins']['has']('TableEditing'))return;const _0x3a6817=_0x285108['locale'],_0x5d617d=_0x285108['plugins']['get']('TrackChangesEditing'),_0x51bb5c=_0x285108['plugins']['get']('TableUtils');_0x5d617d['descriptionFactory']['registerElementLabel']('table',_0x47bc2d=>o(_0x3a6817,'ELEMENT_TABLE',_0x47bc2d)),this['_setupColumnsRowsFixing'](),_0x5d617d['enableCommand']('insertTable'),_0x5d617d['enableCommand']('selectTableRow'),_0x5d617d['enableCommand']('selectTableColumn');for(const _0xcd21e0 of['insertTableRowAbove','insertTableRowBelow']){const _0x23ca7c=_0x285108['commands']['get'](_0xcd21e0);_0x5d617d['enableCommand'](_0xcd21e0,_0x14bc4b=>{_0x285108['model']['change'](_0x131dab=>{_0x14bc4b();const _0x1f7a61='above'===_0x23ca7c['order'],_0x230d1f=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0x4ef701=_0x51bb5c['getRowIndexes'](_0x230d1f),_0x32f5ed=_0x1f7a61?_0x4ef701['first']-0x1:_0x4ef701['last']+0x1,_0x3d2c4b=_0x230d1f[0x0]['findAncestor']('table'),_0xea03ef=_0x51bb5c['createTableWalker'](_0x3d2c4b,{'startRow':_0x32f5ed,'endRow':_0x32f5ed}),_0xc62abf=Array['from'](_0xea03ef)['map'](_0x442401=>_0x131dab['createRangeOn'](_0x442401['cell']));_0x5d617d['markMultiRangeInsertion'](_0xc62abf,'tableRow');});});}for(const _0x452dcc of['insertTableColumnLeft','insertTableColumnRight']){const _0x141349=_0x285108['commands']['get'](_0x452dcc);_0x5d617d['enableCommand'](_0x452dcc,_0xb09f83=>{_0x285108['model']['change'](_0x1a6690=>{_0xb09f83();const _0x4cd591='left'===_0x141349['order'],_0x4e7e08=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0xba1a18=_0x51bb5c['getColumnIndexes'](_0x4e7e08),_0xfa4aeb=_0x4cd591?_0xba1a18['first']-0x1:_0xba1a18['last']+0x1,_0xe73493=_0x4e7e08[0x0]['findAncestor']('table'),_0x1e5fdc=_0x51bb5c['createTableWalker'](_0xe73493,{'startRow':0x0,'column':_0xfa4aeb,'includeAllSlots':!0x1}),_0x5015f9=Array['from'](_0x1e5fdc)['map'](_0x30bf13=>_0x1a6690['createRangeOn'](_0x30bf13['cell']));_0x5d617d['markMultiRangeInsertion'](_0x5015f9,'tableColumn');});});}for(const _0xb5f4bd of['removeTableRow','removeTableColumn']){const _0x2702cd=_0xb5f4bd['substr'](0xb),_0x96db2a=_0x2702cd['toLowerCase'](),_0x58a76d=_0x96db2a['substr'](0x0,0x3)+'span',_0x418a3c='table'+_0x2702cd,_0x26df0c='min'+_0x2702cd,_0x47a8b1='max'+_0x2702cd;_0x5d617d['enableCommand'](_0xb5f4bd,()=>{_0x285108['model']['change'](_0x3430dc=>{const _0x39eab8=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0x5c2c2e=_0x39eab8[0x0]['findAncestor']('table');let _0x819d8c;if('removeTableRow'==_0xb5f4bd){const _0x400107=_0x51bb5c['getRowIndexes'](_0x39eab8);_0x819d8c={'startRow':_0x400107['first'],'endRow':_0x400107['last'],'includeAllSlots':!0x0};}else{const _0x2f9a88=_0x51bb5c['getColumnIndexes'](_0x39eab8);_0x819d8c={'startColumn':_0x2f9a88['first'],'endColumn':_0x2f9a88['last'],'includeAllSlots':!0x0};}const _0x44b9fd=_0x51bb5c['createTableWalker'](_0x5c2c2e,_0x819d8c),_0x344c17=Array['from'](_0x44b9fd)['map'](({cell:_0x182b9f})=>_0x182b9f),_0x4d7dac=be(_0x344c17['filter'](_0x456160=>_0x456160['hasAttribute'](_0x58a76d))),_0x3d0a21=be(_0x344c17['filter'](_0x4efcce=>!_0x4efcce['hasAttribute'](_0x58a76d)))['map'](_0x30e411=>_0x3430dc['createRangeOn'](_0x30e411)),_0xbf0486=_0x5d617d['markMultiRangeDeletion'](_0x3d0a21,_0x418a3c);if(_0xbf0486&&('tableRow'==_0xbf0486['subType']||'tableColumn'==_0xbf0486['subType'])){const _0x323904=this['_getSuggestionCoords'](_0xbf0486);for(const _0x2e557e of _0x4d7dac){const _0x4a0b2d=_0x3430dc['createRangeOn'](_0x2e557e),_0xf00d1b=_0x51bb5c['getCellLocation'](_0x2e557e),_0x49a3fc=_0x2e557e['getAttribute'](_0x58a76d)-0x1,_0x441db1=_0x323904[_0x26df0c],_0x9b633=_0x323904[_0x47a8b1];_0x441db1<=_0xf00d1b[_0x96db2a]&&_0xf00d1b[_0x96db2a]+_0x49a3fc<=_0x9b633&&_0xbf0486['addRange'](_0x4a0b2d);}}});});}function _0x1bbb20(_0x46acbd){const _0x18ecfc=Array['from'](_0x24db77['getRanges']())['map'](_0x3c5c7b=>_0x3f00a1['fromRange'](_0x3c5c7b));_0x285108['model']['change'](_0x3df5e2=>{const _0x524171=_0x3df5e2['batch'];_0x46acbd=_0x46acbd['filter'](_0x5eb7a6=>'$graveyard'!=_0x5eb7a6['root']['rootName']),_0x3df5e2['setSelection'](_0x46acbd),_0x285108['commands']['get']('removeTableRow')['refresh'](),_0x285108['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x285108['model']['enqueueChange'](()=>{_0x285108['model']['enqueueChange'](_0x524171,_0x1b3a00=>{const _0x362ae9=_0x18ecfc['filter'](_0x13a79f=>'$graveyard'!=_0x13a79f['root']['rootName']);_0x362ae9['length']>0x0&&_0x1b3a00['setSelection'](_0x362ae9);for(const _0x3ede1d of _0x18ecfc)_0x3ede1d['detach']();});});});}function _0x37f8c7(_0x546175){_0x285108['model']['change'](_0xc5746e=>{const _0x41093b=Array['from'](_0x24db77['getRanges']())['map'](_0x38b558=>_0x3f00a1['fromRange'](_0x38b558)),_0x4c6aa1=[];for(const _0x48f0f8 of _0x546175)for(const _0x58c5f0 of _0x48f0f8['getItems']({'shallow':!0x0}))_0x4c6aa1['push'](_0x58c5f0);for(const _0x144948 of _0x4c6aa1)'$graveyard'!=_0x144948['root']['rootName']&&(_0xc5746e['setSelection'](_0xc5746e['createPositionAt'](_0x144948,0x0)),_0x285108['commands']['get']('removeTableColumn')['refresh'](),_0x285108['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1136a6=_0x41093b['filter'](_0x2d672a=>'$graveyard'!=_0x2d672a['root']['rootName']);_0x1136a6['length']>0x0&&_0xc5746e['setSelection'](_0x1136a6);for(const _0x101506 of _0x41093b)_0x101506['detach']();});}function _0x37b0ad(_0x2d079f,_0x27e01e){return _0x27e01e['every'](_0xbc9b8a=>_0x2d079f['some'](_0x4188bd=>_0x4188bd['end']['isEqual'](_0xbc9b8a['start'])||_0xbc9b8a['end']['isEqual'](_0x4188bd['start'])));}function _0x23734e(_0x24bf19,_0x538e36){return!_0x24bf19['some'](_0x1eeabd=>_0x538e36['some'](_0x105a03=>_0x1eeabd['isIntersecting'](_0x105a03)))&&_0x24bf19['some'](_0x22d723=>_0x538e36['some'](_0x30b428=>_0x22d723['end']['isTouching'](_0x30b428['start'])));}_0x285108['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x622290,_0x438821,_0x50bd18)=>{if(!_0x50bd18['options']['showSuggestionHighlights'])return;const _0x46f3b2=_0x438821['item'];if(!_0x46f3b2)return;const _0x312a11=_0x50bd18['mapper']['toViewElement'](_0x46f3b2);function _0x3febbf(_0xea43bc){return Array['isArray'](_0xea43bc)?_0xea43bc:[_0xea43bc];}_0x312a11&&'tableCell'===_0x46f3b2['name']&&_0x52e27(_0x312a11,_0x50bd18['writer'],(_0x133d93,_0x5e295f,_0x45be47)=>_0x45be47['addClass'](_0x3febbf(_0x5e295f['classes']),_0x133d93),(_0x5ecae5,_0x1c1c14,_0x173aa6)=>_0x173aa6['removeClass'](_0x3febbf(_0x1c1c14['classes']),_0x5ecae5));},{'priority':'highest'}),_0x5d617d['descriptionFactory']['registerDescriptionCallback'](_0x485ebe=>{if('insertion'!=_0x485ebe['type']&&'deletion'!=_0x485ebe['type'])return;const _0x32b5c9=_0x485ebe['getContainedElement']();if(null!=_0x32b5c9&&_0x32b5c9['is']('element','table')){if('insertion'==_0x485ebe['type']){const _0x30584b=_0x485ebe['getItems']()['filter'](_0x116364=>_0x116364['is']('$textProxy'))['map'](_0x5e2222=>_0x5e2222['data']);if(_0x30584b['length'])return{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30584b['join']('\x20')+'\x22'))};}if('deletion'==_0x485ebe['type']){const _0x99fa0=_0x485ebe['getItems']()['filter'](_0x41830a=>_0x41830a['is']('$textProxy'))['map'](_0x361e11=>_0x361e11['data']);if(_0x99fa0['length'])return{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x99fa0['join']('\x20')+'\x22'))};}}}),_0x5d617d['descriptionFactory']['registerDescriptionCallback'](_0x246df1=>{if('tableRow'==_0x246df1['subType']){const _0x4b21cd=_0x246df1['getItems']()['filter'](_0x473047=>_0x473047['is']('$textProxy'))['map'](_0x576449=>_0x576449['data']),_0x45af35=this['_getSuggestionCoords'](_0x246df1),_0x2820b6=_0x45af35['maxRow']-_0x45af35['minRow']+0x1;if('insertion'==_0x246df1['type'])return _0x4b21cd['length']?{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2820b6,'\x22'+_0x4b21cd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW',_0x2820b6))};if('deletion'==_0x246df1['type'])return _0x4b21cd['length']?{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2820b6,'\x22'+_0x4b21cd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW',_0x2820b6))};}if('tableColumn'==_0x246df1['subType']){const _0x285805=_0x246df1['getItems']()['filter'](_0x37f15d=>_0x37f15d['is']('$textProxy'))['map'](_0x15baf7=>_0x15baf7['data']),_0x186e30=this['_getSuggestionCoords'](_0x246df1),_0x34ee44=_0x186e30['maxColumn']-_0x186e30['minColumn']+0x1;if('insertion'==_0x246df1['type'])return _0x285805['length']?{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee44,'\x22'+_0x285805['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN',_0x34ee44))};if('deletion'==_0x246df1['type'])return _0x285805['length']?{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee44,'\x22'+_0x285805['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN',_0x34ee44))};}}),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1bbb20),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1bbb20),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x37f8c7),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x37f8c7),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37b0ad),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37b0ad),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x23734e),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x23734e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xe81e0d=this['editor'],_0xb52729=_0xe81e0d['model']['document']['selection'];return(_0x103f59,_0x2feecf)=>{_0xe81e0d['model']['change'](_0x568293=>{const {commandName:_0x548b95,commandParams:_0x548798}=_0x2feecf;let _0x1e1e1f=_0x103f59[0x0]['end']['nodeBefore'];_0x548798&&_0x548798[0x0]&&!0x1===_0x548798[0x0]['forceValue']&&(_0x1e1e1f=_0x103f59[0x0]['start']['nodeAfter']);const _0x22fd20=_0x568293['createRangeIn'](_0x1e1e1f);if('$graveyard'==_0x22fd20['root']['rootName'])return;const _0x20bb13=Array['from'](_0xb52729['getRanges']())['map'](_0x2a1df9=>_0x3f00a1['fromRange'](_0x2a1df9));_0x568293['setSelection'](_0x22fd20),_0xe81e0d['commands']['get'](_0x548b95)['refresh'](),_0x548798['push']({'forceDefaultExecution':!0x0}),_0xe81e0d['execute'](_0x548b95,..._0x548798);const _0x5adddc=_0x20bb13['filter'](_0x1be6b9=>'$graveyard'!=_0x1be6b9['root']['rootName']);_0x5adddc['length']>0x0&&_0x568293['setSelection'](_0x5adddc);for(const _0x49f91b of _0x20bb13)_0x49f91b['detach']();});};}['_getCoordsForCells'](_0x13e859){const _0x2756a9=this['editor']['plugins']['get']('TableUtils');let _0x125bd4=Number['MAX_SAFE_INTEGER'],_0x2af93d=Number['MIN_SAFE_INTEGER'],_0x2f8963=Number['MAX_SAFE_INTEGER'],_0x44ec64=Number['MIN_SAFE_INTEGER'];for(const _0x4ac7e7 of _0x13e859){if('$graveyard'==_0x4ac7e7['root']['rootName'])continue;const {row:_0x5d85c8,column:_0x2aa22e}=_0x2756a9['getCellLocation'](_0x4ac7e7),_0x40693f=_0x4ac7e7['hasAttribute']('rowspan')?_0x4ac7e7['getAttribute']('rowspan')-0x1:0x0,_0x252a76=_0x4ac7e7['hasAttribute']('colspan')?_0x4ac7e7['getAttribute']('colspan')-0x1:0x0;_0x125bd4=_0x5d85c8<_0x125bd4?_0x5d85c8:_0x125bd4,_0x2af93d=_0x5d85c8+_0x40693f>_0x2af93d?_0x5d85c8+_0x40693f:_0x2af93d,_0x2f8963=_0x2aa22e<_0x2f8963?_0x2aa22e:_0x2f8963,_0x44ec64=_0x2aa22e+_0x252a76>_0x44ec64?_0x2aa22e+_0x252a76:_0x44ec64;}return{'minRow':_0x125bd4,'maxRow':_0x2af93d,'minColumn':_0x2f8963,'maxColumn':_0x44ec64};}['_setupColumnsRowsFixing'](){const _0x160330=this['editor'],_0x386c38=_0x160330['plugins']['get']('TrackChangesEditing'),_0x154b33=_0x160330['plugins']['get']('TableUtils');_0x160330['model']['document']['on']('change:data',()=>{const _0x3a717f=Array['from'](_0x160330['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45e7bc,data:_0x2f7bd9}of _0x3a717f){const {group:_0x4aae10,id:_0x53b3ce,subType:_0x4edd1f}=_0x386c38['_splitMarkerName'](_0x45e7bc);if('suggestion'!=_0x4aae10)continue;if(null!=_0x2f7bd9['oldRange'])continue;const _0x37b23d=_0x386c38['getSuggestion'](_0x53b3ce);this['_tablePostFixingSubtypes']['includes'](_0x4edd1f)&&this['_tableSuggestions']['add'](_0x37b23d);}},{'priority':'low'});const _0x3db48d=(_0x28701b,_0x3ff145)=>{let _0x4ac6b3=!0x1;const _0x4db52e=_0x3ff145['createRangeOn'](_0x28701b),_0x2c382d=_0x28701b['findAncestor']('table'),_0x419b12=_0x154b33['getCellLocation'](_0x28701b);for(const _0x54c6f3 of this['_tableSuggestions']){const _0x24cb22=_0x54c6f3['subType'],_0x156b2c=_0x24cb22['startsWith']('tablePaste'),_0x193e57=_0x24cb22['substr'](_0x156b2c?0xa:0x5),_0x549ae7=_0x193e57['toLowerCase'](),_0x547bfc=_0x549ae7['substr'](0x0,0x3)+'span',_0x461dc8='min'+_0x193e57,_0xbd0a32='max'+_0x193e57;if(!_0x54c6f3['isInContent'])continue;if(_0x2c382d!=_0x54c6f3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54c6f3['isIntersectingWithRange'](_0x4db52e))continue;const _0x585950=_0x28701b['hasAttribute'](_0x547bfc)?_0x28701b['getAttribute'](_0x547bfc)-0x1:0x0,_0x22af8a=this['_getSuggestionCoords'](_0x54c6f3),_0x325315=_0x22af8a[_0x461dc8],_0x48946b=_0x22af8a[_0xbd0a32];_0x325315<=_0x419b12[_0x549ae7]&&_0x419b12[_0x549ae7]+_0x585950<=_0x48946b&&(_0x54c6f3['addRange'](_0x4db52e),_0x4ac6b3=!0x0);}return _0x4ac6b3;};_0x160330['model']['document']['registerPostFixer'](_0x227a6a=>{let _0x3f76c0=!0x1;for(const _0x5988e1 of _0x160330['model']['document']['differ']['getChanges']())if('insert'==_0x5988e1['type']){if('tableRow'==_0x5988e1['name']){for(const _0x23f268 of _0x5988e1['position']['nodeAfter']['getChildren']())_0x3f76c0=_0x3f76c0||_0x3db48d(_0x23f268,_0x227a6a);}else'tableCell'==_0x5988e1['name']&&(_0x3f76c0=_0x3f76c0||_0x3db48d(_0x5988e1['position']['nodeAfter'],_0x227a6a));}return _0x3f76c0;});}['_getSuggestionCoords'](_0x192eee){return this['_getCoordsForCells'](_0x192eee['getRanges']()['map'](_0x3a8b04=>_0x3a8b04['start']['nodeAfter']));}}function be(_0x245eb7){return Array['from'](new Set(_0x245eb7)['values']());}class vt extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x35fa14=this['editor'],_0xe1f913=_0x35fa14['model']['document']['selection'],_0x549885=_0x35fa14['locale'];if(!_0x35fa14['plugins']['has']('TableEditing'))return;const _0x20b763=_0x35fa14['plugins']['get']('TrackChangesEditing'),_0xdcec64=_0x35fa14['plugins']['get']('TableUtils'),_0x433850=_0x35fa14['plugins']['get'](It);_0x433850['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x20b763['enableCommand']('mergeTableCells',()=>{const _0x129ee6=_0xdcec64['getSelectionAffectedTableCells'](_0x35fa14['model']['document']['selection']);_0x35fa14['model']['change'](()=>{_0x20b763['markMultiRangeBlockFormat'](_0x129ee6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x35fa14['commands']['get']('mergeTableCells')['on']('execute',(_0x486fe8,_0x4e8d43)=>{_0x35fa14['commands']['get']('trackChanges')['value']&&(_0x4e8d43['length']>0x0&&_0x4e8d43[_0x4e8d43['length']-0x1]&&_0x4e8d43[_0x4e8d43['length']-0x1]['forceDefaultExecution']||_0x20b763['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x486fe8['stop']());},{'priority':'highest'});for(const _0x453629 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39f404=_0x35fa14['commands']['get'](_0x453629);_0x20b763['enableCommand'](_0x453629,()=>{const _0x509d18=_0x35fa14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ad691=>_0x4ad691['is']('element','tableCell')),_0x4f98a6=_0x39f404['value'];_0x35fa14['model']['change'](()=>{_0x20b763['markMultiRangeBlockFormat']([_0x509d18,_0x4f98a6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x102776 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5d000b=_0x35fa14['commands']['get'](_0x102776);_0x20b763['enableCommand'](_0x102776,()=>{const _0x291f8d=_0xdcec64['getSelectionAffectedTableCells'](_0x35fa14['model']['document']['selection'])[0x0],_0x20c133=_0x291f8d['findAncestor']('table'),{column:_0x405ec4,row:_0x33dc26}=_0xdcec64['getCellLocation'](_0x291f8d);let _0x434a81=[];if('horizontally'==_0x5d000b['direction']){const _0x1cdc5b=_0xdcec64['createTableWalker'](_0x20c133,{'startRow':_0x33dc26,'endRow':_0x33dc26,'includeAllSlots':!0x0});_0x434a81=Array['from'](_0x1cdc5b)['map'](_0x4b5c7c=>_0x4b5c7c['cell']);}else{const _0x17a9c6=_0xdcec64['createTableWalker'](_0x20c133,{'column':_0x405ec4,'includeAllSlots':!0x0});_0x434a81=Array['from'](_0x17a9c6)['map'](_0x436339=>_0x436339['cell']);}_0x35fa14['model']['change'](_0x5a7074=>{_0x20b763['markBlockFormat'](_0x5a7074['createRangeOn'](_0x291f8d),{'commandName':_0x102776,'commandParams':[]},_0x434a81,_0x102776);});});}_0x20b763['descriptionFactory']['registerDescriptionCallback'](_0xcc9d93=>{if('formatBlock'!=_0xcc9d93['type']&&'formatInline'!=_0xcc9d93['type'])return;const {data:_0x1e2b40}=_0xcc9d93;return _0x1e2b40&&'mergeTableCells'==_0x1e2b40['commandName']?{'type':'format','content':o(_0x549885,'*Merge\x20cells*')}:void 0x0;}),_0x20b763['descriptionFactory']['registerDescriptionCallback'](_0x42e050=>{if('formatBlock'!=_0x42e050['type']&&'formatInline'!=_0x42e050['type'])return;const {data:_0x2ff899}=_0x42e050;return _0x2ff899?'splitTableCellVertically'==_0x2ff899['commandName']?{'type':'format','content':o(_0x549885,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ff899['commandName']?{'type':'format','content':o(_0x549885,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x578df9=_0x433850['_acceptFormatSuggestionCallbackFactory']();for(const _0x11ff6a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11ff6a,'accept',_0x578df9);for(const _0x593cf9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x593cf9,'accept',_0x578df9);_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x273f7d=>{_0x35fa14['model']['change'](_0x268265=>{const _0x351a41=Array['from'](_0xe1f913['getRanges']())['map'](_0x52f07e=>_0x3f00a1['fromRange'](_0x52f07e));_0x268265['setSelection'](_0x273f7d),_0x35fa14['commands']['get']('mergeTableCells')['refresh'](),_0x35fa14['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x54cb31=_0x351a41['filter'](_0x40a192=>'$graveyard'!=_0x40a192['root']['rootName']);_0x54cb31['length']>0x0&&_0x268265['setSelection'](_0x54cb31);for(const _0x59f04d of _0x351a41)_0x59f04d['detach']();});});for(const _0x53eadd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19ce30=_0x35fa14['commands']['get'](_0x53eadd);_0x19ce30['on']('set:isEnabled',(_0x1f0f3c,_0x34048b,_0x405c6f)=>{if(_0x405c6f){const _0x5cd6e5=_0x35fa14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22820e=>_0x22820e['is']('element','tableCell'));this['_areMergableCells'](_0x19ce30['value'],_0x5cd6e5)||(_0x1f0f3c['return']=!0x1,_0x1f0f3c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x30689c=this['editor']['commands']['get']('mergeTableCells'),_0x28922a=this['editor']['plugins']['get']('TableUtils');if(!_0x30689c['isEnabled'])return!0x1;const _0x566aa7=_0x28922a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11fd5 of _0x566aa7)for(const _0x5ae60d of _0x566aa7)if(_0x11fd5!=_0x5ae60d&&!this['_areMergableCells'](_0x11fd5,_0x5ae60d))return!0x1;return!0x0;}['_areMergableCells'](_0x245f3d,_0x4224c5){const _0x1e8610=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10d3e6=this['editor']['model']['createRangeOn'](_0x245f3d),_0x30d8ed=this['editor']['model']['createRangeOn'](_0x4224c5),_0x975291=new Set(),_0x25e4f2=new Set();for(const _0x8d8c20 of _0x1e8610['getSuggestions']())if(('insertion'==_0x8d8c20['type']||'deletion'==_0x8d8c20['type']||'mergeTableCells'==_0x8d8c20['subType'])&&_0x8d8c20['isInContent']){for(const _0x946550 of _0x8d8c20['getRanges']())_0x946550['containsRange'](_0x10d3e6,!0x0)&&_0x975291['add'](_0x8d8c20['type']+':'+_0x8d8c20['author']['id']),_0x946550['containsRange'](_0x30d8ed,!0x0)&&_0x25e4f2['add'](_0x8d8c20['type']+':'+_0x8d8c20['author']['id']);}if(_0x975291['size']!=_0x25e4f2['size'])return!0x1;for(const _0x413eef of _0x975291)if(!_0x25e4f2['has'](_0x413eef))return!0x1;return!0x0;}}class Ct extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x591807=this['editor'];if(!_0x591807['plugins']['has']('TableEditing'))return;const _0x1c7813=_0x591807['locale'],_0x33160a=_0x591807['plugins']['get']('TrackChangesEditing');_0x33160a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33160a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33160a['registerBlockAttribute']('headingRows'),_0x33160a['registerBlockAttribute']('headingColumns'),_0x33160a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c7813,'FORMAT_HEADER_ROW')),_0x33160a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c7813,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f8ef2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x369a84=this['editor']['plugins']['get']('TableUtils'),_0x2ce712=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x51c830({showActiveMarker:_0x431243=!0x0,setDataAttribute:_0x50926a=!0x0}={}){return(_0x234f52,_0x5a624a,_0x5d0e08)=>{const {type:_0x490fe0,id:_0x2260f1}=_0x4f8ef2['_splitMarkerName'](_0x5a624a['markerName']),_0xdf2d4b=_0x4f8ef2['getSuggestion'](_0x2260f1),_0x1ea5bd=_0xdf2d4b['data'];if('formatBlock'!=_0xdf2d4b['type']||!_0x1ea5bd||'setTableColumnHeader'!=_0x1ea5bd['commandName'])return;if(_0x5a624a['item'])return void _0x234f52['stop']();if(!_0x5d0e08['consumable']['consume'](_0x5a624a['markerRange'],_0x234f52['name']))return;const _0x1fd130=_0x5a624a['markerRange']['start']['nodeAfter'],_0x1c0fcc=_0x5a624a['markerRange']['end']['nodeBefore'],_0x5da5f9=_0x1fd130['parent']['parent'],{column:_0x518dfd}=_0x369a84['getCellLocation'](_0x1fd130),{column:_0x53889d}=_0x369a84['getCellLocation'](_0x1c0fcc);for(let _0x3385cd=_0x518dfd;_0x3385cd<=_0x53889d;_0x3385cd++){const _0x2d164f=_0x369a84['createTableWalker'](_0x5da5f9,{'column':_0x3385cd,'includeAllSlots':!0x1});for(const _0x5d84be of _0x2d164f){const _0x3afd44=_0x5d84be['cell'],_0x249e5a=_0x5d0e08['mapper']['toViewElement'](_0x3afd44);_0x5d0e08['writer']['addClass']('ck-suggestion-marker-'+_0x490fe0,_0x249e5a),_0x50926a&&_0x5d0e08['writer']['setAttribute']('data-suggestion',_0x2260f1,_0x249e5a),_0x5d0e08['mapper']['bindElementToMarker'](_0x249e5a,_0x5a624a['markerName']),_0x431243&&(_0x4f8ef2['activeMarkers']['includes'](_0x5a624a['markerName'])?_0x5d0e08['writer']['addClass']('ck-suggestion-marker--active',_0x249e5a):_0x5d0e08['writer']['removeClass']('ck-suggestion-marker--active',_0x249e5a));}}};}_0x4f8ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ce712),_0x4f8ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ce712),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x51c830(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x506373,_0x5c080a,_0x21893b)=>{_0x21893b['options']['showSuggestionHighlights']&&_0x51c830({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x506373,_0x5c080a,_0x21893b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4648c4,_0x5ca089,_0x571b9b)=>{const {type:_0x34bca7,id:_0x2e52ec}=_0x4f8ef2['_splitMarkerName'](_0x5ca089['markerName']),_0x288e54=_0x4f8ef2['getSuggestion'](_0x2e52ec),_0x1ebb3d=_0x288e54['data'];if('formatBlock'!=_0x288e54['type']||!_0x1ebb3d||'setTableColumnHeader'!=_0x1ebb3d['commandName'])return;const _0x4d6afd=_0x571b9b['mapper']['markerNameToElements'](_0x5ca089['markerName']);if(_0x4d6afd){for(const _0x45b778 of _0x4d6afd)_0x571b9b['writer']['removeClass']('ck-suggestion-marker-'+_0x34bca7,_0x45b778),_0x571b9b['writer']['removeClass']('ck-suggestion-marker--active',_0x45b778),_0x571b9b['writer']['removeAttribute']('data-suggestion',_0x45b778),_0x571b9b['mapper']['unbindElementFromMarkerName'](_0x45b778,_0x5ca089['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2e2e=this['editor'],_0x5174e3=_0x1f2e2e['locale'];function _0x4734d0(_0x6b7cc0){return{'type':'format','content':o(_0x5174e3,'*Format:*\x20%0',_0x6b7cc0)};}_0x1f2e2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236da9=>{if('formatBlock'!=_0x236da9['type'])return;const {data:_0x581b05}=_0x236da9;if(_0x581b05){if('setTableRowHeader'==_0x581b05['commandName']){const _0xa9c63a=_0x581b05['commandParams'][0x0]['forceValue'];return _0x4734d0(o(_0x5174e3,_0xa9c63a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x581b05['commandName']){const _0x13b43a=_0x581b05['commandParams'][0x0]['forceValue'];return _0x4734d0(o(_0x5174e3,_0x13b43a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x490e8c=>[_0x490e8c,null]));class _t extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x4faba2=this['editor'];if(!_0x4faba2['plugins']['has']('TableClipboard'))return;const _0x22a85c=_0x4faba2['plugins']['get']('TrackChangesEditing'),_0x24cb5d=_0x4faba2['plugins']['get']('TableUtils'),_0x29252d=_0x4faba2['plugins']['get'](It),_0xeececf=_0x4faba2['plugins']['get']('TableClipboard');_0x29252d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4faba2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4faba2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x134ba4=null;_0x4faba2['model']['on']('insertContent',(_0x3f2ba6,_0xb154ae)=>{const [_0x341a73,_0x443fdd]=_0xb154ae,_0x10901c=_0xb154ae[_0xb154ae['length']-0x1];_0x10901c&&_0x10901c['forceDefaultExecution']||_0x22a85c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46d4a3,_0x29c33b,_0x8cac5b,_0x106ada,_0x2af9e6){if(_0x29c33b&&!_0x29c33b['is']('documentSelection'))return!0x1;const _0x247d6d=_0x2af9e6['getTableIfOnlyTableInContent'](_0x46d4a3,_0x8cac5b);if(!_0x247d6d||!Re(_0x247d6d,void 0x0,_0x106ada))return!0x1;const _0x1bb16c=_0x106ada['getSelectionAffectedTableCells'](_0x8cac5b['document']['selection']);if(!_0x1bb16c['length'])return!0x1;const _0x212880=_0x1bb16c[0x0]['findAncestor']('table'),_0x5b61f9=_0x106ada['getRowIndexes'](_0x1bb16c),_0x53bb75=_0x106ada['getColumnIndexes'](_0x1bb16c),_0x4e1c46={'startRow':_0x5b61f9['first'],'endRow':_0x5b61f9['last'],'startColumn':_0x53bb75['first'],'endColumn':_0x53bb75['last']};return 0x1==_0x1bb16c['length']&&(_0x4e1c46['endRow']+=_0x106ada['getRows'](_0x247d6d)-0x1,_0x4e1c46['endColumn']+=_0x106ada['getColumns'](_0x247d6d)-0x1),Re(_0x212880,_0x4e1c46,_0x106ada);}(_0x341a73,_0x443fdd,_0x4faba2['model'],_0x24cb5d,_0xeececf)&&(_0x3f2ba6['stop'](),_0x134ba4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4faba2['model']['change'](()=>{_0x4faba2['model']['insertContent'](_0xb154ae[0x0],_0xb154ae[0x1],_0xb154ae[0x2],{'forceDefaultExecution':!0x0});const _0x1144eb=_0x30a933(),{rowInsertionRanges:_0x2055bc,columnInsertionRanges:_0x38f234,insertionRanges:_0x5bc897,deletionRanges:_0x498784,cells:_0x4974fe}=_0x134ba4;_0x2055bc['length']&&_0x22a85c['markMultiRangeInsertion'](_0x2055bc,'tablePasteRow',{'tablePasteChainId':_0x1144eb}),_0x38f234['length']&&_0x22a85c['markMultiRangeInsertion'](_0x38f234,'tablePasteColumn',{'tablePasteChainId':_0x1144eb}),_0x5bc897['length']&&(_0x22a85c['markMultiRangeInsertion'](_0x5bc897,'tablePaste',{'tablePasteChainId':_0x1144eb,'skipNestingCheck':!0x0}),_0x5bc897['forEach'](_0x2d5faa=>_0x2d5faa['detach']?.())),_0x498784['length']&&(_0x22a85c['markMultiRangeDeletion'](_0x498784,'tablePaste',{'tablePasteChainId':_0x1144eb,'skipNestingCheck':!0x0}),_0x498784['forEach'](_0x58a668=>_0x58a668['detach']?.()));const _0x14dc41=_0x22a85c['markMultiRangeBlockFormat'](_0x4974fe['map'](({element:_0x359d53})=>_0x359d53),{'formatGroupId':_0x30a933()},[],'tablePasteCell',{'tablePasteChainId':_0x1144eb});if(_0x14dc41){const _0x5b2361=_0x14dc41['getMarkers'](),_0x2d2a6a=[];for(const {element:_0x106d56,attributes:_0x1a7741}of _0x4974fe){if(!_0x1a7741)continue;const _0x15464d=_0x4faba2['model']['createRangeOn'](_0x106d56),_0x44ebb6=_0x5b2361['find'](_0x27cfe9=>_0x27cfe9['getRange']()['isEqual'](_0x15464d));_0x44ebb6&&_0x2d2a6a['push']([_0x44ebb6['name'],_0x1a7741]);}_0x2d2a6a['length']&&_0x14dc41['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d2a6a));}_0x134ba4=null;}));},{'priority':_0x55e6df['high']+0xa}),_0x4faba2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x20ea8c,_0x42066c)=>{const [_0x880487,_0x7034ab,,_0x2d5e89]=_0x42066c;if(!_0x134ba4)return;_0x20ea8c['stop']();const _0xa2880c=_0x880487['cell'],_0x56581c=_0x7034ab,_0x5a192d=ke(_0xa2880c),_0x21809c=ke(_0x56581c);_0x20ea8c['return']=_0xa2880c;let _0x444128=null,_0x3cdc37=null;if(_0x21809c||_0x5a192d){if(_0x5a192d&&!_0x21809c){_0x2d5e89['remove'](_0xa2880c['getChild'](0x0));for(const _0x1852bd of Array['from'](_0x56581c['getChildren']()))_0x2d5e89['insert'](_0x1852bd,_0xa2880c,'end');const _0x540a32=_0x134ba4['rowInsertionIndexes']['includes'](_0x880487['row']),_0x4dc031=_0x134ba4['columnInsertionIndexes']['includes'](_0x880487['column']);_0x540a32||_0x4dc031||(_0x444128=_0x3f00a1['fromRange'](_0x2d5e89['createRangeIn'](_0xa2880c)));}else _0x21809c&&!_0x5a192d&&(_0x3cdc37=_0x2d5e89['createRangeIn'](_0xa2880c));}else{const _0x3398ab=_0x2d5e89['createElement']('tableCellSuggestion'),_0x2932ed=_0x2d5e89['createElement']('tableCellSuggestion');_0x2d5e89['wrap'](_0x2d5e89['createRangeIn'](_0xa2880c),_0x2932ed),_0x2d5e89['insert'](_0x3398ab,_0xa2880c,0x0);for(const _0x19caff of Array['from'](_0x56581c['getChildren']()))_0x2d5e89['insert'](_0x19caff,_0x3398ab,'end');_0x444128=_0x3f00a1['fromRange'](_0x2d5e89['createRangeOn'](_0x3398ab)),_0x3cdc37=_0x3f00a1['fromRange'](_0x2d5e89['createRangeOn'](_0x2932ed));}const _0x553431=Array['from'](_0x56581c['getAttributes']())['filter'](([_0x12ed5a])=>Pe['includes'](_0x12ed5a));_0x134ba4['cells']['push']({'element':_0xa2880c,'attributes':_0x553431['length']?Object['fromEntries'](_0x553431):null}),_0x444128&&_0x134ba4['insertionRanges']['push'](_0x444128),_0x3cdc37&&_0x134ba4['deletionRanges']['push'](_0x3cdc37);},{'priority':'high'}),_0x24cb5d['on']('insertColumns',(_0xd5da56,_0x8f98af)=>{const [_0x5f2714,_0x572b1b={}]=_0x8f98af;if(!_0x134ba4)return;const _0x303ed8=_0x572b1b['at']||0x0,_0x4ccc48=_0x572b1b['columns']||0x1;_0x134ba4['columnInsertionIndexes']=new Array(_0x4ccc48)['fill'](_0x303ed8)['map']((_0x4768c1,_0xab8e62)=>_0x4768c1+_0xab8e62);for(const {cell:_0x5c2518}of _0x24cb5d['createTableWalker'](_0x5f2714,{'startColumn':_0x303ed8,'endColumn':_0x303ed8+_0x4ccc48-0x1}))_0x134ba4['columnInsertionRanges']['push'](_0x4faba2['model']['createRangeOn'](_0x5c2518));},{'priority':'low'}),_0x24cb5d['on']('insertRows',(_0x3bc739,_0x176253)=>{const [_0x27277f,_0xaf619={}]=_0x176253;if(!_0x134ba4)return;const _0x250e50=_0xaf619['at']||0x0,_0x153277=_0xaf619['rows']||0x1;_0x134ba4['rowInsertionIndexes']=new Array(_0x153277)['fill'](_0x250e50)['map']((_0x10e8fc,_0x3547d4)=>_0x10e8fc+_0x3547d4);for(const {cell:_0xed6989}of _0x24cb5d['createTableWalker'](_0x27277f,{'startRow':_0x250e50,'endRow':_0x250e50+_0x153277-0x1}))_0x134ba4['rowInsertionRanges']['push'](_0x4faba2['model']['createRangeOn'](_0xed6989));},{'priority':'low'}),_0x22a85c['descriptionFactory']['registerDescriptionCallback'](_0x9a525c=>{if(_0x9a525c['subType']&&_0x9a525c['subType']['startsWith']('tablePaste'))return _0x9a525c['previous']?{}:{'type':'insertion','content':o(_0x4faba2['locale'],'*Replace\x20table\x20cells*')};});const _0x3d7faf=()=>!0x1;for(const _0x1400fb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion',_0x1400fb,'join',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('deletion',_0x1400fb,'join',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1400fb,'join',_0x3d7faf);_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xfc6fe1,_0x82d132,_0x3b64c6)=>{const _0x423e16=_0xfc6fe1['map'](_0x52c673=>_0x52c673['getContainedElement']())['filter'](_0xdc6156=>_0xdc6156),_0x2e0d42=new Map(_0x423e16['map'](_0x4165e9=>[_0x4165e9,null]));if(_0x134ba4){for(const {element:_0x5605f3,attributes:_0x31303e}of _0x134ba4['cells'])_0x31303e&&_0x2e0d42['set'](_0x5605f3,_0x31303e);}else{if(_0x3b64c6&&_0x3b64c6['markerAttributes'])for(const [_0x5049fa,_0x32766b]of Object['entries'](_0x3b64c6['markerAttributes'])){const _0x785423=_0x4faba2['model']['markers']['get'](_0x5049fa),_0x2fe4ba=_0x785423?_0x785423['getRange']()['getContainedElement']():null;_0x2fe4ba&&_0x2e0d42['set'](_0x2fe4ba,_0x32766b);}}_0x4faba2['model']['change'](_0x1b9231=>{for(const [_0x46e816,_0x5e1960]of _0x2e0d42)_0x1b9231['setAttributes']({...we,..._0x5e1960},_0x46e816);});});const _0x1fb9e7=(_0xf7cb4b,_0x3dbe65)=>{_0x22a85c['_suggestionFactory']['registerCustomCallback'](_0xf7cb4b,'tablePaste',_0x3dbe65,(_0x58256d,_0x351e0b,_0x4d071e)=>{_0x4faba2['model']['change'](_0x50a300=>{const _0x228340=[];for(const _0x14b1a1 of _0x58256d){const _0xc914d2=_0x14b1a1['start']['nodeAfter'];_0xc914d2['is']('element','tableCellSuggestion')&&_0x228340['push'](_0xc914d2);}_0x22a85c['_suggestionFactory']['getSuggestionCallback'](_0xf7cb4b,null,_0x3dbe65)(_0x58256d,_0x351e0b,_0x4d071e);for(const _0x3816c8 of _0x228340)'$graveyard'!=_0x3816c8['root']['rootName']&&_0x50a300['unwrap'](_0x3816c8);});});};_0x1fb9e7('insertion','accept'),_0x1fb9e7('insertion','discard'),_0x1fb9e7('deletion','accept'),_0x1fb9e7('deletion','discard'),_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55ce6d=>{const _0x20c37a=_0x55ce6d['map'](_0x390a5e=>_0x390a5e['getContainedElement']()),_0x2ad610=_0x20c37a[0x0]['findAncestor']('table'),{minRow:_0x5c0ad0,maxRow:_0x311335}=_0x29252d['_getCoordsForCells'](_0x20c37a);_0x24cb5d['removeRows'](_0x2ad610,{'at':_0x5c0ad0,'rows':_0x311335-_0x5c0ad0+0x1});}),_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x45ffb8=>{const _0x4b250f=_0x45ffb8['map'](_0x297a60=>_0x297a60['getContainedElement']()),_0x2f2e57=_0x4b250f[0x0]['findAncestor']('table'),{minColumn:_0x9ed2da,maxColumn:_0x5f306e}=_0x29252d['_getCoordsForCells'](_0x4b250f);_0x24cb5d['removeColumns'](_0x2f2e57,{'at':_0x9ed2da,'columns':_0x5f306e-_0x9ed2da+0x1});});const _0x38e4ea=(_0x4b7f29,_0x17d49f)=>{if(!_0x17d49f['subType']||!_0x17d49f['subType']['startsWith']('tablePaste'))return;const _0x41e441=_0x17d49f['attributes']['tablePasteChainId'],_0x4b92bc=_0x22a85c['getSuggestions']()['filter'](_0x592899=>_0x592899['isInContent']&&_0x592899['attributes']&&_0x592899['attributes']['tablePasteChainId']==_0x41e441);_0x4b92bc['length']&&_0x17d49f['getAllAdjacentSuggestions']()['length']!=_0x4b92bc['length']&&_0x4b92bc['reduce']((_0x52c628,_0x56428c)=>(_0x52c628['next']=_0x56428c,_0x56428c['previous']=_0x52c628,_0x56428c));};function _0x574eec(_0x447bc4,_0x5035c4=!0x0){const {id:_0x281337,authorId:_0x27a4f9}=_0x22a85c['_splitMarkerName'](_0x447bc4['markerName']),_0x20da65=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20832b=_0x22a85c['activeMarkers']['includes'](_0x447bc4['markerName']);return _0x20832b&&_0x20da65['push']('ck-suggestion-marker--active'),{'classes':_0x20da65,'attributes':{'data-suggestion':_0x281337,'data-author-id':_0x27a4f9},'priority':_0x20832b&&_0x5035c4?0xbc2:0xbb8};}_0x22a85c['on']('suggestionLoaded',_0x38e4ea,{'priority':'high'}),_0x22a85c['on']('suggestionUnloaded',_0x38e4ea,{'priority':'high'}),_0x4faba2['model']['document']['registerPostFixer'](()=>{let _0x43b259=!0x1;const _0x2515c5=Array['from'](_0x4faba2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb49faa,data:_0x407d74}of _0x2515c5){const {group:_0x466544,type:_0x49e1e2,id:_0x16c2eb}=_0x22a85c['_splitMarkerName'](_0xb49faa);if('suggestion'!=_0x466544||'deletion'!=_0x49e1e2||_0x407d74['oldRange'])continue;if(!_0x22a85c['hasSuggestion'](_0x16c2eb))continue;const _0x5a80bd=_0x22a85c['getSuggestion'](_0x16c2eb)['getRanges'](),_0x2bc5cd=_0x4faba2['plugins']['get']('Users')['me'];for(const _0x17eaec of _0x22a85c['getSuggestions']()){if(!_0x17eaec['isInContent']||_0x17eaec['author']!=_0x2bc5cd)continue;if('formatBlock'!=_0x17eaec['type']||'tablePasteCell'!=_0x17eaec['subType'])continue;if(_0x17eaec['getRanges']()['every'](_0x50e229=>_0x5a80bd['some'](_0x4d0b58=>_0x4d0b58['containsRange'](_0x50e229,!0x0)))){for(const _0x41a376 of _0x17eaec['getAllAdjacentSuggestions']())_0x41a376['isInContent']&&(_0x41a376['discard'](),_0x43b259=!0x0);}}}return _0x43b259;}),_0x4faba2['model']['document']['registerPostFixer'](_0x473278=>{const _0x22c3e2=_0x4faba2['commands']['get']('redo');if(!_0x22c3e2||!_0x22c3e2['_createdBatches']['has'](_0x473278['batch']))return!0x1;let _0x488717=!0x1;const _0x299fa9=_0x4faba2['plugins']['get']('Users')['me'],_0x3367c5=_0x4faba2['model']['document']['differ']['getChanges'](),_0x917086=Array['from'](_0x4faba2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x42f84f,data:_0x3103ec})=>{const {group:_0xb4962,subType:_0x29d8cd,authorId:_0x7fddbe}=_0x22a85c['_splitMarkerName'](_0x42f84f);return'suggestion'==_0xb4962&&'tablePaste'==_0x29d8cd&&_0x7fddbe==_0x299fa9['id']&&!_0x3103ec['oldRange'];});for(const _0x1c8cf1 of _0x3367c5){if('insert'!=_0x1c8cf1['type']||'tableCellSuggestion'!=_0x1c8cf1['name']||0x1!=_0x1c8cf1['length'])continue;const _0x1f5514=_0x473278['createRange'](_0x1c8cf1['position'],_0x1c8cf1['position']['getShiftedBy'](0x1));if(!_0x917086['find'](({data:_0x325d7e})=>_0x325d7e['newRange']['isEqual'](_0x1f5514))){for(const {name:_0x3c59ed,data:_0x50d592}of _0x917086)if(_0x1f5514['containsRange'](_0x50d592['newRange'])){_0x473278['updateMarker'](_0x3c59ed,{'range':_0x1f5514}),_0x488717=!0x0;break;}}}return _0x488717;}),_0x4faba2['model']['document']['registerPostFixer'](_0x7fbfb8=>{let _0x37358c=!0x1;const _0xf1cc5b=_0x4faba2['plugins']['get']('Users')['me'],_0x2a5b59=_0x22a85c['getSuggestions']()['filter'](_0x22aa0d=>_0x22aa0d['isInContent']&&_0x22aa0d['author']==_0xf1cc5b),_0x1db839=new Set(),_0x3a635c=new Set();for(const _0x56a7a1 of _0x2a5b59)if('tablePaste'==_0x56a7a1['subType'])for(const _0x532f9a of _0x56a7a1['getMarkers']()){const _0x5306b6=_0x532f9a['getRange']()['getContainedElement']();if(_0x5306b6){if(_0x5306b6['is']('element','tableCellSuggestion')&&ke(_0x5306b6)){_0x56a7a1['removeMarker'](_0x532f9a['name']),_0x1db839['add'](_0x5306b6),_0x37358c=!0x0;const _0x308cd3=_0x5306b6['nextSibling'],_0x43e3d7=_0x5306b6['previousSibling'],_0x57c498=_0x308cd3&&_0x308cd3['is']('element','tableCellSuggestion'),_0x521ebc=_0x43e3d7&&_0x43e3d7['is']('element','tableCellSuggestion');_0x57c498&&!_0x1db839['has'](_0x308cd3)&&_0x3a635c['add'](_0x308cd3),_0x521ebc&&!_0x1db839['has'](_0x43e3d7)&&_0x3a635c['add'](_0x43e3d7);}else _0x5306b6['is']('element','paragraph')&&_0x5306b6['isEmpty']&&(_0x56a7a1['removeMarker'](_0x532f9a['name']),_0x37358c=!0x0);}}else{if('tablePasteCell'==_0x56a7a1['subType']){if(!_0x56a7a1['attributes']||!_0x56a7a1['attributes']['tablePasteChainId'])continue;const _0x3acf45=_0x56a7a1['attributes']['markerAttributes'];if(_0x3acf45&&Object['keys'](_0x3acf45)['length'])continue;const _0x51fc1a=_0x56a7a1['attributes']['tablePasteChainId'];let _0x55e4a9=!0x0,_0x542750=!0x0;for(const _0x3126e2 of _0x2a5b59)if(_0x3126e2['subType']&&_0x3126e2['subType']['startsWith']('tablePaste')){if(!_0x3126e2['attributes']['tablePasteChainId']){_0x542750=!0x1;break;}if(_0x3126e2['id']!=_0x56a7a1['id']&&_0x3126e2['attributes']['tablePasteChainId']==_0x51fc1a){_0x55e4a9=!0x1;break;}}_0x542750&&_0x55e4a9&&(_0x56a7a1['removeMarkers'](),_0x37358c=!0x0);}}for(const _0x27d830 of _0x1db839)_0x7fbfb8['remove'](_0x27d830);for(const _0x1f9d12 of _0x3a635c)_0x7fbfb8['unwrap'](_0x1f9d12);return _0x37358c;}),_0x4faba2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5f537a=>_0x574eec(_0x5f537a),'converterPriority':'high'}),_0x4faba2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x120115,_0x39cf3d)=>_0x39cf3d['options']['showSuggestionHighlights']?_0x574eec(_0x120115,!0x1):null,'converterPriority':'high'});const _0x198574=_0x4faba2['editing']['view'];this['listenTo'](_0x198574['document'],'clipboardOutput',(_0x3f01fd,_0x2f89cb)=>{const _0x121027=[];for(const _0x18290 of _0x198574['createRangeIn'](_0x2f89cb['content'])['getItems']())_0x18290['is']('element','suggestion-td')&&_0x121027['push'](_0x18290);_0x198574['change'](_0x3ca658=>{for(const _0x403a44 of _0x121027)_0x3ca658['move'](_0x3ca658['createRangeIn'](_0x403a44),_0x3ca658['createPositionBefore'](_0x403a44)),_0x3ca658['remove'](_0x403a44);});});}}function ke(_0x400cbc){if(_0x400cbc['isEmpty'])return!0x0;const _0x2bf991=_0x400cbc['getChild'](0x0);return _0x2bf991['is']('element','paragraph')&&_0x2bf991['isEmpty'];}function Re(_0x295733,_0x5c6118={},_0x2b5a14){for(const {isAnchor:_0x40b3b5,cellHeight:_0x2b4c4a,cellWidth:_0x53327e}of _0x2b5a14['createTableWalker'](_0x295733,{'includeAllSlots':!0x0,..._0x5c6118}))if(!_0x40b3b5||0x1!=_0x2b4c4a||0x1!=_0x53327e)return!0x1;return!0x0;}class Nt extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41ecba=this['editor']['plugins']['get']('TrackChangesEditing');_0x41ecba['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41ecba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41ecba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ecba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41ecba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41ecba['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2a4353,_0x15da52){const _0x2be0fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b83c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6e959e=_0x15da52['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4e5efd=_0x37b83c['getColumnGroupElement'](_0x6e959e);let _0x4d62da=_0x4e5efd?_0x37b83c['getTableColumnsWidths'](_0x4e5efd):null,_0x116fd9=_0x6e959e['getAttribute']('tableWidth')||null;const _0xa4f0dc=_0x15da52['tableWidth']||_0x116fd9,_0x3f5f3d=_0x15da52['columnWidths']||_0x4d62da,_0x1db3e8=this['editor']['plugins']['get']('Users')['me'];for(const _0x353770 of _0x2be0fb['getSuggestions']()){const _0x26ac83=_0x353770['getContainedElement']();if('resizeTable'===_0x353770['subType']&&_0x26ac83===_0x6e959e){_0x353770['author']!==_0x1db3e8&&_0x353770['discard']();const _0x33b801=_0x353770['data']['commandParams'];_0x116fd9=_0x33b801[0x0]['tableWidth'],_0x4d62da=_0x33b801[0x0]['columnWidths'];break;}}_0x2a4353({'table':_0x6e959e,'tableWidth':_0xa4f0dc,'columnWidths':_0x3f5f3d}),_0x2be0fb['markBlockFormat'](_0x6e959e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x116fd9,'columnWidths':_0x4d62da}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa6d37e){if('formatBlock'!=_0xa6d37e['type']&&'formatInline'!=_0xa6d37e['type'])return;const {data:_0x1a400c}=_0xa6d37e;if(_0x1a400c&&'resizeTable'===_0x1a400c['formatGroupId']){const _0x54c7e7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x54c7e7)};}}}class Dt extends _0x2be873{['afterInit'](){const _0x2530bb=this['editor'];_0x2530bb['plugins']['has']('Template')&&_0x2530bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2be873{['afterInit'](){const _0x53b200=this['editor'];if(!_0x53b200['commands']['get']('insertTableOfContents'))return;_0x53b200['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc6958b=_0x53b200['plugins']['get']('TrackChangesEditing'),_0x4982bc=_0x53b200['locale'];_0xc6958b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x8fbc2f=>o(_0x4982bc,'ELEMENT_TABLE_OF_CONTENTS',_0x8fbc2f));}}class $t extends _0x2be873{['afterInit'](){const _0x541579=this['editor'];if(!_0x541579['plugins']['has']('Title'))return;const _0xa323af=_0x541579['plugins']['get']('TrackChangesEditing');_0xa323af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x541579['locale'],'ELEMENT_TITLE')),_0x541579['model']['document']['registerPostFixer'](_0x4e79d7=>{let _0x45c3cb=!0x1;const _0x12352d=Array['from'](_0x541579['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x329a99,data:_0x42d89b}of _0x12352d){const {group:_0x1eb62f}=_0xa323af['_splitMarkerName'](_0x329a99);if('suggestion'!==_0x1eb62f||!_0x42d89b['newRange'])continue;const _0x4efdc1=_0x42d89b['newRange'],_0x3e33b7=_0x4efdc1['end']['nodeBefore'];if(!_0x3e33b7||!_0x3e33b7['is']('element','title-content'))continue;if(!_0x4efdc1['start']['isTouching'](_0x4efdc1['end']))continue;const _0x5f1c97=_0x541579['model']['schema']['getNearestSelectionRange'](_0x4efdc1['end'],'forward');if(_0x5f1c97&&_0x5f1c97['isCollapsed']){const _0x47b424=_0x4e79d7['createRange'](_0x4efdc1['start'],_0x5f1c97['start']);_0x47b424['isEqual'](_0x4efdc1)||(_0x4e79d7['updateMarker'](_0x329a99,{'range':_0x47b424}),_0x45c3cb=!0x0);}_0x45c3cb||(_0x4e79d7['removeMarker'](_0x329a99),_0x45c3cb=!0x0);}return _0x45c3cb;});}}class Bt extends _0x2be873{['afterInit'](){const _0x34ae0a=this['editor'],_0x240262=_0x34ae0a['plugins']['get']('TrackChangesEditing');_0x34ae0a['plugins']['has']('UndoEditing')&&(_0x240262['enableCommand']('undo'),_0x240262['enableCommand']('redo'));}}class xt extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x60deca=this['editor'];if(!_0x60deca['plugins']['has']('TableCaptionEditing'))return;_0x60deca['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2be873{['tableProperties'];['tableCellProperties'];constructor(_0xab463){super(_0xab463),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 _0x3c0b86=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1baa93 of this['tableProperties'])_0x3c0b86['enableCommand'](_0x1baa93,(_0x19a177,_0x1eab7a)=>{const _0x442975=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1baa93,[_0x442975],this['tableProperties'],'tableProperties',_0x19a177,_0x1eab7a);});_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c0b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x542e82,_0x355ddd)=>this['handleDiscardAction'](this['tableProperties'],_0x542e82,_0x355ddd)),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x410656 of this['tableCellProperties'])_0x3c0b86['enableCommand'](_0x410656,(_0x4e3105,_0x468221)=>{const _0x1dae7b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x410656,_0x1dae7b,this['tableCellProperties'],'tableCellProperties',_0x4e3105,_0x468221);});_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c0b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45c6d7,_0x4ea63c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45c6d7,_0x4ea63c)),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c0b86['descriptionFactory']['registerDescriptionCallback'](_0x445920=>this['handleSuggestionDescription'](_0x445920));}['_handlePropertyChange'](_0x2d00c7,_0x5b1285,_0x51008a,_0x1d63e6,_0x3650e7,_0xc69ede){const _0x548cf5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc69ede['batch'],()=>{for(const _0x235c35 of _0x5b1285){if(this['_getSuggestion'](_0x235c35,_0x1d63e6))_0x3650e7(_0xc69ede);else{const _0x490179={};for(const _0x420298 of _0x51008a){const _0x6bb3e=_0x235c35['getAttribute'](_0x420298);void 0x0!==_0x6bb3e&&(_0x490179[_0x420298]=_0x6bb3e);}_0x3650e7(_0xc69ede),_0x548cf5['markBlockFormat'](_0x235c35,{'commandParams':[_0x490179]},[],_0x1d63e6);}}});}['handleDiscardAction'](_0x1eb96a,_0x1e3ddc,_0x72758f){const _0x4eb560=_0x1e3ddc[0x0]['start']['nodeAfter'],_0x1b51f3=_0x72758f['commandParams'][0x0];this['editor']['model']['change'](_0x4d6ad7=>{for(const _0x44e642 of _0x1eb96a)void 0x0!==_0x1b51f3[_0x44e642]?_0x4d6ad7['setAttribute'](_0x44e642,_0x1b51f3[_0x44e642],_0x4eb560):_0x4d6ad7['removeAttribute'](_0x44e642,_0x4eb560);});}['handleSuggestionDescription'](_0x1e0cb2){if(_0x1e0cb2['data'])switch(_0x1e0cb2['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'](_0x17d7ba,_0x870d26){const _0x3f8591=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x325eea of _0x3f8591['getSuggestions']({'skipNotAttached':!0x0})){const _0x20de14=_0x325eea['getContainedElement']();if(_0x325eea['subType']===_0x870d26&&_0x20de14===_0x17d7ba)return _0x325eea;}return null;}}const m='$elementName';class p extends _0x2be873{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x10e3b2,_0x1b3abf,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3e2940){function _0x32ae33(_0xf399a){return _0xf399a['map'](_0x559b17=>String['fromCharCode'](_0x559b17))['join']('');}super(_0x3e2940),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4695e2,_0x3187cb,_0x1938a0,_0x202047)=>{this['_model']['change'](()=>{for(const _0x331ffe of[..._0x202047,..._0x1938a0])this['_model']['markers']['has'](_0x331ffe)&&_0x3e2940['editing']['reconvertMarker'](_0x331ffe);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3e2940['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(),_0x3e2940['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3e2940['config']['get']('trackChanges.trackFormatChanges'),_0x3e2940['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3e2940['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3e2940,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x32ae33([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x32ae33([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x32]);}['init'](){const _0x59435a=this['editor'],_0x848bc3=(_0x4d469a,_0x3b0496)=>{if('attribute'!=_0x4d469a)return'ck-suggestion-marker-'+_0x4d469a;const _0x1c973e=_0x3b0496['split']('|')[0x0];return this['_isBlockAttribute'](_0x1c973e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x59435a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f4ba1=>{const {id:_0x5ea544,authorId:_0x58df76,type:_0x71ff31,subType:_0x23e26c}=this['_splitMarkerName'](_0x1f4ba1['markerName']),_0x49f652=['ck-suggestion-marker',_0x848bc3(_0x71ff31,_0x23e26c)];let _0x34538a=0xbb8;return this['activeMarkers']['includes'](_0x1f4ba1['markerName'])&&(_0x49f652['push']('ck-suggestion-marker--active'),_0x34538a=0xbc2),'deletion'==_0x71ff31&&(_0x34538a+=0x5),{'classes':_0x49f652,'attributes':{'data-suggestion':_0x5ea544,'data-author-id':_0x58df76},'priority':_0x34538a};}}),_0x59435a['conversion']['for']('dataDowncast')['add'](_0x2949e2=>{_0x2949e2['on']('addMarker:suggestion',(_0x46df8d,_0x5cf658,_0x27655f)=>{if(!_0x27655f['options']['showSuggestionHighlights'])return;const _0xc5aea=_0x5cf658['item'];if(!_0xc5aea)return;const _0xa706a5=_0x27655f['mapper']['toViewElement'](_0xc5aea);_0x59435a['model']['schema']['isObject'](_0xc5aea)&&_0xa706a5&&!_0xa706a5['getCustomProperty']('widget')&&_0xa706a5['is']('containerElement')&&_0x4e21a2(_0xa706a5,_0x27655f['writer']);},{'priority':'high'});}),_0x59435a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x289959,_0x16efd7)=>{if(!_0x16efd7['options']['showSuggestionHighlights'])return null;const {type:_0x237ce4,subType:_0x26540d}=this['_splitMarkerName'](_0x289959['markerName']);return{'classes':['ck-suggestion-marker',_0x848bc3(_0x237ce4,_0x26540d)],'priority':0xbb8};}});const _0x404145=({showActiveMarkers:_0x42fa9c=!0x0,isAttributeSuggestion:_0x30c4f8=!0x1}={})=>(_0x4cfd74,_0x21f138,_0x47b46f)=>{if(!_0x21f138['item'])return;const {id:_0x2cee0d,authorId:_0x4534b7}=this['_splitMarkerName'](_0x21f138['markerName']);if(_0x30c4f8){const _0x371a5c=this['_suggestions']['get'](_0x2cee0d),_0x5c7153=this['_getAttributeKey'](_0x371a5c);if(!this['_isBlockAttribute'](_0x5c7153))return;}if(_0x21f138['item']['is']('selection'))return void _0x47b46f['consumable']['consume'](_0x21f138['item'],_0x4cfd74['name']);const _0x23d845=_0x47b46f['mapper']['toViewElement'](_0x21f138['item']);if(_0x21f138['item']['is']('element')&&_0x59435a['model']['schema']['isBlock'](_0x21f138['item'])&&!_0x23d845['getCustomProperty']('addHighlight')){_0x47b46f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x23d845),_0x47b46f['writer']['setAttribute']('data-suggestion',_0x2cee0d,_0x23d845),_0x47b46f['writer']['setAttribute']('data-author-id',_0x4534b7,_0x23d845),_0x47b46f['mapper']['bindElementToMarker'](_0x23d845,_0x21f138['markerName']),_0x42fa9c&&(this['activeMarkers']['includes'](_0x21f138['markerName'])?_0x47b46f['writer']['addClass']('ck-suggestion-marker--active',_0x23d845):_0x47b46f['writer']['removeClass']('ck-suggestion-marker--active',_0x23d845));for(const _0x21a753 of _0x59435a['model']['createRangeIn'](_0x21f138['item'])['getItems']())_0x47b46f['consumable']['consume'](_0x21a753,_0x4cfd74['name']);_0x47b46f['consumable']['consume'](_0x21f138['item'],_0x4cfd74['name']);}};_0x59435a['conversion']['for']('dataDowncast')['add'](_0x1d5752=>{_0x1d5752['on']('addMarker:suggestion:formatBlock',(_0xf421e9,_0x4f28ec,_0x4dd83e)=>{_0x4dd83e['options']['showSuggestionHighlights']&&_0x404145({'showActiveMarkers':!0x1})(_0xf421e9,_0x4f28ec,_0x4dd83e);},{'priority':'highest'});}),_0x59435a['conversion']['for']('dataDowncast')['add'](_0x1b154e=>{_0x1b154e['on']('addMarker:suggestion:attribute',(_0x5332fa,_0x3e5278,_0x2ea542)=>{_0x2ea542['options']['showSuggestionHighlights']&&_0x404145({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5332fa,_0x3e5278,_0x2ea542);},{'priority':'highest'});}),_0x59435a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xdaec85,_0xcf9447)=>_0xcf9447['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xdaec85['substr'](0xb)}}),_0x59435a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f2578,{writer:_0x48c402})=>{let _0x440f75='suggestion:'+_0x2f2578['getAttribute']('suggestion-type')+':'+_0x2f2578['getAttribute']('id');return _0x2f2578['getAttribute']('marker-count')&&(_0x440f75+=':'+_0x2f2578['getAttribute']('marker-count')),_0x48c402['createElement']('$marker',{'data-name':_0x440f75});}}),_0x59435a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x59e220=>{_0x59e220['on']('addMarker:suggestion:formatBlock',_0x404145(),{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x99c108=>{_0x99c108['on']('addMarker:suggestion:attribute',_0x404145({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x2fcaec=>{_0x2fcaec['on']('removeMarker:suggestion:formatBlock',(_0x5518d7,_0x488ef7,_0x4bcbf2)=>{const _0x300337=_0x4bcbf2['mapper']['markerNameToElements'](_0x488ef7['markerName']);if(_0x300337){for(const _0x59f557 of _0x300337)_0x59f557['getCustomProperty']('addHighlight')||(_0x4bcbf2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59f557),_0x4bcbf2['writer']['removeAttribute']('data-suggestion',_0x59f557),_0x4bcbf2['writer']['removeAttribute']('data-author-id',_0x59f557),_0x4bcbf2['mapper']['unbindElementFromMarkerName'](_0x59f557,_0x488ef7['markerName']));}},{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x513496=>{_0x513496['on']('removeMarker:suggestion:attribute',(_0x40e921,_0x44cbb3,_0x1dff05)=>{const _0x2217e6=_0x1dff05['mapper']['markerNameToElements'](_0x44cbb3['markerName']);if(!_0x2217e6)return;const {id:_0x5d2267}=this['_splitMarkerName'](_0x44cbb3['markerName']),_0x51edc1=this['_suggestions']['get'](_0x5d2267),_0x229ab7=this['_getAttributeKey'](_0x51edc1);if(this['_isBlockAttribute'](_0x229ab7)){for(const _0x253438 of _0x2217e6)_0x253438['getCustomProperty']('addHighlight')||(_0x1dff05['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x253438),_0x1dff05['writer']['removeAttribute']('data-suggestion',_0x253438),_0x1dff05['writer']['removeAttribute']('data-author-id',_0x253438),_0x1dff05['mapper']['unbindElementFromMarkerName'](_0x253438,_0x44cbb3['markerName']));}},{'priority':'high'});}),_0x59435a['model']['document']['registerPostFixer'](_0x39f4b4=>{let _0x30569f=!0x1;const _0x2beafc=Array['from'](_0x59435a['model']['document']['differ']['getChangedMarkers']()),_0x4d8988=new Set();for(const {name:_0x9806a4,data:_0x19b49d}of _0x2beafc){const {group:_0x5ea698,type:_0x3f11f6,subType:_0x1c73eb,id:_0x39aaa7}=this['_splitMarkerName'](_0x9806a4);if('suggestion'!==_0x5ea698)continue;const _0x2fa2e1=this['_suggestions']['get'](_0x39aaa7);if(null!=_0x19b49d['newRange']){'formatInline'==_0x3f11f6&&(_0x30569f=_0x30569f||Ut(_0x19b49d['newRange'],_0x9806a4,_0x39f4b4,_0x59435a['model']['schema']));const _0x4095c3='attribute'==_0x3f11f6&&this['_isBlockAttribute'](_0x1c73eb['split']('|')[0x0]);if(_0x19b49d['newRange']['isCollapsed']||'$graveyard'==_0x19b49d['newRange']['root']['rootName']||'formatBlock'==_0x3f11f6&&!Ft(_0x19b49d['newRange'])||_0x4095c3&&!Ft(_0x19b49d['newRange'])||'deletion'==_0x3f11f6&&!(!Vt(_0x504d6e=_0x19b49d['newRange'])&&!function(_0x478041){return _0x478041['start']['parent']==_0x478041['end']['nodeBefore']&&_0x478041['start']['isAtEnd'];}(_0x504d6e)))_0x39f4b4['removeMarker'](_0x9806a4),_0x30569f=!0x0;else{if(!_0x2fa2e1||!_0x2fa2e1['isInContent'])continue;if(_0x19b49d['newRange']&&_0x19b49d['oldRange']&&_0x19b49d['newRange']['isEqual'](_0x19b49d['oldRange']))continue;_0x4d8988['add'](_0x2fa2e1);}}}var _0x504d6e;return _0x4d8988['size']>0x0&&(_0x30569f=!!this['_joinWithAdjacentSuggestions'](_0x4d8988)||_0x30569f),_0x30569f;}),_0x59435a['model']['document']['registerPostFixer'](_0x26df6d=>{let _0x3a877c=!0x1;for(const _0x41b6e7 of _0x59435a['model']['document']['differ']['getChanges']())if('insert'==_0x41b6e7['type'])for(const _0x3b9151 of this['_suggestions']['values']()){if(_0x3b9151['isMultiRange']||!_0x3b9151['isInContent'])continue;const _0x1dbcea='formatBlock'==_0x3b9151['type'],_0x1f7867=this['_getAttributeKey'](_0x3b9151),_0x13e78b=_0x1f7867&&this['_isBlockAttribute'](_0x1f7867);if(!_0x1dbcea&&!_0x13e78b)continue;const _0x519a67=_0x3b9151['getFirstRange']();if(_0x519a67['start']['parent']!=_0x519a67['end']['parent']&&!_0x519a67['end']['isAtEnd']){const _0x52575c=_0x59435a['model']['createPositionAt'](_0x519a67['start']['nodeAfter'],'end'),_0x2b6a56=_0x59435a['model']['createRange'](_0x519a67['start'],_0x52575c);_0x26df6d['updateMarker'](_0x3b9151['getFirstMarker'](),{'range':_0x2b6a56}),_0x3a877c=!0x0;}}return _0x3a877c;}),_0x59435a['model']['document']['registerPostFixer'](_0x1dd203=>this['_processAttributeChanges'](_0x1dd203)),_0x59435a['model']['document']['registerPostFixer'](_0x2a0ccb=>!_0x2a0ccb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a0ccb)),_0x59435a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x59435a['model']['document']['on']('change:data',(_0x4fd9a1,_0x350a8d)=>{if(!_0x350a8d['isLocal']||_0x350a8d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e21fe=_0x59435a['model']['document']['differ']['getChanges']();if(0x0==_0x2e21fe['length'])return;const _0x31de74=[],_0x35a54d=_0x2e21fe['filter'](_0x3c9303=>'attribute'==_0x3c9303['type']),_0x2b8c1b=_0x2e21fe['filter'](_0x30164e=>'insert'==_0x30164e['type']&&'$text'!=_0x30164e['name']);for(const _0x5f20b8 of _0x35a54d)this['_isRegisteredAttribute'](_0x5f20b8['attributeKey'])&&_0x31de74['push']({'key':_0x5f20b8['attributeKey'],'newValue':_0x5f20b8['attributeNewValue'],'oldValue':_0x5f20b8['attributeOldValue'],'range':Pt(_0x5f20b8['range'],_0x59435a['model'])});for(const _0x261ed2 of _0x2b8c1b){if('rename'!=_0x261ed2['action']&&'refresh'!=_0x261ed2['action'])continue;const _0xadce43=Lt(_0x261ed2['position']['nodeAfter'],_0x59435a['model']),_0x28d66a=_0x261ed2['before'];'rename'==_0x261ed2['action']&&_0x31de74['push']({'key':m,'newValue':_0x261ed2['name'],'oldValue':_0x28d66a['name'],'range':_0xadce43});for(const [_0x3933e8,_0x4b4765]of _0x28d66a['attributes']){if(!this['_isRegisteredAttribute'](_0x3933e8))continue;const _0x56e27e=_0x261ed2['attributes']['get'](_0x3933e8);_0x4b4765!==_0x56e27e&&_0x31de74['push']({'key':_0x3933e8,'newValue':_0x56e27e,'oldValue':_0x4b4765,'range':_0xadce43});}for(const [_0x2e0057,_0xa8fe83]of _0x261ed2['attributes'])this['_isRegisteredAttribute'](_0x2e0057)&&(_0x28d66a['attributes']['has'](_0x2e0057)||_0x31de74['push']({'key':_0x2e0057,'newValue':_0xa8fe83,'oldValue':null,'range':_0xadce43}));}0x0!=_0x31de74['length']&&_0x59435a['model']['enqueueChange'](_0x350a8d,_0x43454f=>{const _0x10c47f=_0x30a933();for(const {range:_0xeba509,key:_0x1b579a,oldValue:_0x10b28c,newValue:_0x562f37}of _0x31de74)this['markAttributeChange'](_0xeba509,_0x1b579a,_0x10b28c,_0x562f37,{'groupId':_0x10c47f});this['_reduceExistingSuggestions'](_0x43454f,_0x31de74);});},{'priority':'lowest'}),_0x59435a['model']['markers']['on']('update:suggestion',(_0x225fd3,_0x3ca94a,_0x567fcc)=>{if(null==_0x567fcc){const {id:_0x534a5b}=this['_splitMarkerName'](_0x3ca94a['name']),_0x153c1b=this['_suggestions']['get'](_0x534a5b);_0x153c1b&&_0x153c1b['addMarkerName'](_0x3ca94a['name']);}}),_0x59435a['model']['document']['on']('change:data',()=>{const _0x675caf=Array['from'](_0x59435a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2931bf=>'suggestion'===this['_splitMarkerName'](_0x2931bf['name'])['group']);if(0x0===_0x675caf['length'])return;_0x675caf['sort']((_0x3050d5,_0x299793)=>{const _0x2e157b=_0x3050d5['data']['oldRange'],_0x2c6e33=_0x299793['data']['oldRange'];return null===_0x2e157b&&null===_0x2c6e33?0x0:null===_0x2e157b&&null!==_0x2c6e33?-0x1:null!==_0x2e157b&&null===_0x2c6e33?0x1:_0x2e157b['start']['isBefore'](_0x2c6e33['start'])?-0x1:0x1;});const _0x3c6754=new Set(),_0x24c7e3=new Set();for(const {name:_0x1f5c54,data:_0x506aa9}of _0x675caf){const {id:_0x40c8b7}=this['_splitMarkerName'](_0x1f5c54);if(null===_0x506aa9['oldRange']){const _0x4a2c36=this['_handleNewSuggestionMarker'](_0x1f5c54);_0x24c7e3['add'](_0x4a2c36);}else{const _0x5c6b9e=this['_suggestions']['get'](_0x40c8b7);null!==_0x506aa9['newRange']||_0x5c6b9e['isInContent']?(_0x3c6754['add'](_0x5c6b9e['head']),_0x24c7e3['add'](_0x5c6b9e)):this['_removeSuggestion'](_0x5c6b9e);}}_0x24c7e3['size']>0x0&&this['_refreshSuggestionsChain'](_0x24c7e3);for(const _0x9be876 of _0x3c6754)this['fire']('suggestionChanged',_0x9be876);}),_0x59435a['model']['on']('applyOperation',(_0x197bd7,_0x1ea16d)=>{const _0x54b2d7=_0x1ea16d[0x0];if(!this['_suggestions']['size'])return;if(!_0x54b2d7['isDocumentOperation'])return;if(_0x54b2d7['batch']['isUndo']||!_0x54b2d7['batch']['isLocal'])return;let _0x201d4b,_0x12514c;switch(_0x54b2d7['type']){case'insert':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['position']),_0x12514c=_0x201d4b['getShiftedBy'](_0x54b2d7['howMany']);break;case'split':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['splitPosition']),_0x12514c=_0x59435a['model']['createPositionAt'](_0x54b2d7['moveTargetPosition']);break;case'move':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['targetPosition']),_0x12514c=_0x201d4b['getShiftedBy'](_0x54b2d7['howMany']);break;default:return;}const _0x5db81b=_0x59435a['model']['createRange'](_0x201d4b,_0x12514c);_0x59435a['model']['change'](()=>{for(const {suggestion:_0x4abffe,meta:_0x20ec95}of this['_findSuggestions'](_0x5db81b)){if(_0x4abffe['isMultiRange'])continue;if('formatInline'==_0x4abffe['type'])continue;const _0x3d11a3=this['_getAttributeKey'](_0x4abffe);if(_0x3d11a3&&this['_isBlockAttribute'](_0x3d11a3)&&'split'!=_0x54b2d7['type'])continue;const _0x2d9454=_0x4abffe['data']&&_0x4abffe['data']['multipleBlocks'];('formatBlock'!=_0x4abffe['type']||'split'==_0x54b2d7['type']&&!_0x2d9454)&&(_0x20ec95['containsRangeInObject']||'insertion'==_0x4abffe['type']&&_0x20ec95['isOwn']||_0x4abffe['getFirstRange']()['containsRange'](_0x5db81b)&&this['_breakSuggestionMarker'](_0x4abffe,_0x201d4b,_0x12514c));}});},{'priority':'lowest'}),_0x59435a['model']['on']('deleteContent',(_0x460f9e,_0x44011f)=>{const _0x2c36e5=_0x44011f[0x0],_0x12af47=_0x44011f[0x1];if(_0x12af47&&_0x12af47['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2c36e5['isCollapsed'])return;const _0x5a1e7d=_0x59435a['model']['schema'],{start:_0x82fec3,end:_0x1ae6cb}=_0x2c36e5['getFirstRange'](),_0x4a5a9b=_0x82fec3['nodeAfter']&&_0x5a1e7d['isLimit'](_0x82fec3['nodeAfter'])?null:_0x5a1e7d['getNearestSelectionRange'](_0x82fec3,'forward'),_0x2846a5=_0x1ae6cb['nodeBefore']&&_0x5a1e7d['isLimit'](_0x1ae6cb['nodeBefore'])?null:_0x5a1e7d['getNearestSelectionRange'](_0x1ae6cb,'backward'),_0x5649ca=_0x59435a['model']['createRange'](_0x4a5a9b?_0x4a5a9b['start']:_0x82fec3,_0x2846a5?_0x2846a5['end']:_0x1ae6cb);_0x59435a['model']['change'](_0x105251=>{this['markDeletion'](_0x5649ca);const _0x155019=_0x59435a['model']['schema']['getNearestSelectionRange'](_0x5649ca['start']);_0x2c36e5['is']('documentSelection')?_0x105251['setSelection'](_0x155019):_0x2c36e5['setTo'](_0x155019);}),_0x460f9e['stop']();},{'priority':_0x55e6df['normal']+0xa}),_0x59435a['model']['on']('insertContent',(_0x2ae9b9,_0x1fc317)=>{const _0x5ea7d8=_0x1fc317[_0x1fc317['length']-0x1];_0x5ea7d8&&_0x5ea7d8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x59435a['model']['change'](()=>{let _0x2ece01=_0x59435a['model']['insertContent'](_0x1fc317[0x0],_0x1fc317[0x1],_0x1fc317[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ece01)return;_0x2ae9b9['return']=_0x2ece01['clone']();const _0x498bcb=_0x2ece01['end']['nodeBefore'],_0x5d310f=_0x59435a['model']['schema'];_0x498bcb&&_0x5d310f['isBlock'](_0x498bcb)&&!_0x5d310f['isObject'](_0x498bcb)&&(_0x2ece01=_0x59435a['model']['createRange'](_0x2ece01['start'],_0x59435a['model']['createPositionAt'](_0x498bcb,'end'))),this['markInsertion'](_0x2ece01);}),_0x2ae9b9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22406c=new x(_0x59435a,this['_suggestions']);_0x59435a['commands']['add']('acceptSuggestion',_0x22406c),this['enableCommand']('acceptSuggestion');const _0x14ee8f=new R(_0x59435a,this['_suggestions']);_0x59435a['commands']['add']('discardSuggestion',_0x14ee8f),this['enableCommand']('discardSuggestion'),_0x59435a['commands']['add']('acceptAllSuggestions',new E(_0x59435a,_0x22406c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x59435a['commands']['add']('discardAllSuggestions',new E(_0x59435a,_0x14ee8f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x59435a['commands']['add']('acceptSelectedSuggestions',new O(_0x59435a,_0x22406c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x59435a['commands']['add']('discardSelectedSuggestions',new O(_0x59435a,_0x14ee8f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x152070=_0x59435a['plugins']['get']('CommentsRepository');this['listenTo'](_0x152070,'addComment',(_0x2c750d,{threadId:_0x3d9287})=>{const _0x384031=this['_suggestions']['get'](_0x3d9287);_0x384031&&_0x384031['commentThread']&&0x1===_0x384031['commentThread']['length']&&this['_updateSuggestionData'](_0x3d9287,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x152070,'removeComment',(_0x214558,{threadId:_0x2eb95e})=>{const _0xe6c4b8=this['_suggestions']['get'](_0x2eb95e);_0xe6c4b8&&_0xe6c4b8['commentThread']&&!_0xe6c4b8['commentThread']['length']&&this['_updateSuggestionData'](_0x2eb95e,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x439359){if(this['_adapter'])throw new _0x9ee824('track-changes-adapter-already-set',this);this['_adapter']=_0x439359;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xf566b1=!0x1,toJSON:_0x44d4e6=!0x1}={}){const _0x5b4c2e=[];for(const _0x41f032 of this['_suggestions']['values']())_0xf566b1&&!_0x41f032['isInContent']||_0x5b4c2e['push'](_0x41f032);return _0x44d4e6?_0x5b4c2e['map'](_0x4fd1d0=>_0x4fd1d0['toJSON']()):_0x5b4c2e;}['getSuggestion'](_0x5b0cc8){const _0x549e79=this['_suggestions']['get'](_0x5b0cc8);if(!_0x549e79)throw new _0x9ee824('track-changes-suggestion-not-found',this);return _0x549e79;}['hasSuggestion'](_0x409bcf){return this['_suggestions']['has'](_0x409bcf);}['addSuggestionData'](_0x5bc7bf){const {authorId:_0x29eff7,id:_0x3918dd,attributes:_0x40e592}=_0x5bc7bf,[_0x488699,_0x497917]=_0x5bc7bf['type']['split'](':'),_0x23287e=this['_suggestions']['get'](_0x3918dd)||this['_createSuggestion'](_0x488699,_0x497917,_0x3918dd,_0x29eff7,_0x40e592);if(this['_addThreadToSuggestion'](_0x23287e),this['_checkSuggestionCorrectness'](_0x23287e,_0x488699,_0x497917||null,_0x29eff7),_0x23287e['createdAt']=_0x5bc7bf['createdAt'],_0x23287e['_isDataLoaded']=!0x0,_0x40e592&&_0x40e592['@external']){const _0x401f41=_0x40e592['@external'],_0x4fc9c7=this['_getExternalAuthor'](_0x401f41['authorName']);_0x23287e['authoredAt']=_0x401f41['createdAt'],_0x23287e['author']=_0x4fc9c7,_0x23287e['isExternal']=!0x0;}else _0x23287e['authoredAt']=_0x5bc7bf['createdAt'];switch(_0x5bc7bf['data']&&(_0x23287e['data']=_0x5bc7bf['data']),_0x5bc7bf['attributes']&&(_0x23287e['attributes']=_0x5bc7bf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23287e['_saved']=!0x0),this['_suggestionState']['get'](_0x23287e)){case'notReady':this['_suggestionState']['set'](_0x23287e,'dataReady');break;case'markerReady':_0x23287e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23287e])),this['_refreshSuggestionsChain'](new Set([_0x23287e])),this['_suggestionState']['set'](_0x23287e,'ready'),this['fire']('suggestionLoaded',_0x23287e)):this['_suggestionState']['set'](_0x23287e,'removed');}return _0x23287e;}['acceptSuggestion'](_0x2588ff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x395905 of _0x2588ff['getAllAdjacentSuggestions']())_0x395905['accept']();});});}['discardSuggestion'](_0xc7bf0f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x200944 of _0xc7bf0f['getAllAdjacentSuggestions']())_0x200944['discard']();});});}['enableCommand'](_0x30eaf5,_0xfcd18c){const _0x40143e=this['editor']['commands']['get'](_0x30eaf5);if(!_0x40143e)throw new _0x9ee824('track-changes-command-not-found',this,{'commandName':_0x30eaf5});if(this['_enabledCommands']['has'](_0x40143e))throw new _0x9ee824('track-changes-enable-command-twice',this,{'commandName':_0x30eaf5});this['_enabledCommands']['add'](_0x40143e),_0xfcd18c&&_0x40143e['on']('execute',(_0x6a285,_0x568f4b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x568f4b['length']>0x0&&_0x568f4b[_0x568f4b['length']-0x1]&&_0x568f4b[_0x568f4b['length']-0x1]['forceDefaultExecution']?_0x568f4b['pop']():(_0x6a285['return']=_0xfcd18c((..._0x4ecac2)=>_0x40143e['execute'](..._0x4ecac2,{'forceDefaultExecution':!0x0}),..._0x568f4b),_0x6a285['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x56c4ca){let _0xc0533,_0x11b23f;const _0x483712=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc0533=_0x56c4ca();}catch(_0x3565e1){_0x11b23f=_0x3565e1;}return _0x483712||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x11b23f&&_0x9ee824['rethrowUnexpectedError'](_0x11b23f,this),_0xc0533;}['markInsertion'](_0x54fa98,_0x35fbe5=null,_0x57aace={}){if(_0x54fa98['isCollapsed'])return null;const _0x2f4af1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3b7f2f,meta:_0x2f6f91}of this['_findSuggestions'](_0x54fa98,'insertion'))if(_0x2f6f91['isOwn']){if(!_0x2f6f91['isNextTo']){if(_0x2f6f91['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3b7f2f,_0x57aace))continue;return _0x3b7f2f;}if(qt(_0x3b7f2f,_0x57aace))return _0x3b7f2f;this['_breakSuggestionMarker'](_0x3b7f2f,_0x54fa98['start'],_0x54fa98['end']);break;}if(_0x35fbe5==_0x3b7f2f['subType']&&qt(_0x3b7f2f,_0x57aace)){const _0x2f7f41=_0x3b7f2f['getFirstRange']();return _0x2f7f41['start']['isEqual'](_0x54fa98['end'])?this['_setSuggestionRange'](_0x3b7f2f,this['_model']['createRange'](_0x54fa98['start'],_0x2f7f41['end'])):this['_setSuggestionRange'](_0x3b7f2f,this['_model']['createRange'](_0x2f7f41['start'],_0x54fa98['end'])),_0x3b7f2f;}}const _0x5420cd=_0x30a933(),_0x44c38d=_0x2f4af1['id'],_0x5b5810=_0x35fbe5?'insertion:'+_0x35fbe5:'insertion',_0x4f014d=this['_setSuggestionData']({'id':_0x5420cd,'type':_0x5b5810,'createdAt':new Date(),'authorId':_0x44c38d,'attributes':_0x57aace});return this['_addSuggestionMarker'](_0x5b5810,_0x5420cd,_0x44c38d,_0x54fa98),_0x4f014d;}['markMultiRangeInsertion'](_0x41d68b,_0x40ed52='multi',_0x3855f1={}){const _0x2f1a76=this['editor']['plugins']['get']('Users')['me'],_0x38a236=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40ed52,'join');for(const _0x216c56 of this['getSuggestions']())if(_0x216c56['author']['id']==_0x2f1a76['id']&&'insertion'==_0x216c56['type']&&_0x216c56['subType']==_0x40ed52&&qt(_0x216c56,_0x3855f1)&&(_0x38a236(_0x216c56['getRanges'](),_0x41d68b)||_0x38a236(_0x41d68b,_0x216c56['getRanges']()))){for(const _0x22d72d of _0x41d68b)_0x216c56['addRange'](_0x22d72d);return _0x216c56;}for(const {suggestion:_0x3314d2,meta:_0x689d8b}of this['_findSuggestions'](_0x41d68b,'insertion')){if(!_0x689d8b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x689d8b['containsRangeInObject'])continue;if(!qt(_0x3314d2,_0x3855f1))continue;let _0x3f9a7c=!0x0;for(const _0x34d770 of _0x3314d2['getRanges']())for(const _0x5e7388 of _0x41d68b)if(!_0x34d770['containsRange'](_0x5e7388)){_0x3f9a7c=!0x1;break;}if(_0x3f9a7c)return _0x3314d2;}const _0x333108=_0x30a933(),_0xd93ebc=_0x2f1a76['id'],_0xfa9aa0='insertion:'+_0x40ed52,_0x3e9710=this['_setSuggestionData']({'id':_0x333108,'type':_0xfa9aa0,'createdAt':new Date(),'authorId':_0xd93ebc,'attributes':_0x3855f1});for(const _0x49bb80 of _0x41d68b)this['_addSuggestionMarker'](_0xfa9aa0,_0x333108,_0xd93ebc,_0x49bb80,u['getMultiRangeId']());return _0x3e9710;}['markInlineFormat'](_0x1ec3fe,_0x3fd4be,_0x9a1c80=null,_0x2b2d0a={}){if(_0x9a1c80=_0x9a1c80||Gt(_0x3fd4be),_0x1ec3fe['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1c2eda=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9a1c80,'accept');return this['forceDefaultExecution'](()=>_0x1c2eda([_0x1ec3fe],_0x3fd4be,_0x2b2d0a)),null;}const _0x9b6fd2=this['editor']['plugins']['get']('Users')['me'],_0x2ce6f2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x161276,meta:_0x1f62ea}of this['_findSuggestions'](_0x1ec3fe,'insertion'))_0x1f62ea['isOwn']&&!_0x1f62ea['isInsideObject']&&_0x2ce6f2['push'](..._0x161276['getRanges']());}const _0x2d8ad5=function(_0x430f5c,_0x5351c3){const _0x5035cb=[];for(const _0x17aa61 of _0x5351c3){const _0x4faba9=_0x430f5c['getIntersection'](_0x17aa61);_0x4faba9&&_0x5035cb['push'](_0x4faba9);}return _0x5035cb;}(_0x1ec3fe,_0x2ce6f2),_0xb65b3c=function(_0xfe55ab,_0x57e72f){const _0xae9c96=[_0xfe55ab];for(const _0x2cab64 of _0x57e72f){let _0x46af01=0x0;for(;_0x46af01<_0xae9c96['length'];){const _0x3e0b8b=_0xae9c96[_0x46af01]['getDifference'](_0x2cab64);_0xae9c96['splice'](_0x46af01,0x1,..._0x3e0b8b),_0x46af01+=_0x3e0b8b['length'];}}return _0xae9c96;}(_0x1ec3fe,_0x2ce6f2);_0x2d8ad5['length']&&this['_model']['change'](()=>{for(const _0x26069b of _0x2d8ad5){const _0x4a3efa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9a1c80,'accept');this['forceDefaultExecution'](()=>_0x4a3efa([_0x26069b],_0x3fd4be,_0x2b2d0a));}});for(const _0x10eb67 of _0xb65b3c){let _0x4819ad=null,_0x5bb607=_0x10eb67['start'],_0x3704b6=_0x10eb67['end'];for(const {suggestion:_0x330418,meta:_0x30a5c4}of this['_findSuggestions'](_0x10eb67,'formatInline')){if(!_0x30a5c4['isOwn'])continue;if(_0x330418['subType']!=_0x9a1c80)continue;if(!qt(_0x330418,_0x2b2d0a))continue;const _0x5515af=_0x330418['getFirstRange']();if(_0x5515af['containsRange'](_0x10eb67,!0x0))return null;_0x5bb607=_0x5bb607['isBefore'](_0x5515af['start'])?_0x5bb607:_0x5515af['start'],_0x3704b6=_0x3704b6['isAfter'](_0x5515af['end'])?_0x3704b6:_0x5515af['end'],_0x4819ad?_0x5515af['start']['isBefore'](_0x4819ad['getFirstRange']()['start'])?(_0x4819ad['removeMarkers'](),_0x4819ad=_0x330418):_0x330418['removeMarkers']():_0x4819ad=_0x330418;}const _0x24302f=this['_model']['createRange'](_0x5bb607,_0x3704b6);if(_0x4819ad)this['_setSuggestionRange'](_0x4819ad,_0x24302f);else{const _0x2940a9=_0x30a933(),_0x48ce21=_0x9b6fd2['id'];this['_setSuggestionData']({'id':_0x2940a9,'type':'formatInline:'+_0x9a1c80,'data':_0x3fd4be,'createdAt':new Date(),'authorId':_0x48ce21,'attributes':_0x2b2d0a}),this['_addSuggestionMarker']('formatInline:'+_0x9a1c80,_0x2940a9,_0x48ce21,_0x24302f);}}return null;}['markBlockFormat'](_0x5c4ee6,_0x5483fc,_0x50eb42=[],_0x29df7a=null,_0x14bb03={}){_0x5483fc['formatGroupId']||(_0x5483fc['formatGroupId']=_0x5483fc['commandName']),_0x5483fc['multipleBlocks']=_0x5c4ee6['is']('range'),_0x29df7a=_0x29df7a||Gt(_0x5483fc);const _0x3e8ff9=_0x50eb42['map'](_0x159608=>Lt(_0x159608,this['_model'])),_0x1cf7be=_0x5c4ee6['is']('range')?_0x5c4ee6:Lt(_0x5c4ee6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dfae8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29df7a,'accept');return this['forceDefaultExecution'](()=>_0x4dfae8([_0x1cf7be],_0x5483fc,_0x14bb03)),null;}_0x3e8ff9['push'](_0x1cf7be);let _0x2002d4=!0x0;for(const _0xaccd86 of _0x3e8ff9)if(!this['_rangeIsInLocalUserInsertion'](_0xaccd86)){_0x2002d4=!0x1;break;}if(_0x2002d4&&'always'!==this['_trackFormatChanges']){const _0x147b4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29df7a,'accept');return this['forceDefaultExecution'](()=>_0x147b4f([_0x1cf7be],_0x5483fc,_0x14bb03)),null;}let _0x13b034=null,_0x3a5ea7=_0x1cf7be['start'],_0x5838a1=_0x1cf7be['end'];for(const {suggestion:_0x24b833,meta:_0x4c2616}of this['_findSuggestions'](_0x1cf7be,'formatBlock')){if(!_0x4c2616['isOwn'])continue;if(_0x4c2616['isNextTo']||_0x4c2616['containsRangeInObject']||_0x4c2616['isInsideObject'])continue;if(_0x24b833['data']['formatGroupId']!=_0x5483fc['formatGroupId'])continue;if(!qt(_0x24b833,_0x14bb03))continue;const _0x29a079=_0x24b833['getFirstRange']();if(_0x24b833['subType']==_0x29df7a){if(_0x29a079['containsRange'](_0x1cf7be,!0x0))return null;_0x3a5ea7=_0x3a5ea7['isBefore'](_0x29a079['start'])?_0x3a5ea7:_0x29a079['start'],_0x5838a1=_0x5838a1['isAfter'](_0x29a079['end'])?_0x5838a1:_0x29a079['end'],_0x13b034?_0x29a079['start']['isBefore'](_0x13b034['getFirstRange']()['start'])?(_0x13b034['removeMarkers'](),_0x13b034=_0x24b833):_0x24b833['removeMarkers']():_0x13b034=_0x24b833;}else{const _0x33fa3f=_0x1cf7be['getIntersection'](_0x29a079);this['_cutOutSuggestionMarker'](_0x24b833,_0x33fa3f);}}const _0x5c6b0f=this['editor']['plugins']['get']('Users')['me'],_0xbc82b6=_0x30a933(),_0x5458ca=_0x5c6b0f['id'];if(_0x13b034)return this['_setSuggestionRange'](_0x13b034,this['_model']['createRange'](_0x3a5ea7,_0x5838a1)),_0x13b034;{const _0x173cae=this['_setSuggestionData']({'id':_0xbc82b6,'type':'formatBlock:'+_0x29df7a,'data':_0x5483fc,'createdAt':new Date(),'authorId':_0x5458ca,'attributes':_0x14bb03});return this['_addSuggestionMarker']('formatBlock:'+_0x29df7a,_0xbc82b6,_0x5458ca,this['_model']['createRange'](_0x3a5ea7,_0x5838a1)),_0x173cae;}}['markMultiRangeBlockFormat'](_0x20992e,_0x23eefa,_0x4c6a3f=[],_0x1cbf73=null,_0x4e2340={}){_0x23eefa['formatGroupId']||(_0x23eefa['formatGroupId']=_0x23eefa['commandName']);const _0x5a3e0f=_0x20992e[0x0];_0x23eefa['multipleBlocks']=_0x5a3e0f['is']('range'),_0x1cbf73=_0x1cbf73||Gt(_0x23eefa);const _0x54e2dd=_0x4c6a3f['map'](_0x395c22=>Lt(_0x395c22,this['_model'])),_0xcf69df=_0x5a3e0f['is']('range')?_0x20992e:_0x20992e['map'](_0x4e385a=>Lt(_0x4e385a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3c5bc8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'accept');return this['forceDefaultExecution'](()=>_0x3c5bc8(_0xcf69df,_0x23eefa,_0x4e2340)),null;}_0x54e2dd['push'](..._0xcf69df);let _0x2d0632=!0x0;for(const _0x1f2289 of _0x54e2dd)if(!this['_rangeIsInLocalUserInsertion'](_0x1f2289)){_0x2d0632=!0x1;break;}if(_0x2d0632&&'always'!==this['_trackFormatChanges']){const _0x115251=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'accept');return this['forceDefaultExecution'](()=>_0x115251(_0xcf69df,_0x23eefa,_0x4e2340)),null;}const _0x4277af=this['editor']['plugins']['get']('Users')['me'];for(const _0x159fb3 of this['getSuggestions']()){if(_0x159fb3['author']['id']!=_0x4277af['id'])continue;if('formatBlock'!=_0x159fb3['type']||_0x159fb3['data']['formatGroupId']!=_0x23eefa['formatGroupId'])continue;if(!qt(_0x159fb3,_0x4e2340))continue;const _0x2d7551=_0x159fb3['subType']==_0x1cbf73;for(let _0x44487a=0x0;_0x44487a<_0xcf69df['length'];_0x44487a++){const _0x1eca95=_0xcf69df[_0x44487a];for(const _0xed8a39 of _0x159fb3['getMarkers']()){const _0x151e2c=_0xed8a39['getRange']();if(_0x1eca95['isEqual'](_0x151e2c)){_0x2d7551?(_0xcf69df['splice'](_0x44487a,0x1),_0x44487a--):_0x159fb3['removeMarker'](_0xed8a39['name']);break;}}}}if(0x0==_0xcf69df['length'])return null;const _0x3f6f47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'join');for(const _0x1cecc7 of this['getSuggestions']())if(_0x1cecc7['author']['id']==_0x4277af['id']&&'formatBlock'==_0x1cecc7['type']&&_0x1cecc7['data']['formatGroupId']==_0x23eefa['formatGroupId']&&_0x1cecc7['subType']==_0x1cbf73&&qt(_0x1cecc7,_0x4e2340)&&(_0x3f6f47(_0x1cecc7['getRanges'](),_0xcf69df)||_0x3f6f47(_0xcf69df,_0x1cecc7['getRanges']()))){for(const _0x4a9cb7 of _0xcf69df)_0x1cecc7['addRange'](_0x4a9cb7);return _0x1cecc7;}const _0x5749d0=_0x30a933(),_0x30d641=_0x4277af['id'],_0x402657='formatBlock:'+_0x1cbf73,_0x484546=this['_setSuggestionData']({'id':_0x5749d0,'type':_0x402657,'data':_0x23eefa,'createdAt':new Date(),'authorId':_0x30d641,'attributes':_0x4e2340});for(const _0x1d5692 of _0xcf69df)this['_addSuggestionMarker'](_0x402657,_0x5749d0,_0x30d641,_0x1d5692,u['getMultiRangeId']());return _0x484546;}['markDeletion'](_0xeab110,_0x106148=null,_0x2fa97c={}){if(_0xeab110['isCollapsed'])return null;const _0x47deae=this['editor']['plugins']['get']('Users')['me'],_0x22ac16=new _0x3f00a1(_0xeab110['start'],_0xeab110['end']);for(const {suggestion:_0x4ec1f1,meta:_0x31c9d5}of this['_findSuggestions'](_0x22ac16,'insertion'))if(_0x31c9d5['isOwn']&&!_0x31c9d5['isNextTo']){if(_0x4ec1f1['isMultiRange']){const _0xf3d571=_0x4ec1f1['getRanges']()['filter'](_0x5f2efc=>'$graveyard'!=_0x5f2efc['root']['rootName']);_0xf3d571['every'](_0x277f62=>_0x22ac16['containsRange'](_0x277f62,!0x0))&&_0x4ec1f1['discard']();if(_0xf3d571['some'](_0x384d93=>_0x384d93['containsRange'](_0x22ac16,!0x0))){const _0x155487=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x106148,'accept');return this['forceDefaultExecution'](()=>_0x155487([_0x22ac16],null,_0x2fa97c)),null;}}else{const _0x7c2bb3=_0x22ac16['getIntersection'](_0x4ec1f1['getFirstRange']());null!==_0x7c2bb3&&_0x4ec1f1['_onDiscard']([_0x7c2bb3],null,_0x2fa97c);}}if(_0x22ac16['detach'](),_0x22ac16['isCollapsed']||'$graveyard'==_0x22ac16['root']['rootName'])return null;let _0x53d914=null,_0x3bb891=_0x22ac16['start'],_0x4f1bfa=_0x22ac16['end'];const _0xb523a9=this['_findSuggestions'](_0x22ac16,'deletion');for(const {suggestion:_0x43eb97,meta:_0xfb5d92}of _0xb523a9){const _0x3d2c01=this['_model']['createRange'](_0x3bb891,_0x4f1bfa);if(_0xfb5d92['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfb5d92['containsRangeInObject']&&!_0xfb5d92['isInsideObject'])){if(_0x43eb97['isMultiRange']){if(!qt(_0x43eb97,_0x2fa97c))continue;let _0x7151a=!0x0;for(const _0x3450c3 of _0x43eb97['getRanges']()){if(_0x3450c3['containsRange'](_0x3d2c01,!0x0))return _0x43eb97;_0x3d2c01['containsRange'](_0x3450c3)||(_0x7151a=!0x1);}_0x7151a&&_0x43eb97['discard']();}else{const _0xe9543e=_0x43eb97['getFirstRange']();if(_0xe9543e['containsRange'](_0x3d2c01,!0x0))return _0x43eb97;if(!qt(_0x43eb97,_0x2fa97c)){_0x3d2c01['containsRange'](_0xe9543e)?_0x43eb97['removeMarkers']():_0xe9543e['containsPosition'](_0x3bb891)?_0x3bb891=_0xe9543e['end']:_0xe9543e['containsPosition'](_0x4f1bfa)&&(_0x4f1bfa=_0xe9543e['start']);continue;}_0x3bb891=_0x3bb891['isBefore'](_0xe9543e['start'])?_0x3bb891:_0xe9543e['start'],_0x4f1bfa=_0x4f1bfa['isAfter'](_0xe9543e['end'])?_0x4f1bfa:_0xe9543e['end'],_0x2fa97c=Object['assign']({},_0x43eb97['attributes']),_0x53d914?_0xe9543e['start']['isBefore'](_0x53d914['getFirstRange']()['start'])?(_0x53d914['removeMarkers'](),_0x53d914=_0x43eb97):_0x43eb97['removeMarkers']():_0x53d914=_0x43eb97;}}}if(_0x53d914)return this['_setSuggestionRange'](_0x53d914,this['_model']['createRange'](_0x3bb891,_0x4f1bfa)),_0x53d914;{const _0x50d1f8=_0x30a933(),_0x26d02e=this['_model']['createRange'](_0x3bb891,_0x4f1bfa),_0x2d7314=_0x47deae['id'],_0x170827=_0x106148?'deletion:'+_0x106148:'deletion',_0x100ca0=this['_setSuggestionData']({'id':_0x50d1f8,'type':_0x170827,'createdAt':new Date(),'authorId':_0x2d7314,'attributes':_0x2fa97c});return this['_addSuggestionMarker'](_0x170827,_0x50d1f8,_0x2d7314,_0x26d02e),_0x100ca0;}}['markMultiRangeDeletion'](_0x159f5a,_0x4151a8='multi',_0xd8e90d={}){const _0x5607d6=this['editor']['plugins']['get']('Users')['me'],_0x4cf775=_0x159f5a['map'](_0x5bf387=>new _0x3f00a1(_0x5bf387['start'],_0x5bf387['end'])),_0x5c56a6=new Set();for(const {suggestion:_0x3f546,meta:_0x405795}of this['_findSuggestions'](_0x4cf775,'insertion'))_0x405795['isOwn']&&!_0x405795['isNextTo']&&_0x5c56a6['add'](_0x3f546);for(const _0x26efc6 of _0x5c56a6)if(_0x26efc6['isMultiRange']){const _0x532935=_0x26efc6['getRanges']();(!_0x26efc6['attributes']||!_0x26efc6['attributes']['skipNestingCheck'])&&(_0x532935['every'](_0x5e6cf2=>_0x4cf775['some'](_0x40d1d8=>_0x40d1d8['containsRange'](_0x5e6cf2,!0x0)))&&_0x26efc6['discard']());if(_0x4cf775['every'](_0x47a5fb=>_0x532935['some'](_0x390ee1=>_0x390ee1['containsRange'](_0x47a5fb,!0x0)))){const _0x50212c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'accept');return this['forceDefaultExecution'](()=>_0x50212c(_0x159f5a,null,_0xd8e90d)),null;}}else{const _0x4351f2=_0x26efc6['getFirstRange']();_0x4cf775['some'](_0x4bd80f=>_0x4bd80f['containsRange'](_0x4351f2,!0x0))&&_0x26efc6['discard']();if(_0x4cf775['every'](_0x2ed83d=>_0x4351f2['containsRange'](_0x2ed83d,!0x0))){const _0x1dd9a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'accept');return this['forceDefaultExecution'](()=>_0x1dd9a5(_0x4cf775,null,_0xd8e90d)),null;}}const _0x32919f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'join');let _0x365aa2=null;for(const _0x44f305 of this['getSuggestions']())if(_0x44f305['author']['id']==_0x5607d6['id']&&_0x44f305['isInContent']&&'deletion'==_0x44f305['type']&&_0x44f305['subType']==_0x4151a8&&qt(_0x44f305,_0xd8e90d)&&(_0x32919f(_0x44f305['getRanges'](),_0x4cf775)||_0x32919f(_0x4cf775,_0x44f305['getRanges']()))){if(_0x365aa2){if(_0x44f305['commentThread']&&_0x44f305['commentThread']['length'])continue;for(const _0x336bb9 of _0x44f305['getRanges']())_0x365aa2['isIntersectingWithRange'](_0x336bb9)||_0x365aa2['addRange'](_0x336bb9);_0x44f305['removeMarkers']();}else{_0x365aa2=_0x44f305;for(const _0x4f97ca of _0x4cf775)_0x44f305['isIntersectingWithRange'](_0x4f97ca)||_0x44f305['addRange'](_0x4f97ca);}}if(_0x365aa2)return _0x365aa2;_0x5c56a6['clear']();for(const {suggestion:_0x5cb10d,meta:_0x4838d7}of this['_findSuggestions'](_0x4cf775,'deletion'))_0x4838d7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4838d7['containsRangeInObject']&&!_0x4838d7['isInsideObject'])&&qt(_0x5cb10d,_0xd8e90d)&&_0x5c56a6['add'](_0x5cb10d);for(const _0x7f2f97 of _0x5c56a6){const _0x2370dc=_0x7f2f97['getRanges']();if(!_0xd8e90d||!_0xd8e90d['skipNestingCheck']){if(_0x4cf775['every'](_0x4a4f65=>_0x2370dc['some'](_0x33da11=>_0x33da11['containsRange'](_0x4a4f65,!0x0))))return _0x7f2f97;}(!_0x7f2f97['attributes']||!_0x7f2f97['attributes']['skipNestingCheck'])&&(_0x2370dc['every'](_0x163ea3=>_0x4cf775['some'](_0x3c9bff=>_0x3c9bff['containsRange'](_0x163ea3,!0x0)))&&_0x7f2f97['discard']());}const _0x148376=_0x30a933(),_0x2cfebf=_0x5607d6['id'],_0x5d3caf='deletion:'+_0x4151a8,_0x5bf5c2=this['_setSuggestionData']({'id':_0x148376,'type':_0x5d3caf,'createdAt':new Date(),'authorId':_0x2cfebf,'attributes':_0xd8e90d});for(const _0x3ebc28 of _0x4cf775)_0x3ebc28['detach'](),_0x3ebc28['isCollapsed']||'$graveyard'==_0x3ebc28['root']['rootName']||this['_addSuggestionMarker'](_0x5d3caf,_0x148376,_0x2cfebf,_0x3ebc28,u['getMultiRangeId']());return _0x5bf5c2;}['markAttributeChange'](_0x479a75,_0x5dfe2a,_0x6a28f6,_0x3a90ce,_0x2b45ae){if(_0x479a75['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c9e53=this['editor']['plugins']['get']('Users')['me']['id'],_0x424090=Array['from'](this['_suggestions']['values']())['filter'](_0x4f39aa=>'attribute'==_0x4f39aa['type']&&_0x4f39aa['data']['key']==_0x5dfe2a&&_0x4f39aa['isIntersectingWithRange'](_0x479a75));if('default'===this['_trackFormatChanges']){const _0x28b763=this['_findSuggestions'](_0x479a75,'insertion')['filter'](({meta:_0x518329})=>_0x518329['isOwn']&&!_0x518329['isInsideObject']&&!_0x518329['isNextTo'])['map'](({suggestion:_0x4b9089})=>_0x4b9089);_0x424090['unshift'](..._0x28b763);}const _0x1ac789=new Map([[_0x479a75,_0x6a28f6]]);for(const _0x5dee8a of _0x424090){const _0x21324b='attribute'==_0x5dee8a['type']?_0x5dee8a['data']['oldValue']:void 0x0,_0x3d6c4e=_0x5dee8a['getFirstRange'](),_0x25a09d=Array['from'](_0x1ac789['keys']())['find'](_0x1c5cff=>_0x1c5cff['isIntersecting'](_0x3d6c4e));if(!_0x25a09d)continue;const _0x5ac073=_0x25a09d['getDifference'](_0x3d6c4e);this['_isBlockAttribute'](_0x5dfe2a)&&'insertion'==_0x5dee8a['type']&&0x0!=_0x5ac073['length']||(_0x1ac789['delete'](_0x25a09d),_0x5ac073['forEach'](_0x38b9b6=>{_0x1ac789['set'](_0x38b9b6,_0x6a28f6);}),'insertion'!=_0x5dee8a['type']&&_0x21324b!=_0x3a90ce&&_0x1ac789['set'](_0x25a09d['getIntersection'](_0x3d6c4e),_0x21324b));}const _0x31d741=[];for(const [_0xeed958,_0x347383]of _0x1ac789){const _0x5e83dc=_0x30a933(),_0x3581d7={'key':_0x5dfe2a,'oldValue':_0x347383,'newValue':_0x3a90ce};_0x5dfe2a['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':_0x5dfe2a});const _0x675a2d=('attribute:'+(_0x5dfe2a+'|'+Gt({'newValue':_0x3a90ce})))['substring'](0x0,0x3c),_0x4d203a=this['_setSuggestionData']({'id':_0x5e83dc,'type':_0x675a2d,'data':_0x3581d7,'createdAt':new Date(),'authorId':_0x4c9e53,'attributes':_0x2b45ae});_0x31d741['push'](_0x4d203a),this['_addSuggestionMarker'](_0x675a2d,_0x5e83dc,_0x4c9e53,_0xeed958);}return _0x31d741;}['enableDefaultAttributesIntegration'](_0xce7213){this['enableCommand'](_0xce7213,(_0x359fbb,..._0x4f7bb6)=>{this['_recordAttributeChanges'](()=>{_0x359fbb(..._0x4f7bb6);});});}['registerBlockAttribute'](_0x2762d3){this['_blockAttributeKeys']['add'](_0x2762d3);}['registerInlineAttribute'](_0x12d91e){this['_inlineAttributeKeys']['add'](_0x12d91e);}['_getAttributeKey'](_0x1f462b){return'attribute'==_0x1f462b['type']?_0x1f462b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x38766c,_0x1a1dfd){const _0xedccfc=_0x38766c['getFirstMarker']();this['_model']['change'](_0x3fb428=>{_0x3fb428['updateMarker'](_0xedccfc,{'range':_0x1a1dfd});});}['_addThreadToSuggestion'](_0x2378a8){const _0xcb8cf3=_0x2378a8['id'],_0x3ba402=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xcb8cf3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba402,'threadId':_0xcb8cf3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1fd814=this['_commentsRepository']['getCommentThread'](_0xcb8cf3);_0x1fd814['unbind']('isRemovable'),_0x1fd814['isRemovable']=!0x1,_0x2378a8['commentThread']=_0x1fd814;}['_checkSuggestionCorrectness'](_0x22b273,_0x517a8d,_0x4de767,_0x3a1bd8){if(_0x22b273['type']!=_0x517a8d||_0x22b273['subType']!=_0x4de767||_0x22b273['creator']['id']!=_0x3a1bd8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x9ee824('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40999f,_0x4e834e){const _0x4b1bea=_0x40999f['getFirstRange']();if(_0x4e834e['isEqual'](_0x4b1bea))_0x40999f['removeMarkers']();else{if(_0x4b1bea['containsRange'](_0x4e834e)){const _0xeadf92=this['_model']['createPositionAt'](_0x4e834e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x4b1bea['start'],_0xeadf92));const _0x45b86e=_0x30a933(),_0xba8bb=_0x40999f['creator']['id'],_0x244d7d=_0x40999f['type']+':'+_0x40999f['subType'];this['_setSuggestionData']({'id':_0x45b86e,'type':_0x244d7d,'createdAt':new Date(),'authorId':_0xba8bb,'data':_0x40999f['data'],'attributes':_0x40999f['attributes']});const _0x1450e5=this['_model']['createPositionAt'](_0x4e834e['end']['parent'],'after'),_0x424209=this['_model']['createRange'](_0x1450e5,_0x4b1bea['end']);this['_addSuggestionMarker'](_0x244d7d,_0x45b86e,_0xba8bb,_0x424209);}else{if(_0x4b1bea['containsPosition'](_0x4e834e['start'])){const _0x217851=this['_model']['createPositionAt'](_0x4e834e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x4b1bea['start'],_0x217851));}else{const _0x3f0432=this['_model']['createPositionAt'](_0x4e834e['end']['parent'],'after');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x3f0432,_0x4b1bea['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2baef1){for(const {suggestion:_0x4e6317,meta:_0x5539ba}of this['_findSuggestions'](_0x2baef1,'insertion')){if(!_0x5539ba['isOwn'])continue;const _0x5c6ac6=_0x4e6317['getRanges']();for(const _0x455b29 of _0x5c6ac6)if(!_0x2baef1['getDifference'](_0x455b29)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22d99a){const _0x3eda14=this['editor']['plugins']['get']('Users')['getUser'](_0x22d99a);if(!_0x3eda14)throw new _0x9ee824('track-changes-user-not-found',this);return _0x3eda14;}['_getExternalAuthor'](_0x17429d){const _0x84424c=this['editor']['plugins']['get']('Users'),_0x5417ce=_0x4dc8f2('external:'+_0x17429d),_0x508187=_0x84424c['getUser'](_0x5417ce);return _0x508187||_0x84424c['addUser']({'id':_0x5417ce,'name':_0x17429d});}['_createSuggestion'](_0x45d193,_0x2ba86a,_0x16b384,_0x393537,_0x5f39ae){const _0x20fb04=this['_getAuthorFromId'](_0x393537),_0x1ce699=this['_suggestionFactory']['buildSuggestion'](_0x45d193,_0x2ba86a,_0x16b384,_0x20fb04,_0x5f39ae,_0x3282f6=>{this['_updateSuggestionData'](_0x16b384,{'attributes':_0x3282f6});const _0x1e90fa=this['getSuggestion'](_0x16b384);this['_joinWithAdjacentSuggestions'](new Set([_0x1e90fa])),this['_refreshSuggestionsChain'](new Set([_0x1e90fa]));});return this['listenTo'](_0x1ce699,'accept',()=>{this['_updateSuggestionData'](_0x16b384,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ce699,'discard',()=>{this['_updateSuggestionData'](_0x16b384,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16b384,_0x1ce699),this['_suggestionState']['set'](_0x1ce699,'notReady'),_0x1ce699;}['_splitMarkerName'](_0x471042){const _0x4fcfb4=_0x471042['split'](':');return{'group':_0x4fcfb4[0x0],'type':_0x4fcfb4[0x1],'subType':_0x4fcfb4['length']>=0x5?_0x4fcfb4[0x2]:null,'id':_0x4fcfb4['length']<0x5?_0x4fcfb4[0x2]:_0x4fcfb4[0x3],'authorId':_0x4fcfb4['length']<0x5?_0x4fcfb4[0x3]:_0x4fcfb4[0x4],'markerCount':0x6==_0x4fcfb4['length']?_0x4fcfb4[0x5]:null};}['_breakSuggestionMarker'](_0x5a6dd0,_0x54a3cc,_0x3ba4bd){const _0x181b17=_0x5a6dd0['getFirstRange'](),_0x1e4349=_0x181b17['start'],_0x1b539f=_0x181b17['end'];this['_setSuggestionRange'](_0x5a6dd0,this['_model']['createRange'](_0x1e4349,_0x54a3cc));const _0x55a9d8=_0x30a933(),_0x1ac8da=_0x5a6dd0['creator']['id'],_0x454f15=_0x5a6dd0['type']+(_0x5a6dd0['subType']?':'+_0x5a6dd0['subType']:'');this['_setSuggestionData']({'id':_0x55a9d8,'type':_0x454f15,'createdAt':new Date(),'authorId':_0x1ac8da,'originalSuggestionId':_0x5a6dd0['id'],'attributes':_0x5a6dd0['attributes'],'data':_0x5a6dd0['data']});const _0x372eb0=this['_getAttributeKey'](_0x5a6dd0);('formatBlock'==_0x5a6dd0['type']||_0x372eb0&&this['_isBlockAttribute'](_0x372eb0))&&(_0x3ba4bd=this['_model']['createPositionBefore'](_0x3ba4bd['parent'])),this['_addSuggestionMarker'](_0x454f15,_0x55a9d8,_0x1ac8da,this['_model']['createRange'](_0x3ba4bd,_0x1b539f));}['_findSuggestions'](_0x31428f,_0x5a0158=null){const _0x82e701=[],_0x5311f0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31428f)||(_0x31428f=[_0x31428f]);for(const _0x368ad5 of this['getSuggestions']()){if(!_0x368ad5['isInContent'])continue;if(_0x5a0158&&_0x368ad5['type']!=_0x5a0158)continue;let _0x26ec8b=!0x1;for(const _0x398d22 of _0x368ad5['getRanges']()){for(const _0x2bab31 of _0x31428f){const _0x56d5ad=_0x2bab31['start']['isEqual'](_0x398d22['end'])||_0x2bab31['end']['isEqual'](_0x398d22['start']);if(_0x56d5ad||_0x2bab31['getIntersection'](_0x398d22)){const _0x48714a=_0x2bab31['containsRange'](_0x398d22)&&Ot(this['_model']['schema'],_0x398d22['start'],_0x2bab31),_0x3c0dd5=_0x398d22['containsRange'](_0x2bab31)&&Ot(this['_model']['schema'],_0x2bab31['start'],_0x398d22);_0x82e701['push']({'suggestion':_0x368ad5,'meta':{'isOwn':_0x5311f0==_0x368ad5['author'],'isNextTo':_0x56d5ad,'isInsideObject':_0x48714a,'containsRangeInObject':_0x3c0dd5}}),_0x26ec8b=!0x0;break;}}if(_0x26ec8b)break;}}return _0x82e701;}['_addSuggestionMarker'](_0x22f93f,_0x33127e,_0x4be949,_0x48f7fd,_0x43f340){this['_model']['change'](_0x110c82=>{let _0xd90cb3='suggestion:'+_0x22f93f+':'+_0x33127e+':'+_0x4be949;_0x43f340&&(_0xd90cb3=_0xd90cb3+':'+_0x43f340),_0x110c82['addMarker'](_0xd90cb3,{'range':_0x48f7fd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x441b98){const _0x3f0e4d=_0x441b98['previous'],_0x543689=_0x441b98['next'];_0x441b98['previous']=null,_0x441b98['next']=null,null!=_0x3f0e4d&&_0x3f0e4d['next']==_0x441b98&&(_0x3f0e4d['next']=_0x543689),null!=_0x543689&&_0x543689['previous']==_0x441b98&&(_0x543689['previous']=_0x3f0e4d),'ready'==this['_suggestionState']['get'](_0x441b98)&&(this['_suggestionState']['set'](_0x441b98,'removed'),this['fire']('suggestionUnloaded',_0x441b98,_0x3f0e4d,_0x543689));}['_setSuggestionData'](_0x29322e){const _0x405e52=_0x29322e['id'],_0x6ba29e=this['addSuggestionData'](_0x29322e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x43b3bd=this['editor']['plugins']['get']('PendingActions'),_0x466a02=_0x6ba29e['hasComments'],_0x1066f4=_0x6ba29e['subType']?_0x6ba29e['type']+':'+_0x6ba29e['subType']:_0x6ba29e['type'],_0x148404=this['editor']['locale'],_0x57329f=_0x43b3bd['add'](o(_0x148404,'PENDING_ACTION_SUGGESTION')),_0x4aeb01={'id':_0x405e52,'type':_0x1066f4,'hasComments':_0x466a02,'data':_0x29322e['data']||null,'originalSuggestionId':_0x29322e['originalSuggestionId']||null,'attributes':_0x6ba29e['attributes']};this['_adapter']['addSuggestion'](_0x4aeb01)['then'](_0x5b9cf0=>{_0x6ba29e['_saved']=!0x0,_0x43b3bd['remove'](_0x57329f),_0x5b9cf0&&_0x5b9cf0['createdAt']&&(this['_suggestions']['get'](_0x405e52)['createdAt']=_0x5b9cf0['createdAt']);})['catch'](_0x5a5eda=>{throw _0x494922('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x6ba29e['discard']();}),_0x6ba29e['stopListening'](),this['_suggestions']['delete'](_0x6ba29e['id']),this['_suggestionState']['delete'](_0x6ba29e),_0x5a5eda;});}return _0x6ba29e;}['_isBlockAttribute'](_0x2a2833){return this['_blockAttributeKeys']['has'](_0x2a2833);}['_updateSuggestionData'](_0x361602,_0x3e4e74){const _0x1becf4=this['editor']['plugins']['get']('PendingActions'),_0x18d3bb=this['getSuggestion'](_0x361602);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18d3bb['_saved']){const _0x5a4bb9=_0x1becf4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x361602,_0x3e4e74)['then'](()=>{_0x1becf4['remove'](_0x5a4bb9);});}else _0x18d3bb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x361602,_0x3e4e74);});}}['_getSuggestionData'](_0x1109fc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x9ee824('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1109fc);}['_handleNewSuggestionMarker'](_0x50214b){const {id:_0x257ecb,type:_0x251ec6,subType:_0x3fcdf1,authorId:_0x4f13aa}=this['_splitMarkerName'](_0x50214b),_0x362352=this['_suggestions']['get'](_0x257ecb)||this['_createSuggestion'](_0x251ec6,_0x3fcdf1,_0x257ecb,_0x4f13aa,{});switch(this['_checkSuggestionCorrectness'](_0x362352,_0x251ec6,_0x3fcdf1,_0x4f13aa),this['_suggestionState']['get'](_0x362352)){case'notReady':this['_getSuggestionData'](_0x257ecb)['then'](_0x9eac0a=>{let _0xf552f4=Promise['resolve']();_0x9eac0a['hasComments']&&(_0xf552f4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x257ecb})),_0xf552f4['then'](()=>{this['addSuggestionData'](_0x9eac0a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x362352,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x257ecb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x362352,'ready'),this['fire']('suggestionLoaded',_0x362352);break;case'ready':this['fire']('suggestionChanged',_0x362352);}return _0x362352['addMarkerName'](_0x50214b),_0x362352;}['_refreshSuggestionsChain'](_0x4c6397){const _0x50a6eb=Array['from'](_0x4c6397),_0x1d6aaa=_0x50a6eb['filter'](_0x14ee04=>'attribute'==_0x14ee04['type']);this['_refreshAttributeSuggestionsChain'](_0x1d6aaa);const _0x33f10a=_0x50a6eb['filter'](_0x2f05fe=>!_0x2f05fe['isMultiRange']&&'attribute'!=_0x2f05fe['type']),_0x521237=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x428b4a=>!_0x428b4a['isMultiRange']&&'attribute'!=_0x428b4a['type']),_0x415ed4=_0x521237['filter'](_0x5533fe=>!_0x4c6397['has'](_0x5533fe)),_0x2501af=new Map(_0x521237['map'](_0x39f383=>[_0x39f383,this['_suggestionFactory']['getSuggestionCallback'](_0x39f383['type'],_0x39f383['subType'],'chain')])),_0x334343=new Map(_0x521237['map'](_0x267251=>[_0x267251,_0x267251['getFirstRange']()])),_0x45dcf7=new Set(),_0x14fa62=new Set();for(let _0x1106e4=0x0;_0x1106e4<_0x33f10a['length'];_0x1106e4++)_0x3777c7(_0x33f10a[_0x1106e4],_0x33f10a,_0x1106e4+0x1);for(let _0x1301cd=0x0;_0x1301cd<_0x33f10a['length'];_0x1301cd++)_0x3777c7(_0x33f10a[_0x1301cd],_0x415ed4,0x0);const _0x5dee4b=new Set();for(let _0xd24ba8=0x0;_0xd24ba8<_0x33f10a['length'];_0xd24ba8++){const _0x12897a=_0x33f10a[_0xd24ba8];!_0x14fa62['has'](_0x12897a)&&_0x12897a['previous']&&(_0x5dee4b['add'](_0x12897a['previous']),_0x12897a['previous']['next']===_0x12897a&&(_0x12897a['previous']['next']=null),_0x12897a['previous']=null),!_0x45dcf7['has'](_0x12897a)&&_0x12897a['next']&&(_0x5dee4b['add'](_0x12897a['next']),_0x12897a['next']['previous']===_0x12897a&&(_0x12897a['next']['previous']=null),_0x12897a['next']=null);}function _0x3777c7(_0x40132c,_0x23b8a6,_0x44869b){for(let _0x2541e2=_0x44869b;_0x2541e2<_0x23b8a6['length'];_0x2541e2++){const _0x88c884=_0x192609(_0x40132c,_0x23b8a6[_0x2541e2]);_0x88c884&&(_0x88c884[0x0]['next']=_0x88c884[0x1],_0x88c884[0x1]['previous']=_0x88c884[0x0],_0x45dcf7['add'](_0x88c884[0x0]),_0x14fa62['add'](_0x88c884[0x1]));}}function _0x192609(_0x596322,_0x158636){if(_0x596322['author']['id']!==_0x158636['author']['id'])return null;const _0x508712=_0x2501af['get'](_0x596322)(_0x596322,_0x158636,_0x334343['get'](_0x596322),_0x334343['get'](_0x158636));if(!_0x508712)return null;return _0x2501af['get'](_0x158636)(_0x596322,_0x158636,_0x334343['get'](_0x596322),_0x334343['get'](_0x158636))?_0x508712[0x1]['commentThread']&&_0x508712[0x1]['commentThread']['length']?null:_0x508712:null;}_0x5dee4b['size']&&this['_refreshSuggestionsChain'](_0x5dee4b);}['_refreshAttributeSuggestionsChain'](_0x534829){if(0x0==_0x534829['length'])return;const _0x702817=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36662f=>'attribute'==_0x36662f['type']&&_0x36662f['_isDataLoaded']),_0x3e2494=[],_0x2c1cc7=new Map();for(const _0x46950e of _0x702817){const _0x2bc00c=_0x4dc8f2(_0x46950e['attributes']);_0x2c1cc7['has'](_0x2bc00c)||(_0x2c1cc7['set'](_0x2bc00c,_0x3e2494['length']),_0x3e2494['push']([]));const _0x10e79c=_0x2c1cc7['get'](_0x2bc00c);_0x3e2494[_0x10e79c]['push'](_0x46950e);}!(function(){_0x3e2494['sort']((_0xd51fba,_0x1c566b)=>{const _0x6b77c4=_0xd51fba[0x0]['createdAt'],_0x4b6396=_0x1c566b[0x0]['createdAt'];return _0x6b77c4==_0x4b6396?_0xd51fba[0x0]['attributes']['groupId']<_0x1c566b[0x0]['attributes']['groupId']?-0x1:0x1:_0x6b77c4<_0x4b6396?-0x1:0x1;});for(const _0x23f73a of _0x3e2494)_0x23f73a['sort']((_0x33eac3,_0x270284)=>_0x33eac3['id']<_0x270284['id']?-0x1:0x1);}());for(let _0x264628=0x0;_0x264628<_0x3e2494['length'];_0x264628++){if(0x0==_0x3e2494[_0x264628]['length'])continue;const _0x43b48f=[];for(let _0x45ed3f=_0x264628+0x1;_0x45ed3f<_0x3e2494['length'];_0x45ed3f++)0x0!=_0x3e2494[_0x45ed3f]['length']&&_0x1c9a05(_0x3e2494[_0x264628],_0x3e2494[_0x45ed3f])&&_0x43b48f['push'](_0x45ed3f);for(const _0x1b1c1b of _0x43b48f)_0x3e2494[_0x264628]=_0x3e2494[_0x264628]['concat'](_0x3e2494[_0x1b1c1b]),_0x3e2494[_0x1b1c1b]=[];}for(const _0x4a7cbd of _0x3e2494)for(let _0x223cec=0x0;_0x223cec<_0x4a7cbd['length'];_0x223cec++){const _0x54654e=_0x4a7cbd[_0x223cec+0x1]||null;_0x4a7cbd[_0x223cec]['next']!==_0x54654e&&(_0x4a7cbd[_0x223cec]['next']=_0x54654e);}for(const _0x5413b5 of _0x3e2494)for(let _0x2a194b=0x0;_0x2a194b<_0x5413b5['length'];_0x2a194b++){const _0x5bbed7=_0x5413b5[_0x2a194b-0x1]||null;_0x5413b5[_0x2a194b]['previous']!==_0x5bbed7&&(_0x5413b5[_0x2a194b]['previous']=_0x5bbed7);}function _0x1c9a05(_0x19369b,_0xd13cd2){if(_0x19369b[0x0]['attributes']['groupId']!==_0xd13cd2[0x0]['attributes']['groupId']&&_0x19369b[0x0]['author']!==_0xd13cd2[0x0]['author'])return!0x1;if(!function(_0x5bcdd5,_0xe24b6c){if(!_0x5bcdd5['hasComments']&&!_0xe24b6c['hasComments'])return!0x0;if(_0x5bcdd5['hasComments']&&_0xe24b6c['hasComments'])return!0x1;if(_0x5bcdd5['hasComments']&&_0xe24b6c['createdAt']<_0x5bcdd5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe24b6c['hasComments']&&_0x5bcdd5['createdAt']<_0xe24b6c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x19369b[0x0],_0xd13cd2[0x0]))return!0x1;const _0x58f7b6=Tt(_0x19369b[0x0]['attributes'],'groupId'),_0x320c82=Tt(_0xd13cd2[0x0]['attributes'],'groupId');if(!_0x4d1bff(_0x58f7b6,_0x320c82))return!0x1;return!!_0x19369b['every'](_0x179bbf=>_0xd13cd2['some'](_0xdf3dd8=>_0x179bbf['getFirstRange']()['isEqual'](_0xdf3dd8['getFirstRange']())))&&_0xd13cd2['every'](_0x1bf8bf=>_0x19369b['some'](_0x41b331=>_0x1bf8bf['getFirstRange']()['isEqual'](_0x41b331['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xcbe462){const _0x298a1f=Array['from'](_0xcbe462),_0x23827f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x453313=_0x23827f['filter'](_0x1bc7a4=>!_0xcbe462['has'](_0x1bc7a4)),_0x57f85f=new Map(_0x298a1f['map'](_0x1d6052=>[_0x1d6052,this['_suggestionFactory']['getSuggestionCallback'](_0x1d6052['type'],_0x1d6052['subType'],'join')])),_0x58b9ef=new Map(_0x23827f['map'](_0x56ae6a=>[_0x56ae6a,_0x56ae6a['getRanges']()]));for(let _0x4d6344=0x0;_0x4d6344<_0x298a1f['length'];_0x4d6344++){if(_0xca2781(this,_0x298a1f[_0x4d6344],_0x298a1f,_0x4d6344+0x1))return!0x0;}for(let _0x5b9a16=0x0;_0x5b9a16<_0x298a1f['length'];_0x5b9a16++){if(_0xca2781(this,_0x298a1f[_0x5b9a16],_0x453313,0x0))return!0x0;}return!0x1;function _0xca2781(_0x13848e,_0xa2bc21,_0x1dc409,_0x5461e3){for(let _0x30c6f0=_0x5461e3;_0x30c6f0<_0x1dc409['length'];_0x30c6f0++){const _0x315cdb=_0x1dc409[_0x30c6f0];if(_0x315cdb['type']!==_0xa2bc21['type']||_0x315cdb['author']['id']!==_0xa2bc21['author']['id']||_0x315cdb['subType']!==_0xa2bc21['subType'])continue;if(!Jt(_0xa2bc21,_0x315cdb))continue;if('attribute'==_0xa2bc21['type']&&_0xa2bc21['data']['oldValue']!=_0x315cdb['data']['oldValue'])continue;if('attribute'==_0xa2bc21['type']&&_0x13848e['_isBlockAttribute'](_0xa2bc21['data']['key']))continue;if('formatBlock'==_0xa2bc21['type']){const _0xea4669=_0x13848e['editor']['model'],_0x1891f8=_0xa2bc21['getContainedElement']();if(_0x1891f8&&(_0xea4669['schema']['isObject'](_0x1891f8)||_0xea4669['schema']['isLimit'](_0x1891f8)))continue;}const _0x130124=_0x57f85f['get'](_0xa2bc21),_0xd9130b=_0x58b9ef['get'](_0xa2bc21),_0xc52536=_0x58b9ef['get'](_0x315cdb),_0x1c0195=_0xa2bc21['commentThread']&&_0xa2bc21['commentThread']['length'],_0x29fdcb=_0x315cdb['commentThread']&&_0x315cdb['commentThread']['length'];if(!_0x1c0195&&_0x130124(_0xc52536,_0xd9130b))return _0x13848e['_joinSuggestions'](_0x315cdb,_0xa2bc21),_0x58b9ef['delete'](_0xa2bc21),!0x0;if(!_0x29fdcb&&_0x130124(_0xd9130b,_0xc52536))return _0x13848e['_joinSuggestions'](_0xa2bc21,_0x315cdb),_0x58b9ef['delete'](_0x315cdb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1bd770,_0x970f31){if(_0x1bd770['isMultiRange']){for(const _0x2122a0 of _0x970f31['getRanges']())_0x1bd770['addRange'](_0x2122a0);}else{const _0x1cd35c=_0x970f31['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1bd770,this['_model']['createRange'](_0x1bd770['getFirstRange']()['start'],_0x1cd35c));}_0x970f31['removeMarkers']();}['_getMarkerAnnouncementText'](_0x21c6a0,_0x5c630f,_0x4f16ee){const _0x28ca81=_0x21c6a0['startsWith']('format')||_0x21c6a0['startsWith']('attribute')?'FORMATTING':_0x21c6a0['toUpperCase']();return o(this['editor']['locale'],_0x5c630f+'_'+_0x28ca81+'_SUGGESTION_ANNOUNCEMENT',_0x4f16ee);}['_initAriaMarkerChangeAnnouncements'](){const _0x18100c=this['editor'];if(!_0x18100c['ui'])return;const {ariaLiveAnnouncer:_0x4cb29c}=_0x18100c['ui'];_0x499b97(this['_model'],({left:_0x7ab21d,entered:_0x3eb42e})=>{for(const _0x126943 of _0x7ab21d){const {group:_0x5d65d8,type:_0x2d901e}=this['_splitMarkerName'](_0x126943['name']);if('suggestion'===_0x5d65d8){_0x4cb29c['announce'](this['_getMarkerAnnouncementText'](_0x2d901e,'LEAVE'));break;}}for(const _0x760c0e of _0x3eb42e){const {group:_0x5a75da,type:_0x5b7294}=this['_splitMarkerName'](_0x760c0e['name']);if('suggestion'===_0x5a75da){_0x4cb29c['announce'](this['_getMarkerAnnouncementText'](_0x5b7294,'ENTER',_0x45ae70(_0x2f3654)));break;}}});}['_processAttributeChanges'](_0x7a08de){if(this['_recordAttributeSuggestions'])return!0x1;const _0x462f0d=this['editor'],_0x342916=_0x462f0d['model']['document']['differ']['getChanges']();if(0x0==_0x342916['length'])return!0x1;const _0x3686df=[],_0x9f10e7=_0x342916['filter'](_0x3d8cd0=>'attribute'==_0x3d8cd0['type']),_0xa2f72=_0x342916['filter'](_0x220fa3=>'insert'==_0x220fa3['type']&&'$text'!=_0x220fa3['name']),_0xbcf51d=_0x342916['filter'](_0x5c4875=>'remove'==_0x5c4875['type']&&'$text'!=_0x5c4875['name']);for(const _0x47f4ee of _0x9f10e7)_0x3686df['push']({'key':_0x47f4ee['attributeKey'],'newValue':_0x47f4ee['attributeNewValue'],'oldValue':_0x47f4ee['attributeOldValue'],'range':Pt(_0x47f4ee['range'],_0x462f0d['model'])});for(const _0x2e7022 of _0xa2f72){const _0x3c7a45=_0xbcf51d['find'](_0xb7c421=>_0xb7c421['position']['isEqual'](_0x2e7022['position']));_0x3c7a45&&_0x3686df['push']({'key':m,'newValue':_0x2e7022['name'],'oldValue':_0x3c7a45['name'],'range':_0x462f0d['model']['createRangeOn'](_0x2e7022['position']['nodeAfter'])});}return 0x0!=_0x3686df['length']&&this['_reduceExistingSuggestions'](_0x7a08de,_0x3686df);}['_processAttributeSuggestions'](_0x3d2b9d){let _0x49b165=!0x1;const _0x27dace=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31c759=>_0x31c759['data']['newRange']&&_0x31c759['name']['startsWith']('suggestion:attribute:'));for(const _0x5ab54d of _0x27dace){const {subType:_0x3a780c,id:_0x311fbe}=this['_splitMarkerName'](_0x5ab54d['name']),_0x30b4da=_0x3a780c['split']('|')[0x0];for(const _0x190b26 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x190b26['id']!=_0x311fbe&&'attribute'==_0x190b26['type']&&_0x190b26['data']&&_0x190b26['data']['key']==_0x30b4da&&_0x190b26['getFirstRange']()['isIntersecting'](_0x5ab54d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x190b26,_0x5ab54d['data']['newRange'],_0x3d2b9d),_0x49b165=!0x0);}return _0x49b165;}['_recordAttributeChanges'](_0x37b89a){this['_recordAttributeSuggestions']=!0x0,_0x37b89a();}['_isRegisteredAttribute'](_0x23af35){const _0x27904f=this['_isBlockAttribute'](_0x23af35),_0x7da5ba=this['_inlineAttributeKeys']['has'](_0x23af35);return _0x27904f||_0x7da5ba;}['_reduceExistingSuggestions'](_0x3305f4,_0x10ebf5){if(0x0==_0x10ebf5['length'])return!0x1;let _0x49b5ba=!0x1;for(const _0x2d33d0 of _0x10ebf5){const _0xb83586=this['_findSuggestions'](_0x2d33d0['range'],'attribute')['filter'](_0x51313a=>!_0x51313a['meta']['isNextTo'])['map'](_0x38703f=>_0x38703f['suggestion']),_0x55e377=_0x4dc8f2({'newValue':_0x2d33d0['newValue']});_0xb83586['filter'](_0x17fb0e=>{const [_0x4c68c6,_0x3de279]=_0x17fb0e['subType']['split']('|');return _0x4c68c6==_0x2d33d0['key']&&_0x3de279!=_0x55e377;})['forEach'](_0x796446=>{this['_reduceSuggestionAttributeRange'](_0x796446,_0x2d33d0['range'],_0x3305f4),_0x49b5ba=!0x0;});}return _0x49b5ba;}['_reduceSuggestionAttributeRange'](_0x5be168,_0xf33f02,_0x51e01b){const _0xd5d445=_0x5be168['getFirstRange']()['getDifference'](_0xf33f02);0x0!==_0xd5d445['length']?0x1!==_0xd5d445['length']?this['_breakSuggestionMarker'](_0x5be168,_0xf33f02['start'],_0xf33f02['end']):this['_setSuggestionRange'](_0x5be168,_0xd5d445[0x0]):_0x51e01b['removeMarker'](_0x5be168['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21dff2){this['_editor']=_0x21dff2,this['_model']=_0x21dff2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x30af5d,_0x97281f,_0x4ed9c1,_0x2e0ffa,_0x23dcc8,_0x4bf733){return new u(this['_model'],{'type':_0x30af5d,'subType':_0x97281f,'id':_0x4ed9c1,'author':_0x2e0ffa,'creator':_0x2e0ffa,'attributes':_0x23dcc8,'onAttributesChange':_0x4bf733,'onAccept':(..._0x2bbf46)=>this['getSuggestionCallback'](_0x30af5d,_0x97281f,'accept')(..._0x2bbf46),'onDiscard':(..._0xb6fed3)=>this['getSuggestionCallback'](_0x30af5d,_0x97281f,'discard')(..._0xb6fed3)});}['registerCustomCallback'](_0x463fd0,_0x29a2ac,_0x5d5709,_0x159473){const _0x3e9007=_0x463fd0+':'+_0x29a2ac+':'+_0x5d5709;this['_customCallbacks']['set'](_0x3e9007,_0x159473);}['getSuggestionCallback'](_0x47d95f,_0x1643a4,_0x33292d){const _0x228e42=_0x47d95f+':'+_0x1643a4+':'+_0x33292d;return this['_customCallbacks']['get'](_0x228e42)||this['_defaultCallbacks']['get'](_0x47d95f+':'+_0x33292d);}['_registerDefaultCallbacks'](){const _0x4c4d16=()=>!0x1,_0x1f5572=_0x2d8dcd=>{_0x2d8dcd['sort']((_0x49feed,_0x5ee711)=>_0x49feed['start']['isBefore'](_0x5ee711['start'])?0x1:-0x1),this['_model']['change'](_0x152d9b=>{for(const _0x162b4b of _0x2d8dcd){let _0x5e99d3;_0x5e99d3=_0x162b4b['end']['isAtEnd']&&_0x162b4b['end']['parent']==_0x162b4b['start']['nodeAfter']?_0x152d9b['createSelection'](_0x162b4b['start']['nodeAfter'],'on'):_0x152d9b['createSelection'](_0x162b4b),this['_model']['deleteContent'](_0x5e99d3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5994a4=(_0x4e9df1,_0x460086)=>{_0x460086&&this['_model']['change'](_0x1a55a3=>{const {commandName:_0x1dd26c,commandParams:_0x8eeb77=[]}=_0x460086,_0x48edbe=_0x4e9df1['map'](_0x2cb35b=>(Vt(_0x2cb35b)&&(_0x2cb35b=this['_model']['createRange'](_0x2cb35b['end'])),_0x2cb35b))['filter'](_0x43ac8f=>'$graveyard'!==_0x43ac8f['root']['rootName']);if(_0x48edbe['length']<0x1)return;const _0x5deed6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b4d54=>_0x3f00a1['fromRange'](_0x5b4d54));_0x1a55a3['setSelection'](_0x48edbe);for(const _0x3ea52a of this['_editor']['commands']['commands']())_0x3ea52a['refresh']();_0x8eeb77['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dd26c,..._0x8eeb77);const _0x18559c=_0x5deed6['filter'](_0x52ac14=>'$graveyard'!=_0x52ac14['root']['rootName']);_0x18559c['length']>0x0&&_0x1a55a3['setSelection'](_0x18559c);for(const _0x2cdc1e of _0x5deed6)_0x2cdc1e['detach']();});},_0xb578e8=(_0x598a71,_0xaf96ea)=>0x1==_0x598a71['length']&&0x1==_0xaf96ea['length']&&_0x598a71[0x0]['end']['isEqual'](_0xaf96ea[0x0]['start']),_0x5c7f90=(_0x84d265,_0x31571a,_0x1af29a,_0x5f4295)=>Ht(_0x84d265,_0x31571a,_0x1af29a,_0x5f4295,this['_model'])?[_0x84d265,_0x31571a]:Ht(_0x31571a,_0x84d265,_0x5f4295,_0x1af29a,this['_model'])?[_0x31571a,_0x84d265]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4c4d16),this['_defaultCallbacks']['set']('insertion:discard',_0x1f5572),this['_defaultCallbacks']['set']('insertion:join',_0xb578e8),this['_defaultCallbacks']['set']('insertion:chain',_0x5c7f90),this['_defaultCallbacks']['set']('deletion:accept',_0x1f5572),this['_defaultCallbacks']['set']('deletion:discard',_0x4c4d16),this['_defaultCallbacks']['set']('deletion:join',_0xb578e8),this['_defaultCallbacks']['set']('deletion:chain',_0x5c7f90),this['_defaultCallbacks']['set']('formatInline:accept',_0x5994a4),this['_defaultCallbacks']['set']('formatInline:discard',_0x4c4d16),this['_defaultCallbacks']['set']('formatInline:join',_0xb578e8),this['_defaultCallbacks']['set']('formatInline:chain',_0x4c4d16),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5994a4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4c4d16),this['_defaultCallbacks']['set']('formatBlock:join',_0xb578e8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4c4d16),this['_defaultCallbacks']['set']('attribute:accept',_0x4c4d16),this['_defaultCallbacks']['set']('attribute:discard',(_0x1dfb36,_0x4f6f21)=>{if(!_0x4f6f21)return;const _0xc7ab67=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x21fc5a=>{if(_0x4f6f21['key']==m)for(const _0x189eca of _0x1dfb36){const _0x3d7d1e=_0x189eca['start']['nodeAfter'],_0x2373ea=_0x4f6f21['oldValue'];_0x21fc5a['rename'](_0x3d7d1e,_0x2373ea);}else{if(_0xc7ab67['_isBlockAttribute'](_0x4f6f21['key'])){for(const _0x23a8e4 of _0x1dfb36)void 0x0!==_0x4f6f21['oldValue']?_0x21fc5a['setAttribute'](_0x4f6f21['key'],_0x4f6f21['oldValue'],_0x23a8e4['start']['nodeAfter']):_0x21fc5a['removeAttribute'](_0x4f6f21['key'],_0x23a8e4['start']['nodeAfter']);}else{for(const _0x175e6c of _0x1dfb36)_0x4f6f21['oldValue']?_0x21fc5a['setAttribute'](_0x4f6f21['key'],_0x4f6f21['oldValue'],_0x175e6c):_0x21fc5a['removeAttribute'](_0x4f6f21['key'],_0x175e6c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xb578e8);}}function Ot(_0x3e5af5,_0x582cb1,_0x2ff338){for(const _0x54e5d3 of _0x582cb1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x54e5d3['root']==_0x54e5d3)return!0x1;if(!_0x2ff338['containsItem'](_0x54e5d3))return!0x1;if(_0x3e5af5['isObject'](_0x54e5d3)||_0x3e5af5['isLimit'](_0x54e5d3))return!0x0;}return!0x1;}function Vt(_0x5affb2){return _0x5affb2['end']['parent']==_0x5affb2['start']['nodeAfter']&&_0x5affb2['end']['isAtStart'];}function Ut(_0x5e3a34,_0x61c92c,_0x6fb89b,_0x27d039){const _0x1865d8=_0x4c3ff3=>!_0x4c3ff3['item']['is']('$textProxy')&&!_0x27d039['isObject'](_0x4c3ff3['item']),_0x5ab24e=_0x5e3a34['start']['getLastMatchingPosition'](_0x1865d8),_0x5e8ca2=_0x5e3a34['end']['getLastMatchingPosition'](_0x1865d8,{'direction':'backward'});return(!_0x5e3a34['start']['isEqual'](_0x5ab24e)||!_0x5e3a34['end']['isEqual'](_0x5e8ca2))&&(_0x5ab24e['isBefore'](_0x5e8ca2)?_0x6fb89b['updateMarker'](_0x61c92c,{'range':_0x6fb89b['createRange'](_0x5ab24e,_0x5e8ca2)}):_0x6fb89b['removeMarker'](_0x61c92c),!0x0);}function Gt(_0x3bfd7d){return _0x4dc8f2(_0x3bfd7d);}function Ft(_0x8db2ba){const _0x57fdc1=_0x8db2ba['start']['nodeAfter'];return _0x57fdc1&&_0x57fdc1['is']('element');}function Pt(_0xdf5581,_0x2b138d){return null==_0xdf5581['end']['nodeBefore']&&_0xdf5581['end']['parent']==_0xdf5581['start']['nodeAfter']?Lt(_0xdf5581['start']['nodeAfter'],_0x2b138d):_0xdf5581;}function Lt(_0x23e9d1,_0x36330f){const _0x26ba74=_0x36330f['schema']['isObject'](_0x23e9d1)||_0x36330f['schema']['isSelectable'](_0x23e9d1);return _0x36330f['createRange'](_0x36330f['createPositionAt'](_0x23e9d1,'before'),_0x26ba74?_0x36330f['createPositionAfter'](_0x23e9d1):_0x36330f['createPositionAt'](_0x23e9d1,'end'));}function Ht(_0x1a50d0,_0x4166c6,_0x5317fc,_0x439d22,_0x94ea6b){if(_0x1a50d0['next'])return!0x1;if(!Jt(_0x1a50d0,_0x4166c6))return!0x1;if(_0x5317fc['end']['isEqual'](_0x439d22['start']))return!0x0;if(_0x1a50d0['type']!=_0x4166c6['type'])return!0x1;if(!_0x5317fc['end']['isTouching'](_0x439d22['start']))return!0x1;const _0x2fa72a=_0x94ea6b['createRange'](_0x5317fc['end'],_0x439d22['start'])['getWalker']();for(const _0x34fd43 of _0x2fa72a)if(['elementStart','elementEnd']['includes'](_0x34fd43['type'])&&_0x94ea6b['schema']['isLimit'](_0x34fd43['item']))return!0x1;return!0x0;}function Jt(_0x3c9239,_0x2ef30e){if(!_0x3c9239['_isDataLoaded']||!_0x2ef30e['_isDataLoaded'])return!0x1;const _0x1ef69a=new Set(Object['keys'](_0x3c9239['attributes'])),_0x162783=new Set(Object['keys'](_0x2ef30e['attributes']));if(_0x1ef69a['delete']('groupId'),_0x162783['delete']('groupId'),0x0==_0x1ef69a['size']&&0x0==_0x162783['size'])return!0x0;if(_0x1ef69a['size']!=_0x162783['size'])return!0x1;const _0x15bbb0={..._0x3c9239['attributes']},_0x79e450={..._0x2ef30e['attributes']};return delete _0x15bbb0['groupId'],delete _0x79e450['groupId'],JSON['stringify'](_0x15bbb0)==JSON['stringify'](_0x79e450);}function qt(_0x566711,_0x1d6d89){const _0x176fb1=zt(_0x566711['attributes']),_0x46da23=zt(_0x1d6d89);if(!_0x566711['_isDataLoaded'])return!0x1;for(const _0x35be5c of Object['keys'](_0x46da23))if(!_0x4d1bff(_0x176fb1[_0x35be5c],_0x46da23[_0x35be5c]))return!0x1;return!0x0;}function zt(_0x36cbd0){const _0x4ad4b4=Object['assign']({},_0x36cbd0);return delete _0x4ad4b4['skipNestingCheck'],delete _0x4ad4b4['tablePasteChainId'],_0x4ad4b4;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0xecfd75(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3bed93,_0x5665ed,_0x3a13b0,_0x4f5dcb){super(),this['model']=_0x5665ed,this['view']=_0x3a13b0,this['commentThreadController']=_0x4f5dcb,this['_editor']=_0x3bed93,this['_acceptCommand']=_0x3bed93['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3bed93['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x45f89d,_0x112b22)=>_0x45f89d||_0x112b22),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5027b1=>_0x5027b1&&this['_editor']['model']['canEditAt'](_0x5665ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ae5c2=>_0x4ae5c2&&this['_editor']['model']['canEditAt'](_0x5665ed['getRanges']())),this['_pendingAction']=null,_0x3a13b0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a13b0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a13b0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a13b0,'change:isDirty',()=>{_0x3a13b0['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 _0x26774e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x26774e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x35fcbe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x236351,_0x29a445,_0x1ae38f,_0x2aa725){super(_0x236351),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4d57e8(_0x236351,o(_0x236351,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x29a445['authoredAt']),this['bind']('authoredAt')['to'](_0x29a445),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x29a445,'authoredAt',this,'descriptionParts',(_0x577c81,_0x1f84d1,_0x5d191d)=>{const _0x18b276=_0x5d191d['map'](_0x5ccbd5=>ls(_0x5ccbd5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x577c81-0x1,_0x29a445['author']['name'],_0x1f84d1?_0x2aa725['formatDateTime'](_0x1f84d1):'',new DOMParser()['parseFromString'](_0x18b276,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3700b4(),this['focusTracker']=new _0x2d9544(),this['keystrokes']=new _0xfa6b48(),this['focusCycler']=new _0x815bc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26107b=>_0x26107b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x29a445,this['_localUser']=_0x1ae38f,this['_config']=_0x2aa725,_0x2aa725['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x136a89(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x51573c}=this['_config'];this['commentsListView']=new _0x51573c(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',_0x39fc4f=>_0x39fc4f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x563426,_0x433667)=>_0x563426||!!_0x433667);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d2785}=this['_config'],_0x5355fe=new _0x4d2785(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4273d3=_0x5355fe['commentInputView'];return _0x5355fe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4273d3,'value',(_0x8ca762,_0x92045d,_0x25acab)=>!!_0x25acab||_0x8ca762&&!_0x92045d),_0x4273d3['on']('submit',(_0x2358ac,_0x533616)=>{this['fire']('addComment',_0x533616),_0x4273d3['editor']['setData']('');}),_0x4273d3['on']('cancel',()=>this['focus']()),_0x4273d3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5355fe;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1e6e3b,_0x44f11c,_0x585970,_0x403127){super(_0x1e6e3b,_0x44f11c,_0x585970,_0x403127),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x199477=>_0x199477&&_0x199477[0x0]?_0x199477[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x39691f,_0xf7a5d2)=>{let _0x488881='';for(const _0x374b2b of _0x39691f)_0x488881+='<p>'+ls(_0x374b2b['content'],_0x374b2b['color'])+'</p>';return _0xf7a5d2?_0x488881:_0x5b6ce9(_0x488881,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x403127['SuggestionView'](_0x1e6e3b,_0x44f11c,{'formatDateTime':_0x403127['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xe67361=this['bindTemplate'],_0x450a06=[this['suggestionView']];return this['commentsListView']&&_0x450a06['push'](this['commentsListView']),this['commentThreadInputView']&&_0x450a06['push'](this['commentThreadInputView']),_0x450a06['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xe67361['if']('isActive','ck-suggestion-wrapper--active'),_0xe67361['to']('type',_0x1a5543=>'ck-suggestion-'+_0x1a5543),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xe67361['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x450a06};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x35fcbe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x28d971,_0x45f5eb,_0x1cf9f0){super(_0x28d971),this['_model']=_0x45f5eb,this['_config']=_0x1cf9f0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45f5eb),this['acceptButton']=this['_createButton'](o(_0x28d971,'Accept\x20suggestion'),_0x24919e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x28d971,'Discard\x20suggestion'),_0x24919e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2251ad(_0x28d971,_0x45f5eb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3700b4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2d9544(),this['keystrokes']=new _0xfa6b48(),this['focusCycler']=new _0x815bc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xee353c=>_0xee353c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2ac768=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2ac768['innerHTML']=this['description'],this['on']('change:description',(_0x4958c3,_0x2726f1,_0x466645)=>{_0x2ac768['innerHTML']=_0x466645;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x449ba9=this['bindTemplate'],_0x753af3=[{'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':_0x449ba9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x449ba9['to']('authoredAt',_0x2cc9d9=>this['_config']['formatDateTime'](_0x2cc9d9))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x753af3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x753af3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3370e2,_0x128284,_0x27d883,_0x2d09a2,_0x4ac503){const _0x2454b4=new _0x1b29a6(this['locale']);return _0x2454b4['set']({'label':_0x3370e2,'icon':_0x128284,'tooltip':!0x0,'tooltipPosition':_0x4ac503}),_0x2454b4['extendTemplate']({'attributes':{'class':_0x27d883}}),_0x2454b4['on']('execute',()=>{this['fire'](_0x2d09a2,this['_model']['id']);}),_0x2454b4;}['_setupKeyboardNavigation'](){const _0x4ecae2=this['element'];this['keystrokes']['listenTo'](_0x4ecae2);for(const _0x4371f6 of this['focusables'])this['focusTracker']['add'](_0x4371f6['element']),this['keystrokes']['listenTo'](_0x4371f6['element']);this['keystrokes']['set']('enter',(_0x1e5db7,_0x161429)=>{_0x4ecae2===_0x1e5db7['target']&&(this['focusCycler']['focusFirst'](),_0x161429());}),this['keystrokes']['set']('esc',(_0x902a55,_0x268b7e)=>{_0x4ecae2!==_0x902a55['target']&&(this['focus'](),_0x268b7e());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2be873{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x10e3b2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x194c57){super(_0x194c57),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5244b8=this['editor']['config'];_0x5244b8['define']('trackChanges.SuggestionThreadView',re),_0x5244b8['define']('trackChanges.SuggestionView',ce),_0x5244b8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5244b8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xbe57f1,_0x821c33){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x189208,_0x5aaf03]of this['_handleControllerBuffer']){const _0xd2fe27=this['_suggestionToController']['has'](_0x189208);_0xd2fe27||_0x5aaf03?_0xd2fe27&&_0x5aaf03&&this['_destroyController'](_0x189208):this['_initializeController'](_0x189208);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xbe57f1,_0x821c33);}['init'](){const _0x351623=this['editor'],_0x3e5250=_0x351623['plugins']['get']('TrackChangesEditing'),_0x22d587=_0x351623['plugins']['get']('Annotations'),_0x41348e=_0x351623['plugins']['get']('EditorAnnotations'),_0x4ac80e=_0x351623['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41348e['addSourceCollector'](()=>{const _0x9d863e=[];for(const [_0x6c5e21,_0x347ab7]of Array['from'](this['_suggestionToController'])){const _0x24fbbf=_0x6c5e21['getAllAdjacentSuggestions'](),_0x5a9abe=[];for(const _0x2e020a of _0x24fbbf){if(!_0x2e020a['isInContent'])continue;if(_0x2e020a['isMultiRange']){_0x5a9abe['push'](..._0x2e020a['getRanges']());continue;}const _0x3755c7=_0x2e020a['getFirstRange']();if(_0x5a9abe['length']>0x0){const _0x137fcb=_0x5a9abe[0x0]['getJoined'](_0x3755c7);if(_0x137fcb){_0x5a9abe[0x0]=_0x137fcb;continue;}}_0x5a9abe['push'](_0x3755c7);}_0x9d863e['push']([_0x347ab7['view'],_0x5a9abe]);}return _0x9d863e;}),this['listenTo'](_0x3e5250,'suggestionLoaded',(_0x5c472a,_0x50e035)=>{this['listenTo'](_0x50e035,'change:previous',(_0x4b1259,_0x38c5a3,_0x27ef87,_0x47a056)=>{_0x50e035['isInContent']&&(null==_0x27ef87?(this['_updateController'](_0x47a056['head']),this['_handleSuggestionControllerDelayed'](_0x50e035,!0x1)):(this['_updateController'](_0x27ef87['head']),null==_0x47a056&&this['_handleSuggestionControllerDelayed'](_0x50e035,!0x0)));}),null!==_0x50e035['previous']?this['_updateController'](_0x50e035['head']):this['_handleSuggestionControllerDelayed'](_0x50e035,!0x1);}),this['listenTo'](_0x3e5250,'suggestionUnloaded',(_0x4ab2cb,_0x4ca8da,_0x258866)=>{this['stopListening'](_0x4ca8da,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4ca8da),this['_suggestionToController']['has'](_0x4ca8da)&&this['_destroyController'](_0x4ca8da),_0x258866&&this['_updateController'](_0x258866['head']);}),this['listenTo'](_0x3e5250,'suggestionChanged',(_0xd30bc3,_0x246def)=>{this['_updateController'](_0x246def);}),this['listenTo'](_0x22d587,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ac80e,'addComment',(_0x3c9e11,{threadId:_0x59481d,isFromAdapter:_0x3317c8})=>{if(_0x3317c8||!_0x3e5250['hasSuggestion'](_0x59481d))return;const _0x79cfc8=_0x3e5250['getSuggestion'](_0x59481d);this['_suggestionToController']['get'](_0x79cfc8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x317045=this['editor']['plugins']['get']('Annotations'),_0x457ae7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x302ca3=Array['from'](_0x317045['activeAnnotations'],_0x24bbfe=>_0x24bbfe['innerView'])['filter'](_0x424a69=>this['_viewToController']['has'](_0x424a69)),_0x29d949=[];for(const _0x432c36 of _0x302ca3){const _0x3179c4=this['_viewToController']['get'](_0x432c36)['model']['getAllAdjacentSuggestions']();_0x29d949['push'](..._0x3179c4['reduce']((_0x30a516,_0x24f4de)=>[..._0x30a516,..._0x24f4de['getMarkerNames']()],[]));}_0x457ae7['activeMarkers']=_0x29d949;}['_addUIComponentsToFactory'](){const _0x3cf014=this['editor'],_0x2fb4c1=_0x3cf014['locale'],_0x227caf=o(_0x2fb4c1,'Track\x20changes'),_0x2d3a43=new Wt([{'type':'switchbutton','model':new _0xe79664({'withText':!0x0,'isToggleable':!0x0,'label':_0x227caf,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x845e41 of _0x2d3a43)if(me(_0x845e41)){const _0x26ff18=_0x3cf014['commands']['get'](_0x845e41['model']['commandName']);_0x845e41['model']['bind']('isOn','isEnabled')['to'](_0x26ff18,'value','isEnabled');}_0x3cf014['ui']['componentFactory']['add']('trackChanges',_0x594d5d=>this['_createToolbarButton'](_0x594d5d,_0x2d3a43,_0x227caf)),_0x3cf014['ui']['componentFactory']['add']('menuBar:trackChanges',_0x374ec0=>this['_createMenuBarMenu'](_0x374ec0,_0x2d3a43,_0x227caf));}['_createToolbarButton'](_0x36a769,_0x56e05e,_0x156a74){const _0x10e106=Qt(_0x36a769,_0x5e8136),_0x55e860=this['editor']['commands']['get']('trackChanges');_0x10e106['buttonView']['set']({'tooltip':_0x156a74,'label':_0x156a74,'icon':he}),_0x10e106['buttonView']['bind']('isOn')['to'](_0x55e860,'value'),_0x10e106['buttonView']['on']('execute',()=>{_0x55e860['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x10e106,_0x56e05e,{'role':'menu'});const _0x2bdaa2=[];for(const _0x121786 of _0x56e05e)me(_0x121786)&&_0x2bdaa2['push'](this['editor']['commands']['get'](_0x121786['model']['commandName']));const _0x3cc33c=_0x10e106['buttonView'];return _0x3cc33c['actionView']['unbind']('isEnabled'),_0x3cc33c['arrowView']['unbind']('isEnabled'),_0x3cc33c['actionView']['bind']('isEnabled')['to'](_0x55e860,'isEnabled'),_0x3cc33c['arrowView']['bind']('isEnabled')['toMany'](_0x2bdaa2,'isEnabled',(..._0x245e60)=>_0x245e60['some'](_0x4929bc=>_0x4929bc)),_0x10e106['on']('execute',_0x544860=>{this['editor']['execute'](_0x544860['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10e106;}['_createMenuBarMenu'](_0x37f8c8,_0x482c20,_0x1fbbef){const _0x134e0e=new Yt(_0x37f8c8),_0x29a303=this['editor']['commands']['get']('trackChanges');_0x134e0e['buttonView']['set']({'label':_0x1fbbef,'icon':he});const _0x510768=new Zt(_0x37f8c8);for(const _0x1eb2db of _0x482c20){if('separator'==_0x1eb2db['type']){_0x510768['items']['add'](new Xt(_0x37f8c8));continue;}const _0x23e564=new te(_0x37f8c8,_0x134e0e),_0x7ad0c5=new _0x14497f(_0x37f8c8),_0x796cb3=_0x1eb2db['model'];_0x7ad0c5['bind'](...Object['keys'](_0x796cb3))['to'](_0x796cb3),_0x7ad0c5['delegate']('execute')['to'](_0x134e0e),_0x7ad0c5['on']('execute',()=>{this['editor']['execute'](_0x796cb3['commandName']),this['editor']['editing']['view']['focus']();}),_0x23e564['children']['add'](_0x7ad0c5),_0x510768['items']['add'](_0x23e564);}return _0x134e0e['bind']('isEnabled')['to'](_0x29a303,'isEnabled'),_0x134e0e['panelView']['children']['add'](_0x510768),_0x134e0e;}['_initializeController'](_0x3a6a4e){const _0x54c07a=this['editor'],_0x35cc6a=_0x54c07a['config'],_0x246984=_0x54c07a['plugins']['get']('Annotations'),_0x18e9fa=_0x54c07a['plugins']['get']('CommentsRepository'),_0x4a6462=_0x54c07a['plugins']['get']('EditorAnnotations'),_0x4cc353=_0x54c07a['plugins']['get'](_0x10e3b2)['me'],_0x6eab91=_0x35cc6a['get']('trackChanges')['SuggestionThreadView'],_0x132491=_0x35cc6a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2850d0,CommentThreadInputView:_0x2d9ea4}=_0x54c07a['plugins']['get']('CommentsUI');let _0x539f7e,_0x2981ec,_0x4ffb45;this['_annotationViews']['has'](_0x3a6a4e['id'])?(_0x2981ec=this['_annotationViews']['get'](_0x3a6a4e['id']),_0x539f7e=_0x2981ec['mainView']):(_0x539f7e=new _0x6eab91(_0x54c07a['locale'],_0x3a6a4e,_0x4cc353,{'disableComments':this['_disableComments'],'editorConfig':_0x35cc6a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x35cc6a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35cc6a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35cc6a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2e8695(_0x35cc6a['get']('locale')),'CommentView':_0x35cc6a['get']('comments')['CommentView'],'CommentsListView':_0x2850d0,'CommentThreadInputView':_0x2d9ea4,'SuggestionView':_0x132491}),_0x539f7e['suggestionView']['acceptButton']['on']('execute',()=>{_0x54c07a['editing']['view']['focus']();}),_0x539f7e['suggestionView']['discardButton']['on']('execute',()=>{_0x54c07a['editing']['view']['focus']();}),_0x2981ec=_0x246984['createAnnotationView'](this['editor']['locale'],_0x539f7e),_0x2981ec['bind']('isDirty')['to'](_0x539f7e,'isDirty'),_0x2981ec['bind']('length')['to'](_0x539f7e),_0x2981ec['bind']('type')['to'](_0x539f7e,'type',_0x485bf9=>'suggestion-'+_0x485bf9),_0x539f7e['on']('escape',()=>{_0x4ffb45['fire']('escape');}),this['_annotationViews']['set'](_0x3a6a4e['id'],_0x2981ec));const _0x3618eb=_0x18e9fa['createCommentThreadController'](_0x3a6a4e['commentThread'],_0x539f7e),_0x51d417=new ae(_0x54c07a,_0x3a6a4e,_0x539f7e,_0x3618eb),_0x4c0124=_0x3a6a4e['getAllAdjacentSuggestions']()['filter'](_0x2b25ed=>_0x2b25ed['isInContent']);_0x539f7e['descriptionParts']=_0x54c07a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c0124),this['_suggestionToController']['set'](_0x3a6a4e,_0x51d417),this['_viewToController']['set'](_0x539f7e,_0x51d417),_0x4ffb45=_0x246984['createAnnotation']({'view':_0x2981ec,'target':()=>{const _0x598786=[],_0x35d382=_0x3a6a4e['getAllAdjacentSuggestions']()['filter'](_0x425e76=>_0x425e76['isInContent']);for(const _0x4fdd28 of _0x35d382)_0x598786['push'](..._0x4fdd28['getMarkers']());return _0x1d452d(_0x54c07a['editing'],_0x598786);},'type':()=>'suggestion-'+_0x51d417['view']['type']}),_0x18e9fa['_bindAnnotationToEditors'](_0x539f7e,_0x4ffb45),_0x246984['add'](_0x4ffb45),_0x4a6462['registerAnnotation'](_0x4ffb45);}['_destroyController'](_0x3c0956){const _0x1caf52=this['editor']['plugins']['get']('CommentsRepository'),_0x53d75d=this['editor']['plugins']['get']('Annotations'),_0x271d6f=this['_suggestionToController']['get'](_0x3c0956),_0x2ba09f=_0x271d6f['view'],_0x3c852d=_0x53d75d['getByInnerView'](_0x2ba09f);_0x1caf52['_unbindEditors'](_0x2ba09f),_0x3c852d&&_0x53d75d['remove'](_0x3c852d),this['_suggestionToController']['delete'](_0x3c0956),this['_viewToController']['delete'](_0x2ba09f),_0x271d6f['destroy']();}['_updateController'](_0x2ab972){if(!_0x2ab972['isInContent']||!this['_suggestionToController']['has'](_0x2ab972))return;const _0x1d3d0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20e6eb=this['_suggestionToController']['get'](_0x2ab972),_0x1649a6=_0x2ab972['getAllAdjacentSuggestions']();_0x20e6eb['view']['descriptionParts']=_0x1d3d0a['descriptionFactory']['getDescriptions'](_0x1649a6);}['destroy'](){for(const _0x26f6af of this['_suggestionToController']['keys']())this['_destroyController'](_0x26f6af);for(const _0x1376a4 of this['_annotationViews']['values']())_0x1376a4['mainView']['destroy']();super['destroy']();}}function me(_0x2fa636){return'model'in _0x2fa636;}class k extends _0x2be873{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x1f1a48){this['editor']['plugins']['get'](p)['adapter']=_0x1f1a48;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2aa517){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2aa517);}['getSuggestions']({skipNotAttached:_0x2433e3=!0x1,toJSON:_0x35f63a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2433e3,'toJSON':_0x35f63a});}['getSuggestion'](_0x2f247d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f247d);}}const T=['Pagination'];class P extends _0x2be873{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x541848=this['editor'];if(_0x541848['config']['define']('trackChangesData.editorCreator',_0x476188=>{const _0x5ba2c6=_0x541848['model']['document']['getRootNames']()['reduce']((_0x24e3c3,_0xff70af)=>(_0x24e3c3[_0xff70af]='',_0x24e3c3),{});return _0x541848['constructor']['create'](_0x5ba2c6,_0x476188);}),'function'!=typeof _0x541848['config']['get']('trackChangesData')['editorCreator'])throw new _0x9ee824('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29574e){return N(this['editor'],!0x0,_0x29574e);}['getDataWithDiscardedSuggestions'](_0x72eecd){return N(this['editor'],!0x1,_0x72eecd);}}class D extends _0x2be873{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x129548){super(_0x129548),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(_0x569f80){return void 0x0!==_0x569f80['getRootsAttributes'];}async function N(_0x40593c,_0x5dea89,_0x31684b){const _0x1c2f3d=_0x36c3fd(_0x40593c,T);_0x1c2f3d['plugins']['push'](p,D),_0x1c2f3d['rootsAttributes']=v(_0x40593c)?_0x40593c['getRootsAttributes']():void 0x0;const _0x58c880=document['createDocumentFragment'](),_0x6fd9e3=_0x40593c['config']['get']('trackChangesData')['editorCreator'],_0x21f26b=await _0x6fd9e3(_0x1c2f3d,()=>function(_0x13a212){const _0x4eb568=document['createElement']('div');return _0x13a212['appendChild'](_0x4eb568),_0x4eb568;}(_0x58c880));!function(_0x1c4564,_0x53ae89){const _0x3b331d=_0x1c4564['model']['document']['getRootNames']()['reduce']((_0x5de5c2,_0x3dcf73)=>(_0x5de5c2[_0x3dcf73]=_0x1c4564['data']['get']({'rootName':_0x3dcf73}),_0x5de5c2),{}),_0x5cfd65=_0x1c4564['plugins']['get']('Users')['users']['map'](_0x1b9b27=>({'id':_0x1b9b27['id'],'name':_0x1b9b27['name']})),_0x2f2f92=_0x1c4564['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x125eb1=_0x1c4564['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a5466=_0x53ae89['plugins']['get']('Users'),_0xa8d8c9=_0x53ae89['plugins']['get']('TrackChangesEditing'),_0x53da7d=_0x53ae89['plugins']['get']('CommentsRepository');for(const _0x274696 of _0x53da7d['getCommentThreads']())_0x274696['remove']();for(const _0x32bd41 of _0x5cfd65)_0x4a5466['getUser'](_0x32bd41['id'])||_0x4a5466['addUser'](_0x32bd41);_0x4a5466['me']||_0x4a5466['useAnonymousUser']();for(const _0x163242 of _0x125eb1)_0x53da7d['addCommentThread'](_0x163242);for(const _0x43afa3 of _0x2f2f92)_0xa8d8c9['addSuggestionData'](_0x43afa3);_0x53ae89['data']['set'](_0x3b331d);}(_0x40593c,_0x21f26b),_0x21f26b['execute'](_0x5dea89?'acceptAllSuggestions':'discardAllSuggestions');const _0x6e16cc=v(_0x21f26b)?_0x21f26b['getFullData'](_0x31684b):_0x21f26b['data']['get'](_0x31684b);return await _0x21f26b['destroy'](),_0x6e16cc;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};