@ckeditor/ckeditor5-track-changes 47.6.0 → 47.6.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +26 -26
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/footnotes.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.js +1 -1
  222. package/src/trackchangespreview.js +1 -1
  223. package/src/trackchangesui.js +1 -1
  224. package/src/ui/suggestioncontroller.js +2 -2
  225. package/src/ui/view/basesuggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionview.js +1 -1
  228. package/src/ui/view/trackchangespreviewview.js +1 -1
  229. package/src/utils/common-translations.js +1 -1
  230. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x243073,Plugin as _0x562758,PendingActions as _0x448de2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ea645,ObservableMixin as _0x3aea00,uid as _0x341aab,priorities as _0x30da9e,insertToPriorityArray as _0x246ccd,logWarning as _0x4de72a,getEnvKeystrokeText as _0xda6fcd,FocusTracker as _0x327580,KeystrokeHandler as _0x3b42a9,Collection as _0x41e968}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x51b180,IconCancel as _0x3a2f9c,IconTrackChanges as _0x4c593e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2abc75,View as _0x28bdc3,ViewCollection as _0x416963,FocusCycler as _0x5ed207,UIModel as _0x2d8df2,createDropdown as _0x4d0c40,SplitButtonView as _0x574fdd,addListToDropdown as _0x7bb7d8,MenuBarMenuView as _0x1e0b08,MenuBarMenuListView as _0x107130,ListSeparatorView as _0x37e502,MenuBarMenuListItemView as _0x5a7459,MenuBarMenuListItemButtonView as _0x40a314,BodyCollection as _0x124139,Dialog as _0x435edb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x55e6d0,Users as _0x3f15d1,DocumentCompare as _0x18362e,fixElementSuggestionRange as _0x1d4d3c,hashObject as _0x56d605,splitSuggestionMarkerName as _0xdfe2f6,surroundingMarkersDetector as _0x35b4f6,FOCUS_ANNOTATION_KEYSTROKE as _0x39921e,AriaDescriptionView as _0x15f86c,setupThreadKeyboardNavigation as _0x7a1f11,trimHtml as _0x44dce4,UserView as _0x322d3d,LateFocusButtonView as _0x21e5b5,getDateTimeFormatter as _0x39adb7,getAllMarkersDomElementsSorted as _0x4b32ea,sanitizeEditorConfig as _0x3050d5}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1e376c,ModelLiveRange as _0x2ed57b,ModelLivePosition as _0xbf4859,ViewDowncastWriter as _0x27c8e5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4e7214,set as _0x53cfff,isEqual as _0x1a3d04,unset as _0x1a3e18,omit as Jt}from'es-toolkit/compat';import{Delete as _0x59067,Input as _0x1357fe}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x421073}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2aa2ff}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x243073{['_enabledCommands'];constructor(_0x3e99d1,_0x1e2a4f){super(_0x3e99d1),this['_enabledCommands']=_0x1e2a4f,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 _0x1c37f6 of this['editor']['commands']['commands']())_0x1c37f6['affectsData']&&!this['_enabledCommands']['has'](_0x1c37f6)&&_0x1c37f6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x24f0d7 of this['editor']['commands']['commands']())_0x24f0d7['affectsData']&&!this['_enabledCommands']['has'](_0x24f0d7)&&_0x24f0d7['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x243073{['_suggestions'];constructor(_0x244a37,_0x36d0de){super(_0x244a37),this['_suggestions']=_0x36d0de,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x448348){const _0x3a1dcf=this['_suggestions']['get'](_0x448348);if(!_0x3a1dcf)throw new _0x2ea645('track-changes-accept-suggestion-not-found',this);const _0xef0115=_0x3a1dcf['getRanges']();this['editor']['model']['canEditAt'](_0xef0115)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3a1dcf);}}class x extends _0x243073{['_suggestions'];constructor(_0x43e514,_0x4b63a3){super(_0x43e514),this['_suggestions']=_0x4b63a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4793db){const _0x533356=this['_suggestions']['get'](_0x4793db);if(!_0x533356)throw new _0x2ea645('track-changes-discard-suggestion-not-found',this);const _0x53ea4e=_0x533356['getRanges']();this['editor']['model']['canEditAt'](_0x53ea4e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x533356);}}function ls(_0x2065d9,_0x232cdc){let _0x46955b='';return _0x46955b+=_0x2065d9['split']('*')['map']((_0x20db3c,_0x308761)=>_0x308761%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x20db3c)+'</span>':rn(_0x20db3c))['join'](''),_0x232cdc&&(_0x46955b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x232cdc['value']+'\x22\x20title=\x22'+_0x232cdc['title']+'\x22></span>'),_0x46955b;}function rn(_0x53bf2d){const _0x536226=document['createElement']('span');return _0x536226['innerText']=_0x53bf2d,_0x536226['innerHTML'];}function ts(_0x754d14){return _0x754d14['sort']((_0x568e93,_0x2fe1a0)=>'attribute'===_0x568e93['type']&&'attribute'!==_0x2fe1a0['type']?-0x1:'attribute'!==_0x568e93['type']&&'attribute'===_0x2fe1a0['type']?0x1:'deletion'==_0x568e93['type']&&'deletion'!=_0x2fe1a0['type']?-0x1:'deletion'!=_0x568e93['type']&&'deletion'==_0x2fe1a0['type']?0x1:0x0);}function to(_0x3980f1,_0x234c3a){let _0x57cee2,_0x5d46a6=0x0;const _0x42cd06=[],_0x562ede=_0x234c3a['schema'];for(;_0x5d46a6<_0x3980f1['length'];){const _0x571f7a=_0x3980f1[_0x5d46a6],_0x2c7d6b=_0x3980f1[_0x5d46a6+0x1];_0x57cee2||(_0x57cee2=_0x234c3a['createPositionBefore'](_0x571f7a)),cn(_0x234c3a,_0x571f7a,_0x2c7d6b)||(_0x42cd06['push'](_0x234c3a['createRange'](_0x57cee2,_0x562ede['isObject'](_0x571f7a)?_0x234c3a['createPositionAfter'](_0x571f7a):_0x234c3a['createPositionAt'](_0x571f7a,'end'))),_0x57cee2=null),_0x5d46a6++;}return _0x42cd06;}function cn(_0x2cb6da,_0xd7a427,_0x13055e){if(!_0x13055e)return!0x1;const _0x36feba=_0x2cb6da['createPositionAfter'](_0xd7a427),_0x19ecc2=_0x2cb6da['createPositionBefore'](_0x13055e);return _0x36feba['isTouching'](_0x19ecc2);}function rs(_0x3ed47e,_0x9bd250,_0xb58cec){for(;_0xb58cec['length'];){const _0x326f6e=_0xb58cec['splice'](0x0,0x64);_0x3ed47e['change'](()=>{for(const _0x2e57a5 of _0x326f6e)_0x2e57a5['isInContent']&&_0x9bd250['execute'](_0x2e57a5['id']);});}}class M extends _0x243073{['_command'];['_suggestions'];constructor(_0x21f175,_0x361f6d,_0x1ca755){super(_0x21f175),this['_command']=_0x361f6d,this['_suggestions']=_0x1ca755,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x35eea3=Array['from'](this['_suggestions']['values']())['some'](_0x4d521d=>_0x4d521d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x35eea3;}['execute'](){const _0x5e0ed4=ts(Array['from'](this['_suggestions']['values']()));for(const _0x12282a of _0x5e0ed4){const _0x231336=_0x12282a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x231336))return;}rs(this['editor']['model'],this['_command'],_0x5e0ed4);}}class R extends _0x243073{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3aa172,_0x183336,_0x2daaf8){super(_0x3aa172),this['_command']=_0x183336,this['_suggestions']=_0x2daaf8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d85eb=this['editor']['model']['document']['selection'],_0x34c8ae=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2bf47c,_0x5742ee){const _0x13091c=Array['from'](_0x2bf47c['getRanges']()),_0x3b55a4=new Set();for(const _0x1d61e3 of _0x5742ee)if(_0x1d61e3['isInContent']){for(const _0x48b414 of _0x13091c)for(const _0x51bcbf of _0x1d61e3['getRanges']())(_0x48b414['isIntersecting'](_0x51bcbf)||_0x2bf47c['isCollapsed']&&!_0x1d61e3['isMultiRange']&&_0x1d61e3['next']&&_0x51bcbf['end']['isTouching'](_0x48b414['start']))&&_0x3b55a4['add'](_0x1d61e3);}return _0x3b55a4;}(_0x4d85eb,_0x34c8ae),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5dbb68=ts(Array['from'](this['_selectedSuggestions']));for(const _0x16b934 of _0x5dbb68){const _0x263db0=_0x16b934['getRanges']();if(!this['editor']['model']['canEditAt'](_0x263db0))return;}rs(this['editor']['model'],this['_command'],_0x5dbb68);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x3aea00(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1f94d4,_0x1cbeca){super(),this['id']=_0x1cbeca['id'],this['type']=_0x1cbeca['type'],this['subType']=_0x1cbeca['subType']||null,this['author']=_0x1cbeca['author'],this['creator']=_0x1cbeca['creator']||_0x1cbeca['author'],this['isExternal']=Boolean(_0x1cbeca['attributes']&&_0x1cbeca['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1cbeca['originalSuggestionId']||null,this['_model']=_0x1f94d4,this['_onAccept']=_0x1cbeca['onAccept'],this['_onDiscard']=_0x1cbeca['onDiscard'],this['_onAttributesChange']=_0x1cbeca['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1cbeca['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x24a6d5=this;for(;_0x24a6d5['previous'];)_0x24a6d5=_0x24a6d5['previous'];return _0x24a6d5;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3e2b75){this['_markerNames']['add'](_0x3e2b75);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x12d0f1=>this['_model']['markers']['get'](_0x12d0f1))['filter'](_0xc1a35d=>_0xc1a35d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4ed260=>{for(const _0xce63db of this['getMarkers']())_0x4ed260['removeMarker'](_0xce63db);}),this['_markerNames']['clear']();}['removeMarker'](_0x403a77){this['_model']['change'](_0x5da3f0=>{_0x5da3f0['removeMarker'](_0x403a77);}),this['_markerNames']['delete'](_0x403a77);}['addRange'](_0x54c298){const _0x5e36c5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5e36c5),this['_model']['change'](_0x3968ca=>{_0x3968ca['addMarker'](_0x5e36c5,{'range':_0x54c298,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x569195){for(const _0x3d449b of this['getRanges']())if(_0x3d449b['isIntersecting'](_0x569195))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x42e261=>_0x42e261['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x44e12a,_0x2485fb)=>[..._0x44e12a,..._0x2485fb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa04844=this['getRanges']();if(0x1!=_0xa04844['length'])return null;const _0x15a6aa=_0xa04844[0x0],_0x5bbc86=_0x15a6aa['start']['nodeAfter'],_0x5b0d56=_0x15a6aa['end']['nodeBefore'];return _0x5bbc86 instanceof _0x1e376c?_0x5bbc86!=_0x5b0d56?null:_0x5bbc86: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 _0x187605=[];let _0x241b26=this['head'];for(;_0x241b26;)_0x187605['push'](_0x241b26),_0x241b26=_0x241b26['next'];return _0x187605;}['setAttribute'](_0xc4b3cf,_0x58db9e){const _0x401f9c=_0x4e7214(this['attributes']);_0x53cfff(_0x401f9c,_0xc4b3cf,_0x58db9e),_0x1a3d04(_0x401f9c,this['attributes'])||(this['attributes']=_0x401f9c,this['_onAttributesChange'](_0x401f9c));}['removeAttribute'](_0x583fad){const _0x1b00a8=_0x4e7214(this['attributes']);_0x1a3e18(_0x1b00a8,_0x583fad),_0x1a3d04(_0x1b00a8,this['attributes'])||(this['attributes']=_0x1b00a8,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 _0x341aab()['substr'](0x1,0x5);}}function o(_0x207657,_0x4bf0eb,_0x4ed375){const _0x42e7ce=_0x207657['t'],t=_0x207657['t'];switch(_0x4bf0eb){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',_0x4ed375);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ed375);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ed375);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ed375);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ed375);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',_0x4ed375);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ed375);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',_0x4ed375);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ed375);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ed375);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ed375);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ed375);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ed375);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4ed375);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ed375);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ed375);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ed375);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ed375);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ed375);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ed375);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ed375);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ed375);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ed375);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ed375);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4ed375);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'},_0x4ed375);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4ed375);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4ed375);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ed375);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ed375);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ed375);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ed375);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ed375);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4ed375);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ed375);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ed375);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ed375);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ed375);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'},_0x4ed375);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'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'},_0x4ed375);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ed375);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4ed375);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4ed375);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4ed375);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4ed375);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x42e7ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4ed375);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x42e7ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4ed375);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ed375);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'},_0x4ed375);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'},_0x4ed375);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'},_0x4ed375);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4bf0eb;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xe4b7e5,_0x1a7ba8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xe4b7e5,this['_locale']=_0x1a7ba8;}['getDescriptions'](_0xae743b){const _0x3d85a5=[],_0x422886=new Set(),_0x265334=new Set();for(let _0xe80576=0x0;_0xe80576<_0xae743b['length'];_0xe80576++){const _0x5ba611=_0xae743b[_0xe80576];if(!_0x5ba611['isInContent'])continue;const _0xb5a944=this['_handleCustomCallbackDescription'](_0x5ba611);if(_0xb5a944){if(null!=_0x5ba611['subType']){if(_0x422886['has'](_0x5ba611['subType']))continue;_0x422886['add'](_0x5ba611['subType']);}_0x3d85a5['push'](_0xb5a944);}else{if('attribute'==_0x5ba611['type']){const _0x419a02=_0x5ba611['data']['key'];if(_0x265334['has'](_0x419a02))continue;_0x265334['add'](_0x5ba611['data']['key']),_0x419a02==m?this['_handleRenameSuggestionDescription'](_0x3d85a5,_0x5ba611):this['_handleAttributeSuggestionDescription'](_0x3d85a5,_0x5ba611);continue;}'insertion'!=_0x5ba611['type']&&'deletion'!=_0x5ba611['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3d85a5,_0x5ba611,_0xae743b[_0xe80576+0x1]);}}return this['_resolveDescriptionItems'](_0x3d85a5);}['registerDescriptionCallback'](_0x6bae2a){this['_customCallbacks']['push'](_0x6bae2a);}['registerElementLabel'](_0x296c5a,_0x3f0334,_0x47812c=_0x30da9e['normal']){'function'==typeof _0x296c5a?_0x246ccd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x296c5a,'label':_0x3f0334,'priority':_0x47812c}):this['_itemLabels']['set'](_0x296c5a,_0x3f0334);}['registerAttributeLabel'](_0x5ec12c,_0x2a6ecb){this['_attributeLabels']['set'](_0x5ec12c,_0x2a6ecb);}['getItemLabel'](_0x5f30fa,_0x4ff6f1=0x1){let _0x4c4af5;for(const _0xbca1c9 of this['_itemLabelsCallbacks'])if(_0xbca1c9['matchingCallback'](_0x5f30fa)){_0x4c4af5=_0xbca1c9['label'];break;}return _0x4c4af5||(_0x4c4af5=this['_itemLabels']['get'](_0x5f30fa['name'])),_0x4c4af5?_0x4c4af5(_0x4ff6f1):0x1!==_0x4ff6f1?_0x4ff6f1+'\x20'+_0x5f30fa['name']+'s':''+_0x5f30fa['name'];}['_addDescriptionItems'](_0x528d3a,_0x1187ce){const _0x8f29c5=_0x1187ce['getFirstRange']()['getWalker'](),_0x3e4989='insertion'==_0x1187ce['type']?'add':'remove';for(const _0x3596be of _0x8f29c5){const _0x563b3d=_0x3596be['item'],_0xbb58e=_0x528d3a[_0x528d3a['length']-0x1];if(_0x563b3d['is']('$textProxy'))_0xbb58e&&_0xbb58e['type']['indexOf']('Container')>-0x1&&_0x528d3a['pop'](),_0xbb58e&&'text'==_0xbb58e['type']?_0xbb58e[_0x3e4989]+=_0x563b3d['data']:_0x528d3a['push']({'type':'text','add':'add'==_0x3e4989?_0x563b3d['data']:'','remove':'remove'==_0x3e4989?_0x563b3d['data']:''});else{if(this['_schema']['isObject'](_0x563b3d)){const _0x2d91cb=_0x563b3d;if(_0xbb58e&&_0xbb58e['type']['indexOf']('Container')>-0x1&&_0x528d3a['pop'](),'elementEnd'==_0x3596be['type'])continue;_0xbb58e&&_0xbb58e['type']==_0x3e4989+'Object'&&_0xbb58e['element']['name']==_0x2d91cb['name']?_0xbb58e['quantity']++:_0x528d3a['push']({'type':_0x3e4989+'Object','element':_0x2d91cb,'quantity':0x1}),_0x8f29c5['skip'](_0x162ebd=>!('elementEnd'==_0x162ebd['type']&&_0x162ebd['item']==_0x563b3d));}else{if(this['_schema']['checkChild'](_0x563b3d,'$text')||_0x563b3d['is']('element','softBreak')){const _0x2719c0=_0x563b3d;if('add'==_0x3e4989&&'elementStart'==_0x3596be['type']||'remove'==_0x3e4989&&'elementEnd'==_0x3596be['type'])continue;if(_0xbb58e&&-0x1==_0xbb58e['type']['indexOf']('Container')){'text'==_0xbb58e['type']&&(_0xbb58e[_0x3e4989]+='\x0a');continue;}let _0x250c3f;if(_0x250c3f='add'==_0x3e4989?_0x2719c0['nextSibling']&&!this['_schema']['isObject'](_0x2719c0['nextSibling'])?_0x2719c0['nextSibling']:null:_0x2719c0['previousSibling']&&!this['_schema']['isObject'](_0x2719c0['previousSibling'])?_0x2719c0['previousSibling']:null,_0x2719c0['isEmpty']||_0x250c3f&&_0x250c3f['isEmpty']){const _0x32762d=_0x250c3f&&_0x250c3f['isEmpty']?_0x250c3f:_0x2719c0;_0xbb58e&&_0xbb58e['type']==_0x3e4989+'EmptyContainer'&&_0xbb58e['element']['name']==_0x32762d['name']?_0xbb58e['quantity']++:_0x528d3a['push']({'type':_0x3e4989+'EmptyContainer','element':_0x32762d,'quantity':0x1});}else _0x528d3a['push']({'type':_0x3e4989+'Container','element':_0x2719c0});}}}}}['_resolveDescriptionItems'](_0x4a8a15){const _0x1fc55b=this['_locale'],_0x46b876=[],_0x128754=[],_0x21acaf=[];for(const _0x569cd6 of _0x4a8a15)switch(_0x569cd6['type']){case'text':if(_0x569cd6['add']=_0x569cd6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x569cd6['remove']=_0x569cd6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x569cd6['add']&&''!=_0x569cd6['remove']){_0x46b876['push']({'type':'replace','content':o(_0x1fc55b,'REPLACE_TEXT',['\x22'+_0x569cd6['remove']+'\x22','\x22'+_0x569cd6['add']+'\x22'])});continue;}if(null!=_0x569cd6['add']['match'](/^ +$/)){_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Insert:*\x20%0',o(_0x1fc55b,'ELEMENT_SPACE',_0x569cd6['add']['length']))});continue;}if(null!=_0x569cd6['remove']['match'](/^ +$/)){_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Remove:*\x20%0',o(_0x1fc55b,'ELEMENT_SPACE',_0x569cd6['remove']['length']))});continue;}if(''!=_0x569cd6['add']){_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Insert:*\x20%0','\x22'+_0x569cd6['add']+'\x22')});continue;}_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Remove:*\x20%0','\x22'+_0x569cd6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Insert:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Remove:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'addContainer':_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Split:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'removeContainer':_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Merge:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'addFormat':_0x128754['push'](_0x569cd6['key']);continue;case'removeFormat':_0x21acaf['push'](_0x569cd6['key']);continue;default:_0x46b876['push'](_0x569cd6);}if(_0x128754['length']){const _0xc45011=_0x128754['map'](_0x18b8ac=>this['_attributeLabels']['has'](_0x18b8ac)?this['_attributeLabels']['get'](_0x18b8ac):_0x18b8ac)['join'](',\x20');_0x46b876['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xc45011)});}if(_0x21acaf['length']){const _0x412e25=_0x21acaf['map'](_0x50f985=>this['_attributeLabels']['has'](_0x50f985)?this['_attributeLabels']['get'](_0x50f985):_0x50f985)['join'](',\x20');_0x46b876['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x412e25)});}return _0x46b876;}['_handleCustomCallbackDescription'](_0x49bc4a){for(const _0x3f2403 of this['_customCallbacks']){const _0x546380=_0x3f2403(_0x49bc4a);if(_0x546380&&'type'in _0x546380)return _0x546380;}}['_handleAttributeSuggestionDescription'](_0x386fc8,_0x497162){const _0x4e6d0d=_0x497162['data'],_0x30ed81=void 0x0===_0x4e6d0d['newValue']?'removeFormat':'addFormat';_0x386fc8['push']({'type':_0x30ed81,'key':_0x4e6d0d['key']});}['_handleRenameSuggestionDescription'](_0x329ce0,_0x35fd44){_0x329ce0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35fd44['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x77cd98,_0x1e7da8,_0x375d05){if(this['_addDescriptionItems'](_0x77cd98,_0x1e7da8),_0x375d05&&_0x375d05['getFirstRange']()&&!_0x1e7da8['getFirstRange']()['end']['isEqual'](_0x375d05['getFirstRange']()['start'])){const _0x2e4d6d=_0x77cd98[_0x77cd98['length']-0x1],_0x371e89='insertion'==_0x1e7da8['type']?'add':'remove';_0x2e4d6d&&'text'==_0x2e4d6d['type']&&(_0x2e4d6d[_0x371e89]+='\x0a');}}}class U extends _0x562758{['afterInit'](){const _0xf0af5e=this['editor'],_0x1fd0ee=_0xf0af5e['plugins']['get']('TrackChangesEditing');_0xf0af5e['commands']['get']('showAIAssistant')&&_0x1fd0ee['enableCommand']('showAIAssistant');}}class V extends _0x562758{['afterInit'](){const _0x40c311=this['editor'],_0x6a32bf=_0x40c311['plugins']['get']('TrackChangesEditing');_0x40c311['commands']['get']('toggleAi')&&_0x6a32bf['enableCommand']('toggleAi');}}class F extends _0x562758{['afterInit'](){const _0xef96da=this['editor'],_0x344379=_0xef96da['plugins']['get']('TrackChangesEditing');_0xef96da['commands']['get']('aiQuickAction')&&_0x344379['enableCommand']('aiQuickAction');}}class G extends _0x562758{['afterInit'](){const _0x2afc34=this['editor'],_0x56d492=_0x2afc34['locale'];if(!_0x2afc34['plugins']['has']('AlignmentEditing'))return;const _0x5b414f=_0x2afc34['plugins']['get']('TrackChangesEditing');_0x5b414f['enableDefaultAttributesIntegration']('alignment'),_0x5b414f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x56d492,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e49d5=this['editor'],_0x222531=_0x4e49d5['locale'];_0x4e49d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16fc27=>{if('formatBlock'!=_0x16fc27['type'])return;const {data:_0x22eb1c}=_0x16fc27;if(_0x22eb1c&&'alignment'==_0x22eb1c['commandName']){const _0x2b36e3=_0x22eb1c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x222531,'*Format:*\x20%0',function(_0x4f4cac){switch(_0x4f4cac){case'left':return o(_0x222531,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x222531,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x222531,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x222531,'FORMAT_JUSTIFY_TEXT');}}(_0x2b36e3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x562758{['afterInit'](){const _0x1223e5=this['editor'],_0x25dd2d=_0x1223e5['plugins']['get']('TrackChangesEditing'),_0x52dba0=_0x1223e5['locale'];for(const _0x17e33d of ti){if(!_0x1223e5['plugins']['has'](_0x17e33d))continue;const _0x2718b0=_0x17e33d['slice'](0x0,-0x7)['toLowerCase'](),_0x6197a='FORMAT_'+_0x2718b0['toUpperCase']();_0x25dd2d['enableDefaultAttributesIntegration'](_0x2718b0),_0x25dd2d['descriptionFactory']['registerAttributeLabel'](_0x2718b0,o(_0x52dba0,_0x6197a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1536a8=this['editor'],_0x5dfb59=_0x1536a8['locale'],_0x5e41fc=_0x1536a8['plugins']['get']('TrackChangesEditing');function _0x170989(_0x26ad5b,_0x22b466){_0x5e41fc['descriptionFactory']['registerDescriptionCallback'](_0x7bf20b=>{if('formatInline'!=_0x7bf20b['type'])return;const {data:_0x3e6611}=_0x7bf20b;return _0x3e6611&&_0x3e6611['commandName']===_0x26ad5b?_0x3e6611['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dfb59,'*Format:*\x20%0',_0x22b466)}:{'type':'format','content':o(_0x5dfb59,'*Remove\x20format:*\x20%0',_0x22b466)}:void 0x0;});}_0x170989('bold',o(_0x5dfb59,'FORMAT_BOLD')),_0x170989('italic',o(_0x5dfb59,'FORMAT_ITALIC')),_0x170989('underline',o(_0x5dfb59,'FORMAT_UNDERLINE')),_0x170989('code',o(_0x5dfb59,'FORMAT_CODE')),_0x170989('strikethrough',o(_0x5dfb59,'FORMAT_STRIKETHROUGH')),_0x170989('subscript',o(_0x5dfb59,'FORMAT_SUBSCRIPT')),_0x170989('superscript',o(_0x5dfb59,'FORMAT_SUPERSCRIPT'));}}class J extends _0x562758{['afterInit'](){const _0x2ea615=this['editor'],_0x1e6733=_0x2ea615['locale'];if(!_0x2ea615['plugins']['has']('BlockQuoteEditing'))return;const _0x1d28d1=_0x2ea615['plugins']['get']('TrackChangesEditing'),_0x677e41=this['editor']['commands']['get']('blockQuote');_0x1d28d1['enableCommand']('blockQuote',(_0xb0a3ca,_0x28a6c3={})=>{const _0x16af1e=this['editor']['model']['document']['selection'],_0x2ee3f1=_0x28a6c3&&void 0x0!==_0x28a6c3['forceValue']?_0x28a6c3['forceValue']:!_0x677e41['value'];let _0x2d0f5a=[];if(_0x2ee3f1){const _0x10b4bc=Array['from'](_0x16af1e['getSelectedBlocks']())['filter'](_0x2a38fe=>oo(_0x2a38fe)||function(_0x3a69e7,_0x44ef3a){const _0x589489=_0x44ef3a['checkChild'](_0x3a69e7['parent'],'blockQuote'),_0x2f5222=_0x44ef3a['checkChild'](['$root','blockQuote'],_0x3a69e7);return _0x589489&&_0x2f5222;}(_0x2a38fe,this['editor']['model']['schema']));_0x2d0f5a=to(_0x10b4bc,_0x2ea615['model']);}else{const _0x5cdd4c=Array['from'](_0x16af1e['getSelectedBlocks']())['filter'](_0x3bfb57=>oo(_0x3bfb57));_0x2d0f5a=to(_0x5cdd4c,_0x2ea615['model']);}_0x2ea615['model']['change'](()=>{for(const _0x345c2e of _0x2d0f5a)_0x1d28d1['markBlockFormat'](_0x345c2e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2ee3f1}]});});}),_0x1d28d1['descriptionFactory']['registerDescriptionCallback'](_0x5dce14=>{const {data:_0x56aaf5}=_0x5dce14;if(_0x56aaf5&&'blockQuote'==_0x56aaf5['commandName']){const _0x27d5c9=o(_0x1e6733,'ELEMENT_BLOCK_QUOTE');return _0x56aaf5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e6733,'*Set\x20format:*\x20%0',_0x27d5c9)}:{'type':'format','content':o(_0x1e6733,'*Remove\x20format:*\x20%0',_0x27d5c9)};}});}}function oo(_0x11c1e0){return'blockQuote'==_0x11c1e0['parent']['name'];}class q extends _0x562758{['afterInit'](){const _0x305532=this['editor'],_0x16a0c0=_0x305532['locale'],_0x10bfb5=_0x305532['plugins']['get']('TrackChangesEditing');_0x305532['plugins']['has']('BookmarkEditing')&&(_0x10bfb5['enableCommand']('insertBookmark'),_0x10bfb5['enableDefaultAttributesIntegration']('updateBookmark'),_0x10bfb5['descriptionFactory']['registerDescriptionCallback'](_0x5d4621=>{if('insertion'!=_0x5d4621['type']&&'deletion'!=_0x5d4621['type']&&'attribute'!=_0x5d4621['type'])return;const _0x529e62=_0x5d4621['getContainedElement']();if(null==_0x529e62)return;if(!_0x529e62['is']('element','bookmark'))return;const _0x53969e=_0x529e62['getAttribute']('bookmarkId');if('insertion'==_0x5d4621['type'])return{'type':'insertion','content':o(_0x16a0c0,'*Insert:*\x20%0','\x22'+_0x53969e+'\x22\x20'+o(_0x16a0c0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5d4621['type'])return{'type':'deletion','content':o(_0x16a0c0,'*Remove:*\x20%0','\x22'+_0x53969e+'\x22\x20'+o(_0x16a0c0,'ELEMENT_BOOKMARK'))};const {data:_0xa7d4c4}=_0x5d4621;if(!_0xa7d4c4||'bookmarkId'!=_0xa7d4c4['key'])return;return{'type':'format','content':o(_0x16a0c0,'*Set\x20bookmark:*\x20%0','\x22'+_0xa7d4c4['newValue']+'\x22')};}));}}class z extends _0x562758{['afterInit'](){const _0x360353=this['editor'];_0x360353['plugins']['has']('CaseChange')&&(_0x360353['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x360353['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x360353['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x562758{['afterInit'](){const _0x3336a1=this['editor'];_0x3336a1['commands']['get']('ckbox')&&_0x3336a1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x562758{['afterInit'](){const _0x4667f9=this['editor'];if(!_0x4667f9['plugins']['has']('CodeBlock'))return;const _0x503643=_0x4667f9['plugins']['get']('TrackChangesEditing'),_0x408d4f=_0x4667f9['locale'],_0x299c8e=_0x4667f9['config']['get']('codeBlock')['languages'],_0x30c916=_0x4667f9['commands']['get']('codeBlock');_0x503643['enableCommand']('indentCodeBlock'),_0x503643['enableCommand']('outdentCodeBlock'),_0x503643['enableCommand']('codeBlock',(_0x1abe14,_0x540931={})=>{const _0x23a0b8=_0x4667f9['model'],_0x3a1eca=_0x4667f9['model']['document']['selection'],_0x66d3b1=_0x540931&&void 0x0!==_0x540931['forceValue']?_0x540931['forceValue']:!_0x30c916['value'];let _0x5245f1;_0x540931['language']||(_0x540931['language']=_0x299c8e[0x0]['language']),_0x5245f1=_0x66d3b1?Array['from'](_0x3a1eca['getSelectedBlocks']())['filter'](_0x5c60be=>co(_0x5c60be)||function(_0x1d695a,_0x36b7c2){if(_0x1d695a['is']('rootElement')||_0x36b7c2['isLimit'](_0x1d695a))return!0x1;return _0x36b7c2['checkChild'](_0x1d695a['parent'],'codeBlock');}(_0x5c60be,_0x23a0b8['schema'])):Array['from'](_0x3a1eca['getSelectedBlocks']())['filter'](_0x52512e=>co(_0x52512e));const _0x1d9bd6=to(_0x5245f1,_0x23a0b8);_0x23a0b8['change'](()=>{for(const _0x14e520 of _0x1d9bd6)_0x503643['markBlockFormat'](_0x14e520,{'commandName':'codeBlock','commandParams':[{..._0x540931,'forceValue':_0x66d3b1}],'formatGroupId':'blockName'});});}),(_0x503643['descriptionFactory']['registerElementLabel']('codeBlock',_0xb746b4=>o(_0x408d4f,'ELEMENT_CODE_BLOCK',_0xb746b4)),_0x503643['descriptionFactory']['registerDescriptionCallback'](_0xc3f933=>{if('formatBlock'!=_0xc3f933['type'])return;const _0x543efd=_0x408d4f['t'],{data:_0x3760aa}=_0xc3f933;if(!_0x3760aa||'codeBlock'!=_0x3760aa['commandName'])return;const _0x2ea8d4=_0x3760aa['commandParams'][0x0]['language'],_0x3c7dd8=_0x543efd(_0x299c8e['find'](_0x451c92=>_0x451c92['language']===_0x2ea8d4)['label'])['toLowerCase']();return _0x3760aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x408d4f,'*Set\x20format:*\x20%0',o(_0x408d4f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c7dd8+')')}:{'type':'format','content':o(_0x408d4f,'*Remove\x20format:*\x20%0',o(_0x408d4f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x370c97){return'codeBlock'==_0x370c97['name'];}class H extends _0x562758{['afterInit'](){const _0x24337f=this['editor'];if(!_0x24337f['plugins']['has']('CommentsEditing'))return;_0x24337f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x562758{static get['requires'](){return[_0x59067];}['init'](){const _0x36b805=this['editor'],_0x5b1d78=_0x36b805['plugins']['get']('TrackChangesEditing');_0x5b1d78['enableCommand']('delete');const _0x4bdb8a=_0x36b805['commands']['get']('deleteForward');_0x5b1d78['enableCommand']('deleteForward',(_0x36a8e1,_0x5d5c20={})=>{const _0x5b6db5=_0x36b805['model']['createSelection'](_0x36b805['model']['document']['selection']);_0x5b6db5['isCollapsed']&&_0x36b805['model']['modifySelection'](_0x5b6db5,{'direction':'forward','unit':_0x5d5c20['unit']});const _0x4ac9a8=_0x5b6db5['getFirstRange'](),_0x1750b6=_0x2ed57b['fromRange'](_0x4ac9a8);let _0x2607b1;_0x36a8e1(_0x5d5c20),_0x2607b1='$graveyard'==_0x1750b6['root']['rootName']?_0x36b805['model']['createRange'](_0x4ac9a8['start']):_0x36b805['model']['createRange'](_0x1750b6['start'],_0x1750b6['end']),_0x1750b6['detach'](),_0x36b805['model']['enqueueChange'](_0x4bdb8a['buffer']['batch'],_0xbf006f=>{_0x4bdb8a['buffer']['lock'](),_0xbf006f['setSelection'](_0xbf006f['createRange'](_0x2607b1['end'])),_0x4bdb8a['buffer']['unlock']();});});}}class X extends _0x562758{['afterInit'](){const _0x54bb4d=this['editor'];if(!_0x54bb4d['plugins']['has']('ListEditing'))return;const _0x173f31=_0x54bb4d['locale'],_0x48f830=_0x54bb4d['plugins']['get']('TrackChangesEditing'),_0x479cc5=_0x54bb4d['plugins']['has']('TodoListEditing'),_0x3c2f2b=!!_0x54bb4d['config']['get']('list.multiBlock');function _0x53f16c(_0x3335b5){return{'type':'format','content':''+o(_0x173f31,'*Set\x20format:*\x20%0',_0x3335b5)};}function _0x136bcf(_0x3b2374){return{'type':'format','content':''+o(_0x173f31,'*Remove\x20format:*\x20%0',_0x3b2374)};}_0x48f830['enableDefaultAttributesIntegration']('numberedList'),_0x48f830['enableDefaultAttributesIntegration']('bulletedList'),_0x48f830['enableDefaultAttributesIntegration']('customNumberedList'),_0x48f830['enableDefaultAttributesIntegration']('customBulletedList'),_0x48f830['enableDefaultAttributesIntegration']('indentList'),_0x48f830['enableDefaultAttributesIntegration']('outdentList'),_0x48f830['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48f830['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c2f2b&&(_0x48f830['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48f830['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x479cc5&&(_0x48f830['enableDefaultAttributesIntegration']('todoList'),_0x48f830['enableDefaultAttributesIntegration']('checkTodoList'),_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0xbfa97=>{const {data:_0x4c16ee}=_0xbfa97;if(_0x4c16ee&&'todoListChecked'==_0x4c16ee['key'])return{'type':'format','content':_0x4c16ee['newValue']?o(_0x173f31,'*Check\x20item*'):o(_0x173f31,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ba872=>{if(_0x1ba872['batch']['isUndo'])return!0x1;let _0x1918f6=!0x1;const _0x387a7f=_0x48f830['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19babb=>'todoListChecked'===_0x48f830['_getAttributeKey'](_0x19babb));for(const _0x17adb2 of _0x387a7f){'todo'!=_0x17adb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48f830['_findSuggestions'](_0x17adb2['getFirstRange'](),'attribute')['find'](_0x280b79=>'listType'===_0x48f830['_getAttributeKey'](_0x280b79['suggestion']))||(_0x1ba872['removeMarker'](_0x17adb2['getFirstMarker']()),_0x1918f6=!0x0));}return _0x1918f6;})),_0x48f830['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x173f31,'FORMAT_INDENT'));const _0x5aedfb={'type':'format','content':''};_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0x21e05d=>{const {data:_0x15d3ca}=_0x21e05d;if(!_0x15d3ca||'listType'!=_0x15d3ca['key'])return;let _0x1e9d5f=_0x21e05d['head'];for(;_0x1e9d5f;){if(_0x1e9d5f['data']&&(('listStyle'==_0x1e9d5f['data']['key']||'listMarkerStyle'==_0x1e9d5f['data']['key'])&&(_0x1e9d5f['data']['newValue']&&'default'!=_0x1e9d5f['data']['newValue']||'default'!=_0x1e9d5f['data']['oldValue']&&!_0x15d3ca['newValue'])||!_0x3c2f2b&&_0x1e9d5f['data']['key']==m))return _0x5aedfb;_0x1e9d5f=_0x1e9d5f['next'];}if(null==_0x15d3ca['newValue'])switch(_0x15d3ca['oldValue']){case'bulleted':return _0x136bcf(o(_0x173f31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x136bcf(o(_0x173f31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x136bcf(o(_0x173f31,'ELEMENT_TODO_LIST'));}switch(_0x15d3ca['newValue']){case'bulleted':return _0x53f16c(o(_0x173f31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53f16c(o(_0x173f31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53f16c(o(_0x173f31,'ELEMENT_TODO_LIST'));}}),_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0x4f733e=>{const {data:_0x5eec8b}=_0x4f733e;if(_0x5eec8b&&'listIndent'==_0x5eec8b['key'])return null==_0x5eec8b['newValue']||null==_0x5eec8b['oldValue']&&0x0==_0x5eec8b['newValue']?_0x5aedfb:void 0x0;}),_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0x1c738a=>{if('attribute'!=_0x1c738a['type'])return;const {data:_0x148866}=_0x1c738a;if(!_0x148866||'listItemId'!=_0x148866['key'])return;const _0x3d9cdd=Te(_0x1c738a);return'newValue'==_0x3d9cdd?{'type':'format','content':o(_0x173f31,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d9cdd?{'type':'format','content':o(_0x173f31,'*Split:*\x20list\x20item')}:_0x5aedfb;}),_0x54bb4d['model']['document']['registerPostFixer'](_0x5eab5d=>this['listItemIdFixer'](_0x5eab5d)),_0x54bb4d['model']['document']['registerPostFixer'](_0xc1d58b=>this['noTrackChangesFixer'](_0xc1d58b)),_0x54bb4d['model']['document']['on']('change:data',(_0x3cbbeb,_0x4c01ae)=>{if(_0x4c01ae['isUndo']||!_0x4c01ae['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x127e90){if(_0x127e90['batch']['isUndo']||!_0x127e90['batch']['isLocal'])return!0x1;let _0x7b91fb=!0x1;const _0x41ba07=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2619be=>_0x2619be['data']&&'listItemId'==_0x2619be['data']['key'])['filter'](_0x40fc71=>_0x40fc71['data']['newValue']&&_0x40fc71['data']['oldValue']);for(const _0x2d9722 of _0x41ba07)Te(_0x2d9722)||(_0x127e90['removeMarker'](_0x2d9722['getFirstMarker']()),_0x7b91fb=!0x0);return _0x7b91fb;}['noTrackChangesFixer'](_0x2b81c){if(_0x2b81c['batch']['isUndo']||!_0x2b81c['batch']['isLocal'])return!0x1;const _0x45de25=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x45de25['trackChangesCommand']['value'])return!0x1;let _0x39756e=!0x1;const _0x3e6291=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x12bf1c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e7073=>'attribute'==_0x5e7073['type'])['filter'](_0x49e54b=>_0x3e6291['includes'](_0x49e54b['attributeKey']));if(0x0==_0x12bf1c['length'])return _0x39756e;for(const _0x4ea070 of _0x12bf1c){const _0x8d3acf=_0x45de25['_findSuggestions'](_0x4ea070['range'],'attribute')['filter'](_0x5dab7b=>!_0x5dab7b['meta']['isNextTo'])['map'](_0x2ea6d6=>_0x2ea6d6['suggestion'])['filter'](_0x26cb33=>{const _0x5cca44=_0x45de25['_getAttributeKey'](_0x26cb33);return _0x3e6291['includes'](_0x5cca44);});if(_0x8d3acf['length']){for(const _0x1eb16a of _0x8d3acf)_0x2b81c['removeMarker'](_0x1eb16a['getFirstMarker']());_0x39756e=!0x0;}}return _0x39756e;}['assureChains'](){const _0x3ef67b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54fea7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2aaee5;const _0x24c174=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x452ee7=>{if(_0x452ee7['data']['oldRange']||!_0x452ee7['data']['newRange'])return null;if(!_0x452ee7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x290e7c}=_0x3ef67b['_splitMarkerName'](_0x452ee7['name']);if(!_0x3ef67b['hasSuggestion'](_0x290e7c))return null;const _0x587647=_0x3ef67b['getSuggestion'](_0x290e7c);return _0x54fea7['includes'](_0x587647['data']['key']);})['map'](_0x1d72d7=>{const {id:_0x4f5622}=_0x3ef67b['_splitMarkerName'](_0x1d72d7['name']),_0x190ea5=_0x3ef67b['getSuggestion'](_0x4f5622);return _0x2aaee5=_0x190ea5['attributes']['groupId'],_0x190ea5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x24c174['size'])return;const _0x32b7d9=_0x3ef67b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40128b=>'attribute'==_0x40128b['type']&&_0x40128b['data']&&_0x54fea7['includes'](_0x40128b['data']['key'])&&_0x40128b['attributes']['groupId']!=_0x2aaee5)['map'](_0xb5a507=>({'listItem':_0xb5a507['getFirstRange']()['start']['nodeAfter'],'groupId':_0xb5a507['attributes']['groupId']})),_0x1b90e6=new Set();for(const {groupId:_0x5dda36,listItem:_0x2f14dc}of _0x32b7d9)_0x24c174['has'](_0x2f14dc)&&_0x1b90e6['add'](_0x5dda36);for(const _0x40732d of _0x3ef67b['getSuggestions']())_0x1b90e6['has'](_0x40732d['attributes']['groupId'])&&_0x40732d['setAttribute']('groupId',_0x2aaee5);}['_supportLegacySuggestions'](){const _0x502395=this['editor'],_0x665338=_0x502395['locale'],_0x554362=_0x502395['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x554362['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x44d767,_0x2090fa){const _0x5bc80a=[];for(let _0x511164 of _0x44d767)_0x511164['start']['nodeAfter']===_0x511164['end']['parent']&&(_0x511164=_0x502395['model']['createRange'](_0x502395['model']['createPositionAt'](_0x511164['start']['nodeAfter'],0x0))),_0x5bc80a['push'](_0x511164);_0x502395['model']['change'](_0x51ab95=>{const _0x16fa6f=_0x502395['model']['document']['selection'],_0x115d68=Array['from'](_0x16fa6f['getRanges']())['map'](_0x50bae6=>_0x2ed57b['fromRange'](_0x50bae6));_0x51ab95['setSelection'](_0x5bc80a),_0x502395['commands']['get'](_0x2090fa['commandName'])['refresh'](),_0x2090fa['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x502395['execute'](_0x2090fa['commandName'],..._0x2090fa['commandParams']),_0x51ab95['setSelection'](_0x115d68);for(const _0x2d3f7b of _0x115d68)_0x2d3f7b['detach']();});}),_0x554362['descriptionFactory']['registerElementLabel'](function(_0x5aec1b){const _0x42b8eb=!_0x502395['model']['schema']['isObject'](_0x5aec1b),_0x9b67ae=_0x5aec1b['previousSibling'],_0x32618e=_0x5aec1b['nextSibling'],_0x231f97=_0x5aec1b['getAttribute']('listItemId'),_0x3e2701=!_0x9b67ae||_0x9b67ae['getAttribute']('listItemId')!==_0x231f97,_0x457a2d=!_0x32618e||_0x32618e['getAttribute']('listItemId')!==_0x231f97;return _0x42b8eb&&Boolean(_0x231f97)&&_0x3e2701&&_0x457a2d;},_0x4ca0a9=>o(_0x665338,'ELEMENT_LIST_ITEM',_0x4ca0a9));}['_registerLegacyDescription'](){const _0x97914c=this['editor'],_0x53a2be=_0x97914c['locale'];function _0xc6aba4(_0x1f5551){const _0x97d9dc=_0x97914c['commands']['get']('bulletedList')['value'],_0x3597e8=_0x97914c['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f5551?_0x97d9dc:_0x3597e8;}_0x97914c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x21bdd1){if('formatBlock'!=_0x21bdd1['type'])return;const {data:_0x285e5a}=_0x21bdd1;if(!_0x285e5a)return;let _0x14dd12,_0x5d595d,_0x349103,_0x323026;switch(_0x285e5a['commandName']){case'bulletedList':_0x349103=_0x285e5a['commandParams'][0x0]['forceValue'],_0x323026=_0xc6aba4(_0x285e5a['commandName']),_0x14dd12=_0x349103?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x323026&&_0x97914c['config']['get']('list.multiBlock')||(_0x14dd12='*Change\x20to:*\x20%0'),_0x5d595d={'type':'format','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x349103=_0x285e5a['commandParams'][0x0]['forceValue'],_0x323026=_0xc6aba4(_0x285e5a['commandName']),_0x14dd12=_0x349103?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x323026&&_0x97914c['config']['get']('list.multiBlock')||(_0x14dd12='*Change\x20to:*\x20%0'),_0x5d595d={'type':'format','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x14dd12='*Indent:*\x20%0',_0x5d595d={'type':'format','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x14dd12=function(_0x4753ee){const _0x55edfe=_0x4753ee['getFirstRange']();let _0x401660=_0x55edfe['start']['nodeAfter'];for(;_0x401660&&_0x55edfe['containsItem'](_0x401660);){if(_0x401660['getAttribute']('listIndent')>0x0)return!0x1;_0x401660=_0x401660['nextSibling'];}return!0x0;}(_0x21bdd1)?o(_0x53a2be,'*Format:*\x20remove\x20from\x20%0',o(_0x53a2be,function(_0x3af220){return'ELEMENT_'+_0x3af220['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x21bdd1))):o(_0x53a2be,'*Outdent:*\x20%0',o(_0x53a2be,'ELEMENT_LIST_ITEM')),_0x5d595d={'type':'format','content':_0x14dd12};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x285e5a['multipleBlocks']&&(_0x14dd12='*Merge:*\x20%0',_0x5d595d={'type':'deletion','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_LIST_ITEM'))});}return _0x5d595d;});}}function Te(_0x174290){let _0x455073=_0x174290['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x455073;){const _0x5810bf=_0x455073['getAttribute']('listItemId');if(!_0x5810bf)return!0x1;if(_0x5810bf==_0x174290['data']['newValue'])return'newValue';if(_0x5810bf==_0x174290['data']['oldValue'])return'oldValue';_0x455073=_0x455073['previousSibling'];}return!0x1;}class Y extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1945af=this['editor']['config']['get']('list.properties'),_0x302e48=this['editor']['plugins']['get']('TrackChangesEditing');_0x1945af['styles']&&_0x302e48['enableDefaultAttributesIntegration']('listStyle'),_0x1945af['reversed']&&_0x302e48['enableDefaultAttributesIntegration']('listReversed'),_0x1945af['startIndex']&&_0x302e48['enableDefaultAttributesIntegration']('listStart');const _0x5ea8e5={'type':'format','content':''};_0x302e48['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1ded35=this['editor']['locale'];_0x302e48['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1ded35,'FORMAT_LIST_REVERSED')),_0x302e48['descriptionFactory']['registerDescriptionCallback'](_0x143eb6=>{const {data:_0xd24b8d}=_0x143eb6;if(_0xd24b8d&&'listReversed'==_0xd24b8d['key'])return null==_0xd24b8d['newValue']||0x0==_0xd24b8d['newValue']&&null==_0xd24b8d['oldValue']?_0x5ea8e5:void 0x0;}),_0x302e48['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1ded35,'FORMAT_LIST_START')),_0x302e48['descriptionFactory']['registerDescriptionCallback'](_0x345223=>{const {data:_0x397bab}=_0x345223;if(_0x397bab&&'listStart'==_0x397bab['key'])return null==_0x397bab['newValue']||0x1==_0x397bab['newValue']&&null==_0x397bab['oldValue']?_0x5ea8e5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46f793=>{if(_0x46f793['batch']['isUndo'])return!0x1;let _0x5680dc=!0x1;const _0x458535=_0x302e48['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53cac9=>{const _0x2fe4e6=_0x302e48['_getAttributeKey'](_0x53cac9);return'listStart'==_0x2fe4e6||'listReversed'==_0x2fe4e6;});for(const _0x2510c5 of _0x458535){const _0x337a3d=_0x2510c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x337a3d||'customNumbered'==_0x337a3d)continue;_0x302e48['_findSuggestions'](_0x2510c5['getFirstRange'](),'attribute')['find'](_0x1162f6=>'listType'==_0x302e48['_getAttributeKey'](_0x1162f6['suggestion']))||(_0x46f793['removeMarker'](_0x2510c5['getFirstMarker']()),_0x5680dc=!0x0);}return _0x5680dc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4cc918){const _0x1afef7=this['editor']['locale'],{data:_0x139c1f}=_0x4cc918,_0x553cdf={'type':'format','content':''};if(!_0x139c1f||'listStyle'!=_0x139c1f['key'])return;if(!_0x139c1f['oldValue'])return'default'==_0x139c1f['newValue']?_0x553cdf:{'type':'format','content':''+o(_0x1afef7,'*Set\x20format:*\x20%0',o(_0x1afef7,this['_getTranslationKeyForListStyle'](_0x139c1f['newValue'])))};if(!_0x139c1f['newValue']){if('default'==_0x139c1f['oldValue'])return _0x553cdf;let _0x495243=_0x4cc918['head'];for(;_0x495243;){if(_0x495243['data']&&'listType'==_0x495243['data']['key']&&_0x495243['data']['newValue'])return _0x553cdf;_0x495243=_0x495243['next'];}return{'type':'format','content':''+o(_0x1afef7,'*Remove\x20format:*\x20%0',o(_0x1afef7,this['_getTranslationKeyForListStyle'](_0x139c1f['oldValue'])))};}if('default'!=_0x139c1f['newValue'])return{'type':'format','content':''+o(_0x1afef7,'*Set\x20format:*\x20%0',o(_0x1afef7,this['_getTranslationKeyForListStyle'](_0x139c1f['newValue'])))};let _0x4c6a31=_0x4cc918['head'];for(;_0x4c6a31;){if(_0x4c6a31['data']&&'listType'==_0x4c6a31['data']['key']&&_0x4c6a31['data']['newValue']&&_0x4c6a31['data']['oldValue'])return _0x553cdf;_0x4c6a31=_0x4c6a31['next'];}return{'type':'format','content':o(_0x1afef7,'*Set\x20format:*\x20%0',o(_0x1afef7,'ELEMENT_'+_0x4cc918['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1eb5c0=this['editor'],_0x1a60be=_0x1eb5c0['locale'];_0x1eb5c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eac05=>{if('formatBlock'!=_0x3eac05['type'])return;const {data:_0x442309}=_0x3eac05;if(!_0x442309)return;let _0x117e7b,_0x329d98;switch(_0x442309['commandName']){case'listStyle':_0x117e7b='*Change\x20to:*\x20%0',_0x329d98={'type':'format','content':o(_0x1a60be,_0x117e7b,o(_0x1a60be,this['_getTranslationKeyForListStyle'](_0x442309['commandParams'][0x0]['type'])))};break;case'listReversed':_0x117e7b=_0x442309['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x329d98={'type':'format','content':o(_0x1a60be,_0x117e7b)};break;case'listStart':_0x117e7b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x329d98={'type':'format','content':o(_0x1a60be,_0x117e7b,_0x442309['commandParams'][0x0]['startIndex'])};}return _0x329d98;});}['_getTranslationKeyForListStyle'](_0x58b833){return'ELEMENT_'+function(_0xf7e000){if(ye['includes'](_0xf7e000))return'bulleted';if(Se['includes'](_0xf7e000))return'numbered';return null;}(_0x58b833)['toUpperCase']()+'_LIST_'+_0x58b833['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x562758{['afterInit'](){const _0x47fe79=this['editor'];_0x47fe79['commands']['get']('emoji')&&_0x47fe79['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x562758{static get['requires'](){return[_0x421073];}['init'](){const _0x11c173=this['editor'],_0x293ad1=_0x11c173['plugins']['get']('TrackChangesEditing'),_0x441585=_0x11c173['commands']['get']('enter');_0x293ad1['enableCommand']('enter',()=>{_0x11c173['model']['change'](_0x3047db=>{const _0x302cf2=_0x11c173['model']['document']['selection'],_0x5d1ce6=_0x302cf2['getFirstPosition'](),_0x1fac24=_0x2ed57b['fromRange'](_0x302cf2['getFirstRange']());if(_0x441585['enterBlock'](_0x3047db)){const _0x51d7cc=_0x11c173['model']['createPositionAt'](_0x5d1ce6['parent']['nextSibling'],0x0),_0x6e1b1b=_0x3047db['createRange'](_0x5d1ce6,_0x51d7cc);_0x293ad1['markInsertion'](_0x6e1b1b);}else _0x3047db['setSelection'](_0x3047db['createRange'](_0x1fac24['end']));_0x1fac24['detach'](),_0x441585['fire']('afterExecute',{'writer':_0x3047db});});});}}class nt extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11a6ba=this['editor']['plugins']['get']('TrackChangesEditing');_0x11a6ba['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11a6ba['enableCommand']('findNext'),_0x11a6ba['enableCommand']('findPrevious'),_0x11a6ba['enableCommand']('replace'),_0x11a6ba['enableCommand']('replaceAll');}['handleFindCommand'](_0x3188a6,_0x31027b,_0x7a0fc7={}){const _0x2b309d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3188a6(_0x2e1c41=>{let _0x115f8a=('string'==typeof _0x31027b?_0x2b309d['findByTextCallback'](_0x31027b,_0x7a0fc7):_0x31027b)(_0x2e1c41);Array['isArray'](_0x115f8a)&&(_0x115f8a={'results':_0x115f8a,'searchText':'string'==typeof _0x31027b?_0x31027b:''});const _0x16d2bd=_0x115f8a['results']['filter'](_0x42b5b5=>!0x1===this['_isInDeletionRange'](_0x42b5b5,_0x2e1c41['item']));return{..._0x115f8a,'results':_0x16d2bd};},_0x7a0fc7);}['_isInDeletionRange'](_0xe6c284,_0x319568){const _0x319bd9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x319568,_0xe6c284['start']),this['editor']['model']['createPositionAt'](_0x319568,_0xe6c284['end']));for(const _0x282c56 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x319bd9['getIntersection'](_0x282c56['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x562758{['afterInit'](){const _0x105bbf=this['editor']['locale'],_0x103563=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5aa7d0,commandName:_0x2e5202}of eo)this['editor']['plugins']['has'](_0x5aa7d0)&&_0x103563['enableDefaultAttributesIntegration'](_0x2e5202);_0x103563['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x105bbf,'FORMAT_FONT_SIZE')),_0x103563['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x105bbf,'FORMAT_FONT_FAMILY')),_0x103563['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x105bbf,'FORMAT_FONT_COLOR')),_0x103563['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x105bbf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x372680=this['editor'],_0x388661=_0x372680['locale'];_0x372680['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1075cc=>{const _0x4feff2=_0x388661['t'];if('formatInline'!=_0x1075cc['type'])return;const {data:_0x281b0a}=_0x1075cc;if(null!=_0x281b0a){if('fontSize'==_0x281b0a['commandName']){const _0x3245e8=_0x281b0a['commandParams'][0x0]['value'];if(_0x3245e8){const _0x50494c=_0x4feff2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2116e3=>_0x2116e3['model']==_0x3245e8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x388661,'*Set\x20font\x20size:*\x20%0',_0x50494c)};}return{'type':'format','content':o(_0x388661,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x281b0a['commandName']){const _0x2ff8bd=_0x281b0a['commandParams'][0x0]['value'];return _0x2ff8bd?{'type':'format','content':o(_0x388661,'*Set\x20font\x20family:*\x20%0',_0x2ff8bd)}:{'type':'format','content':o(_0x388661,'*Reset\x20font\x20family*')};}if('fontColor'==_0x281b0a['commandName']){const _0x26f822=_0x281b0a['commandParams'][0x0]['value'];if(_0x26f822){const _0x3402c2=_0x2abc75(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2dfe67=>_0x2dfe67['model']==_0x26f822);let _0x1dff0c=_0x26f822,_0x37a9c3='';return _0x3402c2&&(_0x1dff0c=_0x3402c2['label'],_0x37a9c3=_0x4feff2(_0x1dff0c)['toLowerCase']()),{'type':'format','content':o(_0x388661,'*Set\x20font\x20color:*\x20%0',_0x37a9c3)['trim'](),'color':{'value':_0x26f822,'title':_0x37a9c3||_0x1dff0c}};}return{'type':'format','content':o(_0x388661,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x281b0a['commandName']){const _0x20d70c=_0x281b0a['commandParams'][0x0]['value'];if(_0x20d70c){const _0x33b17a=_0x2abc75(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x253920=>_0x253920['model']==_0x20d70c);let _0x237964=_0x20d70c,_0x3a6498='';return _0x33b17a&&(_0x237964=_0x33b17a['label'],_0x3a6498=_0x4feff2(_0x237964)['toLowerCase']()),{'type':'format','content':o(_0x388661,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a6498)['trim'](),'color':{'value':_0x20d70c,'title':_0x3a6498||_0x237964}};}return{'type':'format','content':o(_0x388661,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x562758{['afterInit'](){const {plugins:_0x4091fb}=this['editor'];_0x4091fb['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4091fb['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2722eb,plugins:_0x25c9b0,commands:_0x228886}=this['editor'],_0xd99ad6=_0x25c9b0['get']('TrackChangesEditing');_0x228886['get']('footnotesStyle')&&_0xd99ad6['enableDefaultAttributesIntegration']('footnotesStyle'),_0x228886['get']('footnotesStart')&&_0xd99ad6['enableDefaultAttributesIntegration']('footnotesStart'),_0xd99ad6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2722eb,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xd99ad6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2722eb,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x858ac8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xec972e,commands:_0x25b6fb}=this['editor'];_0x25b6fb['get']('insertFootnote')&&_0x858ac8['enableCommand']('insertFootnote'),_0x858ac8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x25d8de=>o(_0xec972e,'ELEMENT_FOOTNOTE_REF',_0x25d8de)),_0x858ac8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4c020d=>o(_0xec972e,'ELEMENT_FOOTNOTE_DEFINITION',_0x4c020d)),_0x858ac8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x274e6a=>o(_0xec972e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x274e6a));}}class st extends _0x562758{['afterInit'](){const _0x5564ed=this['editor'],_0x2ac4d5=_0x5564ed['plugins']['get']('TrackChangesEditing'),_0x9c9c10=_0x5564ed['commands']['get']('copyFormat'),_0x493fba=_0x5564ed['commands']['get']('pasteFormat');_0x9c9c10&&_0x493fba&&(_0x2ac4d5['enableDefaultAttributesIntegration']('pasteFormat'),_0x2ac4d5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x27cff4=this['editor'],_0x1d856b=_0x27cff4['locale'];_0x27cff4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222520=>{if('formatBlock'!=_0x222520['type']&&'formatInline'!=_0x222520['type'])return;const {data:_0x242f92}=_0x222520;if(_0x242f92&&'pasteFormat'===_0x242f92['commandName']){const _0x2591f7=[],_0x5cfd42=_0x242f92['commandParams'][0x0];for(const [_0x50a98e,_0x2580c2]of Object['entries'](_0x5cfd42))_0x2591f7['push'](ro(_0x27cff4,_0x50a98e,_0x2580c2));return _0x2591f7['length']?{'type':'format','content':o(_0x1d856b,'*Set\x20format\x20to:*\x20%0',_0x2591f7['join'](',\x20'))}:{'type':'format','content':o(_0x1d856b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x351e9b,_0x321f73,_0xe807a6){const _0x1e60ad=_0x351e9b['locale']['t'],_0xd389ed=_0x321f73['split'](/(?=[A-Z])/)['join']('\x20'),_0x51da65=_0x1e60ad(_0xd389ed['charAt'](0x0)['toUpperCase']()+_0xd389ed['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe807a6)return _0x51da65;if('fontColor'===_0x321f73||'fontBackgroundColor'===_0x321f73){const _0x55ebc3=_0x2abc75(_0x351e9b['config']['get']('fontColor.colors'))['find'](_0x31ac3a=>_0x31ac3a['model']==_0xe807a6);return _0x51da65+'\x20('+(_0x55ebc3?_0x1e60ad(_0x55ebc3['label'])['toLowerCase']():_0xe807a6)+')';}if('fontSize'===_0x321f73&&isNaN(parseFloat(_0xe807a6))){const _0x30991f=_0x351e9b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x351e9b['config']['get']('fontSize.options'))['find'](_0xbd557a=>_0xbd557a['model']==_0xe807a6);return _0x51da65+'\x20('+(_0x30991f?_0x1e60ad(_0x30991f['title'])['toLowerCase']():_0xe807a6)+')';}return _0x51da65+'\x20('+_0xe807a6+')';}class ot extends _0x562758{['_headingOptions'];['afterInit'](){const _0x287262=this['editor'];if(!_0x287262['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x287262['config']['get']('heading.options');const _0x1b432f=_0x287262['locale'],_0x653433=_0x287262['plugins']['get']('TrackChangesEditing');_0x653433['enableDefaultAttributesIntegration']('heading');for(const _0x4e12e3 of this['_headingOptions'])'paragraph'!=_0x4e12e3['model']&&_0x653433['descriptionFactory']['registerElementLabel'](_0x4e12e3['model'],_0x1bd814=>{const _0x21a687=this['_getHeadingLevel'](_0x4e12e3['model']);return null!==_0x21a687?_0xb966ac(_0x1bd814,_0x21a687):_0x55233e(_0x1bd814,_0x4e12e3['title']);});function _0xb966ac(_0x54551a,_0x854ce9){return o(_0x1b432f,'ELEMENT_HEADING',[_0x54551a,_0x854ce9]);}function _0x55233e(_0x519763,_0x6ac6b3){return o(_0x1b432f,'ELEMENT_HEADING_CUSTOM',[_0x519763,_0x6ac6b3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f22c8=this['editor'],_0x24db30=_0x2f22c8['locale'];function _0x3bcf54(_0x2a99a6,_0x5063bb){return o(_0x24db30,'ELEMENT_HEADING_CUSTOM',[_0x2a99a6,_0x5063bb]);}_0x2f22c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272620=>{if('formatBlock'!=_0x272620['type'])return;const {data:_0x3ce7c3}=_0x272620;if(_0x3ce7c3&&'heading'==_0x3ce7c3['commandName']){const _0xc61953=_0x3ce7c3['commandParams'][0x0]['value'],_0xb174da=this['_getHeadingLevel'](_0xc61953);if(null!==_0xb174da)return{'type':'format','content':o(_0x24db30,'*Change\x20to:*\x20%0',(_0x30a972=0x1,_0xea53bd=_0xb174da,o(_0x24db30,'ELEMENT_HEADING',[_0x30a972,_0xea53bd])))};const _0x3929eb=this['_headingOptions']['find'](_0x17f1a4=>_0x17f1a4['model']===_0xc61953)['title'];return{'type':'format','content':o(_0x24db30,'*Change\x20to:*\x20%0',_0x3bcf54(0x1,_0x3929eb))};}var _0x30a972,_0xea53bd;});}['_getHeadingLevel'](_0x54e0bc){const _0x17716b=_0x54e0bc['match'](/^heading(\d+)/);if(_0x17716b)return _0x17716b[0x1];const _0x1763aa=this['_headingOptions']?.['find'](_0x1abbd7=>_0x1abbd7['model']==_0x54e0bc);if(_0x1763aa&&_0x1763aa['view']){const _0x107a0f=_0x1763aa['view'],_0x11669d=(_0x107a0f['name']??_0x107a0f)['match'](/^h(\d+)/);if(_0x11669d)return _0x11669d[0x1];}return null;}}class rt extends _0x562758{['afterInit'](){const _0x181ae8=this['editor'];if(!_0x181ae8['plugins']['has']('HighlightEditing'))return;const _0xc6f7c5=_0x181ae8['plugins']['get']('TrackChangesEditing'),_0x39a298=_0x181ae8['locale'];_0xc6f7c5['enableDefaultAttributesIntegration']('highlight'),_0xc6f7c5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x39a298,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21fa02=this['editor'],_0x4eb84a=_0x21fa02['locale'];_0x21fa02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fa398=>{if('formatInline'!=_0x4fa398['type'])return;const {data:_0x64f1bc}=_0x4fa398;if(_0x64f1bc&&'highlight'==_0x64f1bc['commandName']){const _0x68ef02=_0x4eb84a['t'],_0x128498=_0x64f1bc['commandParams'][0x0]['value'];if(_0x128498){const _0x4810eb=_0x21fa02['config']['get']('highlight.options')['find'](_0x48e05b=>_0x48e05b['model']==_0x128498),_0x4ff44e=_0x68ef02(_0x4810eb['title'])['toLowerCase']();return{'type':'format','content':o(_0x4eb84a,'*Set\x20highlight:*\x20%0',_0x4ff44e),'color':{'value':_0x4810eb['color'],'title':_0x4810eb['title']}};}return{'type':'format','content':o(_0x4eb84a,'*Remove\x20highlight*',o(_0x4eb84a,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x562758{['afterInit'](){const _0xc0abcc=this['editor'];if(!_0xc0abcc['plugins']['has']('HorizontalLineEditing'))return;_0xc0abcc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2fb479=_0xc0abcc['plugins']['get']('TrackChangesEditing'),_0x345e3d=_0xc0abcc['locale'];_0x2fb479['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31eb18=>o(_0x345e3d,'ELEMENT_HORIZONTAL_LINE',_0x31eb18));}}class ct extends _0x562758{['afterInit'](){const _0x7da398=this['editor'];if(!_0x7da398['plugins']['has']('HtmlEmbed'))return;const _0x242d82=_0x7da398['plugins']['get']('TrackChangesEditing'),_0x2ada74=_0x7da398['locale'];_0x242d82['descriptionFactory']['registerElementLabel']('rawHtml',_0x51c819=>o(_0x2ada74,'ELEMENT_HTML_EMBED',_0x51c819)),_0x242d82['enableDefaultAttributesIntegration']('htmlEmbed'),_0x242d82['descriptionFactory']['registerDescriptionCallback'](_0x7579cc=>{if('attribute'!=_0x7579cc['type'])return;const {data:_0x51617a}=_0x7579cc;if(_0x51617a&&'value'==_0x51617a['key']&&_0x7579cc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xa1775a=o(_0x2ada74,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2ada74,'*Change\x20%0\x20content*',_0xa1775a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cbf02=this['editor'],_0xe9c835=_0x5cbf02['locale'];_0x5cbf02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x995939=>{if('formatBlock'!=_0x995939['type'])return;const {data:_0x1bea2a}=_0x995939;if(_0x1bea2a&&'htmlEmbed'==_0x1bea2a['commandName']){const _0x136669=o(_0xe9c835,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe9c835,'*Change\x20%0\x20content*',_0x136669)};}});}}class ut extends _0x562758{['afterInit'](){const _0x395f82=this['editor'];if(!_0x395f82['plugins']['has']('ImageEditing'))return;const _0x44a0e4=_0x395f82['plugins']['get']('TrackChangesEditing'),_0x356e24=_0x395f82['plugins']['get']('ImageUtils'),_0x211e40=_0x395f82['locale'];_0x44a0e4['enableCommand']('insertImage'),_0x44a0e4['descriptionFactory']['registerElementLabel']('imageBlock',_0xa31e17=>o(_0x211e40,'ELEMENT_IMAGE',_0xa31e17)),_0x44a0e4['descriptionFactory']['registerElementLabel']('imageInline',_0x4320df=>o(_0x211e40,'ELEMENT_INLINE_IMAGE',_0x4320df)),_0x44a0e4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x211e40,'ELEMENT_CAPTION')),_0x395f82['plugins']['has']('ImageUploadEditing')&&_0x44a0e4['enableCommand']('uploadImage'),_0x395f82['plugins']['has']('ImageBlockEditing')&&_0x395f82['plugins']['has']('ImageInlineEditing')&&(_0x44a0e4['enableCommand']('imageTypeInline',(_0x2cfbfa,_0x43f416)=>{const _0x18cb15=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']);_0x395f82['model']['change'](()=>{_0x44a0e4['markBlockFormat'](_0x18cb15,{'commandName':'imageTypeInline','commandParams':[_0x43f416]},[],'convertBlockImageToInline');});}),_0x44a0e4['enableCommand']('imageTypeBlock',(_0x5dda7c,_0x421473)=>{_0x395f82['model']['change'](_0x3cec4c=>{let _0x17d69=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x5f4152=_0x3cec4c['createRangeOn'](_0x17d69);const _0x81b69=_0xbf4859['fromPosition'](_0x5f4152['start'],'toPrevious'),_0x435719=_0xbf4859['fromPosition'](_0x5f4152['end'],'toNext');_0x44a0e4['forceDefaultExecution'](()=>_0x5dda7c(_0x421473)),_0x17d69=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x5f4152=_0x3cec4c['createRangeOn'](_0x17d69);const _0x3609ac=_0x3cec4c['createRange'](_0x81b69,_0x435719);_0x81b69['detach'](),_0x435719['detach'](),_0x44a0e4['markBlockFormat'](_0x17d69,{'commandName':'imageTypeInline','commandParams':[_0x421473]},[],'convertInlineImageToBlock'),_0x3609ac['start']['isBefore'](_0x5f4152['start'])&&_0x44a0e4['markInsertion'](_0x3cec4c['createRange'](_0x3609ac['start'],_0x5f4152['start']),'convertInlineImageToBlock'),_0x5f4152['end']['isBefore'](_0x3609ac['end'])&&_0x44a0e4['markInsertion'](_0x3cec4c['createRange'](_0x5f4152['end'],_0x3609ac['end']),'convertInlineImageToBlock');});}),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x44a0e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x470623])=>{const _0xf86978=_0x44a0e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a90ee=_0x470623['start'],_0xf6fb71=_0x470623['end'];const _0x2f960a=_0x395f82['model']['schema']['getNearestSelectionRange'](_0x4a90ee,'backward'),_0x2ab895=_0x395f82['model']['schema']['getNearestSelectionRange'](_0xf6fb71,'forward');_0x2f960a['isCollapsed']&&(_0x4a90ee=_0x2f960a['start']),_0x2ab895['isCollapsed']&&(_0xf6fb71=_0x2ab895['end']),_0xf86978([_0x395f82['model']['createRange'](_0x4a90ee,_0xf6fb71)]);}),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18530c),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18530c)),_0x395f82['plugins']['has']('ImageCaptionEditing')&&(_0x44a0e4['enableCommand']('toggleImageCaption',(_0x1fb368,_0x858df7)=>{const _0x3488ad=_0x395f82['plugins']['get']('ImageCaptionUtils');let _0x265a3a=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x42aec3=_0x3488ad['getCaptionFromImageModelElement'](_0x265a3a);_0x395f82['model']['change'](()=>{if(_0x42aec3)return void _0x44a0e4['markDeletion'](_0x395f82['model']['createRangeOn'](_0x42aec3));const _0x5967b2=_0x356e24['isBlockImage'](_0x265a3a);_0x1fb368(_0x858df7),_0x265a3a=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x42aec3=_0x3488ad['getCaptionFromImageModelElement'](_0x265a3a),_0x44a0e4['markInsertion'](_0x395f82['model']['createRangeOn'](_0x42aec3),_0x5967b2?null:'imageCaption');});}),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18530c));const _0x1e81e9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c7d0a(_0x52689a,_0x2ba029){const _0x39cc23=_0x1e81e9['findIndex'](({type:_0x3275e2,subType:_0x3999a7})=>_0x52689a['type']==_0x3275e2&&_0x52689a['subType']==_0x3999a7),_0x2d6ef7=_0x1e81e9['findIndex'](({type:_0x1ab604,subType:_0x1544f4})=>_0x2ba029['type']==_0x1ab604&&_0x2ba029['subType']==_0x1544f4);if(_0x39cc23<0x0||_0x2d6ef7<0x0)return!0x1;const _0x11a072=_0x52689a['getFirstRange'](),_0x109789=_0x2ba029['getFirstRange']();if((0x0==_0x39cc23||0x1==_0x39cc23)&&0x2==_0x2d6ef7&&_0x11a072['isIntersecting'](_0x109789))return!0x0;if(0x2==_0x39cc23&&0x3==_0x2d6ef7){const _0x3f8495=_0x44a0e4['_findSuggestions'](_0x11a072,'insertion')['filter'](({suggestion:_0x5a6562,meta:_0x4b2b47})=>_0x4b2b47['isOwn']&&'convertInlineImageToBlock'==_0x5a6562['subType']);if(_0x3f8495['length']>0x1&&_0x109789['end']['isEqual'](_0x11a072['start']))return!0x0;if(0x1==_0x3f8495['length']&&(_0x11a072['start']['isEqual'](_0x109789['end'])||_0x11a072['end']['isEqual'](_0x109789['start'])))return!0x0;}if(0x3==_0x39cc23&&0x3==_0x2d6ef7&&_0x11a072['start']['isBefore'](_0x109789['start'])){const _0x401aed=_0x11a072['end']['nodeAfter'],_0x20c7b1=_0x109789['start']['nodeBefore'];return _0x356e24['isBlockImage'](_0x401aed)&&_0x401aed===_0x20c7b1;}return!0x1;}function _0x18530c(_0x5972aa,_0x407713){return _0x3c7d0a(_0x5972aa,_0x407713)?[_0x5972aa,_0x407713]:_0x3c7d0a(_0x407713,_0x5972aa)?[_0x407713,_0x5972aa]:null;}_0x395f82['plugins']['has']('ImageResize')&&(_0x44a0e4['enableDefaultAttributesIntegration']('resizeImage'),_0x44a0e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x211e40,'FORMAT_IMAGE_SIZE'))),_0x395f82['plugins']['has']('ImageTextAlternativeEditing')&&_0x44a0e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x395f82['plugins']['has']('PictureEditing')&&_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x436596=>{if('attribute'!=_0x436596['type'])return;const {data:_0x39cad3}=_0x436596;return _0x39cad3&&'sources'==_0x39cad3['key']?{'type':'format','content':''}:void 0x0;}),_0x395f82['plugins']['has']('ImageSizeAttributes')&&_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x48b1b7=>{if('attribute'!=_0x48b1b7['type'])return;const {data:_0x571fe0}=_0x48b1b7;return!_0x571fe0||'width'!=_0x571fe0['key']&&'height'!=_0x571fe0['key']?void 0x0:{'type':'format','content':''};}),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x538432=>{if(!!_0x1e81e9['find'](({type:_0x2033c6,subType:_0x1e5777})=>_0x538432['type']==_0x2033c6&&_0x538432['subType']==_0x1e5777))return _0x538432['previous']?{}:void 0x0;}),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x332c60=>{if('insertion'==_0x332c60['type']||'deletion'==_0x332c60['type']){const _0x13e474=_0x332c60['getContainedElement']();if(_0x13e474&&_0x13e474['is']('element','caption'))return{'type':'insertion'==_0x332c60['type']?'addObject':'removeObject','element':_0x13e474,'quantity':0x1};}}),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x377423=>'formatBlock'==_0x377423['type']&&'convertInlineImageToBlock'==_0x377423['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x377423['type']&&'convertBlockImageToInline'==_0x377423['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x3bbe33=>{if('attribute'!=_0x3bbe33['type'])return;const {data:_0x2f778c}=_0x3bbe33;if(!_0x2f778c||'alt'!=_0x2f778c['key'])return;const _0x33bfdf=_0x2f778c['newValue'];return _0x33bfdf?{'type':'format','content':o(_0x211e40,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33bfdf+'\x22')}:{'type':'format','content':o(_0x211e40,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54da21=this['editor'],_0x50dbf3=_0x54da21['locale'];_0x54da21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xde4d9f=>{if('formatBlock'!=_0xde4d9f['type']&&'formatInline'!=_0xde4d9f['type'])return;const {data:_0x327ad1}=_0xde4d9f;if(_0x327ad1){if('imageTextAlternative'==_0x327ad1['commandName']){const _0x57dd0f=_0x327ad1['commandParams'][0x0]['newValue'];return _0x57dd0f?{'type':'format','content':o(_0x50dbf3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57dd0f+'\x22')}:{'type':'format','content':o(_0x50dbf3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x327ad1['commandName']){const _0x3eaa33=_0x327ad1['commandParams'][0x0]['width'];return _0x3eaa33?{'type':'format','content':o(_0x50dbf3,'*Set\x20image\x20width:*\x20%0',_0x3eaa33)}:{'type':'format','content':o(_0x50dbf3,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5c474d=this['editor']['locale'],_0x212029=this['editor']['plugins']['get']('TrackChangesEditing');_0x212029['enableDefaultAttributesIntegration']('replaceImageSource'),_0x212029['descriptionFactory']['registerDescriptionCallback'](_0x577085=>{if('attribute'!=_0x577085['type'])return;const {data:_0x3c06c7}=_0x577085;return _0x3c06c7&&'src'==_0x3c06c7['key']?_0x3c06c7['newValue']&&_0x3c06c7['oldValue']?{'type':'format','content':o(_0x5c474d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e7c1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e7c1e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2e7c1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e7c1e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2e7c1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39a8fc=this['editor'],_0x359bd1=_0x39a8fc['locale'];_0x39a8fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abc94=>{if('formatBlock'!=_0x3abc94['type']&&'formatInline'!=_0x3abc94['type'])return;const {data:_0x5d7f6a}=_0x3abc94;if(!_0x5d7f6a||'replaceImageSource'!=_0x5d7f6a['commandName'])return;return{'type':'format','content':o(_0x359bd1,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x562758{['afterInit'](){const _0x23e53b=this['editor'];if(!_0x23e53b['plugins']['has']('ImageStyleEditing'))return;const _0x280863=_0x23e53b['plugins']['get']('TrackChangesEditing'),_0x2eb3e5=_0x23e53b['plugins']['get']('ImageUtils'),_0x269cf6={};_0x280863['enableCommand']('imageStyle',(_0x13c4f7,_0x50f7ce)=>{const _0x51cb75=_0x23e53b['plugins']['get']('Users')['me'],_0x24be84=_0x23e53b['commands']['get']('imageStyle');let _0x1cb1a3=_0x2eb3e5['getClosestSelectedImageElement'](_0x23e53b['model']['document']['selection']),_0x369664=_0x23e53b['model']['createRangeOn'](_0x1cb1a3),_0x94d9ff=_0x24be84['value'];if(_0x94d9ff==_0x50f7ce['value'])return;const _0xcfea3a={'commandName':'imageStyle','commandParams':[_0x50f7ce],'formatGroupId':_0x341aab()};_0x23e53b['model']['change'](()=>{if(_0x280863['getSuggestions']()['filter'](_0x217b20=>_0x217b20['isInContent']&&_0x51cb75==_0x217b20['author']&&('formatBlock'==_0x217b20['type']||'formatInline'==_0x217b20['type'])&&('imageStylePreApply'==_0x217b20['subType']||'imageStylePostApply'==_0x217b20['subType'])&&_0x217b20['getFirstRange']()['isEqual'](_0x369664))['forEach'](_0x59e94f=>_0x280863['discardSuggestion'](_0x59e94f['head'])),_0x1cb1a3=_0x2eb3e5['getClosestSelectedImageElement'](_0x23e53b['model']['document']['selection']),_0x369664=_0x23e53b['model']['createRangeOn'](_0x1cb1a3),_0x24be84['refresh'](),_0x23e53b['commands']['get']('imageTypeInline')['refresh'](),_0x23e53b['commands']['get']('imageTypeBlock')['refresh'](),_0x94d9ff=_0x24be84['value'],_0x94d9ff!=_0x50f7ce['value'])return _0x2eb3e5['isInlineImage'](_0x1cb1a3)&&_0x24be84['shouldConvertImageType'](_0x50f7ce['value'],_0x1cb1a3)?(_0x13c4f7({..._0x50f7ce,'setImageSizes':!0x1}),_0x1cb1a3=_0x2eb3e5['getClosestSelectedImageElement'](_0x23e53b['model']['document']['selection']),void _0x280863['markBlockFormat'](_0x1cb1a3,{..._0xcfea3a,'commandReversedParams':[{'value':_0x94d9ff||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2eb3e5['isBlockImage'](_0x1cb1a3)?_0x280863['markBlockFormat'](_0x1cb1a3,_0xcfea3a,[],'imageStylePostApply'):_0x280863['markInlineFormat'](_0x369664,_0xcfea3a,'imageStylePostApply'));});});for(const _0x9ff29f of _0x23e53b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x269cf6[_0x9ff29f['name']]=_0x9ff29f['title']['toLowerCase']();_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x280863['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4cb259])=>{_0x2eb3e5['setImageNaturalSizeAttributes'](_0x4cb259['getContainedElement']());}),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53b704,_0x304117)=>{_0x280863['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53b704,{'commandName':_0x304117['commandName'],'commandParams':_0x304117['commandReversedParams']});}),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5bc4ed,_0x25b77c){if(_0x422a79(_0x5bc4ed,_0x25b77c))return[_0x5bc4ed,_0x25b77c];if(_0x422a79(_0x25b77c,_0x5bc4ed))return[_0x25b77c,_0x5bc4ed];return null;});const _0x15f88f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x422a79(_0x4f0e4e,_0x567483){const _0x523764=_0x15f88f['findIndex'](({type:_0x334bf6,subType:_0x2c42a3})=>_0x4f0e4e['type']==_0x334bf6&&_0x4f0e4e['subType']==_0x2c42a3),_0x3ce57e=_0x15f88f['findIndex'](({type:_0x5781f8,subType:_0x29d2ec})=>_0x567483['type']==_0x5781f8&&_0x567483['subType']==_0x29d2ec);if(_0x523764<0x0||_0x3ce57e<0x0)return!0x1;const _0x33d250=_0x4f0e4e['getFirstRange'](),_0x3084d5=_0x567483['getFirstRange']();if((0x0==_0x523764||0x1==_0x523764)&&0x2==_0x3ce57e&&_0x33d250['isIntersecting'](_0x3084d5))return!0x0;if(0x2==_0x523764&&0x3==_0x3ce57e){const _0x3cc947=_0x280863['_findSuggestions'](_0x33d250,'insertion')['filter'](({suggestion:_0x233e95,meta:_0x5edc8d})=>_0x5edc8d['isOwn']&&'convertInlineImageToBlock'==_0x233e95['subType']);if(_0x3cc947['length']>0x1&&_0x3084d5['end']['isEqual'](_0x33d250['start']))return!0x0;if(0x1==_0x3cc947['length']&&(_0x33d250['start']['isEqual'](_0x3084d5['end'])||_0x33d250['end']['isEqual'](_0x3084d5['start'])))return!0x0;}if(0x3==_0x523764&&0x3==_0x3ce57e&&_0x33d250['start']['isBefore'](_0x3084d5['start'])){const _0x415c3c=_0x33d250['end']['nodeAfter'],_0x3eab9e=_0x3084d5['start']['nodeBefore'];return _0x2eb3e5['isBlockImage'](_0x415c3c)&&_0x415c3c===_0x3eab9e;}return!0x1;}_0x23e53b['model']['document']['registerPostFixer'](()=>{let _0x198687=!0x1;const _0x62a17d=Array['from'](_0x23e53b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x109835,data:_0x50c66d}of _0x62a17d){const {group:_0x598767,type:_0x26d1e5,subType:_0x4df213,id:_0x34be08}=_0x280863['_splitMarkerName'](_0x109835);if('suggestion'==_0x598767&&_0x280863['hasSuggestion'](_0x34be08)){if('formatBlock'==_0x26d1e5&&('imageStylePreApply'==_0x4df213||'imageStylePostApply'==_0x4df213)){const _0x95d720=_0x280863['getSuggestion'](_0x34be08);if(_0x50c66d['newRange']){const _0x1057d0=_0x95d720['getFirstRange']()['getContainedElement']();if(_0x2eb3e5['isBlockImage'](_0x1057d0))continue;_0x280863['discardSuggestion'](_0x95d720),_0x198687=!0x0;}}if('insertion'==_0x26d1e5&&'imageCaption'==_0x4df213&&!_0x50c66d['newRange']){const _0x5bc0db=_0x280863['getSuggestion'](_0x34be08);_0x5bc0db['next']&&_0x5bc0db['next']['isInContent']&&(_0x280863['discardSuggestion'](_0x5bc0db['next']),_0x198687=!0x0);}}}return _0x198687;}),this['_registerLegacyDescription'](_0x269cf6);}['_registerLegacyDescription'](_0x244c34){const _0x16f117=this['editor'],_0x1d5509=_0x16f117['locale'];_0x16f117['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x397cad=>{if('formatBlock'!=_0x397cad['type']&&'formatInline'!=_0x397cad['type'])return;const {data:_0x189877}=_0x397cad;if(!_0x189877||'imageStyle'!=_0x189877['commandName'])return;const _0xc9109b=_0x189877['commandParams'][0x0]['value'];return _0xa906ae('side'===_0xc9109b?o(_0x1d5509,'FORMAT_SIDE_IMAGE'):_0x244c34[_0xc9109b]||_0xc9109b);function _0xa906ae(_0xe036a8){return{'type':'format','content':o(_0x1d5509,'*Format:*\x20%0',_0xe036a8)};}});}}class lt extends _0x562758{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3ce109){super(_0x3ce109),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e6740=this['editor'],_0x287475=_0x5e6740['commands']['get']('importWord'),_0xfd6594=_0x5e6740['commands']['get']('trackChanges');_0x287475&&(_0x287475['on']('execute',(_0xfbb65c,[,_0x401eea])=>{this['_trackChangesValueDuringImport']=_0xfd6594['value'],_0x401eea['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x287475,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x287475,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xfd6594['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e6740['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4ccd0e,_0xbe114f){const {suggestions:_0xd833a6}=_0xbe114f,_0x1c4291=this['editor']['commands']['get']('trackChanges'),_0x49fffd=_0x1c4291['value'];this['_trackChangesValueDuringImport']!==_0x49fffd&&(_0x1c4291['execute'](),this['_trackChangesExecuted']=!0x0),_0xd833a6&&_0xd833a6['forEach'](({id:_0xa74e95,type:_0x2a6c2a,author:_0x56396c,created_at:_0x4ff7db})=>{const _0x375713={'id':_0xa74e95,'type':_0x2a6c2a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x56396c,'createdAt':_0x4ff7db?new Date(_0x4ff7db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x375713);});}}class gt extends _0x562758{['afterInit'](){const _0x22f639=this['editor'],_0x53d395=_0x22f639['plugins']['get']('TrackChangesEditing');if(_0x22f639['plugins']['has']('IndentEditing')&&(_0x53d395['enableCommand']('indent'),_0x53d395['enableCommand']('outdent')),_0x22f639['plugins']['has']('IndentBlock')){for(const _0x20f989 of['indentBlock','outdentBlock'])_0x53d395['enableDefaultAttributesIntegration'](_0x20f989);if(_0x22f639['plugins']['has']('ListEditing')){for(const _0x3d5071 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x53d395['enableDefaultAttributesIntegration'](_0x3d5071);}}const _0x52dab4=_0x22f639['locale'];_0x53d395['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x52dab4,'FORMAT_INDENT')),_0x53d395['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x52dab4,'FORMAT_INDENT')),_0x53d395['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x52dab4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x99ec9b=this['editor'],_0x1d3751=_0x99ec9b['locale'],_0x20d0ef=_0x99ec9b['plugins']['get']('TrackChangesEditing');_0x20d0ef['descriptionFactory']['registerDescriptionCallback'](_0x41e369=>{if('formatBlock'!=_0x41e369['type'])return;const {data:_0x17b1fc}=_0x41e369;if(!_0x17b1fc)return;if('indentBlock'!=_0x17b1fc['commandName']&&'outdentBlock'!=_0x17b1fc['commandName'])return;const _0xc9b11d=_0x41e369['getItems']()[0x0],_0x2dd942=_0x20d0ef['descriptionFactory']['getItemLabel'](_0xc9b11d);return'indentBlock'==_0x17b1fc['commandName']?{'type':'format','content':o(_0x1d3751,'*Indent:*\x20%0',_0x2dd942)}:'outdentBlock'==_0x17b1fc['commandName']?{'type':'format','content':o(_0x1d3751,'*Outdent:*\x20%0',_0x2dd942)}:void 0x0;});}}class mt extends _0x562758{static get['requires'](){return[_0x1357fe];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x562758{['afterInit'](){const _0x227502=this['editor'];if(!_0x227502['plugins']['has']('LinkEditing'))return;const _0x2a514d=_0x227502['plugins']['get']('TrackChangesEditing'),_0x5a32d5=_0x227502['commands']['get']('link');_0x2a514d['enableDefaultAttributesIntegration']('link'),_0x2a514d['enableDefaultAttributesIntegration']('unlink');for(const _0x893f9 of _0x5a32d5['manualDecorators'])_0x2a514d['descriptionFactory']['registerAttributeLabel'](_0x893f9['id'],'link\x20('+_0x893f9['label']['toLowerCase']()+')');_0x2a514d['descriptionFactory']['registerDescriptionCallback'](_0xe7672b=>{if('attribute'!=_0xe7672b['type'])return;const {data:_0x370125}=_0xe7672b;if(!_0x370125||'linkHref'!=_0x370125['key'])return;const _0x21e515=_0x370125['newValue'],_0x1992bb=_0x227502['locale'];return{'type':'format','content':null==_0x21e515?o(_0x1992bb,'*Remove\x20link*'):o(_0x1992bb,'*Set\x20link:*\x20%0','\x22'+_0x21e515+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc9de=this['editor'],_0x246339=_0x4bc9de['locale'];_0x4bc9de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6672ab=>{if('formatInline'!=_0x6672ab['type'])return;const {data:_0x18d64c}=_0x6672ab;if(_0x18d64c){if('link'==_0x18d64c['commandName']){const _0x3bbbd1=_0x18d64c['commandParams'][0x0];return{'type':'format','content':o(_0x246339,'*Set\x20link:*\x20%0','\x22'+_0x3bbbd1+'\x22')};}return'unlink'==_0x18d64c['commandName']?{'type':'format','content':o(_0x246339,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x562758{['afterInit'](){const _0x287966=this['editor'],_0x3f755b=_0x287966['locale'];if(!_0x287966['plugins']['has']('LegacyListEditing'))return;const _0x4540f2=_0x287966['plugins']['get']('TrackChangesEditing'),_0x10e6cc=_0x287966['plugins']['has']('LegacyTodoListEditing');function _0x531331(_0x26cace){return()=>{const _0x5a8131=_0x287966['model']['document']['selection'],_0x5d3467=_0x287966['commands']['get'](_0x26cace);if(_0x5d3467['value'])return void _0x287966['execute']('paragraph',{});const _0x3439fb=_0x26cace['slice'](0x0,-0x4),_0x5f12a6=function(_0x1238c5,_0x196c6d,_0x4efefa){let _0x3a0524=Array['from'](_0x1238c5)['filter'](_0x3164cb=>function(_0x14f66d,_0x462029){return _0x462029['checkChild'](_0x14f66d['parent'],'listItem')&&!_0x462029['isObject'](_0x14f66d);}(_0x3164cb,_0x4efefa));_0x3a0524=_0x3a0524['filter'](_0x467c04=>!_0x467c04['is']('element','listItem')||_0x467c04['getAttribute']('listType')!=_0x196c6d);const _0x40a0e6=new Set();for(const _0x227e8b of _0x3a0524)_0x227e8b['is']('element','listItem')?_0x40a0e6['add'](Le(_0x227e8b)):_0x40a0e6['add'](_0x227e8b);return Array['from'](_0x40a0e6);}(_0x5a8131['getSelectedBlocks'](),_0x3439fb,_0x287966['model']['schema']);_0x287966['model']['change'](()=>{for(const _0x26392b of _0x5f12a6)_0x4540f2['markBlockFormat'](_0x26392b,{'commandName':_0x26cace,'commandParams':[{'forceValue':!_0x5d3467['value']}],'formatGroupId':'blockName'},Ee(_0x26392b));});};}function _0x254b74(_0x1796f8){return()=>{const _0x19010c=function(_0x54018a){let _0x2800db=Array['from'](_0x54018a);const _0x3bfbef=_0x2800db['findIndex'](_0x4639c0=>'listItem'!=_0x4639c0['name']);return _0x3bfbef>-0x1&&(_0x2800db=_0x2800db['slice'](0x0,_0x3bfbef)),_0x2800db;}(_0x287966['model']['document']['selection']['getSelectedBlocks']()),_0x41e84f=_0x287966['model']['createRange'](_0x287966['model']['createPositionAt'](_0x19010c[0x0],'before'),_0x287966['model']['createPositionAt'](_0x19010c[_0x19010c['length']-0x1],'end'));_0x287966['model']['change'](()=>{_0x4540f2['markBlockFormat'](_0x41e84f,{'commandName':_0x1796f8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5572f7){const _0x3148b8=new Set();for(const _0x2d9d0f of _0x5572f7){let _0x9bdcee=_0x2d9d0f['nextSibling'];for(;_0x9bdcee&&_0x9bdcee['getAttribute']('listIndent')>_0x2d9d0f['getAttribute']('listIndent');)_0x3148b8['add'](_0x9bdcee),_0x9bdcee=_0x9bdcee['nextSibling'];}return Array['from'](_0x3148b8);}(_0x19010c));});};}_0x4540f2['enableCommand']('numberedList',_0x531331('numberedList')),_0x4540f2['enableCommand']('bulletedList',_0x531331('bulletedList')),_0x10e6cc&&_0x4540f2['enableCommand']('todoList',_0x531331('todoList')),_0x4540f2['enableCommand']('indentList',_0x254b74('indentList')),_0x4540f2['enableCommand']('outdentList',_0x254b74('outdentList')),_0x10e6cc&&_0x4540f2['enableCommand']('checkTodoList',()=>{const _0x37be93=_0x287966['commands']['get']('checkTodoList'),_0x43bce9=Array['from'](_0x37be93['_selectedElements']);_0x43bce9['filter'](_0xb5e965=>_0xb5e965['getAttribute']('todoListChecked')!=_0x37be93['value']),_0x287966['model']['change'](()=>{for(const _0xa80e0f of _0x43bce9)_0x4540f2['markBlockFormat'](_0xa80e0f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37be93['value']}]});});}),_0x4540f2['descriptionFactory']['registerElementLabel']('listItem',_0x5b143c=>o(_0x3f755b,'ELEMENT_LIST_ITEM',_0x5b143c)),_0x4540f2['descriptionFactory']['registerDescriptionCallback'](_0xb85045=>{if('formatBlock'!=_0xb85045['type']&&'formatInline'!=_0xb85045['type'])return;const {data:_0x591059}=_0xb85045;if(_0x591059){if('numberedList'==_0x591059['commandName']||'bulletedList'==_0x591059['commandName']||'todoList'==_0x591059['commandName'])switch(_0x591059['commandName']['replace']('List','')){case'bulleted':return _0x1794d3(o(_0x3f755b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1794d3(o(_0x3f755b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1794d3(o(_0x3f755b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x591059['commandName'])return{'type':'format','content':o(_0x3f755b,'*Indent:*\x20%0',o(_0x3f755b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x591059['commandName'])return{'type':'format','content':o(_0x3f755b,'*Outdent:*\x20%0',o(_0x3f755b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x591059['commandName'])return _0x591059['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f755b,'*Check\x20item*')}:{'type':'format','content':o(_0x3f755b,'*Uncheck\x20item*')};}function _0x1794d3(_0x499ee4){return{'type':'format','content':o(_0x3f755b,'*Change\x20to:*\x20%0',_0x499ee4)};}});}}function Le(_0x434331){const _0x260215=_0x434331['getAttribute']('listIndent');if(0x0==_0x260215)return _0x434331;let _0x432fc7=_0x434331;for(;_0x434331['previousSibling']&&_0x434331['previousSibling']['is']('element','listItem');){const _0x4268a4=_0x434331['previousSibling']['getAttribute']('listIndent');if(_0x4268a4==_0x260215)_0x432fc7=_0x434331['previousSibling'];else{if(_0x4268a4<_0x260215)break;}_0x434331=_0x434331['previousSibling'];}return _0x432fc7;}function Ee(_0x4d745f){const _0x2b375b=[];if(_0x4d745f['is']('element','listItem')&&_0x4d745f['getAttribute']('listIndent')>0x0){let _0x2c34f1=_0x4d745f['nextSibling'];for(;_0x2c34f1&&'listItem'==_0x2c34f1['name']&&_0x2c34f1['getAttribute']('listIndent')==_0x4d745f['getAttribute']('listIndent');)_0x2b375b['push'](_0x2c34f1),_0x2c34f1=_0x2c34f1['nextSibling'];}return _0x2b375b;}class wt extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x454baa=this['editor']['config']['get']('list.properties'),_0x223844=this['editor']['plugins']['get']('TrackChangesEditing');_0x454baa['styles']&&_0x223844['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x454baa['reversed']&&_0x223844['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x454baa['startIndex']&&_0x223844['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x223844['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5c36e8,_0x5f4c55={}){const _0x12edb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c1bbb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x12edb9['markMultiRangeBlockFormat'](_0x5c1bbb,{'commandName':'listStyle','commandParams':[{'type':_0x5f4c55['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe8b084,_0x3152fe={}){const _0x8e676=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ef34d=this['_getSuggestionBlocks'](_0x2ad326=>_0x2ad326['is']('element','listItem')&&'numbered'===_0x2ad326['getAttribute']('listType'));if(_0x3ef34d['length']<0x1)return;const _0x448bb9=_0x3ef34d['map'](_0x360a1f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x360a1f,'before'),this['editor']['model']['createPositionAt'](_0x360a1f,0x0)));this['editor']['model']['change'](()=>{_0x8e676['markMultiRangeBlockFormat'](_0x448bb9,{'commandName':'listReversed','commandParams':[{'reversed':_0x3152fe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28eb4c,_0x15ce80={}){const _0x43104b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ccb86=this['_getSuggestionBlocks'](_0x146ebd=>_0x146ebd['is']('element','listItem')&&'numbered'===_0x146ebd['getAttribute']('listType'));if(_0x2ccb86['length']<0x1)return;const _0x5be6c2=_0x2ccb86['map'](_0x247625=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x247625,'before'),this['editor']['model']['createPositionAt'](_0x247625,0x0)));this['editor']['model']['change'](()=>{_0x43104b['markMultiRangeBlockFormat'](_0x5be6c2,{'commandName':'listStart','commandParams':[{'startIndex':_0x15ce80['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x529d57){if('formatBlock'!=_0x529d57['type']&&'formatInline'!=_0x529d57['type'])return;const _0x2ba1c3=this['editor']['locale'],{data:_0x30276b}=_0x529d57;if(!_0x30276b)return;let _0x263d56,_0x146698;switch(_0x30276b['commandName']){case'listStyle':_0x263d56='*Change\x20to:*\x20%0',_0x146698={'type':'format','content':o(_0x2ba1c3,_0x263d56,o(_0x2ba1c3,this['_getTranslationKeyForListStyle'](_0x30276b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x263d56=_0x30276b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x146698={'type':'format','content':o(_0x2ba1c3,_0x263d56)};break;case'listStart':_0x263d56='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x146698={'type':'format','content':o(_0x2ba1c3,_0x263d56,_0x30276b['commandParams'][0x0]['startIndex'])};}return _0x146698;}['_getSuggestionBlocksForListStyle'](){const _0xe4a95=this['editor']['plugins']['get']('LegacyListUtils');let _0x83a89f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x83a89f[0x0]?.['is']('element','listItem')&&_0x83a89f['unshift'](..._0xe4a95['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x83a89f[_0x83a89f['length']-0x1]?.['is']('element','listItem')&&_0x83a89f['push'](..._0xe4a95['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x83a89f=[...new Set(_0x83a89f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x83a89f=_0x83a89f['filter'](_0x402861=>_0x402861['is']('element','listItem'))),_0x83a89f;}['_getSuggestionBlocks'](_0x184151){const _0x33fdf1=this['editor']['plugins']['get']('LegacyListUtils');let _0x2062a0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x184151)['map'](_0x1f8828=>{const _0xfffa54=this['editor']['model']['createPositionAt'](_0x1f8828,0x0);return[..._0x33fdf1['getSiblingNodes'](_0xfffa54,'backward'),..._0x33fdf1['getSiblingNodes'](_0xfffa54,'forward')];})['flat']();return _0x2062a0=[...new Set(_0x2062a0)],_0x2062a0;}['_getTranslationKeyForListStyle'](_0x6cc78f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6cc78f)||'default')['toUpperCase']()+'_LIST_'+_0x6cc78f['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x562758{['afterInit'](){const _0x188d58=this['editor'];if(!_0x188d58['plugins']['has']('MediaEmbedEditing'))return;const _0x41c1d2=_0x188d58['plugins']['get']('TrackChangesEditing'),_0x172e76=_0x188d58['locale'];_0x41c1d2['enableCommand']('mediaEmbed'),_0x41c1d2['descriptionFactory']['registerElementLabel']('media',_0x514f23=>o(_0x172e76,'ELEMENT_MEDIA',_0x514f23));}}class bt extends _0x562758{['afterInit'](){const _0x4a6ede=this['editor'];_0x4a6ede['plugins']['has']('MentionEditing')&&_0x4a6ede['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x562758{['afterInit'](){const _0x422486=this['editor'];if(!_0x422486['plugins']['has']('MergeFieldsEditing'))return;const _0x3806a3=_0x422486['plugins']['get']('TrackChangesEditing'),_0x29a3a1=_0x422486['locale'];_0x3806a3['enableCommand']('insertMergeField'),_0x3806a3['enableCommand']('insertMergeFieldBlock'),_0x3806a3['enableCommand']('insertMergeFieldImage'),_0x3806a3['descriptionFactory']['registerElementLabel']('mergeField',_0x162f55=>o(_0x29a3a1,'ELEMENT_MERGE_FIELD',_0x162f55)),_0x3806a3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3eeaae=>o(_0x29a3a1,'ELEMENT_MERGE_FIELD',_0x3eeaae)),_0x3806a3['descriptionFactory']['registerDescriptionCallback'](_0x301456=>{if('insertion'!=_0x301456['type']&&'deletion'!=_0x301456['type'])return;const _0x11973e=_0x301456['getContainedElement']();if(null==_0x11973e)return;const _0x4e98d0=_0x422486['plugins']['get']('MergeFieldsEditing');let _0x9bc3b6;switch(_0x4e98d0['getMergeFieldType'](_0x11973e)){case null:return;case'image':{const _0x539fb4=_0x4e98d0['unwrapAffixes'](_0x11973e['getAttribute']('src'));_0x9bc3b6=_0x4e98d0['getLabel'](_0x539fb4)||_0x539fb4;break;}default:{const _0x552c84=_0x11973e['getAttribute']('id');_0x9bc3b6=_0x4e98d0['getLabel'](_0x552c84)||_0x552c84;break;}}return'insertion'==_0x301456['type']?{'type':'insertion','content':o(_0x29a3a1,'*Insert:*\x20%0','\x22'+_0x9bc3b6+'\x22\x20'+o(_0x29a3a1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x29a3a1,'*Remove:*\x20%0','\x22'+_0x9bc3b6+'\x22\x20'+o(_0x29a3a1,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x562758{['afterInit'](){const _0x511488=this['editor'],_0x593aa6=_0x511488['plugins']['get']('TrackChangesEditing');_0x511488['plugins']['has']('MultiLevelList')&&(_0x593aa6['enableDefaultAttributesIntegration']('multiLevelList'),_0x593aa6['descriptionFactory']['registerDescriptionCallback'](_0x54ef4e=>this['handleDescriptions'](_0x54ef4e)));}['handleDescriptions'](_0x367c4e){const _0x172a84=this['editor']['locale'],{data:_0x5b1a6f}=_0x367c4e,_0x4d967a={'type':'format','content':''};if(_0x5b1a6f&&'listMarkerStyle'==_0x5b1a6f['key']){if(!_0x5b1a6f['oldValue'])return{'type':'format','content':o(_0x172a84,'*Set\x20format:*\x20%0',o(_0x172a84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b1a6f['newValue']+')'};if(!_0x5b1a6f['newValue']){let _0x413728=_0x367c4e['head'];for(;_0x413728;){if(_0x413728['data']&&'listType'==_0x413728['data']['key']&&_0x413728['data']['newValue'])return _0x4d967a;_0x413728=_0x413728['next'];}return{'type':'format','content':o(_0x172a84,'*Remove\x20format:*\x20%0',o(_0x172a84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b1a6f['oldValue']+')'};}}}}class St extends _0x562758{['afterInit'](){const _0x2ceedd=this['editor'];if(!_0x2ceedd['plugins']['has']('PageBreakEditing'))return;_0x2ceedd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x426e02=_0x2ceedd['plugins']['get']('TrackChangesEditing'),_0x328d17=_0x2ceedd['locale'];_0x426e02['descriptionFactory']['registerElementLabel']('pageBreak',_0x4df667=>o(_0x328d17,'ELEMENT_PAGE_BREAK',_0x4df667));}}class It extends _0x562758{['afterInit'](){const _0x37acf7=this['editor'];if(!_0x37acf7['plugins']['has']('Paragraph'))return;const _0x52713c=_0x37acf7['locale'],_0x4e638b=_0x37acf7['plugins']['get']('TrackChangesEditing');_0x4e638b['descriptionFactory']['registerElementLabel']('paragraph',_0x405b13=>o(_0x52713c,'ELEMENT_PARAGRAPH',_0x405b13)),_0x4e638b['enableDefaultAttributesIntegration']('paragraph'),_0x4e638b['enableCommand']('insertParagraph');const _0x2d7c62=_0x4e638b['descriptionFactory'];_0x2d7c62['registerDescriptionCallback'](_0x401c68=>{if('insertion'!==_0x401c68['type'])return;const {start:_0x5205da,end:_0x7d4ae0}=_0x401c68['getFirstRange']();if(!_0x5205da['isTouching'](_0x7d4ae0)||!_0x5205da['nodeAfter'])return;const _0x597c37=_0x37acf7['model']['schema'],_0x33edf3=_0x5205da['nodeAfter'];return _0x597c37['isBlock'](_0x33edf3)&&!_0x597c37['isLimit'](_0x33edf3)&&_0x597c37['checkChild'](_0x33edf3,'$text')?{'type':'insertion','content':o(_0x52713c,'*Insert:*\x20%0',_0x2d7c62['getItemLabel'](_0x33edf3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d3f12=this['editor'],_0x441c7a=_0x5d3f12['locale'];_0x5d3f12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47be8b=>{if('formatBlock'!=_0x47be8b['type'])return;const {data:_0x3e70a5}=_0x47be8b;return _0x3e70a5&&'paragraph'==_0x3e70a5['commandName']?{'type':'format','content':o(_0x441c7a,'*Change\x20to:*\x20%0',o(_0x441c7a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x562758{['afterInit'](){const _0x27e80b=this['editor'];_0x27e80b['commands']['get']('replaceSource')&&_0x27e80b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x562758{['afterInit'](){const _0x32f4ae=this['editor'];if(!_0x32f4ae['plugins']['has']('RemoveFormatEditing'))return;_0x32f4ae['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b184a=this['editor'];_0x4b184a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a5252=>{if('formatBlock'!=_0x5a5252['type']&&'formatInline'!=_0x5a5252['type'])return;const {data:_0x6cde6d}=_0x5a5252;return _0x6cde6d&&'removeFormat'==_0x6cde6d['commandName']?{'type':'format','content':o(_0x4b184a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x562758{['afterInit'](){const _0x50e0a6=this['editor'];if(!_0x50e0a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5a1732=_0x50e0a6['plugins']['get']('TrackChangesEditing');_0x5a1732['enableCommand']('goToPreviousRestrictedEditingException'),_0x5a1732['enableCommand']('goToNextRestrictedEditingException');const _0x4b5b81=_0x50e0a6['plugins']['get']('RestrictedEditingModeEditing');_0x4b5b81['enableCommand']('trackChanges'),_0x4b5b81['enableCommand']('acceptSuggestion'),_0x4b5b81['enableCommand']('discardSuggestion'),_0x4b5b81['enableCommand']('acceptAllSuggestions'),_0x4b5b81['enableCommand']('discardAllSuggestions'),_0x4b5b81['enableCommand']('acceptSelectedSuggestions'),_0x4b5b81['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x562758{['afterInit'](){const _0x499951=this['editor'];if(!_0x499951['plugins']['has']('ShiftEnter'))return;const _0x1398ef=_0x499951['plugins']['get']('TrackChangesEditing');_0x1398ef['enableCommand']('shiftEnter'),_0x1398ef['descriptionFactory']['registerElementLabel']('softBreak',_0x3f172f=>o(_0x499951['locale'],'ELEMENT_LINE_BREAK',_0x3f172f));}}function an(_0x65d14d,_0x6bc7f6,_0x2beb6e){const _0x162d56=[];for(const _0x7d4221 of _0x6bc7f6['getItems']())_0x7d4221['hasAttribute'](_0x65d14d)&&_0x162d56['push'](_0x2beb6e['createRangeOn'](_0x7d4221));return _0x162d56;}class $t extends _0x562758{['afterInit'](){const _0x3e0298=this['editor'],_0x573adb=_0x3e0298['plugins']['get']('TrackChangesEditing');_0x3e0298['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x573adb['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5a8cd9=this['editor'],_0x8012bd=_0x5a8cd9['model'],_0x289931=_0x5a8cd9['locale'],_0x50867c=_0x5a8cd9['plugins']['get']('TrackChangesEditing'),_0x5331ea='restrictedEditingException',_0x45ad59=_0x5a8cd9['commands']['get'](_0x5331ea);_0x50867c['enableCommand'](_0x5331ea,(_0x8155f4,_0x45bd={})=>{const _0xadf14e=_0x8012bd['document']['selection'];if(_0xadf14e['isCollapsed'])return void _0x8155f4(_0x45bd);const _0x477a2b=void 0x0!==_0x45bd['forceValue']?_0x45bd['forceValue']:!_0x45ad59['value'];_0x8012bd['change'](()=>{const _0x3f2b63=Array['from'](_0xadf14e['getRanges']());for(const _0x187ca5 of _0x3f2b63){const _0x48939=_0x477a2b?[_0x187ca5]:an(_0x5331ea,_0x187ca5,_0x8012bd);for(const _0x5f3272 of _0x48939)_0x50867c['markInlineFormat'](_0x5f3272,{'commandName':_0x5331ea,'commandParams':[{'forceValue':_0x477a2b}]});}});}),_0x50867c['descriptionFactory']['registerDescriptionCallback'](_0x51893e=>{if('formatBlock'!=_0x51893e['type']&&'formatInline'!=_0x51893e['type'])return;const {data:_0x58a02f}=_0x51893e;return _0x58a02f&&_0x58a02f['commandName']==_0x5331ea?_0x58a02f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x289931,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x289931,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x313c3d=this['editor'],_0x47c52f=_0x313c3d['locale'],_0x3a6110=_0x313c3d['plugins']['get']('TrackChangesEditing'),_0x458a3c='restrictedEditingExceptionBlock',_0x1d2614=this['editor']['commands']['get'](_0x458a3c);_0x3a6110['enableCommand'](_0x458a3c,(_0x30f62a,_0x2b77fe={})=>{const _0x5159f3=this['editor']['model']['document']['selection'],_0x4cc7de=_0x2b77fe&&void 0x0!==_0x2b77fe['forceValue']?_0x2b77fe['forceValue']:!_0x1d2614['value'];let _0x438b98=[];if(_0x4cc7de){const _0x145c7f=Array['from'](_0x5159f3['getSelectedBlocks']())['filter'](_0x123164=>function(_0x592c73){return!!_0x592c73['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x123164)||function(_0x183187,_0x514a58){const _0x11d458=_0x514a58['createContext'](_0x183187['parent']);if(!_0x514a58['checkChild'](_0x11d458,'restrictedEditingException'))return!0x1;if(!_0x514a58['checkChild'](_0x11d458['push']('restrictedEditingException'),_0x183187))return!0x1;return!0x0;}(_0x123164,this['editor']['model']['schema']));_0x438b98=to(_0x145c7f,_0x313c3d['model']);}else{const _0x325e01=Array['from'](_0x5159f3['getSelectedBlocks']())['map'](_0x140669=>function(_0xa60bc1){let _0x5dbb60=_0xa60bc1;for(;_0x5dbb60['parent'];){if('restrictedEditingException'==_0x5dbb60['parent']['name'])return _0x5dbb60;_0x5dbb60=_0x5dbb60['parent'];}return null;}(_0x140669))['filter'](_0x1e7297=>!!_0x1e7297);_0x438b98=to(_0x325e01,_0x313c3d['model']);}_0x313c3d['model']['change'](()=>{for(const _0x59e012 of _0x438b98)_0x3a6110['markBlockFormat'](_0x59e012,{'commandName':_0x458a3c,'commandParams':[{'forceValue':_0x4cc7de}]});});}),_0x3a6110['descriptionFactory']['registerDescriptionCallback'](_0xde4c20=>{const {data:_0x1d115a}=_0xde4c20;if(_0x1d115a&&_0x1d115a['commandName']==_0x458a3c)return _0x1d115a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47c52f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x47c52f,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x562758{['afterInit'](){const _0x129cea=this['editor'];if(!_0x129cea['plugins']['has']('Style')||!_0x129cea['plugins']['has']('DataSchema'))return;const _0x600218=_0x129cea['plugins']['get']('TrackChangesEditing'),_0x378a60=_0x129cea['locale'],_0xbc718d=_0x129cea['config']['get']('style')||{},_0x248290=_0x129cea['plugins']['get']('GeneralHtmlSupport'),_0x557e20=_0x129cea['plugins']['get']('StyleUtils')['normalizeConfig'](_0x129cea['plugins']['get']('DataSchema'),_0xbc718d['definitions']);_0x600218['enableDefaultAttributesIntegration']('style');const _0x5e511b=new Set();for(const _0x3beb49 of _0x557e20['block']){const _0x52f881=_0x248290['getGhsAttributeNameForElement'](_0x3beb49['element']);_0x5e511b['add'](_0x52f881);}const _0x466b2d=new Set();for(const _0x23193f of _0x557e20['inline']){const _0x25b1e7=_0x248290['getGhsAttributeNameForElement'](_0x23193f['element']);_0x466b2d['add'](_0x25b1e7);for(const _0x329a65 of _0x23193f['ghsAttributes'])_0x466b2d['add'](_0x329a65);}for(const _0xb678d7 of _0x5e511b)_0x600218['descriptionFactory']['registerAttributeLabel'](_0xb678d7,o(_0x378a60,'FORMAT_STYLE'));for(const _0x83e447 of _0x466b2d)_0x600218['descriptionFactory']['registerAttributeLabel'](_0x83e447,o(_0x378a60,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e1015=this['editor'],_0x107cc2=_0x2e1015['locale'];_0x2e1015['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc04f=>{if('formatBlock'!=_0x4bc04f['type']&&'formatInline'!=_0x4bc04f['type'])return;const {data:_0x510328}=_0x4bc04f;return _0x510328&&'style'===_0x510328['commandName']?_0x510328['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x107cc2,'*Set\x20format:*\x20%0',_0x510328['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x107cc2,'*Remove\x20format:*\x20%0',_0x510328['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x562758{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c0088){super(_0x5c0088),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x22b7f9=this['editor'],_0x4abe64=_0x22b7f9['model']['document']['selection'];if(!_0x22b7f9['plugins']['has']('TableEditing'))return;const _0x44d29b=_0x22b7f9['locale'],_0x45fa66=_0x22b7f9['plugins']['get']('TrackChangesEditing'),_0x163f3c=_0x22b7f9['plugins']['get']('TableUtils');_0x45fa66['descriptionFactory']['registerElementLabel']('table',_0x5e8bc9=>o(_0x44d29b,'ELEMENT_TABLE',_0x5e8bc9)),this['_setupColumnsRowsFixing'](),_0x45fa66['enableCommand']('insertTable'),_0x45fa66['enableCommand']('selectTableRow'),_0x45fa66['enableCommand']('selectTableColumn');for(const _0x2e67d2 of['insertTableRowAbove','insertTableRowBelow']){const _0x11d2d7=_0x22b7f9['commands']['get'](_0x2e67d2);_0x45fa66['enableCommand'](_0x2e67d2,_0x147fc9=>{_0x22b7f9['model']['change'](_0x1337db=>{_0x147fc9();const _0x564c11='above'===_0x11d2d7['order'],_0x60d74=_0x163f3c['getSelectionAffectedTableCells'](_0x4abe64),_0xa16d89=_0x163f3c['getRowIndexes'](_0x60d74),_0xb08988=_0x564c11?_0xa16d89['first']-0x1:_0xa16d89['last']+0x1,_0x43b9c9=_0x60d74[0x0]['findAncestor']('table'),_0x5e44cb=_0x163f3c['createTableWalker'](_0x43b9c9,{'startRow':_0xb08988,'endRow':_0xb08988}),_0x44eba1=Array['from'](_0x5e44cb)['map'](_0x291cd7=>_0x1337db['createRangeOn'](_0x291cd7['cell']));_0x45fa66['markMultiRangeInsertion'](_0x44eba1,'tableRow');});});}for(const _0x589f21 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47df4e=_0x22b7f9['commands']['get'](_0x589f21);_0x45fa66['enableCommand'](_0x589f21,_0x4043e0=>{_0x22b7f9['model']['change'](_0x424db1=>{_0x4043e0();const _0x26c0bc='left'===_0x47df4e['order'],_0x1aa37a=_0x163f3c['getSelectionAffectedTableCells'](_0x4abe64),_0x43b9fc=_0x163f3c['getColumnIndexes'](_0x1aa37a),_0x2b276f=_0x26c0bc?_0x43b9fc['first']-0x1:_0x43b9fc['last']+0x1,_0x2b91cf=_0x1aa37a[0x0]['findAncestor']('table'),_0x5a08f5=_0x163f3c['createTableWalker'](_0x2b91cf,{'startRow':0x0,'column':_0x2b276f,'includeAllSlots':!0x1}),_0x33500d=Array['from'](_0x5a08f5)['map'](_0x39d3a1=>_0x424db1['createRangeOn'](_0x39d3a1['cell']));_0x45fa66['markMultiRangeInsertion'](_0x33500d,'tableColumn');});});}for(const _0x426038 of['removeTableRow','removeTableColumn']){const _0x4ac0d6=_0x426038['substr'](0xb),_0x5bf6c4=_0x4ac0d6['toLowerCase'](),_0x3e4bcd=_0x5bf6c4['substr'](0x0,0x3)+'span',_0x44bcf8='table'+_0x4ac0d6,_0x26e8a5='min'+_0x4ac0d6,_0x4e3c40='max'+_0x4ac0d6;_0x45fa66['enableCommand'](_0x426038,()=>{_0x22b7f9['model']['change'](_0xde8fe6=>{const _0x3a4bf8=_0x163f3c['getSelectionAffectedTableCells'](_0x4abe64),_0x4bfaed=_0x3a4bf8[0x0]['findAncestor']('table');let _0x34d4bf;if('removeTableRow'==_0x426038){const _0x494add=_0x163f3c['getRowIndexes'](_0x3a4bf8);_0x34d4bf={'startRow':_0x494add['first'],'endRow':_0x494add['last'],'includeAllSlots':!0x0};}else{const _0x149d7f=_0x163f3c['getColumnIndexes'](_0x3a4bf8);_0x34d4bf={'startColumn':_0x149d7f['first'],'endColumn':_0x149d7f['last'],'includeAllSlots':!0x0};}const _0x229e90=_0x163f3c['createTableWalker'](_0x4bfaed,_0x34d4bf),_0x2aefec=Array['from'](_0x229e90)['map'](({cell:_0xb31711})=>_0xb31711),_0x27490a=_e(_0x2aefec['filter'](_0x2e64ab=>_0x2e64ab['hasAttribute'](_0x3e4bcd))),_0x106e5a=_e(_0x2aefec['filter'](_0x1285b0=>!_0x1285b0['hasAttribute'](_0x3e4bcd)))['map'](_0x49da02=>_0xde8fe6['createRangeOn'](_0x49da02)),_0x7f001e=_0x45fa66['markMultiRangeDeletion'](_0x106e5a,_0x44bcf8);if(_0x7f001e&&('tableRow'==_0x7f001e['subType']||'tableColumn'==_0x7f001e['subType'])){const _0x596856=this['_getSuggestionCoords'](_0x7f001e);for(const _0x3f5fef of _0x27490a){const _0x5ac37b=_0xde8fe6['createRangeOn'](_0x3f5fef),_0x53f0d4=_0x163f3c['getCellLocation'](_0x3f5fef),_0x559e74=_0x3f5fef['getAttribute'](_0x3e4bcd)-0x1,_0x90730=_0x596856[_0x26e8a5],_0x30e14e=_0x596856[_0x4e3c40];_0x90730<=_0x53f0d4[_0x5bf6c4]&&_0x53f0d4[_0x5bf6c4]+_0x559e74<=_0x30e14e&&_0x7f001e['addRange'](_0x5ac37b);}}});});}function _0x129068(_0x5316ad){const _0x345a02=Array['from'](_0x4abe64['getRanges']())['map'](_0x1f0fbb=>_0x2ed57b['fromRange'](_0x1f0fbb));_0x22b7f9['model']['change'](_0x312220=>{const _0x565005=_0x312220['batch'];_0x5316ad=_0x5316ad['filter'](_0x125bd7=>'$graveyard'!=_0x125bd7['root']['rootName']),_0x312220['setSelection'](_0x5316ad),_0x22b7f9['commands']['get']('removeTableRow')['refresh'](),_0x22b7f9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x22b7f9['model']['enqueueChange'](()=>{_0x22b7f9['model']['enqueueChange'](_0x565005,_0x3d0c6f=>{const _0x484908=_0x345a02['filter'](_0x243125=>'$graveyard'!=_0x243125['root']['rootName']);_0x484908['length']>0x0&&_0x3d0c6f['setSelection'](_0x484908);for(const _0x4262db of _0x345a02)_0x4262db['detach']();});});});}function _0x3b60d9(_0x33021c){_0x22b7f9['model']['change'](_0x1915da=>{const _0x32a9ca=Array['from'](_0x4abe64['getRanges']())['map'](_0x5bf2fd=>_0x2ed57b['fromRange'](_0x5bf2fd)),_0x30c01e=[];for(const _0xfbbb5b of _0x33021c)for(const _0x44e7b6 of _0xfbbb5b['getItems']({'shallow':!0x0}))_0x30c01e['push'](_0x44e7b6);for(const _0x4e5d5a of _0x30c01e)'$graveyard'!=_0x4e5d5a['root']['rootName']&&(_0x1915da['setSelection'](_0x1915da['createPositionAt'](_0x4e5d5a,0x0)),_0x22b7f9['commands']['get']('removeTableColumn')['refresh'](),_0x22b7f9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x475627=_0x32a9ca['filter'](_0x262472=>'$graveyard'!=_0x262472['root']['rootName']);_0x475627['length']>0x0&&_0x1915da['setSelection'](_0x475627);for(const _0x38a4cc of _0x32a9ca)_0x38a4cc['detach']();});}function _0x4f0b88(_0x50d081,_0x147341){return _0x147341['every'](_0x2216cb=>_0x50d081['some'](_0x160326=>_0x160326['end']['isEqual'](_0x2216cb['start'])||_0x2216cb['end']['isEqual'](_0x160326['start'])));}function _0x49aeac(_0x10a309,_0x39915b){return!_0x10a309['some'](_0x34ea7b=>_0x39915b['some'](_0x2381d0=>_0x34ea7b['isIntersecting'](_0x2381d0)))&&_0x10a309['some'](_0x56442a=>_0x39915b['some'](_0x296d8e=>_0x56442a['end']['isTouching'](_0x296d8e['start'])));}_0x45fa66['descriptionFactory']['registerDescriptionCallback'](_0x43cb99=>{if('insertion'!=_0x43cb99['type']&&'deletion'!=_0x43cb99['type'])return;const _0x57cda8=_0x43cb99['getContainedElement']();if(null!=_0x57cda8&&_0x57cda8['is']('element','table')){if('insertion'==_0x43cb99['type']){const _0x42abc7=_0x43cb99['getItems']()['filter'](_0x54a9cf=>_0x54a9cf['is']('$textProxy'))['map'](_0x45a857=>_0x45a857['data']);if(_0x42abc7['length'])return{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42abc7['join']('\x20')+'\x22'))};}if('deletion'==_0x43cb99['type']){const _0x38736c=_0x43cb99['getItems']()['filter'](_0x2a76a1=>_0x2a76a1['is']('$textProxy'))['map'](_0x53a613=>_0x53a613['data']);if(_0x38736c['length'])return{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38736c['join']('\x20')+'\x22'))};}}}),_0x45fa66['descriptionFactory']['registerDescriptionCallback'](_0x458be4=>{if('tableRow'==_0x458be4['subType']){const _0x50b94f=_0x458be4['getItems']()['filter'](_0x40cd4a=>_0x40cd4a['is']('$textProxy'))['map'](_0x52548c=>_0x52548c['data']),_0x525018=this['_getSuggestionCoords'](_0x458be4),_0x2ed732=_0x525018['maxRow']-_0x525018['minRow']+0x1;if('insertion'==_0x458be4['type'])return _0x50b94f['length']?{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ed732,'\x22'+_0x50b94f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW',_0x2ed732))};if('deletion'==_0x458be4['type'])return _0x50b94f['length']?{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ed732,'\x22'+_0x50b94f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW',_0x2ed732))};}if('tableColumn'==_0x458be4['subType']){const _0x33a828=_0x458be4['getItems']()['filter'](_0xe0bac4=>_0xe0bac4['is']('$textProxy'))['map'](_0x19a8fa=>_0x19a8fa['data']),_0x411d9f=this['_getSuggestionCoords'](_0x458be4),_0x249bf9=_0x411d9f['maxColumn']-_0x411d9f['minColumn']+0x1;if('insertion'==_0x458be4['type'])return _0x33a828['length']?{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x249bf9,'\x22'+_0x33a828['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN',_0x249bf9))};if('deletion'==_0x458be4['type'])return _0x33a828['length']?{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x249bf9,'\x22'+_0x33a828['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN',_0x249bf9))};}}),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x129068),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x129068),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3b60d9),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3b60d9),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f0b88),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f0b88),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x49aeac),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x49aeac);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2841fe=this['editor'],_0x3abbbf=_0x2841fe['model']['document']['selection'];return(_0x4c080d,_0x3e5ebe)=>{_0x2841fe['model']['change'](_0x38239a=>{const {commandName:_0x56cd93,commandParams:_0x310485}=_0x3e5ebe;let _0x2f8bec=_0x4c080d[0x0]['end']['nodeBefore'];_0x310485&&_0x310485[0x0]&&!0x1===_0x310485[0x0]['forceValue']&&(_0x2f8bec=_0x4c080d[0x0]['start']['nodeAfter']);const _0x49cc67=_0x38239a['createRangeIn'](_0x2f8bec);if('$graveyard'==_0x49cc67['root']['rootName'])return;const _0x53e3dd=Array['from'](_0x3abbbf['getRanges']())['map'](_0x1e9728=>_0x2ed57b['fromRange'](_0x1e9728));_0x38239a['setSelection'](_0x49cc67),_0x2841fe['commands']['get'](_0x56cd93)['refresh'](),_0x310485['push']({'forceDefaultExecution':!0x0}),_0x2841fe['execute'](_0x56cd93,..._0x310485);const _0x1e939c=_0x53e3dd['filter'](_0x4cb0b7=>'$graveyard'!=_0x4cb0b7['root']['rootName']);_0x1e939c['length']>0x0&&_0x38239a['setSelection'](_0x1e939c);for(const _0x128395 of _0x53e3dd)_0x128395['detach']();});};}['_getCoordsForCells'](_0x511f51){const _0x4748ed=this['editor']['plugins']['get']('TableUtils');let _0x1de9b3=Number['MAX_SAFE_INTEGER'],_0x27361a=Number['MIN_SAFE_INTEGER'],_0x12a90b=Number['MAX_SAFE_INTEGER'],_0x5c5b2f=Number['MIN_SAFE_INTEGER'];for(const _0x371da1 of _0x511f51){if('$graveyard'==_0x371da1['root']['rootName'])continue;const {row:_0x691297,column:_0x5743b1}=_0x4748ed['getCellLocation'](_0x371da1),_0x1a7947=_0x371da1['hasAttribute']('rowspan')?_0x371da1['getAttribute']('rowspan')-0x1:0x0,_0x34f61b=_0x371da1['hasAttribute']('colspan')?_0x371da1['getAttribute']('colspan')-0x1:0x0;_0x1de9b3=_0x691297<_0x1de9b3?_0x691297:_0x1de9b3,_0x27361a=_0x691297+_0x1a7947>_0x27361a?_0x691297+_0x1a7947:_0x27361a,_0x12a90b=_0x5743b1<_0x12a90b?_0x5743b1:_0x12a90b,_0x5c5b2f=_0x5743b1+_0x34f61b>_0x5c5b2f?_0x5743b1+_0x34f61b:_0x5c5b2f;}return{'minRow':_0x1de9b3,'maxRow':_0x27361a,'minColumn':_0x12a90b,'maxColumn':_0x5c5b2f};}['_setupColumnsRowsFixing'](){const _0x47309a=this['editor'],_0x1ca3a9=_0x47309a['plugins']['get']('TrackChangesEditing'),_0x4cae9f=_0x47309a['plugins']['get']('TableUtils');_0x47309a['model']['document']['on']('change:data',()=>{const _0x44eba7=Array['from'](_0x47309a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4eb08c,data:_0x216c6f}of _0x44eba7){const {group:_0xa648a1,id:_0x3f7da9,subType:_0x780645}=_0x1ca3a9['_splitMarkerName'](_0x4eb08c);if('suggestion'!=_0xa648a1)continue;if(null!=_0x216c6f['oldRange'])continue;const _0x39bef5=_0x1ca3a9['getSuggestion'](_0x3f7da9);this['_tablePostFixingSubtypes']['includes'](_0x780645)&&this['_tableSuggestions']['add'](_0x39bef5);}},{'priority':'low'});const _0x4ceff9=(_0x500de6,_0x61943)=>{let _0x5d1f06=!0x1;const _0x133277=_0x61943['createRangeOn'](_0x500de6),_0x34c9d4=_0x500de6['findAncestor']('table'),_0x187ab8=_0x4cae9f['getCellLocation'](_0x500de6);for(const _0x5c3beb of this['_tableSuggestions']){const _0x58d6c0=_0x5c3beb['subType'],_0x343a7a=_0x58d6c0['startsWith']('tablePaste'),_0x2a4cf1=_0x58d6c0['substr'](_0x343a7a?0xa:0x5),_0x197c06=_0x2a4cf1['toLowerCase'](),_0x199b29=_0x197c06['substr'](0x0,0x3)+'span',_0x11c3d6='min'+_0x2a4cf1,_0x2163e2='max'+_0x2a4cf1;if(!_0x5c3beb['isInContent'])continue;if(_0x34c9d4!=_0x5c3beb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c3beb['isIntersectingWithRange'](_0x133277))continue;const _0x45c345=_0x500de6['hasAttribute'](_0x199b29)?_0x500de6['getAttribute'](_0x199b29)-0x1:0x0,_0x259f89=this['_getSuggestionCoords'](_0x5c3beb),_0x3656c9=_0x259f89[_0x11c3d6],_0x554277=_0x259f89[_0x2163e2];_0x3656c9<=_0x187ab8[_0x197c06]&&_0x187ab8[_0x197c06]+_0x45c345<=_0x554277&&(_0x5c3beb['addRange'](_0x133277),_0x5d1f06=!0x0);}return _0x5d1f06;};_0x47309a['model']['document']['registerPostFixer'](_0x41ca06=>{let _0x10aec=!0x1;for(const _0x40d0e5 of _0x47309a['model']['document']['differ']['getChanges']())if('insert'==_0x40d0e5['type']){if('tableRow'==_0x40d0e5['name']){for(const _0x385dc8 of _0x40d0e5['position']['nodeAfter']['getChildren']())_0x10aec=_0x10aec||_0x4ceff9(_0x385dc8,_0x41ca06);}else'tableCell'==_0x40d0e5['name']&&(_0x10aec=_0x10aec||_0x4ceff9(_0x40d0e5['position']['nodeAfter'],_0x41ca06));}return _0x10aec;});}['_getSuggestionCoords'](_0x1b3484){return this['_getCoordsForCells'](_0x1b3484['getRanges']()['map'](_0x262da7=>_0x262da7['start']['nodeAfter']));}}function _e(_0x25705c){return Array['from'](new Set(_0x25705c)['values']());}class Bt extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x39e1f1=this['editor'],_0xa715be=_0x39e1f1['model']['document']['selection'],_0x498742=_0x39e1f1['locale'];if(!_0x39e1f1['plugins']['has']('TableEditing'))return;const _0x1bf60d=_0x39e1f1['plugins']['get']('TrackChangesEditing'),_0x55c7b7=_0x39e1f1['plugins']['get']('TableUtils'),_0x583d3e=_0x39e1f1['plugins']['get'](Dt);_0x583d3e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1bf60d['enableCommand']('mergeTableCells',()=>{const _0x63dd28=_0x55c7b7['getSelectionAffectedTableCells'](_0x39e1f1['model']['document']['selection']);_0x39e1f1['model']['change'](()=>{_0x1bf60d['markMultiRangeBlockFormat'](_0x63dd28,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39e1f1['commands']['get']('mergeTableCells')['on']('execute',(_0x43adb6,_0x38e065)=>{_0x39e1f1['commands']['get']('trackChanges')['value']&&(_0x38e065['length']>0x0&&_0x38e065[_0x38e065['length']-0x1]&&_0x38e065[_0x38e065['length']-0x1]['forceDefaultExecution']||_0x1bf60d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x43adb6['stop']());},{'priority':'highest'});for(const _0xf702d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b0343=_0x39e1f1['commands']['get'](_0xf702d9);_0x1bf60d['enableCommand'](_0xf702d9,()=>{const _0x210cea=_0x39e1f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf66e56=>_0xf66e56['is']('element','tableCell')),_0x2283f9=_0x5b0343['value'];_0x39e1f1['model']['change'](()=>{_0x1bf60d['markMultiRangeBlockFormat']([_0x210cea,_0x2283f9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x270590 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x275d15=_0x39e1f1['commands']['get'](_0x270590);_0x1bf60d['enableCommand'](_0x270590,()=>{const _0x3750c7=_0x55c7b7['getSelectionAffectedTableCells'](_0x39e1f1['model']['document']['selection'])[0x0],_0x1aca32=_0x3750c7['findAncestor']('table'),{column:_0x34331a,row:_0x59f90f}=_0x55c7b7['getCellLocation'](_0x3750c7);let _0x26d992=[];if('horizontally'==_0x275d15['direction']){const _0x12a57e=_0x55c7b7['createTableWalker'](_0x1aca32,{'startRow':_0x59f90f,'endRow':_0x59f90f,'includeAllSlots':!0x0});_0x26d992=Array['from'](_0x12a57e)['map'](_0x3146d=>_0x3146d['cell']);}else{const _0x5277df=_0x55c7b7['createTableWalker'](_0x1aca32,{'column':_0x34331a,'includeAllSlots':!0x0});_0x26d992=Array['from'](_0x5277df)['map'](_0x80d40b=>_0x80d40b['cell']);}_0x39e1f1['model']['change'](_0x4c9abe=>{_0x1bf60d['markBlockFormat'](_0x4c9abe['createRangeOn'](_0x3750c7),{'commandName':_0x270590,'commandParams':[]},_0x26d992,_0x270590);});});}_0x1bf60d['descriptionFactory']['registerDescriptionCallback'](_0xd97373=>{if('formatBlock'!=_0xd97373['type']&&'formatInline'!=_0xd97373['type'])return;const {data:_0x2ce455}=_0xd97373;return _0x2ce455&&'mergeTableCells'==_0x2ce455['commandName']?{'type':'format','content':o(_0x498742,'*Merge\x20cells*')}:void 0x0;}),_0x1bf60d['descriptionFactory']['registerDescriptionCallback'](_0x461bc1=>{if('formatBlock'!=_0x461bc1['type']&&'formatInline'!=_0x461bc1['type'])return;const {data:_0x1bf1c6}=_0x461bc1;return _0x1bf1c6?'splitTableCellVertically'==_0x1bf1c6['commandName']?{'type':'format','content':o(_0x498742,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1bf1c6['commandName']?{'type':'format','content':o(_0x498742,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5f2dce=_0x583d3e['_acceptFormatSuggestionCallbackFactory']();for(const _0x2b5ba7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1bf60d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b5ba7,'accept',_0x5f2dce);for(const _0x23c8cb of['splitTableCellVertically','splitTableCellHorizontally'])_0x1bf60d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23c8cb,'accept',_0x5f2dce);_0x1bf60d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x147638=>{_0x39e1f1['model']['change'](_0x6c1557=>{const _0xe18a72=Array['from'](_0xa715be['getRanges']())['map'](_0x167130=>_0x2ed57b['fromRange'](_0x167130));_0x6c1557['setSelection'](_0x147638),_0x39e1f1['commands']['get']('mergeTableCells')['refresh'](),_0x39e1f1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x25dbb7=_0xe18a72['filter'](_0x4790eb=>'$graveyard'!=_0x4790eb['root']['rootName']);_0x25dbb7['length']>0x0&&_0x6c1557['setSelection'](_0x25dbb7);for(const _0x2c5145 of _0xe18a72)_0x2c5145['detach']();});});for(const _0x3b6d4d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3383aa=_0x39e1f1['commands']['get'](_0x3b6d4d);_0x3383aa['on']('set:isEnabled',(_0x5c4c55,_0x380d25,_0x35b184)=>{if(_0x35b184){const _0x3b0494=_0x39e1f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe87c7=>_0xe87c7['is']('element','tableCell'));this['_areMergableCells'](_0x3383aa['value'],_0x3b0494)||(_0x5c4c55['return']=!0x1,_0x5c4c55['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x474603=this['editor']['commands']['get']('mergeTableCells'),_0x179e33=this['editor']['plugins']['get']('TableUtils');if(!_0x474603['isEnabled'])return!0x1;const _0x29f22e=_0x179e33['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x383a26 of _0x29f22e)for(const _0x1dd30b of _0x29f22e)if(_0x383a26!=_0x1dd30b&&!this['_areMergableCells'](_0x383a26,_0x1dd30b))return!0x1;return!0x0;}['_areMergableCells'](_0x28fc9,_0x5ee364){const _0x36c4d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c5a47=this['editor']['model']['createRangeOn'](_0x28fc9),_0x5cd5e6=this['editor']['model']['createRangeOn'](_0x5ee364),_0x8cf68d=new Set(),_0x1fe0f6=new Set();for(const _0x38d3d2 of _0x36c4d4['getSuggestions']())if(('insertion'==_0x38d3d2['type']||'deletion'==_0x38d3d2['type']||'mergeTableCells'==_0x38d3d2['subType'])&&_0x38d3d2['isInContent']){for(const _0x5f0dc8 of _0x38d3d2['getRanges']())_0x5f0dc8['containsRange'](_0x3c5a47,!0x0)&&_0x8cf68d['add'](_0x38d3d2['type']+':'+_0x38d3d2['author']['id']),_0x5f0dc8['containsRange'](_0x5cd5e6,!0x0)&&_0x1fe0f6['add'](_0x38d3d2['type']+':'+_0x38d3d2['author']['id']);}if(_0x8cf68d['size']!=_0x1fe0f6['size'])return!0x1;for(const _0x3414c8 of _0x8cf68d)if(!_0x1fe0f6['has'](_0x3414c8))return!0x1;return!0x0;}}class Ot extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x10036e=this['editor'];if(!_0x10036e['plugins']['has']('TableEditing'))return;const _0x443c87=_0x10036e['locale'],_0x183270=_0x10036e['plugins']['get']('TrackChangesEditing');_0x183270['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x183270['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x183270['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x443c87,'FORMAT_HEADER_ROW')),_0x183270['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x443c87,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4cbcbb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35a8dd=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x4cbcbb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x35a8dd),_0x4cbcbb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x35a8dd),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x49929b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a64d=this['editor']['plugins']['get']('TableUtils');function _0x49f05d({showActiveMarker:_0x26724b=!0x0,setDataAttribute:_0x4918b0=!0x0}={}){return(_0x128463,_0x1509d6,_0x520220)=>{const {type:_0x4d0d7d,id:_0x4f9b5d}=_0x49929b['_splitMarkerName'](_0x1509d6['markerName']);if(!_0x49929b['hasSuggestion'](_0x4f9b5d))return;const _0x490d28=_0x49929b['getSuggestion'](_0x4f9b5d),_0x227ffe=_0x490d28['data'];if('formatBlock'!=_0x490d28['type']||!_0x227ffe||'setTableColumnHeader'!=_0x227ffe['commandName'])return;if(_0x1509d6['item'])return void _0x128463['stop']();if(!_0x520220['consumable']['consume'](_0x1509d6['markerRange'],_0x128463['name']))return;const _0x2c2fe9=_0x1509d6['markerRange']['start']['nodeAfter'],_0x3cf6c6=_0x1509d6['markerRange']['end']['nodeBefore'],_0xe89e6d=_0x2c2fe9['parent']['parent'],{column:_0x44382a}=_0x1a64d['getCellLocation'](_0x2c2fe9),{column:_0x22c4cf}=_0x1a64d['getCellLocation'](_0x3cf6c6);for(let _0x256d7d=_0x44382a;_0x256d7d<=_0x22c4cf;_0x256d7d++){const _0x271513=_0x1a64d['createTableWalker'](_0xe89e6d,{'column':_0x256d7d,'includeAllSlots':!0x1});for(const _0xd482fe of _0x271513){const _0x46a81e=_0xd482fe['cell'],_0x52a833=_0x520220['mapper']['toViewElement'](_0x46a81e);_0x520220['writer']['addClass']('ck-suggestion-marker-'+_0x4d0d7d,_0x52a833),_0x4918b0&&_0x520220['writer']['setAttribute']('data-suggestion',_0x4f9b5d,_0x52a833),_0x520220['mapper']['bindElementToMarker'](_0x52a833,_0x1509d6['markerName']),_0x26724b&&(_0x49929b['activeMarkers']['includes'](_0x1509d6['markerName'])?_0x520220['writer']['addClass']('ck-suggestion-marker--active',_0x52a833):_0x520220['writer']['removeClass']('ck-suggestion-marker--active',_0x52a833));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49f05d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1bb25a,_0xc3276c,_0x5211b1)=>{_0x5211b1['options']['showSuggestionHighlights']&&_0x49f05d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1bb25a,_0xc3276c,_0x5211b1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x235b0d,_0x190d28,_0x6494e6)=>{const {type:_0x58cf1c,id:_0x339599}=_0x49929b['_splitMarkerName'](_0x190d28['markerName']);if(!_0x49929b['hasSuggestion'](_0x339599))return;const _0x35b1a7=_0x49929b['getSuggestion'](_0x339599),_0x2b95ac=_0x35b1a7['data'];if('formatBlock'!=_0x35b1a7['type']||!_0x2b95ac||'setTableColumnHeader'!=_0x2b95ac['commandName'])return;const _0x143df9=_0x6494e6['mapper']['markerNameToElements'](_0x190d28['markerName']);if(_0x143df9){for(const _0x10b490 of _0x143df9)_0x6494e6['writer']['removeClass']('ck-suggestion-marker-'+_0x58cf1c,_0x10b490),_0x6494e6['writer']['removeClass']('ck-suggestion-marker--active',_0x10b490),_0x6494e6['writer']['removeAttribute']('data-suggestion',_0x10b490),_0x6494e6['mapper']['unbindElementFromMarkerName'](_0x10b490,_0x190d28['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3881f4=this['editor'],_0x33e0b3=_0x3881f4['locale'];function _0x17af12(_0x134b1c){return{'type':'format','content':o(_0x33e0b3,'*Format:*\x20%0',_0x134b1c)};}_0x3881f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c369b=>{if('formatBlock'!=_0x5c369b['type'])return;const {data:_0x5dab6a}=_0x5c369b;if(_0x5dab6a){if('setTableRowHeader'==_0x5dab6a['commandName']){const _0x25a48f=_0x5dab6a['commandParams'][0x0]['forceValue'];return _0x17af12(o(_0x33e0b3,_0x25a48f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5dab6a['commandName']){const _0x4ab30f=_0x5dab6a['commandParams'][0x0]['forceValue'];return _0x17af12(o(_0x33e0b3,_0x4ab30f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x562758{['afterInit'](){const _0x5aef84=this['editor'],_0x343cf8=_0x5aef84['locale'],_0x21ae04=_0x5aef84['plugins']['get']('TrackChangesEditing');function _0x7c3e1b(_0x4696e7){return{'type':'format','content':''+o(_0x343cf8,'*Set\x20table\x20type:*\x20%0',_0x4696e7)};}_0x5aef84['plugins']['has']('TableLayout')&&(_0x21ae04['enableCommand']('insertTableLayout'),_0x21ae04['enableDefaultAttributesIntegration']('tableType'),_0x21ae04['descriptionFactory']['registerElementLabel'](_0x72f306=>_0x72f306['is']('element','table')&&'layout'===_0x72f306['getAttribute']('tableType'),_0x2b0aa1=>o(_0x343cf8,'ELEMENT_LAYOUT_TABLE',_0x2b0aa1)),_0x21ae04['descriptionFactory']['registerDescriptionCallback'](_0x242d04=>{const {data:_0x5670c4}=_0x242d04;if(_0x5670c4&&'tableType'==_0x5670c4['key'])switch(_0x5670c4['newValue']){case'layout':return _0x7c3e1b(o(_0x343cf8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x7c3e1b(o(_0x343cf8,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x1fc281=>[_0x1fc281,null]));class Mt extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x26e371=this['editor'];if(!_0x26e371['plugins']['has']('TableClipboard'))return;const _0x4ecc91=_0x26e371['plugins']['get']('TrackChangesEditing'),_0x3bbf7d=_0x26e371['plugins']['get']('TableUtils'),_0x9d51a5=_0x26e371['plugins']['get'](Dt),_0x1493ae=_0x26e371['plugins']['get']('TableClipboard'),_0x31c1c6=_0x26e371['plugins']['get']('TableSelection'),_0x23578d=_0x26e371['plugins']['get'](_0x2aa2ff);_0x9d51a5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x26e371['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x26e371['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x582851=null,_0x4f7e1a=!0x1;_0x23578d['on']('contentInsertion',(_0x3971e9,_0x94ec7)=>{_0x4f7e1a='paste'===_0x94ec7['method'];}),_0x26e371['model']['on']('insertContent',(_0x52750e,_0xd997f2)=>{if(!_0x4f7e1a&&null===_0x31c1c6['getSelectedTableCells']())return;const [_0xc17d1,_0x229a2c]=_0xd997f2,_0x11b6d1=_0xd997f2[_0xd997f2['length']-0x1];_0x11b6d1&&_0x11b6d1['forceDefaultExecution']||_0x4ecc91['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x714d3,_0x46929f,_0x12612a,_0x266365,_0x4bfc50){if(_0x46929f&&!_0x46929f['is']('documentSelection'))return!0x1;const _0x46aa84=_0x4bfc50['getTableIfOnlyTableInContent'](_0x714d3,_0x12612a);if(!_0x46aa84||!Oe(_0x46aa84,void 0x0,_0x266365))return!0x1;const _0x582905=_0x266365['getSelectionAffectedTableCells'](_0x12612a['document']['selection']);if(!_0x582905['length'])return!0x1;const _0x28623b=_0x582905[0x0]['findAncestor']('table'),_0x2de994=_0x266365['getRowIndexes'](_0x582905),_0x387fbe=_0x266365['getColumnIndexes'](_0x582905),_0x4f6d20={'startRow':_0x2de994['first'],'endRow':_0x2de994['last'],'startColumn':_0x387fbe['first'],'endColumn':_0x387fbe['last']};return 0x1==_0x582905['length']&&(_0x4f6d20['endRow']+=_0x266365['getRows'](_0x46aa84)-0x1,_0x4f6d20['endColumn']+=_0x266365['getColumns'](_0x46aa84)-0x1),Oe(_0x28623b,_0x4f6d20,_0x266365);}(_0xc17d1,_0x229a2c,_0x26e371['model'],_0x3bbf7d,_0x1493ae)&&(_0x52750e['stop'](),_0x582851={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x26e371['model']['change'](()=>{_0x26e371['model']['insertContent'](_0xd997f2[0x0],_0xd997f2[0x1],_0xd997f2[0x2],{'forceDefaultExecution':!0x0});const _0x28ec09=_0x341aab(),{rowInsertionRanges:_0x9559ec,columnInsertionRanges:_0x436ce6,insertionRanges:_0x422748,deletionRanges:_0x3fdbcf,cells:_0x29f66a}=_0x582851;_0x9559ec['length']&&_0x4ecc91['markMultiRangeInsertion'](_0x9559ec,'tablePasteRow',{'tablePasteChainId':_0x28ec09}),_0x436ce6['length']&&_0x4ecc91['markMultiRangeInsertion'](_0x436ce6,'tablePasteColumn',{'tablePasteChainId':_0x28ec09}),_0x422748['length']&&(_0x4ecc91['markMultiRangeInsertion'](_0x422748,'tablePaste',{'tablePasteChainId':_0x28ec09,'skipNestingCheck':!0x0}),_0x422748['forEach'](_0x35f47b=>_0x35f47b['detach']?.())),_0x3fdbcf['length']&&(_0x4ecc91['markMultiRangeDeletion'](_0x3fdbcf,'tablePaste',{'tablePasteChainId':_0x28ec09,'skipNestingCheck':!0x0}),_0x3fdbcf['forEach'](_0x44b5ef=>_0x44b5ef['detach']?.()));const _0x5f5028=_0x4ecc91['markMultiRangeBlockFormat'](_0x29f66a['map'](({element:_0x3a0814})=>_0x3a0814),{'formatGroupId':_0x341aab()},[],'tablePasteCell',{'tablePasteChainId':_0x28ec09});if(_0x5f5028){const _0x3b33e3=_0x5f5028['getMarkers'](),_0x4b21eb=[];for(const {element:_0x47b16e,attributes:_0x47c28d}of _0x29f66a){if(!_0x47c28d)continue;const _0x3c09dc=_0x26e371['model']['createRangeOn'](_0x47b16e),_0x3f1536=_0x3b33e3['find'](_0x504fa9=>_0x504fa9['getRange']()['isEqual'](_0x3c09dc));_0x3f1536&&_0x4b21eb['push']([_0x3f1536['name'],_0x47c28d]);}_0x4b21eb['length']&&_0x5f5028['setAttribute']('markerAttributes',Object['fromEntries'](_0x4b21eb));}_0x582851=null;}));},{'priority':_0x30da9e['high']+0xa}),_0x23578d['on']('contentInsertion',()=>{_0x4f7e1a=!0x1;},{'priority':'lowest'}),_0x26e371['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11ffd2,_0x16c6ed)=>{const [_0xbc0c36,_0x9caa0b,,_0x1e4d72]=_0x16c6ed;if(!_0x582851)return;_0x11ffd2['stop']();const _0x2ccc44=_0xbc0c36['cell'],_0x1ea627=_0x9caa0b,_0x3ccc6d=Be(_0x2ccc44),_0x378c3e=Be(_0x1ea627);_0x11ffd2['return']=_0x2ccc44;let _0x4c2a48=null,_0x10f628=null;if(_0x378c3e||_0x3ccc6d){if(_0x3ccc6d&&!_0x378c3e){_0x1e4d72['remove'](_0x2ccc44['getChild'](0x0));for(const _0x5e3e64 of Array['from'](_0x1ea627['getChildren']()))_0x1e4d72['insert'](_0x5e3e64,_0x2ccc44,'end');const _0x11a128=_0x582851['rowInsertionIndexes']['includes'](_0xbc0c36['row']),_0x374b36=_0x582851['columnInsertionIndexes']['includes'](_0xbc0c36['column']);_0x11a128||_0x374b36||(_0x4c2a48=_0x2ed57b['fromRange'](_0x1e4d72['createRangeIn'](_0x2ccc44)));}else _0x378c3e&&!_0x3ccc6d&&(_0x10f628=_0x1e4d72['createRangeIn'](_0x2ccc44));}else{const _0x24f8df=_0x1e4d72['createElement']('tableCellSuggestion'),_0xff40d0=_0x1e4d72['createElement']('tableCellSuggestion');_0x1e4d72['wrap'](_0x1e4d72['createRangeIn'](_0x2ccc44),_0xff40d0),_0x1e4d72['insert'](_0x24f8df,_0x2ccc44,0x0);for(const _0x1bbc32 of Array['from'](_0x1ea627['getChildren']()))_0x1e4d72['insert'](_0x1bbc32,_0x24f8df,'end');_0x4c2a48=_0x2ed57b['fromRange'](_0x1e4d72['createRangeOn'](_0x24f8df)),_0x10f628=_0x2ed57b['fromRange'](_0x1e4d72['createRangeOn'](_0xff40d0));}const _0x27e483=Array['from'](_0x1ea627['getAttributes']())['filter'](([_0x22464a])=>Re['includes'](_0x22464a));_0x582851['cells']['push']({'element':_0x2ccc44,'attributes':_0x27e483['length']?Object['fromEntries'](_0x27e483):null}),_0x4c2a48&&_0x582851['insertionRanges']['push'](_0x4c2a48),_0x10f628&&_0x582851['deletionRanges']['push'](_0x10f628);},{'priority':'high'}),_0x3bbf7d['on']('insertColumns',(_0x5579ce,_0xaf625f)=>{const [_0x3f07cb,_0x2f9caf={}]=_0xaf625f;if(!_0x582851)return;const _0x30d02e=_0x2f9caf['at']||0x0,_0x51e477=_0x2f9caf['columns']||0x1;_0x582851['columnInsertionIndexes']=new Array(_0x51e477)['fill'](_0x30d02e)['map']((_0x57b4c5,_0x540bf9)=>_0x57b4c5+_0x540bf9);for(const {cell:_0x5746b6}of _0x3bbf7d['createTableWalker'](_0x3f07cb,{'startColumn':_0x30d02e,'endColumn':_0x30d02e+_0x51e477-0x1}))_0x582851['columnInsertionRanges']['push'](_0x26e371['model']['createRangeOn'](_0x5746b6));},{'priority':'low'}),_0x3bbf7d['on']('insertRows',(_0x4c4be6,_0x51ed94)=>{const [_0x37fb71,_0x35da1b={}]=_0x51ed94;if(!_0x582851)return;const _0x5185b6=_0x35da1b['at']||0x0,_0x29d5fe=_0x35da1b['rows']||0x1;_0x582851['rowInsertionIndexes']=new Array(_0x29d5fe)['fill'](_0x5185b6)['map']((_0x1d7ea2,_0xdcc5bd)=>_0x1d7ea2+_0xdcc5bd);for(const {cell:_0xf419c8}of _0x3bbf7d['createTableWalker'](_0x37fb71,{'startRow':_0x5185b6,'endRow':_0x5185b6+_0x29d5fe-0x1}))_0x582851['rowInsertionRanges']['push'](_0x26e371['model']['createRangeOn'](_0xf419c8));},{'priority':'low'}),_0x4ecc91['descriptionFactory']['registerDescriptionCallback'](_0x1ee537=>{if(_0x1ee537['subType']&&_0x1ee537['subType']['startsWith']('tablePaste'))return _0x1ee537['previous']?{}:{'type':'insertion','content':o(_0x26e371['locale'],'*Replace\x20table\x20cells*')};});const _0x457508=()=>!0x1;for(const _0x1535fc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4ecc91['_suggestionFactory']['registerCustomCallback']('insertion',_0x1535fc,'join',_0x457508),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('deletion',_0x1535fc,'join',_0x457508),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1535fc,'join',_0x457508);_0x4ecc91['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x457508),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a9289,_0x32e18c,_0x23101a)=>{const _0x562935=_0x1a9289['map'](_0x50166c=>_0x50166c['getContainedElement']())['filter'](_0xf52e8=>_0xf52e8),_0x30bc8d=new Map(_0x562935['map'](_0x1658f2=>[_0x1658f2,null]));if(_0x582851){for(const {element:_0x2bb16d,attributes:_0x17fbf6}of _0x582851['cells'])_0x17fbf6&&_0x30bc8d['set'](_0x2bb16d,_0x17fbf6);}else{if(_0x23101a&&_0x23101a['markerAttributes'])for(const [_0x3d49f9,_0x32c106]of Object['entries'](_0x23101a['markerAttributes'])){const _0x4ca604=_0x26e371['model']['markers']['get'](_0x3d49f9),_0x1e0956=_0x4ca604?_0x4ca604['getRange']()['getContainedElement']():null;_0x1e0956&&_0x30bc8d['set'](_0x1e0956,_0x32c106);}}_0x26e371['model']['change'](_0x24b1c8=>{for(const [_0x281589,_0x5fc24e]of _0x30bc8d)_0x24b1c8['setAttributes']({...Ae,..._0x5fc24e},_0x281589);});});const _0x372abc=(_0x145fa4,_0x105302)=>{_0x4ecc91['_suggestionFactory']['registerCustomCallback'](_0x145fa4,'tablePaste',_0x105302,(_0x69818,_0x398829,_0x25438f)=>{_0x26e371['model']['change'](_0x40402c=>{const _0x2de398=[];for(const _0x2720d1 of _0x69818){const _0x499020=_0x2720d1['start']['nodeAfter'];_0x499020['is']('element','tableCellSuggestion')&&_0x2de398['push'](_0x499020);}_0x4ecc91['_suggestionFactory']['getSuggestionCallback'](_0x145fa4,null,_0x105302)(_0x69818,_0x398829,_0x25438f);for(const _0x5b8ead of _0x2de398)'$graveyard'!=_0x5b8ead['root']['rootName']&&_0x40402c['unwrap'](_0x5b8ead);});});};_0x372abc('insertion','accept'),_0x372abc('insertion','discard'),_0x372abc('deletion','accept'),_0x372abc('deletion','discard'),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f3de8=>{const _0x34ce02=_0x4f3de8['map'](_0x2e38e4=>_0x2e38e4['getContainedElement']()),_0x51cc27=_0x34ce02[0x0]['findAncestor']('table'),{minRow:_0x40364a,maxRow:_0x41def5}=_0x9d51a5['_getCoordsForCells'](_0x34ce02);_0x3bbf7d['removeRows'](_0x51cc27,{'at':_0x40364a,'rows':_0x41def5-_0x40364a+0x1});}),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x38f71e=>{const _0x4977b3=_0x38f71e['map'](_0x275bb3=>_0x275bb3['getContainedElement']()),_0x21f036=_0x4977b3[0x0]['findAncestor']('table'),{minColumn:_0x2fdbe4,maxColumn:_0x345c5c}=_0x9d51a5['_getCoordsForCells'](_0x4977b3);_0x3bbf7d['removeColumns'](_0x21f036,{'at':_0x2fdbe4,'columns':_0x345c5c-_0x2fdbe4+0x1});});const _0x2b5685=(_0x26e5e4,_0x4cdeec)=>{if(!_0x4cdeec['subType']||!_0x4cdeec['subType']['startsWith']('tablePaste'))return;const _0x169aaf=_0x4cdeec['attributes']['tablePasteChainId'],_0x2fbab6=_0x4ecc91['getSuggestions']()['filter'](_0x127121=>_0x127121['isInContent']&&_0x127121['attributes']&&_0x127121['attributes']['tablePasteChainId']==_0x169aaf);_0x2fbab6['length']&&_0x4cdeec['getAllAdjacentSuggestions']()['length']!=_0x2fbab6['length']&&_0x2fbab6['reduce']((_0x12f510,_0x139ecf)=>(_0x12f510['next']=_0x139ecf,_0x139ecf['previous']=_0x12f510,_0x139ecf));};function _0x12fcb1(_0x29954f,_0x2cfc13=!0x0){const {id:_0x5b0983,authorId:_0x20bf5d}=_0x4ecc91['_splitMarkerName'](_0x29954f['markerName']),_0x4db2da=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x453b38=_0x4ecc91['activeMarkers']['includes'](_0x29954f['markerName']);return _0x453b38&&_0x4db2da['push']('ck-suggestion-marker--active'),{'classes':_0x4db2da,'attributes':{'data-suggestion':_0x5b0983,'data-author-id':_0x20bf5d},'priority':_0x453b38&&_0x2cfc13?0xbc2:0xbb8};}_0x4ecc91['on']('suggestionLoaded',_0x2b5685,{'priority':'high'}),_0x4ecc91['on']('suggestionUnloaded',_0x2b5685,{'priority':'high'}),_0x26e371['model']['document']['registerPostFixer'](()=>{let _0x4eefa8=!0x1;const _0x6ad65e=Array['from'](_0x26e371['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x455234,data:_0x47c69f}of _0x6ad65e){const {group:_0x3ee1d4,type:_0x1c8624,id:_0x5ca142}=_0x4ecc91['_splitMarkerName'](_0x455234);if('suggestion'!=_0x3ee1d4||'deletion'!=_0x1c8624||_0x47c69f['oldRange'])continue;if(!_0x4ecc91['hasSuggestion'](_0x5ca142))continue;const _0x1ac3df=_0x4ecc91['getSuggestion'](_0x5ca142)['getRanges'](),_0x295d49=_0x26e371['plugins']['get']('Users')['me'];for(const _0x12cb11 of _0x4ecc91['getSuggestions']()){if(!_0x12cb11['isInContent']||_0x12cb11['author']!=_0x295d49)continue;if('formatBlock'!=_0x12cb11['type']||'tablePasteCell'!=_0x12cb11['subType'])continue;if(_0x12cb11['getRanges']()['every'](_0x486e9b=>_0x1ac3df['some'](_0xad6e02=>_0xad6e02['containsRange'](_0x486e9b,!0x0)))){for(const _0x3d86c8 of _0x12cb11['getAllAdjacentSuggestions']())_0x3d86c8['isInContent']&&(_0x3d86c8['discard'](),_0x4eefa8=!0x0);}}}return _0x4eefa8;}),_0x26e371['model']['document']['registerPostFixer'](_0x2a3dcd=>{const _0x5384c7=_0x26e371['commands']['get']('redo');if(!_0x5384c7||!_0x5384c7['_createdBatches']['has'](_0x2a3dcd['batch']))return!0x1;let _0x584c4c=!0x1;const _0x1e2672=_0x26e371['plugins']['get']('Users')['me'],_0x115498=_0x26e371['model']['document']['differ']['getChanges'](),_0x42d40b=Array['from'](_0x26e371['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3b2964,data:_0x677026})=>{const {group:_0x480eb7,subType:_0x20e98a,authorId:_0x160c9a}=_0x4ecc91['_splitMarkerName'](_0x3b2964);return'suggestion'==_0x480eb7&&'tablePaste'==_0x20e98a&&_0x160c9a==_0x1e2672['id']&&!_0x677026['oldRange'];});for(const _0x5ac821 of _0x115498){if('insert'!=_0x5ac821['type']||'tableCellSuggestion'!=_0x5ac821['name']||0x1!=_0x5ac821['length'])continue;const _0xe6168a=_0x2a3dcd['createRange'](_0x5ac821['position'],_0x5ac821['position']['getShiftedBy'](0x1));if(!_0x42d40b['find'](({data:_0x36c05e})=>_0x36c05e['newRange']['isEqual'](_0xe6168a))){for(const {name:_0x19bcc1,data:_0x231b1e}of _0x42d40b)if(_0xe6168a['containsRange'](_0x231b1e['newRange'])){_0x2a3dcd['updateMarker'](_0x19bcc1,{'range':_0xe6168a}),_0x584c4c=!0x0;break;}}}return _0x584c4c;}),_0x26e371['model']['document']['registerPostFixer'](_0xa93f69=>{let _0xccca76=!0x1;const _0x497c5f=_0x26e371['plugins']['get']('Users')['me'],_0xf21f9d=_0x4ecc91['getSuggestions']()['filter'](_0x2165e0=>_0x2165e0['isInContent']&&_0x2165e0['author']==_0x497c5f),_0x383de7=new Set(),_0x10171c=new Set();for(const _0x27b312 of _0xf21f9d)if('tablePaste'==_0x27b312['subType'])for(const _0x279e88 of _0x27b312['getMarkers']()){const _0xd434bb=_0x279e88['getRange']()['getContainedElement']();if(_0xd434bb){if(_0xd434bb['is']('element','tableCellSuggestion')&&Be(_0xd434bb)){_0x27b312['removeMarker'](_0x279e88['name']),_0x383de7['add'](_0xd434bb),_0xccca76=!0x0;const _0x9d8d26=_0xd434bb['nextSibling'],_0x5713ac=_0xd434bb['previousSibling'],_0x21d704=_0x9d8d26&&_0x9d8d26['is']('element','tableCellSuggestion'),_0x3e8306=_0x5713ac&&_0x5713ac['is']('element','tableCellSuggestion');_0x21d704&&!_0x383de7['has'](_0x9d8d26)&&_0x10171c['add'](_0x9d8d26),_0x3e8306&&!_0x383de7['has'](_0x5713ac)&&_0x10171c['add'](_0x5713ac);}else _0xd434bb['is']('element','paragraph')&&_0xd434bb['isEmpty']&&(_0x27b312['removeMarker'](_0x279e88['name']),_0xccca76=!0x0);}}else{if('tablePasteCell'==_0x27b312['subType']){if(!_0x27b312['attributes']||!_0x27b312['attributes']['tablePasteChainId'])continue;const _0x139ebc=_0x27b312['attributes']['markerAttributes'];if(_0x139ebc&&Object['keys'](_0x139ebc)['length'])continue;const _0x91a8f3=_0x27b312['attributes']['tablePasteChainId'];let _0x11d78f=!0x0,_0x97adb8=!0x0;for(const _0x24c0c4 of _0xf21f9d)if(_0x24c0c4['subType']&&_0x24c0c4['subType']['startsWith']('tablePaste')){if(!_0x24c0c4['attributes']['tablePasteChainId']){_0x97adb8=!0x1;break;}if(_0x24c0c4['id']!=_0x27b312['id']&&_0x24c0c4['attributes']['tablePasteChainId']==_0x91a8f3){_0x11d78f=!0x1;break;}}_0x97adb8&&_0x11d78f&&(_0x27b312['removeMarkers'](),_0xccca76=!0x0);}}for(const _0x5f4c42 of _0x383de7)_0xa93f69['remove'](_0x5f4c42);for(const _0x568ef0 of _0x10171c)_0xa93f69['unwrap'](_0x568ef0);return _0xccca76;}),_0x26e371['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5ba4de=>_0x12fcb1(_0x5ba4de),'converterPriority':'high'}),_0x26e371['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a1555,_0x3b2b1d)=>_0x3b2b1d['options']['showSuggestionHighlights']?_0x12fcb1(_0x3a1555,!0x1):null,'converterPriority':'high'});const _0x6263ea=_0x26e371['editing']['view'];this['listenTo'](_0x6263ea['document'],'clipboardOutput',(_0x532dc5,_0x356fbd)=>{const _0x10fedb=[];for(const _0x21f673 of _0x6263ea['createRangeIn'](_0x356fbd['content'])['getItems']())_0x21f673['is']('element','suggestion-td')&&_0x10fedb['push'](_0x21f673);_0x6263ea['change'](_0x559cfb=>{for(const _0x27d3fb of _0x10fedb)_0x559cfb['move'](_0x559cfb['createRangeIn'](_0x27d3fb),_0x559cfb['createPositionBefore'](_0x27d3fb)),_0x559cfb['remove'](_0x27d3fb);});});}}function Be(_0x2b7d20){if(_0x2b7d20['isEmpty'])return!0x0;const _0xf7ab4d=_0x2b7d20['getChild'](0x0);return _0xf7ab4d['is']('element','paragraph')&&_0xf7ab4d['isEmpty'];}function Oe(_0x34c0e1,_0x1485fc={},_0x450a95){for(const {isAnchor:_0x1947f3,cellHeight:_0x2e27f6,cellWidth:_0x232679}of _0x450a95['createTableWalker'](_0x34c0e1,{'includeAllSlots':!0x0,..._0x1485fc}))if(!_0x1947f3||0x1!=_0x2e27f6||0x1!=_0x232679)return!0x1;return!0x0;}class Rt extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2f466c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f466c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2f466c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2f466c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f466c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2f466c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2f466c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1c25dd,_0x1a3a8b){const _0x1cc03e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1eac2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xfbc6b3=_0x1a3a8b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4370d7=_0x1eac2d['getColumnGroupElement'](_0xfbc6b3);let _0x390cdb=_0x4370d7?_0x1eac2d['getTableColumnsWidths'](_0x4370d7):null,_0x1b65f8=_0xfbc6b3['getAttribute']('tableWidth')||null;const _0x227bed=_0x1a3a8b['tableWidth']||_0x1b65f8,_0x2bedec=_0x1a3a8b['columnWidths']||_0x390cdb,_0x101260=this['editor']['plugins']['get']('Users')['me'];for(const _0xd97376 of _0x1cc03e['getSuggestions']()){const _0x2a4827=_0xd97376['getContainedElement']();if('resizeTable'===_0xd97376['subType']&&_0x2a4827===_0xfbc6b3){_0xd97376['author']!==_0x101260&&_0xd97376['discard']();const _0x39db99=_0xd97376['data']['commandParams'];_0x1b65f8=_0x39db99[0x0]['tableWidth'],_0x390cdb=_0x39db99[0x0]['columnWidths'];break;}}_0x1c25dd({'table':_0xfbc6b3,'tableWidth':_0x227bed,'columnWidths':_0x2bedec}),_0x1cc03e['markBlockFormat'](_0xfbc6b3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b65f8,'columnWidths':_0x390cdb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x22c488){if('formatBlock'!=_0x22c488['type']&&'formatInline'!=_0x22c488['type'])return;const {data:_0x39e697}=_0x22c488;if(_0x39e697&&'resizeTable'===_0x39e697['formatGroupId']){const _0x19490d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x19490d)};}}}class Tt extends _0x562758{['afterInit'](){const _0x184a5d=this['editor'];_0x184a5d['plugins']['has']('Template')&&_0x184a5d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x562758{['afterInit'](){const _0x57bb77=this['editor'];if(!_0x57bb77['commands']['get']('insertTableOfContents'))return;_0x57bb77['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4fa81f=_0x57bb77['plugins']['get']('TrackChangesEditing'),_0x16c531=_0x57bb77['locale'];_0x4fa81f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16f7d4=>o(_0x16c531,'ELEMENT_TABLE_OF_CONTENTS',_0x16f7d4));}}class Ut extends _0x562758{['afterInit'](){const _0x159078=this['editor'];if(!_0x159078['plugins']['has']('Title'))return;const _0x804276=_0x159078['plugins']['get']('TrackChangesEditing');_0x804276['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x159078['locale'],'ELEMENT_TITLE')),_0x159078['model']['document']['registerPostFixer'](_0x2a1059=>{let _0x33d661=!0x1;const _0x2d5777=Array['from'](_0x159078['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x170221,data:_0x2d511e}of _0x2d5777){const {group:_0xd9a7b4}=_0x804276['_splitMarkerName'](_0x170221);if('suggestion'!==_0xd9a7b4||!_0x2d511e['newRange'])continue;const _0x52b135=_0x2d511e['newRange'],_0x32aa33=_0x52b135['end']['nodeBefore'];if(!_0x32aa33||!_0x32aa33['is']('element','title-content'))continue;if(!_0x52b135['start']['isTouching'](_0x52b135['end']))continue;const _0x4bec8c=_0x159078['model']['schema']['getNearestSelectionRange'](_0x52b135['end'],'forward');if(_0x4bec8c&&_0x4bec8c['isCollapsed']){const _0x26208c=_0x2a1059['createRange'](_0x52b135['start'],_0x4bec8c['start']);_0x26208c['isEqual'](_0x52b135)||(_0x2a1059['updateMarker'](_0x170221,{'range':_0x26208c}),_0x33d661=!0x0);}_0x33d661||(_0x2a1059['removeMarker'](_0x170221),_0x33d661=!0x0);}return _0x33d661;});}}class Vt extends _0x562758{['afterInit'](){const _0x5955aa=this['editor'],_0x3d719f=_0x5955aa['plugins']['get']('TrackChangesEditing');_0x5955aa['plugins']['has']('Uploadcare')&&(_0x3d719f['enableCommand']('uploadcare'),_0x5955aa['plugins']['has']('UploadcareImageEdit')&&(_0x3d719f['enableCommand']('uploadcareImageEdit'),_0x3d719f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d719f['descriptionFactory']['registerDescriptionCallback'](_0x452394=>{if('attribute'!=_0x452394['type'])return;const {data:_0x5d4d66}=_0x452394;return _0x5d4d66&&'uploadcareImageId'==_0x5d4d66['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x562758{['afterInit'](){const _0x3f3b22=this['editor'],_0x2d25c9=_0x3f3b22['plugins']['get']('TrackChangesEditing');_0x3f3b22['plugins']['has']('UndoEditing')&&(_0x2d25c9['enableCommand']('undo'),_0x2d25c9['enableCommand']('redo'));}}class Pt extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x2807be=this['editor'];if(!_0x2807be['plugins']['has']('TableCaptionEditing'))return;_0x2807be['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x562758{['tableProperties'];['tableCellProperties'];constructor(_0x3bb33c){super(_0x3bb33c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x3bb33c['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5770eb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x531e76 of this['tableProperties'])_0x5770eb['enableCommand'](_0x531e76,(_0x35bb7a,_0x50c795)=>{const _0x152be0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x531e76,[_0x152be0],this['tableProperties'],'tableProperties',_0x35bb7a,_0x50c795);});_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5770eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1f96b4,_0x262bc)=>this['handleDiscardAction'](this['tableProperties'],_0x1f96b4,_0x262bc)),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x19e124 of this['tableCellProperties'])this['editor']['commands']['get'](_0x19e124)&&_0x5770eb['enableCommand'](_0x19e124,(_0x23da17,_0x49f1d0)=>{const _0x1d9ffd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x19e124,_0x1d9ffd,this['tableCellProperties'],'tableCellProperties',_0x23da17,_0x49f1d0);});_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5770eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f7da3,_0x2f061)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f7da3,_0x2f061)),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5770eb['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5770eb['descriptionFactory']['registerDescriptionCallback'](_0x2e971f=>this['handleSuggestionDescription'](_0x2e971f)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xe8bbf8,_0x34f229,_0x255671,_0xd0e98d,_0x4a3e9d,_0x3bbabc){const _0x660b1e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3bbabc['batch'],()=>{for(const _0x9440c5 of _0x34f229){if(this['_getSuggestion'](_0x9440c5,_0xd0e98d))_0x4a3e9d(_0x3bbabc);else{const _0x4e51cc={};for(const _0x107af2 of _0x255671){const _0x8d6e7c=_0x9440c5['getAttribute'](_0x107af2);void 0x0!==_0x8d6e7c&&(_0x4e51cc[_0x107af2]=_0x8d6e7c);}_0x4a3e9d(_0x3bbabc),_0x660b1e['markBlockFormat'](_0x9440c5,{'commandParams':[_0x4e51cc]},[],_0xd0e98d);}}});}['handleDiscardAction'](_0x59b96c,_0x1c597c,_0x1c653a){const _0x50132d=_0x1c597c[0x0]['start']['nodeAfter'],_0x50c203=_0x1c653a['commandParams'][0x0];this['editor']['model']['change'](_0x5c610f=>{for(const _0x5e5ef5 of _0x59b96c)void 0x0!==_0x50c203[_0x5e5ef5]?_0x5c610f['setAttribute'](_0x5e5ef5,_0x50c203[_0x5e5ef5],_0x50132d):_0x5c610f['removeAttribute'](_0x5e5ef5,_0x50132d);});}['handleSuggestionDescription'](_0xf06ff9){if(_0xf06ff9['data'])switch(_0xf06ff9['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x435f42,_0x17e3aa){const _0x583997=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x41504a of _0x583997['getSuggestions']({'skipNotAttached':!0x0})){const _0xbb829d=_0x41504a['getContainedElement']();if(_0x41504a['subType']===_0x17e3aa&&_0xbb829d===_0x435f42)return _0x41504a;}return null;}['_registerTablePropertiesAttributes'](){const _0x338c63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13fad0=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4785d4 of _0x13fad0){const _0x2f49ca=_0x4785d4['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x338c63['descriptionFactory']['registerAttributeLabel'](_0x4785d4,o(this['editor']['locale'],'FORMAT_'+_0x2f49ca));}}}class Lt extends _0x562758{['afterInit'](){const _0x16bcd1=this['editor'];if(!_0x16bcd1['plugins']['has']('LineHeight'))return;const _0x3497c0=_0x16bcd1['plugins']['get']('TrackChangesEditing'),_0x53a5b1=_0x16bcd1['locale'];_0x3497c0['enableDefaultAttributesIntegration']('lineHeight'),_0x3497c0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x53a5b1,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x562758{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x55e6d0,_0x3f15d1,_0x448de2,_0x18362e,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c1b22){super(_0x5c1b22),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x554f0c,_0x289dc9,_0x30e5eb,_0x325fdc)=>{this['_model']['change'](()=>{for(const _0x5a6aab of[..._0x325fdc,..._0x30e5eb])this['_model']['markers']['has'](_0x5a6aab)&&_0x5c1b22['editing']['reconvertMarker'](_0x5a6aab);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5c1b22['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5c1b22['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c1b22['config']['get']('trackChanges.trackFormatChanges'),_0x5c1b22['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c1b22['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c1b22,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57ee37=this['editor'];_0x57ee37['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x57f187,{writer:_0x3ccffd})=>{let _0x2d14a8='suggestion:'+_0x57f187['getAttribute']('suggestion-type')+':'+_0x57f187['getAttribute']('id');return _0x57f187['getAttribute']('marker-count')&&(_0x2d14a8+=':'+_0x57f187['getAttribute']('marker-count')),_0x3ccffd['createElement']('$marker',{'data-name':_0x2d14a8});}}),_0x57ee37['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x57ee37['model']['document']['registerPostFixer'](_0x4a9942=>{let _0x3c116c=!0x1;const _0x48e4c1=Array['from'](_0x57ee37['model']['document']['differ']['getChangedMarkers']()),_0x4dd94d=new Set();for(const {name:_0x504a0c,data:_0x434d1a}of _0x48e4c1){const {group:_0xe098a9,type:_0x52b728,subType:_0x1dba43,id:_0x284599}=this['_splitMarkerName'](_0x504a0c);if('suggestion'!==_0xe098a9)continue;const _0x2dbcb6=_0x1dba43?'suggestion:'+_0x52b728+':'+_0x1dba43+':'+_0x284599:'suggestion:'+_0x52b728+':'+_0x284599,_0x6fdd1d=_0x57ee37['model']['markers']['getMarkersGroup'](_0x2dbcb6),_0x4e91e=_0x57ee37['model']['markers']['get'](_0x504a0c),_0x1a2f77=this['_suggestions']['get'](_0x284599);if(null!=_0x434d1a['newRange']){'formatInline'==_0x52b728&&(_0x3c116c=_0x3c116c||Wt(_0x434d1a['newRange'],_0x504a0c,_0x4a9942,_0x57ee37['model']['schema']));const _0x5c4b3c='attribute'==_0x52b728&&this['_isBlockAttribute'](_0x1dba43['split']('|')[0x0]),_0x54a175='attribute'==_0x52b728&&this['_isInlineAttribute'](_0x1dba43['split']('|')[0x0]);if(_0x434d1a['newRange']['isCollapsed']||'$graveyard'==_0x434d1a['newRange']['root']['rootName']||'formatBlock'==_0x52b728&&!Qt(_0x434d1a['newRange'])||_0x5c4b3c&&!Qt(_0x434d1a['newRange'])||_0x54a175&&Xt(_0x434d1a['newRange'])||'deletion'==_0x52b728&&Xt(_0x434d1a['newRange'])||_0x4e91e&&Yt(_0x4e91e,_0x6fdd1d))_0x4a9942['removeMarker'](_0x504a0c),_0x3c116c=!0x0;else{if(!_0x1a2f77||!_0x1a2f77['isInContent'])continue;if(_0x434d1a['newRange']&&_0x434d1a['oldRange']&&_0x434d1a['newRange']['isEqual'](_0x434d1a['oldRange']))continue;_0x4dd94d['add'](_0x1a2f77);}}}return _0x4dd94d['size']>0x0&&(_0x3c116c=!!this['_joinWithAdjacentSuggestions'](_0x4dd94d)||_0x3c116c),_0x3c116c;}),_0x57ee37['model']['document']['registerPostFixer'](_0x1db65c=>{let _0x5667d3=!0x1;for(const _0xf7dead of _0x57ee37['model']['document']['differ']['getChanges']())if('insert'==_0xf7dead['type'])for(const _0x55bfcb of this['_suggestions']['values']()){if(_0x55bfcb['isMultiRange']||!_0x55bfcb['isInContent'])continue;const _0xd1be5='formatBlock'==_0x55bfcb['type'],_0x54a2a9=this['_getAttributeKey'](_0x55bfcb),_0x34051e=_0x54a2a9&&this['_isBlockAttribute'](_0x54a2a9);if(!_0xd1be5&&!_0x34051e)continue;const _0x2119fa=_0x55bfcb['getFirstRange']();if(_0x2119fa['start']['parent']!=_0x2119fa['end']['parent']&&!_0x2119fa['end']['isAtEnd']){const _0x4d056b=_0x57ee37['model']['createPositionAt'](_0x2119fa['start']['nodeAfter'],'end'),_0x57e487=_0x57ee37['model']['createRange'](_0x2119fa['start'],_0x4d056b);_0x1db65c['updateMarker'](_0x55bfcb['getFirstMarker'](),{'range':_0x57e487}),_0x5667d3=!0x0;}}return _0x5667d3;}),_0x57ee37['model']['document']['registerPostFixer'](_0x56bb9a=>this['_processAttributeChanges'](_0x56bb9a)),_0x57ee37['model']['document']['registerPostFixer'](_0x34bc9b=>!_0x34bc9b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34bc9b)),_0x57ee37['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x57ee37['model']['document']['on']('change:data',(_0x329824,_0x114752)=>{if(!_0x114752['isLocal']||_0x114752['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x594516=_0x57ee37['model']['document']['differ']['getChanges']();if(0x0==_0x594516['length'])return;const _0x21765c=[],_0x3e2d6a=_0x594516['filter'](_0x56bf8b=>'attribute'==_0x56bf8b['type']),_0x201656=_0x594516['filter'](_0x3da3b0=>'insert'==_0x3da3b0['type']&&'$text'!=_0x3da3b0['name']);for(const _0x5b1c69 of _0x3e2d6a)this['_isRegisteredAttribute'](_0x5b1c69['attributeKey'])&&_0x21765c['push']({'key':_0x5b1c69['attributeKey'],'newValue':_0x5b1c69['attributeNewValue'],'oldValue':_0x5b1c69['attributeOldValue'],'range':Zt(_0x5b1c69['range'],_0x57ee37['model'])});for(const _0x5a6cba of _0x201656){if('rename'!=_0x5a6cba['action']&&'refresh'!=_0x5a6cba['action'])continue;const _0x5ebf69=tn(_0x5a6cba['position']['nodeAfter'],_0x57ee37['model']),_0x2ad3de=_0x5a6cba['before'];'rename'==_0x5a6cba['action']&&_0x21765c['push']({'key':m,'newValue':_0x5a6cba['name'],'oldValue':_0x2ad3de['name'],'range':_0x5ebf69});for(const [_0x2c1ade,_0x3591f4]of _0x2ad3de['attributes']){if(!this['_isRegisteredAttribute'](_0x2c1ade))continue;const _0x5c21b0=_0x5a6cba['attributes']['get'](_0x2c1ade);_0x3591f4!==_0x5c21b0&&_0x21765c['push']({'key':_0x2c1ade,'newValue':_0x5c21b0,'oldValue':_0x3591f4,'range':_0x5ebf69});}for(const [_0x52d095,_0x3d02e6]of _0x5a6cba['attributes'])this['_isRegisteredAttribute'](_0x52d095)&&(_0x2ad3de['attributes']['has'](_0x52d095)||_0x21765c['push']({'key':_0x52d095,'newValue':_0x3d02e6,'oldValue':null,'range':_0x5ebf69}));}0x0!=_0x21765c['length']&&_0x57ee37['model']['enqueueChange'](_0x114752,_0x4c4737=>{const _0x318062=_0x341aab();for(const {range:_0x23219f,key:_0x34ace5,oldValue:_0x3093a5,newValue:_0x5c0fe9}of _0x21765c)this['markAttributeChange'](_0x23219f,_0x34ace5,_0x3093a5,_0x5c0fe9,{'groupId':_0x318062});this['_reduceExistingSuggestions'](_0x4c4737,_0x21765c);});},{'priority':'lowest'}),_0x57ee37['model']['markers']['on']('update:suggestion',(_0x4f1187,_0xe22aa1,_0x17fae7)=>{if(null==_0x17fae7){const {id:_0xa12c48}=this['_splitMarkerName'](_0xe22aa1['name']),_0x45f995=this['_suggestions']['get'](_0xa12c48);_0x45f995&&_0x45f995['addMarkerName'](_0xe22aa1['name']);}}),_0x57ee37['model']['document']['on']('change:data',()=>{const _0x29475b=Array['from'](_0x57ee37['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20e485=>'suggestion'===this['_splitMarkerName'](_0x20e485['name'])['group']);if(0x0===_0x29475b['length'])return;_0x29475b['sort']((_0x23b01f,_0x4414ee)=>{const _0x1931e1=_0x23b01f['data']['oldRange'],_0x386943=_0x4414ee['data']['oldRange'];return null===_0x1931e1&&null===_0x386943?0x0:null===_0x1931e1&&null!==_0x386943?-0x1:null!==_0x1931e1&&null===_0x386943?0x1:_0x1931e1['start']['isBefore'](_0x386943['start'])?-0x1:0x1;});const _0x12f8f8=new Set(),_0x4915d5=new Set();for(const {name:_0x11eaaa,data:_0x5dbed0}of _0x29475b){const {id:_0x1eb763}=this['_splitMarkerName'](_0x11eaaa);if(null===_0x5dbed0['oldRange']){const _0x56cb48=this['_handleNewSuggestionMarker'](_0x11eaaa);_0x4915d5['add'](_0x56cb48);}else{const _0x1ad181=this['_suggestions']['get'](_0x1eb763);null!==_0x5dbed0['newRange']||_0x1ad181['isInContent']?(_0x12f8f8['add'](_0x1ad181['head']),_0x4915d5['add'](_0x1ad181)):this['_removeSuggestion'](_0x1ad181);}}_0x4915d5['size']>0x0&&this['_refreshSuggestionsChain'](_0x4915d5);for(const _0x454343 of _0x12f8f8)this['fire']('suggestionChanged',_0x454343);}),_0x57ee37['model']['on']('applyOperation',(_0x3bf506,_0x46e2c9)=>{const _0x24c0b0=_0x46e2c9[0x0];if(!this['_suggestions']['size'])return;if(!_0x24c0b0['isDocumentOperation'])return;if(_0x24c0b0['batch']['isUndo']||!_0x24c0b0['batch']['isLocal'])return;let _0x110308,_0x5197e1;switch(_0x24c0b0['type']){case'insert':_0x110308=_0x57ee37['model']['createPositionAt'](_0x24c0b0['position']),_0x5197e1=_0x110308['getShiftedBy'](_0x24c0b0['howMany']);break;case'split':_0x110308=_0x57ee37['model']['createPositionAt'](_0x24c0b0['splitPosition']),_0x5197e1=_0x57ee37['model']['createPositionAt'](_0x24c0b0['moveTargetPosition']);break;case'move':_0x110308=_0x57ee37['model']['createPositionAt'](_0x24c0b0['targetPosition']),_0x5197e1=_0x110308['getShiftedBy'](_0x24c0b0['howMany']);break;default:return;}const _0x14bfd9=_0x57ee37['model']['createRange'](_0x110308,_0x5197e1);_0x57ee37['model']['change'](()=>{for(const {suggestion:_0x3a2abc,meta:_0x3c3800}of this['_findSuggestions'](_0x14bfd9)){if(_0x3a2abc['isMultiRange'])continue;if('formatInline'==_0x3a2abc['type'])continue;const _0x52bba9=this['_getAttributeKey'](_0x3a2abc);if(_0x52bba9&&this['_isBlockAttribute'](_0x52bba9)&&'split'!=_0x24c0b0['type'])continue;const _0x43edd9=_0x3a2abc['data']&&_0x3a2abc['data']['multipleBlocks'];('formatBlock'!=_0x3a2abc['type']||'split'==_0x24c0b0['type']&&!_0x43edd9)&&(_0x3c3800['containsRangeInObject']||'insertion'==_0x3a2abc['type']&&_0x3c3800['isOwn']||_0x3a2abc['getFirstRange']()['containsRange'](_0x14bfd9)&&this['_breakSuggestionMarker'](_0x3a2abc,_0x110308,_0x5197e1));}});},{'priority':'lowest'}),_0x57ee37['model']['on']('deleteContent',(_0x283b7b,_0x4f1161)=>{const _0x4d7b68=_0x4f1161[0x0],_0x46d988=_0x4f1161[0x1];if(_0x46d988&&_0x46d988['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d7b68['isCollapsed'])return;const _0x4087fa=_0x57ee37['model']['schema'],{start:_0x35a1ad,end:_0x37124e}=_0x4d7b68['getFirstRange'](),_0x2264c4=_0x35a1ad['nodeAfter']&&_0x4087fa['isLimit'](_0x35a1ad['nodeAfter'])?null:_0x4087fa['getNearestSelectionRange'](_0x35a1ad,'forward'),_0x52e07b=_0x37124e['nodeBefore']&&_0x4087fa['isLimit'](_0x37124e['nodeBefore'])?null:_0x4087fa['getNearestSelectionRange'](_0x37124e,'backward'),_0x2d6604=_0x57ee37['model']['createRange'](_0x2264c4?_0x2264c4['start']:_0x35a1ad,_0x52e07b?_0x52e07b['end']:_0x37124e);_0x57ee37['model']['change'](_0x2ce9a3=>{this['markDeletion'](_0x2d6604);const _0x47f6f0=_0x57ee37['model']['schema']['getNearestSelectionRange'](_0x2d6604['start']);_0x4d7b68['is']('documentSelection')?_0x2ce9a3['setSelection'](_0x47f6f0):_0x4d7b68['setTo'](_0x47f6f0);}),_0x283b7b['stop']();},{'priority':_0x30da9e['normal']+0xa}),_0x57ee37['model']['on']('insertContent',(_0xb4271e,_0x5686ae)=>{const _0x3f8f8c=_0x5686ae[_0x5686ae['length']-0x1];_0x3f8f8c&&_0x3f8f8c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x57ee37['model']['change'](()=>{let _0x2c8439=_0x57ee37['model']['insertContent'](_0x5686ae[0x0],_0x5686ae[0x1],_0x5686ae[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c8439)return;_0xb4271e['return']=_0x2c8439['clone']();const _0x595d7b=_0x2c8439['end']['nodeBefore'],_0x5398e0=_0x57ee37['model']['schema'];_0x595d7b&&_0x5398e0['isBlock'](_0x595d7b)&&!_0x5398e0['isObject'](_0x595d7b)&&(_0x2c8439=_0x57ee37['model']['createRange'](_0x2c8439['start'],_0x57ee37['model']['createPositionAt'](_0x595d7b,'end'))),this['markInsertion'](_0x2c8439);}),_0xb4271e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x343dd9=new O(_0x57ee37,this['_suggestions']);_0x57ee37['commands']['add']('acceptSuggestion',_0x343dd9),this['enableCommand']('acceptSuggestion');const _0x4f0021=new x(_0x57ee37,this['_suggestions']);_0x57ee37['commands']['add']('discardSuggestion',_0x4f0021),this['enableCommand']('discardSuggestion'),_0x57ee37['commands']['add']('acceptAllSuggestions',new M(_0x57ee37,_0x343dd9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x57ee37['commands']['add']('discardAllSuggestions',new M(_0x57ee37,_0x4f0021,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x57ee37['commands']['add']('acceptSelectedSuggestions',new R(_0x57ee37,_0x343dd9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x57ee37['commands']['add']('discardSelectedSuggestions',new R(_0x57ee37,_0x4f0021,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5e11cf=_0x57ee37['plugins']['get']('CommentsRepository');this['listenTo'](_0x5e11cf,'addComment',(_0x556e75,{threadId:_0x31a2c4})=>{const _0x274216=this['_suggestions']['get'](_0x31a2c4);_0x274216&&_0x274216['commentThread']&&0x1===_0x274216['commentThread']['length']&&this['_updateSuggestionData'](_0x31a2c4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5e11cf,'removeComment',(_0x5a5398,{threadId:_0x2554bd})=>{const _0x3a6a50=this['_suggestions']['get'](_0x2554bd);_0x3a6a50&&_0x3a6a50['commentThread']&&!_0x3a6a50['commentThread']['length']&&this['_updateSuggestionData'](_0x2554bd,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e5d18){const _0x2d3e1c=_0x565d1d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4afc61=0x3d8d0df,_0x59a93c=0x3df53bf^_0x4afc61,_0x5781d8=window[_0x565d1d([0x44,0x61,0x74,0x65])][_0x565d1d([0x6e,0x6f,0x77])](),_0x1beec3=_0x2e5d18[_0x565d1d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a46c1=new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234db7=>{_0x1beec3[_0x565d1d([0x6f,0x6e,0x63,0x65])](_0x565d1d([0x72,0x65,0x61,0x64,0x79]),_0x234db7);}),_0x3ee539={[_0x565d1d([0x6b,0x74,0x79])]:_0x565d1d([0x45,0x43]),[_0x565d1d([0x75,0x73,0x65])]:_0x565d1d([0x73,0x69,0x67]),[_0x565d1d([0x63,0x72,0x76])]:_0x565d1d([0x50,0x2d,0x32,0x35,0x36]),[_0x565d1d([0x78])]:_0x565d1d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x565d1d([0x79])]:_0x565d1d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x565d1d([0x61,0x6c,0x67])]:_0x565d1d([0x45,0x53,0x32,0x35,0x36])},_0x41363c=_0x1beec3[_0x565d1d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x565d1d([0x67,0x65,0x74])](_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a9b89(){let _0x1c63c9,_0x26d082=null,_0x135693=null;try{if(_0x41363c==_0x565d1d([0x47,0x50,0x4c]))return _0x565d1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c63c9=_0x107254(),!_0x1c63c9)return _0x565d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c63c9[_0x565d1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x135693=_0x53ff1c(_0x1c63c9[_0x565d1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c63c9[_0x565d1d([0x6a,0x74,0x69])])),await _0x4bd8ae()?_0xfc4d17()?_0x9f3823()?_0x565d1d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38a4fe()?(_0x1c63c9[_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x565d1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26d082=_0x55d7b5(_0x565d1d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x438448()):_0x565d1d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x565d1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x565d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x565d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9f3823(){const _0x4027dd=[_0x565d1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x565d1d([0x74,0x72,0x69,0x61,0x6c])][_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c63c9[_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5781d8/0x3e8:0xe10*_0x59a93c;return _0x1c63c9[_0x565d1d([0x65,0x78,0x70])]<_0x4027dd;}function _0xfc4d17(){const _0xf0726b=_0x1c63c9[_0x565d1d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf0726b)return!0x1;if(_0xf0726b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x2a])))return!0x0;if(_0xf0726b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x54,0x43])))return!0x0;if(_0xf0726b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x52,0x54,0x43]))){if(_0x3a6bad())return!0x0;if(_0x2ba800()||_0x1d8778())return!0x0;}return!0x1;}function _0x38a4fe(){const _0x22d360=_0x1c63c9[_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22d360||0x0==_0x22d360[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x400356}=new URL(window[_0x565d1d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22d360[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x400356))return!0x0;const _0x897e8d=_0x400356[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e]));return _0x22d360[_0x565d1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x297c2b=>_0x297c2b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x2a])))[_0x565d1d([0x6d,0x61,0x70])](_0x546791=>_0x546791[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e])))[_0x565d1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31f4c6=>_0x31f4c6[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x897e8d[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x565d1d([0x6d,0x61,0x70])](_0x28ab25=>Array(_0x897e8d[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x28ab25[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x565d1d([0x66,0x69,0x6c,0x6c])](_0x28ab25[0x0]===_0x565d1d([0x2a])?_0x565d1d([0x2a]):'')[_0x565d1d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x28ab25))[_0x565d1d([0x73,0x6f,0x6d,0x65])](_0xc94a33=>_0x897e8d[_0x565d1d([0x65,0x76,0x65,0x72,0x79])]((_0x59340c,_0x260cd3)=>_0xc94a33[_0x260cd3]===_0x59340c||_0xc94a33[_0x260cd3]===_0x565d1d([0x2a])));}function _0x438448(){return _0x26d082&&_0x135693?new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17ff25,_0x487391)=>{_0x26d082[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x17ff25,_0x487391),_0x135693[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x42ec79=>{_0x42ec79!=_0x565d1d([0x56,0x61,0x6c,0x69,0x64])&&_0x17ff25(_0x42ec79);},_0x487391);}):_0x26d082||_0x135693||_0x565d1d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53ff1c(_0x17de72,_0x1651ca){return new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e3c16=>{if(_0x348bd7())return _0x3e3c16(_0x565d1d([0x56,0x61,0x6c,0x69,0x64]));_0x46ba75(),_0x1beec3[_0x565d1d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x565d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2007dc=!0x1;const _0x1de9e2=_0x341aab();function _0x5c531e(_0x11d630){return!!_0x11d630&&(typeof _0x11d630===_0x565d1d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11d630===_0x565d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11d630[_0x565d1d([0x74,0x68,0x65,0x6e])]===_0x565d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11d630[_0x565d1d([0x63,0x61,0x74,0x63,0x68])]===_0x565d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35cd3d(_0x50357a){_0x283145(_0x50357a)[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x4bd6dc=>{if(!_0x4bd6dc||_0x4bd6dc[_0x565d1d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x565d1d([0x6f,0x6b]))return _0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x562711(_0x4f5172(_0x1de9e2+_0x1651ca))!=_0x4bd6dc[_0x565d1d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x565d1d([0x56,0x61,0x6c,0x69,0x64]);})[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x30d9dd=>(_0x31956b(),_0x30d9dd),()=>{const _0x5da8f3=_0x2b118e();return null==_0x5da8f3?(_0x31956b(),_0x565d1d([0x56,0x61,0x6c,0x69,0x64])):_0x565d1d(_0x5781d8-_0x5da8f3>(0x27d454df^_0x4afc61)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x3e3c16)[_0x565d1d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e3c16(_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x201a00=0x3ee3e5f^_0x4afc61;function _0x31956b(){const _0x26b006=_0x565d1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x562711(_0x4f5172(_0x17de72)),_0x1c84eb=_0x1ec487(_0x562711(window[_0x565d1d([0x4d,0x61,0x74,0x68])][_0x565d1d([0x63,0x65,0x69,0x6c])](_0x5781d8/_0x201a00)));window[_0x565d1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x565d1d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26b006,_0x1c84eb);}function _0x2b118e(){const _0x30b53c=_0x565d1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x562711(_0x4f5172(_0x17de72)),_0x8b5b85=window[_0x565d1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x565d1d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b53c);return _0x8b5b85?window[_0x565d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ec487(_0x8b5b85),0x10)*_0x201a00:null;}function _0x283145(_0x1f77c1){return new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b4644,_0xbd47b0)=>{_0x1f77c1[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x5b4644,_0xbd47b0),window[_0x565d1d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbd47b0,0x3d9041f^_0x4afc61);});}}_0x1beec3[_0x565d1d([0x6f,0x6e])](_0x565d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7afb77,_0x33349b)=>{if(_0x33349b[0x0]!=_0x17de72)return _0x3e3c16(_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x33349b[0x1]={..._0x33349b[0x1],[_0x565d1d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1de9e2};},{[_0x565d1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x565d1d([0x68,0x69,0x67,0x68])}),_0x1beec3[_0x565d1d([0x6f,0x6e])](_0x565d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48adf9=>{_0x5c531e(_0x48adf9[_0x565d1d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2007dc=!0x0,_0x35cd3d(_0x48adf9[_0x565d1d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x565d1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x565d1d([0x6c,0x6f,0x77])}),_0x3a46c1[_0x565d1d([0x74,0x68,0x65,0x6e])](()=>{_0x2007dc||_0x3e3c16(_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x348bd7(){return _0x1beec3[_0x565d1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x565d1d([0x76,0x69,0x65,0x77])][_0x565d1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x565d1d([0x61,0x75,0x74,0x6f]);}function _0x46ba75(){_0x1beec3[_0x565d1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x565d1d([0x76,0x69,0x65,0x77])][_0x565d1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x565d1d([0x61,0x75,0x74,0x6f]);}}function _0x55d7b5(_0x8aac64){const _0x421eac=[new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9d1503=>setTimeout(_0x9d1503,0x3d1ee13^_0x4afc61)),_0x3a46c1[_0x565d1d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57d40c=>{let _0x535a33=0x0;_0x1beec3[_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x565d1d([0x6f,0x6e])](_0x565d1d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2db37f,_0x551e85)=>{_0x551e85[0x0][_0x565d1d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x535a33++,_0x535a33==(0x3d8d537^_0x4afc61)&&(_0x57d40c(),_0x2db37f[_0x565d1d([0x6f,0x66,0x66])]());});}))];return window[_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x565d1d([0x72,0x61,0x63,0x65])](_0x421eac)[_0x565d1d([0x74,0x68,0x65,0x6e])](()=>_0x8aac64);}async function _0xe37a5e(){await _0x3a46c1,_0x1beec3[_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x565d1d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa1f32e,_0x1beec3[_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x565d1d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa1f32e,_0x1beec3[_0x565d1d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a6bad(){return _0x8e4e37(_0x565d1d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4fd8f6(_0x565d1d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x565d1d([0x73,0x74,0x61,0x74,0x65])]==_0x565d1d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2ba800(){return _0x8e4e37(_0x565d1d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1d8778(){return _0x8e4e37(_0x565d1d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x43e31f(_0x4026c9){const _0x367e19=_0x793788();_0x1beec3[_0x367e19]=_0x565d1d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4026c9,_0x4026c9!=_0x565d1d([0x56,0x61,0x6c,0x69,0x64])&&_0xe37a5e();}function _0x793788(){const _0x59fb27=window[_0x565d1d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x565d1d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x565d1d([0x6e,0x6f,0x77])]())[_0x565d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x565d1d([0x2e]),'');let _0x4a7e3e=_0x565d1d([0x52]);for(let _0x31738a=0x0;_0x31738a<_0x59fb27[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31738a+=0x2){let _0x12e7c7=window[_0x565d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59fb27[_0x565d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31738a,_0x31738a+0x2));_0x12e7c7>=_0x2d3e1c[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12e7c7-=_0x2d3e1c[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a7e3e+=_0x2d3e1c[_0x12e7c7];}return _0x4a7e3e;}function _0x107254(){const _0xd2279f=_0x41363c[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e]));if(0x3!=_0xd2279f[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57c4eb(_0xd2279f[0x1]);function _0x57c4eb(_0x16bca2){const _0xbaf057=_0x3117c4(_0x16bca2);return _0xbaf057&&_0x3ec6b6()?_0xbaf057:null;function _0x3ec6b6(){const _0x289253=_0xbaf057[_0x565d1d([0x6a,0x74,0x69])],_0x123c29=window[_0x565d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x289253[_0x565d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x289253[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36a54a={..._0xbaf057,[_0x565d1d([0x6a,0x74,0x69])]:_0x289253[_0x565d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x289253[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36a54a[_0x565d1d([0x76,0x63])],_0x4f5172(_0x36a54a)==_0x123c29;}}}async function _0x4bd8ae(){let _0x4ec12a=!0x0;try{const _0x3f6bbc=_0x41363c[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e])),[_0x38bbbf,_0x3f9e22,_0x47e5b2]=_0x3f6bbc;return _0x6876a0(_0x38bbbf),await _0x4713dc(_0x38bbbf,_0x3f9e22,_0x47e5b2),_0x4ec12a;}catch{return!0x1;}function _0x6876a0(_0x77363f){const _0x3fb9d5=_0x3117c4(_0x77363f);_0x3fb9d5&&_0x3fb9d5[_0x565d1d([0x61,0x6c,0x67])]==_0x565d1d([0x45,0x53,0x32,0x35,0x36])||(_0x4ec12a=!0x1);}async function _0x4713dc(_0x2eac33,_0x46a641,_0x366c4c){const _0x100fa1=window[_0x565d1d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x565d1d([0x66,0x72,0x6f,0x6d])](_0x38955b(_0x366c4c),_0x913a11=>_0x913a11[_0x565d1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1aa565=new window[(_0x565d1d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x565d1d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2eac33+_0x565d1d([0x2e])+_0x46a641),_0x36d27b=window[_0x565d1d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x565d1d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36d27b)return;const _0xe94921=await _0x36d27b[_0x565d1d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x565d1d([0x6a,0x77,0x6b]),_0x3ee539,{[_0x565d1d([0x6e,0x61,0x6d,0x65])]:_0x565d1d([0x45,0x43,0x44,0x53,0x41]),[_0x565d1d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x565d1d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x565d1d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36d27b[_0x565d1d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x565d1d([0x6e,0x61,0x6d,0x65])]:_0x565d1d([0x45,0x43,0x44,0x53,0x41]),[_0x565d1d([0x68,0x61,0x73,0x68])]:{[_0x565d1d([0x6e,0x61,0x6d,0x65])]:_0x565d1d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe94921,_0x100fa1,_0x1aa565)||(_0x4ec12a=!0x1);}}function _0x3117c4(_0x2c8725){return _0x2c8725[_0x565d1d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x565d1d([0x65,0x79]))?JSON[_0x565d1d([0x70,0x61,0x72,0x73,0x65])](_0x38955b(_0x2c8725)):null;}function _0x38955b(_0x13daa4){return window[_0x565d1d([0x61,0x74,0x6f,0x62])](_0x13daa4[_0x565d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x565d1d([0x2b]))[_0x565d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x565d1d([0x2f])));}function _0x4f5172(_0xa87588){let _0x2ababe=0x1505;function _0x3ad838(_0x4cdd0a){for(let _0x23a73d=0x0;_0x23a73d<_0x4cdd0a[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a73d++){const _0x333f0c=_0x4cdd0a[_0x565d1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23a73d);_0x2ababe=(_0x2ababe<<0x5)+_0x2ababe+_0x333f0c,_0x2ababe&=_0x2ababe;}}function _0x307f85(_0x542158){Array[_0x565d1d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x542158)?_0x542158[_0x565d1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x307f85):_0x542158&&typeof _0x542158==_0x565d1d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x565d1d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x542158)[_0x565d1d([0x73,0x6f,0x72,0x74])]()[_0x565d1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c1206,_0x4486ba])=>{_0x3ad838(_0x2c1206),_0x307f85(_0x4486ba);}):_0x3ad838(window[_0x565d1d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x542158));}return _0x307f85(_0xa87588),_0x2ababe>>>0x0;}function _0x562711(_0x509e29){return _0x509e29[_0x565d1d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x565d1d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x565d1d([0x30]));}function _0x1ec487(_0x3a0032){return _0x3a0032[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x565d1d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x565d1d([0x6a,0x6f,0x69,0x6e])]('');}function _0x8e4e37(_0x316445){return _0x1beec3[_0x565d1d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x565d1d([0x68,0x61,0x73])](_0x316445);}function _0x4fd8f6(_0x331f8f){return _0x1beec3[_0x565d1d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x565d1d([0x67,0x65,0x74])](_0x331f8f);}function _0xa1f32e(){}function _0x565d1d(_0x43cdcb){return _0x43cdcb['map'](_0x35c069=>String['fromCharCode'](_0x35c069))['join']('');}_0x43e31f(await _0x4a9b89());}(this);}set['adapter'](_0x38971b){if(this['_adapter'])throw new _0x2ea645('track-changes-adapter-already-set',this);this['_adapter']=_0x38971b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1f6f20=!0x1,toJSON:_0x4357a3=!0x1}={}){const _0x21d2aa=[];for(const _0xe3663 of this['_suggestions']['values']())_0x1f6f20&&!_0xe3663['isInContent']||_0x21d2aa['push'](_0xe3663);return _0x4357a3?_0x21d2aa['map'](_0x19c58f=>_0x19c58f['toJSON']()):_0x21d2aa;}['getSuggestion'](_0x42449){const _0x3ce52b=this['_suggestions']['get'](_0x42449);if(!_0x3ce52b)throw new _0x2ea645('track-changes-suggestion-not-found',this);return _0x3ce52b;}['hasSuggestion'](_0x343e28){return this['_suggestions']['has'](_0x343e28);}['addSuggestionData'](_0x460726){const {authorId:_0x49eb94,id:_0x2fa084,originalSuggestionId:_0x555ba6,attributes:_0x52d12a}=_0x460726,[_0x246743,_0x479848]=_0x460726['type']['split'](':'),_0x3a8503=this['_suggestions']['get'](_0x2fa084)||this['_createSuggestion'](_0x246743,_0x479848,_0x2fa084,_0x49eb94,_0x52d12a,_0x555ba6);if(this['_addThreadToSuggestion'](_0x3a8503),this['_checkSuggestionCorrectness'](_0x3a8503,_0x246743,_0x479848||null,_0x49eb94),_0x3a8503['createdAt']=_0x460726['createdAt'],_0x3a8503['_isDataLoaded']=!0x0,_0x52d12a&&_0x52d12a['@external']){const _0x53ca97=_0x52d12a['@external'],_0x15b3e8=this['_getExternalAuthor'](_0x53ca97['authorName']);_0x3a8503['authoredAt']=_0x53ca97['createdAt'],_0x3a8503['author']=_0x15b3e8,_0x3a8503['isExternal']=!0x0;}else _0x3a8503['authoredAt']=_0x460726['createdAt'];switch(_0x460726['data']&&(_0x3a8503['data']=_0x460726['data']),_0x460726['attributes']&&(_0x3a8503['attributes']=_0x460726['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a8503['_saved']=!0x0),this['_suggestionState']['get'](_0x3a8503)){case'notReady':this['_suggestionState']['set'](_0x3a8503,'dataReady');break;case'markerReady':_0x3a8503['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a8503])),this['_refreshSuggestionsChain'](new Set([_0x3a8503])),this['_suggestionState']['set'](_0x3a8503,'ready'),this['fire']('suggestionLoaded',_0x3a8503)):this['_suggestionState']['set'](_0x3a8503,'removed');}return _0x3a8503;}['acceptSuggestion'](_0x354af6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f1639 of _0x354af6['getAllAdjacentSuggestions']())_0x2f1639['accept']();});});}['discardSuggestion'](_0x23cffc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55d624 of _0x23cffc['getAllAdjacentSuggestions']())_0x55d624['discard']();});});}['enableCommand'](_0x8c1abf,_0x5ec58f){const _0x453f57=this['editor']['commands']['get'](_0x8c1abf);if(!_0x453f57)throw new _0x2ea645('track-changes-command-not-found',this,{'commandName':_0x8c1abf});if(this['_enabledCommands']['has'](_0x453f57))throw new _0x2ea645('track-changes-enable-command-twice',this,{'commandName':_0x8c1abf});this['_enabledCommands']['add'](_0x453f57),_0x5ec58f&&_0x453f57['on']('execute',(_0x276249,_0x37efe4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x37efe4['length']>0x0&&_0x37efe4[_0x37efe4['length']-0x1]&&_0x37efe4[_0x37efe4['length']-0x1]['forceDefaultExecution']?_0x37efe4['pop']():(_0x276249['return']=_0x5ec58f((..._0x29fc4a)=>_0x453f57['execute'](..._0x29fc4a,{'forceDefaultExecution':!0x0}),..._0x37efe4),_0x276249['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2cb063){let _0x46fcbc,_0x44be02;const _0x501464=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46fcbc=_0x2cb063();}catch(_0x5eda43){_0x44be02=_0x5eda43;}return _0x501464||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x44be02&&_0x2ea645['rethrowUnexpectedError'](_0x44be02,this),_0x46fcbc;}['markInsertion'](_0x613a13,_0x37d83c=null,_0x32c19c={}){if(_0x613a13['isCollapsed'])return null;const _0x515574=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x32c19c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f9990,meta:_0x5d4219}of this['_findSuggestions'](_0x613a13,'insertion'))if(_0x5d4219['isOwn']){if(!_0x5d4219['isNextTo']){if(_0x5d4219['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x4f9990,_0x32c19c))continue;return _0x4f9990;}if(sn(_0x4f9990,_0x32c19c))return _0x4f9990;this['_breakSuggestionMarker'](_0x4f9990,_0x613a13['start'],_0x613a13['end']);break;}if(_0x37d83c==_0x4f9990['subType']&&sn(_0x4f9990,_0x32c19c)){const _0x282d1f=_0x4f9990['getFirstRange']();return _0x282d1f['start']['isEqual'](_0x613a13['end'])?this['_setSuggestionRange'](_0x4f9990,this['_model']['createRange'](_0x613a13['start'],_0x282d1f['end'])):this['_setSuggestionRange'](_0x4f9990,this['_model']['createRange'](_0x282d1f['start'],_0x613a13['end'])),_0x4f9990;}}const _0x255360=_0x341aab(),_0x4df5b1=_0x515574['id'],_0x50b877=_0x37d83c?'insertion:'+_0x37d83c:'insertion',_0xd8024e=this['_setSuggestionData']({'id':_0x255360,'type':_0x50b877,'createdAt':new Date(),'authorId':_0x4df5b1,'attributes':_0x32c19c});return this['_addSuggestionMarker'](_0x50b877,_0x255360,_0x4df5b1,_0x613a13),_0xd8024e;}['markMultiRangeInsertion'](_0x4ae9aa,_0x2d223c='multi',_0x14bdc5={}){const _0x2b0094=this['editor']['plugins']['get']('Users')['me'],_0x1bd2e0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d223c,'join');this['_trackingSessionId']&&(_0x14bdc5['trackingSessionId']=this['_trackingSessionId']);for(const _0x204179 of this['getSuggestions']())if(_0x204179['author']['id']==_0x2b0094['id']&&'insertion'==_0x204179['type']&&_0x204179['subType']==_0x2d223c&&sn(_0x204179,_0x14bdc5)&&(_0x1bd2e0(_0x204179['getRanges'](),_0x4ae9aa)||_0x1bd2e0(_0x4ae9aa,_0x204179['getRanges']()))){for(const _0x59a8f0 of _0x4ae9aa)_0x204179['addRange'](_0x59a8f0);return _0x204179;}for(const {suggestion:_0x269c2a,meta:_0x55879b}of this['_findSuggestions'](_0x4ae9aa,'insertion')){if(!_0x55879b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x55879b['containsRangeInObject'])continue;if(!sn(_0x269c2a,_0x14bdc5))continue;let _0x96e7f1=!0x0;for(const _0x65f210 of _0x269c2a['getRanges']())for(const _0x29cf28 of _0x4ae9aa)if(!_0x65f210['containsRange'](_0x29cf28)){_0x96e7f1=!0x1;break;}if(_0x96e7f1)return _0x269c2a;}const _0x10cae9=_0x341aab(),_0x1d0185=_0x2b0094['id'],_0x54ab30='insertion:'+_0x2d223c,_0x30922f=this['_setSuggestionData']({'id':_0x10cae9,'type':_0x54ab30,'createdAt':new Date(),'authorId':_0x1d0185,'attributes':_0x14bdc5});for(const _0x5dada5 of _0x4ae9aa)this['_addSuggestionMarker'](_0x54ab30,_0x10cae9,_0x1d0185,_0x5dada5,T['getMultiRangeId']());return _0x30922f;}['markInlineFormat'](_0x44eabd,_0x57daf2,_0x49e616=null,_0x1657d0={}){if(_0x49e616=_0x49e616||Ht(_0x57daf2),_0x44eabd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1657d0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4f26f4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49e616,'accept');return this['forceDefaultExecution'](()=>_0x4f26f4([_0x44eabd],_0x57daf2,_0x1657d0)),null;}const _0x17e36d=this['editor']['plugins']['get']('Users')['me'],_0x327d26=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d2003,meta:_0x52c19a}of this['_findSuggestions'](_0x44eabd,'insertion'))_0x52c19a['isOwn']&&!_0x52c19a['isInsideObject']&&_0x327d26['push'](..._0x2d2003['getRanges']());}const _0x33804f=function(_0xbd1a4b,_0x5808c8){const _0x8e7f2=[];for(const _0x5de33a of _0x5808c8){const _0x4a11fb=_0xbd1a4b['getIntersection'](_0x5de33a);_0x4a11fb&&_0x8e7f2['push'](_0x4a11fb);}return _0x8e7f2;}(_0x44eabd,_0x327d26),_0x4efabc=function(_0x425c76,_0x2d2e42){const _0x31d007=[_0x425c76];for(const _0x37e57c of _0x2d2e42){let _0x5cdc56=0x0;for(;_0x5cdc56<_0x31d007['length'];){const _0x48b5b3=_0x31d007[_0x5cdc56]['getDifference'](_0x37e57c);_0x31d007['splice'](_0x5cdc56,0x1,..._0x48b5b3),_0x5cdc56+=_0x48b5b3['length'];}}return _0x31d007;}(_0x44eabd,_0x327d26);_0x33804f['length']&&this['_model']['change'](()=>{for(const _0xee4912 of _0x33804f){const _0x59d4d0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49e616,'accept');this['forceDefaultExecution'](()=>_0x59d4d0([_0xee4912],_0x57daf2,_0x1657d0));}});for(const _0x419631 of _0x4efabc){let _0x107325=null,_0x31ebba=_0x419631['start'],_0x11c9cb=_0x419631['end'];for(const {suggestion:_0x4e7c8c,meta:_0x2ac2fc}of this['_findSuggestions'](_0x419631,'formatInline')){if(!_0x2ac2fc['isOwn'])continue;if(_0x4e7c8c['subType']!=_0x49e616)continue;if(!sn(_0x4e7c8c,_0x1657d0))continue;const _0x2ebf0a=_0x4e7c8c['getFirstRange']();if(_0x2ebf0a['containsRange'](_0x419631,!0x0))return null;_0x31ebba=_0x31ebba['isBefore'](_0x2ebf0a['start'])?_0x31ebba:_0x2ebf0a['start'],_0x11c9cb=_0x11c9cb['isAfter'](_0x2ebf0a['end'])?_0x11c9cb:_0x2ebf0a['end'],_0x107325?_0x2ebf0a['start']['isBefore'](_0x107325['getFirstRange']()['start'])?(_0x107325['removeMarkers'](),_0x107325=_0x4e7c8c):_0x4e7c8c['removeMarkers']():_0x107325=_0x4e7c8c;}const _0x176dcc=this['_model']['createRange'](_0x31ebba,_0x11c9cb);if(_0x107325)this['_setSuggestionRange'](_0x107325,_0x176dcc);else{const _0xea10ad=_0x341aab(),_0x2c8cba=_0x17e36d['id'];this['_setSuggestionData']({'id':_0xea10ad,'type':'formatInline:'+_0x49e616,'data':_0x57daf2,'createdAt':new Date(),'authorId':_0x2c8cba,'attributes':_0x1657d0}),this['_addSuggestionMarker']('formatInline:'+_0x49e616,_0xea10ad,_0x2c8cba,_0x176dcc);}}return null;}['markBlockFormat'](_0x819c3,_0x36b7b0,_0x4b2d86=[],_0x45532c=null,_0x59a797={}){_0x36b7b0['formatGroupId']||(_0x36b7b0['formatGroupId']=_0x36b7b0['commandName']),_0x36b7b0['multipleBlocks']=_0x819c3['is']('range'),_0x45532c=_0x45532c||Ht(_0x36b7b0);const _0x5ba710=_0x4b2d86['map'](_0x17e8bb=>tn(_0x17e8bb,this['_model'])),_0x39b51d=_0x819c3['is']('range')?_0x819c3:tn(_0x819c3,this['_model']);if(this['_trackingSessionId']&&(_0x59a797['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c7c50=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45532c,'accept');return this['forceDefaultExecution'](()=>_0x1c7c50([_0x39b51d],_0x36b7b0,_0x59a797)),null;}_0x5ba710['push'](_0x39b51d);let _0x421c90=!0x0;for(const _0x5bb179 of _0x5ba710)if(!this['_rangeIsInLocalUserInsertion'](_0x5bb179)){_0x421c90=!0x1;break;}if(_0x421c90&&'always'!==this['_trackFormatChanges']){const _0x4a589e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45532c,'accept');return this['forceDefaultExecution'](()=>_0x4a589e([_0x39b51d],_0x36b7b0,_0x59a797)),null;}let _0x2ecc39=null,_0x7bdc47=_0x39b51d['start'],_0x4703f4=_0x39b51d['end'];for(const {suggestion:_0xe4f5cd,meta:_0x18d7f3}of this['_findSuggestions'](_0x39b51d,'formatBlock')){if(!_0x18d7f3['isOwn'])continue;if(_0x18d7f3['isNextTo']||_0x18d7f3['containsRangeInObject']||_0x18d7f3['isInsideObject'])continue;if(_0xe4f5cd['data']['formatGroupId']!=_0x36b7b0['formatGroupId'])continue;if(!sn(_0xe4f5cd,_0x59a797))continue;const _0x91c70f=_0xe4f5cd['getFirstRange']();if(_0xe4f5cd['subType']==_0x45532c){if(_0x91c70f['containsRange'](_0x39b51d,!0x0))return null;_0x7bdc47=_0x7bdc47['isBefore'](_0x91c70f['start'])?_0x7bdc47:_0x91c70f['start'],_0x4703f4=_0x4703f4['isAfter'](_0x91c70f['end'])?_0x4703f4:_0x91c70f['end'],_0x2ecc39?_0x91c70f['start']['isBefore'](_0x2ecc39['getFirstRange']()['start'])?(_0x2ecc39['removeMarkers'](),_0x2ecc39=_0xe4f5cd):_0xe4f5cd['removeMarkers']():_0x2ecc39=_0xe4f5cd;}else{const _0x1f3f49=_0x39b51d['getIntersection'](_0x91c70f);this['_cutOutSuggestionMarker'](_0xe4f5cd,_0x1f3f49);}}const _0x1e1586=this['editor']['plugins']['get']('Users')['me'],_0x2e94d0=_0x341aab(),_0x1732b9=_0x1e1586['id'];if(_0x2ecc39)return this['_setSuggestionRange'](_0x2ecc39,this['_model']['createRange'](_0x7bdc47,_0x4703f4)),_0x2ecc39;{const _0x26fda4=this['_setSuggestionData']({'id':_0x2e94d0,'type':'formatBlock:'+_0x45532c,'data':_0x36b7b0,'createdAt':new Date(),'authorId':_0x1732b9,'attributes':_0x59a797});return this['_addSuggestionMarker']('formatBlock:'+_0x45532c,_0x2e94d0,_0x1732b9,this['_model']['createRange'](_0x7bdc47,_0x4703f4)),_0x26fda4;}}['markMultiRangeBlockFormat'](_0x21d892,_0x4cffca,_0x29088d=[],_0x3b2a29=null,_0x15bd0e={}){_0x4cffca['formatGroupId']||(_0x4cffca['formatGroupId']=_0x4cffca['commandName']);const _0x50ca5e=_0x21d892[0x0];_0x4cffca['multipleBlocks']=_0x50ca5e['is']('range'),_0x3b2a29=_0x3b2a29||Ht(_0x4cffca);const _0x4c4678=_0x29088d['map'](_0x22c195=>tn(_0x22c195,this['_model'])),_0x29acf1=_0x50ca5e['is']('range')?_0x21d892:_0x21d892['map'](_0x1e24f0=>tn(_0x1e24f0,this['_model']));if(this['_trackingSessionId']&&(_0x15bd0e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d3b82=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b2a29,'accept');return this['forceDefaultExecution'](()=>_0x4d3b82(_0x29acf1,_0x4cffca,_0x15bd0e)),null;}_0x4c4678['push'](..._0x29acf1);let _0x5752e7=!0x0;for(const _0x5801fe of _0x4c4678)if(!this['_rangeIsInLocalUserInsertion'](_0x5801fe)){_0x5752e7=!0x1;break;}if(_0x5752e7&&'always'!==this['_trackFormatChanges']){const _0x3d7181=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b2a29,'accept');return this['forceDefaultExecution'](()=>_0x3d7181(_0x29acf1,_0x4cffca,_0x15bd0e)),null;}const _0x36eff1=this['editor']['plugins']['get']('Users')['me'];for(const _0x95b71d of this['getSuggestions']()){const _0x44db06=_0x95b71d['data'];if(_0x95b71d['author']['id']!=_0x36eff1['id'])continue;if('formatBlock'!=_0x95b71d['type']||_0x44db06['formatGroupId']!=_0x4cffca['formatGroupId'])continue;if(!sn(_0x95b71d,_0x15bd0e))continue;const _0x330b46=_0x95b71d['subType']==_0x3b2a29;for(let _0x8c1859=0x0;_0x8c1859<_0x29acf1['length'];_0x8c1859++){const _0x26ff18=_0x29acf1[_0x8c1859];for(const _0x2551be of _0x95b71d['getMarkers']()){const _0x5ef539=_0x2551be['getRange']();if(_0x26ff18['isEqual'](_0x5ef539)){_0x330b46?(_0x29acf1['splice'](_0x8c1859,0x1),_0x8c1859--):_0x95b71d['removeMarker'](_0x2551be['name']);break;}}}}if(0x0==_0x29acf1['length'])return null;const _0x3759ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b2a29,'join');for(const _0x38caa8 of this['getSuggestions']()){const _0x3c8eb4=_0x38caa8['data'];if(_0x38caa8['author']['id']==_0x36eff1['id']&&('formatBlock'==_0x38caa8['type']&&_0x3c8eb4['formatGroupId']==_0x4cffca['formatGroupId']&&_0x38caa8['subType']==_0x3b2a29&&sn(_0x38caa8,_0x15bd0e)&&(_0x3759ae(_0x38caa8['getRanges'](),_0x29acf1)||_0x3759ae(_0x29acf1,_0x38caa8['getRanges']())))){for(const _0x4bc5ef of _0x29acf1)_0x38caa8['addRange'](_0x4bc5ef);return _0x38caa8;}}const _0x3273ff=_0x341aab(),_0x2e4aa3=_0x36eff1['id'],_0x31c591='formatBlock:'+_0x3b2a29,_0x5bc3d6=this['_setSuggestionData']({'id':_0x3273ff,'type':_0x31c591,'data':_0x4cffca,'createdAt':new Date(),'authorId':_0x2e4aa3,'attributes':_0x15bd0e});for(const _0x216aa4 of _0x29acf1)this['_addSuggestionMarker'](_0x31c591,_0x3273ff,_0x2e4aa3,_0x216aa4,T['getMultiRangeId']());return _0x5bc3d6;}['markDeletion'](_0x586922,_0x10bcee=null,_0xe62588={}){if(_0x586922['isCollapsed'])return null;const _0x1cf82d=this['editor']['plugins']['get']('Users')['me'],_0xb4e777=new _0x2ed57b(_0x586922['start'],_0x586922['end']);this['_trackingSessionId']&&(_0xe62588['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5a8792,meta:_0x2c93d0}of this['_findSuggestions'](_0xb4e777,'insertion'))if(_0x2c93d0['isOwn']&&!_0x2c93d0['isNextTo']){if(_0x5a8792['isMultiRange']){const _0x41f77f=_0x5a8792['getRanges']()['filter'](_0x5741a6=>'$graveyard'!=_0x5741a6['root']['rootName']);_0x41f77f['every'](_0x48cc9b=>_0xb4e777['containsRange'](_0x48cc9b,!0x0))&&_0x5a8792['discard']();if(_0x41f77f['some'](_0x5d3706=>_0x5d3706['containsRange'](_0xb4e777,!0x0))){const _0x6f2ee4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10bcee,'accept');return this['forceDefaultExecution'](()=>_0x6f2ee4([_0xb4e777],null,_0xe62588)),null;}}else{const _0x23bfaa=_0xb4e777['getIntersection'](_0x5a8792['getFirstRange']());null!==_0x23bfaa&&_0x5a8792['_onDiscard']([_0x23bfaa],null,_0xe62588);}}if(_0xb4e777['detach'](),_0xb4e777['isCollapsed']||'$graveyard'==_0xb4e777['root']['rootName'])return null;let _0x4efc45=null,_0x334d60=_0xb4e777['start'],_0x11e278=_0xb4e777['end'];const _0x3edaf1=this['_findSuggestions'](_0xb4e777,'deletion');for(const {suggestion:_0x41105d,meta:_0x18dc5b}of _0x3edaf1){const _0x48d603=this['_model']['createRange'](_0x334d60,_0x11e278);if(_0x18dc5b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18dc5b['containsRangeInObject']&&!_0x18dc5b['isInsideObject'])){if(_0x41105d['isMultiRange']){if(!sn(_0x41105d,_0xe62588))continue;let _0x35a13b=!0x0;for(const _0x5c5845 of _0x41105d['getRanges']()){if(_0x5c5845['containsRange'](_0x48d603,!0x0))return _0x41105d;_0x48d603['containsRange'](_0x5c5845)||(_0x35a13b=!0x1);}_0x35a13b&&_0x41105d['discard']();}else{const _0x532007=_0x41105d['getFirstRange']();if(_0x532007['containsRange'](_0x48d603,!0x0))return _0x41105d;if(!sn(_0x41105d,_0xe62588)){_0x48d603['containsRange'](_0x532007)?_0x41105d['removeMarkers']():_0x532007['containsPosition'](_0x334d60)?_0x334d60=_0x532007['end']:_0x532007['containsPosition'](_0x11e278)&&(_0x11e278=_0x532007['start']);continue;}_0x334d60=_0x334d60['isBefore'](_0x532007['start'])?_0x334d60:_0x532007['start'],_0x11e278=_0x11e278['isAfter'](_0x532007['end'])?_0x11e278:_0x532007['end'],_0xe62588=Object['assign']({},_0x41105d['attributes']),_0x4efc45?_0x532007['start']['isBefore'](_0x4efc45['getFirstRange']()['start'])?(_0x4efc45['removeMarkers'](),_0x4efc45=_0x41105d):_0x41105d['removeMarkers']():_0x4efc45=_0x41105d;}}}if(_0x4efc45)return this['_setSuggestionRange'](_0x4efc45,this['_model']['createRange'](_0x334d60,_0x11e278)),_0x4efc45;{const _0x120063=_0x341aab(),_0x46d6eb=this['_model']['createRange'](_0x334d60,_0x11e278),_0x170ac3=_0x1cf82d['id'],_0x2edf75=_0x10bcee?'deletion:'+_0x10bcee:'deletion',_0x133404=this['_setSuggestionData']({'id':_0x120063,'type':_0x2edf75,'createdAt':new Date(),'authorId':_0x170ac3,'attributes':_0xe62588});return this['_addSuggestionMarker'](_0x2edf75,_0x120063,_0x170ac3,_0x46d6eb),_0x133404;}}['markMultiRangeDeletion'](_0x31178a,_0x589b43='multi',_0x3474b6={}){const _0x34c9f6=this['editor']['plugins']['get']('Users')['me'],_0xf2f924=_0x31178a['map'](_0x4461fa=>new _0x2ed57b(_0x4461fa['start'],_0x4461fa['end'])),_0x21a745=new Set();this['_trackingSessionId']&&(_0x3474b6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53d0b2,meta:_0x2a0f98}of this['_findSuggestions'](_0xf2f924,'insertion'))_0x2a0f98['isOwn']&&!_0x2a0f98['isNextTo']&&_0x21a745['add'](_0x53d0b2);for(const _0x3ce462 of _0x21a745)if(_0x3ce462['isMultiRange']){const _0xdef8ae=_0x3ce462['getRanges']();(!_0x3ce462['attributes']||!_0x3ce462['attributes']['skipNestingCheck'])&&(_0xdef8ae['every'](_0x580eba=>_0xf2f924['some'](_0x8d4db9=>_0x8d4db9['containsRange'](_0x580eba,!0x0)))&&_0x3ce462['discard']());if(_0xf2f924['every'](_0x386cb5=>_0xdef8ae['some'](_0x157670=>_0x157670['containsRange'](_0x386cb5,!0x0)))){const _0x196b44=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x589b43,'accept');return this['forceDefaultExecution'](()=>_0x196b44(_0x31178a,null,_0x3474b6)),null;}}else{const _0x441354=_0x3ce462['getFirstRange']();_0xf2f924['some'](_0x3a6f20=>_0x3a6f20['containsRange'](_0x441354,!0x0))&&_0x3ce462['discard']();if(_0xf2f924['every'](_0x17a718=>_0x441354['containsRange'](_0x17a718,!0x0))){const _0x1dcba2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x589b43,'accept');return this['forceDefaultExecution'](()=>_0x1dcba2(_0xf2f924,null,_0x3474b6)),null;}}const _0x33a84f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x589b43,'join');let _0x139400=null;for(const _0x10e598 of this['getSuggestions']())if(_0x10e598['author']['id']==_0x34c9f6['id']&&_0x10e598['isInContent']&&'deletion'==_0x10e598['type']&&_0x10e598['subType']==_0x589b43&&sn(_0x10e598,_0x3474b6)&&(_0x33a84f(_0x10e598['getRanges'](),_0xf2f924)||_0x33a84f(_0xf2f924,_0x10e598['getRanges']()))){if(_0x139400){if(_0x10e598['commentThread']&&_0x10e598['commentThread']['length'])continue;for(const _0x3f39b4 of _0x10e598['getRanges']())_0x139400['isIntersectingWithRange'](_0x3f39b4)||_0x139400['addRange'](_0x3f39b4);_0x10e598['removeMarkers']();}else{_0x139400=_0x10e598;for(const _0x5dc254 of _0xf2f924)_0x10e598['isIntersectingWithRange'](_0x5dc254)||_0x10e598['addRange'](_0x5dc254);}}if(_0x139400)return _0x139400;_0x21a745['clear']();for(const {suggestion:_0x9e9231,meta:_0x496b88}of this['_findSuggestions'](_0xf2f924,'deletion'))_0x496b88['isOwn']&&(this['_mergeNestedSuggestions']||!_0x496b88['containsRangeInObject']&&!_0x496b88['isInsideObject'])&&sn(_0x9e9231,_0x3474b6)&&_0x21a745['add'](_0x9e9231);for(const _0x27ddec of _0x21a745){const _0x210411=_0x27ddec['getRanges']();if(!_0x3474b6||!_0x3474b6['skipNestingCheck']){if(_0xf2f924['every'](_0x122d34=>_0x210411['some'](_0x50b0a7=>_0x50b0a7['containsRange'](_0x122d34,!0x0))))return _0x27ddec;}(!_0x27ddec['attributes']||!_0x27ddec['attributes']['skipNestingCheck'])&&(_0x210411['every'](_0x3ffd01=>_0xf2f924['some'](_0x27864f=>_0x27864f['containsRange'](_0x3ffd01,!0x0)))&&_0x27ddec['discard']());}const _0x36bbb1=_0x341aab(),_0x2b93c1=_0x34c9f6['id'],_0x49af83='deletion:'+_0x589b43,_0x19c831=this['_setSuggestionData']({'id':_0x36bbb1,'type':_0x49af83,'createdAt':new Date(),'authorId':_0x2b93c1,'attributes':_0x3474b6});for(const _0x11ac39 of _0xf2f924)_0x11ac39['detach'](),_0x11ac39['isCollapsed']||'$graveyard'==_0x11ac39['root']['rootName']||this['_addSuggestionMarker'](_0x49af83,_0x36bbb1,_0x2b93c1,_0x11ac39,T['getMultiRangeId']());return _0x19c831;}['markAttributeChange'](_0x4e03e0,_0x4477ea,_0x27a9b0,_0x1d4497,_0xb47611){if(_0x4e03e0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e3ead=this['editor']['plugins']['get']('Users')['me']['id'],_0x193bd6=Array['from'](this['_suggestions']['values']())['filter'](_0x1b9358=>'attribute'==_0x1b9358['type']&&_0x1b9358['data']['key']==_0x4477ea&&_0x1b9358['isIntersectingWithRange'](_0x4e03e0));if(this['_trackingSessionId']&&(_0xb47611['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5b4e02=this['_findSuggestions'](_0x4e03e0,'insertion')['filter'](({meta:_0x1abdc9})=>_0x1abdc9['isOwn']&&!_0x1abdc9['isInsideObject']&&!_0x1abdc9['isNextTo'])['map'](({suggestion:_0x6212b2})=>_0x6212b2);_0x193bd6['unshift'](..._0x5b4e02);}const _0xcb06dc=new Map([[_0x4e03e0,_0x27a9b0]]);for(const _0x540c2b of _0x193bd6){const _0x275244='attribute'==_0x540c2b['type']?_0x540c2b['data']['oldValue']:void 0x0,_0x2ab150=_0x540c2b['getFirstRange'](),_0x1d33dc=Array['from'](_0xcb06dc['keys']())['find'](_0x4bcd66=>_0x4bcd66['isIntersecting'](_0x2ab150));if(!_0x1d33dc)continue;const _0x3ecfaf=_0x1d33dc['getDifference'](_0x2ab150);this['_isBlockAttribute'](_0x4477ea)&&'insertion'==_0x540c2b['type']&&0x0!=_0x3ecfaf['length']||(_0xcb06dc['delete'](_0x1d33dc),_0x3ecfaf['forEach'](_0xf1a52a=>{_0xcb06dc['set'](_0xf1a52a,_0x27a9b0);}),'insertion'!=_0x540c2b['type']&&_0x275244!=_0x1d4497&&_0xcb06dc['set'](_0x1d33dc['getIntersection'](_0x2ab150),_0x275244));}const _0x55200c=[];for(const [_0x57c707,_0xbd2954]of _0xcb06dc){const _0x3ac468=_0x341aab(),_0x133615={'key':_0x4477ea,'oldValue':_0xbd2954,'newValue':_0x1d4497};_0x4477ea['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':_0x4477ea});const _0x1b223d=('attribute:'+(_0x4477ea+'|'+Ht({'newValue':_0x1d4497})))['substring'](0x0,0x3c),_0x1f665f=this['_setSuggestionData']({'id':_0x3ac468,'type':_0x1b223d,'data':_0x133615,'createdAt':new Date(),'authorId':_0x5e3ead,'attributes':_0xb47611});_0x55200c['push'](_0x1f665f),this['_addSuggestionMarker'](_0x1b223d,_0x3ac468,_0x5e3ead,_0x57c707);}return _0x55200c;}['enableDefaultAttributesIntegration'](_0x447d69){this['enableCommand'](_0x447d69,(_0x1e9e6e,..._0x5e306e)=>{this['recordAttributeChanges'](()=>{_0x1e9e6e(..._0x5e306e);});});}['registerBlockAttribute'](_0x465962){this['editor']['plugins']['get'](_0x55e6d0)['registerBlockAttribute'](_0x465962);}['registerInlineAttribute'](_0x435e8c){this['editor']['plugins']['get'](_0x55e6d0)['registerInlineAttribute'](_0x435e8c);}['startTrackingSession'](_0xc52e64){return this['_trackingSessionId']=void 0x0!==_0xc52e64?_0xc52e64:_0x341aab(),this['_trackingSessionId'];}['_getAttributeKey'](_0x431bb9){return'attribute'==_0x431bb9['type']?_0x431bb9['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x48d589){if(0x0==_0x48d589['length'])return;const _0x2c94d4=this['editor'],_0xba4b3=_0x2c94d4['plugins']['get'](_0x18362e),_0x28a5c2=[];_0x2c94d4['model']['change'](_0x16c41f=>{for(let _0x259e09=0x0;_0x259e09<_0x48d589['length'];_0x259e09++){const _0x30ab96=_0x48d589[_0x259e09];if(_0x30ab96['baseVersion']=_0x2c94d4['model']['document']['version'],_0x30ab96['isDocumentOperation']=!0x0,_0xba4b3['isMarkedRemoveOperation'](_0x30ab96)){const _0x2134b1=_0x1d4d3c(_0x30ab96['newRange'],_0x2c94d4['model']);_0x28a5c2['unshift'](_0x2ed57b['fromRange'](_0x2134b1));}else switch(_0x30ab96['type']){case'rename':{const _0x401194=_0x30ab96['oldName'],_0x517ccb=_0x30ab96['newName'];if(_0x401194==_0x517ccb)break;_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);const _0x3a2fea='$elementName',_0x3b8faf=_0x30ab96['position'],_0x24f23a=_0x2c94d4['model']['createRange'](_0x3b8faf,_0x2c94d4['model']['createPositionAt'](_0x3b8faf['nodeAfter'],'end'));this['markAttributeChange'](_0x24f23a,_0x3a2fea,_0x401194,_0x517ccb,{'groupId':_0x341aab()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3ae3e3=_0x30ab96['oldValue'],_0x224f11=_0x30ab96['newValue'];if(_0x3ae3e3==_0x224f11)break;_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);const _0x4e8974=_0x30ab96['key'];if(!this['_isRegisteredAttribute'](_0x4e8974))break;const _0x4fa60f=_0x1d4d3c(_0x30ab96['range'],_0x2c94d4['model']);this['markAttributeChange'](_0x4fa60f,_0x4e8974,_0x3ae3e3,_0x224f11,{'groupId':_0x341aab()});break;}case'insert':{_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);if(_0x48d589[_0x259e09+0x1]&&'move'==_0x48d589[_0x259e09+0x1]['type'])break;const _0x4655c6=_0x30ab96['position'],_0x419f33=_0x30ab96['howMany'],_0x779151=_0x1d4d3c(_0x2c94d4['model']['createRange'](_0x4655c6,_0x4655c6['getShiftedBy'](_0x419f33)),_0x2c94d4['model']);this['markInsertion'](_0x779151);break;}case'split':{_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);const _0x3c04eb=_0x30ab96['splitPosition'],_0x501a0b=_0x30ab96['moveTargetPosition'];this['markInsertion'](_0x2c94d4['model']['createRange'](_0x3c04eb,_0x501a0b));break;}case'move':case'remove':_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);}}for(const _0x115b4e of _0x28a5c2)_0x115b4e['detach'](),this['markDeletion'](_0x115b4e);});}['_setSuggestionRange'](_0x9ae7df,_0x38f69f){const _0x47f40a=_0x9ae7df['getFirstMarker']();this['_model']['change'](_0x2d2b24=>{_0x2d2b24['updateMarker'](_0x47f40a,{'range':_0x38f69f});});}['_addThreadToSuggestion'](_0x2abae4){const _0x57f51a=_0x2abae4['id'],_0x54e477=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57f51a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54e477,'threadId':_0x57f51a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1925b0=this['_commentsRepository']['getCommentThread'](_0x57f51a);_0x1925b0['unbind']('isRemovable'),_0x1925b0['isRemovable']=!0x1,_0x2abae4['commentThread']=_0x1925b0;}['_checkSuggestionCorrectness'](_0x1822bc,_0x303aa3,_0x58cec8,_0x377ac2){if(_0x1822bc['type']!=_0x303aa3||_0x1822bc['subType']!=_0x58cec8||_0x1822bc['creator']['id']!=_0x377ac2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ea645('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40a876,_0x59f2cb){const _0x1703fa=_0x40a876['getFirstRange']();if(_0x59f2cb['isEqual'](_0x1703fa))_0x40a876['removeMarkers']();else{if(_0x1703fa['containsRange'](_0x59f2cb)){const _0x56560e=this['_model']['createPositionAt'](_0x59f2cb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40a876,this['_model']['createRange'](_0x1703fa['start'],_0x56560e));const _0x26d7df=_0x341aab(),_0x556b15=_0x40a876['creator']['id'],_0x31278e=_0x40a876['type']+':'+_0x40a876['subType'];this['_setSuggestionData']({'id':_0x26d7df,'type':_0x31278e,'createdAt':new Date(),'authorId':_0x556b15,'data':_0x40a876['data'],'attributes':_0x40a876['attributes']});const _0x2ba577=this['_model']['createPositionAt'](_0x59f2cb['end']['parent'],'after'),_0x5f4962=this['_model']['createRange'](_0x2ba577,_0x1703fa['end']);this['_addSuggestionMarker'](_0x31278e,_0x26d7df,_0x556b15,_0x5f4962);}else{if(_0x1703fa['containsPosition'](_0x59f2cb['start'])){const _0x3dc384=this['_model']['createPositionAt'](_0x59f2cb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40a876,this['_model']['createRange'](_0x1703fa['start'],_0x3dc384));}else{const _0x5cf726=this['_model']['createPositionAt'](_0x59f2cb['end']['parent'],'after');this['_setSuggestionRange'](_0x40a876,this['_model']['createRange'](_0x5cf726,_0x1703fa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2b5912){for(const {suggestion:_0x48ad21,meta:_0x46a79f}of this['_findSuggestions'](_0x2b5912,'insertion')){if(!_0x46a79f['isOwn'])continue;const _0x17b2f9=_0x48ad21['getRanges']();for(const _0x5b1127 of _0x17b2f9)if(!_0x2b5912['getDifference'](_0x5b1127)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd47d65){return this['editor']['plugins']['get']('Users')['getUser'](_0xd47d65);}['_getExternalAuthor'](_0x4142b4){const _0x2e1d87=this['editor']['plugins']['get']('Users'),_0xeb35f6=_0x56d605('external:'+_0x4142b4),_0x25b7c3=_0x2e1d87['getUser'](_0xeb35f6);return _0x25b7c3||_0x2e1d87['addUser']({'id':_0xeb35f6,'name':_0x4142b4});}['_createSuggestion'](_0x5e88c7,_0x10bb61,_0xd59e44,_0x3737b7,_0x16133a,_0x4585c7){const _0x5d27f6=this['_getAuthorFromId'](_0x3737b7);if(!_0x5d27f6)throw new _0x2ea645('track-changes-user-not-found',this,{'authorId':_0x3737b7,'suggestionId':_0xd59e44});const _0x44a59b=this['_suggestionFactory']['buildSuggestion'](_0x5e88c7,_0x10bb61,_0xd59e44,_0x5d27f6,_0x16133a,_0x46ecad=>{this['_updateSuggestionData'](_0xd59e44,{'attributes':_0x46ecad});const _0x3f83aa=this['getSuggestion'](_0xd59e44);this['_joinWithAdjacentSuggestions'](new Set([_0x3f83aa])),this['_refreshSuggestionsChain'](new Set([_0x3f83aa]));},_0x4585c7);return this['listenTo'](_0x44a59b,'accept',()=>{this['_updateSuggestionData'](_0xd59e44,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x44a59b,'discard',()=>{this['_updateSuggestionData'](_0xd59e44,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xd59e44,_0x44a59b),this['_suggestionState']['set'](_0x44a59b,'notReady'),_0x44a59b;}['_splitMarkerName'](_0x19b114){return _0xdfe2f6(_0x19b114);}['_breakSuggestionMarker'](_0x31b2cc,_0xd29628,_0xcf2003){const _0x59f4b6=_0x31b2cc['getFirstRange'](),_0x6e4b42=_0x59f4b6['start'],_0x4a7494=_0x59f4b6['end'];this['_setSuggestionRange'](_0x31b2cc,this['_model']['createRange'](_0x6e4b42,_0xd29628));const _0x23bb60=_0x341aab(),_0x496cf5=_0x31b2cc['creator']['id'],_0x538745=_0x31b2cc['type']+(_0x31b2cc['subType']?':'+_0x31b2cc['subType']:'');this['_setSuggestionData']({'id':_0x23bb60,'type':_0x538745,'createdAt':new Date(),'authorId':_0x496cf5,'originalSuggestionId':_0x31b2cc['_originalSuggestionId']||_0x31b2cc['id'],'attributes':_0x31b2cc['attributes'],'data':_0x31b2cc['data']});const _0x53a788=this['_getAttributeKey'](_0x31b2cc);('formatBlock'==_0x31b2cc['type']||_0x53a788&&this['_isBlockAttribute'](_0x53a788))&&(_0xcf2003=this['_model']['createPositionBefore'](_0xcf2003['parent'])),this['_addSuggestionMarker'](_0x538745,_0x23bb60,_0x496cf5,this['_model']['createRange'](_0xcf2003,_0x4a7494));}['_findSuggestions'](_0xb4e665,_0x57f3be=null){const _0x5938e5=[],_0x2ce3cb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb4e665)||(_0xb4e665=[_0xb4e665]);for(const _0x23a52a of this['getSuggestions']()){if(!_0x23a52a['isInContent'])continue;if(_0x57f3be&&_0x23a52a['type']!=_0x57f3be)continue;let _0x5f5566=!0x1;for(const _0x529817 of _0x23a52a['getRanges']()){for(const _0xfb513b of _0xb4e665){const _0x256ee3=_0xfb513b['start']['isEqual'](_0x529817['end'])||_0xfb513b['end']['isEqual'](_0x529817['start']);if(_0x256ee3||_0xfb513b['getIntersection'](_0x529817)){const _0x268bcb=_0xfb513b['containsRange'](_0x529817)&&zt(this['_model']['schema'],_0x529817['start'],_0xfb513b),_0x2c5937=_0x529817['containsRange'](_0xfb513b)&&zt(this['_model']['schema'],_0xfb513b['start'],_0x529817);_0x5938e5['push']({'suggestion':_0x23a52a,'meta':{'isOwn':_0x2ce3cb==_0x23a52a['author'],'isNextTo':_0x256ee3,'isInsideObject':_0x268bcb,'containsRangeInObject':_0x2c5937}}),_0x5f5566=!0x0;break;}}if(_0x5f5566)break;}}return _0x5938e5;}['_addSuggestionMarker'](_0x5409d0,_0x1cb751,_0x164cbe,_0x52d9d0,_0x12da04){this['_model']['change'](_0x58d97a=>{let _0x53d409='suggestion:'+_0x5409d0+':'+_0x1cb751+':'+_0x164cbe;_0x12da04&&(_0x53d409=_0x53d409+':'+_0x12da04),_0x58d97a['addMarker'](_0x53d409,{'range':_0x52d9d0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x134e2f){const _0xa86eb6=_0x134e2f['previous'],_0x454fb6=_0x134e2f['next'];_0x134e2f['previous']=null,_0x134e2f['next']=null,null!=_0xa86eb6&&_0xa86eb6['next']==_0x134e2f&&(_0xa86eb6['next']=_0x454fb6),null!=_0x454fb6&&_0x454fb6['previous']==_0x134e2f&&(_0x454fb6['previous']=_0xa86eb6),'ready'==this['_suggestionState']['get'](_0x134e2f)&&(this['_suggestionState']['set'](_0x134e2f,'removed'),this['fire']('suggestionUnloaded',_0x134e2f,_0xa86eb6,_0x454fb6));}['_setSuggestionData'](_0x33c34c){const _0x38b85d=_0x33c34c['id'],_0x1998f7=this['addSuggestionData'](_0x33c34c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a45da=this['editor']['plugins']['get']('PendingActions'),_0x132b5f=_0x1998f7['hasComments'],_0x1c8300=_0x1998f7['subType']?_0x1998f7['type']+':'+_0x1998f7['subType']:_0x1998f7['type'],_0x556e3c=this['editor']['locale'],_0x4c5b83=_0x3a45da['add'](o(_0x556e3c,'PENDING_ACTION_SUGGESTION')),_0x18ffd7={'id':_0x38b85d,'type':_0x1c8300,'hasComments':_0x132b5f,'data':_0x33c34c['data']||null,'originalSuggestionId':_0x33c34c['originalSuggestionId']||null,'attributes':_0x1998f7['attributes']};this['_adapter']['addSuggestion'](_0x18ffd7)['then'](_0x40aa30=>{_0x1998f7['_saved']=!0x0,_0x3a45da['remove'](_0x4c5b83),_0x40aa30&&_0x40aa30['createdAt']&&(this['_suggestions']['get'](_0x38b85d)['createdAt']=_0x40aa30['createdAt']);})['catch'](_0x5eccc0=>{throw _0x4de72a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1998f7['discard']();}),_0x1998f7['stopListening'](),this['_suggestions']['delete'](_0x1998f7['id']),this['_suggestionState']['delete'](_0x1998f7),_0x5eccc0;});}return _0x1998f7;}['_isBlockAttribute'](_0x3f7a4e){return this['editor']['plugins']['get'](_0x55e6d0)['isBlockAttribute'](_0x3f7a4e);}['_isInlineAttribute'](_0x1c8c68){return this['editor']['plugins']['get'](_0x55e6d0)['isInlineAttribute'](_0x1c8c68);}['_updateSuggestionData'](_0x1772df,_0x46bd9d){const _0x48d35e=this['editor']['plugins']['get']('PendingActions'),_0x5cab66=this['getSuggestion'](_0x1772df);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5cab66['_saved']){const _0x13c3c6=_0x48d35e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1772df,_0x46bd9d)['then'](()=>{_0x48d35e['remove'](_0x13c3c6);});}else _0x5cab66['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1772df,_0x46bd9d);});}}['_getSuggestionData'](_0x5d2a2c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ea645('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d2a2c);}['_handleNewSuggestionMarker'](_0x4b4618){const {id:_0x552784,type:_0xaae94d,subType:_0xa0297e,authorId:_0x4229f2}=this['_splitMarkerName'](_0x4b4618),_0x2bfbfb=this['_suggestions']['get'](_0x552784)||this['_createSuggestion'](_0xaae94d,_0xa0297e,_0x552784,_0x4229f2,{});switch(this['_checkSuggestionCorrectness'](_0x2bfbfb,_0xaae94d,_0xa0297e,_0x4229f2),this['_suggestionState']['get'](_0x2bfbfb)){case'notReady':this['_getSuggestionData'](_0x552784)['then'](_0x5e2718=>{let _0x18afd1=Promise['resolve']();_0x5e2718['hasComments']&&(_0x18afd1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x552784})),_0x18afd1['then'](()=>{this['addSuggestionData'](_0x5e2718)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2bfbfb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x552784,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2bfbfb,'ready'),this['fire']('suggestionLoaded',_0x2bfbfb);break;case'ready':this['fire']('suggestionChanged',_0x2bfbfb);}return _0x2bfbfb['addMarkerName'](_0x4b4618),_0x2bfbfb;}['_refreshSuggestionsChain'](_0x2d069e){const _0x4acef4=Array['from'](_0x2d069e),_0x22562f=_0x4acef4['filter'](_0x598863=>'attribute'==_0x598863['type']);this['_refreshAttributeSuggestionsChain'](_0x22562f);const _0x17429b=_0x4acef4['filter'](_0x303def=>!_0x303def['isMultiRange']&&'attribute'!=_0x303def['type']),_0x55b9a7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x253703=>!_0x253703['isMultiRange']&&'attribute'!=_0x253703['type']),_0x195073=_0x55b9a7['filter'](_0x170223=>!_0x2d069e['has'](_0x170223)),_0x171c99=new Map(_0x55b9a7['map'](_0x5b4ae2=>[_0x5b4ae2,this['_suggestionFactory']['getSuggestionCallback'](_0x5b4ae2['type'],_0x5b4ae2['subType'],'chain')])),_0x52d39a=new Map(_0x55b9a7['map'](_0x307e49=>[_0x307e49,_0x307e49['getFirstRange']()])),_0x27598=new Set(),_0x2d03aa=new Set();for(let _0x5ce2b3=0x0;_0x5ce2b3<_0x17429b['length'];_0x5ce2b3++)_0x13e0df(_0x17429b[_0x5ce2b3],_0x17429b,_0x5ce2b3+0x1);for(let _0x11e346=0x0;_0x11e346<_0x17429b['length'];_0x11e346++)_0x13e0df(_0x17429b[_0x11e346],_0x195073,0x0);const _0x56d2ba=new Set();for(let _0x1a6676=0x0;_0x1a6676<_0x17429b['length'];_0x1a6676++){const _0xf281e7=_0x17429b[_0x1a6676];!_0x2d03aa['has'](_0xf281e7)&&_0xf281e7['previous']&&(_0x56d2ba['add'](_0xf281e7['previous']),_0xf281e7['previous']['next']===_0xf281e7&&(_0xf281e7['previous']['next']=null),_0xf281e7['previous']=null),!_0x27598['has'](_0xf281e7)&&_0xf281e7['next']&&(_0x56d2ba['add'](_0xf281e7['next']),_0xf281e7['next']['previous']===_0xf281e7&&(_0xf281e7['next']['previous']=null),_0xf281e7['next']=null);}function _0x13e0df(_0x354c5f,_0x315ad7,_0x2d20b9){for(let _0x41a87c=_0x2d20b9;_0x41a87c<_0x315ad7['length'];_0x41a87c++){const _0x448228=_0x4fc26d(_0x354c5f,_0x315ad7[_0x41a87c]);_0x448228&&(_0x448228[0x0]['next']=_0x448228[0x1],_0x448228[0x1]['previous']=_0x448228[0x0],_0x27598['add'](_0x448228[0x0]),_0x2d03aa['add'](_0x448228[0x1]));}}function _0x4fc26d(_0x149001,_0x28f970){if(_0x149001['author']['id']!==_0x28f970['author']['id'])return null;const _0x33bb9d=_0x171c99['get'](_0x149001)(_0x149001,_0x28f970,_0x52d39a['get'](_0x149001),_0x52d39a['get'](_0x28f970));if(!_0x33bb9d)return null;return _0x171c99['get'](_0x28f970)(_0x149001,_0x28f970,_0x52d39a['get'](_0x149001),_0x52d39a['get'](_0x28f970))?_0x33bb9d[0x1]['commentThread']&&_0x33bb9d[0x1]['commentThread']['length']?null:_0x33bb9d:null;}_0x56d2ba['size']&&this['_refreshSuggestionsChain'](_0x56d2ba);}['_refreshAttributeSuggestionsChain'](_0x148cb9){if(0x0==_0x148cb9['length'])return;const _0x5dd31a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x280794=>'attribute'==_0x280794['type']&&_0x280794['_isDataLoaded']),_0x1870a6=[],_0x3d534f=new Map();for(const _0x14de67 of _0x5dd31a){const _0xf8a0a2=_0x56d605(_0x14de67['attributes']);_0x3d534f['has'](_0xf8a0a2)||(_0x3d534f['set'](_0xf8a0a2,_0x1870a6['length']),_0x1870a6['push']([]));const _0x2be85c=_0x3d534f['get'](_0xf8a0a2);_0x1870a6[_0x2be85c]['push'](_0x14de67);}!(function(){_0x1870a6['sort']((_0x99028,_0x1196f1)=>{const _0x4af571=_0x99028[0x0]['createdAt'],_0x20949a=_0x1196f1[0x0]['createdAt'];return _0x4af571==_0x20949a?_0x99028[0x0]['attributes']['groupId']<_0x1196f1[0x0]['attributes']['groupId']?-0x1:0x1:_0x4af571<_0x20949a?-0x1:0x1;});for(const _0x54c79f of _0x1870a6)_0x54c79f['sort']((_0x3bb34f,_0x25ead2)=>_0x3bb34f['id']<_0x25ead2['id']?-0x1:0x1);}());for(let _0x4a8e16=0x0;_0x4a8e16<_0x1870a6['length'];_0x4a8e16++){if(0x0==_0x1870a6[_0x4a8e16]['length'])continue;const _0x5674ae=[];for(let _0x532436=_0x4a8e16+0x1;_0x532436<_0x1870a6['length'];_0x532436++)0x0!=_0x1870a6[_0x532436]['length']&&_0x327c19(_0x1870a6[_0x4a8e16],_0x1870a6[_0x532436])&&_0x5674ae['push'](_0x532436);for(const _0x5965af of _0x5674ae)_0x1870a6[_0x4a8e16]=_0x1870a6[_0x4a8e16]['concat'](_0x1870a6[_0x5965af]),_0x1870a6[_0x5965af]=[];}for(const _0xa006fe of _0x1870a6)for(let _0x7eea11=0x0;_0x7eea11<_0xa006fe['length'];_0x7eea11++){const _0x7c87f9=_0xa006fe[_0x7eea11+0x1]||null;_0xa006fe[_0x7eea11]['next']!==_0x7c87f9&&(_0xa006fe[_0x7eea11]['next']=_0x7c87f9);}for(const _0x42af44 of _0x1870a6)for(let _0x36a2fe=0x0;_0x36a2fe<_0x42af44['length'];_0x36a2fe++){const _0x3df0b5=_0x42af44[_0x36a2fe-0x1]||null;_0x42af44[_0x36a2fe]['previous']!==_0x3df0b5&&(_0x42af44[_0x36a2fe]['previous']=_0x3df0b5);}function _0x327c19(_0x1d39a3,_0x667a1){if(_0x1d39a3[0x0]['attributes']['groupId']!==_0x667a1[0x0]['attributes']['groupId']&&_0x1d39a3[0x0]['author']!==_0x667a1[0x0]['author'])return!0x1;if(!function(_0x2136a1,_0x439161){if(!_0x2136a1['hasComments']&&!_0x439161['hasComments'])return!0x0;if(_0x2136a1['hasComments']&&_0x439161['hasComments'])return!0x1;if(_0x2136a1['hasComments']&&_0x439161['createdAt']<_0x2136a1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x439161['hasComments']&&_0x2136a1['createdAt']<_0x439161['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d39a3[0x0],_0x667a1[0x0]))return!0x1;const _0x4204e1=Jt(_0x1d39a3[0x0]['attributes'],['groupId','trackingSessionId']),_0x10e922=Jt(_0x667a1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1a3d04(_0x4204e1,_0x10e922))return!0x1;if(_0x1d39a3[0x0]['attributes']['groupId']==_0x667a1[0x0]['attributes']['groupId'])return!0x0;if(_0x1d39a3[0x0]['attributes']['trackingSessionId']!==_0x667a1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1d39a3['every'](_0x435836=>_0x667a1['some'](_0x293668=>_0x435836['getFirstRange']()['isEqual'](_0x293668['getFirstRange']())))&&_0x667a1['every'](_0x20f036=>_0x1d39a3['some'](_0x4b902b=>_0x20f036['getFirstRange']()['isEqual'](_0x4b902b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x285946){const _0x4857ec=Array['from'](_0x285946),_0x3d2502=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2995a6=_0x3d2502['filter'](_0x433034=>!_0x285946['has'](_0x433034)),_0x58c4c9=new Map(_0x4857ec['map'](_0x41f2da=>[_0x41f2da,this['_suggestionFactory']['getSuggestionCallback'](_0x41f2da['type'],_0x41f2da['subType'],'join')])),_0x3f6644=new Map(_0x3d2502['map'](_0x1a88f6=>[_0x1a88f6,_0x1a88f6['getRanges']()]));for(let _0x30227e=0x0;_0x30227e<_0x4857ec['length'];_0x30227e++){if(_0x495549(this,_0x4857ec[_0x30227e],_0x4857ec,_0x30227e+0x1))return!0x0;}for(let _0x5aa5ad=0x0;_0x5aa5ad<_0x4857ec['length'];_0x5aa5ad++){if(_0x495549(this,_0x4857ec[_0x5aa5ad],_0x2995a6,0x0))return!0x0;}return!0x1;function _0x495549(_0x286cd3,_0x335152,_0x3421b4,_0x24ade6){for(let _0x14c406=_0x24ade6;_0x14c406<_0x3421b4['length'];_0x14c406++){const _0x22909c=_0x3421b4[_0x14c406];if(_0x22909c['type']!==_0x335152['type']||_0x22909c['author']['id']!==_0x335152['author']['id']||_0x22909c['subType']!==_0x335152['subType'])continue;if(!en(_0x335152,_0x22909c))continue;if('attribute'==_0x335152['type']&&_0x335152['data']['oldValue']!=_0x22909c['data']['oldValue'])continue;if('attribute'==_0x335152['type']&&_0x286cd3['_isBlockAttribute'](_0x335152['data']['key']))continue;if('formatBlock'==_0x335152['type']){const _0x520d40=_0x286cd3['editor']['model'],_0x283162=_0x335152['getContainedElement']();if(_0x283162&&(_0x520d40['schema']['isObject'](_0x283162)||_0x520d40['schema']['isLimit'](_0x283162)))continue;}const _0x42b669=_0x58c4c9['get'](_0x335152),_0x58b48c=_0x3f6644['get'](_0x335152),_0x3b4763=_0x3f6644['get'](_0x22909c),_0x584a6e=_0x335152['commentThread']&&_0x335152['commentThread']['length'],_0x243644=_0x22909c['commentThread']&&_0x22909c['commentThread']['length'];if(!_0x584a6e&&_0x42b669(_0x3b4763,_0x58b48c))return _0x286cd3['_joinSuggestions'](_0x22909c,_0x335152),_0x3f6644['delete'](_0x335152),!0x0;if(!_0x243644&&_0x42b669(_0x58b48c,_0x3b4763))return _0x286cd3['_joinSuggestions'](_0x335152,_0x22909c),_0x3f6644['delete'](_0x22909c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x22b09f,_0x24d1ed){if(_0x22b09f['isMultiRange']){for(const _0x135f3f of _0x24d1ed['getRanges']())_0x22b09f['addRange'](_0x135f3f);}else{const _0x3d91ab=_0x24d1ed['getFirstRange']()['end'];this['_setSuggestionRange'](_0x22b09f,this['_model']['createRange'](_0x22b09f['getFirstRange']()['start'],_0x3d91ab));}_0x24d1ed['removeMarkers']();}['_getMarkerAnnouncementText'](_0x53703f,_0x27896d,_0x2e8973){const _0x886967=_0x53703f['startsWith']('format')||_0x53703f['startsWith']('attribute')?'FORMATTING':_0x53703f['toUpperCase']();return o(this['editor']['locale'],_0x27896d+'_'+_0x886967+'_SUGGESTION_ANNOUNCEMENT',_0x2e8973);}['_initAriaMarkerChangeAnnouncements'](){const _0x450849=this['editor'];if(!_0x450849['ui'])return;const {ariaLiveAnnouncer:_0x295437}=_0x450849['ui'];_0x35b4f6(this['_model'],({left:_0x254d37,entered:_0x294c24})=>{for(const _0x728c95 of _0x254d37){const {group:_0x1ba396,type:_0x4096e4}=this['_splitMarkerName'](_0x728c95['name']);if('suggestion'===_0x1ba396){_0x295437['announce'](this['_getMarkerAnnouncementText'](_0x4096e4,'LEAVE'));break;}}for(const _0x185179 of _0x294c24){const {group:_0x42ca81,type:_0x4f6ffc}=this['_splitMarkerName'](_0x185179['name']);if('suggestion'===_0x42ca81){_0x295437['announce'](this['_getMarkerAnnouncementText'](_0x4f6ffc,'ENTER',_0xda6fcd(_0x39921e)));break;}}});}['_processAttributeChanges'](_0xe00239){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5c6c59=this['editor'],_0x2fd135=_0x5c6c59['model']['document']['differ']['getChanges']();if(0x0==_0x2fd135['length'])return!0x1;const _0x22da41=[],_0x4202ab=_0x2fd135['filter'](_0x3b6aba=>'attribute'==_0x3b6aba['type']),_0x3dc0a5=_0x2fd135['filter'](_0x2aeda2=>'insert'==_0x2aeda2['type']&&'$text'!=_0x2aeda2['name']),_0x8f4a31=_0x2fd135['filter'](_0x37a47c=>'remove'==_0x37a47c['type']&&'$text'!=_0x37a47c['name']);for(const _0x55ba45 of _0x4202ab)_0x22da41['push']({'key':_0x55ba45['attributeKey'],'newValue':_0x55ba45['attributeNewValue'],'oldValue':_0x55ba45['attributeOldValue'],'range':Zt(_0x55ba45['range'],_0x5c6c59['model'])});for(const _0x41324e of _0x3dc0a5){const _0x67449d=_0x8f4a31['find'](_0x505f6b=>_0x505f6b['position']['isEqual'](_0x41324e['position']));_0x67449d&&_0x22da41['push']({'key':m,'newValue':_0x41324e['name'],'oldValue':_0x67449d['name'],'range':_0x5c6c59['model']['createRangeOn'](_0x41324e['position']['nodeAfter'])});}return 0x0!=_0x22da41['length']&&this['_reduceExistingSuggestions'](_0xe00239,_0x22da41);}['_processAttributeSuggestions'](_0x30cde3){let _0x36c05c=!0x1;const _0x5bb779=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b32d8=>_0x3b32d8['data']['newRange']&&_0x3b32d8['name']['startsWith']('suggestion:attribute:'));for(const _0x46bb73 of _0x5bb779){const {subType:_0x20932e,id:_0x402fac}=this['_splitMarkerName'](_0x46bb73['name']),_0x441b50=_0x20932e['split']('|')[0x0];for(const _0x41fbc5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x41fbc5['id']!=_0x402fac&&'attribute'==_0x41fbc5['type']&&_0x41fbc5['data']&&_0x41fbc5['data']['key']==_0x441b50&&_0x41fbc5['getFirstRange']()['isIntersecting'](_0x46bb73['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x41fbc5,_0x46bb73['data']['newRange'],_0x30cde3),_0x36c05c=!0x0);}return _0x36c05c;}['recordAttributeChanges'](_0x62d23e){this['_recordAttributeSuggestions']=!0x0,_0x62d23e();}['_isRegisteredAttribute'](_0x5dc94b){return this['editor']['plugins']['get'](_0x55e6d0)['isRegisteredAttribute'](_0x5dc94b);}['_reduceExistingSuggestions'](_0x13c3e3,_0x4bf8f2){if(0x0==_0x4bf8f2['length'])return!0x1;let _0x375639=!0x1;for(const _0x19bf5b of _0x4bf8f2){const _0x1b0854=this['_findSuggestions'](_0x19bf5b['range'],'attribute')['filter'](_0x53e4c4=>!_0x53e4c4['meta']['isNextTo'])['map'](_0x2653e2=>_0x2653e2['suggestion']),_0x4ecab9=_0x56d605({'newValue':_0x19bf5b['newValue']});_0x1b0854['filter'](_0x5dc856=>{const [_0xb8c3d3,_0x373b69]=_0x5dc856['subType']['split']('|');return _0xb8c3d3==_0x19bf5b['key']&&_0x373b69!=_0x4ecab9;})['forEach'](_0x168456=>{this['_reduceSuggestionAttributeRange'](_0x168456,_0x19bf5b['range'],_0x13c3e3),_0x375639=!0x0;});}return _0x375639;}['_reduceSuggestionAttributeRange'](_0x4a2bfd,_0x57ac47,_0x5cddba){const _0x4dfa9e=_0x4a2bfd['getFirstRange']()['getDifference'](_0x57ac47);0x0!==_0x4dfa9e['length']?0x1!==_0x4dfa9e['length']?this['_breakSuggestionMarker'](_0x4a2bfd,_0x57ac47['start'],_0x57ac47['end']):this['_setSuggestionRange'](_0x4a2bfd,_0x4dfa9e[0x0]):_0x5cddba['removeMarker'](_0x4a2bfd['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x22b3bc){this['_editor']=_0x22b3bc,this['_model']=_0x22b3bc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5555a9,_0x368f17,_0x31c94b,_0x520f5c,_0x1759db,_0x5e2395,_0x3369d1){return new T(this['_model'],{'type':_0x5555a9,'subType':_0x368f17,'id':_0x31c94b,'originalSuggestionId':_0x3369d1,'author':_0x520f5c,'creator':_0x520f5c,'attributes':_0x1759db,'onAttributesChange':_0x5e2395,'onAccept':(..._0x54e5cb)=>this['getSuggestionCallback'](_0x5555a9,_0x368f17,'accept')(..._0x54e5cb),'onDiscard':(..._0x442d65)=>this['getSuggestionCallback'](_0x5555a9,_0x368f17,'discard')(..._0x442d65)});}['registerCustomCallback'](_0x5e56ac,_0x94efa7,_0xb3096b,_0x5d99d4){const _0x55f040=_0x5e56ac+':'+_0x94efa7+':'+_0xb3096b;this['_customCallbacks']['set'](_0x55f040,_0x5d99d4);}['getSuggestionCallback'](_0xa7d7a7,_0x2aefab,_0x178b66){const _0x3add22=_0xa7d7a7+':'+_0x2aefab+':'+_0x178b66;return this['_customCallbacks']['get'](_0x3add22)||this['_defaultCallbacks']['get'](_0xa7d7a7+':'+_0x178b66);}['_registerDefaultCallbacks'](){const _0x1e9e06=()=>!0x1,_0x31fc43=_0x4bae08=>{_0x4bae08['sort']((_0x250482,_0x2e0e48)=>_0x250482['start']['isBefore'](_0x2e0e48['start'])?0x1:-0x1),this['_model']['change'](_0x541fa7=>{for(const _0x533fa3 of _0x4bae08){let _0x59f84a;_0x59f84a=_0x533fa3['end']['isAtEnd']&&_0x533fa3['end']['parent']==_0x533fa3['start']['nodeAfter']?_0x541fa7['createSelection'](_0x533fa3['start']['nodeAfter'],'on'):_0x541fa7['createSelection'](_0x533fa3),this['_model']['deleteContent'](_0x59f84a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5bd4e1=(_0x5406d7,_0x310b83)=>{_0x310b83&&this['_model']['change'](_0x188d5b=>{const {commandName:_0x400ec9,commandParams:_0x19501f=[]}=_0x310b83,_0x5da991=_0x5406d7['map'](_0x8510d3=>(Kt(_0x8510d3)&&(_0x8510d3=this['_model']['createRange'](_0x8510d3['end'])),_0x8510d3))['filter'](_0x1c1d8b=>'$graveyard'!==_0x1c1d8b['root']['rootName']);if(_0x5da991['length']<0x1)return;const _0x24bf4f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49186f=>_0x2ed57b['fromRange'](_0x49186f));_0x188d5b['setSelection'](_0x5da991);for(const _0x2b4b35 of this['_editor']['commands']['commands']())_0x2b4b35['refresh']();_0x19501f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x400ec9,..._0x19501f);const _0xefbf04=_0x24bf4f['filter'](_0x3661f3=>'$graveyard'!=_0x3661f3['root']['rootName']);_0xefbf04['length']>0x0&&_0x188d5b['setSelection'](_0xefbf04);for(const _0x465330 of _0x24bf4f)_0x465330['detach']();});},_0x4acc8e=(_0x1d066b,_0x333547)=>0x1==_0x1d066b['length']&&0x1==_0x333547['length']&&_0x1d066b[0x0]['end']['isEqual'](_0x333547[0x0]['start']),_0x45744f=(_0x203b4f,_0x2dee21,_0x2e3889,_0x3fa737)=>nn(_0x203b4f,_0x2dee21,_0x2e3889,_0x3fa737)?[_0x203b4f,_0x2dee21]:nn(_0x2dee21,_0x203b4f,_0x3fa737,_0x2e3889)?[_0x2dee21,_0x203b4f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1e9e06),this['_defaultCallbacks']['set']('insertion:discard',_0x31fc43),this['_defaultCallbacks']['set']('insertion:join',_0x4acc8e),this['_defaultCallbacks']['set']('insertion:chain',_0x45744f),this['_defaultCallbacks']['set']('deletion:accept',_0x31fc43),this['_defaultCallbacks']['set']('deletion:discard',_0x1e9e06),this['_defaultCallbacks']['set']('deletion:join',_0x4acc8e),this['_defaultCallbacks']['set']('deletion:chain',_0x45744f),this['_defaultCallbacks']['set']('formatInline:accept',_0x5bd4e1),this['_defaultCallbacks']['set']('formatInline:discard',_0x1e9e06),this['_defaultCallbacks']['set']('formatInline:join',_0x4acc8e),this['_defaultCallbacks']['set']('formatInline:chain',_0x1e9e06),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5bd4e1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1e9e06),this['_defaultCallbacks']['set']('formatBlock:join',_0x4acc8e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1e9e06),this['_defaultCallbacks']['set']('attribute:accept',_0x1e9e06),this['_defaultCallbacks']['set']('attribute:discard',(_0x16c02a,_0x4a816d)=>{if(!_0x4a816d)return;const _0x3ac6d0=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x12ef8f=>{if(_0x4a816d['key']==m)for(const _0x395b57 of _0x16c02a){const _0xa4e5e6=_0x395b57['start']['nodeAfter'],_0x382feb=_0x4a816d['oldValue'];_0x12ef8f['rename'](_0xa4e5e6,_0x382feb);}else{if(_0x3ac6d0['_isBlockAttribute'](_0x4a816d['key'])){for(const _0x308045 of _0x16c02a)void 0x0!==_0x4a816d['oldValue']?_0x12ef8f['setAttribute'](_0x4a816d['key'],_0x4a816d['oldValue'],_0x308045['start']['nodeAfter']):_0x12ef8f['removeAttribute'](_0x4a816d['key'],_0x308045['start']['nodeAfter']);}else{for(const _0x6a53d0 of _0x16c02a)_0x4a816d['oldValue']?_0x12ef8f['setAttribute'](_0x4a816d['key'],_0x4a816d['oldValue'],_0x6a53d0):_0x12ef8f['removeAttribute'](_0x4a816d['key'],_0x6a53d0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4acc8e);}}function zt(_0x2e4421,_0x34b7a4,_0x4e5da1){for(const _0x39f0ab of _0x34b7a4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39f0ab['root']==_0x39f0ab)return!0x1;if(!_0x4e5da1['containsItem'](_0x39f0ab))return!0x1;if(_0x2e4421['isObject'](_0x39f0ab)||_0x2e4421['isLimit'](_0x39f0ab))return!0x0;}return!0x1;}function Kt(_0x300031){return _0x300031['end']['parent']==_0x300031['start']['nodeAfter']&&_0x300031['end']['isAtStart'];}function Wt(_0x1fc3f5,_0x56a40f,_0x4ad26d,_0x39652c){const _0x3ee77e=_0xc55bac=>!_0xc55bac['item']['is']('$textProxy')&&!_0x39652c['isObject'](_0xc55bac['item']),_0x25ed17=_0x1fc3f5['start']['getLastMatchingPosition'](_0x3ee77e),_0x55f46b=_0x1fc3f5['end']['getLastMatchingPosition'](_0x3ee77e,{'direction':'backward'});return(!_0x1fc3f5['start']['isEqual'](_0x25ed17)||!_0x1fc3f5['end']['isEqual'](_0x55f46b))&&(_0x25ed17['isBefore'](_0x55f46b)?_0x4ad26d['updateMarker'](_0x56a40f,{'range':_0x4ad26d['createRange'](_0x25ed17,_0x55f46b)}):_0x4ad26d['removeMarker'](_0x56a40f),!0x0);}function Ht(_0x269ac5){return _0x56d605(_0x269ac5);}function Qt(_0xbdc1c4){const _0x1ea7eb=_0xbdc1c4['start']['nodeAfter'];return _0x1ea7eb&&_0x1ea7eb['is']('element');}function Xt(_0x27087b){return Kt(_0x27087b)||function(_0x1162f1){return _0x1162f1['start']['parent']==_0x1162f1['end']['nodeBefore']&&_0x1162f1['start']['isAtEnd'];}(_0x27087b);}function Yt(_0x54f71c,_0x3efd11){try{const _0x26f03e=_0x54f71c['getRange']();for(const _0x31cd88 of _0x3efd11)if(_0x54f71c!==_0x31cd88&&_0x26f03e&&_0x26f03e['isIntersecting'](_0x31cd88['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1f0418,_0x5084b4){return null==_0x1f0418['end']['nodeBefore']&&_0x1f0418['end']['parent']==_0x1f0418['start']['nodeAfter']?tn(_0x1f0418['start']['nodeAfter'],_0x5084b4):_0x1f0418;}function tn(_0x3de9a4,_0x1406d5){const _0xf6dda4=_0x1406d5['schema']['isObject'](_0x3de9a4)||_0x1406d5['schema']['isSelectable'](_0x3de9a4);return _0x1406d5['createRange'](_0x1406d5['createPositionAt'](_0x3de9a4,'before'),_0xf6dda4?_0x1406d5['createPositionAfter'](_0x3de9a4):_0x1406d5['createPositionAt'](_0x3de9a4,'end'));}function nn(_0x410500,_0xb20210,_0x5832c8,_0x44adc0){return!!en(_0x410500,_0xb20210)&&_0x5832c8['end']['isEqual'](_0x44adc0['start']);}function en(_0x2113ec,_0x393b3b){if(!_0x2113ec['_isDataLoaded']||!_0x393b3b['_isDataLoaded'])return!0x1;const _0x2292a5=new Set(Object['keys'](_0x2113ec['attributes'])),_0x3aff8d=new Set(Object['keys'](_0x393b3b['attributes']));if(_0x2292a5['delete']('groupId'),_0x3aff8d['delete']('groupId'),0x0==_0x2292a5['size']&&0x0==_0x3aff8d['size'])return!0x0;if(_0x2292a5['size']!=_0x3aff8d['size'])return!0x1;const _0x1c200d={..._0x2113ec['attributes']},_0x18b433={..._0x393b3b['attributes']};return delete _0x1c200d['groupId'],delete _0x18b433['groupId'],JSON['stringify'](_0x1c200d)==JSON['stringify'](_0x18b433);}function sn(_0x5f315b,_0x2b3ae8){const _0x2bcb55=on(_0x5f315b['attributes']),_0xf6b4cf=on(_0x2b3ae8);if(!_0x5f315b['_isDataLoaded'])return!0x1;for(const _0x278972 of Object['keys'](_0xf6b4cf))if(!_0x1a3d04(_0x2bcb55[_0x278972],_0xf6b4cf[_0x278972]))return!0x1;return!0x0;}function on(_0x2eaeae){const _0x32cc86=Object['assign']({},_0x2eaeae);return delete _0x32cc86['skipNestingCheck'],delete _0x32cc86['tablePasteChainId'],_0x32cc86;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x3aea00(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x26ddff,_0x5ee722,_0x1f1d35,_0x30b16f){super(),this['model']=_0x5ee722,this['view']=_0x1f1d35,this['commentThreadController']=_0x30b16f,this['_editor']=_0x26ddff,this['_acceptCommand']=_0x26ddff['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x26ddff['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x15e924,_0x370189)=>_0x15e924||_0x370189),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xf10495=>_0xf10495&&this['_editor']['model']['canEditAt'](_0x5ee722['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xefeeee=>_0xefeeee&&this['_editor']['model']['canEditAt'](_0x5ee722['getRanges']())),this['_pendingAction']=null,_0x1f1d35['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f1d35,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f1d35,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f1d35,'change:isDirty',()=>{_0x1f1d35['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 _0x4dd194=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4dd194);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x28bdc3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x954863,_0xbc1aac,_0x547ab0,_0x6df08a){super(_0x954863),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x15f86c(_0x954863,o(_0x954863,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xbc1aac['authoredAt']),this['bind']('authoredAt')['to'](_0xbc1aac),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',_0xbc1aac,'authoredAt',this,'descriptionParts',(_0x529fd0,_0x30ecfc,_0x5d117c)=>{const _0x12c515=_0x5d117c['map'](_0x3fec7b=>ls(_0x3fec7b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x529fd0-0x1,_0xbc1aac['author']['name'],_0x30ecfc?_0x6df08a['formatDateTime'](_0x30ecfc):'',new DOMParser()['parseFromString'](_0x12c515,'text/html')['body']['textContent']]);}),this['focusables']=new _0x416963(),this['focusTracker']=new _0x327580(),this['keystrokes']=new _0x3b42a9(),this['focusCycler']=new _0x5ed207({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4754bc=>_0x4754bc['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xbc1aac,this['_localUser']=_0x547ab0,this['_config']=_0x6df08a,_0x6df08a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x7a1f11(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x249e41}=this['_config'];this['commentsListView']=new _0x249e41(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',_0x347851=>_0x347851+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3242f0,_0x4f2eb5)=>_0x3242f0||!!_0x4f2eb5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf4d97f}=this['_config'],_0x28039e=new _0xf4d97f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1e0a86=_0x28039e['commentInputView'];return _0x28039e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1e0a86,'value',(_0x50025c,_0x30b7df,_0x480f31)=>!!_0x480f31||_0x50025c&&!_0x30b7df),_0x1e0a86['on']('submit',(_0x47b3ca,_0x36a0ba)=>{this['fire']('addComment',_0x36a0ba),_0x1e0a86['editor']['setData']('');}),_0x1e0a86['on']('cancel',()=>this['focus']()),_0x1e0a86['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28039e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x54fff4,_0x47e4d8,_0xb78c31,_0x46c836){super(_0x54fff4,_0x47e4d8,_0xb78c31,_0x46c836),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3bbc8d=>_0x3bbc8d&&_0x3bbc8d[0x0]?_0x3bbc8d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22cea3,_0x3d0b4d)=>{let _0x2ef897='';for(const _0x20e137 of _0x22cea3)_0x2ef897+='<p>'+ls(_0x20e137['content'],_0x20e137['color'])+'</p>';return _0x3d0b4d?_0x2ef897:_0x44dce4(_0x2ef897,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46c836['SuggestionView'](_0x54fff4,_0x47e4d8,{'formatDateTime':_0x46c836['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4c13d4=this['bindTemplate'],_0x4ec1b3=[this['suggestionView']];return this['commentsListView']&&_0x4ec1b3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ec1b3['push'](this['commentThreadInputView']),_0x4ec1b3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4c13d4['if']('isActive','ck-suggestion-wrapper--active'),_0x4c13d4['to']('type',_0x2454f3=>'ck-suggestion-'+_0x2454f3),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':_0x4c13d4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ec1b3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x28bdc3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2fcb53,_0x5ca293,_0x2ca809){super(_0x2fcb53),this['_model']=_0x5ca293,this['_config']=_0x2ca809,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5ca293),this['acceptButton']=this['_createButton'](o(_0x2fcb53,'Accept\x20suggestion'),_0x51b180,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2fcb53,'Discard\x20suggestion'),_0x3a2f9c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x322d3d(_0x2fcb53,_0x5ca293['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x416963([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x327580(),this['keystrokes']=new _0x3b42a9(),this['focusCycler']=new _0x5ed207({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x530734=>_0x530734['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2292c5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2292c5['innerHTML']=this['description'],this['on']('change:description',(_0x4d9237,_0xc41263,_0x5ced8a)=>{_0x2292c5['innerHTML']=_0x5ced8a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5cf241=this['bindTemplate'],_0x3f45fc=[{'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':_0x5cf241['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5cf241['to']('authoredAt',_0x3b11e8=>this['_config']['formatDateTime'](_0x3b11e8))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3f45fc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3f45fc}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x178ade,_0x3aa8b6,_0x2b8039,_0x14629a,_0x30da34){const _0x5e9765=new _0x21e5b5(this['locale']);return _0x5e9765['set']({'label':_0x178ade,'icon':_0x3aa8b6,'tooltip':!0x0,'tooltipPosition':_0x30da34}),_0x5e9765['extendTemplate']({'attributes':{'class':_0x2b8039}}),_0x5e9765['on']('execute',()=>{this['fire'](_0x14629a,this['_model']['id']);}),_0x5e9765;}['_setupKeyboardNavigation'](){const _0xfd0dea=this['element'];this['keystrokes']['listenTo'](_0xfd0dea);for(const _0x4d9a02 of this['focusables'])this['focusTracker']['add'](_0x4d9a02['element']),this['keystrokes']['listenTo'](_0x4d9a02['element']);this['keystrokes']['set']('enter',(_0x5e30d0,_0x32b08c)=>{_0xfd0dea===_0x5e30d0['target']&&(this['focusCycler']['focusFirst'](),_0x32b08c());}),this['keystrokes']['set']('esc',(_0xb6bb0,_0x4864d5)=>{_0xfd0dea!==_0xb6bb0['target']&&(this['focus'](),_0x4864d5());});}}class u extends _0x562758{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3f15d1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b3bd5){super(_0x5b3bd5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x50704a=this['editor']['config'];_0x50704a['define']('trackChanges.SuggestionThreadView',fe),_0x50704a['define']('trackChanges.SuggestionView',we),_0x50704a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x50704a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x28f8aa,_0x427be2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2c93f3,_0x1b4b13]of this['_handleControllerBuffer']){const _0x18855f=this['_suggestionToController']['has'](_0x2c93f3);_0x18855f||_0x1b4b13?_0x18855f&&_0x1b4b13&&this['_destroyController'](_0x2c93f3):this['_initializeController'](_0x2c93f3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x28f8aa,_0x427be2);}['init'](){const _0x2283ae=this['editor'],_0x5eb184=_0x2283ae['plugins']['get']('TrackChangesEditing'),_0x4b8f73=_0x2283ae['plugins']['get']('Annotations'),_0x4321ce=_0x2283ae['plugins']['get']('EditorAnnotations'),_0x39eaa5=_0x2283ae['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4321ce['addSourceCollector'](()=>{const _0x194547=[];for(const [_0x181fae,_0x3ca065]of Array['from'](this['_suggestionToController'])){const _0xd7c7a5=_0x181fae['getAllAdjacentSuggestions'](),_0x2b5024=[];for(const _0xf78104 of _0xd7c7a5){if(!_0xf78104['isInContent'])continue;if(_0xf78104['isMultiRange']){_0x2b5024['push'](..._0xf78104['getRanges']());continue;}const _0x39e978=_0xf78104['getFirstRange']();if(_0x2b5024['length']>0x0){const _0x1540f1=_0x2b5024[0x0]['getJoined'](_0x39e978);if(_0x1540f1){_0x2b5024[0x0]=_0x1540f1;continue;}}_0x2b5024['push'](_0x39e978);}_0x194547['push']([_0x3ca065['view'],_0x2b5024]);}return _0x194547;}),this['listenTo'](_0x5eb184,'suggestionLoaded',(_0x4941c4,_0x5bbebe)=>{this['listenTo'](_0x5bbebe,'change:previous',(_0x3805b6,_0xb5c474,_0x43db66,_0xa2198a)=>{_0x5bbebe['isInContent']&&(null==_0x43db66?(this['_updateController'](_0xa2198a['head']),this['_handleSuggestionControllerDelayed'](_0x5bbebe,!0x1)):(this['_updateController'](_0x43db66['head']),null==_0xa2198a&&this['_handleSuggestionControllerDelayed'](_0x5bbebe,!0x0)));}),null!==_0x5bbebe['previous']?this['_updateController'](_0x5bbebe['head']):this['_handleSuggestionControllerDelayed'](_0x5bbebe,!0x1);}),this['listenTo'](_0x5eb184,'suggestionUnloaded',(_0x14daae,_0xbf7e9b,_0x51f740)=>{this['stopListening'](_0xbf7e9b,'change:previous'),this['_handleControllerBuffer']['delete'](_0xbf7e9b),this['_suggestionToController']['has'](_0xbf7e9b)&&this['_destroyController'](_0xbf7e9b),_0x51f740&&this['_updateController'](_0x51f740['head']);}),this['listenTo'](_0x5eb184,'suggestionChanged',(_0x108ce1,_0x9c09fe)=>{this['_updateController'](_0x9c09fe);}),this['listenTo'](_0x4b8f73,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39eaa5,'addComment',(_0x2b9dc2,{threadId:_0x306fc0,isFromAdapter:_0x44b7dd})=>{if(_0x44b7dd||!_0x5eb184['hasSuggestion'](_0x306fc0))return;const _0x150b06=_0x5eb184['getSuggestion'](_0x306fc0);this['_suggestionToController']['get'](_0x150b06)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4cbd8a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf9b86c;for(const _0x33e534 in _0x4cbd8a){const _0x2b8b6f=_0x33e534,_0x1a71b1=_0x4cbd8a[_0x2b8b6f];if('trackChangesLicenseKeyValid'==_0x1a71b1||'trackChangesLicenseKeyInvalid'==_0x1a71b1||'trackChangesLicenseKeyExpired'==_0x1a71b1||'trackChangesLicenseKeyDomainLimit'==_0x1a71b1||'trackChangesLicenseKeyNotAllowed'==_0x1a71b1||'trackChangesLicenseKeyEvaluationLimit'==_0x1a71b1||'trackChangesLicenseKeyUsageLimit'==_0x1a71b1){delete _0x4cbd8a[_0x2b8b6f],_0xf9b86c=_0x1a71b1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x16357c){const _0x4a1ae8=this['_suggestionToController']['get'](_0x16357c);if(!_0x4a1ae8)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4a1ae8['view'])||null;}['getSuggestionForAnnotation'](_0x5ce3dd){const _0x2238b5=this['_viewToController']['get'](_0x5ce3dd['innerView']);return _0x2238b5?_0x2238b5['model']:null;}['_refreshActiveMarkers'](){const _0x27c941=this['editor']['plugins']['get']('Annotations'),_0xc88912=this['editor']['plugins']['get']('TrackChangesEditing'),_0x456ac2=Array['from'](_0x27c941['activeAnnotations'],_0x4cec02=>_0x4cec02['innerView'])['filter'](_0x26773c=>this['_viewToController']['has'](_0x26773c)),_0x7952a0=[];for(const _0x36ee54 of _0x456ac2){const _0x5d8202=this['_viewToController']['get'](_0x36ee54)['model']['getAllAdjacentSuggestions']();_0x7952a0['push'](..._0x5d8202['reduce']((_0x42c63f,_0x9a15cc)=>[..._0x42c63f,..._0x9a15cc['getMarkerNames']()],[]));}_0xc88912['activeMarkers']=_0x7952a0;}['_addUIComponentsToFactory'](){const _0x17abd8=this['editor'],_0x2c01ce=_0x17abd8['locale'],_0x4d3a2e=o(_0x2c01ce,'Track\x20changes'),_0x4a8eb6=new _0x41e968([{'type':'switchbutton','model':new _0x2d8df2({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d3a2e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x17abd8['plugins']['has']('TrackChangesPreview')&&_0x4a8eb6['addMany']([{'type':'separator'},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2a0077 of _0x4a8eb6)if(ke(_0x2a0077)){const _0x4b98bc=_0x17abd8['commands']['get'](_0x2a0077['model']['commandName']);_0x2a0077['model']['bind']('isOn','isEnabled')['to'](_0x4b98bc,'value','isEnabled');}_0x17abd8['ui']['componentFactory']['add']('trackChanges',_0x36b4d6=>this['_createToolbarButton'](_0x36b4d6,_0x4a8eb6,_0x4d3a2e)),_0x17abd8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5a0336=>this['_createMenuBarMenu'](_0x5a0336,_0x4a8eb6,_0x4d3a2e));}['_createToolbarButton'](_0x5a645,_0x4bee79,_0x22a86d){const _0x27a53a=_0x4d0c40(_0x5a645,_0x574fdd),_0x3e2e57=this['editor']['commands']['get']('trackChanges');_0x27a53a['buttonView']['set']({'tooltip':_0x22a86d,'label':_0x22a86d,'icon':_0x4c593e}),_0x27a53a['buttonView']['bind']('isOn')['to'](_0x3e2e57,'value'),_0x27a53a['buttonView']['on']('execute',()=>{_0x3e2e57['execute'](),this['editor']['editing']['view']['focus']();}),_0x7bb7d8(_0x27a53a,_0x4bee79,{'role':'menu'});const _0x58b42e=[];for(const _0x54ba46 of _0x4bee79)ke(_0x54ba46)&&_0x58b42e['push'](this['editor']['commands']['get'](_0x54ba46['model']['commandName']));const _0xc059aa=_0x27a53a['buttonView'];return _0xc059aa['actionView']['unbind']('isEnabled'),_0xc059aa['arrowView']['unbind']('isEnabled'),_0xc059aa['actionView']['bind']('isEnabled')['to'](_0x3e2e57,'isEnabled'),_0xc059aa['arrowView']['bind']('isEnabled')['toMany'](_0x58b42e,'isEnabled',(..._0x559802)=>_0x559802['some'](_0x5bfb51=>_0x5bfb51)),_0x27a53a['on']('execute',_0x21ecc6=>{this['editor']['execute'](_0x21ecc6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x27a53a;}['_createMenuBarMenu'](_0x2b7f0e,_0x580236,_0x9af6f0){const _0x566625=new _0x1e0b08(_0x2b7f0e),_0x28be66=this['editor']['commands']['get']('trackChanges');_0x566625['buttonView']['set']({'label':_0x9af6f0,'icon':_0x4c593e});const _0x2130c9=new _0x107130(_0x2b7f0e);for(const _0x481bb0 of _0x580236){if('separator'==_0x481bb0['type']){_0x2130c9['items']['add'](new _0x37e502(_0x2b7f0e));continue;}const _0x4f28c1=new _0x5a7459(_0x2b7f0e,_0x566625),_0x2a9cf2=new _0x40a314(_0x2b7f0e),_0x2e0fad=_0x481bb0['model'];_0x2a9cf2['bind'](...Object['keys'](_0x2e0fad))['to'](_0x2e0fad),_0x2a9cf2['delegate']('execute')['to'](_0x566625),_0x2a9cf2['on']('execute',()=>{this['editor']['execute'](_0x2e0fad['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f28c1['children']['add'](_0x2a9cf2),_0x2130c9['items']['add'](_0x4f28c1);}return _0x566625['bind']('isEnabled')['to'](_0x28be66,'isEnabled'),_0x566625['panelView']['children']['add'](_0x2130c9),_0x566625;}['_initializeController'](_0x2d3cdc){const _0x417a9c=this['editor'],_0x552c72=_0x417a9c['config'],_0x450cda=_0x417a9c['plugins']['get']('Annotations'),_0x155461=_0x417a9c['plugins']['get']('CommentsRepository'),_0x2f25c3=_0x417a9c['plugins']['get']('EditorAnnotations'),_0x20ac4f=_0x417a9c['plugins']['get'](_0x3f15d1)['me'],_0x5545e6=_0x552c72['get']('trackChanges')['SuggestionThreadView'],_0x11f214=_0x552c72['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x862a02,CommentThreadInputView:_0x3e7079}=_0x417a9c['plugins']['get']('CommentsUI');let _0x17215a,_0x29bdb9,_0xd20e2a;this['_annotationViews']['has'](_0x2d3cdc['id'])?(_0x29bdb9=this['_annotationViews']['get'](_0x2d3cdc['id']),_0x17215a=_0x29bdb9['mainView']):(_0x17215a=new _0x5545e6(_0x417a9c['locale'],_0x2d3cdc,_0x20ac4f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x552c72['get']('comments.editorConfig'),'licenseKey':_0x552c72['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x552c72['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x552c72['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x552c72['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x39adb7(_0x552c72['get']('locale'),_0x417a9c['locale']),'CommentView':_0x552c72['get']('comments')['CommentView'],'CommentsListView':_0x862a02,'CommentThreadInputView':_0x3e7079,'SuggestionView':_0x11f214}),_0x17215a['suggestionView']['acceptButton']['on']('execute',()=>{_0x417a9c['editing']['view']['focus']();}),_0x17215a['suggestionView']['discardButton']['on']('execute',()=>{_0x417a9c['editing']['view']['focus']();}),_0x29bdb9=_0x450cda['createAnnotationView'](this['editor']['locale'],_0x17215a),_0x29bdb9['bind']('isDirty')['to'](_0x17215a,'isDirty'),_0x29bdb9['bind']('length')['to'](_0x17215a),_0x29bdb9['bind']('type')['to'](_0x17215a,'type',_0x54f80b=>'suggestion-'+_0x54f80b),_0x17215a['on']('escape',()=>{_0xd20e2a['fire']('escape');}),this['_annotationViews']['set'](_0x2d3cdc['id'],_0x29bdb9));const _0x1ca4d8=_0x155461['createCommentThreadController'](_0x2d3cdc['commentThread'],_0x17215a),_0x417171=new pe(_0x417a9c,_0x2d3cdc,_0x17215a,_0x1ca4d8),_0x4be54a=_0x2d3cdc['getAllAdjacentSuggestions']()['filter'](_0x2bcbc6=>_0x2bcbc6['isInContent']);_0x17215a['descriptionParts']=_0x417a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4be54a),this['_suggestionToController']['set'](_0x2d3cdc,_0x417171),this['_viewToController']['set'](_0x17215a,_0x417171);const _0x394c29=()=>{const _0x49644d=[],_0x4a1b2b=_0x2d3cdc['getAllAdjacentSuggestions']()['filter'](_0x135553=>_0x135553['isInContent']);for(const _0xf57a0b of _0x4a1b2b)_0x49644d['push'](..._0xf57a0b['getMarkers']());return _0x4b32ea(_0x417a9c['editing'],_0x49644d);};_0xd20e2a=_0x450cda['createAnnotation']({'view':_0x29bdb9,'target':_0x394c29,'type':()=>'suggestion-'+_0x417171['view']['type'],'isVisible':!!_0x394c29()}),_0x155461['_bindAnnotationToEditors'](_0x17215a,_0xd20e2a),_0x450cda['add'](_0xd20e2a),_0x2f25c3['registerAnnotation'](_0xd20e2a);}['_destroyController'](_0x483fc3){const _0x528fb2=this['editor']['plugins']['get']('CommentsRepository'),_0xdcb478=this['editor']['plugins']['get']('Annotations'),_0x1c74c3=this['_suggestionToController']['get'](_0x483fc3),_0x3cefaa=_0x1c74c3['view'],_0xb763bd=_0xdcb478['getByInnerView'](_0x3cefaa);_0x528fb2['_unbindEditors'](_0x3cefaa),_0xb763bd&&_0xdcb478['remove'](_0xb763bd),this['_suggestionToController']['delete'](_0x483fc3),this['_viewToController']['delete'](_0x3cefaa),_0x1c74c3['destroy']();}['_updateController'](_0x4b38f0){if(!_0x4b38f0['isInContent']||!this['_suggestionToController']['has'](_0x4b38f0))return;const _0x3bc02e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e73db=this['_suggestionToController']['get'](_0x4b38f0),_0x5ecb1e=_0x4b38f0['getAllAdjacentSuggestions']();_0x5e73db['view']['descriptionParts']=_0x3bc02e['descriptionFactory']['getDescriptions'](_0x5ecb1e);}['destroy'](){for(const _0x3a3615 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3a3615);for(const _0x76b2ca of this['_annotationViews']['values']())_0x76b2ca['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4d11fd){return'model'in _0x4d11fd;}class Ne extends _0x562758{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xb9eb50){this['editor']['plugins']['get'](d)['adapter']=_0xb9eb50;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x446cc0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x446cc0);}['getSuggestions']({skipNotAttached:_0x259a3a=!0x1,toJSON:_0x3110df=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x259a3a,'toJSON':_0x3110df});}['getSuggestion'](_0x3101eb){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3101eb);}}const p=['Pagination'];class re extends _0x562758{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3735ef=this['editor'];if(_0x3735ef['config']['define']('trackChangesData.editorCreator',_0x25d9bb=>{const _0x3658a5=_0x3735ef['model']['document']['getRootNames']()['reduce']((_0x246df3,_0x1b2ea0)=>(_0x246df3[_0x1b2ea0]='',_0x246df3),{});return _0x3735ef['constructor']['create'](_0x3658a5,_0x25d9bb);}),'function'!=typeof _0x3735ef['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ea645('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x499252){return P(this['editor'],!0x0,_0x499252);}['getDataWithDiscardedSuggestions'](_0x13125b){return P(this['editor'],!0x1,_0x13125b);}}class Fe extends _0x562758{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31f5ca){function _0x4d4ba8(_0x318eb0){return _0x318eb0['map'](_0x333780=>String['fromCharCode'](_0x333780))['join']('');}super(_0x31f5ca),this['result']='end',_0x31f5ca[_0x4d4ba8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d4ba8([0x76,0x69,0x65,0x77])][_0x4d4ba8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d4ba8([0x61,0x75,0x74,0x6f]),_0x31f5ca[_0x4d4ba8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d4ba8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d4ba8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d4ba8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d4ba8([0x6f,0x6b])});}['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 De(_0x5d94f3){return void 0x0!==_0x5d94f3['getRootsAttributes'];}async function P(_0x47021d,_0x44b03e,_0x2b4986){const _0x57723f=_0x3050d5(_0x47021d,p);_0x57723f['plugins']['push'](d,Fe),_0x57723f['rootsAttributes']=De(_0x47021d)?_0x47021d['getRootsAttributes']():void 0x0;const _0x28781b=document['createDocumentFragment'](),_0x292127=_0x47021d['config']['get']('trackChangesData')['editorCreator'],_0x540d4a=await _0x292127(_0x57723f,()=>function(_0xa19b1e){const _0x28ce44=document['createElement']('div');return _0xa19b1e['appendChild'](_0x28ce44),_0x28ce44;}(_0x28781b));!function(_0x44cba7,_0x2e0950){const _0x1022bd=_0x44cba7['model']['document']['getRootNames']()['reduce']((_0x53f7db,_0x570694)=>(_0x53f7db[_0x570694]=_0x44cba7['data']['get']({'rootName':_0x570694}),_0x53f7db),{}),_0x5a4263=_0x44cba7['plugins']['get']('Users')['users']['map'](_0x36c45c=>({'id':_0x36c45c['id'],'name':_0x36c45c['name']})),_0x244377=_0x44cba7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xccda1c=_0x44cba7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47038c=_0x2e0950['plugins']['get']('Users'),_0x2a784d=_0x2e0950['plugins']['get']('TrackChangesEditing'),_0x403f5b=_0x2e0950['plugins']['get']('CommentsRepository');for(const _0x3eb341 of _0x403f5b['getCommentThreads']())_0x3eb341['remove']();for(const _0xe18815 of _0x5a4263)_0x47038c['getUser'](_0xe18815['id'])||_0x47038c['addUser'](_0xe18815);_0x47038c['me']||_0x47038c['useAnonymousUser']();for(const _0x57227f of _0xccda1c)_0x403f5b['addCommentThread'](_0x57227f);for(const _0x39cfc8 of _0x244377)_0x2a784d['addSuggestionData'](_0x39cfc8);_0x2e0950['data']['set'](_0x1022bd);}(_0x47021d,_0x540d4a),_0x540d4a['execute'](_0x44b03e?'acceptAllSuggestions':'discardAllSuggestions');const _0x334a9d=De(_0x540d4a)?_0x540d4a['getFullData'](_0x2b4986):_0x540d4a['data']['get'](_0x2b4986);return await _0x540d4a['destroy'](),_0x334a9d;}class Me extends _0x28bdc3{['options'];constructor(_0x28ca64,_0x2d42a2){super(_0x28ca64),this['options']=_0x2d42a2,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'](_0x2caf53,_0x346072){if(!this['element'])return;const _0x4c7ce0=[];for(const [_0x359c86,_0x558cda]of _0x2caf53){const _0x5b6841=document['createElement']('div');_0x5b6841['setAttribute']('data-ck-root-name',_0x359c86),_0x5b6841['className']=_0x558cda['classes']+'\x20ck-track-changes-preview__root-container',_0x5b6841['innerHTML']=_0x558cda['content'],_0x4c7ce0['push'](_0x5b6841);}_0x346072(this['element'],_0x4c7ce0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x243073{constructor(_0x182406){super(_0x182406),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x14dd69=this['editor'],_0x3e849f=_0x14dd69['locale'],_0x202749=_0x14dd69['plugins']['get']('Dialog');let _0x49b6c7;const _0x3a980c=function(_0x59734b){const _0x2fb975={};if('editables'in _0x59734b['ui']['view']){for(const [_0x401ef6,_0xcef1cb]of Object['entries'](_0x59734b['ui']['view']['editables']))_0x2fb975[_0x401ef6]=_0xcef1cb['element'];}else _0x2fb975[_0x59734b['model']['document']['getRootNames']()[0x0]]=_0x59734b['ui']['view']['editable']['element'];return _0x2fb975;}(_0x14dd69),_0x14fd36=function(_0x9b33cd){let _0x227c06=0x0;for(const _0x13ea95 of Object['values'](_0x9b33cd))_0x227c06=Math['max'](_0x227c06,_0x13ea95['getBoundingClientRect']()['width']);let _0x28c8ff=0x0;for(const _0x15106e of Object['values'](_0x9b33cd))_0x28c8ff+=_0x15106e['getBoundingClientRect']()['height'];const _0x3df663=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x152e27=Math['min'](_0x28c8ff,_0x3df663);return{'width':_0x227c06,'height':_0x152e27};}(_0x3a980c);_0x202749['show']({'id':'finalContentPreview','title':o(_0x3e849f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3e849f,{'dialogRects':_0x14fd36}),'onHide':()=>{_0x49b6c7['detachFromDom']();},'onShow':()=>{_0x14dd69['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x297205=>{const _0x47a76e=this['_standarizeRootsData'](_0x297205,_0x14dd69,_0x3a980c);_0x202749['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x47a76e,_0x14dd69['config']['get']('trackChanges.preview.renderFunction'));}),_0x49b6c7=new _0x124139(_0x3e849f,[_0x202749['view']]),_0x49b6c7['attachToDom'](),_0x49b6c7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x14dd69['once']('destroy',()=>{_0x49b6c7['detachFromDom']();});const _0x1c0868=_0x202749['view']['headerView']['class'];_0x202749['view']['headerView']['class']=_0x1c0868?_0x1c0868+'\x20ck-reset_all':'ck-reset_all',_0x202749['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x202749['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x113b05=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3ea411=_0x113b05['previewMode'],_0x23eea7={};if('$labels'===_0x3ea411){for(const _0x20d929 of _0x113b05['getMergeFieldsIds']())_0x23eea7[_0x20d929]=_0x113b05['getLabel'](_0x20d929)||_0x20d929;}else{const _0x58bfe0='$defaultValues'===_0x3ea411?_0x113b05['getDefaultValues']():_0x113b05['getDataSetValues'](_0x3ea411,!0x0);for(const _0x316aa2 of Object['entries'](_0x58bfe0)){const [_0x24b75f,_0x415cb7]=_0x316aa2;_0x23eea7[_0x24b75f]=null!==_0x415cb7?_0x415cb7:_0x113b05['getLabel'](_0x24b75f)||_0x24b75f;}}return{'mergeFieldsData':_0x23eea7};}['_standarizeRootsData'](_0x49b0df,_0x1761c3,_0x46a213){let _0x262ae7;if('string'==typeof _0x49b0df){const _0x1f8033=_0x1761c3['model']['document']['getRootNames']()[0x0];_0x262ae7={[_0x1f8033]:_0x49b0df};}else _0x262ae7=_0x49b0df;const _0x3e2af2=this['_fixMediaEmbeds'](_0x262ae7,_0x1761c3),_0xda9ac5=function(_0x2b7e6f,_0x4524a1){for(const [_0x425b4f,_0x22afd3]of _0x2b7e6f)_0x22afd3['classes']=_0x4524a1[_0x425b4f]['classList']['value']['replace']('ck-focused','');return _0x2b7e6f;}(this['_sortRoots'](_0x1761c3)['reduce']((_0x2b4a69,_0x26d092)=>(_0x2b4a69['push']([_0x26d092,{'content':_0x3e2af2[_0x26d092],'classes':''}]),_0x2b4a69),[]),_0x46a213);return _0xda9ac5;}['_fixMediaEmbeds'](_0x31b634,_0x11ea20){if(!_0x11ea20['plugins']['has']('MediaEmbedEditing'))return _0x31b634;const _0x70094d=_0x11ea20['plugins']['get']('MediaEmbedEditing');for(const [_0x455f24,_0x2bc50d]of Object['entries'](_0x31b634)){const _0x394a41=document['createElement']('div');_0x394a41['innerHTML']=_0x2bc50d,(_0x394a41['querySelectorAll']('figure.media')['forEach'](_0x5304d7=>{const _0x2e7ae2=_0x5304d7['querySelector']('oembed');if(_0x2e7ae2){const _0x1dc03=_0x2e7ae2['getAttribute']('url');if(_0x1dc03){const _0x38fd21=_0x70094d['registry']['getMediaViewElement'](new _0x27c8e5(_0x11ea20['editing']['view']['document']),_0x1dc03,{'elementName':'','renderForEditingView':!0x0}),_0x369e6=document['createElement']('div');_0x369e6['classList']['add']('ck-media__wrapper'),_0x38fd21['render'](_0x369e6,_0x11ea20['editing']['view']['domConverter']),_0x2e7ae2['replaceWith'](_0x369e6);}}}),_0x31b634[_0x455f24]=_0x394a41['innerHTML']);}return _0x31b634;}['_sortRoots'](_0xad43d5){if(!function(_0x59aa06){return void 0x0!==_0x59aa06['getRootsAttributes'];}(_0xad43d5))return _0xad43d5['model']['document']['getRootNames']();const _0x3476b9=[],_0x5670a9=new Map();for(const _0x594f1e of _0xad43d5['model']['document']['getRootNames']()){const _0x5505f6=_0xad43d5['editing']['view']['getDomRoot'](_0x594f1e)['getClientRects']()['item'](0x0);_0x3476b9['push'](_0x594f1e),_0x5670a9['set'](_0x594f1e,_0x5505f6);}return _0x3476b9['sort']((_0x4f5b3e,_0x3c38d2)=>{const _0x1545a2=_0x5670a9['get'](_0x4f5b3e),_0x440b38=_0x5670a9['get'](_0x3c38d2);return _0x1545a2['y']-_0x440b38['y']||_0x1545a2['x']-_0x440b38['x'];}),_0x3476b9;}}class Ue extends _0x562758{static get['requires'](){return[re,_0x435edb];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6f8b02){super(_0x6f8b02),_0x6f8b02['commands']['add']('previewFinalContent',new te(this['editor'])),_0x6f8b02['config']['define']('trackChanges.preview.renderFunction',(_0xf8d8fc,_0xdf193d)=>{for(const _0x15782b of _0xdf193d)_0xf8d8fc['appendChild'](_0x15782b);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x52aec7,Plugin as _0x574be8,PendingActions as _0x40656f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ada52,ObservableMixin as _0x321e16,uid as _0x51a9d1,priorities as _0x2d0a7c,insertToPriorityArray as _0x1beb96,logWarning as _0x6982ce,getEnvKeystrokeText as _0x5dd2f5,FocusTracker as _0x3b8d86,KeystrokeHandler as _0x2682b1,Collection as _0x3410df}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x46bad3,IconCancel as _0x4dd81b,IconTrackChanges as _0x3fd010}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x165450,View as _0x2b8702,ViewCollection as _0x5c1887,FocusCycler as _0x40b896,UIModel as _0x514f8b,createDropdown as _0x286ed6,SplitButtonView as _0x311daa,addListToDropdown as _0x1dc0b3,MenuBarMenuView as _0x382392,MenuBarMenuListView as _0x15301e,ListSeparatorView as _0x176c44,MenuBarMenuListItemView as _0x3146ec,MenuBarMenuListItemButtonView as _0x17670f,BodyCollection as _0xd3249f,Dialog as _0x3735b9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0xb4a06d,Users as _0x397ab4,DocumentCompare as _0x50406e,fixElementSuggestionRange as _0x4a03da,hashObject as _0x52739c,splitSuggestionMarkerName as _0x1147ea,surroundingMarkersDetector as _0x2eb02b,FOCUS_ANNOTATION_KEYSTROKE as _0x11338b,AriaDescriptionView as _0x30d05e,setupThreadKeyboardNavigation as _0x4bd698,trimHtml as _0x12cec5,UserView as _0x4a00b1,LateFocusButtonView as _0x33e1e9,getDateTimeFormatter as _0x1de815,getAllMarkersDomElementsSorted as _0x399c45,sanitizeEditorConfig as _0x289bf8}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x13ccd3,ModelLiveRange as _0x32abf5,ModelLivePosition as _0x2d485d,ViewDowncastWriter as _0x2e42a8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x50ab66,set as _0x4dd99a,isEqual as _0x12292e,unset as _0x13d9af,omit as Jt}from'es-toolkit/compat';import{Delete as _0x4f183f,Input as _0x1e1a00}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2ee233}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x179724}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x52aec7{['_enabledCommands'];constructor(_0x57fbd8,_0x1e1b90){super(_0x57fbd8),this['_enabledCommands']=_0x1e1b90,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 _0x2598b8 of this['editor']['commands']['commands']())_0x2598b8['affectsData']&&!this['_enabledCommands']['has'](_0x2598b8)&&_0x2598b8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x398bea of this['editor']['commands']['commands']())_0x398bea['affectsData']&&!this['_enabledCommands']['has'](_0x398bea)&&_0x398bea['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x52aec7{['_suggestions'];constructor(_0x57a253,_0x3e66ee){super(_0x57a253),this['_suggestions']=_0x3e66ee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4c667a){const _0x10a05c=this['_suggestions']['get'](_0x4c667a);if(!_0x10a05c)throw new _0x1ada52('track-changes-accept-suggestion-not-found',this);const _0x424557=_0x10a05c['getRanges']();this['editor']['model']['canEditAt'](_0x424557)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x10a05c);}}class x extends _0x52aec7{['_suggestions'];constructor(_0x38ff89,_0x2a3ce9){super(_0x38ff89),this['_suggestions']=_0x2a3ce9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15e405){const _0x4d166d=this['_suggestions']['get'](_0x15e405);if(!_0x4d166d)throw new _0x1ada52('track-changes-discard-suggestion-not-found',this);const _0x5b9327=_0x4d166d['getRanges']();this['editor']['model']['canEditAt'](_0x5b9327)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d166d);}}function ls(_0x18ebd7,_0x340d5e){let _0x343487='';return _0x343487+=_0x18ebd7['split']('*')['map']((_0x3d1bf3,_0x4230f6)=>_0x4230f6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x3d1bf3)+'</span>':rn(_0x3d1bf3))['join'](''),_0x340d5e&&(_0x343487+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x340d5e['value']+'\x22\x20title=\x22'+_0x340d5e['title']+'\x22></span>'),_0x343487;}function rn(_0x143c81){const _0x38f3f7=document['createElement']('span');return _0x38f3f7['innerText']=_0x143c81,_0x38f3f7['innerHTML'];}function ts(_0x20e060){return _0x20e060['sort']((_0x1af843,_0x389a2c)=>'attribute'===_0x1af843['type']&&'attribute'!==_0x389a2c['type']?-0x1:'attribute'!==_0x1af843['type']&&'attribute'===_0x389a2c['type']?0x1:'deletion'==_0x1af843['type']&&'deletion'!=_0x389a2c['type']?-0x1:'deletion'!=_0x1af843['type']&&'deletion'==_0x389a2c['type']?0x1:0x0);}function to(_0x4c5c24,_0x2a8837){let _0x3dc065,_0x76a50a=0x0;const _0x4438eb=[],_0x29ff08=_0x2a8837['schema'];for(;_0x76a50a<_0x4c5c24['length'];){const _0x42adf5=_0x4c5c24[_0x76a50a],_0x12d00f=_0x4c5c24[_0x76a50a+0x1];_0x3dc065||(_0x3dc065=_0x2a8837['createPositionBefore'](_0x42adf5)),cn(_0x2a8837,_0x42adf5,_0x12d00f)||(_0x4438eb['push'](_0x2a8837['createRange'](_0x3dc065,_0x29ff08['isObject'](_0x42adf5)?_0x2a8837['createPositionAfter'](_0x42adf5):_0x2a8837['createPositionAt'](_0x42adf5,'end'))),_0x3dc065=null),_0x76a50a++;}return _0x4438eb;}function cn(_0x68f1a7,_0x33f702,_0x3d3a7b){if(!_0x3d3a7b)return!0x1;const _0x3a4bae=_0x68f1a7['createPositionAfter'](_0x33f702),_0x55fe8e=_0x68f1a7['createPositionBefore'](_0x3d3a7b);return _0x3a4bae['isTouching'](_0x55fe8e);}function rs(_0x3e784a,_0x2574bc,_0x5d1b80){for(;_0x5d1b80['length'];){const _0x4e0a86=_0x5d1b80['splice'](0x0,0x64);_0x3e784a['change'](()=>{for(const _0x3e90d1 of _0x4e0a86)_0x3e90d1['isInContent']&&_0x2574bc['execute'](_0x3e90d1['id']);});}}class M extends _0x52aec7{['_command'];['_suggestions'];constructor(_0x24a146,_0x35c4ab,_0x29d4bc){super(_0x24a146),this['_command']=_0x35c4ab,this['_suggestions']=_0x29d4bc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5cbef6=Array['from'](this['_suggestions']['values']())['some'](_0x4d8ea4=>_0x4d8ea4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5cbef6;}['execute'](){const _0x54f59f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x452517 of _0x54f59f){const _0x4693bf=_0x452517['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4693bf))return;}rs(this['editor']['model'],this['_command'],_0x54f59f);}}class R extends _0x52aec7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11ba79,_0x5bcf7f,_0x8edd67){super(_0x11ba79),this['_command']=_0x5bcf7f,this['_suggestions']=_0x8edd67,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28c885=this['editor']['model']['document']['selection'],_0x3b9fa5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3e85f3,_0x23185d){const _0x410ffe=Array['from'](_0x3e85f3['getRanges']()),_0x150d69=new Set();for(const _0xfd9e31 of _0x23185d)if(_0xfd9e31['isInContent']){for(const _0x5b6214 of _0x410ffe)for(const _0x477bee of _0xfd9e31['getRanges']())(_0x5b6214['isIntersecting'](_0x477bee)||_0x3e85f3['isCollapsed']&&!_0xfd9e31['isMultiRange']&&_0xfd9e31['next']&&_0x477bee['end']['isTouching'](_0x5b6214['start']))&&_0x150d69['add'](_0xfd9e31);}return _0x150d69;}(_0x28c885,_0x3b9fa5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x258321=ts(Array['from'](this['_selectedSuggestions']));for(const _0x56565c of _0x258321){const _0x3a4482=_0x56565c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a4482))return;}rs(this['editor']['model'],this['_command'],_0x258321);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x321e16(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x49c713,_0x49cb44){super(),this['id']=_0x49cb44['id'],this['type']=_0x49cb44['type'],this['subType']=_0x49cb44['subType']||null,this['author']=_0x49cb44['author'],this['creator']=_0x49cb44['creator']||_0x49cb44['author'],this['isExternal']=Boolean(_0x49cb44['attributes']&&_0x49cb44['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x49cb44['originalSuggestionId']||null,this['_model']=_0x49c713,this['_onAccept']=_0x49cb44['onAccept'],this['_onDiscard']=_0x49cb44['onDiscard'],this['_onAttributesChange']=_0x49cb44['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x49cb44['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0xc0c635=this;for(;_0xc0c635['previous'];)_0xc0c635=_0xc0c635['previous'];return _0xc0c635;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4ac304){this['_markerNames']['add'](_0x4ac304);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a462d=>this['_model']['markers']['get'](_0x3a462d))['filter'](_0x334ec2=>_0x334ec2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b2712=>{for(const _0x59a67f of this['getMarkers']())_0x3b2712['removeMarker'](_0x59a67f);}),this['_markerNames']['clear']();}['removeMarker'](_0x2d1afa){this['_model']['change'](_0xfeb225=>{_0xfeb225['removeMarker'](_0x2d1afa);}),this['_markerNames']['delete'](_0x2d1afa);}['addRange'](_0x46d23b){const _0x12957e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x12957e),this['_model']['change'](_0x2eca31=>{_0x2eca31['addMarker'](_0x12957e,{'range':_0x46d23b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x547093){for(const _0x31ccca of this['getRanges']())if(_0x31ccca['isIntersecting'](_0x547093))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4b6677=>_0x4b6677['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x23c894,_0x111bae)=>[..._0x23c894,..._0x111bae['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x597cab=this['getRanges']();if(0x1!=_0x597cab['length'])return null;const _0x284ed5=_0x597cab[0x0],_0x27807c=_0x284ed5['start']['nodeAfter'],_0x14ad0f=_0x284ed5['end']['nodeBefore'];return _0x27807c instanceof _0x13ccd3?_0x27807c!=_0x14ad0f?null:_0x27807c: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 _0x836fb1=[];let _0x1816a4=this['head'];for(;_0x1816a4;)_0x836fb1['push'](_0x1816a4),_0x1816a4=_0x1816a4['next'];return _0x836fb1;}['setAttribute'](_0x101f73,_0xd42769){const _0x4ef95f=_0x50ab66(this['attributes']);_0x4dd99a(_0x4ef95f,_0x101f73,_0xd42769),_0x12292e(_0x4ef95f,this['attributes'])||(this['attributes']=_0x4ef95f,this['_onAttributesChange'](_0x4ef95f));}['removeAttribute'](_0x53286f){const _0xdc0998=_0x50ab66(this['attributes']);_0x13d9af(_0xdc0998,_0x53286f),_0x12292e(_0xdc0998,this['attributes'])||(this['attributes']=_0xdc0998,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 _0x51a9d1()['substr'](0x1,0x5);}}function o(_0x21c115,_0x2d8c3a,_0x372273){const _0x168239=_0x21c115['t'],t=_0x21c115['t'];switch(_0x2d8c3a){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',_0x372273);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x372273);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x372273);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x372273);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x372273);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',_0x372273);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x372273);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',_0x372273);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x372273);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x372273);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x372273);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x372273);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x372273);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x372273);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x372273);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x372273);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x372273);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x372273);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x372273);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x372273);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x372273);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x372273);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x372273);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x372273);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x372273);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'},_0x372273);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x372273);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x372273);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x372273);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x372273);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x372273);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x372273);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x372273);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x372273);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x372273);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x372273);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x372273);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x372273);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'},_0x372273);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x372273);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'},_0x372273);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'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'},_0x372273);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x372273);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'},_0x372273);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x372273);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'},_0x372273);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x372273);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x372273);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x372273);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x372273);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x372273);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'},_0x372273);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x372273);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x168239({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x372273);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x168239({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x372273);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x372273);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'},_0x372273);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'},_0x372273);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'},_0x372273);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2d8c3a;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43c18b,_0x588c0a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43c18b,this['_locale']=_0x588c0a;}['getDescriptions'](_0x4035ab){const _0x548486=[],_0x1a4695=new Set(),_0x44d0f6=new Set();for(let _0x431fef=0x0;_0x431fef<_0x4035ab['length'];_0x431fef++){const _0x605093=_0x4035ab[_0x431fef];if(!_0x605093['isInContent'])continue;const _0x14e7d7=this['_handleCustomCallbackDescription'](_0x605093);if(_0x14e7d7){if(null!=_0x605093['subType']){if(_0x1a4695['has'](_0x605093['subType']))continue;_0x1a4695['add'](_0x605093['subType']);}_0x548486['push'](_0x14e7d7);}else{if('attribute'==_0x605093['type']){const _0x279db3=_0x605093['data']['key'];if(_0x44d0f6['has'](_0x279db3))continue;_0x44d0f6['add'](_0x605093['data']['key']),_0x279db3==m?this['_handleRenameSuggestionDescription'](_0x548486,_0x605093):this['_handleAttributeSuggestionDescription'](_0x548486,_0x605093);continue;}'insertion'!=_0x605093['type']&&'deletion'!=_0x605093['type']||this['_handleInsertRemoveSuggestionDescription'](_0x548486,_0x605093,_0x4035ab[_0x431fef+0x1]);}}return this['_resolveDescriptionItems'](_0x548486);}['registerDescriptionCallback'](_0x50d471){this['_customCallbacks']['push'](_0x50d471);}['registerElementLabel'](_0x56d12b,_0x4bca77,_0x1c5560=_0x2d0a7c['normal']){'function'==typeof _0x56d12b?_0x1beb96(this['_itemLabelsCallbacks'],{'matchingCallback':_0x56d12b,'label':_0x4bca77,'priority':_0x1c5560}):this['_itemLabels']['set'](_0x56d12b,_0x4bca77);}['registerAttributeLabel'](_0x351df0,_0x514360){this['_attributeLabels']['set'](_0x351df0,_0x514360);}['getItemLabel'](_0x236013,_0x19c937=0x1){let _0x5748a1;for(const _0x2950a5 of this['_itemLabelsCallbacks'])if(_0x2950a5['matchingCallback'](_0x236013)){_0x5748a1=_0x2950a5['label'];break;}return _0x5748a1||(_0x5748a1=this['_itemLabels']['get'](_0x236013['name'])),_0x5748a1?_0x5748a1(_0x19c937):0x1!==_0x19c937?_0x19c937+'\x20'+_0x236013['name']+'s':''+_0x236013['name'];}['_addDescriptionItems'](_0x49f075,_0x3c294e){const _0x142136=_0x3c294e['getFirstRange']()['getWalker'](),_0x5bfba8='insertion'==_0x3c294e['type']?'add':'remove';for(const _0x4fdcef of _0x142136){const _0x48be8f=_0x4fdcef['item'],_0x3f262f=_0x49f075[_0x49f075['length']-0x1];if(_0x48be8f['is']('$textProxy'))_0x3f262f&&_0x3f262f['type']['indexOf']('Container')>-0x1&&_0x49f075['pop'](),_0x3f262f&&'text'==_0x3f262f['type']?_0x3f262f[_0x5bfba8]+=_0x48be8f['data']:_0x49f075['push']({'type':'text','add':'add'==_0x5bfba8?_0x48be8f['data']:'','remove':'remove'==_0x5bfba8?_0x48be8f['data']:''});else{if(this['_schema']['isObject'](_0x48be8f)){const _0x44d0c7=_0x48be8f;if(_0x3f262f&&_0x3f262f['type']['indexOf']('Container')>-0x1&&_0x49f075['pop'](),'elementEnd'==_0x4fdcef['type'])continue;_0x3f262f&&_0x3f262f['type']==_0x5bfba8+'Object'&&_0x3f262f['element']['name']==_0x44d0c7['name']?_0x3f262f['quantity']++:_0x49f075['push']({'type':_0x5bfba8+'Object','element':_0x44d0c7,'quantity':0x1}),_0x142136['skip'](_0x39c620=>!('elementEnd'==_0x39c620['type']&&_0x39c620['item']==_0x48be8f));}else{if(this['_schema']['checkChild'](_0x48be8f,'$text')||_0x48be8f['is']('element','softBreak')){const _0x300479=_0x48be8f;if('add'==_0x5bfba8&&'elementStart'==_0x4fdcef['type']||'remove'==_0x5bfba8&&'elementEnd'==_0x4fdcef['type'])continue;if(_0x3f262f&&-0x1==_0x3f262f['type']['indexOf']('Container')){'text'==_0x3f262f['type']&&(_0x3f262f[_0x5bfba8]+='\x0a');continue;}let _0x37378e;if(_0x37378e='add'==_0x5bfba8?_0x300479['nextSibling']&&!this['_schema']['isObject'](_0x300479['nextSibling'])?_0x300479['nextSibling']:null:_0x300479['previousSibling']&&!this['_schema']['isObject'](_0x300479['previousSibling'])?_0x300479['previousSibling']:null,_0x300479['isEmpty']||_0x37378e&&_0x37378e['isEmpty']){const _0x2a56c0=_0x37378e&&_0x37378e['isEmpty']?_0x37378e:_0x300479;_0x3f262f&&_0x3f262f['type']==_0x5bfba8+'EmptyContainer'&&_0x3f262f['element']['name']==_0x2a56c0['name']?_0x3f262f['quantity']++:_0x49f075['push']({'type':_0x5bfba8+'EmptyContainer','element':_0x2a56c0,'quantity':0x1});}else _0x49f075['push']({'type':_0x5bfba8+'Container','element':_0x300479});}}}}}['_resolveDescriptionItems'](_0x122973){const _0x218535=this['_locale'],_0xe9a57f=[],_0x32ab9d=[],_0x2a9d71=[];for(const _0x1b2589 of _0x122973)switch(_0x1b2589['type']){case'text':if(_0x1b2589['add']=_0x1b2589['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1b2589['remove']=_0x1b2589['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1b2589['add']&&''!=_0x1b2589['remove']){_0xe9a57f['push']({'type':'replace','content':o(_0x218535,'REPLACE_TEXT',['\x22'+_0x1b2589['remove']+'\x22','\x22'+_0x1b2589['add']+'\x22'])});continue;}if(null!=_0x1b2589['add']['match'](/^ +$/)){_0xe9a57f['push']({'type':'insertion','content':o(_0x218535,'*Insert:*\x20%0',o(_0x218535,'ELEMENT_SPACE',_0x1b2589['add']['length']))});continue;}if(null!=_0x1b2589['remove']['match'](/^ +$/)){_0xe9a57f['push']({'type':'deletion','content':o(_0x218535,'*Remove:*\x20%0',o(_0x218535,'ELEMENT_SPACE',_0x1b2589['remove']['length']))});continue;}if(''!=_0x1b2589['add']){_0xe9a57f['push']({'type':'insertion','content':o(_0x218535,'*Insert:*\x20%0','\x22'+_0x1b2589['add']+'\x22')});continue;}_0xe9a57f['push']({'type':'deletion','content':o(_0x218535,'*Remove:*\x20%0','\x22'+_0x1b2589['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe9a57f['push']({'type':'insertion','content':o(_0x218535,'*Insert:*\x20%0',this['getItemLabel'](_0x1b2589['element'],_0x1b2589['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe9a57f['push']({'type':'deletion','content':o(_0x218535,'*Remove:*\x20%0',this['getItemLabel'](_0x1b2589['element'],_0x1b2589['quantity']))});continue;case'addContainer':_0xe9a57f['push']({'type':'insertion','content':o(_0x218535,'*Split:*\x20%0',this['getItemLabel'](_0x1b2589['element'],_0x1b2589['quantity']))});continue;case'removeContainer':_0xe9a57f['push']({'type':'deletion','content':o(_0x218535,'*Merge:*\x20%0',this['getItemLabel'](_0x1b2589['element'],_0x1b2589['quantity']))});continue;case'addFormat':_0x32ab9d['push'](_0x1b2589['key']);continue;case'removeFormat':_0x2a9d71['push'](_0x1b2589['key']);continue;default:_0xe9a57f['push'](_0x1b2589);}if(_0x32ab9d['length']){const _0x17e929=_0x32ab9d['map'](_0x52572f=>this['_attributeLabels']['has'](_0x52572f)?this['_attributeLabels']['get'](_0x52572f):_0x52572f)['join'](',\x20');_0xe9a57f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x17e929)});}if(_0x2a9d71['length']){const _0x51815d=_0x2a9d71['map'](_0x2aa2d9=>this['_attributeLabels']['has'](_0x2aa2d9)?this['_attributeLabels']['get'](_0x2aa2d9):_0x2aa2d9)['join'](',\x20');_0xe9a57f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x51815d)});}return _0xe9a57f;}['_handleCustomCallbackDescription'](_0x5bf1b7){for(const _0x139d54 of this['_customCallbacks']){const _0x39e1a7=_0x139d54(_0x5bf1b7);if(_0x39e1a7&&'type'in _0x39e1a7)return _0x39e1a7;}}['_handleAttributeSuggestionDescription'](_0x398885,_0x2ce009){const _0x18136c=_0x2ce009['data'],_0x8f7a96=void 0x0===_0x18136c['newValue']?'removeFormat':'addFormat';_0x398885['push']({'type':_0x8f7a96,'key':_0x18136c['key']});}['_handleRenameSuggestionDescription'](_0x149406,_0x447ec2){_0x149406['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x447ec2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xd2c0d1,_0x3ba62f,_0x53b25a){if(this['_addDescriptionItems'](_0xd2c0d1,_0x3ba62f),_0x53b25a&&_0x53b25a['getFirstRange']()&&!_0x3ba62f['getFirstRange']()['end']['isEqual'](_0x53b25a['getFirstRange']()['start'])){const _0x379e3b=_0xd2c0d1[_0xd2c0d1['length']-0x1],_0x19e07d='insertion'==_0x3ba62f['type']?'add':'remove';_0x379e3b&&'text'==_0x379e3b['type']&&(_0x379e3b[_0x19e07d]+='\x0a');}}}class U extends _0x574be8{['afterInit'](){const _0x4e83a2=this['editor'],_0x38ce9f=_0x4e83a2['plugins']['get']('TrackChangesEditing');_0x4e83a2['commands']['get']('showAIAssistant')&&_0x38ce9f['enableCommand']('showAIAssistant');}}class V extends _0x574be8{['afterInit'](){const _0x499db9=this['editor'],_0x534287=_0x499db9['plugins']['get']('TrackChangesEditing');_0x499db9['commands']['get']('toggleAi')&&_0x534287['enableCommand']('toggleAi');}}class F extends _0x574be8{['afterInit'](){const _0xff2cec=this['editor'],_0x174789=_0xff2cec['plugins']['get']('TrackChangesEditing');_0xff2cec['commands']['get']('aiQuickAction')&&_0x174789['enableCommand']('aiQuickAction');}}class G extends _0x574be8{['afterInit'](){const _0x4c41ea=this['editor'],_0xe327fe=_0x4c41ea['locale'];if(!_0x4c41ea['plugins']['has']('AlignmentEditing'))return;const _0x306cd7=_0x4c41ea['plugins']['get']('TrackChangesEditing');_0x306cd7['enableDefaultAttributesIntegration']('alignment'),_0x306cd7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xe327fe,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a98fe=this['editor'],_0x58e46d=_0x4a98fe['locale'];_0x4a98fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e03f2=>{if('formatBlock'!=_0x5e03f2['type'])return;const {data:_0x17fd8e}=_0x5e03f2;if(_0x17fd8e&&'alignment'==_0x17fd8e['commandName']){const _0x55f68a=_0x17fd8e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x58e46d,'*Format:*\x20%0',function(_0x427a4c){switch(_0x427a4c){case'left':return o(_0x58e46d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x58e46d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x58e46d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x58e46d,'FORMAT_JUSTIFY_TEXT');}}(_0x55f68a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x574be8{['afterInit'](){const _0x2cf44b=this['editor'],_0x220bb5=_0x2cf44b['plugins']['get']('TrackChangesEditing'),_0x140b61=_0x2cf44b['locale'];for(const _0xaa5c6c of ti){if(!_0x2cf44b['plugins']['has'](_0xaa5c6c))continue;const _0x113799=_0xaa5c6c['slice'](0x0,-0x7)['toLowerCase'](),_0x1723f0='FORMAT_'+_0x113799['toUpperCase']();_0x220bb5['enableDefaultAttributesIntegration'](_0x113799),_0x220bb5['descriptionFactory']['registerAttributeLabel'](_0x113799,o(_0x140b61,_0x1723f0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e8f0c=this['editor'],_0x5c05b3=_0x1e8f0c['locale'],_0x21802a=_0x1e8f0c['plugins']['get']('TrackChangesEditing');function _0x542c6a(_0x137f80,_0x4c2b38){_0x21802a['descriptionFactory']['registerDescriptionCallback'](_0x4f88cc=>{if('formatInline'!=_0x4f88cc['type'])return;const {data:_0x124e9c}=_0x4f88cc;return _0x124e9c&&_0x124e9c['commandName']===_0x137f80?_0x124e9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c05b3,'*Format:*\x20%0',_0x4c2b38)}:{'type':'format','content':o(_0x5c05b3,'*Remove\x20format:*\x20%0',_0x4c2b38)}:void 0x0;});}_0x542c6a('bold',o(_0x5c05b3,'FORMAT_BOLD')),_0x542c6a('italic',o(_0x5c05b3,'FORMAT_ITALIC')),_0x542c6a('underline',o(_0x5c05b3,'FORMAT_UNDERLINE')),_0x542c6a('code',o(_0x5c05b3,'FORMAT_CODE')),_0x542c6a('strikethrough',o(_0x5c05b3,'FORMAT_STRIKETHROUGH')),_0x542c6a('subscript',o(_0x5c05b3,'FORMAT_SUBSCRIPT')),_0x542c6a('superscript',o(_0x5c05b3,'FORMAT_SUPERSCRIPT'));}}class J extends _0x574be8{['afterInit'](){const _0x11f331=this['editor'],_0x4edb76=_0x11f331['locale'];if(!_0x11f331['plugins']['has']('BlockQuoteEditing'))return;const _0x36db1e=_0x11f331['plugins']['get']('TrackChangesEditing'),_0x15a084=this['editor']['commands']['get']('blockQuote');_0x36db1e['enableCommand']('blockQuote',(_0x43b65a,_0x4c4aef={})=>{const _0x5c0d80=this['editor']['model']['document']['selection'],_0x27cd62=_0x4c4aef&&void 0x0!==_0x4c4aef['forceValue']?_0x4c4aef['forceValue']:!_0x15a084['value'];let _0x1ee44a=[];if(_0x27cd62){const _0x5612db=Array['from'](_0x5c0d80['getSelectedBlocks']())['filter'](_0x47829d=>oo(_0x47829d)||function(_0x4ee79b,_0x555d08){const _0x3764a4=_0x555d08['checkChild'](_0x4ee79b['parent'],'blockQuote'),_0x26330b=_0x555d08['checkChild'](['$root','blockQuote'],_0x4ee79b);return _0x3764a4&&_0x26330b;}(_0x47829d,this['editor']['model']['schema']));_0x1ee44a=to(_0x5612db,_0x11f331['model']);}else{const _0x1953c3=Array['from'](_0x5c0d80['getSelectedBlocks']())['filter'](_0x1a19d4=>oo(_0x1a19d4));_0x1ee44a=to(_0x1953c3,_0x11f331['model']);}_0x11f331['model']['change'](()=>{for(const _0x47faf2 of _0x1ee44a)_0x36db1e['markBlockFormat'](_0x47faf2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x27cd62}]});});}),_0x36db1e['descriptionFactory']['registerDescriptionCallback'](_0x212229=>{const {data:_0x454bdf}=_0x212229;if(_0x454bdf&&'blockQuote'==_0x454bdf['commandName']){const _0x1f360f=o(_0x4edb76,'ELEMENT_BLOCK_QUOTE');return _0x454bdf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4edb76,'*Set\x20format:*\x20%0',_0x1f360f)}:{'type':'format','content':o(_0x4edb76,'*Remove\x20format:*\x20%0',_0x1f360f)};}});}}function oo(_0x23800d){return'blockQuote'==_0x23800d['parent']['name'];}class q extends _0x574be8{['afterInit'](){const _0x3dc059=this['editor'],_0x401795=_0x3dc059['locale'],_0x581549=_0x3dc059['plugins']['get']('TrackChangesEditing');_0x3dc059['plugins']['has']('BookmarkEditing')&&(_0x581549['enableCommand']('insertBookmark'),_0x581549['enableDefaultAttributesIntegration']('updateBookmark'),_0x581549['descriptionFactory']['registerDescriptionCallback'](_0x557fbd=>{if('insertion'!=_0x557fbd['type']&&'deletion'!=_0x557fbd['type']&&'attribute'!=_0x557fbd['type'])return;const _0x35d8da=_0x557fbd['getContainedElement']();if(null==_0x35d8da)return;if(!_0x35d8da['is']('element','bookmark'))return;const _0x4ae41c=_0x35d8da['getAttribute']('bookmarkId');if('insertion'==_0x557fbd['type'])return{'type':'insertion','content':o(_0x401795,'*Insert:*\x20%0','\x22'+_0x4ae41c+'\x22\x20'+o(_0x401795,'ELEMENT_BOOKMARK'))};if('deletion'==_0x557fbd['type'])return{'type':'deletion','content':o(_0x401795,'*Remove:*\x20%0','\x22'+_0x4ae41c+'\x22\x20'+o(_0x401795,'ELEMENT_BOOKMARK'))};const {data:_0x3ff28b}=_0x557fbd;if(!_0x3ff28b||'bookmarkId'!=_0x3ff28b['key'])return;return{'type':'format','content':o(_0x401795,'*Set\x20bookmark:*\x20%0','\x22'+_0x3ff28b['newValue']+'\x22')};}));}}class z extends _0x574be8{['afterInit'](){const _0x1dbe3f=this['editor'];_0x1dbe3f['plugins']['has']('CaseChange')&&(_0x1dbe3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1dbe3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1dbe3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x574be8{['afterInit'](){const _0x4696a7=this['editor'];_0x4696a7['commands']['get']('ckbox')&&_0x4696a7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x574be8{['afterInit'](){const _0x6f7d1b=this['editor'];if(!_0x6f7d1b['plugins']['has']('CodeBlock'))return;const _0x2466cb=_0x6f7d1b['plugins']['get']('TrackChangesEditing'),_0x1ee148=_0x6f7d1b['locale'],_0x334fc2=_0x6f7d1b['config']['get']('codeBlock')['languages'],_0x3c0b63=_0x6f7d1b['commands']['get']('codeBlock');_0x2466cb['enableCommand']('indentCodeBlock'),_0x2466cb['enableCommand']('outdentCodeBlock'),_0x2466cb['enableCommand']('codeBlock',(_0x24b9bd,_0x54bc96={})=>{const _0x371b48=_0x6f7d1b['model'],_0x423db2=_0x6f7d1b['model']['document']['selection'],_0x12e319=_0x54bc96&&void 0x0!==_0x54bc96['forceValue']?_0x54bc96['forceValue']:!_0x3c0b63['value'];let _0x1d6628;_0x54bc96['language']||(_0x54bc96['language']=_0x334fc2[0x0]['language']),_0x1d6628=_0x12e319?Array['from'](_0x423db2['getSelectedBlocks']())['filter'](_0x3b673f=>co(_0x3b673f)||function(_0x1de959,_0x1be5d7){if(_0x1de959['is']('rootElement')||_0x1be5d7['isLimit'](_0x1de959))return!0x1;return _0x1be5d7['checkChild'](_0x1de959['parent'],'codeBlock');}(_0x3b673f,_0x371b48['schema'])):Array['from'](_0x423db2['getSelectedBlocks']())['filter'](_0x2c921=>co(_0x2c921));const _0x7de48=to(_0x1d6628,_0x371b48);_0x371b48['change'](()=>{for(const _0x2ee96b of _0x7de48)_0x2466cb['markBlockFormat'](_0x2ee96b,{'commandName':'codeBlock','commandParams':[{..._0x54bc96,'forceValue':_0x12e319}],'formatGroupId':'blockName'});});}),(_0x2466cb['descriptionFactory']['registerElementLabel']('codeBlock',_0x4c20e0=>o(_0x1ee148,'ELEMENT_CODE_BLOCK',_0x4c20e0)),_0x2466cb['descriptionFactory']['registerDescriptionCallback'](_0x420b76=>{if('formatBlock'!=_0x420b76['type'])return;const _0x28e983=_0x1ee148['t'],{data:_0x1067f2}=_0x420b76;if(!_0x1067f2||'codeBlock'!=_0x1067f2['commandName'])return;const _0x84316a=_0x1067f2['commandParams'][0x0]['language'],_0xe702ed=_0x28e983(_0x334fc2['find'](_0x523c17=>_0x523c17['language']===_0x84316a)['label'])['toLowerCase']();return _0x1067f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ee148,'*Set\x20format:*\x20%0',o(_0x1ee148,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe702ed+')')}:{'type':'format','content':o(_0x1ee148,'*Remove\x20format:*\x20%0',o(_0x1ee148,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x11b164){return'codeBlock'==_0x11b164['name'];}class H extends _0x574be8{['afterInit'](){const _0x23bf32=this['editor'];if(!_0x23bf32['plugins']['has']('CommentsEditing'))return;_0x23bf32['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x574be8{static get['requires'](){return[_0x4f183f];}['init'](){const _0x40e1c8=this['editor'],_0x3a0f18=_0x40e1c8['plugins']['get']('TrackChangesEditing');_0x3a0f18['enableCommand']('delete');const _0x1a56af=_0x40e1c8['commands']['get']('deleteForward');_0x3a0f18['enableCommand']('deleteForward',(_0x377234,_0x22139e={})=>{const _0x10a50f=_0x40e1c8['model']['createSelection'](_0x40e1c8['model']['document']['selection']);_0x10a50f['isCollapsed']&&_0x40e1c8['model']['modifySelection'](_0x10a50f,{'direction':'forward','unit':_0x22139e['unit']});const _0x5e426a=_0x10a50f['getFirstRange'](),_0x19bffd=_0x32abf5['fromRange'](_0x5e426a);let _0x3528f7;_0x377234(_0x22139e),_0x3528f7='$graveyard'==_0x19bffd['root']['rootName']?_0x40e1c8['model']['createRange'](_0x5e426a['start']):_0x40e1c8['model']['createRange'](_0x19bffd['start'],_0x19bffd['end']),_0x19bffd['detach'](),_0x40e1c8['model']['enqueueChange'](_0x1a56af['buffer']['batch'],_0x2da8bc=>{_0x1a56af['buffer']['lock'](),_0x2da8bc['setSelection'](_0x2da8bc['createRange'](_0x3528f7['end'])),_0x1a56af['buffer']['unlock']();});});}}class X extends _0x574be8{['afterInit'](){const _0x13e1fb=this['editor'];if(!_0x13e1fb['plugins']['has']('ListEditing'))return;const _0x8fc6ff=_0x13e1fb['locale'],_0x351864=_0x13e1fb['plugins']['get']('TrackChangesEditing'),_0x346c41=_0x13e1fb['plugins']['has']('TodoListEditing'),_0x4326a7=!!_0x13e1fb['config']['get']('list.multiBlock');function _0x3d41b1(_0x217cac){return{'type':'format','content':''+o(_0x8fc6ff,'*Set\x20format:*\x20%0',_0x217cac)};}function _0x3c6083(_0x6fd85c){return{'type':'format','content':''+o(_0x8fc6ff,'*Remove\x20format:*\x20%0',_0x6fd85c)};}_0x351864['enableDefaultAttributesIntegration']('numberedList'),_0x351864['enableDefaultAttributesIntegration']('bulletedList'),_0x351864['enableDefaultAttributesIntegration']('customNumberedList'),_0x351864['enableDefaultAttributesIntegration']('customBulletedList'),_0x351864['enableDefaultAttributesIntegration']('indentList'),_0x351864['enableDefaultAttributesIntegration']('outdentList'),_0x351864['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x351864['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4326a7&&(_0x351864['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x351864['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x346c41&&(_0x351864['enableDefaultAttributesIntegration']('todoList'),_0x351864['enableDefaultAttributesIntegration']('checkTodoList'),_0x351864['descriptionFactory']['registerDescriptionCallback'](_0x41d391=>{const {data:_0xc024a2}=_0x41d391;if(_0xc024a2&&'todoListChecked'==_0xc024a2['key'])return{'type':'format','content':_0xc024a2['newValue']?o(_0x8fc6ff,'*Check\x20item*'):o(_0x8fc6ff,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x551e4b=>{if(_0x551e4b['batch']['isUndo'])return!0x1;let _0x48bc09=!0x1;const _0x159ff4=_0x351864['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fe472=>'todoListChecked'===_0x351864['_getAttributeKey'](_0x1fe472));for(const _0x2afdb2 of _0x159ff4){'todo'!=_0x2afdb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x351864['_findSuggestions'](_0x2afdb2['getFirstRange'](),'attribute')['find'](_0x4fca28=>'listType'===_0x351864['_getAttributeKey'](_0x4fca28['suggestion']))||(_0x551e4b['removeMarker'](_0x2afdb2['getFirstMarker']()),_0x48bc09=!0x0));}return _0x48bc09;})),_0x351864['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x8fc6ff,'FORMAT_INDENT'));const _0x2f9c94={'type':'format','content':''};_0x351864['descriptionFactory']['registerDescriptionCallback'](_0x185b6c=>{const {data:_0xd8ece1}=_0x185b6c;if(!_0xd8ece1||'listType'!=_0xd8ece1['key'])return;let _0x144901=_0x185b6c['head'];for(;_0x144901;){if(_0x144901['data']&&(('listStyle'==_0x144901['data']['key']||'listMarkerStyle'==_0x144901['data']['key'])&&(_0x144901['data']['newValue']&&'default'!=_0x144901['data']['newValue']||'default'!=_0x144901['data']['oldValue']&&!_0xd8ece1['newValue'])||!_0x4326a7&&_0x144901['data']['key']==m))return _0x2f9c94;_0x144901=_0x144901['next'];}if(null==_0xd8ece1['newValue'])switch(_0xd8ece1['oldValue']){case'bulleted':return _0x3c6083(o(_0x8fc6ff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c6083(o(_0x8fc6ff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c6083(o(_0x8fc6ff,'ELEMENT_TODO_LIST'));}switch(_0xd8ece1['newValue']){case'bulleted':return _0x3d41b1(o(_0x8fc6ff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d41b1(o(_0x8fc6ff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d41b1(o(_0x8fc6ff,'ELEMENT_TODO_LIST'));}}),_0x351864['descriptionFactory']['registerDescriptionCallback'](_0x5426d7=>{const {data:_0x4b978f}=_0x5426d7;if(_0x4b978f&&'listIndent'==_0x4b978f['key'])return null==_0x4b978f['newValue']||null==_0x4b978f['oldValue']&&0x0==_0x4b978f['newValue']?_0x2f9c94:void 0x0;}),_0x351864['descriptionFactory']['registerDescriptionCallback'](_0x11e231=>{if('attribute'!=_0x11e231['type'])return;const {data:_0xb00357}=_0x11e231;if(!_0xb00357||'listItemId'!=_0xb00357['key'])return;const _0x1ff8e1=Te(_0x11e231);return'newValue'==_0x1ff8e1?{'type':'format','content':o(_0x8fc6ff,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ff8e1?{'type':'format','content':o(_0x8fc6ff,'*Split:*\x20list\x20item')}:_0x2f9c94;}),_0x13e1fb['model']['document']['registerPostFixer'](_0x9cb6d9=>this['listItemIdFixer'](_0x9cb6d9)),_0x13e1fb['model']['document']['registerPostFixer'](_0x12a4c1=>this['noTrackChangesFixer'](_0x12a4c1)),_0x13e1fb['model']['document']['on']('change:data',(_0xd43420,_0x3b35b7)=>{if(_0x3b35b7['isUndo']||!_0x3b35b7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x40ed35){if(_0x40ed35['batch']['isUndo']||!_0x40ed35['batch']['isLocal'])return!0x1;let _0x30b9c6=!0x1;const _0x1e2c19=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54503a=>_0x54503a['data']&&'listItemId'==_0x54503a['data']['key'])['filter'](_0x1fc821=>_0x1fc821['data']['newValue']&&_0x1fc821['data']['oldValue']);for(const _0x2222fe of _0x1e2c19)Te(_0x2222fe)||(_0x40ed35['removeMarker'](_0x2222fe['getFirstMarker']()),_0x30b9c6=!0x0);return _0x30b9c6;}['noTrackChangesFixer'](_0x2ed073){if(_0x2ed073['batch']['isUndo']||!_0x2ed073['batch']['isLocal'])return!0x1;const _0xb93aa3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb93aa3['trackChangesCommand']['value'])return!0x1;let _0x476720=!0x1;const _0x540c13=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1cc9e6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xddbe24=>'attribute'==_0xddbe24['type'])['filter'](_0x4fdc86=>_0x540c13['includes'](_0x4fdc86['attributeKey']));if(0x0==_0x1cc9e6['length'])return _0x476720;for(const _0x2a9e1c of _0x1cc9e6){const _0x5c39f8=_0xb93aa3['_findSuggestions'](_0x2a9e1c['range'],'attribute')['filter'](_0x37affd=>!_0x37affd['meta']['isNextTo'])['map'](_0x26149e=>_0x26149e['suggestion'])['filter'](_0x31782d=>{const _0x3308ec=_0xb93aa3['_getAttributeKey'](_0x31782d);return _0x540c13['includes'](_0x3308ec);});if(_0x5c39f8['length']){for(const _0x3d6167 of _0x5c39f8)_0x2ed073['removeMarker'](_0x3d6167['getFirstMarker']());_0x476720=!0x0;}}return _0x476720;}['assureChains'](){const _0x53fea3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d199=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3ad391;const _0x4d722f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ce128=>{if(_0x3ce128['data']['oldRange']||!_0x3ce128['data']['newRange'])return null;if(!_0x3ce128['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5d8dae}=_0x53fea3['_splitMarkerName'](_0x3ce128['name']);if(!_0x53fea3['hasSuggestion'](_0x5d8dae))return null;const _0x3fe1f8=_0x53fea3['getSuggestion'](_0x5d8dae);return _0x21d199['includes'](_0x3fe1f8['data']['key']);})['map'](_0x4f6430=>{const {id:_0x156621}=_0x53fea3['_splitMarkerName'](_0x4f6430['name']),_0x38d6c1=_0x53fea3['getSuggestion'](_0x156621);return _0x3ad391=_0x38d6c1['attributes']['groupId'],_0x38d6c1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4d722f['size'])return;const _0x3de871=_0x53fea3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x114d7b=>'attribute'==_0x114d7b['type']&&_0x114d7b['data']&&_0x21d199['includes'](_0x114d7b['data']['key'])&&_0x114d7b['attributes']['groupId']!=_0x3ad391)['map'](_0x524cf3=>({'listItem':_0x524cf3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x524cf3['attributes']['groupId']})),_0x5b564a=new Set();for(const {groupId:_0x3c98de,listItem:_0x342939}of _0x3de871)_0x4d722f['has'](_0x342939)&&_0x5b564a['add'](_0x3c98de);for(const _0x154063 of _0x53fea3['getSuggestions']())_0x5b564a['has'](_0x154063['attributes']['groupId'])&&_0x154063['setAttribute']('groupId',_0x3ad391);}['_supportLegacySuggestions'](){const _0x539e8b=this['editor'],_0x29d60=_0x539e8b['locale'],_0x3421bb=_0x539e8b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3421bb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2bfc7c,_0x7417d2){const _0x375dd9=[];for(let _0x406c7f of _0x2bfc7c)_0x406c7f['start']['nodeAfter']===_0x406c7f['end']['parent']&&(_0x406c7f=_0x539e8b['model']['createRange'](_0x539e8b['model']['createPositionAt'](_0x406c7f['start']['nodeAfter'],0x0))),_0x375dd9['push'](_0x406c7f);_0x539e8b['model']['change'](_0x554930=>{const _0x1f152b=_0x539e8b['model']['document']['selection'],_0x5ea1f4=Array['from'](_0x1f152b['getRanges']())['map'](_0x9b792a=>_0x32abf5['fromRange'](_0x9b792a));_0x554930['setSelection'](_0x375dd9),_0x539e8b['commands']['get'](_0x7417d2['commandName'])['refresh'](),_0x7417d2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x539e8b['execute'](_0x7417d2['commandName'],..._0x7417d2['commandParams']),_0x554930['setSelection'](_0x5ea1f4);for(const _0x533910 of _0x5ea1f4)_0x533910['detach']();});}),_0x3421bb['descriptionFactory']['registerElementLabel'](function(_0x1689b3){const _0x41debd=!_0x539e8b['model']['schema']['isObject'](_0x1689b3),_0x3cba9b=_0x1689b3['previousSibling'],_0x51bdf0=_0x1689b3['nextSibling'],_0x4c23fd=_0x1689b3['getAttribute']('listItemId'),_0x1fafe2=!_0x3cba9b||_0x3cba9b['getAttribute']('listItemId')!==_0x4c23fd,_0x2a2f72=!_0x51bdf0||_0x51bdf0['getAttribute']('listItemId')!==_0x4c23fd;return _0x41debd&&Boolean(_0x4c23fd)&&_0x1fafe2&&_0x2a2f72;},_0x4660c8=>o(_0x29d60,'ELEMENT_LIST_ITEM',_0x4660c8));}['_registerLegacyDescription'](){const _0x13f1d2=this['editor'],_0x1880ae=_0x13f1d2['locale'];function _0xe5ec05(_0x12544b){const _0x58be90=_0x13f1d2['commands']['get']('bulletedList')['value'],_0x5e6c33=_0x13f1d2['commands']['get']('numberedList')['value'];return'numberedList'===_0x12544b?_0x58be90:_0x5e6c33;}_0x13f1d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x466de4){if('formatBlock'!=_0x466de4['type'])return;const {data:_0x378fa3}=_0x466de4;if(!_0x378fa3)return;let _0x2c1d5d,_0x4a9bae,_0x178276,_0x406f39;switch(_0x378fa3['commandName']){case'bulletedList':_0x178276=_0x378fa3['commandParams'][0x0]['forceValue'],_0x406f39=_0xe5ec05(_0x378fa3['commandName']),_0x2c1d5d=_0x178276?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x406f39&&_0x13f1d2['config']['get']('list.multiBlock')||(_0x2c1d5d='*Change\x20to:*\x20%0'),_0x4a9bae={'type':'format','content':o(_0x1880ae,_0x2c1d5d,o(_0x1880ae,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x178276=_0x378fa3['commandParams'][0x0]['forceValue'],_0x406f39=_0xe5ec05(_0x378fa3['commandName']),_0x2c1d5d=_0x178276?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x406f39&&_0x13f1d2['config']['get']('list.multiBlock')||(_0x2c1d5d='*Change\x20to:*\x20%0'),_0x4a9bae={'type':'format','content':o(_0x1880ae,_0x2c1d5d,o(_0x1880ae,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2c1d5d='*Indent:*\x20%0',_0x4a9bae={'type':'format','content':o(_0x1880ae,_0x2c1d5d,o(_0x1880ae,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2c1d5d=function(_0x337589){const _0x353dc8=_0x337589['getFirstRange']();let _0x417f82=_0x353dc8['start']['nodeAfter'];for(;_0x417f82&&_0x353dc8['containsItem'](_0x417f82);){if(_0x417f82['getAttribute']('listIndent')>0x0)return!0x1;_0x417f82=_0x417f82['nextSibling'];}return!0x0;}(_0x466de4)?o(_0x1880ae,'*Format:*\x20remove\x20from\x20%0',o(_0x1880ae,function(_0x4102f4){return'ELEMENT_'+_0x4102f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x466de4))):o(_0x1880ae,'*Outdent:*\x20%0',o(_0x1880ae,'ELEMENT_LIST_ITEM')),_0x4a9bae={'type':'format','content':_0x2c1d5d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x378fa3['multipleBlocks']&&(_0x2c1d5d='*Merge:*\x20%0',_0x4a9bae={'type':'deletion','content':o(_0x1880ae,_0x2c1d5d,o(_0x1880ae,'ELEMENT_LIST_ITEM'))});}return _0x4a9bae;});}}function Te(_0x434be1){let _0x10dcad=_0x434be1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10dcad;){const _0x895993=_0x10dcad['getAttribute']('listItemId');if(!_0x895993)return!0x1;if(_0x895993==_0x434be1['data']['newValue'])return'newValue';if(_0x895993==_0x434be1['data']['oldValue'])return'oldValue';_0x10dcad=_0x10dcad['previousSibling'];}return!0x1;}class Y extends _0x574be8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x528826=this['editor']['config']['get']('list.properties'),_0x4190ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x528826['styles']&&_0x4190ad['enableDefaultAttributesIntegration']('listStyle'),_0x528826['reversed']&&_0x4190ad['enableDefaultAttributesIntegration']('listReversed'),_0x528826['startIndex']&&_0x4190ad['enableDefaultAttributesIntegration']('listStart');const _0x17ced6={'type':'format','content':''};_0x4190ad['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57edb7=this['editor']['locale'];_0x4190ad['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x57edb7,'FORMAT_LIST_REVERSED')),_0x4190ad['descriptionFactory']['registerDescriptionCallback'](_0xf100f=>{const {data:_0x5424a5}=_0xf100f;if(_0x5424a5&&'listReversed'==_0x5424a5['key'])return null==_0x5424a5['newValue']||0x0==_0x5424a5['newValue']&&null==_0x5424a5['oldValue']?_0x17ced6:void 0x0;}),_0x4190ad['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x57edb7,'FORMAT_LIST_START')),_0x4190ad['descriptionFactory']['registerDescriptionCallback'](_0x535d89=>{const {data:_0x214205}=_0x535d89;if(_0x214205&&'listStart'==_0x214205['key'])return null==_0x214205['newValue']||0x1==_0x214205['newValue']&&null==_0x214205['oldValue']?_0x17ced6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x24b8f0=>{if(_0x24b8f0['batch']['isUndo'])return!0x1;let _0x3a189d=!0x1;const _0x297b19=_0x4190ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc4942=>{const _0x5ea69d=_0x4190ad['_getAttributeKey'](_0xc4942);return'listStart'==_0x5ea69d||'listReversed'==_0x5ea69d;});for(const _0xe0aba3 of _0x297b19){const _0x45715a=_0xe0aba3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45715a||'customNumbered'==_0x45715a)continue;_0x4190ad['_findSuggestions'](_0xe0aba3['getFirstRange'](),'attribute')['find'](_0x2724ed=>'listType'==_0x4190ad['_getAttributeKey'](_0x2724ed['suggestion']))||(_0x24b8f0['removeMarker'](_0xe0aba3['getFirstMarker']()),_0x3a189d=!0x0);}return _0x3a189d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5c6f81){const _0x285787=this['editor']['locale'],{data:_0x17b60f}=_0x5c6f81,_0x14d8b={'type':'format','content':''};if(!_0x17b60f||'listStyle'!=_0x17b60f['key'])return;if(!_0x17b60f['oldValue'])return'default'==_0x17b60f['newValue']?_0x14d8b:{'type':'format','content':''+o(_0x285787,'*Set\x20format:*\x20%0',o(_0x285787,this['_getTranslationKeyForListStyle'](_0x17b60f['newValue'])))};if(!_0x17b60f['newValue']){if('default'==_0x17b60f['oldValue'])return _0x14d8b;let _0x10418d=_0x5c6f81['head'];for(;_0x10418d;){if(_0x10418d['data']&&'listType'==_0x10418d['data']['key']&&_0x10418d['data']['newValue'])return _0x14d8b;_0x10418d=_0x10418d['next'];}return{'type':'format','content':''+o(_0x285787,'*Remove\x20format:*\x20%0',o(_0x285787,this['_getTranslationKeyForListStyle'](_0x17b60f['oldValue'])))};}if('default'!=_0x17b60f['newValue'])return{'type':'format','content':''+o(_0x285787,'*Set\x20format:*\x20%0',o(_0x285787,this['_getTranslationKeyForListStyle'](_0x17b60f['newValue'])))};let _0x53c707=_0x5c6f81['head'];for(;_0x53c707;){if(_0x53c707['data']&&'listType'==_0x53c707['data']['key']&&_0x53c707['data']['newValue']&&_0x53c707['data']['oldValue'])return _0x14d8b;_0x53c707=_0x53c707['next'];}return{'type':'format','content':o(_0x285787,'*Set\x20format:*\x20%0',o(_0x285787,'ELEMENT_'+_0x5c6f81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1afedf=this['editor'],_0xb950ce=_0x1afedf['locale'];_0x1afedf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2edebe=>{if('formatBlock'!=_0x2edebe['type'])return;const {data:_0x5bb83c}=_0x2edebe;if(!_0x5bb83c)return;let _0x26facf,_0x2a0944;switch(_0x5bb83c['commandName']){case'listStyle':_0x26facf='*Change\x20to:*\x20%0',_0x2a0944={'type':'format','content':o(_0xb950ce,_0x26facf,o(_0xb950ce,this['_getTranslationKeyForListStyle'](_0x5bb83c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26facf=_0x5bb83c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a0944={'type':'format','content':o(_0xb950ce,_0x26facf)};break;case'listStart':_0x26facf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a0944={'type':'format','content':o(_0xb950ce,_0x26facf,_0x5bb83c['commandParams'][0x0]['startIndex'])};}return _0x2a0944;});}['_getTranslationKeyForListStyle'](_0x1651e8){return'ELEMENT_'+function(_0x1c67c6){if(ye['includes'](_0x1c67c6))return'bulleted';if(Se['includes'](_0x1c67c6))return'numbered';return null;}(_0x1651e8)['toUpperCase']()+'_LIST_'+_0x1651e8['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x574be8{['afterInit'](){const _0x36daf7=this['editor'];_0x36daf7['commands']['get']('emoji')&&_0x36daf7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x574be8{static get['requires'](){return[_0x2ee233];}['init'](){const _0x21cf90=this['editor'],_0x279b38=_0x21cf90['plugins']['get']('TrackChangesEditing'),_0x2186ec=_0x21cf90['commands']['get']('enter');_0x279b38['enableCommand']('enter',()=>{_0x21cf90['model']['change'](_0x1c0e8=>{const _0x309ae4=_0x21cf90['model']['document']['selection'],_0x5f2359=_0x309ae4['getFirstPosition'](),_0x4e65fb=_0x32abf5['fromRange'](_0x309ae4['getFirstRange']());if(_0x2186ec['enterBlock'](_0x1c0e8)){const _0x5e4cae=_0x21cf90['model']['createPositionAt'](_0x5f2359['parent']['nextSibling'],0x0),_0x4a9da2=_0x1c0e8['createRange'](_0x5f2359,_0x5e4cae);_0x279b38['markInsertion'](_0x4a9da2);}else _0x1c0e8['setSelection'](_0x1c0e8['createRange'](_0x4e65fb['end']));_0x4e65fb['detach'](),_0x2186ec['fire']('afterExecute',{'writer':_0x1c0e8});});});}}class nt extends _0x574be8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3ad251=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ad251['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3ad251['enableCommand']('findNext'),_0x3ad251['enableCommand']('findPrevious'),_0x3ad251['enableCommand']('replace'),_0x3ad251['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c2ae0,_0x14f007,_0x1bac19={}){const _0x29f7ca=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c2ae0(_0x414e64=>{let _0x4ba2b0=('string'==typeof _0x14f007?_0x29f7ca['findByTextCallback'](_0x14f007,_0x1bac19):_0x14f007)(_0x414e64);Array['isArray'](_0x4ba2b0)&&(_0x4ba2b0={'results':_0x4ba2b0,'searchText':'string'==typeof _0x14f007?_0x14f007:''});const _0x39f04d=_0x4ba2b0['results']['filter'](_0x2615f9=>!0x1===this['_isInDeletionRange'](_0x2615f9,_0x414e64['item']));return{..._0x4ba2b0,'results':_0x39f04d};},_0x1bac19);}['_isInDeletionRange'](_0x1fd161,_0x19d12a){const _0x26f912=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19d12a,_0x1fd161['start']),this['editor']['model']['createPositionAt'](_0x19d12a,_0x1fd161['end']));for(const _0x3484b9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26f912['getIntersection'](_0x3484b9['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x574be8{['afterInit'](){const _0x33ef59=this['editor']['locale'],_0x181e78=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x145704,commandName:_0x28fdcf}of eo)this['editor']['plugins']['has'](_0x145704)&&_0x181e78['enableDefaultAttributesIntegration'](_0x28fdcf);_0x181e78['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x33ef59,'FORMAT_FONT_SIZE')),_0x181e78['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x33ef59,'FORMAT_FONT_FAMILY')),_0x181e78['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x33ef59,'FORMAT_FONT_COLOR')),_0x181e78['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x33ef59,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d7e99=this['editor'],_0x7a07ba=_0x3d7e99['locale'];_0x3d7e99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b80c9=>{const _0x53ffab=_0x7a07ba['t'];if('formatInline'!=_0x2b80c9['type'])return;const {data:_0x3092f2}=_0x2b80c9;if(null!=_0x3092f2){if('fontSize'==_0x3092f2['commandName']){const _0x1ac835=_0x3092f2['commandParams'][0x0]['value'];if(_0x1ac835){const _0x18b152=_0x53ffab(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x334802=>_0x334802['model']==_0x1ac835)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7a07ba,'*Set\x20font\x20size:*\x20%0',_0x18b152)};}return{'type':'format','content':o(_0x7a07ba,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3092f2['commandName']){const _0x34b36d=_0x3092f2['commandParams'][0x0]['value'];return _0x34b36d?{'type':'format','content':o(_0x7a07ba,'*Set\x20font\x20family:*\x20%0',_0x34b36d)}:{'type':'format','content':o(_0x7a07ba,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3092f2['commandName']){const _0x5c8a6a=_0x3092f2['commandParams'][0x0]['value'];if(_0x5c8a6a){const _0x3bfaf4=_0x165450(this['editor']['config']['get']('fontColor.colors'))['find'](_0x276d79=>_0x276d79['model']==_0x5c8a6a);let _0x3da591=_0x5c8a6a,_0x26ce64='';return _0x3bfaf4&&(_0x3da591=_0x3bfaf4['label'],_0x26ce64=_0x53ffab(_0x3da591)['toLowerCase']()),{'type':'format','content':o(_0x7a07ba,'*Set\x20font\x20color:*\x20%0',_0x26ce64)['trim'](),'color':{'value':_0x5c8a6a,'title':_0x26ce64||_0x3da591}};}return{'type':'format','content':o(_0x7a07ba,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3092f2['commandName']){const _0x1bdd82=_0x3092f2['commandParams'][0x0]['value'];if(_0x1bdd82){const _0x31d028=_0x165450(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x191b78=>_0x191b78['model']==_0x1bdd82);let _0x31b698=_0x1bdd82,_0x2a73fc='';return _0x31d028&&(_0x31b698=_0x31d028['label'],_0x2a73fc=_0x53ffab(_0x31b698)['toLowerCase']()),{'type':'format','content':o(_0x7a07ba,'*Set\x20font\x20background\x20color:*\x20%0',_0x2a73fc)['trim'](),'color':{'value':_0x1bdd82,'title':_0x2a73fc||_0x31b698}};}return{'type':'format','content':o(_0x7a07ba,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x574be8{['afterInit'](){const {plugins:_0xf080fc}=this['editor'];_0xf080fc['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xf080fc['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x28ce9b,plugins:_0xfa50b4,commands:_0x30f0e8}=this['editor'],_0x386ed9=_0xfa50b4['get']('TrackChangesEditing');_0x30f0e8['get']('footnotesStyle')&&_0x386ed9['enableDefaultAttributesIntegration']('footnotesStyle'),_0x30f0e8['get']('footnotesStart')&&_0x386ed9['enableDefaultAttributesIntegration']('footnotesStart'),_0x386ed9['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x28ce9b,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x386ed9['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x28ce9b,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x50df8c=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x22a433,commands:_0x1af876}=this['editor'];_0x1af876['get']('insertFootnote')&&_0x50df8c['enableCommand']('insertFootnote'),_0x50df8c['descriptionFactory']['registerElementLabel']('footnoteRef',_0xc5188=>o(_0x22a433,'ELEMENT_FOOTNOTE_REF',_0xc5188)),_0x50df8c['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x11469d=>o(_0x22a433,'ELEMENT_FOOTNOTE_DEFINITION',_0x11469d)),_0x50df8c['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3b7413=>o(_0x22a433,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3b7413));}}class st extends _0x574be8{['afterInit'](){const _0x2245d5=this['editor'],_0x41bd51=_0x2245d5['plugins']['get']('TrackChangesEditing'),_0x238f4e=_0x2245d5['commands']['get']('copyFormat'),_0x59fa75=_0x2245d5['commands']['get']('pasteFormat');_0x238f4e&&_0x59fa75&&(_0x41bd51['enableDefaultAttributesIntegration']('pasteFormat'),_0x41bd51['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x792079=this['editor'],_0x3352a3=_0x792079['locale'];_0x792079['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ad6f=>{if('formatBlock'!=_0x29ad6f['type']&&'formatInline'!=_0x29ad6f['type'])return;const {data:_0x36013c}=_0x29ad6f;if(_0x36013c&&'pasteFormat'===_0x36013c['commandName']){const _0x13eb75=[],_0x3c8273=_0x36013c['commandParams'][0x0];for(const [_0x5e409e,_0x554555]of Object['entries'](_0x3c8273))_0x13eb75['push'](ro(_0x792079,_0x5e409e,_0x554555));return _0x13eb75['length']?{'type':'format','content':o(_0x3352a3,'*Set\x20format\x20to:*\x20%0',_0x13eb75['join'](',\x20'))}:{'type':'format','content':o(_0x3352a3,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x577eed,_0x12c4cf,_0x2e0615){const _0x20d5d4=_0x577eed['locale']['t'],_0x24dd21=_0x12c4cf['split'](/(?=[A-Z])/)['join']('\x20'),_0x59d27b=_0x20d5d4(_0x24dd21['charAt'](0x0)['toUpperCase']()+_0x24dd21['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2e0615)return _0x59d27b;if('fontColor'===_0x12c4cf||'fontBackgroundColor'===_0x12c4cf){const _0x4ddc61=_0x165450(_0x577eed['config']['get']('fontColor.colors'))['find'](_0x1f8531=>_0x1f8531['model']==_0x2e0615);return _0x59d27b+'\x20('+(_0x4ddc61?_0x20d5d4(_0x4ddc61['label'])['toLowerCase']():_0x2e0615)+')';}if('fontSize'===_0x12c4cf&&isNaN(parseFloat(_0x2e0615))){const _0x139094=_0x577eed['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x577eed['config']['get']('fontSize.options'))['find'](_0x4b356d=>_0x4b356d['model']==_0x2e0615);return _0x59d27b+'\x20('+(_0x139094?_0x20d5d4(_0x139094['title'])['toLowerCase']():_0x2e0615)+')';}return _0x59d27b+'\x20('+_0x2e0615+')';}class ot extends _0x574be8{['_headingOptions'];['afterInit'](){const _0x12eaf1=this['editor'];if(!_0x12eaf1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x12eaf1['config']['get']('heading.options');const _0x542906=_0x12eaf1['locale'],_0x2b2e1a=_0x12eaf1['plugins']['get']('TrackChangesEditing');_0x2b2e1a['enableDefaultAttributesIntegration']('heading');for(const _0x3aa69f of this['_headingOptions'])'paragraph'!=_0x3aa69f['model']&&_0x2b2e1a['descriptionFactory']['registerElementLabel'](_0x3aa69f['model'],_0x186266=>{const _0x41ec4a=this['_getHeadingLevel'](_0x3aa69f['model']);return null!==_0x41ec4a?_0x1dd715(_0x186266,_0x41ec4a):_0x12d6e1(_0x186266,_0x3aa69f['title']);});function _0x1dd715(_0x2cdbf7,_0xa717f4){return o(_0x542906,'ELEMENT_HEADING',[_0x2cdbf7,_0xa717f4]);}function _0x12d6e1(_0x110fd2,_0x12150b){return o(_0x542906,'ELEMENT_HEADING_CUSTOM',[_0x110fd2,_0x12150b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c0daa=this['editor'],_0x2de758=_0x3c0daa['locale'];function _0x393ac2(_0x2670ad,_0x2c36b6){return o(_0x2de758,'ELEMENT_HEADING_CUSTOM',[_0x2670ad,_0x2c36b6]);}_0x3c0daa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e43e=>{if('formatBlock'!=_0x23e43e['type'])return;const {data:_0x5262cc}=_0x23e43e;if(_0x5262cc&&'heading'==_0x5262cc['commandName']){const _0x4081e6=_0x5262cc['commandParams'][0x0]['value'],_0x880a51=this['_getHeadingLevel'](_0x4081e6);if(null!==_0x880a51)return{'type':'format','content':o(_0x2de758,'*Change\x20to:*\x20%0',(_0x36972c=0x1,_0x91d9b1=_0x880a51,o(_0x2de758,'ELEMENT_HEADING',[_0x36972c,_0x91d9b1])))};const _0x949fb5=this['_headingOptions']['find'](_0x38d2a9=>_0x38d2a9['model']===_0x4081e6)['title'];return{'type':'format','content':o(_0x2de758,'*Change\x20to:*\x20%0',_0x393ac2(0x1,_0x949fb5))};}var _0x36972c,_0x91d9b1;});}['_getHeadingLevel'](_0x477fc6){const _0x4872c3=_0x477fc6['match'](/^heading(\d+)/);if(_0x4872c3)return _0x4872c3[0x1];const _0x1d767d=this['_headingOptions']?.['find'](_0x31f256=>_0x31f256['model']==_0x477fc6);if(_0x1d767d&&_0x1d767d['view']){const _0x2700e4=_0x1d767d['view'],_0x42c36c=(_0x2700e4['name']??_0x2700e4)['match'](/^h(\d+)/);if(_0x42c36c)return _0x42c36c[0x1];}return null;}}class rt extends _0x574be8{['afterInit'](){const _0x50ddd5=this['editor'];if(!_0x50ddd5['plugins']['has']('HighlightEditing'))return;const _0x20d14d=_0x50ddd5['plugins']['get']('TrackChangesEditing'),_0x599779=_0x50ddd5['locale'];_0x20d14d['enableDefaultAttributesIntegration']('highlight'),_0x20d14d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x599779,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24210f=this['editor'],_0x4f9cda=_0x24210f['locale'];_0x24210f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x303c71=>{if('formatInline'!=_0x303c71['type'])return;const {data:_0x528c4e}=_0x303c71;if(_0x528c4e&&'highlight'==_0x528c4e['commandName']){const _0x42cb50=_0x4f9cda['t'],_0x3757b9=_0x528c4e['commandParams'][0x0]['value'];if(_0x3757b9){const _0x4db9c9=_0x24210f['config']['get']('highlight.options')['find'](_0x48362a=>_0x48362a['model']==_0x3757b9),_0x512bb6=_0x42cb50(_0x4db9c9['title'])['toLowerCase']();return{'type':'format','content':o(_0x4f9cda,'*Set\x20highlight:*\x20%0',_0x512bb6),'color':{'value':_0x4db9c9['color'],'title':_0x4db9c9['title']}};}return{'type':'format','content':o(_0x4f9cda,'*Remove\x20highlight*',o(_0x4f9cda,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x574be8{['afterInit'](){const _0x29c3d1=this['editor'];if(!_0x29c3d1['plugins']['has']('HorizontalLineEditing'))return;_0x29c3d1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1ce041=_0x29c3d1['plugins']['get']('TrackChangesEditing'),_0x41a3e8=_0x29c3d1['locale'];_0x1ce041['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d785c=>o(_0x41a3e8,'ELEMENT_HORIZONTAL_LINE',_0x4d785c));}}class ct extends _0x574be8{['afterInit'](){const _0x43c301=this['editor'];if(!_0x43c301['plugins']['has']('HtmlEmbed'))return;const _0x3eb19f=_0x43c301['plugins']['get']('TrackChangesEditing'),_0xafe34e=_0x43c301['locale'];_0x3eb19f['descriptionFactory']['registerElementLabel']('rawHtml',_0x243555=>o(_0xafe34e,'ELEMENT_HTML_EMBED',_0x243555)),_0x3eb19f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3eb19f['descriptionFactory']['registerDescriptionCallback'](_0x3d5ab2=>{if('attribute'!=_0x3d5ab2['type'])return;const {data:_0x568312}=_0x3d5ab2;if(_0x568312&&'value'==_0x568312['key']&&_0x3d5ab2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x13afec=o(_0xafe34e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xafe34e,'*Change\x20%0\x20content*',_0x13afec)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47dab0=this['editor'],_0x22ef35=_0x47dab0['locale'];_0x47dab0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x495cb6=>{if('formatBlock'!=_0x495cb6['type'])return;const {data:_0x3eb406}=_0x495cb6;if(_0x3eb406&&'htmlEmbed'==_0x3eb406['commandName']){const _0x29728c=o(_0x22ef35,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x22ef35,'*Change\x20%0\x20content*',_0x29728c)};}});}}class ut extends _0x574be8{['afterInit'](){const _0xd3b033=this['editor'];if(!_0xd3b033['plugins']['has']('ImageEditing'))return;const _0x4cd2ab=_0xd3b033['plugins']['get']('TrackChangesEditing'),_0x195e1c=_0xd3b033['plugins']['get']('ImageUtils'),_0x5bfa63=_0xd3b033['locale'];_0x4cd2ab['enableCommand']('insertImage'),_0x4cd2ab['descriptionFactory']['registerElementLabel']('imageBlock',_0x201fdb=>o(_0x5bfa63,'ELEMENT_IMAGE',_0x201fdb)),_0x4cd2ab['descriptionFactory']['registerElementLabel']('imageInline',_0x52c06c=>o(_0x5bfa63,'ELEMENT_INLINE_IMAGE',_0x52c06c)),_0x4cd2ab['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5bfa63,'ELEMENT_CAPTION')),_0xd3b033['plugins']['has']('ImageUploadEditing')&&_0x4cd2ab['enableCommand']('uploadImage'),_0xd3b033['plugins']['has']('ImageBlockEditing')&&_0xd3b033['plugins']['has']('ImageInlineEditing')&&(_0x4cd2ab['enableCommand']('imageTypeInline',(_0x37bede,_0x460cb9)=>{const _0x22a932=_0x195e1c['getClosestSelectedImageElement'](_0xd3b033['model']['document']['selection']);_0xd3b033['model']['change'](()=>{_0x4cd2ab['markBlockFormat'](_0x22a932,{'commandName':'imageTypeInline','commandParams':[_0x460cb9]},[],'convertBlockImageToInline');});}),_0x4cd2ab['enableCommand']('imageTypeBlock',(_0x35d659,_0xe216fc)=>{_0xd3b033['model']['change'](_0x2c39d1=>{let _0x2f4f6e=_0x195e1c['getClosestSelectedImageElement'](_0xd3b033['model']['document']['selection']),_0x31e45d=_0x2c39d1['createRangeOn'](_0x2f4f6e);const _0x136cff=_0x2d485d['fromPosition'](_0x31e45d['start'],'toPrevious'),_0x121966=_0x2d485d['fromPosition'](_0x31e45d['end'],'toNext');_0x4cd2ab['forceDefaultExecution'](()=>_0x35d659(_0xe216fc)),_0x2f4f6e=_0x195e1c['getClosestSelectedImageElement'](_0xd3b033['model']['document']['selection']),_0x31e45d=_0x2c39d1['createRangeOn'](_0x2f4f6e);const _0x24346e=_0x2c39d1['createRange'](_0x136cff,_0x121966);_0x136cff['detach'](),_0x121966['detach'](),_0x4cd2ab['markBlockFormat'](_0x2f4f6e,{'commandName':'imageTypeInline','commandParams':[_0xe216fc]},[],'convertInlineImageToBlock'),_0x24346e['start']['isBefore'](_0x31e45d['start'])&&_0x4cd2ab['markInsertion'](_0x2c39d1['createRange'](_0x24346e['start'],_0x31e45d['start']),'convertInlineImageToBlock'),_0x31e45d['end']['isBefore'](_0x24346e['end'])&&_0x4cd2ab['markInsertion'](_0x2c39d1['createRange'](_0x31e45d['end'],_0x24346e['end']),'convertInlineImageToBlock');});}),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4cd2ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1686dd])=>{const _0x5e138f=_0x4cd2ab['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x583f40=_0x1686dd['start'],_0x17e313=_0x1686dd['end'];const _0x6de3a5=_0xd3b033['model']['schema']['getNearestSelectionRange'](_0x583f40,'backward'),_0x5a1f73=_0xd3b033['model']['schema']['getNearestSelectionRange'](_0x17e313,'forward');_0x6de3a5['isCollapsed']&&(_0x583f40=_0x6de3a5['start']),_0x5a1f73['isCollapsed']&&(_0x17e313=_0x5a1f73['end']),_0x5e138f([_0xd3b033['model']['createRange'](_0x583f40,_0x17e313)]);}),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4ec75a),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4ec75a)),_0xd3b033['plugins']['has']('ImageCaptionEditing')&&(_0x4cd2ab['enableCommand']('toggleImageCaption',(_0x4c93e3,_0x3b1760)=>{const _0x1e9dbf=_0xd3b033['plugins']['get']('ImageCaptionUtils');let _0x4a2b93=_0x195e1c['getClosestSelectedImageElement'](_0xd3b033['model']['document']['selection']),_0x4b8da0=_0x1e9dbf['getCaptionFromImageModelElement'](_0x4a2b93);_0xd3b033['model']['change'](()=>{if(_0x4b8da0)return void _0x4cd2ab['markDeletion'](_0xd3b033['model']['createRangeOn'](_0x4b8da0));const _0x528c75=_0x195e1c['isBlockImage'](_0x4a2b93);_0x4c93e3(_0x3b1760),_0x4a2b93=_0x195e1c['getClosestSelectedImageElement'](_0xd3b033['model']['document']['selection']),_0x4b8da0=_0x1e9dbf['getCaptionFromImageModelElement'](_0x4a2b93),_0x4cd2ab['markInsertion'](_0xd3b033['model']['createRangeOn'](_0x4b8da0),_0x528c75?null:'imageCaption');});}),_0x4cd2ab['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4ec75a));const _0x24bd68=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ff543(_0x4893e3,_0x258479){const _0x501f4e=_0x24bd68['findIndex'](({type:_0x47d0e8,subType:_0xa7401f})=>_0x4893e3['type']==_0x47d0e8&&_0x4893e3['subType']==_0xa7401f),_0x7651aa=_0x24bd68['findIndex'](({type:_0x20ade1,subType:_0x1d6600})=>_0x258479['type']==_0x20ade1&&_0x258479['subType']==_0x1d6600);if(_0x501f4e<0x0||_0x7651aa<0x0)return!0x1;const _0x3d45f9=_0x4893e3['getFirstRange'](),_0x295758=_0x258479['getFirstRange']();if((0x0==_0x501f4e||0x1==_0x501f4e)&&0x2==_0x7651aa&&_0x3d45f9['isIntersecting'](_0x295758))return!0x0;if(0x2==_0x501f4e&&0x3==_0x7651aa){const _0x4dd009=_0x4cd2ab['_findSuggestions'](_0x3d45f9,'insertion')['filter'](({suggestion:_0x57173b,meta:_0x32e9d6})=>_0x32e9d6['isOwn']&&'convertInlineImageToBlock'==_0x57173b['subType']);if(_0x4dd009['length']>0x1&&_0x295758['end']['isEqual'](_0x3d45f9['start']))return!0x0;if(0x1==_0x4dd009['length']&&(_0x3d45f9['start']['isEqual'](_0x295758['end'])||_0x3d45f9['end']['isEqual'](_0x295758['start'])))return!0x0;}if(0x3==_0x501f4e&&0x3==_0x7651aa&&_0x3d45f9['start']['isBefore'](_0x295758['start'])){const _0x205c9a=_0x3d45f9['end']['nodeAfter'],_0x51f578=_0x295758['start']['nodeBefore'];return _0x195e1c['isBlockImage'](_0x205c9a)&&_0x205c9a===_0x51f578;}return!0x1;}function _0x4ec75a(_0x3ee05a,_0x2ddbc9){return _0x4ff543(_0x3ee05a,_0x2ddbc9)?[_0x3ee05a,_0x2ddbc9]:_0x4ff543(_0x2ddbc9,_0x3ee05a)?[_0x2ddbc9,_0x3ee05a]:null;}_0xd3b033['plugins']['has']('ImageResize')&&(_0x4cd2ab['enableDefaultAttributesIntegration']('resizeImage'),_0x4cd2ab['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5bfa63,'FORMAT_IMAGE_SIZE'))),_0xd3b033['plugins']['has']('ImageTextAlternativeEditing')&&_0x4cd2ab['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xd3b033['plugins']['has']('PictureEditing')&&_0x4cd2ab['descriptionFactory']['registerDescriptionCallback'](_0x45968c=>{if('attribute'!=_0x45968c['type'])return;const {data:_0x47cb55}=_0x45968c;return _0x47cb55&&'sources'==_0x47cb55['key']?{'type':'format','content':''}:void 0x0;}),_0xd3b033['plugins']['has']('ImageSizeAttributes')&&_0x4cd2ab['descriptionFactory']['registerDescriptionCallback'](_0x2624f3=>{if('attribute'!=_0x2624f3['type'])return;const {data:_0x34310c}=_0x2624f3;return!_0x34310c||'width'!=_0x34310c['key']&&'height'!=_0x34310c['key']?void 0x0:{'type':'format','content':''};}),_0x4cd2ab['descriptionFactory']['registerDescriptionCallback'](_0x5dd01b=>{if(!!_0x24bd68['find'](({type:_0x498ed3,subType:_0x173663})=>_0x5dd01b['type']==_0x498ed3&&_0x5dd01b['subType']==_0x173663))return _0x5dd01b['previous']?{}:void 0x0;}),_0x4cd2ab['descriptionFactory']['registerDescriptionCallback'](_0x3da4b6=>{if('insertion'==_0x3da4b6['type']||'deletion'==_0x3da4b6['type']){const _0x2cffd4=_0x3da4b6['getContainedElement']();if(_0x2cffd4&&_0x2cffd4['is']('element','caption'))return{'type':'insertion'==_0x3da4b6['type']?'addObject':'removeObject','element':_0x2cffd4,'quantity':0x1};}}),_0x4cd2ab['descriptionFactory']['registerDescriptionCallback'](_0x55882b=>'formatBlock'==_0x55882b['type']&&'convertInlineImageToBlock'==_0x55882b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55882b['type']&&'convertBlockImageToInline'==_0x55882b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4cd2ab['descriptionFactory']['registerDescriptionCallback'](_0x4ac2c6=>{if('attribute'!=_0x4ac2c6['type'])return;const {data:_0x4dab3b}=_0x4ac2c6;if(!_0x4dab3b||'alt'!=_0x4dab3b['key'])return;const _0x1907b1=_0x4dab3b['newValue'];return _0x1907b1?{'type':'format','content':o(_0x5bfa63,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1907b1+'\x22')}:{'type':'format','content':o(_0x5bfa63,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a2a58=this['editor'],_0x5aa6c9=_0x1a2a58['locale'];_0x1a2a58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24b373=>{if('formatBlock'!=_0x24b373['type']&&'formatInline'!=_0x24b373['type'])return;const {data:_0xbc625b}=_0x24b373;if(_0xbc625b){if('imageTextAlternative'==_0xbc625b['commandName']){const _0x11eca3=_0xbc625b['commandParams'][0x0]['newValue'];return _0x11eca3?{'type':'format','content':o(_0x5aa6c9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x11eca3+'\x22')}:{'type':'format','content':o(_0x5aa6c9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xbc625b['commandName']){const _0x31eef4=_0xbc625b['commandParams'][0x0]['width'];return _0x31eef4?{'type':'format','content':o(_0x5aa6c9,'*Set\x20image\x20width:*\x20%0',_0x31eef4)}:{'type':'format','content':o(_0x5aa6c9,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x574be8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xb56436=this['editor']['locale'],_0x32e4db=this['editor']['plugins']['get']('TrackChangesEditing');_0x32e4db['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32e4db['descriptionFactory']['registerDescriptionCallback'](_0x4c7b04=>{if('attribute'!=_0x4c7b04['type'])return;const {data:_0x108ae1}=_0x4c7b04;return _0x108ae1&&'src'==_0x108ae1['key']?_0x108ae1['newValue']&&_0x108ae1['oldValue']?{'type':'format','content':o(_0xb56436,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x256ee3=this['editor']['plugins']['get']('TrackChangesEditing');_0x256ee3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x256ee3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x256ee3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x256ee3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf191bc=this['editor'],_0x31dcb2=_0xf191bc['locale'];_0xf191bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4098c0=>{if('formatBlock'!=_0x4098c0['type']&&'formatInline'!=_0x4098c0['type'])return;const {data:_0xb30d00}=_0x4098c0;if(!_0xb30d00||'replaceImageSource'!=_0xb30d00['commandName'])return;return{'type':'format','content':o(_0x31dcb2,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x574be8{['afterInit'](){const _0x3f0ead=this['editor'];if(!_0x3f0ead['plugins']['has']('ImageStyleEditing'))return;const _0x3171d3=_0x3f0ead['plugins']['get']('TrackChangesEditing'),_0x56283c=_0x3f0ead['plugins']['get']('ImageUtils'),_0x13d1b8={};_0x3171d3['enableCommand']('imageStyle',(_0x8efa7,_0x4819d2)=>{const _0xa1f2e9=_0x3f0ead['plugins']['get']('Users')['me'],_0x2e9615=_0x3f0ead['commands']['get']('imageStyle');let _0x1e99fa=_0x56283c['getClosestSelectedImageElement'](_0x3f0ead['model']['document']['selection']),_0x403cd4=_0x3f0ead['model']['createRangeOn'](_0x1e99fa),_0x1b3960=_0x2e9615['value'];if(_0x1b3960==_0x4819d2['value'])return;const _0x13d554={'commandName':'imageStyle','commandParams':[_0x4819d2],'formatGroupId':_0x51a9d1()};_0x3f0ead['model']['change'](()=>{if(_0x3171d3['getSuggestions']()['filter'](_0x3d18f2=>_0x3d18f2['isInContent']&&_0xa1f2e9==_0x3d18f2['author']&&('formatBlock'==_0x3d18f2['type']||'formatInline'==_0x3d18f2['type'])&&('imageStylePreApply'==_0x3d18f2['subType']||'imageStylePostApply'==_0x3d18f2['subType'])&&_0x3d18f2['getFirstRange']()['isEqual'](_0x403cd4))['forEach'](_0x351ee4=>_0x3171d3['discardSuggestion'](_0x351ee4['head'])),_0x1e99fa=_0x56283c['getClosestSelectedImageElement'](_0x3f0ead['model']['document']['selection']),_0x403cd4=_0x3f0ead['model']['createRangeOn'](_0x1e99fa),_0x2e9615['refresh'](),_0x3f0ead['commands']['get']('imageTypeInline')['refresh'](),_0x3f0ead['commands']['get']('imageTypeBlock')['refresh'](),_0x1b3960=_0x2e9615['value'],_0x1b3960!=_0x4819d2['value'])return _0x56283c['isInlineImage'](_0x1e99fa)&&_0x2e9615['shouldConvertImageType'](_0x4819d2['value'],_0x1e99fa)?(_0x8efa7({..._0x4819d2,'setImageSizes':!0x1}),_0x1e99fa=_0x56283c['getClosestSelectedImageElement'](_0x3f0ead['model']['document']['selection']),void _0x3171d3['markBlockFormat'](_0x1e99fa,{..._0x13d554,'commandReversedParams':[{'value':_0x1b3960||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x56283c['isBlockImage'](_0x1e99fa)?_0x3171d3['markBlockFormat'](_0x1e99fa,_0x13d554,[],'imageStylePostApply'):_0x3171d3['markInlineFormat'](_0x403cd4,_0x13d554,'imageStylePostApply'));});});for(const _0x2bf280 of _0x3f0ead['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x13d1b8[_0x2bf280['name']]=_0x2bf280['title']['toLowerCase']();_0x3171d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3171d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3171d3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3171d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d0754])=>{_0x56283c['setImageNaturalSizeAttributes'](_0x2d0754['getContainedElement']());}),_0x3171d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x33a20d,_0x56c253)=>{_0x3171d3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x33a20d,{'commandName':_0x56c253['commandName'],'commandParams':_0x56c253['commandReversedParams']});}),_0x3171d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x257883,_0x163457){if(_0x3c09f8(_0x257883,_0x163457))return[_0x257883,_0x163457];if(_0x3c09f8(_0x163457,_0x257883))return[_0x163457,_0x257883];return null;});const _0x3071ce=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c09f8(_0xd58411,_0x3aabdf){const _0x2735d8=_0x3071ce['findIndex'](({type:_0x348d9a,subType:_0x507144})=>_0xd58411['type']==_0x348d9a&&_0xd58411['subType']==_0x507144),_0x4e9f50=_0x3071ce['findIndex'](({type:_0x202f21,subType:_0x3705d7})=>_0x3aabdf['type']==_0x202f21&&_0x3aabdf['subType']==_0x3705d7);if(_0x2735d8<0x0||_0x4e9f50<0x0)return!0x1;const _0x4de343=_0xd58411['getFirstRange'](),_0x34643e=_0x3aabdf['getFirstRange']();if((0x0==_0x2735d8||0x1==_0x2735d8)&&0x2==_0x4e9f50&&_0x4de343['isIntersecting'](_0x34643e))return!0x0;if(0x2==_0x2735d8&&0x3==_0x4e9f50){const _0x2c15d3=_0x3171d3['_findSuggestions'](_0x4de343,'insertion')['filter'](({suggestion:_0x28b215,meta:_0x580826})=>_0x580826['isOwn']&&'convertInlineImageToBlock'==_0x28b215['subType']);if(_0x2c15d3['length']>0x1&&_0x34643e['end']['isEqual'](_0x4de343['start']))return!0x0;if(0x1==_0x2c15d3['length']&&(_0x4de343['start']['isEqual'](_0x34643e['end'])||_0x4de343['end']['isEqual'](_0x34643e['start'])))return!0x0;}if(0x3==_0x2735d8&&0x3==_0x4e9f50&&_0x4de343['start']['isBefore'](_0x34643e['start'])){const _0x459578=_0x4de343['end']['nodeAfter'],_0x5b80a9=_0x34643e['start']['nodeBefore'];return _0x56283c['isBlockImage'](_0x459578)&&_0x459578===_0x5b80a9;}return!0x1;}_0x3f0ead['model']['document']['registerPostFixer'](()=>{let _0x5045e2=!0x1;const _0x8dbc69=Array['from'](_0x3f0ead['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ec0b3,data:_0x5f40cd}of _0x8dbc69){const {group:_0x206f66,type:_0x29c7c0,subType:_0x33eecc,id:_0x45cd72}=_0x3171d3['_splitMarkerName'](_0x3ec0b3);if('suggestion'==_0x206f66&&_0x3171d3['hasSuggestion'](_0x45cd72)){if('formatBlock'==_0x29c7c0&&('imageStylePreApply'==_0x33eecc||'imageStylePostApply'==_0x33eecc)){const _0x24ed1f=_0x3171d3['getSuggestion'](_0x45cd72);if(_0x5f40cd['newRange']){const _0x1476bc=_0x24ed1f['getFirstRange']()['getContainedElement']();if(_0x56283c['isBlockImage'](_0x1476bc))continue;_0x3171d3['discardSuggestion'](_0x24ed1f),_0x5045e2=!0x0;}}if('insertion'==_0x29c7c0&&'imageCaption'==_0x33eecc&&!_0x5f40cd['newRange']){const _0x475d89=_0x3171d3['getSuggestion'](_0x45cd72);_0x475d89['next']&&_0x475d89['next']['isInContent']&&(_0x3171d3['discardSuggestion'](_0x475d89['next']),_0x5045e2=!0x0);}}}return _0x5045e2;}),this['_registerLegacyDescription'](_0x13d1b8);}['_registerLegacyDescription'](_0x3810a4){const _0x1671c5=this['editor'],_0x59cd79=_0x1671c5['locale'];_0x1671c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33fad8=>{if('formatBlock'!=_0x33fad8['type']&&'formatInline'!=_0x33fad8['type'])return;const {data:_0x5775df}=_0x33fad8;if(!_0x5775df||'imageStyle'!=_0x5775df['commandName'])return;const _0x16f8a0=_0x5775df['commandParams'][0x0]['value'];return _0xed76b0('side'===_0x16f8a0?o(_0x59cd79,'FORMAT_SIDE_IMAGE'):_0x3810a4[_0x16f8a0]||_0x16f8a0);function _0xed76b0(_0xc391d0){return{'type':'format','content':o(_0x59cd79,'*Format:*\x20%0',_0xc391d0)};}});}}class lt extends _0x574be8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x32e379){super(_0x32e379),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5115ef=this['editor'],_0x400d67=_0x5115ef['commands']['get']('importWord'),_0x5c40ed=_0x5115ef['commands']['get']('trackChanges');_0x400d67&&(_0x400d67['on']('execute',(_0x374d26,[,_0x2adb1b])=>{this['_trackChangesValueDuringImport']=_0x5c40ed['value'],_0x2adb1b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x400d67,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x400d67,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c40ed['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5115ef['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xef96ed,_0x4b995b){const {suggestions:_0x2f0e87}=_0x4b995b,_0x4c33c3=this['editor']['commands']['get']('trackChanges'),_0x3ef04f=_0x4c33c3['value'];this['_trackChangesValueDuringImport']!==_0x3ef04f&&(_0x4c33c3['execute'](),this['_trackChangesExecuted']=!0x0),_0x2f0e87&&_0x2f0e87['forEach'](({id:_0x4dc6bd,type:_0x320f20,author:_0x32399a,created_at:_0x3ade03})=>{const _0x413ca7={'id':_0x4dc6bd,'type':_0x320f20,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32399a,'createdAt':_0x3ade03?new Date(_0x3ade03):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x413ca7);});}}class gt extends _0x574be8{['afterInit'](){const _0x2e27af=this['editor'],_0x2896c9=_0x2e27af['plugins']['get']('TrackChangesEditing');if(_0x2e27af['plugins']['has']('IndentEditing')&&(_0x2896c9['enableCommand']('indent'),_0x2896c9['enableCommand']('outdent')),_0x2e27af['plugins']['has']('IndentBlock')){for(const _0x1a5e68 of['indentBlock','outdentBlock'])_0x2896c9['enableDefaultAttributesIntegration'](_0x1a5e68);if(_0x2e27af['plugins']['has']('ListEditing')){for(const _0x41a165 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x2896c9['enableDefaultAttributesIntegration'](_0x41a165);}}const _0x597164=_0x2e27af['locale'];_0x2896c9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x597164,'FORMAT_INDENT')),_0x2896c9['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x597164,'FORMAT_INDENT')),_0x2896c9['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x597164,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b43f2=this['editor'],_0x2d0ed6=_0x2b43f2['locale'],_0x28e4d8=_0x2b43f2['plugins']['get']('TrackChangesEditing');_0x28e4d8['descriptionFactory']['registerDescriptionCallback'](_0x5ec05a=>{if('formatBlock'!=_0x5ec05a['type'])return;const {data:_0x195e2b}=_0x5ec05a;if(!_0x195e2b)return;if('indentBlock'!=_0x195e2b['commandName']&&'outdentBlock'!=_0x195e2b['commandName'])return;const _0x4a7b6e=_0x5ec05a['getItems']()[0x0],_0x1a30aa=_0x28e4d8['descriptionFactory']['getItemLabel'](_0x4a7b6e);return'indentBlock'==_0x195e2b['commandName']?{'type':'format','content':o(_0x2d0ed6,'*Indent:*\x20%0',_0x1a30aa)}:'outdentBlock'==_0x195e2b['commandName']?{'type':'format','content':o(_0x2d0ed6,'*Outdent:*\x20%0',_0x1a30aa)}:void 0x0;});}}class mt extends _0x574be8{static get['requires'](){return[_0x1e1a00];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x574be8{['afterInit'](){const _0x2d91a0=this['editor'];if(!_0x2d91a0['plugins']['has']('LinkEditing'))return;const _0x2a631d=_0x2d91a0['plugins']['get']('TrackChangesEditing'),_0x54088c=_0x2d91a0['commands']['get']('link');_0x2a631d['enableDefaultAttributesIntegration']('link'),_0x2a631d['enableDefaultAttributesIntegration']('unlink');for(const _0x4f7ec1 of _0x54088c['manualDecorators'])_0x2a631d['descriptionFactory']['registerAttributeLabel'](_0x4f7ec1['id'],'link\x20('+_0x4f7ec1['label']['toLowerCase']()+')');_0x2a631d['descriptionFactory']['registerDescriptionCallback'](_0x280ebe=>{if('attribute'!=_0x280ebe['type'])return;const {data:_0x2b7b59}=_0x280ebe;if(!_0x2b7b59||'linkHref'!=_0x2b7b59['key'])return;const _0x3ba4e4=_0x2b7b59['newValue'],_0x1a84e1=_0x2d91a0['locale'];return{'type':'format','content':null==_0x3ba4e4?o(_0x1a84e1,'*Remove\x20link*'):o(_0x1a84e1,'*Set\x20link:*\x20%0','\x22'+_0x3ba4e4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a67e5=this['editor'],_0x517dfd=_0x5a67e5['locale'];_0x5a67e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2557ff=>{if('formatInline'!=_0x2557ff['type'])return;const {data:_0x614934}=_0x2557ff;if(_0x614934){if('link'==_0x614934['commandName']){const _0x3fc9c9=_0x614934['commandParams'][0x0];return{'type':'format','content':o(_0x517dfd,'*Set\x20link:*\x20%0','\x22'+_0x3fc9c9+'\x22')};}return'unlink'==_0x614934['commandName']?{'type':'format','content':o(_0x517dfd,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x574be8{['afterInit'](){const _0x3cdc0c=this['editor'],_0x2a2f81=_0x3cdc0c['locale'];if(!_0x3cdc0c['plugins']['has']('LegacyListEditing'))return;const _0x56e61e=_0x3cdc0c['plugins']['get']('TrackChangesEditing'),_0x5d4b4d=_0x3cdc0c['plugins']['has']('LegacyTodoListEditing');function _0x5ae5af(_0x1b8107){return()=>{const _0x44884d=_0x3cdc0c['model']['document']['selection'],_0xd37591=_0x3cdc0c['commands']['get'](_0x1b8107);if(_0xd37591['value'])return void _0x3cdc0c['execute']('paragraph',{});const _0x1f22dd=_0x1b8107['slice'](0x0,-0x4),_0x4b0981=function(_0x52cb9a,_0x282e08,_0x3355f9){let _0x2bf7db=Array['from'](_0x52cb9a)['filter'](_0x76043b=>function(_0x102573,_0x52f968){return _0x52f968['checkChild'](_0x102573['parent'],'listItem')&&!_0x52f968['isObject'](_0x102573);}(_0x76043b,_0x3355f9));_0x2bf7db=_0x2bf7db['filter'](_0x177d47=>!_0x177d47['is']('element','listItem')||_0x177d47['getAttribute']('listType')!=_0x282e08);const _0x36a870=new Set();for(const _0x535e1f of _0x2bf7db)_0x535e1f['is']('element','listItem')?_0x36a870['add'](Le(_0x535e1f)):_0x36a870['add'](_0x535e1f);return Array['from'](_0x36a870);}(_0x44884d['getSelectedBlocks'](),_0x1f22dd,_0x3cdc0c['model']['schema']);_0x3cdc0c['model']['change'](()=>{for(const _0x2aab66 of _0x4b0981)_0x56e61e['markBlockFormat'](_0x2aab66,{'commandName':_0x1b8107,'commandParams':[{'forceValue':!_0xd37591['value']}],'formatGroupId':'blockName'},Ee(_0x2aab66));});};}function _0x58738b(_0xe31476){return()=>{const _0x42e51c=function(_0x352644){let _0x4f3189=Array['from'](_0x352644);const _0x4fff89=_0x4f3189['findIndex'](_0x20f3d3=>'listItem'!=_0x20f3d3['name']);return _0x4fff89>-0x1&&(_0x4f3189=_0x4f3189['slice'](0x0,_0x4fff89)),_0x4f3189;}(_0x3cdc0c['model']['document']['selection']['getSelectedBlocks']()),_0x65a055=_0x3cdc0c['model']['createRange'](_0x3cdc0c['model']['createPositionAt'](_0x42e51c[0x0],'before'),_0x3cdc0c['model']['createPositionAt'](_0x42e51c[_0x42e51c['length']-0x1],'end'));_0x3cdc0c['model']['change'](()=>{_0x56e61e['markBlockFormat'](_0x65a055,{'commandName':_0xe31476,'commandParams':[],'formatGroupId':'listIndent'},function(_0x24029c){const _0x42976f=new Set();for(const _0x296edb of _0x24029c){let _0x499f95=_0x296edb['nextSibling'];for(;_0x499f95&&_0x499f95['getAttribute']('listIndent')>_0x296edb['getAttribute']('listIndent');)_0x42976f['add'](_0x499f95),_0x499f95=_0x499f95['nextSibling'];}return Array['from'](_0x42976f);}(_0x42e51c));});};}_0x56e61e['enableCommand']('numberedList',_0x5ae5af('numberedList')),_0x56e61e['enableCommand']('bulletedList',_0x5ae5af('bulletedList')),_0x5d4b4d&&_0x56e61e['enableCommand']('todoList',_0x5ae5af('todoList')),_0x56e61e['enableCommand']('indentList',_0x58738b('indentList')),_0x56e61e['enableCommand']('outdentList',_0x58738b('outdentList')),_0x5d4b4d&&_0x56e61e['enableCommand']('checkTodoList',()=>{const _0xd49db4=_0x3cdc0c['commands']['get']('checkTodoList'),_0xfc9bc9=Array['from'](_0xd49db4['_selectedElements']);_0xfc9bc9['filter'](_0x1c5092=>_0x1c5092['getAttribute']('todoListChecked')!=_0xd49db4['value']),_0x3cdc0c['model']['change'](()=>{for(const _0x33287d of _0xfc9bc9)_0x56e61e['markBlockFormat'](_0x33287d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xd49db4['value']}]});});}),_0x56e61e['descriptionFactory']['registerElementLabel']('listItem',_0x3b8ddf=>o(_0x2a2f81,'ELEMENT_LIST_ITEM',_0x3b8ddf)),_0x56e61e['descriptionFactory']['registerDescriptionCallback'](_0x493234=>{if('formatBlock'!=_0x493234['type']&&'formatInline'!=_0x493234['type'])return;const {data:_0x44a981}=_0x493234;if(_0x44a981){if('numberedList'==_0x44a981['commandName']||'bulletedList'==_0x44a981['commandName']||'todoList'==_0x44a981['commandName'])switch(_0x44a981['commandName']['replace']('List','')){case'bulleted':return _0x490389(o(_0x2a2f81,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x490389(o(_0x2a2f81,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x490389(o(_0x2a2f81,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44a981['commandName'])return{'type':'format','content':o(_0x2a2f81,'*Indent:*\x20%0',o(_0x2a2f81,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44a981['commandName'])return{'type':'format','content':o(_0x2a2f81,'*Outdent:*\x20%0',o(_0x2a2f81,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44a981['commandName'])return _0x44a981['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a2f81,'*Check\x20item*')}:{'type':'format','content':o(_0x2a2f81,'*Uncheck\x20item*')};}function _0x490389(_0x3f89b9){return{'type':'format','content':o(_0x2a2f81,'*Change\x20to:*\x20%0',_0x3f89b9)};}});}}function Le(_0x54e6be){const _0x19f56b=_0x54e6be['getAttribute']('listIndent');if(0x0==_0x19f56b)return _0x54e6be;let _0x3a4d0c=_0x54e6be;for(;_0x54e6be['previousSibling']&&_0x54e6be['previousSibling']['is']('element','listItem');){const _0xa2458c=_0x54e6be['previousSibling']['getAttribute']('listIndent');if(_0xa2458c==_0x19f56b)_0x3a4d0c=_0x54e6be['previousSibling'];else{if(_0xa2458c<_0x19f56b)break;}_0x54e6be=_0x54e6be['previousSibling'];}return _0x3a4d0c;}function Ee(_0x5c0f4f){const _0x8d76e8=[];if(_0x5c0f4f['is']('element','listItem')&&_0x5c0f4f['getAttribute']('listIndent')>0x0){let _0x309ce3=_0x5c0f4f['nextSibling'];for(;_0x309ce3&&'listItem'==_0x309ce3['name']&&_0x309ce3['getAttribute']('listIndent')==_0x5c0f4f['getAttribute']('listIndent');)_0x8d76e8['push'](_0x309ce3),_0x309ce3=_0x309ce3['nextSibling'];}return _0x8d76e8;}class wt extends _0x574be8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x12f964=this['editor']['config']['get']('list.properties'),_0xabb4e1=this['editor']['plugins']['get']('TrackChangesEditing');_0x12f964['styles']&&_0xabb4e1['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x12f964['reversed']&&_0xabb4e1['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x12f964['startIndex']&&_0xabb4e1['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xabb4e1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ca11c,_0x7dcc2={}){const _0x229362=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3a7f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x229362['markMultiRangeBlockFormat'](_0x2a3a7f,{'commandName':'listStyle','commandParams':[{'type':_0x7dcc2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xc9551b,_0x3c2769={}){const _0x5c2f64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18d46e=this['_getSuggestionBlocks'](_0x12b605=>_0x12b605['is']('element','listItem')&&'numbered'===_0x12b605['getAttribute']('listType'));if(_0x18d46e['length']<0x1)return;const _0x588473=_0x18d46e['map'](_0x40084d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40084d,'before'),this['editor']['model']['createPositionAt'](_0x40084d,0x0)));this['editor']['model']['change'](()=>{_0x5c2f64['markMultiRangeBlockFormat'](_0x588473,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c2769['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x46b3dc,_0x5157dc={}){const _0x36902c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2249ab=this['_getSuggestionBlocks'](_0x589fdc=>_0x589fdc['is']('element','listItem')&&'numbered'===_0x589fdc['getAttribute']('listType'));if(_0x2249ab['length']<0x1)return;const _0x6b6aff=_0x2249ab['map'](_0x58d617=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58d617,'before'),this['editor']['model']['createPositionAt'](_0x58d617,0x0)));this['editor']['model']['change'](()=>{_0x36902c['markMultiRangeBlockFormat'](_0x6b6aff,{'commandName':'listStart','commandParams':[{'startIndex':_0x5157dc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1659a5){if('formatBlock'!=_0x1659a5['type']&&'formatInline'!=_0x1659a5['type'])return;const _0x1afb22=this['editor']['locale'],{data:_0x42f30c}=_0x1659a5;if(!_0x42f30c)return;let _0x153dbd,_0x2a4087;switch(_0x42f30c['commandName']){case'listStyle':_0x153dbd='*Change\x20to:*\x20%0',_0x2a4087={'type':'format','content':o(_0x1afb22,_0x153dbd,o(_0x1afb22,this['_getTranslationKeyForListStyle'](_0x42f30c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x153dbd=_0x42f30c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a4087={'type':'format','content':o(_0x1afb22,_0x153dbd)};break;case'listStart':_0x153dbd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a4087={'type':'format','content':o(_0x1afb22,_0x153dbd,_0x42f30c['commandParams'][0x0]['startIndex'])};}return _0x2a4087;}['_getSuggestionBlocksForListStyle'](){const _0x8ebe2b=this['editor']['plugins']['get']('LegacyListUtils');let _0x48bc36=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x48bc36[0x0]?.['is']('element','listItem')&&_0x48bc36['unshift'](..._0x8ebe2b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x48bc36[_0x48bc36['length']-0x1]?.['is']('element','listItem')&&_0x48bc36['push'](..._0x8ebe2b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x48bc36=[...new Set(_0x48bc36)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x48bc36=_0x48bc36['filter'](_0x838331=>_0x838331['is']('element','listItem'))),_0x48bc36;}['_getSuggestionBlocks'](_0x322941){const _0x3af61d=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b02a3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x322941)['map'](_0x11eaf3=>{const _0x2a45a6=this['editor']['model']['createPositionAt'](_0x11eaf3,0x0);return[..._0x3af61d['getSiblingNodes'](_0x2a45a6,'backward'),..._0x3af61d['getSiblingNodes'](_0x2a45a6,'forward')];})['flat']();return _0x3b02a3=[...new Set(_0x3b02a3)],_0x3b02a3;}['_getTranslationKeyForListStyle'](_0x38a688){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x38a688)||'default')['toUpperCase']()+'_LIST_'+_0x38a688['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x574be8{['afterInit'](){const _0x349da6=this['editor'];if(!_0x349da6['plugins']['has']('MediaEmbedEditing'))return;const _0x4fd8fa=_0x349da6['plugins']['get']('TrackChangesEditing'),_0x367d57=_0x349da6['locale'];_0x4fd8fa['enableCommand']('mediaEmbed'),_0x4fd8fa['descriptionFactory']['registerElementLabel']('media',_0x88d6f8=>o(_0x367d57,'ELEMENT_MEDIA',_0x88d6f8));}}class bt extends _0x574be8{['afterInit'](){const _0x1677d8=this['editor'];_0x1677d8['plugins']['has']('MentionEditing')&&_0x1677d8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x574be8{['afterInit'](){const _0x45b574=this['editor'];if(!_0x45b574['plugins']['has']('MergeFieldsEditing'))return;const _0x1d3775=_0x45b574['plugins']['get']('TrackChangesEditing'),_0x43490a=_0x45b574['locale'];_0x1d3775['enableCommand']('insertMergeField'),_0x1d3775['enableCommand']('insertMergeFieldBlock'),_0x1d3775['enableCommand']('insertMergeFieldImage'),_0x1d3775['descriptionFactory']['registerElementLabel']('mergeField',_0x2c3749=>o(_0x43490a,'ELEMENT_MERGE_FIELD',_0x2c3749)),_0x1d3775['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x36a1d3=>o(_0x43490a,'ELEMENT_MERGE_FIELD',_0x36a1d3)),_0x1d3775['descriptionFactory']['registerDescriptionCallback'](_0x348563=>{if('insertion'!=_0x348563['type']&&'deletion'!=_0x348563['type'])return;const _0x54caa0=_0x348563['getContainedElement']();if(null==_0x54caa0)return;const _0x232cde=_0x45b574['plugins']['get']('MergeFieldsEditing');let _0x2b03e4;switch(_0x232cde['getMergeFieldType'](_0x54caa0)){case null:return;case'image':{const _0x148488=_0x232cde['unwrapAffixes'](_0x54caa0['getAttribute']('src'));_0x2b03e4=_0x232cde['getLabel'](_0x148488)||_0x148488;break;}default:{const _0x23941b=_0x54caa0['getAttribute']('id');_0x2b03e4=_0x232cde['getLabel'](_0x23941b)||_0x23941b;break;}}return'insertion'==_0x348563['type']?{'type':'insertion','content':o(_0x43490a,'*Insert:*\x20%0','\x22'+_0x2b03e4+'\x22\x20'+o(_0x43490a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x43490a,'*Remove:*\x20%0','\x22'+_0x2b03e4+'\x22\x20'+o(_0x43490a,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x574be8{['afterInit'](){const _0x33c8d2=this['editor'],_0x4ddac4=_0x33c8d2['plugins']['get']('TrackChangesEditing');_0x33c8d2['plugins']['has']('MultiLevelList')&&(_0x4ddac4['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ddac4['descriptionFactory']['registerDescriptionCallback'](_0x5de636=>this['handleDescriptions'](_0x5de636)));}['handleDescriptions'](_0xc17ab2){const _0x2b0a6f=this['editor']['locale'],{data:_0x45547f}=_0xc17ab2,_0x4003d0={'type':'format','content':''};if(_0x45547f&&'listMarkerStyle'==_0x45547f['key']){if(!_0x45547f['oldValue'])return{'type':'format','content':o(_0x2b0a6f,'*Set\x20format:*\x20%0',o(_0x2b0a6f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45547f['newValue']+')'};if(!_0x45547f['newValue']){let _0x59c36d=_0xc17ab2['head'];for(;_0x59c36d;){if(_0x59c36d['data']&&'listType'==_0x59c36d['data']['key']&&_0x59c36d['data']['newValue'])return _0x4003d0;_0x59c36d=_0x59c36d['next'];}return{'type':'format','content':o(_0x2b0a6f,'*Remove\x20format:*\x20%0',o(_0x2b0a6f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45547f['oldValue']+')'};}}}}class St extends _0x574be8{['afterInit'](){const _0xa1769f=this['editor'];if(!_0xa1769f['plugins']['has']('PageBreakEditing'))return;_0xa1769f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3cb010=_0xa1769f['plugins']['get']('TrackChangesEditing'),_0x3bf8ee=_0xa1769f['locale'];_0x3cb010['descriptionFactory']['registerElementLabel']('pageBreak',_0x303a98=>o(_0x3bf8ee,'ELEMENT_PAGE_BREAK',_0x303a98));}}class It extends _0x574be8{['afterInit'](){const _0x492202=this['editor'];if(!_0x492202['plugins']['has']('Paragraph'))return;const _0x3af8f7=_0x492202['locale'],_0x187770=_0x492202['plugins']['get']('TrackChangesEditing');_0x187770['descriptionFactory']['registerElementLabel']('paragraph',_0x35cbd6=>o(_0x3af8f7,'ELEMENT_PARAGRAPH',_0x35cbd6)),_0x187770['enableDefaultAttributesIntegration']('paragraph'),_0x187770['enableCommand']('insertParagraph');const _0x165b49=_0x187770['descriptionFactory'];_0x165b49['registerDescriptionCallback'](_0x4ccd68=>{if('insertion'!==_0x4ccd68['type'])return;const {start:_0x3e2395,end:_0x14e3dd}=_0x4ccd68['getFirstRange']();if(!_0x3e2395['isTouching'](_0x14e3dd)||!_0x3e2395['nodeAfter'])return;const _0x151700=_0x492202['model']['schema'],_0x2361b2=_0x3e2395['nodeAfter'];return _0x151700['isBlock'](_0x2361b2)&&!_0x151700['isLimit'](_0x2361b2)&&_0x151700['checkChild'](_0x2361b2,'$text')?{'type':'insertion','content':o(_0x3af8f7,'*Insert:*\x20%0',_0x165b49['getItemLabel'](_0x2361b2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547ac9=this['editor'],_0xbef6df=_0x547ac9['locale'];_0x547ac9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20534c=>{if('formatBlock'!=_0x20534c['type'])return;const {data:_0xfdae2d}=_0x20534c;return _0xfdae2d&&'paragraph'==_0xfdae2d['commandName']?{'type':'format','content':o(_0xbef6df,'*Change\x20to:*\x20%0',o(_0xbef6df,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x574be8{['afterInit'](){const _0x57f74f=this['editor'];_0x57f74f['commands']['get']('replaceSource')&&_0x57f74f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x574be8{['afterInit'](){const _0x4e9da5=this['editor'];if(!_0x4e9da5['plugins']['has']('RemoveFormatEditing'))return;_0x4e9da5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50666c=this['editor'];_0x50666c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9878=>{if('formatBlock'!=_0x5a9878['type']&&'formatInline'!=_0x5a9878['type'])return;const {data:_0x47e7db}=_0x5a9878;return _0x47e7db&&'removeFormat'==_0x47e7db['commandName']?{'type':'format','content':o(_0x50666c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x574be8{['afterInit'](){const _0x4c45f7=this['editor'];if(!_0x4c45f7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4e1314=_0x4c45f7['plugins']['get']('TrackChangesEditing');_0x4e1314['enableCommand']('goToPreviousRestrictedEditingException'),_0x4e1314['enableCommand']('goToNextRestrictedEditingException');const _0x528181=_0x4c45f7['plugins']['get']('RestrictedEditingModeEditing');_0x528181['enableCommand']('trackChanges'),_0x528181['enableCommand']('acceptSuggestion'),_0x528181['enableCommand']('discardSuggestion'),_0x528181['enableCommand']('acceptAllSuggestions'),_0x528181['enableCommand']('discardAllSuggestions'),_0x528181['enableCommand']('acceptSelectedSuggestions'),_0x528181['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x574be8{['afterInit'](){const _0x5a3859=this['editor'];if(!_0x5a3859['plugins']['has']('ShiftEnter'))return;const _0x199e6f=_0x5a3859['plugins']['get']('TrackChangesEditing');_0x199e6f['enableCommand']('shiftEnter'),_0x199e6f['descriptionFactory']['registerElementLabel']('softBreak',_0x5f34d2=>o(_0x5a3859['locale'],'ELEMENT_LINE_BREAK',_0x5f34d2));}}function an(_0x527c2e,_0x567c18,_0x2aa2db){const _0x120102=[];for(const _0x4833cd of _0x567c18['getItems']())_0x4833cd['hasAttribute'](_0x527c2e)&&_0x120102['push'](_0x2aa2db['createRangeOn'](_0x4833cd));return _0x120102;}class $t extends _0x574be8{['afterInit'](){const _0x2080db=this['editor'],_0x28e189=_0x2080db['plugins']['get']('TrackChangesEditing');_0x2080db['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x28e189['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5717dc=this['editor'],_0x42bcb4=_0x5717dc['model'],_0x3a5d67=_0x5717dc['locale'],_0x44de38=_0x5717dc['plugins']['get']('TrackChangesEditing'),_0x543d0c='restrictedEditingException',_0x256411=_0x5717dc['commands']['get'](_0x543d0c);_0x44de38['enableCommand'](_0x543d0c,(_0x87ddab,_0x4d0eb9={})=>{const _0x258e8f=_0x42bcb4['document']['selection'];if(_0x258e8f['isCollapsed'])return void _0x87ddab(_0x4d0eb9);const _0x28c3e2=void 0x0!==_0x4d0eb9['forceValue']?_0x4d0eb9['forceValue']:!_0x256411['value'];_0x42bcb4['change'](()=>{const _0x290dfd=Array['from'](_0x258e8f['getRanges']());for(const _0x7381d of _0x290dfd){const _0x4fefe5=_0x28c3e2?[_0x7381d]:an(_0x543d0c,_0x7381d,_0x42bcb4);for(const _0x49823e of _0x4fefe5)_0x44de38['markInlineFormat'](_0x49823e,{'commandName':_0x543d0c,'commandParams':[{'forceValue':_0x28c3e2}]});}});}),_0x44de38['descriptionFactory']['registerDescriptionCallback'](_0x2bbcf2=>{if('formatBlock'!=_0x2bbcf2['type']&&'formatInline'!=_0x2bbcf2['type'])return;const {data:_0x34d787}=_0x2bbcf2;return _0x34d787&&_0x34d787['commandName']==_0x543d0c?_0x34d787['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a5d67,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3a5d67,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xe1cf2=this['editor'],_0x5c127d=_0xe1cf2['locale'],_0x4fb40f=_0xe1cf2['plugins']['get']('TrackChangesEditing'),_0x1635b3='restrictedEditingExceptionBlock',_0x225c96=this['editor']['commands']['get'](_0x1635b3);_0x4fb40f['enableCommand'](_0x1635b3,(_0x2df448,_0x494b3c={})=>{const _0xc282b4=this['editor']['model']['document']['selection'],_0x3b7a22=_0x494b3c&&void 0x0!==_0x494b3c['forceValue']?_0x494b3c['forceValue']:!_0x225c96['value'];let _0x2d4920=[];if(_0x3b7a22){const _0x19fa21=Array['from'](_0xc282b4['getSelectedBlocks']())['filter'](_0xecf805=>function(_0xda1c97){return!!_0xda1c97['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xecf805)||function(_0x17d7f6,_0x21d8b6){const _0x3ecc01=_0x21d8b6['createContext'](_0x17d7f6['parent']);if(!_0x21d8b6['checkChild'](_0x3ecc01,'restrictedEditingException'))return!0x1;if(!_0x21d8b6['checkChild'](_0x3ecc01['push']('restrictedEditingException'),_0x17d7f6))return!0x1;return!0x0;}(_0xecf805,this['editor']['model']['schema']));_0x2d4920=to(_0x19fa21,_0xe1cf2['model']);}else{const _0x38fa8=Array['from'](_0xc282b4['getSelectedBlocks']())['map'](_0x1a97f4=>function(_0xebd446){let _0x495ea1=_0xebd446;for(;_0x495ea1['parent'];){if('restrictedEditingException'==_0x495ea1['parent']['name'])return _0x495ea1;_0x495ea1=_0x495ea1['parent'];}return null;}(_0x1a97f4))['filter'](_0x2501db=>!!_0x2501db);_0x2d4920=to(_0x38fa8,_0xe1cf2['model']);}_0xe1cf2['model']['change'](()=>{for(const _0x53dfbd of _0x2d4920)_0x4fb40f['markBlockFormat'](_0x53dfbd,{'commandName':_0x1635b3,'commandParams':[{'forceValue':_0x3b7a22}]});});}),_0x4fb40f['descriptionFactory']['registerDescriptionCallback'](_0x455545=>{const {data:_0x43b6e3}=_0x455545;if(_0x43b6e3&&_0x43b6e3['commandName']==_0x1635b3)return _0x43b6e3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c127d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c127d,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x574be8{['afterInit'](){const _0x139ef4=this['editor'];if(!_0x139ef4['plugins']['has']('Style')||!_0x139ef4['plugins']['has']('DataSchema'))return;const _0x19f4b4=_0x139ef4['plugins']['get']('TrackChangesEditing'),_0x25dc1e=_0x139ef4['locale'],_0x1e850a=_0x139ef4['config']['get']('style')||{},_0x3f5a36=_0x139ef4['plugins']['get']('GeneralHtmlSupport'),_0x46e61f=_0x139ef4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x139ef4['plugins']['get']('DataSchema'),_0x1e850a['definitions']);_0x19f4b4['enableDefaultAttributesIntegration']('style');const _0x1d4e17=new Set();for(const _0x124966 of _0x46e61f['block']){const _0x52d39e=_0x3f5a36['getGhsAttributeNameForElement'](_0x124966['element']);_0x1d4e17['add'](_0x52d39e);}const _0xdd0953=new Set();for(const _0x1e4ee9 of _0x46e61f['inline']){const _0x4f00e4=_0x3f5a36['getGhsAttributeNameForElement'](_0x1e4ee9['element']);_0xdd0953['add'](_0x4f00e4);for(const _0x18f6ed of _0x1e4ee9['ghsAttributes'])_0xdd0953['add'](_0x18f6ed);}for(const _0x1f2921 of _0x1d4e17)_0x19f4b4['descriptionFactory']['registerAttributeLabel'](_0x1f2921,o(_0x25dc1e,'FORMAT_STYLE'));for(const _0x332de8 of _0xdd0953)_0x19f4b4['descriptionFactory']['registerAttributeLabel'](_0x332de8,o(_0x25dc1e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x68354d=this['editor'],_0x1cbc64=_0x68354d['locale'];_0x68354d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44849a=>{if('formatBlock'!=_0x44849a['type']&&'formatInline'!=_0x44849a['type'])return;const {data:_0x313902}=_0x44849a;return _0x313902&&'style'===_0x313902['commandName']?_0x313902['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cbc64,'*Set\x20format:*\x20%0',_0x313902['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1cbc64,'*Remove\x20format:*\x20%0',_0x313902['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x574be8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x599ef9){super(_0x599ef9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x52d009=this['editor'],_0x4a422c=_0x52d009['model']['document']['selection'];if(!_0x52d009['plugins']['has']('TableEditing'))return;const _0x90bb64=_0x52d009['locale'],_0xaf4a87=_0x52d009['plugins']['get']('TrackChangesEditing'),_0xdf9dc6=_0x52d009['plugins']['get']('TableUtils');_0xaf4a87['descriptionFactory']['registerElementLabel']('table',_0x2cd7f1=>o(_0x90bb64,'ELEMENT_TABLE',_0x2cd7f1)),this['_setupColumnsRowsFixing'](),_0xaf4a87['enableCommand']('insertTable'),_0xaf4a87['enableCommand']('selectTableRow'),_0xaf4a87['enableCommand']('selectTableColumn');for(const _0x270a3f of['insertTableRowAbove','insertTableRowBelow']){const _0x1814bf=_0x52d009['commands']['get'](_0x270a3f);_0xaf4a87['enableCommand'](_0x270a3f,_0x246835=>{_0x52d009['model']['change'](_0x3429ce=>{_0x246835();const _0x5a625d='above'===_0x1814bf['order'],_0x11d52a=_0xdf9dc6['getSelectionAffectedTableCells'](_0x4a422c),_0x4dcf92=_0xdf9dc6['getRowIndexes'](_0x11d52a),_0xf85970=_0x5a625d?_0x4dcf92['first']-0x1:_0x4dcf92['last']+0x1,_0x1bd7ba=_0x11d52a[0x0]['findAncestor']('table'),_0x2ac863=_0xdf9dc6['createTableWalker'](_0x1bd7ba,{'startRow':_0xf85970,'endRow':_0xf85970}),_0x49172a=Array['from'](_0x2ac863)['map'](_0x2a809d=>_0x3429ce['createRangeOn'](_0x2a809d['cell']));_0xaf4a87['markMultiRangeInsertion'](_0x49172a,'tableRow');});});}for(const _0x2dc1a6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x391d32=_0x52d009['commands']['get'](_0x2dc1a6);_0xaf4a87['enableCommand'](_0x2dc1a6,_0x14c463=>{_0x52d009['model']['change'](_0x513c51=>{_0x14c463();const _0x318c69='left'===_0x391d32['order'],_0x53f883=_0xdf9dc6['getSelectionAffectedTableCells'](_0x4a422c),_0x39ec81=_0xdf9dc6['getColumnIndexes'](_0x53f883),_0x26dec7=_0x318c69?_0x39ec81['first']-0x1:_0x39ec81['last']+0x1,_0x162ae3=_0x53f883[0x0]['findAncestor']('table'),_0x2b6032=_0xdf9dc6['createTableWalker'](_0x162ae3,{'startRow':0x0,'column':_0x26dec7,'includeAllSlots':!0x1}),_0x55a0c6=Array['from'](_0x2b6032)['map'](_0xbcf763=>_0x513c51['createRangeOn'](_0xbcf763['cell']));_0xaf4a87['markMultiRangeInsertion'](_0x55a0c6,'tableColumn');});});}for(const _0x11f5b9 of['removeTableRow','removeTableColumn']){const _0x13edcb=_0x11f5b9['substr'](0xb),_0x2ce33b=_0x13edcb['toLowerCase'](),_0x4148af=_0x2ce33b['substr'](0x0,0x3)+'span',_0x3b0601='table'+_0x13edcb,_0x542cec='min'+_0x13edcb,_0x3acdd1='max'+_0x13edcb;_0xaf4a87['enableCommand'](_0x11f5b9,()=>{_0x52d009['model']['change'](_0x452382=>{const _0x118136=_0xdf9dc6['getSelectionAffectedTableCells'](_0x4a422c),_0x4d24a4=_0x118136[0x0]['findAncestor']('table');let _0x2ec8fa;if('removeTableRow'==_0x11f5b9){const _0x58317b=_0xdf9dc6['getRowIndexes'](_0x118136);_0x2ec8fa={'startRow':_0x58317b['first'],'endRow':_0x58317b['last'],'includeAllSlots':!0x0};}else{const _0x404ded=_0xdf9dc6['getColumnIndexes'](_0x118136);_0x2ec8fa={'startColumn':_0x404ded['first'],'endColumn':_0x404ded['last'],'includeAllSlots':!0x0};}const _0x556d8b=_0xdf9dc6['createTableWalker'](_0x4d24a4,_0x2ec8fa),_0x50e023=Array['from'](_0x556d8b)['map'](({cell:_0x2ace19})=>_0x2ace19),_0x430b99=_e(_0x50e023['filter'](_0x1bc45e=>_0x1bc45e['hasAttribute'](_0x4148af))),_0x2697d2=_e(_0x50e023['filter'](_0x5b9523=>!_0x5b9523['hasAttribute'](_0x4148af)))['map'](_0x24460e=>_0x452382['createRangeOn'](_0x24460e)),_0xb5758f=_0xaf4a87['markMultiRangeDeletion'](_0x2697d2,_0x3b0601);if(_0xb5758f&&('tableRow'==_0xb5758f['subType']||'tableColumn'==_0xb5758f['subType'])){const _0x2cd9d7=this['_getSuggestionCoords'](_0xb5758f);for(const _0x8a8e36 of _0x430b99){const _0x2f7814=_0x452382['createRangeOn'](_0x8a8e36),_0x4ce513=_0xdf9dc6['getCellLocation'](_0x8a8e36),_0x3e7094=_0x8a8e36['getAttribute'](_0x4148af)-0x1,_0x34077c=_0x2cd9d7[_0x542cec],_0x4f7a8d=_0x2cd9d7[_0x3acdd1];_0x34077c<=_0x4ce513[_0x2ce33b]&&_0x4ce513[_0x2ce33b]+_0x3e7094<=_0x4f7a8d&&_0xb5758f['addRange'](_0x2f7814);}}});});}function _0x46f8e4(_0x54fba3){const _0x54866e=Array['from'](_0x4a422c['getRanges']())['map'](_0x103185=>_0x32abf5['fromRange'](_0x103185));_0x52d009['model']['change'](_0x30ffef=>{const _0x217246=_0x30ffef['batch'];_0x54fba3=_0x54fba3['filter'](_0x133154=>'$graveyard'!=_0x133154['root']['rootName']),_0x30ffef['setSelection'](_0x54fba3),_0x52d009['commands']['get']('removeTableRow')['refresh'](),_0x52d009['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x52d009['model']['enqueueChange'](()=>{_0x52d009['model']['enqueueChange'](_0x217246,_0x3eb96e=>{const _0x4e8b0d=_0x54866e['filter'](_0x35c55d=>'$graveyard'!=_0x35c55d['root']['rootName']);_0x4e8b0d['length']>0x0&&_0x3eb96e['setSelection'](_0x4e8b0d);for(const _0x3382eb of _0x54866e)_0x3382eb['detach']();});});});}function _0x1cd4d3(_0x4ac408){_0x52d009['model']['change'](_0x405676=>{const _0x3f25c6=Array['from'](_0x4a422c['getRanges']())['map'](_0x8e2c84=>_0x32abf5['fromRange'](_0x8e2c84)),_0xc6122f=[];for(const _0x65e97a of _0x4ac408)for(const _0x13f334 of _0x65e97a['getItems']({'shallow':!0x0}))_0xc6122f['push'](_0x13f334);for(const _0x3c8770 of _0xc6122f)'$graveyard'!=_0x3c8770['root']['rootName']&&(_0x405676['setSelection'](_0x405676['createPositionAt'](_0x3c8770,0x0)),_0x52d009['commands']['get']('removeTableColumn')['refresh'](),_0x52d009['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3452da=_0x3f25c6['filter'](_0x4eba84=>'$graveyard'!=_0x4eba84['root']['rootName']);_0x3452da['length']>0x0&&_0x405676['setSelection'](_0x3452da);for(const _0x2c93e1 of _0x3f25c6)_0x2c93e1['detach']();});}function _0x10255e(_0x1afb7b,_0x547afd){return _0x547afd['every'](_0x3bcbb=>_0x1afb7b['some'](_0x58c41b=>_0x58c41b['end']['isEqual'](_0x3bcbb['start'])||_0x3bcbb['end']['isEqual'](_0x58c41b['start'])));}function _0x157f5b(_0x10ee10,_0x574340){return!_0x10ee10['some'](_0x227b4c=>_0x574340['some'](_0x340b1b=>_0x227b4c['isIntersecting'](_0x340b1b)))&&_0x10ee10['some'](_0xfddea3=>_0x574340['some'](_0x213a50=>_0xfddea3['end']['isTouching'](_0x213a50['start'])));}_0xaf4a87['descriptionFactory']['registerDescriptionCallback'](_0x39f9db=>{if('insertion'!=_0x39f9db['type']&&'deletion'!=_0x39f9db['type'])return;const _0x15002a=_0x39f9db['getContainedElement']();if(null!=_0x15002a&&_0x15002a['is']('element','table')){if('insertion'==_0x39f9db['type']){const _0x381643=_0x39f9db['getItems']()['filter'](_0x2a1542=>_0x2a1542['is']('$textProxy'))['map'](_0xba46fe=>_0xba46fe['data']);if(_0x381643['length'])return{'type':'insertion','content':o(_0x90bb64,'*Insert:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x381643['join']('\x20')+'\x22'))};}if('deletion'==_0x39f9db['type']){const _0x382e96=_0x39f9db['getItems']()['filter'](_0x3c936b=>_0x3c936b['is']('$textProxy'))['map'](_0x35026e=>_0x35026e['data']);if(_0x382e96['length'])return{'type':'deletion','content':o(_0x90bb64,'*Remove:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x382e96['join']('\x20')+'\x22'))};}}}),_0xaf4a87['descriptionFactory']['registerDescriptionCallback'](_0x3e42d8=>{if('tableRow'==_0x3e42d8['subType']){const _0x72ec1e=_0x3e42d8['getItems']()['filter'](_0x36ca89=>_0x36ca89['is']('$textProxy'))['map'](_0x4c8eaf=>_0x4c8eaf['data']),_0x3cdfc9=this['_getSuggestionCoords'](_0x3e42d8),_0x442209=_0x3cdfc9['maxRow']-_0x3cdfc9['minRow']+0x1;if('insertion'==_0x3e42d8['type'])return _0x72ec1e['length']?{'type':'insertion','content':o(_0x90bb64,'*Insert:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x442209,'\x22'+_0x72ec1e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x90bb64,'*Insert:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_ROW',_0x442209))};if('deletion'==_0x3e42d8['type'])return _0x72ec1e['length']?{'type':'deletion','content':o(_0x90bb64,'*Remove:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x442209,'\x22'+_0x72ec1e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x90bb64,'*Remove:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_ROW',_0x442209))};}if('tableColumn'==_0x3e42d8['subType']){const _0x2c6bd8=_0x3e42d8['getItems']()['filter'](_0x274e8d=>_0x274e8d['is']('$textProxy'))['map'](_0x1384b6=>_0x1384b6['data']),_0x3a6116=this['_getSuggestionCoords'](_0x3e42d8),_0x4ccad9=_0x3a6116['maxColumn']-_0x3a6116['minColumn']+0x1;if('insertion'==_0x3e42d8['type'])return _0x2c6bd8['length']?{'type':'insertion','content':o(_0x90bb64,'*Insert:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ccad9,'\x22'+_0x2c6bd8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x90bb64,'*Insert:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_COLUMN',_0x4ccad9))};if('deletion'==_0x3e42d8['type'])return _0x2c6bd8['length']?{'type':'deletion','content':o(_0x90bb64,'*Remove:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ccad9,'\x22'+_0x2c6bd8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x90bb64,'*Remove:*\x20%0',o(_0x90bb64,'ELEMENT_TABLE_COLUMN',_0x4ccad9))};}}),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x46f8e4),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x46f8e4),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1cd4d3),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1cd4d3),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x10255e),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x10255e),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x157f5b),_0xaf4a87['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x157f5b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x263ac=this['editor'],_0x3bde22=_0x263ac['model']['document']['selection'];return(_0x3fd9ff,_0x58064b)=>{_0x263ac['model']['change'](_0x5bfac9=>{const {commandName:_0x3aa868,commandParams:_0x349ce5}=_0x58064b;let _0x35285b=_0x3fd9ff[0x0]['end']['nodeBefore'];_0x349ce5&&_0x349ce5[0x0]&&!0x1===_0x349ce5[0x0]['forceValue']&&(_0x35285b=_0x3fd9ff[0x0]['start']['nodeAfter']);const _0x50ddc6=_0x5bfac9['createRangeIn'](_0x35285b);if('$graveyard'==_0x50ddc6['root']['rootName'])return;const _0x2728df=Array['from'](_0x3bde22['getRanges']())['map'](_0xb3a8c2=>_0x32abf5['fromRange'](_0xb3a8c2));_0x5bfac9['setSelection'](_0x50ddc6),_0x263ac['commands']['get'](_0x3aa868)['refresh'](),_0x349ce5['push']({'forceDefaultExecution':!0x0}),_0x263ac['execute'](_0x3aa868,..._0x349ce5);const _0x1cbac4=_0x2728df['filter'](_0x482a59=>'$graveyard'!=_0x482a59['root']['rootName']);_0x1cbac4['length']>0x0&&_0x5bfac9['setSelection'](_0x1cbac4);for(const _0x42b534 of _0x2728df)_0x42b534['detach']();});};}['_getCoordsForCells'](_0x3449fa){const _0x40823f=this['editor']['plugins']['get']('TableUtils');let _0x2ab353=Number['MAX_SAFE_INTEGER'],_0x3a96b0=Number['MIN_SAFE_INTEGER'],_0x3db5a5=Number['MAX_SAFE_INTEGER'],_0x1eaf94=Number['MIN_SAFE_INTEGER'];for(const _0x41a6a5 of _0x3449fa){if('$graveyard'==_0x41a6a5['root']['rootName'])continue;const {row:_0x2bb104,column:_0x171feb}=_0x40823f['getCellLocation'](_0x41a6a5),_0xc2f665=_0x41a6a5['hasAttribute']('rowspan')?_0x41a6a5['getAttribute']('rowspan')-0x1:0x0,_0x6ab0f9=_0x41a6a5['hasAttribute']('colspan')?_0x41a6a5['getAttribute']('colspan')-0x1:0x0;_0x2ab353=_0x2bb104<_0x2ab353?_0x2bb104:_0x2ab353,_0x3a96b0=_0x2bb104+_0xc2f665>_0x3a96b0?_0x2bb104+_0xc2f665:_0x3a96b0,_0x3db5a5=_0x171feb<_0x3db5a5?_0x171feb:_0x3db5a5,_0x1eaf94=_0x171feb+_0x6ab0f9>_0x1eaf94?_0x171feb+_0x6ab0f9:_0x1eaf94;}return{'minRow':_0x2ab353,'maxRow':_0x3a96b0,'minColumn':_0x3db5a5,'maxColumn':_0x1eaf94};}['_setupColumnsRowsFixing'](){const _0x17e943=this['editor'],_0x2085c0=_0x17e943['plugins']['get']('TrackChangesEditing'),_0x4ab27f=_0x17e943['plugins']['get']('TableUtils');_0x17e943['model']['document']['on']('change:data',()=>{const _0x5f1ee5=Array['from'](_0x17e943['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2697fd,data:_0xd9e258}of _0x5f1ee5){const {group:_0x2a524e,id:_0x245bac,subType:_0x33a009}=_0x2085c0['_splitMarkerName'](_0x2697fd);if('suggestion'!=_0x2a524e)continue;if(null!=_0xd9e258['oldRange'])continue;const _0x319f48=_0x2085c0['getSuggestion'](_0x245bac);this['_tablePostFixingSubtypes']['includes'](_0x33a009)&&this['_tableSuggestions']['add'](_0x319f48);}},{'priority':'low'});const _0x55eefb=(_0xb5e7dd,_0x3a89d3)=>{let _0x4e3468=!0x1;const _0x1e7d47=_0x3a89d3['createRangeOn'](_0xb5e7dd),_0x184a48=_0xb5e7dd['findAncestor']('table'),_0x188411=_0x4ab27f['getCellLocation'](_0xb5e7dd);for(const _0x54a8e0 of this['_tableSuggestions']){const _0x1bf305=_0x54a8e0['subType'],_0x2acd46=_0x1bf305['startsWith']('tablePaste'),_0x2af6fe=_0x1bf305['substr'](_0x2acd46?0xa:0x5),_0x41d02e=_0x2af6fe['toLowerCase'](),_0x5ece45=_0x41d02e['substr'](0x0,0x3)+'span',_0xd4d88b='min'+_0x2af6fe,_0x1913c1='max'+_0x2af6fe;if(!_0x54a8e0['isInContent'])continue;if(_0x184a48!=_0x54a8e0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54a8e0['isIntersectingWithRange'](_0x1e7d47))continue;const _0x275e36=_0xb5e7dd['hasAttribute'](_0x5ece45)?_0xb5e7dd['getAttribute'](_0x5ece45)-0x1:0x0,_0x3f6835=this['_getSuggestionCoords'](_0x54a8e0),_0x3deb5c=_0x3f6835[_0xd4d88b],_0x175f61=_0x3f6835[_0x1913c1];_0x3deb5c<=_0x188411[_0x41d02e]&&_0x188411[_0x41d02e]+_0x275e36<=_0x175f61&&(_0x54a8e0['addRange'](_0x1e7d47),_0x4e3468=!0x0);}return _0x4e3468;};_0x17e943['model']['document']['registerPostFixer'](_0x237001=>{let _0x5275a6=!0x1;for(const _0x8c49b7 of _0x17e943['model']['document']['differ']['getChanges']())if('insert'==_0x8c49b7['type']){if('tableRow'==_0x8c49b7['name']){for(const _0x3cc91c of _0x8c49b7['position']['nodeAfter']['getChildren']())_0x5275a6=_0x5275a6||_0x55eefb(_0x3cc91c,_0x237001);}else'tableCell'==_0x8c49b7['name']&&(_0x5275a6=_0x5275a6||_0x55eefb(_0x8c49b7['position']['nodeAfter'],_0x237001));}return _0x5275a6;});}['_getSuggestionCoords'](_0x683b79){return this['_getCoordsForCells'](_0x683b79['getRanges']()['map'](_0xd52074=>_0xd52074['start']['nodeAfter']));}}function _e(_0x4f2476){return Array['from'](new Set(_0x4f2476)['values']());}class Bt extends _0x574be8{static get['requires'](){return[Dt];}['afterInit'](){const _0x305c81=this['editor'],_0x57aa3c=_0x305c81['model']['document']['selection'],_0x4b47b4=_0x305c81['locale'];if(!_0x305c81['plugins']['has']('TableEditing'))return;const _0x5877b6=_0x305c81['plugins']['get']('TrackChangesEditing'),_0x5da423=_0x305c81['plugins']['get']('TableUtils'),_0x389ee8=_0x305c81['plugins']['get'](Dt);_0x389ee8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5877b6['enableCommand']('mergeTableCells',()=>{const _0x99a1f2=_0x5da423['getSelectionAffectedTableCells'](_0x305c81['model']['document']['selection']);_0x305c81['model']['change'](()=>{_0x5877b6['markMultiRangeBlockFormat'](_0x99a1f2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x305c81['commands']['get']('mergeTableCells')['on']('execute',(_0x1bcae8,_0x3611c2)=>{_0x305c81['commands']['get']('trackChanges')['value']&&(_0x3611c2['length']>0x0&&_0x3611c2[_0x3611c2['length']-0x1]&&_0x3611c2[_0x3611c2['length']-0x1]['forceDefaultExecution']||_0x5877b6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1bcae8['stop']());},{'priority':'highest'});for(const _0x363118 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x59f1d4=_0x305c81['commands']['get'](_0x363118);_0x5877b6['enableCommand'](_0x363118,()=>{const _0x631fd9=_0x305c81['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22b7a8=>_0x22b7a8['is']('element','tableCell')),_0x56b130=_0x59f1d4['value'];_0x305c81['model']['change'](()=>{_0x5877b6['markMultiRangeBlockFormat']([_0x631fd9,_0x56b130],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x589ce8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x51cde4=_0x305c81['commands']['get'](_0x589ce8);_0x5877b6['enableCommand'](_0x589ce8,()=>{const _0x45761c=_0x5da423['getSelectionAffectedTableCells'](_0x305c81['model']['document']['selection'])[0x0],_0x187d95=_0x45761c['findAncestor']('table'),{column:_0x118ddc,row:_0x2219f1}=_0x5da423['getCellLocation'](_0x45761c);let _0x5f316d=[];if('horizontally'==_0x51cde4['direction']){const _0x3cd37d=_0x5da423['createTableWalker'](_0x187d95,{'startRow':_0x2219f1,'endRow':_0x2219f1,'includeAllSlots':!0x0});_0x5f316d=Array['from'](_0x3cd37d)['map'](_0x23776c=>_0x23776c['cell']);}else{const _0x42f4cf=_0x5da423['createTableWalker'](_0x187d95,{'column':_0x118ddc,'includeAllSlots':!0x0});_0x5f316d=Array['from'](_0x42f4cf)['map'](_0x47d2dc=>_0x47d2dc['cell']);}_0x305c81['model']['change'](_0x3a3b1a=>{_0x5877b6['markBlockFormat'](_0x3a3b1a['createRangeOn'](_0x45761c),{'commandName':_0x589ce8,'commandParams':[]},_0x5f316d,_0x589ce8);});});}_0x5877b6['descriptionFactory']['registerDescriptionCallback'](_0x46d90a=>{if('formatBlock'!=_0x46d90a['type']&&'formatInline'!=_0x46d90a['type'])return;const {data:_0x37dbda}=_0x46d90a;return _0x37dbda&&'mergeTableCells'==_0x37dbda['commandName']?{'type':'format','content':o(_0x4b47b4,'*Merge\x20cells*')}:void 0x0;}),_0x5877b6['descriptionFactory']['registerDescriptionCallback'](_0x45e2e2=>{if('formatBlock'!=_0x45e2e2['type']&&'formatInline'!=_0x45e2e2['type'])return;const {data:_0x27ae7f}=_0x45e2e2;return _0x27ae7f?'splitTableCellVertically'==_0x27ae7f['commandName']?{'type':'format','content':o(_0x4b47b4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x27ae7f['commandName']?{'type':'format','content':o(_0x4b47b4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5c86a9=_0x389ee8['_acceptFormatSuggestionCallbackFactory']();for(const _0x33a9f9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5877b6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33a9f9,'accept',_0x5c86a9);for(const _0x3f9644 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5877b6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f9644,'accept',_0x5c86a9);_0x5877b6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x18844e=>{_0x305c81['model']['change'](_0x5da30b=>{const _0x14dff4=Array['from'](_0x57aa3c['getRanges']())['map'](_0x1d6e9f=>_0x32abf5['fromRange'](_0x1d6e9f));_0x5da30b['setSelection'](_0x18844e),_0x305c81['commands']['get']('mergeTableCells')['refresh'](),_0x305c81['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x58aecd=_0x14dff4['filter'](_0x129b81=>'$graveyard'!=_0x129b81['root']['rootName']);_0x58aecd['length']>0x0&&_0x5da30b['setSelection'](_0x58aecd);for(const _0x14995d of _0x14dff4)_0x14995d['detach']();});});for(const _0x53ae95 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5627e9=_0x305c81['commands']['get'](_0x53ae95);_0x5627e9['on']('set:isEnabled',(_0x462196,_0x439a4e,_0x5932ee)=>{if(_0x5932ee){const _0x466bde=_0x305c81['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ad97e=>_0x1ad97e['is']('element','tableCell'));this['_areMergableCells'](_0x5627e9['value'],_0x466bde)||(_0x462196['return']=!0x1,_0x462196['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f5a11=this['editor']['commands']['get']('mergeTableCells'),_0x3184d1=this['editor']['plugins']['get']('TableUtils');if(!_0x4f5a11['isEnabled'])return!0x1;const _0x1fd6b8=_0x3184d1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33bbcf of _0x1fd6b8)for(const _0x5cd0d4 of _0x1fd6b8)if(_0x33bbcf!=_0x5cd0d4&&!this['_areMergableCells'](_0x33bbcf,_0x5cd0d4))return!0x1;return!0x0;}['_areMergableCells'](_0x523470,_0x35dab0){const _0x44048f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37cc25=this['editor']['model']['createRangeOn'](_0x523470),_0x145c7e=this['editor']['model']['createRangeOn'](_0x35dab0),_0x42f114=new Set(),_0xfea1c0=new Set();for(const _0x440e20 of _0x44048f['getSuggestions']())if(('insertion'==_0x440e20['type']||'deletion'==_0x440e20['type']||'mergeTableCells'==_0x440e20['subType'])&&_0x440e20['isInContent']){for(const _0x3f3b69 of _0x440e20['getRanges']())_0x3f3b69['containsRange'](_0x37cc25,!0x0)&&_0x42f114['add'](_0x440e20['type']+':'+_0x440e20['author']['id']),_0x3f3b69['containsRange'](_0x145c7e,!0x0)&&_0xfea1c0['add'](_0x440e20['type']+':'+_0x440e20['author']['id']);}if(_0x42f114['size']!=_0xfea1c0['size'])return!0x1;for(const _0x70f83a of _0x42f114)if(!_0xfea1c0['has'](_0x70f83a))return!0x1;return!0x0;}}class Ot extends _0x574be8{static get['requires'](){return[Dt];}['afterInit'](){const _0x309c34=this['editor'];if(!_0x309c34['plugins']['has']('TableEditing'))return;const _0x4e0691=_0x309c34['locale'],_0x12d064=_0x309c34['plugins']['get']('TrackChangesEditing');_0x12d064['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12d064['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12d064['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4e0691,'FORMAT_HEADER_ROW')),_0x12d064['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4e0691,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b8366=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc33375=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x1b8366['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc33375),_0x1b8366['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc33375),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x17df33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x336dd7=this['editor']['plugins']['get']('TableUtils');function _0x4916a5({showActiveMarker:_0x4b7d94=!0x0,setDataAttribute:_0x24548d=!0x0}={}){return(_0x3147a1,_0x1c968e,_0x10b7df)=>{const {type:_0x4194d2,id:_0x188afc}=_0x17df33['_splitMarkerName'](_0x1c968e['markerName']);if(!_0x17df33['hasSuggestion'](_0x188afc))return;const _0x5c13d9=_0x17df33['getSuggestion'](_0x188afc),_0xd9bf04=_0x5c13d9['data'];if('formatBlock'!=_0x5c13d9['type']||!_0xd9bf04||'setTableColumnHeader'!=_0xd9bf04['commandName'])return;if(_0x1c968e['item'])return void _0x3147a1['stop']();if(!_0x10b7df['consumable']['consume'](_0x1c968e['markerRange'],_0x3147a1['name']))return;const _0x1edf0c=_0x1c968e['markerRange']['start']['nodeAfter'],_0x34e1af=_0x1c968e['markerRange']['end']['nodeBefore'],_0x3315e3=_0x1edf0c['parent']['parent'],{column:_0x3e0592}=_0x336dd7['getCellLocation'](_0x1edf0c),{column:_0x134568}=_0x336dd7['getCellLocation'](_0x34e1af);for(let _0x52f188=_0x3e0592;_0x52f188<=_0x134568;_0x52f188++){const _0x372b57=_0x336dd7['createTableWalker'](_0x3315e3,{'column':_0x52f188,'includeAllSlots':!0x1});for(const _0x3afb64 of _0x372b57){const _0x37c09c=_0x3afb64['cell'],_0x29a8c4=_0x10b7df['mapper']['toViewElement'](_0x37c09c);_0x10b7df['writer']['addClass']('ck-suggestion-marker-'+_0x4194d2,_0x29a8c4),_0x24548d&&_0x10b7df['writer']['setAttribute']('data-suggestion',_0x188afc,_0x29a8c4),_0x10b7df['mapper']['bindElementToMarker'](_0x29a8c4,_0x1c968e['markerName']),_0x4b7d94&&(_0x17df33['activeMarkers']['includes'](_0x1c968e['markerName'])?_0x10b7df['writer']['addClass']('ck-suggestion-marker--active',_0x29a8c4):_0x10b7df['writer']['removeClass']('ck-suggestion-marker--active',_0x29a8c4));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4916a5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51dbd1,_0x1040fd,_0x283bb5)=>{_0x283bb5['options']['showSuggestionHighlights']&&_0x4916a5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x51dbd1,_0x1040fd,_0x283bb5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2513be,_0x20b95b,_0x3d020f)=>{const {type:_0x24912e,id:_0x1885f1}=_0x17df33['_splitMarkerName'](_0x20b95b['markerName']);if(!_0x17df33['hasSuggestion'](_0x1885f1))return;const _0x2a6860=_0x17df33['getSuggestion'](_0x1885f1),_0x464de9=_0x2a6860['data'];if('formatBlock'!=_0x2a6860['type']||!_0x464de9||'setTableColumnHeader'!=_0x464de9['commandName'])return;const _0x361acd=_0x3d020f['mapper']['markerNameToElements'](_0x20b95b['markerName']);if(_0x361acd){for(const _0x2c79d1 of _0x361acd)_0x3d020f['writer']['removeClass']('ck-suggestion-marker-'+_0x24912e,_0x2c79d1),_0x3d020f['writer']['removeClass']('ck-suggestion-marker--active',_0x2c79d1),_0x3d020f['writer']['removeAttribute']('data-suggestion',_0x2c79d1),_0x3d020f['mapper']['unbindElementFromMarkerName'](_0x2c79d1,_0x20b95b['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0xbd3aa1=this['editor'],_0x32483d=_0xbd3aa1['locale'];function _0x2a5d8f(_0x4073f1){return{'type':'format','content':o(_0x32483d,'*Format:*\x20%0',_0x4073f1)};}_0xbd3aa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59ff5f=>{if('formatBlock'!=_0x59ff5f['type'])return;const {data:_0x5eea81}=_0x59ff5f;if(_0x5eea81){if('setTableRowHeader'==_0x5eea81['commandName']){const _0x12002f=_0x5eea81['commandParams'][0x0]['forceValue'];return _0x2a5d8f(o(_0x32483d,_0x12002f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5eea81['commandName']){const _0x3c8586=_0x5eea81['commandParams'][0x0]['forceValue'];return _0x2a5d8f(o(_0x32483d,_0x3c8586?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x574be8{['afterInit'](){const _0x39292d=this['editor'],_0x2522d3=_0x39292d['locale'],_0xc23468=_0x39292d['plugins']['get']('TrackChangesEditing');function _0x3e0ae4(_0x5bc2b1){return{'type':'format','content':''+o(_0x2522d3,'*Set\x20table\x20type:*\x20%0',_0x5bc2b1)};}_0x39292d['plugins']['has']('TableLayout')&&(_0xc23468['enableCommand']('insertTableLayout'),_0xc23468['enableDefaultAttributesIntegration']('tableType'),_0xc23468['descriptionFactory']['registerElementLabel'](_0xa2ed3c=>_0xa2ed3c['is']('element','table')&&'layout'===_0xa2ed3c['getAttribute']('tableType'),_0x5de206=>o(_0x2522d3,'ELEMENT_LAYOUT_TABLE',_0x5de206)),_0xc23468['descriptionFactory']['registerDescriptionCallback'](_0x43098a=>{const {data:_0xcce1c}=_0x43098a;if(_0xcce1c&&'tableType'==_0xcce1c['key'])switch(_0xcce1c['newValue']){case'layout':return _0x3e0ae4(o(_0x2522d3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3e0ae4(o(_0x2522d3,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x5355af=>[_0x5355af,null]));class Mt extends _0x574be8{static get['requires'](){return[Dt];}['afterInit'](){const _0x1a3ca3=this['editor'];if(!_0x1a3ca3['plugins']['has']('TableClipboard'))return;const _0x54dde0=_0x1a3ca3['plugins']['get']('TrackChangesEditing'),_0x1c75e6=_0x1a3ca3['plugins']['get']('TableUtils'),_0x4f5cec=_0x1a3ca3['plugins']['get'](Dt),_0x2e60e8=_0x1a3ca3['plugins']['get']('TableClipboard'),_0x347120=_0x1a3ca3['plugins']['get']('TableSelection'),_0x261d81=_0x1a3ca3['plugins']['get'](_0x179724);_0x4f5cec['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1a3ca3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1a3ca3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x37cb61=null,_0x4e2353=!0x1;_0x261d81['on']('contentInsertion',(_0xe4f4a,_0x10c990)=>{_0x4e2353='paste'===_0x10c990['method'];}),_0x1a3ca3['model']['on']('insertContent',(_0x22d4c6,_0x35be80)=>{if(!_0x4e2353&&null===_0x347120['getSelectedTableCells']())return;const [_0x3c0acb,_0x37f02e]=_0x35be80,_0x43456c=_0x35be80[_0x35be80['length']-0x1];_0x43456c&&_0x43456c['forceDefaultExecution']||_0x54dde0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1141b5,_0x48a68d,_0x246612,_0xc641f5,_0x2688bf){if(_0x48a68d&&!_0x48a68d['is']('documentSelection'))return!0x1;const _0x37a692=_0x2688bf['getTableIfOnlyTableInContent'](_0x1141b5,_0x246612);if(!_0x37a692||!Oe(_0x37a692,void 0x0,_0xc641f5))return!0x1;const _0x1c21f1=_0xc641f5['getSelectionAffectedTableCells'](_0x246612['document']['selection']);if(!_0x1c21f1['length'])return!0x1;const _0x17c26d=_0x1c21f1[0x0]['findAncestor']('table'),_0x2ae7a1=_0xc641f5['getRowIndexes'](_0x1c21f1),_0x25c380=_0xc641f5['getColumnIndexes'](_0x1c21f1),_0xa45558={'startRow':_0x2ae7a1['first'],'endRow':_0x2ae7a1['last'],'startColumn':_0x25c380['first'],'endColumn':_0x25c380['last']};return 0x1==_0x1c21f1['length']&&(_0xa45558['endRow']+=_0xc641f5['getRows'](_0x37a692)-0x1,_0xa45558['endColumn']+=_0xc641f5['getColumns'](_0x37a692)-0x1),Oe(_0x17c26d,_0xa45558,_0xc641f5);}(_0x3c0acb,_0x37f02e,_0x1a3ca3['model'],_0x1c75e6,_0x2e60e8)&&(_0x22d4c6['stop'](),_0x37cb61={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a3ca3['model']['change'](()=>{_0x1a3ca3['model']['insertContent'](_0x35be80[0x0],_0x35be80[0x1],_0x35be80[0x2],{'forceDefaultExecution':!0x0});const _0x3ae6ea=_0x51a9d1(),{rowInsertionRanges:_0x11c3f9,columnInsertionRanges:_0x5dda67,insertionRanges:_0x14c7a6,deletionRanges:_0x361881,cells:_0x25359d}=_0x37cb61;_0x11c3f9['length']&&_0x54dde0['markMultiRangeInsertion'](_0x11c3f9,'tablePasteRow',{'tablePasteChainId':_0x3ae6ea}),_0x5dda67['length']&&_0x54dde0['markMultiRangeInsertion'](_0x5dda67,'tablePasteColumn',{'tablePasteChainId':_0x3ae6ea}),_0x14c7a6['length']&&(_0x54dde0['markMultiRangeInsertion'](_0x14c7a6,'tablePaste',{'tablePasteChainId':_0x3ae6ea,'skipNestingCheck':!0x0}),_0x14c7a6['forEach'](_0x1c0788=>_0x1c0788['detach']?.())),_0x361881['length']&&(_0x54dde0['markMultiRangeDeletion'](_0x361881,'tablePaste',{'tablePasteChainId':_0x3ae6ea,'skipNestingCheck':!0x0}),_0x361881['forEach'](_0x5a40b0=>_0x5a40b0['detach']?.()));const _0x1a3825=_0x54dde0['markMultiRangeBlockFormat'](_0x25359d['map'](({element:_0x1f4fdb})=>_0x1f4fdb),{'formatGroupId':_0x51a9d1()},[],'tablePasteCell',{'tablePasteChainId':_0x3ae6ea});if(_0x1a3825){const _0xb09c4b=_0x1a3825['getMarkers'](),_0x4bec62=[];for(const {element:_0x298a13,attributes:_0x3dbc21}of _0x25359d){if(!_0x3dbc21)continue;const _0x2ef428=_0x1a3ca3['model']['createRangeOn'](_0x298a13),_0x5a67db=_0xb09c4b['find'](_0xda1914=>_0xda1914['getRange']()['isEqual'](_0x2ef428));_0x5a67db&&_0x4bec62['push']([_0x5a67db['name'],_0x3dbc21]);}_0x4bec62['length']&&_0x1a3825['setAttribute']('markerAttributes',Object['fromEntries'](_0x4bec62));}_0x37cb61=null;}));},{'priority':_0x2d0a7c['high']+0xa}),_0x261d81['on']('contentInsertion',()=>{_0x4e2353=!0x1;},{'priority':'lowest'}),_0x1a3ca3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ed478,_0x104660)=>{const [_0x50f1a0,_0x33c7e8,,_0x196bae]=_0x104660;if(!_0x37cb61)return;_0x2ed478['stop']();const _0x4d4b62=_0x50f1a0['cell'],_0x2d26a8=_0x33c7e8,_0x4f934e=Be(_0x4d4b62),_0x2a00e1=Be(_0x2d26a8);_0x2ed478['return']=_0x4d4b62;let _0x191a73=null,_0x5eff12=null;if(_0x2a00e1||_0x4f934e){if(_0x4f934e&&!_0x2a00e1){_0x196bae['remove'](_0x4d4b62['getChild'](0x0));for(const _0x398814 of Array['from'](_0x2d26a8['getChildren']()))_0x196bae['insert'](_0x398814,_0x4d4b62,'end');const _0x450210=_0x37cb61['rowInsertionIndexes']['includes'](_0x50f1a0['row']),_0x39f203=_0x37cb61['columnInsertionIndexes']['includes'](_0x50f1a0['column']);_0x450210||_0x39f203||(_0x191a73=_0x32abf5['fromRange'](_0x196bae['createRangeIn'](_0x4d4b62)));}else _0x2a00e1&&!_0x4f934e&&(_0x5eff12=_0x196bae['createRangeIn'](_0x4d4b62));}else{const _0x4c032b=_0x196bae['createElement']('tableCellSuggestion'),_0x1a1eab=_0x196bae['createElement']('tableCellSuggestion');_0x196bae['wrap'](_0x196bae['createRangeIn'](_0x4d4b62),_0x1a1eab),_0x196bae['insert'](_0x4c032b,_0x4d4b62,0x0);for(const _0x2740b7 of Array['from'](_0x2d26a8['getChildren']()))_0x196bae['insert'](_0x2740b7,_0x4c032b,'end');_0x191a73=_0x32abf5['fromRange'](_0x196bae['createRangeOn'](_0x4c032b)),_0x5eff12=_0x32abf5['fromRange'](_0x196bae['createRangeOn'](_0x1a1eab));}const _0x136ffc=Array['from'](_0x2d26a8['getAttributes']())['filter'](([_0x48acfd])=>Re['includes'](_0x48acfd));_0x37cb61['cells']['push']({'element':_0x4d4b62,'attributes':_0x136ffc['length']?Object['fromEntries'](_0x136ffc):null}),_0x191a73&&_0x37cb61['insertionRanges']['push'](_0x191a73),_0x5eff12&&_0x37cb61['deletionRanges']['push'](_0x5eff12);},{'priority':'high'}),_0x1c75e6['on']('insertColumns',(_0x565c04,_0x5885dc)=>{const [_0x34c1f2,_0x2c25a7={}]=_0x5885dc;if(!_0x37cb61)return;const _0x19943d=_0x2c25a7['at']||0x0,_0x4f421c=_0x2c25a7['columns']||0x1;_0x37cb61['columnInsertionIndexes']=new Array(_0x4f421c)['fill'](_0x19943d)['map']((_0x374f1c,_0x1695a0)=>_0x374f1c+_0x1695a0);for(const {cell:_0x5870a0}of _0x1c75e6['createTableWalker'](_0x34c1f2,{'startColumn':_0x19943d,'endColumn':_0x19943d+_0x4f421c-0x1}))_0x37cb61['columnInsertionRanges']['push'](_0x1a3ca3['model']['createRangeOn'](_0x5870a0));},{'priority':'low'}),_0x1c75e6['on']('insertRows',(_0x55b88e,_0x3f0b65)=>{const [_0x78536f,_0x39030d={}]=_0x3f0b65;if(!_0x37cb61)return;const _0x4fd8b4=_0x39030d['at']||0x0,_0x2d04ff=_0x39030d['rows']||0x1;_0x37cb61['rowInsertionIndexes']=new Array(_0x2d04ff)['fill'](_0x4fd8b4)['map']((_0x5af078,_0x285241)=>_0x5af078+_0x285241);for(const {cell:_0x17ab30}of _0x1c75e6['createTableWalker'](_0x78536f,{'startRow':_0x4fd8b4,'endRow':_0x4fd8b4+_0x2d04ff-0x1}))_0x37cb61['rowInsertionRanges']['push'](_0x1a3ca3['model']['createRangeOn'](_0x17ab30));},{'priority':'low'}),_0x54dde0['descriptionFactory']['registerDescriptionCallback'](_0x38b6d5=>{if(_0x38b6d5['subType']&&_0x38b6d5['subType']['startsWith']('tablePaste'))return _0x38b6d5['previous']?{}:{'type':'insertion','content':o(_0x1a3ca3['locale'],'*Replace\x20table\x20cells*')};});const _0x40ea6a=()=>!0x1;for(const _0x755388 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x54dde0['_suggestionFactory']['registerCustomCallback']('insertion',_0x755388,'join',_0x40ea6a),_0x54dde0['_suggestionFactory']['registerCustomCallback']('deletion',_0x755388,'join',_0x40ea6a),_0x54dde0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x755388,'join',_0x40ea6a);_0x54dde0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x40ea6a),_0x54dde0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5563b9,_0x49d416,_0x225c31)=>{const _0x47403b=_0x5563b9['map'](_0xfb5bb8=>_0xfb5bb8['getContainedElement']())['filter'](_0x1e4b2f=>_0x1e4b2f),_0xe46a25=new Map(_0x47403b['map'](_0xeb60e6=>[_0xeb60e6,null]));if(_0x37cb61){for(const {element:_0x50d22b,attributes:_0x13138e}of _0x37cb61['cells'])_0x13138e&&_0xe46a25['set'](_0x50d22b,_0x13138e);}else{if(_0x225c31&&_0x225c31['markerAttributes'])for(const [_0x2e5307,_0x5a47f5]of Object['entries'](_0x225c31['markerAttributes'])){const _0x28ab59=_0x1a3ca3['model']['markers']['get'](_0x2e5307),_0x24626b=_0x28ab59?_0x28ab59['getRange']()['getContainedElement']():null;_0x24626b&&_0xe46a25['set'](_0x24626b,_0x5a47f5);}}_0x1a3ca3['model']['change'](_0x5b0fc8=>{for(const [_0x4cf934,_0x3c9486]of _0xe46a25)_0x5b0fc8['setAttributes']({...Ae,..._0x3c9486},_0x4cf934);});});const _0x507a04=(_0x5eaa1d,_0xb5c52a)=>{_0x54dde0['_suggestionFactory']['registerCustomCallback'](_0x5eaa1d,'tablePaste',_0xb5c52a,(_0x4ca7bd,_0xecf8e7,_0x5c1988)=>{_0x1a3ca3['model']['change'](_0x7d9a2=>{const _0x244617=[];for(const _0x5ad992 of _0x4ca7bd){const _0x49795c=_0x5ad992['start']['nodeAfter'];_0x49795c['is']('element','tableCellSuggestion')&&_0x244617['push'](_0x49795c);}_0x54dde0['_suggestionFactory']['getSuggestionCallback'](_0x5eaa1d,null,_0xb5c52a)(_0x4ca7bd,_0xecf8e7,_0x5c1988);for(const _0x54e70b of _0x244617)'$graveyard'!=_0x54e70b['root']['rootName']&&_0x7d9a2['unwrap'](_0x54e70b);});});};_0x507a04('insertion','accept'),_0x507a04('insertion','discard'),_0x507a04('deletion','accept'),_0x507a04('deletion','discard'),_0x54dde0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x222e70=>{const _0x2c6f38=_0x222e70['map'](_0x27dbf4=>_0x27dbf4['getContainedElement']()),_0xd7e332=_0x2c6f38[0x0]['findAncestor']('table'),{minRow:_0x17f71d,maxRow:_0x570430}=_0x4f5cec['_getCoordsForCells'](_0x2c6f38);_0x1c75e6['removeRows'](_0xd7e332,{'at':_0x17f71d,'rows':_0x570430-_0x17f71d+0x1});}),_0x54dde0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5220b0=>{const _0x2a022a=_0x5220b0['map'](_0x40c202=>_0x40c202['getContainedElement']()),_0x2e89e1=_0x2a022a[0x0]['findAncestor']('table'),{minColumn:_0x4dc06c,maxColumn:_0x164242}=_0x4f5cec['_getCoordsForCells'](_0x2a022a);_0x1c75e6['removeColumns'](_0x2e89e1,{'at':_0x4dc06c,'columns':_0x164242-_0x4dc06c+0x1});});const _0x433839=(_0x4778f4,_0x2db7ec)=>{if(!_0x2db7ec['subType']||!_0x2db7ec['subType']['startsWith']('tablePaste'))return;const _0x1be17c=_0x2db7ec['attributes']['tablePasteChainId'],_0x467519=_0x54dde0['getSuggestions']()['filter'](_0xb2d6d7=>_0xb2d6d7['isInContent']&&_0xb2d6d7['attributes']&&_0xb2d6d7['attributes']['tablePasteChainId']==_0x1be17c);_0x467519['length']&&_0x2db7ec['getAllAdjacentSuggestions']()['length']!=_0x467519['length']&&_0x467519['reduce']((_0x381a2e,_0x596daf)=>(_0x381a2e['next']=_0x596daf,_0x596daf['previous']=_0x381a2e,_0x596daf));};function _0x26dde6(_0x56754c,_0x3a7dbe=!0x0){const {id:_0x599cad,authorId:_0x1fff6c}=_0x54dde0['_splitMarkerName'](_0x56754c['markerName']),_0x5ac9e3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x24fe99=_0x54dde0['activeMarkers']['includes'](_0x56754c['markerName']);return _0x24fe99&&_0x5ac9e3['push']('ck-suggestion-marker--active'),{'classes':_0x5ac9e3,'attributes':{'data-suggestion':_0x599cad,'data-author-id':_0x1fff6c},'priority':_0x24fe99&&_0x3a7dbe?0xbc2:0xbb8};}_0x54dde0['on']('suggestionLoaded',_0x433839,{'priority':'high'}),_0x54dde0['on']('suggestionUnloaded',_0x433839,{'priority':'high'}),_0x1a3ca3['model']['document']['registerPostFixer'](()=>{let _0x51fe74=!0x1;const _0x38a19a=Array['from'](_0x1a3ca3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fa4b4,data:_0x20f3a2}of _0x38a19a){const {group:_0x5b9d27,type:_0x91d941,id:_0x5d1b01}=_0x54dde0['_splitMarkerName'](_0x2fa4b4);if('suggestion'!=_0x5b9d27||'deletion'!=_0x91d941||_0x20f3a2['oldRange'])continue;if(!_0x54dde0['hasSuggestion'](_0x5d1b01))continue;const _0x5eefaf=_0x54dde0['getSuggestion'](_0x5d1b01)['getRanges'](),_0x4cb1c8=_0x1a3ca3['plugins']['get']('Users')['me'];for(const _0x511dc7 of _0x54dde0['getSuggestions']()){if(!_0x511dc7['isInContent']||_0x511dc7['author']!=_0x4cb1c8)continue;if('formatBlock'!=_0x511dc7['type']||'tablePasteCell'!=_0x511dc7['subType'])continue;if(_0x511dc7['getRanges']()['every'](_0x375c11=>_0x5eefaf['some'](_0xacf617=>_0xacf617['containsRange'](_0x375c11,!0x0)))){for(const _0x4d995e of _0x511dc7['getAllAdjacentSuggestions']())_0x4d995e['isInContent']&&(_0x4d995e['discard'](),_0x51fe74=!0x0);}}}return _0x51fe74;}),_0x1a3ca3['model']['document']['registerPostFixer'](_0x3a286d=>{const _0x1fa136=_0x1a3ca3['commands']['get']('redo');if(!_0x1fa136||!_0x1fa136['_createdBatches']['has'](_0x3a286d['batch']))return!0x1;let _0x2a51fb=!0x1;const _0x37c0b4=_0x1a3ca3['plugins']['get']('Users')['me'],_0xc13acf=_0x1a3ca3['model']['document']['differ']['getChanges'](),_0x2d10fc=Array['from'](_0x1a3ca3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x47b878,data:_0x21f656})=>{const {group:_0x548a9c,subType:_0x77ef4b,authorId:_0x482c39}=_0x54dde0['_splitMarkerName'](_0x47b878);return'suggestion'==_0x548a9c&&'tablePaste'==_0x77ef4b&&_0x482c39==_0x37c0b4['id']&&!_0x21f656['oldRange'];});for(const _0x2d20f of _0xc13acf){if('insert'!=_0x2d20f['type']||'tableCellSuggestion'!=_0x2d20f['name']||0x1!=_0x2d20f['length'])continue;const _0x3f9fc5=_0x3a286d['createRange'](_0x2d20f['position'],_0x2d20f['position']['getShiftedBy'](0x1));if(!_0x2d10fc['find'](({data:_0x5a0ba7})=>_0x5a0ba7['newRange']['isEqual'](_0x3f9fc5))){for(const {name:_0x4deecd,data:_0x4c6d5f}of _0x2d10fc)if(_0x3f9fc5['containsRange'](_0x4c6d5f['newRange'])){_0x3a286d['updateMarker'](_0x4deecd,{'range':_0x3f9fc5}),_0x2a51fb=!0x0;break;}}}return _0x2a51fb;}),_0x1a3ca3['model']['document']['registerPostFixer'](_0x5acf30=>{let _0x3fbce6=!0x1;const _0x493c13=_0x1a3ca3['plugins']['get']('Users')['me'],_0x5f1fa8=_0x54dde0['getSuggestions']()['filter'](_0x5a394a=>_0x5a394a['isInContent']&&_0x5a394a['author']==_0x493c13),_0x6a410d=new Set(),_0x429c1d=new Set();for(const _0x542fd0 of _0x5f1fa8)if('tablePaste'==_0x542fd0['subType'])for(const _0x2af4af of _0x542fd0['getMarkers']()){const _0x1bf603=_0x2af4af['getRange']()['getContainedElement']();if(_0x1bf603){if(_0x1bf603['is']('element','tableCellSuggestion')&&Be(_0x1bf603)){_0x542fd0['removeMarker'](_0x2af4af['name']),_0x6a410d['add'](_0x1bf603),_0x3fbce6=!0x0;const _0x2b31c8=_0x1bf603['nextSibling'],_0x4ec734=_0x1bf603['previousSibling'],_0x55477f=_0x2b31c8&&_0x2b31c8['is']('element','tableCellSuggestion'),_0x50ee78=_0x4ec734&&_0x4ec734['is']('element','tableCellSuggestion');_0x55477f&&!_0x6a410d['has'](_0x2b31c8)&&_0x429c1d['add'](_0x2b31c8),_0x50ee78&&!_0x6a410d['has'](_0x4ec734)&&_0x429c1d['add'](_0x4ec734);}else _0x1bf603['is']('element','paragraph')&&_0x1bf603['isEmpty']&&(_0x542fd0['removeMarker'](_0x2af4af['name']),_0x3fbce6=!0x0);}}else{if('tablePasteCell'==_0x542fd0['subType']){if(!_0x542fd0['attributes']||!_0x542fd0['attributes']['tablePasteChainId'])continue;const _0x320855=_0x542fd0['attributes']['markerAttributes'];if(_0x320855&&Object['keys'](_0x320855)['length'])continue;const _0x1a6c26=_0x542fd0['attributes']['tablePasteChainId'];let _0x59ea61=!0x0,_0xa0b8f7=!0x0;for(const _0x360e2f of _0x5f1fa8)if(_0x360e2f['subType']&&_0x360e2f['subType']['startsWith']('tablePaste')){if(!_0x360e2f['attributes']['tablePasteChainId']){_0xa0b8f7=!0x1;break;}if(_0x360e2f['id']!=_0x542fd0['id']&&_0x360e2f['attributes']['tablePasteChainId']==_0x1a6c26){_0x59ea61=!0x1;break;}}_0xa0b8f7&&_0x59ea61&&(_0x542fd0['removeMarkers'](),_0x3fbce6=!0x0);}}for(const _0x54bd1e of _0x6a410d)_0x5acf30['remove'](_0x54bd1e);for(const _0x25bbe7 of _0x429c1d)_0x5acf30['unwrap'](_0x25bbe7);return _0x3fbce6;}),_0x1a3ca3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x591375=>_0x26dde6(_0x591375),'converterPriority':'high'}),_0x1a3ca3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c54be,_0x14851d)=>_0x14851d['options']['showSuggestionHighlights']?_0x26dde6(_0x4c54be,!0x1):null,'converterPriority':'high'});const _0x2763b5=_0x1a3ca3['editing']['view'];this['listenTo'](_0x2763b5['document'],'clipboardOutput',(_0x1db292,_0x4b08be)=>{const _0x164427=[];for(const _0x561da7 of _0x2763b5['createRangeIn'](_0x4b08be['content'])['getItems']())_0x561da7['is']('element','suggestion-td')&&_0x164427['push'](_0x561da7);_0x2763b5['change'](_0x1d0c83=>{for(const _0xb7f20 of _0x164427)_0x1d0c83['move'](_0x1d0c83['createRangeIn'](_0xb7f20),_0x1d0c83['createPositionBefore'](_0xb7f20)),_0x1d0c83['remove'](_0xb7f20);});});}}function Be(_0x296fe9){if(_0x296fe9['isEmpty'])return!0x0;const _0x55bcee=_0x296fe9['getChild'](0x0);return _0x55bcee['is']('element','paragraph')&&_0x55bcee['isEmpty'];}function Oe(_0x3c9dd8,_0x4ef5a4={},_0x5a208a){for(const {isAnchor:_0x5adbca,cellHeight:_0x2da31e,cellWidth:_0x20ac74}of _0x5a208a['createTableWalker'](_0x3c9dd8,{'includeAllSlots':!0x0,..._0x4ef5a4}))if(!_0x5adbca||0x1!=_0x2da31e||0x1!=_0x20ac74)return!0x1;return!0x0;}class Rt extends _0x574be8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44d144=this['editor']['plugins']['get']('TrackChangesEditing');_0x44d144['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44d144['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44d144['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44d144['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44d144['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44d144['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2b93e1,_0x720b53){const _0x2c125c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1493f1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x47283b=_0x720b53['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9f9541=_0x1493f1['getColumnGroupElement'](_0x47283b);let _0x4c10b3=_0x9f9541?_0x1493f1['getTableColumnsWidths'](_0x9f9541):null,_0x332f9a=_0x47283b['getAttribute']('tableWidth')||null;const _0x4c7281=_0x720b53['tableWidth']||_0x332f9a,_0x35a5fa=_0x720b53['columnWidths']||_0x4c10b3,_0x4d2174=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e46da of _0x2c125c['getSuggestions']()){const _0xa1a889=_0x3e46da['getContainedElement']();if('resizeTable'===_0x3e46da['subType']&&_0xa1a889===_0x47283b){_0x3e46da['author']!==_0x4d2174&&_0x3e46da['discard']();const _0x46ad55=_0x3e46da['data']['commandParams'];_0x332f9a=_0x46ad55[0x0]['tableWidth'],_0x4c10b3=_0x46ad55[0x0]['columnWidths'];break;}}_0x2b93e1({'table':_0x47283b,'tableWidth':_0x4c7281,'columnWidths':_0x35a5fa}),_0x2c125c['markBlockFormat'](_0x47283b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x332f9a,'columnWidths':_0x4c10b3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x699e1c){if('formatBlock'!=_0x699e1c['type']&&'formatInline'!=_0x699e1c['type'])return;const {data:_0x25e979}=_0x699e1c;if(_0x25e979&&'resizeTable'===_0x25e979['formatGroupId']){const _0x5918c7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5918c7)};}}}class Tt extends _0x574be8{['afterInit'](){const _0x3231ef=this['editor'];_0x3231ef['plugins']['has']('Template')&&_0x3231ef['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x574be8{['afterInit'](){const _0x4889c4=this['editor'];if(!_0x4889c4['commands']['get']('insertTableOfContents'))return;_0x4889c4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x591fc5=_0x4889c4['plugins']['get']('TrackChangesEditing'),_0x21282e=_0x4889c4['locale'];_0x591fc5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c3448=>o(_0x21282e,'ELEMENT_TABLE_OF_CONTENTS',_0x4c3448));}}class Ut extends _0x574be8{['afterInit'](){const _0x58faf5=this['editor'];if(!_0x58faf5['plugins']['has']('Title'))return;const _0x3f38e0=_0x58faf5['plugins']['get']('TrackChangesEditing');_0x3f38e0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x58faf5['locale'],'ELEMENT_TITLE')),_0x58faf5['model']['document']['registerPostFixer'](_0x1f61f7=>{let _0x5cea4a=!0x1;const _0x39089f=Array['from'](_0x58faf5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47148d,data:_0x214ea8}of _0x39089f){const {group:_0x32a897}=_0x3f38e0['_splitMarkerName'](_0x47148d);if('suggestion'!==_0x32a897||!_0x214ea8['newRange'])continue;const _0x47d5eb=_0x214ea8['newRange'],_0x531c5c=_0x47d5eb['end']['nodeBefore'];if(!_0x531c5c||!_0x531c5c['is']('element','title-content'))continue;if(!_0x47d5eb['start']['isTouching'](_0x47d5eb['end']))continue;const _0x399178=_0x58faf5['model']['schema']['getNearestSelectionRange'](_0x47d5eb['end'],'forward');if(_0x399178&&_0x399178['isCollapsed']){const _0x107544=_0x1f61f7['createRange'](_0x47d5eb['start'],_0x399178['start']);_0x107544['isEqual'](_0x47d5eb)||(_0x1f61f7['updateMarker'](_0x47148d,{'range':_0x107544}),_0x5cea4a=!0x0);}_0x5cea4a||(_0x1f61f7['removeMarker'](_0x47148d),_0x5cea4a=!0x0);}return _0x5cea4a;});}}class Vt extends _0x574be8{['afterInit'](){const _0x25690d=this['editor'],_0x221074=_0x25690d['plugins']['get']('TrackChangesEditing');_0x25690d['plugins']['has']('Uploadcare')&&(_0x221074['enableCommand']('uploadcare'),_0x25690d['plugins']['has']('UploadcareImageEdit')&&(_0x221074['enableCommand']('uploadcareImageEdit'),_0x221074['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x221074['descriptionFactory']['registerDescriptionCallback'](_0x392eac=>{if('attribute'!=_0x392eac['type'])return;const {data:_0x42fb2c}=_0x392eac;return _0x42fb2c&&'uploadcareImageId'==_0x42fb2c['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x574be8{['afterInit'](){const _0x29288c=this['editor'],_0x310a2a=_0x29288c['plugins']['get']('TrackChangesEditing');_0x29288c['plugins']['has']('UndoEditing')&&(_0x310a2a['enableCommand']('undo'),_0x310a2a['enableCommand']('redo'));}}class Pt extends _0x574be8{static get['requires'](){return[Dt];}['afterInit'](){const _0x51168a=this['editor'];if(!_0x51168a['plugins']['has']('TableCaptionEditing'))return;_0x51168a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x574be8{['tableProperties'];['tableCellProperties'];constructor(_0x186c7d){super(_0x186c7d),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x186c7d['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1f6553=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x40449a of this['tableProperties'])_0x1f6553['enableCommand'](_0x40449a,(_0x34aac5,_0x24006c)=>{const _0x3de52f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x40449a,[_0x3de52f],this['tableProperties'],'tableProperties',_0x34aac5,_0x24006c);});_0x1f6553['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f6553['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f6553['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xa9af5,_0xb4f7b0)=>this['handleDiscardAction'](this['tableProperties'],_0xa9af5,_0xb4f7b0)),_0x1f6553['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x293021 of this['tableCellProperties'])this['editor']['commands']['get'](_0x293021)&&_0x1f6553['enableCommand'](_0x293021,(_0x41398b,_0x7f4847)=>{const _0x99070c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x293021,_0x99070c,this['tableCellProperties'],'tableCellProperties',_0x41398b,_0x7f4847);});_0x1f6553['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f6553['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f6553['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x183340,_0x432deb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x183340,_0x432deb)),_0x1f6553['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1f6553['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1f6553['descriptionFactory']['registerDescriptionCallback'](_0x999608=>this['handleSuggestionDescription'](_0x999608)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x724ab5,_0x3047ae,_0x6d3239,_0x4718be,_0x3f03a4,_0x45ec33){const _0x578c08=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45ec33['batch'],()=>{for(const _0x26951e of _0x3047ae){if(this['_getSuggestion'](_0x26951e,_0x4718be))_0x3f03a4(_0x45ec33);else{const _0x5e2175={};for(const _0x54b463 of _0x6d3239){const _0x4e7199=_0x26951e['getAttribute'](_0x54b463);void 0x0!==_0x4e7199&&(_0x5e2175[_0x54b463]=_0x4e7199);}_0x3f03a4(_0x45ec33),_0x578c08['markBlockFormat'](_0x26951e,{'commandParams':[_0x5e2175]},[],_0x4718be);}}});}['handleDiscardAction'](_0x180923,_0x3fcf65,_0x572cf1){const _0x380acd=_0x3fcf65[0x0]['start']['nodeAfter'],_0x4e6fa3=_0x572cf1['commandParams'][0x0];this['editor']['model']['change'](_0x229a44=>{for(const _0x488963 of _0x180923)void 0x0!==_0x4e6fa3[_0x488963]?_0x229a44['setAttribute'](_0x488963,_0x4e6fa3[_0x488963],_0x380acd):_0x229a44['removeAttribute'](_0x488963,_0x380acd);});}['handleSuggestionDescription'](_0x4eeccd){if(_0x4eeccd['data'])switch(_0x4eeccd['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x33e84a,_0x49c063){const _0x12c276=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x21a196 of _0x12c276['getSuggestions']({'skipNotAttached':!0x0})){const _0x27fd51=_0x21a196['getContainedElement']();if(_0x21a196['subType']===_0x49c063&&_0x27fd51===_0x33e84a)return _0x21a196;}return null;}['_registerTablePropertiesAttributes'](){const _0x345211=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe5596b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2f8b04 of _0xe5596b){const _0xdd5f78=_0x2f8b04['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x345211['descriptionFactory']['registerAttributeLabel'](_0x2f8b04,o(this['editor']['locale'],'FORMAT_'+_0xdd5f78));}}}class Lt extends _0x574be8{['afterInit'](){const _0x5a8e63=this['editor'];if(!_0x5a8e63['plugins']['has']('LineHeight'))return;const _0xcce50a=_0x5a8e63['plugins']['get']('TrackChangesEditing'),_0x2472da=_0x5a8e63['locale'];_0xcce50a['enableDefaultAttributesIntegration']('lineHeight'),_0xcce50a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x2472da,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x574be8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xb4a06d,_0x397ab4,_0x40656f,_0x50406e,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x540e97){super(_0x540e97),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4141ef,_0x194570,_0x22b41d,_0x511de9)=>{this['_model']['change'](()=>{for(const _0x107e01 of[..._0x511de9,..._0x22b41d])this['_model']['markers']['has'](_0x107e01)&&_0x540e97['editing']['reconvertMarker'](_0x107e01);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x540e97['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x540e97['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x540e97['config']['get']('trackChanges.trackFormatChanges'),_0x540e97['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x540e97['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x540e97,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2d7342=this['editor'];_0x2d7342['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18b536,{writer:_0xb370b8})=>{let _0x38de80='suggestion:'+_0x18b536['getAttribute']('suggestion-type')+':'+_0x18b536['getAttribute']('id');return _0x18b536['getAttribute']('marker-count')&&(_0x38de80+=':'+_0x18b536['getAttribute']('marker-count')),_0xb370b8['createElement']('$marker',{'data-name':_0x38de80});}}),_0x2d7342['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2d7342['model']['document']['registerPostFixer'](_0x31d05f=>{let _0x5d446b=!0x1;const _0x4c981d=Array['from'](_0x2d7342['model']['document']['differ']['getChangedMarkers']()),_0x357a9c=new Set();for(const {name:_0x5a5173,data:_0x15d712}of _0x4c981d){const {group:_0x15055e,type:_0x35f268,subType:_0x26d9ab,id:_0x31090b}=this['_splitMarkerName'](_0x5a5173);if('suggestion'!==_0x15055e)continue;const _0x402444=_0x26d9ab?'suggestion:'+_0x35f268+':'+_0x26d9ab+':'+_0x31090b:'suggestion:'+_0x35f268+':'+_0x31090b,_0x4b2161=_0x2d7342['model']['markers']['getMarkersGroup'](_0x402444),_0x17d786=_0x2d7342['model']['markers']['get'](_0x5a5173),_0x5f1d79=this['_suggestions']['get'](_0x31090b);if(null!=_0x15d712['newRange']){'formatInline'==_0x35f268&&(_0x5d446b=_0x5d446b||Wt(_0x15d712['newRange'],_0x5a5173,_0x31d05f,_0x2d7342['model']['schema']));const _0x6947d0='attribute'==_0x35f268&&this['_isBlockAttribute'](_0x26d9ab['split']('|')[0x0]),_0x1f3ef9='attribute'==_0x35f268&&this['_isInlineAttribute'](_0x26d9ab['split']('|')[0x0]);if(_0x15d712['newRange']['isCollapsed']||'$graveyard'==_0x15d712['newRange']['root']['rootName']||'formatBlock'==_0x35f268&&!Qt(_0x15d712['newRange'])||_0x6947d0&&!Qt(_0x15d712['newRange'])||_0x1f3ef9&&Xt(_0x15d712['newRange'])||'deletion'==_0x35f268&&Xt(_0x15d712['newRange'])||_0x17d786&&Yt(_0x17d786,_0x4b2161))_0x31d05f['removeMarker'](_0x5a5173),_0x5d446b=!0x0;else{if(!_0x5f1d79||!_0x5f1d79['isInContent'])continue;if(_0x15d712['newRange']&&_0x15d712['oldRange']&&_0x15d712['newRange']['isEqual'](_0x15d712['oldRange']))continue;_0x357a9c['add'](_0x5f1d79);}}}return _0x357a9c['size']>0x0&&(_0x5d446b=!!this['_joinWithAdjacentSuggestions'](_0x357a9c)||_0x5d446b),_0x5d446b;}),_0x2d7342['model']['document']['registerPostFixer'](_0x2a0974=>{let _0x27c8c1=!0x1;for(const _0x208040 of _0x2d7342['model']['document']['differ']['getChanges']())if('insert'==_0x208040['type'])for(const _0x5141a4 of this['_suggestions']['values']()){if(_0x5141a4['isMultiRange']||!_0x5141a4['isInContent'])continue;const _0x41fefb='formatBlock'==_0x5141a4['type'],_0x4caaaa=this['_getAttributeKey'](_0x5141a4),_0x7de300=_0x4caaaa&&this['_isBlockAttribute'](_0x4caaaa);if(!_0x41fefb&&!_0x7de300)continue;const _0x2791ad=_0x5141a4['getFirstRange']();if(_0x2791ad['start']['parent']!=_0x2791ad['end']['parent']&&!_0x2791ad['end']['isAtEnd']){const _0x3ae88a=_0x2d7342['model']['createPositionAt'](_0x2791ad['start']['nodeAfter'],'end'),_0x3aed7b=_0x2d7342['model']['createRange'](_0x2791ad['start'],_0x3ae88a);_0x2a0974['updateMarker'](_0x5141a4['getFirstMarker'](),{'range':_0x3aed7b}),_0x27c8c1=!0x0;}}return _0x27c8c1;}),_0x2d7342['model']['document']['registerPostFixer'](_0x55c23=>this['_processAttributeChanges'](_0x55c23)),_0x2d7342['model']['document']['registerPostFixer'](_0x566545=>!_0x566545['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x566545)),_0x2d7342['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2d7342['model']['document']['on']('change:data',(_0x2435a5,_0xdce3d0)=>{if(!_0xdce3d0['isLocal']||_0xdce3d0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2f8caa=_0x2d7342['model']['document']['differ']['getChanges']();if(0x0==_0x2f8caa['length'])return;const _0x2690dc=[],_0x5a9450=_0x2f8caa['filter'](_0x2b7a0c=>'attribute'==_0x2b7a0c['type']),_0x131573=_0x2f8caa['filter'](_0x3decf2=>'insert'==_0x3decf2['type']&&'$text'!=_0x3decf2['name']);for(const _0x58e43b of _0x5a9450)this['_isRegisteredAttribute'](_0x58e43b['attributeKey'])&&_0x2690dc['push']({'key':_0x58e43b['attributeKey'],'newValue':_0x58e43b['attributeNewValue'],'oldValue':_0x58e43b['attributeOldValue'],'range':Zt(_0x58e43b['range'],_0x2d7342['model'])});for(const _0x423baf of _0x131573){if('rename'!=_0x423baf['action']&&'refresh'!=_0x423baf['action'])continue;const _0x1a3db3=tn(_0x423baf['position']['nodeAfter'],_0x2d7342['model']),_0x39cf98=_0x423baf['before'];'rename'==_0x423baf['action']&&_0x2690dc['push']({'key':m,'newValue':_0x423baf['name'],'oldValue':_0x39cf98['name'],'range':_0x1a3db3});for(const [_0x34149b,_0xf251c6]of _0x39cf98['attributes']){if(!this['_isRegisteredAttribute'](_0x34149b))continue;const _0x58262d=_0x423baf['attributes']['get'](_0x34149b);_0xf251c6!==_0x58262d&&_0x2690dc['push']({'key':_0x34149b,'newValue':_0x58262d,'oldValue':_0xf251c6,'range':_0x1a3db3});}for(const [_0xb83e12,_0x1cb13d]of _0x423baf['attributes'])this['_isRegisteredAttribute'](_0xb83e12)&&(_0x39cf98['attributes']['has'](_0xb83e12)||_0x2690dc['push']({'key':_0xb83e12,'newValue':_0x1cb13d,'oldValue':null,'range':_0x1a3db3}));}0x0!=_0x2690dc['length']&&_0x2d7342['model']['enqueueChange'](_0xdce3d0,_0x22d6ca=>{const _0x3e7362=_0x51a9d1();for(const {range:_0x416235,key:_0x5e3a0a,oldValue:_0x1257be,newValue:_0x3b4beb}of _0x2690dc)this['markAttributeChange'](_0x416235,_0x5e3a0a,_0x1257be,_0x3b4beb,{'groupId':_0x3e7362});this['_reduceExistingSuggestions'](_0x22d6ca,_0x2690dc);});},{'priority':'lowest'}),_0x2d7342['model']['markers']['on']('update:suggestion',(_0x23d213,_0x586563,_0xd9ac54)=>{if(null==_0xd9ac54){const {id:_0xacadd2}=this['_splitMarkerName'](_0x586563['name']),_0x1d62a6=this['_suggestions']['get'](_0xacadd2);_0x1d62a6&&_0x1d62a6['addMarkerName'](_0x586563['name']);}}),_0x2d7342['model']['document']['on']('change:data',()=>{const _0x30fbfe=Array['from'](_0x2d7342['model']['document']['differ']['getChangedMarkers']())['filter'](_0x322e29=>'suggestion'===this['_splitMarkerName'](_0x322e29['name'])['group']);if(0x0===_0x30fbfe['length'])return;_0x30fbfe['sort']((_0x374dbc,_0x157b5c)=>{const _0x3b93e0=_0x374dbc['data']['oldRange'],_0x218adf=_0x157b5c['data']['oldRange'];return null===_0x3b93e0&&null===_0x218adf?0x0:null===_0x3b93e0&&null!==_0x218adf?-0x1:null!==_0x3b93e0&&null===_0x218adf?0x1:_0x3b93e0['start']['isBefore'](_0x218adf['start'])?-0x1:0x1;});const _0x55888d=new Set(),_0x2baec9=new Set();for(const {name:_0x5559dc,data:_0x28edeb}of _0x30fbfe){const {id:_0x1d023e}=this['_splitMarkerName'](_0x5559dc);if(null===_0x28edeb['oldRange']){const _0x5c48d2=this['_handleNewSuggestionMarker'](_0x5559dc);_0x2baec9['add'](_0x5c48d2);}else{const _0x2f5182=this['_suggestions']['get'](_0x1d023e);null!==_0x28edeb['newRange']||_0x2f5182['isInContent']?(_0x55888d['add'](_0x2f5182['head']),_0x2baec9['add'](_0x2f5182)):this['_removeSuggestion'](_0x2f5182);}}_0x2baec9['size']>0x0&&this['_refreshSuggestionsChain'](_0x2baec9);for(const _0x59cfa5 of _0x55888d)this['fire']('suggestionChanged',_0x59cfa5);}),_0x2d7342['model']['on']('applyOperation',(_0x318eaf,_0x1d3373)=>{const _0x63f037=_0x1d3373[0x0];if(!this['_suggestions']['size'])return;if(!_0x63f037['isDocumentOperation'])return;if(_0x63f037['batch']['isUndo']||!_0x63f037['batch']['isLocal'])return;let _0x2ddef3,_0x53d1d7;switch(_0x63f037['type']){case'insert':_0x2ddef3=_0x2d7342['model']['createPositionAt'](_0x63f037['position']),_0x53d1d7=_0x2ddef3['getShiftedBy'](_0x63f037['howMany']);break;case'split':_0x2ddef3=_0x2d7342['model']['createPositionAt'](_0x63f037['splitPosition']),_0x53d1d7=_0x2d7342['model']['createPositionAt'](_0x63f037['moveTargetPosition']);break;case'move':_0x2ddef3=_0x2d7342['model']['createPositionAt'](_0x63f037['targetPosition']),_0x53d1d7=_0x2ddef3['getShiftedBy'](_0x63f037['howMany']);break;default:return;}const _0x5b370c=_0x2d7342['model']['createRange'](_0x2ddef3,_0x53d1d7);_0x2d7342['model']['change'](()=>{for(const {suggestion:_0x5e09ba,meta:_0x3f979f}of this['_findSuggestions'](_0x5b370c)){if(_0x5e09ba['isMultiRange'])continue;if('formatInline'==_0x5e09ba['type'])continue;const _0x541844=this['_getAttributeKey'](_0x5e09ba);if(_0x541844&&this['_isBlockAttribute'](_0x541844)&&'split'!=_0x63f037['type'])continue;const _0x553b73=_0x5e09ba['data']&&_0x5e09ba['data']['multipleBlocks'];('formatBlock'!=_0x5e09ba['type']||'split'==_0x63f037['type']&&!_0x553b73)&&(_0x3f979f['containsRangeInObject']||'insertion'==_0x5e09ba['type']&&_0x3f979f['isOwn']||_0x5e09ba['getFirstRange']()['containsRange'](_0x5b370c)&&this['_breakSuggestionMarker'](_0x5e09ba,_0x2ddef3,_0x53d1d7));}});},{'priority':'lowest'}),_0x2d7342['model']['on']('deleteContent',(_0x478d8b,_0x2c0298)=>{const _0x41f364=_0x2c0298[0x0],_0x3c2606=_0x2c0298[0x1];if(_0x3c2606&&_0x3c2606['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x41f364['isCollapsed'])return;const _0x36bd1b=_0x2d7342['model']['schema'],{start:_0x3a3a29,end:_0x1101a6}=_0x41f364['getFirstRange'](),_0x56950c=_0x3a3a29['nodeAfter']&&_0x36bd1b['isLimit'](_0x3a3a29['nodeAfter'])?null:_0x36bd1b['getNearestSelectionRange'](_0x3a3a29,'forward'),_0x28d3b2=_0x1101a6['nodeBefore']&&_0x36bd1b['isLimit'](_0x1101a6['nodeBefore'])?null:_0x36bd1b['getNearestSelectionRange'](_0x1101a6,'backward'),_0x4f7dbd=_0x2d7342['model']['createRange'](_0x56950c?_0x56950c['start']:_0x3a3a29,_0x28d3b2?_0x28d3b2['end']:_0x1101a6);_0x2d7342['model']['change'](_0x189700=>{this['markDeletion'](_0x4f7dbd);const _0x5522c3=_0x2d7342['model']['schema']['getNearestSelectionRange'](_0x4f7dbd['start']);_0x41f364['is']('documentSelection')?_0x189700['setSelection'](_0x5522c3):_0x41f364['setTo'](_0x5522c3);}),_0x478d8b['stop']();},{'priority':_0x2d0a7c['normal']+0xa}),_0x2d7342['model']['on']('insertContent',(_0xa32b60,_0x34a177)=>{const _0x2fecfa=_0x34a177[_0x34a177['length']-0x1];_0x2fecfa&&_0x2fecfa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2d7342['model']['change'](()=>{let _0x38d081=_0x2d7342['model']['insertContent'](_0x34a177[0x0],_0x34a177[0x1],_0x34a177[0x2],{'forceDefaultExecution':!0x0});if(!_0x38d081)return;_0xa32b60['return']=_0x38d081['clone']();const _0x1e0fbb=_0x38d081['end']['nodeBefore'],_0x2ab853=_0x2d7342['model']['schema'];_0x1e0fbb&&_0x2ab853['isBlock'](_0x1e0fbb)&&!_0x2ab853['isObject'](_0x1e0fbb)&&(_0x38d081=_0x2d7342['model']['createRange'](_0x38d081['start'],_0x2d7342['model']['createPositionAt'](_0x1e0fbb,'end'))),this['markInsertion'](_0x38d081);}),_0xa32b60['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x440601=new O(_0x2d7342,this['_suggestions']);_0x2d7342['commands']['add']('acceptSuggestion',_0x440601),this['enableCommand']('acceptSuggestion');const _0x501c76=new x(_0x2d7342,this['_suggestions']);_0x2d7342['commands']['add']('discardSuggestion',_0x501c76),this['enableCommand']('discardSuggestion'),_0x2d7342['commands']['add']('acceptAllSuggestions',new M(_0x2d7342,_0x440601,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2d7342['commands']['add']('discardAllSuggestions',new M(_0x2d7342,_0x501c76,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2d7342['commands']['add']('acceptSelectedSuggestions',new R(_0x2d7342,_0x440601,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2d7342['commands']['add']('discardSelectedSuggestions',new R(_0x2d7342,_0x501c76,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e287a=_0x2d7342['plugins']['get']('CommentsRepository');this['listenTo'](_0x3e287a,'addComment',(_0x138c41,{threadId:_0x2867b0})=>{const _0x31ef90=this['_suggestions']['get'](_0x2867b0);_0x31ef90&&_0x31ef90['commentThread']&&0x1===_0x31ef90['commentThread']['length']&&this['_updateSuggestionData'](_0x2867b0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e287a,'removeComment',(_0x560dc8,{threadId:_0x419772})=>{const _0x14e82d=this['_suggestions']['get'](_0x419772);_0x14e82d&&_0x14e82d['commentThread']&&!_0x14e82d['commentThread']['length']&&this['_updateSuggestionData'](_0x419772,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3ae466){const _0x2dfada=_0x1e489a([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1e1f6b=0x3d8d0df,_0x55c6c9=0x3df532f^_0x1e1f6b,_0xfc41b0=window[_0x1e489a([0x44,0x61,0x74,0x65])][_0x1e489a([0x6e,0x6f,0x77])](),_0x1c3355=_0x3ae466[_0x1e489a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x249ead=new window[(_0x1e489a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d6a5b=>{_0x1c3355[_0x1e489a([0x6f,0x6e,0x63,0x65])](_0x1e489a([0x72,0x65,0x61,0x64,0x79]),_0x4d6a5b);}),_0x78d6f4={[_0x1e489a([0x6b,0x74,0x79])]:_0x1e489a([0x45,0x43]),[_0x1e489a([0x75,0x73,0x65])]:_0x1e489a([0x73,0x69,0x67]),[_0x1e489a([0x63,0x72,0x76])]:_0x1e489a([0x50,0x2d,0x32,0x35,0x36]),[_0x1e489a([0x78])]:_0x1e489a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1e489a([0x79])]:_0x1e489a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1e489a([0x61,0x6c,0x67])]:_0x1e489a([0x45,0x53,0x32,0x35,0x36])},_0xaa6e27=_0x1c3355[_0x1e489a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e489a([0x67,0x65,0x74])](_0x1e489a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4fefc5(){let _0x285c35,_0x5601d7=null,_0x53d308=null;try{if(_0xaa6e27==_0x1e489a([0x47,0x50,0x4c]))return _0x1e489a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x285c35=_0x3fb1b6(),!_0x285c35)return _0x1e489a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x285c35[_0x1e489a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53d308=_0x1bec3c(_0x285c35[_0x1e489a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x285c35[_0x1e489a([0x6a,0x74,0x69])])),await _0x32a38e()?_0x279a93()?_0xf72b68()?_0x1e489a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4787fe()?(_0x285c35[_0x1e489a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e489a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5601d7=_0x30e201(_0x1e489a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b5796()):_0x1e489a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e489a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e489a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e489a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf72b68(){const _0x56571c=[_0x1e489a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e489a([0x74,0x72,0x69,0x61,0x6c])][_0x1e489a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x285c35[_0x1e489a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfc41b0/0x3e8:0xe10*_0x55c6c9;return _0x285c35[_0x1e489a([0x65,0x78,0x70])]<_0x56571c;}function _0x279a93(){const _0x5494af=_0x285c35[_0x1e489a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5494af)return!0x1;if(_0x5494af[_0x1e489a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e489a([0x2a])))return!0x0;if(_0x5494af[_0x1e489a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e489a([0x54,0x43])))return!0x0;if(_0x5494af[_0x1e489a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e489a([0x52,0x54,0x43]))){if(_0x297fb6())return!0x0;if(_0xd14d39()||_0x4d0006())return!0x0;}return!0x1;}function _0x4787fe(){const _0x567035=_0x285c35[_0x1e489a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x567035||0x0==_0x567035[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5104a5}=new URL(window[_0x1e489a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x567035[_0x1e489a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5104a5))return!0x0;const _0x449abe=_0x5104a5[_0x1e489a([0x73,0x70,0x6c,0x69,0x74])](_0x1e489a([0x2e]));return _0x567035[_0x1e489a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3968b9=>_0x3968b9[_0x1e489a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e489a([0x2a])))[_0x1e489a([0x6d,0x61,0x70])](_0x464d2f=>_0x464d2f[_0x1e489a([0x73,0x70,0x6c,0x69,0x74])](_0x1e489a([0x2e])))[_0x1e489a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50f82c=>_0x50f82c[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x449abe[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e489a([0x6d,0x61,0x70])](_0x5e8e10=>Array(_0x449abe[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e8e10[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e489a([0x66,0x69,0x6c,0x6c])](_0x5e8e10[0x0]===_0x1e489a([0x2a])?_0x1e489a([0x2a]):'')[_0x1e489a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e8e10))[_0x1e489a([0x73,0x6f,0x6d,0x65])](_0x5e4a60=>_0x449abe[_0x1e489a([0x65,0x76,0x65,0x72,0x79])]((_0x107be2,_0x59a5a1)=>_0x5e4a60[_0x59a5a1]===_0x107be2||_0x5e4a60[_0x59a5a1]===_0x1e489a([0x2a])));}function _0x1b5796(){return _0x5601d7&&_0x53d308?new window[(_0x1e489a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17e968,_0x3f4cae)=>{_0x5601d7[_0x1e489a([0x74,0x68,0x65,0x6e])](_0x17e968,_0x3f4cae),_0x53d308[_0x1e489a([0x74,0x68,0x65,0x6e])](_0x19ede2=>{_0x19ede2!=_0x1e489a([0x56,0x61,0x6c,0x69,0x64])&&_0x17e968(_0x19ede2);},_0x3f4cae);}):_0x5601d7||_0x53d308||_0x1e489a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bec3c(_0x4d1c9d,_0xb93e7c){return new window[(_0x1e489a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f6363=>{if(_0x56bc00())return _0x3f6363(_0x1e489a([0x56,0x61,0x6c,0x69,0x64]));_0x307844(),_0x1c3355[_0x1e489a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e489a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xabb1d5=!0x1;const _0x5a13e3=_0x51a9d1();function _0x4baa0e(_0x17fe68){return!!_0x17fe68&&(typeof _0x17fe68===_0x1e489a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17fe68===_0x1e489a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17fe68[_0x1e489a([0x74,0x68,0x65,0x6e])]===_0x1e489a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17fe68[_0x1e489a([0x63,0x61,0x74,0x63,0x68])]===_0x1e489a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e5e80(_0x5e0d18){_0x75e0cf(_0x5e0d18)[_0x1e489a([0x74,0x68,0x65,0x6e])](_0x2e2f96=>{if(!_0x2e2f96||_0x2e2f96[_0x1e489a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e489a([0x6f,0x6b]))return _0x1e489a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x440642(_0x1b92bb(_0x5a13e3+_0xb93e7c))!=_0x2e2f96[_0x1e489a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e489a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e489a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e489a([0x74,0x68,0x65,0x6e])](_0x19cec6=>(_0x4ef23a(),_0x19cec6),()=>{const _0x317874=_0x328991();return null==_0x317874?(_0x4ef23a(),_0x1e489a([0x56,0x61,0x6c,0x69,0x64])):_0x1e489a(_0xfc41b0-_0x317874>(0x27d454df^_0x1e1f6b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e489a([0x74,0x68,0x65,0x6e])](_0x3f6363)[_0x1e489a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f6363(_0x1e489a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a9e0a=0x3ee3e5f^_0x1e1f6b;function _0x4ef23a(){const _0x19d145=_0x1e489a([0x6c,0x6c,0x63,0x74,0x2d])+_0x440642(_0x1b92bb(_0x4d1c9d)),_0x2a92a6=_0x13bcfc(_0x440642(window[_0x1e489a([0x4d,0x61,0x74,0x68])][_0x1e489a([0x63,0x65,0x69,0x6c])](_0xfc41b0/_0x3a9e0a)));window[_0x1e489a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e489a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19d145,_0x2a92a6);}function _0x328991(){const _0x17dbdd=_0x1e489a([0x6c,0x6c,0x63,0x74,0x2d])+_0x440642(_0x1b92bb(_0x4d1c9d)),_0x10217a=window[_0x1e489a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e489a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17dbdd);return _0x10217a?window[_0x1e489a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13bcfc(_0x10217a),0x10)*_0x3a9e0a:null;}function _0x75e0cf(_0x562f3a){return new window[(_0x1e489a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x410746,_0x4bc8a3)=>{_0x562f3a[_0x1e489a([0x74,0x68,0x65,0x6e])](_0x410746,_0x4bc8a3),window[_0x1e489a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bc8a3,0x3d9041f^_0x1e1f6b);});}}_0x1c3355[_0x1e489a([0x6f,0x6e])](_0x1e489a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48cae9,_0x4129a6)=>{if(_0x4129a6[0x0]!=_0x4d1c9d)return _0x3f6363(_0x1e489a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4129a6[0x1]={..._0x4129a6[0x1],[_0x1e489a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a13e3};},{[_0x1e489a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e489a([0x68,0x69,0x67,0x68])}),_0x1c3355[_0x1e489a([0x6f,0x6e])](_0x1e489a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4cbf51=>{_0x4baa0e(_0x4cbf51[_0x1e489a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xabb1d5=!0x0,_0x1e5e80(_0x4cbf51[_0x1e489a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e489a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e489a([0x6c,0x6f,0x77])}),_0x249ead[_0x1e489a([0x74,0x68,0x65,0x6e])](()=>{_0xabb1d5||_0x3f6363(_0x1e489a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56bc00(){return _0x1c3355[_0x1e489a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e489a([0x76,0x69,0x65,0x77])][_0x1e489a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e489a([0x61,0x75,0x74,0x6f]);}function _0x307844(){_0x1c3355[_0x1e489a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e489a([0x76,0x69,0x65,0x77])][_0x1e489a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e489a([0x61,0x75,0x74,0x6f]);}}function _0x30e201(_0x34c63f){const _0xf3dbc4=[new window[(_0x1e489a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0d4b=>setTimeout(_0x5e0d4b,0x3d1ee13^_0x1e1f6b)),_0x249ead[_0x1e489a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e489a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10fd8e=>{let _0x6b3ccf=0x0;_0x1c3355[_0x1e489a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e489a([0x6f,0x6e])](_0x1e489a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x164600,_0x4713d1)=>{_0x4713d1[0x0][_0x1e489a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6b3ccf++,_0x6b3ccf==(0x3d8d537^_0x1e1f6b)&&(_0x10fd8e(),_0x164600[_0x1e489a([0x6f,0x66,0x66])]());});}))];return window[_0x1e489a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e489a([0x72,0x61,0x63,0x65])](_0xf3dbc4)[_0x1e489a([0x74,0x68,0x65,0x6e])](()=>_0x34c63f);}async function _0x34693e(){await _0x249ead,_0x1c3355[_0x1e489a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e489a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bdb2a,_0x1c3355[_0x1e489a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e489a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bdb2a,_0x1c3355[_0x1e489a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e489a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x297fb6(){return _0x4ce21d(_0x1e489a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xdc7b98(_0x1e489a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e489a([0x73,0x74,0x61,0x74,0x65])]==_0x1e489a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd14d39(){return _0x4ce21d(_0x1e489a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4d0006(){return _0x4ce21d(_0x1e489a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x583a1b(_0x1cf16e){const _0x1d059a=_0x29f238();_0x1c3355[_0x1d059a]=_0x1e489a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cf16e,_0x1cf16e!=_0x1e489a([0x56,0x61,0x6c,0x69,0x64])&&_0x34693e();}function _0x29f238(){const _0x552b8d=window[_0x1e489a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e489a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e489a([0x6e,0x6f,0x77])]())[_0x1e489a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e489a([0x2e]),'');let _0x368bdc=_0x1e489a([0x52]);for(let _0x56e75b=0x0;_0x56e75b<_0x552b8d[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56e75b+=0x2){let _0x3aff0f=window[_0x1e489a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x552b8d[_0x1e489a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56e75b,_0x56e75b+0x2));_0x3aff0f>=_0x2dfada[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aff0f-=_0x2dfada[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x368bdc+=_0x2dfada[_0x3aff0f];}return _0x368bdc;}function _0x3fb1b6(){const _0x3fbfd4=_0xaa6e27[_0x1e489a([0x73,0x70,0x6c,0x69,0x74])](_0x1e489a([0x2e]));if(0x3!=_0x3fbfd4[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10c81a(_0x3fbfd4[0x1]);function _0x10c81a(_0x42ee54){const _0x514fc3=_0x32e385(_0x42ee54);return _0x514fc3&&_0x42e55e()?_0x514fc3:null;function _0x42e55e(){const _0x42c4da=_0x514fc3[_0x1e489a([0x6a,0x74,0x69])],_0x27e33b=window[_0x1e489a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42c4da[_0x1e489a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42c4da[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb8b3b1={..._0x514fc3,[_0x1e489a([0x6a,0x74,0x69])]:_0x42c4da[_0x1e489a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42c4da[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb8b3b1[_0x1e489a([0x76,0x63])],_0x1b92bb(_0xb8b3b1)==_0x27e33b;}}}async function _0x32a38e(){let _0x3e0706=!0x0;try{const _0x59229f=_0xaa6e27[_0x1e489a([0x73,0x70,0x6c,0x69,0x74])](_0x1e489a([0x2e])),[_0x4145e7,_0x5d59a3,_0x1deaa8]=_0x59229f;return _0x482005(_0x4145e7),await _0x2fa6ef(_0x4145e7,_0x5d59a3,_0x1deaa8),_0x3e0706;}catch{return!0x1;}function _0x482005(_0x52aeed){const _0xc89a74=_0x32e385(_0x52aeed);_0xc89a74&&_0xc89a74[_0x1e489a([0x61,0x6c,0x67])]==_0x1e489a([0x45,0x53,0x32,0x35,0x36])||(_0x3e0706=!0x1);}async function _0x2fa6ef(_0x49d707,_0x15423e,_0x452abe){const _0x138964=window[_0x1e489a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e489a([0x66,0x72,0x6f,0x6d])](_0xdaf792(_0x452abe),_0x2fc3fc=>_0x2fc3fc[_0x1e489a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f22c3=new window[(_0x1e489a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e489a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49d707+_0x1e489a([0x2e])+_0x15423e),_0x19a54d=window[_0x1e489a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e489a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19a54d)return;const _0x452547=await _0x19a54d[_0x1e489a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e489a([0x6a,0x77,0x6b]),_0x78d6f4,{[_0x1e489a([0x6e,0x61,0x6d,0x65])]:_0x1e489a([0x45,0x43,0x44,0x53,0x41]),[_0x1e489a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e489a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e489a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19a54d[_0x1e489a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e489a([0x6e,0x61,0x6d,0x65])]:_0x1e489a([0x45,0x43,0x44,0x53,0x41]),[_0x1e489a([0x68,0x61,0x73,0x68])]:{[_0x1e489a([0x6e,0x61,0x6d,0x65])]:_0x1e489a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x452547,_0x138964,_0x3f22c3)||(_0x3e0706=!0x1);}}function _0x32e385(_0x1e542d){return _0x1e542d[_0x1e489a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e489a([0x65,0x79]))?JSON[_0x1e489a([0x70,0x61,0x72,0x73,0x65])](_0xdaf792(_0x1e542d)):null;}function _0xdaf792(_0x3bd2da){return window[_0x1e489a([0x61,0x74,0x6f,0x62])](_0x3bd2da[_0x1e489a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e489a([0x2b]))[_0x1e489a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e489a([0x2f])));}function _0x1b92bb(_0x489f65){let _0x378b52=0x1505;function _0x1209d3(_0x74b0f1){for(let _0x24f8db=0x0;_0x24f8db<_0x74b0f1[_0x1e489a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24f8db++){const _0x122ab7=_0x74b0f1[_0x1e489a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24f8db);_0x378b52=(_0x378b52<<0x5)+_0x378b52+_0x122ab7,_0x378b52&=_0x378b52;}}function _0x21128c(_0x24c937){Array[_0x1e489a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24c937)?_0x24c937[_0x1e489a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x21128c):_0x24c937&&typeof _0x24c937==_0x1e489a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e489a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24c937)[_0x1e489a([0x73,0x6f,0x72,0x74])]()[_0x1e489a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e2303,_0x4f8972])=>{_0x1209d3(_0x3e2303),_0x21128c(_0x4f8972);}):_0x1209d3(window[_0x1e489a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24c937));}return _0x21128c(_0x489f65),_0x378b52>>>0x0;}function _0x440642(_0x444734){return _0x444734[_0x1e489a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e489a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e489a([0x30]));}function _0x13bcfc(_0x1dcbbd){return _0x1dcbbd[_0x1e489a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e489a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e489a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ce21d(_0x51899f){return _0x1c3355[_0x1e489a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e489a([0x68,0x61,0x73])](_0x51899f);}function _0xdc7b98(_0x2aa69a){return _0x1c3355[_0x1e489a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e489a([0x67,0x65,0x74])](_0x2aa69a);}function _0x1bdb2a(){}function _0x1e489a(_0x8f8be3){return _0x8f8be3['map'](_0x5be201=>String['fromCharCode'](_0x5be201))['join']('');}_0x583a1b(await _0x4fefc5());}(this);}set['adapter'](_0x28eb08){if(this['_adapter'])throw new _0x1ada52('track-changes-adapter-already-set',this);this['_adapter']=_0x28eb08;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x192d14=!0x1,toJSON:_0x224ce5=!0x1}={}){const _0x218922=[];for(const _0x2b3a8e of this['_suggestions']['values']())_0x192d14&&!_0x2b3a8e['isInContent']||_0x218922['push'](_0x2b3a8e);return _0x224ce5?_0x218922['map'](_0x34428d=>_0x34428d['toJSON']()):_0x218922;}['getSuggestion'](_0x1cc1c8){const _0x205d65=this['_suggestions']['get'](_0x1cc1c8);if(!_0x205d65)throw new _0x1ada52('track-changes-suggestion-not-found',this);return _0x205d65;}['hasSuggestion'](_0x151c78){return this['_suggestions']['has'](_0x151c78);}['addSuggestionData'](_0x580e15){const {authorId:_0x1fe2c1,id:_0x43928a,originalSuggestionId:_0x4ca055,attributes:_0x5edcfc}=_0x580e15,[_0x216211,_0x45e762]=_0x580e15['type']['split'](':'),_0x486866=this['_suggestions']['get'](_0x43928a)||this['_createSuggestion'](_0x216211,_0x45e762,_0x43928a,_0x1fe2c1,_0x5edcfc,_0x4ca055);if(this['_addThreadToSuggestion'](_0x486866),this['_checkSuggestionCorrectness'](_0x486866,_0x216211,_0x45e762||null,_0x1fe2c1),_0x486866['createdAt']=_0x580e15['createdAt'],_0x486866['_isDataLoaded']=!0x0,_0x5edcfc&&_0x5edcfc['@external']){const _0x5cbdea=_0x5edcfc['@external'],_0x3e3257=this['_getExternalAuthor'](_0x5cbdea['authorName']);_0x486866['authoredAt']=_0x5cbdea['createdAt'],_0x486866['author']=_0x3e3257,_0x486866['isExternal']=!0x0;}else _0x486866['authoredAt']=_0x580e15['createdAt'];switch(_0x580e15['data']&&(_0x486866['data']=_0x580e15['data']),_0x580e15['attributes']&&(_0x486866['attributes']=_0x580e15['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x486866['_saved']=!0x0),this['_suggestionState']['get'](_0x486866)){case'notReady':this['_suggestionState']['set'](_0x486866,'dataReady');break;case'markerReady':_0x486866['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x486866])),this['_refreshSuggestionsChain'](new Set([_0x486866])),this['_suggestionState']['set'](_0x486866,'ready'),this['fire']('suggestionLoaded',_0x486866)):this['_suggestionState']['set'](_0x486866,'removed');}return _0x486866;}['acceptSuggestion'](_0x24058a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2980f9 of _0x24058a['getAllAdjacentSuggestions']())_0x2980f9['accept']();});});}['discardSuggestion'](_0x1920f9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x541b3c of _0x1920f9['getAllAdjacentSuggestions']())_0x541b3c['discard']();});});}['enableCommand'](_0x11557a,_0x1c1c66){const _0x211889=this['editor']['commands']['get'](_0x11557a);if(!_0x211889)throw new _0x1ada52('track-changes-command-not-found',this,{'commandName':_0x11557a});if(this['_enabledCommands']['has'](_0x211889))throw new _0x1ada52('track-changes-enable-command-twice',this,{'commandName':_0x11557a});this['_enabledCommands']['add'](_0x211889),_0x1c1c66&&_0x211889['on']('execute',(_0x5ec42c,_0x1e2a16)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1e2a16['length']>0x0&&_0x1e2a16[_0x1e2a16['length']-0x1]&&_0x1e2a16[_0x1e2a16['length']-0x1]['forceDefaultExecution']?_0x1e2a16['pop']():(_0x5ec42c['return']=_0x1c1c66((..._0xa69f26)=>_0x211889['execute'](..._0xa69f26,{'forceDefaultExecution':!0x0}),..._0x1e2a16),_0x5ec42c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb28ba6){let _0x1dabd2,_0x53085a;const _0x3cb49d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1dabd2=_0xb28ba6();}catch(_0x31fe08){_0x53085a=_0x31fe08;}return _0x3cb49d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53085a&&_0x1ada52['rethrowUnexpectedError'](_0x53085a,this),_0x1dabd2;}['markInsertion'](_0x215f1f,_0x13a9af=null,_0x1aacd2={}){if(_0x215f1f['isCollapsed'])return null;const _0x425130=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1aacd2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x147009,meta:_0x10aef1}of this['_findSuggestions'](_0x215f1f,'insertion'))if(_0x10aef1['isOwn']){if(!_0x10aef1['isNextTo']){if(_0x10aef1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x147009,_0x1aacd2))continue;return _0x147009;}if(sn(_0x147009,_0x1aacd2))return _0x147009;this['_breakSuggestionMarker'](_0x147009,_0x215f1f['start'],_0x215f1f['end']);break;}if(_0x13a9af==_0x147009['subType']&&sn(_0x147009,_0x1aacd2)){const _0x5f2e9f=_0x147009['getFirstRange']();return _0x5f2e9f['start']['isEqual'](_0x215f1f['end'])?this['_setSuggestionRange'](_0x147009,this['_model']['createRange'](_0x215f1f['start'],_0x5f2e9f['end'])):this['_setSuggestionRange'](_0x147009,this['_model']['createRange'](_0x5f2e9f['start'],_0x215f1f['end'])),_0x147009;}}const _0x5b2e60=_0x51a9d1(),_0x49a4ee=_0x425130['id'],_0x5d37e0=_0x13a9af?'insertion:'+_0x13a9af:'insertion',_0x153154=this['_setSuggestionData']({'id':_0x5b2e60,'type':_0x5d37e0,'createdAt':new Date(),'authorId':_0x49a4ee,'attributes':_0x1aacd2});return this['_addSuggestionMarker'](_0x5d37e0,_0x5b2e60,_0x49a4ee,_0x215f1f),_0x153154;}['markMultiRangeInsertion'](_0x100036,_0x396c1f='multi',_0x274afa={}){const _0x5910eb=this['editor']['plugins']['get']('Users')['me'],_0x45d58a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x396c1f,'join');this['_trackingSessionId']&&(_0x274afa['trackingSessionId']=this['_trackingSessionId']);for(const _0xe761a2 of this['getSuggestions']())if(_0xe761a2['author']['id']==_0x5910eb['id']&&'insertion'==_0xe761a2['type']&&_0xe761a2['subType']==_0x396c1f&&sn(_0xe761a2,_0x274afa)&&(_0x45d58a(_0xe761a2['getRanges'](),_0x100036)||_0x45d58a(_0x100036,_0xe761a2['getRanges']()))){for(const _0x5dc7cf of _0x100036)_0xe761a2['addRange'](_0x5dc7cf);return _0xe761a2;}for(const {suggestion:_0x569359,meta:_0x3b2b14}of this['_findSuggestions'](_0x100036,'insertion')){if(!_0x3b2b14['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3b2b14['containsRangeInObject'])continue;if(!sn(_0x569359,_0x274afa))continue;let _0x3c5e0c=!0x0;for(const _0x2393e3 of _0x569359['getRanges']())for(const _0x1193c5 of _0x100036)if(!_0x2393e3['containsRange'](_0x1193c5)){_0x3c5e0c=!0x1;break;}if(_0x3c5e0c)return _0x569359;}const _0x4828eb=_0x51a9d1(),_0xbc842e=_0x5910eb['id'],_0x101f03='insertion:'+_0x396c1f,_0x2e29a8=this['_setSuggestionData']({'id':_0x4828eb,'type':_0x101f03,'createdAt':new Date(),'authorId':_0xbc842e,'attributes':_0x274afa});for(const _0x53df82 of _0x100036)this['_addSuggestionMarker'](_0x101f03,_0x4828eb,_0xbc842e,_0x53df82,T['getMultiRangeId']());return _0x2e29a8;}['markInlineFormat'](_0xc5b6fc,_0x397319,_0x1ca228=null,_0x13b284={}){if(_0x1ca228=_0x1ca228||Ht(_0x397319),_0xc5b6fc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x13b284['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22055d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ca228,'accept');return this['forceDefaultExecution'](()=>_0x22055d([_0xc5b6fc],_0x397319,_0x13b284)),null;}const _0x135dfd=this['editor']['plugins']['get']('Users')['me'],_0xc963fc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x320663,meta:_0x3198d8}of this['_findSuggestions'](_0xc5b6fc,'insertion'))_0x3198d8['isOwn']&&!_0x3198d8['isInsideObject']&&_0xc963fc['push'](..._0x320663['getRanges']());}const _0xd21d8e=function(_0x23b0c0,_0x4fcc7c){const _0xc1cdec=[];for(const _0x339935 of _0x4fcc7c){const _0x394519=_0x23b0c0['getIntersection'](_0x339935);_0x394519&&_0xc1cdec['push'](_0x394519);}return _0xc1cdec;}(_0xc5b6fc,_0xc963fc),_0x23e3ce=function(_0xf1e9d0,_0x447ffa){const _0xc6106d=[_0xf1e9d0];for(const _0x5cd578 of _0x447ffa){let _0x29e5a8=0x0;for(;_0x29e5a8<_0xc6106d['length'];){const _0x3987ac=_0xc6106d[_0x29e5a8]['getDifference'](_0x5cd578);_0xc6106d['splice'](_0x29e5a8,0x1,..._0x3987ac),_0x29e5a8+=_0x3987ac['length'];}}return _0xc6106d;}(_0xc5b6fc,_0xc963fc);_0xd21d8e['length']&&this['_model']['change'](()=>{for(const _0xa4a483 of _0xd21d8e){const _0x5115a7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ca228,'accept');this['forceDefaultExecution'](()=>_0x5115a7([_0xa4a483],_0x397319,_0x13b284));}});for(const _0x4b579f of _0x23e3ce){let _0x2910ae=null,_0x12e3d1=_0x4b579f['start'],_0x505927=_0x4b579f['end'];for(const {suggestion:_0x43330f,meta:_0x35d1ef}of this['_findSuggestions'](_0x4b579f,'formatInline')){if(!_0x35d1ef['isOwn'])continue;if(_0x43330f['subType']!=_0x1ca228)continue;if(!sn(_0x43330f,_0x13b284))continue;const _0x2f330d=_0x43330f['getFirstRange']();if(_0x2f330d['containsRange'](_0x4b579f,!0x0))return null;_0x12e3d1=_0x12e3d1['isBefore'](_0x2f330d['start'])?_0x12e3d1:_0x2f330d['start'],_0x505927=_0x505927['isAfter'](_0x2f330d['end'])?_0x505927:_0x2f330d['end'],_0x2910ae?_0x2f330d['start']['isBefore'](_0x2910ae['getFirstRange']()['start'])?(_0x2910ae['removeMarkers'](),_0x2910ae=_0x43330f):_0x43330f['removeMarkers']():_0x2910ae=_0x43330f;}const _0x3dcfa7=this['_model']['createRange'](_0x12e3d1,_0x505927);if(_0x2910ae)this['_setSuggestionRange'](_0x2910ae,_0x3dcfa7);else{const _0x3c4e62=_0x51a9d1(),_0x3b7e19=_0x135dfd['id'];this['_setSuggestionData']({'id':_0x3c4e62,'type':'formatInline:'+_0x1ca228,'data':_0x397319,'createdAt':new Date(),'authorId':_0x3b7e19,'attributes':_0x13b284}),this['_addSuggestionMarker']('formatInline:'+_0x1ca228,_0x3c4e62,_0x3b7e19,_0x3dcfa7);}}return null;}['markBlockFormat'](_0x4d26a9,_0x4198ae,_0x151165=[],_0x236840=null,_0x56f4ef={}){_0x4198ae['formatGroupId']||(_0x4198ae['formatGroupId']=_0x4198ae['commandName']),_0x4198ae['multipleBlocks']=_0x4d26a9['is']('range'),_0x236840=_0x236840||Ht(_0x4198ae);const _0x448bc6=_0x151165['map'](_0x4f0336=>tn(_0x4f0336,this['_model'])),_0x486adc=_0x4d26a9['is']('range')?_0x4d26a9:tn(_0x4d26a9,this['_model']);if(this['_trackingSessionId']&&(_0x56f4ef['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1168f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x236840,'accept');return this['forceDefaultExecution'](()=>_0x1168f8([_0x486adc],_0x4198ae,_0x56f4ef)),null;}_0x448bc6['push'](_0x486adc);let _0x4e637d=!0x0;for(const _0x81c794 of _0x448bc6)if(!this['_rangeIsInLocalUserInsertion'](_0x81c794)){_0x4e637d=!0x1;break;}if(_0x4e637d&&'always'!==this['_trackFormatChanges']){const _0x6054c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x236840,'accept');return this['forceDefaultExecution'](()=>_0x6054c1([_0x486adc],_0x4198ae,_0x56f4ef)),null;}let _0x1f707e=null,_0x45c2ff=_0x486adc['start'],_0x3b36eb=_0x486adc['end'];for(const {suggestion:_0x5d7fee,meta:_0x38d351}of this['_findSuggestions'](_0x486adc,'formatBlock')){if(!_0x38d351['isOwn'])continue;if(_0x38d351['isNextTo']||_0x38d351['containsRangeInObject']||_0x38d351['isInsideObject'])continue;if(_0x5d7fee['data']['formatGroupId']!=_0x4198ae['formatGroupId'])continue;if(!sn(_0x5d7fee,_0x56f4ef))continue;const _0x114a1b=_0x5d7fee['getFirstRange']();if(_0x5d7fee['subType']==_0x236840){if(_0x114a1b['containsRange'](_0x486adc,!0x0))return null;_0x45c2ff=_0x45c2ff['isBefore'](_0x114a1b['start'])?_0x45c2ff:_0x114a1b['start'],_0x3b36eb=_0x3b36eb['isAfter'](_0x114a1b['end'])?_0x3b36eb:_0x114a1b['end'],_0x1f707e?_0x114a1b['start']['isBefore'](_0x1f707e['getFirstRange']()['start'])?(_0x1f707e['removeMarkers'](),_0x1f707e=_0x5d7fee):_0x5d7fee['removeMarkers']():_0x1f707e=_0x5d7fee;}else{const _0x5a25e6=_0x486adc['getIntersection'](_0x114a1b);this['_cutOutSuggestionMarker'](_0x5d7fee,_0x5a25e6);}}const _0x595c2a=this['editor']['plugins']['get']('Users')['me'],_0x24b7ab=_0x51a9d1(),_0x1f99d4=_0x595c2a['id'];if(_0x1f707e)return this['_setSuggestionRange'](_0x1f707e,this['_model']['createRange'](_0x45c2ff,_0x3b36eb)),_0x1f707e;{const _0xeef516=this['_setSuggestionData']({'id':_0x24b7ab,'type':'formatBlock:'+_0x236840,'data':_0x4198ae,'createdAt':new Date(),'authorId':_0x1f99d4,'attributes':_0x56f4ef});return this['_addSuggestionMarker']('formatBlock:'+_0x236840,_0x24b7ab,_0x1f99d4,this['_model']['createRange'](_0x45c2ff,_0x3b36eb)),_0xeef516;}}['markMultiRangeBlockFormat'](_0x4b6bb5,_0x1b7234,_0x5d34dd=[],_0x3e95b1=null,_0x241875={}){_0x1b7234['formatGroupId']||(_0x1b7234['formatGroupId']=_0x1b7234['commandName']);const _0x581946=_0x4b6bb5[0x0];_0x1b7234['multipleBlocks']=_0x581946['is']('range'),_0x3e95b1=_0x3e95b1||Ht(_0x1b7234);const _0x2cd0a9=_0x5d34dd['map'](_0x3e6959=>tn(_0x3e6959,this['_model'])),_0x195380=_0x581946['is']('range')?_0x4b6bb5:_0x4b6bb5['map'](_0x242316=>tn(_0x242316,this['_model']));if(this['_trackingSessionId']&&(_0x241875['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4ee422=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e95b1,'accept');return this['forceDefaultExecution'](()=>_0x4ee422(_0x195380,_0x1b7234,_0x241875)),null;}_0x2cd0a9['push'](..._0x195380);let _0x170339=!0x0;for(const _0x9857b7 of _0x2cd0a9)if(!this['_rangeIsInLocalUserInsertion'](_0x9857b7)){_0x170339=!0x1;break;}if(_0x170339&&'always'!==this['_trackFormatChanges']){const _0xad808f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e95b1,'accept');return this['forceDefaultExecution'](()=>_0xad808f(_0x195380,_0x1b7234,_0x241875)),null;}const _0x3330a6=this['editor']['plugins']['get']('Users')['me'];for(const _0xad95c of this['getSuggestions']()){const _0x3a2fdc=_0xad95c['data'];if(_0xad95c['author']['id']!=_0x3330a6['id'])continue;if('formatBlock'!=_0xad95c['type']||_0x3a2fdc['formatGroupId']!=_0x1b7234['formatGroupId'])continue;if(!sn(_0xad95c,_0x241875))continue;const _0x34337d=_0xad95c['subType']==_0x3e95b1;for(let _0x904bef=0x0;_0x904bef<_0x195380['length'];_0x904bef++){const _0x37b230=_0x195380[_0x904bef];for(const _0x4fb082 of _0xad95c['getMarkers']()){const _0x11cfe3=_0x4fb082['getRange']();if(_0x37b230['isEqual'](_0x11cfe3)){_0x34337d?(_0x195380['splice'](_0x904bef,0x1),_0x904bef--):_0xad95c['removeMarker'](_0x4fb082['name']);break;}}}}if(0x0==_0x195380['length'])return null;const _0x389163=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e95b1,'join');for(const _0x332612 of this['getSuggestions']()){const _0x2d6fd6=_0x332612['data'];if(_0x332612['author']['id']==_0x3330a6['id']&&('formatBlock'==_0x332612['type']&&_0x2d6fd6['formatGroupId']==_0x1b7234['formatGroupId']&&_0x332612['subType']==_0x3e95b1&&sn(_0x332612,_0x241875)&&(_0x389163(_0x332612['getRanges'](),_0x195380)||_0x389163(_0x195380,_0x332612['getRanges']())))){for(const _0x3ba83e of _0x195380)_0x332612['addRange'](_0x3ba83e);return _0x332612;}}const _0x336e3b=_0x51a9d1(),_0x466173=_0x3330a6['id'],_0x55c212='formatBlock:'+_0x3e95b1,_0x1113ce=this['_setSuggestionData']({'id':_0x336e3b,'type':_0x55c212,'data':_0x1b7234,'createdAt':new Date(),'authorId':_0x466173,'attributes':_0x241875});for(const _0x1d84e0 of _0x195380)this['_addSuggestionMarker'](_0x55c212,_0x336e3b,_0x466173,_0x1d84e0,T['getMultiRangeId']());return _0x1113ce;}['markDeletion'](_0x390dc5,_0x170431=null,_0x857a6f={}){if(_0x390dc5['isCollapsed'])return null;const _0x165932=this['editor']['plugins']['get']('Users')['me'],_0x417d63=new _0x32abf5(_0x390dc5['start'],_0x390dc5['end']);this['_trackingSessionId']&&(_0x857a6f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x161a14,meta:_0x9caba}of this['_findSuggestions'](_0x417d63,'insertion'))if(_0x9caba['isOwn']&&!_0x9caba['isNextTo']){if(_0x161a14['isMultiRange']){const _0x48ed97=_0x161a14['getRanges']()['filter'](_0x58b53f=>'$graveyard'!=_0x58b53f['root']['rootName']);_0x48ed97['every'](_0x3df104=>_0x417d63['containsRange'](_0x3df104,!0x0))&&_0x161a14['discard']();if(_0x48ed97['some'](_0x4ae350=>_0x4ae350['containsRange'](_0x417d63,!0x0))){const _0x48393c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x170431,'accept');return this['forceDefaultExecution'](()=>_0x48393c([_0x417d63],null,_0x857a6f)),null;}}else{const _0x1208da=_0x417d63['getIntersection'](_0x161a14['getFirstRange']());null!==_0x1208da&&_0x161a14['_onDiscard']([_0x1208da],null,_0x857a6f);}}if(_0x417d63['detach'](),_0x417d63['isCollapsed']||'$graveyard'==_0x417d63['root']['rootName'])return null;let _0x51c2ea=null,_0x3e3d16=_0x417d63['start'],_0x54a9d9=_0x417d63['end'];const _0x111a2e=this['_findSuggestions'](_0x417d63,'deletion');for(const {suggestion:_0x4c46a2,meta:_0x1dfe3e}of _0x111a2e){const _0x4ea374=this['_model']['createRange'](_0x3e3d16,_0x54a9d9);if(_0x1dfe3e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1dfe3e['containsRangeInObject']&&!_0x1dfe3e['isInsideObject'])){if(_0x4c46a2['isMultiRange']){if(!sn(_0x4c46a2,_0x857a6f))continue;let _0x2a0e66=!0x0;for(const _0x5e2277 of _0x4c46a2['getRanges']()){if(_0x5e2277['containsRange'](_0x4ea374,!0x0))return _0x4c46a2;_0x4ea374['containsRange'](_0x5e2277)||(_0x2a0e66=!0x1);}_0x2a0e66&&_0x4c46a2['discard']();}else{const _0x391ed1=_0x4c46a2['getFirstRange']();if(_0x391ed1['containsRange'](_0x4ea374,!0x0))return _0x4c46a2;if(!sn(_0x4c46a2,_0x857a6f)){_0x4ea374['containsRange'](_0x391ed1)?_0x4c46a2['removeMarkers']():_0x391ed1['containsPosition'](_0x3e3d16)?_0x3e3d16=_0x391ed1['end']:_0x391ed1['containsPosition'](_0x54a9d9)&&(_0x54a9d9=_0x391ed1['start']);continue;}_0x3e3d16=_0x3e3d16['isBefore'](_0x391ed1['start'])?_0x3e3d16:_0x391ed1['start'],_0x54a9d9=_0x54a9d9['isAfter'](_0x391ed1['end'])?_0x54a9d9:_0x391ed1['end'],_0x857a6f=Object['assign']({},_0x4c46a2['attributes']),_0x51c2ea?_0x391ed1['start']['isBefore'](_0x51c2ea['getFirstRange']()['start'])?(_0x51c2ea['removeMarkers'](),_0x51c2ea=_0x4c46a2):_0x4c46a2['removeMarkers']():_0x51c2ea=_0x4c46a2;}}}if(_0x51c2ea)return this['_setSuggestionRange'](_0x51c2ea,this['_model']['createRange'](_0x3e3d16,_0x54a9d9)),_0x51c2ea;{const _0x141659=_0x51a9d1(),_0x21c64b=this['_model']['createRange'](_0x3e3d16,_0x54a9d9),_0x5f2cd7=_0x165932['id'],_0x4970fc=_0x170431?'deletion:'+_0x170431:'deletion',_0x1862fc=this['_setSuggestionData']({'id':_0x141659,'type':_0x4970fc,'createdAt':new Date(),'authorId':_0x5f2cd7,'attributes':_0x857a6f});return this['_addSuggestionMarker'](_0x4970fc,_0x141659,_0x5f2cd7,_0x21c64b),_0x1862fc;}}['markMultiRangeDeletion'](_0x18ec40,_0x41309f='multi',_0x272465={}){const _0xa07969=this['editor']['plugins']['get']('Users')['me'],_0x398e6a=_0x18ec40['map'](_0x952400=>new _0x32abf5(_0x952400['start'],_0x952400['end'])),_0x41144f=new Set();this['_trackingSessionId']&&(_0x272465['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6b05e4,meta:_0x3f4bf5}of this['_findSuggestions'](_0x398e6a,'insertion'))_0x3f4bf5['isOwn']&&!_0x3f4bf5['isNextTo']&&_0x41144f['add'](_0x6b05e4);for(const _0x17b859 of _0x41144f)if(_0x17b859['isMultiRange']){const _0x4fc526=_0x17b859['getRanges']();(!_0x17b859['attributes']||!_0x17b859['attributes']['skipNestingCheck'])&&(_0x4fc526['every'](_0x388e03=>_0x398e6a['some'](_0x17bdfa=>_0x17bdfa['containsRange'](_0x388e03,!0x0)))&&_0x17b859['discard']());if(_0x398e6a['every'](_0x3c540b=>_0x4fc526['some'](_0x26f14c=>_0x26f14c['containsRange'](_0x3c540b,!0x0)))){const _0x3f973b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41309f,'accept');return this['forceDefaultExecution'](()=>_0x3f973b(_0x18ec40,null,_0x272465)),null;}}else{const _0x294689=_0x17b859['getFirstRange']();_0x398e6a['some'](_0x574ca6=>_0x574ca6['containsRange'](_0x294689,!0x0))&&_0x17b859['discard']();if(_0x398e6a['every'](_0x5311e2=>_0x294689['containsRange'](_0x5311e2,!0x0))){const _0x2b3c82=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41309f,'accept');return this['forceDefaultExecution'](()=>_0x2b3c82(_0x398e6a,null,_0x272465)),null;}}const _0x2226c8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41309f,'join');let _0x485da8=null;for(const _0x3c4499 of this['getSuggestions']())if(_0x3c4499['author']['id']==_0xa07969['id']&&_0x3c4499['isInContent']&&'deletion'==_0x3c4499['type']&&_0x3c4499['subType']==_0x41309f&&sn(_0x3c4499,_0x272465)&&(_0x2226c8(_0x3c4499['getRanges'](),_0x398e6a)||_0x2226c8(_0x398e6a,_0x3c4499['getRanges']()))){if(_0x485da8){if(_0x3c4499['commentThread']&&_0x3c4499['commentThread']['length'])continue;for(const _0x5f4bed of _0x3c4499['getRanges']())_0x485da8['isIntersectingWithRange'](_0x5f4bed)||_0x485da8['addRange'](_0x5f4bed);_0x3c4499['removeMarkers']();}else{_0x485da8=_0x3c4499;for(const _0x19c1a1 of _0x398e6a)_0x3c4499['isIntersectingWithRange'](_0x19c1a1)||_0x3c4499['addRange'](_0x19c1a1);}}if(_0x485da8)return _0x485da8;_0x41144f['clear']();for(const {suggestion:_0x6ccced,meta:_0x20fa9a}of this['_findSuggestions'](_0x398e6a,'deletion'))_0x20fa9a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20fa9a['containsRangeInObject']&&!_0x20fa9a['isInsideObject'])&&sn(_0x6ccced,_0x272465)&&_0x41144f['add'](_0x6ccced);for(const _0x206a3e of _0x41144f){const _0x7fe1f0=_0x206a3e['getRanges']();if(!_0x272465||!_0x272465['skipNestingCheck']){if(_0x398e6a['every'](_0x1a6c03=>_0x7fe1f0['some'](_0x49cf44=>_0x49cf44['containsRange'](_0x1a6c03,!0x0))))return _0x206a3e;}(!_0x206a3e['attributes']||!_0x206a3e['attributes']['skipNestingCheck'])&&(_0x7fe1f0['every'](_0x48ebb6=>_0x398e6a['some'](_0x271cb2=>_0x271cb2['containsRange'](_0x48ebb6,!0x0)))&&_0x206a3e['discard']());}const _0xbc79a7=_0x51a9d1(),_0x309b52=_0xa07969['id'],_0x5d8e6e='deletion:'+_0x41309f,_0x1b209b=this['_setSuggestionData']({'id':_0xbc79a7,'type':_0x5d8e6e,'createdAt':new Date(),'authorId':_0x309b52,'attributes':_0x272465});for(const _0x248512 of _0x398e6a)_0x248512['detach'](),_0x248512['isCollapsed']||'$graveyard'==_0x248512['root']['rootName']||this['_addSuggestionMarker'](_0x5d8e6e,_0xbc79a7,_0x309b52,_0x248512,T['getMultiRangeId']());return _0x1b209b;}['markAttributeChange'](_0x2335ea,_0xad125e,_0x5116f0,_0x58ace1,_0x37c803){if(_0x2335ea['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1ad777=this['editor']['plugins']['get']('Users')['me']['id'],_0x530cfe=Array['from'](this['_suggestions']['values']())['filter'](_0x1ca505=>'attribute'==_0x1ca505['type']&&_0x1ca505['data']['key']==_0xad125e&&_0x1ca505['isIntersectingWithRange'](_0x2335ea));if(this['_trackingSessionId']&&(_0x37c803['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3ab4fa=this['_findSuggestions'](_0x2335ea,'insertion')['filter'](({meta:_0x47aab7})=>_0x47aab7['isOwn']&&!_0x47aab7['isInsideObject']&&!_0x47aab7['isNextTo'])['map'](({suggestion:_0x442eb5})=>_0x442eb5);_0x530cfe['unshift'](..._0x3ab4fa);}const _0x27dad2=new Map([[_0x2335ea,_0x5116f0]]);for(const _0x92f16c of _0x530cfe){const _0x33f98a='attribute'==_0x92f16c['type']?_0x92f16c['data']['oldValue']:void 0x0,_0x3790d1=_0x92f16c['getFirstRange'](),_0x2727aa=Array['from'](_0x27dad2['keys']())['find'](_0xe7407c=>_0xe7407c['isIntersecting'](_0x3790d1));if(!_0x2727aa)continue;const _0x266a45=_0x2727aa['getDifference'](_0x3790d1);this['_isBlockAttribute'](_0xad125e)&&'insertion'==_0x92f16c['type']&&0x0!=_0x266a45['length']||(_0x27dad2['delete'](_0x2727aa),_0x266a45['forEach'](_0x300554=>{_0x27dad2['set'](_0x300554,_0x5116f0);}),'insertion'!=_0x92f16c['type']&&_0x33f98a!=_0x58ace1&&_0x27dad2['set'](_0x2727aa['getIntersection'](_0x3790d1),_0x33f98a));}const _0x5f1328=[];for(const [_0x366696,_0x1fd0d6]of _0x27dad2){const _0x5dbafb=_0x51a9d1(),_0x12b482={'key':_0xad125e,'oldValue':_0x1fd0d6,'newValue':_0x58ace1};_0xad125e['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':_0xad125e});const _0x17ba7e=('attribute:'+(_0xad125e+'|'+Ht({'newValue':_0x58ace1})))['substring'](0x0,0x3c),_0x16e06f=this['_setSuggestionData']({'id':_0x5dbafb,'type':_0x17ba7e,'data':_0x12b482,'createdAt':new Date(),'authorId':_0x1ad777,'attributes':_0x37c803});_0x5f1328['push'](_0x16e06f),this['_addSuggestionMarker'](_0x17ba7e,_0x5dbafb,_0x1ad777,_0x366696);}return _0x5f1328;}['enableDefaultAttributesIntegration'](_0xee1a45){this['enableCommand'](_0xee1a45,(_0x1918bd,..._0x23ea04)=>{this['recordAttributeChanges'](()=>{_0x1918bd(..._0x23ea04);});});}['registerBlockAttribute'](_0x5dec4a){this['editor']['plugins']['get'](_0xb4a06d)['registerBlockAttribute'](_0x5dec4a);}['registerInlineAttribute'](_0xf0825f){this['editor']['plugins']['get'](_0xb4a06d)['registerInlineAttribute'](_0xf0825f);}['startTrackingSession'](_0x3e3f39){return this['_trackingSessionId']=void 0x0!==_0x3e3f39?_0x3e3f39:_0x51a9d1(),this['_trackingSessionId'];}['_getAttributeKey'](_0x9110f6){return'attribute'==_0x9110f6['type']?_0x9110f6['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x16a3cd){if(0x0==_0x16a3cd['length'])return;const _0x5eee6c=this['editor'],_0x24ca04=_0x5eee6c['plugins']['get'](_0x50406e),_0x1ddd57=[];_0x5eee6c['model']['change'](_0x73c9a5=>{for(let _0x2d54c2=0x0;_0x2d54c2<_0x16a3cd['length'];_0x2d54c2++){const _0x322970=_0x16a3cd[_0x2d54c2];if(_0x322970['baseVersion']=_0x5eee6c['model']['document']['version'],_0x322970['isDocumentOperation']=!0x0,_0x24ca04['isMarkedRemoveOperation'](_0x322970)){const _0x2b7e17=_0x4a03da(_0x322970['newRange'],_0x5eee6c['model']);_0x1ddd57['unshift'](_0x32abf5['fromRange'](_0x2b7e17));}else switch(_0x322970['type']){case'rename':{const _0x3dc1e0=_0x322970['oldName'],_0x1cbaac=_0x322970['newName'];if(_0x3dc1e0==_0x1cbaac)break;_0x73c9a5['batch']['addOperation'](_0x322970),_0x5eee6c['model']['applyOperation'](_0x322970);const _0x2ed7e2='$elementName',_0x4cec01=_0x322970['position'],_0x25e2e0=_0x5eee6c['model']['createRange'](_0x4cec01,_0x5eee6c['model']['createPositionAt'](_0x4cec01['nodeAfter'],'end'));this['markAttributeChange'](_0x25e2e0,_0x2ed7e2,_0x3dc1e0,_0x1cbaac,{'groupId':_0x51a9d1()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3052d1=_0x322970['oldValue'],_0x4ee4ae=_0x322970['newValue'];if(_0x3052d1==_0x4ee4ae)break;_0x73c9a5['batch']['addOperation'](_0x322970),_0x5eee6c['model']['applyOperation'](_0x322970);const _0x4eb817=_0x322970['key'];if(!this['_isRegisteredAttribute'](_0x4eb817))break;const _0x1d5685=_0x4a03da(_0x322970['range'],_0x5eee6c['model']);this['markAttributeChange'](_0x1d5685,_0x4eb817,_0x3052d1,_0x4ee4ae,{'groupId':_0x51a9d1()});break;}case'insert':{_0x73c9a5['batch']['addOperation'](_0x322970),_0x5eee6c['model']['applyOperation'](_0x322970);if(_0x16a3cd[_0x2d54c2+0x1]&&'move'==_0x16a3cd[_0x2d54c2+0x1]['type'])break;const _0x22b4ce=_0x322970['position'],_0x46f1f5=_0x322970['howMany'],_0x874bda=_0x4a03da(_0x5eee6c['model']['createRange'](_0x22b4ce,_0x22b4ce['getShiftedBy'](_0x46f1f5)),_0x5eee6c['model']);this['markInsertion'](_0x874bda);break;}case'split':{_0x73c9a5['batch']['addOperation'](_0x322970),_0x5eee6c['model']['applyOperation'](_0x322970);const _0x144562=_0x322970['splitPosition'],_0xd549a1=_0x322970['moveTargetPosition'];this['markInsertion'](_0x5eee6c['model']['createRange'](_0x144562,_0xd549a1));break;}case'move':case'remove':_0x73c9a5['batch']['addOperation'](_0x322970),_0x5eee6c['model']['applyOperation'](_0x322970);}}for(const _0x8388eb of _0x1ddd57)_0x8388eb['detach'](),this['markDeletion'](_0x8388eb);});}['_setSuggestionRange'](_0x2b0ea5,_0x3f5495){const _0x591d49=_0x2b0ea5['getFirstMarker']();this['_model']['change'](_0x4d8c7b=>{_0x4d8c7b['updateMarker'](_0x591d49,{'range':_0x3f5495});});}['_addThreadToSuggestion'](_0xc955){const _0x3f06db=_0xc955['id'],_0x5f3138=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3f06db)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f3138,'threadId':_0x3f06db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x100153=this['_commentsRepository']['getCommentThread'](_0x3f06db);_0x100153['unbind']('isRemovable'),_0x100153['isRemovable']=!0x1,_0xc955['commentThread']=_0x100153;}['_checkSuggestionCorrectness'](_0x51313d,_0x3dd283,_0xd0eaff,_0x3d6432){if(_0x51313d['type']!=_0x3dd283||_0x51313d['subType']!=_0xd0eaff||_0x51313d['creator']['id']!=_0x3d6432)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ada52('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x365b6e,_0x46abb4){const _0x38d693=_0x365b6e['getFirstRange']();if(_0x46abb4['isEqual'](_0x38d693))_0x365b6e['removeMarkers']();else{if(_0x38d693['containsRange'](_0x46abb4)){const _0x363abf=this['_model']['createPositionAt'](_0x46abb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x365b6e,this['_model']['createRange'](_0x38d693['start'],_0x363abf));const _0x11b912=_0x51a9d1(),_0x4e5c93=_0x365b6e['creator']['id'],_0x47adcd=_0x365b6e['type']+':'+_0x365b6e['subType'];this['_setSuggestionData']({'id':_0x11b912,'type':_0x47adcd,'createdAt':new Date(),'authorId':_0x4e5c93,'data':_0x365b6e['data'],'attributes':_0x365b6e['attributes']});const _0x306587=this['_model']['createPositionAt'](_0x46abb4['end']['parent'],'after'),_0x3ea115=this['_model']['createRange'](_0x306587,_0x38d693['end']);this['_addSuggestionMarker'](_0x47adcd,_0x11b912,_0x4e5c93,_0x3ea115);}else{if(_0x38d693['containsPosition'](_0x46abb4['start'])){const _0x572d73=this['_model']['createPositionAt'](_0x46abb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x365b6e,this['_model']['createRange'](_0x38d693['start'],_0x572d73));}else{const _0x349633=this['_model']['createPositionAt'](_0x46abb4['end']['parent'],'after');this['_setSuggestionRange'](_0x365b6e,this['_model']['createRange'](_0x349633,_0x38d693['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xcdd0cf){for(const {suggestion:_0x4bc784,meta:_0x25796b}of this['_findSuggestions'](_0xcdd0cf,'insertion')){if(!_0x25796b['isOwn'])continue;const _0x46564f=_0x4bc784['getRanges']();for(const _0x5cb3c0 of _0x46564f)if(!_0xcdd0cf['getDifference'](_0x5cb3c0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5142e7){return this['editor']['plugins']['get']('Users')['getUser'](_0x5142e7);}['_getExternalAuthor'](_0x368ebf){const _0x42f212=this['editor']['plugins']['get']('Users'),_0x3a0634=_0x52739c('external:'+_0x368ebf),_0x4a4866=_0x42f212['getUser'](_0x3a0634);return _0x4a4866||_0x42f212['addUser']({'id':_0x3a0634,'name':_0x368ebf});}['_createSuggestion'](_0x1e205a,_0x20f283,_0x51c50c,_0x4f6fe5,_0x3c0c64,_0x193dd2){const _0x5ab1c6=this['_getAuthorFromId'](_0x4f6fe5);if(!_0x5ab1c6)throw new _0x1ada52('track-changes-user-not-found',this,{'authorId':_0x4f6fe5,'suggestionId':_0x51c50c});const _0x5b9390=this['_suggestionFactory']['buildSuggestion'](_0x1e205a,_0x20f283,_0x51c50c,_0x5ab1c6,_0x3c0c64,_0x3338c7=>{this['_updateSuggestionData'](_0x51c50c,{'attributes':_0x3338c7});const _0x494f77=this['getSuggestion'](_0x51c50c);this['_joinWithAdjacentSuggestions'](new Set([_0x494f77])),this['_refreshSuggestionsChain'](new Set([_0x494f77]));},_0x193dd2);return this['listenTo'](_0x5b9390,'accept',()=>{this['_updateSuggestionData'](_0x51c50c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5b9390,'discard',()=>{this['_updateSuggestionData'](_0x51c50c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51c50c,_0x5b9390),this['_suggestionState']['set'](_0x5b9390,'notReady'),_0x5b9390;}['_splitMarkerName'](_0x52d0e2){return _0x1147ea(_0x52d0e2);}['_breakSuggestionMarker'](_0x2e5c2a,_0x2ab690,_0x25f8d1){const _0x175ff9=_0x2e5c2a['getFirstRange'](),_0x504cee=_0x175ff9['start'],_0x126d31=_0x175ff9['end'];this['_setSuggestionRange'](_0x2e5c2a,this['_model']['createRange'](_0x504cee,_0x2ab690));const _0x5f1b3a=_0x51a9d1(),_0x492c5f=_0x2e5c2a['creator']['id'],_0x53c018=_0x2e5c2a['type']+(_0x2e5c2a['subType']?':'+_0x2e5c2a['subType']:'');this['_setSuggestionData']({'id':_0x5f1b3a,'type':_0x53c018,'createdAt':new Date(),'authorId':_0x492c5f,'originalSuggestionId':_0x2e5c2a['_originalSuggestionId']||_0x2e5c2a['id'],'attributes':_0x2e5c2a['attributes'],'data':_0x2e5c2a['data']});const _0x4f6d64=this['_getAttributeKey'](_0x2e5c2a);('formatBlock'==_0x2e5c2a['type']||_0x4f6d64&&this['_isBlockAttribute'](_0x4f6d64))&&(_0x25f8d1=this['_model']['createPositionBefore'](_0x25f8d1['parent'])),this['_addSuggestionMarker'](_0x53c018,_0x5f1b3a,_0x492c5f,this['_model']['createRange'](_0x25f8d1,_0x126d31));}['_findSuggestions'](_0x2b66a5,_0x4c283f=null){const _0x1f8289=[],_0x415a66=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2b66a5)||(_0x2b66a5=[_0x2b66a5]);for(const _0x38fee2 of this['getSuggestions']()){if(!_0x38fee2['isInContent'])continue;if(_0x4c283f&&_0x38fee2['type']!=_0x4c283f)continue;let _0x34eb78=!0x1;for(const _0x44e314 of _0x38fee2['getRanges']()){for(const _0x46682b of _0x2b66a5){const _0x404e5e=_0x46682b['start']['isEqual'](_0x44e314['end'])||_0x46682b['end']['isEqual'](_0x44e314['start']);if(_0x404e5e||_0x46682b['getIntersection'](_0x44e314)){const _0x50c7e2=_0x46682b['containsRange'](_0x44e314)&&zt(this['_model']['schema'],_0x44e314['start'],_0x46682b),_0x11fde3=_0x44e314['containsRange'](_0x46682b)&&zt(this['_model']['schema'],_0x46682b['start'],_0x44e314);_0x1f8289['push']({'suggestion':_0x38fee2,'meta':{'isOwn':_0x415a66==_0x38fee2['author'],'isNextTo':_0x404e5e,'isInsideObject':_0x50c7e2,'containsRangeInObject':_0x11fde3}}),_0x34eb78=!0x0;break;}}if(_0x34eb78)break;}}return _0x1f8289;}['_addSuggestionMarker'](_0x11a06b,_0xc5d67c,_0x303b60,_0x49d613,_0x183e9f){this['_model']['change'](_0x29a5dc=>{let _0x25b555='suggestion:'+_0x11a06b+':'+_0xc5d67c+':'+_0x303b60;_0x183e9f&&(_0x25b555=_0x25b555+':'+_0x183e9f),_0x29a5dc['addMarker'](_0x25b555,{'range':_0x49d613,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4337b5){const _0x258ec1=_0x4337b5['previous'],_0xa51d7a=_0x4337b5['next'];_0x4337b5['previous']=null,_0x4337b5['next']=null,null!=_0x258ec1&&_0x258ec1['next']==_0x4337b5&&(_0x258ec1['next']=_0xa51d7a),null!=_0xa51d7a&&_0xa51d7a['previous']==_0x4337b5&&(_0xa51d7a['previous']=_0x258ec1),'ready'==this['_suggestionState']['get'](_0x4337b5)&&(this['_suggestionState']['set'](_0x4337b5,'removed'),this['fire']('suggestionUnloaded',_0x4337b5,_0x258ec1,_0xa51d7a));}['_setSuggestionData'](_0x3cc4fd){const _0x14e618=_0x3cc4fd['id'],_0x219db1=this['addSuggestionData'](_0x3cc4fd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3355fd=this['editor']['plugins']['get']('PendingActions'),_0x49bcbd=_0x219db1['hasComments'],_0x3e723e=_0x219db1['subType']?_0x219db1['type']+':'+_0x219db1['subType']:_0x219db1['type'],_0x4287a2=this['editor']['locale'],_0x3cb200=_0x3355fd['add'](o(_0x4287a2,'PENDING_ACTION_SUGGESTION')),_0x441586={'id':_0x14e618,'type':_0x3e723e,'hasComments':_0x49bcbd,'data':_0x3cc4fd['data']||null,'originalSuggestionId':_0x3cc4fd['originalSuggestionId']||null,'attributes':_0x219db1['attributes']};this['_adapter']['addSuggestion'](_0x441586)['then'](_0x5c69fb=>{_0x219db1['_saved']=!0x0,_0x3355fd['remove'](_0x3cb200),_0x5c69fb&&_0x5c69fb['createdAt']&&(this['_suggestions']['get'](_0x14e618)['createdAt']=_0x5c69fb['createdAt']);})['catch'](_0x4506da=>{throw _0x6982ce('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x219db1['discard']();}),_0x219db1['stopListening'](),this['_suggestions']['delete'](_0x219db1['id']),this['_suggestionState']['delete'](_0x219db1),_0x4506da;});}return _0x219db1;}['_isBlockAttribute'](_0x1749cd){return this['editor']['plugins']['get'](_0xb4a06d)['isBlockAttribute'](_0x1749cd);}['_isInlineAttribute'](_0xb78e9b){return this['editor']['plugins']['get'](_0xb4a06d)['isInlineAttribute'](_0xb78e9b);}['_updateSuggestionData'](_0x5adad5,_0x4a038b){const _0x48b0df=this['editor']['plugins']['get']('PendingActions'),_0x3cb1a5=this['getSuggestion'](_0x5adad5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3cb1a5['_saved']){const _0x190e0d=_0x48b0df['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5adad5,_0x4a038b)['then'](()=>{_0x48b0df['remove'](_0x190e0d);});}else _0x3cb1a5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5adad5,_0x4a038b);});}}['_getSuggestionData'](_0x169f00){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ada52('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x169f00);}['_handleNewSuggestionMarker'](_0x3203d0){const {id:_0x2fad89,type:_0x1b2648,subType:_0x25e8ed,authorId:_0x2834b9}=this['_splitMarkerName'](_0x3203d0),_0x1735a6=this['_suggestions']['get'](_0x2fad89)||this['_createSuggestion'](_0x1b2648,_0x25e8ed,_0x2fad89,_0x2834b9,{});switch(this['_checkSuggestionCorrectness'](_0x1735a6,_0x1b2648,_0x25e8ed,_0x2834b9),this['_suggestionState']['get'](_0x1735a6)){case'notReady':this['_getSuggestionData'](_0x2fad89)['then'](_0x5232af=>{let _0x55c810=Promise['resolve']();_0x5232af['hasComments']&&(_0x55c810=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2fad89})),_0x55c810['then'](()=>{this['addSuggestionData'](_0x5232af)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1735a6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2fad89,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1735a6,'ready'),this['fire']('suggestionLoaded',_0x1735a6);break;case'ready':this['fire']('suggestionChanged',_0x1735a6);}return _0x1735a6['addMarkerName'](_0x3203d0),_0x1735a6;}['_refreshSuggestionsChain'](_0x78f5ee){const _0x3bcb4f=Array['from'](_0x78f5ee),_0x53ccc4=_0x3bcb4f['filter'](_0x445972=>'attribute'==_0x445972['type']);this['_refreshAttributeSuggestionsChain'](_0x53ccc4);const _0x345744=_0x3bcb4f['filter'](_0x352ad0=>!_0x352ad0['isMultiRange']&&'attribute'!=_0x352ad0['type']),_0x3fa5eb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x266658=>!_0x266658['isMultiRange']&&'attribute'!=_0x266658['type']),_0x3edee6=_0x3fa5eb['filter'](_0x7c7814=>!_0x78f5ee['has'](_0x7c7814)),_0x573f19=new Map(_0x3fa5eb['map'](_0x27f177=>[_0x27f177,this['_suggestionFactory']['getSuggestionCallback'](_0x27f177['type'],_0x27f177['subType'],'chain')])),_0x493ba5=new Map(_0x3fa5eb['map'](_0x1d84e6=>[_0x1d84e6,_0x1d84e6['getFirstRange']()])),_0x4375ef=new Set(),_0x52ccf6=new Set();for(let _0x2d0ffd=0x0;_0x2d0ffd<_0x345744['length'];_0x2d0ffd++)_0x39ae71(_0x345744[_0x2d0ffd],_0x345744,_0x2d0ffd+0x1);for(let _0x48ad10=0x0;_0x48ad10<_0x345744['length'];_0x48ad10++)_0x39ae71(_0x345744[_0x48ad10],_0x3edee6,0x0);const _0x5d69de=new Set();for(let _0x33975c=0x0;_0x33975c<_0x345744['length'];_0x33975c++){const _0x771164=_0x345744[_0x33975c];!_0x52ccf6['has'](_0x771164)&&_0x771164['previous']&&(_0x5d69de['add'](_0x771164['previous']),_0x771164['previous']['next']===_0x771164&&(_0x771164['previous']['next']=null),_0x771164['previous']=null),!_0x4375ef['has'](_0x771164)&&_0x771164['next']&&(_0x5d69de['add'](_0x771164['next']),_0x771164['next']['previous']===_0x771164&&(_0x771164['next']['previous']=null),_0x771164['next']=null);}function _0x39ae71(_0x4b7db4,_0x1841ff,_0xfdc57c){for(let _0x94195d=_0xfdc57c;_0x94195d<_0x1841ff['length'];_0x94195d++){const _0x52805c=_0xc09b0b(_0x4b7db4,_0x1841ff[_0x94195d]);_0x52805c&&(_0x52805c[0x0]['next']=_0x52805c[0x1],_0x52805c[0x1]['previous']=_0x52805c[0x0],_0x4375ef['add'](_0x52805c[0x0]),_0x52ccf6['add'](_0x52805c[0x1]));}}function _0xc09b0b(_0x359763,_0x3e3ec6){if(_0x359763['author']['id']!==_0x3e3ec6['author']['id'])return null;const _0x53b422=_0x573f19['get'](_0x359763)(_0x359763,_0x3e3ec6,_0x493ba5['get'](_0x359763),_0x493ba5['get'](_0x3e3ec6));if(!_0x53b422)return null;return _0x573f19['get'](_0x3e3ec6)(_0x359763,_0x3e3ec6,_0x493ba5['get'](_0x359763),_0x493ba5['get'](_0x3e3ec6))?_0x53b422[0x1]['commentThread']&&_0x53b422[0x1]['commentThread']['length']?null:_0x53b422:null;}_0x5d69de['size']&&this['_refreshSuggestionsChain'](_0x5d69de);}['_refreshAttributeSuggestionsChain'](_0x2c3cec){if(0x0==_0x2c3cec['length'])return;const _0x2da3cb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fb7aa=>'attribute'==_0x3fb7aa['type']&&_0x3fb7aa['_isDataLoaded']),_0x5e37bd=[],_0x1b7126=new Map();for(const _0x5cf1f8 of _0x2da3cb){const _0xb09432=_0x52739c(_0x5cf1f8['attributes']);_0x1b7126['has'](_0xb09432)||(_0x1b7126['set'](_0xb09432,_0x5e37bd['length']),_0x5e37bd['push']([]));const _0x402408=_0x1b7126['get'](_0xb09432);_0x5e37bd[_0x402408]['push'](_0x5cf1f8);}!(function(){_0x5e37bd['sort']((_0x434da8,_0x16ff52)=>{const _0x1b8eb7=_0x434da8[0x0]['createdAt'],_0x1262e0=_0x16ff52[0x0]['createdAt'];return _0x1b8eb7==_0x1262e0?_0x434da8[0x0]['attributes']['groupId']<_0x16ff52[0x0]['attributes']['groupId']?-0x1:0x1:_0x1b8eb7<_0x1262e0?-0x1:0x1;});for(const _0x25d365 of _0x5e37bd)_0x25d365['sort']((_0x1b9b6a,_0x23b9a5)=>_0x1b9b6a['id']<_0x23b9a5['id']?-0x1:0x1);}());for(let _0x5622ef=0x0;_0x5622ef<_0x5e37bd['length'];_0x5622ef++){if(0x0==_0x5e37bd[_0x5622ef]['length'])continue;const _0x1776a1=[];for(let _0x25e246=_0x5622ef+0x1;_0x25e246<_0x5e37bd['length'];_0x25e246++)0x0!=_0x5e37bd[_0x25e246]['length']&&_0x52ec8a(_0x5e37bd[_0x5622ef],_0x5e37bd[_0x25e246])&&_0x1776a1['push'](_0x25e246);for(const _0x106b04 of _0x1776a1)_0x5e37bd[_0x5622ef]=_0x5e37bd[_0x5622ef]['concat'](_0x5e37bd[_0x106b04]),_0x5e37bd[_0x106b04]=[];}for(const _0x26488d of _0x5e37bd)for(let _0x515bff=0x0;_0x515bff<_0x26488d['length'];_0x515bff++){const _0x28296d=_0x26488d[_0x515bff+0x1]||null;_0x26488d[_0x515bff]['next']!==_0x28296d&&(_0x26488d[_0x515bff]['next']=_0x28296d);}for(const _0x1594f8 of _0x5e37bd)for(let _0x267d50=0x0;_0x267d50<_0x1594f8['length'];_0x267d50++){const _0x45ff85=_0x1594f8[_0x267d50-0x1]||null;_0x1594f8[_0x267d50]['previous']!==_0x45ff85&&(_0x1594f8[_0x267d50]['previous']=_0x45ff85);}function _0x52ec8a(_0x35cdd2,_0x1de141){if(_0x35cdd2[0x0]['attributes']['groupId']!==_0x1de141[0x0]['attributes']['groupId']&&_0x35cdd2[0x0]['author']!==_0x1de141[0x0]['author'])return!0x1;if(!function(_0x44b9b9,_0x1d893c){if(!_0x44b9b9['hasComments']&&!_0x1d893c['hasComments'])return!0x0;if(_0x44b9b9['hasComments']&&_0x1d893c['hasComments'])return!0x1;if(_0x44b9b9['hasComments']&&_0x1d893c['createdAt']<_0x44b9b9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1d893c['hasComments']&&_0x44b9b9['createdAt']<_0x1d893c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x35cdd2[0x0],_0x1de141[0x0]))return!0x1;const _0x1e390c=Jt(_0x35cdd2[0x0]['attributes'],['groupId','trackingSessionId']),_0x4369c6=Jt(_0x1de141[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x12292e(_0x1e390c,_0x4369c6))return!0x1;if(_0x35cdd2[0x0]['attributes']['groupId']==_0x1de141[0x0]['attributes']['groupId'])return!0x0;if(_0x35cdd2[0x0]['attributes']['trackingSessionId']!==_0x1de141[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x35cdd2['every'](_0x1ec066=>_0x1de141['some'](_0x49499a=>_0x1ec066['getFirstRange']()['isEqual'](_0x49499a['getFirstRange']())))&&_0x1de141['every'](_0x28a7ac=>_0x35cdd2['some'](_0xe01e1c=>_0x28a7ac['getFirstRange']()['isEqual'](_0xe01e1c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ab825){const _0x1dbbf8=Array['from'](_0x4ab825),_0x9a665e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3b8152=_0x9a665e['filter'](_0x53edd5=>!_0x4ab825['has'](_0x53edd5)),_0x44c7fd=new Map(_0x1dbbf8['map'](_0x2ee604=>[_0x2ee604,this['_suggestionFactory']['getSuggestionCallback'](_0x2ee604['type'],_0x2ee604['subType'],'join')])),_0x47e14b=new Map(_0x9a665e['map'](_0xc11360=>[_0xc11360,_0xc11360['getRanges']()]));for(let _0x34f48c=0x0;_0x34f48c<_0x1dbbf8['length'];_0x34f48c++){if(_0x2ed1f9(this,_0x1dbbf8[_0x34f48c],_0x1dbbf8,_0x34f48c+0x1))return!0x0;}for(let _0x269cf5=0x0;_0x269cf5<_0x1dbbf8['length'];_0x269cf5++){if(_0x2ed1f9(this,_0x1dbbf8[_0x269cf5],_0x3b8152,0x0))return!0x0;}return!0x1;function _0x2ed1f9(_0x16f3a3,_0x19209b,_0x1509ce,_0x1c474c){for(let _0x296db1=_0x1c474c;_0x296db1<_0x1509ce['length'];_0x296db1++){const _0xeca67b=_0x1509ce[_0x296db1];if(_0xeca67b['type']!==_0x19209b['type']||_0xeca67b['author']['id']!==_0x19209b['author']['id']||_0xeca67b['subType']!==_0x19209b['subType'])continue;if(!en(_0x19209b,_0xeca67b))continue;if('attribute'==_0x19209b['type']&&_0x19209b['data']['oldValue']!=_0xeca67b['data']['oldValue'])continue;if('attribute'==_0x19209b['type']&&_0x16f3a3['_isBlockAttribute'](_0x19209b['data']['key']))continue;if('formatBlock'==_0x19209b['type']){const _0x35939f=_0x16f3a3['editor']['model'],_0x3a7202=_0x19209b['getContainedElement']();if(_0x3a7202&&(_0x35939f['schema']['isObject'](_0x3a7202)||_0x35939f['schema']['isLimit'](_0x3a7202)))continue;}const _0x4d6c2b=_0x44c7fd['get'](_0x19209b),_0xec9676=_0x47e14b['get'](_0x19209b),_0x5c8d7c=_0x47e14b['get'](_0xeca67b),_0x1a08b0=_0x19209b['commentThread']&&_0x19209b['commentThread']['length'],_0x23a3c5=_0xeca67b['commentThread']&&_0xeca67b['commentThread']['length'];if(!_0x1a08b0&&_0x4d6c2b(_0x5c8d7c,_0xec9676))return _0x16f3a3['_joinSuggestions'](_0xeca67b,_0x19209b),_0x47e14b['delete'](_0x19209b),!0x0;if(!_0x23a3c5&&_0x4d6c2b(_0xec9676,_0x5c8d7c))return _0x16f3a3['_joinSuggestions'](_0x19209b,_0xeca67b),_0x47e14b['delete'](_0xeca67b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37bd1d,_0xffd009){if(_0x37bd1d['isMultiRange']){for(const _0x59ab98 of _0xffd009['getRanges']())_0x37bd1d['addRange'](_0x59ab98);}else{const _0x31024d=_0xffd009['getFirstRange']()['end'];this['_setSuggestionRange'](_0x37bd1d,this['_model']['createRange'](_0x37bd1d['getFirstRange']()['start'],_0x31024d));}_0xffd009['removeMarkers']();}['_getMarkerAnnouncementText'](_0x451b48,_0x4a78a1,_0x4171de){const _0x558775=_0x451b48['startsWith']('format')||_0x451b48['startsWith']('attribute')?'FORMATTING':_0x451b48['toUpperCase']();return o(this['editor']['locale'],_0x4a78a1+'_'+_0x558775+'_SUGGESTION_ANNOUNCEMENT',_0x4171de);}['_initAriaMarkerChangeAnnouncements'](){const _0x1be303=this['editor'];if(!_0x1be303['ui'])return;const {ariaLiveAnnouncer:_0x9ba23b}=_0x1be303['ui'];_0x2eb02b(this['_model'],({left:_0x5baa32,entered:_0x509027})=>{for(const _0x3d40dd of _0x5baa32){const {group:_0x15ced7,type:_0x2953e5}=this['_splitMarkerName'](_0x3d40dd['name']);if('suggestion'===_0x15ced7){_0x9ba23b['announce'](this['_getMarkerAnnouncementText'](_0x2953e5,'LEAVE'));break;}}for(const _0x236f98 of _0x509027){const {group:_0x445975,type:_0x143782}=this['_splitMarkerName'](_0x236f98['name']);if('suggestion'===_0x445975){_0x9ba23b['announce'](this['_getMarkerAnnouncementText'](_0x143782,'ENTER',_0x5dd2f5(_0x11338b)));break;}}});}['_processAttributeChanges'](_0x57bcd1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24ee59=this['editor'],_0xed3c88=_0x24ee59['model']['document']['differ']['getChanges']();if(0x0==_0xed3c88['length'])return!0x1;const _0xd623a2=[],_0x235989=_0xed3c88['filter'](_0x1ef992=>'attribute'==_0x1ef992['type']),_0x1a8f43=_0xed3c88['filter'](_0x46bd50=>'insert'==_0x46bd50['type']&&'$text'!=_0x46bd50['name']),_0x3c1766=_0xed3c88['filter'](_0x4d0806=>'remove'==_0x4d0806['type']&&'$text'!=_0x4d0806['name']);for(const _0x6d4dc4 of _0x235989)_0xd623a2['push']({'key':_0x6d4dc4['attributeKey'],'newValue':_0x6d4dc4['attributeNewValue'],'oldValue':_0x6d4dc4['attributeOldValue'],'range':Zt(_0x6d4dc4['range'],_0x24ee59['model'])});for(const _0x4c14ed of _0x1a8f43){const _0x12fc66=_0x3c1766['find'](_0x2d4b71=>_0x2d4b71['position']['isEqual'](_0x4c14ed['position']));_0x12fc66&&_0xd623a2['push']({'key':m,'newValue':_0x4c14ed['name'],'oldValue':_0x12fc66['name'],'range':_0x24ee59['model']['createRangeOn'](_0x4c14ed['position']['nodeAfter'])});}return 0x0!=_0xd623a2['length']&&this['_reduceExistingSuggestions'](_0x57bcd1,_0xd623a2);}['_processAttributeSuggestions'](_0x473644){let _0x3daece=!0x1;const _0x3a6d99=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x312312=>_0x312312['data']['newRange']&&_0x312312['name']['startsWith']('suggestion:attribute:'));for(const _0x18a08e of _0x3a6d99){const {subType:_0x1d91b3,id:_0x5a30a6}=this['_splitMarkerName'](_0x18a08e['name']),_0xc86259=_0x1d91b3['split']('|')[0x0];for(const _0x59aa6e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59aa6e['id']!=_0x5a30a6&&'attribute'==_0x59aa6e['type']&&_0x59aa6e['data']&&_0x59aa6e['data']['key']==_0xc86259&&_0x59aa6e['getFirstRange']()['isIntersecting'](_0x18a08e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59aa6e,_0x18a08e['data']['newRange'],_0x473644),_0x3daece=!0x0);}return _0x3daece;}['recordAttributeChanges'](_0x230610){this['_recordAttributeSuggestions']=!0x0,_0x230610();}['_isRegisteredAttribute'](_0xc4f098){return this['editor']['plugins']['get'](_0xb4a06d)['isRegisteredAttribute'](_0xc4f098);}['_reduceExistingSuggestions'](_0x521287,_0x4f4577){if(0x0==_0x4f4577['length'])return!0x1;let _0x15a7a5=!0x1;for(const _0x51c2e5 of _0x4f4577){const _0x48625a=this['_findSuggestions'](_0x51c2e5['range'],'attribute')['filter'](_0x1a7981=>!_0x1a7981['meta']['isNextTo'])['map'](_0x5bd3ff=>_0x5bd3ff['suggestion']),_0x217898=_0x52739c({'newValue':_0x51c2e5['newValue']});_0x48625a['filter'](_0x258930=>{const [_0xb4494a,_0x35c147]=_0x258930['subType']['split']('|');return _0xb4494a==_0x51c2e5['key']&&_0x35c147!=_0x217898;})['forEach'](_0x59f8ed=>{this['_reduceSuggestionAttributeRange'](_0x59f8ed,_0x51c2e5['range'],_0x521287),_0x15a7a5=!0x0;});}return _0x15a7a5;}['_reduceSuggestionAttributeRange'](_0x15ddc0,_0x288dd5,_0x229c9b){const _0x1f1b11=_0x15ddc0['getFirstRange']()['getDifference'](_0x288dd5);0x0!==_0x1f1b11['length']?0x1!==_0x1f1b11['length']?this['_breakSuggestionMarker'](_0x15ddc0,_0x288dd5['start'],_0x288dd5['end']):this['_setSuggestionRange'](_0x15ddc0,_0x1f1b11[0x0]):_0x229c9b['removeMarker'](_0x15ddc0['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x427690){this['_editor']=_0x427690,this['_model']=_0x427690['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x46cc74,_0x2cf86b,_0x3810c5,_0x1d709d,_0x4401f6,_0x4dee71,_0x7cc7b6){return new T(this['_model'],{'type':_0x46cc74,'subType':_0x2cf86b,'id':_0x3810c5,'originalSuggestionId':_0x7cc7b6,'author':_0x1d709d,'creator':_0x1d709d,'attributes':_0x4401f6,'onAttributesChange':_0x4dee71,'onAccept':(..._0x485426)=>this['getSuggestionCallback'](_0x46cc74,_0x2cf86b,'accept')(..._0x485426),'onDiscard':(..._0x10a448)=>this['getSuggestionCallback'](_0x46cc74,_0x2cf86b,'discard')(..._0x10a448)});}['registerCustomCallback'](_0x43b6f3,_0x4f43c7,_0x308f7e,_0x2917e1){const _0x54dbf4=_0x43b6f3+':'+_0x4f43c7+':'+_0x308f7e;this['_customCallbacks']['set'](_0x54dbf4,_0x2917e1);}['getSuggestionCallback'](_0xd2a378,_0x97b22,_0x958890){const _0x497dec=_0xd2a378+':'+_0x97b22+':'+_0x958890;return this['_customCallbacks']['get'](_0x497dec)||this['_defaultCallbacks']['get'](_0xd2a378+':'+_0x958890);}['_registerDefaultCallbacks'](){const _0xba0f97=()=>!0x1,_0x58990e=_0x509fca=>{_0x509fca['sort']((_0x878719,_0x1b1b5b)=>_0x878719['start']['isBefore'](_0x1b1b5b['start'])?0x1:-0x1),this['_model']['change'](_0x2c75a2=>{for(const _0x3bc6c5 of _0x509fca){let _0x59302e;_0x59302e=_0x3bc6c5['end']['isAtEnd']&&_0x3bc6c5['end']['parent']==_0x3bc6c5['start']['nodeAfter']?_0x2c75a2['createSelection'](_0x3bc6c5['start']['nodeAfter'],'on'):_0x2c75a2['createSelection'](_0x3bc6c5),this['_model']['deleteContent'](_0x59302e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3071e4=(_0x5a589b,_0x447811)=>{_0x447811&&this['_model']['change'](_0x8691fd=>{const {commandName:_0x3da883,commandParams:_0x5afa30=[]}=_0x447811,_0x2abfb2=_0x5a589b['map'](_0x52a191=>(Kt(_0x52a191)&&(_0x52a191=this['_model']['createRange'](_0x52a191['end'])),_0x52a191))['filter'](_0x352291=>'$graveyard'!==_0x352291['root']['rootName']);if(_0x2abfb2['length']<0x1)return;const _0x1e0e28=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57d6f9=>_0x32abf5['fromRange'](_0x57d6f9));_0x8691fd['setSelection'](_0x2abfb2);for(const _0xf20883 of this['_editor']['commands']['commands']())_0xf20883['refresh']();_0x5afa30['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3da883,..._0x5afa30);const _0xad9f3a=_0x1e0e28['filter'](_0x1f216f=>'$graveyard'!=_0x1f216f['root']['rootName']);_0xad9f3a['length']>0x0&&_0x8691fd['setSelection'](_0xad9f3a);for(const _0x47b661 of _0x1e0e28)_0x47b661['detach']();});},_0x46c5dd=(_0x2d7faf,_0x191f0d)=>0x1==_0x2d7faf['length']&&0x1==_0x191f0d['length']&&_0x2d7faf[0x0]['end']['isEqual'](_0x191f0d[0x0]['start']),_0x4a8c8a=(_0x470e04,_0x10f050,_0x3e5128,_0x32f37e)=>nn(_0x470e04,_0x10f050,_0x3e5128,_0x32f37e)?[_0x470e04,_0x10f050]:nn(_0x10f050,_0x470e04,_0x32f37e,_0x3e5128)?[_0x10f050,_0x470e04]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xba0f97),this['_defaultCallbacks']['set']('insertion:discard',_0x58990e),this['_defaultCallbacks']['set']('insertion:join',_0x46c5dd),this['_defaultCallbacks']['set']('insertion:chain',_0x4a8c8a),this['_defaultCallbacks']['set']('deletion:accept',_0x58990e),this['_defaultCallbacks']['set']('deletion:discard',_0xba0f97),this['_defaultCallbacks']['set']('deletion:join',_0x46c5dd),this['_defaultCallbacks']['set']('deletion:chain',_0x4a8c8a),this['_defaultCallbacks']['set']('formatInline:accept',_0x3071e4),this['_defaultCallbacks']['set']('formatInline:discard',_0xba0f97),this['_defaultCallbacks']['set']('formatInline:join',_0x46c5dd),this['_defaultCallbacks']['set']('formatInline:chain',_0xba0f97),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3071e4),this['_defaultCallbacks']['set']('formatBlock:discard',_0xba0f97),this['_defaultCallbacks']['set']('formatBlock:join',_0x46c5dd),this['_defaultCallbacks']['set']('formatBlock:chain',_0xba0f97),this['_defaultCallbacks']['set']('attribute:accept',_0xba0f97),this['_defaultCallbacks']['set']('attribute:discard',(_0x13be41,_0x12f190)=>{if(!_0x12f190)return;const _0x2ae357=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x37d912=>{if(_0x12f190['key']==m)for(const _0x155ae2 of _0x13be41){const _0x28c7d7=_0x155ae2['start']['nodeAfter'],_0x2b40d7=_0x12f190['oldValue'];_0x37d912['rename'](_0x28c7d7,_0x2b40d7);}else{if(_0x2ae357['_isBlockAttribute'](_0x12f190['key'])){for(const _0x167385 of _0x13be41)void 0x0!==_0x12f190['oldValue']?_0x37d912['setAttribute'](_0x12f190['key'],_0x12f190['oldValue'],_0x167385['start']['nodeAfter']):_0x37d912['removeAttribute'](_0x12f190['key'],_0x167385['start']['nodeAfter']);}else{for(const _0x59f8e9 of _0x13be41)_0x12f190['oldValue']?_0x37d912['setAttribute'](_0x12f190['key'],_0x12f190['oldValue'],_0x59f8e9):_0x37d912['removeAttribute'](_0x12f190['key'],_0x59f8e9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x46c5dd);}}function zt(_0x40d5ae,_0x4a6da7,_0xa8be09){for(const _0xc8ea4d of _0x4a6da7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xc8ea4d['root']==_0xc8ea4d)return!0x1;if(!_0xa8be09['containsItem'](_0xc8ea4d))return!0x1;if(_0x40d5ae['isObject'](_0xc8ea4d)||_0x40d5ae['isLimit'](_0xc8ea4d))return!0x0;}return!0x1;}function Kt(_0x1176d8){return _0x1176d8['end']['parent']==_0x1176d8['start']['nodeAfter']&&_0x1176d8['end']['isAtStart'];}function Wt(_0x4902ec,_0x76fc75,_0x12ad37,_0x2e26f4){const _0x214a9a=_0x1d62a7=>!_0x1d62a7['item']['is']('$textProxy')&&!_0x2e26f4['isObject'](_0x1d62a7['item']),_0x526ab5=_0x4902ec['start']['getLastMatchingPosition'](_0x214a9a),_0x1445a5=_0x4902ec['end']['getLastMatchingPosition'](_0x214a9a,{'direction':'backward'});return(!_0x4902ec['start']['isEqual'](_0x526ab5)||!_0x4902ec['end']['isEqual'](_0x1445a5))&&(_0x526ab5['isBefore'](_0x1445a5)?_0x12ad37['updateMarker'](_0x76fc75,{'range':_0x12ad37['createRange'](_0x526ab5,_0x1445a5)}):_0x12ad37['removeMarker'](_0x76fc75),!0x0);}function Ht(_0x295e2b){return _0x52739c(_0x295e2b);}function Qt(_0xb1af6b){const _0x49a714=_0xb1af6b['start']['nodeAfter'];return _0x49a714&&_0x49a714['is']('element');}function Xt(_0x3309c5){return Kt(_0x3309c5)||function(_0x861f6b){return _0x861f6b['start']['parent']==_0x861f6b['end']['nodeBefore']&&_0x861f6b['start']['isAtEnd'];}(_0x3309c5);}function Yt(_0xced57a,_0x16eb75){try{const _0x40f87d=_0xced57a['getRange']();for(const _0x4c0df6 of _0x16eb75)if(_0xced57a!==_0x4c0df6&&_0x40f87d&&_0x40f87d['isIntersecting'](_0x4c0df6['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3d91ae,_0x142e8b){return null==_0x3d91ae['end']['nodeBefore']&&_0x3d91ae['end']['parent']==_0x3d91ae['start']['nodeAfter']?tn(_0x3d91ae['start']['nodeAfter'],_0x142e8b):_0x3d91ae;}function tn(_0x4df6bb,_0x21f7b8){const _0x50eee4=_0x21f7b8['schema']['isObject'](_0x4df6bb)||_0x21f7b8['schema']['isSelectable'](_0x4df6bb);return _0x21f7b8['createRange'](_0x21f7b8['createPositionAt'](_0x4df6bb,'before'),_0x50eee4?_0x21f7b8['createPositionAfter'](_0x4df6bb):_0x21f7b8['createPositionAt'](_0x4df6bb,'end'));}function nn(_0x3ecbf1,_0x216838,_0x42f7af,_0x1cf644){return!!en(_0x3ecbf1,_0x216838)&&_0x42f7af['end']['isEqual'](_0x1cf644['start']);}function en(_0x5e2c73,_0x5bd5cf){if(!_0x5e2c73['_isDataLoaded']||!_0x5bd5cf['_isDataLoaded'])return!0x1;const _0x73ffe4=new Set(Object['keys'](_0x5e2c73['attributes'])),_0x383887=new Set(Object['keys'](_0x5bd5cf['attributes']));if(_0x73ffe4['delete']('groupId'),_0x383887['delete']('groupId'),0x0==_0x73ffe4['size']&&0x0==_0x383887['size'])return!0x0;if(_0x73ffe4['size']!=_0x383887['size'])return!0x1;const _0x395db5={..._0x5e2c73['attributes']},_0x518ab2={..._0x5bd5cf['attributes']};return delete _0x395db5['groupId'],delete _0x518ab2['groupId'],JSON['stringify'](_0x395db5)==JSON['stringify'](_0x518ab2);}function sn(_0x396be3,_0x53b1f0){const _0x5b79e7=on(_0x396be3['attributes']),_0x4ebde6=on(_0x53b1f0);if(!_0x396be3['_isDataLoaded'])return!0x1;for(const _0x15bd9b of Object['keys'](_0x4ebde6))if(!_0x12292e(_0x5b79e7[_0x15bd9b],_0x4ebde6[_0x15bd9b]))return!0x1;return!0x0;}function on(_0x2017d4){const _0x42bea7=Object['assign']({},_0x2017d4);return delete _0x42bea7['skipNestingCheck'],delete _0x42bea7['tablePasteChainId'],_0x42bea7;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x321e16(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40e146,_0x2e6e02,_0x563b4b,_0x309dee){super(),this['model']=_0x2e6e02,this['view']=_0x563b4b,this['commentThreadController']=_0x309dee,this['_editor']=_0x40e146,this['_acceptCommand']=_0x40e146['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40e146['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xd837e3,_0x4bed79)=>_0xd837e3||_0x4bed79),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x135433=>_0x135433&&this['_editor']['model']['canEditAt'](_0x2e6e02['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xd4a142=>_0xd4a142&&this['_editor']['model']['canEditAt'](_0x2e6e02['getRanges']())),this['_pendingAction']=null,_0x563b4b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x563b4b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x563b4b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x563b4b,'change:isDirty',()=>{_0x563b4b['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 _0x4fcb0a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4fcb0a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2b8702{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2cd9a7,_0x32ce58,_0x5a674e,_0x2c3f84){super(_0x2cd9a7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30d05e(_0x2cd9a7,o(_0x2cd9a7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x32ce58['authoredAt']),this['bind']('authoredAt')['to'](_0x32ce58),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',_0x32ce58,'authoredAt',this,'descriptionParts',(_0x5c2667,_0x55ad56,_0x37a790)=>{const _0x1acb9=_0x37a790['map'](_0x529cf1=>ls(_0x529cf1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5c2667-0x1,_0x32ce58['author']['name'],_0x55ad56?_0x2c3f84['formatDateTime'](_0x55ad56):'',new DOMParser()['parseFromString'](_0x1acb9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c1887(),this['focusTracker']=new _0x3b8d86(),this['keystrokes']=new _0x2682b1(),this['focusCycler']=new _0x40b896({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x497892=>_0x497892['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x32ce58,this['_localUser']=_0x5a674e,this['_config']=_0x2c3f84,_0x2c3f84['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4bd698(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5e14d4}=this['_config'];this['commentsListView']=new _0x5e14d4(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',_0x36f78f=>_0x36f78f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4950a1,_0x44a85b)=>_0x4950a1||!!_0x44a85b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x769db1}=this['_config'],_0x25b01=new _0x769db1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xcf0ec3=_0x25b01['commentInputView'];return _0x25b01['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xcf0ec3,'value',(_0x1656ed,_0x50e2e0,_0x5d884c)=>!!_0x5d884c||_0x1656ed&&!_0x50e2e0),_0xcf0ec3['on']('submit',(_0x11cc87,_0x41de81)=>{this['fire']('addComment',_0x41de81),_0xcf0ec3['editor']['setData']('');}),_0xcf0ec3['on']('cancel',()=>this['focus']()),_0xcf0ec3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x25b01;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x32d1e1,_0x5176d3,_0x26e9ce,_0x45481d){super(_0x32d1e1,_0x5176d3,_0x26e9ce,_0x45481d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x35f5f7=>_0x35f5f7&&_0x35f5f7[0x0]?_0x35f5f7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x43c452,_0x5b0a3c)=>{let _0x47f6a9='';for(const _0x60674e of _0x43c452)_0x47f6a9+='<p>'+ls(_0x60674e['content'],_0x60674e['color'])+'</p>';return _0x5b0a3c?_0x47f6a9:_0x12cec5(_0x47f6a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x45481d['SuggestionView'](_0x32d1e1,_0x5176d3,{'formatDateTime':_0x45481d['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x359939=this['bindTemplate'],_0x51a6e0=[this['suggestionView']];return this['commentsListView']&&_0x51a6e0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x51a6e0['push'](this['commentThreadInputView']),_0x51a6e0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x359939['if']('isActive','ck-suggestion-wrapper--active'),_0x359939['to']('type',_0x5c7a54=>'ck-suggestion-'+_0x5c7a54),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':_0x359939['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x51a6e0};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2b8702{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2ec0f6,_0x35ba3d,_0x296e46){super(_0x2ec0f6),this['_model']=_0x35ba3d,this['_config']=_0x296e46,this['set']('description',''),this['bind']('authoredAt')['to'](_0x35ba3d),this['acceptButton']=this['_createButton'](o(_0x2ec0f6,'Accept\x20suggestion'),_0x46bad3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2ec0f6,'Discard\x20suggestion'),_0x4dd81b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a00b1(_0x2ec0f6,_0x35ba3d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c1887([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b8d86(),this['keystrokes']=new _0x2682b1(),this['focusCycler']=new _0x40b896({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x25527e=>_0x25527e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x111a5b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x111a5b['innerHTML']=this['description'],this['on']('change:description',(_0x541a2b,_0x1f8ffa,_0x1f3536)=>{_0x111a5b['innerHTML']=_0x1f3536;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x328ffa=this['bindTemplate'],_0x77735c=[{'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':_0x328ffa['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x328ffa['to']('authoredAt',_0x35191d=>this['_config']['formatDateTime'](_0x35191d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x77735c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x77735c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3fb468,_0x4b0d38,_0x1fe903,_0x4104d7,_0x4e5171){const _0x121cd1=new _0x33e1e9(this['locale']);return _0x121cd1['set']({'label':_0x3fb468,'icon':_0x4b0d38,'tooltip':!0x0,'tooltipPosition':_0x4e5171}),_0x121cd1['extendTemplate']({'attributes':{'class':_0x1fe903}}),_0x121cd1['on']('execute',()=>{this['fire'](_0x4104d7,this['_model']['id']);}),_0x121cd1;}['_setupKeyboardNavigation'](){const _0x56a48c=this['element'];this['keystrokes']['listenTo'](_0x56a48c);for(const _0x42a101 of this['focusables'])this['focusTracker']['add'](_0x42a101['element']),this['keystrokes']['listenTo'](_0x42a101['element']);this['keystrokes']['set']('enter',(_0x45b7e3,_0x389d74)=>{_0x56a48c===_0x45b7e3['target']&&(this['focusCycler']['focusFirst'](),_0x389d74());}),this['keystrokes']['set']('esc',(_0x678588,_0xfe3697)=>{_0x56a48c!==_0x678588['target']&&(this['focus'](),_0xfe3697());});}}class u extends _0x574be8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x397ab4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43a27){super(_0x43a27),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4b9dde=this['editor']['config'];_0x4b9dde['define']('trackChanges.SuggestionThreadView',fe),_0x4b9dde['define']('trackChanges.SuggestionView',we),_0x4b9dde['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4b9dde['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ecb96,_0x2e2a9d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3e30e8,_0x3b1ad3]of this['_handleControllerBuffer']){const _0x173c95=this['_suggestionToController']['has'](_0x3e30e8);_0x173c95||_0x3b1ad3?_0x173c95&&_0x3b1ad3&&this['_destroyController'](_0x3e30e8):this['_initializeController'](_0x3e30e8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ecb96,_0x2e2a9d);}['init'](){const _0x1d98fa=this['editor'],_0x2eb6ef=_0x1d98fa['plugins']['get']('TrackChangesEditing'),_0x3d8030=_0x1d98fa['plugins']['get']('Annotations'),_0x121c5f=_0x1d98fa['plugins']['get']('EditorAnnotations'),_0x1980d7=_0x1d98fa['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x121c5f['addSourceCollector'](()=>{const _0x5f14be=[];for(const [_0x34f5c3,_0x216ec5]of Array['from'](this['_suggestionToController'])){const _0x23f78d=_0x34f5c3['getAllAdjacentSuggestions'](),_0x330202=[];for(const _0x3b0bd6 of _0x23f78d){if(!_0x3b0bd6['isInContent'])continue;if(_0x3b0bd6['isMultiRange']){_0x330202['push'](..._0x3b0bd6['getRanges']());continue;}const _0x5aca2c=_0x3b0bd6['getFirstRange']();if(_0x330202['length']>0x0){const _0x4d81b9=_0x330202[0x0]['getJoined'](_0x5aca2c);if(_0x4d81b9){_0x330202[0x0]=_0x4d81b9;continue;}}_0x330202['push'](_0x5aca2c);}_0x5f14be['push']([_0x216ec5['view'],_0x330202]);}return _0x5f14be;}),this['listenTo'](_0x2eb6ef,'suggestionLoaded',(_0x161404,_0x291ea5)=>{this['listenTo'](_0x291ea5,'change:previous',(_0x388b51,_0x4fac0a,_0x52586f,_0xa22338)=>{_0x291ea5['isInContent']&&(null==_0x52586f?(this['_updateController'](_0xa22338['head']),this['_handleSuggestionControllerDelayed'](_0x291ea5,!0x1)):(this['_updateController'](_0x52586f['head']),null==_0xa22338&&this['_handleSuggestionControllerDelayed'](_0x291ea5,!0x0)));}),null!==_0x291ea5['previous']?this['_updateController'](_0x291ea5['head']):this['_handleSuggestionControllerDelayed'](_0x291ea5,!0x1);}),this['listenTo'](_0x2eb6ef,'suggestionUnloaded',(_0x179974,_0x5c65d6,_0x31f12)=>{this['stopListening'](_0x5c65d6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5c65d6),this['_suggestionToController']['has'](_0x5c65d6)&&this['_destroyController'](_0x5c65d6),_0x31f12&&this['_updateController'](_0x31f12['head']);}),this['listenTo'](_0x2eb6ef,'suggestionChanged',(_0x31032a,_0x433e99)=>{this['_updateController'](_0x433e99);}),this['listenTo'](_0x3d8030,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1980d7,'addComment',(_0x215382,{threadId:_0xaeb299,isFromAdapter:_0x479c08})=>{if(_0x479c08||!_0x2eb6ef['hasSuggestion'](_0xaeb299))return;const _0x5883e0=_0x2eb6ef['getSuggestion'](_0xaeb299);this['_suggestionToController']['get'](_0x5883e0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6c67d2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32c584;for(const _0x8a2e5d in _0x6c67d2){const _0x46720c=_0x8a2e5d,_0xab9dcd=_0x6c67d2[_0x46720c];if('trackChangesLicenseKeyValid'==_0xab9dcd||'trackChangesLicenseKeyInvalid'==_0xab9dcd||'trackChangesLicenseKeyExpired'==_0xab9dcd||'trackChangesLicenseKeyDomainLimit'==_0xab9dcd||'trackChangesLicenseKeyNotAllowed'==_0xab9dcd||'trackChangesLicenseKeyEvaluationLimit'==_0xab9dcd||'trackChangesLicenseKeyUsageLimit'==_0xab9dcd){delete _0x6c67d2[_0x46720c],_0x32c584=_0xab9dcd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x32c584&&_0x6c67d2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x32c584&&_0x6c67d2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x32c584&&_0x6c67d2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x32c584&&_0x6c67d2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x32c584&&_0x6c67d2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x32c584&&_0x6c67d2['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2f584e){const _0x4b5f17=this['_suggestionToController']['get'](_0x2f584e);if(!_0x4b5f17)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4b5f17['view'])||null;}['getSuggestionForAnnotation'](_0x41c2ad){const _0x31f19d=this['_viewToController']['get'](_0x41c2ad['innerView']);return _0x31f19d?_0x31f19d['model']:null;}['_refreshActiveMarkers'](){const _0x24f845=this['editor']['plugins']['get']('Annotations'),_0x10618f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d3902=Array['from'](_0x24f845['activeAnnotations'],_0x1899a2=>_0x1899a2['innerView'])['filter'](_0x32e458=>this['_viewToController']['has'](_0x32e458)),_0x4130b3=[];for(const _0x2aeeb0 of _0x3d3902){const _0x380050=this['_viewToController']['get'](_0x2aeeb0)['model']['getAllAdjacentSuggestions']();_0x4130b3['push'](..._0x380050['reduce']((_0x36cf57,_0x47dba8)=>[..._0x36cf57,..._0x47dba8['getMarkerNames']()],[]));}_0x10618f['activeMarkers']=_0x4130b3;}['_addUIComponentsToFactory'](){const _0x45d4e4=this['editor'],_0x95ba73=_0x45d4e4['locale'],_0x376905=o(_0x95ba73,'Track\x20changes'),_0x13e084=new _0x3410df([{'type':'switchbutton','model':new _0x514f8b({'withText':!0x0,'isToggleable':!0x0,'label':_0x376905,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x514f8b({'withText':!0x0,'label':o(_0x95ba73,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x514f8b({'withText':!0x0,'label':o(_0x95ba73,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x514f8b({'withText':!0x0,'label':o(_0x95ba73,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x514f8b({'withText':!0x0,'label':o(_0x95ba73,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x45d4e4['plugins']['has']('TrackChangesPreview')&&_0x13e084['addMany']([{'type':'separator'},{'type':'button','model':new _0x514f8b({'withText':!0x0,'label':o(_0x95ba73,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x30e4b3 of _0x13e084)if(ke(_0x30e4b3)){const _0x3640be=_0x45d4e4['commands']['get'](_0x30e4b3['model']['commandName']);_0x30e4b3['model']['bind']('isOn','isEnabled')['to'](_0x3640be,'value','isEnabled');}_0x45d4e4['ui']['componentFactory']['add']('trackChanges',_0x1127f6=>this['_createToolbarButton'](_0x1127f6,_0x13e084,_0x376905)),_0x45d4e4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x27c0a8=>this['_createMenuBarMenu'](_0x27c0a8,_0x13e084,_0x376905));}['_createToolbarButton'](_0x327e68,_0x28fc53,_0x448dea){const _0x32157c=_0x286ed6(_0x327e68,_0x311daa),_0x25a85b=this['editor']['commands']['get']('trackChanges');_0x32157c['buttonView']['set']({'tooltip':_0x448dea,'label':_0x448dea,'icon':_0x3fd010}),_0x32157c['buttonView']['bind']('isOn')['to'](_0x25a85b,'value'),_0x32157c['buttonView']['on']('execute',()=>{_0x25a85b['execute'](),this['editor']['editing']['view']['focus']();}),_0x1dc0b3(_0x32157c,_0x28fc53,{'role':'menu'});const _0x2d64af=[];for(const _0x47bc1b of _0x28fc53)ke(_0x47bc1b)&&_0x2d64af['push'](this['editor']['commands']['get'](_0x47bc1b['model']['commandName']));const _0x270b9a=_0x32157c['buttonView'];return _0x270b9a['actionView']['unbind']('isEnabled'),_0x270b9a['arrowView']['unbind']('isEnabled'),_0x270b9a['actionView']['bind']('isEnabled')['to'](_0x25a85b,'isEnabled'),_0x270b9a['arrowView']['bind']('isEnabled')['toMany'](_0x2d64af,'isEnabled',(..._0x325b61)=>_0x325b61['some'](_0x2f8665=>_0x2f8665)),_0x32157c['on']('execute',_0x11effb=>{this['editor']['execute'](_0x11effb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x32157c;}['_createMenuBarMenu'](_0x303a76,_0x31e487,_0x551417){const _0x307c75=new _0x382392(_0x303a76),_0x2b25d5=this['editor']['commands']['get']('trackChanges');_0x307c75['buttonView']['set']({'label':_0x551417,'icon':_0x3fd010});const _0x2bbfd0=new _0x15301e(_0x303a76);for(const _0x3aaf27 of _0x31e487){if('separator'==_0x3aaf27['type']){_0x2bbfd0['items']['add'](new _0x176c44(_0x303a76));continue;}const _0xbcf7b2=new _0x3146ec(_0x303a76,_0x307c75),_0x29d353=new _0x17670f(_0x303a76),_0x280b95=_0x3aaf27['model'];_0x29d353['bind'](...Object['keys'](_0x280b95))['to'](_0x280b95),_0x29d353['delegate']('execute')['to'](_0x307c75),_0x29d353['on']('execute',()=>{this['editor']['execute'](_0x280b95['commandName']),this['editor']['editing']['view']['focus']();}),_0xbcf7b2['children']['add'](_0x29d353),_0x2bbfd0['items']['add'](_0xbcf7b2);}return _0x307c75['bind']('isEnabled')['to'](_0x2b25d5,'isEnabled'),_0x307c75['panelView']['children']['add'](_0x2bbfd0),_0x307c75;}['_initializeController'](_0xae2f29){const _0x4b6834=this['editor'],_0x54faef=_0x4b6834['config'],_0x29f7da=_0x4b6834['plugins']['get']('Annotations'),_0x266cfd=_0x4b6834['plugins']['get']('CommentsRepository'),_0x27ff4e=_0x4b6834['plugins']['get']('EditorAnnotations'),_0x5f390b=_0x4b6834['plugins']['get'](_0x397ab4)['me'],_0x311972=_0x54faef['get']('trackChanges')['SuggestionThreadView'],_0x4375ae=_0x54faef['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xa0fcc2,CommentThreadInputView:_0x172df8}=_0x4b6834['plugins']['get']('CommentsUI');let _0x176077,_0x48589a,_0x351728;this['_annotationViews']['has'](_0xae2f29['id'])?(_0x48589a=this['_annotationViews']['get'](_0xae2f29['id']),_0x176077=_0x48589a['mainView']):(_0x176077=new _0x311972(_0x4b6834['locale'],_0xae2f29,_0x5f390b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x54faef['get']('comments.editorConfig'),'licenseKey':_0x54faef['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x54faef['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x54faef['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x54faef['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1de815(_0x54faef['get']('locale'),_0x4b6834['locale']),'CommentView':_0x54faef['get']('comments')['CommentView'],'CommentsListView':_0xa0fcc2,'CommentThreadInputView':_0x172df8,'SuggestionView':_0x4375ae}),_0x176077['suggestionView']['acceptButton']['on']('execute',()=>{_0x4b6834['editing']['view']['focus']();}),_0x176077['suggestionView']['discardButton']['on']('execute',()=>{_0x4b6834['editing']['view']['focus']();}),_0x48589a=_0x29f7da['createAnnotationView'](this['editor']['locale'],_0x176077),_0x48589a['bind']('isDirty')['to'](_0x176077,'isDirty'),_0x48589a['bind']('length')['to'](_0x176077),_0x48589a['bind']('type')['to'](_0x176077,'type',_0x16d88d=>'suggestion-'+_0x16d88d),_0x176077['on']('escape',()=>{_0x351728['fire']('escape');}),this['_annotationViews']['set'](_0xae2f29['id'],_0x48589a));const _0x1dab27=_0x266cfd['createCommentThreadController'](_0xae2f29['commentThread'],_0x176077),_0x3a849b=new pe(_0x4b6834,_0xae2f29,_0x176077,_0x1dab27),_0x8e489c=_0xae2f29['getAllAdjacentSuggestions']()['filter'](_0x18a69e=>_0x18a69e['isInContent']);_0x176077['descriptionParts']=_0x4b6834['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x8e489c),this['_suggestionToController']['set'](_0xae2f29,_0x3a849b),this['_viewToController']['set'](_0x176077,_0x3a849b);const _0x43bd93=()=>{const _0x271aa9=[],_0x5225fb=_0xae2f29['getAllAdjacentSuggestions']()['filter'](_0x57c048=>_0x57c048['isInContent']);for(const _0x318612 of _0x5225fb)_0x271aa9['push'](..._0x318612['getMarkers']());return _0x399c45(_0x4b6834['editing'],_0x271aa9);};_0x351728=_0x29f7da['createAnnotation']({'view':_0x48589a,'target':_0x43bd93,'type':()=>'suggestion-'+_0x3a849b['view']['type'],'isVisible':!!_0x43bd93()}),_0x266cfd['_bindAnnotationToEditors'](_0x176077,_0x351728),_0x29f7da['add'](_0x351728),_0x27ff4e['registerAnnotation'](_0x351728);}['_destroyController'](_0x38d0b7){const _0x47e3b0=this['editor']['plugins']['get']('CommentsRepository'),_0x21d180=this['editor']['plugins']['get']('Annotations'),_0x524cfc=this['_suggestionToController']['get'](_0x38d0b7),_0x145e06=_0x524cfc['view'],_0x16348f=_0x21d180['getByInnerView'](_0x145e06);_0x47e3b0['_unbindEditors'](_0x145e06),_0x16348f&&_0x21d180['remove'](_0x16348f),this['_suggestionToController']['delete'](_0x38d0b7),this['_viewToController']['delete'](_0x145e06),_0x524cfc['destroy']();}['_updateController'](_0x438b9f){if(!_0x438b9f['isInContent']||!this['_suggestionToController']['has'](_0x438b9f))return;const _0xd24262=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c82fb=this['_suggestionToController']['get'](_0x438b9f),_0x16bf9e=_0x438b9f['getAllAdjacentSuggestions']();_0x5c82fb['view']['descriptionParts']=_0xd24262['descriptionFactory']['getDescriptions'](_0x16bf9e);}['destroy'](){for(const _0x4eeb57 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4eeb57);for(const _0x1cbdad of this['_annotationViews']['values']())_0x1cbdad['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3b3324){return'model'in _0x3b3324;}class Ne extends _0x574be8{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4660cb){this['editor']['plugins']['get'](d)['adapter']=_0x4660cb;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4deea0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4deea0);}['getSuggestions']({skipNotAttached:_0x1ab96e=!0x1,toJSON:_0x44682b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1ab96e,'toJSON':_0x44682b});}['getSuggestion'](_0x563ac5){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x563ac5);}}const p=['Pagination'];class re extends _0x574be8{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1fc988=this['editor'];if(_0x1fc988['config']['define']('trackChangesData.editorCreator',_0x4adc5c=>{const _0x18d9f1=_0x1fc988['model']['document']['getRootNames']()['reduce']((_0x2935bd,_0x4f4ff1)=>(_0x2935bd[_0x4f4ff1]='',_0x2935bd),{});return _0x1fc988['constructor']['create'](_0x18d9f1,_0x4adc5c);}),'function'!=typeof _0x1fc988['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ada52('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f973c){return P(this['editor'],!0x0,_0x1f973c);}['getDataWithDiscardedSuggestions'](_0x46c6c9){return P(this['editor'],!0x1,_0x46c6c9);}}class Fe extends _0x574be8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3337d7){function _0x224f10(_0x31a818){return _0x31a818['map'](_0x51a3ff=>String['fromCharCode'](_0x51a3ff))['join']('');}super(_0x3337d7),this['result']='end',_0x3337d7[_0x224f10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x224f10([0x76,0x69,0x65,0x77])][_0x224f10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x224f10([0x61,0x75,0x74,0x6f]),_0x3337d7[_0x224f10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x224f10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x224f10([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x224f10([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x224f10([0x6f,0x6b])});}['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 De(_0x2bf451){return void 0x0!==_0x2bf451['getRootsAttributes'];}async function P(_0x405f0d,_0x44206c,_0x2f90c0){const _0x1403f0=_0x289bf8(_0x405f0d,p);_0x1403f0['plugins']['push'](d,Fe),_0x1403f0['rootsAttributes']=De(_0x405f0d)?_0x405f0d['getRootsAttributes']():void 0x0;const _0x56bac9=document['createDocumentFragment'](),_0x1780b7=_0x405f0d['config']['get']('trackChangesData')['editorCreator'],_0x46b6ae=await _0x1780b7(_0x1403f0,()=>function(_0x56e9ad){const _0x518b86=document['createElement']('div');return _0x56e9ad['appendChild'](_0x518b86),_0x518b86;}(_0x56bac9));!function(_0x1eb10f,_0x1c5f1b){const _0x179573=_0x1eb10f['model']['document']['getRootNames']()['reduce']((_0x588a9c,_0x243b5c)=>(_0x588a9c[_0x243b5c]=_0x1eb10f['data']['get']({'rootName':_0x243b5c}),_0x588a9c),{}),_0x35a9be=_0x1eb10f['plugins']['get']('Users')['users']['map'](_0x4a4e90=>({'id':_0x4a4e90['id'],'name':_0x4a4e90['name']})),_0x457f28=_0x1eb10f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f296f=_0x1eb10f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21ab0e=_0x1c5f1b['plugins']['get']('Users'),_0xde1ef3=_0x1c5f1b['plugins']['get']('TrackChangesEditing'),_0x2b4768=_0x1c5f1b['plugins']['get']('CommentsRepository');for(const _0x547cbb of _0x2b4768['getCommentThreads']())_0x547cbb['remove']();for(const _0x37cc2f of _0x35a9be)_0x21ab0e['getUser'](_0x37cc2f['id'])||_0x21ab0e['addUser'](_0x37cc2f);_0x21ab0e['me']||_0x21ab0e['useAnonymousUser']();for(const _0x424158 of _0x2f296f)_0x2b4768['addCommentThread'](_0x424158);for(const _0x4fc150 of _0x457f28)_0xde1ef3['addSuggestionData'](_0x4fc150);_0x1c5f1b['data']['set'](_0x179573);}(_0x405f0d,_0x46b6ae),_0x46b6ae['execute'](_0x44206c?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ce524=De(_0x46b6ae)?_0x46b6ae['getFullData'](_0x2f90c0):_0x46b6ae['data']['get'](_0x2f90c0);return await _0x46b6ae['destroy'](),_0x2ce524;}class Me extends _0x2b8702{['options'];constructor(_0x3e7a4c,_0x406df1){super(_0x3e7a4c),this['options']=_0x406df1,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'](_0x386783,_0x2ff60d){if(!this['element'])return;const _0x40be6c=[];for(const [_0x38b916,_0x284079]of _0x386783){const _0x49f620=document['createElement']('div');_0x49f620['setAttribute']('data-ck-root-name',_0x38b916),_0x49f620['className']=_0x284079['classes']+'\x20ck-track-changes-preview__root-container',_0x49f620['innerHTML']=_0x284079['content'],_0x40be6c['push'](_0x49f620);}_0x2ff60d(this['element'],_0x40be6c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x52aec7{constructor(_0xf15eff){super(_0xf15eff),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x245921=this['editor'],_0x5eeffe=_0x245921['locale'],_0x2f5d6e=_0x245921['plugins']['get']('Dialog');let _0x2b5fac;const _0x3393c5=function(_0x494ceb){const _0xd227cf={};if('editables'in _0x494ceb['ui']['view']){for(const [_0x5e55b4,_0x40b83a]of Object['entries'](_0x494ceb['ui']['view']['editables']))_0xd227cf[_0x5e55b4]=_0x40b83a['element'];}else _0xd227cf[_0x494ceb['model']['document']['getRootNames']()[0x0]]=_0x494ceb['ui']['view']['editable']['element'];return _0xd227cf;}(_0x245921),_0xaed50b=function(_0x38212b){let _0x1101ab=0x0;for(const _0x25ac0d of Object['values'](_0x38212b))_0x1101ab=Math['max'](_0x1101ab,_0x25ac0d['getBoundingClientRect']()['width']);let _0x3e02f1=0x0;for(const _0x2ba999 of Object['values'](_0x38212b))_0x3e02f1+=_0x2ba999['getBoundingClientRect']()['height'];const _0x3246b0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x25844c=Math['min'](_0x3e02f1,_0x3246b0);return{'width':_0x1101ab,'height':_0x25844c};}(_0x3393c5);_0x2f5d6e['show']({'id':'finalContentPreview','title':o(_0x5eeffe,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5eeffe,{'dialogRects':_0xaed50b}),'onHide':()=>{_0x2b5fac['detachFromDom']();},'onShow':()=>{_0x245921['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x12a8d9=>{const _0x1cf59b=this['_standarizeRootsData'](_0x12a8d9,_0x245921,_0x3393c5);_0x2f5d6e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1cf59b,_0x245921['config']['get']('trackChanges.preview.renderFunction'));}),_0x2b5fac=new _0xd3249f(_0x5eeffe,[_0x2f5d6e['view']]),_0x2b5fac['attachToDom'](),_0x2b5fac['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x245921['once']('destroy',()=>{_0x2b5fac['detachFromDom']();});const _0x15beca=_0x2f5d6e['view']['headerView']['class'];_0x2f5d6e['view']['headerView']['class']=_0x15beca?_0x15beca+'\x20ck-reset_all':'ck-reset_all',_0x2f5d6e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2f5d6e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x25a8d2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4dc2c9=_0x25a8d2['previewMode'],_0x59d6bb={};if('$labels'===_0x4dc2c9){for(const _0x3e7692 of _0x25a8d2['getMergeFieldsIds']())_0x59d6bb[_0x3e7692]=_0x25a8d2['getLabel'](_0x3e7692)||_0x3e7692;}else{const _0x400750='$defaultValues'===_0x4dc2c9?_0x25a8d2['getDefaultValues']():_0x25a8d2['getDataSetValues'](_0x4dc2c9,!0x0);for(const _0x25e99f of Object['entries'](_0x400750)){const [_0x275b80,_0x213902]=_0x25e99f;_0x59d6bb[_0x275b80]=null!==_0x213902?_0x213902:_0x25a8d2['getLabel'](_0x275b80)||_0x275b80;}}return{'mergeFieldsData':_0x59d6bb};}['_standarizeRootsData'](_0x5f1105,_0x3a6430,_0x3cf310){let _0x4ac3e4;if('string'==typeof _0x5f1105){const _0x4b3a43=_0x3a6430['model']['document']['getRootNames']()[0x0];_0x4ac3e4={[_0x4b3a43]:_0x5f1105};}else _0x4ac3e4=_0x5f1105;const _0x559257=this['_fixMediaEmbeds'](_0x4ac3e4,_0x3a6430),_0xaae48c=function(_0x14822c,_0x4bc605){for(const [_0x1fd3bc,_0x70a1e5]of _0x14822c)_0x70a1e5['classes']=_0x4bc605[_0x1fd3bc]['classList']['value']['replace']('ck-focused','');return _0x14822c;}(this['_sortRoots'](_0x3a6430)['reduce']((_0x594d04,_0x5a9aec)=>(_0x594d04['push']([_0x5a9aec,{'content':_0x559257[_0x5a9aec],'classes':''}]),_0x594d04),[]),_0x3cf310);return _0xaae48c;}['_fixMediaEmbeds'](_0x3d015b,_0x16ed1b){if(!_0x16ed1b['plugins']['has']('MediaEmbedEditing'))return _0x3d015b;const _0x369ee8=_0x16ed1b['plugins']['get']('MediaEmbedEditing');for(const [_0x3df387,_0x5ba50f]of Object['entries'](_0x3d015b)){const _0x288296=document['createElement']('div');_0x288296['innerHTML']=_0x5ba50f,(_0x288296['querySelectorAll']('figure.media')['forEach'](_0x59ed9d=>{const _0x5e5ea6=_0x59ed9d['querySelector']('oembed');if(_0x5e5ea6){const _0x40d181=_0x5e5ea6['getAttribute']('url');if(_0x40d181){const _0x2517b2=_0x369ee8['registry']['getMediaViewElement'](new _0x2e42a8(_0x16ed1b['editing']['view']['document']),_0x40d181,{'elementName':'','renderForEditingView':!0x0}),_0x4e7763=document['createElement']('div');_0x4e7763['classList']['add']('ck-media__wrapper'),_0x2517b2['render'](_0x4e7763,_0x16ed1b['editing']['view']['domConverter']),_0x5e5ea6['replaceWith'](_0x4e7763);}}}),_0x3d015b[_0x3df387]=_0x288296['innerHTML']);}return _0x3d015b;}['_sortRoots'](_0xcc3e59){if(!function(_0x51cf20){return void 0x0!==_0x51cf20['getRootsAttributes'];}(_0xcc3e59))return _0xcc3e59['model']['document']['getRootNames']();const _0x1a7a21=[],_0x50ef7c=new Map();for(const _0x555fff of _0xcc3e59['model']['document']['getRootNames']()){const _0x31e3e4=_0xcc3e59['editing']['view']['getDomRoot'](_0x555fff)['getClientRects']()['item'](0x0);_0x1a7a21['push'](_0x555fff),_0x50ef7c['set'](_0x555fff,_0x31e3e4);}return _0x1a7a21['sort']((_0x47da9f,_0x13dff8)=>{const _0x1d15ff=_0x50ef7c['get'](_0x47da9f),_0x14c695=_0x50ef7c['get'](_0x13dff8);return _0x1d15ff['y']-_0x14c695['y']||_0x1d15ff['x']-_0x14c695['x'];}),_0x1a7a21;}}class Ue extends _0x574be8{static get['requires'](){return[re,_0x3735b9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x427ee4){super(_0x427ee4),_0x427ee4['commands']['add']('previewFinalContent',new te(this['editor'])),_0x427ee4['config']['define']('trackChanges.preview.renderFunction',(_0x4fe487,_0x2de8f6)=>{for(const _0xbafb75 of _0x2de8f6)_0x4fe487['appendChild'](_0xbafb75);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};