@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240712.0 → 0.0.0-nightly-20240713.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +3 -3
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/multilevellist.js +1 -1
  136. package/src/integrations/pagebreak.js +1 -1
  137. package/src/integrations/paragraph.js +1 -1
  138. package/src/integrations/removeformat.js +1 -1
  139. package/src/integrations/restrictededitingmode.js +1 -1
  140. package/src/integrations/shiftentercommand.js +1 -1
  141. package/src/integrations/standardeditingmode.js +1 -1
  142. package/src/integrations/style.js +1 -1
  143. package/src/integrations/table.js +1 -1
  144. package/src/integrations/tablecaption.js +1 -1
  145. package/src/integrations/tableclipboard.js +1 -1
  146. package/src/integrations/tablecolumnresize.js +1 -1
  147. package/src/integrations/tableheadings.js +1 -1
  148. package/src/integrations/tablemergesplit.js +1 -1
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.js +1 -1
  151. package/src/integrations/template.js +1 -1
  152. package/src/integrations/title.js +1 -1
  153. package/src/integrations/undo.js +1 -1
  154. package/src/integrations/utils.js +1 -1
  155. package/src/suggestion.js +2 -2
  156. package/src/suggestiondescriptionfactory.js +1 -1
  157. package/src/trackchanges.js +1 -1
  158. package/src/trackchangesdata.js +1 -1
  159. package/src/trackchangesediting.js +1 -1
  160. package/src/trackchangesui.js +1 -1
  161. package/src/ui/suggestioncontroller.js +2 -2
  162. package/src/ui/view/basesuggestionthreadview.js +1 -1
  163. package/src/ui/view/suggestionthreadview.js +1 -1
  164. package/src/utils/common-translations.js +1 -1
  165. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x1c3a28,PendingActions as _0x389de3,icons as _0x37f5d0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x445205,ObservableMixin as _0x96933,uid as _0x15362b,insertToPriorityArray as _0x91b52,priorities as _0x3304ea,logWarning as _0x56812c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xa8c042,View as _0x197ffd,ButtonView as _0x2b8a83,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5f159e,hashObject as _0x3bec44,surroundingMarkersDetector as _0x271149,trimHtml as _0x5fbeb,UserView as _0x53c264,getDateTimeFormatter as _0x9e07be,getAllMarkersDomElementsSorted as _0x15ed0a,sanitizeEditorConfig as _0x2ce83d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x289fed,LiveRange as _0x5b9e67,LivePosition as _0x4c9fc9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x518311,toWidget as _0x2b8909}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4208fc,set as _0x5e8480,isEqual as _0x4c16cf,unset as _0x332e3e,omit as Bt}from'lodash-es';import{Delete as _0x339f2f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x203d9b,ShiftEnter as _0x16fabb}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x5d4213,_0x407c72){super(_0x5d4213),this['_enabledCommands']=_0x407c72,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 _0x489b67 of this['editor']['commands']['commands']())_0x489b67['affectsData']&&!this['_enabledCommands']['has'](_0x489b67)&&_0x489b67['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x38d45e of this['editor']['commands']['commands']())_0x38d45e['affectsData']&&!this['_enabledCommands']['has'](_0x38d45e)&&_0x38d45e['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x62f0e8,_0xca91c8){super(_0x62f0e8),this['_suggestions']=_0xca91c8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2f1650){const _0x45e93a=this['_suggestions']['get'](_0x2f1650);if(!_0x45e93a)throw new _0x445205('track-changes-accept-suggestion-not-found',this);const _0x3893de=_0x45e93a['getRanges']();this['editor']['model']['canEditAt'](_0x3893de)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x45e93a);}}class B extends ts{['_suggestions'];constructor(_0x542783,_0x48324a){super(_0x542783),this['_suggestions']=_0x48324a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x50dea0){const _0x368e2e=this['_suggestions']['get'](_0x50dea0);if(!_0x368e2e)throw new _0x445205('track-changes-discard-suggestion-not-found',this);const _0x2696b2=_0x368e2e['getRanges']();this['editor']['model']['canEditAt'](_0x2696b2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x368e2e);}}function ss(_0x21ad1d){return _0x21ad1d['sort']((_0x517a90,_0x41813a)=>'deletion'==_0x517a90['type']&&'deletion'!=_0x41813a['type']?-0x1:'deletion'!=_0x517a90['type']&&'deletion'==_0x41813a['type']?0x1:0x0);}function to(_0x4200ca,_0x381522){let _0x4773e1,_0x5790cd=0x0;const _0x31ae2c=[],_0x182cf9=_0x381522['schema'];for(;_0x5790cd<_0x4200ca['length'];){const _0x3cbd93=_0x4200ca[_0x5790cd],_0x404059=_0x4200ca[_0x5790cd+0x1];_0x4773e1||(_0x4773e1=_0x381522['createPositionBefore'](_0x3cbd93)),co(_0x381522,_0x3cbd93,_0x404059)||(_0x31ae2c['push'](_0x381522['createRange'](_0x4773e1,_0x182cf9['isObject'](_0x3cbd93)?_0x381522['createPositionAfter'](_0x3cbd93):_0x381522['createPositionAt'](_0x3cbd93,'end'))),_0x4773e1=null),_0x5790cd++;}return _0x31ae2c;}function co(_0x2ace5d,_0x52aac3,_0x1ab2f1){if(!_0x1ab2f1)return!0x1;const _0x1d3d4=_0x2ace5d['createPositionAfter'](_0x52aac3),_0x27857d=_0x2ace5d['createPositionBefore'](_0x1ab2f1);return _0x1d3d4['isTouching'](_0x27857d);}function rs(_0x52a085,_0x52b6a6,_0x2b1250){for(;_0x2b1250['length'];){const _0x113dda=_0x2b1250['splice'](0x0,0x64);_0x52a085['change'](()=>{for(const _0x1f0a2d of _0x113dda)_0x1f0a2d['isInContent']&&_0x52b6a6['execute'](_0x1f0a2d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x40fcf1,_0x2421bb,_0x211281){super(_0x40fcf1),this['_command']=_0x2421bb,this['_suggestions']=_0x211281,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x366a09=Array['from'](this['_suggestions']['values']())['some'](_0x521efb=>_0x521efb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x366a09;}['execute'](){const _0x39b4d9=ss(Array['from'](this['_suggestions']['values']()));for(const _0x164dd5 of _0x39b4d9){const _0x309050=_0x164dd5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x309050))return;}rs(this['editor']['model'],this['_command'],_0x39b4d9);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11fc96,_0x227363,_0x1d447b){super(_0x11fc96),this['_command']=_0x227363,this['_suggestions']=_0x1d447b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf603ec=this['editor']['model']['document']['selection'],_0x943b9b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x57932a,_0x519d53){const _0x42b690=Array['from'](_0x57932a['getRanges']()),_0x47ce09=new Set();for(const _0x1eac90 of _0x519d53)if(_0x1eac90['isInContent']){for(const _0x287761 of _0x42b690)for(const _0x179d42 of _0x1eac90['getRanges']())(_0x287761['isIntersecting'](_0x179d42)||_0x57932a['isCollapsed']&&!_0x1eac90['isMultiRange']&&_0x1eac90['next']&&_0x179d42['end']['isTouching'](_0x287761['start']))&&_0x47ce09['add'](_0x1eac90);}return _0x47ce09;}(_0xf603ec,_0x943b9b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3c4a41=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5161f3 of _0x3c4a41){const _0x2d2916=_0x5161f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d2916))return;}rs(this['editor']['model'],this['_command'],_0x3c4a41);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x96933(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e064a,_0x4ee39d){super(),this['id']=_0x4ee39d['id'],this['type']=_0x4ee39d['type'],this['subType']=_0x4ee39d['subType']||null,this['author']=_0x4ee39d['author'],this['creator']=_0x4ee39d['creator']||_0x4ee39d['author'],this['isExternal']=Boolean(_0x4ee39d['attributes']&&_0x4ee39d['attributes']['@external']),this['data']=null,this['_model']=_0x2e064a,this['_onAccept']=_0x4ee39d['onAccept'],this['_onDiscard']=_0x4ee39d['onDiscard'],this['_onAttributesChange']=_0x4ee39d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ee39d['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 _0x148667=this;for(;_0x148667['previous'];)_0x148667=_0x148667['previous'];return _0x148667;}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'](_0x70a287){this['_markerNames']['add'](_0x70a287);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x26bcf1=>this['_model']['markers']['get'](_0x26bcf1))['filter'](_0x12b9eb=>_0x12b9eb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x45a4d2=>{for(const _0x5f3035 of this['getMarkers']())_0x45a4d2['removeMarker'](_0x5f3035);}),this['_markerNames']['clear']();}['removeMarker'](_0x37052e){this['_model']['change'](_0x4dc036=>{_0x4dc036['removeMarker'](_0x37052e);}),this['_markerNames']['delete'](_0x37052e);}['addRange'](_0x2aa888){const _0xf898='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xf898),this['_model']['change'](_0x19bb77=>{_0x19bb77['addMarker'](_0xf898,{'range':_0x2aa888,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x302939){for(const _0x96a9b2 of this['getRanges']())if(_0x96a9b2['isIntersecting'](_0x302939))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x22a8bb=>_0x22a8bb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2dd61d,_0x1e4e3c)=>[..._0x2dd61d,..._0x1e4e3c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2d4e92=this['getRanges']();if(0x1!=_0x2d4e92['length'])return null;const _0x412c36=_0x2d4e92[0x0],_0x3f20e1=_0x412c36['start']['nodeAfter'],_0x3d6151=_0x412c36['end']['nodeBefore'];return _0x3f20e1 instanceof _0x289fed?_0x3f20e1!=_0x3d6151?null:_0x3f20e1: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 _0x15e63e=[];let _0x1bee91=this['head'];for(;_0x1bee91;)_0x15e63e['push'](_0x1bee91),_0x1bee91=_0x1bee91['next'];return _0x15e63e;}['setAttribute'](_0x523f20,_0x5a052f){const _0x19d4b3=_0x4208fc(this['attributes']);_0x5e8480(_0x19d4b3,_0x523f20,_0x5a052f),_0x4c16cf(_0x19d4b3,this['attributes'])||(this['attributes']=_0x19d4b3,this['_onAttributesChange'](_0x19d4b3));}['removeAttribute'](_0x21ff7d){const _0x13ae03=_0x4208fc(this['attributes']);_0x332e3e(_0x13ae03,_0x21ff7d),_0x4c16cf(_0x13ae03,this['attributes'])||(this['attributes']=_0x13ae03,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 _0x15362b()['substr'](0x1,0x5);}}function o(_0x51b411,_0x5e8d65,_0x558290){const t=_0x51b411['t'];switch(_0x5e8d65){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',_0x558290);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x558290);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x558290);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x558290);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x558290);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',_0x558290);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x558290);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',_0x558290);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x558290);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x558290);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x558290);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x558290);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x558290);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x558290);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x558290);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x558290);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x558290);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x558290);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x558290);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x558290);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x558290);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x558290);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x558290);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'},_0x558290);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x558290);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x558290);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x558290);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x558290);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x558290);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'},_0x558290);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x558290);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x558290);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x558290);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x558290);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'},_0x558290);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x558290);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'},_0x558290);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'},_0x558290);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x558290);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'},_0x558290);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x558290);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'},_0x558290);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x558290);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x558290);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x558290);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'},_0x558290);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x5e8d65;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4a1ee5,_0x365760){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4a1ee5,this['_locale']=_0x365760;}['getDescriptions'](_0x8a0499){const _0x4b167a=[],_0xaaeee2=new Set(),_0x57672d=new Set();for(let _0x5ad888=0x0;_0x5ad888<_0x8a0499['length'];_0x5ad888++){const _0x52a7b3=_0x8a0499[_0x5ad888];if(!_0x52a7b3['isInContent'])continue;const _0x4e21ef=this['_handleCustomCallbackDescription'](_0x52a7b3);if(_0x4e21ef){if(null!=_0x52a7b3['subType']){if(_0xaaeee2['has'](_0x52a7b3['subType']))continue;_0xaaeee2['add'](_0x52a7b3['subType']);}_0x4b167a['push'](_0x4e21ef);}else{if('attribute'!=_0x52a7b3['type'])'insertion'!=_0x52a7b3['type']&&'deletion'!=_0x52a7b3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4b167a,_0x52a7b3,_0x8a0499[_0x5ad888+0x1]);else{const _0x57efef=_0x52a7b3['data']['key'];if(_0x57672d['has'](_0x57efef))continue;_0x57672d['add'](_0x52a7b3['data']['key']),_0x57efef==m?this['_handleRenameSuggestionDescription'](_0x4b167a,_0x52a7b3):this['_handleAttributeSuggestionDescription'](_0x4b167a,_0x52a7b3);}}}return this['_resolveDescriptionItems'](_0x4b167a);}['registerDescriptionCallback'](_0x4de5b0){this['_customCallbacks']['push'](_0x4de5b0);}['registerElementLabel'](_0x30be5b,_0x1608d4,_0x5db94f=_0x3304ea['normal']){'function'==typeof _0x30be5b?_0x91b52(this['_itemLabelsCallbacks'],{'matchingCallback':_0x30be5b,'label':_0x1608d4,'priority':_0x5db94f}):this['_itemLabels']['set'](_0x30be5b,_0x1608d4);}['registerAttributeLabel'](_0x45a872,_0x3bca83){this['_attributeLabels']['set'](_0x45a872,_0x3bca83);}['getItemLabel'](_0x538e62,_0x5cf883=0x1){let _0x968216;for(const _0x452a7c of this['_itemLabelsCallbacks'])if(_0x452a7c['matchingCallback'](_0x538e62)){_0x968216=_0x452a7c['label'];break;}return _0x968216||(_0x968216=this['_itemLabels']['get'](_0x538e62['name'])),_0x968216?_0x968216(_0x5cf883):0x1!==_0x5cf883?_0x5cf883+'\x20'+_0x538e62['name']+'s':''+_0x538e62['name'];}['_addDescriptionItems'](_0x23a7e0,_0xcc9bc4){const _0x3f7741=_0xcc9bc4['getFirstRange']()['getWalker'](),_0x2c2382='insertion'==_0xcc9bc4['type']?'add':'remove';for(const _0x30906c of _0x3f7741){const _0x28b6f8=_0x30906c['item'],_0x23ac12=_0x23a7e0[_0x23a7e0['length']-0x1];if(_0x28b6f8['is']('$textProxy'))_0x23ac12&&_0x23ac12['type']['indexOf']('Container')>-0x1&&_0x23a7e0['pop'](),_0x23ac12&&'text'==_0x23ac12['type']?_0x23ac12[_0x2c2382]+=_0x28b6f8['data']:_0x23a7e0['push']({'type':'text','add':'add'==_0x2c2382?_0x28b6f8['data']:'','remove':'remove'==_0x2c2382?_0x28b6f8['data']:''});else{if(this['_schema']['isObject'](_0x28b6f8)){const _0x52413c=_0x28b6f8;if(_0x23ac12&&_0x23ac12['type']['indexOf']('Container')>-0x1&&_0x23a7e0['pop'](),'elementEnd'==_0x30906c['type'])continue;_0x23ac12&&_0x23ac12['type']==_0x2c2382+'Object'&&_0x23ac12['element']['name']==_0x52413c['name']?_0x23ac12['quantity']++:_0x23a7e0['push']({'type':_0x2c2382+'Object','element':_0x52413c,'quantity':0x1}),_0x3f7741['skip'](_0x56da25=>!('elementEnd'==_0x56da25['type']&&_0x56da25['item']==_0x28b6f8));}else{if(this['_schema']['checkChild'](_0x28b6f8,'$text')||_0x28b6f8['is']('element','softBreak')){const _0x520f7d=_0x28b6f8;if('add'==_0x2c2382&&'elementStart'==_0x30906c['type']||'remove'==_0x2c2382&&'elementEnd'==_0x30906c['type'])continue;if(_0x23ac12&&-0x1==_0x23ac12['type']['indexOf']('Container')){'text'==_0x23ac12['type']&&(_0x23ac12[_0x2c2382]+='\x0a');continue;}let _0x36b03a;if(_0x36b03a='add'==_0x2c2382?_0x520f7d['nextSibling']&&!this['_schema']['isObject'](_0x520f7d['nextSibling'])?_0x520f7d['nextSibling']:null:_0x520f7d['previousSibling']&&!this['_schema']['isObject'](_0x520f7d['previousSibling'])?_0x520f7d['previousSibling']:null,_0x520f7d['isEmpty']||_0x36b03a&&_0x36b03a['isEmpty']){const _0x42a716=_0x36b03a&&_0x36b03a['isEmpty']?_0x36b03a:_0x520f7d;_0x23ac12&&_0x23ac12['type']==_0x2c2382+'EmptyContainer'&&_0x23ac12['element']['name']==_0x42a716['name']?_0x23ac12['quantity']++:_0x23a7e0['push']({'type':_0x2c2382+'EmptyContainer','element':_0x42a716,'quantity':0x1});}else _0x23a7e0['push']({'type':_0x2c2382+'Container','element':_0x520f7d});}}}}}['_resolveDescriptionItems'](_0x78ed1c){const _0xfd9be5=this['_locale'],_0x38dccb=[],_0x2d7c1c=[],_0x504d3e=[];for(const _0x3a2c8b of _0x78ed1c)switch(_0x3a2c8b['type']){case'text':if(_0x3a2c8b['add']=_0x3a2c8b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3a2c8b['remove']=_0x3a2c8b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3a2c8b['add']&&''!=_0x3a2c8b['remove']){_0x38dccb['push']({'type':'replace','content':o(_0xfd9be5,'REPLACE_TEXT',['\x22'+_0x3a2c8b['remove']+'\x22','\x22'+_0x3a2c8b['add']+'\x22'])});continue;}if(null!=_0x3a2c8b['add']['match'](/^ +$/)){_0x38dccb['push']({'type':'insertion','content':o(_0xfd9be5,'*Insert:*\x20%0',o(_0xfd9be5,'ELEMENT_SPACE',_0x3a2c8b['add']['length']))});continue;}if(null!=_0x3a2c8b['remove']['match'](/^ +$/)){_0x38dccb['push']({'type':'deletion','content':o(_0xfd9be5,'*Remove:*\x20%0',o(_0xfd9be5,'ELEMENT_SPACE',_0x3a2c8b['remove']['length']))});continue;}if(''!=_0x3a2c8b['add']){_0x38dccb['push']({'type':'insertion','content':o(_0xfd9be5,'*Insert:*\x20%0','\x22'+_0x3a2c8b['add']+'\x22')});continue;}_0x38dccb['push']({'type':'deletion','content':o(_0xfd9be5,'*Remove:*\x20%0','\x22'+_0x3a2c8b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x38dccb['push']({'type':'insertion','content':o(_0xfd9be5,'*Insert:*\x20%0',this['getItemLabel'](_0x3a2c8b['element'],_0x3a2c8b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x38dccb['push']({'type':'deletion','content':o(_0xfd9be5,'*Remove:*\x20%0',this['getItemLabel'](_0x3a2c8b['element'],_0x3a2c8b['quantity']))});continue;case'addContainer':_0x38dccb['push']({'type':'insertion','content':o(_0xfd9be5,'*Split:*\x20%0',this['getItemLabel'](_0x3a2c8b['element'],_0x3a2c8b['quantity']))});continue;case'removeContainer':_0x38dccb['push']({'type':'deletion','content':o(_0xfd9be5,'*Merge:*\x20%0',this['getItemLabel'](_0x3a2c8b['element'],_0x3a2c8b['quantity']))});continue;case'addFormat':_0x2d7c1c['push'](_0x3a2c8b['key']);continue;case'removeFormat':_0x504d3e['push'](_0x3a2c8b['key']);continue;default:_0x38dccb['push'](_0x3a2c8b);}if(_0x2d7c1c['length']){const _0x278ea3=_0x2d7c1c['map'](_0x44ac6b=>this['_attributeLabels']['has'](_0x44ac6b)?this['_attributeLabels']['get'](_0x44ac6b):_0x44ac6b)['join'](',\x20');_0x38dccb['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x278ea3)});}if(_0x504d3e['length']){const _0x4b5c79=_0x504d3e['map'](_0x55b426=>this['_attributeLabels']['has'](_0x55b426)?this['_attributeLabels']['get'](_0x55b426):_0x55b426)['join'](',\x20');_0x38dccb['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4b5c79)});}return _0x38dccb;}['_handleCustomCallbackDescription'](_0x2f2eb8){for(const _0x532e0f of this['_customCallbacks']){const _0x21f227=_0x532e0f(_0x2f2eb8);if(_0x21f227&&'type'in _0x21f227)return _0x21f227;}}['_handleAttributeSuggestionDescription'](_0x246594,_0x1862b4){const _0x24add0=_0x1862b4['data'],_0x1b5733=void 0x0===_0x24add0['newValue']?'removeFormat':'addFormat';_0x246594['push']({'type':_0x1b5733,'key':_0x24add0['key']});}['_handleRenameSuggestionDescription'](_0x3b4662,_0x3b9c4d){_0x3b4662['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3b9c4d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a4e03,_0x251d8b,_0x3f99b6){if(this['_addDescriptionItems'](_0x1a4e03,_0x251d8b),_0x3f99b6&&_0x3f99b6['getFirstRange']()&&!_0x251d8b['getFirstRange']()['end']['isEqual'](_0x3f99b6['getFirstRange']()['start'])){const _0x9b3b49=_0x1a4e03[_0x1a4e03['length']-0x1],_0x34330e='insertion'==_0x251d8b['type']?'add':'remove';_0x9b3b49&&'text'==_0x9b3b49['type']&&(_0x9b3b49[_0x34330e]+='\x0a');}}}class E extends _0x1c3a28{['afterInit'](){const _0x3e816e=this['editor'],_0x3ab7b7=_0x3e816e['plugins']['get']('TrackChangesEditing');_0x3e816e['commands']['get']('showAIAssistant')&&_0x3ab7b7['enableCommand']('showAIAssistant');}}class V extends _0x1c3a28{['afterInit'](){const _0x121a53=this['editor'],_0x2a969b=_0x121a53['locale'];if(!_0x121a53['plugins']['has']('AlignmentEditing'))return;const _0x529754=_0x121a53['plugins']['get']('TrackChangesEditing');_0x529754['enableDefaultAttributesIntegration']('alignment'),_0x529754['registerBlockAttribute']('alignment'),_0x529754['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2a969b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x394098=this['editor'],_0xf1f6a6=_0x394098['locale'];_0x394098['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d70d6=>{if('formatBlock'!=_0x2d70d6['type'])return;const {data:_0x1c67a9}=_0x2d70d6;if(_0x1c67a9&&'alignment'==_0x1c67a9['commandName']){const _0x393a70=_0x1c67a9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xf1f6a6,'*Format:*\x20%0',function(_0x5e6af3){switch(_0x5e6af3){case'left':return o(_0xf1f6a6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xf1f6a6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xf1f6a6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xf1f6a6,'FORMAT_JUSTIFY_TEXT');}}(_0x393a70))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1c3a28{['afterInit'](){const _0x45c67c=this['editor'],_0x2029eb=_0x45c67c['plugins']['get']('TrackChangesEditing'),_0x398370=_0x45c67c['locale'];for(const _0x2c0534 of ti){if(!_0x45c67c['plugins']['has'](_0x2c0534))continue;const _0xdce06=_0x2c0534['slice'](0x0,-0x7)['toLowerCase'](),_0x5915a1='FORMAT_'+_0xdce06['toUpperCase']();_0x2029eb['enableDefaultAttributesIntegration'](_0xdce06),_0x2029eb['registerInlineAttribute'](_0xdce06),_0x2029eb['descriptionFactory']['registerAttributeLabel'](_0xdce06,o(_0x398370,_0x5915a1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x460494=this['editor'],_0x309eaa=_0x460494['locale'],_0x5bb83c=_0x460494['plugins']['get']('TrackChangesEditing');function _0x44d9b4(_0x456e82,_0x312357){_0x5bb83c['descriptionFactory']['registerDescriptionCallback'](_0x194d88=>{if('formatInline'!=_0x194d88['type'])return;const {data:_0x73c9f}=_0x194d88;return _0x73c9f&&_0x73c9f['commandName']===_0x456e82?_0x73c9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x309eaa,'*Format:*\x20%0',_0x312357)}:{'type':'format','content':o(_0x309eaa,'*Remove\x20format:*\x20%0',_0x312357)}:void 0x0;});}_0x44d9b4('bold',o(_0x309eaa,'FORMAT_BOLD')),_0x44d9b4('italic',o(_0x309eaa,'FORMAT_ITALIC')),_0x44d9b4('underline',o(_0x309eaa,'FORMAT_UNDERLINE')),_0x44d9b4('code',o(_0x309eaa,'FORMAT_CODE')),_0x44d9b4('strikethrough',o(_0x309eaa,'FORMAT_STRIKETHROUGH')),_0x44d9b4('subscript',o(_0x309eaa,'FORMAT_SUBSCRIPT')),_0x44d9b4('superscript',o(_0x309eaa,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1c3a28{['afterInit'](){const _0x46d24a=this['editor'],_0x4e89f2=_0x46d24a['locale'];if(!_0x46d24a['plugins']['has']('BlockQuoteEditing'))return;const _0x28c84e=_0x46d24a['plugins']['get']('TrackChangesEditing'),_0x2a38ff=this['editor']['commands']['get']('blockQuote');_0x28c84e['enableCommand']('blockQuote',(_0x467c4d,_0x9f0145={})=>{const _0x57b7a6=this['editor']['model']['document']['selection'],_0x1a9744=_0x9f0145&&void 0x0!==_0x9f0145['forceValue']?_0x9f0145['forceValue']:!_0x2a38ff['value'];let _0x195155=[];if(_0x1a9744){const _0x540b48=Array['from'](_0x57b7a6['getSelectedBlocks']())['filter'](_0x3acfb1=>oo(_0x3acfb1)||function(_0x22da06,_0x5b6f6e){const _0x8689b=_0x5b6f6e['checkChild'](_0x22da06['parent'],'blockQuote'),_0x16c3ae=_0x5b6f6e['checkChild'](['$root','blockQuote'],_0x22da06);return _0x8689b&&_0x16c3ae;}(_0x3acfb1,this['editor']['model']['schema']));_0x195155=to(_0x540b48,_0x46d24a['model']);}else{const _0x167e2d=Array['from'](_0x57b7a6['getSelectedBlocks']())['filter'](_0x64097c=>oo(_0x64097c));_0x195155=to(_0x167e2d,_0x46d24a['model']);}_0x46d24a['model']['change'](()=>{for(const _0x1a03f6 of _0x195155)_0x28c84e['markBlockFormat'](_0x1a03f6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a9744}]});});}),_0x28c84e['descriptionFactory']['registerDescriptionCallback'](_0x1a225c=>{const {data:_0x1369bd}=_0x1a225c;if(_0x1369bd&&'blockQuote'==_0x1369bd['commandName']){const _0x31c78e=o(_0x4e89f2,'ELEMENT_BLOCK_QUOTE');return _0x1369bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e89f2,'*Set\x20format:*\x20%0',_0x31c78e)}:{'type':'format','content':o(_0x4e89f2,'*Remove\x20format:*\x20%0',_0x31c78e)};}});}}function oo(_0x282b0d){return'blockQuote'==_0x282b0d['parent']['name'];}class G extends _0x1c3a28{['afterInit'](){const _0x186c64=this['editor'];_0x186c64['plugins']['has']('CaseChange')&&(_0x186c64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x186c64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x186c64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1c3a28{['afterInit'](){const _0x2c52bc=this['editor'];_0x2c52bc['commands']['get']('ckbox')&&_0x2c52bc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1c3a28{['afterInit'](){const _0x3e9794=this['editor'];if(!_0x3e9794['plugins']['has']('CodeBlock'))return;const _0x2b209e=_0x3e9794['plugins']['get']('TrackChangesEditing'),_0x4a5564=_0x3e9794['locale'],_0x50cb90=_0x3e9794['config']['get']('codeBlock')['languages'],_0x51a1ca=_0x3e9794['commands']['get']('codeBlock');_0x2b209e['enableCommand']('indentCodeBlock'),_0x2b209e['enableCommand']('outdentCodeBlock'),_0x2b209e['enableCommand']('codeBlock',(_0x3ec536,_0x2867a8={})=>{const _0x210403=_0x3e9794['model'],_0x5c8d07=_0x3e9794['model']['document']['selection'],_0x23f7b6=_0x2867a8&&void 0x0!==_0x2867a8['forceValue']?_0x2867a8['forceValue']:!_0x51a1ca['value'];let _0x4874d1;_0x2867a8['language']||(_0x2867a8['language']=_0x50cb90[0x0]['language']),_0x4874d1=_0x23f7b6?Array['from'](_0x5c8d07['getSelectedBlocks']())['filter'](_0x283f28=>eo(_0x283f28)||function(_0xb16b70,_0x4d941f){if(_0xb16b70['is']('rootElement')||_0x4d941f['isLimit'](_0xb16b70))return!0x1;return _0x4d941f['checkChild'](_0xb16b70['parent'],'codeBlock');}(_0x283f28,_0x210403['schema'])):Array['from'](_0x5c8d07['getSelectedBlocks']())['filter'](_0x25ecd9=>eo(_0x25ecd9));const _0x416fd1=to(_0x4874d1,_0x210403);_0x210403['change'](()=>{for(const _0x24e448 of _0x416fd1)_0x2b209e['markBlockFormat'](_0x24e448,{'commandName':'codeBlock','commandParams':[{..._0x2867a8,'forceValue':_0x23f7b6}],'formatGroupId':'blockName'});});}),(_0x2b209e['descriptionFactory']['registerElementLabel']('codeBlock',_0x19b045=>o(_0x4a5564,'ELEMENT_CODE_BLOCK',_0x19b045)),_0x2b209e['descriptionFactory']['registerDescriptionCallback'](_0x47f3db=>{if('formatBlock'!=_0x47f3db['type'])return;const _0x4df88a=_0x4a5564['t'],{data:_0x8522d3}=_0x47f3db;if(!_0x8522d3||'codeBlock'!=_0x8522d3['commandName'])return;const _0x28e450=_0x8522d3['commandParams'][0x0]['language'],_0x4d2961=_0x4df88a(_0x50cb90['find'](_0x97743e=>_0x97743e['language']===_0x28e450)['label'])['toLowerCase']();return _0x8522d3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a5564,'*Set\x20format:*\x20%0',o(_0x4a5564,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4d2961+')')}:{'type':'format','content':o(_0x4a5564,'*Remove\x20format:*\x20%0',o(_0x4a5564,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2b4974){return'codeBlock'==_0x2b4974['name'];}class H extends _0x1c3a28{['afterInit'](){const _0x2adb28=this['editor'];if(!_0x2adb28['plugins']['has']('CommentsEditing'))return;_0x2adb28['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x12f109,_0x1a867b,_0x51218c){const _0x43bf7f=[];for(const _0x5b5143 of _0x1a867b['getItems']())_0x5b5143['hasAttribute'](_0x12f109)&&_0x43bf7f['push'](_0x51218c['createRangeOn'](_0x5b5143));return _0x43bf7f;}function _e(_0x547c20,_0x17ca5e,{showActiveMarker:_0x10509c=!0x0}={}){const _0x5bd781=_0x547c20['plugins']['get']('TrackChangesEditing');return(_0x2bcf80,_0x26d23e,_0x3e411a)=>{if(!_0x3e411a['consumable']['test'](_0x26d23e['markerRange'],_0x2bcf80['name']))return;const _0x233654=_0x26d23e['markerRange']['getWalker'](),_0x111e54=_0x26d23e['markerRange']['start'],_0x28c323=_0x547c20['model']['schema'];let _0x3b2b37=null,_0x2ad16e=null,_0x206376=!0x1,_0x4b9390=!0x1;for(const _0x2c955 of _0x233654){const _0x5a1923=_0x2c955['item'];_0x206376=_0x206376||_0x28c323['isContent'](_0x5a1923);const _0x4fa22a=_0x3e411a['mapper']['toViewElement'](_0x5a1923);if(_0x4fa22a&&_0x4fa22a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c955['type']&&(_0x28c323['isBlock'](_0x5a1923)&&!_0x28c323['isLimit'](_0x5a1923)&&(_0x5a1923['nextSibling']||_0x111e54['isAtEnd']?_0x3b2b37&&_0x3b2b37['parent']==_0x5a1923||(_0x3b2b37=_0x5a1923,_0x312e1b(_0x2c955['previousPosition']),_0x4b9390=!0x0):_0x2ad16e=_0x2ad16e||_0x2c955['previousPosition']));}function _0x312e1b(_0x1df47b){const _0x19cd1e=_0x3e411a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17ca5e}),_0x286f9e=_0x3e411a['mapper']['toViewPosition'](_0x1df47b);_0x10509c&&_0x5bd781['activeMarkers']['includes'](_0x26d23e['markerName'])&&_0x3e411a['writer']['addClass']('ck-suggestion-marker--active',_0x19cd1e),_0x3e411a['writer']['insert'](_0x286f9e,_0x19cd1e),_0x3e411a['mapper']['bindElementToMarker'](_0x19cd1e,_0x26d23e['markerName']);}_0x206376||_0x4b9390||!_0x2ad16e||_0x312e1b(_0x2ad16e);};}class q extends _0x1c3a28{static get['requires'](){return[_0x339f2f];}['init'](){const _0x4427b7=this['editor'],_0x368fa6=_0x4427b7['plugins']['get']('TrackChangesEditing');_0x368fa6['enableCommand']('delete');const _0x1c6ced=_0x4427b7['commands']['get']('deleteForward');_0x368fa6['enableCommand']('deleteForward',(_0x31202e,_0xcb77d1={})=>{const _0x40dda6=_0x4427b7['model']['createSelection'](_0x4427b7['model']['document']['selection']);_0x40dda6['isCollapsed']&&_0x4427b7['model']['modifySelection'](_0x40dda6,{'direction':'forward','unit':_0xcb77d1['unit']});const _0x5d9fa6=_0x40dda6['getFirstRange'](),_0x592062=_0x5b9e67['fromRange'](_0x5d9fa6);let _0x432f42;_0x31202e(_0xcb77d1),_0x432f42='$graveyard'==_0x592062['root']['rootName']?_0x4427b7['model']['createRange'](_0x5d9fa6['start']):_0x4427b7['model']['createRange'](_0x592062['start'],_0x592062['end']),_0x592062['detach'](),_0x4427b7['model']['enqueueChange'](_0x1c6ced['buffer']['batch'],_0x430af4=>{_0x1c6ced['buffer']['lock'](),_0x430af4['setSelection'](_0x430af4['createRange'](_0x432f42['end'])),_0x1c6ced['buffer']['unlock']();});}),_0x4427b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4427b7,'merge'),{'priority':'high'}),_0x4427b7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x42a63e,_0x19308d,_0x493e9c)=>{_0x493e9c['options']['showSuggestionHighlights']&&_e(_0x4427b7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x42a63e,_0x19308d,_0x493e9c);},{'priority':'high'}),_0x4427b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x591416,_0x14b544,_0x73c628)=>{const _0x7e6fc2=_0x73c628['mapper']['markerNameToElements'](_0x14b544['markerName']);if(_0x7e6fc2){for(const _0x1b6908 of _0x7e6fc2)_0x1b6908['is']('uiElement')&&(_0x73c628['mapper']['unbindElementFromMarkerName'](_0x1b6908,_0x14b544['markerName']),_0x73c628['writer']['remove'](_0x1b6908));}},{'priority':'high'});}}class z extends _0x1c3a28{['afterInit'](){const _0x580835=this['editor'];if(!_0x580835['plugins']['has']('ListEditing'))return;const _0x40f897=_0x580835['locale'],_0x53ecb7=_0x580835['plugins']['get']('TrackChangesEditing'),_0x3f7a0e=_0x580835['plugins']['has']('TodoListEditing'),_0x24ea44=!!_0x580835['config']['get']('list.multiBlock');function _0xac1e6(_0x5e16db){return{'type':'format','content':''+o(_0x40f897,'*Set\x20format:*\x20%0',_0x5e16db)};}function _0x12ff0c(_0x426140){return{'type':'format','content':''+o(_0x40f897,'*Remove\x20format:*\x20%0',_0x426140)};}_0x53ecb7['enableDefaultAttributesIntegration']('numberedList'),_0x53ecb7['enableDefaultAttributesIntegration']('bulletedList'),_0x53ecb7['enableDefaultAttributesIntegration']('customNumberedList'),_0x53ecb7['enableDefaultAttributesIntegration']('customBulletedList'),_0x53ecb7['enableDefaultAttributesIntegration']('indentList'),_0x53ecb7['enableDefaultAttributesIntegration']('outdentList'),_0x53ecb7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x53ecb7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x53ecb7['registerBlockAttribute']('listItemId'),_0x53ecb7['registerBlockAttribute']('listType'),_0x53ecb7['registerBlockAttribute']('listIndent'),_0x24ea44&&(_0x53ecb7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x53ecb7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3f7a0e&&(_0x53ecb7['enableDefaultAttributesIntegration']('todoList'),_0x53ecb7['enableDefaultAttributesIntegration']('checkTodoList'),_0x53ecb7['registerBlockAttribute']('todoListChecked'),_0x53ecb7['descriptionFactory']['registerDescriptionCallback'](_0x2fce26=>{const {data:_0x5e70ba}=_0x2fce26;if(_0x5e70ba&&'todoListChecked'==_0x5e70ba['key'])return{'type':'format','content':_0x5e70ba['newValue']?o(_0x40f897,'*Check\x20item*'):o(_0x40f897,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x33ec65=>{if(_0x33ec65['batch']['isUndo'])return!0x1;let _0x408136=!0x1;const _0x663a50=_0x53ecb7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x355316=>'todoListChecked'===_0x53ecb7['_getAttributeKey'](_0x355316));for(const _0x1e3697 of _0x663a50){'todo'!=_0x1e3697['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x53ecb7['_findSuggestions'](_0x1e3697['getFirstRange'](),'attribute')['find'](_0xcfccee=>'listType'===_0x53ecb7['_getAttributeKey'](_0xcfccee['suggestion']))||(_0x33ec65['removeMarker'](_0x1e3697['getFirstMarker']()),_0x408136=!0x0));}return _0x408136;})),_0x53ecb7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x40f897,'FORMAT_INDENT'));const _0x4d17a7={'type':'format','content':''};_0x53ecb7['descriptionFactory']['registerDescriptionCallback'](_0x10852f=>{const {data:_0x141bff}=_0x10852f;if(!_0x141bff||'listType'!=_0x141bff['key'])return;let _0x2f9b8c=_0x10852f['head'];for(;_0x2f9b8c;){if(_0x2f9b8c['data']&&(('listStyle'==_0x2f9b8c['data']['key']||'listMarkerStyle'==_0x2f9b8c['data']['key'])&&(_0x2f9b8c['data']['newValue']&&'default'!=_0x2f9b8c['data']['newValue']||'default'!=_0x2f9b8c['data']['oldValue']&&!_0x141bff['newValue'])||!_0x24ea44&&_0x2f9b8c['data']['key']==m))return _0x4d17a7;_0x2f9b8c=_0x2f9b8c['next'];}if(null==_0x141bff['newValue'])switch(_0x141bff['oldValue']){case'bulleted':return _0x12ff0c(o(_0x40f897,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12ff0c(o(_0x40f897,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12ff0c(o(_0x40f897,'ELEMENT_TODO_LIST'));}switch(_0x141bff['newValue']){case'bulleted':return _0xac1e6(o(_0x40f897,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xac1e6(o(_0x40f897,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xac1e6(o(_0x40f897,'ELEMENT_TODO_LIST'));}}),_0x53ecb7['descriptionFactory']['registerDescriptionCallback'](_0x3b3011=>{const {data:_0x4eee9d}=_0x3b3011;if(_0x4eee9d&&'listIndent'==_0x4eee9d['key'])return null==_0x4eee9d['newValue']||null==_0x4eee9d['oldValue']&&0x0==_0x4eee9d['newValue']?_0x4d17a7:void 0x0;}),_0x53ecb7['descriptionFactory']['registerDescriptionCallback'](_0x5bad62=>{if('attribute'!=_0x5bad62['type'])return;const {data:_0x208f27}=_0x5bad62;if(!_0x208f27||'listItemId'!=_0x208f27['key'])return;const _0x56b97e=le(_0x5bad62);return'newValue'==_0x56b97e?{'type':'format','content':o(_0x40f897,'*Merge:*\x20list\x20item')}:'oldValue'==_0x56b97e?{'type':'format','content':o(_0x40f897,'*Split:*\x20list\x20item')}:_0x4d17a7;}),_0x580835['model']['document']['registerPostFixer'](_0x51568b=>this['listItemIdFixer'](_0x51568b)),_0x580835['model']['document']['registerPostFixer'](_0x204c49=>this['noTrackChangesFixer'](_0x204c49)),_0x580835['model']['document']['registerPostFixer'](_0xf1f40a=>this['assureChains'](_0xf1f40a)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x39942e){if(_0x39942e['batch']['isUndo']||!_0x39942e['batch']['isLocal'])return!0x1;let _0x29e247=!0x1;const _0x5056aa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d9a5b=>_0x4d9a5b['data']&&'listItemId'==_0x4d9a5b['data']['key'])['filter'](_0x1b68f4=>_0x1b68f4['data']['newValue']&&_0x1b68f4['data']['oldValue']);for(const _0x2d28aa of _0x5056aa)le(_0x2d28aa)||(_0x39942e['removeMarker'](_0x2d28aa['getFirstMarker']()),_0x29e247=!0x0);return _0x29e247;}['noTrackChangesFixer'](_0x29d24b){if(_0x29d24b['batch']['isUndo']||!_0x29d24b['batch']['isLocal'])return!0x1;const _0x1b0aaa=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1b0aaa['trackChangesCommand']['value'])return!0x1;let _0x1d18f2=!0x1;const _0x5b8d1d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x348c43=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x495a94=>'attribute'==_0x495a94['type'])['filter'](_0x5668a3=>_0x5b8d1d['includes'](_0x5668a3['attributeKey']));if(0x0==_0x348c43['length'])return _0x1d18f2;for(const _0x38bda7 of _0x348c43){const _0x12f2e0=_0x1b0aaa['_findSuggestions'](_0x38bda7['range'],'attribute')['filter'](_0x44ffa0=>!_0x44ffa0['meta']['isNextTo'])['map'](_0x5c5c5c=>_0x5c5c5c['suggestion'])['filter'](_0x4451f6=>{const _0x4f923d=_0x1b0aaa['_getAttributeKey'](_0x4451f6);return _0x5b8d1d['includes'](_0x4f923d);});if(_0x12f2e0['length']){for(const _0x5a7500 of _0x12f2e0)_0x29d24b['removeMarker'](_0x5a7500['getFirstMarker']());_0x1d18f2=!0x0;}}return _0x1d18f2;}['assureChains'](_0x3dca63){if(_0x3dca63['batch']['isUndo']||!_0x3dca63['batch']['isLocal'])return!0x1;const _0x592d6a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x355fb6=!0x1;const _0xe4e3e3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5a5802 of _0x592d6a['getSuggestions']({'skipNotAttached':!0x0})){const _0x5613e2=_0x592d6a['_findSuggestions'](_0x5a5802['getFirstRange'](),'attribute')['map'](_0x59012f=>_0x59012f['suggestion'])['filter'](_0x4efae4=>_0x4efae4['data']&&_0xe4e3e3['includes'](_0x4efae4['data']['key']));if(!_0x5613e2['length'])continue;const _0x23b1a4=_0x5613e2[0x0]['head']['attributes']['groupId'];if(!_0x5613e2['every'](_0x216187=>_0x216187['attributes']['groupId']===_0x23b1a4)){for(const _0x462fa4 of _0x5613e2)_0x47e0e8(_0x462fa4,_0x23b1a4)&&(_0x355fb6=!0x0);}}return _0x355fb6;function _0x3709e6(_0x1b54e8,_0x5d6dc9){for(const _0x31fd64 of _0x592d6a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55953b=>'attribute'==_0x55953b['type']&&_0x55953b['attributes']['groupId']==_0x1b54e8))_0x31fd64['setAttribute']('groupId',_0x5d6dc9);}function _0x47e0e8(_0x26ea6b,_0x55331d){let _0xed6d66=_0x26ea6b['head'],_0x59ad36=!0x1;for(;_0xed6d66;)_0xed6d66['attributes']['groupId']!=_0x55331d&&(_0x3709e6(_0xed6d66['attributes']['groupId'],_0x55331d),_0xed6d66['setAttribute']('groupId',_0x55331d),_0x59ad36=!0x0),_0xed6d66=_0xed6d66['next'];return _0x59ad36;}}['_supportLegacySuggestions'](){const _0x3b5e57=this['editor'],_0x7781f0=_0x3b5e57['locale'],_0x182a0f=_0x3b5e57['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x182a0f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa1fee3,_0x4e4173){const _0x545b32=[];for(let _0x1e580b of _0xa1fee3)_0x1e580b['start']['nodeAfter']===_0x1e580b['end']['parent']&&(_0x1e580b=_0x3b5e57['model']['createRange'](_0x3b5e57['model']['createPositionAt'](_0x1e580b['start']['nodeAfter'],0x0))),_0x545b32['push'](_0x1e580b);_0x3b5e57['model']['change'](_0x46f1a2=>{const _0x2fe159=_0x3b5e57['model']['document']['selection'],_0x2b996d=Array['from'](_0x2fe159['getRanges']())['map'](_0x23f4c3=>_0x5b9e67['fromRange'](_0x23f4c3));_0x46f1a2['setSelection'](_0x545b32),_0x3b5e57['commands']['get'](_0x4e4173['commandName'])['refresh'](),_0x4e4173['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3b5e57['execute'](_0x4e4173['commandName'],..._0x4e4173['commandParams']),_0x46f1a2['setSelection'](_0x2b996d);for(const _0x31181b of _0x2b996d)_0x31181b['detach']();});}),_0x182a0f['descriptionFactory']['registerElementLabel'](function(_0x68abfb){const _0x5136a6=!_0x3b5e57['model']['schema']['isObject'](_0x68abfb),_0x519be6=_0x68abfb['previousSibling'],_0x802612=_0x68abfb['nextSibling'],_0x3b0e=_0x68abfb['getAttribute']('listItemId'),_0x447f9c=!_0x519be6||_0x519be6['getAttribute']('listItemId')!==_0x3b0e,_0x5b7fa0=!_0x802612||_0x802612['getAttribute']('listItemId')!==_0x3b0e;return _0x5136a6&&Boolean(_0x3b0e)&&_0x447f9c&&_0x5b7fa0;},_0x2e4166=>o(_0x7781f0,'ELEMENT_LIST_ITEM',_0x2e4166));}['_registerLegacyDescription'](){const _0x2cb1d5=this['editor'],_0x19bf12=_0x2cb1d5['locale'];function _0x280785(_0x4d8cd1){const _0x4ebdf2=_0x2cb1d5['commands']['get']('bulletedList')['value'],_0x33640e=_0x2cb1d5['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d8cd1?_0x4ebdf2:_0x33640e;}_0x2cb1d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4c47f7){if('formatBlock'!=_0x4c47f7['type'])return;const {data:_0x55777f}=_0x4c47f7;if(!_0x55777f)return;let _0x1966dc,_0x52fe2,_0x2fdd72,_0x2291bd;switch(_0x55777f['commandName']){case'bulletedList':_0x2fdd72=_0x55777f['commandParams'][0x0]['forceValue'],_0x2291bd=_0x280785(_0x55777f['commandName']),_0x1966dc=_0x2fdd72?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2291bd&&_0x2cb1d5['config']['get']('list.multiBlock')||(_0x1966dc='*Change\x20to:*\x20%0'),_0x52fe2={'type':'format','content':o(_0x19bf12,_0x1966dc,o(_0x19bf12,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2fdd72=_0x55777f['commandParams'][0x0]['forceValue'],_0x2291bd=_0x280785(_0x55777f['commandName']),_0x1966dc=_0x2fdd72?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2291bd&&_0x2cb1d5['config']['get']('list.multiBlock')||(_0x1966dc='*Change\x20to:*\x20%0'),_0x52fe2={'type':'format','content':o(_0x19bf12,_0x1966dc,o(_0x19bf12,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1966dc='*Indent:*\x20%0',_0x52fe2={'type':'format','content':o(_0x19bf12,_0x1966dc,o(_0x19bf12,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1966dc=function(_0x4540b2){const _0xda2808=_0x4540b2['getFirstRange']();let _0x2ac75b=_0xda2808['start']['nodeAfter'];for(;_0x2ac75b&&_0xda2808['containsItem'](_0x2ac75b);){if(_0x2ac75b['getAttribute']('listIndent')>0x0)return!0x1;_0x2ac75b=_0x2ac75b['nextSibling'];}return!0x0;}(_0x4c47f7)?o(_0x19bf12,'*Format:*\x20remove\x20from\x20%0',o(_0x19bf12,function(_0x16a744){return'ELEMENT_'+_0x16a744['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4c47f7))):o(_0x19bf12,'*Outdent:*\x20%0',o(_0x19bf12,'ELEMENT_LIST_ITEM')),_0x52fe2={'type':'format','content':_0x1966dc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x55777f['multipleBlocks']&&(_0x1966dc='*Merge:*\x20%0',_0x52fe2={'type':'deletion','content':o(_0x19bf12,_0x1966dc,o(_0x19bf12,'ELEMENT_LIST_ITEM'))});}return _0x52fe2;});}}function le(_0x5687e4){let _0x1a35db=_0x5687e4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1a35db;){const _0x330745=_0x1a35db['getAttribute']('listItemId');if(!_0x330745)return!0x1;if(_0x330745==_0x5687e4['data']['newValue'])return'newValue';if(_0x330745==_0x5687e4['data']['oldValue'])return'oldValue';_0x1a35db=_0x1a35db['previousSibling'];}return!0x1;}class ue extends _0x1c3a28{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4d4431=this['editor']['config']['get']('list.properties'),_0x5f4cb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d4431['styles']&&(_0x5f4cb9['enableDefaultAttributesIntegration']('listStyle'),_0x5f4cb9['registerBlockAttribute']('listStyle')),_0x4d4431['reversed']&&(_0x5f4cb9['enableDefaultAttributesIntegration']('listReversed'),_0x5f4cb9['registerBlockAttribute']('listReversed')),_0x4d4431['startIndex']&&(_0x5f4cb9['enableDefaultAttributesIntegration']('listStart'),_0x5f4cb9['registerBlockAttribute']('listStart'));const _0x10be3a={'type':'format','content':''};_0x5f4cb9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d164f=this['editor']['locale'];_0x5f4cb9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d164f,'FORMAT_LIST_REVERSED')),_0x5f4cb9['descriptionFactory']['registerDescriptionCallback'](_0x4902cc=>{const {data:_0x52492d}=_0x4902cc;if(_0x52492d&&'listReversed'==_0x52492d['key'])return null==_0x52492d['newValue']||0x0==_0x52492d['newValue']&&null==_0x52492d['oldValue']?_0x10be3a:void 0x0;}),_0x5f4cb9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d164f,'FORMAT_LIST_START')),_0x5f4cb9['descriptionFactory']['registerDescriptionCallback'](_0x23be91=>{const {data:_0x2cee74}=_0x23be91;if(_0x2cee74&&'listStart'==_0x2cee74['key'])return null==_0x2cee74['newValue']||0x1==_0x2cee74['newValue']&&null==_0x2cee74['oldValue']?_0x10be3a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x30aa7b=>{if(_0x30aa7b['batch']['isUndo'])return!0x1;let _0x2dcaae=!0x1;const _0x3e2165=_0x5f4cb9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a127f=>{const _0x4f1d80=_0x5f4cb9['_getAttributeKey'](_0x3a127f);return'listStart'==_0x4f1d80||'listReversed'==_0x4f1d80;});for(const _0x307400 of _0x3e2165){const _0x1efff5=_0x307400['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1efff5||'customNumbered'==_0x1efff5)continue;_0x5f4cb9['_findSuggestions'](_0x307400['getFirstRange'](),'attribute')['find'](_0x1af937=>'listType'==_0x5f4cb9['_getAttributeKey'](_0x1af937['suggestion']))||(_0x30aa7b['removeMarker'](_0x307400['getFirstMarker']()),_0x2dcaae=!0x0);}return _0x2dcaae;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x273c7e){const _0x449398=this['editor']['locale'],{data:_0x42d2f1}=_0x273c7e,_0x151afa={'type':'format','content':''};if(!_0x42d2f1||'listStyle'!=_0x42d2f1['key'])return;if(!_0x42d2f1['oldValue'])return'default'==_0x42d2f1['newValue']?_0x151afa:{'type':'format','content':''+o(_0x449398,'*Set\x20format:*\x20%0',o(_0x449398,this['_getTranslationKeyForListStyle'](_0x42d2f1['newValue'])))};if(!_0x42d2f1['newValue']){if('default'==_0x42d2f1['oldValue'])return _0x151afa;let _0x44e2d5=_0x273c7e['head'];for(;_0x44e2d5;){if(_0x44e2d5['data']&&'listType'==_0x44e2d5['data']['key']&&_0x44e2d5['data']['newValue'])return _0x151afa;_0x44e2d5=_0x44e2d5['next'];}return{'type':'format','content':''+o(_0x449398,'*Remove\x20format:*\x20%0',o(_0x449398,this['_getTranslationKeyForListStyle'](_0x42d2f1['oldValue'])))};}if('default'!=_0x42d2f1['newValue'])return{'type':'format','content':''+o(_0x449398,'*Set\x20format:*\x20%0',o(_0x449398,this['_getTranslationKeyForListStyle'](_0x42d2f1['newValue'])))};let _0x365443=_0x273c7e['head'];for(;_0x365443;){if(_0x365443['data']&&'listType'==_0x365443['data']['key']&&_0x365443['data']['newValue']&&_0x365443['data']['oldValue'])return _0x151afa;_0x365443=_0x365443['next'];}return{'type':'format','content':o(_0x449398,'*Set\x20format:*\x20%0',o(_0x449398,'ELEMENT_'+_0x273c7e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x331ad3=this['editor'],_0x26b898=_0x331ad3['locale'];_0x331ad3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x446763=>{if('formatBlock'!=_0x446763['type'])return;const {data:_0x553379}=_0x446763;if(!_0x553379)return;let _0x365175,_0x1b5315;switch(_0x553379['commandName']){case'listStyle':_0x365175='*Change\x20to:*\x20%0',_0x1b5315={'type':'format','content':o(_0x26b898,_0x365175,o(_0x26b898,this['_getTranslationKeyForListStyle'](_0x553379['commandParams'][0x0]['type'])))};break;case'listReversed':_0x365175=_0x553379['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b5315={'type':'format','content':o(_0x26b898,_0x365175)};break;case'listStart':_0x365175='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b5315={'type':'format','content':o(_0x26b898,_0x365175,_0x553379['commandParams'][0x0]['startIndex'])};}return _0x1b5315;});}['_getTranslationKeyForListStyle'](_0x3b86d7){return'ELEMENT_'+function(_0x30bc10){if(pe['includes'](_0x30bc10))return'bulleted';if(ye['includes'](_0x30bc10))return'numbered';return null;}(_0x3b86d7)['toUpperCase']()+'_LIST_'+_0x3b86d7['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1c3a28{static get['requires'](){return[_0x203d9b];}['init'](){const _0x3a8a90=this['editor'],_0x139494=_0x3a8a90['plugins']['get']('TrackChangesEditing'),_0x20ba60=_0x3a8a90['commands']['get']('enter');_0x139494['enableCommand']('enter',()=>{_0x3a8a90['model']['change'](_0x186a5b=>{const _0xe86663=_0x3a8a90['model']['document']['selection'],_0x23016d=_0xe86663['getFirstPosition'](),_0x15a766=_0x5b9e67['fromRange'](_0xe86663['getFirstRange']());if(_0x20ba60['enterBlock'](_0x186a5b)){const _0xa90ebd=_0x3a8a90['model']['createPositionAt'](_0x23016d['parent']['nextSibling'],0x0),_0x42405a=_0x186a5b['createRange'](_0x23016d,_0xa90ebd);_0x139494['markInsertion'](_0x42405a);}else _0x186a5b['setSelection'](_0x186a5b['createRange'](_0x15a766['end']));_0x15a766['detach'](),_0x20ba60['fire']('afterExecute',{'writer':_0x186a5b});});}),_0x3a8a90['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3a8a90,'split'),{'priority':'high'}),_0x3a8a90['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xbd79fc,_0x58950c,_0x4c138d)=>{const _0x519692=_0x4c138d['mapper']['markerNameToElements'](_0x58950c['markerName']);if(_0x519692){for(const _0x2ec4e8 of _0x519692)_0x2ec4e8['hasClass']('ck-suggestion-marker-split')&&(_0x4c138d['mapper']['unbindElementFromMarkerName'](_0x2ec4e8,_0x58950c['markerName']),_0x4c138d['writer']['remove'](_0x2ec4e8));}},{'priority':'high'}),_0x3a8a90['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54021c,_0xef7397,_0x1f451b)=>{_0x1f451b['options']['showSuggestionHighlights']&&_e(_0x3a8a90,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54021c,_0xef7397,_0x1f451b);},{'priority':'high'});}}class J extends _0x1c3a28{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x57bf92=this['editor']['plugins']['get']('TrackChangesEditing');_0x57bf92['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x57bf92['enableCommand']('findNext'),_0x57bf92['enableCommand']('findPrevious'),_0x57bf92['enableCommand']('replace'),_0x57bf92['enableCommand']('replaceAll');}['handleFindCommand'](_0xc3cad9,_0x2cec1a,_0x3803ad={}){const _0x14f2e6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xc3cad9(_0x33eda5=>{let _0x498628=('string'==typeof _0x2cec1a?_0x14f2e6['findByTextCallback'](_0x2cec1a,_0x3803ad):_0x2cec1a)(_0x33eda5);Array['isArray'](_0x498628)&&(_0x498628={'results':_0x498628,'searchText':'string'==typeof _0x2cec1a?_0x2cec1a:''});const _0x2c93d2=_0x498628['results']['filter'](_0x576250=>!0x1===this['_isInDeletionRange'](_0x576250,_0x33eda5['item']));return{..._0x498628,'results':_0x2c93d2};},_0x3803ad);}['_isInDeletionRange'](_0x4102c1,_0x178409){const _0x3bc404=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x178409,_0x4102c1['start']),this['editor']['model']['createPositionAt'](_0x178409,_0x4102c1['end']));for(const _0xe3ab3d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3bc404['getIntersection'](_0xe3ab3d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1c3a28{['afterInit'](){const _0x525bd5=this['editor']['locale'],_0x39ad80=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x853674,commandName:_0xe45b41}of ro)this['editor']['plugins']['has'](_0x853674)&&(_0x39ad80['enableDefaultAttributesIntegration'](_0xe45b41),_0x39ad80['registerInlineAttribute'](_0xe45b41));_0x39ad80['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x525bd5,'FORMAT_FONT_SIZE')),_0x39ad80['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x525bd5,'FORMAT_FONT_FAMILY')),_0x39ad80['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x525bd5,'FORMAT_FONT_COLOR')),_0x39ad80['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x525bd5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29786=this['editor'],_0x2252b1=_0x29786['locale'];_0x29786['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xadb8aa=>{const _0x417a7b=_0x2252b1['t'];if('formatInline'!=_0xadb8aa['type'])return;const {data:_0x5402a0}=_0xadb8aa;if(null!=_0x5402a0){if('fontSize'==_0x5402a0['commandName']){const _0x3a9829=_0x5402a0['commandParams'][0x0]['value'];if(_0x3a9829){const _0x1c1a35=_0x417a7b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xeefb80=>_0xeefb80['model']==_0x3a9829)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2252b1,'*Set\x20font\x20size:*\x20%0',_0x1c1a35)};}return{'type':'format','content':o(_0x2252b1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5402a0['commandName']){const _0x827bd2=_0x5402a0['commandParams'][0x0]['value'];return _0x827bd2?{'type':'format','content':o(_0x2252b1,'*Set\x20font\x20family:*\x20%0',_0x827bd2)}:{'type':'format','content':o(_0x2252b1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5402a0['commandName']){const _0x475d73=_0x5402a0['commandParams'][0x0]['value'];if(_0x475d73){const _0x41aae6=_0xa8c042(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3fc943=>_0x3fc943['model']==_0x475d73);let _0x2571ee=_0x475d73,_0x35637f='';return _0x41aae6&&(_0x2571ee=_0x41aae6['label'],_0x35637f=_0x417a7b(_0x2571ee)['toLowerCase']()),{'type':'format','content':o(_0x2252b1,'*Set\x20font\x20color:*\x20%0',_0x35637f)['trim'](),'color':{'value':_0x475d73,'title':_0x35637f||_0x2571ee}};}return{'type':'format','content':o(_0x2252b1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5402a0['commandName']){const _0x509077=_0x5402a0['commandParams'][0x0]['value'];if(_0x509077){const _0x59c592=_0xa8c042(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x37649b=>_0x37649b['model']==_0x509077);let _0x34161d=_0x509077,_0x22fe68='';return _0x59c592&&(_0x34161d=_0x59c592['label'],_0x22fe68=_0x417a7b(_0x34161d)['toLowerCase']()),{'type':'format','content':o(_0x2252b1,'*Set\x20font\x20background\x20color:*\x20%0',_0x22fe68)['trim'](),'color':{'value':_0x509077,'title':_0x22fe68||_0x34161d}};}return{'type':'format','content':o(_0x2252b1,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1c3a28{['afterInit'](){const _0x4ee5dd=this['editor'],_0x207b79=_0x4ee5dd['plugins']['get']('TrackChangesEditing'),_0x50f3bc=_0x4ee5dd['commands']['get']('copyFormat'),_0x49499e=_0x4ee5dd['commands']['get']('pasteFormat');_0x50f3bc&&_0x49499e&&(_0x207b79['enableDefaultAttributesIntegration']('pasteFormat'),_0x207b79['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x527ce5=this['editor'],_0x5e7226=_0x527ce5['locale'];_0x527ce5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37815d=>{if('formatBlock'!=_0x37815d['type']&&'formatInline'!=_0x37815d['type'])return;const {data:_0x6ff81f}=_0x37815d;if(_0x6ff81f&&'pasteFormat'===_0x6ff81f['commandName']){const _0x39b903=[],_0xfb9cca=_0x6ff81f['commandParams'][0x0];for(const [_0x58df0c,_0x248229]of Object['entries'](_0xfb9cca))_0x39b903['push'](so(_0x527ce5,_0x58df0c,_0x248229));return _0x39b903['length']?{'type':'format','content':o(_0x5e7226,'*Set\x20format\x20to:*\x20%0',_0x39b903['join'](',\x20'))}:{'type':'format','content':o(_0x5e7226,'*Remove\x20all\x20formatting*')};}});}}function so(_0xfe1247,_0x10b243,_0x26b6d5){const _0x2c54ce=_0xfe1247['locale']['t'],_0x1de63a=_0x10b243['split'](/(?=[A-Z])/)['join']('\x20'),_0x1e4025=_0x2c54ce(_0x1de63a['charAt'](0x0)['toUpperCase']()+_0x1de63a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x26b6d5)return _0x1e4025;if('fontColor'===_0x10b243||'fontBackgroundColor'===_0x10b243){const _0x52a326=_0xa8c042(_0xfe1247['config']['get']('fontColor.colors'))['find'](_0xe2dfb3=>_0xe2dfb3['model']==_0x26b6d5);return _0x1e4025+'\x20('+(_0x52a326?_0x2c54ce(_0x52a326['label'])['toLowerCase']():_0x26b6d5)+')';}if('fontSize'===_0x10b243&&isNaN(parseFloat(_0x26b6d5))){const _0x4c85d2=_0xfe1247['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xfe1247['config']['get']('fontSize.options'))['find'](_0x321602=>_0x321602['model']==_0x26b6d5);return _0x1e4025+'\x20('+(_0x4c85d2?_0x2c54ce(_0x4c85d2['title'])['toLowerCase']():_0x26b6d5)+')';}return _0x1e4025+'\x20('+_0x26b6d5+')';}class Y extends _0x1c3a28{['_headingOptions'];['afterInit'](){const _0x401f5f=this['editor'];if(!_0x401f5f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x401f5f['config']['get']('heading.options');const _0x383d8f=_0x401f5f['locale'],_0x54287d=_0x401f5f['plugins']['get']('TrackChangesEditing');_0x54287d['enableDefaultAttributesIntegration']('heading');for(const _0x936931 of this['_headingOptions'])'paragraph'!=_0x936931['model']&&_0x54287d['descriptionFactory']['registerElementLabel'](_0x936931['model'],_0x518292=>{const _0x3df199=this['_getHeadingLevel'](_0x936931['model']);return null!==_0x3df199?_0x27427c(_0x518292,_0x3df199):_0x1c17a2(_0x518292,_0x936931['title']);});function _0x27427c(_0x45d7a5,_0x529416){return o(_0x383d8f,'ELEMENT_HEADING',[_0x45d7a5,_0x529416]);}function _0x1c17a2(_0x21f630,_0x22bda4){return o(_0x383d8f,'ELEMENT_HEADING_CUSTOM',[_0x21f630,_0x22bda4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x361f79=this['editor'],_0x504864=_0x361f79['locale'];function _0x17c2bd(_0x2d25b2,_0x414133){return o(_0x504864,'ELEMENT_HEADING_CUSTOM',[_0x2d25b2,_0x414133]);}_0x361f79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e8d46=>{if('formatBlock'!=_0x4e8d46['type'])return;const {data:_0xae542c}=_0x4e8d46;if(_0xae542c&&'heading'==_0xae542c['commandName']){const _0x54268e=_0xae542c['commandParams'][0x0]['value'],_0x17dff8=this['_getHeadingLevel'](_0x54268e);if(null!==_0x17dff8)return{'type':'format','content':o(_0x504864,'*Change\x20to:*\x20%0',(_0x384337=0x1,_0x114081=_0x17dff8,o(_0x504864,'ELEMENT_HEADING',[_0x384337,_0x114081])))};const _0x1058cb=this['_headingOptions']['find'](_0x212837=>_0x212837['model']===_0x54268e)['title'];return{'type':'format','content':o(_0x504864,'*Change\x20to:*\x20%0',_0x17c2bd(0x1,_0x1058cb))};}var _0x384337,_0x114081;});}['_getHeadingLevel'](_0x13a4c0){const _0x5eb751=_0x13a4c0['match'](/^heading(\d+)/);if(_0x5eb751)return _0x5eb751[0x1];const _0x4a6599=this['_headingOptions']?.['find'](_0x6be339=>_0x6be339['model']==_0x13a4c0);if(_0x4a6599&&_0x4a6599['view']){const _0x292e71=_0x4a6599['view'],_0x292d33=(_0x292e71['name']??_0x292e71)['match'](/^h(\d+)/);if(_0x292d33)return _0x292d33[0x1];}return null;}}class Z extends _0x1c3a28{['afterInit'](){const _0x154646=this['editor'];if(!_0x154646['plugins']['has']('HighlightEditing'))return;const _0x11d29f=_0x154646['plugins']['get']('TrackChangesEditing'),_0x2b6bce=_0x154646['locale'];_0x11d29f['enableDefaultAttributesIntegration']('highlight'),_0x11d29f['registerInlineAttribute']('highlight'),_0x11d29f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2b6bce,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1112df=this['editor'],_0x23ab7b=_0x1112df['locale'];_0x1112df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe18d0e=>{if('formatInline'!=_0xe18d0e['type'])return;const {data:_0xc1781d}=_0xe18d0e;if(_0xc1781d&&'highlight'==_0xc1781d['commandName']){const _0x1cbff3=_0x23ab7b['t'],_0x5db755=_0xc1781d['commandParams'][0x0]['value'];if(_0x5db755){const _0x5aeee4=_0x1112df['config']['get']('highlight.options')['find'](_0x3faa34=>_0x3faa34['model']==_0x5db755),_0x49f8b0=_0x1cbff3(_0x5aeee4['title'])['toLowerCase']();return{'type':'format','content':o(_0x23ab7b,'*Set\x20highlight:*\x20%0',_0x49f8b0),'color':{'value':_0x5aeee4['color'],'title':_0x5aeee4['title']}};}return{'type':'format','content':o(_0x23ab7b,'*Remove\x20highlight*',o(_0x23ab7b,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1c3a28{['afterInit'](){const _0xd65bea=this['editor'];if(!_0xd65bea['plugins']['has']('HorizontalLineEditing'))return;_0xd65bea['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5e7662=_0xd65bea['plugins']['get']('TrackChangesEditing'),_0x51a626=_0xd65bea['locale'];_0x5e7662['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3b3789=>o(_0x51a626,'ELEMENT_HORIZONTAL_LINE',_0x3b3789)),_0xd65bea['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x153018,{writer:_0x36cd40,options:_0x2bc4c5})=>{if(!_0x2bc4c5['showSuggestionHighlights'])return null;const _0x543d55=_0x36cd40['createContainerElement']('div'),_0x7eece=_0x36cd40['createEmptyElement']('hr');return _0x36cd40['addClass']('ck-horizontal-line',_0x543d55),_0x36cd40['insert'](_0x36cd40['createPositionAt'](_0x543d55,0x0),_0x7eece),_0x543d55;},'converterPriority':'high'});}}class et extends _0x1c3a28{['afterInit'](){const _0x2f8ebc=this['editor'];if(!_0x2f8ebc['plugins']['has']('HtmlEmbed'))return;const _0x476d6f=_0x2f8ebc['plugins']['get']('TrackChangesEditing'),_0x60ee61=_0x2f8ebc['locale'];_0x476d6f['descriptionFactory']['registerElementLabel']('rawHtml',_0x2303b3=>o(_0x60ee61,'ELEMENT_HTML_EMBED',_0x2303b3)),_0x476d6f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x476d6f['registerBlockAttribute']('value'),_0x476d6f['descriptionFactory']['registerDescriptionCallback'](_0x19ea78=>{if('attribute'!=_0x19ea78['type'])return;const {data:_0x3502ec}=_0x19ea78;if(_0x3502ec&&'value'==_0x3502ec['key']&&_0x19ea78['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2776c4=o(_0x60ee61,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x60ee61,'*Change\x20%0\x20content*',_0x2776c4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2cc0=this['editor'],_0x219a9f=_0x2c2cc0['locale'];_0x2c2cc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4400df=>{if('formatBlock'!=_0x4400df['type'])return;const {data:_0x3454de}=_0x4400df;if(_0x3454de&&'htmlEmbed'==_0x3454de['commandName']){const _0xfe90cf=o(_0x219a9f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x219a9f,'*Change\x20%0\x20content*',_0xfe90cf)};}});}}class it extends _0x1c3a28{['afterInit'](){const _0x57b2f4=this['editor'];if(!_0x57b2f4['plugins']['has']('ImageEditing'))return;const _0x1d3950=_0x57b2f4['plugins']['get']('TrackChangesEditing'),_0x25dc7b=_0x57b2f4['plugins']['get']('ImageUtils'),_0x10e67f=_0x57b2f4['locale'];_0x1d3950['enableCommand']('insertImage'),_0x1d3950['descriptionFactory']['registerElementLabel']('imageBlock',_0x788c0e=>o(_0x10e67f,'ELEMENT_IMAGE',_0x788c0e)),_0x1d3950['descriptionFactory']['registerElementLabel']('imageInline',_0xff790e=>o(_0x10e67f,'ELEMENT_INLINE_IMAGE',_0xff790e)),_0x1d3950['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x10e67f,'ELEMENT_CAPTION')),_0x57b2f4['plugins']['has']('ImageUploadEditing')&&_0x1d3950['enableCommand']('uploadImage'),_0x57b2f4['plugins']['has']('ImageBlockEditing')&&_0x57b2f4['plugins']['has']('ImageInlineEditing')&&(_0x1d3950['enableCommand']('imageTypeInline',(_0x4ea14e,_0x4e62a2)=>{const _0x3cd799=_0x25dc7b['getClosestSelectedImageElement'](_0x57b2f4['model']['document']['selection']);_0x57b2f4['model']['change'](()=>{_0x1d3950['markBlockFormat'](_0x3cd799,{'commandName':'imageTypeInline','commandParams':[_0x4e62a2]},[],'convertBlockImageToInline');});}),_0x1d3950['enableCommand']('imageTypeBlock',(_0x350383,_0x3802dc)=>{_0x57b2f4['model']['change'](_0x2f9bf6=>{let _0x182f31=_0x25dc7b['getClosestSelectedImageElement'](_0x57b2f4['model']['document']['selection']),_0x218d7e=_0x2f9bf6['createRangeOn'](_0x182f31);const _0x39dd02=_0x4c9fc9['fromPosition'](_0x218d7e['start'],'toPrevious'),_0x4da098=_0x4c9fc9['fromPosition'](_0x218d7e['end'],'toNext');_0x1d3950['forceDefaultExecution'](()=>_0x350383(_0x3802dc)),_0x182f31=_0x25dc7b['getClosestSelectedImageElement'](_0x57b2f4['model']['document']['selection']),_0x218d7e=_0x2f9bf6['createRangeOn'](_0x182f31);const _0x426de4=_0x2f9bf6['createRange'](_0x39dd02,_0x4da098);_0x39dd02['detach'](),_0x4da098['detach'](),_0x1d3950['markBlockFormat'](_0x182f31,{'commandName':'imageTypeInline','commandParams':[_0x3802dc]},[],'convertInlineImageToBlock'),_0x426de4['start']['isBefore'](_0x218d7e['start'])&&_0x1d3950['markInsertion'](_0x2f9bf6['createRange'](_0x426de4['start'],_0x218d7e['start']),'convertInlineImageToBlock'),_0x218d7e['end']['isBefore'](_0x426de4['end'])&&_0x1d3950['markInsertion'](_0x2f9bf6['createRange'](_0x218d7e['end'],_0x426de4['end']),'convertInlineImageToBlock');});}),_0x1d3950['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1d3950['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1d3950['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1d3950['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1d3950['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1d3950['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4c8b7d])=>{const _0x141893=_0x1d3950['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x21b3e2=_0x4c8b7d['start'],_0x501027=_0x4c8b7d['end'];const _0x3a2257=_0x57b2f4['model']['schema']['getNearestSelectionRange'](_0x21b3e2,'backward'),_0x72736d=_0x57b2f4['model']['schema']['getNearestSelectionRange'](_0x501027,'forward');_0x3a2257['isCollapsed']&&(_0x21b3e2=_0x3a2257['start']),_0x72736d['isCollapsed']&&(_0x501027=_0x72736d['end']),_0x141893([_0x57b2f4['model']['createRange'](_0x21b3e2,_0x501027)]);}),_0x1d3950['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb2021f),_0x1d3950['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb2021f)),_0x57b2f4['plugins']['has']('ImageCaptionEditing')&&(_0x1d3950['enableCommand']('toggleImageCaption',(_0x16ad88,_0x11500b)=>{const _0x375ec8=_0x57b2f4['plugins']['get']('ImageCaptionUtils');let _0x18a1fb=_0x25dc7b['getClosestSelectedImageElement'](_0x57b2f4['model']['document']['selection']),_0x53e65b=_0x375ec8['getCaptionFromImageModelElement'](_0x18a1fb);_0x57b2f4['model']['change'](()=>{if(_0x53e65b)return void _0x1d3950['markDeletion'](_0x57b2f4['model']['createRangeOn'](_0x53e65b));const _0x18753e=_0x25dc7b['isBlockImage'](_0x18a1fb);_0x16ad88(_0x11500b),_0x18a1fb=_0x25dc7b['getClosestSelectedImageElement'](_0x57b2f4['model']['document']['selection']),_0x53e65b=_0x375ec8['getCaptionFromImageModelElement'](_0x18a1fb),_0x1d3950['markInsertion'](_0x57b2f4['model']['createRangeOn'](_0x53e65b),_0x18753e?null:'imageCaption');});}),_0x1d3950['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb2021f));const _0x46a41c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x28a7b2(_0x1f992a,_0x3f33eb){const _0x3a3945=_0x46a41c['findIndex'](({type:_0x2c27ce,subType:_0x47daa5})=>_0x1f992a['type']==_0x2c27ce&&_0x1f992a['subType']==_0x47daa5),_0x34b242=_0x46a41c['findIndex'](({type:_0x5536b3,subType:_0x560e25})=>_0x3f33eb['type']==_0x5536b3&&_0x3f33eb['subType']==_0x560e25);if(_0x3a3945<0x0||_0x34b242<0x0)return!0x1;const _0x555187=_0x1f992a['getFirstRange'](),_0x251184=_0x3f33eb['getFirstRange']();if((0x0==_0x3a3945||0x1==_0x3a3945)&&0x2==_0x34b242&&_0x555187['isIntersecting'](_0x251184))return!0x0;if(0x2==_0x3a3945&&0x3==_0x34b242){const _0x2410a2=_0x1d3950['_findSuggestions'](_0x555187,'insertion')['filter'](({suggestion:_0x2d933f,meta:_0x4ae53d})=>_0x4ae53d['isOwn']&&'convertInlineImageToBlock'==_0x2d933f['subType']);if(_0x2410a2['length']>0x1&&_0x251184['end']['isEqual'](_0x555187['start']))return!0x0;if(0x1==_0x2410a2['length']&&(_0x555187['start']['isEqual'](_0x251184['end'])||_0x555187['end']['isEqual'](_0x251184['start'])))return!0x0;}if(0x3==_0x3a3945&&0x3==_0x34b242&&_0x555187['start']['isBefore'](_0x251184['start'])){const _0x584c0a=_0x555187['end']['nodeAfter'],_0x383246=_0x251184['start']['nodeBefore'];return _0x25dc7b['isBlockImage'](_0x584c0a)&&_0x584c0a===_0x383246;}return!0x1;}function _0xb2021f(_0x5e86e9,_0x47edf8){return _0x28a7b2(_0x5e86e9,_0x47edf8)?[_0x5e86e9,_0x47edf8]:_0x28a7b2(_0x47edf8,_0x5e86e9)?[_0x47edf8,_0x5e86e9]:null;}_0x57b2f4['plugins']['has']('ImageResize')&&(_0x1d3950['enableDefaultAttributesIntegration']('resizeImage'),_0x1d3950['registerBlockAttribute']('resizedWidth'),_0x1d3950['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x10e67f,'FORMAT_IMAGE_SIZE'))),_0x57b2f4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1d3950['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1d3950['registerBlockAttribute']('alt')),_0x1d3950['descriptionFactory']['registerDescriptionCallback'](_0x23b484=>{if(!!_0x46a41c['find'](({type:_0x4a2236,subType:_0x35ed0f})=>_0x23b484['type']==_0x4a2236&&_0x23b484['subType']==_0x35ed0f))return _0x23b484['previous']?{}:void 0x0;}),_0x1d3950['descriptionFactory']['registerDescriptionCallback'](_0x4995e6=>{if('insertion'==_0x4995e6['type']||'deletion'==_0x4995e6['type']){const _0x2122e9=_0x4995e6['getContainedElement']();if(_0x2122e9&&_0x2122e9['is']('element','caption'))return{'type':'insertion'==_0x4995e6['type']?'addObject':'removeObject','element':_0x2122e9,'quantity':0x1};}}),_0x1d3950['descriptionFactory']['registerDescriptionCallback'](_0x2d6391=>'formatBlock'==_0x2d6391['type']&&'convertInlineImageToBlock'==_0x2d6391['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d6391['type']&&'convertBlockImageToInline'==_0x2d6391['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1d3950['descriptionFactory']['registerDescriptionCallback'](_0x16a6b9=>{if('attribute'!=_0x16a6b9['type'])return;const {data:_0x567ed3}=_0x16a6b9;if(!_0x567ed3||'alt'!=_0x567ed3['key'])return;const _0x336da3=_0x567ed3['newValue'];return _0x336da3?{'type':'format','content':o(_0x10e67f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x336da3+'\x22')}:{'type':'format','content':o(_0x10e67f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bedf4=this['editor'],_0x53f222=_0x2bedf4['locale'];_0x2bedf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x393e19=>{if('formatBlock'!=_0x393e19['type']&&'formatInline'!=_0x393e19['type'])return;const {data:_0x5547b2}=_0x393e19;if(_0x5547b2){if('imageTextAlternative'==_0x5547b2['commandName']){const _0x2844c0=_0x5547b2['commandParams'][0x0]['newValue'];return _0x2844c0?{'type':'format','content':o(_0x53f222,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2844c0+'\x22')}:{'type':'format','content':o(_0x53f222,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5547b2['commandName']){const _0x1f4f57=_0x5547b2['commandParams'][0x0]['width'];return _0x1f4f57?{'type':'format','content':o(_0x53f222,'*Set\x20image\x20width:*\x20%0',_0x1f4f57)}:{'type':'format','content':o(_0x53f222,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1c3a28{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3ac50d=this['editor']['locale'],_0x29fe2d=this['editor']['plugins']['get']('TrackChangesEditing');_0x29fe2d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x29fe2d['registerBlockAttribute']('src'),_0x29fe2d['descriptionFactory']['registerDescriptionCallback'](_0x483b8d=>{if('attribute'!=_0x483b8d['type'])return;const {data:_0x294a89}=_0x483b8d;return _0x294a89&&'src'==_0x294a89['key']?_0x294a89['newValue']&&_0x294a89['oldValue']?{'type':'format','content':o(_0x3ac50d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x203b71=this['editor']['plugins']['get']('TrackChangesEditing');_0x203b71['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x203b71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x203b71['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x203b71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46bd7d=this['editor'],_0x22d58f=_0x46bd7d['locale'];_0x46bd7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd6ee=>{if('formatBlock'!=_0x2bd6ee['type']&&'formatInline'!=_0x2bd6ee['type'])return;const {data:_0x533b20}=_0x2bd6ee;if(!_0x533b20||'replaceImageSource'!=_0x533b20['commandName'])return;return{'type':'format','content':o(_0x22d58f,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1c3a28{['afterInit'](){const _0x505b7a=this['editor'];if(!_0x505b7a['plugins']['has']('ImageStyleEditing'))return;const _0x565961=_0x505b7a['plugins']['get']('TrackChangesEditing'),_0x11e938=_0x505b7a['plugins']['get']('ImageUtils'),_0x724bbf={};_0x565961['enableCommand']('imageStyle',(_0x592f4a,_0x1db71a)=>{const _0x25fdf6=_0x505b7a['plugins']['get']('Users')['me'],_0x1ae5f7=_0x505b7a['commands']['get']('imageStyle');let _0x1172cc=_0x11e938['getClosestSelectedImageElement'](_0x505b7a['model']['document']['selection']),_0x1189c0=_0x505b7a['model']['createRangeOn'](_0x1172cc),_0x597d03=_0x1ae5f7['value'];if(_0x597d03==_0x1db71a['value'])return;const _0x287b6f={'commandName':'imageStyle','commandParams':[_0x1db71a],'formatGroupId':_0x15362b()};_0x505b7a['model']['change'](()=>{if(_0x565961['getSuggestions']()['filter'](_0x1a4c53=>_0x1a4c53['isInContent']&&_0x25fdf6==_0x1a4c53['author']&&('formatBlock'==_0x1a4c53['type']||'formatInline'==_0x1a4c53['type'])&&('imageStylePreApply'==_0x1a4c53['subType']||'imageStylePostApply'==_0x1a4c53['subType'])&&_0x1a4c53['getFirstRange']()['isEqual'](_0x1189c0))['forEach'](_0x444574=>_0x565961['discardSuggestion'](_0x444574['head'])),_0x1172cc=_0x11e938['getClosestSelectedImageElement'](_0x505b7a['model']['document']['selection']),_0x1189c0=_0x505b7a['model']['createRangeOn'](_0x1172cc),_0x1ae5f7['refresh'](),_0x505b7a['commands']['get']('imageTypeInline')['refresh'](),_0x505b7a['commands']['get']('imageTypeBlock')['refresh'](),_0x597d03=_0x1ae5f7['value'],_0x597d03!=_0x1db71a['value'])return _0x11e938['isInlineImage'](_0x1172cc)&&_0x1ae5f7['shouldConvertImageType'](_0x1db71a['value'],_0x1172cc)?(_0x592f4a({..._0x1db71a,'setImageSizes':!0x1}),_0x1172cc=_0x11e938['getClosestSelectedImageElement'](_0x505b7a['model']['document']['selection']),void _0x565961['markBlockFormat'](_0x1172cc,{..._0x287b6f,'commandReversedParams':[{'value':_0x597d03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x11e938['isBlockImage'](_0x1172cc)?_0x565961['markBlockFormat'](_0x1172cc,_0x287b6f,[],'imageStylePostApply'):_0x565961['markInlineFormat'](_0x1189c0,_0x287b6f,'imageStylePostApply'));});});for(const _0x4caa82 of _0x505b7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x724bbf[_0x4caa82['name']]=_0x4caa82['title']['toLowerCase']();_0x565961['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x565961['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x565961['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x565961['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ff975])=>{_0x11e938['setImageNaturalSizeAttributes'](_0x4ff975['getContainedElement']());}),_0x565961['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x37b483,_0x5e77c9)=>{_0x565961['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x37b483,{'commandName':_0x5e77c9['commandName'],'commandParams':_0x5e77c9['commandReversedParams']});}),_0x565961['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x396c65,_0xd908cc){if(_0x3df4a9(_0x396c65,_0xd908cc))return[_0x396c65,_0xd908cc];if(_0x3df4a9(_0xd908cc,_0x396c65))return[_0xd908cc,_0x396c65];return null;});const _0x682331=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3df4a9(_0xa27586,_0x1f31cc){const _0x513d29=_0x682331['findIndex'](({type:_0x2caefa,subType:_0x3e5069})=>_0xa27586['type']==_0x2caefa&&_0xa27586['subType']==_0x3e5069),_0x1c8af0=_0x682331['findIndex'](({type:_0x314d2d,subType:_0x25d4c4})=>_0x1f31cc['type']==_0x314d2d&&_0x1f31cc['subType']==_0x25d4c4);if(_0x513d29<0x0||_0x1c8af0<0x0)return!0x1;const _0x48da6e=_0xa27586['getFirstRange'](),_0x1ed9b7=_0x1f31cc['getFirstRange']();if((0x0==_0x513d29||0x1==_0x513d29)&&0x2==_0x1c8af0&&_0x48da6e['isIntersecting'](_0x1ed9b7))return!0x0;if(0x2==_0x513d29&&0x3==_0x1c8af0){const _0x310aed=_0x565961['_findSuggestions'](_0x48da6e,'insertion')['filter'](({suggestion:_0x53b506,meta:_0xd191b5})=>_0xd191b5['isOwn']&&'convertInlineImageToBlock'==_0x53b506['subType']);if(_0x310aed['length']>0x1&&_0x1ed9b7['end']['isEqual'](_0x48da6e['start']))return!0x0;if(0x1==_0x310aed['length']&&(_0x48da6e['start']['isEqual'](_0x1ed9b7['end'])||_0x48da6e['end']['isEqual'](_0x1ed9b7['start'])))return!0x0;}if(0x3==_0x513d29&&0x3==_0x1c8af0&&_0x48da6e['start']['isBefore'](_0x1ed9b7['start'])){const _0x12f4ea=_0x48da6e['end']['nodeAfter'],_0x1cecbf=_0x1ed9b7['start']['nodeBefore'];return _0x11e938['isBlockImage'](_0x12f4ea)&&_0x12f4ea===_0x1cecbf;}return!0x1;}_0x505b7a['model']['document']['registerPostFixer'](()=>{let _0x37eaca=!0x1;const _0x1ab252=Array['from'](_0x505b7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c42a8,data:_0x4843e9}of _0x1ab252){const {group:_0x306fca,type:_0x2a1f44,subType:_0x833a43,id:_0x9e229f}=_0x565961['_splitMarkerName'](_0x2c42a8);if('suggestion'==_0x306fca&&_0x565961['hasSuggestion'](_0x9e229f)){if('formatBlock'==_0x2a1f44&&('imageStylePreApply'==_0x833a43||'imageStylePostApply'==_0x833a43)){const _0x3be68c=_0x565961['getSuggestion'](_0x9e229f);if(_0x4843e9['newRange']){const _0xc6315=_0x3be68c['getFirstRange']()['getContainedElement']();if(_0x11e938['isBlockImage'](_0xc6315))continue;_0x565961['discardSuggestion'](_0x3be68c),_0x37eaca=!0x0;}}if('insertion'==_0x2a1f44&&'imageCaption'==_0x833a43&&!_0x4843e9['newRange']){const _0x2499a1=_0x565961['getSuggestion'](_0x9e229f);_0x2499a1['next']&&_0x2499a1['next']['isInContent']&&(_0x565961['discardSuggestion'](_0x2499a1['next']),_0x37eaca=!0x0);}}}return _0x37eaca;}),this['_registerLegacyDescription'](_0x724bbf);}['_registerLegacyDescription'](_0x3ea5fe){const _0x4bc2bf=this['editor'],_0x224fae=_0x4bc2bf['locale'];_0x4bc2bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ae69=>{if('formatBlock'!=_0x56ae69['type']&&'formatInline'!=_0x56ae69['type'])return;const {data:_0x26ff88}=_0x56ae69;if(!_0x26ff88||'imageStyle'!=_0x26ff88['commandName'])return;const _0x192072=_0x26ff88['commandParams'][0x0]['value'];return _0x17b031('side'===_0x192072?o(_0x224fae,'FORMAT_SIDE_IMAGE'):_0x3ea5fe[_0x192072]||_0x192072);function _0x17b031(_0x6e9505){return{'type':'format','content':o(_0x224fae,'*Format:*\x20%0',_0x6e9505)};}});}}class ot extends _0x1c3a28{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x47331d){super(_0x47331d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x23a8a1=this['editor'],_0x47af03=_0x23a8a1['commands']['get']('importWord'),_0x5fb5af=_0x23a8a1['commands']['get']('trackChanges');_0x47af03&&(_0x47af03['on']('execute',(_0x3a1dea,[,_0xfe93a9])=>{this['_trackChangesValueDuringImport']=_0x5fb5af['value'],_0xfe93a9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x47af03,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x47af03,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5fb5af['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x23a8a1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x123165,_0x2dd348){const {suggestions:_0x131c6f}=_0x2dd348,_0x416f20=this['editor']['commands']['get']('trackChanges'),_0x2e2e4a=_0x416f20['value'];this['_trackChangesValueDuringImport']!==_0x2e2e4a&&(_0x416f20['execute'](),this['_trackChangesExecuted']=!0x0),_0x131c6f&&_0x131c6f['forEach'](({id:_0x2e35d7,type:_0x337d47,author:_0x4bb5a0,created_at:_0x1e09bc})=>{const _0x2ddf18={'id':_0x2e35d7,'type':_0x337d47,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4bb5a0,'createdAt':_0x1e09bc?new Date(_0x1e09bc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ddf18);});}}class rt extends _0x1c3a28{['afterInit'](){const _0x3074e4=this['editor'],_0xc78fa=_0x3074e4['plugins']['get']('TrackChangesEditing');if(_0x3074e4['plugins']['has']('IndentEditing')&&(_0xc78fa['enableCommand']('indent'),_0xc78fa['enableCommand']('outdent')),_0x3074e4['plugins']['has']('IndentBlock')){for(const _0x1f978f of['indentBlock','outdentBlock'])_0xc78fa['enableDefaultAttributesIntegration'](_0x1f978f);}const _0x5772b7=_0x3074e4['locale'];_0xc78fa['registerBlockAttribute']('blockIndent'),_0xc78fa['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5772b7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26bd27=this['editor'],_0x369d30=_0x26bd27['locale'],_0xae0578=_0x26bd27['plugins']['get']('TrackChangesEditing');_0xae0578['descriptionFactory']['registerDescriptionCallback'](_0x5cb78e=>{if('formatBlock'!=_0x5cb78e['type'])return;const {data:_0x45ad5d}=_0x5cb78e;if(!_0x45ad5d)return;if('indentBlock'!=_0x45ad5d['commandName']&&'outdentBlock'!=_0x45ad5d['commandName'])return;const _0x46de87=_0x5cb78e['getItems']()[0x0],_0x9e6722=_0xae0578['descriptionFactory']['getItemLabel'](_0x46de87);return'indentBlock'==_0x45ad5d['commandName']?{'type':'format','content':o(_0x369d30,'*Indent:*\x20%0',_0x9e6722)}:'outdentBlock'==_0x45ad5d['commandName']?{'type':'format','content':o(_0x369d30,'*Outdent:*\x20%0',_0x9e6722)}:void 0x0;});}}class at extends _0x1c3a28{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1c3a28{['afterInit'](){const _0x59fb3e=this['editor'];if(!_0x59fb3e['plugins']['has']('LinkEditing'))return;const _0x5e53e9=_0x59fb3e['plugins']['get']('TrackChangesEditing'),_0x1e3f45=_0x59fb3e['commands']['get']('link');_0x5e53e9['enableDefaultAttributesIntegration']('link'),_0x5e53e9['enableDefaultAttributesIntegration']('unlink'),_0x5e53e9['registerInlineAttribute']('linkHref');for(const _0x4f95a1 of _0x1e3f45['manualDecorators'])_0x5e53e9['registerInlineAttribute'](_0x4f95a1['id']),_0x5e53e9['descriptionFactory']['registerAttributeLabel'](_0x4f95a1['id'],'link\x20('+_0x4f95a1['label']['toLowerCase']()+')');_0x5e53e9['descriptionFactory']['registerDescriptionCallback'](_0x372e81=>{if('attribute'!=_0x372e81['type'])return;const {data:_0x34a2e3}=_0x372e81;if(!_0x34a2e3||'linkHref'!=_0x34a2e3['key'])return;const _0x15d23c=_0x34a2e3['newValue'],_0x35e0e2=_0x59fb3e['locale'];return{'type':'format','content':null==_0x15d23c?o(_0x35e0e2,'*Remove\x20link*'):o(_0x35e0e2,'*Set\x20link:*\x20%0','\x22'+_0x15d23c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31476d=this['editor'],_0x3a4760=_0x31476d['locale'];_0x31476d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4084ce=>{if('formatInline'!=_0x4084ce['type'])return;const {data:_0x1902f9}=_0x4084ce;if(_0x1902f9){if('link'==_0x1902f9['commandName']){const _0x3a6523=_0x1902f9['commandParams'][0x0];return{'type':'format','content':o(_0x3a4760,'*Set\x20link:*\x20%0','\x22'+_0x3a6523+'\x22')};}return'unlink'==_0x1902f9['commandName']?{'type':'format','content':o(_0x3a4760,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1c3a28{['afterInit'](){const _0x5aad8a=this['editor'],_0x4b4ac4=_0x5aad8a['locale'];if(!_0x5aad8a['plugins']['has']('LegacyListEditing'))return;const _0x5ea7f7=_0x5aad8a['plugins']['get']('TrackChangesEditing'),_0x374f1b=_0x5aad8a['plugins']['has']('LegacyTodoListEditing');function _0x34b6dc(_0x1c35da){return()=>{const _0x36e269=_0x5aad8a['model']['document']['selection'],_0xf59b20=_0x5aad8a['commands']['get'](_0x1c35da);if(_0xf59b20['value'])return void _0x5aad8a['execute']('paragraph',{});const _0x44d783=_0x1c35da['slice'](0x0,-0x4),_0x3c0e7b=function(_0x18ff26,_0x31e41a,_0x287590){let _0x4333e7=Array['from'](_0x18ff26)['filter'](_0x5d987f=>function(_0xbd142e,_0x37ea44){return _0x37ea44['checkChild'](_0xbd142e['parent'],'listItem')&&!_0x37ea44['isObject'](_0xbd142e);}(_0x5d987f,_0x287590));_0x4333e7=_0x4333e7['filter'](_0x541007=>!_0x541007['is']('element','listItem')||_0x541007['getAttribute']('listType')!=_0x31e41a);const _0x312cd6=new Set();for(const _0x431fd4 of _0x4333e7)_0x431fd4['is']('element','listItem')?_0x312cd6['add'](me(_0x431fd4)):_0x312cd6['add'](_0x431fd4);return Array['from'](_0x312cd6);}(_0x36e269['getSelectedBlocks'](),_0x44d783,_0x5aad8a['model']['schema']);_0x5aad8a['model']['change'](()=>{for(const _0x18be32 of _0x3c0e7b)_0x5ea7f7['markBlockFormat'](_0x18be32,{'commandName':_0x1c35da,'commandParams':[{'forceValue':!_0xf59b20['value']}],'formatGroupId':'blockName'},fe(_0x18be32));});};}function _0x15c2b3(_0x202d86){return()=>{const _0x1a0751=function(_0x23c26b){let _0x4576a0=Array['from'](_0x23c26b);const _0x586570=_0x4576a0['findIndex'](_0x3ce221=>'listItem'!=_0x3ce221['name']);return _0x586570>-0x1&&(_0x4576a0=_0x4576a0['slice'](0x0,_0x586570)),_0x4576a0;}(_0x5aad8a['model']['document']['selection']['getSelectedBlocks']()),_0x59abbd=_0x5aad8a['model']['createRange'](_0x5aad8a['model']['createPositionAt'](_0x1a0751[0x0],'before'),_0x5aad8a['model']['createPositionAt'](_0x1a0751[_0x1a0751['length']-0x1],'end'));_0x5aad8a['model']['change'](()=>{_0x5ea7f7['markBlockFormat'](_0x59abbd,{'commandName':_0x202d86,'commandParams':[],'formatGroupId':'listIndent'},function(_0x559bc1){const _0x563346=new Set();for(const _0x2fb6f5 of _0x559bc1){let _0x49da37=_0x2fb6f5['nextSibling'];for(;_0x49da37&&_0x49da37['getAttribute']('listIndent')>_0x2fb6f5['getAttribute']('listIndent');)_0x563346['add'](_0x49da37),_0x49da37=_0x49da37['nextSibling'];}return Array['from'](_0x563346);}(_0x1a0751));});};}_0x5ea7f7['enableCommand']('numberedList',_0x34b6dc('numberedList')),_0x5ea7f7['enableCommand']('bulletedList',_0x34b6dc('bulletedList')),_0x374f1b&&_0x5ea7f7['enableCommand']('todoList',_0x34b6dc('todoList')),_0x5ea7f7['enableCommand']('indentList',_0x15c2b3('indentList')),_0x5ea7f7['enableCommand']('outdentList',_0x15c2b3('outdentList')),_0x374f1b&&_0x5ea7f7['enableCommand']('checkTodoList',()=>{const _0x4f80fb=_0x5aad8a['commands']['get']('checkTodoList'),_0x40e75f=Array['from'](_0x4f80fb['_selectedElements']);_0x40e75f['filter'](_0x1abd81=>_0x1abd81['getAttribute']('todoListChecked')!=_0x4f80fb['value']),_0x5aad8a['model']['change'](()=>{for(const _0x2ff667 of _0x40e75f)_0x5ea7f7['markBlockFormat'](_0x2ff667,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4f80fb['value']}]});});}),_0x5ea7f7['descriptionFactory']['registerElementLabel']('listItem',_0x3293d0=>o(_0x4b4ac4,'ELEMENT_LIST_ITEM',_0x3293d0)),_0x5ea7f7['descriptionFactory']['registerDescriptionCallback'](_0x1add44=>{if('formatBlock'!=_0x1add44['type']&&'formatInline'!=_0x1add44['type'])return;const {data:_0x4c25c8}=_0x1add44;if(_0x4c25c8){if('numberedList'==_0x4c25c8['commandName']||'bulletedList'==_0x4c25c8['commandName']||'todoList'==_0x4c25c8['commandName'])switch(_0x4c25c8['commandName']['replace']('List','')){case'bulleted':return _0x22e4d1(o(_0x4b4ac4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22e4d1(o(_0x4b4ac4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22e4d1(o(_0x4b4ac4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c25c8['commandName'])return{'type':'format','content':o(_0x4b4ac4,'*Indent:*\x20%0',o(_0x4b4ac4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c25c8['commandName'])return{'type':'format','content':o(_0x4b4ac4,'*Outdent:*\x20%0',o(_0x4b4ac4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c25c8['commandName'])return _0x4c25c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b4ac4,'*Check\x20item*')}:{'type':'format','content':o(_0x4b4ac4,'*Uncheck\x20item*')};}function _0x22e4d1(_0x2b4e12){return{'type':'format','content':o(_0x4b4ac4,'*Change\x20to:*\x20%0',_0x2b4e12)};}});}}function me(_0x5a580b){const _0x32e74e=_0x5a580b['getAttribute']('listIndent');if(0x0==_0x32e74e)return _0x5a580b;let _0x2b9de6=_0x5a580b;for(;_0x5a580b['previousSibling']&&_0x5a580b['previousSibling']['is']('element','listItem');){const _0x57275a=_0x5a580b['previousSibling']['getAttribute']('listIndent');if(_0x57275a==_0x32e74e)_0x2b9de6=_0x5a580b['previousSibling'];else{if(_0x57275a<_0x32e74e)break;}_0x5a580b=_0x5a580b['previousSibling'];}return _0x2b9de6;}function fe(_0x16fc5c){const _0x313324=[];if(_0x16fc5c['is']('element','listItem')&&_0x16fc5c['getAttribute']('listIndent')>0x0){let _0x24e29e=_0x16fc5c['nextSibling'];for(;_0x24e29e&&'listItem'==_0x24e29e['name']&&_0x24e29e['getAttribute']('listIndent')==_0x16fc5c['getAttribute']('listIndent');)_0x313324['push'](_0x24e29e),_0x24e29e=_0x24e29e['nextSibling'];}return _0x313324;}class K extends _0x1c3a28{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x272970=this['editor']['config']['get']('list.properties'),_0x1eec02=this['editor']['plugins']['get']('TrackChangesEditing');_0x272970['styles']&&_0x1eec02['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x272970['reversed']&&_0x1eec02['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x272970['startIndex']&&_0x1eec02['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1eec02['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x50abf7,_0x271ca4={}){const _0x55e22c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e38a1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x55e22c['markMultiRangeBlockFormat'](_0x1e38a1,{'commandName':'listStyle','commandParams':[{'type':_0x271ca4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x303d02,_0x4eddc0={}){const _0x3a06bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x148171=this['_getSuggestionBlocks'](_0x2ab865=>_0x2ab865['is']('element','listItem')&&'numbered'===_0x2ab865['getAttribute']('listType'));if(_0x148171['length']<0x1)return;const _0x52fa28=_0x148171['map'](_0xf1782b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf1782b,'before'),this['editor']['model']['createPositionAt'](_0xf1782b,0x0)));this['editor']['model']['change'](()=>{_0x3a06bb['markMultiRangeBlockFormat'](_0x52fa28,{'commandName':'listReversed','commandParams':[{'reversed':_0x4eddc0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x192443,_0x416b8a={}){const _0x14da19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11512e=this['_getSuggestionBlocks'](_0x1eeeaa=>_0x1eeeaa['is']('element','listItem')&&'numbered'===_0x1eeeaa['getAttribute']('listType'));if(_0x11512e['length']<0x1)return;const _0x43177d=_0x11512e['map'](_0x1631ac=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1631ac,'before'),this['editor']['model']['createPositionAt'](_0x1631ac,0x0)));this['editor']['model']['change'](()=>{_0x14da19['markMultiRangeBlockFormat'](_0x43177d,{'commandName':'listStart','commandParams':[{'startIndex':_0x416b8a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x12b074){if('formatBlock'!=_0x12b074['type']&&'formatInline'!=_0x12b074['type'])return;const _0x1c089f=this['editor']['locale'],{data:_0x155bec}=_0x12b074;if(!_0x155bec)return;let _0x648b9f,_0x428154;switch(_0x155bec['commandName']){case'listStyle':_0x648b9f='*Change\x20to:*\x20%0',_0x428154={'type':'format','content':o(_0x1c089f,_0x648b9f,o(_0x1c089f,this['_getTranslationKeyForListStyle'](_0x155bec['commandParams'][0x0]['type'])))};break;case'listReversed':_0x648b9f=_0x155bec['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x428154={'type':'format','content':o(_0x1c089f,_0x648b9f)};break;case'listStart':_0x648b9f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x428154={'type':'format','content':o(_0x1c089f,_0x648b9f,_0x155bec['commandParams'][0x0]['startIndex'])};}return _0x428154;}['_getSuggestionBlocksForListStyle'](){const _0x34f27c=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c4d85=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c4d85[0x0]?.['is']('element','listItem')&&_0x2c4d85['unshift'](..._0x34f27c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c4d85[_0x2c4d85['length']-0x1]?.['is']('element','listItem')&&_0x2c4d85['push'](..._0x34f27c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c4d85=[...new Set(_0x2c4d85)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c4d85=_0x2c4d85['filter'](_0x374a8e=>_0x374a8e['is']('element','listItem'))),_0x2c4d85;}['_getSuggestionBlocks'](_0x445d5a){const _0x54f9f0=this['editor']['plugins']['get']('LegacyListUtils');let _0xb807d2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x445d5a)['map'](_0x3f4c03=>{const _0x3d0cd8=this['editor']['model']['createPositionAt'](_0x3f4c03,0x0);return[..._0x54f9f0['getSiblingNodes'](_0x3d0cd8,'backward'),..._0x54f9f0['getSiblingNodes'](_0x3d0cd8,'forward')];})['flat']();return _0xb807d2=[...new Set(_0xb807d2)],_0xb807d2;}['_getTranslationKeyForListStyle'](_0xfc7a63){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xfc7a63)||'default')['toUpperCase']()+'_LIST_'+_0xfc7a63['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1c3a28{['afterInit'](){const _0x4075ff=this['editor'];if(!_0x4075ff['plugins']['has']('MediaEmbedEditing'))return;const _0x32fc7e=_0x4075ff['plugins']['get']('TrackChangesEditing'),_0x56249e=_0x4075ff['locale'];_0x32fc7e['enableCommand']('mediaEmbed'),_0x32fc7e['descriptionFactory']['registerElementLabel']('media',_0x4077eb=>o(_0x56249e,'ELEMENT_MEDIA',_0x4077eb)),_0x4075ff['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1dfba8,{writer:_0x5a96e7,options:_0x215ce1})=>{if(_0x215ce1['showSuggestionHighlights'])return _0x5a96e7['createEmptyElement']('div');},'converterPriority':'high'}),_0x4075ff['data']['downcastDispatcher']['on']('attribute:url:media',(_0x565293,_0x3134fc,_0x2eef04)=>{_0x2eef04['options']['showSuggestionHighlights']&&_0x565293['stop']();},{'priority':'high'});}}class gt extends _0x1c3a28{['afterInit'](){const _0x1ae235=this['editor'];_0x1ae235['plugins']['has']('MentionEditing')&&_0x1ae235['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1c3a28{['afterInit'](){const _0x9a2f0=this['editor'],_0x3f3b88=_0x9a2f0['plugins']['get']('TrackChangesEditing');_0x9a2f0['plugins']['has']('MultiLevelList')&&(_0x3f3b88['enableDefaultAttributesIntegration']('multiLevelList'),_0x3f3b88['registerBlockAttribute']('listMarkerStyle'),_0x3f3b88['descriptionFactory']['registerDescriptionCallback'](_0xc3063c=>this['handleDescriptions'](_0xc3063c)));}['handleDescriptions'](_0x1c30a4){const _0x48043d=this['editor']['locale'],{data:_0x186446}=_0x1c30a4,_0xba8370={'type':'format','content':''};if(_0x186446&&'listMarkerStyle'==_0x186446['key']){if(!_0x186446['oldValue'])return{'type':'format','content':o(_0x48043d,'*Set\x20format:*\x20%0',o(_0x48043d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x186446['newValue']+')'};if(!_0x186446['newValue']){let _0x5ab0b8=_0x1c30a4['head'];for(;_0x5ab0b8;){if(_0x5ab0b8['data']&&'listType'==_0x5ab0b8['data']['key']&&_0x5ab0b8['data']['newValue'])return _0xba8370;_0x5ab0b8=_0x5ab0b8['next'];}return{'type':'format','content':o(_0x48043d,'*Remove\x20format:*\x20%0',o(_0x48043d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x186446['oldValue']+')'};}}}}class mt extends _0x1c3a28{['afterInit'](){const _0x298c9c=this['editor'];if(!_0x298c9c['plugins']['has']('PageBreakEditing'))return;_0x298c9c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x28f269=_0x298c9c['plugins']['get']('TrackChangesEditing'),_0xb1b27a=_0x298c9c['locale'];_0x28f269['descriptionFactory']['registerElementLabel']('pageBreak',_0xa56dad=>o(_0xb1b27a,'ELEMENT_PAGE_BREAK',_0xa56dad));}}class dt extends _0x1c3a28{['afterInit'](){const _0x5dfa8e=this['editor'];if(!_0x5dfa8e['plugins']['has']('Paragraph'))return;const _0x4af563=_0x5dfa8e['locale'],_0xad6c3b=_0x5dfa8e['plugins']['get']('TrackChangesEditing');_0xad6c3b['descriptionFactory']['registerElementLabel']('paragraph',_0x146f56=>o(_0x4af563,'ELEMENT_PARAGRAPH',_0x146f56)),_0xad6c3b['enableDefaultAttributesIntegration']('paragraph'),_0xad6c3b['enableCommand']('insertParagraph'),_0x5dfa8e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5dfa8e),{'priority':'highest'}),_0x5dfa8e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f81dd,_0x39c80a,_0x4d08e0)=>{_0x4d08e0['options']['showSuggestionHighlights']&&nr(_0x5dfa8e,{'showActiveMarker':!0x1})(_0x4f81dd,_0x39c80a,_0x4d08e0);},{'priority':'highest'});const _0x2db6e3=_0xad6c3b['descriptionFactory'];_0x2db6e3['registerDescriptionCallback'](_0x1887b7=>{if('insertion'!==_0x1887b7['type'])return;const {start:_0x50aaf8,end:_0x24c957}=_0x1887b7['getFirstRange']();if(!_0x50aaf8['isTouching'](_0x24c957)||!_0x50aaf8['nodeAfter'])return;const _0x1be08=_0x5dfa8e['model']['schema'],_0x3fd942=_0x50aaf8['nodeAfter'];return _0x1be08['isBlock'](_0x3fd942)&&!_0x1be08['isLimit'](_0x3fd942)&&_0x1be08['checkChild'](_0x3fd942,'$text')?{'type':'insertion','content':o(_0x4af563,'*Insert:*\x20%0',_0x2db6e3['getItemLabel'](_0x3fd942,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32141d=this['editor'],_0x3bb82f=_0x32141d['locale'];_0x32141d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d02d9=>{if('formatBlock'!=_0x4d02d9['type'])return;const {data:_0x3926d3}=_0x4d02d9;return _0x3926d3&&'paragraph'==_0x3926d3['commandName']?{'type':'format','content':o(_0x3bb82f,'*Change\x20to:*\x20%0',o(_0x3bb82f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x42f8dc,{showActiveMarker:_0x584f80=!0x0}={}){return(_0x1ae3de,_0x117b02,_0x4179ad)=>{const _0x1f1e91=_0x42f8dc['plugins']['get']('TrackChangesEditing'),_0x32378f=_0x117b02['markerRange']['start'],_0x36d26f=_0x117b02['markerRange']['end'],_0x2e635d=_0x42f8dc['model']['schema'];if(!_0x32378f['isTouching'](_0x36d26f)||!_0x32378f['nodeAfter'])return;const _0x2b993c=_0x32378f['nodeAfter'];if(_0x2e635d['isBlock'](_0x2b993c)&&!_0x2e635d['isLimit'](_0x2b993c)&&_0x2e635d['checkChild'](_0x2b993c,'$text')){if(!_0x4179ad['consumable']['consume'](_0x117b02['markerRange'],_0x1ae3de['name']))return;const _0x5ee820=_0x4179ad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x139753=_0x4179ad['mapper']['toViewPosition'](_0x36d26f);_0x584f80&&_0x1f1e91['activeMarkers']['includes'](_0x117b02['markerName'])&&_0x4179ad['writer']['addClass']('ck-suggestion-marker--active',_0x5ee820),_0x4179ad['writer']['insert'](_0x139753,_0x5ee820),_0x4179ad['mapper']['bindElementToMarker'](_0x5ee820,_0x117b02['markerName']);}};}class pt extends _0x1c3a28{['afterInit'](){const _0x56f9dc=this['editor'];if(!_0x56f9dc['plugins']['has']('RemoveFormatEditing'))return;_0x56f9dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x205f71=this['editor'];_0x205f71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535f50=>{if('formatBlock'!=_0x535f50['type']&&'formatInline'!=_0x535f50['type'])return;const {data:_0x44801a}=_0x535f50;return _0x44801a&&'removeFormat'==_0x44801a['commandName']?{'type':'format','content':o(_0x205f71['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1c3a28{['afterInit'](){const _0x4b6f5b=this['editor'];if(!_0x4b6f5b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x14d19d=_0x4b6f5b['plugins']['get']('TrackChangesEditing');_0x14d19d['enableCommand']('goToPreviousRestrictedEditingException'),_0x14d19d['enableCommand']('goToNextRestrictedEditingException');const _0x4ae7a2=_0x4b6f5b['plugins']['get']('RestrictedEditingModeEditing');_0x4ae7a2['enableCommand']('trackChanges'),_0x4ae7a2['enableCommand']('acceptSuggestion'),_0x4ae7a2['enableCommand']('discardSuggestion'),_0x4ae7a2['enableCommand']('acceptAllSuggestions'),_0x4ae7a2['enableCommand']('discardAllSuggestions'),_0x4ae7a2['enableCommand']('acceptSelectedSuggestions'),_0x4ae7a2['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1c3a28{static get['requires'](){return[_0x16fabb];}['init'](){const _0x52d1a8=this['editor'],_0xe22633=_0x52d1a8['plugins']['get']('TrackChangesEditing');_0xe22633['enableCommand']('shiftEnter'),_0x52d1a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x52d1a8),{'priority':'high'}),_0x52d1a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x52d1a8),{'priority':'high'}),_0x52d1a8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x128f8b,_0x583288,_0x289889)=>{_0x289889['options']['showSuggestionHighlights']&&de(_0x52d1a8,{'showActiveMarker':!0x1})(_0x128f8b,_0x583288,_0x289889);}),_0xe22633['descriptionFactory']['registerElementLabel']('softBreak',_0x22820c=>o(_0x52d1a8['locale'],'ELEMENT_LINE_BREAK',_0x22820c));}}function de(_0x36b100,{showActiveMarker:_0x1ec4c8=!0x0}={}){return(_0x1175b9,_0x2d21fe,_0x581404)=>{const _0x254bdf=_0x36b100['plugins']['get']('TrackChangesEditing');if(!_0x581404['consumable']['test'](_0x2d21fe['markerRange'],_0x1175b9['name']))return;const _0x308d6d=_0x36b100['model'];for(const _0x3ef143 of _0x2d21fe['markerRange']['getItems']()){if(!_0x3ef143['is']('element','softBreak'))continue;const _0x4a30f9='deletion'==_0x2d21fe['markerName']['split'](':')[0x1]?'merge':'split',_0x1dce4c=_0x581404['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a30f9}),_0x44aa64=_0x581404['mapper']['toViewPosition'](_0x308d6d['createPositionBefore'](_0x3ef143));_0x1ec4c8&&_0x254bdf['activeMarkers']['includes'](_0x2d21fe['markerName'])&&_0x581404['writer']['addClass']('ck-suggestion-marker--active',_0x1dce4c),_0x581404['writer']['insert'](_0x44aa64,_0x1dce4c),_0x581404['mapper']['bindElementToMarker'](_0x1dce4c,_0x2d21fe['markerName']);}};}class wt extends _0x1c3a28{['afterInit'](){const _0x1a29a3=this['editor'],_0xeb96bd=_0x1a29a3['model'],_0x490c8a=_0x1a29a3['locale'];if(!_0x1a29a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x477899=_0x1a29a3['plugins']['get']('TrackChangesEditing'),_0xfb2f09='restrictedEditingException',_0x30a37d=_0x1a29a3['commands']['get'](_0xfb2f09);_0x477899['enableCommand'](_0xfb2f09,(_0x50d9ff,_0x4fbe06={})=>{const _0x32e668=_0xeb96bd['document']['selection'];if(_0x32e668['isCollapsed'])return void _0x50d9ff(_0x4fbe06);const _0x4080d0=void 0x0!==_0x4fbe06['forceValue']?_0x4fbe06['forceValue']:!_0x30a37d['value'];_0xeb96bd['change'](()=>{const _0x25848d=Array['from'](_0x32e668['getRanges']());for(const _0x173acd of _0x25848d){const _0x3dbdb4=_0x4080d0?[_0x173acd]:io(_0xfb2f09,_0x173acd,_0xeb96bd);for(const _0x371fe1 of _0x3dbdb4)_0x477899['markInlineFormat'](_0x371fe1,{'commandName':_0xfb2f09,'commandParams':[{'forceValue':_0x4080d0}]});}});}),_0x477899['descriptionFactory']['registerDescriptionCallback'](_0x105891=>{if('formatBlock'!=_0x105891['type']&&'formatInline'!=_0x105891['type'])return;const {data:_0x57d9ae}=_0x105891;return _0x57d9ae&&_0x57d9ae['commandName']==_0xfb2f09?_0x57d9ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x490c8a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x490c8a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1c3a28{['afterInit'](){const _0x1aa482=this['editor'];if(!_0x1aa482['plugins']['has']('Style')||!_0x1aa482['plugins']['has']('DataSchema'))return;const _0x3a3299=_0x1aa482['plugins']['get']('TrackChangesEditing'),_0xaf4e15=_0x1aa482['locale'],_0x38cb34=_0x1aa482['config']['get']('style')||{},_0x5df615=_0x1aa482['plugins']['get']('GeneralHtmlSupport'),_0x730213=_0x1aa482['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1aa482['plugins']['get']('DataSchema'),_0x38cb34['definitions']);_0x3a3299['enableDefaultAttributesIntegration']('style');const _0x24d82e=new Set();for(const _0x51f25b of _0x730213['block']){const _0x4425c8=_0x5df615['getGhsAttributeNameForElement'](_0x51f25b['element']);_0x24d82e['add'](_0x4425c8);}const _0x50cbb5=new Set();for(const _0x3d0e81 of _0x730213['inline']){const _0x587c2e=_0x5df615['getGhsAttributeNameForElement'](_0x3d0e81['element']);_0x50cbb5['add'](_0x587c2e);for(const _0x24fb9f of _0x3d0e81['ghsAttributes'])_0x50cbb5['add'](_0x24fb9f);}for(const _0x47e899 of _0x24d82e)_0x3a3299['registerBlockAttribute'](_0x47e899),_0x3a3299['descriptionFactory']['registerAttributeLabel'](_0x47e899,o(_0xaf4e15,'FORMAT_STYLE'));for(const _0x4ca931 of _0x50cbb5)_0x3a3299['registerInlineAttribute'](_0x4ca931),_0x3a3299['descriptionFactory']['registerAttributeLabel'](_0x4ca931,o(_0xaf4e15,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b51ad=this['editor'],_0x26942f=_0x2b51ad['locale'];_0x2b51ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12c203=>{if('formatBlock'!=_0x12c203['type']&&'formatInline'!=_0x12c203['type'])return;const {data:_0x41044d}=_0x12c203;return _0x41044d&&'style'===_0x41044d['commandName']?_0x41044d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26942f,'*Set\x20format:*\x20%0',_0x41044d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x26942f,'*Remove\x20format:*\x20%0',_0x41044d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1c3a28{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2cc3b6){super(_0x2cc3b6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x373ef7=this['editor'],_0x596e30=_0x373ef7['model']['document']['selection'];if(!_0x373ef7['plugins']['has']('TableEditing'))return;const _0x27fcc2=_0x373ef7['locale'],_0x4aab56=_0x373ef7['plugins']['get']('TrackChangesEditing'),_0x5ae086=_0x373ef7['plugins']['get']('TableUtils');_0x4aab56['descriptionFactory']['registerElementLabel']('table',_0x1f4098=>o(_0x27fcc2,'ELEMENT_TABLE',_0x1f4098)),this['_setupColumnsRowsFixing'](),_0x4aab56['enableCommand']('insertTable'),_0x4aab56['enableCommand']('selectTableRow'),_0x4aab56['enableCommand']('selectTableColumn');for(const _0x40c074 of['insertTableRowAbove','insertTableRowBelow']){const _0xcd334=_0x373ef7['commands']['get'](_0x40c074);_0x4aab56['enableCommand'](_0x40c074,_0x300d5a=>{_0x373ef7['model']['change'](_0x1bc587=>{_0x300d5a();const _0x4ffc28='above'===_0xcd334['order'],_0x12521f=_0x5ae086['getSelectionAffectedTableCells'](_0x596e30),_0x5c9ea8=_0x5ae086['getRowIndexes'](_0x12521f),_0x22a4ab=_0x4ffc28?_0x5c9ea8['first']-0x1:_0x5c9ea8['last']+0x1,_0x5238fd=_0x12521f[0x0]['findAncestor']('table'),_0x5d859a=_0x5ae086['createTableWalker'](_0x5238fd,{'startRow':_0x22a4ab,'endRow':_0x22a4ab}),_0x29db83=Array['from'](_0x5d859a)['map'](_0x1bc47a=>_0x1bc587['createRangeOn'](_0x1bc47a['cell']));_0x4aab56['markMultiRangeInsertion'](_0x29db83,'tableRow');});});}for(const _0x39f9dc of['insertTableColumnLeft','insertTableColumnRight']){const _0x4f561a=_0x373ef7['commands']['get'](_0x39f9dc);_0x4aab56['enableCommand'](_0x39f9dc,_0x409cca=>{_0x373ef7['model']['change'](_0x1ae486=>{_0x409cca();const _0x487a67='left'===_0x4f561a['order'],_0x4e8d41=_0x5ae086['getSelectionAffectedTableCells'](_0x596e30),_0x50fbec=_0x5ae086['getColumnIndexes'](_0x4e8d41),_0x5b407b=_0x487a67?_0x50fbec['first']-0x1:_0x50fbec['last']+0x1,_0xcc4496=_0x4e8d41[0x0]['findAncestor']('table'),_0x3f26e3=_0x5ae086['createTableWalker'](_0xcc4496,{'startRow':0x0,'column':_0x5b407b,'includeAllSlots':!0x1}),_0x2a1578=Array['from'](_0x3f26e3)['map'](_0x1d411c=>_0x1ae486['createRangeOn'](_0x1d411c['cell']));_0x4aab56['markMultiRangeInsertion'](_0x2a1578,'tableColumn');});});}for(const _0x25abe1 of['removeTableRow','removeTableColumn']){const _0x43593a=_0x25abe1['substr'](0xb),_0x40ec76=_0x43593a['toLowerCase'](),_0x2be06a=_0x40ec76['substr'](0x0,0x3)+'span',_0x17bf69='table'+_0x43593a,_0x67127e='min'+_0x43593a,_0x17a744='max'+_0x43593a;_0x4aab56['enableCommand'](_0x25abe1,()=>{_0x373ef7['model']['change'](_0x3cf735=>{const _0x2a4cae=_0x5ae086['getSelectionAffectedTableCells'](_0x596e30),_0x259a45=_0x2a4cae[0x0]['findAncestor']('table');let _0x11e5f7;if('removeTableRow'==_0x25abe1){const _0x5b8cad=_0x5ae086['getRowIndexes'](_0x2a4cae);_0x11e5f7={'startRow':_0x5b8cad['first'],'endRow':_0x5b8cad['last'],'includeAllSlots':!0x0};}else{const _0xfb576c=_0x5ae086['getColumnIndexes'](_0x2a4cae);_0x11e5f7={'startColumn':_0xfb576c['first'],'endColumn':_0xfb576c['last'],'includeAllSlots':!0x0};}const _0xe29d5a=_0x5ae086['createTableWalker'](_0x259a45,_0x11e5f7),_0x9fada3=Array['from'](_0xe29d5a)['map'](({cell:_0x37a574})=>_0x37a574),_0x2cddef=Ee(_0x9fada3['filter'](_0x138e89=>_0x138e89['hasAttribute'](_0x2be06a))),_0x243729=Ee(_0x9fada3['filter'](_0x154162=>!_0x154162['hasAttribute'](_0x2be06a)))['map'](_0x3516aa=>_0x3cf735['createRangeOn'](_0x3516aa)),_0x134c0c=_0x4aab56['markMultiRangeDeletion'](_0x243729,_0x17bf69);if(_0x134c0c&&('tableRow'==_0x134c0c['subType']||'tableColumn'==_0x134c0c['subType'])){const _0xf59532=this['_getSuggestionCoords'](_0x134c0c);for(const _0x5736f5 of _0x2cddef){const _0x397861=_0x3cf735['createRangeOn'](_0x5736f5),_0x1e6eb1=_0x5ae086['getCellLocation'](_0x5736f5),_0x20ff73=_0x5736f5['getAttribute'](_0x2be06a)-0x1,_0x9e3e35=_0xf59532[_0x67127e],_0x4af800=_0xf59532[_0x17a744];_0x9e3e35<=_0x1e6eb1[_0x40ec76]&&_0x1e6eb1[_0x40ec76]+_0x20ff73<=_0x4af800&&_0x134c0c['addRange'](_0x397861);}}});});}function _0x24ba0f(_0x5f35ab){const _0x4d2589=Array['from'](_0x596e30['getRanges']())['map'](_0x8028ea=>_0x5b9e67['fromRange'](_0x8028ea));_0x373ef7['model']['change'](_0x4980df=>{const _0x29fbda=_0x4980df['batch'];_0x5f35ab=_0x5f35ab['filter'](_0x30eae0=>'$graveyard'!=_0x30eae0['root']['rootName']),_0x4980df['setSelection'](_0x5f35ab),_0x373ef7['commands']['get']('removeTableRow')['refresh'](),_0x373ef7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x373ef7['model']['enqueueChange'](()=>{_0x373ef7['model']['enqueueChange'](_0x29fbda,_0x1cd8ae=>{const _0x5d6038=_0x4d2589['filter'](_0x5419a0=>'$graveyard'!=_0x5419a0['root']['rootName']);_0x5d6038['length']>0x0&&_0x1cd8ae['setSelection'](_0x5d6038);for(const _0x192849 of _0x4d2589)_0x192849['detach']();});});});}function _0x164142(_0xfebbaa){_0x373ef7['model']['change'](_0xe7617a=>{const _0x5de841=Array['from'](_0x596e30['getRanges']())['map'](_0x3b7f85=>_0x5b9e67['fromRange'](_0x3b7f85)),_0x261461=[];for(const _0x35c242 of _0xfebbaa)for(const _0x297ff8 of _0x35c242['getItems']({'shallow':!0x0}))_0x261461['push'](_0x297ff8);for(const _0x4eef03 of _0x261461)'$graveyard'!=_0x4eef03['root']['rootName']&&(_0xe7617a['setSelection'](_0xe7617a['createPositionAt'](_0x4eef03,0x0)),_0x373ef7['commands']['get']('removeTableColumn')['refresh'](),_0x373ef7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x508cb5=_0x5de841['filter'](_0x230f8f=>'$graveyard'!=_0x230f8f['root']['rootName']);_0x508cb5['length']>0x0&&_0xe7617a['setSelection'](_0x508cb5);for(const _0x2c7106 of _0x5de841)_0x2c7106['detach']();});}function _0x558e28(_0x2f0d84,_0x547971){return _0x547971['every'](_0x8c2274=>_0x2f0d84['some'](_0x1a8747=>_0x1a8747['end']['isEqual'](_0x8c2274['start'])||_0x8c2274['end']['isEqual'](_0x1a8747['start'])));}function _0x3323f5(_0x4f4bde,_0x5e6ade){return!_0x4f4bde['some'](_0x1bdc1c=>_0x5e6ade['some'](_0x4200d5=>_0x1bdc1c['isIntersecting'](_0x4200d5)))&&_0x4f4bde['some'](_0x310989=>_0x5e6ade['some'](_0x5bd7c0=>_0x310989['end']['isTouching'](_0x5bd7c0['start'])));}_0x373ef7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x132fa6,_0x294164,_0x12741a)=>{if(!_0x12741a['options']['showSuggestionHighlights'])return;const _0x4dc875=_0x294164['item'];if(!_0x4dc875)return;const _0x570d90=_0x12741a['mapper']['toViewElement'](_0x4dc875);function _0x433134(_0x203193){return Array['isArray'](_0x203193)?_0x203193:[_0x203193];}_0x570d90&&'tableCell'===_0x4dc875['name']&&_0x518311(_0x570d90,_0x12741a['writer'],(_0x3ca120,_0x329ead,_0x516119)=>_0x516119['addClass'](_0x433134(_0x329ead['classes']),_0x3ca120),(_0x79009a,_0x2400f4,_0x1fef71)=>_0x1fef71['removeClass'](_0x433134(_0x2400f4['classes']),_0x79009a));},{'priority':'highest'}),_0x4aab56['descriptionFactory']['registerDescriptionCallback'](_0x14cbf6=>{if('insertion'!=_0x14cbf6['type']&&'deletion'!=_0x14cbf6['type'])return;const _0x90cfff=_0x14cbf6['getContainedElement']();if(null!=_0x90cfff&&_0x90cfff['is']('element','table')){if('insertion'==_0x14cbf6['type']){const _0x3d21bc=_0x14cbf6['getItems']()['filter'](_0x17471a=>_0x17471a['is']('$textProxy'))['map'](_0x2c2454=>_0x2c2454['data']);if(_0x3d21bc['length'])return{'type':'insertion','content':o(_0x27fcc2,'*Insert:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d21bc['join']('\x20')+'\x22'))};}if('deletion'==_0x14cbf6['type']){const _0x5d3268=_0x14cbf6['getItems']()['filter'](_0xedd5bd=>_0xedd5bd['is']('$textProxy'))['map'](_0x12af9d=>_0x12af9d['data']);if(_0x5d3268['length'])return{'type':'deletion','content':o(_0x27fcc2,'*Remove:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d3268['join']('\x20')+'\x22'))};}}}),_0x4aab56['descriptionFactory']['registerDescriptionCallback'](_0x3cada2=>{if('tableRow'==_0x3cada2['subType']){const _0x20ccb5=_0x3cada2['getItems']()['filter'](_0x4acf5b=>_0x4acf5b['is']('$textProxy'))['map'](_0x14cb87=>_0x14cb87['data']),_0x575bd1=this['_getSuggestionCoords'](_0x3cada2),_0x47ed36=_0x575bd1['maxRow']-_0x575bd1['minRow']+0x1;if('insertion'==_0x3cada2['type'])return _0x20ccb5['length']?{'type':'insertion','content':o(_0x27fcc2,'*Insert:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47ed36,'\x22'+_0x20ccb5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x27fcc2,'*Insert:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_ROW',_0x47ed36))};if('deletion'==_0x3cada2['type'])return _0x20ccb5['length']?{'type':'deletion','content':o(_0x27fcc2,'*Remove:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47ed36,'\x22'+_0x20ccb5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x27fcc2,'*Remove:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_ROW',_0x47ed36))};}if('tableColumn'==_0x3cada2['subType']){const _0x4621fa=_0x3cada2['getItems']()['filter'](_0x10fc12=>_0x10fc12['is']('$textProxy'))['map'](_0x35b3c8=>_0x35b3c8['data']),_0x5b1e3c=this['_getSuggestionCoords'](_0x3cada2),_0x54769f=_0x5b1e3c['maxColumn']-_0x5b1e3c['minColumn']+0x1;if('insertion'==_0x3cada2['type'])return _0x4621fa['length']?{'type':'insertion','content':o(_0x27fcc2,'*Insert:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54769f,'\x22'+_0x4621fa['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x27fcc2,'*Insert:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_COLUMN',_0x54769f))};if('deletion'==_0x3cada2['type'])return _0x4621fa['length']?{'type':'deletion','content':o(_0x27fcc2,'*Remove:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54769f,'\x22'+_0x4621fa['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x27fcc2,'*Remove:*\x20%0',o(_0x27fcc2,'ELEMENT_TABLE_COLUMN',_0x54769f))};}}),_0x4aab56['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x24ba0f),_0x4aab56['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x24ba0f),_0x4aab56['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x164142),_0x4aab56['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x164142),_0x4aab56['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x558e28),_0x4aab56['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x558e28),_0x4aab56['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3323f5),_0x4aab56['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3323f5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4b9afc=this['editor'],_0x1e82dd=_0x4b9afc['model']['document']['selection'];return(_0x4bc85b,_0x45b3ba)=>{_0x4b9afc['model']['change'](_0x545459=>{const {commandName:_0x3d8ca9,commandParams:_0x3be600}=_0x45b3ba;let _0x308b51=_0x4bc85b[0x0]['end']['nodeBefore'];_0x3be600&&_0x3be600[0x0]&&!0x1===_0x3be600[0x0]['forceValue']&&(_0x308b51=_0x4bc85b[0x0]['start']['nodeAfter']);const _0x3d3d06=_0x545459['createRangeIn'](_0x308b51);if('$graveyard'==_0x3d3d06['root']['rootName'])return;const _0x2a4968=Array['from'](_0x1e82dd['getRanges']())['map'](_0x22c137=>_0x5b9e67['fromRange'](_0x22c137));_0x545459['setSelection'](_0x3d3d06),_0x4b9afc['commands']['get'](_0x3d8ca9)['refresh'](),_0x3be600['push']({'forceDefaultExecution':!0x0}),_0x4b9afc['execute'](_0x3d8ca9,..._0x3be600);const _0x11cea0=_0x2a4968['filter'](_0x504c2a=>'$graveyard'!=_0x504c2a['root']['rootName']);_0x11cea0['length']>0x0&&_0x545459['setSelection'](_0x11cea0);for(const _0x503ab3 of _0x2a4968)_0x503ab3['detach']();});};}['_getCoordsForCells'](_0x1b3875){const _0x3d4111=this['editor']['plugins']['get']('TableUtils');let _0x23a509=Number['MAX_SAFE_INTEGER'],_0x25fd6e=Number['MIN_SAFE_INTEGER'],_0x4366dd=Number['MAX_SAFE_INTEGER'],_0xb72b58=Number['MIN_SAFE_INTEGER'];for(const _0xc8945c of _0x1b3875){if('$graveyard'==_0xc8945c['root']['rootName'])continue;const {row:_0x389b9c,column:_0x263a0e}=_0x3d4111['getCellLocation'](_0xc8945c),_0x4962ac=_0xc8945c['hasAttribute']('rowspan')?_0xc8945c['getAttribute']('rowspan')-0x1:0x0,_0xa5c037=_0xc8945c['hasAttribute']('colspan')?_0xc8945c['getAttribute']('colspan')-0x1:0x0;_0x23a509=_0x389b9c<_0x23a509?_0x389b9c:_0x23a509,_0x25fd6e=_0x389b9c+_0x4962ac>_0x25fd6e?_0x389b9c+_0x4962ac:_0x25fd6e,_0x4366dd=_0x263a0e<_0x4366dd?_0x263a0e:_0x4366dd,_0xb72b58=_0x263a0e+_0xa5c037>_0xb72b58?_0x263a0e+_0xa5c037:_0xb72b58;}return{'minRow':_0x23a509,'maxRow':_0x25fd6e,'minColumn':_0x4366dd,'maxColumn':_0xb72b58};}['_setupColumnsRowsFixing'](){const _0x1562e4=this['editor'],_0x185c2c=_0x1562e4['plugins']['get']('TrackChangesEditing'),_0x4bb038=_0x1562e4['plugins']['get']('TableUtils');_0x1562e4['model']['document']['on']('change:data',()=>{const _0x1fd70c=Array['from'](_0x1562e4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa6bcaa,data:_0x2c7580}of _0x1fd70c){const {group:_0x4c5bfe,id:_0x3e3a92,subType:_0x3c53f0}=_0x185c2c['_splitMarkerName'](_0xa6bcaa);if('suggestion'!=_0x4c5bfe)continue;if(null!=_0x2c7580['oldRange'])continue;const _0x423ebf=_0x185c2c['getSuggestion'](_0x3e3a92);this['_tablePostFixingSubtypes']['includes'](_0x3c53f0)&&this['_tableSuggestions']['add'](_0x423ebf);}},{'priority':'low'});const _0x4a68d2=(_0x4ad702,_0x4fc7a3)=>{let _0x40486c=!0x1;const _0x36c8d2=_0x4fc7a3['createRangeOn'](_0x4ad702),_0x3d943c=_0x4ad702['findAncestor']('table'),_0x214b41=_0x4bb038['getCellLocation'](_0x4ad702);for(const _0x2ac037 of this['_tableSuggestions']){const _0x3571ff=_0x2ac037['subType'],_0x30722a=_0x3571ff['startsWith']('tablePaste'),_0x4942e8=_0x3571ff['substr'](_0x30722a?0xa:0x5),_0x3b7b04=_0x4942e8['toLowerCase'](),_0x27dc24=_0x3b7b04['substr'](0x0,0x3)+'span',_0x5a7f3f='min'+_0x4942e8,_0x3b9775='max'+_0x4942e8;if(!_0x2ac037['isInContent'])continue;if(_0x3d943c!=_0x2ac037['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ac037['isIntersectingWithRange'](_0x36c8d2))continue;const _0x3643ec=_0x4ad702['hasAttribute'](_0x27dc24)?_0x4ad702['getAttribute'](_0x27dc24)-0x1:0x0,_0x1b07fa=this['_getSuggestionCoords'](_0x2ac037),_0x56efcf=_0x1b07fa[_0x5a7f3f],_0x211623=_0x1b07fa[_0x3b9775];_0x56efcf<=_0x214b41[_0x3b7b04]&&_0x214b41[_0x3b7b04]+_0x3643ec<=_0x211623&&(_0x2ac037['addRange'](_0x36c8d2),_0x40486c=!0x0);}return _0x40486c;};_0x1562e4['model']['document']['registerPostFixer'](_0x31bf62=>{let _0x58647f=!0x1;for(const _0x286e77 of _0x1562e4['model']['document']['differ']['getChanges']())if('insert'==_0x286e77['type']){if('tableRow'==_0x286e77['name']){for(const _0x16b5d9 of _0x286e77['position']['nodeAfter']['getChildren']())_0x58647f=_0x58647f||_0x4a68d2(_0x16b5d9,_0x31bf62);}else'tableCell'==_0x286e77['name']&&(_0x58647f=_0x58647f||_0x4a68d2(_0x286e77['position']['nodeAfter'],_0x31bf62));}return _0x58647f;});}['_getSuggestionCoords'](_0xe33f60){return this['_getCoordsForCells'](_0xe33f60['getRanges']()['map'](_0x4ba819=>_0x4ba819['start']['nodeAfter']));}}function Ee(_0x3118ed){return Array['from'](new Set(_0x3118ed)['values']());}class St extends _0x1c3a28{static get['requires'](){return[jt];}['afterInit'](){const _0x133de9=this['editor'],_0xe5483d=_0x133de9['model']['document']['selection'],_0x8eb8d=_0x133de9['locale'];if(!_0x133de9['plugins']['has']('TableEditing'))return;const _0x9639cf=_0x133de9['plugins']['get']('TrackChangesEditing'),_0x4c9554=_0x133de9['plugins']['get']('TableUtils'),_0x120eaa=_0x133de9['plugins']['get'](jt);_0x120eaa['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9639cf['enableCommand']('mergeTableCells',()=>{const _0x4f295b=_0x4c9554['getSelectionAffectedTableCells'](_0x133de9['model']['document']['selection']);_0x133de9['model']['change'](()=>{_0x9639cf['markMultiRangeBlockFormat'](_0x4f295b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x133de9['commands']['get']('mergeTableCells')['on']('execute',(_0x1cdd1f,_0x537555)=>{_0x133de9['commands']['get']('trackChanges')['value']&&(_0x537555['length']>0x0&&_0x537555[_0x537555['length']-0x1]&&_0x537555[_0x537555['length']-0x1]['forceDefaultExecution']||_0x9639cf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1cdd1f['stop']());},{'priority':'highest'});for(const _0x48c675 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x303d25=_0x133de9['commands']['get'](_0x48c675);_0x9639cf['enableCommand'](_0x48c675,()=>{const _0x365bb2=_0x133de9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x52f8df=>_0x52f8df['is']('element','tableCell')),_0x2361fd=_0x303d25['value'];_0x133de9['model']['change'](()=>{_0x9639cf['markMultiRangeBlockFormat']([_0x365bb2,_0x2361fd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4cc51b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4af667=_0x133de9['commands']['get'](_0x4cc51b);_0x9639cf['enableCommand'](_0x4cc51b,()=>{const _0x3e7a9c=_0x4c9554['getSelectionAffectedTableCells'](_0x133de9['model']['document']['selection'])[0x0],_0x136fa2=_0x3e7a9c['findAncestor']('table'),{column:_0x485764,row:_0x2f95d6}=_0x4c9554['getCellLocation'](_0x3e7a9c);let _0x507147=[];if('horizontally'==_0x4af667['direction']){const _0x134abd=_0x4c9554['createTableWalker'](_0x136fa2,{'startRow':_0x2f95d6,'endRow':_0x2f95d6,'includeAllSlots':!0x0});_0x507147=Array['from'](_0x134abd)['map'](_0x5ba020=>_0x5ba020['cell']);}else{const _0x4a0fdf=_0x4c9554['createTableWalker'](_0x136fa2,{'column':_0x485764,'includeAllSlots':!0x0});_0x507147=Array['from'](_0x4a0fdf)['map'](_0x21ea9a=>_0x21ea9a['cell']);}_0x133de9['model']['change'](_0x74b9ab=>{_0x9639cf['markBlockFormat'](_0x74b9ab['createRangeOn'](_0x3e7a9c),{'commandName':_0x4cc51b,'commandParams':[]},_0x507147,_0x4cc51b);});});}_0x9639cf['descriptionFactory']['registerDescriptionCallback'](_0x3c2842=>{if('formatBlock'!=_0x3c2842['type']&&'formatInline'!=_0x3c2842['type'])return;const {data:_0x106aab}=_0x3c2842;return _0x106aab&&'mergeTableCells'==_0x106aab['commandName']?{'type':'format','content':o(_0x8eb8d,'*Merge\x20cells*')}:void 0x0;}),_0x9639cf['descriptionFactory']['registerDescriptionCallback'](_0x3cc1d8=>{if('formatBlock'!=_0x3cc1d8['type']&&'formatInline'!=_0x3cc1d8['type'])return;const {data:_0x54160b}=_0x3cc1d8;return _0x54160b?'splitTableCellVertically'==_0x54160b['commandName']?{'type':'format','content':o(_0x8eb8d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54160b['commandName']?{'type':'format','content':o(_0x8eb8d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x50a847=_0x120eaa['_acceptFormatSuggestionCallbackFactory']();for(const _0x1ae111 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9639cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ae111,'accept',_0x50a847);for(const _0x53655d of['splitTableCellVertically','splitTableCellHorizontally'])_0x9639cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53655d,'accept',_0x50a847);_0x9639cf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x168aea=>{_0x133de9['model']['change'](_0x4c34f6=>{const _0x5b7be4=Array['from'](_0xe5483d['getRanges']())['map'](_0xe512a4=>_0x5b9e67['fromRange'](_0xe512a4));_0x4c34f6['setSelection'](_0x168aea),_0x133de9['commands']['get']('mergeTableCells')['refresh'](),_0x133de9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22a7c0=_0x5b7be4['filter'](_0x296e0b=>'$graveyard'!=_0x296e0b['root']['rootName']);_0x22a7c0['length']>0x0&&_0x4c34f6['setSelection'](_0x22a7c0);for(const _0x43cf92 of _0x5b7be4)_0x43cf92['detach']();});});for(const _0x479842 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3d5775=_0x133de9['commands']['get'](_0x479842);_0x3d5775['on']('set:isEnabled',(_0x266738,_0x2dfc30,_0x482ebc)=>{if(_0x482ebc){const _0x1c5794=_0x133de9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x99df3d=>_0x99df3d['is']('element','tableCell'));this['_areMergableCells'](_0x3d5775['value'],_0x1c5794)||(_0x266738['return']=!0x1,_0x266738['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x27c352=this['editor']['commands']['get']('mergeTableCells'),_0x17c8e8=this['editor']['plugins']['get']('TableUtils');if(!_0x27c352['isEnabled'])return!0x1;const _0x5764e2=_0x17c8e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x51fc69 of _0x5764e2)for(const _0x358230 of _0x5764e2)if(_0x51fc69!=_0x358230&&!this['_areMergableCells'](_0x51fc69,_0x358230))return!0x1;return!0x0;}['_areMergableCells'](_0xbeb88e,_0x5d7978){const _0x59f212=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ccba0=this['editor']['model']['createRangeOn'](_0xbeb88e),_0x224060=this['editor']['model']['createRangeOn'](_0x5d7978),_0x302bea=new Set(),_0x459648=new Set();for(const _0x15e402 of _0x59f212['getSuggestions']())if(('insertion'==_0x15e402['type']||'deletion'==_0x15e402['type']||'mergeTableCells'==_0x15e402['subType'])&&_0x15e402['isInContent']){for(const _0x308e75 of _0x15e402['getRanges']())_0x308e75['containsRange'](_0x2ccba0,!0x0)&&_0x302bea['add'](_0x15e402['type']+':'+_0x15e402['author']['id']),_0x308e75['containsRange'](_0x224060,!0x0)&&_0x459648['add'](_0x15e402['type']+':'+_0x15e402['author']['id']);}if(_0x302bea['size']!=_0x459648['size'])return!0x1;for(const _0x3751e7 of _0x302bea)if(!_0x459648['has'](_0x3751e7))return!0x1;return!0x0;}}class At extends _0x1c3a28{static get['requires'](){return[jt];}['afterInit'](){const _0x40d68c=this['editor'];if(!_0x40d68c['plugins']['has']('TableEditing'))return;const _0x33b159=_0x40d68c['locale'],_0x4d82c9=_0x40d68c['plugins']['get']('TrackChangesEditing');_0x4d82c9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4d82c9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4d82c9['registerBlockAttribute']('headingRows'),_0x4d82c9['registerBlockAttribute']('headingColumns'),_0x4d82c9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x33b159,'FORMAT_HEADER_ROW')),_0x4d82c9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x33b159,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43d0f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c2a6b=this['editor']['plugins']['get']('TableUtils'),_0x10a01f=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x23152d({showActiveMarker:_0x569eca=!0x0,setDataAttribute:_0x463573=!0x0}={}){return(_0x361649,_0x272b95,_0x41ecb3)=>{const {type:_0x2fe547,id:_0x4c4f4e}=_0x43d0f0['_splitMarkerName'](_0x272b95['markerName']),_0x344bb3=_0x43d0f0['getSuggestion'](_0x4c4f4e),_0x3bc399=_0x344bb3['data'];if('formatBlock'!=_0x344bb3['type']||!_0x3bc399||'setTableColumnHeader'!=_0x3bc399['commandName'])return;if(_0x272b95['item'])return void _0x361649['stop']();if(!_0x41ecb3['consumable']['consume'](_0x272b95['markerRange'],_0x361649['name']))return;const _0x17fc24=_0x272b95['markerRange']['start']['nodeAfter'],_0x38aa73=_0x272b95['markerRange']['end']['nodeBefore'],_0x429db6=_0x17fc24['parent']['parent'],{column:_0x26bc85}=_0x1c2a6b['getCellLocation'](_0x17fc24),{column:_0x5d6f2a}=_0x1c2a6b['getCellLocation'](_0x38aa73);for(let _0x178b9c=_0x26bc85;_0x178b9c<=_0x5d6f2a;_0x178b9c++){const _0x54399d=_0x1c2a6b['createTableWalker'](_0x429db6,{'column':_0x178b9c,'includeAllSlots':!0x1});for(const _0x1cc80c of _0x54399d){const _0x426d6f=_0x1cc80c['cell'],_0x5cb4aa=_0x41ecb3['mapper']['toViewElement'](_0x426d6f);_0x41ecb3['writer']['addClass']('ck-suggestion-marker-'+_0x2fe547,_0x5cb4aa),_0x463573&&_0x41ecb3['writer']['setAttribute']('data-suggestion',_0x4c4f4e,_0x5cb4aa),_0x41ecb3['mapper']['bindElementToMarker'](_0x5cb4aa,_0x272b95['markerName']),_0x569eca&&(_0x43d0f0['activeMarkers']['includes'](_0x272b95['markerName'])?_0x41ecb3['writer']['addClass']('ck-suggestion-marker--active',_0x5cb4aa):_0x41ecb3['writer']['removeClass']('ck-suggestion-marker--active',_0x5cb4aa));}}};}_0x43d0f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x10a01f),_0x43d0f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x10a01f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x23152d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22c815,_0x1c2c08,_0x44240a)=>{_0x44240a['options']['showSuggestionHighlights']&&_0x23152d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x22c815,_0x1c2c08,_0x44240a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x24b5ef,_0x3a2112,_0x7eee5a)=>{const {type:_0x5eaa7a,id:_0x1b8a15}=_0x43d0f0['_splitMarkerName'](_0x3a2112['markerName']),_0x4b39af=_0x43d0f0['getSuggestion'](_0x1b8a15),_0x564a81=_0x4b39af['data'];if('formatBlock'!=_0x4b39af['type']||!_0x564a81||'setTableColumnHeader'!=_0x564a81['commandName'])return;const _0x3ec0a7=_0x7eee5a['mapper']['markerNameToElements'](_0x3a2112['markerName']);if(_0x3ec0a7){for(const _0xacf9c of _0x3ec0a7)_0x7eee5a['writer']['removeClass']('ck-suggestion-marker-'+_0x5eaa7a,_0xacf9c),_0x7eee5a['writer']['removeClass']('ck-suggestion-marker--active',_0xacf9c),_0x7eee5a['writer']['removeAttribute']('data-suggestion',_0xacf9c),_0x7eee5a['mapper']['unbindElementFromMarkerName'](_0xacf9c,_0x3a2112['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59058f=this['editor'],_0x18eeed=_0x59058f['locale'];function _0x472abf(_0x21a3f9){return{'type':'format','content':o(_0x18eeed,'*Format:*\x20%0',_0x21a3f9)};}_0x59058f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcc9099=>{if('formatBlock'!=_0xcc9099['type'])return;const {data:_0x53dafc}=_0xcc9099;if(_0x53dafc){if('setTableRowHeader'==_0x53dafc['commandName']){const _0x179dbd=_0x53dafc['commandParams'][0x0]['forceValue'];return _0x472abf(o(_0x18eeed,_0x179dbd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53dafc['commandName']){const _0x2adb06=_0x53dafc['commandParams'][0x0]['forceValue'];return _0x472abf(o(_0x18eeed,_0x2adb06?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5d2236=>[_0x5d2236,null]));class It extends _0x1c3a28{static get['requires'](){return[jt];}['afterInit'](){const _0x1415c1=this['editor'];if(!_0x1415c1['plugins']['has']('TableClipboard'))return;const _0xdcefc1=_0x1415c1['plugins']['get']('TrackChangesEditing'),_0x2f0f36=_0x1415c1['plugins']['get']('TableUtils'),_0x3116da=_0x1415c1['plugins']['get'](jt),_0x3caee6=_0x1415c1['plugins']['get']('TableClipboard');_0x3116da['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1415c1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1415c1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xf3f97d=null;_0x1415c1['model']['on']('insertContent',(_0x13467b,_0x284f3a)=>{const [_0x305335,_0x3265c8]=_0x284f3a,_0x39ca19=_0x284f3a[_0x284f3a['length']-0x1];_0x39ca19&&_0x39ca19['forceDefaultExecution']||_0xdcefc1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x117c22,_0x4c9be4,_0x17429a,_0x476b4e,_0x210787){if(_0x4c9be4&&!_0x4c9be4['is']('documentSelection'))return!0x1;const _0x23de88=_0x210787['getTableIfOnlyTableInContent'](_0x117c22,_0x17429a);if(!_0x23de88||!he(_0x23de88,void 0x0,_0x476b4e))return!0x1;const _0x4f6d37=_0x476b4e['getSelectionAffectedTableCells'](_0x17429a['document']['selection']);if(!_0x4f6d37['length'])return!0x1;const _0x323f60=_0x4f6d37[0x0]['findAncestor']('table'),_0x587c2c=_0x476b4e['getRowIndexes'](_0x4f6d37),_0x2d5af0=_0x476b4e['getColumnIndexes'](_0x4f6d37),_0x66444e={'startRow':_0x587c2c['first'],'endRow':_0x587c2c['last'],'startColumn':_0x2d5af0['first'],'endColumn':_0x2d5af0['last']};return 0x1==_0x4f6d37['length']&&(_0x66444e['endRow']+=_0x476b4e['getRows'](_0x23de88)-0x1,_0x66444e['endColumn']+=_0x476b4e['getColumns'](_0x23de88)-0x1),he(_0x323f60,_0x66444e,_0x476b4e);}(_0x305335,_0x3265c8,_0x1415c1['model'],_0x2f0f36,_0x3caee6)&&(_0x13467b['stop'](),_0xf3f97d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1415c1['model']['change'](()=>{_0x1415c1['model']['insertContent'](_0x284f3a[0x0],_0x284f3a[0x1],_0x284f3a[0x2],{'forceDefaultExecution':!0x0});const _0x54b4a3=_0x15362b(),{rowInsertionRanges:_0x4658c4,columnInsertionRanges:_0x1df327,insertionRanges:_0x320e52,deletionRanges:_0x58d73b,cells:_0x18f227}=_0xf3f97d;_0x4658c4['length']&&_0xdcefc1['markMultiRangeInsertion'](_0x4658c4,'tablePasteRow',{'tablePasteChainId':_0x54b4a3}),_0x1df327['length']&&_0xdcefc1['markMultiRangeInsertion'](_0x1df327,'tablePasteColumn',{'tablePasteChainId':_0x54b4a3}),_0x320e52['length']&&(_0xdcefc1['markMultiRangeInsertion'](_0x320e52,'tablePaste',{'tablePasteChainId':_0x54b4a3,'skipNestingCheck':!0x0}),_0x320e52['forEach'](_0x531beb=>_0x531beb['detach']?.())),_0x58d73b['length']&&(_0xdcefc1['markMultiRangeDeletion'](_0x58d73b,'tablePaste',{'tablePasteChainId':_0x54b4a3,'skipNestingCheck':!0x0}),_0x58d73b['forEach'](_0x1ae685=>_0x1ae685['detach']?.()));const _0x2c2846=_0xdcefc1['markMultiRangeBlockFormat'](_0x18f227['map'](({element:_0x953f97})=>_0x953f97),{'formatGroupId':_0x15362b()},[],'tablePasteCell',{'tablePasteChainId':_0x54b4a3});if(_0x2c2846){const _0x219772=_0x2c2846['getMarkers'](),_0x19d186=[];for(const {element:_0x3aff8c,attributes:_0x1ca437}of _0x18f227){if(!_0x1ca437)continue;const _0xb62465=_0x1415c1['model']['createRangeOn'](_0x3aff8c),_0x1d7c4b=_0x219772['find'](_0x9d3eb4=>_0x9d3eb4['getRange']()['isEqual'](_0xb62465));_0x1d7c4b&&_0x19d186['push']([_0x1d7c4b['name'],_0x1ca437]);}_0x19d186['length']&&_0x2c2846['setAttribute']('markerAttributes',Object['fromEntries'](_0x19d186));}_0xf3f97d=null;}));},{'priority':_0x3304ea['high']+0xa}),_0x1415c1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2dd30d,_0x62d2b4)=>{const [_0x5511f9,_0x13b768,,_0xae2549]=_0x62d2b4;if(!_0xf3f97d)return;_0x2dd30d['stop']();const _0x2926d5=_0x5511f9['cell'],_0x49ddd4=_0x13b768,_0x43a580=Pe(_0x2926d5),_0x3cecf6=Pe(_0x49ddd4);_0x2dd30d['return']=_0x2926d5;let _0x15ea2d=null,_0x4d1379=null;if(_0x3cecf6||_0x43a580){if(_0x43a580&&!_0x3cecf6){_0xae2549['remove'](_0x2926d5['getChild'](0x0));for(const _0x907136 of Array['from'](_0x49ddd4['getChildren']()))_0xae2549['insert'](_0x907136,_0x2926d5,'end');const _0x564cd7=_0xf3f97d['rowInsertionIndexes']['includes'](_0x5511f9['row']),_0x3ef8db=_0xf3f97d['columnInsertionIndexes']['includes'](_0x5511f9['column']);_0x564cd7||_0x3ef8db||(_0x15ea2d=_0x5b9e67['fromRange'](_0xae2549['createRangeIn'](_0x2926d5)));}else _0x3cecf6&&!_0x43a580&&(_0x4d1379=_0xae2549['createRangeIn'](_0x2926d5));}else{const _0x4b564c=_0xae2549['createElement']('tableCellSuggestion'),_0x57a04a=_0xae2549['createElement']('tableCellSuggestion');_0xae2549['wrap'](_0xae2549['createRangeIn'](_0x2926d5),_0x57a04a),_0xae2549['insert'](_0x4b564c,_0x2926d5,0x0);for(const _0x324cdf of Array['from'](_0x49ddd4['getChildren']()))_0xae2549['insert'](_0x324cdf,_0x4b564c,'end');_0x15ea2d=_0x5b9e67['fromRange'](_0xae2549['createRangeOn'](_0x4b564c)),_0x4d1379=_0x5b9e67['fromRange'](_0xae2549['createRangeOn'](_0x57a04a));}const _0x4dbb6=Array['from'](_0x49ddd4['getAttributes']())['filter'](([_0x149885])=>ge['includes'](_0x149885));_0xf3f97d['cells']['push']({'element':_0x2926d5,'attributes':_0x4dbb6['length']?Object['fromEntries'](_0x4dbb6):null}),_0x15ea2d&&_0xf3f97d['insertionRanges']['push'](_0x15ea2d),_0x4d1379&&_0xf3f97d['deletionRanges']['push'](_0x4d1379);},{'priority':'high'}),_0x2f0f36['on']('insertColumns',(_0x2418ca,_0x37682f)=>{const [_0x4c8eab,_0x38ab2d={}]=_0x37682f;if(!_0xf3f97d)return;const _0xe8992d=_0x38ab2d['at']||0x0,_0xe0f7ef=_0x38ab2d['columns']||0x1;_0xf3f97d['columnInsertionIndexes']=new Array(_0xe0f7ef)['fill'](_0xe8992d)['map']((_0x5e9820,_0x12fab6)=>_0x5e9820+_0x12fab6);for(const {cell:_0x376ed4}of _0x2f0f36['createTableWalker'](_0x4c8eab,{'startColumn':_0xe8992d,'endColumn':_0xe8992d+_0xe0f7ef-0x1}))_0xf3f97d['columnInsertionRanges']['push'](_0x1415c1['model']['createRangeOn'](_0x376ed4));},{'priority':'low'}),_0x2f0f36['on']('insertRows',(_0x3a7ddf,_0x69b901)=>{const [_0x31b439,_0x4d6ab7={}]=_0x69b901;if(!_0xf3f97d)return;const _0x1bf71f=_0x4d6ab7['at']||0x0,_0x48bab3=_0x4d6ab7['rows']||0x1;_0xf3f97d['rowInsertionIndexes']=new Array(_0x48bab3)['fill'](_0x1bf71f)['map']((_0x337e5b,_0x5e82c8)=>_0x337e5b+_0x5e82c8);for(const {cell:_0x28e22f}of _0x2f0f36['createTableWalker'](_0x31b439,{'startRow':_0x1bf71f,'endRow':_0x1bf71f+_0x48bab3-0x1}))_0xf3f97d['rowInsertionRanges']['push'](_0x1415c1['model']['createRangeOn'](_0x28e22f));},{'priority':'low'}),_0xdcefc1['descriptionFactory']['registerDescriptionCallback'](_0x2d7517=>{if(_0x2d7517['subType']&&_0x2d7517['subType']['startsWith']('tablePaste'))return _0x2d7517['previous']?{}:{'type':'insertion','content':o(_0x1415c1['locale'],'*Replace\x20table\x20cells*')};});const _0x43b784=()=>!0x1;for(const _0x12bc48 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xdcefc1['_suggestionFactory']['registerCustomCallback']('insertion',_0x12bc48,'join',_0x43b784),_0xdcefc1['_suggestionFactory']['registerCustomCallback']('deletion',_0x12bc48,'join',_0x43b784),_0xdcefc1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12bc48,'join',_0x43b784);_0xdcefc1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43b784),_0xdcefc1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x224746,_0x3b40cf,_0x298cdc)=>{const _0x41863c=_0x224746['map'](_0x176680=>_0x176680['getContainedElement']())['filter'](_0x46d218=>_0x46d218),_0x1140a5=new Map(_0x41863c['map'](_0x3e563e=>[_0x3e563e,null]));if(_0xf3f97d){for(const {element:_0x56c505,attributes:_0x5890ca}of _0xf3f97d['cells'])_0x5890ca&&_0x1140a5['set'](_0x56c505,_0x5890ca);}else{if(_0x298cdc&&_0x298cdc['markerAttributes'])for(const [_0x277606,_0x104f5a]of Object['entries'](_0x298cdc['markerAttributes'])){const _0x544467=_0x1415c1['model']['markers']['get'](_0x277606),_0x5358e3=_0x544467?_0x544467['getRange']()['getContainedElement']():null;_0x5358e3&&_0x1140a5['set'](_0x5358e3,_0x104f5a);}}_0x1415c1['model']['change'](_0xfe8dbc=>{for(const [_0x3ad221,_0x193361]of _0x1140a5)_0xfe8dbc['setAttributes']({...Ce,..._0x193361},_0x3ad221);});});const _0x455dbb=(_0xf47234,_0xc710e1)=>{_0xdcefc1['_suggestionFactory']['registerCustomCallback'](_0xf47234,'tablePaste',_0xc710e1,(_0x7b4d4b,_0x14c9a9,_0x3ef6b8)=>{_0x1415c1['model']['change'](_0xc966=>{const _0x4db59e=[];for(const _0x2f1732 of _0x7b4d4b){const _0x2ca2ac=_0x2f1732['start']['nodeAfter'];_0x2ca2ac['is']('element','tableCellSuggestion')&&_0x4db59e['push'](_0x2ca2ac);}_0xdcefc1['_suggestionFactory']['getSuggestionCallback'](_0xf47234,null,_0xc710e1)(_0x7b4d4b,_0x14c9a9,_0x3ef6b8);for(const _0xb5ac97 of _0x4db59e)'$graveyard'!=_0xb5ac97['root']['rootName']&&_0xc966['unwrap'](_0xb5ac97);});});};_0x455dbb('insertion','accept'),_0x455dbb('insertion','discard'),_0x455dbb('deletion','accept'),_0x455dbb('deletion','discard'),_0xdcefc1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x239cb3=>{const _0x7ec2ed=_0x239cb3['map'](_0x31c64b=>_0x31c64b['getContainedElement']()),_0x4c29b6=_0x7ec2ed[0x0]['findAncestor']('table'),{minRow:_0x1d84a7,maxRow:_0x212ddb}=_0x3116da['_getCoordsForCells'](_0x7ec2ed);_0x2f0f36['removeRows'](_0x4c29b6,{'at':_0x1d84a7,'rows':_0x212ddb-_0x1d84a7+0x1});}),_0xdcefc1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3cd888=>{const _0x2a6413=_0x3cd888['map'](_0x7bbfe0=>_0x7bbfe0['getContainedElement']()),_0x2ba328=_0x2a6413[0x0]['findAncestor']('table'),{minColumn:_0x42de96,maxColumn:_0x4a0a92}=_0x3116da['_getCoordsForCells'](_0x2a6413);_0x2f0f36['removeColumns'](_0x2ba328,{'at':_0x42de96,'columns':_0x4a0a92-_0x42de96+0x1});});const _0x3f151b=(_0x3422e8,_0x8820ea)=>{if(!_0x8820ea['subType']||!_0x8820ea['subType']['startsWith']('tablePaste'))return;const _0x12dd71=_0x8820ea['attributes']['tablePasteChainId'],_0x52d20a=_0xdcefc1['getSuggestions']()['filter'](_0x49e6ae=>_0x49e6ae['isInContent']&&_0x49e6ae['attributes']&&_0x49e6ae['attributes']['tablePasteChainId']==_0x12dd71);_0x52d20a['length']&&_0x8820ea['getAllAdjacentSuggestions']()['length']!=_0x52d20a['length']&&_0x52d20a['reduce']((_0x86761b,_0x17d595)=>(_0x86761b['next']=_0x17d595,_0x17d595['previous']=_0x86761b,_0x17d595));};function _0x3d5edc(_0x13d2c1,_0x35a75b=!0x0){const {id:_0x52b87f}=_0xdcefc1['_splitMarkerName'](_0x13d2c1['markerName']),_0x264f8d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4554d4=_0xdcefc1['activeMarkers']['includes'](_0x13d2c1['markerName']);return _0x4554d4&&_0x264f8d['push']('ck-suggestion-marker--active'),{'classes':_0x264f8d,'attributes':{'data-suggestion':_0x52b87f},'priority':_0x4554d4&&_0x35a75b?0xbc2:0xbb8};}_0xdcefc1['on']('suggestionLoaded',_0x3f151b,{'priority':'high'}),_0xdcefc1['on']('suggestionUnloaded',_0x3f151b,{'priority':'high'}),_0x1415c1['model']['document']['registerPostFixer'](()=>{let _0x10538a=!0x1;const _0x2bb68e=Array['from'](_0x1415c1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f1948,data:_0x11d34}of _0x2bb68e){const {group:_0xefd93d,type:_0x24f772,id:_0x575c73}=_0xdcefc1['_splitMarkerName'](_0x1f1948);if('suggestion'!=_0xefd93d||'deletion'!=_0x24f772||_0x11d34['oldRange'])continue;if(!_0xdcefc1['hasSuggestion'](_0x575c73))continue;const _0x32b1ff=_0xdcefc1['getSuggestion'](_0x575c73)['getRanges'](),_0x3554a6=_0x1415c1['plugins']['get']('Users')['me'];for(const _0x35958d of _0xdcefc1['getSuggestions']()){if(!_0x35958d['isInContent']||_0x35958d['author']!=_0x3554a6)continue;if('formatBlock'!=_0x35958d['type']||'tablePasteCell'!=_0x35958d['subType'])continue;if(_0x35958d['getRanges']()['every'](_0x3b0877=>_0x32b1ff['some'](_0x5302b6=>_0x5302b6['containsRange'](_0x3b0877,!0x0)))){for(const _0x5d0216 of _0x35958d['getAllAdjacentSuggestions']())_0x5d0216['isInContent']&&(_0x5d0216['discard'](),_0x10538a=!0x0);}}}return _0x10538a;}),_0x1415c1['model']['document']['registerPostFixer'](_0x56c171=>{const _0x2aebac=_0x1415c1['commands']['get']('redo');if(!_0x2aebac||!_0x2aebac['_createdBatches']['has'](_0x56c171['batch']))return!0x1;let _0x1b463d=!0x1;const _0x583025=_0x1415c1['plugins']['get']('Users')['me'],_0x23c4da=_0x1415c1['model']['document']['differ']['getChanges'](),_0x4c8cd9=Array['from'](_0x1415c1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4f4451,data:_0x532df9})=>{const {group:_0x52db7c,subType:_0x425d6a,authorId:_0x4e233a}=_0xdcefc1['_splitMarkerName'](_0x4f4451);return'suggestion'==_0x52db7c&&'tablePaste'==_0x425d6a&&_0x4e233a==_0x583025['id']&&!_0x532df9['oldRange'];});for(const _0x21133e of _0x23c4da){if('insert'!=_0x21133e['type']||'tableCellSuggestion'!=_0x21133e['name']||0x1!=_0x21133e['length'])continue;const _0x944df6=_0x56c171['createRange'](_0x21133e['position'],_0x21133e['position']['getShiftedBy'](0x1));if(!_0x4c8cd9['find'](({data:_0x473130})=>_0x473130['newRange']['isEqual'](_0x944df6))){for(const {name:_0xe2d5f8,data:_0x39a7ea}of _0x4c8cd9)if(_0x944df6['containsRange'](_0x39a7ea['newRange'])){_0x56c171['updateMarker'](_0xe2d5f8,{'range':_0x944df6}),_0x1b463d=!0x0;break;}}}return _0x1b463d;}),_0x1415c1['model']['document']['registerPostFixer'](_0x226132=>{let _0x30fc12=!0x1;const _0x19958a=_0x1415c1['plugins']['get']('Users')['me'],_0x52bb29=_0xdcefc1['getSuggestions']()['filter'](_0x2d10e8=>_0x2d10e8['isInContent']&&_0x2d10e8['author']==_0x19958a),_0x226a15=new Set(),_0x3f9c52=new Set();for(const _0x532481 of _0x52bb29)if('tablePaste'==_0x532481['subType'])for(const _0x1c15a1 of _0x532481['getMarkers']()){const _0x200134=_0x1c15a1['getRange']()['getContainedElement']();if(_0x200134){if(_0x200134['is']('element','tableCellSuggestion')&&Pe(_0x200134)){_0x532481['removeMarker'](_0x1c15a1['name']),_0x226a15['add'](_0x200134),_0x30fc12=!0x0;const _0x2ef834=_0x200134['nextSibling'],_0x37ce92=_0x200134['previousSibling'],_0xd43b7f=_0x2ef834&&_0x2ef834['is']('element','tableCellSuggestion'),_0x6969af=_0x37ce92&&_0x37ce92['is']('element','tableCellSuggestion');_0xd43b7f&&!_0x226a15['has'](_0x2ef834)&&_0x3f9c52['add'](_0x2ef834),_0x6969af&&!_0x226a15['has'](_0x37ce92)&&_0x3f9c52['add'](_0x37ce92);}else _0x200134['is']('element','paragraph')&&_0x200134['isEmpty']&&(_0x532481['removeMarker'](_0x1c15a1['name']),_0x30fc12=!0x0);}}else{if('tablePasteCell'==_0x532481['subType']){if(!_0x532481['attributes']||!_0x532481['attributes']['tablePasteChainId'])continue;const _0x588aa9=_0x532481['attributes']['markerAttributes'];if(_0x588aa9&&Object['keys'](_0x588aa9)['length'])continue;const _0x420223=_0x532481['attributes']['tablePasteChainId'];let _0x4afcf7=!0x0,_0xf55983=!0x0;for(const _0xcbfdb2 of _0x52bb29)if(_0xcbfdb2['subType']&&_0xcbfdb2['subType']['startsWith']('tablePaste')){if(!_0xcbfdb2['attributes']['tablePasteChainId']){_0xf55983=!0x1;break;}if(_0xcbfdb2['id']!=_0x532481['id']&&_0xcbfdb2['attributes']['tablePasteChainId']==_0x420223){_0x4afcf7=!0x1;break;}}_0xf55983&&_0x4afcf7&&(_0x532481['removeMarkers'](),_0x30fc12=!0x0);}}for(const _0x1343cd of _0x226a15)_0x226132['remove'](_0x1343cd);for(const _0x1305f4 of _0x3f9c52)_0x226132['unwrap'](_0x1305f4);return _0x30fc12;}),_0x1415c1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x452e1c,_0xa6c0e8)=>_0x3d5edc(_0x452e1c),'converterPriority':'high'}),_0x1415c1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x45eceb,_0x183704)=>_0x183704['options']['showSuggestionHighlights']?_0x3d5edc(_0x45eceb,!0x1):null,'converterPriority':'high'});const _0x132508=_0x1415c1['editing']['view'];this['listenTo'](_0x132508['document'],'clipboardOutput',(_0x448900,_0x141e1e)=>{const _0x28330b=[];for(const _0x5bc8de of _0x132508['createRangeIn'](_0x141e1e['content'])['getItems']())_0x5bc8de['is']('element','suggestion-td')&&_0x28330b['push'](_0x5bc8de);_0x132508['change'](_0x7bd17e=>{for(const _0x2c4b8b of _0x28330b)_0x7bd17e['move'](_0x7bd17e['createRangeIn'](_0x2c4b8b),_0x7bd17e['createPositionBefore'](_0x2c4b8b)),_0x7bd17e['remove'](_0x2c4b8b);});});}}function Pe(_0x1513db){if(_0x1513db['isEmpty'])return!0x0;const _0xcd0736=_0x1513db['getChild'](0x0);return _0xcd0736['is']('element','paragraph')&&_0xcd0736['isEmpty'];}function he(_0xa4960,_0x3764d1={},_0x40dd09){for(const {isAnchor:_0xd3a768,cellHeight:_0xf656ca,cellWidth:_0x513de3}of _0x40dd09['createTableWalker'](_0xa4960,{'includeAllSlots':!0x0,..._0x3764d1}))if(!_0xd3a768||0x1!=_0xf656ca||0x1!=_0x513de3)return!0x1;return!0x0;}class vt extends _0x1c3a28{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2fb275=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fb275['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2fb275['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2fb275['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fb275['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2fb275['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2fb275['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x442d71,_0xa21682){const _0x213383=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d4ce9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x42229a=_0xa21682['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x386149=_0x2d4ce9['getColumnGroupElement'](_0x42229a);let _0x3b9c47=_0x386149?_0x2d4ce9['getTableColumnsWidths'](_0x386149):null,_0x4d24a5=_0x42229a['getAttribute']('tableWidth')||null;const _0x38870a=_0xa21682['tableWidth']||_0x4d24a5,_0x2c90d1=_0xa21682['columnWidths']||_0x3b9c47,_0x592a8b=this['editor']['plugins']['get']('Users')['me'];for(const _0x126440 of _0x213383['getSuggestions']()){const _0x40e803=_0x126440['getContainedElement']();if('resizeTable'===_0x126440['subType']&&_0x40e803===_0x42229a){_0x126440['author']!==_0x592a8b&&_0x126440['discard']();const _0x4fae12=_0x126440['data']['commandParams'];_0x4d24a5=_0x4fae12[0x0]['tableWidth'],_0x3b9c47=_0x4fae12[0x0]['columnWidths'];break;}}_0x442d71({'table':_0x42229a,'tableWidth':_0x38870a,'columnWidths':_0x2c90d1}),_0x213383['markBlockFormat'](_0x42229a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4d24a5,'columnWidths':_0x3b9c47}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x166a6a){if('formatBlock'!=_0x166a6a['type']&&'formatInline'!=_0x166a6a['type'])return;const {data:_0xf7fb68}=_0x166a6a;if(_0xf7fb68&&'resizeTable'===_0xf7fb68['formatGroupId']){const _0x59224c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x59224c)};}}}class Ct extends _0x1c3a28{['afterInit'](){const _0x1c1aa6=this['editor'];_0x1c1aa6['plugins']['has']('Template')&&_0x1c1aa6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1c3a28{['afterInit'](){const _0x2479ce=this['editor'];if(!_0x2479ce['commands']['get']('insertTableOfContents'))return;_0x2479ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x379b8f=_0x2479ce['plugins']['get']('TrackChangesEditing'),_0x2a3dc8=_0x2479ce['locale'];_0x379b8f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x52b68a=>o(_0x2a3dc8,'ELEMENT_TABLE_OF_CONTENTS',_0x52b68a));}}class Dt extends _0x1c3a28{['afterInit'](){const _0x57ae43=this['editor'];if(!_0x57ae43['plugins']['has']('Title'))return;const _0x455be5=_0x57ae43['plugins']['get']('TrackChangesEditing');_0x455be5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x57ae43['locale'],'ELEMENT_TITLE')),_0x57ae43['model']['document']['registerPostFixer'](_0x232c51=>{let _0x145eae=!0x1;const _0x4430c=Array['from'](_0x57ae43['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d23aa,data:_0x4ca792}of _0x4430c){const {group:_0x1f521a}=_0x455be5['_splitMarkerName'](_0x5d23aa);if('suggestion'!==_0x1f521a||!_0x4ca792['newRange'])continue;const _0x37c4f7=_0x4ca792['newRange'],_0x31dd8b=_0x37c4f7['end']['nodeBefore'];if(!_0x31dd8b||!_0x31dd8b['is']('element','title-content'))continue;if(!_0x37c4f7['start']['isTouching'](_0x37c4f7['end']))continue;const _0x48f5dd=_0x57ae43['model']['schema']['getNearestSelectionRange'](_0x37c4f7['end'],'forward');if(_0x48f5dd&&_0x48f5dd['isCollapsed']){const _0x1cf5a2=_0x232c51['createRange'](_0x37c4f7['start'],_0x48f5dd['start']);_0x1cf5a2['isEqual'](_0x37c4f7)||(_0x232c51['updateMarker'](_0x5d23aa,{'range':_0x1cf5a2}),_0x145eae=!0x0);}_0x145eae||(_0x232c51['removeMarker'](_0x5d23aa),_0x145eae=!0x0);}return _0x145eae;});}}class Nt extends _0x1c3a28{['afterInit'](){const _0x7aced1=this['editor'],_0x35aac5=_0x7aced1['plugins']['get']('TrackChangesEditing');_0x7aced1['plugins']['has']('UndoEditing')&&(_0x35aac5['enableCommand']('undo'),_0x35aac5['enableCommand']('redo'));}}class Mt extends _0x1c3a28{static get['requires'](){return[jt];}['afterInit'](){const _0xaeb512=this['editor'];if(!_0xaeb512['plugins']['has']('TableCaptionEditing'))return;_0xaeb512['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1c3a28{['tableProperties'];['tableCellProperties'];constructor(_0x975ab0){super(_0x975ab0),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 _0x776997=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x14f689 of this['tableProperties'])_0x776997['enableCommand'](_0x14f689,(_0x46948,_0x4f0a9a)=>{const _0x35e9ac=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x14f689,[_0x35e9ac],this['tableProperties'],'tableProperties',_0x46948,_0x4f0a9a);});_0x776997['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x776997['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x776997['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x291e90,_0x1c9081)=>this['handleDiscardAction'](this['tableProperties'],_0x291e90,_0x1c9081)),_0x776997['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3e492f of this['tableCellProperties'])_0x776997['enableCommand'](_0x3e492f,(_0x4e5ded,_0x1fea6f)=>{const _0x44969a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3e492f,_0x44969a,this['tableCellProperties'],'tableCellProperties',_0x4e5ded,_0x1fea6f);});_0x776997['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x776997['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x776997['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3e1c1a,_0x5aa6c3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3e1c1a,_0x5aa6c3)),_0x776997['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x776997['descriptionFactory']['registerDescriptionCallback'](_0x2bc8d7=>this['handleSuggestionDescription'](_0x2bc8d7));}['_handlePropertyChange'](_0x3fbd5f,_0x3d0a06,_0x3da50c,_0x32fda1,_0x195094,_0x329a10){const _0x30b8bc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x329a10['batch'],()=>{for(const _0x5b5a68 of _0x3d0a06){if(this['_getSuggestion'](_0x5b5a68,_0x32fda1))_0x195094(_0x329a10);else{const _0xf9fca2={};for(const _0x21bcf2 of _0x3da50c){const _0x166572=_0x5b5a68['getAttribute'](_0x21bcf2);void 0x0!==_0x166572&&(_0xf9fca2[_0x21bcf2]=_0x166572);}_0x195094(_0x329a10),_0x30b8bc['markBlockFormat'](_0x5b5a68,{'commandParams':[_0xf9fca2]},[],_0x32fda1);}}});}['handleDiscardAction'](_0x3b59da,_0x4d0f02,_0x2c53a5){const _0x51e741=_0x4d0f02[0x0]['start']['nodeAfter'],_0x3fe0ae=_0x2c53a5['commandParams'][0x0];this['editor']['model']['change'](_0x511805=>{for(const _0xda5d97 of _0x3b59da)void 0x0!==_0x3fe0ae[_0xda5d97]?_0x511805['setAttribute'](_0xda5d97,_0x3fe0ae[_0xda5d97],_0x51e741):_0x511805['removeAttribute'](_0xda5d97,_0x51e741);});}['handleSuggestionDescription'](_0x37e254){if(_0x37e254['data'])switch(_0x37e254['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'](_0x4c15f7,_0x207d9a){const _0x2dbf23=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1a1956 of _0x2dbf23['getSuggestions']({'skipNotAttached':!0x0})){const _0x54e87a=_0x1a1956['getContainedElement']();if(_0x1a1956['subType']===_0x207d9a&&_0x54e87a===_0x4c15f7)return _0x1a1956;}return null;}}const m='$elementName';class p extends _0x1c3a28{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5f159e,_0x389de3,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x29d179){function _0x16f1fb(_0x1c2eab){return _0x1c2eab['map'](_0x12213a=>String['fromCharCode'](_0x12213a))['join']('');}super(_0x29d179),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2215e3,_0x4e9feb,_0x4199ac,_0x4931bf)=>{this['_model']['change'](()=>{for(const _0x209e1d of[..._0x4931bf,..._0x4199ac])this['_model']['markers']['has'](_0x209e1d)&&_0x29d179['editing']['reconvertMarker'](_0x209e1d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29d179['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(),_0x29d179['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29d179['config']['get']('trackChanges.trackFormatChanges'),_0x29d179['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29d179['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x29d179,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x16f1fb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x16f1fb([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x34]);}['init'](){const _0x59eb6c=this['editor'],_0x1989e6=(_0x2401f9,_0xe434d7)=>{if('attribute'!=_0x2401f9)return'ck-suggestion-marker-'+_0x2401f9;const _0x5738c0=_0xe434d7['split']('|')[0x0];return this['_isBlockAttribute'](_0x5738c0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x59eb6c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2f8c8=>{const {id:_0x41609c,type:_0x3c5673,subType:_0x4d6fda}=this['_splitMarkerName'](_0x2f8c8['markerName']),_0x20c76e=['ck-suggestion-marker',_0x1989e6(_0x3c5673,_0x4d6fda)];let _0x2424aa=0xbb8;return this['activeMarkers']['includes'](_0x2f8c8['markerName'])&&(_0x20c76e['push']('ck-suggestion-marker--active'),_0x2424aa=0xbc2),'deletion'==_0x3c5673&&(_0x2424aa+=0x5),{'classes':_0x20c76e,'attributes':{'data-suggestion':_0x41609c},'priority':_0x2424aa};}}),_0x59eb6c['conversion']['for']('dataDowncast')['add'](_0x1b9452=>{_0x1b9452['on']('addMarker:suggestion',(_0x530c1f,_0x532ef6,_0x567cb9)=>{if(!_0x567cb9['options']['showSuggestionHighlights'])return;const _0x4c023d=_0x532ef6['item'];if(!_0x4c023d)return;const _0x33b901=_0x567cb9['mapper']['toViewElement'](_0x4c023d);_0x59eb6c['model']['schema']['isObject'](_0x4c023d)&&_0x33b901&&!_0x33b901['getCustomProperty']('widget')&&_0x33b901['is']('containerElement')&&_0x2b8909(_0x33b901,_0x567cb9['writer']);},{'priority':'high'});}),_0x59eb6c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd27f25,_0x558e82)=>{if(!_0x558e82['options']['showSuggestionHighlights'])return null;const {type:_0x1b482d,subType:_0x593531}=this['_splitMarkerName'](_0xd27f25['markerName']);return{'classes':['ck-suggestion-marker',_0x1989e6(_0x1b482d,_0x593531)],'priority':0xbb8};}});const _0x5e7ba0=({showActiveMarkers:_0x37415b=!0x0,isAttributeSuggestion:_0x4ede87=!0x1}={})=>(_0x355f0f,_0x4c5656,_0x379545)=>{if(!_0x4c5656['item'])return;const {id:_0x153a9b}=this['_splitMarkerName'](_0x4c5656['markerName']);if(_0x4ede87){const _0x1f18e2=this['_suggestions']['get'](_0x153a9b),_0x12329a=this['_getAttributeKey'](_0x1f18e2);if(!this['_isBlockAttribute'](_0x12329a))return;}if(_0x4c5656['item']['is']('selection'))return void _0x379545['consumable']['consume'](_0x4c5656['item'],_0x355f0f['name']);const _0x748a8a=_0x379545['mapper']['toViewElement'](_0x4c5656['item']);if(_0x4c5656['item']['is']('element')&&_0x59eb6c['model']['schema']['isBlock'](_0x4c5656['item'])&&!_0x748a8a['getCustomProperty']('addHighlight')){_0x379545['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x748a8a),_0x379545['writer']['setAttribute']('data-suggestion',_0x153a9b,_0x748a8a),_0x379545['mapper']['bindElementToMarker'](_0x748a8a,_0x4c5656['markerName']),_0x37415b&&(this['activeMarkers']['includes'](_0x4c5656['markerName'])?_0x379545['writer']['addClass']('ck-suggestion-marker--active',_0x748a8a):_0x379545['writer']['removeClass']('ck-suggestion-marker--active',_0x748a8a));for(const _0x35539a of _0x59eb6c['model']['createRangeIn'](_0x4c5656['item'])['getItems']())_0x379545['consumable']['consume'](_0x35539a,_0x355f0f['name']);_0x379545['consumable']['consume'](_0x4c5656['item'],_0x355f0f['name']);}};_0x59eb6c['conversion']['for']('dataDowncast')['add'](_0x527645=>{_0x527645['on']('addMarker:suggestion:formatBlock',(_0x288c7c,_0x588a56,_0x5f72f1)=>{_0x5f72f1['options']['showSuggestionHighlights']&&_0x5e7ba0({'showActiveMarkers':!0x1})(_0x288c7c,_0x588a56,_0x5f72f1);},{'priority':'highest'});}),_0x59eb6c['conversion']['for']('dataDowncast')['add'](_0x4debb1=>{_0x4debb1['on']('addMarker:suggestion:attribute',(_0x2be68c,_0x3c693d,_0x173403)=>{_0x173403['options']['showSuggestionHighlights']&&_0x5e7ba0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2be68c,_0x3c693d,_0x173403);},{'priority':'highest'});}),_0x59eb6c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x440437,_0x498801)=>_0x498801['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x440437['substr'](0xb)}}),_0x59eb6c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xad5936,{writer:_0x30b97e})=>{let _0x123256='suggestion:'+_0xad5936['getAttribute']('suggestion-type')+':'+_0xad5936['getAttribute']('id');return _0xad5936['getAttribute']('marker-count')&&(_0x123256+=':'+_0xad5936['getAttribute']('marker-count')),_0x30b97e['createElement']('$marker',{'data-name':_0x123256});}}),_0x59eb6c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x59eb6c['conversion']['for']('editingDowncast')['add'](_0x30e1af=>{_0x30e1af['on']('addMarker:suggestion:formatBlock',_0x5e7ba0(),{'priority':'high'});}),_0x59eb6c['conversion']['for']('editingDowncast')['add'](_0x159ecc=>{_0x159ecc['on']('addMarker:suggestion:attribute',_0x5e7ba0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x59eb6c['conversion']['for']('editingDowncast')['add'](_0xeec72=>{_0xeec72['on']('removeMarker:suggestion:formatBlock',(_0x112818,_0x48b078,_0x21f236)=>{const _0x574fc7=_0x21f236['mapper']['markerNameToElements'](_0x48b078['markerName']);if(_0x574fc7){for(const _0x10bed2 of _0x574fc7)_0x10bed2['getCustomProperty']('addHighlight')||(_0x21f236['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x10bed2),_0x21f236['writer']['removeAttribute']('data-suggestion',_0x10bed2),_0x21f236['mapper']['unbindElementFromMarkerName'](_0x10bed2,_0x48b078['markerName']));}},{'priority':'high'});}),_0x59eb6c['conversion']['for']('editingDowncast')['add'](_0x26a17b=>{_0x26a17b['on']('removeMarker:suggestion:attribute',(_0x4364d1,_0x49bb2c,_0x26d940)=>{const _0x24972f=_0x26d940['mapper']['markerNameToElements'](_0x49bb2c['markerName']);if(!_0x24972f)return;const {id:_0x51bf4a}=this['_splitMarkerName'](_0x49bb2c['markerName']),_0x12f0dd=this['_suggestions']['get'](_0x51bf4a),_0x397ec9=this['_getAttributeKey'](_0x12f0dd);if(this['_isBlockAttribute'](_0x397ec9)){for(const _0x4a7765 of _0x24972f)_0x4a7765['getCustomProperty']('addHighlight')||(_0x26d940['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a7765),_0x26d940['writer']['removeAttribute']('data-suggestion',_0x4a7765),_0x26d940['mapper']['unbindElementFromMarkerName'](_0x4a7765,_0x49bb2c['markerName']));}},{'priority':'high'});}),_0x59eb6c['model']['document']['registerPostFixer'](_0x268312=>{let _0x1a3f93=!0x1;const _0x5a98f8=Array['from'](_0x59eb6c['model']['document']['differ']['getChangedMarkers']()),_0x4311fa=new Set();for(const {name:_0x340542,data:_0x6e7b3b}of _0x5a98f8){const {group:_0x5709b2,type:_0x571fb8,subType:_0xdd5c1e,id:_0x5d7af5}=this['_splitMarkerName'](_0x340542);if('suggestion'!==_0x5709b2)continue;const _0x4acc12=this['_suggestions']['get'](_0x5d7af5);if(null!=_0x6e7b3b['newRange']){'formatInline'==_0x571fb8&&(_0x1a3f93=_0x1a3f93||Et(_0x6e7b3b['newRange'],_0x340542,_0x268312,_0x59eb6c['model']['schema']));const _0x2f929a='attribute'==_0x571fb8&&this['_isBlockAttribute'](_0xdd5c1e['split']('|')[0x0]);if(_0x6e7b3b['newRange']['isCollapsed']||'$graveyard'==_0x6e7b3b['newRange']['root']['rootName']||'formatBlock'==_0x571fb8&&!Ut(_0x6e7b3b['newRange'])||_0x2f929a&&!Ut(_0x6e7b3b['newRange'])||'deletion'==_0x571fb8&&!(!Tt(_0x579048=_0x6e7b3b['newRange'])&&!function(_0x44bcdf){return _0x44bcdf['start']['parent']==_0x44bcdf['end']['nodeBefore']&&_0x44bcdf['start']['isAtEnd'];}(_0x579048)))_0x268312['removeMarker'](_0x340542),_0x1a3f93=!0x0;else{if(!_0x4acc12||!_0x4acc12['isInContent'])continue;_0x4311fa['add'](_0x4acc12);}}}var _0x579048;return _0x4311fa['size']>0x0&&(_0x1a3f93=!!this['_joinWithAdjacentSuggestions'](_0x4311fa)||_0x1a3f93),_0x1a3f93;}),_0x59eb6c['model']['document']['registerPostFixer'](_0x6a3639=>{let _0x374e80=!0x1;for(const _0x583f54 of _0x59eb6c['model']['document']['differ']['getChanges']())if('insert'==_0x583f54['type'])for(const _0x471f92 of this['_suggestions']['values']()){if(_0x471f92['isMultiRange']||!_0x471f92['isInContent'])continue;const _0x5897b1='formatBlock'==_0x471f92['type'],_0x37d2ef=this['_getAttributeKey'](_0x471f92),_0x301207=_0x37d2ef&&this['_isBlockAttribute'](_0x37d2ef);if(!_0x5897b1&&!_0x301207)continue;const _0x2147bb=_0x471f92['getFirstRange']();if(_0x2147bb['start']['parent']!=_0x2147bb['end']['parent']&&!_0x2147bb['end']['isAtEnd']){const _0x17d8c8=_0x59eb6c['model']['createPositionAt'](_0x2147bb['start']['nodeAfter'],'end'),_0x2bafc8=_0x59eb6c['model']['createRange'](_0x2147bb['start'],_0x17d8c8);_0x6a3639['updateMarker'](_0x471f92['getFirstMarker'](),{'range':_0x2bafc8}),_0x374e80=!0x0;}}return _0x374e80;}),_0x59eb6c['model']['document']['registerPostFixer'](_0x50900f=>this['_processAttributeChanges'](_0x50900f)),_0x59eb6c['model']['document']['registerPostFixer'](_0x4c230c=>!_0x4c230c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4c230c)),_0x59eb6c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x59eb6c['model']['document']['on']('change:data',(_0x312bd6,_0x5d94b9)=>{if(!_0x5d94b9['isLocal']||_0x5d94b9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x369d68=_0x59eb6c['model']['document']['differ']['getChanges']();if(0x0==_0x369d68['length'])return;const _0x1cafd8=[],_0x103b08=_0x369d68['filter'](_0x303219=>'attribute'==_0x303219['type']),_0x30ab2e=_0x369d68['filter'](_0x3d7bcb=>'insert'==_0x3d7bcb['type']&&'$text'!=_0x3d7bcb['name']);for(const _0x4db8c4 of _0x103b08)this['_isRegisteredAttribute'](_0x4db8c4['attributeKey'])&&_0x1cafd8['push']({'key':_0x4db8c4['attributeKey'],'newValue':_0x4db8c4['attributeNewValue'],'oldValue':_0x4db8c4['attributeOldValue'],'range':Ot(_0x4db8c4['range'],_0x59eb6c['model'])});for(const _0x4bc1bb of _0x30ab2e){if('rename'!=_0x4bc1bb['action']&&'refresh'!=_0x4bc1bb['action'])continue;const _0xd83f08=Gt(_0x4bc1bb['position']['nodeAfter'],_0x59eb6c['model']),_0x423565=_0x4bc1bb['before'];'rename'==_0x4bc1bb['action']&&_0x1cafd8['push']({'key':m,'newValue':_0x4bc1bb['name'],'oldValue':_0x423565['name'],'range':_0xd83f08});for(const [_0x4fb80a,_0x4939a2]of _0x423565['attributes']){if(!this['_isRegisteredAttribute'](_0x4fb80a))continue;const _0x47f4e6=_0x4bc1bb['attributes']['get'](_0x4fb80a);_0x4939a2!==_0x47f4e6&&_0x1cafd8['push']({'key':_0x4fb80a,'newValue':_0x47f4e6,'oldValue':_0x4939a2,'range':_0xd83f08});}for(const [_0x24e6a3,_0x4a9d0c]of _0x4bc1bb['attributes'])this['_isRegisteredAttribute'](_0x24e6a3)&&(_0x423565['attributes']['has'](_0x24e6a3)||_0x1cafd8['push']({'key':_0x24e6a3,'newValue':_0x4a9d0c,'oldValue':null,'range':_0xd83f08}));}0x0!=_0x1cafd8['length']&&_0x59eb6c['model']['enqueueChange'](_0x5d94b9,_0x1655d6=>{const _0x516e78=_0x15362b();for(const {range:_0x357d3b,key:_0xeb500b,oldValue:_0x465952,newValue:_0x28ced7}of _0x1cafd8)this['markAttributeChange'](_0x357d3b,_0xeb500b,_0x465952,_0x28ced7,{'groupId':_0x516e78});this['_reduceExistingSuggestions'](_0x1655d6,_0x1cafd8);});},{'priority':'lowest'}),_0x59eb6c['model']['markers']['on']('update:suggestion',(_0x4f3c14,_0x1f1898,_0x227792)=>{if(null==_0x227792){const {id:_0x10186e}=this['_splitMarkerName'](_0x1f1898['name']),_0x47f9a1=this['_suggestions']['get'](_0x10186e);_0x47f9a1&&_0x47f9a1['addMarkerName'](_0x1f1898['name']);}}),_0x59eb6c['model']['document']['on']('change:data',()=>{const _0x4c4d5f=Array['from'](_0x59eb6c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ac780=>'suggestion'===this['_splitMarkerName'](_0x3ac780['name'])['group']);if(0x0===_0x4c4d5f['length'])return;_0x4c4d5f['sort']((_0x4c0e44,_0x3e2139)=>{const _0x159049=_0x4c0e44['data']['oldRange'],_0x29cb47=_0x3e2139['data']['oldRange'];return null===_0x159049&&null===_0x29cb47?0x0:null===_0x159049&&null!==_0x29cb47?-0x1:null!==_0x159049&&null===_0x29cb47?0x1:_0x159049['start']['isBefore'](_0x29cb47['start'])?-0x1:0x1;});const _0x5dc582=new Set(),_0x4fdd3d=new Set();for(const {name:_0x476219,data:_0x170d06}of _0x4c4d5f){const {id:_0x2c1883}=this['_splitMarkerName'](_0x476219);if(null===_0x170d06['oldRange']){const _0x55d7c3=this['_handleNewSuggestionMarker'](_0x476219);_0x4fdd3d['add'](_0x55d7c3);}else{const _0x468347=this['_suggestions']['get'](_0x2c1883);null!==_0x170d06['newRange']||_0x468347['isInContent']?(_0x5dc582['add'](_0x468347['head']),_0x4fdd3d['add'](_0x468347)):this['_removeSuggestion'](_0x468347);}}_0x4fdd3d['size']>0x0&&this['_refreshSuggestionsChain'](_0x4fdd3d);for(const _0x18436 of _0x5dc582)this['fire']('suggestionChanged',_0x18436);}),_0x59eb6c['model']['on']('applyOperation',(_0x5f29d1,_0xd5384c)=>{const _0x53fce6=_0xd5384c[0x0];if(!this['_suggestions']['size'])return;if(!_0x53fce6['isDocumentOperation'])return;if(_0x53fce6['batch']['isUndo']||!_0x53fce6['batch']['isLocal'])return;let _0xeee532,_0x1e808e;switch(_0x53fce6['type']){case'insert':_0xeee532=_0x59eb6c['model']['createPositionAt'](_0x53fce6['position']),_0x1e808e=_0xeee532['getShiftedBy'](_0x53fce6['howMany']);break;case'split':_0xeee532=_0x59eb6c['model']['createPositionAt'](_0x53fce6['splitPosition']),_0x1e808e=_0x59eb6c['model']['createPositionAt'](_0x53fce6['moveTargetPosition']);break;case'move':_0xeee532=_0x59eb6c['model']['createPositionAt'](_0x53fce6['targetPosition']),_0x1e808e=_0xeee532['getShiftedBy'](_0x53fce6['howMany']);break;default:return;}const _0x285e8b=_0x59eb6c['model']['createRange'](_0xeee532,_0x1e808e);_0x59eb6c['model']['change'](()=>{for(const {suggestion:_0x37daa1,meta:_0x4c7a76}of this['_findSuggestions'](_0x285e8b)){if(_0x37daa1['isMultiRange'])continue;if('formatInline'==_0x37daa1['type'])continue;const _0x5e7f69=this['_getAttributeKey'](_0x37daa1);if(_0x5e7f69&&this['_isBlockAttribute'](_0x5e7f69)&&'split'!=_0x53fce6['type'])continue;const _0x48e0ce=_0x37daa1['data']&&_0x37daa1['data']['multipleBlocks'];('formatBlock'!=_0x37daa1['type']||'split'==_0x53fce6['type']&&!_0x48e0ce)&&(_0x4c7a76['containsRangeInObject']||'insertion'==_0x37daa1['type']&&_0x4c7a76['isOwn']||_0x37daa1['getFirstRange']()['containsRange'](_0x285e8b)&&this['_breakSuggestionMarker'](_0x37daa1,_0xeee532,_0x1e808e));}});},{'priority':'lowest'}),_0x59eb6c['model']['on']('deleteContent',(_0x16fdf2,_0x154955)=>{const _0x4cd8cc=_0x154955[0x0],_0x1503cf=_0x154955[0x1];if(_0x1503cf&&_0x1503cf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4cd8cc['isCollapsed'])return;const _0xfaa0e1=_0x59eb6c['model']['schema'],{start:_0x2a5468,end:_0x1873c6}=_0x4cd8cc['getFirstRange'](),_0x2d02a5=_0x2a5468['nodeAfter']&&_0xfaa0e1['isLimit'](_0x2a5468['nodeAfter'])?null:_0xfaa0e1['getNearestSelectionRange'](_0x2a5468,'forward'),_0x59d937=_0x1873c6['nodeBefore']&&_0xfaa0e1['isLimit'](_0x1873c6['nodeBefore'])?null:_0xfaa0e1['getNearestSelectionRange'](_0x1873c6,'backward'),_0x2c61a3=_0x59eb6c['model']['createRange'](_0x2d02a5?_0x2d02a5['start']:_0x2a5468,_0x59d937?_0x59d937['end']:_0x1873c6);_0x59eb6c['model']['change'](_0x1af51a=>{this['markDeletion'](_0x2c61a3);const _0x1066f1=_0x59eb6c['model']['schema']['getNearestSelectionRange'](_0x2c61a3['start']);_0x4cd8cc['is']('documentSelection')?_0x1af51a['setSelection'](_0x1066f1):_0x4cd8cc['setTo'](_0x1066f1);}),_0x16fdf2['stop']();},{'priority':_0x3304ea['normal']+0xa}),_0x59eb6c['model']['on']('insertContent',(_0x167e32,_0x4b3e2a)=>{const _0x338b9a=_0x4b3e2a[_0x4b3e2a['length']-0x1];_0x338b9a&&_0x338b9a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x59eb6c['model']['change'](()=>{let _0x2e9c47=_0x59eb6c['model']['insertContent'](_0x4b3e2a[0x0],_0x4b3e2a[0x1],_0x4b3e2a[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e9c47)return;_0x167e32['return']=_0x2e9c47['clone']();const _0x1465a8=_0x2e9c47['end']['nodeBefore'],_0x109c4d=_0x59eb6c['model']['schema'];_0x1465a8&&_0x109c4d['isBlock'](_0x1465a8)&&!_0x109c4d['isObject'](_0x1465a8)&&(_0x2e9c47=_0x59eb6c['model']['createRange'](_0x2e9c47['start'],_0x59eb6c['model']['createPositionAt'](_0x1465a8,'end'))),this['markInsertion'](_0x2e9c47);}),_0x167e32['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5b31cc=new $(_0x59eb6c,this['_suggestions']);_0x59eb6c['commands']['add']('acceptSuggestion',_0x5b31cc),this['enableCommand']('acceptSuggestion');const _0x310bbb=new B(_0x59eb6c,this['_suggestions']);_0x59eb6c['commands']['add']('discardSuggestion',_0x310bbb),this['enableCommand']('discardSuggestion'),_0x59eb6c['commands']['add']('acceptAllSuggestions',new x(_0x59eb6c,_0x5b31cc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x59eb6c['commands']['add']('discardAllSuggestions',new x(_0x59eb6c,_0x310bbb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x59eb6c['commands']['add']('acceptSelectedSuggestions',new R(_0x59eb6c,_0x5b31cc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x59eb6c['commands']['add']('discardSelectedSuggestions',new R(_0x59eb6c,_0x310bbb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3d731c=_0x59eb6c['plugins']['get']('CommentsRepository');this['listenTo'](_0x3d731c,'addComment',(_0x4a2706,{threadId:_0x20a3b3})=>{const _0x53a8af=this['_suggestions']['get'](_0x20a3b3);_0x53a8af&&_0x53a8af['commentThread']&&0x1===_0x53a8af['commentThread']['length']&&this['_updateSuggestionData'](_0x20a3b3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3d731c,'removeComment',(_0x9dd529,{threadId:_0x5b0b3d})=>{const _0x566c5b=this['_suggestions']['get'](_0x5b0b3d);_0x566c5b&&_0x566c5b['commentThread']&&!_0x566c5b['commentThread']['length']&&this['_updateSuggestionData'](_0x5b0b3d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4e65a4){if(this['_adapter'])throw new _0x445205('track-changes-adapter-already-set',this);this['_adapter']=_0x4e65a4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f597a=!0x1,toJSON:_0x25cd9a=!0x1}={}){const _0x59289d=[];for(const _0x37520a of this['_suggestions']['values']())_0x3f597a&&!_0x37520a['isInContent']||_0x59289d['push'](_0x37520a);return _0x25cd9a?_0x59289d['map'](_0xeeaec=>_0xeeaec['toJSON']()):_0x59289d;}['getSuggestion'](_0x29a635){const _0x2dd7a3=this['_suggestions']['get'](_0x29a635);if(!_0x2dd7a3)throw new _0x445205('track-changes-suggestion-not-found',this);return _0x2dd7a3;}['hasSuggestion'](_0x1f82bc){return this['_suggestions']['has'](_0x1f82bc);}['addSuggestionData'](_0x50467c){const {authorId:_0x37e77,id:_0x1be694,attributes:_0x43fd1e}=_0x50467c,[_0x5c231d,_0x864206]=_0x50467c['type']['split'](':'),_0x140ff4=this['_suggestions']['get'](_0x1be694)||this['_createSuggestion'](_0x5c231d,_0x864206,_0x1be694,_0x37e77,_0x43fd1e);if(this['_addThreadToSuggestion'](_0x140ff4),this['_checkSuggestionCorrectness'](_0x140ff4,_0x5c231d,_0x864206||null,_0x37e77),_0x140ff4['createdAt']=_0x50467c['createdAt'],_0x140ff4['_isDataLoaded']=!0x0,_0x43fd1e&&_0x43fd1e['@external']){const _0x67ca93=_0x43fd1e['@external'],_0x37b5dd=this['_getExternalAuthor'](_0x67ca93['authorName']);_0x140ff4['authoredAt']=_0x67ca93['createdAt'],_0x140ff4['author']=_0x37b5dd,_0x140ff4['isExternal']=!0x0;}else _0x140ff4['authoredAt']=_0x50467c['createdAt'];switch(_0x50467c['data']&&(_0x140ff4['data']=_0x50467c['data']),_0x50467c['attributes']&&(_0x140ff4['attributes']=_0x50467c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x140ff4['_saved']=!0x0),this['_suggestionState']['get'](_0x140ff4)){case'notReady':this['_suggestionState']['set'](_0x140ff4,'dataReady');break;case'markerReady':_0x140ff4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x140ff4])),this['_refreshSuggestionsChain'](new Set([_0x140ff4])),this['_suggestionState']['set'](_0x140ff4,'ready'),this['fire']('suggestionLoaded',_0x140ff4)):this['_suggestionState']['set'](_0x140ff4,'removed');}return _0x140ff4;}['acceptSuggestion'](_0x49be4e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b3751 of _0x49be4e['getAllAdjacentSuggestions']())_0x3b3751['accept']();});});}['discardSuggestion'](_0x483786){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2fa02f of _0x483786['getAllAdjacentSuggestions']())_0x2fa02f['discard']();});});}['enableCommand'](_0x589eb8,_0x274860){const _0x285e0e=this['editor']['commands']['get'](_0x589eb8);if(!_0x285e0e)throw new _0x445205('track-changes-command-not-found',this,{'commandName':_0x589eb8});if(this['_enabledCommands']['has'](_0x285e0e))throw new _0x445205('track-changes-enable-command-twice',this,{'commandName':_0x589eb8});this['_enabledCommands']['add'](_0x285e0e),_0x274860&&_0x285e0e['on']('execute',(_0x32a64e,_0x401cd5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x401cd5['length']>0x0&&_0x401cd5[_0x401cd5['length']-0x1]&&_0x401cd5[_0x401cd5['length']-0x1]['forceDefaultExecution']?_0x401cd5['pop']():(_0x32a64e['return']=_0x274860((..._0x5f3898)=>_0x285e0e['execute'](..._0x5f3898,{'forceDefaultExecution':!0x0}),..._0x401cd5),_0x32a64e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a7718){let _0x46ffe3,_0x17c4b9;const _0x4c9d57=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46ffe3=_0x4a7718();}catch(_0x1fea3b){_0x17c4b9=_0x1fea3b;}return _0x4c9d57||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17c4b9&&_0x445205['rethrowUnexpectedError'](_0x17c4b9,this),_0x46ffe3;}['markInsertion'](_0x3585a0,_0x2a061a=null,_0x3a8748={}){if(_0x3585a0['isCollapsed'])return null;const _0xd02cc6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1a5358,meta:_0x2e60bf}of this['_findSuggestions'](_0x3585a0,'insertion'))if(_0x2e60bf['isOwn']){if(!_0x2e60bf['isNextTo']){if(_0x2e60bf['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1a5358,_0x3a8748))continue;return _0x1a5358;}if(Lt(_0x1a5358,_0x3a8748))return _0x1a5358;this['_breakSuggestionMarker'](_0x1a5358,_0x3585a0['start'],_0x3585a0['end']);break;}if(_0x2a061a==_0x1a5358['subType']&&Lt(_0x1a5358,_0x3a8748)){const _0x5c6c0c=_0x1a5358['getFirstRange']();return _0x5c6c0c['start']['isEqual'](_0x3585a0['end'])?this['_setSuggestionRange'](_0x1a5358,this['_model']['createRange'](_0x3585a0['start'],_0x5c6c0c['end'])):this['_setSuggestionRange'](_0x1a5358,this['_model']['createRange'](_0x5c6c0c['start'],_0x3585a0['end'])),_0x1a5358;}}const _0x2e1396=_0x15362b(),_0x1a5dfb=_0xd02cc6['id'],_0x1a65e9=_0x2a061a?'insertion:'+_0x2a061a:'insertion',_0x3ab066=this['_setSuggestionData']({'id':_0x2e1396,'type':_0x1a65e9,'createdAt':new Date(),'authorId':_0x1a5dfb,'attributes':_0x3a8748});return this['_addSuggestionMarker'](_0x1a65e9,_0x2e1396,_0x1a5dfb,_0x3585a0),_0x3ab066;}['markMultiRangeInsertion'](_0x40d1dd,_0x5e6823='multi',_0x92e327={}){const _0x310f4f=this['editor']['plugins']['get']('Users')['me'],_0x45ee86=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5e6823,'join');for(const _0x5321bb of this['getSuggestions']())if(_0x5321bb['author']['id']==_0x310f4f['id']&&'insertion'==_0x5321bb['type']&&_0x5321bb['subType']==_0x5e6823&&Lt(_0x5321bb,_0x92e327)&&(_0x45ee86(_0x5321bb['getRanges'](),_0x40d1dd)||_0x45ee86(_0x40d1dd,_0x5321bb['getRanges']()))){for(const _0x2930d7 of _0x40d1dd)_0x5321bb['addRange'](_0x2930d7);return _0x5321bb;}for(const {suggestion:_0x30d967,meta:_0x3fd738}of this['_findSuggestions'](_0x40d1dd,'insertion')){if(!_0x3fd738['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3fd738['containsRangeInObject'])continue;if(!Lt(_0x30d967,_0x92e327))continue;let _0xd6741=!0x0;for(const _0x46e0a5 of _0x30d967['getRanges']())for(const _0x2c8a2e of _0x40d1dd)if(!_0x46e0a5['containsRange'](_0x2c8a2e)){_0xd6741=!0x1;break;}if(_0xd6741)return _0x30d967;}const _0x198b0d=_0x15362b(),_0x58cb26=_0x310f4f['id'],_0x4248aa='insertion:'+_0x5e6823,_0x18dd00=this['_setSuggestionData']({'id':_0x198b0d,'type':_0x4248aa,'createdAt':new Date(),'authorId':_0x58cb26,'attributes':_0x92e327});for(const _0x40e15a of _0x40d1dd)this['_addSuggestionMarker'](_0x4248aa,_0x198b0d,_0x58cb26,_0x40e15a,u['getMultiRangeId']());return _0x18dd00;}['markInlineFormat'](_0x3ffb28,_0x49376b,_0x16770e=null,_0x3568a6={}){if(_0x16770e=_0x16770e||Vt(_0x49376b),_0x3ffb28['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d8545=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16770e,'accept');return this['forceDefaultExecution'](()=>_0x2d8545([_0x3ffb28],_0x49376b,_0x3568a6)),null;}const _0x467d7a=this['editor']['plugins']['get']('Users')['me'],_0x3ddaff=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1008fc,meta:_0x2fafe9}of this['_findSuggestions'](_0x3ffb28,'insertion'))_0x2fafe9['isOwn']&&!_0x2fafe9['isInsideObject']&&_0x3ddaff['push'](..._0x1008fc['getRanges']());}const _0x95d197=function(_0x5eb8f7,_0x51fd0f){const _0x2ca224=[];for(const _0x5b1671 of _0x51fd0f){const _0x8830ac=_0x5eb8f7['getIntersection'](_0x5b1671);_0x8830ac&&_0x2ca224['push'](_0x8830ac);}return _0x2ca224;}(_0x3ffb28,_0x3ddaff),_0x2a0c3f=function(_0x5a7fe9,_0x544c04){const _0x146afc=[_0x5a7fe9];for(const _0x371580 of _0x544c04){let _0x259c14=0x0;for(;_0x259c14<_0x146afc['length'];){const _0x329cdf=_0x146afc[_0x259c14]['getDifference'](_0x371580);_0x146afc['splice'](_0x259c14,0x1,..._0x329cdf),_0x259c14+=_0x329cdf['length'];}}return _0x146afc;}(_0x3ffb28,_0x3ddaff);_0x95d197['length']&&this['_model']['change'](()=>{for(const _0x1d6bca of _0x95d197){const _0x403857=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16770e,'accept');this['forceDefaultExecution'](()=>_0x403857([_0x1d6bca],_0x49376b,_0x3568a6));}});for(const _0x2314f7 of _0x2a0c3f){let _0x4a645d=null,_0x42ef04=_0x2314f7['start'],_0x21c61d=_0x2314f7['end'];for(const {suggestion:_0x5d9a61,meta:_0x2daea1}of this['_findSuggestions'](_0x2314f7,'formatInline')){if(!_0x2daea1['isOwn'])continue;if(_0x5d9a61['subType']!=_0x16770e)continue;if(!Lt(_0x5d9a61,_0x3568a6))continue;const _0xef2588=_0x5d9a61['getFirstRange']();if(_0xef2588['containsRange'](_0x2314f7,!0x0))return null;_0x42ef04=_0x42ef04['isBefore'](_0xef2588['start'])?_0x42ef04:_0xef2588['start'],_0x21c61d=_0x21c61d['isAfter'](_0xef2588['end'])?_0x21c61d:_0xef2588['end'],_0x4a645d?_0xef2588['start']['isBefore'](_0x4a645d['getFirstRange']()['start'])?(_0x4a645d['removeMarkers'](),_0x4a645d=_0x5d9a61):_0x5d9a61['removeMarkers']():_0x4a645d=_0x5d9a61;}const _0x38a5f3=this['_model']['createRange'](_0x42ef04,_0x21c61d);if(_0x4a645d)this['_setSuggestionRange'](_0x4a645d,_0x38a5f3);else{const _0xbd2f6c=_0x15362b(),_0x79baaa=_0x467d7a['id'];this['_setSuggestionData']({'id':_0xbd2f6c,'type':'formatInline:'+_0x16770e,'data':_0x49376b,'createdAt':new Date(),'authorId':_0x79baaa,'attributes':_0x3568a6}),this['_addSuggestionMarker']('formatInline:'+_0x16770e,_0xbd2f6c,_0x79baaa,_0x38a5f3);}}return null;}['markBlockFormat'](_0x4e3016,_0x278820,_0x5e5756=[],_0x29600b=null,_0x55b9c4={}){_0x278820['formatGroupId']||(_0x278820['formatGroupId']=_0x278820['commandName']),_0x278820['multipleBlocks']=_0x4e3016['is']('range'),_0x29600b=_0x29600b||Vt(_0x278820);const _0x2f3533=_0x5e5756['map'](_0x89078d=>Gt(_0x89078d,this['_model'])),_0x6f99cc=_0x4e3016['is']('range')?_0x4e3016:Gt(_0x4e3016,this['_model']);if('never'===this['_trackFormatChanges']){const _0x38e2d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29600b,'accept');return this['forceDefaultExecution'](()=>_0x38e2d6([_0x6f99cc],_0x278820,_0x55b9c4)),null;}_0x2f3533['push'](_0x6f99cc);let _0x25387a=!0x0;for(const _0x10cd57 of _0x2f3533)if(!this['_rangeIsInLocalUserInsertion'](_0x10cd57)){_0x25387a=!0x1;break;}if(_0x25387a&&'always'!==this['_trackFormatChanges']){const _0x3f1728=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29600b,'accept');return this['forceDefaultExecution'](()=>_0x3f1728([_0x6f99cc],_0x278820,_0x55b9c4)),null;}let _0x38ff03=null,_0x5306c0=_0x6f99cc['start'],_0x3bea3b=_0x6f99cc['end'];for(const {suggestion:_0x5638f8,meta:_0x1b26a8}of this['_findSuggestions'](_0x6f99cc,'formatBlock')){if(!_0x1b26a8['isOwn'])continue;if(_0x1b26a8['isNextTo']||_0x1b26a8['containsRangeInObject']||_0x1b26a8['isInsideObject'])continue;if(_0x5638f8['data']['formatGroupId']!=_0x278820['formatGroupId'])continue;if(!Lt(_0x5638f8,_0x55b9c4))continue;const _0x540d0f=_0x5638f8['getFirstRange']();if(_0x5638f8['subType']==_0x29600b){if(_0x540d0f['containsRange'](_0x6f99cc,!0x0))return null;_0x5306c0=_0x5306c0['isBefore'](_0x540d0f['start'])?_0x5306c0:_0x540d0f['start'],_0x3bea3b=_0x3bea3b['isAfter'](_0x540d0f['end'])?_0x3bea3b:_0x540d0f['end'],_0x38ff03?_0x540d0f['start']['isBefore'](_0x38ff03['getFirstRange']()['start'])?(_0x38ff03['removeMarkers'](),_0x38ff03=_0x5638f8):_0x5638f8['removeMarkers']():_0x38ff03=_0x5638f8;}else{const _0x102e01=_0x6f99cc['getIntersection'](_0x540d0f);this['_cutOutSuggestionMarker'](_0x5638f8,_0x102e01);}}const _0x50061a=this['editor']['plugins']['get']('Users')['me'],_0x30a78b=_0x15362b(),_0x1a6e28=_0x50061a['id'];if(_0x38ff03)return this['_setSuggestionRange'](_0x38ff03,this['_model']['createRange'](_0x5306c0,_0x3bea3b)),_0x38ff03;{const _0x10b1e9=this['_setSuggestionData']({'id':_0x30a78b,'type':'formatBlock:'+_0x29600b,'data':_0x278820,'createdAt':new Date(),'authorId':_0x1a6e28,'attributes':_0x55b9c4});return this['_addSuggestionMarker']('formatBlock:'+_0x29600b,_0x30a78b,_0x1a6e28,this['_model']['createRange'](_0x5306c0,_0x3bea3b)),_0x10b1e9;}}['markMultiRangeBlockFormat'](_0x127027,_0x1eaab4,_0x835b70=[],_0x56f844=null,_0xf54cc6={}){_0x1eaab4['formatGroupId']||(_0x1eaab4['formatGroupId']=_0x1eaab4['commandName']);const _0x36933f=_0x127027[0x0];_0x1eaab4['multipleBlocks']=_0x36933f['is']('range'),_0x56f844=_0x56f844||Vt(_0x1eaab4);const _0x1bc25e=_0x835b70['map'](_0x46ec0d=>Gt(_0x46ec0d,this['_model'])),_0x3b9a70=_0x36933f['is']('range')?_0x127027:_0x127027['map'](_0x52814e=>Gt(_0x52814e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x31b443=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f844,'accept');return this['forceDefaultExecution'](()=>_0x31b443(_0x3b9a70,_0x1eaab4,_0xf54cc6)),null;}_0x1bc25e['push'](..._0x3b9a70);let _0x549b1c=!0x0;for(const _0x42d00a of _0x1bc25e)if(!this['_rangeIsInLocalUserInsertion'](_0x42d00a)){_0x549b1c=!0x1;break;}if(_0x549b1c&&'always'!==this['_trackFormatChanges']){const _0x12d237=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f844,'accept');return this['forceDefaultExecution'](()=>_0x12d237(_0x3b9a70,_0x1eaab4,_0xf54cc6)),null;}const _0x526e13=this['editor']['plugins']['get']('Users')['me'];for(const _0x33e362 of this['getSuggestions']()){if(_0x33e362['author']['id']!=_0x526e13['id'])continue;if('formatBlock'!=_0x33e362['type']||_0x33e362['data']['formatGroupId']!=_0x1eaab4['formatGroupId'])continue;if(!Lt(_0x33e362,_0xf54cc6))continue;const _0x2328d0=_0x33e362['subType']==_0x56f844;for(let _0x5bd8f5=0x0;_0x5bd8f5<_0x3b9a70['length'];_0x5bd8f5++){const _0x503a4a=_0x3b9a70[_0x5bd8f5];for(const _0x483471 of _0x33e362['getMarkers']()){const _0x11fbba=_0x483471['getRange']();if(_0x503a4a['isEqual'](_0x11fbba)){_0x2328d0?(_0x3b9a70['splice'](_0x5bd8f5,0x1),_0x5bd8f5--):_0x33e362['removeMarker'](_0x483471['name']);break;}}}}if(0x0==_0x3b9a70['length'])return null;const _0x3dfc04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f844,'join');for(const _0x4bf1c0 of this['getSuggestions']())if(_0x4bf1c0['author']['id']==_0x526e13['id']&&'formatBlock'==_0x4bf1c0['type']&&_0x4bf1c0['data']['formatGroupId']==_0x1eaab4['formatGroupId']&&_0x4bf1c0['subType']==_0x56f844&&Lt(_0x4bf1c0,_0xf54cc6)&&(_0x3dfc04(_0x4bf1c0['getRanges'](),_0x3b9a70)||_0x3dfc04(_0x3b9a70,_0x4bf1c0['getRanges']()))){for(const _0x365c8d of _0x3b9a70)_0x4bf1c0['addRange'](_0x365c8d);return _0x4bf1c0;}const _0x5612fc=_0x15362b(),_0x221611=_0x526e13['id'],_0x3fa463='formatBlock:'+_0x56f844,_0x52b0d0=this['_setSuggestionData']({'id':_0x5612fc,'type':_0x3fa463,'data':_0x1eaab4,'createdAt':new Date(),'authorId':_0x221611,'attributes':_0xf54cc6});for(const _0x2bc5fe of _0x3b9a70)this['_addSuggestionMarker'](_0x3fa463,_0x5612fc,_0x221611,_0x2bc5fe,u['getMultiRangeId']());return _0x52b0d0;}['markDeletion'](_0x425847,_0x3536d4=null,_0x13ab73={}){if(_0x425847['isCollapsed'])return null;const _0x2166e1=this['editor']['plugins']['get']('Users')['me'],_0x33ae28=new _0x5b9e67(_0x425847['start'],_0x425847['end']);for(const {suggestion:_0x16164b,meta:_0x12f80d}of this['_findSuggestions'](_0x33ae28,'insertion'))if(_0x12f80d['isOwn']&&!_0x12f80d['isNextTo']){if(_0x16164b['isMultiRange']){const _0x573c18=_0x16164b['getRanges']()['filter'](_0xdf027b=>'$graveyard'!=_0xdf027b['root']['rootName']);_0x573c18['every'](_0x51618d=>_0x33ae28['containsRange'](_0x51618d,!0x0))&&_0x16164b['discard']();if(_0x573c18['some'](_0x4b90de=>_0x4b90de['containsRange'](_0x33ae28,!0x0))){const _0x33a95b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3536d4,'accept');return this['forceDefaultExecution'](()=>_0x33a95b([_0x33ae28],null,_0x13ab73)),null;}}else{const _0x163a0c=_0x33ae28['getIntersection'](_0x16164b['getFirstRange']());null!==_0x163a0c&&_0x16164b['_onDiscard']([_0x163a0c],null,_0x13ab73);}}if(_0x33ae28['detach'](),_0x33ae28['isCollapsed']||'$graveyard'==_0x33ae28['root']['rootName'])return null;let _0x48c76c=null,_0x47b343=_0x33ae28['start'],_0x365fc4=_0x33ae28['end'];const _0xd9f67=this['_findSuggestions'](_0x33ae28,'deletion');for(const {suggestion:_0x262ad1,meta:_0x37ee2a}of _0xd9f67){const _0x535440=this['_model']['createRange'](_0x47b343,_0x365fc4);if(_0x37ee2a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37ee2a['containsRangeInObject']&&!_0x37ee2a['isInsideObject'])){if(_0x262ad1['isMultiRange']){if(!Lt(_0x262ad1,_0x13ab73))continue;let _0x554336=!0x0;for(const _0xab974b of _0x262ad1['getRanges']()){if(_0xab974b['containsRange'](_0x535440,!0x0))return _0x262ad1;_0x535440['containsRange'](_0xab974b)||(_0x554336=!0x1);}_0x554336&&_0x262ad1['discard']();}else{const _0x215785=_0x262ad1['getFirstRange']();if(_0x215785['containsRange'](_0x535440,!0x0))return _0x262ad1;if(!Lt(_0x262ad1,_0x13ab73)){_0x535440['containsRange'](_0x215785)?_0x262ad1['removeMarkers']():_0x215785['containsPosition'](_0x47b343)?_0x47b343=_0x215785['end']:_0x215785['containsPosition'](_0x365fc4)&&(_0x365fc4=_0x215785['start']);continue;}_0x47b343=_0x47b343['isBefore'](_0x215785['start'])?_0x47b343:_0x215785['start'],_0x365fc4=_0x365fc4['isAfter'](_0x215785['end'])?_0x365fc4:_0x215785['end'],_0x13ab73=Object['assign']({},_0x262ad1['attributes']),_0x48c76c?_0x215785['start']['isBefore'](_0x48c76c['getFirstRange']()['start'])?(_0x48c76c['removeMarkers'](),_0x48c76c=_0x262ad1):_0x262ad1['removeMarkers']():_0x48c76c=_0x262ad1;}}}if(_0x48c76c)return this['_setSuggestionRange'](_0x48c76c,this['_model']['createRange'](_0x47b343,_0x365fc4)),_0x48c76c;{const _0x5b16da=_0x15362b(),_0x4074f9=this['_model']['createRange'](_0x47b343,_0x365fc4),_0xd44e8=_0x2166e1['id'],_0x1c31db=_0x3536d4?'deletion:'+_0x3536d4:'deletion',_0x2addac=this['_setSuggestionData']({'id':_0x5b16da,'type':_0x1c31db,'createdAt':new Date(),'authorId':_0xd44e8,'attributes':_0x13ab73});return this['_addSuggestionMarker'](_0x1c31db,_0x5b16da,_0xd44e8,_0x4074f9),_0x2addac;}}['markMultiRangeDeletion'](_0x385e37,_0x12e1d3='multi',_0x3cd43f={}){const _0x46f6bf=this['editor']['plugins']['get']('Users')['me'],_0x59f2d8=_0x385e37['map'](_0x8a4f54=>new _0x5b9e67(_0x8a4f54['start'],_0x8a4f54['end'])),_0x5257d3=new Set();for(const {suggestion:_0xae9424,meta:_0xbe137c}of this['_findSuggestions'](_0x59f2d8,'insertion'))_0xbe137c['isOwn']&&!_0xbe137c['isNextTo']&&_0x5257d3['add'](_0xae9424);for(const _0x187c71 of _0x5257d3)if(_0x187c71['isMultiRange']){const _0x523d2d=_0x187c71['getRanges']();(!_0x187c71['attributes']||!_0x187c71['attributes']['skipNestingCheck'])&&(_0x523d2d['every'](_0x2defb6=>_0x59f2d8['some'](_0x1ea793=>_0x1ea793['containsRange'](_0x2defb6,!0x0)))&&_0x187c71['discard']());if(_0x59f2d8['every'](_0x57dded=>_0x523d2d['some'](_0x3ff3b5=>_0x3ff3b5['containsRange'](_0x57dded,!0x0)))){const _0x452a60=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12e1d3,'accept');return this['forceDefaultExecution'](()=>_0x452a60(_0x385e37,null,_0x3cd43f)),null;}}else{const _0x282191=_0x187c71['getFirstRange']();_0x59f2d8['some'](_0x319eca=>_0x319eca['containsRange'](_0x282191,!0x0))&&_0x187c71['discard']();if(_0x59f2d8['every'](_0x28b4ff=>_0x282191['containsRange'](_0x28b4ff,!0x0))){const _0x26db35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12e1d3,'accept');return this['forceDefaultExecution'](()=>_0x26db35(_0x59f2d8,null,_0x3cd43f)),null;}}const _0xdb026c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12e1d3,'join');let _0x50f765=null;for(const _0x595b09 of this['getSuggestions']())if(_0x595b09['author']['id']==_0x46f6bf['id']&&_0x595b09['isInContent']&&'deletion'==_0x595b09['type']&&_0x595b09['subType']==_0x12e1d3&&Lt(_0x595b09,_0x3cd43f)&&(_0xdb026c(_0x595b09['getRanges'](),_0x59f2d8)||_0xdb026c(_0x59f2d8,_0x595b09['getRanges']()))){if(_0x50f765){if(_0x595b09['commentThread']&&_0x595b09['commentThread']['length'])continue;for(const _0x2da950 of _0x595b09['getRanges']())_0x50f765['isIntersectingWithRange'](_0x2da950)||_0x50f765['addRange'](_0x2da950);_0x595b09['removeMarkers']();}else{_0x50f765=_0x595b09;for(const _0x1e1242 of _0x59f2d8)_0x595b09['isIntersectingWithRange'](_0x1e1242)||_0x595b09['addRange'](_0x1e1242);}}if(_0x50f765)return _0x50f765;_0x5257d3['clear']();for(const {suggestion:_0x75279d,meta:_0x434d67}of this['_findSuggestions'](_0x59f2d8,'deletion'))_0x434d67['isOwn']&&(this['_mergeNestedSuggestions']||!_0x434d67['containsRangeInObject']&&!_0x434d67['isInsideObject'])&&Lt(_0x75279d,_0x3cd43f)&&_0x5257d3['add'](_0x75279d);for(const _0x5c5493 of _0x5257d3){const _0x4241a1=_0x5c5493['getRanges']();if(!_0x3cd43f||!_0x3cd43f['skipNestingCheck']){if(_0x59f2d8['every'](_0x177738=>_0x4241a1['some'](_0x115814=>_0x115814['containsRange'](_0x177738,!0x0))))return _0x5c5493;}(!_0x5c5493['attributes']||!_0x5c5493['attributes']['skipNestingCheck'])&&(_0x4241a1['every'](_0x434d8d=>_0x59f2d8['some'](_0x227924=>_0x227924['containsRange'](_0x434d8d,!0x0)))&&_0x5c5493['discard']());}const _0x4a57b5=_0x15362b(),_0x12e348=_0x46f6bf['id'],_0xfac7c0='deletion:'+_0x12e1d3,_0x1c7cb1=this['_setSuggestionData']({'id':_0x4a57b5,'type':_0xfac7c0,'createdAt':new Date(),'authorId':_0x12e348,'attributes':_0x3cd43f});for(const _0x2cb034 of _0x59f2d8)_0x2cb034['detach'](),_0x2cb034['isCollapsed']||'$graveyard'==_0x2cb034['root']['rootName']||this['_addSuggestionMarker'](_0xfac7c0,_0x4a57b5,_0x12e348,_0x2cb034,u['getMultiRangeId']());return _0x1c7cb1;}['markAttributeChange'](_0x207de7,_0x3cbaa6,_0x378b62,_0x13f139,_0x552337){if(_0x207de7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x38ad93=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b3162=Array['from'](this['_suggestions']['values']())['filter'](_0x453c0f=>'attribute'==_0x453c0f['type']&&_0x453c0f['data']['key']==_0x3cbaa6&&_0x453c0f['isIntersectingWithRange'](_0x207de7));if('default'===this['_trackFormatChanges']){const _0x26c139=this['_findSuggestions'](_0x207de7,'insertion')['filter'](({meta:_0xe390a8})=>_0xe390a8['isOwn']&&!_0xe390a8['isInsideObject']&&!_0xe390a8['isNextTo'])['map'](({suggestion:_0x32d785})=>_0x32d785);_0x5b3162['unshift'](..._0x26c139);}const _0x3e3ae0=new Map([[_0x207de7,_0x378b62]]);for(const _0x3805a7 of _0x5b3162){const _0x4b87cb='attribute'==_0x3805a7['type']?_0x3805a7['data']['oldValue']:void 0x0,_0x59dd3a=_0x3805a7['getFirstRange'](),_0x26f958=Array['from'](_0x3e3ae0['keys']())['find'](_0x24048b=>_0x24048b['isIntersecting'](_0x59dd3a));if(!_0x26f958)continue;const _0x2c8845=_0x26f958['getDifference'](_0x59dd3a);this['_isBlockAttribute'](_0x3cbaa6)&&'insertion'==_0x3805a7['type']&&0x0!=_0x2c8845['length']||(_0x3e3ae0['delete'](_0x26f958),_0x2c8845['forEach'](_0x427626=>{_0x3e3ae0['set'](_0x427626,_0x378b62);}),'insertion'!=_0x3805a7['type']&&_0x4b87cb!=_0x13f139&&_0x3e3ae0['set'](_0x26f958['getIntersection'](_0x59dd3a),_0x4b87cb));}const _0x3a8657=[];for(const [_0x26e922,_0xc783df]of _0x3e3ae0){const _0x35b166=_0x15362b(),_0x103c71={'key':_0x3cbaa6,'oldValue':_0xc783df,'newValue':_0x13f139};_0x3cbaa6['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':_0x3cbaa6});const _0x5e6886=('attribute:'+(_0x3cbaa6+'|'+Vt({'newValue':_0x13f139})))['substring'](0x0,0x3c),_0x562be4=this['_setSuggestionData']({'id':_0x35b166,'type':_0x5e6886,'data':_0x103c71,'createdAt':new Date(),'authorId':_0x38ad93,'attributes':_0x552337});_0x3a8657['push'](_0x562be4),this['_addSuggestionMarker'](_0x5e6886,_0x35b166,_0x38ad93,_0x26e922);}return _0x3a8657;}['enableDefaultAttributesIntegration'](_0x59b844){this['enableCommand'](_0x59b844,(_0x1197af,..._0x41f091)=>{this['_recordAttributeChanges'](()=>{_0x1197af(..._0x41f091);});});}['registerBlockAttribute'](_0x193c57){this['_blockAttributeKeys']['add'](_0x193c57);}['registerInlineAttribute'](_0xa981a1){this['_inlineAttributeKeys']['add'](_0xa981a1);}['_getAttributeKey'](_0x21675d){return'attribute'==_0x21675d['type']?_0x21675d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3a18c3,_0x3ddeb8){const _0x214194=_0x3a18c3['getFirstMarker']();this['_model']['change'](_0x20b05f=>{_0x20b05f['updateMarker'](_0x214194,{'range':_0x3ddeb8});});}['_addThreadToSuggestion'](_0x377e13){const _0x284fb5=_0x377e13['id'],_0xe095e3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x284fb5)||this['_commentsRepository']['addCommentThread']({'channelId':_0xe095e3,'threadId':_0x284fb5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x401ca3=this['_commentsRepository']['getCommentThread'](_0x284fb5);_0x401ca3['unbind']('isRemovable'),_0x401ca3['isRemovable']=!0x1,_0x377e13['commentThread']=_0x401ca3;}['_checkSuggestionCorrectness'](_0x38e3ed,_0x2daf59,_0x255229,_0x51a11f){if(_0x38e3ed['type']!=_0x2daf59||_0x38e3ed['subType']!=_0x255229||_0x38e3ed['creator']['id']!=_0x51a11f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x445205('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x23a701,_0x2797f4){const _0x2bdcb4=_0x23a701['getFirstRange']();if(_0x2797f4['isEqual'](_0x2bdcb4))_0x23a701['removeMarkers']();else{if(_0x2bdcb4['containsRange'](_0x2797f4)){const _0x212be5=this['_model']['createPositionAt'](_0x2797f4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23a701,this['_model']['createRange'](_0x2bdcb4['start'],_0x212be5));const _0x3daf3a=_0x15362b(),_0x360f4b=_0x23a701['creator']['id'],_0x2fba5f=_0x23a701['type']+':'+_0x23a701['subType'];this['_setSuggestionData']({'id':_0x3daf3a,'type':_0x2fba5f,'createdAt':new Date(),'authorId':_0x360f4b,'data':_0x23a701['data'],'attributes':_0x23a701['attributes']});const _0x11468d=this['_model']['createPositionAt'](_0x2797f4['end']['parent'],'after'),_0x225d80=this['_model']['createRange'](_0x11468d,_0x2bdcb4['end']);this['_addSuggestionMarker'](_0x2fba5f,_0x3daf3a,_0x360f4b,_0x225d80);}else{if(_0x2bdcb4['containsPosition'](_0x2797f4['start'])){const _0x4d0dc0=this['_model']['createPositionAt'](_0x2797f4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23a701,this['_model']['createRange'](_0x2bdcb4['start'],_0x4d0dc0));}else{const _0x569b51=this['_model']['createPositionAt'](_0x2797f4['end']['parent'],'after');this['_setSuggestionRange'](_0x23a701,this['_model']['createRange'](_0x569b51,_0x2bdcb4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x57a3f0){for(const {suggestion:_0x2b6e85,meta:_0x2267e6}of this['_findSuggestions'](_0x57a3f0,'insertion')){if(!_0x2267e6['isOwn'])continue;const _0x428402=_0x2b6e85['getRanges']();for(const _0x58fccd of _0x428402)if(!_0x57a3f0['getDifference'](_0x58fccd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4254a0){const _0x587b94=this['editor']['plugins']['get']('Users')['getUser'](_0x4254a0);if(!_0x587b94)throw new _0x445205('track-changes-user-not-found',this);return _0x587b94;}['_getExternalAuthor'](_0x5847ad){const _0x5154f4=this['editor']['plugins']['get']('Users'),_0x97e407=_0x3bec44('external:'+_0x5847ad),_0x25e927=_0x5154f4['getUser'](_0x97e407);return _0x25e927||_0x5154f4['addUser']({'id':_0x97e407,'name':_0x5847ad});}['_createSuggestion'](_0x5b9917,_0x3182b1,_0x2160b8,_0x1c7bab,_0x54ebfa){const _0xd791cd=this['_getAuthorFromId'](_0x1c7bab),_0x276427=this['_suggestionFactory']['buildSuggestion'](_0x5b9917,_0x3182b1,_0x2160b8,_0xd791cd,_0x54ebfa,_0x3100b9=>{this['_updateSuggestionData'](_0x2160b8,{'attributes':_0x3100b9});const _0x10f5f8=this['getSuggestion'](_0x2160b8);this['_joinWithAdjacentSuggestions'](new Set([_0x10f5f8])),this['_refreshSuggestionsChain'](new Set([_0x10f5f8]));});return this['listenTo'](_0x276427,'accept',()=>{this['_updateSuggestionData'](_0x2160b8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x276427,'discard',()=>{this['_updateSuggestionData'](_0x2160b8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2160b8,_0x276427),this['_suggestionState']['set'](_0x276427,'notReady'),_0x276427;}['_splitMarkerName'](_0x884eed){const _0xf05d4=_0x884eed['split'](':');return{'group':_0xf05d4[0x0],'type':_0xf05d4[0x1],'subType':_0xf05d4['length']>=0x5?_0xf05d4[0x2]:null,'id':_0xf05d4['length']<0x5?_0xf05d4[0x2]:_0xf05d4[0x3],'authorId':_0xf05d4['length']<0x5?_0xf05d4[0x3]:_0xf05d4[0x4],'markerCount':0x6==_0xf05d4['length']?_0xf05d4[0x5]:null};}['_breakSuggestionMarker'](_0x53d3e6,_0x47aeb5,_0x193069){const _0x24854c=_0x53d3e6['getFirstRange'](),_0x36ed31=_0x24854c['start'],_0x33aa29=_0x24854c['end'];this['_setSuggestionRange'](_0x53d3e6,this['_model']['createRange'](_0x36ed31,_0x47aeb5));const _0x360433=_0x15362b(),_0x444ce1=_0x53d3e6['creator']['id'],_0x559260=_0x53d3e6['type']+(_0x53d3e6['subType']?':'+_0x53d3e6['subType']:'');this['_setSuggestionData']({'id':_0x360433,'type':_0x559260,'createdAt':new Date(),'authorId':_0x444ce1,'originalSuggestionId':_0x53d3e6['id'],'attributes':_0x53d3e6['attributes'],'data':_0x53d3e6['data']});const _0x2c0750=this['_getAttributeKey'](_0x53d3e6);('formatBlock'==_0x53d3e6['type']||_0x2c0750&&this['_isBlockAttribute'](_0x2c0750))&&(_0x193069=this['_model']['createPositionBefore'](_0x193069['parent'])),this['_addSuggestionMarker'](_0x559260,_0x360433,_0x444ce1,this['_model']['createRange'](_0x193069,_0x33aa29));}['_findSuggestions'](_0xf20db2,_0x166560=null){const _0x2da1b9=[],_0x2c5dee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xf20db2)||(_0xf20db2=[_0xf20db2]);for(const _0x5960d7 of this['getSuggestions']()){if(!_0x5960d7['isInContent'])continue;if(_0x166560&&_0x5960d7['type']!=_0x166560)continue;let _0x222b0b=!0x1;for(const _0xee6ba4 of _0x5960d7['getRanges']()){for(const _0x240cbb of _0xf20db2){const _0x1d0579=_0x240cbb['start']['isEqual'](_0xee6ba4['end'])||_0x240cbb['end']['isEqual'](_0xee6ba4['start']);if(_0x1d0579||_0x240cbb['getIntersection'](_0xee6ba4)){const _0x13ca55=_0x240cbb['containsRange'](_0xee6ba4)&&Rt(this['_model']['schema'],_0xee6ba4['start'],_0x240cbb),_0x59f39e=_0xee6ba4['containsRange'](_0x240cbb)&&Rt(this['_model']['schema'],_0x240cbb['start'],_0xee6ba4);_0x2da1b9['push']({'suggestion':_0x5960d7,'meta':{'isOwn':_0x2c5dee==_0x5960d7['author'],'isNextTo':_0x1d0579,'isInsideObject':_0x13ca55,'containsRangeInObject':_0x59f39e}}),_0x222b0b=!0x0;break;}}if(_0x222b0b)break;}}return _0x2da1b9;}['_addSuggestionMarker'](_0x58f8e1,_0x2b5bb5,_0x576dc1,_0x34770c,_0x63a031){this['_model']['change'](_0x36f890=>{let _0x370239='suggestion:'+_0x58f8e1+':'+_0x2b5bb5+':'+_0x576dc1;_0x63a031&&(_0x370239=_0x370239+':'+_0x63a031),_0x36f890['addMarker'](_0x370239,{'range':_0x34770c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5e65d2){const _0x1245e=_0x5e65d2['previous'],_0xe69257=_0x5e65d2['next'];_0x5e65d2['previous']=null,_0x5e65d2['next']=null,null!=_0x1245e&&_0x1245e['next']==_0x5e65d2&&(_0x1245e['next']=_0xe69257),null!=_0xe69257&&_0xe69257['previous']==_0x5e65d2&&(_0xe69257['previous']=_0x1245e),'ready'==this['_suggestionState']['get'](_0x5e65d2)&&(this['_suggestionState']['set'](_0x5e65d2,'removed'),this['fire']('suggestionUnloaded',_0x5e65d2,_0x1245e,_0xe69257));}['_setSuggestionData'](_0x353bdc){const _0x2fec0f=_0x353bdc['id'],_0x5e3022=this['addSuggestionData'](_0x353bdc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x6aeba3=this['editor']['plugins']['get']('PendingActions'),_0x5ddb3d=_0x5e3022['hasComments'],_0x3d0e5e=_0x5e3022['subType']?_0x5e3022['type']+':'+_0x5e3022['subType']:_0x5e3022['type'],_0x5aea64=this['editor']['locale'],_0x45e8af=_0x6aeba3['add'](o(_0x5aea64,'PENDING_ACTION_SUGGESTION')),_0xd58e79={'id':_0x2fec0f,'type':_0x3d0e5e,'hasComments':_0x5ddb3d,'data':_0x353bdc['data']||null,'originalSuggestionId':_0x353bdc['originalSuggestionId']||null,'attributes':_0x5e3022['attributes']};this['_adapter']['addSuggestion'](_0xd58e79)['then'](_0x212fff=>{_0x5e3022['_saved']=!0x0,_0x6aeba3['remove'](_0x45e8af),_0x212fff&&_0x212fff['createdAt']&&(this['_suggestions']['get'](_0x2fec0f)['createdAt']=_0x212fff['createdAt']);})['catch'](_0x34b267=>{throw _0x56812c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e3022['discard']();}),_0x5e3022['stopListening'](),this['_suggestions']['delete'](_0x5e3022['id']),this['_suggestionState']['delete'](_0x5e3022),_0x34b267;});}return _0x5e3022;}['_isBlockAttribute'](_0x304a14){return this['_blockAttributeKeys']['has'](_0x304a14);}['_updateSuggestionData'](_0x472705,_0x19e52a){const _0x8a9be6=this['editor']['plugins']['get']('PendingActions'),_0x56314d=this['getSuggestion'](_0x472705);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x56314d['_saved']){const _0x2f522a=_0x8a9be6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x472705,_0x19e52a)['then'](()=>{_0x8a9be6['remove'](_0x2f522a);});}else _0x56314d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x472705,_0x19e52a);});}}['_getSuggestionData'](_0x256cec){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x445205('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x256cec);}['_handleNewSuggestionMarker'](_0xd2ae5d){const {id:_0x13e742,type:_0x55d16e,subType:_0x3b9ca2,authorId:_0x335807}=this['_splitMarkerName'](_0xd2ae5d),_0x5b681e=this['_suggestions']['get'](_0x13e742)||this['_createSuggestion'](_0x55d16e,_0x3b9ca2,_0x13e742,_0x335807,{});switch(this['_checkSuggestionCorrectness'](_0x5b681e,_0x55d16e,_0x3b9ca2,_0x335807),this['_suggestionState']['get'](_0x5b681e)){case'notReady':this['_getSuggestionData'](_0x13e742)['then'](_0x16ee70=>{let _0x5a2c2a=Promise['resolve']();_0x16ee70['hasComments']&&(_0x5a2c2a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x13e742})),_0x5a2c2a['then'](()=>{this['addSuggestionData'](_0x16ee70)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5b681e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x13e742,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5b681e,'ready'),this['fire']('suggestionLoaded',_0x5b681e);break;case'ready':this['fire']('suggestionChanged',_0x5b681e);}return _0x5b681e['addMarkerName'](_0xd2ae5d),_0x5b681e;}['_refreshSuggestionsChain'](_0x54a51c){const _0x48f2a2=Array['from'](_0x54a51c),_0x46202d=_0x48f2a2['filter'](_0xb3fc43=>'attribute'==_0xb3fc43['type']);this['_refreshAttributeSuggestionsChain'](_0x46202d);const _0x466f8f=_0x48f2a2['filter'](_0x42f75c=>!_0x42f75c['isMultiRange']&&'attribute'!=_0x42f75c['type']),_0x5655b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b043c=>!_0x2b043c['isMultiRange']&&'attribute'!=_0x2b043c['type']),_0x5333b1=_0x5655b8['filter'](_0x374862=>!_0x54a51c['has'](_0x374862)),_0x7182f8=new Map(_0x5655b8['map'](_0x739389=>[_0x739389,this['_suggestionFactory']['getSuggestionCallback'](_0x739389['type'],_0x739389['subType'],'chain')])),_0x797187=new Map(_0x5655b8['map'](_0x3ba0ae=>[_0x3ba0ae,_0x3ba0ae['getFirstRange']()])),_0x520070=new Set(),_0x34b016=new Set();for(let _0x231588=0x0;_0x231588<_0x466f8f['length'];_0x231588++)_0xff0245(_0x466f8f[_0x231588],_0x466f8f,_0x231588+0x1);for(let _0x40eb30=0x0;_0x40eb30<_0x466f8f['length'];_0x40eb30++)_0xff0245(_0x466f8f[_0x40eb30],_0x5333b1,0x0);const _0x33c1b4=new Set();for(let _0x49adfc=0x0;_0x49adfc<_0x466f8f['length'];_0x49adfc++){const _0x5aadcd=_0x466f8f[_0x49adfc];!_0x34b016['has'](_0x5aadcd)&&_0x5aadcd['previous']&&(_0x33c1b4['add'](_0x5aadcd['previous']),_0x5aadcd['previous']['next']===_0x5aadcd&&(_0x5aadcd['previous']['next']=null),_0x5aadcd['previous']=null),!_0x520070['has'](_0x5aadcd)&&_0x5aadcd['next']&&(_0x33c1b4['add'](_0x5aadcd['next']),_0x5aadcd['next']['previous']===_0x5aadcd&&(_0x5aadcd['next']['previous']=null),_0x5aadcd['next']=null);}function _0xff0245(_0x235c5c,_0x201a04,_0x4f7625){for(let _0x30455d=_0x4f7625;_0x30455d<_0x201a04['length'];_0x30455d++){const _0x3f5bee=_0x122670(_0x235c5c,_0x201a04[_0x30455d]);_0x3f5bee&&(_0x3f5bee[0x0]['next']=_0x3f5bee[0x1],_0x3f5bee[0x1]['previous']=_0x3f5bee[0x0],_0x520070['add'](_0x3f5bee[0x0]),_0x34b016['add'](_0x3f5bee[0x1]));}}function _0x122670(_0xe339d,_0x4d2217){if(_0xe339d['author']['id']!==_0x4d2217['author']['id'])return null;const _0x43ad27=_0x7182f8['get'](_0xe339d)(_0xe339d,_0x4d2217,_0x797187['get'](_0xe339d),_0x797187['get'](_0x4d2217));if(!_0x43ad27)return null;return _0x7182f8['get'](_0x4d2217)(_0xe339d,_0x4d2217,_0x797187['get'](_0xe339d),_0x797187['get'](_0x4d2217))?_0x43ad27[0x1]['commentThread']&&_0x43ad27[0x1]['commentThread']['length']?null:_0x43ad27:null;}_0x33c1b4['size']&&this['_refreshSuggestionsChain'](_0x33c1b4);}['_refreshAttributeSuggestionsChain'](_0x314b31){if(0x0==_0x314b31['length'])return;const _0x43ed32=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30d49e=>'attribute'==_0x30d49e['type']&&_0x30d49e['_isDataLoaded']),_0x3a3daf=[],_0x4ae2df=new Map();for(const _0x39a973 of _0x43ed32){const _0x32f1cd=_0x3bec44(_0x39a973['attributes']);_0x4ae2df['has'](_0x32f1cd)||(_0x4ae2df['set'](_0x32f1cd,_0x3a3daf['length']),_0x3a3daf['push']([]));const _0x508694=_0x4ae2df['get'](_0x32f1cd);_0x3a3daf[_0x508694]['push'](_0x39a973);}!(function(){_0x3a3daf['sort']((_0x5096f0,_0x32d90e)=>{const _0x59233a=_0x5096f0[0x0]['createdAt'],_0x2d2c27=_0x32d90e[0x0]['createdAt'];return _0x59233a==_0x2d2c27?_0x5096f0[0x0]['attributes']['groupId']<_0x32d90e[0x0]['attributes']['groupId']?-0x1:0x1:_0x59233a<_0x2d2c27?-0x1:0x1;});for(const _0x54cfab of _0x3a3daf)_0x54cfab['sort']((_0x36a86d,_0x9a257a)=>_0x36a86d['id']<_0x9a257a['id']?-0x1:0x1);}());for(let _0x28e867=0x0;_0x28e867<_0x3a3daf['length'];_0x28e867++){if(0x0==_0x3a3daf[_0x28e867]['length'])continue;const _0x263d5a=[];for(let _0x3f7b5b=_0x28e867+0x1;_0x3f7b5b<_0x3a3daf['length'];_0x3f7b5b++)0x0!=_0x3a3daf[_0x3f7b5b]['length']&&_0x517864(_0x3a3daf[_0x28e867],_0x3a3daf[_0x3f7b5b])&&_0x263d5a['push'](_0x3f7b5b);for(const _0x410e22 of _0x263d5a)_0x3a3daf[_0x28e867]=_0x3a3daf[_0x28e867]['concat'](_0x3a3daf[_0x410e22]),_0x3a3daf[_0x410e22]=[];}for(const _0x2316e8 of _0x3a3daf)for(let _0x463df5=0x0;_0x463df5<_0x2316e8['length'];_0x463df5++)_0x2316e8[_0x463df5]['next']=_0x2316e8[_0x463df5+0x1]||null;for(const _0x102da0 of _0x3a3daf)for(let _0x3580ca=0x0;_0x3580ca<_0x102da0['length'];_0x3580ca++)_0x102da0[_0x3580ca]['previous']=_0x102da0[_0x3580ca-0x1]||null;function _0x517864(_0x204085,_0x55db83){if(_0x204085[0x0]['attributes']['groupId']!==_0x55db83[0x0]['attributes']['groupId']&&_0x204085[0x0]['author']!==_0x55db83[0x0]['author'])return!0x1;if(!function(_0x40724a,_0x688c01){if(!_0x40724a['hasComments']&&!_0x688c01['hasComments'])return!0x0;if(_0x40724a['hasComments']&&_0x688c01['hasComments'])return!0x1;if(_0x40724a['hasComments']&&_0x688c01['createdAt']<_0x40724a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x688c01['hasComments']&&_0x40724a['createdAt']<_0x688c01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x204085[0x0],_0x55db83[0x0]))return!0x1;const _0x3d577f=Bt(_0x204085[0x0]['attributes'],'groupId'),_0x3fa29b=Bt(_0x55db83[0x0]['attributes'],'groupId');if(!_0x4c16cf(_0x3d577f,_0x3fa29b))return!0x1;return!!_0x204085['every'](_0x2b3003=>_0x55db83['some'](_0x7b1f05=>_0x2b3003['getFirstRange']()['isEqual'](_0x7b1f05['getFirstRange']())))&&_0x55db83['every'](_0x23f916=>_0x204085['some'](_0x32559f=>_0x23f916['getFirstRange']()['isEqual'](_0x32559f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fb3a0){const _0x534daf=Array['from'](_0x2fb3a0),_0x47fef3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x20ac10=_0x47fef3['filter'](_0x3a89de=>!_0x2fb3a0['has'](_0x3a89de)),_0x35e217=new Map(_0x534daf['map'](_0x583e41=>[_0x583e41,this['_suggestionFactory']['getSuggestionCallback'](_0x583e41['type'],_0x583e41['subType'],'join')])),_0x3a3268=new Map(_0x47fef3['map'](_0x1ec2a2=>[_0x1ec2a2,_0x1ec2a2['getRanges']()]));for(let _0x44c071=0x0;_0x44c071<_0x534daf['length'];_0x44c071++){if(_0x223a4f(this,_0x534daf[_0x44c071],_0x534daf,_0x44c071+0x1))return!0x0;}for(let _0x3ea897=0x0;_0x3ea897<_0x534daf['length'];_0x3ea897++){if(_0x223a4f(this,_0x534daf[_0x3ea897],_0x20ac10,0x0))return!0x0;}return!0x1;function _0x223a4f(_0x5690e2,_0xcf86ad,_0x89ef3d,_0x561d72){for(let _0x1a9ec7=_0x561d72;_0x1a9ec7<_0x89ef3d['length'];_0x1a9ec7++){const _0x4dd1d4=_0x89ef3d[_0x1a9ec7];if(_0x4dd1d4['type']!==_0xcf86ad['type']||_0x4dd1d4['author']['id']!==_0xcf86ad['author']['id']||_0x4dd1d4['subType']!==_0xcf86ad['subType'])continue;if(!Pt(_0xcf86ad,_0x4dd1d4,['groupId']))continue;if('attribute'==_0xcf86ad['type']&&_0xcf86ad['data']['oldValue']!=_0x4dd1d4['data']['oldValue'])continue;if('attribute'==_0xcf86ad['type']&&_0x5690e2['_isBlockAttribute'](_0xcf86ad['data']['key']))continue;if('formatBlock'==_0xcf86ad['type']){const _0x11b031=_0x5690e2['editor']['model'],_0x44cb39=_0xcf86ad['getContainedElement']();if(_0x44cb39&&(_0x11b031['schema']['isObject'](_0x44cb39)||_0x11b031['schema']['isLimit'](_0x44cb39)))continue;}const _0x11d3b3=_0x35e217['get'](_0xcf86ad),_0x303f2c=_0x3a3268['get'](_0xcf86ad),_0x418044=_0x3a3268['get'](_0x4dd1d4),_0xedfa13=_0xcf86ad['commentThread']&&_0xcf86ad['commentThread']['length'],_0x4ee68a=_0x4dd1d4['commentThread']&&_0x4dd1d4['commentThread']['length'];if(!_0xedfa13&&_0x11d3b3(_0x418044,_0x303f2c))return _0x5690e2['_joinSuggestions'](_0x4dd1d4,_0xcf86ad),_0x3a3268['delete'](_0xcf86ad),!0x0;if(!_0x4ee68a&&_0x11d3b3(_0x303f2c,_0x418044))return _0x5690e2['_joinSuggestions'](_0xcf86ad,_0x4dd1d4),_0x3a3268['delete'](_0x4dd1d4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46527a,_0x41cffa){if(_0x46527a['isMultiRange']){for(const _0x55f248 of _0x41cffa['getRanges']())_0x46527a['addRange'](_0x55f248);}else{const _0x12ffac=_0x41cffa['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46527a,this['_model']['createRange'](_0x46527a['getFirstRange']()['start'],_0x12ffac));}_0x41cffa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x323fc4,_0x1d2fca){const _0x1259e0=_0x323fc4['startsWith']('format')||_0x323fc4['startsWith']('attribute')?'FORMATTING':_0x323fc4['toUpperCase']();return o(this['editor']['locale'],_0x1d2fca+'_'+_0x1259e0+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x2d9240=this['editor'];if(!_0x2d9240['ui'])return;const {ariaLiveAnnouncer:_0x30efd8}=_0x2d9240['ui'];_0x271149(this['_model'],({left:_0x4658e7,entered:_0x563e5c})=>{for(const _0x668b89 of _0x4658e7){const {group:_0x4e6b08,type:_0xee50dd}=this['_splitMarkerName'](_0x668b89['name']);if('suggestion'===_0x4e6b08){_0x30efd8['announce'](this['_getMarkerAnnouncementText'](_0xee50dd,'LEAVE'));break;}}for(const _0x2c16ea of _0x563e5c){const {group:_0x39b528,type:_0x5d23ae}=this['_splitMarkerName'](_0x2c16ea['name']);if('suggestion'===_0x39b528){_0x30efd8['announce'](this['_getMarkerAnnouncementText'](_0x5d23ae,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5805b0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x280a4d=this['editor'],_0x13ee91=_0x280a4d['model']['document']['differ']['getChanges']();if(0x0==_0x13ee91['length'])return!0x1;const _0x464332=[],_0x52c6e9=_0x13ee91['filter'](_0x2b7c93=>'attribute'==_0x2b7c93['type']),_0x2c5305=_0x13ee91['filter'](_0x194ec2=>'insert'==_0x194ec2['type']&&'$text'!=_0x194ec2['name']),_0x3e4455=_0x13ee91['filter'](_0x39b2dd=>'remove'==_0x39b2dd['type']&&'$text'!=_0x39b2dd['name']);for(const _0x37be2f of _0x52c6e9)_0x464332['push']({'key':_0x37be2f['attributeKey'],'newValue':_0x37be2f['attributeNewValue'],'oldValue':_0x37be2f['attributeOldValue'],'range':Ot(_0x37be2f['range'],_0x280a4d['model'])});for(const _0x266932 of _0x2c5305){const _0x3dbd4b=_0x3e4455['find'](_0xa44a29=>_0xa44a29['position']['isEqual'](_0x266932['position']));_0x3dbd4b&&_0x464332['push']({'key':m,'newValue':_0x266932['name'],'oldValue':_0x3dbd4b['name'],'range':_0x280a4d['model']['createRangeOn'](_0x266932['position']['nodeAfter'])});}return 0x0!=_0x464332['length']&&this['_reduceExistingSuggestions'](_0x5805b0,_0x464332);}['_processAttributeSuggestions'](_0x78fb39){let _0x1f0b5e=!0x1;const _0x5469e1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d3c6c=>_0x5d3c6c['data']['newRange']&&_0x5d3c6c['name']['startsWith']('suggestion:attribute:'));for(const _0x3f0a7c of _0x5469e1){const {subType:_0x3b684f,id:_0x4a9835}=this['_splitMarkerName'](_0x3f0a7c['name']),_0xc6cde2=_0x3b684f['split']('|')[0x0];for(const _0x578d37 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x578d37['id']!=_0x4a9835&&'attribute'==_0x578d37['type']&&_0x578d37['data']&&_0x578d37['data']['key']==_0xc6cde2&&_0x578d37['getFirstRange']()['isIntersecting'](_0x3f0a7c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x578d37,_0x3f0a7c['data']['newRange'],_0x78fb39),_0x1f0b5e=!0x0);}return _0x1f0b5e;}['_recordAttributeChanges'](_0x541bce){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x541bce();}['_isRegisteredAttribute'](_0xb8cb5b){const _0x37028=this['_isBlockAttribute'](_0xb8cb5b),_0x5421bf=this['_inlineAttributeKeys']['has'](_0xb8cb5b);return _0x37028||_0x5421bf;}['_reduceExistingSuggestions'](_0x939ed1,_0x4a46fc){if(0x0==_0x4a46fc['length'])return!0x1;let _0x2b234f=!0x1;for(const _0x506114 of _0x4a46fc){const _0x37ad6d=this['_findSuggestions'](_0x506114['range'],'attribute')['filter'](_0x5e8645=>!_0x5e8645['meta']['isNextTo'])['map'](_0x14a7af=>_0x14a7af['suggestion']),_0x55a7f0=_0x3bec44({'newValue':_0x506114['newValue']});_0x37ad6d['filter'](_0x44995d=>{const [_0x329388,_0x1a67d8]=_0x44995d['subType']['split']('|');return _0x329388==_0x506114['key']&&_0x1a67d8!=_0x55a7f0;})['forEach'](_0x26eb1a=>{this['_reduceSuggestionAttributeRange'](_0x26eb1a,_0x506114['range'],_0x939ed1),_0x2b234f=!0x0;});}return _0x2b234f;}['_reduceSuggestionAttributeRange'](_0x5feaae,_0x33089e,_0x3d4597){const _0x5a2340=_0x5feaae['getFirstRange']()['getDifference'](_0x33089e);0x0!==_0x5a2340['length']?0x1!==_0x5a2340['length']?this['_breakSuggestionMarker'](_0x5feaae,_0x33089e['start'],_0x33089e['end']):this['_setSuggestionRange'](_0x5feaae,_0x5a2340[0x0]):_0x3d4597['removeMarker'](_0x5feaae['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4eb619){this['_editor']=_0x4eb619,this['_model']=_0x4eb619['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x221e55,_0x530124,_0x47efe5,_0x516949,_0x5c4f27,_0x2a4e61){return new u(this['_model'],{'type':_0x221e55,'subType':_0x530124,'id':_0x47efe5,'author':_0x516949,'creator':_0x516949,'attributes':_0x5c4f27,'onAttributesChange':_0x2a4e61,'onAccept':(..._0x5bab06)=>this['getSuggestionCallback'](_0x221e55,_0x530124,'accept')(..._0x5bab06),'onDiscard':(..._0x46a507)=>this['getSuggestionCallback'](_0x221e55,_0x530124,'discard')(..._0x46a507)});}['registerCustomCallback'](_0xe6de84,_0x95f153,_0x6a805c,_0x101597){const _0x5792dd=_0xe6de84+':'+_0x95f153+':'+_0x6a805c;this['_customCallbacks']['set'](_0x5792dd,_0x101597);}['getSuggestionCallback'](_0x42580d,_0x4f5fe6,_0x38bf30){const _0x120e48=_0x42580d+':'+_0x4f5fe6+':'+_0x38bf30;return this['_customCallbacks']['get'](_0x120e48)||this['_defaultCallbacks']['get'](_0x42580d+':'+_0x38bf30);}['_registerDefaultCallbacks'](){const _0x4c0610=()=>!0x1,_0x24aea1=_0x52160c=>{_0x52160c['sort']((_0x11c56d,_0x471d94)=>_0x11c56d['start']['isBefore'](_0x471d94['start'])?0x1:-0x1),this['_model']['change'](_0x3777fe=>{for(const _0x1d86b3 of _0x52160c){let _0x467ac8;_0x467ac8=_0x1d86b3['end']['isAtEnd']&&_0x1d86b3['end']['parent']==_0x1d86b3['start']['nodeAfter']?_0x3777fe['createSelection'](_0x1d86b3['start']['nodeAfter'],'on'):_0x3777fe['createSelection'](_0x1d86b3),this['_model']['deleteContent'](_0x467ac8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5703fb=(_0x3ed7a2,_0x2935a1)=>{_0x2935a1&&this['_model']['change'](_0x3a4a3d=>{const {commandName:_0x944dea,commandParams:_0x2135bf=[]}=_0x2935a1,_0xdd088=_0x3ed7a2['map'](_0x4dbd00=>(Tt(_0x4dbd00)&&(_0x4dbd00=this['_model']['createRange'](_0x4dbd00['end'])),_0x4dbd00))['filter'](_0x25cad8=>'$graveyard'!==_0x25cad8['root']['rootName']);if(_0xdd088['length']<0x1)return;const _0x54018e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1678bc=>_0x5b9e67['fromRange'](_0x1678bc));_0x3a4a3d['setSelection'](_0xdd088);for(const _0x2ac5a6 of this['_editor']['commands']['commands']())_0x2ac5a6['refresh']();_0x2135bf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x944dea,..._0x2135bf);const _0x3c78a0=_0x54018e['filter'](_0x3db616=>'$graveyard'!=_0x3db616['root']['rootName']);_0x3c78a0['length']>0x0&&_0x3a4a3d['setSelection'](_0x3c78a0);for(const _0x3e30c3 of _0x54018e)_0x3e30c3['detach']();});},_0x12b643=(_0x4c05ad,_0x301d87)=>0x1==_0x4c05ad['length']&&0x1==_0x301d87['length']&&_0x4c05ad[0x0]['end']['isEqual'](_0x301d87[0x0]['start']),_0x595a2e=(_0x5cfe06,_0x253bc4,_0x50a2c2,_0x438ef8)=>Ft(_0x5cfe06,_0x253bc4,_0x50a2c2,_0x438ef8,this['_model'])?[_0x5cfe06,_0x253bc4]:Ft(_0x253bc4,_0x5cfe06,_0x438ef8,_0x50a2c2,this['_model'])?[_0x253bc4,_0x5cfe06]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4c0610),this['_defaultCallbacks']['set']('insertion:discard',_0x24aea1),this['_defaultCallbacks']['set']('insertion:join',_0x12b643),this['_defaultCallbacks']['set']('insertion:chain',_0x595a2e),this['_defaultCallbacks']['set']('deletion:accept',_0x24aea1),this['_defaultCallbacks']['set']('deletion:discard',_0x4c0610),this['_defaultCallbacks']['set']('deletion:join',_0x12b643),this['_defaultCallbacks']['set']('deletion:chain',_0x595a2e),this['_defaultCallbacks']['set']('formatInline:accept',_0x5703fb),this['_defaultCallbacks']['set']('formatInline:discard',_0x4c0610),this['_defaultCallbacks']['set']('formatInline:join',_0x12b643),this['_defaultCallbacks']['set']('formatInline:chain',_0x4c0610),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5703fb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4c0610),this['_defaultCallbacks']['set']('formatBlock:join',_0x12b643),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4c0610),this['_defaultCallbacks']['set']('attribute:accept',_0x4c0610),this['_defaultCallbacks']['set']('attribute:discard',(_0x3acc75,_0x3a5d43)=>{if(!_0x3a5d43)return;const _0x48f5f7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x36117a=>{if(_0x3a5d43['key']==m)for(const _0x4f9d55 of _0x3acc75){const _0xe1e46c=_0x4f9d55['start']['nodeAfter'],_0x50ab0e=_0x3a5d43['oldValue'];_0x36117a['rename'](_0xe1e46c,_0x50ab0e);}else{if(_0x48f5f7['_isBlockAttribute'](_0x3a5d43['key'])){for(const _0x5e4bcc of _0x3acc75)void 0x0!==_0x3a5d43['oldValue']?_0x36117a['setAttribute'](_0x3a5d43['key'],_0x3a5d43['oldValue'],_0x5e4bcc['start']['nodeAfter']):_0x36117a['removeAttribute'](_0x3a5d43['key'],_0x5e4bcc['start']['nodeAfter']);}else{for(const _0x3b90fe of _0x3acc75)_0x3a5d43['oldValue']?_0x36117a['setAttribute'](_0x3a5d43['key'],_0x3a5d43['oldValue'],_0x3b90fe):_0x36117a['removeAttribute'](_0x3a5d43['key'],_0x3b90fe);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x12b643);}}function Rt(_0x1d0aa4,_0x33e00d,_0x56ba55){for(const _0x14fa8c of _0x33e00d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14fa8c['root']==_0x14fa8c)return!0x1;if(!_0x56ba55['containsItem'](_0x14fa8c))return!0x1;if(_0x1d0aa4['isObject'](_0x14fa8c)||_0x1d0aa4['isLimit'](_0x14fa8c))return!0x0;}return!0x1;}function Tt(_0x22ae7a){return _0x22ae7a['end']['parent']==_0x22ae7a['start']['nodeAfter']&&_0x22ae7a['end']['isAtStart'];}function Et(_0x190026,_0x3d30c2,_0x1e9841,_0x5a9703){const _0x1b015b=_0x238d36=>!_0x238d36['item']['is']('$textProxy')&&!_0x5a9703['isObject'](_0x238d36['item']),_0x4b75dc=_0x190026['start']['getLastMatchingPosition'](_0x1b015b),_0x1103be=_0x190026['end']['getLastMatchingPosition'](_0x1b015b,{'direction':'backward'});return(!_0x190026['start']['isEqual'](_0x4b75dc)||!_0x190026['end']['isEqual'](_0x1103be))&&(_0x4b75dc['isBefore'](_0x1103be)?_0x1e9841['updateMarker'](_0x3d30c2,{'range':_0x1e9841['createRange'](_0x4b75dc,_0x1103be)}):_0x1e9841['removeMarker'](_0x3d30c2),!0x0);}function Vt(_0x54ae59){return _0x3bec44(_0x54ae59);}function Ut(_0x584825){const _0x402608=_0x584825['start']['nodeAfter'];return _0x402608&&_0x402608['is']('element');}function Ot(_0x10d689,_0x10fd97){return null==_0x10d689['end']['nodeBefore']&&_0x10d689['end']['parent']==_0x10d689['start']['nodeAfter']?Gt(_0x10d689['start']['nodeAfter'],_0x10fd97):_0x10d689;}function Gt(_0x5343a4,_0x56c87a){const _0x53c0de=_0x56c87a['schema']['isObject'](_0x5343a4)||_0x56c87a['schema']['isSelectable'](_0x5343a4);return _0x56c87a['createRange'](_0x56c87a['createPositionAt'](_0x5343a4,'before'),_0x53c0de?_0x56c87a['createPositionAfter'](_0x5343a4):_0x56c87a['createPositionAt'](_0x5343a4,'end'));}function Ft(_0x4ee1e5,_0x1330da,_0x537de2,_0x3350e1,_0x5ee86d){if(!Pt(_0x4ee1e5,_0x1330da))return!0x1;if(_0x537de2['end']['isEqual'](_0x3350e1['start']))return!0x0;if(_0x4ee1e5['type']!=_0x1330da['type'])return!0x1;if(!_0x537de2['end']['isTouching'](_0x3350e1['start']))return!0x1;const _0x574bf5=_0x5ee86d['createRange'](_0x537de2['end'],_0x3350e1['start'])['getWalker']();for(const _0x1d90de of _0x574bf5)if(['elementStart','elementEnd']['includes'](_0x1d90de['type'])&&_0x5ee86d['schema']['isLimit'](_0x1d90de['item']))return!0x1;return!0x0;}function Pt(_0x172ba8,_0x25d362,_0x358ffb=[]){return!(!_0x172ba8['_isDataLoaded']||!_0x25d362['_isDataLoaded'])&&_0x4c16cf(Bt(_0x172ba8['attributes'],_0x358ffb),Bt(_0x25d362['attributes'],_0x358ffb));}function Lt(_0x52a74c,_0x3cfdf4){const _0x4857bb=Ht(_0x52a74c['attributes']),_0x310be3=Ht(_0x3cfdf4);if(!_0x52a74c['_isDataLoaded'])return!0x1;for(const _0x710e32 of Object['keys'](_0x310be3))if(!_0x4c16cf(_0x4857bb[_0x710e32],_0x310be3[_0x710e32]))return!0x1;return!0x0;}function Ht(_0x9c1ac1){const _0x500873=Object['assign']({},_0x9c1ac1);return delete _0x500873['skipNestingCheck'],delete _0x500873['tablePasteChainId'],_0x500873;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x96933(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d690d,_0x899d5b,_0x2448a2,_0x3359ce){super(),this['model']=_0x899d5b,this['view']=_0x2448a2,this['commentThreadController']=_0x3359ce,this['_editor']=_0x4d690d,this['_acceptCommand']=_0x4d690d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d690d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x22c8e7,_0x189a02)=>_0x22c8e7||_0x189a02),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x263ee9=>_0x263ee9&&this['_editor']['model']['canEditAt'](_0x899d5b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4137e2=>_0x4137e2&&this['_editor']['model']['canEditAt'](_0x899d5b['getRanges']())),this['_pendingAction']=null,_0x2448a2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2448a2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2448a2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2448a2,'change:isDirty',()=>{_0x2448a2['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 _0x4b6555=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4b6555);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x197ffd{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x399901,_0x5c0626,_0x167738,_0xaa870c){super(_0x399901),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5c0626['authoredAt']),this['bind']('authoredAt')['to'](_0x5c0626),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5c0626,this['_localUser']=_0x167738,this['_config']=_0xaa870c,_0xaa870c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x8dcb78}=this['_config'];this['commentsListView']=new _0x8dcb78(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',_0x2686ed=>_0x2686ed+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x566f2a,_0x189b2c)=>_0x566f2a||!!_0x189b2c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x42ca95}=this['_config'],_0x3505ed=new _0x42ca95(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35ef32=_0x3505ed['commentInputView'];return _0x3505ed['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35ef32,'value',(_0x17c965,_0x54edc7,_0x2c2a3c)=>!!_0x2c2a3c||_0x17c965&&!_0x54edc7),_0x35ef32['on']('submit',(_0x1b21f4,_0x4966bd)=>{this['fire']('addComment',_0x4966bd),_0x35ef32['editor']['setData']('');}),_0x35ef32['on']('cancel',()=>this['focus']()),_0x35ef32['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3505ed;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2225d4,_0x341054,_0x2ef3f3,_0x677f86){super(_0x2225d4,_0x341054,_0x2ef3f3,_0x677f86),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1221ae=>_0x1221ae&&_0x1221ae[0x0]?_0x1221ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3c010c,_0x557f4f)=>{let _0x5c500d='';for(const _0x5a0354 of _0x3c010c)_0x5c500d+='<p>'+ds(_0x5a0354['content'],_0x5a0354['color'])+'</p>';return _0x557f4f?_0x5c500d:_0x5fbeb(_0x5c500d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2225d4,'Accept\x20suggestion'),_0x37f5d0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2225d4,'Discard\x20suggestion'),_0x37f5d0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x53c264(_0x2225d4,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x18b0a8=this['bindTemplate'],_0x59af2f=[{'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':_0x18b0a8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x18b0a8['to']('authoredAt',_0x4fda9f=>this['_config']['formatDateTime'](_0x4fda9f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x59af2f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x162ddc={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x18b0a8['if']('isActive','ck-suggestion-wrapper--active'),_0x18b0a8['to']('type',_0x4725f1=>'ck-suggestion-'+_0x4725f1),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x59af2f}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x162ddc['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x162ddc;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2be84e,_0x34952c,_0x37bd7f)=>{this['_descriptionElement']['innerHTML']=_0x37bd7f;});}['_createButton'](_0x1fe25d,_0x503fb2,_0x34bca3,_0x36a29f,_0x1e27a3){const _0x345a80=new _0x2b8a83(this['locale']);return _0x345a80['set']({'label':_0x1fe25d,'icon':_0x503fb2,'tooltip':!0x0,'tooltipPosition':_0x1e27a3}),_0x345a80['extendTemplate']({'attributes':{'class':_0x34bca3}}),_0x345a80['on']('execute',()=>{this['fire'](_0x36a29f,this['_model']['id']);}),_0x345a80;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x2e3742,_0x2c5e99){let _0x2bcd1e='';return _0x2bcd1e+=_0x2e3742['split']('*')['map']((_0x35d508,_0xab5fa5)=>_0xab5fa5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x35d508)+'</span>':us(_0x35d508))['join'](''),_0x2c5e99&&(_0x2bcd1e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2c5e99['value']+'\x22\x20title=\x22'+_0x2c5e99['title']+'\x22></span>'),_0x2bcd1e;}function us(_0x406270){const _0x561399=document['createElement']('span');return _0x561399['innerText']=_0x406270,_0x561399['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1c3a28{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5f159e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x58af50){super(_0x58af50),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f1e5d=this['editor']['config'];_0x3f1e5d['define']('trackChanges.SuggestionThreadView',ne),_0x3f1e5d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f1e5d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x26336d,_0x260c97){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4e51c8,_0x532c88]of this['_handleControllerBuffer']){const _0xdcab99=this['_suggestionToController']['has'](_0x4e51c8);_0xdcab99||_0x532c88?_0xdcab99&&_0x532c88&&this['_destroyController'](_0x4e51c8):this['_initializeController'](_0x4e51c8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x26336d,_0x260c97);}['init'](){const _0x393b19=this['editor'],_0x5ef320=_0x393b19['plugins']['get']('TrackChangesEditing'),_0x4b4937=_0x393b19['plugins']['get']('Annotations'),_0x118c3a=_0x393b19['plugins']['get']('EditorAnnotations'),_0x1b8aba=_0x393b19['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x118c3a['addSourceCollector'](()=>{const _0x2a34f0=[];for(const [_0x3af39a,_0x53f6d1]of Array['from'](this['_suggestionToController'])){const _0x88c982=_0x3af39a['getAllAdjacentSuggestions'](),_0x55137a=[];for(const _0x4949f1 of _0x88c982){if(!_0x4949f1['isInContent'])continue;if(_0x4949f1['isMultiRange']){_0x55137a['push'](..._0x4949f1['getRanges']());continue;}const _0x5121d4=_0x4949f1['getFirstRange']();if(_0x55137a['length']>0x0){const _0xfbfe1f=_0x55137a[0x0]['getJoined'](_0x5121d4);if(_0xfbfe1f){_0x55137a[0x0]=_0xfbfe1f;continue;}}_0x55137a['push'](_0x5121d4);}_0x2a34f0['push']([_0x53f6d1['view'],_0x55137a]);}return _0x2a34f0;}),this['listenTo'](_0x5ef320,'suggestionLoaded',(_0x14219e,_0x3941f5)=>{this['listenTo'](_0x3941f5,'change:previous',(_0x405644,_0x10780a,_0x5ad761,_0x4501a0)=>{_0x3941f5['isInContent']&&(null==_0x5ad761?(this['_updateController'](_0x4501a0['head']),this['_handleSuggestionControllerDelayed'](_0x3941f5,!0x1)):(this['_updateController'](_0x5ad761['head']),null==_0x4501a0&&this['_handleSuggestionControllerDelayed'](_0x3941f5,!0x0)));}),null!==_0x3941f5['previous']?this['_updateController'](_0x3941f5['head']):this['_handleSuggestionControllerDelayed'](_0x3941f5,!0x1);}),this['listenTo'](_0x5ef320,'suggestionUnloaded',(_0xfeaeef,_0x2ea0c8,_0x155fdc)=>{this['stopListening'](_0x2ea0c8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ea0c8),this['_suggestionToController']['has'](_0x2ea0c8)&&this['_destroyController'](_0x2ea0c8),_0x155fdc&&this['_updateController'](_0x155fdc['head']);}),this['listenTo'](_0x5ef320,'suggestionChanged',(_0x4a8e94,_0x3a637)=>{this['_updateController'](_0x3a637);}),this['listenTo'](_0x4b4937,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b8aba,'addComment',(_0xa65355,{threadId:_0x1f2a62,isFromAdapter:_0x54e864})=>{if(_0x54e864||!_0x5ef320['hasSuggestion'](_0x1f2a62))return;const _0xe006d0=_0x5ef320['getSuggestion'](_0x1f2a62);this['_suggestionToController']['get'](_0xe006d0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4e19c5=this['editor']['plugins']['get']('Annotations'),_0x228f12=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56aff8=Array['from'](_0x4e19c5['activeAnnotations'],_0x270045=>_0x270045['innerView'])['filter'](_0x45b74f=>this['_viewToController']['has'](_0x45b74f)),_0x4ec558=[];for(const _0x53452e of _0x56aff8){const _0x327474=this['_viewToController']['get'](_0x53452e)['model']['getAllAdjacentSuggestions']();_0x4ec558['push'](..._0x327474['reduce']((_0x5daefd,_0x2da54e)=>[..._0x5daefd,..._0x2da54e['getMarkerNames']()],[]));}_0x228f12['activeMarkers']=_0x4ec558;}['_addUIComponentsToFactory'](){const _0x2710d0=this['editor'],_0x5987dd=_0x2710d0['locale'],_0x20767b=o(_0x5987dd,'Track\x20changes'),_0x2f2137=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x20767b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5987dd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5987dd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5987dd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5987dd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4fd0b1 of _0x2f2137)if(ae(_0x4fd0b1)){const _0x182a26=_0x2710d0['commands']['get'](_0x4fd0b1['model']['commandName']);_0x4fd0b1['model']['bind']('isOn','isEnabled')['to'](_0x182a26,'value','isEnabled');}_0x2710d0['ui']['componentFactory']['add']('trackChanges',_0xc117f1=>this['_createToolbarButton'](_0xc117f1,_0x2f2137,_0x20767b)),_0x2710d0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21939f=>this['_createMenuBarMenu'](_0x21939f,_0x2f2137,_0x20767b));}['_createToolbarButton'](_0x46f5eb,_0x2677a5,_0x28c3bc){const _0x4a9ad7=zt(_0x46f5eb,Zt),_0x5af570=this['editor']['commands']['get']('trackChanges');_0x4a9ad7['buttonView']['set']({'tooltip':_0x28c3bc,'label':_0x28c3bc,'icon':ie}),_0x4a9ad7['buttonView']['bind']('isOn')['to'](_0x5af570,'value'),_0x4a9ad7['buttonView']['on']('execute',()=>{_0x5af570['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x4a9ad7,_0x2677a5,{'role':'menu'});const _0x2132b5=[];for(const _0x493bfe of _0x2677a5)ae(_0x493bfe)&&_0x2132b5['push'](this['editor']['commands']['get'](_0x493bfe['model']['commandName']));const _0x50b1a2=_0x4a9ad7['buttonView'];return _0x50b1a2['actionView']['unbind']('isEnabled'),_0x50b1a2['arrowView']['unbind']('isEnabled'),_0x50b1a2['actionView']['bind']('isEnabled')['to'](_0x5af570,'isEnabled'),_0x50b1a2['arrowView']['bind']('isEnabled')['toMany'](_0x2132b5,'isEnabled',(..._0x15f234)=>_0x15f234['some'](_0x3c78e6=>_0x3c78e6)),_0x4a9ad7['on']('execute',_0x3c2b5a=>{this['editor']['execute'](_0x3c2b5a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4a9ad7;}['_createMenuBarMenu'](_0x150f27,_0x33b27e,_0x3b207f){const _0x143fe2=new Kt(_0x150f27),_0x2cf9d4=this['editor']['commands']['get']('trackChanges');_0x143fe2['buttonView']['set']({'label':_0x3b207f,'icon':ie});const _0x4b3fe5=new Qt(_0x150f27);for(const _0x5423c5 of _0x33b27e){if('separator'==_0x5423c5['type']){_0x4b3fe5['items']['add'](new Jt(_0x150f27));continue;}const _0x355571=new Xt(_0x150f27,_0x143fe2),_0x1f4907=new Yt(_0x150f27),_0x14ec6d=_0x5423c5['model'];_0x1f4907['bind'](...Object['keys'](_0x14ec6d))['to'](_0x14ec6d),_0x1f4907['delegate']('execute')['to'](_0x143fe2),_0x1f4907['on']('execute',()=>{this['editor']['execute'](_0x14ec6d['commandName']),this['editor']['editing']['view']['focus']();}),_0x355571['children']['add'](_0x1f4907),_0x4b3fe5['items']['add'](_0x355571);}return _0x143fe2['bind']('isEnabled')['to'](_0x2cf9d4,'isEnabled'),_0x143fe2['panelView']['children']['add'](_0x4b3fe5),_0x143fe2;}['_initializeController'](_0x29ada6){const _0xfac7bb=this['editor'],_0x298f54=_0xfac7bb['config'],_0x4224e5=_0xfac7bb['plugins']['get']('Annotations'),_0x47e86d=_0xfac7bb['plugins']['get']('CommentsRepository'),_0x5e724f=_0xfac7bb['plugins']['get']('EditorAnnotations'),_0x35c85b=_0xfac7bb['plugins']['get'](_0x5f159e)['me'],_0x35ea35=_0x298f54['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x355400,CommentThreadInputView:_0x2e9c1c}=_0xfac7bb['plugins']['get']('CommentsUI');let _0x448431,_0x3e73dd;this['_annotationViews']['has'](_0x29ada6['id'])?(_0x3e73dd=this['_annotationViews']['get'](_0x29ada6['id']),_0x448431=_0x3e73dd['mainView']):(_0x448431=new _0x35ea35(_0xfac7bb['locale'],_0x29ada6,_0x35c85b,{'disableComments':this['_disableComments'],'editorConfig':_0x298f54['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x298f54['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x298f54['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x298f54['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x9e07be(_0x298f54['get']('locale')),'CommentView':_0x298f54['get']('comments')['CommentView'],'CommentsListView':_0x355400,'CommentThreadInputView':_0x2e9c1c}),_0x448431['acceptButton']['on']('execute',()=>{_0xfac7bb['editing']['view']['focus']();}),_0x448431['discardButton']['on']('execute',()=>{_0xfac7bb['editing']['view']['focus']();}),_0x3e73dd=_0x4224e5['createAnnotationView'](this['editor']['locale'],_0x448431),_0x3e73dd['bind']('isDirty')['to'](_0x448431,'isDirty'),_0x3e73dd['bind']('length')['to'](_0x448431),_0x3e73dd['bind']('type')['to'](_0x448431,'type',_0x445eb5=>'suggestion-'+_0x445eb5),this['_annotationViews']['set'](_0x29ada6['id'],_0x3e73dd));const _0x99bfef=_0x47e86d['createCommentThreadController'](_0x29ada6['commentThread'],_0x448431),_0x3141fa=new oe(_0xfac7bb,_0x29ada6,_0x448431,_0x99bfef),_0x5cb27f=_0x29ada6['getAllAdjacentSuggestions']()['filter'](_0x2a0b7a=>_0x2a0b7a['isInContent']);_0x448431['descriptionParts']=_0xfac7bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5cb27f),this['_suggestionToController']['set'](_0x29ada6,_0x3141fa),this['_viewToController']['set'](_0x448431,_0x3141fa);const _0x5913bc=_0x4224e5['createAnnotation']({'view':_0x3e73dd,'target':()=>{const _0x51855c=[],_0x50b7cc=_0x29ada6['getAllAdjacentSuggestions']()['filter'](_0x3b3f4f=>_0x3b3f4f['isInContent']);for(const _0x1e5a66 of _0x50b7cc)_0x51855c['push'](..._0x1e5a66['getMarkers']());return _0x15ed0a(_0xfac7bb['editing'],_0x51855c);},'type':()=>'suggestion-'+_0x3141fa['view']['type']});_0x47e86d['_bindAnnotationToEditors'](_0x448431,_0x5913bc),_0x4224e5['add'](_0x5913bc),_0x5e724f['registerAnnotation'](_0x5913bc);}['_destroyController'](_0xe2126d){const _0x141c75=this['editor']['plugins']['get']('CommentsRepository'),_0x2e170a=this['editor']['plugins']['get']('Annotations'),_0x36de69=this['_suggestionToController']['get'](_0xe2126d),_0x509620=_0x36de69['view'],_0x370a92=_0x2e170a['getByInnerView'](_0x509620);_0x141c75['_unbindEditors'](_0x509620),_0x370a92&&_0x2e170a['remove'](_0x370a92),this['_suggestionToController']['delete'](_0xe2126d),this['_viewToController']['delete'](_0x509620),_0x36de69['destroy']();}['_updateController'](_0xa487b6){if(!_0xa487b6['isInContent']||!this['_suggestionToController']['has'](_0xa487b6))return;const _0x4fd4e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x672153=this['_suggestionToController']['get'](_0xa487b6),_0x2f6100=_0xa487b6['getAllAdjacentSuggestions']();_0x672153['view']['descriptionParts']=_0x4fd4e1['descriptionFactory']['getDescriptions'](_0x2f6100);}['destroy'](){for(const _0x40b2e9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x40b2e9);for(const _0x59ccf3 of this['_annotationViews']['values']())_0x59ccf3['mainView']['destroy']();super['destroy']();}}function ae(_0x5a22f9){return'model'in _0x5a22f9;}class k extends _0x1c3a28{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39a9a7){this['editor']['plugins']['get'](p)['adapter']=_0x39a9a7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3af967){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3af967);}['getSuggestions']({skipNotAttached:_0x2067ba=!0x1,toJSON:_0x20e904=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2067ba,'toJSON':_0x20e904});}['getSuggestion'](_0x323918){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x323918);}}const T=['Pagination'];class P extends _0x1c3a28{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x45e3ea=this['editor'];if(_0x45e3ea['config']['define']('trackChangesData.editorCreator',_0x402a9f=>{const _0x3e11b8=_0x45e3ea['model']['document']['getRootNames']()['reduce']((_0x473f47,_0x566689)=>(_0x473f47[_0x566689]='',_0x473f47),{});return _0x45e3ea['constructor']['create'](_0x3e11b8,_0x402a9f);}),'function'!=typeof _0x45e3ea['config']['get']('trackChangesData')['editorCreator'])throw new _0x445205('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b379e){return N(this['editor'],!0x0,_0x5b379e);}['getDataWithDiscardedSuggestions'](_0x5433af){return N(this['editor'],!0x1,_0x5433af);}}class D extends _0x1c3a28{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x525c36){super(_0x525c36),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(_0xd3068b){return void 0x0!==_0xd3068b['getRootsAttributes'];}async function N(_0x405c36,_0x1f54fc,_0x1ec0a9){const _0x3d5454=_0x2ce83d(_0x405c36,T);_0x3d5454['plugins']['push'](p,D),_0x3d5454['rootsAttributes']=v(_0x405c36)?_0x405c36['getRootsAttributes']():void 0x0;const _0x1f2ff6=document['createDocumentFragment'](),_0x401353=_0x405c36['config']['get']('trackChangesData')['editorCreator'],_0x387e5d=await _0x401353(_0x3d5454,()=>function(_0x23aed6){const _0x2f9f00=document['createElement']('div');return _0x23aed6['appendChild'](_0x2f9f00),_0x2f9f00;}(_0x1f2ff6));!function(_0x805ae2,_0x40215){const _0x11863a=_0x805ae2['model']['document']['getRootNames']()['reduce']((_0x3d48f2,_0x5bd78c)=>(_0x3d48f2[_0x5bd78c]=_0x805ae2['data']['get']({'rootName':_0x5bd78c}),_0x3d48f2),{}),_0x3be78a=_0x805ae2['plugins']['get']('Users')['users']['map'](_0x43af5a=>({'id':_0x43af5a['id'],'name':_0x43af5a['name']})),_0x1a25e4=_0x805ae2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ed3d2=_0x805ae2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfe0b9b=_0x40215['plugins']['get']('Users'),_0x1f75d7=_0x40215['plugins']['get']('TrackChangesEditing'),_0x34edbb=_0x40215['plugins']['get']('CommentsRepository');for(const _0x670b9d of _0x3be78a)_0xfe0b9b['getUser'](_0x670b9d['id'])||_0xfe0b9b['addUser'](_0x670b9d);_0xfe0b9b['me']||_0xfe0b9b['useAnonymousUser']();for(const _0x1c4c28 of _0x1ed3d2)_0x34edbb['addCommentThread'](_0x1c4c28);for(const _0x4662cf of _0x1a25e4)_0x1f75d7['addSuggestionData'](_0x4662cf);_0x40215['data']['set'](_0x11863a);}(_0x405c36,_0x387e5d),_0x387e5d['execute'](_0x1f54fc?'acceptAllSuggestions':'discardAllSuggestions');const _0x43a758=v(_0x387e5d)?_0x387e5d['getFullData'](_0x1ec0a9):_0x387e5d['data']['get'](_0x1ec0a9);return await _0x387e5d['destroy'](),_0x43a758;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x4104d6,PendingActions as _0x2fa12b,icons as _0x4d5335}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x274ec5,ObservableMixin as _0x29d385,uid as _0x5ed2a0,insertToPriorityArray as _0x1e2438,priorities as _0x2ff03c,logWarning as _0x54a9b3,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x9e5829,View as _0xb5144,ButtonView as _0x548b51,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xc2c087,hashObject as _0x478958,surroundingMarkersDetector as _0x31dd0a,trimHtml as _0x5a6ffe,UserView as _0x5c4290,getDateTimeFormatter as _0x227821,getAllMarkersDomElementsSorted as _0x2ce1e8,sanitizeEditorConfig as _0xbb1dc2}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x11180d,LiveRange as _0xe90ba7,LivePosition as _0x37ad9c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x51a40e,toWidget as _0x5f3b3a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x574e51,set as _0x3d1f8a,isEqual as _0x7f9970,unset as _0x541f6c,omit as Bt}from'lodash-es';import{Delete as _0x296bb7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x501866,ShiftEnter as _0x291438}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xf13909,_0x388f7a){super(_0xf13909),this['_enabledCommands']=_0x388f7a,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 _0x4c143b of this['editor']['commands']['commands']())_0x4c143b['affectsData']&&!this['_enabledCommands']['has'](_0x4c143b)&&_0x4c143b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xdb57f4 of this['editor']['commands']['commands']())_0xdb57f4['affectsData']&&!this['_enabledCommands']['has'](_0xdb57f4)&&_0xdb57f4['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x299027,_0x1823b2){super(_0x299027),this['_suggestions']=_0x1823b2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b1aeb){const _0xe30089=this['_suggestions']['get'](_0x4b1aeb);if(!_0xe30089)throw new _0x274ec5('track-changes-accept-suggestion-not-found',this);const _0x56b8b5=_0xe30089['getRanges']();this['editor']['model']['canEditAt'](_0x56b8b5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe30089);}}class B extends ts{['_suggestions'];constructor(_0x24feac,_0x52f4cf){super(_0x24feac),this['_suggestions']=_0x52f4cf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c7287){const _0x31820a=this['_suggestions']['get'](_0x5c7287);if(!_0x31820a)throw new _0x274ec5('track-changes-discard-suggestion-not-found',this);const _0xf7e1ed=_0x31820a['getRanges']();this['editor']['model']['canEditAt'](_0xf7e1ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31820a);}}function ss(_0x435fd3){return _0x435fd3['sort']((_0x37b506,_0x456568)=>'deletion'==_0x37b506['type']&&'deletion'!=_0x456568['type']?-0x1:'deletion'!=_0x37b506['type']&&'deletion'==_0x456568['type']?0x1:0x0);}function to(_0x30050a,_0x33cbab){let _0x2387fc,_0x3a170a=0x0;const _0x145730=[],_0x5685f8=_0x33cbab['schema'];for(;_0x3a170a<_0x30050a['length'];){const _0x4c80b7=_0x30050a[_0x3a170a],_0x3a2fee=_0x30050a[_0x3a170a+0x1];_0x2387fc||(_0x2387fc=_0x33cbab['createPositionBefore'](_0x4c80b7)),co(_0x33cbab,_0x4c80b7,_0x3a2fee)||(_0x145730['push'](_0x33cbab['createRange'](_0x2387fc,_0x5685f8['isObject'](_0x4c80b7)?_0x33cbab['createPositionAfter'](_0x4c80b7):_0x33cbab['createPositionAt'](_0x4c80b7,'end'))),_0x2387fc=null),_0x3a170a++;}return _0x145730;}function co(_0x1eb94b,_0x219c38,_0x5d7394){if(!_0x5d7394)return!0x1;const _0x1c6b7c=_0x1eb94b['createPositionAfter'](_0x219c38),_0x2cf64b=_0x1eb94b['createPositionBefore'](_0x5d7394);return _0x1c6b7c['isTouching'](_0x2cf64b);}function rs(_0x46b8e5,_0x6c06ab,_0xd745df){for(;_0xd745df['length'];){const _0x459e7b=_0xd745df['splice'](0x0,0x64);_0x46b8e5['change'](()=>{for(const _0x1f5a33 of _0x459e7b)_0x1f5a33['isInContent']&&_0x6c06ab['execute'](_0x1f5a33['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5c079a,_0x40f5f3,_0x1ce85a){super(_0x5c079a),this['_command']=_0x40f5f3,this['_suggestions']=_0x1ce85a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14bf9f=Array['from'](this['_suggestions']['values']())['some'](_0x3f3747=>_0x3f3747['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14bf9f;}['execute'](){const _0xcbf4c3=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1da8ff of _0xcbf4c3){const _0x324ecb=_0x1da8ff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x324ecb))return;}rs(this['editor']['model'],this['_command'],_0xcbf4c3);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5a6116,_0xc715cc,_0x681a6c){super(_0x5a6116),this['_command']=_0xc715cc,this['_suggestions']=_0x681a6c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x401aff=this['editor']['model']['document']['selection'],_0x90fdc5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x571a8a,_0x19db53){const _0x505feb=Array['from'](_0x571a8a['getRanges']()),_0x38f32c=new Set();for(const _0x16bcca of _0x19db53)if(_0x16bcca['isInContent']){for(const _0x43760 of _0x505feb)for(const _0x400fb6 of _0x16bcca['getRanges']())(_0x43760['isIntersecting'](_0x400fb6)||_0x571a8a['isCollapsed']&&!_0x16bcca['isMultiRange']&&_0x16bcca['next']&&_0x400fb6['end']['isTouching'](_0x43760['start']))&&_0x38f32c['add'](_0x16bcca);}return _0x38f32c;}(_0x401aff,_0x90fdc5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xe04d6e=ss(Array['from'](this['_selectedSuggestions']));for(const _0x492f7f of _0xe04d6e){const _0x6dcbe8=_0x492f7f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6dcbe8))return;}rs(this['editor']['model'],this['_command'],_0xe04d6e);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x29d385(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2040b2,_0x28f9e6){super(),this['id']=_0x28f9e6['id'],this['type']=_0x28f9e6['type'],this['subType']=_0x28f9e6['subType']||null,this['author']=_0x28f9e6['author'],this['creator']=_0x28f9e6['creator']||_0x28f9e6['author'],this['isExternal']=Boolean(_0x28f9e6['attributes']&&_0x28f9e6['attributes']['@external']),this['data']=null,this['_model']=_0x2040b2,this['_onAccept']=_0x28f9e6['onAccept'],this['_onDiscard']=_0x28f9e6['onDiscard'],this['_onAttributesChange']=_0x28f9e6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x28f9e6['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 _0x244001=this;for(;_0x244001['previous'];)_0x244001=_0x244001['previous'];return _0x244001;}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'](_0x10d109){this['_markerNames']['add'](_0x10d109);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a3925=>this['_model']['markers']['get'](_0x5a3925))['filter'](_0x1899fa=>_0x1899fa);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b56ba=>{for(const _0x2a9644 of this['getMarkers']())_0x2b56ba['removeMarker'](_0x2a9644);}),this['_markerNames']['clear']();}['removeMarker'](_0x15a6a9){this['_model']['change'](_0x302483=>{_0x302483['removeMarker'](_0x15a6a9);}),this['_markerNames']['delete'](_0x15a6a9);}['addRange'](_0x166abf){const _0x36f0ca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x36f0ca),this['_model']['change'](_0x1a7b26=>{_0x1a7b26['addMarker'](_0x36f0ca,{'range':_0x166abf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x28a1b0){for(const _0x13f664 of this['getRanges']())if(_0x13f664['isIntersecting'](_0x28a1b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ffebb=>_0x4ffebb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3be996,_0x4e7961)=>[..._0x3be996,..._0x4e7961['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x108da0=this['getRanges']();if(0x1!=_0x108da0['length'])return null;const _0x50199c=_0x108da0[0x0],_0x54da1d=_0x50199c['start']['nodeAfter'],_0x252071=_0x50199c['end']['nodeBefore'];return _0x54da1d instanceof _0x11180d?_0x54da1d!=_0x252071?null:_0x54da1d: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 _0x59a88e=[];let _0x52f184=this['head'];for(;_0x52f184;)_0x59a88e['push'](_0x52f184),_0x52f184=_0x52f184['next'];return _0x59a88e;}['setAttribute'](_0x295d9a,_0x546919){const _0x5e9b4c=_0x574e51(this['attributes']);_0x3d1f8a(_0x5e9b4c,_0x295d9a,_0x546919),_0x7f9970(_0x5e9b4c,this['attributes'])||(this['attributes']=_0x5e9b4c,this['_onAttributesChange'](_0x5e9b4c));}['removeAttribute'](_0x31a881){const _0x4a8a83=_0x574e51(this['attributes']);_0x541f6c(_0x4a8a83,_0x31a881),_0x7f9970(_0x4a8a83,this['attributes'])||(this['attributes']=_0x4a8a83,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 _0x5ed2a0()['substr'](0x1,0x5);}}function o(_0x38fb52,_0x231a0d,_0x1d6e8f){const t=_0x38fb52['t'];switch(_0x231a0d){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',_0x1d6e8f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d6e8f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d6e8f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d6e8f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d6e8f);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',_0x1d6e8f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d6e8f);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',_0x1d6e8f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d6e8f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d6e8f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d6e8f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d6e8f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d6e8f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d6e8f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d6e8f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d6e8f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d6e8f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d6e8f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d6e8f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d6e8f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d6e8f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d6e8f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d6e8f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d6e8f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d6e8f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d6e8f);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'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d6e8f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d6e8f);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d6e8f);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'},_0x1d6e8f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x231a0d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x470fb6,_0x58f1ad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x470fb6,this['_locale']=_0x58f1ad;}['getDescriptions'](_0x46f920){const _0x42737f=[],_0x21e4be=new Set(),_0x333d7f=new Set();for(let _0x98655e=0x0;_0x98655e<_0x46f920['length'];_0x98655e++){const _0x43dc7c=_0x46f920[_0x98655e];if(!_0x43dc7c['isInContent'])continue;const _0x24eb90=this['_handleCustomCallbackDescription'](_0x43dc7c);if(_0x24eb90){if(null!=_0x43dc7c['subType']){if(_0x21e4be['has'](_0x43dc7c['subType']))continue;_0x21e4be['add'](_0x43dc7c['subType']);}_0x42737f['push'](_0x24eb90);}else{if('attribute'!=_0x43dc7c['type'])'insertion'!=_0x43dc7c['type']&&'deletion'!=_0x43dc7c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x42737f,_0x43dc7c,_0x46f920[_0x98655e+0x1]);else{const _0x8f596d=_0x43dc7c['data']['key'];if(_0x333d7f['has'](_0x8f596d))continue;_0x333d7f['add'](_0x43dc7c['data']['key']),_0x8f596d==m?this['_handleRenameSuggestionDescription'](_0x42737f,_0x43dc7c):this['_handleAttributeSuggestionDescription'](_0x42737f,_0x43dc7c);}}}return this['_resolveDescriptionItems'](_0x42737f);}['registerDescriptionCallback'](_0x28c694){this['_customCallbacks']['push'](_0x28c694);}['registerElementLabel'](_0x1e74ad,_0x2e889d,_0x34cf75=_0x2ff03c['normal']){'function'==typeof _0x1e74ad?_0x1e2438(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e74ad,'label':_0x2e889d,'priority':_0x34cf75}):this['_itemLabels']['set'](_0x1e74ad,_0x2e889d);}['registerAttributeLabel'](_0x4c7deb,_0x2e9b16){this['_attributeLabels']['set'](_0x4c7deb,_0x2e9b16);}['getItemLabel'](_0x2c1262,_0x1ef808=0x1){let _0x2c69a6;for(const _0x213210 of this['_itemLabelsCallbacks'])if(_0x213210['matchingCallback'](_0x2c1262)){_0x2c69a6=_0x213210['label'];break;}return _0x2c69a6||(_0x2c69a6=this['_itemLabels']['get'](_0x2c1262['name'])),_0x2c69a6?_0x2c69a6(_0x1ef808):0x1!==_0x1ef808?_0x1ef808+'\x20'+_0x2c1262['name']+'s':''+_0x2c1262['name'];}['_addDescriptionItems'](_0x336ea4,_0x7fb429){const _0xf32622=_0x7fb429['getFirstRange']()['getWalker'](),_0x3194ee='insertion'==_0x7fb429['type']?'add':'remove';for(const _0x25de6f of _0xf32622){const _0x3e6cf7=_0x25de6f['item'],_0x399eb3=_0x336ea4[_0x336ea4['length']-0x1];if(_0x3e6cf7['is']('$textProxy'))_0x399eb3&&_0x399eb3['type']['indexOf']('Container')>-0x1&&_0x336ea4['pop'](),_0x399eb3&&'text'==_0x399eb3['type']?_0x399eb3[_0x3194ee]+=_0x3e6cf7['data']:_0x336ea4['push']({'type':'text','add':'add'==_0x3194ee?_0x3e6cf7['data']:'','remove':'remove'==_0x3194ee?_0x3e6cf7['data']:''});else{if(this['_schema']['isObject'](_0x3e6cf7)){const _0x107e1c=_0x3e6cf7;if(_0x399eb3&&_0x399eb3['type']['indexOf']('Container')>-0x1&&_0x336ea4['pop'](),'elementEnd'==_0x25de6f['type'])continue;_0x399eb3&&_0x399eb3['type']==_0x3194ee+'Object'&&_0x399eb3['element']['name']==_0x107e1c['name']?_0x399eb3['quantity']++:_0x336ea4['push']({'type':_0x3194ee+'Object','element':_0x107e1c,'quantity':0x1}),_0xf32622['skip'](_0x556a2d=>!('elementEnd'==_0x556a2d['type']&&_0x556a2d['item']==_0x3e6cf7));}else{if(this['_schema']['checkChild'](_0x3e6cf7,'$text')||_0x3e6cf7['is']('element','softBreak')){const _0xbcb57f=_0x3e6cf7;if('add'==_0x3194ee&&'elementStart'==_0x25de6f['type']||'remove'==_0x3194ee&&'elementEnd'==_0x25de6f['type'])continue;if(_0x399eb3&&-0x1==_0x399eb3['type']['indexOf']('Container')){'text'==_0x399eb3['type']&&(_0x399eb3[_0x3194ee]+='\x0a');continue;}let _0x23efaf;if(_0x23efaf='add'==_0x3194ee?_0xbcb57f['nextSibling']&&!this['_schema']['isObject'](_0xbcb57f['nextSibling'])?_0xbcb57f['nextSibling']:null:_0xbcb57f['previousSibling']&&!this['_schema']['isObject'](_0xbcb57f['previousSibling'])?_0xbcb57f['previousSibling']:null,_0xbcb57f['isEmpty']||_0x23efaf&&_0x23efaf['isEmpty']){const _0x382bc2=_0x23efaf&&_0x23efaf['isEmpty']?_0x23efaf:_0xbcb57f;_0x399eb3&&_0x399eb3['type']==_0x3194ee+'EmptyContainer'&&_0x399eb3['element']['name']==_0x382bc2['name']?_0x399eb3['quantity']++:_0x336ea4['push']({'type':_0x3194ee+'EmptyContainer','element':_0x382bc2,'quantity':0x1});}else _0x336ea4['push']({'type':_0x3194ee+'Container','element':_0xbcb57f});}}}}}['_resolveDescriptionItems'](_0x371c5f){const _0x5130c4=this['_locale'],_0x44bbd9=[],_0x55f0f3=[],_0x205249=[];for(const _0x33c4ea of _0x371c5f)switch(_0x33c4ea['type']){case'text':if(_0x33c4ea['add']=_0x33c4ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x33c4ea['remove']=_0x33c4ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x33c4ea['add']&&''!=_0x33c4ea['remove']){_0x44bbd9['push']({'type':'replace','content':o(_0x5130c4,'REPLACE_TEXT',['\x22'+_0x33c4ea['remove']+'\x22','\x22'+_0x33c4ea['add']+'\x22'])});continue;}if(null!=_0x33c4ea['add']['match'](/^ +$/)){_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0',o(_0x5130c4,'ELEMENT_SPACE',_0x33c4ea['add']['length']))});continue;}if(null!=_0x33c4ea['remove']['match'](/^ +$/)){_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0',o(_0x5130c4,'ELEMENT_SPACE',_0x33c4ea['remove']['length']))});continue;}if(''!=_0x33c4ea['add']){_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0','\x22'+_0x33c4ea['add']+'\x22')});continue;}_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0','\x22'+_0x33c4ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'addContainer':_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Split:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'removeContainer':_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Merge:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'addFormat':_0x55f0f3['push'](_0x33c4ea['key']);continue;case'removeFormat':_0x205249['push'](_0x33c4ea['key']);continue;default:_0x44bbd9['push'](_0x33c4ea);}if(_0x55f0f3['length']){const _0x43a6aa=_0x55f0f3['map'](_0x1a4cab=>this['_attributeLabels']['has'](_0x1a4cab)?this['_attributeLabels']['get'](_0x1a4cab):_0x1a4cab)['join'](',\x20');_0x44bbd9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x43a6aa)});}if(_0x205249['length']){const _0xe210e=_0x205249['map'](_0x3e60d4=>this['_attributeLabels']['has'](_0x3e60d4)?this['_attributeLabels']['get'](_0x3e60d4):_0x3e60d4)['join'](',\x20');_0x44bbd9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xe210e)});}return _0x44bbd9;}['_handleCustomCallbackDescription'](_0x577a00){for(const _0x4ef14c of this['_customCallbacks']){const _0x111dd9=_0x4ef14c(_0x577a00);if(_0x111dd9&&'type'in _0x111dd9)return _0x111dd9;}}['_handleAttributeSuggestionDescription'](_0x3e5467,_0xf1ec1a){const _0x17a350=_0xf1ec1a['data'],_0x552484=void 0x0===_0x17a350['newValue']?'removeFormat':'addFormat';_0x3e5467['push']({'type':_0x552484,'key':_0x17a350['key']});}['_handleRenameSuggestionDescription'](_0x461a41,_0x241925){_0x461a41['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x241925['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48ea42,_0x531d98,_0x2ff63d){if(this['_addDescriptionItems'](_0x48ea42,_0x531d98),_0x2ff63d&&_0x2ff63d['getFirstRange']()&&!_0x531d98['getFirstRange']()['end']['isEqual'](_0x2ff63d['getFirstRange']()['start'])){const _0x152d22=_0x48ea42[_0x48ea42['length']-0x1],_0x3e5158='insertion'==_0x531d98['type']?'add':'remove';_0x152d22&&'text'==_0x152d22['type']&&(_0x152d22[_0x3e5158]+='\x0a');}}}class E extends _0x4104d6{['afterInit'](){const _0x4dae69=this['editor'],_0x5e6d36=_0x4dae69['plugins']['get']('TrackChangesEditing');_0x4dae69['commands']['get']('showAIAssistant')&&_0x5e6d36['enableCommand']('showAIAssistant');}}class V extends _0x4104d6{['afterInit'](){const _0x1dcc19=this['editor'],_0x22bda1=_0x1dcc19['locale'];if(!_0x1dcc19['plugins']['has']('AlignmentEditing'))return;const _0x41aa01=_0x1dcc19['plugins']['get']('TrackChangesEditing');_0x41aa01['enableDefaultAttributesIntegration']('alignment'),_0x41aa01['registerBlockAttribute']('alignment'),_0x41aa01['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22bda1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2290b4=this['editor'],_0x1ab500=_0x2290b4['locale'];_0x2290b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c184=>{if('formatBlock'!=_0x38c184['type'])return;const {data:_0x41fa17}=_0x38c184;if(_0x41fa17&&'alignment'==_0x41fa17['commandName']){const _0x36cb3a=_0x41fa17['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1ab500,'*Format:*\x20%0',function(_0x28f32a){switch(_0x28f32a){case'left':return o(_0x1ab500,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1ab500,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1ab500,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1ab500,'FORMAT_JUSTIFY_TEXT');}}(_0x36cb3a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4104d6{['afterInit'](){const _0x3a9f6d=this['editor'],_0x4356ad=_0x3a9f6d['plugins']['get']('TrackChangesEditing'),_0xb130=_0x3a9f6d['locale'];for(const _0x1c0f7f of ti){if(!_0x3a9f6d['plugins']['has'](_0x1c0f7f))continue;const _0x1a2ecc=_0x1c0f7f['slice'](0x0,-0x7)['toLowerCase'](),_0x14fad8='FORMAT_'+_0x1a2ecc['toUpperCase']();_0x4356ad['enableDefaultAttributesIntegration'](_0x1a2ecc),_0x4356ad['registerInlineAttribute'](_0x1a2ecc),_0x4356ad['descriptionFactory']['registerAttributeLabel'](_0x1a2ecc,o(_0xb130,_0x14fad8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2693f6=this['editor'],_0x2094ef=_0x2693f6['locale'],_0x5f2c96=_0x2693f6['plugins']['get']('TrackChangesEditing');function _0x879a13(_0x2016dc,_0x171c92){_0x5f2c96['descriptionFactory']['registerDescriptionCallback'](_0x4e5e09=>{if('formatInline'!=_0x4e5e09['type'])return;const {data:_0x159225}=_0x4e5e09;return _0x159225&&_0x159225['commandName']===_0x2016dc?_0x159225['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2094ef,'*Format:*\x20%0',_0x171c92)}:{'type':'format','content':o(_0x2094ef,'*Remove\x20format:*\x20%0',_0x171c92)}:void 0x0;});}_0x879a13('bold',o(_0x2094ef,'FORMAT_BOLD')),_0x879a13('italic',o(_0x2094ef,'FORMAT_ITALIC')),_0x879a13('underline',o(_0x2094ef,'FORMAT_UNDERLINE')),_0x879a13('code',o(_0x2094ef,'FORMAT_CODE')),_0x879a13('strikethrough',o(_0x2094ef,'FORMAT_STRIKETHROUGH')),_0x879a13('subscript',o(_0x2094ef,'FORMAT_SUBSCRIPT')),_0x879a13('superscript',o(_0x2094ef,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4104d6{['afterInit'](){const _0x5eb804=this['editor'],_0xc6e06=_0x5eb804['locale'];if(!_0x5eb804['plugins']['has']('BlockQuoteEditing'))return;const _0x276962=_0x5eb804['plugins']['get']('TrackChangesEditing'),_0x4cd8ca=this['editor']['commands']['get']('blockQuote');_0x276962['enableCommand']('blockQuote',(_0x8e32f0,_0x3e1167={})=>{const _0x2c5836=this['editor']['model']['document']['selection'],_0x560fb1=_0x3e1167&&void 0x0!==_0x3e1167['forceValue']?_0x3e1167['forceValue']:!_0x4cd8ca['value'];let _0x3a5535=[];if(_0x560fb1){const _0x5315e8=Array['from'](_0x2c5836['getSelectedBlocks']())['filter'](_0x4e2f34=>oo(_0x4e2f34)||function(_0x1d1e80,_0x48b404){const _0x531893=_0x48b404['checkChild'](_0x1d1e80['parent'],'blockQuote'),_0x1495e0=_0x48b404['checkChild'](['$root','blockQuote'],_0x1d1e80);return _0x531893&&_0x1495e0;}(_0x4e2f34,this['editor']['model']['schema']));_0x3a5535=to(_0x5315e8,_0x5eb804['model']);}else{const _0x5b9e11=Array['from'](_0x2c5836['getSelectedBlocks']())['filter'](_0x372ee5=>oo(_0x372ee5));_0x3a5535=to(_0x5b9e11,_0x5eb804['model']);}_0x5eb804['model']['change'](()=>{for(const _0x3cec1b of _0x3a5535)_0x276962['markBlockFormat'](_0x3cec1b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x560fb1}]});});}),_0x276962['descriptionFactory']['registerDescriptionCallback'](_0x7009e2=>{const {data:_0x1edd73}=_0x7009e2;if(_0x1edd73&&'blockQuote'==_0x1edd73['commandName']){const _0x45b7b1=o(_0xc6e06,'ELEMENT_BLOCK_QUOTE');return _0x1edd73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc6e06,'*Set\x20format:*\x20%0',_0x45b7b1)}:{'type':'format','content':o(_0xc6e06,'*Remove\x20format:*\x20%0',_0x45b7b1)};}});}}function oo(_0xd159ff){return'blockQuote'==_0xd159ff['parent']['name'];}class G extends _0x4104d6{['afterInit'](){const _0x51f2e6=this['editor'];_0x51f2e6['plugins']['has']('CaseChange')&&(_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4104d6{['afterInit'](){const _0xed0e6b=this['editor'];_0xed0e6b['commands']['get']('ckbox')&&_0xed0e6b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4104d6{['afterInit'](){const _0x5656ef=this['editor'];if(!_0x5656ef['plugins']['has']('CodeBlock'))return;const _0x2e2b59=_0x5656ef['plugins']['get']('TrackChangesEditing'),_0x57672c=_0x5656ef['locale'],_0x15bd4e=_0x5656ef['config']['get']('codeBlock')['languages'],_0x2a1cc7=_0x5656ef['commands']['get']('codeBlock');_0x2e2b59['enableCommand']('indentCodeBlock'),_0x2e2b59['enableCommand']('outdentCodeBlock'),_0x2e2b59['enableCommand']('codeBlock',(_0x80b2d2,_0xec639a={})=>{const _0x22ea71=_0x5656ef['model'],_0x32c6d4=_0x5656ef['model']['document']['selection'],_0x1f1660=_0xec639a&&void 0x0!==_0xec639a['forceValue']?_0xec639a['forceValue']:!_0x2a1cc7['value'];let _0x12c590;_0xec639a['language']||(_0xec639a['language']=_0x15bd4e[0x0]['language']),_0x12c590=_0x1f1660?Array['from'](_0x32c6d4['getSelectedBlocks']())['filter'](_0x2d49a4=>eo(_0x2d49a4)||function(_0x771c66,_0x52bc73){if(_0x771c66['is']('rootElement')||_0x52bc73['isLimit'](_0x771c66))return!0x1;return _0x52bc73['checkChild'](_0x771c66['parent'],'codeBlock');}(_0x2d49a4,_0x22ea71['schema'])):Array['from'](_0x32c6d4['getSelectedBlocks']())['filter'](_0x4dde1e=>eo(_0x4dde1e));const _0x13d34b=to(_0x12c590,_0x22ea71);_0x22ea71['change'](()=>{for(const _0x156bac of _0x13d34b)_0x2e2b59['markBlockFormat'](_0x156bac,{'commandName':'codeBlock','commandParams':[{..._0xec639a,'forceValue':_0x1f1660}],'formatGroupId':'blockName'});});}),(_0x2e2b59['descriptionFactory']['registerElementLabel']('codeBlock',_0x129ec4=>o(_0x57672c,'ELEMENT_CODE_BLOCK',_0x129ec4)),_0x2e2b59['descriptionFactory']['registerDescriptionCallback'](_0x3f7244=>{if('formatBlock'!=_0x3f7244['type'])return;const _0x5748d8=_0x57672c['t'],{data:_0x16a0e7}=_0x3f7244;if(!_0x16a0e7||'codeBlock'!=_0x16a0e7['commandName'])return;const _0xfe9df5=_0x16a0e7['commandParams'][0x0]['language'],_0x27d049=_0x5748d8(_0x15bd4e['find'](_0x317539=>_0x317539['language']===_0xfe9df5)['label'])['toLowerCase']();return _0x16a0e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57672c,'*Set\x20format:*\x20%0',o(_0x57672c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x27d049+')')}:{'type':'format','content':o(_0x57672c,'*Remove\x20format:*\x20%0',o(_0x57672c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x398bfd){return'codeBlock'==_0x398bfd['name'];}class H extends _0x4104d6{['afterInit'](){const _0x1ab87b=this['editor'];if(!_0x1ab87b['plugins']['has']('CommentsEditing'))return;_0x1ab87b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x45717f,_0x5de7af,_0xa067fe){const _0x3f253d=[];for(const _0x3c965a of _0x5de7af['getItems']())_0x3c965a['hasAttribute'](_0x45717f)&&_0x3f253d['push'](_0xa067fe['createRangeOn'](_0x3c965a));return _0x3f253d;}function _e(_0x27bdd2,_0x104719,{showActiveMarker:_0x4f6b4a=!0x0}={}){const _0x565fce=_0x27bdd2['plugins']['get']('TrackChangesEditing');return(_0x5b1b12,_0x52c14b,_0x5b331e)=>{if(!_0x5b331e['consumable']['test'](_0x52c14b['markerRange'],_0x5b1b12['name']))return;const _0x2f2ef1=_0x52c14b['markerRange']['getWalker'](),_0x443dec=_0x52c14b['markerRange']['start'],_0x5249ff=_0x27bdd2['model']['schema'];let _0x3e1dd5=null,_0x3f1157=null,_0x2d0d31=!0x1,_0x1a8a1f=!0x1;for(const _0x2d78e9 of _0x2f2ef1){const _0x5a3caa=_0x2d78e9['item'];_0x2d0d31=_0x2d0d31||_0x5249ff['isContent'](_0x5a3caa);const _0xb5fbf6=_0x5b331e['mapper']['toViewElement'](_0x5a3caa);if(_0xb5fbf6&&_0xb5fbf6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d78e9['type']&&(_0x5249ff['isBlock'](_0x5a3caa)&&!_0x5249ff['isLimit'](_0x5a3caa)&&(_0x5a3caa['nextSibling']||_0x443dec['isAtEnd']?_0x3e1dd5&&_0x3e1dd5['parent']==_0x5a3caa||(_0x3e1dd5=_0x5a3caa,_0x3a6e95(_0x2d78e9['previousPosition']),_0x1a8a1f=!0x0):_0x3f1157=_0x3f1157||_0x2d78e9['previousPosition']));}function _0x3a6e95(_0x4542c9){const _0x537684=_0x5b331e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x104719}),_0x30bc8b=_0x5b331e['mapper']['toViewPosition'](_0x4542c9);_0x4f6b4a&&_0x565fce['activeMarkers']['includes'](_0x52c14b['markerName'])&&_0x5b331e['writer']['addClass']('ck-suggestion-marker--active',_0x537684),_0x5b331e['writer']['insert'](_0x30bc8b,_0x537684),_0x5b331e['mapper']['bindElementToMarker'](_0x537684,_0x52c14b['markerName']);}_0x2d0d31||_0x1a8a1f||!_0x3f1157||_0x3a6e95(_0x3f1157);};}class q extends _0x4104d6{static get['requires'](){return[_0x296bb7];}['init'](){const _0x31a715=this['editor'],_0x41a494=_0x31a715['plugins']['get']('TrackChangesEditing');_0x41a494['enableCommand']('delete');const _0x4b174f=_0x31a715['commands']['get']('deleteForward');_0x41a494['enableCommand']('deleteForward',(_0x59cf97,_0x342c70={})=>{const _0x17b5c3=_0x31a715['model']['createSelection'](_0x31a715['model']['document']['selection']);_0x17b5c3['isCollapsed']&&_0x31a715['model']['modifySelection'](_0x17b5c3,{'direction':'forward','unit':_0x342c70['unit']});const _0x5bb654=_0x17b5c3['getFirstRange'](),_0x1f9bb5=_0xe90ba7['fromRange'](_0x5bb654);let _0x327112;_0x59cf97(_0x342c70),_0x327112='$graveyard'==_0x1f9bb5['root']['rootName']?_0x31a715['model']['createRange'](_0x5bb654['start']):_0x31a715['model']['createRange'](_0x1f9bb5['start'],_0x1f9bb5['end']),_0x1f9bb5['detach'](),_0x31a715['model']['enqueueChange'](_0x4b174f['buffer']['batch'],_0xfc38c8=>{_0x4b174f['buffer']['lock'](),_0xfc38c8['setSelection'](_0xfc38c8['createRange'](_0x327112['end'])),_0x4b174f['buffer']['unlock']();});}),_0x31a715['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x31a715,'merge'),{'priority':'high'}),_0x31a715['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3573fe,_0x37f369,_0x496d0c)=>{_0x496d0c['options']['showSuggestionHighlights']&&_e(_0x31a715,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3573fe,_0x37f369,_0x496d0c);},{'priority':'high'}),_0x31a715['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x50a512,_0x4474a4,_0x1098f3)=>{const _0x2cceec=_0x1098f3['mapper']['markerNameToElements'](_0x4474a4['markerName']);if(_0x2cceec){for(const _0x371f87 of _0x2cceec)_0x371f87['is']('uiElement')&&(_0x1098f3['mapper']['unbindElementFromMarkerName'](_0x371f87,_0x4474a4['markerName']),_0x1098f3['writer']['remove'](_0x371f87));}},{'priority':'high'});}}class z extends _0x4104d6{['afterInit'](){const _0x52c8d9=this['editor'];if(!_0x52c8d9['plugins']['has']('ListEditing'))return;const _0x1be5c9=_0x52c8d9['locale'],_0x345eb4=_0x52c8d9['plugins']['get']('TrackChangesEditing'),_0x446854=_0x52c8d9['plugins']['has']('TodoListEditing'),_0x2a453d=!!_0x52c8d9['config']['get']('list.multiBlock');function _0x425ad3(_0x5eb896){return{'type':'format','content':''+o(_0x1be5c9,'*Set\x20format:*\x20%0',_0x5eb896)};}function _0x478cad(_0x4e4514){return{'type':'format','content':''+o(_0x1be5c9,'*Remove\x20format:*\x20%0',_0x4e4514)};}_0x345eb4['enableDefaultAttributesIntegration']('numberedList'),_0x345eb4['enableDefaultAttributesIntegration']('bulletedList'),_0x345eb4['enableDefaultAttributesIntegration']('customNumberedList'),_0x345eb4['enableDefaultAttributesIntegration']('customBulletedList'),_0x345eb4['enableDefaultAttributesIntegration']('indentList'),_0x345eb4['enableDefaultAttributesIntegration']('outdentList'),_0x345eb4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x345eb4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x345eb4['registerBlockAttribute']('listItemId'),_0x345eb4['registerBlockAttribute']('listType'),_0x345eb4['registerBlockAttribute']('listIndent'),_0x2a453d&&(_0x345eb4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x345eb4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x446854&&(_0x345eb4['enableDefaultAttributesIntegration']('todoList'),_0x345eb4['enableDefaultAttributesIntegration']('checkTodoList'),_0x345eb4['registerBlockAttribute']('todoListChecked'),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0xa2d69a=>{const {data:_0x25d1d9}=_0xa2d69a;if(_0x25d1d9&&'todoListChecked'==_0x25d1d9['key'])return{'type':'format','content':_0x25d1d9['newValue']?o(_0x1be5c9,'*Check\x20item*'):o(_0x1be5c9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5170f=>{if(_0x5170f['batch']['isUndo'])return!0x1;let _0x1154a1=!0x1;const _0x49e9bb=_0x345eb4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x375933=>'todoListChecked'===_0x345eb4['_getAttributeKey'](_0x375933));for(const _0x26bbd7 of _0x49e9bb){'todo'!=_0x26bbd7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x345eb4['_findSuggestions'](_0x26bbd7['getFirstRange'](),'attribute')['find'](_0x45716=>'listType'===_0x345eb4['_getAttributeKey'](_0x45716['suggestion']))||(_0x5170f['removeMarker'](_0x26bbd7['getFirstMarker']()),_0x1154a1=!0x0));}return _0x1154a1;})),_0x345eb4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1be5c9,'FORMAT_INDENT'));const _0x533b3d={'type':'format','content':''};_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0x1ae24e=>{const {data:_0x141a9b}=_0x1ae24e;if(!_0x141a9b||'listType'!=_0x141a9b['key'])return;let _0x426b8d=_0x1ae24e['head'];for(;_0x426b8d;){if(_0x426b8d['data']&&(('listStyle'==_0x426b8d['data']['key']||'listMarkerStyle'==_0x426b8d['data']['key'])&&(_0x426b8d['data']['newValue']&&'default'!=_0x426b8d['data']['newValue']||'default'!=_0x426b8d['data']['oldValue']&&!_0x141a9b['newValue'])||!_0x2a453d&&_0x426b8d['data']['key']==m))return _0x533b3d;_0x426b8d=_0x426b8d['next'];}if(null==_0x141a9b['newValue'])switch(_0x141a9b['oldValue']){case'bulleted':return _0x478cad(o(_0x1be5c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x478cad(o(_0x1be5c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x478cad(o(_0x1be5c9,'ELEMENT_TODO_LIST'));}switch(_0x141a9b['newValue']){case'bulleted':return _0x425ad3(o(_0x1be5c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x425ad3(o(_0x1be5c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x425ad3(o(_0x1be5c9,'ELEMENT_TODO_LIST'));}}),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0x258963=>{const {data:_0x16f789}=_0x258963;if(_0x16f789&&'listIndent'==_0x16f789['key'])return null==_0x16f789['newValue']||null==_0x16f789['oldValue']&&0x0==_0x16f789['newValue']?_0x533b3d:void 0x0;}),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0xe8449a=>{if('attribute'!=_0xe8449a['type'])return;const {data:_0x4e3f1a}=_0xe8449a;if(!_0x4e3f1a||'listItemId'!=_0x4e3f1a['key'])return;const _0x43d7c0=le(_0xe8449a);return'newValue'==_0x43d7c0?{'type':'format','content':o(_0x1be5c9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x43d7c0?{'type':'format','content':o(_0x1be5c9,'*Split:*\x20list\x20item')}:_0x533b3d;}),_0x52c8d9['model']['document']['registerPostFixer'](_0x476363=>this['listItemIdFixer'](_0x476363)),_0x52c8d9['model']['document']['registerPostFixer'](_0x15f595=>this['noTrackChangesFixer'](_0x15f595)),_0x52c8d9['model']['document']['registerPostFixer'](_0x131e67=>this['assureChains'](_0x131e67)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f613b){if(_0x4f613b['batch']['isUndo']||!_0x4f613b['batch']['isLocal'])return!0x1;let _0xbc839e=!0x1;const _0x23d987=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7c781d=>_0x7c781d['data']&&'listItemId'==_0x7c781d['data']['key'])['filter'](_0x22592a=>_0x22592a['data']['newValue']&&_0x22592a['data']['oldValue']);for(const _0x3a83d9 of _0x23d987)le(_0x3a83d9)||(_0x4f613b['removeMarker'](_0x3a83d9['getFirstMarker']()),_0xbc839e=!0x0);return _0xbc839e;}['noTrackChangesFixer'](_0x3ad870){if(_0x3ad870['batch']['isUndo']||!_0x3ad870['batch']['isLocal'])return!0x1;const _0x241e7d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x241e7d['trackChangesCommand']['value'])return!0x1;let _0x32e33a=!0x1;const _0x486770=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x41237a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5cec26=>'attribute'==_0x5cec26['type'])['filter'](_0x5c099f=>_0x486770['includes'](_0x5c099f['attributeKey']));if(0x0==_0x41237a['length'])return _0x32e33a;for(const _0x10b198 of _0x41237a){const _0x4993e0=_0x241e7d['_findSuggestions'](_0x10b198['range'],'attribute')['filter'](_0x4f26ef=>!_0x4f26ef['meta']['isNextTo'])['map'](_0x406754=>_0x406754['suggestion'])['filter'](_0x4fbd24=>{const _0x12cecd=_0x241e7d['_getAttributeKey'](_0x4fbd24);return _0x486770['includes'](_0x12cecd);});if(_0x4993e0['length']){for(const _0x38c017 of _0x4993e0)_0x3ad870['removeMarker'](_0x38c017['getFirstMarker']());_0x32e33a=!0x0;}}return _0x32e33a;}['assureChains'](_0x412c74){if(_0x412c74['batch']['isUndo']||!_0x412c74['batch']['isLocal'])return!0x1;const _0x398208=this['editor']['plugins']['get']('TrackChangesEditing');let _0xf80d2d=!0x1;const _0x4fb523=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x413c46 of _0x398208['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e48e1=_0x398208['_findSuggestions'](_0x413c46['getFirstRange'](),'attribute')['map'](_0x4feec2=>_0x4feec2['suggestion'])['filter'](_0x114b49=>_0x114b49['data']&&_0x4fb523['includes'](_0x114b49['data']['key']));if(!_0x2e48e1['length'])continue;const _0x572d72=_0x2e48e1[0x0]['head']['attributes']['groupId'];if(!_0x2e48e1['every'](_0x2ee309=>_0x2ee309['attributes']['groupId']===_0x572d72)){for(const _0x15dbd3 of _0x2e48e1)_0x2a7c87(_0x15dbd3,_0x572d72)&&(_0xf80d2d=!0x0);}}return _0xf80d2d;function _0x10fd63(_0x3d7e71,_0x29429c){for(const _0x533760 of _0x398208['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11faab=>'attribute'==_0x11faab['type']&&_0x11faab['attributes']['groupId']==_0x3d7e71))_0x533760['setAttribute']('groupId',_0x29429c);}function _0x2a7c87(_0x23538a,_0x4eb876){let _0x2b6ead=_0x23538a['head'],_0x461e84=!0x1;for(;_0x2b6ead;)_0x2b6ead['attributes']['groupId']!=_0x4eb876&&(_0x10fd63(_0x2b6ead['attributes']['groupId'],_0x4eb876),_0x2b6ead['setAttribute']('groupId',_0x4eb876),_0x461e84=!0x0),_0x2b6ead=_0x2b6ead['next'];return _0x461e84;}}['_supportLegacySuggestions'](){const _0x459141=this['editor'],_0xbd483c=_0x459141['locale'],_0x404064=_0x459141['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x404064['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4b6ace,_0x475b7d){const _0x470934=[];for(let _0x1c1e82 of _0x4b6ace)_0x1c1e82['start']['nodeAfter']===_0x1c1e82['end']['parent']&&(_0x1c1e82=_0x459141['model']['createRange'](_0x459141['model']['createPositionAt'](_0x1c1e82['start']['nodeAfter'],0x0))),_0x470934['push'](_0x1c1e82);_0x459141['model']['change'](_0x3b4e54=>{const _0x1cea6a=_0x459141['model']['document']['selection'],_0x1d1f86=Array['from'](_0x1cea6a['getRanges']())['map'](_0x3e4172=>_0xe90ba7['fromRange'](_0x3e4172));_0x3b4e54['setSelection'](_0x470934),_0x459141['commands']['get'](_0x475b7d['commandName'])['refresh'](),_0x475b7d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x459141['execute'](_0x475b7d['commandName'],..._0x475b7d['commandParams']),_0x3b4e54['setSelection'](_0x1d1f86);for(const _0x461b52 of _0x1d1f86)_0x461b52['detach']();});}),_0x404064['descriptionFactory']['registerElementLabel'](function(_0x6c1de0){const _0x576c11=!_0x459141['model']['schema']['isObject'](_0x6c1de0),_0x35e8f6=_0x6c1de0['previousSibling'],_0x34a47a=_0x6c1de0['nextSibling'],_0x1c6f86=_0x6c1de0['getAttribute']('listItemId'),_0x95c050=!_0x35e8f6||_0x35e8f6['getAttribute']('listItemId')!==_0x1c6f86,_0x406839=!_0x34a47a||_0x34a47a['getAttribute']('listItemId')!==_0x1c6f86;return _0x576c11&&Boolean(_0x1c6f86)&&_0x95c050&&_0x406839;},_0x3aa7f8=>o(_0xbd483c,'ELEMENT_LIST_ITEM',_0x3aa7f8));}['_registerLegacyDescription'](){const _0x168af0=this['editor'],_0xe3f778=_0x168af0['locale'];function _0xffcbac(_0x1487cb){const _0x5e20da=_0x168af0['commands']['get']('bulletedList')['value'],_0x5f328a=_0x168af0['commands']['get']('numberedList')['value'];return'numberedList'===_0x1487cb?_0x5e20da:_0x5f328a;}_0x168af0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x217615){if('formatBlock'!=_0x217615['type'])return;const {data:_0x7ec6ae}=_0x217615;if(!_0x7ec6ae)return;let _0x3f80b6,_0x1c3f0f,_0x397d61,_0x29acd3;switch(_0x7ec6ae['commandName']){case'bulletedList':_0x397d61=_0x7ec6ae['commandParams'][0x0]['forceValue'],_0x29acd3=_0xffcbac(_0x7ec6ae['commandName']),_0x3f80b6=_0x397d61?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29acd3&&_0x168af0['config']['get']('list.multiBlock')||(_0x3f80b6='*Change\x20to:*\x20%0'),_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x397d61=_0x7ec6ae['commandParams'][0x0]['forceValue'],_0x29acd3=_0xffcbac(_0x7ec6ae['commandName']),_0x3f80b6=_0x397d61?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29acd3&&_0x168af0['config']['get']('list.multiBlock')||(_0x3f80b6='*Change\x20to:*\x20%0'),_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f80b6='*Indent:*\x20%0',_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f80b6=function(_0x264f1f){const _0xb91d6=_0x264f1f['getFirstRange']();let _0x4191cc=_0xb91d6['start']['nodeAfter'];for(;_0x4191cc&&_0xb91d6['containsItem'](_0x4191cc);){if(_0x4191cc['getAttribute']('listIndent')>0x0)return!0x1;_0x4191cc=_0x4191cc['nextSibling'];}return!0x0;}(_0x217615)?o(_0xe3f778,'*Format:*\x20remove\x20from\x20%0',o(_0xe3f778,function(_0x3b8e08){return'ELEMENT_'+_0x3b8e08['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x217615))):o(_0xe3f778,'*Outdent:*\x20%0',o(_0xe3f778,'ELEMENT_LIST_ITEM')),_0x1c3f0f={'type':'format','content':_0x3f80b6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7ec6ae['multipleBlocks']&&(_0x3f80b6='*Merge:*\x20%0',_0x1c3f0f={'type':'deletion','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_LIST_ITEM'))});}return _0x1c3f0f;});}}function le(_0x1d1a79){let _0x215230=_0x1d1a79['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x215230;){const _0x59288e=_0x215230['getAttribute']('listItemId');if(!_0x59288e)return!0x1;if(_0x59288e==_0x1d1a79['data']['newValue'])return'newValue';if(_0x59288e==_0x1d1a79['data']['oldValue'])return'oldValue';_0x215230=_0x215230['previousSibling'];}return!0x1;}class ue extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d46f5=this['editor']['config']['get']('list.properties'),_0x1a3b62=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d46f5['styles']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listStyle'),_0x1a3b62['registerBlockAttribute']('listStyle')),_0x1d46f5['reversed']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listReversed'),_0x1a3b62['registerBlockAttribute']('listReversed')),_0x1d46f5['startIndex']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listStart'),_0x1a3b62['registerBlockAttribute']('listStart'));const _0x524191={'type':'format','content':''};_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x552713=this['editor']['locale'];_0x1a3b62['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x552713,'FORMAT_LIST_REVERSED')),_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](_0x3861a8=>{const {data:_0x193dc2}=_0x3861a8;if(_0x193dc2&&'listReversed'==_0x193dc2['key'])return null==_0x193dc2['newValue']||0x0==_0x193dc2['newValue']&&null==_0x193dc2['oldValue']?_0x524191:void 0x0;}),_0x1a3b62['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x552713,'FORMAT_LIST_START')),_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](_0xabe819=>{const {data:_0x4f6350}=_0xabe819;if(_0x4f6350&&'listStart'==_0x4f6350['key'])return null==_0x4f6350['newValue']||0x1==_0x4f6350['newValue']&&null==_0x4f6350['oldValue']?_0x524191:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2ebe4a=>{if(_0x2ebe4a['batch']['isUndo'])return!0x1;let _0x321565=!0x1;const _0xc91377=_0x1a3b62['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18db32=>{const _0x15617f=_0x1a3b62['_getAttributeKey'](_0x18db32);return'listStart'==_0x15617f||'listReversed'==_0x15617f;});for(const _0x39fd5e of _0xc91377){const _0x35121c=_0x39fd5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x35121c||'customNumbered'==_0x35121c)continue;_0x1a3b62['_findSuggestions'](_0x39fd5e['getFirstRange'](),'attribute')['find'](_0x38648c=>'listType'==_0x1a3b62['_getAttributeKey'](_0x38648c['suggestion']))||(_0x2ebe4a['removeMarker'](_0x39fd5e['getFirstMarker']()),_0x321565=!0x0);}return _0x321565;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1b82b8){const _0x16fd22=this['editor']['locale'],{data:_0x9c37ea}=_0x1b82b8,_0x1ce68a={'type':'format','content':''};if(!_0x9c37ea||'listStyle'!=_0x9c37ea['key'])return;if(!_0x9c37ea['oldValue'])return'default'==_0x9c37ea['newValue']?_0x1ce68a:{'type':'format','content':''+o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['newValue'])))};if(!_0x9c37ea['newValue']){if('default'==_0x9c37ea['oldValue'])return _0x1ce68a;let _0x29a747=_0x1b82b8['head'];for(;_0x29a747;){if(_0x29a747['data']&&'listType'==_0x29a747['data']['key']&&_0x29a747['data']['newValue'])return _0x1ce68a;_0x29a747=_0x29a747['next'];}return{'type':'format','content':''+o(_0x16fd22,'*Remove\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['oldValue'])))};}if('default'!=_0x9c37ea['newValue'])return{'type':'format','content':''+o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['newValue'])))};let _0x42f29=_0x1b82b8['head'];for(;_0x42f29;){if(_0x42f29['data']&&'listType'==_0x42f29['data']['key']&&_0x42f29['data']['newValue']&&_0x42f29['data']['oldValue'])return _0x1ce68a;_0x42f29=_0x42f29['next'];}return{'type':'format','content':o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,'ELEMENT_'+_0x1b82b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x507c2c=this['editor'],_0x2a9be5=_0x507c2c['locale'];_0x507c2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c2943=>{if('formatBlock'!=_0x3c2943['type'])return;const {data:_0xc300fb}=_0x3c2943;if(!_0xc300fb)return;let _0x4ce1fc,_0x7c17ab;switch(_0xc300fb['commandName']){case'listStyle':_0x4ce1fc='*Change\x20to:*\x20%0',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc,o(_0x2a9be5,this['_getTranslationKeyForListStyle'](_0xc300fb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ce1fc=_0xc300fb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc)};break;case'listStart':_0x4ce1fc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc,_0xc300fb['commandParams'][0x0]['startIndex'])};}return _0x7c17ab;});}['_getTranslationKeyForListStyle'](_0x1cc1e8){return'ELEMENT_'+function(_0x5936b6){if(pe['includes'](_0x5936b6))return'bulleted';if(ye['includes'](_0x5936b6))return'numbered';return null;}(_0x1cc1e8)['toUpperCase']()+'_LIST_'+_0x1cc1e8['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4104d6{static get['requires'](){return[_0x501866];}['init'](){const _0x29e2e3=this['editor'],_0x450e3c=_0x29e2e3['plugins']['get']('TrackChangesEditing'),_0xc2f372=_0x29e2e3['commands']['get']('enter');_0x450e3c['enableCommand']('enter',()=>{_0x29e2e3['model']['change'](_0x541b5e=>{const _0x4abae0=_0x29e2e3['model']['document']['selection'],_0x1db5af=_0x4abae0['getFirstPosition'](),_0x5ad335=_0xe90ba7['fromRange'](_0x4abae0['getFirstRange']());if(_0xc2f372['enterBlock'](_0x541b5e)){const _0x4cf06e=_0x29e2e3['model']['createPositionAt'](_0x1db5af['parent']['nextSibling'],0x0),_0x349087=_0x541b5e['createRange'](_0x1db5af,_0x4cf06e);_0x450e3c['markInsertion'](_0x349087);}else _0x541b5e['setSelection'](_0x541b5e['createRange'](_0x5ad335['end']));_0x5ad335['detach'](),_0xc2f372['fire']('afterExecute',{'writer':_0x541b5e});});}),_0x29e2e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x29e2e3,'split'),{'priority':'high'}),_0x29e2e3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x321eee,_0x53bb98,_0x491f2d)=>{const _0x59b38d=_0x491f2d['mapper']['markerNameToElements'](_0x53bb98['markerName']);if(_0x59b38d){for(const _0x5a95ff of _0x59b38d)_0x5a95ff['hasClass']('ck-suggestion-marker-split')&&(_0x491f2d['mapper']['unbindElementFromMarkerName'](_0x5a95ff,_0x53bb98['markerName']),_0x491f2d['writer']['remove'](_0x5a95ff));}},{'priority':'high'}),_0x29e2e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x180af2,_0x130f3e,_0x49935d)=>{_0x49935d['options']['showSuggestionHighlights']&&_e(_0x29e2e3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x180af2,_0x130f3e,_0x49935d);},{'priority':'high'});}}class J extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2db2cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2db2cd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2db2cd['enableCommand']('findNext'),_0x2db2cd['enableCommand']('findPrevious'),_0x2db2cd['enableCommand']('replace'),_0x2db2cd['enableCommand']('replaceAll');}['handleFindCommand'](_0x50fc02,_0xbf3b67,_0x191619={}){const _0x4acb64=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x50fc02(_0x410bd8=>{let _0x23012c=('string'==typeof _0xbf3b67?_0x4acb64['findByTextCallback'](_0xbf3b67,_0x191619):_0xbf3b67)(_0x410bd8);Array['isArray'](_0x23012c)&&(_0x23012c={'results':_0x23012c,'searchText':'string'==typeof _0xbf3b67?_0xbf3b67:''});const _0x4c206a=_0x23012c['results']['filter'](_0xdd392f=>!0x1===this['_isInDeletionRange'](_0xdd392f,_0x410bd8['item']));return{..._0x23012c,'results':_0x4c206a};},_0x191619);}['_isInDeletionRange'](_0x4926a4,_0x414fa1){const _0x4d7c60=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x414fa1,_0x4926a4['start']),this['editor']['model']['createPositionAt'](_0x414fa1,_0x4926a4['end']));for(const _0x54ac50 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4d7c60['getIntersection'](_0x54ac50['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4104d6{['afterInit'](){const _0x532f27=this['editor']['locale'],_0x15ab55=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5b4509,commandName:_0x1e16c5}of ro)this['editor']['plugins']['has'](_0x5b4509)&&(_0x15ab55['enableDefaultAttributesIntegration'](_0x1e16c5),_0x15ab55['registerInlineAttribute'](_0x1e16c5));_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x532f27,'FORMAT_FONT_SIZE')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x532f27,'FORMAT_FONT_FAMILY')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x532f27,'FORMAT_FONT_COLOR')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x532f27,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd3d4=this['editor'],_0x54ae1d=_0x4cd3d4['locale'];_0x4cd3d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492519=>{const _0x35c519=_0x54ae1d['t'];if('formatInline'!=_0x492519['type'])return;const {data:_0x5f4e8e}=_0x492519;if(null!=_0x5f4e8e){if('fontSize'==_0x5f4e8e['commandName']){const _0x579997=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x579997){const _0x534a9e=_0x35c519(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x35ee20=>_0x35ee20['model']==_0x579997)['title'])['toLowerCase']();return{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20size:*\x20%0',_0x534a9e)};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f4e8e['commandName']){const _0x28997e=_0x5f4e8e['commandParams'][0x0]['value'];return _0x28997e?{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20family:*\x20%0',_0x28997e)}:{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f4e8e['commandName']){const _0x5c03fe=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x5c03fe){const _0x47f4d9=_0x9e5829(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3f1599=>_0x3f1599['model']==_0x5c03fe);let _0x3d93a6=_0x5c03fe,_0x3fcb30='';return _0x47f4d9&&(_0x3d93a6=_0x47f4d9['label'],_0x3fcb30=_0x35c519(_0x3d93a6)['toLowerCase']()),{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20color:*\x20%0',_0x3fcb30)['trim'](),'color':{'value':_0x5c03fe,'title':_0x3fcb30||_0x3d93a6}};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f4e8e['commandName']){const _0x21fe52=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x21fe52){const _0x2d7321=_0x9e5829(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10d541=>_0x10d541['model']==_0x21fe52);let _0x2a66ab=_0x21fe52,_0x5e2183='';return _0x2d7321&&(_0x2a66ab=_0x2d7321['label'],_0x5e2183=_0x35c519(_0x2a66ab)['toLowerCase']()),{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5e2183)['trim'](),'color':{'value':_0x21fe52,'title':_0x5e2183||_0x2a66ab}};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4104d6{['afterInit'](){const _0x2b7030=this['editor'],_0x4d58ba=_0x2b7030['plugins']['get']('TrackChangesEditing'),_0x1726d6=_0x2b7030['commands']['get']('copyFormat'),_0x2e47ca=_0x2b7030['commands']['get']('pasteFormat');_0x1726d6&&_0x2e47ca&&(_0x4d58ba['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d58ba['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f16fc=this['editor'],_0x22ab14=_0x3f16fc['locale'];_0x3f16fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e8cd0=>{if('formatBlock'!=_0x4e8cd0['type']&&'formatInline'!=_0x4e8cd0['type'])return;const {data:_0x57c360}=_0x4e8cd0;if(_0x57c360&&'pasteFormat'===_0x57c360['commandName']){const _0x3903dc=[],_0x319412=_0x57c360['commandParams'][0x0];for(const [_0xfdcff5,_0x1376fb]of Object['entries'](_0x319412))_0x3903dc['push'](so(_0x3f16fc,_0xfdcff5,_0x1376fb));return _0x3903dc['length']?{'type':'format','content':o(_0x22ab14,'*Set\x20format\x20to:*\x20%0',_0x3903dc['join'](',\x20'))}:{'type':'format','content':o(_0x22ab14,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5f2abd,_0x5b6123,_0x2e2df0){const _0x4db857=_0x5f2abd['locale']['t'],_0x2a078f=_0x5b6123['split'](/(?=[A-Z])/)['join']('\x20'),_0x9f8dcf=_0x4db857(_0x2a078f['charAt'](0x0)['toUpperCase']()+_0x2a078f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2e2df0)return _0x9f8dcf;if('fontColor'===_0x5b6123||'fontBackgroundColor'===_0x5b6123){const _0x221699=_0x9e5829(_0x5f2abd['config']['get']('fontColor.colors'))['find'](_0x5d738b=>_0x5d738b['model']==_0x2e2df0);return _0x9f8dcf+'\x20('+(_0x221699?_0x4db857(_0x221699['label'])['toLowerCase']():_0x2e2df0)+')';}if('fontSize'===_0x5b6123&&isNaN(parseFloat(_0x2e2df0))){const _0x4567f8=_0x5f2abd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5f2abd['config']['get']('fontSize.options'))['find'](_0x5cb206=>_0x5cb206['model']==_0x2e2df0);return _0x9f8dcf+'\x20('+(_0x4567f8?_0x4db857(_0x4567f8['title'])['toLowerCase']():_0x2e2df0)+')';}return _0x9f8dcf+'\x20('+_0x2e2df0+')';}class Y extends _0x4104d6{['_headingOptions'];['afterInit'](){const _0x473a84=this['editor'];if(!_0x473a84['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x473a84['config']['get']('heading.options');const _0x5c3b66=_0x473a84['locale'],_0x57ad33=_0x473a84['plugins']['get']('TrackChangesEditing');_0x57ad33['enableDefaultAttributesIntegration']('heading');for(const _0x5b3078 of this['_headingOptions'])'paragraph'!=_0x5b3078['model']&&_0x57ad33['descriptionFactory']['registerElementLabel'](_0x5b3078['model'],_0x50de3f=>{const _0x517a0a=this['_getHeadingLevel'](_0x5b3078['model']);return null!==_0x517a0a?_0x4d15cf(_0x50de3f,_0x517a0a):_0x2c27ca(_0x50de3f,_0x5b3078['title']);});function _0x4d15cf(_0x46a66a,_0x3b06b8){return o(_0x5c3b66,'ELEMENT_HEADING',[_0x46a66a,_0x3b06b8]);}function _0x2c27ca(_0x46c99f,_0x2e92bb){return o(_0x5c3b66,'ELEMENT_HEADING_CUSTOM',[_0x46c99f,_0x2e92bb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4525=this['editor'],_0x12d2b6=_0x5f4525['locale'];function _0x2f7a52(_0x56f54d,_0xc6aa7e){return o(_0x12d2b6,'ELEMENT_HEADING_CUSTOM',[_0x56f54d,_0xc6aa7e]);}_0x5f4525['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fca70=>{if('formatBlock'!=_0x3fca70['type'])return;const {data:_0x30a1fd}=_0x3fca70;if(_0x30a1fd&&'heading'==_0x30a1fd['commandName']){const _0x220317=_0x30a1fd['commandParams'][0x0]['value'],_0xbc421c=this['_getHeadingLevel'](_0x220317);if(null!==_0xbc421c)return{'type':'format','content':o(_0x12d2b6,'*Change\x20to:*\x20%0',(_0x254724=0x1,_0x292ad6=_0xbc421c,o(_0x12d2b6,'ELEMENT_HEADING',[_0x254724,_0x292ad6])))};const _0x2fb13f=this['_headingOptions']['find'](_0x334fdf=>_0x334fdf['model']===_0x220317)['title'];return{'type':'format','content':o(_0x12d2b6,'*Change\x20to:*\x20%0',_0x2f7a52(0x1,_0x2fb13f))};}var _0x254724,_0x292ad6;});}['_getHeadingLevel'](_0x1e810b){const _0xcc5db0=_0x1e810b['match'](/^heading(\d+)/);if(_0xcc5db0)return _0xcc5db0[0x1];const _0x17f877=this['_headingOptions']?.['find'](_0x2f904f=>_0x2f904f['model']==_0x1e810b);if(_0x17f877&&_0x17f877['view']){const _0x2495c1=_0x17f877['view'],_0x26f28e=(_0x2495c1['name']??_0x2495c1)['match'](/^h(\d+)/);if(_0x26f28e)return _0x26f28e[0x1];}return null;}}class Z extends _0x4104d6{['afterInit'](){const _0x1ff250=this['editor'];if(!_0x1ff250['plugins']['has']('HighlightEditing'))return;const _0x508301=_0x1ff250['plugins']['get']('TrackChangesEditing'),_0x22436d=_0x1ff250['locale'];_0x508301['enableDefaultAttributesIntegration']('highlight'),_0x508301['registerInlineAttribute']('highlight'),_0x508301['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22436d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23faad=this['editor'],_0x5721c9=_0x23faad['locale'];_0x23faad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd51b52=>{if('formatInline'!=_0xd51b52['type'])return;const {data:_0x1b74e2}=_0xd51b52;if(_0x1b74e2&&'highlight'==_0x1b74e2['commandName']){const _0x772587=_0x5721c9['t'],_0xdb68c0=_0x1b74e2['commandParams'][0x0]['value'];if(_0xdb68c0){const _0x1f4394=_0x23faad['config']['get']('highlight.options')['find'](_0x2924cf=>_0x2924cf['model']==_0xdb68c0),_0x3147ff=_0x772587(_0x1f4394['title'])['toLowerCase']();return{'type':'format','content':o(_0x5721c9,'*Set\x20highlight:*\x20%0',_0x3147ff),'color':{'value':_0x1f4394['color'],'title':_0x1f4394['title']}};}return{'type':'format','content':o(_0x5721c9,'*Remove\x20highlight*',o(_0x5721c9,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4104d6{['afterInit'](){const _0xff45e5=this['editor'];if(!_0xff45e5['plugins']['has']('HorizontalLineEditing'))return;_0xff45e5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xad465e=_0xff45e5['plugins']['get']('TrackChangesEditing'),_0x3d098c=_0xff45e5['locale'];_0xad465e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4efd99=>o(_0x3d098c,'ELEMENT_HORIZONTAL_LINE',_0x4efd99)),_0xff45e5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d3fb0,{writer:_0x41fa20,options:_0x547bba})=>{if(!_0x547bba['showSuggestionHighlights'])return null;const _0x5622f3=_0x41fa20['createContainerElement']('div'),_0x5648cf=_0x41fa20['createEmptyElement']('hr');return _0x41fa20['addClass']('ck-horizontal-line',_0x5622f3),_0x41fa20['insert'](_0x41fa20['createPositionAt'](_0x5622f3,0x0),_0x5648cf),_0x5622f3;},'converterPriority':'high'});}}class et extends _0x4104d6{['afterInit'](){const _0x29a5b7=this['editor'];if(!_0x29a5b7['plugins']['has']('HtmlEmbed'))return;const _0xe521d3=_0x29a5b7['plugins']['get']('TrackChangesEditing'),_0xe8e57b=_0x29a5b7['locale'];_0xe521d3['descriptionFactory']['registerElementLabel']('rawHtml',_0x31ec4c=>o(_0xe8e57b,'ELEMENT_HTML_EMBED',_0x31ec4c)),_0xe521d3['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe521d3['registerBlockAttribute']('value'),_0xe521d3['descriptionFactory']['registerDescriptionCallback'](_0x35eb4b=>{if('attribute'!=_0x35eb4b['type'])return;const {data:_0x18ff85}=_0x35eb4b;if(_0x18ff85&&'value'==_0x18ff85['key']&&_0x35eb4b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1dded6=o(_0xe8e57b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe8e57b,'*Change\x20%0\x20content*',_0x1dded6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1629eb=this['editor'],_0x1b2503=_0x1629eb['locale'];_0x1629eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a65d7=>{if('formatBlock'!=_0x5a65d7['type'])return;const {data:_0x4e445d}=_0x5a65d7;if(_0x4e445d&&'htmlEmbed'==_0x4e445d['commandName']){const _0x572ba7=o(_0x1b2503,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b2503,'*Change\x20%0\x20content*',_0x572ba7)};}});}}class it extends _0x4104d6{['afterInit'](){const _0x113cfe=this['editor'];if(!_0x113cfe['plugins']['has']('ImageEditing'))return;const _0x5e7514=_0x113cfe['plugins']['get']('TrackChangesEditing'),_0x55629c=_0x113cfe['plugins']['get']('ImageUtils'),_0x54581f=_0x113cfe['locale'];_0x5e7514['enableCommand']('insertImage'),_0x5e7514['descriptionFactory']['registerElementLabel']('imageBlock',_0x14b5b2=>o(_0x54581f,'ELEMENT_IMAGE',_0x14b5b2)),_0x5e7514['descriptionFactory']['registerElementLabel']('imageInline',_0x40f08=>o(_0x54581f,'ELEMENT_INLINE_IMAGE',_0x40f08)),_0x5e7514['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x54581f,'ELEMENT_CAPTION')),_0x113cfe['plugins']['has']('ImageUploadEditing')&&_0x5e7514['enableCommand']('uploadImage'),_0x113cfe['plugins']['has']('ImageBlockEditing')&&_0x113cfe['plugins']['has']('ImageInlineEditing')&&(_0x5e7514['enableCommand']('imageTypeInline',(_0x22b0e2,_0x2a6c1f)=>{const _0x4f6a48=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']);_0x113cfe['model']['change'](()=>{_0x5e7514['markBlockFormat'](_0x4f6a48,{'commandName':'imageTypeInline','commandParams':[_0x2a6c1f]},[],'convertBlockImageToInline');});}),_0x5e7514['enableCommand']('imageTypeBlock',(_0x5eb170,_0x4cd567)=>{_0x113cfe['model']['change'](_0xb2b820=>{let _0x5866b0=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x210624=_0xb2b820['createRangeOn'](_0x5866b0);const _0x35efd1=_0x37ad9c['fromPosition'](_0x210624['start'],'toPrevious'),_0x2dc814=_0x37ad9c['fromPosition'](_0x210624['end'],'toNext');_0x5e7514['forceDefaultExecution'](()=>_0x5eb170(_0x4cd567)),_0x5866b0=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x210624=_0xb2b820['createRangeOn'](_0x5866b0);const _0x3e2712=_0xb2b820['createRange'](_0x35efd1,_0x2dc814);_0x35efd1['detach'](),_0x2dc814['detach'](),_0x5e7514['markBlockFormat'](_0x5866b0,{'commandName':'imageTypeInline','commandParams':[_0x4cd567]},[],'convertInlineImageToBlock'),_0x3e2712['start']['isBefore'](_0x210624['start'])&&_0x5e7514['markInsertion'](_0xb2b820['createRange'](_0x3e2712['start'],_0x210624['start']),'convertInlineImageToBlock'),_0x210624['end']['isBefore'](_0x3e2712['end'])&&_0x5e7514['markInsertion'](_0xb2b820['createRange'](_0x210624['end'],_0x3e2712['end']),'convertInlineImageToBlock');});}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e7514['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d690e])=>{const _0x78cb81=_0x5e7514['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2a6aa5=_0x1d690e['start'],_0x523611=_0x1d690e['end'];const _0x509aea=_0x113cfe['model']['schema']['getNearestSelectionRange'](_0x2a6aa5,'backward'),_0x547ae6=_0x113cfe['model']['schema']['getNearestSelectionRange'](_0x523611,'forward');_0x509aea['isCollapsed']&&(_0x2a6aa5=_0x509aea['start']),_0x547ae6['isCollapsed']&&(_0x523611=_0x547ae6['end']),_0x78cb81([_0x113cfe['model']['createRange'](_0x2a6aa5,_0x523611)]);}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xef48c9),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xef48c9)),_0x113cfe['plugins']['has']('ImageCaptionEditing')&&(_0x5e7514['enableCommand']('toggleImageCaption',(_0x390d79,_0x296109)=>{const _0x4b7b00=_0x113cfe['plugins']['get']('ImageCaptionUtils');let _0x505471=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x4b002a=_0x4b7b00['getCaptionFromImageModelElement'](_0x505471);_0x113cfe['model']['change'](()=>{if(_0x4b002a)return void _0x5e7514['markDeletion'](_0x113cfe['model']['createRangeOn'](_0x4b002a));const _0x3f6e7e=_0x55629c['isBlockImage'](_0x505471);_0x390d79(_0x296109),_0x505471=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x4b002a=_0x4b7b00['getCaptionFromImageModelElement'](_0x505471),_0x5e7514['markInsertion'](_0x113cfe['model']['createRangeOn'](_0x4b002a),_0x3f6e7e?null:'imageCaption');});}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xef48c9));const _0x201417=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x268521(_0x13a211,_0x91eb7f){const _0x240403=_0x201417['findIndex'](({type:_0x39691f,subType:_0x261e2b})=>_0x13a211['type']==_0x39691f&&_0x13a211['subType']==_0x261e2b),_0x1feb63=_0x201417['findIndex'](({type:_0x3a8869,subType:_0x1ec51e})=>_0x91eb7f['type']==_0x3a8869&&_0x91eb7f['subType']==_0x1ec51e);if(_0x240403<0x0||_0x1feb63<0x0)return!0x1;const _0x124c81=_0x13a211['getFirstRange'](),_0x552876=_0x91eb7f['getFirstRange']();if((0x0==_0x240403||0x1==_0x240403)&&0x2==_0x1feb63&&_0x124c81['isIntersecting'](_0x552876))return!0x0;if(0x2==_0x240403&&0x3==_0x1feb63){const _0x1af2fd=_0x5e7514['_findSuggestions'](_0x124c81,'insertion')['filter'](({suggestion:_0x54ede2,meta:_0x26a7f2})=>_0x26a7f2['isOwn']&&'convertInlineImageToBlock'==_0x54ede2['subType']);if(_0x1af2fd['length']>0x1&&_0x552876['end']['isEqual'](_0x124c81['start']))return!0x0;if(0x1==_0x1af2fd['length']&&(_0x124c81['start']['isEqual'](_0x552876['end'])||_0x124c81['end']['isEqual'](_0x552876['start'])))return!0x0;}if(0x3==_0x240403&&0x3==_0x1feb63&&_0x124c81['start']['isBefore'](_0x552876['start'])){const _0x443c8c=_0x124c81['end']['nodeAfter'],_0x3b255d=_0x552876['start']['nodeBefore'];return _0x55629c['isBlockImage'](_0x443c8c)&&_0x443c8c===_0x3b255d;}return!0x1;}function _0xef48c9(_0x532f0f,_0x40d79f){return _0x268521(_0x532f0f,_0x40d79f)?[_0x532f0f,_0x40d79f]:_0x268521(_0x40d79f,_0x532f0f)?[_0x40d79f,_0x532f0f]:null;}_0x113cfe['plugins']['has']('ImageResize')&&(_0x5e7514['enableDefaultAttributesIntegration']('resizeImage'),_0x5e7514['registerBlockAttribute']('resizedWidth'),_0x5e7514['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x54581f,'FORMAT_IMAGE_SIZE'))),_0x113cfe['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e7514['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e7514['registerBlockAttribute']('alt')),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x26d3c3=>{if(!!_0x201417['find'](({type:_0x2465ab,subType:_0x47c0af})=>_0x26d3c3['type']==_0x2465ab&&_0x26d3c3['subType']==_0x47c0af))return _0x26d3c3['previous']?{}:void 0x0;}),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x348edb=>{if('insertion'==_0x348edb['type']||'deletion'==_0x348edb['type']){const _0x92d9c=_0x348edb['getContainedElement']();if(_0x92d9c&&_0x92d9c['is']('element','caption'))return{'type':'insertion'==_0x348edb['type']?'addObject':'removeObject','element':_0x92d9c,'quantity':0x1};}}),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x5c86c5=>'formatBlock'==_0x5c86c5['type']&&'convertInlineImageToBlock'==_0x5c86c5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c86c5['type']&&'convertBlockImageToInline'==_0x5c86c5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x2d3596=>{if('attribute'!=_0x2d3596['type'])return;const {data:_0x5deb86}=_0x2d3596;if(!_0x5deb86||'alt'!=_0x5deb86['key'])return;const _0x32f7ce=_0x5deb86['newValue'];return _0x32f7ce?{'type':'format','content':o(_0x54581f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32f7ce+'\x22')}:{'type':'format','content':o(_0x54581f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca211=this['editor'],_0x192c16=_0x2ca211['locale'];_0x2ca211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2cd61=>{if('formatBlock'!=_0xd2cd61['type']&&'formatInline'!=_0xd2cd61['type'])return;const {data:_0x565648}=_0xd2cd61;if(_0x565648){if('imageTextAlternative'==_0x565648['commandName']){const _0x44f68e=_0x565648['commandParams'][0x0]['newValue'];return _0x44f68e?{'type':'format','content':o(_0x192c16,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44f68e+'\x22')}:{'type':'format','content':o(_0x192c16,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x565648['commandName']){const _0x496f49=_0x565648['commandParams'][0x0]['width'];return _0x496f49?{'type':'format','content':o(_0x192c16,'*Set\x20image\x20width:*\x20%0',_0x496f49)}:{'type':'format','content':o(_0x192c16,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1babb8=this['editor']['locale'],_0x3f9ad6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f9ad6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3f9ad6['registerBlockAttribute']('src'),_0x3f9ad6['descriptionFactory']['registerDescriptionCallback'](_0x477dc0=>{if('attribute'!=_0x477dc0['type'])return;const {data:_0x371d6a}=_0x477dc0;return _0x371d6a&&'src'==_0x371d6a['key']?_0x371d6a['newValue']&&_0x371d6a['oldValue']?{'type':'format','content':o(_0x1babb8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x563822=this['editor']['plugins']['get']('TrackChangesEditing');_0x563822['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x563822['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x563822['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x563822['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x459d90=this['editor'],_0x2b03a9=_0x459d90['locale'];_0x459d90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29474f=>{if('formatBlock'!=_0x29474f['type']&&'formatInline'!=_0x29474f['type'])return;const {data:_0x1e127e}=_0x29474f;if(!_0x1e127e||'replaceImageSource'!=_0x1e127e['commandName'])return;return{'type':'format','content':o(_0x2b03a9,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4104d6{['afterInit'](){const _0x2f4246=this['editor'];if(!_0x2f4246['plugins']['has']('ImageStyleEditing'))return;const _0x2e0716=_0x2f4246['plugins']['get']('TrackChangesEditing'),_0x369304=_0x2f4246['plugins']['get']('ImageUtils'),_0x5c6d0f={};_0x2e0716['enableCommand']('imageStyle',(_0x43ea65,_0xb5107)=>{const _0x349da3=_0x2f4246['plugins']['get']('Users')['me'],_0x3c5e36=_0x2f4246['commands']['get']('imageStyle');let _0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),_0x206c33=_0x2f4246['model']['createRangeOn'](_0x590a25),_0x304e74=_0x3c5e36['value'];if(_0x304e74==_0xb5107['value'])return;const _0x243eca={'commandName':'imageStyle','commandParams':[_0xb5107],'formatGroupId':_0x5ed2a0()};_0x2f4246['model']['change'](()=>{if(_0x2e0716['getSuggestions']()['filter'](_0x451db1=>_0x451db1['isInContent']&&_0x349da3==_0x451db1['author']&&('formatBlock'==_0x451db1['type']||'formatInline'==_0x451db1['type'])&&('imageStylePreApply'==_0x451db1['subType']||'imageStylePostApply'==_0x451db1['subType'])&&_0x451db1['getFirstRange']()['isEqual'](_0x206c33))['forEach'](_0x3f0414=>_0x2e0716['discardSuggestion'](_0x3f0414['head'])),_0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),_0x206c33=_0x2f4246['model']['createRangeOn'](_0x590a25),_0x3c5e36['refresh'](),_0x2f4246['commands']['get']('imageTypeInline')['refresh'](),_0x2f4246['commands']['get']('imageTypeBlock')['refresh'](),_0x304e74=_0x3c5e36['value'],_0x304e74!=_0xb5107['value'])return _0x369304['isInlineImage'](_0x590a25)&&_0x3c5e36['shouldConvertImageType'](_0xb5107['value'],_0x590a25)?(_0x43ea65({..._0xb5107,'setImageSizes':!0x1}),_0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),void _0x2e0716['markBlockFormat'](_0x590a25,{..._0x243eca,'commandReversedParams':[{'value':_0x304e74||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x369304['isBlockImage'](_0x590a25)?_0x2e0716['markBlockFormat'](_0x590a25,_0x243eca,[],'imageStylePostApply'):_0x2e0716['markInlineFormat'](_0x206c33,_0x243eca,'imageStylePostApply'));});});for(const _0x1b0362 of _0x2f4246['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c6d0f[_0x1b0362['name']]=_0x1b0362['title']['toLowerCase']();_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x8b795b])=>{_0x369304['setImageNaturalSizeAttributes'](_0x8b795b['getContainedElement']());}),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56d829,_0x456e56)=>{_0x2e0716['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56d829,{'commandName':_0x456e56['commandName'],'commandParams':_0x456e56['commandReversedParams']});}),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4b7f65,_0x4824b4){if(_0x474303(_0x4b7f65,_0x4824b4))return[_0x4b7f65,_0x4824b4];if(_0x474303(_0x4824b4,_0x4b7f65))return[_0x4824b4,_0x4b7f65];return null;});const _0x3c376f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x474303(_0x5a1c37,_0x1b3f73){const _0x2e9776=_0x3c376f['findIndex'](({type:_0x4a3a75,subType:_0x4e4930})=>_0x5a1c37['type']==_0x4a3a75&&_0x5a1c37['subType']==_0x4e4930),_0x4a8824=_0x3c376f['findIndex'](({type:_0x5bf738,subType:_0x3abf0c})=>_0x1b3f73['type']==_0x5bf738&&_0x1b3f73['subType']==_0x3abf0c);if(_0x2e9776<0x0||_0x4a8824<0x0)return!0x1;const _0x2a9da1=_0x5a1c37['getFirstRange'](),_0x2d0046=_0x1b3f73['getFirstRange']();if((0x0==_0x2e9776||0x1==_0x2e9776)&&0x2==_0x4a8824&&_0x2a9da1['isIntersecting'](_0x2d0046))return!0x0;if(0x2==_0x2e9776&&0x3==_0x4a8824){const _0x575105=_0x2e0716['_findSuggestions'](_0x2a9da1,'insertion')['filter'](({suggestion:_0x3c6799,meta:_0x1db68c})=>_0x1db68c['isOwn']&&'convertInlineImageToBlock'==_0x3c6799['subType']);if(_0x575105['length']>0x1&&_0x2d0046['end']['isEqual'](_0x2a9da1['start']))return!0x0;if(0x1==_0x575105['length']&&(_0x2a9da1['start']['isEqual'](_0x2d0046['end'])||_0x2a9da1['end']['isEqual'](_0x2d0046['start'])))return!0x0;}if(0x3==_0x2e9776&&0x3==_0x4a8824&&_0x2a9da1['start']['isBefore'](_0x2d0046['start'])){const _0x1df013=_0x2a9da1['end']['nodeAfter'],_0x2874be=_0x2d0046['start']['nodeBefore'];return _0x369304['isBlockImage'](_0x1df013)&&_0x1df013===_0x2874be;}return!0x1;}_0x2f4246['model']['document']['registerPostFixer'](()=>{let _0x17fe75=!0x1;const _0x5e2f03=Array['from'](_0x2f4246['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x110bb6,data:_0x1159f6}of _0x5e2f03){const {group:_0xc6ff19,type:_0x76e770,subType:_0x29d59c,id:_0x3c6225}=_0x2e0716['_splitMarkerName'](_0x110bb6);if('suggestion'==_0xc6ff19&&_0x2e0716['hasSuggestion'](_0x3c6225)){if('formatBlock'==_0x76e770&&('imageStylePreApply'==_0x29d59c||'imageStylePostApply'==_0x29d59c)){const _0x13b9c6=_0x2e0716['getSuggestion'](_0x3c6225);if(_0x1159f6['newRange']){const _0x34b7ca=_0x13b9c6['getFirstRange']()['getContainedElement']();if(_0x369304['isBlockImage'](_0x34b7ca))continue;_0x2e0716['discardSuggestion'](_0x13b9c6),_0x17fe75=!0x0;}}if('insertion'==_0x76e770&&'imageCaption'==_0x29d59c&&!_0x1159f6['newRange']){const _0x11d0bb=_0x2e0716['getSuggestion'](_0x3c6225);_0x11d0bb['next']&&_0x11d0bb['next']['isInContent']&&(_0x2e0716['discardSuggestion'](_0x11d0bb['next']),_0x17fe75=!0x0);}}}return _0x17fe75;}),this['_registerLegacyDescription'](_0x5c6d0f);}['_registerLegacyDescription'](_0x51958c){const _0x558a01=this['editor'],_0x1bb5b9=_0x558a01['locale'];_0x558a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313971=>{if('formatBlock'!=_0x313971['type']&&'formatInline'!=_0x313971['type'])return;const {data:_0x35501f}=_0x313971;if(!_0x35501f||'imageStyle'!=_0x35501f['commandName'])return;const _0x162e51=_0x35501f['commandParams'][0x0]['value'];return _0x540fa7('side'===_0x162e51?o(_0x1bb5b9,'FORMAT_SIDE_IMAGE'):_0x51958c[_0x162e51]||_0x162e51);function _0x540fa7(_0x18899b){return{'type':'format','content':o(_0x1bb5b9,'*Format:*\x20%0',_0x18899b)};}});}}class ot extends _0x4104d6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39f916){super(_0x39f916),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4bb7a6=this['editor'],_0x184d76=_0x4bb7a6['commands']['get']('importWord'),_0x2f9e6d=_0x4bb7a6['commands']['get']('trackChanges');_0x184d76&&(_0x184d76['on']('execute',(_0x369688,[,_0x2b6a7b])=>{this['_trackChangesValueDuringImport']=_0x2f9e6d['value'],_0x2b6a7b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x184d76,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x184d76,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2f9e6d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4bb7a6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1be97a,_0x4a363f){const {suggestions:_0x121bb4}=_0x4a363f,_0x482368=this['editor']['commands']['get']('trackChanges'),_0x17510b=_0x482368['value'];this['_trackChangesValueDuringImport']!==_0x17510b&&(_0x482368['execute'](),this['_trackChangesExecuted']=!0x0),_0x121bb4&&_0x121bb4['forEach'](({id:_0x3d15a2,type:_0x1e2749,author:_0x40e6ec,created_at:_0x2f956a})=>{const _0x5442cb={'id':_0x3d15a2,'type':_0x1e2749,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x40e6ec,'createdAt':_0x2f956a?new Date(_0x2f956a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5442cb);});}}class rt extends _0x4104d6{['afterInit'](){const _0x2c185f=this['editor'],_0x55d5ff=_0x2c185f['plugins']['get']('TrackChangesEditing');if(_0x2c185f['plugins']['has']('IndentEditing')&&(_0x55d5ff['enableCommand']('indent'),_0x55d5ff['enableCommand']('outdent')),_0x2c185f['plugins']['has']('IndentBlock')){for(const _0xfd0180 of['indentBlock','outdentBlock'])_0x55d5ff['enableDefaultAttributesIntegration'](_0xfd0180);}const _0x11eb33=_0x2c185f['locale'];_0x55d5ff['registerBlockAttribute']('blockIndent'),_0x55d5ff['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x11eb33,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1e01=this['editor'],_0x4169c7=_0x1e1e01['locale'],_0x68bebd=_0x1e1e01['plugins']['get']('TrackChangesEditing');_0x68bebd['descriptionFactory']['registerDescriptionCallback'](_0x6423df=>{if('formatBlock'!=_0x6423df['type'])return;const {data:_0xb48f89}=_0x6423df;if(!_0xb48f89)return;if('indentBlock'!=_0xb48f89['commandName']&&'outdentBlock'!=_0xb48f89['commandName'])return;const _0x342925=_0x6423df['getItems']()[0x0],_0xbe3266=_0x68bebd['descriptionFactory']['getItemLabel'](_0x342925);return'indentBlock'==_0xb48f89['commandName']?{'type':'format','content':o(_0x4169c7,'*Indent:*\x20%0',_0xbe3266)}:'outdentBlock'==_0xb48f89['commandName']?{'type':'format','content':o(_0x4169c7,'*Outdent:*\x20%0',_0xbe3266)}:void 0x0;});}}class at extends _0x4104d6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4104d6{['afterInit'](){const _0x1c3fdc=this['editor'];if(!_0x1c3fdc['plugins']['has']('LinkEditing'))return;const _0xd393c2=_0x1c3fdc['plugins']['get']('TrackChangesEditing'),_0x5bafc2=_0x1c3fdc['commands']['get']('link');_0xd393c2['enableDefaultAttributesIntegration']('link'),_0xd393c2['enableDefaultAttributesIntegration']('unlink'),_0xd393c2['registerInlineAttribute']('linkHref');for(const _0x6b6821 of _0x5bafc2['manualDecorators'])_0xd393c2['registerInlineAttribute'](_0x6b6821['id']),_0xd393c2['descriptionFactory']['registerAttributeLabel'](_0x6b6821['id'],'link\x20('+_0x6b6821['label']['toLowerCase']()+')');_0xd393c2['descriptionFactory']['registerDescriptionCallback'](_0x51cff6=>{if('attribute'!=_0x51cff6['type'])return;const {data:_0x3ab8d9}=_0x51cff6;if(!_0x3ab8d9||'linkHref'!=_0x3ab8d9['key'])return;const _0x1d5426=_0x3ab8d9['newValue'],_0x49ccd3=_0x1c3fdc['locale'];return{'type':'format','content':null==_0x1d5426?o(_0x49ccd3,'*Remove\x20link*'):o(_0x49ccd3,'*Set\x20link:*\x20%0','\x22'+_0x1d5426+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d01a1=this['editor'],_0x4dcaa7=_0x1d01a1['locale'];_0x1d01a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x479571=>{if('formatInline'!=_0x479571['type'])return;const {data:_0x39c113}=_0x479571;if(_0x39c113){if('link'==_0x39c113['commandName']){const _0x4aee56=_0x39c113['commandParams'][0x0];return{'type':'format','content':o(_0x4dcaa7,'*Set\x20link:*\x20%0','\x22'+_0x4aee56+'\x22')};}return'unlink'==_0x39c113['commandName']?{'type':'format','content':o(_0x4dcaa7,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4104d6{['afterInit'](){const _0x2ad8b7=this['editor'],_0x9c2cb3=_0x2ad8b7['locale'];if(!_0x2ad8b7['plugins']['has']('LegacyListEditing'))return;const _0x3af6a5=_0x2ad8b7['plugins']['get']('TrackChangesEditing'),_0x4bae29=_0x2ad8b7['plugins']['has']('LegacyTodoListEditing');function _0x430377(_0x45b5ba){return()=>{const _0x5c0de4=_0x2ad8b7['model']['document']['selection'],_0x29f8a1=_0x2ad8b7['commands']['get'](_0x45b5ba);if(_0x29f8a1['value'])return void _0x2ad8b7['execute']('paragraph',{});const _0x10b228=_0x45b5ba['slice'](0x0,-0x4),_0x42a664=function(_0x1eadb2,_0x4a8810,_0x24f15d){let _0x3d3cd0=Array['from'](_0x1eadb2)['filter'](_0xc26849=>function(_0x416172,_0x582a5b){return _0x582a5b['checkChild'](_0x416172['parent'],'listItem')&&!_0x582a5b['isObject'](_0x416172);}(_0xc26849,_0x24f15d));_0x3d3cd0=_0x3d3cd0['filter'](_0x115686=>!_0x115686['is']('element','listItem')||_0x115686['getAttribute']('listType')!=_0x4a8810);const _0x335174=new Set();for(const _0xb3ac62 of _0x3d3cd0)_0xb3ac62['is']('element','listItem')?_0x335174['add'](me(_0xb3ac62)):_0x335174['add'](_0xb3ac62);return Array['from'](_0x335174);}(_0x5c0de4['getSelectedBlocks'](),_0x10b228,_0x2ad8b7['model']['schema']);_0x2ad8b7['model']['change'](()=>{for(const _0x1c4d5a of _0x42a664)_0x3af6a5['markBlockFormat'](_0x1c4d5a,{'commandName':_0x45b5ba,'commandParams':[{'forceValue':!_0x29f8a1['value']}],'formatGroupId':'blockName'},fe(_0x1c4d5a));});};}function _0x12589a(_0x36609b){return()=>{const _0x48f068=function(_0x43d749){let _0x1f17d8=Array['from'](_0x43d749);const _0x18f889=_0x1f17d8['findIndex'](_0x5c2a39=>'listItem'!=_0x5c2a39['name']);return _0x18f889>-0x1&&(_0x1f17d8=_0x1f17d8['slice'](0x0,_0x18f889)),_0x1f17d8;}(_0x2ad8b7['model']['document']['selection']['getSelectedBlocks']()),_0x511242=_0x2ad8b7['model']['createRange'](_0x2ad8b7['model']['createPositionAt'](_0x48f068[0x0],'before'),_0x2ad8b7['model']['createPositionAt'](_0x48f068[_0x48f068['length']-0x1],'end'));_0x2ad8b7['model']['change'](()=>{_0x3af6a5['markBlockFormat'](_0x511242,{'commandName':_0x36609b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x329b17){const _0x4ca292=new Set();for(const _0x1e1db9 of _0x329b17){let _0x321c09=_0x1e1db9['nextSibling'];for(;_0x321c09&&_0x321c09['getAttribute']('listIndent')>_0x1e1db9['getAttribute']('listIndent');)_0x4ca292['add'](_0x321c09),_0x321c09=_0x321c09['nextSibling'];}return Array['from'](_0x4ca292);}(_0x48f068));});};}_0x3af6a5['enableCommand']('numberedList',_0x430377('numberedList')),_0x3af6a5['enableCommand']('bulletedList',_0x430377('bulletedList')),_0x4bae29&&_0x3af6a5['enableCommand']('todoList',_0x430377('todoList')),_0x3af6a5['enableCommand']('indentList',_0x12589a('indentList')),_0x3af6a5['enableCommand']('outdentList',_0x12589a('outdentList')),_0x4bae29&&_0x3af6a5['enableCommand']('checkTodoList',()=>{const _0x3178b0=_0x2ad8b7['commands']['get']('checkTodoList'),_0x332ea2=Array['from'](_0x3178b0['_selectedElements']);_0x332ea2['filter'](_0x1b1940=>_0x1b1940['getAttribute']('todoListChecked')!=_0x3178b0['value']),_0x2ad8b7['model']['change'](()=>{for(const _0x171adf of _0x332ea2)_0x3af6a5['markBlockFormat'](_0x171adf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3178b0['value']}]});});}),_0x3af6a5['descriptionFactory']['registerElementLabel']('listItem',_0xf07770=>o(_0x9c2cb3,'ELEMENT_LIST_ITEM',_0xf07770)),_0x3af6a5['descriptionFactory']['registerDescriptionCallback'](_0x5e28e3=>{if('formatBlock'!=_0x5e28e3['type']&&'formatInline'!=_0x5e28e3['type'])return;const {data:_0x470db0}=_0x5e28e3;if(_0x470db0){if('numberedList'==_0x470db0['commandName']||'bulletedList'==_0x470db0['commandName']||'todoList'==_0x470db0['commandName'])switch(_0x470db0['commandName']['replace']('List','')){case'bulleted':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x470db0['commandName'])return{'type':'format','content':o(_0x9c2cb3,'*Indent:*\x20%0',o(_0x9c2cb3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x470db0['commandName'])return{'type':'format','content':o(_0x9c2cb3,'*Outdent:*\x20%0',o(_0x9c2cb3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x470db0['commandName'])return _0x470db0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9c2cb3,'*Check\x20item*')}:{'type':'format','content':o(_0x9c2cb3,'*Uncheck\x20item*')};}function _0x1dec63(_0x330ede){return{'type':'format','content':o(_0x9c2cb3,'*Change\x20to:*\x20%0',_0x330ede)};}});}}function me(_0x335c71){const _0x2da9fa=_0x335c71['getAttribute']('listIndent');if(0x0==_0x2da9fa)return _0x335c71;let _0x1b493a=_0x335c71;for(;_0x335c71['previousSibling']&&_0x335c71['previousSibling']['is']('element','listItem');){const _0x49157c=_0x335c71['previousSibling']['getAttribute']('listIndent');if(_0x49157c==_0x2da9fa)_0x1b493a=_0x335c71['previousSibling'];else{if(_0x49157c<_0x2da9fa)break;}_0x335c71=_0x335c71['previousSibling'];}return _0x1b493a;}function fe(_0x223a86){const _0x4ea781=[];if(_0x223a86['is']('element','listItem')&&_0x223a86['getAttribute']('listIndent')>0x0){let _0x198c58=_0x223a86['nextSibling'];for(;_0x198c58&&'listItem'==_0x198c58['name']&&_0x198c58['getAttribute']('listIndent')==_0x223a86['getAttribute']('listIndent');)_0x4ea781['push'](_0x198c58),_0x198c58=_0x198c58['nextSibling'];}return _0x4ea781;}class K extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x333495=this['editor']['config']['get']('list.properties'),_0x3a6461=this['editor']['plugins']['get']('TrackChangesEditing');_0x333495['styles']&&_0x3a6461['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x333495['reversed']&&_0x3a6461['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x333495['startIndex']&&_0x3a6461['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a6461['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf21574,_0x134f24={}){const _0x2cc2f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2938ff=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2cc2f0['markMultiRangeBlockFormat'](_0x2938ff,{'commandName':'listStyle','commandParams':[{'type':_0x134f24['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x53a3a3,_0x134d7b={}){const _0x598fdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x224ea4=this['_getSuggestionBlocks'](_0x5691f9=>_0x5691f9['is']('element','listItem')&&'numbered'===_0x5691f9['getAttribute']('listType'));if(_0x224ea4['length']<0x1)return;const _0x9a649f=_0x224ea4['map'](_0x281bb7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x281bb7,'before'),this['editor']['model']['createPositionAt'](_0x281bb7,0x0)));this['editor']['model']['change'](()=>{_0x598fdb['markMultiRangeBlockFormat'](_0x9a649f,{'commandName':'listReversed','commandParams':[{'reversed':_0x134d7b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x173b9d,_0x5792a0={}){const _0x2644e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5543a2=this['_getSuggestionBlocks'](_0x587131=>_0x587131['is']('element','listItem')&&'numbered'===_0x587131['getAttribute']('listType'));if(_0x5543a2['length']<0x1)return;const _0x44d018=_0x5543a2['map'](_0x180699=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x180699,'before'),this['editor']['model']['createPositionAt'](_0x180699,0x0)));this['editor']['model']['change'](()=>{_0x2644e8['markMultiRangeBlockFormat'](_0x44d018,{'commandName':'listStart','commandParams':[{'startIndex':_0x5792a0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x90f9fc){if('formatBlock'!=_0x90f9fc['type']&&'formatInline'!=_0x90f9fc['type'])return;const _0x4fb09d=this['editor']['locale'],{data:_0x527d88}=_0x90f9fc;if(!_0x527d88)return;let _0x2659c2,_0x252cf1;switch(_0x527d88['commandName']){case'listStyle':_0x2659c2='*Change\x20to:*\x20%0',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2,o(_0x4fb09d,this['_getTranslationKeyForListStyle'](_0x527d88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2659c2=_0x527d88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2)};break;case'listStart':_0x2659c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2,_0x527d88['commandParams'][0x0]['startIndex'])};}return _0x252cf1;}['_getSuggestionBlocksForListStyle'](){const _0x24ab80=this['editor']['plugins']['get']('LegacyListUtils');let _0x54e4ac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x54e4ac[0x0]?.['is']('element','listItem')&&_0x54e4ac['unshift'](..._0x24ab80['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x54e4ac[_0x54e4ac['length']-0x1]?.['is']('element','listItem')&&_0x54e4ac['push'](..._0x24ab80['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x54e4ac=[...new Set(_0x54e4ac)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x54e4ac=_0x54e4ac['filter'](_0x32c433=>_0x32c433['is']('element','listItem'))),_0x54e4ac;}['_getSuggestionBlocks'](_0x4f2fae){const _0x3d1fad=this['editor']['plugins']['get']('LegacyListUtils');let _0x524ff6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4f2fae)['map'](_0xbd59a8=>{const _0x4dbbe0=this['editor']['model']['createPositionAt'](_0xbd59a8,0x0);return[..._0x3d1fad['getSiblingNodes'](_0x4dbbe0,'backward'),..._0x3d1fad['getSiblingNodes'](_0x4dbbe0,'forward')];})['flat']();return _0x524ff6=[...new Set(_0x524ff6)],_0x524ff6;}['_getTranslationKeyForListStyle'](_0x3fdd33){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3fdd33)||'default')['toUpperCase']()+'_LIST_'+_0x3fdd33['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4104d6{['afterInit'](){const _0x42b400=this['editor'];if(!_0x42b400['plugins']['has']('MediaEmbedEditing'))return;const _0x4ee8ff=_0x42b400['plugins']['get']('TrackChangesEditing'),_0x4cde29=_0x42b400['locale'];_0x4ee8ff['enableCommand']('mediaEmbed'),_0x4ee8ff['descriptionFactory']['registerElementLabel']('media',_0x2674a0=>o(_0x4cde29,'ELEMENT_MEDIA',_0x2674a0)),_0x42b400['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x490b6d,{writer:_0x15c911,options:_0x38d121})=>{if(_0x38d121['showSuggestionHighlights'])return _0x15c911['createEmptyElement']('div');},'converterPriority':'high'}),_0x42b400['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4047fa,_0x3c0218,_0x58b9b9)=>{_0x58b9b9['options']['showSuggestionHighlights']&&_0x4047fa['stop']();},{'priority':'high'});}}class gt extends _0x4104d6{['afterInit'](){const _0x1bbec4=this['editor'];_0x1bbec4['plugins']['has']('MentionEditing')&&_0x1bbec4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4104d6{['afterInit'](){const _0xca56e9=this['editor'],_0x6b196=_0xca56e9['plugins']['get']('TrackChangesEditing');_0xca56e9['plugins']['has']('MultiLevelList')&&(_0x6b196['enableDefaultAttributesIntegration']('multiLevelList'),_0x6b196['registerBlockAttribute']('listMarkerStyle'),_0x6b196['descriptionFactory']['registerDescriptionCallback'](_0x2dce08=>this['handleDescriptions'](_0x2dce08)));}['handleDescriptions'](_0x3b94d1){const _0xe89e5b=this['editor']['locale'],{data:_0x5f1eab}=_0x3b94d1,_0x15f017={'type':'format','content':''};if(_0x5f1eab&&'listMarkerStyle'==_0x5f1eab['key']){if(!_0x5f1eab['oldValue'])return{'type':'format','content':o(_0xe89e5b,'*Set\x20format:*\x20%0',o(_0xe89e5b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f1eab['newValue']+')'};if(!_0x5f1eab['newValue']){let _0x504c77=_0x3b94d1['head'];for(;_0x504c77;){if(_0x504c77['data']&&'listType'==_0x504c77['data']['key']&&_0x504c77['data']['newValue'])return _0x15f017;_0x504c77=_0x504c77['next'];}return{'type':'format','content':o(_0xe89e5b,'*Remove\x20format:*\x20%0',o(_0xe89e5b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f1eab['oldValue']+')'};}}}}class mt extends _0x4104d6{['afterInit'](){const _0xed0c62=this['editor'];if(!_0xed0c62['plugins']['has']('PageBreakEditing'))return;_0xed0c62['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5cb40a=_0xed0c62['plugins']['get']('TrackChangesEditing'),_0x4f1da6=_0xed0c62['locale'];_0x5cb40a['descriptionFactory']['registerElementLabel']('pageBreak',_0x195489=>o(_0x4f1da6,'ELEMENT_PAGE_BREAK',_0x195489));}}class dt extends _0x4104d6{['afterInit'](){const _0x38d1a8=this['editor'];if(!_0x38d1a8['plugins']['has']('Paragraph'))return;const _0x227235=_0x38d1a8['locale'],_0x5a8cfb=_0x38d1a8['plugins']['get']('TrackChangesEditing');_0x5a8cfb['descriptionFactory']['registerElementLabel']('paragraph',_0xbeb8b3=>o(_0x227235,'ELEMENT_PARAGRAPH',_0xbeb8b3)),_0x5a8cfb['enableDefaultAttributesIntegration']('paragraph'),_0x5a8cfb['enableCommand']('insertParagraph'),_0x38d1a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x38d1a8),{'priority':'highest'}),_0x38d1a8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x173d49,_0x6b1a4d,_0x260214)=>{_0x260214['options']['showSuggestionHighlights']&&nr(_0x38d1a8,{'showActiveMarker':!0x1})(_0x173d49,_0x6b1a4d,_0x260214);},{'priority':'highest'});const _0x4bef5d=_0x5a8cfb['descriptionFactory'];_0x4bef5d['registerDescriptionCallback'](_0x5dc11e=>{if('insertion'!==_0x5dc11e['type'])return;const {start:_0x1b2bc6,end:_0x4b71c5}=_0x5dc11e['getFirstRange']();if(!_0x1b2bc6['isTouching'](_0x4b71c5)||!_0x1b2bc6['nodeAfter'])return;const _0x470ac8=_0x38d1a8['model']['schema'],_0x47af75=_0x1b2bc6['nodeAfter'];return _0x470ac8['isBlock'](_0x47af75)&&!_0x470ac8['isLimit'](_0x47af75)&&_0x470ac8['checkChild'](_0x47af75,'$text')?{'type':'insertion','content':o(_0x227235,'*Insert:*\x20%0',_0x4bef5d['getItemLabel'](_0x47af75,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4230fc=this['editor'],_0x2318e6=_0x4230fc['locale'];_0x4230fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d264=>{if('formatBlock'!=_0x58d264['type'])return;const {data:_0x4589f3}=_0x58d264;return _0x4589f3&&'paragraph'==_0x4589f3['commandName']?{'type':'format','content':o(_0x2318e6,'*Change\x20to:*\x20%0',o(_0x2318e6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x242da2,{showActiveMarker:_0x514d7f=!0x0}={}){return(_0x2595e3,_0x2ca8b9,_0x111074)=>{const _0x29cc43=_0x242da2['plugins']['get']('TrackChangesEditing'),_0xb6cfd9=_0x2ca8b9['markerRange']['start'],_0x3e8786=_0x2ca8b9['markerRange']['end'],_0x118258=_0x242da2['model']['schema'];if(!_0xb6cfd9['isTouching'](_0x3e8786)||!_0xb6cfd9['nodeAfter'])return;const _0x3e473d=_0xb6cfd9['nodeAfter'];if(_0x118258['isBlock'](_0x3e473d)&&!_0x118258['isLimit'](_0x3e473d)&&_0x118258['checkChild'](_0x3e473d,'$text')){if(!_0x111074['consumable']['consume'](_0x2ca8b9['markerRange'],_0x2595e3['name']))return;const _0x1e0a1a=_0x111074['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2d4ada=_0x111074['mapper']['toViewPosition'](_0x3e8786);_0x514d7f&&_0x29cc43['activeMarkers']['includes'](_0x2ca8b9['markerName'])&&_0x111074['writer']['addClass']('ck-suggestion-marker--active',_0x1e0a1a),_0x111074['writer']['insert'](_0x2d4ada,_0x1e0a1a),_0x111074['mapper']['bindElementToMarker'](_0x1e0a1a,_0x2ca8b9['markerName']);}};}class pt extends _0x4104d6{['afterInit'](){const _0x5ccd72=this['editor'];if(!_0x5ccd72['plugins']['has']('RemoveFormatEditing'))return;_0x5ccd72['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54d5f1=this['editor'];_0x54d5f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1c1f=>{if('formatBlock'!=_0x1a1c1f['type']&&'formatInline'!=_0x1a1c1f['type'])return;const {data:_0x5b51b1}=_0x1a1c1f;return _0x5b51b1&&'removeFormat'==_0x5b51b1['commandName']?{'type':'format','content':o(_0x54d5f1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4104d6{['afterInit'](){const _0x11c4d0=this['editor'];if(!_0x11c4d0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa988a1=_0x11c4d0['plugins']['get']('TrackChangesEditing');_0xa988a1['enableCommand']('goToPreviousRestrictedEditingException'),_0xa988a1['enableCommand']('goToNextRestrictedEditingException');const _0x2bbcd4=_0x11c4d0['plugins']['get']('RestrictedEditingModeEditing');_0x2bbcd4['enableCommand']('trackChanges'),_0x2bbcd4['enableCommand']('acceptSuggestion'),_0x2bbcd4['enableCommand']('discardSuggestion'),_0x2bbcd4['enableCommand']('acceptAllSuggestions'),_0x2bbcd4['enableCommand']('discardAllSuggestions'),_0x2bbcd4['enableCommand']('acceptSelectedSuggestions'),_0x2bbcd4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4104d6{static get['requires'](){return[_0x291438];}['init'](){const _0x4d02af=this['editor'],_0x3f84b6=_0x4d02af['plugins']['get']('TrackChangesEditing');_0x3f84b6['enableCommand']('shiftEnter'),_0x4d02af['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4d02af),{'priority':'high'}),_0x4d02af['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4d02af),{'priority':'high'}),_0x4d02af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x595609,_0x4de6f4,_0x2e8ae5)=>{_0x2e8ae5['options']['showSuggestionHighlights']&&de(_0x4d02af,{'showActiveMarker':!0x1})(_0x595609,_0x4de6f4,_0x2e8ae5);}),_0x3f84b6['descriptionFactory']['registerElementLabel']('softBreak',_0x3d3de3=>o(_0x4d02af['locale'],'ELEMENT_LINE_BREAK',_0x3d3de3));}}function de(_0x46ab62,{showActiveMarker:_0x5d4045=!0x0}={}){return(_0x4d01bb,_0x47f832,_0x194826)=>{const _0x3de751=_0x46ab62['plugins']['get']('TrackChangesEditing');if(!_0x194826['consumable']['test'](_0x47f832['markerRange'],_0x4d01bb['name']))return;const _0x3f0dc7=_0x46ab62['model'];for(const _0x39bbc3 of _0x47f832['markerRange']['getItems']()){if(!_0x39bbc3['is']('element','softBreak'))continue;const _0x5aff15='deletion'==_0x47f832['markerName']['split'](':')[0x1]?'merge':'split',_0x4742d4=_0x194826['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5aff15}),_0x43d849=_0x194826['mapper']['toViewPosition'](_0x3f0dc7['createPositionBefore'](_0x39bbc3));_0x5d4045&&_0x3de751['activeMarkers']['includes'](_0x47f832['markerName'])&&_0x194826['writer']['addClass']('ck-suggestion-marker--active',_0x4742d4),_0x194826['writer']['insert'](_0x43d849,_0x4742d4),_0x194826['mapper']['bindElementToMarker'](_0x4742d4,_0x47f832['markerName']);}};}class wt extends _0x4104d6{['afterInit'](){const _0x399a89=this['editor'],_0x19022=_0x399a89['model'],_0x1c5775=_0x399a89['locale'];if(!_0x399a89['plugins']['has']('StandardEditingModeEditing'))return;const _0x2acd73=_0x399a89['plugins']['get']('TrackChangesEditing'),_0xfc146d='restrictedEditingException',_0x4fba31=_0x399a89['commands']['get'](_0xfc146d);_0x2acd73['enableCommand'](_0xfc146d,(_0x2d27e4,_0x1c0aed={})=>{const _0xafd260=_0x19022['document']['selection'];if(_0xafd260['isCollapsed'])return void _0x2d27e4(_0x1c0aed);const _0x24189c=void 0x0!==_0x1c0aed['forceValue']?_0x1c0aed['forceValue']:!_0x4fba31['value'];_0x19022['change'](()=>{const _0x578468=Array['from'](_0xafd260['getRanges']());for(const _0x52eb4e of _0x578468){const _0x23eff4=_0x24189c?[_0x52eb4e]:io(_0xfc146d,_0x52eb4e,_0x19022);for(const _0x570425 of _0x23eff4)_0x2acd73['markInlineFormat'](_0x570425,{'commandName':_0xfc146d,'commandParams':[{'forceValue':_0x24189c}]});}});}),_0x2acd73['descriptionFactory']['registerDescriptionCallback'](_0x39b889=>{if('formatBlock'!=_0x39b889['type']&&'formatInline'!=_0x39b889['type'])return;const {data:_0x20ea46}=_0x39b889;return _0x20ea46&&_0x20ea46['commandName']==_0xfc146d?_0x20ea46['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c5775,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1c5775,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4104d6{['afterInit'](){const _0x2da116=this['editor'];if(!_0x2da116['plugins']['has']('Style')||!_0x2da116['plugins']['has']('DataSchema'))return;const _0x1e3c1b=_0x2da116['plugins']['get']('TrackChangesEditing'),_0x8e91af=_0x2da116['locale'],_0x473fe=_0x2da116['config']['get']('style')||{},_0xec482c=_0x2da116['plugins']['get']('GeneralHtmlSupport'),_0x4e2c9f=_0x2da116['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2da116['plugins']['get']('DataSchema'),_0x473fe['definitions']);_0x1e3c1b['enableDefaultAttributesIntegration']('style');const _0x1fd7df=new Set();for(const _0x511ad1 of _0x4e2c9f['block']){const _0x488823=_0xec482c['getGhsAttributeNameForElement'](_0x511ad1['element']);_0x1fd7df['add'](_0x488823);}const _0x2494cc=new Set();for(const _0x550770 of _0x4e2c9f['inline']){const _0x19da0a=_0xec482c['getGhsAttributeNameForElement'](_0x550770['element']);_0x2494cc['add'](_0x19da0a);for(const _0x6b63a1 of _0x550770['ghsAttributes'])_0x2494cc['add'](_0x6b63a1);}for(const _0x539971 of _0x1fd7df)_0x1e3c1b['registerBlockAttribute'](_0x539971),_0x1e3c1b['descriptionFactory']['registerAttributeLabel'](_0x539971,o(_0x8e91af,'FORMAT_STYLE'));for(const _0x4d4bdd of _0x2494cc)_0x1e3c1b['registerInlineAttribute'](_0x4d4bdd),_0x1e3c1b['descriptionFactory']['registerAttributeLabel'](_0x4d4bdd,o(_0x8e91af,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c720=this['editor'],_0xc1ef67=_0x27c720['locale'];_0x27c720['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f6eea=>{if('formatBlock'!=_0x6f6eea['type']&&'formatInline'!=_0x6f6eea['type'])return;const {data:_0xcc2e47}=_0x6f6eea;return _0xcc2e47&&'style'===_0xcc2e47['commandName']?_0xcc2e47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc1ef67,'*Set\x20format:*\x20%0',_0xcc2e47['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc1ef67,'*Remove\x20format:*\x20%0',_0xcc2e47['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4104d6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x35196f){super(_0x35196f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a457b=this['editor'],_0x13e98f=_0x1a457b['model']['document']['selection'];if(!_0x1a457b['plugins']['has']('TableEditing'))return;const _0x120aa4=_0x1a457b['locale'],_0x91d880=_0x1a457b['plugins']['get']('TrackChangesEditing'),_0x289501=_0x1a457b['plugins']['get']('TableUtils');_0x91d880['descriptionFactory']['registerElementLabel']('table',_0x131ac5=>o(_0x120aa4,'ELEMENT_TABLE',_0x131ac5)),this['_setupColumnsRowsFixing'](),_0x91d880['enableCommand']('insertTable'),_0x91d880['enableCommand']('selectTableRow'),_0x91d880['enableCommand']('selectTableColumn');for(const _0x327af9 of['insertTableRowAbove','insertTableRowBelow']){const _0x5c4af8=_0x1a457b['commands']['get'](_0x327af9);_0x91d880['enableCommand'](_0x327af9,_0x107701=>{_0x1a457b['model']['change'](_0x3dce05=>{_0x107701();const _0x2732f1='above'===_0x5c4af8['order'],_0x6e87e4=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x26e72a=_0x289501['getRowIndexes'](_0x6e87e4),_0x5957bb=_0x2732f1?_0x26e72a['first']-0x1:_0x26e72a['last']+0x1,_0x145dd4=_0x6e87e4[0x0]['findAncestor']('table'),_0x34e4e2=_0x289501['createTableWalker'](_0x145dd4,{'startRow':_0x5957bb,'endRow':_0x5957bb}),_0x504075=Array['from'](_0x34e4e2)['map'](_0x472490=>_0x3dce05['createRangeOn'](_0x472490['cell']));_0x91d880['markMultiRangeInsertion'](_0x504075,'tableRow');});});}for(const _0x7794b6 of['insertTableColumnLeft','insertTableColumnRight']){const _0xaf0a9f=_0x1a457b['commands']['get'](_0x7794b6);_0x91d880['enableCommand'](_0x7794b6,_0x3ef804=>{_0x1a457b['model']['change'](_0x591e43=>{_0x3ef804();const _0x46c6f9='left'===_0xaf0a9f['order'],_0x3067e4=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x161833=_0x289501['getColumnIndexes'](_0x3067e4),_0x2cd9a6=_0x46c6f9?_0x161833['first']-0x1:_0x161833['last']+0x1,_0x297cac=_0x3067e4[0x0]['findAncestor']('table'),_0x39891b=_0x289501['createTableWalker'](_0x297cac,{'startRow':0x0,'column':_0x2cd9a6,'includeAllSlots':!0x1}),_0x3cc9b5=Array['from'](_0x39891b)['map'](_0x2b4cb7=>_0x591e43['createRangeOn'](_0x2b4cb7['cell']));_0x91d880['markMultiRangeInsertion'](_0x3cc9b5,'tableColumn');});});}for(const _0xe5d89d of['removeTableRow','removeTableColumn']){const _0x23131c=_0xe5d89d['substr'](0xb),_0x1da058=_0x23131c['toLowerCase'](),_0x1aec82=_0x1da058['substr'](0x0,0x3)+'span',_0x4323b8='table'+_0x23131c,_0x48f100='min'+_0x23131c,_0x46692b='max'+_0x23131c;_0x91d880['enableCommand'](_0xe5d89d,()=>{_0x1a457b['model']['change'](_0x2745d7=>{const _0x29379e=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x3fb6f0=_0x29379e[0x0]['findAncestor']('table');let _0x1344b2;if('removeTableRow'==_0xe5d89d){const _0x266a43=_0x289501['getRowIndexes'](_0x29379e);_0x1344b2={'startRow':_0x266a43['first'],'endRow':_0x266a43['last'],'includeAllSlots':!0x0};}else{const _0x4c340d=_0x289501['getColumnIndexes'](_0x29379e);_0x1344b2={'startColumn':_0x4c340d['first'],'endColumn':_0x4c340d['last'],'includeAllSlots':!0x0};}const _0x1cee4a=_0x289501['createTableWalker'](_0x3fb6f0,_0x1344b2),_0x1d1f0e=Array['from'](_0x1cee4a)['map'](({cell:_0x1713f6})=>_0x1713f6),_0x52510d=Ee(_0x1d1f0e['filter'](_0x1de3dc=>_0x1de3dc['hasAttribute'](_0x1aec82))),_0x555e72=Ee(_0x1d1f0e['filter'](_0x3be64f=>!_0x3be64f['hasAttribute'](_0x1aec82)))['map'](_0x4b7d4d=>_0x2745d7['createRangeOn'](_0x4b7d4d)),_0xf06f2=_0x91d880['markMultiRangeDeletion'](_0x555e72,_0x4323b8);if(_0xf06f2&&('tableRow'==_0xf06f2['subType']||'tableColumn'==_0xf06f2['subType'])){const _0x52be2c=this['_getSuggestionCoords'](_0xf06f2);for(const _0x380ed2 of _0x52510d){const _0x1de5e3=_0x2745d7['createRangeOn'](_0x380ed2),_0xbd7e05=_0x289501['getCellLocation'](_0x380ed2),_0x557631=_0x380ed2['getAttribute'](_0x1aec82)-0x1,_0x563dcb=_0x52be2c[_0x48f100],_0x54ae2a=_0x52be2c[_0x46692b];_0x563dcb<=_0xbd7e05[_0x1da058]&&_0xbd7e05[_0x1da058]+_0x557631<=_0x54ae2a&&_0xf06f2['addRange'](_0x1de5e3);}}});});}function _0x108234(_0x1ce55b){const _0x2101e0=Array['from'](_0x13e98f['getRanges']())['map'](_0x5d55cd=>_0xe90ba7['fromRange'](_0x5d55cd));_0x1a457b['model']['change'](_0x33f631=>{const _0x498c6d=_0x33f631['batch'];_0x1ce55b=_0x1ce55b['filter'](_0x42e007=>'$graveyard'!=_0x42e007['root']['rootName']),_0x33f631['setSelection'](_0x1ce55b),_0x1a457b['commands']['get']('removeTableRow')['refresh'](),_0x1a457b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a457b['model']['enqueueChange'](()=>{_0x1a457b['model']['enqueueChange'](_0x498c6d,_0x646c55=>{const _0x46a36c=_0x2101e0['filter'](_0x470c09=>'$graveyard'!=_0x470c09['root']['rootName']);_0x46a36c['length']>0x0&&_0x646c55['setSelection'](_0x46a36c);for(const _0x1015c2 of _0x2101e0)_0x1015c2['detach']();});});});}function _0x26064a(_0x2a4def){_0x1a457b['model']['change'](_0xfba3c5=>{const _0x289f5a=Array['from'](_0x13e98f['getRanges']())['map'](_0x12b211=>_0xe90ba7['fromRange'](_0x12b211)),_0x435cca=[];for(const _0x146c2b of _0x2a4def)for(const _0x4b68ff of _0x146c2b['getItems']({'shallow':!0x0}))_0x435cca['push'](_0x4b68ff);for(const _0xe17c26 of _0x435cca)'$graveyard'!=_0xe17c26['root']['rootName']&&(_0xfba3c5['setSelection'](_0xfba3c5['createPositionAt'](_0xe17c26,0x0)),_0x1a457b['commands']['get']('removeTableColumn')['refresh'](),_0x1a457b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e86dd=_0x289f5a['filter'](_0x1d04c4=>'$graveyard'!=_0x1d04c4['root']['rootName']);_0x3e86dd['length']>0x0&&_0xfba3c5['setSelection'](_0x3e86dd);for(const _0x422a47 of _0x289f5a)_0x422a47['detach']();});}function _0x1f2e41(_0x85051c,_0x2eb2ff){return _0x2eb2ff['every'](_0x192e6c=>_0x85051c['some'](_0x1fc29e=>_0x1fc29e['end']['isEqual'](_0x192e6c['start'])||_0x192e6c['end']['isEqual'](_0x1fc29e['start'])));}function _0x152388(_0x18a7ee,_0x24df8d){return!_0x18a7ee['some'](_0x476a78=>_0x24df8d['some'](_0x12fa59=>_0x476a78['isIntersecting'](_0x12fa59)))&&_0x18a7ee['some'](_0x3da2f6=>_0x24df8d['some'](_0x3c2c60=>_0x3da2f6['end']['isTouching'](_0x3c2c60['start'])));}_0x1a457b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e17d4,_0xa6c1d8,_0x5aea9c)=>{if(!_0x5aea9c['options']['showSuggestionHighlights'])return;const _0x5be8d1=_0xa6c1d8['item'];if(!_0x5be8d1)return;const _0x26acd5=_0x5aea9c['mapper']['toViewElement'](_0x5be8d1);function _0x457227(_0x4a5552){return Array['isArray'](_0x4a5552)?_0x4a5552:[_0x4a5552];}_0x26acd5&&'tableCell'===_0x5be8d1['name']&&_0x51a40e(_0x26acd5,_0x5aea9c['writer'],(_0x350b38,_0x36262a,_0x393ee0)=>_0x393ee0['addClass'](_0x457227(_0x36262a['classes']),_0x350b38),(_0x3ad175,_0x167f69,_0x31a11d)=>_0x31a11d['removeClass'](_0x457227(_0x167f69['classes']),_0x3ad175));},{'priority':'highest'}),_0x91d880['descriptionFactory']['registerDescriptionCallback'](_0x2a720f=>{if('insertion'!=_0x2a720f['type']&&'deletion'!=_0x2a720f['type'])return;const _0x56af57=_0x2a720f['getContainedElement']();if(null!=_0x56af57&&_0x56af57['is']('element','table')){if('insertion'==_0x2a720f['type']){const _0x4cf95f=_0x2a720f['getItems']()['filter'](_0x340bd1=>_0x340bd1['is']('$textProxy'))['map'](_0x51c29d=>_0x51c29d['data']);if(_0x4cf95f['length'])return{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cf95f['join']('\x20')+'\x22'))};}if('deletion'==_0x2a720f['type']){const _0x67c8eb=_0x2a720f['getItems']()['filter'](_0x3115d6=>_0x3115d6['is']('$textProxy'))['map'](_0x228d9c=>_0x228d9c['data']);if(_0x67c8eb['length'])return{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x67c8eb['join']('\x20')+'\x22'))};}}}),_0x91d880['descriptionFactory']['registerDescriptionCallback'](_0x3cc6d0=>{if('tableRow'==_0x3cc6d0['subType']){const _0x3381d2=_0x3cc6d0['getItems']()['filter'](_0x32d499=>_0x32d499['is']('$textProxy'))['map'](_0x580a72=>_0x580a72['data']),_0x3faa6f=this['_getSuggestionCoords'](_0x3cc6d0),_0x2e538d=_0x3faa6f['maxRow']-_0x3faa6f['minRow']+0x1;if('insertion'==_0x3cc6d0['type'])return _0x3381d2['length']?{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e538d,'\x22'+_0x3381d2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW',_0x2e538d))};if('deletion'==_0x3cc6d0['type'])return _0x3381d2['length']?{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e538d,'\x22'+_0x3381d2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW',_0x2e538d))};}if('tableColumn'==_0x3cc6d0['subType']){const _0x188e30=_0x3cc6d0['getItems']()['filter'](_0x13d014=>_0x13d014['is']('$textProxy'))['map'](_0x38a375=>_0x38a375['data']),_0x146d26=this['_getSuggestionCoords'](_0x3cc6d0),_0x4b9626=_0x146d26['maxColumn']-_0x146d26['minColumn']+0x1;if('insertion'==_0x3cc6d0['type'])return _0x188e30['length']?{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b9626,'\x22'+_0x188e30['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN',_0x4b9626))};if('deletion'==_0x3cc6d0['type'])return _0x188e30['length']?{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b9626,'\x22'+_0x188e30['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN',_0x4b9626))};}}),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x108234),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x108234),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26064a),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26064a),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f2e41),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f2e41),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x152388),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x152388);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c0d09=this['editor'],_0xff6af2=_0x3c0d09['model']['document']['selection'];return(_0x23029b,_0x47869c)=>{_0x3c0d09['model']['change'](_0x13ef17=>{const {commandName:_0x2b1af6,commandParams:_0x447426}=_0x47869c;let _0x46b5a9=_0x23029b[0x0]['end']['nodeBefore'];_0x447426&&_0x447426[0x0]&&!0x1===_0x447426[0x0]['forceValue']&&(_0x46b5a9=_0x23029b[0x0]['start']['nodeAfter']);const _0x2e6b93=_0x13ef17['createRangeIn'](_0x46b5a9);if('$graveyard'==_0x2e6b93['root']['rootName'])return;const _0x177e82=Array['from'](_0xff6af2['getRanges']())['map'](_0x539d76=>_0xe90ba7['fromRange'](_0x539d76));_0x13ef17['setSelection'](_0x2e6b93),_0x3c0d09['commands']['get'](_0x2b1af6)['refresh'](),_0x447426['push']({'forceDefaultExecution':!0x0}),_0x3c0d09['execute'](_0x2b1af6,..._0x447426);const _0x1f85c4=_0x177e82['filter'](_0x127872=>'$graveyard'!=_0x127872['root']['rootName']);_0x1f85c4['length']>0x0&&_0x13ef17['setSelection'](_0x1f85c4);for(const _0x28eb9c of _0x177e82)_0x28eb9c['detach']();});};}['_getCoordsForCells'](_0x374b7a){const _0x4422c7=this['editor']['plugins']['get']('TableUtils');let _0x284eef=Number['MAX_SAFE_INTEGER'],_0x41e62d=Number['MIN_SAFE_INTEGER'],_0x154af6=Number['MAX_SAFE_INTEGER'],_0x1affb2=Number['MIN_SAFE_INTEGER'];for(const _0x166283 of _0x374b7a){if('$graveyard'==_0x166283['root']['rootName'])continue;const {row:_0x2ea082,column:_0x3c7621}=_0x4422c7['getCellLocation'](_0x166283),_0x6a1a77=_0x166283['hasAttribute']('rowspan')?_0x166283['getAttribute']('rowspan')-0x1:0x0,_0x5afe24=_0x166283['hasAttribute']('colspan')?_0x166283['getAttribute']('colspan')-0x1:0x0;_0x284eef=_0x2ea082<_0x284eef?_0x2ea082:_0x284eef,_0x41e62d=_0x2ea082+_0x6a1a77>_0x41e62d?_0x2ea082+_0x6a1a77:_0x41e62d,_0x154af6=_0x3c7621<_0x154af6?_0x3c7621:_0x154af6,_0x1affb2=_0x3c7621+_0x5afe24>_0x1affb2?_0x3c7621+_0x5afe24:_0x1affb2;}return{'minRow':_0x284eef,'maxRow':_0x41e62d,'minColumn':_0x154af6,'maxColumn':_0x1affb2};}['_setupColumnsRowsFixing'](){const _0xa0331c=this['editor'],_0x4900df=_0xa0331c['plugins']['get']('TrackChangesEditing'),_0x39d684=_0xa0331c['plugins']['get']('TableUtils');_0xa0331c['model']['document']['on']('change:data',()=>{const _0x598314=Array['from'](_0xa0331c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24a4f2,data:_0x3267c4}of _0x598314){const {group:_0x41ddb0,id:_0x3dcfb9,subType:_0x18ed45}=_0x4900df['_splitMarkerName'](_0x24a4f2);if('suggestion'!=_0x41ddb0)continue;if(null!=_0x3267c4['oldRange'])continue;const _0x52e9ff=_0x4900df['getSuggestion'](_0x3dcfb9);this['_tablePostFixingSubtypes']['includes'](_0x18ed45)&&this['_tableSuggestions']['add'](_0x52e9ff);}},{'priority':'low'});const _0x4f89e3=(_0x260770,_0x44871b)=>{let _0x5db9ba=!0x1;const _0x41a07a=_0x44871b['createRangeOn'](_0x260770),_0x4f7da6=_0x260770['findAncestor']('table'),_0x43ea56=_0x39d684['getCellLocation'](_0x260770);for(const _0x5770d5 of this['_tableSuggestions']){const _0x4ad45a=_0x5770d5['subType'],_0x4b0747=_0x4ad45a['startsWith']('tablePaste'),_0x43a707=_0x4ad45a['substr'](_0x4b0747?0xa:0x5),_0x2a8044=_0x43a707['toLowerCase'](),_0x463661=_0x2a8044['substr'](0x0,0x3)+'span',_0x519636='min'+_0x43a707,_0x578b94='max'+_0x43a707;if(!_0x5770d5['isInContent'])continue;if(_0x4f7da6!=_0x5770d5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5770d5['isIntersectingWithRange'](_0x41a07a))continue;const _0x331801=_0x260770['hasAttribute'](_0x463661)?_0x260770['getAttribute'](_0x463661)-0x1:0x0,_0xa1306d=this['_getSuggestionCoords'](_0x5770d5),_0x3d7ddd=_0xa1306d[_0x519636],_0x3f5531=_0xa1306d[_0x578b94];_0x3d7ddd<=_0x43ea56[_0x2a8044]&&_0x43ea56[_0x2a8044]+_0x331801<=_0x3f5531&&(_0x5770d5['addRange'](_0x41a07a),_0x5db9ba=!0x0);}return _0x5db9ba;};_0xa0331c['model']['document']['registerPostFixer'](_0x73767e=>{let _0x26b878=!0x1;for(const _0xc4a03a of _0xa0331c['model']['document']['differ']['getChanges']())if('insert'==_0xc4a03a['type']){if('tableRow'==_0xc4a03a['name']){for(const _0x202d54 of _0xc4a03a['position']['nodeAfter']['getChildren']())_0x26b878=_0x26b878||_0x4f89e3(_0x202d54,_0x73767e);}else'tableCell'==_0xc4a03a['name']&&(_0x26b878=_0x26b878||_0x4f89e3(_0xc4a03a['position']['nodeAfter'],_0x73767e));}return _0x26b878;});}['_getSuggestionCoords'](_0x4a3296){return this['_getCoordsForCells'](_0x4a3296['getRanges']()['map'](_0x41bb26=>_0x41bb26['start']['nodeAfter']));}}function Ee(_0xef91ff){return Array['from'](new Set(_0xef91ff)['values']());}class St extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x502c8b=this['editor'],_0x29c53f=_0x502c8b['model']['document']['selection'],_0x2acf89=_0x502c8b['locale'];if(!_0x502c8b['plugins']['has']('TableEditing'))return;const _0x5da756=_0x502c8b['plugins']['get']('TrackChangesEditing'),_0x20b166=_0x502c8b['plugins']['get']('TableUtils'),_0x4375de=_0x502c8b['plugins']['get'](jt);_0x4375de['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5da756['enableCommand']('mergeTableCells',()=>{const _0x6cb5b5=_0x20b166['getSelectionAffectedTableCells'](_0x502c8b['model']['document']['selection']);_0x502c8b['model']['change'](()=>{_0x5da756['markMultiRangeBlockFormat'](_0x6cb5b5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x502c8b['commands']['get']('mergeTableCells')['on']('execute',(_0x53cf4f,_0x28eb4c)=>{_0x502c8b['commands']['get']('trackChanges')['value']&&(_0x28eb4c['length']>0x0&&_0x28eb4c[_0x28eb4c['length']-0x1]&&_0x28eb4c[_0x28eb4c['length']-0x1]['forceDefaultExecution']||_0x5da756['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53cf4f['stop']());},{'priority':'highest'});for(const _0x1c00cc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a734d=_0x502c8b['commands']['get'](_0x1c00cc);_0x5da756['enableCommand'](_0x1c00cc,()=>{const _0x584d2f=_0x502c8b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29ce8b=>_0x29ce8b['is']('element','tableCell')),_0x4b2663=_0x5a734d['value'];_0x502c8b['model']['change'](()=>{_0x5da756['markMultiRangeBlockFormat']([_0x584d2f,_0x4b2663],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x56f32d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56d0f5=_0x502c8b['commands']['get'](_0x56f32d);_0x5da756['enableCommand'](_0x56f32d,()=>{const _0x57fd74=_0x20b166['getSelectionAffectedTableCells'](_0x502c8b['model']['document']['selection'])[0x0],_0x2fe099=_0x57fd74['findAncestor']('table'),{column:_0x5545d7,row:_0x398664}=_0x20b166['getCellLocation'](_0x57fd74);let _0x3c9109=[];if('horizontally'==_0x56d0f5['direction']){const _0x11059d=_0x20b166['createTableWalker'](_0x2fe099,{'startRow':_0x398664,'endRow':_0x398664,'includeAllSlots':!0x0});_0x3c9109=Array['from'](_0x11059d)['map'](_0x285481=>_0x285481['cell']);}else{const _0x35487f=_0x20b166['createTableWalker'](_0x2fe099,{'column':_0x5545d7,'includeAllSlots':!0x0});_0x3c9109=Array['from'](_0x35487f)['map'](_0x4e6a8a=>_0x4e6a8a['cell']);}_0x502c8b['model']['change'](_0x3ddc50=>{_0x5da756['markBlockFormat'](_0x3ddc50['createRangeOn'](_0x57fd74),{'commandName':_0x56f32d,'commandParams':[]},_0x3c9109,_0x56f32d);});});}_0x5da756['descriptionFactory']['registerDescriptionCallback'](_0x12b9a8=>{if('formatBlock'!=_0x12b9a8['type']&&'formatInline'!=_0x12b9a8['type'])return;const {data:_0x47535b}=_0x12b9a8;return _0x47535b&&'mergeTableCells'==_0x47535b['commandName']?{'type':'format','content':o(_0x2acf89,'*Merge\x20cells*')}:void 0x0;}),_0x5da756['descriptionFactory']['registerDescriptionCallback'](_0x33634b=>{if('formatBlock'!=_0x33634b['type']&&'formatInline'!=_0x33634b['type'])return;const {data:_0x5cba90}=_0x33634b;return _0x5cba90?'splitTableCellVertically'==_0x5cba90['commandName']?{'type':'format','content':o(_0x2acf89,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5cba90['commandName']?{'type':'format','content':o(_0x2acf89,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3572b3=_0x4375de['_acceptFormatSuggestionCallbackFactory']();for(const _0x4e5cf4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e5cf4,'accept',_0x3572b3);for(const _0x5a1637 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a1637,'accept',_0x3572b3);_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fbd55=>{_0x502c8b['model']['change'](_0x3ce229=>{const _0x47054a=Array['from'](_0x29c53f['getRanges']())['map'](_0x2f5fe0=>_0xe90ba7['fromRange'](_0x2f5fe0));_0x3ce229['setSelection'](_0x3fbd55),_0x502c8b['commands']['get']('mergeTableCells')['refresh'](),_0x502c8b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5dae7f=_0x47054a['filter'](_0x41f295=>'$graveyard'!=_0x41f295['root']['rootName']);_0x5dae7f['length']>0x0&&_0x3ce229['setSelection'](_0x5dae7f);for(const _0x1a9619 of _0x47054a)_0x1a9619['detach']();});});for(const _0x56538f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbd8fcc=_0x502c8b['commands']['get'](_0x56538f);_0xbd8fcc['on']('set:isEnabled',(_0x2c8f28,_0x183aec,_0x1ed305)=>{if(_0x1ed305){const _0x487e91=_0x502c8b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x436afe=>_0x436afe['is']('element','tableCell'));this['_areMergableCells'](_0xbd8fcc['value'],_0x487e91)||(_0x2c8f28['return']=!0x1,_0x2c8f28['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x31f066=this['editor']['commands']['get']('mergeTableCells'),_0x59e933=this['editor']['plugins']['get']('TableUtils');if(!_0x31f066['isEnabled'])return!0x1;const _0x9516ab=_0x59e933['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d650a of _0x9516ab)for(const _0x447e40 of _0x9516ab)if(_0x3d650a!=_0x447e40&&!this['_areMergableCells'](_0x3d650a,_0x447e40))return!0x1;return!0x0;}['_areMergableCells'](_0xe9aba5,_0x4f7c56){const _0x4709f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b07f8=this['editor']['model']['createRangeOn'](_0xe9aba5),_0x173cbf=this['editor']['model']['createRangeOn'](_0x4f7c56),_0x2edf07=new Set(),_0x16459e=new Set();for(const _0x4d2b5b of _0x4709f3['getSuggestions']())if(('insertion'==_0x4d2b5b['type']||'deletion'==_0x4d2b5b['type']||'mergeTableCells'==_0x4d2b5b['subType'])&&_0x4d2b5b['isInContent']){for(const _0x30c728 of _0x4d2b5b['getRanges']())_0x30c728['containsRange'](_0x3b07f8,!0x0)&&_0x2edf07['add'](_0x4d2b5b['type']+':'+_0x4d2b5b['author']['id']),_0x30c728['containsRange'](_0x173cbf,!0x0)&&_0x16459e['add'](_0x4d2b5b['type']+':'+_0x4d2b5b['author']['id']);}if(_0x2edf07['size']!=_0x16459e['size'])return!0x1;for(const _0x515f58 of _0x2edf07)if(!_0x16459e['has'](_0x515f58))return!0x1;return!0x0;}}class At extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x306620=this['editor'];if(!_0x306620['plugins']['has']('TableEditing'))return;const _0x53af63=_0x306620['locale'],_0xc19e21=_0x306620['plugins']['get']('TrackChangesEditing');_0xc19e21['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc19e21['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc19e21['registerBlockAttribute']('headingRows'),_0xc19e21['registerBlockAttribute']('headingColumns'),_0xc19e21['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53af63,'FORMAT_HEADER_ROW')),_0xc19e21['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53af63,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f22c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e161b=this['editor']['plugins']['get']('TableUtils'),_0x203546=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2c9a77({showActiveMarker:_0x3b6fc0=!0x0,setDataAttribute:_0x15c6e8=!0x0}={}){return(_0x3faf35,_0x38aae5,_0x50a90d)=>{const {type:_0x27b19f,id:_0x2490d5}=_0x1f22c5['_splitMarkerName'](_0x38aae5['markerName']),_0xf66105=_0x1f22c5['getSuggestion'](_0x2490d5),_0x2a74b0=_0xf66105['data'];if('formatBlock'!=_0xf66105['type']||!_0x2a74b0||'setTableColumnHeader'!=_0x2a74b0['commandName'])return;if(_0x38aae5['item'])return void _0x3faf35['stop']();if(!_0x50a90d['consumable']['consume'](_0x38aae5['markerRange'],_0x3faf35['name']))return;const _0x10b3ab=_0x38aae5['markerRange']['start']['nodeAfter'],_0x65616e=_0x38aae5['markerRange']['end']['nodeBefore'],_0x5bf54b=_0x10b3ab['parent']['parent'],{column:_0x1183ae}=_0x1e161b['getCellLocation'](_0x10b3ab),{column:_0x24ec12}=_0x1e161b['getCellLocation'](_0x65616e);for(let _0x4d8a87=_0x1183ae;_0x4d8a87<=_0x24ec12;_0x4d8a87++){const _0x1d269d=_0x1e161b['createTableWalker'](_0x5bf54b,{'column':_0x4d8a87,'includeAllSlots':!0x1});for(const _0x5c95ea of _0x1d269d){const _0x2db28c=_0x5c95ea['cell'],_0x1cf00d=_0x50a90d['mapper']['toViewElement'](_0x2db28c);_0x50a90d['writer']['addClass']('ck-suggestion-marker-'+_0x27b19f,_0x1cf00d),_0x15c6e8&&_0x50a90d['writer']['setAttribute']('data-suggestion',_0x2490d5,_0x1cf00d),_0x50a90d['mapper']['bindElementToMarker'](_0x1cf00d,_0x38aae5['markerName']),_0x3b6fc0&&(_0x1f22c5['activeMarkers']['includes'](_0x38aae5['markerName'])?_0x50a90d['writer']['addClass']('ck-suggestion-marker--active',_0x1cf00d):_0x50a90d['writer']['removeClass']('ck-suggestion-marker--active',_0x1cf00d));}}};}_0x1f22c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x203546),_0x1f22c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x203546),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c9a77(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d6719,_0x16e560,_0xba1eae)=>{_0xba1eae['options']['showSuggestionHighlights']&&_0x2c9a77({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d6719,_0x16e560,_0xba1eae);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x234a0a,_0x299d0e,_0x37c08e)=>{const {type:_0x5409c2,id:_0x1fcedc}=_0x1f22c5['_splitMarkerName'](_0x299d0e['markerName']),_0x284deb=_0x1f22c5['getSuggestion'](_0x1fcedc),_0x574b31=_0x284deb['data'];if('formatBlock'!=_0x284deb['type']||!_0x574b31||'setTableColumnHeader'!=_0x574b31['commandName'])return;const _0x4647fd=_0x37c08e['mapper']['markerNameToElements'](_0x299d0e['markerName']);if(_0x4647fd){for(const _0x3f1c2a of _0x4647fd)_0x37c08e['writer']['removeClass']('ck-suggestion-marker-'+_0x5409c2,_0x3f1c2a),_0x37c08e['writer']['removeClass']('ck-suggestion-marker--active',_0x3f1c2a),_0x37c08e['writer']['removeAttribute']('data-suggestion',_0x3f1c2a),_0x37c08e['mapper']['unbindElementFromMarkerName'](_0x3f1c2a,_0x299d0e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1214c5=this['editor'],_0x3aece3=_0x1214c5['locale'];function _0x51dc36(_0x2840d6){return{'type':'format','content':o(_0x3aece3,'*Format:*\x20%0',_0x2840d6)};}_0x1214c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b165=>{if('formatBlock'!=_0x42b165['type'])return;const {data:_0x569e41}=_0x42b165;if(_0x569e41){if('setTableRowHeader'==_0x569e41['commandName']){const _0x5b8865=_0x569e41['commandParams'][0x0]['forceValue'];return _0x51dc36(o(_0x3aece3,_0x5b8865?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x569e41['commandName']){const _0x5e8927=_0x569e41['commandParams'][0x0]['forceValue'];return _0x51dc36(o(_0x3aece3,_0x5e8927?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1b5f1a=>[_0x1b5f1a,null]));class It extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x2c4e40=this['editor'];if(!_0x2c4e40['plugins']['has']('TableClipboard'))return;const _0x591597=_0x2c4e40['plugins']['get']('TrackChangesEditing'),_0xff45f=_0x2c4e40['plugins']['get']('TableUtils'),_0x40d093=_0x2c4e40['plugins']['get'](jt),_0x424caf=_0x2c4e40['plugins']['get']('TableClipboard');_0x40d093['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c4e40['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c4e40['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x186c32=null;_0x2c4e40['model']['on']('insertContent',(_0x3324bc,_0x5b6f33)=>{const [_0x58d92e,_0x4455fd]=_0x5b6f33,_0x14d0f3=_0x5b6f33[_0x5b6f33['length']-0x1];_0x14d0f3&&_0x14d0f3['forceDefaultExecution']||_0x591597['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x53c635,_0xe91c07,_0x14a3db,_0x452772,_0x340f7c){if(_0xe91c07&&!_0xe91c07['is']('documentSelection'))return!0x1;const _0x153852=_0x340f7c['getTableIfOnlyTableInContent'](_0x53c635,_0x14a3db);if(!_0x153852||!he(_0x153852,void 0x0,_0x452772))return!0x1;const _0x179ad0=_0x452772['getSelectionAffectedTableCells'](_0x14a3db['document']['selection']);if(!_0x179ad0['length'])return!0x1;const _0x266fda=_0x179ad0[0x0]['findAncestor']('table'),_0x2fe6fa=_0x452772['getRowIndexes'](_0x179ad0),_0x3dc187=_0x452772['getColumnIndexes'](_0x179ad0),_0x59b592={'startRow':_0x2fe6fa['first'],'endRow':_0x2fe6fa['last'],'startColumn':_0x3dc187['first'],'endColumn':_0x3dc187['last']};return 0x1==_0x179ad0['length']&&(_0x59b592['endRow']+=_0x452772['getRows'](_0x153852)-0x1,_0x59b592['endColumn']+=_0x452772['getColumns'](_0x153852)-0x1),he(_0x266fda,_0x59b592,_0x452772);}(_0x58d92e,_0x4455fd,_0x2c4e40['model'],_0xff45f,_0x424caf)&&(_0x3324bc['stop'](),_0x186c32={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c4e40['model']['change'](()=>{_0x2c4e40['model']['insertContent'](_0x5b6f33[0x0],_0x5b6f33[0x1],_0x5b6f33[0x2],{'forceDefaultExecution':!0x0});const _0x1a89ab=_0x5ed2a0(),{rowInsertionRanges:_0x14b0e6,columnInsertionRanges:_0x40541f,insertionRanges:_0x2f7970,deletionRanges:_0x452da1,cells:_0x3ad7c2}=_0x186c32;_0x14b0e6['length']&&_0x591597['markMultiRangeInsertion'](_0x14b0e6,'tablePasteRow',{'tablePasteChainId':_0x1a89ab}),_0x40541f['length']&&_0x591597['markMultiRangeInsertion'](_0x40541f,'tablePasteColumn',{'tablePasteChainId':_0x1a89ab}),_0x2f7970['length']&&(_0x591597['markMultiRangeInsertion'](_0x2f7970,'tablePaste',{'tablePasteChainId':_0x1a89ab,'skipNestingCheck':!0x0}),_0x2f7970['forEach'](_0x4a2235=>_0x4a2235['detach']?.())),_0x452da1['length']&&(_0x591597['markMultiRangeDeletion'](_0x452da1,'tablePaste',{'tablePasteChainId':_0x1a89ab,'skipNestingCheck':!0x0}),_0x452da1['forEach'](_0x5bffde=>_0x5bffde['detach']?.()));const _0x5825ec=_0x591597['markMultiRangeBlockFormat'](_0x3ad7c2['map'](({element:_0x2d3c04})=>_0x2d3c04),{'formatGroupId':_0x5ed2a0()},[],'tablePasteCell',{'tablePasteChainId':_0x1a89ab});if(_0x5825ec){const _0xe56f62=_0x5825ec['getMarkers'](),_0x3bda8a=[];for(const {element:_0x432a4b,attributes:_0x42e73a}of _0x3ad7c2){if(!_0x42e73a)continue;const _0x50c2f1=_0x2c4e40['model']['createRangeOn'](_0x432a4b),_0x1d1a67=_0xe56f62['find'](_0x290c2b=>_0x290c2b['getRange']()['isEqual'](_0x50c2f1));_0x1d1a67&&_0x3bda8a['push']([_0x1d1a67['name'],_0x42e73a]);}_0x3bda8a['length']&&_0x5825ec['setAttribute']('markerAttributes',Object['fromEntries'](_0x3bda8a));}_0x186c32=null;}));},{'priority':_0x2ff03c['high']+0xa}),_0x2c4e40['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d8114,_0x37e04d)=>{const [_0x49c9bf,_0x17dc36,,_0x172e6c]=_0x37e04d;if(!_0x186c32)return;_0x4d8114['stop']();const _0x5b087a=_0x49c9bf['cell'],_0x200d9a=_0x17dc36,_0x1a2564=Pe(_0x5b087a),_0x43b7cb=Pe(_0x200d9a);_0x4d8114['return']=_0x5b087a;let _0x29b144=null,_0x5ef113=null;if(_0x43b7cb||_0x1a2564){if(_0x1a2564&&!_0x43b7cb){_0x172e6c['remove'](_0x5b087a['getChild'](0x0));for(const _0x4bbbcd of Array['from'](_0x200d9a['getChildren']()))_0x172e6c['insert'](_0x4bbbcd,_0x5b087a,'end');const _0x1732dc=_0x186c32['rowInsertionIndexes']['includes'](_0x49c9bf['row']),_0x26afa1=_0x186c32['columnInsertionIndexes']['includes'](_0x49c9bf['column']);_0x1732dc||_0x26afa1||(_0x29b144=_0xe90ba7['fromRange'](_0x172e6c['createRangeIn'](_0x5b087a)));}else _0x43b7cb&&!_0x1a2564&&(_0x5ef113=_0x172e6c['createRangeIn'](_0x5b087a));}else{const _0x2d094e=_0x172e6c['createElement']('tableCellSuggestion'),_0x3cc51c=_0x172e6c['createElement']('tableCellSuggestion');_0x172e6c['wrap'](_0x172e6c['createRangeIn'](_0x5b087a),_0x3cc51c),_0x172e6c['insert'](_0x2d094e,_0x5b087a,0x0);for(const _0x5296c6 of Array['from'](_0x200d9a['getChildren']()))_0x172e6c['insert'](_0x5296c6,_0x2d094e,'end');_0x29b144=_0xe90ba7['fromRange'](_0x172e6c['createRangeOn'](_0x2d094e)),_0x5ef113=_0xe90ba7['fromRange'](_0x172e6c['createRangeOn'](_0x3cc51c));}const _0x4f10ed=Array['from'](_0x200d9a['getAttributes']())['filter'](([_0x2b3d33])=>ge['includes'](_0x2b3d33));_0x186c32['cells']['push']({'element':_0x5b087a,'attributes':_0x4f10ed['length']?Object['fromEntries'](_0x4f10ed):null}),_0x29b144&&_0x186c32['insertionRanges']['push'](_0x29b144),_0x5ef113&&_0x186c32['deletionRanges']['push'](_0x5ef113);},{'priority':'high'}),_0xff45f['on']('insertColumns',(_0x49a374,_0x221a68)=>{const [_0x17d6b4,_0x52ba0e={}]=_0x221a68;if(!_0x186c32)return;const _0x2fc687=_0x52ba0e['at']||0x0,_0x4c7749=_0x52ba0e['columns']||0x1;_0x186c32['columnInsertionIndexes']=new Array(_0x4c7749)['fill'](_0x2fc687)['map']((_0x596ebe,_0x4a355d)=>_0x596ebe+_0x4a355d);for(const {cell:_0x3ee559}of _0xff45f['createTableWalker'](_0x17d6b4,{'startColumn':_0x2fc687,'endColumn':_0x2fc687+_0x4c7749-0x1}))_0x186c32['columnInsertionRanges']['push'](_0x2c4e40['model']['createRangeOn'](_0x3ee559));},{'priority':'low'}),_0xff45f['on']('insertRows',(_0x290bd3,_0x4b4e57)=>{const [_0xd26695,_0x42694f={}]=_0x4b4e57;if(!_0x186c32)return;const _0x144abd=_0x42694f['at']||0x0,_0x42f588=_0x42694f['rows']||0x1;_0x186c32['rowInsertionIndexes']=new Array(_0x42f588)['fill'](_0x144abd)['map']((_0x2c4de0,_0x1607c3)=>_0x2c4de0+_0x1607c3);for(const {cell:_0x32417c}of _0xff45f['createTableWalker'](_0xd26695,{'startRow':_0x144abd,'endRow':_0x144abd+_0x42f588-0x1}))_0x186c32['rowInsertionRanges']['push'](_0x2c4e40['model']['createRangeOn'](_0x32417c));},{'priority':'low'}),_0x591597['descriptionFactory']['registerDescriptionCallback'](_0x31c5b8=>{if(_0x31c5b8['subType']&&_0x31c5b8['subType']['startsWith']('tablePaste'))return _0x31c5b8['previous']?{}:{'type':'insertion','content':o(_0x2c4e40['locale'],'*Replace\x20table\x20cells*')};});const _0x3e8574=()=>!0x1;for(const _0x400a52 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x591597['_suggestionFactory']['registerCustomCallback']('insertion',_0x400a52,'join',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('deletion',_0x400a52,'join',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x400a52,'join',_0x3e8574);_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x38277b,_0x22302a,_0x5d3d12)=>{const _0x1ea877=_0x38277b['map'](_0x381466=>_0x381466['getContainedElement']())['filter'](_0x5ba569=>_0x5ba569),_0x19b462=new Map(_0x1ea877['map'](_0xd95a00=>[_0xd95a00,null]));if(_0x186c32){for(const {element:_0x25b51b,attributes:_0x228447}of _0x186c32['cells'])_0x228447&&_0x19b462['set'](_0x25b51b,_0x228447);}else{if(_0x5d3d12&&_0x5d3d12['markerAttributes'])for(const [_0x1ad102,_0x1519e5]of Object['entries'](_0x5d3d12['markerAttributes'])){const _0x1a963d=_0x2c4e40['model']['markers']['get'](_0x1ad102),_0x32c3ac=_0x1a963d?_0x1a963d['getRange']()['getContainedElement']():null;_0x32c3ac&&_0x19b462['set'](_0x32c3ac,_0x1519e5);}}_0x2c4e40['model']['change'](_0xf5e6d3=>{for(const [_0x174f11,_0x1dc3ba]of _0x19b462)_0xf5e6d3['setAttributes']({...Ce,..._0x1dc3ba},_0x174f11);});});const _0x4b6721=(_0x406862,_0x1d6a20)=>{_0x591597['_suggestionFactory']['registerCustomCallback'](_0x406862,'tablePaste',_0x1d6a20,(_0x5489a0,_0x4612e0,_0x13cff9)=>{_0x2c4e40['model']['change'](_0x4f1035=>{const _0x331e27=[];for(const _0x274d07 of _0x5489a0){const _0x3d1b9b=_0x274d07['start']['nodeAfter'];_0x3d1b9b['is']('element','tableCellSuggestion')&&_0x331e27['push'](_0x3d1b9b);}_0x591597['_suggestionFactory']['getSuggestionCallback'](_0x406862,null,_0x1d6a20)(_0x5489a0,_0x4612e0,_0x13cff9);for(const _0x73f2cf of _0x331e27)'$graveyard'!=_0x73f2cf['root']['rootName']&&_0x4f1035['unwrap'](_0x73f2cf);});});};_0x4b6721('insertion','accept'),_0x4b6721('insertion','discard'),_0x4b6721('deletion','accept'),_0x4b6721('deletion','discard'),_0x591597['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x369799=>{const _0x3c65e5=_0x369799['map'](_0x511233=>_0x511233['getContainedElement']()),_0xebe819=_0x3c65e5[0x0]['findAncestor']('table'),{minRow:_0x2348eb,maxRow:_0x4fbc87}=_0x40d093['_getCoordsForCells'](_0x3c65e5);_0xff45f['removeRows'](_0xebe819,{'at':_0x2348eb,'rows':_0x4fbc87-_0x2348eb+0x1});}),_0x591597['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe7fb04=>{const _0x4ec9b0=_0xe7fb04['map'](_0x5a3f93=>_0x5a3f93['getContainedElement']()),_0x322a50=_0x4ec9b0[0x0]['findAncestor']('table'),{minColumn:_0xd21a7d,maxColumn:_0x268198}=_0x40d093['_getCoordsForCells'](_0x4ec9b0);_0xff45f['removeColumns'](_0x322a50,{'at':_0xd21a7d,'columns':_0x268198-_0xd21a7d+0x1});});const _0x4437ca=(_0x54454b,_0x580abe)=>{if(!_0x580abe['subType']||!_0x580abe['subType']['startsWith']('tablePaste'))return;const _0x1a05ab=_0x580abe['attributes']['tablePasteChainId'],_0x4619c0=_0x591597['getSuggestions']()['filter'](_0x1dcfb7=>_0x1dcfb7['isInContent']&&_0x1dcfb7['attributes']&&_0x1dcfb7['attributes']['tablePasteChainId']==_0x1a05ab);_0x4619c0['length']&&_0x580abe['getAllAdjacentSuggestions']()['length']!=_0x4619c0['length']&&_0x4619c0['reduce']((_0x2ed556,_0x379c02)=>(_0x2ed556['next']=_0x379c02,_0x379c02['previous']=_0x2ed556,_0x379c02));};function _0x1adb9d(_0x43dfcc,_0x3bc135=!0x0){const {id:_0x2be2a6}=_0x591597['_splitMarkerName'](_0x43dfcc['markerName']),_0x2a82ab=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38a570=_0x591597['activeMarkers']['includes'](_0x43dfcc['markerName']);return _0x38a570&&_0x2a82ab['push']('ck-suggestion-marker--active'),{'classes':_0x2a82ab,'attributes':{'data-suggestion':_0x2be2a6},'priority':_0x38a570&&_0x3bc135?0xbc2:0xbb8};}_0x591597['on']('suggestionLoaded',_0x4437ca,{'priority':'high'}),_0x591597['on']('suggestionUnloaded',_0x4437ca,{'priority':'high'}),_0x2c4e40['model']['document']['registerPostFixer'](()=>{let _0x253684=!0x1;const _0xe84a6e=Array['from'](_0x2c4e40['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b668a,data:_0x2912d8}of _0xe84a6e){const {group:_0x1d0a7c,type:_0x367232,id:_0x4f9de8}=_0x591597['_splitMarkerName'](_0x3b668a);if('suggestion'!=_0x1d0a7c||'deletion'!=_0x367232||_0x2912d8['oldRange'])continue;if(!_0x591597['hasSuggestion'](_0x4f9de8))continue;const _0x446a70=_0x591597['getSuggestion'](_0x4f9de8)['getRanges'](),_0x1c3c54=_0x2c4e40['plugins']['get']('Users')['me'];for(const _0x4d4ca7 of _0x591597['getSuggestions']()){if(!_0x4d4ca7['isInContent']||_0x4d4ca7['author']!=_0x1c3c54)continue;if('formatBlock'!=_0x4d4ca7['type']||'tablePasteCell'!=_0x4d4ca7['subType'])continue;if(_0x4d4ca7['getRanges']()['every'](_0x1131f2=>_0x446a70['some'](_0x3b94bb=>_0x3b94bb['containsRange'](_0x1131f2,!0x0)))){for(const _0x2aabfa of _0x4d4ca7['getAllAdjacentSuggestions']())_0x2aabfa['isInContent']&&(_0x2aabfa['discard'](),_0x253684=!0x0);}}}return _0x253684;}),_0x2c4e40['model']['document']['registerPostFixer'](_0x524e35=>{const _0x3b12fe=_0x2c4e40['commands']['get']('redo');if(!_0x3b12fe||!_0x3b12fe['_createdBatches']['has'](_0x524e35['batch']))return!0x1;let _0x3d5ce0=!0x1;const _0x247210=_0x2c4e40['plugins']['get']('Users')['me'],_0x1b44e7=_0x2c4e40['model']['document']['differ']['getChanges'](),_0x31ec6c=Array['from'](_0x2c4e40['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32db1d,data:_0x5be06d})=>{const {group:_0x2264e9,subType:_0x45a0dc,authorId:_0x254450}=_0x591597['_splitMarkerName'](_0x32db1d);return'suggestion'==_0x2264e9&&'tablePaste'==_0x45a0dc&&_0x254450==_0x247210['id']&&!_0x5be06d['oldRange'];});for(const _0xd9a2e0 of _0x1b44e7){if('insert'!=_0xd9a2e0['type']||'tableCellSuggestion'!=_0xd9a2e0['name']||0x1!=_0xd9a2e0['length'])continue;const _0x253a2b=_0x524e35['createRange'](_0xd9a2e0['position'],_0xd9a2e0['position']['getShiftedBy'](0x1));if(!_0x31ec6c['find'](({data:_0xd32a9})=>_0xd32a9['newRange']['isEqual'](_0x253a2b))){for(const {name:_0x2ba2a8,data:_0x28fc33}of _0x31ec6c)if(_0x253a2b['containsRange'](_0x28fc33['newRange'])){_0x524e35['updateMarker'](_0x2ba2a8,{'range':_0x253a2b}),_0x3d5ce0=!0x0;break;}}}return _0x3d5ce0;}),_0x2c4e40['model']['document']['registerPostFixer'](_0x497c15=>{let _0x13add2=!0x1;const _0x1f6761=_0x2c4e40['plugins']['get']('Users')['me'],_0x41d15d=_0x591597['getSuggestions']()['filter'](_0x2106e5=>_0x2106e5['isInContent']&&_0x2106e5['author']==_0x1f6761),_0x315a99=new Set(),_0x111398=new Set();for(const _0x3b6162 of _0x41d15d)if('tablePaste'==_0x3b6162['subType'])for(const _0x5d6983 of _0x3b6162['getMarkers']()){const _0x2f935e=_0x5d6983['getRange']()['getContainedElement']();if(_0x2f935e){if(_0x2f935e['is']('element','tableCellSuggestion')&&Pe(_0x2f935e)){_0x3b6162['removeMarker'](_0x5d6983['name']),_0x315a99['add'](_0x2f935e),_0x13add2=!0x0;const _0x510285=_0x2f935e['nextSibling'],_0x1339c5=_0x2f935e['previousSibling'],_0x375deb=_0x510285&&_0x510285['is']('element','tableCellSuggestion'),_0x1db635=_0x1339c5&&_0x1339c5['is']('element','tableCellSuggestion');_0x375deb&&!_0x315a99['has'](_0x510285)&&_0x111398['add'](_0x510285),_0x1db635&&!_0x315a99['has'](_0x1339c5)&&_0x111398['add'](_0x1339c5);}else _0x2f935e['is']('element','paragraph')&&_0x2f935e['isEmpty']&&(_0x3b6162['removeMarker'](_0x5d6983['name']),_0x13add2=!0x0);}}else{if('tablePasteCell'==_0x3b6162['subType']){if(!_0x3b6162['attributes']||!_0x3b6162['attributes']['tablePasteChainId'])continue;const _0x1e655c=_0x3b6162['attributes']['markerAttributes'];if(_0x1e655c&&Object['keys'](_0x1e655c)['length'])continue;const _0x407bfa=_0x3b6162['attributes']['tablePasteChainId'];let _0x4d16fd=!0x0,_0x50cc74=!0x0;for(const _0x43ed24 of _0x41d15d)if(_0x43ed24['subType']&&_0x43ed24['subType']['startsWith']('tablePaste')){if(!_0x43ed24['attributes']['tablePasteChainId']){_0x50cc74=!0x1;break;}if(_0x43ed24['id']!=_0x3b6162['id']&&_0x43ed24['attributes']['tablePasteChainId']==_0x407bfa){_0x4d16fd=!0x1;break;}}_0x50cc74&&_0x4d16fd&&(_0x3b6162['removeMarkers'](),_0x13add2=!0x0);}}for(const _0x55dfc3 of _0x315a99)_0x497c15['remove'](_0x55dfc3);for(const _0x3aadf3 of _0x111398)_0x497c15['unwrap'](_0x3aadf3);return _0x13add2;}),_0x2c4e40['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34e1ca,_0x3e30a5)=>_0x1adb9d(_0x34e1ca),'converterPriority':'high'}),_0x2c4e40['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38bbbe,_0x563fcc)=>_0x563fcc['options']['showSuggestionHighlights']?_0x1adb9d(_0x38bbbe,!0x1):null,'converterPriority':'high'});const _0x353837=_0x2c4e40['editing']['view'];this['listenTo'](_0x353837['document'],'clipboardOutput',(_0x26a76c,_0x253d9e)=>{const _0x5b4e45=[];for(const _0x4433d6 of _0x353837['createRangeIn'](_0x253d9e['content'])['getItems']())_0x4433d6['is']('element','suggestion-td')&&_0x5b4e45['push'](_0x4433d6);_0x353837['change'](_0x403618=>{for(const _0x3b47db of _0x5b4e45)_0x403618['move'](_0x403618['createRangeIn'](_0x3b47db),_0x403618['createPositionBefore'](_0x3b47db)),_0x403618['remove'](_0x3b47db);});});}}function Pe(_0x11dd91){if(_0x11dd91['isEmpty'])return!0x0;const _0x2dbeae=_0x11dd91['getChild'](0x0);return _0x2dbeae['is']('element','paragraph')&&_0x2dbeae['isEmpty'];}function he(_0x21d5a7,_0x581df4={},_0x5b801f){for(const {isAnchor:_0x1695b4,cellHeight:_0x9b063,cellWidth:_0x248339}of _0x5b801f['createTableWalker'](_0x21d5a7,{'includeAllSlots':!0x0,..._0x581df4}))if(!_0x1695b4||0x1!=_0x9b063||0x1!=_0x248339)return!0x1;return!0x0;}class vt extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x23becc=this['editor']['plugins']['get']('TrackChangesEditing');_0x23becc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x23becc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x23becc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23becc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x23becc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x23becc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7c37af,_0x5abe77){const _0x2ee95a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2202cc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1bdf25=_0x5abe77['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xee2678=_0x2202cc['getColumnGroupElement'](_0x1bdf25);let _0x5ebc5c=_0xee2678?_0x2202cc['getTableColumnsWidths'](_0xee2678):null,_0x245f32=_0x1bdf25['getAttribute']('tableWidth')||null;const _0x2297c0=_0x5abe77['tableWidth']||_0x245f32,_0x1c936a=_0x5abe77['columnWidths']||_0x5ebc5c,_0x281892=this['editor']['plugins']['get']('Users')['me'];for(const _0x50db09 of _0x2ee95a['getSuggestions']()){const _0x289f9e=_0x50db09['getContainedElement']();if('resizeTable'===_0x50db09['subType']&&_0x289f9e===_0x1bdf25){_0x50db09['author']!==_0x281892&&_0x50db09['discard']();const _0x4379f6=_0x50db09['data']['commandParams'];_0x245f32=_0x4379f6[0x0]['tableWidth'],_0x5ebc5c=_0x4379f6[0x0]['columnWidths'];break;}}_0x7c37af({'table':_0x1bdf25,'tableWidth':_0x2297c0,'columnWidths':_0x1c936a}),_0x2ee95a['markBlockFormat'](_0x1bdf25,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x245f32,'columnWidths':_0x5ebc5c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16b233){if('formatBlock'!=_0x16b233['type']&&'formatInline'!=_0x16b233['type'])return;const {data:_0x3f5da2}=_0x16b233;if(_0x3f5da2&&'resizeTable'===_0x3f5da2['formatGroupId']){const _0xf9bc6f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xf9bc6f)};}}}class Ct extends _0x4104d6{['afterInit'](){const _0x3b2a04=this['editor'];_0x3b2a04['plugins']['has']('Template')&&_0x3b2a04['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4104d6{['afterInit'](){const _0x54c1f7=this['editor'];if(!_0x54c1f7['commands']['get']('insertTableOfContents'))return;_0x54c1f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x435712=_0x54c1f7['plugins']['get']('TrackChangesEditing'),_0x46d521=_0x54c1f7['locale'];_0x435712['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3764d8=>o(_0x46d521,'ELEMENT_TABLE_OF_CONTENTS',_0x3764d8));}}class Dt extends _0x4104d6{['afterInit'](){const _0x1282a2=this['editor'];if(!_0x1282a2['plugins']['has']('Title'))return;const _0x5673fd=_0x1282a2['plugins']['get']('TrackChangesEditing');_0x5673fd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1282a2['locale'],'ELEMENT_TITLE')),_0x1282a2['model']['document']['registerPostFixer'](_0x14cfe1=>{let _0x421313=!0x1;const _0x300589=Array['from'](_0x1282a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x79589b,data:_0x56db02}of _0x300589){const {group:_0x393bb4}=_0x5673fd['_splitMarkerName'](_0x79589b);if('suggestion'!==_0x393bb4||!_0x56db02['newRange'])continue;const _0x3c4c1f=_0x56db02['newRange'],_0x1d9cc3=_0x3c4c1f['end']['nodeBefore'];if(!_0x1d9cc3||!_0x1d9cc3['is']('element','title-content'))continue;if(!_0x3c4c1f['start']['isTouching'](_0x3c4c1f['end']))continue;const _0x38b416=_0x1282a2['model']['schema']['getNearestSelectionRange'](_0x3c4c1f['end'],'forward');if(_0x38b416&&_0x38b416['isCollapsed']){const _0x47d13f=_0x14cfe1['createRange'](_0x3c4c1f['start'],_0x38b416['start']);_0x47d13f['isEqual'](_0x3c4c1f)||(_0x14cfe1['updateMarker'](_0x79589b,{'range':_0x47d13f}),_0x421313=!0x0);}_0x421313||(_0x14cfe1['removeMarker'](_0x79589b),_0x421313=!0x0);}return _0x421313;});}}class Nt extends _0x4104d6{['afterInit'](){const _0x382fb3=this['editor'],_0x26d2fc=_0x382fb3['plugins']['get']('TrackChangesEditing');_0x382fb3['plugins']['has']('UndoEditing')&&(_0x26d2fc['enableCommand']('undo'),_0x26d2fc['enableCommand']('redo'));}}class Mt extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x1ef780=this['editor'];if(!_0x1ef780['plugins']['has']('TableCaptionEditing'))return;_0x1ef780['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4104d6{['tableProperties'];['tableCellProperties'];constructor(_0x329f54){super(_0x329f54),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 _0x2010c8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x17f843 of this['tableProperties'])_0x2010c8['enableCommand'](_0x17f843,(_0x5d06a4,_0x34b5d3)=>{const _0x28424b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x17f843,[_0x28424b],this['tableProperties'],'tableProperties',_0x5d06a4,_0x34b5d3);});_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2010c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x343b12,_0x23db3d)=>this['handleDiscardAction'](this['tableProperties'],_0x343b12,_0x23db3d)),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2af99e of this['tableCellProperties'])_0x2010c8['enableCommand'](_0x2af99e,(_0xa16a58,_0x2694fe)=>{const _0x21fd8a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2af99e,_0x21fd8a,this['tableCellProperties'],'tableCellProperties',_0xa16a58,_0x2694fe);});_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2010c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d29be,_0x14cc0f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d29be,_0x14cc0f)),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2010c8['descriptionFactory']['registerDescriptionCallback'](_0x43beca=>this['handleSuggestionDescription'](_0x43beca));}['_handlePropertyChange'](_0x3aef6b,_0x4f31ce,_0x166f31,_0x3e29de,_0x48ee30,_0x188d55){const _0x421d08=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x188d55['batch'],()=>{for(const _0x3fc3f2 of _0x4f31ce){if(this['_getSuggestion'](_0x3fc3f2,_0x3e29de))_0x48ee30(_0x188d55);else{const _0x57d1f2={};for(const _0x3cd1b1 of _0x166f31){const _0x1c6e25=_0x3fc3f2['getAttribute'](_0x3cd1b1);void 0x0!==_0x1c6e25&&(_0x57d1f2[_0x3cd1b1]=_0x1c6e25);}_0x48ee30(_0x188d55),_0x421d08['markBlockFormat'](_0x3fc3f2,{'commandParams':[_0x57d1f2]},[],_0x3e29de);}}});}['handleDiscardAction'](_0x2bfab4,_0x25841c,_0x330c7a){const _0x200312=_0x25841c[0x0]['start']['nodeAfter'],_0x125708=_0x330c7a['commandParams'][0x0];this['editor']['model']['change'](_0x463a05=>{for(const _0x16db1 of _0x2bfab4)void 0x0!==_0x125708[_0x16db1]?_0x463a05['setAttribute'](_0x16db1,_0x125708[_0x16db1],_0x200312):_0x463a05['removeAttribute'](_0x16db1,_0x200312);});}['handleSuggestionDescription'](_0x8356ae){if(_0x8356ae['data'])switch(_0x8356ae['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'](_0x22ac31,_0x23c280){const _0x2bd1a8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c4422 of _0x2bd1a8['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e5513=_0x4c4422['getContainedElement']();if(_0x4c4422['subType']===_0x23c280&&_0x5e5513===_0x22ac31)return _0x4c4422;}return null;}}const m='$elementName';class p extends _0x4104d6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xc2c087,_0x2fa12b,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x16788c){function _0x57a47b(_0x151868){return _0x151868['map'](_0x34028c=>String['fromCharCode'](_0x34028c))['join']('');}super(_0x16788c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55e4b9,_0x28c710,_0x178b1d,_0x414413)=>{this['_model']['change'](()=>{for(const _0x5d6d6a of[..._0x414413,..._0x178b1d])this['_model']['markers']['has'](_0x5d6d6a)&&_0x16788c['editing']['reconvertMarker'](_0x5d6d6a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x16788c['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(),_0x16788c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x16788c['config']['get']('trackChanges.trackFormatChanges'),_0x16788c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x16788c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x16788c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x57a47b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57a47b([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x36]);}['init'](){const _0x307f20=this['editor'],_0x273c6f=(_0x53526c,_0x32ef88)=>{if('attribute'!=_0x53526c)return'ck-suggestion-marker-'+_0x53526c;const _0x8a95c1=_0x32ef88['split']('|')[0x0];return this['_isBlockAttribute'](_0x8a95c1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x307f20['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2789b6=>{const {id:_0xdd9142,type:_0xb88523,subType:_0x53cc48}=this['_splitMarkerName'](_0x2789b6['markerName']),_0x2b30a9=['ck-suggestion-marker',_0x273c6f(_0xb88523,_0x53cc48)];let _0x5c6158=0xbb8;return this['activeMarkers']['includes'](_0x2789b6['markerName'])&&(_0x2b30a9['push']('ck-suggestion-marker--active'),_0x5c6158=0xbc2),'deletion'==_0xb88523&&(_0x5c6158+=0x5),{'classes':_0x2b30a9,'attributes':{'data-suggestion':_0xdd9142},'priority':_0x5c6158};}}),_0x307f20['conversion']['for']('dataDowncast')['add'](_0x2aa024=>{_0x2aa024['on']('addMarker:suggestion',(_0x1edd9e,_0x98a80c,_0x5d9cbf)=>{if(!_0x5d9cbf['options']['showSuggestionHighlights'])return;const _0x3c8e3c=_0x98a80c['item'];if(!_0x3c8e3c)return;const _0x41abae=_0x5d9cbf['mapper']['toViewElement'](_0x3c8e3c);_0x307f20['model']['schema']['isObject'](_0x3c8e3c)&&_0x41abae&&!_0x41abae['getCustomProperty']('widget')&&_0x41abae['is']('containerElement')&&_0x5f3b3a(_0x41abae,_0x5d9cbf['writer']);},{'priority':'high'});}),_0x307f20['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x427fd4,_0x422af1)=>{if(!_0x422af1['options']['showSuggestionHighlights'])return null;const {type:_0xd15ba6,subType:_0xca0a41}=this['_splitMarkerName'](_0x427fd4['markerName']);return{'classes':['ck-suggestion-marker',_0x273c6f(_0xd15ba6,_0xca0a41)],'priority':0xbb8};}});const _0x298f30=({showActiveMarkers:_0x13fa12=!0x0,isAttributeSuggestion:_0x275268=!0x1}={})=>(_0x5c6d53,_0x1d3578,_0x26d18b)=>{if(!_0x1d3578['item'])return;const {id:_0x1a0245}=this['_splitMarkerName'](_0x1d3578['markerName']);if(_0x275268){const _0x4809b7=this['_suggestions']['get'](_0x1a0245),_0x23766f=this['_getAttributeKey'](_0x4809b7);if(!this['_isBlockAttribute'](_0x23766f))return;}if(_0x1d3578['item']['is']('selection'))return void _0x26d18b['consumable']['consume'](_0x1d3578['item'],_0x5c6d53['name']);const _0x3ce81a=_0x26d18b['mapper']['toViewElement'](_0x1d3578['item']);if(_0x1d3578['item']['is']('element')&&_0x307f20['model']['schema']['isBlock'](_0x1d3578['item'])&&!_0x3ce81a['getCustomProperty']('addHighlight')){_0x26d18b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ce81a),_0x26d18b['writer']['setAttribute']('data-suggestion',_0x1a0245,_0x3ce81a),_0x26d18b['mapper']['bindElementToMarker'](_0x3ce81a,_0x1d3578['markerName']),_0x13fa12&&(this['activeMarkers']['includes'](_0x1d3578['markerName'])?_0x26d18b['writer']['addClass']('ck-suggestion-marker--active',_0x3ce81a):_0x26d18b['writer']['removeClass']('ck-suggestion-marker--active',_0x3ce81a));for(const _0x3fa73c of _0x307f20['model']['createRangeIn'](_0x1d3578['item'])['getItems']())_0x26d18b['consumable']['consume'](_0x3fa73c,_0x5c6d53['name']);_0x26d18b['consumable']['consume'](_0x1d3578['item'],_0x5c6d53['name']);}};_0x307f20['conversion']['for']('dataDowncast')['add'](_0x2ab66e=>{_0x2ab66e['on']('addMarker:suggestion:formatBlock',(_0xe11d8f,_0xf2de95,_0x37f0fd)=>{_0x37f0fd['options']['showSuggestionHighlights']&&_0x298f30({'showActiveMarkers':!0x1})(_0xe11d8f,_0xf2de95,_0x37f0fd);},{'priority':'highest'});}),_0x307f20['conversion']['for']('dataDowncast')['add'](_0x24811b=>{_0x24811b['on']('addMarker:suggestion:attribute',(_0x4a60d1,_0x48b45a,_0x495de6)=>{_0x495de6['options']['showSuggestionHighlights']&&_0x298f30({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a60d1,_0x48b45a,_0x495de6);},{'priority':'highest'});}),_0x307f20['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xeb6acd,_0x3d5c99)=>_0x3d5c99['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xeb6acd['substr'](0xb)}}),_0x307f20['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c2999,{writer:_0x2382d1})=>{let _0x38efb7='suggestion:'+_0x5c2999['getAttribute']('suggestion-type')+':'+_0x5c2999['getAttribute']('id');return _0x5c2999['getAttribute']('marker-count')&&(_0x38efb7+=':'+_0x5c2999['getAttribute']('marker-count')),_0x2382d1['createElement']('$marker',{'data-name':_0x38efb7});}}),_0x307f20['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x2b0e44=>{_0x2b0e44['on']('addMarker:suggestion:formatBlock',_0x298f30(),{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x14f071=>{_0x14f071['on']('addMarker:suggestion:attribute',_0x298f30({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x5bf0e2=>{_0x5bf0e2['on']('removeMarker:suggestion:formatBlock',(_0x402f13,_0x5d8176,_0x58e649)=>{const _0x1f5b9c=_0x58e649['mapper']['markerNameToElements'](_0x5d8176['markerName']);if(_0x1f5b9c){for(const _0x5a7ee7 of _0x1f5b9c)_0x5a7ee7['getCustomProperty']('addHighlight')||(_0x58e649['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a7ee7),_0x58e649['writer']['removeAttribute']('data-suggestion',_0x5a7ee7),_0x58e649['mapper']['unbindElementFromMarkerName'](_0x5a7ee7,_0x5d8176['markerName']));}},{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x4cc7b8=>{_0x4cc7b8['on']('removeMarker:suggestion:attribute',(_0x315c64,_0x4bc62a,_0x309d67)=>{const _0x433888=_0x309d67['mapper']['markerNameToElements'](_0x4bc62a['markerName']);if(!_0x433888)return;const {id:_0x21cacc}=this['_splitMarkerName'](_0x4bc62a['markerName']),_0x291101=this['_suggestions']['get'](_0x21cacc),_0x32cbab=this['_getAttributeKey'](_0x291101);if(this['_isBlockAttribute'](_0x32cbab)){for(const _0x44c124 of _0x433888)_0x44c124['getCustomProperty']('addHighlight')||(_0x309d67['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44c124),_0x309d67['writer']['removeAttribute']('data-suggestion',_0x44c124),_0x309d67['mapper']['unbindElementFromMarkerName'](_0x44c124,_0x4bc62a['markerName']));}},{'priority':'high'});}),_0x307f20['model']['document']['registerPostFixer'](_0x56435b=>{let _0x27856b=!0x1;const _0x41fcef=Array['from'](_0x307f20['model']['document']['differ']['getChangedMarkers']()),_0x2a4f07=new Set();for(const {name:_0x29b7aa,data:_0x2be092}of _0x41fcef){const {group:_0x283207,type:_0x2c79fb,subType:_0x2e4fa3,id:_0x4102f5}=this['_splitMarkerName'](_0x29b7aa);if('suggestion'!==_0x283207)continue;const _0xda5b2d=this['_suggestions']['get'](_0x4102f5);if(null!=_0x2be092['newRange']){'formatInline'==_0x2c79fb&&(_0x27856b=_0x27856b||Et(_0x2be092['newRange'],_0x29b7aa,_0x56435b,_0x307f20['model']['schema']));const _0x475761='attribute'==_0x2c79fb&&this['_isBlockAttribute'](_0x2e4fa3['split']('|')[0x0]);if(_0x2be092['newRange']['isCollapsed']||'$graveyard'==_0x2be092['newRange']['root']['rootName']||'formatBlock'==_0x2c79fb&&!Ut(_0x2be092['newRange'])||_0x475761&&!Ut(_0x2be092['newRange'])||'deletion'==_0x2c79fb&&!(!Tt(_0x390684=_0x2be092['newRange'])&&!function(_0x12a0fc){return _0x12a0fc['start']['parent']==_0x12a0fc['end']['nodeBefore']&&_0x12a0fc['start']['isAtEnd'];}(_0x390684)))_0x56435b['removeMarker'](_0x29b7aa),_0x27856b=!0x0;else{if(!_0xda5b2d||!_0xda5b2d['isInContent'])continue;_0x2a4f07['add'](_0xda5b2d);}}}var _0x390684;return _0x2a4f07['size']>0x0&&(_0x27856b=!!this['_joinWithAdjacentSuggestions'](_0x2a4f07)||_0x27856b),_0x27856b;}),_0x307f20['model']['document']['registerPostFixer'](_0x4bd947=>{let _0x448fce=!0x1;for(const _0x5b9bc6 of _0x307f20['model']['document']['differ']['getChanges']())if('insert'==_0x5b9bc6['type'])for(const _0x1caec3 of this['_suggestions']['values']()){if(_0x1caec3['isMultiRange']||!_0x1caec3['isInContent'])continue;const _0x41bb7d='formatBlock'==_0x1caec3['type'],_0x46bf54=this['_getAttributeKey'](_0x1caec3),_0x578316=_0x46bf54&&this['_isBlockAttribute'](_0x46bf54);if(!_0x41bb7d&&!_0x578316)continue;const _0x1cfc80=_0x1caec3['getFirstRange']();if(_0x1cfc80['start']['parent']!=_0x1cfc80['end']['parent']&&!_0x1cfc80['end']['isAtEnd']){const _0x2f8e21=_0x307f20['model']['createPositionAt'](_0x1cfc80['start']['nodeAfter'],'end'),_0x33dce7=_0x307f20['model']['createRange'](_0x1cfc80['start'],_0x2f8e21);_0x4bd947['updateMarker'](_0x1caec3['getFirstMarker'](),{'range':_0x33dce7}),_0x448fce=!0x0;}}return _0x448fce;}),_0x307f20['model']['document']['registerPostFixer'](_0x1092b6=>this['_processAttributeChanges'](_0x1092b6)),_0x307f20['model']['document']['registerPostFixer'](_0x454e14=>!_0x454e14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x454e14)),_0x307f20['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x307f20['model']['document']['on']('change:data',(_0x4a6ac8,_0x28bc33)=>{if(!_0x28bc33['isLocal']||_0x28bc33['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x54fe4d=_0x307f20['model']['document']['differ']['getChanges']();if(0x0==_0x54fe4d['length'])return;const _0x7d9006=[],_0xa8c3a6=_0x54fe4d['filter'](_0x8d6a71=>'attribute'==_0x8d6a71['type']),_0x4af324=_0x54fe4d['filter'](_0x3af7f6=>'insert'==_0x3af7f6['type']&&'$text'!=_0x3af7f6['name']);for(const _0x5811f2 of _0xa8c3a6)this['_isRegisteredAttribute'](_0x5811f2['attributeKey'])&&_0x7d9006['push']({'key':_0x5811f2['attributeKey'],'newValue':_0x5811f2['attributeNewValue'],'oldValue':_0x5811f2['attributeOldValue'],'range':Ot(_0x5811f2['range'],_0x307f20['model'])});for(const _0x514f56 of _0x4af324){if('rename'!=_0x514f56['action']&&'refresh'!=_0x514f56['action'])continue;const _0x254ed6=Gt(_0x514f56['position']['nodeAfter'],_0x307f20['model']),_0xc0434=_0x514f56['before'];'rename'==_0x514f56['action']&&_0x7d9006['push']({'key':m,'newValue':_0x514f56['name'],'oldValue':_0xc0434['name'],'range':_0x254ed6});for(const [_0x44f5d4,_0x5e0c99]of _0xc0434['attributes']){if(!this['_isRegisteredAttribute'](_0x44f5d4))continue;const _0x3c039b=_0x514f56['attributes']['get'](_0x44f5d4);_0x5e0c99!==_0x3c039b&&_0x7d9006['push']({'key':_0x44f5d4,'newValue':_0x3c039b,'oldValue':_0x5e0c99,'range':_0x254ed6});}for(const [_0x239b3f,_0x2ed62a]of _0x514f56['attributes'])this['_isRegisteredAttribute'](_0x239b3f)&&(_0xc0434['attributes']['has'](_0x239b3f)||_0x7d9006['push']({'key':_0x239b3f,'newValue':_0x2ed62a,'oldValue':null,'range':_0x254ed6}));}0x0!=_0x7d9006['length']&&_0x307f20['model']['enqueueChange'](_0x28bc33,_0x50ad9b=>{const _0x378591=_0x5ed2a0();for(const {range:_0x3207c5,key:_0x119ab9,oldValue:_0x37f87e,newValue:_0x49fdf4}of _0x7d9006)this['markAttributeChange'](_0x3207c5,_0x119ab9,_0x37f87e,_0x49fdf4,{'groupId':_0x378591});this['_reduceExistingSuggestions'](_0x50ad9b,_0x7d9006);});},{'priority':'lowest'}),_0x307f20['model']['markers']['on']('update:suggestion',(_0x33301c,_0x28eb65,_0x35f799)=>{if(null==_0x35f799){const {id:_0x8204b6}=this['_splitMarkerName'](_0x28eb65['name']),_0x2eb594=this['_suggestions']['get'](_0x8204b6);_0x2eb594&&_0x2eb594['addMarkerName'](_0x28eb65['name']);}}),_0x307f20['model']['document']['on']('change:data',()=>{const _0x59bc45=Array['from'](_0x307f20['model']['document']['differ']['getChangedMarkers']())['filter'](_0x29b425=>'suggestion'===this['_splitMarkerName'](_0x29b425['name'])['group']);if(0x0===_0x59bc45['length'])return;_0x59bc45['sort']((_0x551abb,_0x5f7562)=>{const _0x23cbdb=_0x551abb['data']['oldRange'],_0x105d94=_0x5f7562['data']['oldRange'];return null===_0x23cbdb&&null===_0x105d94?0x0:null===_0x23cbdb&&null!==_0x105d94?-0x1:null!==_0x23cbdb&&null===_0x105d94?0x1:_0x23cbdb['start']['isBefore'](_0x105d94['start'])?-0x1:0x1;});const _0x28c029=new Set(),_0x216206=new Set();for(const {name:_0xd2bf3b,data:_0x52fd1a}of _0x59bc45){const {id:_0x1b90c1}=this['_splitMarkerName'](_0xd2bf3b);if(null===_0x52fd1a['oldRange']){const _0x4a22e5=this['_handleNewSuggestionMarker'](_0xd2bf3b);_0x216206['add'](_0x4a22e5);}else{const _0x153728=this['_suggestions']['get'](_0x1b90c1);null!==_0x52fd1a['newRange']||_0x153728['isInContent']?(_0x28c029['add'](_0x153728['head']),_0x216206['add'](_0x153728)):this['_removeSuggestion'](_0x153728);}}_0x216206['size']>0x0&&this['_refreshSuggestionsChain'](_0x216206);for(const _0x3e3f14 of _0x28c029)this['fire']('suggestionChanged',_0x3e3f14);}),_0x307f20['model']['on']('applyOperation',(_0x4da63e,_0x562e30)=>{const _0x2d1cd1=_0x562e30[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d1cd1['isDocumentOperation'])return;if(_0x2d1cd1['batch']['isUndo']||!_0x2d1cd1['batch']['isLocal'])return;let _0x49be26,_0x4ef1e5;switch(_0x2d1cd1['type']){case'insert':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['position']),_0x4ef1e5=_0x49be26['getShiftedBy'](_0x2d1cd1['howMany']);break;case'split':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['splitPosition']),_0x4ef1e5=_0x307f20['model']['createPositionAt'](_0x2d1cd1['moveTargetPosition']);break;case'move':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['targetPosition']),_0x4ef1e5=_0x49be26['getShiftedBy'](_0x2d1cd1['howMany']);break;default:return;}const _0x5149af=_0x307f20['model']['createRange'](_0x49be26,_0x4ef1e5);_0x307f20['model']['change'](()=>{for(const {suggestion:_0x2f4fec,meta:_0x3338e2}of this['_findSuggestions'](_0x5149af)){if(_0x2f4fec['isMultiRange'])continue;if('formatInline'==_0x2f4fec['type'])continue;const _0x1d0d8b=this['_getAttributeKey'](_0x2f4fec);if(_0x1d0d8b&&this['_isBlockAttribute'](_0x1d0d8b)&&'split'!=_0x2d1cd1['type'])continue;const _0x30f098=_0x2f4fec['data']&&_0x2f4fec['data']['multipleBlocks'];('formatBlock'!=_0x2f4fec['type']||'split'==_0x2d1cd1['type']&&!_0x30f098)&&(_0x3338e2['containsRangeInObject']||'insertion'==_0x2f4fec['type']&&_0x3338e2['isOwn']||_0x2f4fec['getFirstRange']()['containsRange'](_0x5149af)&&this['_breakSuggestionMarker'](_0x2f4fec,_0x49be26,_0x4ef1e5));}});},{'priority':'lowest'}),_0x307f20['model']['on']('deleteContent',(_0x518c2c,_0x5f0c5f)=>{const _0xd11e6b=_0x5f0c5f[0x0],_0xe47cc2=_0x5f0c5f[0x1];if(_0xe47cc2&&_0xe47cc2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd11e6b['isCollapsed'])return;const _0x94e875=_0x307f20['model']['schema'],{start:_0x1d16b3,end:_0x36b172}=_0xd11e6b['getFirstRange'](),_0x22b6f6=_0x1d16b3['nodeAfter']&&_0x94e875['isLimit'](_0x1d16b3['nodeAfter'])?null:_0x94e875['getNearestSelectionRange'](_0x1d16b3,'forward'),_0xbd8c66=_0x36b172['nodeBefore']&&_0x94e875['isLimit'](_0x36b172['nodeBefore'])?null:_0x94e875['getNearestSelectionRange'](_0x36b172,'backward'),_0x22b624=_0x307f20['model']['createRange'](_0x22b6f6?_0x22b6f6['start']:_0x1d16b3,_0xbd8c66?_0xbd8c66['end']:_0x36b172);_0x307f20['model']['change'](_0x34a7c4=>{this['markDeletion'](_0x22b624);const _0x161938=_0x307f20['model']['schema']['getNearestSelectionRange'](_0x22b624['start']);_0xd11e6b['is']('documentSelection')?_0x34a7c4['setSelection'](_0x161938):_0xd11e6b['setTo'](_0x161938);}),_0x518c2c['stop']();},{'priority':_0x2ff03c['normal']+0xa}),_0x307f20['model']['on']('insertContent',(_0x4d3a2b,_0x2abf23)=>{const _0x290780=_0x2abf23[_0x2abf23['length']-0x1];_0x290780&&_0x290780['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x307f20['model']['change'](()=>{let _0x2a174a=_0x307f20['model']['insertContent'](_0x2abf23[0x0],_0x2abf23[0x1],_0x2abf23[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a174a)return;_0x4d3a2b['return']=_0x2a174a['clone']();const _0x542bfc=_0x2a174a['end']['nodeBefore'],_0xc363f4=_0x307f20['model']['schema'];_0x542bfc&&_0xc363f4['isBlock'](_0x542bfc)&&!_0xc363f4['isObject'](_0x542bfc)&&(_0x2a174a=_0x307f20['model']['createRange'](_0x2a174a['start'],_0x307f20['model']['createPositionAt'](_0x542bfc,'end'))),this['markInsertion'](_0x2a174a);}),_0x4d3a2b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21fb90=new $(_0x307f20,this['_suggestions']);_0x307f20['commands']['add']('acceptSuggestion',_0x21fb90),this['enableCommand']('acceptSuggestion');const _0x880497=new B(_0x307f20,this['_suggestions']);_0x307f20['commands']['add']('discardSuggestion',_0x880497),this['enableCommand']('discardSuggestion'),_0x307f20['commands']['add']('acceptAllSuggestions',new x(_0x307f20,_0x21fb90,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x307f20['commands']['add']('discardAllSuggestions',new x(_0x307f20,_0x880497,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x307f20['commands']['add']('acceptSelectedSuggestions',new R(_0x307f20,_0x21fb90,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x307f20['commands']['add']('discardSelectedSuggestions',new R(_0x307f20,_0x880497,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ec242=_0x307f20['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ec242,'addComment',(_0xc8501f,{threadId:_0x443106})=>{const _0x168264=this['_suggestions']['get'](_0x443106);_0x168264&&_0x168264['commentThread']&&0x1===_0x168264['commentThread']['length']&&this['_updateSuggestionData'](_0x443106,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ec242,'removeComment',(_0x526553,{threadId:_0x45e8ba})=>{const _0x32cba6=this['_suggestions']['get'](_0x45e8ba);_0x32cba6&&_0x32cba6['commentThread']&&!_0x32cba6['commentThread']['length']&&this['_updateSuggestionData'](_0x45e8ba,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x178775){if(this['_adapter'])throw new _0x274ec5('track-changes-adapter-already-set',this);this['_adapter']=_0x178775;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4bbe00=!0x1,toJSON:_0x4dcc4c=!0x1}={}){const _0x16ca44=[];for(const _0x108fbf of this['_suggestions']['values']())_0x4bbe00&&!_0x108fbf['isInContent']||_0x16ca44['push'](_0x108fbf);return _0x4dcc4c?_0x16ca44['map'](_0x571450=>_0x571450['toJSON']()):_0x16ca44;}['getSuggestion'](_0x34bd34){const _0x2fb04d=this['_suggestions']['get'](_0x34bd34);if(!_0x2fb04d)throw new _0x274ec5('track-changes-suggestion-not-found',this);return _0x2fb04d;}['hasSuggestion'](_0x17b42f){return this['_suggestions']['has'](_0x17b42f);}['addSuggestionData'](_0x28b8d0){const {authorId:_0x1480b,id:_0xae23a5,attributes:_0x5af6e4}=_0x28b8d0,[_0x31da28,_0x5b0e7a]=_0x28b8d0['type']['split'](':'),_0x11effc=this['_suggestions']['get'](_0xae23a5)||this['_createSuggestion'](_0x31da28,_0x5b0e7a,_0xae23a5,_0x1480b,_0x5af6e4);if(this['_addThreadToSuggestion'](_0x11effc),this['_checkSuggestionCorrectness'](_0x11effc,_0x31da28,_0x5b0e7a||null,_0x1480b),_0x11effc['createdAt']=_0x28b8d0['createdAt'],_0x11effc['_isDataLoaded']=!0x0,_0x5af6e4&&_0x5af6e4['@external']){const _0x239a0f=_0x5af6e4['@external'],_0x563cf8=this['_getExternalAuthor'](_0x239a0f['authorName']);_0x11effc['authoredAt']=_0x239a0f['createdAt'],_0x11effc['author']=_0x563cf8,_0x11effc['isExternal']=!0x0;}else _0x11effc['authoredAt']=_0x28b8d0['createdAt'];switch(_0x28b8d0['data']&&(_0x11effc['data']=_0x28b8d0['data']),_0x28b8d0['attributes']&&(_0x11effc['attributes']=_0x28b8d0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x11effc['_saved']=!0x0),this['_suggestionState']['get'](_0x11effc)){case'notReady':this['_suggestionState']['set'](_0x11effc,'dataReady');break;case'markerReady':_0x11effc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x11effc])),this['_refreshSuggestionsChain'](new Set([_0x11effc])),this['_suggestionState']['set'](_0x11effc,'ready'),this['fire']('suggestionLoaded',_0x11effc)):this['_suggestionState']['set'](_0x11effc,'removed');}return _0x11effc;}['acceptSuggestion'](_0x1cbf55){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2559cc of _0x1cbf55['getAllAdjacentSuggestions']())_0x2559cc['accept']();});});}['discardSuggestion'](_0x376de6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bb587 of _0x376de6['getAllAdjacentSuggestions']())_0x2bb587['discard']();});});}['enableCommand'](_0x3bab6e,_0x176451){const _0x545c58=this['editor']['commands']['get'](_0x3bab6e);if(!_0x545c58)throw new _0x274ec5('track-changes-command-not-found',this,{'commandName':_0x3bab6e});if(this['_enabledCommands']['has'](_0x545c58))throw new _0x274ec5('track-changes-enable-command-twice',this,{'commandName':_0x3bab6e});this['_enabledCommands']['add'](_0x545c58),_0x176451&&_0x545c58['on']('execute',(_0x115236,_0x5f19e7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f19e7['length']>0x0&&_0x5f19e7[_0x5f19e7['length']-0x1]&&_0x5f19e7[_0x5f19e7['length']-0x1]['forceDefaultExecution']?_0x5f19e7['pop']():(_0x115236['return']=_0x176451((..._0x127022)=>_0x545c58['execute'](..._0x127022,{'forceDefaultExecution':!0x0}),..._0x5f19e7),_0x115236['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x224c21){let _0x50e5ab,_0x9ee2b1;const _0x17059e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50e5ab=_0x224c21();}catch(_0x45d04f){_0x9ee2b1=_0x45d04f;}return _0x17059e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9ee2b1&&_0x274ec5['rethrowUnexpectedError'](_0x9ee2b1,this),_0x50e5ab;}['markInsertion'](_0x3aa4e6,_0x5370bf=null,_0x3489b={}){if(_0x3aa4e6['isCollapsed'])return null;const _0x50fdd1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x20352c,meta:_0x49df70}of this['_findSuggestions'](_0x3aa4e6,'insertion'))if(_0x49df70['isOwn']){if(!_0x49df70['isNextTo']){if(_0x49df70['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x20352c,_0x3489b))continue;return _0x20352c;}if(Lt(_0x20352c,_0x3489b))return _0x20352c;this['_breakSuggestionMarker'](_0x20352c,_0x3aa4e6['start'],_0x3aa4e6['end']);break;}if(_0x5370bf==_0x20352c['subType']&&Lt(_0x20352c,_0x3489b)){const _0x38603c=_0x20352c['getFirstRange']();return _0x38603c['start']['isEqual'](_0x3aa4e6['end'])?this['_setSuggestionRange'](_0x20352c,this['_model']['createRange'](_0x3aa4e6['start'],_0x38603c['end'])):this['_setSuggestionRange'](_0x20352c,this['_model']['createRange'](_0x38603c['start'],_0x3aa4e6['end'])),_0x20352c;}}const _0x37136e=_0x5ed2a0(),_0xf7a5e5=_0x50fdd1['id'],_0x11af72=_0x5370bf?'insertion:'+_0x5370bf:'insertion',_0x45f5f4=this['_setSuggestionData']({'id':_0x37136e,'type':_0x11af72,'createdAt':new Date(),'authorId':_0xf7a5e5,'attributes':_0x3489b});return this['_addSuggestionMarker'](_0x11af72,_0x37136e,_0xf7a5e5,_0x3aa4e6),_0x45f5f4;}['markMultiRangeInsertion'](_0x32992c,_0x4e8fdd='multi',_0x409704={}){const _0x47207f=this['editor']['plugins']['get']('Users')['me'],_0x350685=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4e8fdd,'join');for(const _0x4e927f of this['getSuggestions']())if(_0x4e927f['author']['id']==_0x47207f['id']&&'insertion'==_0x4e927f['type']&&_0x4e927f['subType']==_0x4e8fdd&&Lt(_0x4e927f,_0x409704)&&(_0x350685(_0x4e927f['getRanges'](),_0x32992c)||_0x350685(_0x32992c,_0x4e927f['getRanges']()))){for(const _0x5dcbf5 of _0x32992c)_0x4e927f['addRange'](_0x5dcbf5);return _0x4e927f;}for(const {suggestion:_0x37e221,meta:_0x971257}of this['_findSuggestions'](_0x32992c,'insertion')){if(!_0x971257['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x971257['containsRangeInObject'])continue;if(!Lt(_0x37e221,_0x409704))continue;let _0x44fdc8=!0x0;for(const _0x18bdcd of _0x37e221['getRanges']())for(const _0x5ab787 of _0x32992c)if(!_0x18bdcd['containsRange'](_0x5ab787)){_0x44fdc8=!0x1;break;}if(_0x44fdc8)return _0x37e221;}const _0x333e06=_0x5ed2a0(),_0xaa2269=_0x47207f['id'],_0x30d1c7='insertion:'+_0x4e8fdd,_0x5c3f9d=this['_setSuggestionData']({'id':_0x333e06,'type':_0x30d1c7,'createdAt':new Date(),'authorId':_0xaa2269,'attributes':_0x409704});for(const _0xb232c2 of _0x32992c)this['_addSuggestionMarker'](_0x30d1c7,_0x333e06,_0xaa2269,_0xb232c2,u['getMultiRangeId']());return _0x5c3f9d;}['markInlineFormat'](_0x5df9df,_0x3f5b67,_0x5e28dd=null,_0x58ce08={}){if(_0x5e28dd=_0x5e28dd||Vt(_0x3f5b67),_0x5df9df['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57f163=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e28dd,'accept');return this['forceDefaultExecution'](()=>_0x57f163([_0x5df9df],_0x3f5b67,_0x58ce08)),null;}const _0x248169=this['editor']['plugins']['get']('Users')['me'],_0x669506=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4b1319,meta:_0xa8692f}of this['_findSuggestions'](_0x5df9df,'insertion'))_0xa8692f['isOwn']&&!_0xa8692f['isInsideObject']&&_0x669506['push'](..._0x4b1319['getRanges']());}const _0x54ddc1=function(_0x470289,_0xf982f6){const _0x279c70=[];for(const _0x1ce730 of _0xf982f6){const _0x3bd5a0=_0x470289['getIntersection'](_0x1ce730);_0x3bd5a0&&_0x279c70['push'](_0x3bd5a0);}return _0x279c70;}(_0x5df9df,_0x669506),_0x25bd70=function(_0x195dc7,_0x3f6de8){const _0x39c7f3=[_0x195dc7];for(const _0x5bb397 of _0x3f6de8){let _0x5ae881=0x0;for(;_0x5ae881<_0x39c7f3['length'];){const _0x27d9e9=_0x39c7f3[_0x5ae881]['getDifference'](_0x5bb397);_0x39c7f3['splice'](_0x5ae881,0x1,..._0x27d9e9),_0x5ae881+=_0x27d9e9['length'];}}return _0x39c7f3;}(_0x5df9df,_0x669506);_0x54ddc1['length']&&this['_model']['change'](()=>{for(const _0x2a10c7 of _0x54ddc1){const _0x4fcb6c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e28dd,'accept');this['forceDefaultExecution'](()=>_0x4fcb6c([_0x2a10c7],_0x3f5b67,_0x58ce08));}});for(const _0x412969 of _0x25bd70){let _0x10c17e=null,_0x120636=_0x412969['start'],_0x3a323b=_0x412969['end'];for(const {suggestion:_0x474eff,meta:_0x13fbea}of this['_findSuggestions'](_0x412969,'formatInline')){if(!_0x13fbea['isOwn'])continue;if(_0x474eff['subType']!=_0x5e28dd)continue;if(!Lt(_0x474eff,_0x58ce08))continue;const _0x1292a3=_0x474eff['getFirstRange']();if(_0x1292a3['containsRange'](_0x412969,!0x0))return null;_0x120636=_0x120636['isBefore'](_0x1292a3['start'])?_0x120636:_0x1292a3['start'],_0x3a323b=_0x3a323b['isAfter'](_0x1292a3['end'])?_0x3a323b:_0x1292a3['end'],_0x10c17e?_0x1292a3['start']['isBefore'](_0x10c17e['getFirstRange']()['start'])?(_0x10c17e['removeMarkers'](),_0x10c17e=_0x474eff):_0x474eff['removeMarkers']():_0x10c17e=_0x474eff;}const _0x3dbe8f=this['_model']['createRange'](_0x120636,_0x3a323b);if(_0x10c17e)this['_setSuggestionRange'](_0x10c17e,_0x3dbe8f);else{const _0x12a87a=_0x5ed2a0(),_0x8163b=_0x248169['id'];this['_setSuggestionData']({'id':_0x12a87a,'type':'formatInline:'+_0x5e28dd,'data':_0x3f5b67,'createdAt':new Date(),'authorId':_0x8163b,'attributes':_0x58ce08}),this['_addSuggestionMarker']('formatInline:'+_0x5e28dd,_0x12a87a,_0x8163b,_0x3dbe8f);}}return null;}['markBlockFormat'](_0x1d181b,_0x45d1fe,_0x1bb0f5=[],_0x3a6997=null,_0x3c5700={}){_0x45d1fe['formatGroupId']||(_0x45d1fe['formatGroupId']=_0x45d1fe['commandName']),_0x45d1fe['multipleBlocks']=_0x1d181b['is']('range'),_0x3a6997=_0x3a6997||Vt(_0x45d1fe);const _0x1685f9=_0x1bb0f5['map'](_0xbd7663=>Gt(_0xbd7663,this['_model'])),_0x18dcb3=_0x1d181b['is']('range')?_0x1d181b:Gt(_0x1d181b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d2914=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a6997,'accept');return this['forceDefaultExecution'](()=>_0x3d2914([_0x18dcb3],_0x45d1fe,_0x3c5700)),null;}_0x1685f9['push'](_0x18dcb3);let _0x245e21=!0x0;for(const _0x37b4c2 of _0x1685f9)if(!this['_rangeIsInLocalUserInsertion'](_0x37b4c2)){_0x245e21=!0x1;break;}if(_0x245e21&&'always'!==this['_trackFormatChanges']){const _0x47f006=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a6997,'accept');return this['forceDefaultExecution'](()=>_0x47f006([_0x18dcb3],_0x45d1fe,_0x3c5700)),null;}let _0x177f37=null,_0x328f37=_0x18dcb3['start'],_0x12ec23=_0x18dcb3['end'];for(const {suggestion:_0x4217b,meta:_0x205bb9}of this['_findSuggestions'](_0x18dcb3,'formatBlock')){if(!_0x205bb9['isOwn'])continue;if(_0x205bb9['isNextTo']||_0x205bb9['containsRangeInObject']||_0x205bb9['isInsideObject'])continue;if(_0x4217b['data']['formatGroupId']!=_0x45d1fe['formatGroupId'])continue;if(!Lt(_0x4217b,_0x3c5700))continue;const _0x97b266=_0x4217b['getFirstRange']();if(_0x4217b['subType']==_0x3a6997){if(_0x97b266['containsRange'](_0x18dcb3,!0x0))return null;_0x328f37=_0x328f37['isBefore'](_0x97b266['start'])?_0x328f37:_0x97b266['start'],_0x12ec23=_0x12ec23['isAfter'](_0x97b266['end'])?_0x12ec23:_0x97b266['end'],_0x177f37?_0x97b266['start']['isBefore'](_0x177f37['getFirstRange']()['start'])?(_0x177f37['removeMarkers'](),_0x177f37=_0x4217b):_0x4217b['removeMarkers']():_0x177f37=_0x4217b;}else{const _0x2281a6=_0x18dcb3['getIntersection'](_0x97b266);this['_cutOutSuggestionMarker'](_0x4217b,_0x2281a6);}}const _0x652f5a=this['editor']['plugins']['get']('Users')['me'],_0x4c298a=_0x5ed2a0(),_0x434ed3=_0x652f5a['id'];if(_0x177f37)return this['_setSuggestionRange'](_0x177f37,this['_model']['createRange'](_0x328f37,_0x12ec23)),_0x177f37;{const _0xeb4838=this['_setSuggestionData']({'id':_0x4c298a,'type':'formatBlock:'+_0x3a6997,'data':_0x45d1fe,'createdAt':new Date(),'authorId':_0x434ed3,'attributes':_0x3c5700});return this['_addSuggestionMarker']('formatBlock:'+_0x3a6997,_0x4c298a,_0x434ed3,this['_model']['createRange'](_0x328f37,_0x12ec23)),_0xeb4838;}}['markMultiRangeBlockFormat'](_0x2dc643,_0x1a6028,_0x2acc3d=[],_0x309fcb=null,_0x2a1282={}){_0x1a6028['formatGroupId']||(_0x1a6028['formatGroupId']=_0x1a6028['commandName']);const _0x137564=_0x2dc643[0x0];_0x1a6028['multipleBlocks']=_0x137564['is']('range'),_0x309fcb=_0x309fcb||Vt(_0x1a6028);const _0x1ff185=_0x2acc3d['map'](_0x4da8f1=>Gt(_0x4da8f1,this['_model'])),_0x4564e7=_0x137564['is']('range')?_0x2dc643:_0x2dc643['map'](_0x23ac6f=>Gt(_0x23ac6f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x291c72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'accept');return this['forceDefaultExecution'](()=>_0x291c72(_0x4564e7,_0x1a6028,_0x2a1282)),null;}_0x1ff185['push'](..._0x4564e7);let _0x4c5fc4=!0x0;for(const _0x3b224f of _0x1ff185)if(!this['_rangeIsInLocalUserInsertion'](_0x3b224f)){_0x4c5fc4=!0x1;break;}if(_0x4c5fc4&&'always'!==this['_trackFormatChanges']){const _0x2ba1f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'accept');return this['forceDefaultExecution'](()=>_0x2ba1f8(_0x4564e7,_0x1a6028,_0x2a1282)),null;}const _0xbc4dbc=this['editor']['plugins']['get']('Users')['me'];for(const _0x30a748 of this['getSuggestions']()){if(_0x30a748['author']['id']!=_0xbc4dbc['id'])continue;if('formatBlock'!=_0x30a748['type']||_0x30a748['data']['formatGroupId']!=_0x1a6028['formatGroupId'])continue;if(!Lt(_0x30a748,_0x2a1282))continue;const _0x22b735=_0x30a748['subType']==_0x309fcb;for(let _0x1168c1=0x0;_0x1168c1<_0x4564e7['length'];_0x1168c1++){const _0x233edc=_0x4564e7[_0x1168c1];for(const _0x27295e of _0x30a748['getMarkers']()){const _0x3de7e1=_0x27295e['getRange']();if(_0x233edc['isEqual'](_0x3de7e1)){_0x22b735?(_0x4564e7['splice'](_0x1168c1,0x1),_0x1168c1--):_0x30a748['removeMarker'](_0x27295e['name']);break;}}}}if(0x0==_0x4564e7['length'])return null;const _0x4dbb83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'join');for(const _0x860542 of this['getSuggestions']())if(_0x860542['author']['id']==_0xbc4dbc['id']&&'formatBlock'==_0x860542['type']&&_0x860542['data']['formatGroupId']==_0x1a6028['formatGroupId']&&_0x860542['subType']==_0x309fcb&&Lt(_0x860542,_0x2a1282)&&(_0x4dbb83(_0x860542['getRanges'](),_0x4564e7)||_0x4dbb83(_0x4564e7,_0x860542['getRanges']()))){for(const _0x3e846f of _0x4564e7)_0x860542['addRange'](_0x3e846f);return _0x860542;}const _0xd31f4a=_0x5ed2a0(),_0x4be06e=_0xbc4dbc['id'],_0x266ed1='formatBlock:'+_0x309fcb,_0x402907=this['_setSuggestionData']({'id':_0xd31f4a,'type':_0x266ed1,'data':_0x1a6028,'createdAt':new Date(),'authorId':_0x4be06e,'attributes':_0x2a1282});for(const _0x1abd14 of _0x4564e7)this['_addSuggestionMarker'](_0x266ed1,_0xd31f4a,_0x4be06e,_0x1abd14,u['getMultiRangeId']());return _0x402907;}['markDeletion'](_0x1e5fe0,_0x57b27b=null,_0x211a5b={}){if(_0x1e5fe0['isCollapsed'])return null;const _0xcf863c=this['editor']['plugins']['get']('Users')['me'],_0x2ddf56=new _0xe90ba7(_0x1e5fe0['start'],_0x1e5fe0['end']);for(const {suggestion:_0x19314e,meta:_0x196b72}of this['_findSuggestions'](_0x2ddf56,'insertion'))if(_0x196b72['isOwn']&&!_0x196b72['isNextTo']){if(_0x19314e['isMultiRange']){const _0x466b6b=_0x19314e['getRanges']()['filter'](_0x415976=>'$graveyard'!=_0x415976['root']['rootName']);_0x466b6b['every'](_0x24d56d=>_0x2ddf56['containsRange'](_0x24d56d,!0x0))&&_0x19314e['discard']();if(_0x466b6b['some'](_0x17e07d=>_0x17e07d['containsRange'](_0x2ddf56,!0x0))){const _0xd2ed37=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57b27b,'accept');return this['forceDefaultExecution'](()=>_0xd2ed37([_0x2ddf56],null,_0x211a5b)),null;}}else{const _0x171ac9=_0x2ddf56['getIntersection'](_0x19314e['getFirstRange']());null!==_0x171ac9&&_0x19314e['_onDiscard']([_0x171ac9],null,_0x211a5b);}}if(_0x2ddf56['detach'](),_0x2ddf56['isCollapsed']||'$graveyard'==_0x2ddf56['root']['rootName'])return null;let _0x1368a4=null,_0x5edddb=_0x2ddf56['start'],_0x393366=_0x2ddf56['end'];const _0x85e8b4=this['_findSuggestions'](_0x2ddf56,'deletion');for(const {suggestion:_0x58ed0a,meta:_0x4b4dcf}of _0x85e8b4){const _0x87672f=this['_model']['createRange'](_0x5edddb,_0x393366);if(_0x4b4dcf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b4dcf['containsRangeInObject']&&!_0x4b4dcf['isInsideObject'])){if(_0x58ed0a['isMultiRange']){if(!Lt(_0x58ed0a,_0x211a5b))continue;let _0x266c20=!0x0;for(const _0x1c3669 of _0x58ed0a['getRanges']()){if(_0x1c3669['containsRange'](_0x87672f,!0x0))return _0x58ed0a;_0x87672f['containsRange'](_0x1c3669)||(_0x266c20=!0x1);}_0x266c20&&_0x58ed0a['discard']();}else{const _0x472cf6=_0x58ed0a['getFirstRange']();if(_0x472cf6['containsRange'](_0x87672f,!0x0))return _0x58ed0a;if(!Lt(_0x58ed0a,_0x211a5b)){_0x87672f['containsRange'](_0x472cf6)?_0x58ed0a['removeMarkers']():_0x472cf6['containsPosition'](_0x5edddb)?_0x5edddb=_0x472cf6['end']:_0x472cf6['containsPosition'](_0x393366)&&(_0x393366=_0x472cf6['start']);continue;}_0x5edddb=_0x5edddb['isBefore'](_0x472cf6['start'])?_0x5edddb:_0x472cf6['start'],_0x393366=_0x393366['isAfter'](_0x472cf6['end'])?_0x393366:_0x472cf6['end'],_0x211a5b=Object['assign']({},_0x58ed0a['attributes']),_0x1368a4?_0x472cf6['start']['isBefore'](_0x1368a4['getFirstRange']()['start'])?(_0x1368a4['removeMarkers'](),_0x1368a4=_0x58ed0a):_0x58ed0a['removeMarkers']():_0x1368a4=_0x58ed0a;}}}if(_0x1368a4)return this['_setSuggestionRange'](_0x1368a4,this['_model']['createRange'](_0x5edddb,_0x393366)),_0x1368a4;{const _0x4b3c59=_0x5ed2a0(),_0x5d1faa=this['_model']['createRange'](_0x5edddb,_0x393366),_0x53b0b2=_0xcf863c['id'],_0x4b134f=_0x57b27b?'deletion:'+_0x57b27b:'deletion',_0x52ec5d=this['_setSuggestionData']({'id':_0x4b3c59,'type':_0x4b134f,'createdAt':new Date(),'authorId':_0x53b0b2,'attributes':_0x211a5b});return this['_addSuggestionMarker'](_0x4b134f,_0x4b3c59,_0x53b0b2,_0x5d1faa),_0x52ec5d;}}['markMultiRangeDeletion'](_0x4faa14,_0x25f81c='multi',_0x34c680={}){const _0xe0cade=this['editor']['plugins']['get']('Users')['me'],_0x5186b4=_0x4faa14['map'](_0x3fecbd=>new _0xe90ba7(_0x3fecbd['start'],_0x3fecbd['end'])),_0xa63b14=new Set();for(const {suggestion:_0x2e67c6,meta:_0x4673ff}of this['_findSuggestions'](_0x5186b4,'insertion'))_0x4673ff['isOwn']&&!_0x4673ff['isNextTo']&&_0xa63b14['add'](_0x2e67c6);for(const _0x499bce of _0xa63b14)if(_0x499bce['isMultiRange']){const _0x5ad8be=_0x499bce['getRanges']();(!_0x499bce['attributes']||!_0x499bce['attributes']['skipNestingCheck'])&&(_0x5ad8be['every'](_0x3f313e=>_0x5186b4['some'](_0x5665c3=>_0x5665c3['containsRange'](_0x3f313e,!0x0)))&&_0x499bce['discard']());if(_0x5186b4['every'](_0x495421=>_0x5ad8be['some'](_0x43ef26=>_0x43ef26['containsRange'](_0x495421,!0x0)))){const _0x364591=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'accept');return this['forceDefaultExecution'](()=>_0x364591(_0x4faa14,null,_0x34c680)),null;}}else{const _0x1befd4=_0x499bce['getFirstRange']();_0x5186b4['some'](_0x6a2478=>_0x6a2478['containsRange'](_0x1befd4,!0x0))&&_0x499bce['discard']();if(_0x5186b4['every'](_0x541be0=>_0x1befd4['containsRange'](_0x541be0,!0x0))){const _0x18ee6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'accept');return this['forceDefaultExecution'](()=>_0x18ee6a(_0x5186b4,null,_0x34c680)),null;}}const _0x55e4d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'join');let _0x251cec=null;for(const _0x109fd6 of this['getSuggestions']())if(_0x109fd6['author']['id']==_0xe0cade['id']&&_0x109fd6['isInContent']&&'deletion'==_0x109fd6['type']&&_0x109fd6['subType']==_0x25f81c&&Lt(_0x109fd6,_0x34c680)&&(_0x55e4d9(_0x109fd6['getRanges'](),_0x5186b4)||_0x55e4d9(_0x5186b4,_0x109fd6['getRanges']()))){if(_0x251cec){if(_0x109fd6['commentThread']&&_0x109fd6['commentThread']['length'])continue;for(const _0x450f5c of _0x109fd6['getRanges']())_0x251cec['isIntersectingWithRange'](_0x450f5c)||_0x251cec['addRange'](_0x450f5c);_0x109fd6['removeMarkers']();}else{_0x251cec=_0x109fd6;for(const _0x4021ce of _0x5186b4)_0x109fd6['isIntersectingWithRange'](_0x4021ce)||_0x109fd6['addRange'](_0x4021ce);}}if(_0x251cec)return _0x251cec;_0xa63b14['clear']();for(const {suggestion:_0x115317,meta:_0x1f1376}of this['_findSuggestions'](_0x5186b4,'deletion'))_0x1f1376['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f1376['containsRangeInObject']&&!_0x1f1376['isInsideObject'])&&Lt(_0x115317,_0x34c680)&&_0xa63b14['add'](_0x115317);for(const _0x56870c of _0xa63b14){const _0x546ab6=_0x56870c['getRanges']();if(!_0x34c680||!_0x34c680['skipNestingCheck']){if(_0x5186b4['every'](_0x288bea=>_0x546ab6['some'](_0xfe9b4d=>_0xfe9b4d['containsRange'](_0x288bea,!0x0))))return _0x56870c;}(!_0x56870c['attributes']||!_0x56870c['attributes']['skipNestingCheck'])&&(_0x546ab6['every'](_0x38f95b=>_0x5186b4['some'](_0x540da0=>_0x540da0['containsRange'](_0x38f95b,!0x0)))&&_0x56870c['discard']());}const _0x7783c3=_0x5ed2a0(),_0x2c037c=_0xe0cade['id'],_0x546fab='deletion:'+_0x25f81c,_0x1e6476=this['_setSuggestionData']({'id':_0x7783c3,'type':_0x546fab,'createdAt':new Date(),'authorId':_0x2c037c,'attributes':_0x34c680});for(const _0x3ee4e8 of _0x5186b4)_0x3ee4e8['detach'](),_0x3ee4e8['isCollapsed']||'$graveyard'==_0x3ee4e8['root']['rootName']||this['_addSuggestionMarker'](_0x546fab,_0x7783c3,_0x2c037c,_0x3ee4e8,u['getMultiRangeId']());return _0x1e6476;}['markAttributeChange'](_0x19d0a7,_0xda8f94,_0x473869,_0x5d114,_0x20e3f5){if(_0x19d0a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2237c2=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e3ba5=Array['from'](this['_suggestions']['values']())['filter'](_0x13886a=>'attribute'==_0x13886a['type']&&_0x13886a['data']['key']==_0xda8f94&&_0x13886a['isIntersectingWithRange'](_0x19d0a7));if('default'===this['_trackFormatChanges']){const _0x3168be=this['_findSuggestions'](_0x19d0a7,'insertion')['filter'](({meta:_0xf8323c})=>_0xf8323c['isOwn']&&!_0xf8323c['isInsideObject']&&!_0xf8323c['isNextTo'])['map'](({suggestion:_0x214ae6})=>_0x214ae6);_0x4e3ba5['unshift'](..._0x3168be);}const _0x3694cc=new Map([[_0x19d0a7,_0x473869]]);for(const _0x3135fa of _0x4e3ba5){const _0x4a7ce3='attribute'==_0x3135fa['type']?_0x3135fa['data']['oldValue']:void 0x0,_0x495cd1=_0x3135fa['getFirstRange'](),_0x59e8c5=Array['from'](_0x3694cc['keys']())['find'](_0x7643e2=>_0x7643e2['isIntersecting'](_0x495cd1));if(!_0x59e8c5)continue;const _0x219d0e=_0x59e8c5['getDifference'](_0x495cd1);this['_isBlockAttribute'](_0xda8f94)&&'insertion'==_0x3135fa['type']&&0x0!=_0x219d0e['length']||(_0x3694cc['delete'](_0x59e8c5),_0x219d0e['forEach'](_0x5b8959=>{_0x3694cc['set'](_0x5b8959,_0x473869);}),'insertion'!=_0x3135fa['type']&&_0x4a7ce3!=_0x5d114&&_0x3694cc['set'](_0x59e8c5['getIntersection'](_0x495cd1),_0x4a7ce3));}const _0x14b0d3=[];for(const [_0x349f79,_0x269ab2]of _0x3694cc){const _0x313d84=_0x5ed2a0(),_0x578a4d={'key':_0xda8f94,'oldValue':_0x269ab2,'newValue':_0x5d114};_0xda8f94['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':_0xda8f94});const _0x5db289=('attribute:'+(_0xda8f94+'|'+Vt({'newValue':_0x5d114})))['substring'](0x0,0x3c),_0x1d6524=this['_setSuggestionData']({'id':_0x313d84,'type':_0x5db289,'data':_0x578a4d,'createdAt':new Date(),'authorId':_0x2237c2,'attributes':_0x20e3f5});_0x14b0d3['push'](_0x1d6524),this['_addSuggestionMarker'](_0x5db289,_0x313d84,_0x2237c2,_0x349f79);}return _0x14b0d3;}['enableDefaultAttributesIntegration'](_0x1a0346){this['enableCommand'](_0x1a0346,(_0x470635,..._0x31ff6b)=>{this['_recordAttributeChanges'](()=>{_0x470635(..._0x31ff6b);});});}['registerBlockAttribute'](_0x1b5cfd){this['_blockAttributeKeys']['add'](_0x1b5cfd);}['registerInlineAttribute'](_0x2adee3){this['_inlineAttributeKeys']['add'](_0x2adee3);}['_getAttributeKey'](_0x2c9f96){return'attribute'==_0x2c9f96['type']?_0x2c9f96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56e76f,_0x368331){const _0x5aebae=_0x56e76f['getFirstMarker']();this['_model']['change'](_0x2e2241=>{_0x2e2241['updateMarker'](_0x5aebae,{'range':_0x368331});});}['_addThreadToSuggestion'](_0x2a6948){const _0x5e9e33=_0x2a6948['id'],_0x4bbcfe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e9e33)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4bbcfe,'threadId':_0x5e9e33,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x141851=this['_commentsRepository']['getCommentThread'](_0x5e9e33);_0x141851['unbind']('isRemovable'),_0x141851['isRemovable']=!0x1,_0x2a6948['commentThread']=_0x141851;}['_checkSuggestionCorrectness'](_0xe15fa2,_0x7ef263,_0x1098a8,_0x472ebb){if(_0xe15fa2['type']!=_0x7ef263||_0xe15fa2['subType']!=_0x1098a8||_0xe15fa2['creator']['id']!=_0x472ebb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x274ec5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x534c31,_0x5cea04){const _0x55bc31=_0x534c31['getFirstRange']();if(_0x5cea04['isEqual'](_0x55bc31))_0x534c31['removeMarkers']();else{if(_0x55bc31['containsRange'](_0x5cea04)){const _0x5439ef=this['_model']['createPositionAt'](_0x5cea04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x55bc31['start'],_0x5439ef));const _0x56306d=_0x5ed2a0(),_0x508d97=_0x534c31['creator']['id'],_0x4f6d64=_0x534c31['type']+':'+_0x534c31['subType'];this['_setSuggestionData']({'id':_0x56306d,'type':_0x4f6d64,'createdAt':new Date(),'authorId':_0x508d97,'data':_0x534c31['data'],'attributes':_0x534c31['attributes']});const _0x166b3c=this['_model']['createPositionAt'](_0x5cea04['end']['parent'],'after'),_0x8e62d2=this['_model']['createRange'](_0x166b3c,_0x55bc31['end']);this['_addSuggestionMarker'](_0x4f6d64,_0x56306d,_0x508d97,_0x8e62d2);}else{if(_0x55bc31['containsPosition'](_0x5cea04['start'])){const _0x253c4c=this['_model']['createPositionAt'](_0x5cea04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x55bc31['start'],_0x253c4c));}else{const _0x12da94=this['_model']['createPositionAt'](_0x5cea04['end']['parent'],'after');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x12da94,_0x55bc31['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x410a77){for(const {suggestion:_0x277eb3,meta:_0x463682}of this['_findSuggestions'](_0x410a77,'insertion')){if(!_0x463682['isOwn'])continue;const _0x4629e3=_0x277eb3['getRanges']();for(const _0x198b07 of _0x4629e3)if(!_0x410a77['getDifference'](_0x198b07)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4b8fa6){const _0x44f8b0=this['editor']['plugins']['get']('Users')['getUser'](_0x4b8fa6);if(!_0x44f8b0)throw new _0x274ec5('track-changes-user-not-found',this);return _0x44f8b0;}['_getExternalAuthor'](_0x31a50c){const _0x24dd94=this['editor']['plugins']['get']('Users'),_0x739811=_0x478958('external:'+_0x31a50c),_0x4bb625=_0x24dd94['getUser'](_0x739811);return _0x4bb625||_0x24dd94['addUser']({'id':_0x739811,'name':_0x31a50c});}['_createSuggestion'](_0x1da901,_0x338120,_0x13eb0c,_0x49c2ab,_0x566d36){const _0x109b0c=this['_getAuthorFromId'](_0x49c2ab),_0xa5810f=this['_suggestionFactory']['buildSuggestion'](_0x1da901,_0x338120,_0x13eb0c,_0x109b0c,_0x566d36,_0xebfe05=>{this['_updateSuggestionData'](_0x13eb0c,{'attributes':_0xebfe05});const _0x42459c=this['getSuggestion'](_0x13eb0c);this['_joinWithAdjacentSuggestions'](new Set([_0x42459c])),this['_refreshSuggestionsChain'](new Set([_0x42459c]));});return this['listenTo'](_0xa5810f,'accept',()=>{this['_updateSuggestionData'](_0x13eb0c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xa5810f,'discard',()=>{this['_updateSuggestionData'](_0x13eb0c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13eb0c,_0xa5810f),this['_suggestionState']['set'](_0xa5810f,'notReady'),_0xa5810f;}['_splitMarkerName'](_0x2763f4){const _0x486df1=_0x2763f4['split'](':');return{'group':_0x486df1[0x0],'type':_0x486df1[0x1],'subType':_0x486df1['length']>=0x5?_0x486df1[0x2]:null,'id':_0x486df1['length']<0x5?_0x486df1[0x2]:_0x486df1[0x3],'authorId':_0x486df1['length']<0x5?_0x486df1[0x3]:_0x486df1[0x4],'markerCount':0x6==_0x486df1['length']?_0x486df1[0x5]:null};}['_breakSuggestionMarker'](_0x33ac97,_0x72ef97,_0x80a398){const _0x97c079=_0x33ac97['getFirstRange'](),_0x5301c3=_0x97c079['start'],_0x4704a0=_0x97c079['end'];this['_setSuggestionRange'](_0x33ac97,this['_model']['createRange'](_0x5301c3,_0x72ef97));const _0x1ccf1d=_0x5ed2a0(),_0x4fec17=_0x33ac97['creator']['id'],_0x30901e=_0x33ac97['type']+(_0x33ac97['subType']?':'+_0x33ac97['subType']:'');this['_setSuggestionData']({'id':_0x1ccf1d,'type':_0x30901e,'createdAt':new Date(),'authorId':_0x4fec17,'originalSuggestionId':_0x33ac97['id'],'attributes':_0x33ac97['attributes'],'data':_0x33ac97['data']});const _0x3a731f=this['_getAttributeKey'](_0x33ac97);('formatBlock'==_0x33ac97['type']||_0x3a731f&&this['_isBlockAttribute'](_0x3a731f))&&(_0x80a398=this['_model']['createPositionBefore'](_0x80a398['parent'])),this['_addSuggestionMarker'](_0x30901e,_0x1ccf1d,_0x4fec17,this['_model']['createRange'](_0x80a398,_0x4704a0));}['_findSuggestions'](_0x8f837e,_0x7d4b2a=null){const _0xbe0723=[],_0x4fefbb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8f837e)||(_0x8f837e=[_0x8f837e]);for(const _0x34a307 of this['getSuggestions']()){if(!_0x34a307['isInContent'])continue;if(_0x7d4b2a&&_0x34a307['type']!=_0x7d4b2a)continue;let _0xdb3a77=!0x1;for(const _0x3f0ff5 of _0x34a307['getRanges']()){for(const _0x416346 of _0x8f837e){const _0xf5675c=_0x416346['start']['isEqual'](_0x3f0ff5['end'])||_0x416346['end']['isEqual'](_0x3f0ff5['start']);if(_0xf5675c||_0x416346['getIntersection'](_0x3f0ff5)){const _0x370dc6=_0x416346['containsRange'](_0x3f0ff5)&&Rt(this['_model']['schema'],_0x3f0ff5['start'],_0x416346),_0x16da92=_0x3f0ff5['containsRange'](_0x416346)&&Rt(this['_model']['schema'],_0x416346['start'],_0x3f0ff5);_0xbe0723['push']({'suggestion':_0x34a307,'meta':{'isOwn':_0x4fefbb==_0x34a307['author'],'isNextTo':_0xf5675c,'isInsideObject':_0x370dc6,'containsRangeInObject':_0x16da92}}),_0xdb3a77=!0x0;break;}}if(_0xdb3a77)break;}}return _0xbe0723;}['_addSuggestionMarker'](_0x1a0844,_0x27de87,_0x3e3b92,_0x2e9f72,_0x3d0b0d){this['_model']['change'](_0x7e8e63=>{let _0x9b3248='suggestion:'+_0x1a0844+':'+_0x27de87+':'+_0x3e3b92;_0x3d0b0d&&(_0x9b3248=_0x9b3248+':'+_0x3d0b0d),_0x7e8e63['addMarker'](_0x9b3248,{'range':_0x2e9f72,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x335070){const _0x464b91=_0x335070['previous'],_0x4ffe91=_0x335070['next'];_0x335070['previous']=null,_0x335070['next']=null,null!=_0x464b91&&_0x464b91['next']==_0x335070&&(_0x464b91['next']=_0x4ffe91),null!=_0x4ffe91&&_0x4ffe91['previous']==_0x335070&&(_0x4ffe91['previous']=_0x464b91),'ready'==this['_suggestionState']['get'](_0x335070)&&(this['_suggestionState']['set'](_0x335070,'removed'),this['fire']('suggestionUnloaded',_0x335070,_0x464b91,_0x4ffe91));}['_setSuggestionData'](_0x289b7a){const _0x458edc=_0x289b7a['id'],_0x4737dc=this['addSuggestionData'](_0x289b7a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xd31575=this['editor']['plugins']['get']('PendingActions'),_0x3256a0=_0x4737dc['hasComments'],_0x331bf1=_0x4737dc['subType']?_0x4737dc['type']+':'+_0x4737dc['subType']:_0x4737dc['type'],_0x184b5d=this['editor']['locale'],_0x51f580=_0xd31575['add'](o(_0x184b5d,'PENDING_ACTION_SUGGESTION')),_0x1c1c63={'id':_0x458edc,'type':_0x331bf1,'hasComments':_0x3256a0,'data':_0x289b7a['data']||null,'originalSuggestionId':_0x289b7a['originalSuggestionId']||null,'attributes':_0x4737dc['attributes']};this['_adapter']['addSuggestion'](_0x1c1c63)['then'](_0x4b95eb=>{_0x4737dc['_saved']=!0x0,_0xd31575['remove'](_0x51f580),_0x4b95eb&&_0x4b95eb['createdAt']&&(this['_suggestions']['get'](_0x458edc)['createdAt']=_0x4b95eb['createdAt']);})['catch'](_0x1b0607=>{throw _0x54a9b3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4737dc['discard']();}),_0x4737dc['stopListening'](),this['_suggestions']['delete'](_0x4737dc['id']),this['_suggestionState']['delete'](_0x4737dc),_0x1b0607;});}return _0x4737dc;}['_isBlockAttribute'](_0x4bd8c7){return this['_blockAttributeKeys']['has'](_0x4bd8c7);}['_updateSuggestionData'](_0x59e6b3,_0x5110db){const _0x2f81b6=this['editor']['plugins']['get']('PendingActions'),_0x69e359=this['getSuggestion'](_0x59e6b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x69e359['_saved']){const _0x437121=_0x2f81b6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59e6b3,_0x5110db)['then'](()=>{_0x2f81b6['remove'](_0x437121);});}else _0x69e359['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59e6b3,_0x5110db);});}}['_getSuggestionData'](_0x47b76c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x274ec5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47b76c);}['_handleNewSuggestionMarker'](_0xb8c0d0){const {id:_0x486773,type:_0x574c5c,subType:_0x485e7f,authorId:_0x53cff2}=this['_splitMarkerName'](_0xb8c0d0),_0x32a5fd=this['_suggestions']['get'](_0x486773)||this['_createSuggestion'](_0x574c5c,_0x485e7f,_0x486773,_0x53cff2,{});switch(this['_checkSuggestionCorrectness'](_0x32a5fd,_0x574c5c,_0x485e7f,_0x53cff2),this['_suggestionState']['get'](_0x32a5fd)){case'notReady':this['_getSuggestionData'](_0x486773)['then'](_0x2068bd=>{let _0x42d9f8=Promise['resolve']();_0x2068bd['hasComments']&&(_0x42d9f8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x486773})),_0x42d9f8['then'](()=>{this['addSuggestionData'](_0x2068bd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32a5fd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x486773,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32a5fd,'ready'),this['fire']('suggestionLoaded',_0x32a5fd);break;case'ready':this['fire']('suggestionChanged',_0x32a5fd);}return _0x32a5fd['addMarkerName'](_0xb8c0d0),_0x32a5fd;}['_refreshSuggestionsChain'](_0x85a39d){const _0x10b722=Array['from'](_0x85a39d),_0x95d6f3=_0x10b722['filter'](_0x3fdb7e=>'attribute'==_0x3fdb7e['type']);this['_refreshAttributeSuggestionsChain'](_0x95d6f3);const _0x49756c=_0x10b722['filter'](_0x3038bd=>!_0x3038bd['isMultiRange']&&'attribute'!=_0x3038bd['type']),_0x56d3c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3acd95=>!_0x3acd95['isMultiRange']&&'attribute'!=_0x3acd95['type']),_0x54c8af=_0x56d3c0['filter'](_0xd9beda=>!_0x85a39d['has'](_0xd9beda)),_0xb91924=new Map(_0x56d3c0['map'](_0x532b41=>[_0x532b41,this['_suggestionFactory']['getSuggestionCallback'](_0x532b41['type'],_0x532b41['subType'],'chain')])),_0x326b8d=new Map(_0x56d3c0['map'](_0x27e89d=>[_0x27e89d,_0x27e89d['getFirstRange']()])),_0x352f0b=new Set(),_0x4b44b8=new Set();for(let _0x46172d=0x0;_0x46172d<_0x49756c['length'];_0x46172d++)_0x4e62c5(_0x49756c[_0x46172d],_0x49756c,_0x46172d+0x1);for(let _0xd40057=0x0;_0xd40057<_0x49756c['length'];_0xd40057++)_0x4e62c5(_0x49756c[_0xd40057],_0x54c8af,0x0);const _0x285ad4=new Set();for(let _0x30681d=0x0;_0x30681d<_0x49756c['length'];_0x30681d++){const _0x44f324=_0x49756c[_0x30681d];!_0x4b44b8['has'](_0x44f324)&&_0x44f324['previous']&&(_0x285ad4['add'](_0x44f324['previous']),_0x44f324['previous']['next']===_0x44f324&&(_0x44f324['previous']['next']=null),_0x44f324['previous']=null),!_0x352f0b['has'](_0x44f324)&&_0x44f324['next']&&(_0x285ad4['add'](_0x44f324['next']),_0x44f324['next']['previous']===_0x44f324&&(_0x44f324['next']['previous']=null),_0x44f324['next']=null);}function _0x4e62c5(_0x18d1e8,_0x341d03,_0x40e591){for(let _0xedea03=_0x40e591;_0xedea03<_0x341d03['length'];_0xedea03++){const _0xb5ce05=_0x474242(_0x18d1e8,_0x341d03[_0xedea03]);_0xb5ce05&&(_0xb5ce05[0x0]['next']=_0xb5ce05[0x1],_0xb5ce05[0x1]['previous']=_0xb5ce05[0x0],_0x352f0b['add'](_0xb5ce05[0x0]),_0x4b44b8['add'](_0xb5ce05[0x1]));}}function _0x474242(_0x576b90,_0x45a762){if(_0x576b90['author']['id']!==_0x45a762['author']['id'])return null;const _0x2acc3c=_0xb91924['get'](_0x576b90)(_0x576b90,_0x45a762,_0x326b8d['get'](_0x576b90),_0x326b8d['get'](_0x45a762));if(!_0x2acc3c)return null;return _0xb91924['get'](_0x45a762)(_0x576b90,_0x45a762,_0x326b8d['get'](_0x576b90),_0x326b8d['get'](_0x45a762))?_0x2acc3c[0x1]['commentThread']&&_0x2acc3c[0x1]['commentThread']['length']?null:_0x2acc3c:null;}_0x285ad4['size']&&this['_refreshSuggestionsChain'](_0x285ad4);}['_refreshAttributeSuggestionsChain'](_0x44bea6){if(0x0==_0x44bea6['length'])return;const _0x30d3f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f0660=>'attribute'==_0x4f0660['type']&&_0x4f0660['_isDataLoaded']),_0xcbb2e3=[],_0x182093=new Map();for(const _0x3592a1 of _0x30d3f3){const _0x20a4ab=_0x478958(_0x3592a1['attributes']);_0x182093['has'](_0x20a4ab)||(_0x182093['set'](_0x20a4ab,_0xcbb2e3['length']),_0xcbb2e3['push']([]));const _0x4b61aa=_0x182093['get'](_0x20a4ab);_0xcbb2e3[_0x4b61aa]['push'](_0x3592a1);}!(function(){_0xcbb2e3['sort']((_0x5068f4,_0x88bf5e)=>{const _0x21dd78=_0x5068f4[0x0]['createdAt'],_0x516885=_0x88bf5e[0x0]['createdAt'];return _0x21dd78==_0x516885?_0x5068f4[0x0]['attributes']['groupId']<_0x88bf5e[0x0]['attributes']['groupId']?-0x1:0x1:_0x21dd78<_0x516885?-0x1:0x1;});for(const _0x32e949 of _0xcbb2e3)_0x32e949['sort']((_0x2a6e48,_0x4daf24)=>_0x2a6e48['id']<_0x4daf24['id']?-0x1:0x1);}());for(let _0x4d5cac=0x0;_0x4d5cac<_0xcbb2e3['length'];_0x4d5cac++){if(0x0==_0xcbb2e3[_0x4d5cac]['length'])continue;const _0x2e0db2=[];for(let _0xc1946f=_0x4d5cac+0x1;_0xc1946f<_0xcbb2e3['length'];_0xc1946f++)0x0!=_0xcbb2e3[_0xc1946f]['length']&&_0xeaa73(_0xcbb2e3[_0x4d5cac],_0xcbb2e3[_0xc1946f])&&_0x2e0db2['push'](_0xc1946f);for(const _0x5b457a of _0x2e0db2)_0xcbb2e3[_0x4d5cac]=_0xcbb2e3[_0x4d5cac]['concat'](_0xcbb2e3[_0x5b457a]),_0xcbb2e3[_0x5b457a]=[];}for(const _0x3054ab of _0xcbb2e3)for(let _0x2d72ee=0x0;_0x2d72ee<_0x3054ab['length'];_0x2d72ee++)_0x3054ab[_0x2d72ee]['next']=_0x3054ab[_0x2d72ee+0x1]||null;for(const _0x286c1a of _0xcbb2e3)for(let _0x220410=0x0;_0x220410<_0x286c1a['length'];_0x220410++)_0x286c1a[_0x220410]['previous']=_0x286c1a[_0x220410-0x1]||null;function _0xeaa73(_0x116fd0,_0x642c79){if(_0x116fd0[0x0]['attributes']['groupId']!==_0x642c79[0x0]['attributes']['groupId']&&_0x116fd0[0x0]['author']!==_0x642c79[0x0]['author'])return!0x1;if(!function(_0x12766e,_0x456092){if(!_0x12766e['hasComments']&&!_0x456092['hasComments'])return!0x0;if(_0x12766e['hasComments']&&_0x456092['hasComments'])return!0x1;if(_0x12766e['hasComments']&&_0x456092['createdAt']<_0x12766e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x456092['hasComments']&&_0x12766e['createdAt']<_0x456092['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x116fd0[0x0],_0x642c79[0x0]))return!0x1;const _0x4d0300=Bt(_0x116fd0[0x0]['attributes'],'groupId'),_0x525030=Bt(_0x642c79[0x0]['attributes'],'groupId');if(!_0x7f9970(_0x4d0300,_0x525030))return!0x1;return!!_0x116fd0['every'](_0x3d2c22=>_0x642c79['some'](_0x80da6e=>_0x3d2c22['getFirstRange']()['isEqual'](_0x80da6e['getFirstRange']())))&&_0x642c79['every'](_0x1a1d6e=>_0x116fd0['some'](_0x52100d=>_0x1a1d6e['getFirstRange']()['isEqual'](_0x52100d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd22c92){const _0x26ea4d=Array['from'](_0xd22c92),_0x38ee69=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a71ab=_0x38ee69['filter'](_0x52985b=>!_0xd22c92['has'](_0x52985b)),_0x3fbf6e=new Map(_0x26ea4d['map'](_0x1b6d98=>[_0x1b6d98,this['_suggestionFactory']['getSuggestionCallback'](_0x1b6d98['type'],_0x1b6d98['subType'],'join')])),_0x3779ab=new Map(_0x38ee69['map'](_0x5a89ce=>[_0x5a89ce,_0x5a89ce['getRanges']()]));for(let _0x448013=0x0;_0x448013<_0x26ea4d['length'];_0x448013++){if(_0x49563a(this,_0x26ea4d[_0x448013],_0x26ea4d,_0x448013+0x1))return!0x0;}for(let _0x24e135=0x0;_0x24e135<_0x26ea4d['length'];_0x24e135++){if(_0x49563a(this,_0x26ea4d[_0x24e135],_0x4a71ab,0x0))return!0x0;}return!0x1;function _0x49563a(_0x1ed6fb,_0x19b54f,_0x51e184,_0x2f95af){for(let _0x1fb51a=_0x2f95af;_0x1fb51a<_0x51e184['length'];_0x1fb51a++){const _0x12d002=_0x51e184[_0x1fb51a];if(_0x12d002['type']!==_0x19b54f['type']||_0x12d002['author']['id']!==_0x19b54f['author']['id']||_0x12d002['subType']!==_0x19b54f['subType'])continue;if(!Pt(_0x19b54f,_0x12d002,['groupId']))continue;if('attribute'==_0x19b54f['type']&&_0x19b54f['data']['oldValue']!=_0x12d002['data']['oldValue'])continue;if('attribute'==_0x19b54f['type']&&_0x1ed6fb['_isBlockAttribute'](_0x19b54f['data']['key']))continue;if('formatBlock'==_0x19b54f['type']){const _0x195e55=_0x1ed6fb['editor']['model'],_0xfe8326=_0x19b54f['getContainedElement']();if(_0xfe8326&&(_0x195e55['schema']['isObject'](_0xfe8326)||_0x195e55['schema']['isLimit'](_0xfe8326)))continue;}const _0x2c3635=_0x3fbf6e['get'](_0x19b54f),_0x45530d=_0x3779ab['get'](_0x19b54f),_0x2d394d=_0x3779ab['get'](_0x12d002),_0x3456ab=_0x19b54f['commentThread']&&_0x19b54f['commentThread']['length'],_0xf96e64=_0x12d002['commentThread']&&_0x12d002['commentThread']['length'];if(!_0x3456ab&&_0x2c3635(_0x2d394d,_0x45530d))return _0x1ed6fb['_joinSuggestions'](_0x12d002,_0x19b54f),_0x3779ab['delete'](_0x19b54f),!0x0;if(!_0xf96e64&&_0x2c3635(_0x45530d,_0x2d394d))return _0x1ed6fb['_joinSuggestions'](_0x19b54f,_0x12d002),_0x3779ab['delete'](_0x12d002),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2618c3,_0x1637f8){if(_0x2618c3['isMultiRange']){for(const _0x1c03f4 of _0x1637f8['getRanges']())_0x2618c3['addRange'](_0x1c03f4);}else{const _0x40297d=_0x1637f8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2618c3,this['_model']['createRange'](_0x2618c3['getFirstRange']()['start'],_0x40297d));}_0x1637f8['removeMarkers']();}['_getMarkerAnnouncementText'](_0x427318,_0x1ed516){const _0x2b769a=_0x427318['startsWith']('format')||_0x427318['startsWith']('attribute')?'FORMATTING':_0x427318['toUpperCase']();return o(this['editor']['locale'],_0x1ed516+'_'+_0x2b769a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x49cf09=this['editor'];if(!_0x49cf09['ui'])return;const {ariaLiveAnnouncer:_0x5c44c7}=_0x49cf09['ui'];_0x31dd0a(this['_model'],({left:_0x16ae5b,entered:_0x11b92b})=>{for(const _0x4c9899 of _0x16ae5b){const {group:_0x19ef80,type:_0x5b20e0}=this['_splitMarkerName'](_0x4c9899['name']);if('suggestion'===_0x19ef80){_0x5c44c7['announce'](this['_getMarkerAnnouncementText'](_0x5b20e0,'LEAVE'));break;}}for(const _0x4ec730 of _0x11b92b){const {group:_0x298fdd,type:_0x30471b}=this['_splitMarkerName'](_0x4ec730['name']);if('suggestion'===_0x298fdd){_0x5c44c7['announce'](this['_getMarkerAnnouncementText'](_0x30471b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1e6b6b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x489200=this['editor'],_0x39df82=_0x489200['model']['document']['differ']['getChanges']();if(0x0==_0x39df82['length'])return!0x1;const _0x3b99fa=[],_0x5e16d7=_0x39df82['filter'](_0x522dbd=>'attribute'==_0x522dbd['type']),_0x41ad22=_0x39df82['filter'](_0x1aae45=>'insert'==_0x1aae45['type']&&'$text'!=_0x1aae45['name']),_0x623c4c=_0x39df82['filter'](_0x5ecc86=>'remove'==_0x5ecc86['type']&&'$text'!=_0x5ecc86['name']);for(const _0xf63a63 of _0x5e16d7)_0x3b99fa['push']({'key':_0xf63a63['attributeKey'],'newValue':_0xf63a63['attributeNewValue'],'oldValue':_0xf63a63['attributeOldValue'],'range':Ot(_0xf63a63['range'],_0x489200['model'])});for(const _0x173d85 of _0x41ad22){const _0x3ba83f=_0x623c4c['find'](_0x3ee7be=>_0x3ee7be['position']['isEqual'](_0x173d85['position']));_0x3ba83f&&_0x3b99fa['push']({'key':m,'newValue':_0x173d85['name'],'oldValue':_0x3ba83f['name'],'range':_0x489200['model']['createRangeOn'](_0x173d85['position']['nodeAfter'])});}return 0x0!=_0x3b99fa['length']&&this['_reduceExistingSuggestions'](_0x1e6b6b,_0x3b99fa);}['_processAttributeSuggestions'](_0x771c63){let _0x438116=!0x1;const _0x336ab3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x473f7f=>_0x473f7f['data']['newRange']&&_0x473f7f['name']['startsWith']('suggestion:attribute:'));for(const _0x27b224 of _0x336ab3){const {subType:_0x283342,id:_0xff8188}=this['_splitMarkerName'](_0x27b224['name']),_0x157837=_0x283342['split']('|')[0x0];for(const _0x333570 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x333570['id']!=_0xff8188&&'attribute'==_0x333570['type']&&_0x333570['data']&&_0x333570['data']['key']==_0x157837&&_0x333570['getFirstRange']()['isIntersecting'](_0x27b224['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x333570,_0x27b224['data']['newRange'],_0x771c63),_0x438116=!0x0);}return _0x438116;}['_recordAttributeChanges'](_0x284213){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x284213();}['_isRegisteredAttribute'](_0x4d12ed){const _0x43fa84=this['_isBlockAttribute'](_0x4d12ed),_0x1d2ad2=this['_inlineAttributeKeys']['has'](_0x4d12ed);return _0x43fa84||_0x1d2ad2;}['_reduceExistingSuggestions'](_0x2c6d4f,_0x2517e5){if(0x0==_0x2517e5['length'])return!0x1;let _0x255644=!0x1;for(const _0x144c83 of _0x2517e5){const _0x319d58=this['_findSuggestions'](_0x144c83['range'],'attribute')['filter'](_0x592e19=>!_0x592e19['meta']['isNextTo'])['map'](_0x58ddf8=>_0x58ddf8['suggestion']),_0x2acf17=_0x478958({'newValue':_0x144c83['newValue']});_0x319d58['filter'](_0x2e8136=>{const [_0x4c11ab,_0x4d0114]=_0x2e8136['subType']['split']('|');return _0x4c11ab==_0x144c83['key']&&_0x4d0114!=_0x2acf17;})['forEach'](_0x23688e=>{this['_reduceSuggestionAttributeRange'](_0x23688e,_0x144c83['range'],_0x2c6d4f),_0x255644=!0x0;});}return _0x255644;}['_reduceSuggestionAttributeRange'](_0x25ac82,_0x33ee2f,_0x1b3501){const _0x4f936a=_0x25ac82['getFirstRange']()['getDifference'](_0x33ee2f);0x0!==_0x4f936a['length']?0x1!==_0x4f936a['length']?this['_breakSuggestionMarker'](_0x25ac82,_0x33ee2f['start'],_0x33ee2f['end']):this['_setSuggestionRange'](_0x25ac82,_0x4f936a[0x0]):_0x1b3501['removeMarker'](_0x25ac82['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x467e96){this['_editor']=_0x467e96,this['_model']=_0x467e96['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2403be,_0x1b2ce6,_0x4017f5,_0xefede4,_0xb5a904,_0x11ae04){return new u(this['_model'],{'type':_0x2403be,'subType':_0x1b2ce6,'id':_0x4017f5,'author':_0xefede4,'creator':_0xefede4,'attributes':_0xb5a904,'onAttributesChange':_0x11ae04,'onAccept':(..._0x4ccc74)=>this['getSuggestionCallback'](_0x2403be,_0x1b2ce6,'accept')(..._0x4ccc74),'onDiscard':(..._0x11e1b3)=>this['getSuggestionCallback'](_0x2403be,_0x1b2ce6,'discard')(..._0x11e1b3)});}['registerCustomCallback'](_0x34a086,_0x5893ad,_0x487ada,_0x322fc5){const _0x1d5dd6=_0x34a086+':'+_0x5893ad+':'+_0x487ada;this['_customCallbacks']['set'](_0x1d5dd6,_0x322fc5);}['getSuggestionCallback'](_0x27590a,_0x4e7267,_0x1b2cad){const _0x122112=_0x27590a+':'+_0x4e7267+':'+_0x1b2cad;return this['_customCallbacks']['get'](_0x122112)||this['_defaultCallbacks']['get'](_0x27590a+':'+_0x1b2cad);}['_registerDefaultCallbacks'](){const _0x5d1685=()=>!0x1,_0x5af012=_0x4ce496=>{_0x4ce496['sort']((_0x33b40a,_0x212fe8)=>_0x33b40a['start']['isBefore'](_0x212fe8['start'])?0x1:-0x1),this['_model']['change'](_0xbcbd90=>{for(const _0x71f8 of _0x4ce496){let _0x39d9a7;_0x39d9a7=_0x71f8['end']['isAtEnd']&&_0x71f8['end']['parent']==_0x71f8['start']['nodeAfter']?_0xbcbd90['createSelection'](_0x71f8['start']['nodeAfter'],'on'):_0xbcbd90['createSelection'](_0x71f8),this['_model']['deleteContent'](_0x39d9a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f6dc1=(_0x3e76a8,_0x2ca5f5)=>{_0x2ca5f5&&this['_model']['change'](_0x41cb48=>{const {commandName:_0x414014,commandParams:_0x367795=[]}=_0x2ca5f5,_0x1acee3=_0x3e76a8['map'](_0x566756=>(Tt(_0x566756)&&(_0x566756=this['_model']['createRange'](_0x566756['end'])),_0x566756))['filter'](_0x5c8017=>'$graveyard'!==_0x5c8017['root']['rootName']);if(_0x1acee3['length']<0x1)return;const _0x603366=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bdbfe=>_0xe90ba7['fromRange'](_0x5bdbfe));_0x41cb48['setSelection'](_0x1acee3);for(const _0x435fb5 of this['_editor']['commands']['commands']())_0x435fb5['refresh']();_0x367795['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x414014,..._0x367795);const _0x394c8b=_0x603366['filter'](_0x440917=>'$graveyard'!=_0x440917['root']['rootName']);_0x394c8b['length']>0x0&&_0x41cb48['setSelection'](_0x394c8b);for(const _0xf1835b of _0x603366)_0xf1835b['detach']();});},_0x2b055f=(_0x3e3bc7,_0x4f946a)=>0x1==_0x3e3bc7['length']&&0x1==_0x4f946a['length']&&_0x3e3bc7[0x0]['end']['isEqual'](_0x4f946a[0x0]['start']),_0x36f65a=(_0x4e6131,_0x23ec56,_0x7b12c3,_0x197eb8)=>Ft(_0x4e6131,_0x23ec56,_0x7b12c3,_0x197eb8,this['_model'])?[_0x4e6131,_0x23ec56]:Ft(_0x23ec56,_0x4e6131,_0x197eb8,_0x7b12c3,this['_model'])?[_0x23ec56,_0x4e6131]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d1685),this['_defaultCallbacks']['set']('insertion:discard',_0x5af012),this['_defaultCallbacks']['set']('insertion:join',_0x2b055f),this['_defaultCallbacks']['set']('insertion:chain',_0x36f65a),this['_defaultCallbacks']['set']('deletion:accept',_0x5af012),this['_defaultCallbacks']['set']('deletion:discard',_0x5d1685),this['_defaultCallbacks']['set']('deletion:join',_0x2b055f),this['_defaultCallbacks']['set']('deletion:chain',_0x36f65a),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f6dc1),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d1685),this['_defaultCallbacks']['set']('formatInline:join',_0x2b055f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d1685),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f6dc1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d1685),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b055f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d1685),this['_defaultCallbacks']['set']('attribute:accept',_0x5d1685),this['_defaultCallbacks']['set']('attribute:discard',(_0x3bbf3f,_0x5e2637)=>{if(!_0x5e2637)return;const _0x33a76c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x18dc6f=>{if(_0x5e2637['key']==m)for(const _0x5eae5e of _0x3bbf3f){const _0x4e3512=_0x5eae5e['start']['nodeAfter'],_0x34129b=_0x5e2637['oldValue'];_0x18dc6f['rename'](_0x4e3512,_0x34129b);}else{if(_0x33a76c['_isBlockAttribute'](_0x5e2637['key'])){for(const _0x155874 of _0x3bbf3f)void 0x0!==_0x5e2637['oldValue']?_0x18dc6f['setAttribute'](_0x5e2637['key'],_0x5e2637['oldValue'],_0x155874['start']['nodeAfter']):_0x18dc6f['removeAttribute'](_0x5e2637['key'],_0x155874['start']['nodeAfter']);}else{for(const _0x27f506 of _0x3bbf3f)_0x5e2637['oldValue']?_0x18dc6f['setAttribute'](_0x5e2637['key'],_0x5e2637['oldValue'],_0x27f506):_0x18dc6f['removeAttribute'](_0x5e2637['key'],_0x27f506);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b055f);}}function Rt(_0x3749c3,_0x156a1f,_0x21a85a){for(const _0x188794 of _0x156a1f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x188794['root']==_0x188794)return!0x1;if(!_0x21a85a['containsItem'](_0x188794))return!0x1;if(_0x3749c3['isObject'](_0x188794)||_0x3749c3['isLimit'](_0x188794))return!0x0;}return!0x1;}function Tt(_0x4a482d){return _0x4a482d['end']['parent']==_0x4a482d['start']['nodeAfter']&&_0x4a482d['end']['isAtStart'];}function Et(_0x5e3a27,_0xe65ed,_0x57f335,_0x4cea49){const _0x27dc05=_0x41edf2=>!_0x41edf2['item']['is']('$textProxy')&&!_0x4cea49['isObject'](_0x41edf2['item']),_0x4adb2b=_0x5e3a27['start']['getLastMatchingPosition'](_0x27dc05),_0x158484=_0x5e3a27['end']['getLastMatchingPosition'](_0x27dc05,{'direction':'backward'});return(!_0x5e3a27['start']['isEqual'](_0x4adb2b)||!_0x5e3a27['end']['isEqual'](_0x158484))&&(_0x4adb2b['isBefore'](_0x158484)?_0x57f335['updateMarker'](_0xe65ed,{'range':_0x57f335['createRange'](_0x4adb2b,_0x158484)}):_0x57f335['removeMarker'](_0xe65ed),!0x0);}function Vt(_0xf8e840){return _0x478958(_0xf8e840);}function Ut(_0x5cfbad){const _0x4ca886=_0x5cfbad['start']['nodeAfter'];return _0x4ca886&&_0x4ca886['is']('element');}function Ot(_0x161d7d,_0x4c6321){return null==_0x161d7d['end']['nodeBefore']&&_0x161d7d['end']['parent']==_0x161d7d['start']['nodeAfter']?Gt(_0x161d7d['start']['nodeAfter'],_0x4c6321):_0x161d7d;}function Gt(_0x195a86,_0x21102d){const _0x4ddd00=_0x21102d['schema']['isObject'](_0x195a86)||_0x21102d['schema']['isSelectable'](_0x195a86);return _0x21102d['createRange'](_0x21102d['createPositionAt'](_0x195a86,'before'),_0x4ddd00?_0x21102d['createPositionAfter'](_0x195a86):_0x21102d['createPositionAt'](_0x195a86,'end'));}function Ft(_0x436010,_0x519b0a,_0x16dbec,_0x2238b8,_0x5f35ac){if(!Pt(_0x436010,_0x519b0a))return!0x1;if(_0x16dbec['end']['isEqual'](_0x2238b8['start']))return!0x0;if(_0x436010['type']!=_0x519b0a['type'])return!0x1;if(!_0x16dbec['end']['isTouching'](_0x2238b8['start']))return!0x1;const _0x3a1218=_0x5f35ac['createRange'](_0x16dbec['end'],_0x2238b8['start'])['getWalker']();for(const _0x24c91f of _0x3a1218)if(['elementStart','elementEnd']['includes'](_0x24c91f['type'])&&_0x5f35ac['schema']['isLimit'](_0x24c91f['item']))return!0x1;return!0x0;}function Pt(_0x43fd59,_0x55d519,_0x4da7dd=[]){return!(!_0x43fd59['_isDataLoaded']||!_0x55d519['_isDataLoaded'])&&_0x7f9970(Bt(_0x43fd59['attributes'],_0x4da7dd),Bt(_0x55d519['attributes'],_0x4da7dd));}function Lt(_0x2b36f0,_0xe52f9c){const _0x3abb13=Ht(_0x2b36f0['attributes']),_0x5985d9=Ht(_0xe52f9c);if(!_0x2b36f0['_isDataLoaded'])return!0x1;for(const _0x18a394 of Object['keys'](_0x5985d9))if(!_0x7f9970(_0x3abb13[_0x18a394],_0x5985d9[_0x18a394]))return!0x1;return!0x0;}function Ht(_0x253aa3){const _0x364e9f=Object['assign']({},_0x253aa3);return delete _0x364e9f['skipNestingCheck'],delete _0x364e9f['tablePasteChainId'],_0x364e9f;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x29d385(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c9377,_0x105139,_0x3f749e,_0x147535){super(),this['model']=_0x105139,this['view']=_0x3f749e,this['commentThreadController']=_0x147535,this['_editor']=_0x1c9377,this['_acceptCommand']=_0x1c9377['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c9377['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x375f3c,_0x508e2)=>_0x375f3c||_0x508e2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x546f72=>_0x546f72&&this['_editor']['model']['canEditAt'](_0x105139['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40fa1f=>_0x40fa1f&&this['_editor']['model']['canEditAt'](_0x105139['getRanges']())),this['_pendingAction']=null,_0x3f749e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3f749e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3f749e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3f749e,'change:isDirty',()=>{_0x3f749e['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 _0x137be9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x137be9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xb5144{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2f421a,_0x2a8f68,_0x4f8181,_0x249389){super(_0x2f421a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a8f68['authoredAt']),this['bind']('authoredAt')['to'](_0x2a8f68),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2a8f68,this['_localUser']=_0x4f8181,this['_config']=_0x249389,_0x249389['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e047a}=this['_config'];this['commentsListView']=new _0x3e047a(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',_0x537e61=>_0x537e61+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1669c9,_0x222972)=>_0x1669c9||!!_0x222972);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x499dfa}=this['_config'],_0x1aeebd=new _0x499dfa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ff2f6=_0x1aeebd['commentInputView'];return _0x1aeebd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ff2f6,'value',(_0x1ba899,_0x2a7fdb,_0x20533e)=>!!_0x20533e||_0x1ba899&&!_0x2a7fdb),_0x1ff2f6['on']('submit',(_0x3decb2,_0x7d821d)=>{this['fire']('addComment',_0x7d821d),_0x1ff2f6['editor']['setData']('');}),_0x1ff2f6['on']('cancel',()=>this['focus']()),_0x1ff2f6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1aeebd;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5762de,_0x38f2b5,_0x3c29c8,_0x23de76){super(_0x5762de,_0x38f2b5,_0x3c29c8,_0x23de76),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4da914=>_0x4da914&&_0x4da914[0x0]?_0x4da914[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x515364,_0x2ad3a8)=>{let _0x35e2a9='';for(const _0x221012 of _0x515364)_0x35e2a9+='<p>'+ds(_0x221012['content'],_0x221012['color'])+'</p>';return _0x2ad3a8?_0x35e2a9:_0x5a6ffe(_0x35e2a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5762de,'Accept\x20suggestion'),_0x4d5335['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5762de,'Discard\x20suggestion'),_0x4d5335['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5c4290(_0x5762de,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xca6441=this['bindTemplate'],_0x23b2ad=[{'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':_0xca6441['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xca6441['to']('authoredAt',_0x34dbe4=>this['_config']['formatDateTime'](_0x34dbe4))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x23b2ad['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3f6dc9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xca6441['if']('isActive','ck-suggestion-wrapper--active'),_0xca6441['to']('type',_0x32ce6b=>'ck-suggestion-'+_0x32ce6b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x23b2ad}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3f6dc9['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3f6dc9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2afea5,_0x43ca9b,_0x227b29)=>{this['_descriptionElement']['innerHTML']=_0x227b29;});}['_createButton'](_0x823b85,_0x56c78d,_0x299869,_0x111919,_0x417f62){const _0x2f8d3a=new _0x548b51(this['locale']);return _0x2f8d3a['set']({'label':_0x823b85,'icon':_0x56c78d,'tooltip':!0x0,'tooltipPosition':_0x417f62}),_0x2f8d3a['extendTemplate']({'attributes':{'class':_0x299869}}),_0x2f8d3a['on']('execute',()=>{this['fire'](_0x111919,this['_model']['id']);}),_0x2f8d3a;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x2e2746,_0x89fee5){let _0x165487='';return _0x165487+=_0x2e2746['split']('*')['map']((_0x3baec4,_0x328080)=>_0x328080%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3baec4)+'</span>':us(_0x3baec4))['join'](''),_0x89fee5&&(_0x165487+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x89fee5['value']+'\x22\x20title=\x22'+_0x89fee5['title']+'\x22></span>'),_0x165487;}function us(_0x6e7f9c){const _0x24c450=document['createElement']('span');return _0x24c450['innerText']=_0x6e7f9c,_0x24c450['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4104d6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xc2c087,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x18c626){super(_0x18c626),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x35ac4c=this['editor']['config'];_0x35ac4c['define']('trackChanges.SuggestionThreadView',ne),_0x35ac4c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x35ac4c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x19bd06,_0x46777a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39959c,_0x170178]of this['_handleControllerBuffer']){const _0x57cb9a=this['_suggestionToController']['has'](_0x39959c);_0x57cb9a||_0x170178?_0x57cb9a&&_0x170178&&this['_destroyController'](_0x39959c):this['_initializeController'](_0x39959c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x19bd06,_0x46777a);}['init'](){const _0x39af92=this['editor'],_0x22df7e=_0x39af92['plugins']['get']('TrackChangesEditing'),_0x3cec31=_0x39af92['plugins']['get']('Annotations'),_0x507693=_0x39af92['plugins']['get']('EditorAnnotations'),_0x3fa91c=_0x39af92['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x507693['addSourceCollector'](()=>{const _0x4ba9c6=[];for(const [_0x174299,_0x58b644]of Array['from'](this['_suggestionToController'])){const _0x1c9af0=_0x174299['getAllAdjacentSuggestions'](),_0x480554=[];for(const _0x403576 of _0x1c9af0){if(!_0x403576['isInContent'])continue;if(_0x403576['isMultiRange']){_0x480554['push'](..._0x403576['getRanges']());continue;}const _0x47146c=_0x403576['getFirstRange']();if(_0x480554['length']>0x0){const _0x19c8ca=_0x480554[0x0]['getJoined'](_0x47146c);if(_0x19c8ca){_0x480554[0x0]=_0x19c8ca;continue;}}_0x480554['push'](_0x47146c);}_0x4ba9c6['push']([_0x58b644['view'],_0x480554]);}return _0x4ba9c6;}),this['listenTo'](_0x22df7e,'suggestionLoaded',(_0x39344b,_0x357806)=>{this['listenTo'](_0x357806,'change:previous',(_0x2002c9,_0x4bc623,_0x187705,_0xf577bd)=>{_0x357806['isInContent']&&(null==_0x187705?(this['_updateController'](_0xf577bd['head']),this['_handleSuggestionControllerDelayed'](_0x357806,!0x1)):(this['_updateController'](_0x187705['head']),null==_0xf577bd&&this['_handleSuggestionControllerDelayed'](_0x357806,!0x0)));}),null!==_0x357806['previous']?this['_updateController'](_0x357806['head']):this['_handleSuggestionControllerDelayed'](_0x357806,!0x1);}),this['listenTo'](_0x22df7e,'suggestionUnloaded',(_0xcbf7f0,_0x1a6a61,_0x1a1dd0)=>{this['stopListening'](_0x1a6a61,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1a6a61),this['_suggestionToController']['has'](_0x1a6a61)&&this['_destroyController'](_0x1a6a61),_0x1a1dd0&&this['_updateController'](_0x1a1dd0['head']);}),this['listenTo'](_0x22df7e,'suggestionChanged',(_0xa10dfb,_0x3a9200)=>{this['_updateController'](_0x3a9200);}),this['listenTo'](_0x3cec31,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3fa91c,'addComment',(_0x283724,{threadId:_0xf03e4f,isFromAdapter:_0x3ff816})=>{if(_0x3ff816||!_0x22df7e['hasSuggestion'](_0xf03e4f))return;const _0x46ba23=_0x22df7e['getSuggestion'](_0xf03e4f);this['_suggestionToController']['get'](_0x46ba23)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x23c45a=this['editor']['plugins']['get']('Annotations'),_0x29a3e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c28be=Array['from'](_0x23c45a['activeAnnotations'],_0x5480d5=>_0x5480d5['innerView'])['filter'](_0x3a43f5=>this['_viewToController']['has'](_0x3a43f5)),_0x572eca=[];for(const _0x2e1a0d of _0x5c28be){const _0x13c921=this['_viewToController']['get'](_0x2e1a0d)['model']['getAllAdjacentSuggestions']();_0x572eca['push'](..._0x13c921['reduce']((_0x38c17b,_0x29a726)=>[..._0x38c17b,..._0x29a726['getMarkerNames']()],[]));}_0x29a3e4['activeMarkers']=_0x572eca;}['_addUIComponentsToFactory'](){const _0xefa9ec=this['editor'],_0x30985f=_0xefa9ec['locale'],_0x4de372=o(_0x30985f,'Track\x20changes'),_0x44855d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4de372,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1ab4d9 of _0x44855d)if(ae(_0x1ab4d9)){const _0x4f29d4=_0xefa9ec['commands']['get'](_0x1ab4d9['model']['commandName']);_0x1ab4d9['model']['bind']('isOn','isEnabled')['to'](_0x4f29d4,'value','isEnabled');}_0xefa9ec['ui']['componentFactory']['add']('trackChanges',_0x596ec7=>this['_createToolbarButton'](_0x596ec7,_0x44855d,_0x4de372)),_0xefa9ec['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a3896=>this['_createMenuBarMenu'](_0x2a3896,_0x44855d,_0x4de372));}['_createToolbarButton'](_0x2eaef4,_0x3cd243,_0x41e524){const _0x1240ff=zt(_0x2eaef4,Zt),_0x564d3c=this['editor']['commands']['get']('trackChanges');_0x1240ff['buttonView']['set']({'tooltip':_0x41e524,'label':_0x41e524,'icon':ie}),_0x1240ff['buttonView']['bind']('isOn')['to'](_0x564d3c,'value'),_0x1240ff['buttonView']['on']('execute',()=>{_0x564d3c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1240ff,_0x3cd243,{'role':'menu'});const _0x474756=[];for(const _0x253e06 of _0x3cd243)ae(_0x253e06)&&_0x474756['push'](this['editor']['commands']['get'](_0x253e06['model']['commandName']));const _0x2bf98c=_0x1240ff['buttonView'];return _0x2bf98c['actionView']['unbind']('isEnabled'),_0x2bf98c['arrowView']['unbind']('isEnabled'),_0x2bf98c['actionView']['bind']('isEnabled')['to'](_0x564d3c,'isEnabled'),_0x2bf98c['arrowView']['bind']('isEnabled')['toMany'](_0x474756,'isEnabled',(..._0x49c421)=>_0x49c421['some'](_0x242b72=>_0x242b72)),_0x1240ff['on']('execute',_0x506f39=>{this['editor']['execute'](_0x506f39['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1240ff;}['_createMenuBarMenu'](_0x2e2e96,_0x373c44,_0xcb0d87){const _0x361e51=new Kt(_0x2e2e96),_0x2e66b2=this['editor']['commands']['get']('trackChanges');_0x361e51['buttonView']['set']({'label':_0xcb0d87,'icon':ie});const _0x54f154=new Qt(_0x2e2e96);for(const _0x3c80ce of _0x373c44){if('separator'==_0x3c80ce['type']){_0x54f154['items']['add'](new Jt(_0x2e2e96));continue;}const _0x4f71e9=new Xt(_0x2e2e96,_0x361e51),_0x3e3ee2=new Yt(_0x2e2e96),_0x529333=_0x3c80ce['model'];_0x3e3ee2['bind'](...Object['keys'](_0x529333))['to'](_0x529333),_0x3e3ee2['delegate']('execute')['to'](_0x361e51),_0x3e3ee2['on']('execute',()=>{this['editor']['execute'](_0x529333['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f71e9['children']['add'](_0x3e3ee2),_0x54f154['items']['add'](_0x4f71e9);}return _0x361e51['bind']('isEnabled')['to'](_0x2e66b2,'isEnabled'),_0x361e51['panelView']['children']['add'](_0x54f154),_0x361e51;}['_initializeController'](_0x530ca7){const _0x2638f5=this['editor'],_0xf8a8e6=_0x2638f5['config'],_0x38ff7c=_0x2638f5['plugins']['get']('Annotations'),_0x14d362=_0x2638f5['plugins']['get']('CommentsRepository'),_0xa93ef1=_0x2638f5['plugins']['get']('EditorAnnotations'),_0x422660=_0x2638f5['plugins']['get'](_0xc2c087)['me'],_0x548090=_0xf8a8e6['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1e08b3,CommentThreadInputView:_0x444eac}=_0x2638f5['plugins']['get']('CommentsUI');let _0x15e9fa,_0x45c2db;this['_annotationViews']['has'](_0x530ca7['id'])?(_0x45c2db=this['_annotationViews']['get'](_0x530ca7['id']),_0x15e9fa=_0x45c2db['mainView']):(_0x15e9fa=new _0x548090(_0x2638f5['locale'],_0x530ca7,_0x422660,{'disableComments':this['_disableComments'],'editorConfig':_0xf8a8e6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xf8a8e6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf8a8e6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf8a8e6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x227821(_0xf8a8e6['get']('locale')),'CommentView':_0xf8a8e6['get']('comments')['CommentView'],'CommentsListView':_0x1e08b3,'CommentThreadInputView':_0x444eac}),_0x15e9fa['acceptButton']['on']('execute',()=>{_0x2638f5['editing']['view']['focus']();}),_0x15e9fa['discardButton']['on']('execute',()=>{_0x2638f5['editing']['view']['focus']();}),_0x45c2db=_0x38ff7c['createAnnotationView'](this['editor']['locale'],_0x15e9fa),_0x45c2db['bind']('isDirty')['to'](_0x15e9fa,'isDirty'),_0x45c2db['bind']('length')['to'](_0x15e9fa),_0x45c2db['bind']('type')['to'](_0x15e9fa,'type',_0x1f93ca=>'suggestion-'+_0x1f93ca),this['_annotationViews']['set'](_0x530ca7['id'],_0x45c2db));const _0x36e7a4=_0x14d362['createCommentThreadController'](_0x530ca7['commentThread'],_0x15e9fa),_0x2eb3a2=new oe(_0x2638f5,_0x530ca7,_0x15e9fa,_0x36e7a4),_0x29dbee=_0x530ca7['getAllAdjacentSuggestions']()['filter'](_0x3df3a8=>_0x3df3a8['isInContent']);_0x15e9fa['descriptionParts']=_0x2638f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x29dbee),this['_suggestionToController']['set'](_0x530ca7,_0x2eb3a2),this['_viewToController']['set'](_0x15e9fa,_0x2eb3a2);const _0xf82e5b=_0x38ff7c['createAnnotation']({'view':_0x45c2db,'target':()=>{const _0x11e477=[],_0x30cf59=_0x530ca7['getAllAdjacentSuggestions']()['filter'](_0x497364=>_0x497364['isInContent']);for(const _0x54a969 of _0x30cf59)_0x11e477['push'](..._0x54a969['getMarkers']());return _0x2ce1e8(_0x2638f5['editing'],_0x11e477);},'type':()=>'suggestion-'+_0x2eb3a2['view']['type']});_0x14d362['_bindAnnotationToEditors'](_0x15e9fa,_0xf82e5b),_0x38ff7c['add'](_0xf82e5b),_0xa93ef1['registerAnnotation'](_0xf82e5b);}['_destroyController'](_0x1d35af){const _0x5072e0=this['editor']['plugins']['get']('CommentsRepository'),_0x3f6317=this['editor']['plugins']['get']('Annotations'),_0x424460=this['_suggestionToController']['get'](_0x1d35af),_0x2a2dda=_0x424460['view'],_0x320d4f=_0x3f6317['getByInnerView'](_0x2a2dda);_0x5072e0['_unbindEditors'](_0x2a2dda),_0x320d4f&&_0x3f6317['remove'](_0x320d4f),this['_suggestionToController']['delete'](_0x1d35af),this['_viewToController']['delete'](_0x2a2dda),_0x424460['destroy']();}['_updateController'](_0xc0707c){if(!_0xc0707c['isInContent']||!this['_suggestionToController']['has'](_0xc0707c))return;const _0xa7c332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11a294=this['_suggestionToController']['get'](_0xc0707c),_0x40a8e3=_0xc0707c['getAllAdjacentSuggestions']();_0x11a294['view']['descriptionParts']=_0xa7c332['descriptionFactory']['getDescriptions'](_0x40a8e3);}['destroy'](){for(const _0x26698c of this['_suggestionToController']['keys']())this['_destroyController'](_0x26698c);for(const _0x1b7bac of this['_annotationViews']['values']())_0x1b7bac['mainView']['destroy']();super['destroy']();}}function ae(_0x4724fd){return'model'in _0x4724fd;}class k extends _0x4104d6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3bd022){this['editor']['plugins']['get'](p)['adapter']=_0x3bd022;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1d1d45){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1d1d45);}['getSuggestions']({skipNotAttached:_0xe36eaf=!0x1,toJSON:_0x4565d9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xe36eaf,'toJSON':_0x4565d9});}['getSuggestion'](_0x2c1b5c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c1b5c);}}const T=['Pagination'];class P extends _0x4104d6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x402e83=this['editor'];if(_0x402e83['config']['define']('trackChangesData.editorCreator',_0xf7fe4=>{const _0xd4697c=_0x402e83['model']['document']['getRootNames']()['reduce']((_0x39dba9,_0x3e0727)=>(_0x39dba9[_0x3e0727]='',_0x39dba9),{});return _0x402e83['constructor']['create'](_0xd4697c,_0xf7fe4);}),'function'!=typeof _0x402e83['config']['get']('trackChangesData')['editorCreator'])throw new _0x274ec5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3c5b7e){return N(this['editor'],!0x0,_0x3c5b7e);}['getDataWithDiscardedSuggestions'](_0x51ede5){return N(this['editor'],!0x1,_0x51ede5);}}class D extends _0x4104d6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x36a903){super(_0x36a903),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(_0x5a409c){return void 0x0!==_0x5a409c['getRootsAttributes'];}async function N(_0x4dc90f,_0x430637,_0x465993){const _0x126815=_0xbb1dc2(_0x4dc90f,T);_0x126815['plugins']['push'](p,D),_0x126815['rootsAttributes']=v(_0x4dc90f)?_0x4dc90f['getRootsAttributes']():void 0x0;const _0x44c0c1=document['createDocumentFragment'](),_0x19fcc3=_0x4dc90f['config']['get']('trackChangesData')['editorCreator'],_0x39cf12=await _0x19fcc3(_0x126815,()=>function(_0x273268){const _0x3276f6=document['createElement']('div');return _0x273268['appendChild'](_0x3276f6),_0x3276f6;}(_0x44c0c1));!function(_0x2a933b,_0x2426b9){const _0xf5ff61=_0x2a933b['model']['document']['getRootNames']()['reduce']((_0x35bbc5,_0x742051)=>(_0x35bbc5[_0x742051]=_0x2a933b['data']['get']({'rootName':_0x742051}),_0x35bbc5),{}),_0x1753f4=_0x2a933b['plugins']['get']('Users')['users']['map'](_0x130669=>({'id':_0x130669['id'],'name':_0x130669['name']})),_0x58594f=_0x2a933b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3667ee=_0x2a933b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28d824=_0x2426b9['plugins']['get']('Users'),_0x2e3c5c=_0x2426b9['plugins']['get']('TrackChangesEditing'),_0xe05ff5=_0x2426b9['plugins']['get']('CommentsRepository');for(const _0x11b0e8 of _0x1753f4)_0x28d824['getUser'](_0x11b0e8['id'])||_0x28d824['addUser'](_0x11b0e8);_0x28d824['me']||_0x28d824['useAnonymousUser']();for(const _0x32d646 of _0x3667ee)_0xe05ff5['addCommentThread'](_0x32d646);for(const _0x4eb65c of _0x58594f)_0x2e3c5c['addSuggestionData'](_0x4eb65c);_0x2426b9['data']['set'](_0xf5ff61);}(_0x4dc90f,_0x39cf12),_0x39cf12['execute'](_0x430637?'acceptAllSuggestions':'discardAllSuggestions');const _0x50b115=v(_0x39cf12)?_0x39cf12['getFullData'](_0x465993):_0x39cf12['data']['get'](_0x465993);return await _0x39cf12['destroy'](),_0x50b115;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};