@ckeditor/ckeditor5-track-changes 43.1.0-alpha.5 → 43.1.0-alpha.7

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 _0x201c95,PendingActions as _0x44e340,icons as _0x1692e5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x502bb5,ObservableMixin as _0x7e76ca,uid as _0x5eb85a,insertToPriorityArray as _0x13f92a,priorities as _0x2782a0,logWarning as _0x2b8c1e,getEnvKeystrokeText as _0x7fab25,FocusTracker as _0x28b717,KeystrokeHandler as _0x27ffd5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x327750,View as _0x4703b0,ViewCollection as _0x477a7c,FocusCycler as _0x1f58c8,ViewModel as _0x359d84,createDropdown as Qt,SplitButtonView as _0x2c803d,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2e2948}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3155e3,hashObject as _0x4f74f6,surroundingMarkersDetector as _0xc7fe01,FOCUS_ANNOTATION_KEYSTROKE as _0x2b1c11,AriaDescriptionView as _0x26c030,setupThreadKeyboardNavigation as _0xa16379,trimHtml as _0x552741,UserView as _0xcc94eb,LateFocusButtonView as _0x33e2fd,getDateTimeFormatter as _0x56d630,getAllMarkersDomElementsSorted as _0x2098d8,sanitizeEditorConfig as _0x206e3b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3149c0,LiveRange as _0x348f0d,LivePosition as _0x562fa4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1fc41d,toWidget as _0x45db54}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x35a01a,set as _0x2891cf,isEqual as _0x5cc37c,unset as _0x4cd1ca,omit as Tt}from'lodash-es';import{Delete as _0x43dc6b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3c8429,ShiftEnter as _0x2fcc5b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x31d890,_0x46a79b){super(_0x31d890),this['_enabledCommands']=_0x46a79b,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 _0x553bea of this['editor']['commands']['commands']())_0x553bea['affectsData']&&!this['_enabledCommands']['has'](_0x553bea)&&_0x553bea['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x36f78b of this['editor']['commands']['commands']())_0x36f78b['affectsData']&&!this['_enabledCommands']['has'](_0x36f78b)&&_0x36f78b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x51fb1b,_0x35daa7){super(_0x51fb1b),this['_suggestions']=_0x35daa7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x269f06){const _0x43d67a=this['_suggestions']['get'](_0x269f06);if(!_0x43d67a)throw new _0x502bb5('track-changes-accept-suggestion-not-found',this);const _0x55bcb9=_0x43d67a['getRanges']();this['editor']['model']['canEditAt'](_0x55bcb9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x43d67a);}}class R extends ts{['_suggestions'];constructor(_0x352b07,_0x45f62e){super(_0x352b07),this['_suggestions']=_0x45f62e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x25dc4d){const _0x5c877c=this['_suggestions']['get'](_0x25dc4d);if(!_0x5c877c)throw new _0x502bb5('track-changes-discard-suggestion-not-found',this);const _0x4d2e20=_0x5c877c['getRanges']();this['editor']['model']['canEditAt'](_0x4d2e20)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5c877c);}}function ls(_0x2a66da,_0x1c93a3){let _0x4eff96='';return _0x4eff96+=_0x2a66da['split']('*')['map']((_0x4f8d2f,_0x15a73a)=>_0x15a73a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4f8d2f)+'</span>':nn(_0x4f8d2f))['join'](''),_0x1c93a3&&(_0x4eff96+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1c93a3['value']+'\x22\x20title=\x22'+_0x1c93a3['title']+'\x22></span>'),_0x4eff96;}function nn(_0x1462a6){const _0x3f43ac=document['createElement']('span');return _0x3f43ac['innerText']=_0x1462a6,_0x3f43ac['innerHTML'];}function ss(_0x5d4642){return _0x5d4642['sort']((_0x3790d5,_0x10f2d6)=>'deletion'==_0x3790d5['type']&&'deletion'!=_0x10f2d6['type']?-0x1:'deletion'!=_0x3790d5['type']&&'deletion'==_0x10f2d6['type']?0x1:0x0);}function to(_0x31078c,_0x4adf86){let _0xa5f692,_0x316939=0x0;const _0x35a651=[],_0x570bdf=_0x4adf86['schema'];for(;_0x316939<_0x31078c['length'];){const _0x1cedf8=_0x31078c[_0x316939],_0x248c74=_0x31078c[_0x316939+0x1];_0xa5f692||(_0xa5f692=_0x4adf86['createPositionBefore'](_0x1cedf8)),on(_0x4adf86,_0x1cedf8,_0x248c74)||(_0x35a651['push'](_0x4adf86['createRange'](_0xa5f692,_0x570bdf['isObject'](_0x1cedf8)?_0x4adf86['createPositionAfter'](_0x1cedf8):_0x4adf86['createPositionAt'](_0x1cedf8,'end'))),_0xa5f692=null),_0x316939++;}return _0x35a651;}function on(_0x5002f2,_0x5343db,_0x4f212f){if(!_0x4f212f)return!0x1;const _0x6f7ca8=_0x5002f2['createPositionAfter'](_0x5343db),_0x1ccc80=_0x5002f2['createPositionBefore'](_0x4f212f);return _0x6f7ca8['isTouching'](_0x1ccc80);}function rs(_0x4b673a,_0x411b17,_0x4f43b3){for(;_0x4f43b3['length'];){const _0x2cedf4=_0x4f43b3['splice'](0x0,0x64);_0x4b673a['change'](()=>{for(const _0x5c2396 of _0x2cedf4)_0x5c2396['isInContent']&&_0x411b17['execute'](_0x5c2396['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3cdae9,_0x92e39a,_0x2052ea){super(_0x3cdae9),this['_command']=_0x92e39a,this['_suggestions']=_0x2052ea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b2274=Array['from'](this['_suggestions']['values']())['some'](_0x34a642=>_0x34a642['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5b2274;}['execute'](){const _0x38ba79=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3a55e5 of _0x38ba79){const _0x25394e=_0x3a55e5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25394e))return;}rs(this['editor']['model'],this['_command'],_0x38ba79);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x9ff79e,_0x334d73,_0x523d32){super(_0x9ff79e),this['_command']=_0x334d73,this['_suggestions']=_0x523d32,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1cbd30=this['editor']['model']['document']['selection'],_0x519480=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1ec6ef,_0x13d966){const _0x1ae9bc=Array['from'](_0x1ec6ef['getRanges']()),_0xfa6a8a=new Set();for(const _0x2efc75 of _0x13d966)if(_0x2efc75['isInContent']){for(const _0x1fa214 of _0x1ae9bc)for(const _0x1fee79 of _0x2efc75['getRanges']())(_0x1fa214['isIntersecting'](_0x1fee79)||_0x1ec6ef['isCollapsed']&&!_0x2efc75['isMultiRange']&&_0x2efc75['next']&&_0x1fee79['end']['isTouching'](_0x1fa214['start']))&&_0xfa6a8a['add'](_0x2efc75);}return _0xfa6a8a;}(_0x1cbd30,_0x519480),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x98c9ba=ss(Array['from'](this['_selectedSuggestions']));for(const _0x29d535 of _0x98c9ba){const _0x49971e=_0x29d535['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49971e))return;}rs(this['editor']['model'],this['_command'],_0x98c9ba);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x7e76ca(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3f8cb7,_0x327621){super(),this['id']=_0x327621['id'],this['type']=_0x327621['type'],this['subType']=_0x327621['subType']||null,this['author']=_0x327621['author'],this['creator']=_0x327621['creator']||_0x327621['author'],this['isExternal']=Boolean(_0x327621['attributes']&&_0x327621['attributes']['@external']),this['data']=null,this['_model']=_0x3f8cb7,this['_onAccept']=_0x327621['onAccept'],this['_onDiscard']=_0x327621['onDiscard'],this['_onAttributesChange']=_0x327621['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x327621['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 _0x54a8fe=this;for(;_0x54a8fe['previous'];)_0x54a8fe=_0x54a8fe['previous'];return _0x54a8fe;}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'](_0x194a2e){this['_markerNames']['add'](_0x194a2e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1bc7dc=>this['_model']['markers']['get'](_0x1bc7dc))['filter'](_0xadbed4=>_0xadbed4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x16562a=>{for(const _0x31ed5a of this['getMarkers']())_0x16562a['removeMarker'](_0x31ed5a);}),this['_markerNames']['clear']();}['removeMarker'](_0x43d86c){this['_model']['change'](_0x454c5d=>{_0x454c5d['removeMarker'](_0x43d86c);}),this['_markerNames']['delete'](_0x43d86c);}['addRange'](_0x179656){const _0x3b2341='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3b2341),this['_model']['change'](_0x3f712c=>{_0x3f712c['addMarker'](_0x3b2341,{'range':_0x179656,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x379520){for(const _0x4d889d of this['getRanges']())if(_0x4d889d['isIntersecting'](_0x379520))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x432326=>_0x432326['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x211347,_0xb99678)=>[..._0x211347,..._0xb99678['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5e1407=this['getRanges']();if(0x1!=_0x5e1407['length'])return null;const _0x3ae438=_0x5e1407[0x0],_0x2689f8=_0x3ae438['start']['nodeAfter'],_0x28b45d=_0x3ae438['end']['nodeBefore'];return _0x2689f8 instanceof _0x3149c0?_0x2689f8!=_0x28b45d?null:_0x2689f8: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 _0x51b7ab=[];let _0x4e17c5=this['head'];for(;_0x4e17c5;)_0x51b7ab['push'](_0x4e17c5),_0x4e17c5=_0x4e17c5['next'];return _0x51b7ab;}['setAttribute'](_0x18bbf2,_0x245904){const _0x1ed569=_0x35a01a(this['attributes']);_0x2891cf(_0x1ed569,_0x18bbf2,_0x245904),_0x5cc37c(_0x1ed569,this['attributes'])||(this['attributes']=_0x1ed569,this['_onAttributesChange'](_0x1ed569));}['removeAttribute'](_0x5dafa5){const _0x59f83b=_0x35a01a(this['attributes']);_0x4cd1ca(_0x59f83b,_0x5dafa5),_0x5cc37c(_0x59f83b,this['attributes'])||(this['attributes']=_0x59f83b,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 _0x5eb85a()['substr'](0x1,0x5);}}function o(_0x1b745f,_0x21a4ac,_0x4d9e5){const t=_0x1b745f['t'];switch(_0x21a4ac){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',_0x4d9e5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4d9e5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4d9e5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4d9e5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4d9e5);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',_0x4d9e5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4d9e5);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',_0x4d9e5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4d9e5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4d9e5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4d9e5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4d9e5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4d9e5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4d9e5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4d9e5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4d9e5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4d9e5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d9e5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4d9e5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4d9e5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4d9e5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4d9e5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4d9e5);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'},_0x4d9e5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4d9e5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4d9e5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4d9e5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4d9e5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4d9e5);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'},_0x4d9e5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4d9e5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4d9e5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4d9e5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4d9e5);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'},_0x4d9e5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4d9e5);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'},_0x4d9e5);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'},_0x4d9e5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4d9e5);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'},_0x4d9e5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4d9e5);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'},_0x4d9e5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4d9e5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4d9e5);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'},_0x4d9e5);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'},_0x4d9e5);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'},_0x4d9e5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4d9e5);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'},_0x4d9e5);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'},_0x4d9e5);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'},_0x4d9e5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x21a4ac;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf1126d,_0x2374fe){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf1126d,this['_locale']=_0x2374fe;}['getDescriptions'](_0x5bed62){const _0xd7d463=[],_0x26d9e9=new Set(),_0x254302=new Set();for(let _0x49d7c2=0x0;_0x49d7c2<_0x5bed62['length'];_0x49d7c2++){const _0x2f3f68=_0x5bed62[_0x49d7c2];if(!_0x2f3f68['isInContent'])continue;const _0xd23fb0=this['_handleCustomCallbackDescription'](_0x2f3f68);if(_0xd23fb0){if(null!=_0x2f3f68['subType']){if(_0x26d9e9['has'](_0x2f3f68['subType']))continue;_0x26d9e9['add'](_0x2f3f68['subType']);}_0xd7d463['push'](_0xd23fb0);}else{if('attribute'!=_0x2f3f68['type'])'insertion'!=_0x2f3f68['type']&&'deletion'!=_0x2f3f68['type']||this['_handleInsertRemoveSuggestionDescription'](_0xd7d463,_0x2f3f68,_0x5bed62[_0x49d7c2+0x1]);else{const _0x24e5af=_0x2f3f68['data']['key'];if(_0x254302['has'](_0x24e5af))continue;_0x254302['add'](_0x2f3f68['data']['key']),_0x24e5af==m?this['_handleRenameSuggestionDescription'](_0xd7d463,_0x2f3f68):this['_handleAttributeSuggestionDescription'](_0xd7d463,_0x2f3f68);}}}return this['_resolveDescriptionItems'](_0xd7d463);}['registerDescriptionCallback'](_0x55aa0f){this['_customCallbacks']['push'](_0x55aa0f);}['registerElementLabel'](_0x5e40af,_0x75bd65,_0x39f107=_0x2782a0['normal']){'function'==typeof _0x5e40af?_0x13f92a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5e40af,'label':_0x75bd65,'priority':_0x39f107}):this['_itemLabels']['set'](_0x5e40af,_0x75bd65);}['registerAttributeLabel'](_0x2ce435,_0x49233d){this['_attributeLabels']['set'](_0x2ce435,_0x49233d);}['getItemLabel'](_0x2da0e8,_0x1cf070=0x1){let _0x4e4240;for(const _0x23ada9 of this['_itemLabelsCallbacks'])if(_0x23ada9['matchingCallback'](_0x2da0e8)){_0x4e4240=_0x23ada9['label'];break;}return _0x4e4240||(_0x4e4240=this['_itemLabels']['get'](_0x2da0e8['name'])),_0x4e4240?_0x4e4240(_0x1cf070):0x1!==_0x1cf070?_0x1cf070+'\x20'+_0x2da0e8['name']+'s':''+_0x2da0e8['name'];}['_addDescriptionItems'](_0x4c2ed2,_0x27a035){const _0x2f7c24=_0x27a035['getFirstRange']()['getWalker'](),_0x344ddf='insertion'==_0x27a035['type']?'add':'remove';for(const _0x194a6a of _0x2f7c24){const _0x31442f=_0x194a6a['item'],_0x4ba458=_0x4c2ed2[_0x4c2ed2['length']-0x1];if(_0x31442f['is']('$textProxy'))_0x4ba458&&_0x4ba458['type']['indexOf']('Container')>-0x1&&_0x4c2ed2['pop'](),_0x4ba458&&'text'==_0x4ba458['type']?_0x4ba458[_0x344ddf]+=_0x31442f['data']:_0x4c2ed2['push']({'type':'text','add':'add'==_0x344ddf?_0x31442f['data']:'','remove':'remove'==_0x344ddf?_0x31442f['data']:''});else{if(this['_schema']['isObject'](_0x31442f)){const _0x56995e=_0x31442f;if(_0x4ba458&&_0x4ba458['type']['indexOf']('Container')>-0x1&&_0x4c2ed2['pop'](),'elementEnd'==_0x194a6a['type'])continue;_0x4ba458&&_0x4ba458['type']==_0x344ddf+'Object'&&_0x4ba458['element']['name']==_0x56995e['name']?_0x4ba458['quantity']++:_0x4c2ed2['push']({'type':_0x344ddf+'Object','element':_0x56995e,'quantity':0x1}),_0x2f7c24['skip'](_0x1a0414=>!('elementEnd'==_0x1a0414['type']&&_0x1a0414['item']==_0x31442f));}else{if(this['_schema']['checkChild'](_0x31442f,'$text')||_0x31442f['is']('element','softBreak')){const _0x501a93=_0x31442f;if('add'==_0x344ddf&&'elementStart'==_0x194a6a['type']||'remove'==_0x344ddf&&'elementEnd'==_0x194a6a['type'])continue;if(_0x4ba458&&-0x1==_0x4ba458['type']['indexOf']('Container')){'text'==_0x4ba458['type']&&(_0x4ba458[_0x344ddf]+='\x0a');continue;}let _0x4efe7d;if(_0x4efe7d='add'==_0x344ddf?_0x501a93['nextSibling']&&!this['_schema']['isObject'](_0x501a93['nextSibling'])?_0x501a93['nextSibling']:null:_0x501a93['previousSibling']&&!this['_schema']['isObject'](_0x501a93['previousSibling'])?_0x501a93['previousSibling']:null,_0x501a93['isEmpty']||_0x4efe7d&&_0x4efe7d['isEmpty']){const _0x30824d=_0x4efe7d&&_0x4efe7d['isEmpty']?_0x4efe7d:_0x501a93;_0x4ba458&&_0x4ba458['type']==_0x344ddf+'EmptyContainer'&&_0x4ba458['element']['name']==_0x30824d['name']?_0x4ba458['quantity']++:_0x4c2ed2['push']({'type':_0x344ddf+'EmptyContainer','element':_0x30824d,'quantity':0x1});}else _0x4c2ed2['push']({'type':_0x344ddf+'Container','element':_0x501a93});}}}}}['_resolveDescriptionItems'](_0x576a9c){const _0x5363ec=this['_locale'],_0x1d9264=[],_0x349d93=[],_0x2069d3=[];for(const _0x2982be of _0x576a9c)switch(_0x2982be['type']){case'text':if(_0x2982be['add']=_0x2982be['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2982be['remove']=_0x2982be['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2982be['add']&&''!=_0x2982be['remove']){_0x1d9264['push']({'type':'replace','content':o(_0x5363ec,'REPLACE_TEXT',['\x22'+_0x2982be['remove']+'\x22','\x22'+_0x2982be['add']+'\x22'])});continue;}if(null!=_0x2982be['add']['match'](/^ +$/)){_0x1d9264['push']({'type':'insertion','content':o(_0x5363ec,'*Insert:*\x20%0',o(_0x5363ec,'ELEMENT_SPACE',_0x2982be['add']['length']))});continue;}if(null!=_0x2982be['remove']['match'](/^ +$/)){_0x1d9264['push']({'type':'deletion','content':o(_0x5363ec,'*Remove:*\x20%0',o(_0x5363ec,'ELEMENT_SPACE',_0x2982be['remove']['length']))});continue;}if(''!=_0x2982be['add']){_0x1d9264['push']({'type':'insertion','content':o(_0x5363ec,'*Insert:*\x20%0','\x22'+_0x2982be['add']+'\x22')});continue;}_0x1d9264['push']({'type':'deletion','content':o(_0x5363ec,'*Remove:*\x20%0','\x22'+_0x2982be['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1d9264['push']({'type':'insertion','content':o(_0x5363ec,'*Insert:*\x20%0',this['getItemLabel'](_0x2982be['element'],_0x2982be['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1d9264['push']({'type':'deletion','content':o(_0x5363ec,'*Remove:*\x20%0',this['getItemLabel'](_0x2982be['element'],_0x2982be['quantity']))});continue;case'addContainer':_0x1d9264['push']({'type':'insertion','content':o(_0x5363ec,'*Split:*\x20%0',this['getItemLabel'](_0x2982be['element'],_0x2982be['quantity']))});continue;case'removeContainer':_0x1d9264['push']({'type':'deletion','content':o(_0x5363ec,'*Merge:*\x20%0',this['getItemLabel'](_0x2982be['element'],_0x2982be['quantity']))});continue;case'addFormat':_0x349d93['push'](_0x2982be['key']);continue;case'removeFormat':_0x2069d3['push'](_0x2982be['key']);continue;default:_0x1d9264['push'](_0x2982be);}if(_0x349d93['length']){const _0x2b0313=_0x349d93['map'](_0x30601b=>this['_attributeLabels']['has'](_0x30601b)?this['_attributeLabels']['get'](_0x30601b):_0x30601b)['join'](',\x20');_0x1d9264['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2b0313)});}if(_0x2069d3['length']){const _0x8d5c0a=_0x2069d3['map'](_0x5ddce1=>this['_attributeLabels']['has'](_0x5ddce1)?this['_attributeLabels']['get'](_0x5ddce1):_0x5ddce1)['join'](',\x20');_0x1d9264['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x8d5c0a)});}return _0x1d9264;}['_handleCustomCallbackDescription'](_0x155d80){for(const _0xbe55ab of this['_customCallbacks']){const _0x1c4d33=_0xbe55ab(_0x155d80);if(_0x1c4d33&&'type'in _0x1c4d33)return _0x1c4d33;}}['_handleAttributeSuggestionDescription'](_0x540908,_0x3cfa25){const _0x4f4ba6=_0x3cfa25['data'],_0x82a0a7=void 0x0===_0x4f4ba6['newValue']?'removeFormat':'addFormat';_0x540908['push']({'type':_0x82a0a7,'key':_0x4f4ba6['key']});}['_handleRenameSuggestionDescription'](_0x2dcda9,_0x1098fe){_0x2dcda9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1098fe['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x14a225,_0x43eb7d,_0x2ec69e){if(this['_addDescriptionItems'](_0x14a225,_0x43eb7d),_0x2ec69e&&_0x2ec69e['getFirstRange']()&&!_0x43eb7d['getFirstRange']()['end']['isEqual'](_0x2ec69e['getFirstRange']()['start'])){const _0x47a5c3=_0x14a225[_0x14a225['length']-0x1],_0x4a72bc='insertion'==_0x43eb7d['type']?'add':'remove';_0x47a5c3&&'text'==_0x47a5c3['type']&&(_0x47a5c3[_0x4a72bc]+='\x0a');}}}class V extends _0x201c95{['afterInit'](){const _0x36a7bf=this['editor'],_0xc5d9f4=_0x36a7bf['plugins']['get']('TrackChangesEditing');_0x36a7bf['commands']['get']('showAIAssistant')&&_0xc5d9f4['enableCommand']('showAIAssistant');}}class U extends _0x201c95{['afterInit'](){const _0x5340f5=this['editor'],_0x5c327e=_0x5340f5['locale'];if(!_0x5340f5['plugins']['has']('AlignmentEditing'))return;const _0x6fb15b=_0x5340f5['plugins']['get']('TrackChangesEditing');_0x6fb15b['enableDefaultAttributesIntegration']('alignment'),_0x6fb15b['registerBlockAttribute']('alignment'),_0x6fb15b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5c327e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3efd56=this['editor'],_0x35c39b=_0x3efd56['locale'];_0x3efd56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b2cd7=>{if('formatBlock'!=_0x2b2cd7['type'])return;const {data:_0x20d391}=_0x2b2cd7;if(_0x20d391&&'alignment'==_0x20d391['commandName']){const _0x190e11=_0x20d391['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x35c39b,'*Format:*\x20%0',function(_0x1ff07f){switch(_0x1ff07f){case'left':return o(_0x35c39b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x35c39b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x35c39b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x35c39b,'FORMAT_JUSTIFY_TEXT');}}(_0x190e11))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x201c95{['afterInit'](){const _0x1fab94=this['editor'],_0x9269d8=_0x1fab94['plugins']['get']('TrackChangesEditing'),_0x3815af=_0x1fab94['locale'];for(const _0x22cd3e of ti){if(!_0x1fab94['plugins']['has'](_0x22cd3e))continue;const _0x4696b0=_0x22cd3e['slice'](0x0,-0x7)['toLowerCase'](),_0x300b12='FORMAT_'+_0x4696b0['toUpperCase']();_0x9269d8['enableDefaultAttributesIntegration'](_0x4696b0),_0x9269d8['registerInlineAttribute'](_0x4696b0),_0x9269d8['descriptionFactory']['registerAttributeLabel'](_0x4696b0,o(_0x3815af,_0x300b12));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38745c=this['editor'],_0x4d2790=_0x38745c['locale'],_0x5e5d0b=_0x38745c['plugins']['get']('TrackChangesEditing');function _0x23b3f9(_0x4fc2b0,_0x3e7ef8){_0x5e5d0b['descriptionFactory']['registerDescriptionCallback'](_0x15d354=>{if('formatInline'!=_0x15d354['type'])return;const {data:_0x5de211}=_0x15d354;return _0x5de211&&_0x5de211['commandName']===_0x4fc2b0?_0x5de211['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d2790,'*Format:*\x20%0',_0x3e7ef8)}:{'type':'format','content':o(_0x4d2790,'*Remove\x20format:*\x20%0',_0x3e7ef8)}:void 0x0;});}_0x23b3f9('bold',o(_0x4d2790,'FORMAT_BOLD')),_0x23b3f9('italic',o(_0x4d2790,'FORMAT_ITALIC')),_0x23b3f9('underline',o(_0x4d2790,'FORMAT_UNDERLINE')),_0x23b3f9('code',o(_0x4d2790,'FORMAT_CODE')),_0x23b3f9('strikethrough',o(_0x4d2790,'FORMAT_STRIKETHROUGH')),_0x23b3f9('subscript',o(_0x4d2790,'FORMAT_SUBSCRIPT')),_0x23b3f9('superscript',o(_0x4d2790,'FORMAT_SUPERSCRIPT'));}}class F extends _0x201c95{['afterInit'](){const _0x156a78=this['editor'],_0x11b998=_0x156a78['locale'];if(!_0x156a78['plugins']['has']('BlockQuoteEditing'))return;const _0x5db4e0=_0x156a78['plugins']['get']('TrackChangesEditing'),_0xffaf=this['editor']['commands']['get']('blockQuote');_0x5db4e0['enableCommand']('blockQuote',(_0x128eb4,_0x197759={})=>{const _0xd4962a=this['editor']['model']['document']['selection'],_0x482b9d=_0x197759&&void 0x0!==_0x197759['forceValue']?_0x197759['forceValue']:!_0xffaf['value'];let _0x35a446=[];if(_0x482b9d){const _0x38763e=Array['from'](_0xd4962a['getSelectedBlocks']())['filter'](_0x32a93c=>oo(_0x32a93c)||function(_0x1707e0,_0x26e388){const _0x52e77e=_0x26e388['checkChild'](_0x1707e0['parent'],'blockQuote'),_0x524f15=_0x26e388['checkChild'](['$root','blockQuote'],_0x1707e0);return _0x52e77e&&_0x524f15;}(_0x32a93c,this['editor']['model']['schema']));_0x35a446=to(_0x38763e,_0x156a78['model']);}else{const _0x138555=Array['from'](_0xd4962a['getSelectedBlocks']())['filter'](_0x283efd=>oo(_0x283efd));_0x35a446=to(_0x138555,_0x156a78['model']);}_0x156a78['model']['change'](()=>{for(const _0x2af5e3 of _0x35a446)_0x5db4e0['markBlockFormat'](_0x2af5e3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x482b9d}]});});}),_0x5db4e0['descriptionFactory']['registerDescriptionCallback'](_0x50e31e=>{const {data:_0x1a19ca}=_0x50e31e;if(_0x1a19ca&&'blockQuote'==_0x1a19ca['commandName']){const _0x172a06=o(_0x11b998,'ELEMENT_BLOCK_QUOTE');return _0x1a19ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11b998,'*Set\x20format:*\x20%0',_0x172a06)}:{'type':'format','content':o(_0x11b998,'*Remove\x20format:*\x20%0',_0x172a06)};}});}}function oo(_0x539862){return'blockQuote'==_0x539862['parent']['name'];}class L extends _0x201c95{['afterInit'](){const _0x44aa49=this['editor'];_0x44aa49['plugins']['has']('CaseChange')&&(_0x44aa49['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x44aa49['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x44aa49['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x201c95{['afterInit'](){const _0x7b3671=this['editor'];_0x7b3671['commands']['get']('ckbox')&&_0x7b3671['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x201c95{['afterInit'](){const _0x597024=this['editor'];if(!_0x597024['plugins']['has']('CodeBlock'))return;const _0x4a5e30=_0x597024['plugins']['get']('TrackChangesEditing'),_0x2e64ea=_0x597024['locale'],_0xfa6995=_0x597024['config']['get']('codeBlock')['languages'],_0x3c5591=_0x597024['commands']['get']('codeBlock');_0x4a5e30['enableCommand']('indentCodeBlock'),_0x4a5e30['enableCommand']('outdentCodeBlock'),_0x4a5e30['enableCommand']('codeBlock',(_0xbd3cda,_0x260b31={})=>{const _0x4de840=_0x597024['model'],_0x24ac4b=_0x597024['model']['document']['selection'],_0x15455e=_0x260b31&&void 0x0!==_0x260b31['forceValue']?_0x260b31['forceValue']:!_0x3c5591['value'];let _0x2bd382;_0x260b31['language']||(_0x260b31['language']=_0xfa6995[0x0]['language']),_0x2bd382=_0x15455e?Array['from'](_0x24ac4b['getSelectedBlocks']())['filter'](_0x102446=>eo(_0x102446)||function(_0x543bc1,_0x4a16e6){if(_0x543bc1['is']('rootElement')||_0x4a16e6['isLimit'](_0x543bc1))return!0x1;return _0x4a16e6['checkChild'](_0x543bc1['parent'],'codeBlock');}(_0x102446,_0x4de840['schema'])):Array['from'](_0x24ac4b['getSelectedBlocks']())['filter'](_0x1dab70=>eo(_0x1dab70));const _0x313158=to(_0x2bd382,_0x4de840);_0x4de840['change'](()=>{for(const _0x2c0fa1 of _0x313158)_0x4a5e30['markBlockFormat'](_0x2c0fa1,{'commandName':'codeBlock','commandParams':[{..._0x260b31,'forceValue':_0x15455e}],'formatGroupId':'blockName'});});}),(_0x4a5e30['descriptionFactory']['registerElementLabel']('codeBlock',_0x3863ac=>o(_0x2e64ea,'ELEMENT_CODE_BLOCK',_0x3863ac)),_0x4a5e30['descriptionFactory']['registerDescriptionCallback'](_0x55eff0=>{if('formatBlock'!=_0x55eff0['type'])return;const _0x10a7c7=_0x2e64ea['t'],{data:_0x364880}=_0x55eff0;if(!_0x364880||'codeBlock'!=_0x364880['commandName'])return;const _0x11eb0f=_0x364880['commandParams'][0x0]['language'],_0x3d7f34=_0x10a7c7(_0xfa6995['find'](_0xa53afb=>_0xa53afb['language']===_0x11eb0f)['label'])['toLowerCase']();return _0x364880['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e64ea,'*Set\x20format:*\x20%0',o(_0x2e64ea,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3d7f34+')')}:{'type':'format','content':o(_0x2e64ea,'*Remove\x20format:*\x20%0',o(_0x2e64ea,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5869d9){return'codeBlock'==_0x5869d9['name'];}class q extends _0x201c95{['afterInit'](){const _0x29c20e=this['editor'];if(!_0x29c20e['plugins']['has']('CommentsEditing'))return;_0x29c20e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x252bc4,_0x414cc1,_0x1a5e77){const _0x41dc44=[];for(const _0x4eb1af of _0x414cc1['getItems']())_0x4eb1af['hasAttribute'](_0x252bc4)&&_0x41dc44['push'](_0x1a5e77['createRangeOn'](_0x4eb1af));return _0x41dc44;}function _e(_0x3d60bb,_0x2c9737,{showActiveMarker:_0x15ac28=!0x0}={}){const _0x5d3b5c=_0x3d60bb['plugins']['get']('TrackChangesEditing');return(_0x340010,_0x2e62ad,_0x5e5d33)=>{if(!_0x5e5d33['consumable']['test'](_0x2e62ad['markerRange'],_0x340010['name']))return;const _0x5c64bb=_0x2e62ad['markerRange']['getWalker'](),_0x15949e=_0x2e62ad['markerRange']['start'],_0x5c9265=_0x3d60bb['model']['schema'];let _0x51b782=null,_0x55b0ae=null,_0x1840cc=!0x1,_0x48f816=!0x1;for(const _0x41eda6 of _0x5c64bb){const _0x21f428=_0x41eda6['item'];_0x1840cc=_0x1840cc||_0x5c9265['isContent'](_0x21f428);const _0x366c02=_0x5e5d33['mapper']['toViewElement'](_0x21f428);if(_0x366c02&&_0x366c02['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41eda6['type']&&(_0x5c9265['isBlock'](_0x21f428)&&!_0x5c9265['isLimit'](_0x21f428)&&(_0x21f428['nextSibling']||_0x15949e['isAtEnd']?_0x51b782&&_0x51b782['parent']==_0x21f428||(_0x51b782=_0x21f428,_0x4e2a5c(_0x41eda6['previousPosition']),_0x48f816=!0x0):_0x55b0ae=_0x55b0ae||_0x41eda6['previousPosition']));}function _0x4e2a5c(_0x100203){const {authorId:_0x786e1f}=_0x5d3b5c['_splitMarkerName'](_0x2e62ad['markerName']),_0x311086=_0x5e5d33['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c9737,'data-author-id':_0x786e1f}),_0x2b316d=_0x5e5d33['mapper']['toViewPosition'](_0x100203);_0x15ac28&&_0x5d3b5c['activeMarkers']['includes'](_0x2e62ad['markerName'])&&_0x5e5d33['writer']['addClass']('ck-suggestion-marker--active',_0x311086),_0x5e5d33['writer']['insert'](_0x2b316d,_0x311086),_0x5e5d33['mapper']['bindElementToMarker'](_0x311086,_0x2e62ad['markerName']);}_0x1840cc||_0x48f816||!_0x55b0ae||_0x4e2a5c(_0x55b0ae);};}class z extends _0x201c95{static get['requires'](){return[_0x43dc6b];}['init'](){const _0x6adb77=this['editor'],_0x5ea342=_0x6adb77['plugins']['get']('TrackChangesEditing');_0x5ea342['enableCommand']('delete');const _0x336155=_0x6adb77['commands']['get']('deleteForward');_0x5ea342['enableCommand']('deleteForward',(_0x2b5126,_0x56e8fe={})=>{const _0x30cf04=_0x6adb77['model']['createSelection'](_0x6adb77['model']['document']['selection']);_0x30cf04['isCollapsed']&&_0x6adb77['model']['modifySelection'](_0x30cf04,{'direction':'forward','unit':_0x56e8fe['unit']});const _0x427dac=_0x30cf04['getFirstRange'](),_0x1566cc=_0x348f0d['fromRange'](_0x427dac);let _0x3baf52;_0x2b5126(_0x56e8fe),_0x3baf52='$graveyard'==_0x1566cc['root']['rootName']?_0x6adb77['model']['createRange'](_0x427dac['start']):_0x6adb77['model']['createRange'](_0x1566cc['start'],_0x1566cc['end']),_0x1566cc['detach'](),_0x6adb77['model']['enqueueChange'](_0x336155['buffer']['batch'],_0x5dcbaa=>{_0x336155['buffer']['lock'](),_0x5dcbaa['setSelection'](_0x5dcbaa['createRange'](_0x3baf52['end'])),_0x336155['buffer']['unlock']();});}),_0x6adb77['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x6adb77,'merge'),{'priority':'high'}),_0x6adb77['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e946a,_0x5135a9,_0x50cd6a)=>{_0x50cd6a['options']['showSuggestionHighlights']&&_e(_0x6adb77,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2e946a,_0x5135a9,_0x50cd6a);},{'priority':'high'}),_0x6adb77['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2a6004,_0x433d00,_0x27c986)=>{const _0x74f8f6=_0x27c986['mapper']['markerNameToElements'](_0x433d00['markerName']);if(_0x74f8f6){for(const _0x46736f of _0x74f8f6)_0x46736f['is']('uiElement')&&(_0x27c986['mapper']['unbindElementFromMarkerName'](_0x46736f,_0x433d00['markerName']),_0x27c986['writer']['remove'](_0x46736f));}},{'priority':'high'});}}class K extends _0x201c95{['afterInit'](){const _0x248ba2=this['editor'];if(!_0x248ba2['plugins']['has']('ListEditing'))return;const _0x19aba2=_0x248ba2['locale'],_0x24b3a3=_0x248ba2['plugins']['get']('TrackChangesEditing'),_0x410801=_0x248ba2['plugins']['has']('TodoListEditing'),_0x3a0ca3=!!_0x248ba2['config']['get']('list.multiBlock');function _0x88c86(_0x63a7d0){return{'type':'format','content':''+o(_0x19aba2,'*Set\x20format:*\x20%0',_0x63a7d0)};}function _0x2e3509(_0x44b438){return{'type':'format','content':''+o(_0x19aba2,'*Remove\x20format:*\x20%0',_0x44b438)};}_0x24b3a3['enableDefaultAttributesIntegration']('numberedList'),_0x24b3a3['enableDefaultAttributesIntegration']('bulletedList'),_0x24b3a3['enableDefaultAttributesIntegration']('customNumberedList'),_0x24b3a3['enableDefaultAttributesIntegration']('customBulletedList'),_0x24b3a3['enableDefaultAttributesIntegration']('indentList'),_0x24b3a3['enableDefaultAttributesIntegration']('outdentList'),_0x24b3a3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24b3a3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24b3a3['registerBlockAttribute']('listItemId'),_0x24b3a3['registerBlockAttribute']('listType'),_0x24b3a3['registerBlockAttribute']('listIndent'),_0x3a0ca3&&(_0x24b3a3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24b3a3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x410801&&(_0x24b3a3['enableDefaultAttributesIntegration']('todoList'),_0x24b3a3['enableDefaultAttributesIntegration']('checkTodoList'),_0x24b3a3['registerBlockAttribute']('todoListChecked'),_0x24b3a3['descriptionFactory']['registerDescriptionCallback'](_0x50c7f9=>{const {data:_0x3c2a77}=_0x50c7f9;if(_0x3c2a77&&'todoListChecked'==_0x3c2a77['key'])return{'type':'format','content':_0x3c2a77['newValue']?o(_0x19aba2,'*Check\x20item*'):o(_0x19aba2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x52d6da=>{if(_0x52d6da['batch']['isUndo'])return!0x1;let _0x3fba8b=!0x1;const _0x24a8cc=_0x24b3a3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dc78e=>'todoListChecked'===_0x24b3a3['_getAttributeKey'](_0x4dc78e));for(const _0x16df4b of _0x24a8cc){'todo'!=_0x16df4b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24b3a3['_findSuggestions'](_0x16df4b['getFirstRange'](),'attribute')['find'](_0x4dbc6e=>'listType'===_0x24b3a3['_getAttributeKey'](_0x4dbc6e['suggestion']))||(_0x52d6da['removeMarker'](_0x16df4b['getFirstMarker']()),_0x3fba8b=!0x0));}return _0x3fba8b;})),_0x24b3a3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19aba2,'FORMAT_INDENT'));const _0x30c03a={'type':'format','content':''};_0x24b3a3['descriptionFactory']['registerDescriptionCallback'](_0x32ada3=>{const {data:_0x271bfb}=_0x32ada3;if(!_0x271bfb||'listType'!=_0x271bfb['key'])return;let _0x2d504c=_0x32ada3['head'];for(;_0x2d504c;){if(_0x2d504c['data']&&(('listStyle'==_0x2d504c['data']['key']||'listMarkerStyle'==_0x2d504c['data']['key'])&&(_0x2d504c['data']['newValue']&&'default'!=_0x2d504c['data']['newValue']||'default'!=_0x2d504c['data']['oldValue']&&!_0x271bfb['newValue'])||!_0x3a0ca3&&_0x2d504c['data']['key']==m))return _0x30c03a;_0x2d504c=_0x2d504c['next'];}if(null==_0x271bfb['newValue'])switch(_0x271bfb['oldValue']){case'bulleted':return _0x2e3509(o(_0x19aba2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e3509(o(_0x19aba2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e3509(o(_0x19aba2,'ELEMENT_TODO_LIST'));}switch(_0x271bfb['newValue']){case'bulleted':return _0x88c86(o(_0x19aba2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x88c86(o(_0x19aba2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x88c86(o(_0x19aba2,'ELEMENT_TODO_LIST'));}}),_0x24b3a3['descriptionFactory']['registerDescriptionCallback'](_0x4222b8=>{const {data:_0x40884a}=_0x4222b8;if(_0x40884a&&'listIndent'==_0x40884a['key'])return null==_0x40884a['newValue']||null==_0x40884a['oldValue']&&0x0==_0x40884a['newValue']?_0x30c03a:void 0x0;}),_0x24b3a3['descriptionFactory']['registerDescriptionCallback'](_0x3a9228=>{if('attribute'!=_0x3a9228['type'])return;const {data:_0x2576a7}=_0x3a9228;if(!_0x2576a7||'listItemId'!=_0x2576a7['key'])return;const _0x31c30e=Ee(_0x3a9228);return'newValue'==_0x31c30e?{'type':'format','content':o(_0x19aba2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31c30e?{'type':'format','content':o(_0x19aba2,'*Split:*\x20list\x20item')}:_0x30c03a;}),_0x248ba2['model']['document']['registerPostFixer'](_0x48d1fe=>this['listItemIdFixer'](_0x48d1fe)),_0x248ba2['model']['document']['registerPostFixer'](_0x55899a=>this['noTrackChangesFixer'](_0x55899a)),_0x248ba2['model']['document']['on']('change:data',(_0x2c57a2,_0x344897)=>{if(_0x344897['isUndo']||!_0x344897['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x13d221){if(_0x13d221['batch']['isUndo']||!_0x13d221['batch']['isLocal'])return!0x1;let _0x29f625=!0x1;const _0x59a60e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ef3e1=>_0x3ef3e1['data']&&'listItemId'==_0x3ef3e1['data']['key'])['filter'](_0x3e1c5f=>_0x3e1c5f['data']['newValue']&&_0x3e1c5f['data']['oldValue']);for(const _0x1ea68c of _0x59a60e)Ee(_0x1ea68c)||(_0x13d221['removeMarker'](_0x1ea68c['getFirstMarker']()),_0x29f625=!0x0);return _0x29f625;}['noTrackChangesFixer'](_0x5a6019){if(_0x5a6019['batch']['isUndo']||!_0x5a6019['batch']['isLocal'])return!0x1;const _0x1332e8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1332e8['trackChangesCommand']['value'])return!0x1;let _0x38a6ae=!0x1;const _0x3e58d5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x33a3bd=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53182c=>'attribute'==_0x53182c['type'])['filter'](_0x4bcd12=>_0x3e58d5['includes'](_0x4bcd12['attributeKey']));if(0x0==_0x33a3bd['length'])return _0x38a6ae;for(const _0x3ed6f5 of _0x33a3bd){const _0x3b81d1=_0x1332e8['_findSuggestions'](_0x3ed6f5['range'],'attribute')['filter'](_0x5c56fd=>!_0x5c56fd['meta']['isNextTo'])['map'](_0x2114d9=>_0x2114d9['suggestion'])['filter'](_0x28d163=>{const _0x4e8fb3=_0x1332e8['_getAttributeKey'](_0x28d163);return _0x3e58d5['includes'](_0x4e8fb3);});if(_0x3b81d1['length']){for(const _0xbafb08 of _0x3b81d1)_0x5a6019['removeMarker'](_0xbafb08['getFirstMarker']());_0x38a6ae=!0x0;}}return _0x38a6ae;}['assureChains'](){const _0x2835fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2311c7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x462331;const _0x2f5777=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27b883=>{if(_0x27b883['data']['oldRange']||!_0x27b883['data']['newRange'])return null;if(!_0x27b883['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xfaec5b}=_0x2835fa['_splitMarkerName'](_0x27b883['name']);if(!_0x2835fa['hasSuggestion'](_0xfaec5b))return null;const _0x921185=_0x2835fa['getSuggestion'](_0xfaec5b);return _0x2311c7['includes'](_0x921185['data']['key']);})['map'](_0x73ca58=>{const {id:_0x2d0534}=_0x2835fa['_splitMarkerName'](_0x73ca58['name']),_0x57a075=_0x2835fa['getSuggestion'](_0x2d0534);return _0x462331=_0x57a075['attributes']['groupId'],_0x57a075['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2f5777['size'])return;const _0x753762=_0x2835fa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cf766=>'attribute'==_0x5cf766['type']&&_0x5cf766['data']&&_0x2311c7['includes'](_0x5cf766['data']['key'])&&_0x5cf766['attributes']['groupId']!=_0x462331)['map'](_0xf7abb2=>({'listItem':_0xf7abb2['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf7abb2['attributes']['groupId']})),_0x477786=new Set();for(const {groupId:_0xf7571d,listItem:_0xe2f97a}of _0x753762)_0x2f5777['has'](_0xe2f97a)&&_0x477786['add'](_0xf7571d);for(const _0x803e74 of _0x2835fa['getSuggestions']())_0x477786['has'](_0x803e74['attributes']['groupId'])&&_0x803e74['setAttribute']('groupId',_0x462331);}['_supportLegacySuggestions'](){const _0x4574ca=this['editor'],_0x2a8a0a=_0x4574ca['locale'],_0x2b875a=_0x4574ca['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2b875a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x95eee3,_0x53dabe){const _0x65b9dd=[];for(let _0x2c2908 of _0x95eee3)_0x2c2908['start']['nodeAfter']===_0x2c2908['end']['parent']&&(_0x2c2908=_0x4574ca['model']['createRange'](_0x4574ca['model']['createPositionAt'](_0x2c2908['start']['nodeAfter'],0x0))),_0x65b9dd['push'](_0x2c2908);_0x4574ca['model']['change'](_0x75975f=>{const _0xfad4c5=_0x4574ca['model']['document']['selection'],_0x5a8c59=Array['from'](_0xfad4c5['getRanges']())['map'](_0x3b1b34=>_0x348f0d['fromRange'](_0x3b1b34));_0x75975f['setSelection'](_0x65b9dd),_0x4574ca['commands']['get'](_0x53dabe['commandName'])['refresh'](),_0x53dabe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4574ca['execute'](_0x53dabe['commandName'],..._0x53dabe['commandParams']),_0x75975f['setSelection'](_0x5a8c59);for(const _0x15e683 of _0x5a8c59)_0x15e683['detach']();});}),_0x2b875a['descriptionFactory']['registerElementLabel'](function(_0x509a5b){const _0x1a006d=!_0x4574ca['model']['schema']['isObject'](_0x509a5b),_0x3899fa=_0x509a5b['previousSibling'],_0x51cf3e=_0x509a5b['nextSibling'],_0x5795e9=_0x509a5b['getAttribute']('listItemId'),_0x195560=!_0x3899fa||_0x3899fa['getAttribute']('listItemId')!==_0x5795e9,_0x1c5d97=!_0x51cf3e||_0x51cf3e['getAttribute']('listItemId')!==_0x5795e9;return _0x1a006d&&Boolean(_0x5795e9)&&_0x195560&&_0x1c5d97;},_0x404d35=>o(_0x2a8a0a,'ELEMENT_LIST_ITEM',_0x404d35));}['_registerLegacyDescription'](){const _0x2d9ec1=this['editor'],_0x319c21=_0x2d9ec1['locale'];function _0x5f19c4(_0x366359){const _0x8e8f88=_0x2d9ec1['commands']['get']('bulletedList')['value'],_0x5de89e=_0x2d9ec1['commands']['get']('numberedList')['value'];return'numberedList'===_0x366359?_0x8e8f88:_0x5de89e;}_0x2d9ec1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5b6db3){if('formatBlock'!=_0x5b6db3['type'])return;const {data:_0x55c065}=_0x5b6db3;if(!_0x55c065)return;let _0x1e7120,_0x128c35,_0x3e4847,_0x4ee1a2;switch(_0x55c065['commandName']){case'bulletedList':_0x3e4847=_0x55c065['commandParams'][0x0]['forceValue'],_0x4ee1a2=_0x5f19c4(_0x55c065['commandName']),_0x1e7120=_0x3e4847?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ee1a2&&_0x2d9ec1['config']['get']('list.multiBlock')||(_0x1e7120='*Change\x20to:*\x20%0'),_0x128c35={'type':'format','content':o(_0x319c21,_0x1e7120,o(_0x319c21,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3e4847=_0x55c065['commandParams'][0x0]['forceValue'],_0x4ee1a2=_0x5f19c4(_0x55c065['commandName']),_0x1e7120=_0x3e4847?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ee1a2&&_0x2d9ec1['config']['get']('list.multiBlock')||(_0x1e7120='*Change\x20to:*\x20%0'),_0x128c35={'type':'format','content':o(_0x319c21,_0x1e7120,o(_0x319c21,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1e7120='*Indent:*\x20%0',_0x128c35={'type':'format','content':o(_0x319c21,_0x1e7120,o(_0x319c21,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1e7120=function(_0x2fa596){const _0xccd0b9=_0x2fa596['getFirstRange']();let _0x54e855=_0xccd0b9['start']['nodeAfter'];for(;_0x54e855&&_0xccd0b9['containsItem'](_0x54e855);){if(_0x54e855['getAttribute']('listIndent')>0x0)return!0x1;_0x54e855=_0x54e855['nextSibling'];}return!0x0;}(_0x5b6db3)?o(_0x319c21,'*Format:*\x20remove\x20from\x20%0',o(_0x319c21,function(_0x5ad083){return'ELEMENT_'+_0x5ad083['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5b6db3))):o(_0x319c21,'*Outdent:*\x20%0',o(_0x319c21,'ELEMENT_LIST_ITEM')),_0x128c35={'type':'format','content':_0x1e7120};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x55c065['multipleBlocks']&&(_0x1e7120='*Merge:*\x20%0',_0x128c35={'type':'deletion','content':o(_0x319c21,_0x1e7120,o(_0x319c21,'ELEMENT_LIST_ITEM'))});}return _0x128c35;});}}function Ee(_0x23e0ba){let _0x129f73=_0x23e0ba['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x129f73;){const _0x63ae45=_0x129f73['getAttribute']('listItemId');if(!_0x63ae45)return!0x1;if(_0x63ae45==_0x23e0ba['data']['newValue'])return'newValue';if(_0x63ae45==_0x23e0ba['data']['oldValue'])return'oldValue';_0x129f73=_0x129f73['previousSibling'];}return!0x1;}class pe extends _0x201c95{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x45fee8=this['editor']['config']['get']('list.properties'),_0x451039=this['editor']['plugins']['get']('TrackChangesEditing');_0x45fee8['styles']&&(_0x451039['enableDefaultAttributesIntegration']('listStyle'),_0x451039['registerBlockAttribute']('listStyle')),_0x45fee8['reversed']&&(_0x451039['enableDefaultAttributesIntegration']('listReversed'),_0x451039['registerBlockAttribute']('listReversed')),_0x45fee8['startIndex']&&(_0x451039['enableDefaultAttributesIntegration']('listStart'),_0x451039['registerBlockAttribute']('listStart'));const _0x18e54a={'type':'format','content':''};_0x451039['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x556d9d=this['editor']['locale'];_0x451039['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x556d9d,'FORMAT_LIST_REVERSED')),_0x451039['descriptionFactory']['registerDescriptionCallback'](_0x582756=>{const {data:_0x4950c1}=_0x582756;if(_0x4950c1&&'listReversed'==_0x4950c1['key'])return null==_0x4950c1['newValue']||0x0==_0x4950c1['newValue']&&null==_0x4950c1['oldValue']?_0x18e54a:void 0x0;}),_0x451039['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x556d9d,'FORMAT_LIST_START')),_0x451039['descriptionFactory']['registerDescriptionCallback'](_0x76ec93=>{const {data:_0x3fc800}=_0x76ec93;if(_0x3fc800&&'listStart'==_0x3fc800['key'])return null==_0x3fc800['newValue']||0x1==_0x3fc800['newValue']&&null==_0x3fc800['oldValue']?_0x18e54a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x66cf32=>{if(_0x66cf32['batch']['isUndo'])return!0x1;let _0x3529f2=!0x1;const _0x395b5e=_0x451039['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a0674=>{const _0x3bff4d=_0x451039['_getAttributeKey'](_0x1a0674);return'listStart'==_0x3bff4d||'listReversed'==_0x3bff4d;});for(const _0x4c7f47 of _0x395b5e){const _0x240f25=_0x4c7f47['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x240f25||'customNumbered'==_0x240f25)continue;_0x451039['_findSuggestions'](_0x4c7f47['getFirstRange'](),'attribute')['find'](_0x3c0f8c=>'listType'==_0x451039['_getAttributeKey'](_0x3c0f8c['suggestion']))||(_0x66cf32['removeMarker'](_0x4c7f47['getFirstMarker']()),_0x3529f2=!0x0);}return _0x3529f2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x75c0ca){const _0x5e5f9d=this['editor']['locale'],{data:_0x419949}=_0x75c0ca,_0x449086={'type':'format','content':''};if(!_0x419949||'listStyle'!=_0x419949['key'])return;if(!_0x419949['oldValue'])return'default'==_0x419949['newValue']?_0x449086:{'type':'format','content':''+o(_0x5e5f9d,'*Set\x20format:*\x20%0',o(_0x5e5f9d,this['_getTranslationKeyForListStyle'](_0x419949['newValue'])))};if(!_0x419949['newValue']){if('default'==_0x419949['oldValue'])return _0x449086;let _0x3092d5=_0x75c0ca['head'];for(;_0x3092d5;){if(_0x3092d5['data']&&'listType'==_0x3092d5['data']['key']&&_0x3092d5['data']['newValue'])return _0x449086;_0x3092d5=_0x3092d5['next'];}return{'type':'format','content':''+o(_0x5e5f9d,'*Remove\x20format:*\x20%0',o(_0x5e5f9d,this['_getTranslationKeyForListStyle'](_0x419949['oldValue'])))};}if('default'!=_0x419949['newValue'])return{'type':'format','content':''+o(_0x5e5f9d,'*Set\x20format:*\x20%0',o(_0x5e5f9d,this['_getTranslationKeyForListStyle'](_0x419949['newValue'])))};let _0x3c556a=_0x75c0ca['head'];for(;_0x3c556a;){if(_0x3c556a['data']&&'listType'==_0x3c556a['data']['key']&&_0x3c556a['data']['newValue']&&_0x3c556a['data']['oldValue'])return _0x449086;_0x3c556a=_0x3c556a['next'];}return{'type':'format','content':o(_0x5e5f9d,'*Set\x20format:*\x20%0',o(_0x5e5f9d,'ELEMENT_'+_0x75c0ca['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x554f8d=this['editor'],_0x3e1d64=_0x554f8d['locale'];_0x554f8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48a3e2=>{if('formatBlock'!=_0x48a3e2['type'])return;const {data:_0x17e308}=_0x48a3e2;if(!_0x17e308)return;let _0x430a5f,_0x2d12f6;switch(_0x17e308['commandName']){case'listStyle':_0x430a5f='*Change\x20to:*\x20%0',_0x2d12f6={'type':'format','content':o(_0x3e1d64,_0x430a5f,o(_0x3e1d64,this['_getTranslationKeyForListStyle'](_0x17e308['commandParams'][0x0]['type'])))};break;case'listReversed':_0x430a5f=_0x17e308['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d12f6={'type':'format','content':o(_0x3e1d64,_0x430a5f)};break;case'listStart':_0x430a5f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d12f6={'type':'format','content':o(_0x3e1d64,_0x430a5f,_0x17e308['commandParams'][0x0]['startIndex'])};}return _0x2d12f6;});}['_getTranslationKeyForListStyle'](_0x2ded4a){return'ELEMENT_'+function(_0x54ae73){if(ye['includes'](_0x54ae73))return'bulleted';if(Se['includes'](_0x54ae73))return'numbered';return null;}(_0x2ded4a)['toUpperCase']()+'_LIST_'+_0x2ded4a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x201c95{static get['requires'](){return[_0x3c8429];}['init'](){const _0x48f96f=this['editor'],_0x14b9ef=_0x48f96f['plugins']['get']('TrackChangesEditing'),_0x1cd2ae=_0x48f96f['commands']['get']('enter');_0x14b9ef['enableCommand']('enter',()=>{_0x48f96f['model']['change'](_0x23a047=>{const _0x3b7869=_0x48f96f['model']['document']['selection'],_0x461c2d=_0x3b7869['getFirstPosition'](),_0x80e15a=_0x348f0d['fromRange'](_0x3b7869['getFirstRange']());if(_0x1cd2ae['enterBlock'](_0x23a047)){const _0x4f1f6d=_0x48f96f['model']['createPositionAt'](_0x461c2d['parent']['nextSibling'],0x0),_0x3786be=_0x23a047['createRange'](_0x461c2d,_0x4f1f6d);_0x14b9ef['markInsertion'](_0x3786be);}else _0x23a047['setSelection'](_0x23a047['createRange'](_0x80e15a['end']));_0x80e15a['detach'](),_0x1cd2ae['fire']('afterExecute',{'writer':_0x23a047});});}),_0x48f96f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x48f96f,'split'),{'priority':'high'}),_0x48f96f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x23ff64,_0x49c5fb,_0x172d29)=>{const _0x3b7f2f=_0x172d29['mapper']['markerNameToElements'](_0x49c5fb['markerName']);if(_0x3b7f2f){for(const _0x1af000 of _0x3b7f2f)_0x1af000['hasClass']('ck-suggestion-marker-split')&&(_0x172d29['mapper']['unbindElementFromMarkerName'](_0x1af000,_0x49c5fb['markerName']),_0x172d29['writer']['remove'](_0x1af000));}},{'priority':'high'}),_0x48f96f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c5562,_0x3c8024,_0x9d5c04)=>{_0x9d5c04['options']['showSuggestionHighlights']&&_e(_0x48f96f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1c5562,_0x3c8024,_0x9d5c04);},{'priority':'high'});}}class X extends _0x201c95{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xe390c5=this['editor']['plugins']['get']('TrackChangesEditing');_0xe390c5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xe390c5['enableCommand']('findNext'),_0xe390c5['enableCommand']('findPrevious'),_0xe390c5['enableCommand']('replace'),_0xe390c5['enableCommand']('replaceAll');}['handleFindCommand'](_0x437b7e,_0xe63b9d,_0x1f9491={}){const _0x547dda=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x437b7e(_0x284dde=>{let _0x47292a=('string'==typeof _0xe63b9d?_0x547dda['findByTextCallback'](_0xe63b9d,_0x1f9491):_0xe63b9d)(_0x284dde);Array['isArray'](_0x47292a)&&(_0x47292a={'results':_0x47292a,'searchText':'string'==typeof _0xe63b9d?_0xe63b9d:''});const _0x57070d=_0x47292a['results']['filter'](_0x4dae5b=>!0x1===this['_isInDeletionRange'](_0x4dae5b,_0x284dde['item']));return{..._0x47292a,'results':_0x57070d};},_0x1f9491);}['_isInDeletionRange'](_0x2e2d62,_0x2d446e){const _0x1448cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d446e,_0x2e2d62['start']),this['editor']['model']['createPositionAt'](_0x2d446e,_0x2e2d62['end']));for(const _0x3c734c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1448cb['getIntersection'](_0x3c734c['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 _0x201c95{['afterInit'](){const _0x461d3e=this['editor']['locale'],_0x41b168=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x260909,commandName:_0x1b93b0}of ro)this['editor']['plugins']['has'](_0x260909)&&(_0x41b168['enableDefaultAttributesIntegration'](_0x1b93b0),_0x41b168['registerInlineAttribute'](_0x1b93b0));_0x41b168['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x461d3e,'FORMAT_FONT_SIZE')),_0x41b168['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x461d3e,'FORMAT_FONT_FAMILY')),_0x41b168['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x461d3e,'FORMAT_FONT_COLOR')),_0x41b168['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x461d3e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48c72a=this['editor'],_0x332732=_0x48c72a['locale'];_0x48c72a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d77ac=>{const _0x1331c8=_0x332732['t'];if('formatInline'!=_0x3d77ac['type'])return;const {data:_0x47f9ac}=_0x3d77ac;if(null!=_0x47f9ac){if('fontSize'==_0x47f9ac['commandName']){const _0x45d544=_0x47f9ac['commandParams'][0x0]['value'];if(_0x45d544){const _0x471060=_0x1331c8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2efb2a=>_0x2efb2a['model']==_0x45d544)['title'])['toLowerCase']();return{'type':'format','content':o(_0x332732,'*Set\x20font\x20size:*\x20%0',_0x471060)};}return{'type':'format','content':o(_0x332732,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x47f9ac['commandName']){const _0xc96cf6=_0x47f9ac['commandParams'][0x0]['value'];return _0xc96cf6?{'type':'format','content':o(_0x332732,'*Set\x20font\x20family:*\x20%0',_0xc96cf6)}:{'type':'format','content':o(_0x332732,'*Reset\x20font\x20family*')};}if('fontColor'==_0x47f9ac['commandName']){const _0x3cdab8=_0x47f9ac['commandParams'][0x0]['value'];if(_0x3cdab8){const _0x3debc1=_0x327750(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2b5003=>_0x2b5003['model']==_0x3cdab8);let _0x48a605=_0x3cdab8,_0x28c1e6='';return _0x3debc1&&(_0x48a605=_0x3debc1['label'],_0x28c1e6=_0x1331c8(_0x48a605)['toLowerCase']()),{'type':'format','content':o(_0x332732,'*Set\x20font\x20color:*\x20%0',_0x28c1e6)['trim'](),'color':{'value':_0x3cdab8,'title':_0x28c1e6||_0x48a605}};}return{'type':'format','content':o(_0x332732,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x47f9ac['commandName']){const _0xc21c8f=_0x47f9ac['commandParams'][0x0]['value'];if(_0xc21c8f){const _0x2d6180=_0x327750(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2f1ecd=>_0x2f1ecd['model']==_0xc21c8f);let _0x5f0945=_0xc21c8f,_0xb2c948='';return _0x2d6180&&(_0x5f0945=_0x2d6180['label'],_0xb2c948=_0x1331c8(_0x5f0945)['toLowerCase']()),{'type':'format','content':o(_0x332732,'*Set\x20font\x20background\x20color:*\x20%0',_0xb2c948)['trim'](),'color':{'value':_0xc21c8f,'title':_0xb2c948||_0x5f0945}};}return{'type':'format','content':o(_0x332732,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x201c95{['afterInit'](){const _0x50a96b=this['editor'],_0x531076=_0x50a96b['plugins']['get']('TrackChangesEditing'),_0x2356c4=_0x50a96b['commands']['get']('copyFormat'),_0x26f8dc=_0x50a96b['commands']['get']('pasteFormat');_0x2356c4&&_0x26f8dc&&(_0x531076['enableDefaultAttributesIntegration']('pasteFormat'),_0x531076['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3a8f42=this['editor'],_0x2f9e63=_0x3a8f42['locale'];_0x3a8f42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45fca0=>{if('formatBlock'!=_0x45fca0['type']&&'formatInline'!=_0x45fca0['type'])return;const {data:_0x33ba8d}=_0x45fca0;if(_0x33ba8d&&'pasteFormat'===_0x33ba8d['commandName']){const _0x394c2a=[],_0x2b2ec2=_0x33ba8d['commandParams'][0x0];for(const [_0xd863ea,_0x1a2835]of Object['entries'](_0x2b2ec2))_0x394c2a['push'](so(_0x3a8f42,_0xd863ea,_0x1a2835));return _0x394c2a['length']?{'type':'format','content':o(_0x2f9e63,'*Set\x20format\x20to:*\x20%0',_0x394c2a['join'](',\x20'))}:{'type':'format','content':o(_0x2f9e63,'*Remove\x20all\x20formatting*')};}});}}function so(_0xef9cd2,_0xccb2a7,_0x47b4c1){const _0x562ca2=_0xef9cd2['locale']['t'],_0x55d101=_0xccb2a7['split'](/(?=[A-Z])/)['join']('\x20'),_0x39c0a5=_0x562ca2(_0x55d101['charAt'](0x0)['toUpperCase']()+_0x55d101['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47b4c1)return _0x39c0a5;if('fontColor'===_0xccb2a7||'fontBackgroundColor'===_0xccb2a7){const _0x21c8ce=_0x327750(_0xef9cd2['config']['get']('fontColor.colors'))['find'](_0x1173f0=>_0x1173f0['model']==_0x47b4c1);return _0x39c0a5+'\x20('+(_0x21c8ce?_0x562ca2(_0x21c8ce['label'])['toLowerCase']():_0x47b4c1)+')';}if('fontSize'===_0xccb2a7&&isNaN(parseFloat(_0x47b4c1))){const _0x3990b1=_0xef9cd2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xef9cd2['config']['get']('fontSize.options'))['find'](_0x29ddf4=>_0x29ddf4['model']==_0x47b4c1);return _0x39c0a5+'\x20('+(_0x3990b1?_0x562ca2(_0x3990b1['title'])['toLowerCase']():_0x47b4c1)+')';}return _0x39c0a5+'\x20('+_0x47b4c1+')';}class tt extends _0x201c95{['_headingOptions'];['afterInit'](){const _0x1e0c13=this['editor'];if(!_0x1e0c13['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1e0c13['config']['get']('heading.options');const _0x5456c0=_0x1e0c13['locale'],_0x3d09f3=_0x1e0c13['plugins']['get']('TrackChangesEditing');_0x3d09f3['enableDefaultAttributesIntegration']('heading');for(const _0x3f48d0 of this['_headingOptions'])'paragraph'!=_0x3f48d0['model']&&_0x3d09f3['descriptionFactory']['registerElementLabel'](_0x3f48d0['model'],_0x3b08ea=>{const _0x13f642=this['_getHeadingLevel'](_0x3f48d0['model']);return null!==_0x13f642?_0x2aa3f3(_0x3b08ea,_0x13f642):_0x3b2446(_0x3b08ea,_0x3f48d0['title']);});function _0x2aa3f3(_0x57997d,_0x1d44fa){return o(_0x5456c0,'ELEMENT_HEADING',[_0x57997d,_0x1d44fa]);}function _0x3b2446(_0x254b04,_0x52c42c){return o(_0x5456c0,'ELEMENT_HEADING_CUSTOM',[_0x254b04,_0x52c42c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x145cde=this['editor'],_0x470595=_0x145cde['locale'];function _0x4be68c(_0x384a94,_0x3e2ae1){return o(_0x470595,'ELEMENT_HEADING_CUSTOM',[_0x384a94,_0x3e2ae1]);}_0x145cde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb764dc=>{if('formatBlock'!=_0xb764dc['type'])return;const {data:_0x387170}=_0xb764dc;if(_0x387170&&'heading'==_0x387170['commandName']){const _0xdb5a4f=_0x387170['commandParams'][0x0]['value'],_0x2ba1c0=this['_getHeadingLevel'](_0xdb5a4f);if(null!==_0x2ba1c0)return{'type':'format','content':o(_0x470595,'*Change\x20to:*\x20%0',(_0x35ccae=0x1,_0x5f4f89=_0x2ba1c0,o(_0x470595,'ELEMENT_HEADING',[_0x35ccae,_0x5f4f89])))};const _0x35c3ac=this['_headingOptions']['find'](_0x2946aa=>_0x2946aa['model']===_0xdb5a4f)['title'];return{'type':'format','content':o(_0x470595,'*Change\x20to:*\x20%0',_0x4be68c(0x1,_0x35c3ac))};}var _0x35ccae,_0x5f4f89;});}['_getHeadingLevel'](_0x537367){const _0x3bc99f=_0x537367['match'](/^heading(\d+)/);if(_0x3bc99f)return _0x3bc99f[0x1];const _0x118f60=this['_headingOptions']?.['find'](_0x2a23a5=>_0x2a23a5['model']==_0x537367);if(_0x118f60&&_0x118f60['view']){const _0x1bbba8=_0x118f60['view'],_0x204576=(_0x1bbba8['name']??_0x1bbba8)['match'](/^h(\d+)/);if(_0x204576)return _0x204576[0x1];}return null;}}class et extends _0x201c95{['afterInit'](){const _0x4c7861=this['editor'];if(!_0x4c7861['plugins']['has']('HighlightEditing'))return;const _0x3e6b12=_0x4c7861['plugins']['get']('TrackChangesEditing'),_0x1c3846=_0x4c7861['locale'];_0x3e6b12['enableDefaultAttributesIntegration']('highlight'),_0x3e6b12['registerInlineAttribute']('highlight'),_0x3e6b12['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1c3846,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b345a=this['editor'],_0x424ad9=_0x2b345a['locale'];_0x2b345a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c2d22=>{if('formatInline'!=_0x4c2d22['type'])return;const {data:_0x2ec749}=_0x4c2d22;if(_0x2ec749&&'highlight'==_0x2ec749['commandName']){const _0x45608e=_0x424ad9['t'],_0x358046=_0x2ec749['commandParams'][0x0]['value'];if(_0x358046){const _0x89fd1c=_0x2b345a['config']['get']('highlight.options')['find'](_0x31366a=>_0x31366a['model']==_0x358046),_0x4effc4=_0x45608e(_0x89fd1c['title'])['toLowerCase']();return{'type':'format','content':o(_0x424ad9,'*Set\x20highlight:*\x20%0',_0x4effc4),'color':{'value':_0x89fd1c['color'],'title':_0x89fd1c['title']}};}return{'type':'format','content':o(_0x424ad9,'*Remove\x20highlight*',o(_0x424ad9,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x201c95{['afterInit'](){const _0x4b6d5f=this['editor'];if(!_0x4b6d5f['plugins']['has']('HorizontalLineEditing'))return;_0x4b6d5f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x36cede=_0x4b6d5f['plugins']['get']('TrackChangesEditing'),_0x5ecfa5=_0x4b6d5f['locale'];_0x36cede['descriptionFactory']['registerElementLabel']('horizontalLine',_0x39d52c=>o(_0x5ecfa5,'ELEMENT_HORIZONTAL_LINE',_0x39d52c)),_0x4b6d5f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x584f7e,{writer:_0xcc384a,options:_0x30d3fe})=>{if(!_0x30d3fe['showSuggestionHighlights'])return null;const _0x5b4fd4=_0xcc384a['createContainerElement']('div'),_0x2cd699=_0xcc384a['createEmptyElement']('hr');return _0xcc384a['addClass']('ck-horizontal-line',_0x5b4fd4),_0xcc384a['insert'](_0xcc384a['createPositionAt'](_0x5b4fd4,0x0),_0x2cd699),_0x5b4fd4;},'converterPriority':'high'});}}class st extends _0x201c95{['afterInit'](){const _0x10b95d=this['editor'];if(!_0x10b95d['plugins']['has']('HtmlEmbed'))return;const _0x176480=_0x10b95d['plugins']['get']('TrackChangesEditing'),_0x161b0e=_0x10b95d['locale'];_0x176480['descriptionFactory']['registerElementLabel']('rawHtml',_0x33baa8=>o(_0x161b0e,'ELEMENT_HTML_EMBED',_0x33baa8)),_0x176480['enableDefaultAttributesIntegration']('htmlEmbed'),_0x176480['registerBlockAttribute']('value'),_0x176480['descriptionFactory']['registerDescriptionCallback'](_0xea622b=>{if('attribute'!=_0xea622b['type'])return;const {data:_0x1b282b}=_0xea622b;if(_0x1b282b&&'value'==_0x1b282b['key']&&_0xea622b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f9099=o(_0x161b0e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x161b0e,'*Change\x20%0\x20content*',_0x1f9099)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31ec41=this['editor'],_0x4fe628=_0x31ec41['locale'];_0x31ec41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3960ca=>{if('formatBlock'!=_0x3960ca['type'])return;const {data:_0x251ea1}=_0x3960ca;if(_0x251ea1&&'htmlEmbed'==_0x251ea1['commandName']){const _0x4f748e=o(_0x4fe628,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4fe628,'*Change\x20%0\x20content*',_0x4f748e)};}});}}class nt extends _0x201c95{['afterInit'](){const _0x2d186b=this['editor'];if(!_0x2d186b['plugins']['has']('ImageEditing'))return;const _0x50b5ff=_0x2d186b['plugins']['get']('TrackChangesEditing'),_0x59f7f6=_0x2d186b['plugins']['get']('ImageUtils'),_0x5aa77b=_0x2d186b['locale'];_0x50b5ff['enableCommand']('insertImage'),_0x50b5ff['descriptionFactory']['registerElementLabel']('imageBlock',_0x41fbea=>o(_0x5aa77b,'ELEMENT_IMAGE',_0x41fbea)),_0x50b5ff['descriptionFactory']['registerElementLabel']('imageInline',_0xc9e7bb=>o(_0x5aa77b,'ELEMENT_INLINE_IMAGE',_0xc9e7bb)),_0x50b5ff['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5aa77b,'ELEMENT_CAPTION')),_0x2d186b['plugins']['has']('ImageUploadEditing')&&_0x50b5ff['enableCommand']('uploadImage'),_0x2d186b['plugins']['has']('ImageBlockEditing')&&_0x2d186b['plugins']['has']('ImageInlineEditing')&&(_0x50b5ff['enableCommand']('imageTypeInline',(_0x5146b0,_0x39265c)=>{const _0x5a2ab2=_0x59f7f6['getClosestSelectedImageElement'](_0x2d186b['model']['document']['selection']);_0x2d186b['model']['change'](()=>{_0x50b5ff['markBlockFormat'](_0x5a2ab2,{'commandName':'imageTypeInline','commandParams':[_0x39265c]},[],'convertBlockImageToInline');});}),_0x50b5ff['enableCommand']('imageTypeBlock',(_0x302fd3,_0x232268)=>{_0x2d186b['model']['change'](_0x2d4da4=>{let _0x4027e8=_0x59f7f6['getClosestSelectedImageElement'](_0x2d186b['model']['document']['selection']),_0x5bbd20=_0x2d4da4['createRangeOn'](_0x4027e8);const _0x5bc298=_0x562fa4['fromPosition'](_0x5bbd20['start'],'toPrevious'),_0x573121=_0x562fa4['fromPosition'](_0x5bbd20['end'],'toNext');_0x50b5ff['forceDefaultExecution'](()=>_0x302fd3(_0x232268)),_0x4027e8=_0x59f7f6['getClosestSelectedImageElement'](_0x2d186b['model']['document']['selection']),_0x5bbd20=_0x2d4da4['createRangeOn'](_0x4027e8);const _0x529c3d=_0x2d4da4['createRange'](_0x5bc298,_0x573121);_0x5bc298['detach'](),_0x573121['detach'](),_0x50b5ff['markBlockFormat'](_0x4027e8,{'commandName':'imageTypeInline','commandParams':[_0x232268]},[],'convertInlineImageToBlock'),_0x529c3d['start']['isBefore'](_0x5bbd20['start'])&&_0x50b5ff['markInsertion'](_0x2d4da4['createRange'](_0x529c3d['start'],_0x5bbd20['start']),'convertInlineImageToBlock'),_0x5bbd20['end']['isBefore'](_0x529c3d['end'])&&_0x50b5ff['markInsertion'](_0x2d4da4['createRange'](_0x5bbd20['end'],_0x529c3d['end']),'convertInlineImageToBlock');});}),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x50b5ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4c3165])=>{const _0x373977=_0x50b5ff['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3002bd=_0x4c3165['start'],_0xc27814=_0x4c3165['end'];const _0x5b3ea8=_0x2d186b['model']['schema']['getNearestSelectionRange'](_0x3002bd,'backward'),_0x44003f=_0x2d186b['model']['schema']['getNearestSelectionRange'](_0xc27814,'forward');_0x5b3ea8['isCollapsed']&&(_0x3002bd=_0x5b3ea8['start']),_0x44003f['isCollapsed']&&(_0xc27814=_0x44003f['end']),_0x373977([_0x2d186b['model']['createRange'](_0x3002bd,_0xc27814)]);}),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x41db57),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x41db57)),_0x2d186b['plugins']['has']('ImageCaptionEditing')&&(_0x50b5ff['enableCommand']('toggleImageCaption',(_0x284016,_0x11a4cf)=>{const _0x534148=_0x2d186b['plugins']['get']('ImageCaptionUtils');let _0x7f731b=_0x59f7f6['getClosestSelectedImageElement'](_0x2d186b['model']['document']['selection']),_0x9708e3=_0x534148['getCaptionFromImageModelElement'](_0x7f731b);_0x2d186b['model']['change'](()=>{if(_0x9708e3)return void _0x50b5ff['markDeletion'](_0x2d186b['model']['createRangeOn'](_0x9708e3));const _0x2164c7=_0x59f7f6['isBlockImage'](_0x7f731b);_0x284016(_0x11a4cf),_0x7f731b=_0x59f7f6['getClosestSelectedImageElement'](_0x2d186b['model']['document']['selection']),_0x9708e3=_0x534148['getCaptionFromImageModelElement'](_0x7f731b),_0x50b5ff['markInsertion'](_0x2d186b['model']['createRangeOn'](_0x9708e3),_0x2164c7?null:'imageCaption');});}),_0x50b5ff['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x41db57));const _0x5d2adb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3de752(_0x42c9bf,_0x48ef6d){const _0x1c7de7=_0x5d2adb['findIndex'](({type:_0x15d0a8,subType:_0x1fcf26})=>_0x42c9bf['type']==_0x15d0a8&&_0x42c9bf['subType']==_0x1fcf26),_0xdc1ac2=_0x5d2adb['findIndex'](({type:_0xe0b1da,subType:_0x482065})=>_0x48ef6d['type']==_0xe0b1da&&_0x48ef6d['subType']==_0x482065);if(_0x1c7de7<0x0||_0xdc1ac2<0x0)return!0x1;const _0x3910e1=_0x42c9bf['getFirstRange'](),_0x49373c=_0x48ef6d['getFirstRange']();if((0x0==_0x1c7de7||0x1==_0x1c7de7)&&0x2==_0xdc1ac2&&_0x3910e1['isIntersecting'](_0x49373c))return!0x0;if(0x2==_0x1c7de7&&0x3==_0xdc1ac2){const _0x53e977=_0x50b5ff['_findSuggestions'](_0x3910e1,'insertion')['filter'](({suggestion:_0x58d5ca,meta:_0x5244a4})=>_0x5244a4['isOwn']&&'convertInlineImageToBlock'==_0x58d5ca['subType']);if(_0x53e977['length']>0x1&&_0x49373c['end']['isEqual'](_0x3910e1['start']))return!0x0;if(0x1==_0x53e977['length']&&(_0x3910e1['start']['isEqual'](_0x49373c['end'])||_0x3910e1['end']['isEqual'](_0x49373c['start'])))return!0x0;}if(0x3==_0x1c7de7&&0x3==_0xdc1ac2&&_0x3910e1['start']['isBefore'](_0x49373c['start'])){const _0x402e03=_0x3910e1['end']['nodeAfter'],_0x58575f=_0x49373c['start']['nodeBefore'];return _0x59f7f6['isBlockImage'](_0x402e03)&&_0x402e03===_0x58575f;}return!0x1;}function _0x41db57(_0x59aac6,_0x5f31a0){return _0x3de752(_0x59aac6,_0x5f31a0)?[_0x59aac6,_0x5f31a0]:_0x3de752(_0x5f31a0,_0x59aac6)?[_0x5f31a0,_0x59aac6]:null;}_0x2d186b['plugins']['has']('ImageResize')&&(_0x50b5ff['enableDefaultAttributesIntegration']('resizeImage'),_0x50b5ff['registerBlockAttribute']('resizedWidth'),_0x50b5ff['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5aa77b,'FORMAT_IMAGE_SIZE'))),_0x2d186b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x50b5ff['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50b5ff['registerBlockAttribute']('alt')),_0x50b5ff['descriptionFactory']['registerDescriptionCallback'](_0x2f00ad=>{if(!!_0x5d2adb['find'](({type:_0x5d1c2b,subType:_0x4030f4})=>_0x2f00ad['type']==_0x5d1c2b&&_0x2f00ad['subType']==_0x4030f4))return _0x2f00ad['previous']?{}:void 0x0;}),_0x50b5ff['descriptionFactory']['registerDescriptionCallback'](_0x1081fd=>{if('insertion'==_0x1081fd['type']||'deletion'==_0x1081fd['type']){const _0x413e0d=_0x1081fd['getContainedElement']();if(_0x413e0d&&_0x413e0d['is']('element','caption'))return{'type':'insertion'==_0x1081fd['type']?'addObject':'removeObject','element':_0x413e0d,'quantity':0x1};}}),_0x50b5ff['descriptionFactory']['registerDescriptionCallback'](_0x525aee=>'formatBlock'==_0x525aee['type']&&'convertInlineImageToBlock'==_0x525aee['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x525aee['type']&&'convertBlockImageToInline'==_0x525aee['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x50b5ff['descriptionFactory']['registerDescriptionCallback'](_0x1064f9=>{if('attribute'!=_0x1064f9['type'])return;const {data:_0x509046}=_0x1064f9;if(!_0x509046||'alt'!=_0x509046['key'])return;const _0x3bf51c=_0x509046['newValue'];return _0x3bf51c?{'type':'format','content':o(_0x5aa77b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3bf51c+'\x22')}:{'type':'format','content':o(_0x5aa77b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x145886=this['editor'],_0x474dce=_0x145886['locale'];_0x145886['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9f477d=>{if('formatBlock'!=_0x9f477d['type']&&'formatInline'!=_0x9f477d['type'])return;const {data:_0x1ba570}=_0x9f477d;if(_0x1ba570){if('imageTextAlternative'==_0x1ba570['commandName']){const _0x151f62=_0x1ba570['commandParams'][0x0]['newValue'];return _0x151f62?{'type':'format','content':o(_0x474dce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x151f62+'\x22')}:{'type':'format','content':o(_0x474dce,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1ba570['commandName']){const _0x7997a=_0x1ba570['commandParams'][0x0]['width'];return _0x7997a?{'type':'format','content':o(_0x474dce,'*Set\x20image\x20width:*\x20%0',_0x7997a)}:{'type':'format','content':o(_0x474dce,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x201c95{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d94cf=this['editor']['locale'],_0x458467=this['editor']['plugins']['get']('TrackChangesEditing');_0x458467['enableDefaultAttributesIntegration']('replaceImageSource'),_0x458467['registerBlockAttribute']('src'),_0x458467['descriptionFactory']['registerDescriptionCallback'](_0xcd69b4=>{if('attribute'!=_0xcd69b4['type'])return;const {data:_0x117eaa}=_0xcd69b4;return _0x117eaa&&'src'==_0x117eaa['key']?_0x117eaa['newValue']&&_0x117eaa['oldValue']?{'type':'format','content':o(_0x1d94cf,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b37a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b37a7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1b37a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b37a7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1b37a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52c586=this['editor'],_0x5cd595=_0x52c586['locale'];_0x52c586['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3943e0=>{if('formatBlock'!=_0x3943e0['type']&&'formatInline'!=_0x3943e0['type'])return;const {data:_0x2eb255}=_0x3943e0;if(!_0x2eb255||'replaceImageSource'!=_0x2eb255['commandName'])return;return{'type':'format','content':o(_0x5cd595,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x201c95{['afterInit'](){const _0xde5d08=this['editor'];if(!_0xde5d08['plugins']['has']('ImageStyleEditing'))return;const _0x3920ec=_0xde5d08['plugins']['get']('TrackChangesEditing'),_0x35df11=_0xde5d08['plugins']['get']('ImageUtils'),_0x246641={};_0x3920ec['enableCommand']('imageStyle',(_0x2e5260,_0x837808)=>{const _0x2567c7=_0xde5d08['plugins']['get']('Users')['me'],_0x57f190=_0xde5d08['commands']['get']('imageStyle');let _0x208144=_0x35df11['getClosestSelectedImageElement'](_0xde5d08['model']['document']['selection']),_0x54fc85=_0xde5d08['model']['createRangeOn'](_0x208144),_0x29bf8d=_0x57f190['value'];if(_0x29bf8d==_0x837808['value'])return;const _0x3df1b0={'commandName':'imageStyle','commandParams':[_0x837808],'formatGroupId':_0x5eb85a()};_0xde5d08['model']['change'](()=>{if(_0x3920ec['getSuggestions']()['filter'](_0x26ba56=>_0x26ba56['isInContent']&&_0x2567c7==_0x26ba56['author']&&('formatBlock'==_0x26ba56['type']||'formatInline'==_0x26ba56['type'])&&('imageStylePreApply'==_0x26ba56['subType']||'imageStylePostApply'==_0x26ba56['subType'])&&_0x26ba56['getFirstRange']()['isEqual'](_0x54fc85))['forEach'](_0x46be72=>_0x3920ec['discardSuggestion'](_0x46be72['head'])),_0x208144=_0x35df11['getClosestSelectedImageElement'](_0xde5d08['model']['document']['selection']),_0x54fc85=_0xde5d08['model']['createRangeOn'](_0x208144),_0x57f190['refresh'](),_0xde5d08['commands']['get']('imageTypeInline')['refresh'](),_0xde5d08['commands']['get']('imageTypeBlock')['refresh'](),_0x29bf8d=_0x57f190['value'],_0x29bf8d!=_0x837808['value'])return _0x35df11['isInlineImage'](_0x208144)&&_0x57f190['shouldConvertImageType'](_0x837808['value'],_0x208144)?(_0x2e5260({..._0x837808,'setImageSizes':!0x1}),_0x208144=_0x35df11['getClosestSelectedImageElement'](_0xde5d08['model']['document']['selection']),void _0x3920ec['markBlockFormat'](_0x208144,{..._0x3df1b0,'commandReversedParams':[{'value':_0x29bf8d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x35df11['isBlockImage'](_0x208144)?_0x3920ec['markBlockFormat'](_0x208144,_0x3df1b0,[],'imageStylePostApply'):_0x3920ec['markInlineFormat'](_0x54fc85,_0x3df1b0,'imageStylePostApply'));});});for(const _0xb20888 of _0xde5d08['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x246641[_0xb20888['name']]=_0xb20888['title']['toLowerCase']();_0x3920ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3920ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3920ec['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3920ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x227621])=>{_0x35df11['setImageNaturalSizeAttributes'](_0x227621['getContainedElement']());}),_0x3920ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x20c75c,_0xe2ab37)=>{_0x3920ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x20c75c,{'commandName':_0xe2ab37['commandName'],'commandParams':_0xe2ab37['commandReversedParams']});}),_0x3920ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xfa0b4c,_0x27aef2){if(_0xf7c827(_0xfa0b4c,_0x27aef2))return[_0xfa0b4c,_0x27aef2];if(_0xf7c827(_0x27aef2,_0xfa0b4c))return[_0x27aef2,_0xfa0b4c];return null;});const _0x24053a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xf7c827(_0x33595b,_0x45a9e8){const _0x5106b4=_0x24053a['findIndex'](({type:_0xdc1273,subType:_0x38a2d7})=>_0x33595b['type']==_0xdc1273&&_0x33595b['subType']==_0x38a2d7),_0x9961ec=_0x24053a['findIndex'](({type:_0x43d150,subType:_0x123603})=>_0x45a9e8['type']==_0x43d150&&_0x45a9e8['subType']==_0x123603);if(_0x5106b4<0x0||_0x9961ec<0x0)return!0x1;const _0x3c96cb=_0x33595b['getFirstRange'](),_0xd75c0a=_0x45a9e8['getFirstRange']();if((0x0==_0x5106b4||0x1==_0x5106b4)&&0x2==_0x9961ec&&_0x3c96cb['isIntersecting'](_0xd75c0a))return!0x0;if(0x2==_0x5106b4&&0x3==_0x9961ec){const _0x46b3c1=_0x3920ec['_findSuggestions'](_0x3c96cb,'insertion')['filter'](({suggestion:_0x17010c,meta:_0x2a3c5f})=>_0x2a3c5f['isOwn']&&'convertInlineImageToBlock'==_0x17010c['subType']);if(_0x46b3c1['length']>0x1&&_0xd75c0a['end']['isEqual'](_0x3c96cb['start']))return!0x0;if(0x1==_0x46b3c1['length']&&(_0x3c96cb['start']['isEqual'](_0xd75c0a['end'])||_0x3c96cb['end']['isEqual'](_0xd75c0a['start'])))return!0x0;}if(0x3==_0x5106b4&&0x3==_0x9961ec&&_0x3c96cb['start']['isBefore'](_0xd75c0a['start'])){const _0x135a85=_0x3c96cb['end']['nodeAfter'],_0x1be7a9=_0xd75c0a['start']['nodeBefore'];return _0x35df11['isBlockImage'](_0x135a85)&&_0x135a85===_0x1be7a9;}return!0x1;}_0xde5d08['model']['document']['registerPostFixer'](()=>{let _0x546075=!0x1;const _0x418ac9=Array['from'](_0xde5d08['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9b6344,data:_0x13c282}of _0x418ac9){const {group:_0x83e94d,type:_0x5b021a,subType:_0x2d2907,id:_0x3af436}=_0x3920ec['_splitMarkerName'](_0x9b6344);if('suggestion'==_0x83e94d&&_0x3920ec['hasSuggestion'](_0x3af436)){if('formatBlock'==_0x5b021a&&('imageStylePreApply'==_0x2d2907||'imageStylePostApply'==_0x2d2907)){const _0x2757a8=_0x3920ec['getSuggestion'](_0x3af436);if(_0x13c282['newRange']){const _0x380a52=_0x2757a8['getFirstRange']()['getContainedElement']();if(_0x35df11['isBlockImage'](_0x380a52))continue;_0x3920ec['discardSuggestion'](_0x2757a8),_0x546075=!0x0;}}if('insertion'==_0x5b021a&&'imageCaption'==_0x2d2907&&!_0x13c282['newRange']){const _0x489ffb=_0x3920ec['getSuggestion'](_0x3af436);_0x489ffb['next']&&_0x489ffb['next']['isInContent']&&(_0x3920ec['discardSuggestion'](_0x489ffb['next']),_0x546075=!0x0);}}}return _0x546075;}),this['_registerLegacyDescription'](_0x246641);}['_registerLegacyDescription'](_0x508ee4){const _0x27fbfa=this['editor'],_0x49032f=_0x27fbfa['locale'];_0x27fbfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34305a=>{if('formatBlock'!=_0x34305a['type']&&'formatInline'!=_0x34305a['type'])return;const {data:_0x563f16}=_0x34305a;if(!_0x563f16||'imageStyle'!=_0x563f16['commandName'])return;const _0x1d829a=_0x563f16['commandParams'][0x0]['value'];return _0x32177c('side'===_0x1d829a?o(_0x49032f,'FORMAT_SIDE_IMAGE'):_0x508ee4[_0x1d829a]||_0x1d829a);function _0x32177c(_0x5c4bf1){return{'type':'format','content':o(_0x49032f,'*Format:*\x20%0',_0x5c4bf1)};}});}}class at extends _0x201c95{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5e7307){super(_0x5e7307),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x49a398=this['editor'],_0x15a70=_0x49a398['commands']['get']('importWord'),_0x2cc437=_0x49a398['commands']['get']('trackChanges');_0x15a70&&(_0x15a70['on']('execute',(_0x370e1f,[,_0x498c9b])=>{this['_trackChangesValueDuringImport']=_0x2cc437['value'],_0x498c9b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x15a70,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x15a70,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2cc437['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x49a398['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x21be3e,_0x710005){const {suggestions:_0x374993}=_0x710005,_0x3a90b5=this['editor']['commands']['get']('trackChanges'),_0x205342=_0x3a90b5['value'];this['_trackChangesValueDuringImport']!==_0x205342&&(_0x3a90b5['execute'](),this['_trackChangesExecuted']=!0x0),_0x374993&&_0x374993['forEach'](({id:_0xca016e,type:_0x5178d8,author:_0x240524,created_at:_0x5bd24e})=>{const _0x5e8cde={'id':_0xca016e,'type':_0x5178d8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x240524,'createdAt':_0x5bd24e?new Date(_0x5bd24e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5e8cde);});}}class ct extends _0x201c95{['afterInit'](){const _0x332881=this['editor'],_0x262889=_0x332881['plugins']['get']('TrackChangesEditing');if(_0x332881['plugins']['has']('IndentEditing')&&(_0x262889['enableCommand']('indent'),_0x262889['enableCommand']('outdent')),_0x332881['plugins']['has']('IndentBlock')){for(const _0x556ddd of['indentBlock','outdentBlock'])_0x262889['enableDefaultAttributesIntegration'](_0x556ddd);}const _0x575fb3=_0x332881['locale'];_0x262889['registerBlockAttribute']('blockIndent'),_0x262889['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x575fb3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50f9c8=this['editor'],_0x20d351=_0x50f9c8['locale'],_0x9f6a14=_0x50f9c8['plugins']['get']('TrackChangesEditing');_0x9f6a14['descriptionFactory']['registerDescriptionCallback'](_0x4efa0f=>{if('formatBlock'!=_0x4efa0f['type'])return;const {data:_0x553ecc}=_0x4efa0f;if(!_0x553ecc)return;if('indentBlock'!=_0x553ecc['commandName']&&'outdentBlock'!=_0x553ecc['commandName'])return;const _0x3ef16a=_0x4efa0f['getItems']()[0x0],_0x8a811c=_0x9f6a14['descriptionFactory']['getItemLabel'](_0x3ef16a);return'indentBlock'==_0x553ecc['commandName']?{'type':'format','content':o(_0x20d351,'*Indent:*\x20%0',_0x8a811c)}:'outdentBlock'==_0x553ecc['commandName']?{'type':'format','content':o(_0x20d351,'*Outdent:*\x20%0',_0x8a811c)}:void 0x0;});}}class ut extends _0x201c95{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x201c95{['afterInit'](){const _0x3e7db5=this['editor'];if(!_0x3e7db5['plugins']['has']('LinkEditing'))return;const _0x3c6b8b=_0x3e7db5['plugins']['get']('TrackChangesEditing'),_0x36b387=_0x3e7db5['commands']['get']('link');_0x3c6b8b['enableDefaultAttributesIntegration']('link'),_0x3c6b8b['enableDefaultAttributesIntegration']('unlink'),_0x3c6b8b['registerInlineAttribute']('linkHref');for(const _0x423311 of _0x36b387['manualDecorators'])_0x3c6b8b['registerInlineAttribute'](_0x423311['id']),_0x3c6b8b['descriptionFactory']['registerAttributeLabel'](_0x423311['id'],'link\x20('+_0x423311['label']['toLowerCase']()+')');_0x3c6b8b['descriptionFactory']['registerDescriptionCallback'](_0x57e2f1=>{if('attribute'!=_0x57e2f1['type'])return;const {data:_0x22cc2f}=_0x57e2f1;if(!_0x22cc2f||'linkHref'!=_0x22cc2f['key'])return;const _0x4413d2=_0x22cc2f['newValue'],_0x34fd9b=_0x3e7db5['locale'];return{'type':'format','content':null==_0x4413d2?o(_0x34fd9b,'*Remove\x20link*'):o(_0x34fd9b,'*Set\x20link:*\x20%0','\x22'+_0x4413d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29e4a7=this['editor'],_0x30a4bd=_0x29e4a7['locale'];_0x29e4a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x161ed2=>{if('formatInline'!=_0x161ed2['type'])return;const {data:_0x1878aa}=_0x161ed2;if(_0x1878aa){if('link'==_0x1878aa['commandName']){const _0x58da5e=_0x1878aa['commandParams'][0x0];return{'type':'format','content':o(_0x30a4bd,'*Set\x20link:*\x20%0','\x22'+_0x58da5e+'\x22')};}return'unlink'==_0x1878aa['commandName']?{'type':'format','content':o(_0x30a4bd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x201c95{['afterInit'](){const _0x329550=this['editor'],_0x274781=_0x329550['locale'];if(!_0x329550['plugins']['has']('LegacyListEditing'))return;const _0x305858=_0x329550['plugins']['get']('TrackChangesEditing'),_0xe12a36=_0x329550['plugins']['has']('LegacyTodoListEditing');function _0x24ba56(_0x54d3cf){return()=>{const _0x702042=_0x329550['model']['document']['selection'],_0x28321e=_0x329550['commands']['get'](_0x54d3cf);if(_0x28321e['value'])return void _0x329550['execute']('paragraph',{});const _0x6e828f=_0x54d3cf['slice'](0x0,-0x4),_0x2dbf6c=function(_0x5e067d,_0x1f73da,_0x59cb6){let _0x7e6a8=Array['from'](_0x5e067d)['filter'](_0x635bb=>function(_0x4e96b7,_0x36a9bb){return _0x36a9bb['checkChild'](_0x4e96b7['parent'],'listItem')&&!_0x36a9bb['isObject'](_0x4e96b7);}(_0x635bb,_0x59cb6));_0x7e6a8=_0x7e6a8['filter'](_0x26041b=>!_0x26041b['is']('element','listItem')||_0x26041b['getAttribute']('listType')!=_0x1f73da);const _0x31565d=new Set();for(const _0xc55751 of _0x7e6a8)_0xc55751['is']('element','listItem')?_0x31565d['add'](fe(_0xc55751)):_0x31565d['add'](_0xc55751);return Array['from'](_0x31565d);}(_0x702042['getSelectedBlocks'](),_0x6e828f,_0x329550['model']['schema']);_0x329550['model']['change'](()=>{for(const _0x107059 of _0x2dbf6c)_0x305858['markBlockFormat'](_0x107059,{'commandName':_0x54d3cf,'commandParams':[{'forceValue':!_0x28321e['value']}],'formatGroupId':'blockName'},ue(_0x107059));});};}function _0x266b35(_0x5c55c5){return()=>{const _0x1f86d1=function(_0x44608f){let _0x1a98ab=Array['from'](_0x44608f);const _0x4ec8f1=_0x1a98ab['findIndex'](_0x4ce7f0=>'listItem'!=_0x4ce7f0['name']);return _0x4ec8f1>-0x1&&(_0x1a98ab=_0x1a98ab['slice'](0x0,_0x4ec8f1)),_0x1a98ab;}(_0x329550['model']['document']['selection']['getSelectedBlocks']()),_0x28a09b=_0x329550['model']['createRange'](_0x329550['model']['createPositionAt'](_0x1f86d1[0x0],'before'),_0x329550['model']['createPositionAt'](_0x1f86d1[_0x1f86d1['length']-0x1],'end'));_0x329550['model']['change'](()=>{_0x305858['markBlockFormat'](_0x28a09b,{'commandName':_0x5c55c5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x510d95){const _0x3d9647=new Set();for(const _0x5d8ff7 of _0x510d95){let _0x5da4a5=_0x5d8ff7['nextSibling'];for(;_0x5da4a5&&_0x5da4a5['getAttribute']('listIndent')>_0x5d8ff7['getAttribute']('listIndent');)_0x3d9647['add'](_0x5da4a5),_0x5da4a5=_0x5da4a5['nextSibling'];}return Array['from'](_0x3d9647);}(_0x1f86d1));});};}_0x305858['enableCommand']('numberedList',_0x24ba56('numberedList')),_0x305858['enableCommand']('bulletedList',_0x24ba56('bulletedList')),_0xe12a36&&_0x305858['enableCommand']('todoList',_0x24ba56('todoList')),_0x305858['enableCommand']('indentList',_0x266b35('indentList')),_0x305858['enableCommand']('outdentList',_0x266b35('outdentList')),_0xe12a36&&_0x305858['enableCommand']('checkTodoList',()=>{const _0x4e0b35=_0x329550['commands']['get']('checkTodoList'),_0x21e34d=Array['from'](_0x4e0b35['_selectedElements']);_0x21e34d['filter'](_0x5f4895=>_0x5f4895['getAttribute']('todoListChecked')!=_0x4e0b35['value']),_0x329550['model']['change'](()=>{for(const _0x576be2 of _0x21e34d)_0x305858['markBlockFormat'](_0x576be2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4e0b35['value']}]});});}),_0x305858['descriptionFactory']['registerElementLabel']('listItem',_0xbc6d75=>o(_0x274781,'ELEMENT_LIST_ITEM',_0xbc6d75)),_0x305858['descriptionFactory']['registerDescriptionCallback'](_0x3167ff=>{if('formatBlock'!=_0x3167ff['type']&&'formatInline'!=_0x3167ff['type'])return;const {data:_0x21977e}=_0x3167ff;if(_0x21977e){if('numberedList'==_0x21977e['commandName']||'bulletedList'==_0x21977e['commandName']||'todoList'==_0x21977e['commandName'])switch(_0x21977e['commandName']['replace']('List','')){case'bulleted':return _0x1c42d4(o(_0x274781,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c42d4(o(_0x274781,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c42d4(o(_0x274781,'ELEMENT_TODO_LIST'));}if('indentList'==_0x21977e['commandName'])return{'type':'format','content':o(_0x274781,'*Indent:*\x20%0',o(_0x274781,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x21977e['commandName'])return{'type':'format','content':o(_0x274781,'*Outdent:*\x20%0',o(_0x274781,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x21977e['commandName'])return _0x21977e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x274781,'*Check\x20item*')}:{'type':'format','content':o(_0x274781,'*Uncheck\x20item*')};}function _0x1c42d4(_0x3fc176){return{'type':'format','content':o(_0x274781,'*Change\x20to:*\x20%0',_0x3fc176)};}});}}function fe(_0x1e81ce){const _0x1f58d7=_0x1e81ce['getAttribute']('listIndent');if(0x0==_0x1f58d7)return _0x1e81ce;let _0x417ac6=_0x1e81ce;for(;_0x1e81ce['previousSibling']&&_0x1e81ce['previousSibling']['is']('element','listItem');){const _0x5adafe=_0x1e81ce['previousSibling']['getAttribute']('listIndent');if(_0x5adafe==_0x1f58d7)_0x417ac6=_0x1e81ce['previousSibling'];else{if(_0x5adafe<_0x1f58d7)break;}_0x1e81ce=_0x1e81ce['previousSibling'];}return _0x417ac6;}function ue(_0x35dea7){const _0x4a1068=[];if(_0x35dea7['is']('element','listItem')&&_0x35dea7['getAttribute']('listIndent')>0x0){let _0x11e26d=_0x35dea7['nextSibling'];for(;_0x11e26d&&'listItem'==_0x11e26d['name']&&_0x11e26d['getAttribute']('listIndent')==_0x35dea7['getAttribute']('listIndent');)_0x4a1068['push'](_0x11e26d),_0x11e26d=_0x11e26d['nextSibling'];}return _0x4a1068;}class W extends _0x201c95{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x51fc14=this['editor']['config']['get']('list.properties'),_0x143201=this['editor']['plugins']['get']('TrackChangesEditing');_0x51fc14['styles']&&_0x143201['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x51fc14['reversed']&&_0x143201['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x51fc14['startIndex']&&_0x143201['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x143201['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2feec4,_0x19c282={}){const _0x44590e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x584f1b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x44590e['markMultiRangeBlockFormat'](_0x584f1b,{'commandName':'listStyle','commandParams':[{'type':_0x19c282['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34d440,_0x4ec09d={}){const _0x3fcdb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b5827=this['_getSuggestionBlocks'](_0x558941=>_0x558941['is']('element','listItem')&&'numbered'===_0x558941['getAttribute']('listType'));if(_0x3b5827['length']<0x1)return;const _0x316730=_0x3b5827['map'](_0x4a655f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a655f,'before'),this['editor']['model']['createPositionAt'](_0x4a655f,0x0)));this['editor']['model']['change'](()=>{_0x3fcdb8['markMultiRangeBlockFormat'](_0x316730,{'commandName':'listReversed','commandParams':[{'reversed':_0x4ec09d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x23ac6f,_0x362343={}){const _0x4e57a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x409fa2=this['_getSuggestionBlocks'](_0x172b31=>_0x172b31['is']('element','listItem')&&'numbered'===_0x172b31['getAttribute']('listType'));if(_0x409fa2['length']<0x1)return;const _0x582b20=_0x409fa2['map'](_0x161dfb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x161dfb,'before'),this['editor']['model']['createPositionAt'](_0x161dfb,0x0)));this['editor']['model']['change'](()=>{_0x4e57a7['markMultiRangeBlockFormat'](_0x582b20,{'commandName':'listStart','commandParams':[{'startIndex':_0x362343['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x36a517){if('formatBlock'!=_0x36a517['type']&&'formatInline'!=_0x36a517['type'])return;const _0x1f2d0e=this['editor']['locale'],{data:_0x29bf55}=_0x36a517;if(!_0x29bf55)return;let _0x3ca080,_0x6f23d0;switch(_0x29bf55['commandName']){case'listStyle':_0x3ca080='*Change\x20to:*\x20%0',_0x6f23d0={'type':'format','content':o(_0x1f2d0e,_0x3ca080,o(_0x1f2d0e,this['_getTranslationKeyForListStyle'](_0x29bf55['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ca080=_0x29bf55['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6f23d0={'type':'format','content':o(_0x1f2d0e,_0x3ca080)};break;case'listStart':_0x3ca080='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6f23d0={'type':'format','content':o(_0x1f2d0e,_0x3ca080,_0x29bf55['commandParams'][0x0]['startIndex'])};}return _0x6f23d0;}['_getSuggestionBlocksForListStyle'](){const _0x19fc52=this['editor']['plugins']['get']('LegacyListUtils');let _0x462ffa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x462ffa[0x0]?.['is']('element','listItem')&&_0x462ffa['unshift'](..._0x19fc52['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x462ffa[_0x462ffa['length']-0x1]?.['is']('element','listItem')&&_0x462ffa['push'](..._0x19fc52['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x462ffa=[...new Set(_0x462ffa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x462ffa=_0x462ffa['filter'](_0x30084a=>_0x30084a['is']('element','listItem'))),_0x462ffa;}['_getSuggestionBlocks'](_0x1edeed){const _0x2bbfc2=this['editor']['plugins']['get']('LegacyListUtils');let _0x4583f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1edeed)['map'](_0x16db03=>{const _0x2e6dc9=this['editor']['model']['createPositionAt'](_0x16db03,0x0);return[..._0x2bbfc2['getSiblingNodes'](_0x2e6dc9,'backward'),..._0x2bbfc2['getSiblingNodes'](_0x2e6dc9,'forward')];})['flat']();return _0x4583f2=[...new Set(_0x4583f2)],_0x4583f2;}['_getTranslationKeyForListStyle'](_0x15dab2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x15dab2)||'default')['toUpperCase']()+'_LIST_'+_0x15dab2['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x201c95{['afterInit'](){const _0x389154=this['editor'];if(!_0x389154['plugins']['has']('MediaEmbedEditing'))return;const _0x659aa4=_0x389154['plugins']['get']('TrackChangesEditing'),_0x4de6de=_0x389154['locale'];_0x659aa4['enableCommand']('mediaEmbed'),_0x659aa4['descriptionFactory']['registerElementLabel']('media',_0xc91e33=>o(_0x4de6de,'ELEMENT_MEDIA',_0xc91e33)),_0x389154['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xc2e5a6,{writer:_0x2eec88,options:_0x22761b})=>{if(_0x22761b['showSuggestionHighlights'])return _0x2eec88['createEmptyElement']('div');},'converterPriority':'high'}),_0x389154['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3bc739,_0x2c1706,_0xee83cf)=>{_0xee83cf['options']['showSuggestionHighlights']&&_0x3bc739['stop']();},{'priority':'high'});}}class mt extends _0x201c95{['afterInit'](){const _0x3aa1e7=this['editor'];_0x3aa1e7['plugins']['has']('MentionEditing')&&_0x3aa1e7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x201c95{['afterInit'](){const _0x4057f2=this['editor'];if(!_0x4057f2['plugins']['has']('MergeFieldsEditing'))return;_0x4057f2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x4057f2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x31cc34=_0x4057f2['plugins']['get']('TrackChangesEditing'),_0x332a63=_0x4057f2['locale'];_0x31cc34['descriptionFactory']['registerElementLabel']('mergeField',_0x3d1421=>o(_0x332a63,'ELEMENT_MERGE_FIELD',_0x3d1421)),_0x31cc34['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e4c62=>o(_0x332a63,'ELEMENT_MERGE_FIELD',_0x2e4c62)),_0x31cc34['descriptionFactory']['registerDescriptionCallback'](_0x220826=>{if('insertion'!=_0x220826['type']&&'deletion'!=_0x220826['type'])return;const _0x7e3ad3=_0x220826['getContainedElement']();if(null==_0x7e3ad3)return;if(!_0x7e3ad3['is']('element','mergeField')&&!_0x7e3ad3['is']('element','mergeFieldBlock'))return;const _0x595afb=_0x4057f2['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x7e3ad3['getAttribute']('id'));return'insertion'==_0x220826['type']?{'type':'insertion','content':o(_0x332a63,'*Insert:*\x20%0','\x22'+_0x595afb+'\x22\x20'+o(_0x332a63,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x332a63,'*Remove:*\x20%0','\x22'+_0x595afb+'\x22\x20'+o(_0x332a63,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x201c95{['afterInit'](){const _0x1bd757=this['editor'],_0x11c908=_0x1bd757['plugins']['get']('TrackChangesEditing');_0x1bd757['plugins']['has']('MultiLevelList')&&(_0x11c908['enableDefaultAttributesIntegration']('multiLevelList'),_0x11c908['registerBlockAttribute']('listMarkerStyle'),_0x11c908['descriptionFactory']['registerDescriptionCallback'](_0x41b3ef=>this['handleDescriptions'](_0x41b3ef)));}['handleDescriptions'](_0x25e9c0){const _0x3db6a7=this['editor']['locale'],{data:_0x1ede14}=_0x25e9c0,_0x536285={'type':'format','content':''};if(_0x1ede14&&'listMarkerStyle'==_0x1ede14['key']){if(!_0x1ede14['oldValue'])return{'type':'format','content':o(_0x3db6a7,'*Set\x20format:*\x20%0',o(_0x3db6a7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1ede14['newValue']+')'};if(!_0x1ede14['newValue']){let _0x2405df=_0x25e9c0['head'];for(;_0x2405df;){if(_0x2405df['data']&&'listType'==_0x2405df['data']['key']&&_0x2405df['data']['newValue'])return _0x536285;_0x2405df=_0x2405df['next'];}return{'type':'format','content':o(_0x3db6a7,'*Remove\x20format:*\x20%0',o(_0x3db6a7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1ede14['oldValue']+')'};}}}}class kt extends _0x201c95{['afterInit'](){const _0x20ca4e=this['editor'];if(!_0x20ca4e['plugins']['has']('PageBreakEditing'))return;_0x20ca4e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2de7bd=_0x20ca4e['plugins']['get']('TrackChangesEditing'),_0x306f7b=_0x20ca4e['locale'];_0x2de7bd['descriptionFactory']['registerElementLabel']('pageBreak',_0x50f4fc=>o(_0x306f7b,'ELEMENT_PAGE_BREAK',_0x50f4fc));}}class bt extends _0x201c95{['afterInit'](){const _0x594cdb=this['editor'];if(!_0x594cdb['plugins']['has']('Paragraph'))return;const _0x30e400=_0x594cdb['locale'],_0x81f6bc=_0x594cdb['plugins']['get']('TrackChangesEditing');_0x81f6bc['descriptionFactory']['registerElementLabel']('paragraph',_0xe06736=>o(_0x30e400,'ELEMENT_PARAGRAPH',_0xe06736)),_0x81f6bc['enableDefaultAttributesIntegration']('paragraph'),_0x81f6bc['enableCommand']('insertParagraph'),_0x594cdb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x594cdb),{'priority':'highest'}),_0x594cdb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12e0b7,_0x5ecea8,_0x168ebd)=>{_0x168ebd['options']['showSuggestionHighlights']&&nr(_0x594cdb,{'showActiveMarker':!0x1})(_0x12e0b7,_0x5ecea8,_0x168ebd);},{'priority':'highest'});const _0x6866f7=_0x81f6bc['descriptionFactory'];_0x6866f7['registerDescriptionCallback'](_0x136f17=>{if('insertion'!==_0x136f17['type'])return;const {start:_0x27870b,end:_0x4e3686}=_0x136f17['getFirstRange']();if(!_0x27870b['isTouching'](_0x4e3686)||!_0x27870b['nodeAfter'])return;const _0x3d723d=_0x594cdb['model']['schema'],_0x21594b=_0x27870b['nodeAfter'];return _0x3d723d['isBlock'](_0x21594b)&&!_0x3d723d['isLimit'](_0x21594b)&&_0x3d723d['checkChild'](_0x21594b,'$text')?{'type':'insertion','content':o(_0x30e400,'*Insert:*\x20%0',_0x6866f7['getItemLabel'](_0x21594b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x251861=this['editor'],_0x307776=_0x251861['locale'];_0x251861['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eb5e0=>{if('formatBlock'!=_0x4eb5e0['type'])return;const {data:_0x2894f0}=_0x4eb5e0;return _0x2894f0&&'paragraph'==_0x2894f0['commandName']?{'type':'format','content':o(_0x307776,'*Change\x20to:*\x20%0',o(_0x307776,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35bedc,{showActiveMarker:_0x3c2715=!0x0}={}){return(_0x29343d,_0x2ce3af,_0x4a8613)=>{const _0x16028b=_0x35bedc['plugins']['get']('TrackChangesEditing'),_0x320a64=_0x2ce3af['markerRange']['start'],_0x35e163=_0x2ce3af['markerRange']['end'],_0x5bed9b=_0x35bedc['model']['schema'];if(!_0x320a64['isTouching'](_0x35e163)||!_0x320a64['nodeAfter'])return;const _0x565bbd=_0x320a64['nodeAfter'];if(_0x5bed9b['isBlock'](_0x565bbd)&&!_0x5bed9b['isLimit'](_0x565bbd)&&_0x5bed9b['checkChild'](_0x565bbd,'$text')){if(!_0x4a8613['consumable']['consume'](_0x2ce3af['markerRange'],_0x29343d['name']))return;const {authorId:_0x2670f3}=_0x16028b['_splitMarkerName'](_0x2ce3af['markerName']),_0x49b003=_0x4a8613['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2670f3}),_0x34831b=_0x4a8613['mapper']['toViewPosition'](_0x35e163);_0x3c2715&&_0x16028b['activeMarkers']['includes'](_0x2ce3af['markerName'])&&_0x4a8613['writer']['addClass']('ck-suggestion-marker--active',_0x49b003),_0x4a8613['writer']['insert'](_0x34831b,_0x49b003),_0x4a8613['mapper']['bindElementToMarker'](_0x49b003,_0x2ce3af['markerName']);}};}class wt extends _0x201c95{['afterInit'](){const _0x180b38=this['editor'];if(!_0x180b38['plugins']['has']('RemoveFormatEditing'))return;_0x180b38['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa5f915=this['editor'];_0xa5f915['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21ba95=>{if('formatBlock'!=_0x21ba95['type']&&'formatInline'!=_0x21ba95['type'])return;const {data:_0x554cd0}=_0x21ba95;return _0x554cd0&&'removeFormat'==_0x554cd0['commandName']?{'type':'format','content':o(_0xa5f915['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x201c95{['afterInit'](){const _0x593216=this['editor'];if(!_0x593216['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b2676=_0x593216['plugins']['get']('TrackChangesEditing');_0x2b2676['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b2676['enableCommand']('goToNextRestrictedEditingException');const _0x2ccdfa=_0x593216['plugins']['get']('RestrictedEditingModeEditing');_0x2ccdfa['enableCommand']('trackChanges'),_0x2ccdfa['enableCommand']('acceptSuggestion'),_0x2ccdfa['enableCommand']('discardSuggestion'),_0x2ccdfa['enableCommand']('acceptAllSuggestions'),_0x2ccdfa['enableCommand']('discardAllSuggestions'),_0x2ccdfa['enableCommand']('acceptSelectedSuggestions'),_0x2ccdfa['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x201c95{static get['requires'](){return[_0x2fcc5b];}['init'](){const _0x5c1a54=this['editor'],_0xb5db7e=_0x5c1a54['plugins']['get']('TrackChangesEditing');_0xb5db7e['enableCommand']('shiftEnter'),_0x5c1a54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5c1a54),{'priority':'high'}),_0x5c1a54['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5c1a54),{'priority':'high'}),_0x5c1a54['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x89394c,_0x15e966,_0x584907)=>{_0x584907['options']['showSuggestionHighlights']&&ge(_0x5c1a54,{'showActiveMarker':!0x1})(_0x89394c,_0x15e966,_0x584907);}),_0xb5db7e['descriptionFactory']['registerElementLabel']('softBreak',_0x16badf=>o(_0x5c1a54['locale'],'ELEMENT_LINE_BREAK',_0x16badf));}}function ge(_0x28a5a9,{showActiveMarker:_0x24ea21=!0x0}={}){return(_0x14b176,_0x31ed55,_0x4983e8)=>{const _0x4744ec=_0x28a5a9['plugins']['get']('TrackChangesEditing');if(!_0x4983e8['consumable']['test'](_0x31ed55['markerRange'],_0x14b176['name']))return;const _0x5c67c0=_0x28a5a9['model'];for(const _0x2821b6 of _0x31ed55['markerRange']['getItems']()){if(!_0x2821b6['is']('element','softBreak'))continue;const _0x58598c='deletion'==_0x31ed55['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x43b98b}=_0x4744ec['_splitMarkerName'](_0x31ed55['markerName']),_0x24783c=_0x4983e8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58598c,'data-author-id':_0x43b98b}),_0x4209b4=_0x4983e8['mapper']['toViewPosition'](_0x5c67c0['createPositionBefore'](_0x2821b6));_0x24ea21&&_0x4744ec['activeMarkers']['includes'](_0x31ed55['markerName'])&&_0x4983e8['writer']['addClass']('ck-suggestion-marker--active',_0x24783c),_0x4983e8['writer']['insert'](_0x4209b4,_0x24783c),_0x4983e8['mapper']['bindElementToMarker'](_0x24783c,_0x31ed55['markerName']);}};}class St extends _0x201c95{['afterInit'](){const _0x1e7f43=this['editor'],_0x5c0674=_0x1e7f43['model'],_0x336502=_0x1e7f43['locale'];if(!_0x1e7f43['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f0cce=_0x1e7f43['plugins']['get']('TrackChangesEditing'),_0x4208e5='restrictedEditingException',_0x1df2d4=_0x1e7f43['commands']['get'](_0x4208e5);_0x4f0cce['enableCommand'](_0x4208e5,(_0x5923f8,_0x438a39={})=>{const _0x2f3582=_0x5c0674['document']['selection'];if(_0x2f3582['isCollapsed'])return void _0x5923f8(_0x438a39);const _0x2b14bf=void 0x0!==_0x438a39['forceValue']?_0x438a39['forceValue']:!_0x1df2d4['value'];_0x5c0674['change'](()=>{const _0x4e7fa9=Array['from'](_0x2f3582['getRanges']());for(const _0x4f5f08 of _0x4e7fa9){const _0x546554=_0x2b14bf?[_0x4f5f08]:io(_0x4208e5,_0x4f5f08,_0x5c0674);for(const _0x23b5a1 of _0x546554)_0x4f0cce['markInlineFormat'](_0x23b5a1,{'commandName':_0x4208e5,'commandParams':[{'forceValue':_0x2b14bf}]});}});}),_0x4f0cce['descriptionFactory']['registerDescriptionCallback'](_0x736d2a=>{if('formatBlock'!=_0x736d2a['type']&&'formatInline'!=_0x736d2a['type'])return;const {data:_0x53ac35}=_0x736d2a;return _0x53ac35&&_0x53ac35['commandName']==_0x4208e5?_0x53ac35['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x336502,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x336502,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x201c95{['afterInit'](){const _0x1da975=this['editor'];if(!_0x1da975['plugins']['has']('Style')||!_0x1da975['plugins']['has']('DataSchema'))return;const _0xd3a5d2=_0x1da975['plugins']['get']('TrackChangesEditing'),_0x5b3ae6=_0x1da975['locale'],_0x1bfb65=_0x1da975['config']['get']('style')||{},_0x41d668=_0x1da975['plugins']['get']('GeneralHtmlSupport'),_0x176041=_0x1da975['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1da975['plugins']['get']('DataSchema'),_0x1bfb65['definitions']);_0xd3a5d2['enableDefaultAttributesIntegration']('style');const _0x2ccadf=new Set();for(const _0x4df9b9 of _0x176041['block']){const _0xeedd3a=_0x41d668['getGhsAttributeNameForElement'](_0x4df9b9['element']);_0x2ccadf['add'](_0xeedd3a);}const _0x439be4=new Set();for(const _0x5c5d69 of _0x176041['inline']){const _0x520c8a=_0x41d668['getGhsAttributeNameForElement'](_0x5c5d69['element']);_0x439be4['add'](_0x520c8a);for(const _0x46b983 of _0x5c5d69['ghsAttributes'])_0x439be4['add'](_0x46b983);}for(const _0x1a64e9 of _0x2ccadf)_0xd3a5d2['registerBlockAttribute'](_0x1a64e9),_0xd3a5d2['descriptionFactory']['registerAttributeLabel'](_0x1a64e9,o(_0x5b3ae6,'FORMAT_STYLE'));for(const _0xde53c5 of _0x439be4)_0xd3a5d2['registerInlineAttribute'](_0xde53c5),_0xd3a5d2['descriptionFactory']['registerAttributeLabel'](_0xde53c5,o(_0x5b3ae6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x344e51=this['editor'],_0x4a7e14=_0x344e51['locale'];_0x344e51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597645=>{if('formatBlock'!=_0x597645['type']&&'formatInline'!=_0x597645['type'])return;const {data:_0x53f552}=_0x597645;return _0x53f552&&'style'===_0x53f552['commandName']?_0x53f552['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a7e14,'*Set\x20format:*\x20%0',_0x53f552['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4a7e14,'*Remove\x20format:*\x20%0',_0x53f552['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x201c95{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a2a92){super(_0x3a2a92),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x256315=this['editor'],_0x14c3f1=_0x256315['model']['document']['selection'];if(!_0x256315['plugins']['has']('TableEditing'))return;const _0x4736ed=_0x256315['locale'],_0x464432=_0x256315['plugins']['get']('TrackChangesEditing'),_0x9d0edd=_0x256315['plugins']['get']('TableUtils');_0x464432['descriptionFactory']['registerElementLabel']('table',_0x42e141=>o(_0x4736ed,'ELEMENT_TABLE',_0x42e141)),this['_setupColumnsRowsFixing'](),_0x464432['enableCommand']('insertTable'),_0x464432['enableCommand']('selectTableRow'),_0x464432['enableCommand']('selectTableColumn');for(const _0x1e8113 of['insertTableRowAbove','insertTableRowBelow']){const _0x30782a=_0x256315['commands']['get'](_0x1e8113);_0x464432['enableCommand'](_0x1e8113,_0xe377fd=>{_0x256315['model']['change'](_0x2c6914=>{_0xe377fd();const _0x2215aa='above'===_0x30782a['order'],_0x121b0a=_0x9d0edd['getSelectionAffectedTableCells'](_0x14c3f1),_0x5a57be=_0x9d0edd['getRowIndexes'](_0x121b0a),_0x2b9a7a=_0x2215aa?_0x5a57be['first']-0x1:_0x5a57be['last']+0x1,_0x13ad92=_0x121b0a[0x0]['findAncestor']('table'),_0x283bd4=_0x9d0edd['createTableWalker'](_0x13ad92,{'startRow':_0x2b9a7a,'endRow':_0x2b9a7a}),_0x56717a=Array['from'](_0x283bd4)['map'](_0x3c7365=>_0x2c6914['createRangeOn'](_0x3c7365['cell']));_0x464432['markMultiRangeInsertion'](_0x56717a,'tableRow');});});}for(const _0x27512f of['insertTableColumnLeft','insertTableColumnRight']){const _0x31ee56=_0x256315['commands']['get'](_0x27512f);_0x464432['enableCommand'](_0x27512f,_0x5ef358=>{_0x256315['model']['change'](_0x1829df=>{_0x5ef358();const _0x5ca7c1='left'===_0x31ee56['order'],_0x4ac408=_0x9d0edd['getSelectionAffectedTableCells'](_0x14c3f1),_0x4077e3=_0x9d0edd['getColumnIndexes'](_0x4ac408),_0x2f7230=_0x5ca7c1?_0x4077e3['first']-0x1:_0x4077e3['last']+0x1,_0x40fc9c=_0x4ac408[0x0]['findAncestor']('table'),_0x265e3f=_0x9d0edd['createTableWalker'](_0x40fc9c,{'startRow':0x0,'column':_0x2f7230,'includeAllSlots':!0x1}),_0x56175b=Array['from'](_0x265e3f)['map'](_0x273fd6=>_0x1829df['createRangeOn'](_0x273fd6['cell']));_0x464432['markMultiRangeInsertion'](_0x56175b,'tableColumn');});});}for(const _0x3800c6 of['removeTableRow','removeTableColumn']){const _0x1f78c=_0x3800c6['substr'](0xb),_0x57f5f5=_0x1f78c['toLowerCase'](),_0x13f264=_0x57f5f5['substr'](0x0,0x3)+'span',_0x71dc9a='table'+_0x1f78c,_0x4c974d='min'+_0x1f78c,_0x2a55f1='max'+_0x1f78c;_0x464432['enableCommand'](_0x3800c6,()=>{_0x256315['model']['change'](_0x5f5395=>{const _0x4a1c5f=_0x9d0edd['getSelectionAffectedTableCells'](_0x14c3f1),_0x141a3f=_0x4a1c5f[0x0]['findAncestor']('table');let _0x1d7934;if('removeTableRow'==_0x3800c6){const _0x450949=_0x9d0edd['getRowIndexes'](_0x4a1c5f);_0x1d7934={'startRow':_0x450949['first'],'endRow':_0x450949['last'],'includeAllSlots':!0x0};}else{const _0x57a2e7=_0x9d0edd['getColumnIndexes'](_0x4a1c5f);_0x1d7934={'startColumn':_0x57a2e7['first'],'endColumn':_0x57a2e7['last'],'includeAllSlots':!0x0};}const _0x442075=_0x9d0edd['createTableWalker'](_0x141a3f,_0x1d7934),_0x4a3ae2=Array['from'](_0x442075)['map'](({cell:_0x75964c})=>_0x75964c),_0x4b477f=be(_0x4a3ae2['filter'](_0x5617ee=>_0x5617ee['hasAttribute'](_0x13f264))),_0x237f9c=be(_0x4a3ae2['filter'](_0x1070fe=>!_0x1070fe['hasAttribute'](_0x13f264)))['map'](_0x200ebf=>_0x5f5395['createRangeOn'](_0x200ebf)),_0x3e4aaf=_0x464432['markMultiRangeDeletion'](_0x237f9c,_0x71dc9a);if(_0x3e4aaf&&('tableRow'==_0x3e4aaf['subType']||'tableColumn'==_0x3e4aaf['subType'])){const _0x2284e4=this['_getSuggestionCoords'](_0x3e4aaf);for(const _0xef8df9 of _0x4b477f){const _0x24f8a4=_0x5f5395['createRangeOn'](_0xef8df9),_0x57a6ff=_0x9d0edd['getCellLocation'](_0xef8df9),_0x25b240=_0xef8df9['getAttribute'](_0x13f264)-0x1,_0xe6338e=_0x2284e4[_0x4c974d],_0x4b2bdb=_0x2284e4[_0x2a55f1];_0xe6338e<=_0x57a6ff[_0x57f5f5]&&_0x57a6ff[_0x57f5f5]+_0x25b240<=_0x4b2bdb&&_0x3e4aaf['addRange'](_0x24f8a4);}}});});}function _0x150f11(_0x5a160d){const _0x3a4261=Array['from'](_0x14c3f1['getRanges']())['map'](_0x1e8ed4=>_0x348f0d['fromRange'](_0x1e8ed4));_0x256315['model']['change'](_0x6e247=>{const _0x1a687c=_0x6e247['batch'];_0x5a160d=_0x5a160d['filter'](_0x3ed121=>'$graveyard'!=_0x3ed121['root']['rootName']),_0x6e247['setSelection'](_0x5a160d),_0x256315['commands']['get']('removeTableRow')['refresh'](),_0x256315['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x256315['model']['enqueueChange'](()=>{_0x256315['model']['enqueueChange'](_0x1a687c,_0x2c4aa4=>{const _0x35f990=_0x3a4261['filter'](_0x4162e8=>'$graveyard'!=_0x4162e8['root']['rootName']);_0x35f990['length']>0x0&&_0x2c4aa4['setSelection'](_0x35f990);for(const _0xbc791a of _0x3a4261)_0xbc791a['detach']();});});});}function _0x42af12(_0x515b8e){_0x256315['model']['change'](_0x40a830=>{const _0x44747d=Array['from'](_0x14c3f1['getRanges']())['map'](_0x148455=>_0x348f0d['fromRange'](_0x148455)),_0x2d5a98=[];for(const _0x1368fe of _0x515b8e)for(const _0x308777 of _0x1368fe['getItems']({'shallow':!0x0}))_0x2d5a98['push'](_0x308777);for(const _0xe8ff1e of _0x2d5a98)'$graveyard'!=_0xe8ff1e['root']['rootName']&&(_0x40a830['setSelection'](_0x40a830['createPositionAt'](_0xe8ff1e,0x0)),_0x256315['commands']['get']('removeTableColumn')['refresh'](),_0x256315['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4a0aa5=_0x44747d['filter'](_0x2bd9a5=>'$graveyard'!=_0x2bd9a5['root']['rootName']);_0x4a0aa5['length']>0x0&&_0x40a830['setSelection'](_0x4a0aa5);for(const _0x7a8ca9 of _0x44747d)_0x7a8ca9['detach']();});}function _0x2263fb(_0x206bfe,_0x33baae){return _0x33baae['every'](_0x487d5d=>_0x206bfe['some'](_0x3b8eda=>_0x3b8eda['end']['isEqual'](_0x487d5d['start'])||_0x487d5d['end']['isEqual'](_0x3b8eda['start'])));}function _0xadc020(_0x291a34,_0x56f5e3){return!_0x291a34['some'](_0x1ddf76=>_0x56f5e3['some'](_0x4456e8=>_0x1ddf76['isIntersecting'](_0x4456e8)))&&_0x291a34['some'](_0x3318d9=>_0x56f5e3['some'](_0x40399f=>_0x3318d9['end']['isTouching'](_0x40399f['start'])));}_0x256315['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd3d83d,_0x83b3d4,_0x493a2d)=>{if(!_0x493a2d['options']['showSuggestionHighlights'])return;const _0x5e89a3=_0x83b3d4['item'];if(!_0x5e89a3)return;const _0x8cc75=_0x493a2d['mapper']['toViewElement'](_0x5e89a3);function _0x5867c7(_0xf8b544){return Array['isArray'](_0xf8b544)?_0xf8b544:[_0xf8b544];}_0x8cc75&&'tableCell'===_0x5e89a3['name']&&_0x1fc41d(_0x8cc75,_0x493a2d['writer'],(_0x5469d5,_0x41b933,_0x20e83f)=>_0x20e83f['addClass'](_0x5867c7(_0x41b933['classes']),_0x5469d5),(_0x423f8a,_0x5756c9,_0xd02295)=>_0xd02295['removeClass'](_0x5867c7(_0x5756c9['classes']),_0x423f8a));},{'priority':'highest'}),_0x464432['descriptionFactory']['registerDescriptionCallback'](_0x415a94=>{if('insertion'!=_0x415a94['type']&&'deletion'!=_0x415a94['type'])return;const _0x179272=_0x415a94['getContainedElement']();if(null!=_0x179272&&_0x179272['is']('element','table')){if('insertion'==_0x415a94['type']){const _0x3ebabb=_0x415a94['getItems']()['filter'](_0x56c4ce=>_0x56c4ce['is']('$textProxy'))['map'](_0x332c14=>_0x332c14['data']);if(_0x3ebabb['length'])return{'type':'insertion','content':o(_0x4736ed,'*Insert:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ebabb['join']('\x20')+'\x22'))};}if('deletion'==_0x415a94['type']){const _0x16eb01=_0x415a94['getItems']()['filter'](_0x10e04a=>_0x10e04a['is']('$textProxy'))['map'](_0x22de24=>_0x22de24['data']);if(_0x16eb01['length'])return{'type':'deletion','content':o(_0x4736ed,'*Remove:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16eb01['join']('\x20')+'\x22'))};}}}),_0x464432['descriptionFactory']['registerDescriptionCallback'](_0x18f5a2=>{if('tableRow'==_0x18f5a2['subType']){const _0x2903ed=_0x18f5a2['getItems']()['filter'](_0x9106b1=>_0x9106b1['is']('$textProxy'))['map'](_0x255c40=>_0x255c40['data']),_0x566598=this['_getSuggestionCoords'](_0x18f5a2),_0x231f00=_0x566598['maxRow']-_0x566598['minRow']+0x1;if('insertion'==_0x18f5a2['type'])return _0x2903ed['length']?{'type':'insertion','content':o(_0x4736ed,'*Insert:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x231f00,'\x22'+_0x2903ed['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4736ed,'*Insert:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_ROW',_0x231f00))};if('deletion'==_0x18f5a2['type'])return _0x2903ed['length']?{'type':'deletion','content':o(_0x4736ed,'*Remove:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x231f00,'\x22'+_0x2903ed['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4736ed,'*Remove:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_ROW',_0x231f00))};}if('tableColumn'==_0x18f5a2['subType']){const _0x4b3a70=_0x18f5a2['getItems']()['filter'](_0x58f6bd=>_0x58f6bd['is']('$textProxy'))['map'](_0x8cbe3a=>_0x8cbe3a['data']),_0x418570=this['_getSuggestionCoords'](_0x18f5a2),_0x364731=_0x418570['maxColumn']-_0x418570['minColumn']+0x1;if('insertion'==_0x18f5a2['type'])return _0x4b3a70['length']?{'type':'insertion','content':o(_0x4736ed,'*Insert:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x364731,'\x22'+_0x4b3a70['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4736ed,'*Insert:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_COLUMN',_0x364731))};if('deletion'==_0x18f5a2['type'])return _0x4b3a70['length']?{'type':'deletion','content':o(_0x4736ed,'*Remove:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x364731,'\x22'+_0x4b3a70['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4736ed,'*Remove:*\x20%0',o(_0x4736ed,'ELEMENT_TABLE_COLUMN',_0x364731))};}}),_0x464432['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x150f11),_0x464432['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x150f11),_0x464432['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42af12),_0x464432['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42af12),_0x464432['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2263fb),_0x464432['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2263fb),_0x464432['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xadc020),_0x464432['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xadc020);}['_acceptFormatSuggestionCallbackFactory'](){const _0x162338=this['editor'],_0x25ec4d=_0x162338['model']['document']['selection'];return(_0x22b52f,_0x4c9c15)=>{_0x162338['model']['change'](_0x527ffd=>{const {commandName:_0x5e307d,commandParams:_0x25fe44}=_0x4c9c15;let _0x4f103b=_0x22b52f[0x0]['end']['nodeBefore'];_0x25fe44&&_0x25fe44[0x0]&&!0x1===_0x25fe44[0x0]['forceValue']&&(_0x4f103b=_0x22b52f[0x0]['start']['nodeAfter']);const _0x30477b=_0x527ffd['createRangeIn'](_0x4f103b);if('$graveyard'==_0x30477b['root']['rootName'])return;const _0x4cce31=Array['from'](_0x25ec4d['getRanges']())['map'](_0x4bd1bd=>_0x348f0d['fromRange'](_0x4bd1bd));_0x527ffd['setSelection'](_0x30477b),_0x162338['commands']['get'](_0x5e307d)['refresh'](),_0x25fe44['push']({'forceDefaultExecution':!0x0}),_0x162338['execute'](_0x5e307d,..._0x25fe44);const _0x409caf=_0x4cce31['filter'](_0x355218=>'$graveyard'!=_0x355218['root']['rootName']);_0x409caf['length']>0x0&&_0x527ffd['setSelection'](_0x409caf);for(const _0x51aa5c of _0x4cce31)_0x51aa5c['detach']();});};}['_getCoordsForCells'](_0x5b587c){const _0x1621be=this['editor']['plugins']['get']('TableUtils');let _0x38761b=Number['MAX_SAFE_INTEGER'],_0x39be1c=Number['MIN_SAFE_INTEGER'],_0x3d9311=Number['MAX_SAFE_INTEGER'],_0x197366=Number['MIN_SAFE_INTEGER'];for(const _0x2293f0 of _0x5b587c){if('$graveyard'==_0x2293f0['root']['rootName'])continue;const {row:_0x139540,column:_0x453296}=_0x1621be['getCellLocation'](_0x2293f0),_0x3a4ee0=_0x2293f0['hasAttribute']('rowspan')?_0x2293f0['getAttribute']('rowspan')-0x1:0x0,_0x16af9b=_0x2293f0['hasAttribute']('colspan')?_0x2293f0['getAttribute']('colspan')-0x1:0x0;_0x38761b=_0x139540<_0x38761b?_0x139540:_0x38761b,_0x39be1c=_0x139540+_0x3a4ee0>_0x39be1c?_0x139540+_0x3a4ee0:_0x39be1c,_0x3d9311=_0x453296<_0x3d9311?_0x453296:_0x3d9311,_0x197366=_0x453296+_0x16af9b>_0x197366?_0x453296+_0x16af9b:_0x197366;}return{'minRow':_0x38761b,'maxRow':_0x39be1c,'minColumn':_0x3d9311,'maxColumn':_0x197366};}['_setupColumnsRowsFixing'](){const _0x2cc953=this['editor'],_0x46034e=_0x2cc953['plugins']['get']('TrackChangesEditing'),_0x238957=_0x2cc953['plugins']['get']('TableUtils');_0x2cc953['model']['document']['on']('change:data',()=>{const _0x517abf=Array['from'](_0x2cc953['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x446ceb,data:_0xa2a45b}of _0x517abf){const {group:_0x3e0f42,id:_0x18a85c,subType:_0x137ae8}=_0x46034e['_splitMarkerName'](_0x446ceb);if('suggestion'!=_0x3e0f42)continue;if(null!=_0xa2a45b['oldRange'])continue;const _0x4d4185=_0x46034e['getSuggestion'](_0x18a85c);this['_tablePostFixingSubtypes']['includes'](_0x137ae8)&&this['_tableSuggestions']['add'](_0x4d4185);}},{'priority':'low'});const _0x2c5f9b=(_0xc3aebb,_0x45705a)=>{let _0x5db293=!0x1;const _0x4e1dcc=_0x45705a['createRangeOn'](_0xc3aebb),_0x59cc07=_0xc3aebb['findAncestor']('table'),_0x276ff7=_0x238957['getCellLocation'](_0xc3aebb);for(const _0x597fce of this['_tableSuggestions']){const _0xb61b66=_0x597fce['subType'],_0xa838d9=_0xb61b66['startsWith']('tablePaste'),_0x5bdc56=_0xb61b66['substr'](_0xa838d9?0xa:0x5),_0x75a7f5=_0x5bdc56['toLowerCase'](),_0x275f6e=_0x75a7f5['substr'](0x0,0x3)+'span',_0x10d918='min'+_0x5bdc56,_0x7fad37='max'+_0x5bdc56;if(!_0x597fce['isInContent'])continue;if(_0x59cc07!=_0x597fce['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x597fce['isIntersectingWithRange'](_0x4e1dcc))continue;const _0x26c63b=_0xc3aebb['hasAttribute'](_0x275f6e)?_0xc3aebb['getAttribute'](_0x275f6e)-0x1:0x0,_0x3eb864=this['_getSuggestionCoords'](_0x597fce),_0x5a490b=_0x3eb864[_0x10d918],_0x421e96=_0x3eb864[_0x7fad37];_0x5a490b<=_0x276ff7[_0x75a7f5]&&_0x276ff7[_0x75a7f5]+_0x26c63b<=_0x421e96&&(_0x597fce['addRange'](_0x4e1dcc),_0x5db293=!0x0);}return _0x5db293;};_0x2cc953['model']['document']['registerPostFixer'](_0x7457ed=>{let _0x560612=!0x1;for(const _0x2cd3dc of _0x2cc953['model']['document']['differ']['getChanges']())if('insert'==_0x2cd3dc['type']){if('tableRow'==_0x2cd3dc['name']){for(const _0x5821c5 of _0x2cd3dc['position']['nodeAfter']['getChildren']())_0x560612=_0x560612||_0x2c5f9b(_0x5821c5,_0x7457ed);}else'tableCell'==_0x2cd3dc['name']&&(_0x560612=_0x560612||_0x2c5f9b(_0x2cd3dc['position']['nodeAfter'],_0x7457ed));}return _0x560612;});}['_getSuggestionCoords'](_0x1cc583){return this['_getCoordsForCells'](_0x1cc583['getRanges']()['map'](_0x47f011=>_0x47f011['start']['nodeAfter']));}}function be(_0x7bf281){return Array['from'](new Set(_0x7bf281)['values']());}class vt extends _0x201c95{static get['requires'](){return[It];}['afterInit'](){const _0x4da813=this['editor'],_0x2eafaa=_0x4da813['model']['document']['selection'],_0x1d2aef=_0x4da813['locale'];if(!_0x4da813['plugins']['has']('TableEditing'))return;const _0xad5570=_0x4da813['plugins']['get']('TrackChangesEditing'),_0x5d1514=_0x4da813['plugins']['get']('TableUtils'),_0x1c4d8d=_0x4da813['plugins']['get'](It);_0x1c4d8d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xad5570['enableCommand']('mergeTableCells',()=>{const _0x3f3f8d=_0x5d1514['getSelectionAffectedTableCells'](_0x4da813['model']['document']['selection']);_0x4da813['model']['change'](()=>{_0xad5570['markMultiRangeBlockFormat'](_0x3f3f8d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4da813['commands']['get']('mergeTableCells')['on']('execute',(_0x42a105,_0x48f0f1)=>{_0x4da813['commands']['get']('trackChanges')['value']&&(_0x48f0f1['length']>0x0&&_0x48f0f1[_0x48f0f1['length']-0x1]&&_0x48f0f1[_0x48f0f1['length']-0x1]['forceDefaultExecution']||_0xad5570['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x42a105['stop']());},{'priority':'highest'});for(const _0x5dc797 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x57eeaa=_0x4da813['commands']['get'](_0x5dc797);_0xad5570['enableCommand'](_0x5dc797,()=>{const _0x46fc43=_0x4da813['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d8268=>_0x4d8268['is']('element','tableCell')),_0x3c6735=_0x57eeaa['value'];_0x4da813['model']['change'](()=>{_0xad5570['markMultiRangeBlockFormat']([_0x46fc43,_0x3c6735],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x350198 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3b5a66=_0x4da813['commands']['get'](_0x350198);_0xad5570['enableCommand'](_0x350198,()=>{const _0x430f39=_0x5d1514['getSelectionAffectedTableCells'](_0x4da813['model']['document']['selection'])[0x0],_0x4f9fed=_0x430f39['findAncestor']('table'),{column:_0x1f621c,row:_0xb484a4}=_0x5d1514['getCellLocation'](_0x430f39);let _0x5aeaf2=[];if('horizontally'==_0x3b5a66['direction']){const _0x10618a=_0x5d1514['createTableWalker'](_0x4f9fed,{'startRow':_0xb484a4,'endRow':_0xb484a4,'includeAllSlots':!0x0});_0x5aeaf2=Array['from'](_0x10618a)['map'](_0x5a11f8=>_0x5a11f8['cell']);}else{const _0x461c94=_0x5d1514['createTableWalker'](_0x4f9fed,{'column':_0x1f621c,'includeAllSlots':!0x0});_0x5aeaf2=Array['from'](_0x461c94)['map'](_0x45f2d7=>_0x45f2d7['cell']);}_0x4da813['model']['change'](_0x2cae77=>{_0xad5570['markBlockFormat'](_0x2cae77['createRangeOn'](_0x430f39),{'commandName':_0x350198,'commandParams':[]},_0x5aeaf2,_0x350198);});});}_0xad5570['descriptionFactory']['registerDescriptionCallback'](_0x22a402=>{if('formatBlock'!=_0x22a402['type']&&'formatInline'!=_0x22a402['type'])return;const {data:_0x265683}=_0x22a402;return _0x265683&&'mergeTableCells'==_0x265683['commandName']?{'type':'format','content':o(_0x1d2aef,'*Merge\x20cells*')}:void 0x0;}),_0xad5570['descriptionFactory']['registerDescriptionCallback'](_0x566a59=>{if('formatBlock'!=_0x566a59['type']&&'formatInline'!=_0x566a59['type'])return;const {data:_0x7acecb}=_0x566a59;return _0x7acecb?'splitTableCellVertically'==_0x7acecb['commandName']?{'type':'format','content':o(_0x1d2aef,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x7acecb['commandName']?{'type':'format','content':o(_0x1d2aef,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x432ecd=_0x1c4d8d['_acceptFormatSuggestionCallbackFactory']();for(const _0x33ec34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xad5570['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33ec34,'accept',_0x432ecd);for(const _0x4cc4a4 of['splitTableCellVertically','splitTableCellHorizontally'])_0xad5570['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4cc4a4,'accept',_0x432ecd);_0xad5570['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42a7c3=>{_0x4da813['model']['change'](_0x335b79=>{const _0x53a0d5=Array['from'](_0x2eafaa['getRanges']())['map'](_0x154c5f=>_0x348f0d['fromRange'](_0x154c5f));_0x335b79['setSelection'](_0x42a7c3),_0x4da813['commands']['get']('mergeTableCells')['refresh'](),_0x4da813['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x201024=_0x53a0d5['filter'](_0x1e5ae2=>'$graveyard'!=_0x1e5ae2['root']['rootName']);_0x201024['length']>0x0&&_0x335b79['setSelection'](_0x201024);for(const _0x175200 of _0x53a0d5)_0x175200['detach']();});});for(const _0x465717 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2b087b=_0x4da813['commands']['get'](_0x465717);_0x2b087b['on']('set:isEnabled',(_0x20503b,_0x2f9ede,_0x4abaf6)=>{if(_0x4abaf6){const _0x45887b=_0x4da813['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a9611=>_0x4a9611['is']('element','tableCell'));this['_areMergableCells'](_0x2b087b['value'],_0x45887b)||(_0x20503b['return']=!0x1,_0x20503b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3175e6=this['editor']['commands']['get']('mergeTableCells'),_0x1535fe=this['editor']['plugins']['get']('TableUtils');if(!_0x3175e6['isEnabled'])return!0x1;const _0x40864a=_0x1535fe['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x397e46 of _0x40864a)for(const _0x2cb69c of _0x40864a)if(_0x397e46!=_0x2cb69c&&!this['_areMergableCells'](_0x397e46,_0x2cb69c))return!0x1;return!0x0;}['_areMergableCells'](_0x3d0a39,_0xa7cc27){const _0x5d93d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x73400b=this['editor']['model']['createRangeOn'](_0x3d0a39),_0x416ab5=this['editor']['model']['createRangeOn'](_0xa7cc27),_0x6270f0=new Set(),_0x3169a8=new Set();for(const _0x3075d3 of _0x5d93d4['getSuggestions']())if(('insertion'==_0x3075d3['type']||'deletion'==_0x3075d3['type']||'mergeTableCells'==_0x3075d3['subType'])&&_0x3075d3['isInContent']){for(const _0x11e420 of _0x3075d3['getRanges']())_0x11e420['containsRange'](_0x73400b,!0x0)&&_0x6270f0['add'](_0x3075d3['type']+':'+_0x3075d3['author']['id']),_0x11e420['containsRange'](_0x416ab5,!0x0)&&_0x3169a8['add'](_0x3075d3['type']+':'+_0x3075d3['author']['id']);}if(_0x6270f0['size']!=_0x3169a8['size'])return!0x1;for(const _0x1d03a9 of _0x6270f0)if(!_0x3169a8['has'](_0x1d03a9))return!0x1;return!0x0;}}class Ct extends _0x201c95{static get['requires'](){return[It];}['afterInit'](){const _0x196afd=this['editor'];if(!_0x196afd['plugins']['has']('TableEditing'))return;const _0x552bca=_0x196afd['locale'],_0x1d3203=_0x196afd['plugins']['get']('TrackChangesEditing');_0x1d3203['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1d3203['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1d3203['registerBlockAttribute']('headingRows'),_0x1d3203['registerBlockAttribute']('headingColumns'),_0x1d3203['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x552bca,'FORMAT_HEADER_ROW')),_0x1d3203['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x552bca,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d2e76=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26c067=this['editor']['plugins']['get']('TableUtils'),_0x34dd2c=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x10ec8c({showActiveMarker:_0x5ca55a=!0x0,setDataAttribute:_0x44067f=!0x0}={}){return(_0xff5709,_0x57d51c,_0x3bc306)=>{const {type:_0x2efe35,id:_0x656bc}=_0x3d2e76['_splitMarkerName'](_0x57d51c['markerName']),_0x5a21b3=_0x3d2e76['getSuggestion'](_0x656bc),_0x17f8ba=_0x5a21b3['data'];if('formatBlock'!=_0x5a21b3['type']||!_0x17f8ba||'setTableColumnHeader'!=_0x17f8ba['commandName'])return;if(_0x57d51c['item'])return void _0xff5709['stop']();if(!_0x3bc306['consumable']['consume'](_0x57d51c['markerRange'],_0xff5709['name']))return;const _0x40779f=_0x57d51c['markerRange']['start']['nodeAfter'],_0x265472=_0x57d51c['markerRange']['end']['nodeBefore'],_0x23a4a4=_0x40779f['parent']['parent'],{column:_0x4b19ff}=_0x26c067['getCellLocation'](_0x40779f),{column:_0x5be118}=_0x26c067['getCellLocation'](_0x265472);for(let _0x5eeaad=_0x4b19ff;_0x5eeaad<=_0x5be118;_0x5eeaad++){const _0x2ddacc=_0x26c067['createTableWalker'](_0x23a4a4,{'column':_0x5eeaad,'includeAllSlots':!0x1});for(const _0x109c72 of _0x2ddacc){const _0x18e71a=_0x109c72['cell'],_0x1a2475=_0x3bc306['mapper']['toViewElement'](_0x18e71a);_0x3bc306['writer']['addClass']('ck-suggestion-marker-'+_0x2efe35,_0x1a2475),_0x44067f&&_0x3bc306['writer']['setAttribute']('data-suggestion',_0x656bc,_0x1a2475),_0x3bc306['mapper']['bindElementToMarker'](_0x1a2475,_0x57d51c['markerName']),_0x5ca55a&&(_0x3d2e76['activeMarkers']['includes'](_0x57d51c['markerName'])?_0x3bc306['writer']['addClass']('ck-suggestion-marker--active',_0x1a2475):_0x3bc306['writer']['removeClass']('ck-suggestion-marker--active',_0x1a2475));}}};}_0x3d2e76['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x34dd2c),_0x3d2e76['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x34dd2c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10ec8c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50e8aa,_0x2cb4c7,_0x529cb6)=>{_0x529cb6['options']['showSuggestionHighlights']&&_0x10ec8c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x50e8aa,_0x2cb4c7,_0x529cb6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x466b11,_0x4ec154,_0x7110ce)=>{const {type:_0x414513,id:_0x4a18fd}=_0x3d2e76['_splitMarkerName'](_0x4ec154['markerName']),_0x5bd08e=_0x3d2e76['getSuggestion'](_0x4a18fd),_0x15974d=_0x5bd08e['data'];if('formatBlock'!=_0x5bd08e['type']||!_0x15974d||'setTableColumnHeader'!=_0x15974d['commandName'])return;const _0x4d38b5=_0x7110ce['mapper']['markerNameToElements'](_0x4ec154['markerName']);if(_0x4d38b5){for(const _0xed9907 of _0x4d38b5)_0x7110ce['writer']['removeClass']('ck-suggestion-marker-'+_0x414513,_0xed9907),_0x7110ce['writer']['removeClass']('ck-suggestion-marker--active',_0xed9907),_0x7110ce['writer']['removeAttribute']('data-suggestion',_0xed9907),_0x7110ce['mapper']['unbindElementFromMarkerName'](_0xed9907,_0x4ec154['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba853=this['editor'],_0x44c6a6=_0x1ba853['locale'];function _0x417dd5(_0x9efe3e){return{'type':'format','content':o(_0x44c6a6,'*Format:*\x20%0',_0x9efe3e)};}_0x1ba853['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe97a3=>{if('formatBlock'!=_0xe97a3['type'])return;const {data:_0xc6f9be}=_0xe97a3;if(_0xc6f9be){if('setTableRowHeader'==_0xc6f9be['commandName']){const _0x1727eb=_0xc6f9be['commandParams'][0x0]['forceValue'];return _0x417dd5(o(_0x44c6a6,_0x1727eb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc6f9be['commandName']){const _0x28dad3=_0xc6f9be['commandParams'][0x0]['forceValue'];return _0x417dd5(o(_0x44c6a6,_0x28dad3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x17c891=>[_0x17c891,null]));class _t extends _0x201c95{static get['requires'](){return[It];}['afterInit'](){const _0x37b7f3=this['editor'];if(!_0x37b7f3['plugins']['has']('TableClipboard'))return;const _0xf2c034=_0x37b7f3['plugins']['get']('TrackChangesEditing'),_0x448eb8=_0x37b7f3['plugins']['get']('TableUtils'),_0x4a5405=_0x37b7f3['plugins']['get'](It),_0x4d26fa=_0x37b7f3['plugins']['get']('TableClipboard');_0x4a5405['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x37b7f3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x37b7f3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a8685=null;_0x37b7f3['model']['on']('insertContent',(_0x47de19,_0x430bf2)=>{const [_0x1d8e3d,_0x5073f7]=_0x430bf2,_0x26ea91=_0x430bf2[_0x430bf2['length']-0x1];_0x26ea91&&_0x26ea91['forceDefaultExecution']||_0xf2c034['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3c26ad,_0x547000,_0x38ca15,_0x74e863,_0x7a5fd5){if(_0x547000&&!_0x547000['is']('documentSelection'))return!0x1;const _0x22ba8b=_0x7a5fd5['getTableIfOnlyTableInContent'](_0x3c26ad,_0x38ca15);if(!_0x22ba8b||!Re(_0x22ba8b,void 0x0,_0x74e863))return!0x1;const _0x3d80ab=_0x74e863['getSelectionAffectedTableCells'](_0x38ca15['document']['selection']);if(!_0x3d80ab['length'])return!0x1;const _0x3fcf87=_0x3d80ab[0x0]['findAncestor']('table'),_0x5ab1ac=_0x74e863['getRowIndexes'](_0x3d80ab),_0x571dcc=_0x74e863['getColumnIndexes'](_0x3d80ab),_0x3783af={'startRow':_0x5ab1ac['first'],'endRow':_0x5ab1ac['last'],'startColumn':_0x571dcc['first'],'endColumn':_0x571dcc['last']};return 0x1==_0x3d80ab['length']&&(_0x3783af['endRow']+=_0x74e863['getRows'](_0x22ba8b)-0x1,_0x3783af['endColumn']+=_0x74e863['getColumns'](_0x22ba8b)-0x1),Re(_0x3fcf87,_0x3783af,_0x74e863);}(_0x1d8e3d,_0x5073f7,_0x37b7f3['model'],_0x448eb8,_0x4d26fa)&&(_0x47de19['stop'](),_0x3a8685={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x37b7f3['model']['change'](()=>{_0x37b7f3['model']['insertContent'](_0x430bf2[0x0],_0x430bf2[0x1],_0x430bf2[0x2],{'forceDefaultExecution':!0x0});const _0x71fd2f=_0x5eb85a(),{rowInsertionRanges:_0x2bf24a,columnInsertionRanges:_0x2315be,insertionRanges:_0xc8a9c1,deletionRanges:_0x210bc7,cells:_0x19803d}=_0x3a8685;_0x2bf24a['length']&&_0xf2c034['markMultiRangeInsertion'](_0x2bf24a,'tablePasteRow',{'tablePasteChainId':_0x71fd2f}),_0x2315be['length']&&_0xf2c034['markMultiRangeInsertion'](_0x2315be,'tablePasteColumn',{'tablePasteChainId':_0x71fd2f}),_0xc8a9c1['length']&&(_0xf2c034['markMultiRangeInsertion'](_0xc8a9c1,'tablePaste',{'tablePasteChainId':_0x71fd2f,'skipNestingCheck':!0x0}),_0xc8a9c1['forEach'](_0x17c337=>_0x17c337['detach']?.())),_0x210bc7['length']&&(_0xf2c034['markMultiRangeDeletion'](_0x210bc7,'tablePaste',{'tablePasteChainId':_0x71fd2f,'skipNestingCheck':!0x0}),_0x210bc7['forEach'](_0x3394b1=>_0x3394b1['detach']?.()));const _0x2e9182=_0xf2c034['markMultiRangeBlockFormat'](_0x19803d['map'](({element:_0x447846})=>_0x447846),{'formatGroupId':_0x5eb85a()},[],'tablePasteCell',{'tablePasteChainId':_0x71fd2f});if(_0x2e9182){const _0x2c2a7c=_0x2e9182['getMarkers'](),_0x35945a=[];for(const {element:_0x5c1def,attributes:_0x2aed7e}of _0x19803d){if(!_0x2aed7e)continue;const _0x49d17d=_0x37b7f3['model']['createRangeOn'](_0x5c1def),_0x4e8db0=_0x2c2a7c['find'](_0x30a95d=>_0x30a95d['getRange']()['isEqual'](_0x49d17d));_0x4e8db0&&_0x35945a['push']([_0x4e8db0['name'],_0x2aed7e]);}_0x35945a['length']&&_0x2e9182['setAttribute']('markerAttributes',Object['fromEntries'](_0x35945a));}_0x3a8685=null;}));},{'priority':_0x2782a0['high']+0xa}),_0x37b7f3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x57afea,_0x31c3d9)=>{const [_0x4b3e3d,_0x13e2ba,,_0x27388d]=_0x31c3d9;if(!_0x3a8685)return;_0x57afea['stop']();const _0x28645f=_0x4b3e3d['cell'],_0x6aea7e=_0x13e2ba,_0x2551b0=ke(_0x28645f),_0x376c42=ke(_0x6aea7e);_0x57afea['return']=_0x28645f;let _0x1a271c=null,_0x4febdf=null;if(_0x376c42||_0x2551b0){if(_0x2551b0&&!_0x376c42){_0x27388d['remove'](_0x28645f['getChild'](0x0));for(const _0x1e9ed6 of Array['from'](_0x6aea7e['getChildren']()))_0x27388d['insert'](_0x1e9ed6,_0x28645f,'end');const _0x6887ed=_0x3a8685['rowInsertionIndexes']['includes'](_0x4b3e3d['row']),_0x1ea668=_0x3a8685['columnInsertionIndexes']['includes'](_0x4b3e3d['column']);_0x6887ed||_0x1ea668||(_0x1a271c=_0x348f0d['fromRange'](_0x27388d['createRangeIn'](_0x28645f)));}else _0x376c42&&!_0x2551b0&&(_0x4febdf=_0x27388d['createRangeIn'](_0x28645f));}else{const _0x189476=_0x27388d['createElement']('tableCellSuggestion'),_0x5dfcfd=_0x27388d['createElement']('tableCellSuggestion');_0x27388d['wrap'](_0x27388d['createRangeIn'](_0x28645f),_0x5dfcfd),_0x27388d['insert'](_0x189476,_0x28645f,0x0);for(const _0x59341a of Array['from'](_0x6aea7e['getChildren']()))_0x27388d['insert'](_0x59341a,_0x189476,'end');_0x1a271c=_0x348f0d['fromRange'](_0x27388d['createRangeOn'](_0x189476)),_0x4febdf=_0x348f0d['fromRange'](_0x27388d['createRangeOn'](_0x5dfcfd));}const _0x2a421e=Array['from'](_0x6aea7e['getAttributes']())['filter'](([_0x50e946])=>Pe['includes'](_0x50e946));_0x3a8685['cells']['push']({'element':_0x28645f,'attributes':_0x2a421e['length']?Object['fromEntries'](_0x2a421e):null}),_0x1a271c&&_0x3a8685['insertionRanges']['push'](_0x1a271c),_0x4febdf&&_0x3a8685['deletionRanges']['push'](_0x4febdf);},{'priority':'high'}),_0x448eb8['on']('insertColumns',(_0x12db69,_0x285225)=>{const [_0x5b6d39,_0x4405b9={}]=_0x285225;if(!_0x3a8685)return;const _0x3afc3c=_0x4405b9['at']||0x0,_0x392672=_0x4405b9['columns']||0x1;_0x3a8685['columnInsertionIndexes']=new Array(_0x392672)['fill'](_0x3afc3c)['map']((_0x1d1453,_0x127507)=>_0x1d1453+_0x127507);for(const {cell:_0x3b778d}of _0x448eb8['createTableWalker'](_0x5b6d39,{'startColumn':_0x3afc3c,'endColumn':_0x3afc3c+_0x392672-0x1}))_0x3a8685['columnInsertionRanges']['push'](_0x37b7f3['model']['createRangeOn'](_0x3b778d));},{'priority':'low'}),_0x448eb8['on']('insertRows',(_0x5b461b,_0x3a6863)=>{const [_0x515e29,_0x3d1cf4={}]=_0x3a6863;if(!_0x3a8685)return;const _0x40ab39=_0x3d1cf4['at']||0x0,_0x291e1f=_0x3d1cf4['rows']||0x1;_0x3a8685['rowInsertionIndexes']=new Array(_0x291e1f)['fill'](_0x40ab39)['map']((_0x403726,_0x1bf762)=>_0x403726+_0x1bf762);for(const {cell:_0xb6a7bf}of _0x448eb8['createTableWalker'](_0x515e29,{'startRow':_0x40ab39,'endRow':_0x40ab39+_0x291e1f-0x1}))_0x3a8685['rowInsertionRanges']['push'](_0x37b7f3['model']['createRangeOn'](_0xb6a7bf));},{'priority':'low'}),_0xf2c034['descriptionFactory']['registerDescriptionCallback'](_0x530d50=>{if(_0x530d50['subType']&&_0x530d50['subType']['startsWith']('tablePaste'))return _0x530d50['previous']?{}:{'type':'insertion','content':o(_0x37b7f3['locale'],'*Replace\x20table\x20cells*')};});const _0xafb308=()=>!0x1;for(const _0x704147 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xf2c034['_suggestionFactory']['registerCustomCallback']('insertion',_0x704147,'join',_0xafb308),_0xf2c034['_suggestionFactory']['registerCustomCallback']('deletion',_0x704147,'join',_0xafb308),_0xf2c034['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x704147,'join',_0xafb308);_0xf2c034['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xafb308),_0xf2c034['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x18ac2d,_0x25c0ad,_0x3e887c)=>{const _0x58f6e2=_0x18ac2d['map'](_0x2d2286=>_0x2d2286['getContainedElement']())['filter'](_0x2a66e0=>_0x2a66e0),_0x21bb6a=new Map(_0x58f6e2['map'](_0x4f6080=>[_0x4f6080,null]));if(_0x3a8685){for(const {element:_0x56fb55,attributes:_0x2ea7a9}of _0x3a8685['cells'])_0x2ea7a9&&_0x21bb6a['set'](_0x56fb55,_0x2ea7a9);}else{if(_0x3e887c&&_0x3e887c['markerAttributes'])for(const [_0x39a3f4,_0x39cad2]of Object['entries'](_0x3e887c['markerAttributes'])){const _0x4e4f93=_0x37b7f3['model']['markers']['get'](_0x39a3f4),_0x385f35=_0x4e4f93?_0x4e4f93['getRange']()['getContainedElement']():null;_0x385f35&&_0x21bb6a['set'](_0x385f35,_0x39cad2);}}_0x37b7f3['model']['change'](_0x38c475=>{for(const [_0x5656a4,_0x42a5f2]of _0x21bb6a)_0x38c475['setAttributes']({...we,..._0x42a5f2},_0x5656a4);});});const _0x431f60=(_0x5b4407,_0x3b4e52)=>{_0xf2c034['_suggestionFactory']['registerCustomCallback'](_0x5b4407,'tablePaste',_0x3b4e52,(_0x2363f0,_0x693ca4,_0x5a99d5)=>{_0x37b7f3['model']['change'](_0x4b670d=>{const _0x487dec=[];for(const _0x4f931e of _0x2363f0){const _0x5a510a=_0x4f931e['start']['nodeAfter'];_0x5a510a['is']('element','tableCellSuggestion')&&_0x487dec['push'](_0x5a510a);}_0xf2c034['_suggestionFactory']['getSuggestionCallback'](_0x5b4407,null,_0x3b4e52)(_0x2363f0,_0x693ca4,_0x5a99d5);for(const _0x37a818 of _0x487dec)'$graveyard'!=_0x37a818['root']['rootName']&&_0x4b670d['unwrap'](_0x37a818);});});};_0x431f60('insertion','accept'),_0x431f60('insertion','discard'),_0x431f60('deletion','accept'),_0x431f60('deletion','discard'),_0xf2c034['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5f1cea=>{const _0x1df66a=_0x5f1cea['map'](_0x1add5f=>_0x1add5f['getContainedElement']()),_0x4ca493=_0x1df66a[0x0]['findAncestor']('table'),{minRow:_0x188a50,maxRow:_0x2eee8d}=_0x4a5405['_getCoordsForCells'](_0x1df66a);_0x448eb8['removeRows'](_0x4ca493,{'at':_0x188a50,'rows':_0x2eee8d-_0x188a50+0x1});}),_0xf2c034['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4d7d8d=>{const _0x610cf2=_0x4d7d8d['map'](_0x1c84f5=>_0x1c84f5['getContainedElement']()),_0xf5d940=_0x610cf2[0x0]['findAncestor']('table'),{minColumn:_0x2b0a3e,maxColumn:_0x3cf44a}=_0x4a5405['_getCoordsForCells'](_0x610cf2);_0x448eb8['removeColumns'](_0xf5d940,{'at':_0x2b0a3e,'columns':_0x3cf44a-_0x2b0a3e+0x1});});const _0x1c274=(_0xf27390,_0x3d0e0f)=>{if(!_0x3d0e0f['subType']||!_0x3d0e0f['subType']['startsWith']('tablePaste'))return;const _0x4c813e=_0x3d0e0f['attributes']['tablePasteChainId'],_0x570224=_0xf2c034['getSuggestions']()['filter'](_0x34f0c3=>_0x34f0c3['isInContent']&&_0x34f0c3['attributes']&&_0x34f0c3['attributes']['tablePasteChainId']==_0x4c813e);_0x570224['length']&&_0x3d0e0f['getAllAdjacentSuggestions']()['length']!=_0x570224['length']&&_0x570224['reduce']((_0x165b47,_0x515793)=>(_0x165b47['next']=_0x515793,_0x515793['previous']=_0x165b47,_0x515793));};function _0x3e9803(_0x4e458c,_0x1fd1c8=!0x0){const {id:_0x3875de,authorId:_0x5fa6f1}=_0xf2c034['_splitMarkerName'](_0x4e458c['markerName']),_0x502f8b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2b71ff=_0xf2c034['activeMarkers']['includes'](_0x4e458c['markerName']);return _0x2b71ff&&_0x502f8b['push']('ck-suggestion-marker--active'),{'classes':_0x502f8b,'attributes':{'data-suggestion':_0x3875de,'data-author-id':_0x5fa6f1},'priority':_0x2b71ff&&_0x1fd1c8?0xbc2:0xbb8};}_0xf2c034['on']('suggestionLoaded',_0x1c274,{'priority':'high'}),_0xf2c034['on']('suggestionUnloaded',_0x1c274,{'priority':'high'}),_0x37b7f3['model']['document']['registerPostFixer'](()=>{let _0x5bdcbb=!0x1;const _0x4bfe1a=Array['from'](_0x37b7f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x394996,data:_0x4d3c03}of _0x4bfe1a){const {group:_0x1bd725,type:_0x5f45dd,id:_0x10877b}=_0xf2c034['_splitMarkerName'](_0x394996);if('suggestion'!=_0x1bd725||'deletion'!=_0x5f45dd||_0x4d3c03['oldRange'])continue;if(!_0xf2c034['hasSuggestion'](_0x10877b))continue;const _0x1c00b8=_0xf2c034['getSuggestion'](_0x10877b)['getRanges'](),_0x1a396c=_0x37b7f3['plugins']['get']('Users')['me'];for(const _0x570f77 of _0xf2c034['getSuggestions']()){if(!_0x570f77['isInContent']||_0x570f77['author']!=_0x1a396c)continue;if('formatBlock'!=_0x570f77['type']||'tablePasteCell'!=_0x570f77['subType'])continue;if(_0x570f77['getRanges']()['every'](_0x22b4ee=>_0x1c00b8['some'](_0x361055=>_0x361055['containsRange'](_0x22b4ee,!0x0)))){for(const _0x376cac of _0x570f77['getAllAdjacentSuggestions']())_0x376cac['isInContent']&&(_0x376cac['discard'](),_0x5bdcbb=!0x0);}}}return _0x5bdcbb;}),_0x37b7f3['model']['document']['registerPostFixer'](_0xd5f3b6=>{const _0xd3236c=_0x37b7f3['commands']['get']('redo');if(!_0xd3236c||!_0xd3236c['_createdBatches']['has'](_0xd5f3b6['batch']))return!0x1;let _0x43a623=!0x1;const _0x195380=_0x37b7f3['plugins']['get']('Users')['me'],_0x4d14c8=_0x37b7f3['model']['document']['differ']['getChanges'](),_0x4caa22=Array['from'](_0x37b7f3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xee5634,data:_0x4a63bb})=>{const {group:_0x5591a1,subType:_0x33afa4,authorId:_0x3ff5d3}=_0xf2c034['_splitMarkerName'](_0xee5634);return'suggestion'==_0x5591a1&&'tablePaste'==_0x33afa4&&_0x3ff5d3==_0x195380['id']&&!_0x4a63bb['oldRange'];});for(const _0x484364 of _0x4d14c8){if('insert'!=_0x484364['type']||'tableCellSuggestion'!=_0x484364['name']||0x1!=_0x484364['length'])continue;const _0x2996ee=_0xd5f3b6['createRange'](_0x484364['position'],_0x484364['position']['getShiftedBy'](0x1));if(!_0x4caa22['find'](({data:_0x2ddef9})=>_0x2ddef9['newRange']['isEqual'](_0x2996ee))){for(const {name:_0x2035eb,data:_0x205945}of _0x4caa22)if(_0x2996ee['containsRange'](_0x205945['newRange'])){_0xd5f3b6['updateMarker'](_0x2035eb,{'range':_0x2996ee}),_0x43a623=!0x0;break;}}}return _0x43a623;}),_0x37b7f3['model']['document']['registerPostFixer'](_0x190d31=>{let _0xf194f2=!0x1;const _0x3a5518=_0x37b7f3['plugins']['get']('Users')['me'],_0x17f1b6=_0xf2c034['getSuggestions']()['filter'](_0x466e2b=>_0x466e2b['isInContent']&&_0x466e2b['author']==_0x3a5518),_0x24b15a=new Set(),_0x5bd307=new Set();for(const _0x44153f of _0x17f1b6)if('tablePaste'==_0x44153f['subType'])for(const _0x41d190 of _0x44153f['getMarkers']()){const _0x40f803=_0x41d190['getRange']()['getContainedElement']();if(_0x40f803){if(_0x40f803['is']('element','tableCellSuggestion')&&ke(_0x40f803)){_0x44153f['removeMarker'](_0x41d190['name']),_0x24b15a['add'](_0x40f803),_0xf194f2=!0x0;const _0x5f4781=_0x40f803['nextSibling'],_0x3653ad=_0x40f803['previousSibling'],_0x26a2b1=_0x5f4781&&_0x5f4781['is']('element','tableCellSuggestion'),_0x423759=_0x3653ad&&_0x3653ad['is']('element','tableCellSuggestion');_0x26a2b1&&!_0x24b15a['has'](_0x5f4781)&&_0x5bd307['add'](_0x5f4781),_0x423759&&!_0x24b15a['has'](_0x3653ad)&&_0x5bd307['add'](_0x3653ad);}else _0x40f803['is']('element','paragraph')&&_0x40f803['isEmpty']&&(_0x44153f['removeMarker'](_0x41d190['name']),_0xf194f2=!0x0);}}else{if('tablePasteCell'==_0x44153f['subType']){if(!_0x44153f['attributes']||!_0x44153f['attributes']['tablePasteChainId'])continue;const _0x3db56b=_0x44153f['attributes']['markerAttributes'];if(_0x3db56b&&Object['keys'](_0x3db56b)['length'])continue;const _0x3be8dd=_0x44153f['attributes']['tablePasteChainId'];let _0x4c3b49=!0x0,_0x57d12e=!0x0;for(const _0x579538 of _0x17f1b6)if(_0x579538['subType']&&_0x579538['subType']['startsWith']('tablePaste')){if(!_0x579538['attributes']['tablePasteChainId']){_0x57d12e=!0x1;break;}if(_0x579538['id']!=_0x44153f['id']&&_0x579538['attributes']['tablePasteChainId']==_0x3be8dd){_0x4c3b49=!0x1;break;}}_0x57d12e&&_0x4c3b49&&(_0x44153f['removeMarkers'](),_0xf194f2=!0x0);}}for(const _0x432da7 of _0x24b15a)_0x190d31['remove'](_0x432da7);for(const _0x341476 of _0x5bd307)_0x190d31['unwrap'](_0x341476);return _0xf194f2;}),_0x37b7f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x27404d,_0x263243)=>_0x3e9803(_0x27404d),'converterPriority':'high'}),_0x37b7f3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x42f958,_0x246b84)=>_0x246b84['options']['showSuggestionHighlights']?_0x3e9803(_0x42f958,!0x1):null,'converterPriority':'high'});const _0x53b059=_0x37b7f3['editing']['view'];this['listenTo'](_0x53b059['document'],'clipboardOutput',(_0x7798ee,_0x37b94b)=>{const _0x24acc9=[];for(const _0x13482f of _0x53b059['createRangeIn'](_0x37b94b['content'])['getItems']())_0x13482f['is']('element','suggestion-td')&&_0x24acc9['push'](_0x13482f);_0x53b059['change'](_0x589b31=>{for(const _0x51aa7e of _0x24acc9)_0x589b31['move'](_0x589b31['createRangeIn'](_0x51aa7e),_0x589b31['createPositionBefore'](_0x51aa7e)),_0x589b31['remove'](_0x51aa7e);});});}}function ke(_0x5d4e3f){if(_0x5d4e3f['isEmpty'])return!0x0;const _0x5e77e8=_0x5d4e3f['getChild'](0x0);return _0x5e77e8['is']('element','paragraph')&&_0x5e77e8['isEmpty'];}function Re(_0x53328d,_0x49a44b={},_0xde2448){for(const {isAnchor:_0x3bdda9,cellHeight:_0x3744d0,cellWidth:_0x1c04d2}of _0xde2448['createTableWalker'](_0x53328d,{'includeAllSlots':!0x0,..._0x49a44b}))if(!_0x3bdda9||0x1!=_0x3744d0||0x1!=_0x1c04d2)return!0x1;return!0x0;}class Nt extends _0x201c95{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x546e89=this['editor']['plugins']['get']('TrackChangesEditing');_0x546e89['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x546e89['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x546e89['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x546e89['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x546e89['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x546e89['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x239a9a,_0x3e1ad2){const _0x5302cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494f54=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5d8036=_0x3e1ad2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2102ed=_0x494f54['getColumnGroupElement'](_0x5d8036);let _0x465b48=_0x2102ed?_0x494f54['getTableColumnsWidths'](_0x2102ed):null,_0x5a5da6=_0x5d8036['getAttribute']('tableWidth')||null;const _0x2c44da=_0x3e1ad2['tableWidth']||_0x5a5da6,_0xb7c82c=_0x3e1ad2['columnWidths']||_0x465b48,_0x36b80c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3590b0 of _0x5302cd['getSuggestions']()){const _0x1b594f=_0x3590b0['getContainedElement']();if('resizeTable'===_0x3590b0['subType']&&_0x1b594f===_0x5d8036){_0x3590b0['author']!==_0x36b80c&&_0x3590b0['discard']();const _0x7787c2=_0x3590b0['data']['commandParams'];_0x5a5da6=_0x7787c2[0x0]['tableWidth'],_0x465b48=_0x7787c2[0x0]['columnWidths'];break;}}_0x239a9a({'table':_0x5d8036,'tableWidth':_0x2c44da,'columnWidths':_0xb7c82c}),_0x5302cd['markBlockFormat'](_0x5d8036,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a5da6,'columnWidths':_0x465b48}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x436beb){if('formatBlock'!=_0x436beb['type']&&'formatInline'!=_0x436beb['type'])return;const {data:_0x5923a3}=_0x436beb;if(_0x5923a3&&'resizeTable'===_0x5923a3['formatGroupId']){const _0x5d763f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d763f)};}}}class Dt extends _0x201c95{['afterInit'](){const _0x588d41=this['editor'];_0x588d41['plugins']['has']('Template')&&_0x588d41['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x201c95{['afterInit'](){const _0x3ad020=this['editor'];if(!_0x3ad020['commands']['get']('insertTableOfContents'))return;_0x3ad020['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe25bec=_0x3ad020['plugins']['get']('TrackChangesEditing'),_0x30299e=_0x3ad020['locale'];_0xe25bec['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a2104=>o(_0x30299e,'ELEMENT_TABLE_OF_CONTENTS',_0x2a2104));}}class $t extends _0x201c95{['afterInit'](){const _0x421a98=this['editor'];if(!_0x421a98['plugins']['has']('Title'))return;const _0x382871=_0x421a98['plugins']['get']('TrackChangesEditing');_0x382871['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x421a98['locale'],'ELEMENT_TITLE')),_0x421a98['model']['document']['registerPostFixer'](_0x382b84=>{let _0x298399=!0x1;const _0x4f311d=Array['from'](_0x421a98['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31c4a5,data:_0x519df3}of _0x4f311d){const {group:_0x2ec5e1}=_0x382871['_splitMarkerName'](_0x31c4a5);if('suggestion'!==_0x2ec5e1||!_0x519df3['newRange'])continue;const _0x483998=_0x519df3['newRange'],_0xad3246=_0x483998['end']['nodeBefore'];if(!_0xad3246||!_0xad3246['is']('element','title-content'))continue;if(!_0x483998['start']['isTouching'](_0x483998['end']))continue;const _0x2e5b6f=_0x421a98['model']['schema']['getNearestSelectionRange'](_0x483998['end'],'forward');if(_0x2e5b6f&&_0x2e5b6f['isCollapsed']){const _0x2fd35a=_0x382b84['createRange'](_0x483998['start'],_0x2e5b6f['start']);_0x2fd35a['isEqual'](_0x483998)||(_0x382b84['updateMarker'](_0x31c4a5,{'range':_0x2fd35a}),_0x298399=!0x0);}_0x298399||(_0x382b84['removeMarker'](_0x31c4a5),_0x298399=!0x0);}return _0x298399;});}}class Bt extends _0x201c95{['afterInit'](){const _0x3be086=this['editor'],_0x594cf1=_0x3be086['plugins']['get']('TrackChangesEditing');_0x3be086['plugins']['has']('UndoEditing')&&(_0x594cf1['enableCommand']('undo'),_0x594cf1['enableCommand']('redo'));}}class xt extends _0x201c95{static get['requires'](){return[It];}['afterInit'](){const _0x4f36f0=this['editor'];if(!_0x4f36f0['plugins']['has']('TableCaptionEditing'))return;_0x4f36f0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x201c95{['tableProperties'];['tableCellProperties'];constructor(_0x34b437){super(_0x34b437),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 _0x48884e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2013f6 of this['tableProperties'])_0x48884e['enableCommand'](_0x2013f6,(_0x566e99,_0x131ba5)=>{const _0x428e67=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2013f6,[_0x428e67],this['tableProperties'],'tableProperties',_0x566e99,_0x131ba5);});_0x48884e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x48884e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48884e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x29a223,_0x29fede)=>this['handleDiscardAction'](this['tableProperties'],_0x29a223,_0x29fede)),_0x48884e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x295fb3 of this['tableCellProperties'])_0x48884e['enableCommand'](_0x295fb3,(_0x26ce8f,_0x1ce9bc)=>{const _0x2b9eac=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x295fb3,_0x2b9eac,this['tableCellProperties'],'tableCellProperties',_0x26ce8f,_0x1ce9bc);});_0x48884e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x48884e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48884e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x7c5013,_0x561882)=>this['handleDiscardAction'](this['tableCellProperties'],_0x7c5013,_0x561882)),_0x48884e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x48884e['descriptionFactory']['registerDescriptionCallback'](_0x308b29=>this['handleSuggestionDescription'](_0x308b29));}['_handlePropertyChange'](_0xfc7271,_0x351e1d,_0x38816e,_0x57f4b5,_0x4a58e7,_0x5ce7ee){const _0x1f825f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ce7ee['batch'],()=>{for(const _0x282712 of _0x351e1d){if(this['_getSuggestion'](_0x282712,_0x57f4b5))_0x4a58e7(_0x5ce7ee);else{const _0x184aa8={};for(const _0x32adc6 of _0x38816e){const _0x261600=_0x282712['getAttribute'](_0x32adc6);void 0x0!==_0x261600&&(_0x184aa8[_0x32adc6]=_0x261600);}_0x4a58e7(_0x5ce7ee),_0x1f825f['markBlockFormat'](_0x282712,{'commandParams':[_0x184aa8]},[],_0x57f4b5);}}});}['handleDiscardAction'](_0x3bc114,_0x229a92,_0x167446){const _0x2a9196=_0x229a92[0x0]['start']['nodeAfter'],_0x1f5662=_0x167446['commandParams'][0x0];this['editor']['model']['change'](_0x137f42=>{for(const _0x487361 of _0x3bc114)void 0x0!==_0x1f5662[_0x487361]?_0x137f42['setAttribute'](_0x487361,_0x1f5662[_0x487361],_0x2a9196):_0x137f42['removeAttribute'](_0x487361,_0x2a9196);});}['handleSuggestionDescription'](_0x4f4e5f){if(_0x4f4e5f['data'])switch(_0x4f4e5f['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'](_0x4b7795,_0x4cdb0){const _0x42733a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x455117 of _0x42733a['getSuggestions']({'skipNotAttached':!0x0})){const _0x1920a3=_0x455117['getContainedElement']();if(_0x455117['subType']===_0x4cdb0&&_0x1920a3===_0x4b7795)return _0x455117;}return null;}}const m='$elementName';class p extends _0x201c95{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3155e3,_0x44e340,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(_0x3b5b73){function _0xe9c70c(_0x3b8864){return _0x3b8864['map'](_0x36a6be=>String['fromCharCode'](_0x36a6be))['join']('');}super(_0x3b5b73),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x14b0a7,_0x58be17,_0x16e64a,_0xf5fc2f)=>{this['_model']['change'](()=>{for(const _0x3edae2 of[..._0xf5fc2f,..._0x16e64a])this['_model']['markers']['has'](_0x3edae2)&&_0x3b5b73['editing']['reconvertMarker'](_0x3edae2);});}),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']=_0x3b5b73['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(),_0x3b5b73['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b5b73['config']['get']('trackChanges.trackFormatChanges'),_0x3b5b73['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b5b73['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3b5b73,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xe9c70c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xe9c70c([0x34,0x30,0x34,0x38,0x31,0x38,0x30,0x34]);}['init'](){const _0x8ef073=this['editor'],_0x1a8b73=(_0x15eb5,_0x31fede)=>{if('attribute'!=_0x15eb5)return'ck-suggestion-marker-'+_0x15eb5;const _0x31400f=_0x31fede['split']('|')[0x0];return this['_isBlockAttribute'](_0x31400f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x8ef073['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1a6141=>{const {id:_0x22349d,authorId:_0x1b8029,type:_0xac2ad7,subType:_0x28d79b}=this['_splitMarkerName'](_0x1a6141['markerName']),_0x25a7ab=['ck-suggestion-marker',_0x1a8b73(_0xac2ad7,_0x28d79b)];let _0x51ff1e=0xbb8;return this['activeMarkers']['includes'](_0x1a6141['markerName'])&&(_0x25a7ab['push']('ck-suggestion-marker--active'),_0x51ff1e=0xbc2),'deletion'==_0xac2ad7&&(_0x51ff1e+=0x5),{'classes':_0x25a7ab,'attributes':{'data-suggestion':_0x22349d,'data-author-id':_0x1b8029},'priority':_0x51ff1e};}}),_0x8ef073['conversion']['for']('dataDowncast')['add'](_0x5c213a=>{_0x5c213a['on']('addMarker:suggestion',(_0xa9030a,_0x12d0e6,_0x224cd2)=>{if(!_0x224cd2['options']['showSuggestionHighlights'])return;const _0x8e00b5=_0x12d0e6['item'];if(!_0x8e00b5)return;const _0x323825=_0x224cd2['mapper']['toViewElement'](_0x8e00b5);_0x8ef073['model']['schema']['isObject'](_0x8e00b5)&&_0x323825&&!_0x323825['getCustomProperty']('widget')&&_0x323825['is']('containerElement')&&_0x45db54(_0x323825,_0x224cd2['writer']);},{'priority':'high'});}),_0x8ef073['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x8b689,_0xe71bb8)=>{if(!_0xe71bb8['options']['showSuggestionHighlights'])return null;const {type:_0x1dc2a0,subType:_0x3362c5}=this['_splitMarkerName'](_0x8b689['markerName']);return{'classes':['ck-suggestion-marker',_0x1a8b73(_0x1dc2a0,_0x3362c5)],'priority':0xbb8};}});const _0xde86e4=({showActiveMarkers:_0x5e6ddc=!0x0,isAttributeSuggestion:_0x2375a9=!0x1}={})=>(_0x1a1abf,_0x5825ba,_0x1f1098)=>{if(!_0x5825ba['item'])return;const {id:_0x46c9c5,authorId:_0x581809}=this['_splitMarkerName'](_0x5825ba['markerName']);if(_0x2375a9){const _0x2a92f0=this['_suggestions']['get'](_0x46c9c5),_0xefc813=this['_getAttributeKey'](_0x2a92f0);if(!this['_isBlockAttribute'](_0xefc813))return;}if(_0x5825ba['item']['is']('selection'))return void _0x1f1098['consumable']['consume'](_0x5825ba['item'],_0x1a1abf['name']);const _0x1aa81e=_0x1f1098['mapper']['toViewElement'](_0x5825ba['item']);if(_0x5825ba['item']['is']('element')&&_0x8ef073['model']['schema']['isBlock'](_0x5825ba['item'])&&!_0x1aa81e['getCustomProperty']('addHighlight')){_0x1f1098['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1aa81e),_0x1f1098['writer']['setAttribute']('data-suggestion',_0x46c9c5,_0x1aa81e),_0x1f1098['writer']['setAttribute']('data-author-id',_0x581809,_0x1aa81e),_0x1f1098['mapper']['bindElementToMarker'](_0x1aa81e,_0x5825ba['markerName']),_0x5e6ddc&&(this['activeMarkers']['includes'](_0x5825ba['markerName'])?_0x1f1098['writer']['addClass']('ck-suggestion-marker--active',_0x1aa81e):_0x1f1098['writer']['removeClass']('ck-suggestion-marker--active',_0x1aa81e));for(const _0x1504ec of _0x8ef073['model']['createRangeIn'](_0x5825ba['item'])['getItems']())_0x1f1098['consumable']['consume'](_0x1504ec,_0x1a1abf['name']);_0x1f1098['consumable']['consume'](_0x5825ba['item'],_0x1a1abf['name']);}};_0x8ef073['conversion']['for']('dataDowncast')['add'](_0x328554=>{_0x328554['on']('addMarker:suggestion:formatBlock',(_0x32a650,_0x57398d,_0x369649)=>{_0x369649['options']['showSuggestionHighlights']&&_0xde86e4({'showActiveMarkers':!0x1})(_0x32a650,_0x57398d,_0x369649);},{'priority':'highest'});}),_0x8ef073['conversion']['for']('dataDowncast')['add'](_0x42ffe8=>{_0x42ffe8['on']('addMarker:suggestion:attribute',(_0x318e39,_0x2a9721,_0xe64744)=>{_0xe64744['options']['showSuggestionHighlights']&&_0xde86e4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x318e39,_0x2a9721,_0xe64744);},{'priority':'highest'});}),_0x8ef073['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x377451,_0x550fda)=>_0x550fda['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x377451['substr'](0xb)}}),_0x8ef073['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59c1f4,{writer:_0x548569})=>{let _0x2baf5e='suggestion:'+_0x59c1f4['getAttribute']('suggestion-type')+':'+_0x59c1f4['getAttribute']('id');return _0x59c1f4['getAttribute']('marker-count')&&(_0x2baf5e+=':'+_0x59c1f4['getAttribute']('marker-count')),_0x548569['createElement']('$marker',{'data-name':_0x2baf5e});}}),_0x8ef073['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x8ef073['conversion']['for']('editingDowncast')['add'](_0x14e811=>{_0x14e811['on']('addMarker:suggestion:formatBlock',_0xde86e4(),{'priority':'high'});}),_0x8ef073['conversion']['for']('editingDowncast')['add'](_0xe48fe8=>{_0xe48fe8['on']('addMarker:suggestion:attribute',_0xde86e4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x8ef073['conversion']['for']('editingDowncast')['add'](_0xef23bb=>{_0xef23bb['on']('removeMarker:suggestion:formatBlock',(_0x4b3f86,_0x537b93,_0x10a9fe)=>{const _0x2cb481=_0x10a9fe['mapper']['markerNameToElements'](_0x537b93['markerName']);if(_0x2cb481){for(const _0x197e52 of _0x2cb481)_0x197e52['getCustomProperty']('addHighlight')||(_0x10a9fe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x197e52),_0x10a9fe['writer']['removeAttribute']('data-suggestion',_0x197e52),_0x10a9fe['writer']['removeAttribute']('data-author-id',_0x197e52),_0x10a9fe['mapper']['unbindElementFromMarkerName'](_0x197e52,_0x537b93['markerName']));}},{'priority':'high'});}),_0x8ef073['conversion']['for']('editingDowncast')['add'](_0x1fe760=>{_0x1fe760['on']('removeMarker:suggestion:attribute',(_0x58825f,_0x25a6d4,_0x353755)=>{const _0x19f540=_0x353755['mapper']['markerNameToElements'](_0x25a6d4['markerName']);if(!_0x19f540)return;const {id:_0x1f33bd}=this['_splitMarkerName'](_0x25a6d4['markerName']),_0x7d5abd=this['_suggestions']['get'](_0x1f33bd),_0x1e9794=this['_getAttributeKey'](_0x7d5abd);if(this['_isBlockAttribute'](_0x1e9794)){for(const _0x391f9f of _0x19f540)_0x391f9f['getCustomProperty']('addHighlight')||(_0x353755['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x391f9f),_0x353755['writer']['removeAttribute']('data-suggestion',_0x391f9f),_0x353755['writer']['removeAttribute']('data-author-id',_0x391f9f),_0x353755['mapper']['unbindElementFromMarkerName'](_0x391f9f,_0x25a6d4['markerName']));}},{'priority':'high'});}),_0x8ef073['model']['document']['registerPostFixer'](_0x1ff860=>{let _0x407b6c=!0x1;const _0x3b5a24=Array['from'](_0x8ef073['model']['document']['differ']['getChangedMarkers']()),_0x387d2a=new Set();for(const {name:_0x2e05e0,data:_0x35e7fd}of _0x3b5a24){const {group:_0x4ac804,type:_0x52bc47,subType:_0x304e29,id:_0x140ccd}=this['_splitMarkerName'](_0x2e05e0);if('suggestion'!==_0x4ac804)continue;const _0x327be5=this['_suggestions']['get'](_0x140ccd);if(null!=_0x35e7fd['newRange']){'formatInline'==_0x52bc47&&(_0x407b6c=_0x407b6c||Ut(_0x35e7fd['newRange'],_0x2e05e0,_0x1ff860,_0x8ef073['model']['schema']));const _0x5d862b='attribute'==_0x52bc47&&this['_isBlockAttribute'](_0x304e29['split']('|')[0x0]);if(_0x35e7fd['newRange']['isCollapsed']||'$graveyard'==_0x35e7fd['newRange']['root']['rootName']||'formatBlock'==_0x52bc47&&!Ft(_0x35e7fd['newRange'])||_0x5d862b&&!Ft(_0x35e7fd['newRange'])||'deletion'==_0x52bc47&&!(!Vt(_0xaf8b5e=_0x35e7fd['newRange'])&&!function(_0x17559b){return _0x17559b['start']['parent']==_0x17559b['end']['nodeBefore']&&_0x17559b['start']['isAtEnd'];}(_0xaf8b5e)))_0x1ff860['removeMarker'](_0x2e05e0),_0x407b6c=!0x0;else{if(!_0x327be5||!_0x327be5['isInContent'])continue;if(_0x35e7fd['newRange']&&_0x35e7fd['oldRange']&&_0x35e7fd['newRange']['isEqual'](_0x35e7fd['oldRange']))continue;_0x387d2a['add'](_0x327be5);}}}var _0xaf8b5e;return _0x387d2a['size']>0x0&&(_0x407b6c=!!this['_joinWithAdjacentSuggestions'](_0x387d2a)||_0x407b6c),_0x407b6c;}),_0x8ef073['model']['document']['registerPostFixer'](_0x55d3a3=>{let _0x450272=!0x1;for(const _0x5d25fe of _0x8ef073['model']['document']['differ']['getChanges']())if('insert'==_0x5d25fe['type'])for(const _0x688ce3 of this['_suggestions']['values']()){if(_0x688ce3['isMultiRange']||!_0x688ce3['isInContent'])continue;const _0x41e5a5='formatBlock'==_0x688ce3['type'],_0x3be219=this['_getAttributeKey'](_0x688ce3),_0x14da37=_0x3be219&&this['_isBlockAttribute'](_0x3be219);if(!_0x41e5a5&&!_0x14da37)continue;const _0xf29ffa=_0x688ce3['getFirstRange']();if(_0xf29ffa['start']['parent']!=_0xf29ffa['end']['parent']&&!_0xf29ffa['end']['isAtEnd']){const _0x5e31fd=_0x8ef073['model']['createPositionAt'](_0xf29ffa['start']['nodeAfter'],'end'),_0x9851c3=_0x8ef073['model']['createRange'](_0xf29ffa['start'],_0x5e31fd);_0x55d3a3['updateMarker'](_0x688ce3['getFirstMarker'](),{'range':_0x9851c3}),_0x450272=!0x0;}}return _0x450272;}),_0x8ef073['model']['document']['registerPostFixer'](_0x1dd554=>this['_processAttributeChanges'](_0x1dd554)),_0x8ef073['model']['document']['registerPostFixer'](_0xd1cb9c=>!_0xd1cb9c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd1cb9c)),_0x8ef073['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x8ef073['model']['document']['on']('change:data',(_0x324805,_0x30544d)=>{if(!_0x30544d['isLocal']||_0x30544d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4d4321=_0x8ef073['model']['document']['differ']['getChanges']();if(0x0==_0x4d4321['length'])return;const _0x2a6a91=[],_0x416ac5=_0x4d4321['filter'](_0x270888=>'attribute'==_0x270888['type']),_0x1721dd=_0x4d4321['filter'](_0x2e0ba5=>'insert'==_0x2e0ba5['type']&&'$text'!=_0x2e0ba5['name']);for(const _0x240f6c of _0x416ac5)this['_isRegisteredAttribute'](_0x240f6c['attributeKey'])&&_0x2a6a91['push']({'key':_0x240f6c['attributeKey'],'newValue':_0x240f6c['attributeNewValue'],'oldValue':_0x240f6c['attributeOldValue'],'range':Pt(_0x240f6c['range'],_0x8ef073['model'])});for(const _0x56a787 of _0x1721dd){if('rename'!=_0x56a787['action']&&'refresh'!=_0x56a787['action'])continue;const _0x4f8256=Lt(_0x56a787['position']['nodeAfter'],_0x8ef073['model']),_0x2e70b3=_0x56a787['before'];'rename'==_0x56a787['action']&&_0x2a6a91['push']({'key':m,'newValue':_0x56a787['name'],'oldValue':_0x2e70b3['name'],'range':_0x4f8256});for(const [_0x376523,_0x42c1a9]of _0x2e70b3['attributes']){if(!this['_isRegisteredAttribute'](_0x376523))continue;const _0x34880d=_0x56a787['attributes']['get'](_0x376523);_0x42c1a9!==_0x34880d&&_0x2a6a91['push']({'key':_0x376523,'newValue':_0x34880d,'oldValue':_0x42c1a9,'range':_0x4f8256});}for(const [_0x210077,_0x18a4d1]of _0x56a787['attributes'])this['_isRegisteredAttribute'](_0x210077)&&(_0x2e70b3['attributes']['has'](_0x210077)||_0x2a6a91['push']({'key':_0x210077,'newValue':_0x18a4d1,'oldValue':null,'range':_0x4f8256}));}0x0!=_0x2a6a91['length']&&_0x8ef073['model']['enqueueChange'](_0x30544d,_0x405a74=>{const _0x389d52=_0x5eb85a();for(const {range:_0xaa521a,key:_0x7a77a2,oldValue:_0x5c8e11,newValue:_0x19dd0c}of _0x2a6a91)this['markAttributeChange'](_0xaa521a,_0x7a77a2,_0x5c8e11,_0x19dd0c,{'groupId':_0x389d52});this['_reduceExistingSuggestions'](_0x405a74,_0x2a6a91);});},{'priority':'lowest'}),_0x8ef073['model']['markers']['on']('update:suggestion',(_0x326e1d,_0x4f153d,_0x49c5d9)=>{if(null==_0x49c5d9){const {id:_0xfdb14e}=this['_splitMarkerName'](_0x4f153d['name']),_0x16fd3e=this['_suggestions']['get'](_0xfdb14e);_0x16fd3e&&_0x16fd3e['addMarkerName'](_0x4f153d['name']);}}),_0x8ef073['model']['document']['on']('change:data',()=>{const _0x3f5043=Array['from'](_0x8ef073['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20db4d=>'suggestion'===this['_splitMarkerName'](_0x20db4d['name'])['group']);if(0x0===_0x3f5043['length'])return;_0x3f5043['sort']((_0x5ad4cf,_0x46d500)=>{const _0x5c9082=_0x5ad4cf['data']['oldRange'],_0x3f7302=_0x46d500['data']['oldRange'];return null===_0x5c9082&&null===_0x3f7302?0x0:null===_0x5c9082&&null!==_0x3f7302?-0x1:null!==_0x5c9082&&null===_0x3f7302?0x1:_0x5c9082['start']['isBefore'](_0x3f7302['start'])?-0x1:0x1;});const _0xc35c68=new Set(),_0x6cb948=new Set();for(const {name:_0x431c55,data:_0x543681}of _0x3f5043){const {id:_0x1ebdbe}=this['_splitMarkerName'](_0x431c55);if(null===_0x543681['oldRange']){const _0x209b56=this['_handleNewSuggestionMarker'](_0x431c55);_0x6cb948['add'](_0x209b56);}else{const _0x394fee=this['_suggestions']['get'](_0x1ebdbe);null!==_0x543681['newRange']||_0x394fee['isInContent']?(_0xc35c68['add'](_0x394fee['head']),_0x6cb948['add'](_0x394fee)):this['_removeSuggestion'](_0x394fee);}}_0x6cb948['size']>0x0&&this['_refreshSuggestionsChain'](_0x6cb948);for(const _0x425a74 of _0xc35c68)this['fire']('suggestionChanged',_0x425a74);}),_0x8ef073['model']['on']('applyOperation',(_0x3a07c9,_0x5d43b9)=>{const _0x33603d=_0x5d43b9[0x0];if(!this['_suggestions']['size'])return;if(!_0x33603d['isDocumentOperation'])return;if(_0x33603d['batch']['isUndo']||!_0x33603d['batch']['isLocal'])return;let _0x21a22a,_0x10a1f5;switch(_0x33603d['type']){case'insert':_0x21a22a=_0x8ef073['model']['createPositionAt'](_0x33603d['position']),_0x10a1f5=_0x21a22a['getShiftedBy'](_0x33603d['howMany']);break;case'split':_0x21a22a=_0x8ef073['model']['createPositionAt'](_0x33603d['splitPosition']),_0x10a1f5=_0x8ef073['model']['createPositionAt'](_0x33603d['moveTargetPosition']);break;case'move':_0x21a22a=_0x8ef073['model']['createPositionAt'](_0x33603d['targetPosition']),_0x10a1f5=_0x21a22a['getShiftedBy'](_0x33603d['howMany']);break;default:return;}const _0x128a1d=_0x8ef073['model']['createRange'](_0x21a22a,_0x10a1f5);_0x8ef073['model']['change'](()=>{for(const {suggestion:_0x161527,meta:_0x50c2fd}of this['_findSuggestions'](_0x128a1d)){if(_0x161527['isMultiRange'])continue;if('formatInline'==_0x161527['type'])continue;const _0xcbdfbf=this['_getAttributeKey'](_0x161527);if(_0xcbdfbf&&this['_isBlockAttribute'](_0xcbdfbf)&&'split'!=_0x33603d['type'])continue;const _0x3f151f=_0x161527['data']&&_0x161527['data']['multipleBlocks'];('formatBlock'!=_0x161527['type']||'split'==_0x33603d['type']&&!_0x3f151f)&&(_0x50c2fd['containsRangeInObject']||'insertion'==_0x161527['type']&&_0x50c2fd['isOwn']||_0x161527['getFirstRange']()['containsRange'](_0x128a1d)&&this['_breakSuggestionMarker'](_0x161527,_0x21a22a,_0x10a1f5));}});},{'priority':'lowest'}),_0x8ef073['model']['on']('deleteContent',(_0x11810f,_0x3c1811)=>{const _0x194164=_0x3c1811[0x0],_0x45b0bb=_0x3c1811[0x1];if(_0x45b0bb&&_0x45b0bb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x194164['isCollapsed'])return;const _0x27790b=_0x8ef073['model']['schema'],{start:_0x2c4333,end:_0x317852}=_0x194164['getFirstRange'](),_0xf78986=_0x2c4333['nodeAfter']&&_0x27790b['isLimit'](_0x2c4333['nodeAfter'])?null:_0x27790b['getNearestSelectionRange'](_0x2c4333,'forward'),_0x4a0399=_0x317852['nodeBefore']&&_0x27790b['isLimit'](_0x317852['nodeBefore'])?null:_0x27790b['getNearestSelectionRange'](_0x317852,'backward'),_0x1ffaf0=_0x8ef073['model']['createRange'](_0xf78986?_0xf78986['start']:_0x2c4333,_0x4a0399?_0x4a0399['end']:_0x317852);_0x8ef073['model']['change'](_0x31742a=>{this['markDeletion'](_0x1ffaf0);const _0x51ccd3=_0x8ef073['model']['schema']['getNearestSelectionRange'](_0x1ffaf0['start']);_0x194164['is']('documentSelection')?_0x31742a['setSelection'](_0x51ccd3):_0x194164['setTo'](_0x51ccd3);}),_0x11810f['stop']();},{'priority':_0x2782a0['normal']+0xa}),_0x8ef073['model']['on']('insertContent',(_0x1bba69,_0x5ed436)=>{const _0x75eaff=_0x5ed436[_0x5ed436['length']-0x1];_0x75eaff&&_0x75eaff['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x8ef073['model']['change'](()=>{let _0x2ddc8e=_0x8ef073['model']['insertContent'](_0x5ed436[0x0],_0x5ed436[0x1],_0x5ed436[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ddc8e)return;_0x1bba69['return']=_0x2ddc8e['clone']();const _0x3a5fc7=_0x2ddc8e['end']['nodeBefore'],_0x597ef8=_0x8ef073['model']['schema'];_0x3a5fc7&&_0x597ef8['isBlock'](_0x3a5fc7)&&!_0x597ef8['isObject'](_0x3a5fc7)&&(_0x2ddc8e=_0x8ef073['model']['createRange'](_0x2ddc8e['start'],_0x8ef073['model']['createPositionAt'](_0x3a5fc7,'end'))),this['markInsertion'](_0x2ddc8e);}),_0x1bba69['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x270dd0=new x(_0x8ef073,this['_suggestions']);_0x8ef073['commands']['add']('acceptSuggestion',_0x270dd0),this['enableCommand']('acceptSuggestion');const _0x43f5a5=new R(_0x8ef073,this['_suggestions']);_0x8ef073['commands']['add']('discardSuggestion',_0x43f5a5),this['enableCommand']('discardSuggestion'),_0x8ef073['commands']['add']('acceptAllSuggestions',new E(_0x8ef073,_0x270dd0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x8ef073['commands']['add']('discardAllSuggestions',new E(_0x8ef073,_0x43f5a5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x8ef073['commands']['add']('acceptSelectedSuggestions',new O(_0x8ef073,_0x270dd0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x8ef073['commands']['add']('discardSelectedSuggestions',new O(_0x8ef073,_0x43f5a5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x50ac91=_0x8ef073['plugins']['get']('CommentsRepository');this['listenTo'](_0x50ac91,'addComment',(_0x43d5e2,{threadId:_0x36c9df})=>{const _0x13f644=this['_suggestions']['get'](_0x36c9df);_0x13f644&&_0x13f644['commentThread']&&0x1===_0x13f644['commentThread']['length']&&this['_updateSuggestionData'](_0x36c9df,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x50ac91,'removeComment',(_0xb27a02,{threadId:_0x50d5d9})=>{const _0x5adcf3=this['_suggestions']['get'](_0x50d5d9);_0x5adcf3&&_0x5adcf3['commentThread']&&!_0x5adcf3['commentThread']['length']&&this['_updateSuggestionData'](_0x50d5d9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x231680){if(this['_adapter'])throw new _0x502bb5('track-changes-adapter-already-set',this);this['_adapter']=_0x231680;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x17b92f=!0x1,toJSON:_0x23a58d=!0x1}={}){const _0x87a6c7=[];for(const _0x3b1304 of this['_suggestions']['values']())_0x17b92f&&!_0x3b1304['isInContent']||_0x87a6c7['push'](_0x3b1304);return _0x23a58d?_0x87a6c7['map'](_0x581baa=>_0x581baa['toJSON']()):_0x87a6c7;}['getSuggestion'](_0x443f36){const _0x201e5b=this['_suggestions']['get'](_0x443f36);if(!_0x201e5b)throw new _0x502bb5('track-changes-suggestion-not-found',this);return _0x201e5b;}['hasSuggestion'](_0x14a6ac){return this['_suggestions']['has'](_0x14a6ac);}['addSuggestionData'](_0x3e9728){const {authorId:_0x352cca,id:_0x2c7573,attributes:_0x59ae79}=_0x3e9728,[_0x3363fc,_0x36cabb]=_0x3e9728['type']['split'](':'),_0x38ee9a=this['_suggestions']['get'](_0x2c7573)||this['_createSuggestion'](_0x3363fc,_0x36cabb,_0x2c7573,_0x352cca,_0x59ae79);if(this['_addThreadToSuggestion'](_0x38ee9a),this['_checkSuggestionCorrectness'](_0x38ee9a,_0x3363fc,_0x36cabb||null,_0x352cca),_0x38ee9a['createdAt']=_0x3e9728['createdAt'],_0x38ee9a['_isDataLoaded']=!0x0,_0x59ae79&&_0x59ae79['@external']){const _0x3517fa=_0x59ae79['@external'],_0x52156d=this['_getExternalAuthor'](_0x3517fa['authorName']);_0x38ee9a['authoredAt']=_0x3517fa['createdAt'],_0x38ee9a['author']=_0x52156d,_0x38ee9a['isExternal']=!0x0;}else _0x38ee9a['authoredAt']=_0x3e9728['createdAt'];switch(_0x3e9728['data']&&(_0x38ee9a['data']=_0x3e9728['data']),_0x3e9728['attributes']&&(_0x38ee9a['attributes']=_0x3e9728['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x38ee9a['_saved']=!0x0),this['_suggestionState']['get'](_0x38ee9a)){case'notReady':this['_suggestionState']['set'](_0x38ee9a,'dataReady');break;case'markerReady':_0x38ee9a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x38ee9a])),this['_refreshSuggestionsChain'](new Set([_0x38ee9a])),this['_suggestionState']['set'](_0x38ee9a,'ready'),this['fire']('suggestionLoaded',_0x38ee9a)):this['_suggestionState']['set'](_0x38ee9a,'removed');}return _0x38ee9a;}['acceptSuggestion'](_0xe2ecc4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a9e82 of _0xe2ecc4['getAllAdjacentSuggestions']())_0x1a9e82['accept']();});});}['discardSuggestion'](_0x323d87){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d3cb8 of _0x323d87['getAllAdjacentSuggestions']())_0x3d3cb8['discard']();});});}['enableCommand'](_0x28a151,_0x5a1b40){const _0x4c9ae8=this['editor']['commands']['get'](_0x28a151);if(!_0x4c9ae8)throw new _0x502bb5('track-changes-command-not-found',this,{'commandName':_0x28a151});if(this['_enabledCommands']['has'](_0x4c9ae8))throw new _0x502bb5('track-changes-enable-command-twice',this,{'commandName':_0x28a151});this['_enabledCommands']['add'](_0x4c9ae8),_0x5a1b40&&_0x4c9ae8['on']('execute',(_0x4cb8fa,_0x1fddfd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1fddfd['length']>0x0&&_0x1fddfd[_0x1fddfd['length']-0x1]&&_0x1fddfd[_0x1fddfd['length']-0x1]['forceDefaultExecution']?_0x1fddfd['pop']():(_0x4cb8fa['return']=_0x5a1b40((..._0x4adb61)=>_0x4c9ae8['execute'](..._0x4adb61,{'forceDefaultExecution':!0x0}),..._0x1fddfd),_0x4cb8fa['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5c602e){let _0x196da4,_0x1c9043;const _0x3b65c4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x196da4=_0x5c602e();}catch(_0x31b66b){_0x1c9043=_0x31b66b;}return _0x3b65c4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1c9043&&_0x502bb5['rethrowUnexpectedError'](_0x1c9043,this),_0x196da4;}['markInsertion'](_0x60650c,_0xad685e=null,_0x3a65c5={}){if(_0x60650c['isCollapsed'])return null;const _0x45bbf1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x410c86,meta:_0x37dc31}of this['_findSuggestions'](_0x60650c,'insertion'))if(_0x37dc31['isOwn']){if(!_0x37dc31['isNextTo']){if(_0x37dc31['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x410c86,_0x3a65c5))continue;return _0x410c86;}if(qt(_0x410c86,_0x3a65c5))return _0x410c86;this['_breakSuggestionMarker'](_0x410c86,_0x60650c['start'],_0x60650c['end']);break;}if(_0xad685e==_0x410c86['subType']&&qt(_0x410c86,_0x3a65c5)){const _0x31a9ad=_0x410c86['getFirstRange']();return _0x31a9ad['start']['isEqual'](_0x60650c['end'])?this['_setSuggestionRange'](_0x410c86,this['_model']['createRange'](_0x60650c['start'],_0x31a9ad['end'])):this['_setSuggestionRange'](_0x410c86,this['_model']['createRange'](_0x31a9ad['start'],_0x60650c['end'])),_0x410c86;}}const _0x3cc2a4=_0x5eb85a(),_0x5d2d1c=_0x45bbf1['id'],_0x1734d2=_0xad685e?'insertion:'+_0xad685e:'insertion',_0x19f7f8=this['_setSuggestionData']({'id':_0x3cc2a4,'type':_0x1734d2,'createdAt':new Date(),'authorId':_0x5d2d1c,'attributes':_0x3a65c5});return this['_addSuggestionMarker'](_0x1734d2,_0x3cc2a4,_0x5d2d1c,_0x60650c),_0x19f7f8;}['markMultiRangeInsertion'](_0x2a0e6a,_0x16fd46='multi',_0x45c8d9={}){const _0x3aebfe=this['editor']['plugins']['get']('Users')['me'],_0x3747e1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x16fd46,'join');for(const _0x4380be of this['getSuggestions']())if(_0x4380be['author']['id']==_0x3aebfe['id']&&'insertion'==_0x4380be['type']&&_0x4380be['subType']==_0x16fd46&&qt(_0x4380be,_0x45c8d9)&&(_0x3747e1(_0x4380be['getRanges'](),_0x2a0e6a)||_0x3747e1(_0x2a0e6a,_0x4380be['getRanges']()))){for(const _0x3a3fa0 of _0x2a0e6a)_0x4380be['addRange'](_0x3a3fa0);return _0x4380be;}for(const {suggestion:_0x41af39,meta:_0x4fc97c}of this['_findSuggestions'](_0x2a0e6a,'insertion')){if(!_0x4fc97c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4fc97c['containsRangeInObject'])continue;if(!qt(_0x41af39,_0x45c8d9))continue;let _0x3a222c=!0x0;for(const _0x2b3ccb of _0x41af39['getRanges']())for(const _0x20ed45 of _0x2a0e6a)if(!_0x2b3ccb['containsRange'](_0x20ed45)){_0x3a222c=!0x1;break;}if(_0x3a222c)return _0x41af39;}const _0x451310=_0x5eb85a(),_0x441add=_0x3aebfe['id'],_0x169cac='insertion:'+_0x16fd46,_0x597499=this['_setSuggestionData']({'id':_0x451310,'type':_0x169cac,'createdAt':new Date(),'authorId':_0x441add,'attributes':_0x45c8d9});for(const _0xb72510 of _0x2a0e6a)this['_addSuggestionMarker'](_0x169cac,_0x451310,_0x441add,_0xb72510,u['getMultiRangeId']());return _0x597499;}['markInlineFormat'](_0x373a9e,_0x51c2f1,_0x5da055=null,_0x4d8d91={}){if(_0x5da055=_0x5da055||Gt(_0x51c2f1),_0x373a9e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x17fcef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5da055,'accept');return this['forceDefaultExecution'](()=>_0x17fcef([_0x373a9e],_0x51c2f1,_0x4d8d91)),null;}const _0x4e1471=this['editor']['plugins']['get']('Users')['me'],_0x1c0299=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4d9a8b,meta:_0x485398}of this['_findSuggestions'](_0x373a9e,'insertion'))_0x485398['isOwn']&&!_0x485398['isInsideObject']&&_0x1c0299['push'](..._0x4d9a8b['getRanges']());}const _0xd98297=function(_0x5736d9,_0x3cbc9d){const _0x524e68=[];for(const _0x5a3757 of _0x3cbc9d){const _0x1d69bc=_0x5736d9['getIntersection'](_0x5a3757);_0x1d69bc&&_0x524e68['push'](_0x1d69bc);}return _0x524e68;}(_0x373a9e,_0x1c0299),_0x468056=function(_0x1ad802,_0x1279f0){const _0x19db09=[_0x1ad802];for(const _0x403867 of _0x1279f0){let _0x2ffbf6=0x0;for(;_0x2ffbf6<_0x19db09['length'];){const _0x419f47=_0x19db09[_0x2ffbf6]['getDifference'](_0x403867);_0x19db09['splice'](_0x2ffbf6,0x1,..._0x419f47),_0x2ffbf6+=_0x419f47['length'];}}return _0x19db09;}(_0x373a9e,_0x1c0299);_0xd98297['length']&&this['_model']['change'](()=>{for(const _0x3abcac of _0xd98297){const _0xd15843=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5da055,'accept');this['forceDefaultExecution'](()=>_0xd15843([_0x3abcac],_0x51c2f1,_0x4d8d91));}});for(const _0x27cfee of _0x468056){let _0x3395b8=null,_0x6b7426=_0x27cfee['start'],_0x46531b=_0x27cfee['end'];for(const {suggestion:_0x430081,meta:_0xb6821e}of this['_findSuggestions'](_0x27cfee,'formatInline')){if(!_0xb6821e['isOwn'])continue;if(_0x430081['subType']!=_0x5da055)continue;if(!qt(_0x430081,_0x4d8d91))continue;const _0x539cbf=_0x430081['getFirstRange']();if(_0x539cbf['containsRange'](_0x27cfee,!0x0))return null;_0x6b7426=_0x6b7426['isBefore'](_0x539cbf['start'])?_0x6b7426:_0x539cbf['start'],_0x46531b=_0x46531b['isAfter'](_0x539cbf['end'])?_0x46531b:_0x539cbf['end'],_0x3395b8?_0x539cbf['start']['isBefore'](_0x3395b8['getFirstRange']()['start'])?(_0x3395b8['removeMarkers'](),_0x3395b8=_0x430081):_0x430081['removeMarkers']():_0x3395b8=_0x430081;}const _0x5b6567=this['_model']['createRange'](_0x6b7426,_0x46531b);if(_0x3395b8)this['_setSuggestionRange'](_0x3395b8,_0x5b6567);else{const _0x57d5e2=_0x5eb85a(),_0x12fa6e=_0x4e1471['id'];this['_setSuggestionData']({'id':_0x57d5e2,'type':'formatInline:'+_0x5da055,'data':_0x51c2f1,'createdAt':new Date(),'authorId':_0x12fa6e,'attributes':_0x4d8d91}),this['_addSuggestionMarker']('formatInline:'+_0x5da055,_0x57d5e2,_0x12fa6e,_0x5b6567);}}return null;}['markBlockFormat'](_0x27d00e,_0x83eb3d,_0x19f605=[],_0x448213=null,_0x3f3e68={}){_0x83eb3d['formatGroupId']||(_0x83eb3d['formatGroupId']=_0x83eb3d['commandName']),_0x83eb3d['multipleBlocks']=_0x27d00e['is']('range'),_0x448213=_0x448213||Gt(_0x83eb3d);const _0x458036=_0x19f605['map'](_0x50c2b7=>Lt(_0x50c2b7,this['_model'])),_0x354fe4=_0x27d00e['is']('range')?_0x27d00e:Lt(_0x27d00e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x595d7c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x448213,'accept');return this['forceDefaultExecution'](()=>_0x595d7c([_0x354fe4],_0x83eb3d,_0x3f3e68)),null;}_0x458036['push'](_0x354fe4);let _0x595ab1=!0x0;for(const _0x37f922 of _0x458036)if(!this['_rangeIsInLocalUserInsertion'](_0x37f922)){_0x595ab1=!0x1;break;}if(_0x595ab1&&'always'!==this['_trackFormatChanges']){const _0x100f9f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x448213,'accept');return this['forceDefaultExecution'](()=>_0x100f9f([_0x354fe4],_0x83eb3d,_0x3f3e68)),null;}let _0x17864c=null,_0x41a1a6=_0x354fe4['start'],_0x160a1b=_0x354fe4['end'];for(const {suggestion:_0xd618e4,meta:_0x32721b}of this['_findSuggestions'](_0x354fe4,'formatBlock')){if(!_0x32721b['isOwn'])continue;if(_0x32721b['isNextTo']||_0x32721b['containsRangeInObject']||_0x32721b['isInsideObject'])continue;if(_0xd618e4['data']['formatGroupId']!=_0x83eb3d['formatGroupId'])continue;if(!qt(_0xd618e4,_0x3f3e68))continue;const _0x4e3f8f=_0xd618e4['getFirstRange']();if(_0xd618e4['subType']==_0x448213){if(_0x4e3f8f['containsRange'](_0x354fe4,!0x0))return null;_0x41a1a6=_0x41a1a6['isBefore'](_0x4e3f8f['start'])?_0x41a1a6:_0x4e3f8f['start'],_0x160a1b=_0x160a1b['isAfter'](_0x4e3f8f['end'])?_0x160a1b:_0x4e3f8f['end'],_0x17864c?_0x4e3f8f['start']['isBefore'](_0x17864c['getFirstRange']()['start'])?(_0x17864c['removeMarkers'](),_0x17864c=_0xd618e4):_0xd618e4['removeMarkers']():_0x17864c=_0xd618e4;}else{const _0x127373=_0x354fe4['getIntersection'](_0x4e3f8f);this['_cutOutSuggestionMarker'](_0xd618e4,_0x127373);}}const _0x16913f=this['editor']['plugins']['get']('Users')['me'],_0x59df21=_0x5eb85a(),_0x35482f=_0x16913f['id'];if(_0x17864c)return this['_setSuggestionRange'](_0x17864c,this['_model']['createRange'](_0x41a1a6,_0x160a1b)),_0x17864c;{const _0x105c58=this['_setSuggestionData']({'id':_0x59df21,'type':'formatBlock:'+_0x448213,'data':_0x83eb3d,'createdAt':new Date(),'authorId':_0x35482f,'attributes':_0x3f3e68});return this['_addSuggestionMarker']('formatBlock:'+_0x448213,_0x59df21,_0x35482f,this['_model']['createRange'](_0x41a1a6,_0x160a1b)),_0x105c58;}}['markMultiRangeBlockFormat'](_0x1914b3,_0x537fc4,_0x825abb=[],_0x45aaa9=null,_0xcac1ca={}){_0x537fc4['formatGroupId']||(_0x537fc4['formatGroupId']=_0x537fc4['commandName']);const _0x4f3412=_0x1914b3[0x0];_0x537fc4['multipleBlocks']=_0x4f3412['is']('range'),_0x45aaa9=_0x45aaa9||Gt(_0x537fc4);const _0x533c1b=_0x825abb['map'](_0x58ca97=>Lt(_0x58ca97,this['_model'])),_0x33648c=_0x4f3412['is']('range')?_0x1914b3:_0x1914b3['map'](_0x500591=>Lt(_0x500591,this['_model']));if('never'===this['_trackFormatChanges']){const _0x557e98=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45aaa9,'accept');return this['forceDefaultExecution'](()=>_0x557e98(_0x33648c,_0x537fc4,_0xcac1ca)),null;}_0x533c1b['push'](..._0x33648c);let _0xf19af0=!0x0;for(const _0x172091 of _0x533c1b)if(!this['_rangeIsInLocalUserInsertion'](_0x172091)){_0xf19af0=!0x1;break;}if(_0xf19af0&&'always'!==this['_trackFormatChanges']){const _0x475b03=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45aaa9,'accept');return this['forceDefaultExecution'](()=>_0x475b03(_0x33648c,_0x537fc4,_0xcac1ca)),null;}const _0x4dbc26=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e8a45 of this['getSuggestions']()){if(_0x3e8a45['author']['id']!=_0x4dbc26['id'])continue;if('formatBlock'!=_0x3e8a45['type']||_0x3e8a45['data']['formatGroupId']!=_0x537fc4['formatGroupId'])continue;if(!qt(_0x3e8a45,_0xcac1ca))continue;const _0x224d94=_0x3e8a45['subType']==_0x45aaa9;for(let _0x599cea=0x0;_0x599cea<_0x33648c['length'];_0x599cea++){const _0x5b5f44=_0x33648c[_0x599cea];for(const _0x291ebf of _0x3e8a45['getMarkers']()){const _0x5189fd=_0x291ebf['getRange']();if(_0x5b5f44['isEqual'](_0x5189fd)){_0x224d94?(_0x33648c['splice'](_0x599cea,0x1),_0x599cea--):_0x3e8a45['removeMarker'](_0x291ebf['name']);break;}}}}if(0x0==_0x33648c['length'])return null;const _0x1a793f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45aaa9,'join');for(const _0x187a04 of this['getSuggestions']())if(_0x187a04['author']['id']==_0x4dbc26['id']&&'formatBlock'==_0x187a04['type']&&_0x187a04['data']['formatGroupId']==_0x537fc4['formatGroupId']&&_0x187a04['subType']==_0x45aaa9&&qt(_0x187a04,_0xcac1ca)&&(_0x1a793f(_0x187a04['getRanges'](),_0x33648c)||_0x1a793f(_0x33648c,_0x187a04['getRanges']()))){for(const _0x29201f of _0x33648c)_0x187a04['addRange'](_0x29201f);return _0x187a04;}const _0x43349e=_0x5eb85a(),_0x5902e1=_0x4dbc26['id'],_0x32f4a7='formatBlock:'+_0x45aaa9,_0x46a898=this['_setSuggestionData']({'id':_0x43349e,'type':_0x32f4a7,'data':_0x537fc4,'createdAt':new Date(),'authorId':_0x5902e1,'attributes':_0xcac1ca});for(const _0x2048d0 of _0x33648c)this['_addSuggestionMarker'](_0x32f4a7,_0x43349e,_0x5902e1,_0x2048d0,u['getMultiRangeId']());return _0x46a898;}['markDeletion'](_0x5b6759,_0x4ad9e6=null,_0x369df9={}){if(_0x5b6759['isCollapsed'])return null;const _0x4b1d35=this['editor']['plugins']['get']('Users')['me'],_0x41de37=new _0x348f0d(_0x5b6759['start'],_0x5b6759['end']);for(const {suggestion:_0x1c4d5b,meta:_0x254eff}of this['_findSuggestions'](_0x41de37,'insertion'))if(_0x254eff['isOwn']&&!_0x254eff['isNextTo']){if(_0x1c4d5b['isMultiRange']){const _0x2aea68=_0x1c4d5b['getRanges']()['filter'](_0x437f66=>'$graveyard'!=_0x437f66['root']['rootName']);_0x2aea68['every'](_0x43045d=>_0x41de37['containsRange'](_0x43045d,!0x0))&&_0x1c4d5b['discard']();if(_0x2aea68['some'](_0xaaa404=>_0xaaa404['containsRange'](_0x41de37,!0x0))){const _0x5cfbfd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ad9e6,'accept');return this['forceDefaultExecution'](()=>_0x5cfbfd([_0x41de37],null,_0x369df9)),null;}}else{const _0x416218=_0x41de37['getIntersection'](_0x1c4d5b['getFirstRange']());null!==_0x416218&&_0x1c4d5b['_onDiscard']([_0x416218],null,_0x369df9);}}if(_0x41de37['detach'](),_0x41de37['isCollapsed']||'$graveyard'==_0x41de37['root']['rootName'])return null;let _0x383e05=null,_0x4f3dd9=_0x41de37['start'],_0x90dd4c=_0x41de37['end'];const _0x4ee8ca=this['_findSuggestions'](_0x41de37,'deletion');for(const {suggestion:_0x500e68,meta:_0x2e0b3e}of _0x4ee8ca){const _0x3003b3=this['_model']['createRange'](_0x4f3dd9,_0x90dd4c);if(_0x2e0b3e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e0b3e['containsRangeInObject']&&!_0x2e0b3e['isInsideObject'])){if(_0x500e68['isMultiRange']){if(!qt(_0x500e68,_0x369df9))continue;let _0x66a233=!0x0;for(const _0x225fe0 of _0x500e68['getRanges']()){if(_0x225fe0['containsRange'](_0x3003b3,!0x0))return _0x500e68;_0x3003b3['containsRange'](_0x225fe0)||(_0x66a233=!0x1);}_0x66a233&&_0x500e68['discard']();}else{const _0x3160fe=_0x500e68['getFirstRange']();if(_0x3160fe['containsRange'](_0x3003b3,!0x0))return _0x500e68;if(!qt(_0x500e68,_0x369df9)){_0x3003b3['containsRange'](_0x3160fe)?_0x500e68['removeMarkers']():_0x3160fe['containsPosition'](_0x4f3dd9)?_0x4f3dd9=_0x3160fe['end']:_0x3160fe['containsPosition'](_0x90dd4c)&&(_0x90dd4c=_0x3160fe['start']);continue;}_0x4f3dd9=_0x4f3dd9['isBefore'](_0x3160fe['start'])?_0x4f3dd9:_0x3160fe['start'],_0x90dd4c=_0x90dd4c['isAfter'](_0x3160fe['end'])?_0x90dd4c:_0x3160fe['end'],_0x369df9=Object['assign']({},_0x500e68['attributes']),_0x383e05?_0x3160fe['start']['isBefore'](_0x383e05['getFirstRange']()['start'])?(_0x383e05['removeMarkers'](),_0x383e05=_0x500e68):_0x500e68['removeMarkers']():_0x383e05=_0x500e68;}}}if(_0x383e05)return this['_setSuggestionRange'](_0x383e05,this['_model']['createRange'](_0x4f3dd9,_0x90dd4c)),_0x383e05;{const _0x2f39c2=_0x5eb85a(),_0x161df9=this['_model']['createRange'](_0x4f3dd9,_0x90dd4c),_0x2e9ee8=_0x4b1d35['id'],_0x4c8c27=_0x4ad9e6?'deletion:'+_0x4ad9e6:'deletion',_0xcf9788=this['_setSuggestionData']({'id':_0x2f39c2,'type':_0x4c8c27,'createdAt':new Date(),'authorId':_0x2e9ee8,'attributes':_0x369df9});return this['_addSuggestionMarker'](_0x4c8c27,_0x2f39c2,_0x2e9ee8,_0x161df9),_0xcf9788;}}['markMultiRangeDeletion'](_0x324836,_0xfe1e5f='multi',_0x5233ea={}){const _0x3aac8d=this['editor']['plugins']['get']('Users')['me'],_0x3061db=_0x324836['map'](_0x269e14=>new _0x348f0d(_0x269e14['start'],_0x269e14['end'])),_0x264b53=new Set();for(const {suggestion:_0x945399,meta:_0x4795c1}of this['_findSuggestions'](_0x3061db,'insertion'))_0x4795c1['isOwn']&&!_0x4795c1['isNextTo']&&_0x264b53['add'](_0x945399);for(const _0x58951e of _0x264b53)if(_0x58951e['isMultiRange']){const _0x21c55e=_0x58951e['getRanges']();(!_0x58951e['attributes']||!_0x58951e['attributes']['skipNestingCheck'])&&(_0x21c55e['every'](_0x64eadc=>_0x3061db['some'](_0x23c987=>_0x23c987['containsRange'](_0x64eadc,!0x0)))&&_0x58951e['discard']());if(_0x3061db['every'](_0x2bcd85=>_0x21c55e['some'](_0x5deb31=>_0x5deb31['containsRange'](_0x2bcd85,!0x0)))){const _0x3dfd85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfe1e5f,'accept');return this['forceDefaultExecution'](()=>_0x3dfd85(_0x324836,null,_0x5233ea)),null;}}else{const _0x8dc764=_0x58951e['getFirstRange']();_0x3061db['some'](_0x307f47=>_0x307f47['containsRange'](_0x8dc764,!0x0))&&_0x58951e['discard']();if(_0x3061db['every'](_0x351e39=>_0x8dc764['containsRange'](_0x351e39,!0x0))){const _0xce079=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfe1e5f,'accept');return this['forceDefaultExecution'](()=>_0xce079(_0x3061db,null,_0x5233ea)),null;}}const _0x25a4ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfe1e5f,'join');let _0x50e956=null;for(const _0x59883b of this['getSuggestions']())if(_0x59883b['author']['id']==_0x3aac8d['id']&&_0x59883b['isInContent']&&'deletion'==_0x59883b['type']&&_0x59883b['subType']==_0xfe1e5f&&qt(_0x59883b,_0x5233ea)&&(_0x25a4ea(_0x59883b['getRanges'](),_0x3061db)||_0x25a4ea(_0x3061db,_0x59883b['getRanges']()))){if(_0x50e956){if(_0x59883b['commentThread']&&_0x59883b['commentThread']['length'])continue;for(const _0x5452bd of _0x59883b['getRanges']())_0x50e956['isIntersectingWithRange'](_0x5452bd)||_0x50e956['addRange'](_0x5452bd);_0x59883b['removeMarkers']();}else{_0x50e956=_0x59883b;for(const _0x457424 of _0x3061db)_0x59883b['isIntersectingWithRange'](_0x457424)||_0x59883b['addRange'](_0x457424);}}if(_0x50e956)return _0x50e956;_0x264b53['clear']();for(const {suggestion:_0x5a2e05,meta:_0x355452}of this['_findSuggestions'](_0x3061db,'deletion'))_0x355452['isOwn']&&(this['_mergeNestedSuggestions']||!_0x355452['containsRangeInObject']&&!_0x355452['isInsideObject'])&&qt(_0x5a2e05,_0x5233ea)&&_0x264b53['add'](_0x5a2e05);for(const _0x1d1508 of _0x264b53){const _0x3da263=_0x1d1508['getRanges']();if(!_0x5233ea||!_0x5233ea['skipNestingCheck']){if(_0x3061db['every'](_0x23cd66=>_0x3da263['some'](_0x3618a9=>_0x3618a9['containsRange'](_0x23cd66,!0x0))))return _0x1d1508;}(!_0x1d1508['attributes']||!_0x1d1508['attributes']['skipNestingCheck'])&&(_0x3da263['every'](_0x24c1e0=>_0x3061db['some'](_0x484a23=>_0x484a23['containsRange'](_0x24c1e0,!0x0)))&&_0x1d1508['discard']());}const _0x5087f0=_0x5eb85a(),_0x32b18e=_0x3aac8d['id'],_0x8044e5='deletion:'+_0xfe1e5f,_0x13a2aa=this['_setSuggestionData']({'id':_0x5087f0,'type':_0x8044e5,'createdAt':new Date(),'authorId':_0x32b18e,'attributes':_0x5233ea});for(const _0xae6a9f of _0x3061db)_0xae6a9f['detach'](),_0xae6a9f['isCollapsed']||'$graveyard'==_0xae6a9f['root']['rootName']||this['_addSuggestionMarker'](_0x8044e5,_0x5087f0,_0x32b18e,_0xae6a9f,u['getMultiRangeId']());return _0x13a2aa;}['markAttributeChange'](_0x49aeb0,_0x9687ea,_0x1c0cde,_0x34076f,_0x4e71a4){if(_0x49aeb0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3a4e9c=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fcb1d=Array['from'](this['_suggestions']['values']())['filter'](_0x44603a=>'attribute'==_0x44603a['type']&&_0x44603a['data']['key']==_0x9687ea&&_0x44603a['isIntersectingWithRange'](_0x49aeb0));if('default'===this['_trackFormatChanges']){const _0x11c9ca=this['_findSuggestions'](_0x49aeb0,'insertion')['filter'](({meta:_0x22762d})=>_0x22762d['isOwn']&&!_0x22762d['isInsideObject']&&!_0x22762d['isNextTo'])['map'](({suggestion:_0x1731c9})=>_0x1731c9);_0x2fcb1d['unshift'](..._0x11c9ca);}const _0x246301=new Map([[_0x49aeb0,_0x1c0cde]]);for(const _0x25bcf4 of _0x2fcb1d){const _0x4cee3d='attribute'==_0x25bcf4['type']?_0x25bcf4['data']['oldValue']:void 0x0,_0x5bcc3e=_0x25bcf4['getFirstRange'](),_0x208479=Array['from'](_0x246301['keys']())['find'](_0x340288=>_0x340288['isIntersecting'](_0x5bcc3e));if(!_0x208479)continue;const _0x52596f=_0x208479['getDifference'](_0x5bcc3e);this['_isBlockAttribute'](_0x9687ea)&&'insertion'==_0x25bcf4['type']&&0x0!=_0x52596f['length']||(_0x246301['delete'](_0x208479),_0x52596f['forEach'](_0x34098f=>{_0x246301['set'](_0x34098f,_0x1c0cde);}),'insertion'!=_0x25bcf4['type']&&_0x4cee3d!=_0x34076f&&_0x246301['set'](_0x208479['getIntersection'](_0x5bcc3e),_0x4cee3d));}const _0x429ac3=[];for(const [_0x3761dc,_0x28bf57]of _0x246301){const _0x1b55f6=_0x5eb85a(),_0x1396df={'key':_0x9687ea,'oldValue':_0x28bf57,'newValue':_0x34076f};_0x9687ea['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':_0x9687ea});const _0x446041=('attribute:'+(_0x9687ea+'|'+Gt({'newValue':_0x34076f})))['substring'](0x0,0x3c),_0x523e50=this['_setSuggestionData']({'id':_0x1b55f6,'type':_0x446041,'data':_0x1396df,'createdAt':new Date(),'authorId':_0x3a4e9c,'attributes':_0x4e71a4});_0x429ac3['push'](_0x523e50),this['_addSuggestionMarker'](_0x446041,_0x1b55f6,_0x3a4e9c,_0x3761dc);}return _0x429ac3;}['enableDefaultAttributesIntegration'](_0x1301a7){this['enableCommand'](_0x1301a7,(_0x4ba806,..._0x4b6ce2)=>{this['_recordAttributeChanges'](()=>{_0x4ba806(..._0x4b6ce2);});});}['registerBlockAttribute'](_0x7eebbe){this['_blockAttributeKeys']['add'](_0x7eebbe);}['registerInlineAttribute'](_0x5e2ad3){this['_inlineAttributeKeys']['add'](_0x5e2ad3);}['_getAttributeKey'](_0x53e6cd){return'attribute'==_0x53e6cd['type']?_0x53e6cd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2bfbdc,_0x4ec2e3){const _0x2be798=_0x2bfbdc['getFirstMarker']();this['_model']['change'](_0x218055=>{_0x218055['updateMarker'](_0x2be798,{'range':_0x4ec2e3});});}['_addThreadToSuggestion'](_0x5ad46d){const _0x364f7c=_0x5ad46d['id'],_0x425431=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x364f7c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x425431,'threadId':_0x364f7c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x155811=this['_commentsRepository']['getCommentThread'](_0x364f7c);_0x155811['unbind']('isRemovable'),_0x155811['isRemovable']=!0x1,_0x5ad46d['commentThread']=_0x155811;}['_checkSuggestionCorrectness'](_0x87e1b7,_0x5a675a,_0x1ff774,_0x2206e7){if(_0x87e1b7['type']!=_0x5a675a||_0x87e1b7['subType']!=_0x1ff774||_0x87e1b7['creator']['id']!=_0x2206e7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x502bb5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x315c7f,_0x211769){const _0x1b450a=_0x315c7f['getFirstRange']();if(_0x211769['isEqual'](_0x1b450a))_0x315c7f['removeMarkers']();else{if(_0x1b450a['containsRange'](_0x211769)){const _0x56bb32=this['_model']['createPositionAt'](_0x211769['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x315c7f,this['_model']['createRange'](_0x1b450a['start'],_0x56bb32));const _0x4df600=_0x5eb85a(),_0x4447eb=_0x315c7f['creator']['id'],_0x858337=_0x315c7f['type']+':'+_0x315c7f['subType'];this['_setSuggestionData']({'id':_0x4df600,'type':_0x858337,'createdAt':new Date(),'authorId':_0x4447eb,'data':_0x315c7f['data'],'attributes':_0x315c7f['attributes']});const _0x4dc3e7=this['_model']['createPositionAt'](_0x211769['end']['parent'],'after'),_0x1062fb=this['_model']['createRange'](_0x4dc3e7,_0x1b450a['end']);this['_addSuggestionMarker'](_0x858337,_0x4df600,_0x4447eb,_0x1062fb);}else{if(_0x1b450a['containsPosition'](_0x211769['start'])){const _0x5e4214=this['_model']['createPositionAt'](_0x211769['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x315c7f,this['_model']['createRange'](_0x1b450a['start'],_0x5e4214));}else{const _0x153357=this['_model']['createPositionAt'](_0x211769['end']['parent'],'after');this['_setSuggestionRange'](_0x315c7f,this['_model']['createRange'](_0x153357,_0x1b450a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x350255){for(const {suggestion:_0x31dd6e,meta:_0x5237f1}of this['_findSuggestions'](_0x350255,'insertion')){if(!_0x5237f1['isOwn'])continue;const _0x2ee99f=_0x31dd6e['getRanges']();for(const _0x40e3c5 of _0x2ee99f)if(!_0x350255['getDifference'](_0x40e3c5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3daf61){const _0x1cc09d=this['editor']['plugins']['get']('Users')['getUser'](_0x3daf61);if(!_0x1cc09d)throw new _0x502bb5('track-changes-user-not-found',this);return _0x1cc09d;}['_getExternalAuthor'](_0xbf9607){const _0x23c4ce=this['editor']['plugins']['get']('Users'),_0x5d897f=_0x4f74f6('external:'+_0xbf9607),_0x5e258c=_0x23c4ce['getUser'](_0x5d897f);return _0x5e258c||_0x23c4ce['addUser']({'id':_0x5d897f,'name':_0xbf9607});}['_createSuggestion'](_0x29d98f,_0x575855,_0x38ac0b,_0x282a07,_0x57a010){const _0x3322b1=this['_getAuthorFromId'](_0x282a07),_0xc0259c=this['_suggestionFactory']['buildSuggestion'](_0x29d98f,_0x575855,_0x38ac0b,_0x3322b1,_0x57a010,_0x5e1dfd=>{this['_updateSuggestionData'](_0x38ac0b,{'attributes':_0x5e1dfd});const _0x483fdd=this['getSuggestion'](_0x38ac0b);this['_joinWithAdjacentSuggestions'](new Set([_0x483fdd])),this['_refreshSuggestionsChain'](new Set([_0x483fdd]));});return this['listenTo'](_0xc0259c,'accept',()=>{this['_updateSuggestionData'](_0x38ac0b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc0259c,'discard',()=>{this['_updateSuggestionData'](_0x38ac0b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x38ac0b,_0xc0259c),this['_suggestionState']['set'](_0xc0259c,'notReady'),_0xc0259c;}['_splitMarkerName'](_0x430872){const _0x568bd8=_0x430872['split'](':');return{'group':_0x568bd8[0x0],'type':_0x568bd8[0x1],'subType':_0x568bd8['length']>=0x5?_0x568bd8[0x2]:null,'id':_0x568bd8['length']<0x5?_0x568bd8[0x2]:_0x568bd8[0x3],'authorId':_0x568bd8['length']<0x5?_0x568bd8[0x3]:_0x568bd8[0x4],'markerCount':0x6==_0x568bd8['length']?_0x568bd8[0x5]:null};}['_breakSuggestionMarker'](_0x2d8b6e,_0x7b6a19,_0x40cb88){const _0x54da16=_0x2d8b6e['getFirstRange'](),_0x5f5b3a=_0x54da16['start'],_0x54bbd7=_0x54da16['end'];this['_setSuggestionRange'](_0x2d8b6e,this['_model']['createRange'](_0x5f5b3a,_0x7b6a19));const _0x41e0a5=_0x5eb85a(),_0x34a262=_0x2d8b6e['creator']['id'],_0x4ab6f1=_0x2d8b6e['type']+(_0x2d8b6e['subType']?':'+_0x2d8b6e['subType']:'');this['_setSuggestionData']({'id':_0x41e0a5,'type':_0x4ab6f1,'createdAt':new Date(),'authorId':_0x34a262,'originalSuggestionId':_0x2d8b6e['id'],'attributes':_0x2d8b6e['attributes'],'data':_0x2d8b6e['data']});const _0x49045b=this['_getAttributeKey'](_0x2d8b6e);('formatBlock'==_0x2d8b6e['type']||_0x49045b&&this['_isBlockAttribute'](_0x49045b))&&(_0x40cb88=this['_model']['createPositionBefore'](_0x40cb88['parent'])),this['_addSuggestionMarker'](_0x4ab6f1,_0x41e0a5,_0x34a262,this['_model']['createRange'](_0x40cb88,_0x54bbd7));}['_findSuggestions'](_0x2e9ebb,_0x9b9eb1=null){const _0x2f928b=[],_0x54451e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2e9ebb)||(_0x2e9ebb=[_0x2e9ebb]);for(const _0x550614 of this['getSuggestions']()){if(!_0x550614['isInContent'])continue;if(_0x9b9eb1&&_0x550614['type']!=_0x9b9eb1)continue;let _0x483115=!0x1;for(const _0x2887f0 of _0x550614['getRanges']()){for(const _0x490ec3 of _0x2e9ebb){const _0x441dc3=_0x490ec3['start']['isEqual'](_0x2887f0['end'])||_0x490ec3['end']['isEqual'](_0x2887f0['start']);if(_0x441dc3||_0x490ec3['getIntersection'](_0x2887f0)){const _0x2067f5=_0x490ec3['containsRange'](_0x2887f0)&&Ot(this['_model']['schema'],_0x2887f0['start'],_0x490ec3),_0x8936be=_0x2887f0['containsRange'](_0x490ec3)&&Ot(this['_model']['schema'],_0x490ec3['start'],_0x2887f0);_0x2f928b['push']({'suggestion':_0x550614,'meta':{'isOwn':_0x54451e==_0x550614['author'],'isNextTo':_0x441dc3,'isInsideObject':_0x2067f5,'containsRangeInObject':_0x8936be}}),_0x483115=!0x0;break;}}if(_0x483115)break;}}return _0x2f928b;}['_addSuggestionMarker'](_0x47ee36,_0x16fd14,_0x51f5fa,_0x38983a,_0x20ef52){this['_model']['change'](_0x1862d9=>{let _0x3775a4='suggestion:'+_0x47ee36+':'+_0x16fd14+':'+_0x51f5fa;_0x20ef52&&(_0x3775a4=_0x3775a4+':'+_0x20ef52),_0x1862d9['addMarker'](_0x3775a4,{'range':_0x38983a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xb541d4){const _0x14136a=_0xb541d4['previous'],_0x1e6a89=_0xb541d4['next'];_0xb541d4['previous']=null,_0xb541d4['next']=null,null!=_0x14136a&&_0x14136a['next']==_0xb541d4&&(_0x14136a['next']=_0x1e6a89),null!=_0x1e6a89&&_0x1e6a89['previous']==_0xb541d4&&(_0x1e6a89['previous']=_0x14136a),'ready'==this['_suggestionState']['get'](_0xb541d4)&&(this['_suggestionState']['set'](_0xb541d4,'removed'),this['fire']('suggestionUnloaded',_0xb541d4,_0x14136a,_0x1e6a89));}['_setSuggestionData'](_0x5d16dc){const _0x489301=_0x5d16dc['id'],_0xb6a7de=this['addSuggestionData'](_0x5d16dc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1a801e=this['editor']['plugins']['get']('PendingActions'),_0x1c71f2=_0xb6a7de['hasComments'],_0x6f02f3=_0xb6a7de['subType']?_0xb6a7de['type']+':'+_0xb6a7de['subType']:_0xb6a7de['type'],_0x261baf=this['editor']['locale'],_0x560547=_0x1a801e['add'](o(_0x261baf,'PENDING_ACTION_SUGGESTION')),_0x4e4f42={'id':_0x489301,'type':_0x6f02f3,'hasComments':_0x1c71f2,'data':_0x5d16dc['data']||null,'originalSuggestionId':_0x5d16dc['originalSuggestionId']||null,'attributes':_0xb6a7de['attributes']};this['_adapter']['addSuggestion'](_0x4e4f42)['then'](_0x184d78=>{_0xb6a7de['_saved']=!0x0,_0x1a801e['remove'](_0x560547),_0x184d78&&_0x184d78['createdAt']&&(this['_suggestions']['get'](_0x489301)['createdAt']=_0x184d78['createdAt']);})['catch'](_0x51310e=>{throw _0x2b8c1e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb6a7de['discard']();}),_0xb6a7de['stopListening'](),this['_suggestions']['delete'](_0xb6a7de['id']),this['_suggestionState']['delete'](_0xb6a7de),_0x51310e;});}return _0xb6a7de;}['_isBlockAttribute'](_0x4cedc3){return this['_blockAttributeKeys']['has'](_0x4cedc3);}['_updateSuggestionData'](_0x5a936b,_0x5d2ac8){const _0xcda77b=this['editor']['plugins']['get']('PendingActions'),_0x9823a7=this['getSuggestion'](_0x5a936b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x9823a7['_saved']){const _0x432ded=_0xcda77b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5a936b,_0x5d2ac8)['then'](()=>{_0xcda77b['remove'](_0x432ded);});}else _0x9823a7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5a936b,_0x5d2ac8);});}}['_getSuggestionData'](_0x143126){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x502bb5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x143126);}['_handleNewSuggestionMarker'](_0x578d28){const {id:_0x3b1ab2,type:_0x52a26e,subType:_0x2aff45,authorId:_0x30ec31}=this['_splitMarkerName'](_0x578d28),_0x34a1c5=this['_suggestions']['get'](_0x3b1ab2)||this['_createSuggestion'](_0x52a26e,_0x2aff45,_0x3b1ab2,_0x30ec31,{});switch(this['_checkSuggestionCorrectness'](_0x34a1c5,_0x52a26e,_0x2aff45,_0x30ec31),this['_suggestionState']['get'](_0x34a1c5)){case'notReady':this['_getSuggestionData'](_0x3b1ab2)['then'](_0x1be4eb=>{let _0x4adf66=Promise['resolve']();_0x1be4eb['hasComments']&&(_0x4adf66=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3b1ab2})),_0x4adf66['then'](()=>{this['addSuggestionData'](_0x1be4eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x34a1c5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3b1ab2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x34a1c5,'ready'),this['fire']('suggestionLoaded',_0x34a1c5);break;case'ready':this['fire']('suggestionChanged',_0x34a1c5);}return _0x34a1c5['addMarkerName'](_0x578d28),_0x34a1c5;}['_refreshSuggestionsChain'](_0x594717){const _0x5a5d52=Array['from'](_0x594717),_0x3e7727=_0x5a5d52['filter'](_0x1a0e1a=>'attribute'==_0x1a0e1a['type']);this['_refreshAttributeSuggestionsChain'](_0x3e7727);const _0x479a74=_0x5a5d52['filter'](_0x57fde5=>!_0x57fde5['isMultiRange']&&'attribute'!=_0x57fde5['type']),_0x1ff747=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b01ab=>!_0x2b01ab['isMultiRange']&&'attribute'!=_0x2b01ab['type']),_0x1e90ed=_0x1ff747['filter'](_0x4ef43d=>!_0x594717['has'](_0x4ef43d)),_0x52d040=new Map(_0x1ff747['map'](_0x250611=>[_0x250611,this['_suggestionFactory']['getSuggestionCallback'](_0x250611['type'],_0x250611['subType'],'chain')])),_0x1fea15=new Map(_0x1ff747['map'](_0x53b743=>[_0x53b743,_0x53b743['getFirstRange']()])),_0xd234b9=new Set(),_0x13fb72=new Set();for(let _0x48ea7b=0x0;_0x48ea7b<_0x479a74['length'];_0x48ea7b++)_0xa27531(_0x479a74[_0x48ea7b],_0x479a74,_0x48ea7b+0x1);for(let _0x524b08=0x0;_0x524b08<_0x479a74['length'];_0x524b08++)_0xa27531(_0x479a74[_0x524b08],_0x1e90ed,0x0);const _0x3292da=new Set();for(let _0x5da05f=0x0;_0x5da05f<_0x479a74['length'];_0x5da05f++){const _0x378a1e=_0x479a74[_0x5da05f];!_0x13fb72['has'](_0x378a1e)&&_0x378a1e['previous']&&(_0x3292da['add'](_0x378a1e['previous']),_0x378a1e['previous']['next']===_0x378a1e&&(_0x378a1e['previous']['next']=null),_0x378a1e['previous']=null),!_0xd234b9['has'](_0x378a1e)&&_0x378a1e['next']&&(_0x3292da['add'](_0x378a1e['next']),_0x378a1e['next']['previous']===_0x378a1e&&(_0x378a1e['next']['previous']=null),_0x378a1e['next']=null);}function _0xa27531(_0x25085c,_0x104e65,_0xe0d596){for(let _0x3bf4ac=_0xe0d596;_0x3bf4ac<_0x104e65['length'];_0x3bf4ac++){const _0x2fddd9=_0x37f799(_0x25085c,_0x104e65[_0x3bf4ac]);_0x2fddd9&&(_0x2fddd9[0x0]['next']=_0x2fddd9[0x1],_0x2fddd9[0x1]['previous']=_0x2fddd9[0x0],_0xd234b9['add'](_0x2fddd9[0x0]),_0x13fb72['add'](_0x2fddd9[0x1]));}}function _0x37f799(_0x29a272,_0x4892c7){if(_0x29a272['author']['id']!==_0x4892c7['author']['id'])return null;const _0x2b1ce5=_0x52d040['get'](_0x29a272)(_0x29a272,_0x4892c7,_0x1fea15['get'](_0x29a272),_0x1fea15['get'](_0x4892c7));if(!_0x2b1ce5)return null;return _0x52d040['get'](_0x4892c7)(_0x29a272,_0x4892c7,_0x1fea15['get'](_0x29a272),_0x1fea15['get'](_0x4892c7))?_0x2b1ce5[0x1]['commentThread']&&_0x2b1ce5[0x1]['commentThread']['length']?null:_0x2b1ce5:null;}_0x3292da['size']&&this['_refreshSuggestionsChain'](_0x3292da);}['_refreshAttributeSuggestionsChain'](_0xd0d66e){if(0x0==_0xd0d66e['length'])return;const _0x5dff12=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56bc09=>'attribute'==_0x56bc09['type']&&_0x56bc09['_isDataLoaded']),_0x18fefa=[],_0x432b36=new Map();for(const _0x452a58 of _0x5dff12){const _0x256f64=_0x4f74f6(_0x452a58['attributes']);_0x432b36['has'](_0x256f64)||(_0x432b36['set'](_0x256f64,_0x18fefa['length']),_0x18fefa['push']([]));const _0x37a031=_0x432b36['get'](_0x256f64);_0x18fefa[_0x37a031]['push'](_0x452a58);}!(function(){_0x18fefa['sort']((_0x10d8aa,_0x7477a)=>{const _0x5217b2=_0x10d8aa[0x0]['createdAt'],_0x217985=_0x7477a[0x0]['createdAt'];return _0x5217b2==_0x217985?_0x10d8aa[0x0]['attributes']['groupId']<_0x7477a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5217b2<_0x217985?-0x1:0x1;});for(const _0x18a40c of _0x18fefa)_0x18a40c['sort']((_0x3fb477,_0x191690)=>_0x3fb477['id']<_0x191690['id']?-0x1:0x1);}());for(let _0x1d4a08=0x0;_0x1d4a08<_0x18fefa['length'];_0x1d4a08++){if(0x0==_0x18fefa[_0x1d4a08]['length'])continue;const _0x41cecf=[];for(let _0x3891cf=_0x1d4a08+0x1;_0x3891cf<_0x18fefa['length'];_0x3891cf++)0x0!=_0x18fefa[_0x3891cf]['length']&&_0x20933b(_0x18fefa[_0x1d4a08],_0x18fefa[_0x3891cf])&&_0x41cecf['push'](_0x3891cf);for(const _0xe40229 of _0x41cecf)_0x18fefa[_0x1d4a08]=_0x18fefa[_0x1d4a08]['concat'](_0x18fefa[_0xe40229]),_0x18fefa[_0xe40229]=[];}for(const _0x13e34e of _0x18fefa)for(let _0x1f5c6a=0x0;_0x1f5c6a<_0x13e34e['length'];_0x1f5c6a++){const _0x3f75c9=_0x13e34e[_0x1f5c6a+0x1]||null;_0x13e34e[_0x1f5c6a]['next']!==_0x3f75c9&&(_0x13e34e[_0x1f5c6a]['next']=_0x3f75c9);}for(const _0x5b6e2d of _0x18fefa)for(let _0x17d3a3=0x0;_0x17d3a3<_0x5b6e2d['length'];_0x17d3a3++){const _0x31ce91=_0x5b6e2d[_0x17d3a3-0x1]||null;_0x5b6e2d[_0x17d3a3]['previous']!==_0x31ce91&&(_0x5b6e2d[_0x17d3a3]['previous']=_0x31ce91);}function _0x20933b(_0xc19131,_0x1e94f9){if(_0xc19131[0x0]['attributes']['groupId']!==_0x1e94f9[0x0]['attributes']['groupId']&&_0xc19131[0x0]['author']!==_0x1e94f9[0x0]['author'])return!0x1;if(!function(_0x2b47d1,_0x364f80){if(!_0x2b47d1['hasComments']&&!_0x364f80['hasComments'])return!0x0;if(_0x2b47d1['hasComments']&&_0x364f80['hasComments'])return!0x1;if(_0x2b47d1['hasComments']&&_0x364f80['createdAt']<_0x2b47d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x364f80['hasComments']&&_0x2b47d1['createdAt']<_0x364f80['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xc19131[0x0],_0x1e94f9[0x0]))return!0x1;const _0x14d81b=Tt(_0xc19131[0x0]['attributes'],'groupId'),_0x20c77a=Tt(_0x1e94f9[0x0]['attributes'],'groupId');if(!_0x5cc37c(_0x14d81b,_0x20c77a))return!0x1;return!!_0xc19131['every'](_0x3f0bb2=>_0x1e94f9['some'](_0x2b8728=>_0x3f0bb2['getFirstRange']()['isEqual'](_0x2b8728['getFirstRange']())))&&_0x1e94f9['every'](_0x330c64=>_0xc19131['some'](_0x4d913b=>_0x330c64['getFirstRange']()['isEqual'](_0x4d913b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x322e0f){const _0x17c9ab=Array['from'](_0x322e0f),_0x535a7e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ff602=_0x535a7e['filter'](_0x4104a2=>!_0x322e0f['has'](_0x4104a2)),_0x23f5e4=new Map(_0x17c9ab['map'](_0x2223d4=>[_0x2223d4,this['_suggestionFactory']['getSuggestionCallback'](_0x2223d4['type'],_0x2223d4['subType'],'join')])),_0x203078=new Map(_0x535a7e['map'](_0x3b1fab=>[_0x3b1fab,_0x3b1fab['getRanges']()]));for(let _0x1bdbc2=0x0;_0x1bdbc2<_0x17c9ab['length'];_0x1bdbc2++){if(_0xc4f057(this,_0x17c9ab[_0x1bdbc2],_0x17c9ab,_0x1bdbc2+0x1))return!0x0;}for(let _0x446699=0x0;_0x446699<_0x17c9ab['length'];_0x446699++){if(_0xc4f057(this,_0x17c9ab[_0x446699],_0x3ff602,0x0))return!0x0;}return!0x1;function _0xc4f057(_0x199ef4,_0x30573d,_0x16d8b5,_0x20843c){for(let _0x204704=_0x20843c;_0x204704<_0x16d8b5['length'];_0x204704++){const _0x21e7be=_0x16d8b5[_0x204704];if(_0x21e7be['type']!==_0x30573d['type']||_0x21e7be['author']['id']!==_0x30573d['author']['id']||_0x21e7be['subType']!==_0x30573d['subType'])continue;if(!Jt(_0x30573d,_0x21e7be))continue;if('attribute'==_0x30573d['type']&&_0x30573d['data']['oldValue']!=_0x21e7be['data']['oldValue'])continue;if('attribute'==_0x30573d['type']&&_0x199ef4['_isBlockAttribute'](_0x30573d['data']['key']))continue;if('formatBlock'==_0x30573d['type']){const _0x407c83=_0x199ef4['editor']['model'],_0x2a80b0=_0x30573d['getContainedElement']();if(_0x2a80b0&&(_0x407c83['schema']['isObject'](_0x2a80b0)||_0x407c83['schema']['isLimit'](_0x2a80b0)))continue;}const _0x3761c1=_0x23f5e4['get'](_0x30573d),_0x3a0ce0=_0x203078['get'](_0x30573d),_0x1ae5f4=_0x203078['get'](_0x21e7be),_0x3cdc2b=_0x30573d['commentThread']&&_0x30573d['commentThread']['length'],_0x441deb=_0x21e7be['commentThread']&&_0x21e7be['commentThread']['length'];if(!_0x3cdc2b&&_0x3761c1(_0x1ae5f4,_0x3a0ce0))return _0x199ef4['_joinSuggestions'](_0x21e7be,_0x30573d),_0x203078['delete'](_0x30573d),!0x0;if(!_0x441deb&&_0x3761c1(_0x3a0ce0,_0x1ae5f4))return _0x199ef4['_joinSuggestions'](_0x30573d,_0x21e7be),_0x203078['delete'](_0x21e7be),!0x0;}return!0x1;}}['_joinSuggestions'](_0x21c768,_0x53f4ff){if(_0x21c768['isMultiRange']){for(const _0x3cce5c of _0x53f4ff['getRanges']())_0x21c768['addRange'](_0x3cce5c);}else{const _0x4524ab=_0x53f4ff['getFirstRange']()['end'];this['_setSuggestionRange'](_0x21c768,this['_model']['createRange'](_0x21c768['getFirstRange']()['start'],_0x4524ab));}_0x53f4ff['removeMarkers']();}['_getMarkerAnnouncementText'](_0x24da16,_0x3e4172,_0xcd059f){const _0x2125fc=_0x24da16['startsWith']('format')||_0x24da16['startsWith']('attribute')?'FORMATTING':_0x24da16['toUpperCase']();return o(this['editor']['locale'],_0x3e4172+'_'+_0x2125fc+'_SUGGESTION_ANNOUNCEMENT',_0xcd059f);}['_initAriaMarkerChangeAnnouncements'](){const _0x298ba1=this['editor'];if(!_0x298ba1['ui'])return;const {ariaLiveAnnouncer:_0x1db948}=_0x298ba1['ui'];_0xc7fe01(this['_model'],({left:_0x5c874a,entered:_0x359c10})=>{for(const _0x4a22aa of _0x5c874a){const {group:_0x4da74d,type:_0x395f95}=this['_splitMarkerName'](_0x4a22aa['name']);if('suggestion'===_0x4da74d){_0x1db948['announce'](this['_getMarkerAnnouncementText'](_0x395f95,'LEAVE'));break;}}for(const _0x2370e4 of _0x359c10){const {group:_0x10c9bc,type:_0x3fb5d1}=this['_splitMarkerName'](_0x2370e4['name']);if('suggestion'===_0x10c9bc){_0x1db948['announce'](this['_getMarkerAnnouncementText'](_0x3fb5d1,'ENTER',_0x7fab25(_0x2b1c11)));break;}}});}['_processAttributeChanges'](_0x25379c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x8c3a10=this['editor'],_0x5c92e3=_0x8c3a10['model']['document']['differ']['getChanges']();if(0x0==_0x5c92e3['length'])return!0x1;const _0x3ba019=[],_0x11ab8b=_0x5c92e3['filter'](_0x1a346e=>'attribute'==_0x1a346e['type']),_0x3bc5a6=_0x5c92e3['filter'](_0x247cd3=>'insert'==_0x247cd3['type']&&'$text'!=_0x247cd3['name']),_0x45be4d=_0x5c92e3['filter'](_0x58891c=>'remove'==_0x58891c['type']&&'$text'!=_0x58891c['name']);for(const _0x18c87a of _0x11ab8b)_0x3ba019['push']({'key':_0x18c87a['attributeKey'],'newValue':_0x18c87a['attributeNewValue'],'oldValue':_0x18c87a['attributeOldValue'],'range':Pt(_0x18c87a['range'],_0x8c3a10['model'])});for(const _0x3f166a of _0x3bc5a6){const _0x16629d=_0x45be4d['find'](_0x2ad552=>_0x2ad552['position']['isEqual'](_0x3f166a['position']));_0x16629d&&_0x3ba019['push']({'key':m,'newValue':_0x3f166a['name'],'oldValue':_0x16629d['name'],'range':_0x8c3a10['model']['createRangeOn'](_0x3f166a['position']['nodeAfter'])});}return 0x0!=_0x3ba019['length']&&this['_reduceExistingSuggestions'](_0x25379c,_0x3ba019);}['_processAttributeSuggestions'](_0x421158){let _0x51866a=!0x1;const _0x962a42=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e67e3=>_0x2e67e3['data']['newRange']&&_0x2e67e3['name']['startsWith']('suggestion:attribute:'));for(const _0x383f13 of _0x962a42){const {subType:_0x1c0620,id:_0x571364}=this['_splitMarkerName'](_0x383f13['name']),_0x4aa193=_0x1c0620['split']('|')[0x0];for(const _0x43fba1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x43fba1['id']!=_0x571364&&'attribute'==_0x43fba1['type']&&_0x43fba1['data']&&_0x43fba1['data']['key']==_0x4aa193&&_0x43fba1['getFirstRange']()['isIntersecting'](_0x383f13['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x43fba1,_0x383f13['data']['newRange'],_0x421158),_0x51866a=!0x0);}return _0x51866a;}['_recordAttributeChanges'](_0x5940bb){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5940bb();}['_isRegisteredAttribute'](_0x20587e){const _0x18d4cf=this['_isBlockAttribute'](_0x20587e),_0x3d8ce3=this['_inlineAttributeKeys']['has'](_0x20587e);return _0x18d4cf||_0x3d8ce3;}['_reduceExistingSuggestions'](_0x41247a,_0x905ea){if(0x0==_0x905ea['length'])return!0x1;let _0x416fda=!0x1;for(const _0x33a3e0 of _0x905ea){const _0x5b1624=this['_findSuggestions'](_0x33a3e0['range'],'attribute')['filter'](_0x3551ed=>!_0x3551ed['meta']['isNextTo'])['map'](_0x52848a=>_0x52848a['suggestion']),_0x3e8b8e=_0x4f74f6({'newValue':_0x33a3e0['newValue']});_0x5b1624['filter'](_0x45dd4f=>{const [_0x226a3e,_0x5b3b3b]=_0x45dd4f['subType']['split']('|');return _0x226a3e==_0x33a3e0['key']&&_0x5b3b3b!=_0x3e8b8e;})['forEach'](_0x333bf6=>{this['_reduceSuggestionAttributeRange'](_0x333bf6,_0x33a3e0['range'],_0x41247a),_0x416fda=!0x0;});}return _0x416fda;}['_reduceSuggestionAttributeRange'](_0x9edd6f,_0x122dce,_0x40cc44){const _0x50f852=_0x9edd6f['getFirstRange']()['getDifference'](_0x122dce);0x0!==_0x50f852['length']?0x1!==_0x50f852['length']?this['_breakSuggestionMarker'](_0x9edd6f,_0x122dce['start'],_0x122dce['end']):this['_setSuggestionRange'](_0x9edd6f,_0x50f852[0x0]):_0x40cc44['removeMarker'](_0x9edd6f['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2eb5ee){this['_editor']=_0x2eb5ee,this['_model']=_0x2eb5ee['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57d91b,_0x5852f3,_0x88a757,_0x371d7f,_0x4eb79f,_0x4d0de5){return new u(this['_model'],{'type':_0x57d91b,'subType':_0x5852f3,'id':_0x88a757,'author':_0x371d7f,'creator':_0x371d7f,'attributes':_0x4eb79f,'onAttributesChange':_0x4d0de5,'onAccept':(..._0x2d06db)=>this['getSuggestionCallback'](_0x57d91b,_0x5852f3,'accept')(..._0x2d06db),'onDiscard':(..._0x1669bc)=>this['getSuggestionCallback'](_0x57d91b,_0x5852f3,'discard')(..._0x1669bc)});}['registerCustomCallback'](_0xa41917,_0x5f0e08,_0x52f9ab,_0x956df7){const _0x1e371b=_0xa41917+':'+_0x5f0e08+':'+_0x52f9ab;this['_customCallbacks']['set'](_0x1e371b,_0x956df7);}['getSuggestionCallback'](_0x5d61c2,_0x3f0f7b,_0x496fb4){const _0x47ec0f=_0x5d61c2+':'+_0x3f0f7b+':'+_0x496fb4;return this['_customCallbacks']['get'](_0x47ec0f)||this['_defaultCallbacks']['get'](_0x5d61c2+':'+_0x496fb4);}['_registerDefaultCallbacks'](){const _0x1b709d=()=>!0x1,_0x4a8606=_0x32e717=>{_0x32e717['sort']((_0x33d66e,_0x555710)=>_0x33d66e['start']['isBefore'](_0x555710['start'])?0x1:-0x1),this['_model']['change'](_0x248469=>{for(const _0x1ba871 of _0x32e717){let _0x148b9c;_0x148b9c=_0x1ba871['end']['isAtEnd']&&_0x1ba871['end']['parent']==_0x1ba871['start']['nodeAfter']?_0x248469['createSelection'](_0x1ba871['start']['nodeAfter'],'on'):_0x248469['createSelection'](_0x1ba871),this['_model']['deleteContent'](_0x148b9c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1bbe3a=(_0x25da6e,_0x2e105a)=>{_0x2e105a&&this['_model']['change'](_0x365660=>{const {commandName:_0x5ef1d7,commandParams:_0x2b7ae1=[]}=_0x2e105a,_0x464f04=_0x25da6e['map'](_0x33805a=>(Vt(_0x33805a)&&(_0x33805a=this['_model']['createRange'](_0x33805a['end'])),_0x33805a))['filter'](_0x3c62ba=>'$graveyard'!==_0x3c62ba['root']['rootName']);if(_0x464f04['length']<0x1)return;const _0x2df8f7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e6a26=>_0x348f0d['fromRange'](_0x1e6a26));_0x365660['setSelection'](_0x464f04);for(const _0x7d236 of this['_editor']['commands']['commands']())_0x7d236['refresh']();_0x2b7ae1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ef1d7,..._0x2b7ae1);const _0x1d8693=_0x2df8f7['filter'](_0xa2474=>'$graveyard'!=_0xa2474['root']['rootName']);_0x1d8693['length']>0x0&&_0x365660['setSelection'](_0x1d8693);for(const _0x189c46 of _0x2df8f7)_0x189c46['detach']();});},_0x5c59ef=(_0x5124b2,_0x229e7b)=>0x1==_0x5124b2['length']&&0x1==_0x229e7b['length']&&_0x5124b2[0x0]['end']['isEqual'](_0x229e7b[0x0]['start']),_0x4e7257=(_0x457063,_0x16ad23,_0x3ac4c3,_0x1c0917)=>Ht(_0x457063,_0x16ad23,_0x3ac4c3,_0x1c0917,this['_model'])?[_0x457063,_0x16ad23]:Ht(_0x16ad23,_0x457063,_0x1c0917,_0x3ac4c3,this['_model'])?[_0x16ad23,_0x457063]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1b709d),this['_defaultCallbacks']['set']('insertion:discard',_0x4a8606),this['_defaultCallbacks']['set']('insertion:join',_0x5c59ef),this['_defaultCallbacks']['set']('insertion:chain',_0x4e7257),this['_defaultCallbacks']['set']('deletion:accept',_0x4a8606),this['_defaultCallbacks']['set']('deletion:discard',_0x1b709d),this['_defaultCallbacks']['set']('deletion:join',_0x5c59ef),this['_defaultCallbacks']['set']('deletion:chain',_0x4e7257),this['_defaultCallbacks']['set']('formatInline:accept',_0x1bbe3a),this['_defaultCallbacks']['set']('formatInline:discard',_0x1b709d),this['_defaultCallbacks']['set']('formatInline:join',_0x5c59ef),this['_defaultCallbacks']['set']('formatInline:chain',_0x1b709d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1bbe3a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1b709d),this['_defaultCallbacks']['set']('formatBlock:join',_0x5c59ef),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1b709d),this['_defaultCallbacks']['set']('attribute:accept',_0x1b709d),this['_defaultCallbacks']['set']('attribute:discard',(_0xc307cd,_0x35f9a3)=>{if(!_0x35f9a3)return;const _0x3b119e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x417ae4=>{if(_0x35f9a3['key']==m)for(const _0x2d7b38 of _0xc307cd){const _0x22bf81=_0x2d7b38['start']['nodeAfter'],_0x3e33f1=_0x35f9a3['oldValue'];_0x417ae4['rename'](_0x22bf81,_0x3e33f1);}else{if(_0x3b119e['_isBlockAttribute'](_0x35f9a3['key'])){for(const _0xcecb4f of _0xc307cd)void 0x0!==_0x35f9a3['oldValue']?_0x417ae4['setAttribute'](_0x35f9a3['key'],_0x35f9a3['oldValue'],_0xcecb4f['start']['nodeAfter']):_0x417ae4['removeAttribute'](_0x35f9a3['key'],_0xcecb4f['start']['nodeAfter']);}else{for(const _0x17439a of _0xc307cd)_0x35f9a3['oldValue']?_0x417ae4['setAttribute'](_0x35f9a3['key'],_0x35f9a3['oldValue'],_0x17439a):_0x417ae4['removeAttribute'](_0x35f9a3['key'],_0x17439a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5c59ef);}}function Ot(_0xa49507,_0x1953f0,_0x45cb8f){for(const _0x5a0464 of _0x1953f0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a0464['root']==_0x5a0464)return!0x1;if(!_0x45cb8f['containsItem'](_0x5a0464))return!0x1;if(_0xa49507['isObject'](_0x5a0464)||_0xa49507['isLimit'](_0x5a0464))return!0x0;}return!0x1;}function Vt(_0x21a52a){return _0x21a52a['end']['parent']==_0x21a52a['start']['nodeAfter']&&_0x21a52a['end']['isAtStart'];}function Ut(_0x2bd4c0,_0x68713f,_0x29dcc0,_0x384000){const _0x59ea98=_0x546a20=>!_0x546a20['item']['is']('$textProxy')&&!_0x384000['isObject'](_0x546a20['item']),_0x4a9b47=_0x2bd4c0['start']['getLastMatchingPosition'](_0x59ea98),_0x4c2233=_0x2bd4c0['end']['getLastMatchingPosition'](_0x59ea98,{'direction':'backward'});return(!_0x2bd4c0['start']['isEqual'](_0x4a9b47)||!_0x2bd4c0['end']['isEqual'](_0x4c2233))&&(_0x4a9b47['isBefore'](_0x4c2233)?_0x29dcc0['updateMarker'](_0x68713f,{'range':_0x29dcc0['createRange'](_0x4a9b47,_0x4c2233)}):_0x29dcc0['removeMarker'](_0x68713f),!0x0);}function Gt(_0x164047){return _0x4f74f6(_0x164047);}function Ft(_0x116552){const _0x1e521f=_0x116552['start']['nodeAfter'];return _0x1e521f&&_0x1e521f['is']('element');}function Pt(_0xef29a9,_0xf4ba58){return null==_0xef29a9['end']['nodeBefore']&&_0xef29a9['end']['parent']==_0xef29a9['start']['nodeAfter']?Lt(_0xef29a9['start']['nodeAfter'],_0xf4ba58):_0xef29a9;}function Lt(_0x1b0651,_0x50b831){const _0xb55441=_0x50b831['schema']['isObject'](_0x1b0651)||_0x50b831['schema']['isSelectable'](_0x1b0651);return _0x50b831['createRange'](_0x50b831['createPositionAt'](_0x1b0651,'before'),_0xb55441?_0x50b831['createPositionAfter'](_0x1b0651):_0x50b831['createPositionAt'](_0x1b0651,'end'));}function Ht(_0x35e2ef,_0x58244b,_0x17d590,_0x22c6f2,_0x3318e5){if(_0x35e2ef['next'])return!0x1;if(!Jt(_0x35e2ef,_0x58244b))return!0x1;if(_0x17d590['end']['isEqual'](_0x22c6f2['start']))return!0x0;if(_0x35e2ef['type']!=_0x58244b['type'])return!0x1;if(!_0x17d590['end']['isTouching'](_0x22c6f2['start']))return!0x1;const _0x402436=_0x3318e5['createRange'](_0x17d590['end'],_0x22c6f2['start'])['getWalker']();for(const _0x1301fc of _0x402436)if(['elementStart','elementEnd']['includes'](_0x1301fc['type'])&&_0x3318e5['schema']['isLimit'](_0x1301fc['item']))return!0x1;return!0x0;}function Jt(_0x425f5b,_0x5028ae){if(!_0x425f5b['_isDataLoaded']||!_0x5028ae['_isDataLoaded'])return!0x1;const _0xa27cdc=new Set(Object['keys'](_0x425f5b['attributes'])),_0x5276bb=new Set(Object['keys'](_0x5028ae['attributes']));if(_0xa27cdc['delete']('groupId'),_0x5276bb['delete']('groupId'),0x0==_0xa27cdc['size']&&0x0==_0x5276bb['size'])return!0x0;if(_0xa27cdc['size']!=_0x5276bb['size'])return!0x1;const _0x1262fd={..._0x425f5b['attributes']},_0x532cf5={..._0x5028ae['attributes']};return delete _0x1262fd['groupId'],delete _0x532cf5['groupId'],JSON['stringify'](_0x1262fd)==JSON['stringify'](_0x532cf5);}function qt(_0x18dfb6,_0x5cabb9){const _0x1d6557=zt(_0x18dfb6['attributes']),_0x36acd3=zt(_0x5cabb9);if(!_0x18dfb6['_isDataLoaded'])return!0x1;for(const _0x1bf2c1 of Object['keys'](_0x36acd3))if(!_0x5cc37c(_0x1d6557[_0x1bf2c1],_0x36acd3[_0x1bf2c1]))return!0x1;return!0x0;}function zt(_0x446057){const _0x25a7b5=Object['assign']({},_0x446057);return delete _0x25a7b5['skipNestingCheck'],delete _0x25a7b5['tablePasteChainId'],_0x25a7b5;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x7e76ca(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x23eab3,_0x332741,_0x2580aa,_0x4c02fe){super(),this['model']=_0x332741,this['view']=_0x2580aa,this['commentThreadController']=_0x4c02fe,this['_editor']=_0x23eab3,this['_acceptCommand']=_0x23eab3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x23eab3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3b6cdd,_0x252d3d)=>_0x3b6cdd||_0x252d3d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x211f54=>_0x211f54&&this['_editor']['model']['canEditAt'](_0x332741['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d3a80=>_0x5d3a80&&this['_editor']['model']['canEditAt'](_0x332741['getRanges']())),this['_pendingAction']=null,_0x2580aa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2580aa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2580aa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2580aa,'change:isDirty',()=>{_0x2580aa['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 _0x1a3f5f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1a3f5f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4703b0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x13c548,_0x100de0,_0x43668b,_0x1ed95e){super(_0x13c548),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26c030(_0x13c548,o(_0x13c548,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x100de0['authoredAt']),this['bind']('authoredAt')['to'](_0x100de0),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',_0x100de0,'authoredAt',this,'descriptionParts',(_0x4d7175,_0x2d8639,_0x3eaea5)=>{const _0x3d3617=_0x3eaea5['map'](_0x57a59d=>ls(_0x57a59d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d7175-0x1,_0x100de0['author']['name'],_0x2d8639?_0x1ed95e['formatDateTime'](_0x2d8639):'',new DOMParser()['parseFromString'](_0x3d3617,'text/html')['body']['textContent']]);}),this['focusables']=new _0x477a7c(),this['focusTracker']=new _0x28b717(),this['keystrokes']=new _0x27ffd5(),this['focusCycler']=new _0x1f58c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x535345=>_0x535345['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x100de0,this['_localUser']=_0x43668b,this['_config']=_0x1ed95e,_0x1ed95e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xa16379(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x156599}=this['_config'];this['commentsListView']=new _0x156599(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',_0x2ac7ca=>_0x2ac7ca+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x6131f4,_0x5006d1)=>_0x6131f4||!!_0x5006d1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x50aae5}=this['_config'],_0x57d5fc=new _0x50aae5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x19f628=_0x57d5fc['commentInputView'];return _0x57d5fc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x19f628,'value',(_0x58ed67,_0x1a7fe7,_0x4343da)=>!!_0x4343da||_0x58ed67&&!_0x1a7fe7),_0x19f628['on']('submit',(_0x388fcd,_0x251058)=>{this['fire']('addComment',_0x251058),_0x19f628['editor']['setData']('');}),_0x19f628['on']('cancel',()=>this['focus']()),_0x19f628['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x57d5fc;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1c9612,_0x4ec903,_0x5c802f,_0xab51e4){super(_0x1c9612,_0x4ec903,_0x5c802f,_0xab51e4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x516566=>_0x516566&&_0x516566[0x0]?_0x516566[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x53cb6b,_0x3e1e9f)=>{let _0x2ee6f7='';for(const _0x23b503 of _0x53cb6b)_0x2ee6f7+='<p>'+ls(_0x23b503['content'],_0x23b503['color'])+'</p>';return _0x3e1e9f?_0x2ee6f7:_0x552741(_0x2ee6f7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xab51e4['SuggestionView'](_0x1c9612,_0x4ec903,{'formatDateTime':_0xab51e4['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 _0x575bc5=this['bindTemplate'],_0x246379=[this['suggestionView']];return this['commentsListView']&&_0x246379['push'](this['commentsListView']),this['commentThreadInputView']&&_0x246379['push'](this['commentThreadInputView']),_0x246379['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x575bc5['if']('isActive','ck-suggestion-wrapper--active'),_0x575bc5['to']('type',_0x10dbd8=>'ck-suggestion-'+_0x10dbd8),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':_0x575bc5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x246379};}['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 _0x4703b0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x433c8c,_0x4b6897,_0x1d81ed){super(_0x433c8c),this['_model']=_0x4b6897,this['_config']=_0x1d81ed,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b6897),this['acceptButton']=this['_createButton'](o(_0x433c8c,'Accept\x20suggestion'),_0x1692e5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x433c8c,'Discard\x20suggestion'),_0x1692e5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xcc94eb(_0x433c8c,_0x4b6897['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x477a7c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x28b717(),this['keystrokes']=new _0x27ffd5(),this['focusCycler']=new _0x1f58c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xf35bd3=>_0xf35bd3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x55f609=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x55f609['innerHTML']=this['description'],this['on']('change:description',(_0xe6614a,_0x4b4fdb,_0x3cf972)=>{_0x55f609['innerHTML']=_0x3cf972;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x289d17=this['bindTemplate'],_0x4a2642=[{'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':_0x289d17['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x289d17['to']('authoredAt',_0x433096=>this['_config']['formatDateTime'](_0x433096))}]}]},{'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']&&_0x4a2642['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':_0x4a2642}]};}['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'](_0x228871,_0x21a284,_0x4ff763,_0x4cadf5,_0x2ea354){const _0x787594=new _0x33e2fd(this['locale']);return _0x787594['set']({'label':_0x228871,'icon':_0x21a284,'tooltip':!0x0,'tooltipPosition':_0x2ea354}),_0x787594['extendTemplate']({'attributes':{'class':_0x4ff763}}),_0x787594['on']('execute',()=>{this['fire'](_0x4cadf5,this['_model']['id']);}),_0x787594;}['_setupKeyboardNavigation'](){const _0x22822f=this['element'];this['keystrokes']['listenTo'](_0x22822f);for(const _0x1282ff of this['focusables'])this['focusTracker']['add'](_0x1282ff['element']),this['keystrokes']['listenTo'](_0x1282ff['element']);this['keystrokes']['set']('enter',(_0x23a166,_0x7de168)=>{_0x22822f===_0x23a166['target']&&(this['focusCycler']['focusFirst'](),_0x7de168());}),this['keystrokes']['set']('esc',(_0x573558,_0x241907)=>{_0x22822f!==_0x573558['target']&&(this['focus'](),_0x241907());});}}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 _0x201c95{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3155e3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xc6fb12){super(_0xc6fb12),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x511596=this['editor']['config'];_0x511596['define']('trackChanges.SuggestionThreadView',re),_0x511596['define']('trackChanges.SuggestionView',ce),_0x511596['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x511596['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f4d27,_0x4d8399){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4e0bf0,_0x58263b]of this['_handleControllerBuffer']){const _0x23f56e=this['_suggestionToController']['has'](_0x4e0bf0);_0x23f56e||_0x58263b?_0x23f56e&&_0x58263b&&this['_destroyController'](_0x4e0bf0):this['_initializeController'](_0x4e0bf0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f4d27,_0x4d8399);}['init'](){const _0x38ec55=this['editor'],_0x5b9674=_0x38ec55['plugins']['get']('TrackChangesEditing'),_0x4f6109=_0x38ec55['plugins']['get']('Annotations'),_0x2f856a=_0x38ec55['plugins']['get']('EditorAnnotations'),_0x1da6f8=_0x38ec55['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f856a['addSourceCollector'](()=>{const _0x4a54d9=[];for(const [_0x300635,_0x176ad7]of Array['from'](this['_suggestionToController'])){const _0x545c12=_0x300635['getAllAdjacentSuggestions'](),_0x11db97=[];for(const _0x52e36a of _0x545c12){if(!_0x52e36a['isInContent'])continue;if(_0x52e36a['isMultiRange']){_0x11db97['push'](..._0x52e36a['getRanges']());continue;}const _0x40eb54=_0x52e36a['getFirstRange']();if(_0x11db97['length']>0x0){const _0x4344dc=_0x11db97[0x0]['getJoined'](_0x40eb54);if(_0x4344dc){_0x11db97[0x0]=_0x4344dc;continue;}}_0x11db97['push'](_0x40eb54);}_0x4a54d9['push']([_0x176ad7['view'],_0x11db97]);}return _0x4a54d9;}),this['listenTo'](_0x5b9674,'suggestionLoaded',(_0x4ae7fc,_0x153057)=>{this['listenTo'](_0x153057,'change:previous',(_0x3584b0,_0x5371b6,_0x166014,_0x320788)=>{_0x153057['isInContent']&&(null==_0x166014?(this['_updateController'](_0x320788['head']),this['_handleSuggestionControllerDelayed'](_0x153057,!0x1)):(this['_updateController'](_0x166014['head']),null==_0x320788&&this['_handleSuggestionControllerDelayed'](_0x153057,!0x0)));}),null!==_0x153057['previous']?this['_updateController'](_0x153057['head']):this['_handleSuggestionControllerDelayed'](_0x153057,!0x1);}),this['listenTo'](_0x5b9674,'suggestionUnloaded',(_0x59f484,_0x2a0513,_0x13f93b)=>{this['stopListening'](_0x2a0513,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a0513),this['_suggestionToController']['has'](_0x2a0513)&&this['_destroyController'](_0x2a0513),_0x13f93b&&this['_updateController'](_0x13f93b['head']);}),this['listenTo'](_0x5b9674,'suggestionChanged',(_0x381ed0,_0x14f065)=>{this['_updateController'](_0x14f065);}),this['listenTo'](_0x4f6109,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1da6f8,'addComment',(_0x37c7a3,{threadId:_0x40fbe4,isFromAdapter:_0x4cfdc2})=>{if(_0x4cfdc2||!_0x5b9674['hasSuggestion'](_0x40fbe4))return;const _0xc7e01c=_0x5b9674['getSuggestion'](_0x40fbe4);this['_suggestionToController']['get'](_0xc7e01c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x38f84a=this['editor']['plugins']['get']('Annotations'),_0x255176=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52605f=Array['from'](_0x38f84a['activeAnnotations'],_0x2500fe=>_0x2500fe['innerView'])['filter'](_0x109815=>this['_viewToController']['has'](_0x109815)),_0x2118c4=[];for(const _0x3f34e2 of _0x52605f){const _0x162614=this['_viewToController']['get'](_0x3f34e2)['model']['getAllAdjacentSuggestions']();_0x2118c4['push'](..._0x162614['reduce']((_0x9fad85,_0x3f399d)=>[..._0x9fad85,..._0x3f399d['getMarkerNames']()],[]));}_0x255176['activeMarkers']=_0x2118c4;}['_addUIComponentsToFactory'](){const _0xc8a079=this['editor'],_0x53f186=_0xc8a079['locale'],_0x116078=o(_0x53f186,'Track\x20changes'),_0x3a9730=new Wt([{'type':'switchbutton','model':new _0x359d84({'withText':!0x0,'isToggleable':!0x0,'label':_0x116078,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x359d84({'withText':!0x0,'label':o(_0x53f186,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x359d84({'withText':!0x0,'label':o(_0x53f186,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x359d84({'withText':!0x0,'label':o(_0x53f186,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x359d84({'withText':!0x0,'label':o(_0x53f186,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x46a73f of _0x3a9730)if(me(_0x46a73f)){const _0x14e4aa=_0xc8a079['commands']['get'](_0x46a73f['model']['commandName']);_0x46a73f['model']['bind']('isOn','isEnabled')['to'](_0x14e4aa,'value','isEnabled');}_0xc8a079['ui']['componentFactory']['add']('trackChanges',_0x2d5f2f=>this['_createToolbarButton'](_0x2d5f2f,_0x3a9730,_0x116078)),_0xc8a079['ui']['componentFactory']['add']('menuBar:trackChanges',_0x318299=>this['_createMenuBarMenu'](_0x318299,_0x3a9730,_0x116078));}['_createToolbarButton'](_0x5973aa,_0x31b6ea,_0x25e19c){const _0x4fce68=Qt(_0x5973aa,_0x2c803d),_0x18c053=this['editor']['commands']['get']('trackChanges');_0x4fce68['buttonView']['set']({'tooltip':_0x25e19c,'label':_0x25e19c,'icon':he}),_0x4fce68['buttonView']['bind']('isOn')['to'](_0x18c053,'value'),_0x4fce68['buttonView']['on']('execute',()=>{_0x18c053['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x4fce68,_0x31b6ea,{'role':'menu'});const _0x34973e=[];for(const _0x5eab91 of _0x31b6ea)me(_0x5eab91)&&_0x34973e['push'](this['editor']['commands']['get'](_0x5eab91['model']['commandName']));const _0x12ab03=_0x4fce68['buttonView'];return _0x12ab03['actionView']['unbind']('isEnabled'),_0x12ab03['arrowView']['unbind']('isEnabled'),_0x12ab03['actionView']['bind']('isEnabled')['to'](_0x18c053,'isEnabled'),_0x12ab03['arrowView']['bind']('isEnabled')['toMany'](_0x34973e,'isEnabled',(..._0x33fdf3)=>_0x33fdf3['some'](_0x21faa4=>_0x21faa4)),_0x4fce68['on']('execute',_0x40d05d=>{this['editor']['execute'](_0x40d05d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fce68;}['_createMenuBarMenu'](_0x3252e1,_0x4c62e4,_0x426643){const _0xe07c31=new Yt(_0x3252e1),_0x429a03=this['editor']['commands']['get']('trackChanges');_0xe07c31['buttonView']['set']({'label':_0x426643,'icon':he});const _0x5616a0=new Zt(_0x3252e1);for(const _0x1dab5d of _0x4c62e4){if('separator'==_0x1dab5d['type']){_0x5616a0['items']['add'](new Xt(_0x3252e1));continue;}const _0x394842=new te(_0x3252e1,_0xe07c31),_0xb81655=new _0x2e2948(_0x3252e1),_0x5c2741=_0x1dab5d['model'];_0xb81655['bind'](...Object['keys'](_0x5c2741))['to'](_0x5c2741),_0xb81655['delegate']('execute')['to'](_0xe07c31),_0xb81655['on']('execute',()=>{this['editor']['execute'](_0x5c2741['commandName']),this['editor']['editing']['view']['focus']();}),_0x394842['children']['add'](_0xb81655),_0x5616a0['items']['add'](_0x394842);}return _0xe07c31['bind']('isEnabled')['to'](_0x429a03,'isEnabled'),_0xe07c31['panelView']['children']['add'](_0x5616a0),_0xe07c31;}['_initializeController'](_0x392dab){const _0x32ab7d=this['editor'],_0x43a1c9=_0x32ab7d['config'],_0x3286ff=_0x32ab7d['plugins']['get']('Annotations'),_0x400e84=_0x32ab7d['plugins']['get']('CommentsRepository'),_0x32aa91=_0x32ab7d['plugins']['get']('EditorAnnotations'),_0x5b3550=_0x32ab7d['plugins']['get'](_0x3155e3)['me'],_0x3cac61=_0x43a1c9['get']('trackChanges')['SuggestionThreadView'],_0x34d438=_0x43a1c9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x12f2f9,CommentThreadInputView:_0x4669db}=_0x32ab7d['plugins']['get']('CommentsUI');let _0x3fd595,_0x498c8c,_0x747bb8;this['_annotationViews']['has'](_0x392dab['id'])?(_0x498c8c=this['_annotationViews']['get'](_0x392dab['id']),_0x3fd595=_0x498c8c['mainView']):(_0x3fd595=new _0x3cac61(_0x32ab7d['locale'],_0x392dab,_0x5b3550,{'disableComments':this['_disableComments'],'editorConfig':_0x43a1c9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43a1c9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43a1c9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43a1c9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x56d630(_0x43a1c9['get']('locale')),'CommentView':_0x43a1c9['get']('comments')['CommentView'],'CommentsListView':_0x12f2f9,'CommentThreadInputView':_0x4669db,'SuggestionView':_0x34d438}),_0x3fd595['suggestionView']['acceptButton']['on']('execute',()=>{_0x32ab7d['editing']['view']['focus']();}),_0x3fd595['suggestionView']['discardButton']['on']('execute',()=>{_0x32ab7d['editing']['view']['focus']();}),_0x498c8c=_0x3286ff['createAnnotationView'](this['editor']['locale'],_0x3fd595),_0x498c8c['bind']('isDirty')['to'](_0x3fd595,'isDirty'),_0x498c8c['bind']('length')['to'](_0x3fd595),_0x498c8c['bind']('type')['to'](_0x3fd595,'type',_0x3eacf5=>'suggestion-'+_0x3eacf5),_0x3fd595['on']('escape',()=>{_0x747bb8['fire']('escape');}),this['_annotationViews']['set'](_0x392dab['id'],_0x498c8c));const _0xff7e84=_0x400e84['createCommentThreadController'](_0x392dab['commentThread'],_0x3fd595),_0x1ab180=new ae(_0x32ab7d,_0x392dab,_0x3fd595,_0xff7e84),_0x44bc7f=_0x392dab['getAllAdjacentSuggestions']()['filter'](_0xb7e176=>_0xb7e176['isInContent']);_0x3fd595['descriptionParts']=_0x32ab7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44bc7f),this['_suggestionToController']['set'](_0x392dab,_0x1ab180),this['_viewToController']['set'](_0x3fd595,_0x1ab180),_0x747bb8=_0x3286ff['createAnnotation']({'view':_0x498c8c,'target':()=>{const _0x53d2dd=[],_0x2daa8e=_0x392dab['getAllAdjacentSuggestions']()['filter'](_0x2ce84a=>_0x2ce84a['isInContent']);for(const _0x118ba0 of _0x2daa8e)_0x53d2dd['push'](..._0x118ba0['getMarkers']());return _0x2098d8(_0x32ab7d['editing'],_0x53d2dd);},'type':()=>'suggestion-'+_0x1ab180['view']['type']}),_0x400e84['_bindAnnotationToEditors'](_0x3fd595,_0x747bb8),_0x3286ff['add'](_0x747bb8),_0x32aa91['registerAnnotation'](_0x747bb8);}['_destroyController'](_0x21cd5d){const _0x552e0e=this['editor']['plugins']['get']('CommentsRepository'),_0x5bca92=this['editor']['plugins']['get']('Annotations'),_0x448917=this['_suggestionToController']['get'](_0x21cd5d),_0x1cc503=_0x448917['view'],_0x3fc684=_0x5bca92['getByInnerView'](_0x1cc503);_0x552e0e['_unbindEditors'](_0x1cc503),_0x3fc684&&_0x5bca92['remove'](_0x3fc684),this['_suggestionToController']['delete'](_0x21cd5d),this['_viewToController']['delete'](_0x1cc503),_0x448917['destroy']();}['_updateController'](_0x3247a6){if(!_0x3247a6['isInContent']||!this['_suggestionToController']['has'](_0x3247a6))return;const _0x8da226=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35c2ca=this['_suggestionToController']['get'](_0x3247a6),_0x523cd4=_0x3247a6['getAllAdjacentSuggestions']();_0x35c2ca['view']['descriptionParts']=_0x8da226['descriptionFactory']['getDescriptions'](_0x523cd4);}['destroy'](){for(const _0x381bfe of this['_suggestionToController']['keys']())this['_destroyController'](_0x381bfe);for(const _0x4523c3 of this['_annotationViews']['values']())_0x4523c3['mainView']['destroy']();super['destroy']();}}function me(_0x2d3502){return'model'in _0x2d3502;}class k extends _0x201c95{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x16ddce){this['editor']['plugins']['get'](p)['adapter']=_0x16ddce;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3fdf45){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3fdf45);}['getSuggestions']({skipNotAttached:_0x422114=!0x1,toJSON:_0x383b20=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x422114,'toJSON':_0x383b20});}['getSuggestion'](_0x2fc05f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2fc05f);}}const T=['Pagination'];class P extends _0x201c95{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5b6bc6=this['editor'];if(_0x5b6bc6['config']['define']('trackChangesData.editorCreator',_0x3b287b=>{const _0x229d5b=_0x5b6bc6['model']['document']['getRootNames']()['reduce']((_0x23a502,_0x563470)=>(_0x23a502[_0x563470]='',_0x23a502),{});return _0x5b6bc6['constructor']['create'](_0x229d5b,_0x3b287b);}),'function'!=typeof _0x5b6bc6['config']['get']('trackChangesData')['editorCreator'])throw new _0x502bb5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x833d0d){return N(this['editor'],!0x0,_0x833d0d);}['getDataWithDiscardedSuggestions'](_0x1106b1){return N(this['editor'],!0x1,_0x1106b1);}}class D extends _0x201c95{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x13454b){super(_0x13454b),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(_0x5c07b9){return void 0x0!==_0x5c07b9['getRootsAttributes'];}async function N(_0x41ae0a,_0x31a56a,_0x3cd16f){const _0x4f970e=_0x206e3b(_0x41ae0a,T);_0x4f970e['plugins']['push'](p,D),_0x4f970e['rootsAttributes']=v(_0x41ae0a)?_0x41ae0a['getRootsAttributes']():void 0x0;const _0x512477=document['createDocumentFragment'](),_0x32a8da=_0x41ae0a['config']['get']('trackChangesData')['editorCreator'],_0x1e355e=await _0x32a8da(_0x4f970e,()=>function(_0xf3d9f0){const _0x1d3daf=document['createElement']('div');return _0xf3d9f0['appendChild'](_0x1d3daf),_0x1d3daf;}(_0x512477));!function(_0xbb15b2,_0x45bb18){const _0x214672=_0xbb15b2['model']['document']['getRootNames']()['reduce']((_0x7179fb,_0x37953b)=>(_0x7179fb[_0x37953b]=_0xbb15b2['data']['get']({'rootName':_0x37953b}),_0x7179fb),{}),_0x4da096=_0xbb15b2['plugins']['get']('Users')['users']['map'](_0x49d396=>({'id':_0x49d396['id'],'name':_0x49d396['name']})),_0x53d077=_0xbb15b2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ac1a6=_0xbb15b2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40c01f=_0x45bb18['plugins']['get']('Users'),_0x4bc9fe=_0x45bb18['plugins']['get']('TrackChangesEditing'),_0x29d202=_0x45bb18['plugins']['get']('CommentsRepository');for(const _0x3c5fea of _0x29d202['getCommentThreads']())_0x3c5fea['remove']();for(const _0x407b67 of _0x4da096)_0x40c01f['getUser'](_0x407b67['id'])||_0x40c01f['addUser'](_0x407b67);_0x40c01f['me']||_0x40c01f['useAnonymousUser']();for(const _0x10643f of _0x3ac1a6)_0x29d202['addCommentThread'](_0x10643f);for(const _0x58760f of _0x53d077)_0x4bc9fe['addSuggestionData'](_0x58760f);_0x45bb18['data']['set'](_0x214672);}(_0x41ae0a,_0x1e355e),_0x1e355e['execute'](_0x31a56a?'acceptAllSuggestions':'discardAllSuggestions');const _0x452426=v(_0x1e355e)?_0x1e355e['getFullData'](_0x3cd16f):_0x1e355e['data']['get'](_0x3cd16f);return await _0x1e355e['destroy'](),_0x452426;}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 _0x54913d,PendingActions as _0x2f24e0,icons as _0xa3d166}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x106f22,ObservableMixin as _0x5bb45f,uid as _0x1f120b,insertToPriorityArray as _0x49998f,priorities as _0x2fc9ed,logWarning as _0x576323,getEnvKeystrokeText as _0x33ea12,FocusTracker as _0x1e03ba,KeystrokeHandler as _0x253ceb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xf798de,View as _0x3baccb,ViewCollection as _0x1f772b,FocusCycler as _0x25f74c,ViewModel as _0x526b25,createDropdown as Qt,SplitButtonView as _0x1461c8,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x628398}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2d9153,hashObject as _0x538bec,surroundingMarkersDetector as _0x32e864,FOCUS_ANNOTATION_KEYSTROKE as _0x168750,AriaDescriptionView as _0x3634c3,setupThreadKeyboardNavigation as _0x472c86,trimHtml as _0x49d177,UserView as _0x277de9,LateFocusButtonView as _0x39497f,getDateTimeFormatter as _0x33b7c4,getAllMarkersDomElementsSorted as _0x290c5b,sanitizeEditorConfig as _0x54e9aa}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x389ef3,LiveRange as _0x8342a4,LivePosition as _0x315eb0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x21bee5,toWidget as _0x3a14c2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x253e3c,set as _0x24e17c,isEqual as _0x5aef9d,unset as _0x14b635,omit as Tt}from'lodash-es';import{Delete as _0x5f8842,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x57336d,ShiftEnter as _0x56a456}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2fca1d,_0x442f94){super(_0x2fca1d),this['_enabledCommands']=_0x442f94,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 _0x562172 of this['editor']['commands']['commands']())_0x562172['affectsData']&&!this['_enabledCommands']['has'](_0x562172)&&_0x562172['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x168d72 of this['editor']['commands']['commands']())_0x168d72['affectsData']&&!this['_enabledCommands']['has'](_0x168d72)&&_0x168d72['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4915b3,_0x3edf33){super(_0x4915b3),this['_suggestions']=_0x3edf33,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20f11c){const _0x50d7a9=this['_suggestions']['get'](_0x20f11c);if(!_0x50d7a9)throw new _0x106f22('track-changes-accept-suggestion-not-found',this);const _0x2c4caa=_0x50d7a9['getRanges']();this['editor']['model']['canEditAt'](_0x2c4caa)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x50d7a9);}}class R extends ts{['_suggestions'];constructor(_0x1b5080,_0x165513){super(_0x1b5080),this['_suggestions']=_0x165513,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb667d1){const _0x7b586a=this['_suggestions']['get'](_0xb667d1);if(!_0x7b586a)throw new _0x106f22('track-changes-discard-suggestion-not-found',this);const _0x1cea98=_0x7b586a['getRanges']();this['editor']['model']['canEditAt'](_0x1cea98)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x7b586a);}}function ls(_0x591b88,_0x146535){let _0x33e9f5='';return _0x33e9f5+=_0x591b88['split']('*')['map']((_0x37dd9a,_0x1ba738)=>_0x1ba738%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x37dd9a)+'</span>':nn(_0x37dd9a))['join'](''),_0x146535&&(_0x33e9f5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x146535['value']+'\x22\x20title=\x22'+_0x146535['title']+'\x22></span>'),_0x33e9f5;}function nn(_0x51602b){const _0x15cfb5=document['createElement']('span');return _0x15cfb5['innerText']=_0x51602b,_0x15cfb5['innerHTML'];}function ss(_0x245e92){return _0x245e92['sort']((_0x5a0f0e,_0x2733b4)=>'deletion'==_0x5a0f0e['type']&&'deletion'!=_0x2733b4['type']?-0x1:'deletion'!=_0x5a0f0e['type']&&'deletion'==_0x2733b4['type']?0x1:0x0);}function to(_0x1ac8d9,_0xb6500c){let _0x1702c1,_0xf57c19=0x0;const _0x120f6c=[],_0x5f0931=_0xb6500c['schema'];for(;_0xf57c19<_0x1ac8d9['length'];){const _0x3a9a66=_0x1ac8d9[_0xf57c19],_0x1d5bbd=_0x1ac8d9[_0xf57c19+0x1];_0x1702c1||(_0x1702c1=_0xb6500c['createPositionBefore'](_0x3a9a66)),on(_0xb6500c,_0x3a9a66,_0x1d5bbd)||(_0x120f6c['push'](_0xb6500c['createRange'](_0x1702c1,_0x5f0931['isObject'](_0x3a9a66)?_0xb6500c['createPositionAfter'](_0x3a9a66):_0xb6500c['createPositionAt'](_0x3a9a66,'end'))),_0x1702c1=null),_0xf57c19++;}return _0x120f6c;}function on(_0x114f3c,_0x41e404,_0x41e67a){if(!_0x41e67a)return!0x1;const _0x1841b5=_0x114f3c['createPositionAfter'](_0x41e404),_0x1e3eb5=_0x114f3c['createPositionBefore'](_0x41e67a);return _0x1841b5['isTouching'](_0x1e3eb5);}function rs(_0x417565,_0x12247e,_0x4dba5a){for(;_0x4dba5a['length'];){const _0x10e031=_0x4dba5a['splice'](0x0,0x64);_0x417565['change'](()=>{for(const _0x2bb075 of _0x10e031)_0x2bb075['isInContent']&&_0x12247e['execute'](_0x2bb075['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x594f19,_0x25c06f,_0x35e65f){super(_0x594f19),this['_command']=_0x25c06f,this['_suggestions']=_0x35e65f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e15b1=Array['from'](this['_suggestions']['values']())['some'](_0x56ff11=>_0x56ff11['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1e15b1;}['execute'](){const _0x151d0f=ss(Array['from'](this['_suggestions']['values']()));for(const _0x184a02 of _0x151d0f){const _0x1f2256=_0x184a02['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f2256))return;}rs(this['editor']['model'],this['_command'],_0x151d0f);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11779d,_0x3790c5,_0x488d9d){super(_0x11779d),this['_command']=_0x3790c5,this['_suggestions']=_0x488d9d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xb12d17=this['editor']['model']['document']['selection'],_0x2e75d5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xc96b42,_0x307474){const _0x3f2893=Array['from'](_0xc96b42['getRanges']()),_0x3483a8=new Set();for(const _0x10fcd8 of _0x307474)if(_0x10fcd8['isInContent']){for(const _0x323702 of _0x3f2893)for(const _0x2eab07 of _0x10fcd8['getRanges']())(_0x323702['isIntersecting'](_0x2eab07)||_0xc96b42['isCollapsed']&&!_0x10fcd8['isMultiRange']&&_0x10fcd8['next']&&_0x2eab07['end']['isTouching'](_0x323702['start']))&&_0x3483a8['add'](_0x10fcd8);}return _0x3483a8;}(_0xb12d17,_0x2e75d5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x31cb56=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5194fa of _0x31cb56){const _0x425c90=_0x5194fa['getRanges']();if(!this['editor']['model']['canEditAt'](_0x425c90))return;}rs(this['editor']['model'],this['_command'],_0x31cb56);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x5bb45f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x28d007,_0x4f859c){super(),this['id']=_0x4f859c['id'],this['type']=_0x4f859c['type'],this['subType']=_0x4f859c['subType']||null,this['author']=_0x4f859c['author'],this['creator']=_0x4f859c['creator']||_0x4f859c['author'],this['isExternal']=Boolean(_0x4f859c['attributes']&&_0x4f859c['attributes']['@external']),this['data']=null,this['_model']=_0x28d007,this['_onAccept']=_0x4f859c['onAccept'],this['_onDiscard']=_0x4f859c['onDiscard'],this['_onAttributesChange']=_0x4f859c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f859c['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 _0x2e19e5=this;for(;_0x2e19e5['previous'];)_0x2e19e5=_0x2e19e5['previous'];return _0x2e19e5;}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'](_0x380aa3){this['_markerNames']['add'](_0x380aa3);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35ebb2=>this['_model']['markers']['get'](_0x35ebb2))['filter'](_0x58ecf4=>_0x58ecf4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3a2ae6=>{for(const _0x1ca1dc of this['getMarkers']())_0x3a2ae6['removeMarker'](_0x1ca1dc);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c7a26){this['_model']['change'](_0x46b7dd=>{_0x46b7dd['removeMarker'](_0x5c7a26);}),this['_markerNames']['delete'](_0x5c7a26);}['addRange'](_0x558fec){const _0x1eb535='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1eb535),this['_model']['change'](_0x430a73=>{_0x430a73['addMarker'](_0x1eb535,{'range':_0x558fec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x59adca){for(const _0x57e46c of this['getRanges']())if(_0x57e46c['isIntersecting'](_0x59adca))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x43e79c=>_0x43e79c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xea01c5,_0x3ef5dd)=>[..._0xea01c5,..._0x3ef5dd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ea4b8=this['getRanges']();if(0x1!=_0x1ea4b8['length'])return null;const _0x1d0d40=_0x1ea4b8[0x0],_0xf6e706=_0x1d0d40['start']['nodeAfter'],_0x16f08e=_0x1d0d40['end']['nodeBefore'];return _0xf6e706 instanceof _0x389ef3?_0xf6e706!=_0x16f08e?null:_0xf6e706: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 _0x58a735=[];let _0x49ed48=this['head'];for(;_0x49ed48;)_0x58a735['push'](_0x49ed48),_0x49ed48=_0x49ed48['next'];return _0x58a735;}['setAttribute'](_0x1ea684,_0xafe022){const _0x51597e=_0x253e3c(this['attributes']);_0x24e17c(_0x51597e,_0x1ea684,_0xafe022),_0x5aef9d(_0x51597e,this['attributes'])||(this['attributes']=_0x51597e,this['_onAttributesChange'](_0x51597e));}['removeAttribute'](_0x4dd949){const _0x3c4830=_0x253e3c(this['attributes']);_0x14b635(_0x3c4830,_0x4dd949),_0x5aef9d(_0x3c4830,this['attributes'])||(this['attributes']=_0x3c4830,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 _0x1f120b()['substr'](0x1,0x5);}}function o(_0x191da7,_0x3353b6,_0x270be0){const t=_0x191da7['t'];switch(_0x3353b6){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',_0x270be0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x270be0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x270be0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x270be0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x270be0);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',_0x270be0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x270be0);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',_0x270be0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x270be0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x270be0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x270be0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x270be0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x270be0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x270be0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x270be0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x270be0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x270be0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x270be0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x270be0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x270be0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x270be0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x270be0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x270be0);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'},_0x270be0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x270be0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x270be0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x270be0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x270be0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x270be0);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'},_0x270be0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x270be0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x270be0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x270be0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x270be0);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'},_0x270be0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x270be0);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'},_0x270be0);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'},_0x270be0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x270be0);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'},_0x270be0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x270be0);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'},_0x270be0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x270be0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x270be0);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'},_0x270be0);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'},_0x270be0);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'},_0x270be0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x270be0);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'},_0x270be0);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'},_0x270be0);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'},_0x270be0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3353b6;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x19e6cd,_0x2825bb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x19e6cd,this['_locale']=_0x2825bb;}['getDescriptions'](_0x27437d){const _0x5c418c=[],_0x214296=new Set(),_0x3dc114=new Set();for(let _0x5ba73d=0x0;_0x5ba73d<_0x27437d['length'];_0x5ba73d++){const _0x422c69=_0x27437d[_0x5ba73d];if(!_0x422c69['isInContent'])continue;const _0x38b01e=this['_handleCustomCallbackDescription'](_0x422c69);if(_0x38b01e){if(null!=_0x422c69['subType']){if(_0x214296['has'](_0x422c69['subType']))continue;_0x214296['add'](_0x422c69['subType']);}_0x5c418c['push'](_0x38b01e);}else{if('attribute'!=_0x422c69['type'])'insertion'!=_0x422c69['type']&&'deletion'!=_0x422c69['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5c418c,_0x422c69,_0x27437d[_0x5ba73d+0x1]);else{const _0xe318e8=_0x422c69['data']['key'];if(_0x3dc114['has'](_0xe318e8))continue;_0x3dc114['add'](_0x422c69['data']['key']),_0xe318e8==m?this['_handleRenameSuggestionDescription'](_0x5c418c,_0x422c69):this['_handleAttributeSuggestionDescription'](_0x5c418c,_0x422c69);}}}return this['_resolveDescriptionItems'](_0x5c418c);}['registerDescriptionCallback'](_0x1d100c){this['_customCallbacks']['push'](_0x1d100c);}['registerElementLabel'](_0x362554,_0x3d19a5,_0x3f77e9=_0x2fc9ed['normal']){'function'==typeof _0x362554?_0x49998f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x362554,'label':_0x3d19a5,'priority':_0x3f77e9}):this['_itemLabels']['set'](_0x362554,_0x3d19a5);}['registerAttributeLabel'](_0x56b7a7,_0x1bc4bc){this['_attributeLabels']['set'](_0x56b7a7,_0x1bc4bc);}['getItemLabel'](_0x478878,_0xe9ee6f=0x1){let _0x1ebd94;for(const _0x3d8412 of this['_itemLabelsCallbacks'])if(_0x3d8412['matchingCallback'](_0x478878)){_0x1ebd94=_0x3d8412['label'];break;}return _0x1ebd94||(_0x1ebd94=this['_itemLabels']['get'](_0x478878['name'])),_0x1ebd94?_0x1ebd94(_0xe9ee6f):0x1!==_0xe9ee6f?_0xe9ee6f+'\x20'+_0x478878['name']+'s':''+_0x478878['name'];}['_addDescriptionItems'](_0x4fd1a7,_0x4dcd90){const _0x3ad556=_0x4dcd90['getFirstRange']()['getWalker'](),_0xdab36a='insertion'==_0x4dcd90['type']?'add':'remove';for(const _0x3c77d6 of _0x3ad556){const _0x44228b=_0x3c77d6['item'],_0x83bf=_0x4fd1a7[_0x4fd1a7['length']-0x1];if(_0x44228b['is']('$textProxy'))_0x83bf&&_0x83bf['type']['indexOf']('Container')>-0x1&&_0x4fd1a7['pop'](),_0x83bf&&'text'==_0x83bf['type']?_0x83bf[_0xdab36a]+=_0x44228b['data']:_0x4fd1a7['push']({'type':'text','add':'add'==_0xdab36a?_0x44228b['data']:'','remove':'remove'==_0xdab36a?_0x44228b['data']:''});else{if(this['_schema']['isObject'](_0x44228b)){const _0x41749d=_0x44228b;if(_0x83bf&&_0x83bf['type']['indexOf']('Container')>-0x1&&_0x4fd1a7['pop'](),'elementEnd'==_0x3c77d6['type'])continue;_0x83bf&&_0x83bf['type']==_0xdab36a+'Object'&&_0x83bf['element']['name']==_0x41749d['name']?_0x83bf['quantity']++:_0x4fd1a7['push']({'type':_0xdab36a+'Object','element':_0x41749d,'quantity':0x1}),_0x3ad556['skip'](_0x257f97=>!('elementEnd'==_0x257f97['type']&&_0x257f97['item']==_0x44228b));}else{if(this['_schema']['checkChild'](_0x44228b,'$text')||_0x44228b['is']('element','softBreak')){const _0x32cac6=_0x44228b;if('add'==_0xdab36a&&'elementStart'==_0x3c77d6['type']||'remove'==_0xdab36a&&'elementEnd'==_0x3c77d6['type'])continue;if(_0x83bf&&-0x1==_0x83bf['type']['indexOf']('Container')){'text'==_0x83bf['type']&&(_0x83bf[_0xdab36a]+='\x0a');continue;}let _0x3bf6aa;if(_0x3bf6aa='add'==_0xdab36a?_0x32cac6['nextSibling']&&!this['_schema']['isObject'](_0x32cac6['nextSibling'])?_0x32cac6['nextSibling']:null:_0x32cac6['previousSibling']&&!this['_schema']['isObject'](_0x32cac6['previousSibling'])?_0x32cac6['previousSibling']:null,_0x32cac6['isEmpty']||_0x3bf6aa&&_0x3bf6aa['isEmpty']){const _0x543e94=_0x3bf6aa&&_0x3bf6aa['isEmpty']?_0x3bf6aa:_0x32cac6;_0x83bf&&_0x83bf['type']==_0xdab36a+'EmptyContainer'&&_0x83bf['element']['name']==_0x543e94['name']?_0x83bf['quantity']++:_0x4fd1a7['push']({'type':_0xdab36a+'EmptyContainer','element':_0x543e94,'quantity':0x1});}else _0x4fd1a7['push']({'type':_0xdab36a+'Container','element':_0x32cac6});}}}}}['_resolveDescriptionItems'](_0x15c484){const _0x274f3e=this['_locale'],_0xbd0aac=[],_0x5226b9=[],_0x11131f=[];for(const _0x4039d3 of _0x15c484)switch(_0x4039d3['type']){case'text':if(_0x4039d3['add']=_0x4039d3['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4039d3['remove']=_0x4039d3['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4039d3['add']&&''!=_0x4039d3['remove']){_0xbd0aac['push']({'type':'replace','content':o(_0x274f3e,'REPLACE_TEXT',['\x22'+_0x4039d3['remove']+'\x22','\x22'+_0x4039d3['add']+'\x22'])});continue;}if(null!=_0x4039d3['add']['match'](/^ +$/)){_0xbd0aac['push']({'type':'insertion','content':o(_0x274f3e,'*Insert:*\x20%0',o(_0x274f3e,'ELEMENT_SPACE',_0x4039d3['add']['length']))});continue;}if(null!=_0x4039d3['remove']['match'](/^ +$/)){_0xbd0aac['push']({'type':'deletion','content':o(_0x274f3e,'*Remove:*\x20%0',o(_0x274f3e,'ELEMENT_SPACE',_0x4039d3['remove']['length']))});continue;}if(''!=_0x4039d3['add']){_0xbd0aac['push']({'type':'insertion','content':o(_0x274f3e,'*Insert:*\x20%0','\x22'+_0x4039d3['add']+'\x22')});continue;}_0xbd0aac['push']({'type':'deletion','content':o(_0x274f3e,'*Remove:*\x20%0','\x22'+_0x4039d3['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xbd0aac['push']({'type':'insertion','content':o(_0x274f3e,'*Insert:*\x20%0',this['getItemLabel'](_0x4039d3['element'],_0x4039d3['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xbd0aac['push']({'type':'deletion','content':o(_0x274f3e,'*Remove:*\x20%0',this['getItemLabel'](_0x4039d3['element'],_0x4039d3['quantity']))});continue;case'addContainer':_0xbd0aac['push']({'type':'insertion','content':o(_0x274f3e,'*Split:*\x20%0',this['getItemLabel'](_0x4039d3['element'],_0x4039d3['quantity']))});continue;case'removeContainer':_0xbd0aac['push']({'type':'deletion','content':o(_0x274f3e,'*Merge:*\x20%0',this['getItemLabel'](_0x4039d3['element'],_0x4039d3['quantity']))});continue;case'addFormat':_0x5226b9['push'](_0x4039d3['key']);continue;case'removeFormat':_0x11131f['push'](_0x4039d3['key']);continue;default:_0xbd0aac['push'](_0x4039d3);}if(_0x5226b9['length']){const _0x43a410=_0x5226b9['map'](_0x5570c8=>this['_attributeLabels']['has'](_0x5570c8)?this['_attributeLabels']['get'](_0x5570c8):_0x5570c8)['join'](',\x20');_0xbd0aac['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x43a410)});}if(_0x11131f['length']){const _0x12ccaa=_0x11131f['map'](_0x49e6d8=>this['_attributeLabels']['has'](_0x49e6d8)?this['_attributeLabels']['get'](_0x49e6d8):_0x49e6d8)['join'](',\x20');_0xbd0aac['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x12ccaa)});}return _0xbd0aac;}['_handleCustomCallbackDescription'](_0x54fe53){for(const _0x161deb of this['_customCallbacks']){const _0x26364e=_0x161deb(_0x54fe53);if(_0x26364e&&'type'in _0x26364e)return _0x26364e;}}['_handleAttributeSuggestionDescription'](_0xaf0409,_0x3536e1){const _0x5c2bc6=_0x3536e1['data'],_0x188ca4=void 0x0===_0x5c2bc6['newValue']?'removeFormat':'addFormat';_0xaf0409['push']({'type':_0x188ca4,'key':_0x5c2bc6['key']});}['_handleRenameSuggestionDescription'](_0x91141f,_0x308caa){_0x91141f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x308caa['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x276d43,_0x1dc508,_0x2ff6d2){if(this['_addDescriptionItems'](_0x276d43,_0x1dc508),_0x2ff6d2&&_0x2ff6d2['getFirstRange']()&&!_0x1dc508['getFirstRange']()['end']['isEqual'](_0x2ff6d2['getFirstRange']()['start'])){const _0x4377c8=_0x276d43[_0x276d43['length']-0x1],_0x342b42='insertion'==_0x1dc508['type']?'add':'remove';_0x4377c8&&'text'==_0x4377c8['type']&&(_0x4377c8[_0x342b42]+='\x0a');}}}class V extends _0x54913d{['afterInit'](){const _0x4f86d8=this['editor'],_0x5534d9=_0x4f86d8['plugins']['get']('TrackChangesEditing');_0x4f86d8['commands']['get']('showAIAssistant')&&_0x5534d9['enableCommand']('showAIAssistant');}}class U extends _0x54913d{['afterInit'](){const _0xe3f7e7=this['editor'],_0x1364ea=_0xe3f7e7['locale'];if(!_0xe3f7e7['plugins']['has']('AlignmentEditing'))return;const _0x25d51b=_0xe3f7e7['plugins']['get']('TrackChangesEditing');_0x25d51b['enableDefaultAttributesIntegration']('alignment'),_0x25d51b['registerBlockAttribute']('alignment'),_0x25d51b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1364ea,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3129bb=this['editor'],_0x2965fd=_0x3129bb['locale'];_0x3129bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x242aa6=>{if('formatBlock'!=_0x242aa6['type'])return;const {data:_0x3a2bcc}=_0x242aa6;if(_0x3a2bcc&&'alignment'==_0x3a2bcc['commandName']){const _0xef88af=_0x3a2bcc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2965fd,'*Format:*\x20%0',function(_0x487f35){switch(_0x487f35){case'left':return o(_0x2965fd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2965fd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2965fd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2965fd,'FORMAT_JUSTIFY_TEXT');}}(_0xef88af))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x54913d{['afterInit'](){const _0x3ad7ec=this['editor'],_0x22cc71=_0x3ad7ec['plugins']['get']('TrackChangesEditing'),_0x4582e7=_0x3ad7ec['locale'];for(const _0x525ff7 of ti){if(!_0x3ad7ec['plugins']['has'](_0x525ff7))continue;const _0x1f0445=_0x525ff7['slice'](0x0,-0x7)['toLowerCase'](),_0x3f772c='FORMAT_'+_0x1f0445['toUpperCase']();_0x22cc71['enableDefaultAttributesIntegration'](_0x1f0445),_0x22cc71['registerInlineAttribute'](_0x1f0445),_0x22cc71['descriptionFactory']['registerAttributeLabel'](_0x1f0445,o(_0x4582e7,_0x3f772c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22a880=this['editor'],_0x513b90=_0x22a880['locale'],_0x57ddf6=_0x22a880['plugins']['get']('TrackChangesEditing');function _0x332e09(_0x90bd95,_0x5e98bb){_0x57ddf6['descriptionFactory']['registerDescriptionCallback'](_0x38b996=>{if('formatInline'!=_0x38b996['type'])return;const {data:_0x12f43e}=_0x38b996;return _0x12f43e&&_0x12f43e['commandName']===_0x90bd95?_0x12f43e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x513b90,'*Format:*\x20%0',_0x5e98bb)}:{'type':'format','content':o(_0x513b90,'*Remove\x20format:*\x20%0',_0x5e98bb)}:void 0x0;});}_0x332e09('bold',o(_0x513b90,'FORMAT_BOLD')),_0x332e09('italic',o(_0x513b90,'FORMAT_ITALIC')),_0x332e09('underline',o(_0x513b90,'FORMAT_UNDERLINE')),_0x332e09('code',o(_0x513b90,'FORMAT_CODE')),_0x332e09('strikethrough',o(_0x513b90,'FORMAT_STRIKETHROUGH')),_0x332e09('subscript',o(_0x513b90,'FORMAT_SUBSCRIPT')),_0x332e09('superscript',o(_0x513b90,'FORMAT_SUPERSCRIPT'));}}class F extends _0x54913d{['afterInit'](){const _0x35e448=this['editor'],_0x4e115a=_0x35e448['locale'];if(!_0x35e448['plugins']['has']('BlockQuoteEditing'))return;const _0x2af871=_0x35e448['plugins']['get']('TrackChangesEditing'),_0x58cf58=this['editor']['commands']['get']('blockQuote');_0x2af871['enableCommand']('blockQuote',(_0x4a7472,_0x47dd45={})=>{const _0x2c627c=this['editor']['model']['document']['selection'],_0x2c9f0e=_0x47dd45&&void 0x0!==_0x47dd45['forceValue']?_0x47dd45['forceValue']:!_0x58cf58['value'];let _0x378e34=[];if(_0x2c9f0e){const _0xb0f9b4=Array['from'](_0x2c627c['getSelectedBlocks']())['filter'](_0xae80f3=>oo(_0xae80f3)||function(_0x3d19be,_0x5a31bc){const _0x58a142=_0x5a31bc['checkChild'](_0x3d19be['parent'],'blockQuote'),_0x13fcde=_0x5a31bc['checkChild'](['$root','blockQuote'],_0x3d19be);return _0x58a142&&_0x13fcde;}(_0xae80f3,this['editor']['model']['schema']));_0x378e34=to(_0xb0f9b4,_0x35e448['model']);}else{const _0x1c2c50=Array['from'](_0x2c627c['getSelectedBlocks']())['filter'](_0x47dc99=>oo(_0x47dc99));_0x378e34=to(_0x1c2c50,_0x35e448['model']);}_0x35e448['model']['change'](()=>{for(const _0x3d0bd8 of _0x378e34)_0x2af871['markBlockFormat'](_0x3d0bd8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c9f0e}]});});}),_0x2af871['descriptionFactory']['registerDescriptionCallback'](_0x1081c9=>{const {data:_0x3fc21d}=_0x1081c9;if(_0x3fc21d&&'blockQuote'==_0x3fc21d['commandName']){const _0x43efe0=o(_0x4e115a,'ELEMENT_BLOCK_QUOTE');return _0x3fc21d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e115a,'*Set\x20format:*\x20%0',_0x43efe0)}:{'type':'format','content':o(_0x4e115a,'*Remove\x20format:*\x20%0',_0x43efe0)};}});}}function oo(_0x5250fc){return'blockQuote'==_0x5250fc['parent']['name'];}class L extends _0x54913d{['afterInit'](){const _0x4ab91b=this['editor'];_0x4ab91b['plugins']['has']('CaseChange')&&(_0x4ab91b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4ab91b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4ab91b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x54913d{['afterInit'](){const _0x25d44b=this['editor'];_0x25d44b['commands']['get']('ckbox')&&_0x25d44b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x54913d{['afterInit'](){const _0x4feded=this['editor'];if(!_0x4feded['plugins']['has']('CodeBlock'))return;const _0x4fe949=_0x4feded['plugins']['get']('TrackChangesEditing'),_0x25877d=_0x4feded['locale'],_0x2a0230=_0x4feded['config']['get']('codeBlock')['languages'],_0x540be1=_0x4feded['commands']['get']('codeBlock');_0x4fe949['enableCommand']('indentCodeBlock'),_0x4fe949['enableCommand']('outdentCodeBlock'),_0x4fe949['enableCommand']('codeBlock',(_0x55c719,_0x2a7784={})=>{const _0x39ef9e=_0x4feded['model'],_0x35b949=_0x4feded['model']['document']['selection'],_0x5cfa85=_0x2a7784&&void 0x0!==_0x2a7784['forceValue']?_0x2a7784['forceValue']:!_0x540be1['value'];let _0x19efdf;_0x2a7784['language']||(_0x2a7784['language']=_0x2a0230[0x0]['language']),_0x19efdf=_0x5cfa85?Array['from'](_0x35b949['getSelectedBlocks']())['filter'](_0x45b71e=>eo(_0x45b71e)||function(_0x4cfc92,_0x1758f6){if(_0x4cfc92['is']('rootElement')||_0x1758f6['isLimit'](_0x4cfc92))return!0x1;return _0x1758f6['checkChild'](_0x4cfc92['parent'],'codeBlock');}(_0x45b71e,_0x39ef9e['schema'])):Array['from'](_0x35b949['getSelectedBlocks']())['filter'](_0x4c4951=>eo(_0x4c4951));const _0x595703=to(_0x19efdf,_0x39ef9e);_0x39ef9e['change'](()=>{for(const _0x15a39c of _0x595703)_0x4fe949['markBlockFormat'](_0x15a39c,{'commandName':'codeBlock','commandParams':[{..._0x2a7784,'forceValue':_0x5cfa85}],'formatGroupId':'blockName'});});}),(_0x4fe949['descriptionFactory']['registerElementLabel']('codeBlock',_0x34226c=>o(_0x25877d,'ELEMENT_CODE_BLOCK',_0x34226c)),_0x4fe949['descriptionFactory']['registerDescriptionCallback'](_0x217279=>{if('formatBlock'!=_0x217279['type'])return;const _0x455783=_0x25877d['t'],{data:_0x55724d}=_0x217279;if(!_0x55724d||'codeBlock'!=_0x55724d['commandName'])return;const _0x520b5f=_0x55724d['commandParams'][0x0]['language'],_0x8a41ad=_0x455783(_0x2a0230['find'](_0x2c9104=>_0x2c9104['language']===_0x520b5f)['label'])['toLowerCase']();return _0x55724d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25877d,'*Set\x20format:*\x20%0',o(_0x25877d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x8a41ad+')')}:{'type':'format','content':o(_0x25877d,'*Remove\x20format:*\x20%0',o(_0x25877d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c08b5){return'codeBlock'==_0x1c08b5['name'];}class q extends _0x54913d{['afterInit'](){const _0x1f43c4=this['editor'];if(!_0x1f43c4['plugins']['has']('CommentsEditing'))return;_0x1f43c4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5c8a2a,_0x2d5e66,_0x35263f){const _0x304ab8=[];for(const _0x44994e of _0x2d5e66['getItems']())_0x44994e['hasAttribute'](_0x5c8a2a)&&_0x304ab8['push'](_0x35263f['createRangeOn'](_0x44994e));return _0x304ab8;}function _e(_0x29f124,_0x787a79,{showActiveMarker:_0x4663cf=!0x0}={}){const _0x4615e9=_0x29f124['plugins']['get']('TrackChangesEditing');return(_0x28c318,_0x20ed1d,_0x5e1984)=>{if(!_0x5e1984['consumable']['test'](_0x20ed1d['markerRange'],_0x28c318['name']))return;const _0x8e23d9=_0x20ed1d['markerRange']['getWalker'](),_0x1f4098=_0x20ed1d['markerRange']['start'],_0x352d3b=_0x29f124['model']['schema'];let _0x1fbbe5=null,_0x12c60d=null,_0x4319a5=!0x1,_0x25d420=!0x1;for(const _0x30cca6 of _0x8e23d9){const _0x41e014=_0x30cca6['item'];_0x4319a5=_0x4319a5||_0x352d3b['isContent'](_0x41e014);const _0x175c5e=_0x5e1984['mapper']['toViewElement'](_0x41e014);if(_0x175c5e&&_0x175c5e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30cca6['type']&&(_0x352d3b['isBlock'](_0x41e014)&&!_0x352d3b['isLimit'](_0x41e014)&&(_0x41e014['nextSibling']||_0x1f4098['isAtEnd']?_0x1fbbe5&&_0x1fbbe5['parent']==_0x41e014||(_0x1fbbe5=_0x41e014,_0x58dcc7(_0x30cca6['previousPosition']),_0x25d420=!0x0):_0x12c60d=_0x12c60d||_0x30cca6['previousPosition']));}function _0x58dcc7(_0x2dc922){const {authorId:_0x21a2f9}=_0x4615e9['_splitMarkerName'](_0x20ed1d['markerName']),_0x45b4cf=_0x5e1984['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x787a79,'data-author-id':_0x21a2f9}),_0x4c92e8=_0x5e1984['mapper']['toViewPosition'](_0x2dc922);_0x4663cf&&_0x4615e9['activeMarkers']['includes'](_0x20ed1d['markerName'])&&_0x5e1984['writer']['addClass']('ck-suggestion-marker--active',_0x45b4cf),_0x5e1984['writer']['insert'](_0x4c92e8,_0x45b4cf),_0x5e1984['mapper']['bindElementToMarker'](_0x45b4cf,_0x20ed1d['markerName']);}_0x4319a5||_0x25d420||!_0x12c60d||_0x58dcc7(_0x12c60d);};}class z extends _0x54913d{static get['requires'](){return[_0x5f8842];}['init'](){const _0x4ac95c=this['editor'],_0x27f696=_0x4ac95c['plugins']['get']('TrackChangesEditing');_0x27f696['enableCommand']('delete');const _0x27350f=_0x4ac95c['commands']['get']('deleteForward');_0x27f696['enableCommand']('deleteForward',(_0x36a5b2,_0x56ee9a={})=>{const _0x427dfe=_0x4ac95c['model']['createSelection'](_0x4ac95c['model']['document']['selection']);_0x427dfe['isCollapsed']&&_0x4ac95c['model']['modifySelection'](_0x427dfe,{'direction':'forward','unit':_0x56ee9a['unit']});const _0x1b052d=_0x427dfe['getFirstRange'](),_0x1f86cd=_0x8342a4['fromRange'](_0x1b052d);let _0x5aa5d1;_0x36a5b2(_0x56ee9a),_0x5aa5d1='$graveyard'==_0x1f86cd['root']['rootName']?_0x4ac95c['model']['createRange'](_0x1b052d['start']):_0x4ac95c['model']['createRange'](_0x1f86cd['start'],_0x1f86cd['end']),_0x1f86cd['detach'](),_0x4ac95c['model']['enqueueChange'](_0x27350f['buffer']['batch'],_0x357979=>{_0x27350f['buffer']['lock'](),_0x357979['setSelection'](_0x357979['createRange'](_0x5aa5d1['end'])),_0x27350f['buffer']['unlock']();});}),_0x4ac95c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4ac95c,'merge'),{'priority':'high'}),_0x4ac95c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1d80c5,_0x9f44de,_0x1bbe9e)=>{_0x1bbe9e['options']['showSuggestionHighlights']&&_e(_0x4ac95c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1d80c5,_0x9f44de,_0x1bbe9e);},{'priority':'high'}),_0x4ac95c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4776e8,_0x370980,_0x336208)=>{const _0x4a5d19=_0x336208['mapper']['markerNameToElements'](_0x370980['markerName']);if(_0x4a5d19){for(const _0xe7b4e6 of _0x4a5d19)_0xe7b4e6['is']('uiElement')&&(_0x336208['mapper']['unbindElementFromMarkerName'](_0xe7b4e6,_0x370980['markerName']),_0x336208['writer']['remove'](_0xe7b4e6));}},{'priority':'high'});}}class K extends _0x54913d{['afterInit'](){const _0x2da426=this['editor'];if(!_0x2da426['plugins']['has']('ListEditing'))return;const _0x5e3729=_0x2da426['locale'],_0x441181=_0x2da426['plugins']['get']('TrackChangesEditing'),_0x25c42f=_0x2da426['plugins']['has']('TodoListEditing'),_0x58d04d=!!_0x2da426['config']['get']('list.multiBlock');function _0x56bf7a(_0x5755a9){return{'type':'format','content':''+o(_0x5e3729,'*Set\x20format:*\x20%0',_0x5755a9)};}function _0x4e547e(_0x5d5bfc){return{'type':'format','content':''+o(_0x5e3729,'*Remove\x20format:*\x20%0',_0x5d5bfc)};}_0x441181['enableDefaultAttributesIntegration']('numberedList'),_0x441181['enableDefaultAttributesIntegration']('bulletedList'),_0x441181['enableDefaultAttributesIntegration']('customNumberedList'),_0x441181['enableDefaultAttributesIntegration']('customBulletedList'),_0x441181['enableDefaultAttributesIntegration']('indentList'),_0x441181['enableDefaultAttributesIntegration']('outdentList'),_0x441181['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x441181['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x441181['registerBlockAttribute']('listItemId'),_0x441181['registerBlockAttribute']('listType'),_0x441181['registerBlockAttribute']('listIndent'),_0x58d04d&&(_0x441181['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x441181['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x25c42f&&(_0x441181['enableDefaultAttributesIntegration']('todoList'),_0x441181['enableDefaultAttributesIntegration']('checkTodoList'),_0x441181['registerBlockAttribute']('todoListChecked'),_0x441181['descriptionFactory']['registerDescriptionCallback'](_0x84a7cb=>{const {data:_0x372a9f}=_0x84a7cb;if(_0x372a9f&&'todoListChecked'==_0x372a9f['key'])return{'type':'format','content':_0x372a9f['newValue']?o(_0x5e3729,'*Check\x20item*'):o(_0x5e3729,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x22ad3d=>{if(_0x22ad3d['batch']['isUndo'])return!0x1;let _0x328e00=!0x1;const _0x163517=_0x441181['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xde6f5d=>'todoListChecked'===_0x441181['_getAttributeKey'](_0xde6f5d));for(const _0xbb42be of _0x163517){'todo'!=_0xbb42be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x441181['_findSuggestions'](_0xbb42be['getFirstRange'](),'attribute')['find'](_0x2c387b=>'listType'===_0x441181['_getAttributeKey'](_0x2c387b['suggestion']))||(_0x22ad3d['removeMarker'](_0xbb42be['getFirstMarker']()),_0x328e00=!0x0));}return _0x328e00;})),_0x441181['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5e3729,'FORMAT_INDENT'));const _0x16737f={'type':'format','content':''};_0x441181['descriptionFactory']['registerDescriptionCallback'](_0x236aab=>{const {data:_0x5d0e59}=_0x236aab;if(!_0x5d0e59||'listType'!=_0x5d0e59['key'])return;let _0x2ed3d2=_0x236aab['head'];for(;_0x2ed3d2;){if(_0x2ed3d2['data']&&(('listStyle'==_0x2ed3d2['data']['key']||'listMarkerStyle'==_0x2ed3d2['data']['key'])&&(_0x2ed3d2['data']['newValue']&&'default'!=_0x2ed3d2['data']['newValue']||'default'!=_0x2ed3d2['data']['oldValue']&&!_0x5d0e59['newValue'])||!_0x58d04d&&_0x2ed3d2['data']['key']==m))return _0x16737f;_0x2ed3d2=_0x2ed3d2['next'];}if(null==_0x5d0e59['newValue'])switch(_0x5d0e59['oldValue']){case'bulleted':return _0x4e547e(o(_0x5e3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e547e(o(_0x5e3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e547e(o(_0x5e3729,'ELEMENT_TODO_LIST'));}switch(_0x5d0e59['newValue']){case'bulleted':return _0x56bf7a(o(_0x5e3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56bf7a(o(_0x5e3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56bf7a(o(_0x5e3729,'ELEMENT_TODO_LIST'));}}),_0x441181['descriptionFactory']['registerDescriptionCallback'](_0x501eb3=>{const {data:_0x2e6c05}=_0x501eb3;if(_0x2e6c05&&'listIndent'==_0x2e6c05['key'])return null==_0x2e6c05['newValue']||null==_0x2e6c05['oldValue']&&0x0==_0x2e6c05['newValue']?_0x16737f:void 0x0;}),_0x441181['descriptionFactory']['registerDescriptionCallback'](_0x5d7dee=>{if('attribute'!=_0x5d7dee['type'])return;const {data:_0x296c63}=_0x5d7dee;if(!_0x296c63||'listItemId'!=_0x296c63['key'])return;const _0x518634=Ee(_0x5d7dee);return'newValue'==_0x518634?{'type':'format','content':o(_0x5e3729,'*Merge:*\x20list\x20item')}:'oldValue'==_0x518634?{'type':'format','content':o(_0x5e3729,'*Split:*\x20list\x20item')}:_0x16737f;}),_0x2da426['model']['document']['registerPostFixer'](_0x21edea=>this['listItemIdFixer'](_0x21edea)),_0x2da426['model']['document']['registerPostFixer'](_0x373e81=>this['noTrackChangesFixer'](_0x373e81)),_0x2da426['model']['document']['on']('change:data',(_0x1fac88,_0x367867)=>{if(_0x367867['isUndo']||!_0x367867['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1a5720){if(_0x1a5720['batch']['isUndo']||!_0x1a5720['batch']['isLocal'])return!0x1;let _0x25c0a6=!0x1;const _0x10139f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13d2a1=>_0x13d2a1['data']&&'listItemId'==_0x13d2a1['data']['key'])['filter'](_0x423140=>_0x423140['data']['newValue']&&_0x423140['data']['oldValue']);for(const _0x31d40f of _0x10139f)Ee(_0x31d40f)||(_0x1a5720['removeMarker'](_0x31d40f['getFirstMarker']()),_0x25c0a6=!0x0);return _0x25c0a6;}['noTrackChangesFixer'](_0x4a2752){if(_0x4a2752['batch']['isUndo']||!_0x4a2752['batch']['isLocal'])return!0x1;const _0x26908e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x26908e['trackChangesCommand']['value'])return!0x1;let _0x42d842=!0x1;const _0x42f3d6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x160276=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x508773=>'attribute'==_0x508773['type'])['filter'](_0x453e64=>_0x42f3d6['includes'](_0x453e64['attributeKey']));if(0x0==_0x160276['length'])return _0x42d842;for(const _0x2ba67b of _0x160276){const _0x19e9d0=_0x26908e['_findSuggestions'](_0x2ba67b['range'],'attribute')['filter'](_0x11049f=>!_0x11049f['meta']['isNextTo'])['map'](_0x43c41d=>_0x43c41d['suggestion'])['filter'](_0x3dbec1=>{const _0x5c4215=_0x26908e['_getAttributeKey'](_0x3dbec1);return _0x42f3d6['includes'](_0x5c4215);});if(_0x19e9d0['length']){for(const _0x5c0fdb of _0x19e9d0)_0x4a2752['removeMarker'](_0x5c0fdb['getFirstMarker']());_0x42d842=!0x0;}}return _0x42d842;}['assureChains'](){const _0x4524d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47799a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a1642;const _0x20c60c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55ca0b=>{if(_0x55ca0b['data']['oldRange']||!_0x55ca0b['data']['newRange'])return null;if(!_0x55ca0b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x67b4f4}=_0x4524d0['_splitMarkerName'](_0x55ca0b['name']);if(!_0x4524d0['hasSuggestion'](_0x67b4f4))return null;const _0x5bdfc3=_0x4524d0['getSuggestion'](_0x67b4f4);return _0x47799a['includes'](_0x5bdfc3['data']['key']);})['map'](_0xc3fb1e=>{const {id:_0x127cdf}=_0x4524d0['_splitMarkerName'](_0xc3fb1e['name']),_0x158444=_0x4524d0['getSuggestion'](_0x127cdf);return _0x1a1642=_0x158444['attributes']['groupId'],_0x158444['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x20c60c['size'])return;const _0x20450c=_0x4524d0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50226f=>'attribute'==_0x50226f['type']&&_0x50226f['data']&&_0x47799a['includes'](_0x50226f['data']['key'])&&_0x50226f['attributes']['groupId']!=_0x1a1642)['map'](_0x5080c0=>({'listItem':_0x5080c0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5080c0['attributes']['groupId']})),_0x21f36c=new Set();for(const {groupId:_0x3e54e3,listItem:_0x5edd9c}of _0x20450c)_0x20c60c['has'](_0x5edd9c)&&_0x21f36c['add'](_0x3e54e3);for(const _0x303120 of _0x4524d0['getSuggestions']())_0x21f36c['has'](_0x303120['attributes']['groupId'])&&_0x303120['setAttribute']('groupId',_0x1a1642);}['_supportLegacySuggestions'](){const _0x16c3d7=this['editor'],_0x1af06f=_0x16c3d7['locale'],_0xf10593=_0x16c3d7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf10593['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x544dac,_0x14fb49){const _0x14aea1=[];for(let _0x440c2e of _0x544dac)_0x440c2e['start']['nodeAfter']===_0x440c2e['end']['parent']&&(_0x440c2e=_0x16c3d7['model']['createRange'](_0x16c3d7['model']['createPositionAt'](_0x440c2e['start']['nodeAfter'],0x0))),_0x14aea1['push'](_0x440c2e);_0x16c3d7['model']['change'](_0x3fdc91=>{const _0x4b7674=_0x16c3d7['model']['document']['selection'],_0x4a8773=Array['from'](_0x4b7674['getRanges']())['map'](_0x1218ee=>_0x8342a4['fromRange'](_0x1218ee));_0x3fdc91['setSelection'](_0x14aea1),_0x16c3d7['commands']['get'](_0x14fb49['commandName'])['refresh'](),_0x14fb49['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16c3d7['execute'](_0x14fb49['commandName'],..._0x14fb49['commandParams']),_0x3fdc91['setSelection'](_0x4a8773);for(const _0x2b4c1c of _0x4a8773)_0x2b4c1c['detach']();});}),_0xf10593['descriptionFactory']['registerElementLabel'](function(_0x1ac570){const _0x21c908=!_0x16c3d7['model']['schema']['isObject'](_0x1ac570),_0x5680e4=_0x1ac570['previousSibling'],_0xd979f7=_0x1ac570['nextSibling'],_0x48dfb4=_0x1ac570['getAttribute']('listItemId'),_0x280589=!_0x5680e4||_0x5680e4['getAttribute']('listItemId')!==_0x48dfb4,_0x4f2bda=!_0xd979f7||_0xd979f7['getAttribute']('listItemId')!==_0x48dfb4;return _0x21c908&&Boolean(_0x48dfb4)&&_0x280589&&_0x4f2bda;},_0xfd4c97=>o(_0x1af06f,'ELEMENT_LIST_ITEM',_0xfd4c97));}['_registerLegacyDescription'](){const _0x2954b0=this['editor'],_0x3cb2c6=_0x2954b0['locale'];function _0x3f1101(_0x36b602){const _0x13584e=_0x2954b0['commands']['get']('bulletedList')['value'],_0x56c7f9=_0x2954b0['commands']['get']('numberedList')['value'];return'numberedList'===_0x36b602?_0x13584e:_0x56c7f9;}_0x2954b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1a3a0c){if('formatBlock'!=_0x1a3a0c['type'])return;const {data:_0x5865e6}=_0x1a3a0c;if(!_0x5865e6)return;let _0x55e7f7,_0x42282b,_0x379fd3,_0x3e19db;switch(_0x5865e6['commandName']){case'bulletedList':_0x379fd3=_0x5865e6['commandParams'][0x0]['forceValue'],_0x3e19db=_0x3f1101(_0x5865e6['commandName']),_0x55e7f7=_0x379fd3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e19db&&_0x2954b0['config']['get']('list.multiBlock')||(_0x55e7f7='*Change\x20to:*\x20%0'),_0x42282b={'type':'format','content':o(_0x3cb2c6,_0x55e7f7,o(_0x3cb2c6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x379fd3=_0x5865e6['commandParams'][0x0]['forceValue'],_0x3e19db=_0x3f1101(_0x5865e6['commandName']),_0x55e7f7=_0x379fd3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e19db&&_0x2954b0['config']['get']('list.multiBlock')||(_0x55e7f7='*Change\x20to:*\x20%0'),_0x42282b={'type':'format','content':o(_0x3cb2c6,_0x55e7f7,o(_0x3cb2c6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x55e7f7='*Indent:*\x20%0',_0x42282b={'type':'format','content':o(_0x3cb2c6,_0x55e7f7,o(_0x3cb2c6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x55e7f7=function(_0x1d6290){const _0x2444c7=_0x1d6290['getFirstRange']();let _0x4161fd=_0x2444c7['start']['nodeAfter'];for(;_0x4161fd&&_0x2444c7['containsItem'](_0x4161fd);){if(_0x4161fd['getAttribute']('listIndent')>0x0)return!0x1;_0x4161fd=_0x4161fd['nextSibling'];}return!0x0;}(_0x1a3a0c)?o(_0x3cb2c6,'*Format:*\x20remove\x20from\x20%0',o(_0x3cb2c6,function(_0x5c4607){return'ELEMENT_'+_0x5c4607['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1a3a0c))):o(_0x3cb2c6,'*Outdent:*\x20%0',o(_0x3cb2c6,'ELEMENT_LIST_ITEM')),_0x42282b={'type':'format','content':_0x55e7f7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5865e6['multipleBlocks']&&(_0x55e7f7='*Merge:*\x20%0',_0x42282b={'type':'deletion','content':o(_0x3cb2c6,_0x55e7f7,o(_0x3cb2c6,'ELEMENT_LIST_ITEM'))});}return _0x42282b;});}}function Ee(_0x4ee9ab){let _0x4ea7d1=_0x4ee9ab['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4ea7d1;){const _0x3a26c7=_0x4ea7d1['getAttribute']('listItemId');if(!_0x3a26c7)return!0x1;if(_0x3a26c7==_0x4ee9ab['data']['newValue'])return'newValue';if(_0x3a26c7==_0x4ee9ab['data']['oldValue'])return'oldValue';_0x4ea7d1=_0x4ea7d1['previousSibling'];}return!0x1;}class pe extends _0x54913d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x275a35=this['editor']['config']['get']('list.properties'),_0x298753=this['editor']['plugins']['get']('TrackChangesEditing');_0x275a35['styles']&&(_0x298753['enableDefaultAttributesIntegration']('listStyle'),_0x298753['registerBlockAttribute']('listStyle')),_0x275a35['reversed']&&(_0x298753['enableDefaultAttributesIntegration']('listReversed'),_0x298753['registerBlockAttribute']('listReversed')),_0x275a35['startIndex']&&(_0x298753['enableDefaultAttributesIntegration']('listStart'),_0x298753['registerBlockAttribute']('listStart'));const _0x388f3d={'type':'format','content':''};_0x298753['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x26db6d=this['editor']['locale'];_0x298753['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x26db6d,'FORMAT_LIST_REVERSED')),_0x298753['descriptionFactory']['registerDescriptionCallback'](_0x3beb71=>{const {data:_0x2ebe9c}=_0x3beb71;if(_0x2ebe9c&&'listReversed'==_0x2ebe9c['key'])return null==_0x2ebe9c['newValue']||0x0==_0x2ebe9c['newValue']&&null==_0x2ebe9c['oldValue']?_0x388f3d:void 0x0;}),_0x298753['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x26db6d,'FORMAT_LIST_START')),_0x298753['descriptionFactory']['registerDescriptionCallback'](_0x4f9a2d=>{const {data:_0x9000bc}=_0x4f9a2d;if(_0x9000bc&&'listStart'==_0x9000bc['key'])return null==_0x9000bc['newValue']||0x1==_0x9000bc['newValue']&&null==_0x9000bc['oldValue']?_0x388f3d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x102336=>{if(_0x102336['batch']['isUndo'])return!0x1;let _0x49f547=!0x1;const _0x1ce72f=_0x298753['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49ba8f=>{const _0x481645=_0x298753['_getAttributeKey'](_0x49ba8f);return'listStart'==_0x481645||'listReversed'==_0x481645;});for(const _0x5cc47d of _0x1ce72f){const _0x202182=_0x5cc47d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x202182||'customNumbered'==_0x202182)continue;_0x298753['_findSuggestions'](_0x5cc47d['getFirstRange'](),'attribute')['find'](_0x21a60a=>'listType'==_0x298753['_getAttributeKey'](_0x21a60a['suggestion']))||(_0x102336['removeMarker'](_0x5cc47d['getFirstMarker']()),_0x49f547=!0x0);}return _0x49f547;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x40c0e4){const _0x2e2d7c=this['editor']['locale'],{data:_0x5a13b4}=_0x40c0e4,_0x50ac55={'type':'format','content':''};if(!_0x5a13b4||'listStyle'!=_0x5a13b4['key'])return;if(!_0x5a13b4['oldValue'])return'default'==_0x5a13b4['newValue']?_0x50ac55:{'type':'format','content':''+o(_0x2e2d7c,'*Set\x20format:*\x20%0',o(_0x2e2d7c,this['_getTranslationKeyForListStyle'](_0x5a13b4['newValue'])))};if(!_0x5a13b4['newValue']){if('default'==_0x5a13b4['oldValue'])return _0x50ac55;let _0x19117c=_0x40c0e4['head'];for(;_0x19117c;){if(_0x19117c['data']&&'listType'==_0x19117c['data']['key']&&_0x19117c['data']['newValue'])return _0x50ac55;_0x19117c=_0x19117c['next'];}return{'type':'format','content':''+o(_0x2e2d7c,'*Remove\x20format:*\x20%0',o(_0x2e2d7c,this['_getTranslationKeyForListStyle'](_0x5a13b4['oldValue'])))};}if('default'!=_0x5a13b4['newValue'])return{'type':'format','content':''+o(_0x2e2d7c,'*Set\x20format:*\x20%0',o(_0x2e2d7c,this['_getTranslationKeyForListStyle'](_0x5a13b4['newValue'])))};let _0x96d232=_0x40c0e4['head'];for(;_0x96d232;){if(_0x96d232['data']&&'listType'==_0x96d232['data']['key']&&_0x96d232['data']['newValue']&&_0x96d232['data']['oldValue'])return _0x50ac55;_0x96d232=_0x96d232['next'];}return{'type':'format','content':o(_0x2e2d7c,'*Set\x20format:*\x20%0',o(_0x2e2d7c,'ELEMENT_'+_0x40c0e4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x10a64e=this['editor'],_0x199f77=_0x10a64e['locale'];_0x10a64e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ab70=>{if('formatBlock'!=_0x25ab70['type'])return;const {data:_0x579dfb}=_0x25ab70;if(!_0x579dfb)return;let _0x52e092,_0x521297;switch(_0x579dfb['commandName']){case'listStyle':_0x52e092='*Change\x20to:*\x20%0',_0x521297={'type':'format','content':o(_0x199f77,_0x52e092,o(_0x199f77,this['_getTranslationKeyForListStyle'](_0x579dfb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52e092=_0x579dfb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x521297={'type':'format','content':o(_0x199f77,_0x52e092)};break;case'listStart':_0x52e092='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x521297={'type':'format','content':o(_0x199f77,_0x52e092,_0x579dfb['commandParams'][0x0]['startIndex'])};}return _0x521297;});}['_getTranslationKeyForListStyle'](_0x1902ff){return'ELEMENT_'+function(_0x29fe94){if(ye['includes'](_0x29fe94))return'bulleted';if(Se['includes'](_0x29fe94))return'numbered';return null;}(_0x1902ff)['toUpperCase']()+'_LIST_'+_0x1902ff['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x54913d{static get['requires'](){return[_0x57336d];}['init'](){const _0x5be53d=this['editor'],_0x23141c=_0x5be53d['plugins']['get']('TrackChangesEditing'),_0x40c223=_0x5be53d['commands']['get']('enter');_0x23141c['enableCommand']('enter',()=>{_0x5be53d['model']['change'](_0x438afe=>{const _0x659fc6=_0x5be53d['model']['document']['selection'],_0x4255aa=_0x659fc6['getFirstPosition'](),_0x1d6ad2=_0x8342a4['fromRange'](_0x659fc6['getFirstRange']());if(_0x40c223['enterBlock'](_0x438afe)){const _0x2b2d3a=_0x5be53d['model']['createPositionAt'](_0x4255aa['parent']['nextSibling'],0x0),_0x52910f=_0x438afe['createRange'](_0x4255aa,_0x2b2d3a);_0x23141c['markInsertion'](_0x52910f);}else _0x438afe['setSelection'](_0x438afe['createRange'](_0x1d6ad2['end']));_0x1d6ad2['detach'](),_0x40c223['fire']('afterExecute',{'writer':_0x438afe});});}),_0x5be53d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5be53d,'split'),{'priority':'high'}),_0x5be53d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x285c42,_0x4f384f,_0x10f777)=>{const _0x46e27a=_0x10f777['mapper']['markerNameToElements'](_0x4f384f['markerName']);if(_0x46e27a){for(const _0xb23523 of _0x46e27a)_0xb23523['hasClass']('ck-suggestion-marker-split')&&(_0x10f777['mapper']['unbindElementFromMarkerName'](_0xb23523,_0x4f384f['markerName']),_0x10f777['writer']['remove'](_0xb23523));}},{'priority':'high'}),_0x5be53d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x14398c,_0x417449,_0x36533c)=>{_0x36533c['options']['showSuggestionHighlights']&&_e(_0x5be53d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x14398c,_0x417449,_0x36533c);},{'priority':'high'});}}class X extends _0x54913d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x36c254=this['editor']['plugins']['get']('TrackChangesEditing');_0x36c254['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x36c254['enableCommand']('findNext'),_0x36c254['enableCommand']('findPrevious'),_0x36c254['enableCommand']('replace'),_0x36c254['enableCommand']('replaceAll');}['handleFindCommand'](_0x581d4e,_0x3512e4,_0x5460e1={}){const _0x599535=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x581d4e(_0x303fa1=>{let _0x239f2b=('string'==typeof _0x3512e4?_0x599535['findByTextCallback'](_0x3512e4,_0x5460e1):_0x3512e4)(_0x303fa1);Array['isArray'](_0x239f2b)&&(_0x239f2b={'results':_0x239f2b,'searchText':'string'==typeof _0x3512e4?_0x3512e4:''});const _0x1c8c3a=_0x239f2b['results']['filter'](_0x194a47=>!0x1===this['_isInDeletionRange'](_0x194a47,_0x303fa1['item']));return{..._0x239f2b,'results':_0x1c8c3a};},_0x5460e1);}['_isInDeletionRange'](_0x3844d8,_0x1b494f){const _0x4df331=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b494f,_0x3844d8['start']),this['editor']['model']['createPositionAt'](_0x1b494f,_0x3844d8['end']));for(const _0x80b862 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4df331['getIntersection'](_0x80b862['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 _0x54913d{['afterInit'](){const _0x3625a0=this['editor']['locale'],_0x13c6b2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4232a6,commandName:_0xe9fd5b}of ro)this['editor']['plugins']['has'](_0x4232a6)&&(_0x13c6b2['enableDefaultAttributesIntegration'](_0xe9fd5b),_0x13c6b2['registerInlineAttribute'](_0xe9fd5b));_0x13c6b2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3625a0,'FORMAT_FONT_SIZE')),_0x13c6b2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3625a0,'FORMAT_FONT_FAMILY')),_0x13c6b2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3625a0,'FORMAT_FONT_COLOR')),_0x13c6b2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3625a0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2962=this['editor'],_0x490642=_0x3d2962['locale'];_0x3d2962['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26c2f6=>{const _0x4ba0db=_0x490642['t'];if('formatInline'!=_0x26c2f6['type'])return;const {data:_0x3c8695}=_0x26c2f6;if(null!=_0x3c8695){if('fontSize'==_0x3c8695['commandName']){const _0x44eb2c=_0x3c8695['commandParams'][0x0]['value'];if(_0x44eb2c){const _0x53d577=_0x4ba0db(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37b625=>_0x37b625['model']==_0x44eb2c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x490642,'*Set\x20font\x20size:*\x20%0',_0x53d577)};}return{'type':'format','content':o(_0x490642,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3c8695['commandName']){const _0x3db764=_0x3c8695['commandParams'][0x0]['value'];return _0x3db764?{'type':'format','content':o(_0x490642,'*Set\x20font\x20family:*\x20%0',_0x3db764)}:{'type':'format','content':o(_0x490642,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3c8695['commandName']){const _0x26a947=_0x3c8695['commandParams'][0x0]['value'];if(_0x26a947){const _0x2c212d=_0xf798de(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3dc087=>_0x3dc087['model']==_0x26a947);let _0x5a3eca=_0x26a947,_0xb6d798='';return _0x2c212d&&(_0x5a3eca=_0x2c212d['label'],_0xb6d798=_0x4ba0db(_0x5a3eca)['toLowerCase']()),{'type':'format','content':o(_0x490642,'*Set\x20font\x20color:*\x20%0',_0xb6d798)['trim'](),'color':{'value':_0x26a947,'title':_0xb6d798||_0x5a3eca}};}return{'type':'format','content':o(_0x490642,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3c8695['commandName']){const _0x5ab3cf=_0x3c8695['commandParams'][0x0]['value'];if(_0x5ab3cf){const _0x53bbd0=_0xf798de(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4cea51=>_0x4cea51['model']==_0x5ab3cf);let _0x53fbcd=_0x5ab3cf,_0x440bda='';return _0x53bbd0&&(_0x53fbcd=_0x53bbd0['label'],_0x440bda=_0x4ba0db(_0x53fbcd)['toLowerCase']()),{'type':'format','content':o(_0x490642,'*Set\x20font\x20background\x20color:*\x20%0',_0x440bda)['trim'](),'color':{'value':_0x5ab3cf,'title':_0x440bda||_0x53fbcd}};}return{'type':'format','content':o(_0x490642,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x54913d{['afterInit'](){const _0x287817=this['editor'],_0x3ab5cd=_0x287817['plugins']['get']('TrackChangesEditing'),_0x600fd0=_0x287817['commands']['get']('copyFormat'),_0x241bc1=_0x287817['commands']['get']('pasteFormat');_0x600fd0&&_0x241bc1&&(_0x3ab5cd['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ab5cd['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1c074e=this['editor'],_0x850547=_0x1c074e['locale'];_0x1c074e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9191=>{if('formatBlock'!=_0x3a9191['type']&&'formatInline'!=_0x3a9191['type'])return;const {data:_0x46113c}=_0x3a9191;if(_0x46113c&&'pasteFormat'===_0x46113c['commandName']){const _0x41367f=[],_0x4ebeed=_0x46113c['commandParams'][0x0];for(const [_0x23647e,_0x236117]of Object['entries'](_0x4ebeed))_0x41367f['push'](so(_0x1c074e,_0x23647e,_0x236117));return _0x41367f['length']?{'type':'format','content':o(_0x850547,'*Set\x20format\x20to:*\x20%0',_0x41367f['join'](',\x20'))}:{'type':'format','content':o(_0x850547,'*Remove\x20all\x20formatting*')};}});}}function so(_0x29ebfd,_0x5cdd68,_0xd480a3){const _0x3a4d78=_0x29ebfd['locale']['t'],_0x418f32=_0x5cdd68['split'](/(?=[A-Z])/)['join']('\x20'),_0x22ae31=_0x3a4d78(_0x418f32['charAt'](0x0)['toUpperCase']()+_0x418f32['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xd480a3)return _0x22ae31;if('fontColor'===_0x5cdd68||'fontBackgroundColor'===_0x5cdd68){const _0x1f5010=_0xf798de(_0x29ebfd['config']['get']('fontColor.colors'))['find'](_0x4a9d96=>_0x4a9d96['model']==_0xd480a3);return _0x22ae31+'\x20('+(_0x1f5010?_0x3a4d78(_0x1f5010['label'])['toLowerCase']():_0xd480a3)+')';}if('fontSize'===_0x5cdd68&&isNaN(parseFloat(_0xd480a3))){const _0x40bf46=_0x29ebfd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x29ebfd['config']['get']('fontSize.options'))['find'](_0x45a7f1=>_0x45a7f1['model']==_0xd480a3);return _0x22ae31+'\x20('+(_0x40bf46?_0x3a4d78(_0x40bf46['title'])['toLowerCase']():_0xd480a3)+')';}return _0x22ae31+'\x20('+_0xd480a3+')';}class tt extends _0x54913d{['_headingOptions'];['afterInit'](){const _0x4cac80=this['editor'];if(!_0x4cac80['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4cac80['config']['get']('heading.options');const _0x151ffb=_0x4cac80['locale'],_0x5373d6=_0x4cac80['plugins']['get']('TrackChangesEditing');_0x5373d6['enableDefaultAttributesIntegration']('heading');for(const _0x3e41df of this['_headingOptions'])'paragraph'!=_0x3e41df['model']&&_0x5373d6['descriptionFactory']['registerElementLabel'](_0x3e41df['model'],_0x2e0843=>{const _0x2fc52d=this['_getHeadingLevel'](_0x3e41df['model']);return null!==_0x2fc52d?_0xdd9eab(_0x2e0843,_0x2fc52d):_0x4eb6ee(_0x2e0843,_0x3e41df['title']);});function _0xdd9eab(_0x1ddcea,_0x12252f){return o(_0x151ffb,'ELEMENT_HEADING',[_0x1ddcea,_0x12252f]);}function _0x4eb6ee(_0x48b5e,_0x1c922f){return o(_0x151ffb,'ELEMENT_HEADING_CUSTOM',[_0x48b5e,_0x1c922f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c5d1d=this['editor'],_0x55a841=_0x3c5d1d['locale'];function _0x1ec4fd(_0x36b1a6,_0x495dcf){return o(_0x55a841,'ELEMENT_HEADING_CUSTOM',[_0x36b1a6,_0x495dcf]);}_0x3c5d1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x285dd0=>{if('formatBlock'!=_0x285dd0['type'])return;const {data:_0x25699e}=_0x285dd0;if(_0x25699e&&'heading'==_0x25699e['commandName']){const _0x1066ad=_0x25699e['commandParams'][0x0]['value'],_0xaa4578=this['_getHeadingLevel'](_0x1066ad);if(null!==_0xaa4578)return{'type':'format','content':o(_0x55a841,'*Change\x20to:*\x20%0',(_0x163c54=0x1,_0x1c095b=_0xaa4578,o(_0x55a841,'ELEMENT_HEADING',[_0x163c54,_0x1c095b])))};const _0x19e71b=this['_headingOptions']['find'](_0x58de1f=>_0x58de1f['model']===_0x1066ad)['title'];return{'type':'format','content':o(_0x55a841,'*Change\x20to:*\x20%0',_0x1ec4fd(0x1,_0x19e71b))};}var _0x163c54,_0x1c095b;});}['_getHeadingLevel'](_0x1c8d20){const _0x1aae71=_0x1c8d20['match'](/^heading(\d+)/);if(_0x1aae71)return _0x1aae71[0x1];const _0x160e62=this['_headingOptions']?.['find'](_0x27999f=>_0x27999f['model']==_0x1c8d20);if(_0x160e62&&_0x160e62['view']){const _0x1743b0=_0x160e62['view'],_0x2959c9=(_0x1743b0['name']??_0x1743b0)['match'](/^h(\d+)/);if(_0x2959c9)return _0x2959c9[0x1];}return null;}}class et extends _0x54913d{['afterInit'](){const _0x34988d=this['editor'];if(!_0x34988d['plugins']['has']('HighlightEditing'))return;const _0x10bda3=_0x34988d['plugins']['get']('TrackChangesEditing'),_0x5dea82=_0x34988d['locale'];_0x10bda3['enableDefaultAttributesIntegration']('highlight'),_0x10bda3['registerInlineAttribute']('highlight'),_0x10bda3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5dea82,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad2d5=this['editor'],_0x3ffe5a=_0x5ad2d5['locale'];_0x5ad2d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1fe6=>{if('formatInline'!=_0x5c1fe6['type'])return;const {data:_0x371b72}=_0x5c1fe6;if(_0x371b72&&'highlight'==_0x371b72['commandName']){const _0x583cbd=_0x3ffe5a['t'],_0x373f7f=_0x371b72['commandParams'][0x0]['value'];if(_0x373f7f){const _0x5c4e7f=_0x5ad2d5['config']['get']('highlight.options')['find'](_0x285ad5=>_0x285ad5['model']==_0x373f7f),_0x34c11f=_0x583cbd(_0x5c4e7f['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ffe5a,'*Set\x20highlight:*\x20%0',_0x34c11f),'color':{'value':_0x5c4e7f['color'],'title':_0x5c4e7f['title']}};}return{'type':'format','content':o(_0x3ffe5a,'*Remove\x20highlight*',o(_0x3ffe5a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x54913d{['afterInit'](){const _0xf13f57=this['editor'];if(!_0xf13f57['plugins']['has']('HorizontalLineEditing'))return;_0xf13f57['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5d043f=_0xf13f57['plugins']['get']('TrackChangesEditing'),_0x98f1e1=_0xf13f57['locale'];_0x5d043f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3af1b1=>o(_0x98f1e1,'ELEMENT_HORIZONTAL_LINE',_0x3af1b1)),_0xf13f57['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x554f74,{writer:_0x2785a2,options:_0x46ab93})=>{if(!_0x46ab93['showSuggestionHighlights'])return null;const _0x36931d=_0x2785a2['createContainerElement']('div'),_0x6247b4=_0x2785a2['createEmptyElement']('hr');return _0x2785a2['addClass']('ck-horizontal-line',_0x36931d),_0x2785a2['insert'](_0x2785a2['createPositionAt'](_0x36931d,0x0),_0x6247b4),_0x36931d;},'converterPriority':'high'});}}class st extends _0x54913d{['afterInit'](){const _0x4cd9e4=this['editor'];if(!_0x4cd9e4['plugins']['has']('HtmlEmbed'))return;const _0x27bcc7=_0x4cd9e4['plugins']['get']('TrackChangesEditing'),_0x5aabb2=_0x4cd9e4['locale'];_0x27bcc7['descriptionFactory']['registerElementLabel']('rawHtml',_0x534f30=>o(_0x5aabb2,'ELEMENT_HTML_EMBED',_0x534f30)),_0x27bcc7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x27bcc7['registerBlockAttribute']('value'),_0x27bcc7['descriptionFactory']['registerDescriptionCallback'](_0x15fe0a=>{if('attribute'!=_0x15fe0a['type'])return;const {data:_0x306693}=_0x15fe0a;if(_0x306693&&'value'==_0x306693['key']&&_0x15fe0a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20ee9a=o(_0x5aabb2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5aabb2,'*Change\x20%0\x20content*',_0x20ee9a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c63d2=this['editor'],_0x4b62a1=_0x5c63d2['locale'];_0x5c63d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ccc4=>{if('formatBlock'!=_0x56ccc4['type'])return;const {data:_0x2e5205}=_0x56ccc4;if(_0x2e5205&&'htmlEmbed'==_0x2e5205['commandName']){const _0x5de041=o(_0x4b62a1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b62a1,'*Change\x20%0\x20content*',_0x5de041)};}});}}class nt extends _0x54913d{['afterInit'](){const _0x385520=this['editor'];if(!_0x385520['plugins']['has']('ImageEditing'))return;const _0x253d73=_0x385520['plugins']['get']('TrackChangesEditing'),_0x52731a=_0x385520['plugins']['get']('ImageUtils'),_0x12c411=_0x385520['locale'];_0x253d73['enableCommand']('insertImage'),_0x253d73['descriptionFactory']['registerElementLabel']('imageBlock',_0x3efa25=>o(_0x12c411,'ELEMENT_IMAGE',_0x3efa25)),_0x253d73['descriptionFactory']['registerElementLabel']('imageInline',_0x51e410=>o(_0x12c411,'ELEMENT_INLINE_IMAGE',_0x51e410)),_0x253d73['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x12c411,'ELEMENT_CAPTION')),_0x385520['plugins']['has']('ImageUploadEditing')&&_0x253d73['enableCommand']('uploadImage'),_0x385520['plugins']['has']('ImageBlockEditing')&&_0x385520['plugins']['has']('ImageInlineEditing')&&(_0x253d73['enableCommand']('imageTypeInline',(_0x29d0ce,_0x4686dc)=>{const _0x2f6416=_0x52731a['getClosestSelectedImageElement'](_0x385520['model']['document']['selection']);_0x385520['model']['change'](()=>{_0x253d73['markBlockFormat'](_0x2f6416,{'commandName':'imageTypeInline','commandParams':[_0x4686dc]},[],'convertBlockImageToInline');});}),_0x253d73['enableCommand']('imageTypeBlock',(_0x39e4bd,_0x30b4f2)=>{_0x385520['model']['change'](_0x3dcaf3=>{let _0xf8cc8=_0x52731a['getClosestSelectedImageElement'](_0x385520['model']['document']['selection']),_0x4d07ee=_0x3dcaf3['createRangeOn'](_0xf8cc8);const _0x459101=_0x315eb0['fromPosition'](_0x4d07ee['start'],'toPrevious'),_0x48214d=_0x315eb0['fromPosition'](_0x4d07ee['end'],'toNext');_0x253d73['forceDefaultExecution'](()=>_0x39e4bd(_0x30b4f2)),_0xf8cc8=_0x52731a['getClosestSelectedImageElement'](_0x385520['model']['document']['selection']),_0x4d07ee=_0x3dcaf3['createRangeOn'](_0xf8cc8);const _0x2b1f81=_0x3dcaf3['createRange'](_0x459101,_0x48214d);_0x459101['detach'](),_0x48214d['detach'](),_0x253d73['markBlockFormat'](_0xf8cc8,{'commandName':'imageTypeInline','commandParams':[_0x30b4f2]},[],'convertInlineImageToBlock'),_0x2b1f81['start']['isBefore'](_0x4d07ee['start'])&&_0x253d73['markInsertion'](_0x3dcaf3['createRange'](_0x2b1f81['start'],_0x4d07ee['start']),'convertInlineImageToBlock'),_0x4d07ee['end']['isBefore'](_0x2b1f81['end'])&&_0x253d73['markInsertion'](_0x3dcaf3['createRange'](_0x4d07ee['end'],_0x2b1f81['end']),'convertInlineImageToBlock');});}),_0x253d73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x253d73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x253d73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x253d73['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x253d73['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x253d73['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36ad55])=>{const _0x3e3ffe=_0x253d73['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c3a0a=_0x36ad55['start'],_0x239d78=_0x36ad55['end'];const _0x9fc470=_0x385520['model']['schema']['getNearestSelectionRange'](_0x2c3a0a,'backward'),_0x16db8e=_0x385520['model']['schema']['getNearestSelectionRange'](_0x239d78,'forward');_0x9fc470['isCollapsed']&&(_0x2c3a0a=_0x9fc470['start']),_0x16db8e['isCollapsed']&&(_0x239d78=_0x16db8e['end']),_0x3e3ffe([_0x385520['model']['createRange'](_0x2c3a0a,_0x239d78)]);}),_0x253d73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x26fc64),_0x253d73['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x26fc64)),_0x385520['plugins']['has']('ImageCaptionEditing')&&(_0x253d73['enableCommand']('toggleImageCaption',(_0x4a7ec4,_0x4db19b)=>{const _0x3a70c1=_0x385520['plugins']['get']('ImageCaptionUtils');let _0x240d7c=_0x52731a['getClosestSelectedImageElement'](_0x385520['model']['document']['selection']),_0x44d8b4=_0x3a70c1['getCaptionFromImageModelElement'](_0x240d7c);_0x385520['model']['change'](()=>{if(_0x44d8b4)return void _0x253d73['markDeletion'](_0x385520['model']['createRangeOn'](_0x44d8b4));const _0x165ccd=_0x52731a['isBlockImage'](_0x240d7c);_0x4a7ec4(_0x4db19b),_0x240d7c=_0x52731a['getClosestSelectedImageElement'](_0x385520['model']['document']['selection']),_0x44d8b4=_0x3a70c1['getCaptionFromImageModelElement'](_0x240d7c),_0x253d73['markInsertion'](_0x385520['model']['createRangeOn'](_0x44d8b4),_0x165ccd?null:'imageCaption');});}),_0x253d73['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x26fc64));const _0xec6fff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40196f(_0x2946dc,_0x41e0e4){const _0x3db25a=_0xec6fff['findIndex'](({type:_0x47262e,subType:_0x3509a4})=>_0x2946dc['type']==_0x47262e&&_0x2946dc['subType']==_0x3509a4),_0x310df3=_0xec6fff['findIndex'](({type:_0x1a29f4,subType:_0x29621e})=>_0x41e0e4['type']==_0x1a29f4&&_0x41e0e4['subType']==_0x29621e);if(_0x3db25a<0x0||_0x310df3<0x0)return!0x1;const _0x2a5094=_0x2946dc['getFirstRange'](),_0x463718=_0x41e0e4['getFirstRange']();if((0x0==_0x3db25a||0x1==_0x3db25a)&&0x2==_0x310df3&&_0x2a5094['isIntersecting'](_0x463718))return!0x0;if(0x2==_0x3db25a&&0x3==_0x310df3){const _0x456dce=_0x253d73['_findSuggestions'](_0x2a5094,'insertion')['filter'](({suggestion:_0x31870e,meta:_0x487466})=>_0x487466['isOwn']&&'convertInlineImageToBlock'==_0x31870e['subType']);if(_0x456dce['length']>0x1&&_0x463718['end']['isEqual'](_0x2a5094['start']))return!0x0;if(0x1==_0x456dce['length']&&(_0x2a5094['start']['isEqual'](_0x463718['end'])||_0x2a5094['end']['isEqual'](_0x463718['start'])))return!0x0;}if(0x3==_0x3db25a&&0x3==_0x310df3&&_0x2a5094['start']['isBefore'](_0x463718['start'])){const _0x1c3872=_0x2a5094['end']['nodeAfter'],_0x272a6e=_0x463718['start']['nodeBefore'];return _0x52731a['isBlockImage'](_0x1c3872)&&_0x1c3872===_0x272a6e;}return!0x1;}function _0x26fc64(_0x3f780a,_0xa983be){return _0x40196f(_0x3f780a,_0xa983be)?[_0x3f780a,_0xa983be]:_0x40196f(_0xa983be,_0x3f780a)?[_0xa983be,_0x3f780a]:null;}_0x385520['plugins']['has']('ImageResize')&&(_0x253d73['enableDefaultAttributesIntegration']('resizeImage'),_0x253d73['registerBlockAttribute']('resizedWidth'),_0x253d73['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x12c411,'FORMAT_IMAGE_SIZE'))),_0x385520['plugins']['has']('ImageTextAlternativeEditing')&&(_0x253d73['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x253d73['registerBlockAttribute']('alt')),_0x253d73['descriptionFactory']['registerDescriptionCallback'](_0x37d1d1=>{if(!!_0xec6fff['find'](({type:_0x826133,subType:_0x249d11})=>_0x37d1d1['type']==_0x826133&&_0x37d1d1['subType']==_0x249d11))return _0x37d1d1['previous']?{}:void 0x0;}),_0x253d73['descriptionFactory']['registerDescriptionCallback'](_0x1f1371=>{if('insertion'==_0x1f1371['type']||'deletion'==_0x1f1371['type']){const _0x5282c4=_0x1f1371['getContainedElement']();if(_0x5282c4&&_0x5282c4['is']('element','caption'))return{'type':'insertion'==_0x1f1371['type']?'addObject':'removeObject','element':_0x5282c4,'quantity':0x1};}}),_0x253d73['descriptionFactory']['registerDescriptionCallback'](_0x16d5df=>'formatBlock'==_0x16d5df['type']&&'convertInlineImageToBlock'==_0x16d5df['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x16d5df['type']&&'convertBlockImageToInline'==_0x16d5df['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x253d73['descriptionFactory']['registerDescriptionCallback'](_0x42b528=>{if('attribute'!=_0x42b528['type'])return;const {data:_0x46e179}=_0x42b528;if(!_0x46e179||'alt'!=_0x46e179['key'])return;const _0x504171=_0x46e179['newValue'];return _0x504171?{'type':'format','content':o(_0x12c411,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x504171+'\x22')}:{'type':'format','content':o(_0x12c411,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x216e64=this['editor'],_0x10cde2=_0x216e64['locale'];_0x216e64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x311595=>{if('formatBlock'!=_0x311595['type']&&'formatInline'!=_0x311595['type'])return;const {data:_0x3ddb81}=_0x311595;if(_0x3ddb81){if('imageTextAlternative'==_0x3ddb81['commandName']){const _0x238138=_0x3ddb81['commandParams'][0x0]['newValue'];return _0x238138?{'type':'format','content':o(_0x10cde2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x238138+'\x22')}:{'type':'format','content':o(_0x10cde2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ddb81['commandName']){const _0x3b1591=_0x3ddb81['commandParams'][0x0]['width'];return _0x3b1591?{'type':'format','content':o(_0x10cde2,'*Set\x20image\x20width:*\x20%0',_0x3b1591)}:{'type':'format','content':o(_0x10cde2,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x54913d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5eed14=this['editor']['locale'],_0x348502=this['editor']['plugins']['get']('TrackChangesEditing');_0x348502['enableDefaultAttributesIntegration']('replaceImageSource'),_0x348502['registerBlockAttribute']('src'),_0x348502['descriptionFactory']['registerDescriptionCallback'](_0x3ec2c6=>{if('attribute'!=_0x3ec2c6['type'])return;const {data:_0x5f3bbc}=_0x3ec2c6;return _0x5f3bbc&&'src'==_0x5f3bbc['key']?_0x5f3bbc['newValue']&&_0x5f3bbc['oldValue']?{'type':'format','content':o(_0x5eed14,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe7159f=this['editor']['plugins']['get']('TrackChangesEditing');_0xe7159f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xe7159f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe7159f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xe7159f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1603=this['editor'],_0x53c999=_0x3d1603['locale'];_0x3d1603['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bee7=>{if('formatBlock'!=_0x33bee7['type']&&'formatInline'!=_0x33bee7['type'])return;const {data:_0x3595b5}=_0x33bee7;if(!_0x3595b5||'replaceImageSource'!=_0x3595b5['commandName'])return;return{'type':'format','content':o(_0x53c999,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x54913d{['afterInit'](){const _0x4c7d2c=this['editor'];if(!_0x4c7d2c['plugins']['has']('ImageStyleEditing'))return;const _0x2c7d7b=_0x4c7d2c['plugins']['get']('TrackChangesEditing'),_0x18168d=_0x4c7d2c['plugins']['get']('ImageUtils'),_0xcd23ea={};_0x2c7d7b['enableCommand']('imageStyle',(_0x5a4ba3,_0x1e4b65)=>{const _0x5022a1=_0x4c7d2c['plugins']['get']('Users')['me'],_0x5ecdb3=_0x4c7d2c['commands']['get']('imageStyle');let _0x544267=_0x18168d['getClosestSelectedImageElement'](_0x4c7d2c['model']['document']['selection']),_0x4d3d1f=_0x4c7d2c['model']['createRangeOn'](_0x544267),_0x282086=_0x5ecdb3['value'];if(_0x282086==_0x1e4b65['value'])return;const _0x16c394={'commandName':'imageStyle','commandParams':[_0x1e4b65],'formatGroupId':_0x1f120b()};_0x4c7d2c['model']['change'](()=>{if(_0x2c7d7b['getSuggestions']()['filter'](_0x6177c1=>_0x6177c1['isInContent']&&_0x5022a1==_0x6177c1['author']&&('formatBlock'==_0x6177c1['type']||'formatInline'==_0x6177c1['type'])&&('imageStylePreApply'==_0x6177c1['subType']||'imageStylePostApply'==_0x6177c1['subType'])&&_0x6177c1['getFirstRange']()['isEqual'](_0x4d3d1f))['forEach'](_0x3a8c3c=>_0x2c7d7b['discardSuggestion'](_0x3a8c3c['head'])),_0x544267=_0x18168d['getClosestSelectedImageElement'](_0x4c7d2c['model']['document']['selection']),_0x4d3d1f=_0x4c7d2c['model']['createRangeOn'](_0x544267),_0x5ecdb3['refresh'](),_0x4c7d2c['commands']['get']('imageTypeInline')['refresh'](),_0x4c7d2c['commands']['get']('imageTypeBlock')['refresh'](),_0x282086=_0x5ecdb3['value'],_0x282086!=_0x1e4b65['value'])return _0x18168d['isInlineImage'](_0x544267)&&_0x5ecdb3['shouldConvertImageType'](_0x1e4b65['value'],_0x544267)?(_0x5a4ba3({..._0x1e4b65,'setImageSizes':!0x1}),_0x544267=_0x18168d['getClosestSelectedImageElement'](_0x4c7d2c['model']['document']['selection']),void _0x2c7d7b['markBlockFormat'](_0x544267,{..._0x16c394,'commandReversedParams':[{'value':_0x282086||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18168d['isBlockImage'](_0x544267)?_0x2c7d7b['markBlockFormat'](_0x544267,_0x16c394,[],'imageStylePostApply'):_0x2c7d7b['markInlineFormat'](_0x4d3d1f,_0x16c394,'imageStylePostApply'));});});for(const _0x1e7e36 of _0x4c7d2c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xcd23ea[_0x1e7e36['name']]=_0x1e7e36['title']['toLowerCase']();_0x2c7d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2c7d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2c7d7b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2c7d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x40b968])=>{_0x18168d['setImageNaturalSizeAttributes'](_0x40b968['getContainedElement']());}),_0x2c7d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d7b59,_0x444825)=>{_0x2c7d7b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d7b59,{'commandName':_0x444825['commandName'],'commandParams':_0x444825['commandReversedParams']});}),_0x2c7d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x832d11,_0x421134){if(_0x1cad46(_0x832d11,_0x421134))return[_0x832d11,_0x421134];if(_0x1cad46(_0x421134,_0x832d11))return[_0x421134,_0x832d11];return null;});const _0x2535e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1cad46(_0x1ed96b,_0x587ea3){const _0x1064ae=_0x2535e0['findIndex'](({type:_0x5d6ee5,subType:_0x31d82e})=>_0x1ed96b['type']==_0x5d6ee5&&_0x1ed96b['subType']==_0x31d82e),_0x6c11eb=_0x2535e0['findIndex'](({type:_0x4aa314,subType:_0x195f13})=>_0x587ea3['type']==_0x4aa314&&_0x587ea3['subType']==_0x195f13);if(_0x1064ae<0x0||_0x6c11eb<0x0)return!0x1;const _0x35531b=_0x1ed96b['getFirstRange'](),_0xe2b717=_0x587ea3['getFirstRange']();if((0x0==_0x1064ae||0x1==_0x1064ae)&&0x2==_0x6c11eb&&_0x35531b['isIntersecting'](_0xe2b717))return!0x0;if(0x2==_0x1064ae&&0x3==_0x6c11eb){const _0x5104e6=_0x2c7d7b['_findSuggestions'](_0x35531b,'insertion')['filter'](({suggestion:_0x2bf7dc,meta:_0x18e2b4})=>_0x18e2b4['isOwn']&&'convertInlineImageToBlock'==_0x2bf7dc['subType']);if(_0x5104e6['length']>0x1&&_0xe2b717['end']['isEqual'](_0x35531b['start']))return!0x0;if(0x1==_0x5104e6['length']&&(_0x35531b['start']['isEqual'](_0xe2b717['end'])||_0x35531b['end']['isEqual'](_0xe2b717['start'])))return!0x0;}if(0x3==_0x1064ae&&0x3==_0x6c11eb&&_0x35531b['start']['isBefore'](_0xe2b717['start'])){const _0x218769=_0x35531b['end']['nodeAfter'],_0x59b742=_0xe2b717['start']['nodeBefore'];return _0x18168d['isBlockImage'](_0x218769)&&_0x218769===_0x59b742;}return!0x1;}_0x4c7d2c['model']['document']['registerPostFixer'](()=>{let _0x184129=!0x1;const _0x55df35=Array['from'](_0x4c7d2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11f242,data:_0x218124}of _0x55df35){const {group:_0x52bcc7,type:_0x12cb67,subType:_0x1da568,id:_0x14bce7}=_0x2c7d7b['_splitMarkerName'](_0x11f242);if('suggestion'==_0x52bcc7&&_0x2c7d7b['hasSuggestion'](_0x14bce7)){if('formatBlock'==_0x12cb67&&('imageStylePreApply'==_0x1da568||'imageStylePostApply'==_0x1da568)){const _0x457d16=_0x2c7d7b['getSuggestion'](_0x14bce7);if(_0x218124['newRange']){const _0xd96604=_0x457d16['getFirstRange']()['getContainedElement']();if(_0x18168d['isBlockImage'](_0xd96604))continue;_0x2c7d7b['discardSuggestion'](_0x457d16),_0x184129=!0x0;}}if('insertion'==_0x12cb67&&'imageCaption'==_0x1da568&&!_0x218124['newRange']){const _0x7eb52=_0x2c7d7b['getSuggestion'](_0x14bce7);_0x7eb52['next']&&_0x7eb52['next']['isInContent']&&(_0x2c7d7b['discardSuggestion'](_0x7eb52['next']),_0x184129=!0x0);}}}return _0x184129;}),this['_registerLegacyDescription'](_0xcd23ea);}['_registerLegacyDescription'](_0x3924d9){const _0x432999=this['editor'],_0x5cc543=_0x432999['locale'];_0x432999['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401758=>{if('formatBlock'!=_0x401758['type']&&'formatInline'!=_0x401758['type'])return;const {data:_0x29d07a}=_0x401758;if(!_0x29d07a||'imageStyle'!=_0x29d07a['commandName'])return;const _0x1d94cd=_0x29d07a['commandParams'][0x0]['value'];return _0x4eb10e('side'===_0x1d94cd?o(_0x5cc543,'FORMAT_SIDE_IMAGE'):_0x3924d9[_0x1d94cd]||_0x1d94cd);function _0x4eb10e(_0x5b5866){return{'type':'format','content':o(_0x5cc543,'*Format:*\x20%0',_0x5b5866)};}});}}class at extends _0x54913d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x364f6d){super(_0x364f6d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x34e0cd=this['editor'],_0x5cbd01=_0x34e0cd['commands']['get']('importWord'),_0x35317a=_0x34e0cd['commands']['get']('trackChanges');_0x5cbd01&&(_0x5cbd01['on']('execute',(_0x4a0f21,[,_0x24618f])=>{this['_trackChangesValueDuringImport']=_0x35317a['value'],_0x24618f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5cbd01,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5cbd01,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x35317a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x34e0cd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x20f3da,_0x162bcb){const {suggestions:_0x370030}=_0x162bcb,_0x39e638=this['editor']['commands']['get']('trackChanges'),_0x1c44e9=_0x39e638['value'];this['_trackChangesValueDuringImport']!==_0x1c44e9&&(_0x39e638['execute'](),this['_trackChangesExecuted']=!0x0),_0x370030&&_0x370030['forEach'](({id:_0x5e497e,type:_0x54d089,author:_0x58496f,created_at:_0x36423c})=>{const _0x5bd816={'id':_0x5e497e,'type':_0x54d089,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x58496f,'createdAt':_0x36423c?new Date(_0x36423c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5bd816);});}}class ct extends _0x54913d{['afterInit'](){const _0x2c3849=this['editor'],_0x1e315a=_0x2c3849['plugins']['get']('TrackChangesEditing');if(_0x2c3849['plugins']['has']('IndentEditing')&&(_0x1e315a['enableCommand']('indent'),_0x1e315a['enableCommand']('outdent')),_0x2c3849['plugins']['has']('IndentBlock')){for(const _0x53a252 of['indentBlock','outdentBlock'])_0x1e315a['enableDefaultAttributesIntegration'](_0x53a252);}const _0x3e8e12=_0x2c3849['locale'];_0x1e315a['registerBlockAttribute']('blockIndent'),_0x1e315a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3e8e12,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33e237=this['editor'],_0x577000=_0x33e237['locale'],_0x1e6ac2=_0x33e237['plugins']['get']('TrackChangesEditing');_0x1e6ac2['descriptionFactory']['registerDescriptionCallback'](_0x5385a5=>{if('formatBlock'!=_0x5385a5['type'])return;const {data:_0x2b95e9}=_0x5385a5;if(!_0x2b95e9)return;if('indentBlock'!=_0x2b95e9['commandName']&&'outdentBlock'!=_0x2b95e9['commandName'])return;const _0x431489=_0x5385a5['getItems']()[0x0],_0xa77a72=_0x1e6ac2['descriptionFactory']['getItemLabel'](_0x431489);return'indentBlock'==_0x2b95e9['commandName']?{'type':'format','content':o(_0x577000,'*Indent:*\x20%0',_0xa77a72)}:'outdentBlock'==_0x2b95e9['commandName']?{'type':'format','content':o(_0x577000,'*Outdent:*\x20%0',_0xa77a72)}:void 0x0;});}}class ut extends _0x54913d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x54913d{['afterInit'](){const _0x3ea85f=this['editor'];if(!_0x3ea85f['plugins']['has']('LinkEditing'))return;const _0x2c8bd0=_0x3ea85f['plugins']['get']('TrackChangesEditing'),_0x320ee2=_0x3ea85f['commands']['get']('link');_0x2c8bd0['enableDefaultAttributesIntegration']('link'),_0x2c8bd0['enableDefaultAttributesIntegration']('unlink'),_0x2c8bd0['registerInlineAttribute']('linkHref');for(const _0x28fa51 of _0x320ee2['manualDecorators'])_0x2c8bd0['registerInlineAttribute'](_0x28fa51['id']),_0x2c8bd0['descriptionFactory']['registerAttributeLabel'](_0x28fa51['id'],'link\x20('+_0x28fa51['label']['toLowerCase']()+')');_0x2c8bd0['descriptionFactory']['registerDescriptionCallback'](_0x434c25=>{if('attribute'!=_0x434c25['type'])return;const {data:_0x517fdc}=_0x434c25;if(!_0x517fdc||'linkHref'!=_0x517fdc['key'])return;const _0x589f4a=_0x517fdc['newValue'],_0x2d6408=_0x3ea85f['locale'];return{'type':'format','content':null==_0x589f4a?o(_0x2d6408,'*Remove\x20link*'):o(_0x2d6408,'*Set\x20link:*\x20%0','\x22'+_0x589f4a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cc809=this['editor'],_0x536079=_0x5cc809['locale'];_0x5cc809['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaf46e0=>{if('formatInline'!=_0xaf46e0['type'])return;const {data:_0x29d381}=_0xaf46e0;if(_0x29d381){if('link'==_0x29d381['commandName']){const _0x50d05b=_0x29d381['commandParams'][0x0];return{'type':'format','content':o(_0x536079,'*Set\x20link:*\x20%0','\x22'+_0x50d05b+'\x22')};}return'unlink'==_0x29d381['commandName']?{'type':'format','content':o(_0x536079,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x54913d{['afterInit'](){const _0x48309c=this['editor'],_0x5d888f=_0x48309c['locale'];if(!_0x48309c['plugins']['has']('LegacyListEditing'))return;const _0x4e691b=_0x48309c['plugins']['get']('TrackChangesEditing'),_0x14f1c0=_0x48309c['plugins']['has']('LegacyTodoListEditing');function _0x5b0517(_0x408661){return()=>{const _0x3930c0=_0x48309c['model']['document']['selection'],_0x1c2870=_0x48309c['commands']['get'](_0x408661);if(_0x1c2870['value'])return void _0x48309c['execute']('paragraph',{});const _0xc5b742=_0x408661['slice'](0x0,-0x4),_0x4f283b=function(_0x43434e,_0xfc0b49,_0x11ae7e){let _0x1c367f=Array['from'](_0x43434e)['filter'](_0x3b3258=>function(_0x40988b,_0xfeaac0){return _0xfeaac0['checkChild'](_0x40988b['parent'],'listItem')&&!_0xfeaac0['isObject'](_0x40988b);}(_0x3b3258,_0x11ae7e));_0x1c367f=_0x1c367f['filter'](_0x3e652a=>!_0x3e652a['is']('element','listItem')||_0x3e652a['getAttribute']('listType')!=_0xfc0b49);const _0x3db93c=new Set();for(const _0xabbb40 of _0x1c367f)_0xabbb40['is']('element','listItem')?_0x3db93c['add'](fe(_0xabbb40)):_0x3db93c['add'](_0xabbb40);return Array['from'](_0x3db93c);}(_0x3930c0['getSelectedBlocks'](),_0xc5b742,_0x48309c['model']['schema']);_0x48309c['model']['change'](()=>{for(const _0x37c3b6 of _0x4f283b)_0x4e691b['markBlockFormat'](_0x37c3b6,{'commandName':_0x408661,'commandParams':[{'forceValue':!_0x1c2870['value']}],'formatGroupId':'blockName'},ue(_0x37c3b6));});};}function _0x1065e5(_0x3b20eb){return()=>{const _0x121f63=function(_0x3939c1){let _0x555bb6=Array['from'](_0x3939c1);const _0x2fffc8=_0x555bb6['findIndex'](_0x2fa522=>'listItem'!=_0x2fa522['name']);return _0x2fffc8>-0x1&&(_0x555bb6=_0x555bb6['slice'](0x0,_0x2fffc8)),_0x555bb6;}(_0x48309c['model']['document']['selection']['getSelectedBlocks']()),_0x449589=_0x48309c['model']['createRange'](_0x48309c['model']['createPositionAt'](_0x121f63[0x0],'before'),_0x48309c['model']['createPositionAt'](_0x121f63[_0x121f63['length']-0x1],'end'));_0x48309c['model']['change'](()=>{_0x4e691b['markBlockFormat'](_0x449589,{'commandName':_0x3b20eb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1c1f85){const _0x131ce6=new Set();for(const _0x30026b of _0x1c1f85){let _0x33efe6=_0x30026b['nextSibling'];for(;_0x33efe6&&_0x33efe6['getAttribute']('listIndent')>_0x30026b['getAttribute']('listIndent');)_0x131ce6['add'](_0x33efe6),_0x33efe6=_0x33efe6['nextSibling'];}return Array['from'](_0x131ce6);}(_0x121f63));});};}_0x4e691b['enableCommand']('numberedList',_0x5b0517('numberedList')),_0x4e691b['enableCommand']('bulletedList',_0x5b0517('bulletedList')),_0x14f1c0&&_0x4e691b['enableCommand']('todoList',_0x5b0517('todoList')),_0x4e691b['enableCommand']('indentList',_0x1065e5('indentList')),_0x4e691b['enableCommand']('outdentList',_0x1065e5('outdentList')),_0x14f1c0&&_0x4e691b['enableCommand']('checkTodoList',()=>{const _0x544c40=_0x48309c['commands']['get']('checkTodoList'),_0x3a59ee=Array['from'](_0x544c40['_selectedElements']);_0x3a59ee['filter'](_0x4782be=>_0x4782be['getAttribute']('todoListChecked')!=_0x544c40['value']),_0x48309c['model']['change'](()=>{for(const _0x1a81dd of _0x3a59ee)_0x4e691b['markBlockFormat'](_0x1a81dd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x544c40['value']}]});});}),_0x4e691b['descriptionFactory']['registerElementLabel']('listItem',_0x315199=>o(_0x5d888f,'ELEMENT_LIST_ITEM',_0x315199)),_0x4e691b['descriptionFactory']['registerDescriptionCallback'](_0x5b5004=>{if('formatBlock'!=_0x5b5004['type']&&'formatInline'!=_0x5b5004['type'])return;const {data:_0x4e12de}=_0x5b5004;if(_0x4e12de){if('numberedList'==_0x4e12de['commandName']||'bulletedList'==_0x4e12de['commandName']||'todoList'==_0x4e12de['commandName'])switch(_0x4e12de['commandName']['replace']('List','')){case'bulleted':return _0x2ec8cc(o(_0x5d888f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ec8cc(o(_0x5d888f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ec8cc(o(_0x5d888f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4e12de['commandName'])return{'type':'format','content':o(_0x5d888f,'*Indent:*\x20%0',o(_0x5d888f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4e12de['commandName'])return{'type':'format','content':o(_0x5d888f,'*Outdent:*\x20%0',o(_0x5d888f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4e12de['commandName'])return _0x4e12de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d888f,'*Check\x20item*')}:{'type':'format','content':o(_0x5d888f,'*Uncheck\x20item*')};}function _0x2ec8cc(_0x3ce30b){return{'type':'format','content':o(_0x5d888f,'*Change\x20to:*\x20%0',_0x3ce30b)};}});}}function fe(_0x41936b){const _0x5198ac=_0x41936b['getAttribute']('listIndent');if(0x0==_0x5198ac)return _0x41936b;let _0x1cb219=_0x41936b;for(;_0x41936b['previousSibling']&&_0x41936b['previousSibling']['is']('element','listItem');){const _0x4c35b9=_0x41936b['previousSibling']['getAttribute']('listIndent');if(_0x4c35b9==_0x5198ac)_0x1cb219=_0x41936b['previousSibling'];else{if(_0x4c35b9<_0x5198ac)break;}_0x41936b=_0x41936b['previousSibling'];}return _0x1cb219;}function ue(_0xd0b74b){const _0x16918a=[];if(_0xd0b74b['is']('element','listItem')&&_0xd0b74b['getAttribute']('listIndent')>0x0){let _0x29668e=_0xd0b74b['nextSibling'];for(;_0x29668e&&'listItem'==_0x29668e['name']&&_0x29668e['getAttribute']('listIndent')==_0xd0b74b['getAttribute']('listIndent');)_0x16918a['push'](_0x29668e),_0x29668e=_0x29668e['nextSibling'];}return _0x16918a;}class W extends _0x54913d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5b2ef3=this['editor']['config']['get']('list.properties'),_0x3708e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b2ef3['styles']&&_0x3708e4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5b2ef3['reversed']&&_0x3708e4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5b2ef3['startIndex']&&_0x3708e4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3708e4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xb63543,_0x420703={}){const _0x71a95e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45e975=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x71a95e['markMultiRangeBlockFormat'](_0x45e975,{'commandName':'listStyle','commandParams':[{'type':_0x420703['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2566ca,_0x5e1937={}){const _0x1a96dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19f584=this['_getSuggestionBlocks'](_0x337afe=>_0x337afe['is']('element','listItem')&&'numbered'===_0x337afe['getAttribute']('listType'));if(_0x19f584['length']<0x1)return;const _0x235272=_0x19f584['map'](_0xd3a511=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd3a511,'before'),this['editor']['model']['createPositionAt'](_0xd3a511,0x0)));this['editor']['model']['change'](()=>{_0x1a96dd['markMultiRangeBlockFormat'](_0x235272,{'commandName':'listReversed','commandParams':[{'reversed':_0x5e1937['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35c547,_0x12d190={}){const _0x494884=this['editor']['plugins']['get']('TrackChangesEditing'),_0x555394=this['_getSuggestionBlocks'](_0x1ee61d=>_0x1ee61d['is']('element','listItem')&&'numbered'===_0x1ee61d['getAttribute']('listType'));if(_0x555394['length']<0x1)return;const _0x31fe3d=_0x555394['map'](_0x4e501d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e501d,'before'),this['editor']['model']['createPositionAt'](_0x4e501d,0x0)));this['editor']['model']['change'](()=>{_0x494884['markMultiRangeBlockFormat'](_0x31fe3d,{'commandName':'listStart','commandParams':[{'startIndex':_0x12d190['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xa3ccdb){if('formatBlock'!=_0xa3ccdb['type']&&'formatInline'!=_0xa3ccdb['type'])return;const _0x10a978=this['editor']['locale'],{data:_0x5b2b78}=_0xa3ccdb;if(!_0x5b2b78)return;let _0x341b69,_0x11889c;switch(_0x5b2b78['commandName']){case'listStyle':_0x341b69='*Change\x20to:*\x20%0',_0x11889c={'type':'format','content':o(_0x10a978,_0x341b69,o(_0x10a978,this['_getTranslationKeyForListStyle'](_0x5b2b78['commandParams'][0x0]['type'])))};break;case'listReversed':_0x341b69=_0x5b2b78['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11889c={'type':'format','content':o(_0x10a978,_0x341b69)};break;case'listStart':_0x341b69='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11889c={'type':'format','content':o(_0x10a978,_0x341b69,_0x5b2b78['commandParams'][0x0]['startIndex'])};}return _0x11889c;}['_getSuggestionBlocksForListStyle'](){const _0x3ecc99=this['editor']['plugins']['get']('LegacyListUtils');let _0xaf8ba9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xaf8ba9[0x0]?.['is']('element','listItem')&&_0xaf8ba9['unshift'](..._0x3ecc99['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xaf8ba9[_0xaf8ba9['length']-0x1]?.['is']('element','listItem')&&_0xaf8ba9['push'](..._0x3ecc99['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xaf8ba9=[...new Set(_0xaf8ba9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xaf8ba9=_0xaf8ba9['filter'](_0xb63795=>_0xb63795['is']('element','listItem'))),_0xaf8ba9;}['_getSuggestionBlocks'](_0x35f416){const _0xd9ad5b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4efe92=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x35f416)['map'](_0x4c4f82=>{const _0x1f0d6a=this['editor']['model']['createPositionAt'](_0x4c4f82,0x0);return[..._0xd9ad5b['getSiblingNodes'](_0x1f0d6a,'backward'),..._0xd9ad5b['getSiblingNodes'](_0x1f0d6a,'forward')];})['flat']();return _0x4efe92=[...new Set(_0x4efe92)],_0x4efe92;}['_getTranslationKeyForListStyle'](_0x30cbfb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x30cbfb)||'default')['toUpperCase']()+'_LIST_'+_0x30cbfb['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x54913d{['afterInit'](){const _0x5c1fb9=this['editor'];if(!_0x5c1fb9['plugins']['has']('MediaEmbedEditing'))return;const _0x303298=_0x5c1fb9['plugins']['get']('TrackChangesEditing'),_0x4b2bb4=_0x5c1fb9['locale'];_0x303298['enableCommand']('mediaEmbed'),_0x303298['descriptionFactory']['registerElementLabel']('media',_0x3cfb3=>o(_0x4b2bb4,'ELEMENT_MEDIA',_0x3cfb3)),_0x5c1fb9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a29cc,{writer:_0x355484,options:_0x2903a9})=>{if(_0x2903a9['showSuggestionHighlights'])return _0x355484['createEmptyElement']('div');},'converterPriority':'high'}),_0x5c1fb9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3da7df,_0x22793c,_0x5619ef)=>{_0x5619ef['options']['showSuggestionHighlights']&&_0x3da7df['stop']();},{'priority':'high'});}}class mt extends _0x54913d{['afterInit'](){const _0x26da60=this['editor'];_0x26da60['plugins']['has']('MentionEditing')&&_0x26da60['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x54913d{['afterInit'](){const _0x3ffdfa=this['editor'];if(!_0x3ffdfa['plugins']['has']('MergeFieldsEditing'))return;_0x3ffdfa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x3ffdfa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x960a4f=_0x3ffdfa['plugins']['get']('TrackChangesEditing'),_0x1eafdb=_0x3ffdfa['locale'];_0x960a4f['descriptionFactory']['registerElementLabel']('mergeField',_0x587999=>o(_0x1eafdb,'ELEMENT_MERGE_FIELD',_0x587999)),_0x960a4f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1fe874=>o(_0x1eafdb,'ELEMENT_MERGE_FIELD',_0x1fe874)),_0x960a4f['descriptionFactory']['registerDescriptionCallback'](_0x4ac920=>{if('insertion'!=_0x4ac920['type']&&'deletion'!=_0x4ac920['type'])return;const _0x1486b3=_0x4ac920['getContainedElement']();if(null==_0x1486b3)return;if(!_0x1486b3['is']('element','mergeField')&&!_0x1486b3['is']('element','mergeFieldBlock'))return;const _0x2dd25b=_0x3ffdfa['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1486b3['getAttribute']('id'));return'insertion'==_0x4ac920['type']?{'type':'insertion','content':o(_0x1eafdb,'*Insert:*\x20%0','\x22'+_0x2dd25b+'\x22\x20'+o(_0x1eafdb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1eafdb,'*Remove:*\x20%0','\x22'+_0x2dd25b+'\x22\x20'+o(_0x1eafdb,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x54913d{['afterInit'](){const _0x15bb0c=this['editor'],_0xfc36c5=_0x15bb0c['plugins']['get']('TrackChangesEditing');_0x15bb0c['plugins']['has']('MultiLevelList')&&(_0xfc36c5['enableDefaultAttributesIntegration']('multiLevelList'),_0xfc36c5['registerBlockAttribute']('listMarkerStyle'),_0xfc36c5['descriptionFactory']['registerDescriptionCallback'](_0x1faa79=>this['handleDescriptions'](_0x1faa79)));}['handleDescriptions'](_0x113e6f){const _0x1c6555=this['editor']['locale'],{data:_0x1d8a58}=_0x113e6f,_0x3bc982={'type':'format','content':''};if(_0x1d8a58&&'listMarkerStyle'==_0x1d8a58['key']){if(!_0x1d8a58['oldValue'])return{'type':'format','content':o(_0x1c6555,'*Set\x20format:*\x20%0',o(_0x1c6555,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1d8a58['newValue']+')'};if(!_0x1d8a58['newValue']){let _0x771d1c=_0x113e6f['head'];for(;_0x771d1c;){if(_0x771d1c['data']&&'listType'==_0x771d1c['data']['key']&&_0x771d1c['data']['newValue'])return _0x3bc982;_0x771d1c=_0x771d1c['next'];}return{'type':'format','content':o(_0x1c6555,'*Remove\x20format:*\x20%0',o(_0x1c6555,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1d8a58['oldValue']+')'};}}}}class kt extends _0x54913d{['afterInit'](){const _0x2e2778=this['editor'];if(!_0x2e2778['plugins']['has']('PageBreakEditing'))return;_0x2e2778['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45f572=_0x2e2778['plugins']['get']('TrackChangesEditing'),_0x2bdace=_0x2e2778['locale'];_0x45f572['descriptionFactory']['registerElementLabel']('pageBreak',_0x5271d4=>o(_0x2bdace,'ELEMENT_PAGE_BREAK',_0x5271d4));}}class bt extends _0x54913d{['afterInit'](){const _0x161b64=this['editor'];if(!_0x161b64['plugins']['has']('Paragraph'))return;const _0x1d2f75=_0x161b64['locale'],_0x3297cb=_0x161b64['plugins']['get']('TrackChangesEditing');_0x3297cb['descriptionFactory']['registerElementLabel']('paragraph',_0x4ff002=>o(_0x1d2f75,'ELEMENT_PARAGRAPH',_0x4ff002)),_0x3297cb['enableDefaultAttributesIntegration']('paragraph'),_0x3297cb['enableCommand']('insertParagraph'),_0x161b64['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x161b64),{'priority':'highest'}),_0x161b64['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40e183,_0x36ea72,_0x5af697)=>{_0x5af697['options']['showSuggestionHighlights']&&nr(_0x161b64,{'showActiveMarker':!0x1})(_0x40e183,_0x36ea72,_0x5af697);},{'priority':'highest'});const _0xb2a454=_0x3297cb['descriptionFactory'];_0xb2a454['registerDescriptionCallback'](_0xeb02b1=>{if('insertion'!==_0xeb02b1['type'])return;const {start:_0x279940,end:_0x34093d}=_0xeb02b1['getFirstRange']();if(!_0x279940['isTouching'](_0x34093d)||!_0x279940['nodeAfter'])return;const _0x581928=_0x161b64['model']['schema'],_0x496d05=_0x279940['nodeAfter'];return _0x581928['isBlock'](_0x496d05)&&!_0x581928['isLimit'](_0x496d05)&&_0x581928['checkChild'](_0x496d05,'$text')?{'type':'insertion','content':o(_0x1d2f75,'*Insert:*\x20%0',_0xb2a454['getItemLabel'](_0x496d05,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x199cd8=this['editor'],_0x4a105d=_0x199cd8['locale'];_0x199cd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e0b6f=>{if('formatBlock'!=_0x2e0b6f['type'])return;const {data:_0x5527d9}=_0x2e0b6f;return _0x5527d9&&'paragraph'==_0x5527d9['commandName']?{'type':'format','content':o(_0x4a105d,'*Change\x20to:*\x20%0',o(_0x4a105d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xe6a8fa,{showActiveMarker:_0x4ef6e2=!0x0}={}){return(_0x5965f5,_0x3ba7a9,_0x3b257d)=>{const _0x596723=_0xe6a8fa['plugins']['get']('TrackChangesEditing'),_0x2caaf0=_0x3ba7a9['markerRange']['start'],_0x39635b=_0x3ba7a9['markerRange']['end'],_0xf09c94=_0xe6a8fa['model']['schema'];if(!_0x2caaf0['isTouching'](_0x39635b)||!_0x2caaf0['nodeAfter'])return;const _0x384720=_0x2caaf0['nodeAfter'];if(_0xf09c94['isBlock'](_0x384720)&&!_0xf09c94['isLimit'](_0x384720)&&_0xf09c94['checkChild'](_0x384720,'$text')){if(!_0x3b257d['consumable']['consume'](_0x3ba7a9['markerRange'],_0x5965f5['name']))return;const {authorId:_0x580571}=_0x596723['_splitMarkerName'](_0x3ba7a9['markerName']),_0x5b54b5=_0x3b257d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x580571}),_0x49618e=_0x3b257d['mapper']['toViewPosition'](_0x39635b);_0x4ef6e2&&_0x596723['activeMarkers']['includes'](_0x3ba7a9['markerName'])&&_0x3b257d['writer']['addClass']('ck-suggestion-marker--active',_0x5b54b5),_0x3b257d['writer']['insert'](_0x49618e,_0x5b54b5),_0x3b257d['mapper']['bindElementToMarker'](_0x5b54b5,_0x3ba7a9['markerName']);}};}class wt extends _0x54913d{['afterInit'](){const _0x456cc3=this['editor'];if(!_0x456cc3['plugins']['has']('RemoveFormatEditing'))return;_0x456cc3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5237ac=this['editor'];_0x5237ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3364f2=>{if('formatBlock'!=_0x3364f2['type']&&'formatInline'!=_0x3364f2['type'])return;const {data:_0x52966a}=_0x3364f2;return _0x52966a&&'removeFormat'==_0x52966a['commandName']?{'type':'format','content':o(_0x5237ac['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x54913d{['afterInit'](){const _0x2944e9=this['editor'];if(!_0x2944e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49b1bb=_0x2944e9['plugins']['get']('TrackChangesEditing');_0x49b1bb['enableCommand']('goToPreviousRestrictedEditingException'),_0x49b1bb['enableCommand']('goToNextRestrictedEditingException');const _0x545f40=_0x2944e9['plugins']['get']('RestrictedEditingModeEditing');_0x545f40['enableCommand']('trackChanges'),_0x545f40['enableCommand']('acceptSuggestion'),_0x545f40['enableCommand']('discardSuggestion'),_0x545f40['enableCommand']('acceptAllSuggestions'),_0x545f40['enableCommand']('discardAllSuggestions'),_0x545f40['enableCommand']('acceptSelectedSuggestions'),_0x545f40['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x54913d{static get['requires'](){return[_0x56a456];}['init'](){const _0x181d69=this['editor'],_0x5958be=_0x181d69['plugins']['get']('TrackChangesEditing');_0x5958be['enableCommand']('shiftEnter'),_0x181d69['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x181d69),{'priority':'high'}),_0x181d69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x181d69),{'priority':'high'}),_0x181d69['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x520374,_0x2d5575,_0x34465a)=>{_0x34465a['options']['showSuggestionHighlights']&&ge(_0x181d69,{'showActiveMarker':!0x1})(_0x520374,_0x2d5575,_0x34465a);}),_0x5958be['descriptionFactory']['registerElementLabel']('softBreak',_0xa55fe9=>o(_0x181d69['locale'],'ELEMENT_LINE_BREAK',_0xa55fe9));}}function ge(_0xe17dae,{showActiveMarker:_0x4da0a5=!0x0}={}){return(_0x5b2e0b,_0x3f658b,_0x2ba7)=>{const _0x139c2d=_0xe17dae['plugins']['get']('TrackChangesEditing');if(!_0x2ba7['consumable']['test'](_0x3f658b['markerRange'],_0x5b2e0b['name']))return;const _0x36b355=_0xe17dae['model'];for(const _0x2d386f of _0x3f658b['markerRange']['getItems']()){if(!_0x2d386f['is']('element','softBreak'))continue;const _0xfe194e='deletion'==_0x3f658b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3199bd}=_0x139c2d['_splitMarkerName'](_0x3f658b['markerName']),_0x14b0e2=_0x2ba7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfe194e,'data-author-id':_0x3199bd}),_0x56df07=_0x2ba7['mapper']['toViewPosition'](_0x36b355['createPositionBefore'](_0x2d386f));_0x4da0a5&&_0x139c2d['activeMarkers']['includes'](_0x3f658b['markerName'])&&_0x2ba7['writer']['addClass']('ck-suggestion-marker--active',_0x14b0e2),_0x2ba7['writer']['insert'](_0x56df07,_0x14b0e2),_0x2ba7['mapper']['bindElementToMarker'](_0x14b0e2,_0x3f658b['markerName']);}};}class St extends _0x54913d{['afterInit'](){const _0xf13402=this['editor'],_0x3d10fe=_0xf13402['model'],_0x25d3fe=_0xf13402['locale'];if(!_0xf13402['plugins']['has']('StandardEditingModeEditing'))return;const _0x2438d2=_0xf13402['plugins']['get']('TrackChangesEditing'),_0x2a0665='restrictedEditingException',_0x2d1a32=_0xf13402['commands']['get'](_0x2a0665);_0x2438d2['enableCommand'](_0x2a0665,(_0x166a91,_0x4ad966={})=>{const _0x214f6c=_0x3d10fe['document']['selection'];if(_0x214f6c['isCollapsed'])return void _0x166a91(_0x4ad966);const _0x367d7f=void 0x0!==_0x4ad966['forceValue']?_0x4ad966['forceValue']:!_0x2d1a32['value'];_0x3d10fe['change'](()=>{const _0x389e92=Array['from'](_0x214f6c['getRanges']());for(const _0x26eedf of _0x389e92){const _0x116216=_0x367d7f?[_0x26eedf]:io(_0x2a0665,_0x26eedf,_0x3d10fe);for(const _0x283955 of _0x116216)_0x2438d2['markInlineFormat'](_0x283955,{'commandName':_0x2a0665,'commandParams':[{'forceValue':_0x367d7f}]});}});}),_0x2438d2['descriptionFactory']['registerDescriptionCallback'](_0x1cde43=>{if('formatBlock'!=_0x1cde43['type']&&'formatInline'!=_0x1cde43['type'])return;const {data:_0x4e60cf}=_0x1cde43;return _0x4e60cf&&_0x4e60cf['commandName']==_0x2a0665?_0x4e60cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25d3fe,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x25d3fe,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x54913d{['afterInit'](){const _0x2fe9c1=this['editor'];if(!_0x2fe9c1['plugins']['has']('Style')||!_0x2fe9c1['plugins']['has']('DataSchema'))return;const _0x404b84=_0x2fe9c1['plugins']['get']('TrackChangesEditing'),_0x4ddcff=_0x2fe9c1['locale'],_0x57ee6a=_0x2fe9c1['config']['get']('style')||{},_0x175a76=_0x2fe9c1['plugins']['get']('GeneralHtmlSupport'),_0x4c9123=_0x2fe9c1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fe9c1['plugins']['get']('DataSchema'),_0x57ee6a['definitions']);_0x404b84['enableDefaultAttributesIntegration']('style');const _0x38e170=new Set();for(const _0x2a203a of _0x4c9123['block']){const _0x2d7acf=_0x175a76['getGhsAttributeNameForElement'](_0x2a203a['element']);_0x38e170['add'](_0x2d7acf);}const _0x2122df=new Set();for(const _0x2154cb of _0x4c9123['inline']){const _0xe28dc=_0x175a76['getGhsAttributeNameForElement'](_0x2154cb['element']);_0x2122df['add'](_0xe28dc);for(const _0x2346c6 of _0x2154cb['ghsAttributes'])_0x2122df['add'](_0x2346c6);}for(const _0x56a8b0 of _0x38e170)_0x404b84['registerBlockAttribute'](_0x56a8b0),_0x404b84['descriptionFactory']['registerAttributeLabel'](_0x56a8b0,o(_0x4ddcff,'FORMAT_STYLE'));for(const _0x1753e1 of _0x2122df)_0x404b84['registerInlineAttribute'](_0x1753e1),_0x404b84['descriptionFactory']['registerAttributeLabel'](_0x1753e1,o(_0x4ddcff,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef354=this['editor'],_0x3ccf6e=_0x2ef354['locale'];_0x2ef354['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x505ada=>{if('formatBlock'!=_0x505ada['type']&&'formatInline'!=_0x505ada['type'])return;const {data:_0x1b735b}=_0x505ada;return _0x1b735b&&'style'===_0x1b735b['commandName']?_0x1b735b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ccf6e,'*Set\x20format:*\x20%0',_0x1b735b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3ccf6e,'*Remove\x20format:*\x20%0',_0x1b735b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x54913d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c51fa){super(_0x5c51fa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xe8d2bf=this['editor'],_0x5a100f=_0xe8d2bf['model']['document']['selection'];if(!_0xe8d2bf['plugins']['has']('TableEditing'))return;const _0x5ac2b6=_0xe8d2bf['locale'],_0x30d013=_0xe8d2bf['plugins']['get']('TrackChangesEditing'),_0x1ae6d9=_0xe8d2bf['plugins']['get']('TableUtils');_0x30d013['descriptionFactory']['registerElementLabel']('table',_0x3f6ffc=>o(_0x5ac2b6,'ELEMENT_TABLE',_0x3f6ffc)),this['_setupColumnsRowsFixing'](),_0x30d013['enableCommand']('insertTable'),_0x30d013['enableCommand']('selectTableRow'),_0x30d013['enableCommand']('selectTableColumn');for(const _0x31e9b1 of['insertTableRowAbove','insertTableRowBelow']){const _0x22a3d6=_0xe8d2bf['commands']['get'](_0x31e9b1);_0x30d013['enableCommand'](_0x31e9b1,_0x391c8c=>{_0xe8d2bf['model']['change'](_0x5d667c=>{_0x391c8c();const _0x3bd2b9='above'===_0x22a3d6['order'],_0x3e68fa=_0x1ae6d9['getSelectionAffectedTableCells'](_0x5a100f),_0x13223e=_0x1ae6d9['getRowIndexes'](_0x3e68fa),_0xfeb7cb=_0x3bd2b9?_0x13223e['first']-0x1:_0x13223e['last']+0x1,_0x4c898f=_0x3e68fa[0x0]['findAncestor']('table'),_0x2efa31=_0x1ae6d9['createTableWalker'](_0x4c898f,{'startRow':_0xfeb7cb,'endRow':_0xfeb7cb}),_0xfd6e5c=Array['from'](_0x2efa31)['map'](_0x73bba3=>_0x5d667c['createRangeOn'](_0x73bba3['cell']));_0x30d013['markMultiRangeInsertion'](_0xfd6e5c,'tableRow');});});}for(const _0x439a79 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3f568c=_0xe8d2bf['commands']['get'](_0x439a79);_0x30d013['enableCommand'](_0x439a79,_0x4edcc9=>{_0xe8d2bf['model']['change'](_0x142e0a=>{_0x4edcc9();const _0x163073='left'===_0x3f568c['order'],_0x6aac4e=_0x1ae6d9['getSelectionAffectedTableCells'](_0x5a100f),_0x3fb2b8=_0x1ae6d9['getColumnIndexes'](_0x6aac4e),_0x2b5595=_0x163073?_0x3fb2b8['first']-0x1:_0x3fb2b8['last']+0x1,_0x56fdf7=_0x6aac4e[0x0]['findAncestor']('table'),_0x2722a6=_0x1ae6d9['createTableWalker'](_0x56fdf7,{'startRow':0x0,'column':_0x2b5595,'includeAllSlots':!0x1}),_0x539e5f=Array['from'](_0x2722a6)['map'](_0x5072d6=>_0x142e0a['createRangeOn'](_0x5072d6['cell']));_0x30d013['markMultiRangeInsertion'](_0x539e5f,'tableColumn');});});}for(const _0x2b1600 of['removeTableRow','removeTableColumn']){const _0x5a0ce3=_0x2b1600['substr'](0xb),_0x2c314c=_0x5a0ce3['toLowerCase'](),_0x414cc6=_0x2c314c['substr'](0x0,0x3)+'span',_0x509914='table'+_0x5a0ce3,_0xf6f793='min'+_0x5a0ce3,_0x32d4cc='max'+_0x5a0ce3;_0x30d013['enableCommand'](_0x2b1600,()=>{_0xe8d2bf['model']['change'](_0x5bb556=>{const _0x343672=_0x1ae6d9['getSelectionAffectedTableCells'](_0x5a100f),_0x4cbd0b=_0x343672[0x0]['findAncestor']('table');let _0x18530b;if('removeTableRow'==_0x2b1600){const _0x1419a2=_0x1ae6d9['getRowIndexes'](_0x343672);_0x18530b={'startRow':_0x1419a2['first'],'endRow':_0x1419a2['last'],'includeAllSlots':!0x0};}else{const _0x3e70c7=_0x1ae6d9['getColumnIndexes'](_0x343672);_0x18530b={'startColumn':_0x3e70c7['first'],'endColumn':_0x3e70c7['last'],'includeAllSlots':!0x0};}const _0x9b0d93=_0x1ae6d9['createTableWalker'](_0x4cbd0b,_0x18530b),_0x5633c4=Array['from'](_0x9b0d93)['map'](({cell:_0x25d01b})=>_0x25d01b),_0x5eff3b=be(_0x5633c4['filter'](_0x585f5a=>_0x585f5a['hasAttribute'](_0x414cc6))),_0x1ad330=be(_0x5633c4['filter'](_0x2b1854=>!_0x2b1854['hasAttribute'](_0x414cc6)))['map'](_0x3d7e69=>_0x5bb556['createRangeOn'](_0x3d7e69)),_0x29332c=_0x30d013['markMultiRangeDeletion'](_0x1ad330,_0x509914);if(_0x29332c&&('tableRow'==_0x29332c['subType']||'tableColumn'==_0x29332c['subType'])){const _0x97166b=this['_getSuggestionCoords'](_0x29332c);for(const _0x457824 of _0x5eff3b){const _0x1e44be=_0x5bb556['createRangeOn'](_0x457824),_0x236e56=_0x1ae6d9['getCellLocation'](_0x457824),_0x487a6e=_0x457824['getAttribute'](_0x414cc6)-0x1,_0x1e957d=_0x97166b[_0xf6f793],_0x19df0a=_0x97166b[_0x32d4cc];_0x1e957d<=_0x236e56[_0x2c314c]&&_0x236e56[_0x2c314c]+_0x487a6e<=_0x19df0a&&_0x29332c['addRange'](_0x1e44be);}}});});}function _0x5799a8(_0x1e1f1a){const _0x4d830e=Array['from'](_0x5a100f['getRanges']())['map'](_0x6a896=>_0x8342a4['fromRange'](_0x6a896));_0xe8d2bf['model']['change'](_0x41a297=>{const _0x886029=_0x41a297['batch'];_0x1e1f1a=_0x1e1f1a['filter'](_0x412260=>'$graveyard'!=_0x412260['root']['rootName']),_0x41a297['setSelection'](_0x1e1f1a),_0xe8d2bf['commands']['get']('removeTableRow')['refresh'](),_0xe8d2bf['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xe8d2bf['model']['enqueueChange'](()=>{_0xe8d2bf['model']['enqueueChange'](_0x886029,_0x12360e=>{const _0x4c2d48=_0x4d830e['filter'](_0x1b1699=>'$graveyard'!=_0x1b1699['root']['rootName']);_0x4c2d48['length']>0x0&&_0x12360e['setSelection'](_0x4c2d48);for(const _0x42426a of _0x4d830e)_0x42426a['detach']();});});});}function _0x10e0af(_0x1d9d00){_0xe8d2bf['model']['change'](_0x139b65=>{const _0x1f9d48=Array['from'](_0x5a100f['getRanges']())['map'](_0x4b4cad=>_0x8342a4['fromRange'](_0x4b4cad)),_0x1a529f=[];for(const _0x2c606e of _0x1d9d00)for(const _0x589422 of _0x2c606e['getItems']({'shallow':!0x0}))_0x1a529f['push'](_0x589422);for(const _0x176787 of _0x1a529f)'$graveyard'!=_0x176787['root']['rootName']&&(_0x139b65['setSelection'](_0x139b65['createPositionAt'](_0x176787,0x0)),_0xe8d2bf['commands']['get']('removeTableColumn')['refresh'](),_0xe8d2bf['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x25a9bb=_0x1f9d48['filter'](_0x12ec8a=>'$graveyard'!=_0x12ec8a['root']['rootName']);_0x25a9bb['length']>0x0&&_0x139b65['setSelection'](_0x25a9bb);for(const _0x100ae9 of _0x1f9d48)_0x100ae9['detach']();});}function _0x565681(_0x4e9686,_0x529e98){return _0x529e98['every'](_0x59342d=>_0x4e9686['some'](_0x1e9159=>_0x1e9159['end']['isEqual'](_0x59342d['start'])||_0x59342d['end']['isEqual'](_0x1e9159['start'])));}function _0x301f5e(_0x21eb85,_0x2b288d){return!_0x21eb85['some'](_0x318abc=>_0x2b288d['some'](_0x455fc3=>_0x318abc['isIntersecting'](_0x455fc3)))&&_0x21eb85['some'](_0x7254d7=>_0x2b288d['some'](_0x5d8aed=>_0x7254d7['end']['isTouching'](_0x5d8aed['start'])));}_0xe8d2bf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9674c2,_0x3912c0,_0x4b4051)=>{if(!_0x4b4051['options']['showSuggestionHighlights'])return;const _0x3b33e2=_0x3912c0['item'];if(!_0x3b33e2)return;const _0x51c3b3=_0x4b4051['mapper']['toViewElement'](_0x3b33e2);function _0x1d4c1e(_0x48cb3e){return Array['isArray'](_0x48cb3e)?_0x48cb3e:[_0x48cb3e];}_0x51c3b3&&'tableCell'===_0x3b33e2['name']&&_0x21bee5(_0x51c3b3,_0x4b4051['writer'],(_0x2fa13e,_0x3673d2,_0x47eba5)=>_0x47eba5['addClass'](_0x1d4c1e(_0x3673d2['classes']),_0x2fa13e),(_0xe0d371,_0x79d0ec,_0x11a844)=>_0x11a844['removeClass'](_0x1d4c1e(_0x79d0ec['classes']),_0xe0d371));},{'priority':'highest'}),_0x30d013['descriptionFactory']['registerDescriptionCallback'](_0x8203e4=>{if('insertion'!=_0x8203e4['type']&&'deletion'!=_0x8203e4['type'])return;const _0x2a2043=_0x8203e4['getContainedElement']();if(null!=_0x2a2043&&_0x2a2043['is']('element','table')){if('insertion'==_0x8203e4['type']){const _0x1906d8=_0x8203e4['getItems']()['filter'](_0x560713=>_0x560713['is']('$textProxy'))['map'](_0x1711c7=>_0x1711c7['data']);if(_0x1906d8['length'])return{'type':'insertion','content':o(_0x5ac2b6,'*Insert:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1906d8['join']('\x20')+'\x22'))};}if('deletion'==_0x8203e4['type']){const _0x566148=_0x8203e4['getItems']()['filter'](_0x5f293d=>_0x5f293d['is']('$textProxy'))['map'](_0x455085=>_0x455085['data']);if(_0x566148['length'])return{'type':'deletion','content':o(_0x5ac2b6,'*Remove:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x566148['join']('\x20')+'\x22'))};}}}),_0x30d013['descriptionFactory']['registerDescriptionCallback'](_0x4d39e5=>{if('tableRow'==_0x4d39e5['subType']){const _0x29cae3=_0x4d39e5['getItems']()['filter'](_0x1e3e2e=>_0x1e3e2e['is']('$textProxy'))['map'](_0x47c1d2=>_0x47c1d2['data']),_0x5de05a=this['_getSuggestionCoords'](_0x4d39e5),_0x2b09ad=_0x5de05a['maxRow']-_0x5de05a['minRow']+0x1;if('insertion'==_0x4d39e5['type'])return _0x29cae3['length']?{'type':'insertion','content':o(_0x5ac2b6,'*Insert:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b09ad,'\x22'+_0x29cae3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5ac2b6,'*Insert:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_ROW',_0x2b09ad))};if('deletion'==_0x4d39e5['type'])return _0x29cae3['length']?{'type':'deletion','content':o(_0x5ac2b6,'*Remove:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b09ad,'\x22'+_0x29cae3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5ac2b6,'*Remove:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_ROW',_0x2b09ad))};}if('tableColumn'==_0x4d39e5['subType']){const _0x5f3b9c=_0x4d39e5['getItems']()['filter'](_0x568ff2=>_0x568ff2['is']('$textProxy'))['map'](_0x5b1d9a=>_0x5b1d9a['data']),_0x178987=this['_getSuggestionCoords'](_0x4d39e5),_0x22b501=_0x178987['maxColumn']-_0x178987['minColumn']+0x1;if('insertion'==_0x4d39e5['type'])return _0x5f3b9c['length']?{'type':'insertion','content':o(_0x5ac2b6,'*Insert:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x22b501,'\x22'+_0x5f3b9c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5ac2b6,'*Insert:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_COLUMN',_0x22b501))};if('deletion'==_0x4d39e5['type'])return _0x5f3b9c['length']?{'type':'deletion','content':o(_0x5ac2b6,'*Remove:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x22b501,'\x22'+_0x5f3b9c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5ac2b6,'*Remove:*\x20%0',o(_0x5ac2b6,'ELEMENT_TABLE_COLUMN',_0x22b501))};}}),_0x30d013['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5799a8),_0x30d013['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5799a8),_0x30d013['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x10e0af),_0x30d013['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x10e0af),_0x30d013['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x565681),_0x30d013['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x565681),_0x30d013['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x301f5e),_0x30d013['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x301f5e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xd012ff=this['editor'],_0x280101=_0xd012ff['model']['document']['selection'];return(_0x33258a,_0x38d4b8)=>{_0xd012ff['model']['change'](_0x5dbec5=>{const {commandName:_0x456a76,commandParams:_0x4cc0a7}=_0x38d4b8;let _0x41384f=_0x33258a[0x0]['end']['nodeBefore'];_0x4cc0a7&&_0x4cc0a7[0x0]&&!0x1===_0x4cc0a7[0x0]['forceValue']&&(_0x41384f=_0x33258a[0x0]['start']['nodeAfter']);const _0x5f2c50=_0x5dbec5['createRangeIn'](_0x41384f);if('$graveyard'==_0x5f2c50['root']['rootName'])return;const _0x56c81=Array['from'](_0x280101['getRanges']())['map'](_0x43c324=>_0x8342a4['fromRange'](_0x43c324));_0x5dbec5['setSelection'](_0x5f2c50),_0xd012ff['commands']['get'](_0x456a76)['refresh'](),_0x4cc0a7['push']({'forceDefaultExecution':!0x0}),_0xd012ff['execute'](_0x456a76,..._0x4cc0a7);const _0x412e83=_0x56c81['filter'](_0x281321=>'$graveyard'!=_0x281321['root']['rootName']);_0x412e83['length']>0x0&&_0x5dbec5['setSelection'](_0x412e83);for(const _0xd15bca of _0x56c81)_0xd15bca['detach']();});};}['_getCoordsForCells'](_0x1bde1e){const _0x5a8bb9=this['editor']['plugins']['get']('TableUtils');let _0x25f0bc=Number['MAX_SAFE_INTEGER'],_0x13f734=Number['MIN_SAFE_INTEGER'],_0x3a30ea=Number['MAX_SAFE_INTEGER'],_0x5e57ee=Number['MIN_SAFE_INTEGER'];for(const _0x4a13b7 of _0x1bde1e){if('$graveyard'==_0x4a13b7['root']['rootName'])continue;const {row:_0x4c6efb,column:_0xd45d1e}=_0x5a8bb9['getCellLocation'](_0x4a13b7),_0x247530=_0x4a13b7['hasAttribute']('rowspan')?_0x4a13b7['getAttribute']('rowspan')-0x1:0x0,_0x3d7d80=_0x4a13b7['hasAttribute']('colspan')?_0x4a13b7['getAttribute']('colspan')-0x1:0x0;_0x25f0bc=_0x4c6efb<_0x25f0bc?_0x4c6efb:_0x25f0bc,_0x13f734=_0x4c6efb+_0x247530>_0x13f734?_0x4c6efb+_0x247530:_0x13f734,_0x3a30ea=_0xd45d1e<_0x3a30ea?_0xd45d1e:_0x3a30ea,_0x5e57ee=_0xd45d1e+_0x3d7d80>_0x5e57ee?_0xd45d1e+_0x3d7d80:_0x5e57ee;}return{'minRow':_0x25f0bc,'maxRow':_0x13f734,'minColumn':_0x3a30ea,'maxColumn':_0x5e57ee};}['_setupColumnsRowsFixing'](){const _0x29adf1=this['editor'],_0x12031c=_0x29adf1['plugins']['get']('TrackChangesEditing'),_0x228ed6=_0x29adf1['plugins']['get']('TableUtils');_0x29adf1['model']['document']['on']('change:data',()=>{const _0x5de4bc=Array['from'](_0x29adf1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ece56,data:_0x2073f3}of _0x5de4bc){const {group:_0x3b73ab,id:_0x41632d,subType:_0x5026ea}=_0x12031c['_splitMarkerName'](_0x4ece56);if('suggestion'!=_0x3b73ab)continue;if(null!=_0x2073f3['oldRange'])continue;const _0x19d320=_0x12031c['getSuggestion'](_0x41632d);this['_tablePostFixingSubtypes']['includes'](_0x5026ea)&&this['_tableSuggestions']['add'](_0x19d320);}},{'priority':'low'});const _0x294c68=(_0xf120cb,_0x38f86e)=>{let _0x31e5df=!0x1;const _0x5e11a8=_0x38f86e['createRangeOn'](_0xf120cb),_0x3da6d8=_0xf120cb['findAncestor']('table'),_0x208971=_0x228ed6['getCellLocation'](_0xf120cb);for(const _0x3ceb8d of this['_tableSuggestions']){const _0x4a91ab=_0x3ceb8d['subType'],_0x4396c2=_0x4a91ab['startsWith']('tablePaste'),_0x27fece=_0x4a91ab['substr'](_0x4396c2?0xa:0x5),_0x57580c=_0x27fece['toLowerCase'](),_0x1fa078=_0x57580c['substr'](0x0,0x3)+'span',_0x4ec420='min'+_0x27fece,_0x5cbde7='max'+_0x27fece;if(!_0x3ceb8d['isInContent'])continue;if(_0x3da6d8!=_0x3ceb8d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3ceb8d['isIntersectingWithRange'](_0x5e11a8))continue;const _0x581f37=_0xf120cb['hasAttribute'](_0x1fa078)?_0xf120cb['getAttribute'](_0x1fa078)-0x1:0x0,_0x2dcd7d=this['_getSuggestionCoords'](_0x3ceb8d),_0x55ace0=_0x2dcd7d[_0x4ec420],_0x3efd46=_0x2dcd7d[_0x5cbde7];_0x55ace0<=_0x208971[_0x57580c]&&_0x208971[_0x57580c]+_0x581f37<=_0x3efd46&&(_0x3ceb8d['addRange'](_0x5e11a8),_0x31e5df=!0x0);}return _0x31e5df;};_0x29adf1['model']['document']['registerPostFixer'](_0x18635=>{let _0x360133=!0x1;for(const _0x440623 of _0x29adf1['model']['document']['differ']['getChanges']())if('insert'==_0x440623['type']){if('tableRow'==_0x440623['name']){for(const _0x2e4f9b of _0x440623['position']['nodeAfter']['getChildren']())_0x360133=_0x360133||_0x294c68(_0x2e4f9b,_0x18635);}else'tableCell'==_0x440623['name']&&(_0x360133=_0x360133||_0x294c68(_0x440623['position']['nodeAfter'],_0x18635));}return _0x360133;});}['_getSuggestionCoords'](_0x58881e){return this['_getCoordsForCells'](_0x58881e['getRanges']()['map'](_0x817b9c=>_0x817b9c['start']['nodeAfter']));}}function be(_0x46c056){return Array['from'](new Set(_0x46c056)['values']());}class vt extends _0x54913d{static get['requires'](){return[It];}['afterInit'](){const _0x39aada=this['editor'],_0x419d40=_0x39aada['model']['document']['selection'],_0x4415fe=_0x39aada['locale'];if(!_0x39aada['plugins']['has']('TableEditing'))return;const _0x58e5dd=_0x39aada['plugins']['get']('TrackChangesEditing'),_0x4c6a1c=_0x39aada['plugins']['get']('TableUtils'),_0x5c356b=_0x39aada['plugins']['get'](It);_0x5c356b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x58e5dd['enableCommand']('mergeTableCells',()=>{const _0x1dfd43=_0x4c6a1c['getSelectionAffectedTableCells'](_0x39aada['model']['document']['selection']);_0x39aada['model']['change'](()=>{_0x58e5dd['markMultiRangeBlockFormat'](_0x1dfd43,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39aada['commands']['get']('mergeTableCells')['on']('execute',(_0x3f20ec,_0x3a08e6)=>{_0x39aada['commands']['get']('trackChanges')['value']&&(_0x3a08e6['length']>0x0&&_0x3a08e6[_0x3a08e6['length']-0x1]&&_0x3a08e6[_0x3a08e6['length']-0x1]['forceDefaultExecution']||_0x58e5dd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f20ec['stop']());},{'priority':'highest'});for(const _0x38ad88 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x22d87c=_0x39aada['commands']['get'](_0x38ad88);_0x58e5dd['enableCommand'](_0x38ad88,()=>{const _0x5c7121=_0x39aada['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x216f83=>_0x216f83['is']('element','tableCell')),_0xd09bef=_0x22d87c['value'];_0x39aada['model']['change'](()=>{_0x58e5dd['markMultiRangeBlockFormat']([_0x5c7121,_0xd09bef],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1944fa of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4a3b4e=_0x39aada['commands']['get'](_0x1944fa);_0x58e5dd['enableCommand'](_0x1944fa,()=>{const _0x371e46=_0x4c6a1c['getSelectionAffectedTableCells'](_0x39aada['model']['document']['selection'])[0x0],_0x55bef7=_0x371e46['findAncestor']('table'),{column:_0x30c3d7,row:_0xc73d0a}=_0x4c6a1c['getCellLocation'](_0x371e46);let _0x32b301=[];if('horizontally'==_0x4a3b4e['direction']){const _0x227bb9=_0x4c6a1c['createTableWalker'](_0x55bef7,{'startRow':_0xc73d0a,'endRow':_0xc73d0a,'includeAllSlots':!0x0});_0x32b301=Array['from'](_0x227bb9)['map'](_0x1bf254=>_0x1bf254['cell']);}else{const _0x313621=_0x4c6a1c['createTableWalker'](_0x55bef7,{'column':_0x30c3d7,'includeAllSlots':!0x0});_0x32b301=Array['from'](_0x313621)['map'](_0x168556=>_0x168556['cell']);}_0x39aada['model']['change'](_0x4f2b5a=>{_0x58e5dd['markBlockFormat'](_0x4f2b5a['createRangeOn'](_0x371e46),{'commandName':_0x1944fa,'commandParams':[]},_0x32b301,_0x1944fa);});});}_0x58e5dd['descriptionFactory']['registerDescriptionCallback'](_0x365b90=>{if('formatBlock'!=_0x365b90['type']&&'formatInline'!=_0x365b90['type'])return;const {data:_0x5ba9d7}=_0x365b90;return _0x5ba9d7&&'mergeTableCells'==_0x5ba9d7['commandName']?{'type':'format','content':o(_0x4415fe,'*Merge\x20cells*')}:void 0x0;}),_0x58e5dd['descriptionFactory']['registerDescriptionCallback'](_0x43741a=>{if('formatBlock'!=_0x43741a['type']&&'formatInline'!=_0x43741a['type'])return;const {data:_0x51aabc}=_0x43741a;return _0x51aabc?'splitTableCellVertically'==_0x51aabc['commandName']?{'type':'format','content':o(_0x4415fe,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x51aabc['commandName']?{'type':'format','content':o(_0x4415fe,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1893fe=_0x5c356b['_acceptFormatSuggestionCallbackFactory']();for(const _0x10fb1d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x58e5dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10fb1d,'accept',_0x1893fe);for(const _0x3bc81c of['splitTableCellVertically','splitTableCellHorizontally'])_0x58e5dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3bc81c,'accept',_0x1893fe);_0x58e5dd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2746f2=>{_0x39aada['model']['change'](_0x4c1adf=>{const _0x44c670=Array['from'](_0x419d40['getRanges']())['map'](_0x3ca61e=>_0x8342a4['fromRange'](_0x3ca61e));_0x4c1adf['setSelection'](_0x2746f2),_0x39aada['commands']['get']('mergeTableCells')['refresh'](),_0x39aada['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2fd35d=_0x44c670['filter'](_0x1facc7=>'$graveyard'!=_0x1facc7['root']['rootName']);_0x2fd35d['length']>0x0&&_0x4c1adf['setSelection'](_0x2fd35d);for(const _0x28ff93 of _0x44c670)_0x28ff93['detach']();});});for(const _0x5303f2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d49c3=_0x39aada['commands']['get'](_0x5303f2);_0x4d49c3['on']('set:isEnabled',(_0x23b12a,_0x412b5e,_0x258a52)=>{if(_0x258a52){const _0x5e4a77=_0x39aada['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2394f4=>_0x2394f4['is']('element','tableCell'));this['_areMergableCells'](_0x4d49c3['value'],_0x5e4a77)||(_0x23b12a['return']=!0x1,_0x23b12a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x18687d=this['editor']['commands']['get']('mergeTableCells'),_0x3e5643=this['editor']['plugins']['get']('TableUtils');if(!_0x18687d['isEnabled'])return!0x1;const _0x1a4e56=_0x3e5643['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3445e7 of _0x1a4e56)for(const _0x885974 of _0x1a4e56)if(_0x3445e7!=_0x885974&&!this['_areMergableCells'](_0x3445e7,_0x885974))return!0x1;return!0x0;}['_areMergableCells'](_0xbfeebf,_0x1a1e8d){const _0x27157d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x263965=this['editor']['model']['createRangeOn'](_0xbfeebf),_0x523503=this['editor']['model']['createRangeOn'](_0x1a1e8d),_0x17c89a=new Set(),_0x1e9dfb=new Set();for(const _0x1daadf of _0x27157d['getSuggestions']())if(('insertion'==_0x1daadf['type']||'deletion'==_0x1daadf['type']||'mergeTableCells'==_0x1daadf['subType'])&&_0x1daadf['isInContent']){for(const _0x4b149f of _0x1daadf['getRanges']())_0x4b149f['containsRange'](_0x263965,!0x0)&&_0x17c89a['add'](_0x1daadf['type']+':'+_0x1daadf['author']['id']),_0x4b149f['containsRange'](_0x523503,!0x0)&&_0x1e9dfb['add'](_0x1daadf['type']+':'+_0x1daadf['author']['id']);}if(_0x17c89a['size']!=_0x1e9dfb['size'])return!0x1;for(const _0x39a5a3 of _0x17c89a)if(!_0x1e9dfb['has'](_0x39a5a3))return!0x1;return!0x0;}}class Ct extends _0x54913d{static get['requires'](){return[It];}['afterInit'](){const _0x1f832d=this['editor'];if(!_0x1f832d['plugins']['has']('TableEditing'))return;const _0x5314b0=_0x1f832d['locale'],_0xeb6aa=_0x1f832d['plugins']['get']('TrackChangesEditing');_0xeb6aa['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xeb6aa['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xeb6aa['registerBlockAttribute']('headingRows'),_0xeb6aa['registerBlockAttribute']('headingColumns'),_0xeb6aa['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5314b0,'FORMAT_HEADER_ROW')),_0xeb6aa['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5314b0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1bbd4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1737ac=this['editor']['plugins']['get']('TableUtils'),_0xb738cf=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2ab4b7({showActiveMarker:_0x1ea73a=!0x0,setDataAttribute:_0xa08d54=!0x0}={}){return(_0x377514,_0x2b1a15,_0x438d5e)=>{const {type:_0x119686,id:_0x271c10}=_0x1bbd4e['_splitMarkerName'](_0x2b1a15['markerName']),_0x4cd163=_0x1bbd4e['getSuggestion'](_0x271c10),_0x2b42ce=_0x4cd163['data'];if('formatBlock'!=_0x4cd163['type']||!_0x2b42ce||'setTableColumnHeader'!=_0x2b42ce['commandName'])return;if(_0x2b1a15['item'])return void _0x377514['stop']();if(!_0x438d5e['consumable']['consume'](_0x2b1a15['markerRange'],_0x377514['name']))return;const _0x3a66eb=_0x2b1a15['markerRange']['start']['nodeAfter'],_0x20ef13=_0x2b1a15['markerRange']['end']['nodeBefore'],_0x52a580=_0x3a66eb['parent']['parent'],{column:_0x5e6501}=_0x1737ac['getCellLocation'](_0x3a66eb),{column:_0x39ecd4}=_0x1737ac['getCellLocation'](_0x20ef13);for(let _0x550bef=_0x5e6501;_0x550bef<=_0x39ecd4;_0x550bef++){const _0x1ae238=_0x1737ac['createTableWalker'](_0x52a580,{'column':_0x550bef,'includeAllSlots':!0x1});for(const _0x3eb9f6 of _0x1ae238){const _0x3d8a73=_0x3eb9f6['cell'],_0x21e734=_0x438d5e['mapper']['toViewElement'](_0x3d8a73);_0x438d5e['writer']['addClass']('ck-suggestion-marker-'+_0x119686,_0x21e734),_0xa08d54&&_0x438d5e['writer']['setAttribute']('data-suggestion',_0x271c10,_0x21e734),_0x438d5e['mapper']['bindElementToMarker'](_0x21e734,_0x2b1a15['markerName']),_0x1ea73a&&(_0x1bbd4e['activeMarkers']['includes'](_0x2b1a15['markerName'])?_0x438d5e['writer']['addClass']('ck-suggestion-marker--active',_0x21e734):_0x438d5e['writer']['removeClass']('ck-suggestion-marker--active',_0x21e734));}}};}_0x1bbd4e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb738cf),_0x1bbd4e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb738cf),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ab4b7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29be05,_0x4d366b,_0x354183)=>{_0x354183['options']['showSuggestionHighlights']&&_0x2ab4b7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29be05,_0x4d366b,_0x354183);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x352c98,_0x277b4f,_0x38f13b)=>{const {type:_0xef4db7,id:_0x3ba56e}=_0x1bbd4e['_splitMarkerName'](_0x277b4f['markerName']),_0x31a122=_0x1bbd4e['getSuggestion'](_0x3ba56e),_0x21b1aa=_0x31a122['data'];if('formatBlock'!=_0x31a122['type']||!_0x21b1aa||'setTableColumnHeader'!=_0x21b1aa['commandName'])return;const _0x5d859d=_0x38f13b['mapper']['markerNameToElements'](_0x277b4f['markerName']);if(_0x5d859d){for(const _0x25a2da of _0x5d859d)_0x38f13b['writer']['removeClass']('ck-suggestion-marker-'+_0xef4db7,_0x25a2da),_0x38f13b['writer']['removeClass']('ck-suggestion-marker--active',_0x25a2da),_0x38f13b['writer']['removeAttribute']('data-suggestion',_0x25a2da),_0x38f13b['mapper']['unbindElementFromMarkerName'](_0x25a2da,_0x277b4f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b27f7=this['editor'],_0x33e2c0=_0x3b27f7['locale'];function _0x4301b3(_0x3befb5){return{'type':'format','content':o(_0x33e2c0,'*Format:*\x20%0',_0x3befb5)};}_0x3b27f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23298b=>{if('formatBlock'!=_0x23298b['type'])return;const {data:_0x2cbd00}=_0x23298b;if(_0x2cbd00){if('setTableRowHeader'==_0x2cbd00['commandName']){const _0x47a4bd=_0x2cbd00['commandParams'][0x0]['forceValue'];return _0x4301b3(o(_0x33e2c0,_0x47a4bd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2cbd00['commandName']){const _0x1c90df=_0x2cbd00['commandParams'][0x0]['forceValue'];return _0x4301b3(o(_0x33e2c0,_0x1c90df?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x56b8b0=>[_0x56b8b0,null]));class _t extends _0x54913d{static get['requires'](){return[It];}['afterInit'](){const _0x2a06e2=this['editor'];if(!_0x2a06e2['plugins']['has']('TableClipboard'))return;const _0x1e1bf8=_0x2a06e2['plugins']['get']('TrackChangesEditing'),_0xc9fdb6=_0x2a06e2['plugins']['get']('TableUtils'),_0x216739=_0x2a06e2['plugins']['get'](It),_0x3dabb3=_0x2a06e2['plugins']['get']('TableClipboard');_0x216739['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2a06e2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2a06e2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x388d6b=null;_0x2a06e2['model']['on']('insertContent',(_0x3cf2ea,_0x287c94)=>{const [_0x14d9e9,_0x4c951d]=_0x287c94,_0x3b4f52=_0x287c94[_0x287c94['length']-0x1];_0x3b4f52&&_0x3b4f52['forceDefaultExecution']||_0x1e1bf8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2a0205,_0x3f2743,_0x26f8d1,_0x307400,_0x36673b){if(_0x3f2743&&!_0x3f2743['is']('documentSelection'))return!0x1;const _0x53fa39=_0x36673b['getTableIfOnlyTableInContent'](_0x2a0205,_0x26f8d1);if(!_0x53fa39||!Re(_0x53fa39,void 0x0,_0x307400))return!0x1;const _0x80d071=_0x307400['getSelectionAffectedTableCells'](_0x26f8d1['document']['selection']);if(!_0x80d071['length'])return!0x1;const _0x195fb6=_0x80d071[0x0]['findAncestor']('table'),_0x3d4a07=_0x307400['getRowIndexes'](_0x80d071),_0x14fdeb=_0x307400['getColumnIndexes'](_0x80d071),_0x1ca212={'startRow':_0x3d4a07['first'],'endRow':_0x3d4a07['last'],'startColumn':_0x14fdeb['first'],'endColumn':_0x14fdeb['last']};return 0x1==_0x80d071['length']&&(_0x1ca212['endRow']+=_0x307400['getRows'](_0x53fa39)-0x1,_0x1ca212['endColumn']+=_0x307400['getColumns'](_0x53fa39)-0x1),Re(_0x195fb6,_0x1ca212,_0x307400);}(_0x14d9e9,_0x4c951d,_0x2a06e2['model'],_0xc9fdb6,_0x3dabb3)&&(_0x3cf2ea['stop'](),_0x388d6b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2a06e2['model']['change'](()=>{_0x2a06e2['model']['insertContent'](_0x287c94[0x0],_0x287c94[0x1],_0x287c94[0x2],{'forceDefaultExecution':!0x0});const _0x94c6d7=_0x1f120b(),{rowInsertionRanges:_0x287e0b,columnInsertionRanges:_0x29723b,insertionRanges:_0x2749bc,deletionRanges:_0x3bff03,cells:_0x2a40fa}=_0x388d6b;_0x287e0b['length']&&_0x1e1bf8['markMultiRangeInsertion'](_0x287e0b,'tablePasteRow',{'tablePasteChainId':_0x94c6d7}),_0x29723b['length']&&_0x1e1bf8['markMultiRangeInsertion'](_0x29723b,'tablePasteColumn',{'tablePasteChainId':_0x94c6d7}),_0x2749bc['length']&&(_0x1e1bf8['markMultiRangeInsertion'](_0x2749bc,'tablePaste',{'tablePasteChainId':_0x94c6d7,'skipNestingCheck':!0x0}),_0x2749bc['forEach'](_0x17383c=>_0x17383c['detach']?.())),_0x3bff03['length']&&(_0x1e1bf8['markMultiRangeDeletion'](_0x3bff03,'tablePaste',{'tablePasteChainId':_0x94c6d7,'skipNestingCheck':!0x0}),_0x3bff03['forEach'](_0x5593e2=>_0x5593e2['detach']?.()));const _0x35e435=_0x1e1bf8['markMultiRangeBlockFormat'](_0x2a40fa['map'](({element:_0x2144f6})=>_0x2144f6),{'formatGroupId':_0x1f120b()},[],'tablePasteCell',{'tablePasteChainId':_0x94c6d7});if(_0x35e435){const _0x2e7cd5=_0x35e435['getMarkers'](),_0x5c280a=[];for(const {element:_0xbaa9eb,attributes:_0x45b304}of _0x2a40fa){if(!_0x45b304)continue;const _0x3cd983=_0x2a06e2['model']['createRangeOn'](_0xbaa9eb),_0x2c5e30=_0x2e7cd5['find'](_0x8fb3dd=>_0x8fb3dd['getRange']()['isEqual'](_0x3cd983));_0x2c5e30&&_0x5c280a['push']([_0x2c5e30['name'],_0x45b304]);}_0x5c280a['length']&&_0x35e435['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c280a));}_0x388d6b=null;}));},{'priority':_0x2fc9ed['high']+0xa}),_0x2a06e2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3031de,_0x32624f)=>{const [_0x27e1b9,_0x585b7e,,_0x27253c]=_0x32624f;if(!_0x388d6b)return;_0x3031de['stop']();const _0x4853e8=_0x27e1b9['cell'],_0x39fe4a=_0x585b7e,_0x249ad0=ke(_0x4853e8),_0x1760f7=ke(_0x39fe4a);_0x3031de['return']=_0x4853e8;let _0x2136e6=null,_0x192ebb=null;if(_0x1760f7||_0x249ad0){if(_0x249ad0&&!_0x1760f7){_0x27253c['remove'](_0x4853e8['getChild'](0x0));for(const _0x271383 of Array['from'](_0x39fe4a['getChildren']()))_0x27253c['insert'](_0x271383,_0x4853e8,'end');const _0x3c2c92=_0x388d6b['rowInsertionIndexes']['includes'](_0x27e1b9['row']),_0x2ee0b2=_0x388d6b['columnInsertionIndexes']['includes'](_0x27e1b9['column']);_0x3c2c92||_0x2ee0b2||(_0x2136e6=_0x8342a4['fromRange'](_0x27253c['createRangeIn'](_0x4853e8)));}else _0x1760f7&&!_0x249ad0&&(_0x192ebb=_0x27253c['createRangeIn'](_0x4853e8));}else{const _0x21fc09=_0x27253c['createElement']('tableCellSuggestion'),_0xd1b8cb=_0x27253c['createElement']('tableCellSuggestion');_0x27253c['wrap'](_0x27253c['createRangeIn'](_0x4853e8),_0xd1b8cb),_0x27253c['insert'](_0x21fc09,_0x4853e8,0x0);for(const _0xd0c1f3 of Array['from'](_0x39fe4a['getChildren']()))_0x27253c['insert'](_0xd0c1f3,_0x21fc09,'end');_0x2136e6=_0x8342a4['fromRange'](_0x27253c['createRangeOn'](_0x21fc09)),_0x192ebb=_0x8342a4['fromRange'](_0x27253c['createRangeOn'](_0xd1b8cb));}const _0x543c20=Array['from'](_0x39fe4a['getAttributes']())['filter'](([_0x1480bd])=>Pe['includes'](_0x1480bd));_0x388d6b['cells']['push']({'element':_0x4853e8,'attributes':_0x543c20['length']?Object['fromEntries'](_0x543c20):null}),_0x2136e6&&_0x388d6b['insertionRanges']['push'](_0x2136e6),_0x192ebb&&_0x388d6b['deletionRanges']['push'](_0x192ebb);},{'priority':'high'}),_0xc9fdb6['on']('insertColumns',(_0x3903d4,_0x4263e0)=>{const [_0x581881,_0x3a9185={}]=_0x4263e0;if(!_0x388d6b)return;const _0x1d3ce6=_0x3a9185['at']||0x0,_0x5e7e45=_0x3a9185['columns']||0x1;_0x388d6b['columnInsertionIndexes']=new Array(_0x5e7e45)['fill'](_0x1d3ce6)['map']((_0x23b0ff,_0x5a76c1)=>_0x23b0ff+_0x5a76c1);for(const {cell:_0x23b77d}of _0xc9fdb6['createTableWalker'](_0x581881,{'startColumn':_0x1d3ce6,'endColumn':_0x1d3ce6+_0x5e7e45-0x1}))_0x388d6b['columnInsertionRanges']['push'](_0x2a06e2['model']['createRangeOn'](_0x23b77d));},{'priority':'low'}),_0xc9fdb6['on']('insertRows',(_0x2a67fb,_0x4d4ae2)=>{const [_0x2d2e51,_0xa96446={}]=_0x4d4ae2;if(!_0x388d6b)return;const _0x22038e=_0xa96446['at']||0x0,_0x5c8a6a=_0xa96446['rows']||0x1;_0x388d6b['rowInsertionIndexes']=new Array(_0x5c8a6a)['fill'](_0x22038e)['map']((_0x3c89b4,_0x325523)=>_0x3c89b4+_0x325523);for(const {cell:_0x42fd13}of _0xc9fdb6['createTableWalker'](_0x2d2e51,{'startRow':_0x22038e,'endRow':_0x22038e+_0x5c8a6a-0x1}))_0x388d6b['rowInsertionRanges']['push'](_0x2a06e2['model']['createRangeOn'](_0x42fd13));},{'priority':'low'}),_0x1e1bf8['descriptionFactory']['registerDescriptionCallback'](_0x5cfde5=>{if(_0x5cfde5['subType']&&_0x5cfde5['subType']['startsWith']('tablePaste'))return _0x5cfde5['previous']?{}:{'type':'insertion','content':o(_0x2a06e2['locale'],'*Replace\x20table\x20cells*')};});const _0x596d22=()=>!0x1;for(const _0x49c189 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1e1bf8['_suggestionFactory']['registerCustomCallback']('insertion',_0x49c189,'join',_0x596d22),_0x1e1bf8['_suggestionFactory']['registerCustomCallback']('deletion',_0x49c189,'join',_0x596d22),_0x1e1bf8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49c189,'join',_0x596d22);_0x1e1bf8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x596d22),_0x1e1bf8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x32a054,_0x3a9024,_0x5e33db)=>{const _0x5be39a=_0x32a054['map'](_0x24964f=>_0x24964f['getContainedElement']())['filter'](_0xed772a=>_0xed772a),_0xd4eb48=new Map(_0x5be39a['map'](_0x541e9e=>[_0x541e9e,null]));if(_0x388d6b){for(const {element:_0x99c30a,attributes:_0x38b8ff}of _0x388d6b['cells'])_0x38b8ff&&_0xd4eb48['set'](_0x99c30a,_0x38b8ff);}else{if(_0x5e33db&&_0x5e33db['markerAttributes'])for(const [_0x1de65f,_0x33b5be]of Object['entries'](_0x5e33db['markerAttributes'])){const _0x458ae8=_0x2a06e2['model']['markers']['get'](_0x1de65f),_0x8f87a=_0x458ae8?_0x458ae8['getRange']()['getContainedElement']():null;_0x8f87a&&_0xd4eb48['set'](_0x8f87a,_0x33b5be);}}_0x2a06e2['model']['change'](_0x4500ec=>{for(const [_0x1bfbdc,_0x1f0670]of _0xd4eb48)_0x4500ec['setAttributes']({...we,..._0x1f0670},_0x1bfbdc);});});const _0x4eab5a=(_0x2ed412,_0x4d0f20)=>{_0x1e1bf8['_suggestionFactory']['registerCustomCallback'](_0x2ed412,'tablePaste',_0x4d0f20,(_0x1e9d23,_0x37c142,_0x5defc6)=>{_0x2a06e2['model']['change'](_0x2566f=>{const _0x21fe13=[];for(const _0x319e71 of _0x1e9d23){const _0x4d6786=_0x319e71['start']['nodeAfter'];_0x4d6786['is']('element','tableCellSuggestion')&&_0x21fe13['push'](_0x4d6786);}_0x1e1bf8['_suggestionFactory']['getSuggestionCallback'](_0x2ed412,null,_0x4d0f20)(_0x1e9d23,_0x37c142,_0x5defc6);for(const _0x1e2099 of _0x21fe13)'$graveyard'!=_0x1e2099['root']['rootName']&&_0x2566f['unwrap'](_0x1e2099);});});};_0x4eab5a('insertion','accept'),_0x4eab5a('insertion','discard'),_0x4eab5a('deletion','accept'),_0x4eab5a('deletion','discard'),_0x1e1bf8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x264f18=>{const _0x5b699e=_0x264f18['map'](_0x184566=>_0x184566['getContainedElement']()),_0x2a4c96=_0x5b699e[0x0]['findAncestor']('table'),{minRow:_0x356965,maxRow:_0x280514}=_0x216739['_getCoordsForCells'](_0x5b699e);_0xc9fdb6['removeRows'](_0x2a4c96,{'at':_0x356965,'rows':_0x280514-_0x356965+0x1});}),_0x1e1bf8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1a884f=>{const _0x4d343b=_0x1a884f['map'](_0x189ebe=>_0x189ebe['getContainedElement']()),_0x589a89=_0x4d343b[0x0]['findAncestor']('table'),{minColumn:_0xb463fe,maxColumn:_0x57b7cc}=_0x216739['_getCoordsForCells'](_0x4d343b);_0xc9fdb6['removeColumns'](_0x589a89,{'at':_0xb463fe,'columns':_0x57b7cc-_0xb463fe+0x1});});const _0x228933=(_0xc43778,_0x55a780)=>{if(!_0x55a780['subType']||!_0x55a780['subType']['startsWith']('tablePaste'))return;const _0x3bd013=_0x55a780['attributes']['tablePasteChainId'],_0x3a5bb6=_0x1e1bf8['getSuggestions']()['filter'](_0x1ad636=>_0x1ad636['isInContent']&&_0x1ad636['attributes']&&_0x1ad636['attributes']['tablePasteChainId']==_0x3bd013);_0x3a5bb6['length']&&_0x55a780['getAllAdjacentSuggestions']()['length']!=_0x3a5bb6['length']&&_0x3a5bb6['reduce']((_0x593483,_0x5539ee)=>(_0x593483['next']=_0x5539ee,_0x5539ee['previous']=_0x593483,_0x5539ee));};function _0x9347e9(_0x5caf36,_0xb1e067=!0x0){const {id:_0x485b76,authorId:_0x2c6ddf}=_0x1e1bf8['_splitMarkerName'](_0x5caf36['markerName']),_0x3bffd2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1cc65a=_0x1e1bf8['activeMarkers']['includes'](_0x5caf36['markerName']);return _0x1cc65a&&_0x3bffd2['push']('ck-suggestion-marker--active'),{'classes':_0x3bffd2,'attributes':{'data-suggestion':_0x485b76,'data-author-id':_0x2c6ddf},'priority':_0x1cc65a&&_0xb1e067?0xbc2:0xbb8};}_0x1e1bf8['on']('suggestionLoaded',_0x228933,{'priority':'high'}),_0x1e1bf8['on']('suggestionUnloaded',_0x228933,{'priority':'high'}),_0x2a06e2['model']['document']['registerPostFixer'](()=>{let _0x1277a9=!0x1;const _0x8c58bd=Array['from'](_0x2a06e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29fddd,data:_0x1a4ab0}of _0x8c58bd){const {group:_0x4d855e,type:_0xf89f6c,id:_0x444272}=_0x1e1bf8['_splitMarkerName'](_0x29fddd);if('suggestion'!=_0x4d855e||'deletion'!=_0xf89f6c||_0x1a4ab0['oldRange'])continue;if(!_0x1e1bf8['hasSuggestion'](_0x444272))continue;const _0xe2a7ee=_0x1e1bf8['getSuggestion'](_0x444272)['getRanges'](),_0xd397f0=_0x2a06e2['plugins']['get']('Users')['me'];for(const _0x39d34d of _0x1e1bf8['getSuggestions']()){if(!_0x39d34d['isInContent']||_0x39d34d['author']!=_0xd397f0)continue;if('formatBlock'!=_0x39d34d['type']||'tablePasteCell'!=_0x39d34d['subType'])continue;if(_0x39d34d['getRanges']()['every'](_0x547edf=>_0xe2a7ee['some'](_0x48ac0f=>_0x48ac0f['containsRange'](_0x547edf,!0x0)))){for(const _0x364ee3 of _0x39d34d['getAllAdjacentSuggestions']())_0x364ee3['isInContent']&&(_0x364ee3['discard'](),_0x1277a9=!0x0);}}}return _0x1277a9;}),_0x2a06e2['model']['document']['registerPostFixer'](_0x52632b=>{const _0xa86bd9=_0x2a06e2['commands']['get']('redo');if(!_0xa86bd9||!_0xa86bd9['_createdBatches']['has'](_0x52632b['batch']))return!0x1;let _0x11451d=!0x1;const _0x26fae0=_0x2a06e2['plugins']['get']('Users')['me'],_0x48405e=_0x2a06e2['model']['document']['differ']['getChanges'](),_0x4e3f29=Array['from'](_0x2a06e2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1de546,data:_0x43e69e})=>{const {group:_0x4f59d4,subType:_0x528c92,authorId:_0x112914}=_0x1e1bf8['_splitMarkerName'](_0x1de546);return'suggestion'==_0x4f59d4&&'tablePaste'==_0x528c92&&_0x112914==_0x26fae0['id']&&!_0x43e69e['oldRange'];});for(const _0x39434f of _0x48405e){if('insert'!=_0x39434f['type']||'tableCellSuggestion'!=_0x39434f['name']||0x1!=_0x39434f['length'])continue;const _0xd28f59=_0x52632b['createRange'](_0x39434f['position'],_0x39434f['position']['getShiftedBy'](0x1));if(!_0x4e3f29['find'](({data:_0x2cf5c3})=>_0x2cf5c3['newRange']['isEqual'](_0xd28f59))){for(const {name:_0x1ee9ca,data:_0x82132c}of _0x4e3f29)if(_0xd28f59['containsRange'](_0x82132c['newRange'])){_0x52632b['updateMarker'](_0x1ee9ca,{'range':_0xd28f59}),_0x11451d=!0x0;break;}}}return _0x11451d;}),_0x2a06e2['model']['document']['registerPostFixer'](_0x183fcb=>{let _0x31f51e=!0x1;const _0x3bd79f=_0x2a06e2['plugins']['get']('Users')['me'],_0x3ff7ba=_0x1e1bf8['getSuggestions']()['filter'](_0x4dbf4c=>_0x4dbf4c['isInContent']&&_0x4dbf4c['author']==_0x3bd79f),_0x9388ee=new Set(),_0x48651d=new Set();for(const _0x3758f3 of _0x3ff7ba)if('tablePaste'==_0x3758f3['subType'])for(const _0x47fb7c of _0x3758f3['getMarkers']()){const _0x1d27fb=_0x47fb7c['getRange']()['getContainedElement']();if(_0x1d27fb){if(_0x1d27fb['is']('element','tableCellSuggestion')&&ke(_0x1d27fb)){_0x3758f3['removeMarker'](_0x47fb7c['name']),_0x9388ee['add'](_0x1d27fb),_0x31f51e=!0x0;const _0x328551=_0x1d27fb['nextSibling'],_0x752742=_0x1d27fb['previousSibling'],_0x2ef25b=_0x328551&&_0x328551['is']('element','tableCellSuggestion'),_0x8711bd=_0x752742&&_0x752742['is']('element','tableCellSuggestion');_0x2ef25b&&!_0x9388ee['has'](_0x328551)&&_0x48651d['add'](_0x328551),_0x8711bd&&!_0x9388ee['has'](_0x752742)&&_0x48651d['add'](_0x752742);}else _0x1d27fb['is']('element','paragraph')&&_0x1d27fb['isEmpty']&&(_0x3758f3['removeMarker'](_0x47fb7c['name']),_0x31f51e=!0x0);}}else{if('tablePasteCell'==_0x3758f3['subType']){if(!_0x3758f3['attributes']||!_0x3758f3['attributes']['tablePasteChainId'])continue;const _0x3ec2b4=_0x3758f3['attributes']['markerAttributes'];if(_0x3ec2b4&&Object['keys'](_0x3ec2b4)['length'])continue;const _0x4a2062=_0x3758f3['attributes']['tablePasteChainId'];let _0x1cc94c=!0x0,_0x303cbe=!0x0;for(const _0x18d60d of _0x3ff7ba)if(_0x18d60d['subType']&&_0x18d60d['subType']['startsWith']('tablePaste')){if(!_0x18d60d['attributes']['tablePasteChainId']){_0x303cbe=!0x1;break;}if(_0x18d60d['id']!=_0x3758f3['id']&&_0x18d60d['attributes']['tablePasteChainId']==_0x4a2062){_0x1cc94c=!0x1;break;}}_0x303cbe&&_0x1cc94c&&(_0x3758f3['removeMarkers'](),_0x31f51e=!0x0);}}for(const _0x348b03 of _0x9388ee)_0x183fcb['remove'](_0x348b03);for(const _0x4d4cbb of _0x48651d)_0x183fcb['unwrap'](_0x4d4cbb);return _0x31f51e;}),_0x2a06e2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x95bad,_0x5cf448)=>_0x9347e9(_0x95bad),'converterPriority':'high'}),_0x2a06e2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3e98c2,_0x7a8dc9)=>_0x7a8dc9['options']['showSuggestionHighlights']?_0x9347e9(_0x3e98c2,!0x1):null,'converterPriority':'high'});const _0xb86762=_0x2a06e2['editing']['view'];this['listenTo'](_0xb86762['document'],'clipboardOutput',(_0x3795cc,_0x723e29)=>{const _0x3332ae=[];for(const _0x4eed4 of _0xb86762['createRangeIn'](_0x723e29['content'])['getItems']())_0x4eed4['is']('element','suggestion-td')&&_0x3332ae['push'](_0x4eed4);_0xb86762['change'](_0xd2e30e=>{for(const _0x41247b of _0x3332ae)_0xd2e30e['move'](_0xd2e30e['createRangeIn'](_0x41247b),_0xd2e30e['createPositionBefore'](_0x41247b)),_0xd2e30e['remove'](_0x41247b);});});}}function ke(_0x201647){if(_0x201647['isEmpty'])return!0x0;const _0x792524=_0x201647['getChild'](0x0);return _0x792524['is']('element','paragraph')&&_0x792524['isEmpty'];}function Re(_0x44bb80,_0x391cd3={},_0x33b8ec){for(const {isAnchor:_0xf14dc5,cellHeight:_0x310d0f,cellWidth:_0x585ebc}of _0x33b8ec['createTableWalker'](_0x44bb80,{'includeAllSlots':!0x0,..._0x391cd3}))if(!_0xf14dc5||0x1!=_0x310d0f||0x1!=_0x585ebc)return!0x1;return!0x0;}class Nt extends _0x54913d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3498d9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3498d9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3498d9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3498d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3498d9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3498d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3498d9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e56a7,_0x3f0184){const _0x25fe29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1abd06=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5da495=_0x3f0184['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3ff990=_0x1abd06['getColumnGroupElement'](_0x5da495);let _0x3a8d5d=_0x3ff990?_0x1abd06['getTableColumnsWidths'](_0x3ff990):null,_0x84f613=_0x5da495['getAttribute']('tableWidth')||null;const _0x580dd8=_0x3f0184['tableWidth']||_0x84f613,_0x2ae4be=_0x3f0184['columnWidths']||_0x3a8d5d,_0x404eac=this['editor']['plugins']['get']('Users')['me'];for(const _0x22098e of _0x25fe29['getSuggestions']()){const _0x3d0849=_0x22098e['getContainedElement']();if('resizeTable'===_0x22098e['subType']&&_0x3d0849===_0x5da495){_0x22098e['author']!==_0x404eac&&_0x22098e['discard']();const _0x51b0b0=_0x22098e['data']['commandParams'];_0x84f613=_0x51b0b0[0x0]['tableWidth'],_0x3a8d5d=_0x51b0b0[0x0]['columnWidths'];break;}}_0x5e56a7({'table':_0x5da495,'tableWidth':_0x580dd8,'columnWidths':_0x2ae4be}),_0x25fe29['markBlockFormat'](_0x5da495,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x84f613,'columnWidths':_0x3a8d5d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x22d9c3){if('formatBlock'!=_0x22d9c3['type']&&'formatInline'!=_0x22d9c3['type'])return;const {data:_0x2cbb60}=_0x22d9c3;if(_0x2cbb60&&'resizeTable'===_0x2cbb60['formatGroupId']){const _0x5702c4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5702c4)};}}}class Dt extends _0x54913d{['afterInit'](){const _0x4832a1=this['editor'];_0x4832a1['plugins']['has']('Template')&&_0x4832a1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x54913d{['afterInit'](){const _0x4e8eb4=this['editor'];if(!_0x4e8eb4['commands']['get']('insertTableOfContents'))return;_0x4e8eb4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b2c74=_0x4e8eb4['plugins']['get']('TrackChangesEditing'),_0x38d715=_0x4e8eb4['locale'];_0x3b2c74['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2f7dbb=>o(_0x38d715,'ELEMENT_TABLE_OF_CONTENTS',_0x2f7dbb));}}class $t extends _0x54913d{['afterInit'](){const _0x5a5129=this['editor'];if(!_0x5a5129['plugins']['has']('Title'))return;const _0x422be2=_0x5a5129['plugins']['get']('TrackChangesEditing');_0x422be2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5a5129['locale'],'ELEMENT_TITLE')),_0x5a5129['model']['document']['registerPostFixer'](_0x297990=>{let _0x1163f1=!0x1;const _0x3e4e64=Array['from'](_0x5a5129['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597952,data:_0x4448ee}of _0x3e4e64){const {group:_0x246264}=_0x422be2['_splitMarkerName'](_0x597952);if('suggestion'!==_0x246264||!_0x4448ee['newRange'])continue;const _0x848b6=_0x4448ee['newRange'],_0x30c6bf=_0x848b6['end']['nodeBefore'];if(!_0x30c6bf||!_0x30c6bf['is']('element','title-content'))continue;if(!_0x848b6['start']['isTouching'](_0x848b6['end']))continue;const _0x1bfda1=_0x5a5129['model']['schema']['getNearestSelectionRange'](_0x848b6['end'],'forward');if(_0x1bfda1&&_0x1bfda1['isCollapsed']){const _0x9d445b=_0x297990['createRange'](_0x848b6['start'],_0x1bfda1['start']);_0x9d445b['isEqual'](_0x848b6)||(_0x297990['updateMarker'](_0x597952,{'range':_0x9d445b}),_0x1163f1=!0x0);}_0x1163f1||(_0x297990['removeMarker'](_0x597952),_0x1163f1=!0x0);}return _0x1163f1;});}}class Bt extends _0x54913d{['afterInit'](){const _0x27e376=this['editor'],_0x104c8d=_0x27e376['plugins']['get']('TrackChangesEditing');_0x27e376['plugins']['has']('UndoEditing')&&(_0x104c8d['enableCommand']('undo'),_0x104c8d['enableCommand']('redo'));}}class xt extends _0x54913d{static get['requires'](){return[It];}['afterInit'](){const _0x756492=this['editor'];if(!_0x756492['plugins']['has']('TableCaptionEditing'))return;_0x756492['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x54913d{['tableProperties'];['tableCellProperties'];constructor(_0x1fd3cc){super(_0x1fd3cc),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 _0x36186a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4b5e86 of this['tableProperties'])_0x36186a['enableCommand'](_0x4b5e86,(_0x3219e4,_0x2ea920)=>{const _0x12edd1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4b5e86,[_0x12edd1],this['tableProperties'],'tableProperties',_0x3219e4,_0x2ea920);});_0x36186a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x36186a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36186a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x38ad60,_0x463b8e)=>this['handleDiscardAction'](this['tableProperties'],_0x38ad60,_0x463b8e)),_0x36186a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe88e77 of this['tableCellProperties'])_0x36186a['enableCommand'](_0xe88e77,(_0x83e180,_0x59a92b)=>{const _0x356977=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe88e77,_0x356977,this['tableCellProperties'],'tableCellProperties',_0x83e180,_0x59a92b);});_0x36186a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x36186a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36186a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x21b493,_0x24b8fd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x21b493,_0x24b8fd)),_0x36186a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x36186a['descriptionFactory']['registerDescriptionCallback'](_0x405d85=>this['handleSuggestionDescription'](_0x405d85));}['_handlePropertyChange'](_0x1cb495,_0x76c848,_0x536168,_0x3d3e32,_0x29b3c4,_0x192264){const _0x4924e0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x192264['batch'],()=>{for(const _0x54bcd0 of _0x76c848){if(this['_getSuggestion'](_0x54bcd0,_0x3d3e32))_0x29b3c4(_0x192264);else{const _0x3b7671={};for(const _0x57f70e of _0x536168){const _0x54164f=_0x54bcd0['getAttribute'](_0x57f70e);void 0x0!==_0x54164f&&(_0x3b7671[_0x57f70e]=_0x54164f);}_0x29b3c4(_0x192264),_0x4924e0['markBlockFormat'](_0x54bcd0,{'commandParams':[_0x3b7671]},[],_0x3d3e32);}}});}['handleDiscardAction'](_0x399c0c,_0x256766,_0xfe9034){const _0x276a1c=_0x256766[0x0]['start']['nodeAfter'],_0x23bfe8=_0xfe9034['commandParams'][0x0];this['editor']['model']['change'](_0x669528=>{for(const _0xc1565 of _0x399c0c)void 0x0!==_0x23bfe8[_0xc1565]?_0x669528['setAttribute'](_0xc1565,_0x23bfe8[_0xc1565],_0x276a1c):_0x669528['removeAttribute'](_0xc1565,_0x276a1c);});}['handleSuggestionDescription'](_0x5db48f){if(_0x5db48f['data'])switch(_0x5db48f['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'](_0xe30257,_0x229775){const _0x4eb960=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5f28f0 of _0x4eb960['getSuggestions']({'skipNotAttached':!0x0})){const _0x5a5918=_0x5f28f0['getContainedElement']();if(_0x5f28f0['subType']===_0x229775&&_0x5a5918===_0xe30257)return _0x5f28f0;}return null;}}const m='$elementName';class p extends _0x54913d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2d9153,_0x2f24e0,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(_0xf9cad5){function _0x3c21fa(_0x16d9ad){return _0x16d9ad['map'](_0x4b21c5=>String['fromCharCode'](_0x4b21c5))['join']('');}super(_0xf9cad5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59af7e,_0x46b5a2,_0x297f01,_0x5243d8)=>{this['_model']['change'](()=>{for(const _0xdd425f of[..._0x5243d8,..._0x297f01])this['_model']['markers']['has'](_0xdd425f)&&_0xf9cad5['editing']['reconvertMarker'](_0xdd425f);});}),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']=_0xf9cad5['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(),_0xf9cad5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf9cad5['config']['get']('trackChanges.trackFormatChanges'),_0xf9cad5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xf9cad5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xf9cad5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3c21fa([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3c21fa([0x34,0x30,0x34,0x38,0x31,0x38,0x30,0x38]);}['init'](){const _0x46951c=this['editor'],_0x46a7f8=(_0x157501,_0x102509)=>{if('attribute'!=_0x157501)return'ck-suggestion-marker-'+_0x157501;const _0x21de99=_0x102509['split']('|')[0x0];return this['_isBlockAttribute'](_0x21de99)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x46951c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3be19b=>{const {id:_0x938288,authorId:_0x4d336a,type:_0x3cd54b,subType:_0xfcd003}=this['_splitMarkerName'](_0x3be19b['markerName']),_0x113b82=['ck-suggestion-marker',_0x46a7f8(_0x3cd54b,_0xfcd003)];let _0x5663c8=0xbb8;return this['activeMarkers']['includes'](_0x3be19b['markerName'])&&(_0x113b82['push']('ck-suggestion-marker--active'),_0x5663c8=0xbc2),'deletion'==_0x3cd54b&&(_0x5663c8+=0x5),{'classes':_0x113b82,'attributes':{'data-suggestion':_0x938288,'data-author-id':_0x4d336a},'priority':_0x5663c8};}}),_0x46951c['conversion']['for']('dataDowncast')['add'](_0x1249a1=>{_0x1249a1['on']('addMarker:suggestion',(_0x198a01,_0x361cd3,_0xc021b5)=>{if(!_0xc021b5['options']['showSuggestionHighlights'])return;const _0x1e7cbb=_0x361cd3['item'];if(!_0x1e7cbb)return;const _0x32b5aa=_0xc021b5['mapper']['toViewElement'](_0x1e7cbb);_0x46951c['model']['schema']['isObject'](_0x1e7cbb)&&_0x32b5aa&&!_0x32b5aa['getCustomProperty']('widget')&&_0x32b5aa['is']('containerElement')&&_0x3a14c2(_0x32b5aa,_0xc021b5['writer']);},{'priority':'high'});}),_0x46951c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x345fae,_0x4a7788)=>{if(!_0x4a7788['options']['showSuggestionHighlights'])return null;const {type:_0x3253fc,subType:_0x309339}=this['_splitMarkerName'](_0x345fae['markerName']);return{'classes':['ck-suggestion-marker',_0x46a7f8(_0x3253fc,_0x309339)],'priority':0xbb8};}});const _0x4b429f=({showActiveMarkers:_0x594b2c=!0x0,isAttributeSuggestion:_0x5e35b9=!0x1}={})=>(_0x4b2234,_0x52358d,_0x437d34)=>{if(!_0x52358d['item'])return;const {id:_0x1a3112,authorId:_0x5e868d}=this['_splitMarkerName'](_0x52358d['markerName']);if(_0x5e35b9){const _0x44dc16=this['_suggestions']['get'](_0x1a3112),_0x5ce3e2=this['_getAttributeKey'](_0x44dc16);if(!this['_isBlockAttribute'](_0x5ce3e2))return;}if(_0x52358d['item']['is']('selection'))return void _0x437d34['consumable']['consume'](_0x52358d['item'],_0x4b2234['name']);const _0x382b10=_0x437d34['mapper']['toViewElement'](_0x52358d['item']);if(_0x52358d['item']['is']('element')&&_0x46951c['model']['schema']['isBlock'](_0x52358d['item'])&&!_0x382b10['getCustomProperty']('addHighlight')){_0x437d34['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x382b10),_0x437d34['writer']['setAttribute']('data-suggestion',_0x1a3112,_0x382b10),_0x437d34['writer']['setAttribute']('data-author-id',_0x5e868d,_0x382b10),_0x437d34['mapper']['bindElementToMarker'](_0x382b10,_0x52358d['markerName']),_0x594b2c&&(this['activeMarkers']['includes'](_0x52358d['markerName'])?_0x437d34['writer']['addClass']('ck-suggestion-marker--active',_0x382b10):_0x437d34['writer']['removeClass']('ck-suggestion-marker--active',_0x382b10));for(const _0x37fc53 of _0x46951c['model']['createRangeIn'](_0x52358d['item'])['getItems']())_0x437d34['consumable']['consume'](_0x37fc53,_0x4b2234['name']);_0x437d34['consumable']['consume'](_0x52358d['item'],_0x4b2234['name']);}};_0x46951c['conversion']['for']('dataDowncast')['add'](_0x523740=>{_0x523740['on']('addMarker:suggestion:formatBlock',(_0x358637,_0x1cdd88,_0x4d03ab)=>{_0x4d03ab['options']['showSuggestionHighlights']&&_0x4b429f({'showActiveMarkers':!0x1})(_0x358637,_0x1cdd88,_0x4d03ab);},{'priority':'highest'});}),_0x46951c['conversion']['for']('dataDowncast')['add'](_0x10cc78=>{_0x10cc78['on']('addMarker:suggestion:attribute',(_0x505673,_0x390f04,_0x2781b5)=>{_0x2781b5['options']['showSuggestionHighlights']&&_0x4b429f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x505673,_0x390f04,_0x2781b5);},{'priority':'highest'});}),_0x46951c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1722b0,_0x45d556)=>_0x45d556['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1722b0['substr'](0xb)}}),_0x46951c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5e4372,{writer:_0x194092})=>{let _0x580a16='suggestion:'+_0x5e4372['getAttribute']('suggestion-type')+':'+_0x5e4372['getAttribute']('id');return _0x5e4372['getAttribute']('marker-count')&&(_0x580a16+=':'+_0x5e4372['getAttribute']('marker-count')),_0x194092['createElement']('$marker',{'data-name':_0x580a16});}}),_0x46951c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x46951c['conversion']['for']('editingDowncast')['add'](_0x197dfc=>{_0x197dfc['on']('addMarker:suggestion:formatBlock',_0x4b429f(),{'priority':'high'});}),_0x46951c['conversion']['for']('editingDowncast')['add'](_0x335c9c=>{_0x335c9c['on']('addMarker:suggestion:attribute',_0x4b429f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x46951c['conversion']['for']('editingDowncast')['add'](_0x2dada6=>{_0x2dada6['on']('removeMarker:suggestion:formatBlock',(_0x1c6d5e,_0x546537,_0x4760b3)=>{const _0x1dbba9=_0x4760b3['mapper']['markerNameToElements'](_0x546537['markerName']);if(_0x1dbba9){for(const _0x2d29ea of _0x1dbba9)_0x2d29ea['getCustomProperty']('addHighlight')||(_0x4760b3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d29ea),_0x4760b3['writer']['removeAttribute']('data-suggestion',_0x2d29ea),_0x4760b3['writer']['removeAttribute']('data-author-id',_0x2d29ea),_0x4760b3['mapper']['unbindElementFromMarkerName'](_0x2d29ea,_0x546537['markerName']));}},{'priority':'high'});}),_0x46951c['conversion']['for']('editingDowncast')['add'](_0x3d2b9b=>{_0x3d2b9b['on']('removeMarker:suggestion:attribute',(_0x401e8a,_0xcfd099,_0x338feb)=>{const _0x261130=_0x338feb['mapper']['markerNameToElements'](_0xcfd099['markerName']);if(!_0x261130)return;const {id:_0x4d7ac9}=this['_splitMarkerName'](_0xcfd099['markerName']),_0x387153=this['_suggestions']['get'](_0x4d7ac9),_0xaa58dc=this['_getAttributeKey'](_0x387153);if(this['_isBlockAttribute'](_0xaa58dc)){for(const _0x23175f of _0x261130)_0x23175f['getCustomProperty']('addHighlight')||(_0x338feb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23175f),_0x338feb['writer']['removeAttribute']('data-suggestion',_0x23175f),_0x338feb['writer']['removeAttribute']('data-author-id',_0x23175f),_0x338feb['mapper']['unbindElementFromMarkerName'](_0x23175f,_0xcfd099['markerName']));}},{'priority':'high'});}),_0x46951c['model']['document']['registerPostFixer'](_0x3d7e97=>{let _0x3bce6d=!0x1;const _0x306929=Array['from'](_0x46951c['model']['document']['differ']['getChangedMarkers']()),_0x39c0c0=new Set();for(const {name:_0x539ab2,data:_0x27c189}of _0x306929){const {group:_0x4fec0f,type:_0x20a892,subType:_0x2040f0,id:_0x2525a8}=this['_splitMarkerName'](_0x539ab2);if('suggestion'!==_0x4fec0f)continue;const _0x10f756=this['_suggestions']['get'](_0x2525a8);if(null!=_0x27c189['newRange']){'formatInline'==_0x20a892&&(_0x3bce6d=_0x3bce6d||Ut(_0x27c189['newRange'],_0x539ab2,_0x3d7e97,_0x46951c['model']['schema']));const _0x3dc044='attribute'==_0x20a892&&this['_isBlockAttribute'](_0x2040f0['split']('|')[0x0]);if(_0x27c189['newRange']['isCollapsed']||'$graveyard'==_0x27c189['newRange']['root']['rootName']||'formatBlock'==_0x20a892&&!Ft(_0x27c189['newRange'])||_0x3dc044&&!Ft(_0x27c189['newRange'])||'deletion'==_0x20a892&&!(!Vt(_0x5736ef=_0x27c189['newRange'])&&!function(_0x26f148){return _0x26f148['start']['parent']==_0x26f148['end']['nodeBefore']&&_0x26f148['start']['isAtEnd'];}(_0x5736ef)))_0x3d7e97['removeMarker'](_0x539ab2),_0x3bce6d=!0x0;else{if(!_0x10f756||!_0x10f756['isInContent'])continue;if(_0x27c189['newRange']&&_0x27c189['oldRange']&&_0x27c189['newRange']['isEqual'](_0x27c189['oldRange']))continue;_0x39c0c0['add'](_0x10f756);}}}var _0x5736ef;return _0x39c0c0['size']>0x0&&(_0x3bce6d=!!this['_joinWithAdjacentSuggestions'](_0x39c0c0)||_0x3bce6d),_0x3bce6d;}),_0x46951c['model']['document']['registerPostFixer'](_0x5cece0=>{let _0x5dc120=!0x1;for(const _0x1ff248 of _0x46951c['model']['document']['differ']['getChanges']())if('insert'==_0x1ff248['type'])for(const _0x3f3412 of this['_suggestions']['values']()){if(_0x3f3412['isMultiRange']||!_0x3f3412['isInContent'])continue;const _0x132153='formatBlock'==_0x3f3412['type'],_0x37b045=this['_getAttributeKey'](_0x3f3412),_0xf9b92f=_0x37b045&&this['_isBlockAttribute'](_0x37b045);if(!_0x132153&&!_0xf9b92f)continue;const _0x630942=_0x3f3412['getFirstRange']();if(_0x630942['start']['parent']!=_0x630942['end']['parent']&&!_0x630942['end']['isAtEnd']){const _0x4aba97=_0x46951c['model']['createPositionAt'](_0x630942['start']['nodeAfter'],'end'),_0x9c530b=_0x46951c['model']['createRange'](_0x630942['start'],_0x4aba97);_0x5cece0['updateMarker'](_0x3f3412['getFirstMarker'](),{'range':_0x9c530b}),_0x5dc120=!0x0;}}return _0x5dc120;}),_0x46951c['model']['document']['registerPostFixer'](_0x3b6b09=>this['_processAttributeChanges'](_0x3b6b09)),_0x46951c['model']['document']['registerPostFixer'](_0x40f8c3=>!_0x40f8c3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x40f8c3)),_0x46951c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x46951c['model']['document']['on']('change:data',(_0x156bf1,_0x3f7239)=>{if(!_0x3f7239['isLocal']||_0x3f7239['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d52b9=_0x46951c['model']['document']['differ']['getChanges']();if(0x0==_0x3d52b9['length'])return;const _0x111de2=[],_0x2caaf5=_0x3d52b9['filter'](_0x1b908f=>'attribute'==_0x1b908f['type']),_0x1bb266=_0x3d52b9['filter'](_0x1bd28a=>'insert'==_0x1bd28a['type']&&'$text'!=_0x1bd28a['name']);for(const _0x16992e of _0x2caaf5)this['_isRegisteredAttribute'](_0x16992e['attributeKey'])&&_0x111de2['push']({'key':_0x16992e['attributeKey'],'newValue':_0x16992e['attributeNewValue'],'oldValue':_0x16992e['attributeOldValue'],'range':Pt(_0x16992e['range'],_0x46951c['model'])});for(const _0x4af46f of _0x1bb266){if('rename'!=_0x4af46f['action']&&'refresh'!=_0x4af46f['action'])continue;const _0x1d34d3=Lt(_0x4af46f['position']['nodeAfter'],_0x46951c['model']),_0x79b0ea=_0x4af46f['before'];'rename'==_0x4af46f['action']&&_0x111de2['push']({'key':m,'newValue':_0x4af46f['name'],'oldValue':_0x79b0ea['name'],'range':_0x1d34d3});for(const [_0x444225,_0x33c4d5]of _0x79b0ea['attributes']){if(!this['_isRegisteredAttribute'](_0x444225))continue;const _0x1d6dcb=_0x4af46f['attributes']['get'](_0x444225);_0x33c4d5!==_0x1d6dcb&&_0x111de2['push']({'key':_0x444225,'newValue':_0x1d6dcb,'oldValue':_0x33c4d5,'range':_0x1d34d3});}for(const [_0x1db0ef,_0xa65670]of _0x4af46f['attributes'])this['_isRegisteredAttribute'](_0x1db0ef)&&(_0x79b0ea['attributes']['has'](_0x1db0ef)||_0x111de2['push']({'key':_0x1db0ef,'newValue':_0xa65670,'oldValue':null,'range':_0x1d34d3}));}0x0!=_0x111de2['length']&&_0x46951c['model']['enqueueChange'](_0x3f7239,_0x3fbeed=>{const _0x42ced0=_0x1f120b();for(const {range:_0x5ac4de,key:_0x49f180,oldValue:_0x3766b7,newValue:_0x34f9c2}of _0x111de2)this['markAttributeChange'](_0x5ac4de,_0x49f180,_0x3766b7,_0x34f9c2,{'groupId':_0x42ced0});this['_reduceExistingSuggestions'](_0x3fbeed,_0x111de2);});},{'priority':'lowest'}),_0x46951c['model']['markers']['on']('update:suggestion',(_0x38a39d,_0x3c074d,_0x4072ce)=>{if(null==_0x4072ce){const {id:_0x478cff}=this['_splitMarkerName'](_0x3c074d['name']),_0x5ee3f0=this['_suggestions']['get'](_0x478cff);_0x5ee3f0&&_0x5ee3f0['addMarkerName'](_0x3c074d['name']);}}),_0x46951c['model']['document']['on']('change:data',()=>{const _0xb49b5f=Array['from'](_0x46951c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a91b2=>'suggestion'===this['_splitMarkerName'](_0x5a91b2['name'])['group']);if(0x0===_0xb49b5f['length'])return;_0xb49b5f['sort']((_0x4ab0f7,_0x43dc28)=>{const _0x207da9=_0x4ab0f7['data']['oldRange'],_0xf64138=_0x43dc28['data']['oldRange'];return null===_0x207da9&&null===_0xf64138?0x0:null===_0x207da9&&null!==_0xf64138?-0x1:null!==_0x207da9&&null===_0xf64138?0x1:_0x207da9['start']['isBefore'](_0xf64138['start'])?-0x1:0x1;});const _0x36b83c=new Set(),_0x39dcab=new Set();for(const {name:_0x961da5,data:_0x580270}of _0xb49b5f){const {id:_0x293ba1}=this['_splitMarkerName'](_0x961da5);if(null===_0x580270['oldRange']){const _0xec85c5=this['_handleNewSuggestionMarker'](_0x961da5);_0x39dcab['add'](_0xec85c5);}else{const _0x176614=this['_suggestions']['get'](_0x293ba1);null!==_0x580270['newRange']||_0x176614['isInContent']?(_0x36b83c['add'](_0x176614['head']),_0x39dcab['add'](_0x176614)):this['_removeSuggestion'](_0x176614);}}_0x39dcab['size']>0x0&&this['_refreshSuggestionsChain'](_0x39dcab);for(const _0x31bcda of _0x36b83c)this['fire']('suggestionChanged',_0x31bcda);}),_0x46951c['model']['on']('applyOperation',(_0x3b3118,_0x4ebe58)=>{const _0x5e12a8=_0x4ebe58[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e12a8['isDocumentOperation'])return;if(_0x5e12a8['batch']['isUndo']||!_0x5e12a8['batch']['isLocal'])return;let _0x2bedef,_0x443cfe;switch(_0x5e12a8['type']){case'insert':_0x2bedef=_0x46951c['model']['createPositionAt'](_0x5e12a8['position']),_0x443cfe=_0x2bedef['getShiftedBy'](_0x5e12a8['howMany']);break;case'split':_0x2bedef=_0x46951c['model']['createPositionAt'](_0x5e12a8['splitPosition']),_0x443cfe=_0x46951c['model']['createPositionAt'](_0x5e12a8['moveTargetPosition']);break;case'move':_0x2bedef=_0x46951c['model']['createPositionAt'](_0x5e12a8['targetPosition']),_0x443cfe=_0x2bedef['getShiftedBy'](_0x5e12a8['howMany']);break;default:return;}const _0x1a9302=_0x46951c['model']['createRange'](_0x2bedef,_0x443cfe);_0x46951c['model']['change'](()=>{for(const {suggestion:_0x334e95,meta:_0x24637e}of this['_findSuggestions'](_0x1a9302)){if(_0x334e95['isMultiRange'])continue;if('formatInline'==_0x334e95['type'])continue;const _0x492480=this['_getAttributeKey'](_0x334e95);if(_0x492480&&this['_isBlockAttribute'](_0x492480)&&'split'!=_0x5e12a8['type'])continue;const _0x3b3ba7=_0x334e95['data']&&_0x334e95['data']['multipleBlocks'];('formatBlock'!=_0x334e95['type']||'split'==_0x5e12a8['type']&&!_0x3b3ba7)&&(_0x24637e['containsRangeInObject']||'insertion'==_0x334e95['type']&&_0x24637e['isOwn']||_0x334e95['getFirstRange']()['containsRange'](_0x1a9302)&&this['_breakSuggestionMarker'](_0x334e95,_0x2bedef,_0x443cfe));}});},{'priority':'lowest'}),_0x46951c['model']['on']('deleteContent',(_0x399f3f,_0x440205)=>{const _0x1e00a2=_0x440205[0x0],_0x4ffb49=_0x440205[0x1];if(_0x4ffb49&&_0x4ffb49['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1e00a2['isCollapsed'])return;const _0x53a47f=_0x46951c['model']['schema'],{start:_0x4e0386,end:_0x1da6ec}=_0x1e00a2['getFirstRange'](),_0x5112b4=_0x4e0386['nodeAfter']&&_0x53a47f['isLimit'](_0x4e0386['nodeAfter'])?null:_0x53a47f['getNearestSelectionRange'](_0x4e0386,'forward'),_0x425096=_0x1da6ec['nodeBefore']&&_0x53a47f['isLimit'](_0x1da6ec['nodeBefore'])?null:_0x53a47f['getNearestSelectionRange'](_0x1da6ec,'backward'),_0x3c4d51=_0x46951c['model']['createRange'](_0x5112b4?_0x5112b4['start']:_0x4e0386,_0x425096?_0x425096['end']:_0x1da6ec);_0x46951c['model']['change'](_0x16bedc=>{this['markDeletion'](_0x3c4d51);const _0x5137fa=_0x46951c['model']['schema']['getNearestSelectionRange'](_0x3c4d51['start']);_0x1e00a2['is']('documentSelection')?_0x16bedc['setSelection'](_0x5137fa):_0x1e00a2['setTo'](_0x5137fa);}),_0x399f3f['stop']();},{'priority':_0x2fc9ed['normal']+0xa}),_0x46951c['model']['on']('insertContent',(_0x3a2b05,_0x25ab30)=>{const _0x350e1d=_0x25ab30[_0x25ab30['length']-0x1];_0x350e1d&&_0x350e1d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x46951c['model']['change'](()=>{let _0x2fc577=_0x46951c['model']['insertContent'](_0x25ab30[0x0],_0x25ab30[0x1],_0x25ab30[0x2],{'forceDefaultExecution':!0x0});if(!_0x2fc577)return;_0x3a2b05['return']=_0x2fc577['clone']();const _0x39c86a=_0x2fc577['end']['nodeBefore'],_0x147e35=_0x46951c['model']['schema'];_0x39c86a&&_0x147e35['isBlock'](_0x39c86a)&&!_0x147e35['isObject'](_0x39c86a)&&(_0x2fc577=_0x46951c['model']['createRange'](_0x2fc577['start'],_0x46951c['model']['createPositionAt'](_0x39c86a,'end'))),this['markInsertion'](_0x2fc577);}),_0x3a2b05['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b8095=new x(_0x46951c,this['_suggestions']);_0x46951c['commands']['add']('acceptSuggestion',_0x2b8095),this['enableCommand']('acceptSuggestion');const _0x10c46e=new R(_0x46951c,this['_suggestions']);_0x46951c['commands']['add']('discardSuggestion',_0x10c46e),this['enableCommand']('discardSuggestion'),_0x46951c['commands']['add']('acceptAllSuggestions',new E(_0x46951c,_0x2b8095,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x46951c['commands']['add']('discardAllSuggestions',new E(_0x46951c,_0x10c46e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x46951c['commands']['add']('acceptSelectedSuggestions',new O(_0x46951c,_0x2b8095,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x46951c['commands']['add']('discardSelectedSuggestions',new O(_0x46951c,_0x10c46e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x566ad0=_0x46951c['plugins']['get']('CommentsRepository');this['listenTo'](_0x566ad0,'addComment',(_0x26e9ae,{threadId:_0x48439b})=>{const _0x134ccd=this['_suggestions']['get'](_0x48439b);_0x134ccd&&_0x134ccd['commentThread']&&0x1===_0x134ccd['commentThread']['length']&&this['_updateSuggestionData'](_0x48439b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x566ad0,'removeComment',(_0x368ff0,{threadId:_0x4f8832})=>{const _0x16cdb6=this['_suggestions']['get'](_0x4f8832);_0x16cdb6&&_0x16cdb6['commentThread']&&!_0x16cdb6['commentThread']['length']&&this['_updateSuggestionData'](_0x4f8832,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x544fc0){if(this['_adapter'])throw new _0x106f22('track-changes-adapter-already-set',this);this['_adapter']=_0x544fc0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5dff0a=!0x1,toJSON:_0x234cb9=!0x1}={}){const _0x580e0b=[];for(const _0x43f4f8 of this['_suggestions']['values']())_0x5dff0a&&!_0x43f4f8['isInContent']||_0x580e0b['push'](_0x43f4f8);return _0x234cb9?_0x580e0b['map'](_0x2bb73a=>_0x2bb73a['toJSON']()):_0x580e0b;}['getSuggestion'](_0x1b709a){const _0x488d28=this['_suggestions']['get'](_0x1b709a);if(!_0x488d28)throw new _0x106f22('track-changes-suggestion-not-found',this);return _0x488d28;}['hasSuggestion'](_0x371eb1){return this['_suggestions']['has'](_0x371eb1);}['addSuggestionData'](_0x42f598){const {authorId:_0x5c94a0,id:_0xf001ad,attributes:_0x2cab9b}=_0x42f598,[_0x46a34b,_0x1f2a21]=_0x42f598['type']['split'](':'),_0x49d972=this['_suggestions']['get'](_0xf001ad)||this['_createSuggestion'](_0x46a34b,_0x1f2a21,_0xf001ad,_0x5c94a0,_0x2cab9b);if(this['_addThreadToSuggestion'](_0x49d972),this['_checkSuggestionCorrectness'](_0x49d972,_0x46a34b,_0x1f2a21||null,_0x5c94a0),_0x49d972['createdAt']=_0x42f598['createdAt'],_0x49d972['_isDataLoaded']=!0x0,_0x2cab9b&&_0x2cab9b['@external']){const _0xa8f571=_0x2cab9b['@external'],_0x54cac8=this['_getExternalAuthor'](_0xa8f571['authorName']);_0x49d972['authoredAt']=_0xa8f571['createdAt'],_0x49d972['author']=_0x54cac8,_0x49d972['isExternal']=!0x0;}else _0x49d972['authoredAt']=_0x42f598['createdAt'];switch(_0x42f598['data']&&(_0x49d972['data']=_0x42f598['data']),_0x42f598['attributes']&&(_0x49d972['attributes']=_0x42f598['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x49d972['_saved']=!0x0),this['_suggestionState']['get'](_0x49d972)){case'notReady':this['_suggestionState']['set'](_0x49d972,'dataReady');break;case'markerReady':_0x49d972['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x49d972])),this['_refreshSuggestionsChain'](new Set([_0x49d972])),this['_suggestionState']['set'](_0x49d972,'ready'),this['fire']('suggestionLoaded',_0x49d972)):this['_suggestionState']['set'](_0x49d972,'removed');}return _0x49d972;}['acceptSuggestion'](_0x3296ec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x213fcd of _0x3296ec['getAllAdjacentSuggestions']())_0x213fcd['accept']();});});}['discardSuggestion'](_0x94084f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38c730 of _0x94084f['getAllAdjacentSuggestions']())_0x38c730['discard']();});});}['enableCommand'](_0x5cc394,_0x17745f){const _0x56e47f=this['editor']['commands']['get'](_0x5cc394);if(!_0x56e47f)throw new _0x106f22('track-changes-command-not-found',this,{'commandName':_0x5cc394});if(this['_enabledCommands']['has'](_0x56e47f))throw new _0x106f22('track-changes-enable-command-twice',this,{'commandName':_0x5cc394});this['_enabledCommands']['add'](_0x56e47f),_0x17745f&&_0x56e47f['on']('execute',(_0x5d40c4,_0x62266a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x62266a['length']>0x0&&_0x62266a[_0x62266a['length']-0x1]&&_0x62266a[_0x62266a['length']-0x1]['forceDefaultExecution']?_0x62266a['pop']():(_0x5d40c4['return']=_0x17745f((..._0x1834a5)=>_0x56e47f['execute'](..._0x1834a5,{'forceDefaultExecution':!0x0}),..._0x62266a),_0x5d40c4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x451125){let _0x3e5ab1,_0x508dd6;const _0x4119a2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e5ab1=_0x451125();}catch(_0x38ca9d){_0x508dd6=_0x38ca9d;}return _0x4119a2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x508dd6&&_0x106f22['rethrowUnexpectedError'](_0x508dd6,this),_0x3e5ab1;}['markInsertion'](_0x374339,_0x3c52fb=null,_0x6b0cc1={}){if(_0x374339['isCollapsed'])return null;const _0x26eec9=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1bdf36,meta:_0x5ef63e}of this['_findSuggestions'](_0x374339,'insertion'))if(_0x5ef63e['isOwn']){if(!_0x5ef63e['isNextTo']){if(_0x5ef63e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1bdf36,_0x6b0cc1))continue;return _0x1bdf36;}if(qt(_0x1bdf36,_0x6b0cc1))return _0x1bdf36;this['_breakSuggestionMarker'](_0x1bdf36,_0x374339['start'],_0x374339['end']);break;}if(_0x3c52fb==_0x1bdf36['subType']&&qt(_0x1bdf36,_0x6b0cc1)){const _0x56a957=_0x1bdf36['getFirstRange']();return _0x56a957['start']['isEqual'](_0x374339['end'])?this['_setSuggestionRange'](_0x1bdf36,this['_model']['createRange'](_0x374339['start'],_0x56a957['end'])):this['_setSuggestionRange'](_0x1bdf36,this['_model']['createRange'](_0x56a957['start'],_0x374339['end'])),_0x1bdf36;}}const _0x372a4d=_0x1f120b(),_0x2b91c2=_0x26eec9['id'],_0x40a3f6=_0x3c52fb?'insertion:'+_0x3c52fb:'insertion',_0x3f2b95=this['_setSuggestionData']({'id':_0x372a4d,'type':_0x40a3f6,'createdAt':new Date(),'authorId':_0x2b91c2,'attributes':_0x6b0cc1});return this['_addSuggestionMarker'](_0x40a3f6,_0x372a4d,_0x2b91c2,_0x374339),_0x3f2b95;}['markMultiRangeInsertion'](_0x26e6e9,_0x41f6bb='multi',_0x23f855={}){const _0x43f0b1=this['editor']['plugins']['get']('Users')['me'],_0x3797b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x41f6bb,'join');for(const _0x4a9dd7 of this['getSuggestions']())if(_0x4a9dd7['author']['id']==_0x43f0b1['id']&&'insertion'==_0x4a9dd7['type']&&_0x4a9dd7['subType']==_0x41f6bb&&qt(_0x4a9dd7,_0x23f855)&&(_0x3797b5(_0x4a9dd7['getRanges'](),_0x26e6e9)||_0x3797b5(_0x26e6e9,_0x4a9dd7['getRanges']()))){for(const _0x9bf873 of _0x26e6e9)_0x4a9dd7['addRange'](_0x9bf873);return _0x4a9dd7;}for(const {suggestion:_0x1c49c7,meta:_0x56c54f}of this['_findSuggestions'](_0x26e6e9,'insertion')){if(!_0x56c54f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x56c54f['containsRangeInObject'])continue;if(!qt(_0x1c49c7,_0x23f855))continue;let _0x255480=!0x0;for(const _0x1cec59 of _0x1c49c7['getRanges']())for(const _0x2816df of _0x26e6e9)if(!_0x1cec59['containsRange'](_0x2816df)){_0x255480=!0x1;break;}if(_0x255480)return _0x1c49c7;}const _0x4fdb5e=_0x1f120b(),_0x3084b9=_0x43f0b1['id'],_0x57fa27='insertion:'+_0x41f6bb,_0x2e9fe2=this['_setSuggestionData']({'id':_0x4fdb5e,'type':_0x57fa27,'createdAt':new Date(),'authorId':_0x3084b9,'attributes':_0x23f855});for(const _0x94e9f5 of _0x26e6e9)this['_addSuggestionMarker'](_0x57fa27,_0x4fdb5e,_0x3084b9,_0x94e9f5,u['getMultiRangeId']());return _0x2e9fe2;}['markInlineFormat'](_0x18d7ac,_0x39bd7a,_0x19696e=null,_0x1b972e={}){if(_0x19696e=_0x19696e||Gt(_0x39bd7a),_0x18d7ac['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5f5def=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19696e,'accept');return this['forceDefaultExecution'](()=>_0x5f5def([_0x18d7ac],_0x39bd7a,_0x1b972e)),null;}const _0x208cde=this['editor']['plugins']['get']('Users')['me'],_0x2f8b7a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3c6204,meta:_0x409391}of this['_findSuggestions'](_0x18d7ac,'insertion'))_0x409391['isOwn']&&!_0x409391['isInsideObject']&&_0x2f8b7a['push'](..._0x3c6204['getRanges']());}const _0x5bf7bd=function(_0x525320,_0x5003bb){const _0x150339=[];for(const _0xe67baf of _0x5003bb){const _0x14f040=_0x525320['getIntersection'](_0xe67baf);_0x14f040&&_0x150339['push'](_0x14f040);}return _0x150339;}(_0x18d7ac,_0x2f8b7a),_0x4c6d47=function(_0x12c01a,_0x28683e){const _0x355e5b=[_0x12c01a];for(const _0x25775b of _0x28683e){let _0x325712=0x0;for(;_0x325712<_0x355e5b['length'];){const _0x432262=_0x355e5b[_0x325712]['getDifference'](_0x25775b);_0x355e5b['splice'](_0x325712,0x1,..._0x432262),_0x325712+=_0x432262['length'];}}return _0x355e5b;}(_0x18d7ac,_0x2f8b7a);_0x5bf7bd['length']&&this['_model']['change'](()=>{for(const _0x3e8ec2 of _0x5bf7bd){const _0x39e053=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19696e,'accept');this['forceDefaultExecution'](()=>_0x39e053([_0x3e8ec2],_0x39bd7a,_0x1b972e));}});for(const _0x12f3ca of _0x4c6d47){let _0x147ddb=null,_0x524855=_0x12f3ca['start'],_0x13f2f5=_0x12f3ca['end'];for(const {suggestion:_0x5df714,meta:_0x450747}of this['_findSuggestions'](_0x12f3ca,'formatInline')){if(!_0x450747['isOwn'])continue;if(_0x5df714['subType']!=_0x19696e)continue;if(!qt(_0x5df714,_0x1b972e))continue;const _0x2898f7=_0x5df714['getFirstRange']();if(_0x2898f7['containsRange'](_0x12f3ca,!0x0))return null;_0x524855=_0x524855['isBefore'](_0x2898f7['start'])?_0x524855:_0x2898f7['start'],_0x13f2f5=_0x13f2f5['isAfter'](_0x2898f7['end'])?_0x13f2f5:_0x2898f7['end'],_0x147ddb?_0x2898f7['start']['isBefore'](_0x147ddb['getFirstRange']()['start'])?(_0x147ddb['removeMarkers'](),_0x147ddb=_0x5df714):_0x5df714['removeMarkers']():_0x147ddb=_0x5df714;}const _0xa568ca=this['_model']['createRange'](_0x524855,_0x13f2f5);if(_0x147ddb)this['_setSuggestionRange'](_0x147ddb,_0xa568ca);else{const _0x29868c=_0x1f120b(),_0x2dd5db=_0x208cde['id'];this['_setSuggestionData']({'id':_0x29868c,'type':'formatInline:'+_0x19696e,'data':_0x39bd7a,'createdAt':new Date(),'authorId':_0x2dd5db,'attributes':_0x1b972e}),this['_addSuggestionMarker']('formatInline:'+_0x19696e,_0x29868c,_0x2dd5db,_0xa568ca);}}return null;}['markBlockFormat'](_0x474740,_0x2fe5fb,_0x1c5266=[],_0x20e633=null,_0x118b69={}){_0x2fe5fb['formatGroupId']||(_0x2fe5fb['formatGroupId']=_0x2fe5fb['commandName']),_0x2fe5fb['multipleBlocks']=_0x474740['is']('range'),_0x20e633=_0x20e633||Gt(_0x2fe5fb);const _0x327a22=_0x1c5266['map'](_0x3c99a1=>Lt(_0x3c99a1,this['_model'])),_0x5f6850=_0x474740['is']('range')?_0x474740:Lt(_0x474740,this['_model']);if('never'===this['_trackFormatChanges']){const _0x6132c3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e633,'accept');return this['forceDefaultExecution'](()=>_0x6132c3([_0x5f6850],_0x2fe5fb,_0x118b69)),null;}_0x327a22['push'](_0x5f6850);let _0x31b842=!0x0;for(const _0x47b04e of _0x327a22)if(!this['_rangeIsInLocalUserInsertion'](_0x47b04e)){_0x31b842=!0x1;break;}if(_0x31b842&&'always'!==this['_trackFormatChanges']){const _0x1a2937=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e633,'accept');return this['forceDefaultExecution'](()=>_0x1a2937([_0x5f6850],_0x2fe5fb,_0x118b69)),null;}let _0x436ad1=null,_0x2a90b5=_0x5f6850['start'],_0x25e3e1=_0x5f6850['end'];for(const {suggestion:_0x1d3815,meta:_0x21cb8a}of this['_findSuggestions'](_0x5f6850,'formatBlock')){if(!_0x21cb8a['isOwn'])continue;if(_0x21cb8a['isNextTo']||_0x21cb8a['containsRangeInObject']||_0x21cb8a['isInsideObject'])continue;if(_0x1d3815['data']['formatGroupId']!=_0x2fe5fb['formatGroupId'])continue;if(!qt(_0x1d3815,_0x118b69))continue;const _0x4188a3=_0x1d3815['getFirstRange']();if(_0x1d3815['subType']==_0x20e633){if(_0x4188a3['containsRange'](_0x5f6850,!0x0))return null;_0x2a90b5=_0x2a90b5['isBefore'](_0x4188a3['start'])?_0x2a90b5:_0x4188a3['start'],_0x25e3e1=_0x25e3e1['isAfter'](_0x4188a3['end'])?_0x25e3e1:_0x4188a3['end'],_0x436ad1?_0x4188a3['start']['isBefore'](_0x436ad1['getFirstRange']()['start'])?(_0x436ad1['removeMarkers'](),_0x436ad1=_0x1d3815):_0x1d3815['removeMarkers']():_0x436ad1=_0x1d3815;}else{const _0xf6f61=_0x5f6850['getIntersection'](_0x4188a3);this['_cutOutSuggestionMarker'](_0x1d3815,_0xf6f61);}}const _0x56688e=this['editor']['plugins']['get']('Users')['me'],_0x4d696f=_0x1f120b(),_0x103bd5=_0x56688e['id'];if(_0x436ad1)return this['_setSuggestionRange'](_0x436ad1,this['_model']['createRange'](_0x2a90b5,_0x25e3e1)),_0x436ad1;{const _0x2ca254=this['_setSuggestionData']({'id':_0x4d696f,'type':'formatBlock:'+_0x20e633,'data':_0x2fe5fb,'createdAt':new Date(),'authorId':_0x103bd5,'attributes':_0x118b69});return this['_addSuggestionMarker']('formatBlock:'+_0x20e633,_0x4d696f,_0x103bd5,this['_model']['createRange'](_0x2a90b5,_0x25e3e1)),_0x2ca254;}}['markMultiRangeBlockFormat'](_0x189960,_0x5797aa,_0x417734=[],_0x2a07df=null,_0x1be221={}){_0x5797aa['formatGroupId']||(_0x5797aa['formatGroupId']=_0x5797aa['commandName']);const _0xbb398b=_0x189960[0x0];_0x5797aa['multipleBlocks']=_0xbb398b['is']('range'),_0x2a07df=_0x2a07df||Gt(_0x5797aa);const _0x28e43b=_0x417734['map'](_0x4a075b=>Lt(_0x4a075b,this['_model'])),_0x4311e8=_0xbb398b['is']('range')?_0x189960:_0x189960['map'](_0x4ddfd6=>Lt(_0x4ddfd6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x308682=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a07df,'accept');return this['forceDefaultExecution'](()=>_0x308682(_0x4311e8,_0x5797aa,_0x1be221)),null;}_0x28e43b['push'](..._0x4311e8);let _0x81370b=!0x0;for(const _0x4181bc of _0x28e43b)if(!this['_rangeIsInLocalUserInsertion'](_0x4181bc)){_0x81370b=!0x1;break;}if(_0x81370b&&'always'!==this['_trackFormatChanges']){const _0xf74cd5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a07df,'accept');return this['forceDefaultExecution'](()=>_0xf74cd5(_0x4311e8,_0x5797aa,_0x1be221)),null;}const _0x45e2a3=this['editor']['plugins']['get']('Users')['me'];for(const _0x215fa2 of this['getSuggestions']()){if(_0x215fa2['author']['id']!=_0x45e2a3['id'])continue;if('formatBlock'!=_0x215fa2['type']||_0x215fa2['data']['formatGroupId']!=_0x5797aa['formatGroupId'])continue;if(!qt(_0x215fa2,_0x1be221))continue;const _0xec5f82=_0x215fa2['subType']==_0x2a07df;for(let _0x1d66a7=0x0;_0x1d66a7<_0x4311e8['length'];_0x1d66a7++){const _0x1f2d36=_0x4311e8[_0x1d66a7];for(const _0x11db9b of _0x215fa2['getMarkers']()){const _0xf554f3=_0x11db9b['getRange']();if(_0x1f2d36['isEqual'](_0xf554f3)){_0xec5f82?(_0x4311e8['splice'](_0x1d66a7,0x1),_0x1d66a7--):_0x215fa2['removeMarker'](_0x11db9b['name']);break;}}}}if(0x0==_0x4311e8['length'])return null;const _0x35398d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a07df,'join');for(const _0xee51a2 of this['getSuggestions']())if(_0xee51a2['author']['id']==_0x45e2a3['id']&&'formatBlock'==_0xee51a2['type']&&_0xee51a2['data']['formatGroupId']==_0x5797aa['formatGroupId']&&_0xee51a2['subType']==_0x2a07df&&qt(_0xee51a2,_0x1be221)&&(_0x35398d(_0xee51a2['getRanges'](),_0x4311e8)||_0x35398d(_0x4311e8,_0xee51a2['getRanges']()))){for(const _0x4d8a37 of _0x4311e8)_0xee51a2['addRange'](_0x4d8a37);return _0xee51a2;}const _0x520140=_0x1f120b(),_0x4b4a86=_0x45e2a3['id'],_0x37d8f8='formatBlock:'+_0x2a07df,_0x4d11a5=this['_setSuggestionData']({'id':_0x520140,'type':_0x37d8f8,'data':_0x5797aa,'createdAt':new Date(),'authorId':_0x4b4a86,'attributes':_0x1be221});for(const _0x358e0d of _0x4311e8)this['_addSuggestionMarker'](_0x37d8f8,_0x520140,_0x4b4a86,_0x358e0d,u['getMultiRangeId']());return _0x4d11a5;}['markDeletion'](_0x52e0e8,_0x1ba977=null,_0x256e3c={}){if(_0x52e0e8['isCollapsed'])return null;const _0x240fdb=this['editor']['plugins']['get']('Users')['me'],_0xe88f7a=new _0x8342a4(_0x52e0e8['start'],_0x52e0e8['end']);for(const {suggestion:_0x9a65e,meta:_0x90000e}of this['_findSuggestions'](_0xe88f7a,'insertion'))if(_0x90000e['isOwn']&&!_0x90000e['isNextTo']){if(_0x9a65e['isMultiRange']){const _0x43b40d=_0x9a65e['getRanges']()['filter'](_0x5c0e59=>'$graveyard'!=_0x5c0e59['root']['rootName']);_0x43b40d['every'](_0x386984=>_0xe88f7a['containsRange'](_0x386984,!0x0))&&_0x9a65e['discard']();if(_0x43b40d['some'](_0x4ce57d=>_0x4ce57d['containsRange'](_0xe88f7a,!0x0))){const _0x5101e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ba977,'accept');return this['forceDefaultExecution'](()=>_0x5101e6([_0xe88f7a],null,_0x256e3c)),null;}}else{const _0x2ef05d=_0xe88f7a['getIntersection'](_0x9a65e['getFirstRange']());null!==_0x2ef05d&&_0x9a65e['_onDiscard']([_0x2ef05d],null,_0x256e3c);}}if(_0xe88f7a['detach'](),_0xe88f7a['isCollapsed']||'$graveyard'==_0xe88f7a['root']['rootName'])return null;let _0x3a36bf=null,_0x3013e5=_0xe88f7a['start'],_0x29591f=_0xe88f7a['end'];const _0x151d26=this['_findSuggestions'](_0xe88f7a,'deletion');for(const {suggestion:_0x3802b7,meta:_0x119875}of _0x151d26){const _0x3e93d2=this['_model']['createRange'](_0x3013e5,_0x29591f);if(_0x119875['isOwn']&&(this['_mergeNestedSuggestions']||!_0x119875['containsRangeInObject']&&!_0x119875['isInsideObject'])){if(_0x3802b7['isMultiRange']){if(!qt(_0x3802b7,_0x256e3c))continue;let _0x4b7b4b=!0x0;for(const _0x27b0df of _0x3802b7['getRanges']()){if(_0x27b0df['containsRange'](_0x3e93d2,!0x0))return _0x3802b7;_0x3e93d2['containsRange'](_0x27b0df)||(_0x4b7b4b=!0x1);}_0x4b7b4b&&_0x3802b7['discard']();}else{const _0x367716=_0x3802b7['getFirstRange']();if(_0x367716['containsRange'](_0x3e93d2,!0x0))return _0x3802b7;if(!qt(_0x3802b7,_0x256e3c)){_0x3e93d2['containsRange'](_0x367716)?_0x3802b7['removeMarkers']():_0x367716['containsPosition'](_0x3013e5)?_0x3013e5=_0x367716['end']:_0x367716['containsPosition'](_0x29591f)&&(_0x29591f=_0x367716['start']);continue;}_0x3013e5=_0x3013e5['isBefore'](_0x367716['start'])?_0x3013e5:_0x367716['start'],_0x29591f=_0x29591f['isAfter'](_0x367716['end'])?_0x29591f:_0x367716['end'],_0x256e3c=Object['assign']({},_0x3802b7['attributes']),_0x3a36bf?_0x367716['start']['isBefore'](_0x3a36bf['getFirstRange']()['start'])?(_0x3a36bf['removeMarkers'](),_0x3a36bf=_0x3802b7):_0x3802b7['removeMarkers']():_0x3a36bf=_0x3802b7;}}}if(_0x3a36bf)return this['_setSuggestionRange'](_0x3a36bf,this['_model']['createRange'](_0x3013e5,_0x29591f)),_0x3a36bf;{const _0x29c664=_0x1f120b(),_0x2e6126=this['_model']['createRange'](_0x3013e5,_0x29591f),_0x54716c=_0x240fdb['id'],_0x43e4f5=_0x1ba977?'deletion:'+_0x1ba977:'deletion',_0x2e376b=this['_setSuggestionData']({'id':_0x29c664,'type':_0x43e4f5,'createdAt':new Date(),'authorId':_0x54716c,'attributes':_0x256e3c});return this['_addSuggestionMarker'](_0x43e4f5,_0x29c664,_0x54716c,_0x2e6126),_0x2e376b;}}['markMultiRangeDeletion'](_0x427053,_0x2bf1aa='multi',_0x184695={}){const _0x119b3b=this['editor']['plugins']['get']('Users')['me'],_0x2b9e73=_0x427053['map'](_0x5655ad=>new _0x8342a4(_0x5655ad['start'],_0x5655ad['end'])),_0x43b683=new Set();for(const {suggestion:_0x2020a1,meta:_0x518c2b}of this['_findSuggestions'](_0x2b9e73,'insertion'))_0x518c2b['isOwn']&&!_0x518c2b['isNextTo']&&_0x43b683['add'](_0x2020a1);for(const _0x336873 of _0x43b683)if(_0x336873['isMultiRange']){const _0x30471a=_0x336873['getRanges']();(!_0x336873['attributes']||!_0x336873['attributes']['skipNestingCheck'])&&(_0x30471a['every'](_0x215d22=>_0x2b9e73['some'](_0x18fbb5=>_0x18fbb5['containsRange'](_0x215d22,!0x0)))&&_0x336873['discard']());if(_0x2b9e73['every'](_0x2f11bd=>_0x30471a['some'](_0x3f32cf=>_0x3f32cf['containsRange'](_0x2f11bd,!0x0)))){const _0x4f1348=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bf1aa,'accept');return this['forceDefaultExecution'](()=>_0x4f1348(_0x427053,null,_0x184695)),null;}}else{const _0x2291f8=_0x336873['getFirstRange']();_0x2b9e73['some'](_0x4d30d3=>_0x4d30d3['containsRange'](_0x2291f8,!0x0))&&_0x336873['discard']();if(_0x2b9e73['every'](_0x55a0d7=>_0x2291f8['containsRange'](_0x55a0d7,!0x0))){const _0x1d583a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bf1aa,'accept');return this['forceDefaultExecution'](()=>_0x1d583a(_0x2b9e73,null,_0x184695)),null;}}const _0x15fc39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bf1aa,'join');let _0xbdfcde=null;for(const _0x33b186 of this['getSuggestions']())if(_0x33b186['author']['id']==_0x119b3b['id']&&_0x33b186['isInContent']&&'deletion'==_0x33b186['type']&&_0x33b186['subType']==_0x2bf1aa&&qt(_0x33b186,_0x184695)&&(_0x15fc39(_0x33b186['getRanges'](),_0x2b9e73)||_0x15fc39(_0x2b9e73,_0x33b186['getRanges']()))){if(_0xbdfcde){if(_0x33b186['commentThread']&&_0x33b186['commentThread']['length'])continue;for(const _0x2a545a of _0x33b186['getRanges']())_0xbdfcde['isIntersectingWithRange'](_0x2a545a)||_0xbdfcde['addRange'](_0x2a545a);_0x33b186['removeMarkers']();}else{_0xbdfcde=_0x33b186;for(const _0x2769d2 of _0x2b9e73)_0x33b186['isIntersectingWithRange'](_0x2769d2)||_0x33b186['addRange'](_0x2769d2);}}if(_0xbdfcde)return _0xbdfcde;_0x43b683['clear']();for(const {suggestion:_0x4fd238,meta:_0x13660b}of this['_findSuggestions'](_0x2b9e73,'deletion'))_0x13660b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x13660b['containsRangeInObject']&&!_0x13660b['isInsideObject'])&&qt(_0x4fd238,_0x184695)&&_0x43b683['add'](_0x4fd238);for(const _0x2e4bfb of _0x43b683){const _0x450c2d=_0x2e4bfb['getRanges']();if(!_0x184695||!_0x184695['skipNestingCheck']){if(_0x2b9e73['every'](_0x4956a4=>_0x450c2d['some'](_0x1aa70d=>_0x1aa70d['containsRange'](_0x4956a4,!0x0))))return _0x2e4bfb;}(!_0x2e4bfb['attributes']||!_0x2e4bfb['attributes']['skipNestingCheck'])&&(_0x450c2d['every'](_0x34741d=>_0x2b9e73['some'](_0x316de1=>_0x316de1['containsRange'](_0x34741d,!0x0)))&&_0x2e4bfb['discard']());}const _0xf9806=_0x1f120b(),_0x5cc4af=_0x119b3b['id'],_0x40f8e9='deletion:'+_0x2bf1aa,_0xe40df=this['_setSuggestionData']({'id':_0xf9806,'type':_0x40f8e9,'createdAt':new Date(),'authorId':_0x5cc4af,'attributes':_0x184695});for(const _0x44213e of _0x2b9e73)_0x44213e['detach'](),_0x44213e['isCollapsed']||'$graveyard'==_0x44213e['root']['rootName']||this['_addSuggestionMarker'](_0x40f8e9,_0xf9806,_0x5cc4af,_0x44213e,u['getMultiRangeId']());return _0xe40df;}['markAttributeChange'](_0x2e3e7f,_0x548896,_0x768d50,_0x125e57,_0x35a166){if(_0x2e3e7f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a4815=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fcef9=Array['from'](this['_suggestions']['values']())['filter'](_0x36cdd9=>'attribute'==_0x36cdd9['type']&&_0x36cdd9['data']['key']==_0x548896&&_0x36cdd9['isIntersectingWithRange'](_0x2e3e7f));if('default'===this['_trackFormatChanges']){const _0x591ac8=this['_findSuggestions'](_0x2e3e7f,'insertion')['filter'](({meta:_0xe05d5b})=>_0xe05d5b['isOwn']&&!_0xe05d5b['isInsideObject']&&!_0xe05d5b['isNextTo'])['map'](({suggestion:_0xf4a515})=>_0xf4a515);_0x1fcef9['unshift'](..._0x591ac8);}const _0x5920df=new Map([[_0x2e3e7f,_0x768d50]]);for(const _0x40be6b of _0x1fcef9){const _0x1a4ecd='attribute'==_0x40be6b['type']?_0x40be6b['data']['oldValue']:void 0x0,_0x5a7bb6=_0x40be6b['getFirstRange'](),_0x74ecc3=Array['from'](_0x5920df['keys']())['find'](_0x261c1c=>_0x261c1c['isIntersecting'](_0x5a7bb6));if(!_0x74ecc3)continue;const _0x191cf6=_0x74ecc3['getDifference'](_0x5a7bb6);this['_isBlockAttribute'](_0x548896)&&'insertion'==_0x40be6b['type']&&0x0!=_0x191cf6['length']||(_0x5920df['delete'](_0x74ecc3),_0x191cf6['forEach'](_0x44e7fb=>{_0x5920df['set'](_0x44e7fb,_0x768d50);}),'insertion'!=_0x40be6b['type']&&_0x1a4ecd!=_0x125e57&&_0x5920df['set'](_0x74ecc3['getIntersection'](_0x5a7bb6),_0x1a4ecd));}const _0x1ab352=[];for(const [_0x8955bb,_0x55706f]of _0x5920df){const _0x1fc312=_0x1f120b(),_0x3cab92={'key':_0x548896,'oldValue':_0x55706f,'newValue':_0x125e57};_0x548896['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':_0x548896});const _0x54cc2f=('attribute:'+(_0x548896+'|'+Gt({'newValue':_0x125e57})))['substring'](0x0,0x3c),_0x11c228=this['_setSuggestionData']({'id':_0x1fc312,'type':_0x54cc2f,'data':_0x3cab92,'createdAt':new Date(),'authorId':_0x1a4815,'attributes':_0x35a166});_0x1ab352['push'](_0x11c228),this['_addSuggestionMarker'](_0x54cc2f,_0x1fc312,_0x1a4815,_0x8955bb);}return _0x1ab352;}['enableDefaultAttributesIntegration'](_0x46b16a){this['enableCommand'](_0x46b16a,(_0x51fd60,..._0x469a94)=>{this['_recordAttributeChanges'](()=>{_0x51fd60(..._0x469a94);});});}['registerBlockAttribute'](_0xf71c15){this['_blockAttributeKeys']['add'](_0xf71c15);}['registerInlineAttribute'](_0x331c5a){this['_inlineAttributeKeys']['add'](_0x331c5a);}['_getAttributeKey'](_0x58e9a5){return'attribute'==_0x58e9a5['type']?_0x58e9a5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3c5953,_0x364ec1){const _0x42b0a8=_0x3c5953['getFirstMarker']();this['_model']['change'](_0x580925=>{_0x580925['updateMarker'](_0x42b0a8,{'range':_0x364ec1});});}['_addThreadToSuggestion'](_0x386159){const _0x9ff8a3=_0x386159['id'],_0x22004d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x9ff8a3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x22004d,'threadId':_0x9ff8a3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1a0b43=this['_commentsRepository']['getCommentThread'](_0x9ff8a3);_0x1a0b43['unbind']('isRemovable'),_0x1a0b43['isRemovable']=!0x1,_0x386159['commentThread']=_0x1a0b43;}['_checkSuggestionCorrectness'](_0x279ea7,_0x19e5c0,_0x2f6834,_0x38d472){if(_0x279ea7['type']!=_0x19e5c0||_0x279ea7['subType']!=_0x2f6834||_0x279ea7['creator']['id']!=_0x38d472)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x106f22('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x45f2ec,_0x60946f){const _0x8364c5=_0x45f2ec['getFirstRange']();if(_0x60946f['isEqual'](_0x8364c5))_0x45f2ec['removeMarkers']();else{if(_0x8364c5['containsRange'](_0x60946f)){const _0x279721=this['_model']['createPositionAt'](_0x60946f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f2ec,this['_model']['createRange'](_0x8364c5['start'],_0x279721));const _0x121c63=_0x1f120b(),_0x74df7=_0x45f2ec['creator']['id'],_0xbebcb2=_0x45f2ec['type']+':'+_0x45f2ec['subType'];this['_setSuggestionData']({'id':_0x121c63,'type':_0xbebcb2,'createdAt':new Date(),'authorId':_0x74df7,'data':_0x45f2ec['data'],'attributes':_0x45f2ec['attributes']});const _0x3a0277=this['_model']['createPositionAt'](_0x60946f['end']['parent'],'after'),_0x1a60b5=this['_model']['createRange'](_0x3a0277,_0x8364c5['end']);this['_addSuggestionMarker'](_0xbebcb2,_0x121c63,_0x74df7,_0x1a60b5);}else{if(_0x8364c5['containsPosition'](_0x60946f['start'])){const _0x461fc6=this['_model']['createPositionAt'](_0x60946f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f2ec,this['_model']['createRange'](_0x8364c5['start'],_0x461fc6));}else{const _0x244d41=this['_model']['createPositionAt'](_0x60946f['end']['parent'],'after');this['_setSuggestionRange'](_0x45f2ec,this['_model']['createRange'](_0x244d41,_0x8364c5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3a7fbc){for(const {suggestion:_0x31618a,meta:_0x1115bd}of this['_findSuggestions'](_0x3a7fbc,'insertion')){if(!_0x1115bd['isOwn'])continue;const _0x3de515=_0x31618a['getRanges']();for(const _0x4c6c1f of _0x3de515)if(!_0x3a7fbc['getDifference'](_0x4c6c1f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x174b8f){const _0x5d4838=this['editor']['plugins']['get']('Users')['getUser'](_0x174b8f);if(!_0x5d4838)throw new _0x106f22('track-changes-user-not-found',this);return _0x5d4838;}['_getExternalAuthor'](_0x34d346){const _0x953356=this['editor']['plugins']['get']('Users'),_0x54437d=_0x538bec('external:'+_0x34d346),_0x24d59f=_0x953356['getUser'](_0x54437d);return _0x24d59f||_0x953356['addUser']({'id':_0x54437d,'name':_0x34d346});}['_createSuggestion'](_0x569f21,_0x5301e1,_0x2894a1,_0xe97030,_0x229c05){const _0x4930c3=this['_getAuthorFromId'](_0xe97030),_0x3e3ebf=this['_suggestionFactory']['buildSuggestion'](_0x569f21,_0x5301e1,_0x2894a1,_0x4930c3,_0x229c05,_0x52f492=>{this['_updateSuggestionData'](_0x2894a1,{'attributes':_0x52f492});const _0x41d6e2=this['getSuggestion'](_0x2894a1);this['_joinWithAdjacentSuggestions'](new Set([_0x41d6e2])),this['_refreshSuggestionsChain'](new Set([_0x41d6e2]));});return this['listenTo'](_0x3e3ebf,'accept',()=>{this['_updateSuggestionData'](_0x2894a1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e3ebf,'discard',()=>{this['_updateSuggestionData'](_0x2894a1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2894a1,_0x3e3ebf),this['_suggestionState']['set'](_0x3e3ebf,'notReady'),_0x3e3ebf;}['_splitMarkerName'](_0x380403){const _0xb1298b=_0x380403['split'](':');return{'group':_0xb1298b[0x0],'type':_0xb1298b[0x1],'subType':_0xb1298b['length']>=0x5?_0xb1298b[0x2]:null,'id':_0xb1298b['length']<0x5?_0xb1298b[0x2]:_0xb1298b[0x3],'authorId':_0xb1298b['length']<0x5?_0xb1298b[0x3]:_0xb1298b[0x4],'markerCount':0x6==_0xb1298b['length']?_0xb1298b[0x5]:null};}['_breakSuggestionMarker'](_0x3d6c19,_0x5b4b73,_0x479d00){const _0x458d26=_0x3d6c19['getFirstRange'](),_0x1b0659=_0x458d26['start'],_0x4395a9=_0x458d26['end'];this['_setSuggestionRange'](_0x3d6c19,this['_model']['createRange'](_0x1b0659,_0x5b4b73));const _0x3cf08c=_0x1f120b(),_0x22764c=_0x3d6c19['creator']['id'],_0x6dd8b6=_0x3d6c19['type']+(_0x3d6c19['subType']?':'+_0x3d6c19['subType']:'');this['_setSuggestionData']({'id':_0x3cf08c,'type':_0x6dd8b6,'createdAt':new Date(),'authorId':_0x22764c,'originalSuggestionId':_0x3d6c19['id'],'attributes':_0x3d6c19['attributes'],'data':_0x3d6c19['data']});const _0x47d880=this['_getAttributeKey'](_0x3d6c19);('formatBlock'==_0x3d6c19['type']||_0x47d880&&this['_isBlockAttribute'](_0x47d880))&&(_0x479d00=this['_model']['createPositionBefore'](_0x479d00['parent'])),this['_addSuggestionMarker'](_0x6dd8b6,_0x3cf08c,_0x22764c,this['_model']['createRange'](_0x479d00,_0x4395a9));}['_findSuggestions'](_0x17113f,_0x3646f1=null){const _0x4c8adf=[],_0x4d06b6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17113f)||(_0x17113f=[_0x17113f]);for(const _0x1cb826 of this['getSuggestions']()){if(!_0x1cb826['isInContent'])continue;if(_0x3646f1&&_0x1cb826['type']!=_0x3646f1)continue;let _0x2b5393=!0x1;for(const _0x52b553 of _0x1cb826['getRanges']()){for(const _0x5c2954 of _0x17113f){const _0x56c004=_0x5c2954['start']['isEqual'](_0x52b553['end'])||_0x5c2954['end']['isEqual'](_0x52b553['start']);if(_0x56c004||_0x5c2954['getIntersection'](_0x52b553)){const _0x3c282a=_0x5c2954['containsRange'](_0x52b553)&&Ot(this['_model']['schema'],_0x52b553['start'],_0x5c2954),_0xb0edb4=_0x52b553['containsRange'](_0x5c2954)&&Ot(this['_model']['schema'],_0x5c2954['start'],_0x52b553);_0x4c8adf['push']({'suggestion':_0x1cb826,'meta':{'isOwn':_0x4d06b6==_0x1cb826['author'],'isNextTo':_0x56c004,'isInsideObject':_0x3c282a,'containsRangeInObject':_0xb0edb4}}),_0x2b5393=!0x0;break;}}if(_0x2b5393)break;}}return _0x4c8adf;}['_addSuggestionMarker'](_0x295b6c,_0x5b5761,_0x1e3eb8,_0x177a37,_0x2e722b){this['_model']['change'](_0x4f12aa=>{let _0x2cd099='suggestion:'+_0x295b6c+':'+_0x5b5761+':'+_0x1e3eb8;_0x2e722b&&(_0x2cd099=_0x2cd099+':'+_0x2e722b),_0x4f12aa['addMarker'](_0x2cd099,{'range':_0x177a37,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x24000c){const _0x5f3aa7=_0x24000c['previous'],_0x3e8268=_0x24000c['next'];_0x24000c['previous']=null,_0x24000c['next']=null,null!=_0x5f3aa7&&_0x5f3aa7['next']==_0x24000c&&(_0x5f3aa7['next']=_0x3e8268),null!=_0x3e8268&&_0x3e8268['previous']==_0x24000c&&(_0x3e8268['previous']=_0x5f3aa7),'ready'==this['_suggestionState']['get'](_0x24000c)&&(this['_suggestionState']['set'](_0x24000c,'removed'),this['fire']('suggestionUnloaded',_0x24000c,_0x5f3aa7,_0x3e8268));}['_setSuggestionData'](_0x180000){const _0x1dfc3d=_0x180000['id'],_0x10d467=this['addSuggestionData'](_0x180000);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x25d288=this['editor']['plugins']['get']('PendingActions'),_0x438c4f=_0x10d467['hasComments'],_0x12bf79=_0x10d467['subType']?_0x10d467['type']+':'+_0x10d467['subType']:_0x10d467['type'],_0x59fe0c=this['editor']['locale'],_0x49e6c9=_0x25d288['add'](o(_0x59fe0c,'PENDING_ACTION_SUGGESTION')),_0x2a576f={'id':_0x1dfc3d,'type':_0x12bf79,'hasComments':_0x438c4f,'data':_0x180000['data']||null,'originalSuggestionId':_0x180000['originalSuggestionId']||null,'attributes':_0x10d467['attributes']};this['_adapter']['addSuggestion'](_0x2a576f)['then'](_0x4169eb=>{_0x10d467['_saved']=!0x0,_0x25d288['remove'](_0x49e6c9),_0x4169eb&&_0x4169eb['createdAt']&&(this['_suggestions']['get'](_0x1dfc3d)['createdAt']=_0x4169eb['createdAt']);})['catch'](_0x9153bd=>{throw _0x576323('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x10d467['discard']();}),_0x10d467['stopListening'](),this['_suggestions']['delete'](_0x10d467['id']),this['_suggestionState']['delete'](_0x10d467),_0x9153bd;});}return _0x10d467;}['_isBlockAttribute'](_0x3e90c2){return this['_blockAttributeKeys']['has'](_0x3e90c2);}['_updateSuggestionData'](_0x28f33f,_0x29f12d){const _0x37e20e=this['editor']['plugins']['get']('PendingActions'),_0x3c017d=this['getSuggestion'](_0x28f33f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3c017d['_saved']){const _0x2d970d=_0x37e20e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x28f33f,_0x29f12d)['then'](()=>{_0x37e20e['remove'](_0x2d970d);});}else _0x3c017d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x28f33f,_0x29f12d);});}}['_getSuggestionData'](_0x5a47f6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x106f22('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5a47f6);}['_handleNewSuggestionMarker'](_0x329175){const {id:_0xb509d4,type:_0x3dd961,subType:_0x5aa66e,authorId:_0x18f0a4}=this['_splitMarkerName'](_0x329175),_0x1d7b80=this['_suggestions']['get'](_0xb509d4)||this['_createSuggestion'](_0x3dd961,_0x5aa66e,_0xb509d4,_0x18f0a4,{});switch(this['_checkSuggestionCorrectness'](_0x1d7b80,_0x3dd961,_0x5aa66e,_0x18f0a4),this['_suggestionState']['get'](_0x1d7b80)){case'notReady':this['_getSuggestionData'](_0xb509d4)['then'](_0x14fa4d=>{let _0x2a0dac=Promise['resolve']();_0x14fa4d['hasComments']&&(_0x2a0dac=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xb509d4})),_0x2a0dac['then'](()=>{this['addSuggestionData'](_0x14fa4d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d7b80,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xb509d4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d7b80,'ready'),this['fire']('suggestionLoaded',_0x1d7b80);break;case'ready':this['fire']('suggestionChanged',_0x1d7b80);}return _0x1d7b80['addMarkerName'](_0x329175),_0x1d7b80;}['_refreshSuggestionsChain'](_0x300480){const _0x91780b=Array['from'](_0x300480),_0x504173=_0x91780b['filter'](_0x5bcc32=>'attribute'==_0x5bcc32['type']);this['_refreshAttributeSuggestionsChain'](_0x504173);const _0x12a2f2=_0x91780b['filter'](_0x3daab4=>!_0x3daab4['isMultiRange']&&'attribute'!=_0x3daab4['type']),_0x48ebdb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bf51f=>!_0x3bf51f['isMultiRange']&&'attribute'!=_0x3bf51f['type']),_0x26a1ab=_0x48ebdb['filter'](_0x1d6692=>!_0x300480['has'](_0x1d6692)),_0x231aea=new Map(_0x48ebdb['map'](_0x20df68=>[_0x20df68,this['_suggestionFactory']['getSuggestionCallback'](_0x20df68['type'],_0x20df68['subType'],'chain')])),_0x4c17d3=new Map(_0x48ebdb['map'](_0x53333e=>[_0x53333e,_0x53333e['getFirstRange']()])),_0x133873=new Set(),_0x2e848b=new Set();for(let _0x23b730=0x0;_0x23b730<_0x12a2f2['length'];_0x23b730++)_0x3df80c(_0x12a2f2[_0x23b730],_0x12a2f2,_0x23b730+0x1);for(let _0x349e49=0x0;_0x349e49<_0x12a2f2['length'];_0x349e49++)_0x3df80c(_0x12a2f2[_0x349e49],_0x26a1ab,0x0);const _0x158d14=new Set();for(let _0x587093=0x0;_0x587093<_0x12a2f2['length'];_0x587093++){const _0x5e508b=_0x12a2f2[_0x587093];!_0x2e848b['has'](_0x5e508b)&&_0x5e508b['previous']&&(_0x158d14['add'](_0x5e508b['previous']),_0x5e508b['previous']['next']===_0x5e508b&&(_0x5e508b['previous']['next']=null),_0x5e508b['previous']=null),!_0x133873['has'](_0x5e508b)&&_0x5e508b['next']&&(_0x158d14['add'](_0x5e508b['next']),_0x5e508b['next']['previous']===_0x5e508b&&(_0x5e508b['next']['previous']=null),_0x5e508b['next']=null);}function _0x3df80c(_0x1fdc4a,_0x520ea4,_0x3352d6){for(let _0xccffba=_0x3352d6;_0xccffba<_0x520ea4['length'];_0xccffba++){const _0x1472e0=_0x1abf71(_0x1fdc4a,_0x520ea4[_0xccffba]);_0x1472e0&&(_0x1472e0[0x0]['next']=_0x1472e0[0x1],_0x1472e0[0x1]['previous']=_0x1472e0[0x0],_0x133873['add'](_0x1472e0[0x0]),_0x2e848b['add'](_0x1472e0[0x1]));}}function _0x1abf71(_0x4c15a9,_0x4dee89){if(_0x4c15a9['author']['id']!==_0x4dee89['author']['id'])return null;const _0x5c4c87=_0x231aea['get'](_0x4c15a9)(_0x4c15a9,_0x4dee89,_0x4c17d3['get'](_0x4c15a9),_0x4c17d3['get'](_0x4dee89));if(!_0x5c4c87)return null;return _0x231aea['get'](_0x4dee89)(_0x4c15a9,_0x4dee89,_0x4c17d3['get'](_0x4c15a9),_0x4c17d3['get'](_0x4dee89))?_0x5c4c87[0x1]['commentThread']&&_0x5c4c87[0x1]['commentThread']['length']?null:_0x5c4c87:null;}_0x158d14['size']&&this['_refreshSuggestionsChain'](_0x158d14);}['_refreshAttributeSuggestionsChain'](_0x4950fa){if(0x0==_0x4950fa['length'])return;const _0x29111b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58b0cb=>'attribute'==_0x58b0cb['type']&&_0x58b0cb['_isDataLoaded']),_0x296396=[],_0x5b5fbe=new Map();for(const _0x419c2b of _0x29111b){const _0x108052=_0x538bec(_0x419c2b['attributes']);_0x5b5fbe['has'](_0x108052)||(_0x5b5fbe['set'](_0x108052,_0x296396['length']),_0x296396['push']([]));const _0x30c219=_0x5b5fbe['get'](_0x108052);_0x296396[_0x30c219]['push'](_0x419c2b);}!(function(){_0x296396['sort']((_0x2e8c22,_0x1311dc)=>{const _0x3f3687=_0x2e8c22[0x0]['createdAt'],_0x2c1b06=_0x1311dc[0x0]['createdAt'];return _0x3f3687==_0x2c1b06?_0x2e8c22[0x0]['attributes']['groupId']<_0x1311dc[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f3687<_0x2c1b06?-0x1:0x1;});for(const _0x5d4fa7 of _0x296396)_0x5d4fa7['sort']((_0x9a7917,_0x2742d4)=>_0x9a7917['id']<_0x2742d4['id']?-0x1:0x1);}());for(let _0x5d7f57=0x0;_0x5d7f57<_0x296396['length'];_0x5d7f57++){if(0x0==_0x296396[_0x5d7f57]['length'])continue;const _0xc31844=[];for(let _0x1b9753=_0x5d7f57+0x1;_0x1b9753<_0x296396['length'];_0x1b9753++)0x0!=_0x296396[_0x1b9753]['length']&&_0x2fa3f3(_0x296396[_0x5d7f57],_0x296396[_0x1b9753])&&_0xc31844['push'](_0x1b9753);for(const _0x1a137f of _0xc31844)_0x296396[_0x5d7f57]=_0x296396[_0x5d7f57]['concat'](_0x296396[_0x1a137f]),_0x296396[_0x1a137f]=[];}for(const _0x34b675 of _0x296396)for(let _0x5c36f6=0x0;_0x5c36f6<_0x34b675['length'];_0x5c36f6++){const _0x37568b=_0x34b675[_0x5c36f6+0x1]||null;_0x34b675[_0x5c36f6]['next']!==_0x37568b&&(_0x34b675[_0x5c36f6]['next']=_0x37568b);}for(const _0x337282 of _0x296396)for(let _0x443d5a=0x0;_0x443d5a<_0x337282['length'];_0x443d5a++){const _0x16c666=_0x337282[_0x443d5a-0x1]||null;_0x337282[_0x443d5a]['previous']!==_0x16c666&&(_0x337282[_0x443d5a]['previous']=_0x16c666);}function _0x2fa3f3(_0x40b5aa,_0x3d7525){if(_0x40b5aa[0x0]['attributes']['groupId']!==_0x3d7525[0x0]['attributes']['groupId']&&_0x40b5aa[0x0]['author']!==_0x3d7525[0x0]['author'])return!0x1;if(!function(_0x483bff,_0x212870){if(!_0x483bff['hasComments']&&!_0x212870['hasComments'])return!0x0;if(_0x483bff['hasComments']&&_0x212870['hasComments'])return!0x1;if(_0x483bff['hasComments']&&_0x212870['createdAt']<_0x483bff['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x212870['hasComments']&&_0x483bff['createdAt']<_0x212870['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x40b5aa[0x0],_0x3d7525[0x0]))return!0x1;const _0x542574=Tt(_0x40b5aa[0x0]['attributes'],'groupId'),_0x42be73=Tt(_0x3d7525[0x0]['attributes'],'groupId');if(!_0x5aef9d(_0x542574,_0x42be73))return!0x1;return!!_0x40b5aa['every'](_0x5eec7a=>_0x3d7525['some'](_0x260103=>_0x5eec7a['getFirstRange']()['isEqual'](_0x260103['getFirstRange']())))&&_0x3d7525['every'](_0x4e8477=>_0x40b5aa['some'](_0x56724a=>_0x4e8477['getFirstRange']()['isEqual'](_0x56724a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x584b88){const _0x7fd2ea=Array['from'](_0x584b88),_0x5f42bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5996d1=_0x5f42bc['filter'](_0x2e91c8=>!_0x584b88['has'](_0x2e91c8)),_0x397ff2=new Map(_0x7fd2ea['map'](_0xcfb6e5=>[_0xcfb6e5,this['_suggestionFactory']['getSuggestionCallback'](_0xcfb6e5['type'],_0xcfb6e5['subType'],'join')])),_0x2b2d48=new Map(_0x5f42bc['map'](_0x2f9afa=>[_0x2f9afa,_0x2f9afa['getRanges']()]));for(let _0x2bfd37=0x0;_0x2bfd37<_0x7fd2ea['length'];_0x2bfd37++){if(_0x3a7078(this,_0x7fd2ea[_0x2bfd37],_0x7fd2ea,_0x2bfd37+0x1))return!0x0;}for(let _0xb82c5f=0x0;_0xb82c5f<_0x7fd2ea['length'];_0xb82c5f++){if(_0x3a7078(this,_0x7fd2ea[_0xb82c5f],_0x5996d1,0x0))return!0x0;}return!0x1;function _0x3a7078(_0x242fff,_0x5ac5c8,_0x5252ba,_0x33e687){for(let _0x1205b3=_0x33e687;_0x1205b3<_0x5252ba['length'];_0x1205b3++){const _0x3b1e85=_0x5252ba[_0x1205b3];if(_0x3b1e85['type']!==_0x5ac5c8['type']||_0x3b1e85['author']['id']!==_0x5ac5c8['author']['id']||_0x3b1e85['subType']!==_0x5ac5c8['subType'])continue;if(!Jt(_0x5ac5c8,_0x3b1e85))continue;if('attribute'==_0x5ac5c8['type']&&_0x5ac5c8['data']['oldValue']!=_0x3b1e85['data']['oldValue'])continue;if('attribute'==_0x5ac5c8['type']&&_0x242fff['_isBlockAttribute'](_0x5ac5c8['data']['key']))continue;if('formatBlock'==_0x5ac5c8['type']){const _0x321418=_0x242fff['editor']['model'],_0x47f79f=_0x5ac5c8['getContainedElement']();if(_0x47f79f&&(_0x321418['schema']['isObject'](_0x47f79f)||_0x321418['schema']['isLimit'](_0x47f79f)))continue;}const _0x2a313=_0x397ff2['get'](_0x5ac5c8),_0x1fa964=_0x2b2d48['get'](_0x5ac5c8),_0x483392=_0x2b2d48['get'](_0x3b1e85),_0x4f9450=_0x5ac5c8['commentThread']&&_0x5ac5c8['commentThread']['length'],_0x6bc952=_0x3b1e85['commentThread']&&_0x3b1e85['commentThread']['length'];if(!_0x4f9450&&_0x2a313(_0x483392,_0x1fa964))return _0x242fff['_joinSuggestions'](_0x3b1e85,_0x5ac5c8),_0x2b2d48['delete'](_0x5ac5c8),!0x0;if(!_0x6bc952&&_0x2a313(_0x1fa964,_0x483392))return _0x242fff['_joinSuggestions'](_0x5ac5c8,_0x3b1e85),_0x2b2d48['delete'](_0x3b1e85),!0x0;}return!0x1;}}['_joinSuggestions'](_0xde4126,_0x137838){if(_0xde4126['isMultiRange']){for(const _0x280981 of _0x137838['getRanges']())_0xde4126['addRange'](_0x280981);}else{const _0x1892b4=_0x137838['getFirstRange']()['end'];this['_setSuggestionRange'](_0xde4126,this['_model']['createRange'](_0xde4126['getFirstRange']()['start'],_0x1892b4));}_0x137838['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5cd2f4,_0x3ba9b6,_0x484073){const _0x53215a=_0x5cd2f4['startsWith']('format')||_0x5cd2f4['startsWith']('attribute')?'FORMATTING':_0x5cd2f4['toUpperCase']();return o(this['editor']['locale'],_0x3ba9b6+'_'+_0x53215a+'_SUGGESTION_ANNOUNCEMENT',_0x484073);}['_initAriaMarkerChangeAnnouncements'](){const _0xfdf4d4=this['editor'];if(!_0xfdf4d4['ui'])return;const {ariaLiveAnnouncer:_0x5094d9}=_0xfdf4d4['ui'];_0x32e864(this['_model'],({left:_0xc1f6af,entered:_0xceddfb})=>{for(const _0x2c0eb9 of _0xc1f6af){const {group:_0x15f99b,type:_0x3a30ab}=this['_splitMarkerName'](_0x2c0eb9['name']);if('suggestion'===_0x15f99b){_0x5094d9['announce'](this['_getMarkerAnnouncementText'](_0x3a30ab,'LEAVE'));break;}}for(const _0xc4e12e of _0xceddfb){const {group:_0x5b03f9,type:_0x53934c}=this['_splitMarkerName'](_0xc4e12e['name']);if('suggestion'===_0x5b03f9){_0x5094d9['announce'](this['_getMarkerAnnouncementText'](_0x53934c,'ENTER',_0x33ea12(_0x168750)));break;}}});}['_processAttributeChanges'](_0x3f059d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1797ee=this['editor'],_0x517143=_0x1797ee['model']['document']['differ']['getChanges']();if(0x0==_0x517143['length'])return!0x1;const _0x58f7c6=[],_0x1fba51=_0x517143['filter'](_0x2e7cb2=>'attribute'==_0x2e7cb2['type']),_0x419d8f=_0x517143['filter'](_0x148eac=>'insert'==_0x148eac['type']&&'$text'!=_0x148eac['name']),_0x592435=_0x517143['filter'](_0x4fe0c3=>'remove'==_0x4fe0c3['type']&&'$text'!=_0x4fe0c3['name']);for(const _0x5a4965 of _0x1fba51)_0x58f7c6['push']({'key':_0x5a4965['attributeKey'],'newValue':_0x5a4965['attributeNewValue'],'oldValue':_0x5a4965['attributeOldValue'],'range':Pt(_0x5a4965['range'],_0x1797ee['model'])});for(const _0x1fd61b of _0x419d8f){const _0x468968=_0x592435['find'](_0x16bae3=>_0x16bae3['position']['isEqual'](_0x1fd61b['position']));_0x468968&&_0x58f7c6['push']({'key':m,'newValue':_0x1fd61b['name'],'oldValue':_0x468968['name'],'range':_0x1797ee['model']['createRangeOn'](_0x1fd61b['position']['nodeAfter'])});}return 0x0!=_0x58f7c6['length']&&this['_reduceExistingSuggestions'](_0x3f059d,_0x58f7c6);}['_processAttributeSuggestions'](_0x160045){let _0x56d6e8=!0x1;const _0x545e7f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b701a=>_0x4b701a['data']['newRange']&&_0x4b701a['name']['startsWith']('suggestion:attribute:'));for(const _0x43abea of _0x545e7f){const {subType:_0x4b8fc2,id:_0x58ed6b}=this['_splitMarkerName'](_0x43abea['name']),_0x1499be=_0x4b8fc2['split']('|')[0x0];for(const _0x2faa69 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2faa69['id']!=_0x58ed6b&&'attribute'==_0x2faa69['type']&&_0x2faa69['data']&&_0x2faa69['data']['key']==_0x1499be&&_0x2faa69['getFirstRange']()['isIntersecting'](_0x43abea['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2faa69,_0x43abea['data']['newRange'],_0x160045),_0x56d6e8=!0x0);}return _0x56d6e8;}['_recordAttributeChanges'](_0x50de76){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x50de76();}['_isRegisteredAttribute'](_0x57c339){const _0x2096c7=this['_isBlockAttribute'](_0x57c339),_0xffcb94=this['_inlineAttributeKeys']['has'](_0x57c339);return _0x2096c7||_0xffcb94;}['_reduceExistingSuggestions'](_0x4b8437,_0x12f858){if(0x0==_0x12f858['length'])return!0x1;let _0x164a05=!0x1;for(const _0x45ca6c of _0x12f858){const _0x30d62f=this['_findSuggestions'](_0x45ca6c['range'],'attribute')['filter'](_0xb7e44f=>!_0xb7e44f['meta']['isNextTo'])['map'](_0x3b684d=>_0x3b684d['suggestion']),_0x13729d=_0x538bec({'newValue':_0x45ca6c['newValue']});_0x30d62f['filter'](_0x38132d=>{const [_0x2a93e9,_0x20ace7]=_0x38132d['subType']['split']('|');return _0x2a93e9==_0x45ca6c['key']&&_0x20ace7!=_0x13729d;})['forEach'](_0x80da5a=>{this['_reduceSuggestionAttributeRange'](_0x80da5a,_0x45ca6c['range'],_0x4b8437),_0x164a05=!0x0;});}return _0x164a05;}['_reduceSuggestionAttributeRange'](_0x342060,_0xdb6c23,_0x5d722b){const _0xfbb999=_0x342060['getFirstRange']()['getDifference'](_0xdb6c23);0x0!==_0xfbb999['length']?0x1!==_0xfbb999['length']?this['_breakSuggestionMarker'](_0x342060,_0xdb6c23['start'],_0xdb6c23['end']):this['_setSuggestionRange'](_0x342060,_0xfbb999[0x0]):_0x5d722b['removeMarker'](_0x342060['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x10aaa5){this['_editor']=_0x10aaa5,this['_model']=_0x10aaa5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4193e7,_0xa89dd1,_0x3d7fb6,_0x2d4a3d,_0x2055bb,_0x40d22c){return new u(this['_model'],{'type':_0x4193e7,'subType':_0xa89dd1,'id':_0x3d7fb6,'author':_0x2d4a3d,'creator':_0x2d4a3d,'attributes':_0x2055bb,'onAttributesChange':_0x40d22c,'onAccept':(..._0x1fe09f)=>this['getSuggestionCallback'](_0x4193e7,_0xa89dd1,'accept')(..._0x1fe09f),'onDiscard':(..._0x467fd6)=>this['getSuggestionCallback'](_0x4193e7,_0xa89dd1,'discard')(..._0x467fd6)});}['registerCustomCallback'](_0x3839eb,_0x5df9b3,_0x2a924f,_0x6324f9){const _0x57fcee=_0x3839eb+':'+_0x5df9b3+':'+_0x2a924f;this['_customCallbacks']['set'](_0x57fcee,_0x6324f9);}['getSuggestionCallback'](_0x562219,_0x2cf430,_0x174204){const _0x20e173=_0x562219+':'+_0x2cf430+':'+_0x174204;return this['_customCallbacks']['get'](_0x20e173)||this['_defaultCallbacks']['get'](_0x562219+':'+_0x174204);}['_registerDefaultCallbacks'](){const _0x47b883=()=>!0x1,_0x204ef7=_0x5c0233=>{_0x5c0233['sort']((_0x372a8b,_0x5c6cb3)=>_0x372a8b['start']['isBefore'](_0x5c6cb3['start'])?0x1:-0x1),this['_model']['change'](_0x245aa0=>{for(const _0x274801 of _0x5c0233){let _0x156149;_0x156149=_0x274801['end']['isAtEnd']&&_0x274801['end']['parent']==_0x274801['start']['nodeAfter']?_0x245aa0['createSelection'](_0x274801['start']['nodeAfter'],'on'):_0x245aa0['createSelection'](_0x274801),this['_model']['deleteContent'](_0x156149,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x261031=(_0x2df826,_0x3a5fa8)=>{_0x3a5fa8&&this['_model']['change'](_0x308e3e=>{const {commandName:_0x1e0258,commandParams:_0x3b6441=[]}=_0x3a5fa8,_0x1ae926=_0x2df826['map'](_0x2b9757=>(Vt(_0x2b9757)&&(_0x2b9757=this['_model']['createRange'](_0x2b9757['end'])),_0x2b9757))['filter'](_0x81aa2a=>'$graveyard'!==_0x81aa2a['root']['rootName']);if(_0x1ae926['length']<0x1)return;const _0x25ac0e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28fb96=>_0x8342a4['fromRange'](_0x28fb96));_0x308e3e['setSelection'](_0x1ae926);for(const _0x1ffb98 of this['_editor']['commands']['commands']())_0x1ffb98['refresh']();_0x3b6441['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e0258,..._0x3b6441);const _0x1f3281=_0x25ac0e['filter'](_0x5e7bc6=>'$graveyard'!=_0x5e7bc6['root']['rootName']);_0x1f3281['length']>0x0&&_0x308e3e['setSelection'](_0x1f3281);for(const _0x43b215 of _0x25ac0e)_0x43b215['detach']();});},_0x572666=(_0x398e9c,_0x5b4be5)=>0x1==_0x398e9c['length']&&0x1==_0x5b4be5['length']&&_0x398e9c[0x0]['end']['isEqual'](_0x5b4be5[0x0]['start']),_0x53de3e=(_0x21d815,_0x5ec889,_0x368a4b,_0x575f8a)=>Ht(_0x21d815,_0x5ec889,_0x368a4b,_0x575f8a,this['_model'])?[_0x21d815,_0x5ec889]:Ht(_0x5ec889,_0x21d815,_0x575f8a,_0x368a4b,this['_model'])?[_0x5ec889,_0x21d815]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x47b883),this['_defaultCallbacks']['set']('insertion:discard',_0x204ef7),this['_defaultCallbacks']['set']('insertion:join',_0x572666),this['_defaultCallbacks']['set']('insertion:chain',_0x53de3e),this['_defaultCallbacks']['set']('deletion:accept',_0x204ef7),this['_defaultCallbacks']['set']('deletion:discard',_0x47b883),this['_defaultCallbacks']['set']('deletion:join',_0x572666),this['_defaultCallbacks']['set']('deletion:chain',_0x53de3e),this['_defaultCallbacks']['set']('formatInline:accept',_0x261031),this['_defaultCallbacks']['set']('formatInline:discard',_0x47b883),this['_defaultCallbacks']['set']('formatInline:join',_0x572666),this['_defaultCallbacks']['set']('formatInline:chain',_0x47b883),this['_defaultCallbacks']['set']('formatBlock:accept',_0x261031),this['_defaultCallbacks']['set']('formatBlock:discard',_0x47b883),this['_defaultCallbacks']['set']('formatBlock:join',_0x572666),this['_defaultCallbacks']['set']('formatBlock:chain',_0x47b883),this['_defaultCallbacks']['set']('attribute:accept',_0x47b883),this['_defaultCallbacks']['set']('attribute:discard',(_0x31205d,_0x113eff)=>{if(!_0x113eff)return;const _0x47cd07=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x16f09c=>{if(_0x113eff['key']==m)for(const _0x258b13 of _0x31205d){const _0x546b11=_0x258b13['start']['nodeAfter'],_0x346ce2=_0x113eff['oldValue'];_0x16f09c['rename'](_0x546b11,_0x346ce2);}else{if(_0x47cd07['_isBlockAttribute'](_0x113eff['key'])){for(const _0x1b7c67 of _0x31205d)void 0x0!==_0x113eff['oldValue']?_0x16f09c['setAttribute'](_0x113eff['key'],_0x113eff['oldValue'],_0x1b7c67['start']['nodeAfter']):_0x16f09c['removeAttribute'](_0x113eff['key'],_0x1b7c67['start']['nodeAfter']);}else{for(const _0x15ff1f of _0x31205d)_0x113eff['oldValue']?_0x16f09c['setAttribute'](_0x113eff['key'],_0x113eff['oldValue'],_0x15ff1f):_0x16f09c['removeAttribute'](_0x113eff['key'],_0x15ff1f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x572666);}}function Ot(_0x139146,_0x5e29df,_0x250973){for(const _0x32e616 of _0x5e29df['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x32e616['root']==_0x32e616)return!0x1;if(!_0x250973['containsItem'](_0x32e616))return!0x1;if(_0x139146['isObject'](_0x32e616)||_0x139146['isLimit'](_0x32e616))return!0x0;}return!0x1;}function Vt(_0x9cd879){return _0x9cd879['end']['parent']==_0x9cd879['start']['nodeAfter']&&_0x9cd879['end']['isAtStart'];}function Ut(_0x10363b,_0x372002,_0x41ab75,_0x2f674b){const _0x364b73=_0xccfada=>!_0xccfada['item']['is']('$textProxy')&&!_0x2f674b['isObject'](_0xccfada['item']),_0x94e235=_0x10363b['start']['getLastMatchingPosition'](_0x364b73),_0x4620d8=_0x10363b['end']['getLastMatchingPosition'](_0x364b73,{'direction':'backward'});return(!_0x10363b['start']['isEqual'](_0x94e235)||!_0x10363b['end']['isEqual'](_0x4620d8))&&(_0x94e235['isBefore'](_0x4620d8)?_0x41ab75['updateMarker'](_0x372002,{'range':_0x41ab75['createRange'](_0x94e235,_0x4620d8)}):_0x41ab75['removeMarker'](_0x372002),!0x0);}function Gt(_0x5b8a48){return _0x538bec(_0x5b8a48);}function Ft(_0x29d15b){const _0x1ec09e=_0x29d15b['start']['nodeAfter'];return _0x1ec09e&&_0x1ec09e['is']('element');}function Pt(_0x22cbd8,_0x3a3737){return null==_0x22cbd8['end']['nodeBefore']&&_0x22cbd8['end']['parent']==_0x22cbd8['start']['nodeAfter']?Lt(_0x22cbd8['start']['nodeAfter'],_0x3a3737):_0x22cbd8;}function Lt(_0x4b33e9,_0x17b938){const _0x1468a2=_0x17b938['schema']['isObject'](_0x4b33e9)||_0x17b938['schema']['isSelectable'](_0x4b33e9);return _0x17b938['createRange'](_0x17b938['createPositionAt'](_0x4b33e9,'before'),_0x1468a2?_0x17b938['createPositionAfter'](_0x4b33e9):_0x17b938['createPositionAt'](_0x4b33e9,'end'));}function Ht(_0x57b783,_0x415191,_0x1586f1,_0x3c33ee,_0x31f0ce){if(_0x57b783['next'])return!0x1;if(!Jt(_0x57b783,_0x415191))return!0x1;if(_0x1586f1['end']['isEqual'](_0x3c33ee['start']))return!0x0;if(_0x57b783['type']!=_0x415191['type'])return!0x1;if(!_0x1586f1['end']['isTouching'](_0x3c33ee['start']))return!0x1;const _0x4e03c0=_0x31f0ce['createRange'](_0x1586f1['end'],_0x3c33ee['start'])['getWalker']();for(const _0xef5de6 of _0x4e03c0)if(['elementStart','elementEnd']['includes'](_0xef5de6['type'])&&_0x31f0ce['schema']['isLimit'](_0xef5de6['item']))return!0x1;return!0x0;}function Jt(_0x331c47,_0xcf1c23){if(!_0x331c47['_isDataLoaded']||!_0xcf1c23['_isDataLoaded'])return!0x1;const _0x5bbf9b=new Set(Object['keys'](_0x331c47['attributes'])),_0x1413ca=new Set(Object['keys'](_0xcf1c23['attributes']));if(_0x5bbf9b['delete']('groupId'),_0x1413ca['delete']('groupId'),0x0==_0x5bbf9b['size']&&0x0==_0x1413ca['size'])return!0x0;if(_0x5bbf9b['size']!=_0x1413ca['size'])return!0x1;const _0x40f2e1={..._0x331c47['attributes']},_0x29d745={..._0xcf1c23['attributes']};return delete _0x40f2e1['groupId'],delete _0x29d745['groupId'],JSON['stringify'](_0x40f2e1)==JSON['stringify'](_0x29d745);}function qt(_0x5848fe,_0x228765){const _0x3381ee=zt(_0x5848fe['attributes']),_0xe3d4ef=zt(_0x228765);if(!_0x5848fe['_isDataLoaded'])return!0x1;for(const _0xad7c1e of Object['keys'](_0xe3d4ef))if(!_0x5aef9d(_0x3381ee[_0xad7c1e],_0xe3d4ef[_0xad7c1e]))return!0x1;return!0x0;}function zt(_0xa4f833){const _0x42249f=Object['assign']({},_0xa4f833);return delete _0x42249f['skipNestingCheck'],delete _0x42249f['tablePasteChainId'],_0x42249f;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x5bb45f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x26ca3b,_0x4b16c1,_0x1453e0,_0x42e981){super(),this['model']=_0x4b16c1,this['view']=_0x1453e0,this['commentThreadController']=_0x42e981,this['_editor']=_0x26ca3b,this['_acceptCommand']=_0x26ca3b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x26ca3b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a7256,_0x4a2e79)=>_0x2a7256||_0x4a2e79),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xce9e81=>_0xce9e81&&this['_editor']['model']['canEditAt'](_0x4b16c1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xffd04=>_0xffd04&&this['_editor']['model']['canEditAt'](_0x4b16c1['getRanges']())),this['_pendingAction']=null,_0x1453e0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1453e0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1453e0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1453e0,'change:isDirty',()=>{_0x1453e0['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 _0x27337c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27337c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3baccb{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b4469,_0x814ff6,_0x33acd8,_0x18948c){super(_0x5b4469),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3634c3(_0x5b4469,o(_0x5b4469,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x814ff6['authoredAt']),this['bind']('authoredAt')['to'](_0x814ff6),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',_0x814ff6,'authoredAt',this,'descriptionParts',(_0x44b553,_0x3f544a,_0x348e60)=>{const _0x2ce7f1=_0x348e60['map'](_0x11c551=>ls(_0x11c551['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44b553-0x1,_0x814ff6['author']['name'],_0x3f544a?_0x18948c['formatDateTime'](_0x3f544a):'',new DOMParser()['parseFromString'](_0x2ce7f1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1f772b(),this['focusTracker']=new _0x1e03ba(),this['keystrokes']=new _0x253ceb(),this['focusCycler']=new _0x25f74c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xdbc968=>_0xdbc968['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x814ff6,this['_localUser']=_0x33acd8,this['_config']=_0x18948c,_0x18948c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x472c86(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xb8d75b}=this['_config'];this['commentsListView']=new _0xb8d75b(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',_0x2e03b3=>_0x2e03b3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2bb9a6,_0x581731)=>_0x2bb9a6||!!_0x581731);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1e13cd}=this['_config'],_0x520c8d=new _0x1e13cd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xe0fbd4=_0x520c8d['commentInputView'];return _0x520c8d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xe0fbd4,'value',(_0x386b01,_0x196a9d,_0x4c0bc6)=>!!_0x4c0bc6||_0x386b01&&!_0x196a9d),_0xe0fbd4['on']('submit',(_0xe13e16,_0x3f7408)=>{this['fire']('addComment',_0x3f7408),_0xe0fbd4['editor']['setData']('');}),_0xe0fbd4['on']('cancel',()=>this['focus']()),_0xe0fbd4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x520c8d;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0xcbcd68,_0x15b989,_0x3e194f,_0x268388){super(_0xcbcd68,_0x15b989,_0x3e194f,_0x268388),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3662de=>_0x3662de&&_0x3662de[0x0]?_0x3662de[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x274f19,_0x469619)=>{let _0x264a2a='';for(const _0x211685 of _0x274f19)_0x264a2a+='<p>'+ls(_0x211685['content'],_0x211685['color'])+'</p>';return _0x469619?_0x264a2a:_0x49d177(_0x264a2a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x268388['SuggestionView'](_0xcbcd68,_0x15b989,{'formatDateTime':_0x268388['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 _0x286e4e=this['bindTemplate'],_0x1b6056=[this['suggestionView']];return this['commentsListView']&&_0x1b6056['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1b6056['push'](this['commentThreadInputView']),_0x1b6056['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x286e4e['if']('isActive','ck-suggestion-wrapper--active'),_0x286e4e['to']('type',_0x1f0dae=>'ck-suggestion-'+_0x1f0dae),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':_0x286e4e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1b6056};}['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 _0x3baccb{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5e8ffe,_0x49991f,_0xf5709e){super(_0x5e8ffe),this['_model']=_0x49991f,this['_config']=_0xf5709e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x49991f),this['acceptButton']=this['_createButton'](o(_0x5e8ffe,'Accept\x20suggestion'),_0xa3d166['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5e8ffe,'Discard\x20suggestion'),_0xa3d166['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x277de9(_0x5e8ffe,_0x49991f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1f772b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1e03ba(),this['keystrokes']=new _0x253ceb(),this['focusCycler']=new _0x25f74c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x495524=>_0x495524['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x26ddbd=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x26ddbd['innerHTML']=this['description'],this['on']('change:description',(_0x17addd,_0x36ddfe,_0x4d15d8)=>{_0x26ddbd['innerHTML']=_0x4d15d8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x455d88=this['bindTemplate'],_0x23560f=[{'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':_0x455d88['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x455d88['to']('authoredAt',_0x27d0e9=>this['_config']['formatDateTime'](_0x27d0e9))}]}]},{'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']&&_0x23560f['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':_0x23560f}]};}['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'](_0x3ef863,_0x357e5b,_0x54603c,_0x13bdab,_0x11b0ed){const _0xcf3da6=new _0x39497f(this['locale']);return _0xcf3da6['set']({'label':_0x3ef863,'icon':_0x357e5b,'tooltip':!0x0,'tooltipPosition':_0x11b0ed}),_0xcf3da6['extendTemplate']({'attributes':{'class':_0x54603c}}),_0xcf3da6['on']('execute',()=>{this['fire'](_0x13bdab,this['_model']['id']);}),_0xcf3da6;}['_setupKeyboardNavigation'](){const _0x58c975=this['element'];this['keystrokes']['listenTo'](_0x58c975);for(const _0xf23796 of this['focusables'])this['focusTracker']['add'](_0xf23796['element']),this['keystrokes']['listenTo'](_0xf23796['element']);this['keystrokes']['set']('enter',(_0x57e68d,_0x17f594)=>{_0x58c975===_0x57e68d['target']&&(this['focusCycler']['focusFirst'](),_0x17f594());}),this['keystrokes']['set']('esc',(_0x9ce6c3,_0x5141e8)=>{_0x58c975!==_0x9ce6c3['target']&&(this['focus'](),_0x5141e8());});}}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 _0x54913d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2d9153,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x395deb){super(_0x395deb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2229c4=this['editor']['config'];_0x2229c4['define']('trackChanges.SuggestionThreadView',re),_0x2229c4['define']('trackChanges.SuggestionView',ce),_0x2229c4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2229c4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x7b042,_0x3705fc){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xda09d1,_0x3d6711]of this['_handleControllerBuffer']){const _0x303a65=this['_suggestionToController']['has'](_0xda09d1);_0x303a65||_0x3d6711?_0x303a65&&_0x3d6711&&this['_destroyController'](_0xda09d1):this['_initializeController'](_0xda09d1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x7b042,_0x3705fc);}['init'](){const _0x15c9da=this['editor'],_0x43be2a=_0x15c9da['plugins']['get']('TrackChangesEditing'),_0x7a82a3=_0x15c9da['plugins']['get']('Annotations'),_0x4ea684=_0x15c9da['plugins']['get']('EditorAnnotations'),_0x2f9658=_0x15c9da['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4ea684['addSourceCollector'](()=>{const _0x4db824=[];for(const [_0x2f723d,_0x41521e]of Array['from'](this['_suggestionToController'])){const _0x26255e=_0x2f723d['getAllAdjacentSuggestions'](),_0x972405=[];for(const _0x266b3c of _0x26255e){if(!_0x266b3c['isInContent'])continue;if(_0x266b3c['isMultiRange']){_0x972405['push'](..._0x266b3c['getRanges']());continue;}const _0x418803=_0x266b3c['getFirstRange']();if(_0x972405['length']>0x0){const _0x2700da=_0x972405[0x0]['getJoined'](_0x418803);if(_0x2700da){_0x972405[0x0]=_0x2700da;continue;}}_0x972405['push'](_0x418803);}_0x4db824['push']([_0x41521e['view'],_0x972405]);}return _0x4db824;}),this['listenTo'](_0x43be2a,'suggestionLoaded',(_0x3537f2,_0x19e86f)=>{this['listenTo'](_0x19e86f,'change:previous',(_0x2feb19,_0x21a26b,_0xba8d43,_0x40dfd2)=>{_0x19e86f['isInContent']&&(null==_0xba8d43?(this['_updateController'](_0x40dfd2['head']),this['_handleSuggestionControllerDelayed'](_0x19e86f,!0x1)):(this['_updateController'](_0xba8d43['head']),null==_0x40dfd2&&this['_handleSuggestionControllerDelayed'](_0x19e86f,!0x0)));}),null!==_0x19e86f['previous']?this['_updateController'](_0x19e86f['head']):this['_handleSuggestionControllerDelayed'](_0x19e86f,!0x1);}),this['listenTo'](_0x43be2a,'suggestionUnloaded',(_0x5cb4f2,_0x2390cb,_0x17c502)=>{this['stopListening'](_0x2390cb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2390cb),this['_suggestionToController']['has'](_0x2390cb)&&this['_destroyController'](_0x2390cb),_0x17c502&&this['_updateController'](_0x17c502['head']);}),this['listenTo'](_0x43be2a,'suggestionChanged',(_0x39c5cd,_0xe4d8a3)=>{this['_updateController'](_0xe4d8a3);}),this['listenTo'](_0x7a82a3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f9658,'addComment',(_0x30cc84,{threadId:_0x2d3f87,isFromAdapter:_0x378b12})=>{if(_0x378b12||!_0x43be2a['hasSuggestion'](_0x2d3f87))return;const _0xa56f5f=_0x43be2a['getSuggestion'](_0x2d3f87);this['_suggestionToController']['get'](_0xa56f5f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5d06e9=this['editor']['plugins']['get']('Annotations'),_0x33f3bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bcc56=Array['from'](_0x5d06e9['activeAnnotations'],_0x190b78=>_0x190b78['innerView'])['filter'](_0x52cda5=>this['_viewToController']['has'](_0x52cda5)),_0x4adaea=[];for(const _0x27e4f1 of _0x5bcc56){const _0x397af5=this['_viewToController']['get'](_0x27e4f1)['model']['getAllAdjacentSuggestions']();_0x4adaea['push'](..._0x397af5['reduce']((_0xc44a1,_0x516260)=>[..._0xc44a1,..._0x516260['getMarkerNames']()],[]));}_0x33f3bc['activeMarkers']=_0x4adaea;}['_addUIComponentsToFactory'](){const _0x835f03=this['editor'],_0x322ba9=_0x835f03['locale'],_0xee5037=o(_0x322ba9,'Track\x20changes'),_0xac25d9=new Wt([{'type':'switchbutton','model':new _0x526b25({'withText':!0x0,'isToggleable':!0x0,'label':_0xee5037,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x526b25({'withText':!0x0,'label':o(_0x322ba9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x526b25({'withText':!0x0,'label':o(_0x322ba9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x526b25({'withText':!0x0,'label':o(_0x322ba9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x526b25({'withText':!0x0,'label':o(_0x322ba9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2c8a6b of _0xac25d9)if(me(_0x2c8a6b)){const _0x280df4=_0x835f03['commands']['get'](_0x2c8a6b['model']['commandName']);_0x2c8a6b['model']['bind']('isOn','isEnabled')['to'](_0x280df4,'value','isEnabled');}_0x835f03['ui']['componentFactory']['add']('trackChanges',_0xdf21ff=>this['_createToolbarButton'](_0xdf21ff,_0xac25d9,_0xee5037)),_0x835f03['ui']['componentFactory']['add']('menuBar:trackChanges',_0x136da9=>this['_createMenuBarMenu'](_0x136da9,_0xac25d9,_0xee5037));}['_createToolbarButton'](_0x26e420,_0x10e90b,_0x2f20f1){const _0x4153ef=Qt(_0x26e420,_0x1461c8),_0xdd8a5f=this['editor']['commands']['get']('trackChanges');_0x4153ef['buttonView']['set']({'tooltip':_0x2f20f1,'label':_0x2f20f1,'icon':he}),_0x4153ef['buttonView']['bind']('isOn')['to'](_0xdd8a5f,'value'),_0x4153ef['buttonView']['on']('execute',()=>{_0xdd8a5f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x4153ef,_0x10e90b,{'role':'menu'});const _0x3583a8=[];for(const _0x3d071e of _0x10e90b)me(_0x3d071e)&&_0x3583a8['push'](this['editor']['commands']['get'](_0x3d071e['model']['commandName']));const _0x397035=_0x4153ef['buttonView'];return _0x397035['actionView']['unbind']('isEnabled'),_0x397035['arrowView']['unbind']('isEnabled'),_0x397035['actionView']['bind']('isEnabled')['to'](_0xdd8a5f,'isEnabled'),_0x397035['arrowView']['bind']('isEnabled')['toMany'](_0x3583a8,'isEnabled',(..._0x33b4c7)=>_0x33b4c7['some'](_0x57d49d=>_0x57d49d)),_0x4153ef['on']('execute',_0x5692f8=>{this['editor']['execute'](_0x5692f8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4153ef;}['_createMenuBarMenu'](_0x5e47c,_0x3c0627,_0x3b0c14){const _0x5254bf=new Yt(_0x5e47c),_0x261286=this['editor']['commands']['get']('trackChanges');_0x5254bf['buttonView']['set']({'label':_0x3b0c14,'icon':he});const _0x456f05=new Zt(_0x5e47c);for(const _0x3315d0 of _0x3c0627){if('separator'==_0x3315d0['type']){_0x456f05['items']['add'](new Xt(_0x5e47c));continue;}const _0x288639=new te(_0x5e47c,_0x5254bf),_0x5c8601=new _0x628398(_0x5e47c),_0x449dc1=_0x3315d0['model'];_0x5c8601['bind'](...Object['keys'](_0x449dc1))['to'](_0x449dc1),_0x5c8601['delegate']('execute')['to'](_0x5254bf),_0x5c8601['on']('execute',()=>{this['editor']['execute'](_0x449dc1['commandName']),this['editor']['editing']['view']['focus']();}),_0x288639['children']['add'](_0x5c8601),_0x456f05['items']['add'](_0x288639);}return _0x5254bf['bind']('isEnabled')['to'](_0x261286,'isEnabled'),_0x5254bf['panelView']['children']['add'](_0x456f05),_0x5254bf;}['_initializeController'](_0x27b310){const _0x21e8fa=this['editor'],_0x372acf=_0x21e8fa['config'],_0x24cab9=_0x21e8fa['plugins']['get']('Annotations'),_0x340418=_0x21e8fa['plugins']['get']('CommentsRepository'),_0x302479=_0x21e8fa['plugins']['get']('EditorAnnotations'),_0x449ea4=_0x21e8fa['plugins']['get'](_0x2d9153)['me'],_0xdc58da=_0x372acf['get']('trackChanges')['SuggestionThreadView'],_0x52c15f=_0x372acf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6f8d62,CommentThreadInputView:_0x18f7f3}=_0x21e8fa['plugins']['get']('CommentsUI');let _0x298884,_0x141942,_0x9004f5;this['_annotationViews']['has'](_0x27b310['id'])?(_0x141942=this['_annotationViews']['get'](_0x27b310['id']),_0x298884=_0x141942['mainView']):(_0x298884=new _0xdc58da(_0x21e8fa['locale'],_0x27b310,_0x449ea4,{'disableComments':this['_disableComments'],'editorConfig':_0x372acf['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x372acf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x372acf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x372acf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33b7c4(_0x372acf['get']('locale')),'CommentView':_0x372acf['get']('comments')['CommentView'],'CommentsListView':_0x6f8d62,'CommentThreadInputView':_0x18f7f3,'SuggestionView':_0x52c15f}),_0x298884['suggestionView']['acceptButton']['on']('execute',()=>{_0x21e8fa['editing']['view']['focus']();}),_0x298884['suggestionView']['discardButton']['on']('execute',()=>{_0x21e8fa['editing']['view']['focus']();}),_0x141942=_0x24cab9['createAnnotationView'](this['editor']['locale'],_0x298884),_0x141942['bind']('isDirty')['to'](_0x298884,'isDirty'),_0x141942['bind']('length')['to'](_0x298884),_0x141942['bind']('type')['to'](_0x298884,'type',_0x17ed56=>'suggestion-'+_0x17ed56),_0x298884['on']('escape',()=>{_0x9004f5['fire']('escape');}),this['_annotationViews']['set'](_0x27b310['id'],_0x141942));const _0x413908=_0x340418['createCommentThreadController'](_0x27b310['commentThread'],_0x298884),_0x1f7fa5=new ae(_0x21e8fa,_0x27b310,_0x298884,_0x413908),_0x33926f=_0x27b310['getAllAdjacentSuggestions']()['filter'](_0x3a8047=>_0x3a8047['isInContent']);_0x298884['descriptionParts']=_0x21e8fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x33926f),this['_suggestionToController']['set'](_0x27b310,_0x1f7fa5),this['_viewToController']['set'](_0x298884,_0x1f7fa5),_0x9004f5=_0x24cab9['createAnnotation']({'view':_0x141942,'target':()=>{const _0x42ca2e=[],_0x2b4807=_0x27b310['getAllAdjacentSuggestions']()['filter'](_0x1422a3=>_0x1422a3['isInContent']);for(const _0x310a28 of _0x2b4807)_0x42ca2e['push'](..._0x310a28['getMarkers']());return _0x290c5b(_0x21e8fa['editing'],_0x42ca2e);},'type':()=>'suggestion-'+_0x1f7fa5['view']['type']}),_0x340418['_bindAnnotationToEditors'](_0x298884,_0x9004f5),_0x24cab9['add'](_0x9004f5),_0x302479['registerAnnotation'](_0x9004f5);}['_destroyController'](_0x14ede2){const _0x40394a=this['editor']['plugins']['get']('CommentsRepository'),_0x2a0739=this['editor']['plugins']['get']('Annotations'),_0x2bb45a=this['_suggestionToController']['get'](_0x14ede2),_0x4fa82a=_0x2bb45a['view'],_0x50da51=_0x2a0739['getByInnerView'](_0x4fa82a);_0x40394a['_unbindEditors'](_0x4fa82a),_0x50da51&&_0x2a0739['remove'](_0x50da51),this['_suggestionToController']['delete'](_0x14ede2),this['_viewToController']['delete'](_0x4fa82a),_0x2bb45a['destroy']();}['_updateController'](_0x3d24b9){if(!_0x3d24b9['isInContent']||!this['_suggestionToController']['has'](_0x3d24b9))return;const _0x378e60=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc4f225=this['_suggestionToController']['get'](_0x3d24b9),_0x18d933=_0x3d24b9['getAllAdjacentSuggestions']();_0xc4f225['view']['descriptionParts']=_0x378e60['descriptionFactory']['getDescriptions'](_0x18d933);}['destroy'](){for(const _0x23900c of this['_suggestionToController']['keys']())this['_destroyController'](_0x23900c);for(const _0x5086c6 of this['_annotationViews']['values']())_0x5086c6['mainView']['destroy']();super['destroy']();}}function me(_0x4075c1){return'model'in _0x4075c1;}class k extends _0x54913d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x514c5d){this['editor']['plugins']['get'](p)['adapter']=_0x514c5d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2527fd){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2527fd);}['getSuggestions']({skipNotAttached:_0x3db6ae=!0x1,toJSON:_0x3ec748=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3db6ae,'toJSON':_0x3ec748});}['getSuggestion'](_0x4ec9eb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4ec9eb);}}const T=['Pagination'];class P extends _0x54913d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5a709d=this['editor'];if(_0x5a709d['config']['define']('trackChangesData.editorCreator',_0x8369e9=>{const _0x338568=_0x5a709d['model']['document']['getRootNames']()['reduce']((_0xe09cf5,_0x467a5e)=>(_0xe09cf5[_0x467a5e]='',_0xe09cf5),{});return _0x5a709d['constructor']['create'](_0x338568,_0x8369e9);}),'function'!=typeof _0x5a709d['config']['get']('trackChangesData')['editorCreator'])throw new _0x106f22('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x32cd47){return N(this['editor'],!0x0,_0x32cd47);}['getDataWithDiscardedSuggestions'](_0x3c7927){return N(this['editor'],!0x1,_0x3c7927);}}class D extends _0x54913d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x404ac4){super(_0x404ac4),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(_0x1370e5){return void 0x0!==_0x1370e5['getRootsAttributes'];}async function N(_0x3017ea,_0xb9822b,_0x3eda9c){const _0xd64f25=_0x54e9aa(_0x3017ea,T);_0xd64f25['plugins']['push'](p,D),_0xd64f25['rootsAttributes']=v(_0x3017ea)?_0x3017ea['getRootsAttributes']():void 0x0;const _0x5ab100=document['createDocumentFragment'](),_0xb0e9e=_0x3017ea['config']['get']('trackChangesData')['editorCreator'],_0x217bf3=await _0xb0e9e(_0xd64f25,()=>function(_0x209b9f){const _0xd7cb8d=document['createElement']('div');return _0x209b9f['appendChild'](_0xd7cb8d),_0xd7cb8d;}(_0x5ab100));!function(_0x32b29b,_0x36af92){const _0x98f747=_0x32b29b['model']['document']['getRootNames']()['reduce']((_0x5aa7a1,_0x2235df)=>(_0x5aa7a1[_0x2235df]=_0x32b29b['data']['get']({'rootName':_0x2235df}),_0x5aa7a1),{}),_0x51381a=_0x32b29b['plugins']['get']('Users')['users']['map'](_0x2fa0ed=>({'id':_0x2fa0ed['id'],'name':_0x2fa0ed['name']})),_0x8bc08f=_0x32b29b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x333d64=_0x32b29b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14474f=_0x36af92['plugins']['get']('Users'),_0x5dfc94=_0x36af92['plugins']['get']('TrackChangesEditing'),_0x59084e=_0x36af92['plugins']['get']('CommentsRepository');for(const _0x46c7c2 of _0x59084e['getCommentThreads']())_0x46c7c2['remove']();for(const _0x173027 of _0x51381a)_0x14474f['getUser'](_0x173027['id'])||_0x14474f['addUser'](_0x173027);_0x14474f['me']||_0x14474f['useAnonymousUser']();for(const _0x51732d of _0x333d64)_0x59084e['addCommentThread'](_0x51732d);for(const _0x30f9b9 of _0x8bc08f)_0x5dfc94['addSuggestionData'](_0x30f9b9);_0x36af92['data']['set'](_0x98f747);}(_0x3017ea,_0x217bf3),_0x217bf3['execute'](_0xb9822b?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d5a43=v(_0x217bf3)?_0x217bf3['getFullData'](_0x3eda9c):_0x217bf3['data']['get'](_0x3eda9c);return await _0x217bf3['destroy'](),_0x4d5a43;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};