@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20251130.0 → 0.0.0-nightly-20251202.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 +28 -28
  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 _0x3e835b,Plugin as _0x2b2f8b,PendingActions as _0x5f55e4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x608ef8,ObservableMixin as _0x3a7d6d,uid as _0x8ed52d,priorities as _0x2ea691,insertToPriorityArray as _0x2c1cc0,logWarning as _0x1f8465,getEnvKeystrokeText as _0x41a2e7,FocusTracker as _0x5ab23f,KeystrokeHandler as _0x3073dd,Collection as _0x334b83}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xf98b60,IconCancel as _0xa215b2,IconTrackChanges as _0x542c64}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1bbcf4,View as _0x715ce1,ViewCollection as _0x2b5487,FocusCycler as _0x25aed1,UIModel as _0x1a2249,createDropdown as _0x28f557,SplitButtonView as _0x15354f,addListToDropdown as _0x57b6db,MenuBarMenuView as _0x141511,MenuBarMenuListView as _0x2e7927,ListSeparatorView as _0x327c83,MenuBarMenuListItemView as _0x59c0a6,MenuBarMenuListItemButtonView as _0x12ca26,BodyCollection as _0x4983d4,Dialog as _0x480e2d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3f7a3e,DocumentCompare as _0x4c6b68,hashObject as _0x487fef,surroundingMarkersDetector as _0x128c29,FOCUS_ANNOTATION_KEYSTROKE as _0x56e01e,AriaDescriptionView as _0x13f691,setupThreadKeyboardNavigation as _0x4d1541,trimHtml as _0x1a811f,UserView as _0x3581d8,LateFocusButtonView as _0xd07ec2,getDateTimeFormatter as _0x38529d,getAllMarkersDomElementsSorted as _0x2b3cce,sanitizeEditorConfig as _0x4d3052}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x295885,ModelLiveRange as _0xf26ff5,ModelLivePosition as _0x73289d,ViewDowncastWriter as _0x10c888}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x3ee329,set as _0x561b10,isEqual as _0x137979,unset as _0x5a13fe,omit as Pt}from'es-toolkit/compat';import{Delete as _0x6938fe,Input as _0x3b62bb}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x120c4a}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3b749b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x3e835b{['_enabledCommands'];constructor(_0x556f53,_0x3da480){super(_0x556f53),this['_enabledCommands']=_0x3da480,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 _0x4b1eb2 of this['editor']['commands']['commands']())_0x4b1eb2['affectsData']&&!this['_enabledCommands']['has'](_0x4b1eb2)&&_0x4b1eb2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x103cc6 of this['editor']['commands']['commands']())_0x103cc6['affectsData']&&!this['_enabledCommands']['has'](_0x103cc6)&&_0x103cc6['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x3e835b{['_suggestions'];constructor(_0x263ef7,_0x393273){super(_0x263ef7),this['_suggestions']=_0x393273,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x73a19d){const _0xaf9fa8=this['_suggestions']['get'](_0x73a19d);if(!_0xaf9fa8)throw new _0x608ef8('track-changes-accept-suggestion-not-found',this);const _0x5995d9=_0xaf9fa8['getRanges']();this['editor']['model']['canEditAt'](_0x5995d9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xaf9fa8);}}class D extends _0x3e835b{['_suggestions'];constructor(_0x5384e8,_0x1bd2ec){super(_0x5384e8),this['_suggestions']=_0x1bd2ec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20270b){const _0x49d1ba=this['_suggestions']['get'](_0x20270b);if(!_0x49d1ba)throw new _0x608ef8('track-changes-discard-suggestion-not-found',this);const _0x1d75b2=_0x49d1ba['getRanges']();this['editor']['model']['canEditAt'](_0x1d75b2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x49d1ba);}}function ls(_0x4514ce,_0x58000c){let _0x1bd76a='';return _0x1bd76a+=_0x4514ce['split']('*')['map']((_0xe59637,_0x18e3d2)=>_0x18e3d2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xe59637)+'</span>':rn(_0xe59637))['join'](''),_0x58000c&&(_0x1bd76a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58000c['value']+'\x22\x20title=\x22'+_0x58000c['title']+'\x22></span>'),_0x1bd76a;}function rn(_0x39b4b7){const _0xa25613=document['createElement']('span');return _0xa25613['innerText']=_0x39b4b7,_0xa25613['innerHTML'];}function ts(_0xaeba9d){return _0xaeba9d['sort']((_0x377116,_0x748d87)=>'attribute'===_0x377116['type']&&'attribute'!==_0x748d87['type']?-0x1:'attribute'!==_0x377116['type']&&'attribute'===_0x748d87['type']?0x1:'deletion'==_0x377116['type']&&'deletion'!=_0x748d87['type']?-0x1:'deletion'!=_0x377116['type']&&'deletion'==_0x748d87['type']?0x1:0x0);}function to(_0x4a8373,_0x118e5d){let _0x1d2bc6,_0x1fc421=0x0;const _0x2a4be3=[],_0x1625b0=_0x118e5d['schema'];for(;_0x1fc421<_0x4a8373['length'];){const _0x44eb95=_0x4a8373[_0x1fc421],_0x7f1fd5=_0x4a8373[_0x1fc421+0x1];_0x1d2bc6||(_0x1d2bc6=_0x118e5d['createPositionBefore'](_0x44eb95)),cn(_0x118e5d,_0x44eb95,_0x7f1fd5)||(_0x2a4be3['push'](_0x118e5d['createRange'](_0x1d2bc6,_0x1625b0['isObject'](_0x44eb95)?_0x118e5d['createPositionAfter'](_0x44eb95):_0x118e5d['createPositionAt'](_0x44eb95,'end'))),_0x1d2bc6=null),_0x1fc421++;}return _0x2a4be3;}function cn(_0x2728f2,_0x4c2278,_0x1e7a74){if(!_0x1e7a74)return!0x1;const _0x182d62=_0x2728f2['createPositionAfter'](_0x4c2278),_0x4bd812=_0x2728f2['createPositionBefore'](_0x1e7a74);return _0x182d62['isTouching'](_0x4bd812);}function rs(_0x312cdc,_0x658a01,_0x4f98b7){for(;_0x4f98b7['length'];){const _0x2293ae=_0x4f98b7['splice'](0x0,0x64);_0x312cdc['change'](()=>{for(const _0x359c71 of _0x2293ae)_0x359c71['isInContent']&&_0x658a01['execute'](_0x359c71['id']);});}}class B extends _0x3e835b{['_command'];['_suggestions'];constructor(_0x15c447,_0x3e9bb0,_0x5c8e42){super(_0x15c447),this['_command']=_0x3e9bb0,this['_suggestions']=_0x5c8e42,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d9c5e=Array['from'](this['_suggestions']['values']())['some'](_0x653a24=>_0x653a24['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2d9c5e;}['execute'](){const _0x22ce8f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x172d0c of _0x22ce8f){const _0x377a80=_0x172d0c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x377a80))return;}rs(this['editor']['model'],this['_command'],_0x22ce8f);}}class O extends _0x3e835b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x42e471,_0x51d05b,_0x4049d3){super(_0x42e471),this['_command']=_0x51d05b,this['_suggestions']=_0x4049d3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3f0e25=this['editor']['model']['document']['selection'],_0x4b46f4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x330f8d,_0x2ad736){const _0x440acf=Array['from'](_0x330f8d['getRanges']()),_0x1c698c=new Set();for(const _0x2eb5c9 of _0x2ad736)if(_0x2eb5c9['isInContent']){for(const _0x1e2d8b of _0x440acf)for(const _0x57b7de of _0x2eb5c9['getRanges']())(_0x1e2d8b['isIntersecting'](_0x57b7de)||_0x330f8d['isCollapsed']&&!_0x2eb5c9['isMultiRange']&&_0x2eb5c9['next']&&_0x57b7de['end']['isTouching'](_0x1e2d8b['start']))&&_0x1c698c['add'](_0x2eb5c9);}return _0x1c698c;}(_0x3f0e25,_0x4b46f4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5bd639=ts(Array['from'](this['_selectedSuggestions']));for(const _0x55cb15 of _0x5bd639){const _0x14e109=_0x55cb15['getRanges']();if(!this['editor']['model']['canEditAt'](_0x14e109))return;}rs(this['editor']['model'],this['_command'],_0x5bd639);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x3a7d6d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x19dbac,_0x1a65df){super(),this['id']=_0x1a65df['id'],this['type']=_0x1a65df['type'],this['subType']=_0x1a65df['subType']||null,this['author']=_0x1a65df['author'],this['creator']=_0x1a65df['creator']||_0x1a65df['author'],this['isExternal']=Boolean(_0x1a65df['attributes']&&_0x1a65df['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1a65df['originalSuggestionId']||null,this['_model']=_0x19dbac,this['_onAccept']=_0x1a65df['onAccept'],this['_onDiscard']=_0x1a65df['onDiscard'],this['_onAttributesChange']=_0x1a65df['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a65df['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 _0x418f0d=this;for(;_0x418f0d['previous'];)_0x418f0d=_0x418f0d['previous'];return _0x418f0d;}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'](_0x1bf65f){this['_markerNames']['add'](_0x1bf65f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x14b82b=>this['_model']['markers']['get'](_0x14b82b))['filter'](_0x5b742c=>_0x5b742c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4819c8=>{for(const _0x4d4299 of this['getMarkers']())_0x4819c8['removeMarker'](_0x4d4299);}),this['_markerNames']['clear']();}['removeMarker'](_0x30ae04){this['_model']['change'](_0x6f6fd3=>{_0x6f6fd3['removeMarker'](_0x30ae04);}),this['_markerNames']['delete'](_0x30ae04);}['addRange'](_0x2bc0e1){const _0x315b6b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x315b6b),this['_model']['change'](_0x187094=>{_0x187094['addMarker'](_0x315b6b,{'range':_0x2bc0e1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x452ef5){for(const _0x542fdd of this['getRanges']())if(_0x542fdd['isIntersecting'](_0x452ef5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x201294=>_0x201294['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x373293,_0x1e9d9c)=>[..._0x373293,..._0x1e9d9c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xbbaf7b=this['getRanges']();if(0x1!=_0xbbaf7b['length'])return null;const _0x51e75e=_0xbbaf7b[0x0],_0x2365df=_0x51e75e['start']['nodeAfter'],_0x35f635=_0x51e75e['end']['nodeBefore'];return _0x2365df instanceof _0x295885?_0x2365df!=_0x35f635?null:_0x2365df: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 _0x245097=[];let _0x8e0038=this['head'];for(;_0x8e0038;)_0x245097['push'](_0x8e0038),_0x8e0038=_0x8e0038['next'];return _0x245097;}['setAttribute'](_0x1f0630,_0xfa3f3e){const _0xa55fd0=_0x3ee329(this['attributes']);_0x561b10(_0xa55fd0,_0x1f0630,_0xfa3f3e),_0x137979(_0xa55fd0,this['attributes'])||(this['attributes']=_0xa55fd0,this['_onAttributesChange'](_0xa55fd0));}['removeAttribute'](_0xa5e4a8){const _0x4195f8=_0x3ee329(this['attributes']);_0x5a13fe(_0x4195f8,_0xa5e4a8),_0x137979(_0x4195f8,this['attributes'])||(this['attributes']=_0x4195f8,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 _0x8ed52d()['substr'](0x1,0x5);}}function o(_0x5aa4cb,_0x562d72,_0x3f908b){const _0x78228a=_0x5aa4cb['t'],t=_0x5aa4cb['t'];switch(_0x562d72){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',_0x3f908b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f908b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f908b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f908b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f908b);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',_0x3f908b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f908b);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',_0x3f908b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f908b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f908b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f908b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f908b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f908b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3f908b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f908b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f908b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f908b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f908b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f908b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f908b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f908b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f908b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f908b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f908b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3f908b);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'},_0x3f908b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3f908b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3f908b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f908b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f908b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f908b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f908b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f908b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f908b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f908b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f908b);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3f908b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f908b);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'},_0x3f908b);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_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'},_0x3f908b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f908b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3f908b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3f908b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3f908b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3f908b);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 _0x78228a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3f908b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x78228a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3f908b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3f908b);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'},_0x3f908b);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'},_0x3f908b);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'},_0x3f908b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x562d72;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b36df,_0x18e36f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b36df,this['_locale']=_0x18e36f;}['getDescriptions'](_0x46d505){const _0x30ebae=[],_0x33c267=new Set(),_0x10163d=new Set();for(let _0x398666=0x0;_0x398666<_0x46d505['length'];_0x398666++){const _0x44ad57=_0x46d505[_0x398666];if(!_0x44ad57['isInContent'])continue;const _0x4d256f=this['_handleCustomCallbackDescription'](_0x44ad57);if(_0x4d256f){if(null!=_0x44ad57['subType']){if(_0x33c267['has'](_0x44ad57['subType']))continue;_0x33c267['add'](_0x44ad57['subType']);}_0x30ebae['push'](_0x4d256f);}else{if('attribute'==_0x44ad57['type']){const _0x182f71=_0x44ad57['data']['key'];if(_0x10163d['has'](_0x182f71))continue;_0x10163d['add'](_0x44ad57['data']['key']),_0x182f71==m?this['_handleRenameSuggestionDescription'](_0x30ebae,_0x44ad57):this['_handleAttributeSuggestionDescription'](_0x30ebae,_0x44ad57);continue;}'insertion'!=_0x44ad57['type']&&'deletion'!=_0x44ad57['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30ebae,_0x44ad57,_0x46d505[_0x398666+0x1]);}}return this['_resolveDescriptionItems'](_0x30ebae);}['registerDescriptionCallback'](_0x5b5d76){this['_customCallbacks']['push'](_0x5b5d76);}['registerElementLabel'](_0x417c3a,_0x5b08b2,_0x300f1c=_0x2ea691['normal']){'function'==typeof _0x417c3a?_0x2c1cc0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x417c3a,'label':_0x5b08b2,'priority':_0x300f1c}):this['_itemLabels']['set'](_0x417c3a,_0x5b08b2);}['registerAttributeLabel'](_0x45e48e,_0x29ceb0){this['_attributeLabels']['set'](_0x45e48e,_0x29ceb0);}['getItemLabel'](_0x22d720,_0x4ea8f8=0x1){let _0x253e7a;for(const _0x1d7d31 of this['_itemLabelsCallbacks'])if(_0x1d7d31['matchingCallback'](_0x22d720)){_0x253e7a=_0x1d7d31['label'];break;}return _0x253e7a||(_0x253e7a=this['_itemLabels']['get'](_0x22d720['name'])),_0x253e7a?_0x253e7a(_0x4ea8f8):0x1!==_0x4ea8f8?_0x4ea8f8+'\x20'+_0x22d720['name']+'s':''+_0x22d720['name'];}['_addDescriptionItems'](_0x6c0d6d,_0x5aef68){const _0x9ebec9=_0x5aef68['getFirstRange']()['getWalker'](),_0x4b6abe='insertion'==_0x5aef68['type']?'add':'remove';for(const _0x29b233 of _0x9ebec9){const _0x1271c6=_0x29b233['item'],_0x40dd6b=_0x6c0d6d[_0x6c0d6d['length']-0x1];if(_0x1271c6['is']('$textProxy'))_0x40dd6b&&_0x40dd6b['type']['indexOf']('Container')>-0x1&&_0x6c0d6d['pop'](),_0x40dd6b&&'text'==_0x40dd6b['type']?_0x40dd6b[_0x4b6abe]+=_0x1271c6['data']:_0x6c0d6d['push']({'type':'text','add':'add'==_0x4b6abe?_0x1271c6['data']:'','remove':'remove'==_0x4b6abe?_0x1271c6['data']:''});else{if(this['_schema']['isObject'](_0x1271c6)){const _0x12dea6=_0x1271c6;if(_0x40dd6b&&_0x40dd6b['type']['indexOf']('Container')>-0x1&&_0x6c0d6d['pop'](),'elementEnd'==_0x29b233['type'])continue;_0x40dd6b&&_0x40dd6b['type']==_0x4b6abe+'Object'&&_0x40dd6b['element']['name']==_0x12dea6['name']?_0x40dd6b['quantity']++:_0x6c0d6d['push']({'type':_0x4b6abe+'Object','element':_0x12dea6,'quantity':0x1}),_0x9ebec9['skip'](_0x4a84a4=>!('elementEnd'==_0x4a84a4['type']&&_0x4a84a4['item']==_0x1271c6));}else{if(this['_schema']['checkChild'](_0x1271c6,'$text')||_0x1271c6['is']('element','softBreak')){const _0x90b307=_0x1271c6;if('add'==_0x4b6abe&&'elementStart'==_0x29b233['type']||'remove'==_0x4b6abe&&'elementEnd'==_0x29b233['type'])continue;if(_0x40dd6b&&-0x1==_0x40dd6b['type']['indexOf']('Container')){'text'==_0x40dd6b['type']&&(_0x40dd6b[_0x4b6abe]+='\x0a');continue;}let _0x54a860;if(_0x54a860='add'==_0x4b6abe?_0x90b307['nextSibling']&&!this['_schema']['isObject'](_0x90b307['nextSibling'])?_0x90b307['nextSibling']:null:_0x90b307['previousSibling']&&!this['_schema']['isObject'](_0x90b307['previousSibling'])?_0x90b307['previousSibling']:null,_0x90b307['isEmpty']||_0x54a860&&_0x54a860['isEmpty']){const _0xe2224a=_0x54a860&&_0x54a860['isEmpty']?_0x54a860:_0x90b307;_0x40dd6b&&_0x40dd6b['type']==_0x4b6abe+'EmptyContainer'&&_0x40dd6b['element']['name']==_0xe2224a['name']?_0x40dd6b['quantity']++:_0x6c0d6d['push']({'type':_0x4b6abe+'EmptyContainer','element':_0xe2224a,'quantity':0x1});}else _0x6c0d6d['push']({'type':_0x4b6abe+'Container','element':_0x90b307});}}}}}['_resolveDescriptionItems'](_0x187fbc){const _0x183a8f=this['_locale'],_0x130b13=[],_0x140807=[],_0x59805b=[];for(const _0x355936 of _0x187fbc)switch(_0x355936['type']){case'text':if(_0x355936['add']=_0x355936['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x355936['remove']=_0x355936['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x355936['add']&&''!=_0x355936['remove']){_0x130b13['push']({'type':'replace','content':o(_0x183a8f,'REPLACE_TEXT',['\x22'+_0x355936['remove']+'\x22','\x22'+_0x355936['add']+'\x22'])});continue;}if(null!=_0x355936['add']['match'](/^ +$/)){_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Insert:*\x20%0',o(_0x183a8f,'ELEMENT_SPACE',_0x355936['add']['length']))});continue;}if(null!=_0x355936['remove']['match'](/^ +$/)){_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Remove:*\x20%0',o(_0x183a8f,'ELEMENT_SPACE',_0x355936['remove']['length']))});continue;}if(''!=_0x355936['add']){_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Insert:*\x20%0','\x22'+_0x355936['add']+'\x22')});continue;}_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Remove:*\x20%0','\x22'+_0x355936['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Insert:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Remove:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'addContainer':_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Split:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'removeContainer':_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Merge:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'addFormat':_0x140807['push'](_0x355936['key']);continue;case'removeFormat':_0x59805b['push'](_0x355936['key']);continue;default:_0x130b13['push'](_0x355936);}if(_0x140807['length']){const _0x159c7d=_0x140807['map'](_0xb06cff=>this['_attributeLabels']['has'](_0xb06cff)?this['_attributeLabels']['get'](_0xb06cff):_0xb06cff)['join'](',\x20');_0x130b13['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x159c7d)});}if(_0x59805b['length']){const _0x2bd838=_0x59805b['map'](_0x32cbea=>this['_attributeLabels']['has'](_0x32cbea)?this['_attributeLabels']['get'](_0x32cbea):_0x32cbea)['join'](',\x20');_0x130b13['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2bd838)});}return _0x130b13;}['_handleCustomCallbackDescription'](_0x270904){for(const _0x13cdae of this['_customCallbacks']){const _0xbff8cf=_0x13cdae(_0x270904);if(_0xbff8cf&&'type'in _0xbff8cf)return _0xbff8cf;}}['_handleAttributeSuggestionDescription'](_0x4583dc,_0x3dca6c){const _0x516eb9=_0x3dca6c['data'],_0x371b8f=void 0x0===_0x516eb9['newValue']?'removeFormat':'addFormat';_0x4583dc['push']({'type':_0x371b8f,'key':_0x516eb9['key']});}['_handleRenameSuggestionDescription'](_0x2e31da,_0xcec212){_0x2e31da['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xcec212['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xee6987,_0x142c8d,_0x2a67e5){if(this['_addDescriptionItems'](_0xee6987,_0x142c8d),_0x2a67e5&&_0x2a67e5['getFirstRange']()&&!_0x142c8d['getFirstRange']()['end']['isEqual'](_0x2a67e5['getFirstRange']()['start'])){const _0x6c93d1=_0xee6987[_0xee6987['length']-0x1],_0x41dd41='insertion'==_0x142c8d['type']?'add':'remove';_0x6c93d1&&'text'==_0x6c93d1['type']&&(_0x6c93d1[_0x41dd41]+='\x0a');}}}class R extends _0x2b2f8b{['afterInit'](){const _0x5dd975=this['editor'],_0x373623=_0x5dd975['plugins']['get']('TrackChangesEditing');_0x5dd975['commands']['get']('showAIAssistant')&&_0x373623['enableCommand']('showAIAssistant');}}class T extends _0x2b2f8b{['afterInit'](){const _0x29939f=this['editor'],_0x308101=_0x29939f['plugins']['get']('TrackChangesEditing');_0x29939f['commands']['get']('toggleAi')&&_0x308101['enableCommand']('toggleAi');}}class E extends _0x2b2f8b{['afterInit'](){const _0x60bc1f=this['editor'],_0x124988=_0x60bc1f['plugins']['get']('TrackChangesEditing');_0x60bc1f['commands']['get']('aiQuickAction')&&_0x124988['enableCommand']('aiQuickAction');}}class U extends _0x2b2f8b{['afterInit'](){const _0x585c70=this['editor'],_0x441f7b=_0x585c70['locale'];if(!_0x585c70['plugins']['has']('AlignmentEditing'))return;const _0x5345c3=_0x585c70['plugins']['get']('TrackChangesEditing');_0x5345c3['enableDefaultAttributesIntegration']('alignment'),_0x5345c3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x441f7b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6108f=this['editor'],_0xfed00c=_0x6108f['locale'];_0x6108f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a7d2=>{if('formatBlock'!=_0x19a7d2['type'])return;const {data:_0x49e419}=_0x19a7d2;if(_0x49e419&&'alignment'==_0x49e419['commandName']){const _0x3df200=_0x49e419['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xfed00c,'*Format:*\x20%0',function(_0x4f9f25){switch(_0x4f9f25){case'left':return o(_0xfed00c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xfed00c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xfed00c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xfed00c,'FORMAT_JUSTIFY_TEXT');}}(_0x3df200))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2b2f8b{['afterInit'](){const _0x1e6949=this['editor'],_0x129da7=_0x1e6949['plugins']['get']('TrackChangesEditing'),_0x3dd523=_0x1e6949['locale'];for(const _0x1f10c4 of ti){if(!_0x1e6949['plugins']['has'](_0x1f10c4))continue;const _0x124fd6=_0x1f10c4['slice'](0x0,-0x7)['toLowerCase'](),_0x44cfce='FORMAT_'+_0x124fd6['toUpperCase']();_0x129da7['enableDefaultAttributesIntegration'](_0x124fd6),_0x129da7['descriptionFactory']['registerAttributeLabel'](_0x124fd6,o(_0x3dd523,_0x44cfce));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43674a=this['editor'],_0x26c6d8=_0x43674a['locale'],_0x644b54=_0x43674a['plugins']['get']('TrackChangesEditing');function _0x283f71(_0x484a51,_0xbd561a){_0x644b54['descriptionFactory']['registerDescriptionCallback'](_0x26a16a=>{if('formatInline'!=_0x26a16a['type'])return;const {data:_0x30bf19}=_0x26a16a;return _0x30bf19&&_0x30bf19['commandName']===_0x484a51?_0x30bf19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26c6d8,'*Format:*\x20%0',_0xbd561a)}:{'type':'format','content':o(_0x26c6d8,'*Remove\x20format:*\x20%0',_0xbd561a)}:void 0x0;});}_0x283f71('bold',o(_0x26c6d8,'FORMAT_BOLD')),_0x283f71('italic',o(_0x26c6d8,'FORMAT_ITALIC')),_0x283f71('underline',o(_0x26c6d8,'FORMAT_UNDERLINE')),_0x283f71('code',o(_0x26c6d8,'FORMAT_CODE')),_0x283f71('strikethrough',o(_0x26c6d8,'FORMAT_STRIKETHROUGH')),_0x283f71('subscript',o(_0x26c6d8,'FORMAT_SUBSCRIPT')),_0x283f71('superscript',o(_0x26c6d8,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2b2f8b{['afterInit'](){const _0x4e3854=this['editor'],_0x12bf44=_0x4e3854['locale'];if(!_0x4e3854['plugins']['has']('BlockQuoteEditing'))return;const _0x17a5bf=_0x4e3854['plugins']['get']('TrackChangesEditing'),_0x4f36b7=this['editor']['commands']['get']('blockQuote');_0x17a5bf['enableCommand']('blockQuote',(_0x3c8cad,_0x2266df={})=>{const _0x56e32f=this['editor']['model']['document']['selection'],_0xab83c7=_0x2266df&&void 0x0!==_0x2266df['forceValue']?_0x2266df['forceValue']:!_0x4f36b7['value'];let _0x5a04fb=[];if(_0xab83c7){const _0x11046f=Array['from'](_0x56e32f['getSelectedBlocks']())['filter'](_0x122522=>oo(_0x122522)||function(_0x41652e,_0x496c95){const _0x4973a8=_0x496c95['checkChild'](_0x41652e['parent'],'blockQuote'),_0x14254f=_0x496c95['checkChild'](['$root','blockQuote'],_0x41652e);return _0x4973a8&&_0x14254f;}(_0x122522,this['editor']['model']['schema']));_0x5a04fb=to(_0x11046f,_0x4e3854['model']);}else{const _0x845870=Array['from'](_0x56e32f['getSelectedBlocks']())['filter'](_0x47d55b=>oo(_0x47d55b));_0x5a04fb=to(_0x845870,_0x4e3854['model']);}_0x4e3854['model']['change'](()=>{for(const _0xacca3a of _0x5a04fb)_0x17a5bf['markBlockFormat'](_0xacca3a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xab83c7}]});});}),_0x17a5bf['descriptionFactory']['registerDescriptionCallback'](_0x1608b8=>{const {data:_0x265089}=_0x1608b8;if(_0x265089&&'blockQuote'==_0x265089['commandName']){const _0x1f0721=o(_0x12bf44,'ELEMENT_BLOCK_QUOTE');return _0x265089['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12bf44,'*Set\x20format:*\x20%0',_0x1f0721)}:{'type':'format','content':o(_0x12bf44,'*Remove\x20format:*\x20%0',_0x1f0721)};}});}}function oo(_0x43246e){return'blockQuote'==_0x43246e['parent']['name'];}class G extends _0x2b2f8b{['afterInit'](){const _0x1aba62=this['editor'],_0x42067c=_0x1aba62['locale'],_0x34aaf1=_0x1aba62['plugins']['get']('TrackChangesEditing');_0x1aba62['plugins']['has']('BookmarkEditing')&&(_0x34aaf1['enableCommand']('insertBookmark'),_0x34aaf1['enableDefaultAttributesIntegration']('updateBookmark'),_0x34aaf1['descriptionFactory']['registerDescriptionCallback'](_0x48f1f4=>{if('insertion'!=_0x48f1f4['type']&&'deletion'!=_0x48f1f4['type']&&'attribute'!=_0x48f1f4['type'])return;const _0x200ab7=_0x48f1f4['getContainedElement']();if(null==_0x200ab7)return;if(!_0x200ab7['is']('element','bookmark'))return;const _0x503cdb=_0x200ab7['getAttribute']('bookmarkId');if('insertion'==_0x48f1f4['type'])return{'type':'insertion','content':o(_0x42067c,'*Insert:*\x20%0','\x22'+_0x503cdb+'\x22\x20'+o(_0x42067c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x48f1f4['type'])return{'type':'deletion','content':o(_0x42067c,'*Remove:*\x20%0','\x22'+_0x503cdb+'\x22\x20'+o(_0x42067c,'ELEMENT_BOOKMARK'))};const {data:_0x2c4c7a}=_0x48f1f4;if(!_0x2c4c7a||'bookmarkId'!=_0x2c4c7a['key'])return;return{'type':'format','content':o(_0x42067c,'*Set\x20bookmark:*\x20%0','\x22'+_0x2c4c7a['newValue']+'\x22')};}));}}class L extends _0x2b2f8b{['afterInit'](){const _0x1ab20d=this['editor'];_0x1ab20d['plugins']['has']('CaseChange')&&(_0x1ab20d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ab20d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ab20d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2b2f8b{['afterInit'](){const _0x12a69f=this['editor'];_0x12a69f['commands']['get']('ckbox')&&_0x12a69f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2b2f8b{['afterInit'](){const _0x46a31a=this['editor'];if(!_0x46a31a['plugins']['has']('CodeBlock'))return;const _0x3ae4fa=_0x46a31a['plugins']['get']('TrackChangesEditing'),_0x1d5588=_0x46a31a['locale'],_0x1d338d=_0x46a31a['config']['get']('codeBlock')['languages'],_0x33960c=_0x46a31a['commands']['get']('codeBlock');_0x3ae4fa['enableCommand']('indentCodeBlock'),_0x3ae4fa['enableCommand']('outdentCodeBlock'),_0x3ae4fa['enableCommand']('codeBlock',(_0x15aed4,_0x23e64f={})=>{const _0x3119e0=_0x46a31a['model'],_0x53effa=_0x46a31a['model']['document']['selection'],_0x37a547=_0x23e64f&&void 0x0!==_0x23e64f['forceValue']?_0x23e64f['forceValue']:!_0x33960c['value'];let _0x5787dc;_0x23e64f['language']||(_0x23e64f['language']=_0x1d338d[0x0]['language']),_0x5787dc=_0x37a547?Array['from'](_0x53effa['getSelectedBlocks']())['filter'](_0x225825=>co(_0x225825)||function(_0x3a17c7,_0x318982){if(_0x3a17c7['is']('rootElement')||_0x318982['isLimit'](_0x3a17c7))return!0x1;return _0x318982['checkChild'](_0x3a17c7['parent'],'codeBlock');}(_0x225825,_0x3119e0['schema'])):Array['from'](_0x53effa['getSelectedBlocks']())['filter'](_0x9f21f7=>co(_0x9f21f7));const _0x35fec3=to(_0x5787dc,_0x3119e0);_0x3119e0['change'](()=>{for(const _0x2780d7 of _0x35fec3)_0x3ae4fa['markBlockFormat'](_0x2780d7,{'commandName':'codeBlock','commandParams':[{..._0x23e64f,'forceValue':_0x37a547}],'formatGroupId':'blockName'});});}),(_0x3ae4fa['descriptionFactory']['registerElementLabel']('codeBlock',_0x56b3f1=>o(_0x1d5588,'ELEMENT_CODE_BLOCK',_0x56b3f1)),_0x3ae4fa['descriptionFactory']['registerDescriptionCallback'](_0x4cb29e=>{if('formatBlock'!=_0x4cb29e['type'])return;const _0x301ccd=_0x1d5588['t'],{data:_0x23260e}=_0x4cb29e;if(!_0x23260e||'codeBlock'!=_0x23260e['commandName'])return;const _0x3cbd89=_0x23260e['commandParams'][0x0]['language'],_0x5cec91=_0x301ccd(_0x1d338d['find'](_0x1ed603=>_0x1ed603['language']===_0x3cbd89)['label'])['toLowerCase']();return _0x23260e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d5588,'*Set\x20format:*\x20%0',o(_0x1d5588,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5cec91+')')}:{'type':'format','content':o(_0x1d5588,'*Remove\x20format:*\x20%0',o(_0x1d5588,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x10841b){return'codeBlock'==_0x10841b['name'];}class z extends _0x2b2f8b{['afterInit'](){const _0xfdc56f=this['editor'];if(!_0xfdc56f['plugins']['has']('CommentsEditing'))return;_0xfdc56f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2b2f8b{static get['requires'](){return[_0x6938fe];}['init'](){const _0x4d31c1=this['editor'],_0x3cb861=_0x4d31c1['plugins']['get']('TrackChangesEditing');_0x3cb861['enableCommand']('delete');const _0x5a9204=_0x4d31c1['commands']['get']('deleteForward');_0x3cb861['enableCommand']('deleteForward',(_0x11db4e,_0x88c668={})=>{const _0x153e7b=_0x4d31c1['model']['createSelection'](_0x4d31c1['model']['document']['selection']);_0x153e7b['isCollapsed']&&_0x4d31c1['model']['modifySelection'](_0x153e7b,{'direction':'forward','unit':_0x88c668['unit']});const _0x374239=_0x153e7b['getFirstRange'](),_0x13ae09=_0xf26ff5['fromRange'](_0x374239);let _0x5f2402;_0x11db4e(_0x88c668),_0x5f2402='$graveyard'==_0x13ae09['root']['rootName']?_0x4d31c1['model']['createRange'](_0x374239['start']):_0x4d31c1['model']['createRange'](_0x13ae09['start'],_0x13ae09['end']),_0x13ae09['detach'](),_0x4d31c1['model']['enqueueChange'](_0x5a9204['buffer']['batch'],_0x3a99ce=>{_0x5a9204['buffer']['lock'](),_0x3a99ce['setSelection'](_0x3a99ce['createRange'](_0x5f2402['end'])),_0x5a9204['buffer']['unlock']();});});}}class W extends _0x2b2f8b{['afterInit'](){const _0x511713=this['editor'];if(!_0x511713['plugins']['has']('ListEditing'))return;const _0x2a905b=_0x511713['locale'],_0xf37cc4=_0x511713['plugins']['get']('TrackChangesEditing'),_0x45d837=_0x511713['plugins']['has']('TodoListEditing'),_0x64aee0=!!_0x511713['config']['get']('list.multiBlock');function _0x2aaa10(_0x49e287){return{'type':'format','content':''+o(_0x2a905b,'*Set\x20format:*\x20%0',_0x49e287)};}function _0x30ea55(_0x4964b5){return{'type':'format','content':''+o(_0x2a905b,'*Remove\x20format:*\x20%0',_0x4964b5)};}_0xf37cc4['enableDefaultAttributesIntegration']('numberedList'),_0xf37cc4['enableDefaultAttributesIntegration']('bulletedList'),_0xf37cc4['enableDefaultAttributesIntegration']('customNumberedList'),_0xf37cc4['enableDefaultAttributesIntegration']('customBulletedList'),_0xf37cc4['enableDefaultAttributesIntegration']('indentList'),_0xf37cc4['enableDefaultAttributesIntegration']('outdentList'),_0xf37cc4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf37cc4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x64aee0&&(_0xf37cc4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf37cc4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x45d837&&(_0xf37cc4['enableDefaultAttributesIntegration']('todoList'),_0xf37cc4['enableDefaultAttributesIntegration']('checkTodoList'),_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x59af8b=>{const {data:_0x17cc31}=_0x59af8b;if(_0x17cc31&&'todoListChecked'==_0x17cc31['key'])return{'type':'format','content':_0x17cc31['newValue']?o(_0x2a905b,'*Check\x20item*'):o(_0x2a905b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x548259=>{if(_0x548259['batch']['isUndo'])return!0x1;let _0x244a3c=!0x1;const _0x14c6c6=_0xf37cc4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f7aff=>'todoListChecked'===_0xf37cc4['_getAttributeKey'](_0x1f7aff));for(const _0x21d4b1 of _0x14c6c6){'todo'!=_0x21d4b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf37cc4['_findSuggestions'](_0x21d4b1['getFirstRange'](),'attribute')['find'](_0x238aef=>'listType'===_0xf37cc4['_getAttributeKey'](_0x238aef['suggestion']))||(_0x548259['removeMarker'](_0x21d4b1['getFirstMarker']()),_0x244a3c=!0x0));}return _0x244a3c;})),_0xf37cc4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2a905b,'FORMAT_INDENT'));const _0x50aef4={'type':'format','content':''};_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x323416=>{const {data:_0x365688}=_0x323416;if(!_0x365688||'listType'!=_0x365688['key'])return;let _0x29f7e4=_0x323416['head'];for(;_0x29f7e4;){if(_0x29f7e4['data']&&(('listStyle'==_0x29f7e4['data']['key']||'listMarkerStyle'==_0x29f7e4['data']['key'])&&(_0x29f7e4['data']['newValue']&&'default'!=_0x29f7e4['data']['newValue']||'default'!=_0x29f7e4['data']['oldValue']&&!_0x365688['newValue'])||!_0x64aee0&&_0x29f7e4['data']['key']==m))return _0x50aef4;_0x29f7e4=_0x29f7e4['next'];}if(null==_0x365688['newValue'])switch(_0x365688['oldValue']){case'bulleted':return _0x30ea55(o(_0x2a905b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30ea55(o(_0x2a905b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30ea55(o(_0x2a905b,'ELEMENT_TODO_LIST'));}switch(_0x365688['newValue']){case'bulleted':return _0x2aaa10(o(_0x2a905b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2aaa10(o(_0x2a905b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2aaa10(o(_0x2a905b,'ELEMENT_TODO_LIST'));}}),_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x2172e1=>{const {data:_0x1394ba}=_0x2172e1;if(_0x1394ba&&'listIndent'==_0x1394ba['key'])return null==_0x1394ba['newValue']||null==_0x1394ba['oldValue']&&0x0==_0x1394ba['newValue']?_0x50aef4:void 0x0;}),_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x360a2a=>{if('attribute'!=_0x360a2a['type'])return;const {data:_0x4e58f7}=_0x360a2a;if(!_0x4e58f7||'listItemId'!=_0x4e58f7['key'])return;const _0x1c7ccc=Te(_0x360a2a);return'newValue'==_0x1c7ccc?{'type':'format','content':o(_0x2a905b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c7ccc?{'type':'format','content':o(_0x2a905b,'*Split:*\x20list\x20item')}:_0x50aef4;}),_0x511713['model']['document']['registerPostFixer'](_0x35dd2d=>this['listItemIdFixer'](_0x35dd2d)),_0x511713['model']['document']['registerPostFixer'](_0x351fff=>this['noTrackChangesFixer'](_0x351fff)),_0x511713['model']['document']['on']('change:data',(_0x44b32f,_0x253dea)=>{if(_0x253dea['isUndo']||!_0x253dea['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2caaa0){if(_0x2caaa0['batch']['isUndo']||!_0x2caaa0['batch']['isLocal'])return!0x1;let _0x136aa9=!0x1;const _0x1f8dfb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73485d=>_0x73485d['data']&&'listItemId'==_0x73485d['data']['key'])['filter'](_0x5150b8=>_0x5150b8['data']['newValue']&&_0x5150b8['data']['oldValue']);for(const _0x19a522 of _0x1f8dfb)Te(_0x19a522)||(_0x2caaa0['removeMarker'](_0x19a522['getFirstMarker']()),_0x136aa9=!0x0);return _0x136aa9;}['noTrackChangesFixer'](_0x3c8ea7){if(_0x3c8ea7['batch']['isUndo']||!_0x3c8ea7['batch']['isLocal'])return!0x1;const _0x26a09b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x26a09b['trackChangesCommand']['value'])return!0x1;let _0x3c2c84=!0x1;const _0x3651e0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x440575=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x18b640=>'attribute'==_0x18b640['type'])['filter'](_0x17d646=>_0x3651e0['includes'](_0x17d646['attributeKey']));if(0x0==_0x440575['length'])return _0x3c2c84;for(const _0x5b543a of _0x440575){const _0x4b01bd=_0x26a09b['_findSuggestions'](_0x5b543a['range'],'attribute')['filter'](_0x490f7e=>!_0x490f7e['meta']['isNextTo'])['map'](_0x46bd97=>_0x46bd97['suggestion'])['filter'](_0x4773c0=>{const _0x546dd5=_0x26a09b['_getAttributeKey'](_0x4773c0);return _0x3651e0['includes'](_0x546dd5);});if(_0x4b01bd['length']){for(const _0x5e30bd of _0x4b01bd)_0x3c8ea7['removeMarker'](_0x5e30bd['getFirstMarker']());_0x3c2c84=!0x0;}}return _0x3c2c84;}['assureChains'](){const _0x2c52d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4256ba=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xdfafce;const _0x48a82f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f67af=>{if(_0x1f67af['data']['oldRange']||!_0x1f67af['data']['newRange'])return null;if(!_0x1f67af['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x55a32f}=_0x2c52d6['_splitMarkerName'](_0x1f67af['name']);if(!_0x2c52d6['hasSuggestion'](_0x55a32f))return null;const _0x296327=_0x2c52d6['getSuggestion'](_0x55a32f);return _0x4256ba['includes'](_0x296327['data']['key']);})['map'](_0x23106=>{const {id:_0x14308a}=_0x2c52d6['_splitMarkerName'](_0x23106['name']),_0x362cd0=_0x2c52d6['getSuggestion'](_0x14308a);return _0xdfafce=_0x362cd0['attributes']['groupId'],_0x362cd0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x48a82f['size'])return;const _0xe1ce11=_0x2c52d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b61dc=>'attribute'==_0x5b61dc['type']&&_0x5b61dc['data']&&_0x4256ba['includes'](_0x5b61dc['data']['key'])&&_0x5b61dc['attributes']['groupId']!=_0xdfafce)['map'](_0x39b530=>({'listItem':_0x39b530['getFirstRange']()['start']['nodeAfter'],'groupId':_0x39b530['attributes']['groupId']})),_0x3cc86d=new Set();for(const {groupId:_0x47d0d8,listItem:_0x114286}of _0xe1ce11)_0x48a82f['has'](_0x114286)&&_0x3cc86d['add'](_0x47d0d8);for(const _0x15bea9 of _0x2c52d6['getSuggestions']())_0x3cc86d['has'](_0x15bea9['attributes']['groupId'])&&_0x15bea9['setAttribute']('groupId',_0xdfafce);}['_supportLegacySuggestions'](){const _0x5f4224=this['editor'],_0x585a2a=_0x5f4224['locale'],_0x465061=_0x5f4224['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x465061['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x25f6ab,_0x5f4e4c){const _0x4f3462=[];for(let _0x27f412 of _0x25f6ab)_0x27f412['start']['nodeAfter']===_0x27f412['end']['parent']&&(_0x27f412=_0x5f4224['model']['createRange'](_0x5f4224['model']['createPositionAt'](_0x27f412['start']['nodeAfter'],0x0))),_0x4f3462['push'](_0x27f412);_0x5f4224['model']['change'](_0x2405c9=>{const _0x5d20f4=_0x5f4224['model']['document']['selection'],_0x3658ef=Array['from'](_0x5d20f4['getRanges']())['map'](_0x315c65=>_0xf26ff5['fromRange'](_0x315c65));_0x2405c9['setSelection'](_0x4f3462),_0x5f4224['commands']['get'](_0x5f4e4c['commandName'])['refresh'](),_0x5f4e4c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5f4224['execute'](_0x5f4e4c['commandName'],..._0x5f4e4c['commandParams']),_0x2405c9['setSelection'](_0x3658ef);for(const _0x4caacc of _0x3658ef)_0x4caacc['detach']();});}),_0x465061['descriptionFactory']['registerElementLabel'](function(_0x48991f){const _0x1c7ebd=!_0x5f4224['model']['schema']['isObject'](_0x48991f),_0x3f0678=_0x48991f['previousSibling'],_0x3c79e2=_0x48991f['nextSibling'],_0x1792cf=_0x48991f['getAttribute']('listItemId'),_0x28da80=!_0x3f0678||_0x3f0678['getAttribute']('listItemId')!==_0x1792cf,_0x5e49b5=!_0x3c79e2||_0x3c79e2['getAttribute']('listItemId')!==_0x1792cf;return _0x1c7ebd&&Boolean(_0x1792cf)&&_0x28da80&&_0x5e49b5;},_0x4444ae=>o(_0x585a2a,'ELEMENT_LIST_ITEM',_0x4444ae));}['_registerLegacyDescription'](){const _0x169164=this['editor'],_0x4da6ee=_0x169164['locale'];function _0x487339(_0x25d630){const _0x1f474b=_0x169164['commands']['get']('bulletedList')['value'],_0x5da2ac=_0x169164['commands']['get']('numberedList')['value'];return'numberedList'===_0x25d630?_0x1f474b:_0x5da2ac;}_0x169164['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3d8e63){if('formatBlock'!=_0x3d8e63['type'])return;const {data:_0x2d359d}=_0x3d8e63;if(!_0x2d359d)return;let _0x1f6776,_0x2bff71,_0x1277b1,_0x4f474f;switch(_0x2d359d['commandName']){case'bulletedList':_0x1277b1=_0x2d359d['commandParams'][0x0]['forceValue'],_0x4f474f=_0x487339(_0x2d359d['commandName']),_0x1f6776=_0x1277b1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f474f&&_0x169164['config']['get']('list.multiBlock')||(_0x1f6776='*Change\x20to:*\x20%0'),_0x2bff71={'type':'format','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1277b1=_0x2d359d['commandParams'][0x0]['forceValue'],_0x4f474f=_0x487339(_0x2d359d['commandName']),_0x1f6776=_0x1277b1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f474f&&_0x169164['config']['get']('list.multiBlock')||(_0x1f6776='*Change\x20to:*\x20%0'),_0x2bff71={'type':'format','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f6776='*Indent:*\x20%0',_0x2bff71={'type':'format','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f6776=function(_0x6d7289){const _0x3e654c=_0x6d7289['getFirstRange']();let _0x39ba4f=_0x3e654c['start']['nodeAfter'];for(;_0x39ba4f&&_0x3e654c['containsItem'](_0x39ba4f);){if(_0x39ba4f['getAttribute']('listIndent')>0x0)return!0x1;_0x39ba4f=_0x39ba4f['nextSibling'];}return!0x0;}(_0x3d8e63)?o(_0x4da6ee,'*Format:*\x20remove\x20from\x20%0',o(_0x4da6ee,function(_0x511d18){return'ELEMENT_'+_0x511d18['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3d8e63))):o(_0x4da6ee,'*Outdent:*\x20%0',o(_0x4da6ee,'ELEMENT_LIST_ITEM')),_0x2bff71={'type':'format','content':_0x1f6776};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2d359d['multipleBlocks']&&(_0x1f6776='*Merge:*\x20%0',_0x2bff71={'type':'deletion','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_LIST_ITEM'))});}return _0x2bff71;});}}function Te(_0x5341c1){let _0x3ea379=_0x5341c1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ea379;){const _0x2916b3=_0x3ea379['getAttribute']('listItemId');if(!_0x2916b3)return!0x1;if(_0x2916b3==_0x5341c1['data']['newValue'])return'newValue';if(_0x2916b3==_0x5341c1['data']['oldValue'])return'oldValue';_0x3ea379=_0x3ea379['previousSibling'];}return!0x1;}class H extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x55c9d2=this['editor']['config']['get']('list.properties'),_0x186c4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x55c9d2['styles']&&_0x186c4d['enableDefaultAttributesIntegration']('listStyle'),_0x55c9d2['reversed']&&_0x186c4d['enableDefaultAttributesIntegration']('listReversed'),_0x55c9d2['startIndex']&&_0x186c4d['enableDefaultAttributesIntegration']('listStart');const _0x5c8b4b={'type':'format','content':''};_0x186c4d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x283159=this['editor']['locale'];_0x186c4d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x283159,'FORMAT_LIST_REVERSED')),_0x186c4d['descriptionFactory']['registerDescriptionCallback'](_0x362dce=>{const {data:_0x181b66}=_0x362dce;if(_0x181b66&&'listReversed'==_0x181b66['key'])return null==_0x181b66['newValue']||0x0==_0x181b66['newValue']&&null==_0x181b66['oldValue']?_0x5c8b4b:void 0x0;}),_0x186c4d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x283159,'FORMAT_LIST_START')),_0x186c4d['descriptionFactory']['registerDescriptionCallback'](_0x4d948d=>{const {data:_0x5af128}=_0x4d948d;if(_0x5af128&&'listStart'==_0x5af128['key'])return null==_0x5af128['newValue']||0x1==_0x5af128['newValue']&&null==_0x5af128['oldValue']?_0x5c8b4b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x9668f7=>{if(_0x9668f7['batch']['isUndo'])return!0x1;let _0x35d795=!0x1;const _0x47c6ab=_0x186c4d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0de97=>{const _0x431c0d=_0x186c4d['_getAttributeKey'](_0xe0de97);return'listStart'==_0x431c0d||'listReversed'==_0x431c0d;});for(const _0x221ebd of _0x47c6ab){const _0x5c1392=_0x221ebd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5c1392||'customNumbered'==_0x5c1392)continue;_0x186c4d['_findSuggestions'](_0x221ebd['getFirstRange'](),'attribute')['find'](_0x306431=>'listType'==_0x186c4d['_getAttributeKey'](_0x306431['suggestion']))||(_0x9668f7['removeMarker'](_0x221ebd['getFirstMarker']()),_0x35d795=!0x0);}return _0x35d795;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x24f5b7){const _0x135a6f=this['editor']['locale'],{data:_0x143587}=_0x24f5b7,_0x1504ce={'type':'format','content':''};if(!_0x143587||'listStyle'!=_0x143587['key'])return;if(!_0x143587['oldValue'])return'default'==_0x143587['newValue']?_0x1504ce:{'type':'format','content':''+o(_0x135a6f,'*Set\x20format:*\x20%0',o(_0x135a6f,this['_getTranslationKeyForListStyle'](_0x143587['newValue'])))};if(!_0x143587['newValue']){if('default'==_0x143587['oldValue'])return _0x1504ce;let _0x3357c2=_0x24f5b7['head'];for(;_0x3357c2;){if(_0x3357c2['data']&&'listType'==_0x3357c2['data']['key']&&_0x3357c2['data']['newValue'])return _0x1504ce;_0x3357c2=_0x3357c2['next'];}return{'type':'format','content':''+o(_0x135a6f,'*Remove\x20format:*\x20%0',o(_0x135a6f,this['_getTranslationKeyForListStyle'](_0x143587['oldValue'])))};}if('default'!=_0x143587['newValue'])return{'type':'format','content':''+o(_0x135a6f,'*Set\x20format:*\x20%0',o(_0x135a6f,this['_getTranslationKeyForListStyle'](_0x143587['newValue'])))};let _0xf92341=_0x24f5b7['head'];for(;_0xf92341;){if(_0xf92341['data']&&'listType'==_0xf92341['data']['key']&&_0xf92341['data']['newValue']&&_0xf92341['data']['oldValue'])return _0x1504ce;_0xf92341=_0xf92341['next'];}return{'type':'format','content':o(_0x135a6f,'*Set\x20format:*\x20%0',o(_0x135a6f,'ELEMENT_'+_0x24f5b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13c9d9=this['editor'],_0x4fb64e=_0x13c9d9['locale'];_0x13c9d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c39f=>{if('formatBlock'!=_0x2c39f['type'])return;const {data:_0x44b401}=_0x2c39f;if(!_0x44b401)return;let _0x5edf4c,_0x4de52c;switch(_0x44b401['commandName']){case'listStyle':_0x5edf4c='*Change\x20to:*\x20%0',_0x4de52c={'type':'format','content':o(_0x4fb64e,_0x5edf4c,o(_0x4fb64e,this['_getTranslationKeyForListStyle'](_0x44b401['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5edf4c=_0x44b401['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4de52c={'type':'format','content':o(_0x4fb64e,_0x5edf4c)};break;case'listStart':_0x5edf4c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4de52c={'type':'format','content':o(_0x4fb64e,_0x5edf4c,_0x44b401['commandParams'][0x0]['startIndex'])};}return _0x4de52c;});}['_getTranslationKeyForListStyle'](_0x5e7d66){return'ELEMENT_'+function(_0x5d723d){if(ye['includes'](_0x5d723d))return'bulleted';if(Se['includes'](_0x5d723d))return'numbered';return null;}(_0x5e7d66)['toUpperCase']()+'_LIST_'+_0x5e7d66['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2b2f8b{['afterInit'](){const _0x5dd5cf=this['editor'];_0x5dd5cf['commands']['get']('emoji')&&_0x5dd5cf['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2b2f8b{static get['requires'](){return[_0x120c4a];}['init'](){const _0x490bb6=this['editor'],_0x1f374c=_0x490bb6['plugins']['get']('TrackChangesEditing'),_0x49f1e3=_0x490bb6['commands']['get']('enter');_0x1f374c['enableCommand']('enter',()=>{_0x490bb6['model']['change'](_0x949785=>{const _0x1b6f4c=_0x490bb6['model']['document']['selection'],_0x53bba9=_0x1b6f4c['getFirstPosition'](),_0x2409e2=_0xf26ff5['fromRange'](_0x1b6f4c['getFirstRange']());if(_0x49f1e3['enterBlock'](_0x949785)){const _0x44476f=_0x490bb6['model']['createPositionAt'](_0x53bba9['parent']['nextSibling'],0x0),_0x2c3595=_0x949785['createRange'](_0x53bba9,_0x44476f);_0x1f374c['markInsertion'](_0x2c3595);}else _0x949785['setSelection'](_0x949785['createRange'](_0x2409e2['end']));_0x2409e2['detach'](),_0x49f1e3['fire']('afterExecute',{'writer':_0x949785});});});}}class Y extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1aac4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1aac4d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1aac4d['enableCommand']('findNext'),_0x1aac4d['enableCommand']('findPrevious'),_0x1aac4d['enableCommand']('replace'),_0x1aac4d['enableCommand']('replaceAll');}['handleFindCommand'](_0x570764,_0x127752,_0x2e5955={}){const _0x457517=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x570764(_0x1a4302=>{let _0x3e84d1=('string'==typeof _0x127752?_0x457517['findByTextCallback'](_0x127752,_0x2e5955):_0x127752)(_0x1a4302);Array['isArray'](_0x3e84d1)&&(_0x3e84d1={'results':_0x3e84d1,'searchText':'string'==typeof _0x127752?_0x127752:''});const _0x35a6e8=_0x3e84d1['results']['filter'](_0x3255d5=>!0x1===this['_isInDeletionRange'](_0x3255d5,_0x1a4302['item']));return{..._0x3e84d1,'results':_0x35a6e8};},_0x2e5955);}['_isInDeletionRange'](_0x6008f6,_0x4bab95){const _0x546028=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bab95,_0x6008f6['start']),this['editor']['model']['createPositionAt'](_0x4bab95,_0x6008f6['end']));for(const _0x1fd3d7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x546028['getIntersection'](_0x1fd3d7['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2b2f8b{['afterInit'](){const _0x59c6af=this['editor']['locale'],_0xaa9e2d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x57571e,commandName:_0x29d12b}of eo)this['editor']['plugins']['has'](_0x57571e)&&_0xaa9e2d['enableDefaultAttributesIntegration'](_0x29d12b);_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x59c6af,'FORMAT_FONT_SIZE')),_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x59c6af,'FORMAT_FONT_FAMILY')),_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x59c6af,'FORMAT_FONT_COLOR')),_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x59c6af,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c4b9b=this['editor'],_0x5db91e=_0x1c4b9b['locale'];_0x1c4b9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c26f3=>{const _0x4c1da2=_0x5db91e['t'];if('formatInline'!=_0x4c26f3['type'])return;const {data:_0x2278a1}=_0x4c26f3;if(null!=_0x2278a1){if('fontSize'==_0x2278a1['commandName']){const _0x5bedd9=_0x2278a1['commandParams'][0x0]['value'];if(_0x5bedd9){const _0x39d1bd=_0x4c1da2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x72fc28=>_0x72fc28['model']==_0x5bedd9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20size:*\x20%0',_0x39d1bd)};}return{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2278a1['commandName']){const _0x3d64ba=_0x2278a1['commandParams'][0x0]['value'];return _0x3d64ba?{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20family:*\x20%0',_0x3d64ba)}:{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2278a1['commandName']){const _0x3f5da9=_0x2278a1['commandParams'][0x0]['value'];if(_0x3f5da9){const _0x608799=_0x1bbcf4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2dda48=>_0x2dda48['model']==_0x3f5da9);let _0x4f1cbf=_0x3f5da9,_0x1e89d3='';return _0x608799&&(_0x4f1cbf=_0x608799['label'],_0x1e89d3=_0x4c1da2(_0x4f1cbf)['toLowerCase']()),{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20color:*\x20%0',_0x1e89d3)['trim'](),'color':{'value':_0x3f5da9,'title':_0x1e89d3||_0x4f1cbf}};}return{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2278a1['commandName']){const _0x3376f6=_0x2278a1['commandParams'][0x0]['value'];if(_0x3376f6){const _0x526f8b=_0x1bbcf4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x353cf4=>_0x353cf4['model']==_0x3376f6);let _0x3122a4=_0x3376f6,_0x11c7f8='';return _0x526f8b&&(_0x3122a4=_0x526f8b['label'],_0x11c7f8=_0x4c1da2(_0x3122a4)['toLowerCase']()),{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20background\x20color:*\x20%0',_0x11c7f8)['trim'](),'color':{'value':_0x3376f6,'title':_0x11c7f8||_0x3122a4}};}return{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2b2f8b{['afterInit'](){const {plugins:_0x28b207}=this['editor'];_0x28b207['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x28b207['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xc7a4e9,plugins:_0xa28991,commands:_0x7af871}=this['editor'],_0x5aa099=_0xa28991['get']('TrackChangesEditing');_0x7af871['get']('footnotesStyle')&&_0x5aa099['enableDefaultAttributesIntegration']('footnotesStyle'),_0x7af871['get']('footnotesStart')&&_0x5aa099['enableDefaultAttributesIntegration']('footnotesStart'),_0x5aa099['registerBlockAttribute']('footnotesListStyle'),_0x5aa099['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0xc7a4e9,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5aa099['registerBlockAttribute']('footnotesListStart'),_0x5aa099['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0xc7a4e9,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2412e0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4b413d,commands:_0x76ce86}=this['editor'];_0x76ce86['get']('insertFootnote')&&_0x2412e0['enableCommand']('insertFootnote'),_0x2412e0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4ba7e7=>o(_0x4b413d,'ELEMENT_FOOTNOTE_REF',_0x4ba7e7)),_0x2412e0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5f55d3=>o(_0x4b413d,'ELEMENT_FOOTNOTE_DEFINITION',_0x5f55d3)),_0x2412e0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x41adac=>o(_0x4b413d,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x41adac));}}class nt extends _0x2b2f8b{['afterInit'](){const _0xb190b2=this['editor'],_0x5bf728=_0xb190b2['plugins']['get']('TrackChangesEditing'),_0x29b4ad=_0xb190b2['commands']['get']('copyFormat'),_0x490d2b=_0xb190b2['commands']['get']('pasteFormat');_0x29b4ad&&_0x490d2b&&(_0x5bf728['enableDefaultAttributesIntegration']('pasteFormat'),_0x5bf728['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x42ddba=this['editor'],_0xf43dc4=_0x42ddba['locale'];_0x42ddba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb94c=>{if('formatBlock'!=_0x3bb94c['type']&&'formatInline'!=_0x3bb94c['type'])return;const {data:_0x19b10b}=_0x3bb94c;if(_0x19b10b&&'pasteFormat'===_0x19b10b['commandName']){const _0x12c039=[],_0x4d76b0=_0x19b10b['commandParams'][0x0];for(const [_0x3f43c6,_0x338b0f]of Object['entries'](_0x4d76b0))_0x12c039['push'](ro(_0x42ddba,_0x3f43c6,_0x338b0f));return _0x12c039['length']?{'type':'format','content':o(_0xf43dc4,'*Set\x20format\x20to:*\x20%0',_0x12c039['join'](',\x20'))}:{'type':'format','content':o(_0xf43dc4,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x38691c,_0x43a954,_0x1e3416){const _0x13afc1=_0x38691c['locale']['t'],_0x5f1dff=_0x43a954['split'](/(?=[A-Z])/)['join']('\x20'),_0x1634f8=_0x13afc1(_0x5f1dff['charAt'](0x0)['toUpperCase']()+_0x5f1dff['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1e3416)return _0x1634f8;if('fontColor'===_0x43a954||'fontBackgroundColor'===_0x43a954){const _0xd3b259=_0x1bbcf4(_0x38691c['config']['get']('fontColor.colors'))['find'](_0x3c5e6e=>_0x3c5e6e['model']==_0x1e3416);return _0x1634f8+'\x20('+(_0xd3b259?_0x13afc1(_0xd3b259['label'])['toLowerCase']():_0x1e3416)+')';}if('fontSize'===_0x43a954&&isNaN(parseFloat(_0x1e3416))){const _0x3ee467=_0x38691c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x38691c['config']['get']('fontSize.options'))['find'](_0x133356=>_0x133356['model']==_0x1e3416);return _0x1634f8+'\x20('+(_0x3ee467?_0x13afc1(_0x3ee467['title'])['toLowerCase']():_0x1e3416)+')';}return _0x1634f8+'\x20('+_0x1e3416+')';}class it extends _0x2b2f8b{['_headingOptions'];['afterInit'](){const _0x2f8e33=this['editor'];if(!_0x2f8e33['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f8e33['config']['get']('heading.options');const _0x57d60a=_0x2f8e33['locale'],_0x3e577a=_0x2f8e33['plugins']['get']('TrackChangesEditing');_0x3e577a['enableDefaultAttributesIntegration']('heading');for(const _0x163d22 of this['_headingOptions'])'paragraph'!=_0x163d22['model']&&_0x3e577a['descriptionFactory']['registerElementLabel'](_0x163d22['model'],_0x296c82=>{const _0x1a7ea8=this['_getHeadingLevel'](_0x163d22['model']);return null!==_0x1a7ea8?_0x4443d9(_0x296c82,_0x1a7ea8):_0x48f515(_0x296c82,_0x163d22['title']);});function _0x4443d9(_0x5a5fda,_0x68ab34){return o(_0x57d60a,'ELEMENT_HEADING',[_0x5a5fda,_0x68ab34]);}function _0x48f515(_0x302b78,_0xa86d8a){return o(_0x57d60a,'ELEMENT_HEADING_CUSTOM',[_0x302b78,_0xa86d8a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de4ff=this['editor'],_0x45fc7e=_0x2de4ff['locale'];function _0x530c3c(_0x186c98,_0xaf08c0){return o(_0x45fc7e,'ELEMENT_HEADING_CUSTOM',[_0x186c98,_0xaf08c0]);}_0x2de4ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b648a=>{if('formatBlock'!=_0x5b648a['type'])return;const {data:_0x1c6712}=_0x5b648a;if(_0x1c6712&&'heading'==_0x1c6712['commandName']){const _0x5b8ba2=_0x1c6712['commandParams'][0x0]['value'],_0x56a7a9=this['_getHeadingLevel'](_0x5b8ba2);if(null!==_0x56a7a9)return{'type':'format','content':o(_0x45fc7e,'*Change\x20to:*\x20%0',(_0x26e133=0x1,_0xbd5ce0=_0x56a7a9,o(_0x45fc7e,'ELEMENT_HEADING',[_0x26e133,_0xbd5ce0])))};const _0x45582a=this['_headingOptions']['find'](_0x58efd1=>_0x58efd1['model']===_0x5b8ba2)['title'];return{'type':'format','content':o(_0x45fc7e,'*Change\x20to:*\x20%0',_0x530c3c(0x1,_0x45582a))};}var _0x26e133,_0xbd5ce0;});}['_getHeadingLevel'](_0x489f81){const _0x820237=_0x489f81['match'](/^heading(\d+)/);if(_0x820237)return _0x820237[0x1];const _0x124870=this['_headingOptions']?.['find'](_0x1aad42=>_0x1aad42['model']==_0x489f81);if(_0x124870&&_0x124870['view']){const _0xbd135f=_0x124870['view'],_0x2c5580=(_0xbd135f['name']??_0xbd135f)['match'](/^h(\d+)/);if(_0x2c5580)return _0x2c5580[0x1];}return null;}}class et extends _0x2b2f8b{['afterInit'](){const _0xfe2bd1=this['editor'];if(!_0xfe2bd1['plugins']['has']('HighlightEditing'))return;const _0x232296=_0xfe2bd1['plugins']['get']('TrackChangesEditing'),_0x3c96f3=_0xfe2bd1['locale'];_0x232296['enableDefaultAttributesIntegration']('highlight'),_0x232296['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c96f3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13923e=this['editor'],_0x463ef1=_0x13923e['locale'];_0x13923e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e14d1=>{if('formatInline'!=_0x1e14d1['type'])return;const {data:_0x293e2a}=_0x1e14d1;if(_0x293e2a&&'highlight'==_0x293e2a['commandName']){const _0x55c5bf=_0x463ef1['t'],_0x480747=_0x293e2a['commandParams'][0x0]['value'];if(_0x480747){const _0x51cac1=_0x13923e['config']['get']('highlight.options')['find'](_0x57ee12=>_0x57ee12['model']==_0x480747),_0x4831e9=_0x55c5bf(_0x51cac1['title'])['toLowerCase']();return{'type':'format','content':o(_0x463ef1,'*Set\x20highlight:*\x20%0',_0x4831e9),'color':{'value':_0x51cac1['color'],'title':_0x51cac1['title']}};}return{'type':'format','content':o(_0x463ef1,'*Remove\x20highlight*',o(_0x463ef1,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2b2f8b{['afterInit'](){const _0xd2e75d=this['editor'];if(!_0xd2e75d['plugins']['has']('HorizontalLineEditing'))return;_0xd2e75d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d029d=_0xd2e75d['plugins']['get']('TrackChangesEditing'),_0x5331b8=_0xd2e75d['locale'];_0x4d029d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b5df7=>o(_0x5331b8,'ELEMENT_HORIZONTAL_LINE',_0x2b5df7));}}class ot extends _0x2b2f8b{['afterInit'](){const _0x4f04a0=this['editor'];if(!_0x4f04a0['plugins']['has']('HtmlEmbed'))return;const _0x389549=_0x4f04a0['plugins']['get']('TrackChangesEditing'),_0x8b1095=_0x4f04a0['locale'];_0x389549['descriptionFactory']['registerElementLabel']('rawHtml',_0xa48de6=>o(_0x8b1095,'ELEMENT_HTML_EMBED',_0xa48de6)),_0x389549['enableDefaultAttributesIntegration']('htmlEmbed'),_0x389549['descriptionFactory']['registerDescriptionCallback'](_0x34e297=>{if('attribute'!=_0x34e297['type'])return;const {data:_0x15e768}=_0x34e297;if(_0x15e768&&'value'==_0x15e768['key']&&_0x34e297['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x332d3f=o(_0x8b1095,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8b1095,'*Change\x20%0\x20content*',_0x332d3f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445f87=this['editor'],_0x26b17b=_0x445f87['locale'];_0x445f87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ccc2=>{if('formatBlock'!=_0x33ccc2['type'])return;const {data:_0x3d59bd}=_0x33ccc2;if(_0x3d59bd&&'htmlEmbed'==_0x3d59bd['commandName']){const _0x45db92=o(_0x26b17b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x26b17b,'*Change\x20%0\x20content*',_0x45db92)};}});}}class rt extends _0x2b2f8b{['afterInit'](){const _0x1cc3d6=this['editor'];if(!_0x1cc3d6['plugins']['has']('ImageEditing'))return;const _0x443296=_0x1cc3d6['plugins']['get']('TrackChangesEditing'),_0x31e152=_0x1cc3d6['plugins']['get']('ImageUtils'),_0x3569c5=_0x1cc3d6['locale'];_0x443296['enableCommand']('insertImage'),_0x443296['descriptionFactory']['registerElementLabel']('imageBlock',_0x2653c6=>o(_0x3569c5,'ELEMENT_IMAGE',_0x2653c6)),_0x443296['descriptionFactory']['registerElementLabel']('imageInline',_0x429b2e=>o(_0x3569c5,'ELEMENT_INLINE_IMAGE',_0x429b2e)),_0x443296['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3569c5,'ELEMENT_CAPTION')),_0x1cc3d6['plugins']['has']('ImageUploadEditing')&&_0x443296['enableCommand']('uploadImage'),_0x1cc3d6['plugins']['has']('ImageBlockEditing')&&_0x1cc3d6['plugins']['has']('ImageInlineEditing')&&(_0x443296['enableCommand']('imageTypeInline',(_0x313a3d,_0x2d4782)=>{const _0x29b1d4=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']);_0x1cc3d6['model']['change'](()=>{_0x443296['markBlockFormat'](_0x29b1d4,{'commandName':'imageTypeInline','commandParams':[_0x2d4782]},[],'convertBlockImageToInline');});}),_0x443296['enableCommand']('imageTypeBlock',(_0x1b9fdb,_0x1c3e86)=>{_0x1cc3d6['model']['change'](_0x12ace3=>{let _0x2239a7=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x536ded=_0x12ace3['createRangeOn'](_0x2239a7);const _0x3c32d8=_0x73289d['fromPosition'](_0x536ded['start'],'toPrevious'),_0x3e6cfb=_0x73289d['fromPosition'](_0x536ded['end'],'toNext');_0x443296['forceDefaultExecution'](()=>_0x1b9fdb(_0x1c3e86)),_0x2239a7=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x536ded=_0x12ace3['createRangeOn'](_0x2239a7);const _0x362ff7=_0x12ace3['createRange'](_0x3c32d8,_0x3e6cfb);_0x3c32d8['detach'](),_0x3e6cfb['detach'](),_0x443296['markBlockFormat'](_0x2239a7,{'commandName':'imageTypeInline','commandParams':[_0x1c3e86]},[],'convertInlineImageToBlock'),_0x362ff7['start']['isBefore'](_0x536ded['start'])&&_0x443296['markInsertion'](_0x12ace3['createRange'](_0x362ff7['start'],_0x536ded['start']),'convertInlineImageToBlock'),_0x536ded['end']['isBefore'](_0x362ff7['end'])&&_0x443296['markInsertion'](_0x12ace3['createRange'](_0x536ded['end'],_0x362ff7['end']),'convertInlineImageToBlock');});}),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x443296['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x590af5])=>{const _0x3180f7=_0x443296['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d4302=_0x590af5['start'],_0x2e6179=_0x590af5['end'];const _0x472426=_0x1cc3d6['model']['schema']['getNearestSelectionRange'](_0x2d4302,'backward'),_0xb63432=_0x1cc3d6['model']['schema']['getNearestSelectionRange'](_0x2e6179,'forward');_0x472426['isCollapsed']&&(_0x2d4302=_0x472426['start']),_0xb63432['isCollapsed']&&(_0x2e6179=_0xb63432['end']),_0x3180f7([_0x1cc3d6['model']['createRange'](_0x2d4302,_0x2e6179)]);}),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4e4fb0),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4e4fb0)),_0x1cc3d6['plugins']['has']('ImageCaptionEditing')&&(_0x443296['enableCommand']('toggleImageCaption',(_0x45c200,_0x361ec1)=>{const _0x3fb656=_0x1cc3d6['plugins']['get']('ImageCaptionUtils');let _0x3f2cc0=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x1ce1cd=_0x3fb656['getCaptionFromImageModelElement'](_0x3f2cc0);_0x1cc3d6['model']['change'](()=>{if(_0x1ce1cd)return void _0x443296['markDeletion'](_0x1cc3d6['model']['createRangeOn'](_0x1ce1cd));const _0x109635=_0x31e152['isBlockImage'](_0x3f2cc0);_0x45c200(_0x361ec1),_0x3f2cc0=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x1ce1cd=_0x3fb656['getCaptionFromImageModelElement'](_0x3f2cc0),_0x443296['markInsertion'](_0x1cc3d6['model']['createRangeOn'](_0x1ce1cd),_0x109635?null:'imageCaption');});}),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4e4fb0));const _0x39f3e1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ee9c6(_0x272113,_0xb6f5c0){const _0x223761=_0x39f3e1['findIndex'](({type:_0x36f234,subType:_0x107e86})=>_0x272113['type']==_0x36f234&&_0x272113['subType']==_0x107e86),_0x380a03=_0x39f3e1['findIndex'](({type:_0x54b61e,subType:_0x37e497})=>_0xb6f5c0['type']==_0x54b61e&&_0xb6f5c0['subType']==_0x37e497);if(_0x223761<0x0||_0x380a03<0x0)return!0x1;const _0x4d7174=_0x272113['getFirstRange'](),_0x562abc=_0xb6f5c0['getFirstRange']();if((0x0==_0x223761||0x1==_0x223761)&&0x2==_0x380a03&&_0x4d7174['isIntersecting'](_0x562abc))return!0x0;if(0x2==_0x223761&&0x3==_0x380a03){const _0x8bb66e=_0x443296['_findSuggestions'](_0x4d7174,'insertion')['filter'](({suggestion:_0x566e3a,meta:_0x3008a1})=>_0x3008a1['isOwn']&&'convertInlineImageToBlock'==_0x566e3a['subType']);if(_0x8bb66e['length']>0x1&&_0x562abc['end']['isEqual'](_0x4d7174['start']))return!0x0;if(0x1==_0x8bb66e['length']&&(_0x4d7174['start']['isEqual'](_0x562abc['end'])||_0x4d7174['end']['isEqual'](_0x562abc['start'])))return!0x0;}if(0x3==_0x223761&&0x3==_0x380a03&&_0x4d7174['start']['isBefore'](_0x562abc['start'])){const _0x4f4530=_0x4d7174['end']['nodeAfter'],_0x8d21b1=_0x562abc['start']['nodeBefore'];return _0x31e152['isBlockImage'](_0x4f4530)&&_0x4f4530===_0x8d21b1;}return!0x1;}function _0x4e4fb0(_0x34f3b9,_0x2ba0f7){return _0x4ee9c6(_0x34f3b9,_0x2ba0f7)?[_0x34f3b9,_0x2ba0f7]:_0x4ee9c6(_0x2ba0f7,_0x34f3b9)?[_0x2ba0f7,_0x34f3b9]:null;}_0x1cc3d6['plugins']['has']('ImageResize')&&(_0x443296['enableDefaultAttributesIntegration']('resizeImage'),_0x443296['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3569c5,'FORMAT_IMAGE_SIZE'))),_0x1cc3d6['plugins']['has']('ImageTextAlternativeEditing')&&_0x443296['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cc3d6['plugins']['has']('PictureEditing')&&_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x18269f=>{if('attribute'!=_0x18269f['type'])return;const {data:_0x30258d}=_0x18269f;return _0x30258d&&'sources'==_0x30258d['key']?{'type':'format','content':''}:void 0x0;}),_0x1cc3d6['plugins']['has']('ImageSizeAttributes')&&_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x416134=>{if('attribute'!=_0x416134['type'])return;const {data:_0x27adc6}=_0x416134;return!_0x27adc6||'width'!=_0x27adc6['key']&&'height'!=_0x27adc6['key']?void 0x0:{'type':'format','content':''};}),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x52c373=>{if(!!_0x39f3e1['find'](({type:_0x564268,subType:_0x5b9583})=>_0x52c373['type']==_0x564268&&_0x52c373['subType']==_0x5b9583))return _0x52c373['previous']?{}:void 0x0;}),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x3eae18=>{if('insertion'==_0x3eae18['type']||'deletion'==_0x3eae18['type']){const _0x27dcf4=_0x3eae18['getContainedElement']();if(_0x27dcf4&&_0x27dcf4['is']('element','caption'))return{'type':'insertion'==_0x3eae18['type']?'addObject':'removeObject','element':_0x27dcf4,'quantity':0x1};}}),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x2769cb=>'formatBlock'==_0x2769cb['type']&&'convertInlineImageToBlock'==_0x2769cb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2769cb['type']&&'convertBlockImageToInline'==_0x2769cb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x3aac25=>{if('attribute'!=_0x3aac25['type'])return;const {data:_0x52df6e}=_0x3aac25;if(!_0x52df6e||'alt'!=_0x52df6e['key'])return;const _0x3dcef3=_0x52df6e['newValue'];return _0x3dcef3?{'type':'format','content':o(_0x3569c5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3dcef3+'\x22')}:{'type':'format','content':o(_0x3569c5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28329b=this['editor'],_0x5305d0=_0x28329b['locale'];_0x28329b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490a1d=>{if('formatBlock'!=_0x490a1d['type']&&'formatInline'!=_0x490a1d['type'])return;const {data:_0x4c151c}=_0x490a1d;if(_0x4c151c){if('imageTextAlternative'==_0x4c151c['commandName']){const _0x1a2060=_0x4c151c['commandParams'][0x0]['newValue'];return _0x1a2060?{'type':'format','content':o(_0x5305d0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a2060+'\x22')}:{'type':'format','content':o(_0x5305d0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4c151c['commandName']){const _0x56b1bd=_0x4c151c['commandParams'][0x0]['width'];return _0x56b1bd?{'type':'format','content':o(_0x5305d0,'*Set\x20image\x20width:*\x20%0',_0x56b1bd)}:{'type':'format','content':o(_0x5305d0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4a585b=this['editor']['locale'],_0x172fed=this['editor']['plugins']['get']('TrackChangesEditing');_0x172fed['enableDefaultAttributesIntegration']('replaceImageSource'),_0x172fed['descriptionFactory']['registerDescriptionCallback'](_0x54e7aa=>{if('attribute'!=_0x54e7aa['type'])return;const {data:_0x2e9f10}=_0x54e7aa;return _0x2e9f10&&'src'==_0x2e9f10['key']?_0x2e9f10['newValue']&&_0x2e9f10['oldValue']?{'type':'format','content':o(_0x4a585b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x563187=this['editor']['plugins']['get']('TrackChangesEditing');_0x563187['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x563187['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x563187['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x563187['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18a8e8=this['editor'],_0x3c39c6=_0x18a8e8['locale'];_0x18a8e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d3e34=>{if('formatBlock'!=_0x2d3e34['type']&&'formatInline'!=_0x2d3e34['type'])return;const {data:_0x388a4c}=_0x2d3e34;if(!_0x388a4c||'replaceImageSource'!=_0x388a4c['commandName'])return;return{'type':'format','content':o(_0x3c39c6,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2b2f8b{['afterInit'](){const _0x154534=this['editor'];if(!_0x154534['plugins']['has']('ImageStyleEditing'))return;const _0x4686fc=_0x154534['plugins']['get']('TrackChangesEditing'),_0xdcdcf7=_0x154534['plugins']['get']('ImageUtils'),_0x2668ac={};_0x4686fc['enableCommand']('imageStyle',(_0x261dfc,_0x5dea4c)=>{const _0x2be5b4=_0x154534['plugins']['get']('Users')['me'],_0x2bc51d=_0x154534['commands']['get']('imageStyle');let _0x3fb63d=_0xdcdcf7['getClosestSelectedImageElement'](_0x154534['model']['document']['selection']),_0x31ad2d=_0x154534['model']['createRangeOn'](_0x3fb63d),_0x365d04=_0x2bc51d['value'];if(_0x365d04==_0x5dea4c['value'])return;const _0x30d3be={'commandName':'imageStyle','commandParams':[_0x5dea4c],'formatGroupId':_0x8ed52d()};_0x154534['model']['change'](()=>{if(_0x4686fc['getSuggestions']()['filter'](_0xae4129=>_0xae4129['isInContent']&&_0x2be5b4==_0xae4129['author']&&('formatBlock'==_0xae4129['type']||'formatInline'==_0xae4129['type'])&&('imageStylePreApply'==_0xae4129['subType']||'imageStylePostApply'==_0xae4129['subType'])&&_0xae4129['getFirstRange']()['isEqual'](_0x31ad2d))['forEach'](_0x55681a=>_0x4686fc['discardSuggestion'](_0x55681a['head'])),_0x3fb63d=_0xdcdcf7['getClosestSelectedImageElement'](_0x154534['model']['document']['selection']),_0x31ad2d=_0x154534['model']['createRangeOn'](_0x3fb63d),_0x2bc51d['refresh'](),_0x154534['commands']['get']('imageTypeInline')['refresh'](),_0x154534['commands']['get']('imageTypeBlock')['refresh'](),_0x365d04=_0x2bc51d['value'],_0x365d04!=_0x5dea4c['value'])return _0xdcdcf7['isInlineImage'](_0x3fb63d)&&_0x2bc51d['shouldConvertImageType'](_0x5dea4c['value'],_0x3fb63d)?(_0x261dfc({..._0x5dea4c,'setImageSizes':!0x1}),_0x3fb63d=_0xdcdcf7['getClosestSelectedImageElement'](_0x154534['model']['document']['selection']),void _0x4686fc['markBlockFormat'](_0x3fb63d,{..._0x30d3be,'commandReversedParams':[{'value':_0x365d04||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xdcdcf7['isBlockImage'](_0x3fb63d)?_0x4686fc['markBlockFormat'](_0x3fb63d,_0x30d3be,[],'imageStylePostApply'):_0x4686fc['markInlineFormat'](_0x31ad2d,_0x30d3be,'imageStylePostApply'));});});for(const _0x55dc3d of _0x154534['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2668ac[_0x55dc3d['name']]=_0x55dc3d['title']['toLowerCase']();_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5b957d])=>{_0xdcdcf7['setImageNaturalSizeAttributes'](_0x5b957d['getContainedElement']());}),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x126810,_0x48fc36)=>{_0x4686fc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x126810,{'commandName':_0x48fc36['commandName'],'commandParams':_0x48fc36['commandReversedParams']});}),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5865ab,_0x4663a9){if(_0x1c9354(_0x5865ab,_0x4663a9))return[_0x5865ab,_0x4663a9];if(_0x1c9354(_0x4663a9,_0x5865ab))return[_0x4663a9,_0x5865ab];return null;});const _0x96c0fb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c9354(_0x50a31d,_0x4b34fb){const _0x2ff5c9=_0x96c0fb['findIndex'](({type:_0x3fe5cd,subType:_0x36b3ff})=>_0x50a31d['type']==_0x3fe5cd&&_0x50a31d['subType']==_0x36b3ff),_0x4d69bd=_0x96c0fb['findIndex'](({type:_0x368990,subType:_0x40dc10})=>_0x4b34fb['type']==_0x368990&&_0x4b34fb['subType']==_0x40dc10);if(_0x2ff5c9<0x0||_0x4d69bd<0x0)return!0x1;const _0x9bde7=_0x50a31d['getFirstRange'](),_0x4930a4=_0x4b34fb['getFirstRange']();if((0x0==_0x2ff5c9||0x1==_0x2ff5c9)&&0x2==_0x4d69bd&&_0x9bde7['isIntersecting'](_0x4930a4))return!0x0;if(0x2==_0x2ff5c9&&0x3==_0x4d69bd){const _0x2eedd8=_0x4686fc['_findSuggestions'](_0x9bde7,'insertion')['filter'](({suggestion:_0x42b1f1,meta:_0x34e10d})=>_0x34e10d['isOwn']&&'convertInlineImageToBlock'==_0x42b1f1['subType']);if(_0x2eedd8['length']>0x1&&_0x4930a4['end']['isEqual'](_0x9bde7['start']))return!0x0;if(0x1==_0x2eedd8['length']&&(_0x9bde7['start']['isEqual'](_0x4930a4['end'])||_0x9bde7['end']['isEqual'](_0x4930a4['start'])))return!0x0;}if(0x3==_0x2ff5c9&&0x3==_0x4d69bd&&_0x9bde7['start']['isBefore'](_0x4930a4['start'])){const _0x112e43=_0x9bde7['end']['nodeAfter'],_0x2375a7=_0x4930a4['start']['nodeBefore'];return _0xdcdcf7['isBlockImage'](_0x112e43)&&_0x112e43===_0x2375a7;}return!0x1;}_0x154534['model']['document']['registerPostFixer'](()=>{let _0x5ceadd=!0x1;const _0x15a2bf=Array['from'](_0x154534['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e2dfa,data:_0x26c602}of _0x15a2bf){const {group:_0x4982fa,type:_0x141549,subType:_0x3f03fe,id:_0xbe304e}=_0x4686fc['_splitMarkerName'](_0x5e2dfa);if('suggestion'==_0x4982fa&&_0x4686fc['hasSuggestion'](_0xbe304e)){if('formatBlock'==_0x141549&&('imageStylePreApply'==_0x3f03fe||'imageStylePostApply'==_0x3f03fe)){const _0x299ecc=_0x4686fc['getSuggestion'](_0xbe304e);if(_0x26c602['newRange']){const _0x25c0d2=_0x299ecc['getFirstRange']()['getContainedElement']();if(_0xdcdcf7['isBlockImage'](_0x25c0d2))continue;_0x4686fc['discardSuggestion'](_0x299ecc),_0x5ceadd=!0x0;}}if('insertion'==_0x141549&&'imageCaption'==_0x3f03fe&&!_0x26c602['newRange']){const _0x2954f0=_0x4686fc['getSuggestion'](_0xbe304e);_0x2954f0['next']&&_0x2954f0['next']['isInContent']&&(_0x4686fc['discardSuggestion'](_0x2954f0['next']),_0x5ceadd=!0x0);}}}return _0x5ceadd;}),this['_registerLegacyDescription'](_0x2668ac);}['_registerLegacyDescription'](_0x3869b4){const _0xce5075=this['editor'],_0x23b684=_0xce5075['locale'];_0xce5075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f026b=>{if('formatBlock'!=_0x3f026b['type']&&'formatInline'!=_0x3f026b['type'])return;const {data:_0x414882}=_0x3f026b;if(!_0x414882||'imageStyle'!=_0x414882['commandName'])return;const _0x320807=_0x414882['commandParams'][0x0]['value'];return _0x4b6d4c('side'===_0x320807?o(_0x23b684,'FORMAT_SIDE_IMAGE'):_0x3869b4[_0x320807]||_0x320807);function _0x4b6d4c(_0x3dcbe0){return{'type':'format','content':o(_0x23b684,'*Format:*\x20%0',_0x3dcbe0)};}});}}class ut extends _0x2b2f8b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x6bd212){super(_0x6bd212),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x28092d=this['editor'],_0xf01f1e=_0x28092d['commands']['get']('importWord'),_0x183635=_0x28092d['commands']['get']('trackChanges');_0xf01f1e&&(_0xf01f1e['on']('execute',(_0x1a0b5d,[,_0x40c684])=>{this['_trackChangesValueDuringImport']=_0x183635['value'],_0x40c684['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf01f1e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf01f1e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x183635['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x28092d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1426f4,_0x1cb187){const {suggestions:_0xc60c34}=_0x1cb187,_0x5490ad=this['editor']['commands']['get']('trackChanges'),_0x304739=_0x5490ad['value'];this['_trackChangesValueDuringImport']!==_0x304739&&(_0x5490ad['execute'](),this['_trackChangesExecuted']=!0x0),_0xc60c34&&_0xc60c34['forEach'](({id:_0x50497c,type:_0x5e1b5b,author:_0x336717,created_at:_0xa1282})=>{const _0x5c285a={'id':_0x50497c,'type':_0x5e1b5b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x336717,'createdAt':_0xa1282?new Date(_0xa1282):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c285a);});}}class ft extends _0x2b2f8b{['afterInit'](){const _0x2d11ac=this['editor'],_0x959dd0=_0x2d11ac['plugins']['get']('TrackChangesEditing');if(_0x2d11ac['plugins']['has']('IndentEditing')&&(_0x959dd0['enableCommand']('indent'),_0x959dd0['enableCommand']('outdent')),_0x2d11ac['plugins']['has']('IndentBlock')){for(const _0x531139 of['indentBlock','outdentBlock'])_0x959dd0['enableDefaultAttributesIntegration'](_0x531139);}const _0x4773bd=_0x2d11ac['locale'];_0x959dd0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4773bd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ac50e=this['editor'],_0x6faf3f=_0x1ac50e['locale'],_0x3ab120=_0x1ac50e['plugins']['get']('TrackChangesEditing');_0x3ab120['descriptionFactory']['registerDescriptionCallback'](_0x3353b8=>{if('formatBlock'!=_0x3353b8['type'])return;const {data:_0x3c1e21}=_0x3353b8;if(!_0x3c1e21)return;if('indentBlock'!=_0x3c1e21['commandName']&&'outdentBlock'!=_0x3c1e21['commandName'])return;const _0xe2b606=_0x3353b8['getItems']()[0x0],_0x4bc89d=_0x3ab120['descriptionFactory']['getItemLabel'](_0xe2b606);return'indentBlock'==_0x3c1e21['commandName']?{'type':'format','content':o(_0x6faf3f,'*Indent:*\x20%0',_0x4bc89d)}:'outdentBlock'==_0x3c1e21['commandName']?{'type':'format','content':o(_0x6faf3f,'*Outdent:*\x20%0',_0x4bc89d)}:void 0x0;});}}class ht extends _0x2b2f8b{static get['requires'](){return[_0x3b62bb];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2b2f8b{['afterInit'](){const _0x239f30=this['editor'];if(!_0x239f30['plugins']['has']('LinkEditing'))return;const _0xe4a9d9=_0x239f30['plugins']['get']('TrackChangesEditing'),_0x5d0bd9=_0x239f30['commands']['get']('link');_0xe4a9d9['enableDefaultAttributesIntegration']('link'),_0xe4a9d9['enableDefaultAttributesIntegration']('unlink');for(const _0x5a7459 of _0x5d0bd9['manualDecorators'])_0xe4a9d9['descriptionFactory']['registerAttributeLabel'](_0x5a7459['id'],'link\x20('+_0x5a7459['label']['toLowerCase']()+')');_0xe4a9d9['descriptionFactory']['registerDescriptionCallback'](_0x23af2a=>{if('attribute'!=_0x23af2a['type'])return;const {data:_0x507479}=_0x23af2a;if(!_0x507479||'linkHref'!=_0x507479['key'])return;const _0x15d5aa=_0x507479['newValue'],_0xeca4e8=_0x239f30['locale'];return{'type':'format','content':null==_0x15d5aa?o(_0xeca4e8,'*Remove\x20link*'):o(_0xeca4e8,'*Set\x20link:*\x20%0','\x22'+_0x15d5aa+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8e5d=this['editor'],_0xfbea3a=_0x1f8e5d['locale'];_0x1f8e5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43a627=>{if('formatInline'!=_0x43a627['type'])return;const {data:_0xc76a74}=_0x43a627;if(_0xc76a74){if('link'==_0xc76a74['commandName']){const _0x26e25d=_0xc76a74['commandParams'][0x0];return{'type':'format','content':o(_0xfbea3a,'*Set\x20link:*\x20%0','\x22'+_0x26e25d+'\x22')};}return'unlink'==_0xc76a74['commandName']?{'type':'format','content':o(_0xfbea3a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2b2f8b{['afterInit'](){const _0x296a03=this['editor'],_0x453241=_0x296a03['locale'];if(!_0x296a03['plugins']['has']('LegacyListEditing'))return;const _0x54492a=_0x296a03['plugins']['get']('TrackChangesEditing'),_0xed08d4=_0x296a03['plugins']['has']('LegacyTodoListEditing');function _0xe7ef1(_0x1d37e2){return()=>{const _0x264111=_0x296a03['model']['document']['selection'],_0x4d5c6b=_0x296a03['commands']['get'](_0x1d37e2);if(_0x4d5c6b['value'])return void _0x296a03['execute']('paragraph',{});const _0x6dce97=_0x1d37e2['slice'](0x0,-0x4),_0x51b98d=function(_0x35d1c5,_0x294d5f,_0x2fe1b5){let _0x939111=Array['from'](_0x35d1c5)['filter'](_0x6c08d1=>function(_0x2c4306,_0x3b52ef){return _0x3b52ef['checkChild'](_0x2c4306['parent'],'listItem')&&!_0x3b52ef['isObject'](_0x2c4306);}(_0x6c08d1,_0x2fe1b5));_0x939111=_0x939111['filter'](_0x5d8bfc=>!_0x5d8bfc['is']('element','listItem')||_0x5d8bfc['getAttribute']('listType')!=_0x294d5f);const _0x51ef7e=new Set();for(const _0x1f5815 of _0x939111)_0x1f5815['is']('element','listItem')?_0x51ef7e['add'](Le(_0x1f5815)):_0x51ef7e['add'](_0x1f5815);return Array['from'](_0x51ef7e);}(_0x264111['getSelectedBlocks'](),_0x6dce97,_0x296a03['model']['schema']);_0x296a03['model']['change'](()=>{for(const _0x59fd7b of _0x51b98d)_0x54492a['markBlockFormat'](_0x59fd7b,{'commandName':_0x1d37e2,'commandParams':[{'forceValue':!_0x4d5c6b['value']}],'formatGroupId':'blockName'},Ee(_0x59fd7b));});};}function _0xef3515(_0x169978){return()=>{const _0xb64b3d=function(_0x1a648d){let _0x528656=Array['from'](_0x1a648d);const _0x48cb95=_0x528656['findIndex'](_0x148fda=>'listItem'!=_0x148fda['name']);return _0x48cb95>-0x1&&(_0x528656=_0x528656['slice'](0x0,_0x48cb95)),_0x528656;}(_0x296a03['model']['document']['selection']['getSelectedBlocks']()),_0x1673a3=_0x296a03['model']['createRange'](_0x296a03['model']['createPositionAt'](_0xb64b3d[0x0],'before'),_0x296a03['model']['createPositionAt'](_0xb64b3d[_0xb64b3d['length']-0x1],'end'));_0x296a03['model']['change'](()=>{_0x54492a['markBlockFormat'](_0x1673a3,{'commandName':_0x169978,'commandParams':[],'formatGroupId':'listIndent'},function(_0x94a553){const _0x2d1163=new Set();for(const _0x4472fd of _0x94a553){let _0x1b7b25=_0x4472fd['nextSibling'];for(;_0x1b7b25&&_0x1b7b25['getAttribute']('listIndent')>_0x4472fd['getAttribute']('listIndent');)_0x2d1163['add'](_0x1b7b25),_0x1b7b25=_0x1b7b25['nextSibling'];}return Array['from'](_0x2d1163);}(_0xb64b3d));});};}_0x54492a['enableCommand']('numberedList',_0xe7ef1('numberedList')),_0x54492a['enableCommand']('bulletedList',_0xe7ef1('bulletedList')),_0xed08d4&&_0x54492a['enableCommand']('todoList',_0xe7ef1('todoList')),_0x54492a['enableCommand']('indentList',_0xef3515('indentList')),_0x54492a['enableCommand']('outdentList',_0xef3515('outdentList')),_0xed08d4&&_0x54492a['enableCommand']('checkTodoList',()=>{const _0x5ac043=_0x296a03['commands']['get']('checkTodoList'),_0xd404aa=Array['from'](_0x5ac043['_selectedElements']);_0xd404aa['filter'](_0x4a266f=>_0x4a266f['getAttribute']('todoListChecked')!=_0x5ac043['value']),_0x296a03['model']['change'](()=>{for(const _0x4a20be of _0xd404aa)_0x54492a['markBlockFormat'](_0x4a20be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ac043['value']}]});});}),_0x54492a['descriptionFactory']['registerElementLabel']('listItem',_0x242b5a=>o(_0x453241,'ELEMENT_LIST_ITEM',_0x242b5a)),_0x54492a['descriptionFactory']['registerDescriptionCallback'](_0x2c9e2e=>{if('formatBlock'!=_0x2c9e2e['type']&&'formatInline'!=_0x2c9e2e['type'])return;const {data:_0xd75b29}=_0x2c9e2e;if(_0xd75b29){if('numberedList'==_0xd75b29['commandName']||'bulletedList'==_0xd75b29['commandName']||'todoList'==_0xd75b29['commandName'])switch(_0xd75b29['commandName']['replace']('List','')){case'bulleted':return _0x353dd3(o(_0x453241,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x353dd3(o(_0x453241,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x353dd3(o(_0x453241,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd75b29['commandName'])return{'type':'format','content':o(_0x453241,'*Indent:*\x20%0',o(_0x453241,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd75b29['commandName'])return{'type':'format','content':o(_0x453241,'*Outdent:*\x20%0',o(_0x453241,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd75b29['commandName'])return _0xd75b29['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x453241,'*Check\x20item*')}:{'type':'format','content':o(_0x453241,'*Uncheck\x20item*')};}function _0x353dd3(_0x429d13){return{'type':'format','content':o(_0x453241,'*Change\x20to:*\x20%0',_0x429d13)};}});}}function Le(_0x27118e){const _0x2f23f1=_0x27118e['getAttribute']('listIndent');if(0x0==_0x2f23f1)return _0x27118e;let _0x46d42b=_0x27118e;for(;_0x27118e['previousSibling']&&_0x27118e['previousSibling']['is']('element','listItem');){const _0x48bab3=_0x27118e['previousSibling']['getAttribute']('listIndent');if(_0x48bab3==_0x2f23f1)_0x46d42b=_0x27118e['previousSibling'];else{if(_0x48bab3<_0x2f23f1)break;}_0x27118e=_0x27118e['previousSibling'];}return _0x46d42b;}function Ee(_0x3549f1){const _0x887857=[];if(_0x3549f1['is']('element','listItem')&&_0x3549f1['getAttribute']('listIndent')>0x0){let _0x35e774=_0x3549f1['nextSibling'];for(;_0x35e774&&'listItem'==_0x35e774['name']&&_0x35e774['getAttribute']('listIndent')==_0x3549f1['getAttribute']('listIndent');)_0x887857['push'](_0x35e774),_0x35e774=_0x35e774['nextSibling'];}return _0x887857;}class mt extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x580205=this['editor']['config']['get']('list.properties'),_0x9f9390=this['editor']['plugins']['get']('TrackChangesEditing');_0x580205['styles']&&_0x9f9390['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x580205['reversed']&&_0x9f9390['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x580205['startIndex']&&_0x9f9390['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x9f9390['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x31793f,_0x5888b5={}){const _0x272854=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb703bc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x272854['markMultiRangeBlockFormat'](_0xb703bc,{'commandName':'listStyle','commandParams':[{'type':_0x5888b5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1bd7b4,_0x5ee03a={}){const _0x33f4c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28385f=this['_getSuggestionBlocks'](_0x4175fc=>_0x4175fc['is']('element','listItem')&&'numbered'===_0x4175fc['getAttribute']('listType'));if(_0x28385f['length']<0x1)return;const _0x393e69=_0x28385f['map'](_0x59f825=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59f825,'before'),this['editor']['model']['createPositionAt'](_0x59f825,0x0)));this['editor']['model']['change'](()=>{_0x33f4c3['markMultiRangeBlockFormat'](_0x393e69,{'commandName':'listReversed','commandParams':[{'reversed':_0x5ee03a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x56bccc,_0x3f94d6={}){const _0x10598a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318cc3=this['_getSuggestionBlocks'](_0x558457=>_0x558457['is']('element','listItem')&&'numbered'===_0x558457['getAttribute']('listType'));if(_0x318cc3['length']<0x1)return;const _0x8455b2=_0x318cc3['map'](_0x606c6a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x606c6a,'before'),this['editor']['model']['createPositionAt'](_0x606c6a,0x0)));this['editor']['model']['change'](()=>{_0x10598a['markMultiRangeBlockFormat'](_0x8455b2,{'commandName':'listStart','commandParams':[{'startIndex':_0x3f94d6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5eedf8){if('formatBlock'!=_0x5eedf8['type']&&'formatInline'!=_0x5eedf8['type'])return;const _0x188f65=this['editor']['locale'],{data:_0x112669}=_0x5eedf8;if(!_0x112669)return;let _0x2db968,_0x4b7aae;switch(_0x112669['commandName']){case'listStyle':_0x2db968='*Change\x20to:*\x20%0',_0x4b7aae={'type':'format','content':o(_0x188f65,_0x2db968,o(_0x188f65,this['_getTranslationKeyForListStyle'](_0x112669['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2db968=_0x112669['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b7aae={'type':'format','content':o(_0x188f65,_0x2db968)};break;case'listStart':_0x2db968='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b7aae={'type':'format','content':o(_0x188f65,_0x2db968,_0x112669['commandParams'][0x0]['startIndex'])};}return _0x4b7aae;}['_getSuggestionBlocksForListStyle'](){const _0x15de05=this['editor']['plugins']['get']('LegacyListUtils');let _0x1dbe17=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1dbe17[0x0]?.['is']('element','listItem')&&_0x1dbe17['unshift'](..._0x15de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1dbe17[_0x1dbe17['length']-0x1]?.['is']('element','listItem')&&_0x1dbe17['push'](..._0x15de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1dbe17=[...new Set(_0x1dbe17)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1dbe17=_0x1dbe17['filter'](_0x2cf1c9=>_0x2cf1c9['is']('element','listItem'))),_0x1dbe17;}['_getSuggestionBlocks'](_0x10eafa){const _0x289a7b=this['editor']['plugins']['get']('LegacyListUtils');let _0x127fac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x10eafa)['map'](_0xa01850=>{const _0x597970=this['editor']['model']['createPositionAt'](_0xa01850,0x0);return[..._0x289a7b['getSiblingNodes'](_0x597970,'backward'),..._0x289a7b['getSiblingNodes'](_0x597970,'forward')];})['flat']();return _0x127fac=[...new Set(_0x127fac)],_0x127fac;}['_getTranslationKeyForListStyle'](_0x5676dc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5676dc)||'default')['toUpperCase']()+'_LIST_'+_0x5676dc['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2b2f8b{['afterInit'](){const _0xa5d3b1=this['editor'];if(!_0xa5d3b1['plugins']['has']('MediaEmbedEditing'))return;const _0x57e97f=_0xa5d3b1['plugins']['get']('TrackChangesEditing'),_0x1fd02a=_0xa5d3b1['locale'];_0x57e97f['enableCommand']('mediaEmbed'),_0x57e97f['descriptionFactory']['registerElementLabel']('media',_0x341ed0=>o(_0x1fd02a,'ELEMENT_MEDIA',_0x341ed0));}}class pt extends _0x2b2f8b{['afterInit'](){const _0x37eddd=this['editor'];_0x37eddd['plugins']['has']('MentionEditing')&&_0x37eddd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2b2f8b{['afterInit'](){const _0x3b7b24=this['editor'];if(!_0x3b7b24['plugins']['has']('MergeFieldsEditing'))return;const _0x1234d9=_0x3b7b24['plugins']['get']('TrackChangesEditing'),_0x286bd5=_0x3b7b24['locale'];_0x1234d9['enableCommand']('insertMergeField'),_0x1234d9['enableCommand']('insertMergeFieldBlock'),_0x1234d9['enableCommand']('insertMergeFieldImage'),_0x1234d9['descriptionFactory']['registerElementLabel']('mergeField',_0x3e70dd=>o(_0x286bd5,'ELEMENT_MERGE_FIELD',_0x3e70dd)),_0x1234d9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1436c6=>o(_0x286bd5,'ELEMENT_MERGE_FIELD',_0x1436c6)),_0x1234d9['descriptionFactory']['registerDescriptionCallback'](_0x30059e=>{if('insertion'!=_0x30059e['type']&&'deletion'!=_0x30059e['type'])return;const _0x56d35c=_0x30059e['getContainedElement']();if(null==_0x56d35c)return;const _0x1bdcca=_0x3b7b24['plugins']['get']('MergeFieldsEditing');let _0x1613d0;switch(_0x1bdcca['getMergeFieldType'](_0x56d35c)){case null:return;case'image':{const _0x5b6044=_0x1bdcca['unwrapAffixes'](_0x56d35c['getAttribute']('src'));_0x1613d0=_0x1bdcca['getLabel'](_0x5b6044)||_0x5b6044;break;}default:{const _0x3e785d=_0x56d35c['getAttribute']('id');_0x1613d0=_0x1bdcca['getLabel'](_0x3e785d)||_0x3e785d;break;}}return'insertion'==_0x30059e['type']?{'type':'insertion','content':o(_0x286bd5,'*Insert:*\x20%0','\x22'+_0x1613d0+'\x22\x20'+o(_0x286bd5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x286bd5,'*Remove:*\x20%0','\x22'+_0x1613d0+'\x22\x20'+o(_0x286bd5,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2b2f8b{['afterInit'](){const _0x1853e0=this['editor'],_0x26d35f=_0x1853e0['plugins']['get']('TrackChangesEditing');_0x1853e0['plugins']['has']('MultiLevelList')&&(_0x26d35f['enableDefaultAttributesIntegration']('multiLevelList'),_0x26d35f['descriptionFactory']['registerDescriptionCallback'](_0x46817e=>this['handleDescriptions'](_0x46817e)));}['handleDescriptions'](_0x577fb4){const _0x5848a8=this['editor']['locale'],{data:_0x1e9ef3}=_0x577fb4,_0x424911={'type':'format','content':''};if(_0x1e9ef3&&'listMarkerStyle'==_0x1e9ef3['key']){if(!_0x1e9ef3['oldValue'])return{'type':'format','content':o(_0x5848a8,'*Set\x20format:*\x20%0',o(_0x5848a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e9ef3['newValue']+')'};if(!_0x1e9ef3['newValue']){let _0x192d00=_0x577fb4['head'];for(;_0x192d00;){if(_0x192d00['data']&&'listType'==_0x192d00['data']['key']&&_0x192d00['data']['newValue'])return _0x424911;_0x192d00=_0x192d00['next'];}return{'type':'format','content':o(_0x5848a8,'*Remove\x20format:*\x20%0',o(_0x5848a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e9ef3['oldValue']+')'};}}}}class bt extends _0x2b2f8b{['afterInit'](){const _0x5f3aae=this['editor'];if(!_0x5f3aae['plugins']['has']('PageBreakEditing'))return;_0x5f3aae['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4fa5b6=_0x5f3aae['plugins']['get']('TrackChangesEditing'),_0x34c8d2=_0x5f3aae['locale'];_0x4fa5b6['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ccc27=>o(_0x34c8d2,'ELEMENT_PAGE_BREAK',_0x4ccc27));}}class yt extends _0x2b2f8b{['afterInit'](){const _0x35534c=this['editor'];if(!_0x35534c['plugins']['has']('Paragraph'))return;const _0x263aca=_0x35534c['locale'],_0x146b62=_0x35534c['plugins']['get']('TrackChangesEditing');_0x146b62['descriptionFactory']['registerElementLabel']('paragraph',_0x332738=>o(_0x263aca,'ELEMENT_PARAGRAPH',_0x332738)),_0x146b62['enableDefaultAttributesIntegration']('paragraph'),_0x146b62['enableCommand']('insertParagraph');const _0x34bc93=_0x146b62['descriptionFactory'];_0x34bc93['registerDescriptionCallback'](_0x5ac3c6=>{if('insertion'!==_0x5ac3c6['type'])return;const {start:_0x5e9732,end:_0x5e3041}=_0x5ac3c6['getFirstRange']();if(!_0x5e9732['isTouching'](_0x5e3041)||!_0x5e9732['nodeAfter'])return;const _0x40fb54=_0x35534c['model']['schema'],_0x4d8d4c=_0x5e9732['nodeAfter'];return _0x40fb54['isBlock'](_0x4d8d4c)&&!_0x40fb54['isLimit'](_0x4d8d4c)&&_0x40fb54['checkChild'](_0x4d8d4c,'$text')?{'type':'insertion','content':o(_0x263aca,'*Insert:*\x20%0',_0x34bc93['getItemLabel'](_0x4d8d4c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f3994=this['editor'],_0x75a349=_0x3f3994['locale'];_0x3f3994['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c7acc=>{if('formatBlock'!=_0x3c7acc['type'])return;const {data:_0x473035}=_0x3c7acc;return _0x473035&&'paragraph'==_0x473035['commandName']?{'type':'format','content':o(_0x75a349,'*Change\x20to:*\x20%0',o(_0x75a349,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2b2f8b{['afterInit'](){const _0x1d113c=this['editor'];_0x1d113c['commands']['get']('replaceSource')&&_0x1d113c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2b2f8b{['afterInit'](){const _0x13a8d6=this['editor'];if(!_0x13a8d6['plugins']['has']('RemoveFormatEditing'))return;_0x13a8d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36a59c=this['editor'];_0x36a59c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401d67=>{if('formatBlock'!=_0x401d67['type']&&'formatInline'!=_0x401d67['type'])return;const {data:_0x41e6b9}=_0x401d67;return _0x41e6b9&&'removeFormat'==_0x41e6b9['commandName']?{'type':'format','content':o(_0x36a59c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2b2f8b{['afterInit'](){const _0x376892=this['editor'];if(!_0x376892['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x157751=_0x376892['plugins']['get']('TrackChangesEditing');_0x157751['enableCommand']('goToPreviousRestrictedEditingException'),_0x157751['enableCommand']('goToNextRestrictedEditingException');const _0x3323d8=_0x376892['plugins']['get']('RestrictedEditingModeEditing');_0x3323d8['enableCommand']('trackChanges'),_0x3323d8['enableCommand']('acceptSuggestion'),_0x3323d8['enableCommand']('discardSuggestion'),_0x3323d8['enableCommand']('acceptAllSuggestions'),_0x3323d8['enableCommand']('discardAllSuggestions'),_0x3323d8['enableCommand']('acceptSelectedSuggestions'),_0x3323d8['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2b2f8b{['afterInit'](){const _0x2f7e71=this['editor'];if(!_0x2f7e71['plugins']['has']('ShiftEnter'))return;const _0x2c5448=_0x2f7e71['plugins']['get']('TrackChangesEditing');_0x2c5448['enableCommand']('shiftEnter'),_0x2c5448['descriptionFactory']['registerElementLabel']('softBreak',_0x242590=>o(_0x2f7e71['locale'],'ELEMENT_LINE_BREAK',_0x242590));}}function an(_0x23ba27,_0x38b562,_0x40e2bd){const _0xd7bf02=[];for(const _0x2925f8 of _0x38b562['getItems']())_0x2925f8['hasAttribute'](_0x23ba27)&&_0xd7bf02['push'](_0x40e2bd['createRangeOn'](_0x2925f8));return _0xd7bf02;}class _t extends _0x2b2f8b{['afterInit'](){const _0x43685b=this['editor'],_0x5308f8=_0x43685b['plugins']['get']('TrackChangesEditing');_0x43685b['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5308f8['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2b9e2f=this['editor'],_0x5a931c=_0x2b9e2f['model'],_0x48d778=_0x2b9e2f['locale'],_0x57147f=_0x2b9e2f['plugins']['get']('TrackChangesEditing'),_0x36c58b='restrictedEditingException',_0x5e9a82=_0x2b9e2f['commands']['get'](_0x36c58b);_0x57147f['enableCommand'](_0x36c58b,(_0x4620fd,_0x378e6b={})=>{const _0x515feb=_0x5a931c['document']['selection'];if(_0x515feb['isCollapsed'])return void _0x4620fd(_0x378e6b);const _0x149f93=void 0x0!==_0x378e6b['forceValue']?_0x378e6b['forceValue']:!_0x5e9a82['value'];_0x5a931c['change'](()=>{const _0x14fd59=Array['from'](_0x515feb['getRanges']());for(const _0x252f6e of _0x14fd59){const _0x2158b7=_0x149f93?[_0x252f6e]:an(_0x36c58b,_0x252f6e,_0x5a931c);for(const _0x213994 of _0x2158b7)_0x57147f['markInlineFormat'](_0x213994,{'commandName':_0x36c58b,'commandParams':[{'forceValue':_0x149f93}]});}});}),_0x57147f['descriptionFactory']['registerDescriptionCallback'](_0x32cd9c=>{if('formatBlock'!=_0x32cd9c['type']&&'formatInline'!=_0x32cd9c['type'])return;const {data:_0x1bb64c}=_0x32cd9c;return _0x1bb64c&&_0x1bb64c['commandName']==_0x36c58b?_0x1bb64c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48d778,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x48d778,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4f3068=this['editor'],_0x622403=_0x4f3068['locale'],_0x40a4e7=_0x4f3068['plugins']['get']('TrackChangesEditing'),_0x11c1c7='restrictedEditingExceptionBlock',_0x253f71=this['editor']['commands']['get'](_0x11c1c7);_0x40a4e7['enableCommand'](_0x11c1c7,(_0x1dd52c,_0x485a65={})=>{const _0x278f9a=this['editor']['model']['document']['selection'],_0x4e3bb9=_0x485a65&&void 0x0!==_0x485a65['forceValue']?_0x485a65['forceValue']:!_0x253f71['value'];let _0x53682f=[];if(_0x4e3bb9){const _0x198101=Array['from'](_0x278f9a['getSelectedBlocks']())['filter'](_0x322a6d=>function(_0x335a11){return!!_0x335a11['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x322a6d)||function(_0xe83f3e,_0x5b370b){const _0x56997c=_0x5b370b['createContext'](_0xe83f3e['parent']);if(!_0x5b370b['checkChild'](_0x56997c,'restrictedEditingException'))return!0x1;if(!_0x5b370b['checkChild'](_0x56997c['push']('restrictedEditingException'),_0xe83f3e))return!0x1;return!0x0;}(_0x322a6d,this['editor']['model']['schema']));_0x53682f=to(_0x198101,_0x4f3068['model']);}else{const _0x8c08f4=Array['from'](_0x278f9a['getSelectedBlocks']())['map'](_0x294ef7=>function(_0x4f67cf){let _0x22263c=_0x4f67cf;for(;_0x22263c['parent'];){if('restrictedEditingException'==_0x22263c['parent']['name'])return _0x22263c;_0x22263c=_0x22263c['parent'];}return null;}(_0x294ef7))['filter'](_0x45d081=>!!_0x45d081);_0x53682f=to(_0x8c08f4,_0x4f3068['model']);}_0x4f3068['model']['change'](()=>{for(const _0x23787e of _0x53682f)_0x40a4e7['markBlockFormat'](_0x23787e,{'commandName':_0x11c1c7,'commandParams':[{'forceValue':_0x4e3bb9}]});});}),_0x40a4e7['descriptionFactory']['registerDescriptionCallback'](_0x4fc753=>{const {data:_0x27f005}=_0x4fc753;if(_0x27f005&&_0x27f005['commandName']==_0x11c1c7)return _0x27f005['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x622403,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x622403,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2b2f8b{['afterInit'](){const _0x3d8e48=this['editor'];if(!_0x3d8e48['plugins']['has']('Style')||!_0x3d8e48['plugins']['has']('DataSchema'))return;const _0x2a9141=_0x3d8e48['plugins']['get']('TrackChangesEditing'),_0x526d0b=_0x3d8e48['locale'],_0x2227fe=_0x3d8e48['config']['get']('style')||{},_0x2a477d=_0x3d8e48['plugins']['get']('GeneralHtmlSupport'),_0x1cc83a=_0x3d8e48['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3d8e48['plugins']['get']('DataSchema'),_0x2227fe['definitions']);_0x2a9141['enableDefaultAttributesIntegration']('style');const _0x24cdc5=new Set();for(const _0x1c9617 of _0x1cc83a['block']){const _0x52952c=_0x2a477d['getGhsAttributeNameForElement'](_0x1c9617['element']);_0x24cdc5['add'](_0x52952c);}const _0x595765=new Set();for(const _0x49b4c9 of _0x1cc83a['inline']){const _0x558194=_0x2a477d['getGhsAttributeNameForElement'](_0x49b4c9['element']);_0x595765['add'](_0x558194);for(const _0x440023 of _0x49b4c9['ghsAttributes'])_0x595765['add'](_0x440023);}for(const _0x2ad310 of _0x24cdc5)_0x2a9141['descriptionFactory']['registerAttributeLabel'](_0x2ad310,o(_0x526d0b,'FORMAT_STYLE'));for(const _0x3ac1f4 of _0x595765)_0x2a9141['descriptionFactory']['registerAttributeLabel'](_0x3ac1f4,o(_0x526d0b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3233f9=this['editor'],_0xc721d7=_0x3233f9['locale'];_0x3233f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14384e=>{if('formatBlock'!=_0x14384e['type']&&'formatInline'!=_0x14384e['type'])return;const {data:_0x522bf4}=_0x14384e;return _0x522bf4&&'style'===_0x522bf4['commandName']?_0x522bf4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc721d7,'*Set\x20format:*\x20%0',_0x522bf4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc721d7,'*Remove\x20format:*\x20%0',_0x522bf4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2b2f8b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x440367){super(_0x440367),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x139759=this['editor'],_0x169d72=_0x139759['model']['document']['selection'];if(!_0x139759['plugins']['has']('TableEditing'))return;const _0x5178ea=_0x139759['locale'],_0x35fb5f=_0x139759['plugins']['get']('TrackChangesEditing'),_0x5b52b0=_0x139759['plugins']['get']('TableUtils');_0x35fb5f['descriptionFactory']['registerElementLabel']('table',_0x32d115=>o(_0x5178ea,'ELEMENT_TABLE',_0x32d115)),this['_setupColumnsRowsFixing'](),_0x35fb5f['enableCommand']('insertTable'),_0x35fb5f['enableCommand']('selectTableRow'),_0x35fb5f['enableCommand']('selectTableColumn');for(const _0x2d4919 of['insertTableRowAbove','insertTableRowBelow']){const _0x1f626c=_0x139759['commands']['get'](_0x2d4919);_0x35fb5f['enableCommand'](_0x2d4919,_0x3652ae=>{_0x139759['model']['change'](_0x80b6e8=>{_0x3652ae();const _0x36503e='above'===_0x1f626c['order'],_0x3be2ba=_0x5b52b0['getSelectionAffectedTableCells'](_0x169d72),_0x5900b9=_0x5b52b0['getRowIndexes'](_0x3be2ba),_0x68282f=_0x36503e?_0x5900b9['first']-0x1:_0x5900b9['last']+0x1,_0x493d83=_0x3be2ba[0x0]['findAncestor']('table'),_0x4e83b9=_0x5b52b0['createTableWalker'](_0x493d83,{'startRow':_0x68282f,'endRow':_0x68282f}),_0x19372f=Array['from'](_0x4e83b9)['map'](_0x5f1b89=>_0x80b6e8['createRangeOn'](_0x5f1b89['cell']));_0x35fb5f['markMultiRangeInsertion'](_0x19372f,'tableRow');});});}for(const _0x54c341 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3af83e=_0x139759['commands']['get'](_0x54c341);_0x35fb5f['enableCommand'](_0x54c341,_0x35fd0c=>{_0x139759['model']['change'](_0x1c4d05=>{_0x35fd0c();const _0x3adc19='left'===_0x3af83e['order'],_0x49ea15=_0x5b52b0['getSelectionAffectedTableCells'](_0x169d72),_0x7f47a7=_0x5b52b0['getColumnIndexes'](_0x49ea15),_0x38d244=_0x3adc19?_0x7f47a7['first']-0x1:_0x7f47a7['last']+0x1,_0x276ded=_0x49ea15[0x0]['findAncestor']('table'),_0x8396b8=_0x5b52b0['createTableWalker'](_0x276ded,{'startRow':0x0,'column':_0x38d244,'includeAllSlots':!0x1}),_0x374e53=Array['from'](_0x8396b8)['map'](_0x57fd7c=>_0x1c4d05['createRangeOn'](_0x57fd7c['cell']));_0x35fb5f['markMultiRangeInsertion'](_0x374e53,'tableColumn');});});}for(const _0x43bd52 of['removeTableRow','removeTableColumn']){const _0x219d0d=_0x43bd52['substr'](0xb),_0x199ff6=_0x219d0d['toLowerCase'](),_0x5dbf7b=_0x199ff6['substr'](0x0,0x3)+'span',_0x26bd7a='table'+_0x219d0d,_0x5ab8bb='min'+_0x219d0d,_0x321067='max'+_0x219d0d;_0x35fb5f['enableCommand'](_0x43bd52,()=>{_0x139759['model']['change'](_0x295cce=>{const _0x4e486d=_0x5b52b0['getSelectionAffectedTableCells'](_0x169d72),_0x407a79=_0x4e486d[0x0]['findAncestor']('table');let _0x19d03a;if('removeTableRow'==_0x43bd52){const _0x5c236e=_0x5b52b0['getRowIndexes'](_0x4e486d);_0x19d03a={'startRow':_0x5c236e['first'],'endRow':_0x5c236e['last'],'includeAllSlots':!0x0};}else{const _0x5d4316=_0x5b52b0['getColumnIndexes'](_0x4e486d);_0x19d03a={'startColumn':_0x5d4316['first'],'endColumn':_0x5d4316['last'],'includeAllSlots':!0x0};}const _0x414148=_0x5b52b0['createTableWalker'](_0x407a79,_0x19d03a),_0x463332=Array['from'](_0x414148)['map'](({cell:_0x1ad15c})=>_0x1ad15c),_0x502142=_e(_0x463332['filter'](_0x1a3ac4=>_0x1a3ac4['hasAttribute'](_0x5dbf7b))),_0x5755de=_e(_0x463332['filter'](_0x3dde8d=>!_0x3dde8d['hasAttribute'](_0x5dbf7b)))['map'](_0x294a1d=>_0x295cce['createRangeOn'](_0x294a1d)),_0x5622bf=_0x35fb5f['markMultiRangeDeletion'](_0x5755de,_0x26bd7a);if(_0x5622bf&&('tableRow'==_0x5622bf['subType']||'tableColumn'==_0x5622bf['subType'])){const _0x38f6ff=this['_getSuggestionCoords'](_0x5622bf);for(const _0x217c5c of _0x502142){const _0x232b3e=_0x295cce['createRangeOn'](_0x217c5c),_0x5ec9ac=_0x5b52b0['getCellLocation'](_0x217c5c),_0xd9fd89=_0x217c5c['getAttribute'](_0x5dbf7b)-0x1,_0x3e97d4=_0x38f6ff[_0x5ab8bb],_0x47772e=_0x38f6ff[_0x321067];_0x3e97d4<=_0x5ec9ac[_0x199ff6]&&_0x5ec9ac[_0x199ff6]+_0xd9fd89<=_0x47772e&&_0x5622bf['addRange'](_0x232b3e);}}});});}function _0x5d0d64(_0x21d410){const _0x326495=Array['from'](_0x169d72['getRanges']())['map'](_0x24d19c=>_0xf26ff5['fromRange'](_0x24d19c));_0x139759['model']['change'](_0x5e058a=>{const _0x551198=_0x5e058a['batch'];_0x21d410=_0x21d410['filter'](_0x508726=>'$graveyard'!=_0x508726['root']['rootName']),_0x5e058a['setSelection'](_0x21d410),_0x139759['commands']['get']('removeTableRow')['refresh'](),_0x139759['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x139759['model']['enqueueChange'](()=>{_0x139759['model']['enqueueChange'](_0x551198,_0x108755=>{const _0x1ed445=_0x326495['filter'](_0x4260fd=>'$graveyard'!=_0x4260fd['root']['rootName']);_0x1ed445['length']>0x0&&_0x108755['setSelection'](_0x1ed445);for(const _0x48e019 of _0x326495)_0x48e019['detach']();});});});}function _0x260919(_0x39237c){_0x139759['model']['change'](_0x222baa=>{const _0xe5dd47=Array['from'](_0x169d72['getRanges']())['map'](_0x5b15a2=>_0xf26ff5['fromRange'](_0x5b15a2)),_0x5ad83c=[];for(const _0x20332b of _0x39237c)for(const _0x38d4c9 of _0x20332b['getItems']({'shallow':!0x0}))_0x5ad83c['push'](_0x38d4c9);for(const _0x457cfa of _0x5ad83c)'$graveyard'!=_0x457cfa['root']['rootName']&&(_0x222baa['setSelection'](_0x222baa['createPositionAt'](_0x457cfa,0x0)),_0x139759['commands']['get']('removeTableColumn')['refresh'](),_0x139759['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c6c2e=_0xe5dd47['filter'](_0x52b202=>'$graveyard'!=_0x52b202['root']['rootName']);_0x5c6c2e['length']>0x0&&_0x222baa['setSelection'](_0x5c6c2e);for(const _0x17e861 of _0xe5dd47)_0x17e861['detach']();});}function _0x27cc9e(_0x2c3992,_0xffe84){return _0xffe84['every'](_0x4138f3=>_0x2c3992['some'](_0x33c383=>_0x33c383['end']['isEqual'](_0x4138f3['start'])||_0x4138f3['end']['isEqual'](_0x33c383['start'])));}function _0x292742(_0x5aff8a,_0x457462){return!_0x5aff8a['some'](_0x1869b2=>_0x457462['some'](_0x54d132=>_0x1869b2['isIntersecting'](_0x54d132)))&&_0x5aff8a['some'](_0x367578=>_0x457462['some'](_0x122318=>_0x367578['end']['isTouching'](_0x122318['start'])));}_0x35fb5f['descriptionFactory']['registerDescriptionCallback'](_0x371079=>{if('insertion'!=_0x371079['type']&&'deletion'!=_0x371079['type'])return;const _0x5904e8=_0x371079['getContainedElement']();if(null!=_0x5904e8&&_0x5904e8['is']('element','table')){if('insertion'==_0x371079['type']){const _0x453921=_0x371079['getItems']()['filter'](_0x2340a6=>_0x2340a6['is']('$textProxy'))['map'](_0x5cc662=>_0x5cc662['data']);if(_0x453921['length'])return{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x453921['join']('\x20')+'\x22'))};}if('deletion'==_0x371079['type']){const _0x4e6d97=_0x371079['getItems']()['filter'](_0x114623=>_0x114623['is']('$textProxy'))['map'](_0x33be17=>_0x33be17['data']);if(_0x4e6d97['length'])return{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e6d97['join']('\x20')+'\x22'))};}}}),_0x35fb5f['descriptionFactory']['registerDescriptionCallback'](_0x346a6f=>{if('tableRow'==_0x346a6f['subType']){const _0x9c8b6=_0x346a6f['getItems']()['filter'](_0x4c6698=>_0x4c6698['is']('$textProxy'))['map'](_0x3aae03=>_0x3aae03['data']),_0x4f1de0=this['_getSuggestionCoords'](_0x346a6f),_0xd347f2=_0x4f1de0['maxRow']-_0x4f1de0['minRow']+0x1;if('insertion'==_0x346a6f['type'])return _0x9c8b6['length']?{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd347f2,'\x22'+_0x9c8b6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW',_0xd347f2))};if('deletion'==_0x346a6f['type'])return _0x9c8b6['length']?{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd347f2,'\x22'+_0x9c8b6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW',_0xd347f2))};}if('tableColumn'==_0x346a6f['subType']){const _0x201181=_0x346a6f['getItems']()['filter'](_0x5751e4=>_0x5751e4['is']('$textProxy'))['map'](_0x56dacd=>_0x56dacd['data']),_0xd337c6=this['_getSuggestionCoords'](_0x346a6f),_0x57fdb0=_0xd337c6['maxColumn']-_0xd337c6['minColumn']+0x1;if('insertion'==_0x346a6f['type'])return _0x201181['length']?{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57fdb0,'\x22'+_0x201181['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN',_0x57fdb0))};if('deletion'==_0x346a6f['type'])return _0x201181['length']?{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57fdb0,'\x22'+_0x201181['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN',_0x57fdb0))};}}),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d0d64),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d0d64),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x260919),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x260919),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x27cc9e),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x27cc9e),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x292742),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x292742);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4757ef=this['editor'],_0x545a2a=_0x4757ef['model']['document']['selection'];return(_0x39e3ec,_0x27c142)=>{_0x4757ef['model']['change'](_0x414233=>{const {commandName:_0x1794ab,commandParams:_0x46fbaf}=_0x27c142;let _0x195128=_0x39e3ec[0x0]['end']['nodeBefore'];_0x46fbaf&&_0x46fbaf[0x0]&&!0x1===_0x46fbaf[0x0]['forceValue']&&(_0x195128=_0x39e3ec[0x0]['start']['nodeAfter']);const _0x441940=_0x414233['createRangeIn'](_0x195128);if('$graveyard'==_0x441940['root']['rootName'])return;const _0x188f36=Array['from'](_0x545a2a['getRanges']())['map'](_0x2ccb6f=>_0xf26ff5['fromRange'](_0x2ccb6f));_0x414233['setSelection'](_0x441940),_0x4757ef['commands']['get'](_0x1794ab)['refresh'](),_0x46fbaf['push']({'forceDefaultExecution':!0x0}),_0x4757ef['execute'](_0x1794ab,..._0x46fbaf);const _0x4e451d=_0x188f36['filter'](_0x226f5a=>'$graveyard'!=_0x226f5a['root']['rootName']);_0x4e451d['length']>0x0&&_0x414233['setSelection'](_0x4e451d);for(const _0x4e2591 of _0x188f36)_0x4e2591['detach']();});};}['_getCoordsForCells'](_0x35b35f){const _0x2658e0=this['editor']['plugins']['get']('TableUtils');let _0x7d7456=Number['MAX_SAFE_INTEGER'],_0x40a66a=Number['MIN_SAFE_INTEGER'],_0x50b098=Number['MAX_SAFE_INTEGER'],_0x23e5a7=Number['MIN_SAFE_INTEGER'];for(const _0x54cf3f of _0x35b35f){if('$graveyard'==_0x54cf3f['root']['rootName'])continue;const {row:_0x101540,column:_0x2a04a2}=_0x2658e0['getCellLocation'](_0x54cf3f),_0x4040d6=_0x54cf3f['hasAttribute']('rowspan')?_0x54cf3f['getAttribute']('rowspan')-0x1:0x0,_0x1b1a1c=_0x54cf3f['hasAttribute']('colspan')?_0x54cf3f['getAttribute']('colspan')-0x1:0x0;_0x7d7456=_0x101540<_0x7d7456?_0x101540:_0x7d7456,_0x40a66a=_0x101540+_0x4040d6>_0x40a66a?_0x101540+_0x4040d6:_0x40a66a,_0x50b098=_0x2a04a2<_0x50b098?_0x2a04a2:_0x50b098,_0x23e5a7=_0x2a04a2+_0x1b1a1c>_0x23e5a7?_0x2a04a2+_0x1b1a1c:_0x23e5a7;}return{'minRow':_0x7d7456,'maxRow':_0x40a66a,'minColumn':_0x50b098,'maxColumn':_0x23e5a7};}['_setupColumnsRowsFixing'](){const _0x15cc3e=this['editor'],_0x3197c7=_0x15cc3e['plugins']['get']('TrackChangesEditing'),_0xb7f256=_0x15cc3e['plugins']['get']('TableUtils');_0x15cc3e['model']['document']['on']('change:data',()=>{const _0x37dda2=Array['from'](_0x15cc3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ef889,data:_0x4966eb}of _0x37dda2){const {group:_0xc5e986,id:_0x537e83,subType:_0x18490f}=_0x3197c7['_splitMarkerName'](_0x4ef889);if('suggestion'!=_0xc5e986)continue;if(null!=_0x4966eb['oldRange'])continue;const _0x6572f0=_0x3197c7['getSuggestion'](_0x537e83);this['_tablePostFixingSubtypes']['includes'](_0x18490f)&&this['_tableSuggestions']['add'](_0x6572f0);}},{'priority':'low'});const _0x459e27=(_0x19387f,_0x3fb92c)=>{let _0x8d598d=!0x1;const _0x1c6626=_0x3fb92c['createRangeOn'](_0x19387f),_0x30fb35=_0x19387f['findAncestor']('table'),_0x3ff2fc=_0xb7f256['getCellLocation'](_0x19387f);for(const _0x4cb84c of this['_tableSuggestions']){const _0x2e3efe=_0x4cb84c['subType'],_0x203eaf=_0x2e3efe['startsWith']('tablePaste'),_0x411d46=_0x2e3efe['substr'](_0x203eaf?0xa:0x5),_0x352715=_0x411d46['toLowerCase'](),_0x38859b=_0x352715['substr'](0x0,0x3)+'span',_0x200f97='min'+_0x411d46,_0x4c7685='max'+_0x411d46;if(!_0x4cb84c['isInContent'])continue;if(_0x30fb35!=_0x4cb84c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4cb84c['isIntersectingWithRange'](_0x1c6626))continue;const _0x2b7310=_0x19387f['hasAttribute'](_0x38859b)?_0x19387f['getAttribute'](_0x38859b)-0x1:0x0,_0x8d99d6=this['_getSuggestionCoords'](_0x4cb84c),_0x43d073=_0x8d99d6[_0x200f97],_0x51fdc7=_0x8d99d6[_0x4c7685];_0x43d073<=_0x3ff2fc[_0x352715]&&_0x3ff2fc[_0x352715]+_0x2b7310<=_0x51fdc7&&(_0x4cb84c['addRange'](_0x1c6626),_0x8d598d=!0x0);}return _0x8d598d;};_0x15cc3e['model']['document']['registerPostFixer'](_0x2fb321=>{let _0x5f097a=!0x1;for(const _0x19c040 of _0x15cc3e['model']['document']['differ']['getChanges']())if('insert'==_0x19c040['type']){if('tableRow'==_0x19c040['name']){for(const _0x1dd806 of _0x19c040['position']['nodeAfter']['getChildren']())_0x5f097a=_0x5f097a||_0x459e27(_0x1dd806,_0x2fb321);}else'tableCell'==_0x19c040['name']&&(_0x5f097a=_0x5f097a||_0x459e27(_0x19c040['position']['nodeAfter'],_0x2fb321));}return _0x5f097a;});}['_getSuggestionCoords'](_0x56f80b){return this['_getCoordsForCells'](_0x56f80b['getRanges']()['map'](_0x5c4d3f=>_0x5c4d3f['start']['nodeAfter']));}}function _e(_0x4ea90e){return Array['from'](new Set(_0x4ea90e)['values']());}class $t extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x3f6b7e=this['editor'],_0x50b53a=_0x3f6b7e['model']['document']['selection'],_0xc83c66=_0x3f6b7e['locale'];if(!_0x3f6b7e['plugins']['has']('TableEditing'))return;const _0x2105b9=_0x3f6b7e['plugins']['get']('TrackChangesEditing'),_0x2ecb5c=_0x3f6b7e['plugins']['get']('TableUtils'),_0x59ee2d=_0x3f6b7e['plugins']['get'](Nt);_0x59ee2d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2105b9['enableCommand']('mergeTableCells',()=>{const _0x569a29=_0x2ecb5c['getSelectionAffectedTableCells'](_0x3f6b7e['model']['document']['selection']);_0x3f6b7e['model']['change'](()=>{_0x2105b9['markMultiRangeBlockFormat'](_0x569a29,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3f6b7e['commands']['get']('mergeTableCells')['on']('execute',(_0x11218a,_0x29e524)=>{_0x3f6b7e['commands']['get']('trackChanges')['value']&&(_0x29e524['length']>0x0&&_0x29e524[_0x29e524['length']-0x1]&&_0x29e524[_0x29e524['length']-0x1]['forceDefaultExecution']||_0x2105b9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11218a['stop']());},{'priority':'highest'});for(const _0x3870b0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x531764=_0x3f6b7e['commands']['get'](_0x3870b0);_0x2105b9['enableCommand'](_0x3870b0,()=>{const _0x2b1c7e=_0x3f6b7e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x27c34d=>_0x27c34d['is']('element','tableCell')),_0x54ef1d=_0x531764['value'];_0x3f6b7e['model']['change'](()=>{_0x2105b9['markMultiRangeBlockFormat']([_0x2b1c7e,_0x54ef1d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x478885 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3ad8d1=_0x3f6b7e['commands']['get'](_0x478885);_0x2105b9['enableCommand'](_0x478885,()=>{const _0x48634f=_0x2ecb5c['getSelectionAffectedTableCells'](_0x3f6b7e['model']['document']['selection'])[0x0],_0x3a5413=_0x48634f['findAncestor']('table'),{column:_0x4b0228,row:_0x550a5e}=_0x2ecb5c['getCellLocation'](_0x48634f);let _0x21d0e5=[];if('horizontally'==_0x3ad8d1['direction']){const _0x197131=_0x2ecb5c['createTableWalker'](_0x3a5413,{'startRow':_0x550a5e,'endRow':_0x550a5e,'includeAllSlots':!0x0});_0x21d0e5=Array['from'](_0x197131)['map'](_0xb7b45a=>_0xb7b45a['cell']);}else{const _0x4484cf=_0x2ecb5c['createTableWalker'](_0x3a5413,{'column':_0x4b0228,'includeAllSlots':!0x0});_0x21d0e5=Array['from'](_0x4484cf)['map'](_0x354af7=>_0x354af7['cell']);}_0x3f6b7e['model']['change'](_0x44b685=>{_0x2105b9['markBlockFormat'](_0x44b685['createRangeOn'](_0x48634f),{'commandName':_0x478885,'commandParams':[]},_0x21d0e5,_0x478885);});});}_0x2105b9['descriptionFactory']['registerDescriptionCallback'](_0x559cc0=>{if('formatBlock'!=_0x559cc0['type']&&'formatInline'!=_0x559cc0['type'])return;const {data:_0x1d869a}=_0x559cc0;return _0x1d869a&&'mergeTableCells'==_0x1d869a['commandName']?{'type':'format','content':o(_0xc83c66,'*Merge\x20cells*')}:void 0x0;}),_0x2105b9['descriptionFactory']['registerDescriptionCallback'](_0x5174cc=>{if('formatBlock'!=_0x5174cc['type']&&'formatInline'!=_0x5174cc['type'])return;const {data:_0x1a9230}=_0x5174cc;return _0x1a9230?'splitTableCellVertically'==_0x1a9230['commandName']?{'type':'format','content':o(_0xc83c66,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1a9230['commandName']?{'type':'format','content':o(_0xc83c66,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xcc77d6=_0x59ee2d['_acceptFormatSuggestionCallbackFactory']();for(const _0x54bf39 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2105b9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54bf39,'accept',_0xcc77d6);for(const _0x3075fb of['splitTableCellVertically','splitTableCellHorizontally'])_0x2105b9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3075fb,'accept',_0xcc77d6);_0x2105b9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x51d6c1=>{_0x3f6b7e['model']['change'](_0x9c3719=>{const _0x4ba1cc=Array['from'](_0x50b53a['getRanges']())['map'](_0x3fffd3=>_0xf26ff5['fromRange'](_0x3fffd3));_0x9c3719['setSelection'](_0x51d6c1),_0x3f6b7e['commands']['get']('mergeTableCells')['refresh'](),_0x3f6b7e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x18f3f8=_0x4ba1cc['filter'](_0x131dc4=>'$graveyard'!=_0x131dc4['root']['rootName']);_0x18f3f8['length']>0x0&&_0x9c3719['setSelection'](_0x18f3f8);for(const _0x2dbf7d of _0x4ba1cc)_0x2dbf7d['detach']();});});for(const _0x221e3c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2b2ad4=_0x3f6b7e['commands']['get'](_0x221e3c);_0x2b2ad4['on']('set:isEnabled',(_0x27e02c,_0x56d647,_0x361d28)=>{if(_0x361d28){const _0x6de21b=_0x3f6b7e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x592460=>_0x592460['is']('element','tableCell'));this['_areMergableCells'](_0x2b2ad4['value'],_0x6de21b)||(_0x27e02c['return']=!0x1,_0x27e02c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x421c4f=this['editor']['commands']['get']('mergeTableCells'),_0x9d79c6=this['editor']['plugins']['get']('TableUtils');if(!_0x421c4f['isEnabled'])return!0x1;const _0x3f23c7=_0x9d79c6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5375cb of _0x3f23c7)for(const _0x30f3b2 of _0x3f23c7)if(_0x5375cb!=_0x30f3b2&&!this['_areMergableCells'](_0x5375cb,_0x30f3b2))return!0x1;return!0x0;}['_areMergableCells'](_0x3c7757,_0x5b1e31){const _0x2f9661=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14a5c6=this['editor']['model']['createRangeOn'](_0x3c7757),_0x175e76=this['editor']['model']['createRangeOn'](_0x5b1e31),_0xb8df3f=new Set(),_0x15d91c=new Set();for(const _0x5872c7 of _0x2f9661['getSuggestions']())if(('insertion'==_0x5872c7['type']||'deletion'==_0x5872c7['type']||'mergeTableCells'==_0x5872c7['subType'])&&_0x5872c7['isInContent']){for(const _0x3baf30 of _0x5872c7['getRanges']())_0x3baf30['containsRange'](_0x14a5c6,!0x0)&&_0xb8df3f['add'](_0x5872c7['type']+':'+_0x5872c7['author']['id']),_0x3baf30['containsRange'](_0x175e76,!0x0)&&_0x15d91c['add'](_0x5872c7['type']+':'+_0x5872c7['author']['id']);}if(_0xb8df3f['size']!=_0x15d91c['size'])return!0x1;for(const _0x314c7d of _0xb8df3f)if(!_0x15d91c['has'](_0x314c7d))return!0x1;return!0x0;}}class vt extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x4f082d=this['editor'];if(!_0x4f082d['plugins']['has']('TableEditing'))return;const _0x168033=_0x4f082d['locale'],_0x233c1f=_0x4f082d['plugins']['get']('TrackChangesEditing');_0x233c1f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x233c1f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x233c1f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x168033,'FORMAT_HEADER_ROW')),_0x233c1f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x168033,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x466f5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d41da=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x466f5c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1d41da),_0x466f5c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1d41da),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x55f18b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x349cf5=this['editor']['plugins']['get']('TableUtils');function _0x30c54a({showActiveMarker:_0x4f94c1=!0x0,setDataAttribute:_0x2b25a6=!0x0}={}){return(_0x3b65f8,_0x436920,_0x29e24f)=>{const {type:_0x1bfafc,id:_0x36b809}=_0x55f18b['_splitMarkerName'](_0x436920['markerName']);if(!_0x55f18b['hasSuggestion'](_0x36b809))return;const _0x2ececb=_0x55f18b['getSuggestion'](_0x36b809),_0x335986=_0x2ececb['data'];if('formatBlock'!=_0x2ececb['type']||!_0x335986||'setTableColumnHeader'!=_0x335986['commandName'])return;if(_0x436920['item'])return void _0x3b65f8['stop']();if(!_0x29e24f['consumable']['consume'](_0x436920['markerRange'],_0x3b65f8['name']))return;const _0x49ab77=_0x436920['markerRange']['start']['nodeAfter'],_0x4be105=_0x436920['markerRange']['end']['nodeBefore'],_0x4fa0ab=_0x49ab77['parent']['parent'],{column:_0x4553c5}=_0x349cf5['getCellLocation'](_0x49ab77),{column:_0x467b09}=_0x349cf5['getCellLocation'](_0x4be105);for(let _0x1a2c7c=_0x4553c5;_0x1a2c7c<=_0x467b09;_0x1a2c7c++){const _0x5804ea=_0x349cf5['createTableWalker'](_0x4fa0ab,{'column':_0x1a2c7c,'includeAllSlots':!0x1});for(const _0x12ff03 of _0x5804ea){const _0x265a86=_0x12ff03['cell'],_0xc70049=_0x29e24f['mapper']['toViewElement'](_0x265a86);_0x29e24f['writer']['addClass']('ck-suggestion-marker-'+_0x1bfafc,_0xc70049),_0x2b25a6&&_0x29e24f['writer']['setAttribute']('data-suggestion',_0x36b809,_0xc70049),_0x29e24f['mapper']['bindElementToMarker'](_0xc70049,_0x436920['markerName']),_0x4f94c1&&(_0x55f18b['activeMarkers']['includes'](_0x436920['markerName'])?_0x29e24f['writer']['addClass']('ck-suggestion-marker--active',_0xc70049):_0x29e24f['writer']['removeClass']('ck-suggestion-marker--active',_0xc70049));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30c54a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7e1576,_0x34affe,_0x15fdb0)=>{_0x15fdb0['options']['showSuggestionHighlights']&&_0x30c54a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7e1576,_0x34affe,_0x15fdb0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x443624,_0x51e256,_0x51b0c9)=>{const {type:_0x176955,id:_0x32a33a}=_0x55f18b['_splitMarkerName'](_0x51e256['markerName']);if(!_0x55f18b['hasSuggestion'](_0x32a33a))return;const _0x392b9e=_0x55f18b['getSuggestion'](_0x32a33a),_0x1adea2=_0x392b9e['data'];if('formatBlock'!=_0x392b9e['type']||!_0x1adea2||'setTableColumnHeader'!=_0x1adea2['commandName'])return;const _0x2fb78c=_0x51b0c9['mapper']['markerNameToElements'](_0x51e256['markerName']);if(_0x2fb78c){for(const _0x2e1277 of _0x2fb78c)_0x51b0c9['writer']['removeClass']('ck-suggestion-marker-'+_0x176955,_0x2e1277),_0x51b0c9['writer']['removeClass']('ck-suggestion-marker--active',_0x2e1277),_0x51b0c9['writer']['removeAttribute']('data-suggestion',_0x2e1277),_0x51b0c9['mapper']['unbindElementFromMarkerName'](_0x2e1277,_0x51e256['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5e2d3d=this['editor'],_0x51bba9=_0x5e2d3d['locale'];function _0x5c6195(_0x368d58){return{'type':'format','content':o(_0x51bba9,'*Format:*\x20%0',_0x368d58)};}_0x5e2d3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e88e0=>{if('formatBlock'!=_0x2e88e0['type'])return;const {data:_0x143312}=_0x2e88e0;if(_0x143312){if('setTableRowHeader'==_0x143312['commandName']){const _0x4444cb=_0x143312['commandParams'][0x0]['forceValue'];return _0x5c6195(o(_0x51bba9,_0x4444cb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x143312['commandName']){const _0x80013a=_0x143312['commandParams'][0x0]['forceValue'];return _0x5c6195(o(_0x51bba9,_0x80013a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2b2f8b{['afterInit'](){const _0x16dc06=this['editor'],_0x28592f=_0x16dc06['locale'],_0x3c3c3e=_0x16dc06['plugins']['get']('TrackChangesEditing');function _0x44bc3c(_0x5d3892){return{'type':'format','content':''+o(_0x28592f,'*Set\x20table\x20type:*\x20%0',_0x5d3892)};}_0x16dc06['plugins']['has']('TableLayout')&&(_0x3c3c3e['enableCommand']('insertTableLayout'),_0x3c3c3e['enableDefaultAttributesIntegration']('tableType'),_0x3c3c3e['descriptionFactory']['registerElementLabel'](_0x18a030=>_0x18a030['is']('element','table')&&'layout'===_0x18a030['getAttribute']('tableType'),_0x1fe846=>o(_0x28592f,'ELEMENT_LAYOUT_TABLE',_0x1fe846)),_0x3c3c3e['descriptionFactory']['registerDescriptionCallback'](_0x22bd7a=>{const {data:_0x912582}=_0x22bd7a;if(_0x912582&&'tableType'==_0x912582['key'])switch(_0x912582['newValue']){case'layout':return _0x44bc3c(o(_0x28592f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x44bc3c(o(_0x28592f,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x57fcb1=>[_0x57fcb1,null]));class Bt extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x43d201=this['editor'];if(!_0x43d201['plugins']['has']('TableClipboard'))return;const _0x262d7f=_0x43d201['plugins']['get']('TrackChangesEditing'),_0x2966c8=_0x43d201['plugins']['get']('TableUtils'),_0x1b31d9=_0x43d201['plugins']['get'](Nt),_0x56dbfb=_0x43d201['plugins']['get']('TableClipboard'),_0x3927b0=_0x43d201['plugins']['get']('TableSelection'),_0x736385=_0x43d201['plugins']['get'](_0x3b749b);_0x1b31d9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43d201['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43d201['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x24158a=null,_0x418230=!0x1;_0x736385['on']('contentInsertion',(_0x3ddf26,_0x578c51)=>{_0x418230='paste'===_0x578c51['method'];}),_0x43d201['model']['on']('insertContent',(_0x5ec3b0,_0x2a6bb4)=>{if(!_0x418230&&null===_0x3927b0['getSelectedTableCells']())return;const [_0x578e7f,_0x7f4b41]=_0x2a6bb4,_0x46431e=_0x2a6bb4[_0x2a6bb4['length']-0x1];_0x46431e&&_0x46431e['forceDefaultExecution']||_0x262d7f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x130654,_0x336e23,_0x37209b,_0x16cf1e,_0x23e86b){if(_0x336e23&&!_0x336e23['is']('documentSelection'))return!0x1;const _0x4939ab=_0x23e86b['getTableIfOnlyTableInContent'](_0x130654,_0x37209b);if(!_0x4939ab||!Oe(_0x4939ab,void 0x0,_0x16cf1e))return!0x1;const _0x29d5cc=_0x16cf1e['getSelectionAffectedTableCells'](_0x37209b['document']['selection']);if(!_0x29d5cc['length'])return!0x1;const _0x1012ee=_0x29d5cc[0x0]['findAncestor']('table'),_0x105bbf=_0x16cf1e['getRowIndexes'](_0x29d5cc),_0xe4fba8=_0x16cf1e['getColumnIndexes'](_0x29d5cc),_0x35e892={'startRow':_0x105bbf['first'],'endRow':_0x105bbf['last'],'startColumn':_0xe4fba8['first'],'endColumn':_0xe4fba8['last']};return 0x1==_0x29d5cc['length']&&(_0x35e892['endRow']+=_0x16cf1e['getRows'](_0x4939ab)-0x1,_0x35e892['endColumn']+=_0x16cf1e['getColumns'](_0x4939ab)-0x1),Oe(_0x1012ee,_0x35e892,_0x16cf1e);}(_0x578e7f,_0x7f4b41,_0x43d201['model'],_0x2966c8,_0x56dbfb)&&(_0x5ec3b0['stop'](),_0x24158a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43d201['model']['change'](()=>{_0x43d201['model']['insertContent'](_0x2a6bb4[0x0],_0x2a6bb4[0x1],_0x2a6bb4[0x2],{'forceDefaultExecution':!0x0});const _0x48fe44=_0x8ed52d(),{rowInsertionRanges:_0x3fe5c2,columnInsertionRanges:_0x590d21,insertionRanges:_0x22e826,deletionRanges:_0x256682,cells:_0x5803ce}=_0x24158a;_0x3fe5c2['length']&&_0x262d7f['markMultiRangeInsertion'](_0x3fe5c2,'tablePasteRow',{'tablePasteChainId':_0x48fe44}),_0x590d21['length']&&_0x262d7f['markMultiRangeInsertion'](_0x590d21,'tablePasteColumn',{'tablePasteChainId':_0x48fe44}),_0x22e826['length']&&(_0x262d7f['markMultiRangeInsertion'](_0x22e826,'tablePaste',{'tablePasteChainId':_0x48fe44,'skipNestingCheck':!0x0}),_0x22e826['forEach'](_0x4dd7eb=>_0x4dd7eb['detach']?.())),_0x256682['length']&&(_0x262d7f['markMultiRangeDeletion'](_0x256682,'tablePaste',{'tablePasteChainId':_0x48fe44,'skipNestingCheck':!0x0}),_0x256682['forEach'](_0x2931d9=>_0x2931d9['detach']?.()));const _0x233495=_0x262d7f['markMultiRangeBlockFormat'](_0x5803ce['map'](({element:_0x2d356b})=>_0x2d356b),{'formatGroupId':_0x8ed52d()},[],'tablePasteCell',{'tablePasteChainId':_0x48fe44});if(_0x233495){const _0x19c1fe=_0x233495['getMarkers'](),_0x3a4a97=[];for(const {element:_0x1bf4a9,attributes:_0x4f981a}of _0x5803ce){if(!_0x4f981a)continue;const _0x4af79a=_0x43d201['model']['createRangeOn'](_0x1bf4a9),_0x4f99ae=_0x19c1fe['find'](_0x182721=>_0x182721['getRange']()['isEqual'](_0x4af79a));_0x4f99ae&&_0x3a4a97['push']([_0x4f99ae['name'],_0x4f981a]);}_0x3a4a97['length']&&_0x233495['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a4a97));}_0x24158a=null;}));},{'priority':_0x2ea691['high']+0xa}),_0x736385['on']('contentInsertion',()=>{_0x418230=!0x1;},{'priority':'lowest'}),_0x43d201['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x490db7,_0xe26253)=>{const [_0x319403,_0x49f46b,,_0x59ca65]=_0xe26253;if(!_0x24158a)return;_0x490db7['stop']();const _0x1b33d3=_0x319403['cell'],_0x2b09b4=_0x49f46b,_0x26dc7c=Be(_0x1b33d3),_0xb6f368=Be(_0x2b09b4);_0x490db7['return']=_0x1b33d3;let _0x56270f=null,_0x14a27f=null;if(_0xb6f368||_0x26dc7c){if(_0x26dc7c&&!_0xb6f368){_0x59ca65['remove'](_0x1b33d3['getChild'](0x0));for(const _0xd02e68 of Array['from'](_0x2b09b4['getChildren']()))_0x59ca65['insert'](_0xd02e68,_0x1b33d3,'end');const _0x45ad28=_0x24158a['rowInsertionIndexes']['includes'](_0x319403['row']),_0x589685=_0x24158a['columnInsertionIndexes']['includes'](_0x319403['column']);_0x45ad28||_0x589685||(_0x56270f=_0xf26ff5['fromRange'](_0x59ca65['createRangeIn'](_0x1b33d3)));}else _0xb6f368&&!_0x26dc7c&&(_0x14a27f=_0x59ca65['createRangeIn'](_0x1b33d3));}else{const _0x255e6e=_0x59ca65['createElement']('tableCellSuggestion'),_0x5256ad=_0x59ca65['createElement']('tableCellSuggestion');_0x59ca65['wrap'](_0x59ca65['createRangeIn'](_0x1b33d3),_0x5256ad),_0x59ca65['insert'](_0x255e6e,_0x1b33d3,0x0);for(const _0x3ccb28 of Array['from'](_0x2b09b4['getChildren']()))_0x59ca65['insert'](_0x3ccb28,_0x255e6e,'end');_0x56270f=_0xf26ff5['fromRange'](_0x59ca65['createRangeOn'](_0x255e6e)),_0x14a27f=_0xf26ff5['fromRange'](_0x59ca65['createRangeOn'](_0x5256ad));}const _0x53af2c=Array['from'](_0x2b09b4['getAttributes']())['filter'](([_0x1bcc0d])=>Re['includes'](_0x1bcc0d));_0x24158a['cells']['push']({'element':_0x1b33d3,'attributes':_0x53af2c['length']?Object['fromEntries'](_0x53af2c):null}),_0x56270f&&_0x24158a['insertionRanges']['push'](_0x56270f),_0x14a27f&&_0x24158a['deletionRanges']['push'](_0x14a27f);},{'priority':'high'}),_0x2966c8['on']('insertColumns',(_0x238346,_0x3b70a5)=>{const [_0x233f47,_0x94dbab={}]=_0x3b70a5;if(!_0x24158a)return;const _0x29810c=_0x94dbab['at']||0x0,_0x2f8de6=_0x94dbab['columns']||0x1;_0x24158a['columnInsertionIndexes']=new Array(_0x2f8de6)['fill'](_0x29810c)['map']((_0x496944,_0x5b7168)=>_0x496944+_0x5b7168);for(const {cell:_0x42167f}of _0x2966c8['createTableWalker'](_0x233f47,{'startColumn':_0x29810c,'endColumn':_0x29810c+_0x2f8de6-0x1}))_0x24158a['columnInsertionRanges']['push'](_0x43d201['model']['createRangeOn'](_0x42167f));},{'priority':'low'}),_0x2966c8['on']('insertRows',(_0x80d05e,_0x44be22)=>{const [_0x3f8ba9,_0x4f7991={}]=_0x44be22;if(!_0x24158a)return;const _0x13d993=_0x4f7991['at']||0x0,_0x11d99d=_0x4f7991['rows']||0x1;_0x24158a['rowInsertionIndexes']=new Array(_0x11d99d)['fill'](_0x13d993)['map']((_0x4c059e,_0x651520)=>_0x4c059e+_0x651520);for(const {cell:_0x4f012a}of _0x2966c8['createTableWalker'](_0x3f8ba9,{'startRow':_0x13d993,'endRow':_0x13d993+_0x11d99d-0x1}))_0x24158a['rowInsertionRanges']['push'](_0x43d201['model']['createRangeOn'](_0x4f012a));},{'priority':'low'}),_0x262d7f['descriptionFactory']['registerDescriptionCallback'](_0x17cb9e=>{if(_0x17cb9e['subType']&&_0x17cb9e['subType']['startsWith']('tablePaste'))return _0x17cb9e['previous']?{}:{'type':'insertion','content':o(_0x43d201['locale'],'*Replace\x20table\x20cells*')};});const _0x32b493=()=>!0x1;for(const _0x264dfe of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x262d7f['_suggestionFactory']['registerCustomCallback']('insertion',_0x264dfe,'join',_0x32b493),_0x262d7f['_suggestionFactory']['registerCustomCallback']('deletion',_0x264dfe,'join',_0x32b493),_0x262d7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x264dfe,'join',_0x32b493);_0x262d7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x32b493),_0x262d7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x991fa0,_0xe15f5d,_0xf10be3)=>{const _0x14d7c1=_0x991fa0['map'](_0x27ceea=>_0x27ceea['getContainedElement']())['filter'](_0x6fcc6c=>_0x6fcc6c),_0x92e441=new Map(_0x14d7c1['map'](_0x212c5a=>[_0x212c5a,null]));if(_0x24158a){for(const {element:_0x42ca63,attributes:_0x41bee8}of _0x24158a['cells'])_0x41bee8&&_0x92e441['set'](_0x42ca63,_0x41bee8);}else{if(_0xf10be3&&_0xf10be3['markerAttributes'])for(const [_0x3e653e,_0x4441a8]of Object['entries'](_0xf10be3['markerAttributes'])){const _0x2c5e16=_0x43d201['model']['markers']['get'](_0x3e653e),_0x223a67=_0x2c5e16?_0x2c5e16['getRange']()['getContainedElement']():null;_0x223a67&&_0x92e441['set'](_0x223a67,_0x4441a8);}}_0x43d201['model']['change'](_0x7e6664=>{for(const [_0x885b53,_0x41cc71]of _0x92e441)_0x7e6664['setAttributes']({...Ae,..._0x41cc71},_0x885b53);});});const _0x3f0e31=(_0x25fece,_0x1bd0ce)=>{_0x262d7f['_suggestionFactory']['registerCustomCallback'](_0x25fece,'tablePaste',_0x1bd0ce,(_0x7323f6,_0x5b4e2a,_0x107867)=>{_0x43d201['model']['change'](_0x25ed68=>{const _0x41c2ef=[];for(const _0x415b2d of _0x7323f6){const _0x2f4b13=_0x415b2d['start']['nodeAfter'];_0x2f4b13['is']('element','tableCellSuggestion')&&_0x41c2ef['push'](_0x2f4b13);}_0x262d7f['_suggestionFactory']['getSuggestionCallback'](_0x25fece,null,_0x1bd0ce)(_0x7323f6,_0x5b4e2a,_0x107867);for(const _0x1be4e0 of _0x41c2ef)'$graveyard'!=_0x1be4e0['root']['rootName']&&_0x25ed68['unwrap'](_0x1be4e0);});});};_0x3f0e31('insertion','accept'),_0x3f0e31('insertion','discard'),_0x3f0e31('deletion','accept'),_0x3f0e31('deletion','discard'),_0x262d7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x521ab2=>{const _0x584056=_0x521ab2['map'](_0x5d38e1=>_0x5d38e1['getContainedElement']()),_0x26fadd=_0x584056[0x0]['findAncestor']('table'),{minRow:_0x57b003,maxRow:_0xc9abdb}=_0x1b31d9['_getCoordsForCells'](_0x584056);_0x2966c8['removeRows'](_0x26fadd,{'at':_0x57b003,'rows':_0xc9abdb-_0x57b003+0x1});}),_0x262d7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x27dee2=>{const _0x57e6d9=_0x27dee2['map'](_0xfdd1bc=>_0xfdd1bc['getContainedElement']()),_0x3f5d98=_0x57e6d9[0x0]['findAncestor']('table'),{minColumn:_0x43985c,maxColumn:_0x1d035d}=_0x1b31d9['_getCoordsForCells'](_0x57e6d9);_0x2966c8['removeColumns'](_0x3f5d98,{'at':_0x43985c,'columns':_0x1d035d-_0x43985c+0x1});});const _0x967e92=(_0x25f549,_0x5bc91b)=>{if(!_0x5bc91b['subType']||!_0x5bc91b['subType']['startsWith']('tablePaste'))return;const _0x552bd4=_0x5bc91b['attributes']['tablePasteChainId'],_0x9a9257=_0x262d7f['getSuggestions']()['filter'](_0x91d777=>_0x91d777['isInContent']&&_0x91d777['attributes']&&_0x91d777['attributes']['tablePasteChainId']==_0x552bd4);_0x9a9257['length']&&_0x5bc91b['getAllAdjacentSuggestions']()['length']!=_0x9a9257['length']&&_0x9a9257['reduce']((_0x2c007d,_0x3ce623)=>(_0x2c007d['next']=_0x3ce623,_0x3ce623['previous']=_0x2c007d,_0x3ce623));};function _0x286b82(_0x1dc2c0,_0x22bc43=!0x0){const {id:_0x139773,authorId:_0x54a595}=_0x262d7f['_splitMarkerName'](_0x1dc2c0['markerName']),_0x2fd700=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ee83b=_0x262d7f['activeMarkers']['includes'](_0x1dc2c0['markerName']);return _0x1ee83b&&_0x2fd700['push']('ck-suggestion-marker--active'),{'classes':_0x2fd700,'attributes':{'data-suggestion':_0x139773,'data-author-id':_0x54a595},'priority':_0x1ee83b&&_0x22bc43?0xbc2:0xbb8};}_0x262d7f['on']('suggestionLoaded',_0x967e92,{'priority':'high'}),_0x262d7f['on']('suggestionUnloaded',_0x967e92,{'priority':'high'}),_0x43d201['model']['document']['registerPostFixer'](()=>{let _0x14ef2c=!0x1;const _0x2a15dd=Array['from'](_0x43d201['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cd118,data:_0x3c693f}of _0x2a15dd){const {group:_0x3e2a7e,type:_0x2c764d,id:_0x5ca42b}=_0x262d7f['_splitMarkerName'](_0x1cd118);if('suggestion'!=_0x3e2a7e||'deletion'!=_0x2c764d||_0x3c693f['oldRange'])continue;if(!_0x262d7f['hasSuggestion'](_0x5ca42b))continue;const _0x22c1ea=_0x262d7f['getSuggestion'](_0x5ca42b)['getRanges'](),_0x2ffdd8=_0x43d201['plugins']['get']('Users')['me'];for(const _0x5e9927 of _0x262d7f['getSuggestions']()){if(!_0x5e9927['isInContent']||_0x5e9927['author']!=_0x2ffdd8)continue;if('formatBlock'!=_0x5e9927['type']||'tablePasteCell'!=_0x5e9927['subType'])continue;if(_0x5e9927['getRanges']()['every'](_0x457cb3=>_0x22c1ea['some'](_0x3794dc=>_0x3794dc['containsRange'](_0x457cb3,!0x0)))){for(const _0x14f462 of _0x5e9927['getAllAdjacentSuggestions']())_0x14f462['isInContent']&&(_0x14f462['discard'](),_0x14ef2c=!0x0);}}}return _0x14ef2c;}),_0x43d201['model']['document']['registerPostFixer'](_0x1185d4=>{const _0x4a64c3=_0x43d201['commands']['get']('redo');if(!_0x4a64c3||!_0x4a64c3['_createdBatches']['has'](_0x1185d4['batch']))return!0x1;let _0x22bc4c=!0x1;const _0x174bbb=_0x43d201['plugins']['get']('Users')['me'],_0x41e4e9=_0x43d201['model']['document']['differ']['getChanges'](),_0x4b7071=Array['from'](_0x43d201['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2196a4,data:_0x594543})=>{const {group:_0x3700a2,subType:_0x1ef509,authorId:_0xb6b0e5}=_0x262d7f['_splitMarkerName'](_0x2196a4);return'suggestion'==_0x3700a2&&'tablePaste'==_0x1ef509&&_0xb6b0e5==_0x174bbb['id']&&!_0x594543['oldRange'];});for(const _0x4bd956 of _0x41e4e9){if('insert'!=_0x4bd956['type']||'tableCellSuggestion'!=_0x4bd956['name']||0x1!=_0x4bd956['length'])continue;const _0x75130e=_0x1185d4['createRange'](_0x4bd956['position'],_0x4bd956['position']['getShiftedBy'](0x1));if(!_0x4b7071['find'](({data:_0x27ccca})=>_0x27ccca['newRange']['isEqual'](_0x75130e))){for(const {name:_0x31d0e2,data:_0x5d5ae9}of _0x4b7071)if(_0x75130e['containsRange'](_0x5d5ae9['newRange'])){_0x1185d4['updateMarker'](_0x31d0e2,{'range':_0x75130e}),_0x22bc4c=!0x0;break;}}}return _0x22bc4c;}),_0x43d201['model']['document']['registerPostFixer'](_0x5ecdda=>{let _0x5e3630=!0x1;const _0x49ed6b=_0x43d201['plugins']['get']('Users')['me'],_0x48245b=_0x262d7f['getSuggestions']()['filter'](_0x2437c1=>_0x2437c1['isInContent']&&_0x2437c1['author']==_0x49ed6b),_0x166fb3=new Set(),_0x528567=new Set();for(const _0x210048 of _0x48245b)if('tablePaste'==_0x210048['subType'])for(const _0x565b7a of _0x210048['getMarkers']()){const _0x2434c5=_0x565b7a['getRange']()['getContainedElement']();if(_0x2434c5){if(_0x2434c5['is']('element','tableCellSuggestion')&&Be(_0x2434c5)){_0x210048['removeMarker'](_0x565b7a['name']),_0x166fb3['add'](_0x2434c5),_0x5e3630=!0x0;const _0x5078e2=_0x2434c5['nextSibling'],_0x5e8e80=_0x2434c5['previousSibling'],_0x5f567a=_0x5078e2&&_0x5078e2['is']('element','tableCellSuggestion'),_0x4cb408=_0x5e8e80&&_0x5e8e80['is']('element','tableCellSuggestion');_0x5f567a&&!_0x166fb3['has'](_0x5078e2)&&_0x528567['add'](_0x5078e2),_0x4cb408&&!_0x166fb3['has'](_0x5e8e80)&&_0x528567['add'](_0x5e8e80);}else _0x2434c5['is']('element','paragraph')&&_0x2434c5['isEmpty']&&(_0x210048['removeMarker'](_0x565b7a['name']),_0x5e3630=!0x0);}}else{if('tablePasteCell'==_0x210048['subType']){if(!_0x210048['attributes']||!_0x210048['attributes']['tablePasteChainId'])continue;const _0x181678=_0x210048['attributes']['markerAttributes'];if(_0x181678&&Object['keys'](_0x181678)['length'])continue;const _0x15cdf=_0x210048['attributes']['tablePasteChainId'];let _0x56924c=!0x0,_0x103c04=!0x0;for(const _0x43b1c6 of _0x48245b)if(_0x43b1c6['subType']&&_0x43b1c6['subType']['startsWith']('tablePaste')){if(!_0x43b1c6['attributes']['tablePasteChainId']){_0x103c04=!0x1;break;}if(_0x43b1c6['id']!=_0x210048['id']&&_0x43b1c6['attributes']['tablePasteChainId']==_0x15cdf){_0x56924c=!0x1;break;}}_0x103c04&&_0x56924c&&(_0x210048['removeMarkers'](),_0x5e3630=!0x0);}}for(const _0x33a2e0 of _0x166fb3)_0x5ecdda['remove'](_0x33a2e0);for(const _0x3cbc87 of _0x528567)_0x5ecdda['unwrap'](_0x3cbc87);return _0x5e3630;}),_0x43d201['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5d6e5d=>_0x286b82(_0x5d6e5d),'converterPriority':'high'}),_0x43d201['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x228864,_0x4a1782)=>_0x4a1782['options']['showSuggestionHighlights']?_0x286b82(_0x228864,!0x1):null,'converterPriority':'high'});const _0x119a13=_0x43d201['editing']['view'];this['listenTo'](_0x119a13['document'],'clipboardOutput',(_0x8d5339,_0x4cb5e1)=>{const _0x4d82a9=[];for(const _0x2a2f30 of _0x119a13['createRangeIn'](_0x4cb5e1['content'])['getItems']())_0x2a2f30['is']('element','suggestion-td')&&_0x4d82a9['push'](_0x2a2f30);_0x119a13['change'](_0x3df780=>{for(const _0x3fcea8 of _0x4d82a9)_0x3df780['move'](_0x3df780['createRangeIn'](_0x3fcea8),_0x3df780['createPositionBefore'](_0x3fcea8)),_0x3df780['remove'](_0x3fcea8);});});}}function Be(_0x24bb82){if(_0x24bb82['isEmpty'])return!0x0;const _0x523620=_0x24bb82['getChild'](0x0);return _0x523620['is']('element','paragraph')&&_0x523620['isEmpty'];}function Oe(_0x4d221f,_0x231bbf={},_0x2586a0){for(const {isAnchor:_0x390c21,cellHeight:_0x321096,cellWidth:_0x264dcd}of _0x2586a0['createTableWalker'](_0x4d221f,{'includeAllSlots':!0x0,..._0x231bbf}))if(!_0x390c21||0x1!=_0x321096||0x1!=_0x264dcd)return!0x1;return!0x0;}class Ot extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x22c783=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c783['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x22c783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x22c783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22c783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x22c783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x22c783['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3a457b,_0x294c0a){const _0x37741f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41d861=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13b338=_0x294c0a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x136e6f=_0x41d861['getColumnGroupElement'](_0x13b338);let _0x201ec1=_0x136e6f?_0x41d861['getTableColumnsWidths'](_0x136e6f):null,_0x196af5=_0x13b338['getAttribute']('tableWidth')||null;const _0x3f3b17=_0x294c0a['tableWidth']||_0x196af5,_0x442385=_0x294c0a['columnWidths']||_0x201ec1,_0x545996=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f4a67 of _0x37741f['getSuggestions']()){const _0x35f3fb=_0x1f4a67['getContainedElement']();if('resizeTable'===_0x1f4a67['subType']&&_0x35f3fb===_0x13b338){_0x1f4a67['author']!==_0x545996&&_0x1f4a67['discard']();const _0x154532=_0x1f4a67['data']['commandParams'];_0x196af5=_0x154532[0x0]['tableWidth'],_0x201ec1=_0x154532[0x0]['columnWidths'];break;}}_0x3a457b({'table':_0x13b338,'tableWidth':_0x3f3b17,'columnWidths':_0x442385}),_0x37741f['markBlockFormat'](_0x13b338,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x196af5,'columnWidths':_0x201ec1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3560c5){if('formatBlock'!=_0x3560c5['type']&&'formatInline'!=_0x3560c5['type'])return;const {data:_0x34f5a3}=_0x3560c5;if(_0x34f5a3&&'resizeTable'===_0x34f5a3['formatGroupId']){const _0x4ac523='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4ac523)};}}}class xt extends _0x2b2f8b{['afterInit'](){const _0x43bf35=this['editor'];_0x43bf35['plugins']['has']('Template')&&_0x43bf35['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2b2f8b{['afterInit'](){const _0x3df330=this['editor'];if(!_0x3df330['commands']['get']('insertTableOfContents'))return;_0x3df330['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x47893e=_0x3df330['plugins']['get']('TrackChangesEditing'),_0x318542=_0x3df330['locale'];_0x47893e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a3cb2=>o(_0x318542,'ELEMENT_TABLE_OF_CONTENTS',_0x1a3cb2));}}class Rt extends _0x2b2f8b{['afterInit'](){const _0x3154b7=this['editor'];if(!_0x3154b7['plugins']['has']('Title'))return;const _0x26caa3=_0x3154b7['plugins']['get']('TrackChangesEditing');_0x26caa3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3154b7['locale'],'ELEMENT_TITLE')),_0x3154b7['model']['document']['registerPostFixer'](_0x293dcb=>{let _0xe1929b=!0x1;const _0x137c07=Array['from'](_0x3154b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bfd52,data:_0x141fce}of _0x137c07){const {group:_0x2a944d}=_0x26caa3['_splitMarkerName'](_0x1bfd52);if('suggestion'!==_0x2a944d||!_0x141fce['newRange'])continue;const _0xbf4dca=_0x141fce['newRange'],_0x5b5221=_0xbf4dca['end']['nodeBefore'];if(!_0x5b5221||!_0x5b5221['is']('element','title-content'))continue;if(!_0xbf4dca['start']['isTouching'](_0xbf4dca['end']))continue;const _0x424fba=_0x3154b7['model']['schema']['getNearestSelectionRange'](_0xbf4dca['end'],'forward');if(_0x424fba&&_0x424fba['isCollapsed']){const _0x22d070=_0x293dcb['createRange'](_0xbf4dca['start'],_0x424fba['start']);_0x22d070['isEqual'](_0xbf4dca)||(_0x293dcb['updateMarker'](_0x1bfd52,{'range':_0x22d070}),_0xe1929b=!0x0);}_0xe1929b||(_0x293dcb['removeMarker'](_0x1bfd52),_0xe1929b=!0x0);}return _0xe1929b;});}}class Tt extends _0x2b2f8b{['afterInit'](){const _0x4efad6=this['editor'],_0x1b6f22=_0x4efad6['plugins']['get']('TrackChangesEditing');_0x4efad6['plugins']['has']('Uploadcare')&&(_0x1b6f22['enableCommand']('uploadcare'),_0x4efad6['plugins']['has']('UploadcareImageEdit')&&(_0x1b6f22['enableCommand']('uploadcareImageEdit'),_0x1b6f22['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1b6f22['descriptionFactory']['registerDescriptionCallback'](_0x20131f=>{if('attribute'!=_0x20131f['type'])return;const {data:_0x3b1f93}=_0x20131f;return _0x3b1f93&&'uploadcareImageId'==_0x3b1f93['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2b2f8b{['afterInit'](){const _0x486508=this['editor'],_0xf4da01=_0x486508['plugins']['get']('TrackChangesEditing');_0x486508['plugins']['has']('UndoEditing')&&(_0xf4da01['enableCommand']('undo'),_0xf4da01['enableCommand']('redo'));}}class Ut extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x1cf880=this['editor'];if(!_0x1cf880['plugins']['has']('TableCaptionEditing'))return;_0x1cf880['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2b2f8b{['tableProperties'];['tableCellProperties'];constructor(_0x3cca86){super(_0x3cca86),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x408a98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x7014dc of this['tableProperties'])_0x408a98['enableCommand'](_0x7014dc,(_0x5df769,_0x4665d6)=>{const _0x4c71cc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x7014dc,[_0x4c71cc],this['tableProperties'],'tableProperties',_0x5df769,_0x4665d6);});_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x408a98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30bba8,_0x32adbd)=>this['handleDiscardAction'](this['tableProperties'],_0x30bba8,_0x32adbd)),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2d3c8a of this['tableCellProperties'])_0x408a98['enableCommand'](_0x2d3c8a,(_0xc1ee71,_0x3ce162)=>{const _0x4c23e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2d3c8a,_0x4c23e,this['tableCellProperties'],'tableCellProperties',_0xc1ee71,_0x3ce162);});_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x408a98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2ee172,_0x80264a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2ee172,_0x80264a)),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x408a98['descriptionFactory']['registerDescriptionCallback'](_0x31ca9d=>this['handleSuggestionDescription'](_0x31ca9d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x29cb3e,_0x1a7f92,_0x5d9aeb,_0x34884c,_0x73f95,_0x2cf363){const _0x45bcf5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2cf363['batch'],()=>{for(const _0x2e9d86 of _0x1a7f92){if(this['_getSuggestion'](_0x2e9d86,_0x34884c))_0x73f95(_0x2cf363);else{const _0x2c9e26={};for(const _0x60550a of _0x5d9aeb){const _0x473744=_0x2e9d86['getAttribute'](_0x60550a);void 0x0!==_0x473744&&(_0x2c9e26[_0x60550a]=_0x473744);}_0x73f95(_0x2cf363),_0x45bcf5['markBlockFormat'](_0x2e9d86,{'commandParams':[_0x2c9e26]},[],_0x34884c);}}});}['handleDiscardAction'](_0x289fca,_0x292367,_0x15aaec){const _0x275b9e=_0x292367[0x0]['start']['nodeAfter'],_0x2562e2=_0x15aaec['commandParams'][0x0];this['editor']['model']['change'](_0x2d909d=>{for(const _0x13605f of _0x289fca)void 0x0!==_0x2562e2[_0x13605f]?_0x2d909d['setAttribute'](_0x13605f,_0x2562e2[_0x13605f],_0x275b9e):_0x2d909d['removeAttribute'](_0x13605f,_0x275b9e);});}['handleSuggestionDescription'](_0x26d28f){if(_0x26d28f['data'])switch(_0x26d28f['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'](_0x5ea0d1,_0x554486){const _0x2a70fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ea709 of _0x2a70fb['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b8ce9=_0x3ea709['getContainedElement']();if(_0x3ea709['subType']===_0x554486&&_0x5b8ce9===_0x5ea0d1)return _0x3ea709;}return null;}['_registerTablePropertiesAttributes'](){const _0x35b075=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa149e3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xcf4e2a of _0xa149e3){const _0x26f578=_0xcf4e2a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x35b075['descriptionFactory']['registerAttributeLabel'](_0xcf4e2a,o(this['editor']['locale'],'FORMAT_'+_0x26f578));}}}class Ft extends _0x2b2f8b{['afterInit'](){const _0x1d7421=this['editor'];if(!_0x1d7421['plugins']['has']('LineHeight'))return;const _0x47a8e9=_0x1d7421['plugins']['get']('TrackChangesEditing'),_0x155d7c=_0x1d7421['locale'];_0x47a8e9['enableDefaultAttributesIntegration']('lineHeight'),_0x47a8e9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x155d7c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2b2f8b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x3f7a3e,_0x5f55e4,_0x4c6b68,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d7203){super(_0x5d7203),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x28d88d,_0x41d293,_0x5a2322,_0x252f1d)=>{this['_model']['change'](()=>{for(const _0x30f5ca of[..._0x252f1d,..._0x5a2322])this['_model']['markers']['has'](_0x30f5ca)&&_0x5d7203['editing']['reconvertMarker'](_0x30f5ca);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5d7203['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5d7203['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5d7203['config']['get']('trackChanges.trackFormatChanges'),_0x5d7203['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5d7203['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x5d7203,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5da618=this['editor'];_0x5da618['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40a881,{writer:_0x268c5c})=>{let _0x4b747f='suggestion:'+_0x40a881['getAttribute']('suggestion-type')+':'+_0x40a881['getAttribute']('id');return _0x40a881['getAttribute']('marker-count')&&(_0x4b747f+=':'+_0x40a881['getAttribute']('marker-count')),_0x268c5c['createElement']('$marker',{'data-name':_0x4b747f});}}),_0x5da618['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5da618['model']['document']['registerPostFixer'](_0x57787d=>{let _0x1d7405=!0x1;const _0x3edc5a=Array['from'](_0x5da618['model']['document']['differ']['getChangedMarkers']()),_0x278dff=new Set();for(const {name:_0x23b0a5,data:_0x31752b}of _0x3edc5a){const {group:_0x4d2fe9,type:_0x5c781d,subType:_0x34ebfa,id:_0x370512}=this['_splitMarkerName'](_0x23b0a5);if('suggestion'!==_0x4d2fe9)continue;const _0x368c44=_0x34ebfa?'suggestion:'+_0x5c781d+':'+_0x34ebfa+':'+_0x370512:'suggestion:'+_0x5c781d+':'+_0x370512,_0x1c0dad=_0x5da618['model']['markers']['getMarkersGroup'](_0x368c44),_0x51bb56=_0x5da618['model']['markers']['get'](_0x23b0a5),_0x395684=this['_suggestions']['get'](_0x370512);if(null!=_0x31752b['newRange']){'formatInline'==_0x5c781d&&(_0x1d7405=_0x1d7405||Wt(_0x31752b['newRange'],_0x23b0a5,_0x57787d,_0x5da618['model']['schema']));const _0x50c1c7='attribute'==_0x5c781d&&this['_isBlockAttribute'](_0x34ebfa['split']('|')[0x0]),_0x42e720='attribute'==_0x5c781d&&this['_isInlineAttribute'](_0x34ebfa['split']('|')[0x0]);if(_0x31752b['newRange']['isCollapsed']||'$graveyard'==_0x31752b['newRange']['root']['rootName']||'formatBlock'==_0x5c781d&&!Qt(_0x31752b['newRange'])||_0x50c1c7&&!Qt(_0x31752b['newRange'])||_0x42e720&&Xt(_0x31752b['newRange'])||'deletion'==_0x5c781d&&Xt(_0x31752b['newRange'])||_0x51bb56&&Yt(_0x51bb56,_0x1c0dad))_0x57787d['removeMarker'](_0x23b0a5),_0x1d7405=!0x0;else{if(!_0x395684||!_0x395684['isInContent'])continue;if(_0x31752b['newRange']&&_0x31752b['oldRange']&&_0x31752b['newRange']['isEqual'](_0x31752b['oldRange']))continue;_0x278dff['add'](_0x395684);}}}return _0x278dff['size']>0x0&&(_0x1d7405=!!this['_joinWithAdjacentSuggestions'](_0x278dff)||_0x1d7405),_0x1d7405;}),_0x5da618['model']['document']['registerPostFixer'](_0x5cb82f=>{let _0x311658=!0x1;for(const _0x242615 of _0x5da618['model']['document']['differ']['getChanges']())if('insert'==_0x242615['type'])for(const _0x54a970 of this['_suggestions']['values']()){if(_0x54a970['isMultiRange']||!_0x54a970['isInContent'])continue;const _0xbe0597='formatBlock'==_0x54a970['type'],_0x4be2d6=this['_getAttributeKey'](_0x54a970),_0x485aa6=_0x4be2d6&&this['_isBlockAttribute'](_0x4be2d6);if(!_0xbe0597&&!_0x485aa6)continue;const _0x277992=_0x54a970['getFirstRange']();if(_0x277992['start']['parent']!=_0x277992['end']['parent']&&!_0x277992['end']['isAtEnd']){const _0x31abb0=_0x5da618['model']['createPositionAt'](_0x277992['start']['nodeAfter'],'end'),_0x5a0b07=_0x5da618['model']['createRange'](_0x277992['start'],_0x31abb0);_0x5cb82f['updateMarker'](_0x54a970['getFirstMarker'](),{'range':_0x5a0b07}),_0x311658=!0x0;}}return _0x311658;}),_0x5da618['model']['document']['registerPostFixer'](_0x111a7f=>this['_processAttributeChanges'](_0x111a7f)),_0x5da618['model']['document']['registerPostFixer'](_0x57a357=>!_0x57a357['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57a357)),_0x5da618['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5da618['model']['document']['on']('change:data',(_0x379927,_0xe602de)=>{if(!_0xe602de['isLocal']||_0xe602de['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x32c86e=_0x5da618['model']['document']['differ']['getChanges']();if(0x0==_0x32c86e['length'])return;const _0x22ac3b=[],_0x750ef4=_0x32c86e['filter'](_0x4c94c7=>'attribute'==_0x4c94c7['type']),_0x38c862=_0x32c86e['filter'](_0x14aaaf=>'insert'==_0x14aaaf['type']&&'$text'!=_0x14aaaf['name']);for(const _0x326e12 of _0x750ef4)this['_isRegisteredAttribute'](_0x326e12['attributeKey'])&&_0x22ac3b['push']({'key':_0x326e12['attributeKey'],'newValue':_0x326e12['attributeNewValue'],'oldValue':_0x326e12['attributeOldValue'],'range':Zt(_0x326e12['range'],_0x5da618['model'])});for(const _0x36b4bc of _0x38c862){if('rename'!=_0x36b4bc['action']&&'refresh'!=_0x36b4bc['action'])continue;const _0x338b2a=tn(_0x36b4bc['position']['nodeAfter'],_0x5da618['model']),_0x50d115=_0x36b4bc['before'];'rename'==_0x36b4bc['action']&&_0x22ac3b['push']({'key':m,'newValue':_0x36b4bc['name'],'oldValue':_0x50d115['name'],'range':_0x338b2a});for(const [_0x261fed,_0x236658]of _0x50d115['attributes']){if(!this['_isRegisteredAttribute'](_0x261fed))continue;const _0x36b77f=_0x36b4bc['attributes']['get'](_0x261fed);_0x236658!==_0x36b77f&&_0x22ac3b['push']({'key':_0x261fed,'newValue':_0x36b77f,'oldValue':_0x236658,'range':_0x338b2a});}for(const [_0x534f13,_0x5ab452]of _0x36b4bc['attributes'])this['_isRegisteredAttribute'](_0x534f13)&&(_0x50d115['attributes']['has'](_0x534f13)||_0x22ac3b['push']({'key':_0x534f13,'newValue':_0x5ab452,'oldValue':null,'range':_0x338b2a}));}0x0!=_0x22ac3b['length']&&_0x5da618['model']['enqueueChange'](_0xe602de,_0x20cfbc=>{const _0x5f347a=_0x8ed52d();for(const {range:_0x61634f,key:_0x3e1d76,oldValue:_0x5c26a4,newValue:_0x45bea9}of _0x22ac3b)this['markAttributeChange'](_0x61634f,_0x3e1d76,_0x5c26a4,_0x45bea9,{'groupId':_0x5f347a});this['_reduceExistingSuggestions'](_0x20cfbc,_0x22ac3b);});},{'priority':'lowest'}),_0x5da618['model']['markers']['on']('update:suggestion',(_0x4e05af,_0xd0f66a,_0x134fb5)=>{if(null==_0x134fb5){const {id:_0x3b8101}=this['_splitMarkerName'](_0xd0f66a['name']),_0x58114a=this['_suggestions']['get'](_0x3b8101);_0x58114a&&_0x58114a['addMarkerName'](_0xd0f66a['name']);}}),_0x5da618['model']['document']['on']('change:data',()=>{const _0x149494=Array['from'](_0x5da618['model']['document']['differ']['getChangedMarkers']())['filter'](_0xf313bd=>'suggestion'===this['_splitMarkerName'](_0xf313bd['name'])['group']);if(0x0===_0x149494['length'])return;_0x149494['sort']((_0x37f2c4,_0x4c29da)=>{const _0x1f8d35=_0x37f2c4['data']['oldRange'],_0x5d58c3=_0x4c29da['data']['oldRange'];return null===_0x1f8d35&&null===_0x5d58c3?0x0:null===_0x1f8d35&&null!==_0x5d58c3?-0x1:null!==_0x1f8d35&&null===_0x5d58c3?0x1:_0x1f8d35['start']['isBefore'](_0x5d58c3['start'])?-0x1:0x1;});const _0xa5cbc6=new Set(),_0x49e5b6=new Set();for(const {name:_0x1be5d3,data:_0x23af61}of _0x149494){const {id:_0x8292a3}=this['_splitMarkerName'](_0x1be5d3);if(null===_0x23af61['oldRange']){const _0x561f61=this['_handleNewSuggestionMarker'](_0x1be5d3);_0x49e5b6['add'](_0x561f61);}else{const _0x1c0b20=this['_suggestions']['get'](_0x8292a3);null!==_0x23af61['newRange']||_0x1c0b20['isInContent']?(_0xa5cbc6['add'](_0x1c0b20['head']),_0x49e5b6['add'](_0x1c0b20)):this['_removeSuggestion'](_0x1c0b20);}}_0x49e5b6['size']>0x0&&this['_refreshSuggestionsChain'](_0x49e5b6);for(const _0x2844a3 of _0xa5cbc6)this['fire']('suggestionChanged',_0x2844a3);}),_0x5da618['model']['on']('applyOperation',(_0x22d354,_0x39117a)=>{const _0x4d8923=_0x39117a[0x0];if(!this['_suggestions']['size'])return;if(!_0x4d8923['isDocumentOperation'])return;if(_0x4d8923['batch']['isUndo']||!_0x4d8923['batch']['isLocal'])return;let _0x5c7d73,_0xf4fbb3;switch(_0x4d8923['type']){case'insert':_0x5c7d73=_0x5da618['model']['createPositionAt'](_0x4d8923['position']),_0xf4fbb3=_0x5c7d73['getShiftedBy'](_0x4d8923['howMany']);break;case'split':_0x5c7d73=_0x5da618['model']['createPositionAt'](_0x4d8923['splitPosition']),_0xf4fbb3=_0x5da618['model']['createPositionAt'](_0x4d8923['moveTargetPosition']);break;case'move':_0x5c7d73=_0x5da618['model']['createPositionAt'](_0x4d8923['targetPosition']),_0xf4fbb3=_0x5c7d73['getShiftedBy'](_0x4d8923['howMany']);break;default:return;}const _0x473a6b=_0x5da618['model']['createRange'](_0x5c7d73,_0xf4fbb3);_0x5da618['model']['change'](()=>{for(const {suggestion:_0x4e0b2d,meta:_0x19021c}of this['_findSuggestions'](_0x473a6b)){if(_0x4e0b2d['isMultiRange'])continue;if('formatInline'==_0x4e0b2d['type'])continue;const _0x5ce8e2=this['_getAttributeKey'](_0x4e0b2d);if(_0x5ce8e2&&this['_isBlockAttribute'](_0x5ce8e2)&&'split'!=_0x4d8923['type'])continue;const _0x11f61b=_0x4e0b2d['data']&&_0x4e0b2d['data']['multipleBlocks'];('formatBlock'!=_0x4e0b2d['type']||'split'==_0x4d8923['type']&&!_0x11f61b)&&(_0x19021c['containsRangeInObject']||'insertion'==_0x4e0b2d['type']&&_0x19021c['isOwn']||_0x4e0b2d['getFirstRange']()['containsRange'](_0x473a6b)&&this['_breakSuggestionMarker'](_0x4e0b2d,_0x5c7d73,_0xf4fbb3));}});},{'priority':'lowest'}),_0x5da618['model']['on']('deleteContent',(_0x1bfa80,_0x101731)=>{const _0x261f36=_0x101731[0x0],_0x9e9228=_0x101731[0x1];if(_0x9e9228&&_0x9e9228['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x261f36['isCollapsed'])return;const _0x3bf1d7=_0x5da618['model']['schema'],{start:_0x311fd8,end:_0x3aba18}=_0x261f36['getFirstRange'](),_0x3bda88=_0x311fd8['nodeAfter']&&_0x3bf1d7['isLimit'](_0x311fd8['nodeAfter'])?null:_0x3bf1d7['getNearestSelectionRange'](_0x311fd8,'forward'),_0x41c35c=_0x3aba18['nodeBefore']&&_0x3bf1d7['isLimit'](_0x3aba18['nodeBefore'])?null:_0x3bf1d7['getNearestSelectionRange'](_0x3aba18,'backward'),_0x20ce43=_0x5da618['model']['createRange'](_0x3bda88?_0x3bda88['start']:_0x311fd8,_0x41c35c?_0x41c35c['end']:_0x3aba18);_0x5da618['model']['change'](_0x533810=>{this['markDeletion'](_0x20ce43);const _0x5f5349=_0x5da618['model']['schema']['getNearestSelectionRange'](_0x20ce43['start']);_0x261f36['is']('documentSelection')?_0x533810['setSelection'](_0x5f5349):_0x261f36['setTo'](_0x5f5349);}),_0x1bfa80['stop']();},{'priority':_0x2ea691['normal']+0xa}),_0x5da618['model']['on']('insertContent',(_0x27e1c7,_0x35bf60)=>{const _0x2dc8c6=_0x35bf60[_0x35bf60['length']-0x1];_0x2dc8c6&&_0x2dc8c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5da618['model']['change'](()=>{let _0x4691dd=_0x5da618['model']['insertContent'](_0x35bf60[0x0],_0x35bf60[0x1],_0x35bf60[0x2],{'forceDefaultExecution':!0x0});if(!_0x4691dd)return;_0x27e1c7['return']=_0x4691dd['clone']();const _0xb8ca09=_0x4691dd['end']['nodeBefore'],_0x4c33c2=_0x5da618['model']['schema'];_0xb8ca09&&_0x4c33c2['isBlock'](_0xb8ca09)&&!_0x4c33c2['isObject'](_0xb8ca09)&&(_0x4691dd=_0x5da618['model']['createRange'](_0x4691dd['start'],_0x5da618['model']['createPositionAt'](_0xb8ca09,'end'))),this['markInsertion'](_0x4691dd);}),_0x27e1c7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x57c7c0=new v(_0x5da618,this['_suggestions']);_0x5da618['commands']['add']('acceptSuggestion',_0x57c7c0),this['enableCommand']('acceptSuggestion');const _0x204354=new D(_0x5da618,this['_suggestions']);_0x5da618['commands']['add']('discardSuggestion',_0x204354),this['enableCommand']('discardSuggestion'),_0x5da618['commands']['add']('acceptAllSuggestions',new B(_0x5da618,_0x57c7c0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5da618['commands']['add']('discardAllSuggestions',new B(_0x5da618,_0x204354,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5da618['commands']['add']('acceptSelectedSuggestions',new O(_0x5da618,_0x57c7c0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5da618['commands']['add']('discardSelectedSuggestions',new O(_0x5da618,_0x204354,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x255918=_0x5da618['plugins']['get']('CommentsRepository');this['listenTo'](_0x255918,'addComment',(_0x409edb,{threadId:_0x2188a3})=>{const _0x395e5b=this['_suggestions']['get'](_0x2188a3);_0x395e5b&&_0x395e5b['commentThread']&&0x1===_0x395e5b['commentThread']['length']&&this['_updateSuggestionData'](_0x2188a3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x255918,'removeComment',(_0x2901a2,{threadId:_0x5328b7})=>{const _0x54b654=this['_suggestions']['get'](_0x5328b7);_0x54b654&&_0x54b654['commentThread']&&!_0x54b654['commentThread']['length']&&this['_updateSuggestionData'](_0x5328b7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5e4bd4){const _0x4d3c35=_0xfd81f3([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]),_0x43dea4=0x3d8d0df,_0x31f53e=0x3dfaa4f^_0x43dea4,_0x4e614a=window[_0xfd81f3([0x44,0x61,0x74,0x65])][_0xfd81f3([0x6e,0x6f,0x77])](),_0x33c79b=_0x5e4bd4[_0xfd81f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f3467=new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3a33=>{_0x33c79b[_0xfd81f3([0x6f,0x6e,0x63,0x65])](_0xfd81f3([0x72,0x65,0x61,0x64,0x79]),_0x1e3a33);}),_0x312ac4={[_0xfd81f3([0x6b,0x74,0x79])]:_0xfd81f3([0x45,0x43]),[_0xfd81f3([0x75,0x73,0x65])]:_0xfd81f3([0x73,0x69,0x67]),[_0xfd81f3([0x63,0x72,0x76])]:_0xfd81f3([0x50,0x2d,0x32,0x35,0x36]),[_0xfd81f3([0x78])]:_0xfd81f3([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]),[_0xfd81f3([0x79])]:_0xfd81f3([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]),[_0xfd81f3([0x61,0x6c,0x67])]:_0xfd81f3([0x45,0x53,0x32,0x35,0x36])},_0x316ef8=_0x33c79b[_0xfd81f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xfd81f3([0x67,0x65,0x74])](_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2660cc(){let _0x12d905,_0xe3005a=null,_0x3b4596=null;try{if(_0x316ef8==_0xfd81f3([0x47,0x50,0x4c]))return _0xfd81f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12d905=_0x2bb0dc(),!_0x12d905)return _0xfd81f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12d905[_0xfd81f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b4596=_0x337b6b(_0x12d905[_0xfd81f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12d905[_0xfd81f3([0x6a,0x74,0x69])])),await _0x381dd0()?_0x1bf829()?_0xce8ab5()?_0xfd81f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55c96a()?(_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfd81f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe3005a=_0x557366(_0xfd81f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfd81f3([0x74,0x72,0x69,0x61,0x6c])&&(_0xe3005a=_0x557366(_0xfd81f3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53e7a7()):_0xfd81f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xfd81f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xfd81f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xfd81f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xce8ab5(){const _0x4fccb1=[_0xfd81f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xfd81f3([0x74,0x72,0x69,0x61,0x6c])][_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e614a/0x3e8:0xe10*_0x31f53e;return _0x12d905[_0xfd81f3([0x65,0x78,0x70])]<_0x4fccb1;}function _0x1bf829(){const _0x979f66=_0x12d905[_0xfd81f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x979f66)return!0x1;if(_0x979f66[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x2a])))return!0x0;if(_0x979f66[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x54,0x43])))return!0x0;if(_0x979f66[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x52,0x54,0x43]))){if(_0x1fb3da())return!0x0;if(_0x292782()||_0x345f33())return!0x0;}return!0x1;}function _0x55c96a(){const _0x5890cd=_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5890cd||0x0==_0x5890cd[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x366909}=new URL(window[_0xfd81f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5890cd[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x366909))return!0x0;const _0x2e912d=_0x366909[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e]));return _0x5890cd[_0xfd81f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbb94c3=>_0xbb94c3[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x2a])))[_0xfd81f3([0x6d,0x61,0x70])](_0x3791ff=>_0x3791ff[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e])))[_0xfd81f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20de52=>_0x20de52[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e912d[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfd81f3([0x6d,0x61,0x70])](_0x5af437=>Array(_0x2e912d[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5af437[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfd81f3([0x66,0x69,0x6c,0x6c])](_0x5af437[0x0]===_0xfd81f3([0x2a])?_0xfd81f3([0x2a]):'')[_0xfd81f3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5af437))[_0xfd81f3([0x73,0x6f,0x6d,0x65])](_0x3cefa5=>_0x2e912d[_0xfd81f3([0x65,0x76,0x65,0x72,0x79])]((_0x2a8eac,_0x2001df)=>_0x3cefa5[_0x2001df]===_0x2a8eac||_0x3cefa5[_0x2001df]===_0xfd81f3([0x2a])));}function _0x53e7a7(){return _0xe3005a&&_0x3b4596?new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a440e,_0x28287f)=>{_0xe3005a[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x3a440e,_0x28287f),_0x3b4596[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x5208b9=>{_0x5208b9!=_0xfd81f3([0x56,0x61,0x6c,0x69,0x64])&&_0x3a440e(_0x5208b9);},_0x28287f);}):_0xe3005a||_0x3b4596||_0xfd81f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x337b6b(_0x1847cc,_0xadee77){return new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24d19f=>{if(_0x1fab36())return _0x24d19f(_0xfd81f3([0x56,0x61,0x6c,0x69,0x64]));_0x325da6(),_0x33c79b[_0xfd81f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xfd81f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a0ac5=!0x1;const _0x2a38c3=_0x8ed52d();function _0x3a893a(_0x4498a9){return!!_0x4498a9&&(typeof _0x4498a9===_0xfd81f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4498a9===_0xfd81f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4498a9[_0xfd81f3([0x74,0x68,0x65,0x6e])]===_0xfd81f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4498a9[_0xfd81f3([0x63,0x61,0x74,0x63,0x68])]===_0xfd81f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11ce31(_0x457483){_0x4edc1e(_0x457483)[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x5b863c=>{if(!_0x5b863c||_0x5b863c[_0xfd81f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xfd81f3([0x6f,0x6b]))return _0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10e3a3(_0x1116f2(_0x2a38c3+_0xadee77))!=_0x5b863c[_0xfd81f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xfd81f3([0x56,0x61,0x6c,0x69,0x64]);})[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x2d5c37=>(_0x1db742(),_0x2d5c37),()=>{const _0x31cd5b=_0x284e29();return null==_0x31cd5b?(_0x1db742(),_0xfd81f3([0x56,0x61,0x6c,0x69,0x64])):_0xfd81f3(_0x4e614a-_0x31cd5b>(0x27d454df^_0x43dea4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x24d19f)[_0xfd81f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24d19f(_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x477178=0x3ee3e5f^_0x43dea4;function _0x1db742(){const _0x48a143=_0xfd81f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e3a3(_0x1116f2(_0x1847cc)),_0x39c94d=_0x3f4acc(_0x10e3a3(window[_0xfd81f3([0x4d,0x61,0x74,0x68])][_0xfd81f3([0x63,0x65,0x69,0x6c])](_0x4e614a/_0x477178)));window[_0xfd81f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfd81f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48a143,_0x39c94d);}function _0x284e29(){const _0x120c06=_0xfd81f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e3a3(_0x1116f2(_0x1847cc)),_0x4aa1f3=window[_0xfd81f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfd81f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x120c06);return _0x4aa1f3?window[_0xfd81f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f4acc(_0x4aa1f3),0x10)*_0x477178:null;}function _0x4edc1e(_0x4a5b8b){return new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x486621,_0x5e9533)=>{_0x4a5b8b[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x486621,_0x5e9533),window[_0xfd81f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e9533,0x3d9041f^_0x43dea4);});}}_0x33c79b[_0xfd81f3([0x6f,0x6e])](_0xfd81f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51cd1d,_0x16eec7)=>{if(_0x16eec7[0x0]!=_0x1847cc)return _0x24d19f(_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16eec7[0x1]={..._0x16eec7[0x1],[_0xfd81f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a38c3};},{[_0xfd81f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfd81f3([0x68,0x69,0x67,0x68])}),_0x33c79b[_0xfd81f3([0x6f,0x6e])](_0xfd81f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd44497=>{_0x3a893a(_0xd44497[_0xfd81f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a0ac5=!0x0,_0x11ce31(_0xd44497[_0xfd81f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xfd81f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfd81f3([0x6c,0x6f,0x77])}),_0x2f3467[_0xfd81f3([0x74,0x68,0x65,0x6e])](()=>{_0x2a0ac5||_0x24d19f(_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fab36(){return _0x33c79b[_0xfd81f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfd81f3([0x76,0x69,0x65,0x77])][_0xfd81f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xfd81f3([0x61,0x75,0x74,0x6f]);}function _0x325da6(){_0x33c79b[_0xfd81f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfd81f3([0x76,0x69,0x65,0x77])][_0xfd81f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xfd81f3([0x61,0x75,0x74,0x6f]);}}function _0x557366(_0xefab49){const _0x516a0e=[new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211732=>setTimeout(_0x211732,0x3d1ee13^_0x43dea4)),_0x2f3467[_0xfd81f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0d39=>{let _0x225816=0x0;_0x33c79b[_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c])][_0xfd81f3([0x6f,0x6e])](_0xfd81f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c2f8d,_0x7f1257)=>{_0x7f1257[0x0][_0xfd81f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x225816++,_0x225816==(0x3d8d127^_0x43dea4)&&(_0x5f0d39(),_0x1c2f8d[_0xfd81f3([0x6f,0x66,0x66])]());});}))];return window[_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xfd81f3([0x72,0x61,0x63,0x65])](_0x516a0e)[_0xfd81f3([0x74,0x68,0x65,0x6e])](()=>_0xefab49);}async function _0x1aebeb(){await _0x2f3467,_0x33c79b[_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c])][_0xfd81f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45633d,_0x33c79b[_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c])][_0xfd81f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45633d,_0x33c79b[_0xfd81f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fb3da(){return _0x5c5b9e(_0xfd81f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40ff5c(_0xfd81f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xfd81f3([0x73,0x74,0x61,0x74,0x65])]==_0xfd81f3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x292782(){return _0x5c5b9e(_0xfd81f3([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 _0x345f33(){return _0x5c5b9e(_0xfd81f3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x314abe(_0x413b5d){const _0x5a75fc=_0x2e794c();_0x33c79b[_0x5a75fc]=_0xfd81f3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x413b5d,_0x413b5d!=_0xfd81f3([0x56,0x61,0x6c,0x69,0x64])&&_0x1aebeb();}function _0x2e794c(){const _0x72a62e=window[_0xfd81f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xfd81f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xfd81f3([0x6e,0x6f,0x77])]())[_0xfd81f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xfd81f3([0x2e]),'');let _0x4da39d=_0xfd81f3([0x52]);for(let _0x2b06f0=0x0;_0x2b06f0<_0x72a62e[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b06f0+=0x2){let _0x52aaeb=window[_0xfd81f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x72a62e[_0xfd81f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b06f0,_0x2b06f0+0x2));_0x52aaeb>=_0x4d3c35[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52aaeb-=_0x4d3c35[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4da39d+=_0x4d3c35[_0x52aaeb];}return _0x4da39d;}function _0x2bb0dc(){const _0x411115=_0x316ef8[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e]));if(0x3!=_0x411115[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xadfc1e(_0x411115[0x1]);function _0xadfc1e(_0x2cec3c){const _0xf02d2f=_0xe985c2(_0x2cec3c);return _0xf02d2f&&_0x1a05c0()?_0xf02d2f:null;function _0x1a05c0(){const _0x3632fe=_0xf02d2f[_0xfd81f3([0x6a,0x74,0x69])],_0x56edbe=window[_0xfd81f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3632fe[_0xfd81f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3632fe[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x369e66={..._0xf02d2f,[_0xfd81f3([0x6a,0x74,0x69])]:_0x3632fe[_0xfd81f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3632fe[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x369e66[_0xfd81f3([0x76,0x63])],_0x1116f2(_0x369e66)==_0x56edbe;}}}async function _0x381dd0(){let _0x566560=!0x0;try{const _0x10da97=_0x316ef8[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e])),[_0x59fedc,_0x45d068,_0x29c7cf]=_0x10da97;return _0x5dff4b(_0x59fedc),await _0x47f557(_0x59fedc,_0x45d068,_0x29c7cf),_0x566560;}catch{return!0x1;}function _0x5dff4b(_0xcd8481){const _0x985e93=_0xe985c2(_0xcd8481);_0x985e93&&_0x985e93[_0xfd81f3([0x61,0x6c,0x67])]==_0xfd81f3([0x45,0x53,0x32,0x35,0x36])||(_0x566560=!0x1);}async function _0x47f557(_0x3d4c9c,_0x183945,_0x580ef3){const _0x45b309=window[_0xfd81f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xfd81f3([0x66,0x72,0x6f,0x6d])](_0x2b3039(_0x580ef3),_0x22e3d5=>_0x22e3d5[_0xfd81f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4523ea=new window[(_0xfd81f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xfd81f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d4c9c+_0xfd81f3([0x2e])+_0x183945),_0x4face9=window[_0xfd81f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xfd81f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4face9)return;const _0x588027=await _0x4face9[_0xfd81f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xfd81f3([0x6a,0x77,0x6b]),_0x312ac4,{[_0xfd81f3([0x6e,0x61,0x6d,0x65])]:_0xfd81f3([0x45,0x43,0x44,0x53,0x41]),[_0xfd81f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xfd81f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xfd81f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4face9[_0xfd81f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xfd81f3([0x6e,0x61,0x6d,0x65])]:_0xfd81f3([0x45,0x43,0x44,0x53,0x41]),[_0xfd81f3([0x68,0x61,0x73,0x68])]:{[_0xfd81f3([0x6e,0x61,0x6d,0x65])]:_0xfd81f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x588027,_0x45b309,_0x4523ea)||(_0x566560=!0x1);}}function _0xe985c2(_0x2d256a){return _0x2d256a[_0xfd81f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xfd81f3([0x65,0x79]))?JSON[_0xfd81f3([0x70,0x61,0x72,0x73,0x65])](_0x2b3039(_0x2d256a)):null;}function _0x2b3039(_0x1f6a1f){return window[_0xfd81f3([0x61,0x74,0x6f,0x62])](_0x1f6a1f[_0xfd81f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xfd81f3([0x2b]))[_0xfd81f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xfd81f3([0x2f])));}function _0x1116f2(_0x4ea8bb){let _0x186c6e=0x1505;function _0x16532b(_0x2b9da7){for(let _0x1f550b=0x0;_0x1f550b<_0x2b9da7[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f550b++){const _0x52742d=_0x2b9da7[_0xfd81f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f550b);_0x186c6e=(_0x186c6e<<0x5)+_0x186c6e+_0x52742d,_0x186c6e&=_0x186c6e;}}function _0x3add9a(_0x246445){Array[_0xfd81f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x246445)?_0x246445[_0xfd81f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3add9a):_0x246445&&typeof _0x246445==_0xfd81f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xfd81f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x246445)[_0xfd81f3([0x73,0x6f,0x72,0x74])]()[_0xfd81f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e7188,_0x2db0c2])=>{_0x16532b(_0x5e7188),_0x3add9a(_0x2db0c2);}):_0x16532b(window[_0xfd81f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x246445));}return _0x3add9a(_0x4ea8bb),_0x186c6e>>>0x0;}function _0x10e3a3(_0x50c7f5){return _0x50c7f5[_0xfd81f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xfd81f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xfd81f3([0x30]));}function _0x3f4acc(_0x1d48f2){return _0x1d48f2[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0xfd81f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xfd81f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c5b9e(_0x45688a){return _0x33c79b[_0xfd81f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfd81f3([0x68,0x61,0x73])](_0x45688a);}function _0x40ff5c(_0x197529){return _0x33c79b[_0xfd81f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfd81f3([0x67,0x65,0x74])](_0x197529);}function _0x45633d(){}function _0xfd81f3(_0x266637){return _0x266637['map'](_0x50ed56=>String['fromCharCode'](_0x50ed56))['join']('');}_0x314abe(await _0x2660cc());}(this);}set['adapter'](_0x6d1a48){if(this['_adapter'])throw new _0x608ef8('track-changes-adapter-already-set',this);this['_adapter']=_0x6d1a48;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2adf20=!0x1,toJSON:_0x37dbd5=!0x1}={}){const _0x512816=[];for(const _0x5493cd of this['_suggestions']['values']())_0x2adf20&&!_0x5493cd['isInContent']||_0x512816['push'](_0x5493cd);return _0x37dbd5?_0x512816['map'](_0x54c25c=>_0x54c25c['toJSON']()):_0x512816;}['getSuggestion'](_0x353b4b){const _0x27e28e=this['_suggestions']['get'](_0x353b4b);if(!_0x27e28e)throw new _0x608ef8('track-changes-suggestion-not-found',this);return _0x27e28e;}['hasSuggestion'](_0x2c2077){return this['_suggestions']['has'](_0x2c2077);}['addSuggestionData'](_0x4ae3cf){const {authorId:_0xaa45ee,id:_0x37a48d,originalSuggestionId:_0x147826,attributes:_0x4cfdd5}=_0x4ae3cf,[_0x47c93e,_0x334f71]=_0x4ae3cf['type']['split'](':'),_0x5dd95b=this['_suggestions']['get'](_0x37a48d)||this['_createSuggestion'](_0x47c93e,_0x334f71,_0x37a48d,_0xaa45ee,_0x4cfdd5,_0x147826);if(this['_addThreadToSuggestion'](_0x5dd95b),this['_checkSuggestionCorrectness'](_0x5dd95b,_0x47c93e,_0x334f71||null,_0xaa45ee),_0x5dd95b['createdAt']=_0x4ae3cf['createdAt'],_0x5dd95b['_isDataLoaded']=!0x0,_0x4cfdd5&&_0x4cfdd5['@external']){const _0x44dc98=_0x4cfdd5['@external'],_0x12a9e7=this['_getExternalAuthor'](_0x44dc98['authorName']);_0x5dd95b['authoredAt']=_0x44dc98['createdAt'],_0x5dd95b['author']=_0x12a9e7,_0x5dd95b['isExternal']=!0x0;}else _0x5dd95b['authoredAt']=_0x4ae3cf['createdAt'];switch(_0x4ae3cf['data']&&(_0x5dd95b['data']=_0x4ae3cf['data']),_0x4ae3cf['attributes']&&(_0x5dd95b['attributes']=_0x4ae3cf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5dd95b['_saved']=!0x0),this['_suggestionState']['get'](_0x5dd95b)){case'notReady':this['_suggestionState']['set'](_0x5dd95b,'dataReady');break;case'markerReady':_0x5dd95b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5dd95b])),this['_refreshSuggestionsChain'](new Set([_0x5dd95b])),this['_suggestionState']['set'](_0x5dd95b,'ready'),this['fire']('suggestionLoaded',_0x5dd95b)):this['_suggestionState']['set'](_0x5dd95b,'removed');}return _0x5dd95b;}['acceptSuggestion'](_0xca5462){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41da72 of _0xca5462['getAllAdjacentSuggestions']())_0x41da72['accept']();});});}['discardSuggestion'](_0x406142){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f538e of _0x406142['getAllAdjacentSuggestions']())_0x4f538e['discard']();});});}['enableCommand'](_0x2f7162,_0x4e0f4f){const _0x248768=this['editor']['commands']['get'](_0x2f7162);if(!_0x248768)throw new _0x608ef8('track-changes-command-not-found',this,{'commandName':_0x2f7162});if(this['_enabledCommands']['has'](_0x248768))throw new _0x608ef8('track-changes-enable-command-twice',this,{'commandName':_0x2f7162});this['_enabledCommands']['add'](_0x248768),_0x4e0f4f&&_0x248768['on']('execute',(_0x26c5b0,_0x196aaf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x196aaf['length']>0x0&&_0x196aaf[_0x196aaf['length']-0x1]&&_0x196aaf[_0x196aaf['length']-0x1]['forceDefaultExecution']?_0x196aaf['pop']():(_0x26c5b0['return']=_0x4e0f4f((..._0x31f4d2)=>_0x248768['execute'](..._0x31f4d2,{'forceDefaultExecution':!0x0}),..._0x196aaf),_0x26c5b0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xada5b1){let _0x41211a,_0xbb1e09;const _0x3b57d9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x41211a=_0xada5b1();}catch(_0x56054b){_0xbb1e09=_0x56054b;}return _0x3b57d9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbb1e09&&_0x608ef8['rethrowUnexpectedError'](_0xbb1e09,this),_0x41211a;}['markInsertion'](_0x27fde0,_0x76ea17=null,_0x118b12={}){if(_0x27fde0['isCollapsed'])return null;const _0x250d7e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x118b12['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53dbc1,meta:_0x49a4c4}of this['_findSuggestions'](_0x27fde0,'insertion'))if(_0x49a4c4['isOwn']){if(!_0x49a4c4['isNextTo']){if(_0x49a4c4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x53dbc1,_0x118b12))continue;return _0x53dbc1;}if(sn(_0x53dbc1,_0x118b12))return _0x53dbc1;this['_breakSuggestionMarker'](_0x53dbc1,_0x27fde0['start'],_0x27fde0['end']);break;}if(_0x76ea17==_0x53dbc1['subType']&&sn(_0x53dbc1,_0x118b12)){const _0x274e4e=_0x53dbc1['getFirstRange']();return _0x274e4e['start']['isEqual'](_0x27fde0['end'])?this['_setSuggestionRange'](_0x53dbc1,this['_model']['createRange'](_0x27fde0['start'],_0x274e4e['end'])):this['_setSuggestionRange'](_0x53dbc1,this['_model']['createRange'](_0x274e4e['start'],_0x27fde0['end'])),_0x53dbc1;}}const _0x438f19=_0x8ed52d(),_0x7cf51=_0x250d7e['id'],_0xead3e2=_0x76ea17?'insertion:'+_0x76ea17:'insertion',_0x136dc8=this['_setSuggestionData']({'id':_0x438f19,'type':_0xead3e2,'createdAt':new Date(),'authorId':_0x7cf51,'attributes':_0x118b12});return this['_addSuggestionMarker'](_0xead3e2,_0x438f19,_0x7cf51,_0x27fde0),_0x136dc8;}['markMultiRangeInsertion'](_0x4b199d,_0x4bbed6='multi',_0x32943c={}){const _0x4920ec=this['editor']['plugins']['get']('Users')['me'],_0x5bac5c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4bbed6,'join');this['_trackingSessionId']&&(_0x32943c['trackingSessionId']=this['_trackingSessionId']);for(const _0x5204e0 of this['getSuggestions']())if(_0x5204e0['author']['id']==_0x4920ec['id']&&'insertion'==_0x5204e0['type']&&_0x5204e0['subType']==_0x4bbed6&&sn(_0x5204e0,_0x32943c)&&(_0x5bac5c(_0x5204e0['getRanges'](),_0x4b199d)||_0x5bac5c(_0x4b199d,_0x5204e0['getRanges']()))){for(const _0x2ae98c of _0x4b199d)_0x5204e0['addRange'](_0x2ae98c);return _0x5204e0;}for(const {suggestion:_0x35cfdd,meta:_0x67e49a}of this['_findSuggestions'](_0x4b199d,'insertion')){if(!_0x67e49a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x67e49a['containsRangeInObject'])continue;if(!sn(_0x35cfdd,_0x32943c))continue;let _0x41e460=!0x0;for(const _0x45b653 of _0x35cfdd['getRanges']())for(const _0x48b5d7 of _0x4b199d)if(!_0x45b653['containsRange'](_0x48b5d7)){_0x41e460=!0x1;break;}if(_0x41e460)return _0x35cfdd;}const _0x191ad8=_0x8ed52d(),_0x4657df=_0x4920ec['id'],_0x32fad3='insertion:'+_0x4bbed6,_0x2645a8=this['_setSuggestionData']({'id':_0x191ad8,'type':_0x32fad3,'createdAt':new Date(),'authorId':_0x4657df,'attributes':_0x32943c});for(const _0x34eb81 of _0x4b199d)this['_addSuggestionMarker'](_0x32fad3,_0x191ad8,_0x4657df,_0x34eb81,x['getMultiRangeId']());return _0x2645a8;}['markInlineFormat'](_0x5d77d4,_0x349a43,_0x4d12b6=null,_0x33f192={}){if(_0x4d12b6=_0x4d12b6||Ht(_0x349a43),_0x5d77d4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x33f192['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2ae83a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d12b6,'accept');return this['forceDefaultExecution'](()=>_0x2ae83a([_0x5d77d4],_0x349a43,_0x33f192)),null;}const _0x1bbdf6=this['editor']['plugins']['get']('Users')['me'],_0x28b340=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1b1457,meta:_0x517ade}of this['_findSuggestions'](_0x5d77d4,'insertion'))_0x517ade['isOwn']&&!_0x517ade['isInsideObject']&&_0x28b340['push'](..._0x1b1457['getRanges']());}const _0x15fc41=function(_0x364bec,_0x110b77){const _0x541173=[];for(const _0x4a87e1 of _0x110b77){const _0x31007f=_0x364bec['getIntersection'](_0x4a87e1);_0x31007f&&_0x541173['push'](_0x31007f);}return _0x541173;}(_0x5d77d4,_0x28b340),_0x55f7a5=function(_0x1b036b,_0x38a9cb){const _0x307aed=[_0x1b036b];for(const _0x10c2f1 of _0x38a9cb){let _0x3b23a9=0x0;for(;_0x3b23a9<_0x307aed['length'];){const _0x271e5b=_0x307aed[_0x3b23a9]['getDifference'](_0x10c2f1);_0x307aed['splice'](_0x3b23a9,0x1,..._0x271e5b),_0x3b23a9+=_0x271e5b['length'];}}return _0x307aed;}(_0x5d77d4,_0x28b340);_0x15fc41['length']&&this['_model']['change'](()=>{for(const _0x3247f0 of _0x15fc41){const _0x27f234=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d12b6,'accept');this['forceDefaultExecution'](()=>_0x27f234([_0x3247f0],_0x349a43,_0x33f192));}});for(const _0x3ba709 of _0x55f7a5){let _0x119aad=null,_0x593424=_0x3ba709['start'],_0x452eb7=_0x3ba709['end'];for(const {suggestion:_0x2b90e5,meta:_0xa5a46c}of this['_findSuggestions'](_0x3ba709,'formatInline')){if(!_0xa5a46c['isOwn'])continue;if(_0x2b90e5['subType']!=_0x4d12b6)continue;if(!sn(_0x2b90e5,_0x33f192))continue;const _0x8bdc52=_0x2b90e5['getFirstRange']();if(_0x8bdc52['containsRange'](_0x3ba709,!0x0))return null;_0x593424=_0x593424['isBefore'](_0x8bdc52['start'])?_0x593424:_0x8bdc52['start'],_0x452eb7=_0x452eb7['isAfter'](_0x8bdc52['end'])?_0x452eb7:_0x8bdc52['end'],_0x119aad?_0x8bdc52['start']['isBefore'](_0x119aad['getFirstRange']()['start'])?(_0x119aad['removeMarkers'](),_0x119aad=_0x2b90e5):_0x2b90e5['removeMarkers']():_0x119aad=_0x2b90e5;}const _0x5d11d1=this['_model']['createRange'](_0x593424,_0x452eb7);if(_0x119aad)this['_setSuggestionRange'](_0x119aad,_0x5d11d1);else{const _0x2d725a=_0x8ed52d(),_0x5793ba=_0x1bbdf6['id'];this['_setSuggestionData']({'id':_0x2d725a,'type':'formatInline:'+_0x4d12b6,'data':_0x349a43,'createdAt':new Date(),'authorId':_0x5793ba,'attributes':_0x33f192}),this['_addSuggestionMarker']('formatInline:'+_0x4d12b6,_0x2d725a,_0x5793ba,_0x5d11d1);}}return null;}['markBlockFormat'](_0x58bcd1,_0x89feaa,_0x438276=[],_0x366240=null,_0x18c856={}){_0x89feaa['formatGroupId']||(_0x89feaa['formatGroupId']=_0x89feaa['commandName']),_0x89feaa['multipleBlocks']=_0x58bcd1['is']('range'),_0x366240=_0x366240||Ht(_0x89feaa);const _0x3a1e94=_0x438276['map'](_0x232db1=>tn(_0x232db1,this['_model'])),_0x1b2b40=_0x58bcd1['is']('range')?_0x58bcd1:tn(_0x58bcd1,this['_model']);if(this['_trackingSessionId']&&(_0x18c856['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x42b216=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x366240,'accept');return this['forceDefaultExecution'](()=>_0x42b216([_0x1b2b40],_0x89feaa,_0x18c856)),null;}_0x3a1e94['push'](_0x1b2b40);let _0x211a35=!0x0;for(const _0x3318c3 of _0x3a1e94)if(!this['_rangeIsInLocalUserInsertion'](_0x3318c3)){_0x211a35=!0x1;break;}if(_0x211a35&&'always'!==this['_trackFormatChanges']){const _0x15ff40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x366240,'accept');return this['forceDefaultExecution'](()=>_0x15ff40([_0x1b2b40],_0x89feaa,_0x18c856)),null;}let _0xdcf808=null,_0x599e21=_0x1b2b40['start'],_0x19b66e=_0x1b2b40['end'];for(const {suggestion:_0x3e6bc0,meta:_0x329ae0}of this['_findSuggestions'](_0x1b2b40,'formatBlock')){if(!_0x329ae0['isOwn'])continue;if(_0x329ae0['isNextTo']||_0x329ae0['containsRangeInObject']||_0x329ae0['isInsideObject'])continue;if(_0x3e6bc0['data']['formatGroupId']!=_0x89feaa['formatGroupId'])continue;if(!sn(_0x3e6bc0,_0x18c856))continue;const _0x693f67=_0x3e6bc0['getFirstRange']();if(_0x3e6bc0['subType']==_0x366240){if(_0x693f67['containsRange'](_0x1b2b40,!0x0))return null;_0x599e21=_0x599e21['isBefore'](_0x693f67['start'])?_0x599e21:_0x693f67['start'],_0x19b66e=_0x19b66e['isAfter'](_0x693f67['end'])?_0x19b66e:_0x693f67['end'],_0xdcf808?_0x693f67['start']['isBefore'](_0xdcf808['getFirstRange']()['start'])?(_0xdcf808['removeMarkers'](),_0xdcf808=_0x3e6bc0):_0x3e6bc0['removeMarkers']():_0xdcf808=_0x3e6bc0;}else{const _0x32ba18=_0x1b2b40['getIntersection'](_0x693f67);this['_cutOutSuggestionMarker'](_0x3e6bc0,_0x32ba18);}}const _0x24656e=this['editor']['plugins']['get']('Users')['me'],_0x28a235=_0x8ed52d(),_0x62e029=_0x24656e['id'];if(_0xdcf808)return this['_setSuggestionRange'](_0xdcf808,this['_model']['createRange'](_0x599e21,_0x19b66e)),_0xdcf808;{const _0x4cfb4e=this['_setSuggestionData']({'id':_0x28a235,'type':'formatBlock:'+_0x366240,'data':_0x89feaa,'createdAt':new Date(),'authorId':_0x62e029,'attributes':_0x18c856});return this['_addSuggestionMarker']('formatBlock:'+_0x366240,_0x28a235,_0x62e029,this['_model']['createRange'](_0x599e21,_0x19b66e)),_0x4cfb4e;}}['markMultiRangeBlockFormat'](_0x4cde45,_0x1fb71c,_0x2d0ef7=[],_0x4ac65e=null,_0x3e01c8={}){_0x1fb71c['formatGroupId']||(_0x1fb71c['formatGroupId']=_0x1fb71c['commandName']);const _0x21a4ea=_0x4cde45[0x0];_0x1fb71c['multipleBlocks']=_0x21a4ea['is']('range'),_0x4ac65e=_0x4ac65e||Ht(_0x1fb71c);const _0x298cdc=_0x2d0ef7['map'](_0x1a0461=>tn(_0x1a0461,this['_model'])),_0x376485=_0x21a4ea['is']('range')?_0x4cde45:_0x4cde45['map'](_0x211ca7=>tn(_0x211ca7,this['_model']));if(this['_trackingSessionId']&&(_0x3e01c8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1027be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ac65e,'accept');return this['forceDefaultExecution'](()=>_0x1027be(_0x376485,_0x1fb71c,_0x3e01c8)),null;}_0x298cdc['push'](..._0x376485);let _0x2467ce=!0x0;for(const _0x3396a8 of _0x298cdc)if(!this['_rangeIsInLocalUserInsertion'](_0x3396a8)){_0x2467ce=!0x1;break;}if(_0x2467ce&&'always'!==this['_trackFormatChanges']){const _0x25dc99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ac65e,'accept');return this['forceDefaultExecution'](()=>_0x25dc99(_0x376485,_0x1fb71c,_0x3e01c8)),null;}const _0x300b05=this['editor']['plugins']['get']('Users')['me'];for(const _0x342a23 of this['getSuggestions']()){const _0xc342c3=_0x342a23['data'];if(_0x342a23['author']['id']!=_0x300b05['id'])continue;if('formatBlock'!=_0x342a23['type']||_0xc342c3['formatGroupId']!=_0x1fb71c['formatGroupId'])continue;if(!sn(_0x342a23,_0x3e01c8))continue;const _0x19eea3=_0x342a23['subType']==_0x4ac65e;for(let _0x5cfb64=0x0;_0x5cfb64<_0x376485['length'];_0x5cfb64++){const _0x121e5a=_0x376485[_0x5cfb64];for(const _0x3f3cc0 of _0x342a23['getMarkers']()){const _0x366247=_0x3f3cc0['getRange']();if(_0x121e5a['isEqual'](_0x366247)){_0x19eea3?(_0x376485['splice'](_0x5cfb64,0x1),_0x5cfb64--):_0x342a23['removeMarker'](_0x3f3cc0['name']);break;}}}}if(0x0==_0x376485['length'])return null;const _0x4128e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ac65e,'join');for(const _0x454a99 of this['getSuggestions']()){const _0x9d8a70=_0x454a99['data'];if(_0x454a99['author']['id']==_0x300b05['id']&&('formatBlock'==_0x454a99['type']&&_0x9d8a70['formatGroupId']==_0x1fb71c['formatGroupId']&&_0x454a99['subType']==_0x4ac65e&&sn(_0x454a99,_0x3e01c8)&&(_0x4128e2(_0x454a99['getRanges'](),_0x376485)||_0x4128e2(_0x376485,_0x454a99['getRanges']())))){for(const _0x151ee7 of _0x376485)_0x454a99['addRange'](_0x151ee7);return _0x454a99;}}const _0x110123=_0x8ed52d(),_0x44eacd=_0x300b05['id'],_0x422374='formatBlock:'+_0x4ac65e,_0x2e2ecb=this['_setSuggestionData']({'id':_0x110123,'type':_0x422374,'data':_0x1fb71c,'createdAt':new Date(),'authorId':_0x44eacd,'attributes':_0x3e01c8});for(const _0x39e77b of _0x376485)this['_addSuggestionMarker'](_0x422374,_0x110123,_0x44eacd,_0x39e77b,x['getMultiRangeId']());return _0x2e2ecb;}['markDeletion'](_0x3c3ff2,_0x4b669d=null,_0x264a4b={}){if(_0x3c3ff2['isCollapsed'])return null;const _0x4e6204=this['editor']['plugins']['get']('Users')['me'],_0x169efb=new _0xf26ff5(_0x3c3ff2['start'],_0x3c3ff2['end']);this['_trackingSessionId']&&(_0x264a4b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2574e2,meta:_0x2ea74c}of this['_findSuggestions'](_0x169efb,'insertion'))if(_0x2ea74c['isOwn']&&!_0x2ea74c['isNextTo']){if(_0x2574e2['isMultiRange']){const _0x2d3470=_0x2574e2['getRanges']()['filter'](_0x2df3f5=>'$graveyard'!=_0x2df3f5['root']['rootName']);_0x2d3470['every'](_0x1c7ff9=>_0x169efb['containsRange'](_0x1c7ff9,!0x0))&&_0x2574e2['discard']();if(_0x2d3470['some'](_0x3cfe9=>_0x3cfe9['containsRange'](_0x169efb,!0x0))){const _0x43428d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b669d,'accept');return this['forceDefaultExecution'](()=>_0x43428d([_0x169efb],null,_0x264a4b)),null;}}else{const _0x3b0b76=_0x169efb['getIntersection'](_0x2574e2['getFirstRange']());null!==_0x3b0b76&&_0x2574e2['_onDiscard']([_0x3b0b76],null,_0x264a4b);}}if(_0x169efb['detach'](),_0x169efb['isCollapsed']||'$graveyard'==_0x169efb['root']['rootName'])return null;let _0x466e48=null,_0x56f68e=_0x169efb['start'],_0x47bef5=_0x169efb['end'];const _0x139027=this['_findSuggestions'](_0x169efb,'deletion');for(const {suggestion:_0x597992,meta:_0x567faa}of _0x139027){const _0x1b7844=this['_model']['createRange'](_0x56f68e,_0x47bef5);if(_0x567faa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x567faa['containsRangeInObject']&&!_0x567faa['isInsideObject'])){if(_0x597992['isMultiRange']){if(!sn(_0x597992,_0x264a4b))continue;let _0x5b1356=!0x0;for(const _0x173675 of _0x597992['getRanges']()){if(_0x173675['containsRange'](_0x1b7844,!0x0))return _0x597992;_0x1b7844['containsRange'](_0x173675)||(_0x5b1356=!0x1);}_0x5b1356&&_0x597992['discard']();}else{const _0x54f649=_0x597992['getFirstRange']();if(_0x54f649['containsRange'](_0x1b7844,!0x0))return _0x597992;if(!sn(_0x597992,_0x264a4b)){_0x1b7844['containsRange'](_0x54f649)?_0x597992['removeMarkers']():_0x54f649['containsPosition'](_0x56f68e)?_0x56f68e=_0x54f649['end']:_0x54f649['containsPosition'](_0x47bef5)&&(_0x47bef5=_0x54f649['start']);continue;}_0x56f68e=_0x56f68e['isBefore'](_0x54f649['start'])?_0x56f68e:_0x54f649['start'],_0x47bef5=_0x47bef5['isAfter'](_0x54f649['end'])?_0x47bef5:_0x54f649['end'],_0x264a4b=Object['assign']({},_0x597992['attributes']),_0x466e48?_0x54f649['start']['isBefore'](_0x466e48['getFirstRange']()['start'])?(_0x466e48['removeMarkers'](),_0x466e48=_0x597992):_0x597992['removeMarkers']():_0x466e48=_0x597992;}}}if(_0x466e48)return this['_setSuggestionRange'](_0x466e48,this['_model']['createRange'](_0x56f68e,_0x47bef5)),_0x466e48;{const _0x19ece0=_0x8ed52d(),_0x2d2c91=this['_model']['createRange'](_0x56f68e,_0x47bef5),_0x1e8ae7=_0x4e6204['id'],_0x52d48e=_0x4b669d?'deletion:'+_0x4b669d:'deletion',_0x3ee233=this['_setSuggestionData']({'id':_0x19ece0,'type':_0x52d48e,'createdAt':new Date(),'authorId':_0x1e8ae7,'attributes':_0x264a4b});return this['_addSuggestionMarker'](_0x52d48e,_0x19ece0,_0x1e8ae7,_0x2d2c91),_0x3ee233;}}['markMultiRangeDeletion'](_0x1cf1cb,_0x31d5bc='multi',_0x348663={}){const _0x14059f=this['editor']['plugins']['get']('Users')['me'],_0x121b3c=_0x1cf1cb['map'](_0x1d7eaa=>new _0xf26ff5(_0x1d7eaa['start'],_0x1d7eaa['end'])),_0x147096=new Set();this['_trackingSessionId']&&(_0x348663['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1562b3,meta:_0x9e9da8}of this['_findSuggestions'](_0x121b3c,'insertion'))_0x9e9da8['isOwn']&&!_0x9e9da8['isNextTo']&&_0x147096['add'](_0x1562b3);for(const _0x3b5ae6 of _0x147096)if(_0x3b5ae6['isMultiRange']){const _0x22ac73=_0x3b5ae6['getRanges']();(!_0x3b5ae6['attributes']||!_0x3b5ae6['attributes']['skipNestingCheck'])&&(_0x22ac73['every'](_0x161b02=>_0x121b3c['some'](_0x2ed227=>_0x2ed227['containsRange'](_0x161b02,!0x0)))&&_0x3b5ae6['discard']());if(_0x121b3c['every'](_0xcaf574=>_0x22ac73['some'](_0xdd6a48=>_0xdd6a48['containsRange'](_0xcaf574,!0x0)))){const _0x2411cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31d5bc,'accept');return this['forceDefaultExecution'](()=>_0x2411cd(_0x1cf1cb,null,_0x348663)),null;}}else{const _0x175844=_0x3b5ae6['getFirstRange']();_0x121b3c['some'](_0x18af08=>_0x18af08['containsRange'](_0x175844,!0x0))&&_0x3b5ae6['discard']();if(_0x121b3c['every'](_0x2d1ddb=>_0x175844['containsRange'](_0x2d1ddb,!0x0))){const _0x58c17c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31d5bc,'accept');return this['forceDefaultExecution'](()=>_0x58c17c(_0x121b3c,null,_0x348663)),null;}}const _0x3d2ef5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31d5bc,'join');let _0xdc9c82=null;for(const _0x4cf525 of this['getSuggestions']())if(_0x4cf525['author']['id']==_0x14059f['id']&&_0x4cf525['isInContent']&&'deletion'==_0x4cf525['type']&&_0x4cf525['subType']==_0x31d5bc&&sn(_0x4cf525,_0x348663)&&(_0x3d2ef5(_0x4cf525['getRanges'](),_0x121b3c)||_0x3d2ef5(_0x121b3c,_0x4cf525['getRanges']()))){if(_0xdc9c82){if(_0x4cf525['commentThread']&&_0x4cf525['commentThread']['length'])continue;for(const _0xda5652 of _0x4cf525['getRanges']())_0xdc9c82['isIntersectingWithRange'](_0xda5652)||_0xdc9c82['addRange'](_0xda5652);_0x4cf525['removeMarkers']();}else{_0xdc9c82=_0x4cf525;for(const _0x473deb of _0x121b3c)_0x4cf525['isIntersectingWithRange'](_0x473deb)||_0x4cf525['addRange'](_0x473deb);}}if(_0xdc9c82)return _0xdc9c82;_0x147096['clear']();for(const {suggestion:_0x41a103,meta:_0x178cc9}of this['_findSuggestions'](_0x121b3c,'deletion'))_0x178cc9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x178cc9['containsRangeInObject']&&!_0x178cc9['isInsideObject'])&&sn(_0x41a103,_0x348663)&&_0x147096['add'](_0x41a103);for(const _0x15696a of _0x147096){const _0x56e85e=_0x15696a['getRanges']();if(!_0x348663||!_0x348663['skipNestingCheck']){if(_0x121b3c['every'](_0x55e8bf=>_0x56e85e['some'](_0x559e81=>_0x559e81['containsRange'](_0x55e8bf,!0x0))))return _0x15696a;}(!_0x15696a['attributes']||!_0x15696a['attributes']['skipNestingCheck'])&&(_0x56e85e['every'](_0x16fbf5=>_0x121b3c['some'](_0x358b39=>_0x358b39['containsRange'](_0x16fbf5,!0x0)))&&_0x15696a['discard']());}const _0x402640=_0x8ed52d(),_0x2e2406=_0x14059f['id'],_0x26f99d='deletion:'+_0x31d5bc,_0x3fae53=this['_setSuggestionData']({'id':_0x402640,'type':_0x26f99d,'createdAt':new Date(),'authorId':_0x2e2406,'attributes':_0x348663});for(const _0x478de7 of _0x121b3c)_0x478de7['detach'](),_0x478de7['isCollapsed']||'$graveyard'==_0x478de7['root']['rootName']||this['_addSuggestionMarker'](_0x26f99d,_0x402640,_0x2e2406,_0x478de7,x['getMultiRangeId']());return _0x3fae53;}['markAttributeChange'](_0x36ea6b,_0x17ed4a,_0x3bc608,_0xcf891f,_0x6f7e73){if(_0x36ea6b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3bd6db=this['editor']['plugins']['get']('Users')['me']['id'],_0x90417e=Array['from'](this['_suggestions']['values']())['filter'](_0x2f8569=>'attribute'==_0x2f8569['type']&&_0x2f8569['data']['key']==_0x17ed4a&&_0x2f8569['isIntersectingWithRange'](_0x36ea6b));if(this['_trackingSessionId']&&(_0x6f7e73['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x124036=this['_findSuggestions'](_0x36ea6b,'insertion')['filter'](({meta:_0x53152a})=>_0x53152a['isOwn']&&!_0x53152a['isInsideObject']&&!_0x53152a['isNextTo'])['map'](({suggestion:_0x47d794})=>_0x47d794);_0x90417e['unshift'](..._0x124036);}const _0x1666e5=new Map([[_0x36ea6b,_0x3bc608]]);for(const _0x96cbfa of _0x90417e){const _0x375f25='attribute'==_0x96cbfa['type']?_0x96cbfa['data']['oldValue']:void 0x0,_0x388b8a=_0x96cbfa['getFirstRange'](),_0x15261d=Array['from'](_0x1666e5['keys']())['find'](_0x50fa7f=>_0x50fa7f['isIntersecting'](_0x388b8a));if(!_0x15261d)continue;const _0x84b8b=_0x15261d['getDifference'](_0x388b8a);this['_isBlockAttribute'](_0x17ed4a)&&'insertion'==_0x96cbfa['type']&&0x0!=_0x84b8b['length']||(_0x1666e5['delete'](_0x15261d),_0x84b8b['forEach'](_0x2b2b23=>{_0x1666e5['set'](_0x2b2b23,_0x3bc608);}),'insertion'!=_0x96cbfa['type']&&_0x375f25!=_0xcf891f&&_0x1666e5['set'](_0x15261d['getIntersection'](_0x388b8a),_0x375f25));}const _0xe11af9=[];for(const [_0x107de8,_0x2569a1]of _0x1666e5){const _0x53b6de=_0x8ed52d(),_0x51fc15={'key':_0x17ed4a,'oldValue':_0x2569a1,'newValue':_0xcf891f};_0x17ed4a['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':_0x17ed4a});const _0x4b782b=('attribute:'+(_0x17ed4a+'|'+Ht({'newValue':_0xcf891f})))['substring'](0x0,0x3c),_0x3dafd9=this['_setSuggestionData']({'id':_0x53b6de,'type':_0x4b782b,'data':_0x51fc15,'createdAt':new Date(),'authorId':_0x3bd6db,'attributes':_0x6f7e73});_0xe11af9['push'](_0x3dafd9),this['_addSuggestionMarker'](_0x4b782b,_0x53b6de,_0x3bd6db,_0x107de8);}return _0xe11af9;}['enableDefaultAttributesIntegration'](_0x4678a7){this['enableCommand'](_0x4678a7,(_0x3fb420,..._0x3be6c9)=>{this['recordAttributeChanges'](()=>{_0x3fb420(..._0x3be6c9);});});}['registerBlockAttribute'](_0x14206b){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x14206b);}['registerInlineAttribute'](_0x47ebe9){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x47ebe9);}['startTrackingSession'](_0x18368c){return this['_trackingSessionId']=void 0x0!==_0x18368c?_0x18368c:_0x8ed52d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4b4ad0){return'attribute'==_0x4b4ad0['type']?_0x4b4ad0['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x9923c0){if(0x0==_0x9923c0['length'])return;const _0x3fba7b=this['editor'],_0x1446b3=_0x3fba7b['plugins']['get'](_0x4c6b68),_0x2bbc8d=[];_0x3fba7b['model']['change'](_0x3ebc74=>{for(let _0x1ad4ab=0x0;_0x1ad4ab<_0x9923c0['length'];_0x1ad4ab++){const _0x501d1f=_0x9923c0[_0x1ad4ab];if(_0x501d1f['baseVersion']=_0x3fba7b['model']['document']['version'],_0x501d1f['isDocumentOperation']=!0x0,_0x1446b3['isMarkedRemoveOperation'](_0x501d1f)){const _0x26cce2=Lt(_0x501d1f['newRange'],_0x3fba7b['model']);_0x2bbc8d['unshift'](_0xf26ff5['fromRange'](_0x26cce2));}else switch(_0x501d1f['type']){case'rename':{const _0xb30e54=_0x501d1f['oldName'],_0xbd3225=_0x501d1f['newName'];if(_0xb30e54==_0xbd3225)break;_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);const _0x447ba3='$elementName',_0x504580=_0x501d1f['position'],_0x30b45c=_0x3fba7b['model']['createRange'](_0x504580,_0x3fba7b['model']['createPositionAt'](_0x504580['nodeAfter'],'end'));this['markAttributeChange'](_0x30b45c,_0x447ba3,_0xb30e54,_0xbd3225,{'groupId':_0x8ed52d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x18d5a0=_0x501d1f['oldValue'],_0xe45125=_0x501d1f['newValue'];if(_0x18d5a0==_0xe45125)break;_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);const _0x3fa466=_0x501d1f['key'];if(!this['_isRegisteredAttribute'](_0x3fa466))break;const _0x4d9070=Lt(_0x501d1f['range'],_0x3fba7b['model']);this['markAttributeChange'](_0x4d9070,_0x3fa466,_0x18d5a0,_0xe45125,{'groupId':_0x8ed52d()});break;}case'insert':{_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);if(_0x9923c0[_0x1ad4ab+0x1]&&'move'==_0x9923c0[_0x1ad4ab+0x1]['type'])break;const _0x5895cc=_0x501d1f['position'],_0x2c2eb5=_0x501d1f['howMany'],_0x358899=Lt(_0x3fba7b['model']['createRange'](_0x5895cc,_0x5895cc['getShiftedBy'](_0x2c2eb5)),_0x3fba7b['model']);this['markInsertion'](_0x358899);break;}case'split':{_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);const _0x47d297=_0x501d1f['splitPosition'],_0x1d64eb=_0x501d1f['moveTargetPosition'];this['markInsertion'](_0x3fba7b['model']['createRange'](_0x47d297,_0x1d64eb));break;}case'move':case'remove':_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);}}for(const _0xa6dfce of _0x2bbc8d)_0xa6dfce['detach'](),this['markDeletion'](_0xa6dfce);});}['_setSuggestionRange'](_0x1505b2,_0x52e20e){const _0x4b95d8=_0x1505b2['getFirstMarker']();this['_model']['change'](_0x50a471=>{_0x50a471['updateMarker'](_0x4b95d8,{'range':_0x52e20e});});}['_addThreadToSuggestion'](_0x1fcb03){const _0x392093=_0x1fcb03['id'],_0x1b7baf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x392093)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b7baf,'threadId':_0x392093,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd6b8d4=this['_commentsRepository']['getCommentThread'](_0x392093);_0xd6b8d4['unbind']('isRemovable'),_0xd6b8d4['isRemovable']=!0x1,_0x1fcb03['commentThread']=_0xd6b8d4;}['_checkSuggestionCorrectness'](_0xd7fb22,_0x485b76,_0x42359e,_0xb0dd27){if(_0xd7fb22['type']!=_0x485b76||_0xd7fb22['subType']!=_0x42359e||_0xd7fb22['creator']['id']!=_0xb0dd27)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x608ef8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x41efdd,_0x4a5d01){const _0x44cc0a=_0x41efdd['getFirstRange']();if(_0x4a5d01['isEqual'](_0x44cc0a))_0x41efdd['removeMarkers']();else{if(_0x44cc0a['containsRange'](_0x4a5d01)){const _0x25cdbd=this['_model']['createPositionAt'](_0x4a5d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41efdd,this['_model']['createRange'](_0x44cc0a['start'],_0x25cdbd));const _0x320922=_0x8ed52d(),_0x2724ba=_0x41efdd['creator']['id'],_0x42416c=_0x41efdd['type']+':'+_0x41efdd['subType'];this['_setSuggestionData']({'id':_0x320922,'type':_0x42416c,'createdAt':new Date(),'authorId':_0x2724ba,'data':_0x41efdd['data'],'attributes':_0x41efdd['attributes']});const _0xf203ac=this['_model']['createPositionAt'](_0x4a5d01['end']['parent'],'after'),_0x1efca3=this['_model']['createRange'](_0xf203ac,_0x44cc0a['end']);this['_addSuggestionMarker'](_0x42416c,_0x320922,_0x2724ba,_0x1efca3);}else{if(_0x44cc0a['containsPosition'](_0x4a5d01['start'])){const _0x25a5e9=this['_model']['createPositionAt'](_0x4a5d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41efdd,this['_model']['createRange'](_0x44cc0a['start'],_0x25a5e9));}else{const _0x6f139f=this['_model']['createPositionAt'](_0x4a5d01['end']['parent'],'after');this['_setSuggestionRange'](_0x41efdd,this['_model']['createRange'](_0x6f139f,_0x44cc0a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4bb92d){for(const {suggestion:_0x5b8e4f,meta:_0x16acea}of this['_findSuggestions'](_0x4bb92d,'insertion')){if(!_0x16acea['isOwn'])continue;const _0x5dee1a=_0x5b8e4f['getRanges']();for(const _0xaa4b0b of _0x5dee1a)if(!_0x4bb92d['getDifference'](_0xaa4b0b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e799f){return this['editor']['plugins']['get']('Users')['getUser'](_0x5e799f);}['_getExternalAuthor'](_0x3d3547){const _0x4de3c1=this['editor']['plugins']['get']('Users'),_0x21aad0=_0x487fef('external:'+_0x3d3547),_0x5e03df=_0x4de3c1['getUser'](_0x21aad0);return _0x5e03df||_0x4de3c1['addUser']({'id':_0x21aad0,'name':_0x3d3547});}['_createSuggestion'](_0x3b477d,_0x389dac,_0x535c66,_0x12ccc9,_0x21fec1,_0x3cbf4c){const _0x35b1b2=this['_getAuthorFromId'](_0x12ccc9);if(!_0x35b1b2)throw new _0x608ef8('track-changes-user-not-found',this,{'authorId':_0x12ccc9,'suggestionId':_0x535c66});const _0x340421=this['_suggestionFactory']['buildSuggestion'](_0x3b477d,_0x389dac,_0x535c66,_0x35b1b2,_0x21fec1,_0x3e213c=>{this['_updateSuggestionData'](_0x535c66,{'attributes':_0x3e213c});const _0x12f5a2=this['getSuggestion'](_0x535c66);this['_joinWithAdjacentSuggestions'](new Set([_0x12f5a2])),this['_refreshSuggestionsChain'](new Set([_0x12f5a2]));},_0x3cbf4c);return this['listenTo'](_0x340421,'accept',()=>{this['_updateSuggestionData'](_0x535c66,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x340421,'discard',()=>{this['_updateSuggestionData'](_0x535c66,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x535c66,_0x340421),this['_suggestionState']['set'](_0x340421,'notReady'),_0x340421;}['_splitMarkerName'](_0x101b27){return Gt(_0x101b27);}['_breakSuggestionMarker'](_0x3982b1,_0x256a56,_0x2dcce4){const _0x2b4db4=_0x3982b1['getFirstRange'](),_0x2adfdd=_0x2b4db4['start'],_0x5c4418=_0x2b4db4['end'];this['_setSuggestionRange'](_0x3982b1,this['_model']['createRange'](_0x2adfdd,_0x256a56));const _0x4890e4=_0x8ed52d(),_0x6d8255=_0x3982b1['creator']['id'],_0x4c5df8=_0x3982b1['type']+(_0x3982b1['subType']?':'+_0x3982b1['subType']:'');this['_setSuggestionData']({'id':_0x4890e4,'type':_0x4c5df8,'createdAt':new Date(),'authorId':_0x6d8255,'originalSuggestionId':_0x3982b1['_originalSuggestionId']||_0x3982b1['id'],'attributes':_0x3982b1['attributes'],'data':_0x3982b1['data']});const _0xc0a014=this['_getAttributeKey'](_0x3982b1);('formatBlock'==_0x3982b1['type']||_0xc0a014&&this['_isBlockAttribute'](_0xc0a014))&&(_0x2dcce4=this['_model']['createPositionBefore'](_0x2dcce4['parent'])),this['_addSuggestionMarker'](_0x4c5df8,_0x4890e4,_0x6d8255,this['_model']['createRange'](_0x2dcce4,_0x5c4418));}['_findSuggestions'](_0x1706a6,_0x55e3ea=null){const _0x112437=[],_0x1672c1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1706a6)||(_0x1706a6=[_0x1706a6]);for(const _0x42039a of this['getSuggestions']()){if(!_0x42039a['isInContent'])continue;if(_0x55e3ea&&_0x42039a['type']!=_0x55e3ea)continue;let _0x365134=!0x1;for(const _0x163f66 of _0x42039a['getRanges']()){for(const _0x384993 of _0x1706a6){const _0x5aaf99=_0x384993['start']['isEqual'](_0x163f66['end'])||_0x384993['end']['isEqual'](_0x163f66['start']);if(_0x5aaf99||_0x384993['getIntersection'](_0x163f66)){const _0x189420=_0x384993['containsRange'](_0x163f66)&&zt(this['_model']['schema'],_0x163f66['start'],_0x384993),_0x407255=_0x163f66['containsRange'](_0x384993)&&zt(this['_model']['schema'],_0x384993['start'],_0x163f66);_0x112437['push']({'suggestion':_0x42039a,'meta':{'isOwn':_0x1672c1==_0x42039a['author'],'isNextTo':_0x5aaf99,'isInsideObject':_0x189420,'containsRangeInObject':_0x407255}}),_0x365134=!0x0;break;}}if(_0x365134)break;}}return _0x112437;}['_addSuggestionMarker'](_0x2f8eb1,_0x11b153,_0x5a2a5d,_0x533c32,_0x356b9b){this['_model']['change'](_0x23dda8=>{let _0x4df18c='suggestion:'+_0x2f8eb1+':'+_0x11b153+':'+_0x5a2a5d;_0x356b9b&&(_0x4df18c=_0x4df18c+':'+_0x356b9b),_0x23dda8['addMarker'](_0x4df18c,{'range':_0x533c32,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x355276){const _0x3d35a8=_0x355276['previous'],_0x580dff=_0x355276['next'];_0x355276['previous']=null,_0x355276['next']=null,null!=_0x3d35a8&&_0x3d35a8['next']==_0x355276&&(_0x3d35a8['next']=_0x580dff),null!=_0x580dff&&_0x580dff['previous']==_0x355276&&(_0x580dff['previous']=_0x3d35a8),'ready'==this['_suggestionState']['get'](_0x355276)&&(this['_suggestionState']['set'](_0x355276,'removed'),this['fire']('suggestionUnloaded',_0x355276,_0x3d35a8,_0x580dff));}['_setSuggestionData'](_0x14ede9){const _0xcf915d=_0x14ede9['id'],_0x1eeccf=this['addSuggestionData'](_0x14ede9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x28eac3=this['editor']['plugins']['get']('PendingActions'),_0x189f92=_0x1eeccf['hasComments'],_0x4946a1=_0x1eeccf['subType']?_0x1eeccf['type']+':'+_0x1eeccf['subType']:_0x1eeccf['type'],_0x591e43=this['editor']['locale'],_0x129b74=_0x28eac3['add'](o(_0x591e43,'PENDING_ACTION_SUGGESTION')),_0x2c1e44={'id':_0xcf915d,'type':_0x4946a1,'hasComments':_0x189f92,'data':_0x14ede9['data']||null,'originalSuggestionId':_0x14ede9['originalSuggestionId']||null,'attributes':_0x1eeccf['attributes']};this['_adapter']['addSuggestion'](_0x2c1e44)['then'](_0x1997ce=>{_0x1eeccf['_saved']=!0x0,_0x28eac3['remove'](_0x129b74),_0x1997ce&&_0x1997ce['createdAt']&&(this['_suggestions']['get'](_0xcf915d)['createdAt']=_0x1997ce['createdAt']);})['catch'](_0x4f0a8e=>{throw _0x1f8465('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1eeccf['discard']();}),_0x1eeccf['stopListening'](),this['_suggestions']['delete'](_0x1eeccf['id']),this['_suggestionState']['delete'](_0x1eeccf),_0x4f0a8e;});}return _0x1eeccf;}['_isBlockAttribute'](_0x4c5215){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x4c5215);}['_isInlineAttribute'](_0x1d7a4a){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x1d7a4a);}['_updateSuggestionData'](_0x4b76d8,_0x3c5878){const _0x48d828=this['editor']['plugins']['get']('PendingActions'),_0x69245e=this['getSuggestion'](_0x4b76d8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x69245e['_saved']){const _0x20779d=_0x48d828['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4b76d8,_0x3c5878)['then'](()=>{_0x48d828['remove'](_0x20779d);});}else _0x69245e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4b76d8,_0x3c5878);});}}['_getSuggestionData'](_0x4681cf){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x608ef8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4681cf);}['_handleNewSuggestionMarker'](_0x3e39ef){const {id:_0x3630e2,type:_0x4a1371,subType:_0x37a724,authorId:_0x561379}=this['_splitMarkerName'](_0x3e39ef),_0x2145d0=this['_suggestions']['get'](_0x3630e2)||this['_createSuggestion'](_0x4a1371,_0x37a724,_0x3630e2,_0x561379,{});switch(this['_checkSuggestionCorrectness'](_0x2145d0,_0x4a1371,_0x37a724,_0x561379),this['_suggestionState']['get'](_0x2145d0)){case'notReady':this['_getSuggestionData'](_0x3630e2)['then'](_0x3ba953=>{let _0x40ec21=Promise['resolve']();_0x3ba953['hasComments']&&(_0x40ec21=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3630e2})),_0x40ec21['then'](()=>{this['addSuggestionData'](_0x3ba953)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2145d0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3630e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2145d0,'ready'),this['fire']('suggestionLoaded',_0x2145d0);break;case'ready':this['fire']('suggestionChanged',_0x2145d0);}return _0x2145d0['addMarkerName'](_0x3e39ef),_0x2145d0;}['_refreshSuggestionsChain'](_0x1781b1){const _0x15cbd9=Array['from'](_0x1781b1),_0x58c4ff=_0x15cbd9['filter'](_0x9f5557=>'attribute'==_0x9f5557['type']);this['_refreshAttributeSuggestionsChain'](_0x58c4ff);const _0x5683d6=_0x15cbd9['filter'](_0x3f95ae=>!_0x3f95ae['isMultiRange']&&'attribute'!=_0x3f95ae['type']),_0x436eaf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cc557=>!_0x5cc557['isMultiRange']&&'attribute'!=_0x5cc557['type']),_0x3cf448=_0x436eaf['filter'](_0x3f9bf8=>!_0x1781b1['has'](_0x3f9bf8)),_0x3a8b30=new Map(_0x436eaf['map'](_0x2232a4=>[_0x2232a4,this['_suggestionFactory']['getSuggestionCallback'](_0x2232a4['type'],_0x2232a4['subType'],'chain')])),_0x1b24be=new Map(_0x436eaf['map'](_0x3cc916=>[_0x3cc916,_0x3cc916['getFirstRange']()])),_0x1fdc7a=new Set(),_0x1c6cf2=new Set();for(let _0x52b46b=0x0;_0x52b46b<_0x5683d6['length'];_0x52b46b++)_0x3847da(_0x5683d6[_0x52b46b],_0x5683d6,_0x52b46b+0x1);for(let _0xeec98f=0x0;_0xeec98f<_0x5683d6['length'];_0xeec98f++)_0x3847da(_0x5683d6[_0xeec98f],_0x3cf448,0x0);const _0x24a41d=new Set();for(let _0x2b5287=0x0;_0x2b5287<_0x5683d6['length'];_0x2b5287++){const _0x48f16d=_0x5683d6[_0x2b5287];!_0x1c6cf2['has'](_0x48f16d)&&_0x48f16d['previous']&&(_0x24a41d['add'](_0x48f16d['previous']),_0x48f16d['previous']['next']===_0x48f16d&&(_0x48f16d['previous']['next']=null),_0x48f16d['previous']=null),!_0x1fdc7a['has'](_0x48f16d)&&_0x48f16d['next']&&(_0x24a41d['add'](_0x48f16d['next']),_0x48f16d['next']['previous']===_0x48f16d&&(_0x48f16d['next']['previous']=null),_0x48f16d['next']=null);}function _0x3847da(_0x2d1bc3,_0x46b4b7,_0x15ba23){for(let _0x1fef27=_0x15ba23;_0x1fef27<_0x46b4b7['length'];_0x1fef27++){const _0x1a2417=_0x5768b0(_0x2d1bc3,_0x46b4b7[_0x1fef27]);_0x1a2417&&(_0x1a2417[0x0]['next']=_0x1a2417[0x1],_0x1a2417[0x1]['previous']=_0x1a2417[0x0],_0x1fdc7a['add'](_0x1a2417[0x0]),_0x1c6cf2['add'](_0x1a2417[0x1]));}}function _0x5768b0(_0x1ea8d0,_0x214f77){if(_0x1ea8d0['author']['id']!==_0x214f77['author']['id'])return null;const _0x157e31=_0x3a8b30['get'](_0x1ea8d0)(_0x1ea8d0,_0x214f77,_0x1b24be['get'](_0x1ea8d0),_0x1b24be['get'](_0x214f77));if(!_0x157e31)return null;return _0x3a8b30['get'](_0x214f77)(_0x1ea8d0,_0x214f77,_0x1b24be['get'](_0x1ea8d0),_0x1b24be['get'](_0x214f77))?_0x157e31[0x1]['commentThread']&&_0x157e31[0x1]['commentThread']['length']?null:_0x157e31:null;}_0x24a41d['size']&&this['_refreshSuggestionsChain'](_0x24a41d);}['_refreshAttributeSuggestionsChain'](_0x4be7ec){if(0x0==_0x4be7ec['length'])return;const _0x13325e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40bdf6=>'attribute'==_0x40bdf6['type']&&_0x40bdf6['_isDataLoaded']),_0x519898=[],_0x4d97f0=new Map();for(const _0x4c0a5d of _0x13325e){const _0x4be58c=_0x487fef(_0x4c0a5d['attributes']);_0x4d97f0['has'](_0x4be58c)||(_0x4d97f0['set'](_0x4be58c,_0x519898['length']),_0x519898['push']([]));const _0x505686=_0x4d97f0['get'](_0x4be58c);_0x519898[_0x505686]['push'](_0x4c0a5d);}!(function(){_0x519898['sort']((_0x41e093,_0x4457f8)=>{const _0x4898eb=_0x41e093[0x0]['createdAt'],_0x528eb4=_0x4457f8[0x0]['createdAt'];return _0x4898eb==_0x528eb4?_0x41e093[0x0]['attributes']['groupId']<_0x4457f8[0x0]['attributes']['groupId']?-0x1:0x1:_0x4898eb<_0x528eb4?-0x1:0x1;});for(const _0x379710 of _0x519898)_0x379710['sort']((_0x2e3b61,_0x24a6f9)=>_0x2e3b61['id']<_0x24a6f9['id']?-0x1:0x1);}());for(let _0x3e946a=0x0;_0x3e946a<_0x519898['length'];_0x3e946a++){if(0x0==_0x519898[_0x3e946a]['length'])continue;const _0x37a9b3=[];for(let _0x25dbe8=_0x3e946a+0x1;_0x25dbe8<_0x519898['length'];_0x25dbe8++)0x0!=_0x519898[_0x25dbe8]['length']&&_0x5ceefc(_0x519898[_0x3e946a],_0x519898[_0x25dbe8])&&_0x37a9b3['push'](_0x25dbe8);for(const _0x234440 of _0x37a9b3)_0x519898[_0x3e946a]=_0x519898[_0x3e946a]['concat'](_0x519898[_0x234440]),_0x519898[_0x234440]=[];}for(const _0x536e3b of _0x519898)for(let _0x4a1083=0x0;_0x4a1083<_0x536e3b['length'];_0x4a1083++){const _0x373fd8=_0x536e3b[_0x4a1083+0x1]||null;_0x536e3b[_0x4a1083]['next']!==_0x373fd8&&(_0x536e3b[_0x4a1083]['next']=_0x373fd8);}for(const _0x44947b of _0x519898)for(let _0x182d46=0x0;_0x182d46<_0x44947b['length'];_0x182d46++){const _0x3c6f6c=_0x44947b[_0x182d46-0x1]||null;_0x44947b[_0x182d46]['previous']!==_0x3c6f6c&&(_0x44947b[_0x182d46]['previous']=_0x3c6f6c);}function _0x5ceefc(_0x311b3e,_0x1d2fd1){if(_0x311b3e[0x0]['attributes']['groupId']!==_0x1d2fd1[0x0]['attributes']['groupId']&&_0x311b3e[0x0]['author']!==_0x1d2fd1[0x0]['author'])return!0x1;if(!function(_0x3346b3,_0x3e004f){if(!_0x3346b3['hasComments']&&!_0x3e004f['hasComments'])return!0x0;if(_0x3346b3['hasComments']&&_0x3e004f['hasComments'])return!0x1;if(_0x3346b3['hasComments']&&_0x3e004f['createdAt']<_0x3346b3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e004f['hasComments']&&_0x3346b3['createdAt']<_0x3e004f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x311b3e[0x0],_0x1d2fd1[0x0]))return!0x1;const _0x421a9d=Pt(_0x311b3e[0x0]['attributes'],['groupId','trackingSessionId']),_0x52d5e3=Pt(_0x1d2fd1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x137979(_0x421a9d,_0x52d5e3))return!0x1;if(_0x311b3e[0x0]['attributes']['groupId']==_0x1d2fd1[0x0]['attributes']['groupId'])return!0x0;if(_0x311b3e[0x0]['attributes']['trackingSessionId']!==_0x1d2fd1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x311b3e['every'](_0x42bcb9=>_0x1d2fd1['some'](_0x49892e=>_0x42bcb9['getFirstRange']()['isEqual'](_0x49892e['getFirstRange']())))&&_0x1d2fd1['every'](_0x11f7f2=>_0x311b3e['some'](_0x3fe813=>_0x11f7f2['getFirstRange']()['isEqual'](_0x3fe813['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xa89b6e){const _0x3ec445=Array['from'](_0xa89b6e),_0x634818=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1afafe=_0x634818['filter'](_0x4c6117=>!_0xa89b6e['has'](_0x4c6117)),_0x57bcd=new Map(_0x3ec445['map'](_0x2c7a10=>[_0x2c7a10,this['_suggestionFactory']['getSuggestionCallback'](_0x2c7a10['type'],_0x2c7a10['subType'],'join')])),_0x32753b=new Map(_0x634818['map'](_0x5df1e8=>[_0x5df1e8,_0x5df1e8['getRanges']()]));for(let _0x898a4c=0x0;_0x898a4c<_0x3ec445['length'];_0x898a4c++){if(_0x3ca65a(this,_0x3ec445[_0x898a4c],_0x3ec445,_0x898a4c+0x1))return!0x0;}for(let _0x2aac27=0x0;_0x2aac27<_0x3ec445['length'];_0x2aac27++){if(_0x3ca65a(this,_0x3ec445[_0x2aac27],_0x1afafe,0x0))return!0x0;}return!0x1;function _0x3ca65a(_0x3c2977,_0x1c8dd4,_0x251118,_0x1d7262){for(let _0x265a29=_0x1d7262;_0x265a29<_0x251118['length'];_0x265a29++){const _0x3c460f=_0x251118[_0x265a29];if(_0x3c460f['type']!==_0x1c8dd4['type']||_0x3c460f['author']['id']!==_0x1c8dd4['author']['id']||_0x3c460f['subType']!==_0x1c8dd4['subType'])continue;if(!en(_0x1c8dd4,_0x3c460f))continue;if('attribute'==_0x1c8dd4['type']&&_0x1c8dd4['data']['oldValue']!=_0x3c460f['data']['oldValue'])continue;if('attribute'==_0x1c8dd4['type']&&_0x3c2977['_isBlockAttribute'](_0x1c8dd4['data']['key']))continue;if('formatBlock'==_0x1c8dd4['type']){const _0x419d61=_0x3c2977['editor']['model'],_0x2d3149=_0x1c8dd4['getContainedElement']();if(_0x2d3149&&(_0x419d61['schema']['isObject'](_0x2d3149)||_0x419d61['schema']['isLimit'](_0x2d3149)))continue;}const _0x1184d9=_0x57bcd['get'](_0x1c8dd4),_0x3af258=_0x32753b['get'](_0x1c8dd4),_0x5669aa=_0x32753b['get'](_0x3c460f),_0x8cd1cf=_0x1c8dd4['commentThread']&&_0x1c8dd4['commentThread']['length'],_0x19ee04=_0x3c460f['commentThread']&&_0x3c460f['commentThread']['length'];if(!_0x8cd1cf&&_0x1184d9(_0x5669aa,_0x3af258))return _0x3c2977['_joinSuggestions'](_0x3c460f,_0x1c8dd4),_0x32753b['delete'](_0x1c8dd4),!0x0;if(!_0x19ee04&&_0x1184d9(_0x3af258,_0x5669aa))return _0x3c2977['_joinSuggestions'](_0x1c8dd4,_0x3c460f),_0x32753b['delete'](_0x3c460f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c3a49,_0x5d886c){if(_0x5c3a49['isMultiRange']){for(const _0x120665 of _0x5d886c['getRanges']())_0x5c3a49['addRange'](_0x120665);}else{const _0x42480d=_0x5d886c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c3a49,this['_model']['createRange'](_0x5c3a49['getFirstRange']()['start'],_0x42480d));}_0x5d886c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x43a3c6,_0x45c688,_0x2ddb9c){const _0xa83333=_0x43a3c6['startsWith']('format')||_0x43a3c6['startsWith']('attribute')?'FORMATTING':_0x43a3c6['toUpperCase']();return o(this['editor']['locale'],_0x45c688+'_'+_0xa83333+'_SUGGESTION_ANNOUNCEMENT',_0x2ddb9c);}['_initAriaMarkerChangeAnnouncements'](){const _0x33d65e=this['editor'];if(!_0x33d65e['ui'])return;const {ariaLiveAnnouncer:_0x3ea4e5}=_0x33d65e['ui'];_0x128c29(this['_model'],({left:_0x3ec882,entered:_0x527582})=>{for(const _0xbd14f7 of _0x3ec882){const {group:_0x44f623,type:_0x346963}=this['_splitMarkerName'](_0xbd14f7['name']);if('suggestion'===_0x44f623){_0x3ea4e5['announce'](this['_getMarkerAnnouncementText'](_0x346963,'LEAVE'));break;}}for(const _0x40917c of _0x527582){const {group:_0x288e4a,type:_0x132fb0}=this['_splitMarkerName'](_0x40917c['name']);if('suggestion'===_0x288e4a){_0x3ea4e5['announce'](this['_getMarkerAnnouncementText'](_0x132fb0,'ENTER',_0x41a2e7(_0x56e01e)));break;}}});}['_processAttributeChanges'](_0x2f68a8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2759a7=this['editor'],_0x2fcc1b=_0x2759a7['model']['document']['differ']['getChanges']();if(0x0==_0x2fcc1b['length'])return!0x1;const _0x1a9e66=[],_0x1c15ae=_0x2fcc1b['filter'](_0x1b0fc5=>'attribute'==_0x1b0fc5['type']),_0x58674a=_0x2fcc1b['filter'](_0x2cf149=>'insert'==_0x2cf149['type']&&'$text'!=_0x2cf149['name']),_0x5cb12a=_0x2fcc1b['filter'](_0x39950b=>'remove'==_0x39950b['type']&&'$text'!=_0x39950b['name']);for(const _0x462506 of _0x1c15ae)_0x1a9e66['push']({'key':_0x462506['attributeKey'],'newValue':_0x462506['attributeNewValue'],'oldValue':_0x462506['attributeOldValue'],'range':Zt(_0x462506['range'],_0x2759a7['model'])});for(const _0x2d0659 of _0x58674a){const _0x479f7b=_0x5cb12a['find'](_0x12a4e7=>_0x12a4e7['position']['isEqual'](_0x2d0659['position']));_0x479f7b&&_0x1a9e66['push']({'key':m,'newValue':_0x2d0659['name'],'oldValue':_0x479f7b['name'],'range':_0x2759a7['model']['createRangeOn'](_0x2d0659['position']['nodeAfter'])});}return 0x0!=_0x1a9e66['length']&&this['_reduceExistingSuggestions'](_0x2f68a8,_0x1a9e66);}['_processAttributeSuggestions'](_0x2f22f0){let _0x352d28=!0x1;const _0x523e36=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f4b81=>_0x3f4b81['data']['newRange']&&_0x3f4b81['name']['startsWith']('suggestion:attribute:'));for(const _0x178b26 of _0x523e36){const {subType:_0x17489a,id:_0x3232ad}=this['_splitMarkerName'](_0x178b26['name']),_0x56a9ee=_0x17489a['split']('|')[0x0];for(const _0x3bef33 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bef33['id']!=_0x3232ad&&'attribute'==_0x3bef33['type']&&_0x3bef33['data']&&_0x3bef33['data']['key']==_0x56a9ee&&_0x3bef33['getFirstRange']()['isIntersecting'](_0x178b26['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bef33,_0x178b26['data']['newRange'],_0x2f22f0),_0x352d28=!0x0);}return _0x352d28;}['recordAttributeChanges'](_0x712cf){this['_recordAttributeSuggestions']=!0x0,_0x712cf();}['_isRegisteredAttribute'](_0x1f6346){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x1f6346);}['_reduceExistingSuggestions'](_0x2f5859,_0x149ad6){if(0x0==_0x149ad6['length'])return!0x1;let _0x2bc72b=!0x1;for(const _0x4c8325 of _0x149ad6){const _0x41b40d=this['_findSuggestions'](_0x4c8325['range'],'attribute')['filter'](_0x4fb043=>!_0x4fb043['meta']['isNextTo'])['map'](_0x1524a3=>_0x1524a3['suggestion']),_0x5f0fd9=_0x487fef({'newValue':_0x4c8325['newValue']});_0x41b40d['filter'](_0xcd004d=>{const [_0x15686b,_0x36dc61]=_0xcd004d['subType']['split']('|');return _0x15686b==_0x4c8325['key']&&_0x36dc61!=_0x5f0fd9;})['forEach'](_0x2eb296=>{this['_reduceSuggestionAttributeRange'](_0x2eb296,_0x4c8325['range'],_0x2f5859),_0x2bc72b=!0x0;});}return _0x2bc72b;}['_reduceSuggestionAttributeRange'](_0x3b28af,_0x164421,_0x2cd97a){const _0x2d2515=_0x3b28af['getFirstRange']()['getDifference'](_0x164421);0x0!==_0x2d2515['length']?0x1!==_0x2d2515['length']?this['_breakSuggestionMarker'](_0x3b28af,_0x164421['start'],_0x164421['end']):this['_setSuggestionRange'](_0x3b28af,_0x2d2515[0x0]):_0x2cd97a['removeMarker'](_0x3b28af['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x209702){this['_editor']=_0x209702,this['_model']=_0x209702['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x438b82,_0x359e0f,_0x437b0d,_0x200a0a,_0x3776d2,_0x513ce6,_0x4d4bdc){return new x(this['_model'],{'type':_0x438b82,'subType':_0x359e0f,'id':_0x437b0d,'originalSuggestionId':_0x4d4bdc,'author':_0x200a0a,'creator':_0x200a0a,'attributes':_0x3776d2,'onAttributesChange':_0x513ce6,'onAccept':(..._0x43c0dd)=>this['getSuggestionCallback'](_0x438b82,_0x359e0f,'accept')(..._0x43c0dd),'onDiscard':(..._0x3f5283)=>this['getSuggestionCallback'](_0x438b82,_0x359e0f,'discard')(..._0x3f5283)});}['registerCustomCallback'](_0x3c01ba,_0x28c6e8,_0x17b948,_0x4714bf){const _0x45c67b=_0x3c01ba+':'+_0x28c6e8+':'+_0x17b948;this['_customCallbacks']['set'](_0x45c67b,_0x4714bf);}['getSuggestionCallback'](_0x3130e9,_0x5570af,_0x5848ff){const _0x5a9170=_0x3130e9+':'+_0x5570af+':'+_0x5848ff;return this['_customCallbacks']['get'](_0x5a9170)||this['_defaultCallbacks']['get'](_0x3130e9+':'+_0x5848ff);}['_registerDefaultCallbacks'](){const _0x5bb182=()=>!0x1,_0x40590a=_0x9e90d8=>{_0x9e90d8['sort']((_0x155b00,_0x3a7dee)=>_0x155b00['start']['isBefore'](_0x3a7dee['start'])?0x1:-0x1),this['_model']['change'](_0x4413ca=>{for(const _0x2ff423 of _0x9e90d8){let _0x21b8f1;_0x21b8f1=_0x2ff423['end']['isAtEnd']&&_0x2ff423['end']['parent']==_0x2ff423['start']['nodeAfter']?_0x4413ca['createSelection'](_0x2ff423['start']['nodeAfter'],'on'):_0x4413ca['createSelection'](_0x2ff423),this['_model']['deleteContent'](_0x21b8f1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x568d0c=(_0x2147ff,_0x31f66a)=>{_0x31f66a&&this['_model']['change'](_0x390bd1=>{const {commandName:_0x233e83,commandParams:_0x4f745e=[]}=_0x31f66a,_0x39ed8b=_0x2147ff['map'](_0x520720=>(Kt(_0x520720)&&(_0x520720=this['_model']['createRange'](_0x520720['end'])),_0x520720))['filter'](_0x769bb=>'$graveyard'!==_0x769bb['root']['rootName']);if(_0x39ed8b['length']<0x1)return;const _0x514405=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x160812=>_0xf26ff5['fromRange'](_0x160812));_0x390bd1['setSelection'](_0x39ed8b);for(const _0x4bae99 of this['_editor']['commands']['commands']())_0x4bae99['refresh']();_0x4f745e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x233e83,..._0x4f745e);const _0x326b89=_0x514405['filter'](_0xc19af3=>'$graveyard'!=_0xc19af3['root']['rootName']);_0x326b89['length']>0x0&&_0x390bd1['setSelection'](_0x326b89);for(const _0x4b505a of _0x514405)_0x4b505a['detach']();});},_0x19ee26=(_0x55b97c,_0x47fc22)=>0x1==_0x55b97c['length']&&0x1==_0x47fc22['length']&&_0x55b97c[0x0]['end']['isEqual'](_0x47fc22[0x0]['start']),_0x2c0430=(_0x128a05,_0x32a6dc,_0x1a064c,_0x984715)=>nn(_0x128a05,_0x32a6dc,_0x1a064c,_0x984715)?[_0x128a05,_0x32a6dc]:nn(_0x32a6dc,_0x128a05,_0x984715,_0x1a064c)?[_0x32a6dc,_0x128a05]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5bb182),this['_defaultCallbacks']['set']('insertion:discard',_0x40590a),this['_defaultCallbacks']['set']('insertion:join',_0x19ee26),this['_defaultCallbacks']['set']('insertion:chain',_0x2c0430),this['_defaultCallbacks']['set']('deletion:accept',_0x40590a),this['_defaultCallbacks']['set']('deletion:discard',_0x5bb182),this['_defaultCallbacks']['set']('deletion:join',_0x19ee26),this['_defaultCallbacks']['set']('deletion:chain',_0x2c0430),this['_defaultCallbacks']['set']('formatInline:accept',_0x568d0c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5bb182),this['_defaultCallbacks']['set']('formatInline:join',_0x19ee26),this['_defaultCallbacks']['set']('formatInline:chain',_0x5bb182),this['_defaultCallbacks']['set']('formatBlock:accept',_0x568d0c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5bb182),this['_defaultCallbacks']['set']('formatBlock:join',_0x19ee26),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5bb182),this['_defaultCallbacks']['set']('attribute:accept',_0x5bb182),this['_defaultCallbacks']['set']('attribute:discard',(_0x76ddde,_0x3b79de)=>{if(!_0x3b79de)return;const _0x4c5c21=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x44384e=>{if(_0x3b79de['key']==m)for(const _0x324e87 of _0x76ddde){const _0x158dd4=_0x324e87['start']['nodeAfter'],_0x52399c=_0x3b79de['oldValue'];_0x44384e['rename'](_0x158dd4,_0x52399c);}else{if(_0x4c5c21['_isBlockAttribute'](_0x3b79de['key'])){for(const _0x2f5fdc of _0x76ddde)void 0x0!==_0x3b79de['oldValue']?_0x44384e['setAttribute'](_0x3b79de['key'],_0x3b79de['oldValue'],_0x2f5fdc['start']['nodeAfter']):_0x44384e['removeAttribute'](_0x3b79de['key'],_0x2f5fdc['start']['nodeAfter']);}else{for(const _0x4a32c0 of _0x76ddde)_0x3b79de['oldValue']?_0x44384e['setAttribute'](_0x3b79de['key'],_0x3b79de['oldValue'],_0x4a32c0):_0x44384e['removeAttribute'](_0x3b79de['key'],_0x4a32c0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x19ee26);}}function zt(_0xf28a23,_0x20a06e,_0x501f5c){for(const _0xe86bc9 of _0x20a06e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe86bc9['root']==_0xe86bc9)return!0x1;if(!_0x501f5c['containsItem'](_0xe86bc9))return!0x1;if(_0xf28a23['isObject'](_0xe86bc9)||_0xf28a23['isLimit'](_0xe86bc9))return!0x0;}return!0x1;}function Kt(_0x295a16){return _0x295a16['end']['parent']==_0x295a16['start']['nodeAfter']&&_0x295a16['end']['isAtStart'];}function Wt(_0xeefb39,_0x1f80a1,_0x5fd281,_0x5ada4d){const _0x568090=_0xf5c33e=>!_0xf5c33e['item']['is']('$textProxy')&&!_0x5ada4d['isObject'](_0xf5c33e['item']),_0x28c434=_0xeefb39['start']['getLastMatchingPosition'](_0x568090),_0xdd5fbf=_0xeefb39['end']['getLastMatchingPosition'](_0x568090,{'direction':'backward'});return(!_0xeefb39['start']['isEqual'](_0x28c434)||!_0xeefb39['end']['isEqual'](_0xdd5fbf))&&(_0x28c434['isBefore'](_0xdd5fbf)?_0x5fd281['updateMarker'](_0x1f80a1,{'range':_0x5fd281['createRange'](_0x28c434,_0xdd5fbf)}):_0x5fd281['removeMarker'](_0x1f80a1),!0x0);}function Ht(_0x19b396){return _0x487fef(_0x19b396);}function Qt(_0x310290){const _0x4d1218=_0x310290['start']['nodeAfter'];return _0x4d1218&&_0x4d1218['is']('element');}function Xt(_0x5b923b){return Kt(_0x5b923b)||function(_0x42e5ca){return _0x42e5ca['start']['parent']==_0x42e5ca['end']['nodeBefore']&&_0x42e5ca['start']['isAtEnd'];}(_0x5b923b);}function Yt(_0x34ba30,_0xae5f96){try{const _0x23cc36=_0x34ba30['getRange']();for(const _0x1bc0f5 of _0xae5f96)if(_0x34ba30!==_0x1bc0f5&&_0x23cc36&&_0x23cc36['isIntersecting'](_0x1bc0f5['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x39651f,_0x5fe13b){return null==_0x39651f['end']['nodeBefore']&&_0x39651f['end']['parent']==_0x39651f['start']['nodeAfter']?tn(_0x39651f['start']['nodeAfter'],_0x5fe13b):_0x39651f;}function tn(_0x4af800,_0x16d8ef){const _0x3fdc16=_0x16d8ef['schema']['isObject'](_0x4af800)||_0x16d8ef['schema']['isSelectable'](_0x4af800);return _0x16d8ef['createRange'](_0x16d8ef['createPositionAt'](_0x4af800,'before'),_0x3fdc16?_0x16d8ef['createPositionAfter'](_0x4af800):_0x16d8ef['createPositionAt'](_0x4af800,'end'));}function nn(_0x2efedb,_0x5b36b9,_0x2c0e9b,_0x41cf3a){return!!en(_0x2efedb,_0x5b36b9)&&_0x2c0e9b['end']['isEqual'](_0x41cf3a['start']);}function en(_0x16265b,_0x442b98){if(!_0x16265b['_isDataLoaded']||!_0x442b98['_isDataLoaded'])return!0x1;const _0x4fe879=new Set(Object['keys'](_0x16265b['attributes'])),_0x18817e=new Set(Object['keys'](_0x442b98['attributes']));if(_0x4fe879['delete']('groupId'),_0x18817e['delete']('groupId'),0x0==_0x4fe879['size']&&0x0==_0x18817e['size'])return!0x0;if(_0x4fe879['size']!=_0x18817e['size'])return!0x1;const _0xb69faa={..._0x16265b['attributes']},_0x248150={..._0x442b98['attributes']};return delete _0xb69faa['groupId'],delete _0x248150['groupId'],JSON['stringify'](_0xb69faa)==JSON['stringify'](_0x248150);}function sn(_0x44891c,_0x5f3c05){const _0x5b3266=on(_0x44891c['attributes']),_0x5a4a45=on(_0x5f3c05);if(!_0x44891c['_isDataLoaded'])return!0x1;for(const _0x39737b of Object['keys'](_0x5a4a45))if(!_0x137979(_0x5b3266[_0x39737b],_0x5a4a45[_0x39737b]))return!0x1;return!0x0;}function on(_0x28cfa8){const _0x9b4b8f=Object['assign']({},_0x28cfa8);return delete _0x9b4b8f['skipNestingCheck'],delete _0x9b4b8f['tablePasteChainId'],_0x9b4b8f;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x3a7d6d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2a2fe9,_0x4ac55f,_0x67bf84,_0x2162f3){super(),this['model']=_0x4ac55f,this['view']=_0x67bf84,this['commentThreadController']=_0x2162f3,this['_editor']=_0x2a2fe9,this['_acceptCommand']=_0x2a2fe9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2a2fe9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x640cae,_0x22b4af)=>_0x640cae||_0x22b4af),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a7d81=>_0x1a7d81&&this['_editor']['model']['canEditAt'](_0x4ac55f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e224e=>_0x3e224e&&this['_editor']['model']['canEditAt'](_0x4ac55f['getRanges']())),this['_pendingAction']=null,_0x67bf84['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x67bf84,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x67bf84,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x67bf84,'change:isDirty',()=>{_0x67bf84['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 _0xa126fc=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa126fc);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x715ce1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x10291d,_0x5706d2,_0x549cc7,_0x56284b){super(_0x10291d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x13f691(_0x10291d,o(_0x10291d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5706d2['authoredAt']),this['bind']('authoredAt')['to'](_0x5706d2),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',_0x5706d2,'authoredAt',this,'descriptionParts',(_0x29572a,_0x3a079f,_0x144ceb)=>{const _0x5d8851=_0x144ceb['map'](_0x2642c7=>ls(_0x2642c7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x29572a-0x1,_0x5706d2['author']['name'],_0x3a079f?_0x56284b['formatDateTime'](_0x3a079f):'',new DOMParser()['parseFromString'](_0x5d8851,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b5487(),this['focusTracker']=new _0x5ab23f(),this['keystrokes']=new _0x3073dd(),this['focusCycler']=new _0x25aed1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a0c53=>_0x3a0c53['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5706d2,this['_localUser']=_0x549cc7,this['_config']=_0x56284b,_0x56284b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d1541(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1438ac}=this['_config'];this['commentsListView']=new _0x1438ac(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',_0x4e39ed=>_0x4e39ed+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x486d4d,_0x51e5ec)=>_0x486d4d||!!_0x51e5ec);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3ada6c}=this['_config'],_0x181300=new _0x3ada6c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xd2ba84=_0x181300['commentInputView'];return _0x181300['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xd2ba84,'value',(_0x2e97e8,_0x107ad3,_0x1af0b6)=>!!_0x1af0b6||_0x2e97e8&&!_0x107ad3),_0xd2ba84['on']('submit',(_0x3c3146,_0x2fc030)=>{this['fire']('addComment',_0x2fc030),_0xd2ba84['editor']['setData']('');}),_0xd2ba84['on']('cancel',()=>this['focus']()),_0xd2ba84['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x181300;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x479e16,_0x1df65a,_0x57252f,_0x37eafa){super(_0x479e16,_0x1df65a,_0x57252f,_0x37eafa),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4996d9=>_0x4996d9&&_0x4996d9[0x0]?_0x4996d9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x398b59,_0x1b0ba4)=>{let _0x19f75f='';for(const _0x4f6768 of _0x398b59)_0x19f75f+='<p>'+ls(_0x4f6768['content'],_0x4f6768['color'])+'</p>';return _0x1b0ba4?_0x19f75f:_0x1a811f(_0x19f75f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37eafa['SuggestionView'](_0x479e16,_0x1df65a,{'formatDateTime':_0x37eafa['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 _0x4d9748=this['bindTemplate'],_0x3bbd18=[this['suggestionView']];return this['commentsListView']&&_0x3bbd18['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3bbd18['push'](this['commentThreadInputView']),_0x3bbd18['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d9748['if']('isActive','ck-suggestion-wrapper--active'),_0x4d9748['to']('type',_0x537de3=>'ck-suggestion-'+_0x537de3),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':_0x4d9748['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3bbd18};}['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 _0x715ce1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bb7b0,_0x14056a,_0x77b738){super(_0x4bb7b0),this['_model']=_0x14056a,this['_config']=_0x77b738,this['set']('description',''),this['bind']('authoredAt')['to'](_0x14056a),this['acceptButton']=this['_createButton'](o(_0x4bb7b0,'Accept\x20suggestion'),_0xf98b60,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bb7b0,'Discard\x20suggestion'),_0xa215b2,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3581d8(_0x4bb7b0,_0x14056a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b5487([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5ab23f(),this['keystrokes']=new _0x3073dd(),this['focusCycler']=new _0x25aed1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2918e6=>_0x2918e6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x250617=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x250617['innerHTML']=this['description'],this['on']('change:description',(_0x47f944,_0x177daa,_0x56c29a)=>{_0x250617['innerHTML']=_0x56c29a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3f481a=this['bindTemplate'],_0x5ec4a8=[{'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':_0x3f481a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f481a['to']('authoredAt',_0x30fc10=>this['_config']['formatDateTime'](_0x30fc10))}]}]},{'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']&&_0x5ec4a8['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':_0x5ec4a8}]};}['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'](_0x4fbd6c,_0x5d6db0,_0x433cb9,_0x34f03f,_0x43f8fa){const _0x16fb69=new _0xd07ec2(this['locale']);return _0x16fb69['set']({'label':_0x4fbd6c,'icon':_0x5d6db0,'tooltip':!0x0,'tooltipPosition':_0x43f8fa}),_0x16fb69['extendTemplate']({'attributes':{'class':_0x433cb9}}),_0x16fb69['on']('execute',()=>{this['fire'](_0x34f03f,this['_model']['id']);}),_0x16fb69;}['_setupKeyboardNavigation'](){const _0x484d93=this['element'];this['keystrokes']['listenTo'](_0x484d93);for(const _0x17993c of this['focusables'])this['focusTracker']['add'](_0x17993c['element']),this['keystrokes']['listenTo'](_0x17993c['element']);this['keystrokes']['set']('enter',(_0x1287ee,_0x1f3e56)=>{_0x484d93===_0x1287ee['target']&&(this['focusCycler']['focusFirst'](),_0x1f3e56());}),this['keystrokes']['set']('esc',(_0x2e0972,_0x13e8d8)=>{_0x484d93!==_0x2e0972['target']&&(this['focus'](),_0x13e8d8());});}}class u extends _0x2b2f8b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3f7a3e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d826e){super(_0x1d826e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c4cf6=this['editor']['config'];_0x3c4cf6['define']('trackChanges.SuggestionThreadView',fe),_0x3c4cf6['define']('trackChanges.SuggestionView',we),_0x3c4cf6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c4cf6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x321a0e,_0x4c3caf){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b079b,_0x56aab5]of this['_handleControllerBuffer']){const _0x35c3de=this['_suggestionToController']['has'](_0x4b079b);_0x35c3de||_0x56aab5?_0x35c3de&&_0x56aab5&&this['_destroyController'](_0x4b079b):this['_initializeController'](_0x4b079b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x321a0e,_0x4c3caf);}['init'](){const _0x17eeec=this['editor'],_0xed9701=_0x17eeec['plugins']['get']('TrackChangesEditing'),_0xf715b0=_0x17eeec['plugins']['get']('Annotations'),_0x2dfc94=_0x17eeec['plugins']['get']('EditorAnnotations'),_0x4e2aad=_0x17eeec['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2dfc94['addSourceCollector'](()=>{const _0x47ef44=[];for(const [_0x25d287,_0x369644]of Array['from'](this['_suggestionToController'])){const _0xe6aa9f=_0x25d287['getAllAdjacentSuggestions'](),_0x194bdd=[];for(const _0x46bebb of _0xe6aa9f){if(!_0x46bebb['isInContent'])continue;if(_0x46bebb['isMultiRange']){_0x194bdd['push'](..._0x46bebb['getRanges']());continue;}const _0x54277a=_0x46bebb['getFirstRange']();if(_0x194bdd['length']>0x0){const _0xe396a7=_0x194bdd[0x0]['getJoined'](_0x54277a);if(_0xe396a7){_0x194bdd[0x0]=_0xe396a7;continue;}}_0x194bdd['push'](_0x54277a);}_0x47ef44['push']([_0x369644['view'],_0x194bdd]);}return _0x47ef44;}),this['listenTo'](_0xed9701,'suggestionLoaded',(_0x5305ef,_0x7e3276)=>{this['listenTo'](_0x7e3276,'change:previous',(_0x31ed49,_0x19a4f3,_0x10e853,_0x75c07d)=>{_0x7e3276['isInContent']&&(null==_0x10e853?(this['_updateController'](_0x75c07d['head']),this['_handleSuggestionControllerDelayed'](_0x7e3276,!0x1)):(this['_updateController'](_0x10e853['head']),null==_0x75c07d&&this['_handleSuggestionControllerDelayed'](_0x7e3276,!0x0)));}),null!==_0x7e3276['previous']?this['_updateController'](_0x7e3276['head']):this['_handleSuggestionControllerDelayed'](_0x7e3276,!0x1);}),this['listenTo'](_0xed9701,'suggestionUnloaded',(_0x598b1b,_0x28b90c,_0xd38833)=>{this['stopListening'](_0x28b90c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x28b90c),this['_suggestionToController']['has'](_0x28b90c)&&this['_destroyController'](_0x28b90c),_0xd38833&&this['_updateController'](_0xd38833['head']);}),this['listenTo'](_0xed9701,'suggestionChanged',(_0x3e4a19,_0x83c6db)=>{this['_updateController'](_0x83c6db);}),this['listenTo'](_0xf715b0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e2aad,'addComment',(_0xdacce1,{threadId:_0x5bf408,isFromAdapter:_0x470152})=>{if(_0x470152||!_0xed9701['hasSuggestion'](_0x5bf408))return;const _0x37fc6b=_0xed9701['getSuggestion'](_0x5bf408);this['_suggestionToController']['get'](_0x37fc6b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xad3c74=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bc5d6;for(const _0x1901d9 in _0xad3c74){const _0x50bcd4=_0x1901d9,_0x1c5128=_0xad3c74[_0x50bcd4];if('trackChangesLicenseKeyValid'==_0x1c5128||'trackChangesLicenseKeyInvalid'==_0x1c5128||'trackChangesLicenseKeyExpired'==_0x1c5128||'trackChangesLicenseKeyDomainLimit'==_0x1c5128||'trackChangesLicenseKeyNotAllowed'==_0x1c5128||'trackChangesLicenseKeyEvaluationLimit'==_0x1c5128||'trackChangesLicenseKeyTrialLimit'==_0x1c5128||'trackChangesLicenseKeyUsageLimit'==_0x1c5128){delete _0xad3c74[_0x50bcd4],_0x5bc5d6=_0x1c5128,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x52c9e8){const _0x3154d7=this['_suggestionToController']['get'](_0x52c9e8);if(!_0x3154d7)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3154d7['view'])||null;}['getSuggestionForAnnotation'](_0x308fbc){const _0x471e0d=this['_viewToController']['get'](_0x308fbc['innerView']);return _0x471e0d?_0x471e0d['model']:null;}['_refreshActiveMarkers'](){const _0x27c2e1=this['editor']['plugins']['get']('Annotations'),_0x3e7823=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ae2fe=Array['from'](_0x27c2e1['activeAnnotations'],_0xc5233d=>_0xc5233d['innerView'])['filter'](_0xf8089=>this['_viewToController']['has'](_0xf8089)),_0x6acd3=[];for(const _0x399445 of _0x2ae2fe){const _0x3876bc=this['_viewToController']['get'](_0x399445)['model']['getAllAdjacentSuggestions']();_0x6acd3['push'](..._0x3876bc['reduce']((_0x2ddab6,_0x2b0cfe)=>[..._0x2ddab6,..._0x2b0cfe['getMarkerNames']()],[]));}_0x3e7823['activeMarkers']=_0x6acd3;}['_addUIComponentsToFactory'](){const _0x25caca=this['editor'],_0x539e54=_0x25caca['locale'],_0x4a5fe1=o(_0x539e54,'Track\x20changes'),_0x25c4d8=new _0x334b83([{'type':'switchbutton','model':new _0x1a2249({'withText':!0x0,'isToggleable':!0x0,'label':_0x4a5fe1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x25caca['plugins']['has']('TrackChangesPreview')&&_0x25c4d8['addMany']([{'type':'separator'},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x20b093 of _0x25c4d8)if(ke(_0x20b093)){const _0x590716=_0x25caca['commands']['get'](_0x20b093['model']['commandName']);_0x20b093['model']['bind']('isOn','isEnabled')['to'](_0x590716,'value','isEnabled');}_0x25caca['ui']['componentFactory']['add']('trackChanges',_0x3dbddd=>this['_createToolbarButton'](_0x3dbddd,_0x25c4d8,_0x4a5fe1)),_0x25caca['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1cbcbb=>this['_createMenuBarMenu'](_0x1cbcbb,_0x25c4d8,_0x4a5fe1));}['_createToolbarButton'](_0x25d6d4,_0x1398d8,_0x30e7e1){const _0xd0604b=_0x28f557(_0x25d6d4,_0x15354f),_0x527528=this['editor']['commands']['get']('trackChanges');_0xd0604b['buttonView']['set']({'tooltip':_0x30e7e1,'label':_0x30e7e1,'icon':_0x542c64}),_0xd0604b['buttonView']['bind']('isOn')['to'](_0x527528,'value'),_0xd0604b['buttonView']['on']('execute',()=>{_0x527528['execute'](),this['editor']['editing']['view']['focus']();}),_0x57b6db(_0xd0604b,_0x1398d8,{'role':'menu'});const _0x4feb35=[];for(const _0x4314ab of _0x1398d8)ke(_0x4314ab)&&_0x4feb35['push'](this['editor']['commands']['get'](_0x4314ab['model']['commandName']));const _0x1e22e8=_0xd0604b['buttonView'];return _0x1e22e8['actionView']['unbind']('isEnabled'),_0x1e22e8['arrowView']['unbind']('isEnabled'),_0x1e22e8['actionView']['bind']('isEnabled')['to'](_0x527528,'isEnabled'),_0x1e22e8['arrowView']['bind']('isEnabled')['toMany'](_0x4feb35,'isEnabled',(..._0x54d2c1)=>_0x54d2c1['some'](_0x18ab42=>_0x18ab42)),_0xd0604b['on']('execute',_0x206f57=>{this['editor']['execute'](_0x206f57['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xd0604b;}['_createMenuBarMenu'](_0x534993,_0x29d21d,_0x58e114){const _0x46fab3=new _0x141511(_0x534993),_0x5b644b=this['editor']['commands']['get']('trackChanges');_0x46fab3['buttonView']['set']({'label':_0x58e114,'icon':_0x542c64});const _0x157e79=new _0x2e7927(_0x534993);for(const _0x3f98fa of _0x29d21d){if('separator'==_0x3f98fa['type']){_0x157e79['items']['add'](new _0x327c83(_0x534993));continue;}const _0xb0620a=new _0x59c0a6(_0x534993,_0x46fab3),_0x9519e=new _0x12ca26(_0x534993),_0x5ea844=_0x3f98fa['model'];_0x9519e['bind'](...Object['keys'](_0x5ea844))['to'](_0x5ea844),_0x9519e['delegate']('execute')['to'](_0x46fab3),_0x9519e['on']('execute',()=>{this['editor']['execute'](_0x5ea844['commandName']),this['editor']['editing']['view']['focus']();}),_0xb0620a['children']['add'](_0x9519e),_0x157e79['items']['add'](_0xb0620a);}return _0x46fab3['bind']('isEnabled')['to'](_0x5b644b,'isEnabled'),_0x46fab3['panelView']['children']['add'](_0x157e79),_0x46fab3;}['_initializeController'](_0x517067){const _0xe768f6=this['editor'],_0x3f7d31=_0xe768f6['config'],_0x5186d0=_0xe768f6['plugins']['get']('Annotations'),_0x5a046f=_0xe768f6['plugins']['get']('CommentsRepository'),_0x55190b=_0xe768f6['plugins']['get']('EditorAnnotations'),_0x4cd157=_0xe768f6['plugins']['get'](_0x3f7a3e)['me'],_0x2384e9=_0x3f7d31['get']('trackChanges')['SuggestionThreadView'],_0xfcc28f=_0x3f7d31['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x15c71e,CommentThreadInputView:_0x17a4c0}=_0xe768f6['plugins']['get']('CommentsUI');let _0x3a46b3,_0x48e298,_0xd32994;this['_annotationViews']['has'](_0x517067['id'])?(_0x48e298=this['_annotationViews']['get'](_0x517067['id']),_0x3a46b3=_0x48e298['mainView']):(_0x3a46b3=new _0x2384e9(_0xe768f6['locale'],_0x517067,_0x4cd157,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3f7d31['get']('comments.editorConfig'),'licenseKey':_0x3f7d31['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3f7d31['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3f7d31['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3f7d31['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x38529d(_0x3f7d31['get']('locale'),_0xe768f6['locale']),'CommentView':_0x3f7d31['get']('comments')['CommentView'],'CommentsListView':_0x15c71e,'CommentThreadInputView':_0x17a4c0,'SuggestionView':_0xfcc28f}),_0x3a46b3['suggestionView']['acceptButton']['on']('execute',()=>{_0xe768f6['editing']['view']['focus']();}),_0x3a46b3['suggestionView']['discardButton']['on']('execute',()=>{_0xe768f6['editing']['view']['focus']();}),_0x48e298=_0x5186d0['createAnnotationView'](this['editor']['locale'],_0x3a46b3),_0x48e298['bind']('isDirty')['to'](_0x3a46b3,'isDirty'),_0x48e298['bind']('length')['to'](_0x3a46b3),_0x48e298['bind']('type')['to'](_0x3a46b3,'type',_0x2a03fd=>'suggestion-'+_0x2a03fd),_0x3a46b3['on']('escape',()=>{_0xd32994['fire']('escape');}),this['_annotationViews']['set'](_0x517067['id'],_0x48e298));const _0x5793f9=_0x5a046f['createCommentThreadController'](_0x517067['commentThread'],_0x3a46b3),_0x143d3b=new pe(_0xe768f6,_0x517067,_0x3a46b3,_0x5793f9),_0xc8b0e2=_0x517067['getAllAdjacentSuggestions']()['filter'](_0x562352=>_0x562352['isInContent']);_0x3a46b3['descriptionParts']=_0xe768f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xc8b0e2),this['_suggestionToController']['set'](_0x517067,_0x143d3b),this['_viewToController']['set'](_0x3a46b3,_0x143d3b);const _0x5773b4=()=>{const _0x151143=[],_0x5d0ad0=_0x517067['getAllAdjacentSuggestions']()['filter'](_0x22d4f8=>_0x22d4f8['isInContent']);for(const _0x29f7cc of _0x5d0ad0)_0x151143['push'](..._0x29f7cc['getMarkers']());return _0x2b3cce(_0xe768f6['editing'],_0x151143);};_0xd32994=_0x5186d0['createAnnotation']({'view':_0x48e298,'target':_0x5773b4,'type':()=>'suggestion-'+_0x143d3b['view']['type'],'isVisible':!!_0x5773b4()}),_0x5a046f['_bindAnnotationToEditors'](_0x3a46b3,_0xd32994),_0x5186d0['add'](_0xd32994),_0x55190b['registerAnnotation'](_0xd32994);}['_destroyController'](_0x102c47){const _0xaebc61=this['editor']['plugins']['get']('CommentsRepository'),_0x3d11c6=this['editor']['plugins']['get']('Annotations'),_0x55a9d5=this['_suggestionToController']['get'](_0x102c47),_0xa4fa83=_0x55a9d5['view'],_0x3eaaab=_0x3d11c6['getByInnerView'](_0xa4fa83);_0xaebc61['_unbindEditors'](_0xa4fa83),_0x3eaaab&&_0x3d11c6['remove'](_0x3eaaab),this['_suggestionToController']['delete'](_0x102c47),this['_viewToController']['delete'](_0xa4fa83),_0x55a9d5['destroy']();}['_updateController'](_0x12a21d){if(!_0x12a21d['isInContent']||!this['_suggestionToController']['has'](_0x12a21d))return;const _0x4b664a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d4166=this['_suggestionToController']['get'](_0x12a21d),_0x4806e2=_0x12a21d['getAllAdjacentSuggestions']();_0x1d4166['view']['descriptionParts']=_0x4b664a['descriptionFactory']['getDescriptions'](_0x4806e2);}['destroy'](){for(const _0x1a506d of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a506d);for(const _0x461f73 of this['_annotationViews']['values']())_0x461f73['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4e6fbb){return'model'in _0x4e6fbb;}class Ne extends _0x2b2f8b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3107f9){this['editor']['plugins']['get'](d)['adapter']=_0x3107f9;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x18dbbd){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x18dbbd);}['getSuggestions']({skipNotAttached:_0x57e377=!0x1,toJSON:_0x2ca9bb=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x57e377,'toJSON':_0x2ca9bb});}['getSuggestion'](_0x360066){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x360066);}}const p=['Pagination'];class re extends _0x2b2f8b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2354fe=this['editor'];if(_0x2354fe['config']['define']('trackChangesData.editorCreator',_0x2529ff=>{const _0x331fdb=_0x2354fe['model']['document']['getRootNames']()['reduce']((_0x498910,_0x70cc07)=>(_0x498910[_0x70cc07]='',_0x498910),{});return _0x2354fe['constructor']['create'](_0x331fdb,_0x2529ff);}),'function'!=typeof _0x2354fe['config']['get']('trackChangesData')['editorCreator'])throw new _0x608ef8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x14c8b0){return P(this['editor'],!0x0,_0x14c8b0);}['getDataWithDiscardedSuggestions'](_0x48999d){return P(this['editor'],!0x1,_0x48999d);}}class Fe extends _0x2b2f8b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1037c5){function _0x5903cf(_0x17a4ed){return _0x17a4ed['map'](_0x298a35=>String['fromCharCode'](_0x298a35))['join']('');}super(_0x1037c5),this['result']='end',_0x1037c5[_0x5903cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5903cf([0x76,0x69,0x65,0x77])][_0x5903cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5903cf([0x61,0x75,0x74,0x6f]),_0x1037c5[_0x5903cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5903cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5903cf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5903cf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5903cf([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(_0x4021b3){return void 0x0!==_0x4021b3['getRootsAttributes'];}async function P(_0x451199,_0x3d04e6,_0x471e94){const _0x44499a=_0x4d3052(_0x451199,p);_0x44499a['plugins']['push'](d,Fe),_0x44499a['rootsAttributes']=De(_0x451199)?_0x451199['getRootsAttributes']():void 0x0;const _0xcb5a1a=document['createDocumentFragment'](),_0x2e05d7=_0x451199['config']['get']('trackChangesData')['editorCreator'],_0x5d47b5=await _0x2e05d7(_0x44499a,()=>function(_0x45d78d){const _0x215b3f=document['createElement']('div');return _0x45d78d['appendChild'](_0x215b3f),_0x215b3f;}(_0xcb5a1a));!function(_0x4b6ac0,_0x2760ec){const _0x22077b=_0x4b6ac0['model']['document']['getRootNames']()['reduce']((_0x5dfcc0,_0x51cae2)=>(_0x5dfcc0[_0x51cae2]=_0x4b6ac0['data']['get']({'rootName':_0x51cae2}),_0x5dfcc0),{}),_0x102026=_0x4b6ac0['plugins']['get']('Users')['users']['map'](_0x265ab0=>({'id':_0x265ab0['id'],'name':_0x265ab0['name']})),_0x1f3016=_0x4b6ac0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x249387=_0x4b6ac0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x42e0d3=_0x2760ec['plugins']['get']('Users'),_0x30b77c=_0x2760ec['plugins']['get']('TrackChangesEditing'),_0x133248=_0x2760ec['plugins']['get']('CommentsRepository');for(const _0x314d39 of _0x133248['getCommentThreads']())_0x314d39['remove']();for(const _0x507118 of _0x102026)_0x42e0d3['getUser'](_0x507118['id'])||_0x42e0d3['addUser'](_0x507118);_0x42e0d3['me']||_0x42e0d3['useAnonymousUser']();for(const _0x2447a1 of _0x249387)_0x133248['addCommentThread'](_0x2447a1);for(const _0xb4e26a of _0x1f3016)_0x30b77c['addSuggestionData'](_0xb4e26a);_0x2760ec['data']['set'](_0x22077b);}(_0x451199,_0x5d47b5),_0x5d47b5['execute'](_0x3d04e6?'acceptAllSuggestions':'discardAllSuggestions');const _0x51db06=De(_0x5d47b5)?_0x5d47b5['getFullData'](_0x471e94):_0x5d47b5['data']['get'](_0x471e94);return await _0x5d47b5['destroy'](),_0x51db06;}class Me extends _0x715ce1{['options'];constructor(_0x1f2362,_0x3947dc){super(_0x1f2362),this['options']=_0x3947dc,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'](_0x247607,_0x2cab02){if(!this['element'])return;const _0x99ebc7=[];for(const [_0x456a98,_0x3906c1]of _0x247607){const _0x39a665=document['createElement']('div');_0x39a665['setAttribute']('data-ck-root-name',_0x456a98),_0x39a665['className']=_0x3906c1['classes']+'\x20ck-track-changes-preview__root-container',_0x39a665['innerHTML']=_0x3906c1['content'],_0x99ebc7['push'](_0x39a665);}_0x2cab02(this['element'],_0x99ebc7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3e835b{constructor(_0xa32afb){super(_0xa32afb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ad4e1=this['editor'],_0x44c13e=_0x1ad4e1['locale'],_0xefe0c7=_0x1ad4e1['plugins']['get']('Dialog');let _0xdb871d;const _0x4fa023=function(_0x56607c){const _0x52dbff={};if('editables'in _0x56607c['ui']['view']){for(const [_0xec033f,_0x102738]of Object['entries'](_0x56607c['ui']['view']['editables']))_0x52dbff[_0xec033f]=_0x102738['element'];}else _0x52dbff[_0x56607c['model']['document']['getRootNames']()[0x0]]=_0x56607c['ui']['view']['editable']['element'];return _0x52dbff;}(_0x1ad4e1),_0x3547b9=function(_0x311ccc){let _0x399175=0x0;for(const _0x3e5493 of Object['values'](_0x311ccc))_0x399175=Math['max'](_0x399175,_0x3e5493['getBoundingClientRect']()['width']);let _0xa6e0d9=0x0;for(const _0x342f62 of Object['values'](_0x311ccc))_0xa6e0d9+=_0x342f62['getBoundingClientRect']()['height'];const _0x615b7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1f0988=Math['min'](_0xa6e0d9,_0x615b7);return{'width':_0x399175,'height':_0x1f0988};}(_0x4fa023);_0xefe0c7['show']({'id':'finalContentPreview','title':o(_0x44c13e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x44c13e,{'dialogRects':_0x3547b9}),'onHide':()=>{_0xdb871d['detachFromDom']();},'onShow':()=>{_0x1ad4e1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2dd0ec=>{const _0x3e96bb=this['_standarizeRootsData'](_0x2dd0ec,_0x1ad4e1,_0x4fa023);_0xefe0c7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3e96bb,_0x1ad4e1['config']['get']('trackChanges.preview.renderFunction'));}),_0xdb871d=new _0x4983d4(_0x44c13e,[_0xefe0c7['view']]),_0xdb871d['attachToDom'](),_0xdb871d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ad4e1['once']('destroy',()=>{_0xdb871d['detachFromDom']();});const _0x548416=_0xefe0c7['view']['headerView']['class'];_0xefe0c7['view']['headerView']['class']=_0x548416?_0x548416+'\x20ck-reset_all':'ck-reset_all',_0xefe0c7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xefe0c7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x28ca86=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x458497=_0x28ca86['previewMode'],_0x34631e={};if('$labels'===_0x458497){for(const _0x41bdf6 of _0x28ca86['getMergeFieldsIds']())_0x34631e[_0x41bdf6]=_0x28ca86['getLabel'](_0x41bdf6)||_0x41bdf6;}else{const _0x144ef1='$defaultValues'===_0x458497?_0x28ca86['getDefaultValues']():_0x28ca86['getDataSetValues'](_0x458497,!0x0);for(const _0xdff5df of Object['entries'](_0x144ef1)){const [_0x4769aa,_0x5cb828]=_0xdff5df;_0x34631e[_0x4769aa]=null!==_0x5cb828?_0x5cb828:_0x28ca86['getLabel'](_0x4769aa)||_0x4769aa;}}return{'mergeFieldsData':_0x34631e};}['_standarizeRootsData'](_0x3791f9,_0x55bab6,_0xcfb484){let _0x505eb3;if('string'==typeof _0x3791f9){const _0x5882e2=_0x55bab6['model']['document']['getRootNames']()[0x0];_0x505eb3={[_0x5882e2]:_0x3791f9};}else _0x505eb3=_0x3791f9;const _0x4a0954=this['_fixMediaEmbeds'](_0x505eb3,_0x55bab6),_0x54cfec=function(_0x42be11,_0x317121){for(const [_0x322b5b,_0x9aa258]of _0x42be11)_0x9aa258['classes']=_0x317121[_0x322b5b]['classList']['value']['replace']('ck-focused','');return _0x42be11;}(this['_sortRoots'](_0x55bab6)['reduce']((_0x37f02e,_0x3b502e)=>(_0x37f02e['push']([_0x3b502e,{'content':_0x4a0954[_0x3b502e],'classes':''}]),_0x37f02e),[]),_0xcfb484);return _0x54cfec;}['_fixMediaEmbeds'](_0x334cc8,_0x1ecfb3){if(!_0x1ecfb3['plugins']['has']('MediaEmbedEditing'))return _0x334cc8;const _0x18c959=_0x1ecfb3['plugins']['get']('MediaEmbedEditing');for(const [_0x21618d,_0x38e995]of Object['entries'](_0x334cc8)){const _0x3af3a6=document['createElement']('div');_0x3af3a6['innerHTML']=_0x38e995,(_0x3af3a6['querySelectorAll']('figure.media')['forEach'](_0x432f5b=>{const _0x441bf2=_0x432f5b['querySelector']('oembed');if(_0x441bf2){const _0x331230=_0x441bf2['getAttribute']('url');if(_0x331230){const _0x55b1d5=_0x18c959['registry']['getMediaViewElement'](new _0x10c888(_0x1ecfb3['editing']['view']['document']),_0x331230,{'elementName':'','renderForEditingView':!0x0}),_0x494b72=document['createElement']('div');_0x494b72['classList']['add']('ck-media__wrapper'),_0x55b1d5['render'](_0x494b72,_0x1ecfb3['editing']['view']['domConverter']),_0x441bf2['replaceWith'](_0x494b72);}}}),_0x334cc8[_0x21618d]=_0x3af3a6['innerHTML']);}return _0x334cc8;}['_sortRoots'](_0x4bd8b7){if(!function(_0x419edc){return void 0x0!==_0x419edc['getRootsAttributes'];}(_0x4bd8b7))return _0x4bd8b7['model']['document']['getRootNames']();const _0x146339=[],_0x12f007=new Map();for(const _0x43d4d0 of _0x4bd8b7['model']['document']['getRootNames']()){const _0x581904=_0x4bd8b7['editing']['view']['getDomRoot'](_0x43d4d0)['getClientRects']()['item'](0x0);_0x146339['push'](_0x43d4d0),_0x12f007['set'](_0x43d4d0,_0x581904);}return _0x146339['sort']((_0x1f4541,_0x433a86)=>{const _0x396744=_0x12f007['get'](_0x1f4541),_0x3c5ac1=_0x12f007['get'](_0x433a86);return _0x396744['y']-_0x3c5ac1['y']||_0x396744['x']-_0x3c5ac1['x'];}),_0x146339;}}class Ue extends _0x2b2f8b{static get['requires'](){return[re,_0x480e2d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25fd04){super(_0x25fd04),_0x25fd04['commands']['add']('previewFinalContent',new te(this['editor'])),_0x25fd04['config']['define']('trackChanges.preview.renderFunction',(_0x521f24,_0x26d216)=>{for(const _0x113167 of _0x26d216)_0x521f24['appendChild'](_0x113167);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x34fc5c,Plugin as _0x24003c,PendingActions as _0x5020d0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x45e9c9,ObservableMixin as _0x1b844d,uid as _0x579527,priorities as _0x5ea6fa,insertToPriorityArray as _0xc787e,logWarning as _0xb30c49,getEnvKeystrokeText as _0x35d32d,FocusTracker as _0x3946bc,KeystrokeHandler as _0x5582c2,Collection as _0x2f3cb1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2880a0,IconCancel as _0x4c5aed,IconTrackChanges as _0x35b2f2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1bb7b0,View as _0x1793da,ViewCollection as _0x5d7ec3,FocusCycler as _0x58f0a5,UIModel as _0x5905a0,createDropdown as _0x4daf95,SplitButtonView as _0x507cfa,addListToDropdown as _0x4c2a93,MenuBarMenuView as _0x9f6868,MenuBarMenuListView as _0x110a7d,ListSeparatorView as _0xf95cdb,MenuBarMenuListItemView as _0xbafee2,MenuBarMenuListItemButtonView as _0x299aaa,BodyCollection as _0x4f5d32,Dialog as _0x49f884}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x590dd4,DocumentCompare as _0x5cebf1,hashObject as _0x1b4e43,surroundingMarkersDetector as _0x14941f,FOCUS_ANNOTATION_KEYSTROKE as _0x3fb345,AriaDescriptionView as _0x2563b3,setupThreadKeyboardNavigation as _0x16a2fb,trimHtml as _0x5af532,UserView as _0x2c54b7,LateFocusButtonView as _0x2dbcc5,getDateTimeFormatter as _0x39601f,getAllMarkersDomElementsSorted as _0x2e091f,sanitizeEditorConfig as _0x193a33}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x6877fb,ModelLiveRange as _0xc9628b,ModelLivePosition as _0x13fe0a,ViewDowncastWriter as _0x4b5e59}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x526a09,set as _0x2a7e12,isEqual as _0x36b1e4,unset as _0x4ded6c,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5d4ed1,Input as _0x3fe82a}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5a1bd7}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x6b37e5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x34fc5c{['_enabledCommands'];constructor(_0x9fb2aa,_0x227f62){super(_0x9fb2aa),this['_enabledCommands']=_0x227f62,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 _0x1396a7 of this['editor']['commands']['commands']())_0x1396a7['affectsData']&&!this['_enabledCommands']['has'](_0x1396a7)&&_0x1396a7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x21a5d4 of this['editor']['commands']['commands']())_0x21a5d4['affectsData']&&!this['_enabledCommands']['has'](_0x21a5d4)&&_0x21a5d4['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x34fc5c{['_suggestions'];constructor(_0x5a90b5,_0x33c9fb){super(_0x5a90b5),this['_suggestions']=_0x33c9fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x517665){const _0x37218c=this['_suggestions']['get'](_0x517665);if(!_0x37218c)throw new _0x45e9c9('track-changes-accept-suggestion-not-found',this);const _0x518391=_0x37218c['getRanges']();this['editor']['model']['canEditAt'](_0x518391)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x37218c);}}class D extends _0x34fc5c{['_suggestions'];constructor(_0x19def5,_0x235daa){super(_0x19def5),this['_suggestions']=_0x235daa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5725c8){const _0x283e3e=this['_suggestions']['get'](_0x5725c8);if(!_0x283e3e)throw new _0x45e9c9('track-changes-discard-suggestion-not-found',this);const _0x4b6087=_0x283e3e['getRanges']();this['editor']['model']['canEditAt'](_0x4b6087)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x283e3e);}}function ls(_0x435f54,_0x3da587){let _0x39e4f4='';return _0x39e4f4+=_0x435f54['split']('*')['map']((_0x569c41,_0x9ddba4)=>_0x9ddba4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x569c41)+'</span>':rn(_0x569c41))['join'](''),_0x3da587&&(_0x39e4f4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3da587['value']+'\x22\x20title=\x22'+_0x3da587['title']+'\x22></span>'),_0x39e4f4;}function rn(_0x386ee5){const _0x2fb350=document['createElement']('span');return _0x2fb350['innerText']=_0x386ee5,_0x2fb350['innerHTML'];}function ts(_0x75b6de){return _0x75b6de['sort']((_0x4b67f6,_0x37562b)=>'attribute'===_0x4b67f6['type']&&'attribute'!==_0x37562b['type']?-0x1:'attribute'!==_0x4b67f6['type']&&'attribute'===_0x37562b['type']?0x1:'deletion'==_0x4b67f6['type']&&'deletion'!=_0x37562b['type']?-0x1:'deletion'!=_0x4b67f6['type']&&'deletion'==_0x37562b['type']?0x1:0x0);}function to(_0x47be93,_0x4d02f4){let _0x3a2034,_0x46f40e=0x0;const _0x13629b=[],_0x420932=_0x4d02f4['schema'];for(;_0x46f40e<_0x47be93['length'];){const _0x5e01db=_0x47be93[_0x46f40e],_0x5f47d0=_0x47be93[_0x46f40e+0x1];_0x3a2034||(_0x3a2034=_0x4d02f4['createPositionBefore'](_0x5e01db)),cn(_0x4d02f4,_0x5e01db,_0x5f47d0)||(_0x13629b['push'](_0x4d02f4['createRange'](_0x3a2034,_0x420932['isObject'](_0x5e01db)?_0x4d02f4['createPositionAfter'](_0x5e01db):_0x4d02f4['createPositionAt'](_0x5e01db,'end'))),_0x3a2034=null),_0x46f40e++;}return _0x13629b;}function cn(_0x57bab1,_0x177f4d,_0x34a29b){if(!_0x34a29b)return!0x1;const _0x356178=_0x57bab1['createPositionAfter'](_0x177f4d),_0x5a145c=_0x57bab1['createPositionBefore'](_0x34a29b);return _0x356178['isTouching'](_0x5a145c);}function rs(_0x5e1882,_0x52e6f2,_0x57cb69){for(;_0x57cb69['length'];){const _0x18b47d=_0x57cb69['splice'](0x0,0x64);_0x5e1882['change'](()=>{for(const _0x230159 of _0x18b47d)_0x230159['isInContent']&&_0x52e6f2['execute'](_0x230159['id']);});}}class B extends _0x34fc5c{['_command'];['_suggestions'];constructor(_0x28668f,_0x5df202,_0x3a7548){super(_0x28668f),this['_command']=_0x5df202,this['_suggestions']=_0x3a7548,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x349862=Array['from'](this['_suggestions']['values']())['some'](_0x22074a=>_0x22074a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x349862;}['execute'](){const _0x3bc98f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x21f741 of _0x3bc98f){const _0x430dab=_0x21f741['getRanges']();if(!this['editor']['model']['canEditAt'](_0x430dab))return;}rs(this['editor']['model'],this['_command'],_0x3bc98f);}}class O extends _0x34fc5c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x181636,_0x3b6a0c,_0x4bf462){super(_0x181636),this['_command']=_0x3b6a0c,this['_suggestions']=_0x4bf462,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28896b=this['editor']['model']['document']['selection'],_0x23b794=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a135e,_0x5fe551){const _0xd304d1=Array['from'](_0x3a135e['getRanges']()),_0x154a9b=new Set();for(const _0x53b419 of _0x5fe551)if(_0x53b419['isInContent']){for(const _0x3f2d24 of _0xd304d1)for(const _0x241633 of _0x53b419['getRanges']())(_0x3f2d24['isIntersecting'](_0x241633)||_0x3a135e['isCollapsed']&&!_0x53b419['isMultiRange']&&_0x53b419['next']&&_0x241633['end']['isTouching'](_0x3f2d24['start']))&&_0x154a9b['add'](_0x53b419);}return _0x154a9b;}(_0x28896b,_0x23b794),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1e6cd0=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3182e8 of _0x1e6cd0){const _0x15f0cc=_0x3182e8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x15f0cc))return;}rs(this['editor']['model'],this['_command'],_0x1e6cd0);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x1b844d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x294a6f,_0x59d778){super(),this['id']=_0x59d778['id'],this['type']=_0x59d778['type'],this['subType']=_0x59d778['subType']||null,this['author']=_0x59d778['author'],this['creator']=_0x59d778['creator']||_0x59d778['author'],this['isExternal']=Boolean(_0x59d778['attributes']&&_0x59d778['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59d778['originalSuggestionId']||null,this['_model']=_0x294a6f,this['_onAccept']=_0x59d778['onAccept'],this['_onDiscard']=_0x59d778['onDiscard'],this['_onAttributesChange']=_0x59d778['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59d778['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 _0x516e21=this;for(;_0x516e21['previous'];)_0x516e21=_0x516e21['previous'];return _0x516e21;}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'](_0x31bbe5){this['_markerNames']['add'](_0x31bbe5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4a045d=>this['_model']['markers']['get'](_0x4a045d))['filter'](_0x1dc125=>_0x1dc125);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x566131=>{for(const _0x3d1b0d of this['getMarkers']())_0x566131['removeMarker'](_0x3d1b0d);}),this['_markerNames']['clear']();}['removeMarker'](_0xa212f2){this['_model']['change'](_0x401979=>{_0x401979['removeMarker'](_0xa212f2);}),this['_markerNames']['delete'](_0xa212f2);}['addRange'](_0x266253){const _0x4b6eee='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x4b6eee),this['_model']['change'](_0x556944=>{_0x556944['addMarker'](_0x4b6eee,{'range':_0x266253,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x45dab8){for(const _0x5b5db0 of this['getRanges']())if(_0x5b5db0['isIntersecting'](_0x45dab8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c9058=>_0x4c9058['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5c99b2,_0x6b6279)=>[..._0x5c99b2,..._0x6b6279['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x26211e=this['getRanges']();if(0x1!=_0x26211e['length'])return null;const _0x81a76=_0x26211e[0x0],_0x7a2ecd=_0x81a76['start']['nodeAfter'],_0x38fba5=_0x81a76['end']['nodeBefore'];return _0x7a2ecd instanceof _0x6877fb?_0x7a2ecd!=_0x38fba5?null:_0x7a2ecd: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 _0x255ea2=[];let _0x3555d7=this['head'];for(;_0x3555d7;)_0x255ea2['push'](_0x3555d7),_0x3555d7=_0x3555d7['next'];return _0x255ea2;}['setAttribute'](_0x419988,_0x142070){const _0x201a02=_0x526a09(this['attributes']);_0x2a7e12(_0x201a02,_0x419988,_0x142070),_0x36b1e4(_0x201a02,this['attributes'])||(this['attributes']=_0x201a02,this['_onAttributesChange'](_0x201a02));}['removeAttribute'](_0x494683){const _0x53977a=_0x526a09(this['attributes']);_0x4ded6c(_0x53977a,_0x494683),_0x36b1e4(_0x53977a,this['attributes'])||(this['attributes']=_0x53977a,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 _0x579527()['substr'](0x1,0x5);}}function o(_0x1ea812,_0x1d567a,_0x4f7dc8){const _0x27321c=_0x1ea812['t'],t=_0x1ea812['t'];switch(_0x1d567a){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',_0x4f7dc8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4f7dc8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4f7dc8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4f7dc8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4f7dc8);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',_0x4f7dc8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4f7dc8);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',_0x4f7dc8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4f7dc8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4f7dc8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4f7dc8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4f7dc8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4f7dc8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4f7dc8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4f7dc8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4f7dc8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4f7dc8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4f7dc8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4f7dc8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4f7dc8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4f7dc8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4f7dc8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4f7dc8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4f7dc8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4f7dc8);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'},_0x4f7dc8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4f7dc8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4f7dc8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4f7dc8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4f7dc8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4f7dc8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4f7dc8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4f7dc8);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'},_0x4f7dc8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4f7dc8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4f7dc8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4f7dc8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4f7dc8);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4f7dc8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4f7dc8);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'},_0x4f7dc8);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_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'},_0x4f7dc8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4f7dc8);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'},_0x4f7dc8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4f7dc8);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'},_0x4f7dc8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4f7dc8);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4f7dc8);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4f7dc8);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4f7dc8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4f7dc8);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'},_0x4f7dc8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4f7dc8);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 _0x27321c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4f7dc8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x27321c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4f7dc8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4f7dc8);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'},_0x4f7dc8);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'},_0x4f7dc8);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'},_0x4f7dc8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d567a;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x33353d,_0x5078e0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x33353d,this['_locale']=_0x5078e0;}['getDescriptions'](_0x3e20e8){const _0xc384c5=[],_0x3a5cc8=new Set(),_0x5d505d=new Set();for(let _0x5dfffc=0x0;_0x5dfffc<_0x3e20e8['length'];_0x5dfffc++){const _0x11623c=_0x3e20e8[_0x5dfffc];if(!_0x11623c['isInContent'])continue;const _0x3b9903=this['_handleCustomCallbackDescription'](_0x11623c);if(_0x3b9903){if(null!=_0x11623c['subType']){if(_0x3a5cc8['has'](_0x11623c['subType']))continue;_0x3a5cc8['add'](_0x11623c['subType']);}_0xc384c5['push'](_0x3b9903);}else{if('attribute'==_0x11623c['type']){const _0x5b7ec7=_0x11623c['data']['key'];if(_0x5d505d['has'](_0x5b7ec7))continue;_0x5d505d['add'](_0x11623c['data']['key']),_0x5b7ec7==m?this['_handleRenameSuggestionDescription'](_0xc384c5,_0x11623c):this['_handleAttributeSuggestionDescription'](_0xc384c5,_0x11623c);continue;}'insertion'!=_0x11623c['type']&&'deletion'!=_0x11623c['type']||this['_handleInsertRemoveSuggestionDescription'](_0xc384c5,_0x11623c,_0x3e20e8[_0x5dfffc+0x1]);}}return this['_resolveDescriptionItems'](_0xc384c5);}['registerDescriptionCallback'](_0x5c8bc6){this['_customCallbacks']['push'](_0x5c8bc6);}['registerElementLabel'](_0xb08199,_0x26fe41,_0x187baa=_0x5ea6fa['normal']){'function'==typeof _0xb08199?_0xc787e(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb08199,'label':_0x26fe41,'priority':_0x187baa}):this['_itemLabels']['set'](_0xb08199,_0x26fe41);}['registerAttributeLabel'](_0x3155b0,_0x54bcd3){this['_attributeLabels']['set'](_0x3155b0,_0x54bcd3);}['getItemLabel'](_0x12dfb1,_0x5acdfc=0x1){let _0x44ec34;for(const _0x1223b1 of this['_itemLabelsCallbacks'])if(_0x1223b1['matchingCallback'](_0x12dfb1)){_0x44ec34=_0x1223b1['label'];break;}return _0x44ec34||(_0x44ec34=this['_itemLabels']['get'](_0x12dfb1['name'])),_0x44ec34?_0x44ec34(_0x5acdfc):0x1!==_0x5acdfc?_0x5acdfc+'\x20'+_0x12dfb1['name']+'s':''+_0x12dfb1['name'];}['_addDescriptionItems'](_0x918508,_0x11d8f5){const _0x2766d6=_0x11d8f5['getFirstRange']()['getWalker'](),_0x1b7c10='insertion'==_0x11d8f5['type']?'add':'remove';for(const _0x4a5721 of _0x2766d6){const _0x4ef80f=_0x4a5721['item'],_0x45e4b7=_0x918508[_0x918508['length']-0x1];if(_0x4ef80f['is']('$textProxy'))_0x45e4b7&&_0x45e4b7['type']['indexOf']('Container')>-0x1&&_0x918508['pop'](),_0x45e4b7&&'text'==_0x45e4b7['type']?_0x45e4b7[_0x1b7c10]+=_0x4ef80f['data']:_0x918508['push']({'type':'text','add':'add'==_0x1b7c10?_0x4ef80f['data']:'','remove':'remove'==_0x1b7c10?_0x4ef80f['data']:''});else{if(this['_schema']['isObject'](_0x4ef80f)){const _0x48fc78=_0x4ef80f;if(_0x45e4b7&&_0x45e4b7['type']['indexOf']('Container')>-0x1&&_0x918508['pop'](),'elementEnd'==_0x4a5721['type'])continue;_0x45e4b7&&_0x45e4b7['type']==_0x1b7c10+'Object'&&_0x45e4b7['element']['name']==_0x48fc78['name']?_0x45e4b7['quantity']++:_0x918508['push']({'type':_0x1b7c10+'Object','element':_0x48fc78,'quantity':0x1}),_0x2766d6['skip'](_0x4ad9bc=>!('elementEnd'==_0x4ad9bc['type']&&_0x4ad9bc['item']==_0x4ef80f));}else{if(this['_schema']['checkChild'](_0x4ef80f,'$text')||_0x4ef80f['is']('element','softBreak')){const _0x31109e=_0x4ef80f;if('add'==_0x1b7c10&&'elementStart'==_0x4a5721['type']||'remove'==_0x1b7c10&&'elementEnd'==_0x4a5721['type'])continue;if(_0x45e4b7&&-0x1==_0x45e4b7['type']['indexOf']('Container')){'text'==_0x45e4b7['type']&&(_0x45e4b7[_0x1b7c10]+='\x0a');continue;}let _0x1cf2df;if(_0x1cf2df='add'==_0x1b7c10?_0x31109e['nextSibling']&&!this['_schema']['isObject'](_0x31109e['nextSibling'])?_0x31109e['nextSibling']:null:_0x31109e['previousSibling']&&!this['_schema']['isObject'](_0x31109e['previousSibling'])?_0x31109e['previousSibling']:null,_0x31109e['isEmpty']||_0x1cf2df&&_0x1cf2df['isEmpty']){const _0x21cab6=_0x1cf2df&&_0x1cf2df['isEmpty']?_0x1cf2df:_0x31109e;_0x45e4b7&&_0x45e4b7['type']==_0x1b7c10+'EmptyContainer'&&_0x45e4b7['element']['name']==_0x21cab6['name']?_0x45e4b7['quantity']++:_0x918508['push']({'type':_0x1b7c10+'EmptyContainer','element':_0x21cab6,'quantity':0x1});}else _0x918508['push']({'type':_0x1b7c10+'Container','element':_0x31109e});}}}}}['_resolveDescriptionItems'](_0x569a8a){const _0x1d3439=this['_locale'],_0x63c437=[],_0x5058ee=[],_0x2c8051=[];for(const _0x47aab5 of _0x569a8a)switch(_0x47aab5['type']){case'text':if(_0x47aab5['add']=_0x47aab5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47aab5['remove']=_0x47aab5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47aab5['add']&&''!=_0x47aab5['remove']){_0x63c437['push']({'type':'replace','content':o(_0x1d3439,'REPLACE_TEXT',['\x22'+_0x47aab5['remove']+'\x22','\x22'+_0x47aab5['add']+'\x22'])});continue;}if(null!=_0x47aab5['add']['match'](/^ +$/)){_0x63c437['push']({'type':'insertion','content':o(_0x1d3439,'*Insert:*\x20%0',o(_0x1d3439,'ELEMENT_SPACE',_0x47aab5['add']['length']))});continue;}if(null!=_0x47aab5['remove']['match'](/^ +$/)){_0x63c437['push']({'type':'deletion','content':o(_0x1d3439,'*Remove:*\x20%0',o(_0x1d3439,'ELEMENT_SPACE',_0x47aab5['remove']['length']))});continue;}if(''!=_0x47aab5['add']){_0x63c437['push']({'type':'insertion','content':o(_0x1d3439,'*Insert:*\x20%0','\x22'+_0x47aab5['add']+'\x22')});continue;}_0x63c437['push']({'type':'deletion','content':o(_0x1d3439,'*Remove:*\x20%0','\x22'+_0x47aab5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x63c437['push']({'type':'insertion','content':o(_0x1d3439,'*Insert:*\x20%0',this['getItemLabel'](_0x47aab5['element'],_0x47aab5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x63c437['push']({'type':'deletion','content':o(_0x1d3439,'*Remove:*\x20%0',this['getItemLabel'](_0x47aab5['element'],_0x47aab5['quantity']))});continue;case'addContainer':_0x63c437['push']({'type':'insertion','content':o(_0x1d3439,'*Split:*\x20%0',this['getItemLabel'](_0x47aab5['element'],_0x47aab5['quantity']))});continue;case'removeContainer':_0x63c437['push']({'type':'deletion','content':o(_0x1d3439,'*Merge:*\x20%0',this['getItemLabel'](_0x47aab5['element'],_0x47aab5['quantity']))});continue;case'addFormat':_0x5058ee['push'](_0x47aab5['key']);continue;case'removeFormat':_0x2c8051['push'](_0x47aab5['key']);continue;default:_0x63c437['push'](_0x47aab5);}if(_0x5058ee['length']){const _0x56e974=_0x5058ee['map'](_0x512a31=>this['_attributeLabels']['has'](_0x512a31)?this['_attributeLabels']['get'](_0x512a31):_0x512a31)['join'](',\x20');_0x63c437['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x56e974)});}if(_0x2c8051['length']){const _0x597b61=_0x2c8051['map'](_0x1baa30=>this['_attributeLabels']['has'](_0x1baa30)?this['_attributeLabels']['get'](_0x1baa30):_0x1baa30)['join'](',\x20');_0x63c437['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x597b61)});}return _0x63c437;}['_handleCustomCallbackDescription'](_0x486e6b){for(const _0x240437 of this['_customCallbacks']){const _0x293f06=_0x240437(_0x486e6b);if(_0x293f06&&'type'in _0x293f06)return _0x293f06;}}['_handleAttributeSuggestionDescription'](_0x5e038f,_0x4c6b2b){const _0x46f0bd=_0x4c6b2b['data'],_0x2793b9=void 0x0===_0x46f0bd['newValue']?'removeFormat':'addFormat';_0x5e038f['push']({'type':_0x2793b9,'key':_0x46f0bd['key']});}['_handleRenameSuggestionDescription'](_0x53efde,_0x441428){_0x53efde['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x441428['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x233c5f,_0x2718db,_0x255a50){if(this['_addDescriptionItems'](_0x233c5f,_0x2718db),_0x255a50&&_0x255a50['getFirstRange']()&&!_0x2718db['getFirstRange']()['end']['isEqual'](_0x255a50['getFirstRange']()['start'])){const _0x239536=_0x233c5f[_0x233c5f['length']-0x1],_0x2e0790='insertion'==_0x2718db['type']?'add':'remove';_0x239536&&'text'==_0x239536['type']&&(_0x239536[_0x2e0790]+='\x0a');}}}class R extends _0x24003c{['afterInit'](){const _0x2deb82=this['editor'],_0x5874b6=_0x2deb82['plugins']['get']('TrackChangesEditing');_0x2deb82['commands']['get']('showAIAssistant')&&_0x5874b6['enableCommand']('showAIAssistant');}}class T extends _0x24003c{['afterInit'](){const _0x39a5e1=this['editor'],_0xf25c3b=_0x39a5e1['plugins']['get']('TrackChangesEditing');_0x39a5e1['commands']['get']('toggleAi')&&_0xf25c3b['enableCommand']('toggleAi');}}class E extends _0x24003c{['afterInit'](){const _0x33c3b0=this['editor'],_0x6b97c4=_0x33c3b0['plugins']['get']('TrackChangesEditing');_0x33c3b0['commands']['get']('aiQuickAction')&&_0x6b97c4['enableCommand']('aiQuickAction');}}class U extends _0x24003c{['afterInit'](){const _0x4ab330=this['editor'],_0x461efb=_0x4ab330['locale'];if(!_0x4ab330['plugins']['has']('AlignmentEditing'))return;const _0x23d777=_0x4ab330['plugins']['get']('TrackChangesEditing');_0x23d777['enableDefaultAttributesIntegration']('alignment'),_0x23d777['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x461efb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c546=this['editor'],_0x120e2c=_0x39c546['locale'];_0x39c546['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fcea9=>{if('formatBlock'!=_0x2fcea9['type'])return;const {data:_0x2a007e}=_0x2fcea9;if(_0x2a007e&&'alignment'==_0x2a007e['commandName']){const _0x1bb394=_0x2a007e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x120e2c,'*Format:*\x20%0',function(_0x3e708c){switch(_0x3e708c){case'left':return o(_0x120e2c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x120e2c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x120e2c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x120e2c,'FORMAT_JUSTIFY_TEXT');}}(_0x1bb394))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x24003c{['afterInit'](){const _0x49396c=this['editor'],_0x1540ff=_0x49396c['plugins']['get']('TrackChangesEditing'),_0x64927e=_0x49396c['locale'];for(const _0x4db867 of ti){if(!_0x49396c['plugins']['has'](_0x4db867))continue;const _0x51f2e4=_0x4db867['slice'](0x0,-0x7)['toLowerCase'](),_0x142054='FORMAT_'+_0x51f2e4['toUpperCase']();_0x1540ff['enableDefaultAttributesIntegration'](_0x51f2e4),_0x1540ff['descriptionFactory']['registerAttributeLabel'](_0x51f2e4,o(_0x64927e,_0x142054));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ce46b=this['editor'],_0x46e6f6=_0x1ce46b['locale'],_0x2b8a87=_0x1ce46b['plugins']['get']('TrackChangesEditing');function _0xf29b45(_0x51200,_0x232ec8){_0x2b8a87['descriptionFactory']['registerDescriptionCallback'](_0x6e44a0=>{if('formatInline'!=_0x6e44a0['type'])return;const {data:_0x17fc06}=_0x6e44a0;return _0x17fc06&&_0x17fc06['commandName']===_0x51200?_0x17fc06['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46e6f6,'*Format:*\x20%0',_0x232ec8)}:{'type':'format','content':o(_0x46e6f6,'*Remove\x20format:*\x20%0',_0x232ec8)}:void 0x0;});}_0xf29b45('bold',o(_0x46e6f6,'FORMAT_BOLD')),_0xf29b45('italic',o(_0x46e6f6,'FORMAT_ITALIC')),_0xf29b45('underline',o(_0x46e6f6,'FORMAT_UNDERLINE')),_0xf29b45('code',o(_0x46e6f6,'FORMAT_CODE')),_0xf29b45('strikethrough',o(_0x46e6f6,'FORMAT_STRIKETHROUGH')),_0xf29b45('subscript',o(_0x46e6f6,'FORMAT_SUBSCRIPT')),_0xf29b45('superscript',o(_0x46e6f6,'FORMAT_SUPERSCRIPT'));}}class F extends _0x24003c{['afterInit'](){const _0x58f40f=this['editor'],_0x2dc916=_0x58f40f['locale'];if(!_0x58f40f['plugins']['has']('BlockQuoteEditing'))return;const _0x4c422d=_0x58f40f['plugins']['get']('TrackChangesEditing'),_0x241e53=this['editor']['commands']['get']('blockQuote');_0x4c422d['enableCommand']('blockQuote',(_0x1964db,_0x4a84c6={})=>{const _0x1e96b8=this['editor']['model']['document']['selection'],_0x549199=_0x4a84c6&&void 0x0!==_0x4a84c6['forceValue']?_0x4a84c6['forceValue']:!_0x241e53['value'];let _0x402703=[];if(_0x549199){const _0x384f95=Array['from'](_0x1e96b8['getSelectedBlocks']())['filter'](_0x4f4893=>oo(_0x4f4893)||function(_0x361fb1,_0x4005eb){const _0x401161=_0x4005eb['checkChild'](_0x361fb1['parent'],'blockQuote'),_0xb7d71b=_0x4005eb['checkChild'](['$root','blockQuote'],_0x361fb1);return _0x401161&&_0xb7d71b;}(_0x4f4893,this['editor']['model']['schema']));_0x402703=to(_0x384f95,_0x58f40f['model']);}else{const _0x473e9e=Array['from'](_0x1e96b8['getSelectedBlocks']())['filter'](_0x548efb=>oo(_0x548efb));_0x402703=to(_0x473e9e,_0x58f40f['model']);}_0x58f40f['model']['change'](()=>{for(const _0xe018d4 of _0x402703)_0x4c422d['markBlockFormat'](_0xe018d4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x549199}]});});}),_0x4c422d['descriptionFactory']['registerDescriptionCallback'](_0x57f4f3=>{const {data:_0x399498}=_0x57f4f3;if(_0x399498&&'blockQuote'==_0x399498['commandName']){const _0x46066d=o(_0x2dc916,'ELEMENT_BLOCK_QUOTE');return _0x399498['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dc916,'*Set\x20format:*\x20%0',_0x46066d)}:{'type':'format','content':o(_0x2dc916,'*Remove\x20format:*\x20%0',_0x46066d)};}});}}function oo(_0x33d5dd){return'blockQuote'==_0x33d5dd['parent']['name'];}class G extends _0x24003c{['afterInit'](){const _0x3738a2=this['editor'],_0x2e30d3=_0x3738a2['locale'],_0x2d7838=_0x3738a2['plugins']['get']('TrackChangesEditing');_0x3738a2['plugins']['has']('BookmarkEditing')&&(_0x2d7838['enableCommand']('insertBookmark'),_0x2d7838['enableDefaultAttributesIntegration']('updateBookmark'),_0x2d7838['descriptionFactory']['registerDescriptionCallback'](_0x5622e4=>{if('insertion'!=_0x5622e4['type']&&'deletion'!=_0x5622e4['type']&&'attribute'!=_0x5622e4['type'])return;const _0x36f626=_0x5622e4['getContainedElement']();if(null==_0x36f626)return;if(!_0x36f626['is']('element','bookmark'))return;const _0x5833a9=_0x36f626['getAttribute']('bookmarkId');if('insertion'==_0x5622e4['type'])return{'type':'insertion','content':o(_0x2e30d3,'*Insert:*\x20%0','\x22'+_0x5833a9+'\x22\x20'+o(_0x2e30d3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5622e4['type'])return{'type':'deletion','content':o(_0x2e30d3,'*Remove:*\x20%0','\x22'+_0x5833a9+'\x22\x20'+o(_0x2e30d3,'ELEMENT_BOOKMARK'))};const {data:_0x41ca75}=_0x5622e4;if(!_0x41ca75||'bookmarkId'!=_0x41ca75['key'])return;return{'type':'format','content':o(_0x2e30d3,'*Set\x20bookmark:*\x20%0','\x22'+_0x41ca75['newValue']+'\x22')};}));}}class L extends _0x24003c{['afterInit'](){const _0x351765=this['editor'];_0x351765['plugins']['has']('CaseChange')&&(_0x351765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x351765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x351765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x24003c{['afterInit'](){const _0x298f93=this['editor'];_0x298f93['commands']['get']('ckbox')&&_0x298f93['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x24003c{['afterInit'](){const _0xe606bd=this['editor'];if(!_0xe606bd['plugins']['has']('CodeBlock'))return;const _0x4c8008=_0xe606bd['plugins']['get']('TrackChangesEditing'),_0x828ab4=_0xe606bd['locale'],_0x1dd987=_0xe606bd['config']['get']('codeBlock')['languages'],_0x1a413b=_0xe606bd['commands']['get']('codeBlock');_0x4c8008['enableCommand']('indentCodeBlock'),_0x4c8008['enableCommand']('outdentCodeBlock'),_0x4c8008['enableCommand']('codeBlock',(_0x1e7a34,_0x4f3a41={})=>{const _0x70e4b7=_0xe606bd['model'],_0xb5c570=_0xe606bd['model']['document']['selection'],_0x46b5c8=_0x4f3a41&&void 0x0!==_0x4f3a41['forceValue']?_0x4f3a41['forceValue']:!_0x1a413b['value'];let _0x35ce02;_0x4f3a41['language']||(_0x4f3a41['language']=_0x1dd987[0x0]['language']),_0x35ce02=_0x46b5c8?Array['from'](_0xb5c570['getSelectedBlocks']())['filter'](_0x2956e7=>co(_0x2956e7)||function(_0x5d873a,_0x1acbc6){if(_0x5d873a['is']('rootElement')||_0x1acbc6['isLimit'](_0x5d873a))return!0x1;return _0x1acbc6['checkChild'](_0x5d873a['parent'],'codeBlock');}(_0x2956e7,_0x70e4b7['schema'])):Array['from'](_0xb5c570['getSelectedBlocks']())['filter'](_0x510261=>co(_0x510261));const _0x21f05f=to(_0x35ce02,_0x70e4b7);_0x70e4b7['change'](()=>{for(const _0x230661 of _0x21f05f)_0x4c8008['markBlockFormat'](_0x230661,{'commandName':'codeBlock','commandParams':[{..._0x4f3a41,'forceValue':_0x46b5c8}],'formatGroupId':'blockName'});});}),(_0x4c8008['descriptionFactory']['registerElementLabel']('codeBlock',_0x2325a2=>o(_0x828ab4,'ELEMENT_CODE_BLOCK',_0x2325a2)),_0x4c8008['descriptionFactory']['registerDescriptionCallback'](_0x5c6ade=>{if('formatBlock'!=_0x5c6ade['type'])return;const _0x3b250f=_0x828ab4['t'],{data:_0x43e854}=_0x5c6ade;if(!_0x43e854||'codeBlock'!=_0x43e854['commandName'])return;const _0x1ddaca=_0x43e854['commandParams'][0x0]['language'],_0x3d9525=_0x3b250f(_0x1dd987['find'](_0x395854=>_0x395854['language']===_0x1ddaca)['label'])['toLowerCase']();return _0x43e854['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x828ab4,'*Set\x20format:*\x20%0',o(_0x828ab4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3d9525+')')}:{'type':'format','content':o(_0x828ab4,'*Remove\x20format:*\x20%0',o(_0x828ab4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4f077b){return'codeBlock'==_0x4f077b['name'];}class z extends _0x24003c{['afterInit'](){const _0x161139=this['editor'];if(!_0x161139['plugins']['has']('CommentsEditing'))return;_0x161139['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x24003c{static get['requires'](){return[_0x5d4ed1];}['init'](){const _0x1dd049=this['editor'],_0x9fc384=_0x1dd049['plugins']['get']('TrackChangesEditing');_0x9fc384['enableCommand']('delete');const _0x3bc62f=_0x1dd049['commands']['get']('deleteForward');_0x9fc384['enableCommand']('deleteForward',(_0x1924a1,_0x91ff30={})=>{const _0x105fe6=_0x1dd049['model']['createSelection'](_0x1dd049['model']['document']['selection']);_0x105fe6['isCollapsed']&&_0x1dd049['model']['modifySelection'](_0x105fe6,{'direction':'forward','unit':_0x91ff30['unit']});const _0x32ec15=_0x105fe6['getFirstRange'](),_0xe2b3d5=_0xc9628b['fromRange'](_0x32ec15);let _0x1e3934;_0x1924a1(_0x91ff30),_0x1e3934='$graveyard'==_0xe2b3d5['root']['rootName']?_0x1dd049['model']['createRange'](_0x32ec15['start']):_0x1dd049['model']['createRange'](_0xe2b3d5['start'],_0xe2b3d5['end']),_0xe2b3d5['detach'](),_0x1dd049['model']['enqueueChange'](_0x3bc62f['buffer']['batch'],_0x48fc7c=>{_0x3bc62f['buffer']['lock'](),_0x48fc7c['setSelection'](_0x48fc7c['createRange'](_0x1e3934['end'])),_0x3bc62f['buffer']['unlock']();});});}}class W extends _0x24003c{['afterInit'](){const _0x33b29=this['editor'];if(!_0x33b29['plugins']['has']('ListEditing'))return;const _0x29dc86=_0x33b29['locale'],_0x5d7cc9=_0x33b29['plugins']['get']('TrackChangesEditing'),_0x1c9883=_0x33b29['plugins']['has']('TodoListEditing'),_0x1f9142=!!_0x33b29['config']['get']('list.multiBlock');function _0x389896(_0x46e064){return{'type':'format','content':''+o(_0x29dc86,'*Set\x20format:*\x20%0',_0x46e064)};}function _0x401cbd(_0x5a2c8d){return{'type':'format','content':''+o(_0x29dc86,'*Remove\x20format:*\x20%0',_0x5a2c8d)};}_0x5d7cc9['enableDefaultAttributesIntegration']('numberedList'),_0x5d7cc9['enableDefaultAttributesIntegration']('bulletedList'),_0x5d7cc9['enableDefaultAttributesIntegration']('customNumberedList'),_0x5d7cc9['enableDefaultAttributesIntegration']('customBulletedList'),_0x5d7cc9['enableDefaultAttributesIntegration']('indentList'),_0x5d7cc9['enableDefaultAttributesIntegration']('outdentList'),_0x5d7cc9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5d7cc9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1f9142&&(_0x5d7cc9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5d7cc9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1c9883&&(_0x5d7cc9['enableDefaultAttributesIntegration']('todoList'),_0x5d7cc9['enableDefaultAttributesIntegration']('checkTodoList'),_0x5d7cc9['descriptionFactory']['registerDescriptionCallback'](_0x2006d1=>{const {data:_0x4d347e}=_0x2006d1;if(_0x4d347e&&'todoListChecked'==_0x4d347e['key'])return{'type':'format','content':_0x4d347e['newValue']?o(_0x29dc86,'*Check\x20item*'):o(_0x29dc86,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x20ef2a=>{if(_0x20ef2a['batch']['isUndo'])return!0x1;let _0x24c9ea=!0x1;const _0x51705d=_0x5d7cc9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34d2e9=>'todoListChecked'===_0x5d7cc9['_getAttributeKey'](_0x34d2e9));for(const _0x4fd27c of _0x51705d){'todo'!=_0x4fd27c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5d7cc9['_findSuggestions'](_0x4fd27c['getFirstRange'](),'attribute')['find'](_0x5c5095=>'listType'===_0x5d7cc9['_getAttributeKey'](_0x5c5095['suggestion']))||(_0x20ef2a['removeMarker'](_0x4fd27c['getFirstMarker']()),_0x24c9ea=!0x0));}return _0x24c9ea;})),_0x5d7cc9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x29dc86,'FORMAT_INDENT'));const _0x3bef1c={'type':'format','content':''};_0x5d7cc9['descriptionFactory']['registerDescriptionCallback'](_0x588f1d=>{const {data:_0x545de2}=_0x588f1d;if(!_0x545de2||'listType'!=_0x545de2['key'])return;let _0x45997b=_0x588f1d['head'];for(;_0x45997b;){if(_0x45997b['data']&&(('listStyle'==_0x45997b['data']['key']||'listMarkerStyle'==_0x45997b['data']['key'])&&(_0x45997b['data']['newValue']&&'default'!=_0x45997b['data']['newValue']||'default'!=_0x45997b['data']['oldValue']&&!_0x545de2['newValue'])||!_0x1f9142&&_0x45997b['data']['key']==m))return _0x3bef1c;_0x45997b=_0x45997b['next'];}if(null==_0x545de2['newValue'])switch(_0x545de2['oldValue']){case'bulleted':return _0x401cbd(o(_0x29dc86,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x401cbd(o(_0x29dc86,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x401cbd(o(_0x29dc86,'ELEMENT_TODO_LIST'));}switch(_0x545de2['newValue']){case'bulleted':return _0x389896(o(_0x29dc86,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x389896(o(_0x29dc86,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x389896(o(_0x29dc86,'ELEMENT_TODO_LIST'));}}),_0x5d7cc9['descriptionFactory']['registerDescriptionCallback'](_0x198e82=>{const {data:_0x5159d9}=_0x198e82;if(_0x5159d9&&'listIndent'==_0x5159d9['key'])return null==_0x5159d9['newValue']||null==_0x5159d9['oldValue']&&0x0==_0x5159d9['newValue']?_0x3bef1c:void 0x0;}),_0x5d7cc9['descriptionFactory']['registerDescriptionCallback'](_0x3448b8=>{if('attribute'!=_0x3448b8['type'])return;const {data:_0x348e16}=_0x3448b8;if(!_0x348e16||'listItemId'!=_0x348e16['key'])return;const _0x4d8fce=Te(_0x3448b8);return'newValue'==_0x4d8fce?{'type':'format','content':o(_0x29dc86,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d8fce?{'type':'format','content':o(_0x29dc86,'*Split:*\x20list\x20item')}:_0x3bef1c;}),_0x33b29['model']['document']['registerPostFixer'](_0x4f1dd3=>this['listItemIdFixer'](_0x4f1dd3)),_0x33b29['model']['document']['registerPostFixer'](_0x54db32=>this['noTrackChangesFixer'](_0x54db32)),_0x33b29['model']['document']['on']('change:data',(_0x24e404,_0x4648b2)=>{if(_0x4648b2['isUndo']||!_0x4648b2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4b5e4c){if(_0x4b5e4c['batch']['isUndo']||!_0x4b5e4c['batch']['isLocal'])return!0x1;let _0x5bb8cb=!0x1;const _0x2db4cb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f0c35=>_0x1f0c35['data']&&'listItemId'==_0x1f0c35['data']['key'])['filter'](_0x11e230=>_0x11e230['data']['newValue']&&_0x11e230['data']['oldValue']);for(const _0x5baed2 of _0x2db4cb)Te(_0x5baed2)||(_0x4b5e4c['removeMarker'](_0x5baed2['getFirstMarker']()),_0x5bb8cb=!0x0);return _0x5bb8cb;}['noTrackChangesFixer'](_0x279a5b){if(_0x279a5b['batch']['isUndo']||!_0x279a5b['batch']['isLocal'])return!0x1;const _0x1c1b87=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1c1b87['trackChangesCommand']['value'])return!0x1;let _0x2a8887=!0x1;const _0x57a13a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d4f98=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x222fec=>'attribute'==_0x222fec['type'])['filter'](_0x368318=>_0x57a13a['includes'](_0x368318['attributeKey']));if(0x0==_0x2d4f98['length'])return _0x2a8887;for(const _0x2de2c0 of _0x2d4f98){const _0xa27e4=_0x1c1b87['_findSuggestions'](_0x2de2c0['range'],'attribute')['filter'](_0x403a79=>!_0x403a79['meta']['isNextTo'])['map'](_0x4dfa7c=>_0x4dfa7c['suggestion'])['filter'](_0x4a16e9=>{const _0x7b702b=_0x1c1b87['_getAttributeKey'](_0x4a16e9);return _0x57a13a['includes'](_0x7b702b);});if(_0xa27e4['length']){for(const _0x915cb0 of _0xa27e4)_0x279a5b['removeMarker'](_0x915cb0['getFirstMarker']());_0x2a8887=!0x0;}}return _0x2a8887;}['assureChains'](){const _0x3f3267=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a7d27=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1902d3;const _0x306d30=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48d949=>{if(_0x48d949['data']['oldRange']||!_0x48d949['data']['newRange'])return null;if(!_0x48d949['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x47e9e9}=_0x3f3267['_splitMarkerName'](_0x48d949['name']);if(!_0x3f3267['hasSuggestion'](_0x47e9e9))return null;const _0x43c8d7=_0x3f3267['getSuggestion'](_0x47e9e9);return _0x3a7d27['includes'](_0x43c8d7['data']['key']);})['map'](_0x3951e7=>{const {id:_0x4b66f4}=_0x3f3267['_splitMarkerName'](_0x3951e7['name']),_0x339456=_0x3f3267['getSuggestion'](_0x4b66f4);return _0x1902d3=_0x339456['attributes']['groupId'],_0x339456['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x306d30['size'])return;const _0x5eb41d=_0x3f3267['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4902be=>'attribute'==_0x4902be['type']&&_0x4902be['data']&&_0x3a7d27['includes'](_0x4902be['data']['key'])&&_0x4902be['attributes']['groupId']!=_0x1902d3)['map'](_0x1e1ada=>({'listItem':_0x1e1ada['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e1ada['attributes']['groupId']})),_0x74e63e=new Set();for(const {groupId:_0x167794,listItem:_0x43dca3}of _0x5eb41d)_0x306d30['has'](_0x43dca3)&&_0x74e63e['add'](_0x167794);for(const _0x1cfa24 of _0x3f3267['getSuggestions']())_0x74e63e['has'](_0x1cfa24['attributes']['groupId'])&&_0x1cfa24['setAttribute']('groupId',_0x1902d3);}['_supportLegacySuggestions'](){const _0x2f5735=this['editor'],_0x540c56=_0x2f5735['locale'],_0x1e2dd1=_0x2f5735['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e2dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x35938a,_0x9d0263){const _0x1905f9=[];for(let _0x216e7a of _0x35938a)_0x216e7a['start']['nodeAfter']===_0x216e7a['end']['parent']&&(_0x216e7a=_0x2f5735['model']['createRange'](_0x2f5735['model']['createPositionAt'](_0x216e7a['start']['nodeAfter'],0x0))),_0x1905f9['push'](_0x216e7a);_0x2f5735['model']['change'](_0x5ec2c4=>{const _0x302f27=_0x2f5735['model']['document']['selection'],_0x1d993c=Array['from'](_0x302f27['getRanges']())['map'](_0x43a697=>_0xc9628b['fromRange'](_0x43a697));_0x5ec2c4['setSelection'](_0x1905f9),_0x2f5735['commands']['get'](_0x9d0263['commandName'])['refresh'](),_0x9d0263['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2f5735['execute'](_0x9d0263['commandName'],..._0x9d0263['commandParams']),_0x5ec2c4['setSelection'](_0x1d993c);for(const _0x2dd44a of _0x1d993c)_0x2dd44a['detach']();});}),_0x1e2dd1['descriptionFactory']['registerElementLabel'](function(_0x442dfd){const _0xc53b4b=!_0x2f5735['model']['schema']['isObject'](_0x442dfd),_0x38bd60=_0x442dfd['previousSibling'],_0x1c142c=_0x442dfd['nextSibling'],_0x2b472a=_0x442dfd['getAttribute']('listItemId'),_0x3b27b7=!_0x38bd60||_0x38bd60['getAttribute']('listItemId')!==_0x2b472a,_0x51dfc1=!_0x1c142c||_0x1c142c['getAttribute']('listItemId')!==_0x2b472a;return _0xc53b4b&&Boolean(_0x2b472a)&&_0x3b27b7&&_0x51dfc1;},_0x3e1c81=>o(_0x540c56,'ELEMENT_LIST_ITEM',_0x3e1c81));}['_registerLegacyDescription'](){const _0x509fcc=this['editor'],_0x46a46d=_0x509fcc['locale'];function _0x4e753f(_0x4e1f0c){const _0x24e034=_0x509fcc['commands']['get']('bulletedList')['value'],_0x485050=_0x509fcc['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e1f0c?_0x24e034:_0x485050;}_0x509fcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x165fdb){if('formatBlock'!=_0x165fdb['type'])return;const {data:_0x1ed6c1}=_0x165fdb;if(!_0x1ed6c1)return;let _0x5dd099,_0x5b6d4d,_0xac1684,_0x215a99;switch(_0x1ed6c1['commandName']){case'bulletedList':_0xac1684=_0x1ed6c1['commandParams'][0x0]['forceValue'],_0x215a99=_0x4e753f(_0x1ed6c1['commandName']),_0x5dd099=_0xac1684?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x215a99&&_0x509fcc['config']['get']('list.multiBlock')||(_0x5dd099='*Change\x20to:*\x20%0'),_0x5b6d4d={'type':'format','content':o(_0x46a46d,_0x5dd099,o(_0x46a46d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xac1684=_0x1ed6c1['commandParams'][0x0]['forceValue'],_0x215a99=_0x4e753f(_0x1ed6c1['commandName']),_0x5dd099=_0xac1684?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x215a99&&_0x509fcc['config']['get']('list.multiBlock')||(_0x5dd099='*Change\x20to:*\x20%0'),_0x5b6d4d={'type':'format','content':o(_0x46a46d,_0x5dd099,o(_0x46a46d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5dd099='*Indent:*\x20%0',_0x5b6d4d={'type':'format','content':o(_0x46a46d,_0x5dd099,o(_0x46a46d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5dd099=function(_0x4de073){const _0x32fbf4=_0x4de073['getFirstRange']();let _0x31c6df=_0x32fbf4['start']['nodeAfter'];for(;_0x31c6df&&_0x32fbf4['containsItem'](_0x31c6df);){if(_0x31c6df['getAttribute']('listIndent')>0x0)return!0x1;_0x31c6df=_0x31c6df['nextSibling'];}return!0x0;}(_0x165fdb)?o(_0x46a46d,'*Format:*\x20remove\x20from\x20%0',o(_0x46a46d,function(_0xbfc756){return'ELEMENT_'+_0xbfc756['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x165fdb))):o(_0x46a46d,'*Outdent:*\x20%0',o(_0x46a46d,'ELEMENT_LIST_ITEM')),_0x5b6d4d={'type':'format','content':_0x5dd099};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ed6c1['multipleBlocks']&&(_0x5dd099='*Merge:*\x20%0',_0x5b6d4d={'type':'deletion','content':o(_0x46a46d,_0x5dd099,o(_0x46a46d,'ELEMENT_LIST_ITEM'))});}return _0x5b6d4d;});}}function Te(_0x32db6e){let _0x417f78=_0x32db6e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x417f78;){const _0x3c6115=_0x417f78['getAttribute']('listItemId');if(!_0x3c6115)return!0x1;if(_0x3c6115==_0x32db6e['data']['newValue'])return'newValue';if(_0x3c6115==_0x32db6e['data']['oldValue'])return'oldValue';_0x417f78=_0x417f78['previousSibling'];}return!0x1;}class H extends _0x24003c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2f3bf7=this['editor']['config']['get']('list.properties'),_0x240f29=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f3bf7['styles']&&_0x240f29['enableDefaultAttributesIntegration']('listStyle'),_0x2f3bf7['reversed']&&_0x240f29['enableDefaultAttributesIntegration']('listReversed'),_0x2f3bf7['startIndex']&&_0x240f29['enableDefaultAttributesIntegration']('listStart');const _0x1a55ba={'type':'format','content':''};_0x240f29['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ddddc=this['editor']['locale'];_0x240f29['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ddddc,'FORMAT_LIST_REVERSED')),_0x240f29['descriptionFactory']['registerDescriptionCallback'](_0x4606bc=>{const {data:_0x1643a2}=_0x4606bc;if(_0x1643a2&&'listReversed'==_0x1643a2['key'])return null==_0x1643a2['newValue']||0x0==_0x1643a2['newValue']&&null==_0x1643a2['oldValue']?_0x1a55ba:void 0x0;}),_0x240f29['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ddddc,'FORMAT_LIST_START')),_0x240f29['descriptionFactory']['registerDescriptionCallback'](_0x1a8420=>{const {data:_0x7dd227}=_0x1a8420;if(_0x7dd227&&'listStart'==_0x7dd227['key'])return null==_0x7dd227['newValue']||0x1==_0x7dd227['newValue']&&null==_0x7dd227['oldValue']?_0x1a55ba:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d3d20=>{if(_0x5d3d20['batch']['isUndo'])return!0x1;let _0x3a2072=!0x1;const _0xd066df=_0x240f29['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31b5b5=>{const _0x5ad13b=_0x240f29['_getAttributeKey'](_0x31b5b5);return'listStart'==_0x5ad13b||'listReversed'==_0x5ad13b;});for(const _0x47b39e of _0xd066df){const _0x9a17c6=_0x47b39e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x9a17c6||'customNumbered'==_0x9a17c6)continue;_0x240f29['_findSuggestions'](_0x47b39e['getFirstRange'](),'attribute')['find'](_0x47e396=>'listType'==_0x240f29['_getAttributeKey'](_0x47e396['suggestion']))||(_0x5d3d20['removeMarker'](_0x47b39e['getFirstMarker']()),_0x3a2072=!0x0);}return _0x3a2072;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3105d2){const _0x48cc81=this['editor']['locale'],{data:_0x27a82d}=_0x3105d2,_0x9bcb45={'type':'format','content':''};if(!_0x27a82d||'listStyle'!=_0x27a82d['key'])return;if(!_0x27a82d['oldValue'])return'default'==_0x27a82d['newValue']?_0x9bcb45:{'type':'format','content':''+o(_0x48cc81,'*Set\x20format:*\x20%0',o(_0x48cc81,this['_getTranslationKeyForListStyle'](_0x27a82d['newValue'])))};if(!_0x27a82d['newValue']){if('default'==_0x27a82d['oldValue'])return _0x9bcb45;let _0x5af6e8=_0x3105d2['head'];for(;_0x5af6e8;){if(_0x5af6e8['data']&&'listType'==_0x5af6e8['data']['key']&&_0x5af6e8['data']['newValue'])return _0x9bcb45;_0x5af6e8=_0x5af6e8['next'];}return{'type':'format','content':''+o(_0x48cc81,'*Remove\x20format:*\x20%0',o(_0x48cc81,this['_getTranslationKeyForListStyle'](_0x27a82d['oldValue'])))};}if('default'!=_0x27a82d['newValue'])return{'type':'format','content':''+o(_0x48cc81,'*Set\x20format:*\x20%0',o(_0x48cc81,this['_getTranslationKeyForListStyle'](_0x27a82d['newValue'])))};let _0x5cd8cd=_0x3105d2['head'];for(;_0x5cd8cd;){if(_0x5cd8cd['data']&&'listType'==_0x5cd8cd['data']['key']&&_0x5cd8cd['data']['newValue']&&_0x5cd8cd['data']['oldValue'])return _0x9bcb45;_0x5cd8cd=_0x5cd8cd['next'];}return{'type':'format','content':o(_0x48cc81,'*Set\x20format:*\x20%0',o(_0x48cc81,'ELEMENT_'+_0x3105d2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x65d568=this['editor'],_0x4e15e7=_0x65d568['locale'];_0x65d568['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19055=>{if('formatBlock'!=_0x19055['type'])return;const {data:_0x544930}=_0x19055;if(!_0x544930)return;let _0x515f47,_0x2b35fc;switch(_0x544930['commandName']){case'listStyle':_0x515f47='*Change\x20to:*\x20%0',_0x2b35fc={'type':'format','content':o(_0x4e15e7,_0x515f47,o(_0x4e15e7,this['_getTranslationKeyForListStyle'](_0x544930['commandParams'][0x0]['type'])))};break;case'listReversed':_0x515f47=_0x544930['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b35fc={'type':'format','content':o(_0x4e15e7,_0x515f47)};break;case'listStart':_0x515f47='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b35fc={'type':'format','content':o(_0x4e15e7,_0x515f47,_0x544930['commandParams'][0x0]['startIndex'])};}return _0x2b35fc;});}['_getTranslationKeyForListStyle'](_0x3a71fc){return'ELEMENT_'+function(_0x4d9e3c){if(ye['includes'](_0x4d9e3c))return'bulleted';if(Se['includes'](_0x4d9e3c))return'numbered';return null;}(_0x3a71fc)['toUpperCase']()+'_LIST_'+_0x3a71fc['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x24003c{['afterInit'](){const _0x1115c7=this['editor'];_0x1115c7['commands']['get']('emoji')&&_0x1115c7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x24003c{static get['requires'](){return[_0x5a1bd7];}['init'](){const _0x38fb00=this['editor'],_0x9b80e1=_0x38fb00['plugins']['get']('TrackChangesEditing'),_0x1f2d1=_0x38fb00['commands']['get']('enter');_0x9b80e1['enableCommand']('enter',()=>{_0x38fb00['model']['change'](_0x2b6287=>{const _0x3eebce=_0x38fb00['model']['document']['selection'],_0x1c696e=_0x3eebce['getFirstPosition'](),_0x4deab8=_0xc9628b['fromRange'](_0x3eebce['getFirstRange']());if(_0x1f2d1['enterBlock'](_0x2b6287)){const _0x5985be=_0x38fb00['model']['createPositionAt'](_0x1c696e['parent']['nextSibling'],0x0),_0x3ccef0=_0x2b6287['createRange'](_0x1c696e,_0x5985be);_0x9b80e1['markInsertion'](_0x3ccef0);}else _0x2b6287['setSelection'](_0x2b6287['createRange'](_0x4deab8['end']));_0x4deab8['detach'](),_0x1f2d1['fire']('afterExecute',{'writer':_0x2b6287});});});}}class Y extends _0x24003c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x64f994=this['editor']['plugins']['get']('TrackChangesEditing');_0x64f994['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x64f994['enableCommand']('findNext'),_0x64f994['enableCommand']('findPrevious'),_0x64f994['enableCommand']('replace'),_0x64f994['enableCommand']('replaceAll');}['handleFindCommand'](_0x3db5de,_0x482898,_0xb68962={}){const _0x4741a9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3db5de(_0x5d9ecb=>{let _0x22c659=('string'==typeof _0x482898?_0x4741a9['findByTextCallback'](_0x482898,_0xb68962):_0x482898)(_0x5d9ecb);Array['isArray'](_0x22c659)&&(_0x22c659={'results':_0x22c659,'searchText':'string'==typeof _0x482898?_0x482898:''});const _0x133d18=_0x22c659['results']['filter'](_0x58a081=>!0x1===this['_isInDeletionRange'](_0x58a081,_0x5d9ecb['item']));return{..._0x22c659,'results':_0x133d18};},_0xb68962);}['_isInDeletionRange'](_0x17d0ec,_0x14a0df){const _0x385c39=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14a0df,_0x17d0ec['start']),this['editor']['model']['createPositionAt'](_0x14a0df,_0x17d0ec['end']));for(const _0x4d391e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x385c39['getIntersection'](_0x4d391e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x24003c{['afterInit'](){const _0x2652ce=this['editor']['locale'],_0x55d42b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2f208b,commandName:_0x26e6a0}of eo)this['editor']['plugins']['has'](_0x2f208b)&&_0x55d42b['enableDefaultAttributesIntegration'](_0x26e6a0);_0x55d42b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2652ce,'FORMAT_FONT_SIZE')),_0x55d42b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2652ce,'FORMAT_FONT_FAMILY')),_0x55d42b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2652ce,'FORMAT_FONT_COLOR')),_0x55d42b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2652ce,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x363d8b=this['editor'],_0x450c48=_0x363d8b['locale'];_0x363d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa00b17=>{const _0x2ca420=_0x450c48['t'];if('formatInline'!=_0xa00b17['type'])return;const {data:_0x284524}=_0xa00b17;if(null!=_0x284524){if('fontSize'==_0x284524['commandName']){const _0xf959d1=_0x284524['commandParams'][0x0]['value'];if(_0xf959d1){const _0x3a9575=_0x2ca420(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x19c405=>_0x19c405['model']==_0xf959d1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x450c48,'*Set\x20font\x20size:*\x20%0',_0x3a9575)};}return{'type':'format','content':o(_0x450c48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x284524['commandName']){const _0x4088b8=_0x284524['commandParams'][0x0]['value'];return _0x4088b8?{'type':'format','content':o(_0x450c48,'*Set\x20font\x20family:*\x20%0',_0x4088b8)}:{'type':'format','content':o(_0x450c48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x284524['commandName']){const _0x3ec487=_0x284524['commandParams'][0x0]['value'];if(_0x3ec487){const _0x50d9d2=_0x1bb7b0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4707c1=>_0x4707c1['model']==_0x3ec487);let _0x447539=_0x3ec487,_0x38371f='';return _0x50d9d2&&(_0x447539=_0x50d9d2['label'],_0x38371f=_0x2ca420(_0x447539)['toLowerCase']()),{'type':'format','content':o(_0x450c48,'*Set\x20font\x20color:*\x20%0',_0x38371f)['trim'](),'color':{'value':_0x3ec487,'title':_0x38371f||_0x447539}};}return{'type':'format','content':o(_0x450c48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x284524['commandName']){const _0x1b8a9f=_0x284524['commandParams'][0x0]['value'];if(_0x1b8a9f){const _0x36f9f1=_0x1bb7b0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3ebbc5=>_0x3ebbc5['model']==_0x1b8a9f);let _0x46ffc4=_0x1b8a9f,_0x5a7b16='';return _0x36f9f1&&(_0x46ffc4=_0x36f9f1['label'],_0x5a7b16=_0x2ca420(_0x46ffc4)['toLowerCase']()),{'type':'format','content':o(_0x450c48,'*Set\x20font\x20background\x20color:*\x20%0',_0x5a7b16)['trim'](),'color':{'value':_0x1b8a9f,'title':_0x5a7b16||_0x46ffc4}};}return{'type':'format','content':o(_0x450c48,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x24003c{['afterInit'](){const {plugins:_0x31efee}=this['editor'];_0x31efee['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x31efee['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x19c4a4,plugins:_0x27aee6,commands:_0x36f207}=this['editor'],_0x42f4d9=_0x27aee6['get']('TrackChangesEditing');_0x36f207['get']('footnotesStyle')&&_0x42f4d9['enableDefaultAttributesIntegration']('footnotesStyle'),_0x36f207['get']('footnotesStart')&&_0x42f4d9['enableDefaultAttributesIntegration']('footnotesStart'),_0x42f4d9['registerBlockAttribute']('footnotesListStyle'),_0x42f4d9['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x19c4a4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x42f4d9['registerBlockAttribute']('footnotesListStart'),_0x42f4d9['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x19c4a4,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2ebd0f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xbc5c7d,commands:_0x4ca01}=this['editor'];_0x4ca01['get']('insertFootnote')&&_0x2ebd0f['enableCommand']('insertFootnote'),_0x2ebd0f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x34b4cb=>o(_0xbc5c7d,'ELEMENT_FOOTNOTE_REF',_0x34b4cb)),_0x2ebd0f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x73fd24=>o(_0xbc5c7d,'ELEMENT_FOOTNOTE_DEFINITION',_0x73fd24)),_0x2ebd0f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x23fa08=>o(_0xbc5c7d,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x23fa08));}}class nt extends _0x24003c{['afterInit'](){const _0x1b21cf=this['editor'],_0x5a3e04=_0x1b21cf['plugins']['get']('TrackChangesEditing'),_0x58bf84=_0x1b21cf['commands']['get']('copyFormat'),_0x2d59b9=_0x1b21cf['commands']['get']('pasteFormat');_0x58bf84&&_0x2d59b9&&(_0x5a3e04['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a3e04['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b5bfa=this['editor'],_0x361720=_0x3b5bfa['locale'];_0x3b5bfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e1b99=>{if('formatBlock'!=_0x4e1b99['type']&&'formatInline'!=_0x4e1b99['type'])return;const {data:_0x31b91b}=_0x4e1b99;if(_0x31b91b&&'pasteFormat'===_0x31b91b['commandName']){const _0x1c230e=[],_0xe79ba6=_0x31b91b['commandParams'][0x0];for(const [_0x5ee82b,_0x2e16fa]of Object['entries'](_0xe79ba6))_0x1c230e['push'](ro(_0x3b5bfa,_0x5ee82b,_0x2e16fa));return _0x1c230e['length']?{'type':'format','content':o(_0x361720,'*Set\x20format\x20to:*\x20%0',_0x1c230e['join'](',\x20'))}:{'type':'format','content':o(_0x361720,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x403a8a,_0x4ba884,_0xc53aa1){const _0x19a96e=_0x403a8a['locale']['t'],_0x2c22fc=_0x4ba884['split'](/(?=[A-Z])/)['join']('\x20'),_0x4e4a62=_0x19a96e(_0x2c22fc['charAt'](0x0)['toUpperCase']()+_0x2c22fc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc53aa1)return _0x4e4a62;if('fontColor'===_0x4ba884||'fontBackgroundColor'===_0x4ba884){const _0x2eb613=_0x1bb7b0(_0x403a8a['config']['get']('fontColor.colors'))['find'](_0xc3dd28=>_0xc3dd28['model']==_0xc53aa1);return _0x4e4a62+'\x20('+(_0x2eb613?_0x19a96e(_0x2eb613['label'])['toLowerCase']():_0xc53aa1)+')';}if('fontSize'===_0x4ba884&&isNaN(parseFloat(_0xc53aa1))){const _0x91cc84=_0x403a8a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x403a8a['config']['get']('fontSize.options'))['find'](_0x154de6=>_0x154de6['model']==_0xc53aa1);return _0x4e4a62+'\x20('+(_0x91cc84?_0x19a96e(_0x91cc84['title'])['toLowerCase']():_0xc53aa1)+')';}return _0x4e4a62+'\x20('+_0xc53aa1+')';}class it extends _0x24003c{['_headingOptions'];['afterInit'](){const _0x2d6259=this['editor'];if(!_0x2d6259['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2d6259['config']['get']('heading.options');const _0x1f2256=_0x2d6259['locale'],_0x618427=_0x2d6259['plugins']['get']('TrackChangesEditing');_0x618427['enableDefaultAttributesIntegration']('heading');for(const _0x30429c of this['_headingOptions'])'paragraph'!=_0x30429c['model']&&_0x618427['descriptionFactory']['registerElementLabel'](_0x30429c['model'],_0x4cb942=>{const _0x18d770=this['_getHeadingLevel'](_0x30429c['model']);return null!==_0x18d770?_0x2e4d01(_0x4cb942,_0x18d770):_0x68a9cb(_0x4cb942,_0x30429c['title']);});function _0x2e4d01(_0x217e74,_0x9fe101){return o(_0x1f2256,'ELEMENT_HEADING',[_0x217e74,_0x9fe101]);}function _0x68a9cb(_0x144c62,_0x1fff18){return o(_0x1f2256,'ELEMENT_HEADING_CUSTOM',[_0x144c62,_0x1fff18]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f929=this['editor'],_0x1dcd22=_0x58f929['locale'];function _0x5e222a(_0x267eb0,_0x2b1ffa){return o(_0x1dcd22,'ELEMENT_HEADING_CUSTOM',[_0x267eb0,_0x2b1ffa]);}_0x58f929['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fd6fb=>{if('formatBlock'!=_0x3fd6fb['type'])return;const {data:_0x1a0c66}=_0x3fd6fb;if(_0x1a0c66&&'heading'==_0x1a0c66['commandName']){const _0x34ec21=_0x1a0c66['commandParams'][0x0]['value'],_0x34d4b0=this['_getHeadingLevel'](_0x34ec21);if(null!==_0x34d4b0)return{'type':'format','content':o(_0x1dcd22,'*Change\x20to:*\x20%0',(_0x4c5d68=0x1,_0x4918d9=_0x34d4b0,o(_0x1dcd22,'ELEMENT_HEADING',[_0x4c5d68,_0x4918d9])))};const _0x31899e=this['_headingOptions']['find'](_0x467e17=>_0x467e17['model']===_0x34ec21)['title'];return{'type':'format','content':o(_0x1dcd22,'*Change\x20to:*\x20%0',_0x5e222a(0x1,_0x31899e))};}var _0x4c5d68,_0x4918d9;});}['_getHeadingLevel'](_0x501d65){const _0x2ad275=_0x501d65['match'](/^heading(\d+)/);if(_0x2ad275)return _0x2ad275[0x1];const _0x29fdf3=this['_headingOptions']?.['find'](_0x284f74=>_0x284f74['model']==_0x501d65);if(_0x29fdf3&&_0x29fdf3['view']){const _0x53da95=_0x29fdf3['view'],_0x3f53d1=(_0x53da95['name']??_0x53da95)['match'](/^h(\d+)/);if(_0x3f53d1)return _0x3f53d1[0x1];}return null;}}class et extends _0x24003c{['afterInit'](){const _0xf878da=this['editor'];if(!_0xf878da['plugins']['has']('HighlightEditing'))return;const _0x42e9a1=_0xf878da['plugins']['get']('TrackChangesEditing'),_0x143e5a=_0xf878da['locale'];_0x42e9a1['enableDefaultAttributesIntegration']('highlight'),_0x42e9a1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x143e5a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x200211=this['editor'],_0x761774=_0x200211['locale'];_0x200211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480c68=>{if('formatInline'!=_0x480c68['type'])return;const {data:_0x1ddbd0}=_0x480c68;if(_0x1ddbd0&&'highlight'==_0x1ddbd0['commandName']){const _0x4aaeba=_0x761774['t'],_0x258e23=_0x1ddbd0['commandParams'][0x0]['value'];if(_0x258e23){const _0x3da7fc=_0x200211['config']['get']('highlight.options')['find'](_0x44ee86=>_0x44ee86['model']==_0x258e23),_0x2f2919=_0x4aaeba(_0x3da7fc['title'])['toLowerCase']();return{'type':'format','content':o(_0x761774,'*Set\x20highlight:*\x20%0',_0x2f2919),'color':{'value':_0x3da7fc['color'],'title':_0x3da7fc['title']}};}return{'type':'format','content':o(_0x761774,'*Remove\x20highlight*',o(_0x761774,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x24003c{['afterInit'](){const _0x34797d=this['editor'];if(!_0x34797d['plugins']['has']('HorizontalLineEditing'))return;_0x34797d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3b8f27=_0x34797d['plugins']['get']('TrackChangesEditing'),_0x21b05d=_0x34797d['locale'];_0x3b8f27['descriptionFactory']['registerElementLabel']('horizontalLine',_0x156f0c=>o(_0x21b05d,'ELEMENT_HORIZONTAL_LINE',_0x156f0c));}}class ot extends _0x24003c{['afterInit'](){const _0x141099=this['editor'];if(!_0x141099['plugins']['has']('HtmlEmbed'))return;const _0x1050a1=_0x141099['plugins']['get']('TrackChangesEditing'),_0x383db1=_0x141099['locale'];_0x1050a1['descriptionFactory']['registerElementLabel']('rawHtml',_0x11fa31=>o(_0x383db1,'ELEMENT_HTML_EMBED',_0x11fa31)),_0x1050a1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1050a1['descriptionFactory']['registerDescriptionCallback'](_0x432021=>{if('attribute'!=_0x432021['type'])return;const {data:_0x527d35}=_0x432021;if(_0x527d35&&'value'==_0x527d35['key']&&_0x432021['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xe897b=o(_0x383db1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x383db1,'*Change\x20%0\x20content*',_0xe897b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26a975=this['editor'],_0x4943f0=_0x26a975['locale'];_0x26a975['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c8de=>{if('formatBlock'!=_0x35c8de['type'])return;const {data:_0xf3347}=_0x35c8de;if(_0xf3347&&'htmlEmbed'==_0xf3347['commandName']){const _0x1e2eab=o(_0x4943f0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4943f0,'*Change\x20%0\x20content*',_0x1e2eab)};}});}}class rt extends _0x24003c{['afterInit'](){const _0x3dd067=this['editor'];if(!_0x3dd067['plugins']['has']('ImageEditing'))return;const _0x83fb14=_0x3dd067['plugins']['get']('TrackChangesEditing'),_0xb51ae4=_0x3dd067['plugins']['get']('ImageUtils'),_0x319365=_0x3dd067['locale'];_0x83fb14['enableCommand']('insertImage'),_0x83fb14['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b0359=>o(_0x319365,'ELEMENT_IMAGE',_0x4b0359)),_0x83fb14['descriptionFactory']['registerElementLabel']('imageInline',_0x56ba52=>o(_0x319365,'ELEMENT_INLINE_IMAGE',_0x56ba52)),_0x83fb14['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x319365,'ELEMENT_CAPTION')),_0x3dd067['plugins']['has']('ImageUploadEditing')&&_0x83fb14['enableCommand']('uploadImage'),_0x3dd067['plugins']['has']('ImageBlockEditing')&&_0x3dd067['plugins']['has']('ImageInlineEditing')&&(_0x83fb14['enableCommand']('imageTypeInline',(_0xd66b9d,_0x23efb9)=>{const _0x3520a6=_0xb51ae4['getClosestSelectedImageElement'](_0x3dd067['model']['document']['selection']);_0x3dd067['model']['change'](()=>{_0x83fb14['markBlockFormat'](_0x3520a6,{'commandName':'imageTypeInline','commandParams':[_0x23efb9]},[],'convertBlockImageToInline');});}),_0x83fb14['enableCommand']('imageTypeBlock',(_0x297a37,_0xa45ec1)=>{_0x3dd067['model']['change'](_0x123ece=>{let _0x49bfc1=_0xb51ae4['getClosestSelectedImageElement'](_0x3dd067['model']['document']['selection']),_0x2709c1=_0x123ece['createRangeOn'](_0x49bfc1);const _0x31605e=_0x13fe0a['fromPosition'](_0x2709c1['start'],'toPrevious'),_0x2f3a81=_0x13fe0a['fromPosition'](_0x2709c1['end'],'toNext');_0x83fb14['forceDefaultExecution'](()=>_0x297a37(_0xa45ec1)),_0x49bfc1=_0xb51ae4['getClosestSelectedImageElement'](_0x3dd067['model']['document']['selection']),_0x2709c1=_0x123ece['createRangeOn'](_0x49bfc1);const _0x27a43f=_0x123ece['createRange'](_0x31605e,_0x2f3a81);_0x31605e['detach'](),_0x2f3a81['detach'](),_0x83fb14['markBlockFormat'](_0x49bfc1,{'commandName':'imageTypeInline','commandParams':[_0xa45ec1]},[],'convertInlineImageToBlock'),_0x27a43f['start']['isBefore'](_0x2709c1['start'])&&_0x83fb14['markInsertion'](_0x123ece['createRange'](_0x27a43f['start'],_0x2709c1['start']),'convertInlineImageToBlock'),_0x2709c1['end']['isBefore'](_0x27a43f['end'])&&_0x83fb14['markInsertion'](_0x123ece['createRange'](_0x2709c1['end'],_0x27a43f['end']),'convertInlineImageToBlock');});}),_0x83fb14['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x83fb14['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x83fb14['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x83fb14['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x83fb14['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x83fb14['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1ed4d1])=>{const _0x3f6315=_0x83fb14['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d57fa=_0x1ed4d1['start'],_0x4f1da8=_0x1ed4d1['end'];const _0x595428=_0x3dd067['model']['schema']['getNearestSelectionRange'](_0x3d57fa,'backward'),_0x4e046f=_0x3dd067['model']['schema']['getNearestSelectionRange'](_0x4f1da8,'forward');_0x595428['isCollapsed']&&(_0x3d57fa=_0x595428['start']),_0x4e046f['isCollapsed']&&(_0x4f1da8=_0x4e046f['end']),_0x3f6315([_0x3dd067['model']['createRange'](_0x3d57fa,_0x4f1da8)]);}),_0x83fb14['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x19da6e),_0x83fb14['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x19da6e)),_0x3dd067['plugins']['has']('ImageCaptionEditing')&&(_0x83fb14['enableCommand']('toggleImageCaption',(_0x379739,_0xa2316f)=>{const _0x17a2f0=_0x3dd067['plugins']['get']('ImageCaptionUtils');let _0x3600c1=_0xb51ae4['getClosestSelectedImageElement'](_0x3dd067['model']['document']['selection']),_0x1542b5=_0x17a2f0['getCaptionFromImageModelElement'](_0x3600c1);_0x3dd067['model']['change'](()=>{if(_0x1542b5)return void _0x83fb14['markDeletion'](_0x3dd067['model']['createRangeOn'](_0x1542b5));const _0x2eedd8=_0xb51ae4['isBlockImage'](_0x3600c1);_0x379739(_0xa2316f),_0x3600c1=_0xb51ae4['getClosestSelectedImageElement'](_0x3dd067['model']['document']['selection']),_0x1542b5=_0x17a2f0['getCaptionFromImageModelElement'](_0x3600c1),_0x83fb14['markInsertion'](_0x3dd067['model']['createRangeOn'](_0x1542b5),_0x2eedd8?null:'imageCaption');});}),_0x83fb14['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x19da6e));const _0x59b621=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e4960(_0x170985,_0x50a1ca){const _0x25dcb9=_0x59b621['findIndex'](({type:_0x2aab81,subType:_0x5199d1})=>_0x170985['type']==_0x2aab81&&_0x170985['subType']==_0x5199d1),_0x15bb2e=_0x59b621['findIndex'](({type:_0x54e25d,subType:_0x1962fe})=>_0x50a1ca['type']==_0x54e25d&&_0x50a1ca['subType']==_0x1962fe);if(_0x25dcb9<0x0||_0x15bb2e<0x0)return!0x1;const _0x1bab76=_0x170985['getFirstRange'](),_0x57237d=_0x50a1ca['getFirstRange']();if((0x0==_0x25dcb9||0x1==_0x25dcb9)&&0x2==_0x15bb2e&&_0x1bab76['isIntersecting'](_0x57237d))return!0x0;if(0x2==_0x25dcb9&&0x3==_0x15bb2e){const _0x535002=_0x83fb14['_findSuggestions'](_0x1bab76,'insertion')['filter'](({suggestion:_0x44d68a,meta:_0x32b8ee})=>_0x32b8ee['isOwn']&&'convertInlineImageToBlock'==_0x44d68a['subType']);if(_0x535002['length']>0x1&&_0x57237d['end']['isEqual'](_0x1bab76['start']))return!0x0;if(0x1==_0x535002['length']&&(_0x1bab76['start']['isEqual'](_0x57237d['end'])||_0x1bab76['end']['isEqual'](_0x57237d['start'])))return!0x0;}if(0x3==_0x25dcb9&&0x3==_0x15bb2e&&_0x1bab76['start']['isBefore'](_0x57237d['start'])){const _0x10eed9=_0x1bab76['end']['nodeAfter'],_0x12a9fe=_0x57237d['start']['nodeBefore'];return _0xb51ae4['isBlockImage'](_0x10eed9)&&_0x10eed9===_0x12a9fe;}return!0x1;}function _0x19da6e(_0x1b3035,_0x5749f9){return _0x1e4960(_0x1b3035,_0x5749f9)?[_0x1b3035,_0x5749f9]:_0x1e4960(_0x5749f9,_0x1b3035)?[_0x5749f9,_0x1b3035]:null;}_0x3dd067['plugins']['has']('ImageResize')&&(_0x83fb14['enableDefaultAttributesIntegration']('resizeImage'),_0x83fb14['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x319365,'FORMAT_IMAGE_SIZE'))),_0x3dd067['plugins']['has']('ImageTextAlternativeEditing')&&_0x83fb14['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3dd067['plugins']['has']('PictureEditing')&&_0x83fb14['descriptionFactory']['registerDescriptionCallback'](_0xe41ea=>{if('attribute'!=_0xe41ea['type'])return;const {data:_0x455b73}=_0xe41ea;return _0x455b73&&'sources'==_0x455b73['key']?{'type':'format','content':''}:void 0x0;}),_0x3dd067['plugins']['has']('ImageSizeAttributes')&&_0x83fb14['descriptionFactory']['registerDescriptionCallback'](_0x3dc6b9=>{if('attribute'!=_0x3dc6b9['type'])return;const {data:_0xdc46b8}=_0x3dc6b9;return!_0xdc46b8||'width'!=_0xdc46b8['key']&&'height'!=_0xdc46b8['key']?void 0x0:{'type':'format','content':''};}),_0x83fb14['descriptionFactory']['registerDescriptionCallback'](_0x77ca82=>{if(!!_0x59b621['find'](({type:_0x3109b6,subType:_0x23349b})=>_0x77ca82['type']==_0x3109b6&&_0x77ca82['subType']==_0x23349b))return _0x77ca82['previous']?{}:void 0x0;}),_0x83fb14['descriptionFactory']['registerDescriptionCallback'](_0x5c0599=>{if('insertion'==_0x5c0599['type']||'deletion'==_0x5c0599['type']){const _0x242f50=_0x5c0599['getContainedElement']();if(_0x242f50&&_0x242f50['is']('element','caption'))return{'type':'insertion'==_0x5c0599['type']?'addObject':'removeObject','element':_0x242f50,'quantity':0x1};}}),_0x83fb14['descriptionFactory']['registerDescriptionCallback'](_0x45ec1f=>'formatBlock'==_0x45ec1f['type']&&'convertInlineImageToBlock'==_0x45ec1f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x45ec1f['type']&&'convertBlockImageToInline'==_0x45ec1f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x83fb14['descriptionFactory']['registerDescriptionCallback'](_0x462ee3=>{if('attribute'!=_0x462ee3['type'])return;const {data:_0x2e6c0d}=_0x462ee3;if(!_0x2e6c0d||'alt'!=_0x2e6c0d['key'])return;const _0x52c2d4=_0x2e6c0d['newValue'];return _0x52c2d4?{'type':'format','content':o(_0x319365,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x52c2d4+'\x22')}:{'type':'format','content':o(_0x319365,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397d96=this['editor'],_0x2d18d8=_0x397d96['locale'];_0x397d96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c2aca=>{if('formatBlock'!=_0x2c2aca['type']&&'formatInline'!=_0x2c2aca['type'])return;const {data:_0x195dcd}=_0x2c2aca;if(_0x195dcd){if('imageTextAlternative'==_0x195dcd['commandName']){const _0x1fd228=_0x195dcd['commandParams'][0x0]['newValue'];return _0x1fd228?{'type':'format','content':o(_0x2d18d8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1fd228+'\x22')}:{'type':'format','content':o(_0x2d18d8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x195dcd['commandName']){const _0x33e6ff=_0x195dcd['commandParams'][0x0]['width'];return _0x33e6ff?{'type':'format','content':o(_0x2d18d8,'*Set\x20image\x20width:*\x20%0',_0x33e6ff)}:{'type':'format','content':o(_0x2d18d8,'*Reset\x20image\x20width*')};}}});}}class at extends _0x24003c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x41931e=this['editor']['locale'],_0x244f2c=this['editor']['plugins']['get']('TrackChangesEditing');_0x244f2c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x244f2c['descriptionFactory']['registerDescriptionCallback'](_0x314378=>{if('attribute'!=_0x314378['type'])return;const {data:_0x31a798}=_0x314378;return _0x31a798&&'src'==_0x31a798['key']?_0x31a798['newValue']&&_0x31a798['oldValue']?{'type':'format','content':o(_0x41931e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x94be1a=this['editor']['plugins']['get']('TrackChangesEditing');_0x94be1a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x94be1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x94be1a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x94be1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc9bb5f=this['editor'],_0x1ff796=_0xc9bb5f['locale'];_0xc9bb5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb81f55=>{if('formatBlock'!=_0xb81f55['type']&&'formatInline'!=_0xb81f55['type'])return;const {data:_0x4ed1e4}=_0xb81f55;if(!_0x4ed1e4||'replaceImageSource'!=_0x4ed1e4['commandName'])return;return{'type':'format','content':o(_0x1ff796,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x24003c{['afterInit'](){const _0x180f2a=this['editor'];if(!_0x180f2a['plugins']['has']('ImageStyleEditing'))return;const _0xa1ba4b=_0x180f2a['plugins']['get']('TrackChangesEditing'),_0x3f2251=_0x180f2a['plugins']['get']('ImageUtils'),_0x7d9de={};_0xa1ba4b['enableCommand']('imageStyle',(_0x43ef0c,_0x3fdd8b)=>{const _0x48fa77=_0x180f2a['plugins']['get']('Users')['me'],_0x987002=_0x180f2a['commands']['get']('imageStyle');let _0x176236=_0x3f2251['getClosestSelectedImageElement'](_0x180f2a['model']['document']['selection']),_0x31e5ed=_0x180f2a['model']['createRangeOn'](_0x176236),_0x17aea1=_0x987002['value'];if(_0x17aea1==_0x3fdd8b['value'])return;const _0x2ddc09={'commandName':'imageStyle','commandParams':[_0x3fdd8b],'formatGroupId':_0x579527()};_0x180f2a['model']['change'](()=>{if(_0xa1ba4b['getSuggestions']()['filter'](_0x56c03b=>_0x56c03b['isInContent']&&_0x48fa77==_0x56c03b['author']&&('formatBlock'==_0x56c03b['type']||'formatInline'==_0x56c03b['type'])&&('imageStylePreApply'==_0x56c03b['subType']||'imageStylePostApply'==_0x56c03b['subType'])&&_0x56c03b['getFirstRange']()['isEqual'](_0x31e5ed))['forEach'](_0xd7e735=>_0xa1ba4b['discardSuggestion'](_0xd7e735['head'])),_0x176236=_0x3f2251['getClosestSelectedImageElement'](_0x180f2a['model']['document']['selection']),_0x31e5ed=_0x180f2a['model']['createRangeOn'](_0x176236),_0x987002['refresh'](),_0x180f2a['commands']['get']('imageTypeInline')['refresh'](),_0x180f2a['commands']['get']('imageTypeBlock')['refresh'](),_0x17aea1=_0x987002['value'],_0x17aea1!=_0x3fdd8b['value'])return _0x3f2251['isInlineImage'](_0x176236)&&_0x987002['shouldConvertImageType'](_0x3fdd8b['value'],_0x176236)?(_0x43ef0c({..._0x3fdd8b,'setImageSizes':!0x1}),_0x176236=_0x3f2251['getClosestSelectedImageElement'](_0x180f2a['model']['document']['selection']),void _0xa1ba4b['markBlockFormat'](_0x176236,{..._0x2ddc09,'commandReversedParams':[{'value':_0x17aea1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3f2251['isBlockImage'](_0x176236)?_0xa1ba4b['markBlockFormat'](_0x176236,_0x2ddc09,[],'imageStylePostApply'):_0xa1ba4b['markInlineFormat'](_0x31e5ed,_0x2ddc09,'imageStylePostApply'));});});for(const _0x4cc83d of _0x180f2a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x7d9de[_0x4cc83d['name']]=_0x4cc83d['title']['toLowerCase']();_0xa1ba4b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xa1ba4b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xa1ba4b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xa1ba4b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3640e2])=>{_0x3f2251['setImageNaturalSizeAttributes'](_0x3640e2['getContainedElement']());}),_0xa1ba4b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53accb,_0x173ea5)=>{_0xa1ba4b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53accb,{'commandName':_0x173ea5['commandName'],'commandParams':_0x173ea5['commandReversedParams']});}),_0xa1ba4b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x54455d,_0x278ea2){if(_0x1b5088(_0x54455d,_0x278ea2))return[_0x54455d,_0x278ea2];if(_0x1b5088(_0x278ea2,_0x54455d))return[_0x278ea2,_0x54455d];return null;});const _0x460dd9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b5088(_0x2f6908,_0x1fe4a4){const _0x428b79=_0x460dd9['findIndex'](({type:_0x2b2f15,subType:_0x5ed790})=>_0x2f6908['type']==_0x2b2f15&&_0x2f6908['subType']==_0x5ed790),_0x2e3f8b=_0x460dd9['findIndex'](({type:_0x37df01,subType:_0x49ed37})=>_0x1fe4a4['type']==_0x37df01&&_0x1fe4a4['subType']==_0x49ed37);if(_0x428b79<0x0||_0x2e3f8b<0x0)return!0x1;const _0x378e26=_0x2f6908['getFirstRange'](),_0x36e3ec=_0x1fe4a4['getFirstRange']();if((0x0==_0x428b79||0x1==_0x428b79)&&0x2==_0x2e3f8b&&_0x378e26['isIntersecting'](_0x36e3ec))return!0x0;if(0x2==_0x428b79&&0x3==_0x2e3f8b){const _0x129457=_0xa1ba4b['_findSuggestions'](_0x378e26,'insertion')['filter'](({suggestion:_0x5bffe1,meta:_0x112d08})=>_0x112d08['isOwn']&&'convertInlineImageToBlock'==_0x5bffe1['subType']);if(_0x129457['length']>0x1&&_0x36e3ec['end']['isEqual'](_0x378e26['start']))return!0x0;if(0x1==_0x129457['length']&&(_0x378e26['start']['isEqual'](_0x36e3ec['end'])||_0x378e26['end']['isEqual'](_0x36e3ec['start'])))return!0x0;}if(0x3==_0x428b79&&0x3==_0x2e3f8b&&_0x378e26['start']['isBefore'](_0x36e3ec['start'])){const _0x39f2cc=_0x378e26['end']['nodeAfter'],_0x1d15f9=_0x36e3ec['start']['nodeBefore'];return _0x3f2251['isBlockImage'](_0x39f2cc)&&_0x39f2cc===_0x1d15f9;}return!0x1;}_0x180f2a['model']['document']['registerPostFixer'](()=>{let _0x139a2b=!0x1;const _0x25cee3=Array['from'](_0x180f2a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x273fa1,data:_0x548cd3}of _0x25cee3){const {group:_0x5b03b7,type:_0x359e1f,subType:_0x1a7f80,id:_0x5df48b}=_0xa1ba4b['_splitMarkerName'](_0x273fa1);if('suggestion'==_0x5b03b7&&_0xa1ba4b['hasSuggestion'](_0x5df48b)){if('formatBlock'==_0x359e1f&&('imageStylePreApply'==_0x1a7f80||'imageStylePostApply'==_0x1a7f80)){const _0xd78417=_0xa1ba4b['getSuggestion'](_0x5df48b);if(_0x548cd3['newRange']){const _0x587361=_0xd78417['getFirstRange']()['getContainedElement']();if(_0x3f2251['isBlockImage'](_0x587361))continue;_0xa1ba4b['discardSuggestion'](_0xd78417),_0x139a2b=!0x0;}}if('insertion'==_0x359e1f&&'imageCaption'==_0x1a7f80&&!_0x548cd3['newRange']){const _0x38b38f=_0xa1ba4b['getSuggestion'](_0x5df48b);_0x38b38f['next']&&_0x38b38f['next']['isInContent']&&(_0xa1ba4b['discardSuggestion'](_0x38b38f['next']),_0x139a2b=!0x0);}}}return _0x139a2b;}),this['_registerLegacyDescription'](_0x7d9de);}['_registerLegacyDescription'](_0x37c04b){const _0x3950d1=this['editor'],_0x4b4e1b=_0x3950d1['locale'];_0x3950d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c879f=>{if('formatBlock'!=_0x2c879f['type']&&'formatInline'!=_0x2c879f['type'])return;const {data:_0x46d60f}=_0x2c879f;if(!_0x46d60f||'imageStyle'!=_0x46d60f['commandName'])return;const _0x16b7a1=_0x46d60f['commandParams'][0x0]['value'];return _0x2b01c0('side'===_0x16b7a1?o(_0x4b4e1b,'FORMAT_SIDE_IMAGE'):_0x37c04b[_0x16b7a1]||_0x16b7a1);function _0x2b01c0(_0x1ab9c2){return{'type':'format','content':o(_0x4b4e1b,'*Format:*\x20%0',_0x1ab9c2)};}});}}class ut extends _0x24003c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4849de){super(_0x4849de),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x302f48=this['editor'],_0x10ccaa=_0x302f48['commands']['get']('importWord'),_0x293460=_0x302f48['commands']['get']('trackChanges');_0x10ccaa&&(_0x10ccaa['on']('execute',(_0x2c1a0f,[,_0xdaace6])=>{this['_trackChangesValueDuringImport']=_0x293460['value'],_0xdaace6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x10ccaa,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x10ccaa,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x293460['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x302f48['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x260980,_0x30a8bd){const {suggestions:_0x5efa07}=_0x30a8bd,_0x232a53=this['editor']['commands']['get']('trackChanges'),_0x490c33=_0x232a53['value'];this['_trackChangesValueDuringImport']!==_0x490c33&&(_0x232a53['execute'](),this['_trackChangesExecuted']=!0x0),_0x5efa07&&_0x5efa07['forEach'](({id:_0xae8c29,type:_0xc64b1b,author:_0x1b95c7,created_at:_0x4b72fd})=>{const _0x555b62={'id':_0xae8c29,'type':_0xc64b1b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1b95c7,'createdAt':_0x4b72fd?new Date(_0x4b72fd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x555b62);});}}class ft extends _0x24003c{['afterInit'](){const _0x1b4a94=this['editor'],_0xed0a7b=_0x1b4a94['plugins']['get']('TrackChangesEditing');if(_0x1b4a94['plugins']['has']('IndentEditing')&&(_0xed0a7b['enableCommand']('indent'),_0xed0a7b['enableCommand']('outdent')),_0x1b4a94['plugins']['has']('IndentBlock')){for(const _0xd749cc of['indentBlock','outdentBlock'])_0xed0a7b['enableDefaultAttributesIntegration'](_0xd749cc);}const _0x244e92=_0x1b4a94['locale'];_0xed0a7b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x244e92,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530bfc=this['editor'],_0x10d3f2=_0x530bfc['locale'],_0x5b909d=_0x530bfc['plugins']['get']('TrackChangesEditing');_0x5b909d['descriptionFactory']['registerDescriptionCallback'](_0x4af5bf=>{if('formatBlock'!=_0x4af5bf['type'])return;const {data:_0x235c2b}=_0x4af5bf;if(!_0x235c2b)return;if('indentBlock'!=_0x235c2b['commandName']&&'outdentBlock'!=_0x235c2b['commandName'])return;const _0x274f6a=_0x4af5bf['getItems']()[0x0],_0x471811=_0x5b909d['descriptionFactory']['getItemLabel'](_0x274f6a);return'indentBlock'==_0x235c2b['commandName']?{'type':'format','content':o(_0x10d3f2,'*Indent:*\x20%0',_0x471811)}:'outdentBlock'==_0x235c2b['commandName']?{'type':'format','content':o(_0x10d3f2,'*Outdent:*\x20%0',_0x471811)}:void 0x0;});}}class ht extends _0x24003c{static get['requires'](){return[_0x3fe82a];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x24003c{['afterInit'](){const _0x3bcb75=this['editor'];if(!_0x3bcb75['plugins']['has']('LinkEditing'))return;const _0x3808bf=_0x3bcb75['plugins']['get']('TrackChangesEditing'),_0x482830=_0x3bcb75['commands']['get']('link');_0x3808bf['enableDefaultAttributesIntegration']('link'),_0x3808bf['enableDefaultAttributesIntegration']('unlink');for(const _0x532626 of _0x482830['manualDecorators'])_0x3808bf['descriptionFactory']['registerAttributeLabel'](_0x532626['id'],'link\x20('+_0x532626['label']['toLowerCase']()+')');_0x3808bf['descriptionFactory']['registerDescriptionCallback'](_0x241bdc=>{if('attribute'!=_0x241bdc['type'])return;const {data:_0x54ca59}=_0x241bdc;if(!_0x54ca59||'linkHref'!=_0x54ca59['key'])return;const _0x53095b=_0x54ca59['newValue'],_0x4d9d83=_0x3bcb75['locale'];return{'type':'format','content':null==_0x53095b?o(_0x4d9d83,'*Remove\x20link*'):o(_0x4d9d83,'*Set\x20link:*\x20%0','\x22'+_0x53095b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf220=this['editor'],_0x28e5ad=_0x1bf220['locale'];_0x1bf220['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x544de9=>{if('formatInline'!=_0x544de9['type'])return;const {data:_0x29c390}=_0x544de9;if(_0x29c390){if('link'==_0x29c390['commandName']){const _0x590d95=_0x29c390['commandParams'][0x0];return{'type':'format','content':o(_0x28e5ad,'*Set\x20link:*\x20%0','\x22'+_0x590d95+'\x22')};}return'unlink'==_0x29c390['commandName']?{'type':'format','content':o(_0x28e5ad,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x24003c{['afterInit'](){const _0x2957ed=this['editor'],_0x15da42=_0x2957ed['locale'];if(!_0x2957ed['plugins']['has']('LegacyListEditing'))return;const _0x44fbdc=_0x2957ed['plugins']['get']('TrackChangesEditing'),_0x4cb9b0=_0x2957ed['plugins']['has']('LegacyTodoListEditing');function _0x45fa65(_0x456e10){return()=>{const _0x5eec96=_0x2957ed['model']['document']['selection'],_0x2f9e38=_0x2957ed['commands']['get'](_0x456e10);if(_0x2f9e38['value'])return void _0x2957ed['execute']('paragraph',{});const _0xe8c9a5=_0x456e10['slice'](0x0,-0x4),_0x1f141e=function(_0x53ede4,_0x390272,_0x58ca72){let _0x16bbea=Array['from'](_0x53ede4)['filter'](_0xdf9778=>function(_0x35c75c,_0x5af27f){return _0x5af27f['checkChild'](_0x35c75c['parent'],'listItem')&&!_0x5af27f['isObject'](_0x35c75c);}(_0xdf9778,_0x58ca72));_0x16bbea=_0x16bbea['filter'](_0x28da0c=>!_0x28da0c['is']('element','listItem')||_0x28da0c['getAttribute']('listType')!=_0x390272);const _0x1751ed=new Set();for(const _0x4bec3f of _0x16bbea)_0x4bec3f['is']('element','listItem')?_0x1751ed['add'](Le(_0x4bec3f)):_0x1751ed['add'](_0x4bec3f);return Array['from'](_0x1751ed);}(_0x5eec96['getSelectedBlocks'](),_0xe8c9a5,_0x2957ed['model']['schema']);_0x2957ed['model']['change'](()=>{for(const _0x8a4d73 of _0x1f141e)_0x44fbdc['markBlockFormat'](_0x8a4d73,{'commandName':_0x456e10,'commandParams':[{'forceValue':!_0x2f9e38['value']}],'formatGroupId':'blockName'},Ee(_0x8a4d73));});};}function _0x348dbf(_0x16c8b8){return()=>{const _0x5b5f76=function(_0x2887bd){let _0x2d74d9=Array['from'](_0x2887bd);const _0x613ece=_0x2d74d9['findIndex'](_0x18dbc0=>'listItem'!=_0x18dbc0['name']);return _0x613ece>-0x1&&(_0x2d74d9=_0x2d74d9['slice'](0x0,_0x613ece)),_0x2d74d9;}(_0x2957ed['model']['document']['selection']['getSelectedBlocks']()),_0x176c7e=_0x2957ed['model']['createRange'](_0x2957ed['model']['createPositionAt'](_0x5b5f76[0x0],'before'),_0x2957ed['model']['createPositionAt'](_0x5b5f76[_0x5b5f76['length']-0x1],'end'));_0x2957ed['model']['change'](()=>{_0x44fbdc['markBlockFormat'](_0x176c7e,{'commandName':_0x16c8b8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x557dd8){const _0x36e655=new Set();for(const _0x4165ee of _0x557dd8){let _0xeb5310=_0x4165ee['nextSibling'];for(;_0xeb5310&&_0xeb5310['getAttribute']('listIndent')>_0x4165ee['getAttribute']('listIndent');)_0x36e655['add'](_0xeb5310),_0xeb5310=_0xeb5310['nextSibling'];}return Array['from'](_0x36e655);}(_0x5b5f76));});};}_0x44fbdc['enableCommand']('numberedList',_0x45fa65('numberedList')),_0x44fbdc['enableCommand']('bulletedList',_0x45fa65('bulletedList')),_0x4cb9b0&&_0x44fbdc['enableCommand']('todoList',_0x45fa65('todoList')),_0x44fbdc['enableCommand']('indentList',_0x348dbf('indentList')),_0x44fbdc['enableCommand']('outdentList',_0x348dbf('outdentList')),_0x4cb9b0&&_0x44fbdc['enableCommand']('checkTodoList',()=>{const _0x490506=_0x2957ed['commands']['get']('checkTodoList'),_0xd09a77=Array['from'](_0x490506['_selectedElements']);_0xd09a77['filter'](_0x120ff8=>_0x120ff8['getAttribute']('todoListChecked')!=_0x490506['value']),_0x2957ed['model']['change'](()=>{for(const _0x28cca7 of _0xd09a77)_0x44fbdc['markBlockFormat'](_0x28cca7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x490506['value']}]});});}),_0x44fbdc['descriptionFactory']['registerElementLabel']('listItem',_0xeb9a5f=>o(_0x15da42,'ELEMENT_LIST_ITEM',_0xeb9a5f)),_0x44fbdc['descriptionFactory']['registerDescriptionCallback'](_0x1a005f=>{if('formatBlock'!=_0x1a005f['type']&&'formatInline'!=_0x1a005f['type'])return;const {data:_0x532460}=_0x1a005f;if(_0x532460){if('numberedList'==_0x532460['commandName']||'bulletedList'==_0x532460['commandName']||'todoList'==_0x532460['commandName'])switch(_0x532460['commandName']['replace']('List','')){case'bulleted':return _0x31e7a6(o(_0x15da42,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31e7a6(o(_0x15da42,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31e7a6(o(_0x15da42,'ELEMENT_TODO_LIST'));}if('indentList'==_0x532460['commandName'])return{'type':'format','content':o(_0x15da42,'*Indent:*\x20%0',o(_0x15da42,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x532460['commandName'])return{'type':'format','content':o(_0x15da42,'*Outdent:*\x20%0',o(_0x15da42,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x532460['commandName'])return _0x532460['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15da42,'*Check\x20item*')}:{'type':'format','content':o(_0x15da42,'*Uncheck\x20item*')};}function _0x31e7a6(_0x12b0fc){return{'type':'format','content':o(_0x15da42,'*Change\x20to:*\x20%0',_0x12b0fc)};}});}}function Le(_0x2dee46){const _0x59d555=_0x2dee46['getAttribute']('listIndent');if(0x0==_0x59d555)return _0x2dee46;let _0x46c3df=_0x2dee46;for(;_0x2dee46['previousSibling']&&_0x2dee46['previousSibling']['is']('element','listItem');){const _0x35dbf8=_0x2dee46['previousSibling']['getAttribute']('listIndent');if(_0x35dbf8==_0x59d555)_0x46c3df=_0x2dee46['previousSibling'];else{if(_0x35dbf8<_0x59d555)break;}_0x2dee46=_0x2dee46['previousSibling'];}return _0x46c3df;}function Ee(_0x5909b7){const _0x3a86f6=[];if(_0x5909b7['is']('element','listItem')&&_0x5909b7['getAttribute']('listIndent')>0x0){let _0x342050=_0x5909b7['nextSibling'];for(;_0x342050&&'listItem'==_0x342050['name']&&_0x342050['getAttribute']('listIndent')==_0x5909b7['getAttribute']('listIndent');)_0x3a86f6['push'](_0x342050),_0x342050=_0x342050['nextSibling'];}return _0x3a86f6;}class mt extends _0x24003c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33c8e6=this['editor']['config']['get']('list.properties'),_0x294c87=this['editor']['plugins']['get']('TrackChangesEditing');_0x33c8e6['styles']&&_0x294c87['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33c8e6['reversed']&&_0x294c87['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33c8e6['startIndex']&&_0x294c87['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x294c87['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3ccf34,_0x464816={}){const _0x54f641=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48736f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54f641['markMultiRangeBlockFormat'](_0x48736f,{'commandName':'listStyle','commandParams':[{'type':_0x464816['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x424051,_0x38acf3={}){const _0x178592=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27ca05=this['_getSuggestionBlocks'](_0x4f83ea=>_0x4f83ea['is']('element','listItem')&&'numbered'===_0x4f83ea['getAttribute']('listType'));if(_0x27ca05['length']<0x1)return;const _0x28713b=_0x27ca05['map'](_0x26be61=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26be61,'before'),this['editor']['model']['createPositionAt'](_0x26be61,0x0)));this['editor']['model']['change'](()=>{_0x178592['markMultiRangeBlockFormat'](_0x28713b,{'commandName':'listReversed','commandParams':[{'reversed':_0x38acf3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa0fe27,_0x3e1eba={}){const _0x83c957=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50bd52=this['_getSuggestionBlocks'](_0x533689=>_0x533689['is']('element','listItem')&&'numbered'===_0x533689['getAttribute']('listType'));if(_0x50bd52['length']<0x1)return;const _0x5616c8=_0x50bd52['map'](_0xab7b33=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xab7b33,'before'),this['editor']['model']['createPositionAt'](_0xab7b33,0x0)));this['editor']['model']['change'](()=>{_0x83c957['markMultiRangeBlockFormat'](_0x5616c8,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e1eba['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb2fa5f){if('formatBlock'!=_0xb2fa5f['type']&&'formatInline'!=_0xb2fa5f['type'])return;const _0x21ae5e=this['editor']['locale'],{data:_0x522ad5}=_0xb2fa5f;if(!_0x522ad5)return;let _0x15ea59,_0x3e3da3;switch(_0x522ad5['commandName']){case'listStyle':_0x15ea59='*Change\x20to:*\x20%0',_0x3e3da3={'type':'format','content':o(_0x21ae5e,_0x15ea59,o(_0x21ae5e,this['_getTranslationKeyForListStyle'](_0x522ad5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15ea59=_0x522ad5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e3da3={'type':'format','content':o(_0x21ae5e,_0x15ea59)};break;case'listStart':_0x15ea59='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e3da3={'type':'format','content':o(_0x21ae5e,_0x15ea59,_0x522ad5['commandParams'][0x0]['startIndex'])};}return _0x3e3da3;}['_getSuggestionBlocksForListStyle'](){const _0x575759=this['editor']['plugins']['get']('LegacyListUtils');let _0x568470=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x568470[0x0]?.['is']('element','listItem')&&_0x568470['unshift'](..._0x575759['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x568470[_0x568470['length']-0x1]?.['is']('element','listItem')&&_0x568470['push'](..._0x575759['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x568470=[...new Set(_0x568470)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x568470=_0x568470['filter'](_0x57536f=>_0x57536f['is']('element','listItem'))),_0x568470;}['_getSuggestionBlocks'](_0x583282){const _0x3d9a41=this['editor']['plugins']['get']('LegacyListUtils');let _0x13c1ec=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x583282)['map'](_0x2c1004=>{const _0x4fcd70=this['editor']['model']['createPositionAt'](_0x2c1004,0x0);return[..._0x3d9a41['getSiblingNodes'](_0x4fcd70,'backward'),..._0x3d9a41['getSiblingNodes'](_0x4fcd70,'forward')];})['flat']();return _0x13c1ec=[...new Set(_0x13c1ec)],_0x13c1ec;}['_getTranslationKeyForListStyle'](_0x5e1897){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e1897)||'default')['toUpperCase']()+'_LIST_'+_0x5e1897['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x24003c{['afterInit'](){const _0x378e71=this['editor'];if(!_0x378e71['plugins']['has']('MediaEmbedEditing'))return;const _0xe1a12c=_0x378e71['plugins']['get']('TrackChangesEditing'),_0x2f63ff=_0x378e71['locale'];_0xe1a12c['enableCommand']('mediaEmbed'),_0xe1a12c['descriptionFactory']['registerElementLabel']('media',_0x161401=>o(_0x2f63ff,'ELEMENT_MEDIA',_0x161401));}}class pt extends _0x24003c{['afterInit'](){const _0x48bcde=this['editor'];_0x48bcde['plugins']['has']('MentionEditing')&&_0x48bcde['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x24003c{['afterInit'](){const _0x2b5418=this['editor'];if(!_0x2b5418['plugins']['has']('MergeFieldsEditing'))return;const _0x453cc5=_0x2b5418['plugins']['get']('TrackChangesEditing'),_0xef5341=_0x2b5418['locale'];_0x453cc5['enableCommand']('insertMergeField'),_0x453cc5['enableCommand']('insertMergeFieldBlock'),_0x453cc5['enableCommand']('insertMergeFieldImage'),_0x453cc5['descriptionFactory']['registerElementLabel']('mergeField',_0x5a6a98=>o(_0xef5341,'ELEMENT_MERGE_FIELD',_0x5a6a98)),_0x453cc5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x35a15f=>o(_0xef5341,'ELEMENT_MERGE_FIELD',_0x35a15f)),_0x453cc5['descriptionFactory']['registerDescriptionCallback'](_0x1dea21=>{if('insertion'!=_0x1dea21['type']&&'deletion'!=_0x1dea21['type'])return;const _0x2c739f=_0x1dea21['getContainedElement']();if(null==_0x2c739f)return;const _0x569af6=_0x2b5418['plugins']['get']('MergeFieldsEditing');let _0x4efc01;switch(_0x569af6['getMergeFieldType'](_0x2c739f)){case null:return;case'image':{const _0x388939=_0x569af6['unwrapAffixes'](_0x2c739f['getAttribute']('src'));_0x4efc01=_0x569af6['getLabel'](_0x388939)||_0x388939;break;}default:{const _0x33dc91=_0x2c739f['getAttribute']('id');_0x4efc01=_0x569af6['getLabel'](_0x33dc91)||_0x33dc91;break;}}return'insertion'==_0x1dea21['type']?{'type':'insertion','content':o(_0xef5341,'*Insert:*\x20%0','\x22'+_0x4efc01+'\x22\x20'+o(_0xef5341,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xef5341,'*Remove:*\x20%0','\x22'+_0x4efc01+'\x22\x20'+o(_0xef5341,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x24003c{['afterInit'](){const _0x2e47ad=this['editor'],_0x2f1991=_0x2e47ad['plugins']['get']('TrackChangesEditing');_0x2e47ad['plugins']['has']('MultiLevelList')&&(_0x2f1991['enableDefaultAttributesIntegration']('multiLevelList'),_0x2f1991['descriptionFactory']['registerDescriptionCallback'](_0x2ff1fc=>this['handleDescriptions'](_0x2ff1fc)));}['handleDescriptions'](_0x5db42b){const _0x4a54b0=this['editor']['locale'],{data:_0x5b5917}=_0x5db42b,_0x154801={'type':'format','content':''};if(_0x5b5917&&'listMarkerStyle'==_0x5b5917['key']){if(!_0x5b5917['oldValue'])return{'type':'format','content':o(_0x4a54b0,'*Set\x20format:*\x20%0',o(_0x4a54b0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b5917['newValue']+')'};if(!_0x5b5917['newValue']){let _0x5a2c66=_0x5db42b['head'];for(;_0x5a2c66;){if(_0x5a2c66['data']&&'listType'==_0x5a2c66['data']['key']&&_0x5a2c66['data']['newValue'])return _0x154801;_0x5a2c66=_0x5a2c66['next'];}return{'type':'format','content':o(_0x4a54b0,'*Remove\x20format:*\x20%0',o(_0x4a54b0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b5917['oldValue']+')'};}}}}class bt extends _0x24003c{['afterInit'](){const _0x7aaadf=this['editor'];if(!_0x7aaadf['plugins']['has']('PageBreakEditing'))return;_0x7aaadf['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1d4f08=_0x7aaadf['plugins']['get']('TrackChangesEditing'),_0x1d1b04=_0x7aaadf['locale'];_0x1d4f08['descriptionFactory']['registerElementLabel']('pageBreak',_0x21cff9=>o(_0x1d1b04,'ELEMENT_PAGE_BREAK',_0x21cff9));}}class yt extends _0x24003c{['afterInit'](){const _0x16d6fa=this['editor'];if(!_0x16d6fa['plugins']['has']('Paragraph'))return;const _0x3d3c44=_0x16d6fa['locale'],_0x577c76=_0x16d6fa['plugins']['get']('TrackChangesEditing');_0x577c76['descriptionFactory']['registerElementLabel']('paragraph',_0x9351f9=>o(_0x3d3c44,'ELEMENT_PARAGRAPH',_0x9351f9)),_0x577c76['enableDefaultAttributesIntegration']('paragraph'),_0x577c76['enableCommand']('insertParagraph');const _0x1b7e7b=_0x577c76['descriptionFactory'];_0x1b7e7b['registerDescriptionCallback'](_0x52b37e=>{if('insertion'!==_0x52b37e['type'])return;const {start:_0x53e918,end:_0x2c3d5f}=_0x52b37e['getFirstRange']();if(!_0x53e918['isTouching'](_0x2c3d5f)||!_0x53e918['nodeAfter'])return;const _0x73a929=_0x16d6fa['model']['schema'],_0x270f51=_0x53e918['nodeAfter'];return _0x73a929['isBlock'](_0x270f51)&&!_0x73a929['isLimit'](_0x270f51)&&_0x73a929['checkChild'](_0x270f51,'$text')?{'type':'insertion','content':o(_0x3d3c44,'*Insert:*\x20%0',_0x1b7e7b['getItemLabel'](_0x270f51,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c26e=this['editor'],_0x3a35fa=_0x59c26e['locale'];_0x59c26e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed9b9=>{if('formatBlock'!=_0x1ed9b9['type'])return;const {data:_0x3c8923}=_0x1ed9b9;return _0x3c8923&&'paragraph'==_0x3c8923['commandName']?{'type':'format','content':o(_0x3a35fa,'*Change\x20to:*\x20%0',o(_0x3a35fa,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x24003c{['afterInit'](){const _0xf5c23b=this['editor'];_0xf5c23b['commands']['get']('replaceSource')&&_0xf5c23b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x24003c{['afterInit'](){const _0x5b3c98=this['editor'];if(!_0x5b3c98['plugins']['has']('RemoveFormatEditing'))return;_0x5b3c98['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4463f2=this['editor'];_0x4463f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f55d9=>{if('formatBlock'!=_0x6f55d9['type']&&'formatInline'!=_0x6f55d9['type'])return;const {data:_0x5204bb}=_0x6f55d9;return _0x5204bb&&'removeFormat'==_0x5204bb['commandName']?{'type':'format','content':o(_0x4463f2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x24003c{['afterInit'](){const _0xff4bb9=this['editor'];if(!_0xff4bb9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4073ec=_0xff4bb9['plugins']['get']('TrackChangesEditing');_0x4073ec['enableCommand']('goToPreviousRestrictedEditingException'),_0x4073ec['enableCommand']('goToNextRestrictedEditingException');const _0x153be9=_0xff4bb9['plugins']['get']('RestrictedEditingModeEditing');_0x153be9['enableCommand']('trackChanges'),_0x153be9['enableCommand']('acceptSuggestion'),_0x153be9['enableCommand']('discardSuggestion'),_0x153be9['enableCommand']('acceptAllSuggestions'),_0x153be9['enableCommand']('discardAllSuggestions'),_0x153be9['enableCommand']('acceptSelectedSuggestions'),_0x153be9['enableCommand']('discardSelectedSuggestions');}}class At extends _0x24003c{['afterInit'](){const _0x224ee0=this['editor'];if(!_0x224ee0['plugins']['has']('ShiftEnter'))return;const _0x2da38c=_0x224ee0['plugins']['get']('TrackChangesEditing');_0x2da38c['enableCommand']('shiftEnter'),_0x2da38c['descriptionFactory']['registerElementLabel']('softBreak',_0x2d37ac=>o(_0x224ee0['locale'],'ELEMENT_LINE_BREAK',_0x2d37ac));}}function an(_0x4695e9,_0xd39eb1,_0x51db91){const _0x5a4a19=[];for(const _0x126292 of _0xd39eb1['getItems']())_0x126292['hasAttribute'](_0x4695e9)&&_0x5a4a19['push'](_0x51db91['createRangeOn'](_0x126292));return _0x5a4a19;}class _t extends _0x24003c{['afterInit'](){const _0x47563c=this['editor'],_0x8a46f1=_0x47563c['plugins']['get']('TrackChangesEditing');_0x47563c['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x8a46f1['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xfb1e17=this['editor'],_0x693d=_0xfb1e17['model'],_0x136958=_0xfb1e17['locale'],_0x3d91b9=_0xfb1e17['plugins']['get']('TrackChangesEditing'),_0x4c5300='restrictedEditingException',_0x3ee77e=_0xfb1e17['commands']['get'](_0x4c5300);_0x3d91b9['enableCommand'](_0x4c5300,(_0x37cfae,_0x40c8b0={})=>{const _0x371856=_0x693d['document']['selection'];if(_0x371856['isCollapsed'])return void _0x37cfae(_0x40c8b0);const _0x4a21ca=void 0x0!==_0x40c8b0['forceValue']?_0x40c8b0['forceValue']:!_0x3ee77e['value'];_0x693d['change'](()=>{const _0x574f91=Array['from'](_0x371856['getRanges']());for(const _0x5858d5 of _0x574f91){const _0x2c44cd=_0x4a21ca?[_0x5858d5]:an(_0x4c5300,_0x5858d5,_0x693d);for(const _0x42791a of _0x2c44cd)_0x3d91b9['markInlineFormat'](_0x42791a,{'commandName':_0x4c5300,'commandParams':[{'forceValue':_0x4a21ca}]});}});}),_0x3d91b9['descriptionFactory']['registerDescriptionCallback'](_0x19487e=>{if('formatBlock'!=_0x19487e['type']&&'formatInline'!=_0x19487e['type'])return;const {data:_0x403785}=_0x19487e;return _0x403785&&_0x403785['commandName']==_0x4c5300?_0x403785['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x136958,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x136958,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x10e010=this['editor'],_0x1304ae=_0x10e010['locale'],_0x54cc1e=_0x10e010['plugins']['get']('TrackChangesEditing'),_0x58c6b8='restrictedEditingExceptionBlock',_0x43e95e=this['editor']['commands']['get'](_0x58c6b8);_0x54cc1e['enableCommand'](_0x58c6b8,(_0x632de3,_0x4309ea={})=>{const _0x13c663=this['editor']['model']['document']['selection'],_0x104e45=_0x4309ea&&void 0x0!==_0x4309ea['forceValue']?_0x4309ea['forceValue']:!_0x43e95e['value'];let _0x20674e=[];if(_0x104e45){const _0x40a116=Array['from'](_0x13c663['getSelectedBlocks']())['filter'](_0x236064=>function(_0x531734){return!!_0x531734['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x236064)||function(_0x1f1a5b,_0x230cdc){const _0x18b23c=_0x230cdc['createContext'](_0x1f1a5b['parent']);if(!_0x230cdc['checkChild'](_0x18b23c,'restrictedEditingException'))return!0x1;if(!_0x230cdc['checkChild'](_0x18b23c['push']('restrictedEditingException'),_0x1f1a5b))return!0x1;return!0x0;}(_0x236064,this['editor']['model']['schema']));_0x20674e=to(_0x40a116,_0x10e010['model']);}else{const _0x3eac69=Array['from'](_0x13c663['getSelectedBlocks']())['map'](_0x509ca4=>function(_0x418a48){let _0x4e55ce=_0x418a48;for(;_0x4e55ce['parent'];){if('restrictedEditingException'==_0x4e55ce['parent']['name'])return _0x4e55ce;_0x4e55ce=_0x4e55ce['parent'];}return null;}(_0x509ca4))['filter'](_0x330757=>!!_0x330757);_0x20674e=to(_0x3eac69,_0x10e010['model']);}_0x10e010['model']['change'](()=>{for(const _0xc6958 of _0x20674e)_0x54cc1e['markBlockFormat'](_0xc6958,{'commandName':_0x58c6b8,'commandParams':[{'forceValue':_0x104e45}]});});}),_0x54cc1e['descriptionFactory']['registerDescriptionCallback'](_0x2b3caa=>{const {data:_0x5b4991}=_0x2b3caa;if(_0x5b4991&&_0x5b4991['commandName']==_0x58c6b8)return _0x5b4991['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1304ae,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1304ae,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x24003c{['afterInit'](){const _0x4aac16=this['editor'];if(!_0x4aac16['plugins']['has']('Style')||!_0x4aac16['plugins']['has']('DataSchema'))return;const _0xd05d1f=_0x4aac16['plugins']['get']('TrackChangesEditing'),_0x163a7d=_0x4aac16['locale'],_0x414da0=_0x4aac16['config']['get']('style')||{},_0xf59bd1=_0x4aac16['plugins']['get']('GeneralHtmlSupport'),_0x48def5=_0x4aac16['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4aac16['plugins']['get']('DataSchema'),_0x414da0['definitions']);_0xd05d1f['enableDefaultAttributesIntegration']('style');const _0x339b5a=new Set();for(const _0x424443 of _0x48def5['block']){const _0x201718=_0xf59bd1['getGhsAttributeNameForElement'](_0x424443['element']);_0x339b5a['add'](_0x201718);}const _0x2ef3ce=new Set();for(const _0x3c071a of _0x48def5['inline']){const _0x26238e=_0xf59bd1['getGhsAttributeNameForElement'](_0x3c071a['element']);_0x2ef3ce['add'](_0x26238e);for(const _0x349ac5 of _0x3c071a['ghsAttributes'])_0x2ef3ce['add'](_0x349ac5);}for(const _0xb10c3c of _0x339b5a)_0xd05d1f['descriptionFactory']['registerAttributeLabel'](_0xb10c3c,o(_0x163a7d,'FORMAT_STYLE'));for(const _0x8e2aba of _0x2ef3ce)_0xd05d1f['descriptionFactory']['registerAttributeLabel'](_0x8e2aba,o(_0x163a7d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x108d7c=this['editor'],_0x3882f0=_0x108d7c['locale'];_0x108d7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe92f03=>{if('formatBlock'!=_0xe92f03['type']&&'formatInline'!=_0xe92f03['type'])return;const {data:_0x6d494f}=_0xe92f03;return _0x6d494f&&'style'===_0x6d494f['commandName']?_0x6d494f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3882f0,'*Set\x20format:*\x20%0',_0x6d494f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3882f0,'*Remove\x20format:*\x20%0',_0x6d494f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x24003c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x415a1d){super(_0x415a1d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2fe512=this['editor'],_0x35f2ec=_0x2fe512['model']['document']['selection'];if(!_0x2fe512['plugins']['has']('TableEditing'))return;const _0x5339e8=_0x2fe512['locale'],_0x49a104=_0x2fe512['plugins']['get']('TrackChangesEditing'),_0x7d3052=_0x2fe512['plugins']['get']('TableUtils');_0x49a104['descriptionFactory']['registerElementLabel']('table',_0x2eae3d=>o(_0x5339e8,'ELEMENT_TABLE',_0x2eae3d)),this['_setupColumnsRowsFixing'](),_0x49a104['enableCommand']('insertTable'),_0x49a104['enableCommand']('selectTableRow'),_0x49a104['enableCommand']('selectTableColumn');for(const _0x1c97db of['insertTableRowAbove','insertTableRowBelow']){const _0x993540=_0x2fe512['commands']['get'](_0x1c97db);_0x49a104['enableCommand'](_0x1c97db,_0xf24cbd=>{_0x2fe512['model']['change'](_0x136801=>{_0xf24cbd();const _0x6d1944='above'===_0x993540['order'],_0x13c318=_0x7d3052['getSelectionAffectedTableCells'](_0x35f2ec),_0x25c78b=_0x7d3052['getRowIndexes'](_0x13c318),_0x370eee=_0x6d1944?_0x25c78b['first']-0x1:_0x25c78b['last']+0x1,_0x5d5e21=_0x13c318[0x0]['findAncestor']('table'),_0xe48c39=_0x7d3052['createTableWalker'](_0x5d5e21,{'startRow':_0x370eee,'endRow':_0x370eee}),_0x364ebe=Array['from'](_0xe48c39)['map'](_0x24ed41=>_0x136801['createRangeOn'](_0x24ed41['cell']));_0x49a104['markMultiRangeInsertion'](_0x364ebe,'tableRow');});});}for(const _0x1cb583 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a8ad4=_0x2fe512['commands']['get'](_0x1cb583);_0x49a104['enableCommand'](_0x1cb583,_0x25a80f=>{_0x2fe512['model']['change'](_0x1a6feb=>{_0x25a80f();const _0x3ff54e='left'===_0x3a8ad4['order'],_0x2d14d4=_0x7d3052['getSelectionAffectedTableCells'](_0x35f2ec),_0x50398f=_0x7d3052['getColumnIndexes'](_0x2d14d4),_0x35efb7=_0x3ff54e?_0x50398f['first']-0x1:_0x50398f['last']+0x1,_0x328fc0=_0x2d14d4[0x0]['findAncestor']('table'),_0x3453bc=_0x7d3052['createTableWalker'](_0x328fc0,{'startRow':0x0,'column':_0x35efb7,'includeAllSlots':!0x1}),_0xcf338e=Array['from'](_0x3453bc)['map'](_0x1aa1a3=>_0x1a6feb['createRangeOn'](_0x1aa1a3['cell']));_0x49a104['markMultiRangeInsertion'](_0xcf338e,'tableColumn');});});}for(const _0x18a002 of['removeTableRow','removeTableColumn']){const _0x1ce33f=_0x18a002['substr'](0xb),_0x3dc545=_0x1ce33f['toLowerCase'](),_0x5d1817=_0x3dc545['substr'](0x0,0x3)+'span',_0x2dbe7b='table'+_0x1ce33f,_0x169e72='min'+_0x1ce33f,_0x3e7044='max'+_0x1ce33f;_0x49a104['enableCommand'](_0x18a002,()=>{_0x2fe512['model']['change'](_0x29e014=>{const _0x1d3fcc=_0x7d3052['getSelectionAffectedTableCells'](_0x35f2ec),_0x82065c=_0x1d3fcc[0x0]['findAncestor']('table');let _0x5772ff;if('removeTableRow'==_0x18a002){const _0x350e23=_0x7d3052['getRowIndexes'](_0x1d3fcc);_0x5772ff={'startRow':_0x350e23['first'],'endRow':_0x350e23['last'],'includeAllSlots':!0x0};}else{const _0x25559d=_0x7d3052['getColumnIndexes'](_0x1d3fcc);_0x5772ff={'startColumn':_0x25559d['first'],'endColumn':_0x25559d['last'],'includeAllSlots':!0x0};}const _0x35da13=_0x7d3052['createTableWalker'](_0x82065c,_0x5772ff),_0x266f8c=Array['from'](_0x35da13)['map'](({cell:_0x248d15})=>_0x248d15),_0x346f0e=_e(_0x266f8c['filter'](_0x21b408=>_0x21b408['hasAttribute'](_0x5d1817))),_0x50a1fd=_e(_0x266f8c['filter'](_0x4cade0=>!_0x4cade0['hasAttribute'](_0x5d1817)))['map'](_0x19a9c9=>_0x29e014['createRangeOn'](_0x19a9c9)),_0x125e52=_0x49a104['markMultiRangeDeletion'](_0x50a1fd,_0x2dbe7b);if(_0x125e52&&('tableRow'==_0x125e52['subType']||'tableColumn'==_0x125e52['subType'])){const _0x5e10fc=this['_getSuggestionCoords'](_0x125e52);for(const _0x1605fe of _0x346f0e){const _0x302afa=_0x29e014['createRangeOn'](_0x1605fe),_0x5257c5=_0x7d3052['getCellLocation'](_0x1605fe),_0x12ddf8=_0x1605fe['getAttribute'](_0x5d1817)-0x1,_0x14ac9e=_0x5e10fc[_0x169e72],_0x41b01e=_0x5e10fc[_0x3e7044];_0x14ac9e<=_0x5257c5[_0x3dc545]&&_0x5257c5[_0x3dc545]+_0x12ddf8<=_0x41b01e&&_0x125e52['addRange'](_0x302afa);}}});});}function _0x3ec8a5(_0xa93d6b){const _0xe0fde6=Array['from'](_0x35f2ec['getRanges']())['map'](_0x2b4e02=>_0xc9628b['fromRange'](_0x2b4e02));_0x2fe512['model']['change'](_0x159335=>{const _0x311ca6=_0x159335['batch'];_0xa93d6b=_0xa93d6b['filter'](_0x5398d5=>'$graveyard'!=_0x5398d5['root']['rootName']),_0x159335['setSelection'](_0xa93d6b),_0x2fe512['commands']['get']('removeTableRow')['refresh'](),_0x2fe512['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2fe512['model']['enqueueChange'](()=>{_0x2fe512['model']['enqueueChange'](_0x311ca6,_0x56c021=>{const _0x2bfd9a=_0xe0fde6['filter'](_0xed63ad=>'$graveyard'!=_0xed63ad['root']['rootName']);_0x2bfd9a['length']>0x0&&_0x56c021['setSelection'](_0x2bfd9a);for(const _0x2f8209 of _0xe0fde6)_0x2f8209['detach']();});});});}function _0x5b4641(_0x3cd2f6){_0x2fe512['model']['change'](_0x131b3a=>{const _0x3f935a=Array['from'](_0x35f2ec['getRanges']())['map'](_0x428425=>_0xc9628b['fromRange'](_0x428425)),_0x33f9da=[];for(const _0x4bb17e of _0x3cd2f6)for(const _0x3487ca of _0x4bb17e['getItems']({'shallow':!0x0}))_0x33f9da['push'](_0x3487ca);for(const _0x5321dd of _0x33f9da)'$graveyard'!=_0x5321dd['root']['rootName']&&(_0x131b3a['setSelection'](_0x131b3a['createPositionAt'](_0x5321dd,0x0)),_0x2fe512['commands']['get']('removeTableColumn')['refresh'](),_0x2fe512['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ac914=_0x3f935a['filter'](_0x3373df=>'$graveyard'!=_0x3373df['root']['rootName']);_0x2ac914['length']>0x0&&_0x131b3a['setSelection'](_0x2ac914);for(const _0x3b9006 of _0x3f935a)_0x3b9006['detach']();});}function _0x4faf63(_0x3dc58b,_0x229238){return _0x229238['every'](_0x596d33=>_0x3dc58b['some'](_0x23d3e9=>_0x23d3e9['end']['isEqual'](_0x596d33['start'])||_0x596d33['end']['isEqual'](_0x23d3e9['start'])));}function _0x5ef9af(_0x47ffd5,_0x20a78c){return!_0x47ffd5['some'](_0x12fcc5=>_0x20a78c['some'](_0x36e351=>_0x12fcc5['isIntersecting'](_0x36e351)))&&_0x47ffd5['some'](_0x29c5ec=>_0x20a78c['some'](_0x310fbf=>_0x29c5ec['end']['isTouching'](_0x310fbf['start'])));}_0x49a104['descriptionFactory']['registerDescriptionCallback'](_0x2673bf=>{if('insertion'!=_0x2673bf['type']&&'deletion'!=_0x2673bf['type'])return;const _0x2db3dc=_0x2673bf['getContainedElement']();if(null!=_0x2db3dc&&_0x2db3dc['is']('element','table')){if('insertion'==_0x2673bf['type']){const _0x4c6182=_0x2673bf['getItems']()['filter'](_0x2bc4ec=>_0x2bc4ec['is']('$textProxy'))['map'](_0x16bd26=>_0x16bd26['data']);if(_0x4c6182['length'])return{'type':'insertion','content':o(_0x5339e8,'*Insert:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c6182['join']('\x20')+'\x22'))};}if('deletion'==_0x2673bf['type']){const _0x1d41fe=_0x2673bf['getItems']()['filter'](_0x1a1db9=>_0x1a1db9['is']('$textProxy'))['map'](_0x5b68ad=>_0x5b68ad['data']);if(_0x1d41fe['length'])return{'type':'deletion','content':o(_0x5339e8,'*Remove:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d41fe['join']('\x20')+'\x22'))};}}}),_0x49a104['descriptionFactory']['registerDescriptionCallback'](_0x4c7824=>{if('tableRow'==_0x4c7824['subType']){const _0x31cd55=_0x4c7824['getItems']()['filter'](_0x261d6b=>_0x261d6b['is']('$textProxy'))['map'](_0x44903c=>_0x44903c['data']),_0x3766f9=this['_getSuggestionCoords'](_0x4c7824),_0x3b9ffd=_0x3766f9['maxRow']-_0x3766f9['minRow']+0x1;if('insertion'==_0x4c7824['type'])return _0x31cd55['length']?{'type':'insertion','content':o(_0x5339e8,'*Insert:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3b9ffd,'\x22'+_0x31cd55['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5339e8,'*Insert:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_ROW',_0x3b9ffd))};if('deletion'==_0x4c7824['type'])return _0x31cd55['length']?{'type':'deletion','content':o(_0x5339e8,'*Remove:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3b9ffd,'\x22'+_0x31cd55['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5339e8,'*Remove:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_ROW',_0x3b9ffd))};}if('tableColumn'==_0x4c7824['subType']){const _0x1d094c=_0x4c7824['getItems']()['filter'](_0x55c284=>_0x55c284['is']('$textProxy'))['map'](_0x30b762=>_0x30b762['data']),_0x1e28d5=this['_getSuggestionCoords'](_0x4c7824),_0x1f93e7=_0x1e28d5['maxColumn']-_0x1e28d5['minColumn']+0x1;if('insertion'==_0x4c7824['type'])return _0x1d094c['length']?{'type':'insertion','content':o(_0x5339e8,'*Insert:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1f93e7,'\x22'+_0x1d094c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5339e8,'*Insert:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_COLUMN',_0x1f93e7))};if('deletion'==_0x4c7824['type'])return _0x1d094c['length']?{'type':'deletion','content':o(_0x5339e8,'*Remove:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1f93e7,'\x22'+_0x1d094c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5339e8,'*Remove:*\x20%0',o(_0x5339e8,'ELEMENT_TABLE_COLUMN',_0x1f93e7))};}}),_0x49a104['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3ec8a5),_0x49a104['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3ec8a5),_0x49a104['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5b4641),_0x49a104['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5b4641),_0x49a104['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4faf63),_0x49a104['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4faf63),_0x49a104['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ef9af),_0x49a104['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ef9af);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2b43e4=this['editor'],_0x2f3ec0=_0x2b43e4['model']['document']['selection'];return(_0x4d3a39,_0x552a82)=>{_0x2b43e4['model']['change'](_0x57406f=>{const {commandName:_0x45e675,commandParams:_0x529d54}=_0x552a82;let _0x11ed06=_0x4d3a39[0x0]['end']['nodeBefore'];_0x529d54&&_0x529d54[0x0]&&!0x1===_0x529d54[0x0]['forceValue']&&(_0x11ed06=_0x4d3a39[0x0]['start']['nodeAfter']);const _0x2e9aac=_0x57406f['createRangeIn'](_0x11ed06);if('$graveyard'==_0x2e9aac['root']['rootName'])return;const _0x5d843d=Array['from'](_0x2f3ec0['getRanges']())['map'](_0x18a555=>_0xc9628b['fromRange'](_0x18a555));_0x57406f['setSelection'](_0x2e9aac),_0x2b43e4['commands']['get'](_0x45e675)['refresh'](),_0x529d54['push']({'forceDefaultExecution':!0x0}),_0x2b43e4['execute'](_0x45e675,..._0x529d54);const _0x174f6a=_0x5d843d['filter'](_0x2e6856=>'$graveyard'!=_0x2e6856['root']['rootName']);_0x174f6a['length']>0x0&&_0x57406f['setSelection'](_0x174f6a);for(const _0x102a1b of _0x5d843d)_0x102a1b['detach']();});};}['_getCoordsForCells'](_0x4630be){const _0x2f2381=this['editor']['plugins']['get']('TableUtils');let _0x46cc65=Number['MAX_SAFE_INTEGER'],_0x3f7cb6=Number['MIN_SAFE_INTEGER'],_0x2f4366=Number['MAX_SAFE_INTEGER'],_0x9d6d8b=Number['MIN_SAFE_INTEGER'];for(const _0x38d55a of _0x4630be){if('$graveyard'==_0x38d55a['root']['rootName'])continue;const {row:_0x5698e7,column:_0x303b54}=_0x2f2381['getCellLocation'](_0x38d55a),_0x4ea79d=_0x38d55a['hasAttribute']('rowspan')?_0x38d55a['getAttribute']('rowspan')-0x1:0x0,_0x45c347=_0x38d55a['hasAttribute']('colspan')?_0x38d55a['getAttribute']('colspan')-0x1:0x0;_0x46cc65=_0x5698e7<_0x46cc65?_0x5698e7:_0x46cc65,_0x3f7cb6=_0x5698e7+_0x4ea79d>_0x3f7cb6?_0x5698e7+_0x4ea79d:_0x3f7cb6,_0x2f4366=_0x303b54<_0x2f4366?_0x303b54:_0x2f4366,_0x9d6d8b=_0x303b54+_0x45c347>_0x9d6d8b?_0x303b54+_0x45c347:_0x9d6d8b;}return{'minRow':_0x46cc65,'maxRow':_0x3f7cb6,'minColumn':_0x2f4366,'maxColumn':_0x9d6d8b};}['_setupColumnsRowsFixing'](){const _0x58c5e2=this['editor'],_0x31645f=_0x58c5e2['plugins']['get']('TrackChangesEditing'),_0x638595=_0x58c5e2['plugins']['get']('TableUtils');_0x58c5e2['model']['document']['on']('change:data',()=>{const _0x576279=Array['from'](_0x58c5e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9ef4b8,data:_0x52e15c}of _0x576279){const {group:_0x22e104,id:_0x1348a0,subType:_0x584a2a}=_0x31645f['_splitMarkerName'](_0x9ef4b8);if('suggestion'!=_0x22e104)continue;if(null!=_0x52e15c['oldRange'])continue;const _0x44ddea=_0x31645f['getSuggestion'](_0x1348a0);this['_tablePostFixingSubtypes']['includes'](_0x584a2a)&&this['_tableSuggestions']['add'](_0x44ddea);}},{'priority':'low'});const _0x34bc7b=(_0x130a34,_0x1c2b8c)=>{let _0x1b3577=!0x1;const _0x4ed75f=_0x1c2b8c['createRangeOn'](_0x130a34),_0x48386e=_0x130a34['findAncestor']('table'),_0x578df2=_0x638595['getCellLocation'](_0x130a34);for(const _0x3cebf1 of this['_tableSuggestions']){const _0xbba6ff=_0x3cebf1['subType'],_0x340c3e=_0xbba6ff['startsWith']('tablePaste'),_0x274e63=_0xbba6ff['substr'](_0x340c3e?0xa:0x5),_0x3e51bb=_0x274e63['toLowerCase'](),_0x425450=_0x3e51bb['substr'](0x0,0x3)+'span',_0x451528='min'+_0x274e63,_0x21ca76='max'+_0x274e63;if(!_0x3cebf1['isInContent'])continue;if(_0x48386e!=_0x3cebf1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3cebf1['isIntersectingWithRange'](_0x4ed75f))continue;const _0x4c5e19=_0x130a34['hasAttribute'](_0x425450)?_0x130a34['getAttribute'](_0x425450)-0x1:0x0,_0x35a66c=this['_getSuggestionCoords'](_0x3cebf1),_0x5d68d2=_0x35a66c[_0x451528],_0x355ea1=_0x35a66c[_0x21ca76];_0x5d68d2<=_0x578df2[_0x3e51bb]&&_0x578df2[_0x3e51bb]+_0x4c5e19<=_0x355ea1&&(_0x3cebf1['addRange'](_0x4ed75f),_0x1b3577=!0x0);}return _0x1b3577;};_0x58c5e2['model']['document']['registerPostFixer'](_0x49ae00=>{let _0x1bfbbe=!0x1;for(const _0x4ad9af of _0x58c5e2['model']['document']['differ']['getChanges']())if('insert'==_0x4ad9af['type']){if('tableRow'==_0x4ad9af['name']){for(const _0x324bc6 of _0x4ad9af['position']['nodeAfter']['getChildren']())_0x1bfbbe=_0x1bfbbe||_0x34bc7b(_0x324bc6,_0x49ae00);}else'tableCell'==_0x4ad9af['name']&&(_0x1bfbbe=_0x1bfbbe||_0x34bc7b(_0x4ad9af['position']['nodeAfter'],_0x49ae00));}return _0x1bfbbe;});}['_getSuggestionCoords'](_0x18d764){return this['_getCoordsForCells'](_0x18d764['getRanges']()['map'](_0x3ef01f=>_0x3ef01f['start']['nodeAfter']));}}function _e(_0x14612a){return Array['from'](new Set(_0x14612a)['values']());}class $t extends _0x24003c{static get['requires'](){return[Nt];}['afterInit'](){const _0x2d52ec=this['editor'],_0x2ba453=_0x2d52ec['model']['document']['selection'],_0x5cb7f2=_0x2d52ec['locale'];if(!_0x2d52ec['plugins']['has']('TableEditing'))return;const _0x1980b3=_0x2d52ec['plugins']['get']('TrackChangesEditing'),_0x27017c=_0x2d52ec['plugins']['get']('TableUtils'),_0x1645d4=_0x2d52ec['plugins']['get'](Nt);_0x1645d4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1980b3['enableCommand']('mergeTableCells',()=>{const _0x3a63f5=_0x27017c['getSelectionAffectedTableCells'](_0x2d52ec['model']['document']['selection']);_0x2d52ec['model']['change'](()=>{_0x1980b3['markMultiRangeBlockFormat'](_0x3a63f5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d52ec['commands']['get']('mergeTableCells')['on']('execute',(_0x556bc1,_0x51a07c)=>{_0x2d52ec['commands']['get']('trackChanges')['value']&&(_0x51a07c['length']>0x0&&_0x51a07c[_0x51a07c['length']-0x1]&&_0x51a07c[_0x51a07c['length']-0x1]['forceDefaultExecution']||_0x1980b3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x556bc1['stop']());},{'priority':'highest'});for(const _0x14a6f0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x34573e=_0x2d52ec['commands']['get'](_0x14a6f0);_0x1980b3['enableCommand'](_0x14a6f0,()=>{const _0x3b380c=_0x2d52ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13772b=>_0x13772b['is']('element','tableCell')),_0x6315be=_0x34573e['value'];_0x2d52ec['model']['change'](()=>{_0x1980b3['markMultiRangeBlockFormat']([_0x3b380c,_0x6315be],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x111ba1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30a909=_0x2d52ec['commands']['get'](_0x111ba1);_0x1980b3['enableCommand'](_0x111ba1,()=>{const _0xc2739c=_0x27017c['getSelectionAffectedTableCells'](_0x2d52ec['model']['document']['selection'])[0x0],_0xae23c7=_0xc2739c['findAncestor']('table'),{column:_0x21a4db,row:_0x5f3099}=_0x27017c['getCellLocation'](_0xc2739c);let _0x462c29=[];if('horizontally'==_0x30a909['direction']){const _0x7c3a87=_0x27017c['createTableWalker'](_0xae23c7,{'startRow':_0x5f3099,'endRow':_0x5f3099,'includeAllSlots':!0x0});_0x462c29=Array['from'](_0x7c3a87)['map'](_0x527270=>_0x527270['cell']);}else{const _0x40beb8=_0x27017c['createTableWalker'](_0xae23c7,{'column':_0x21a4db,'includeAllSlots':!0x0});_0x462c29=Array['from'](_0x40beb8)['map'](_0x1a3968=>_0x1a3968['cell']);}_0x2d52ec['model']['change'](_0x20fc77=>{_0x1980b3['markBlockFormat'](_0x20fc77['createRangeOn'](_0xc2739c),{'commandName':_0x111ba1,'commandParams':[]},_0x462c29,_0x111ba1);});});}_0x1980b3['descriptionFactory']['registerDescriptionCallback'](_0x2033e7=>{if('formatBlock'!=_0x2033e7['type']&&'formatInline'!=_0x2033e7['type'])return;const {data:_0x4ae59f}=_0x2033e7;return _0x4ae59f&&'mergeTableCells'==_0x4ae59f['commandName']?{'type':'format','content':o(_0x5cb7f2,'*Merge\x20cells*')}:void 0x0;}),_0x1980b3['descriptionFactory']['registerDescriptionCallback'](_0x32bae8=>{if('formatBlock'!=_0x32bae8['type']&&'formatInline'!=_0x32bae8['type'])return;const {data:_0x68d04f}=_0x32bae8;return _0x68d04f?'splitTableCellVertically'==_0x68d04f['commandName']?{'type':'format','content':o(_0x5cb7f2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x68d04f['commandName']?{'type':'format','content':o(_0x5cb7f2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x31a5b3=_0x1645d4['_acceptFormatSuggestionCallbackFactory']();for(const _0x23133d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1980b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23133d,'accept',_0x31a5b3);for(const _0x103f83 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1980b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x103f83,'accept',_0x31a5b3);_0x1980b3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xedb56e=>{_0x2d52ec['model']['change'](_0x3585c3=>{const _0x186657=Array['from'](_0x2ba453['getRanges']())['map'](_0x34ee31=>_0xc9628b['fromRange'](_0x34ee31));_0x3585c3['setSelection'](_0xedb56e),_0x2d52ec['commands']['get']('mergeTableCells')['refresh'](),_0x2d52ec['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x525480=_0x186657['filter'](_0x22c37b=>'$graveyard'!=_0x22c37b['root']['rootName']);_0x525480['length']>0x0&&_0x3585c3['setSelection'](_0x525480);for(const _0x361a5c of _0x186657)_0x361a5c['detach']();});});for(const _0x64a72 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5afe77=_0x2d52ec['commands']['get'](_0x64a72);_0x5afe77['on']('set:isEnabled',(_0x5abadc,_0x3d9fea,_0x335144)=>{if(_0x335144){const _0x2510da=_0x2d52ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x75cf5d=>_0x75cf5d['is']('element','tableCell'));this['_areMergableCells'](_0x5afe77['value'],_0x2510da)||(_0x5abadc['return']=!0x1,_0x5abadc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd9a473=this['editor']['commands']['get']('mergeTableCells'),_0x1ff711=this['editor']['plugins']['get']('TableUtils');if(!_0xd9a473['isEnabled'])return!0x1;const _0x571c7d=_0x1ff711['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x357b0b of _0x571c7d)for(const _0x2a3429 of _0x571c7d)if(_0x357b0b!=_0x2a3429&&!this['_areMergableCells'](_0x357b0b,_0x2a3429))return!0x1;return!0x0;}['_areMergableCells'](_0x20c79a,_0x4bcfc9){const _0x4ff69d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b07a3=this['editor']['model']['createRangeOn'](_0x20c79a),_0x267386=this['editor']['model']['createRangeOn'](_0x4bcfc9),_0x48bd38=new Set(),_0xcffab3=new Set();for(const _0x5e9370 of _0x4ff69d['getSuggestions']())if(('insertion'==_0x5e9370['type']||'deletion'==_0x5e9370['type']||'mergeTableCells'==_0x5e9370['subType'])&&_0x5e9370['isInContent']){for(const _0x17c16b of _0x5e9370['getRanges']())_0x17c16b['containsRange'](_0x2b07a3,!0x0)&&_0x48bd38['add'](_0x5e9370['type']+':'+_0x5e9370['author']['id']),_0x17c16b['containsRange'](_0x267386,!0x0)&&_0xcffab3['add'](_0x5e9370['type']+':'+_0x5e9370['author']['id']);}if(_0x48bd38['size']!=_0xcffab3['size'])return!0x1;for(const _0x53b583 of _0x48bd38)if(!_0xcffab3['has'](_0x53b583))return!0x1;return!0x0;}}class vt extends _0x24003c{static get['requires'](){return[Nt];}['afterInit'](){const _0x2df4ce=this['editor'];if(!_0x2df4ce['plugins']['has']('TableEditing'))return;const _0x34c497=_0x2df4ce['locale'],_0x26c19a=_0x2df4ce['plugins']['get']('TrackChangesEditing');_0x26c19a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x26c19a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x26c19a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x34c497,'FORMAT_HEADER_ROW')),_0x26c19a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x34c497,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x29a5d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bb6ba=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x29a5d1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2bb6ba),_0x29a5d1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2bb6ba),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1c2d59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3345=this['editor']['plugins']['get']('TableUtils');function _0x318413({showActiveMarker:_0x1f9857=!0x0,setDataAttribute:_0x1b1f82=!0x0}={}){return(_0x1325c3,_0x320c35,_0x54a8d2)=>{const {type:_0x5644cd,id:_0x16022b}=_0x1c2d59['_splitMarkerName'](_0x320c35['markerName']);if(!_0x1c2d59['hasSuggestion'](_0x16022b))return;const _0x1bfca1=_0x1c2d59['getSuggestion'](_0x16022b),_0x535e5a=_0x1bfca1['data'];if('formatBlock'!=_0x1bfca1['type']||!_0x535e5a||'setTableColumnHeader'!=_0x535e5a['commandName'])return;if(_0x320c35['item'])return void _0x1325c3['stop']();if(!_0x54a8d2['consumable']['consume'](_0x320c35['markerRange'],_0x1325c3['name']))return;const _0x21beaf=_0x320c35['markerRange']['start']['nodeAfter'],_0x3d5eb2=_0x320c35['markerRange']['end']['nodeBefore'],_0x5212ee=_0x21beaf['parent']['parent'],{column:_0x27e962}=_0x1b3345['getCellLocation'](_0x21beaf),{column:_0x48f214}=_0x1b3345['getCellLocation'](_0x3d5eb2);for(let _0x2311a5=_0x27e962;_0x2311a5<=_0x48f214;_0x2311a5++){const _0x4eba56=_0x1b3345['createTableWalker'](_0x5212ee,{'column':_0x2311a5,'includeAllSlots':!0x1});for(const _0x25bce9 of _0x4eba56){const _0x55038b=_0x25bce9['cell'],_0x10ee0d=_0x54a8d2['mapper']['toViewElement'](_0x55038b);_0x54a8d2['writer']['addClass']('ck-suggestion-marker-'+_0x5644cd,_0x10ee0d),_0x1b1f82&&_0x54a8d2['writer']['setAttribute']('data-suggestion',_0x16022b,_0x10ee0d),_0x54a8d2['mapper']['bindElementToMarker'](_0x10ee0d,_0x320c35['markerName']),_0x1f9857&&(_0x1c2d59['activeMarkers']['includes'](_0x320c35['markerName'])?_0x54a8d2['writer']['addClass']('ck-suggestion-marker--active',_0x10ee0d):_0x54a8d2['writer']['removeClass']('ck-suggestion-marker--active',_0x10ee0d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x318413(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bd712,_0x2b7b96,_0x2fcdf9)=>{_0x2fcdf9['options']['showSuggestionHighlights']&&_0x318413({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2bd712,_0x2b7b96,_0x2fcdf9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3f4308,_0x138836,_0x13136f)=>{const {type:_0x35b941,id:_0x4c8176}=_0x1c2d59['_splitMarkerName'](_0x138836['markerName']);if(!_0x1c2d59['hasSuggestion'](_0x4c8176))return;const _0x7ff8fe=_0x1c2d59['getSuggestion'](_0x4c8176),_0x16af56=_0x7ff8fe['data'];if('formatBlock'!=_0x7ff8fe['type']||!_0x16af56||'setTableColumnHeader'!=_0x16af56['commandName'])return;const _0x4ab0a2=_0x13136f['mapper']['markerNameToElements'](_0x138836['markerName']);if(_0x4ab0a2){for(const _0x2d9e1d of _0x4ab0a2)_0x13136f['writer']['removeClass']('ck-suggestion-marker-'+_0x35b941,_0x2d9e1d),_0x13136f['writer']['removeClass']('ck-suggestion-marker--active',_0x2d9e1d),_0x13136f['writer']['removeAttribute']('data-suggestion',_0x2d9e1d),_0x13136f['mapper']['unbindElementFromMarkerName'](_0x2d9e1d,_0x138836['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x34cd01=this['editor'],_0x199117=_0x34cd01['locale'];function _0x4ab920(_0x262137){return{'type':'format','content':o(_0x199117,'*Format:*\x20%0',_0x262137)};}_0x34cd01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2778e1=>{if('formatBlock'!=_0x2778e1['type'])return;const {data:_0x35e904}=_0x2778e1;if(_0x35e904){if('setTableRowHeader'==_0x35e904['commandName']){const _0xb88b8f=_0x35e904['commandParams'][0x0]['forceValue'];return _0x4ab920(o(_0x199117,_0xb88b8f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x35e904['commandName']){const _0x228163=_0x35e904['commandParams'][0x0]['forceValue'];return _0x4ab920(o(_0x199117,_0x228163?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x24003c{['afterInit'](){const _0x24e16c=this['editor'],_0x462b8b=_0x24e16c['locale'],_0x44783a=_0x24e16c['plugins']['get']('TrackChangesEditing');function _0xdb5587(_0x335ab8){return{'type':'format','content':''+o(_0x462b8b,'*Set\x20table\x20type:*\x20%0',_0x335ab8)};}_0x24e16c['plugins']['has']('TableLayout')&&(_0x44783a['enableCommand']('insertTableLayout'),_0x44783a['enableDefaultAttributesIntegration']('tableType'),_0x44783a['descriptionFactory']['registerElementLabel'](_0xe0d861=>_0xe0d861['is']('element','table')&&'layout'===_0xe0d861['getAttribute']('tableType'),_0x52e668=>o(_0x462b8b,'ELEMENT_LAYOUT_TABLE',_0x52e668)),_0x44783a['descriptionFactory']['registerDescriptionCallback'](_0x36f68e=>{const {data:_0x40e574}=_0x36f68e;if(_0x40e574&&'tableType'==_0x40e574['key'])switch(_0x40e574['newValue']){case'layout':return _0xdb5587(o(_0x462b8b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xdb5587(o(_0x462b8b,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x48254b=>[_0x48254b,null]));class Bt extends _0x24003c{static get['requires'](){return[Nt];}['afterInit'](){const _0x5427d9=this['editor'];if(!_0x5427d9['plugins']['has']('TableClipboard'))return;const _0x3f8975=_0x5427d9['plugins']['get']('TrackChangesEditing'),_0x2d7b4b=_0x5427d9['plugins']['get']('TableUtils'),_0x1a0524=_0x5427d9['plugins']['get'](Nt),_0x4d5ff0=_0x5427d9['plugins']['get']('TableClipboard'),_0x5368f9=_0x5427d9['plugins']['get']('TableSelection'),_0x2e8c4e=_0x5427d9['plugins']['get'](_0x6b37e5);_0x1a0524['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5427d9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5427d9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f3ded=null,_0x2987b6=!0x1;_0x2e8c4e['on']('contentInsertion',(_0x4eb292,_0x8fce5c)=>{_0x2987b6='paste'===_0x8fce5c['method'];}),_0x5427d9['model']['on']('insertContent',(_0x3de447,_0x170caf)=>{if(!_0x2987b6&&null===_0x5368f9['getSelectedTableCells']())return;const [_0x463d49,_0x25e062]=_0x170caf,_0x55adb2=_0x170caf[_0x170caf['length']-0x1];_0x55adb2&&_0x55adb2['forceDefaultExecution']||_0x3f8975['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4cd51c,_0x545188,_0x59ab28,_0x45727b,_0x464d6f){if(_0x545188&&!_0x545188['is']('documentSelection'))return!0x1;const _0x42f24a=_0x464d6f['getTableIfOnlyTableInContent'](_0x4cd51c,_0x59ab28);if(!_0x42f24a||!Oe(_0x42f24a,void 0x0,_0x45727b))return!0x1;const _0x569cad=_0x45727b['getSelectionAffectedTableCells'](_0x59ab28['document']['selection']);if(!_0x569cad['length'])return!0x1;const _0x42fee2=_0x569cad[0x0]['findAncestor']('table'),_0x2293fc=_0x45727b['getRowIndexes'](_0x569cad),_0x1e46bb=_0x45727b['getColumnIndexes'](_0x569cad),_0x4ed339={'startRow':_0x2293fc['first'],'endRow':_0x2293fc['last'],'startColumn':_0x1e46bb['first'],'endColumn':_0x1e46bb['last']};return 0x1==_0x569cad['length']&&(_0x4ed339['endRow']+=_0x45727b['getRows'](_0x42f24a)-0x1,_0x4ed339['endColumn']+=_0x45727b['getColumns'](_0x42f24a)-0x1),Oe(_0x42fee2,_0x4ed339,_0x45727b);}(_0x463d49,_0x25e062,_0x5427d9['model'],_0x2d7b4b,_0x4d5ff0)&&(_0x3de447['stop'](),_0x5f3ded={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5427d9['model']['change'](()=>{_0x5427d9['model']['insertContent'](_0x170caf[0x0],_0x170caf[0x1],_0x170caf[0x2],{'forceDefaultExecution':!0x0});const _0x5d9184=_0x579527(),{rowInsertionRanges:_0x5662d8,columnInsertionRanges:_0x7fb596,insertionRanges:_0xb7ebc3,deletionRanges:_0x310364,cells:_0x2de68a}=_0x5f3ded;_0x5662d8['length']&&_0x3f8975['markMultiRangeInsertion'](_0x5662d8,'tablePasteRow',{'tablePasteChainId':_0x5d9184}),_0x7fb596['length']&&_0x3f8975['markMultiRangeInsertion'](_0x7fb596,'tablePasteColumn',{'tablePasteChainId':_0x5d9184}),_0xb7ebc3['length']&&(_0x3f8975['markMultiRangeInsertion'](_0xb7ebc3,'tablePaste',{'tablePasteChainId':_0x5d9184,'skipNestingCheck':!0x0}),_0xb7ebc3['forEach'](_0x2759eb=>_0x2759eb['detach']?.())),_0x310364['length']&&(_0x3f8975['markMultiRangeDeletion'](_0x310364,'tablePaste',{'tablePasteChainId':_0x5d9184,'skipNestingCheck':!0x0}),_0x310364['forEach'](_0x1263e3=>_0x1263e3['detach']?.()));const _0x35625b=_0x3f8975['markMultiRangeBlockFormat'](_0x2de68a['map'](({element:_0x31a819})=>_0x31a819),{'formatGroupId':_0x579527()},[],'tablePasteCell',{'tablePasteChainId':_0x5d9184});if(_0x35625b){const _0xf11a8e=_0x35625b['getMarkers'](),_0x128c7d=[];for(const {element:_0x4d086b,attributes:_0x5e2c15}of _0x2de68a){if(!_0x5e2c15)continue;const _0xb45cba=_0x5427d9['model']['createRangeOn'](_0x4d086b),_0x4d5bbc=_0xf11a8e['find'](_0x448c51=>_0x448c51['getRange']()['isEqual'](_0xb45cba));_0x4d5bbc&&_0x128c7d['push']([_0x4d5bbc['name'],_0x5e2c15]);}_0x128c7d['length']&&_0x35625b['setAttribute']('markerAttributes',Object['fromEntries'](_0x128c7d));}_0x5f3ded=null;}));},{'priority':_0x5ea6fa['high']+0xa}),_0x2e8c4e['on']('contentInsertion',()=>{_0x2987b6=!0x1;},{'priority':'lowest'}),_0x5427d9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x49aab2,_0x4e6597)=>{const [_0x332ddf,_0x2027f8,,_0x406bd3]=_0x4e6597;if(!_0x5f3ded)return;_0x49aab2['stop']();const _0x23cb8b=_0x332ddf['cell'],_0x1ecef6=_0x2027f8,_0x100dcd=Be(_0x23cb8b),_0x44dc6b=Be(_0x1ecef6);_0x49aab2['return']=_0x23cb8b;let _0x1af816=null,_0x1f03c8=null;if(_0x44dc6b||_0x100dcd){if(_0x100dcd&&!_0x44dc6b){_0x406bd3['remove'](_0x23cb8b['getChild'](0x0));for(const _0x95ce0d of Array['from'](_0x1ecef6['getChildren']()))_0x406bd3['insert'](_0x95ce0d,_0x23cb8b,'end');const _0x43aa9e=_0x5f3ded['rowInsertionIndexes']['includes'](_0x332ddf['row']),_0x393581=_0x5f3ded['columnInsertionIndexes']['includes'](_0x332ddf['column']);_0x43aa9e||_0x393581||(_0x1af816=_0xc9628b['fromRange'](_0x406bd3['createRangeIn'](_0x23cb8b)));}else _0x44dc6b&&!_0x100dcd&&(_0x1f03c8=_0x406bd3['createRangeIn'](_0x23cb8b));}else{const _0xa36e5e=_0x406bd3['createElement']('tableCellSuggestion'),_0x234b09=_0x406bd3['createElement']('tableCellSuggestion');_0x406bd3['wrap'](_0x406bd3['createRangeIn'](_0x23cb8b),_0x234b09),_0x406bd3['insert'](_0xa36e5e,_0x23cb8b,0x0);for(const _0x5a7f67 of Array['from'](_0x1ecef6['getChildren']()))_0x406bd3['insert'](_0x5a7f67,_0xa36e5e,'end');_0x1af816=_0xc9628b['fromRange'](_0x406bd3['createRangeOn'](_0xa36e5e)),_0x1f03c8=_0xc9628b['fromRange'](_0x406bd3['createRangeOn'](_0x234b09));}const _0x1b0894=Array['from'](_0x1ecef6['getAttributes']())['filter'](([_0x13f61e])=>Re['includes'](_0x13f61e));_0x5f3ded['cells']['push']({'element':_0x23cb8b,'attributes':_0x1b0894['length']?Object['fromEntries'](_0x1b0894):null}),_0x1af816&&_0x5f3ded['insertionRanges']['push'](_0x1af816),_0x1f03c8&&_0x5f3ded['deletionRanges']['push'](_0x1f03c8);},{'priority':'high'}),_0x2d7b4b['on']('insertColumns',(_0x38b420,_0x440ab9)=>{const [_0x36b691,_0x3b1c0f={}]=_0x440ab9;if(!_0x5f3ded)return;const _0x58ea7c=_0x3b1c0f['at']||0x0,_0x1ef2a7=_0x3b1c0f['columns']||0x1;_0x5f3ded['columnInsertionIndexes']=new Array(_0x1ef2a7)['fill'](_0x58ea7c)['map']((_0x1582ab,_0x457106)=>_0x1582ab+_0x457106);for(const {cell:_0x8fb1c}of _0x2d7b4b['createTableWalker'](_0x36b691,{'startColumn':_0x58ea7c,'endColumn':_0x58ea7c+_0x1ef2a7-0x1}))_0x5f3ded['columnInsertionRanges']['push'](_0x5427d9['model']['createRangeOn'](_0x8fb1c));},{'priority':'low'}),_0x2d7b4b['on']('insertRows',(_0x4e0c1e,_0x294aaf)=>{const [_0x6e863c,_0x1a9518={}]=_0x294aaf;if(!_0x5f3ded)return;const _0x58c2ae=_0x1a9518['at']||0x0,_0x25df2b=_0x1a9518['rows']||0x1;_0x5f3ded['rowInsertionIndexes']=new Array(_0x25df2b)['fill'](_0x58c2ae)['map']((_0x443841,_0x107580)=>_0x443841+_0x107580);for(const {cell:_0x45a849}of _0x2d7b4b['createTableWalker'](_0x6e863c,{'startRow':_0x58c2ae,'endRow':_0x58c2ae+_0x25df2b-0x1}))_0x5f3ded['rowInsertionRanges']['push'](_0x5427d9['model']['createRangeOn'](_0x45a849));},{'priority':'low'}),_0x3f8975['descriptionFactory']['registerDescriptionCallback'](_0x476ad6=>{if(_0x476ad6['subType']&&_0x476ad6['subType']['startsWith']('tablePaste'))return _0x476ad6['previous']?{}:{'type':'insertion','content':o(_0x5427d9['locale'],'*Replace\x20table\x20cells*')};});const _0x15f99c=()=>!0x1;for(const _0x4b2947 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f8975['_suggestionFactory']['registerCustomCallback']('insertion',_0x4b2947,'join',_0x15f99c),_0x3f8975['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b2947,'join',_0x15f99c),_0x3f8975['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b2947,'join',_0x15f99c);_0x3f8975['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x15f99c),_0x3f8975['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x6587c0,_0x355a1f,_0x51ce87)=>{const _0x2519fa=_0x6587c0['map'](_0x52bdc0=>_0x52bdc0['getContainedElement']())['filter'](_0x552a91=>_0x552a91),_0x5d8a74=new Map(_0x2519fa['map'](_0x38a481=>[_0x38a481,null]));if(_0x5f3ded){for(const {element:_0x322af4,attributes:_0x35bcaa}of _0x5f3ded['cells'])_0x35bcaa&&_0x5d8a74['set'](_0x322af4,_0x35bcaa);}else{if(_0x51ce87&&_0x51ce87['markerAttributes'])for(const [_0x4d1e66,_0x15b8de]of Object['entries'](_0x51ce87['markerAttributes'])){const _0x41d1ef=_0x5427d9['model']['markers']['get'](_0x4d1e66),_0x58e146=_0x41d1ef?_0x41d1ef['getRange']()['getContainedElement']():null;_0x58e146&&_0x5d8a74['set'](_0x58e146,_0x15b8de);}}_0x5427d9['model']['change'](_0x5ee542=>{for(const [_0x2d82b8,_0x28f631]of _0x5d8a74)_0x5ee542['setAttributes']({...Ae,..._0x28f631},_0x2d82b8);});});const _0x5a2ee5=(_0x20ece5,_0x17230a)=>{_0x3f8975['_suggestionFactory']['registerCustomCallback'](_0x20ece5,'tablePaste',_0x17230a,(_0x15a5eb,_0x441337,_0x308566)=>{_0x5427d9['model']['change'](_0x3a58a2=>{const _0x44dfd3=[];for(const _0x1ec20f of _0x15a5eb){const _0x4bd72d=_0x1ec20f['start']['nodeAfter'];_0x4bd72d['is']('element','tableCellSuggestion')&&_0x44dfd3['push'](_0x4bd72d);}_0x3f8975['_suggestionFactory']['getSuggestionCallback'](_0x20ece5,null,_0x17230a)(_0x15a5eb,_0x441337,_0x308566);for(const _0x15d54a of _0x44dfd3)'$graveyard'!=_0x15d54a['root']['rootName']&&_0x3a58a2['unwrap'](_0x15d54a);});});};_0x5a2ee5('insertion','accept'),_0x5a2ee5('insertion','discard'),_0x5a2ee5('deletion','accept'),_0x5a2ee5('deletion','discard'),_0x3f8975['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2bb8e2=>{const _0x1c3e92=_0x2bb8e2['map'](_0x2a395d=>_0x2a395d['getContainedElement']()),_0x249d92=_0x1c3e92[0x0]['findAncestor']('table'),{minRow:_0x23be79,maxRow:_0x20f1b2}=_0x1a0524['_getCoordsForCells'](_0x1c3e92);_0x2d7b4b['removeRows'](_0x249d92,{'at':_0x23be79,'rows':_0x20f1b2-_0x23be79+0x1});}),_0x3f8975['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3f37d5=>{const _0x42ac42=_0x3f37d5['map'](_0x384604=>_0x384604['getContainedElement']()),_0x16ce7d=_0x42ac42[0x0]['findAncestor']('table'),{minColumn:_0x5c4a92,maxColumn:_0x4439d9}=_0x1a0524['_getCoordsForCells'](_0x42ac42);_0x2d7b4b['removeColumns'](_0x16ce7d,{'at':_0x5c4a92,'columns':_0x4439d9-_0x5c4a92+0x1});});const _0x2c3e02=(_0x21a0d4,_0x9fc7d)=>{if(!_0x9fc7d['subType']||!_0x9fc7d['subType']['startsWith']('tablePaste'))return;const _0x467199=_0x9fc7d['attributes']['tablePasteChainId'],_0x2814b8=_0x3f8975['getSuggestions']()['filter'](_0x50fe78=>_0x50fe78['isInContent']&&_0x50fe78['attributes']&&_0x50fe78['attributes']['tablePasteChainId']==_0x467199);_0x2814b8['length']&&_0x9fc7d['getAllAdjacentSuggestions']()['length']!=_0x2814b8['length']&&_0x2814b8['reduce']((_0x52b3bd,_0x5eafe3)=>(_0x52b3bd['next']=_0x5eafe3,_0x5eafe3['previous']=_0x52b3bd,_0x5eafe3));};function _0x509eea(_0x2aa5e6,_0x1b0881=!0x0){const {id:_0x530308,authorId:_0x359ed1}=_0x3f8975['_splitMarkerName'](_0x2aa5e6['markerName']),_0x35b59f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x417c7d=_0x3f8975['activeMarkers']['includes'](_0x2aa5e6['markerName']);return _0x417c7d&&_0x35b59f['push']('ck-suggestion-marker--active'),{'classes':_0x35b59f,'attributes':{'data-suggestion':_0x530308,'data-author-id':_0x359ed1},'priority':_0x417c7d&&_0x1b0881?0xbc2:0xbb8};}_0x3f8975['on']('suggestionLoaded',_0x2c3e02,{'priority':'high'}),_0x3f8975['on']('suggestionUnloaded',_0x2c3e02,{'priority':'high'}),_0x5427d9['model']['document']['registerPostFixer'](()=>{let _0x3ea1a9=!0x1;const _0x147f19=Array['from'](_0x5427d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57b200,data:_0xaf7d89}of _0x147f19){const {group:_0x51eb28,type:_0x3a41f6,id:_0x4780d3}=_0x3f8975['_splitMarkerName'](_0x57b200);if('suggestion'!=_0x51eb28||'deletion'!=_0x3a41f6||_0xaf7d89['oldRange'])continue;if(!_0x3f8975['hasSuggestion'](_0x4780d3))continue;const _0x5d4b4f=_0x3f8975['getSuggestion'](_0x4780d3)['getRanges'](),_0x565058=_0x5427d9['plugins']['get']('Users')['me'];for(const _0x40fbce of _0x3f8975['getSuggestions']()){if(!_0x40fbce['isInContent']||_0x40fbce['author']!=_0x565058)continue;if('formatBlock'!=_0x40fbce['type']||'tablePasteCell'!=_0x40fbce['subType'])continue;if(_0x40fbce['getRanges']()['every'](_0xdeabb8=>_0x5d4b4f['some'](_0x52f890=>_0x52f890['containsRange'](_0xdeabb8,!0x0)))){for(const _0x549d18 of _0x40fbce['getAllAdjacentSuggestions']())_0x549d18['isInContent']&&(_0x549d18['discard'](),_0x3ea1a9=!0x0);}}}return _0x3ea1a9;}),_0x5427d9['model']['document']['registerPostFixer'](_0x224c94=>{const _0x59210b=_0x5427d9['commands']['get']('redo');if(!_0x59210b||!_0x59210b['_createdBatches']['has'](_0x224c94['batch']))return!0x1;let _0x2486c0=!0x1;const _0x4b76db=_0x5427d9['plugins']['get']('Users')['me'],_0x3cfe6f=_0x5427d9['model']['document']['differ']['getChanges'](),_0x4f345b=Array['from'](_0x5427d9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x24d386,data:_0x35edf9})=>{const {group:_0x4042d8,subType:_0x2b87d9,authorId:_0x39654d}=_0x3f8975['_splitMarkerName'](_0x24d386);return'suggestion'==_0x4042d8&&'tablePaste'==_0x2b87d9&&_0x39654d==_0x4b76db['id']&&!_0x35edf9['oldRange'];});for(const _0x41c34f of _0x3cfe6f){if('insert'!=_0x41c34f['type']||'tableCellSuggestion'!=_0x41c34f['name']||0x1!=_0x41c34f['length'])continue;const _0x46eb7b=_0x224c94['createRange'](_0x41c34f['position'],_0x41c34f['position']['getShiftedBy'](0x1));if(!_0x4f345b['find'](({data:_0x18edcb})=>_0x18edcb['newRange']['isEqual'](_0x46eb7b))){for(const {name:_0x5558e9,data:_0x3d7fda}of _0x4f345b)if(_0x46eb7b['containsRange'](_0x3d7fda['newRange'])){_0x224c94['updateMarker'](_0x5558e9,{'range':_0x46eb7b}),_0x2486c0=!0x0;break;}}}return _0x2486c0;}),_0x5427d9['model']['document']['registerPostFixer'](_0x5d9e2f=>{let _0x1e2cc6=!0x1;const _0x3d38f5=_0x5427d9['plugins']['get']('Users')['me'],_0x5c763a=_0x3f8975['getSuggestions']()['filter'](_0x1fc78b=>_0x1fc78b['isInContent']&&_0x1fc78b['author']==_0x3d38f5),_0x13efa6=new Set(),_0x93c5af=new Set();for(const _0xccff2c of _0x5c763a)if('tablePaste'==_0xccff2c['subType'])for(const _0x2c5633 of _0xccff2c['getMarkers']()){const _0x14204d=_0x2c5633['getRange']()['getContainedElement']();if(_0x14204d){if(_0x14204d['is']('element','tableCellSuggestion')&&Be(_0x14204d)){_0xccff2c['removeMarker'](_0x2c5633['name']),_0x13efa6['add'](_0x14204d),_0x1e2cc6=!0x0;const _0x27c718=_0x14204d['nextSibling'],_0x316f9a=_0x14204d['previousSibling'],_0x583d34=_0x27c718&&_0x27c718['is']('element','tableCellSuggestion'),_0x51a9bf=_0x316f9a&&_0x316f9a['is']('element','tableCellSuggestion');_0x583d34&&!_0x13efa6['has'](_0x27c718)&&_0x93c5af['add'](_0x27c718),_0x51a9bf&&!_0x13efa6['has'](_0x316f9a)&&_0x93c5af['add'](_0x316f9a);}else _0x14204d['is']('element','paragraph')&&_0x14204d['isEmpty']&&(_0xccff2c['removeMarker'](_0x2c5633['name']),_0x1e2cc6=!0x0);}}else{if('tablePasteCell'==_0xccff2c['subType']){if(!_0xccff2c['attributes']||!_0xccff2c['attributes']['tablePasteChainId'])continue;const _0x30180e=_0xccff2c['attributes']['markerAttributes'];if(_0x30180e&&Object['keys'](_0x30180e)['length'])continue;const _0x3a9b14=_0xccff2c['attributes']['tablePasteChainId'];let _0x47ede7=!0x0,_0x48256a=!0x0;for(const _0x7f56bf of _0x5c763a)if(_0x7f56bf['subType']&&_0x7f56bf['subType']['startsWith']('tablePaste')){if(!_0x7f56bf['attributes']['tablePasteChainId']){_0x48256a=!0x1;break;}if(_0x7f56bf['id']!=_0xccff2c['id']&&_0x7f56bf['attributes']['tablePasteChainId']==_0x3a9b14){_0x47ede7=!0x1;break;}}_0x48256a&&_0x47ede7&&(_0xccff2c['removeMarkers'](),_0x1e2cc6=!0x0);}}for(const _0x44aa5e of _0x13efa6)_0x5d9e2f['remove'](_0x44aa5e);for(const _0x3d96bf of _0x93c5af)_0x5d9e2f['unwrap'](_0x3d96bf);return _0x1e2cc6;}),_0x5427d9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35fec1=>_0x509eea(_0x35fec1),'converterPriority':'high'}),_0x5427d9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5ecf55,_0xff5668)=>_0xff5668['options']['showSuggestionHighlights']?_0x509eea(_0x5ecf55,!0x1):null,'converterPriority':'high'});const _0x226714=_0x5427d9['editing']['view'];this['listenTo'](_0x226714['document'],'clipboardOutput',(_0x221223,_0x2e3461)=>{const _0x4fa1f0=[];for(const _0x1ea077 of _0x226714['createRangeIn'](_0x2e3461['content'])['getItems']())_0x1ea077['is']('element','suggestion-td')&&_0x4fa1f0['push'](_0x1ea077);_0x226714['change'](_0x4f79ec=>{for(const _0x2a7085 of _0x4fa1f0)_0x4f79ec['move'](_0x4f79ec['createRangeIn'](_0x2a7085),_0x4f79ec['createPositionBefore'](_0x2a7085)),_0x4f79ec['remove'](_0x2a7085);});});}}function Be(_0x36ffc0){if(_0x36ffc0['isEmpty'])return!0x0;const _0x2eb8f9=_0x36ffc0['getChild'](0x0);return _0x2eb8f9['is']('element','paragraph')&&_0x2eb8f9['isEmpty'];}function Oe(_0x60cfc0,_0x1e6921={},_0x21e0a1){for(const {isAnchor:_0x2e81fa,cellHeight:_0x41a7aa,cellWidth:_0x411d77}of _0x21e0a1['createTableWalker'](_0x60cfc0,{'includeAllSlots':!0x0,..._0x1e6921}))if(!_0x2e81fa||0x1!=_0x41a7aa||0x1!=_0x411d77)return!0x1;return!0x0;}class Ot extends _0x24003c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37c9ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x37c9ca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37c9ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37c9ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37c9ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37c9ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37c9ca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x39533d,_0x389ae4){const _0x29ab3c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579a84=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4baeb3=_0x389ae4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x59374d=_0x579a84['getColumnGroupElement'](_0x4baeb3);let _0x590e36=_0x59374d?_0x579a84['getTableColumnsWidths'](_0x59374d):null,_0x4ef04c=_0x4baeb3['getAttribute']('tableWidth')||null;const _0x58ebec=_0x389ae4['tableWidth']||_0x4ef04c,_0x1d4f8a=_0x389ae4['columnWidths']||_0x590e36,_0x5b94ab=this['editor']['plugins']['get']('Users')['me'];for(const _0x388b30 of _0x29ab3c['getSuggestions']()){const _0x3a6183=_0x388b30['getContainedElement']();if('resizeTable'===_0x388b30['subType']&&_0x3a6183===_0x4baeb3){_0x388b30['author']!==_0x5b94ab&&_0x388b30['discard']();const _0x34f9e7=_0x388b30['data']['commandParams'];_0x4ef04c=_0x34f9e7[0x0]['tableWidth'],_0x590e36=_0x34f9e7[0x0]['columnWidths'];break;}}_0x39533d({'table':_0x4baeb3,'tableWidth':_0x58ebec,'columnWidths':_0x1d4f8a}),_0x29ab3c['markBlockFormat'](_0x4baeb3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ef04c,'columnWidths':_0x590e36}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x33bcf0){if('formatBlock'!=_0x33bcf0['type']&&'formatInline'!=_0x33bcf0['type'])return;const {data:_0x597f34}=_0x33bcf0;if(_0x597f34&&'resizeTable'===_0x597f34['formatGroupId']){const _0x39a18b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x39a18b)};}}}class xt extends _0x24003c{['afterInit'](){const _0x30835a=this['editor'];_0x30835a['plugins']['has']('Template')&&_0x30835a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x24003c{['afterInit'](){const _0x584fa0=this['editor'];if(!_0x584fa0['commands']['get']('insertTableOfContents'))return;_0x584fa0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x29de15=_0x584fa0['plugins']['get']('TrackChangesEditing'),_0x3cdacd=_0x584fa0['locale'];_0x29de15['descriptionFactory']['registerElementLabel']('tableOfContents',_0x964153=>o(_0x3cdacd,'ELEMENT_TABLE_OF_CONTENTS',_0x964153));}}class Rt extends _0x24003c{['afterInit'](){const _0x1e5070=this['editor'];if(!_0x1e5070['plugins']['has']('Title'))return;const _0x3a5089=_0x1e5070['plugins']['get']('TrackChangesEditing');_0x3a5089['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1e5070['locale'],'ELEMENT_TITLE')),_0x1e5070['model']['document']['registerPostFixer'](_0x44aa9e=>{let _0x590a3e=!0x1;const _0x368082=Array['from'](_0x1e5070['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37af52,data:_0xbf3511}of _0x368082){const {group:_0x4c6ee2}=_0x3a5089['_splitMarkerName'](_0x37af52);if('suggestion'!==_0x4c6ee2||!_0xbf3511['newRange'])continue;const _0x32f4d2=_0xbf3511['newRange'],_0x2cd8b2=_0x32f4d2['end']['nodeBefore'];if(!_0x2cd8b2||!_0x2cd8b2['is']('element','title-content'))continue;if(!_0x32f4d2['start']['isTouching'](_0x32f4d2['end']))continue;const _0x54686e=_0x1e5070['model']['schema']['getNearestSelectionRange'](_0x32f4d2['end'],'forward');if(_0x54686e&&_0x54686e['isCollapsed']){const _0x4c4eb0=_0x44aa9e['createRange'](_0x32f4d2['start'],_0x54686e['start']);_0x4c4eb0['isEqual'](_0x32f4d2)||(_0x44aa9e['updateMarker'](_0x37af52,{'range':_0x4c4eb0}),_0x590a3e=!0x0);}_0x590a3e||(_0x44aa9e['removeMarker'](_0x37af52),_0x590a3e=!0x0);}return _0x590a3e;});}}class Tt extends _0x24003c{['afterInit'](){const _0x809fa8=this['editor'],_0x9cc9b4=_0x809fa8['plugins']['get']('TrackChangesEditing');_0x809fa8['plugins']['has']('Uploadcare')&&(_0x9cc9b4['enableCommand']('uploadcare'),_0x809fa8['plugins']['has']('UploadcareImageEdit')&&(_0x9cc9b4['enableCommand']('uploadcareImageEdit'),_0x9cc9b4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x9cc9b4['descriptionFactory']['registerDescriptionCallback'](_0x3658b3=>{if('attribute'!=_0x3658b3['type'])return;const {data:_0x423005}=_0x3658b3;return _0x423005&&'uploadcareImageId'==_0x423005['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x24003c{['afterInit'](){const _0x200ca6=this['editor'],_0x4fc3f2=_0x200ca6['plugins']['get']('TrackChangesEditing');_0x200ca6['plugins']['has']('UndoEditing')&&(_0x4fc3f2['enableCommand']('undo'),_0x4fc3f2['enableCommand']('redo'));}}class Ut extends _0x24003c{static get['requires'](){return[Nt];}['afterInit'](){const _0x4c02d2=this['editor'];if(!_0x4c02d2['plugins']['has']('TableCaptionEditing'))return;_0x4c02d2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x24003c{['tableProperties'];['tableCellProperties'];constructor(_0x2bdf08){super(_0x2bdf08),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x40758a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2392e6 of this['tableProperties'])_0x40758a['enableCommand'](_0x2392e6,(_0x2ad218,_0x5e0bdd)=>{const _0x54c1ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2392e6,[_0x54c1ee],this['tableProperties'],'tableProperties',_0x2ad218,_0x5e0bdd);});_0x40758a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x40758a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40758a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3f39d8,_0x4571b3)=>this['handleDiscardAction'](this['tableProperties'],_0x3f39d8,_0x4571b3)),_0x40758a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x9184ff of this['tableCellProperties'])_0x40758a['enableCommand'](_0x9184ff,(_0x51c134,_0x14ca4b)=>{const _0x36d944=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x9184ff,_0x36d944,this['tableCellProperties'],'tableCellProperties',_0x51c134,_0x14ca4b);});_0x40758a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x40758a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40758a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x514edb,_0x2a04f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x514edb,_0x2a04f0)),_0x40758a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x40758a['descriptionFactory']['registerDescriptionCallback'](_0x3130c5=>this['handleSuggestionDescription'](_0x3130c5)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x148f67,_0x24f040,_0x3ce5e1,_0x150b87,_0x237dc7,_0xcf2d7c){const _0x4c54e0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xcf2d7c['batch'],()=>{for(const _0xdb22cb of _0x24f040){if(this['_getSuggestion'](_0xdb22cb,_0x150b87))_0x237dc7(_0xcf2d7c);else{const _0x3a62e0={};for(const _0x6a19f3 of _0x3ce5e1){const _0xed2ca7=_0xdb22cb['getAttribute'](_0x6a19f3);void 0x0!==_0xed2ca7&&(_0x3a62e0[_0x6a19f3]=_0xed2ca7);}_0x237dc7(_0xcf2d7c),_0x4c54e0['markBlockFormat'](_0xdb22cb,{'commandParams':[_0x3a62e0]},[],_0x150b87);}}});}['handleDiscardAction'](_0x2086b1,_0x4b2c8a,_0x413f70){const _0x29a358=_0x4b2c8a[0x0]['start']['nodeAfter'],_0x534e8e=_0x413f70['commandParams'][0x0];this['editor']['model']['change'](_0x44beba=>{for(const _0x465f88 of _0x2086b1)void 0x0!==_0x534e8e[_0x465f88]?_0x44beba['setAttribute'](_0x465f88,_0x534e8e[_0x465f88],_0x29a358):_0x44beba['removeAttribute'](_0x465f88,_0x29a358);});}['handleSuggestionDescription'](_0x513cba){if(_0x513cba['data'])switch(_0x513cba['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'](_0x495242,_0x8a51bf){const _0x23e194=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ade8f of _0x23e194['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b0890=_0x5ade8f['getContainedElement']();if(_0x5ade8f['subType']===_0x8a51bf&&_0x5b0890===_0x495242)return _0x5ade8f;}return null;}['_registerTablePropertiesAttributes'](){const _0x1fc975=this['editor']['plugins']['get']('TrackChangesEditing'),_0x407e3e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x316a13 of _0x407e3e){const _0xcff2b=_0x316a13['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1fc975['descriptionFactory']['registerAttributeLabel'](_0x316a13,o(this['editor']['locale'],'FORMAT_'+_0xcff2b));}}}class Ft extends _0x24003c{['afterInit'](){const _0x172667=this['editor'];if(!_0x172667['plugins']['has']('LineHeight'))return;const _0x4bd42f=_0x172667['plugins']['get']('TrackChangesEditing'),_0x4bdb39=_0x172667['locale'];_0x4bd42f['enableDefaultAttributesIntegration']('lineHeight'),_0x4bd42f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4bdb39,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x24003c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x590dd4,_0x5020d0,_0x5cebf1,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ae3ea){super(_0x3ae3ea),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1047d3,_0x98510d,_0x5bf79e,_0x967123)=>{this['_model']['change'](()=>{for(const _0x58f576 of[..._0x967123,..._0x5bf79e])this['_model']['markers']['has'](_0x58f576)&&_0x3ae3ea['editing']['reconvertMarker'](_0x58f576);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3ae3ea['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3ae3ea['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3ae3ea['config']['get']('trackChanges.trackFormatChanges'),_0x3ae3ea['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3ae3ea['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x3ae3ea,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x16c587=this['editor'];_0x16c587['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x24d778,{writer:_0x4cadf0})=>{let _0x5474a6='suggestion:'+_0x24d778['getAttribute']('suggestion-type')+':'+_0x24d778['getAttribute']('id');return _0x24d778['getAttribute']('marker-count')&&(_0x5474a6+=':'+_0x24d778['getAttribute']('marker-count')),_0x4cadf0['createElement']('$marker',{'data-name':_0x5474a6});}}),_0x16c587['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x16c587['model']['document']['registerPostFixer'](_0x242c75=>{let _0x5dc621=!0x1;const _0x13089a=Array['from'](_0x16c587['model']['document']['differ']['getChangedMarkers']()),_0x300ab8=new Set();for(const {name:_0x51ee88,data:_0x29916a}of _0x13089a){const {group:_0x18db95,type:_0x14747d,subType:_0x6d3f45,id:_0x3aab42}=this['_splitMarkerName'](_0x51ee88);if('suggestion'!==_0x18db95)continue;const _0x5fbc62=_0x6d3f45?'suggestion:'+_0x14747d+':'+_0x6d3f45+':'+_0x3aab42:'suggestion:'+_0x14747d+':'+_0x3aab42,_0x2f9e13=_0x16c587['model']['markers']['getMarkersGroup'](_0x5fbc62),_0x51bd9c=_0x16c587['model']['markers']['get'](_0x51ee88),_0x2b86a3=this['_suggestions']['get'](_0x3aab42);if(null!=_0x29916a['newRange']){'formatInline'==_0x14747d&&(_0x5dc621=_0x5dc621||Wt(_0x29916a['newRange'],_0x51ee88,_0x242c75,_0x16c587['model']['schema']));const _0x4c67f2='attribute'==_0x14747d&&this['_isBlockAttribute'](_0x6d3f45['split']('|')[0x0]),_0x34c198='attribute'==_0x14747d&&this['_isInlineAttribute'](_0x6d3f45['split']('|')[0x0]);if(_0x29916a['newRange']['isCollapsed']||'$graveyard'==_0x29916a['newRange']['root']['rootName']||'formatBlock'==_0x14747d&&!Qt(_0x29916a['newRange'])||_0x4c67f2&&!Qt(_0x29916a['newRange'])||_0x34c198&&Xt(_0x29916a['newRange'])||'deletion'==_0x14747d&&Xt(_0x29916a['newRange'])||_0x51bd9c&&Yt(_0x51bd9c,_0x2f9e13))_0x242c75['removeMarker'](_0x51ee88),_0x5dc621=!0x0;else{if(!_0x2b86a3||!_0x2b86a3['isInContent'])continue;if(_0x29916a['newRange']&&_0x29916a['oldRange']&&_0x29916a['newRange']['isEqual'](_0x29916a['oldRange']))continue;_0x300ab8['add'](_0x2b86a3);}}}return _0x300ab8['size']>0x0&&(_0x5dc621=!!this['_joinWithAdjacentSuggestions'](_0x300ab8)||_0x5dc621),_0x5dc621;}),_0x16c587['model']['document']['registerPostFixer'](_0x2c4c94=>{let _0x15eab1=!0x1;for(const _0x3169cd of _0x16c587['model']['document']['differ']['getChanges']())if('insert'==_0x3169cd['type'])for(const _0x52e454 of this['_suggestions']['values']()){if(_0x52e454['isMultiRange']||!_0x52e454['isInContent'])continue;const _0x2d969a='formatBlock'==_0x52e454['type'],_0x383c1f=this['_getAttributeKey'](_0x52e454),_0x248498=_0x383c1f&&this['_isBlockAttribute'](_0x383c1f);if(!_0x2d969a&&!_0x248498)continue;const _0x412f77=_0x52e454['getFirstRange']();if(_0x412f77['start']['parent']!=_0x412f77['end']['parent']&&!_0x412f77['end']['isAtEnd']){const _0x14385f=_0x16c587['model']['createPositionAt'](_0x412f77['start']['nodeAfter'],'end'),_0x29c150=_0x16c587['model']['createRange'](_0x412f77['start'],_0x14385f);_0x2c4c94['updateMarker'](_0x52e454['getFirstMarker'](),{'range':_0x29c150}),_0x15eab1=!0x0;}}return _0x15eab1;}),_0x16c587['model']['document']['registerPostFixer'](_0x597e28=>this['_processAttributeChanges'](_0x597e28)),_0x16c587['model']['document']['registerPostFixer'](_0x242330=>!_0x242330['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x242330)),_0x16c587['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x16c587['model']['document']['on']('change:data',(_0x324a02,_0x199311)=>{if(!_0x199311['isLocal']||_0x199311['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x51ed7c=_0x16c587['model']['document']['differ']['getChanges']();if(0x0==_0x51ed7c['length'])return;const _0x22654e=[],_0x13e675=_0x51ed7c['filter'](_0x154b1b=>'attribute'==_0x154b1b['type']),_0xf03a6=_0x51ed7c['filter'](_0x53d24f=>'insert'==_0x53d24f['type']&&'$text'!=_0x53d24f['name']);for(const _0x19aabd of _0x13e675)this['_isRegisteredAttribute'](_0x19aabd['attributeKey'])&&_0x22654e['push']({'key':_0x19aabd['attributeKey'],'newValue':_0x19aabd['attributeNewValue'],'oldValue':_0x19aabd['attributeOldValue'],'range':Zt(_0x19aabd['range'],_0x16c587['model'])});for(const _0x32a79e of _0xf03a6){if('rename'!=_0x32a79e['action']&&'refresh'!=_0x32a79e['action'])continue;const _0x3635d5=tn(_0x32a79e['position']['nodeAfter'],_0x16c587['model']),_0x58c56c=_0x32a79e['before'];'rename'==_0x32a79e['action']&&_0x22654e['push']({'key':m,'newValue':_0x32a79e['name'],'oldValue':_0x58c56c['name'],'range':_0x3635d5});for(const [_0x8c0961,_0x4d9401]of _0x58c56c['attributes']){if(!this['_isRegisteredAttribute'](_0x8c0961))continue;const _0x4bd043=_0x32a79e['attributes']['get'](_0x8c0961);_0x4d9401!==_0x4bd043&&_0x22654e['push']({'key':_0x8c0961,'newValue':_0x4bd043,'oldValue':_0x4d9401,'range':_0x3635d5});}for(const [_0x3929ca,_0x41219f]of _0x32a79e['attributes'])this['_isRegisteredAttribute'](_0x3929ca)&&(_0x58c56c['attributes']['has'](_0x3929ca)||_0x22654e['push']({'key':_0x3929ca,'newValue':_0x41219f,'oldValue':null,'range':_0x3635d5}));}0x0!=_0x22654e['length']&&_0x16c587['model']['enqueueChange'](_0x199311,_0x231dc3=>{const _0x2d256e=_0x579527();for(const {range:_0x4410df,key:_0x1b2ac8,oldValue:_0x140518,newValue:_0x1282b7}of _0x22654e)this['markAttributeChange'](_0x4410df,_0x1b2ac8,_0x140518,_0x1282b7,{'groupId':_0x2d256e});this['_reduceExistingSuggestions'](_0x231dc3,_0x22654e);});},{'priority':'lowest'}),_0x16c587['model']['markers']['on']('update:suggestion',(_0xef7ccf,_0x179367,_0x471ca1)=>{if(null==_0x471ca1){const {id:_0x25d4ed}=this['_splitMarkerName'](_0x179367['name']),_0x22a95e=this['_suggestions']['get'](_0x25d4ed);_0x22a95e&&_0x22a95e['addMarkerName'](_0x179367['name']);}}),_0x16c587['model']['document']['on']('change:data',()=>{const _0x2b7f33=Array['from'](_0x16c587['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1756c9=>'suggestion'===this['_splitMarkerName'](_0x1756c9['name'])['group']);if(0x0===_0x2b7f33['length'])return;_0x2b7f33['sort']((_0x4596e8,_0x39f73e)=>{const _0x584243=_0x4596e8['data']['oldRange'],_0xdc0bbb=_0x39f73e['data']['oldRange'];return null===_0x584243&&null===_0xdc0bbb?0x0:null===_0x584243&&null!==_0xdc0bbb?-0x1:null!==_0x584243&&null===_0xdc0bbb?0x1:_0x584243['start']['isBefore'](_0xdc0bbb['start'])?-0x1:0x1;});const _0x2f0680=new Set(),_0x5daee2=new Set();for(const {name:_0x4b2a80,data:_0x24220f}of _0x2b7f33){const {id:_0x6a564a}=this['_splitMarkerName'](_0x4b2a80);if(null===_0x24220f['oldRange']){const _0x57c1ce=this['_handleNewSuggestionMarker'](_0x4b2a80);_0x5daee2['add'](_0x57c1ce);}else{const _0x1616a0=this['_suggestions']['get'](_0x6a564a);null!==_0x24220f['newRange']||_0x1616a0['isInContent']?(_0x2f0680['add'](_0x1616a0['head']),_0x5daee2['add'](_0x1616a0)):this['_removeSuggestion'](_0x1616a0);}}_0x5daee2['size']>0x0&&this['_refreshSuggestionsChain'](_0x5daee2);for(const _0x315464 of _0x2f0680)this['fire']('suggestionChanged',_0x315464);}),_0x16c587['model']['on']('applyOperation',(_0x4e2876,_0x3eea4d)=>{const _0x354fdc=_0x3eea4d[0x0];if(!this['_suggestions']['size'])return;if(!_0x354fdc['isDocumentOperation'])return;if(_0x354fdc['batch']['isUndo']||!_0x354fdc['batch']['isLocal'])return;let _0x5c6bb3,_0x1cd185;switch(_0x354fdc['type']){case'insert':_0x5c6bb3=_0x16c587['model']['createPositionAt'](_0x354fdc['position']),_0x1cd185=_0x5c6bb3['getShiftedBy'](_0x354fdc['howMany']);break;case'split':_0x5c6bb3=_0x16c587['model']['createPositionAt'](_0x354fdc['splitPosition']),_0x1cd185=_0x16c587['model']['createPositionAt'](_0x354fdc['moveTargetPosition']);break;case'move':_0x5c6bb3=_0x16c587['model']['createPositionAt'](_0x354fdc['targetPosition']),_0x1cd185=_0x5c6bb3['getShiftedBy'](_0x354fdc['howMany']);break;default:return;}const _0x3c729e=_0x16c587['model']['createRange'](_0x5c6bb3,_0x1cd185);_0x16c587['model']['change'](()=>{for(const {suggestion:_0x5dd0df,meta:_0x310013}of this['_findSuggestions'](_0x3c729e)){if(_0x5dd0df['isMultiRange'])continue;if('formatInline'==_0x5dd0df['type'])continue;const _0x37a823=this['_getAttributeKey'](_0x5dd0df);if(_0x37a823&&this['_isBlockAttribute'](_0x37a823)&&'split'!=_0x354fdc['type'])continue;const _0x15a308=_0x5dd0df['data']&&_0x5dd0df['data']['multipleBlocks'];('formatBlock'!=_0x5dd0df['type']||'split'==_0x354fdc['type']&&!_0x15a308)&&(_0x310013['containsRangeInObject']||'insertion'==_0x5dd0df['type']&&_0x310013['isOwn']||_0x5dd0df['getFirstRange']()['containsRange'](_0x3c729e)&&this['_breakSuggestionMarker'](_0x5dd0df,_0x5c6bb3,_0x1cd185));}});},{'priority':'lowest'}),_0x16c587['model']['on']('deleteContent',(_0x5ba6a4,_0xb22599)=>{const _0x2ebfa0=_0xb22599[0x0],_0x7f2d69=_0xb22599[0x1];if(_0x7f2d69&&_0x7f2d69['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2ebfa0['isCollapsed'])return;const _0x2c412f=_0x16c587['model']['schema'],{start:_0x2cbdf7,end:_0x5ebb46}=_0x2ebfa0['getFirstRange'](),_0x11f9e0=_0x2cbdf7['nodeAfter']&&_0x2c412f['isLimit'](_0x2cbdf7['nodeAfter'])?null:_0x2c412f['getNearestSelectionRange'](_0x2cbdf7,'forward'),_0x2889d5=_0x5ebb46['nodeBefore']&&_0x2c412f['isLimit'](_0x5ebb46['nodeBefore'])?null:_0x2c412f['getNearestSelectionRange'](_0x5ebb46,'backward'),_0x1b306f=_0x16c587['model']['createRange'](_0x11f9e0?_0x11f9e0['start']:_0x2cbdf7,_0x2889d5?_0x2889d5['end']:_0x5ebb46);_0x16c587['model']['change'](_0x577efc=>{this['markDeletion'](_0x1b306f);const _0xf7cb4a=_0x16c587['model']['schema']['getNearestSelectionRange'](_0x1b306f['start']);_0x2ebfa0['is']('documentSelection')?_0x577efc['setSelection'](_0xf7cb4a):_0x2ebfa0['setTo'](_0xf7cb4a);}),_0x5ba6a4['stop']();},{'priority':_0x5ea6fa['normal']+0xa}),_0x16c587['model']['on']('insertContent',(_0x30f9ec,_0x8c1981)=>{const _0x2c2e2e=_0x8c1981[_0x8c1981['length']-0x1];_0x2c2e2e&&_0x2c2e2e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x16c587['model']['change'](()=>{let _0x29e213=_0x16c587['model']['insertContent'](_0x8c1981[0x0],_0x8c1981[0x1],_0x8c1981[0x2],{'forceDefaultExecution':!0x0});if(!_0x29e213)return;_0x30f9ec['return']=_0x29e213['clone']();const _0x363be4=_0x29e213['end']['nodeBefore'],_0x18279c=_0x16c587['model']['schema'];_0x363be4&&_0x18279c['isBlock'](_0x363be4)&&!_0x18279c['isObject'](_0x363be4)&&(_0x29e213=_0x16c587['model']['createRange'](_0x29e213['start'],_0x16c587['model']['createPositionAt'](_0x363be4,'end'))),this['markInsertion'](_0x29e213);}),_0x30f9ec['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x992d96=new v(_0x16c587,this['_suggestions']);_0x16c587['commands']['add']('acceptSuggestion',_0x992d96),this['enableCommand']('acceptSuggestion');const _0x10de8a=new D(_0x16c587,this['_suggestions']);_0x16c587['commands']['add']('discardSuggestion',_0x10de8a),this['enableCommand']('discardSuggestion'),_0x16c587['commands']['add']('acceptAllSuggestions',new B(_0x16c587,_0x992d96,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x16c587['commands']['add']('discardAllSuggestions',new B(_0x16c587,_0x10de8a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x16c587['commands']['add']('acceptSelectedSuggestions',new O(_0x16c587,_0x992d96,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x16c587['commands']['add']('discardSelectedSuggestions',new O(_0x16c587,_0x10de8a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23f805=_0x16c587['plugins']['get']('CommentsRepository');this['listenTo'](_0x23f805,'addComment',(_0x5e04c0,{threadId:_0x1c789d})=>{const _0x10053a=this['_suggestions']['get'](_0x1c789d);_0x10053a&&_0x10053a['commentThread']&&0x1===_0x10053a['commentThread']['length']&&this['_updateSuggestionData'](_0x1c789d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23f805,'removeComment',(_0x917bf,{threadId:_0x54150d})=>{const _0x235e29=this['_suggestions']['get'](_0x54150d);_0x235e29&&_0x235e29['commentThread']&&!_0x235e29['commentThread']['length']&&this['_updateSuggestionData'](_0x54150d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4baf61){const _0x414d9a=_0xbe8860([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]),_0x3a6fd5=0x3d8d0df,_0x6fcb49=0x3dfaa1f^_0x3a6fd5,_0x4bd79d=window[_0xbe8860([0x44,0x61,0x74,0x65])][_0xbe8860([0x6e,0x6f,0x77])](),_0x23d392=_0x4baf61[_0xbe8860([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3751d4=new window[(_0xbe8860([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e115e=>{_0x23d392[_0xbe8860([0x6f,0x6e,0x63,0x65])](_0xbe8860([0x72,0x65,0x61,0x64,0x79]),_0x3e115e);}),_0x2ee398={[_0xbe8860([0x6b,0x74,0x79])]:_0xbe8860([0x45,0x43]),[_0xbe8860([0x75,0x73,0x65])]:_0xbe8860([0x73,0x69,0x67]),[_0xbe8860([0x63,0x72,0x76])]:_0xbe8860([0x50,0x2d,0x32,0x35,0x36]),[_0xbe8860([0x78])]:_0xbe8860([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]),[_0xbe8860([0x79])]:_0xbe8860([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]),[_0xbe8860([0x61,0x6c,0x67])]:_0xbe8860([0x45,0x53,0x32,0x35,0x36])},_0x13cdb1=_0x23d392[_0xbe8860([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbe8860([0x67,0x65,0x74])](_0xbe8860([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf961c2(){let _0x5a0c8a,_0x530cf5=null,_0x16af9e=null;try{if(_0x13cdb1==_0xbe8860([0x47,0x50,0x4c]))return _0xbe8860([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a0c8a=_0x4cffa8(),!_0x5a0c8a)return _0xbe8860([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a0c8a[_0xbe8860([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16af9e=_0x29673a(_0x5a0c8a[_0xbe8860([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a0c8a[_0xbe8860([0x6a,0x74,0x69])])),await _0x2a408b()?_0x4bc7c3()?_0x216f2a()?_0xbe8860([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36dbe3()?(_0x5a0c8a[_0xbe8860([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbe8860([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x530cf5=_0x4b6948(_0xbe8860([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a0c8a[_0xbe8860([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbe8860([0x74,0x72,0x69,0x61,0x6c])&&(_0x530cf5=_0x4b6948(_0xbe8860([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d5507()):_0xbe8860([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbe8860([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbe8860([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbe8860([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x216f2a(){const _0x47c7f0=[_0xbe8860([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbe8860([0x74,0x72,0x69,0x61,0x6c])][_0xbe8860([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0c8a[_0xbe8860([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bd79d/0x3e8:0xe10*_0x6fcb49;return _0x5a0c8a[_0xbe8860([0x65,0x78,0x70])]<_0x47c7f0;}function _0x4bc7c3(){const _0x53a97e=_0x5a0c8a[_0xbe8860([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53a97e)return!0x1;if(_0x53a97e[_0xbe8860([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe8860([0x2a])))return!0x0;if(_0x53a97e[_0xbe8860([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe8860([0x54,0x43])))return!0x0;if(_0x53a97e[_0xbe8860([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe8860([0x52,0x54,0x43]))){if(_0x254f9c())return!0x0;if(_0x38f0d2()||_0x4412f8())return!0x0;}return!0x1;}function _0x36dbe3(){const _0x143073=_0x5a0c8a[_0xbe8860([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x143073||0x0==_0x143073[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x566833}=new URL(window[_0xbe8860([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x143073[_0xbe8860([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x566833))return!0x0;const _0x2aa869=_0x566833[_0xbe8860([0x73,0x70,0x6c,0x69,0x74])](_0xbe8860([0x2e]));return _0x143073[_0xbe8860([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16a125=>_0x16a125[_0xbe8860([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe8860([0x2a])))[_0xbe8860([0x6d,0x61,0x70])](_0x48d536=>_0x48d536[_0xbe8860([0x73,0x70,0x6c,0x69,0x74])](_0xbe8860([0x2e])))[_0xbe8860([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5842db=>_0x5842db[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2aa869[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbe8860([0x6d,0x61,0x70])](_0x3abf74=>Array(_0x2aa869[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3abf74[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbe8860([0x66,0x69,0x6c,0x6c])](_0x3abf74[0x0]===_0xbe8860([0x2a])?_0xbe8860([0x2a]):'')[_0xbe8860([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3abf74))[_0xbe8860([0x73,0x6f,0x6d,0x65])](_0x49faf2=>_0x2aa869[_0xbe8860([0x65,0x76,0x65,0x72,0x79])]((_0x486935,_0x4c9786)=>_0x49faf2[_0x4c9786]===_0x486935||_0x49faf2[_0x4c9786]===_0xbe8860([0x2a])));}function _0x3d5507(){return _0x530cf5&&_0x16af9e?new window[(_0xbe8860([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cbd18,_0x47bc90)=>{_0x530cf5[_0xbe8860([0x74,0x68,0x65,0x6e])](_0x5cbd18,_0x47bc90),_0x16af9e[_0xbe8860([0x74,0x68,0x65,0x6e])](_0x3eb3f8=>{_0x3eb3f8!=_0xbe8860([0x56,0x61,0x6c,0x69,0x64])&&_0x5cbd18(_0x3eb3f8);},_0x47bc90);}):_0x530cf5||_0x16af9e||_0xbe8860([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29673a(_0xaebb2,_0x497891){return new window[(_0xbe8860([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539a92=>{if(_0x67f482())return _0x539a92(_0xbe8860([0x56,0x61,0x6c,0x69,0x64]));_0x1ef9eb(),_0x23d392[_0xbe8860([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbe8860([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x247663=!0x1;const _0x1e1f09=_0x579527();function _0x36e373(_0x1ede46){return!!_0x1ede46&&(typeof _0x1ede46===_0xbe8860([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ede46===_0xbe8860([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ede46[_0xbe8860([0x74,0x68,0x65,0x6e])]===_0xbe8860([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ede46[_0xbe8860([0x63,0x61,0x74,0x63,0x68])]===_0xbe8860([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb4c770(_0x1c3556){_0x5dad5d(_0x1c3556)[_0xbe8860([0x74,0x68,0x65,0x6e])](_0x118b16=>{if(!_0x118b16||_0x118b16[_0xbe8860([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbe8860([0x6f,0x6b]))return _0xbe8860([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c233e(_0x418e90(_0x1e1f09+_0x497891))!=_0x118b16[_0xbe8860([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbe8860([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbe8860([0x56,0x61,0x6c,0x69,0x64]);})[_0xbe8860([0x74,0x68,0x65,0x6e])](_0x4189d8=>(_0x497d75(),_0x4189d8),()=>{const _0x4cf460=_0x38dec4();return null==_0x4cf460?(_0x497d75(),_0xbe8860([0x56,0x61,0x6c,0x69,0x64])):_0xbe8860(_0x4bd79d-_0x4cf460>(0x27d454df^_0x3a6fd5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbe8860([0x74,0x68,0x65,0x6e])](_0x539a92)[_0xbe8860([0x63,0x61,0x74,0x63,0x68])](()=>{_0x539a92(_0xbe8860([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13f327=0x3ee3e5f^_0x3a6fd5;function _0x497d75(){const _0x142c47=_0xbe8860([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c233e(_0x418e90(_0xaebb2)),_0x40cf74=_0x1477b1(_0x4c233e(window[_0xbe8860([0x4d,0x61,0x74,0x68])][_0xbe8860([0x63,0x65,0x69,0x6c])](_0x4bd79d/_0x13f327)));window[_0xbe8860([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbe8860([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x142c47,_0x40cf74);}function _0x38dec4(){const _0x49a511=_0xbe8860([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c233e(_0x418e90(_0xaebb2)),_0xdd362f=window[_0xbe8860([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbe8860([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49a511);return _0xdd362f?window[_0xbe8860([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1477b1(_0xdd362f),0x10)*_0x13f327:null;}function _0x5dad5d(_0x11fee6){return new window[(_0xbe8860([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x272ac4,_0x59451f)=>{_0x11fee6[_0xbe8860([0x74,0x68,0x65,0x6e])](_0x272ac4,_0x59451f),window[_0xbe8860([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59451f,0x3d9041f^_0x3a6fd5);});}}_0x23d392[_0xbe8860([0x6f,0x6e])](_0xbe8860([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34b864,_0x3b0016)=>{if(_0x3b0016[0x0]!=_0xaebb2)return _0x539a92(_0xbe8860([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b0016[0x1]={..._0x3b0016[0x1],[_0xbe8860([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e1f09};},{[_0xbe8860([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbe8860([0x68,0x69,0x67,0x68])}),_0x23d392[_0xbe8860([0x6f,0x6e])](_0xbe8860([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x455fe6=>{_0x36e373(_0x455fe6[_0xbe8860([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x247663=!0x0,_0xb4c770(_0x455fe6[_0xbe8860([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbe8860([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbe8860([0x6c,0x6f,0x77])}),_0x3751d4[_0xbe8860([0x74,0x68,0x65,0x6e])](()=>{_0x247663||_0x539a92(_0xbe8860([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x67f482(){return _0x23d392[_0xbe8860([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbe8860([0x76,0x69,0x65,0x77])][_0xbe8860([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbe8860([0x61,0x75,0x74,0x6f]);}function _0x1ef9eb(){_0x23d392[_0xbe8860([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbe8860([0x76,0x69,0x65,0x77])][_0xbe8860([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbe8860([0x61,0x75,0x74,0x6f]);}}function _0x4b6948(_0x512437){const _0xac115e=[new window[(_0xbe8860([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127eda=>setTimeout(_0x127eda,0x3d1ee13^_0x3a6fd5)),_0x3751d4[_0xbe8860([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbe8860([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53ea29=>{let _0x407307=0x0;_0x23d392[_0xbe8860([0x6d,0x6f,0x64,0x65,0x6c])][_0xbe8860([0x6f,0x6e])](_0xbe8860([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32293f,_0x3cf75f)=>{_0x3cf75f[0x0][_0xbe8860([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x407307++,_0x407307==(0x3d8d127^_0x3a6fd5)&&(_0x53ea29(),_0x32293f[_0xbe8860([0x6f,0x66,0x66])]());});}))];return window[_0xbe8860([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbe8860([0x72,0x61,0x63,0x65])](_0xac115e)[_0xbe8860([0x74,0x68,0x65,0x6e])](()=>_0x512437);}async function _0x2e8d29(){await _0x3751d4,_0x23d392[_0xbe8860([0x6d,0x6f,0x64,0x65,0x6c])][_0xbe8860([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5de238,_0x23d392[_0xbe8860([0x6d,0x6f,0x64,0x65,0x6c])][_0xbe8860([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5de238,_0x23d392[_0xbe8860([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbe8860([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x254f9c(){return _0x297334(_0xbe8860([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d19b4(_0xbe8860([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xbe8860([0x73,0x74,0x61,0x74,0x65])]==_0xbe8860([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x38f0d2(){return _0x297334(_0xbe8860([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 _0x4412f8(){return _0x297334(_0xbe8860([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5c1714(_0x2e8837){const _0x3f09f0=_0x2283da();_0x23d392[_0x3f09f0]=_0xbe8860([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e8837,_0x2e8837!=_0xbe8860([0x56,0x61,0x6c,0x69,0x64])&&_0x2e8d29();}function _0x2283da(){const _0x300d94=window[_0xbe8860([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbe8860([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbe8860([0x6e,0x6f,0x77])]())[_0xbe8860([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbe8860([0x2e]),'');let _0x15f851=_0xbe8860([0x52]);for(let _0x3b02a9=0x0;_0x3b02a9<_0x300d94[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b02a9+=0x2){let _0x1e6fab=window[_0xbe8860([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x300d94[_0xbe8860([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b02a9,_0x3b02a9+0x2));_0x1e6fab>=_0x414d9a[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e6fab-=_0x414d9a[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15f851+=_0x414d9a[_0x1e6fab];}return _0x15f851;}function _0x4cffa8(){const _0x2d009c=_0x13cdb1[_0xbe8860([0x73,0x70,0x6c,0x69,0x74])](_0xbe8860([0x2e]));if(0x3!=_0x2d009c[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57bdf1(_0x2d009c[0x1]);function _0x57bdf1(_0x4b6fe6){const _0x4af312=_0x1737cc(_0x4b6fe6);return _0x4af312&&_0x3877b1()?_0x4af312:null;function _0x3877b1(){const _0x55f999=_0x4af312[_0xbe8860([0x6a,0x74,0x69])],_0x774f96=window[_0xbe8860([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55f999[_0xbe8860([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55f999[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a848f={..._0x4af312,[_0xbe8860([0x6a,0x74,0x69])]:_0x55f999[_0xbe8860([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55f999[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a848f[_0xbe8860([0x76,0x63])],_0x418e90(_0x4a848f)==_0x774f96;}}}async function _0x2a408b(){let _0x543fbf=!0x0;try{const _0x1cb1ab=_0x13cdb1[_0xbe8860([0x73,0x70,0x6c,0x69,0x74])](_0xbe8860([0x2e])),[_0x69a191,_0x242b2b,_0x572736]=_0x1cb1ab;return _0x56b14e(_0x69a191),await _0x3cbca2(_0x69a191,_0x242b2b,_0x572736),_0x543fbf;}catch{return!0x1;}function _0x56b14e(_0x17488a){const _0x5d0dd4=_0x1737cc(_0x17488a);_0x5d0dd4&&_0x5d0dd4[_0xbe8860([0x61,0x6c,0x67])]==_0xbe8860([0x45,0x53,0x32,0x35,0x36])||(_0x543fbf=!0x1);}async function _0x3cbca2(_0x3fa881,_0x48aa43,_0x1d4cc5){const _0x33e5dd=window[_0xbe8860([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbe8860([0x66,0x72,0x6f,0x6d])](_0x38bd5b(_0x1d4cc5),_0x7fc05a=>_0x7fc05a[_0xbe8860([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a595c=new window[(_0xbe8860([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbe8860([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3fa881+_0xbe8860([0x2e])+_0x48aa43),_0x293a78=window[_0xbe8860([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbe8860([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x293a78)return;const _0x1239b0=await _0x293a78[_0xbe8860([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbe8860([0x6a,0x77,0x6b]),_0x2ee398,{[_0xbe8860([0x6e,0x61,0x6d,0x65])]:_0xbe8860([0x45,0x43,0x44,0x53,0x41]),[_0xbe8860([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbe8860([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbe8860([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x293a78[_0xbe8860([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbe8860([0x6e,0x61,0x6d,0x65])]:_0xbe8860([0x45,0x43,0x44,0x53,0x41]),[_0xbe8860([0x68,0x61,0x73,0x68])]:{[_0xbe8860([0x6e,0x61,0x6d,0x65])]:_0xbe8860([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1239b0,_0x33e5dd,_0x4a595c)||(_0x543fbf=!0x1);}}function _0x1737cc(_0x41a53f){return _0x41a53f[_0xbe8860([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbe8860([0x65,0x79]))?JSON[_0xbe8860([0x70,0x61,0x72,0x73,0x65])](_0x38bd5b(_0x41a53f)):null;}function _0x38bd5b(_0x4039f8){return window[_0xbe8860([0x61,0x74,0x6f,0x62])](_0x4039f8[_0xbe8860([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbe8860([0x2b]))[_0xbe8860([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbe8860([0x2f])));}function _0x418e90(_0x5a76af){let _0x5acada=0x1505;function _0x791c0a(_0x51f363){for(let _0x3eb440=0x0;_0x3eb440<_0x51f363[_0xbe8860([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3eb440++){const _0x160e30=_0x51f363[_0xbe8860([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3eb440);_0x5acada=(_0x5acada<<0x5)+_0x5acada+_0x160e30,_0x5acada&=_0x5acada;}}function _0x23e718(_0x207b32){Array[_0xbe8860([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x207b32)?_0x207b32[_0xbe8860([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23e718):_0x207b32&&typeof _0x207b32==_0xbe8860([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbe8860([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x207b32)[_0xbe8860([0x73,0x6f,0x72,0x74])]()[_0xbe8860([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28df03,_0x3455f0])=>{_0x791c0a(_0x28df03),_0x23e718(_0x3455f0);}):_0x791c0a(window[_0xbe8860([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x207b32));}return _0x23e718(_0x5a76af),_0x5acada>>>0x0;}function _0x4c233e(_0x58b2ce){return _0x58b2ce[_0xbe8860([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbe8860([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbe8860([0x30]));}function _0x1477b1(_0x2e95d6){return _0x2e95d6[_0xbe8860([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbe8860([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbe8860([0x6a,0x6f,0x69,0x6e])]('');}function _0x297334(_0x4be92a){return _0x23d392[_0xbe8860([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbe8860([0x68,0x61,0x73])](_0x4be92a);}function _0x4d19b4(_0x1ec12a){return _0x23d392[_0xbe8860([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbe8860([0x67,0x65,0x74])](_0x1ec12a);}function _0x5de238(){}function _0xbe8860(_0x2baab8){return _0x2baab8['map'](_0x39b3f3=>String['fromCharCode'](_0x39b3f3))['join']('');}_0x5c1714(await _0xf961c2());}(this);}set['adapter'](_0x1cd39c){if(this['_adapter'])throw new _0x45e9c9('track-changes-adapter-already-set',this);this['_adapter']=_0x1cd39c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2160bf=!0x1,toJSON:_0xaf7b4e=!0x1}={}){const _0x4c8766=[];for(const _0x551d61 of this['_suggestions']['values']())_0x2160bf&&!_0x551d61['isInContent']||_0x4c8766['push'](_0x551d61);return _0xaf7b4e?_0x4c8766['map'](_0x33a5f0=>_0x33a5f0['toJSON']()):_0x4c8766;}['getSuggestion'](_0x51c4ea){const _0x49b07b=this['_suggestions']['get'](_0x51c4ea);if(!_0x49b07b)throw new _0x45e9c9('track-changes-suggestion-not-found',this);return _0x49b07b;}['hasSuggestion'](_0x122a7b){return this['_suggestions']['has'](_0x122a7b);}['addSuggestionData'](_0xd5b89d){const {authorId:_0xa70ecb,id:_0x241655,originalSuggestionId:_0x5b2170,attributes:_0x2c1e55}=_0xd5b89d,[_0x30d9fe,_0x1d18f6]=_0xd5b89d['type']['split'](':'),_0x4edf8f=this['_suggestions']['get'](_0x241655)||this['_createSuggestion'](_0x30d9fe,_0x1d18f6,_0x241655,_0xa70ecb,_0x2c1e55,_0x5b2170);if(this['_addThreadToSuggestion'](_0x4edf8f),this['_checkSuggestionCorrectness'](_0x4edf8f,_0x30d9fe,_0x1d18f6||null,_0xa70ecb),_0x4edf8f['createdAt']=_0xd5b89d['createdAt'],_0x4edf8f['_isDataLoaded']=!0x0,_0x2c1e55&&_0x2c1e55['@external']){const _0x1a5fe1=_0x2c1e55['@external'],_0x116c45=this['_getExternalAuthor'](_0x1a5fe1['authorName']);_0x4edf8f['authoredAt']=_0x1a5fe1['createdAt'],_0x4edf8f['author']=_0x116c45,_0x4edf8f['isExternal']=!0x0;}else _0x4edf8f['authoredAt']=_0xd5b89d['createdAt'];switch(_0xd5b89d['data']&&(_0x4edf8f['data']=_0xd5b89d['data']),_0xd5b89d['attributes']&&(_0x4edf8f['attributes']=_0xd5b89d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4edf8f['_saved']=!0x0),this['_suggestionState']['get'](_0x4edf8f)){case'notReady':this['_suggestionState']['set'](_0x4edf8f,'dataReady');break;case'markerReady':_0x4edf8f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4edf8f])),this['_refreshSuggestionsChain'](new Set([_0x4edf8f])),this['_suggestionState']['set'](_0x4edf8f,'ready'),this['fire']('suggestionLoaded',_0x4edf8f)):this['_suggestionState']['set'](_0x4edf8f,'removed');}return _0x4edf8f;}['acceptSuggestion'](_0x3cc332){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27d54e of _0x3cc332['getAllAdjacentSuggestions']())_0x27d54e['accept']();});});}['discardSuggestion'](_0x4655b4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x389fa6 of _0x4655b4['getAllAdjacentSuggestions']())_0x389fa6['discard']();});});}['enableCommand'](_0x32dbe9,_0x1f0c8c){const _0x4543fe=this['editor']['commands']['get'](_0x32dbe9);if(!_0x4543fe)throw new _0x45e9c9('track-changes-command-not-found',this,{'commandName':_0x32dbe9});if(this['_enabledCommands']['has'](_0x4543fe))throw new _0x45e9c9('track-changes-enable-command-twice',this,{'commandName':_0x32dbe9});this['_enabledCommands']['add'](_0x4543fe),_0x1f0c8c&&_0x4543fe['on']('execute',(_0x283432,_0x167386)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x167386['length']>0x0&&_0x167386[_0x167386['length']-0x1]&&_0x167386[_0x167386['length']-0x1]['forceDefaultExecution']?_0x167386['pop']():(_0x283432['return']=_0x1f0c8c((..._0x106ea1)=>_0x4543fe['execute'](..._0x106ea1,{'forceDefaultExecution':!0x0}),..._0x167386),_0x283432['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x564e00){let _0x3006ce,_0xb6312;const _0x343837=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3006ce=_0x564e00();}catch(_0xc54da7){_0xb6312=_0xc54da7;}return _0x343837||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb6312&&_0x45e9c9['rethrowUnexpectedError'](_0xb6312,this),_0x3006ce;}['markInsertion'](_0x1521c7,_0x47549b=null,_0x28321f={}){if(_0x1521c7['isCollapsed'])return null;const _0x9c814c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x28321f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c2070,meta:_0x4953a8}of this['_findSuggestions'](_0x1521c7,'insertion'))if(_0x4953a8['isOwn']){if(!_0x4953a8['isNextTo']){if(_0x4953a8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x5c2070,_0x28321f))continue;return _0x5c2070;}if(sn(_0x5c2070,_0x28321f))return _0x5c2070;this['_breakSuggestionMarker'](_0x5c2070,_0x1521c7['start'],_0x1521c7['end']);break;}if(_0x47549b==_0x5c2070['subType']&&sn(_0x5c2070,_0x28321f)){const _0x1dda30=_0x5c2070['getFirstRange']();return _0x1dda30['start']['isEqual'](_0x1521c7['end'])?this['_setSuggestionRange'](_0x5c2070,this['_model']['createRange'](_0x1521c7['start'],_0x1dda30['end'])):this['_setSuggestionRange'](_0x5c2070,this['_model']['createRange'](_0x1dda30['start'],_0x1521c7['end'])),_0x5c2070;}}const _0x553467=_0x579527(),_0x575f01=_0x9c814c['id'],_0x4bcc1d=_0x47549b?'insertion:'+_0x47549b:'insertion',_0xb9db77=this['_setSuggestionData']({'id':_0x553467,'type':_0x4bcc1d,'createdAt':new Date(),'authorId':_0x575f01,'attributes':_0x28321f});return this['_addSuggestionMarker'](_0x4bcc1d,_0x553467,_0x575f01,_0x1521c7),_0xb9db77;}['markMultiRangeInsertion'](_0x48940e,_0x19cb5e='multi',_0x9d4dd1={}){const _0x30e094=this['editor']['plugins']['get']('Users')['me'],_0x1dc1d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x19cb5e,'join');this['_trackingSessionId']&&(_0x9d4dd1['trackingSessionId']=this['_trackingSessionId']);for(const _0x40bc56 of this['getSuggestions']())if(_0x40bc56['author']['id']==_0x30e094['id']&&'insertion'==_0x40bc56['type']&&_0x40bc56['subType']==_0x19cb5e&&sn(_0x40bc56,_0x9d4dd1)&&(_0x1dc1d3(_0x40bc56['getRanges'](),_0x48940e)||_0x1dc1d3(_0x48940e,_0x40bc56['getRanges']()))){for(const _0x57d520 of _0x48940e)_0x40bc56['addRange'](_0x57d520);return _0x40bc56;}for(const {suggestion:_0x2e81de,meta:_0x4116c5}of this['_findSuggestions'](_0x48940e,'insertion')){if(!_0x4116c5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4116c5['containsRangeInObject'])continue;if(!sn(_0x2e81de,_0x9d4dd1))continue;let _0x24f780=!0x0;for(const _0x501a2b of _0x2e81de['getRanges']())for(const _0x3fa2df of _0x48940e)if(!_0x501a2b['containsRange'](_0x3fa2df)){_0x24f780=!0x1;break;}if(_0x24f780)return _0x2e81de;}const _0xc4e675=_0x579527(),_0x28fab9=_0x30e094['id'],_0x24cc2f='insertion:'+_0x19cb5e,_0x8f4039=this['_setSuggestionData']({'id':_0xc4e675,'type':_0x24cc2f,'createdAt':new Date(),'authorId':_0x28fab9,'attributes':_0x9d4dd1});for(const _0x3a3219 of _0x48940e)this['_addSuggestionMarker'](_0x24cc2f,_0xc4e675,_0x28fab9,_0x3a3219,x['getMultiRangeId']());return _0x8f4039;}['markInlineFormat'](_0x3109b3,_0x55bcf4,_0x6c44d=null,_0x12f7fd={}){if(_0x6c44d=_0x6c44d||Ht(_0x55bcf4),_0x3109b3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x12f7fd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4ed9f9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6c44d,'accept');return this['forceDefaultExecution'](()=>_0x4ed9f9([_0x3109b3],_0x55bcf4,_0x12f7fd)),null;}const _0x5d256c=this['editor']['plugins']['get']('Users')['me'],_0x47a11d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x669bdd,meta:_0x586c2d}of this['_findSuggestions'](_0x3109b3,'insertion'))_0x586c2d['isOwn']&&!_0x586c2d['isInsideObject']&&_0x47a11d['push'](..._0x669bdd['getRanges']());}const _0x5762fb=function(_0xd0df66,_0x277bfe){const _0x16bf97=[];for(const _0xe72aa7 of _0x277bfe){const _0x582b63=_0xd0df66['getIntersection'](_0xe72aa7);_0x582b63&&_0x16bf97['push'](_0x582b63);}return _0x16bf97;}(_0x3109b3,_0x47a11d),_0x3afa5c=function(_0x35ff9d,_0x49ff45){const _0x271bfb=[_0x35ff9d];for(const _0x4b0d39 of _0x49ff45){let _0x42b762=0x0;for(;_0x42b762<_0x271bfb['length'];){const _0x2537a3=_0x271bfb[_0x42b762]['getDifference'](_0x4b0d39);_0x271bfb['splice'](_0x42b762,0x1,..._0x2537a3),_0x42b762+=_0x2537a3['length'];}}return _0x271bfb;}(_0x3109b3,_0x47a11d);_0x5762fb['length']&&this['_model']['change'](()=>{for(const _0x712fb9 of _0x5762fb){const _0xad3ae9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6c44d,'accept');this['forceDefaultExecution'](()=>_0xad3ae9([_0x712fb9],_0x55bcf4,_0x12f7fd));}});for(const _0x307346 of _0x3afa5c){let _0x30f0ce=null,_0x42cedf=_0x307346['start'],_0x370b77=_0x307346['end'];for(const {suggestion:_0x440a69,meta:_0x2651f8}of this['_findSuggestions'](_0x307346,'formatInline')){if(!_0x2651f8['isOwn'])continue;if(_0x440a69['subType']!=_0x6c44d)continue;if(!sn(_0x440a69,_0x12f7fd))continue;const _0x22406c=_0x440a69['getFirstRange']();if(_0x22406c['containsRange'](_0x307346,!0x0))return null;_0x42cedf=_0x42cedf['isBefore'](_0x22406c['start'])?_0x42cedf:_0x22406c['start'],_0x370b77=_0x370b77['isAfter'](_0x22406c['end'])?_0x370b77:_0x22406c['end'],_0x30f0ce?_0x22406c['start']['isBefore'](_0x30f0ce['getFirstRange']()['start'])?(_0x30f0ce['removeMarkers'](),_0x30f0ce=_0x440a69):_0x440a69['removeMarkers']():_0x30f0ce=_0x440a69;}const _0x404454=this['_model']['createRange'](_0x42cedf,_0x370b77);if(_0x30f0ce)this['_setSuggestionRange'](_0x30f0ce,_0x404454);else{const _0x5cf98a=_0x579527(),_0x207315=_0x5d256c['id'];this['_setSuggestionData']({'id':_0x5cf98a,'type':'formatInline:'+_0x6c44d,'data':_0x55bcf4,'createdAt':new Date(),'authorId':_0x207315,'attributes':_0x12f7fd}),this['_addSuggestionMarker']('formatInline:'+_0x6c44d,_0x5cf98a,_0x207315,_0x404454);}}return null;}['markBlockFormat'](_0x41363a,_0xc5d5a3,_0x2c4e33=[],_0x37402e=null,_0x53c2e5={}){_0xc5d5a3['formatGroupId']||(_0xc5d5a3['formatGroupId']=_0xc5d5a3['commandName']),_0xc5d5a3['multipleBlocks']=_0x41363a['is']('range'),_0x37402e=_0x37402e||Ht(_0xc5d5a3);const _0xfcd05c=_0x2c4e33['map'](_0x1cc781=>tn(_0x1cc781,this['_model'])),_0x166b3e=_0x41363a['is']('range')?_0x41363a:tn(_0x41363a,this['_model']);if(this['_trackingSessionId']&&(_0x53c2e5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c5c29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37402e,'accept');return this['forceDefaultExecution'](()=>_0x1c5c29([_0x166b3e],_0xc5d5a3,_0x53c2e5)),null;}_0xfcd05c['push'](_0x166b3e);let _0x272fda=!0x0;for(const _0x1ed8a7 of _0xfcd05c)if(!this['_rangeIsInLocalUserInsertion'](_0x1ed8a7)){_0x272fda=!0x1;break;}if(_0x272fda&&'always'!==this['_trackFormatChanges']){const _0x4dbe73=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37402e,'accept');return this['forceDefaultExecution'](()=>_0x4dbe73([_0x166b3e],_0xc5d5a3,_0x53c2e5)),null;}let _0x2ff063=null,_0x2db709=_0x166b3e['start'],_0x5dd793=_0x166b3e['end'];for(const {suggestion:_0x140b23,meta:_0x1f361e}of this['_findSuggestions'](_0x166b3e,'formatBlock')){if(!_0x1f361e['isOwn'])continue;if(_0x1f361e['isNextTo']||_0x1f361e['containsRangeInObject']||_0x1f361e['isInsideObject'])continue;if(_0x140b23['data']['formatGroupId']!=_0xc5d5a3['formatGroupId'])continue;if(!sn(_0x140b23,_0x53c2e5))continue;const _0x3f0144=_0x140b23['getFirstRange']();if(_0x140b23['subType']==_0x37402e){if(_0x3f0144['containsRange'](_0x166b3e,!0x0))return null;_0x2db709=_0x2db709['isBefore'](_0x3f0144['start'])?_0x2db709:_0x3f0144['start'],_0x5dd793=_0x5dd793['isAfter'](_0x3f0144['end'])?_0x5dd793:_0x3f0144['end'],_0x2ff063?_0x3f0144['start']['isBefore'](_0x2ff063['getFirstRange']()['start'])?(_0x2ff063['removeMarkers'](),_0x2ff063=_0x140b23):_0x140b23['removeMarkers']():_0x2ff063=_0x140b23;}else{const _0x49af59=_0x166b3e['getIntersection'](_0x3f0144);this['_cutOutSuggestionMarker'](_0x140b23,_0x49af59);}}const _0x128e18=this['editor']['plugins']['get']('Users')['me'],_0x33f294=_0x579527(),_0x2040a4=_0x128e18['id'];if(_0x2ff063)return this['_setSuggestionRange'](_0x2ff063,this['_model']['createRange'](_0x2db709,_0x5dd793)),_0x2ff063;{const _0x17d95a=this['_setSuggestionData']({'id':_0x33f294,'type':'formatBlock:'+_0x37402e,'data':_0xc5d5a3,'createdAt':new Date(),'authorId':_0x2040a4,'attributes':_0x53c2e5});return this['_addSuggestionMarker']('formatBlock:'+_0x37402e,_0x33f294,_0x2040a4,this['_model']['createRange'](_0x2db709,_0x5dd793)),_0x17d95a;}}['markMultiRangeBlockFormat'](_0x360423,_0x1b90f2,_0x5ecb58=[],_0x2d7b37=null,_0x2601d3={}){_0x1b90f2['formatGroupId']||(_0x1b90f2['formatGroupId']=_0x1b90f2['commandName']);const _0x255c69=_0x360423[0x0];_0x1b90f2['multipleBlocks']=_0x255c69['is']('range'),_0x2d7b37=_0x2d7b37||Ht(_0x1b90f2);const _0x12cc0f=_0x5ecb58['map'](_0x9c5485=>tn(_0x9c5485,this['_model'])),_0x3e5637=_0x255c69['is']('range')?_0x360423:_0x360423['map'](_0x12c187=>tn(_0x12c187,this['_model']));if(this['_trackingSessionId']&&(_0x2601d3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x25a00f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d7b37,'accept');return this['forceDefaultExecution'](()=>_0x25a00f(_0x3e5637,_0x1b90f2,_0x2601d3)),null;}_0x12cc0f['push'](..._0x3e5637);let _0x457497=!0x0;for(const _0x1860af of _0x12cc0f)if(!this['_rangeIsInLocalUserInsertion'](_0x1860af)){_0x457497=!0x1;break;}if(_0x457497&&'always'!==this['_trackFormatChanges']){const _0x28888c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d7b37,'accept');return this['forceDefaultExecution'](()=>_0x28888c(_0x3e5637,_0x1b90f2,_0x2601d3)),null;}const _0x2942f0=this['editor']['plugins']['get']('Users')['me'];for(const _0x65a1f4 of this['getSuggestions']()){const _0x9985b9=_0x65a1f4['data'];if(_0x65a1f4['author']['id']!=_0x2942f0['id'])continue;if('formatBlock'!=_0x65a1f4['type']||_0x9985b9['formatGroupId']!=_0x1b90f2['formatGroupId'])continue;if(!sn(_0x65a1f4,_0x2601d3))continue;const _0x28c55e=_0x65a1f4['subType']==_0x2d7b37;for(let _0x1e4410=0x0;_0x1e4410<_0x3e5637['length'];_0x1e4410++){const _0x537537=_0x3e5637[_0x1e4410];for(const _0x168b3e of _0x65a1f4['getMarkers']()){const _0x26e3cb=_0x168b3e['getRange']();if(_0x537537['isEqual'](_0x26e3cb)){_0x28c55e?(_0x3e5637['splice'](_0x1e4410,0x1),_0x1e4410--):_0x65a1f4['removeMarker'](_0x168b3e['name']);break;}}}}if(0x0==_0x3e5637['length'])return null;const _0x536d5e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d7b37,'join');for(const _0x48330b of this['getSuggestions']()){const _0x31b17b=_0x48330b['data'];if(_0x48330b['author']['id']==_0x2942f0['id']&&('formatBlock'==_0x48330b['type']&&_0x31b17b['formatGroupId']==_0x1b90f2['formatGroupId']&&_0x48330b['subType']==_0x2d7b37&&sn(_0x48330b,_0x2601d3)&&(_0x536d5e(_0x48330b['getRanges'](),_0x3e5637)||_0x536d5e(_0x3e5637,_0x48330b['getRanges']())))){for(const _0x27aa7c of _0x3e5637)_0x48330b['addRange'](_0x27aa7c);return _0x48330b;}}const _0x288f91=_0x579527(),_0x16cbc0=_0x2942f0['id'],_0x577faf='formatBlock:'+_0x2d7b37,_0x4a3b60=this['_setSuggestionData']({'id':_0x288f91,'type':_0x577faf,'data':_0x1b90f2,'createdAt':new Date(),'authorId':_0x16cbc0,'attributes':_0x2601d3});for(const _0x32411d of _0x3e5637)this['_addSuggestionMarker'](_0x577faf,_0x288f91,_0x16cbc0,_0x32411d,x['getMultiRangeId']());return _0x4a3b60;}['markDeletion'](_0x2e76a6,_0x41d1d7=null,_0x463e37={}){if(_0x2e76a6['isCollapsed'])return null;const _0x2f62bc=this['editor']['plugins']['get']('Users')['me'],_0x445b6d=new _0xc9628b(_0x2e76a6['start'],_0x2e76a6['end']);this['_trackingSessionId']&&(_0x463e37['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5621ad,meta:_0xad6da1}of this['_findSuggestions'](_0x445b6d,'insertion'))if(_0xad6da1['isOwn']&&!_0xad6da1['isNextTo']){if(_0x5621ad['isMultiRange']){const _0x59be5e=_0x5621ad['getRanges']()['filter'](_0x5cc691=>'$graveyard'!=_0x5cc691['root']['rootName']);_0x59be5e['every'](_0xbfb717=>_0x445b6d['containsRange'](_0xbfb717,!0x0))&&_0x5621ad['discard']();if(_0x59be5e['some'](_0x462f43=>_0x462f43['containsRange'](_0x445b6d,!0x0))){const _0x1e0876=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41d1d7,'accept');return this['forceDefaultExecution'](()=>_0x1e0876([_0x445b6d],null,_0x463e37)),null;}}else{const _0x44b7c0=_0x445b6d['getIntersection'](_0x5621ad['getFirstRange']());null!==_0x44b7c0&&_0x5621ad['_onDiscard']([_0x44b7c0],null,_0x463e37);}}if(_0x445b6d['detach'](),_0x445b6d['isCollapsed']||'$graveyard'==_0x445b6d['root']['rootName'])return null;let _0x28c879=null,_0x3aa7ac=_0x445b6d['start'],_0xa65fee=_0x445b6d['end'];const _0x1ff4c4=this['_findSuggestions'](_0x445b6d,'deletion');for(const {suggestion:_0x34fce9,meta:_0x465064}of _0x1ff4c4){const _0x4e8d4e=this['_model']['createRange'](_0x3aa7ac,_0xa65fee);if(_0x465064['isOwn']&&(this['_mergeNestedSuggestions']||!_0x465064['containsRangeInObject']&&!_0x465064['isInsideObject'])){if(_0x34fce9['isMultiRange']){if(!sn(_0x34fce9,_0x463e37))continue;let _0x5048d4=!0x0;for(const _0x2385ce of _0x34fce9['getRanges']()){if(_0x2385ce['containsRange'](_0x4e8d4e,!0x0))return _0x34fce9;_0x4e8d4e['containsRange'](_0x2385ce)||(_0x5048d4=!0x1);}_0x5048d4&&_0x34fce9['discard']();}else{const _0x33ad44=_0x34fce9['getFirstRange']();if(_0x33ad44['containsRange'](_0x4e8d4e,!0x0))return _0x34fce9;if(!sn(_0x34fce9,_0x463e37)){_0x4e8d4e['containsRange'](_0x33ad44)?_0x34fce9['removeMarkers']():_0x33ad44['containsPosition'](_0x3aa7ac)?_0x3aa7ac=_0x33ad44['end']:_0x33ad44['containsPosition'](_0xa65fee)&&(_0xa65fee=_0x33ad44['start']);continue;}_0x3aa7ac=_0x3aa7ac['isBefore'](_0x33ad44['start'])?_0x3aa7ac:_0x33ad44['start'],_0xa65fee=_0xa65fee['isAfter'](_0x33ad44['end'])?_0xa65fee:_0x33ad44['end'],_0x463e37=Object['assign']({},_0x34fce9['attributes']),_0x28c879?_0x33ad44['start']['isBefore'](_0x28c879['getFirstRange']()['start'])?(_0x28c879['removeMarkers'](),_0x28c879=_0x34fce9):_0x34fce9['removeMarkers']():_0x28c879=_0x34fce9;}}}if(_0x28c879)return this['_setSuggestionRange'](_0x28c879,this['_model']['createRange'](_0x3aa7ac,_0xa65fee)),_0x28c879;{const _0x28fc51=_0x579527(),_0x459eca=this['_model']['createRange'](_0x3aa7ac,_0xa65fee),_0x11cf63=_0x2f62bc['id'],_0x5db053=_0x41d1d7?'deletion:'+_0x41d1d7:'deletion',_0x2475da=this['_setSuggestionData']({'id':_0x28fc51,'type':_0x5db053,'createdAt':new Date(),'authorId':_0x11cf63,'attributes':_0x463e37});return this['_addSuggestionMarker'](_0x5db053,_0x28fc51,_0x11cf63,_0x459eca),_0x2475da;}}['markMultiRangeDeletion'](_0x2852ec,_0x534f30='multi',_0x26c005={}){const _0x4860e1=this['editor']['plugins']['get']('Users')['me'],_0x5deb92=_0x2852ec['map'](_0xe89b35=>new _0xc9628b(_0xe89b35['start'],_0xe89b35['end'])),_0x1c04b1=new Set();this['_trackingSessionId']&&(_0x26c005['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2e9a17,meta:_0x3ab57c}of this['_findSuggestions'](_0x5deb92,'insertion'))_0x3ab57c['isOwn']&&!_0x3ab57c['isNextTo']&&_0x1c04b1['add'](_0x2e9a17);for(const _0x8cdf7f of _0x1c04b1)if(_0x8cdf7f['isMultiRange']){const _0x391645=_0x8cdf7f['getRanges']();(!_0x8cdf7f['attributes']||!_0x8cdf7f['attributes']['skipNestingCheck'])&&(_0x391645['every'](_0x4ded51=>_0x5deb92['some'](_0x2753f5=>_0x2753f5['containsRange'](_0x4ded51,!0x0)))&&_0x8cdf7f['discard']());if(_0x5deb92['every'](_0x15f3bb=>_0x391645['some'](_0x53b8bb=>_0x53b8bb['containsRange'](_0x15f3bb,!0x0)))){const _0x1a76cc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x534f30,'accept');return this['forceDefaultExecution'](()=>_0x1a76cc(_0x2852ec,null,_0x26c005)),null;}}else{const _0x2aefa5=_0x8cdf7f['getFirstRange']();_0x5deb92['some'](_0x5ec86a=>_0x5ec86a['containsRange'](_0x2aefa5,!0x0))&&_0x8cdf7f['discard']();if(_0x5deb92['every'](_0xafd7c1=>_0x2aefa5['containsRange'](_0xafd7c1,!0x0))){const _0x37e789=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x534f30,'accept');return this['forceDefaultExecution'](()=>_0x37e789(_0x5deb92,null,_0x26c005)),null;}}const _0x1ca54f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x534f30,'join');let _0x2fa0a1=null;for(const _0xc609e2 of this['getSuggestions']())if(_0xc609e2['author']['id']==_0x4860e1['id']&&_0xc609e2['isInContent']&&'deletion'==_0xc609e2['type']&&_0xc609e2['subType']==_0x534f30&&sn(_0xc609e2,_0x26c005)&&(_0x1ca54f(_0xc609e2['getRanges'](),_0x5deb92)||_0x1ca54f(_0x5deb92,_0xc609e2['getRanges']()))){if(_0x2fa0a1){if(_0xc609e2['commentThread']&&_0xc609e2['commentThread']['length'])continue;for(const _0x20c4e6 of _0xc609e2['getRanges']())_0x2fa0a1['isIntersectingWithRange'](_0x20c4e6)||_0x2fa0a1['addRange'](_0x20c4e6);_0xc609e2['removeMarkers']();}else{_0x2fa0a1=_0xc609e2;for(const _0x3c798a of _0x5deb92)_0xc609e2['isIntersectingWithRange'](_0x3c798a)||_0xc609e2['addRange'](_0x3c798a);}}if(_0x2fa0a1)return _0x2fa0a1;_0x1c04b1['clear']();for(const {suggestion:_0x2eba0a,meta:_0x44a003}of this['_findSuggestions'](_0x5deb92,'deletion'))_0x44a003['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44a003['containsRangeInObject']&&!_0x44a003['isInsideObject'])&&sn(_0x2eba0a,_0x26c005)&&_0x1c04b1['add'](_0x2eba0a);for(const _0x393aa0 of _0x1c04b1){const _0xcb3eb8=_0x393aa0['getRanges']();if(!_0x26c005||!_0x26c005['skipNestingCheck']){if(_0x5deb92['every'](_0x219210=>_0xcb3eb8['some'](_0x28da72=>_0x28da72['containsRange'](_0x219210,!0x0))))return _0x393aa0;}(!_0x393aa0['attributes']||!_0x393aa0['attributes']['skipNestingCheck'])&&(_0xcb3eb8['every'](_0x3115b5=>_0x5deb92['some'](_0x5141e3=>_0x5141e3['containsRange'](_0x3115b5,!0x0)))&&_0x393aa0['discard']());}const _0x577de1=_0x579527(),_0x3acba5=_0x4860e1['id'],_0x37a5a5='deletion:'+_0x534f30,_0x441f38=this['_setSuggestionData']({'id':_0x577de1,'type':_0x37a5a5,'createdAt':new Date(),'authorId':_0x3acba5,'attributes':_0x26c005});for(const _0x2ae6c2 of _0x5deb92)_0x2ae6c2['detach'](),_0x2ae6c2['isCollapsed']||'$graveyard'==_0x2ae6c2['root']['rootName']||this['_addSuggestionMarker'](_0x37a5a5,_0x577de1,_0x3acba5,_0x2ae6c2,x['getMultiRangeId']());return _0x441f38;}['markAttributeChange'](_0x750c2f,_0x3cc8e2,_0x1bb007,_0x107780,_0x2b6edf){if(_0x750c2f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2d2159=this['editor']['plugins']['get']('Users')['me']['id'],_0x1597a3=Array['from'](this['_suggestions']['values']())['filter'](_0x3dc519=>'attribute'==_0x3dc519['type']&&_0x3dc519['data']['key']==_0x3cc8e2&&_0x3dc519['isIntersectingWithRange'](_0x750c2f));if(this['_trackingSessionId']&&(_0x2b6edf['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x519f6a=this['_findSuggestions'](_0x750c2f,'insertion')['filter'](({meta:_0x24f3f4})=>_0x24f3f4['isOwn']&&!_0x24f3f4['isInsideObject']&&!_0x24f3f4['isNextTo'])['map'](({suggestion:_0x16ce1a})=>_0x16ce1a);_0x1597a3['unshift'](..._0x519f6a);}const _0x3fe53c=new Map([[_0x750c2f,_0x1bb007]]);for(const _0x117648 of _0x1597a3){const _0x269772='attribute'==_0x117648['type']?_0x117648['data']['oldValue']:void 0x0,_0x4c68eb=_0x117648['getFirstRange'](),_0x370a69=Array['from'](_0x3fe53c['keys']())['find'](_0x59e238=>_0x59e238['isIntersecting'](_0x4c68eb));if(!_0x370a69)continue;const _0x2493ed=_0x370a69['getDifference'](_0x4c68eb);this['_isBlockAttribute'](_0x3cc8e2)&&'insertion'==_0x117648['type']&&0x0!=_0x2493ed['length']||(_0x3fe53c['delete'](_0x370a69),_0x2493ed['forEach'](_0x44baf2=>{_0x3fe53c['set'](_0x44baf2,_0x1bb007);}),'insertion'!=_0x117648['type']&&_0x269772!=_0x107780&&_0x3fe53c['set'](_0x370a69['getIntersection'](_0x4c68eb),_0x269772));}const _0x344fff=[];for(const [_0x825e05,_0x3d1156]of _0x3fe53c){const _0x557cf7=_0x579527(),_0x46314f={'key':_0x3cc8e2,'oldValue':_0x3d1156,'newValue':_0x107780};_0x3cc8e2['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':_0x3cc8e2});const _0x33e61b=('attribute:'+(_0x3cc8e2+'|'+Ht({'newValue':_0x107780})))['substring'](0x0,0x3c),_0x103c41=this['_setSuggestionData']({'id':_0x557cf7,'type':_0x33e61b,'data':_0x46314f,'createdAt':new Date(),'authorId':_0x2d2159,'attributes':_0x2b6edf});_0x344fff['push'](_0x103c41),this['_addSuggestionMarker'](_0x33e61b,_0x557cf7,_0x2d2159,_0x825e05);}return _0x344fff;}['enableDefaultAttributesIntegration'](_0x1663e1){this['enableCommand'](_0x1663e1,(_0x421a88,..._0x4dd027)=>{this['recordAttributeChanges'](()=>{_0x421a88(..._0x4dd027);});});}['registerBlockAttribute'](_0x11c435){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x11c435);}['registerInlineAttribute'](_0x1b191f){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1b191f);}['startTrackingSession'](_0x12af9f){return this['_trackingSessionId']=void 0x0!==_0x12af9f?_0x12af9f:_0x579527(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3384ce){return'attribute'==_0x3384ce['type']?_0x3384ce['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x31570f){if(0x0==_0x31570f['length'])return;const _0x54d185=this['editor'],_0x1c2a33=_0x54d185['plugins']['get'](_0x5cebf1),_0x39eed1=[];_0x54d185['model']['change'](_0x188eb3=>{for(let _0x1fbae8=0x0;_0x1fbae8<_0x31570f['length'];_0x1fbae8++){const _0x4a643d=_0x31570f[_0x1fbae8];if(_0x4a643d['baseVersion']=_0x54d185['model']['document']['version'],_0x4a643d['isDocumentOperation']=!0x0,_0x1c2a33['isMarkedRemoveOperation'](_0x4a643d)){const _0x452e91=Lt(_0x4a643d['newRange'],_0x54d185['model']);_0x39eed1['unshift'](_0xc9628b['fromRange'](_0x452e91));}else switch(_0x4a643d['type']){case'rename':{const _0xd66588=_0x4a643d['oldName'],_0x157998=_0x4a643d['newName'];if(_0xd66588==_0x157998)break;_0x188eb3['batch']['addOperation'](_0x4a643d),_0x54d185['model']['applyOperation'](_0x4a643d);const _0x3c0dab='$elementName',_0x5b772d=_0x4a643d['position'],_0x5162b9=_0x54d185['model']['createRange'](_0x5b772d,_0x54d185['model']['createPositionAt'](_0x5b772d['nodeAfter'],'end'));this['markAttributeChange'](_0x5162b9,_0x3c0dab,_0xd66588,_0x157998,{'groupId':_0x579527()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2a2bb3=_0x4a643d['oldValue'],_0x73ffd6=_0x4a643d['newValue'];if(_0x2a2bb3==_0x73ffd6)break;_0x188eb3['batch']['addOperation'](_0x4a643d),_0x54d185['model']['applyOperation'](_0x4a643d);const _0x597b99=_0x4a643d['key'];if(!this['_isRegisteredAttribute'](_0x597b99))break;const _0xb534c7=Lt(_0x4a643d['range'],_0x54d185['model']);this['markAttributeChange'](_0xb534c7,_0x597b99,_0x2a2bb3,_0x73ffd6,{'groupId':_0x579527()});break;}case'insert':{_0x188eb3['batch']['addOperation'](_0x4a643d),_0x54d185['model']['applyOperation'](_0x4a643d);if(_0x31570f[_0x1fbae8+0x1]&&'move'==_0x31570f[_0x1fbae8+0x1]['type'])break;const _0x283209=_0x4a643d['position'],_0x1d48db=_0x4a643d['howMany'],_0x337dce=Lt(_0x54d185['model']['createRange'](_0x283209,_0x283209['getShiftedBy'](_0x1d48db)),_0x54d185['model']);this['markInsertion'](_0x337dce);break;}case'split':{_0x188eb3['batch']['addOperation'](_0x4a643d),_0x54d185['model']['applyOperation'](_0x4a643d);const _0x1cf1ea=_0x4a643d['splitPosition'],_0x1757da=_0x4a643d['moveTargetPosition'];this['markInsertion'](_0x54d185['model']['createRange'](_0x1cf1ea,_0x1757da));break;}case'move':case'remove':_0x188eb3['batch']['addOperation'](_0x4a643d),_0x54d185['model']['applyOperation'](_0x4a643d);}}for(const _0x5abb45 of _0x39eed1)_0x5abb45['detach'](),this['markDeletion'](_0x5abb45);});}['_setSuggestionRange'](_0xf67faf,_0x43375f){const _0x94db68=_0xf67faf['getFirstMarker']();this['_model']['change'](_0x58d105=>{_0x58d105['updateMarker'](_0x94db68,{'range':_0x43375f});});}['_addThreadToSuggestion'](_0x32ce66){const _0x52a0d9=_0x32ce66['id'],_0x2e7d6e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x52a0d9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2e7d6e,'threadId':_0x52a0d9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x202366=this['_commentsRepository']['getCommentThread'](_0x52a0d9);_0x202366['unbind']('isRemovable'),_0x202366['isRemovable']=!0x1,_0x32ce66['commentThread']=_0x202366;}['_checkSuggestionCorrectness'](_0x5606c0,_0x250f96,_0x2df824,_0x5ee762){if(_0x5606c0['type']!=_0x250f96||_0x5606c0['subType']!=_0x2df824||_0x5606c0['creator']['id']!=_0x5ee762)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x45e9c9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x58784d,_0x445e6b){const _0x34f68a=_0x58784d['getFirstRange']();if(_0x445e6b['isEqual'](_0x34f68a))_0x58784d['removeMarkers']();else{if(_0x34f68a['containsRange'](_0x445e6b)){const _0x2debb6=this['_model']['createPositionAt'](_0x445e6b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58784d,this['_model']['createRange'](_0x34f68a['start'],_0x2debb6));const _0x18858e=_0x579527(),_0x1fc1bd=_0x58784d['creator']['id'],_0x4fa997=_0x58784d['type']+':'+_0x58784d['subType'];this['_setSuggestionData']({'id':_0x18858e,'type':_0x4fa997,'createdAt':new Date(),'authorId':_0x1fc1bd,'data':_0x58784d['data'],'attributes':_0x58784d['attributes']});const _0x6a7c73=this['_model']['createPositionAt'](_0x445e6b['end']['parent'],'after'),_0x2f012b=this['_model']['createRange'](_0x6a7c73,_0x34f68a['end']);this['_addSuggestionMarker'](_0x4fa997,_0x18858e,_0x1fc1bd,_0x2f012b);}else{if(_0x34f68a['containsPosition'](_0x445e6b['start'])){const _0x189e0a=this['_model']['createPositionAt'](_0x445e6b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58784d,this['_model']['createRange'](_0x34f68a['start'],_0x189e0a));}else{const _0x10f513=this['_model']['createPositionAt'](_0x445e6b['end']['parent'],'after');this['_setSuggestionRange'](_0x58784d,this['_model']['createRange'](_0x10f513,_0x34f68a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3e7642){for(const {suggestion:_0x156e1e,meta:_0x29de95}of this['_findSuggestions'](_0x3e7642,'insertion')){if(!_0x29de95['isOwn'])continue;const _0xda7fcc=_0x156e1e['getRanges']();for(const _0x1fbc35 of _0xda7fcc)if(!_0x3e7642['getDifference'](_0x1fbc35)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e578d){return this['editor']['plugins']['get']('Users')['getUser'](_0x2e578d);}['_getExternalAuthor'](_0x38d71b){const _0x34eef2=this['editor']['plugins']['get']('Users'),_0x1c15fd=_0x1b4e43('external:'+_0x38d71b),_0x16303=_0x34eef2['getUser'](_0x1c15fd);return _0x16303||_0x34eef2['addUser']({'id':_0x1c15fd,'name':_0x38d71b});}['_createSuggestion'](_0x3e84f9,_0x32c1a6,_0x1b8f38,_0x40a1a2,_0x5d6760,_0x75d640){const _0x51a99d=this['_getAuthorFromId'](_0x40a1a2);if(!_0x51a99d)throw new _0x45e9c9('track-changes-user-not-found',this,{'authorId':_0x40a1a2,'suggestionId':_0x1b8f38});const _0xc1a817=this['_suggestionFactory']['buildSuggestion'](_0x3e84f9,_0x32c1a6,_0x1b8f38,_0x51a99d,_0x5d6760,_0x3996fb=>{this['_updateSuggestionData'](_0x1b8f38,{'attributes':_0x3996fb});const _0x36fdfd=this['getSuggestion'](_0x1b8f38);this['_joinWithAdjacentSuggestions'](new Set([_0x36fdfd])),this['_refreshSuggestionsChain'](new Set([_0x36fdfd]));},_0x75d640);return this['listenTo'](_0xc1a817,'accept',()=>{this['_updateSuggestionData'](_0x1b8f38,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc1a817,'discard',()=>{this['_updateSuggestionData'](_0x1b8f38,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1b8f38,_0xc1a817),this['_suggestionState']['set'](_0xc1a817,'notReady'),_0xc1a817;}['_splitMarkerName'](_0x99676a){return Gt(_0x99676a);}['_breakSuggestionMarker'](_0x195ccb,_0x3c574b,_0x5d8736){const _0xbfb3af=_0x195ccb['getFirstRange'](),_0x2abaf9=_0xbfb3af['start'],_0x144a44=_0xbfb3af['end'];this['_setSuggestionRange'](_0x195ccb,this['_model']['createRange'](_0x2abaf9,_0x3c574b));const _0x24ea10=_0x579527(),_0x59fe38=_0x195ccb['creator']['id'],_0x20ba6c=_0x195ccb['type']+(_0x195ccb['subType']?':'+_0x195ccb['subType']:'');this['_setSuggestionData']({'id':_0x24ea10,'type':_0x20ba6c,'createdAt':new Date(),'authorId':_0x59fe38,'originalSuggestionId':_0x195ccb['_originalSuggestionId']||_0x195ccb['id'],'attributes':_0x195ccb['attributes'],'data':_0x195ccb['data']});const _0x513605=this['_getAttributeKey'](_0x195ccb);('formatBlock'==_0x195ccb['type']||_0x513605&&this['_isBlockAttribute'](_0x513605))&&(_0x5d8736=this['_model']['createPositionBefore'](_0x5d8736['parent'])),this['_addSuggestionMarker'](_0x20ba6c,_0x24ea10,_0x59fe38,this['_model']['createRange'](_0x5d8736,_0x144a44));}['_findSuggestions'](_0x6565e5,_0x4b0936=null){const _0xabf3bc=[],_0x49f3e3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x6565e5)||(_0x6565e5=[_0x6565e5]);for(const _0x107b1c of this['getSuggestions']()){if(!_0x107b1c['isInContent'])continue;if(_0x4b0936&&_0x107b1c['type']!=_0x4b0936)continue;let _0x59a2d2=!0x1;for(const _0x552a69 of _0x107b1c['getRanges']()){for(const _0x5dd53d of _0x6565e5){const _0x17d968=_0x5dd53d['start']['isEqual'](_0x552a69['end'])||_0x5dd53d['end']['isEqual'](_0x552a69['start']);if(_0x17d968||_0x5dd53d['getIntersection'](_0x552a69)){const _0x16e126=_0x5dd53d['containsRange'](_0x552a69)&&zt(this['_model']['schema'],_0x552a69['start'],_0x5dd53d),_0x251431=_0x552a69['containsRange'](_0x5dd53d)&&zt(this['_model']['schema'],_0x5dd53d['start'],_0x552a69);_0xabf3bc['push']({'suggestion':_0x107b1c,'meta':{'isOwn':_0x49f3e3==_0x107b1c['author'],'isNextTo':_0x17d968,'isInsideObject':_0x16e126,'containsRangeInObject':_0x251431}}),_0x59a2d2=!0x0;break;}}if(_0x59a2d2)break;}}return _0xabf3bc;}['_addSuggestionMarker'](_0x52b81f,_0x512e97,_0x36d20e,_0x91f0b2,_0x6a0e74){this['_model']['change'](_0x40ef6b=>{let _0x102926='suggestion:'+_0x52b81f+':'+_0x512e97+':'+_0x36d20e;_0x6a0e74&&(_0x102926=_0x102926+':'+_0x6a0e74),_0x40ef6b['addMarker'](_0x102926,{'range':_0x91f0b2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1092dd){const _0x47303c=_0x1092dd['previous'],_0x58005f=_0x1092dd['next'];_0x1092dd['previous']=null,_0x1092dd['next']=null,null!=_0x47303c&&_0x47303c['next']==_0x1092dd&&(_0x47303c['next']=_0x58005f),null!=_0x58005f&&_0x58005f['previous']==_0x1092dd&&(_0x58005f['previous']=_0x47303c),'ready'==this['_suggestionState']['get'](_0x1092dd)&&(this['_suggestionState']['set'](_0x1092dd,'removed'),this['fire']('suggestionUnloaded',_0x1092dd,_0x47303c,_0x58005f));}['_setSuggestionData'](_0x2a9e36){const _0x486066=_0x2a9e36['id'],_0x7f7c5b=this['addSuggestionData'](_0x2a9e36);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x386b5e=this['editor']['plugins']['get']('PendingActions'),_0x9d345b=_0x7f7c5b['hasComments'],_0x4f65c3=_0x7f7c5b['subType']?_0x7f7c5b['type']+':'+_0x7f7c5b['subType']:_0x7f7c5b['type'],_0x226d7e=this['editor']['locale'],_0x312f3b=_0x386b5e['add'](o(_0x226d7e,'PENDING_ACTION_SUGGESTION')),_0x2a8020={'id':_0x486066,'type':_0x4f65c3,'hasComments':_0x9d345b,'data':_0x2a9e36['data']||null,'originalSuggestionId':_0x2a9e36['originalSuggestionId']||null,'attributes':_0x7f7c5b['attributes']};this['_adapter']['addSuggestion'](_0x2a8020)['then'](_0x4297b5=>{_0x7f7c5b['_saved']=!0x0,_0x386b5e['remove'](_0x312f3b),_0x4297b5&&_0x4297b5['createdAt']&&(this['_suggestions']['get'](_0x486066)['createdAt']=_0x4297b5['createdAt']);})['catch'](_0x1427c0=>{throw _0xb30c49('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x7f7c5b['discard']();}),_0x7f7c5b['stopListening'](),this['_suggestions']['delete'](_0x7f7c5b['id']),this['_suggestionState']['delete'](_0x7f7c5b),_0x1427c0;});}return _0x7f7c5b;}['_isBlockAttribute'](_0x26eb3f){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x26eb3f);}['_isInlineAttribute'](_0x247da9){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x247da9);}['_updateSuggestionData'](_0x2296c4,_0x9a9545){const _0x42d543=this['editor']['plugins']['get']('PendingActions'),_0x4ede20=this['getSuggestion'](_0x2296c4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4ede20['_saved']){const _0x18cce8=_0x42d543['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2296c4,_0x9a9545)['then'](()=>{_0x42d543['remove'](_0x18cce8);});}else _0x4ede20['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2296c4,_0x9a9545);});}}['_getSuggestionData'](_0x5e79b3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x45e9c9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5e79b3);}['_handleNewSuggestionMarker'](_0x20d0db){const {id:_0x2c6b5f,type:_0x4ceb23,subType:_0xd256a,authorId:_0x78216f}=this['_splitMarkerName'](_0x20d0db),_0x57e655=this['_suggestions']['get'](_0x2c6b5f)||this['_createSuggestion'](_0x4ceb23,_0xd256a,_0x2c6b5f,_0x78216f,{});switch(this['_checkSuggestionCorrectness'](_0x57e655,_0x4ceb23,_0xd256a,_0x78216f),this['_suggestionState']['get'](_0x57e655)){case'notReady':this['_getSuggestionData'](_0x2c6b5f)['then'](_0x29c79d=>{let _0x575b71=Promise['resolve']();_0x29c79d['hasComments']&&(_0x575b71=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2c6b5f})),_0x575b71['then'](()=>{this['addSuggestionData'](_0x29c79d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57e655,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2c6b5f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57e655,'ready'),this['fire']('suggestionLoaded',_0x57e655);break;case'ready':this['fire']('suggestionChanged',_0x57e655);}return _0x57e655['addMarkerName'](_0x20d0db),_0x57e655;}['_refreshSuggestionsChain'](_0x1ccf99){const _0x383f04=Array['from'](_0x1ccf99),_0x1a58c9=_0x383f04['filter'](_0x131e24=>'attribute'==_0x131e24['type']);this['_refreshAttributeSuggestionsChain'](_0x1a58c9);const _0x10aac0=_0x383f04['filter'](_0x18b76c=>!_0x18b76c['isMultiRange']&&'attribute'!=_0x18b76c['type']),_0x7a2207=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d8289=>!_0x5d8289['isMultiRange']&&'attribute'!=_0x5d8289['type']),_0x80ec7e=_0x7a2207['filter'](_0x484655=>!_0x1ccf99['has'](_0x484655)),_0x5a6319=new Map(_0x7a2207['map'](_0x3abc6c=>[_0x3abc6c,this['_suggestionFactory']['getSuggestionCallback'](_0x3abc6c['type'],_0x3abc6c['subType'],'chain')])),_0x3ddbf6=new Map(_0x7a2207['map'](_0x8f0203=>[_0x8f0203,_0x8f0203['getFirstRange']()])),_0x256610=new Set(),_0x388903=new Set();for(let _0x35308c=0x0;_0x35308c<_0x10aac0['length'];_0x35308c++)_0x6431f9(_0x10aac0[_0x35308c],_0x10aac0,_0x35308c+0x1);for(let _0x7a1e8c=0x0;_0x7a1e8c<_0x10aac0['length'];_0x7a1e8c++)_0x6431f9(_0x10aac0[_0x7a1e8c],_0x80ec7e,0x0);const _0x1149a3=new Set();for(let _0x4a6ddf=0x0;_0x4a6ddf<_0x10aac0['length'];_0x4a6ddf++){const _0x28f1ee=_0x10aac0[_0x4a6ddf];!_0x388903['has'](_0x28f1ee)&&_0x28f1ee['previous']&&(_0x1149a3['add'](_0x28f1ee['previous']),_0x28f1ee['previous']['next']===_0x28f1ee&&(_0x28f1ee['previous']['next']=null),_0x28f1ee['previous']=null),!_0x256610['has'](_0x28f1ee)&&_0x28f1ee['next']&&(_0x1149a3['add'](_0x28f1ee['next']),_0x28f1ee['next']['previous']===_0x28f1ee&&(_0x28f1ee['next']['previous']=null),_0x28f1ee['next']=null);}function _0x6431f9(_0x3a8f91,_0x50cd0e,_0x16060d){for(let _0x243b0e=_0x16060d;_0x243b0e<_0x50cd0e['length'];_0x243b0e++){const _0x2477bf=_0x4846ac(_0x3a8f91,_0x50cd0e[_0x243b0e]);_0x2477bf&&(_0x2477bf[0x0]['next']=_0x2477bf[0x1],_0x2477bf[0x1]['previous']=_0x2477bf[0x0],_0x256610['add'](_0x2477bf[0x0]),_0x388903['add'](_0x2477bf[0x1]));}}function _0x4846ac(_0x741499,_0x4980b4){if(_0x741499['author']['id']!==_0x4980b4['author']['id'])return null;const _0x1b727e=_0x5a6319['get'](_0x741499)(_0x741499,_0x4980b4,_0x3ddbf6['get'](_0x741499),_0x3ddbf6['get'](_0x4980b4));if(!_0x1b727e)return null;return _0x5a6319['get'](_0x4980b4)(_0x741499,_0x4980b4,_0x3ddbf6['get'](_0x741499),_0x3ddbf6['get'](_0x4980b4))?_0x1b727e[0x1]['commentThread']&&_0x1b727e[0x1]['commentThread']['length']?null:_0x1b727e:null;}_0x1149a3['size']&&this['_refreshSuggestionsChain'](_0x1149a3);}['_refreshAttributeSuggestionsChain'](_0xd86ac){if(0x0==_0xd86ac['length'])return;const _0x53c736=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bebe2=>'attribute'==_0x3bebe2['type']&&_0x3bebe2['_isDataLoaded']),_0x4dcd9a=[],_0x6e9e0e=new Map();for(const _0x255c72 of _0x53c736){const _0xf4a664=_0x1b4e43(_0x255c72['attributes']);_0x6e9e0e['has'](_0xf4a664)||(_0x6e9e0e['set'](_0xf4a664,_0x4dcd9a['length']),_0x4dcd9a['push']([]));const _0x57d3ac=_0x6e9e0e['get'](_0xf4a664);_0x4dcd9a[_0x57d3ac]['push'](_0x255c72);}!(function(){_0x4dcd9a['sort']((_0x5b9b47,_0x5c0101)=>{const _0x3ab6fd=_0x5b9b47[0x0]['createdAt'],_0x5f1580=_0x5c0101[0x0]['createdAt'];return _0x3ab6fd==_0x5f1580?_0x5b9b47[0x0]['attributes']['groupId']<_0x5c0101[0x0]['attributes']['groupId']?-0x1:0x1:_0x3ab6fd<_0x5f1580?-0x1:0x1;});for(const _0x139d0b of _0x4dcd9a)_0x139d0b['sort']((_0xb1233b,_0x5315f8)=>_0xb1233b['id']<_0x5315f8['id']?-0x1:0x1);}());for(let _0x23e841=0x0;_0x23e841<_0x4dcd9a['length'];_0x23e841++){if(0x0==_0x4dcd9a[_0x23e841]['length'])continue;const _0x1b51a8=[];for(let _0x1f2a74=_0x23e841+0x1;_0x1f2a74<_0x4dcd9a['length'];_0x1f2a74++)0x0!=_0x4dcd9a[_0x1f2a74]['length']&&_0x387b44(_0x4dcd9a[_0x23e841],_0x4dcd9a[_0x1f2a74])&&_0x1b51a8['push'](_0x1f2a74);for(const _0x2da1ef of _0x1b51a8)_0x4dcd9a[_0x23e841]=_0x4dcd9a[_0x23e841]['concat'](_0x4dcd9a[_0x2da1ef]),_0x4dcd9a[_0x2da1ef]=[];}for(const _0x1838fd of _0x4dcd9a)for(let _0x50ec42=0x0;_0x50ec42<_0x1838fd['length'];_0x50ec42++){const _0x3f4a22=_0x1838fd[_0x50ec42+0x1]||null;_0x1838fd[_0x50ec42]['next']!==_0x3f4a22&&(_0x1838fd[_0x50ec42]['next']=_0x3f4a22);}for(const _0x1628ff of _0x4dcd9a)for(let _0x1a1321=0x0;_0x1a1321<_0x1628ff['length'];_0x1a1321++){const _0x9a29a=_0x1628ff[_0x1a1321-0x1]||null;_0x1628ff[_0x1a1321]['previous']!==_0x9a29a&&(_0x1628ff[_0x1a1321]['previous']=_0x9a29a);}function _0x387b44(_0x11cb78,_0x437a8a){if(_0x11cb78[0x0]['attributes']['groupId']!==_0x437a8a[0x0]['attributes']['groupId']&&_0x11cb78[0x0]['author']!==_0x437a8a[0x0]['author'])return!0x1;if(!function(_0x4feca0,_0x1af083){if(!_0x4feca0['hasComments']&&!_0x1af083['hasComments'])return!0x0;if(_0x4feca0['hasComments']&&_0x1af083['hasComments'])return!0x1;if(_0x4feca0['hasComments']&&_0x1af083['createdAt']<_0x4feca0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1af083['hasComments']&&_0x4feca0['createdAt']<_0x1af083['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x11cb78[0x0],_0x437a8a[0x0]))return!0x1;const _0x44a540=Pt(_0x11cb78[0x0]['attributes'],['groupId','trackingSessionId']),_0x3f13ce=Pt(_0x437a8a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x36b1e4(_0x44a540,_0x3f13ce))return!0x1;if(_0x11cb78[0x0]['attributes']['groupId']==_0x437a8a[0x0]['attributes']['groupId'])return!0x0;if(_0x11cb78[0x0]['attributes']['trackingSessionId']!==_0x437a8a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x11cb78['every'](_0x2340b8=>_0x437a8a['some'](_0x7d3ed4=>_0x2340b8['getFirstRange']()['isEqual'](_0x7d3ed4['getFirstRange']())))&&_0x437a8a['every'](_0xafc50=>_0x11cb78['some'](_0x3ffbfc=>_0xafc50['getFirstRange']()['isEqual'](_0x3ffbfc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x25d509){const _0x336c60=Array['from'](_0x25d509),_0x132b46=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3a63da=_0x132b46['filter'](_0x22bc96=>!_0x25d509['has'](_0x22bc96)),_0x469ca2=new Map(_0x336c60['map'](_0x50ebf1=>[_0x50ebf1,this['_suggestionFactory']['getSuggestionCallback'](_0x50ebf1['type'],_0x50ebf1['subType'],'join')])),_0x8d8f94=new Map(_0x132b46['map'](_0x2dbc23=>[_0x2dbc23,_0x2dbc23['getRanges']()]));for(let _0x2db504=0x0;_0x2db504<_0x336c60['length'];_0x2db504++){if(_0x36a262(this,_0x336c60[_0x2db504],_0x336c60,_0x2db504+0x1))return!0x0;}for(let _0x529d6b=0x0;_0x529d6b<_0x336c60['length'];_0x529d6b++){if(_0x36a262(this,_0x336c60[_0x529d6b],_0x3a63da,0x0))return!0x0;}return!0x1;function _0x36a262(_0x314255,_0x318b46,_0x41021f,_0x1b831f){for(let _0x1fe09e=_0x1b831f;_0x1fe09e<_0x41021f['length'];_0x1fe09e++){const _0x21c6c5=_0x41021f[_0x1fe09e];if(_0x21c6c5['type']!==_0x318b46['type']||_0x21c6c5['author']['id']!==_0x318b46['author']['id']||_0x21c6c5['subType']!==_0x318b46['subType'])continue;if(!en(_0x318b46,_0x21c6c5))continue;if('attribute'==_0x318b46['type']&&_0x318b46['data']['oldValue']!=_0x21c6c5['data']['oldValue'])continue;if('attribute'==_0x318b46['type']&&_0x314255['_isBlockAttribute'](_0x318b46['data']['key']))continue;if('formatBlock'==_0x318b46['type']){const _0x20fe17=_0x314255['editor']['model'],_0x2428ad=_0x318b46['getContainedElement']();if(_0x2428ad&&(_0x20fe17['schema']['isObject'](_0x2428ad)||_0x20fe17['schema']['isLimit'](_0x2428ad)))continue;}const _0x3c9fea=_0x469ca2['get'](_0x318b46),_0x571b01=_0x8d8f94['get'](_0x318b46),_0x26d40b=_0x8d8f94['get'](_0x21c6c5),_0x34571d=_0x318b46['commentThread']&&_0x318b46['commentThread']['length'],_0x9ee520=_0x21c6c5['commentThread']&&_0x21c6c5['commentThread']['length'];if(!_0x34571d&&_0x3c9fea(_0x26d40b,_0x571b01))return _0x314255['_joinSuggestions'](_0x21c6c5,_0x318b46),_0x8d8f94['delete'](_0x318b46),!0x0;if(!_0x9ee520&&_0x3c9fea(_0x571b01,_0x26d40b))return _0x314255['_joinSuggestions'](_0x318b46,_0x21c6c5),_0x8d8f94['delete'](_0x21c6c5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x472c40,_0x54baff){if(_0x472c40['isMultiRange']){for(const _0x2510e8 of _0x54baff['getRanges']())_0x472c40['addRange'](_0x2510e8);}else{const _0x49fd73=_0x54baff['getFirstRange']()['end'];this['_setSuggestionRange'](_0x472c40,this['_model']['createRange'](_0x472c40['getFirstRange']()['start'],_0x49fd73));}_0x54baff['removeMarkers']();}['_getMarkerAnnouncementText'](_0x319cbe,_0x3df878,_0x4a3dff){const _0x2caacd=_0x319cbe['startsWith']('format')||_0x319cbe['startsWith']('attribute')?'FORMATTING':_0x319cbe['toUpperCase']();return o(this['editor']['locale'],_0x3df878+'_'+_0x2caacd+'_SUGGESTION_ANNOUNCEMENT',_0x4a3dff);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e8818=this['editor'];if(!_0x4e8818['ui'])return;const {ariaLiveAnnouncer:_0x4495ff}=_0x4e8818['ui'];_0x14941f(this['_model'],({left:_0x4c1e31,entered:_0x57480d})=>{for(const _0x337fee of _0x4c1e31){const {group:_0x3a8752,type:_0x2048c5}=this['_splitMarkerName'](_0x337fee['name']);if('suggestion'===_0x3a8752){_0x4495ff['announce'](this['_getMarkerAnnouncementText'](_0x2048c5,'LEAVE'));break;}}for(const _0x2b3a3b of _0x57480d){const {group:_0x201584,type:_0xbb7265}=this['_splitMarkerName'](_0x2b3a3b['name']);if('suggestion'===_0x201584){_0x4495ff['announce'](this['_getMarkerAnnouncementText'](_0xbb7265,'ENTER',_0x35d32d(_0x3fb345)));break;}}});}['_processAttributeChanges'](_0x1e159b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5b5d46=this['editor'],_0x34c521=_0x5b5d46['model']['document']['differ']['getChanges']();if(0x0==_0x34c521['length'])return!0x1;const _0x3964c4=[],_0x104a5e=_0x34c521['filter'](_0x3ec77e=>'attribute'==_0x3ec77e['type']),_0x4b8c54=_0x34c521['filter'](_0x415dec=>'insert'==_0x415dec['type']&&'$text'!=_0x415dec['name']),_0x74f18b=_0x34c521['filter'](_0x1862c9=>'remove'==_0x1862c9['type']&&'$text'!=_0x1862c9['name']);for(const _0x5f0714 of _0x104a5e)_0x3964c4['push']({'key':_0x5f0714['attributeKey'],'newValue':_0x5f0714['attributeNewValue'],'oldValue':_0x5f0714['attributeOldValue'],'range':Zt(_0x5f0714['range'],_0x5b5d46['model'])});for(const _0x266ca5 of _0x4b8c54){const _0x317c6f=_0x74f18b['find'](_0x356851=>_0x356851['position']['isEqual'](_0x266ca5['position']));_0x317c6f&&_0x3964c4['push']({'key':m,'newValue':_0x266ca5['name'],'oldValue':_0x317c6f['name'],'range':_0x5b5d46['model']['createRangeOn'](_0x266ca5['position']['nodeAfter'])});}return 0x0!=_0x3964c4['length']&&this['_reduceExistingSuggestions'](_0x1e159b,_0x3964c4);}['_processAttributeSuggestions'](_0x50c0fa){let _0x15fb57=!0x1;const _0x124f2f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27b74d=>_0x27b74d['data']['newRange']&&_0x27b74d['name']['startsWith']('suggestion:attribute:'));for(const _0x126aa2 of _0x124f2f){const {subType:_0x242d3d,id:_0x247ce9}=this['_splitMarkerName'](_0x126aa2['name']),_0xc0b265=_0x242d3d['split']('|')[0x0];for(const _0x2a0d10 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a0d10['id']!=_0x247ce9&&'attribute'==_0x2a0d10['type']&&_0x2a0d10['data']&&_0x2a0d10['data']['key']==_0xc0b265&&_0x2a0d10['getFirstRange']()['isIntersecting'](_0x126aa2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a0d10,_0x126aa2['data']['newRange'],_0x50c0fa),_0x15fb57=!0x0);}return _0x15fb57;}['recordAttributeChanges'](_0x2287c9){this['_recordAttributeSuggestions']=!0x0,_0x2287c9();}['_isRegisteredAttribute'](_0x4f314c){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x4f314c);}['_reduceExistingSuggestions'](_0x774ecd,_0x3b01d7){if(0x0==_0x3b01d7['length'])return!0x1;let _0x1313c5=!0x1;for(const _0x119670 of _0x3b01d7){const _0x2787ac=this['_findSuggestions'](_0x119670['range'],'attribute')['filter'](_0x1a9e6f=>!_0x1a9e6f['meta']['isNextTo'])['map'](_0x1929ec=>_0x1929ec['suggestion']),_0x31fb5b=_0x1b4e43({'newValue':_0x119670['newValue']});_0x2787ac['filter'](_0x1f1428=>{const [_0x1abfc2,_0x367799]=_0x1f1428['subType']['split']('|');return _0x1abfc2==_0x119670['key']&&_0x367799!=_0x31fb5b;})['forEach'](_0x4d4303=>{this['_reduceSuggestionAttributeRange'](_0x4d4303,_0x119670['range'],_0x774ecd),_0x1313c5=!0x0;});}return _0x1313c5;}['_reduceSuggestionAttributeRange'](_0x6cd60,_0x18f22c,_0x139edb){const _0x580db7=_0x6cd60['getFirstRange']()['getDifference'](_0x18f22c);0x0!==_0x580db7['length']?0x1!==_0x580db7['length']?this['_breakSuggestionMarker'](_0x6cd60,_0x18f22c['start'],_0x18f22c['end']):this['_setSuggestionRange'](_0x6cd60,_0x580db7[0x0]):_0x139edb['removeMarker'](_0x6cd60['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x22ad99){this['_editor']=_0x22ad99,this['_model']=_0x22ad99['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e582a,_0x35bb29,_0x2d6913,_0x2a7faa,_0x428804,_0x2ec806,_0x16dc02){return new x(this['_model'],{'type':_0x5e582a,'subType':_0x35bb29,'id':_0x2d6913,'originalSuggestionId':_0x16dc02,'author':_0x2a7faa,'creator':_0x2a7faa,'attributes':_0x428804,'onAttributesChange':_0x2ec806,'onAccept':(..._0x2c267c)=>this['getSuggestionCallback'](_0x5e582a,_0x35bb29,'accept')(..._0x2c267c),'onDiscard':(..._0x45ab9c)=>this['getSuggestionCallback'](_0x5e582a,_0x35bb29,'discard')(..._0x45ab9c)});}['registerCustomCallback'](_0x1794c1,_0x341b75,_0x313184,_0x326e50){const _0x3540cb=_0x1794c1+':'+_0x341b75+':'+_0x313184;this['_customCallbacks']['set'](_0x3540cb,_0x326e50);}['getSuggestionCallback'](_0x36bcff,_0x567bb4,_0x2c7db0){const _0x462905=_0x36bcff+':'+_0x567bb4+':'+_0x2c7db0;return this['_customCallbacks']['get'](_0x462905)||this['_defaultCallbacks']['get'](_0x36bcff+':'+_0x2c7db0);}['_registerDefaultCallbacks'](){const _0x528632=()=>!0x1,_0x200ccc=_0x5dd648=>{_0x5dd648['sort']((_0x4206ec,_0x16231c)=>_0x4206ec['start']['isBefore'](_0x16231c['start'])?0x1:-0x1),this['_model']['change'](_0x4324be=>{for(const _0x32d365 of _0x5dd648){let _0x1a018a;_0x1a018a=_0x32d365['end']['isAtEnd']&&_0x32d365['end']['parent']==_0x32d365['start']['nodeAfter']?_0x4324be['createSelection'](_0x32d365['start']['nodeAfter'],'on'):_0x4324be['createSelection'](_0x32d365),this['_model']['deleteContent'](_0x1a018a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1deebf=(_0x5241be,_0x53cf47)=>{_0x53cf47&&this['_model']['change'](_0x2abb58=>{const {commandName:_0x22ad3e,commandParams:_0x2414c9=[]}=_0x53cf47,_0x159d2e=_0x5241be['map'](_0x111abb=>(Kt(_0x111abb)&&(_0x111abb=this['_model']['createRange'](_0x111abb['end'])),_0x111abb))['filter'](_0x2a5c6e=>'$graveyard'!==_0x2a5c6e['root']['rootName']);if(_0x159d2e['length']<0x1)return;const _0x107a3e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3dd064=>_0xc9628b['fromRange'](_0x3dd064));_0x2abb58['setSelection'](_0x159d2e);for(const _0x170f40 of this['_editor']['commands']['commands']())_0x170f40['refresh']();_0x2414c9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x22ad3e,..._0x2414c9);const _0x5038fc=_0x107a3e['filter'](_0x354bcf=>'$graveyard'!=_0x354bcf['root']['rootName']);_0x5038fc['length']>0x0&&_0x2abb58['setSelection'](_0x5038fc);for(const _0x3c8373 of _0x107a3e)_0x3c8373['detach']();});},_0x28526b=(_0x416834,_0x58f9c0)=>0x1==_0x416834['length']&&0x1==_0x58f9c0['length']&&_0x416834[0x0]['end']['isEqual'](_0x58f9c0[0x0]['start']),_0x53d4b6=(_0x406202,_0x5bc09d,_0x1a13cf,_0x12ca13)=>nn(_0x406202,_0x5bc09d,_0x1a13cf,_0x12ca13)?[_0x406202,_0x5bc09d]:nn(_0x5bc09d,_0x406202,_0x12ca13,_0x1a13cf)?[_0x5bc09d,_0x406202]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x528632),this['_defaultCallbacks']['set']('insertion:discard',_0x200ccc),this['_defaultCallbacks']['set']('insertion:join',_0x28526b),this['_defaultCallbacks']['set']('insertion:chain',_0x53d4b6),this['_defaultCallbacks']['set']('deletion:accept',_0x200ccc),this['_defaultCallbacks']['set']('deletion:discard',_0x528632),this['_defaultCallbacks']['set']('deletion:join',_0x28526b),this['_defaultCallbacks']['set']('deletion:chain',_0x53d4b6),this['_defaultCallbacks']['set']('formatInline:accept',_0x1deebf),this['_defaultCallbacks']['set']('formatInline:discard',_0x528632),this['_defaultCallbacks']['set']('formatInline:join',_0x28526b),this['_defaultCallbacks']['set']('formatInline:chain',_0x528632),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1deebf),this['_defaultCallbacks']['set']('formatBlock:discard',_0x528632),this['_defaultCallbacks']['set']('formatBlock:join',_0x28526b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x528632),this['_defaultCallbacks']['set']('attribute:accept',_0x528632),this['_defaultCallbacks']['set']('attribute:discard',(_0x1560ed,_0xcd3ab6)=>{if(!_0xcd3ab6)return;const _0x4eb9c6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4ebad6=>{if(_0xcd3ab6['key']==m)for(const _0x4130b1 of _0x1560ed){const _0x1aeb46=_0x4130b1['start']['nodeAfter'],_0x44b877=_0xcd3ab6['oldValue'];_0x4ebad6['rename'](_0x1aeb46,_0x44b877);}else{if(_0x4eb9c6['_isBlockAttribute'](_0xcd3ab6['key'])){for(const _0x2c4e0f of _0x1560ed)void 0x0!==_0xcd3ab6['oldValue']?_0x4ebad6['setAttribute'](_0xcd3ab6['key'],_0xcd3ab6['oldValue'],_0x2c4e0f['start']['nodeAfter']):_0x4ebad6['removeAttribute'](_0xcd3ab6['key'],_0x2c4e0f['start']['nodeAfter']);}else{for(const _0x304651 of _0x1560ed)_0xcd3ab6['oldValue']?_0x4ebad6['setAttribute'](_0xcd3ab6['key'],_0xcd3ab6['oldValue'],_0x304651):_0x4ebad6['removeAttribute'](_0xcd3ab6['key'],_0x304651);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x28526b);}}function zt(_0x2fde40,_0x1edfb8,_0x2dcb5d){for(const _0x11ce02 of _0x1edfb8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11ce02['root']==_0x11ce02)return!0x1;if(!_0x2dcb5d['containsItem'](_0x11ce02))return!0x1;if(_0x2fde40['isObject'](_0x11ce02)||_0x2fde40['isLimit'](_0x11ce02))return!0x0;}return!0x1;}function Kt(_0x48c1ae){return _0x48c1ae['end']['parent']==_0x48c1ae['start']['nodeAfter']&&_0x48c1ae['end']['isAtStart'];}function Wt(_0x3a4bac,_0x436ca8,_0x2000d5,_0x3c32c5){const _0x146e28=_0x4a25c1=>!_0x4a25c1['item']['is']('$textProxy')&&!_0x3c32c5['isObject'](_0x4a25c1['item']),_0x178b96=_0x3a4bac['start']['getLastMatchingPosition'](_0x146e28),_0x59f4c0=_0x3a4bac['end']['getLastMatchingPosition'](_0x146e28,{'direction':'backward'});return(!_0x3a4bac['start']['isEqual'](_0x178b96)||!_0x3a4bac['end']['isEqual'](_0x59f4c0))&&(_0x178b96['isBefore'](_0x59f4c0)?_0x2000d5['updateMarker'](_0x436ca8,{'range':_0x2000d5['createRange'](_0x178b96,_0x59f4c0)}):_0x2000d5['removeMarker'](_0x436ca8),!0x0);}function Ht(_0x11e8ce){return _0x1b4e43(_0x11e8ce);}function Qt(_0x5f39c6){const _0x1aa961=_0x5f39c6['start']['nodeAfter'];return _0x1aa961&&_0x1aa961['is']('element');}function Xt(_0x4b1ff2){return Kt(_0x4b1ff2)||function(_0x1b796d){return _0x1b796d['start']['parent']==_0x1b796d['end']['nodeBefore']&&_0x1b796d['start']['isAtEnd'];}(_0x4b1ff2);}function Yt(_0x59784e,_0x39f414){try{const _0x1c9f55=_0x59784e['getRange']();for(const _0x95983e of _0x39f414)if(_0x59784e!==_0x95983e&&_0x1c9f55&&_0x1c9f55['isIntersecting'](_0x95983e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x540b95,_0x58c35c){return null==_0x540b95['end']['nodeBefore']&&_0x540b95['end']['parent']==_0x540b95['start']['nodeAfter']?tn(_0x540b95['start']['nodeAfter'],_0x58c35c):_0x540b95;}function tn(_0x49ce08,_0x4cb166){const _0x41e65f=_0x4cb166['schema']['isObject'](_0x49ce08)||_0x4cb166['schema']['isSelectable'](_0x49ce08);return _0x4cb166['createRange'](_0x4cb166['createPositionAt'](_0x49ce08,'before'),_0x41e65f?_0x4cb166['createPositionAfter'](_0x49ce08):_0x4cb166['createPositionAt'](_0x49ce08,'end'));}function nn(_0x3c8268,_0xbfd6e7,_0x49cda0,_0x14791a){return!!en(_0x3c8268,_0xbfd6e7)&&_0x49cda0['end']['isEqual'](_0x14791a['start']);}function en(_0x17521d,_0x298d74){if(!_0x17521d['_isDataLoaded']||!_0x298d74['_isDataLoaded'])return!0x1;const _0x29c9ec=new Set(Object['keys'](_0x17521d['attributes'])),_0x21a449=new Set(Object['keys'](_0x298d74['attributes']));if(_0x29c9ec['delete']('groupId'),_0x21a449['delete']('groupId'),0x0==_0x29c9ec['size']&&0x0==_0x21a449['size'])return!0x0;if(_0x29c9ec['size']!=_0x21a449['size'])return!0x1;const _0x683469={..._0x17521d['attributes']},_0x4001e5={..._0x298d74['attributes']};return delete _0x683469['groupId'],delete _0x4001e5['groupId'],JSON['stringify'](_0x683469)==JSON['stringify'](_0x4001e5);}function sn(_0x44fb78,_0x5bf437){const _0x28d75a=on(_0x44fb78['attributes']),_0x110dfb=on(_0x5bf437);if(!_0x44fb78['_isDataLoaded'])return!0x1;for(const _0xcf5f0c of Object['keys'](_0x110dfb))if(!_0x36b1e4(_0x28d75a[_0xcf5f0c],_0x110dfb[_0xcf5f0c]))return!0x1;return!0x0;}function on(_0x1c5d70){const _0x59ac3f=Object['assign']({},_0x1c5d70);return delete _0x59ac3f['skipNestingCheck'],delete _0x59ac3f['tablePasteChainId'],_0x59ac3f;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x1b844d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x410b40,_0x1462da,_0x4e0a39,_0x23d03a){super(),this['model']=_0x1462da,this['view']=_0x4e0a39,this['commentThreadController']=_0x23d03a,this['_editor']=_0x410b40,this['_acceptCommand']=_0x410b40['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x410b40['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x55902b,_0x2c30f8)=>_0x55902b||_0x2c30f8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x132808=>_0x132808&&this['_editor']['model']['canEditAt'](_0x1462da['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40a894=>_0x40a894&&this['_editor']['model']['canEditAt'](_0x1462da['getRanges']())),this['_pendingAction']=null,_0x4e0a39['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4e0a39,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4e0a39,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4e0a39,'change:isDirty',()=>{_0x4e0a39['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 _0x205ef6=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x205ef6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1793da{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4cfe7a,_0x52f989,_0x45c63c,_0x37c684){super(_0x4cfe7a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2563b3(_0x4cfe7a,o(_0x4cfe7a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x52f989['authoredAt']),this['bind']('authoredAt')['to'](_0x52f989),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',_0x52f989,'authoredAt',this,'descriptionParts',(_0x4bf880,_0x4bf637,_0x3e7651)=>{const _0xd80ad7=_0x3e7651['map'](_0x4bb9cc=>ls(_0x4bb9cc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4bf880-0x1,_0x52f989['author']['name'],_0x4bf637?_0x37c684['formatDateTime'](_0x4bf637):'',new DOMParser()['parseFromString'](_0xd80ad7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5d7ec3(),this['focusTracker']=new _0x3946bc(),this['keystrokes']=new _0x5582c2(),this['focusCycler']=new _0x58f0a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x543683=>_0x543683['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x52f989,this['_localUser']=_0x45c63c,this['_config']=_0x37c684,_0x37c684['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x16a2fb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x63dde0}=this['_config'];this['commentsListView']=new _0x63dde0(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',_0x2d63ed=>_0x2d63ed+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x124400,_0x191894)=>_0x124400||!!_0x191894);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xa7c493}=this['_config'],_0xb9d39d=new _0xa7c493(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4d1ab8=_0xb9d39d['commentInputView'];return _0xb9d39d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4d1ab8,'value',(_0x346194,_0x11ff2b,_0x5a673c)=>!!_0x5a673c||_0x346194&&!_0x11ff2b),_0x4d1ab8['on']('submit',(_0x4e9276,_0x1195d8)=>{this['fire']('addComment',_0x1195d8),_0x4d1ab8['editor']['setData']('');}),_0x4d1ab8['on']('cancel',()=>this['focus']()),_0x4d1ab8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb9d39d;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xf634fa,_0x32ff90,_0x13a456,_0x514b70){super(_0xf634fa,_0x32ff90,_0x13a456,_0x514b70),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3d1308=>_0x3d1308&&_0x3d1308[0x0]?_0x3d1308[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x263b05,_0x50ca9c)=>{let _0x2f1d19='';for(const _0x522d25 of _0x263b05)_0x2f1d19+='<p>'+ls(_0x522d25['content'],_0x522d25['color'])+'</p>';return _0x50ca9c?_0x2f1d19:_0x5af532(_0x2f1d19,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x514b70['SuggestionView'](_0xf634fa,_0x32ff90,{'formatDateTime':_0x514b70['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 _0x2c6d3f=this['bindTemplate'],_0x41d556=[this['suggestionView']];return this['commentsListView']&&_0x41d556['push'](this['commentsListView']),this['commentThreadInputView']&&_0x41d556['push'](this['commentThreadInputView']),_0x41d556['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c6d3f['if']('isActive','ck-suggestion-wrapper--active'),_0x2c6d3f['to']('type',_0x45f275=>'ck-suggestion-'+_0x45f275),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':_0x2c6d3f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x41d556};}['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 _0x1793da{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x220fa9,_0x59fbac,_0x198d49){super(_0x220fa9),this['_model']=_0x59fbac,this['_config']=_0x198d49,this['set']('description',''),this['bind']('authoredAt')['to'](_0x59fbac),this['acceptButton']=this['_createButton'](o(_0x220fa9,'Accept\x20suggestion'),_0x2880a0,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x220fa9,'Discard\x20suggestion'),_0x4c5aed,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2c54b7(_0x220fa9,_0x59fbac['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5d7ec3([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3946bc(),this['keystrokes']=new _0x5582c2(),this['focusCycler']=new _0x58f0a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x18e86d=>_0x18e86d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x183ae8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x183ae8['innerHTML']=this['description'],this['on']('change:description',(_0x118138,_0xc80276,_0xee7003)=>{_0x183ae8['innerHTML']=_0xee7003;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3a8115=this['bindTemplate'],_0x45d944=[{'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':_0x3a8115['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3a8115['to']('authoredAt',_0x3caee4=>this['_config']['formatDateTime'](_0x3caee4))}]}]},{'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']&&_0x45d944['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':_0x45d944}]};}['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'](_0x5d96d5,_0x274b85,_0x194f5b,_0x3ef35c,_0x21d152){const _0x4357a0=new _0x2dbcc5(this['locale']);return _0x4357a0['set']({'label':_0x5d96d5,'icon':_0x274b85,'tooltip':!0x0,'tooltipPosition':_0x21d152}),_0x4357a0['extendTemplate']({'attributes':{'class':_0x194f5b}}),_0x4357a0['on']('execute',()=>{this['fire'](_0x3ef35c,this['_model']['id']);}),_0x4357a0;}['_setupKeyboardNavigation'](){const _0x5afd69=this['element'];this['keystrokes']['listenTo'](_0x5afd69);for(const _0x2ee7eb of this['focusables'])this['focusTracker']['add'](_0x2ee7eb['element']),this['keystrokes']['listenTo'](_0x2ee7eb['element']);this['keystrokes']['set']('enter',(_0x160daf,_0x5ce98a)=>{_0x5afd69===_0x160daf['target']&&(this['focusCycler']['focusFirst'](),_0x5ce98a());}),this['keystrokes']['set']('esc',(_0x2013b0,_0x3dcd72)=>{_0x5afd69!==_0x2013b0['target']&&(this['focus'](),_0x3dcd72());});}}class u extends _0x24003c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x590dd4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcccd0a){super(_0xcccd0a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xfc03c8=this['editor']['config'];_0xfc03c8['define']('trackChanges.SuggestionThreadView',fe),_0xfc03c8['define']('trackChanges.SuggestionView',we),_0xfc03c8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xfc03c8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4714ec,_0x20d7ba){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5dcf15,_0x1f1247]of this['_handleControllerBuffer']){const _0x24e180=this['_suggestionToController']['has'](_0x5dcf15);_0x24e180||_0x1f1247?_0x24e180&&_0x1f1247&&this['_destroyController'](_0x5dcf15):this['_initializeController'](_0x5dcf15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4714ec,_0x20d7ba);}['init'](){const _0x5193c8=this['editor'],_0x294625=_0x5193c8['plugins']['get']('TrackChangesEditing'),_0x3ea1ad=_0x5193c8['plugins']['get']('Annotations'),_0x1e3978=_0x5193c8['plugins']['get']('EditorAnnotations'),_0x4b4fc1=_0x5193c8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1e3978['addSourceCollector'](()=>{const _0x3d536c=[];for(const [_0x5e727e,_0x974f2c]of Array['from'](this['_suggestionToController'])){const _0x28bbf6=_0x5e727e['getAllAdjacentSuggestions'](),_0x565fe2=[];for(const _0x1d4d6c of _0x28bbf6){if(!_0x1d4d6c['isInContent'])continue;if(_0x1d4d6c['isMultiRange']){_0x565fe2['push'](..._0x1d4d6c['getRanges']());continue;}const _0x2737b3=_0x1d4d6c['getFirstRange']();if(_0x565fe2['length']>0x0){const _0xaa0a7a=_0x565fe2[0x0]['getJoined'](_0x2737b3);if(_0xaa0a7a){_0x565fe2[0x0]=_0xaa0a7a;continue;}}_0x565fe2['push'](_0x2737b3);}_0x3d536c['push']([_0x974f2c['view'],_0x565fe2]);}return _0x3d536c;}),this['listenTo'](_0x294625,'suggestionLoaded',(_0x5ab339,_0x4c3f68)=>{this['listenTo'](_0x4c3f68,'change:previous',(_0x534a6c,_0x1d4664,_0x4721c4,_0x2feec9)=>{_0x4c3f68['isInContent']&&(null==_0x4721c4?(this['_updateController'](_0x2feec9['head']),this['_handleSuggestionControllerDelayed'](_0x4c3f68,!0x1)):(this['_updateController'](_0x4721c4['head']),null==_0x2feec9&&this['_handleSuggestionControllerDelayed'](_0x4c3f68,!0x0)));}),null!==_0x4c3f68['previous']?this['_updateController'](_0x4c3f68['head']):this['_handleSuggestionControllerDelayed'](_0x4c3f68,!0x1);}),this['listenTo'](_0x294625,'suggestionUnloaded',(_0x107455,_0x470658,_0x7186fd)=>{this['stopListening'](_0x470658,'change:previous'),this['_handleControllerBuffer']['delete'](_0x470658),this['_suggestionToController']['has'](_0x470658)&&this['_destroyController'](_0x470658),_0x7186fd&&this['_updateController'](_0x7186fd['head']);}),this['listenTo'](_0x294625,'suggestionChanged',(_0x480a5e,_0x2eaab9)=>{this['_updateController'](_0x2eaab9);}),this['listenTo'](_0x3ea1ad,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b4fc1,'addComment',(_0x380357,{threadId:_0x59b3c0,isFromAdapter:_0x57af0a})=>{if(_0x57af0a||!_0x294625['hasSuggestion'](_0x59b3c0))return;const _0x2bcbac=_0x294625['getSuggestion'](_0x59b3c0);this['_suggestionToController']['get'](_0x2bcbac)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a9667=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22a7ff;for(const _0x11e1aa in _0x4a9667){const _0x105ff6=_0x11e1aa,_0x2ba38b=_0x4a9667[_0x105ff6];if('trackChangesLicenseKeyValid'==_0x2ba38b||'trackChangesLicenseKeyInvalid'==_0x2ba38b||'trackChangesLicenseKeyExpired'==_0x2ba38b||'trackChangesLicenseKeyDomainLimit'==_0x2ba38b||'trackChangesLicenseKeyNotAllowed'==_0x2ba38b||'trackChangesLicenseKeyEvaluationLimit'==_0x2ba38b||'trackChangesLicenseKeyTrialLimit'==_0x2ba38b||'trackChangesLicenseKeyUsageLimit'==_0x2ba38b){delete _0x4a9667[_0x105ff6],_0x22a7ff=_0x2ba38b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x22a7ff&&_0x4a9667['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x22a7ff&&_0x4a9667['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x22a7ff&&_0x4a9667['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x22a7ff&&_0x4a9667['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x22a7ff&&_0x4a9667['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x22a7ff&&_0x4a9667['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x22a7ff&&_0x4a9667['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x453089){const _0x1bd8d3=this['_suggestionToController']['get'](_0x453089);if(!_0x1bd8d3)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1bd8d3['view'])||null;}['getSuggestionForAnnotation'](_0x10f908){const _0x296f0b=this['_viewToController']['get'](_0x10f908['innerView']);return _0x296f0b?_0x296f0b['model']:null;}['_refreshActiveMarkers'](){const _0x4d381b=this['editor']['plugins']['get']('Annotations'),_0x515960=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41aec2=Array['from'](_0x4d381b['activeAnnotations'],_0x48b41c=>_0x48b41c['innerView'])['filter'](_0x19b809=>this['_viewToController']['has'](_0x19b809)),_0x1a218c=[];for(const _0x15274e of _0x41aec2){const _0x7dc02f=this['_viewToController']['get'](_0x15274e)['model']['getAllAdjacentSuggestions']();_0x1a218c['push'](..._0x7dc02f['reduce']((_0x105263,_0x590d74)=>[..._0x105263,..._0x590d74['getMarkerNames']()],[]));}_0x515960['activeMarkers']=_0x1a218c;}['_addUIComponentsToFactory'](){const _0x30f369=this['editor'],_0x498d35=_0x30f369['locale'],_0x3830b3=o(_0x498d35,'Track\x20changes'),_0x1068c5=new _0x2f3cb1([{'type':'switchbutton','model':new _0x5905a0({'withText':!0x0,'isToggleable':!0x0,'label':_0x3830b3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5905a0({'withText':!0x0,'label':o(_0x498d35,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5905a0({'withText':!0x0,'label':o(_0x498d35,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5905a0({'withText':!0x0,'label':o(_0x498d35,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5905a0({'withText':!0x0,'label':o(_0x498d35,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x30f369['plugins']['has']('TrackChangesPreview')&&_0x1068c5['addMany']([{'type':'separator'},{'type':'button','model':new _0x5905a0({'withText':!0x0,'label':o(_0x498d35,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x54779c of _0x1068c5)if(ke(_0x54779c)){const _0x3afe83=_0x30f369['commands']['get'](_0x54779c['model']['commandName']);_0x54779c['model']['bind']('isOn','isEnabled')['to'](_0x3afe83,'value','isEnabled');}_0x30f369['ui']['componentFactory']['add']('trackChanges',_0x26b69f=>this['_createToolbarButton'](_0x26b69f,_0x1068c5,_0x3830b3)),_0x30f369['ui']['componentFactory']['add']('menuBar:trackChanges',_0x39f27d=>this['_createMenuBarMenu'](_0x39f27d,_0x1068c5,_0x3830b3));}['_createToolbarButton'](_0x255f68,_0x17d8f8,_0x1afce6){const _0x1de8c0=_0x4daf95(_0x255f68,_0x507cfa),_0x22a468=this['editor']['commands']['get']('trackChanges');_0x1de8c0['buttonView']['set']({'tooltip':_0x1afce6,'label':_0x1afce6,'icon':_0x35b2f2}),_0x1de8c0['buttonView']['bind']('isOn')['to'](_0x22a468,'value'),_0x1de8c0['buttonView']['on']('execute',()=>{_0x22a468['execute'](),this['editor']['editing']['view']['focus']();}),_0x4c2a93(_0x1de8c0,_0x17d8f8,{'role':'menu'});const _0x48a996=[];for(const _0x5ee114 of _0x17d8f8)ke(_0x5ee114)&&_0x48a996['push'](this['editor']['commands']['get'](_0x5ee114['model']['commandName']));const _0x29bcf2=_0x1de8c0['buttonView'];return _0x29bcf2['actionView']['unbind']('isEnabled'),_0x29bcf2['arrowView']['unbind']('isEnabled'),_0x29bcf2['actionView']['bind']('isEnabled')['to'](_0x22a468,'isEnabled'),_0x29bcf2['arrowView']['bind']('isEnabled')['toMany'](_0x48a996,'isEnabled',(..._0x180b7c)=>_0x180b7c['some'](_0x40cb0c=>_0x40cb0c)),_0x1de8c0['on']('execute',_0x3464ea=>{this['editor']['execute'](_0x3464ea['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1de8c0;}['_createMenuBarMenu'](_0x56fff7,_0x1b4e6c,_0x43f226){const _0x1992a1=new _0x9f6868(_0x56fff7),_0x47c005=this['editor']['commands']['get']('trackChanges');_0x1992a1['buttonView']['set']({'label':_0x43f226,'icon':_0x35b2f2});const _0x24f372=new _0x110a7d(_0x56fff7);for(const _0xf19357 of _0x1b4e6c){if('separator'==_0xf19357['type']){_0x24f372['items']['add'](new _0xf95cdb(_0x56fff7));continue;}const _0x17e9fe=new _0xbafee2(_0x56fff7,_0x1992a1),_0x3db216=new _0x299aaa(_0x56fff7),_0x3eb882=_0xf19357['model'];_0x3db216['bind'](...Object['keys'](_0x3eb882))['to'](_0x3eb882),_0x3db216['delegate']('execute')['to'](_0x1992a1),_0x3db216['on']('execute',()=>{this['editor']['execute'](_0x3eb882['commandName']),this['editor']['editing']['view']['focus']();}),_0x17e9fe['children']['add'](_0x3db216),_0x24f372['items']['add'](_0x17e9fe);}return _0x1992a1['bind']('isEnabled')['to'](_0x47c005,'isEnabled'),_0x1992a1['panelView']['children']['add'](_0x24f372),_0x1992a1;}['_initializeController'](_0x172966){const _0x1d4596=this['editor'],_0x5c6088=_0x1d4596['config'],_0x2d1116=_0x1d4596['plugins']['get']('Annotations'),_0x3ecf41=_0x1d4596['plugins']['get']('CommentsRepository'),_0x993a59=_0x1d4596['plugins']['get']('EditorAnnotations'),_0x4b1f2e=_0x1d4596['plugins']['get'](_0x590dd4)['me'],_0x2cf14a=_0x5c6088['get']('trackChanges')['SuggestionThreadView'],_0x3796fa=_0x5c6088['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xe57eb7,CommentThreadInputView:_0x548bb7}=_0x1d4596['plugins']['get']('CommentsUI');let _0xba5c99,_0x403dfc,_0x2ade06;this['_annotationViews']['has'](_0x172966['id'])?(_0x403dfc=this['_annotationViews']['get'](_0x172966['id']),_0xba5c99=_0x403dfc['mainView']):(_0xba5c99=new _0x2cf14a(_0x1d4596['locale'],_0x172966,_0x4b1f2e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5c6088['get']('comments.editorConfig'),'licenseKey':_0x5c6088['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5c6088['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5c6088['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5c6088['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x39601f(_0x5c6088['get']('locale'),_0x1d4596['locale']),'CommentView':_0x5c6088['get']('comments')['CommentView'],'CommentsListView':_0xe57eb7,'CommentThreadInputView':_0x548bb7,'SuggestionView':_0x3796fa}),_0xba5c99['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d4596['editing']['view']['focus']();}),_0xba5c99['suggestionView']['discardButton']['on']('execute',()=>{_0x1d4596['editing']['view']['focus']();}),_0x403dfc=_0x2d1116['createAnnotationView'](this['editor']['locale'],_0xba5c99),_0x403dfc['bind']('isDirty')['to'](_0xba5c99,'isDirty'),_0x403dfc['bind']('length')['to'](_0xba5c99),_0x403dfc['bind']('type')['to'](_0xba5c99,'type',_0x564256=>'suggestion-'+_0x564256),_0xba5c99['on']('escape',()=>{_0x2ade06['fire']('escape');}),this['_annotationViews']['set'](_0x172966['id'],_0x403dfc));const _0x738bf2=_0x3ecf41['createCommentThreadController'](_0x172966['commentThread'],_0xba5c99),_0x20ef80=new pe(_0x1d4596,_0x172966,_0xba5c99,_0x738bf2),_0x39a4ff=_0x172966['getAllAdjacentSuggestions']()['filter'](_0x356e98=>_0x356e98['isInContent']);_0xba5c99['descriptionParts']=_0x1d4596['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x39a4ff),this['_suggestionToController']['set'](_0x172966,_0x20ef80),this['_viewToController']['set'](_0xba5c99,_0x20ef80);const _0x437b84=()=>{const _0x43ed86=[],_0x91b976=_0x172966['getAllAdjacentSuggestions']()['filter'](_0x1556c0=>_0x1556c0['isInContent']);for(const _0x4ba3d1 of _0x91b976)_0x43ed86['push'](..._0x4ba3d1['getMarkers']());return _0x2e091f(_0x1d4596['editing'],_0x43ed86);};_0x2ade06=_0x2d1116['createAnnotation']({'view':_0x403dfc,'target':_0x437b84,'type':()=>'suggestion-'+_0x20ef80['view']['type'],'isVisible':!!_0x437b84()}),_0x3ecf41['_bindAnnotationToEditors'](_0xba5c99,_0x2ade06),_0x2d1116['add'](_0x2ade06),_0x993a59['registerAnnotation'](_0x2ade06);}['_destroyController'](_0x3ccd95){const _0x1b2ad0=this['editor']['plugins']['get']('CommentsRepository'),_0x2f1b30=this['editor']['plugins']['get']('Annotations'),_0xbda8ed=this['_suggestionToController']['get'](_0x3ccd95),_0x25957f=_0xbda8ed['view'],_0x566e70=_0x2f1b30['getByInnerView'](_0x25957f);_0x1b2ad0['_unbindEditors'](_0x25957f),_0x566e70&&_0x2f1b30['remove'](_0x566e70),this['_suggestionToController']['delete'](_0x3ccd95),this['_viewToController']['delete'](_0x25957f),_0xbda8ed['destroy']();}['_updateController'](_0x215c10){if(!_0x215c10['isInContent']||!this['_suggestionToController']['has'](_0x215c10))return;const _0x4aacb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c18b2=this['_suggestionToController']['get'](_0x215c10),_0x4b0aff=_0x215c10['getAllAdjacentSuggestions']();_0x3c18b2['view']['descriptionParts']=_0x4aacb5['descriptionFactory']['getDescriptions'](_0x4b0aff);}['destroy'](){for(const _0x1c4b5a of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c4b5a);for(const _0x5c9674 of this['_annotationViews']['values']())_0x5c9674['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x228c32){return'model'in _0x228c32;}class Ne extends _0x24003c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5add14){this['editor']['plugins']['get'](d)['adapter']=_0x5add14;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x236bc6){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x236bc6);}['getSuggestions']({skipNotAttached:_0x50ead8=!0x1,toJSON:_0x2469ec=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x50ead8,'toJSON':_0x2469ec});}['getSuggestion'](_0x26baf8){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x26baf8);}}const p=['Pagination'];class re extends _0x24003c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b886a=this['editor'];if(_0x2b886a['config']['define']('trackChangesData.editorCreator',_0x40d310=>{const _0xb1f7cc=_0x2b886a['model']['document']['getRootNames']()['reduce']((_0x17b72a,_0xfe7019)=>(_0x17b72a[_0xfe7019]='',_0x17b72a),{});return _0x2b886a['constructor']['create'](_0xb1f7cc,_0x40d310);}),'function'!=typeof _0x2b886a['config']['get']('trackChangesData')['editorCreator'])throw new _0x45e9c9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x24c2a7){return P(this['editor'],!0x0,_0x24c2a7);}['getDataWithDiscardedSuggestions'](_0x38a854){return P(this['editor'],!0x1,_0x38a854);}}class Fe extends _0x24003c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x311afa){function _0x90cf02(_0x556276){return _0x556276['map'](_0x53fc48=>String['fromCharCode'](_0x53fc48))['join']('');}super(_0x311afa),this['result']='end',_0x311afa[_0x90cf02([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x90cf02([0x76,0x69,0x65,0x77])][_0x90cf02([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x90cf02([0x61,0x75,0x74,0x6f]),_0x311afa[_0x90cf02([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x90cf02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x90cf02([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x90cf02([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x90cf02([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(_0x3c4d75){return void 0x0!==_0x3c4d75['getRootsAttributes'];}async function P(_0x39d6bc,_0x52ef39,_0x3fb999){const _0x44929f=_0x193a33(_0x39d6bc,p);_0x44929f['plugins']['push'](d,Fe),_0x44929f['rootsAttributes']=De(_0x39d6bc)?_0x39d6bc['getRootsAttributes']():void 0x0;const _0x3a347d=document['createDocumentFragment'](),_0x5bc9ef=_0x39d6bc['config']['get']('trackChangesData')['editorCreator'],_0x2fc2af=await _0x5bc9ef(_0x44929f,()=>function(_0x265dbd){const _0x3f2b78=document['createElement']('div');return _0x265dbd['appendChild'](_0x3f2b78),_0x3f2b78;}(_0x3a347d));!function(_0x155ca1,_0x818124){const _0x3d7f86=_0x155ca1['model']['document']['getRootNames']()['reduce']((_0x1cffda,_0x5765f5)=>(_0x1cffda[_0x5765f5]=_0x155ca1['data']['get']({'rootName':_0x5765f5}),_0x1cffda),{}),_0x9047bf=_0x155ca1['plugins']['get']('Users')['users']['map'](_0x2b017c=>({'id':_0x2b017c['id'],'name':_0x2b017c['name']})),_0x2f36cb=_0x155ca1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x299d54=_0x155ca1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6d1134=_0x818124['plugins']['get']('Users'),_0x4a486a=_0x818124['plugins']['get']('TrackChangesEditing'),_0x378852=_0x818124['plugins']['get']('CommentsRepository');for(const _0x3de1f8 of _0x378852['getCommentThreads']())_0x3de1f8['remove']();for(const _0x2c9a17 of _0x9047bf)_0x6d1134['getUser'](_0x2c9a17['id'])||_0x6d1134['addUser'](_0x2c9a17);_0x6d1134['me']||_0x6d1134['useAnonymousUser']();for(const _0x5a18f1 of _0x299d54)_0x378852['addCommentThread'](_0x5a18f1);for(const _0x527d5e of _0x2f36cb)_0x4a486a['addSuggestionData'](_0x527d5e);_0x818124['data']['set'](_0x3d7f86);}(_0x39d6bc,_0x2fc2af),_0x2fc2af['execute'](_0x52ef39?'acceptAllSuggestions':'discardAllSuggestions');const _0x1bd4a5=De(_0x2fc2af)?_0x2fc2af['getFullData'](_0x3fb999):_0x2fc2af['data']['get'](_0x3fb999);return await _0x2fc2af['destroy'](),_0x1bd4a5;}class Me extends _0x1793da{['options'];constructor(_0x135cc3,_0x2cb4e7){super(_0x135cc3),this['options']=_0x2cb4e7,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'](_0x190898,_0xae8604){if(!this['element'])return;const _0x533a51=[];for(const [_0x5c96bf,_0x286813]of _0x190898){const _0x53cce4=document['createElement']('div');_0x53cce4['setAttribute']('data-ck-root-name',_0x5c96bf),_0x53cce4['className']=_0x286813['classes']+'\x20ck-track-changes-preview__root-container',_0x53cce4['innerHTML']=_0x286813['content'],_0x533a51['push'](_0x53cce4);}_0xae8604(this['element'],_0x533a51),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x34fc5c{constructor(_0x5a69cd){super(_0x5a69cd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5d43fc=this['editor'],_0x404dec=_0x5d43fc['locale'],_0x11a4c4=_0x5d43fc['plugins']['get']('Dialog');let _0x4d79e1;const _0x2a24e4=function(_0x4d9938){const _0x517c95={};if('editables'in _0x4d9938['ui']['view']){for(const [_0x12a46a,_0x2fcde0]of Object['entries'](_0x4d9938['ui']['view']['editables']))_0x517c95[_0x12a46a]=_0x2fcde0['element'];}else _0x517c95[_0x4d9938['model']['document']['getRootNames']()[0x0]]=_0x4d9938['ui']['view']['editable']['element'];return _0x517c95;}(_0x5d43fc),_0x2cdbef=function(_0x20cb4e){let _0x5a5346=0x0;for(const _0x5dd671 of Object['values'](_0x20cb4e))_0x5a5346=Math['max'](_0x5a5346,_0x5dd671['getBoundingClientRect']()['width']);let _0x1689cf=0x0;for(const _0x1b5d9b of Object['values'](_0x20cb4e))_0x1689cf+=_0x1b5d9b['getBoundingClientRect']()['height'];const _0x221bd7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40c80e=Math['min'](_0x1689cf,_0x221bd7);return{'width':_0x5a5346,'height':_0x40c80e};}(_0x2a24e4);_0x11a4c4['show']({'id':'finalContentPreview','title':o(_0x404dec,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x404dec,{'dialogRects':_0x2cdbef}),'onHide':()=>{_0x4d79e1['detachFromDom']();},'onShow':()=>{_0x5d43fc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x20adb3=>{const _0xf4f6d0=this['_standarizeRootsData'](_0x20adb3,_0x5d43fc,_0x2a24e4);_0x11a4c4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xf4f6d0,_0x5d43fc['config']['get']('trackChanges.preview.renderFunction'));}),_0x4d79e1=new _0x4f5d32(_0x404dec,[_0x11a4c4['view']]),_0x4d79e1['attachToDom'](),_0x4d79e1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5d43fc['once']('destroy',()=>{_0x4d79e1['detachFromDom']();});const _0x81c352=_0x11a4c4['view']['headerView']['class'];_0x11a4c4['view']['headerView']['class']=_0x81c352?_0x81c352+'\x20ck-reset_all':'ck-reset_all',_0x11a4c4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x11a4c4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5314b4=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x334526=_0x5314b4['previewMode'],_0x51228d={};if('$labels'===_0x334526){for(const _0x30d9f6 of _0x5314b4['getMergeFieldsIds']())_0x51228d[_0x30d9f6]=_0x5314b4['getLabel'](_0x30d9f6)||_0x30d9f6;}else{const _0x22f907='$defaultValues'===_0x334526?_0x5314b4['getDefaultValues']():_0x5314b4['getDataSetValues'](_0x334526,!0x0);for(const _0x3fbc4c of Object['entries'](_0x22f907)){const [_0x282b61,_0x12b83a]=_0x3fbc4c;_0x51228d[_0x282b61]=null!==_0x12b83a?_0x12b83a:_0x5314b4['getLabel'](_0x282b61)||_0x282b61;}}return{'mergeFieldsData':_0x51228d};}['_standarizeRootsData'](_0x564a7a,_0x322138,_0x294120){let _0x40f389;if('string'==typeof _0x564a7a){const _0x272f05=_0x322138['model']['document']['getRootNames']()[0x0];_0x40f389={[_0x272f05]:_0x564a7a};}else _0x40f389=_0x564a7a;const _0x1e85bd=this['_fixMediaEmbeds'](_0x40f389,_0x322138),_0x16cb41=function(_0x26ee62,_0x49e6b0){for(const [_0x3707c2,_0xbfbfa2]of _0x26ee62)_0xbfbfa2['classes']=_0x49e6b0[_0x3707c2]['classList']['value']['replace']('ck-focused','');return _0x26ee62;}(this['_sortRoots'](_0x322138)['reduce']((_0x272423,_0x4fb675)=>(_0x272423['push']([_0x4fb675,{'content':_0x1e85bd[_0x4fb675],'classes':''}]),_0x272423),[]),_0x294120);return _0x16cb41;}['_fixMediaEmbeds'](_0x5be00b,_0x21582b){if(!_0x21582b['plugins']['has']('MediaEmbedEditing'))return _0x5be00b;const _0x38edc9=_0x21582b['plugins']['get']('MediaEmbedEditing');for(const [_0xaabbe,_0x42aa3b]of Object['entries'](_0x5be00b)){const _0x34bfec=document['createElement']('div');_0x34bfec['innerHTML']=_0x42aa3b,(_0x34bfec['querySelectorAll']('figure.media')['forEach'](_0x4ce696=>{const _0x27b1bd=_0x4ce696['querySelector']('oembed');if(_0x27b1bd){const _0x4e9e30=_0x27b1bd['getAttribute']('url');if(_0x4e9e30){const _0x4fb501=_0x38edc9['registry']['getMediaViewElement'](new _0x4b5e59(_0x21582b['editing']['view']['document']),_0x4e9e30,{'elementName':'','renderForEditingView':!0x0}),_0x23b224=document['createElement']('div');_0x23b224['classList']['add']('ck-media__wrapper'),_0x4fb501['render'](_0x23b224,_0x21582b['editing']['view']['domConverter']),_0x27b1bd['replaceWith'](_0x23b224);}}}),_0x5be00b[_0xaabbe]=_0x34bfec['innerHTML']);}return _0x5be00b;}['_sortRoots'](_0x24f7fd){if(!function(_0x580dc4){return void 0x0!==_0x580dc4['getRootsAttributes'];}(_0x24f7fd))return _0x24f7fd['model']['document']['getRootNames']();const _0x283857=[],_0x3d46d5=new Map();for(const _0x3fd08a of _0x24f7fd['model']['document']['getRootNames']()){const _0x22015e=_0x24f7fd['editing']['view']['getDomRoot'](_0x3fd08a)['getClientRects']()['item'](0x0);_0x283857['push'](_0x3fd08a),_0x3d46d5['set'](_0x3fd08a,_0x22015e);}return _0x283857['sort']((_0x1f4883,_0x57fd28)=>{const _0x48407a=_0x3d46d5['get'](_0x1f4883),_0x43dcf5=_0x3d46d5['get'](_0x57fd28);return _0x48407a['y']-_0x43dcf5['y']||_0x48407a['x']-_0x43dcf5['x'];}),_0x283857;}}class Ue extends _0x24003c{static get['requires'](){return[re,_0x49f884];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3641c6){super(_0x3641c6),_0x3641c6['commands']['add']('previewFinalContent',new te(this['editor'])),_0x3641c6['config']['define']('trackChanges.preview.renderFunction',(_0x533ef8,_0x3f59fa)=>{for(const _0x12e7ec of _0x3f59fa)_0x533ef8['appendChild'](_0x12e7ec);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};