@ckeditor/ckeditor5-track-changes 48.3.1-alpha.1 → 48.3.1

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 (148) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/af.umd.js +1 -1
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/ast.js +1 -1
  7. package/dist/translations/ast.umd.js +1 -1
  8. package/dist/translations/az.js +1 -1
  9. package/dist/translations/az.umd.js +1 -1
  10. package/dist/translations/be.js +1 -1
  11. package/dist/translations/be.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3e1ff9,PendingActions as _0x3ee483,Plugin as _0x413c81}from'@ckeditor/ckeditor5-core';import{Annotations as _0x14a75c,Comments as _0x267b7c,CommentsRepository as _0x15ba36,EditorAnnotations as _0x56a282}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x5748df,Collection as _0x2c968b,FocusTracker as _0x4fff65,KeystrokeHandler as _0x560b3c,ObservableMixin as _0x25c6c1,getEnvKeystrokeText as _0x23475f,insertToPriorityArray as _0xd637d7,logWarning as _0x1de656,priorities as _0x1cf13d,uid as _0x1f4b16}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x219f44,IconCancel as _0xe52ae3,IconCheck as _0x17f795,IconSparkle as _0x3d13e3,IconTrackChanges as _0x1bcfaa}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x5496d7,Dialog as _0x411989,FocusCycler as _0xa36f0,ListSeparatorView as _0x8ceee0,MenuBarMenuListItemButtonView as _0x5aeaf8,MenuBarMenuListItemView as _0x2bb385,MenuBarMenuListView as _0xfdc7c0,MenuBarMenuView as _0xd6e8b8,SplitButtonView as _0x3fa594,UIModel as _0x34fa2a,View as _0x4ceb53,ViewCollection as _0x12df6c,addListToDropdown as _0xa8f73d,createDropdown as _0xfea874,normalizeColorOptions as _0x5a539b}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x4e9480,CollaborationUserColor as _0x300a40,DocumentCompare as _0x23df0a,FOCUS_ANNOTATION_KEYSTROKE as _0x312d7,LateFocusButtonView as _0x1da65c,PillView as _0x5d1bc0,SuggestionsConversion as _0x28ef11,User as _0x34dabe,UserView as _0x23460e,Users as _0xbc2e11,fixElementSuggestionRange as _0x5f18e7,getAllMarkersDomElementsSorted as _0x49f7b6,getDateTimeFormatter as _0x3f0d23,hashObject as _0x4bef27,sanitizeEditorConfig as _0x2ac1c7,setupThreadKeyboardNavigation as _0x4d7c6c,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x3e1ff9{['_enabledCommands'];constructor(_0x3fd25f,_0x2138ae){super(_0x3fd25f),this['_enabledCommands']=_0x2138ae,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 _0x55d81f of this['editor']['commands']['commands']())_0x55d81f['affectsData']&&!this['_enabledCommands']['has'](_0x55d81f)&&_0x55d81f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x624563 of this['editor']['commands']['commands']())_0x624563['affectsData']&&!this['_enabledCommands']['has'](_0x624563)&&_0x624563['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x3e1ff9{['_suggestions'];constructor(_0x24809d,_0x3ccad8){super(_0x24809d),this['_suggestions']=_0x3ccad8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x297a64){const _0x107f30=this['_suggestions']['get'](_0x297a64);if(!_0x107f30)throw new _0x5748df('track-changes-accept-suggestion-not-found',this);const _0x56a3f9=_0x107f30['getRanges']();this['editor']['model']['canEditAt'](_0x56a3f9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x107f30);}},_t=class extends _0x3e1ff9{['_suggestions'];constructor(_0xcf4e9f,_0x257e54){super(_0xcf4e9f),this['_suggestions']=_0x257e54,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14bd02){const _0x3c9ed8=this['_suggestions']['get'](_0x14bd02);if(!_0x3c9ed8)throw new _0x5748df('track-changes-discard-suggestion-not-found',this);const _0x1aeb71=_0x3c9ed8['getRanges']();this['editor']['model']['canEditAt'](_0x1aeb71)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3c9ed8);}};function pt(_0x2a996d,_0x1ddd7a){let _0x2ff753='';return _0x2ff753+=_0x2a996d['split']('*')['map']((_0x561134,_0x432d7f)=>_0x432d7f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x561134)+'</span>':Lt(_0x561134))['join'](''),_0x1ddd7a&&(_0x2ff753+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1ddd7a['value']+'\x22\x20title=\x22'+_0x1ddd7a['title']+'\x22></span>'),_0x2ff753;}function Lt(_0x59e8d4){const _0x16a176=document['createElement']('span');return _0x16a176['innerText']=_0x59e8d4,_0x16a176['innerHTML'];}function It(_0x4c8225){return _0x4c8225['sort']((_0x3f952b,_0x3624ad)=>'attribute'===_0x3f952b['type']&&'attribute'!==_0x3624ad['type']?-0x1:'attribute'!==_0x3f952b['type']&&'attribute'===_0x3624ad['type']?0x1:'deletion'==_0x3f952b['type']&&'deletion'!=_0x3624ad['type']?-0x1:'deletion'!=_0x3f952b['type']&&'deletion'==_0x3624ad['type']?0x1:0x0);}function At(_0x517e99,_0x4b27aa){let _0x40a6af,_0x22acd1=0x0;const _0x5f4d5d=[],_0x36dcf4=_0x4b27aa['schema'];for(;_0x22acd1<_0x517e99['length'];){const _0x5346d9=_0x517e99[_0x22acd1],_0x5d0216=_0x517e99[_0x22acd1+0x1];_0x40a6af||(_0x40a6af=_0x4b27aa['createPositionBefore'](_0x5346d9)),bt(_0x4b27aa,_0x5346d9,_0x5d0216)||(_0x5f4d5d['push'](_0x4b27aa['createRange'](_0x40a6af,_0x36dcf4['isObject'](_0x5346d9)?_0x4b27aa['createPositionAfter'](_0x5346d9):_0x4b27aa['createPositionAt'](_0x5346d9,'end'))),_0x40a6af=null),_0x22acd1++;}return _0x5f4d5d;}function bt(_0x29a73e,_0x2c352,_0x5ed0d9){if(!_0x5ed0d9)return!0x1;const _0x26fd45=_0x29a73e['createPositionAfter'](_0x2c352),_0x27a0cb=_0x29a73e['createPositionBefore'](_0x5ed0d9);return _0x26fd45['isTouching'](_0x27a0cb);}function kt(_0x205d7c,_0x39c0cb,_0x4865d1){for(;_0x4865d1['length'];){const _0x41b1d5=_0x4865d1['splice'](0x0,0x64);_0x205d7c['change'](()=>{for(const _0x4279c9 of _0x41b1d5)_0x4279c9['isInContent']&&_0x39c0cb['execute'](_0x4279c9['id']);});}}var Ct=class extends _0x3e1ff9{['_command'];['_suggestions'];constructor(_0x572025,_0xf41be,_0x260273){super(_0x572025),this['_command']=_0xf41be,this['_suggestions']=_0x260273,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3be9ac=Array['from'](this['_suggestions']['values']())['some'](_0x4fa27f=>_0x4fa27f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3be9ac;}['execute'](){const _0x515177=It(Array['from'](this['_suggestions']['values']()));for(const _0x53640b of _0x515177){const _0x286ac4=_0x53640b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x286ac4))return;}kt(this['editor']['model'],this['_command'],_0x515177);}},Rt=class extends _0x3e1ff9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5bb3c6,_0x113c2b,_0x52276a){super(_0x5bb3c6),this['_command']=_0x113c2b,this['_suggestions']=_0x52276a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x444a8b=this['editor']['model']['document']['selection'],_0x1194f8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1cdf50,_0x2a01b0){const _0x1fdafb=Array['from'](_0x1cdf50['getRanges']()),_0x5ca6cb=new Set();for(const _0x24508b of _0x2a01b0)if(_0x24508b['isInContent']){for(const _0x50b470 of _0x1fdafb)for(const _0x2194ca of _0x24508b['getRanges']())(_0x50b470['isIntersecting'](_0x2194ca)||_0x1cdf50['isCollapsed']&&!_0x24508b['isMultiRange']&&_0x24508b['next']&&_0x2194ca['end']['isTouching'](_0x50b470['start']))&&_0x5ca6cb['add'](_0x24508b);}return _0x5ca6cb;}(_0x444a8b,_0x1194f8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2babff=It(Array['from'](this['_selectedSuggestions']));for(const _0x44cb04 of _0x2babff){const _0x2724c7=_0x44cb04['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2724c7))return;}kt(this['editor']['model'],this['_command'],_0x2babff);}};const Nt=/* #__PURE__ -- @preserve */
24
- _0x25c6c1();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3263e0,_0x37ba83){super(),this['id']=_0x37ba83['id'],this['type']=_0x37ba83['type'],this['subType']=_0x37ba83['subType']||null,this['author']=_0x37ba83['author'],this['creator']=_0x37ba83['creator']||_0x37ba83['author'],this['data']=null,this['_originalSuggestionId']=_0x37ba83['originalSuggestionId']||null,this['_model']=_0x3263e0,this['_onAccept']=_0x37ba83['onAccept'],this['_onDiscard']=_0x37ba83['onDiscard'],this['_onAttributesChange']=_0x37ba83['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x37ba83['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x391e7f=this;for(;_0x391e7f['previous'];)_0x391e7f=_0x391e7f['previous'];return _0x391e7f;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x26de89){this['_markerNames']['add'](_0x26de89);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x20002c=>this['_model']['markers']['get'](_0x20002c))['filter'](_0x430e70=>_0x430e70);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x151d22=>{for(const _0x41b873 of this['getMarkers']())_0x151d22['removeMarker'](_0x41b873);}),this['_markerNames']['clear']();}['removeMarker'](_0x6088f){this['_model']['change'](_0x41c036=>{_0x41c036['removeMarker'](_0x6088f);}),this['_markerNames']['delete'](_0x6088f);}['addRange'](_0x26c2c5){const _0x597a6e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x597a6e),this['_model']['change'](_0x14f6c7=>{_0x14f6c7['addMarker'](_0x597a6e,{'range':_0x26c2c5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1668c9){for(const _0x2c5d63 of this['getRanges']())if(_0x2c5d63['isIntersecting'](_0x1668c9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x46e9ed=>_0x46e9ed['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4e39ce,_0x3f91ee)=>[..._0x4e39ce,..._0x3f91ee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e331d=this['getRanges']();if(0x1!=_0x2e331d['length'])return null;const _0x5a4b13=_0x2e331d[0x0],_0x189bdf=_0x5a4b13['start']['nodeAfter'],_0x491746=_0x5a4b13['end']['nodeBefore'];return _0x189bdf instanceof it?_0x189bdf!=_0x491746?null:_0x189bdf: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 _0x68134c=[];let _0x44252a=this['head'];for(;_0x44252a;)_0x68134c['push'](_0x44252a),_0x44252a=_0x44252a['next'];return _0x68134c;}['setAttribute'](_0x4cf527,_0x1be266){const _0x1e5492=at(this['attributes']);ut(_0x1e5492,_0x4cf527,_0x1be266),ct(_0x1e5492,this['attributes'])||(this['attributes']=_0x1e5492,this['_onAttributesChange'](_0x1e5492));}['removeAttribute'](_0x4cc0f5){const _0x4ed5cc=at(this['attributes']);dt(_0x4ed5cc,_0x4cc0f5),ct(_0x4ed5cc,this['attributes'])||(this['attributes']=_0x4ed5cc,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 _0x1f4b16()['substr'](0x1,0x5);}};function St(_0x184a48,_0x424de3,_0x3da3ea){const _0x404ca4=_0x184a48['t'],t=_0x184a48['t'];switch(_0x424de3){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x3da3ea);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3da3ea);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3da3ea);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3da3ea);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3da3ea);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',_0x3da3ea);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3da3ea);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x3da3ea);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3da3ea);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3da3ea);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3da3ea);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3da3ea);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3da3ea);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3da3ea);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3da3ea);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3da3ea);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3da3ea);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3da3ea);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3da3ea);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3da3ea);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3da3ea);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3da3ea);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3da3ea);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3da3ea);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3da3ea);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3da3ea);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3da3ea);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3da3ea);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3da3ea);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3da3ea);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3da3ea);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x3da3ea);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x3da3ea);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3da3ea);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3da3ea);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3da3ea);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3da3ea);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x3da3ea);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3da3ea);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'},_0x3da3ea);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x3da3ea);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3da3ea);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3da3ea);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3da3ea);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3da3ea);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3da3ea);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x3da3ea);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3da3ea);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x404ca4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3da3ea);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x404ca4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3da3ea);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3da3ea);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x3da3ea);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x3da3ea);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x3da3ea);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x424de3;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x598300,_0x1a6bd6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x598300,this['_locale']=_0x1a6bd6;}['getDescriptions'](_0x2f420b){const _0x2477d3=[],_0x4a13c8=new Set(),_0x33d080=new Set();for(let _0x5f118f=0x0;_0x5f118f<_0x2f420b['length'];_0x5f118f++){const _0x2200a5=_0x2f420b[_0x5f118f];if(!_0x2200a5['isInContent'])continue;const _0x325c48=this['_handleCustomCallbackDescription'](_0x2200a5);if(_0x325c48){if(null!=_0x2200a5['subType']){if(_0x4a13c8['has'](_0x2200a5['subType']))continue;_0x4a13c8['add'](_0x2200a5['subType']);}_0x2477d3['push'](_0x325c48);}else{if('attribute'==_0x2200a5['type']){const _0x2ef840=_0x2200a5['data']['key'];if(_0x33d080['has'](_0x2ef840))continue;_0x33d080['add'](_0x2200a5['data']['key']),'$elementName'==_0x2ef840?this['_handleRenameSuggestionDescription'](_0x2477d3,_0x2200a5):this['_handleAttributeSuggestionDescription'](_0x2477d3,_0x2200a5);continue;}'insertion'!=_0x2200a5['type']&&'deletion'!=_0x2200a5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2477d3,_0x2200a5,_0x2f420b[_0x5f118f+0x1]);}}return this['_resolveDescriptionItems'](_0x2477d3);}['registerDescriptionCallback'](_0x3e153b){this['_customCallbacks']['push'](_0x3e153b);}['registerElementLabel'](_0x6157b2,_0xa36e03,_0x5dfcdd=_0x1cf13d['normal']){'function'==typeof _0x6157b2?_0xd637d7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6157b2,'label':_0xa36e03,'priority':_0x5dfcdd}):this['_itemLabels']['set'](_0x6157b2,_0xa36e03);}['registerAttributeLabel'](_0x3b0cba,_0x45722f){this['_attributeLabels']['set'](_0x3b0cba,_0x45722f);}['getItemLabel'](_0x20a0d1,_0x49d796=0x1){let _0x284f30;for(const _0x2a7834 of this['_itemLabelsCallbacks'])if(_0x2a7834['matchingCallback'](_0x20a0d1)){_0x284f30=_0x2a7834['label'];break;}return _0x284f30||(_0x284f30=this['_itemLabels']['get'](_0x20a0d1['name'])),_0x284f30?_0x284f30(_0x49d796):0x1!==_0x49d796?_0x49d796+'\x20'+_0x20a0d1['name']+'s':''+_0x20a0d1['name'];}['_addDescriptionItems'](_0x896f02,_0x487ab2){const _0x46f774=_0x487ab2['getFirstRange']()['getWalker'](),_0x3ee7b7='insertion'==_0x487ab2['type']?'add':'remove';for(const _0x39c37f of _0x46f774){const _0x375bdc=_0x39c37f['item'],_0x5d2ce5=_0x896f02[_0x896f02['length']-0x1];if(_0x375bdc['is']('$textProxy'))_0x5d2ce5&&_0x5d2ce5['type']['indexOf']('Container')>-0x1&&_0x896f02['pop'](),_0x5d2ce5&&'text'==_0x5d2ce5['type']?_0x5d2ce5[_0x3ee7b7]+=_0x375bdc['data']:_0x896f02['push']({'type':'text','add':'add'==_0x3ee7b7?_0x375bdc['data']:'','remove':'remove'==_0x3ee7b7?_0x375bdc['data']:''});else{if(this['_schema']['isObject'](_0x375bdc)){const _0x4bb4a1=_0x375bdc;if(_0x5d2ce5&&_0x5d2ce5['type']['indexOf']('Container')>-0x1&&_0x896f02['pop'](),'elementEnd'==_0x39c37f['type'])continue;_0x5d2ce5&&_0x5d2ce5['type']==_0x3ee7b7+'Object'&&_0x5d2ce5['element']['name']==_0x4bb4a1['name']?_0x5d2ce5['quantity']++:_0x896f02['push']({'type':_0x3ee7b7+'Object','element':_0x4bb4a1,'quantity':0x1}),_0x46f774['skip'](_0x2ffdd4=>!('elementEnd'==_0x2ffdd4['type']&&_0x2ffdd4['item']==_0x375bdc));}else{if(this['_schema']['checkChild'](_0x375bdc,'$text')||_0x375bdc['is']('element','softBreak')){const _0x32e0fa=_0x375bdc;if('add'==_0x3ee7b7&&'elementStart'==_0x39c37f['type']||'remove'==_0x3ee7b7&&'elementEnd'==_0x39c37f['type'])continue;if(_0x5d2ce5&&-0x1==_0x5d2ce5['type']['indexOf']('Container')){'text'==_0x5d2ce5['type']&&(_0x5d2ce5[_0x3ee7b7]+='\x0a');continue;}let _0x26e2c0;if(_0x26e2c0='add'==_0x3ee7b7?_0x32e0fa['nextSibling']&&!this['_schema']['isObject'](_0x32e0fa['nextSibling'])?_0x32e0fa['nextSibling']:null:_0x32e0fa['previousSibling']&&!this['_schema']['isObject'](_0x32e0fa['previousSibling'])?_0x32e0fa['previousSibling']:null,_0x32e0fa['isEmpty']||_0x26e2c0&&_0x26e2c0['isEmpty']){const _0x1b4d7b=_0x26e2c0&&_0x26e2c0['isEmpty']?_0x26e2c0:_0x32e0fa;_0x5d2ce5&&_0x5d2ce5['type']==_0x3ee7b7+'EmptyContainer'&&_0x5d2ce5['element']['name']==_0x1b4d7b['name']?_0x5d2ce5['quantity']++:_0x896f02['push']({'type':_0x3ee7b7+'EmptyContainer','element':_0x1b4d7b,'quantity':0x1});}else _0x896f02['push']({'type':_0x3ee7b7+'Container','element':_0x32e0fa});}}}}}['_resolveDescriptionItems'](_0x3d6ed2){const _0x18a89b=this['_locale'],_0x4acb6d=[],_0x342ca1=[],_0x54c3a5=[];for(const _0x55b852 of _0x3d6ed2)switch(_0x55b852['type']){case'text':if(_0x55b852['add']=_0x55b852['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x55b852['remove']=_0x55b852['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x55b852['add']&&''!=_0x55b852['remove']){_0x4acb6d['push']({'type':'replace','content':St(_0x18a89b,'REPLACE_TEXT',['\x22'+_0x55b852['remove']+'\x22','\x22'+_0x55b852['add']+'\x22'])});continue;}if(null!=_0x55b852['add']['match'](/^ +$/)){_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Insert:*\x20%0',St(_0x18a89b,'ELEMENT_SPACE',_0x55b852['add']['length']))});continue;}if(null!=_0x55b852['remove']['match'](/^ +$/)){_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Remove:*\x20%0',St(_0x18a89b,'ELEMENT_SPACE',_0x55b852['remove']['length']))});continue;}if(''!=_0x55b852['add']){_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Insert:*\x20%0','\x22'+_0x55b852['add']+'\x22')});continue;}_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Remove:*\x20%0','\x22'+_0x55b852['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Insert:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Remove:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'addContainer':_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Split:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'removeContainer':_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Merge:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'addFormat':_0x342ca1['push'](_0x55b852['key']);continue;case'removeFormat':_0x54c3a5['push'](_0x55b852['key']);continue;default:_0x4acb6d['push'](_0x55b852);}if(_0x342ca1['length']){const _0x1b3e29=_0x342ca1['map'](_0x10f55d=>this['_attributeLabels']['has'](_0x10f55d)?this['_attributeLabels']['get'](_0x10f55d):_0x10f55d)['join'](',\x20');_0x4acb6d['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x1b3e29)});}if(_0x54c3a5['length']){const _0x33bd7d=_0x54c3a5['map'](_0x1fdddb=>this['_attributeLabels']['has'](_0x1fdddb)?this['_attributeLabels']['get'](_0x1fdddb):_0x1fdddb)['join'](',\x20');_0x4acb6d['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x33bd7d)});}return _0x4acb6d;}['_handleCustomCallbackDescription'](_0x37cef3){for(const _0x24c310 of this['_customCallbacks']){const _0x40e615=_0x24c310(_0x37cef3);if(_0x40e615&&'type'in _0x40e615)return _0x40e615;}}['_handleAttributeSuggestionDescription'](_0x214993,_0x57d162){const _0x23890c=_0x57d162['data'],_0x6e4e51=void 0x0===_0x23890c['newValue']?'removeFormat':'addFormat';_0x214993['push']({'type':_0x6e4e51,'key':_0x23890c['key']});}['_handleRenameSuggestionDescription'](_0x406951,_0x263dc4){_0x406951['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x263dc4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x15048b,_0x361d30,_0x375e2f){if(this['_addDescriptionItems'](_0x15048b,_0x361d30),_0x375e2f&&_0x375e2f['getFirstRange']()&&!_0x361d30['getFirstRange']()['end']['isEqual'](_0x375e2f['getFirstRange']()['start'])){const _0x158063=_0x15048b[_0x15048b['length']-0x1],_0x170ad0='insertion'==_0x361d30['type']?'add':'remove';_0x158063&&'text'==_0x158063['type']&&(_0x158063[_0x170ad0]+='\x0a');}}},Ot=class extends _0x413c81{['afterInit'](){const _0x10b808=this['editor'],_0x46cb88=_0x10b808['plugins']['get']('TrackChangesEditing');_0x10b808['commands']['get']('showAIAssistant')&&_0x46cb88['enableCommand']('showAIAssistant');}},wt=class extends _0x413c81{['afterInit'](){const _0x113efe=this['editor'],_0x273e13=_0x113efe['plugins']['get']('TrackChangesEditing');_0x113efe['commands']['get']('toggleAi')&&_0x273e13['enableCommand']('toggleAi');}},Ft=class extends _0x413c81{['afterInit'](){const _0x275dab=this['editor'],_0x37b453=_0x275dab['plugins']['get']('TrackChangesEditing');_0x275dab['commands']['get']('aiQuickAction')&&_0x37b453['enableCommand']('aiQuickAction');}},Bt=class extends _0x413c81{['afterInit'](){const _0x16d5e2=this['editor'],_0x1f94c7=_0x16d5e2['locale'];if(!_0x16d5e2['plugins']['has']('AlignmentEditing'))return;const _0x250d57=_0x16d5e2['plugins']['get']('TrackChangesEditing');_0x250d57['enableDefaultAttributesIntegration']('alignment'),_0x250d57['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x1f94c7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fc334=this['editor'],_0x30913d=_0x4fc334['locale'];_0x4fc334['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a18b=>{if('formatBlock'!=_0x40a18b['type'])return;const {data:_0x2d150d}=_0x40a18b;if(_0x2d150d&&'alignment'==_0x2d150d['commandName']){const _0x2c8cfc=_0x2d150d['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x30913d,'*Format:*\x20%0',function(_0x2fa39e){switch(_0x2fa39e){case'left':return St(_0x30913d,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x30913d,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x30913d,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x30913d,'FORMAT_JUSTIFY_TEXT');}}(_0x2c8cfc))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x413c81{['afterInit'](){const _0x1bab32=this['editor'],_0x316f78=_0x1bab32['plugins']['get']('TrackChangesEditing'),_0x5ec9c5=_0x1bab32['locale'];for(const _0x1e0882 of vt){if(!_0x1bab32['plugins']['has'](_0x1e0882))continue;const _0x4096ed=_0x1e0882['slice'](0x0,-0x7)['toLowerCase'](),_0x1a8906='FORMAT_'+_0x4096ed['toUpperCase']();_0x316f78['enableDefaultAttributesIntegration'](_0x4096ed),_0x316f78['descriptionFactory']['registerAttributeLabel'](_0x4096ed,St(_0x5ec9c5,_0x1a8906));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0673=this['editor'],_0x51fcd6=_0x1e0673['locale'],_0xf25bae=_0x1e0673['plugins']['get']('TrackChangesEditing');function _0x2615ca(_0x39e79b,_0x437edc){_0xf25bae['descriptionFactory']['registerDescriptionCallback'](_0x1dea26=>{if('formatInline'!=_0x1dea26['type'])return;const {data:_0x4c3ee2}=_0x1dea26;return _0x4c3ee2&&_0x4c3ee2['commandName']===_0x39e79b?_0x4c3ee2['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x51fcd6,'*Format:*\x20%0',_0x437edc)}:{'type':'format','content':St(_0x51fcd6,'*Remove\x20format:*\x20%0',_0x437edc)}:void 0x0;});}_0x2615ca('bold',St(_0x51fcd6,'FORMAT_BOLD')),_0x2615ca('italic',St(_0x51fcd6,'FORMAT_ITALIC')),_0x2615ca('underline',St(_0x51fcd6,'FORMAT_UNDERLINE')),_0x2615ca('code',St(_0x51fcd6,'FORMAT_CODE')),_0x2615ca('strikethrough',St(_0x51fcd6,'FORMAT_STRIKETHROUGH')),_0x2615ca('subscript',St(_0x51fcd6,'FORMAT_SUBSCRIPT')),_0x2615ca('superscript',St(_0x51fcd6,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x413c81{['afterInit'](){const _0x3d4704=this['editor'],_0x169c63=_0x3d4704['locale'];if(!_0x3d4704['plugins']['has']('BlockQuoteEditing'))return;const _0x12f660=_0x3d4704['plugins']['get']('TrackChangesEditing'),_0x2766d6=this['editor']['commands']['get']('blockQuote');_0x12f660['enableCommand']('blockQuote',(_0x4b1d78,_0x5c655c={})=>{const _0xe2683b=this['editor']['model']['document']['selection'],_0x38ee8=_0x5c655c&&void 0x0!==_0x5c655c['forceValue']?_0x5c655c['forceValue']:!_0x2766d6['value'];let _0x3f11b9=[];_0x3f11b9=At(_0x38ee8?Array['from'](_0xe2683b['getSelectedBlocks']())['filter'](_0x2cd887=>Pt(_0x2cd887)||function(_0x4bedca,_0x5d5c5e){const _0x1314bf=_0x5d5c5e['createContext'](_0x4bedca['parent']);return!!_0x5d5c5e['checkChild'](_0x1314bf,'blockQuote')&&!!_0x5d5c5e['checkChild'](_0x1314bf['push']('blockQuote'),_0x4bedca);}(_0x2cd887,this['editor']['model']['schema'])):Array['from'](_0xe2683b['getSelectedBlocks']())['filter'](_0x24e899=>Pt(_0x24e899)),_0x3d4704['model']),_0x3d4704['model']['change'](()=>{for(const _0x4b97b4 of _0x3f11b9)_0x12f660['markBlockFormat'](_0x4b97b4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38ee8}]});});}),_0x12f660['descriptionFactory']['registerDescriptionCallback'](_0x5d2321=>{const {data:_0x7a0afc}=_0x5d2321;if(_0x7a0afc&&'blockQuote'==_0x7a0afc['commandName']){const _0x3c5ed1=St(_0x169c63,'ELEMENT_BLOCK_QUOTE');return _0x7a0afc['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x169c63,'*Set\x20format:*\x20%0',_0x3c5ed1)}:{'type':'format','content':St(_0x169c63,'*Remove\x20format:*\x20%0',_0x3c5ed1)};}});}};function Pt(_0x186e95){return'blockQuote'==_0x186e95['parent']['name'];}var xt=class extends _0x413c81{['afterInit'](){const _0x1ad216=this['editor'],_0x2f7c4a=_0x1ad216['locale'],_0x3d729a=_0x1ad216['plugins']['get']('TrackChangesEditing');_0x1ad216['plugins']['has']('BookmarkEditing')&&(_0x3d729a['enableCommand']('insertBookmark'),_0x3d729a['enableDefaultAttributesIntegration']('updateBookmark'),_0x3d729a['descriptionFactory']['registerDescriptionCallback'](_0x1c8591=>{if('insertion'!=_0x1c8591['type']&&'deletion'!=_0x1c8591['type']&&'attribute'!=_0x1c8591['type'])return;const _0x1e5889=_0x1c8591['getContainedElement']();if(null==_0x1e5889)return;if(!_0x1e5889['is']('element','bookmark'))return;const _0x27ad9f=_0x1e5889['getAttribute']('bookmarkId');if('insertion'==_0x1c8591['type'])return{'type':'insertion','content':St(_0x2f7c4a,'*Insert:*\x20%0','\x22'+_0x27ad9f+'\x22\x20'+St(_0x2f7c4a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c8591['type'])return{'type':'deletion','content':St(_0x2f7c4a,'*Remove:*\x20%0','\x22'+_0x27ad9f+'\x22\x20'+St(_0x2f7c4a,'ELEMENT_BOOKMARK'))};const {data:_0x21fc32}=_0x1c8591;return _0x21fc32&&'bookmarkId'==_0x21fc32['key']?{'type':'format','content':St(_0x2f7c4a,'*Set\x20bookmark:*\x20%0','\x22'+_0x21fc32['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x413c81{['afterInit'](){const _0x5a540b=this['editor'];_0x5a540b['plugins']['has']('CaseChange')&&(_0x5a540b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5a540b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5a540b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x413c81{['afterInit'](){const _0x4b8659=this['editor'];_0x4b8659['commands']['get']('ckbox')&&_0x4b8659['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x413c81{['afterInit'](){const _0x452e1a=this['editor'];if(!_0x452e1a['plugins']['has']('CodeBlock'))return;const _0x4ed263=_0x452e1a['plugins']['get']('TrackChangesEditing'),_0xaa3ecc=_0x452e1a['locale'],_0x29aa0f=_0x452e1a['config']['get']('codeBlock')['languages'],_0x6fa2a4=_0x452e1a['commands']['get']('codeBlock');_0x4ed263['enableCommand']('indentCodeBlock'),_0x4ed263['enableCommand']('outdentCodeBlock'),_0x4ed263['enableCommand']('codeBlock',(_0x51fdc2,_0x3c76cc={})=>{const _0x221be7=_0x452e1a['model'],_0x1a3fc8=_0x452e1a['model']['document']['selection'],_0x56faf8=_0x3c76cc&&void 0x0!==_0x3c76cc['forceValue']?_0x3c76cc['forceValue']:!_0x6fa2a4['value'];let _0x2d725a;_0x3c76cc['language']||(_0x3c76cc['language']=_0x29aa0f[0x0]['language']),_0x2d725a=_0x56faf8?Array['from'](_0x1a3fc8['getSelectedBlocks']())['filter'](_0x4fb451=>{return Vt(_0x4fb451)||(_0x1ee256=_0x4fb451,_0x9634bd=_0x221be7['schema'],!_0x1ee256['is']('rootElement')&&!_0x9634bd['isLimit'](_0x1ee256)&&_0x9634bd['checkChild'](_0x1ee256['parent'],'codeBlock'));var _0x1ee256,_0x9634bd;}):Array['from'](_0x1a3fc8['getSelectedBlocks']())['filter'](_0x429a70=>Vt(_0x429a70));const _0xa345ad=At(_0x2d725a,_0x221be7);_0x221be7['change'](()=>{for(const _0x20714b of _0xa345ad)_0x4ed263['markBlockFormat'](_0x20714b,{'commandName':'codeBlock','commandParams':[{..._0x3c76cc,'forceValue':_0x56faf8}],'formatGroupId':'blockName'});});}),(_0x4ed263['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ea1d7=>St(_0xaa3ecc,'ELEMENT_CODE_BLOCK',_0x4ea1d7)),_0x4ed263['descriptionFactory']['registerDescriptionCallback'](_0x184121=>{if('formatBlock'!=_0x184121['type'])return;const _0x512c59=_0xaa3ecc['t'],{data:_0x43ceb4}=_0x184121;if(!_0x43ceb4||'codeBlock'!=_0x43ceb4['commandName'])return;const _0x484c66=_0x43ceb4['commandParams'][0x0]['language'],_0x164601=_0x512c59(_0x29aa0f['find'](_0x50cfd8=>_0x50cfd8['language']===_0x484c66)['label'])['toLowerCase']();return _0x43ceb4['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0xaa3ecc,'*Set\x20format:*\x20%0',St(_0xaa3ecc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x164601+')')}:{'type':'format','content':St(_0xaa3ecc,'*Remove\x20format:*\x20%0',St(_0xaa3ecc,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x6c2c5b){return'codeBlock'==_0x6c2c5b['name'];}var Wt=class extends _0x413c81{['afterInit'](){const _0x57b926=this['editor'];_0x57b926['plugins']['has']('CommentsEditing')&&_0x57b926['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x413c81{static get['requires'](){return[ht];}['init'](){const _0x597f5d=this['editor'],_0x198a8c=_0x597f5d['plugins']['get']('TrackChangesEditing');_0x198a8c['enableCommand']('delete');const _0x5174ae=_0x597f5d['commands']['get']('deleteForward');_0x198a8c['enableCommand']('deleteForward',(_0xd8bc0e,_0x2b0756={})=>{const _0xda19ce=_0x597f5d['model']['createSelection'](_0x597f5d['model']['document']['selection']);_0xda19ce['isCollapsed']&&_0x597f5d['model']['modifySelection'](_0xda19ce,{'direction':'forward','unit':_0x2b0756['unit']});const _0x4ef894=_0xda19ce['getFirstRange'](),_0xc2c024=rt['fromRange'](_0x4ef894);let _0x101028;_0xd8bc0e(_0x2b0756),_0x101028='$graveyard'==_0xc2c024['root']['rootName']?_0x597f5d['model']['createRange'](_0x4ef894['start']):_0x597f5d['model']['createRange'](_0xc2c024['start'],_0xc2c024['end']),_0xc2c024['detach'](),_0x597f5d['model']['enqueueChange'](_0x5174ae['buffer']['batch'],_0x509b3d=>{_0x5174ae['buffer']['lock'](),_0x509b3d['setSelection'](_0x509b3d['createRange'](_0x101028['end'])),_0x5174ae['buffer']['unlock']();});});}},Kt=class extends _0x413c81{['afterInit'](){const _0x354246=this['editor'];if(!_0x354246['plugins']['has']('ListEditing'))return;const _0x3b22f8=_0x354246['locale'],_0x128a63=_0x354246['plugins']['get']('TrackChangesEditing'),_0x361759=_0x354246['plugins']['has']('TodoListEditing'),_0x10014a=!!_0x354246['config']['get']('list.multiBlock');function _0x377431(_0x47f9f6){return{'type':'format','content':''+St(_0x3b22f8,'*Set\x20format:*\x20%0',_0x47f9f6)};}function _0x1fc211(_0x43ce02){return{'type':'format','content':''+St(_0x3b22f8,'*Remove\x20format:*\x20%0',_0x43ce02)};}_0x128a63['enableDefaultAttributesIntegration']('numberedList'),_0x128a63['enableDefaultAttributesIntegration']('bulletedList'),_0x128a63['enableDefaultAttributesIntegration']('customNumberedList'),_0x128a63['enableDefaultAttributesIntegration']('customBulletedList'),_0x128a63['enableDefaultAttributesIntegration']('indentList'),_0x128a63['enableDefaultAttributesIntegration']('outdentList'),_0x128a63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x128a63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x10014a&&(_0x128a63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x128a63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x361759&&(_0x128a63['enableDefaultAttributesIntegration']('todoList'),_0x128a63['enableDefaultAttributesIntegration']('checkTodoList'),_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x428524=>{const {data:_0xab291}=_0x428524;if(_0xab291&&'todoListChecked'==_0xab291['key'])return{'type':'format','content':_0xab291['newValue']?St(_0x3b22f8,'*Check\x20item*'):St(_0x3b22f8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x98fd01=>{if(_0x98fd01['batch']['isUndo'])return!0x1;let _0x1fb72b=!0x1;const _0x5495c9=_0x128a63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35ed53=>'todoListChecked'===_0x128a63['_getAttributeKey'](_0x35ed53));for(const _0x3b16c4 of _0x5495c9)'todo'!=_0x3b16c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x128a63['_findSuggestions'](_0x3b16c4['getFirstRange'](),'attribute')['find'](_0x306042=>'listType'===_0x128a63['_getAttributeKey'](_0x306042['suggestion']))||(_0x98fd01['removeMarker'](_0x3b16c4['getFirstMarker']()),_0x1fb72b=!0x0));return _0x1fb72b;})),_0x128a63['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x3b22f8,'FORMAT_INDENT'));const _0x2b1400={'type':'format','content':''};_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x8b0d67=>{const {data:_0x38372e}=_0x8b0d67;if(!_0x38372e||'listType'!=_0x38372e['key'])return;let _0x541c6f=_0x8b0d67['head'];for(;_0x541c6f;){if(_0x541c6f['data']&&(('listStyle'==_0x541c6f['data']['key']||'listMarkerStyle'==_0x541c6f['data']['key'])&&(_0x541c6f['data']['newValue']&&'default'!=_0x541c6f['data']['newValue']||'default'!=_0x541c6f['data']['oldValue']&&!_0x38372e['newValue'])||!_0x10014a&&'$elementName'==_0x541c6f['data']['key']))return _0x2b1400;_0x541c6f=_0x541c6f['next'];}if(null==_0x38372e['newValue'])switch(_0x38372e['oldValue']){case'bulleted':return _0x1fc211(St(_0x3b22f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1fc211(St(_0x3b22f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1fc211(St(_0x3b22f8,'ELEMENT_TODO_LIST'));}switch(_0x38372e['newValue']){case'bulleted':return _0x377431(St(_0x3b22f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x377431(St(_0x3b22f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x377431(St(_0x3b22f8,'ELEMENT_TODO_LIST'));}}),_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x29ec3f=>{const {data:_0x4cc3bc}=_0x29ec3f;if(_0x4cc3bc&&'listIndent'==_0x4cc3bc['key'])return null==_0x4cc3bc['newValue']||null==_0x4cc3bc['oldValue']&&0x0==_0x4cc3bc['newValue']?_0x2b1400:void 0x0;}),_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x34df05=>{if('attribute'!=_0x34df05['type'])return;const {data:_0x314674}=_0x34df05;if(!_0x314674||'listItemId'!=_0x314674['key'])return;const _0x359be7=zt(_0x34df05);return'newValue'==_0x359be7?{'type':'format','content':St(_0x3b22f8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x359be7?{'type':'format','content':St(_0x3b22f8,'*Split:*\x20list\x20item')}:_0x2b1400;}),_0x354246['model']['document']['registerPostFixer'](_0x225a7a=>this['listItemIdFixer'](_0x225a7a)),_0x354246['model']['document']['registerPostFixer'](_0x2c747e=>this['noTrackChangesFixer'](_0x2c747e)),_0x354246['model']['document']['on']('change:data',(_0x16774c,_0x2ccdad)=>{if(_0x2ccdad['isUndo']||!_0x2ccdad['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2d7239){if(_0x2d7239['batch']['isUndo']||!_0x2d7239['batch']['isLocal'])return!0x1;let _0x3ca716=!0x1;const _0x355a43=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd56ed0=>_0xd56ed0['data']&&'listItemId'==_0xd56ed0['data']['key'])['filter'](_0x453321=>_0x453321['data']['newValue']&&_0x453321['data']['oldValue']);for(const _0x1faaff of _0x355a43)zt(_0x1faaff)||(_0x2d7239['removeMarker'](_0x1faaff['getFirstMarker']()),_0x3ca716=!0x0);return _0x3ca716;}['noTrackChangesFixer'](_0xa245b0){if(_0xa245b0['batch']['isUndo']||!_0xa245b0['batch']['isLocal'])return!0x1;const _0x3368af=this['editor']['model']['document']['differ'],_0x8556e3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8556e3['trackChangesCommand']['value'])return!0x1;let _0x1464b4=!0x1;const _0x5669e4=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x5f0ea7=_0x3368af['getChanges']()['filter'](_0x1f158f=>'attribute'==_0x1f158f['type'])['filter'](_0x5bc7ad=>_0x5669e4['has'](_0x5bc7ad['attributeKey']));if(0x0==_0x5f0ea7['length'])return _0x1464b4;const _0x360ebb=new Set(_0x3368af['getMarkersToAdd']()['filter'](_0x10fb55=>{if(!_0x10fb55['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3142f7=tt(_0x10fb55['name'])['subType']['split']('|')[0x0];return _0x5669e4['has'](_0x3142f7);})['map'](_0x71813f=>tt(_0x71813f['name'])['id']));for(const _0x589c8c of _0x5f0ea7){const _0x30e95a=_0x8556e3['_findSuggestions'](_0x589c8c['range'],'attribute')['filter'](_0xeba929=>{if(_0xeba929['meta']['isNextTo'])return!0x1;if(_0x360ebb['has'](_0xeba929['suggestion']['id']))return!0x1;const _0x539e5e=_0x8556e3['_getAttributeKey'](_0xeba929['suggestion']);return _0x5669e4['has'](_0x539e5e);})['map'](_0x231f8f=>_0x231f8f['suggestion']);if(_0x30e95a['length']){for(const _0x1b17d9 of _0x30e95a)_0xa245b0['removeMarker'](_0x1b17d9['getFirstMarker']());_0x1464b4=!0x0;}}return _0x1464b4;}['assureChains'](){const _0x58aad9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x230911=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x5e6b26;const _0x2e2f9e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16f39e=>{if(_0x16f39e['data']['oldRange']||!_0x16f39e['data']['newRange'])return null;if(!_0x16f39e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xc94aaa}=tt(_0x16f39e['name']);if(!_0x58aad9['hasSuggestion'](_0xc94aaa))return null;const _0x1297f9=_0x58aad9['getSuggestion'](_0xc94aaa);return _0x230911['includes'](_0x1297f9['data']['key']);})['map'](_0x3af639=>{const {id:_0x222b27}=tt(_0x3af639['name']),_0x576e39=_0x58aad9['getSuggestion'](_0x222b27);return _0x5e6b26=_0x576e39['attributes']['groupId'],_0x576e39['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2e2f9e['size'])return;const _0x3a07a0=_0x58aad9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4812c0=>'attribute'==_0x4812c0['type']&&_0x4812c0['data']&&_0x230911['includes'](_0x4812c0['data']['key'])&&_0x4812c0['attributes']['groupId']!=_0x5e6b26)['map'](_0x20e7e1=>({'listItem':_0x20e7e1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x20e7e1['attributes']['groupId']})),_0x20348a=new Set();for(const {groupId:_0x487011,listItem:_0x3e3732}of _0x3a07a0)_0x2e2f9e['has'](_0x3e3732)&&_0x20348a['add'](_0x487011);for(const _0x1e3908 of _0x58aad9['getSuggestions']())_0x20348a['has'](_0x1e3908['attributes']['groupId'])&&_0x1e3908['setAttribute']('groupId',_0x5e6b26);}['_supportLegacySuggestions'](){const _0x5bb85a=this['editor'],_0x533267=_0x5bb85a['locale'],_0x54aaf8=_0x5bb85a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x54aaf8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5c1e14,_0x141d8c){const _0x13105c=[];for(let _0x51460a of _0x5c1e14)_0x51460a['start']['nodeAfter']===_0x51460a['end']['parent']&&(_0x51460a=_0x5bb85a['model']['createRange'](_0x5bb85a['model']['createPositionAt'](_0x51460a['start']['nodeAfter'],0x0))),_0x13105c['push'](_0x51460a);_0x5bb85a['model']['change'](_0x3c8883=>{const _0x45fb96=_0x5bb85a['model']['document']['selection'],_0xf0e8ae=Array['from'](_0x45fb96['getRanges']())['map'](_0x362cbc=>rt['fromRange'](_0x362cbc));_0x3c8883['setSelection'](_0x13105c),_0x5bb85a['commands']['get'](_0x141d8c['commandName'])['refresh'](),_0x141d8c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5bb85a['execute'](_0x141d8c['commandName'],..._0x141d8c['commandParams']),_0x3c8883['setSelection'](_0xf0e8ae);for(const _0x4f1c34 of _0xf0e8ae)_0x4f1c34['detach']();});}),_0x54aaf8['descriptionFactory']['registerElementLabel'](function(_0x30392f){const _0x5f1bb0=!_0x5bb85a['model']['schema']['isObject'](_0x30392f),_0x18c529=_0x30392f['previousSibling'],_0x494d46=_0x30392f['nextSibling'],_0x27e819=_0x30392f['getAttribute']('listItemId'),_0x497c29=!_0x18c529||_0x18c529['getAttribute']('listItemId')!==_0x27e819,_0x592f4d=!_0x494d46||_0x494d46['getAttribute']('listItemId')!==_0x27e819;return _0x5f1bb0&&Boolean(_0x27e819)&&_0x497c29&&_0x592f4d;},_0x51a5d2=>St(_0x533267,'ELEMENT_LIST_ITEM',_0x51a5d2));}['_registerLegacyDescription'](){const _0x18b57b=this['editor'],_0x5a20b2=_0x18b57b['locale'];function _0x589b19(_0x579147){const _0x5cc7aa=_0x18b57b['commands']['get']('bulletedList')['value'],_0x380d35=_0x18b57b['commands']['get']('numberedList')['value'];return'numberedList'===_0x579147?_0x5cc7aa:_0x380d35;}_0x18b57b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x8df2ae){if('formatBlock'!=_0x8df2ae['type'])return;const {data:_0x1c65d7}=_0x8df2ae;if(!_0x1c65d7)return;let _0x1b9d0a,_0x1ef115,_0x43b7ee,_0x136b8d;switch(_0x1c65d7['commandName']){case'bulletedList':_0x43b7ee=_0x1c65d7['commandParams'][0x0]['forceValue'],_0x136b8d=_0x589b19(_0x1c65d7['commandName']),_0x1b9d0a=_0x43b7ee?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136b8d&&_0x18b57b['config']['get']('list.multiBlock')||(_0x1b9d0a='*Change\x20to:*\x20%0'),_0x1ef115={'type':'format','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43b7ee=_0x1c65d7['commandParams'][0x0]['forceValue'],_0x136b8d=_0x589b19(_0x1c65d7['commandName']),_0x1b9d0a=_0x43b7ee?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136b8d&&_0x18b57b['config']['get']('list.multiBlock')||(_0x1b9d0a='*Change\x20to:*\x20%0'),_0x1ef115={'type':'format','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b9d0a='*Indent:*\x20%0',_0x1ef115={'type':'format','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b9d0a=function(_0x290a6b){const _0x52598b=_0x290a6b['getFirstRange']();let _0x32b9d7=_0x52598b['start']['nodeAfter'];for(;_0x32b9d7&&_0x52598b['containsItem'](_0x32b9d7);){if(_0x32b9d7['getAttribute']('listIndent')>0x0)return!0x1;_0x32b9d7=_0x32b9d7['nextSibling'];}return!0x0;}(_0x8df2ae)?St(_0x5a20b2,'*Format:*\x20remove\x20from\x20%0',St(_0x5a20b2,function(_0x120b81){return'ELEMENT_'+_0x120b81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x8df2ae))):St(_0x5a20b2,'*Outdent:*\x20%0',St(_0x5a20b2,'ELEMENT_LIST_ITEM')),_0x1ef115={'type':'format','content':_0x1b9d0a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c65d7['multipleBlocks']&&(_0x1b9d0a='*Merge:*\x20%0',_0x1ef115={'type':'deletion','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_LIST_ITEM'))});}return _0x1ef115;});}};function zt(_0x2da1f7){let _0x11972a=_0x2da1f7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x11972a;){const _0x5cd14a=_0x11972a['getAttribute']('listItemId');if(!_0x5cd14a)return!0x1;if(_0x5cd14a==_0x2da1f7['data']['newValue'])return'newValue';if(_0x5cd14a==_0x2da1f7['data']['oldValue'])return'oldValue';_0x11972a=_0x11972a['previousSibling'];}return!0x1;}var Xt=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x346b6d=this['editor']['config']['get']('list.properties'),_0x302aa0=this['editor']['plugins']['get']('TrackChangesEditing');_0x346b6d['styles']&&_0x302aa0['enableDefaultAttributesIntegration']('listStyle'),_0x346b6d['reversed']&&_0x302aa0['enableDefaultAttributesIntegration']('listReversed'),_0x346b6d['startIndex']&&_0x302aa0['enableDefaultAttributesIntegration']('listStart');const _0x5cd86c={'type':'format','content':''};_0x302aa0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x55274d=this['editor']['locale'];_0x302aa0['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x55274d,'FORMAT_LIST_REVERSED')),_0x302aa0['descriptionFactory']['registerDescriptionCallback'](_0x4a293a=>{const {data:_0x1046b1}=_0x4a293a;if(_0x1046b1&&'listReversed'==_0x1046b1['key'])return null==_0x1046b1['newValue']||0x0==_0x1046b1['newValue']&&null==_0x1046b1['oldValue']?_0x5cd86c:void 0x0;}),_0x302aa0['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x55274d,'FORMAT_LIST_START')),_0x302aa0['descriptionFactory']['registerDescriptionCallback'](_0x541da0=>{const {data:_0x5781fd}=_0x541da0;if(_0x5781fd&&'listStart'==_0x5781fd['key'])return null==_0x5781fd['newValue']||0x1==_0x5781fd['newValue']&&null==_0x5781fd['oldValue']?_0x5cd86c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x11705=>{if(_0x11705['batch']['isUndo'])return!0x1;let _0xd611ea=!0x1;const _0xa5adba=_0x302aa0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c763c=>{const _0x337ad4=_0x302aa0['_getAttributeKey'](_0x5c763c);return'listStart'==_0x337ad4||'listReversed'==_0x337ad4;});for(const _0x105f77 of _0xa5adba){const _0x31b21d=_0x105f77['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x31b21d&&'customNumbered'!=_0x31b21d&&(_0x302aa0['_findSuggestions'](_0x105f77['getFirstRange'](),'attribute')['find'](_0x23d28f=>'listType'==_0x302aa0['_getAttributeKey'](_0x23d28f['suggestion']))||(_0x11705['removeMarker'](_0x105f77['getFirstMarker']()),_0xd611ea=!0x0));}return _0xd611ea;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x23c779){const _0x5e2404=this['editor']['locale'],{data:_0x1ab041}=_0x23c779,_0x46063c={'type':'format','content':''};if(!_0x1ab041||'listStyle'!=_0x1ab041['key'])return;if(!_0x1ab041['oldValue'])return'default'==_0x1ab041['newValue']?_0x46063c:{'type':'format','content':''+St(_0x5e2404,'*Set\x20format:*\x20%0',St(_0x5e2404,this['_getTranslationKeyForListStyle'](_0x1ab041['newValue'])))};if(!_0x1ab041['newValue']){if('default'==_0x1ab041['oldValue'])return _0x46063c;let _0x4e251f=_0x23c779['head'];for(;_0x4e251f;){if(_0x4e251f['data']&&'listType'==_0x4e251f['data']['key']&&_0x4e251f['data']['newValue'])return _0x46063c;_0x4e251f=_0x4e251f['next'];}return{'type':'format','content':''+St(_0x5e2404,'*Remove\x20format:*\x20%0',St(_0x5e2404,this['_getTranslationKeyForListStyle'](_0x1ab041['oldValue'])))};}if('default'!=_0x1ab041['newValue'])return{'type':'format','content':''+St(_0x5e2404,'*Set\x20format:*\x20%0',St(_0x5e2404,this['_getTranslationKeyForListStyle'](_0x1ab041['newValue'])))};let _0x5d2e51=_0x23c779['head'];for(;_0x5d2e51;){if(_0x5d2e51['data']&&'listType'==_0x5d2e51['data']['key']&&_0x5d2e51['data']['newValue']&&_0x5d2e51['data']['oldValue'])return _0x46063c;_0x5d2e51=_0x5d2e51['next'];}return{'type':'format','content':St(_0x5e2404,'*Set\x20format:*\x20%0',St(_0x5e2404,'ELEMENT_'+_0x23c779['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x348ef1=this['editor'],_0x4e1b41=_0x348ef1['locale'];_0x348ef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a3911=>{if('formatBlock'!=_0x1a3911['type'])return;const {data:_0x25b26b}=_0x1a3911;if(!_0x25b26b)return;let _0x1ec94d,_0x20ea69;switch(_0x25b26b['commandName']){case'listStyle':_0x1ec94d='*Change\x20to:*\x20%0',_0x20ea69={'type':'format','content':St(_0x4e1b41,_0x1ec94d,St(_0x4e1b41,this['_getTranslationKeyForListStyle'](_0x25b26b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ec94d=_0x25b26b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20ea69={'type':'format','content':St(_0x4e1b41,_0x1ec94d)};break;case'listStart':_0x1ec94d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20ea69={'type':'format','content':St(_0x4e1b41,_0x1ec94d,_0x25b26b['commandParams'][0x0]['startIndex'])};}return _0x20ea69;});}['_getTranslationKeyForListStyle'](_0x148200){return'ELEMENT_'+(_0x295c89=_0x148200,qt['includes'](_0x295c89)?'bulleted':Yt['includes'](_0x295c89)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x148200['toUpperCase']()['replace'](/-/g,'_');var _0x295c89;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x413c81{['afterInit'](){const _0x3a41ac=this['editor'];_0x3a41ac['commands']['get']('emoji')&&_0x3a41ac['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x413c81{static get['requires'](){return[ft];}['init'](){const _0x367fef=this['editor'],_0x17bc4b=_0x367fef['plugins']['get']('TrackChangesEditing'),_0x243286=_0x367fef['commands']['get']('enter');_0x17bc4b['enableCommand']('enter',()=>{_0x367fef['model']['change'](_0x325abd=>{const _0x3c5ebb=_0x367fef['model']['document']['selection'],_0x562b3a=_0x3c5ebb['getFirstPosition'](),_0x3472e5=rt['fromRange'](_0x3c5ebb['getFirstRange']());if(_0x243286['enterBlock'](_0x325abd)){const _0x4b292f=_0x367fef['model']['createPositionAt'](_0x562b3a['parent']['nextSibling'],0x0),_0x213ea3=_0x325abd['createRange'](_0x562b3a,_0x4b292f);_0x17bc4b['markInsertion'](_0x213ea3);}else _0x325abd['setSelection'](_0x325abd['createRange'](_0x3472e5['end']));_0x3472e5['detach'](),_0x243286['fire']('afterExecute',{'writer':_0x325abd});});});}},Jt=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x339353=this['editor']['plugins']['get']('TrackChangesEditing');_0x339353['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x339353['enableCommand']('findNext'),_0x339353['enableCommand']('findPrevious'),_0x339353['enableCommand']('replace'),_0x339353['enableCommand']('replaceAll');}['handleFindCommand'](_0x2042d0,_0x4eb261,_0x3c7d00={}){const _0x2368bb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2042d0(_0x418aea=>{let _0x4287f3=('string'==typeof _0x4eb261?_0x2368bb['findByTextCallback'](_0x4eb261,_0x3c7d00):_0x4eb261)(_0x418aea);Array['isArray'](_0x4287f3)&&(_0x4287f3={'results':_0x4287f3,'searchText':'string'==typeof _0x4eb261?_0x4eb261:''});const _0x2ab6d0=_0x4287f3['results']['filter'](_0x3ed5af=>!0x1===this['_isInDeletionRange'](_0x3ed5af,_0x418aea['item']));return{..._0x4287f3,'results':_0x2ab6d0};},_0x3c7d00);}['_isInDeletionRange'](_0x4bef30,_0x1169b9){const _0x7ad33c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1169b9,_0x4bef30['start']),this['editor']['model']['createPositionAt'](_0x1169b9,_0x4bef30['end']));for(const _0x27aac6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x7ad33c['getIntersection'](_0x27aac6['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x413c81{['afterInit'](){const _0x49f886=this['editor']['locale'],_0x343115=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x253305,commandName:_0x58e328}of te)this['editor']['plugins']['has'](_0x253305)&&_0x343115['enableDefaultAttributesIntegration'](_0x58e328);_0x343115['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x49f886,'FORMAT_FONT_SIZE')),_0x343115['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x49f886,'FORMAT_FONT_FAMILY')),_0x343115['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x49f886,'FORMAT_FONT_COLOR')),_0x343115['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x49f886,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ca824=this['editor'],_0x3b2b1c=_0x4ca824['locale'];_0x4ca824['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38e341=>{const _0x1700d5=_0x3b2b1c['t'];if('formatInline'!=_0x38e341['type'])return;const {data:_0x5cd6f3}=_0x38e341;if(null!=_0x5cd6f3){if('fontSize'==_0x5cd6f3['commandName']){const _0x4f1680=_0x5cd6f3['commandParams'][0x0]['value'];if(_0x4f1680){const _0x4a9027=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5ed2b5=>_0x5ed2b5['model']==_0x4f1680)['title'];return{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20size:*\x20%0',_0x1700d5(_0x4a9027)['toLowerCase']())};}return{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5cd6f3['commandName']){const _0xb7b02e=_0x5cd6f3['commandParams'][0x0]['value'];return _0xb7b02e?{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20family:*\x20%0',_0xb7b02e)}:{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5cd6f3['commandName']){const _0x381675=_0x5cd6f3['commandParams'][0x0]['value'];if(_0x381675){const _0x3bca89=_0x5a539b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x15271c=>_0x15271c['model']==_0x381675);let _0x442fd1=_0x381675,_0xb71d8f='';return _0x3bca89&&(_0x442fd1=_0x3bca89['label'],_0xb71d8f=_0x1700d5(_0x442fd1)['toLowerCase']()),{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20color:*\x20%0',_0xb71d8f)['trim'](),'color':{'value':_0x381675,'title':_0xb71d8f||_0x442fd1}};}return{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5cd6f3['commandName']){const _0x4eb5dc=_0x5cd6f3['commandParams'][0x0]['value'];if(_0x4eb5dc){const _0x183f19=_0x5a539b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42c5d6=>_0x42c5d6['model']==_0x4eb5dc);let _0x3b4c2e=_0x4eb5dc,_0x1d53ef='';return _0x183f19&&(_0x3b4c2e=_0x183f19['label'],_0x1d53ef=_0x1700d5(_0x3b4c2e)['toLowerCase']()),{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20background\x20color:*\x20%0',_0x1d53ef)['trim'](),'color':{'value':_0x4eb5dc,'title':_0x1d53ef||_0x3b4c2e}};}return{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x413c81{['afterInit'](){const {plugins:_0x1ca38b}=this['editor'];_0x1ca38b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1ca38b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x714997,plugins:_0x41fbc7,commands:_0xc8b3ce}=this['editor'],_0x2b02e1=_0x41fbc7['get']('TrackChangesEditing');_0xc8b3ce['get']('footnotesStyle')&&_0x2b02e1['enableDefaultAttributesIntegration']('footnotesStyle'),_0xc8b3ce['get']('footnotesStart')&&_0x2b02e1['enableDefaultAttributesIntegration']('footnotesStart'),_0x2b02e1['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x714997,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2b02e1['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x714997,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5220c3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5a3813,commands:_0x2701b5}=this['editor'];_0x2701b5['get']('insertFootnote')&&_0x5220c3['enableCommand']('insertFootnote'),_0x5220c3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5f2f08=>St(_0x5a3813,'ELEMENT_FOOTNOTE_REF',_0x5f2f08)),_0x5220c3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x47f513=>St(_0x5a3813,'ELEMENT_FOOTNOTE_DEFINITION',_0x47f513)),_0x5220c3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1a5a8e=>St(_0x5a3813,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1a5a8e));}},ie=class extends _0x413c81{['afterInit'](){const _0x59c5ed=this['editor'],_0x31626e=_0x59c5ed['plugins']['get']('TrackChangesEditing'),_0x49bf8d=_0x59c5ed['commands']['get']('copyFormat'),_0x59ee7d=_0x59c5ed['commands']['get']('pasteFormat');_0x49bf8d&&_0x59ee7d&&(_0x31626e['enableDefaultAttributesIntegration']('pasteFormat'),_0x31626e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x22c38f=this['editor'],_0x575a14=_0x22c38f['locale'];_0x22c38f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eb618=>{if('formatBlock'!=_0x1eb618['type']&&'formatInline'!=_0x1eb618['type'])return;const {data:_0x377386}=_0x1eb618;if(_0x377386&&'pasteFormat'===_0x377386['commandName']){const _0x5a9494=[],_0x1ecca8=_0x377386['commandParams'][0x0];for(const [_0x346f4a,_0x3bbc49]of Object['entries'](_0x1ecca8))_0x5a9494['push'](se(_0x22c38f,_0x346f4a,_0x3bbc49));return _0x5a9494['length']?{'type':'format','content':St(_0x575a14,'*Set\x20format\x20to:*\x20%0',_0x5a9494['join'](',\x20'))}:{'type':'format','content':St(_0x575a14,'*Remove\x20all\x20formatting*')};}});}};function se(_0x5e46b3,_0x545edb,_0x4f204a){const _0x47481a=_0x5e46b3['locale']['t'],_0x147bfd=_0x545edb['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b589c=_0x47481a(_0x147bfd['charAt'](0x0)['toUpperCase']()+_0x147bfd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4f204a)return _0x5b589c;if('fontColor'===_0x545edb||'fontBackgroundColor'===_0x545edb){const _0x8a2109=_0x5a539b(_0x5e46b3['config']['get']('fontColor.colors'))['find'](_0x168a09=>_0x168a09['model']==_0x4f204a);return _0x5b589c+'\x20('+(_0x8a2109?_0x47481a(_0x8a2109['label'])['toLowerCase']():_0x4f204a)+')';}if('fontSize'===_0x545edb&&isNaN(parseFloat(_0x4f204a))){const _0x2ccdfb=_0x5e46b3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e46b3['config']['get']('fontSize.options'))['find'](_0x1fe41c=>_0x1fe41c['model']==_0x4f204a);return _0x5b589c+'\x20('+(_0x2ccdfb?_0x47481a(_0x2ccdfb['title'])['toLowerCase']():_0x4f204a)+')';}return _0x5b589c+'\x20('+_0x4f204a+')';}var re=class extends _0x413c81{['afterInit'](){const _0x5cafc7=this['editor'];if(!_0x5cafc7['plugins']['has']('GeneralHtmlSupport')||!_0x5cafc7['plugins']['has']('DataSchema'))return;const _0x2dad91=_0x5cafc7['plugins']['get']('TrackChangesEditing'),_0x9f5db5=_0x5cafc7['plugins']['get']('GeneralHtmlSupport'),_0x51b5fe=_0x5cafc7['plugins']['get']('DataSchema'),_0x36f3d4=_0x5cafc7['locale'],_0x1615c8=new Set(['htmlContent']);for(const _0x16965c of _0x51b5fe['getDefinitionsForView'](/.*/,!0x1)){const _0x4a37aa=_0x16965c['view'],_0x30cd54=_0x9f5db5['getGhsAttributeNameForElement'](_0x4a37aa);_0x1615c8['add'](_0x30cd54),!_0x16965c['isInline']||_0x16965c['isObject']||'appliesToBlock'in _0x16965c&&_0x16965c['appliesToBlock']||_0x2dad91['descriptionFactory']['registerAttributeLabel'](_0x30cd54,_0x4a37aa),_0x16965c['model']['startsWith']('html')&&_0x2dad91['descriptionFactory']['registerElementLabel'](_0x16965c['model'],_0x1311a5=>St(_0x36f3d4,'ELEMENT_HTML_TAG',[_0x1311a5,_0x4a37aa]));}_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x36f3d4,'FORMAT_RAW_HTML_CONTENT')),_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x36f3d4,'FORMAT_HTML_LIST_ITEM')),_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x36f3d4,'FORMAT_HTML_BULLETED_LIST')),_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x36f3d4,'FORMAT_HTML_NUMBERED_LIST')),_0x2dad91['descriptionFactory']['registerDescriptionCallback'](_0x4596a3=>{if('attribute'!==_0x4596a3['type'])return;const _0x48c7bc=_0x4596a3['data'];if(!_0x48c7bc||!_0x1615c8['has'](_0x48c7bc['key']))return;if('htmlContent'===_0x48c7bc['key'])return{'type':'format','content':St(_0x36f3d4,'*Change\x20%0\x20content*',St(_0x36f3d4,'ELEMENT_RAW_HTML'))};const {setItems:_0x15f8ee,removeItems:_0x56e675}=function(_0x281eff,_0xda271c,_0x406363){const _0x2aafd0=[],_0x53f16b=[],_0x1c3e8c=_0x281eff['styles']??{},_0x495fee=_0xda271c['styles']??{};for(const _0x132b66 of new Set([...Object['keys'](_0x1c3e8c),...Object['keys'](_0x495fee)]))_0x1c3e8c[_0x132b66]!==_0x495fee[_0x132b66]&&(void 0x0===_0x495fee[_0x132b66]?_0x53f16b['push'](_0x132b66):_0x2aafd0['push'](_0x132b66+'\x20('+_0x495fee[_0x132b66]+')'));const _0x5aedbb=St(_0x406363,'FORMAT_HTML_CLASS'),_0x29d5eb=new Set(_0x281eff['classes']??[]),_0x5b7a9f=new Set(_0xda271c['classes']??[]),_0x29eae3=[..._0x5b7a9f]['some'](_0x1aaac9=>!_0x29d5eb['has'](_0x1aaac9)),_0x1348f0=[..._0x29d5eb]['some'](_0x201772=>!_0x5b7a9f['has'](_0x201772));_0x29eae3&&_0x2aafd0['push'](_0x5aedbb),_0x1348f0&&_0x53f16b['push'](_0x5aedbb);const _0x1bae14=St(_0x406363,'FORMAT_HTML_ATTRIBUTE'),_0x5467ad=_0x281eff['attributes']??{},_0x3a5aca=_0xda271c['attributes']??{};let _0x19bda1=!0x1,_0x1bc2f3=!0x1;for(const _0x2520b4 of new Set([...Object['keys'](_0x5467ad),...Object['keys'](_0x3a5aca)]))_0x5467ad[_0x2520b4]!==_0x3a5aca[_0x2520b4]&&(void 0x0===_0x3a5aca[_0x2520b4]?_0x1bc2f3=!0x0:_0x19bda1=!0x0);return _0x19bda1&&_0x2aafd0['push'](_0x1bae14),_0x1bc2f3&&_0x53f16b['push'](_0x1bae14),{'setItems':_0x2aafd0,'removeItems':_0x53f16b};}(_0x48c7bc['oldValue']??{},_0x48c7bc['newValue']??{},_0x36f3d4);if(!_0x15f8ee['length']&&!_0x56e675['length'])return;const _0x89e7de=[];return _0x15f8ee['length']&&_0x89e7de['push'](St(_0x36f3d4,'*Set\x20format:*\x20%0',_0x15f8ee['join'](',\x20'))),_0x56e675['length']&&_0x89e7de['push'](St(_0x36f3d4,'*Remove\x20format:*\x20%0',_0x56e675['join'](',\x20'))),{'type':'format','content':_0x89e7de['join']('\x0a')};});}},oe=class extends _0x413c81{['_headingOptions'];['afterInit'](){const _0x5a3eac=this['editor'];if(!_0x5a3eac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a3eac['config']['get']('heading.options');const _0x26acb4=_0x5a3eac['locale'],_0x125fde=_0x5a3eac['plugins']['get']('TrackChangesEditing');_0x125fde['enableDefaultAttributesIntegration']('heading');for(const _0x5b34b8 of this['_headingOptions'])'paragraph'!=_0x5b34b8['model']&&_0x125fde['descriptionFactory']['registerElementLabel'](_0x5b34b8['model'],_0x368dc7=>{const _0x727550=this['_getHeadingLevel'](_0x5b34b8['model']);return null!==_0x727550?_0xe3d480(_0x368dc7,_0x727550):_0x153404(_0x368dc7,_0x5b34b8['title']);});function _0xe3d480(_0x6cb1fc,_0x76ac87){return St(_0x26acb4,'ELEMENT_HEADING',[_0x6cb1fc,_0x76ac87]);}function _0x153404(_0x17f9e1,_0x449dd7){return St(_0x26acb4,'ELEMENT_HEADING_CUSTOM',[_0x17f9e1,_0x449dd7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27ccb0=this['editor'],_0x51a31c=_0x27ccb0['locale'];function _0x43d651(_0x4121d9,_0x10c49c){return St(_0x51a31c,'ELEMENT_HEADING_CUSTOM',[_0x4121d9,_0x10c49c]);}_0x27ccb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ec42d=>{if('formatBlock'!=_0x4ec42d['type'])return;const {data:_0x6163d6}=_0x4ec42d;if(_0x6163d6&&'heading'==_0x6163d6['commandName']){const _0x3a9c1e=_0x6163d6['commandParams'][0x0]['value'],_0x30aae2=this['_getHeadingLevel'](_0x3a9c1e);if(null!==_0x30aae2)return{'type':'format','content':St(_0x51a31c,'*Change\x20to:*\x20%0',(_0x4fcf33=0x1,_0x3af321=_0x30aae2,St(_0x51a31c,'ELEMENT_HEADING',[_0x4fcf33,_0x3af321])))};const _0x10d8a8=this['_headingOptions']['find'](_0xdb1ef3=>_0xdb1ef3['model']===_0x3a9c1e)['title'];return{'type':'format','content':St(_0x51a31c,'*Change\x20to:*\x20%0',_0x43d651(0x1,_0x10d8a8))};}var _0x4fcf33,_0x3af321;});}['_getHeadingLevel'](_0x38cbaa){const _0x1d31bd=_0x38cbaa['match'](/^heading(\d+)/);if(_0x1d31bd)return _0x1d31bd[0x1];const _0x3a525e=this['_headingOptions']?.['find'](_0x31477e=>_0x31477e['model']==_0x38cbaa);if(_0x3a525e&&_0x3a525e['view']){const _0x5d0530=_0x3a525e['view'],_0x28b24c=(_0x5d0530['name']??_0x5d0530)['match'](/^h(\d+)/);if(_0x28b24c)return _0x28b24c[0x1];}return null;}},ae=class extends _0x413c81{['afterInit'](){const _0x3d33b0=this['editor'];if(!_0x3d33b0['plugins']['has']('HighlightEditing'))return;const _0x42b649=_0x3d33b0['plugins']['get']('TrackChangesEditing'),_0x29d644=_0x3d33b0['locale'];_0x42b649['enableDefaultAttributesIntegration']('highlight'),_0x42b649['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x29d644,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c20c6=this['editor'],_0x1f30c7=_0x3c20c6['locale'];_0x3c20c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d40e=>{if('formatInline'!=_0x11d40e['type'])return;const {data:_0x2d33a3}=_0x11d40e;if(_0x2d33a3&&'highlight'==_0x2d33a3['commandName']){const _0x7d3afc=_0x1f30c7['t'],_0x379051=_0x2d33a3['commandParams'][0x0]['value'];if(_0x379051){const _0x1d151e=_0x3c20c6['config']['get']('highlight.options')['find'](_0x20e9d4=>_0x20e9d4['model']==_0x379051);return{'type':'format','content':St(_0x1f30c7,'*Set\x20highlight:*\x20%0',_0x7d3afc(_0x1d151e['title'])['toLowerCase']()),'color':{'value':_0x1d151e['color'],'title':_0x1d151e['title']}};}return{'type':'format','content':St(_0x1f30c7,'*Remove\x20highlight*',St(_0x1f30c7,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x413c81{['afterInit'](){const _0x3ffb23=this['editor'];if(!_0x3ffb23['plugins']['has']('HorizontalLineEditing'))return;_0x3ffb23['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x48c24b=_0x3ffb23['plugins']['get']('TrackChangesEditing'),_0x449322=_0x3ffb23['locale'];_0x48c24b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x38d688=>St(_0x449322,'ELEMENT_HORIZONTAL_LINE',_0x38d688));}},le=class extends _0x413c81{['afterInit'](){const _0xf2c222=this['editor'];if(!_0xf2c222['plugins']['has']('HtmlEmbed'))return;const _0x4f9de7=_0xf2c222['plugins']['get']('TrackChangesEditing'),_0x4818cf=_0xf2c222['locale'];_0x4f9de7['descriptionFactory']['registerElementLabel']('rawHtml',_0x421fa6=>St(_0x4818cf,'ELEMENT_HTML_EMBED',_0x421fa6)),_0x4f9de7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4f9de7['descriptionFactory']['registerDescriptionCallback'](_0x127371=>{if('attribute'!=_0x127371['type'])return;const {data:_0x95dcc1}=_0x127371;return _0x95dcc1&&'value'==_0x95dcc1['key']&&_0x127371['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x4818cf,'*Change\x20%0\x20content*',St(_0x4818cf,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8c18e2=this['editor'],_0x29c896=_0x8c18e2['locale'];_0x8c18e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53091e=>{if('formatBlock'!=_0x53091e['type'])return;const {data:_0x17d367}=_0x53091e;return _0x17d367&&'htmlEmbed'==_0x17d367['commandName']?{'type':'format','content':St(_0x29c896,'*Change\x20%0\x20content*',St(_0x29c896,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x413c81{['afterInit'](){const _0x33b93b=this['editor'];if(!_0x33b93b['plugins']['has']('ImageEditing'))return;const _0x26a079=_0x33b93b['plugins']['get']('TrackChangesEditing'),_0x1b9e95=_0x33b93b['plugins']['get']('ImageUtils'),_0x3702f4=_0x33b93b['locale'];_0x26a079['enableCommand']('insertImage'),_0x26a079['descriptionFactory']['registerElementLabel']('imageBlock',_0x36733f=>St(_0x3702f4,'ELEMENT_IMAGE',_0x36733f)),_0x26a079['descriptionFactory']['registerElementLabel']('imageInline',_0x106c45=>St(_0x3702f4,'ELEMENT_INLINE_IMAGE',_0x106c45)),_0x26a079['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x3702f4,'ELEMENT_CAPTION')),_0x33b93b['plugins']['has']('ImageUploadEditing')&&_0x26a079['enableCommand']('uploadImage'),_0x33b93b['plugins']['has']('ImageBlockEditing')&&_0x33b93b['plugins']['has']('ImageInlineEditing')&&(_0x26a079['enableCommand']('imageTypeInline',(_0x183f9a,_0xc9bc9a)=>{const _0x3acc37=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']);_0x33b93b['model']['change'](()=>{_0x26a079['markBlockFormat'](_0x3acc37,{'commandName':'imageTypeInline','commandParams':[_0xc9bc9a]},[],'convertBlockImageToInline');});}),_0x26a079['enableCommand']('imageTypeBlock',(_0x21c13d,_0x10a433)=>{_0x33b93b['model']['change'](_0x1cd568=>{let _0x45dfbf=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x756247=_0x1cd568['createRangeOn'](_0x45dfbf);const _0x1e2d77=st['fromPosition'](_0x756247['start'],'toPrevious'),_0x29e9bd=st['fromPosition'](_0x756247['end'],'toNext');_0x26a079['forceDefaultExecution'](()=>_0x21c13d(_0x10a433)),_0x45dfbf=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x756247=_0x1cd568['createRangeOn'](_0x45dfbf);const _0x3c6262=_0x1cd568['createRange'](_0x1e2d77,_0x29e9bd);_0x1e2d77['detach'](),_0x29e9bd['detach'](),_0x26a079['markBlockFormat'](_0x45dfbf,{'commandName':'imageTypeInline','commandParams':[_0x10a433]},[],'convertInlineImageToBlock'),_0x3c6262['start']['isBefore'](_0x756247['start'])&&_0x26a079['markInsertion'](_0x1cd568['createRange'](_0x3c6262['start'],_0x756247['start']),'convertInlineImageToBlock'),_0x756247['end']['isBefore'](_0x3c6262['end'])&&_0x26a079['markInsertion'](_0x1cd568['createRange'](_0x756247['end'],_0x3c6262['end']),'convertInlineImageToBlock');});}),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26a079['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5b39e6])=>{const _0x2afb0e=_0x26a079['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x134c24=_0x5b39e6['start'],_0x507205=_0x5b39e6['end'];const _0x4f6eaf=_0x33b93b['model']['schema']['getNearestSelectionRange'](_0x134c24,'backward'),_0xa8cfce=_0x33b93b['model']['schema']['getNearestSelectionRange'](_0x507205,'forward');_0x4f6eaf['isCollapsed']&&(_0x134c24=_0x4f6eaf['start']),_0xa8cfce['isCollapsed']&&(_0x507205=_0xa8cfce['end']),_0x2afb0e([_0x33b93b['model']['createRange'](_0x134c24,_0x507205)]);}),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bbd09),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bbd09)),_0x33b93b['plugins']['has']('ImageCaptionEditing')&&(_0x26a079['enableCommand']('toggleImageCaption',(_0x176d65,_0x420f96)=>{const _0x23845c=_0x33b93b['plugins']['get']('ImageCaptionUtils');let _0xa97683=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x4af882=_0x23845c['getCaptionFromImageModelElement'](_0xa97683);_0x33b93b['model']['change'](()=>{if(_0x4af882)return void _0x26a079['markDeletion'](_0x33b93b['model']['createRangeOn'](_0x4af882));const _0x8b8a7b=_0x1b9e95['isBlockImage'](_0xa97683);_0x176d65(_0x420f96),_0xa97683=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x4af882=_0x23845c['getCaptionFromImageModelElement'](_0xa97683),_0x26a079['markInsertion'](_0x33b93b['model']['createRangeOn'](_0x4af882),_0x8b8a7b?null:'imageCaption');});}),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bbd09));const _0x381fca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31abf1(_0x3f686b,_0x339970){const _0x66664d=_0x381fca['findIndex'](({type:_0x4f2b55,subType:_0x4ca0d1})=>_0x3f686b['type']==_0x4f2b55&&_0x3f686b['subType']==_0x4ca0d1),_0x607cda=_0x381fca['findIndex'](({type:_0x5913f3,subType:_0x3d3ce6})=>_0x339970['type']==_0x5913f3&&_0x339970['subType']==_0x3d3ce6);if(_0x66664d<0x0||_0x607cda<0x0)return!0x1;const _0xa8f637=_0x3f686b['getFirstRange'](),_0x204218=_0x339970['getFirstRange']();if((0x0==_0x66664d||0x1==_0x66664d)&&0x2==_0x607cda&&_0xa8f637['isIntersecting'](_0x204218))return!0x0;if(0x2==_0x66664d&&0x3==_0x607cda){const _0x4fae6d=_0x26a079['_findSuggestions'](_0xa8f637,'insertion')['filter'](({suggestion:_0x1a4e9b,meta:_0x10d554})=>_0x10d554['isOwn']&&'convertInlineImageToBlock'==_0x1a4e9b['subType']);if(_0x4fae6d['length']>0x1&&_0x204218['end']['isEqual'](_0xa8f637['start']))return!0x0;if(0x1==_0x4fae6d['length']&&(_0xa8f637['start']['isEqual'](_0x204218['end'])||_0xa8f637['end']['isEqual'](_0x204218['start'])))return!0x0;}if(0x3==_0x66664d&&0x3==_0x607cda&&_0xa8f637['start']['isBefore'](_0x204218['start'])){const _0x4b4b52=_0xa8f637['end']['nodeAfter'],_0x173cad=_0x204218['start']['nodeBefore'];return _0x1b9e95['isBlockImage'](_0x4b4b52)&&_0x4b4b52===_0x173cad;}return!0x1;}function _0x2bbd09(_0x11e53e,_0x45e240){return _0x31abf1(_0x11e53e,_0x45e240)?[_0x11e53e,_0x45e240]:_0x31abf1(_0x45e240,_0x11e53e)?[_0x45e240,_0x11e53e]:null;}_0x33b93b['plugins']['has']('ImageResize')&&(_0x26a079['enableDefaultAttributesIntegration']('resizeImage'),_0x26a079['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x3702f4,'FORMAT_IMAGE_SIZE'))),_0x33b93b['plugins']['has']('ImageTextAlternativeEditing')&&_0x26a079['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x33b93b['plugins']['has']('PictureEditing')&&_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x18ceb5=>{if('attribute'!=_0x18ceb5['type'])return;const {data:_0x49f465}=_0x18ceb5;return _0x49f465&&'sources'==_0x49f465['key']?{'type':'format','content':''}:void 0x0;}),_0x33b93b['plugins']['has']('ImageSizeAttributes')&&_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x11cac2=>{if('attribute'!=_0x11cac2['type'])return;const {data:_0x538636}=_0x11cac2;return!_0x538636||'width'!=_0x538636['key']&&'height'!=_0x538636['key']?void 0x0:{'type':'format','content':''};}),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x53b900=>{if(_0x381fca['find'](({type:_0x873262,subType:_0xeec07f})=>_0x53b900['type']==_0x873262&&_0x53b900['subType']==_0xeec07f))return _0x53b900['previous']?{}:void 0x0;}),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x13eda5=>{if('insertion'==_0x13eda5['type']||'deletion'==_0x13eda5['type']){const _0x47ed5a=_0x13eda5['getContainedElement']();if(_0x47ed5a&&_0x47ed5a['is']('element','caption'))return{'type':'insertion'==_0x13eda5['type']?'addObject':'removeObject','element':_0x47ed5a,'quantity':0x1};}}),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x29065c=>'formatBlock'==_0x29065c['type']&&'convertInlineImageToBlock'==_0x29065c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29065c['type']&&'convertBlockImageToInline'==_0x29065c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x311bdf=>{if('attribute'!=_0x311bdf['type'])return;const {data:_0x4284fb}=_0x311bdf;if(!_0x4284fb||'alt'!=_0x4284fb['key'])return;const _0x59281a=_0x4284fb['newValue'];return _0x59281a?{'type':'format','content':St(_0x3702f4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59281a+'\x22')}:{'type':'format','content':St(_0x3702f4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11e5d5=this['editor'],_0x27199d=_0x11e5d5['locale'];_0x11e5d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219035=>{if('formatBlock'!=_0x219035['type']&&'formatInline'!=_0x219035['type'])return;const {data:_0x1c78a0}=_0x219035;if(_0x1c78a0){if('imageTextAlternative'==_0x1c78a0['commandName']){const _0x34b445=_0x1c78a0['commandParams'][0x0]['newValue'];return _0x34b445?{'type':'format','content':St(_0x27199d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34b445+'\x22')}:{'type':'format','content':St(_0x27199d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1c78a0['commandName']){const _0x4d8fa8=_0x1c78a0['commandParams'][0x0]['width'];return _0x4d8fa8?{'type':'format','content':St(_0x27199d,'*Set\x20image\x20width:*\x20%0',_0x4d8fa8)}:{'type':'format','content':St(_0x27199d,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x12d84f=this['editor']['locale'],_0x49bd42=this['editor']['plugins']['get']('TrackChangesEditing');_0x49bd42['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49bd42['descriptionFactory']['registerDescriptionCallback'](_0xc65172=>{if('attribute'!=_0xc65172['type'])return;const {data:_0x5766c3}=_0xc65172;return _0x5766c3&&'src'==_0x5766c3['key']?_0x5766c3['newValue']&&_0x5766c3['oldValue']?{'type':'format','content':St(_0x12d84f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x148e80=this['editor']['plugins']['get']('TrackChangesEditing');_0x148e80['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x148e80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x148e80['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x148e80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2a22a=this['editor'],_0x15c892=_0xc2a22a['locale'];_0xc2a22a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x132243=>{if('formatBlock'!=_0x132243['type']&&'formatInline'!=_0x132243['type'])return;const {data:_0x85758f}=_0x132243;return _0x85758f&&'replaceImageSource'==_0x85758f['commandName']?{'type':'format','content':St(_0x15c892,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x413c81{['afterInit'](){const _0x353770=this['editor'];if(!_0x353770['plugins']['has']('ImageStyleEditing'))return;const _0x1d35d4=_0x353770['plugins']['get']('TrackChangesEditing'),_0x21fae3=_0x353770['plugins']['get']('ImageUtils'),_0xea914c={};_0x1d35d4['enableCommand']('imageStyle',(_0x250d2f,_0x34dec0)=>{const _0x2f1eb4=_0x353770['plugins']['get']('Users')['me'],_0x4ce49a=_0x353770['commands']['get']('imageStyle');let _0x4ccbc6=_0x21fae3['getClosestSelectedImageElement'](_0x353770['model']['document']['selection']),_0x2bd22a=_0x353770['model']['createRangeOn'](_0x4ccbc6),_0x35f29f=_0x4ce49a['value'];if(_0x35f29f==_0x34dec0['value'])return;if(_0x34dec0['value']&&_0x21fae3['isInlineImage'](_0x4ccbc6)&&!_0x4ce49a['isStyleEnabled'](_0x34dec0['value']))return;const _0x498320={'commandName':'imageStyle','commandParams':[_0x34dec0],'formatGroupId':_0x1f4b16()};_0x353770['model']['change'](()=>{if(_0x1d35d4['getSuggestions']()['filter'](_0x49ca25=>_0x49ca25['isInContent']&&_0x2f1eb4==_0x49ca25['author']&&('formatBlock'==_0x49ca25['type']||'formatInline'==_0x49ca25['type'])&&('imageStylePreApply'==_0x49ca25['subType']||'imageStylePostApply'==_0x49ca25['subType'])&&_0x49ca25['getFirstRange']()['isEqual'](_0x2bd22a))['forEach'](_0x5bd952=>_0x1d35d4['discardSuggestion'](_0x5bd952['head'])),_0x4ccbc6=_0x21fae3['getClosestSelectedImageElement'](_0x353770['model']['document']['selection']),_0x2bd22a=_0x353770['model']['createRangeOn'](_0x4ccbc6),_0x4ce49a['refresh'](),_0x353770['commands']['get']('imageTypeInline')['refresh'](),_0x353770['commands']['get']('imageTypeBlock')['refresh'](),_0x35f29f=_0x4ce49a['value'],_0x35f29f!=_0x34dec0['value'])return _0x21fae3['isInlineImage'](_0x4ccbc6)&&_0x4ce49a['shouldConvertImageType'](_0x34dec0['value'],_0x4ccbc6)?(_0x250d2f({..._0x34dec0,'setImageSizes':!0x1}),_0x4ccbc6=_0x21fae3['getClosestSelectedImageElement'](_0x353770['model']['document']['selection']),void _0x1d35d4['markBlockFormat'](_0x4ccbc6,{..._0x498320,'commandReversedParams':[{'value':_0x35f29f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21fae3['isBlockImage'](_0x4ccbc6)?_0x1d35d4['markBlockFormat'](_0x4ccbc6,_0x498320,[],'imageStylePostApply'):_0x1d35d4['markInlineFormat'](_0x2bd22a,_0x498320,'imageStylePostApply'));});});for(const _0x36137a of _0x353770['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xea914c[_0x36137a['name']]=_0x36137a['title']['toLowerCase']();_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x253b24])=>{_0x21fae3['setImageNaturalSizeAttributes'](_0x253b24['getContainedElement']());}),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d502d,_0x1fd716)=>{_0x1d35d4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d502d,{'commandName':_0x1fd716['commandName'],'commandParams':_0x1fd716['commandReversedParams']});}),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e5b9f,_0x27d943){return _0x58d7ed(_0x4e5b9f,_0x27d943)?[_0x4e5b9f,_0x27d943]:_0x58d7ed(_0x27d943,_0x4e5b9f)?[_0x27d943,_0x4e5b9f]:null;});const _0x18b22f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58d7ed(_0x55e69c,_0x23739e){const _0xc8a5fb=_0x18b22f['findIndex'](({type:_0x27bdef,subType:_0xaa4457})=>_0x55e69c['type']==_0x27bdef&&_0x55e69c['subType']==_0xaa4457),_0x105d0a=_0x18b22f['findIndex'](({type:_0x100c5a,subType:_0x3bdbe3})=>_0x23739e['type']==_0x100c5a&&_0x23739e['subType']==_0x3bdbe3);if(_0xc8a5fb<0x0||_0x105d0a<0x0)return!0x1;const _0x15e508=_0x55e69c['getFirstRange'](),_0x141d5d=_0x23739e['getFirstRange']();if((0x0==_0xc8a5fb||0x1==_0xc8a5fb)&&0x2==_0x105d0a&&_0x15e508['isIntersecting'](_0x141d5d))return!0x0;if(0x2==_0xc8a5fb&&0x3==_0x105d0a){const _0x9d4631=_0x1d35d4['_findSuggestions'](_0x15e508,'insertion')['filter'](({suggestion:_0x271cdc,meta:_0x32b68b})=>_0x32b68b['isOwn']&&'convertInlineImageToBlock'==_0x271cdc['subType']);if(_0x9d4631['length']>0x1&&_0x141d5d['end']['isEqual'](_0x15e508['start']))return!0x0;if(0x1==_0x9d4631['length']&&(_0x15e508['start']['isEqual'](_0x141d5d['end'])||_0x15e508['end']['isEqual'](_0x141d5d['start'])))return!0x0;}if(0x3==_0xc8a5fb&&0x3==_0x105d0a&&_0x15e508['start']['isBefore'](_0x141d5d['start'])){const _0x2b2fe2=_0x15e508['end']['nodeAfter'],_0x44c4de=_0x141d5d['start']['nodeBefore'];return _0x21fae3['isBlockImage'](_0x2b2fe2)&&_0x2b2fe2===_0x44c4de;}return!0x1;}_0x353770['model']['document']['registerPostFixer'](()=>{let _0xabd9ed=!0x1;const _0x50dc83=Array['from'](_0x353770['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x511d50,data:_0xbb6acd}of _0x50dc83){const {group:_0x2a248b,type:_0x983529,subType:_0x4fa53e,id:_0x5e6f12}=tt(_0x511d50);if('suggestion'==_0x2a248b&&_0x1d35d4['hasSuggestion'](_0x5e6f12)){if('formatBlock'==_0x983529&&('imageStylePreApply'==_0x4fa53e||'imageStylePostApply'==_0x4fa53e)){const _0x7e31eb=_0x1d35d4['getSuggestion'](_0x5e6f12);if(_0xbb6acd['newRange']){const _0x1e888c=_0x7e31eb['getFirstRange']()['getContainedElement']();if(_0x21fae3['isBlockImage'](_0x1e888c))continue;_0x1d35d4['discardSuggestion'](_0x7e31eb),_0xabd9ed=!0x0;}}if('insertion'==_0x983529&&'imageCaption'==_0x4fa53e&&!_0xbb6acd['newRange']){const _0x5b2cf6=_0x1d35d4['getSuggestion'](_0x5e6f12);_0x5b2cf6['next']&&_0x5b2cf6['next']['isInContent']&&(_0x1d35d4['discardSuggestion'](_0x5b2cf6['next']),_0xabd9ed=!0x0);}}}return _0xabd9ed;}),this['_registerLegacyDescription'](_0xea914c);}['_registerLegacyDescription'](_0x2f2327){const _0x277f28=this['editor'],_0x189836=_0x277f28['locale'];_0x277f28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x125fdf=>{if('formatBlock'!=_0x125fdf['type']&&'formatInline'!=_0x125fdf['type'])return;const {data:_0x33a51d}=_0x125fdf;if(!_0x33a51d||'imageStyle'!=_0x33a51d['commandName'])return;const _0x2a0e01=_0x33a51d['commandParams'][0x0]['value'];return _0x19606f('side'===_0x2a0e01?St(_0x189836,'FORMAT_SIDE_IMAGE'):_0x2f2327[_0x2a0e01]||_0x2a0e01);function _0x19606f(_0x1d8fa5){return{'type':'format','content':St(_0x189836,'*Format:*\x20%0',_0x1d8fa5)};}});}},ge=class extends _0x413c81{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1a7cd7){super(_0x1a7cd7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x35312f=this['editor'],_0x1ba82c=_0x35312f['commands']['get']('importWord'),_0x3fa759=_0x35312f['commands']['get']('trackChanges');_0x1ba82c&&(_0x1ba82c['on']('execute',(_0x5b135b,[,_0x388c30])=>{this['_trackChangesValueDuringImport']=_0x3fa759['value'],_0x388c30['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ba82c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ba82c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3fa759['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x35312f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1729af,_0x5f357c){const {suggestions:_0x1d7a94}=_0x5f357c,_0x3924a5=this['editor']['commands']['get']('trackChanges'),_0x2870c8=_0x3924a5['value'];this['_trackChangesValueDuringImport']!==_0x2870c8&&(_0x3924a5['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d7a94&&_0x1d7a94['forEach'](({id:_0x316029,type:_0x124a35,author:_0x3c4986,created_at:_0x3bc109})=>{const _0x4e22db={'id':_0x316029,'type':_0x124a35,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c4986,'createdAt':_0x3bc109?new Date(_0x3bc109):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e22db);});}},fe=class extends _0x413c81{['afterInit'](){const _0xe9633d=this['editor'],_0x38f5d7=_0xe9633d['plugins']['get']('TrackChangesEditing');if(_0xe9633d['plugins']['has']('IndentEditing')&&(_0x38f5d7['enableCommand']('indent'),_0x38f5d7['enableCommand']('outdent')),_0xe9633d['plugins']['has']('IndentBlock')){for(const _0x284aa6 of['indentBlock','outdentBlock'])_0x38f5d7['enableDefaultAttributesIntegration'](_0x284aa6);if(_0xe9633d['plugins']['has']('ListEditing')){for(const _0x1abeb5 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x38f5d7['enableDefaultAttributesIntegration'](_0x1abeb5);}}const _0x1ec4af=_0xe9633d['locale'];_0x38f5d7['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x1ec4af,'FORMAT_INDENT')),_0x38f5d7['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x1ec4af,'FORMAT_INDENT')),_0x38f5d7['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x1ec4af,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51bca5=this['editor'],_0x57e568=_0x51bca5['locale'],_0x507b67=_0x51bca5['plugins']['get']('TrackChangesEditing');_0x507b67['descriptionFactory']['registerDescriptionCallback'](_0x23c3a2=>{if('formatBlock'!=_0x23c3a2['type'])return;const {data:_0x363528}=_0x23c3a2;if(!_0x363528)return;if('indentBlock'!=_0x363528['commandName']&&'outdentBlock'!=_0x363528['commandName'])return;const _0x4615d2=_0x23c3a2['getItems']()[0x0],_0x12f42f=_0x507b67['descriptionFactory']['getItemLabel'](_0x4615d2);return'indentBlock'==_0x363528['commandName']?{'type':'format','content':St(_0x57e568,'*Indent:*\x20%0',_0x12f42f)}:'outdentBlock'==_0x363528['commandName']?{'type':'format','content':St(_0x57e568,'*Outdent:*\x20%0',_0x12f42f)}:void 0x0;});}},me=class extends _0x413c81{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x413c81{['afterInit'](){const _0x598e67=this['editor'];if(!_0x598e67['plugins']['has']('LinkEditing'))return;const _0x27f507=_0x598e67['plugins']['get']('TrackChangesEditing'),_0x143637=_0x598e67['commands']['get']('link');_0x27f507['enableDefaultAttributesIntegration']('link'),_0x27f507['enableDefaultAttributesIntegration']('unlink');for(const _0x463af8 of _0x143637['manualDecorators'])_0x27f507['descriptionFactory']['registerAttributeLabel'](_0x463af8['id'],'link\x20('+_0x463af8['label']['toLowerCase']()+')');_0x27f507['descriptionFactory']['registerDescriptionCallback'](_0x5f08da=>{if('attribute'!=_0x5f08da['type'])return;const {data:_0x576b85}=_0x5f08da;if(!_0x576b85||'linkHref'!=_0x576b85['key'])return;const _0x3df2e5=_0x576b85['newValue'],_0x5bd235=_0x598e67['locale'];return{'type':'format','content':null==_0x3df2e5?St(_0x5bd235,'*Remove\x20link*'):St(_0x5bd235,'*Set\x20link:*\x20%0','\x22'+_0x3df2e5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17a336=this['editor'],_0x1028c7=_0x17a336['locale'];_0x17a336['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8b930d=>{if('formatInline'!=_0x8b930d['type'])return;const {data:_0xef8c3}=_0x8b930d;if(_0xef8c3){if('link'==_0xef8c3['commandName']){const _0x19aeba=_0xef8c3['commandParams'][0x0];return{'type':'format','content':St(_0x1028c7,'*Set\x20link:*\x20%0','\x22'+_0x19aeba+'\x22')};}return'unlink'==_0xef8c3['commandName']?{'type':'format','content':St(_0x1028c7,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x413c81{['afterInit'](){const _0x2b2dd1=this['editor'],_0x3222c0=_0x2b2dd1['locale'];if(!_0x2b2dd1['plugins']['has']('LegacyListEditing'))return;const _0x44cb84=_0x2b2dd1['plugins']['get']('TrackChangesEditing'),_0x12dada=_0x2b2dd1['plugins']['has']('LegacyTodoListEditing');function _0x272fce(_0x139f6c){return()=>{const _0x52de18=_0x2b2dd1['model']['document']['selection'],_0x590b56=_0x2b2dd1['commands']['get'](_0x139f6c);if(_0x590b56['value'])return void _0x2b2dd1['execute']('paragraph',{});const _0x4cdb46=_0x139f6c['slice'](0x0,-0x4),_0x23e6a5=function(_0x456622,_0x27a056,_0xdf07e){let _0x1bb165=Array['from'](_0x456622)['filter'](_0x48a850=>function(_0x548081,_0x5b6a5c){return _0x5b6a5c['checkChild'](_0x548081['parent'],'listItem')&&!_0x5b6a5c['isObject'](_0x548081);}(_0x48a850,_0xdf07e));_0x1bb165=_0x1bb165['filter'](_0x50a032=>!_0x50a032['is']('element','listItem')||_0x50a032['getAttribute']('listType')!=_0x27a056);const _0x39c32f=new Set();for(const _0x95504c of _0x1bb165)_0x95504c['is']('element','listItem')?_0x39c32f['add'](_e(_0x95504c)):_0x39c32f['add'](_0x95504c);return Array['from'](_0x39c32f);}(_0x52de18['getSelectedBlocks'](),_0x4cdb46,_0x2b2dd1['model']['schema']);_0x2b2dd1['model']['change'](()=>{for(const _0x43aa8a of _0x23e6a5)_0x44cb84['markBlockFormat'](_0x43aa8a,{'commandName':_0x139f6c,'commandParams':[{'forceValue':!_0x590b56['value']}],'formatGroupId':'blockName'},pe(_0x43aa8a));});};}function _0x12c73b(_0x39196b){return()=>{const _0x14b3e0=function(_0x386d09){let _0x263acd=Array['from'](_0x386d09);const _0x501989=_0x263acd['findIndex'](_0x32de2c=>'listItem'!=_0x32de2c['name']);return _0x501989>-0x1&&(_0x263acd=_0x263acd['slice'](0x0,_0x501989)),_0x263acd;}(_0x2b2dd1['model']['document']['selection']['getSelectedBlocks']()),_0x5586a5=_0x2b2dd1['model']['createRange'](_0x2b2dd1['model']['createPositionAt'](_0x14b3e0[0x0],'before'),_0x2b2dd1['model']['createPositionAt'](_0x14b3e0[_0x14b3e0['length']-0x1],'end'));_0x2b2dd1['model']['change'](()=>{_0x44cb84['markBlockFormat'](_0x5586a5,{'commandName':_0x39196b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x39d4f4){const _0x4f5e9e=new Set();for(const _0x55a407 of _0x39d4f4){let _0x2afe2b=_0x55a407['nextSibling'];for(;_0x2afe2b&&_0x2afe2b['getAttribute']('listIndent')>_0x55a407['getAttribute']('listIndent');)_0x4f5e9e['add'](_0x2afe2b),_0x2afe2b=_0x2afe2b['nextSibling'];}return Array['from'](_0x4f5e9e);}(_0x14b3e0));});};}_0x44cb84['enableCommand']('numberedList',_0x272fce('numberedList')),_0x44cb84['enableCommand']('bulletedList',_0x272fce('bulletedList')),_0x12dada&&_0x44cb84['enableCommand']('todoList',_0x272fce('todoList')),_0x44cb84['enableCommand']('indentList',_0x12c73b('indentList')),_0x44cb84['enableCommand']('outdentList',_0x12c73b('outdentList')),_0x12dada&&_0x44cb84['enableCommand']('checkTodoList',()=>{const _0x4c89e6=_0x2b2dd1['commands']['get']('checkTodoList'),_0x1ee01e=Array['from'](_0x4c89e6['_selectedElements']);_0x1ee01e['filter'](_0x4e2143=>_0x4e2143['getAttribute']('todoListChecked')!=_0x4c89e6['value']),_0x2b2dd1['model']['change'](()=>{for(const _0x337a8d of _0x1ee01e)_0x44cb84['markBlockFormat'](_0x337a8d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4c89e6['value']}]});});}),_0x44cb84['descriptionFactory']['registerElementLabel']('listItem',_0x1e20f3=>St(_0x3222c0,'ELEMENT_LIST_ITEM',_0x1e20f3)),_0x44cb84['descriptionFactory']['registerDescriptionCallback'](_0x516459=>{if('formatBlock'!=_0x516459['type']&&'formatInline'!=_0x516459['type'])return;const {data:_0x4d7056}=_0x516459;if(_0x4d7056){if('numberedList'==_0x4d7056['commandName']||'bulletedList'==_0x4d7056['commandName']||'todoList'==_0x4d7056['commandName'])switch(_0x4d7056['commandName']['replace']('List','')){case'bulleted':return _0x387436(St(_0x3222c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x387436(St(_0x3222c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x387436(St(_0x3222c0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4d7056['commandName'])return{'type':'format','content':St(_0x3222c0,'*Indent:*\x20%0',St(_0x3222c0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4d7056['commandName'])return{'type':'format','content':St(_0x3222c0,'*Outdent:*\x20%0',St(_0x3222c0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4d7056['commandName'])return _0x4d7056['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3222c0,'*Check\x20item*')}:{'type':'format','content':St(_0x3222c0,'*Uncheck\x20item*')};}function _0x387436(_0x1ea397){return{'type':'format','content':St(_0x3222c0,'*Change\x20to:*\x20%0',_0x1ea397)};}});}};function _e(_0x3de368){const _0x18f401=_0x3de368['getAttribute']('listIndent');if(0x0==_0x18f401)return _0x3de368;let _0x3b0d93=_0x3de368;for(;_0x3de368['previousSibling']&&_0x3de368['previousSibling']['is']('element','listItem');){const _0x547234=_0x3de368['previousSibling']['getAttribute']('listIndent');if(_0x547234==_0x18f401)_0x3b0d93=_0x3de368['previousSibling'];else{if(_0x547234<_0x18f401)break;}_0x3de368=_0x3de368['previousSibling'];}return _0x3b0d93;}function pe(_0x1103e7){const _0x520a2d=[];if(_0x1103e7['is']('element','listItem')&&_0x1103e7['getAttribute']('listIndent')>0x0){let _0x4bcc2f=_0x1103e7['nextSibling'];for(;_0x4bcc2f&&'listItem'==_0x4bcc2f['name']&&_0x4bcc2f['getAttribute']('listIndent')==_0x1103e7['getAttribute']('listIndent');)_0x520a2d['push'](_0x4bcc2f),_0x4bcc2f=_0x4bcc2f['nextSibling'];}return _0x520a2d;}var Le=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x12f032=this['editor']['config']['get']('list.properties'),_0x1fd417=this['editor']['plugins']['get']('TrackChangesEditing');_0x12f032['styles']&&_0x1fd417['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x12f032['reversed']&&_0x1fd417['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x12f032['startIndex']&&_0x1fd417['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fd417['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x28d696,_0x10e22e={}){const _0x265176=this['editor']['plugins']['get']('TrackChangesEditing'),_0x826417=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x265176['markMultiRangeBlockFormat'](_0x826417,{'commandName':'listStyle','commandParams':[{'type':_0x10e22e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1384dd,_0x19ea63={}){const _0x40dfae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ba00=this['_getSuggestionBlocks'](_0x26b958=>_0x26b958['is']('element','listItem')&&'numbered'===_0x26b958['getAttribute']('listType'));if(_0x55ba00['length']<0x1)return;const _0x9eff38=_0x55ba00['map'](_0x29d2ad=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29d2ad,'before'),this['editor']['model']['createPositionAt'](_0x29d2ad,0x0)));this['editor']['model']['change'](()=>{_0x40dfae['markMultiRangeBlockFormat'](_0x9eff38,{'commandName':'listReversed','commandParams':[{'reversed':_0x19ea63['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc9f1c3,_0x5852b6={}){const _0x375991=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ab38=this['_getSuggestionBlocks'](_0x1d1455=>_0x1d1455['is']('element','listItem')&&'numbered'===_0x1d1455['getAttribute']('listType'));if(_0x31ab38['length']<0x1)return;const _0x53f0c2=_0x31ab38['map'](_0x4e3264=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e3264,'before'),this['editor']['model']['createPositionAt'](_0x4e3264,0x0)));this['editor']['model']['change'](()=>{_0x375991['markMultiRangeBlockFormat'](_0x53f0c2,{'commandName':'listStart','commandParams':[{'startIndex':_0x5852b6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4177dc){if('formatBlock'!=_0x4177dc['type']&&'formatInline'!=_0x4177dc['type'])return;const _0x1a0eed=this['editor']['locale'],{data:_0x1c8f17}=_0x4177dc;if(!_0x1c8f17)return;let _0x442fb6,_0x216759;switch(_0x1c8f17['commandName']){case'listStyle':_0x442fb6='*Change\x20to:*\x20%0',_0x216759={'type':'format','content':St(_0x1a0eed,_0x442fb6,St(_0x1a0eed,this['_getTranslationKeyForListStyle'](_0x1c8f17['commandParams'][0x0]['type'])))};break;case'listReversed':_0x442fb6=_0x1c8f17['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x216759={'type':'format','content':St(_0x1a0eed,_0x442fb6)};break;case'listStart':_0x442fb6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x216759={'type':'format','content':St(_0x1a0eed,_0x442fb6,_0x1c8f17['commandParams'][0x0]['startIndex'])};}return _0x216759;}['_getSuggestionBlocksForListStyle'](){const _0x61be02=this['editor']['plugins']['get']('LegacyListUtils');let _0xd1a07e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd1a07e[0x0]?.['is']('element','listItem')&&_0xd1a07e['unshift'](..._0x61be02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd1a07e[_0xd1a07e['length']-0x1]?.['is']('element','listItem')&&_0xd1a07e['push'](..._0x61be02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd1a07e=[...new Set(_0xd1a07e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd1a07e=_0xd1a07e['filter'](_0x2c17f1=>_0x2c17f1['is']('element','listItem'))),_0xd1a07e;}['_getSuggestionBlocks'](_0x246a33){const _0x5350d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e5c20=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x246a33)['map'](_0x253199=>{const _0x1eaff2=this['editor']['model']['createPositionAt'](_0x253199,0x0);return[..._0x5350d3['getSiblingNodes'](_0x1eaff2,'backward'),..._0x5350d3['getSiblingNodes'](_0x1eaff2,'forward')];})['flat']();return _0x3e5c20=[...new Set(_0x3e5c20)],_0x3e5c20;}['_getTranslationKeyForListStyle'](_0x3f49bc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f49bc)||'default')['toUpperCase']()+'_LIST_'+_0x3f49bc['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x413c81{['afterInit'](){const _0x546f3e=this['editor'];if(!_0x546f3e['plugins']['has']('MediaEmbedEditing'))return;const _0x1dfdf5=_0x546f3e['plugins']['get']('TrackChangesEditing'),_0x497404=_0x546f3e['locale'];_0x1dfdf5['enableCommand']('mediaEmbed'),_0x1dfdf5['descriptionFactory']['registerElementLabel']('media',_0x3a4294=>St(_0x497404,'ELEMENT_MEDIA',_0x3a4294)),_0x546f3e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1dfdf5['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1dfdf5['descriptionFactory']['registerDescriptionCallback'](_0x4863c3=>{if('attribute'!=_0x4863c3['type'])return;const {data:_0x105326}=_0x4863c3;if(!_0x105326||'resizedWidth'!=_0x105326['key'])return;const _0x2fc0ac=_0x4863c3['getContainedElement']();return _0x2fc0ac&&_0x2fc0ac['is']('element','media')?{'type':'format','content':St(_0x497404,'*Set\x20format:*\x20%0',St(_0x497404,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x413c81{['afterInit'](){const _0x3ef7bf=this['editor'];if(!_0x3ef7bf['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x25e368=_0x3ef7bf['plugins']['get']('TrackChangesEditing'),_0x35bc6b=_0x3ef7bf['locale'],_0x1a3c09=_0x3ef7bf['plugins']['get']('MediaEmbedStyleEditing'),_0x598c1e={};for(const _0x20c343 of _0x1a3c09['normalizedStyles'])_0x598c1e[_0x20c343['name']]=_0x20c343['title']['toLowerCase']();const _0x253f94=_0x1a3c09['normalizedStyles']['find'](_0x4bbec4=>_0x4bbec4['isDefault'])?.['name'];_0x25e368['enableCommand']('mediaStyle',(_0x3b2c17,_0x28c39f)=>{const _0x5c1644=_0x3ef7bf['plugins']['get']('Users')['me'],_0x152049=_0x3ef7bf['commands']['get']('mediaStyle'),_0x454f44=function(_0x43ac54){const _0x1d8e03=_0x43ac54['model']['document']['selection']['getSelectedElement']();return _0x1d8e03&&_0x1d8e03['is']('element','media')?_0x1d8e03:null;}(_0x3ef7bf);if(!_0x454f44)return;const _0x2b4d0b=_0x3ef7bf['model']['createRangeOn'](_0x454f44);let _0x46490a=_0x152049['value'];if(_0x46490a==_0x28c39f['value'])return;const _0x2c8d09={'commandName':'mediaStyle','commandParams':[_0x28c39f],'formatGroupId':_0x1f4b16()};_0x3ef7bf['model']['change'](()=>{_0x25e368['getSuggestions']()['filter'](_0x503a7d=>_0x503a7d['isInContent']&&_0x5c1644==_0x503a7d['author']&&'formatBlock'==_0x503a7d['type']&&'mediaStylePostApply'==_0x503a7d['subType']&&_0x503a7d['getFirstRange']()['isEqual'](_0x2b4d0b))['forEach'](_0x2888c2=>_0x25e368['discardSuggestion'](_0x2888c2['head'])),_0x152049['refresh'](),_0x46490a=_0x152049['value'],_0x46490a!=_0x28c39f['value']&&_0x25e368['markBlockFormat'](_0x454f44,{..._0x2c8d09,'commandReversedParams':[{'value':'string'==typeof _0x46490a?_0x46490a:null}]},[],'mediaStylePostApply');});}),_0x25e368['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x25e368['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5502ef,_0x3747ca)=>{_0x25e368['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5502ef,{'commandName':_0x3747ca['commandName'],'commandParams':_0x3747ca['commandReversedParams']});}),_0x25e368['descriptionFactory']['registerDescriptionCallback'](_0x2bfa7b=>{if('formatBlock'!=_0x2bfa7b['type'])return;const {data:_0x3d28de}=_0x2bfa7b;if(!_0x3d28de||'mediaStyle'!=_0x3d28de['commandName'])return;const _0x442803=_0x3d28de['commandParams'][0x0]['value']||_0x253f94;return _0x442803?{'type':'format','content':St(_0x35bc6b,'*Format:*\x20%0',_0x598c1e[_0x442803]||_0x442803)}:void 0x0;});}},be=class extends _0x413c81{['afterInit'](){const _0x4b7f2d=this['editor'];_0x4b7f2d['plugins']['has']('MentionEditing')&&_0x4b7f2d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x413c81{['afterInit'](){const _0x5bf3f3=this['editor'];if(!_0x5bf3f3['plugins']['has']('MergeFieldsEditing'))return;const _0x2ac101=_0x5bf3f3['plugins']['get']('TrackChangesEditing'),_0x20abdc=_0x5bf3f3['locale'];_0x2ac101['enableCommand']('insertMergeField'),_0x2ac101['enableCommand']('insertMergeFieldBlock'),_0x2ac101['enableCommand']('insertMergeFieldImage'),_0x2ac101['descriptionFactory']['registerElementLabel']('mergeField',_0x3e5689=>St(_0x20abdc,'ELEMENT_MERGE_FIELD',_0x3e5689)),_0x2ac101['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4e9265=>St(_0x20abdc,'ELEMENT_MERGE_FIELD',_0x4e9265)),_0x2ac101['descriptionFactory']['registerDescriptionCallback'](_0x444c98=>{if('insertion'!=_0x444c98['type']&&'deletion'!=_0x444c98['type'])return;const _0xd50614=_0x444c98['getContainedElement']();if(null==_0xd50614)return;const _0x1b75b9=_0x5bf3f3['plugins']['get']('MergeFieldsEditing');let _0x51d30d;switch(_0x1b75b9['getMergeFieldType'](_0xd50614)){case null:return;case'image':{const _0x4f95e6=_0x1b75b9['unwrapAffixes'](_0xd50614['getAttribute']('src'));_0x51d30d=_0x1b75b9['getLabel'](_0x4f95e6)||_0x4f95e6;break;}default:{const _0x2c0f0e=_0xd50614['getAttribute']('id');_0x51d30d=_0x1b75b9['getLabel'](_0x2c0f0e)||_0x2c0f0e;break;}}return'insertion'==_0x444c98['type']?{'type':'insertion','content':St(_0x20abdc,'*Insert:*\x20%0','\x22'+_0x51d30d+'\x22\x20'+St(_0x20abdc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x20abdc,'*Remove:*\x20%0','\x22'+_0x51d30d+'\x22\x20'+St(_0x20abdc,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x413c81{['afterInit'](){const _0x5bf1da=this['editor'],_0x3ed436=_0x5bf1da['plugins']['get']('TrackChangesEditing');_0x5bf1da['plugins']['has']('MultiLevelList')&&(_0x3ed436['enableDefaultAttributesIntegration']('multiLevelList'),_0x3ed436['descriptionFactory']['registerDescriptionCallback'](_0x7c66ef=>this['handleDescriptions'](_0x7c66ef)));}['handleDescriptions'](_0x494b22){const _0x3a3f49=this['editor']['locale'],{data:_0x5ef4b0}=_0x494b22,_0x4f9374={'type':'format','content':''};if(_0x5ef4b0&&'listMarkerStyle'==_0x5ef4b0['key']){if(!_0x5ef4b0['oldValue'])return{'type':'format','content':St(_0x3a3f49,'*Set\x20format:*\x20%0',St(_0x3a3f49,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ef4b0['newValue']+')'};if(!_0x5ef4b0['newValue']){let _0x413ea0=_0x494b22['head'];for(;_0x413ea0;){if(_0x413ea0['data']&&'listType'==_0x413ea0['data']['key']&&_0x413ea0['data']['newValue'])return _0x4f9374;_0x413ea0=_0x413ea0['next'];}return{'type':'format','content':St(_0x3a3f49,'*Remove\x20format:*\x20%0',St(_0x3a3f49,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ef4b0['oldValue']+')'};}}}},Re=class extends _0x413c81{['afterInit'](){const _0x12bff9=this['editor'];if(!_0x12bff9['plugins']['has']('PageBreakEditing'))return;_0x12bff9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16b557=_0x12bff9['plugins']['get']('TrackChangesEditing'),_0x5ef099=_0x12bff9['locale'];_0x16b557['descriptionFactory']['registerElementLabel']('pageBreak',_0x298d09=>St(_0x5ef099,'ELEMENT_PAGE_BREAK',_0x298d09));}},Ne=class extends _0x413c81{['afterInit'](){const _0x597c73=this['editor'];if(!_0x597c73['plugins']['has']('Paragraph'))return;const _0xa77588=_0x597c73['locale'],_0x1825ff=_0x597c73['plugins']['get']('TrackChangesEditing');_0x1825ff['descriptionFactory']['registerElementLabel']('paragraph',_0x23b376=>St(_0xa77588,'ELEMENT_PARAGRAPH',_0x23b376)),_0x1825ff['enableDefaultAttributesIntegration']('paragraph'),_0x1825ff['enableCommand']('insertParagraph');const _0x48f395=_0x1825ff['descriptionFactory'];_0x48f395['registerDescriptionCallback'](_0x2cfb1d=>{if('insertion'!==_0x2cfb1d['type'])return;const {start:_0x4a2ac4,end:_0x2d12f1}=_0x2cfb1d['getFirstRange']();if(!_0x4a2ac4['isTouching'](_0x2d12f1)||!_0x4a2ac4['nodeAfter'])return;const _0x49dbf2=_0x597c73['model']['schema'],_0x4af7a6=_0x4a2ac4['nodeAfter'];return _0x49dbf2['isBlock'](_0x4af7a6)&&!_0x49dbf2['isLimit'](_0x4af7a6)&&_0x49dbf2['checkChild'](_0x4af7a6,'$text')?{'type':'insertion','content':St(_0xa77588,'*Insert:*\x20%0',_0x48f395['getItemLabel'](_0x4af7a6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9d0ae=this['editor'],_0x5eb341=_0xe9d0ae['locale'];_0xe9d0ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f59a0=>{if('formatBlock'!=_0x4f59a0['type'])return;const {data:_0x1b3308}=_0x4f59a0;return _0x1b3308&&'paragraph'==_0x1b3308['commandName']?{'type':'format','content':St(_0x5eb341,'*Change\x20to:*\x20%0',St(_0x5eb341,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x413c81{['afterInit'](){const _0x5ee951=this['editor'];_0x5ee951['commands']['get']('replaceSource')&&_0x5ee951['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x413c81{['afterInit'](){const _0x3c92a7=this['editor'];_0x3c92a7['plugins']['has']('RemoveFormatEditing')&&(_0x3c92a7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3acb6e=this['editor'];_0x3acb6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb43e=>{if('formatBlock'!=_0x2cb43e['type']&&'formatInline'!=_0x2cb43e['type'])return;const {data:_0x538a9b}=_0x2cb43e;return _0x538a9b&&'removeFormat'==_0x538a9b['commandName']?{'type':'format','content':St(_0x3acb6e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x413c81{['afterInit'](){const _0x28e400=this['editor'];if(!_0x28e400['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x106ec3=_0x28e400['plugins']['get']('TrackChangesEditing');_0x106ec3['enableCommand']('goToPreviousRestrictedEditingException'),_0x106ec3['enableCommand']('goToNextRestrictedEditingException');const _0x3cf012=_0x28e400['plugins']['get']('RestrictedEditingModeEditing');_0x3cf012['enableCommand']('trackChanges'),_0x3cf012['enableCommand']('acceptSuggestion'),_0x3cf012['enableCommand']('discardSuggestion'),_0x3cf012['enableCommand']('acceptAllSuggestions'),_0x3cf012['enableCommand']('discardAllSuggestions'),_0x3cf012['enableCommand']('acceptSelectedSuggestions'),_0x3cf012['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x413c81{['afterInit'](){const _0x8fe333=this['editor'];if(!_0x8fe333['plugins']['has']('ShiftEnter'))return;const _0x41aa7e=_0x8fe333['plugins']['get']('TrackChangesEditing');_0x41aa7e['enableCommand']('shiftEnter'),_0x41aa7e['descriptionFactory']['registerElementLabel']('softBreak',_0x3cafd5=>St(_0x8fe333['locale'],'ELEMENT_LINE_BREAK',_0x3cafd5));}};function we(_0x4e028b,_0x212d3f,_0x444438){const _0x19078f=[];for(const _0x3a6809 of _0x212d3f['getItems']())_0x3a6809['hasAttribute'](_0x4e028b)&&_0x19078f['push'](_0x444438['createRangeOn'](_0x3a6809));return _0x19078f;}var Fe=class extends _0x413c81{['afterInit'](){const _0x3a8f33=this['editor'],_0x18f8ea=_0x3a8f33['plugins']['get']('TrackChangesEditing');_0x3a8f33['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x18f8ea['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x24f499=this['editor'],_0x12fea5=_0x24f499['model'],_0x5742ba=_0x24f499['locale'],_0x4e9ab9=_0x24f499['plugins']['get']('TrackChangesEditing'),_0x117215='restrictedEditingException',_0x1560fa=_0x24f499['commands']['get'](_0x117215);_0x4e9ab9['enableCommand'](_0x117215,(_0x2353e5,_0x508620={})=>{const _0x15c91e=_0x12fea5['document']['selection'];if(_0x15c91e['isCollapsed'])return void _0x2353e5(_0x508620);const _0x4ea408=void 0x0!==_0x508620['forceValue']?_0x508620['forceValue']:!_0x1560fa['value'];_0x12fea5['change'](()=>{const _0x38de86=Array['from'](_0x15c91e['getRanges']());for(const _0x25fddc of _0x38de86){const _0x1ad570=_0x4ea408?[_0x25fddc]:we(_0x117215,_0x25fddc,_0x12fea5);for(const _0x472b29 of _0x1ad570)_0x4e9ab9['markInlineFormat'](_0x472b29,{'commandName':_0x117215,'commandParams':[{'forceValue':_0x4ea408}]});}});}),_0x4e9ab9['descriptionFactory']['registerDescriptionCallback'](_0x124cab=>{if('formatBlock'!=_0x124cab['type']&&'formatInline'!=_0x124cab['type'])return;const {data:_0x47ed2c}=_0x124cab;return _0x47ed2c&&_0x47ed2c['commandName']==_0x117215?_0x47ed2c['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x5742ba,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x5742ba,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x54f254=this['editor'],_0x49987d=_0x54f254['locale'],_0x18224f=_0x54f254['plugins']['get']('TrackChangesEditing'),_0x215f16='restrictedEditingExceptionBlock',_0x1489d8=this['editor']['commands']['get'](_0x215f16);_0x18224f['enableCommand'](_0x215f16,(_0x55c164,_0x12f0b8={})=>{const _0x54b639=this['editor']['model']['document']['selection'],_0x86d24f=_0x12f0b8&&void 0x0!==_0x12f0b8['forceValue']?_0x12f0b8['forceValue']:!_0x1489d8['value'];let _0x4147a6=[];_0x4147a6=At(_0x86d24f?Array['from'](_0x54b639['getSelectedBlocks']())['filter'](_0xf9c14d=>function(_0x53ffb1){return!!_0x53ffb1['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xf9c14d)||function(_0x54c08b,_0x25c5ef){const _0x4aa08c=_0x25c5ef['createContext'](_0x54c08b['parent']);return!!_0x25c5ef['checkChild'](_0x4aa08c,'restrictedEditingException')&&!!_0x25c5ef['checkChild'](_0x4aa08c['push']('restrictedEditingException'),_0x54c08b);}(_0xf9c14d,this['editor']['model']['schema'])):Array['from'](_0x54b639['getSelectedBlocks']())['map'](_0x53bd82=>function(_0x201091){let _0x4274eb=_0x201091;for(;_0x4274eb['parent'];){if('restrictedEditingException'==_0x4274eb['parent']['name'])return _0x4274eb;_0x4274eb=_0x4274eb['parent'];}return null;}(_0x53bd82))['filter'](_0x110216=>!!_0x110216),_0x54f254['model']),_0x54f254['model']['change'](()=>{for(const _0x2f1ed1 of _0x4147a6)_0x18224f['markBlockFormat'](_0x2f1ed1,{'commandName':_0x215f16,'commandParams':[{'forceValue':_0x86d24f}]});});}),_0x18224f['descriptionFactory']['registerDescriptionCallback'](_0x4017c7=>{const {data:_0x54ae3c}=_0x4017c7;if(_0x54ae3c&&_0x54ae3c['commandName']==_0x215f16)return _0x54ae3c['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x49987d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x49987d,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x413c81{['afterInit'](){const _0x2cc058=this['editor'];_0x2cc058['plugins']['has']('Style')&&_0x2cc058['plugins']['has']('DataSchema')&&(_0x2cc058['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18e6d0=this['editor'],_0x2737da=_0x18e6d0['locale'];_0x18e6d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d354f=>{if('formatBlock'!=_0x5d354f['type']&&'formatInline'!=_0x5d354f['type'])return;const {data:_0x2f47d}=_0x5d354f;return _0x2f47d&&'style'===_0x2f47d['commandName']?_0x2f47d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x2737da,'*Set\x20format:*\x20%0',_0x2f47d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x2737da,'*Remove\x20format:*\x20%0',_0x2f47d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x413c81{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x725827){super(_0x725827),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x423772=this['editor'],_0x144150=_0x423772['model']['document']['selection'];if(!_0x423772['plugins']['has']('TableEditing'))return;const _0x34fa3b=_0x423772['locale'],_0x29d94d=_0x423772['plugins']['get']('TrackChangesEditing'),_0xa56099=_0x423772['plugins']['get']('TableUtils');_0x29d94d['descriptionFactory']['registerElementLabel']('table',_0x451207=>St(_0x34fa3b,'ELEMENT_TABLE',_0x451207)),this['_setupColumnsRowsFixing'](),_0x29d94d['enableCommand']('insertTable'),_0x29d94d['enableCommand']('selectTableRow'),_0x29d94d['enableCommand']('selectTableColumn');for(const _0x5bda70 of['insertTableRowAbove','insertTableRowBelow']){const _0x50ddba=_0x423772['commands']['get'](_0x5bda70);_0x29d94d['enableCommand'](_0x5bda70,_0x3480a5=>{_0x423772['model']['change'](_0x20763a=>{_0x3480a5();const _0x284527='above'===_0x50ddba['order'],_0x42567c=_0xa56099['getSelectionAffectedTableCells'](_0x144150),_0x4b8943=_0xa56099['getRowIndexes'](_0x42567c),_0x23c75b=_0x284527?_0x4b8943['first']-0x1:_0x4b8943['last']+0x1,_0x1a96f9=_0x42567c[0x0]['findAncestor']('table'),_0x5cac25=_0xa56099['createTableWalker'](_0x1a96f9,{'startRow':_0x23c75b,'endRow':_0x23c75b}),_0x40bdbf=Array['from'](_0x5cac25)['map'](_0x1cba63=>_0x20763a['createRangeOn'](_0x1cba63['cell']));_0x29d94d['markMultiRangeInsertion'](_0x40bdbf,'tableRow');});});}for(const _0x4ddb12 of['insertTableColumnLeft','insertTableColumnRight']){const _0x586566=_0x423772['commands']['get'](_0x4ddb12);_0x29d94d['enableCommand'](_0x4ddb12,_0x209e2f=>{_0x423772['model']['change'](_0xbcffba=>{_0x209e2f();const _0x76ddfd='left'===_0x586566['order'],_0x28eda6=_0xa56099['getSelectionAffectedTableCells'](_0x144150),_0x334ac8=_0xa56099['getColumnIndexes'](_0x28eda6),_0xeb94ee=_0x76ddfd?_0x334ac8['first']-0x1:_0x334ac8['last']+0x1,_0x315d04=_0x28eda6[0x0]['findAncestor']('table'),_0x44e61c=_0xa56099['createTableWalker'](_0x315d04,{'startRow':0x0,'column':_0xeb94ee,'includeAllSlots':!0x1}),_0x891dec=Array['from'](_0x44e61c)['map'](_0x41bc8c=>_0xbcffba['createRangeOn'](_0x41bc8c['cell']));_0x29d94d['markMultiRangeInsertion'](_0x891dec,'tableColumn');});});}for(const _0xac4366 of['removeTableRow','removeTableColumn']){const _0x3a2a5b=_0xac4366['substr'](0xb),_0x311b36=_0x3a2a5b['toLowerCase'](),_0x108977=_0x311b36['substr'](0x0,0x3)+'span',_0x169ad0='table'+_0x3a2a5b,_0x2d9f23='min'+_0x3a2a5b,_0x34eacb='max'+_0x3a2a5b;_0x29d94d['enableCommand'](_0xac4366,()=>{_0x423772['model']['change'](_0x58d90e=>{const _0x41d9dc=_0xa56099['getSelectionAffectedTableCells'](_0x144150),_0x554b53=_0x41d9dc[0x0]['findAncestor']('table');let _0x5d9777;if('removeTableRow'==_0xac4366){const _0x28c294=_0xa56099['getRowIndexes'](_0x41d9dc);_0x5d9777={'startRow':_0x28c294['first'],'endRow':_0x28c294['last'],'includeAllSlots':!0x0};}else{const _0x3cfcc6=_0xa56099['getColumnIndexes'](_0x41d9dc);_0x5d9777={'startColumn':_0x3cfcc6['first'],'endColumn':_0x3cfcc6['last'],'includeAllSlots':!0x0};}const _0x34c907=_0xa56099['createTableWalker'](_0x554b53,_0x5d9777),_0x287fd0=Array['from'](_0x34c907)['map'](({cell:_0xfc820f})=>_0xfc820f),_0x1f13e6=De(_0x287fd0['filter'](_0x3055fa=>_0x3055fa['hasAttribute'](_0x108977))),_0x375e67=De(_0x287fd0['filter'](_0x347866=>!_0x347866['hasAttribute'](_0x108977)))['map'](_0x21afc6=>_0x58d90e['createRangeOn'](_0x21afc6)),_0x49a30d=_0x29d94d['markMultiRangeDeletion'](_0x375e67,_0x169ad0);if(_0x49a30d&&('tableRow'==_0x49a30d['subType']||'tableColumn'==_0x49a30d['subType'])){const _0x1efe10=this['_getSuggestionCoords'](_0x49a30d);for(const _0x78ad28 of _0x1f13e6){const _0x3cc4cb=_0x58d90e['createRangeOn'](_0x78ad28),_0x25eb90=_0xa56099['getCellLocation'](_0x78ad28),_0x3e404f=_0x78ad28['getAttribute'](_0x108977)-0x1,_0x2cf0ee=_0x1efe10[_0x2d9f23],_0x1c3e33=_0x1efe10[_0x34eacb];_0x2cf0ee<=_0x25eb90[_0x311b36]&&_0x25eb90[_0x311b36]+_0x3e404f<=_0x1c3e33&&_0x49a30d['addRange'](_0x3cc4cb);}}});});}function _0x4fd756(_0x5c5690){const _0x541bdc=Array['from'](_0x144150['getRanges']())['map'](_0xbc0c7=>rt['fromRange'](_0xbc0c7));_0x423772['model']['change'](_0x23a070=>{const _0x529107=_0x23a070['batch'];_0x5c5690=_0x5c5690['filter'](_0x27a676=>'$graveyard'!=_0x27a676['root']['rootName']),_0x23a070['setSelection'](_0x5c5690),_0x423772['commands']['get']('removeTableRow')['refresh'](),_0x423772['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x423772['model']['enqueueChange'](()=>{_0x423772['model']['enqueueChange'](_0x529107,_0x365709=>{const _0x1cbbde=_0x541bdc['filter'](_0x19cf76=>'$graveyard'!=_0x19cf76['root']['rootName']);_0x1cbbde['length']>0x0&&_0x365709['setSelection'](_0x1cbbde);for(const _0x4ae0a6 of _0x541bdc)_0x4ae0a6['detach']();});});});}function _0x42514a(_0x4f452f){_0x423772['model']['change'](_0x1df737=>{const _0x2502c5=Array['from'](_0x144150['getRanges']())['map'](_0x36edab=>rt['fromRange'](_0x36edab)),_0x3c7fa0=[];for(const _0x33b9d2 of _0x4f452f)for(const _0x4aa982 of _0x33b9d2['getItems']({'shallow':!0x0}))_0x3c7fa0['push'](_0x4aa982);for(const _0x47a4a9 of _0x3c7fa0)'$graveyard'!=_0x47a4a9['root']['rootName']&&(_0x1df737['setSelection'](_0x1df737['createPositionAt'](_0x47a4a9,0x0)),_0x423772['commands']['get']('removeTableColumn')['refresh'](),_0x423772['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x10d46b=_0x2502c5['filter'](_0x552d12=>'$graveyard'!=_0x552d12['root']['rootName']);_0x10d46b['length']>0x0&&_0x1df737['setSelection'](_0x10d46b);for(const _0x154444 of _0x2502c5)_0x154444['detach']();});}function _0xfad464(_0x4c43ae,_0x103948){return _0x103948['every'](_0x56e8d7=>_0x4c43ae['some'](_0x1644aa=>_0x1644aa['end']['isEqual'](_0x56e8d7['start'])||_0x56e8d7['end']['isEqual'](_0x1644aa['start'])));}function _0x4fef0e(_0x2a26d1,_0x5de7e3){return!_0x2a26d1['some'](_0x3d1898=>_0x5de7e3['some'](_0x255be9=>_0x3d1898['isIntersecting'](_0x255be9)))&&_0x2a26d1['some'](_0x2db0cf=>_0x5de7e3['some'](_0x460c2f=>_0x2db0cf['end']['isTouching'](_0x460c2f['start'])));}_0x29d94d['descriptionFactory']['registerDescriptionCallback'](_0x24e0b9=>{if('insertion'!=_0x24e0b9['type']&&'deletion'!=_0x24e0b9['type'])return;const _0x5552fe=_0x24e0b9['getContainedElement']();if(null!=_0x5552fe&&_0x5552fe['is']('element','table')){if('insertion'==_0x24e0b9['type']){const _0x4b3f95=_0x24e0b9['getItems']()['filter'](_0x17cfa4=>_0x17cfa4['is']('$textProxy'))['map'](_0x2c3e86=>_0x2c3e86['data']);if(_0x4b3f95['length'])return{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b3f95['join']('\x20')+'\x22'))};}if('deletion'==_0x24e0b9['type']){const _0x39a3ee=_0x24e0b9['getItems']()['filter'](_0x55803e=>_0x55803e['is']('$textProxy'))['map'](_0x13a11f=>_0x13a11f['data']);if(_0x39a3ee['length'])return{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39a3ee['join']('\x20')+'\x22'))};}}}),_0x29d94d['descriptionFactory']['registerDescriptionCallback'](_0xdbd181=>{if('tableRow'==_0xdbd181['subType']){const _0x302da1=_0xdbd181['getItems']()['filter'](_0x13e7e3=>_0x13e7e3['is']('$textProxy'))['map'](_0x615884=>_0x615884['data']),_0x585c59=this['_getSuggestionCoords'](_0xdbd181),_0x968119=_0x585c59['maxRow']-_0x585c59['minRow']+0x1;if('insertion'==_0xdbd181['type'])return _0x302da1['length']?{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x968119,'\x22'+_0x302da1['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW',_0x968119))};if('deletion'==_0xdbd181['type'])return _0x302da1['length']?{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x968119,'\x22'+_0x302da1['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW',_0x968119))};}if('tableColumn'==_0xdbd181['subType']){const _0x2765a2=_0xdbd181['getItems']()['filter'](_0x244456=>_0x244456['is']('$textProxy'))['map'](_0x4ed2bb=>_0x4ed2bb['data']),_0x9d60e=this['_getSuggestionCoords'](_0xdbd181),_0x518695=_0x9d60e['maxColumn']-_0x9d60e['minColumn']+0x1;if('insertion'==_0xdbd181['type'])return _0x2765a2['length']?{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x518695,'\x22'+_0x2765a2['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN',_0x518695))};if('deletion'==_0xdbd181['type'])return _0x2765a2['length']?{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x518695,'\x22'+_0x2765a2['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN',_0x518695))};}}),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4fd756),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4fd756),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42514a),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42514a),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xfad464),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xfad464),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4fef0e),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4fef0e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4da65b=this['editor'],_0x478088=_0x4da65b['model']['document']['selection'];return(_0x118a45,_0x4ddd57)=>{_0x4da65b['model']['change'](_0xe04fba=>{const {commandName:_0x41024d,commandParams:_0x35585d}=_0x4ddd57;let _0x2d4ac6=_0x118a45[0x0]['end']['nodeBefore'];_0x35585d&&_0x35585d[0x0]&&!0x1===_0x35585d[0x0]['forceValue']&&(_0x2d4ac6=_0x118a45[0x0]['start']['nodeAfter']);const _0x215370=_0xe04fba['createRangeIn'](_0x2d4ac6);if('$graveyard'==_0x215370['root']['rootName'])return;const _0xfeb563=Array['from'](_0x478088['getRanges']())['map'](_0x5a2528=>rt['fromRange'](_0x5a2528));_0xe04fba['setSelection'](_0x215370),_0x4da65b['commands']['get'](_0x41024d)['refresh'](),_0x35585d['push']({'forceDefaultExecution':!0x0}),_0x4da65b['execute'](_0x41024d,..._0x35585d);const _0x682e8c=_0xfeb563['filter'](_0x4acbf8=>'$graveyard'!=_0x4acbf8['root']['rootName']);_0x682e8c['length']>0x0&&_0xe04fba['setSelection'](_0x682e8c);for(const _0x122860 of _0xfeb563)_0x122860['detach']();});};}['_getCoordsForCells'](_0x2f955f){const _0x38a18b=this['editor']['plugins']['get']('TableUtils');let _0x58cad6=Number['MAX_SAFE_INTEGER'],_0x5c69a8=Number['MIN_SAFE_INTEGER'],_0x43e691=Number['MAX_SAFE_INTEGER'],_0x4c7ec4=Number['MIN_SAFE_INTEGER'];for(const _0x1ba5ae of _0x2f955f){if('$graveyard'==_0x1ba5ae['root']['rootName'])continue;const {row:_0x4afec9,column:_0x3f0f55}=_0x38a18b['getCellLocation'](_0x1ba5ae),_0x407199=_0x1ba5ae['hasAttribute']('rowspan')?_0x1ba5ae['getAttribute']('rowspan')-0x1:0x0,_0x17c591=_0x1ba5ae['hasAttribute']('colspan')?_0x1ba5ae['getAttribute']('colspan')-0x1:0x0;_0x58cad6=_0x4afec9<_0x58cad6?_0x4afec9:_0x58cad6,_0x5c69a8=_0x4afec9+_0x407199>_0x5c69a8?_0x4afec9+_0x407199:_0x5c69a8,_0x43e691=_0x3f0f55<_0x43e691?_0x3f0f55:_0x43e691,_0x4c7ec4=_0x3f0f55+_0x17c591>_0x4c7ec4?_0x3f0f55+_0x17c591:_0x4c7ec4;}return{'minRow':_0x58cad6,'maxRow':_0x5c69a8,'minColumn':_0x43e691,'maxColumn':_0x4c7ec4};}['_setupColumnsRowsFixing'](){const _0x1de6ae=this['editor'],_0x41b9c9=_0x1de6ae['plugins']['get']('TrackChangesEditing'),_0x26628a=_0x1de6ae['plugins']['get']('TableUtils');_0x1de6ae['model']['document']['on']('change:data',()=>{const _0x27fdd1=Array['from'](_0x1de6ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27e53f,data:_0x47ecdf}of _0x27fdd1){const {group:_0x5c86db,id:_0x1ef5d1,subType:_0x5432c}=tt(_0x27e53f);if('suggestion'!=_0x5c86db)continue;if(null!=_0x47ecdf['oldRange'])continue;const _0x5e8863=_0x41b9c9['getSuggestion'](_0x1ef5d1);this['_tablePostFixingSubtypes']['includes'](_0x5432c)&&this['_tableSuggestions']['add'](_0x5e8863);}},{'priority':'low'});const _0x5b12d7=(_0x13d50c,_0x13ea6b)=>{let _0x2bf0a5=!0x1;const _0x4449a5=_0x13ea6b['createRangeOn'](_0x13d50c),_0x1dcb24=_0x13d50c['findAncestor']('table'),_0x46939a=_0x26628a['getCellLocation'](_0x13d50c);for(const _0x50f746 of this['_tableSuggestions']){const _0x25a2ef=_0x50f746['subType'],_0x215e37=_0x25a2ef['startsWith']('tablePaste'),_0x353349=_0x25a2ef['substr'](_0x215e37?0xa:0x5),_0x1f064f=_0x353349['toLowerCase'](),_0x670a17=_0x1f064f['substr'](0x0,0x3)+'span',_0x34ed48='min'+_0x353349,_0x686b84='max'+_0x353349;if(!_0x50f746['isInContent'])continue;if(_0x1dcb24!=_0x50f746['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x50f746['isIntersectingWithRange'](_0x4449a5))continue;const _0x4246f1=_0x13d50c['hasAttribute'](_0x670a17)?_0x13d50c['getAttribute'](_0x670a17)-0x1:0x0,_0x2ff5b8=this['_getSuggestionCoords'](_0x50f746),_0x21d9f5=_0x2ff5b8[_0x34ed48],_0x155e9c=_0x2ff5b8[_0x686b84];_0x21d9f5<=_0x46939a[_0x1f064f]&&_0x46939a[_0x1f064f]+_0x4246f1<=_0x155e9c&&(_0x50f746['addRange'](_0x4449a5),_0x2bf0a5=!0x0);}return _0x2bf0a5;};_0x1de6ae['model']['document']['registerPostFixer'](_0x180830=>{let _0x579b86=!0x1;for(const _0x46dc9b of _0x1de6ae['model']['document']['differ']['getChanges']())if('insert'==_0x46dc9b['type']){if('tableRow'==_0x46dc9b['name']){for(const _0x623221 of _0x46dc9b['position']['nodeAfter']['getChildren']())_0x579b86=_0x579b86||_0x5b12d7(_0x623221,_0x180830);}else'tableCell'==_0x46dc9b['name']&&(_0x579b86=_0x579b86||_0x5b12d7(_0x46dc9b['position']['nodeAfter'],_0x180830));}return _0x579b86;});}['_getSuggestionCoords'](_0xaa4bc2){return this['_getCoordsForCells'](_0xaa4bc2['getRanges']()['map'](_0x447536=>_0x447536['start']['nodeAfter']));}};function De(_0x38a95a){return Array['from'](new Set(_0x38a95a)['values']());}var Ue=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x284011=this['editor'],_0x5cd3ae=_0x284011['model']['document']['selection'],_0x5395a1=_0x284011['locale'];if(!_0x284011['plugins']['has']('TableEditing'))return;const _0x2a9220=_0x284011['plugins']['get']('TrackChangesEditing'),_0x4d57b8=_0x284011['plugins']['get']('TableUtils'),_0x11b355=_0x284011['plugins']['get'](ve);_0x11b355['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2a9220['enableCommand']('mergeTableCells',()=>{const _0x89784b=_0x4d57b8['getSelectionAffectedTableCells'](_0x284011['model']['document']['selection']);_0x284011['model']['change'](()=>{_0x2a9220['markMultiRangeBlockFormat'](_0x89784b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x284011['commands']['get']('mergeTableCells')['on']('execute',(_0x3de287,_0x491a87)=>{_0x284011['commands']['get']('trackChanges')['value']&&(_0x491a87['length']>0x0&&_0x491a87[_0x491a87['length']-0x1]&&_0x491a87[_0x491a87['length']-0x1]['forceDefaultExecution']||_0x2a9220['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de287['stop']());},{'priority':'highest'});for(const _0x1229c1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x21d8c6=_0x284011['commands']['get'](_0x1229c1);_0x2a9220['enableCommand'](_0x1229c1,()=>{const _0x2a613d=_0x284011['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35b143=>_0x35b143['is']('element','tableCell')),_0x45a71d=_0x21d8c6['value'];_0x284011['model']['change'](()=>{_0x2a9220['markMultiRangeBlockFormat']([_0x2a613d,_0x45a71d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2150f5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x58b295=_0x284011['commands']['get'](_0x2150f5);_0x2a9220['enableCommand'](_0x2150f5,()=>{const _0x55658f=_0x4d57b8['getSelectionAffectedTableCells'](_0x284011['model']['document']['selection'])[0x0],_0x10285f=_0x55658f['findAncestor']('table'),{column:_0x936ab5,row:_0x11422b}=_0x4d57b8['getCellLocation'](_0x55658f);let _0x1a41ed=[];if('horizontally'==_0x58b295['direction']){const _0x29f1cf=_0x4d57b8['createTableWalker'](_0x10285f,{'startRow':_0x11422b,'endRow':_0x11422b,'includeAllSlots':!0x0});_0x1a41ed=Array['from'](_0x29f1cf)['map'](_0x25c6e3=>_0x25c6e3['cell']);}else{const _0x489c0f=_0x4d57b8['createTableWalker'](_0x10285f,{'column':_0x936ab5,'includeAllSlots':!0x0});_0x1a41ed=Array['from'](_0x489c0f)['map'](_0x5dcc0c=>_0x5dcc0c['cell']);}_0x284011['model']['change'](_0x3c6e07=>{_0x2a9220['markBlockFormat'](_0x3c6e07['createRangeOn'](_0x55658f),{'commandName':_0x2150f5,'commandParams':[]},_0x1a41ed,_0x2150f5);});});}_0x2a9220['descriptionFactory']['registerDescriptionCallback'](_0x561a9c=>{if('formatBlock'!=_0x561a9c['type']&&'formatInline'!=_0x561a9c['type'])return;const {data:_0x410400}=_0x561a9c;return _0x410400&&'mergeTableCells'==_0x410400['commandName']?{'type':'format','content':St(_0x5395a1,'*Merge\x20cells*')}:void 0x0;}),_0x2a9220['descriptionFactory']['registerDescriptionCallback'](_0x34c434=>{if('formatBlock'!=_0x34c434['type']&&'formatInline'!=_0x34c434['type'])return;const {data:_0x27dbeb}=_0x34c434;return _0x27dbeb?'splitTableCellVertically'==_0x27dbeb['commandName']?{'type':'format','content':St(_0x5395a1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x27dbeb['commandName']?{'type':'format','content':St(_0x5395a1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4d0f77=_0x11b355['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a2932 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2a9220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a2932,'accept',_0x4d0f77);for(const _0x10adae of['splitTableCellVertically','splitTableCellHorizontally'])_0x2a9220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10adae,'accept',_0x4d0f77);_0x2a9220['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fc0b0=>{_0x284011['model']['change'](_0x42965c=>{const _0x2946d0=Array['from'](_0x5cd3ae['getRanges']())['map'](_0x31ecef=>rt['fromRange'](_0x31ecef));_0x42965c['setSelection'](_0x3fc0b0),_0x284011['commands']['get']('mergeTableCells')['refresh'](),_0x284011['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x269cd4=_0x2946d0['filter'](_0x56256e=>'$graveyard'!=_0x56256e['root']['rootName']);_0x269cd4['length']>0x0&&_0x42965c['setSelection'](_0x269cd4);for(const _0x227c60 of _0x2946d0)_0x227c60['detach']();});});for(const _0x5791b4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd04c8f=_0x284011['commands']['get'](_0x5791b4);_0xd04c8f['on']('set:isEnabled',(_0x7f063d,_0x8456ad,_0x2ee4f5)=>{if(_0x2ee4f5){const _0x3afff4=_0x284011['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd740=>_0x4dd740['is']('element','tableCell'));this['_areMergableCells'](_0xd04c8f['value'],_0x3afff4)||(_0x7f063d['return']=!0x1,_0x7f063d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x274861=this['editor']['commands']['get']('mergeTableCells'),_0x727d8b=this['editor']['plugins']['get']('TableUtils');if(!_0x274861['isEnabled'])return!0x1;const _0x5ec471=_0x727d8b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54dc45 of _0x5ec471)for(const _0x2bb85f of _0x5ec471)if(_0x54dc45!=_0x2bb85f&&!this['_areMergableCells'](_0x54dc45,_0x2bb85f))return!0x1;return!0x0;}['_areMergableCells'](_0x54e473,_0x30212d){const _0x47a63b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7fede7=this['editor']['model']['createRangeOn'](_0x54e473),_0x143b01=this['editor']['model']['createRangeOn'](_0x30212d),_0x2ccdc3=new Set(),_0x11adff=new Set();for(const _0x3c8c62 of _0x47a63b['getSuggestions']())if(('insertion'==_0x3c8c62['type']||'deletion'==_0x3c8c62['type']||'mergeTableCells'==_0x3c8c62['subType'])&&_0x3c8c62['isInContent']){for(const _0x272f9d of _0x3c8c62['getRanges']())_0x272f9d['containsRange'](_0x7fede7,!0x0)&&_0x2ccdc3['add'](_0x3c8c62['type']+':'+_0x3c8c62['author']['id']),_0x272f9d['containsRange'](_0x143b01,!0x0)&&_0x11adff['add'](_0x3c8c62['type']+':'+_0x3c8c62['author']['id']);}if(_0x2ccdc3['size']!=_0x11adff['size'])return!0x1;for(const _0x3fea24 of _0x2ccdc3)if(!_0x11adff['has'](_0x3fea24))return!0x1;return!0x0;}},Pe=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x2f375d=this['editor'];if(!_0x2f375d['plugins']['has']('TableEditing'))return;const _0x5edce2=_0x2f375d['locale'],_0x28f6f6=_0x2f375d['plugins']['get']('TrackChangesEditing');_0x28f6f6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28f6f6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28f6f6['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x5edce2,'FORMAT_HEADER_ROW')),_0x28f6f6['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x5edce2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e220=this['editor']['plugins']['get']('TrackChangesEditing'),_0x580dfd=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x1e220['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x580dfd),_0x1e220['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x580dfd),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5e5c90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57c2e8=this['editor']['plugins']['get']('TableUtils');function _0x3c52f4({showActiveMarker:_0x228ba2=!0x0,setDataAttribute:_0x3bf056=!0x0}={}){return(_0x229f78,_0x576b01,_0xf96609)=>{const {type:_0xf4b2b,id:_0x55d831}=tt(_0x576b01['markerName']);if(!_0x5e5c90['hasSuggestion'](_0x55d831))return;const _0x3b5788=_0x5e5c90['getSuggestion'](_0x55d831),_0x305909=_0x3b5788['data'];if('formatBlock'!=_0x3b5788['type']||!_0x305909||'setTableColumnHeader'!=_0x305909['commandName'])return;if(_0x576b01['item'])return void _0x229f78['stop']();if(!_0xf96609['consumable']['consume'](_0x576b01['markerRange'],_0x229f78['name']))return;const _0x112a56=_0x576b01['markerRange']['start']['nodeAfter'],_0x2fcc12=_0x576b01['markerRange']['end']['nodeBefore'],_0x4310b0=_0x112a56['parent']['parent'],{column:_0xc65ccf}=_0x57c2e8['getCellLocation'](_0x112a56),{column:_0x29dab3}=_0x57c2e8['getCellLocation'](_0x2fcc12);for(let _0x414068=_0xc65ccf;_0x414068<=_0x29dab3;_0x414068++){const _0x5682=_0x57c2e8['createTableWalker'](_0x4310b0,{'column':_0x414068,'includeAllSlots':!0x1});for(const _0x4761d0 of _0x5682){const _0x54826f=_0x4761d0['cell'],_0x288164=_0xf96609['mapper']['toViewElement'](_0x54826f);_0xf96609['writer']['addClass']('ck-suggestion-marker-'+_0xf4b2b,_0x288164),_0x3bf056&&_0xf96609['writer']['setAttribute']('data-suggestion',_0x55d831,_0x288164),_0xf96609['mapper']['bindElementToMarker'](_0x288164,_0x576b01['markerName']),_0x228ba2&&(_0x5e5c90['activeMarkers']['includes'](_0x576b01['markerName'])?_0xf96609['writer']['addClass']('ck-suggestion-marker--active',_0x288164):_0xf96609['writer']['removeClass']('ck-suggestion-marker--active',_0x288164));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c52f4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x363c8e,_0x1c5a0a,_0x46d98a)=>{_0x46d98a['options']['showSuggestionHighlights']&&_0x3c52f4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x363c8e,_0x1c5a0a,_0x46d98a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x120d59,_0x585b35,_0x5de609)=>{const {type:_0xe4ba1a,id:_0x6d379b}=tt(_0x585b35['markerName']);if(!_0x5e5c90['hasSuggestion'](_0x6d379b))return;const _0x42e1f1=_0x5e5c90['getSuggestion'](_0x6d379b),_0x1dd5aa=_0x42e1f1['data'];if('formatBlock'!=_0x42e1f1['type']||!_0x1dd5aa||'setTableColumnHeader'!=_0x1dd5aa['commandName'])return;const _0x387efd=_0x5de609['mapper']['markerNameToElements'](_0x585b35['markerName']);if(_0x387efd){for(const _0x4341bc of _0x387efd)_0x5de609['writer']['removeClass']('ck-suggestion-marker-'+_0xe4ba1a,_0x4341bc),_0x5de609['writer']['removeClass']('ck-suggestion-marker--active',_0x4341bc),_0x5de609['writer']['removeAttribute']('data-suggestion',_0x4341bc),_0x5de609['mapper']['unbindElementFromMarkerName'](_0x4341bc,_0x585b35['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x41af2b=this['editor'],_0x55c0ab=_0x41af2b['locale'];function _0x3c4ec5(_0x1672c7){return{'type':'format','content':St(_0x55c0ab,'*Format:*\x20%0',_0x1672c7)};}_0x41af2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5648bf=>{if('formatBlock'!=_0x5648bf['type'])return;const {data:_0x357881}=_0x5648bf;return _0x357881?'setTableRowHeader'==_0x357881['commandName']?_0x357881['commandParams'][0x0]['forceValue']?_0x3c4ec5(St(_0x55c0ab,'FORMAT_HEADER_ROW')):_0x3c4ec5(St(_0x55c0ab,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x357881['commandName']?_0x357881['commandParams'][0x0]['forceValue']?_0x3c4ec5(St(_0x55c0ab,'FORMAT_HEADER_COLUMN')):_0x3c4ec5(St(_0x55c0ab,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x559bcc=this['editor'];if(!_0x559bcc['plugins']['has']('TableEditing')||!_0x559bcc['config']['get']('table.enableFooters'))return;const _0x435365=_0x559bcc['locale'],_0x57d835=_0x559bcc['plugins']['get']('TrackChangesEditing');_0x57d835['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x57d835['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x435365,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x413c81{['afterInit'](){const _0x158390=this['editor'],_0x25d4b0=_0x158390['locale'],_0x4305bc=_0x158390['plugins']['get']('TrackChangesEditing');function _0x577e79(_0x232636){return{'type':'format','content':''+St(_0x25d4b0,'*Set\x20table\x20type:*\x20%0',_0x232636)};}_0x158390['plugins']['has']('TableLayout')&&(_0x4305bc['enableCommand']('insertTableLayout'),_0x4305bc['enableDefaultAttributesIntegration']('tableType'),_0x4305bc['descriptionFactory']['registerElementLabel'](_0x5c15e4=>_0x5c15e4['is']('element','table')&&'layout'===_0x5c15e4['getAttribute']('tableType'),_0x9d2d18=>St(_0x25d4b0,'ELEMENT_LAYOUT_TABLE',_0x9d2d18)),_0x4305bc['descriptionFactory']['registerDescriptionCallback'](_0x2714ff=>{const {data:_0x39a8a5}=_0x2714ff;if(_0x39a8a5&&'tableType'==_0x39a8a5['key'])switch(_0x39a8a5['newValue']){case'layout':return _0x577e79(St(_0x25d4b0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x577e79(St(_0x25d4b0,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](He['map'](_0x4e9d5b=>[_0x4e9d5b,null]));var Ve=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x363960=this['editor'];if(!_0x363960['plugins']['has']('TableClipboard'))return;const _0x130339=_0x363960['plugins']['get']('TrackChangesEditing'),_0x35e9fb=_0x363960['plugins']['get']('TableUtils'),_0x4f67c6=_0x363960['plugins']['get'](ve),_0x3ad122=_0x363960['plugins']['get']('TableClipboard'),_0x33b2e1=_0x363960['plugins']['get']('TableSelection'),_0x36189d=_0x363960['plugins']['get'](mt);_0x4f67c6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x363960['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x363960['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2a65b0=null,_0x34fa78=!0x1;_0x36189d['on']('contentInsertion',(_0x4c19ec,_0x24c76b)=>{_0x34fa78='paste'===_0x24c76b['method'];}),_0x363960['model']['on']('insertContent',(_0x150acb,_0x481e0c)=>{if(!_0x34fa78&&null===_0x33b2e1['getSelectedTableCells']())return;const [_0x2fd02a,_0x20bf70]=_0x481e0c,_0x2e02d1=_0x481e0c[_0x481e0c['length']-0x1];_0x2e02d1&&_0x2e02d1['forceDefaultExecution']||_0x130339['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x721d86,_0x43522f,_0x3f457c,_0xf18ed6,_0x5c052b){if(_0x43522f&&!_0x43522f['is']('documentSelection'))return!0x1;const _0x2c0db7=_0x5c052b['getTableIfOnlyTableInContent'](_0x721d86,_0x3f457c);if(!_0x2c0db7||!je(_0x2c0db7,void 0x0,_0xf18ed6))return!0x1;const _0x5a7086=_0xf18ed6['getSelectionAffectedTableCells'](_0x3f457c['document']['selection']);if(!_0x5a7086['length'])return!0x1;const _0x102659=_0x5a7086[0x0]['findAncestor']('table'),_0x49e624=_0xf18ed6['getRowIndexes'](_0x5a7086),_0x4df3ed=_0xf18ed6['getColumnIndexes'](_0x5a7086),_0x4d5e24={'startRow':_0x49e624['first'],'endRow':_0x49e624['last'],'startColumn':_0x4df3ed['first'],'endColumn':_0x4df3ed['last']};return 0x1==_0x5a7086['length']&&(_0x4d5e24['endRow']+=_0xf18ed6['getRows'](_0x2c0db7)-0x1,_0x4d5e24['endColumn']+=_0xf18ed6['getColumns'](_0x2c0db7)-0x1),je(_0x102659,_0x4d5e24,_0xf18ed6);}(_0x2fd02a,_0x20bf70,_0x363960['model'],_0x35e9fb,_0x3ad122)&&(_0x150acb['stop'](),_0x2a65b0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x363960['model']['change'](()=>{_0x363960['model']['insertContent'](_0x481e0c[0x0],_0x481e0c[0x1],_0x481e0c[0x2],{'forceDefaultExecution':!0x0});const _0x2d5c60=_0x1f4b16(),{rowInsertionRanges:_0xfc790c,columnInsertionRanges:_0x53d54d,insertionRanges:_0x2e571d,deletionRanges:_0x4f744d,cells:_0x497184}=_0x2a65b0;_0xfc790c['length']&&_0x130339['markMultiRangeInsertion'](_0xfc790c,'tablePasteRow',{'tablePasteChainId':_0x2d5c60}),_0x53d54d['length']&&_0x130339['markMultiRangeInsertion'](_0x53d54d,'tablePasteColumn',{'tablePasteChainId':_0x2d5c60}),_0x2e571d['length']&&(_0x130339['markMultiRangeInsertion'](_0x2e571d,'tablePaste',{'tablePasteChainId':_0x2d5c60,'skipNestingCheck':!0x0}),_0x2e571d['forEach'](_0x544862=>_0x544862['detach']?.())),_0x4f744d['length']&&(_0x130339['markMultiRangeDeletion'](_0x4f744d,'tablePaste',{'tablePasteChainId':_0x2d5c60,'skipNestingCheck':!0x0}),_0x4f744d['forEach'](_0x14838e=>_0x14838e['detach']?.()));const _0x2ac35d=_0x130339['markMultiRangeBlockFormat'](_0x497184['map'](({element:_0x363c44})=>_0x363c44),{'formatGroupId':_0x1f4b16()},[],'tablePasteCell',{'tablePasteChainId':_0x2d5c60});if(_0x2ac35d){const _0x340015=_0x2ac35d['getMarkers'](),_0x3fa566=[];for(const {element:_0x2a1663,attributes:_0x434ea9}of _0x497184){if(!_0x434ea9)continue;const _0x33d71d=_0x363960['model']['createRangeOn'](_0x2a1663),_0x18fc27=_0x340015['find'](_0x1f3e50=>_0x1f3e50['getRange']()['isEqual'](_0x33d71d));_0x18fc27&&_0x3fa566['push']([_0x18fc27['name'],_0x434ea9]);}_0x3fa566['length']&&_0x2ac35d['setAttribute']('markerAttributes',Object['fromEntries'](_0x3fa566));}_0x2a65b0=null;}));},{'priority':_0x1cf13d['high']+0xa}),_0x36189d['on']('contentInsertion',()=>{_0x34fa78=!0x1;},{'priority':'lowest'}),_0x363960['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x38fc2a,_0x559b81)=>{const [_0x1f4d07,_0x49f562,,_0x80b6bb]=_0x559b81;if(!_0x2a65b0)return;_0x38fc2a['stop']();const _0x36b981=_0x1f4d07['cell'],_0x40fdcc=_0x49f562,_0x5864ad=We(_0x36b981),_0x198c2b=We(_0x40fdcc);_0x38fc2a['return']=_0x36b981;let _0x3fb66a=null,_0x28fb14=null;if(_0x198c2b||_0x5864ad){if(_0x5864ad&&!_0x198c2b){_0x80b6bb['remove'](_0x36b981['getChild'](0x0));for(const _0x4bfada of Array['from'](_0x40fdcc['getChildren']()))_0x80b6bb['insert'](_0x4bfada,_0x36b981,'end');const _0x54b69e=_0x2a65b0['rowInsertionIndexes']['includes'](_0x1f4d07['row']),_0x21b301=_0x2a65b0['columnInsertionIndexes']['includes'](_0x1f4d07['column']);_0x54b69e||_0x21b301||(_0x3fb66a=rt['fromRange'](_0x80b6bb['createRangeIn'](_0x36b981)));}else _0x198c2b&&!_0x5864ad&&(_0x28fb14=_0x80b6bb['createRangeIn'](_0x36b981));}else{const _0x1fadcc=_0x80b6bb['createElement']('tableCellSuggestion'),_0xe98ccd=_0x80b6bb['createElement']('tableCellSuggestion');_0x80b6bb['wrap'](_0x80b6bb['createRangeIn'](_0x36b981),_0xe98ccd),_0x80b6bb['insert'](_0x1fadcc,_0x36b981,0x0);for(const _0x8f210 of Array['from'](_0x40fdcc['getChildren']()))_0x80b6bb['insert'](_0x8f210,_0x1fadcc,'end');_0x3fb66a=rt['fromRange'](_0x80b6bb['createRangeOn'](_0x1fadcc)),_0x28fb14=rt['fromRange'](_0x80b6bb['createRangeOn'](_0xe98ccd));}const _0x19f138=Array['from'](_0x40fdcc['getAttributes']())['filter'](([_0xd1b2eb])=>He['includes'](_0xd1b2eb));_0x2a65b0['cells']['push']({'element':_0x36b981,'attributes':_0x19f138['length']?Object['fromEntries'](_0x19f138):null}),_0x3fb66a&&_0x2a65b0['insertionRanges']['push'](_0x3fb66a),_0x28fb14&&_0x2a65b0['deletionRanges']['push'](_0x28fb14);},{'priority':'high'}),_0x35e9fb['on']('insertColumns',(_0x270bf6,_0x12bd17)=>{const [_0x3605cf,_0x2355ea={}]=_0x12bd17;if(!_0x2a65b0)return;const _0x25a26e=_0x2355ea['at']||0x0,_0x4e08a2=_0x2355ea['columns']||0x1;_0x2a65b0['columnInsertionIndexes']=new Array(_0x4e08a2)['fill'](_0x25a26e)['map']((_0x20052f,_0x29567b)=>_0x20052f+_0x29567b);for(const {cell:_0x24e01a}of _0x35e9fb['createTableWalker'](_0x3605cf,{'startColumn':_0x25a26e,'endColumn':_0x25a26e+_0x4e08a2-0x1}))_0x2a65b0['columnInsertionRanges']['push'](_0x363960['model']['createRangeOn'](_0x24e01a));},{'priority':'low'}),_0x35e9fb['on']('insertRows',(_0x1d61ae,_0x2bdc8b)=>{const [_0x34fb83,_0x5d51ed={}]=_0x2bdc8b;if(!_0x2a65b0)return;const _0x41d660=_0x5d51ed['at']||0x0,_0x29fdc8=_0x5d51ed['rows']||0x1;_0x2a65b0['rowInsertionIndexes']=new Array(_0x29fdc8)['fill'](_0x41d660)['map']((_0x29ba74,_0x77a29c)=>_0x29ba74+_0x77a29c);for(const {cell:_0x308427}of _0x35e9fb['createTableWalker'](_0x34fb83,{'startRow':_0x41d660,'endRow':_0x41d660+_0x29fdc8-0x1}))_0x2a65b0['rowInsertionRanges']['push'](_0x363960['model']['createRangeOn'](_0x308427));},{'priority':'low'}),_0x130339['descriptionFactory']['registerDescriptionCallback'](_0x46feee=>{if(_0x46feee['subType']&&_0x46feee['subType']['startsWith']('tablePaste'))return _0x46feee['previous']?{}:{'type':'insertion','content':St(_0x363960['locale'],'*Replace\x20table\x20cells*')};});const _0x4ef5f4=()=>!0x1;for(const _0x536f40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x130339['_suggestionFactory']['registerCustomCallback']('insertion',_0x536f40,'join',_0x4ef5f4),_0x130339['_suggestionFactory']['registerCustomCallback']('deletion',_0x536f40,'join',_0x4ef5f4),_0x130339['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x536f40,'join',_0x4ef5f4);_0x130339['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ef5f4),_0x130339['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a299f,_0x5f1384,_0x405139)=>{const _0x3b9b12=_0x1a299f['map'](_0x183820=>_0x183820['getContainedElement']())['filter'](_0x157d95=>_0x157d95),_0xb2adbd=new Map(_0x3b9b12['map'](_0x34e58e=>[_0x34e58e,null]));if(_0x2a65b0){for(const {element:_0x1309af,attributes:_0x334256}of _0x2a65b0['cells'])_0x334256&&_0xb2adbd['set'](_0x1309af,_0x334256);}else{if(_0x405139&&_0x405139['markerAttributes'])for(const [_0x23af23,_0x1944f5]of Object['entries'](_0x405139['markerAttributes'])){const _0x1d11aa=_0x363960['model']['markers']['get'](_0x23af23),_0x15fa84=_0x1d11aa?_0x1d11aa['getRange']()['getContainedElement']():null;_0x15fa84&&_0xb2adbd['set'](_0x15fa84,_0x1944f5);}}_0x363960['model']['change'](_0xf40296=>{for(const [_0x1390f9,_0x4b3df1]of _0xb2adbd)_0xf40296['setAttributes']({...$e,..._0x4b3df1},_0x1390f9);});});const _0x2b8e4a=(_0x59c02b,_0x35ff9e)=>{_0x130339['_suggestionFactory']['registerCustomCallback'](_0x59c02b,'tablePaste',_0x35ff9e,(_0x5b78a0,_0x4573ca,_0x312995)=>{_0x363960['model']['change'](_0x168320=>{const _0x4b1692=[];for(const _0x48226b of _0x5b78a0){const _0x7d585c=_0x48226b['start']['nodeAfter'];_0x7d585c['is']('element','tableCellSuggestion')&&_0x4b1692['push'](_0x7d585c);}_0x130339['_suggestionFactory']['getSuggestionCallback'](_0x59c02b,null,_0x35ff9e)(_0x5b78a0,_0x4573ca,_0x312995);for(const _0x8e14b of _0x4b1692)'$graveyard'!=_0x8e14b['root']['rootName']&&_0x168320['unwrap'](_0x8e14b);});});};_0x2b8e4a('insertion','accept'),_0x2b8e4a('insertion','discard'),_0x2b8e4a('deletion','accept'),_0x2b8e4a('deletion','discard'),_0x130339['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1af73b=>{const _0xed4395=_0x1af73b['map'](_0x32af0d=>_0x32af0d['getContainedElement']()),_0x7292d7=_0xed4395[0x0]['findAncestor']('table'),{minRow:_0x66ddf5,maxRow:_0x24b102}=_0x4f67c6['_getCoordsForCells'](_0xed4395);_0x35e9fb['removeRows'](_0x7292d7,{'at':_0x66ddf5,'rows':_0x24b102-_0x66ddf5+0x1});}),_0x130339['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x49c116=>{const _0xaf75be=_0x49c116['map'](_0x5bfdc5=>_0x5bfdc5['getContainedElement']()),_0x5955e1=_0xaf75be[0x0]['findAncestor']('table'),{minColumn:_0x3205b1,maxColumn:_0x432ba8}=_0x4f67c6['_getCoordsForCells'](_0xaf75be);_0x35e9fb['removeColumns'](_0x5955e1,{'at':_0x3205b1,'columns':_0x432ba8-_0x3205b1+0x1});});const _0x3ca644=(_0x202f1a,_0x15b722)=>{if(!_0x15b722['subType']||!_0x15b722['subType']['startsWith']('tablePaste'))return;const _0x270ecf=_0x15b722['attributes']['tablePasteChainId'],_0x3281da=_0x130339['getSuggestions']()['filter'](_0x408fdd=>_0x408fdd['isInContent']&&_0x408fdd['attributes']&&_0x408fdd['attributes']['tablePasteChainId']==_0x270ecf);_0x3281da['length']&&_0x15b722['getAllAdjacentSuggestions']()['length']!=_0x3281da['length']&&_0x3281da['reduce']((_0xf050,_0x4b2134)=>(_0xf050['next']=_0x4b2134,_0x4b2134['previous']=_0xf050,_0x4b2134));};function _0x1c96e4(_0x349a56,_0x160414=!0x0){const {id:_0x3d45cb,authorId:_0x2a5dd7}=tt(_0x349a56['markerName']),_0x5a9e05=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21cc38=_0x130339['activeMarkers']['includes'](_0x349a56['markerName']);return _0x21cc38&&_0x5a9e05['push']('ck-suggestion-marker--active'),{'classes':_0x5a9e05,'attributes':{'data-suggestion':_0x3d45cb,'data-author-id':_0x2a5dd7},'priority':_0x21cc38&&_0x160414?0xbc2:0xbb8};}_0x130339['on']('suggestionLoaded',_0x3ca644,{'priority':'high'}),_0x130339['on']('suggestionUnloaded',_0x3ca644,{'priority':'high'}),_0x363960['model']['document']['registerPostFixer'](()=>{let _0x500376=!0x1;const _0x3a6507=Array['from'](_0x363960['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1908fc,data:_0x5cf297}of _0x3a6507){const {group:_0x155451,type:_0x37a687,id:_0x1abc53}=tt(_0x1908fc);if('suggestion'!=_0x155451||'deletion'!=_0x37a687||_0x5cf297['oldRange'])continue;if(!_0x130339['hasSuggestion'](_0x1abc53))continue;const _0x32d4c5=_0x130339['getSuggestion'](_0x1abc53)['getRanges'](),_0x413cce=_0x363960['plugins']['get']('Users')['me'];for(const _0x1ded87 of _0x130339['getSuggestions']())if(_0x1ded87['isInContent']&&_0x1ded87['author']==_0x413cce&&'formatBlock'==_0x1ded87['type']&&'tablePasteCell'==_0x1ded87['subType']&&_0x1ded87['getRanges']()['every'](_0x1dc394=>_0x32d4c5['some'](_0x299308=>_0x299308['containsRange'](_0x1dc394,!0x0)))){for(const _0xbf30d9 of _0x1ded87['getAllAdjacentSuggestions']())_0xbf30d9['isInContent']&&(_0xbf30d9['discard'](),_0x500376=!0x0);}}return _0x500376;}),_0x363960['model']['document']['registerPostFixer'](_0x369c7b=>{const _0x4465f4=_0x363960['commands']['get']('redo');if(!_0x4465f4||!_0x4465f4['_createdBatches']['has'](_0x369c7b['batch']))return!0x1;let _0x4b7c77=!0x1;const _0x55f479=_0x363960['plugins']['get']('Users')['me'],_0x1dfad9=_0x363960['model']['document']['differ']['getChanges'](),_0x3c826c=Array['from'](_0x363960['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25c22e,data:_0x1d8468})=>{const {group:_0x24480c,subType:_0x59c46c,authorId:_0x502a2c}=tt(_0x25c22e);return'suggestion'==_0x24480c&&'tablePaste'==_0x59c46c&&_0x502a2c==_0x55f479['id']&&!_0x1d8468['oldRange'];});for(const _0x1decaf of _0x1dfad9){if('insert'!=_0x1decaf['type']||'tableCellSuggestion'!=_0x1decaf['name']||0x1!=_0x1decaf['length'])continue;const _0x19e5df=_0x369c7b['createRange'](_0x1decaf['position'],_0x1decaf['position']['getShiftedBy'](0x1));if(!_0x3c826c['find'](({data:_0x5cbcef})=>_0x5cbcef['newRange']['isEqual'](_0x19e5df))){for(const {name:_0x324d1f,data:_0x22b4a9}of _0x3c826c)if(_0x19e5df['containsRange'](_0x22b4a9['newRange'])){_0x369c7b['updateMarker'](_0x324d1f,{'range':_0x19e5df}),_0x4b7c77=!0x0;break;}}}return _0x4b7c77;}),_0x363960['model']['document']['registerPostFixer'](_0x681111=>{let _0xc175d1=!0x1;const _0x189e04=_0x363960['plugins']['get']('Users')['me'],_0x3974a6=_0x130339['getSuggestions']()['filter'](_0xc7c77d=>_0xc7c77d['isInContent']&&_0xc7c77d['author']==_0x189e04),_0x4f98c7=new Set(),_0x4d8cec=new Set();for(const _0x2e1696 of _0x3974a6)if('tablePaste'==_0x2e1696['subType'])for(const _0x56a800 of _0x2e1696['getMarkers']()){const _0x5c5a5e=_0x56a800['getRange']()['getContainedElement']();if(_0x5c5a5e){if(_0x5c5a5e['is']('element','tableCellSuggestion')&&We(_0x5c5a5e)){_0x2e1696['removeMarker'](_0x56a800['name']),_0x4f98c7['add'](_0x5c5a5e),_0xc175d1=!0x0;const _0x60ef51=_0x5c5a5e['nextSibling'],_0x24e086=_0x5c5a5e['previousSibling'],_0x695a48=_0x60ef51&&_0x60ef51['is']('element','tableCellSuggestion'),_0x2fc9a5=_0x24e086&&_0x24e086['is']('element','tableCellSuggestion');_0x695a48&&!_0x4f98c7['has'](_0x60ef51)&&_0x4d8cec['add'](_0x60ef51),_0x2fc9a5&&!_0x4f98c7['has'](_0x24e086)&&_0x4d8cec['add'](_0x24e086);}else _0x5c5a5e['is']('element','paragraph')&&_0x5c5a5e['isEmpty']&&(_0x2e1696['removeMarker'](_0x56a800['name']),_0xc175d1=!0x0);}}else{if('tablePasteCell'==_0x2e1696['subType']){if(!_0x2e1696['attributes']||!_0x2e1696['attributes']['tablePasteChainId'])continue;const _0xa2a6a3=_0x2e1696['attributes']['markerAttributes'];if(_0xa2a6a3&&Object['keys'](_0xa2a6a3)['length'])continue;const _0x2fee82=_0x2e1696['attributes']['tablePasteChainId'];let _0x2b56c8=!0x0,_0x25fa1b=!0x0;for(const _0x287f00 of _0x3974a6)if(_0x287f00['subType']&&_0x287f00['subType']['startsWith']('tablePaste')){if(!_0x287f00['attributes']['tablePasteChainId']){_0x25fa1b=!0x1;break;}if(_0x287f00['id']!=_0x2e1696['id']&&_0x287f00['attributes']['tablePasteChainId']==_0x2fee82){_0x2b56c8=!0x1;break;}}_0x25fa1b&&_0x2b56c8&&(_0x2e1696['removeMarkers'](),_0xc175d1=!0x0);}}for(const _0x21576f of _0x4f98c7)_0x681111['remove'](_0x21576f);for(const _0x5556bc of _0x4d8cec)_0x681111['unwrap'](_0x5556bc);return _0xc175d1;}),_0x363960['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35e2cf=>_0x1c96e4(_0x35e2cf),'converterPriority':'high'}),_0x363960['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b4d88,_0x441dc6)=>_0x441dc6['options']['showSuggestionHighlights']?_0x1c96e4(_0x5b4d88,!0x1):null,'converterPriority':'high'});const _0xcd7ae2=_0x363960['editing']['view'];this['listenTo'](_0xcd7ae2['document'],'clipboardOutput',(_0x222c38,_0x1054bb)=>{const _0x2da859=[];for(const _0x27d3dd of _0xcd7ae2['createRangeIn'](_0x1054bb['content'])['getItems']())_0x27d3dd['is']('element','suggestion-td')&&_0x2da859['push'](_0x27d3dd);_0xcd7ae2['change'](_0x3fcd3f=>{for(const _0x2f77ca of _0x2da859)_0x3fcd3f['move'](_0x3fcd3f['createRangeIn'](_0x2f77ca),_0x3fcd3f['createPositionBefore'](_0x2f77ca)),_0x3fcd3f['remove'](_0x2f77ca);});});}};function We(_0x37c9bd){if(_0x37c9bd['isEmpty'])return!0x0;const _0x1e27da=_0x37c9bd['getChild'](0x0);return _0x1e27da['is']('element','paragraph')&&_0x1e27da['isEmpty'];}function je(_0x27a457,_0x4343ea={},_0x2f068d){for(const {isAnchor:_0x362b78,cellHeight:_0x5666ed,cellWidth:_0x2671ca}of _0x2f068d['createTableWalker'](_0x27a457,{'includeAllSlots':!0x0,..._0x4343ea}))if(!_0x362b78||0x1!=_0x5666ed||0x1!=_0x2671ca)return!0x1;return!0x0;}var Ke=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x11689f=this['editor']['plugins']['get']('TrackChangesEditing');_0x11689f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x11689f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x11689f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11689f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x11689f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x11689f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xd6f428,_0x7d453d){const _0xcb2ddf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b7cf0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5337ff=_0x7d453d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a51da=_0x1b7cf0['getColumnGroupElement'](_0x5337ff);let _0x32ec50=_0x3a51da?_0x1b7cf0['getTableColumnsWidths'](_0x3a51da):null,_0x377d7a=_0x5337ff['getAttribute']('tableWidth')||null;const _0x48ec3c=_0x7d453d['tableWidth']||_0x377d7a,_0x51f701=_0x7d453d['columnWidths']||_0x32ec50,_0x231747=this['editor']['plugins']['get']('Users')['me'];for(const _0x513042 of _0xcb2ddf['getSuggestions']()){const _0x4af1e7=_0x513042['getContainedElement']();if('resizeTable'===_0x513042['subType']&&_0x4af1e7===_0x5337ff){_0x513042['author']!==_0x231747&&_0x513042['discard']();const _0x595c60=_0x513042['data']['commandParams'];_0x377d7a=_0x595c60[0x0]['tableWidth'],_0x32ec50=_0x595c60[0x0]['columnWidths'];break;}}_0xd6f428({'table':_0x5337ff,'tableWidth':_0x48ec3c,'columnWidths':_0x51f701}),_0xcb2ddf['markBlockFormat'](_0x5337ff,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x377d7a,'columnWidths':_0x32ec50}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c1553){if('formatBlock'!=_0x4c1553['type']&&'formatInline'!=_0x4c1553['type'])return;const {data:_0x253b73}=_0x4c1553;return _0x253b73&&'resizeTable'===_0x253b73['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x413c81{['afterInit'](){const _0x2d102b=this['editor'];_0x2d102b['plugins']['has']('Template')&&_0x2d102b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x413c81{['afterInit'](){const _0x343de2=this['editor'];if(!_0x343de2['commands']['get']('insertTableOfContents'))return;_0x343de2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2cd0ee=_0x343de2['plugins']['get']('TrackChangesEditing'),_0x43d883=_0x343de2['locale'];_0x2cd0ee['descriptionFactory']['registerElementLabel']('tableOfContents',_0x49b658=>St(_0x43d883,'ELEMENT_TABLE_OF_CONTENTS',_0x49b658));}},qe=class extends _0x413c81{['afterInit'](){const _0x460240=this['editor'];_0x460240['plugins']['has']('Title')&&(_0x460240['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x460240['locale'],'ELEMENT_TITLE')),_0x460240['model']['document']['registerPostFixer'](_0x2090a1=>{let _0x2ad7a5=!0x1;const _0x47a213=Array['from'](_0x460240['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41d92f,data:_0x809e65}of _0x47a213){const {group:_0x142b5a}=tt(_0x41d92f);if('suggestion'!==_0x142b5a||!_0x809e65['newRange'])continue;const _0x3fdb45=_0x809e65['newRange'],_0x301dfe=_0x3fdb45['end']['nodeBefore'];if(!_0x301dfe||!_0x301dfe['is']('element','title-content'))continue;if(!_0x3fdb45['start']['isTouching'](_0x3fdb45['end']))continue;const _0x51afc6=_0x460240['model']['schema']['getNearestSelectionRange'](_0x3fdb45['end'],'forward');if(_0x51afc6&&_0x51afc6['isCollapsed']){const _0x39eb05=_0x2090a1['createRange'](_0x3fdb45['start'],_0x51afc6['start']);_0x39eb05['isEqual'](_0x3fdb45)||(_0x2090a1['updateMarker'](_0x41d92f,{'range':_0x39eb05}),_0x2ad7a5=!0x0);}_0x2ad7a5||(_0x2090a1['removeMarker'](_0x41d92f),_0x2ad7a5=!0x0);}return _0x2ad7a5;}));}},Ye=class extends _0x413c81{['afterInit'](){const _0x4741a6=this['editor'],_0x4d4159=_0x4741a6['plugins']['get']('TrackChangesEditing');_0x4741a6['plugins']['has']('Uploadcare')&&(_0x4d4159['enableCommand']('uploadcare'),_0x4741a6['plugins']['has']('UploadcareImageEdit')&&(_0x4d4159['enableCommand']('uploadcareImageEdit'),_0x4d4159['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4d4159['descriptionFactory']['registerDescriptionCallback'](_0x5b57e7=>{if('attribute'!=_0x5b57e7['type'])return;const {data:_0x123057}=_0x5b57e7;return _0x123057&&'uploadcareImageId'==_0x123057['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x413c81{['afterInit'](){const _0x15198d=this['editor'],_0xd1b84e=_0x15198d['plugins']['get']('TrackChangesEditing');_0x15198d['plugins']['has']('UndoEditing')&&(_0xd1b84e['enableCommand']('undo'),_0xd1b84e['enableCommand']('redo'));}},Ze=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x5041f9=this['editor'];_0x5041f9['plugins']['has']('TableCaptionEditing')&&_0x5041f9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x413c81{['tableProperties'];['tableCellProperties'];constructor(_0x253792){super(_0x253792),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x532779=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x318b03 of this['tableProperties'])_0x532779['enableCommand'](_0x318b03,(_0x1e1988,_0x1f2976)=>{const _0x4c3178=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x318b03,[_0x4c3178],this['tableProperties'],'tableProperties',_0x1e1988,_0x1f2976);});_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x532779['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x120e20,_0x787398)=>this['handleDiscardAction'](this['tableProperties'],_0x120e20,_0x787398)),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x110d04 of this['tableCellProperties'])this['editor']['commands']['get'](_0x110d04)&&_0x532779['enableCommand'](_0x110d04,(_0x13a366,_0x3c1aa0)=>{const _0x2597a9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x110d04,_0x2597a9,this['tableCellProperties'],'tableCellProperties',_0x13a366,_0x3c1aa0);});_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x532779['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x557d26,_0x516e96)=>this['handleDiscardAction'](this['tableCellProperties'],_0x557d26,_0x516e96)),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x532779['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x532779['descriptionFactory']['registerDescriptionCallback'](_0x124e86=>this['handleSuggestionDescription'](_0x124e86)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x522de0,_0x14b955,_0x10313f,_0x43647c,_0x1653a6,_0x312498){const _0x7faaa4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x312498['batch'],()=>{for(const _0x451fca of _0x14b955)if(this['_getSuggestion'](_0x451fca,_0x43647c))_0x1653a6(_0x312498);else{const _0x13051d={};for(const _0xbdb87e of _0x10313f){const _0xdf05a4=_0x451fca['getAttribute'](_0xbdb87e);void 0x0!==_0xdf05a4&&(_0x13051d[_0xbdb87e]=_0xdf05a4);}_0x1653a6(_0x312498),_0x7faaa4['markBlockFormat'](_0x451fca,{'commandParams':[_0x13051d]},[],_0x43647c);}});}['handleDiscardAction'](_0x14dc24,_0x5ed147,_0x5e576b){const _0x534b07=_0x5ed147[0x0]['start']['nodeAfter'],_0x2d8f9f=_0x5e576b['commandParams'][0x0];this['editor']['model']['change'](_0x58763b=>{for(const _0x15ec9b of _0x14dc24)void 0x0!==_0x2d8f9f[_0x15ec9b]?_0x58763b['setAttribute'](_0x15ec9b,_0x2d8f9f[_0x15ec9b],_0x534b07):_0x58763b['removeAttribute'](_0x15ec9b,_0x534b07);});}['handleSuggestionDescription'](_0x386d5b){if(_0x386d5b['data'])switch(_0x386d5b['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x412a43,_0x238a0e){const _0x413d0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x474ae9 of _0x413d0['getSuggestions']({'skipNotAttached':!0x0})){const _0x14cb1b=_0x474ae9['getContainedElement']();if(_0x474ae9['subType']===_0x238a0e&&_0x14cb1b===_0x412a43)return _0x474ae9;}return null;}['_registerTablePropertiesAttributes'](){const _0x568fac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7a4b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1b7e90 of _0x2e7a4b){const _0x1fc149=_0x1b7e90['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x568fac['descriptionFactory']['registerAttributeLabel'](_0x1b7e90,St(this['editor']['locale'],'FORMAT_'+_0x1fc149));}}},tn=class extends _0x413c81{['afterInit'](){const _0x2bbb2b=this['editor'];if(!_0x2bbb2b['plugins']['has']('LineHeight'))return;const _0x4bac6c=_0x2bbb2b['plugins']['get']('TrackChangesEditing'),_0x3b33ce=_0x2bbb2b['locale'];_0x4bac6c['enableDefaultAttributesIntegration']('lineHeight'),_0x4bac6c['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x3b33ce,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x413c81{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x15ba36,_0x28ef11,_0xbc2e11,_0x3ee483,_0x23df0a,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x123456){super(_0x123456),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x399dc1,_0xfaa4d3,_0x4f5743,_0x240dce)=>{this['_model']['change'](()=>{for(const _0x19f7e0 of[..._0x240dce,..._0x4f5743])this['_model']['markers']['has'](_0x19f7e0)&&_0x123456['editing']['reconvertMarker'](_0x19f7e0);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x123456['plugins']['get'](_0x15ba36),this['_suggestionsConversion']=_0x123456['plugins']['get'](_0x28ef11),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x123456['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x123456['config']['get']('trackChanges.trackFormatChanges'),_0x123456['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x123456['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x123456,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b84f8=this['editor'];_0x1b84f8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x6559f9,{writer:_0x1bc4eb})=>{let _0x379ea6='suggestion:'+_0x6559f9['getAttribute']('suggestion-type')+':'+_0x6559f9['getAttribute']('id');return _0x6559f9['getAttribute']('marker-count')&&(_0x379ea6+=':'+_0x6559f9['getAttribute']('marker-count')),_0x1bc4eb['createElement']('$marker',{'data-name':_0x379ea6});}}),_0x1b84f8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b84f8['model']['document']['registerPostFixer'](_0x336535=>{let _0x2e70d1=!0x1;const _0x43658c=Array['from'](_0x1b84f8['model']['document']['differ']['getChangedMarkers']()),_0x3fc053=new Set();for(const {name:_0x54301b,data:_0x52e34f}of _0x43658c){const {group:_0xe4ab01,type:_0x1ae5da,subType:_0x33852e,id:_0x58798e}=tt(_0x54301b);if('suggestion'!==_0xe4ab01)continue;const _0xd3cb0a=_0x33852e?'suggestion:'+_0x1ae5da+':'+_0x33852e+':'+_0x58798e:'suggestion:'+_0x1ae5da+':'+_0x58798e,_0xd4a674=_0x1b84f8['model']['markers']['getMarkersGroup'](_0xd3cb0a),_0x4868f8=_0x1b84f8['model']['markers']['get'](_0x54301b),_0x321487=this['_suggestions']['get'](_0x58798e);if(null!=_0x52e34f['newRange']){'formatInline'==_0x1ae5da&&(_0x2e70d1=_0x2e70d1||an(_0x52e34f['newRange'],_0x54301b,_0x336535,_0x1b84f8['model']['schema']));const _0xfd1fd='attribute'==_0x1ae5da&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x33852e)),_0x3d2fe1='attribute'==_0x1ae5da&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x33852e));if(_0x52e34f['newRange']['isCollapsed']||'$graveyard'==_0x52e34f['newRange']['root']['rootName']||'formatBlock'==_0x1ae5da&&!ln(_0x52e34f['newRange'])||_0xfd1fd&&!ln(_0x52e34f['newRange'])||_0x3d2fe1&&un(_0x52e34f['newRange'])||'deletion'==_0x1ae5da&&un(_0x52e34f['newRange'])||_0x4868f8&&dn(_0x4868f8,_0xd4a674))_0x336535['removeMarker'](_0x54301b),_0x2e70d1=!0x0;else{if(!_0x321487||!_0x321487['isInContent'])continue;if(_0x52e34f['newRange']&&_0x52e34f['oldRange']&&_0x52e34f['newRange']['isEqual'](_0x52e34f['oldRange']))continue;_0x3fc053['add'](_0x321487);}}}return _0x3fc053['size']>0x0&&(_0x2e70d1=!!this['_joinWithAdjacentSuggestions'](_0x3fc053)||_0x2e70d1),_0x2e70d1;}),_0x1b84f8['model']['document']['registerPostFixer'](_0x23979f=>{let _0x4678c6=!0x1;for(const _0x2e0fb8 of _0x1b84f8['model']['document']['differ']['getChanges']())if('insert'==_0x2e0fb8['type'])for(const _0x121e5f of this['_suggestions']['values']()){if(_0x121e5f['isMultiRange']||!_0x121e5f['isInContent'])continue;const _0x1e4462='formatBlock'==_0x121e5f['type'],_0x1aff41=this['_getAttributeKey'](_0x121e5f),_0x368bb0=_0x1aff41&&this['_suggestionsConversion']['isBlockAttribute'](_0x1aff41);if(!_0x1e4462&&!_0x368bb0)continue;const _0x5b9bd9=_0x121e5f['getFirstRange']();if(_0x5b9bd9['start']['parent']!=_0x5b9bd9['end']['parent']&&!_0x5b9bd9['end']['isAtEnd']){const _0x2f4039=_0x1b84f8['model']['createPositionAt'](_0x5b9bd9['start']['nodeAfter'],'end'),_0x87c6b3=_0x1b84f8['model']['createRange'](_0x5b9bd9['start'],_0x2f4039);_0x23979f['updateMarker'](_0x121e5f['getFirstMarker'](),{'range':_0x87c6b3}),_0x4678c6=!0x0;}}return _0x4678c6;}),_0x1b84f8['model']['document']['registerPostFixer'](_0x16c969=>this['_processAttributeChanges'](_0x16c969)),_0x1b84f8['model']['document']['registerPostFixer'](_0x3b7597=>!_0x3b7597['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b7597)),_0x1b84f8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b84f8['model']['document']['on']('change:data',(_0x24af8f,_0x14597c)=>{if(!_0x14597c['isLocal']||_0x14597c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3957fc=_0x1b84f8['model']['document']['differ']['getChanges']();if(0x0==_0x3957fc['length'])return;const _0x4bf9a6=[],_0x752b1e=_0x3957fc['filter'](_0x49dbb9=>'attribute'==_0x49dbb9['type']),_0x443823=_0x3957fc['filter'](_0x7c3e00=>'insert'==_0x7c3e00['type']&&'$text'!=_0x7c3e00['name']);for(const _0xf0e9d1 of _0x752b1e)this['_suggestionsConversion']['isRegisteredAttribute'](_0xf0e9d1['attributeKey'])&&_0x4bf9a6['push']({'key':_0xf0e9d1['attributeKey'],'newValue':_0xf0e9d1['attributeNewValue'],'oldValue':_0xf0e9d1['attributeOldValue'],'range':hn(_0xf0e9d1['range'],_0x1b84f8['model'])});for(const _0x431638 of _0x443823){if('rename'!=_0x431638['action']&&'refresh'!=_0x431638['action'])continue;const _0x1a42a4=gn(_0x431638['position']['nodeAfter'],_0x1b84f8['model']),_0x5dcccb=_0x431638['before'];'rename'==_0x431638['action']&&_0x4bf9a6['push']({'key':en,'newValue':_0x431638['name'],'oldValue':_0x5dcccb['name'],'range':_0x1a42a4});for(const [_0x3702d0,_0x575ecf]of _0x5dcccb['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3702d0))continue;const _0x4ae1a1=_0x431638['attributes']['get'](_0x3702d0);_0x575ecf!==_0x4ae1a1&&_0x4bf9a6['push']({'key':_0x3702d0,'newValue':_0x4ae1a1,'oldValue':_0x575ecf,'range':_0x1a42a4});}for(const [_0x23b1f1,_0x1d3ecd]of _0x431638['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x23b1f1)&&(_0x5dcccb['attributes']['has'](_0x23b1f1)||_0x4bf9a6['push']({'key':_0x23b1f1,'newValue':_0x1d3ecd,'oldValue':null,'range':_0x1a42a4}));}0x0!=_0x4bf9a6['length']&&_0x1b84f8['model']['enqueueChange'](_0x14597c,_0x2952a5=>{const _0x2ab681=_0x1f4b16();for(const {range:_0x42e73a,key:_0xd400d0,oldValue:_0x2c4878,newValue:_0x3fe320}of _0x4bf9a6)this['markAttributeChange'](_0x42e73a,_0xd400d0,_0x2c4878,_0x3fe320,{'groupId':_0x2ab681});this['_reduceExistingSuggestions'](_0x2952a5,_0x4bf9a6);});},{'priority':'lowest'}),_0x1b84f8['model']['markers']['on']('update:suggestion',(_0x4e58cc,_0x2f0f14,_0x45a81e)=>{if(null==_0x45a81e){const {id:_0x1b0c0a}=tt(_0x2f0f14['name']),_0x330001=this['_suggestions']['get'](_0x1b0c0a);_0x330001&&_0x330001['addMarkerName'](_0x2f0f14['name']);}}),_0x1b84f8['model']['document']['on']('change:data',()=>{const _0x69a6cd=Array['from'](_0x1b84f8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ade55=>'suggestion'===tt(_0x2ade55['name'])['group']);if(0x0===_0x69a6cd['length'])return;_0x69a6cd['sort']((_0x17ccfe,_0x260e80)=>{const _0x1b9103=_0x17ccfe['data']['oldRange'],_0x4dc6b4=_0x260e80['data']['oldRange'];return null===_0x1b9103&&null===_0x4dc6b4?0x0:null===_0x1b9103&&null!==_0x4dc6b4?-0x1:null!==_0x1b9103&&null===_0x4dc6b4?0x1:_0x1b9103['start']['isBefore'](_0x4dc6b4['start'])?-0x1:0x1;});const _0x169a8c=new Set(),_0x8602b2=new Set();for(const {name:_0x3959cb,data:_0x3f296f}of _0x69a6cd){const {id:_0x3533c1}=tt(_0x3959cb);if(null===_0x3f296f['oldRange']){const _0x51e373=this['_handleNewSuggestionMarker'](_0x3959cb);_0x8602b2['add'](_0x51e373);}else{const _0x557356=this['_suggestions']['get'](_0x3533c1);null!==_0x3f296f['newRange']||_0x557356['isInContent']?(_0x169a8c['add'](_0x557356['head']),_0x8602b2['add'](_0x557356)):this['_removeSuggestion'](_0x557356);}}_0x8602b2['size']>0x0&&this['_refreshSuggestionsChain'](_0x8602b2);for(const _0x1ad9b8 of _0x169a8c)this['fire']('suggestionChanged',_0x1ad9b8);}),_0x1b84f8['model']['on']('applyOperation',(_0x24dcdd,_0x5ed31a)=>{const _0x3a36f7=_0x5ed31a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3a36f7['isDocumentOperation'])return;if(_0x3a36f7['batch']['isUndo']||!_0x3a36f7['batch']['isLocal'])return;let _0x78a68c,_0x18636f;switch(_0x3a36f7['type']){case'insert':_0x78a68c=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['position']),_0x18636f=_0x78a68c['getShiftedBy'](_0x3a36f7['howMany']);break;case'split':_0x78a68c=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['splitPosition']),_0x18636f=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['moveTargetPosition']);break;case'move':_0x78a68c=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['targetPosition']),_0x18636f=_0x78a68c['getShiftedBy'](_0x3a36f7['howMany']);break;default:return;}const _0x2acd32=_0x1b84f8['model']['createRange'](_0x78a68c,_0x18636f);_0x1b84f8['model']['change'](()=>{for(const {suggestion:_0x12e9cb,meta:_0x2c24e1}of this['_findSuggestions'](_0x2acd32)){if(_0x12e9cb['isMultiRange'])continue;if('formatInline'==_0x12e9cb['type'])continue;const _0x4d3d4c=this['_getAttributeKey'](_0x12e9cb);if(_0x4d3d4c&&this['_suggestionsConversion']['isBlockAttribute'](_0x4d3d4c)&&'split'!=_0x3a36f7['type'])continue;const _0x2b1ea8=_0x12e9cb['data']&&_0x12e9cb['data']['multipleBlocks'];('formatBlock'!=_0x12e9cb['type']||'split'==_0x3a36f7['type']&&!_0x2b1ea8)&&(_0x2c24e1['containsRangeInObject']||'insertion'==_0x12e9cb['type']&&_0x2c24e1['isOwn']||_0x12e9cb['getFirstRange']()['containsRange'](_0x2acd32)&&this['_breakSuggestionMarker'](_0x12e9cb,_0x78a68c,_0x18636f));}});},{'priority':'lowest'}),_0x1b84f8['model']['on']('deleteContent',(_0x87e234,_0x220c0e)=>{const _0x5bc503=_0x220c0e[0x0],_0x3a6801=_0x220c0e[0x1];if(_0x3a6801&&_0x3a6801['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5bc503['isCollapsed'])return;const _0x547475=_0x1b84f8['model']['schema'],{start:_0x47b55b,end:_0x4800f1}=_0x5bc503['getFirstRange'](),_0x1f0939=_0x47b55b['nodeAfter']&&_0x547475['isLimit'](_0x47b55b['nodeAfter'])?null:_0x547475['getNearestSelectionRange'](_0x47b55b,'forward'),_0x501221=_0x4800f1['nodeBefore']&&_0x547475['isLimit'](_0x4800f1['nodeBefore'])?null:_0x547475['getNearestSelectionRange'](_0x4800f1,'backward'),_0x15f8ca=_0x1b84f8['model']['createRange'](_0x1f0939?_0x1f0939['start']:_0x47b55b,_0x501221?_0x501221['end']:_0x4800f1);_0x1b84f8['model']['change'](_0x35c060=>{this['markDeletion'](_0x15f8ca);const _0xd60e1d=_0x1b84f8['model']['schema']['getNearestSelectionRange'](_0x15f8ca['start']);_0x5bc503['is']('documentSelection')?_0x35c060['setSelection'](_0xd60e1d):_0x5bc503['setTo'](_0xd60e1d);}),_0x87e234['stop']();},{'priority':_0x1cf13d['normal']+0xa}),_0x1b84f8['model']['on']('insertContent',(_0x8f1e3c,_0x4f95bc)=>{const _0x40854d=_0x4f95bc[_0x4f95bc['length']-0x1];_0x40854d&&_0x40854d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b84f8['model']['change'](()=>{let _0x49edb9=_0x1b84f8['model']['insertContent'](_0x4f95bc[0x0],_0x4f95bc[0x1],_0x4f95bc[0x2],{'forceDefaultExecution':!0x0});if(!_0x49edb9)return;_0x8f1e3c['return']=_0x49edb9['clone']();const _0x2bed1a=_0x49edb9['end']['nodeBefore'],_0x3d6f3f=_0x1b84f8['model']['schema'];_0x2bed1a&&_0x3d6f3f['isBlock'](_0x2bed1a)&&!_0x3d6f3f['isObject'](_0x2bed1a)&&(_0x49edb9=_0x1b84f8['model']['createRange'](_0x49edb9['start'],_0x1b84f8['model']['createPositionAt'](_0x2bed1a,'end'))),this['markInsertion'](_0x49edb9);}),_0x8f1e3c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2a832c=new Tt(_0x1b84f8,this['_suggestions']);_0x1b84f8['commands']['add']('acceptSuggestion',_0x2a832c),this['enableCommand']('acceptSuggestion');const _0xd7ebb6=new _t(_0x1b84f8,this['_suggestions']);_0x1b84f8['commands']['add']('discardSuggestion',_0xd7ebb6),this['enableCommand']('discardSuggestion'),_0x1b84f8['commands']['add']('acceptAllSuggestions',new Ct(_0x1b84f8,_0x2a832c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b84f8['commands']['add']('discardAllSuggestions',new Ct(_0x1b84f8,_0xd7ebb6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b84f8['commands']['add']('acceptSelectedSuggestions',new Rt(_0x1b84f8,_0x2a832c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b84f8['commands']['add']('discardSelectedSuggestions',new Rt(_0x1b84f8,_0xd7ebb6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xddeab5=_0x1b84f8['plugins']['get'](_0x15ba36);this['listenTo'](_0xddeab5,'addComment',(_0x1574af,{threadId:_0x5421fd})=>{const _0x4e1e4d=this['_suggestions']['get'](_0x5421fd);_0x4e1e4d&&_0x4e1e4d['commentThread']&&0x1===_0x4e1e4d['commentThread']['length']&&this['_updateSuggestionData'](_0x5421fd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xddeab5,'removeComment',(_0x1e6d70,{threadId:_0x459368})=>{const _0x103067=this['_suggestions']['get'](_0x459368);_0x103067&&_0x103067['commentThread']&&!_0x103067['commentThread']['length']&&this['_updateSuggestionData'](_0x459368,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x35f6e0){const _0x4126b2='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x1ec3d4=0x78fc0,_0x10133a=window['Date']['now'](),_0x20216d=_0x35f6e0['editor'],_0x2d5ac2=new window['Promise'](_0x5c0b47=>{_0x20216d['once']('ready',_0x5c0b47);}),_0x4006ba={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2d117a=_0x20216d['config']['get']('licenseKey');async function _0x300660(){let _0x5eb82a,_0x14f6ed=null,_0x23ab75=null;try{return'GPL'==_0x2d117a?'NotAllowed':(_0x5eb82a=_0x5a9ac3(),_0x5eb82a?(_0x5eb82a['usageEndpoint']&&(_0x23ab75=_0x1db2dd(_0x5eb82a['usageEndpoint'],_0x5eb82a['jti'])),await _0x3fdb36()?_0x8947ce()?_0x375c09()?'Expired':_0x71d672()?('evaluation'==_0x5eb82a['licenseType']&&(_0x14f6ed=_0x480019('EvaluationLimit')),await _0x5387ec()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x375c09(){const _0x140e9e=['evaluation','trial']['includes'](_0x5eb82a['licenseType'])?_0x10133a/0x3e8:0xe10*_0x1ec3d4;return _0x5eb82a['exp']<_0x140e9e;}function _0x8947ce(){const _0x303313=_0x5eb82a['features'];if(!_0x303313)return!0x1;if(_0x303313['includes']('*'))return!0x0;if(_0x303313['includes']('TC'))return!0x0;if(_0x303313['includes']('RTC')){if(_0x192acb())return!0x0;if(_0x3c397a()||_0x450a9a())return!0x0;}return!0x1;}function _0x71d672(){const _0x3d645b=_0x5eb82a['licensedHosts'];if(!_0x3d645b||0x0==_0x3d645b['length'])return!0x0;const {hostname:_0xe1ffc9}=new URL(window['location']['href']);if(_0x3d645b['includes'](_0xe1ffc9))return!0x0;const _0x228e3d=_0xe1ffc9['split']('.');return _0x3d645b['filter'](_0x1749d3=>_0x1749d3['includes']('*'))['map'](_0x322407=>_0x322407['split']('.'))['filter'](_0x1a3e0c=>_0x1a3e0c['length']<=_0x228e3d['length'])['map'](_0x3acf4c=>Array(_0x228e3d['length']-_0x3acf4c['length'])['fill']('*'===_0x3acf4c[0x0]?'*':'')['concat'](_0x3acf4c))['some'](_0x292e3c=>_0x228e3d['every']((_0x1c66d1,_0x30d601)=>_0x292e3c[_0x30d601]===_0x1c66d1||'*'===_0x292e3c[_0x30d601]));}function _0x5387ec(){return _0x14f6ed&&_0x23ab75?new window['Promise']((_0x265be9,_0x219754)=>{_0x14f6ed['then'](_0x265be9,_0x219754),_0x23ab75['then'](_0x595e0f=>{'Valid'!=_0x595e0f&&_0x265be9(_0x595e0f);},_0x219754);}):_0x14f6ed||_0x23ab75||'Valid';}}function _0x1db2dd(_0x1e1b66,_0x3d8d4e){return new window['Promise'](_0x3b62a4=>{if(_0x26ce2b())return _0x3b62a4('Valid');_0x547cfa(),_0x20216d['decorate']('_sendUsageRequest');let _0x2f0116=!0x1;const _0x485232=_0x1f4b16();function _0x8f502c(_0x31776b){return!!_0x31776b&&('object'==typeof _0x31776b||'function'==typeof _0x31776b)&&'function'==typeof _0x31776b['then']&&'function'==typeof _0x31776b['catch'];}function _0x63813b(_0x2d571d){_0x2f3878(_0x2d571d)['then'](_0x58f263=>_0x58f263&&'ok'==_0x58f263['status']?_0xb8dff6(_0x185d48(_0x485232+_0x3d8d4e))!=_0x58f263['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3b02b3=>(_0x321397(),_0x3b02b3),()=>{const _0xa39bc8=_0x321253();return null==_0xa39bc8?(_0x321397(),'Valid'):_0x10133a-_0xa39bc8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3b62a4)['catch'](()=>{_0x3b62a4('UsageLimit');});const _0x294f2c=0x36ee80;function _0x321397(){const _0xb0f476='llct-'+_0xb8dff6(_0x185d48(_0x1e1b66)),_0x5659a5=_0x1d0bc2(_0xb8dff6(window['Math']['ceil'](_0x10133a/_0x294f2c)));window['localStorage']['setItem'](_0xb0f476,_0x5659a5);}function _0x321253(){const _0xf5e5a7='llct-'+_0xb8dff6(_0x185d48(_0x1e1b66)),_0x582a79=window['localStorage']['getItem'](_0xf5e5a7);return _0x582a79?window['parseInt'](_0x1d0bc2(_0x582a79),0x10)*_0x294f2c:null;}function _0x2f3878(_0x1ab18e){return new window['Promise']((_0x18b101,_0x2cd26a)=>{_0x1ab18e['then'](_0x18b101,_0x2cd26a),window['setTimeout'](_0x2cd26a,0x1d4c0);});}}_0x20216d['on']('_sendUsageRequest',(_0xbd941d,_0xcc3374)=>{if(_0xcc3374[0x0]!=_0x1e1b66)return _0x3b62a4('UsageLimit');_0xcc3374[0x1]={..._0xcc3374[0x1],'requestId':_0x485232};},{'priority':'high'}),_0x20216d['on']('_sendUsageRequest',_0x2ff7a5=>{_0x8f502c(_0x2ff7a5['return'])&&(_0x2f0116=!0x0,_0x63813b(_0x2ff7a5['return']));},{'priority':'low'}),_0x2d5ac2['then'](()=>{_0x2f0116||_0x3b62a4('UsageLimit');});});function _0x26ce2b(){return'auto'==_0x20216d['editing']['view']['_overlayModeHint'];}function _0x547cfa(){_0x20216d['editing']['view']['_overlayModeHint']='auto';}}function _0x480019(_0xdf477){const _0x4f6365=[new window['Promise'](_0x32ab60=>setTimeout(_0x32ab60,0x93ecc)),_0x2d5ac2['then'](()=>new window['Promise'](_0x58b562=>{let _0x57d9e2=0x0;_0x20216d['model']['on']('applyOperation',(_0x58013b,_0x5888e4)=>{_0x5888e4[0x0]['isDocumentOperation']&&_0x57d9e2++,0x5e8==_0x57d9e2&&(_0x58b562(),_0x58013b['off']());});}))];return window['Promise']['race'](_0x4f6365)['then'](()=>_0xdf477);}async function _0x4f3e6d(){await _0x2d5ac2,_0x20216d['model']['change']=_0x181d65,_0x20216d['model']['enqueueChange']=_0x181d65,_0x20216d['enableReadOnlyMode']('model');}function _0x192acb(){return _0xe8a4ac('WebSocketGateway')&&'connected'==_0x11e1de('WebSocketGateway')['state'];}function _0x3c397a(){return _0xe8a4ac('RevisionViewerIntegration');}function _0x450a9a(){return _0xe8a4ac('TrackChangesDataGetter');}function _0xfcc595(_0x47f3db){const _0x427e40=_0x15e25b();_0x20216d[_0x427e40]='trackChangesLicenseKey'+_0x47f3db,'Valid'!=_0x47f3db&&_0x4f3e6d();}function _0x15e25b(){const _0x17e093=window['String'](window['performance']['now']())['replace']('.','');let _0x57caa1='R';for(let _0x15f312=0x0;_0x15f312<_0x17e093['length'];_0x15f312+=0x2){let _0xf3d898=window['parseInt'](_0x17e093['substring'](_0x15f312,_0x15f312+0x2));_0xf3d898>=0x3e&&(_0xf3d898-=0x3e),_0x57caa1+=_0x4126b2[_0xf3d898];}return _0x57caa1;}function _0x5a9ac3(){const _0x58c02f=_0x2d117a['split']('.');if(0x3!=_0x58c02f['length'])return null;return _0x3e6fbc(_0x58c02f[0x1]);function _0x3e6fbc(_0x17a264){const _0x8292bb=_0x29134c(_0x17a264);return _0x8292bb&&_0x42e52()?_0x8292bb:null;function _0x42e52(){const _0x3df787=_0x8292bb['jti'],_0x260fa8=window['parseInt'](_0x3df787['substring'](_0x3df787['length']-0x8),0x10),_0x8013b5={..._0x8292bb,'jti':_0x3df787['substring'](0x0,_0x3df787['length']-0x8)};return delete _0x8013b5['vc'],_0x185d48(_0x8013b5)==_0x260fa8;}}}async function _0x3fdb36(){let _0x58ae5e=!0x0;try{const [_0x42ca50,_0x5c79e5,_0x23ceeb]=_0x2d117a['split']('.');return _0x452f64(_0x42ca50),await _0x582b89(_0x42ca50,_0x5c79e5,_0x23ceeb),_0x58ae5e;}catch{return!0x1;}function _0x452f64(_0xa326c0){const _0x482ec5=_0x29134c(_0xa326c0);_0x482ec5&&'ES256'==_0x482ec5['alg']||(_0x58ae5e=!0x1);}async function _0x582b89(_0x14c83c,_0x287acc,_0x12dd95){const _0x5146b7=window['Uint8Array']['from'](_0xe94d5e(_0x12dd95),_0x244a32=>_0x244a32['charCodeAt'](0x0)),_0x2a8fff=new window['TextEncoder']()['encode'](_0x14c83c+'.'+_0x287acc),_0x4bc9e6=window['crypto']['subtle'];if(!_0x4bc9e6)return;const _0x20468e=await _0x4bc9e6['importKey']('jwk',_0x4006ba,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4bc9e6['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x20468e,_0x5146b7,_0x2a8fff)||(_0x58ae5e=!0x1);}}function _0x29134c(_0x41629a){return _0x41629a['startsWith']('ey')?JSON['parse'](_0xe94d5e(_0x41629a)):null;}function _0xe94d5e(_0x1a4856){return window['atob'](_0x1a4856['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x185d48(_0x5078c3){let _0x5d5611=0x1505;function _0x338070(_0x159707){for(let _0x4cd7b5=0x0;_0x4cd7b5<_0x159707['length'];_0x4cd7b5++){const _0x15390b=_0x159707['charCodeAt'](_0x4cd7b5);_0x5d5611=(_0x5d5611<<0x5)+_0x5d5611+_0x15390b,_0x5d5611&=_0x5d5611;}}function _0x328aa9(_0x4eb78e){Array['isArray'](_0x4eb78e)?_0x4eb78e['forEach'](_0x328aa9):_0x4eb78e&&'object'==typeof _0x4eb78e?Object['entries'](_0x4eb78e)['sort']()['forEach'](([_0x161844,_0x38c05b])=>{_0x338070(_0x161844),_0x328aa9(_0x38c05b);}):_0x338070(window['String'](_0x4eb78e));}return _0x328aa9(_0x5078c3),_0x5d5611>>>0x0;}function _0xb8dff6(_0x64b371){return _0x64b371['toString'](0x10)['padStart'](0x8,'0');}function _0x1d0bc2(_0x49a594){return _0x49a594['split']('')['reverse']()['join']('');}function _0xe8a4ac(_0x5c8f7b){return _0x20216d['plugins']['has'](_0x5c8f7b);}function _0x11e1de(_0x3cdbe6){return _0x20216d['plugins']['get'](_0x3cdbe6);}function _0x181d65(){}_0xfcc595(await _0x300660());}(this);}set['adapter'](_0x1994e4){if(this['_adapter'])throw new _0x5748df('track-changes-adapter-already-set',this);this['_adapter']=_0x1994e4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x502176=!0x1,toJSON:_0x3a6ff0=!0x1}={}){const _0x35461d=[];for(const _0x5a955d of this['_suggestions']['values']())_0x502176&&!_0x5a955d['isInContent']||_0x35461d['push'](_0x5a955d);return _0x3a6ff0?_0x35461d['map'](_0x571f59=>_0x571f59['toJSON']()):_0x35461d;}['getSuggestion'](_0x3109cd){const _0x4b8908=this['_suggestions']['get'](_0x3109cd);if(!_0x4b8908)throw new _0x5748df('track-changes-suggestion-not-found',this);return _0x4b8908;}['hasSuggestion'](_0x8e1e6a){return this['_suggestions']['has'](_0x8e1e6a);}['addSuggestionData'](_0x46ecb4){const {authorId:_0x3e96ea,id:_0x5e7db0,originalSuggestionId:_0x2f4deb,attributes:_0x5d9be6}=_0x46ecb4,[_0x29cb0a,_0x697f9e]=_0x46ecb4['type']['split'](':'),_0x50a9b1=this['_suggestions']['get'](_0x5e7db0)||this['_createSuggestion'](_0x29cb0a,_0x697f9e,_0x5e7db0,_0x3e96ea,_0x5d9be6,_0x2f4deb);if(this['_addThreadToSuggestion'](_0x50a9b1),this['_checkSuggestionCorrectness'](_0x50a9b1,_0x29cb0a,_0x697f9e||null,_0x3e96ea),_0x50a9b1['createdAt']=_0x46ecb4['createdAt'],_0x50a9b1['_isDataLoaded']=!0x0,_0x5d9be6&&_0x5d9be6['@external']){const _0x37cfa9=_0x5d9be6['@external'],_0x367ecf=this['_getExternalAuthor'](_0x37cfa9['authorName']);_0x50a9b1['authoredAt']=_0x37cfa9['createdAt'],_0x50a9b1['author']=_0x367ecf;}else _0x50a9b1['authoredAt']=_0x46ecb4['createdAt'];switch(_0x46ecb4['data']&&(_0x50a9b1['data']=_0x46ecb4['data']),_0x46ecb4['attributes']&&(_0x50a9b1['attributes']=_0x46ecb4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x50a9b1['_saved']=!0x0),this['_suggestionState']['get'](_0x50a9b1)){case'notReady':this['_suggestionState']['set'](_0x50a9b1,'dataReady');break;case'markerReady':_0x50a9b1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x50a9b1])),this['_refreshSuggestionsChain'](new Set([_0x50a9b1])),this['_suggestionState']['set'](_0x50a9b1,'ready'),this['fire']('suggestionLoaded',_0x50a9b1)):this['_suggestionState']['set'](_0x50a9b1,'removed');}return _0x50a9b1;}['acceptSuggestion'](_0x31f2e2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a7d6d of _0x31f2e2['getAllAdjacentSuggestions']())_0x3a7d6d['accept']();});});}['discardSuggestion'](_0x55c92e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1318ba of _0x55c92e['getAllAdjacentSuggestions']())_0x1318ba['discard']();});});}['enableCommand'](_0x242804,_0x259e64){const _0x33d203=this['editor']['commands']['get'](_0x242804);if(!_0x33d203)throw new _0x5748df('track-changes-command-not-found',this,{'commandName':_0x242804});if(this['_enabledCommands']['has'](_0x33d203))throw new _0x5748df('track-changes-enable-command-twice',this,{'commandName':_0x242804});this['_enabledCommands']['add'](_0x33d203),_0x259e64&&_0x33d203['on']('execute',(_0x2925e5,_0x1ab9fe)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ab9fe['length']>0x0&&_0x1ab9fe[_0x1ab9fe['length']-0x1]&&_0x1ab9fe[_0x1ab9fe['length']-0x1]['forceDefaultExecution']?_0x1ab9fe['pop']():(_0x2925e5['return']=_0x259e64((..._0xf7cbef)=>_0x33d203['execute'](..._0xf7cbef,{'forceDefaultExecution':!0x0}),..._0x1ab9fe),_0x2925e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3a0b41){let _0x11e228,_0x56da38;const _0x5bfb16=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x11e228=_0x3a0b41();}catch(_0x8b35b2){_0x56da38=_0x8b35b2;}return _0x5bfb16||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x56da38&&_0x5748df['rethrowUnexpectedError'](_0x56da38,this),_0x11e228;}['markInsertion'](_0x1756b3,_0x52e4cf=null,_0x58fe4c={}){if(_0x1756b3['isCollapsed'])return null;const _0x112a7e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x58fe4c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x502355,meta:_0x580c28}of this['_findSuggestions'](_0x1756b3,'insertion'))if(_0x580c28['isOwn']){if(!_0x580c28['isNextTo']){if(_0x580c28['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x502355,_0x58fe4c))continue;return _0x502355;}if(En(_0x502355,_0x58fe4c))return _0x502355;this['_breakSuggestionMarker'](_0x502355,_0x1756b3['start'],_0x1756b3['end']);break;}if(_0x52e4cf==_0x502355['subType']&&En(_0x502355,_0x58fe4c)){const _0x2d37ce=_0x502355['getFirstRange']();return _0x2d37ce['start']['isEqual'](_0x1756b3['end'])?this['_setSuggestionRange'](_0x502355,this['_model']['createRange'](_0x1756b3['start'],_0x2d37ce['end'])):this['_setSuggestionRange'](_0x502355,this['_model']['createRange'](_0x2d37ce['start'],_0x1756b3['end'])),_0x502355;}}const _0x59830f=_0x1f4b16(),_0x2bb036=_0x112a7e['id'],_0x35cf6a=_0x52e4cf?'insertion:'+_0x52e4cf:'insertion',_0x5de4a6=this['_setSuggestionData']({'id':_0x59830f,'type':_0x35cf6a,'createdAt':new Date(),'authorId':_0x2bb036,'attributes':_0x58fe4c});return this['_addSuggestionMarker'](_0x35cf6a,_0x59830f,_0x2bb036,_0x1756b3),_0x5de4a6;}['markMultiRangeInsertion'](_0x1a770a,_0x372e52='multi',_0x3f68c2={}){const _0x66dd59=this['editor']['plugins']['get']('Users')['me'],_0x1bb2c5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x372e52,'join');this['_trackingSessionId']&&(_0x3f68c2['trackingSessionId']=this['_trackingSessionId']);for(const _0x506c8e of this['getSuggestions']())if(_0x506c8e['author']['id']==_0x66dd59['id']&&'insertion'==_0x506c8e['type']&&_0x506c8e['subType']==_0x372e52&&En(_0x506c8e,_0x3f68c2)&&(_0x1bb2c5(_0x506c8e['getRanges'](),_0x1a770a)||_0x1bb2c5(_0x1a770a,_0x506c8e['getRanges']()))){for(const _0xbad5e1 of _0x1a770a)_0x506c8e['addRange'](_0xbad5e1);return _0x506c8e;}for(const {suggestion:_0x334b68,meta:_0x4cf585}of this['_findSuggestions'](_0x1a770a,'insertion')){if(!_0x4cf585['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4cf585['containsRangeInObject'])continue;if(!En(_0x334b68,_0x3f68c2))continue;let _0x4e7b4e=!0x0;for(const _0x32576e of _0x334b68['getRanges']())for(const _0x11f67d of _0x1a770a)if(!_0x32576e['containsRange'](_0x11f67d)){_0x4e7b4e=!0x1;break;}if(_0x4e7b4e)return _0x334b68;}const _0x378909=_0x1f4b16(),_0x5c1a7f=_0x66dd59['id'],_0x421a0b='insertion:'+_0x372e52,_0x5e0f03=this['_setSuggestionData']({'id':_0x378909,'type':_0x421a0b,'createdAt':new Date(),'authorId':_0x5c1a7f,'attributes':_0x3f68c2});for(const _0xe17e0c of _0x1a770a)this['_addSuggestionMarker'](_0x421a0b,_0x378909,_0x5c1a7f,_0xe17e0c,yt['getMultiRangeId']());return _0x5e0f03;}['markInlineFormat'](_0x11cc9d,_0x3232c2,_0x243769=null,_0x598143={}){if(_0x243769=_0x243769||cn(_0x3232c2),_0x11cc9d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x598143['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4b244f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x243769,'accept');return this['forceDefaultExecution'](()=>_0x4b244f([_0x11cc9d],_0x3232c2,_0x598143)),null;}const _0x503576=this['editor']['plugins']['get']('Users')['me'],_0x18d9c3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35a7c0,meta:_0x2637ab}of this['_findSuggestions'](_0x11cc9d,'insertion'))_0x2637ab['isOwn']&&!_0x2637ab['isInsideObject']&&_0x18d9c3['push'](..._0x35a7c0['getRanges']());}const _0x235866=function(_0xf41284,_0x160087){const _0xaceae8=[];for(const _0x2215da of _0x160087){const _0x299791=_0xf41284['getIntersection'](_0x2215da);_0x299791&&_0xaceae8['push'](_0x299791);}return _0xaceae8;}(_0x11cc9d,_0x18d9c3),_0x3bb596=function(_0x492298,_0x26dffa){const _0x1d4675=[_0x492298];for(const _0x33e5a1 of _0x26dffa){let _0x5c746e=0x0;for(;_0x5c746e<_0x1d4675['length'];){const _0x2e5a45=_0x1d4675[_0x5c746e]['getDifference'](_0x33e5a1);_0x1d4675['splice'](_0x5c746e,0x1,..._0x2e5a45),_0x5c746e+=_0x2e5a45['length'];}}return _0x1d4675;}(_0x11cc9d,_0x18d9c3);_0x235866['length']&&this['_model']['change'](()=>{for(const _0x52b38b of _0x235866){const _0x1e05f7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x243769,'accept');this['forceDefaultExecution'](()=>_0x1e05f7([_0x52b38b],_0x3232c2,_0x598143));}});for(const _0x5063cc of _0x3bb596){let _0x5deb56=null,_0x5df885=_0x5063cc['start'],_0x324c9f=_0x5063cc['end'];for(const {suggestion:_0x1cf508,meta:_0x5ee3c2}of this['_findSuggestions'](_0x5063cc,'formatInline')){if(!_0x5ee3c2['isOwn'])continue;if(_0x1cf508['subType']!=_0x243769)continue;if(!En(_0x1cf508,_0x598143))continue;const _0x4d861a=_0x1cf508['getFirstRange']();if(_0x4d861a['containsRange'](_0x5063cc,!0x0))return null;_0x5df885=_0x5df885['isBefore'](_0x4d861a['start'])?_0x5df885:_0x4d861a['start'],_0x324c9f=_0x324c9f['isAfter'](_0x4d861a['end'])?_0x324c9f:_0x4d861a['end'],_0x5deb56?_0x4d861a['start']['isBefore'](_0x5deb56['getFirstRange']()['start'])?(_0x5deb56['removeMarkers'](),_0x5deb56=_0x1cf508):_0x1cf508['removeMarkers']():_0x5deb56=_0x1cf508;}const _0x1b360a=this['_model']['createRange'](_0x5df885,_0x324c9f);if(_0x5deb56)this['_setSuggestionRange'](_0x5deb56,_0x1b360a);else{const _0x2fb883=_0x1f4b16(),_0x60b08a=_0x503576['id'];this['_setSuggestionData']({'id':_0x2fb883,'type':'formatInline:'+_0x243769,'data':_0x3232c2,'createdAt':new Date(),'authorId':_0x60b08a,'attributes':_0x598143}),this['_addSuggestionMarker']('formatInline:'+_0x243769,_0x2fb883,_0x60b08a,_0x1b360a);}}return null;}['markBlockFormat'](_0x131d80,_0x4bd01e,_0x4f91e1=[],_0x5bc8a2=null,_0x1cc538={}){_0x4bd01e['formatGroupId']||(_0x4bd01e['formatGroupId']=_0x4bd01e['commandName']),_0x4bd01e['multipleBlocks']=_0x131d80['is']('range'),_0x5bc8a2=_0x5bc8a2||cn(_0x4bd01e);const _0x4eda53=_0x4f91e1['map'](_0x2938a4=>gn(_0x2938a4,this['_model'])),_0x312692=_0x131d80['is']('range')?_0x131d80:gn(_0x131d80,this['_model']);if(this['_trackingSessionId']&&(_0x1cc538['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3735b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bc8a2,'accept');return this['forceDefaultExecution'](()=>_0x3735b8([_0x312692],_0x4bd01e,_0x1cc538)),null;}_0x4eda53['push'](_0x312692);let _0x5e99f3=!0x0;for(const _0x7c4aac of _0x4eda53)if(!this['_rangeIsInLocalUserInsertion'](_0x7c4aac)){_0x5e99f3=!0x1;break;}if(_0x5e99f3&&'always'!==this['_trackFormatChanges']){const _0x1bdbe0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bc8a2,'accept');return this['forceDefaultExecution'](()=>_0x1bdbe0([_0x312692],_0x4bd01e,_0x1cc538)),null;}let _0x45760f=null,_0x912eca=_0x312692['start'],_0x425cfa=_0x312692['end'];for(const {suggestion:_0x5c1349,meta:_0x346393}of this['_findSuggestions'](_0x312692,'formatBlock')){if(!_0x346393['isOwn'])continue;if(_0x346393['isNextTo']||_0x346393['containsRangeInObject']||_0x346393['isInsideObject'])continue;if(_0x5c1349['data']['formatGroupId']!=_0x4bd01e['formatGroupId'])continue;if(!En(_0x5c1349,_0x1cc538))continue;const _0x2298b=_0x5c1349['getFirstRange']();if(_0x5c1349['subType']==_0x5bc8a2){if(_0x2298b['containsRange'](_0x312692,!0x0))return null;_0x912eca=_0x912eca['isBefore'](_0x2298b['start'])?_0x912eca:_0x2298b['start'],_0x425cfa=_0x425cfa['isAfter'](_0x2298b['end'])?_0x425cfa:_0x2298b['end'],_0x45760f?_0x2298b['start']['isBefore'](_0x45760f['getFirstRange']()['start'])?(_0x45760f['removeMarkers'](),_0x45760f=_0x5c1349):_0x5c1349['removeMarkers']():_0x45760f=_0x5c1349;}else{const _0xb492e8=_0x312692['getIntersection'](_0x2298b);this['_cutOutSuggestionMarker'](_0x5c1349,_0xb492e8);}}const _0x531748=this['editor']['plugins']['get']('Users')['me'],_0x45f611=_0x1f4b16(),_0x1ef778=_0x531748['id'];if(_0x45760f)return this['_setSuggestionRange'](_0x45760f,this['_model']['createRange'](_0x912eca,_0x425cfa)),_0x45760f;{const _0x249e8c=this['_setSuggestionData']({'id':_0x45f611,'type':'formatBlock:'+_0x5bc8a2,'data':_0x4bd01e,'createdAt':new Date(),'authorId':_0x1ef778,'attributes':_0x1cc538});return this['_addSuggestionMarker']('formatBlock:'+_0x5bc8a2,_0x45f611,_0x1ef778,this['_model']['createRange'](_0x912eca,_0x425cfa)),_0x249e8c;}}['markMultiRangeBlockFormat'](_0x1ebf17,_0x4c9eeb,_0x12df60=[],_0x321bae=null,_0x42fc38={}){_0x4c9eeb['formatGroupId']||(_0x4c9eeb['formatGroupId']=_0x4c9eeb['commandName']);const _0x6e96df=_0x1ebf17[0x0];_0x4c9eeb['multipleBlocks']=_0x6e96df['is']('range'),_0x321bae=_0x321bae||cn(_0x4c9eeb);const _0x44806a=_0x12df60['map'](_0x41e418=>gn(_0x41e418,this['_model'])),_0x5cfbef=_0x6e96df['is']('range')?_0x1ebf17:_0x1ebf17['map'](_0x6d685b=>gn(_0x6d685b,this['_model']));if(this['_trackingSessionId']&&(_0x42fc38['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d8f55=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x321bae,'accept');return this['forceDefaultExecution'](()=>_0x4d8f55(_0x5cfbef,_0x4c9eeb,_0x42fc38)),null;}_0x44806a['push'](..._0x5cfbef);let _0x309eb8=!0x0;for(const _0x1c7187 of _0x44806a)if(!this['_rangeIsInLocalUserInsertion'](_0x1c7187)){_0x309eb8=!0x1;break;}if(_0x309eb8&&'always'!==this['_trackFormatChanges']){const _0x2be1e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x321bae,'accept');return this['forceDefaultExecution'](()=>_0x2be1e7(_0x5cfbef,_0x4c9eeb,_0x42fc38)),null;}const _0xf11e20=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e1f14 of this['getSuggestions']()){const _0x125e94=_0x2e1f14['data'];if(_0x2e1f14['author']['id']!=_0xf11e20['id'])continue;if('formatBlock'!=_0x2e1f14['type']||_0x125e94['formatGroupId']!=_0x4c9eeb['formatGroupId'])continue;if(!En(_0x2e1f14,_0x42fc38))continue;const _0x1ec7e7=_0x2e1f14['subType']==_0x321bae;for(let _0x5954b6=0x0;_0x5954b6<_0x5cfbef['length'];_0x5954b6++){const _0x488d26=_0x5cfbef[_0x5954b6];for(const _0x3b54c5 of _0x2e1f14['getMarkers']()){const _0x1423f5=_0x3b54c5['getRange']();if(_0x488d26['isEqual'](_0x1423f5)){_0x1ec7e7?(_0x5cfbef['splice'](_0x5954b6,0x1),_0x5954b6--):_0x2e1f14['removeMarker'](_0x3b54c5['name']);break;}}}}if(0x0==_0x5cfbef['length'])return null;const _0x3a3d0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x321bae,'join');for(const _0x359160 of this['getSuggestions']()){const _0x1f257a=_0x359160['data'];if(_0x359160['author']['id']==_0xf11e20['id']&&('formatBlock'==_0x359160['type']&&_0x1f257a['formatGroupId']==_0x4c9eeb['formatGroupId']&&_0x359160['subType']==_0x321bae&&En(_0x359160,_0x42fc38)&&(_0x3a3d0e(_0x359160['getRanges'](),_0x5cfbef)||_0x3a3d0e(_0x5cfbef,_0x359160['getRanges']())))){for(const _0x36bc69 of _0x5cfbef)_0x359160['addRange'](_0x36bc69);return _0x359160;}}const _0x5567ac=_0x1f4b16(),_0x21af39=_0xf11e20['id'],_0x123c58='formatBlock:'+_0x321bae,_0xb00bbc=this['_setSuggestionData']({'id':_0x5567ac,'type':_0x123c58,'data':_0x4c9eeb,'createdAt':new Date(),'authorId':_0x21af39,'attributes':_0x42fc38});for(const _0x108fab of _0x5cfbef)this['_addSuggestionMarker'](_0x123c58,_0x5567ac,_0x21af39,_0x108fab,yt['getMultiRangeId']());return _0xb00bbc;}['markDeletion'](_0x3adbf8,_0x191642=null,_0x5648ec={}){if(_0x3adbf8['isCollapsed'])return null;const _0x3a824d=this['editor']['plugins']['get']('Users')['me'],_0x5aa7a0=new rt(_0x3adbf8['start'],_0x3adbf8['end']);this['_trackingSessionId']&&(_0x5648ec['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5259d3,meta:_0x166467}of this['_findSuggestions'](_0x5aa7a0,'insertion'))if(_0x166467['isOwn']&&!_0x166467['isNextTo']){if(_0x5259d3['isMultiRange']){const _0x48d48a=_0x5259d3['getRanges']()['filter'](_0x43063e=>'$graveyard'!=_0x43063e['root']['rootName']);if(_0x48d48a['every'](_0x2a9409=>_0x5aa7a0['containsRange'](_0x2a9409,!0x0))&&_0x5259d3['discard'](),_0x48d48a['some'](_0x28d39f=>_0x28d39f['containsRange'](_0x5aa7a0,!0x0))){const _0x356566=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x191642,'accept');return this['forceDefaultExecution'](()=>_0x356566([_0x5aa7a0],null,_0x5648ec)),null;}}else{const _0x162d07=_0x5aa7a0['getIntersection'](_0x5259d3['getFirstRange']());null!==_0x162d07&&_0x5259d3['_onDiscard']([_0x162d07],null,_0x5648ec);}}if(_0x5aa7a0['detach'](),_0x5aa7a0['isCollapsed']||'$graveyard'==_0x5aa7a0['root']['rootName'])return null;let _0x3bd656=null,_0x413a63=_0x5aa7a0['start'],_0x19d662=_0x5aa7a0['end'];const _0x54c69f=this['_findSuggestions'](_0x5aa7a0,'deletion');for(const {suggestion:_0x44fc95,meta:_0x30e65e}of _0x54c69f){const _0x24e6c9=this['_model']['createRange'](_0x413a63,_0x19d662);if(_0x30e65e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30e65e['containsRangeInObject']&&!_0x30e65e['isInsideObject'])){if(_0x44fc95['isMultiRange']){if(!En(_0x44fc95,_0x5648ec))continue;let _0x46d9fc=!0x0;for(const _0x5ed197 of _0x44fc95['getRanges']()){if(_0x5ed197['containsRange'](_0x24e6c9,!0x0))return _0x44fc95;_0x24e6c9['containsRange'](_0x5ed197)||(_0x46d9fc=!0x1);}_0x46d9fc&&_0x44fc95['discard']();}else{const _0x4e3a39=_0x44fc95['getFirstRange']();if(_0x4e3a39['containsRange'](_0x24e6c9,!0x0))return _0x44fc95;if(!En(_0x44fc95,_0x5648ec)){_0x24e6c9['containsRange'](_0x4e3a39)?_0x44fc95['removeMarkers']():_0x4e3a39['containsPosition'](_0x413a63)?_0x413a63=_0x4e3a39['end']:_0x4e3a39['containsPosition'](_0x19d662)&&(_0x19d662=_0x4e3a39['start']);continue;}_0x413a63=_0x413a63['isBefore'](_0x4e3a39['start'])?_0x413a63:_0x4e3a39['start'],_0x19d662=_0x19d662['isAfter'](_0x4e3a39['end'])?_0x19d662:_0x4e3a39['end'],_0x5648ec=Object['assign']({},_0x44fc95['attributes']),_0x3bd656?_0x4e3a39['start']['isBefore'](_0x3bd656['getFirstRange']()['start'])?(_0x3bd656['removeMarkers'](),_0x3bd656=_0x44fc95):_0x44fc95['removeMarkers']():_0x3bd656=_0x44fc95;}}}if(_0x3bd656)return this['_setSuggestionRange'](_0x3bd656,this['_model']['createRange'](_0x413a63,_0x19d662)),_0x3bd656;{const _0x34fab0=_0x1f4b16(),_0x17975f=this['_model']['createRange'](_0x413a63,_0x19d662),_0x202778=_0x3a824d['id'],_0x142637=_0x191642?'deletion:'+_0x191642:'deletion',_0x1eb028=this['_setSuggestionData']({'id':_0x34fab0,'type':_0x142637,'createdAt':new Date(),'authorId':_0x202778,'attributes':_0x5648ec});return this['_addSuggestionMarker'](_0x142637,_0x34fab0,_0x202778,_0x17975f),_0x1eb028;}}['markMultiRangeDeletion'](_0x4b3cb8,_0x5b1307='multi',_0x521643={}){const _0x47594a=this['editor']['plugins']['get']('Users')['me'],_0x393819=_0x4b3cb8['map'](_0x2d1090=>new rt(_0x2d1090['start'],_0x2d1090['end'])),_0x2e122e=new Set();this['_trackingSessionId']&&(_0x521643['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2e2836,meta:_0x3c54dc}of this['_findSuggestions'](_0x393819,'insertion'))_0x3c54dc['isOwn']&&!_0x3c54dc['isNextTo']&&_0x2e122e['add'](_0x2e2836);for(const _0x3b1c37 of _0x2e122e)if(_0x3b1c37['isMultiRange']){const _0x598b07=_0x3b1c37['getRanges']();if(_0x3b1c37['attributes']&&_0x3b1c37['attributes']['skipNestingCheck']||_0x598b07['every'](_0x5d8fb3=>_0x393819['some'](_0x2180ce=>_0x2180ce['containsRange'](_0x5d8fb3,!0x0)))&&_0x3b1c37['discard'](),_0x393819['every'](_0x4f1a9e=>_0x598b07['some'](_0x55dac3=>_0x55dac3['containsRange'](_0x4f1a9e,!0x0)))){const _0x18946e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b1307,'accept');return this['forceDefaultExecution'](()=>_0x18946e(_0x4b3cb8,null,_0x521643)),null;}}else{const _0x5ec363=_0x3b1c37['getFirstRange']();if(_0x393819['some'](_0x389906=>_0x389906['containsRange'](_0x5ec363,!0x0))&&_0x3b1c37['discard'](),_0x393819['every'](_0xa4f06a=>_0x5ec363['containsRange'](_0xa4f06a,!0x0))){const _0x4cbdf3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b1307,'accept');return this['forceDefaultExecution'](()=>_0x4cbdf3(_0x393819,null,_0x521643)),null;}}const _0x3b7fbe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b1307,'join');let _0x5cc428=null;for(const _0x2fcd6c of this['getSuggestions']())if(_0x2fcd6c['author']['id']==_0x47594a['id']&&_0x2fcd6c['isInContent']&&'deletion'==_0x2fcd6c['type']&&_0x2fcd6c['subType']==_0x5b1307&&En(_0x2fcd6c,_0x521643)&&(_0x3b7fbe(_0x2fcd6c['getRanges'](),_0x393819)||_0x3b7fbe(_0x393819,_0x2fcd6c['getRanges']()))){if(_0x5cc428){if(_0x2fcd6c['commentThread']&&_0x2fcd6c['commentThread']['length'])continue;for(const _0x3acac4 of _0x2fcd6c['getRanges']())_0x5cc428['isIntersectingWithRange'](_0x3acac4)||_0x5cc428['addRange'](_0x3acac4);_0x2fcd6c['removeMarkers']();}else{_0x5cc428=_0x2fcd6c;for(const _0x6aec99 of _0x393819)_0x2fcd6c['isIntersectingWithRange'](_0x6aec99)||_0x2fcd6c['addRange'](_0x6aec99);}}if(_0x5cc428)return _0x5cc428;_0x2e122e['clear']();for(const {suggestion:_0x4adb89,meta:_0xec5ab2}of this['_findSuggestions'](_0x393819,'deletion'))_0xec5ab2['isOwn']&&(this['_mergeNestedSuggestions']||!_0xec5ab2['containsRangeInObject']&&!_0xec5ab2['isInsideObject'])&&En(_0x4adb89,_0x521643)&&_0x2e122e['add'](_0x4adb89);for(const _0x1a1ca3 of _0x2e122e){const _0x17ff87=_0x1a1ca3['getRanges']();if((!_0x521643||!_0x521643['skipNestingCheck'])&&_0x393819['every'](_0xd50793=>_0x17ff87['some'](_0x356583=>_0x356583['containsRange'](_0xd50793,!0x0))))return _0x1a1ca3;_0x1a1ca3['attributes']&&_0x1a1ca3['attributes']['skipNestingCheck']||_0x17ff87['every'](_0x18f0ff=>_0x393819['some'](_0x48a7e2=>_0x48a7e2['containsRange'](_0x18f0ff,!0x0)))&&_0x1a1ca3['discard']();}const _0x512823=_0x1f4b16(),_0x2573dc=_0x47594a['id'],_0x13d267='deletion:'+_0x5b1307,_0x5f467b=this['_setSuggestionData']({'id':_0x512823,'type':_0x13d267,'createdAt':new Date(),'authorId':_0x2573dc,'attributes':_0x521643});for(const _0xa361d0 of _0x393819)_0xa361d0['detach'](),_0xa361d0['isCollapsed']||'$graveyard'==_0xa361d0['root']['rootName']||this['_addSuggestionMarker'](_0x13d267,_0x512823,_0x2573dc,_0xa361d0,yt['getMultiRangeId']());return _0x5f467b;}['markAttributeChange'](_0x18db76,_0x1a405b,_0x35d7af,_0x954216,_0x1547fa){if(_0x18db76['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x68b718=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e89d5=Array['from'](this['_suggestions']['values']())['filter'](_0x3619dd=>'attribute'==_0x3619dd['type']&&_0x3619dd['data']['key']==_0x1a405b&&_0x3619dd['isIntersectingWithRange'](_0x18db76));if(this['_trackingSessionId']&&(_0x1547fa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2f555d=this['_findSuggestions'](_0x18db76,'insertion')['filter'](({meta:_0x1a48a9})=>_0x1a48a9['isOwn']&&!_0x1a48a9['isInsideObject']&&!_0x1a48a9['isNextTo'])['map'](({suggestion:_0x305d91})=>_0x305d91);_0x4e89d5['unshift'](..._0x2f555d);}const _0x41e3e7=new Map([[_0x18db76,_0x35d7af]]);for(const _0x2f1dbb of _0x4e89d5){const _0x1ade35='attribute'==_0x2f1dbb['type']?_0x2f1dbb['data']['oldValue']:void 0x0,_0x21f794=_0x2f1dbb['getFirstRange'](),_0x1b3193=Array['from'](_0x41e3e7['keys']())['find'](_0x6a8be=>_0x6a8be['isIntersecting'](_0x21f794));if(!_0x1b3193)continue;const _0x186e32=_0x1b3193['getDifference'](_0x21f794);this['_suggestionsConversion']['isBlockAttribute'](_0x1a405b)&&'insertion'==_0x2f1dbb['type']&&0x0!=_0x186e32['length']||(_0x41e3e7['delete'](_0x1b3193),_0x186e32['forEach'](_0x38d546=>{_0x41e3e7['set'](_0x38d546,_0x35d7af);}),'insertion'!=_0x2f1dbb['type']&&_0x1ade35!=_0x954216&&_0x41e3e7['set'](_0x1b3193['getIntersection'](_0x21f794),_0x1ade35));}const _0x176b59=[];for(const [_0x37f764,_0x31df7f]of _0x41e3e7){const _0x3b23fb=_0x1f4b16(),_0xccbf1b={'key':_0x1a405b,'oldValue':_0x31df7f,'newValue':_0x954216};_0x1a405b['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':_0x1a405b});const _0x2a0349=('attribute:'+_0x1a405b+'|'+cn({'newValue':_0x954216}))['substring'](0x0,0x3c),_0x2cc493=this['_setSuggestionData']({'id':_0x3b23fb,'type':_0x2a0349,'data':_0xccbf1b,'createdAt':new Date(),'authorId':_0x68b718,'attributes':_0x1547fa});_0x176b59['push'](_0x2cc493),this['_addSuggestionMarker'](_0x2a0349,_0x3b23fb,_0x68b718,_0x37f764);}return _0x176b59;}['enableDefaultAttributesIntegration'](_0x576994){this['enableCommand'](_0x576994,(_0x2cbf85,..._0x4fc2d5)=>{this['recordAttributeChanges'](()=>{_0x2cbf85(..._0x4fc2d5);});});}['startTrackingSession'](_0x3bd0b3){return this['_trackingSessionId']=void 0x0!==_0x3bd0b3?_0x3bd0b3:_0x1f4b16(),this['_trackingSessionId'];}['_getAttributeKey'](_0x85b099){return'attribute'==_0x85b099['type']?_n(_0x85b099['subType']):null;}['_applyOperationsAsSuggestions'](_0xaa6bc8){if(0x0==_0xaa6bc8['length'])return;const _0x450f64=this['editor'],_0x4934f7=_0x450f64['plugins']['get'](_0x23df0a),_0x3ff731=[],_0x981ae=_0x14ad5c=>{const _0x3dfc61=_0x14ad5c['_aiSource'];return _0x3dfc61?{'@ai':{'type':_0x3dfc61}}:{};},_0x142661=(_0x2c74c9,_0x1da672,_0x1c7f48)=>{for(let _0x1697cb=_0x1da672;_0x1697cb<_0x2c74c9['operations']['length'];_0x1697cb++){const _0x19b3e5=_0x2c74c9['operations'][_0x1697cb];'marker'===_0x19b3e5['type']&&(_0x19b3e5['_aiSource']=_0x1c7f48);}};_0x450f64['model']['change'](_0x54bc41=>{for(let _0x4b51ec=0x0;_0x4b51ec<_0xaa6bc8['length'];_0x4b51ec++){const _0x537313=_0xaa6bc8[_0x4b51ec],_0xee1b18=_0x537313['_aiSource'],_0x41f331=_0x54bc41['batch']['operations']['length'];if(_0x537313['baseVersion']=_0x450f64['model']['document']['version'],_0x537313['isDocumentOperation']=!0x0,_0x4934f7['isMarkedRemoveOperation'](_0x537313)){const _0x4ca6ee=_0x5f18e7(_0x537313['newRange'],_0x450f64['model']);_0x3ff731['unshift']({'range':rt['fromRange'](_0x4ca6ee),'opAttributes':_0x981ae(_0x537313),'aiSource':_0xee1b18});}else{switch(_0x537313['type']){case'rename':{const _0xd75572=_0x537313['oldName'],_0x3b97f1=_0x537313['newName'];if(_0xd75572==_0x3b97f1)break;_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);const _0x15683c='$elementName',_0x15af84=_0x537313['position'],_0x5170fc=_0x450f64['model']['createRange'](_0x15af84,_0x450f64['model']['createPositionAt'](_0x15af84['nodeAfter'],'end'));this['markAttributeChange'](_0x5170fc,_0x15683c,_0xd75572,_0x3b97f1,{..._0x981ae(_0x537313),'groupId':_0x1f4b16()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x255160=_0x537313['oldValue'],_0x5615d6=_0x537313['newValue'];if(_0x255160==_0x5615d6)break;_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);const _0x3590ab=_0x537313['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3590ab))break;const _0x3617a6=_0x5f18e7(_0x537313['range'],_0x450f64['model']);this['markAttributeChange'](_0x3617a6,_0x3590ab,_0x255160,_0x5615d6,{..._0x981ae(_0x537313),'groupId':_0x1f4b16()});break;}case'insert':{if(_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313),_0xaa6bc8[_0x4b51ec+0x1]&&'move'==_0xaa6bc8[_0x4b51ec+0x1]['type'])break;const _0x51c532=_0x537313['position'],_0x50c9a4=_0x537313['howMany'],_0x1ff010=_0x5f18e7(_0x450f64['model']['createRange'](_0x51c532,_0x51c532['getShiftedBy'](_0x50c9a4)),_0x450f64['model']);this['markInsertion'](_0x1ff010,null,{..._0x981ae(_0x537313)});break;}case'split':{_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);const _0x4738f5=_0x537313['splitPosition'],_0xac7a6a=_0x537313['moveTargetPosition'],_0x3c8095=_0x450f64['model']['createRange'](_0x4738f5,_0xac7a6a);this['markInsertion'](_0x3c8095,null,{..._0x981ae(_0x537313)});break;}case'move':case'remove':_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);}_0xee1b18&&_0x142661(_0x54bc41['batch'],_0x41f331,_0xee1b18);}}for(const {range:_0x5a7355,opAttributes:_0x299244,aiSource:_0xb2e09c}of _0x3ff731){const _0x4e057c=_0x54bc41['batch']['operations']['length'];_0x5a7355['detach'](),this['markDeletion'](_0x5a7355,null,{..._0x299244}),_0xb2e09c&&_0x142661(_0x54bc41['batch'],_0x4e057c,_0xb2e09c);}});}['_setSuggestionRange'](_0x21e8a6,_0x102e04){const _0x166dc7=_0x21e8a6['getFirstMarker']();this['_model']['change'](_0x1e586f=>{_0x1e586f['updateMarker'](_0x166dc7,{'range':_0x102e04});});}['_addThreadToSuggestion'](_0x21cfd3){const _0x34b6bb=_0x21cfd3['id'],_0x5af744=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34b6bb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5af744,'threadId':_0x34b6bb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e1682=this['_commentsRepository']['getCommentThread'](_0x34b6bb);_0x4e1682['unbind']('isRemovable'),_0x4e1682['isRemovable']=!0x1,_0x21cfd3['commentThread']=_0x4e1682;}['_checkSuggestionCorrectness'](_0x5ab06d,_0x291205,_0x505792,_0x3786f3){if(_0x5ab06d['type']!=_0x291205||_0x5ab06d['subType']!=_0x505792||_0x5ab06d['creator']['id']!=_0x3786f3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5748df('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x25627d,_0x433756){const _0x509fbd=_0x25627d['getFirstRange']();if(_0x433756['isEqual'](_0x509fbd))_0x25627d['removeMarkers']();else{if(_0x509fbd['containsRange'](_0x433756)){const _0x596856=this['_model']['createPositionAt'](_0x433756['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x25627d,this['_model']['createRange'](_0x509fbd['start'],_0x596856));const _0x3014df=_0x1f4b16(),_0x1246aa=_0x25627d['creator']['id'],_0xf7b41e=_0x25627d['type']+':'+_0x25627d['subType'];this['_setSuggestionData']({'id':_0x3014df,'type':_0xf7b41e,'createdAt':new Date(),'authorId':_0x1246aa,'data':_0x25627d['data'],'attributes':_0x25627d['attributes']});const _0x1b9780=this['_model']['createPositionAt'](_0x433756['end']['parent'],'after'),_0x453fe6=this['_model']['createRange'](_0x1b9780,_0x509fbd['end']);this['_addSuggestionMarker'](_0xf7b41e,_0x3014df,_0x1246aa,_0x453fe6);}else{if(_0x509fbd['containsPosition'](_0x433756['start'])){const _0x4bc9a8=this['_model']['createPositionAt'](_0x433756['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x25627d,this['_model']['createRange'](_0x509fbd['start'],_0x4bc9a8));}else{const _0x4fee21=this['_model']['createPositionAt'](_0x433756['end']['parent'],'after');this['_setSuggestionRange'](_0x25627d,this['_model']['createRange'](_0x4fee21,_0x509fbd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x8d9e2c){for(const {suggestion:_0x412e71,meta:_0x7b97d8}of this['_findSuggestions'](_0x8d9e2c,'insertion')){if(!_0x7b97d8['isOwn'])continue;const _0x102ff0=_0x412e71['getRanges']();for(const _0x574752 of _0x102ff0)if(!_0x8d9e2c['getDifference'](_0x574752)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e2932){return this['editor']['plugins']['get']('Users')['getUser'](_0x5e2932);}['_getExternalAuthor'](_0x24edf6){const _0x38bcd8=this['editor']['plugins']['get']('Users'),_0x258341=_0x4bef27('external:'+_0x24edf6),_0x214f84=_0x38bcd8['getUser'](_0x258341);return _0x214f84||_0x38bcd8['addUser']({'id':_0x258341,'name':_0x24edf6});}['_createSuggestion'](_0x6c3755,_0x1af040,_0x1c737e,_0xf0f9a6,_0x5b9c6d,_0x1cf743){const _0x480cee=this['_getAuthorFromId'](_0xf0f9a6);if(!_0x480cee)throw new _0x5748df('track-changes-user-not-found',this,{'authorId':_0xf0f9a6,'suggestionId':_0x1c737e});const _0x3e2a52=this['_suggestionFactory']['buildSuggestion'](_0x6c3755,_0x1af040,_0x1c737e,_0x480cee,_0x5b9c6d,_0x5ae05c=>{this['_updateSuggestionData'](_0x1c737e,{'attributes':_0x5ae05c});const _0x348cca=this['getSuggestion'](_0x1c737e);this['_joinWithAdjacentSuggestions'](new Set([_0x348cca])),this['_refreshSuggestionsChain'](new Set([_0x348cca]));},_0x1cf743);return this['listenTo'](_0x3e2a52,'accept',()=>{this['_updateSuggestionData'](_0x1c737e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e2a52,'discard',()=>{this['_updateSuggestionData'](_0x1c737e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c737e,_0x3e2a52),this['_suggestionState']['set'](_0x3e2a52,'notReady'),_0x3e2a52;}['_breakSuggestionMarker'](_0x10c670,_0x6c47e1,_0xf624a2){const _0x412aef=_0x10c670['getFirstRange'](),_0xe6e561=_0x412aef['start'],_0x5b9f44=_0x412aef['end'];this['_setSuggestionRange'](_0x10c670,this['_model']['createRange'](_0xe6e561,_0x6c47e1));const _0x44d18b=_0x1f4b16(),_0x150308=_0x10c670['creator']['id'],_0x5dec7e=_0x10c670['type']+(_0x10c670['subType']?':'+_0x10c670['subType']:'');this['_setSuggestionData']({'id':_0x44d18b,'type':_0x5dec7e,'createdAt':new Date(),'authorId':_0x150308,'originalSuggestionId':_0x10c670['_originalSuggestionId']||_0x10c670['id'],'attributes':_0x10c670['attributes'],'data':_0x10c670['data']});const _0x4251b4=this['_getAttributeKey'](_0x10c670);('formatBlock'==_0x10c670['type']||_0x4251b4&&this['_suggestionsConversion']['isBlockAttribute'](_0x4251b4))&&(_0xf624a2=this['_model']['createPositionBefore'](_0xf624a2['parent'])),this['_addSuggestionMarker'](_0x5dec7e,_0x44d18b,_0x150308,this['_model']['createRange'](_0xf624a2,_0x5b9f44));}['_findSuggestions'](_0x33e255,_0xe96997=null){const _0x116824=[],_0x2108b8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33e255)||(_0x33e255=[_0x33e255]);for(const _0x157b1e of this['getSuggestions']()){if(!_0x157b1e['isInContent'])continue;if(_0xe96997&&_0x157b1e['type']!=_0xe96997)continue;let _0x3865cd=!0x1;for(const _0x117400 of _0x157b1e['getRanges']()){for(const _0xaed633 of _0x33e255){const _0x6926d5=_0xaed633['start']['isEqual'](_0x117400['end'])||_0xaed633['end']['isEqual'](_0x117400['start']);if(_0x6926d5||_0xaed633['getIntersection'](_0x117400)){const _0x33f78e=_0xaed633['containsRange'](_0x117400)&&rn(this['_model']['schema'],_0x117400['start'],_0xaed633),_0x3adc2e=_0x117400['containsRange'](_0xaed633)&&rn(this['_model']['schema'],_0xaed633['start'],_0x117400);_0x116824['push']({'suggestion':_0x157b1e,'meta':{'isOwn':_0x2108b8==_0x157b1e['author'],'isNextTo':_0x6926d5,'isInsideObject':_0x33f78e,'containsRangeInObject':_0x3adc2e}}),_0x3865cd=!0x0;break;}}if(_0x3865cd)break;}}return _0x116824;}['_addSuggestionMarker'](_0xd6dab4,_0x5237ac,_0x20d334,_0x2f582d,_0x3dc02d){this['_model']['change'](_0x1be314=>{let _0x1185d8='suggestion:'+_0xd6dab4+':'+_0x5237ac+':'+_0x20d334;_0x3dc02d&&(_0x1185d8=_0x1185d8+':'+_0x3dc02d),_0x1be314['addMarker'](_0x1185d8,{'range':_0x2f582d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2241b1){const _0x12427b=_0x2241b1['previous'],_0x144764=_0x2241b1['next'];_0x2241b1['previous']=null,_0x2241b1['next']=null,null!=_0x12427b&&_0x12427b['next']==_0x2241b1&&(_0x12427b['next']=_0x144764),null!=_0x144764&&_0x144764['previous']==_0x2241b1&&(_0x144764['previous']=_0x12427b),'ready'==this['_suggestionState']['get'](_0x2241b1)&&(this['_suggestionState']['set'](_0x2241b1,'removed'),this['fire']('suggestionUnloaded',_0x2241b1,_0x12427b,_0x144764));}['_setSuggestionData'](_0x133c00){const _0x3c4729=_0x133c00['id'],_0x3777a1=this['addSuggestionData'](_0x133c00);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x149217=this['editor']['plugins']['get']('PendingActions'),_0x1bfc9d=_0x3777a1['hasComments'],_0x5b6442=_0x3777a1['subType']?_0x3777a1['type']+':'+_0x3777a1['subType']:_0x3777a1['type'],_0x349dc6=this['editor']['locale'],_0xbd2ec4=_0x149217['add'](St(_0x349dc6,'PENDING_ACTION_SUGGESTION')),_0x1390e1={'id':_0x3c4729,'type':_0x5b6442,'hasComments':_0x1bfc9d,'data':_0x133c00['data']||null,'originalSuggestionId':_0x133c00['originalSuggestionId']||null,'attributes':_0x3777a1['attributes']};this['_adapter']['addSuggestion'](_0x1390e1)['then'](_0x451549=>{_0x3777a1['_saved']=!0x0,_0x149217['remove'](_0xbd2ec4),_0x451549&&_0x451549['createdAt']&&(this['_suggestions']['get'](_0x3c4729)['createdAt']=_0x451549['createdAt']);})['catch'](_0x58fa3b=>{throw _0x1de656('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3777a1['discard']();}),_0x3777a1['stopListening'](),this['_suggestions']['delete'](_0x3777a1['id']),this['_suggestionState']['delete'](_0x3777a1),_0x58fa3b;});}return _0x3777a1;}['_updateSuggestionData'](_0x39dd69,_0x4eef8f){const _0x3089c9=this['editor']['plugins']['get']('PendingActions'),_0x376d20=this['getSuggestion'](_0x39dd69);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x376d20['_saved']){const _0x2a2f45=_0x3089c9['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x39dd69,_0x4eef8f)['then'](()=>{_0x3089c9['remove'](_0x2a2f45);});}else _0x376d20['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x39dd69,_0x4eef8f);});}}['_getSuggestionData'](_0x118f75){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5748df('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x118f75);}['_handleNewSuggestionMarker'](_0x40dd56){const {id:_0x25e69a,type:_0x575b7e,subType:_0x1bccec,authorId:_0x103091}=tt(_0x40dd56),_0x51dfef=this['_suggestions']['get'](_0x25e69a)||this['_createSuggestion'](_0x575b7e,_0x1bccec,_0x25e69a,_0x103091,{});switch(this['_checkSuggestionCorrectness'](_0x51dfef,_0x575b7e,_0x1bccec,_0x103091),this['_suggestionState']['get'](_0x51dfef)){case'notReady':this['_getSuggestionData'](_0x25e69a)['then'](_0x1b7a9a=>{let _0x11e425=Promise['resolve']();_0x1b7a9a['hasComments']&&(_0x11e425=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x25e69a})),_0x11e425['then'](()=>{this['addSuggestionData'](_0x1b7a9a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51dfef,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x25e69a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51dfef,'ready'),this['fire']('suggestionLoaded',_0x51dfef);break;case'ready':this['fire']('suggestionChanged',_0x51dfef);}return _0x51dfef['addMarkerName'](_0x40dd56),_0x51dfef;}['_refreshSuggestionsChain'](_0x53dfea){const _0x2b60d4=Array['from'](_0x53dfea),_0x369905=_0x2b60d4['filter'](_0x1e2dfe=>'attribute'==_0x1e2dfe['type']);this['_refreshAttributeSuggestionsChain'](_0x369905);const _0x4cf335=_0x2b60d4['filter'](_0x5d8a46=>!_0x5d8a46['isMultiRange']&&'attribute'!=_0x5d8a46['type']),_0x32c26a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ee21c=>!_0x3ee21c['isMultiRange']&&'attribute'!=_0x3ee21c['type']),_0x46b93e=_0x32c26a['filter'](_0x508e09=>!_0x53dfea['has'](_0x508e09)),_0x161dfa=new Map(_0x32c26a['map'](_0x354675=>[_0x354675,this['_suggestionFactory']['getSuggestionCallback'](_0x354675['type'],_0x354675['subType'],'chain')])),_0x358f8c=new Map(_0x32c26a['map'](_0x5d2cae=>[_0x5d2cae,_0x5d2cae['getFirstRange']()])),_0x48d2bb=new Set(),_0x104711=new Set();for(let _0x30cfb3=0x0;_0x30cfb3<_0x4cf335['length'];_0x30cfb3++)_0x3e0f78(_0x4cf335[_0x30cfb3],_0x4cf335,_0x30cfb3+0x1);for(let _0x3bf2c8=0x0;_0x3bf2c8<_0x4cf335['length'];_0x3bf2c8++)_0x3e0f78(_0x4cf335[_0x3bf2c8],_0x46b93e,0x0);const _0x261228=new Set();for(let _0x2e4067=0x0;_0x2e4067<_0x4cf335['length'];_0x2e4067++){const _0x8a1c07=_0x4cf335[_0x2e4067];!_0x104711['has'](_0x8a1c07)&&_0x8a1c07['previous']&&(_0x261228['add'](_0x8a1c07['previous']),_0x8a1c07['previous']['next']===_0x8a1c07&&(_0x8a1c07['previous']['next']=null),_0x8a1c07['previous']=null),!_0x48d2bb['has'](_0x8a1c07)&&_0x8a1c07['next']&&(_0x261228['add'](_0x8a1c07['next']),_0x8a1c07['next']['previous']===_0x8a1c07&&(_0x8a1c07['next']['previous']=null),_0x8a1c07['next']=null);}function _0x3e0f78(_0x415e89,_0x1189a3,_0x5ceb75){for(let _0x14ac69=_0x5ceb75;_0x14ac69<_0x1189a3['length'];_0x14ac69++){const _0x525098=_0x2593a3(_0x415e89,_0x1189a3[_0x14ac69]);_0x525098&&(_0x525098[0x0]['next']=_0x525098[0x1],_0x525098[0x1]['previous']=_0x525098[0x0],_0x48d2bb['add'](_0x525098[0x0]),_0x104711['add'](_0x525098[0x1]));}}function _0x2593a3(_0x52f92c,_0x39e2af){if(_0x52f92c['author']['id']!==_0x39e2af['author']['id'])return null;const _0x4a5a95=_0x161dfa['get'](_0x52f92c)(_0x52f92c,_0x39e2af,_0x358f8c['get'](_0x52f92c),_0x358f8c['get'](_0x39e2af));return _0x4a5a95&&_0x161dfa['get'](_0x39e2af)(_0x52f92c,_0x39e2af,_0x358f8c['get'](_0x52f92c),_0x358f8c['get'](_0x39e2af))?_0x4a5a95[0x1]['commentThread']&&_0x4a5a95[0x1]['commentThread']['length']?null:_0x4a5a95:null;}_0x261228['size']&&this['_refreshSuggestionsChain'](_0x261228);}['_refreshAttributeSuggestionsChain'](_0x4b4563){if(0x0==_0x4b4563['length'])return;const _0x3b610d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33ea5c=>'attribute'==_0x33ea5c['type']&&_0x33ea5c['_isDataLoaded']),_0x419bbe=[],_0x18bbb1=new Map();for(const _0x3d93b2 of _0x3b610d){const _0x225fb7=_0x4bef27(_0x3d93b2['attributes']);_0x18bbb1['has'](_0x225fb7)||(_0x18bbb1['set'](_0x225fb7,_0x419bbe['length']),_0x419bbe['push']([])),_0x419bbe[_0x18bbb1['get'](_0x225fb7)]['push'](_0x3d93b2);}!(function(){_0x419bbe['sort']((_0x573508,_0x32f356)=>{const _0x4fc1a1=_0x573508[0x0]['createdAt'],_0x4fd7bc=_0x32f356[0x0]['createdAt'];return _0x4fc1a1==_0x4fd7bc?_0x573508[0x0]['attributes']['groupId']<_0x32f356[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fc1a1<_0x4fd7bc?-0x1:0x1;});for(const _0x12d0d7 of _0x419bbe)_0x12d0d7['sort']((_0x1a0964,_0x256897)=>_0x1a0964['id']<_0x256897['id']?-0x1:0x1);}());for(let _0x5ce950=0x0;_0x5ce950<_0x419bbe['length'];_0x5ce950++){if(0x0==_0x419bbe[_0x5ce950]['length'])continue;const _0x56b07f=[];for(let _0x5d5da9=_0x5ce950+0x1;_0x5d5da9<_0x419bbe['length'];_0x5d5da9++)0x0!=_0x419bbe[_0x5d5da9]['length']&&_0x127d73(_0x419bbe[_0x5ce950],_0x419bbe[_0x5d5da9])&&_0x56b07f['push'](_0x5d5da9);for(const _0x215b72 of _0x56b07f)_0x419bbe[_0x5ce950]=_0x419bbe[_0x5ce950]['concat'](_0x419bbe[_0x215b72]),_0x419bbe[_0x215b72]=[];}for(const _0x26c655 of _0x419bbe)for(let _0x693dd0=0x0;_0x693dd0<_0x26c655['length'];_0x693dd0++){const _0x14a9b2=_0x26c655[_0x693dd0+0x1]||null;_0x26c655[_0x693dd0]['next']!==_0x14a9b2&&(_0x26c655[_0x693dd0]['next']=_0x14a9b2);}for(const _0x5f114a of _0x419bbe)for(let _0x168fbc=0x0;_0x168fbc<_0x5f114a['length'];_0x168fbc++){const _0x405643=_0x5f114a[_0x168fbc-0x1]||null;_0x5f114a[_0x168fbc]['previous']!==_0x405643&&(_0x5f114a[_0x168fbc]['previous']=_0x405643);}function _0x127d73(_0x3f0a8b,_0x5d2230){return(_0x3f0a8b[0x0]['attributes']['groupId']===_0x5d2230[0x0]['attributes']['groupId']||_0x3f0a8b[0x0]['author']===_0x5d2230[0x0]['author'])&&(!!function(_0x31d278,_0x43ac62){return!_0x31d278['hasComments']&&!_0x43ac62['hasComments']||(!_0x31d278['hasComments']||!_0x43ac62['hasComments'])&&(!!(_0x31d278['hasComments']&&_0x43ac62['createdAt']<_0x31d278['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x43ac62['hasComments']&&_0x31d278['createdAt']<_0x43ac62['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x3f0a8b[0x0],_0x5d2230[0x0])&&(!!ct(lt(_0x3f0a8b[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x5d2230[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x3f0a8b[0x0]['attributes']['groupId']==_0x5d2230[0x0]['attributes']['groupId']||_0x3f0a8b[0x0]['attributes']['trackingSessionId']===_0x5d2230[0x0]['attributes']['trackingSessionId']&&(!!_0x3f0a8b['every'](_0x4bd27e=>_0x5d2230['some'](_0x1d1f8d=>_0x4bd27e['getFirstRange']()['isEqual'](_0x1d1f8d['getFirstRange']())))&&_0x5d2230['every'](_0x39f786=>_0x3f0a8b['some'](_0x598909=>_0x39f786['getFirstRange']()['isEqual'](_0x598909['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x3945ea){const _0x283d52=Array['from'](_0x3945ea),_0x591240=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe1d802=_0x591240['filter'](_0x13c5c2=>!_0x3945ea['has'](_0x13c5c2)),_0x58f254=new Map(_0x283d52['map'](_0x552242=>[_0x552242,this['_suggestionFactory']['getSuggestionCallback'](_0x552242['type'],_0x552242['subType'],'join')])),_0x4a61bb=new Map(_0x591240['map'](_0x1f4c0e=>[_0x1f4c0e,_0x1f4c0e['getRanges']()]));for(let _0x10645c=0x0;_0x10645c<_0x283d52['length'];_0x10645c++)if(_0xe2c94(this,_0x283d52[_0x10645c],_0x283d52,_0x10645c+0x1))return!0x0;for(let _0x28a73e=0x0;_0x28a73e<_0x283d52['length'];_0x28a73e++)if(_0xe2c94(this,_0x283d52[_0x28a73e],_0xe1d802,0x0))return!0x0;return!0x1;function _0xe2c94(_0x2797b7,_0x2d377e,_0x8500b7,_0x32cd5c){for(let _0x3e0df7=_0x32cd5c;_0x3e0df7<_0x8500b7['length'];_0x3e0df7++){const _0x447da6=_0x8500b7[_0x3e0df7];if(_0x447da6['type']!==_0x2d377e['type']||_0x447da6['author']['id']!==_0x2d377e['author']['id']||_0x447da6['subType']!==_0x2d377e['subType'])continue;if(!mn(_0x2d377e,_0x447da6))continue;if('attribute'==_0x2d377e['type']&&_0x2d377e['data']['oldValue']!=_0x447da6['data']['oldValue'])continue;if('attribute'==_0x2d377e['type']&&_0x2797b7['_suggestionsConversion']['isBlockAttribute'](_0x2d377e['data']['key']))continue;if('formatBlock'==_0x2d377e['type']){const _0x149401=_0x2797b7['editor']['model'],_0x3cc412=_0x2d377e['getContainedElement']();if(_0x3cc412&&(_0x149401['schema']['isObject'](_0x3cc412)||_0x149401['schema']['isLimit'](_0x3cc412)))continue;}const _0x2a3e7b=_0x58f254['get'](_0x2d377e),_0x50c4f7=_0x4a61bb['get'](_0x2d377e),_0x1f6705=_0x4a61bb['get'](_0x447da6),_0x36cc16=_0x2d377e['commentThread']&&_0x2d377e['commentThread']['length'],_0x1f807f=_0x447da6['commentThread']&&_0x447da6['commentThread']['length'];if(!_0x36cc16&&_0x2a3e7b(_0x1f6705,_0x50c4f7))return _0x2797b7['_joinSuggestions'](_0x447da6,_0x2d377e),_0x4a61bb['delete'](_0x2d377e),!0x0;if(!_0x1f807f&&_0x2a3e7b(_0x50c4f7,_0x1f6705))return _0x2797b7['_joinSuggestions'](_0x2d377e,_0x447da6),_0x4a61bb['delete'](_0x447da6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13e779,_0x1495f4){if(_0x13e779['isMultiRange']){for(const _0x4d4106 of _0x1495f4['getRanges']())_0x13e779['addRange'](_0x4d4106);}else{const _0x2e7f7b=_0x1495f4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13e779,this['_model']['createRange'](_0x13e779['getFirstRange']()['start'],_0x2e7f7b));}_0x1495f4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c1c32,_0x5f22c7,_0x561955){const _0x15df4e=_0x1c1c32['startsWith']('format')||_0x1c1c32['startsWith']('attribute')?'FORMATTING':_0x1c1c32['toUpperCase']();return St(this['editor']['locale'],_0x5f22c7+'_'+_0x15df4e+'_SUGGESTION_ANNOUNCEMENT',_0x561955);}['_initAriaMarkerChangeAnnouncements'](){const _0x452a38=this['editor'];if(!_0x452a38['ui'])return;const {ariaLiveAnnouncer:_0x33793a}=_0x452a38['ui'];et(this['_model'],({left:_0x382012,entered:_0x5c59e7})=>{for(const _0x177094 of _0x382012){const {group:_0x1403ea,type:_0x314798}=tt(_0x177094['name']);if('suggestion'===_0x1403ea){_0x33793a['announce'](this['_getMarkerAnnouncementText'](_0x314798,'LEAVE'));break;}}for(const _0x44afb0 of _0x5c59e7){const {group:_0x4b2b5f,type:_0x280187}=tt(_0x44afb0['name']);if('suggestion'===_0x4b2b5f){_0x33793a['announce'](this['_getMarkerAnnouncementText'](_0x280187,'ENTER',_0x23475f(_0x312d7)));break;}}});}['_processAttributeChanges'](_0x51e2a5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x7f1760=this['editor'],_0x4e2f89=_0x7f1760['model']['document']['differ']['getChanges']();if(0x0==_0x4e2f89['length'])return!0x1;const _0x2c22a1=[],_0x36a6a1=_0x4e2f89['filter'](_0x314c58=>'attribute'==_0x314c58['type']),_0x33507b=_0x4e2f89['filter'](_0x55d03d=>'insert'==_0x55d03d['type']&&'$text'!=_0x55d03d['name']),_0x5e7e7e=_0x4e2f89['filter'](_0x247b8e=>'remove'==_0x247b8e['type']&&'$text'!=_0x247b8e['name']);for(const _0x1fc288 of _0x36a6a1)_0x2c22a1['push']({'key':_0x1fc288['attributeKey'],'newValue':_0x1fc288['attributeNewValue'],'oldValue':_0x1fc288['attributeOldValue'],'range':hn(_0x1fc288['range'],_0x7f1760['model'])});for(const _0x5e3203 of _0x33507b){const _0x16388e=_0x5e7e7e['find'](_0x5281d9=>_0x5281d9['position']['isEqual'](_0x5e3203['position']));_0x16388e&&_0x2c22a1['push']({'key':en,'newValue':_0x5e3203['name'],'oldValue':_0x16388e['name'],'range':_0x7f1760['model']['createRangeOn'](_0x5e3203['position']['nodeAfter'])});}return 0x0!=_0x2c22a1['length']&&this['_reduceExistingSuggestions'](_0x51e2a5,_0x2c22a1);}['_processAttributeSuggestions'](_0x547184){let _0x1c476d=!0x1;const _0x23ab38=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e29d6=>_0x4e29d6['data']['newRange']&&_0x4e29d6['name']['startsWith']('suggestion:attribute:'));for(const _0xd99b0e of _0x23ab38){const {subType:_0x4fa0e4,id:_0x379a26}=tt(_0xd99b0e['name']),_0x436c62=_0x4fa0e4['split']('|')[0x0];for(const _0x4d7e75 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4d7e75['id']!=_0x379a26&&'attribute'==_0x4d7e75['type']&&_0x4d7e75['data']&&_0x4d7e75['data']['key']==_0x436c62&&_0x4d7e75['getFirstRange']()['isIntersecting'](_0xd99b0e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4d7e75,_0xd99b0e['data']['newRange'],_0x547184),_0x1c476d=!0x0);}return _0x1c476d;}['recordAttributeChanges'](_0x37b180){this['_recordAttributeSuggestions']=!0x0,_0x37b180();}['_reduceExistingSuggestions'](_0x188798,_0x3d46e4){if(0x0==_0x3d46e4['length'])return!0x1;let _0x55253d=!0x1;for(const _0x5b7934 of _0x3d46e4){const _0xa66c5a=this['_findSuggestions'](_0x5b7934['range'],'attribute')['filter'](_0x256c1c=>!_0x256c1c['meta']['isNextTo'])['map'](_0x309abd=>_0x309abd['suggestion']),_0x189adc=_0x4bef27({'newValue':_0x5b7934['newValue']});_0xa66c5a['filter'](_0x506c6e=>{const [_0x398abb,_0x502f98]=_0x506c6e['subType']['split']('|');return _0x398abb==_0x5b7934['key']&&_0x502f98!=_0x189adc;})['forEach'](_0x38b71f=>{this['_reduceSuggestionAttributeRange'](_0x38b71f,_0x5b7934['range'],_0x188798),_0x55253d=!0x0;});}return _0x55253d;}['_reduceSuggestionAttributeRange'](_0x4a4de7,_0x3423c7,_0x4df087){const _0x4b1948=_0x4a4de7['getFirstRange']()['getDifference'](_0x3423c7);0x0!==_0x4b1948['length']?0x1!==_0x4b1948['length']?this['_breakSuggestionMarker'](_0x4a4de7,_0x3423c7['start'],_0x3423c7['end']):this['_setSuggestionRange'](_0x4a4de7,_0x4b1948[0x0]):_0x4df087['removeMarker'](_0x4a4de7['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5a6f6a){this['_editor']=_0x5a6f6a,this['_model']=_0x5a6f6a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x55949e,_0x3947f7,_0x29e68e,_0x1ae92b,_0x1c5e3e,_0x309f2c,_0x105f9a){return new yt(this['_model'],{'type':_0x55949e,'subType':_0x3947f7,'id':_0x29e68e,'originalSuggestionId':_0x105f9a,'author':_0x1ae92b,'creator':_0x1ae92b,'attributes':_0x1c5e3e,'onAttributesChange':_0x309f2c,'onAccept':(..._0x4f0507)=>this['getSuggestionCallback'](_0x55949e,_0x3947f7,'accept')(..._0x4f0507),'onDiscard':(..._0x1621d6)=>this['getSuggestionCallback'](_0x55949e,_0x3947f7,'discard')(..._0x1621d6)});}['registerCustomCallback'](_0x157a63,_0x1d62e2,_0x50bd78,_0x127154){const _0x43e9e9=_0x157a63+':'+_0x1d62e2+':'+_0x50bd78;this['_customCallbacks']['set'](_0x43e9e9,_0x127154);}['getSuggestionCallback'](_0x330227,_0x5e5cb4,_0x511ce2){const _0x133aa7=_0x330227+':'+_0x5e5cb4+':'+_0x511ce2;return this['_customCallbacks']['get'](_0x133aa7)||this['_defaultCallbacks']['get'](_0x330227+':'+_0x511ce2);}['_registerDefaultCallbacks'](){const _0x34ebd7=()=>!0x1,_0x41f40a=_0x238fe5=>{_0x238fe5['sort']((_0x2ecf2a,_0x4fd3f3)=>_0x2ecf2a['start']['isBefore'](_0x4fd3f3['start'])?0x1:-0x1),this['_model']['change'](_0x3edb97=>{for(const _0x19ee0c of _0x238fe5){let _0xb01eba;_0xb01eba=_0x19ee0c['end']['isAtEnd']&&_0x19ee0c['end']['parent']==_0x19ee0c['start']['nodeAfter']?_0x3edb97['createSelection'](_0x19ee0c['start']['nodeAfter'],'on'):_0x3edb97['createSelection'](_0x19ee0c),this['_model']['deleteContent'](_0xb01eba,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4e8522=(_0x386731,_0x55a889)=>{_0x55a889&&this['_model']['change'](_0x4f2e47=>{const {commandName:_0x4041e3,commandParams:_0x1fc3b8=[]}=_0x55a889,_0x590271=_0x386731['map'](_0x5a806b=>(on(_0x5a806b)&&(_0x5a806b=this['_model']['createRange'](_0x5a806b['end'])),_0x5a806b))['filter'](_0x770d05=>'$graveyard'!==_0x770d05['root']['rootName']);if(_0x590271['length']<0x1)return;const _0x6ec957=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1132e0=>rt['fromRange'](_0x1132e0));_0x4f2e47['setSelection'](_0x590271);for(const _0x2929ca of this['_editor']['commands']['commands']())_0x2929ca['refresh']();_0x1fc3b8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4041e3,..._0x1fc3b8);const _0x53f986=_0x6ec957['filter'](_0x3d6122=>'$graveyard'!=_0x3d6122['root']['rootName']);_0x53f986['length']>0x0&&_0x4f2e47['setSelection'](_0x53f986);for(const _0xab4e3f of _0x6ec957)_0xab4e3f['detach']();});},_0x4953f8=(_0x94bf4,_0x342d00)=>0x1==_0x94bf4['length']&&0x1==_0x342d00['length']&&_0x94bf4[0x0]['end']['isEqual'](_0x342d00[0x0]['start']),_0xbb4034=(_0x26150e,_0x4d56fb,_0x34f3d0,_0x3aa1ae)=>fn(_0x26150e,_0x4d56fb,_0x34f3d0,_0x3aa1ae)?[_0x26150e,_0x4d56fb]:fn(_0x4d56fb,_0x26150e,_0x3aa1ae,_0x34f3d0)?[_0x4d56fb,_0x26150e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x34ebd7),this['_defaultCallbacks']['set']('insertion:discard',_0x41f40a),this['_defaultCallbacks']['set']('insertion:join',_0x4953f8),this['_defaultCallbacks']['set']('insertion:chain',_0xbb4034),this['_defaultCallbacks']['set']('deletion:accept',_0x41f40a),this['_defaultCallbacks']['set']('deletion:discard',_0x34ebd7),this['_defaultCallbacks']['set']('deletion:join',_0x4953f8),this['_defaultCallbacks']['set']('deletion:chain',_0xbb4034),this['_defaultCallbacks']['set']('formatInline:accept',_0x4e8522),this['_defaultCallbacks']['set']('formatInline:discard',_0x34ebd7),this['_defaultCallbacks']['set']('formatInline:join',_0x4953f8),this['_defaultCallbacks']['set']('formatInline:chain',_0x34ebd7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4e8522),this['_defaultCallbacks']['set']('formatBlock:discard',_0x34ebd7),this['_defaultCallbacks']['set']('formatBlock:join',_0x4953f8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x34ebd7),this['_defaultCallbacks']['set']('attribute:accept',_0x34ebd7),this['_defaultCallbacks']['set']('attribute:discard',(_0x5eca9f,_0x3afa71)=>{if(!_0x3afa71)return;const _0x190c08=this['_editor']['plugins']['get'](_0x28ef11);this['_model']['change'](_0x11bd0c=>{if('$elementName'==_0x3afa71['key'])for(const _0x452b1e of _0x5eca9f){const _0xc6bd1d=_0x452b1e['start']['nodeAfter'],_0x35564b=_0x3afa71['oldValue'];_0x11bd0c['rename'](_0xc6bd1d,_0x35564b);}else{if(_0x190c08['isBlockAttribute'](_0x3afa71['key'])){for(const _0x46f4e1 of _0x5eca9f)void 0x0!==_0x3afa71['oldValue']?_0x11bd0c['setAttribute'](_0x3afa71['key'],_0x3afa71['oldValue'],_0x46f4e1['start']['nodeAfter']):_0x11bd0c['removeAttribute'](_0x3afa71['key'],_0x46f4e1['start']['nodeAfter']);}else{for(const _0x3c6d9c of _0x5eca9f)_0x3afa71['oldValue']?_0x11bd0c['setAttribute'](_0x3afa71['key'],_0x3afa71['oldValue'],_0x3c6d9c):_0x11bd0c['removeAttribute'](_0x3afa71['key'],_0x3c6d9c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4953f8);}};function rn(_0x528bc4,_0x1c4f24,_0x45a64a){for(const _0x2d7262 of _0x1c4f24['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2d7262['root']==_0x2d7262)return!0x1;if(!_0x45a64a['containsItem'](_0x2d7262))return!0x1;if(_0x528bc4['isObject'](_0x2d7262)||_0x528bc4['isLimit'](_0x2d7262))return!0x0;}return!0x1;}function on(_0x4f50a3){return _0x4f50a3['end']['parent']==_0x4f50a3['start']['nodeAfter']&&_0x4f50a3['end']['isAtStart'];}function an(_0xd8f60e,_0x2ad7ee,_0x3753d1,_0x3a6e66){const _0x166543=_0x4d5a96=>!_0x4d5a96['item']['is']('$textProxy')&&!_0x3a6e66['isObject'](_0x4d5a96['item']),_0x407460=_0xd8f60e['start']['getLastMatchingPosition'](_0x166543),_0x522f1b=_0xd8f60e['end']['getLastMatchingPosition'](_0x166543,{'direction':'backward'});return(!_0xd8f60e['start']['isEqual'](_0x407460)||!_0xd8f60e['end']['isEqual'](_0x522f1b))&&(_0x407460['isBefore'](_0x522f1b)?_0x3753d1['updateMarker'](_0x2ad7ee,{'range':_0x3753d1['createRange'](_0x407460,_0x522f1b)}):_0x3753d1['removeMarker'](_0x2ad7ee),!0x0);}function cn(_0xa33694){return _0x4bef27(_0xa33694);}function ln(_0x1e91fc){const _0x270e42=_0x1e91fc['start']['nodeAfter'];return _0x270e42&&_0x270e42['is']('element');}function un(_0x8e5f18){return on(_0x8e5f18)||function(_0x320296){return _0x320296['start']['parent']==_0x320296['end']['nodeBefore']&&_0x320296['start']['isAtEnd'];}(_0x8e5f18);}function dn(_0x6cfee0,_0x3f5a1b){try{const _0x197987=_0x6cfee0['getRange']();for(const _0x2644a5 of _0x3f5a1b)if(_0x6cfee0!==_0x2644a5&&_0x197987&&_0x197987['isIntersecting'](_0x2644a5['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x4a0fec,_0x5eef4c){return null==_0x4a0fec['end']['nodeBefore']&&_0x4a0fec['end']['parent']==_0x4a0fec['start']['nodeAfter']?gn(_0x4a0fec['start']['nodeAfter'],_0x5eef4c):_0x4a0fec;}function gn(_0x5cb409,_0x4ab06b){const _0x442427=_0x4ab06b['schema']['isObject'](_0x5cb409)||_0x4ab06b['schema']['isSelectable'](_0x5cb409);return _0x4ab06b['createRange'](_0x4ab06b['createPositionAt'](_0x5cb409,'before'),_0x442427?_0x4ab06b['createPositionAfter'](_0x5cb409):_0x4ab06b['createPositionAt'](_0x5cb409,'end'));}function fn(_0x3979fa,_0x5264f9,_0x429e0f,_0x40fdf5){return!!mn(_0x3979fa,_0x5264f9)&&_0x429e0f['end']['isEqual'](_0x40fdf5['start']);}function mn(_0x2c3662,_0x4ccdee){if(!_0x2c3662['_isDataLoaded']||!_0x4ccdee['_isDataLoaded'])return!0x1;const _0x4e4fa2=new Set(Object['keys'](_0x2c3662['attributes'])),_0x19ee12=new Set(Object['keys'](_0x4ccdee['attributes']));if(_0x4e4fa2['delete']('groupId'),_0x19ee12['delete']('groupId'),0x0==_0x4e4fa2['size']&&0x0==_0x19ee12['size'])return!0x0;if(_0x4e4fa2['size']!=_0x19ee12['size'])return!0x1;const _0x1d19da={..._0x2c3662['attributes']},_0x4797e1={..._0x4ccdee['attributes']};return delete _0x1d19da['groupId'],delete _0x4797e1['groupId'],JSON['stringify'](_0x1d19da)==JSON['stringify'](_0x4797e1);}function En(_0x3b6857,_0x5bfc55){const _0xb18c5c=Tn(_0x3b6857['attributes']),_0x3918e4=Tn(_0x5bfc55);if(!_0x3b6857['_isDataLoaded'])return!0x1;if(!ct(_0xb18c5c['@ai'],_0x3918e4['@ai']))return!0x1;for(const _0x2b2b8c of Object['keys'](_0x3918e4))if(!ct(_0xb18c5c[_0x2b2b8c],_0x3918e4[_0x2b2b8c]))return!0x1;return!0x0;}function Tn(_0x6a7407){const _0x36e565=Object['assign']({},_0x6a7407);return delete _0x36e565['skipNestingCheck'],delete _0x36e565['tablePasteChainId'],_0x36e565;}function _n(_0x3715e2){return _0x3715e2['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
26
- _0x25c6c1();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21e7ed,_0x16a6fa,_0x17f4c2,_0x4f688a){super(),this['model']=_0x16a6fa,this['view']=_0x17f4c2,this['commentThreadController']=_0x4f688a,this['_editor']=_0x21e7ed,this['_acceptCommand']=_0x21e7ed['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21e7ed['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x259d49,_0x50dd1f)=>_0x259d49||_0x50dd1f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4dcf6d=>_0x4dcf6d&&this['_editor']['model']['canEditAt'](_0x16a6fa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x12986a=>_0x12986a&&this['_editor']['model']['canEditAt'](_0x16a6fa['getRanges']())),this['_pendingAction']=null,_0x17f4c2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17f4c2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17f4c2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17f4c2,'change:isDirty',()=>{_0x17f4c2['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 _0x1686b0=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1686b0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x4ceb53{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x483632,_0xec8c65,_0x4f2bd1,_0xd3438c){super(_0x483632),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4e9480(_0x483632,St(_0x483632,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xec8c65['authoredAt']),this['bind']('authoredAt')['to'](_0xec8c65),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0xec8c65,'authoredAt',this,'descriptionParts',(_0x21248e,_0x210586,_0x48a4e)=>{const _0x37712d=_0x48a4e['map'](_0x3e60bb=>pt(_0x3e60bb['content']))['join']('.\x20')+'.',_0x3f5167=_0xec8c65['aiSource']&&'author'===_0xd3438c['showAISource']?_0xd3438c['aiAuthor']['name']:_0xec8c65['author']['name'],_0x35bf9c=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x21248e-0x1,_0x3f5167,_0x210586?_0xd3438c['formatDateTime'](_0x210586):'',new DOMParser()['parseFromString'](_0x37712d,'text/html')['body']['textContent']]);return _0xec8c65['aiSource']&&'pill'===_0xd3438c['showAISource']?_0x35bf9c+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x35bf9c;}),this['focusables']=new _0x12df6c(),this['focusTracker']=new _0x4fff65(),this['keystrokes']=new _0x560b3c(),this['focusCycler']=new _0xa36f0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x49ea8c=>_0x49ea8c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xec8c65,this['_localUser']=_0x4f2bd1,this['_config']=_0xd3438c,_0xd3438c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d7c6c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x209b6e}=this['_config'];this['commentsListView']=new _0x209b6e(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',_0x33d08d=>_0x33d08d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44d8e7,_0x492079)=>_0x44d8e7||!!_0x492079);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28bb7a}=this['_config'],_0x30cd05=new _0x28bb7a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c7518=_0x30cd05['commentInputView'];return _0x30cd05['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5c7518,'value',(_0x2832b9,_0x4c3cc1,_0x5a76e9)=>!!_0x5a76e9||_0x2832b9&&!_0x4c3cc1),_0x5c7518['on']('submit',(_0x4172e6,_0x5cb087)=>{this['fire']('addComment',_0x5cb087),_0x5c7518['editor']['setData']('');}),_0x5c7518['on']('cancel',()=>this['focus']()),_0x5c7518['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x30cd05;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x7af229,_0x5ee4e6,_0x1c19c9,_0x3edaae){super(_0x7af229,_0x5ee4e6,_0x1c19c9,_0x3edaae),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x256331=>_0x256331&&_0x256331[0x0]?_0x256331[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x54b758,_0x7544f8)=>{let _0x455d28='';for(const _0x15ca1f of _0x54b758)_0x455d28+='<p>'+pt(_0x15ca1f['content'],_0x15ca1f['color'])+'</p>';return _0x7544f8?_0x455d28:nt(_0x455d28,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3edaae['SuggestionView'](_0x7af229,_0x5ee4e6,{'formatDateTime':_0x3edaae['formatDateTime'],'showAISource':_0x3edaae['showAISource'],'aiAuthor':_0x3edaae['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3229c=this['bindTemplate'],_0x5f5d5e=[this['suggestionView']];return this['commentsListView']&&_0x5f5d5e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5f5d5e['push'](this['commentThreadInputView']),_0x5f5d5e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3229c['if']('isActive','ck-suggestion-wrapper--active'),_0x3229c['to']('type',_0x8589=>'ck-suggestion-'+_0x8589),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3229c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5f5d5e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},bn=class extends _0x4ceb53{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x136ed6,_0x37e3a7,_0x4c1dd5){super(_0x136ed6),this['_model']=_0x37e3a7,this['_config']=_0x4c1dd5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x37e3a7),this['acceptButton']=this['_createButton'](St(_0x136ed6,'Accept\x20suggestion'),_0x17f795,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x136ed6,'Discard\x20suggestion'),_0xe52ae3,'ck-suggestion--discard','discardSuggestion','sw');const _0x314761=!!_0x37e3a7['aiSource']&&'author'===_0x4c1dd5['showAISource'],_0x7280f1=_0x314761?this['_createAIUser'](_0x4c1dd5['aiAuthor']):_0x37e3a7['author'],_0x28253a=_0x314761&&!_0x4c1dd5['aiAuthor']['avatar']?_0x219f44:void 0x0;this['userView']=new _0x23460e(_0x136ed6,_0x7280f1,this['getUserViewNotificationText'](),_0x28253a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x12df6c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4fff65(),this['keystrokes']=new _0x560b3c(),this['focusCycler']=new _0xa36f0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x29e88c=>_0x29e88c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x43cb56=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x43cb56['innerHTML']=this['description'],this['on']('change:description',(_0x4050d3,_0x13098e,_0x285368)=>{_0x43cb56['innerHTML']=_0x285368;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e35bd=this['bindTemplate'],_0x537a3f=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5e35bd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e35bd['to']('authoredAt',_0x1b2340=>this['_config']['formatDateTime'](_0x1b2340))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x537a3f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x262032=new _0x5d1bc0(this['locale']);_0x262032['set']({'icon':_0x3d13e3,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x537a3f['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x262032]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x537a3f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x3535e9){return new _0x34dabe({'id':'ck-ai-author','name':_0x3535e9['name'],'avatar':_0x3535e9['avatar'],'color':new _0x300a40(0x0)});}['_createButton'](_0x2d58e4,_0x98377b,_0x9e6820,_0x3f7748,_0x32bce7){const _0x230ccb=new _0x1da65c(this['locale']);return _0x230ccb['set']({'label':_0x2d58e4,'icon':_0x98377b,'tooltip':!0x0,'tooltipPosition':_0x32bce7}),_0x230ccb['extendTemplate']({'attributes':{'class':_0x9e6820}}),_0x230ccb['on']('execute',()=>{this['fire'](_0x3f7748,this['_model']['id']);}),_0x230ccb;}['_setupKeyboardNavigation'](){const _0x4e7164=this['element'];this['keystrokes']['listenTo'](_0x4e7164);for(const _0x51a984 of this['focusables'])this['focusTracker']['add'](_0x51a984['element']),this['keystrokes']['listenTo'](_0x51a984['element']);this['keystrokes']['set']('enter',(_0x266ef3,_0x4dd9f2)=>{_0x4e7164===_0x266ef3['target']&&(this['focusCycler']['focusFirst'](),_0x4dd9f2());}),this['keystrokes']['set']('esc',(_0x199e68,_0x71ddb3)=>{_0x4e7164!==_0x199e68['target']&&(this['focus'](),_0x71ddb3());});}},kn=class extends _0x413c81{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0xbc2e11,_0x15ba36,_0x14a75c,_0x56a282];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1904f0){super(_0x1904f0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xaa2945=this['editor']['config'];_0xaa2945['define']('trackChanges.SuggestionThreadView',An),_0xaa2945['define']('trackChanges.SuggestionView',bn),_0xaa2945['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xaa2945['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc35de5,_0x687a2c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b9695,_0x4265a7]of this['_handleControllerBuffer']){const _0x37c75f=this['_suggestionToController']['has'](_0x5b9695);_0x37c75f||_0x4265a7?_0x37c75f&&_0x4265a7&&this['_destroyController'](_0x5b9695):this['_initializeController'](_0x5b9695);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x56a282)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc35de5,_0x687a2c);}['init'](){const _0x414c97=this['editor'],_0x3099df=_0x414c97['plugins']['get'](nn),_0x590787=_0x414c97['plugins']['get'](_0x14a75c),_0x945b62=_0x414c97['plugins']['get'](_0x56a282),_0x5eddf7=_0x414c97['plugins']['get'](_0x15ba36);this['_addUIComponentsToFactory'](),_0x945b62['addSourceCollector'](()=>{const _0x405572=[];for(const [_0x2e0caa,_0x22c27e]of Array['from'](this['_suggestionToController'])){const _0x327d4a=_0x2e0caa['getAllAdjacentSuggestions'](),_0x5b6511=[];for(const _0xa67322 of _0x327d4a){if(!_0xa67322['isInContent'])continue;if(_0xa67322['isMultiRange']){_0x5b6511['push'](..._0xa67322['getRanges']());continue;}const _0x3aff0e=_0xa67322['getFirstRange']();if(_0x5b6511['length']>0x0){const _0x997ea4=_0x5b6511[0x0]['getJoined'](_0x3aff0e);if(_0x997ea4){_0x5b6511[0x0]=_0x997ea4;continue;}}_0x5b6511['push'](_0x3aff0e);}_0x405572['push']([_0x22c27e['view'],_0x5b6511]);}return _0x405572;}),this['listenTo'](_0x3099df,'suggestionLoaded',(_0x50929e,_0x597241)=>{this['listenTo'](_0x597241,'change:previous',(_0x147f4b,_0x3f6a42,_0x592808,_0x4251a7)=>{_0x597241['isInContent']&&(null==_0x592808?(this['_updateController'](_0x4251a7['head']),this['_handleSuggestionControllerDelayed'](_0x597241,!0x1)):(this['_updateController'](_0x592808['head']),null==_0x4251a7&&this['_handleSuggestionControllerDelayed'](_0x597241,!0x0)));}),null!==_0x597241['previous']?this['_updateController'](_0x597241['head']):this['_handleSuggestionControllerDelayed'](_0x597241,!0x1);}),this['listenTo'](_0x3099df,'suggestionUnloaded',(_0x1d3c42,_0x586c7a,_0x582bc0)=>{this['stopListening'](_0x586c7a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x586c7a),this['_suggestionToController']['has'](_0x586c7a)&&this['_destroyController'](_0x586c7a),_0x582bc0&&this['_updateController'](_0x582bc0['head']);}),this['listenTo'](_0x3099df,'suggestionChanged',(_0x242a89,_0x577b0e)=>{this['_updateController'](_0x577b0e);}),this['listenTo'](_0x590787,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5eddf7,'addComment',(_0x4f0c61,{threadId:_0x35f83d,isFromAdapter:_0x135211})=>{if(_0x135211||!_0x3099df['hasSuggestion'](_0x35f83d))return;const _0x3e3d33=_0x3099df['getSuggestion'](_0x35f83d);this['_suggestionToController']['get'](_0x3e3d33)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x327483=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x471df3;for(const _0x33b64f in _0x327483){const _0x426e7f=_0x33b64f,_0x1565f8=_0x327483[_0x426e7f];if('trackChangesLicenseKeyValid'==_0x1565f8||'trackChangesLicenseKeyInvalid'==_0x1565f8||'trackChangesLicenseKeyExpired'==_0x1565f8||'trackChangesLicenseKeyDomainLimit'==_0x1565f8||'trackChangesLicenseKeyNotAllowed'==_0x1565f8||'trackChangesLicenseKeyEvaluationLimit'==_0x1565f8||'trackChangesLicenseKeyUsageLimit'==_0x1565f8){delete _0x327483[_0x426e7f],_0x471df3=_0x1565f8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x471df3&&_0x327483['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x471df3&&_0x327483['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x471df3&&_0x327483['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x471df3&&_0x327483['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x471df3&&_0x327483['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x471df3&&_0x327483['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4933bb){const _0x267eb5=this['_suggestionToController']['get'](_0x4933bb);return _0x267eb5&&this['editor']['plugins']['get'](_0x14a75c)['getByInnerView'](_0x267eb5['view'])||null;}['getSuggestionForAnnotation'](_0x50dc60){const _0x33f994=this['_viewToController']['get'](_0x50dc60['innerView']);return _0x33f994?_0x33f994['model']:null;}['_refreshActiveMarkers'](){const _0x48bec6=this['editor']['plugins']['get'](_0x14a75c),_0x515dc3=this['editor']['plugins']['get'](nn),_0x50560c=Array['from'](_0x48bec6['activeAnnotations'],_0xbff4e3=>_0xbff4e3['innerView'])['filter'](_0x2fba19=>this['_viewToController']['has'](_0x2fba19)),_0x53217d=[];for(const _0x51baab of _0x50560c){const _0x35ac29=this['_viewToController']['get'](_0x51baab)['model']['getAllAdjacentSuggestions']();_0x53217d['push'](..._0x35ac29['reduce']((_0x182437,_0x707d12)=>[..._0x182437,..._0x707d12['getMarkerNames']()],[]));}_0x515dc3['activeMarkers']=_0x53217d;}['_addUIComponentsToFactory'](){const _0x54d436=this['editor'],_0x490463=_0x54d436['locale'],_0x14198f=St(_0x490463,'Track\x20changes'),_0x5abf3d=new _0x2c968b([{'type':'switchbutton','model':new _0x34fa2a({'withText':!0x0,'isToggleable':!0x0,'label':_0x14198f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x54d436['plugins']['has']('TrackChangesPreview')&&_0x5abf3d['addMany']([{'type':'separator'},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3155cf of _0x5abf3d)if(Cn(_0x3155cf)){const _0x4e4ea7=_0x54d436['commands']['get'](_0x3155cf['model']['commandName']);_0x3155cf['model']['bind']('isOn','isEnabled')['to'](_0x4e4ea7,'value','isEnabled');}_0x54d436['ui']['componentFactory']['add']('trackChanges',_0x3ed7fb=>this['_createToolbarButton'](_0x3ed7fb,_0x5abf3d,_0x14198f)),_0x54d436['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4c31e4=>this['_createMenuBarMenu'](_0x4c31e4,_0x5abf3d,_0x14198f));}['_createToolbarButton'](_0x292410,_0x386fac,_0xfd0cf4){const _0x163587=_0xfea874(_0x292410,_0x3fa594),_0x1f53b0=this['editor']['commands']['get']('trackChanges');_0x163587['buttonView']['set']({'tooltip':_0xfd0cf4,'label':_0xfd0cf4,'icon':_0x1bcfaa}),_0x163587['buttonView']['bind']('isOn')['to'](_0x1f53b0,'value'),_0x163587['buttonView']['on']('execute',()=>{_0x1f53b0['execute'](),this['editor']['editing']['view']['focus']();}),_0xa8f73d(_0x163587,_0x386fac,{'role':'menu'});const _0x2bd940=[];for(const _0x3624f0 of _0x386fac)Cn(_0x3624f0)&&_0x2bd940['push'](this['editor']['commands']['get'](_0x3624f0['model']['commandName']));const _0x607beb=_0x163587['buttonView'];return _0x607beb['actionView']['unbind']('isEnabled'),_0x607beb['arrowView']['unbind']('isEnabled'),_0x607beb['actionView']['bind']('isEnabled')['to'](_0x1f53b0,'isEnabled'),_0x607beb['arrowView']['bind']('isEnabled')['toMany'](_0x2bd940,'isEnabled',(..._0x4c94cc)=>_0x4c94cc['some'](_0x4ba424=>_0x4ba424)),_0x163587['on']('execute',_0x5311d3=>{this['editor']['execute'](_0x5311d3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x163587;}['_createMenuBarMenu'](_0x44b8ce,_0x303330,_0x323c80){const _0x57b3c5=new _0xd6e8b8(_0x44b8ce),_0x3876b4=this['editor']['commands']['get']('trackChanges');_0x57b3c5['buttonView']['set']({'label':_0x323c80,'icon':_0x1bcfaa});const _0xb9513b=new _0xfdc7c0(_0x44b8ce);for(const _0x376ec6 of _0x303330){if('separator'==_0x376ec6['type']){_0xb9513b['items']['add'](new _0x8ceee0(_0x44b8ce));continue;}const _0x49ed23=new _0x2bb385(_0x44b8ce,_0x57b3c5),_0x2fc7e9=new _0x5aeaf8(_0x44b8ce),_0x347b23=_0x376ec6['model'];_0x2fc7e9['bind'](...Object['keys'](_0x347b23))['to'](_0x347b23),_0x2fc7e9['delegate']('execute')['to'](_0x57b3c5),_0x2fc7e9['on']('execute',()=>{this['editor']['execute'](_0x347b23['commandName']),this['editor']['editing']['view']['focus']();}),_0x49ed23['children']['add'](_0x2fc7e9),_0xb9513b['items']['add'](_0x49ed23);}return _0x57b3c5['bind']('isEnabled')['to'](_0x3876b4,'isEnabled'),_0x57b3c5['panelView']['children']['add'](_0xb9513b),_0x57b3c5;}['_initializeController'](_0x59c5ff){const _0x1464ff=this['editor'],_0x169750=_0x1464ff['config'],_0x2d6526=_0x1464ff['plugins']['get'](_0x14a75c),_0x30defe=_0x1464ff['plugins']['get'](_0x15ba36),_0x466939=_0x1464ff['plugins']['get'](_0x56a282),_0x1fb52c=_0x1464ff['plugins']['get'](_0xbc2e11)['me'],_0x446184=_0x169750['get']('trackChanges')['SuggestionThreadView'],_0x85d281=_0x169750['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x41704b,CommentThreadInputView:_0x3810d8}=_0x1464ff['plugins']['get']('CommentsUI');let _0xbd2d16,_0x5062fd,_0x42b165;this['_annotationViews']['has'](_0x59c5ff['id'])?(_0x5062fd=this['_annotationViews']['get'](_0x59c5ff['id']),_0xbd2d16=_0x5062fd['mainView']):(_0xbd2d16=new _0x446184(_0x1464ff['locale'],_0x59c5ff,_0x1fb52c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x169750['get']('comments.editorConfig'),'licenseKey':_0x169750['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x169750['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x169750['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x169750['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f0d23(_0x169750['get']('locale'),_0x1464ff['locale']),'CommentView':_0x169750['get']('comments')['CommentView'],'CommentsListView':_0x41704b,'CommentThreadInputView':_0x3810d8,'SuggestionView':_0x85d281,'showAISource':_0x169750['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x169750['get']('trackChanges.aiAuthor'),'name':_0x169750['get']('trackChanges.aiAuthor')?.['name']||St(_0x1464ff['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0xbd2d16['suggestionView']['acceptButton']['on']('execute',()=>{_0x1464ff['editing']['view']['focus']();}),_0xbd2d16['suggestionView']['discardButton']['on']('execute',()=>{_0x1464ff['editing']['view']['focus']();}),_0x5062fd=_0x2d6526['createAnnotationView'](this['editor']['locale'],_0xbd2d16),_0x5062fd['bind']('isDirty')['to'](_0xbd2d16,'isDirty'),_0x5062fd['bind']('length')['to'](_0xbd2d16),_0x5062fd['bind']('type')['to'](_0xbd2d16,'type',_0x55f606=>'suggestion-'+_0x55f606),_0xbd2d16['on']('escape',()=>{_0x42b165['fire']('escape');}),this['_annotationViews']['set'](_0x59c5ff['id'],_0x5062fd));const _0xa0fa56=_0x30defe['createCommentThreadController'](_0x59c5ff['commentThread'],_0xbd2d16),_0x30903d=new Ln(_0x1464ff,_0x59c5ff,_0xbd2d16,_0xa0fa56),_0x48de72=_0x59c5ff['getAllAdjacentSuggestions']()['filter'](_0x6f1cc2=>_0x6f1cc2['isInContent']);_0xbd2d16['descriptionParts']=_0x1464ff['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x48de72),this['_suggestionToController']['set'](_0x59c5ff,_0x30903d),this['_viewToController']['set'](_0xbd2d16,_0x30903d);const _0x1b5a86=()=>{const _0x561615=[],_0x40b180=_0x59c5ff['getAllAdjacentSuggestions']()['filter'](_0x1b6df6=>_0x1b6df6['isInContent']);for(const _0x3f8dad of _0x40b180)_0x561615['push'](..._0x3f8dad['getMarkers']());return _0x49f7b6(_0x1464ff['editing'],_0x561615);};_0x42b165=_0x2d6526['createAnnotation']({'view':_0x5062fd,'target':_0x1b5a86,'type':()=>'suggestion-'+_0x30903d['view']['type'],'isVisible':!!_0x1b5a86()}),_0x30defe['_bindAnnotationToEditors'](_0xbd2d16,_0x42b165),_0x2d6526['add'](_0x42b165),_0x466939['registerAnnotation'](_0x42b165);}['_destroyController'](_0x158613){const _0x3cdabd=this['editor']['plugins']['get'](_0x15ba36),_0x1c09c9=this['editor']['plugins']['get'](_0x14a75c),_0x1bd3dd=this['_suggestionToController']['get'](_0x158613),_0x5082d8=_0x1bd3dd['view'],_0x94c9f8=_0x1c09c9['getByInnerView'](_0x5082d8);_0x3cdabd['_unbindEditors'](_0x5082d8),_0x94c9f8&&_0x1c09c9['remove'](_0x94c9f8),this['_suggestionToController']['delete'](_0x158613),this['_viewToController']['delete'](_0x5082d8),_0x1bd3dd['destroy']();}['_updateController'](_0x875e98){if(!_0x875e98['isInContent']||!this['_suggestionToController']['has'](_0x875e98))return;const _0x24ee47=this['editor']['plugins']['get'](nn),_0x215897=this['_suggestionToController']['get'](_0x875e98),_0x1e006a=_0x875e98['getAllAdjacentSuggestions']();_0x215897['view']['descriptionParts']=_0x24ee47['descriptionFactory']['getDescriptions'](_0x1e006a);}['destroy'](){for(const _0x1c34fe of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c34fe);for(const _0x359559 of this['_annotationViews']['values']())_0x359559['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0xc44e37){return'model'in _0xc44e37;}var Rn=class extends _0x413c81{static get['requires'](){return[nn,kn,_0x267b7c];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x243e93){this['editor']['plugins']['get'](nn)['adapter']=_0x243e93;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x32a857){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x32a857);}['getSuggestions']({skipNotAttached:_0x158958=!0x1,toJSON:_0x5b9e10=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x158958,'toJSON':_0x5b9e10});}['getSuggestion'](_0x19b939){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x19b939);}};const Nn=['Pagination'];var yn=class extends _0x413c81{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1ec507=this['editor'];if(_0x1ec507['config']['define']('trackChangesData.editorCreator',_0xe49bba=>{const _0x1b0435=_0x1ec507['model']['document']['getRootNames']()['reduce']((_0x206a0d,_0x4418fd)=>(_0x206a0d[_0x4418fd]='',_0x206a0d),{});return _0x1ec507['constructor']['create'](_0x1b0435,_0xe49bba);}),'function'!=typeof _0x1ec507['config']['get']('trackChangesData')['editorCreator'])throw new _0x5748df('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10fc52){return On(this['editor'],!0x0,_0x10fc52);}['getDataWithDiscardedSuggestions'](_0x2574df){return On(this['editor'],!0x1,_0x2574df);}},Sn=class extends _0x413c81{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x424ae6){super(_0x424ae6),this['result']='end',_0x424ae6['editing']['view']['_overlayModeHint']='auto',_0x424ae6['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}['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 Mn(_0x191bb1){return void 0x0!==_0x191bb1['getRootsAttributes'];}async function On(_0x5196b2,_0x1e588a,_0x5792a2){const _0x251200=_0x2ac1c7(_0x5196b2,Nn);if(_0x251200['plugins']['push'](nn,Sn),Mn(_0x5196b2)){_0x251200['roots']=Object['create'](null);for(const _0x290c13 of _0x5196b2['model']['document']['getRootNames']())_0x251200['roots'][_0x290c13]={'modelAttributes':_0x5196b2['getRootAttributes'](_0x290c13)};}const _0xbbe8d7=document['createDocumentFragment'](),_0x43ec40=_0x5196b2['config']['get']('trackChangesData')['editorCreator'],_0x230989=await _0x43ec40(_0x251200,()=>function(_0x27cb4b){const _0xcf5abd=document['createElement']('div');return _0x27cb4b['appendChild'](_0xcf5abd),_0xcf5abd;}(_0xbbe8d7));!function(_0x2a4ae0,_0x43eb2d){const _0x4dd058=_0x2a4ae0['model']['document']['getRootNames']()['reduce']((_0x284131,_0x5af689)=>(_0x284131[_0x5af689]=_0x2a4ae0['data']['get']({'rootName':_0x5af689}),_0x284131),{}),_0x5b9faa=_0x2a4ae0['plugins']['get']('Users')['users']['map'](_0x476973=>({'id':_0x476973['id'],'name':_0x476973['name']})),_0x5cea42=_0x2a4ae0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45dac6=_0x2a4ae0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44dbed=_0x43eb2d['plugins']['get']('Users'),_0x3d624b=_0x43eb2d['plugins']['get']('TrackChangesEditing'),_0x125755=_0x43eb2d['plugins']['get']('CommentsRepository');for(const _0x379fc3 of _0x125755['getCommentThreads']())_0x379fc3['remove']();for(const _0x5cd0f7 of _0x5b9faa)_0x44dbed['getUser'](_0x5cd0f7['id'])||_0x44dbed['addUser'](_0x5cd0f7);_0x44dbed['me']||_0x44dbed['useAnonymousUser']();for(const _0x54f4bb of _0x45dac6)_0x125755['addCommentThread'](_0x54f4bb);for(const _0x8f1b6 of _0x5cea42)_0x3d624b['addSuggestionData'](_0x8f1b6);_0x43eb2d['data']['set'](_0x4dd058);}(_0x5196b2,_0x230989),_0x230989['execute'](_0x1e588a?'acceptAllSuggestions':'discardAllSuggestions');const _0x46d035=Mn(_0x230989)?_0x230989['getFullData'](_0x5792a2):_0x230989['data']['get'](_0x5792a2);return await _0x230989['destroy'](),_0x46d035;}var wn=class extends _0x4ceb53{['options'];constructor(_0x13ae97,_0x5c48f2){super(_0x13ae97),this['options']=_0x5c48f2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x35f1fc,_0x1ec8f5){if(!this['element'])return;const _0x3bbdb9=[];for(const [_0x59f8d3,_0x4f2737]of _0x35f1fc){const _0x430118=document['createElement']('div');_0x430118['setAttribute']('data-ck-root-name',_0x59f8d3),_0x430118['className']=_0x4f2737['classes']+'\x20ck-track-changes-preview__root-container',_0x430118['innerHTML']=_0x4f2737['content'],_0x3bbdb9['push'](_0x430118);}_0x1ec8f5(this['element'],_0x3bbdb9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x3e1ff9{constructor(_0x4ebf91){super(_0x4ebf91),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4a66bf=this['editor'],_0x35e17d=_0x4a66bf['locale'],_0x234a9a=_0x4a66bf['plugins']['get']('Dialog');let _0x4fbd78;const _0x2a7d32=function(_0x53526c){const _0x5e4259={};if('editables'in _0x53526c['ui']['view']){for(const [_0xf656f7,_0x3ebb95]of Object['entries'](_0x53526c['ui']['view']['editables']))_0x5e4259[_0xf656f7]=_0x3ebb95['element'];}else _0x5e4259[_0x53526c['model']['document']['getRootNames']()[0x0]]=_0x53526c['ui']['view']['editable']['element'];return _0x5e4259;}(_0x4a66bf),_0x10889a=function(_0x1f052d){let _0x340b84=0x0;for(const _0x1965c4 of Object['values'](_0x1f052d))_0x340b84=Math['max'](_0x340b84,_0x1965c4['getBoundingClientRect']()['width']);let _0x11d4bf=0x0;for(const _0x58cc5e of Object['values'](_0x1f052d))_0x11d4bf+=_0x58cc5e['getBoundingClientRect']()['height'];const _0x2ec514=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x340b84,'height':Math['min'](_0x11d4bf,_0x2ec514)};}(_0x2a7d32);_0x234a9a['show']({'id':'finalContentPreview','title':St(_0x35e17d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x35e17d,{'dialogRects':_0x10889a}),'onHide':()=>{_0x4fbd78['detachFromDom']();},'onShow':()=>{_0x4a66bf['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b96c4=>{const _0x30a11a=this['_standarizeRootsData'](_0x2b96c4,_0x4a66bf,_0x2a7d32);_0x234a9a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x30a11a,_0x4a66bf['config']['get']('trackChanges.preview.renderFunction'));}),_0x4fbd78=new _0x5496d7(_0x35e17d,[_0x234a9a['view']]),_0x4fbd78['attachToDom'](),_0x4fbd78['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4a66bf['once']('destroy',()=>{_0x4fbd78['detachFromDom']();});const _0x2c843c=_0x234a9a['view']['headerView']['class'];_0x234a9a['view']['headerView']['class']=_0x2c843c?_0x2c843c+'\x20ck-reset_all':'ck-reset_all',_0x234a9a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x234a9a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1022dc=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2ee00e=_0x1022dc['previewMode'],_0x1f465d={};if('$labels'===_0x2ee00e){for(const _0x22c145 of _0x1022dc['getMergeFieldsIds']())_0x1f465d[_0x22c145]=_0x1022dc['getLabel'](_0x22c145)||_0x22c145;}else{const _0x5b09ff='$defaultValues'===_0x2ee00e?_0x1022dc['getDefaultValues']():_0x1022dc['getDataSetValues'](_0x2ee00e,!0x0);for(const _0x855f94 of Object['entries'](_0x5b09ff)){const [_0x58174c,_0x241ce6]=_0x855f94;_0x1f465d[_0x58174c]=null!==_0x241ce6?_0x241ce6:_0x1022dc['getLabel'](_0x58174c)||_0x58174c;}}return{'mergeFieldsData':_0x1f465d};}['_standarizeRootsData'](_0x46d4d0,_0x20ed00,_0x1a658a){let _0x24bf0b;_0x24bf0b='string'==typeof _0x46d4d0?{[_0x20ed00['model']['document']['getRootNames']()[0x0]]:_0x46d4d0}:_0x46d4d0;const _0x2c1c96=this['_fixMediaEmbeds'](_0x24bf0b,_0x20ed00);return function(_0x170c3a,_0x35111f){for(const [_0x58d064,_0x2504b1]of _0x170c3a)_0x2504b1['classes']=_0x35111f[_0x58d064]['classList']['value']['replace']('ck-focused','');return _0x170c3a;}(this['_sortRoots'](_0x20ed00)['reduce']((_0x3e257d,_0x40df18)=>(_0x3e257d['push']([_0x40df18,{'content':_0x2c1c96[_0x40df18],'classes':''}]),_0x3e257d),[]),_0x1a658a);}['_fixMediaEmbeds'](_0x42ef07,_0x28be4d){if(!_0x28be4d['plugins']['has']('MediaEmbedEditing'))return _0x42ef07;const _0x3c11bf=_0x28be4d['plugins']['get']('MediaEmbedEditing');for(const [_0x5339c7,_0x209a80]of Object['entries'](_0x42ef07)){const _0x5b5c1e=document['createElement']('div');_0x5b5c1e['innerHTML']=_0x209a80,_0x5b5c1e['querySelectorAll']('figure.media')['forEach'](_0x2df207=>{const _0x5c8c2e=_0x2df207['querySelector']('oembed');if(_0x5c8c2e){const _0x205368=_0x5c8c2e['getAttribute']('url');if(_0x205368){const _0x1b7152=_0x3c11bf['registry']['getMediaViewElement'](new ot(_0x28be4d['editing']['view']['document']),_0x205368,{'elementName':'','renderForEditingView':!0x0}),_0x4f7480=document['createElement']('div');_0x4f7480['classList']['add']('ck-media__wrapper'),_0x1b7152['render'](_0x4f7480,_0x28be4d['editing']['view']['domConverter']),_0x5c8c2e['replaceWith'](_0x4f7480);}}}),_0x42ef07[_0x5339c7]=_0x5b5c1e['innerHTML'];}return _0x42ef07;}['_sortRoots'](_0x29e437){if(!function(_0x5e5015){return void 0x0!==_0x5e5015['getRootsAttributes'];}(_0x29e437))return _0x29e437['model']['document']['getRootNames']();const _0xc559f3=[],_0x5ee4d8=new Map();for(const _0x539d00 of _0x29e437['model']['document']['getRootNames']()){const _0x23b8a6=_0x29e437['editing']['view']['getDomRoot'](_0x539d00)['getClientRects']()['item'](0x0);_0xc559f3['push'](_0x539d00),_0x5ee4d8['set'](_0x539d00,_0x23b8a6);}return _0xc559f3['sort']((_0xb31f49,_0x308565)=>{const _0x2836ff=_0x5ee4d8['get'](_0xb31f49),_0x39d57e=_0x5ee4d8['get'](_0x308565);return _0x2836ff['y']-_0x39d57e['y']||_0x2836ff['x']-_0x39d57e['x'];}),_0xc559f3;}},Bn=class extends _0x413c81{static get['requires'](){return[yn,_0x411989];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f072d){super(_0x1f072d),_0x1f072d['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x1f072d['config']['define']('trackChanges.preview.renderFunction',(_0x5291b4,_0x3e4b86)=>{for(const _0x564367 of _0x3e4b86)_0x5291b4['appendChild'](_0x564367);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
23
+ import{Command as _0x22ac6a,PendingActions as _0x3fa9a4,Plugin as _0x449cd5}from'@ckeditor/ckeditor5-core';import{Annotations as _0x47fdc7,Comments as _0x522ebb,CommentsRepository as _0x29457b,EditorAnnotations as _0x2c98bc}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x403c95,Collection as _0x96fb93,FocusTracker as _0x348918,KeystrokeHandler as _0x164365,ObservableMixin as _0x1c6439,getEnvKeystrokeText as _0x21d341,insertToPriorityArray as _0x2d03de,logWarning as _0x5338e2,priorities as _0x449a53,uid as _0x1c0f04}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x188a57,IconCancel as _0x48ae6f,IconCheck as _0x5bafee,IconSparkle as _0x42dd33,IconTrackChanges as _0x149db9}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x469b4b,Dialog as _0x2857d2,FocusCycler as _0x2b68a6,ListSeparatorView as _0x59f2ec,MenuBarMenuListItemButtonView as _0x107b4c,MenuBarMenuListItemView as _0x252db8,MenuBarMenuListView as _0x1aa70f,MenuBarMenuView as _0x13a0ed,SplitButtonView as _0x4ed210,UIModel as _0x5a9814,View as _0x341170,ViewCollection as _0x2d62a6,addListToDropdown as _0x4106d7,createDropdown as _0x2a87d2,normalizeColorOptions as _0x1df80d}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x453221,CollaborationUserColor as _0x1ac64f,DocumentCompare as _0xa1008,FOCUS_ANNOTATION_KEYSTROKE as _0x210fd5,LateFocusButtonView as _0x5ae44f,PillView as _0x3bac69,SuggestionsConversion as _0x2962ea,User as _0x38c04d,UserView as _0x3ba6de,Users as _0x31fa66,fixElementSuggestionRange as _0x1c310a,getAllMarkersDomElementsSorted as _0x23a1bb,getDateTimeFormatter as _0x487ee3,hashObject as _0x328459,sanitizeEditorConfig as _0x38df16,setupThreadKeyboardNavigation as _0xa5a80f,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x22ac6a{['_enabledCommands'];constructor(_0x10e9f2,_0x1eefc5){super(_0x10e9f2),this['_enabledCommands']=_0x1eefc5,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 _0x230376 of this['editor']['commands']['commands']())_0x230376['affectsData']&&!this['_enabledCommands']['has'](_0x230376)&&_0x230376['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x39139c of this['editor']['commands']['commands']())_0x39139c['affectsData']&&!this['_enabledCommands']['has'](_0x39139c)&&_0x39139c['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x22ac6a{['_suggestions'];constructor(_0xd8c5ad,_0x57b2de){super(_0xd8c5ad),this['_suggestions']=_0x57b2de,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x590a82){const _0x216c32=this['_suggestions']['get'](_0x590a82);if(!_0x216c32)throw new _0x403c95('track-changes-accept-suggestion-not-found',this);const _0x3290ad=_0x216c32['getRanges']();this['editor']['model']['canEditAt'](_0x3290ad)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x216c32);}},_t=class extends _0x22ac6a{['_suggestions'];constructor(_0x59fd10,_0x54a458){super(_0x59fd10),this['_suggestions']=_0x54a458,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x30608b){const _0x27ee9f=this['_suggestions']['get'](_0x30608b);if(!_0x27ee9f)throw new _0x403c95('track-changes-discard-suggestion-not-found',this);const _0x12d906=_0x27ee9f['getRanges']();this['editor']['model']['canEditAt'](_0x12d906)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x27ee9f);}};function pt(_0x1db470,_0x1127df){let _0x414fcb='';return _0x414fcb+=_0x1db470['split']('*')['map']((_0x1e8669,_0x1f2878)=>_0x1f2878%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x1e8669)+'</span>':Lt(_0x1e8669))['join'](''),_0x1127df&&(_0x414fcb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1127df['value']+'\x22\x20title=\x22'+_0x1127df['title']+'\x22></span>'),_0x414fcb;}function Lt(_0xa2107d){const _0xd3ace4=document['createElement']('span');return _0xd3ace4['innerText']=_0xa2107d,_0xd3ace4['innerHTML'];}function It(_0x21c755){return _0x21c755['sort']((_0x4da73c,_0x9dd7a4)=>'attribute'===_0x4da73c['type']&&'attribute'!==_0x9dd7a4['type']?-0x1:'attribute'!==_0x4da73c['type']&&'attribute'===_0x9dd7a4['type']?0x1:'deletion'==_0x4da73c['type']&&'deletion'!=_0x9dd7a4['type']?-0x1:'deletion'!=_0x4da73c['type']&&'deletion'==_0x9dd7a4['type']?0x1:0x0);}function At(_0x270c19,_0x4dc449){let _0x4eb244,_0x516031=0x0;const _0x174e50=[],_0x5d347b=_0x4dc449['schema'];for(;_0x516031<_0x270c19['length'];){const _0x5c7faa=_0x270c19[_0x516031],_0x2492b9=_0x270c19[_0x516031+0x1];_0x4eb244||(_0x4eb244=_0x4dc449['createPositionBefore'](_0x5c7faa)),bt(_0x4dc449,_0x5c7faa,_0x2492b9)||(_0x174e50['push'](_0x4dc449['createRange'](_0x4eb244,_0x5d347b['isObject'](_0x5c7faa)?_0x4dc449['createPositionAfter'](_0x5c7faa):_0x4dc449['createPositionAt'](_0x5c7faa,'end'))),_0x4eb244=null),_0x516031++;}return _0x174e50;}function bt(_0x49ea7f,_0x134dae,_0x50b97f){if(!_0x50b97f)return!0x1;const _0x5eabba=_0x49ea7f['createPositionAfter'](_0x134dae),_0x24e5b5=_0x49ea7f['createPositionBefore'](_0x50b97f);return _0x5eabba['isTouching'](_0x24e5b5);}function kt(_0x428573,_0x2ef421,_0x3ad7bc){for(;_0x3ad7bc['length'];){const _0xca2d14=_0x3ad7bc['splice'](0x0,0x64);_0x428573['change'](()=>{for(const _0x4646b9 of _0xca2d14)_0x4646b9['isInContent']&&_0x2ef421['execute'](_0x4646b9['id']);});}}var Ct=class extends _0x22ac6a{['_command'];['_suggestions'];constructor(_0x18f53f,_0x167e4e,_0x4302c1){super(_0x18f53f),this['_command']=_0x167e4e,this['_suggestions']=_0x4302c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36cc99=Array['from'](this['_suggestions']['values']())['some'](_0x11684c=>_0x11684c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36cc99;}['execute'](){const _0x5cf11d=It(Array['from'](this['_suggestions']['values']()));for(const _0x575bc0 of _0x5cf11d){const _0x1986dd=_0x575bc0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1986dd))return;}kt(this['editor']['model'],this['_command'],_0x5cf11d);}},Rt=class extends _0x22ac6a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a45dc,_0x37f723,_0x9ad61c){super(_0x4a45dc),this['_command']=_0x37f723,this['_suggestions']=_0x9ad61c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5724c3=this['editor']['model']['document']['selection'],_0x36db51=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x184568,_0x2c9a92){const _0x228613=Array['from'](_0x184568['getRanges']()),_0x4ecd8e=new Set();for(const _0x7f3eb of _0x2c9a92)if(_0x7f3eb['isInContent']){for(const _0x11987d of _0x228613)for(const _0x57d9c0 of _0x7f3eb['getRanges']())(_0x11987d['isIntersecting'](_0x57d9c0)||_0x184568['isCollapsed']&&!_0x7f3eb['isMultiRange']&&_0x7f3eb['next']&&_0x57d9c0['end']['isTouching'](_0x11987d['start']))&&_0x4ecd8e['add'](_0x7f3eb);}return _0x4ecd8e;}(_0x5724c3,_0x36db51),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x50fe5d=It(Array['from'](this['_selectedSuggestions']));for(const _0xb050ed of _0x50fe5d){const _0x50bda6=_0xb050ed['getRanges']();if(!this['editor']['model']['canEditAt'](_0x50bda6))return;}kt(this['editor']['model'],this['_command'],_0x50fe5d);}};const Nt=/* #__PURE__ -- @preserve */
24
+ _0x1c6439();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4cc1af,_0x4c13c9){super(),this['id']=_0x4c13c9['id'],this['type']=_0x4c13c9['type'],this['subType']=_0x4c13c9['subType']||null,this['author']=_0x4c13c9['author'],this['creator']=_0x4c13c9['creator']||_0x4c13c9['author'],this['data']=null,this['_originalSuggestionId']=_0x4c13c9['originalSuggestionId']||null,this['_model']=_0x4cc1af,this['_onAccept']=_0x4c13c9['onAccept'],this['_onDiscard']=_0x4c13c9['onDiscard'],this['_onAttributesChange']=_0x4c13c9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4c13c9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x16e58b=this;for(;_0x16e58b['previous'];)_0x16e58b=_0x16e58b['previous'];return _0x16e58b;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1ffdcf){this['_markerNames']['add'](_0x1ffdcf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44fb2b=>this['_model']['markers']['get'](_0x44fb2b))['filter'](_0x41907f=>_0x41907f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f6a53=>{for(const _0x782e12 of this['getMarkers']())_0x1f6a53['removeMarker'](_0x782e12);}),this['_markerNames']['clear']();}['removeMarker'](_0xbb1212){this['_model']['change'](_0x58c0af=>{_0x58c0af['removeMarker'](_0xbb1212);}),this['_markerNames']['delete'](_0xbb1212);}['addRange'](_0x502608){const _0x35f93a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x35f93a),this['_model']['change'](_0x16e691=>{_0x16e691['addMarker'](_0x35f93a,{'range':_0x502608,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46a882){for(const _0x27ac53 of this['getRanges']())if(_0x27ac53['isIntersecting'](_0x46a882))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x498034=>_0x498034['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19ce98,_0x5c6d25)=>[..._0x19ce98,..._0x5c6d25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x436081=this['getRanges']();if(0x1!=_0x436081['length'])return null;const _0x3aaef2=_0x436081[0x0],_0x379b83=_0x3aaef2['start']['nodeAfter'],_0x10c067=_0x3aaef2['end']['nodeBefore'];return _0x379b83 instanceof it?_0x379b83!=_0x10c067?null:_0x379b83: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 _0x3e2276=[];let _0xdabc6a=this['head'];for(;_0xdabc6a;)_0x3e2276['push'](_0xdabc6a),_0xdabc6a=_0xdabc6a['next'];return _0x3e2276;}['setAttribute'](_0x346cc6,_0xa50964){const _0x420706=at(this['attributes']);ut(_0x420706,_0x346cc6,_0xa50964),ct(_0x420706,this['attributes'])||(this['attributes']=_0x420706,this['_onAttributesChange'](_0x420706));}['removeAttribute'](_0xcbe8cd){const _0x3e3c70=at(this['attributes']);dt(_0x3e3c70,_0xcbe8cd),ct(_0x3e3c70,this['attributes'])||(this['attributes']=_0x3e3c70,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 _0x1c0f04()['substr'](0x1,0x5);}};function St(_0x860279,_0x43a3b1,_0x25a4ea){const _0x31c181=_0x860279['t'],t=_0x860279['t'];switch(_0x43a3b1){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x25a4ea);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x25a4ea);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x25a4ea);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x25a4ea);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x25a4ea);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',_0x25a4ea);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x25a4ea);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x25a4ea);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x25a4ea);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x25a4ea);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x25a4ea);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x25a4ea);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x25a4ea);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x25a4ea);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x25a4ea);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x25a4ea);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x25a4ea);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x25a4ea);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x25a4ea);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x25a4ea);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x25a4ea);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x25a4ea);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x25a4ea);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x25a4ea);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x25a4ea);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x25a4ea);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x25a4ea);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x25a4ea);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x25a4ea);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x25a4ea);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x25a4ea);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x25a4ea);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x25a4ea);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x25a4ea);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x25a4ea);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x25a4ea);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x25a4ea);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x25a4ea);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x25a4ea);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'},_0x25a4ea);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x25a4ea);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x25a4ea);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x25a4ea);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x25a4ea);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x25a4ea);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x25a4ea);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x25a4ea);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x25a4ea);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x31c181({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x25a4ea);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x31c181({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x25a4ea);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x25a4ea);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x25a4ea);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x25a4ea);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x25a4ea);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x43a3b1;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b1d65,_0x2e6c0d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b1d65,this['_locale']=_0x2e6c0d;}['getDescriptions'](_0x281a37){const _0x98dceb=[],_0x44aa14=new Set(),_0x4a2d89=new Set();for(let _0x27e615=0x0;_0x27e615<_0x281a37['length'];_0x27e615++){const _0x3bc43f=_0x281a37[_0x27e615];if(!_0x3bc43f['isInContent'])continue;const _0x379c41=this['_handleCustomCallbackDescription'](_0x3bc43f);if(_0x379c41){if(null!=_0x3bc43f['subType']){if(_0x44aa14['has'](_0x3bc43f['subType']))continue;_0x44aa14['add'](_0x3bc43f['subType']);}_0x98dceb['push'](_0x379c41);}else{if('attribute'==_0x3bc43f['type']){const _0x29a484=_0x3bc43f['data']['key'];if(_0x4a2d89['has'](_0x29a484))continue;_0x4a2d89['add'](_0x3bc43f['data']['key']),'$elementName'==_0x29a484?this['_handleRenameSuggestionDescription'](_0x98dceb,_0x3bc43f):this['_handleAttributeSuggestionDescription'](_0x98dceb,_0x3bc43f);continue;}'insertion'!=_0x3bc43f['type']&&'deletion'!=_0x3bc43f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x98dceb,_0x3bc43f,_0x281a37[_0x27e615+0x1]);}}return this['_resolveDescriptionItems'](_0x98dceb);}['registerDescriptionCallback'](_0x2446e5){this['_customCallbacks']['push'](_0x2446e5);}['registerElementLabel'](_0x2f0dab,_0x5110c0,_0x10a859=_0x449a53['normal']){'function'==typeof _0x2f0dab?_0x2d03de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2f0dab,'label':_0x5110c0,'priority':_0x10a859}):this['_itemLabels']['set'](_0x2f0dab,_0x5110c0);}['registerAttributeLabel'](_0x3bdb17,_0x7f15fe){this['_attributeLabels']['set'](_0x3bdb17,_0x7f15fe);}['getItemLabel'](_0x94a783,_0xa39314=0x1){let _0x34e999;for(const _0x4a1d3e of this['_itemLabelsCallbacks'])if(_0x4a1d3e['matchingCallback'](_0x94a783)){_0x34e999=_0x4a1d3e['label'];break;}return _0x34e999||(_0x34e999=this['_itemLabels']['get'](_0x94a783['name'])),_0x34e999?_0x34e999(_0xa39314):0x1!==_0xa39314?_0xa39314+'\x20'+_0x94a783['name']+'s':''+_0x94a783['name'];}['_addDescriptionItems'](_0x2480c6,_0x4bf985){const _0x3ac5a0=_0x4bf985['getFirstRange']()['getWalker'](),_0xd29527='insertion'==_0x4bf985['type']?'add':'remove';for(const _0x3af41a of _0x3ac5a0){const _0x204d53=_0x3af41a['item'],_0x2c953=_0x2480c6[_0x2480c6['length']-0x1];if(_0x204d53['is']('$textProxy'))_0x2c953&&_0x2c953['type']['indexOf']('Container')>-0x1&&_0x2480c6['pop'](),_0x2c953&&'text'==_0x2c953['type']?_0x2c953[_0xd29527]+=_0x204d53['data']:_0x2480c6['push']({'type':'text','add':'add'==_0xd29527?_0x204d53['data']:'','remove':'remove'==_0xd29527?_0x204d53['data']:''});else{if(this['_schema']['isObject'](_0x204d53)){const _0xb7fe57=_0x204d53;if(_0x2c953&&_0x2c953['type']['indexOf']('Container')>-0x1&&_0x2480c6['pop'](),'elementEnd'==_0x3af41a['type'])continue;_0x2c953&&_0x2c953['type']==_0xd29527+'Object'&&_0x2c953['element']['name']==_0xb7fe57['name']?_0x2c953['quantity']++:_0x2480c6['push']({'type':_0xd29527+'Object','element':_0xb7fe57,'quantity':0x1}),_0x3ac5a0['skip'](_0x543a51=>!('elementEnd'==_0x543a51['type']&&_0x543a51['item']==_0x204d53));}else{if(this['_schema']['checkChild'](_0x204d53,'$text')||_0x204d53['is']('element','softBreak')){const _0x23e7de=_0x204d53;if('add'==_0xd29527&&'elementStart'==_0x3af41a['type']||'remove'==_0xd29527&&'elementEnd'==_0x3af41a['type'])continue;if(_0x2c953&&-0x1==_0x2c953['type']['indexOf']('Container')){'text'==_0x2c953['type']&&(_0x2c953[_0xd29527]+='\x0a');continue;}let _0x3bbb3c;if(_0x3bbb3c='add'==_0xd29527?_0x23e7de['nextSibling']&&!this['_schema']['isObject'](_0x23e7de['nextSibling'])?_0x23e7de['nextSibling']:null:_0x23e7de['previousSibling']&&!this['_schema']['isObject'](_0x23e7de['previousSibling'])?_0x23e7de['previousSibling']:null,_0x23e7de['isEmpty']||_0x3bbb3c&&_0x3bbb3c['isEmpty']){const _0xb225b0=_0x3bbb3c&&_0x3bbb3c['isEmpty']?_0x3bbb3c:_0x23e7de;_0x2c953&&_0x2c953['type']==_0xd29527+'EmptyContainer'&&_0x2c953['element']['name']==_0xb225b0['name']?_0x2c953['quantity']++:_0x2480c6['push']({'type':_0xd29527+'EmptyContainer','element':_0xb225b0,'quantity':0x1});}else _0x2480c6['push']({'type':_0xd29527+'Container','element':_0x23e7de});}}}}}['_resolveDescriptionItems'](_0x48876f){const _0x17c3eb=this['_locale'],_0x1e4499=[],_0x3d72dc=[],_0x536541=[];for(const _0x3cac27 of _0x48876f)switch(_0x3cac27['type']){case'text':if(_0x3cac27['add']=_0x3cac27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cac27['remove']=_0x3cac27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cac27['add']&&''!=_0x3cac27['remove']){_0x1e4499['push']({'type':'replace','content':St(_0x17c3eb,'REPLACE_TEXT',['\x22'+_0x3cac27['remove']+'\x22','\x22'+_0x3cac27['add']+'\x22'])});continue;}if(null!=_0x3cac27['add']['match'](/^ +$/)){_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0',St(_0x17c3eb,'ELEMENT_SPACE',_0x3cac27['add']['length']))});continue;}if(null!=_0x3cac27['remove']['match'](/^ +$/)){_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0',St(_0x17c3eb,'ELEMENT_SPACE',_0x3cac27['remove']['length']))});continue;}if(''!=_0x3cac27['add']){_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0','\x22'+_0x3cac27['add']+'\x22')});continue;}_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0','\x22'+_0x3cac27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'addContainer':_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Split:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'removeContainer':_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Merge:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'addFormat':_0x3d72dc['push'](_0x3cac27['key']);continue;case'removeFormat':_0x536541['push'](_0x3cac27['key']);continue;default:_0x1e4499['push'](_0x3cac27);}if(_0x3d72dc['length']){const _0x469fab=_0x3d72dc['map'](_0x2f5da7=>this['_attributeLabels']['has'](_0x2f5da7)?this['_attributeLabels']['get'](_0x2f5da7):_0x2f5da7)['join'](',\x20');_0x1e4499['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x469fab)});}if(_0x536541['length']){const _0x3412a6=_0x536541['map'](_0x55ecd5=>this['_attributeLabels']['has'](_0x55ecd5)?this['_attributeLabels']['get'](_0x55ecd5):_0x55ecd5)['join'](',\x20');_0x1e4499['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x3412a6)});}return _0x1e4499;}['_handleCustomCallbackDescription'](_0x34062e){for(const _0x569849 of this['_customCallbacks']){const _0x436287=_0x569849(_0x34062e);if(_0x436287&&'type'in _0x436287)return _0x436287;}}['_handleAttributeSuggestionDescription'](_0x1e9277,_0x347a09){const _0xa3d840=_0x347a09['data'],_0x15570b=void 0x0===_0xa3d840['newValue']?'removeFormat':'addFormat';_0x1e9277['push']({'type':_0x15570b,'key':_0xa3d840['key']});}['_handleRenameSuggestionDescription'](_0x544951,_0x695cf3){_0x544951['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x695cf3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xebc61b,_0x2984e5,_0x3d7729){if(this['_addDescriptionItems'](_0xebc61b,_0x2984e5),_0x3d7729&&_0x3d7729['getFirstRange']()&&!_0x2984e5['getFirstRange']()['end']['isEqual'](_0x3d7729['getFirstRange']()['start'])){const _0x4e3dd4=_0xebc61b[_0xebc61b['length']-0x1],_0x227af8='insertion'==_0x2984e5['type']?'add':'remove';_0x4e3dd4&&'text'==_0x4e3dd4['type']&&(_0x4e3dd4[_0x227af8]+='\x0a');}}},Ot=class extends _0x449cd5{['afterInit'](){const _0x381337=this['editor'],_0x59659f=_0x381337['plugins']['get']('TrackChangesEditing');_0x381337['commands']['get']('showAIAssistant')&&_0x59659f['enableCommand']('showAIAssistant');}},wt=class extends _0x449cd5{['afterInit'](){const _0x4b6e5c=this['editor'],_0x356aad=_0x4b6e5c['plugins']['get']('TrackChangesEditing');_0x4b6e5c['commands']['get']('toggleAi')&&_0x356aad['enableCommand']('toggleAi');}},Ft=class extends _0x449cd5{['afterInit'](){const _0x348450=this['editor'],_0xf02f87=_0x348450['plugins']['get']('TrackChangesEditing');_0x348450['commands']['get']('aiQuickAction')&&_0xf02f87['enableCommand']('aiQuickAction');}},Bt=class extends _0x449cd5{['afterInit'](){const _0xd978d8=this['editor'],_0x1778aa=_0xd978d8['locale'];if(!_0xd978d8['plugins']['has']('AlignmentEditing'))return;const _0x47142c=_0xd978d8['plugins']['get']('TrackChangesEditing');_0x47142c['enableDefaultAttributesIntegration']('alignment'),_0x47142c['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x1778aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbded7d=this['editor'],_0x5077a4=_0xbded7d['locale'];_0xbded7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24709e=>{if('formatBlock'!=_0x24709e['type'])return;const {data:_0x13672b}=_0x24709e;if(_0x13672b&&'alignment'==_0x13672b['commandName']){const _0x452610=_0x13672b['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x5077a4,'*Format:*\x20%0',function(_0x43e82b){switch(_0x43e82b){case'left':return St(_0x5077a4,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x5077a4,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x5077a4,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x5077a4,'FORMAT_JUSTIFY_TEXT');}}(_0x452610))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x449cd5{['afterInit'](){const _0x46036d=this['editor'],_0xbab89=_0x46036d['plugins']['get']('TrackChangesEditing'),_0x378b27=_0x46036d['locale'];for(const _0x172ca9 of vt){if(!_0x46036d['plugins']['has'](_0x172ca9))continue;const _0xa02c78=_0x172ca9['slice'](0x0,-0x7)['toLowerCase'](),_0x5432f3='FORMAT_'+_0xa02c78['toUpperCase']();_0xbab89['enableDefaultAttributesIntegration'](_0xa02c78),_0xbab89['descriptionFactory']['registerAttributeLabel'](_0xa02c78,St(_0x378b27,_0x5432f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dfaf7=this['editor'],_0x3c2318=_0x5dfaf7['locale'],_0x4676e5=_0x5dfaf7['plugins']['get']('TrackChangesEditing');function _0x3ca264(_0xc8ec42,_0x1cd273){_0x4676e5['descriptionFactory']['registerDescriptionCallback'](_0x3843d4=>{if('formatInline'!=_0x3843d4['type'])return;const {data:_0x373c28}=_0x3843d4;return _0x373c28&&_0x373c28['commandName']===_0xc8ec42?_0x373c28['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3c2318,'*Format:*\x20%0',_0x1cd273)}:{'type':'format','content':St(_0x3c2318,'*Remove\x20format:*\x20%0',_0x1cd273)}:void 0x0;});}_0x3ca264('bold',St(_0x3c2318,'FORMAT_BOLD')),_0x3ca264('italic',St(_0x3c2318,'FORMAT_ITALIC')),_0x3ca264('underline',St(_0x3c2318,'FORMAT_UNDERLINE')),_0x3ca264('code',St(_0x3c2318,'FORMAT_CODE')),_0x3ca264('strikethrough',St(_0x3c2318,'FORMAT_STRIKETHROUGH')),_0x3ca264('subscript',St(_0x3c2318,'FORMAT_SUBSCRIPT')),_0x3ca264('superscript',St(_0x3c2318,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x449cd5{['afterInit'](){const _0x58329c=this['editor'],_0x48e5da=_0x58329c['locale'];if(!_0x58329c['plugins']['has']('BlockQuoteEditing'))return;const _0x1ac582=_0x58329c['plugins']['get']('TrackChangesEditing'),_0x47c8c9=this['editor']['commands']['get']('blockQuote');_0x1ac582['enableCommand']('blockQuote',(_0x4aa77d,_0x2864fa={})=>{const _0x5021be=this['editor']['model']['document']['selection'],_0x25c731=_0x2864fa&&void 0x0!==_0x2864fa['forceValue']?_0x2864fa['forceValue']:!_0x47c8c9['value'];let _0x4bad52=[];_0x4bad52=At(_0x25c731?Array['from'](_0x5021be['getSelectedBlocks']())['filter'](_0x61ed8b=>Pt(_0x61ed8b)||function(_0x2fe52a,_0x2a7a03){const _0x4cf0b3=_0x2a7a03['createContext'](_0x2fe52a['parent']);return!!_0x2a7a03['checkChild'](_0x4cf0b3,'blockQuote')&&!!_0x2a7a03['checkChild'](_0x4cf0b3['push']('blockQuote'),_0x2fe52a);}(_0x61ed8b,this['editor']['model']['schema'])):Array['from'](_0x5021be['getSelectedBlocks']())['filter'](_0x1b6e36=>Pt(_0x1b6e36)),_0x58329c['model']),_0x58329c['model']['change'](()=>{for(const _0x41064a of _0x4bad52)_0x1ac582['markBlockFormat'](_0x41064a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25c731}]});});}),_0x1ac582['descriptionFactory']['registerDescriptionCallback'](_0x1fff54=>{const {data:_0x1e18b2}=_0x1fff54;if(_0x1e18b2&&'blockQuote'==_0x1e18b2['commandName']){const _0x1559f3=St(_0x48e5da,'ELEMENT_BLOCK_QUOTE');return _0x1e18b2['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x48e5da,'*Set\x20format:*\x20%0',_0x1559f3)}:{'type':'format','content':St(_0x48e5da,'*Remove\x20format:*\x20%0',_0x1559f3)};}});}};function Pt(_0x57e37c){return'blockQuote'==_0x57e37c['parent']['name'];}var xt=class extends _0x449cd5{['afterInit'](){const _0x5a3fac=this['editor'],_0x307871=_0x5a3fac['locale'],_0x497b4c=_0x5a3fac['plugins']['get']('TrackChangesEditing');_0x5a3fac['plugins']['has']('BookmarkEditing')&&(_0x497b4c['enableCommand']('insertBookmark'),_0x497b4c['enableDefaultAttributesIntegration']('updateBookmark'),_0x497b4c['descriptionFactory']['registerDescriptionCallback'](_0x3bb9db=>{if('insertion'!=_0x3bb9db['type']&&'deletion'!=_0x3bb9db['type']&&'attribute'!=_0x3bb9db['type'])return;const _0x248e81=_0x3bb9db['getContainedElement']();if(null==_0x248e81)return;if(!_0x248e81['is']('element','bookmark'))return;const _0x3d9f09=_0x248e81['getAttribute']('bookmarkId');if('insertion'==_0x3bb9db['type'])return{'type':'insertion','content':St(_0x307871,'*Insert:*\x20%0','\x22'+_0x3d9f09+'\x22\x20'+St(_0x307871,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3bb9db['type'])return{'type':'deletion','content':St(_0x307871,'*Remove:*\x20%0','\x22'+_0x3d9f09+'\x22\x20'+St(_0x307871,'ELEMENT_BOOKMARK'))};const {data:_0x36b73a}=_0x3bb9db;return _0x36b73a&&'bookmarkId'==_0x36b73a['key']?{'type':'format','content':St(_0x307871,'*Set\x20bookmark:*\x20%0','\x22'+_0x36b73a['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x449cd5{['afterInit'](){const _0x41fcd3=this['editor'];_0x41fcd3['plugins']['has']('CaseChange')&&(_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x449cd5{['afterInit'](){const _0x19419f=this['editor'];_0x19419f['commands']['get']('ckbox')&&_0x19419f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x449cd5{['afterInit'](){const _0x4a5835=this['editor'];if(!_0x4a5835['plugins']['has']('CodeBlock'))return;const _0x30eee5=_0x4a5835['plugins']['get']('TrackChangesEditing'),_0x5dda31=_0x4a5835['locale'],_0x19c2ec=_0x4a5835['config']['get']('codeBlock')['languages'],_0x3bc206=_0x4a5835['commands']['get']('codeBlock');_0x30eee5['enableCommand']('indentCodeBlock'),_0x30eee5['enableCommand']('outdentCodeBlock'),_0x30eee5['enableCommand']('codeBlock',(_0x47bb63,_0x88492d={})=>{const _0x4f12b7=_0x4a5835['model'],_0x3e252a=_0x4a5835['model']['document']['selection'],_0x4d1afb=_0x88492d&&void 0x0!==_0x88492d['forceValue']?_0x88492d['forceValue']:!_0x3bc206['value'];let _0x3ce6ae;_0x88492d['language']||(_0x88492d['language']=_0x19c2ec[0x0]['language']),_0x3ce6ae=_0x4d1afb?Array['from'](_0x3e252a['getSelectedBlocks']())['filter'](_0x1787f5=>{return Vt(_0x1787f5)||(_0x52d825=_0x1787f5,_0x2cae1e=_0x4f12b7['schema'],!_0x52d825['is']('rootElement')&&!_0x2cae1e['isLimit'](_0x52d825)&&_0x2cae1e['checkChild'](_0x52d825['parent'],'codeBlock'));var _0x52d825,_0x2cae1e;}):Array['from'](_0x3e252a['getSelectedBlocks']())['filter'](_0x2e36cd=>Vt(_0x2e36cd));const _0x55e9d7=At(_0x3ce6ae,_0x4f12b7);_0x4f12b7['change'](()=>{for(const _0x41dd04 of _0x55e9d7)_0x30eee5['markBlockFormat'](_0x41dd04,{'commandName':'codeBlock','commandParams':[{..._0x88492d,'forceValue':_0x4d1afb}],'formatGroupId':'blockName'});});}),(_0x30eee5['descriptionFactory']['registerElementLabel']('codeBlock',_0x479643=>St(_0x5dda31,'ELEMENT_CODE_BLOCK',_0x479643)),_0x30eee5['descriptionFactory']['registerDescriptionCallback'](_0x5be373=>{if('formatBlock'!=_0x5be373['type'])return;const _0x4092e8=_0x5dda31['t'],{data:_0x8f2bfe}=_0x5be373;if(!_0x8f2bfe||'codeBlock'!=_0x8f2bfe['commandName'])return;const _0x4e82bd=_0x8f2bfe['commandParams'][0x0]['language'],_0x349d30=_0x4092e8(_0x19c2ec['find'](_0x19829e=>_0x19829e['language']===_0x4e82bd)['label'])['toLowerCase']();return _0x8f2bfe['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x5dda31,'*Set\x20format:*\x20%0',St(_0x5dda31,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x349d30+')')}:{'type':'format','content':St(_0x5dda31,'*Remove\x20format:*\x20%0',St(_0x5dda31,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x274d9f){return'codeBlock'==_0x274d9f['name'];}var Wt=class extends _0x449cd5{['afterInit'](){const _0x2d99f1=this['editor'];_0x2d99f1['plugins']['has']('CommentsEditing')&&_0x2d99f1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x449cd5{static get['requires'](){return[ht];}['init'](){const _0x765126=this['editor'],_0x6de2c1=_0x765126['plugins']['get']('TrackChangesEditing');_0x6de2c1['enableCommand']('delete');const _0x356b7c=_0x765126['commands']['get']('deleteForward');_0x6de2c1['enableCommand']('deleteForward',(_0x3b036b,_0x46e021={})=>{const _0xbb4ddb=_0x765126['model']['createSelection'](_0x765126['model']['document']['selection']);_0xbb4ddb['isCollapsed']&&_0x765126['model']['modifySelection'](_0xbb4ddb,{'direction':'forward','unit':_0x46e021['unit']});const _0x4a5602=_0xbb4ddb['getFirstRange'](),_0x400606=rt['fromRange'](_0x4a5602);let _0x197989;_0x3b036b(_0x46e021),_0x197989='$graveyard'==_0x400606['root']['rootName']?_0x765126['model']['createRange'](_0x4a5602['start']):_0x765126['model']['createRange'](_0x400606['start'],_0x400606['end']),_0x400606['detach'](),_0x765126['model']['enqueueChange'](_0x356b7c['buffer']['batch'],_0x282f62=>{_0x356b7c['buffer']['lock'](),_0x282f62['setSelection'](_0x282f62['createRange'](_0x197989['end'])),_0x356b7c['buffer']['unlock']();});});}},Kt=class extends _0x449cd5{['afterInit'](){const _0x1322f9=this['editor'];if(!_0x1322f9['plugins']['has']('ListEditing'))return;const _0x3a09ff=_0x1322f9['locale'],_0x38abc6=_0x1322f9['plugins']['get']('TrackChangesEditing'),_0x16d9fe=_0x1322f9['plugins']['has']('TodoListEditing'),_0x24fe7d=!!_0x1322f9['config']['get']('list.multiBlock');function _0x2e13c3(_0x72064e){return{'type':'format','content':''+St(_0x3a09ff,'*Set\x20format:*\x20%0',_0x72064e)};}function _0xa55ad9(_0x155360){return{'type':'format','content':''+St(_0x3a09ff,'*Remove\x20format:*\x20%0',_0x155360)};}_0x38abc6['enableDefaultAttributesIntegration']('numberedList'),_0x38abc6['enableDefaultAttributesIntegration']('bulletedList'),_0x38abc6['enableDefaultAttributesIntegration']('customNumberedList'),_0x38abc6['enableDefaultAttributesIntegration']('customBulletedList'),_0x38abc6['enableDefaultAttributesIntegration']('indentList'),_0x38abc6['enableDefaultAttributesIntegration']('outdentList'),_0x38abc6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x38abc6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24fe7d&&(_0x38abc6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x38abc6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x16d9fe&&(_0x38abc6['enableDefaultAttributesIntegration']('todoList'),_0x38abc6['enableDefaultAttributesIntegration']('checkTodoList'),_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x5d9a54=>{const {data:_0x486110}=_0x5d9a54;if(_0x486110&&'todoListChecked'==_0x486110['key'])return{'type':'format','content':_0x486110['newValue']?St(_0x3a09ff,'*Check\x20item*'):St(_0x3a09ff,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x41db88=>{if(_0x41db88['batch']['isUndo'])return!0x1;let _0x970008=!0x1;const _0x5c552f=_0x38abc6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b287e=>'todoListChecked'===_0x38abc6['_getAttributeKey'](_0x4b287e));for(const _0xd7dc6 of _0x5c552f)'todo'!=_0xd7dc6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x38abc6['_findSuggestions'](_0xd7dc6['getFirstRange'](),'attribute')['find'](_0xed2c72=>'listType'===_0x38abc6['_getAttributeKey'](_0xed2c72['suggestion']))||(_0x41db88['removeMarker'](_0xd7dc6['getFirstMarker']()),_0x970008=!0x0));return _0x970008;})),_0x38abc6['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x3a09ff,'FORMAT_INDENT'));const _0xa18635={'type':'format','content':''};_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x2d2855=>{const {data:_0x1c3626}=_0x2d2855;if(!_0x1c3626||'listType'!=_0x1c3626['key'])return;let _0x5bdd73=_0x2d2855['head'];for(;_0x5bdd73;){if(_0x5bdd73['data']&&(('listStyle'==_0x5bdd73['data']['key']||'listMarkerStyle'==_0x5bdd73['data']['key'])&&(_0x5bdd73['data']['newValue']&&'default'!=_0x5bdd73['data']['newValue']||'default'!=_0x5bdd73['data']['oldValue']&&!_0x1c3626['newValue'])||!_0x24fe7d&&'$elementName'==_0x5bdd73['data']['key']))return _0xa18635;_0x5bdd73=_0x5bdd73['next'];}if(null==_0x1c3626['newValue'])switch(_0x1c3626['oldValue']){case'bulleted':return _0xa55ad9(St(_0x3a09ff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa55ad9(St(_0x3a09ff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa55ad9(St(_0x3a09ff,'ELEMENT_TODO_LIST'));}switch(_0x1c3626['newValue']){case'bulleted':return _0x2e13c3(St(_0x3a09ff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e13c3(St(_0x3a09ff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e13c3(St(_0x3a09ff,'ELEMENT_TODO_LIST'));}}),_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x5dca74=>{const {data:_0x1bd438}=_0x5dca74;if(_0x1bd438&&'listIndent'==_0x1bd438['key'])return null==_0x1bd438['newValue']||null==_0x1bd438['oldValue']&&0x0==_0x1bd438['newValue']?_0xa18635:void 0x0;}),_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x222493=>{if('attribute'!=_0x222493['type'])return;const {data:_0x46d893}=_0x222493;if(!_0x46d893||'listItemId'!=_0x46d893['key'])return;const _0x160bae=zt(_0x222493);return'newValue'==_0x160bae?{'type':'format','content':St(_0x3a09ff,'*Merge:*\x20list\x20item')}:'oldValue'==_0x160bae?{'type':'format','content':St(_0x3a09ff,'*Split:*\x20list\x20item')}:_0xa18635;}),_0x1322f9['model']['document']['registerPostFixer'](_0x18d447=>this['listItemIdFixer'](_0x18d447)),_0x1322f9['model']['document']['registerPostFixer'](_0x4c59c6=>this['noTrackChangesFixer'](_0x4c59c6)),_0x1322f9['model']['document']['on']('change:data',(_0x362764,_0x428ab4)=>{if(_0x428ab4['isUndo']||!_0x428ab4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1544a7){if(_0x1544a7['batch']['isUndo']||!_0x1544a7['batch']['isLocal'])return!0x1;let _0xbf9933=!0x1;const _0x147c27=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14c73c=>_0x14c73c['data']&&'listItemId'==_0x14c73c['data']['key'])['filter'](_0x25d475=>_0x25d475['data']['newValue']&&_0x25d475['data']['oldValue']);for(const _0x3265a7 of _0x147c27)zt(_0x3265a7)||(_0x1544a7['removeMarker'](_0x3265a7['getFirstMarker']()),_0xbf9933=!0x0);return _0xbf9933;}['noTrackChangesFixer'](_0x2db814){if(_0x2db814['batch']['isUndo']||!_0x2db814['batch']['isLocal'])return!0x1;const _0x3d3a27=this['editor']['model']['document']['differ'],_0x4ea31d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4ea31d['trackChangesCommand']['value'])return!0x1;let _0xd60896=!0x1;const _0x1b151b=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x498f7c=_0x3d3a27['getChanges']()['filter'](_0x466bca=>'attribute'==_0x466bca['type'])['filter'](_0x16fdf8=>_0x1b151b['has'](_0x16fdf8['attributeKey']));if(0x0==_0x498f7c['length'])return _0xd60896;const _0x2630f4=new Set(_0x3d3a27['getMarkersToAdd']()['filter'](_0xf7b351=>{if(!_0xf7b351['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x8ff71a=tt(_0xf7b351['name'])['subType']['split']('|')[0x0];return _0x1b151b['has'](_0x8ff71a);})['map'](_0x4883d7=>tt(_0x4883d7['name'])['id']));for(const _0x398aee of _0x498f7c){const _0x541b02=_0x4ea31d['_findSuggestions'](_0x398aee['range'],'attribute')['filter'](_0x3b6b45=>{if(_0x3b6b45['meta']['isNextTo'])return!0x1;if(_0x2630f4['has'](_0x3b6b45['suggestion']['id']))return!0x1;const _0x517c4c=_0x4ea31d['_getAttributeKey'](_0x3b6b45['suggestion']);return _0x1b151b['has'](_0x517c4c);})['map'](_0x461b9f=>_0x461b9f['suggestion']);if(_0x541b02['length']){for(const _0x47f40a of _0x541b02)_0x2db814['removeMarker'](_0x47f40a['getFirstMarker']());_0xd60896=!0x0;}}return _0xd60896;}['assureChains'](){const _0x548baa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x992ee8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x55e1e8;const _0x5c50ed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x134246=>{if(_0x134246['data']['oldRange']||!_0x134246['data']['newRange'])return null;if(!_0x134246['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ea3d2}=tt(_0x134246['name']);if(!_0x548baa['hasSuggestion'](_0x1ea3d2))return null;const _0x14259b=_0x548baa['getSuggestion'](_0x1ea3d2);return _0x992ee8['includes'](_0x14259b['data']['key']);})['map'](_0x5ac26d=>{const {id:_0x49274a}=tt(_0x5ac26d['name']),_0x15f09a=_0x548baa['getSuggestion'](_0x49274a);return _0x55e1e8=_0x15f09a['attributes']['groupId'],_0x15f09a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5c50ed['size'])return;const _0x54afc1=_0x548baa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x453903=>'attribute'==_0x453903['type']&&_0x453903['data']&&_0x992ee8['includes'](_0x453903['data']['key'])&&_0x453903['attributes']['groupId']!=_0x55e1e8)['map'](_0x3eec46=>({'listItem':_0x3eec46['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3eec46['attributes']['groupId']})),_0x1209a6=new Set();for(const {groupId:_0x2f2fec,listItem:_0x36da7a}of _0x54afc1)_0x5c50ed['has'](_0x36da7a)&&_0x1209a6['add'](_0x2f2fec);for(const _0x43cfac of _0x548baa['getSuggestions']())_0x1209a6['has'](_0x43cfac['attributes']['groupId'])&&_0x43cfac['setAttribute']('groupId',_0x55e1e8);}['_supportLegacySuggestions'](){const _0x43f2e2=this['editor'],_0x1862d8=_0x43f2e2['locale'],_0x446f24=_0x43f2e2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x446f24['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x30737a,_0x492117){const _0x5e3029=[];for(let _0x1ceabb of _0x30737a)_0x1ceabb['start']['nodeAfter']===_0x1ceabb['end']['parent']&&(_0x1ceabb=_0x43f2e2['model']['createRange'](_0x43f2e2['model']['createPositionAt'](_0x1ceabb['start']['nodeAfter'],0x0))),_0x5e3029['push'](_0x1ceabb);_0x43f2e2['model']['change'](_0x5886f2=>{const _0x51f806=_0x43f2e2['model']['document']['selection'],_0x569f19=Array['from'](_0x51f806['getRanges']())['map'](_0x5f8f52=>rt['fromRange'](_0x5f8f52));_0x5886f2['setSelection'](_0x5e3029),_0x43f2e2['commands']['get'](_0x492117['commandName'])['refresh'](),_0x492117['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x43f2e2['execute'](_0x492117['commandName'],..._0x492117['commandParams']),_0x5886f2['setSelection'](_0x569f19);for(const _0x578f62 of _0x569f19)_0x578f62['detach']();});}),_0x446f24['descriptionFactory']['registerElementLabel'](function(_0x119345){const _0x140929=!_0x43f2e2['model']['schema']['isObject'](_0x119345),_0x16fa62=_0x119345['previousSibling'],_0x237754=_0x119345['nextSibling'],_0x441b25=_0x119345['getAttribute']('listItemId'),_0x2ca4fb=!_0x16fa62||_0x16fa62['getAttribute']('listItemId')!==_0x441b25,_0x146861=!_0x237754||_0x237754['getAttribute']('listItemId')!==_0x441b25;return _0x140929&&Boolean(_0x441b25)&&_0x2ca4fb&&_0x146861;},_0x1efb10=>St(_0x1862d8,'ELEMENT_LIST_ITEM',_0x1efb10));}['_registerLegacyDescription'](){const _0x16145c=this['editor'],_0x35a061=_0x16145c['locale'];function _0x161a21(_0x479cab){const _0x422212=_0x16145c['commands']['get']('bulletedList')['value'],_0x5bb1be=_0x16145c['commands']['get']('numberedList')['value'];return'numberedList'===_0x479cab?_0x422212:_0x5bb1be;}_0x16145c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4572cf){if('formatBlock'!=_0x4572cf['type'])return;const {data:_0x445649}=_0x4572cf;if(!_0x445649)return;let _0x2f67c8,_0x257bde,_0x1a7cca,_0x55316d;switch(_0x445649['commandName']){case'bulletedList':_0x1a7cca=_0x445649['commandParams'][0x0]['forceValue'],_0x55316d=_0x161a21(_0x445649['commandName']),_0x2f67c8=_0x1a7cca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55316d&&_0x16145c['config']['get']('list.multiBlock')||(_0x2f67c8='*Change\x20to:*\x20%0'),_0x257bde={'type':'format','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1a7cca=_0x445649['commandParams'][0x0]['forceValue'],_0x55316d=_0x161a21(_0x445649['commandName']),_0x2f67c8=_0x1a7cca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55316d&&_0x16145c['config']['get']('list.multiBlock')||(_0x2f67c8='*Change\x20to:*\x20%0'),_0x257bde={'type':'format','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f67c8='*Indent:*\x20%0',_0x257bde={'type':'format','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f67c8=function(_0xc7c221){const _0x2cb493=_0xc7c221['getFirstRange']();let _0x59d4a9=_0x2cb493['start']['nodeAfter'];for(;_0x59d4a9&&_0x2cb493['containsItem'](_0x59d4a9);){if(_0x59d4a9['getAttribute']('listIndent')>0x0)return!0x1;_0x59d4a9=_0x59d4a9['nextSibling'];}return!0x0;}(_0x4572cf)?St(_0x35a061,'*Format:*\x20remove\x20from\x20%0',St(_0x35a061,function(_0x26c39d){return'ELEMENT_'+_0x26c39d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4572cf))):St(_0x35a061,'*Outdent:*\x20%0',St(_0x35a061,'ELEMENT_LIST_ITEM')),_0x257bde={'type':'format','content':_0x2f67c8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x445649['multipleBlocks']&&(_0x2f67c8='*Merge:*\x20%0',_0x257bde={'type':'deletion','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_LIST_ITEM'))});}return _0x257bde;});}};function zt(_0x244808){let _0x4fc0c5=_0x244808['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fc0c5;){const _0x5eb0ea=_0x4fc0c5['getAttribute']('listItemId');if(!_0x5eb0ea)return!0x1;if(_0x5eb0ea==_0x244808['data']['newValue'])return'newValue';if(_0x5eb0ea==_0x244808['data']['oldValue'])return'oldValue';_0x4fc0c5=_0x4fc0c5['previousSibling'];}return!0x1;}var Xt=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb4594=this['editor']['config']['get']('list.properties'),_0x2293ca=this['editor']['plugins']['get']('TrackChangesEditing');_0xb4594['styles']&&_0x2293ca['enableDefaultAttributesIntegration']('listStyle'),_0xb4594['reversed']&&_0x2293ca['enableDefaultAttributesIntegration']('listReversed'),_0xb4594['startIndex']&&_0x2293ca['enableDefaultAttributesIntegration']('listStart');const _0x5f32fa={'type':'format','content':''};_0x2293ca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11b770=this['editor']['locale'];_0x2293ca['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x11b770,'FORMAT_LIST_REVERSED')),_0x2293ca['descriptionFactory']['registerDescriptionCallback'](_0x1c4b41=>{const {data:_0x33182c}=_0x1c4b41;if(_0x33182c&&'listReversed'==_0x33182c['key'])return null==_0x33182c['newValue']||0x0==_0x33182c['newValue']&&null==_0x33182c['oldValue']?_0x5f32fa:void 0x0;}),_0x2293ca['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x11b770,'FORMAT_LIST_START')),_0x2293ca['descriptionFactory']['registerDescriptionCallback'](_0x796549=>{const {data:_0x35568f}=_0x796549;if(_0x35568f&&'listStart'==_0x35568f['key'])return null==_0x35568f['newValue']||0x1==_0x35568f['newValue']&&null==_0x35568f['oldValue']?_0x5f32fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5aa0dc=>{if(_0x5aa0dc['batch']['isUndo'])return!0x1;let _0x37c1c9=!0x1;const _0x7abcfe=_0x2293ca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x80d7a4=>{const _0x16ad90=_0x2293ca['_getAttributeKey'](_0x80d7a4);return'listStart'==_0x16ad90||'listReversed'==_0x16ad90;});for(const _0x14d1e3 of _0x7abcfe){const _0x4a035d=_0x14d1e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x4a035d&&'customNumbered'!=_0x4a035d&&(_0x2293ca['_findSuggestions'](_0x14d1e3['getFirstRange'](),'attribute')['find'](_0x37c0f8=>'listType'==_0x2293ca['_getAttributeKey'](_0x37c0f8['suggestion']))||(_0x5aa0dc['removeMarker'](_0x14d1e3['getFirstMarker']()),_0x37c1c9=!0x0));}return _0x37c1c9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x32a822){const _0x14b654=this['editor']['locale'],{data:_0x6a1dbb}=_0x32a822,_0x24e150={'type':'format','content':''};if(!_0x6a1dbb||'listStyle'!=_0x6a1dbb['key'])return;if(!_0x6a1dbb['oldValue'])return'default'==_0x6a1dbb['newValue']?_0x24e150:{'type':'format','content':''+St(_0x14b654,'*Set\x20format:*\x20%0',St(_0x14b654,this['_getTranslationKeyForListStyle'](_0x6a1dbb['newValue'])))};if(!_0x6a1dbb['newValue']){if('default'==_0x6a1dbb['oldValue'])return _0x24e150;let _0x44874b=_0x32a822['head'];for(;_0x44874b;){if(_0x44874b['data']&&'listType'==_0x44874b['data']['key']&&_0x44874b['data']['newValue'])return _0x24e150;_0x44874b=_0x44874b['next'];}return{'type':'format','content':''+St(_0x14b654,'*Remove\x20format:*\x20%0',St(_0x14b654,this['_getTranslationKeyForListStyle'](_0x6a1dbb['oldValue'])))};}if('default'!=_0x6a1dbb['newValue'])return{'type':'format','content':''+St(_0x14b654,'*Set\x20format:*\x20%0',St(_0x14b654,this['_getTranslationKeyForListStyle'](_0x6a1dbb['newValue'])))};let _0x172840=_0x32a822['head'];for(;_0x172840;){if(_0x172840['data']&&'listType'==_0x172840['data']['key']&&_0x172840['data']['newValue']&&_0x172840['data']['oldValue'])return _0x24e150;_0x172840=_0x172840['next'];}return{'type':'format','content':St(_0x14b654,'*Set\x20format:*\x20%0',St(_0x14b654,'ELEMENT_'+_0x32a822['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xa3ad04=this['editor'],_0x2b5e50=_0xa3ad04['locale'];_0xa3ad04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8cdae5=>{if('formatBlock'!=_0x8cdae5['type'])return;const {data:_0x432b5d}=_0x8cdae5;if(!_0x432b5d)return;let _0x39a0bc,_0x1efa71;switch(_0x432b5d['commandName']){case'listStyle':_0x39a0bc='*Change\x20to:*\x20%0',_0x1efa71={'type':'format','content':St(_0x2b5e50,_0x39a0bc,St(_0x2b5e50,this['_getTranslationKeyForListStyle'](_0x432b5d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39a0bc=_0x432b5d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1efa71={'type':'format','content':St(_0x2b5e50,_0x39a0bc)};break;case'listStart':_0x39a0bc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1efa71={'type':'format','content':St(_0x2b5e50,_0x39a0bc,_0x432b5d['commandParams'][0x0]['startIndex'])};}return _0x1efa71;});}['_getTranslationKeyForListStyle'](_0x419e06){return'ELEMENT_'+(_0x2f01b6=_0x419e06,qt['includes'](_0x2f01b6)?'bulleted':Yt['includes'](_0x2f01b6)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x419e06['toUpperCase']()['replace'](/-/g,'_');var _0x2f01b6;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x449cd5{['afterInit'](){const _0x44f68d=this['editor'];_0x44f68d['commands']['get']('emoji')&&_0x44f68d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x449cd5{static get['requires'](){return[ft];}['init'](){const _0x5d66b7=this['editor'],_0x53ffb3=_0x5d66b7['plugins']['get']('TrackChangesEditing'),_0x1578cb=_0x5d66b7['commands']['get']('enter');_0x53ffb3['enableCommand']('enter',()=>{_0x5d66b7['model']['change'](_0x3d4c4c=>{const _0x1d92ec=_0x5d66b7['model']['document']['selection'],_0x52bd52=_0x1d92ec['getFirstPosition'](),_0x45b0e4=rt['fromRange'](_0x1d92ec['getFirstRange']());if(_0x1578cb['enterBlock'](_0x3d4c4c)){const _0x40cbb4=_0x5d66b7['model']['createPositionAt'](_0x52bd52['parent']['nextSibling'],0x0),_0x38d758=_0x3d4c4c['createRange'](_0x52bd52,_0x40cbb4);_0x53ffb3['markInsertion'](_0x38d758);}else _0x3d4c4c['setSelection'](_0x3d4c4c['createRange'](_0x45b0e4['end']));_0x45b0e4['detach'](),_0x1578cb['fire']('afterExecute',{'writer':_0x3d4c4c});});});}},Jt=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x512cf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x512cf8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x512cf8['enableCommand']('findNext'),_0x512cf8['enableCommand']('findPrevious'),_0x512cf8['enableCommand']('replace'),_0x512cf8['enableCommand']('replaceAll');}['handleFindCommand'](_0x5cbca4,_0x422c4e,_0x3b332f={}){const _0x3b44fa=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5cbca4(_0x8e2318=>{let _0x43d2c7=('string'==typeof _0x422c4e?_0x3b44fa['findByTextCallback'](_0x422c4e,_0x3b332f):_0x422c4e)(_0x8e2318);Array['isArray'](_0x43d2c7)&&(_0x43d2c7={'results':_0x43d2c7,'searchText':'string'==typeof _0x422c4e?_0x422c4e:''});const _0x4db9e4=_0x43d2c7['results']['filter'](_0x7d61ae=>!0x1===this['_isInDeletionRange'](_0x7d61ae,_0x8e2318['item']));return{..._0x43d2c7,'results':_0x4db9e4};},_0x3b332f);}['_isInDeletionRange'](_0x594ed7,_0x29d312){const _0x492a67=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29d312,_0x594ed7['start']),this['editor']['model']['createPositionAt'](_0x29d312,_0x594ed7['end']));for(const _0x4e4348 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x492a67['getIntersection'](_0x4e4348['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x449cd5{['afterInit'](){const _0x336c4c=this['editor']['locale'],_0xb5150a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3a4a99,commandName:_0x225e33}of te)this['editor']['plugins']['has'](_0x3a4a99)&&_0xb5150a['enableDefaultAttributesIntegration'](_0x225e33);_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x336c4c,'FORMAT_FONT_SIZE')),_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x336c4c,'FORMAT_FONT_FAMILY')),_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x336c4c,'FORMAT_FONT_COLOR')),_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x336c4c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b3ec=this['editor'],_0x1e2f53=_0x14b3ec['locale'];_0x14b3ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30dddc=>{const _0x39eae6=_0x1e2f53['t'];if('formatInline'!=_0x30dddc['type'])return;const {data:_0x535ed2}=_0x30dddc;if(null!=_0x535ed2){if('fontSize'==_0x535ed2['commandName']){const _0x47c0b0=_0x535ed2['commandParams'][0x0]['value'];if(_0x47c0b0){const _0x261c02=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x30f7e3=>_0x30f7e3['model']==_0x47c0b0)['title'];return{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20size:*\x20%0',_0x39eae6(_0x261c02)['toLowerCase']())};}return{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x535ed2['commandName']){const _0xbda4ca=_0x535ed2['commandParams'][0x0]['value'];return _0xbda4ca?{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20family:*\x20%0',_0xbda4ca)}:{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20family*')};}if('fontColor'==_0x535ed2['commandName']){const _0x59506c=_0x535ed2['commandParams'][0x0]['value'];if(_0x59506c){const _0x1d3c43=_0x1df80d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x377a93=>_0x377a93['model']==_0x59506c);let _0x463dc5=_0x59506c,_0x105bb6='';return _0x1d3c43&&(_0x463dc5=_0x1d3c43['label'],_0x105bb6=_0x39eae6(_0x463dc5)['toLowerCase']()),{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20color:*\x20%0',_0x105bb6)['trim'](),'color':{'value':_0x59506c,'title':_0x105bb6||_0x463dc5}};}return{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x535ed2['commandName']){const _0x1ab0e0=_0x535ed2['commandParams'][0x0]['value'];if(_0x1ab0e0){const _0x327ba8=_0x1df80d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1161ff=>_0x1161ff['model']==_0x1ab0e0);let _0x5bd097=_0x1ab0e0,_0x5adc5e='';return _0x327ba8&&(_0x5bd097=_0x327ba8['label'],_0x5adc5e=_0x39eae6(_0x5bd097)['toLowerCase']()),{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20background\x20color:*\x20%0',_0x5adc5e)['trim'](),'color':{'value':_0x1ab0e0,'title':_0x5adc5e||_0x5bd097}};}return{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x449cd5{['afterInit'](){const {plugins:_0x3703c5}=this['editor'];_0x3703c5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3703c5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xc7860a,plugins:_0x208238,commands:_0x19bcb0}=this['editor'],_0x5b716b=_0x208238['get']('TrackChangesEditing');_0x19bcb0['get']('footnotesStyle')&&_0x5b716b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x19bcb0['get']('footnotesStart')&&_0x5b716b['enableDefaultAttributesIntegration']('footnotesStart'),_0x5b716b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0xc7860a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5b716b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0xc7860a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5018c2=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3459e9,commands:_0x5e6cbe}=this['editor'];_0x5e6cbe['get']('insertFootnote')&&_0x5018c2['enableCommand']('insertFootnote'),_0x5018c2['descriptionFactory']['registerElementLabel']('footnoteRef',_0x548cfa=>St(_0x3459e9,'ELEMENT_FOOTNOTE_REF',_0x548cfa)),_0x5018c2['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x53b005=>St(_0x3459e9,'ELEMENT_FOOTNOTE_DEFINITION',_0x53b005)),_0x5018c2['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4a4c94=>St(_0x3459e9,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4a4c94));}},ie=class extends _0x449cd5{['afterInit'](){const _0x4891ad=this['editor'],_0x2af2fa=_0x4891ad['plugins']['get']('TrackChangesEditing'),_0x30cd75=_0x4891ad['commands']['get']('copyFormat'),_0x1d04e1=_0x4891ad['commands']['get']('pasteFormat');_0x30cd75&&_0x1d04e1&&(_0x2af2fa['enableDefaultAttributesIntegration']('pasteFormat'),_0x2af2fa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23a398=this['editor'],_0x4a9708=_0x23a398['locale'];_0x23a398['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44180f=>{if('formatBlock'!=_0x44180f['type']&&'formatInline'!=_0x44180f['type'])return;const {data:_0x5ad0f9}=_0x44180f;if(_0x5ad0f9&&'pasteFormat'===_0x5ad0f9['commandName']){const _0x5e877a=[],_0x5fbff7=_0x5ad0f9['commandParams'][0x0];for(const [_0x52bb2e,_0x2f3af9]of Object['entries'](_0x5fbff7))_0x5e877a['push'](se(_0x23a398,_0x52bb2e,_0x2f3af9));return _0x5e877a['length']?{'type':'format','content':St(_0x4a9708,'*Set\x20format\x20to:*\x20%0',_0x5e877a['join'](',\x20'))}:{'type':'format','content':St(_0x4a9708,'*Remove\x20all\x20formatting*')};}});}};function se(_0x9de3c7,_0xd1bf57,_0x5f2587){const _0x13e602=_0x9de3c7['locale']['t'],_0xc7b1a3=_0xd1bf57['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b3af5=_0x13e602(_0xc7b1a3['charAt'](0x0)['toUpperCase']()+_0xc7b1a3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5f2587)return _0x5b3af5;if('fontColor'===_0xd1bf57||'fontBackgroundColor'===_0xd1bf57){const _0x57e82e=_0x1df80d(_0x9de3c7['config']['get']('fontColor.colors'))['find'](_0x4916d9=>_0x4916d9['model']==_0x5f2587);return _0x5b3af5+'\x20('+(_0x57e82e?_0x13e602(_0x57e82e['label'])['toLowerCase']():_0x5f2587)+')';}if('fontSize'===_0xd1bf57&&isNaN(parseFloat(_0x5f2587))){const _0x2608d8=_0x9de3c7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x9de3c7['config']['get']('fontSize.options'))['find'](_0x3c9cf8=>_0x3c9cf8['model']==_0x5f2587);return _0x5b3af5+'\x20('+(_0x2608d8?_0x13e602(_0x2608d8['title'])['toLowerCase']():_0x5f2587)+')';}return _0x5b3af5+'\x20('+_0x5f2587+')';}var re=class extends _0x449cd5{['afterInit'](){const _0x14078e=this['editor'];if(!_0x14078e['plugins']['has']('GeneralHtmlSupport')||!_0x14078e['plugins']['has']('DataSchema'))return;const _0x1c4017=_0x14078e['plugins']['get']('TrackChangesEditing'),_0xe8bc2e=_0x14078e['plugins']['get']('GeneralHtmlSupport'),_0x29b93b=_0x14078e['plugins']['get']('DataSchema'),_0x1f05f5=_0x14078e['locale'],_0x443e66=new Set(['htmlContent']);for(const _0x46f71c of _0x29b93b['getDefinitionsForView'](/.*/,!0x1)){const _0x5f26e0=_0x46f71c['view'],_0x38618a=_0xe8bc2e['getGhsAttributeNameForElement'](_0x5f26e0);_0x443e66['add'](_0x38618a),!_0x46f71c['isInline']||_0x46f71c['isObject']||'appliesToBlock'in _0x46f71c&&_0x46f71c['appliesToBlock']||_0x1c4017['descriptionFactory']['registerAttributeLabel'](_0x38618a,_0x5f26e0),_0x46f71c['model']['startsWith']('html')&&_0x1c4017['descriptionFactory']['registerElementLabel'](_0x46f71c['model'],_0x147eea=>St(_0x1f05f5,'ELEMENT_HTML_TAG',[_0x147eea,_0x5f26e0]));}_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x1f05f5,'FORMAT_RAW_HTML_CONTENT')),_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x1f05f5,'FORMAT_HTML_LIST_ITEM')),_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x1f05f5,'FORMAT_HTML_BULLETED_LIST')),_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x1f05f5,'FORMAT_HTML_NUMBERED_LIST')),_0x1c4017['descriptionFactory']['registerDescriptionCallback'](_0x5e881e=>{if('attribute'!==_0x5e881e['type'])return;const _0x163d79=_0x5e881e['data'];if(!_0x163d79||!_0x443e66['has'](_0x163d79['key']))return;if('htmlContent'===_0x163d79['key'])return{'type':'format','content':St(_0x1f05f5,'*Change\x20%0\x20content*',St(_0x1f05f5,'ELEMENT_RAW_HTML'))};const {setItems:_0x15e79f,removeItems:_0x4651e9}=function(_0x355996,_0x26530b,_0x68b51e){const _0x90484d=[],_0x7c47f8=[],_0x327d58=_0x355996['styles']??{},_0x13f91b=_0x26530b['styles']??{};for(const _0x1f2b83 of new Set([...Object['keys'](_0x327d58),...Object['keys'](_0x13f91b)]))_0x327d58[_0x1f2b83]!==_0x13f91b[_0x1f2b83]&&(void 0x0===_0x13f91b[_0x1f2b83]?_0x7c47f8['push'](_0x1f2b83):_0x90484d['push'](_0x1f2b83+'\x20('+_0x13f91b[_0x1f2b83]+')'));const _0xb1036a=St(_0x68b51e,'FORMAT_HTML_CLASS'),_0x53dbd3=new Set(_0x355996['classes']??[]),_0x4ebfc7=new Set(_0x26530b['classes']??[]),_0x3fadcd=[..._0x4ebfc7]['some'](_0x4c3e31=>!_0x53dbd3['has'](_0x4c3e31)),_0x2ae341=[..._0x53dbd3]['some'](_0x924f87=>!_0x4ebfc7['has'](_0x924f87));_0x3fadcd&&_0x90484d['push'](_0xb1036a),_0x2ae341&&_0x7c47f8['push'](_0xb1036a);const _0x261190=St(_0x68b51e,'FORMAT_HTML_ATTRIBUTE'),_0x28d1dd=_0x355996['attributes']??{},_0x5586ff=_0x26530b['attributes']??{};let _0x593cdf=!0x1,_0x536ed0=!0x1;for(const _0x52fde9 of new Set([...Object['keys'](_0x28d1dd),...Object['keys'](_0x5586ff)]))_0x28d1dd[_0x52fde9]!==_0x5586ff[_0x52fde9]&&(void 0x0===_0x5586ff[_0x52fde9]?_0x536ed0=!0x0:_0x593cdf=!0x0);return _0x593cdf&&_0x90484d['push'](_0x261190),_0x536ed0&&_0x7c47f8['push'](_0x261190),{'setItems':_0x90484d,'removeItems':_0x7c47f8};}(_0x163d79['oldValue']??{},_0x163d79['newValue']??{},_0x1f05f5);if(!_0x15e79f['length']&&!_0x4651e9['length'])return;const _0x3a461f=[];return _0x15e79f['length']&&_0x3a461f['push'](St(_0x1f05f5,'*Set\x20format:*\x20%0',_0x15e79f['join'](',\x20'))),_0x4651e9['length']&&_0x3a461f['push'](St(_0x1f05f5,'*Remove\x20format:*\x20%0',_0x4651e9['join'](',\x20'))),{'type':'format','content':_0x3a461f['join']('\x0a')};});}},oe=class extends _0x449cd5{['_headingOptions'];['afterInit'](){const _0x2f0ef2=this['editor'];if(!_0x2f0ef2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f0ef2['config']['get']('heading.options');const _0x1ec82b=_0x2f0ef2['locale'],_0x2fd1d6=_0x2f0ef2['plugins']['get']('TrackChangesEditing');_0x2fd1d6['enableDefaultAttributesIntegration']('heading');for(const _0x10b440 of this['_headingOptions'])'paragraph'!=_0x10b440['model']&&_0x2fd1d6['descriptionFactory']['registerElementLabel'](_0x10b440['model'],_0x3cda96=>{const _0x2678b2=this['_getHeadingLevel'](_0x10b440['model']);return null!==_0x2678b2?_0x29a045(_0x3cda96,_0x2678b2):_0x5e8166(_0x3cda96,_0x10b440['title']);});function _0x29a045(_0xd33185,_0x342dd2){return St(_0x1ec82b,'ELEMENT_HEADING',[_0xd33185,_0x342dd2]);}function _0x5e8166(_0x54951b,_0x508f1f){return St(_0x1ec82b,'ELEMENT_HEADING_CUSTOM',[_0x54951b,_0x508f1f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7efa9c=this['editor'],_0x502f02=_0x7efa9c['locale'];function _0x3cb3bd(_0x186bea,_0x55e02a){return St(_0x502f02,'ELEMENT_HEADING_CUSTOM',[_0x186bea,_0x55e02a]);}_0x7efa9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x498aac=>{if('formatBlock'!=_0x498aac['type'])return;const {data:_0x3d9ecb}=_0x498aac;if(_0x3d9ecb&&'heading'==_0x3d9ecb['commandName']){const _0x19d40e=_0x3d9ecb['commandParams'][0x0]['value'],_0x1d0b1d=this['_getHeadingLevel'](_0x19d40e);if(null!==_0x1d0b1d)return{'type':'format','content':St(_0x502f02,'*Change\x20to:*\x20%0',(_0x29818c=0x1,_0x52de2c=_0x1d0b1d,St(_0x502f02,'ELEMENT_HEADING',[_0x29818c,_0x52de2c])))};const _0x252dff=this['_headingOptions']['find'](_0x548716=>_0x548716['model']===_0x19d40e)['title'];return{'type':'format','content':St(_0x502f02,'*Change\x20to:*\x20%0',_0x3cb3bd(0x1,_0x252dff))};}var _0x29818c,_0x52de2c;});}['_getHeadingLevel'](_0x27949a){const _0x241334=_0x27949a['match'](/^heading(\d+)/);if(_0x241334)return _0x241334[0x1];const _0x1a5e70=this['_headingOptions']?.['find'](_0x2fd923=>_0x2fd923['model']==_0x27949a);if(_0x1a5e70&&_0x1a5e70['view']){const _0x5aa20d=_0x1a5e70['view'],_0x71349e=(_0x5aa20d['name']??_0x5aa20d)['match'](/^h(\d+)/);if(_0x71349e)return _0x71349e[0x1];}return null;}},ae=class extends _0x449cd5{['afterInit'](){const _0x2795b5=this['editor'];if(!_0x2795b5['plugins']['has']('HighlightEditing'))return;const _0x2b8cca=_0x2795b5['plugins']['get']('TrackChangesEditing'),_0x42ade9=_0x2795b5['locale'];_0x2b8cca['enableDefaultAttributesIntegration']('highlight'),_0x2b8cca['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x42ade9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d671c=this['editor'],_0x220ba5=_0x5d671c['locale'];_0x5d671c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28b3c1=>{if('formatInline'!=_0x28b3c1['type'])return;const {data:_0x148fc7}=_0x28b3c1;if(_0x148fc7&&'highlight'==_0x148fc7['commandName']){const _0x5ee10b=_0x220ba5['t'],_0x48b68a=_0x148fc7['commandParams'][0x0]['value'];if(_0x48b68a){const _0x872a1a=_0x5d671c['config']['get']('highlight.options')['find'](_0x68c882=>_0x68c882['model']==_0x48b68a);return{'type':'format','content':St(_0x220ba5,'*Set\x20highlight:*\x20%0',_0x5ee10b(_0x872a1a['title'])['toLowerCase']()),'color':{'value':_0x872a1a['color'],'title':_0x872a1a['title']}};}return{'type':'format','content':St(_0x220ba5,'*Remove\x20highlight*',St(_0x220ba5,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x449cd5{['afterInit'](){const _0x5b7e80=this['editor'];if(!_0x5b7e80['plugins']['has']('HorizontalLineEditing'))return;_0x5b7e80['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d68ed=_0x5b7e80['plugins']['get']('TrackChangesEditing'),_0x737037=_0x5b7e80['locale'];_0x4d68ed['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e8590=>St(_0x737037,'ELEMENT_HORIZONTAL_LINE',_0x5e8590));}},le=class extends _0x449cd5{['afterInit'](){const _0x415ade=this['editor'];if(!_0x415ade['plugins']['has']('HtmlEmbed'))return;const _0x10b9a5=_0x415ade['plugins']['get']('TrackChangesEditing'),_0x25f3af=_0x415ade['locale'];_0x10b9a5['descriptionFactory']['registerElementLabel']('rawHtml',_0x1ac0d7=>St(_0x25f3af,'ELEMENT_HTML_EMBED',_0x1ac0d7)),_0x10b9a5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10b9a5['descriptionFactory']['registerDescriptionCallback'](_0x5492d5=>{if('attribute'!=_0x5492d5['type'])return;const {data:_0x2f6ae3}=_0x5492d5;return _0x2f6ae3&&'value'==_0x2f6ae3['key']&&_0x5492d5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x25f3af,'*Change\x20%0\x20content*',St(_0x25f3af,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x110b50=this['editor'],_0x1fbe0f=_0x110b50['locale'];_0x110b50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x318271=>{if('formatBlock'!=_0x318271['type'])return;const {data:_0x590596}=_0x318271;return _0x590596&&'htmlEmbed'==_0x590596['commandName']?{'type':'format','content':St(_0x1fbe0f,'*Change\x20%0\x20content*',St(_0x1fbe0f,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x449cd5{['afterInit'](){const _0x4f2dde=this['editor'];if(!_0x4f2dde['plugins']['has']('ImageEditing'))return;const _0x5207fd=_0x4f2dde['plugins']['get']('TrackChangesEditing'),_0x2d1ca5=_0x4f2dde['plugins']['get']('ImageUtils'),_0x130ebb=_0x4f2dde['locale'];_0x5207fd['enableCommand']('insertImage'),_0x5207fd['descriptionFactory']['registerElementLabel']('imageBlock',_0x247877=>St(_0x130ebb,'ELEMENT_IMAGE',_0x247877)),_0x5207fd['descriptionFactory']['registerElementLabel']('imageInline',_0x328537=>St(_0x130ebb,'ELEMENT_INLINE_IMAGE',_0x328537)),_0x5207fd['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x130ebb,'ELEMENT_CAPTION')),_0x4f2dde['plugins']['has']('ImageUploadEditing')&&_0x5207fd['enableCommand']('uploadImage'),_0x4f2dde['plugins']['has']('ImageBlockEditing')&&_0x4f2dde['plugins']['has']('ImageInlineEditing')&&(_0x5207fd['enableCommand']('imageTypeInline',(_0x78caba,_0x4d1d0a)=>{const _0x23b1a0=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']);_0x4f2dde['model']['change'](()=>{_0x5207fd['markBlockFormat'](_0x23b1a0,{'commandName':'imageTypeInline','commandParams':[_0x4d1d0a]},[],'convertBlockImageToInline');});}),_0x5207fd['enableCommand']('imageTypeBlock',(_0x5e0070,_0x39dd29)=>{_0x4f2dde['model']['change'](_0x1f9bc1=>{let _0x1c4319=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x479b8d=_0x1f9bc1['createRangeOn'](_0x1c4319);const _0x7d3a56=st['fromPosition'](_0x479b8d['start'],'toPrevious'),_0x5c1cbc=st['fromPosition'](_0x479b8d['end'],'toNext');_0x5207fd['forceDefaultExecution'](()=>_0x5e0070(_0x39dd29)),_0x1c4319=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x479b8d=_0x1f9bc1['createRangeOn'](_0x1c4319);const _0x47c9fa=_0x1f9bc1['createRange'](_0x7d3a56,_0x5c1cbc);_0x7d3a56['detach'](),_0x5c1cbc['detach'](),_0x5207fd['markBlockFormat'](_0x1c4319,{'commandName':'imageTypeInline','commandParams':[_0x39dd29]},[],'convertInlineImageToBlock'),_0x47c9fa['start']['isBefore'](_0x479b8d['start'])&&_0x5207fd['markInsertion'](_0x1f9bc1['createRange'](_0x47c9fa['start'],_0x479b8d['start']),'convertInlineImageToBlock'),_0x479b8d['end']['isBefore'](_0x47c9fa['end'])&&_0x5207fd['markInsertion'](_0x1f9bc1['createRange'](_0x479b8d['end'],_0x47c9fa['end']),'convertInlineImageToBlock');});}),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5207fd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xe63a2e])=>{const _0x5f14de=_0x5207fd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1288b1=_0xe63a2e['start'],_0x3d3d8f=_0xe63a2e['end'];const _0x5731bc=_0x4f2dde['model']['schema']['getNearestSelectionRange'](_0x1288b1,'backward'),_0x10b28d=_0x4f2dde['model']['schema']['getNearestSelectionRange'](_0x3d3d8f,'forward');_0x5731bc['isCollapsed']&&(_0x1288b1=_0x5731bc['start']),_0x10b28d['isCollapsed']&&(_0x3d3d8f=_0x10b28d['end']),_0x5f14de([_0x4f2dde['model']['createRange'](_0x1288b1,_0x3d3d8f)]);}),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x19e3ea),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x19e3ea)),_0x4f2dde['plugins']['has']('ImageCaptionEditing')&&(_0x5207fd['enableCommand']('toggleImageCaption',(_0x5d6ed7,_0x5d33df)=>{const _0xe1a1cd=_0x4f2dde['plugins']['get']('ImageCaptionUtils');let _0x49ea34=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x1327e7=_0xe1a1cd['getCaptionFromImageModelElement'](_0x49ea34);_0x4f2dde['model']['change'](()=>{if(_0x1327e7)return void _0x5207fd['markDeletion'](_0x4f2dde['model']['createRangeOn'](_0x1327e7));const _0x482509=_0x2d1ca5['isBlockImage'](_0x49ea34);_0x5d6ed7(_0x5d33df),_0x49ea34=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x1327e7=_0xe1a1cd['getCaptionFromImageModelElement'](_0x49ea34),_0x5207fd['markInsertion'](_0x4f2dde['model']['createRangeOn'](_0x1327e7),_0x482509?null:'imageCaption');});}),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x19e3ea));const _0x48e660=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40ba78(_0x54c85e,_0x4fc5a1){const _0x2f65d9=_0x48e660['findIndex'](({type:_0x42822a,subType:_0x3a691a})=>_0x54c85e['type']==_0x42822a&&_0x54c85e['subType']==_0x3a691a),_0x38e397=_0x48e660['findIndex'](({type:_0x566d7b,subType:_0x2199f0})=>_0x4fc5a1['type']==_0x566d7b&&_0x4fc5a1['subType']==_0x2199f0);if(_0x2f65d9<0x0||_0x38e397<0x0)return!0x1;const _0x493365=_0x54c85e['getFirstRange'](),_0x9a5a38=_0x4fc5a1['getFirstRange']();if((0x0==_0x2f65d9||0x1==_0x2f65d9)&&0x2==_0x38e397&&_0x493365['isIntersecting'](_0x9a5a38))return!0x0;if(0x2==_0x2f65d9&&0x3==_0x38e397){const _0x24da99=_0x5207fd['_findSuggestions'](_0x493365,'insertion')['filter'](({suggestion:_0x4e6558,meta:_0x2ab873})=>_0x2ab873['isOwn']&&'convertInlineImageToBlock'==_0x4e6558['subType']);if(_0x24da99['length']>0x1&&_0x9a5a38['end']['isEqual'](_0x493365['start']))return!0x0;if(0x1==_0x24da99['length']&&(_0x493365['start']['isEqual'](_0x9a5a38['end'])||_0x493365['end']['isEqual'](_0x9a5a38['start'])))return!0x0;}if(0x3==_0x2f65d9&&0x3==_0x38e397&&_0x493365['start']['isBefore'](_0x9a5a38['start'])){const _0x1aba7a=_0x493365['end']['nodeAfter'],_0x51c94a=_0x9a5a38['start']['nodeBefore'];return _0x2d1ca5['isBlockImage'](_0x1aba7a)&&_0x1aba7a===_0x51c94a;}return!0x1;}function _0x19e3ea(_0x5ca868,_0x280f94){return _0x40ba78(_0x5ca868,_0x280f94)?[_0x5ca868,_0x280f94]:_0x40ba78(_0x280f94,_0x5ca868)?[_0x280f94,_0x5ca868]:null;}_0x4f2dde['plugins']['has']('ImageResize')&&(_0x5207fd['enableDefaultAttributesIntegration']('resizeImage'),_0x5207fd['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x130ebb,'FORMAT_IMAGE_SIZE'))),_0x4f2dde['plugins']['has']('ImageTextAlternativeEditing')&&_0x5207fd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4f2dde['plugins']['has']('PictureEditing')&&_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x1f025c=>{if('attribute'!=_0x1f025c['type'])return;const {data:_0x2d7060}=_0x1f025c;return _0x2d7060&&'sources'==_0x2d7060['key']?{'type':'format','content':''}:void 0x0;}),_0x4f2dde['plugins']['has']('ImageSizeAttributes')&&_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x1e0b71=>{if('attribute'!=_0x1e0b71['type'])return;const {data:_0x1fcf5a}=_0x1e0b71;return!_0x1fcf5a||'width'!=_0x1fcf5a['key']&&'height'!=_0x1fcf5a['key']?void 0x0:{'type':'format','content':''};}),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x2a8393=>{if(_0x48e660['find'](({type:_0x32d059,subType:_0x164f02})=>_0x2a8393['type']==_0x32d059&&_0x2a8393['subType']==_0x164f02))return _0x2a8393['previous']?{}:void 0x0;}),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x4680ac=>{if('insertion'==_0x4680ac['type']||'deletion'==_0x4680ac['type']){const _0x1a0c3e=_0x4680ac['getContainedElement']();if(_0x1a0c3e&&_0x1a0c3e['is']('element','caption'))return{'type':'insertion'==_0x4680ac['type']?'addObject':'removeObject','element':_0x1a0c3e,'quantity':0x1};}}),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x1c552a=>'formatBlock'==_0x1c552a['type']&&'convertInlineImageToBlock'==_0x1c552a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c552a['type']&&'convertBlockImageToInline'==_0x1c552a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x40ea9b=>{if('attribute'!=_0x40ea9b['type'])return;const {data:_0x2de848}=_0x40ea9b;if(!_0x2de848||'alt'!=_0x2de848['key'])return;const _0x428a76=_0x2de848['newValue'];return _0x428a76?{'type':'format','content':St(_0x130ebb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x428a76+'\x22')}:{'type':'format','content':St(_0x130ebb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21ab2e=this['editor'],_0x49a011=_0x21ab2e['locale'];_0x21ab2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x481a0d=>{if('formatBlock'!=_0x481a0d['type']&&'formatInline'!=_0x481a0d['type'])return;const {data:_0x2c957e}=_0x481a0d;if(_0x2c957e){if('imageTextAlternative'==_0x2c957e['commandName']){const _0x22ec84=_0x2c957e['commandParams'][0x0]['newValue'];return _0x22ec84?{'type':'format','content':St(_0x49a011,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22ec84+'\x22')}:{'type':'format','content':St(_0x49a011,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2c957e['commandName']){const _0x4535af=_0x2c957e['commandParams'][0x0]['width'];return _0x4535af?{'type':'format','content':St(_0x49a011,'*Set\x20image\x20width:*\x20%0',_0x4535af)}:{'type':'format','content':St(_0x49a011,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4671fa=this['editor']['locale'],_0x19ef8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x19ef8f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x19ef8f['descriptionFactory']['registerDescriptionCallback'](_0x3c0068=>{if('attribute'!=_0x3c0068['type'])return;const {data:_0x2fa3ba}=_0x3c0068;return _0x2fa3ba&&'src'==_0x2fa3ba['key']?_0x2fa3ba['newValue']&&_0x2fa3ba['oldValue']?{'type':'format','content':St(_0x4671fa,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38ea1c=this['editor']['plugins']['get']('TrackChangesEditing');_0x38ea1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38ea1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38ea1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38ea1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4032ee=this['editor'],_0x48ca18=_0x4032ee['locale'];_0x4032ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x554a37=>{if('formatBlock'!=_0x554a37['type']&&'formatInline'!=_0x554a37['type'])return;const {data:_0x4bb6ac}=_0x554a37;return _0x4bb6ac&&'replaceImageSource'==_0x4bb6ac['commandName']?{'type':'format','content':St(_0x48ca18,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x449cd5{['afterInit'](){const _0x4b9a9f=this['editor'];if(!_0x4b9a9f['plugins']['has']('ImageStyleEditing'))return;const _0x1115d7=_0x4b9a9f['plugins']['get']('TrackChangesEditing'),_0x56d511=_0x4b9a9f['plugins']['get']('ImageUtils'),_0x1497fa={};_0x1115d7['enableCommand']('imageStyle',(_0xfe153f,_0x506515)=>{const _0x10205a=_0x4b9a9f['plugins']['get']('Users')['me'],_0x2557d9=_0x4b9a9f['commands']['get']('imageStyle');let _0x197ad5=_0x56d511['getClosestSelectedImageElement'](_0x4b9a9f['model']['document']['selection']),_0x2a416f=_0x4b9a9f['model']['createRangeOn'](_0x197ad5),_0x44ed9d=_0x2557d9['value'];if(_0x44ed9d==_0x506515['value'])return;if(_0x506515['value']&&_0x56d511['isInlineImage'](_0x197ad5)&&!_0x2557d9['isStyleEnabled'](_0x506515['value']))return;const _0x3d2c1b={'commandName':'imageStyle','commandParams':[_0x506515],'formatGroupId':_0x1c0f04()};_0x4b9a9f['model']['change'](()=>{if(_0x1115d7['getSuggestions']()['filter'](_0x8d6e23=>_0x8d6e23['isInContent']&&_0x10205a==_0x8d6e23['author']&&('formatBlock'==_0x8d6e23['type']||'formatInline'==_0x8d6e23['type'])&&('imageStylePreApply'==_0x8d6e23['subType']||'imageStylePostApply'==_0x8d6e23['subType'])&&_0x8d6e23['getFirstRange']()['isEqual'](_0x2a416f))['forEach'](_0x3f49f0=>_0x1115d7['discardSuggestion'](_0x3f49f0['head'])),_0x197ad5=_0x56d511['getClosestSelectedImageElement'](_0x4b9a9f['model']['document']['selection']),_0x2a416f=_0x4b9a9f['model']['createRangeOn'](_0x197ad5),_0x2557d9['refresh'](),_0x4b9a9f['commands']['get']('imageTypeInline')['refresh'](),_0x4b9a9f['commands']['get']('imageTypeBlock')['refresh'](),_0x44ed9d=_0x2557d9['value'],_0x44ed9d!=_0x506515['value'])return _0x56d511['isInlineImage'](_0x197ad5)&&_0x2557d9['shouldConvertImageType'](_0x506515['value'],_0x197ad5)?(_0xfe153f({..._0x506515,'setImageSizes':!0x1}),_0x197ad5=_0x56d511['getClosestSelectedImageElement'](_0x4b9a9f['model']['document']['selection']),void _0x1115d7['markBlockFormat'](_0x197ad5,{..._0x3d2c1b,'commandReversedParams':[{'value':_0x44ed9d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x56d511['isBlockImage'](_0x197ad5)?_0x1115d7['markBlockFormat'](_0x197ad5,_0x3d2c1b,[],'imageStylePostApply'):_0x1115d7['markInlineFormat'](_0x2a416f,_0x3d2c1b,'imageStylePostApply'));});});for(const _0x46db99 of _0x4b9a9f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1497fa[_0x46db99['name']]=_0x46db99['title']['toLowerCase']();_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3957d5])=>{_0x56d511['setImageNaturalSizeAttributes'](_0x3957d5['getContainedElement']());}),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d5210,_0x31b04e)=>{_0x1115d7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d5210,{'commandName':_0x31b04e['commandName'],'commandParams':_0x31b04e['commandReversedParams']});}),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xadffbd,_0x5edd54){return _0xd3a7a5(_0xadffbd,_0x5edd54)?[_0xadffbd,_0x5edd54]:_0xd3a7a5(_0x5edd54,_0xadffbd)?[_0x5edd54,_0xadffbd]:null;});const _0x10b7be=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd3a7a5(_0x3a23d1,_0x50ecaa){const _0x4fe1bf=_0x10b7be['findIndex'](({type:_0x5ce3b4,subType:_0x17f24a})=>_0x3a23d1['type']==_0x5ce3b4&&_0x3a23d1['subType']==_0x17f24a),_0x2afa55=_0x10b7be['findIndex'](({type:_0x7ea3c4,subType:_0x4ef798})=>_0x50ecaa['type']==_0x7ea3c4&&_0x50ecaa['subType']==_0x4ef798);if(_0x4fe1bf<0x0||_0x2afa55<0x0)return!0x1;const _0x1cd8e3=_0x3a23d1['getFirstRange'](),_0x2c1376=_0x50ecaa['getFirstRange']();if((0x0==_0x4fe1bf||0x1==_0x4fe1bf)&&0x2==_0x2afa55&&_0x1cd8e3['isIntersecting'](_0x2c1376))return!0x0;if(0x2==_0x4fe1bf&&0x3==_0x2afa55){const _0x24ecc3=_0x1115d7['_findSuggestions'](_0x1cd8e3,'insertion')['filter'](({suggestion:_0x136e6f,meta:_0x1ede51})=>_0x1ede51['isOwn']&&'convertInlineImageToBlock'==_0x136e6f['subType']);if(_0x24ecc3['length']>0x1&&_0x2c1376['end']['isEqual'](_0x1cd8e3['start']))return!0x0;if(0x1==_0x24ecc3['length']&&(_0x1cd8e3['start']['isEqual'](_0x2c1376['end'])||_0x1cd8e3['end']['isEqual'](_0x2c1376['start'])))return!0x0;}if(0x3==_0x4fe1bf&&0x3==_0x2afa55&&_0x1cd8e3['start']['isBefore'](_0x2c1376['start'])){const _0x3762f0=_0x1cd8e3['end']['nodeAfter'],_0x4fd024=_0x2c1376['start']['nodeBefore'];return _0x56d511['isBlockImage'](_0x3762f0)&&_0x3762f0===_0x4fd024;}return!0x1;}_0x4b9a9f['model']['document']['registerPostFixer'](()=>{let _0x5ef774=!0x1;const _0x4dd280=Array['from'](_0x4b9a9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a4832,data:_0x56b987}of _0x4dd280){const {group:_0x319b75,type:_0x28e929,subType:_0x1e9a45,id:_0x51dc17}=tt(_0x5a4832);if('suggestion'==_0x319b75&&_0x1115d7['hasSuggestion'](_0x51dc17)){if('formatBlock'==_0x28e929&&('imageStylePreApply'==_0x1e9a45||'imageStylePostApply'==_0x1e9a45)){const _0x342502=_0x1115d7['getSuggestion'](_0x51dc17);if(_0x56b987['newRange']){const _0x22fd02=_0x342502['getFirstRange']()['getContainedElement']();if(_0x56d511['isBlockImage'](_0x22fd02))continue;_0x1115d7['discardSuggestion'](_0x342502),_0x5ef774=!0x0;}}if('insertion'==_0x28e929&&'imageCaption'==_0x1e9a45&&!_0x56b987['newRange']){const _0x2d4627=_0x1115d7['getSuggestion'](_0x51dc17);_0x2d4627['next']&&_0x2d4627['next']['isInContent']&&(_0x1115d7['discardSuggestion'](_0x2d4627['next']),_0x5ef774=!0x0);}}}return _0x5ef774;}),this['_registerLegacyDescription'](_0x1497fa);}['_registerLegacyDescription'](_0x4526ba){const _0x1d0580=this['editor'],_0xe0ce58=_0x1d0580['locale'];_0x1d0580['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a3e28=>{if('formatBlock'!=_0x4a3e28['type']&&'formatInline'!=_0x4a3e28['type'])return;const {data:_0xbe8495}=_0x4a3e28;if(!_0xbe8495||'imageStyle'!=_0xbe8495['commandName'])return;const _0x379604=_0xbe8495['commandParams'][0x0]['value'];return _0x1ffa91('side'===_0x379604?St(_0xe0ce58,'FORMAT_SIDE_IMAGE'):_0x4526ba[_0x379604]||_0x379604);function _0x1ffa91(_0x5e4ccb){return{'type':'format','content':St(_0xe0ce58,'*Format:*\x20%0',_0x5e4ccb)};}});}},ge=class extends _0x449cd5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3985e1){super(_0x3985e1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c216a=this['editor'],_0xd8835e=_0x5c216a['commands']['get']('importWord'),_0x48313f=_0x5c216a['commands']['get']('trackChanges');_0xd8835e&&(_0xd8835e['on']('execute',(_0x26006c,[,_0x157da6])=>{this['_trackChangesValueDuringImport']=_0x48313f['value'],_0x157da6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd8835e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd8835e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48313f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c216a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x370f87,_0x13d397){const {suggestions:_0x1f365d}=_0x13d397,_0x413470=this['editor']['commands']['get']('trackChanges'),_0x185ceb=_0x413470['value'];this['_trackChangesValueDuringImport']!==_0x185ceb&&(_0x413470['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f365d&&_0x1f365d['forEach'](({id:_0x421d6f,type:_0x2aa687,author:_0x15952a,created_at:_0x47fd17})=>{const _0x57887b={'id':_0x421d6f,'type':_0x2aa687,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15952a,'createdAt':_0x47fd17?new Date(_0x47fd17):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x57887b);});}},fe=class extends _0x449cd5{['afterInit'](){const _0x5bba22=this['editor'],_0x5c2203=_0x5bba22['plugins']['get']('TrackChangesEditing');if(_0x5bba22['plugins']['has']('IndentEditing')&&(_0x5c2203['enableCommand']('indent'),_0x5c2203['enableCommand']('outdent')),_0x5bba22['plugins']['has']('IndentBlock')){for(const _0x38c4d0 of['indentBlock','outdentBlock'])_0x5c2203['enableDefaultAttributesIntegration'](_0x38c4d0);if(_0x5bba22['plugins']['has']('ListEditing')){for(const _0x2225cc of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5c2203['enableDefaultAttributesIntegration'](_0x2225cc);}}const _0x2bee07=_0x5bba22['locale'];_0x5c2203['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x2bee07,'FORMAT_INDENT')),_0x5c2203['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x2bee07,'FORMAT_INDENT')),_0x5c2203['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x2bee07,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3caca1=this['editor'],_0x405677=_0x3caca1['locale'],_0x31125e=_0x3caca1['plugins']['get']('TrackChangesEditing');_0x31125e['descriptionFactory']['registerDescriptionCallback'](_0x367a67=>{if('formatBlock'!=_0x367a67['type'])return;const {data:_0xb96026}=_0x367a67;if(!_0xb96026)return;if('indentBlock'!=_0xb96026['commandName']&&'outdentBlock'!=_0xb96026['commandName'])return;const _0x3c481c=_0x367a67['getItems']()[0x0],_0x3e542f=_0x31125e['descriptionFactory']['getItemLabel'](_0x3c481c);return'indentBlock'==_0xb96026['commandName']?{'type':'format','content':St(_0x405677,'*Indent:*\x20%0',_0x3e542f)}:'outdentBlock'==_0xb96026['commandName']?{'type':'format','content':St(_0x405677,'*Outdent:*\x20%0',_0x3e542f)}:void 0x0;});}},me=class extends _0x449cd5{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x449cd5{['afterInit'](){const _0x47ad50=this['editor'];if(!_0x47ad50['plugins']['has']('LinkEditing'))return;const _0x87f01a=_0x47ad50['plugins']['get']('TrackChangesEditing'),_0x2e1aae=_0x47ad50['commands']['get']('link');_0x87f01a['enableDefaultAttributesIntegration']('link'),_0x87f01a['enableDefaultAttributesIntegration']('unlink');for(const _0x1f0691 of _0x2e1aae['manualDecorators'])_0x87f01a['descriptionFactory']['registerAttributeLabel'](_0x1f0691['id'],'link\x20('+_0x1f0691['label']['toLowerCase']()+')');_0x87f01a['descriptionFactory']['registerDescriptionCallback'](_0x323256=>{if('attribute'!=_0x323256['type'])return;const {data:_0x4db6a6}=_0x323256;if(!_0x4db6a6||'linkHref'!=_0x4db6a6['key'])return;const _0x1355fd=_0x4db6a6['newValue'],_0xb85b00=_0x47ad50['locale'];return{'type':'format','content':null==_0x1355fd?St(_0xb85b00,'*Remove\x20link*'):St(_0xb85b00,'*Set\x20link:*\x20%0','\x22'+_0x1355fd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x152f63=this['editor'],_0x389d0d=_0x152f63['locale'];_0x152f63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6fc0=>{if('formatInline'!=_0x3c6fc0['type'])return;const {data:_0x254e21}=_0x3c6fc0;if(_0x254e21){if('link'==_0x254e21['commandName']){const _0x4b679e=_0x254e21['commandParams'][0x0];return{'type':'format','content':St(_0x389d0d,'*Set\x20link:*\x20%0','\x22'+_0x4b679e+'\x22')};}return'unlink'==_0x254e21['commandName']?{'type':'format','content':St(_0x389d0d,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x449cd5{['afterInit'](){const _0x19a49a=this['editor'],_0x501e77=_0x19a49a['locale'];if(!_0x19a49a['plugins']['has']('LegacyListEditing'))return;const _0x21c8b9=_0x19a49a['plugins']['get']('TrackChangesEditing'),_0x5eadc6=_0x19a49a['plugins']['has']('LegacyTodoListEditing');function _0x31742b(_0x5ffeb4){return()=>{const _0x23b4ad=_0x19a49a['model']['document']['selection'],_0x1881f1=_0x19a49a['commands']['get'](_0x5ffeb4);if(_0x1881f1['value'])return void _0x19a49a['execute']('paragraph',{});const _0x3b7588=_0x5ffeb4['slice'](0x0,-0x4),_0x5740bb=function(_0x592b6c,_0x29e373,_0x13a11a){let _0x55347c=Array['from'](_0x592b6c)['filter'](_0x225bed=>function(_0x3bcebe,_0x4ed228){return _0x4ed228['checkChild'](_0x3bcebe['parent'],'listItem')&&!_0x4ed228['isObject'](_0x3bcebe);}(_0x225bed,_0x13a11a));_0x55347c=_0x55347c['filter'](_0x22373a=>!_0x22373a['is']('element','listItem')||_0x22373a['getAttribute']('listType')!=_0x29e373);const _0x5c1c90=new Set();for(const _0x550631 of _0x55347c)_0x550631['is']('element','listItem')?_0x5c1c90['add'](_e(_0x550631)):_0x5c1c90['add'](_0x550631);return Array['from'](_0x5c1c90);}(_0x23b4ad['getSelectedBlocks'](),_0x3b7588,_0x19a49a['model']['schema']);_0x19a49a['model']['change'](()=>{for(const _0x523078 of _0x5740bb)_0x21c8b9['markBlockFormat'](_0x523078,{'commandName':_0x5ffeb4,'commandParams':[{'forceValue':!_0x1881f1['value']}],'formatGroupId':'blockName'},pe(_0x523078));});};}function _0x55648a(_0x27b9a5){return()=>{const _0x5c1342=function(_0x20815e){let _0x1129d4=Array['from'](_0x20815e);const _0x50dff8=_0x1129d4['findIndex'](_0x5520fe=>'listItem'!=_0x5520fe['name']);return _0x50dff8>-0x1&&(_0x1129d4=_0x1129d4['slice'](0x0,_0x50dff8)),_0x1129d4;}(_0x19a49a['model']['document']['selection']['getSelectedBlocks']()),_0x4bfc55=_0x19a49a['model']['createRange'](_0x19a49a['model']['createPositionAt'](_0x5c1342[0x0],'before'),_0x19a49a['model']['createPositionAt'](_0x5c1342[_0x5c1342['length']-0x1],'end'));_0x19a49a['model']['change'](()=>{_0x21c8b9['markBlockFormat'](_0x4bfc55,{'commandName':_0x27b9a5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2839ff){const _0x4a1913=new Set();for(const _0x5cb652 of _0x2839ff){let _0x1d263e=_0x5cb652['nextSibling'];for(;_0x1d263e&&_0x1d263e['getAttribute']('listIndent')>_0x5cb652['getAttribute']('listIndent');)_0x4a1913['add'](_0x1d263e),_0x1d263e=_0x1d263e['nextSibling'];}return Array['from'](_0x4a1913);}(_0x5c1342));});};}_0x21c8b9['enableCommand']('numberedList',_0x31742b('numberedList')),_0x21c8b9['enableCommand']('bulletedList',_0x31742b('bulletedList')),_0x5eadc6&&_0x21c8b9['enableCommand']('todoList',_0x31742b('todoList')),_0x21c8b9['enableCommand']('indentList',_0x55648a('indentList')),_0x21c8b9['enableCommand']('outdentList',_0x55648a('outdentList')),_0x5eadc6&&_0x21c8b9['enableCommand']('checkTodoList',()=>{const _0x47833a=_0x19a49a['commands']['get']('checkTodoList'),_0x17242a=Array['from'](_0x47833a['_selectedElements']);_0x17242a['filter'](_0x354398=>_0x354398['getAttribute']('todoListChecked')!=_0x47833a['value']),_0x19a49a['model']['change'](()=>{for(const _0x312142 of _0x17242a)_0x21c8b9['markBlockFormat'](_0x312142,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47833a['value']}]});});}),_0x21c8b9['descriptionFactory']['registerElementLabel']('listItem',_0x52d225=>St(_0x501e77,'ELEMENT_LIST_ITEM',_0x52d225)),_0x21c8b9['descriptionFactory']['registerDescriptionCallback'](_0x50ff8a=>{if('formatBlock'!=_0x50ff8a['type']&&'formatInline'!=_0x50ff8a['type'])return;const {data:_0x881024}=_0x50ff8a;if(_0x881024){if('numberedList'==_0x881024['commandName']||'bulletedList'==_0x881024['commandName']||'todoList'==_0x881024['commandName'])switch(_0x881024['commandName']['replace']('List','')){case'bulleted':return _0x15a8ea(St(_0x501e77,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15a8ea(St(_0x501e77,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15a8ea(St(_0x501e77,'ELEMENT_TODO_LIST'));}if('indentList'==_0x881024['commandName'])return{'type':'format','content':St(_0x501e77,'*Indent:*\x20%0',St(_0x501e77,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x881024['commandName'])return{'type':'format','content':St(_0x501e77,'*Outdent:*\x20%0',St(_0x501e77,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x881024['commandName'])return _0x881024['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x501e77,'*Check\x20item*')}:{'type':'format','content':St(_0x501e77,'*Uncheck\x20item*')};}function _0x15a8ea(_0x18cf0a){return{'type':'format','content':St(_0x501e77,'*Change\x20to:*\x20%0',_0x18cf0a)};}});}};function _e(_0x348044){const _0x5d5e81=_0x348044['getAttribute']('listIndent');if(0x0==_0x5d5e81)return _0x348044;let _0x2940ed=_0x348044;for(;_0x348044['previousSibling']&&_0x348044['previousSibling']['is']('element','listItem');){const _0x3c54e4=_0x348044['previousSibling']['getAttribute']('listIndent');if(_0x3c54e4==_0x5d5e81)_0x2940ed=_0x348044['previousSibling'];else{if(_0x3c54e4<_0x5d5e81)break;}_0x348044=_0x348044['previousSibling'];}return _0x2940ed;}function pe(_0x227ec3){const _0xc4726e=[];if(_0x227ec3['is']('element','listItem')&&_0x227ec3['getAttribute']('listIndent')>0x0){let _0x19ce77=_0x227ec3['nextSibling'];for(;_0x19ce77&&'listItem'==_0x19ce77['name']&&_0x19ce77['getAttribute']('listIndent')==_0x227ec3['getAttribute']('listIndent');)_0xc4726e['push'](_0x19ce77),_0x19ce77=_0x19ce77['nextSibling'];}return _0xc4726e;}var Le=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2c48e7=this['editor']['config']['get']('list.properties'),_0x594115=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c48e7['styles']&&_0x594115['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2c48e7['reversed']&&_0x594115['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2c48e7['startIndex']&&_0x594115['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x594115['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3839c3,_0x5066d1={}){const _0x4c32eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4820f4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c32eb['markMultiRangeBlockFormat'](_0x4820f4,{'commandName':'listStyle','commandParams':[{'type':_0x5066d1['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4dad67,_0x23d849={}){const _0x51f579=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55b918=this['_getSuggestionBlocks'](_0x1a5faf=>_0x1a5faf['is']('element','listItem')&&'numbered'===_0x1a5faf['getAttribute']('listType'));if(_0x55b918['length']<0x1)return;const _0x287e48=_0x55b918['map'](_0x41a229=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41a229,'before'),this['editor']['model']['createPositionAt'](_0x41a229,0x0)));this['editor']['model']['change'](()=>{_0x51f579['markMultiRangeBlockFormat'](_0x287e48,{'commandName':'listReversed','commandParams':[{'reversed':_0x23d849['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1bc8f7,_0x5550a3={}){const _0x345afc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3229a0=this['_getSuggestionBlocks'](_0x4cfbce=>_0x4cfbce['is']('element','listItem')&&'numbered'===_0x4cfbce['getAttribute']('listType'));if(_0x3229a0['length']<0x1)return;const _0x5d500b=_0x3229a0['map'](_0x5697a0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5697a0,'before'),this['editor']['model']['createPositionAt'](_0x5697a0,0x0)));this['editor']['model']['change'](()=>{_0x345afc['markMultiRangeBlockFormat'](_0x5d500b,{'commandName':'listStart','commandParams':[{'startIndex':_0x5550a3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x25636e){if('formatBlock'!=_0x25636e['type']&&'formatInline'!=_0x25636e['type'])return;const _0xa819c2=this['editor']['locale'],{data:_0x265ef0}=_0x25636e;if(!_0x265ef0)return;let _0x2afb7f,_0x6d29ec;switch(_0x265ef0['commandName']){case'listStyle':_0x2afb7f='*Change\x20to:*\x20%0',_0x6d29ec={'type':'format','content':St(_0xa819c2,_0x2afb7f,St(_0xa819c2,this['_getTranslationKeyForListStyle'](_0x265ef0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2afb7f=_0x265ef0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6d29ec={'type':'format','content':St(_0xa819c2,_0x2afb7f)};break;case'listStart':_0x2afb7f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6d29ec={'type':'format','content':St(_0xa819c2,_0x2afb7f,_0x265ef0['commandParams'][0x0]['startIndex'])};}return _0x6d29ec;}['_getSuggestionBlocksForListStyle'](){const _0x598f32=this['editor']['plugins']['get']('LegacyListUtils');let _0x24b530=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x24b530[0x0]?.['is']('element','listItem')&&_0x24b530['unshift'](..._0x598f32['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x24b530[_0x24b530['length']-0x1]?.['is']('element','listItem')&&_0x24b530['push'](..._0x598f32['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x24b530=[...new Set(_0x24b530)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x24b530=_0x24b530['filter'](_0x57501a=>_0x57501a['is']('element','listItem'))),_0x24b530;}['_getSuggestionBlocks'](_0x1998e3){const _0xfcc3b3=this['editor']['plugins']['get']('LegacyListUtils');let _0xf30352=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1998e3)['map'](_0x36816f=>{const _0x4670f5=this['editor']['model']['createPositionAt'](_0x36816f,0x0);return[..._0xfcc3b3['getSiblingNodes'](_0x4670f5,'backward'),..._0xfcc3b3['getSiblingNodes'](_0x4670f5,'forward')];})['flat']();return _0xf30352=[...new Set(_0xf30352)],_0xf30352;}['_getTranslationKeyForListStyle'](_0x14d067){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x14d067)||'default')['toUpperCase']()+'_LIST_'+_0x14d067['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x449cd5{['afterInit'](){const _0x378b86=this['editor'];if(!_0x378b86['plugins']['has']('MediaEmbedEditing'))return;const _0x38fbdd=_0x378b86['plugins']['get']('TrackChangesEditing'),_0x16760c=_0x378b86['locale'];_0x38fbdd['enableCommand']('mediaEmbed'),_0x38fbdd['descriptionFactory']['registerElementLabel']('media',_0x36d873=>St(_0x16760c,'ELEMENT_MEDIA',_0x36d873)),_0x378b86['plugins']['has']('MediaEmbedResizeEditing')&&(_0x38fbdd['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x38fbdd['descriptionFactory']['registerDescriptionCallback'](_0x49a279=>{if('attribute'!=_0x49a279['type'])return;const {data:_0x3d9b4a}=_0x49a279;if(!_0x3d9b4a||'resizedWidth'!=_0x3d9b4a['key'])return;const _0x21b811=_0x49a279['getContainedElement']();return _0x21b811&&_0x21b811['is']('element','media')?{'type':'format','content':St(_0x16760c,'*Set\x20format:*\x20%0',St(_0x16760c,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x449cd5{['afterInit'](){const _0x4ce5ca=this['editor'];if(!_0x4ce5ca['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x4fabdd=_0x4ce5ca['plugins']['get']('TrackChangesEditing'),_0x4381f3=_0x4ce5ca['locale'],_0x19f816=_0x4ce5ca['plugins']['get']('MediaEmbedStyleEditing'),_0x55175d={};for(const _0x486f08 of _0x19f816['normalizedStyles'])_0x55175d[_0x486f08['name']]=_0x486f08['title']['toLowerCase']();const _0x4099df=_0x19f816['normalizedStyles']['find'](_0x41efb9=>_0x41efb9['isDefault'])?.['name'];_0x4fabdd['enableCommand']('mediaStyle',(_0x564b93,_0x8d8f1f)=>{const _0x4dec12=_0x4ce5ca['plugins']['get']('Users')['me'],_0x35c8e3=_0x4ce5ca['commands']['get']('mediaStyle'),_0x4046fb=function(_0x5f07c0){const _0x816858=_0x5f07c0['model']['document']['selection']['getSelectedElement']();return _0x816858&&_0x816858['is']('element','media')?_0x816858:null;}(_0x4ce5ca);if(!_0x4046fb)return;const _0xa04824=_0x4ce5ca['model']['createRangeOn'](_0x4046fb);let _0x5e1cbd=_0x35c8e3['value'];if(_0x5e1cbd==_0x8d8f1f['value'])return;const _0x152dbd={'commandName':'mediaStyle','commandParams':[_0x8d8f1f],'formatGroupId':_0x1c0f04()};_0x4ce5ca['model']['change'](()=>{_0x4fabdd['getSuggestions']()['filter'](_0x920aef=>_0x920aef['isInContent']&&_0x4dec12==_0x920aef['author']&&'formatBlock'==_0x920aef['type']&&'mediaStylePostApply'==_0x920aef['subType']&&_0x920aef['getFirstRange']()['isEqual'](_0xa04824))['forEach'](_0xe96c14=>_0x4fabdd['discardSuggestion'](_0xe96c14['head'])),_0x35c8e3['refresh'](),_0x5e1cbd=_0x35c8e3['value'],_0x5e1cbd!=_0x8d8f1f['value']&&_0x4fabdd['markBlockFormat'](_0x4046fb,{..._0x152dbd,'commandReversedParams':[{'value':'string'==typeof _0x5e1cbd?_0x5e1cbd:null}]},[],'mediaStylePostApply');});}),_0x4fabdd['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x4fabdd['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1aeb3e,_0x43a406)=>{_0x4fabdd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1aeb3e,{'commandName':_0x43a406['commandName'],'commandParams':_0x43a406['commandReversedParams']});}),_0x4fabdd['descriptionFactory']['registerDescriptionCallback'](_0xf70454=>{if('formatBlock'!=_0xf70454['type'])return;const {data:_0x576699}=_0xf70454;if(!_0x576699||'mediaStyle'!=_0x576699['commandName'])return;const _0x29aa20=_0x576699['commandParams'][0x0]['value']||_0x4099df;return _0x29aa20?{'type':'format','content':St(_0x4381f3,'*Format:*\x20%0',_0x55175d[_0x29aa20]||_0x29aa20)}:void 0x0;});}},be=class extends _0x449cd5{['afterInit'](){const _0x5ee9b5=this['editor'];_0x5ee9b5['plugins']['has']('MentionEditing')&&_0x5ee9b5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x449cd5{['afterInit'](){const _0xe75477=this['editor'];if(!_0xe75477['plugins']['has']('MergeFieldsEditing'))return;const _0x15d3d1=_0xe75477['plugins']['get']('TrackChangesEditing'),_0x4b526b=_0xe75477['locale'];_0x15d3d1['enableCommand']('insertMergeField'),_0x15d3d1['enableCommand']('insertMergeFieldBlock'),_0x15d3d1['enableCommand']('insertMergeFieldImage'),_0x15d3d1['descriptionFactory']['registerElementLabel']('mergeField',_0x8bff1e=>St(_0x4b526b,'ELEMENT_MERGE_FIELD',_0x8bff1e)),_0x15d3d1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x57c3fa=>St(_0x4b526b,'ELEMENT_MERGE_FIELD',_0x57c3fa)),_0x15d3d1['descriptionFactory']['registerDescriptionCallback'](_0xc6cff3=>{if('insertion'!=_0xc6cff3['type']&&'deletion'!=_0xc6cff3['type'])return;const _0x1ae203=_0xc6cff3['getContainedElement']();if(null==_0x1ae203)return;const _0x908cc=_0xe75477['plugins']['get']('MergeFieldsEditing');let _0x48efd1;switch(_0x908cc['getMergeFieldType'](_0x1ae203)){case null:return;case'image':{const _0x4ccd50=_0x908cc['unwrapAffixes'](_0x1ae203['getAttribute']('src'));_0x48efd1=_0x908cc['getLabel'](_0x4ccd50)||_0x4ccd50;break;}default:{const _0x37af22=_0x1ae203['getAttribute']('id');_0x48efd1=_0x908cc['getLabel'](_0x37af22)||_0x37af22;break;}}return'insertion'==_0xc6cff3['type']?{'type':'insertion','content':St(_0x4b526b,'*Insert:*\x20%0','\x22'+_0x48efd1+'\x22\x20'+St(_0x4b526b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x4b526b,'*Remove:*\x20%0','\x22'+_0x48efd1+'\x22\x20'+St(_0x4b526b,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x449cd5{['afterInit'](){const _0x345ed8=this['editor'],_0x4939b7=_0x345ed8['plugins']['get']('TrackChangesEditing');_0x345ed8['plugins']['has']('MultiLevelList')&&(_0x4939b7['enableDefaultAttributesIntegration']('multiLevelList'),_0x4939b7['descriptionFactory']['registerDescriptionCallback'](_0x1f9d9c=>this['handleDescriptions'](_0x1f9d9c)));}['handleDescriptions'](_0x3e1ece){const _0x2619ea=this['editor']['locale'],{data:_0x46a7fb}=_0x3e1ece,_0x117818={'type':'format','content':''};if(_0x46a7fb&&'listMarkerStyle'==_0x46a7fb['key']){if(!_0x46a7fb['oldValue'])return{'type':'format','content':St(_0x2619ea,'*Set\x20format:*\x20%0',St(_0x2619ea,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46a7fb['newValue']+')'};if(!_0x46a7fb['newValue']){let _0x24de55=_0x3e1ece['head'];for(;_0x24de55;){if(_0x24de55['data']&&'listType'==_0x24de55['data']['key']&&_0x24de55['data']['newValue'])return _0x117818;_0x24de55=_0x24de55['next'];}return{'type':'format','content':St(_0x2619ea,'*Remove\x20format:*\x20%0',St(_0x2619ea,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46a7fb['oldValue']+')'};}}}},Re=class extends _0x449cd5{['afterInit'](){const _0x47838c=this['editor'];if(!_0x47838c['plugins']['has']('PageBreakEditing'))return;_0x47838c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x521fbf=_0x47838c['plugins']['get']('TrackChangesEditing'),_0x72d53=_0x47838c['locale'];_0x521fbf['descriptionFactory']['registerElementLabel']('pageBreak',_0x2f6cb4=>St(_0x72d53,'ELEMENT_PAGE_BREAK',_0x2f6cb4));}},Ne=class extends _0x449cd5{['afterInit'](){const _0x24a872=this['editor'];if(!_0x24a872['plugins']['has']('Paragraph'))return;const _0x5d8d40=_0x24a872['locale'],_0x29f347=_0x24a872['plugins']['get']('TrackChangesEditing');_0x29f347['descriptionFactory']['registerElementLabel']('paragraph',_0x25a27d=>St(_0x5d8d40,'ELEMENT_PARAGRAPH',_0x25a27d)),_0x29f347['enableDefaultAttributesIntegration']('paragraph'),_0x29f347['enableCommand']('insertParagraph');const _0x459007=_0x29f347['descriptionFactory'];_0x459007['registerDescriptionCallback'](_0x2fa020=>{if('insertion'!==_0x2fa020['type'])return;const {start:_0x34d7b4,end:_0x4af19a}=_0x2fa020['getFirstRange']();if(!_0x34d7b4['isTouching'](_0x4af19a)||!_0x34d7b4['nodeAfter'])return;const _0x4f7931=_0x24a872['model']['schema'],_0x5881e1=_0x34d7b4['nodeAfter'];return _0x4f7931['isBlock'](_0x5881e1)&&!_0x4f7931['isLimit'](_0x5881e1)&&_0x4f7931['checkChild'](_0x5881e1,'$text')?{'type':'insertion','content':St(_0x5d8d40,'*Insert:*\x20%0',_0x459007['getItemLabel'](_0x5881e1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23159b=this['editor'],_0x1ffa1c=_0x23159b['locale'];_0x23159b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203748=>{if('formatBlock'!=_0x203748['type'])return;const {data:_0x396737}=_0x203748;return _0x396737&&'paragraph'==_0x396737['commandName']?{'type':'format','content':St(_0x1ffa1c,'*Change\x20to:*\x20%0',St(_0x1ffa1c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x449cd5{['afterInit'](){const _0x75ea89=this['editor'];_0x75ea89['commands']['get']('replaceSource')&&_0x75ea89['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x449cd5{['afterInit'](){const _0x591fbe=this['editor'];_0x591fbe['plugins']['has']('RemoveFormatEditing')&&(_0x591fbe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x44f2d8=this['editor'];_0x44f2d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c27a3=>{if('formatBlock'!=_0x2c27a3['type']&&'formatInline'!=_0x2c27a3['type'])return;const {data:_0x25d697}=_0x2c27a3;return _0x25d697&&'removeFormat'==_0x25d697['commandName']?{'type':'format','content':St(_0x44f2d8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x449cd5{['afterInit'](){const _0x27dec1=this['editor'];if(!_0x27dec1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1344af=_0x27dec1['plugins']['get']('TrackChangesEditing');_0x1344af['enableCommand']('goToPreviousRestrictedEditingException'),_0x1344af['enableCommand']('goToNextRestrictedEditingException');const _0x40c997=_0x27dec1['plugins']['get']('RestrictedEditingModeEditing');_0x40c997['enableCommand']('trackChanges'),_0x40c997['enableCommand']('acceptSuggestion'),_0x40c997['enableCommand']('discardSuggestion'),_0x40c997['enableCommand']('acceptAllSuggestions'),_0x40c997['enableCommand']('discardAllSuggestions'),_0x40c997['enableCommand']('acceptSelectedSuggestions'),_0x40c997['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x449cd5{['afterInit'](){const _0x1ab944=this['editor'];if(!_0x1ab944['plugins']['has']('ShiftEnter'))return;const _0x270733=_0x1ab944['plugins']['get']('TrackChangesEditing');_0x270733['enableCommand']('shiftEnter'),_0x270733['descriptionFactory']['registerElementLabel']('softBreak',_0xa79dee=>St(_0x1ab944['locale'],'ELEMENT_LINE_BREAK',_0xa79dee));}};function we(_0x3dca06,_0x5d39fd,_0x4aa901){const _0x3a576a=[];for(const _0x50830d of _0x5d39fd['getItems']())_0x50830d['hasAttribute'](_0x3dca06)&&_0x3a576a['push'](_0x4aa901['createRangeOn'](_0x50830d));return _0x3a576a;}var Fe=class extends _0x449cd5{['afterInit'](){const _0x4b97e8=this['editor'],_0xfc5825=_0x4b97e8['plugins']['get']('TrackChangesEditing');_0x4b97e8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xfc5825['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xbb4e17=this['editor'],_0x2e4797=_0xbb4e17['model'],_0x25259a=_0xbb4e17['locale'],_0x5dd768=_0xbb4e17['plugins']['get']('TrackChangesEditing'),_0x45fb66='restrictedEditingException',_0x2e2683=_0xbb4e17['commands']['get'](_0x45fb66);_0x5dd768['enableCommand'](_0x45fb66,(_0x2adb79,_0x39c761={})=>{const _0x4ac2ab=_0x2e4797['document']['selection'];if(_0x4ac2ab['isCollapsed'])return void _0x2adb79(_0x39c761);const _0x1ce913=void 0x0!==_0x39c761['forceValue']?_0x39c761['forceValue']:!_0x2e2683['value'];_0x2e4797['change'](()=>{const _0x4ed08e=Array['from'](_0x4ac2ab['getRanges']());for(const _0x1ccce0 of _0x4ed08e){const _0x1752a0=_0x1ce913?[_0x1ccce0]:we(_0x45fb66,_0x1ccce0,_0x2e4797);for(const _0xf80430 of _0x1752a0)_0x5dd768['markInlineFormat'](_0xf80430,{'commandName':_0x45fb66,'commandParams':[{'forceValue':_0x1ce913}]});}});}),_0x5dd768['descriptionFactory']['registerDescriptionCallback'](_0x499461=>{if('formatBlock'!=_0x499461['type']&&'formatInline'!=_0x499461['type'])return;const {data:_0x3402ae}=_0x499461;return _0x3402ae&&_0x3402ae['commandName']==_0x45fb66?_0x3402ae['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x25259a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x25259a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x344252=this['editor'],_0x50225a=_0x344252['locale'],_0xff8904=_0x344252['plugins']['get']('TrackChangesEditing'),_0x269447='restrictedEditingExceptionBlock',_0x15bbbe=this['editor']['commands']['get'](_0x269447);_0xff8904['enableCommand'](_0x269447,(_0x1c9575,_0x522421={})=>{const _0x1a788e=this['editor']['model']['document']['selection'],_0x2d5889=_0x522421&&void 0x0!==_0x522421['forceValue']?_0x522421['forceValue']:!_0x15bbbe['value'];let _0x5b99c2=[];_0x5b99c2=At(_0x2d5889?Array['from'](_0x1a788e['getSelectedBlocks']())['filter'](_0x524463=>function(_0xd329c9){return!!_0xd329c9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x524463)||function(_0x1b1939,_0x2ab2ac){const _0x2219de=_0x2ab2ac['createContext'](_0x1b1939['parent']);return!!_0x2ab2ac['checkChild'](_0x2219de,'restrictedEditingException')&&!!_0x2ab2ac['checkChild'](_0x2219de['push']('restrictedEditingException'),_0x1b1939);}(_0x524463,this['editor']['model']['schema'])):Array['from'](_0x1a788e['getSelectedBlocks']())['map'](_0x3a703b=>function(_0x569e76){let _0xc95292=_0x569e76;for(;_0xc95292['parent'];){if('restrictedEditingException'==_0xc95292['parent']['name'])return _0xc95292;_0xc95292=_0xc95292['parent'];}return null;}(_0x3a703b))['filter'](_0x475029=>!!_0x475029),_0x344252['model']),_0x344252['model']['change'](()=>{for(const _0x1ac56e of _0x5b99c2)_0xff8904['markBlockFormat'](_0x1ac56e,{'commandName':_0x269447,'commandParams':[{'forceValue':_0x2d5889}]});});}),_0xff8904['descriptionFactory']['registerDescriptionCallback'](_0x5cab17=>{const {data:_0x5343f6}=_0x5cab17;if(_0x5343f6&&_0x5343f6['commandName']==_0x269447)return _0x5343f6['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x50225a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x50225a,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x449cd5{['afterInit'](){const _0xf7a502=this['editor'];_0xf7a502['plugins']['has']('Style')&&_0xf7a502['plugins']['has']('DataSchema')&&(_0xf7a502['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8528c2=this['editor'],_0x1178ea=_0x8528c2['locale'];_0x8528c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x935e81=>{if('formatBlock'!=_0x935e81['type']&&'formatInline'!=_0x935e81['type'])return;const {data:_0x5148dc}=_0x935e81;return _0x5148dc&&'style'===_0x5148dc['commandName']?_0x5148dc['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1178ea,'*Set\x20format:*\x20%0',_0x5148dc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x1178ea,'*Remove\x20format:*\x20%0',_0x5148dc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x449cd5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x26fee9){super(_0x26fee9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2776d9=this['editor'],_0x4d908b=_0x2776d9['model']['document']['selection'];if(!_0x2776d9['plugins']['has']('TableEditing'))return;const _0xbe5f21=_0x2776d9['locale'],_0x33a160=_0x2776d9['plugins']['get']('TrackChangesEditing'),_0x15d9df=_0x2776d9['plugins']['get']('TableUtils');_0x33a160['descriptionFactory']['registerElementLabel']('table',_0x449c2e=>St(_0xbe5f21,'ELEMENT_TABLE',_0x449c2e)),this['_setupColumnsRowsFixing'](),_0x33a160['enableCommand']('insertTable'),_0x33a160['enableCommand']('selectTableRow'),_0x33a160['enableCommand']('selectTableColumn');for(const _0x1d8113 of['insertTableRowAbove','insertTableRowBelow']){const _0x2a2e3d=_0x2776d9['commands']['get'](_0x1d8113);_0x33a160['enableCommand'](_0x1d8113,_0x2b14d3=>{_0x2776d9['model']['change'](_0x492987=>{_0x2b14d3();const _0x5e4c5d='above'===_0x2a2e3d['order'],_0x57543a=_0x15d9df['getSelectionAffectedTableCells'](_0x4d908b),_0x4e49d5=_0x15d9df['getRowIndexes'](_0x57543a),_0x593459=_0x5e4c5d?_0x4e49d5['first']-0x1:_0x4e49d5['last']+0x1,_0x4d210f=_0x57543a[0x0]['findAncestor']('table'),_0x413ffe=_0x15d9df['createTableWalker'](_0x4d210f,{'startRow':_0x593459,'endRow':_0x593459}),_0x5f5c3a=Array['from'](_0x413ffe)['map'](_0x8e8a72=>_0x492987['createRangeOn'](_0x8e8a72['cell']));_0x33a160['markMultiRangeInsertion'](_0x5f5c3a,'tableRow');});});}for(const _0x3688de of['insertTableColumnLeft','insertTableColumnRight']){const _0x317fb7=_0x2776d9['commands']['get'](_0x3688de);_0x33a160['enableCommand'](_0x3688de,_0x43da70=>{_0x2776d9['model']['change'](_0xe4b5d0=>{_0x43da70();const _0x41e83e='left'===_0x317fb7['order'],_0xb26213=_0x15d9df['getSelectionAffectedTableCells'](_0x4d908b),_0x4e9365=_0x15d9df['getColumnIndexes'](_0xb26213),_0x394c2f=_0x41e83e?_0x4e9365['first']-0x1:_0x4e9365['last']+0x1,_0x26afde=_0xb26213[0x0]['findAncestor']('table'),_0x2f1f19=_0x15d9df['createTableWalker'](_0x26afde,{'startRow':0x0,'column':_0x394c2f,'includeAllSlots':!0x1}),_0x33fe0c=Array['from'](_0x2f1f19)['map'](_0x3ba5a3=>_0xe4b5d0['createRangeOn'](_0x3ba5a3['cell']));_0x33a160['markMultiRangeInsertion'](_0x33fe0c,'tableColumn');});});}for(const _0x5ddc23 of['removeTableRow','removeTableColumn']){const _0x4230ea=_0x5ddc23['substr'](0xb),_0x1f3136=_0x4230ea['toLowerCase'](),_0x1caf00=_0x1f3136['substr'](0x0,0x3)+'span',_0x4ab759='table'+_0x4230ea,_0x503e36='min'+_0x4230ea,_0x184d87='max'+_0x4230ea;_0x33a160['enableCommand'](_0x5ddc23,()=>{_0x2776d9['model']['change'](_0xab5cbe=>{const _0x4caba2=_0x15d9df['getSelectionAffectedTableCells'](_0x4d908b),_0x4935f4=_0x4caba2[0x0]['findAncestor']('table');let _0x2198fc;if('removeTableRow'==_0x5ddc23){const _0x1435ed=_0x15d9df['getRowIndexes'](_0x4caba2);_0x2198fc={'startRow':_0x1435ed['first'],'endRow':_0x1435ed['last'],'includeAllSlots':!0x0};}else{const _0x49373f=_0x15d9df['getColumnIndexes'](_0x4caba2);_0x2198fc={'startColumn':_0x49373f['first'],'endColumn':_0x49373f['last'],'includeAllSlots':!0x0};}const _0x1f3f12=_0x15d9df['createTableWalker'](_0x4935f4,_0x2198fc),_0x3cb793=Array['from'](_0x1f3f12)['map'](({cell:_0xddd733})=>_0xddd733),_0x46231f=De(_0x3cb793['filter'](_0x45c477=>_0x45c477['hasAttribute'](_0x1caf00))),_0x40a626=De(_0x3cb793['filter'](_0x105bc3=>!_0x105bc3['hasAttribute'](_0x1caf00)))['map'](_0x2e4b57=>_0xab5cbe['createRangeOn'](_0x2e4b57)),_0x2c2e55=_0x33a160['markMultiRangeDeletion'](_0x40a626,_0x4ab759);if(_0x2c2e55&&('tableRow'==_0x2c2e55['subType']||'tableColumn'==_0x2c2e55['subType'])){const _0x91952b=this['_getSuggestionCoords'](_0x2c2e55);for(const _0x2eaa26 of _0x46231f){const _0x3f3816=_0xab5cbe['createRangeOn'](_0x2eaa26),_0x576666=_0x15d9df['getCellLocation'](_0x2eaa26),_0x735e04=_0x2eaa26['getAttribute'](_0x1caf00)-0x1,_0x40e26c=_0x91952b[_0x503e36],_0x80dcb9=_0x91952b[_0x184d87];_0x40e26c<=_0x576666[_0x1f3136]&&_0x576666[_0x1f3136]+_0x735e04<=_0x80dcb9&&_0x2c2e55['addRange'](_0x3f3816);}}});});}function _0x3687ae(_0x5d5622){const _0x35e0b5=Array['from'](_0x4d908b['getRanges']())['map'](_0x3aadb8=>rt['fromRange'](_0x3aadb8));_0x2776d9['model']['change'](_0x294df3=>{const _0x2ac81a=_0x294df3['batch'];_0x5d5622=_0x5d5622['filter'](_0x749182=>'$graveyard'!=_0x749182['root']['rootName']),_0x294df3['setSelection'](_0x5d5622),_0x2776d9['commands']['get']('removeTableRow')['refresh'](),_0x2776d9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2776d9['model']['enqueueChange'](()=>{_0x2776d9['model']['enqueueChange'](_0x2ac81a,_0x5eede1=>{const _0x593133=_0x35e0b5['filter'](_0x3c0dba=>'$graveyard'!=_0x3c0dba['root']['rootName']);_0x593133['length']>0x0&&_0x5eede1['setSelection'](_0x593133);for(const _0x1a417d of _0x35e0b5)_0x1a417d['detach']();});});});}function _0x39e1ba(_0xba93ae){_0x2776d9['model']['change'](_0x1a73e9=>{const _0x16f9dc=Array['from'](_0x4d908b['getRanges']())['map'](_0x429ce3=>rt['fromRange'](_0x429ce3)),_0x557c5d=[];for(const _0xefa6e0 of _0xba93ae)for(const _0x459de5 of _0xefa6e0['getItems']({'shallow':!0x0}))_0x557c5d['push'](_0x459de5);for(const _0x5341b8 of _0x557c5d)'$graveyard'!=_0x5341b8['root']['rootName']&&(_0x1a73e9['setSelection'](_0x1a73e9['createPositionAt'](_0x5341b8,0x0)),_0x2776d9['commands']['get']('removeTableColumn')['refresh'](),_0x2776d9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x86a4f6=_0x16f9dc['filter'](_0x1e671b=>'$graveyard'!=_0x1e671b['root']['rootName']);_0x86a4f6['length']>0x0&&_0x1a73e9['setSelection'](_0x86a4f6);for(const _0x41f44e of _0x16f9dc)_0x41f44e['detach']();});}function _0x2bcc3f(_0x5a7999,_0x423b29){return _0x423b29['every'](_0x32ec6d=>_0x5a7999['some'](_0xc3f200=>_0xc3f200['end']['isEqual'](_0x32ec6d['start'])||_0x32ec6d['end']['isEqual'](_0xc3f200['start'])));}function _0x1ea14c(_0x299a32,_0x2cb6a3){return!_0x299a32['some'](_0x46f83f=>_0x2cb6a3['some'](_0x1e4539=>_0x46f83f['isIntersecting'](_0x1e4539)))&&_0x299a32['some'](_0x55fce2=>_0x2cb6a3['some'](_0x1464de=>_0x55fce2['end']['isTouching'](_0x1464de['start'])));}_0x33a160['descriptionFactory']['registerDescriptionCallback'](_0x36587f=>{if('insertion'!=_0x36587f['type']&&'deletion'!=_0x36587f['type'])return;const _0x2863e2=_0x36587f['getContainedElement']();if(null!=_0x2863e2&&_0x2863e2['is']('element','table')){if('insertion'==_0x36587f['type']){const _0x4de58a=_0x36587f['getItems']()['filter'](_0x201758=>_0x201758['is']('$textProxy'))['map'](_0x2e2e91=>_0x2e2e91['data']);if(_0x4de58a['length'])return{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4de58a['join']('\x20')+'\x22'))};}if('deletion'==_0x36587f['type']){const _0x25b17f=_0x36587f['getItems']()['filter'](_0x4b3652=>_0x4b3652['is']('$textProxy'))['map'](_0x5c2518=>_0x5c2518['data']);if(_0x25b17f['length'])return{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x25b17f['join']('\x20')+'\x22'))};}}}),_0x33a160['descriptionFactory']['registerDescriptionCallback'](_0x3f0ff6=>{if('tableRow'==_0x3f0ff6['subType']){const _0x4bb28a=_0x3f0ff6['getItems']()['filter'](_0x132e84=>_0x132e84['is']('$textProxy'))['map'](_0x347c40=>_0x347c40['data']),_0x442de7=this['_getSuggestionCoords'](_0x3f0ff6),_0x2e81af=_0x442de7['maxRow']-_0x442de7['minRow']+0x1;if('insertion'==_0x3f0ff6['type'])return _0x4bb28a['length']?{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e81af,'\x22'+_0x4bb28a['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW',_0x2e81af))};if('deletion'==_0x3f0ff6['type'])return _0x4bb28a['length']?{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e81af,'\x22'+_0x4bb28a['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW',_0x2e81af))};}if('tableColumn'==_0x3f0ff6['subType']){const _0x14099d=_0x3f0ff6['getItems']()['filter'](_0x443cec=>_0x443cec['is']('$textProxy'))['map'](_0x5a7cdf=>_0x5a7cdf['data']),_0x184704=this['_getSuggestionCoords'](_0x3f0ff6),_0x5939c3=_0x184704['maxColumn']-_0x184704['minColumn']+0x1;if('insertion'==_0x3f0ff6['type'])return _0x14099d['length']?{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5939c3,'\x22'+_0x14099d['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN',_0x5939c3))};if('deletion'==_0x3f0ff6['type'])return _0x14099d['length']?{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5939c3,'\x22'+_0x14099d['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN',_0x5939c3))};}}),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3687ae),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3687ae),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x39e1ba),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x39e1ba),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2bcc3f),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2bcc3f),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1ea14c),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1ea14c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3db72b=this['editor'],_0x4f1efe=_0x3db72b['model']['document']['selection'];return(_0x4a9020,_0x5c0df1)=>{_0x3db72b['model']['change'](_0x27d7ce=>{const {commandName:_0x56d40f,commandParams:_0x3c0ee9}=_0x5c0df1;let _0x246283=_0x4a9020[0x0]['end']['nodeBefore'];_0x3c0ee9&&_0x3c0ee9[0x0]&&!0x1===_0x3c0ee9[0x0]['forceValue']&&(_0x246283=_0x4a9020[0x0]['start']['nodeAfter']);const _0x381143=_0x27d7ce['createRangeIn'](_0x246283);if('$graveyard'==_0x381143['root']['rootName'])return;const _0x70147e=Array['from'](_0x4f1efe['getRanges']())['map'](_0x22b216=>rt['fromRange'](_0x22b216));_0x27d7ce['setSelection'](_0x381143),_0x3db72b['commands']['get'](_0x56d40f)['refresh'](),_0x3c0ee9['push']({'forceDefaultExecution':!0x0}),_0x3db72b['execute'](_0x56d40f,..._0x3c0ee9);const _0x3bca1b=_0x70147e['filter'](_0x2be49a=>'$graveyard'!=_0x2be49a['root']['rootName']);_0x3bca1b['length']>0x0&&_0x27d7ce['setSelection'](_0x3bca1b);for(const _0x45e68c of _0x70147e)_0x45e68c['detach']();});};}['_getCoordsForCells'](_0x2b8a64){const _0x324c55=this['editor']['plugins']['get']('TableUtils');let _0x4e2f1d=Number['MAX_SAFE_INTEGER'],_0x1304b9=Number['MIN_SAFE_INTEGER'],_0x29a834=Number['MAX_SAFE_INTEGER'],_0x5d9ccb=Number['MIN_SAFE_INTEGER'];for(const _0x1da83c of _0x2b8a64){if('$graveyard'==_0x1da83c['root']['rootName'])continue;const {row:_0x1759a4,column:_0x31dfaf}=_0x324c55['getCellLocation'](_0x1da83c),_0x39d134=_0x1da83c['hasAttribute']('rowspan')?_0x1da83c['getAttribute']('rowspan')-0x1:0x0,_0x90921=_0x1da83c['hasAttribute']('colspan')?_0x1da83c['getAttribute']('colspan')-0x1:0x0;_0x4e2f1d=_0x1759a4<_0x4e2f1d?_0x1759a4:_0x4e2f1d,_0x1304b9=_0x1759a4+_0x39d134>_0x1304b9?_0x1759a4+_0x39d134:_0x1304b9,_0x29a834=_0x31dfaf<_0x29a834?_0x31dfaf:_0x29a834,_0x5d9ccb=_0x31dfaf+_0x90921>_0x5d9ccb?_0x31dfaf+_0x90921:_0x5d9ccb;}return{'minRow':_0x4e2f1d,'maxRow':_0x1304b9,'minColumn':_0x29a834,'maxColumn':_0x5d9ccb};}['_setupColumnsRowsFixing'](){const _0xfcca36=this['editor'],_0x22fa9e=_0xfcca36['plugins']['get']('TrackChangesEditing'),_0xe891e1=_0xfcca36['plugins']['get']('TableUtils');_0xfcca36['model']['document']['on']('change:data',()=>{const _0x45695c=Array['from'](_0xfcca36['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2225f9,data:_0x4f5a80}of _0x45695c){const {group:_0x2ea0cd,id:_0x5e4a2d,subType:_0x46f8e6}=tt(_0x2225f9);if('suggestion'!=_0x2ea0cd)continue;if(null!=_0x4f5a80['oldRange'])continue;const _0x39e2f9=_0x22fa9e['getSuggestion'](_0x5e4a2d);this['_tablePostFixingSubtypes']['includes'](_0x46f8e6)&&this['_tableSuggestions']['add'](_0x39e2f9);}},{'priority':'low'});const _0x30408f=(_0x4d24ff,_0x1538af)=>{let _0x2215fd=!0x1;const _0x1c1697=_0x1538af['createRangeOn'](_0x4d24ff),_0x4dcb14=_0x4d24ff['findAncestor']('table'),_0x5970c2=_0xe891e1['getCellLocation'](_0x4d24ff);for(const _0x2612b7 of this['_tableSuggestions']){const _0x3454c5=_0x2612b7['subType'],_0x404940=_0x3454c5['startsWith']('tablePaste'),_0x249ad5=_0x3454c5['substr'](_0x404940?0xa:0x5),_0x3addcb=_0x249ad5['toLowerCase'](),_0x3030f1=_0x3addcb['substr'](0x0,0x3)+'span',_0x151a21='min'+_0x249ad5,_0x4ffcdd='max'+_0x249ad5;if(!_0x2612b7['isInContent'])continue;if(_0x4dcb14!=_0x2612b7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2612b7['isIntersectingWithRange'](_0x1c1697))continue;const _0x3a2d29=_0x4d24ff['hasAttribute'](_0x3030f1)?_0x4d24ff['getAttribute'](_0x3030f1)-0x1:0x0,_0x2aa11e=this['_getSuggestionCoords'](_0x2612b7),_0x3c1577=_0x2aa11e[_0x151a21],_0x4deca9=_0x2aa11e[_0x4ffcdd];_0x3c1577<=_0x5970c2[_0x3addcb]&&_0x5970c2[_0x3addcb]+_0x3a2d29<=_0x4deca9&&(_0x2612b7['addRange'](_0x1c1697),_0x2215fd=!0x0);}return _0x2215fd;};_0xfcca36['model']['document']['registerPostFixer'](_0x3c67ab=>{let _0x3d29a5=!0x1;for(const _0x11d1d6 of _0xfcca36['model']['document']['differ']['getChanges']())if('insert'==_0x11d1d6['type']){if('tableRow'==_0x11d1d6['name']){for(const _0x239804 of _0x11d1d6['position']['nodeAfter']['getChildren']())_0x3d29a5=_0x3d29a5||_0x30408f(_0x239804,_0x3c67ab);}else'tableCell'==_0x11d1d6['name']&&(_0x3d29a5=_0x3d29a5||_0x30408f(_0x11d1d6['position']['nodeAfter'],_0x3c67ab));}return _0x3d29a5;});}['_getSuggestionCoords'](_0x49871a){return this['_getCoordsForCells'](_0x49871a['getRanges']()['map'](_0x4ae266=>_0x4ae266['start']['nodeAfter']));}};function De(_0x39c369){return Array['from'](new Set(_0x39c369)['values']());}var Ue=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x3c1b39=this['editor'],_0x269c40=_0x3c1b39['model']['document']['selection'],_0xca9122=_0x3c1b39['locale'];if(!_0x3c1b39['plugins']['has']('TableEditing'))return;const _0x4b1b6f=_0x3c1b39['plugins']['get']('TrackChangesEditing'),_0xed73ae=_0x3c1b39['plugins']['get']('TableUtils'),_0x2e882c=_0x3c1b39['plugins']['get'](ve);_0x2e882c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b1b6f['enableCommand']('mergeTableCells',()=>{const _0x3d65f7=_0xed73ae['getSelectionAffectedTableCells'](_0x3c1b39['model']['document']['selection']);_0x3c1b39['model']['change'](()=>{_0x4b1b6f['markMultiRangeBlockFormat'](_0x3d65f7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3c1b39['commands']['get']('mergeTableCells')['on']('execute',(_0x382cf4,_0x2257cf)=>{_0x3c1b39['commands']['get']('trackChanges')['value']&&(_0x2257cf['length']>0x0&&_0x2257cf[_0x2257cf['length']-0x1]&&_0x2257cf[_0x2257cf['length']-0x1]['forceDefaultExecution']||_0x4b1b6f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x382cf4['stop']());},{'priority':'highest'});for(const _0x66f0e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5e03f7=_0x3c1b39['commands']['get'](_0x66f0e3);_0x4b1b6f['enableCommand'](_0x66f0e3,()=>{const _0x5b1db0=_0x3c1b39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x360dcb=>_0x360dcb['is']('element','tableCell')),_0x167570=_0x5e03f7['value'];_0x3c1b39['model']['change'](()=>{_0x4b1b6f['markMultiRangeBlockFormat']([_0x5b1db0,_0x167570],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37350d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3d198c=_0x3c1b39['commands']['get'](_0x37350d);_0x4b1b6f['enableCommand'](_0x37350d,()=>{const _0x56d20a=_0xed73ae['getSelectionAffectedTableCells'](_0x3c1b39['model']['document']['selection'])[0x0],_0x1903d7=_0x56d20a['findAncestor']('table'),{column:_0x2be461,row:_0x193913}=_0xed73ae['getCellLocation'](_0x56d20a);let _0x25915b=[];if('horizontally'==_0x3d198c['direction']){const _0x1eb798=_0xed73ae['createTableWalker'](_0x1903d7,{'startRow':_0x193913,'endRow':_0x193913,'includeAllSlots':!0x0});_0x25915b=Array['from'](_0x1eb798)['map'](_0x14a23e=>_0x14a23e['cell']);}else{const _0x522bee=_0xed73ae['createTableWalker'](_0x1903d7,{'column':_0x2be461,'includeAllSlots':!0x0});_0x25915b=Array['from'](_0x522bee)['map'](_0x387ad5=>_0x387ad5['cell']);}_0x3c1b39['model']['change'](_0x10c814=>{_0x4b1b6f['markBlockFormat'](_0x10c814['createRangeOn'](_0x56d20a),{'commandName':_0x37350d,'commandParams':[]},_0x25915b,_0x37350d);});});}_0x4b1b6f['descriptionFactory']['registerDescriptionCallback'](_0x1a0f86=>{if('formatBlock'!=_0x1a0f86['type']&&'formatInline'!=_0x1a0f86['type'])return;const {data:_0x37c10b}=_0x1a0f86;return _0x37c10b&&'mergeTableCells'==_0x37c10b['commandName']?{'type':'format','content':St(_0xca9122,'*Merge\x20cells*')}:void 0x0;}),_0x4b1b6f['descriptionFactory']['registerDescriptionCallback'](_0x572f31=>{if('formatBlock'!=_0x572f31['type']&&'formatInline'!=_0x572f31['type'])return;const {data:_0x10f597}=_0x572f31;return _0x10f597?'splitTableCellVertically'==_0x10f597['commandName']?{'type':'format','content':St(_0xca9122,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x10f597['commandName']?{'type':'format','content':St(_0xca9122,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x44a3a0=_0x2e882c['_acceptFormatSuggestionCallbackFactory']();for(const _0x8938d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b1b6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8938d9,'accept',_0x44a3a0);for(const _0x4962b7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b1b6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4962b7,'accept',_0x44a3a0);_0x4b1b6f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x520911=>{_0x3c1b39['model']['change'](_0x1f083f=>{const _0x7f5fc0=Array['from'](_0x269c40['getRanges']())['map'](_0x5e3def=>rt['fromRange'](_0x5e3def));_0x1f083f['setSelection'](_0x520911),_0x3c1b39['commands']['get']('mergeTableCells')['refresh'](),_0x3c1b39['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x26b95d=_0x7f5fc0['filter'](_0x4cf29d=>'$graveyard'!=_0x4cf29d['root']['rootName']);_0x26b95d['length']>0x0&&_0x1f083f['setSelection'](_0x26b95d);for(const _0x2e29e6 of _0x7f5fc0)_0x2e29e6['detach']();});});for(const _0x273fc7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x12d40f=_0x3c1b39['commands']['get'](_0x273fc7);_0x12d40f['on']('set:isEnabled',(_0x37fe52,_0x218539,_0x2082b5)=>{if(_0x2082b5){const _0x19e772=_0x3c1b39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5059c4=>_0x5059c4['is']('element','tableCell'));this['_areMergableCells'](_0x12d40f['value'],_0x19e772)||(_0x37fe52['return']=!0x1,_0x37fe52['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2760d7=this['editor']['commands']['get']('mergeTableCells'),_0x20038c=this['editor']['plugins']['get']('TableUtils');if(!_0x2760d7['isEnabled'])return!0x1;const _0x3827c2=_0x20038c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5e1204 of _0x3827c2)for(const _0x570871 of _0x3827c2)if(_0x5e1204!=_0x570871&&!this['_areMergableCells'](_0x5e1204,_0x570871))return!0x1;return!0x0;}['_areMergableCells'](_0x3c7cdc,_0x22a31a){const _0x116862=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3deaa2=this['editor']['model']['createRangeOn'](_0x3c7cdc),_0x3a8757=this['editor']['model']['createRangeOn'](_0x22a31a),_0x368e99=new Set(),_0x2ef4c4=new Set();for(const _0x11db37 of _0x116862['getSuggestions']())if(('insertion'==_0x11db37['type']||'deletion'==_0x11db37['type']||'mergeTableCells'==_0x11db37['subType'])&&_0x11db37['isInContent']){for(const _0x54c78f of _0x11db37['getRanges']())_0x54c78f['containsRange'](_0x3deaa2,!0x0)&&_0x368e99['add'](_0x11db37['type']+':'+_0x11db37['author']['id']),_0x54c78f['containsRange'](_0x3a8757,!0x0)&&_0x2ef4c4['add'](_0x11db37['type']+':'+_0x11db37['author']['id']);}if(_0x368e99['size']!=_0x2ef4c4['size'])return!0x1;for(const _0x238f25 of _0x368e99)if(!_0x2ef4c4['has'](_0x238f25))return!0x1;return!0x0;}},Pe=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x354fd3=this['editor'];if(!_0x354fd3['plugins']['has']('TableEditing'))return;const _0x2ac1d4=_0x354fd3['locale'],_0x4e702e=_0x354fd3['plugins']['get']('TrackChangesEditing');_0x4e702e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e702e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e702e['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x2ac1d4,'FORMAT_HEADER_ROW')),_0x4e702e['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x2ac1d4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e63e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18a40b=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x5e63e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18a40b),_0x5e63e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18a40b),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x49dccb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eb6b4=this['editor']['plugins']['get']('TableUtils');function _0xa40b5c({showActiveMarker:_0x5756a1=!0x0,setDataAttribute:_0x392bc2=!0x0}={}){return(_0x1c8c20,_0x35db7c,_0xac8110)=>{const {type:_0x254f32,id:_0x398b85}=tt(_0x35db7c['markerName']);if(!_0x49dccb['hasSuggestion'](_0x398b85))return;const _0x44fb00=_0x49dccb['getSuggestion'](_0x398b85),_0x4ab6bd=_0x44fb00['data'];if('formatBlock'!=_0x44fb00['type']||!_0x4ab6bd||'setTableColumnHeader'!=_0x4ab6bd['commandName'])return;if(_0x35db7c['item'])return void _0x1c8c20['stop']();if(!_0xac8110['consumable']['consume'](_0x35db7c['markerRange'],_0x1c8c20['name']))return;const _0x13338e=_0x35db7c['markerRange']['start']['nodeAfter'],_0x25bf47=_0x35db7c['markerRange']['end']['nodeBefore'],_0x23d2a9=_0x13338e['parent']['parent'],{column:_0x3d8d92}=_0x3eb6b4['getCellLocation'](_0x13338e),{column:_0x1bad9f}=_0x3eb6b4['getCellLocation'](_0x25bf47);for(let _0x5e0c86=_0x3d8d92;_0x5e0c86<=_0x1bad9f;_0x5e0c86++){const _0x12b23d=_0x3eb6b4['createTableWalker'](_0x23d2a9,{'column':_0x5e0c86,'includeAllSlots':!0x1});for(const _0x17bc7b of _0x12b23d){const _0x5a1856=_0x17bc7b['cell'],_0x15dec9=_0xac8110['mapper']['toViewElement'](_0x5a1856);_0xac8110['writer']['addClass']('ck-suggestion-marker-'+_0x254f32,_0x15dec9),_0x392bc2&&_0xac8110['writer']['setAttribute']('data-suggestion',_0x398b85,_0x15dec9),_0xac8110['mapper']['bindElementToMarker'](_0x15dec9,_0x35db7c['markerName']),_0x5756a1&&(_0x49dccb['activeMarkers']['includes'](_0x35db7c['markerName'])?_0xac8110['writer']['addClass']('ck-suggestion-marker--active',_0x15dec9):_0xac8110['writer']['removeClass']('ck-suggestion-marker--active',_0x15dec9));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xa40b5c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1182fe,_0x916e27,_0x212741)=>{_0x212741['options']['showSuggestionHighlights']&&_0xa40b5c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1182fe,_0x916e27,_0x212741);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x41f07f,_0x437971,_0x2f9ad7)=>{const {type:_0x1a0fa5,id:_0x7c387d}=tt(_0x437971['markerName']);if(!_0x49dccb['hasSuggestion'](_0x7c387d))return;const _0x470bc3=_0x49dccb['getSuggestion'](_0x7c387d),_0x5772b9=_0x470bc3['data'];if('formatBlock'!=_0x470bc3['type']||!_0x5772b9||'setTableColumnHeader'!=_0x5772b9['commandName'])return;const _0x9069cc=_0x2f9ad7['mapper']['markerNameToElements'](_0x437971['markerName']);if(_0x9069cc){for(const _0x3fd821 of _0x9069cc)_0x2f9ad7['writer']['removeClass']('ck-suggestion-marker-'+_0x1a0fa5,_0x3fd821),_0x2f9ad7['writer']['removeClass']('ck-suggestion-marker--active',_0x3fd821),_0x2f9ad7['writer']['removeAttribute']('data-suggestion',_0x3fd821),_0x2f9ad7['mapper']['unbindElementFromMarkerName'](_0x3fd821,_0x437971['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5b29cd=this['editor'],_0x2ff85a=_0x5b29cd['locale'];function _0x2ec9ed(_0x5a05e1){return{'type':'format','content':St(_0x2ff85a,'*Format:*\x20%0',_0x5a05e1)};}_0x5b29cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb705=>{if('formatBlock'!=_0x2cb705['type'])return;const {data:_0x21a59b}=_0x2cb705;return _0x21a59b?'setTableRowHeader'==_0x21a59b['commandName']?_0x21a59b['commandParams'][0x0]['forceValue']?_0x2ec9ed(St(_0x2ff85a,'FORMAT_HEADER_ROW')):_0x2ec9ed(St(_0x2ff85a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x21a59b['commandName']?_0x21a59b['commandParams'][0x0]['forceValue']?_0x2ec9ed(St(_0x2ff85a,'FORMAT_HEADER_COLUMN')):_0x2ec9ed(St(_0x2ff85a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x337cea=this['editor'];if(!_0x337cea['plugins']['has']('TableEditing')||!_0x337cea['config']['get']('table.enableFooters'))return;const _0x529212=_0x337cea['locale'],_0x252fe1=_0x337cea['plugins']['get']('TrackChangesEditing');_0x252fe1['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x252fe1['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x529212,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x449cd5{['afterInit'](){const _0x1e984b=this['editor'],_0x88be40=_0x1e984b['locale'],_0x17b0fb=_0x1e984b['plugins']['get']('TrackChangesEditing');function _0x386f48(_0x4453f8){return{'type':'format','content':''+St(_0x88be40,'*Set\x20table\x20type:*\x20%0',_0x4453f8)};}_0x1e984b['plugins']['has']('TableLayout')&&(_0x17b0fb['enableCommand']('insertTableLayout'),_0x17b0fb['enableDefaultAttributesIntegration']('tableType'),_0x17b0fb['descriptionFactory']['registerElementLabel'](_0x2cafc7=>_0x2cafc7['is']('element','table')&&'layout'===_0x2cafc7['getAttribute']('tableType'),_0x398efc=>St(_0x88be40,'ELEMENT_LAYOUT_TABLE',_0x398efc)),_0x17b0fb['descriptionFactory']['registerDescriptionCallback'](_0x439e52=>{const {data:_0x2c7686}=_0x439e52;if(_0x2c7686&&'tableType'==_0x2c7686['key'])switch(_0x2c7686['newValue']){case'layout':return _0x386f48(St(_0x88be40,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x386f48(St(_0x88be40,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](He['map'](_0x5c5253=>[_0x5c5253,null]));var Ve=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x33f0a6=this['editor'];if(!_0x33f0a6['plugins']['has']('TableClipboard'))return;const _0x3f3283=_0x33f0a6['plugins']['get']('TrackChangesEditing'),_0x404880=_0x33f0a6['plugins']['get']('TableUtils'),_0xfe5543=_0x33f0a6['plugins']['get'](ve),_0x3f2747=_0x33f0a6['plugins']['get']('TableClipboard'),_0x48db37=_0x33f0a6['plugins']['get']('TableSelection'),_0x594d06=_0x33f0a6['plugins']['get'](mt);_0xfe5543['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x33f0a6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x33f0a6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31a990=null,_0x7acf8=!0x1;_0x594d06['on']('contentInsertion',(_0x1c504a,_0x31300e)=>{_0x7acf8='paste'===_0x31300e['method'];}),_0x33f0a6['model']['on']('insertContent',(_0x22602d,_0x251612)=>{if(!_0x7acf8&&null===_0x48db37['getSelectedTableCells']())return;const [_0x458076,_0x4934ad]=_0x251612,_0x4dfdfa=_0x251612[_0x251612['length']-0x1];_0x4dfdfa&&_0x4dfdfa['forceDefaultExecution']||_0x3f3283['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x29a073,_0x1e3757,_0x20cde7,_0x935914,_0x2c4987){if(_0x1e3757&&!_0x1e3757['is']('documentSelection'))return!0x1;const _0x3c074f=_0x2c4987['getTableIfOnlyTableInContent'](_0x29a073,_0x20cde7);if(!_0x3c074f||!je(_0x3c074f,void 0x0,_0x935914))return!0x1;const _0x3652f5=_0x935914['getSelectionAffectedTableCells'](_0x20cde7['document']['selection']);if(!_0x3652f5['length'])return!0x1;const _0x215b77=_0x3652f5[0x0]['findAncestor']('table'),_0xcb906=_0x935914['getRowIndexes'](_0x3652f5),_0x4806d8=_0x935914['getColumnIndexes'](_0x3652f5),_0x5d8182={'startRow':_0xcb906['first'],'endRow':_0xcb906['last'],'startColumn':_0x4806d8['first'],'endColumn':_0x4806d8['last']};return 0x1==_0x3652f5['length']&&(_0x5d8182['endRow']+=_0x935914['getRows'](_0x3c074f)-0x1,_0x5d8182['endColumn']+=_0x935914['getColumns'](_0x3c074f)-0x1),je(_0x215b77,_0x5d8182,_0x935914);}(_0x458076,_0x4934ad,_0x33f0a6['model'],_0x404880,_0x3f2747)&&(_0x22602d['stop'](),_0x31a990={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x33f0a6['model']['change'](()=>{_0x33f0a6['model']['insertContent'](_0x251612[0x0],_0x251612[0x1],_0x251612[0x2],{'forceDefaultExecution':!0x0});const _0x490945=_0x1c0f04(),{rowInsertionRanges:_0x3e239a,columnInsertionRanges:_0x4a9d08,insertionRanges:_0x37204a,deletionRanges:_0x527ee8,cells:_0xb9d2ef}=_0x31a990;_0x3e239a['length']&&_0x3f3283['markMultiRangeInsertion'](_0x3e239a,'tablePasteRow',{'tablePasteChainId':_0x490945}),_0x4a9d08['length']&&_0x3f3283['markMultiRangeInsertion'](_0x4a9d08,'tablePasteColumn',{'tablePasteChainId':_0x490945}),_0x37204a['length']&&(_0x3f3283['markMultiRangeInsertion'](_0x37204a,'tablePaste',{'tablePasteChainId':_0x490945,'skipNestingCheck':!0x0}),_0x37204a['forEach'](_0x325981=>_0x325981['detach']?.())),_0x527ee8['length']&&(_0x3f3283['markMultiRangeDeletion'](_0x527ee8,'tablePaste',{'tablePasteChainId':_0x490945,'skipNestingCheck':!0x0}),_0x527ee8['forEach'](_0x3e69dd=>_0x3e69dd['detach']?.()));const _0x14186c=_0x3f3283['markMultiRangeBlockFormat'](_0xb9d2ef['map'](({element:_0x346bc1})=>_0x346bc1),{'formatGroupId':_0x1c0f04()},[],'tablePasteCell',{'tablePasteChainId':_0x490945});if(_0x14186c){const _0xe7c9c4=_0x14186c['getMarkers'](),_0x290aed=[];for(const {element:_0x32c614,attributes:_0x5953ea}of _0xb9d2ef){if(!_0x5953ea)continue;const _0x293d7=_0x33f0a6['model']['createRangeOn'](_0x32c614),_0x4d51fb=_0xe7c9c4['find'](_0x51aee2=>_0x51aee2['getRange']()['isEqual'](_0x293d7));_0x4d51fb&&_0x290aed['push']([_0x4d51fb['name'],_0x5953ea]);}_0x290aed['length']&&_0x14186c['setAttribute']('markerAttributes',Object['fromEntries'](_0x290aed));}_0x31a990=null;}));},{'priority':_0x449a53['high']+0xa}),_0x594d06['on']('contentInsertion',()=>{_0x7acf8=!0x1;},{'priority':'lowest'}),_0x33f0a6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x280843,_0x332a58)=>{const [_0x43df1c,_0x2f1415,,_0x3b18e6]=_0x332a58;if(!_0x31a990)return;_0x280843['stop']();const _0x53ffbc=_0x43df1c['cell'],_0x4dc716=_0x2f1415,_0xe27d2d=We(_0x53ffbc),_0x4172f6=We(_0x4dc716);_0x280843['return']=_0x53ffbc;let _0x540aa1=null,_0x5a27d6=null;if(_0x4172f6||_0xe27d2d){if(_0xe27d2d&&!_0x4172f6){_0x3b18e6['remove'](_0x53ffbc['getChild'](0x0));for(const _0xbd7b48 of Array['from'](_0x4dc716['getChildren']()))_0x3b18e6['insert'](_0xbd7b48,_0x53ffbc,'end');const _0x5364ad=_0x31a990['rowInsertionIndexes']['includes'](_0x43df1c['row']),_0x4169b4=_0x31a990['columnInsertionIndexes']['includes'](_0x43df1c['column']);_0x5364ad||_0x4169b4||(_0x540aa1=rt['fromRange'](_0x3b18e6['createRangeIn'](_0x53ffbc)));}else _0x4172f6&&!_0xe27d2d&&(_0x5a27d6=_0x3b18e6['createRangeIn'](_0x53ffbc));}else{const _0x707c13=_0x3b18e6['createElement']('tableCellSuggestion'),_0x3f652b=_0x3b18e6['createElement']('tableCellSuggestion');_0x3b18e6['wrap'](_0x3b18e6['createRangeIn'](_0x53ffbc),_0x3f652b),_0x3b18e6['insert'](_0x707c13,_0x53ffbc,0x0);for(const _0x22b0d0 of Array['from'](_0x4dc716['getChildren']()))_0x3b18e6['insert'](_0x22b0d0,_0x707c13,'end');_0x540aa1=rt['fromRange'](_0x3b18e6['createRangeOn'](_0x707c13)),_0x5a27d6=rt['fromRange'](_0x3b18e6['createRangeOn'](_0x3f652b));}const _0x56b9cd=Array['from'](_0x4dc716['getAttributes']())['filter'](([_0x4e2255])=>He['includes'](_0x4e2255));_0x31a990['cells']['push']({'element':_0x53ffbc,'attributes':_0x56b9cd['length']?Object['fromEntries'](_0x56b9cd):null}),_0x540aa1&&_0x31a990['insertionRanges']['push'](_0x540aa1),_0x5a27d6&&_0x31a990['deletionRanges']['push'](_0x5a27d6);},{'priority':'high'}),_0x404880['on']('insertColumns',(_0x1ebc83,_0x53a2aa)=>{const [_0x4eed41,_0xdadd1d={}]=_0x53a2aa;if(!_0x31a990)return;const _0x3c31d5=_0xdadd1d['at']||0x0,_0x4e3ba4=_0xdadd1d['columns']||0x1;_0x31a990['columnInsertionIndexes']=new Array(_0x4e3ba4)['fill'](_0x3c31d5)['map']((_0x3f7f25,_0x88956c)=>_0x3f7f25+_0x88956c);for(const {cell:_0xbe837a}of _0x404880['createTableWalker'](_0x4eed41,{'startColumn':_0x3c31d5,'endColumn':_0x3c31d5+_0x4e3ba4-0x1}))_0x31a990['columnInsertionRanges']['push'](_0x33f0a6['model']['createRangeOn'](_0xbe837a));},{'priority':'low'}),_0x404880['on']('insertRows',(_0x5a2e4b,_0x2500a3)=>{const [_0x3241fd,_0x388a1c={}]=_0x2500a3;if(!_0x31a990)return;const _0x3f0062=_0x388a1c['at']||0x0,_0x416e59=_0x388a1c['rows']||0x1;_0x31a990['rowInsertionIndexes']=new Array(_0x416e59)['fill'](_0x3f0062)['map']((_0x380977,_0x4107c5)=>_0x380977+_0x4107c5);for(const {cell:_0x557d71}of _0x404880['createTableWalker'](_0x3241fd,{'startRow':_0x3f0062,'endRow':_0x3f0062+_0x416e59-0x1}))_0x31a990['rowInsertionRanges']['push'](_0x33f0a6['model']['createRangeOn'](_0x557d71));},{'priority':'low'}),_0x3f3283['descriptionFactory']['registerDescriptionCallback'](_0x423d67=>{if(_0x423d67['subType']&&_0x423d67['subType']['startsWith']('tablePaste'))return _0x423d67['previous']?{}:{'type':'insertion','content':St(_0x33f0a6['locale'],'*Replace\x20table\x20cells*')};});const _0x5aa0ce=()=>!0x1;for(const _0x4309e4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f3283['_suggestionFactory']['registerCustomCallback']('insertion',_0x4309e4,'join',_0x5aa0ce),_0x3f3283['_suggestionFactory']['registerCustomCallback']('deletion',_0x4309e4,'join',_0x5aa0ce),_0x3f3283['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4309e4,'join',_0x5aa0ce);_0x3f3283['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5aa0ce),_0x3f3283['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4609f0,_0x10a0eb,_0x2086c7)=>{const _0x501cf7=_0x4609f0['map'](_0x3c92db=>_0x3c92db['getContainedElement']())['filter'](_0x1bdd80=>_0x1bdd80),_0x5b56a9=new Map(_0x501cf7['map'](_0x31ad82=>[_0x31ad82,null]));if(_0x31a990){for(const {element:_0x31fc9f,attributes:_0x1eb1c4}of _0x31a990['cells'])_0x1eb1c4&&_0x5b56a9['set'](_0x31fc9f,_0x1eb1c4);}else{if(_0x2086c7&&_0x2086c7['markerAttributes'])for(const [_0x278e94,_0x16aff2]of Object['entries'](_0x2086c7['markerAttributes'])){const _0x39dab6=_0x33f0a6['model']['markers']['get'](_0x278e94),_0x598ad9=_0x39dab6?_0x39dab6['getRange']()['getContainedElement']():null;_0x598ad9&&_0x5b56a9['set'](_0x598ad9,_0x16aff2);}}_0x33f0a6['model']['change'](_0x376b09=>{for(const [_0xc1ee06,_0x34b237]of _0x5b56a9)_0x376b09['setAttributes']({...$e,..._0x34b237},_0xc1ee06);});});const _0x413572=(_0x76a9b9,_0x468f82)=>{_0x3f3283['_suggestionFactory']['registerCustomCallback'](_0x76a9b9,'tablePaste',_0x468f82,(_0x17dbac,_0x279ca6,_0x3a3ebf)=>{_0x33f0a6['model']['change'](_0x47ad0c=>{const _0x5754c9=[];for(const _0x35545a of _0x17dbac){const _0x4bec7b=_0x35545a['start']['nodeAfter'];_0x4bec7b['is']('element','tableCellSuggestion')&&_0x5754c9['push'](_0x4bec7b);}_0x3f3283['_suggestionFactory']['getSuggestionCallback'](_0x76a9b9,null,_0x468f82)(_0x17dbac,_0x279ca6,_0x3a3ebf);for(const _0x115c29 of _0x5754c9)'$graveyard'!=_0x115c29['root']['rootName']&&_0x47ad0c['unwrap'](_0x115c29);});});};_0x413572('insertion','accept'),_0x413572('insertion','discard'),_0x413572('deletion','accept'),_0x413572('deletion','discard'),_0x3f3283['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x118280=>{const _0x5e77c2=_0x118280['map'](_0x17e874=>_0x17e874['getContainedElement']()),_0x224d2b=_0x5e77c2[0x0]['findAncestor']('table'),{minRow:_0x19a959,maxRow:_0x1f957c}=_0xfe5543['_getCoordsForCells'](_0x5e77c2);_0x404880['removeRows'](_0x224d2b,{'at':_0x19a959,'rows':_0x1f957c-_0x19a959+0x1});}),_0x3f3283['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x10daf5=>{const _0xe69cf2=_0x10daf5['map'](_0x43cc8e=>_0x43cc8e['getContainedElement']()),_0x51204e=_0xe69cf2[0x0]['findAncestor']('table'),{minColumn:_0x168ba4,maxColumn:_0x3433fc}=_0xfe5543['_getCoordsForCells'](_0xe69cf2);_0x404880['removeColumns'](_0x51204e,{'at':_0x168ba4,'columns':_0x3433fc-_0x168ba4+0x1});});const _0x11f7b8=(_0x529c6f,_0x272573)=>{if(!_0x272573['subType']||!_0x272573['subType']['startsWith']('tablePaste'))return;const _0x24c0d7=_0x272573['attributes']['tablePasteChainId'],_0x7bf492=_0x3f3283['getSuggestions']()['filter'](_0xf1cf8c=>_0xf1cf8c['isInContent']&&_0xf1cf8c['attributes']&&_0xf1cf8c['attributes']['tablePasteChainId']==_0x24c0d7);_0x7bf492['length']&&_0x272573['getAllAdjacentSuggestions']()['length']!=_0x7bf492['length']&&_0x7bf492['reduce']((_0x24b955,_0x4fc854)=>(_0x24b955['next']=_0x4fc854,_0x4fc854['previous']=_0x24b955,_0x4fc854));};function _0x1a599d(_0x1dd336,_0xfa3092=!0x0){const {id:_0x38ae51,authorId:_0x41ff72}=tt(_0x1dd336['markerName']),_0x441e8f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x611405=_0x3f3283['activeMarkers']['includes'](_0x1dd336['markerName']);return _0x611405&&_0x441e8f['push']('ck-suggestion-marker--active'),{'classes':_0x441e8f,'attributes':{'data-suggestion':_0x38ae51,'data-author-id':_0x41ff72},'priority':_0x611405&&_0xfa3092?0xbc2:0xbb8};}_0x3f3283['on']('suggestionLoaded',_0x11f7b8,{'priority':'high'}),_0x3f3283['on']('suggestionUnloaded',_0x11f7b8,{'priority':'high'}),_0x33f0a6['model']['document']['registerPostFixer'](()=>{let _0x371d90=!0x1;const _0x5718a2=Array['from'](_0x33f0a6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x294f41,data:_0x552ed5}of _0x5718a2){const {group:_0x5836ba,type:_0x57d727,id:_0x57d11e}=tt(_0x294f41);if('suggestion'!=_0x5836ba||'deletion'!=_0x57d727||_0x552ed5['oldRange'])continue;if(!_0x3f3283['hasSuggestion'](_0x57d11e))continue;const _0x7588d1=_0x3f3283['getSuggestion'](_0x57d11e)['getRanges'](),_0x2cdd41=_0x33f0a6['plugins']['get']('Users')['me'];for(const _0x57f1d6 of _0x3f3283['getSuggestions']())if(_0x57f1d6['isInContent']&&_0x57f1d6['author']==_0x2cdd41&&'formatBlock'==_0x57f1d6['type']&&'tablePasteCell'==_0x57f1d6['subType']&&_0x57f1d6['getRanges']()['every'](_0x25c464=>_0x7588d1['some'](_0x2853f8=>_0x2853f8['containsRange'](_0x25c464,!0x0)))){for(const _0x34573a of _0x57f1d6['getAllAdjacentSuggestions']())_0x34573a['isInContent']&&(_0x34573a['discard'](),_0x371d90=!0x0);}}return _0x371d90;}),_0x33f0a6['model']['document']['registerPostFixer'](_0x2db19d=>{const _0x20d00d=_0x33f0a6['commands']['get']('redo');if(!_0x20d00d||!_0x20d00d['_createdBatches']['has'](_0x2db19d['batch']))return!0x1;let _0x5c7ae4=!0x1;const _0x31a261=_0x33f0a6['plugins']['get']('Users')['me'],_0x1032ae=_0x33f0a6['model']['document']['differ']['getChanges'](),_0x47ae38=Array['from'](_0x33f0a6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x702579,data:_0x16d29b})=>{const {group:_0x54c6c9,subType:_0x3c332e,authorId:_0x116b9f}=tt(_0x702579);return'suggestion'==_0x54c6c9&&'tablePaste'==_0x3c332e&&_0x116b9f==_0x31a261['id']&&!_0x16d29b['oldRange'];});for(const _0x42e361 of _0x1032ae){if('insert'!=_0x42e361['type']||'tableCellSuggestion'!=_0x42e361['name']||0x1!=_0x42e361['length'])continue;const _0x28d28d=_0x2db19d['createRange'](_0x42e361['position'],_0x42e361['position']['getShiftedBy'](0x1));if(!_0x47ae38['find'](({data:_0x2c34a8})=>_0x2c34a8['newRange']['isEqual'](_0x28d28d))){for(const {name:_0x590d81,data:_0x49efbc}of _0x47ae38)if(_0x28d28d['containsRange'](_0x49efbc['newRange'])){_0x2db19d['updateMarker'](_0x590d81,{'range':_0x28d28d}),_0x5c7ae4=!0x0;break;}}}return _0x5c7ae4;}),_0x33f0a6['model']['document']['registerPostFixer'](_0x54bdf7=>{let _0x5112aa=!0x1;const _0x443d9f=_0x33f0a6['plugins']['get']('Users')['me'],_0x45acbf=_0x3f3283['getSuggestions']()['filter'](_0x2b7d83=>_0x2b7d83['isInContent']&&_0x2b7d83['author']==_0x443d9f),_0x38dd27=new Set(),_0x8d454a=new Set();for(const _0x5788e4 of _0x45acbf)if('tablePaste'==_0x5788e4['subType'])for(const _0x13c724 of _0x5788e4['getMarkers']()){const _0x1a34c8=_0x13c724['getRange']()['getContainedElement']();if(_0x1a34c8){if(_0x1a34c8['is']('element','tableCellSuggestion')&&We(_0x1a34c8)){_0x5788e4['removeMarker'](_0x13c724['name']),_0x38dd27['add'](_0x1a34c8),_0x5112aa=!0x0;const _0x170b28=_0x1a34c8['nextSibling'],_0x46f1ab=_0x1a34c8['previousSibling'],_0x12f252=_0x170b28&&_0x170b28['is']('element','tableCellSuggestion'),_0x475129=_0x46f1ab&&_0x46f1ab['is']('element','tableCellSuggestion');_0x12f252&&!_0x38dd27['has'](_0x170b28)&&_0x8d454a['add'](_0x170b28),_0x475129&&!_0x38dd27['has'](_0x46f1ab)&&_0x8d454a['add'](_0x46f1ab);}else _0x1a34c8['is']('element','paragraph')&&_0x1a34c8['isEmpty']&&(_0x5788e4['removeMarker'](_0x13c724['name']),_0x5112aa=!0x0);}}else{if('tablePasteCell'==_0x5788e4['subType']){if(!_0x5788e4['attributes']||!_0x5788e4['attributes']['tablePasteChainId'])continue;const _0x45f132=_0x5788e4['attributes']['markerAttributes'];if(_0x45f132&&Object['keys'](_0x45f132)['length'])continue;const _0x5e6844=_0x5788e4['attributes']['tablePasteChainId'];let _0x40a529=!0x0,_0x52ad64=!0x0;for(const _0x2ce791 of _0x45acbf)if(_0x2ce791['subType']&&_0x2ce791['subType']['startsWith']('tablePaste')){if(!_0x2ce791['attributes']['tablePasteChainId']){_0x52ad64=!0x1;break;}if(_0x2ce791['id']!=_0x5788e4['id']&&_0x2ce791['attributes']['tablePasteChainId']==_0x5e6844){_0x40a529=!0x1;break;}}_0x52ad64&&_0x40a529&&(_0x5788e4['removeMarkers'](),_0x5112aa=!0x0);}}for(const _0x41042e of _0x38dd27)_0x54bdf7['remove'](_0x41042e);for(const _0x33d942 of _0x8d454a)_0x54bdf7['unwrap'](_0x33d942);return _0x5112aa;}),_0x33f0a6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2c14c9=>_0x1a599d(_0x2c14c9),'converterPriority':'high'}),_0x33f0a6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x481b5e,_0x5f539d)=>_0x5f539d['options']['showSuggestionHighlights']?_0x1a599d(_0x481b5e,!0x1):null,'converterPriority':'high'});const _0x227db2=_0x33f0a6['editing']['view'];this['listenTo'](_0x227db2['document'],'clipboardOutput',(_0x37fe24,_0x3f7715)=>{const _0x3af9f8=[];for(const _0x49b5de of _0x227db2['createRangeIn'](_0x3f7715['content'])['getItems']())_0x49b5de['is']('element','suggestion-td')&&_0x3af9f8['push'](_0x49b5de);_0x227db2['change'](_0x308059=>{for(const _0x8bd6df of _0x3af9f8)_0x308059['move'](_0x308059['createRangeIn'](_0x8bd6df),_0x308059['createPositionBefore'](_0x8bd6df)),_0x308059['remove'](_0x8bd6df);});});}};function We(_0x9c3f3){if(_0x9c3f3['isEmpty'])return!0x0;const _0x25f1f6=_0x9c3f3['getChild'](0x0);return _0x25f1f6['is']('element','paragraph')&&_0x25f1f6['isEmpty'];}function je(_0x3a31f6,_0x294dd9={},_0xbdfeba){for(const {isAnchor:_0x362414,cellHeight:_0x3d7256,cellWidth:_0xd6c29d}of _0xbdfeba['createTableWalker'](_0x3a31f6,{'includeAllSlots':!0x0,..._0x294dd9}))if(!_0x362414||0x1!=_0x3d7256||0x1!=_0xd6c29d)return!0x1;return!0x0;}var Ke=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4c36f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c36f1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4c36f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4c36f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c36f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4c36f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4c36f1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f6d1a,_0x22fd8d){const _0x473a0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c3201=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1322d7=_0x22fd8d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x50a8e0=_0x2c3201['getColumnGroupElement'](_0x1322d7);let _0x312e7f=_0x50a8e0?_0x2c3201['getTableColumnsWidths'](_0x50a8e0):null,_0x4d75c7=_0x1322d7['getAttribute']('tableWidth')||null;const _0x563080=_0x22fd8d['tableWidth']||_0x4d75c7,_0x326c0c=_0x22fd8d['columnWidths']||_0x312e7f,_0x52b703=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b97de of _0x473a0b['getSuggestions']()){const _0x384308=_0x2b97de['getContainedElement']();if('resizeTable'===_0x2b97de['subType']&&_0x384308===_0x1322d7){_0x2b97de['author']!==_0x52b703&&_0x2b97de['discard']();const _0x11bbbc=_0x2b97de['data']['commandParams'];_0x4d75c7=_0x11bbbc[0x0]['tableWidth'],_0x312e7f=_0x11bbbc[0x0]['columnWidths'];break;}}_0x2f6d1a({'table':_0x1322d7,'tableWidth':_0x563080,'columnWidths':_0x326c0c}),_0x473a0b['markBlockFormat'](_0x1322d7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4d75c7,'columnWidths':_0x312e7f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x164fff){if('formatBlock'!=_0x164fff['type']&&'formatInline'!=_0x164fff['type'])return;const {data:_0x487e83}=_0x164fff;return _0x487e83&&'resizeTable'===_0x487e83['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x449cd5{['afterInit'](){const _0x7ab311=this['editor'];_0x7ab311['plugins']['has']('Template')&&_0x7ab311['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x449cd5{['afterInit'](){const _0x371500=this['editor'];if(!_0x371500['commands']['get']('insertTableOfContents'))return;_0x371500['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1617bc=_0x371500['plugins']['get']('TrackChangesEditing'),_0x50b0e8=_0x371500['locale'];_0x1617bc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1012fe=>St(_0x50b0e8,'ELEMENT_TABLE_OF_CONTENTS',_0x1012fe));}},qe=class extends _0x449cd5{['afterInit'](){const _0xec7f6c=this['editor'];_0xec7f6c['plugins']['has']('Title')&&(_0xec7f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0xec7f6c['locale'],'ELEMENT_TITLE')),_0xec7f6c['model']['document']['registerPostFixer'](_0x155a29=>{let _0x44c525=!0x1;const _0x4ff8ed=Array['from'](_0xec7f6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a9ce7,data:_0x516f63}of _0x4ff8ed){const {group:_0xa9e5a5}=tt(_0x5a9ce7);if('suggestion'!==_0xa9e5a5||!_0x516f63['newRange'])continue;const _0x4b68bf=_0x516f63['newRange'],_0x4bf66a=_0x4b68bf['end']['nodeBefore'];if(!_0x4bf66a||!_0x4bf66a['is']('element','title-content'))continue;if(!_0x4b68bf['start']['isTouching'](_0x4b68bf['end']))continue;const _0x3f2f7f=_0xec7f6c['model']['schema']['getNearestSelectionRange'](_0x4b68bf['end'],'forward');if(_0x3f2f7f&&_0x3f2f7f['isCollapsed']){const _0x13a62c=_0x155a29['createRange'](_0x4b68bf['start'],_0x3f2f7f['start']);_0x13a62c['isEqual'](_0x4b68bf)||(_0x155a29['updateMarker'](_0x5a9ce7,{'range':_0x13a62c}),_0x44c525=!0x0);}_0x44c525||(_0x155a29['removeMarker'](_0x5a9ce7),_0x44c525=!0x0);}return _0x44c525;}));}},Ye=class extends _0x449cd5{['afterInit'](){const _0x4239d8=this['editor'],_0x3ff510=_0x4239d8['plugins']['get']('TrackChangesEditing');_0x4239d8['plugins']['has']('Uploadcare')&&(_0x3ff510['enableCommand']('uploadcare'),_0x4239d8['plugins']['has']('UploadcareImageEdit')&&(_0x3ff510['enableCommand']('uploadcareImageEdit'),_0x3ff510['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3ff510['descriptionFactory']['registerDescriptionCallback'](_0x509e18=>{if('attribute'!=_0x509e18['type'])return;const {data:_0x445135}=_0x509e18;return _0x445135&&'uploadcareImageId'==_0x445135['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x449cd5{['afterInit'](){const _0x2e5be7=this['editor'],_0x4b3f64=_0x2e5be7['plugins']['get']('TrackChangesEditing');_0x2e5be7['plugins']['has']('UndoEditing')&&(_0x4b3f64['enableCommand']('undo'),_0x4b3f64['enableCommand']('redo'));}},Ze=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x12447f=this['editor'];_0x12447f['plugins']['has']('TableCaptionEditing')&&_0x12447f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x449cd5{['tableProperties'];['tableCellProperties'];constructor(_0x279868){super(_0x279868),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x688a4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x37da74 of this['tableProperties'])_0x688a4['enableCommand'](_0x37da74,(_0x4ce5c6,_0x294b0b)=>{const _0x24c2f0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x37da74,[_0x24c2f0],this['tableProperties'],'tableProperties',_0x4ce5c6,_0x294b0b);});_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x688a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d2f87,_0x9faa1d)=>this['handleDiscardAction'](this['tableProperties'],_0x2d2f87,_0x9faa1d)),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a9e9a of this['tableCellProperties'])this['editor']['commands']['get'](_0x3a9e9a)&&_0x688a4['enableCommand'](_0x3a9e9a,(_0xc8566,_0x387071)=>{const _0xce8705=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a9e9a,_0xce8705,this['tableCellProperties'],'tableCellProperties',_0xc8566,_0x387071);});_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x688a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4942e2,_0x52c216)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4942e2,_0x52c216)),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x688a4['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x688a4['descriptionFactory']['registerDescriptionCallback'](_0x5b69c7=>this['handleSuggestionDescription'](_0x5b69c7)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3182da,_0x45c958,_0x3dd420,_0x25137e,_0x443b73,_0x17d251){const _0x5eed09=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x17d251['batch'],()=>{for(const _0x56c98a of _0x45c958)if(this['_getSuggestion'](_0x56c98a,_0x25137e))_0x443b73(_0x17d251);else{const _0x2b6647={};for(const _0x5936b7 of _0x3dd420){const _0x163335=_0x56c98a['getAttribute'](_0x5936b7);void 0x0!==_0x163335&&(_0x2b6647[_0x5936b7]=_0x163335);}_0x443b73(_0x17d251),_0x5eed09['markBlockFormat'](_0x56c98a,{'commandParams':[_0x2b6647]},[],_0x25137e);}});}['handleDiscardAction'](_0x3e3f9d,_0x2e913d,_0x3a8b0a){const _0x310b9d=_0x2e913d[0x0]['start']['nodeAfter'],_0x450e38=_0x3a8b0a['commandParams'][0x0];this['editor']['model']['change'](_0x299368=>{for(const _0x2016bf of _0x3e3f9d)void 0x0!==_0x450e38[_0x2016bf]?_0x299368['setAttribute'](_0x2016bf,_0x450e38[_0x2016bf],_0x310b9d):_0x299368['removeAttribute'](_0x2016bf,_0x310b9d);});}['handleSuggestionDescription'](_0x394eb9){if(_0x394eb9['data'])switch(_0x394eb9['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1dd283,_0x15281d){const _0x3336d6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x405022 of _0x3336d6['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d23c2=_0x405022['getContainedElement']();if(_0x405022['subType']===_0x15281d&&_0x5d23c2===_0x1dd283)return _0x405022;}return null;}['_registerTablePropertiesAttributes'](){const _0x33392f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x215d3a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x112a14 of _0x215d3a){const _0x2fee98=_0x112a14['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x33392f['descriptionFactory']['registerAttributeLabel'](_0x112a14,St(this['editor']['locale'],'FORMAT_'+_0x2fee98));}}},tn=class extends _0x449cd5{['afterInit'](){const _0xa5622d=this['editor'];if(!_0xa5622d['plugins']['has']('LineHeight'))return;const _0xb231e4=_0xa5622d['plugins']['get']('TrackChangesEditing'),_0x560cce=_0xa5622d['locale'];_0xb231e4['enableDefaultAttributesIntegration']('lineHeight'),_0xb231e4['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x560cce,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x449cd5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x29457b,_0x2962ea,_0x31fa66,_0x3fa9a4,_0xa1008,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x110a32){super(_0x110a32),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3206bf,_0x5410f2,_0x518b81,_0x5e5e6c)=>{this['_model']['change'](()=>{for(const _0x166c01 of[..._0x5e5e6c,..._0x518b81])this['_model']['markers']['has'](_0x166c01)&&_0x110a32['editing']['reconvertMarker'](_0x166c01);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x110a32['plugins']['get'](_0x29457b),this['_suggestionsConversion']=_0x110a32['plugins']['get'](_0x2962ea),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x110a32['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x110a32['config']['get']('trackChanges.trackFormatChanges'),_0x110a32['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x110a32['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x110a32,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5318dc=this['editor'];_0x5318dc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x377f1e,{writer:_0x59e817})=>{let _0x1d754f='suggestion:'+_0x377f1e['getAttribute']('suggestion-type')+':'+_0x377f1e['getAttribute']('id');return _0x377f1e['getAttribute']('marker-count')&&(_0x1d754f+=':'+_0x377f1e['getAttribute']('marker-count')),_0x59e817['createElement']('$marker',{'data-name':_0x1d754f});}}),_0x5318dc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5318dc['model']['document']['registerPostFixer'](_0x204801=>{let _0x87ac8a=!0x1;const _0x12a79b=Array['from'](_0x5318dc['model']['document']['differ']['getChangedMarkers']()),_0x330e9f=new Set();for(const {name:_0x2c01ed,data:_0x80e037}of _0x12a79b){const {group:_0x3ac500,type:_0x369ec3,subType:_0x16c53f,id:_0xf3c9e6}=tt(_0x2c01ed);if('suggestion'!==_0x3ac500)continue;const _0x1944d5=_0x16c53f?'suggestion:'+_0x369ec3+':'+_0x16c53f+':'+_0xf3c9e6:'suggestion:'+_0x369ec3+':'+_0xf3c9e6,_0x121e48=_0x5318dc['model']['markers']['getMarkersGroup'](_0x1944d5),_0x273338=_0x5318dc['model']['markers']['get'](_0x2c01ed),_0x2f5ca7=this['_suggestions']['get'](_0xf3c9e6);if(null!=_0x80e037['newRange']){'formatInline'==_0x369ec3&&(_0x87ac8a=_0x87ac8a||an(_0x80e037['newRange'],_0x2c01ed,_0x204801,_0x5318dc['model']['schema']));const _0x5ae474='attribute'==_0x369ec3&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x16c53f)),_0x3f91d9='attribute'==_0x369ec3&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x16c53f));if(_0x80e037['newRange']['isCollapsed']||'$graveyard'==_0x80e037['newRange']['root']['rootName']||'formatBlock'==_0x369ec3&&!ln(_0x80e037['newRange'])||_0x5ae474&&!ln(_0x80e037['newRange'])||_0x3f91d9&&un(_0x80e037['newRange'])||'deletion'==_0x369ec3&&un(_0x80e037['newRange'])||_0x273338&&dn(_0x273338,_0x121e48))_0x204801['removeMarker'](_0x2c01ed),_0x87ac8a=!0x0;else{if(!_0x2f5ca7||!_0x2f5ca7['isInContent'])continue;if(_0x80e037['newRange']&&_0x80e037['oldRange']&&_0x80e037['newRange']['isEqual'](_0x80e037['oldRange']))continue;_0x330e9f['add'](_0x2f5ca7);}}}return _0x330e9f['size']>0x0&&(_0x87ac8a=!!this['_joinWithAdjacentSuggestions'](_0x330e9f)||_0x87ac8a),_0x87ac8a;}),_0x5318dc['model']['document']['registerPostFixer'](_0x1877dd=>{let _0x504b9a=!0x1;for(const _0x406e65 of _0x5318dc['model']['document']['differ']['getChanges']())if('insert'==_0x406e65['type'])for(const _0xa64b2f of this['_suggestions']['values']()){if(_0xa64b2f['isMultiRange']||!_0xa64b2f['isInContent'])continue;const _0x4eb867='formatBlock'==_0xa64b2f['type'],_0x4461b3=this['_getAttributeKey'](_0xa64b2f),_0x21597a=_0x4461b3&&this['_suggestionsConversion']['isBlockAttribute'](_0x4461b3);if(!_0x4eb867&&!_0x21597a)continue;const _0x17d704=_0xa64b2f['getFirstRange']();if(_0x17d704['start']['parent']!=_0x17d704['end']['parent']&&!_0x17d704['end']['isAtEnd']){const _0x3a6575=_0x5318dc['model']['createPositionAt'](_0x17d704['start']['nodeAfter'],'end'),_0x4afaa4=_0x5318dc['model']['createRange'](_0x17d704['start'],_0x3a6575);_0x1877dd['updateMarker'](_0xa64b2f['getFirstMarker'](),{'range':_0x4afaa4}),_0x504b9a=!0x0;}}return _0x504b9a;}),_0x5318dc['model']['document']['registerPostFixer'](_0x21cb45=>this['_processAttributeChanges'](_0x21cb45)),_0x5318dc['model']['document']['registerPostFixer'](_0x2098ab=>!_0x2098ab['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2098ab)),_0x5318dc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5318dc['model']['document']['on']('change:data',(_0x5e91f5,_0x21078c)=>{if(!_0x21078c['isLocal']||_0x21078c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x324b51=_0x5318dc['model']['document']['differ']['getChanges']();if(0x0==_0x324b51['length'])return;const _0x36cb9e=[],_0x4d29f2=_0x324b51['filter'](_0x3e5429=>'attribute'==_0x3e5429['type']),_0xa2c5b=_0x324b51['filter'](_0x1174a6=>'insert'==_0x1174a6['type']&&'$text'!=_0x1174a6['name']);for(const _0x373b9e of _0x4d29f2)this['_suggestionsConversion']['isRegisteredAttribute'](_0x373b9e['attributeKey'])&&_0x36cb9e['push']({'key':_0x373b9e['attributeKey'],'newValue':_0x373b9e['attributeNewValue'],'oldValue':_0x373b9e['attributeOldValue'],'range':hn(_0x373b9e['range'],_0x5318dc['model'])});for(const _0x37f290 of _0xa2c5b){if('rename'!=_0x37f290['action']&&'refresh'!=_0x37f290['action'])continue;const _0x5abfd5=gn(_0x37f290['position']['nodeAfter'],_0x5318dc['model']),_0x3aa2cf=_0x37f290['before'];'rename'==_0x37f290['action']&&_0x36cb9e['push']({'key':en,'newValue':_0x37f290['name'],'oldValue':_0x3aa2cf['name'],'range':_0x5abfd5});for(const [_0x11563a,_0x2beb87]of _0x3aa2cf['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x11563a))continue;const _0x16862d=_0x37f290['attributes']['get'](_0x11563a);_0x2beb87!==_0x16862d&&_0x36cb9e['push']({'key':_0x11563a,'newValue':_0x16862d,'oldValue':_0x2beb87,'range':_0x5abfd5});}for(const [_0x41b01f,_0x2f8d07]of _0x37f290['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x41b01f)&&(_0x3aa2cf['attributes']['has'](_0x41b01f)||_0x36cb9e['push']({'key':_0x41b01f,'newValue':_0x2f8d07,'oldValue':null,'range':_0x5abfd5}));}0x0!=_0x36cb9e['length']&&_0x5318dc['model']['enqueueChange'](_0x21078c,_0x46f240=>{const _0x422985=_0x1c0f04();for(const {range:_0x2d6758,key:_0x100e74,oldValue:_0x36b652,newValue:_0x2b2fe2}of _0x36cb9e)this['markAttributeChange'](_0x2d6758,_0x100e74,_0x36b652,_0x2b2fe2,{'groupId':_0x422985});this['_reduceExistingSuggestions'](_0x46f240,_0x36cb9e);});},{'priority':'lowest'}),_0x5318dc['model']['markers']['on']('update:suggestion',(_0x840bf5,_0x4f6480,_0x19bbf4)=>{if(null==_0x19bbf4){const {id:_0x5d8657}=tt(_0x4f6480['name']),_0x26da87=this['_suggestions']['get'](_0x5d8657);_0x26da87&&_0x26da87['addMarkerName'](_0x4f6480['name']);}}),_0x5318dc['model']['document']['on']('change:data',()=>{const _0x1da832=Array['from'](_0x5318dc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2126c7=>'suggestion'===tt(_0x2126c7['name'])['group']);if(0x0===_0x1da832['length'])return;_0x1da832['sort']((_0x21e1db,_0x14688c)=>{const _0xfd4f96=_0x21e1db['data']['oldRange'],_0x449cc3=_0x14688c['data']['oldRange'];return null===_0xfd4f96&&null===_0x449cc3?0x0:null===_0xfd4f96&&null!==_0x449cc3?-0x1:null!==_0xfd4f96&&null===_0x449cc3?0x1:_0xfd4f96['start']['isBefore'](_0x449cc3['start'])?-0x1:0x1;});const _0x5a0d7a=new Set(),_0x5d11a4=new Set();for(const {name:_0xdb997d,data:_0x1ddd3f}of _0x1da832){const {id:_0x4008c8}=tt(_0xdb997d);if(null===_0x1ddd3f['oldRange']){const _0x272e79=this['_handleNewSuggestionMarker'](_0xdb997d);_0x5d11a4['add'](_0x272e79);}else{const _0x31ead2=this['_suggestions']['get'](_0x4008c8);null!==_0x1ddd3f['newRange']||_0x31ead2['isInContent']?(_0x5a0d7a['add'](_0x31ead2['head']),_0x5d11a4['add'](_0x31ead2)):this['_removeSuggestion'](_0x31ead2);}}_0x5d11a4['size']>0x0&&this['_refreshSuggestionsChain'](_0x5d11a4);for(const _0x29cf48 of _0x5a0d7a)this['fire']('suggestionChanged',_0x29cf48);}),_0x5318dc['model']['on']('applyOperation',(_0x30a278,_0x54b8db)=>{const _0x3724e0=_0x54b8db[0x0];if(!this['_suggestions']['size'])return;if(!_0x3724e0['isDocumentOperation'])return;if(_0x3724e0['batch']['isUndo']||!_0x3724e0['batch']['isLocal'])return;let _0x47ed50,_0x3ba8b7;switch(_0x3724e0['type']){case'insert':_0x47ed50=_0x5318dc['model']['createPositionAt'](_0x3724e0['position']),_0x3ba8b7=_0x47ed50['getShiftedBy'](_0x3724e0['howMany']);break;case'split':_0x47ed50=_0x5318dc['model']['createPositionAt'](_0x3724e0['splitPosition']),_0x3ba8b7=_0x5318dc['model']['createPositionAt'](_0x3724e0['moveTargetPosition']);break;case'move':_0x47ed50=_0x5318dc['model']['createPositionAt'](_0x3724e0['targetPosition']),_0x3ba8b7=_0x47ed50['getShiftedBy'](_0x3724e0['howMany']);break;default:return;}const _0x28e726=_0x5318dc['model']['createRange'](_0x47ed50,_0x3ba8b7);_0x5318dc['model']['change'](()=>{for(const {suggestion:_0xc87603,meta:_0x33ff22}of this['_findSuggestions'](_0x28e726)){if(_0xc87603['isMultiRange'])continue;if('formatInline'==_0xc87603['type'])continue;const _0xb9fc79=this['_getAttributeKey'](_0xc87603);if(_0xb9fc79&&this['_suggestionsConversion']['isBlockAttribute'](_0xb9fc79)&&'split'!=_0x3724e0['type'])continue;const _0xfc0950=_0xc87603['data']&&_0xc87603['data']['multipleBlocks'];('formatBlock'!=_0xc87603['type']||'split'==_0x3724e0['type']&&!_0xfc0950)&&(_0x33ff22['containsRangeInObject']||'insertion'==_0xc87603['type']&&_0x33ff22['isOwn']||_0xc87603['getFirstRange']()['containsRange'](_0x28e726)&&this['_breakSuggestionMarker'](_0xc87603,_0x47ed50,_0x3ba8b7));}});},{'priority':'lowest'}),_0x5318dc['model']['on']('deleteContent',(_0x584822,_0x416594)=>{const _0x5ce633=_0x416594[0x0],_0x28d9a8=_0x416594[0x1];if(_0x28d9a8&&_0x28d9a8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ce633['isCollapsed'])return;const _0xec42fc=_0x5318dc['model']['schema'],{start:_0x4a3eb3,end:_0x312e9f}=_0x5ce633['getFirstRange'](),_0x5e0467=_0x4a3eb3['nodeAfter']&&_0xec42fc['isLimit'](_0x4a3eb3['nodeAfter'])?null:_0xec42fc['getNearestSelectionRange'](_0x4a3eb3,'forward'),_0x4b579f=_0x312e9f['nodeBefore']&&_0xec42fc['isLimit'](_0x312e9f['nodeBefore'])?null:_0xec42fc['getNearestSelectionRange'](_0x312e9f,'backward'),_0x34401d=_0x5318dc['model']['createRange'](_0x5e0467?_0x5e0467['start']:_0x4a3eb3,_0x4b579f?_0x4b579f['end']:_0x312e9f);_0x5318dc['model']['change'](_0x36dac2=>{this['markDeletion'](_0x34401d);const _0x510fc3=_0x5318dc['model']['schema']['getNearestSelectionRange'](_0x34401d['start']);_0x5ce633['is']('documentSelection')?_0x36dac2['setSelection'](_0x510fc3):_0x5ce633['setTo'](_0x510fc3);}),_0x584822['stop']();},{'priority':_0x449a53['normal']+0xa}),_0x5318dc['model']['on']('insertContent',(_0x1b16bd,_0x1d7b1a)=>{const _0x454db7=_0x1d7b1a[_0x1d7b1a['length']-0x1];_0x454db7&&_0x454db7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5318dc['model']['change'](()=>{let _0x3aef33=_0x5318dc['model']['insertContent'](_0x1d7b1a[0x0],_0x1d7b1a[0x1],_0x1d7b1a[0x2],{'forceDefaultExecution':!0x0});if(!_0x3aef33)return;_0x1b16bd['return']=_0x3aef33['clone']();const _0x5163cd=_0x3aef33['end']['nodeBefore'],_0x2b915e=_0x5318dc['model']['schema'];_0x5163cd&&_0x2b915e['isBlock'](_0x5163cd)&&!_0x2b915e['isObject'](_0x5163cd)&&(_0x3aef33=_0x5318dc['model']['createRange'](_0x3aef33['start'],_0x5318dc['model']['createPositionAt'](_0x5163cd,'end'))),this['markInsertion'](_0x3aef33);}),_0x1b16bd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x238cfe=new Tt(_0x5318dc,this['_suggestions']);_0x5318dc['commands']['add']('acceptSuggestion',_0x238cfe),this['enableCommand']('acceptSuggestion');const _0x3a4dd3=new _t(_0x5318dc,this['_suggestions']);_0x5318dc['commands']['add']('discardSuggestion',_0x3a4dd3),this['enableCommand']('discardSuggestion'),_0x5318dc['commands']['add']('acceptAllSuggestions',new Ct(_0x5318dc,_0x238cfe,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5318dc['commands']['add']('discardAllSuggestions',new Ct(_0x5318dc,_0x3a4dd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5318dc['commands']['add']('acceptSelectedSuggestions',new Rt(_0x5318dc,_0x238cfe,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5318dc['commands']['add']('discardSelectedSuggestions',new Rt(_0x5318dc,_0x3a4dd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a4d44=_0x5318dc['plugins']['get'](_0x29457b);this['listenTo'](_0x2a4d44,'addComment',(_0x129deb,{threadId:_0x130273})=>{const _0x47dff3=this['_suggestions']['get'](_0x130273);_0x47dff3&&_0x47dff3['commentThread']&&0x1===_0x47dff3['commentThread']['length']&&this['_updateSuggestionData'](_0x130273,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a4d44,'removeComment',(_0x2f5cdc,{threadId:_0x12f77e})=>{const _0x564a8f=this['_suggestions']['get'](_0x12f77e);_0x564a8f&&_0x564a8f['commentThread']&&!_0x564a8f['commentThread']['length']&&this['_updateSuggestionData'](_0x12f77e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1a6be6){const _0x1affa6='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x25ba8e=0x78fc0,_0x2d7d0a=window['Date']['now'](),_0x52eb13=_0x1a6be6['editor'],_0x3622d9=new window['Promise'](_0x2b4094=>{_0x52eb13['once']('ready',_0x2b4094);}),_0x2887b7={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1f22d3=_0x52eb13['config']['get']('licenseKey');async function _0x40f3ff(){let _0x493706,_0x450037=null,_0x452a27=null;try{return'GPL'==_0x1f22d3?'NotAllowed':(_0x493706=_0x5cec3c(),_0x493706?(_0x493706['usageEndpoint']&&(_0x452a27=_0x2f45a6(_0x493706['usageEndpoint'],_0x493706['jti'])),await _0x2f408d()?_0x452eb9()?_0x18d8ef()?'Expired':_0x5f3885()?('evaluation'==_0x493706['licenseType']&&(_0x450037=_0x477709('EvaluationLimit')),await _0x221102()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x18d8ef(){const _0x3e9bbe=['evaluation','trial']['includes'](_0x493706['licenseType'])?_0x2d7d0a/0x3e8:0xe10*_0x25ba8e;return _0x493706['exp']<_0x3e9bbe;}function _0x452eb9(){const _0x49cd20=_0x493706['features'];if(!_0x49cd20)return!0x1;if(_0x49cd20['includes']('*'))return!0x0;if(_0x49cd20['includes']('TC'))return!0x0;if(_0x49cd20['includes']('RTC')){if(_0x3ce1c8())return!0x0;if(_0x57aa4a()||_0x189e58())return!0x0;}return!0x1;}function _0x5f3885(){const _0x14bdc1=_0x493706['licensedHosts'];if(!_0x14bdc1||0x0==_0x14bdc1['length'])return!0x0;const {hostname:_0x5cef0c}=new URL(window['location']['href']);if(_0x14bdc1['includes'](_0x5cef0c))return!0x0;const _0x101459=_0x5cef0c['split']('.');return _0x14bdc1['filter'](_0x5f5800=>_0x5f5800['includes']('*'))['map'](_0x242c3d=>_0x242c3d['split']('.'))['filter'](_0x515c2a=>_0x515c2a['length']<=_0x101459['length'])['map'](_0x533c74=>Array(_0x101459['length']-_0x533c74['length'])['fill']('*'===_0x533c74[0x0]?'*':'')['concat'](_0x533c74))['some'](_0x422961=>_0x101459['every']((_0x136d51,_0x497ce3)=>_0x422961[_0x497ce3]===_0x136d51||'*'===_0x422961[_0x497ce3]));}function _0x221102(){return _0x450037&&_0x452a27?new window['Promise']((_0x4b6a95,_0x56dc9f)=>{_0x450037['then'](_0x4b6a95,_0x56dc9f),_0x452a27['then'](_0x5075eb=>{'Valid'!=_0x5075eb&&_0x4b6a95(_0x5075eb);},_0x56dc9f);}):_0x450037||_0x452a27||'Valid';}}function _0x2f45a6(_0x1a2cf8,_0x47de44){return new window['Promise'](_0x4ad15a=>{if(_0x4b509d())return _0x4ad15a('Valid');_0x2c2c5f(),_0x52eb13['decorate']('_sendUsageRequest');let _0xb09e9b=!0x1;const _0x38fbf7=_0x1c0f04();function _0x5e0868(_0x40c6cf){return!!_0x40c6cf&&('object'==typeof _0x40c6cf||'function'==typeof _0x40c6cf)&&'function'==typeof _0x40c6cf['then']&&'function'==typeof _0x40c6cf['catch'];}function _0x2362d4(_0x123a32){_0x16f4d7(_0x123a32)['then'](_0x140cc8=>_0x140cc8&&'ok'==_0x140cc8['status']?_0x506abb(_0x5197f9(_0x38fbf7+_0x47de44))!=_0x140cc8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2023ea=>(_0x42a287(),_0x2023ea),()=>{const _0x29c78c=_0x25ce19();return null==_0x29c78c?(_0x42a287(),'Valid'):_0x2d7d0a-_0x29c78c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4ad15a)['catch'](()=>{_0x4ad15a('UsageLimit');});const _0x3b1006=0x36ee80;function _0x42a287(){const _0xa7f919='llct-'+_0x506abb(_0x5197f9(_0x1a2cf8)),_0x28a22e=_0x7c1c7b(_0x506abb(window['Math']['ceil'](_0x2d7d0a/_0x3b1006)));window['localStorage']['setItem'](_0xa7f919,_0x28a22e);}function _0x25ce19(){const _0x1ec009='llct-'+_0x506abb(_0x5197f9(_0x1a2cf8)),_0x36b0a1=window['localStorage']['getItem'](_0x1ec009);return _0x36b0a1?window['parseInt'](_0x7c1c7b(_0x36b0a1),0x10)*_0x3b1006:null;}function _0x16f4d7(_0x70af16){return new window['Promise']((_0x335994,_0x9143fc)=>{_0x70af16['then'](_0x335994,_0x9143fc),window['setTimeout'](_0x9143fc,0x1d4c0);});}}_0x52eb13['on']('_sendUsageRequest',(_0x165e22,_0x269c8b)=>{if(_0x269c8b[0x0]!=_0x1a2cf8)return _0x4ad15a('UsageLimit');_0x269c8b[0x1]={..._0x269c8b[0x1],'requestId':_0x38fbf7};},{'priority':'high'}),_0x52eb13['on']('_sendUsageRequest',_0x8d9c97=>{_0x5e0868(_0x8d9c97['return'])&&(_0xb09e9b=!0x0,_0x2362d4(_0x8d9c97['return']));},{'priority':'low'}),_0x3622d9['then'](()=>{_0xb09e9b||_0x4ad15a('UsageLimit');});});function _0x4b509d(){return'auto'==_0x52eb13['editing']['view']['_overlayModeHint'];}function _0x2c2c5f(){_0x52eb13['editing']['view']['_overlayModeHint']='auto';}}function _0x477709(_0x3c94a2){const _0x4fe860=[new window['Promise'](_0x522d60=>setTimeout(_0x522d60,0x93ecc)),_0x3622d9['then'](()=>new window['Promise'](_0x389bc8=>{let _0x556f9d=0x0;_0x52eb13['model']['on']('applyOperation',(_0x316bfe,_0x276b34)=>{_0x276b34[0x0]['isDocumentOperation']&&_0x556f9d++,0x5e8==_0x556f9d&&(_0x389bc8(),_0x316bfe['off']());});}))];return window['Promise']['race'](_0x4fe860)['then'](()=>_0x3c94a2);}async function _0xb04aac(){await _0x3622d9,_0x52eb13['model']['change']=_0x5da7ea,_0x52eb13['model']['enqueueChange']=_0x5da7ea,_0x52eb13['enableReadOnlyMode']('model');}function _0x3ce1c8(){return _0x433fe4('WebSocketGateway')&&'connected'==_0x128c30('WebSocketGateway')['state'];}function _0x57aa4a(){return _0x433fe4('RevisionViewerIntegration');}function _0x189e58(){return _0x433fe4('TrackChangesDataGetter');}function _0x675ef4(_0x2dc983){const _0x14cb3e=_0x597d34();_0x52eb13[_0x14cb3e]='trackChangesLicenseKey'+_0x2dc983,'Valid'!=_0x2dc983&&_0xb04aac();}function _0x597d34(){const _0x58b2d7=window['String'](window['performance']['now']())['replace']('.','');let _0x1a9b15='R';for(let _0x1a6de2=0x0;_0x1a6de2<_0x58b2d7['length'];_0x1a6de2+=0x2){let _0x55dd3e=window['parseInt'](_0x58b2d7['substring'](_0x1a6de2,_0x1a6de2+0x2));_0x55dd3e>=0x3e&&(_0x55dd3e-=0x3e),_0x1a9b15+=_0x1affa6[_0x55dd3e];}return _0x1a9b15;}function _0x5cec3c(){const _0x3b8507=_0x1f22d3['split']('.');if(0x3!=_0x3b8507['length'])return null;return _0x15f3d1(_0x3b8507[0x1]);function _0x15f3d1(_0x4b4acb){const _0x8d1387=_0x336a39(_0x4b4acb);return _0x8d1387&&_0x152518()?_0x8d1387:null;function _0x152518(){const _0x1640f2=_0x8d1387['jti'],_0x136ec1=window['parseInt'](_0x1640f2['substring'](_0x1640f2['length']-0x8),0x10),_0x166e0c={..._0x8d1387,'jti':_0x1640f2['substring'](0x0,_0x1640f2['length']-0x8)};return delete _0x166e0c['vc'],_0x5197f9(_0x166e0c)==_0x136ec1;}}}async function _0x2f408d(){let _0x31b16c=!0x0;try{const [_0x513efb,_0x3ce530,_0x14689d]=_0x1f22d3['split']('.');return _0x37f317(_0x513efb),await _0x14a6de(_0x513efb,_0x3ce530,_0x14689d),_0x31b16c;}catch{return!0x1;}function _0x37f317(_0xc5404e){const _0x5bf03b=_0x336a39(_0xc5404e);_0x5bf03b&&'ES256'==_0x5bf03b['alg']||(_0x31b16c=!0x1);}async function _0x14a6de(_0x35299f,_0x394ae6,_0x251a2e){const _0x31a5d8=window['Uint8Array']['from'](_0x3c2227(_0x251a2e),_0x29536c=>_0x29536c['charCodeAt'](0x0)),_0x46959b=new window['TextEncoder']()['encode'](_0x35299f+'.'+_0x394ae6),_0x2cbc1c=window['crypto']['subtle'];if(!_0x2cbc1c)return;const _0x466c98=await _0x2cbc1c['importKey']('jwk',_0x2887b7,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2cbc1c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x466c98,_0x31a5d8,_0x46959b)||(_0x31b16c=!0x1);}}function _0x336a39(_0xdb0a0){return _0xdb0a0['startsWith']('ey')?JSON['parse'](_0x3c2227(_0xdb0a0)):null;}function _0x3c2227(_0x24303b){return window['atob'](_0x24303b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5197f9(_0x43742c){let _0x5981f1=0x1505;function _0x26e973(_0x32599e){for(let _0x3cadbd=0x0;_0x3cadbd<_0x32599e['length'];_0x3cadbd++){const _0xde1d7c=_0x32599e['charCodeAt'](_0x3cadbd);_0x5981f1=(_0x5981f1<<0x5)+_0x5981f1+_0xde1d7c,_0x5981f1&=_0x5981f1;}}function _0x20b1f7(_0x196782){Array['isArray'](_0x196782)?_0x196782['forEach'](_0x20b1f7):_0x196782&&'object'==typeof _0x196782?Object['entries'](_0x196782)['sort']()['forEach'](([_0x36e858,_0x1a3c95])=>{_0x26e973(_0x36e858),_0x20b1f7(_0x1a3c95);}):_0x26e973(window['String'](_0x196782));}return _0x20b1f7(_0x43742c),_0x5981f1>>>0x0;}function _0x506abb(_0x34cf27){return _0x34cf27['toString'](0x10)['padStart'](0x8,'0');}function _0x7c1c7b(_0x2f0737){return _0x2f0737['split']('')['reverse']()['join']('');}function _0x433fe4(_0x491d2a){return _0x52eb13['plugins']['has'](_0x491d2a);}function _0x128c30(_0x201da0){return _0x52eb13['plugins']['get'](_0x201da0);}function _0x5da7ea(){}_0x675ef4(await _0x40f3ff());}(this);}set['adapter'](_0x1598de){if(this['_adapter'])throw new _0x403c95('track-changes-adapter-already-set',this);this['_adapter']=_0x1598de;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x520304=!0x1,toJSON:_0x307545=!0x1}={}){const _0x46d7d8=[];for(const _0x337925 of this['_suggestions']['values']())_0x520304&&!_0x337925['isInContent']||_0x46d7d8['push'](_0x337925);return _0x307545?_0x46d7d8['map'](_0x4cebe6=>_0x4cebe6['toJSON']()):_0x46d7d8;}['getSuggestion'](_0x4db47b){const _0x59b9ad=this['_suggestions']['get'](_0x4db47b);if(!_0x59b9ad)throw new _0x403c95('track-changes-suggestion-not-found',this);return _0x59b9ad;}['hasSuggestion'](_0xf371c4){return this['_suggestions']['has'](_0xf371c4);}['addSuggestionData'](_0x191f76){const {authorId:_0x218252,id:_0x2f2c4e,originalSuggestionId:_0x17197d,attributes:_0x3c820c}=_0x191f76,[_0x455de1,_0x19db3f]=_0x191f76['type']['split'](':'),_0x2f0324=this['_suggestions']['get'](_0x2f2c4e)||this['_createSuggestion'](_0x455de1,_0x19db3f,_0x2f2c4e,_0x218252,_0x3c820c,_0x17197d);if(this['_addThreadToSuggestion'](_0x2f0324),this['_checkSuggestionCorrectness'](_0x2f0324,_0x455de1,_0x19db3f||null,_0x218252),_0x2f0324['createdAt']=_0x191f76['createdAt'],_0x2f0324['_isDataLoaded']=!0x0,_0x3c820c&&_0x3c820c['@external']){const _0x3ee9be=_0x3c820c['@external'],_0xd99f42=this['_getExternalAuthor'](_0x3ee9be['authorName']);_0x2f0324['authoredAt']=_0x3ee9be['createdAt'],_0x2f0324['author']=_0xd99f42;}else _0x2f0324['authoredAt']=_0x191f76['createdAt'];switch(_0x191f76['data']&&(_0x2f0324['data']=_0x191f76['data']),_0x191f76['attributes']&&(_0x2f0324['attributes']=_0x191f76['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2f0324['_saved']=!0x0),this['_suggestionState']['get'](_0x2f0324)){case'notReady':this['_suggestionState']['set'](_0x2f0324,'dataReady');break;case'markerReady':_0x2f0324['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2f0324])),this['_refreshSuggestionsChain'](new Set([_0x2f0324])),this['_suggestionState']['set'](_0x2f0324,'ready'),this['fire']('suggestionLoaded',_0x2f0324)):this['_suggestionState']['set'](_0x2f0324,'removed');}return _0x2f0324;}['acceptSuggestion'](_0x2c38a9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5844ae of _0x2c38a9['getAllAdjacentSuggestions']())_0x5844ae['accept']();});});}['discardSuggestion'](_0x4b979f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2297e8 of _0x4b979f['getAllAdjacentSuggestions']())_0x2297e8['discard']();});});}['enableCommand'](_0x3a15df,_0x29ec33){const _0x35ca9b=this['editor']['commands']['get'](_0x3a15df);if(!_0x35ca9b)throw new _0x403c95('track-changes-command-not-found',this,{'commandName':_0x3a15df});if(this['_enabledCommands']['has'](_0x35ca9b))throw new _0x403c95('track-changes-enable-command-twice',this,{'commandName':_0x3a15df});this['_enabledCommands']['add'](_0x35ca9b),_0x29ec33&&_0x35ca9b['on']('execute',(_0xc0505c,_0x196992)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x196992['length']>0x0&&_0x196992[_0x196992['length']-0x1]&&_0x196992[_0x196992['length']-0x1]['forceDefaultExecution']?_0x196992['pop']():(_0xc0505c['return']=_0x29ec33((..._0x432c9c)=>_0x35ca9b['execute'](..._0x432c9c,{'forceDefaultExecution':!0x0}),..._0x196992),_0xc0505c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5cbf15){let _0x5e7f35,_0x46d6c1;const _0x1f2299=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e7f35=_0x5cbf15();}catch(_0x11088d){_0x46d6c1=_0x11088d;}return _0x1f2299||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x46d6c1&&_0x403c95['rethrowUnexpectedError'](_0x46d6c1,this),_0x5e7f35;}['markInsertion'](_0x102a7c,_0x479453=null,_0x8c9afb={}){if(_0x102a7c['isCollapsed'])return null;const _0x1e42dd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x8c9afb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2106db,meta:_0x5a0902}of this['_findSuggestions'](_0x102a7c,'insertion'))if(_0x5a0902['isOwn']){if(!_0x5a0902['isNextTo']){if(_0x5a0902['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x2106db,_0x8c9afb))continue;return _0x2106db;}if(En(_0x2106db,_0x8c9afb))return _0x2106db;this['_breakSuggestionMarker'](_0x2106db,_0x102a7c['start'],_0x102a7c['end']);break;}if(_0x479453==_0x2106db['subType']&&En(_0x2106db,_0x8c9afb)){const _0x2de773=_0x2106db['getFirstRange']();return _0x2de773['start']['isEqual'](_0x102a7c['end'])?this['_setSuggestionRange'](_0x2106db,this['_model']['createRange'](_0x102a7c['start'],_0x2de773['end'])):this['_setSuggestionRange'](_0x2106db,this['_model']['createRange'](_0x2de773['start'],_0x102a7c['end'])),_0x2106db;}}const _0x2f366e=_0x1c0f04(),_0x59923f=_0x1e42dd['id'],_0x3972ae=_0x479453?'insertion:'+_0x479453:'insertion',_0x640920=this['_setSuggestionData']({'id':_0x2f366e,'type':_0x3972ae,'createdAt':new Date(),'authorId':_0x59923f,'attributes':_0x8c9afb});return this['_addSuggestionMarker'](_0x3972ae,_0x2f366e,_0x59923f,_0x102a7c),_0x640920;}['markMultiRangeInsertion'](_0x1333b8,_0x552ea8='multi',_0x15939f={}){const _0x55dc36=this['editor']['plugins']['get']('Users')['me'],_0x2e8631=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x552ea8,'join');this['_trackingSessionId']&&(_0x15939f['trackingSessionId']=this['_trackingSessionId']);for(const _0x3a88ef of this['getSuggestions']())if(_0x3a88ef['author']['id']==_0x55dc36['id']&&'insertion'==_0x3a88ef['type']&&_0x3a88ef['subType']==_0x552ea8&&En(_0x3a88ef,_0x15939f)&&(_0x2e8631(_0x3a88ef['getRanges'](),_0x1333b8)||_0x2e8631(_0x1333b8,_0x3a88ef['getRanges']()))){for(const _0x2a2461 of _0x1333b8)_0x3a88ef['addRange'](_0x2a2461);return _0x3a88ef;}for(const {suggestion:_0x1864a4,meta:_0x22330e}of this['_findSuggestions'](_0x1333b8,'insertion')){if(!_0x22330e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22330e['containsRangeInObject'])continue;if(!En(_0x1864a4,_0x15939f))continue;let _0x2b723d=!0x0;for(const _0x39ca99 of _0x1864a4['getRanges']())for(const _0x65bd2c of _0x1333b8)if(!_0x39ca99['containsRange'](_0x65bd2c)){_0x2b723d=!0x1;break;}if(_0x2b723d)return _0x1864a4;}const _0x186427=_0x1c0f04(),_0x548473=_0x55dc36['id'],_0x434899='insertion:'+_0x552ea8,_0x285630=this['_setSuggestionData']({'id':_0x186427,'type':_0x434899,'createdAt':new Date(),'authorId':_0x548473,'attributes':_0x15939f});for(const _0x333345 of _0x1333b8)this['_addSuggestionMarker'](_0x434899,_0x186427,_0x548473,_0x333345,yt['getMultiRangeId']());return _0x285630;}['markInlineFormat'](_0x1a443c,_0x238948,_0x4a09f0=null,_0x571c60={}){if(_0x4a09f0=_0x4a09f0||cn(_0x238948),_0x1a443c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x571c60['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f91a2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a09f0,'accept');return this['forceDefaultExecution'](()=>_0x1f91a2([_0x1a443c],_0x238948,_0x571c60)),null;}const _0x20dcc7=this['editor']['plugins']['get']('Users')['me'],_0xc9872c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x16cf21,meta:_0x587b31}of this['_findSuggestions'](_0x1a443c,'insertion'))_0x587b31['isOwn']&&!_0x587b31['isInsideObject']&&_0xc9872c['push'](..._0x16cf21['getRanges']());}const _0x297ca6=function(_0x5854fc,_0x3ae1e0){const _0x3fbd0d=[];for(const _0x19dbb5 of _0x3ae1e0){const _0x2cdd1f=_0x5854fc['getIntersection'](_0x19dbb5);_0x2cdd1f&&_0x3fbd0d['push'](_0x2cdd1f);}return _0x3fbd0d;}(_0x1a443c,_0xc9872c),_0x291f32=function(_0x14b6ce,_0x43f33c){const _0x4ac10a=[_0x14b6ce];for(const _0x32d84f of _0x43f33c){let _0x519c0c=0x0;for(;_0x519c0c<_0x4ac10a['length'];){const _0x246665=_0x4ac10a[_0x519c0c]['getDifference'](_0x32d84f);_0x4ac10a['splice'](_0x519c0c,0x1,..._0x246665),_0x519c0c+=_0x246665['length'];}}return _0x4ac10a;}(_0x1a443c,_0xc9872c);_0x297ca6['length']&&this['_model']['change'](()=>{for(const _0x3580b3 of _0x297ca6){const _0x976f12=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a09f0,'accept');this['forceDefaultExecution'](()=>_0x976f12([_0x3580b3],_0x238948,_0x571c60));}});for(const _0x4ee9fc of _0x291f32){let _0x5017fd=null,_0x4c3fef=_0x4ee9fc['start'],_0x411c6e=_0x4ee9fc['end'];for(const {suggestion:_0x16f0ca,meta:_0x1178c3}of this['_findSuggestions'](_0x4ee9fc,'formatInline')){if(!_0x1178c3['isOwn'])continue;if(_0x16f0ca['subType']!=_0x4a09f0)continue;if(!En(_0x16f0ca,_0x571c60))continue;const _0xa0d618=_0x16f0ca['getFirstRange']();if(_0xa0d618['containsRange'](_0x4ee9fc,!0x0))return null;_0x4c3fef=_0x4c3fef['isBefore'](_0xa0d618['start'])?_0x4c3fef:_0xa0d618['start'],_0x411c6e=_0x411c6e['isAfter'](_0xa0d618['end'])?_0x411c6e:_0xa0d618['end'],_0x5017fd?_0xa0d618['start']['isBefore'](_0x5017fd['getFirstRange']()['start'])?(_0x5017fd['removeMarkers'](),_0x5017fd=_0x16f0ca):_0x16f0ca['removeMarkers']():_0x5017fd=_0x16f0ca;}const _0x5a2c4f=this['_model']['createRange'](_0x4c3fef,_0x411c6e);if(_0x5017fd)this['_setSuggestionRange'](_0x5017fd,_0x5a2c4f);else{const _0x151184=_0x1c0f04(),_0x6a0c4d=_0x20dcc7['id'];this['_setSuggestionData']({'id':_0x151184,'type':'formatInline:'+_0x4a09f0,'data':_0x238948,'createdAt':new Date(),'authorId':_0x6a0c4d,'attributes':_0x571c60}),this['_addSuggestionMarker']('formatInline:'+_0x4a09f0,_0x151184,_0x6a0c4d,_0x5a2c4f);}}return null;}['markBlockFormat'](_0x3f1766,_0x5d20ca,_0x40d883=[],_0x4e8e06=null,_0x2e5810={}){_0x5d20ca['formatGroupId']||(_0x5d20ca['formatGroupId']=_0x5d20ca['commandName']),_0x5d20ca['multipleBlocks']=_0x3f1766['is']('range'),_0x4e8e06=_0x4e8e06||cn(_0x5d20ca);const _0x103248=_0x40d883['map'](_0x3099cc=>gn(_0x3099cc,this['_model'])),_0x459b9b=_0x3f1766['is']('range')?_0x3f1766:gn(_0x3f1766,this['_model']);if(this['_trackingSessionId']&&(_0x2e5810['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x506371=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e8e06,'accept');return this['forceDefaultExecution'](()=>_0x506371([_0x459b9b],_0x5d20ca,_0x2e5810)),null;}_0x103248['push'](_0x459b9b);let _0x3b6d84=!0x0;for(const _0x2a6554 of _0x103248)if(!this['_rangeIsInLocalUserInsertion'](_0x2a6554)){_0x3b6d84=!0x1;break;}if(_0x3b6d84&&'always'!==this['_trackFormatChanges']){const _0x25b4b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e8e06,'accept');return this['forceDefaultExecution'](()=>_0x25b4b1([_0x459b9b],_0x5d20ca,_0x2e5810)),null;}let _0x8c2230=null,_0x368147=_0x459b9b['start'],_0x237f8c=_0x459b9b['end'];for(const {suggestion:_0x1322a9,meta:_0x58de73}of this['_findSuggestions'](_0x459b9b,'formatBlock')){if(!_0x58de73['isOwn'])continue;if(_0x58de73['isNextTo']||_0x58de73['containsRangeInObject']||_0x58de73['isInsideObject'])continue;if(_0x1322a9['data']['formatGroupId']!=_0x5d20ca['formatGroupId'])continue;if(!En(_0x1322a9,_0x2e5810))continue;const _0x38cf99=_0x1322a9['getFirstRange']();if(_0x1322a9['subType']==_0x4e8e06){if(_0x38cf99['containsRange'](_0x459b9b,!0x0))return null;_0x368147=_0x368147['isBefore'](_0x38cf99['start'])?_0x368147:_0x38cf99['start'],_0x237f8c=_0x237f8c['isAfter'](_0x38cf99['end'])?_0x237f8c:_0x38cf99['end'],_0x8c2230?_0x38cf99['start']['isBefore'](_0x8c2230['getFirstRange']()['start'])?(_0x8c2230['removeMarkers'](),_0x8c2230=_0x1322a9):_0x1322a9['removeMarkers']():_0x8c2230=_0x1322a9;}else{const _0x4dec52=_0x459b9b['getIntersection'](_0x38cf99);this['_cutOutSuggestionMarker'](_0x1322a9,_0x4dec52);}}const _0x8b6979=this['editor']['plugins']['get']('Users')['me'],_0x4cd470=_0x1c0f04(),_0x193b8f=_0x8b6979['id'];if(_0x8c2230)return this['_setSuggestionRange'](_0x8c2230,this['_model']['createRange'](_0x368147,_0x237f8c)),_0x8c2230;{const _0x479645=this['_setSuggestionData']({'id':_0x4cd470,'type':'formatBlock:'+_0x4e8e06,'data':_0x5d20ca,'createdAt':new Date(),'authorId':_0x193b8f,'attributes':_0x2e5810});return this['_addSuggestionMarker']('formatBlock:'+_0x4e8e06,_0x4cd470,_0x193b8f,this['_model']['createRange'](_0x368147,_0x237f8c)),_0x479645;}}['markMultiRangeBlockFormat'](_0x3c3073,_0x4f1b6e,_0x315925=[],_0x737188=null,_0x1fc5dd={}){_0x4f1b6e['formatGroupId']||(_0x4f1b6e['formatGroupId']=_0x4f1b6e['commandName']);const _0x3f2ed4=_0x3c3073[0x0];_0x4f1b6e['multipleBlocks']=_0x3f2ed4['is']('range'),_0x737188=_0x737188||cn(_0x4f1b6e);const _0x5e6e92=_0x315925['map'](_0xbb042=>gn(_0xbb042,this['_model'])),_0x2c05af=_0x3f2ed4['is']('range')?_0x3c3073:_0x3c3073['map'](_0x18ac50=>gn(_0x18ac50,this['_model']));if(this['_trackingSessionId']&&(_0x1fc5dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28bea9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x737188,'accept');return this['forceDefaultExecution'](()=>_0x28bea9(_0x2c05af,_0x4f1b6e,_0x1fc5dd)),null;}_0x5e6e92['push'](..._0x2c05af);let _0x38791b=!0x0;for(const _0xab2b5e of _0x5e6e92)if(!this['_rangeIsInLocalUserInsertion'](_0xab2b5e)){_0x38791b=!0x1;break;}if(_0x38791b&&'always'!==this['_trackFormatChanges']){const _0x82ce67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x737188,'accept');return this['forceDefaultExecution'](()=>_0x82ce67(_0x2c05af,_0x4f1b6e,_0x1fc5dd)),null;}const _0x46c049=this['editor']['plugins']['get']('Users')['me'];for(const _0x12f772 of this['getSuggestions']()){const _0x39984d=_0x12f772['data'];if(_0x12f772['author']['id']!=_0x46c049['id'])continue;if('formatBlock'!=_0x12f772['type']||_0x39984d['formatGroupId']!=_0x4f1b6e['formatGroupId'])continue;if(!En(_0x12f772,_0x1fc5dd))continue;const _0x25a2b9=_0x12f772['subType']==_0x737188;for(let _0x208225=0x0;_0x208225<_0x2c05af['length'];_0x208225++){const _0x1d1915=_0x2c05af[_0x208225];for(const _0x9e9233 of _0x12f772['getMarkers']()){const _0xcd3195=_0x9e9233['getRange']();if(_0x1d1915['isEqual'](_0xcd3195)){_0x25a2b9?(_0x2c05af['splice'](_0x208225,0x1),_0x208225--):_0x12f772['removeMarker'](_0x9e9233['name']);break;}}}}if(0x0==_0x2c05af['length'])return null;const _0x1ae0af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x737188,'join');for(const _0x3f2dcd of this['getSuggestions']()){const _0x3698e2=_0x3f2dcd['data'];if(_0x3f2dcd['author']['id']==_0x46c049['id']&&('formatBlock'==_0x3f2dcd['type']&&_0x3698e2['formatGroupId']==_0x4f1b6e['formatGroupId']&&_0x3f2dcd['subType']==_0x737188&&En(_0x3f2dcd,_0x1fc5dd)&&(_0x1ae0af(_0x3f2dcd['getRanges'](),_0x2c05af)||_0x1ae0af(_0x2c05af,_0x3f2dcd['getRanges']())))){for(const _0x2470c1 of _0x2c05af)_0x3f2dcd['addRange'](_0x2470c1);return _0x3f2dcd;}}const _0x41fbc8=_0x1c0f04(),_0x47f316=_0x46c049['id'],_0x46b56d='formatBlock:'+_0x737188,_0x4e9d29=this['_setSuggestionData']({'id':_0x41fbc8,'type':_0x46b56d,'data':_0x4f1b6e,'createdAt':new Date(),'authorId':_0x47f316,'attributes':_0x1fc5dd});for(const _0x1ca4f1 of _0x2c05af)this['_addSuggestionMarker'](_0x46b56d,_0x41fbc8,_0x47f316,_0x1ca4f1,yt['getMultiRangeId']());return _0x4e9d29;}['markDeletion'](_0x19fabf,_0x55f6d1=null,_0x5abc2e={}){if(_0x19fabf['isCollapsed'])return null;const _0x70df69=this['editor']['plugins']['get']('Users')['me'],_0x20f92f=new rt(_0x19fabf['start'],_0x19fabf['end']);this['_trackingSessionId']&&(_0x5abc2e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2e1bb3,meta:_0x22b2a4}of this['_findSuggestions'](_0x20f92f,'insertion'))if(_0x22b2a4['isOwn']&&!_0x22b2a4['isNextTo']){if(_0x2e1bb3['isMultiRange']){const _0x1fef09=_0x2e1bb3['getRanges']()['filter'](_0x435658=>'$graveyard'!=_0x435658['root']['rootName']);if(_0x1fef09['every'](_0x13fa6e=>_0x20f92f['containsRange'](_0x13fa6e,!0x0))&&_0x2e1bb3['discard'](),_0x1fef09['some'](_0x6e5ccf=>_0x6e5ccf['containsRange'](_0x20f92f,!0x0))){const _0x404f4a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55f6d1,'accept');return this['forceDefaultExecution'](()=>_0x404f4a([_0x20f92f],null,_0x5abc2e)),null;}}else{const _0x2e53d1=_0x20f92f['getIntersection'](_0x2e1bb3['getFirstRange']());null!==_0x2e53d1&&_0x2e1bb3['_onDiscard']([_0x2e53d1],null,_0x5abc2e);}}if(_0x20f92f['detach'](),_0x20f92f['isCollapsed']||'$graveyard'==_0x20f92f['root']['rootName'])return null;let _0x1841e8=null,_0x110e52=_0x20f92f['start'],_0xbd0ec2=_0x20f92f['end'];const _0x57ce0a=this['_findSuggestions'](_0x20f92f,'deletion');for(const {suggestion:_0x3e8d53,meta:_0x8ca0e0}of _0x57ce0a){const _0x377fcc=this['_model']['createRange'](_0x110e52,_0xbd0ec2);if(_0x8ca0e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8ca0e0['containsRangeInObject']&&!_0x8ca0e0['isInsideObject'])){if(_0x3e8d53['isMultiRange']){if(!En(_0x3e8d53,_0x5abc2e))continue;let _0x3724ab=!0x0;for(const _0x41bdd9 of _0x3e8d53['getRanges']()){if(_0x41bdd9['containsRange'](_0x377fcc,!0x0))return _0x3e8d53;_0x377fcc['containsRange'](_0x41bdd9)||(_0x3724ab=!0x1);}_0x3724ab&&_0x3e8d53['discard']();}else{const _0x57afc7=_0x3e8d53['getFirstRange']();if(_0x57afc7['containsRange'](_0x377fcc,!0x0))return _0x3e8d53;if(!En(_0x3e8d53,_0x5abc2e)){_0x377fcc['containsRange'](_0x57afc7)?_0x3e8d53['removeMarkers']():_0x57afc7['containsPosition'](_0x110e52)?_0x110e52=_0x57afc7['end']:_0x57afc7['containsPosition'](_0xbd0ec2)&&(_0xbd0ec2=_0x57afc7['start']);continue;}_0x110e52=_0x110e52['isBefore'](_0x57afc7['start'])?_0x110e52:_0x57afc7['start'],_0xbd0ec2=_0xbd0ec2['isAfter'](_0x57afc7['end'])?_0xbd0ec2:_0x57afc7['end'],_0x5abc2e=Object['assign']({},_0x3e8d53['attributes']),_0x1841e8?_0x57afc7['start']['isBefore'](_0x1841e8['getFirstRange']()['start'])?(_0x1841e8['removeMarkers'](),_0x1841e8=_0x3e8d53):_0x3e8d53['removeMarkers']():_0x1841e8=_0x3e8d53;}}}if(_0x1841e8)return this['_setSuggestionRange'](_0x1841e8,this['_model']['createRange'](_0x110e52,_0xbd0ec2)),_0x1841e8;{const _0x347a7a=_0x1c0f04(),_0x401c35=this['_model']['createRange'](_0x110e52,_0xbd0ec2),_0x184829=_0x70df69['id'],_0x2f3a83=_0x55f6d1?'deletion:'+_0x55f6d1:'deletion',_0xfe16ea=this['_setSuggestionData']({'id':_0x347a7a,'type':_0x2f3a83,'createdAt':new Date(),'authorId':_0x184829,'attributes':_0x5abc2e});return this['_addSuggestionMarker'](_0x2f3a83,_0x347a7a,_0x184829,_0x401c35),_0xfe16ea;}}['markMultiRangeDeletion'](_0x1b32cb,_0x16f611='multi',_0x45d01f={}){const _0xc3faf8=this['editor']['plugins']['get']('Users')['me'],_0x56a4fa=_0x1b32cb['map'](_0x53fd30=>new rt(_0x53fd30['start'],_0x53fd30['end'])),_0x51bfc5=new Set();this['_trackingSessionId']&&(_0x45d01f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x318c1f,meta:_0x328754}of this['_findSuggestions'](_0x56a4fa,'insertion'))_0x328754['isOwn']&&!_0x328754['isNextTo']&&_0x51bfc5['add'](_0x318c1f);for(const _0x2a77ee of _0x51bfc5)if(_0x2a77ee['isMultiRange']){const _0x344ef5=_0x2a77ee['getRanges']();if(_0x2a77ee['attributes']&&_0x2a77ee['attributes']['skipNestingCheck']||_0x344ef5['every'](_0x4ed5f0=>_0x56a4fa['some'](_0x548a89=>_0x548a89['containsRange'](_0x4ed5f0,!0x0)))&&_0x2a77ee['discard'](),_0x56a4fa['every'](_0x98e185=>_0x344ef5['some'](_0x4841ec=>_0x4841ec['containsRange'](_0x98e185,!0x0)))){const _0x18e968=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f611,'accept');return this['forceDefaultExecution'](()=>_0x18e968(_0x1b32cb,null,_0x45d01f)),null;}}else{const _0x4d4492=_0x2a77ee['getFirstRange']();if(_0x56a4fa['some'](_0x48da18=>_0x48da18['containsRange'](_0x4d4492,!0x0))&&_0x2a77ee['discard'](),_0x56a4fa['every'](_0x16c486=>_0x4d4492['containsRange'](_0x16c486,!0x0))){const _0x21f3d1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f611,'accept');return this['forceDefaultExecution'](()=>_0x21f3d1(_0x56a4fa,null,_0x45d01f)),null;}}const _0x3ef54f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f611,'join');let _0x1322bf=null;for(const _0x53b05a of this['getSuggestions']())if(_0x53b05a['author']['id']==_0xc3faf8['id']&&_0x53b05a['isInContent']&&'deletion'==_0x53b05a['type']&&_0x53b05a['subType']==_0x16f611&&En(_0x53b05a,_0x45d01f)&&(_0x3ef54f(_0x53b05a['getRanges'](),_0x56a4fa)||_0x3ef54f(_0x56a4fa,_0x53b05a['getRanges']()))){if(_0x1322bf){if(_0x53b05a['commentThread']&&_0x53b05a['commentThread']['length'])continue;for(const _0x474522 of _0x53b05a['getRanges']())_0x1322bf['isIntersectingWithRange'](_0x474522)||_0x1322bf['addRange'](_0x474522);_0x53b05a['removeMarkers']();}else{_0x1322bf=_0x53b05a;for(const _0x256dc2 of _0x56a4fa)_0x53b05a['isIntersectingWithRange'](_0x256dc2)||_0x53b05a['addRange'](_0x256dc2);}}if(_0x1322bf)return _0x1322bf;_0x51bfc5['clear']();for(const {suggestion:_0x2096e9,meta:_0x324b2b}of this['_findSuggestions'](_0x56a4fa,'deletion'))_0x324b2b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x324b2b['containsRangeInObject']&&!_0x324b2b['isInsideObject'])&&En(_0x2096e9,_0x45d01f)&&_0x51bfc5['add'](_0x2096e9);for(const _0x2e49ed of _0x51bfc5){const _0x179289=_0x2e49ed['getRanges']();if((!_0x45d01f||!_0x45d01f['skipNestingCheck'])&&_0x56a4fa['every'](_0x37a88e=>_0x179289['some'](_0x4b6880=>_0x4b6880['containsRange'](_0x37a88e,!0x0))))return _0x2e49ed;_0x2e49ed['attributes']&&_0x2e49ed['attributes']['skipNestingCheck']||_0x179289['every'](_0x5ad1c4=>_0x56a4fa['some'](_0x1be422=>_0x1be422['containsRange'](_0x5ad1c4,!0x0)))&&_0x2e49ed['discard']();}const _0x52f1dd=_0x1c0f04(),_0x18016d=_0xc3faf8['id'],_0x265a5f='deletion:'+_0x16f611,_0x4bc5a3=this['_setSuggestionData']({'id':_0x52f1dd,'type':_0x265a5f,'createdAt':new Date(),'authorId':_0x18016d,'attributes':_0x45d01f});for(const _0x2b7467 of _0x56a4fa)_0x2b7467['detach'](),_0x2b7467['isCollapsed']||'$graveyard'==_0x2b7467['root']['rootName']||this['_addSuggestionMarker'](_0x265a5f,_0x52f1dd,_0x18016d,_0x2b7467,yt['getMultiRangeId']());return _0x4bc5a3;}['markAttributeChange'](_0x2afe43,_0x216c5c,_0x45b0bf,_0x2ecb5e,_0x5d175a){if(_0x2afe43['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a05ad=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bfbe4=Array['from'](this['_suggestions']['values']())['filter'](_0x50a7f1=>'attribute'==_0x50a7f1['type']&&_0x50a7f1['data']['key']==_0x216c5c&&_0x50a7f1['isIntersectingWithRange'](_0x2afe43));if(this['_trackingSessionId']&&(_0x5d175a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x256f4f=this['_findSuggestions'](_0x2afe43,'insertion')['filter'](({meta:_0x496ae4})=>_0x496ae4['isOwn']&&!_0x496ae4['isInsideObject']&&!_0x496ae4['isNextTo'])['map'](({suggestion:_0x49f2b2})=>_0x49f2b2);_0x5bfbe4['unshift'](..._0x256f4f);}const _0x1373b5=new Map([[_0x2afe43,_0x45b0bf]]);for(const _0x50fb96 of _0x5bfbe4){const _0x467e5d='attribute'==_0x50fb96['type']?_0x50fb96['data']['oldValue']:void 0x0,_0x5508fc=_0x50fb96['getFirstRange'](),_0x3d9515=Array['from'](_0x1373b5['keys']())['find'](_0x2d18f0=>_0x2d18f0['isIntersecting'](_0x5508fc));if(!_0x3d9515)continue;const _0x354b6c=_0x3d9515['getDifference'](_0x5508fc);this['_suggestionsConversion']['isBlockAttribute'](_0x216c5c)&&'insertion'==_0x50fb96['type']&&0x0!=_0x354b6c['length']||(_0x1373b5['delete'](_0x3d9515),_0x354b6c['forEach'](_0x511125=>{_0x1373b5['set'](_0x511125,_0x45b0bf);}),'insertion'!=_0x50fb96['type']&&_0x467e5d!=_0x2ecb5e&&_0x1373b5['set'](_0x3d9515['getIntersection'](_0x5508fc),_0x467e5d));}const _0x29baaa=[];for(const [_0x926a15,_0x3a4d14]of _0x1373b5){const _0x1b7441=_0x1c0f04(),_0x549776={'key':_0x216c5c,'oldValue':_0x3a4d14,'newValue':_0x2ecb5e};_0x216c5c['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':_0x216c5c});const _0x592eb7=('attribute:'+_0x216c5c+'|'+cn({'newValue':_0x2ecb5e}))['substring'](0x0,0x3c),_0x14457c=this['_setSuggestionData']({'id':_0x1b7441,'type':_0x592eb7,'data':_0x549776,'createdAt':new Date(),'authorId':_0x2a05ad,'attributes':_0x5d175a});_0x29baaa['push'](_0x14457c),this['_addSuggestionMarker'](_0x592eb7,_0x1b7441,_0x2a05ad,_0x926a15);}return _0x29baaa;}['enableDefaultAttributesIntegration'](_0x85089a){this['enableCommand'](_0x85089a,(_0xb6e102,..._0xe05e70)=>{this['recordAttributeChanges'](()=>{_0xb6e102(..._0xe05e70);});});}['startTrackingSession'](_0x2df790){return this['_trackingSessionId']=void 0x0!==_0x2df790?_0x2df790:_0x1c0f04(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2d9368){return'attribute'==_0x2d9368['type']?_n(_0x2d9368['subType']):null;}['_applyOperationsAsSuggestions'](_0x56d612){if(0x0==_0x56d612['length'])return;const _0x6fb452=this['editor'],_0x34092a=_0x6fb452['plugins']['get'](_0xa1008),_0x5bc3c1=[],_0x53fea7=_0xe9fad7=>{const _0x7746b6=_0xe9fad7['_aiSource'];return _0x7746b6?{'@ai':{'type':_0x7746b6}}:{};},_0x53d13f=(_0x4f3d5b,_0x379f88,_0x2f87b3)=>{for(let _0x205061=_0x379f88;_0x205061<_0x4f3d5b['operations']['length'];_0x205061++){const _0x416cdb=_0x4f3d5b['operations'][_0x205061];'marker'===_0x416cdb['type']&&(_0x416cdb['_aiSource']=_0x2f87b3);}};_0x6fb452['model']['change'](_0x184501=>{for(let _0x4a5fdd=0x0;_0x4a5fdd<_0x56d612['length'];_0x4a5fdd++){const _0x5bcc3f=_0x56d612[_0x4a5fdd],_0x356d18=_0x5bcc3f['_aiSource'],_0x20b084=_0x184501['batch']['operations']['length'];if(_0x5bcc3f['baseVersion']=_0x6fb452['model']['document']['version'],_0x5bcc3f['isDocumentOperation']=!0x0,_0x34092a['isMarkedRemoveOperation'](_0x5bcc3f)){const _0x3b5377=_0x1c310a(_0x5bcc3f['newRange'],_0x6fb452['model']);_0x5bc3c1['unshift']({'range':rt['fromRange'](_0x3b5377),'opAttributes':_0x53fea7(_0x5bcc3f),'aiSource':_0x356d18});}else{switch(_0x5bcc3f['type']){case'rename':{const _0x3126cb=_0x5bcc3f['oldName'],_0x5322d3=_0x5bcc3f['newName'];if(_0x3126cb==_0x5322d3)break;_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);const _0x1b60f8='$elementName',_0xf2c4af=_0x5bcc3f['position'],_0x1a9839=_0x6fb452['model']['createRange'](_0xf2c4af,_0x6fb452['model']['createPositionAt'](_0xf2c4af['nodeAfter'],'end'));this['markAttributeChange'](_0x1a9839,_0x1b60f8,_0x3126cb,_0x5322d3,{..._0x53fea7(_0x5bcc3f),'groupId':_0x1c0f04()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xea32a2=_0x5bcc3f['oldValue'],_0x59f1ac=_0x5bcc3f['newValue'];if(_0xea32a2==_0x59f1ac)break;_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);const _0x198f60=_0x5bcc3f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x198f60))break;const _0x3d1d65=_0x1c310a(_0x5bcc3f['range'],_0x6fb452['model']);this['markAttributeChange'](_0x3d1d65,_0x198f60,_0xea32a2,_0x59f1ac,{..._0x53fea7(_0x5bcc3f),'groupId':_0x1c0f04()});break;}case'insert':{if(_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f),_0x56d612[_0x4a5fdd+0x1]&&'move'==_0x56d612[_0x4a5fdd+0x1]['type'])break;const _0x43fc93=_0x5bcc3f['position'],_0x15a18a=_0x5bcc3f['howMany'],_0x571846=_0x1c310a(_0x6fb452['model']['createRange'](_0x43fc93,_0x43fc93['getShiftedBy'](_0x15a18a)),_0x6fb452['model']);this['markInsertion'](_0x571846,null,{..._0x53fea7(_0x5bcc3f)});break;}case'split':{_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);const _0xa6838f=_0x5bcc3f['splitPosition'],_0x17e4eb=_0x5bcc3f['moveTargetPosition'],_0x4aafaa=_0x6fb452['model']['createRange'](_0xa6838f,_0x17e4eb);this['markInsertion'](_0x4aafaa,null,{..._0x53fea7(_0x5bcc3f)});break;}case'move':case'remove':_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);}_0x356d18&&_0x53d13f(_0x184501['batch'],_0x20b084,_0x356d18);}}for(const {range:_0x1f23fe,opAttributes:_0x1b1594,aiSource:_0x39c0f9}of _0x5bc3c1){const _0x38a02d=_0x184501['batch']['operations']['length'];_0x1f23fe['detach'](),this['markDeletion'](_0x1f23fe,null,{..._0x1b1594}),_0x39c0f9&&_0x53d13f(_0x184501['batch'],_0x38a02d,_0x39c0f9);}});}['_setSuggestionRange'](_0x399d71,_0x6cdb0f){const _0x2bd1ea=_0x399d71['getFirstMarker']();this['_model']['change'](_0x2b5280=>{_0x2b5280['updateMarker'](_0x2bd1ea,{'range':_0x6cdb0f});});}['_addThreadToSuggestion'](_0x51a057){const _0x29ce36=_0x51a057['id'],_0x10ebf3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x29ce36)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10ebf3,'threadId':_0x29ce36,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c6290=this['_commentsRepository']['getCommentThread'](_0x29ce36);_0x5c6290['unbind']('isRemovable'),_0x5c6290['isRemovable']=!0x1,_0x51a057['commentThread']=_0x5c6290;}['_checkSuggestionCorrectness'](_0xf7150c,_0x44da4c,_0x17208f,_0x3b1f77){if(_0xf7150c['type']!=_0x44da4c||_0xf7150c['subType']!=_0x17208f||_0xf7150c['creator']['id']!=_0x3b1f77)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x403c95('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5393b1,_0x486c90){const _0x13eb82=_0x5393b1['getFirstRange']();if(_0x486c90['isEqual'](_0x13eb82))_0x5393b1['removeMarkers']();else{if(_0x13eb82['containsRange'](_0x486c90)){const _0x50104e=this['_model']['createPositionAt'](_0x486c90['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5393b1,this['_model']['createRange'](_0x13eb82['start'],_0x50104e));const _0x5c302f=_0x1c0f04(),_0x91626c=_0x5393b1['creator']['id'],_0xd3a420=_0x5393b1['type']+':'+_0x5393b1['subType'];this['_setSuggestionData']({'id':_0x5c302f,'type':_0xd3a420,'createdAt':new Date(),'authorId':_0x91626c,'data':_0x5393b1['data'],'attributes':_0x5393b1['attributes']});const _0x1bb19b=this['_model']['createPositionAt'](_0x486c90['end']['parent'],'after'),_0x5bb7b7=this['_model']['createRange'](_0x1bb19b,_0x13eb82['end']);this['_addSuggestionMarker'](_0xd3a420,_0x5c302f,_0x91626c,_0x5bb7b7);}else{if(_0x13eb82['containsPosition'](_0x486c90['start'])){const _0x16c4c0=this['_model']['createPositionAt'](_0x486c90['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5393b1,this['_model']['createRange'](_0x13eb82['start'],_0x16c4c0));}else{const _0x15c43c=this['_model']['createPositionAt'](_0x486c90['end']['parent'],'after');this['_setSuggestionRange'](_0x5393b1,this['_model']['createRange'](_0x15c43c,_0x13eb82['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x417a7b){for(const {suggestion:_0x372f6f,meta:_0x5c00d1}of this['_findSuggestions'](_0x417a7b,'insertion')){if(!_0x5c00d1['isOwn'])continue;const _0x4f6a2e=_0x372f6f['getRanges']();for(const _0x38835c of _0x4f6a2e)if(!_0x417a7b['getDifference'](_0x38835c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f6655){return this['editor']['plugins']['get']('Users')['getUser'](_0x4f6655);}['_getExternalAuthor'](_0x536dbb){const _0x591dd6=this['editor']['plugins']['get']('Users'),_0x44f5df=_0x328459('external:'+_0x536dbb),_0x24e765=_0x591dd6['getUser'](_0x44f5df);return _0x24e765||_0x591dd6['addUser']({'id':_0x44f5df,'name':_0x536dbb});}['_createSuggestion'](_0x2a9d1b,_0xab2b96,_0x325df5,_0x2deff2,_0x7e5fc7,_0x31a745){const _0x3e2b67=this['_getAuthorFromId'](_0x2deff2);if(!_0x3e2b67)throw new _0x403c95('track-changes-user-not-found',this,{'authorId':_0x2deff2,'suggestionId':_0x325df5});const _0x2adc90=this['_suggestionFactory']['buildSuggestion'](_0x2a9d1b,_0xab2b96,_0x325df5,_0x3e2b67,_0x7e5fc7,_0x3333d9=>{this['_updateSuggestionData'](_0x325df5,{'attributes':_0x3333d9});const _0x1864c4=this['getSuggestion'](_0x325df5);this['_joinWithAdjacentSuggestions'](new Set([_0x1864c4])),this['_refreshSuggestionsChain'](new Set([_0x1864c4]));},_0x31a745);return this['listenTo'](_0x2adc90,'accept',()=>{this['_updateSuggestionData'](_0x325df5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2adc90,'discard',()=>{this['_updateSuggestionData'](_0x325df5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x325df5,_0x2adc90),this['_suggestionState']['set'](_0x2adc90,'notReady'),_0x2adc90;}['_breakSuggestionMarker'](_0x509546,_0x37c373,_0x75f50b){const _0x4dbea7=_0x509546['getFirstRange'](),_0x3d0906=_0x4dbea7['start'],_0x29629b=_0x4dbea7['end'];this['_setSuggestionRange'](_0x509546,this['_model']['createRange'](_0x3d0906,_0x37c373));const _0x5485b6=_0x1c0f04(),_0x37917a=_0x509546['creator']['id'],_0x439b63=_0x509546['type']+(_0x509546['subType']?':'+_0x509546['subType']:'');this['_setSuggestionData']({'id':_0x5485b6,'type':_0x439b63,'createdAt':new Date(),'authorId':_0x37917a,'originalSuggestionId':_0x509546['_originalSuggestionId']||_0x509546['id'],'attributes':_0x509546['attributes'],'data':_0x509546['data']});const _0x28644d=this['_getAttributeKey'](_0x509546);('formatBlock'==_0x509546['type']||_0x28644d&&this['_suggestionsConversion']['isBlockAttribute'](_0x28644d))&&(_0x75f50b=this['_model']['createPositionBefore'](_0x75f50b['parent'])),this['_addSuggestionMarker'](_0x439b63,_0x5485b6,_0x37917a,this['_model']['createRange'](_0x75f50b,_0x29629b));}['_findSuggestions'](_0x1c7147,_0x37b792=null){const _0x1e0e5b=[],_0x5727d5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1c7147)||(_0x1c7147=[_0x1c7147]);for(const _0x4499f7 of this['getSuggestions']()){if(!_0x4499f7['isInContent'])continue;if(_0x37b792&&_0x4499f7['type']!=_0x37b792)continue;let _0x3eda05=!0x1;for(const _0x5d3cc4 of _0x4499f7['getRanges']()){for(const _0x421daa of _0x1c7147){const _0x5299ff=_0x421daa['start']['isEqual'](_0x5d3cc4['end'])||_0x421daa['end']['isEqual'](_0x5d3cc4['start']);if(_0x5299ff||_0x421daa['getIntersection'](_0x5d3cc4)){const _0x41cd1c=_0x421daa['containsRange'](_0x5d3cc4)&&rn(this['_model']['schema'],_0x5d3cc4['start'],_0x421daa),_0xd64b0d=_0x5d3cc4['containsRange'](_0x421daa)&&rn(this['_model']['schema'],_0x421daa['start'],_0x5d3cc4);_0x1e0e5b['push']({'suggestion':_0x4499f7,'meta':{'isOwn':_0x5727d5==_0x4499f7['author'],'isNextTo':_0x5299ff,'isInsideObject':_0x41cd1c,'containsRangeInObject':_0xd64b0d}}),_0x3eda05=!0x0;break;}}if(_0x3eda05)break;}}return _0x1e0e5b;}['_addSuggestionMarker'](_0x4c23f4,_0x33f106,_0x30ede1,_0x4ad732,_0x54a024){this['_model']['change'](_0x49dfd3=>{let _0x24d359='suggestion:'+_0x4c23f4+':'+_0x33f106+':'+_0x30ede1;_0x54a024&&(_0x24d359=_0x24d359+':'+_0x54a024),_0x49dfd3['addMarker'](_0x24d359,{'range':_0x4ad732,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc00dc2){const _0x51f656=_0xc00dc2['previous'],_0x42eff0=_0xc00dc2['next'];_0xc00dc2['previous']=null,_0xc00dc2['next']=null,null!=_0x51f656&&_0x51f656['next']==_0xc00dc2&&(_0x51f656['next']=_0x42eff0),null!=_0x42eff0&&_0x42eff0['previous']==_0xc00dc2&&(_0x42eff0['previous']=_0x51f656),'ready'==this['_suggestionState']['get'](_0xc00dc2)&&(this['_suggestionState']['set'](_0xc00dc2,'removed'),this['fire']('suggestionUnloaded',_0xc00dc2,_0x51f656,_0x42eff0));}['_setSuggestionData'](_0x567998){const _0x5c3b67=_0x567998['id'],_0x25d07b=this['addSuggestionData'](_0x567998);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x55e7ab=this['editor']['plugins']['get']('PendingActions'),_0x4bf7f6=_0x25d07b['hasComments'],_0x327f32=_0x25d07b['subType']?_0x25d07b['type']+':'+_0x25d07b['subType']:_0x25d07b['type'],_0x2a3894=this['editor']['locale'],_0xfbc700=_0x55e7ab['add'](St(_0x2a3894,'PENDING_ACTION_SUGGESTION')),_0x49b65c={'id':_0x5c3b67,'type':_0x327f32,'hasComments':_0x4bf7f6,'data':_0x567998['data']||null,'originalSuggestionId':_0x567998['originalSuggestionId']||null,'attributes':_0x25d07b['attributes']};this['_adapter']['addSuggestion'](_0x49b65c)['then'](_0x344209=>{_0x25d07b['_saved']=!0x0,_0x55e7ab['remove'](_0xfbc700),_0x344209&&_0x344209['createdAt']&&(this['_suggestions']['get'](_0x5c3b67)['createdAt']=_0x344209['createdAt']);})['catch'](_0x4cd6d5=>{throw _0x5338e2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25d07b['discard']();}),_0x25d07b['stopListening'](),this['_suggestions']['delete'](_0x25d07b['id']),this['_suggestionState']['delete'](_0x25d07b),_0x4cd6d5;});}return _0x25d07b;}['_updateSuggestionData'](_0x449182,_0x23e1a6){const _0x204db6=this['editor']['plugins']['get']('PendingActions'),_0x3367e4=this['getSuggestion'](_0x449182);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3367e4['_saved']){const _0x4c745f=_0x204db6['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x449182,_0x23e1a6)['then'](()=>{_0x204db6['remove'](_0x4c745f);});}else _0x3367e4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x449182,_0x23e1a6);});}}['_getSuggestionData'](_0x1b8cc3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x403c95('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b8cc3);}['_handleNewSuggestionMarker'](_0xd5c6d3){const {id:_0x234055,type:_0x3997f2,subType:_0x5b27db,authorId:_0x446de4}=tt(_0xd5c6d3),_0x24dc1b=this['_suggestions']['get'](_0x234055)||this['_createSuggestion'](_0x3997f2,_0x5b27db,_0x234055,_0x446de4,{});switch(this['_checkSuggestionCorrectness'](_0x24dc1b,_0x3997f2,_0x5b27db,_0x446de4),this['_suggestionState']['get'](_0x24dc1b)){case'notReady':this['_getSuggestionData'](_0x234055)['then'](_0x3c1f2d=>{let _0x9f3728=Promise['resolve']();_0x3c1f2d['hasComments']&&(_0x9f3728=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x234055})),_0x9f3728['then'](()=>{this['addSuggestionData'](_0x3c1f2d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x24dc1b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x234055,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x24dc1b,'ready'),this['fire']('suggestionLoaded',_0x24dc1b);break;case'ready':this['fire']('suggestionChanged',_0x24dc1b);}return _0x24dc1b['addMarkerName'](_0xd5c6d3),_0x24dc1b;}['_refreshSuggestionsChain'](_0x1ab014){const _0x5ab58c=Array['from'](_0x1ab014),_0x21a68b=_0x5ab58c['filter'](_0x2f1e6e=>'attribute'==_0x2f1e6e['type']);this['_refreshAttributeSuggestionsChain'](_0x21a68b);const _0x42366d=_0x5ab58c['filter'](_0x3cff78=>!_0x3cff78['isMultiRange']&&'attribute'!=_0x3cff78['type']),_0x59e352=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x563947=>!_0x563947['isMultiRange']&&'attribute'!=_0x563947['type']),_0x579dc7=_0x59e352['filter'](_0x2bb6e3=>!_0x1ab014['has'](_0x2bb6e3)),_0x1a6d6b=new Map(_0x59e352['map'](_0x4f44ee=>[_0x4f44ee,this['_suggestionFactory']['getSuggestionCallback'](_0x4f44ee['type'],_0x4f44ee['subType'],'chain')])),_0x174941=new Map(_0x59e352['map'](_0x2992ca=>[_0x2992ca,_0x2992ca['getFirstRange']()])),_0x5c04b4=new Set(),_0x29de83=new Set();for(let _0x493dc3=0x0;_0x493dc3<_0x42366d['length'];_0x493dc3++)_0x4ce996(_0x42366d[_0x493dc3],_0x42366d,_0x493dc3+0x1);for(let _0xddc9c5=0x0;_0xddc9c5<_0x42366d['length'];_0xddc9c5++)_0x4ce996(_0x42366d[_0xddc9c5],_0x579dc7,0x0);const _0x50d8a8=new Set();for(let _0x1613ca=0x0;_0x1613ca<_0x42366d['length'];_0x1613ca++){const _0xfd4729=_0x42366d[_0x1613ca];!_0x29de83['has'](_0xfd4729)&&_0xfd4729['previous']&&(_0x50d8a8['add'](_0xfd4729['previous']),_0xfd4729['previous']['next']===_0xfd4729&&(_0xfd4729['previous']['next']=null),_0xfd4729['previous']=null),!_0x5c04b4['has'](_0xfd4729)&&_0xfd4729['next']&&(_0x50d8a8['add'](_0xfd4729['next']),_0xfd4729['next']['previous']===_0xfd4729&&(_0xfd4729['next']['previous']=null),_0xfd4729['next']=null);}function _0x4ce996(_0x11f2e3,_0x5b651b,_0x5a34cb){for(let _0x5eedf1=_0x5a34cb;_0x5eedf1<_0x5b651b['length'];_0x5eedf1++){const _0x26adb0=_0x3bbe3b(_0x11f2e3,_0x5b651b[_0x5eedf1]);_0x26adb0&&(_0x26adb0[0x0]['next']=_0x26adb0[0x1],_0x26adb0[0x1]['previous']=_0x26adb0[0x0],_0x5c04b4['add'](_0x26adb0[0x0]),_0x29de83['add'](_0x26adb0[0x1]));}}function _0x3bbe3b(_0x45d68c,_0x454c8e){if(_0x45d68c['author']['id']!==_0x454c8e['author']['id'])return null;const _0x4fa765=_0x1a6d6b['get'](_0x45d68c)(_0x45d68c,_0x454c8e,_0x174941['get'](_0x45d68c),_0x174941['get'](_0x454c8e));return _0x4fa765&&_0x1a6d6b['get'](_0x454c8e)(_0x45d68c,_0x454c8e,_0x174941['get'](_0x45d68c),_0x174941['get'](_0x454c8e))?_0x4fa765[0x1]['commentThread']&&_0x4fa765[0x1]['commentThread']['length']?null:_0x4fa765:null;}_0x50d8a8['size']&&this['_refreshSuggestionsChain'](_0x50d8a8);}['_refreshAttributeSuggestionsChain'](_0x26847f){if(0x0==_0x26847f['length'])return;const _0x124556=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34440b=>'attribute'==_0x34440b['type']&&_0x34440b['_isDataLoaded']),_0x2bdfb4=[],_0x22aca8=new Map();for(const _0x26e1af of _0x124556){const _0x5b93a7=_0x328459(_0x26e1af['attributes']);_0x22aca8['has'](_0x5b93a7)||(_0x22aca8['set'](_0x5b93a7,_0x2bdfb4['length']),_0x2bdfb4['push']([])),_0x2bdfb4[_0x22aca8['get'](_0x5b93a7)]['push'](_0x26e1af);}!(function(){_0x2bdfb4['sort']((_0x2559a1,_0x3f5784)=>{const _0x40b324=_0x2559a1[0x0]['createdAt'],_0x2d4fc2=_0x3f5784[0x0]['createdAt'];return _0x40b324==_0x2d4fc2?_0x2559a1[0x0]['attributes']['groupId']<_0x3f5784[0x0]['attributes']['groupId']?-0x1:0x1:_0x40b324<_0x2d4fc2?-0x1:0x1;});for(const _0x3a1cae of _0x2bdfb4)_0x3a1cae['sort']((_0x4b1c8c,_0x2fec59)=>_0x4b1c8c['id']<_0x2fec59['id']?-0x1:0x1);}());for(let _0x67a2d0=0x0;_0x67a2d0<_0x2bdfb4['length'];_0x67a2d0++){if(0x0==_0x2bdfb4[_0x67a2d0]['length'])continue;const _0xb2dc66=[];for(let _0x5531a4=_0x67a2d0+0x1;_0x5531a4<_0x2bdfb4['length'];_0x5531a4++)0x0!=_0x2bdfb4[_0x5531a4]['length']&&_0xe5a80b(_0x2bdfb4[_0x67a2d0],_0x2bdfb4[_0x5531a4])&&_0xb2dc66['push'](_0x5531a4);for(const _0x51010b of _0xb2dc66)_0x2bdfb4[_0x67a2d0]=_0x2bdfb4[_0x67a2d0]['concat'](_0x2bdfb4[_0x51010b]),_0x2bdfb4[_0x51010b]=[];}for(const _0x377c13 of _0x2bdfb4)for(let _0x7cd436=0x0;_0x7cd436<_0x377c13['length'];_0x7cd436++){const _0x1b2405=_0x377c13[_0x7cd436+0x1]||null;_0x377c13[_0x7cd436]['next']!==_0x1b2405&&(_0x377c13[_0x7cd436]['next']=_0x1b2405);}for(const _0x24eb6e of _0x2bdfb4)for(let _0x5bd7e2=0x0;_0x5bd7e2<_0x24eb6e['length'];_0x5bd7e2++){const _0x25a5b3=_0x24eb6e[_0x5bd7e2-0x1]||null;_0x24eb6e[_0x5bd7e2]['previous']!==_0x25a5b3&&(_0x24eb6e[_0x5bd7e2]['previous']=_0x25a5b3);}function _0xe5a80b(_0xd7bf35,_0x152a77){return(_0xd7bf35[0x0]['attributes']['groupId']===_0x152a77[0x0]['attributes']['groupId']||_0xd7bf35[0x0]['author']===_0x152a77[0x0]['author'])&&(!!function(_0x28f422,_0x20cc90){return!_0x28f422['hasComments']&&!_0x20cc90['hasComments']||(!_0x28f422['hasComments']||!_0x20cc90['hasComments'])&&(!!(_0x28f422['hasComments']&&_0x20cc90['createdAt']<_0x28f422['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x20cc90['hasComments']&&_0x28f422['createdAt']<_0x20cc90['commentThread']['comments']['get'](0x0)['createdAt']));}(_0xd7bf35[0x0],_0x152a77[0x0])&&(!!ct(lt(_0xd7bf35[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x152a77[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0xd7bf35[0x0]['attributes']['groupId']==_0x152a77[0x0]['attributes']['groupId']||_0xd7bf35[0x0]['attributes']['trackingSessionId']===_0x152a77[0x0]['attributes']['trackingSessionId']&&(!!_0xd7bf35['every'](_0x49e5f6=>_0x152a77['some'](_0x2eb526=>_0x49e5f6['getFirstRange']()['isEqual'](_0x2eb526['getFirstRange']())))&&_0x152a77['every'](_0x1b9c48=>_0xd7bf35['some'](_0xf37d78=>_0x1b9c48['getFirstRange']()['isEqual'](_0xf37d78['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x85cf78){const _0xae6593=Array['from'](_0x85cf78),_0x1a55ad=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4e0074=_0x1a55ad['filter'](_0x3d1719=>!_0x85cf78['has'](_0x3d1719)),_0x33059f=new Map(_0xae6593['map'](_0xed0e75=>[_0xed0e75,this['_suggestionFactory']['getSuggestionCallback'](_0xed0e75['type'],_0xed0e75['subType'],'join')])),_0x750c93=new Map(_0x1a55ad['map'](_0x5fa2e1=>[_0x5fa2e1,_0x5fa2e1['getRanges']()]));for(let _0x17b11e=0x0;_0x17b11e<_0xae6593['length'];_0x17b11e++)if(_0x908ec4(this,_0xae6593[_0x17b11e],_0xae6593,_0x17b11e+0x1))return!0x0;for(let _0x1ef4aa=0x0;_0x1ef4aa<_0xae6593['length'];_0x1ef4aa++)if(_0x908ec4(this,_0xae6593[_0x1ef4aa],_0x4e0074,0x0))return!0x0;return!0x1;function _0x908ec4(_0x281681,_0x5268c0,_0xf5278d,_0x2016a5){for(let _0x1dca12=_0x2016a5;_0x1dca12<_0xf5278d['length'];_0x1dca12++){const _0x5c74e1=_0xf5278d[_0x1dca12];if(_0x5c74e1['type']!==_0x5268c0['type']||_0x5c74e1['author']['id']!==_0x5268c0['author']['id']||_0x5c74e1['subType']!==_0x5268c0['subType'])continue;if(!mn(_0x5268c0,_0x5c74e1))continue;if('attribute'==_0x5268c0['type']&&_0x5268c0['data']['oldValue']!=_0x5c74e1['data']['oldValue'])continue;if('attribute'==_0x5268c0['type']&&_0x281681['_suggestionsConversion']['isBlockAttribute'](_0x5268c0['data']['key']))continue;if('formatBlock'==_0x5268c0['type']){const _0x58088c=_0x281681['editor']['model'],_0x1d0674=_0x5268c0['getContainedElement']();if(_0x1d0674&&(_0x58088c['schema']['isObject'](_0x1d0674)||_0x58088c['schema']['isLimit'](_0x1d0674)))continue;}const _0x3adf60=_0x33059f['get'](_0x5268c0),_0x2b6860=_0x750c93['get'](_0x5268c0),_0x9c4d3=_0x750c93['get'](_0x5c74e1),_0x488d74=_0x5268c0['commentThread']&&_0x5268c0['commentThread']['length'],_0x2ab9b1=_0x5c74e1['commentThread']&&_0x5c74e1['commentThread']['length'];if(!_0x488d74&&_0x3adf60(_0x9c4d3,_0x2b6860))return _0x281681['_joinSuggestions'](_0x5c74e1,_0x5268c0),_0x750c93['delete'](_0x5268c0),!0x0;if(!_0x2ab9b1&&_0x3adf60(_0x2b6860,_0x9c4d3))return _0x281681['_joinSuggestions'](_0x5268c0,_0x5c74e1),_0x750c93['delete'](_0x5c74e1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x85fba8,_0x74c359){if(_0x85fba8['isMultiRange']){for(const _0x357790 of _0x74c359['getRanges']())_0x85fba8['addRange'](_0x357790);}else{const _0x3e5f04=_0x74c359['getFirstRange']()['end'];this['_setSuggestionRange'](_0x85fba8,this['_model']['createRange'](_0x85fba8['getFirstRange']()['start'],_0x3e5f04));}_0x74c359['removeMarkers']();}['_getMarkerAnnouncementText'](_0x536ca9,_0x764729,_0x20266c){const _0xfddd8b=_0x536ca9['startsWith']('format')||_0x536ca9['startsWith']('attribute')?'FORMATTING':_0x536ca9['toUpperCase']();return St(this['editor']['locale'],_0x764729+'_'+_0xfddd8b+'_SUGGESTION_ANNOUNCEMENT',_0x20266c);}['_initAriaMarkerChangeAnnouncements'](){const _0x44df3c=this['editor'];if(!_0x44df3c['ui'])return;const {ariaLiveAnnouncer:_0x2e61cb}=_0x44df3c['ui'];et(this['_model'],({left:_0xc20629,entered:_0x3201c3})=>{for(const _0x12d9a7 of _0xc20629){const {group:_0xa05efa,type:_0x237637}=tt(_0x12d9a7['name']);if('suggestion'===_0xa05efa){_0x2e61cb['announce'](this['_getMarkerAnnouncementText'](_0x237637,'LEAVE'));break;}}for(const _0x229571 of _0x3201c3){const {group:_0x4a82df,type:_0x491211}=tt(_0x229571['name']);if('suggestion'===_0x4a82df){_0x2e61cb['announce'](this['_getMarkerAnnouncementText'](_0x491211,'ENTER',_0x21d341(_0x210fd5)));break;}}});}['_processAttributeChanges'](_0x58b7e9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x18a99c=this['editor'],_0x3e701d=_0x18a99c['model']['document']['differ']['getChanges']();if(0x0==_0x3e701d['length'])return!0x1;const _0x48122c=[],_0x519684=_0x3e701d['filter'](_0x4a1d4a=>'attribute'==_0x4a1d4a['type']),_0x3eb96e=_0x3e701d['filter'](_0x4a1dd1=>'insert'==_0x4a1dd1['type']&&'$text'!=_0x4a1dd1['name']),_0x4aa290=_0x3e701d['filter'](_0x1d99ba=>'remove'==_0x1d99ba['type']&&'$text'!=_0x1d99ba['name']);for(const _0x226681 of _0x519684)_0x48122c['push']({'key':_0x226681['attributeKey'],'newValue':_0x226681['attributeNewValue'],'oldValue':_0x226681['attributeOldValue'],'range':hn(_0x226681['range'],_0x18a99c['model'])});for(const _0x4b89ca of _0x3eb96e){const _0x46fbfc=_0x4aa290['find'](_0x199eca=>_0x199eca['position']['isEqual'](_0x4b89ca['position']));_0x46fbfc&&_0x48122c['push']({'key':en,'newValue':_0x4b89ca['name'],'oldValue':_0x46fbfc['name'],'range':_0x18a99c['model']['createRangeOn'](_0x4b89ca['position']['nodeAfter'])});}return 0x0!=_0x48122c['length']&&this['_reduceExistingSuggestions'](_0x58b7e9,_0x48122c);}['_processAttributeSuggestions'](_0x12a113){let _0x335176=!0x1;const _0x440f97=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1cea1b=>_0x1cea1b['data']['newRange']&&_0x1cea1b['name']['startsWith']('suggestion:attribute:'));for(const _0x565b1f of _0x440f97){const {subType:_0x310e2a,id:_0x21227d}=tt(_0x565b1f['name']),_0x26281b=_0x310e2a['split']('|')[0x0];for(const _0xe40210 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe40210['id']!=_0x21227d&&'attribute'==_0xe40210['type']&&_0xe40210['data']&&_0xe40210['data']['key']==_0x26281b&&_0xe40210['getFirstRange']()['isIntersecting'](_0x565b1f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe40210,_0x565b1f['data']['newRange'],_0x12a113),_0x335176=!0x0);}return _0x335176;}['recordAttributeChanges'](_0x4786c9){this['_recordAttributeSuggestions']=!0x0,_0x4786c9();}['_reduceExistingSuggestions'](_0x2ecaa1,_0x24c1a1){if(0x0==_0x24c1a1['length'])return!0x1;let _0x5b99e0=!0x1;for(const _0x1c5dee of _0x24c1a1){const _0x415b4d=this['_findSuggestions'](_0x1c5dee['range'],'attribute')['filter'](_0x12e8b4=>!_0x12e8b4['meta']['isNextTo'])['map'](_0x461735=>_0x461735['suggestion']),_0x5bf935=_0x328459({'newValue':_0x1c5dee['newValue']});_0x415b4d['filter'](_0x39f532=>{const [_0x1b2f4f,_0x170bae]=_0x39f532['subType']['split']('|');return _0x1b2f4f==_0x1c5dee['key']&&_0x170bae!=_0x5bf935;})['forEach'](_0x3d81c5=>{this['_reduceSuggestionAttributeRange'](_0x3d81c5,_0x1c5dee['range'],_0x2ecaa1),_0x5b99e0=!0x0;});}return _0x5b99e0;}['_reduceSuggestionAttributeRange'](_0x2700d4,_0xf424d0,_0x5b40b1){const _0x4a7108=_0x2700d4['getFirstRange']()['getDifference'](_0xf424d0);0x0!==_0x4a7108['length']?0x1!==_0x4a7108['length']?this['_breakSuggestionMarker'](_0x2700d4,_0xf424d0['start'],_0xf424d0['end']):this['_setSuggestionRange'](_0x2700d4,_0x4a7108[0x0]):_0x5b40b1['removeMarker'](_0x2700d4['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3febc9){this['_editor']=_0x3febc9,this['_model']=_0x3febc9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc49bbb,_0x5daedd,_0x8e9fb0,_0x40baad,_0x1eae62,_0x1bb3cf,_0x465224){return new yt(this['_model'],{'type':_0xc49bbb,'subType':_0x5daedd,'id':_0x8e9fb0,'originalSuggestionId':_0x465224,'author':_0x40baad,'creator':_0x40baad,'attributes':_0x1eae62,'onAttributesChange':_0x1bb3cf,'onAccept':(..._0x446708)=>this['getSuggestionCallback'](_0xc49bbb,_0x5daedd,'accept')(..._0x446708),'onDiscard':(..._0xcb3fb7)=>this['getSuggestionCallback'](_0xc49bbb,_0x5daedd,'discard')(..._0xcb3fb7)});}['registerCustomCallback'](_0x5b80dd,_0x3d1948,_0x3b5a5b,_0x2de82a){const _0x6ac09a=_0x5b80dd+':'+_0x3d1948+':'+_0x3b5a5b;this['_customCallbacks']['set'](_0x6ac09a,_0x2de82a);}['getSuggestionCallback'](_0x46623d,_0x23ea8e,_0x2cb992){const _0x41bc6c=_0x46623d+':'+_0x23ea8e+':'+_0x2cb992;return this['_customCallbacks']['get'](_0x41bc6c)||this['_defaultCallbacks']['get'](_0x46623d+':'+_0x2cb992);}['_registerDefaultCallbacks'](){const _0x19b7c5=()=>!0x1,_0x2859de=_0x2e55cb=>{_0x2e55cb['sort']((_0x4563f9,_0x2dbf78)=>_0x4563f9['start']['isBefore'](_0x2dbf78['start'])?0x1:-0x1),this['_model']['change'](_0x2fe18b=>{for(const _0x2c32b7 of _0x2e55cb){let _0x2ed4eb;_0x2ed4eb=_0x2c32b7['end']['isAtEnd']&&_0x2c32b7['end']['parent']==_0x2c32b7['start']['nodeAfter']?_0x2fe18b['createSelection'](_0x2c32b7['start']['nodeAfter'],'on'):_0x2fe18b['createSelection'](_0x2c32b7),this['_model']['deleteContent'](_0x2ed4eb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x6022e4=(_0x55ecb2,_0x357c65)=>{_0x357c65&&this['_model']['change'](_0x1d9583=>{const {commandName:_0x41cb95,commandParams:_0x181bff=[]}=_0x357c65,_0x463c06=_0x55ecb2['map'](_0x561f4b=>(on(_0x561f4b)&&(_0x561f4b=this['_model']['createRange'](_0x561f4b['end'])),_0x561f4b))['filter'](_0x14489e=>'$graveyard'!==_0x14489e['root']['rootName']);if(_0x463c06['length']<0x1)return;const _0x448e28=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57f4bb=>rt['fromRange'](_0x57f4bb));_0x1d9583['setSelection'](_0x463c06);for(const _0x1650eb of this['_editor']['commands']['commands']())_0x1650eb['refresh']();_0x181bff['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x41cb95,..._0x181bff);const _0x2b502a=_0x448e28['filter'](_0x4b3f5c=>'$graveyard'!=_0x4b3f5c['root']['rootName']);_0x2b502a['length']>0x0&&_0x1d9583['setSelection'](_0x2b502a);for(const _0x5606e5 of _0x448e28)_0x5606e5['detach']();});},_0x4e9c46=(_0x2a19f7,_0x199781)=>0x1==_0x2a19f7['length']&&0x1==_0x199781['length']&&_0x2a19f7[0x0]['end']['isEqual'](_0x199781[0x0]['start']),_0x51e53c=(_0x40a032,_0x5601cc,_0x45af56,_0x1128d4)=>fn(_0x40a032,_0x5601cc,_0x45af56,_0x1128d4)?[_0x40a032,_0x5601cc]:fn(_0x5601cc,_0x40a032,_0x1128d4,_0x45af56)?[_0x5601cc,_0x40a032]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19b7c5),this['_defaultCallbacks']['set']('insertion:discard',_0x2859de),this['_defaultCallbacks']['set']('insertion:join',_0x4e9c46),this['_defaultCallbacks']['set']('insertion:chain',_0x51e53c),this['_defaultCallbacks']['set']('deletion:accept',_0x2859de),this['_defaultCallbacks']['set']('deletion:discard',_0x19b7c5),this['_defaultCallbacks']['set']('deletion:join',_0x4e9c46),this['_defaultCallbacks']['set']('deletion:chain',_0x51e53c),this['_defaultCallbacks']['set']('formatInline:accept',_0x6022e4),this['_defaultCallbacks']['set']('formatInline:discard',_0x19b7c5),this['_defaultCallbacks']['set']('formatInline:join',_0x4e9c46),this['_defaultCallbacks']['set']('formatInline:chain',_0x19b7c5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x6022e4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19b7c5),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e9c46),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19b7c5),this['_defaultCallbacks']['set']('attribute:accept',_0x19b7c5),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b3c83,_0x272316)=>{if(!_0x272316)return;const _0x1c1852=this['_editor']['plugins']['get'](_0x2962ea);this['_model']['change'](_0xab0e2f=>{if('$elementName'==_0x272316['key'])for(const _0x26fc47 of _0x3b3c83){const _0x49089d=_0x26fc47['start']['nodeAfter'],_0xe91eae=_0x272316['oldValue'];_0xab0e2f['rename'](_0x49089d,_0xe91eae);}else{if(_0x1c1852['isBlockAttribute'](_0x272316['key'])){for(const _0x197ecd of _0x3b3c83)void 0x0!==_0x272316['oldValue']?_0xab0e2f['setAttribute'](_0x272316['key'],_0x272316['oldValue'],_0x197ecd['start']['nodeAfter']):_0xab0e2f['removeAttribute'](_0x272316['key'],_0x197ecd['start']['nodeAfter']);}else{for(const _0x150b45 of _0x3b3c83)_0x272316['oldValue']?_0xab0e2f['setAttribute'](_0x272316['key'],_0x272316['oldValue'],_0x150b45):_0xab0e2f['removeAttribute'](_0x272316['key'],_0x150b45);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e9c46);}};function rn(_0x1e05a5,_0x11ee4e,_0x2683e6){for(const _0x1f51d9 of _0x11ee4e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1f51d9['root']==_0x1f51d9)return!0x1;if(!_0x2683e6['containsItem'](_0x1f51d9))return!0x1;if(_0x1e05a5['isObject'](_0x1f51d9)||_0x1e05a5['isLimit'](_0x1f51d9))return!0x0;}return!0x1;}function on(_0x369984){return _0x369984['end']['parent']==_0x369984['start']['nodeAfter']&&_0x369984['end']['isAtStart'];}function an(_0x37e5c1,_0x4bc92d,_0x4926b1,_0x549917){const _0x522157=_0x29fe69=>!_0x29fe69['item']['is']('$textProxy')&&!_0x549917['isObject'](_0x29fe69['item']),_0x2e01fa=_0x37e5c1['start']['getLastMatchingPosition'](_0x522157),_0xca40b2=_0x37e5c1['end']['getLastMatchingPosition'](_0x522157,{'direction':'backward'});return(!_0x37e5c1['start']['isEqual'](_0x2e01fa)||!_0x37e5c1['end']['isEqual'](_0xca40b2))&&(_0x2e01fa['isBefore'](_0xca40b2)?_0x4926b1['updateMarker'](_0x4bc92d,{'range':_0x4926b1['createRange'](_0x2e01fa,_0xca40b2)}):_0x4926b1['removeMarker'](_0x4bc92d),!0x0);}function cn(_0x21e4ed){return _0x328459(_0x21e4ed);}function ln(_0x3b72ce){const _0x14d40f=_0x3b72ce['start']['nodeAfter'];return _0x14d40f&&_0x14d40f['is']('element');}function un(_0x234359){return on(_0x234359)||function(_0x26c738){return _0x26c738['start']['parent']==_0x26c738['end']['nodeBefore']&&_0x26c738['start']['isAtEnd'];}(_0x234359);}function dn(_0x1c3c85,_0xdf9584){try{const _0x415ae2=_0x1c3c85['getRange']();for(const _0x11f8b4 of _0xdf9584)if(_0x1c3c85!==_0x11f8b4&&_0x415ae2&&_0x415ae2['isIntersecting'](_0x11f8b4['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x54935f,_0x572f8d){return null==_0x54935f['end']['nodeBefore']&&_0x54935f['end']['parent']==_0x54935f['start']['nodeAfter']?gn(_0x54935f['start']['nodeAfter'],_0x572f8d):_0x54935f;}function gn(_0x106998,_0x4d93bf){const _0x39b839=_0x4d93bf['schema']['isObject'](_0x106998)||_0x4d93bf['schema']['isSelectable'](_0x106998);return _0x4d93bf['createRange'](_0x4d93bf['createPositionAt'](_0x106998,'before'),_0x39b839?_0x4d93bf['createPositionAfter'](_0x106998):_0x4d93bf['createPositionAt'](_0x106998,'end'));}function fn(_0x1503b6,_0x237187,_0x14b2b1,_0x53cb90){return!!mn(_0x1503b6,_0x237187)&&_0x14b2b1['end']['isEqual'](_0x53cb90['start']);}function mn(_0x322511,_0x3011f2){if(!_0x322511['_isDataLoaded']||!_0x3011f2['_isDataLoaded'])return!0x1;const _0x268acb=new Set(Object['keys'](_0x322511['attributes'])),_0x2f162d=new Set(Object['keys'](_0x3011f2['attributes']));if(_0x268acb['delete']('groupId'),_0x2f162d['delete']('groupId'),0x0==_0x268acb['size']&&0x0==_0x2f162d['size'])return!0x0;if(_0x268acb['size']!=_0x2f162d['size'])return!0x1;const _0x106063={..._0x322511['attributes']},_0x35169b={..._0x3011f2['attributes']};return delete _0x106063['groupId'],delete _0x35169b['groupId'],JSON['stringify'](_0x106063)==JSON['stringify'](_0x35169b);}function En(_0x43a03a,_0xb144b0){const _0x21f862=Tn(_0x43a03a['attributes']),_0x1f23c5=Tn(_0xb144b0);if(!_0x43a03a['_isDataLoaded'])return!0x1;if(!ct(_0x21f862['@ai'],_0x1f23c5['@ai']))return!0x1;for(const _0x3b179a of Object['keys'](_0x1f23c5))if(!ct(_0x21f862[_0x3b179a],_0x1f23c5[_0x3b179a]))return!0x1;return!0x0;}function Tn(_0x550408){const _0x5de901=Object['assign']({},_0x550408);return delete _0x5de901['skipNestingCheck'],delete _0x5de901['tablePasteChainId'],_0x5de901;}function _n(_0x5e204a){return _0x5e204a['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
26
+ _0x1c6439();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4144b4,_0x6d33c2,_0x38a1f6,_0x1b56c0){super(),this['model']=_0x6d33c2,this['view']=_0x38a1f6,this['commentThreadController']=_0x1b56c0,this['_editor']=_0x4144b4,this['_acceptCommand']=_0x4144b4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4144b4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1e252b,_0x419e39)=>_0x1e252b||_0x419e39),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5f2036=>_0x5f2036&&this['_editor']['model']['canEditAt'](_0x6d33c2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x44d5cc=>_0x44d5cc&&this['_editor']['model']['canEditAt'](_0x6d33c2['getRanges']())),this['_pendingAction']=null,_0x38a1f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38a1f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38a1f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38a1f6,'change:isDirty',()=>{_0x38a1f6['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 _0xfb0fca=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xfb0fca);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x341170{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4cd320,_0x392bbf,_0x493abc,_0xd73a54){super(_0x4cd320),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x453221(_0x4cd320,St(_0x4cd320,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x392bbf['authoredAt']),this['bind']('authoredAt')['to'](_0x392bbf),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x392bbf,'authoredAt',this,'descriptionParts',(_0x42d689,_0x5bdf16,_0x2c15fe)=>{const _0x12ff7e=_0x2c15fe['map'](_0x566b65=>pt(_0x566b65['content']))['join']('.\x20')+'.',_0x176f00=_0x392bbf['aiSource']&&'author'===_0xd73a54['showAISource']?_0xd73a54['aiAuthor']['name']:_0x392bbf['author']['name'],_0x109cbc=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x42d689-0x1,_0x176f00,_0x5bdf16?_0xd73a54['formatDateTime'](_0x5bdf16):'',new DOMParser()['parseFromString'](_0x12ff7e,'text/html')['body']['textContent']]);return _0x392bbf['aiSource']&&'pill'===_0xd73a54['showAISource']?_0x109cbc+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x109cbc;}),this['focusables']=new _0x2d62a6(),this['focusTracker']=new _0x348918(),this['keystrokes']=new _0x164365(),this['focusCycler']=new _0x2b68a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xd65c96=>_0xd65c96['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x392bbf,this['_localUser']=_0x493abc,this['_config']=_0xd73a54,_0xd73a54['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xa5a80f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x11bafb}=this['_config'];this['commentsListView']=new _0x11bafb(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',_0x24b94f=>_0x24b94f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3c8a86,_0xdf50ac)=>_0x3c8a86||!!_0xdf50ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x61dac0}=this['_config'],_0x5b71ca=new _0x61dac0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4893e3=_0x5b71ca['commentInputView'];return _0x5b71ca['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4893e3,'value',(_0x28fb21,_0x1e791f,_0x27fb54)=>!!_0x27fb54||_0x28fb21&&!_0x1e791f),_0x4893e3['on']('submit',(_0x1a8e70,_0x2c6c96)=>{this['fire']('addComment',_0x2c6c96),_0x4893e3['editor']['setData']('');}),_0x4893e3['on']('cancel',()=>this['focus']()),_0x4893e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5b71ca;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0xb41ddd,_0x13e1e8,_0x141f61,_0x4aeb5d){super(_0xb41ddd,_0x13e1e8,_0x141f61,_0x4aeb5d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x39dc2b=>_0x39dc2b&&_0x39dc2b[0x0]?_0x39dc2b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x37abbe,_0x315282)=>{let _0x9096e7='';for(const _0x5ddaf8 of _0x37abbe)_0x9096e7+='<p>'+pt(_0x5ddaf8['content'],_0x5ddaf8['color'])+'</p>';return _0x315282?_0x9096e7:nt(_0x9096e7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4aeb5d['SuggestionView'](_0xb41ddd,_0x13e1e8,{'formatDateTime':_0x4aeb5d['formatDateTime'],'showAISource':_0x4aeb5d['showAISource'],'aiAuthor':_0x4aeb5d['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x30a343=this['bindTemplate'],_0x1c6cd3=[this['suggestionView']];return this['commentsListView']&&_0x1c6cd3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1c6cd3['push'](this['commentThreadInputView']),_0x1c6cd3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x30a343['if']('isActive','ck-suggestion-wrapper--active'),_0x30a343['to']('type',_0x8727df=>'ck-suggestion-'+_0x8727df),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x30a343['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1c6cd3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},bn=class extends _0x341170{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3d76b5,_0x17c43e,_0x21e477){super(_0x3d76b5),this['_model']=_0x17c43e,this['_config']=_0x21e477,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17c43e),this['acceptButton']=this['_createButton'](St(_0x3d76b5,'Accept\x20suggestion'),_0x5bafee,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x3d76b5,'Discard\x20suggestion'),_0x48ae6f,'ck-suggestion--discard','discardSuggestion','sw');const _0x58d1ae=!!_0x17c43e['aiSource']&&'author'===_0x21e477['showAISource'],_0x2b9a77=_0x58d1ae?this['_createAIUser'](_0x21e477['aiAuthor']):_0x17c43e['author'],_0x653e80=_0x58d1ae&&!_0x21e477['aiAuthor']['avatar']?_0x188a57:void 0x0;this['userView']=new _0x3ba6de(_0x3d76b5,_0x2b9a77,this['getUserViewNotificationText'](),_0x653e80),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2d62a6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x348918(),this['keystrokes']=new _0x164365(),this['focusCycler']=new _0x2b68a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x20daa3=>_0x20daa3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2f242a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2f242a['innerHTML']=this['description'],this['on']('change:description',(_0x13027f,_0x28f14e,_0x4a819f)=>{_0x2f242a['innerHTML']=_0x4a819f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x48c18b=this['bindTemplate'],_0x3c89a2=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x48c18b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x48c18b['to']('authoredAt',_0x13d811=>this['_config']['formatDateTime'](_0x13d811))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x3c89a2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1905f7=new _0x3bac69(this['locale']);_0x1905f7['set']({'icon':_0x42dd33,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x3c89a2['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1905f7]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3c89a2}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x205b32){return new _0x38c04d({'id':'ck-ai-author','name':_0x205b32['name'],'avatar':_0x205b32['avatar'],'color':new _0x1ac64f(0x0)});}['_createButton'](_0x22c67c,_0x5e9a29,_0xd2ad26,_0x5c1d9e,_0x3663c9){const _0x311984=new _0x5ae44f(this['locale']);return _0x311984['set']({'label':_0x22c67c,'icon':_0x5e9a29,'tooltip':!0x0,'tooltipPosition':_0x3663c9}),_0x311984['extendTemplate']({'attributes':{'class':_0xd2ad26}}),_0x311984['on']('execute',()=>{this['fire'](_0x5c1d9e,this['_model']['id']);}),_0x311984;}['_setupKeyboardNavigation'](){const _0x47ffa4=this['element'];this['keystrokes']['listenTo'](_0x47ffa4);for(const _0x365eab of this['focusables'])this['focusTracker']['add'](_0x365eab['element']),this['keystrokes']['listenTo'](_0x365eab['element']);this['keystrokes']['set']('enter',(_0x13940a,_0x469bc4)=>{_0x47ffa4===_0x13940a['target']&&(this['focusCycler']['focusFirst'](),_0x469bc4());}),this['keystrokes']['set']('esc',(_0x148226,_0xf966c1)=>{_0x47ffa4!==_0x148226['target']&&(this['focus'](),_0xf966c1());});}},kn=class extends _0x449cd5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x31fa66,_0x29457b,_0x47fdc7,_0x2c98bc];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58c955){super(_0x58c955),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x21cf70=this['editor']['config'];_0x21cf70['define']('trackChanges.SuggestionThreadView',An),_0x21cf70['define']('trackChanges.SuggestionView',bn),_0x21cf70['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x21cf70['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x537864,_0x3627dc){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x331945,_0x2cac58]of this['_handleControllerBuffer']){const _0x399251=this['_suggestionToController']['has'](_0x331945);_0x399251||_0x2cac58?_0x399251&&_0x2cac58&&this['_destroyController'](_0x331945):this['_initializeController'](_0x331945);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2c98bc)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x537864,_0x3627dc);}['init'](){const _0x1c624e=this['editor'],_0x23bddb=_0x1c624e['plugins']['get'](nn),_0x252604=_0x1c624e['plugins']['get'](_0x47fdc7),_0x3e4be7=_0x1c624e['plugins']['get'](_0x2c98bc),_0x72fbb9=_0x1c624e['plugins']['get'](_0x29457b);this['_addUIComponentsToFactory'](),_0x3e4be7['addSourceCollector'](()=>{const _0x413760=[];for(const [_0x23132e,_0x3deb44]of Array['from'](this['_suggestionToController'])){const _0x292c67=_0x23132e['getAllAdjacentSuggestions'](),_0xa837b1=[];for(const _0x4c97a8 of _0x292c67){if(!_0x4c97a8['isInContent'])continue;if(_0x4c97a8['isMultiRange']){_0xa837b1['push'](..._0x4c97a8['getRanges']());continue;}const _0x16fa83=_0x4c97a8['getFirstRange']();if(_0xa837b1['length']>0x0){const _0x152f03=_0xa837b1[0x0]['getJoined'](_0x16fa83);if(_0x152f03){_0xa837b1[0x0]=_0x152f03;continue;}}_0xa837b1['push'](_0x16fa83);}_0x413760['push']([_0x3deb44['view'],_0xa837b1]);}return _0x413760;}),this['listenTo'](_0x23bddb,'suggestionLoaded',(_0x4428f8,_0x1957d9)=>{this['listenTo'](_0x1957d9,'change:previous',(_0x2d2790,_0x54642a,_0x24d6a6,_0x3f474f)=>{_0x1957d9['isInContent']&&(null==_0x24d6a6?(this['_updateController'](_0x3f474f['head']),this['_handleSuggestionControllerDelayed'](_0x1957d9,!0x1)):(this['_updateController'](_0x24d6a6['head']),null==_0x3f474f&&this['_handleSuggestionControllerDelayed'](_0x1957d9,!0x0)));}),null!==_0x1957d9['previous']?this['_updateController'](_0x1957d9['head']):this['_handleSuggestionControllerDelayed'](_0x1957d9,!0x1);}),this['listenTo'](_0x23bddb,'suggestionUnloaded',(_0x2d51e4,_0x3621e1,_0x48b227)=>{this['stopListening'](_0x3621e1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3621e1),this['_suggestionToController']['has'](_0x3621e1)&&this['_destroyController'](_0x3621e1),_0x48b227&&this['_updateController'](_0x48b227['head']);}),this['listenTo'](_0x23bddb,'suggestionChanged',(_0x3bb4a4,_0x3fa8d9)=>{this['_updateController'](_0x3fa8d9);}),this['listenTo'](_0x252604,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x72fbb9,'addComment',(_0x43c86e,{threadId:_0x2218f8,isFromAdapter:_0x52a5e4})=>{if(_0x52a5e4||!_0x23bddb['hasSuggestion'](_0x2218f8))return;const _0x56cd50=_0x23bddb['getSuggestion'](_0x2218f8);this['_suggestionToController']['get'](_0x56cd50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37fdea=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a1931;for(const _0x33e839 in _0x37fdea){const _0x1e81a7=_0x33e839,_0x3bd12a=_0x37fdea[_0x1e81a7];if('trackChangesLicenseKeyValid'==_0x3bd12a||'trackChangesLicenseKeyInvalid'==_0x3bd12a||'trackChangesLicenseKeyExpired'==_0x3bd12a||'trackChangesLicenseKeyDomainLimit'==_0x3bd12a||'trackChangesLicenseKeyNotAllowed'==_0x3bd12a||'trackChangesLicenseKeyEvaluationLimit'==_0x3bd12a||'trackChangesLicenseKeyUsageLimit'==_0x3bd12a){delete _0x37fdea[_0x1e81a7],_0x5a1931=_0x3bd12a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5a1931&&_0x37fdea['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5a1931&&_0x37fdea['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5a1931&&_0x37fdea['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5a1931&&_0x37fdea['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5a1931&&_0x37fdea['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5a1931&&_0x37fdea['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5b4437){const _0x580638=this['_suggestionToController']['get'](_0x5b4437);return _0x580638&&this['editor']['plugins']['get'](_0x47fdc7)['getByInnerView'](_0x580638['view'])||null;}['getSuggestionForAnnotation'](_0x44c129){const _0xc3eb1c=this['_viewToController']['get'](_0x44c129['innerView']);return _0xc3eb1c?_0xc3eb1c['model']:null;}['_refreshActiveMarkers'](){const _0x4efbc1=this['editor']['plugins']['get'](_0x47fdc7),_0x59508a=this['editor']['plugins']['get'](nn),_0x3ab9cb=Array['from'](_0x4efbc1['activeAnnotations'],_0x446367=>_0x446367['innerView'])['filter'](_0x28f98d=>this['_viewToController']['has'](_0x28f98d)),_0x2d8006=[];for(const _0x379aa3 of _0x3ab9cb){const _0x3ec648=this['_viewToController']['get'](_0x379aa3)['model']['getAllAdjacentSuggestions']();_0x2d8006['push'](..._0x3ec648['reduce']((_0x49a0c6,_0x53494f)=>[..._0x49a0c6,..._0x53494f['getMarkerNames']()],[]));}_0x59508a['activeMarkers']=_0x2d8006;}['_addUIComponentsToFactory'](){const _0x13f511=this['editor'],_0x112a7b=_0x13f511['locale'],_0x461364=St(_0x112a7b,'Track\x20changes'),_0x150520=new _0x96fb93([{'type':'switchbutton','model':new _0x5a9814({'withText':!0x0,'isToggleable':!0x0,'label':_0x461364,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x13f511['plugins']['has']('TrackChangesPreview')&&_0x150520['addMany']([{'type':'separator'},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5bb78a of _0x150520)if(Cn(_0x5bb78a)){const _0x59e79a=_0x13f511['commands']['get'](_0x5bb78a['model']['commandName']);_0x5bb78a['model']['bind']('isOn','isEnabled')['to'](_0x59e79a,'value','isEnabled');}_0x13f511['ui']['componentFactory']['add']('trackChanges',_0x15d421=>this['_createToolbarButton'](_0x15d421,_0x150520,_0x461364)),_0x13f511['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3b8238=>this['_createMenuBarMenu'](_0x3b8238,_0x150520,_0x461364));}['_createToolbarButton'](_0x2a0b10,_0x34fc68,_0xb4e98a){const _0x4bd1ac=_0x2a87d2(_0x2a0b10,_0x4ed210),_0x101b95=this['editor']['commands']['get']('trackChanges');_0x4bd1ac['buttonView']['set']({'tooltip':_0xb4e98a,'label':_0xb4e98a,'icon':_0x149db9}),_0x4bd1ac['buttonView']['bind']('isOn')['to'](_0x101b95,'value'),_0x4bd1ac['buttonView']['on']('execute',()=>{_0x101b95['execute'](),this['editor']['editing']['view']['focus']();}),_0x4106d7(_0x4bd1ac,_0x34fc68,{'role':'menu'});const _0x536483=[];for(const _0xfd90a7 of _0x34fc68)Cn(_0xfd90a7)&&_0x536483['push'](this['editor']['commands']['get'](_0xfd90a7['model']['commandName']));const _0x5e0863=_0x4bd1ac['buttonView'];return _0x5e0863['actionView']['unbind']('isEnabled'),_0x5e0863['arrowView']['unbind']('isEnabled'),_0x5e0863['actionView']['bind']('isEnabled')['to'](_0x101b95,'isEnabled'),_0x5e0863['arrowView']['bind']('isEnabled')['toMany'](_0x536483,'isEnabled',(..._0x433704)=>_0x433704['some'](_0x503b8a=>_0x503b8a)),_0x4bd1ac['on']('execute',_0x3ec83b=>{this['editor']['execute'](_0x3ec83b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4bd1ac;}['_createMenuBarMenu'](_0x54ede8,_0x265773,_0xb929e8){const _0x2dcfdd=new _0x13a0ed(_0x54ede8),_0x40e316=this['editor']['commands']['get']('trackChanges');_0x2dcfdd['buttonView']['set']({'label':_0xb929e8,'icon':_0x149db9});const _0xdde0a=new _0x1aa70f(_0x54ede8);for(const _0x390459 of _0x265773){if('separator'==_0x390459['type']){_0xdde0a['items']['add'](new _0x59f2ec(_0x54ede8));continue;}const _0x4dc6af=new _0x252db8(_0x54ede8,_0x2dcfdd),_0x1956d1=new _0x107b4c(_0x54ede8),_0x15d515=_0x390459['model'];_0x1956d1['bind'](...Object['keys'](_0x15d515))['to'](_0x15d515),_0x1956d1['delegate']('execute')['to'](_0x2dcfdd),_0x1956d1['on']('execute',()=>{this['editor']['execute'](_0x15d515['commandName']),this['editor']['editing']['view']['focus']();}),_0x4dc6af['children']['add'](_0x1956d1),_0xdde0a['items']['add'](_0x4dc6af);}return _0x2dcfdd['bind']('isEnabled')['to'](_0x40e316,'isEnabled'),_0x2dcfdd['panelView']['children']['add'](_0xdde0a),_0x2dcfdd;}['_initializeController'](_0x5b02ae){const _0x213677=this['editor'],_0xe344a4=_0x213677['config'],_0x1c3f4e=_0x213677['plugins']['get'](_0x47fdc7),_0x3db6c0=_0x213677['plugins']['get'](_0x29457b),_0x5db509=_0x213677['plugins']['get'](_0x2c98bc),_0xffdc71=_0x213677['plugins']['get'](_0x31fa66)['me'],_0x20b3e7=_0xe344a4['get']('trackChanges')['SuggestionThreadView'],_0x28cdbd=_0xe344a4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2110ba,CommentThreadInputView:_0x5b3d36}=_0x213677['plugins']['get']('CommentsUI');let _0x21fad1,_0x101c7a,_0x51c009;this['_annotationViews']['has'](_0x5b02ae['id'])?(_0x101c7a=this['_annotationViews']['get'](_0x5b02ae['id']),_0x21fad1=_0x101c7a['mainView']):(_0x21fad1=new _0x20b3e7(_0x213677['locale'],_0x5b02ae,_0xffdc71,{'disableComments':this['_disableComments'],'editorConfig':{..._0xe344a4['get']('comments.editorConfig'),'licenseKey':_0xe344a4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xe344a4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe344a4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe344a4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x487ee3(_0xe344a4['get']('locale'),_0x213677['locale']),'CommentView':_0xe344a4['get']('comments')['CommentView'],'CommentsListView':_0x2110ba,'CommentThreadInputView':_0x5b3d36,'SuggestionView':_0x28cdbd,'showAISource':_0xe344a4['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xe344a4['get']('trackChanges.aiAuthor'),'name':_0xe344a4['get']('trackChanges.aiAuthor')?.['name']||St(_0x213677['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x21fad1['suggestionView']['acceptButton']['on']('execute',()=>{_0x213677['editing']['view']['focus']();}),_0x21fad1['suggestionView']['discardButton']['on']('execute',()=>{_0x213677['editing']['view']['focus']();}),_0x101c7a=_0x1c3f4e['createAnnotationView'](this['editor']['locale'],_0x21fad1),_0x101c7a['bind']('isDirty')['to'](_0x21fad1,'isDirty'),_0x101c7a['bind']('length')['to'](_0x21fad1),_0x101c7a['bind']('type')['to'](_0x21fad1,'type',_0x127e7a=>'suggestion-'+_0x127e7a),_0x21fad1['on']('escape',()=>{_0x51c009['fire']('escape');}),this['_annotationViews']['set'](_0x5b02ae['id'],_0x101c7a));const _0x523f07=_0x3db6c0['createCommentThreadController'](_0x5b02ae['commentThread'],_0x21fad1),_0x395a5d=new Ln(_0x213677,_0x5b02ae,_0x21fad1,_0x523f07),_0x107bd9=_0x5b02ae['getAllAdjacentSuggestions']()['filter'](_0x202ccc=>_0x202ccc['isInContent']);_0x21fad1['descriptionParts']=_0x213677['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x107bd9),this['_suggestionToController']['set'](_0x5b02ae,_0x395a5d),this['_viewToController']['set'](_0x21fad1,_0x395a5d);const _0x4a661a=()=>{const _0x5728bf=[],_0x11ffc7=_0x5b02ae['getAllAdjacentSuggestions']()['filter'](_0x49202d=>_0x49202d['isInContent']);for(const _0x4dc281 of _0x11ffc7)_0x5728bf['push'](..._0x4dc281['getMarkers']());return _0x23a1bb(_0x213677['editing'],_0x5728bf);};_0x51c009=_0x1c3f4e['createAnnotation']({'view':_0x101c7a,'target':_0x4a661a,'type':()=>'suggestion-'+_0x395a5d['view']['type'],'isVisible':!!_0x4a661a()}),_0x3db6c0['_bindAnnotationToEditors'](_0x21fad1,_0x51c009),_0x1c3f4e['add'](_0x51c009),_0x5db509['registerAnnotation'](_0x51c009);}['_destroyController'](_0x1733f5){const _0x555d83=this['editor']['plugins']['get'](_0x29457b),_0x59ea73=this['editor']['plugins']['get'](_0x47fdc7),_0x3a9198=this['_suggestionToController']['get'](_0x1733f5),_0x143a8b=_0x3a9198['view'],_0x1a5012=_0x59ea73['getByInnerView'](_0x143a8b);_0x555d83['_unbindEditors'](_0x143a8b),_0x1a5012&&_0x59ea73['remove'](_0x1a5012),this['_suggestionToController']['delete'](_0x1733f5),this['_viewToController']['delete'](_0x143a8b),_0x3a9198['destroy']();}['_updateController'](_0x3ef4cc){if(!_0x3ef4cc['isInContent']||!this['_suggestionToController']['has'](_0x3ef4cc))return;const _0x4406a0=this['editor']['plugins']['get'](nn),_0x204229=this['_suggestionToController']['get'](_0x3ef4cc),_0x1b4602=_0x3ef4cc['getAllAdjacentSuggestions']();_0x204229['view']['descriptionParts']=_0x4406a0['descriptionFactory']['getDescriptions'](_0x1b4602);}['destroy'](){for(const _0x50558e of this['_suggestionToController']['keys']())this['_destroyController'](_0x50558e);for(const _0x317dac of this['_annotationViews']['values']())_0x317dac['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x5de119){return'model'in _0x5de119;}var Rn=class extends _0x449cd5{static get['requires'](){return[nn,kn,_0x522ebb];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1bca80){this['editor']['plugins']['get'](nn)['adapter']=_0x1bca80;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x1e5390){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x1e5390);}['getSuggestions']({skipNotAttached:_0x25cf4d=!0x1,toJSON:_0x85404=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x25cf4d,'toJSON':_0x85404});}['getSuggestion'](_0x34fb6d){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x34fb6d);}};const Nn=['Pagination'];var yn=class extends _0x449cd5{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x292b68=this['editor'];if(_0x292b68['config']['define']('trackChangesData.editorCreator',_0x39cc54=>{const _0x23b7bc=_0x292b68['model']['document']['getRootNames']()['reduce']((_0x39bd59,_0x242f83)=>(_0x39bd59[_0x242f83]='',_0x39bd59),{});return _0x292b68['constructor']['create'](_0x23b7bc,_0x39cc54);}),'function'!=typeof _0x292b68['config']['get']('trackChangesData')['editorCreator'])throw new _0x403c95('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28d1a4){return On(this['editor'],!0x0,_0x28d1a4);}['getDataWithDiscardedSuggestions'](_0x3b9f9c){return On(this['editor'],!0x1,_0x3b9f9c);}},Sn=class extends _0x449cd5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x435582){super(_0x435582),this['result']='end',_0x435582['editing']['view']['_overlayModeHint']='auto',_0x435582['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}['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 Mn(_0x3e1a66){return void 0x0!==_0x3e1a66['getRootsAttributes'];}async function On(_0x1f6df1,_0x1df27d,_0x2f5903){const _0x31fcb6=_0x38df16(_0x1f6df1,Nn);if(_0x31fcb6['plugins']['push'](nn,Sn),Mn(_0x1f6df1)){_0x31fcb6['roots']=Object['create'](null);for(const _0x4d0002 of _0x1f6df1['model']['document']['getRootNames']())_0x31fcb6['roots'][_0x4d0002]={'modelAttributes':_0x1f6df1['getRootAttributes'](_0x4d0002)};}const _0x590985=document['createDocumentFragment'](),_0x2d3ac2=_0x1f6df1['config']['get']('trackChangesData')['editorCreator'],_0x42e3dd=await _0x2d3ac2(_0x31fcb6,()=>function(_0x47fb78){const _0x22a8d5=document['createElement']('div');return _0x47fb78['appendChild'](_0x22a8d5),_0x22a8d5;}(_0x590985));!function(_0x2126e5,_0x478f0d){const _0x1b40d7=_0x2126e5['model']['document']['getRootNames']()['reduce']((_0x4e47f5,_0x3509ff)=>(_0x4e47f5[_0x3509ff]=_0x2126e5['data']['get']({'rootName':_0x3509ff}),_0x4e47f5),{}),_0x4146c1=_0x2126e5['plugins']['get']('Users')['users']['map'](_0x307c3e=>({'id':_0x307c3e['id'],'name':_0x307c3e['name']})),_0x120ea6=_0x2126e5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1fd260=_0x2126e5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a9f91=_0x478f0d['plugins']['get']('Users'),_0x306e60=_0x478f0d['plugins']['get']('TrackChangesEditing'),_0x17ffca=_0x478f0d['plugins']['get']('CommentsRepository');for(const _0x2db71b of _0x17ffca['getCommentThreads']())_0x2db71b['remove']();for(const _0x338de9 of _0x4146c1)_0x3a9f91['getUser'](_0x338de9['id'])||_0x3a9f91['addUser'](_0x338de9);_0x3a9f91['me']||_0x3a9f91['useAnonymousUser']();for(const _0x1b0cd1 of _0x1fd260)_0x17ffca['addCommentThread'](_0x1b0cd1);for(const _0x8f6d64 of _0x120ea6)_0x306e60['addSuggestionData'](_0x8f6d64);_0x478f0d['data']['set'](_0x1b40d7);}(_0x1f6df1,_0x42e3dd),_0x42e3dd['execute'](_0x1df27d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ad7fc=Mn(_0x42e3dd)?_0x42e3dd['getFullData'](_0x2f5903):_0x42e3dd['data']['get'](_0x2f5903);return await _0x42e3dd['destroy'](),_0x2ad7fc;}var wn=class extends _0x341170{['options'];constructor(_0x3e6303,_0x2315d8){super(_0x3e6303),this['options']=_0x2315d8,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x22c194,_0x1c0513){if(!this['element'])return;const _0x3cc712=[];for(const [_0x36c4b2,_0x15d676]of _0x22c194){const _0x117297=document['createElement']('div');_0x117297['setAttribute']('data-ck-root-name',_0x36c4b2),_0x117297['className']=_0x15d676['classes']+'\x20ck-track-changes-preview__root-container',_0x117297['innerHTML']=_0x15d676['content'],_0x3cc712['push'](_0x117297);}_0x1c0513(this['element'],_0x3cc712),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x22ac6a{constructor(_0x483c3d){super(_0x483c3d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x148fb7=this['editor'],_0x16f012=_0x148fb7['locale'],_0xb014b1=_0x148fb7['plugins']['get']('Dialog');let _0x25dc0c;const _0x12cddf=function(_0x3affb5){const _0x11b720={};if('editables'in _0x3affb5['ui']['view']){for(const [_0x33d2a7,_0x52427f]of Object['entries'](_0x3affb5['ui']['view']['editables']))_0x11b720[_0x33d2a7]=_0x52427f['element'];}else _0x11b720[_0x3affb5['model']['document']['getRootNames']()[0x0]]=_0x3affb5['ui']['view']['editable']['element'];return _0x11b720;}(_0x148fb7),_0x1e5ec7=function(_0x4c3f27){let _0x1e8b38=0x0;for(const _0x4d5a46 of Object['values'](_0x4c3f27))_0x1e8b38=Math['max'](_0x1e8b38,_0x4d5a46['getBoundingClientRect']()['width']);let _0x165c8b=0x0;for(const _0x58c2de of Object['values'](_0x4c3f27))_0x165c8b+=_0x58c2de['getBoundingClientRect']()['height'];const _0x6607d9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x1e8b38,'height':Math['min'](_0x165c8b,_0x6607d9)};}(_0x12cddf);_0xb014b1['show']({'id':'finalContentPreview','title':St(_0x16f012,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x16f012,{'dialogRects':_0x1e5ec7}),'onHide':()=>{_0x25dc0c['detachFromDom']();},'onShow':()=>{_0x148fb7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x177fe4=>{const _0x3b26d4=this['_standarizeRootsData'](_0x177fe4,_0x148fb7,_0x12cddf);_0xb014b1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3b26d4,_0x148fb7['config']['get']('trackChanges.preview.renderFunction'));}),_0x25dc0c=new _0x469b4b(_0x16f012,[_0xb014b1['view']]),_0x25dc0c['attachToDom'](),_0x25dc0c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x148fb7['once']('destroy',()=>{_0x25dc0c['detachFromDom']();});const _0x43b97d=_0xb014b1['view']['headerView']['class'];_0xb014b1['view']['headerView']['class']=_0x43b97d?_0x43b97d+'\x20ck-reset_all':'ck-reset_all',_0xb014b1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xb014b1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x322b30=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x8bea66=_0x322b30['previewMode'],_0x5c5340={};if('$labels'===_0x8bea66){for(const _0x2a11ed of _0x322b30['getMergeFieldsIds']())_0x5c5340[_0x2a11ed]=_0x322b30['getLabel'](_0x2a11ed)||_0x2a11ed;}else{const _0x2f8aca='$defaultValues'===_0x8bea66?_0x322b30['getDefaultValues']():_0x322b30['getDataSetValues'](_0x8bea66,!0x0);for(const _0xb4d133 of Object['entries'](_0x2f8aca)){const [_0x5a281e,_0x1c884a]=_0xb4d133;_0x5c5340[_0x5a281e]=null!==_0x1c884a?_0x1c884a:_0x322b30['getLabel'](_0x5a281e)||_0x5a281e;}}return{'mergeFieldsData':_0x5c5340};}['_standarizeRootsData'](_0x495f7c,_0x144b89,_0x152f67){let _0x4cec70;_0x4cec70='string'==typeof _0x495f7c?{[_0x144b89['model']['document']['getRootNames']()[0x0]]:_0x495f7c}:_0x495f7c;const _0x364b57=this['_fixMediaEmbeds'](_0x4cec70,_0x144b89);return function(_0x4daed0,_0x13d37e){for(const [_0x495072,_0x59bbd8]of _0x4daed0)_0x59bbd8['classes']=_0x13d37e[_0x495072]['classList']['value']['replace']('ck-focused','');return _0x4daed0;}(this['_sortRoots'](_0x144b89)['reduce']((_0x36dcd3,_0x63f2a8)=>(_0x36dcd3['push']([_0x63f2a8,{'content':_0x364b57[_0x63f2a8],'classes':''}]),_0x36dcd3),[]),_0x152f67);}['_fixMediaEmbeds'](_0x1068d3,_0x8f1212){if(!_0x8f1212['plugins']['has']('MediaEmbedEditing'))return _0x1068d3;const _0x1144a3=_0x8f1212['plugins']['get']('MediaEmbedEditing');for(const [_0x42b1eb,_0x1c62be]of Object['entries'](_0x1068d3)){const _0x314e1e=document['createElement']('div');_0x314e1e['innerHTML']=_0x1c62be,_0x314e1e['querySelectorAll']('figure.media')['forEach'](_0x1a65a1=>{const _0x2676f2=_0x1a65a1['querySelector']('oembed');if(_0x2676f2){const _0x8e3cda=_0x2676f2['getAttribute']('url');if(_0x8e3cda){const _0x34c476=_0x1144a3['registry']['getMediaViewElement'](new ot(_0x8f1212['editing']['view']['document']),_0x8e3cda,{'elementName':'','renderForEditingView':!0x0}),_0x2a8a96=document['createElement']('div');_0x2a8a96['classList']['add']('ck-media__wrapper'),_0x34c476['render'](_0x2a8a96,_0x8f1212['editing']['view']['domConverter']),_0x2676f2['replaceWith'](_0x2a8a96);}}}),_0x1068d3[_0x42b1eb]=_0x314e1e['innerHTML'];}return _0x1068d3;}['_sortRoots'](_0x196537){if(!function(_0x5303cf){return void 0x0!==_0x5303cf['getRootsAttributes'];}(_0x196537))return _0x196537['model']['document']['getRootNames']();const _0x5cf746=[],_0x2d7849=new Map();for(const _0x13b10b of _0x196537['model']['document']['getRootNames']()){const _0x350d89=_0x196537['editing']['view']['getDomRoot'](_0x13b10b)['getClientRects']()['item'](0x0);_0x5cf746['push'](_0x13b10b),_0x2d7849['set'](_0x13b10b,_0x350d89);}return _0x5cf746['sort']((_0x946d1b,_0x52b74b)=>{const _0x25af53=_0x2d7849['get'](_0x946d1b),_0x9e23b7=_0x2d7849['get'](_0x52b74b);return _0x25af53['y']-_0x9e23b7['y']||_0x25af53['x']-_0x9e23b7['x'];}),_0x5cf746;}},Bn=class extends _0x449cd5{static get['requires'](){return[yn,_0x2857d2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x310b25){super(_0x310b25),_0x310b25['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x310b25['config']['define']('trackChanges.preview.renderFunction',(_0x465110,_0xfd89a7)=>{for(const _0x618c4a of _0xfd89a7)_0x465110['appendChild'](_0x618c4a);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};