@ckeditor/ckeditor5-track-changes 44.2.0-alpha.14 → 44.2.0-alpha.15

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 (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Yt,Plugin as _0x5b5ba2,PendingActions as _0x597335,icons as _0x2d09ff}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x19cdbc,ObservableMixin as _0x30cd05,uid as _0x42ebb1,priorities as _0x671717,insertToPriorityArray as _0x4cf4fe,logWarning as _0x3d4166,getEnvKeystrokeText as _0x11c901,FocusTracker as _0x1774c8,KeystrokeHandler as _0xa2d227,Collection as _0x4bbfda}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x213787,View as _0x8ebe32,ViewCollection as _0x544a8b,FocusCycler as _0x33272f,ViewModel as _0x27514c,createDropdown as _0x44e6a2,SplitButtonView as _0x26edac,addListToDropdown as _0x220e75,MenuBarMenuView as _0x6e2ed6,MenuBarMenuListView as _0x47bb39,ListSeparatorView as _0x5082b9,MenuBarMenuListItemView as _0x20e25f,MenuBarMenuListItemButtonView as _0x578855,BodyCollection as _0x3ae499,Dialog as _0x4d3e51}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5840a6,hashObject as _0x18c408,surroundingMarkersDetector as _0x5b4051,FOCUS_ANNOTATION_KEYSTROKE as _0x1787b4,AriaDescriptionView as _0x727986,setupThreadKeyboardNavigation as _0x298186,trimHtml as _0x364e53,UserView as _0x2cc4a4,LateFocusButtonView as _0x3f4d01,getDateTimeFormatter as _0x53b4b2,getAllMarkersDomElementsSorted as _0x2f806e,sanitizeEditorConfig as _0x1f7218}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5cd888,LiveRange as _0x402ed1,LivePosition as _0x5ec540,DowncastWriter as _0x2c0f3d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x382718,toWidget as _0x3f4f22}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2d5e86,set as _0x2263fb,isEqual as _0x3308c1,unset as _0x3370dd,omit as Vt}from'lodash-es';import{Delete as _0x271fd6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x400f81,ShiftEnter as _0x356383}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x5718d8,_0x518bea){super(_0x5718d8),this['_enabledCommands']=_0x518bea,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 _0x1ff1ae of this['editor']['commands']['commands']())_0x1ff1ae['affectsData']&&!this['_enabledCommands']['has'](_0x1ff1ae)&&_0x1ff1ae['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x46c645 of this['editor']['commands']['commands']())_0x46c645['affectsData']&&!this['_enabledCommands']['has'](_0x46c645)&&_0x46c645['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x4b9504,_0x39dcc1){super(_0x4b9504),this['_suggestions']=_0x39dcc1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b5a4d){const _0x8196b7=this['_suggestions']['get'](_0x3b5a4d);if(!_0x8196b7)throw new _0x19cdbc('track-changes-accept-suggestion-not-found',this);const _0x555804=_0x8196b7['getRanges']();this['editor']['model']['canEditAt'](_0x555804)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x8196b7);}}class R extends Yt{['_suggestions'];constructor(_0x44b7a4,_0x478814){super(_0x44b7a4),this['_suggestions']=_0x478814,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4cf8e7){const _0x350ca3=this['_suggestions']['get'](_0x4cf8e7);if(!_0x350ca3)throw new _0x19cdbc('track-changes-discard-suggestion-not-found',this);const _0x3f15cb=_0x350ca3['getRanges']();this['editor']['model']['canEditAt'](_0x3f15cb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x350ca3);}}function cs(_0x27a91a,_0x21e72a){let _0x101e26='';return _0x101e26+=_0x27a91a['split']('*')['map']((_0x547651,_0x3244a3)=>_0x3244a3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x547651)+'</span>':nn(_0x547651))['join'](''),_0x21e72a&&(_0x101e26+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x21e72a['value']+'\x22\x20title=\x22'+_0x21e72a['title']+'\x22></span>'),_0x101e26;}function nn(_0x25171e){const _0x4d2e28=document['createElement']('span');return _0x4d2e28['innerText']=_0x25171e,_0x4d2e28['innerHTML'];}function Zt(_0x5654ac){return _0x5654ac['sort']((_0x99278e,_0x548ed1)=>'deletion'==_0x99278e['type']&&'deletion'!=_0x548ed1['type']?-0x1:'deletion'!=_0x99278e['type']&&'deletion'==_0x548ed1['type']?0x1:0x0);}function to(_0x584c8b,_0x5475f5){let _0x137fb0,_0x5575d0=0x0;const _0x285ebc=[],_0x5f1c99=_0x5475f5['schema'];for(;_0x5575d0<_0x584c8b['length'];){const _0x35f9f4=_0x584c8b[_0x5575d0],_0x330fcd=_0x584c8b[_0x5575d0+0x1];_0x137fb0||(_0x137fb0=_0x5475f5['createPositionBefore'](_0x35f9f4)),on(_0x5475f5,_0x35f9f4,_0x330fcd)||(_0x285ebc['push'](_0x5475f5['createRange'](_0x137fb0,_0x5f1c99['isObject'](_0x35f9f4)?_0x5475f5['createPositionAfter'](_0x35f9f4):_0x5475f5['createPositionAt'](_0x35f9f4,'end'))),_0x137fb0=null),_0x5575d0++;}return _0x285ebc;}function on(_0x55f36e,_0x417304,_0x25d60c){if(!_0x25d60c)return!0x1;const _0xbef2e5=_0x55f36e['createPositionAfter'](_0x417304),_0x31754a=_0x55f36e['createPositionBefore'](_0x25d60c);return _0xbef2e5['isTouching'](_0x31754a);}function ts(_0x381a81,_0x5d5bc9,_0xf5dde9){for(;_0xf5dde9['length'];){const _0x3b7247=_0xf5dde9['splice'](0x0,0x64);_0x381a81['change'](()=>{for(const _0x2f64d9 of _0x3b7247)_0x2f64d9['isInContent']&&_0x5d5bc9['execute'](_0x2f64d9['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x27a1d9,_0x3dae00,_0x91ce3){super(_0x27a1d9),this['_command']=_0x3dae00,this['_suggestions']=_0x91ce3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x332860=Array['from'](this['_suggestions']['values']())['some'](_0x499219=>_0x499219['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x332860;}['execute'](){const _0x565a20=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x1dc3ec of _0x565a20){const _0x11ac62=_0x1dc3ec['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11ac62))return;}ts(this['editor']['model'],this['_command'],_0x565a20);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4c7456,_0x229f42,_0x1bc41a){super(_0x4c7456),this['_command']=_0x229f42,this['_suggestions']=_0x1bc41a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2114f2=this['editor']['model']['document']['selection'],_0x27d31c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x167de0,_0x2d6729){const _0x268fbc=Array['from'](_0x167de0['getRanges']()),_0x40badd=new Set();for(const _0x5b696c of _0x2d6729)if(_0x5b696c['isInContent']){for(const _0x2ff0cb of _0x268fbc)for(const _0x59bdaa of _0x5b696c['getRanges']())(_0x2ff0cb['isIntersecting'](_0x59bdaa)||_0x167de0['isCollapsed']&&!_0x5b696c['isMultiRange']&&_0x5b696c['next']&&_0x59bdaa['end']['isTouching'](_0x2ff0cb['start']))&&_0x40badd['add'](_0x5b696c);}return _0x40badd;}(_0x2114f2,_0x27d31c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5863b6=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x16f2a1 of _0x5863b6){const _0x4f4f55=_0x16f2a1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4f4f55))return;}ts(this['editor']['model'],this['_command'],_0x5863b6);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x30cd05(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x43cc91,_0x185947){super(),this['id']=_0x185947['id'],this['type']=_0x185947['type'],this['subType']=_0x185947['subType']||null,this['author']=_0x185947['author'],this['creator']=_0x185947['creator']||_0x185947['author'],this['isExternal']=Boolean(_0x185947['attributes']&&_0x185947['attributes']['@external']),this['data']=null,this['_model']=_0x43cc91,this['_onAccept']=_0x185947['onAccept'],this['_onDiscard']=_0x185947['onDiscard'],this['_onAttributesChange']=_0x185947['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x185947['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 _0x15e2dc=this;for(;_0x15e2dc['previous'];)_0x15e2dc=_0x15e2dc['previous'];return _0x15e2dc;}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'](_0x1a8f35){this['_markerNames']['add'](_0x1a8f35);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4cc55c=>this['_model']['markers']['get'](_0x4cc55c))['filter'](_0x58ba61=>_0x58ba61);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5bc405=>{for(const _0x5dc156 of this['getMarkers']())_0x5bc405['removeMarker'](_0x5dc156);}),this['_markerNames']['clear']();}['removeMarker'](_0x316a49){this['_model']['change'](_0x5f13af=>{_0x5f13af['removeMarker'](_0x316a49);}),this['_markerNames']['delete'](_0x316a49);}['addRange'](_0x3ecccb){const _0x1a60ec='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a60ec),this['_model']['change'](_0x3c3687=>{_0x3c3687['addMarker'](_0x1a60ec,{'range':_0x3ecccb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14e887){for(const _0x275ee9 of this['getRanges']())if(_0x275ee9['isIntersecting'](_0x14e887))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x35e87d=>_0x35e87d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2a8767,_0x5265ad)=>[..._0x2a8767,..._0x5265ad['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1c6be9=this['getRanges']();if(0x1!=_0x1c6be9['length'])return null;const _0x47219a=_0x1c6be9[0x0],_0x312824=_0x47219a['start']['nodeAfter'],_0x423c69=_0x47219a['end']['nodeBefore'];return _0x312824 instanceof _0x5cd888?_0x312824!=_0x423c69?null:_0x312824: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 _0x5630c9=[];let _0x449817=this['head'];for(;_0x449817;)_0x5630c9['push'](_0x449817),_0x449817=_0x449817['next'];return _0x5630c9;}['setAttribute'](_0x4bdaed,_0x12eb83){const _0x3040bf=_0x2d5e86(this['attributes']);_0x2263fb(_0x3040bf,_0x4bdaed,_0x12eb83),_0x3308c1(_0x3040bf,this['attributes'])||(this['attributes']=_0x3040bf,this['_onAttributesChange'](_0x3040bf));}['removeAttribute'](_0x3478bf){const _0xdef4f1=_0x2d5e86(this['attributes']);_0x3370dd(_0xdef4f1,_0x3478bf),_0x3308c1(_0xdef4f1,this['attributes'])||(this['attributes']=_0xdef4f1,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 _0x42ebb1()['substr'](0x1,0x5);}}function o(_0x474c01,_0x2c4422,_0x24f492){const _0x48420a=_0x474c01['t'],t=_0x474c01['t'];switch(_0x2c4422){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',_0x24f492);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x24f492);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x24f492);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x24f492);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x24f492);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',_0x24f492);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x24f492);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',_0x24f492);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x24f492);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x24f492);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x24f492);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x24f492);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x24f492);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x24f492);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x24f492);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x24f492);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x24f492);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x24f492);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x24f492);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x24f492);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x24f492);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x24f492);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x24f492);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x24f492);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'},_0x24f492);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x24f492);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x24f492);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x24f492);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x24f492);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x24f492);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'},_0x24f492);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x24f492);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x24f492);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x24f492);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x24f492);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'},_0x24f492);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x24f492);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'},_0x24f492);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x24f492);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x24f492);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'},_0x24f492);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x24f492);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'},_0x24f492);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x24f492);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x24f492);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'},_0x24f492);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x24f492);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 _0x48420a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x24f492);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x48420a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x24f492);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x24f492);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'},_0x24f492);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'},_0x24f492);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'},_0x24f492);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2c4422;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x8e1758,_0x524e89){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x8e1758,this['_locale']=_0x524e89;}['getDescriptions'](_0x1df036){const _0x1da19b=[],_0x663470=new Set(),_0x481e9d=new Set();for(let _0x1274d8=0x0;_0x1274d8<_0x1df036['length'];_0x1274d8++){const _0x4f850f=_0x1df036[_0x1274d8];if(!_0x4f850f['isInContent'])continue;const _0x189bbb=this['_handleCustomCallbackDescription'](_0x4f850f);if(_0x189bbb){if(null!=_0x4f850f['subType']){if(_0x663470['has'](_0x4f850f['subType']))continue;_0x663470['add'](_0x4f850f['subType']);}_0x1da19b['push'](_0x189bbb);}else{if('attribute'!=_0x4f850f['type'])'insertion'!=_0x4f850f['type']&&'deletion'!=_0x4f850f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1da19b,_0x4f850f,_0x1df036[_0x1274d8+0x1]);else{const _0x38fe66=_0x4f850f['data']['key'];if(_0x481e9d['has'](_0x38fe66))continue;_0x481e9d['add'](_0x4f850f['data']['key']),_0x38fe66==m?this['_handleRenameSuggestionDescription'](_0x1da19b,_0x4f850f):this['_handleAttributeSuggestionDescription'](_0x1da19b,_0x4f850f);}}}return this['_resolveDescriptionItems'](_0x1da19b);}['registerDescriptionCallback'](_0xb68ccf){this['_customCallbacks']['push'](_0xb68ccf);}['registerElementLabel'](_0x51a9ca,_0x15ee31,_0x335fed=_0x671717['normal']){'function'==typeof _0x51a9ca?_0x4cf4fe(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51a9ca,'label':_0x15ee31,'priority':_0x335fed}):this['_itemLabels']['set'](_0x51a9ca,_0x15ee31);}['registerAttributeLabel'](_0x42bb51,_0x210252){this['_attributeLabels']['set'](_0x42bb51,_0x210252);}['getItemLabel'](_0x743124,_0x380f41=0x1){let _0x58ce56;for(const _0x3b086b of this['_itemLabelsCallbacks'])if(_0x3b086b['matchingCallback'](_0x743124)){_0x58ce56=_0x3b086b['label'];break;}return _0x58ce56||(_0x58ce56=this['_itemLabels']['get'](_0x743124['name'])),_0x58ce56?_0x58ce56(_0x380f41):0x1!==_0x380f41?_0x380f41+'\x20'+_0x743124['name']+'s':''+_0x743124['name'];}['_addDescriptionItems'](_0x38fa2e,_0x5a121c){const _0x137b9f=_0x5a121c['getFirstRange']()['getWalker'](),_0x4d5eb4='insertion'==_0x5a121c['type']?'add':'remove';for(const _0x17763b of _0x137b9f){const _0x31bfd5=_0x17763b['item'],_0x1dd079=_0x38fa2e[_0x38fa2e['length']-0x1];if(_0x31bfd5['is']('$textProxy'))_0x1dd079&&_0x1dd079['type']['indexOf']('Container')>-0x1&&_0x38fa2e['pop'](),_0x1dd079&&'text'==_0x1dd079['type']?_0x1dd079[_0x4d5eb4]+=_0x31bfd5['data']:_0x38fa2e['push']({'type':'text','add':'add'==_0x4d5eb4?_0x31bfd5['data']:'','remove':'remove'==_0x4d5eb4?_0x31bfd5['data']:''});else{if(this['_schema']['isObject'](_0x31bfd5)){const _0x539cbd=_0x31bfd5;if(_0x1dd079&&_0x1dd079['type']['indexOf']('Container')>-0x1&&_0x38fa2e['pop'](),'elementEnd'==_0x17763b['type'])continue;_0x1dd079&&_0x1dd079['type']==_0x4d5eb4+'Object'&&_0x1dd079['element']['name']==_0x539cbd['name']?_0x1dd079['quantity']++:_0x38fa2e['push']({'type':_0x4d5eb4+'Object','element':_0x539cbd,'quantity':0x1}),_0x137b9f['skip'](_0x4dfc28=>!('elementEnd'==_0x4dfc28['type']&&_0x4dfc28['item']==_0x31bfd5));}else{if(this['_schema']['checkChild'](_0x31bfd5,'$text')||_0x31bfd5['is']('element','softBreak')){const _0xdaf023=_0x31bfd5;if('add'==_0x4d5eb4&&'elementStart'==_0x17763b['type']||'remove'==_0x4d5eb4&&'elementEnd'==_0x17763b['type'])continue;if(_0x1dd079&&-0x1==_0x1dd079['type']['indexOf']('Container')){'text'==_0x1dd079['type']&&(_0x1dd079[_0x4d5eb4]+='\x0a');continue;}let _0x4ba5d9;if(_0x4ba5d9='add'==_0x4d5eb4?_0xdaf023['nextSibling']&&!this['_schema']['isObject'](_0xdaf023['nextSibling'])?_0xdaf023['nextSibling']:null:_0xdaf023['previousSibling']&&!this['_schema']['isObject'](_0xdaf023['previousSibling'])?_0xdaf023['previousSibling']:null,_0xdaf023['isEmpty']||_0x4ba5d9&&_0x4ba5d9['isEmpty']){const _0x16542d=_0x4ba5d9&&_0x4ba5d9['isEmpty']?_0x4ba5d9:_0xdaf023;_0x1dd079&&_0x1dd079['type']==_0x4d5eb4+'EmptyContainer'&&_0x1dd079['element']['name']==_0x16542d['name']?_0x1dd079['quantity']++:_0x38fa2e['push']({'type':_0x4d5eb4+'EmptyContainer','element':_0x16542d,'quantity':0x1});}else _0x38fa2e['push']({'type':_0x4d5eb4+'Container','element':_0xdaf023});}}}}}['_resolveDescriptionItems'](_0x41e00f){const _0x2a3b95=this['_locale'],_0xa2c081=[],_0x54882c=[],_0x52f420=[];for(const _0x5674cd of _0x41e00f)switch(_0x5674cd['type']){case'text':if(_0x5674cd['add']=_0x5674cd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5674cd['remove']=_0x5674cd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5674cd['add']&&''!=_0x5674cd['remove']){_0xa2c081['push']({'type':'replace','content':o(_0x2a3b95,'REPLACE_TEXT',['\x22'+_0x5674cd['remove']+'\x22','\x22'+_0x5674cd['add']+'\x22'])});continue;}if(null!=_0x5674cd['add']['match'](/^ +$/)){_0xa2c081['push']({'type':'insertion','content':o(_0x2a3b95,'*Insert:*\x20%0',o(_0x2a3b95,'ELEMENT_SPACE',_0x5674cd['add']['length']))});continue;}if(null!=_0x5674cd['remove']['match'](/^ +$/)){_0xa2c081['push']({'type':'deletion','content':o(_0x2a3b95,'*Remove:*\x20%0',o(_0x2a3b95,'ELEMENT_SPACE',_0x5674cd['remove']['length']))});continue;}if(''!=_0x5674cd['add']){_0xa2c081['push']({'type':'insertion','content':o(_0x2a3b95,'*Insert:*\x20%0','\x22'+_0x5674cd['add']+'\x22')});continue;}_0xa2c081['push']({'type':'deletion','content':o(_0x2a3b95,'*Remove:*\x20%0','\x22'+_0x5674cd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xa2c081['push']({'type':'insertion','content':o(_0x2a3b95,'*Insert:*\x20%0',this['getItemLabel'](_0x5674cd['element'],_0x5674cd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xa2c081['push']({'type':'deletion','content':o(_0x2a3b95,'*Remove:*\x20%0',this['getItemLabel'](_0x5674cd['element'],_0x5674cd['quantity']))});continue;case'addContainer':_0xa2c081['push']({'type':'insertion','content':o(_0x2a3b95,'*Split:*\x20%0',this['getItemLabel'](_0x5674cd['element'],_0x5674cd['quantity']))});continue;case'removeContainer':_0xa2c081['push']({'type':'deletion','content':o(_0x2a3b95,'*Merge:*\x20%0',this['getItemLabel'](_0x5674cd['element'],_0x5674cd['quantity']))});continue;case'addFormat':_0x54882c['push'](_0x5674cd['key']);continue;case'removeFormat':_0x52f420['push'](_0x5674cd['key']);continue;default:_0xa2c081['push'](_0x5674cd);}if(_0x54882c['length']){const _0x464f1d=_0x54882c['map'](_0x3ceccc=>this['_attributeLabels']['has'](_0x3ceccc)?this['_attributeLabels']['get'](_0x3ceccc):_0x3ceccc)['join'](',\x20');_0xa2c081['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x464f1d)});}if(_0x52f420['length']){const _0x37a658=_0x52f420['map'](_0x563b63=>this['_attributeLabels']['has'](_0x563b63)?this['_attributeLabels']['get'](_0x563b63):_0x563b63)['join'](',\x20');_0xa2c081['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x37a658)});}return _0xa2c081;}['_handleCustomCallbackDescription'](_0xfe97f9){for(const _0x47581c of this['_customCallbacks']){const _0x11a0e3=_0x47581c(_0xfe97f9);if(_0x11a0e3&&'type'in _0x11a0e3)return _0x11a0e3;}}['_handleAttributeSuggestionDescription'](_0x1532a8,_0x3df0fc){const _0x17d11e=_0x3df0fc['data'],_0x2e960c=void 0x0===_0x17d11e['newValue']?'removeFormat':'addFormat';_0x1532a8['push']({'type':_0x2e960c,'key':_0x17d11e['key']});}['_handleRenameSuggestionDescription'](_0x2e31e8,_0x1b120d){_0x2e31e8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1b120d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55b44d,_0x58b0de,_0x542163){if(this['_addDescriptionItems'](_0x55b44d,_0x58b0de),_0x542163&&_0x542163['getFirstRange']()&&!_0x58b0de['getFirstRange']()['end']['isEqual'](_0x542163['getFirstRange']()['start'])){const _0x536406=_0x55b44d[_0x55b44d['length']-0x1],_0x3a52a4='insertion'==_0x58b0de['type']?'add':'remove';_0x536406&&'text'==_0x536406['type']&&(_0x536406[_0x3a52a4]+='\x0a');}}}class U extends _0x5b5ba2{['afterInit'](){const _0x10721f=this['editor'],_0x57ac07=_0x10721f['plugins']['get']('TrackChangesEditing');_0x10721f['commands']['get']('showAIAssistant')&&_0x57ac07['enableCommand']('showAIAssistant');}}class V extends _0x5b5ba2{['afterInit'](){const _0x5c69cf=this['editor'],_0xbcd5bc=_0x5c69cf['locale'];if(!_0x5c69cf['plugins']['has']('AlignmentEditing'))return;const _0x4be837=_0x5c69cf['plugins']['get']('TrackChangesEditing');_0x4be837['enableDefaultAttributesIntegration']('alignment'),_0x4be837['registerBlockAttribute']('alignment'),_0x4be837['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xbcd5bc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b13ee=this['editor'],_0x5f5324=_0x2b13ee['locale'];_0x2b13ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310837=>{if('formatBlock'!=_0x310837['type'])return;const {data:_0x5d55b0}=_0x310837;if(_0x5d55b0&&'alignment'==_0x5d55b0['commandName']){const _0x5a220e=_0x5d55b0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5f5324,'*Format:*\x20%0',function(_0x2638a0){switch(_0x2638a0){case'left':return o(_0x5f5324,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5f5324,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5f5324,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5f5324,'FORMAT_JUSTIFY_TEXT');}}(_0x5a220e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5b5ba2{['afterInit'](){const _0x3de202=this['editor'],_0x5c45db=_0x3de202['plugins']['get']('TrackChangesEditing'),_0x2542ae=_0x3de202['locale'];for(const _0x2a5151 of ti){if(!_0x3de202['plugins']['has'](_0x2a5151))continue;const _0x4dceb9=_0x2a5151['slice'](0x0,-0x7)['toLowerCase'](),_0x2157a5='FORMAT_'+_0x4dceb9['toUpperCase']();_0x5c45db['enableDefaultAttributesIntegration'](_0x4dceb9),_0x5c45db['registerInlineAttribute'](_0x4dceb9),_0x5c45db['descriptionFactory']['registerAttributeLabel'](_0x4dceb9,o(_0x2542ae,_0x2157a5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c7731=this['editor'],_0x495670=_0x3c7731['locale'],_0x5b682c=_0x3c7731['plugins']['get']('TrackChangesEditing');function _0x1edc03(_0x5c6a82,_0x28f31c){_0x5b682c['descriptionFactory']['registerDescriptionCallback'](_0x2bfc99=>{if('formatInline'!=_0x2bfc99['type'])return;const {data:_0x2133c9}=_0x2bfc99;return _0x2133c9&&_0x2133c9['commandName']===_0x5c6a82?_0x2133c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x495670,'*Format:*\x20%0',_0x28f31c)}:{'type':'format','content':o(_0x495670,'*Remove\x20format:*\x20%0',_0x28f31c)}:void 0x0;});}_0x1edc03('bold',o(_0x495670,'FORMAT_BOLD')),_0x1edc03('italic',o(_0x495670,'FORMAT_ITALIC')),_0x1edc03('underline',o(_0x495670,'FORMAT_UNDERLINE')),_0x1edc03('code',o(_0x495670,'FORMAT_CODE')),_0x1edc03('strikethrough',o(_0x495670,'FORMAT_STRIKETHROUGH')),_0x1edc03('subscript',o(_0x495670,'FORMAT_SUBSCRIPT')),_0x1edc03('superscript',o(_0x495670,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5b5ba2{['afterInit'](){const _0x594eba=this['editor'],_0x49fd77=_0x594eba['locale'];if(!_0x594eba['plugins']['has']('BlockQuoteEditing'))return;const _0x54f65b=_0x594eba['plugins']['get']('TrackChangesEditing'),_0x3136e9=this['editor']['commands']['get']('blockQuote');_0x54f65b['enableCommand']('blockQuote',(_0x492106,_0x1dee81={})=>{const _0x4c60c7=this['editor']['model']['document']['selection'],_0x12f890=_0x1dee81&&void 0x0!==_0x1dee81['forceValue']?_0x1dee81['forceValue']:!_0x3136e9['value'];let _0x3bcd97=[];if(_0x12f890){const _0x33d8c6=Array['from'](_0x4c60c7['getSelectedBlocks']())['filter'](_0x16f1a7=>oo(_0x16f1a7)||function(_0x500940,_0x2a35fb){const _0x4ae508=_0x2a35fb['checkChild'](_0x500940['parent'],'blockQuote'),_0x25b035=_0x2a35fb['checkChild'](['$root','blockQuote'],_0x500940);return _0x4ae508&&_0x25b035;}(_0x16f1a7,this['editor']['model']['schema']));_0x3bcd97=to(_0x33d8c6,_0x594eba['model']);}else{const _0x56bd67=Array['from'](_0x4c60c7['getSelectedBlocks']())['filter'](_0x2bddec=>oo(_0x2bddec));_0x3bcd97=to(_0x56bd67,_0x594eba['model']);}_0x594eba['model']['change'](()=>{for(const _0x5e0f13 of _0x3bcd97)_0x54f65b['markBlockFormat'](_0x5e0f13,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x12f890}]});});}),_0x54f65b['descriptionFactory']['registerDescriptionCallback'](_0x118bad=>{const {data:_0x51d77a}=_0x118bad;if(_0x51d77a&&'blockQuote'==_0x51d77a['commandName']){const _0x110e34=o(_0x49fd77,'ELEMENT_BLOCK_QUOTE');return _0x51d77a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49fd77,'*Set\x20format:*\x20%0',_0x110e34)}:{'type':'format','content':o(_0x49fd77,'*Remove\x20format:*\x20%0',_0x110e34)};}});}}function oo(_0x4b451d){return'blockQuote'==_0x4b451d['parent']['name'];}class L extends _0x5b5ba2{['afterInit'](){const _0x5d30ca=this['editor'],_0x51f17f=_0x5d30ca['locale'],_0x533a95=_0x5d30ca['plugins']['get']('TrackChangesEditing');_0x5d30ca['plugins']['has']('BookmarkEditing')&&(_0x533a95['enableCommand']('insertBookmark'),_0x533a95['enableDefaultAttributesIntegration']('updateBookmark'),_0x533a95['registerBlockAttribute']('bookmarkId'),_0x533a95['descriptionFactory']['registerDescriptionCallback'](_0x19fbf1=>{if('insertion'!=_0x19fbf1['type']&&'deletion'!=_0x19fbf1['type']&&'attribute'!=_0x19fbf1['type'])return;const _0x37a625=_0x19fbf1['getContainedElement']();if(null==_0x37a625)return;if(!_0x37a625['is']('element','bookmark'))return;const _0x5edb84=_0x37a625['getAttribute']('bookmarkId');if('insertion'==_0x19fbf1['type'])return{'type':'insertion','content':o(_0x51f17f,'*Insert:*\x20%0','\x22'+_0x5edb84+'\x22\x20'+o(_0x51f17f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x19fbf1['type'])return{'type':'deletion','content':o(_0x51f17f,'*Remove:*\x20%0','\x22'+_0x5edb84+'\x22\x20'+o(_0x51f17f,'ELEMENT_BOOKMARK'))};const {data:_0x5b7f00}=_0x19fbf1;if(!_0x5b7f00||'bookmarkId'!=_0x5b7f00['key'])return;return{'type':'format','content':o(_0x51f17f,'*Set\x20bookmark:*\x20%0','\x22'+_0x5b7f00['newValue']+'\x22')};}));}}class J extends _0x5b5ba2{['afterInit'](){const _0x194219=this['editor'];_0x194219['plugins']['has']('CaseChange')&&(_0x194219['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x194219['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x194219['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5b5ba2{['afterInit'](){const _0x2ee7ad=this['editor'];_0x2ee7ad['commands']['get']('ckbox')&&_0x2ee7ad['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5b5ba2{['afterInit'](){const _0x190e0d=this['editor'];if(!_0x190e0d['plugins']['has']('CodeBlock'))return;const _0x319a95=_0x190e0d['plugins']['get']('TrackChangesEditing'),_0x552f73=_0x190e0d['locale'],_0x2913c5=_0x190e0d['config']['get']('codeBlock')['languages'],_0x27d566=_0x190e0d['commands']['get']('codeBlock');_0x319a95['enableCommand']('indentCodeBlock'),_0x319a95['enableCommand']('outdentCodeBlock'),_0x319a95['enableCommand']('codeBlock',(_0x361c40,_0x55b73c={})=>{const _0x55273e=_0x190e0d['model'],_0x234825=_0x190e0d['model']['document']['selection'],_0x5237ac=_0x55b73c&&void 0x0!==_0x55b73c['forceValue']?_0x55b73c['forceValue']:!_0x27d566['value'];let _0x4e08b3;_0x55b73c['language']||(_0x55b73c['language']=_0x2913c5[0x0]['language']),_0x4e08b3=_0x5237ac?Array['from'](_0x234825['getSelectedBlocks']())['filter'](_0x517bc5=>eo(_0x517bc5)||function(_0x40ebde,_0x33973c){if(_0x40ebde['is']('rootElement')||_0x33973c['isLimit'](_0x40ebde))return!0x1;return _0x33973c['checkChild'](_0x40ebde['parent'],'codeBlock');}(_0x517bc5,_0x55273e['schema'])):Array['from'](_0x234825['getSelectedBlocks']())['filter'](_0x5c7adb=>eo(_0x5c7adb));const _0x3004dd=to(_0x4e08b3,_0x55273e);_0x55273e['change'](()=>{for(const _0xb9fd95 of _0x3004dd)_0x319a95['markBlockFormat'](_0xb9fd95,{'commandName':'codeBlock','commandParams':[{..._0x55b73c,'forceValue':_0x5237ac}],'formatGroupId':'blockName'});});}),(_0x319a95['descriptionFactory']['registerElementLabel']('codeBlock',_0xba94f0=>o(_0x552f73,'ELEMENT_CODE_BLOCK',_0xba94f0)),_0x319a95['descriptionFactory']['registerDescriptionCallback'](_0x449393=>{if('formatBlock'!=_0x449393['type'])return;const _0x3bdd02=_0x552f73['t'],{data:_0x35ea86}=_0x449393;if(!_0x35ea86||'codeBlock'!=_0x35ea86['commandName'])return;const _0x1eaffc=_0x35ea86['commandParams'][0x0]['language'],_0xbbcc70=_0x3bdd02(_0x2913c5['find'](_0x13749a=>_0x13749a['language']===_0x1eaffc)['label'])['toLowerCase']();return _0x35ea86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x552f73,'*Set\x20format:*\x20%0',o(_0x552f73,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xbbcc70+')')}:{'type':'format','content':o(_0x552f73,'*Remove\x20format:*\x20%0',o(_0x552f73,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xfed76d){return'codeBlock'==_0xfed76d['name'];}class z extends _0x5b5ba2{['afterInit'](){const _0x52cbe4=this['editor'];if(!_0x52cbe4['plugins']['has']('CommentsEditing'))return;_0x52cbe4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2d3f7e,_0x6c4e17,_0x328011){const _0x4ac7e8=[];for(const _0x4e3840 of _0x6c4e17['getItems']())_0x4e3840['hasAttribute'](_0x2d3f7e)&&_0x4ac7e8['push'](_0x328011['createRangeOn'](_0x4e3840));return _0x4ac7e8;}function De(_0x1c0536,_0x17763e,{showActiveMarker:_0x98e205=!0x0}={}){const _0x61a0a2=_0x1c0536['plugins']['get']('TrackChangesEditing');return(_0x4d5a68,_0x5b0fa2,_0x3a8f0f)=>{if(!_0x3a8f0f['consumable']['test'](_0x5b0fa2['markerRange'],_0x4d5a68['name']))return;const _0x1e91ae=_0x5b0fa2['markerRange']['getWalker'](),_0x554f3c=_0x5b0fa2['markerRange']['start'],_0x549885=_0x1c0536['model']['schema'];let _0x3891ed=null,_0x206b3f=null,_0x19bc7e=!0x1,_0x36b0bf=!0x1;for(const _0x29462a of _0x1e91ae){const _0x47da22=_0x29462a['item'];_0x19bc7e=_0x19bc7e||_0x549885['isContent'](_0x47da22);const _0x37dcf7=_0x3a8f0f['mapper']['toViewElement'](_0x47da22);if(_0x37dcf7&&_0x37dcf7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29462a['type']&&(_0x549885['isBlock'](_0x47da22)&&!_0x549885['isLimit'](_0x47da22)&&(_0x47da22['nextSibling']||_0x554f3c['isAtEnd']?_0x3891ed&&_0x3891ed['parent']==_0x47da22||(_0x3891ed=_0x47da22,_0x3db40d(_0x29462a['previousPosition']),_0x36b0bf=!0x0):_0x206b3f=_0x206b3f||_0x29462a['previousPosition']));}function _0x3db40d(_0x428349){const {authorId:_0x56263d}=_0x61a0a2['_splitMarkerName'](_0x5b0fa2['markerName']),_0x4dbefd=_0x3a8f0f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17763e,'data-author-id':_0x56263d}),_0x28f32d=_0x3a8f0f['mapper']['toViewPosition'](_0x428349);_0x98e205&&_0x61a0a2['activeMarkers']['includes'](_0x5b0fa2['markerName'])&&_0x3a8f0f['writer']['addClass']('ck-suggestion-marker--active',_0x4dbefd),_0x3a8f0f['writer']['insert'](_0x28f32d,_0x4dbefd),_0x3a8f0f['mapper']['bindElementToMarker'](_0x4dbefd,_0x5b0fa2['markerName']);}_0x19bc7e||_0x36b0bf||!_0x206b3f||_0x3db40d(_0x206b3f);};}class K extends _0x5b5ba2{static get['requires'](){return[_0x271fd6];}['init'](){const _0x3f1ea8=this['editor'],_0x272c07=_0x3f1ea8['plugins']['get']('TrackChangesEditing');_0x272c07['enableCommand']('delete');const _0x376e91=_0x3f1ea8['commands']['get']('deleteForward');_0x272c07['enableCommand']('deleteForward',(_0x3133f7,_0x305c5b={})=>{const _0x3f776f=_0x3f1ea8['model']['createSelection'](_0x3f1ea8['model']['document']['selection']);_0x3f776f['isCollapsed']&&_0x3f1ea8['model']['modifySelection'](_0x3f776f,{'direction':'forward','unit':_0x305c5b['unit']});const _0x15d74f=_0x3f776f['getFirstRange'](),_0x925a5b=_0x402ed1['fromRange'](_0x15d74f);let _0xc18f75;_0x3133f7(_0x305c5b),_0xc18f75='$graveyard'==_0x925a5b['root']['rootName']?_0x3f1ea8['model']['createRange'](_0x15d74f['start']):_0x3f1ea8['model']['createRange'](_0x925a5b['start'],_0x925a5b['end']),_0x925a5b['detach'](),_0x3f1ea8['model']['enqueueChange'](_0x376e91['buffer']['batch'],_0x2b6c9d=>{_0x376e91['buffer']['lock'](),_0x2b6c9d['setSelection'](_0x2b6c9d['createRange'](_0xc18f75['end'])),_0x376e91['buffer']['unlock']();});}),_0x3f1ea8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3f1ea8,'merge'),{'priority':'high'}),_0x3f1ea8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x58453f,_0x334f46,_0x4fb82a)=>{_0x4fb82a['options']['showSuggestionHighlights']&&De(_0x3f1ea8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x58453f,_0x334f46,_0x4fb82a);},{'priority':'high'}),_0x3f1ea8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x370385,_0x352e68,_0x38173e)=>{const _0x5022b6=_0x38173e['mapper']['markerNameToElements'](_0x352e68['markerName']);if(_0x5022b6){for(const _0x30ce33 of _0x5022b6)_0x30ce33['is']('uiElement')&&(_0x38173e['mapper']['unbindElementFromMarkerName'](_0x30ce33,_0x352e68['markerName']),_0x38173e['writer']['remove'](_0x30ce33));}},{'priority':'high'});}}class W extends _0x5b5ba2{['afterInit'](){const _0x136524=this['editor'];if(!_0x136524['plugins']['has']('ListEditing'))return;const _0x5adcdb=_0x136524['locale'],_0xa69017=_0x136524['plugins']['get']('TrackChangesEditing'),_0x3fb94d=_0x136524['plugins']['has']('TodoListEditing'),_0x477f71=!!_0x136524['config']['get']('list.multiBlock');function _0x4c1248(_0x1f1cfb){return{'type':'format','content':''+o(_0x5adcdb,'*Set\x20format:*\x20%0',_0x1f1cfb)};}function _0x616eeb(_0xf7f08f){return{'type':'format','content':''+o(_0x5adcdb,'*Remove\x20format:*\x20%0',_0xf7f08f)};}_0xa69017['enableDefaultAttributesIntegration']('numberedList'),_0xa69017['enableDefaultAttributesIntegration']('bulletedList'),_0xa69017['enableDefaultAttributesIntegration']('customNumberedList'),_0xa69017['enableDefaultAttributesIntegration']('customBulletedList'),_0xa69017['enableDefaultAttributesIntegration']('indentList'),_0xa69017['enableDefaultAttributesIntegration']('outdentList'),_0xa69017['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xa69017['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xa69017['registerBlockAttribute']('listItemId'),_0xa69017['registerBlockAttribute']('listType'),_0xa69017['registerBlockAttribute']('listIndent'),_0x477f71&&(_0xa69017['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xa69017['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3fb94d&&(_0xa69017['enableDefaultAttributesIntegration']('todoList'),_0xa69017['enableDefaultAttributesIntegration']('checkTodoList'),_0xa69017['registerBlockAttribute']('todoListChecked'),_0xa69017['descriptionFactory']['registerDescriptionCallback'](_0xbfe882=>{const {data:_0x34b372}=_0xbfe882;if(_0x34b372&&'todoListChecked'==_0x34b372['key'])return{'type':'format','content':_0x34b372['newValue']?o(_0x5adcdb,'*Check\x20item*'):o(_0x5adcdb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x154b12=>{if(_0x154b12['batch']['isUndo'])return!0x1;let _0x5e6d74=!0x1;const _0x27f789=_0xa69017['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x396fbd=>'todoListChecked'===_0xa69017['_getAttributeKey'](_0x396fbd));for(const _0x3eaba9 of _0x27f789){'todo'!=_0x3eaba9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xa69017['_findSuggestions'](_0x3eaba9['getFirstRange'](),'attribute')['find'](_0xccce85=>'listType'===_0xa69017['_getAttributeKey'](_0xccce85['suggestion']))||(_0x154b12['removeMarker'](_0x3eaba9['getFirstMarker']()),_0x5e6d74=!0x0));}return _0x5e6d74;})),_0xa69017['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5adcdb,'FORMAT_INDENT'));const _0x5bccc4={'type':'format','content':''};_0xa69017['descriptionFactory']['registerDescriptionCallback'](_0x445b55=>{const {data:_0x10a2a5}=_0x445b55;if(!_0x10a2a5||'listType'!=_0x10a2a5['key'])return;let _0x3787e8=_0x445b55['head'];for(;_0x3787e8;){if(_0x3787e8['data']&&(('listStyle'==_0x3787e8['data']['key']||'listMarkerStyle'==_0x3787e8['data']['key'])&&(_0x3787e8['data']['newValue']&&'default'!=_0x3787e8['data']['newValue']||'default'!=_0x3787e8['data']['oldValue']&&!_0x10a2a5['newValue'])||!_0x477f71&&_0x3787e8['data']['key']==m))return _0x5bccc4;_0x3787e8=_0x3787e8['next'];}if(null==_0x10a2a5['newValue'])switch(_0x10a2a5['oldValue']){case'bulleted':return _0x616eeb(o(_0x5adcdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x616eeb(o(_0x5adcdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x616eeb(o(_0x5adcdb,'ELEMENT_TODO_LIST'));}switch(_0x10a2a5['newValue']){case'bulleted':return _0x4c1248(o(_0x5adcdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c1248(o(_0x5adcdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c1248(o(_0x5adcdb,'ELEMENT_TODO_LIST'));}}),_0xa69017['descriptionFactory']['registerDescriptionCallback'](_0x18d1c4=>{const {data:_0x5db40d}=_0x18d1c4;if(_0x5db40d&&'listIndent'==_0x5db40d['key'])return null==_0x5db40d['newValue']||null==_0x5db40d['oldValue']&&0x0==_0x5db40d['newValue']?_0x5bccc4:void 0x0;}),_0xa69017['descriptionFactory']['registerDescriptionCallback'](_0x436127=>{if('attribute'!=_0x436127['type'])return;const {data:_0x3628c0}=_0x436127;if(!_0x3628c0||'listItemId'!=_0x3628c0['key'])return;const _0x29de4b=Te(_0x436127);return'newValue'==_0x29de4b?{'type':'format','content':o(_0x5adcdb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x29de4b?{'type':'format','content':o(_0x5adcdb,'*Split:*\x20list\x20item')}:_0x5bccc4;}),_0x136524['model']['document']['registerPostFixer'](_0x1d0d25=>this['listItemIdFixer'](_0x1d0d25)),_0x136524['model']['document']['registerPostFixer'](_0x1bb96e=>this['noTrackChangesFixer'](_0x1bb96e)),_0x136524['model']['document']['on']('change:data',(_0x164937,_0x3f6cd5)=>{if(_0x3f6cd5['isUndo']||!_0x3f6cd5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x25039b){if(_0x25039b['batch']['isUndo']||!_0x25039b['batch']['isLocal'])return!0x1;let _0x1d0f8a=!0x1;const _0x1c9d5f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54e354=>_0x54e354['data']&&'listItemId'==_0x54e354['data']['key'])['filter'](_0x1807ad=>_0x1807ad['data']['newValue']&&_0x1807ad['data']['oldValue']);for(const _0x25f748 of _0x1c9d5f)Te(_0x25f748)||(_0x25039b['removeMarker'](_0x25f748['getFirstMarker']()),_0x1d0f8a=!0x0);return _0x1d0f8a;}['noTrackChangesFixer'](_0x366b51){if(_0x366b51['batch']['isUndo']||!_0x366b51['batch']['isLocal'])return!0x1;const _0x3403e7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3403e7['trackChangesCommand']['value'])return!0x1;let _0x28659a=!0x1;const _0x172213=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4a1783=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1c79c6=>'attribute'==_0x1c79c6['type'])['filter'](_0x871a2b=>_0x172213['includes'](_0x871a2b['attributeKey']));if(0x0==_0x4a1783['length'])return _0x28659a;for(const _0x3f1ce9 of _0x4a1783){const _0x213492=_0x3403e7['_findSuggestions'](_0x3f1ce9['range'],'attribute')['filter'](_0x36c312=>!_0x36c312['meta']['isNextTo'])['map'](_0x12f873=>_0x12f873['suggestion'])['filter'](_0x194af5=>{const _0x3d8280=_0x3403e7['_getAttributeKey'](_0x194af5);return _0x172213['includes'](_0x3d8280);});if(_0x213492['length']){for(const _0x1e82b1 of _0x213492)_0x366b51['removeMarker'](_0x1e82b1['getFirstMarker']());_0x28659a=!0x0;}}return _0x28659a;}['assureChains'](){const _0x154af3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2471cf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x294225;const _0x547b7c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5225e2=>{if(_0x5225e2['data']['oldRange']||!_0x5225e2['data']['newRange'])return null;if(!_0x5225e2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xb2191d}=_0x154af3['_splitMarkerName'](_0x5225e2['name']);if(!_0x154af3['hasSuggestion'](_0xb2191d))return null;const _0x558b46=_0x154af3['getSuggestion'](_0xb2191d);return _0x2471cf['includes'](_0x558b46['data']['key']);})['map'](_0xe82fd8=>{const {id:_0x1d2870}=_0x154af3['_splitMarkerName'](_0xe82fd8['name']),_0x4ea62d=_0x154af3['getSuggestion'](_0x1d2870);return _0x294225=_0x4ea62d['attributes']['groupId'],_0x4ea62d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x547b7c['size'])return;const _0x4b59ab=_0x154af3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cf121=>'attribute'==_0x4cf121['type']&&_0x4cf121['data']&&_0x2471cf['includes'](_0x4cf121['data']['key'])&&_0x4cf121['attributes']['groupId']!=_0x294225)['map'](_0x2bd8ab=>({'listItem':_0x2bd8ab['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2bd8ab['attributes']['groupId']})),_0x4db22d=new Set();for(const {groupId:_0x59408a,listItem:_0x4b22a9}of _0x4b59ab)_0x547b7c['has'](_0x4b22a9)&&_0x4db22d['add'](_0x59408a);for(const _0x3ccc17 of _0x154af3['getSuggestions']())_0x4db22d['has'](_0x3ccc17['attributes']['groupId'])&&_0x3ccc17['setAttribute']('groupId',_0x294225);}['_supportLegacySuggestions'](){const _0x3235b2=this['editor'],_0x1b66de=_0x3235b2['locale'],_0x1ebbc1=_0x3235b2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1ebbc1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x485765,_0x1de3f0){const _0x146d16=[];for(let _0x499a42 of _0x485765)_0x499a42['start']['nodeAfter']===_0x499a42['end']['parent']&&(_0x499a42=_0x3235b2['model']['createRange'](_0x3235b2['model']['createPositionAt'](_0x499a42['start']['nodeAfter'],0x0))),_0x146d16['push'](_0x499a42);_0x3235b2['model']['change'](_0x18b81a=>{const _0x27854b=_0x3235b2['model']['document']['selection'],_0x27434d=Array['from'](_0x27854b['getRanges']())['map'](_0x4ea576=>_0x402ed1['fromRange'](_0x4ea576));_0x18b81a['setSelection'](_0x146d16),_0x3235b2['commands']['get'](_0x1de3f0['commandName'])['refresh'](),_0x1de3f0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3235b2['execute'](_0x1de3f0['commandName'],..._0x1de3f0['commandParams']),_0x18b81a['setSelection'](_0x27434d);for(const _0xb24cb of _0x27434d)_0xb24cb['detach']();});}),_0x1ebbc1['descriptionFactory']['registerElementLabel'](function(_0x15bd51){const _0x7cb27f=!_0x3235b2['model']['schema']['isObject'](_0x15bd51),_0x1a03bc=_0x15bd51['previousSibling'],_0x5119e5=_0x15bd51['nextSibling'],_0x394dd7=_0x15bd51['getAttribute']('listItemId'),_0x5a34ff=!_0x1a03bc||_0x1a03bc['getAttribute']('listItemId')!==_0x394dd7,_0x520b5c=!_0x5119e5||_0x5119e5['getAttribute']('listItemId')!==_0x394dd7;return _0x7cb27f&&Boolean(_0x394dd7)&&_0x5a34ff&&_0x520b5c;},_0x5ca33d=>o(_0x1b66de,'ELEMENT_LIST_ITEM',_0x5ca33d));}['_registerLegacyDescription'](){const _0x3eec8c=this['editor'],_0xc029d7=_0x3eec8c['locale'];function _0x40f0ac(_0x2e7ccd){const _0x375614=_0x3eec8c['commands']['get']('bulletedList')['value'],_0x555d40=_0x3eec8c['commands']['get']('numberedList')['value'];return'numberedList'===_0x2e7ccd?_0x375614:_0x555d40;}_0x3eec8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3de141){if('formatBlock'!=_0x3de141['type'])return;const {data:_0x423a59}=_0x3de141;if(!_0x423a59)return;let _0x366810,_0x4949f9,_0x5ac54f,_0x15533a;switch(_0x423a59['commandName']){case'bulletedList':_0x5ac54f=_0x423a59['commandParams'][0x0]['forceValue'],_0x15533a=_0x40f0ac(_0x423a59['commandName']),_0x366810=_0x5ac54f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x15533a&&_0x3eec8c['config']['get']('list.multiBlock')||(_0x366810='*Change\x20to:*\x20%0'),_0x4949f9={'type':'format','content':o(_0xc029d7,_0x366810,o(_0xc029d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ac54f=_0x423a59['commandParams'][0x0]['forceValue'],_0x15533a=_0x40f0ac(_0x423a59['commandName']),_0x366810=_0x5ac54f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x15533a&&_0x3eec8c['config']['get']('list.multiBlock')||(_0x366810='*Change\x20to:*\x20%0'),_0x4949f9={'type':'format','content':o(_0xc029d7,_0x366810,o(_0xc029d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x366810='*Indent:*\x20%0',_0x4949f9={'type':'format','content':o(_0xc029d7,_0x366810,o(_0xc029d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x366810=function(_0x3b4ef0){const _0x120538=_0x3b4ef0['getFirstRange']();let _0x34498e=_0x120538['start']['nodeAfter'];for(;_0x34498e&&_0x120538['containsItem'](_0x34498e);){if(_0x34498e['getAttribute']('listIndent')>0x0)return!0x1;_0x34498e=_0x34498e['nextSibling'];}return!0x0;}(_0x3de141)?o(_0xc029d7,'*Format:*\x20remove\x20from\x20%0',o(_0xc029d7,function(_0x19b053){return'ELEMENT_'+_0x19b053['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3de141))):o(_0xc029d7,'*Outdent:*\x20%0',o(_0xc029d7,'ELEMENT_LIST_ITEM')),_0x4949f9={'type':'format','content':_0x366810};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x423a59['multipleBlocks']&&(_0x366810='*Merge:*\x20%0',_0x4949f9={'type':'deletion','content':o(_0xc029d7,_0x366810,o(_0xc029d7,'ELEMENT_LIST_ITEM'))});}return _0x4949f9;});}}function Te(_0x43c455){let _0x188b85=_0x43c455['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x188b85;){const _0x15a7c4=_0x188b85['getAttribute']('listItemId');if(!_0x15a7c4)return!0x1;if(_0x15a7c4==_0x43c455['data']['newValue'])return'newValue';if(_0x15a7c4==_0x43c455['data']['oldValue'])return'oldValue';_0x188b85=_0x188b85['previousSibling'];}return!0x1;}class Se extends _0x5b5ba2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x52715a=this['editor']['config']['get']('list.properties'),_0xb7142d=this['editor']['plugins']['get']('TrackChangesEditing');_0x52715a['styles']&&(_0xb7142d['enableDefaultAttributesIntegration']('listStyle'),_0xb7142d['registerBlockAttribute']('listStyle')),_0x52715a['reversed']&&(_0xb7142d['enableDefaultAttributesIntegration']('listReversed'),_0xb7142d['registerBlockAttribute']('listReversed')),_0x52715a['startIndex']&&(_0xb7142d['enableDefaultAttributesIntegration']('listStart'),_0xb7142d['registerBlockAttribute']('listStart'));const _0x516b55={'type':'format','content':''};_0xb7142d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf9e689=this['editor']['locale'];_0xb7142d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xf9e689,'FORMAT_LIST_REVERSED')),_0xb7142d['descriptionFactory']['registerDescriptionCallback'](_0x495a77=>{const {data:_0x2108f9}=_0x495a77;if(_0x2108f9&&'listReversed'==_0x2108f9['key'])return null==_0x2108f9['newValue']||0x0==_0x2108f9['newValue']&&null==_0x2108f9['oldValue']?_0x516b55:void 0x0;}),_0xb7142d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xf9e689,'FORMAT_LIST_START')),_0xb7142d['descriptionFactory']['registerDescriptionCallback'](_0x20142e=>{const {data:_0x1b22a5}=_0x20142e;if(_0x1b22a5&&'listStart'==_0x1b22a5['key'])return null==_0x1b22a5['newValue']||0x1==_0x1b22a5['newValue']&&null==_0x1b22a5['oldValue']?_0x516b55:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x370cbb=>{if(_0x370cbb['batch']['isUndo'])return!0x1;let _0x39514e=!0x1;const _0x3540d1=_0xb7142d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a8400=>{const _0x39222d=_0xb7142d['_getAttributeKey'](_0x5a8400);return'listStart'==_0x39222d||'listReversed'==_0x39222d;});for(const _0x4a7b5f of _0x3540d1){const _0x4316b1=_0x4a7b5f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4316b1||'customNumbered'==_0x4316b1)continue;_0xb7142d['_findSuggestions'](_0x4a7b5f['getFirstRange'](),'attribute')['find'](_0x13b142=>'listType'==_0xb7142d['_getAttributeKey'](_0x13b142['suggestion']))||(_0x370cbb['removeMarker'](_0x4a7b5f['getFirstMarker']()),_0x39514e=!0x0);}return _0x39514e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x28d00e){const _0x45f075=this['editor']['locale'],{data:_0x34e57d}=_0x28d00e,_0x24103a={'type':'format','content':''};if(!_0x34e57d||'listStyle'!=_0x34e57d['key'])return;if(!_0x34e57d['oldValue'])return'default'==_0x34e57d['newValue']?_0x24103a:{'type':'format','content':''+o(_0x45f075,'*Set\x20format:*\x20%0',o(_0x45f075,this['_getTranslationKeyForListStyle'](_0x34e57d['newValue'])))};if(!_0x34e57d['newValue']){if('default'==_0x34e57d['oldValue'])return _0x24103a;let _0x1c8f61=_0x28d00e['head'];for(;_0x1c8f61;){if(_0x1c8f61['data']&&'listType'==_0x1c8f61['data']['key']&&_0x1c8f61['data']['newValue'])return _0x24103a;_0x1c8f61=_0x1c8f61['next'];}return{'type':'format','content':''+o(_0x45f075,'*Remove\x20format:*\x20%0',o(_0x45f075,this['_getTranslationKeyForListStyle'](_0x34e57d['oldValue'])))};}if('default'!=_0x34e57d['newValue'])return{'type':'format','content':''+o(_0x45f075,'*Set\x20format:*\x20%0',o(_0x45f075,this['_getTranslationKeyForListStyle'](_0x34e57d['newValue'])))};let _0x17f187=_0x28d00e['head'];for(;_0x17f187;){if(_0x17f187['data']&&'listType'==_0x17f187['data']['key']&&_0x17f187['data']['newValue']&&_0x17f187['data']['oldValue'])return _0x24103a;_0x17f187=_0x17f187['next'];}return{'type':'format','content':o(_0x45f075,'*Set\x20format:*\x20%0',o(_0x45f075,'ELEMENT_'+_0x28d00e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x28f360=this['editor'],_0x29f956=_0x28f360['locale'];_0x28f360['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497af6=>{if('formatBlock'!=_0x497af6['type'])return;const {data:_0x27c8d8}=_0x497af6;if(!_0x27c8d8)return;let _0xe4b501,_0x107815;switch(_0x27c8d8['commandName']){case'listStyle':_0xe4b501='*Change\x20to:*\x20%0',_0x107815={'type':'format','content':o(_0x29f956,_0xe4b501,o(_0x29f956,this['_getTranslationKeyForListStyle'](_0x27c8d8['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe4b501=_0x27c8d8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x107815={'type':'format','content':o(_0x29f956,_0xe4b501)};break;case'listStart':_0xe4b501='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x107815={'type':'format','content':o(_0x29f956,_0xe4b501,_0x27c8d8['commandParams'][0x0]['startIndex'])};}return _0x107815;});}['_getTranslationKeyForListStyle'](_0x3d4de8){return'ELEMENT_'+function(_0x4dcb98){if(_e['includes'](_0x4dcb98))return'bulleted';if(Re['includes'](_0x4dcb98))return'numbered';return null;}(_0x3d4de8)['toUpperCase']()+'_LIST_'+_0x3d4de8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5b5ba2{['afterInit'](){const _0x5d33c1=this['editor'];_0x5d33c1['commands']['get']('emoji')&&_0x5d33c1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5b5ba2{static get['requires'](){return[_0x400f81];}['init'](){const _0x2cdae1=this['editor'],_0x44601c=_0x2cdae1['plugins']['get']('TrackChangesEditing'),_0x5cb80d=_0x2cdae1['commands']['get']('enter');_0x44601c['enableCommand']('enter',()=>{_0x2cdae1['model']['change'](_0x24a867=>{const _0x295225=_0x2cdae1['model']['document']['selection'],_0x888c10=_0x295225['getFirstPosition'](),_0xdff073=_0x402ed1['fromRange'](_0x295225['getFirstRange']());if(_0x5cb80d['enterBlock'](_0x24a867)){const _0x2f4ebd=_0x2cdae1['model']['createPositionAt'](_0x888c10['parent']['nextSibling'],0x0),_0x24f027=_0x24a867['createRange'](_0x888c10,_0x2f4ebd);_0x44601c['markInsertion'](_0x24f027);}else _0x24a867['setSelection'](_0x24a867['createRange'](_0xdff073['end']));_0xdff073['detach'](),_0x5cb80d['fire']('afterExecute',{'writer':_0x24a867});});}),_0x2cdae1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2cdae1,'split'),{'priority':'high'}),_0x2cdae1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2df1a5,_0x349419,_0x4e3a21)=>{const _0x17cd01=_0x4e3a21['mapper']['markerNameToElements'](_0x349419['markerName']);if(_0x17cd01){for(const _0x186f33 of _0x17cd01)_0x186f33['hasClass']('ck-suggestion-marker-split')&&(_0x4e3a21['mapper']['unbindElementFromMarkerName'](_0x186f33,_0x349419['markerName']),_0x4e3a21['writer']['remove'](_0x186f33));}},{'priority':'high'}),_0x2cdae1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f7393,_0x3ba42c,_0x3e5f36)=>{_0x3e5f36['options']['showSuggestionHighlights']&&De(_0x2cdae1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3f7393,_0x3ba42c,_0x3e5f36);},{'priority':'high'});}}class Z extends _0x5b5ba2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x451a87=this['editor']['plugins']['get']('TrackChangesEditing');_0x451a87['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x451a87['enableCommand']('findNext'),_0x451a87['enableCommand']('findPrevious'),_0x451a87['enableCommand']('replace'),_0x451a87['enableCommand']('replaceAll');}['handleFindCommand'](_0x33c939,_0x2bd1e1,_0x5c5057={}){const _0x52aaa3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x33c939(_0x5baf7b=>{let _0x76a64a=('string'==typeof _0x2bd1e1?_0x52aaa3['findByTextCallback'](_0x2bd1e1,_0x5c5057):_0x2bd1e1)(_0x5baf7b);Array['isArray'](_0x76a64a)&&(_0x76a64a={'results':_0x76a64a,'searchText':'string'==typeof _0x2bd1e1?_0x2bd1e1:''});const _0x49f3b2=_0x76a64a['results']['filter'](_0x51b899=>!0x1===this['_isInDeletionRange'](_0x51b899,_0x5baf7b['item']));return{..._0x76a64a,'results':_0x49f3b2};},_0x5c5057);}['_isInDeletionRange'](_0x523387,_0x6da363){const _0x527aa2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6da363,_0x523387['start']),this['editor']['model']['createPositionAt'](_0x6da363,_0x523387['end']));for(const _0x59ec59 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x527aa2['getIntersection'](_0x59ec59['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5b5ba2{['afterInit'](){const _0xfd1947=this['editor']['locale'],_0x2b19ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4fa9e7,commandName:_0x362a66}of ro)this['editor']['plugins']['has'](_0x4fa9e7)&&(_0x2b19ab['enableDefaultAttributesIntegration'](_0x362a66),_0x2b19ab['registerInlineAttribute'](_0x362a66));_0x2b19ab['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xfd1947,'FORMAT_FONT_SIZE')),_0x2b19ab['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xfd1947,'FORMAT_FONT_FAMILY')),_0x2b19ab['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xfd1947,'FORMAT_FONT_COLOR')),_0x2b19ab['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xfd1947,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4f80=this['editor'],_0x51341e=_0x1f4f80['locale'];_0x1f4f80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3174e9=>{const _0xf4aafa=_0x51341e['t'];if('formatInline'!=_0x3174e9['type'])return;const {data:_0x21f6bb}=_0x3174e9;if(null!=_0x21f6bb){if('fontSize'==_0x21f6bb['commandName']){const _0x37860c=_0x21f6bb['commandParams'][0x0]['value'];if(_0x37860c){const _0x123d59=_0xf4aafa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x126573=>_0x126573['model']==_0x37860c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x51341e,'*Set\x20font\x20size:*\x20%0',_0x123d59)};}return{'type':'format','content':o(_0x51341e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21f6bb['commandName']){const _0x4b8f50=_0x21f6bb['commandParams'][0x0]['value'];return _0x4b8f50?{'type':'format','content':o(_0x51341e,'*Set\x20font\x20family:*\x20%0',_0x4b8f50)}:{'type':'format','content':o(_0x51341e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21f6bb['commandName']){const _0x4da494=_0x21f6bb['commandParams'][0x0]['value'];if(_0x4da494){const _0xa545e7=_0x213787(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5e95eb=>_0x5e95eb['model']==_0x4da494);let _0x582c43=_0x4da494,_0x165b3f='';return _0xa545e7&&(_0x582c43=_0xa545e7['label'],_0x165b3f=_0xf4aafa(_0x582c43)['toLowerCase']()),{'type':'format','content':o(_0x51341e,'*Set\x20font\x20color:*\x20%0',_0x165b3f)['trim'](),'color':{'value':_0x4da494,'title':_0x165b3f||_0x582c43}};}return{'type':'format','content':o(_0x51341e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21f6bb['commandName']){const _0x144a36=_0x21f6bb['commandParams'][0x0]['value'];if(_0x144a36){const _0x12513c=_0x213787(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c6785=>_0x2c6785['model']==_0x144a36);let _0x382cac=_0x144a36,_0x4d00a1='';return _0x12513c&&(_0x382cac=_0x12513c['label'],_0x4d00a1=_0xf4aafa(_0x382cac)['toLowerCase']()),{'type':'format','content':o(_0x51341e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4d00a1)['trim'](),'color':{'value':_0x144a36,'title':_0x4d00a1||_0x382cac}};}return{'type':'format','content':o(_0x51341e,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x5b5ba2{['afterInit'](){const _0x549874=this['editor'],_0xbd596d=_0x549874['plugins']['get']('TrackChangesEditing'),_0x185451=_0x549874['commands']['get']('copyFormat'),_0x4fdb03=_0x549874['commands']['get']('pasteFormat');_0x185451&&_0x4fdb03&&(_0xbd596d['enableDefaultAttributesIntegration']('pasteFormat'),_0xbd596d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3fea6f=this['editor'],_0x527070=_0x3fea6f['locale'];_0x3fea6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8da810=>{if('formatBlock'!=_0x8da810['type']&&'formatInline'!=_0x8da810['type'])return;const {data:_0x42dcb9}=_0x8da810;if(_0x42dcb9&&'pasteFormat'===_0x42dcb9['commandName']){const _0x21ba7f=[],_0x3849f7=_0x42dcb9['commandParams'][0x0];for(const [_0x57dcc5,_0x2c241e]of Object['entries'](_0x3849f7))_0x21ba7f['push'](so(_0x3fea6f,_0x57dcc5,_0x2c241e));return _0x21ba7f['length']?{'type':'format','content':o(_0x527070,'*Set\x20format\x20to:*\x20%0',_0x21ba7f['join'](',\x20'))}:{'type':'format','content':o(_0x527070,'*Remove\x20all\x20formatting*')};}});}}function so(_0x450b70,_0x430efe,_0x35fff0){const _0x46c9b9=_0x450b70['locale']['t'],_0x48f0e1=_0x430efe['split'](/(?=[A-Z])/)['join']('\x20'),_0x429b2a=_0x46c9b9(_0x48f0e1['charAt'](0x0)['toUpperCase']()+_0x48f0e1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x35fff0)return _0x429b2a;if('fontColor'===_0x430efe||'fontBackgroundColor'===_0x430efe){const _0x1811d1=_0x213787(_0x450b70['config']['get']('fontColor.colors'))['find'](_0x548b09=>_0x548b09['model']==_0x35fff0);return _0x429b2a+'\x20('+(_0x1811d1?_0x46c9b9(_0x1811d1['label'])['toLowerCase']():_0x35fff0)+')';}if('fontSize'===_0x430efe&&isNaN(parseFloat(_0x35fff0))){const _0x3b0f98=_0x450b70['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x450b70['config']['get']('fontSize.options'))['find'](_0x2e46e1=>_0x2e46e1['model']==_0x35fff0);return _0x429b2a+'\x20('+(_0x3b0f98?_0x46c9b9(_0x3b0f98['title'])['toLowerCase']():_0x35fff0)+')';}return _0x429b2a+'\x20('+_0x35fff0+')';}class it extends _0x5b5ba2{['_headingOptions'];['afterInit'](){const _0x3e351f=this['editor'];if(!_0x3e351f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3e351f['config']['get']('heading.options');const _0x39d08f=_0x3e351f['locale'],_0x51d90e=_0x3e351f['plugins']['get']('TrackChangesEditing');_0x51d90e['enableDefaultAttributesIntegration']('heading');for(const _0x3daf30 of this['_headingOptions'])'paragraph'!=_0x3daf30['model']&&_0x51d90e['descriptionFactory']['registerElementLabel'](_0x3daf30['model'],_0x8871c9=>{const _0x54a61b=this['_getHeadingLevel'](_0x3daf30['model']);return null!==_0x54a61b?_0x57613c(_0x8871c9,_0x54a61b):_0x3dc6ba(_0x8871c9,_0x3daf30['title']);});function _0x57613c(_0x40371f,_0x4d87b6){return o(_0x39d08f,'ELEMENT_HEADING',[_0x40371f,_0x4d87b6]);}function _0x3dc6ba(_0x30cadc,_0x1c4eaa){return o(_0x39d08f,'ELEMENT_HEADING_CUSTOM',[_0x30cadc,_0x1c4eaa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1035a4=this['editor'],_0x4c0434=_0x1035a4['locale'];function _0x2370dd(_0x29af93,_0x4ddbe0){return o(_0x4c0434,'ELEMENT_HEADING_CUSTOM',[_0x29af93,_0x4ddbe0]);}_0x1035a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x520df1=>{if('formatBlock'!=_0x520df1['type'])return;const {data:_0xf5bd51}=_0x520df1;if(_0xf5bd51&&'heading'==_0xf5bd51['commandName']){const _0x57963=_0xf5bd51['commandParams'][0x0]['value'],_0x14768c=this['_getHeadingLevel'](_0x57963);if(null!==_0x14768c)return{'type':'format','content':o(_0x4c0434,'*Change\x20to:*\x20%0',(_0x33b87f=0x1,_0x1278c8=_0x14768c,o(_0x4c0434,'ELEMENT_HEADING',[_0x33b87f,_0x1278c8])))};const _0x5dc72c=this['_headingOptions']['find'](_0x3bac4b=>_0x3bac4b['model']===_0x57963)['title'];return{'type':'format','content':o(_0x4c0434,'*Change\x20to:*\x20%0',_0x2370dd(0x1,_0x5dc72c))};}var _0x33b87f,_0x1278c8;});}['_getHeadingLevel'](_0x437697){const _0x2e5817=_0x437697['match'](/^heading(\d+)/);if(_0x2e5817)return _0x2e5817[0x1];const _0x16c2ae=this['_headingOptions']?.['find'](_0xe3655e=>_0xe3655e['model']==_0x437697);if(_0x16c2ae&&_0x16c2ae['view']){const _0x125dd4=_0x16c2ae['view'],_0x281689=(_0x125dd4['name']??_0x125dd4)['match'](/^h(\d+)/);if(_0x281689)return _0x281689[0x1];}return null;}}class et extends _0x5b5ba2{['afterInit'](){const _0x50d38d=this['editor'];if(!_0x50d38d['plugins']['has']('HighlightEditing'))return;const _0x291bca=_0x50d38d['plugins']['get']('TrackChangesEditing'),_0x588620=_0x50d38d['locale'];_0x291bca['enableDefaultAttributesIntegration']('highlight'),_0x291bca['registerInlineAttribute']('highlight'),_0x291bca['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x588620,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d9497=this['editor'],_0xba16d6=_0x2d9497['locale'];_0x2d9497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4edf5c=>{if('formatInline'!=_0x4edf5c['type'])return;const {data:_0xaa558c}=_0x4edf5c;if(_0xaa558c&&'highlight'==_0xaa558c['commandName']){const _0x10f28d=_0xba16d6['t'],_0x19b46b=_0xaa558c['commandParams'][0x0]['value'];if(_0x19b46b){const _0x1d7c09=_0x2d9497['config']['get']('highlight.options')['find'](_0x3bf412=>_0x3bf412['model']==_0x19b46b),_0x361dfc=_0x10f28d(_0x1d7c09['title'])['toLowerCase']();return{'type':'format','content':o(_0xba16d6,'*Set\x20highlight:*\x20%0',_0x361dfc),'color':{'value':_0x1d7c09['color'],'title':_0x1d7c09['title']}};}return{'type':'format','content':o(_0xba16d6,'*Remove\x20highlight*',o(_0xba16d6,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5b5ba2{['afterInit'](){const _0x42c41e=this['editor'];if(!_0x42c41e['plugins']['has']('HorizontalLineEditing'))return;_0x42c41e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x20a159=_0x42c41e['plugins']['get']('TrackChangesEditing'),_0x3344a1=_0x42c41e['locale'];_0x20a159['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5cd344=>o(_0x3344a1,'ELEMENT_HORIZONTAL_LINE',_0x5cd344)),_0x42c41e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x405a6c,{writer:_0x285b9d,options:_0x3d3a6c})=>{if(!_0x3d3a6c['showSuggestionHighlights'])return null;const _0x3457e8=_0x285b9d['createContainerElement']('div'),_0x2f87a5=_0x285b9d['createEmptyElement']('hr');return _0x285b9d['addClass']('ck-horizontal-line',_0x3457e8),_0x285b9d['insert'](_0x285b9d['createPositionAt'](_0x3457e8,0x0),_0x2f87a5),_0x3457e8;},'converterPriority':'high'});}}class ot extends _0x5b5ba2{['afterInit'](){const _0x32fbed=this['editor'];if(!_0x32fbed['plugins']['has']('HtmlEmbed'))return;const _0x1f3be3=_0x32fbed['plugins']['get']('TrackChangesEditing'),_0x3346c5=_0x32fbed['locale'];_0x1f3be3['descriptionFactory']['registerElementLabel']('rawHtml',_0x48287d=>o(_0x3346c5,'ELEMENT_HTML_EMBED',_0x48287d)),_0x1f3be3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1f3be3['registerBlockAttribute']('value'),_0x1f3be3['descriptionFactory']['registerDescriptionCallback'](_0x3ad08b=>{if('attribute'!=_0x3ad08b['type'])return;const {data:_0x438637}=_0x3ad08b;if(_0x438637&&'value'==_0x438637['key']&&_0x3ad08b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4c0db3=o(_0x3346c5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3346c5,'*Change\x20%0\x20content*',_0x4c0db3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b89e6=this['editor'],_0x710b7d=_0x3b89e6['locale'];_0x3b89e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d224e=>{if('formatBlock'!=_0x3d224e['type'])return;const {data:_0x4bb2f5}=_0x3d224e;if(_0x4bb2f5&&'htmlEmbed'==_0x4bb2f5['commandName']){const _0x101ce5=o(_0x710b7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x710b7d,'*Change\x20%0\x20content*',_0x101ce5)};}});}}class rt extends _0x5b5ba2{['afterInit'](){const _0x170ce4=this['editor'];if(!_0x170ce4['plugins']['has']('ImageEditing'))return;const _0x2f2c02=_0x170ce4['plugins']['get']('TrackChangesEditing'),_0x4eddef=_0x170ce4['plugins']['get']('ImageUtils'),_0xcbb4=_0x170ce4['locale'];_0x2f2c02['enableCommand']('insertImage'),_0x2f2c02['descriptionFactory']['registerElementLabel']('imageBlock',_0x22d03e=>o(_0xcbb4,'ELEMENT_IMAGE',_0x22d03e)),_0x2f2c02['descriptionFactory']['registerElementLabel']('imageInline',_0xc66427=>o(_0xcbb4,'ELEMENT_INLINE_IMAGE',_0xc66427)),_0x2f2c02['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xcbb4,'ELEMENT_CAPTION')),_0x170ce4['plugins']['has']('ImageUploadEditing')&&_0x2f2c02['enableCommand']('uploadImage'),_0x170ce4['plugins']['has']('ImageBlockEditing')&&_0x170ce4['plugins']['has']('ImageInlineEditing')&&(_0x2f2c02['enableCommand']('imageTypeInline',(_0x333e94,_0x4519be)=>{const _0x3506e5=_0x4eddef['getClosestSelectedImageElement'](_0x170ce4['model']['document']['selection']);_0x170ce4['model']['change'](()=>{_0x2f2c02['markBlockFormat'](_0x3506e5,{'commandName':'imageTypeInline','commandParams':[_0x4519be]},[],'convertBlockImageToInline');});}),_0x2f2c02['enableCommand']('imageTypeBlock',(_0x37db86,_0x3cf57a)=>{_0x170ce4['model']['change'](_0x3d160e=>{let _0x48ecc4=_0x4eddef['getClosestSelectedImageElement'](_0x170ce4['model']['document']['selection']),_0x20099d=_0x3d160e['createRangeOn'](_0x48ecc4);const _0x4ff024=_0x5ec540['fromPosition'](_0x20099d['start'],'toPrevious'),_0x979df9=_0x5ec540['fromPosition'](_0x20099d['end'],'toNext');_0x2f2c02['forceDefaultExecution'](()=>_0x37db86(_0x3cf57a)),_0x48ecc4=_0x4eddef['getClosestSelectedImageElement'](_0x170ce4['model']['document']['selection']),_0x20099d=_0x3d160e['createRangeOn'](_0x48ecc4);const _0x21f0ae=_0x3d160e['createRange'](_0x4ff024,_0x979df9);_0x4ff024['detach'](),_0x979df9['detach'](),_0x2f2c02['markBlockFormat'](_0x48ecc4,{'commandName':'imageTypeInline','commandParams':[_0x3cf57a]},[],'convertInlineImageToBlock'),_0x21f0ae['start']['isBefore'](_0x20099d['start'])&&_0x2f2c02['markInsertion'](_0x3d160e['createRange'](_0x21f0ae['start'],_0x20099d['start']),'convertInlineImageToBlock'),_0x20099d['end']['isBefore'](_0x21f0ae['end'])&&_0x2f2c02['markInsertion'](_0x3d160e['createRange'](_0x20099d['end'],_0x21f0ae['end']),'convertInlineImageToBlock');});}),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2f2c02['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xf9829b])=>{const _0x2f561a=_0x2f2c02['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a4952=_0xf9829b['start'],_0x285820=_0xf9829b['end'];const _0x1466f8=_0x170ce4['model']['schema']['getNearestSelectionRange'](_0x4a4952,'backward'),_0x6a5aec=_0x170ce4['model']['schema']['getNearestSelectionRange'](_0x285820,'forward');_0x1466f8['isCollapsed']&&(_0x4a4952=_0x1466f8['start']),_0x6a5aec['isCollapsed']&&(_0x285820=_0x6a5aec['end']),_0x2f561a([_0x170ce4['model']['createRange'](_0x4a4952,_0x285820)]);}),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5e4e11),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5e4e11)),_0x170ce4['plugins']['has']('ImageCaptionEditing')&&(_0x2f2c02['enableCommand']('toggleImageCaption',(_0x272c52,_0x1dca67)=>{const _0x4bd416=_0x170ce4['plugins']['get']('ImageCaptionUtils');let _0x281e4c=_0x4eddef['getClosestSelectedImageElement'](_0x170ce4['model']['document']['selection']),_0x3e3c1e=_0x4bd416['getCaptionFromImageModelElement'](_0x281e4c);_0x170ce4['model']['change'](()=>{if(_0x3e3c1e)return void _0x2f2c02['markDeletion'](_0x170ce4['model']['createRangeOn'](_0x3e3c1e));const _0x52a526=_0x4eddef['isBlockImage'](_0x281e4c);_0x272c52(_0x1dca67),_0x281e4c=_0x4eddef['getClosestSelectedImageElement'](_0x170ce4['model']['document']['selection']),_0x3e3c1e=_0x4bd416['getCaptionFromImageModelElement'](_0x281e4c),_0x2f2c02['markInsertion'](_0x170ce4['model']['createRangeOn'](_0x3e3c1e),_0x52a526?null:'imageCaption');});}),_0x2f2c02['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5e4e11));const _0x344346=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1fc506(_0x1959b5,_0x3105ba){const _0x26ce99=_0x344346['findIndex'](({type:_0xfde721,subType:_0x48a445})=>_0x1959b5['type']==_0xfde721&&_0x1959b5['subType']==_0x48a445),_0x4294fe=_0x344346['findIndex'](({type:_0x57a0ff,subType:_0x1d54fa})=>_0x3105ba['type']==_0x57a0ff&&_0x3105ba['subType']==_0x1d54fa);if(_0x26ce99<0x0||_0x4294fe<0x0)return!0x1;const _0x5310a0=_0x1959b5['getFirstRange'](),_0x534304=_0x3105ba['getFirstRange']();if((0x0==_0x26ce99||0x1==_0x26ce99)&&0x2==_0x4294fe&&_0x5310a0['isIntersecting'](_0x534304))return!0x0;if(0x2==_0x26ce99&&0x3==_0x4294fe){const _0x200650=_0x2f2c02['_findSuggestions'](_0x5310a0,'insertion')['filter'](({suggestion:_0x19de04,meta:_0x5425f4})=>_0x5425f4['isOwn']&&'convertInlineImageToBlock'==_0x19de04['subType']);if(_0x200650['length']>0x1&&_0x534304['end']['isEqual'](_0x5310a0['start']))return!0x0;if(0x1==_0x200650['length']&&(_0x5310a0['start']['isEqual'](_0x534304['end'])||_0x5310a0['end']['isEqual'](_0x534304['start'])))return!0x0;}if(0x3==_0x26ce99&&0x3==_0x4294fe&&_0x5310a0['start']['isBefore'](_0x534304['start'])){const _0x4a4e31=_0x5310a0['end']['nodeAfter'],_0x2c2d00=_0x534304['start']['nodeBefore'];return _0x4eddef['isBlockImage'](_0x4a4e31)&&_0x4a4e31===_0x2c2d00;}return!0x1;}function _0x5e4e11(_0xd53149,_0x133fae){return _0x1fc506(_0xd53149,_0x133fae)?[_0xd53149,_0x133fae]:_0x1fc506(_0x133fae,_0xd53149)?[_0x133fae,_0xd53149]:null;}_0x170ce4['plugins']['has']('ImageResize')&&(_0x2f2c02['enableDefaultAttributesIntegration']('resizeImage'),_0x2f2c02['registerBlockAttribute']('resizedWidth'),_0x2f2c02['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xcbb4,'FORMAT_IMAGE_SIZE'))),_0x170ce4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2f2c02['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2f2c02['registerBlockAttribute']('alt')),_0x170ce4['plugins']['has']('PictureEditing')&&(_0x2f2c02['registerBlockAttribute']('sources'),_0x2f2c02['descriptionFactory']['registerDescriptionCallback'](_0x8cd5a9=>{if('attribute'!=_0x8cd5a9['type'])return;const {data:_0x2c8461}=_0x8cd5a9;return _0x2c8461&&'sources'==_0x2c8461['key']?{'type':'format','content':''}:void 0x0;})),_0x170ce4['plugins']['has']('ImageSizeAttributes')&&(_0x2f2c02['registerBlockAttribute']('width'),_0x2f2c02['registerBlockAttribute']('height'),_0x2f2c02['descriptionFactory']['registerDescriptionCallback'](_0x44d19e=>{if('attribute'!=_0x44d19e['type'])return;const {data:_0x3ed95a}=_0x44d19e;return!_0x3ed95a||'width'!=_0x3ed95a['key']&&'height'!=_0x3ed95a['key']?void 0x0:{'type':'format','content':''};})),_0x2f2c02['descriptionFactory']['registerDescriptionCallback'](_0x4811a8=>{if(!!_0x344346['find'](({type:_0x23d2e3,subType:_0x5e51f3})=>_0x4811a8['type']==_0x23d2e3&&_0x4811a8['subType']==_0x5e51f3))return _0x4811a8['previous']?{}:void 0x0;}),_0x2f2c02['descriptionFactory']['registerDescriptionCallback'](_0x3faa5b=>{if('insertion'==_0x3faa5b['type']||'deletion'==_0x3faa5b['type']){const _0x2000f6=_0x3faa5b['getContainedElement']();if(_0x2000f6&&_0x2000f6['is']('element','caption'))return{'type':'insertion'==_0x3faa5b['type']?'addObject':'removeObject','element':_0x2000f6,'quantity':0x1};}}),_0x2f2c02['descriptionFactory']['registerDescriptionCallback'](_0x57d760=>'formatBlock'==_0x57d760['type']&&'convertInlineImageToBlock'==_0x57d760['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57d760['type']&&'convertBlockImageToInline'==_0x57d760['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2f2c02['descriptionFactory']['registerDescriptionCallback'](_0x3c8d69=>{if('attribute'!=_0x3c8d69['type'])return;const {data:_0x435933}=_0x3c8d69;if(!_0x435933||'alt'!=_0x435933['key'])return;const _0x5042dd=_0x435933['newValue'];return _0x5042dd?{'type':'format','content':o(_0xcbb4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5042dd+'\x22')}:{'type':'format','content':o(_0xcbb4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x418cc9=this['editor'],_0x3e7372=_0x418cc9['locale'];_0x418cc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ebf63=>{if('formatBlock'!=_0x4ebf63['type']&&'formatInline'!=_0x4ebf63['type'])return;const {data:_0x54d47a}=_0x4ebf63;if(_0x54d47a){if('imageTextAlternative'==_0x54d47a['commandName']){const _0x25e2dd=_0x54d47a['commandParams'][0x0]['newValue'];return _0x25e2dd?{'type':'format','content':o(_0x3e7372,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25e2dd+'\x22')}:{'type':'format','content':o(_0x3e7372,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x54d47a['commandName']){const _0x96ab6a=_0x54d47a['commandParams'][0x0]['width'];return _0x96ab6a?{'type':'format','content':o(_0x3e7372,'*Set\x20image\x20width:*\x20%0',_0x96ab6a)}:{'type':'format','content':o(_0x3e7372,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5b5ba2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27d83e=this['editor']['locale'],_0x2a5328=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a5328['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2a5328['registerBlockAttribute']('src'),_0x2a5328['descriptionFactory']['registerDescriptionCallback'](_0x23b7bd=>{if('attribute'!=_0x23b7bd['type'])return;const {data:_0x493547}=_0x23b7bd;return _0x493547&&'src'==_0x493547['key']?_0x493547['newValue']&&_0x493547['oldValue']?{'type':'format','content':o(_0x27d83e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x41fee0=this['editor']['plugins']['get']('TrackChangesEditing');_0x41fee0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x41fee0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41fee0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x41fee0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x507f6a=this['editor'],_0x978c40=_0x507f6a['locale'];_0x507f6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f2a44=>{if('formatBlock'!=_0x5f2a44['type']&&'formatInline'!=_0x5f2a44['type'])return;const {data:_0x4d96d3}=_0x5f2a44;if(!_0x4d96d3||'replaceImageSource'!=_0x4d96d3['commandName'])return;return{'type':'format','content':o(_0x978c40,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5b5ba2{['afterInit'](){const _0x158361=this['editor'];if(!_0x158361['plugins']['has']('ImageStyleEditing'))return;const _0xb15c82=_0x158361['plugins']['get']('TrackChangesEditing'),_0x268c80=_0x158361['plugins']['get']('ImageUtils'),_0x1980cf={};_0xb15c82['enableCommand']('imageStyle',(_0x16b028,_0x2acd04)=>{const _0x14ef90=_0x158361['plugins']['get']('Users')['me'],_0x54f887=_0x158361['commands']['get']('imageStyle');let _0x5750ed=_0x268c80['getClosestSelectedImageElement'](_0x158361['model']['document']['selection']),_0x5c5c01=_0x158361['model']['createRangeOn'](_0x5750ed),_0x24ebee=_0x54f887['value'];if(_0x24ebee==_0x2acd04['value'])return;const _0x1211e0={'commandName':'imageStyle','commandParams':[_0x2acd04],'formatGroupId':_0x42ebb1()};_0x158361['model']['change'](()=>{if(_0xb15c82['getSuggestions']()['filter'](_0xb224cd=>_0xb224cd['isInContent']&&_0x14ef90==_0xb224cd['author']&&('formatBlock'==_0xb224cd['type']||'formatInline'==_0xb224cd['type'])&&('imageStylePreApply'==_0xb224cd['subType']||'imageStylePostApply'==_0xb224cd['subType'])&&_0xb224cd['getFirstRange']()['isEqual'](_0x5c5c01))['forEach'](_0x4c503d=>_0xb15c82['discardSuggestion'](_0x4c503d['head'])),_0x5750ed=_0x268c80['getClosestSelectedImageElement'](_0x158361['model']['document']['selection']),_0x5c5c01=_0x158361['model']['createRangeOn'](_0x5750ed),_0x54f887['refresh'](),_0x158361['commands']['get']('imageTypeInline')['refresh'](),_0x158361['commands']['get']('imageTypeBlock')['refresh'](),_0x24ebee=_0x54f887['value'],_0x24ebee!=_0x2acd04['value'])return _0x268c80['isInlineImage'](_0x5750ed)&&_0x54f887['shouldConvertImageType'](_0x2acd04['value'],_0x5750ed)?(_0x16b028({..._0x2acd04,'setImageSizes':!0x1}),_0x5750ed=_0x268c80['getClosestSelectedImageElement'](_0x158361['model']['document']['selection']),void _0xb15c82['markBlockFormat'](_0x5750ed,{..._0x1211e0,'commandReversedParams':[{'value':_0x24ebee||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x268c80['isBlockImage'](_0x5750ed)?_0xb15c82['markBlockFormat'](_0x5750ed,_0x1211e0,[],'imageStylePostApply'):_0xb15c82['markInlineFormat'](_0x5c5c01,_0x1211e0,'imageStylePostApply'));});});for(const _0x35f925 of _0x158361['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1980cf[_0x35f925['name']]=_0x35f925['title']['toLowerCase']();_0xb15c82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb15c82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb15c82['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb15c82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x51d05c])=>{_0x268c80['setImageNaturalSizeAttributes'](_0x51d05c['getContainedElement']());}),_0xb15c82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a5397,_0x55ca61)=>{_0xb15c82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a5397,{'commandName':_0x55ca61['commandName'],'commandParams':_0x55ca61['commandReversedParams']});}),_0xb15c82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x301797,_0x777ccf){if(_0x15df05(_0x301797,_0x777ccf))return[_0x301797,_0x777ccf];if(_0x15df05(_0x777ccf,_0x301797))return[_0x777ccf,_0x301797];return null;});const _0x32c373=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x15df05(_0x7f77c7,_0x141162){const _0xe29c2c=_0x32c373['findIndex'](({type:_0x55b14e,subType:_0x2d068c})=>_0x7f77c7['type']==_0x55b14e&&_0x7f77c7['subType']==_0x2d068c),_0x36b3e8=_0x32c373['findIndex'](({type:_0x42f678,subType:_0x599e06})=>_0x141162['type']==_0x42f678&&_0x141162['subType']==_0x599e06);if(_0xe29c2c<0x0||_0x36b3e8<0x0)return!0x1;const _0x510596=_0x7f77c7['getFirstRange'](),_0x3a304b=_0x141162['getFirstRange']();if((0x0==_0xe29c2c||0x1==_0xe29c2c)&&0x2==_0x36b3e8&&_0x510596['isIntersecting'](_0x3a304b))return!0x0;if(0x2==_0xe29c2c&&0x3==_0x36b3e8){const _0x3863e7=_0xb15c82['_findSuggestions'](_0x510596,'insertion')['filter'](({suggestion:_0x2fb169,meta:_0x9bc205})=>_0x9bc205['isOwn']&&'convertInlineImageToBlock'==_0x2fb169['subType']);if(_0x3863e7['length']>0x1&&_0x3a304b['end']['isEqual'](_0x510596['start']))return!0x0;if(0x1==_0x3863e7['length']&&(_0x510596['start']['isEqual'](_0x3a304b['end'])||_0x510596['end']['isEqual'](_0x3a304b['start'])))return!0x0;}if(0x3==_0xe29c2c&&0x3==_0x36b3e8&&_0x510596['start']['isBefore'](_0x3a304b['start'])){const _0x54cc93=_0x510596['end']['nodeAfter'],_0x41f7db=_0x3a304b['start']['nodeBefore'];return _0x268c80['isBlockImage'](_0x54cc93)&&_0x54cc93===_0x41f7db;}return!0x1;}_0x158361['model']['document']['registerPostFixer'](()=>{let _0x529262=!0x1;const _0x466012=Array['from'](_0x158361['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a572e,data:_0x5b8c42}of _0x466012){const {group:_0xd43d40,type:_0x599e7e,subType:_0x3ba8b9,id:_0x2f002f}=_0xb15c82['_splitMarkerName'](_0x1a572e);if('suggestion'==_0xd43d40&&_0xb15c82['hasSuggestion'](_0x2f002f)){if('formatBlock'==_0x599e7e&&('imageStylePreApply'==_0x3ba8b9||'imageStylePostApply'==_0x3ba8b9)){const _0x3de315=_0xb15c82['getSuggestion'](_0x2f002f);if(_0x5b8c42['newRange']){const _0x14db97=_0x3de315['getFirstRange']()['getContainedElement']();if(_0x268c80['isBlockImage'](_0x14db97))continue;_0xb15c82['discardSuggestion'](_0x3de315),_0x529262=!0x0;}}if('insertion'==_0x599e7e&&'imageCaption'==_0x3ba8b9&&!_0x5b8c42['newRange']){const _0x63b914=_0xb15c82['getSuggestion'](_0x2f002f);_0x63b914['next']&&_0x63b914['next']['isInContent']&&(_0xb15c82['discardSuggestion'](_0x63b914['next']),_0x529262=!0x0);}}}return _0x529262;}),this['_registerLegacyDescription'](_0x1980cf);}['_registerLegacyDescription'](_0x2478e7){const _0x46cbeb=this['editor'],_0x52e6b=_0x46cbeb['locale'];_0x46cbeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x520691=>{if('formatBlock'!=_0x520691['type']&&'formatInline'!=_0x520691['type'])return;const {data:_0x2f8c12}=_0x520691;if(!_0x2f8c12||'imageStyle'!=_0x2f8c12['commandName'])return;const _0x325aab=_0x2f8c12['commandParams'][0x0]['value'];return _0x1ff077('side'===_0x325aab?o(_0x52e6b,'FORMAT_SIDE_IMAGE'):_0x2478e7[_0x325aab]||_0x325aab);function _0x1ff077(_0x3a10aa){return{'type':'format','content':o(_0x52e6b,'*Format:*\x20%0',_0x3a10aa)};}});}}class ut extends _0x5b5ba2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2c4389){super(_0x2c4389),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1ca41d=this['editor'],_0xac83e1=_0x1ca41d['commands']['get']('importWord'),_0x34b41a=_0x1ca41d['commands']['get']('trackChanges');_0xac83e1&&(_0xac83e1['on']('execute',(_0x23e5ee,[,_0x38c960])=>{this['_trackChangesValueDuringImport']=_0x34b41a['value'],_0x38c960['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xac83e1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xac83e1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34b41a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1ca41d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3c5049,_0xa30221){const {suggestions:_0x1dd4d6}=_0xa30221,_0x520f90=this['editor']['commands']['get']('trackChanges'),_0x3a32b9=_0x520f90['value'];this['_trackChangesValueDuringImport']!==_0x3a32b9&&(_0x520f90['execute'](),this['_trackChangesExecuted']=!0x0),_0x1dd4d6&&_0x1dd4d6['forEach'](({id:_0x13c3fd,type:_0x45beac,author:_0x200634,created_at:_0x52d417})=>{const _0x13ab88={'id':_0x13c3fd,'type':_0x45beac,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x200634,'createdAt':_0x52d417?new Date(_0x52d417):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x13ab88);});}}class ft extends _0x5b5ba2{['afterInit'](){const _0x346c1d=this['editor'],_0x1d049c=_0x346c1d['plugins']['get']('TrackChangesEditing');if(_0x346c1d['plugins']['has']('IndentEditing')&&(_0x1d049c['enableCommand']('indent'),_0x1d049c['enableCommand']('outdent')),_0x346c1d['plugins']['has']('IndentBlock')){for(const _0x4c8c37 of['indentBlock','outdentBlock'])_0x1d049c['enableDefaultAttributesIntegration'](_0x4c8c37);}const _0x103b24=_0x346c1d['locale'];_0x1d049c['registerBlockAttribute']('blockIndent'),_0x1d049c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x103b24,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x230252=this['editor'],_0x7e7097=_0x230252['locale'],_0x370bc5=_0x230252['plugins']['get']('TrackChangesEditing');_0x370bc5['descriptionFactory']['registerDescriptionCallback'](_0x3359b1=>{if('formatBlock'!=_0x3359b1['type'])return;const {data:_0x334d5e}=_0x3359b1;if(!_0x334d5e)return;if('indentBlock'!=_0x334d5e['commandName']&&'outdentBlock'!=_0x334d5e['commandName'])return;const _0x4aff62=_0x3359b1['getItems']()[0x0],_0x6552c0=_0x370bc5['descriptionFactory']['getItemLabel'](_0x4aff62);return'indentBlock'==_0x334d5e['commandName']?{'type':'format','content':o(_0x7e7097,'*Indent:*\x20%0',_0x6552c0)}:'outdentBlock'==_0x334d5e['commandName']?{'type':'format','content':o(_0x7e7097,'*Outdent:*\x20%0',_0x6552c0)}:void 0x0;});}}class ht extends _0x5b5ba2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5b5ba2{['afterInit'](){const _0x445606=this['editor'];if(!_0x445606['plugins']['has']('LinkEditing'))return;const _0x4ca3a8=_0x445606['plugins']['get']('TrackChangesEditing'),_0x5d33ee=_0x445606['commands']['get']('link');_0x4ca3a8['enableDefaultAttributesIntegration']('link'),_0x4ca3a8['enableDefaultAttributesIntegration']('unlink'),_0x4ca3a8['registerInlineAttribute']('linkHref');for(const _0x2b864f of _0x5d33ee['manualDecorators'])_0x4ca3a8['registerInlineAttribute'](_0x2b864f['id']),_0x4ca3a8['descriptionFactory']['registerAttributeLabel'](_0x2b864f['id'],'link\x20('+_0x2b864f['label']['toLowerCase']()+')');_0x4ca3a8['descriptionFactory']['registerDescriptionCallback'](_0xd93dc9=>{if('attribute'!=_0xd93dc9['type'])return;const {data:_0x1c90d2}=_0xd93dc9;if(!_0x1c90d2||'linkHref'!=_0x1c90d2['key'])return;const _0x56545c=_0x1c90d2['newValue'],_0x27818f=_0x445606['locale'];return{'type':'format','content':null==_0x56545c?o(_0x27818f,'*Remove\x20link*'):o(_0x27818f,'*Set\x20link:*\x20%0','\x22'+_0x56545c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59fcad=this['editor'],_0x70cb31=_0x59fcad['locale'];_0x59fcad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb95d7d=>{if('formatInline'!=_0xb95d7d['type'])return;const {data:_0x4b8807}=_0xb95d7d;if(_0x4b8807){if('link'==_0x4b8807['commandName']){const _0x4b1a0f=_0x4b8807['commandParams'][0x0];return{'type':'format','content':o(_0x70cb31,'*Set\x20link:*\x20%0','\x22'+_0x4b1a0f+'\x22')};}return'unlink'==_0x4b8807['commandName']?{'type':'format','content':o(_0x70cb31,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5b5ba2{['afterInit'](){const _0x35331c=this['editor'],_0x1755bc=_0x35331c['locale'];if(!_0x35331c['plugins']['has']('LegacyListEditing'))return;const _0x10f048=_0x35331c['plugins']['get']('TrackChangesEditing'),_0x9e997b=_0x35331c['plugins']['has']('LegacyTodoListEditing');function _0x1c1dbd(_0x33801d){return()=>{const _0x14751f=_0x35331c['model']['document']['selection'],_0x121f84=_0x35331c['commands']['get'](_0x33801d);if(_0x121f84['value'])return void _0x35331c['execute']('paragraph',{});const _0x538aa2=_0x33801d['slice'](0x0,-0x4),_0x11b585=function(_0x243502,_0x13cff7,_0x13a8cd){let _0x23a956=Array['from'](_0x243502)['filter'](_0x47c6a7=>function(_0x2aacc7,_0x16228b){return _0x16228b['checkChild'](_0x2aacc7['parent'],'listItem')&&!_0x16228b['isObject'](_0x2aacc7);}(_0x47c6a7,_0x13a8cd));_0x23a956=_0x23a956['filter'](_0xc3896c=>!_0xc3896c['is']('element','listItem')||_0xc3896c['getAttribute']('listType')!=_0x13cff7);const _0x5d0dd2=new Set();for(const _0x81a2df of _0x23a956)_0x81a2df['is']('element','listItem')?_0x5d0dd2['add'](Le(_0x81a2df)):_0x5d0dd2['add'](_0x81a2df);return Array['from'](_0x5d0dd2);}(_0x14751f['getSelectedBlocks'](),_0x538aa2,_0x35331c['model']['schema']);_0x35331c['model']['change'](()=>{for(const _0x3dcdbe of _0x11b585)_0x10f048['markBlockFormat'](_0x3dcdbe,{'commandName':_0x33801d,'commandParams':[{'forceValue':!_0x121f84['value']}],'formatGroupId':'blockName'},Ee(_0x3dcdbe));});};}function _0x542c3a(_0x5e3b1e){return()=>{const _0x15cd87=function(_0x11f4ee){let _0x3cf876=Array['from'](_0x11f4ee);const _0x855df3=_0x3cf876['findIndex'](_0x4a45e5=>'listItem'!=_0x4a45e5['name']);return _0x855df3>-0x1&&(_0x3cf876=_0x3cf876['slice'](0x0,_0x855df3)),_0x3cf876;}(_0x35331c['model']['document']['selection']['getSelectedBlocks']()),_0x1a5fe3=_0x35331c['model']['createRange'](_0x35331c['model']['createPositionAt'](_0x15cd87[0x0],'before'),_0x35331c['model']['createPositionAt'](_0x15cd87[_0x15cd87['length']-0x1],'end'));_0x35331c['model']['change'](()=>{_0x10f048['markBlockFormat'](_0x1a5fe3,{'commandName':_0x5e3b1e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x256e38){const _0x3dc54f=new Set();for(const _0x32edf0 of _0x256e38){let _0xb85516=_0x32edf0['nextSibling'];for(;_0xb85516&&_0xb85516['getAttribute']('listIndent')>_0x32edf0['getAttribute']('listIndent');)_0x3dc54f['add'](_0xb85516),_0xb85516=_0xb85516['nextSibling'];}return Array['from'](_0x3dc54f);}(_0x15cd87));});};}_0x10f048['enableCommand']('numberedList',_0x1c1dbd('numberedList')),_0x10f048['enableCommand']('bulletedList',_0x1c1dbd('bulletedList')),_0x9e997b&&_0x10f048['enableCommand']('todoList',_0x1c1dbd('todoList')),_0x10f048['enableCommand']('indentList',_0x542c3a('indentList')),_0x10f048['enableCommand']('outdentList',_0x542c3a('outdentList')),_0x9e997b&&_0x10f048['enableCommand']('checkTodoList',()=>{const _0x4958d5=_0x35331c['commands']['get']('checkTodoList'),_0x263ca4=Array['from'](_0x4958d5['_selectedElements']);_0x263ca4['filter'](_0x472fe4=>_0x472fe4['getAttribute']('todoListChecked')!=_0x4958d5['value']),_0x35331c['model']['change'](()=>{for(const _0x360ec1 of _0x263ca4)_0x10f048['markBlockFormat'](_0x360ec1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4958d5['value']}]});});}),_0x10f048['descriptionFactory']['registerElementLabel']('listItem',_0x269b8c=>o(_0x1755bc,'ELEMENT_LIST_ITEM',_0x269b8c)),_0x10f048['descriptionFactory']['registerDescriptionCallback'](_0x59dd07=>{if('formatBlock'!=_0x59dd07['type']&&'formatInline'!=_0x59dd07['type'])return;const {data:_0x467d9d}=_0x59dd07;if(_0x467d9d){if('numberedList'==_0x467d9d['commandName']||'bulletedList'==_0x467d9d['commandName']||'todoList'==_0x467d9d['commandName'])switch(_0x467d9d['commandName']['replace']('List','')){case'bulleted':return _0x33d473(o(_0x1755bc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33d473(o(_0x1755bc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33d473(o(_0x1755bc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x467d9d['commandName'])return{'type':'format','content':o(_0x1755bc,'*Indent:*\x20%0',o(_0x1755bc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x467d9d['commandName'])return{'type':'format','content':o(_0x1755bc,'*Outdent:*\x20%0',o(_0x1755bc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x467d9d['commandName'])return _0x467d9d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1755bc,'*Check\x20item*')}:{'type':'format','content':o(_0x1755bc,'*Uncheck\x20item*')};}function _0x33d473(_0x9cbc9b){return{'type':'format','content':o(_0x1755bc,'*Change\x20to:*\x20%0',_0x9cbc9b)};}});}}function Le(_0x5b6809){const _0x4c2c5d=_0x5b6809['getAttribute']('listIndent');if(0x0==_0x4c2c5d)return _0x5b6809;let _0x263dfa=_0x5b6809;for(;_0x5b6809['previousSibling']&&_0x5b6809['previousSibling']['is']('element','listItem');){const _0x13a17a=_0x5b6809['previousSibling']['getAttribute']('listIndent');if(_0x13a17a==_0x4c2c5d)_0x263dfa=_0x5b6809['previousSibling'];else{if(_0x13a17a<_0x4c2c5d)break;}_0x5b6809=_0x5b6809['previousSibling'];}return _0x263dfa;}function Ee(_0x21e73e){const _0x288315=[];if(_0x21e73e['is']('element','listItem')&&_0x21e73e['getAttribute']('listIndent')>0x0){let _0x381536=_0x21e73e['nextSibling'];for(;_0x381536&&'listItem'==_0x381536['name']&&_0x381536['getAttribute']('listIndent')==_0x21e73e['getAttribute']('listIndent');)_0x288315['push'](_0x381536),_0x381536=_0x381536['nextSibling'];}return _0x288315;}class Q extends _0x5b5ba2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3f8f5b=this['editor']['config']['get']('list.properties'),_0x564224=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f8f5b['styles']&&_0x564224['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3f8f5b['reversed']&&_0x564224['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3f8f5b['startIndex']&&_0x564224['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x564224['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe2c8c3,_0x36bc36={}){const _0x1dd8da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3941d0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1dd8da['markMultiRangeBlockFormat'](_0x3941d0,{'commandName':'listStyle','commandParams':[{'type':_0x36bc36['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2894ca,_0x539602={}){const _0x3efadb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x582f9c=this['_getSuggestionBlocks'](_0x40a3cd=>_0x40a3cd['is']('element','listItem')&&'numbered'===_0x40a3cd['getAttribute']('listType'));if(_0x582f9c['length']<0x1)return;const _0xa7a21d=_0x582f9c['map'](_0x1c481d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c481d,'before'),this['editor']['model']['createPositionAt'](_0x1c481d,0x0)));this['editor']['model']['change'](()=>{_0x3efadb['markMultiRangeBlockFormat'](_0xa7a21d,{'commandName':'listReversed','commandParams':[{'reversed':_0x539602['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x34a8cc,_0x258fb6={}){const _0x43afa5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e7283=this['_getSuggestionBlocks'](_0x371ffa=>_0x371ffa['is']('element','listItem')&&'numbered'===_0x371ffa['getAttribute']('listType'));if(_0x4e7283['length']<0x1)return;const _0x40db90=_0x4e7283['map'](_0x2e55d6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e55d6,'before'),this['editor']['model']['createPositionAt'](_0x2e55d6,0x0)));this['editor']['model']['change'](()=>{_0x43afa5['markMultiRangeBlockFormat'](_0x40db90,{'commandName':'listStart','commandParams':[{'startIndex':_0x258fb6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x35f1ff){if('formatBlock'!=_0x35f1ff['type']&&'formatInline'!=_0x35f1ff['type'])return;const _0x28187=this['editor']['locale'],{data:_0x52ccb2}=_0x35f1ff;if(!_0x52ccb2)return;let _0x519ec1,_0x3d8ae;switch(_0x52ccb2['commandName']){case'listStyle':_0x519ec1='*Change\x20to:*\x20%0',_0x3d8ae={'type':'format','content':o(_0x28187,_0x519ec1,o(_0x28187,this['_getTranslationKeyForListStyle'](_0x52ccb2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x519ec1=_0x52ccb2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d8ae={'type':'format','content':o(_0x28187,_0x519ec1)};break;case'listStart':_0x519ec1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d8ae={'type':'format','content':o(_0x28187,_0x519ec1,_0x52ccb2['commandParams'][0x0]['startIndex'])};}return _0x3d8ae;}['_getSuggestionBlocksForListStyle'](){const _0x2562be=this['editor']['plugins']['get']('LegacyListUtils');let _0x1bd768=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1bd768[0x0]?.['is']('element','listItem')&&_0x1bd768['unshift'](..._0x2562be['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1bd768[_0x1bd768['length']-0x1]?.['is']('element','listItem')&&_0x1bd768['push'](..._0x2562be['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1bd768=[...new Set(_0x1bd768)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1bd768=_0x1bd768['filter'](_0xbd731c=>_0xbd731c['is']('element','listItem'))),_0x1bd768;}['_getSuggestionBlocks'](_0x4c351d){const _0x37c8dc=this['editor']['plugins']['get']('LegacyListUtils');let _0xa13765=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c351d)['map'](_0x27632d=>{const _0x3fdd8a=this['editor']['model']['createPositionAt'](_0x27632d,0x0);return[..._0x37c8dc['getSiblingNodes'](_0x3fdd8a,'backward'),..._0x37c8dc['getSiblingNodes'](_0x3fdd8a,'forward')];})['flat']();return _0xa13765=[...new Set(_0xa13765)],_0xa13765;}['_getTranslationKeyForListStyle'](_0x2d217b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2d217b)||'default')['toUpperCase']()+'_LIST_'+_0x2d217b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5b5ba2{['afterInit'](){const _0x3cdb20=this['editor'];if(!_0x3cdb20['plugins']['has']('MediaEmbedEditing'))return;const _0x23896c=_0x3cdb20['plugins']['get']('TrackChangesEditing'),_0x124811=_0x3cdb20['locale'];_0x23896c['enableCommand']('mediaEmbed'),_0x23896c['descriptionFactory']['registerElementLabel']('media',_0x12d8b0=>o(_0x124811,'ELEMENT_MEDIA',_0x12d8b0)),_0x3cdb20['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x492303,{writer:_0x4b9e90,options:_0x29290a})=>{if(_0x29290a['showSuggestionHighlights'])return _0x4b9e90['createEmptyElement']('div');},'converterPriority':'high'}),_0x3cdb20['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1a7302,_0x12afd0,_0x5c7783)=>{_0x5c7783['options']['showSuggestionHighlights']&&_0x1a7302['stop']();},{'priority':'high'});}}class pt extends _0x5b5ba2{['afterInit'](){const _0x4f74c8=this['editor'];_0x4f74c8['plugins']['has']('MentionEditing')&&_0x4f74c8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5b5ba2{['afterInit'](){const _0x5d4283=this['editor'];if(!_0x5d4283['plugins']['has']('MergeFieldsEditing'))return;const _0x3a2b49=_0x5d4283['plugins']['get']('TrackChangesEditing'),_0xbd3bb7=_0x5d4283['locale'];_0x3a2b49['enableCommand']('insertMergeField'),_0x3a2b49['enableCommand']('insertMergeFieldBlock'),_0x3a2b49['enableCommand']('insertMergeFieldImage'),_0x3a2b49['descriptionFactory']['registerElementLabel']('mergeField',_0x4356cd=>o(_0xbd3bb7,'ELEMENT_MERGE_FIELD',_0x4356cd)),_0x3a2b49['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2b2af8=>o(_0xbd3bb7,'ELEMENT_MERGE_FIELD',_0x2b2af8)),_0x3a2b49['descriptionFactory']['registerDescriptionCallback'](_0x42af89=>{if('insertion'!=_0x42af89['type']&&'deletion'!=_0x42af89['type'])return;const _0x53d02c=_0x42af89['getContainedElement']();if(null==_0x53d02c)return;const _0x32428b=_0x5d4283['plugins']['get']('MergeFieldsEditing');let _0x473589;switch(_0x32428b['getMergeFieldType'](_0x53d02c)){case null:return;case'image':{const _0x104092=_0x32428b['unwrapAffixes'](_0x53d02c['getAttribute']('src'));_0x473589=_0x32428b['getLabel'](_0x104092)||_0x104092;break;}default:{const _0x55a34e=_0x53d02c['getAttribute']('id');_0x473589=_0x32428b['getLabel'](_0x55a34e)||_0x55a34e;break;}}return'insertion'==_0x42af89['type']?{'type':'insertion','content':o(_0xbd3bb7,'*Insert:*\x20%0','\x22'+_0x473589+'\x22\x20'+o(_0xbd3bb7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xbd3bb7,'*Remove:*\x20%0','\x22'+_0x473589+'\x22\x20'+o(_0xbd3bb7,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5b5ba2{['afterInit'](){const _0x20045c=this['editor'],_0x423d3e=_0x20045c['plugins']['get']('TrackChangesEditing');_0x20045c['plugins']['has']('MultiLevelList')&&(_0x423d3e['enableDefaultAttributesIntegration']('multiLevelList'),_0x423d3e['registerBlockAttribute']('listMarkerStyle'),_0x423d3e['descriptionFactory']['registerDescriptionCallback'](_0x49efcb=>this['handleDescriptions'](_0x49efcb)));}['handleDescriptions'](_0x204f7b){const _0x248bf3=this['editor']['locale'],{data:_0x570282}=_0x204f7b,_0x5b5902={'type':'format','content':''};if(_0x570282&&'listMarkerStyle'==_0x570282['key']){if(!_0x570282['oldValue'])return{'type':'format','content':o(_0x248bf3,'*Set\x20format:*\x20%0',o(_0x248bf3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x570282['newValue']+')'};if(!_0x570282['newValue']){let _0x1d0011=_0x204f7b['head'];for(;_0x1d0011;){if(_0x1d0011['data']&&'listType'==_0x1d0011['data']['key']&&_0x1d0011['data']['newValue'])return _0x5b5902;_0x1d0011=_0x1d0011['next'];}return{'type':'format','content':o(_0x248bf3,'*Remove\x20format:*\x20%0',o(_0x248bf3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x570282['oldValue']+')'};}}}}class bt extends _0x5b5ba2{['afterInit'](){const _0x1ba6ba=this['editor'];if(!_0x1ba6ba['plugins']['has']('PageBreakEditing'))return;_0x1ba6ba['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x114c0b=_0x1ba6ba['plugins']['get']('TrackChangesEditing'),_0x4a46c9=_0x1ba6ba['locale'];_0x114c0b['descriptionFactory']['registerElementLabel']('pageBreak',_0x4897b3=>o(_0x4a46c9,'ELEMENT_PAGE_BREAK',_0x4897b3));}}class yt extends _0x5b5ba2{['afterInit'](){const _0x213f2a=this['editor'];if(!_0x213f2a['plugins']['has']('Paragraph'))return;const _0x5b80d0=_0x213f2a['locale'],_0x24ac57=_0x213f2a['plugins']['get']('TrackChangesEditing');_0x24ac57['descriptionFactory']['registerElementLabel']('paragraph',_0x38d3c6=>o(_0x5b80d0,'ELEMENT_PARAGRAPH',_0x38d3c6)),_0x24ac57['enableDefaultAttributesIntegration']('paragraph'),_0x24ac57['enableCommand']('insertParagraph'),_0x213f2a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x213f2a),{'priority':'highest'}),_0x213f2a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x292cbf,_0x41297e,_0x109af9)=>{_0x109af9['options']['showSuggestionHighlights']&&nr(_0x213f2a,{'showActiveMarker':!0x1})(_0x292cbf,_0x41297e,_0x109af9);},{'priority':'highest'});const _0x5bd6be=_0x24ac57['descriptionFactory'];_0x5bd6be['registerDescriptionCallback'](_0x203116=>{if('insertion'!==_0x203116['type'])return;const {start:_0x3c13c5,end:_0x29be11}=_0x203116['getFirstRange']();if(!_0x3c13c5['isTouching'](_0x29be11)||!_0x3c13c5['nodeAfter'])return;const _0x2a989d=_0x213f2a['model']['schema'],_0x95dd35=_0x3c13c5['nodeAfter'];return _0x2a989d['isBlock'](_0x95dd35)&&!_0x2a989d['isLimit'](_0x95dd35)&&_0x2a989d['checkChild'](_0x95dd35,'$text')?{'type':'insertion','content':o(_0x5b80d0,'*Insert:*\x20%0',_0x5bd6be['getItemLabel'](_0x95dd35,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x305350=this['editor'],_0x4a3068=_0x305350['locale'];_0x305350['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cd383=>{if('formatBlock'!=_0x4cd383['type'])return;const {data:_0x2b3377}=_0x4cd383;return _0x2b3377&&'paragraph'==_0x2b3377['commandName']?{'type':'format','content':o(_0x4a3068,'*Change\x20to:*\x20%0',o(_0x4a3068,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35ece9,{showActiveMarker:_0x49d2cf=!0x0}={}){return(_0x458889,_0x2500cc,_0x1bd37c)=>{const _0x154c9c=_0x35ece9['plugins']['get']('TrackChangesEditing'),_0x289d73=_0x2500cc['markerRange']['start'],_0x5b4b9d=_0x2500cc['markerRange']['end'],_0x4889f6=_0x35ece9['model']['schema'];if(!_0x289d73['isTouching'](_0x5b4b9d)||!_0x289d73['nodeAfter'])return;const _0x26a62c=_0x289d73['nodeAfter'];if(_0x4889f6['isBlock'](_0x26a62c)&&!_0x4889f6['isLimit'](_0x26a62c)&&_0x4889f6['checkChild'](_0x26a62c,'$text')){if(!_0x1bd37c['consumable']['consume'](_0x2500cc['markerRange'],_0x458889['name']))return;const {authorId:_0x385750}=_0x154c9c['_splitMarkerName'](_0x2500cc['markerName']),_0x1a29fa=_0x1bd37c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x385750}),_0x4286d4=_0x1bd37c['mapper']['toViewPosition'](_0x5b4b9d);_0x49d2cf&&_0x154c9c['activeMarkers']['includes'](_0x2500cc['markerName'])&&_0x1bd37c['writer']['addClass']('ck-suggestion-marker--active',_0x1a29fa),_0x1bd37c['writer']['insert'](_0x4286d4,_0x1a29fa),_0x1bd37c['mapper']['bindElementToMarker'](_0x1a29fa,_0x2500cc['markerName']);}};}class jt extends _0x5b5ba2{['afterInit'](){const _0x58a5ee=this['editor'];_0x58a5ee['commands']['get']('replaceSource')&&_0x58a5ee['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5b5ba2{['afterInit'](){const _0x5da2ce=this['editor'];if(!_0x5da2ce['plugins']['has']('RemoveFormatEditing'))return;_0x5da2ce['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ff34=this['editor'];_0x53ff34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e799=>{if('formatBlock'!=_0x44e799['type']&&'formatInline'!=_0x44e799['type'])return;const {data:_0x38efc8}=_0x44e799;return _0x38efc8&&'removeFormat'==_0x38efc8['commandName']?{'type':'format','content':o(_0x53ff34['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5b5ba2{['afterInit'](){const _0x2efadf=this['editor'];if(!_0x2efadf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2745f2=_0x2efadf['plugins']['get']('TrackChangesEditing');_0x2745f2['enableCommand']('goToPreviousRestrictedEditingException'),_0x2745f2['enableCommand']('goToNextRestrictedEditingException');const _0x2dd67d=_0x2efadf['plugins']['get']('RestrictedEditingModeEditing');_0x2dd67d['enableCommand']('trackChanges'),_0x2dd67d['enableCommand']('acceptSuggestion'),_0x2dd67d['enableCommand']('discardSuggestion'),_0x2dd67d['enableCommand']('acceptAllSuggestions'),_0x2dd67d['enableCommand']('discardAllSuggestions'),_0x2dd67d['enableCommand']('acceptSelectedSuggestions'),_0x2dd67d['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5b5ba2{static get['requires'](){return[_0x356383];}['init'](){const _0x53ccf4=this['editor'],_0x18c9df=_0x53ccf4['plugins']['get']('TrackChangesEditing');_0x18c9df['enableCommand']('shiftEnter'),_0x53ccf4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x53ccf4),{'priority':'high'}),_0x53ccf4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x53ccf4),{'priority':'high'}),_0x53ccf4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1405c2,_0x2d637d,_0x3ff2ee)=>{_0x3ff2ee['options']['showSuggestionHighlights']&&je(_0x53ccf4,{'showActiveMarker':!0x1})(_0x1405c2,_0x2d637d,_0x3ff2ee);}),_0x18c9df['descriptionFactory']['registerElementLabel']('softBreak',_0x15dcf5=>o(_0x53ccf4['locale'],'ELEMENT_LINE_BREAK',_0x15dcf5));}}function je(_0x53040f,{showActiveMarker:_0x436549=!0x0}={}){return(_0x261bdd,_0x54f27c,_0x54dac4)=>{const _0x39b296=_0x53040f['plugins']['get']('TrackChangesEditing');if(!_0x54dac4['consumable']['test'](_0x54f27c['markerRange'],_0x261bdd['name']))return;const _0x402348=_0x53040f['model'];for(const _0x487502 of _0x54f27c['markerRange']['getItems']()){if(!_0x487502['is']('element','softBreak'))continue;const _0x4f2c7c='deletion'==_0x54f27c['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x19bcc6}=_0x39b296['_splitMarkerName'](_0x54f27c['markerName']),_0x360ade=_0x54dac4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f2c7c,'data-author-id':_0x19bcc6}),_0x83853=_0x54dac4['mapper']['toViewPosition'](_0x402348['createPositionBefore'](_0x487502));_0x436549&&_0x39b296['activeMarkers']['includes'](_0x54f27c['markerName'])&&_0x54dac4['writer']['addClass']('ck-suggestion-marker--active',_0x360ade),_0x54dac4['writer']['insert'](_0x83853,_0x360ade),_0x54dac4['mapper']['bindElementToMarker'](_0x360ade,_0x54f27c['markerName']);}};}class vt extends _0x5b5ba2{['afterInit'](){const _0x15a9b2=this['editor'],_0x4c957b=_0x15a9b2['model'],_0xfb2e76=_0x15a9b2['locale'];if(!_0x15a9b2['plugins']['has']('StandardEditingModeEditing'))return;const _0x50a32b=_0x15a9b2['plugins']['get']('TrackChangesEditing'),_0x372f6b='restrictedEditingException',_0x8f70f0=_0x15a9b2['commands']['get'](_0x372f6b);_0x50a32b['enableCommand'](_0x372f6b,(_0x556c46,_0xfd3ae3={})=>{const _0x8462f4=_0x4c957b['document']['selection'];if(_0x8462f4['isCollapsed'])return void _0x556c46(_0xfd3ae3);const _0x3ff4f6=void 0x0!==_0xfd3ae3['forceValue']?_0xfd3ae3['forceValue']:!_0x8f70f0['value'];_0x4c957b['change'](()=>{const _0x1d79ac=Array['from'](_0x8462f4['getRanges']());for(const _0x32c256 of _0x1d79ac){const _0x594952=_0x3ff4f6?[_0x32c256]:io(_0x372f6b,_0x32c256,_0x4c957b);for(const _0xb59a98 of _0x594952)_0x50a32b['markInlineFormat'](_0xb59a98,{'commandName':_0x372f6b,'commandParams':[{'forceValue':_0x3ff4f6}]});}});}),_0x50a32b['descriptionFactory']['registerDescriptionCallback'](_0x11d2da=>{if('formatBlock'!=_0x11d2da['type']&&'formatInline'!=_0x11d2da['type'])return;const {data:_0x112717}=_0x11d2da;return _0x112717&&_0x112717['commandName']==_0x372f6b?_0x112717['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfb2e76,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xfb2e76,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x5b5ba2{['afterInit'](){const _0x2db4df=this['editor'];if(!_0x2db4df['plugins']['has']('Style')||!_0x2db4df['plugins']['has']('DataSchema'))return;const _0x1227d2=_0x2db4df['plugins']['get']('TrackChangesEditing'),_0x216fa7=_0x2db4df['locale'],_0x35628d=_0x2db4df['config']['get']('style')||{},_0x3d4d06=_0x2db4df['plugins']['get']('GeneralHtmlSupport'),_0x4843e9=_0x2db4df['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2db4df['plugins']['get']('DataSchema'),_0x35628d['definitions']);_0x1227d2['enableDefaultAttributesIntegration']('style');const _0x182682=new Set();for(const _0x4e392e of _0x4843e9['block']){const _0x53c531=_0x3d4d06['getGhsAttributeNameForElement'](_0x4e392e['element']);_0x182682['add'](_0x53c531);}const _0x4c7bea=new Set();for(const _0xa07d6b of _0x4843e9['inline']){const _0x34a126=_0x3d4d06['getGhsAttributeNameForElement'](_0xa07d6b['element']);_0x4c7bea['add'](_0x34a126);for(const _0x583623 of _0xa07d6b['ghsAttributes'])_0x4c7bea['add'](_0x583623);}for(const _0x34215f of _0x182682)_0x1227d2['registerBlockAttribute'](_0x34215f),_0x1227d2['descriptionFactory']['registerAttributeLabel'](_0x34215f,o(_0x216fa7,'FORMAT_STYLE'));for(const _0x56e8a8 of _0x4c7bea)_0x1227d2['registerInlineAttribute'](_0x56e8a8),_0x1227d2['descriptionFactory']['registerAttributeLabel'](_0x56e8a8,o(_0x216fa7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5819e0=this['editor'],_0x3aa1a6=_0x5819e0['locale'];_0x5819e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25d708=>{if('formatBlock'!=_0x25d708['type']&&'formatInline'!=_0x25d708['type'])return;const {data:_0x550433}=_0x25d708;return _0x550433&&'style'===_0x550433['commandName']?_0x550433['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3aa1a6,'*Set\x20format:*\x20%0',_0x550433['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3aa1a6,'*Remove\x20format:*\x20%0',_0x550433['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5b5ba2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a8f66){super(_0x4a8f66),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x33d895=this['editor'],_0x56bd3c=_0x33d895['model']['document']['selection'];if(!_0x33d895['plugins']['has']('TableEditing'))return;const _0x10618f=_0x33d895['locale'],_0x23c005=_0x33d895['plugins']['get']('TrackChangesEditing'),_0x5e39de=_0x33d895['plugins']['get']('TableUtils');_0x23c005['descriptionFactory']['registerElementLabel']('table',_0x7b0642=>o(_0x10618f,'ELEMENT_TABLE',_0x7b0642)),this['_setupColumnsRowsFixing'](),_0x23c005['enableCommand']('insertTable'),_0x23c005['enableCommand']('selectTableRow'),_0x23c005['enableCommand']('selectTableColumn');for(const _0x17975a of['insertTableRowAbove','insertTableRowBelow']){const _0x4b5fd2=_0x33d895['commands']['get'](_0x17975a);_0x23c005['enableCommand'](_0x17975a,_0x285ec2=>{_0x33d895['model']['change'](_0x2ef947=>{_0x285ec2();const _0x38f86e='above'===_0x4b5fd2['order'],_0x5bb856=_0x5e39de['getSelectionAffectedTableCells'](_0x56bd3c),_0x4edc0b=_0x5e39de['getRowIndexes'](_0x5bb856),_0x550d68=_0x38f86e?_0x4edc0b['first']-0x1:_0x4edc0b['last']+0x1,_0x2249c1=_0x5bb856[0x0]['findAncestor']('table'),_0x292f49=_0x5e39de['createTableWalker'](_0x2249c1,{'startRow':_0x550d68,'endRow':_0x550d68}),_0x120fe2=Array['from'](_0x292f49)['map'](_0x57b2e6=>_0x2ef947['createRangeOn'](_0x57b2e6['cell']));_0x23c005['markMultiRangeInsertion'](_0x120fe2,'tableRow');});});}for(const _0x4ae93e of['insertTableColumnLeft','insertTableColumnRight']){const _0x1361f4=_0x33d895['commands']['get'](_0x4ae93e);_0x23c005['enableCommand'](_0x4ae93e,_0x165ea6=>{_0x33d895['model']['change'](_0x5d37b5=>{_0x165ea6();const _0x2e563b='left'===_0x1361f4['order'],_0x205e23=_0x5e39de['getSelectionAffectedTableCells'](_0x56bd3c),_0x243bbd=_0x5e39de['getColumnIndexes'](_0x205e23),_0x2ad0c3=_0x2e563b?_0x243bbd['first']-0x1:_0x243bbd['last']+0x1,_0x5e5d0e=_0x205e23[0x0]['findAncestor']('table'),_0x1c94ab=_0x5e39de['createTableWalker'](_0x5e5d0e,{'startRow':0x0,'column':_0x2ad0c3,'includeAllSlots':!0x1}),_0x12027e=Array['from'](_0x1c94ab)['map'](_0x1b3d29=>_0x5d37b5['createRangeOn'](_0x1b3d29['cell']));_0x23c005['markMultiRangeInsertion'](_0x12027e,'tableColumn');});});}for(const _0x5127f7 of['removeTableRow','removeTableColumn']){const _0x55f7d8=_0x5127f7['substr'](0xb),_0x25258e=_0x55f7d8['toLowerCase'](),_0xa94982=_0x25258e['substr'](0x0,0x3)+'span',_0x2c68ac='table'+_0x55f7d8,_0x33a46d='min'+_0x55f7d8,_0x4462dd='max'+_0x55f7d8;_0x23c005['enableCommand'](_0x5127f7,()=>{_0x33d895['model']['change'](_0x1e470d=>{const _0x7e4943=_0x5e39de['getSelectionAffectedTableCells'](_0x56bd3c),_0x5a78b8=_0x7e4943[0x0]['findAncestor']('table');let _0x1a7bee;if('removeTableRow'==_0x5127f7){const _0x2cf39b=_0x5e39de['getRowIndexes'](_0x7e4943);_0x1a7bee={'startRow':_0x2cf39b['first'],'endRow':_0x2cf39b['last'],'includeAllSlots':!0x0};}else{const _0x4052bf=_0x5e39de['getColumnIndexes'](_0x7e4943);_0x1a7bee={'startColumn':_0x4052bf['first'],'endColumn':_0x4052bf['last'],'includeAllSlots':!0x0};}const _0x399620=_0x5e39de['createTableWalker'](_0x5a78b8,_0x1a7bee),_0x5b950e=Array['from'](_0x399620)['map'](({cell:_0x88a9ee})=>_0x88a9ee),_0x3790ce=Ne(_0x5b950e['filter'](_0x44c3eb=>_0x44c3eb['hasAttribute'](_0xa94982))),_0x3e4450=Ne(_0x5b950e['filter'](_0x3a7da0=>!_0x3a7da0['hasAttribute'](_0xa94982)))['map'](_0x189a1b=>_0x1e470d['createRangeOn'](_0x189a1b)),_0x421fdf=_0x23c005['markMultiRangeDeletion'](_0x3e4450,_0x2c68ac);if(_0x421fdf&&('tableRow'==_0x421fdf['subType']||'tableColumn'==_0x421fdf['subType'])){const _0x3d8365=this['_getSuggestionCoords'](_0x421fdf);for(const _0x495b39 of _0x3790ce){const _0x3a8618=_0x1e470d['createRangeOn'](_0x495b39),_0x25bcfe=_0x5e39de['getCellLocation'](_0x495b39),_0x5b21fb=_0x495b39['getAttribute'](_0xa94982)-0x1,_0x18e8cd=_0x3d8365[_0x33a46d],_0x127743=_0x3d8365[_0x4462dd];_0x18e8cd<=_0x25bcfe[_0x25258e]&&_0x25bcfe[_0x25258e]+_0x5b21fb<=_0x127743&&_0x421fdf['addRange'](_0x3a8618);}}});});}function _0x59bcf4(_0x4fdce1){const _0x43435c=Array['from'](_0x56bd3c['getRanges']())['map'](_0x117f29=>_0x402ed1['fromRange'](_0x117f29));_0x33d895['model']['change'](_0x3e5caa=>{const _0x3e9023=_0x3e5caa['batch'];_0x4fdce1=_0x4fdce1['filter'](_0x43fda1=>'$graveyard'!=_0x43fda1['root']['rootName']),_0x3e5caa['setSelection'](_0x4fdce1),_0x33d895['commands']['get']('removeTableRow')['refresh'](),_0x33d895['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x33d895['model']['enqueueChange'](()=>{_0x33d895['model']['enqueueChange'](_0x3e9023,_0x428ca8=>{const _0x4d3526=_0x43435c['filter'](_0x44ef2b=>'$graveyard'!=_0x44ef2b['root']['rootName']);_0x4d3526['length']>0x0&&_0x428ca8['setSelection'](_0x4d3526);for(const _0x38c545 of _0x43435c)_0x38c545['detach']();});});});}function _0x140b1e(_0x1a984b){_0x33d895['model']['change'](_0x4db6a2=>{const _0xa9ea0c=Array['from'](_0x56bd3c['getRanges']())['map'](_0x385ca6=>_0x402ed1['fromRange'](_0x385ca6)),_0x5d5e96=[];for(const _0xfe6adc of _0x1a984b)for(const _0x5e174b of _0xfe6adc['getItems']({'shallow':!0x0}))_0x5d5e96['push'](_0x5e174b);for(const _0x4036e0 of _0x5d5e96)'$graveyard'!=_0x4036e0['root']['rootName']&&(_0x4db6a2['setSelection'](_0x4db6a2['createPositionAt'](_0x4036e0,0x0)),_0x33d895['commands']['get']('removeTableColumn')['refresh'](),_0x33d895['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3ca56c=_0xa9ea0c['filter'](_0x35a834=>'$graveyard'!=_0x35a834['root']['rootName']);_0x3ca56c['length']>0x0&&_0x4db6a2['setSelection'](_0x3ca56c);for(const _0x41ff7d of _0xa9ea0c)_0x41ff7d['detach']();});}function _0x286b48(_0x2ec094,_0x3bdb13){return _0x3bdb13['every'](_0x45dc79=>_0x2ec094['some'](_0x50fbe0=>_0x50fbe0['end']['isEqual'](_0x45dc79['start'])||_0x45dc79['end']['isEqual'](_0x50fbe0['start'])));}function _0x54e347(_0x23a9a1,_0x11ee36){return!_0x23a9a1['some'](_0x3798e1=>_0x11ee36['some'](_0x41f37e=>_0x3798e1['isIntersecting'](_0x41f37e)))&&_0x23a9a1['some'](_0x2bc635=>_0x11ee36['some'](_0x3cc9f6=>_0x2bc635['end']['isTouching'](_0x3cc9f6['start'])));}_0x33d895['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55b4d3,_0x1d5196,_0x5c60b7)=>{if(!_0x5c60b7['options']['showSuggestionHighlights'])return;const _0xfaff0=_0x1d5196['item'];if(!_0xfaff0)return;const _0x547d3b=_0x5c60b7['mapper']['toViewElement'](_0xfaff0);function _0x32969c(_0x4e14f5){return Array['isArray'](_0x4e14f5)?_0x4e14f5:[_0x4e14f5];}_0x547d3b&&'tableCell'===_0xfaff0['name']&&_0x382718(_0x547d3b,_0x5c60b7['writer'],(_0x59ef6d,_0x160ebe,_0x41d86e)=>_0x41d86e['addClass'](_0x32969c(_0x160ebe['classes']),_0x59ef6d),(_0x265745,_0x504629,_0x28c4bc)=>_0x28c4bc['removeClass'](_0x32969c(_0x504629['classes']),_0x265745));},{'priority':'highest'}),_0x23c005['descriptionFactory']['registerDescriptionCallback'](_0x430417=>{if('insertion'!=_0x430417['type']&&'deletion'!=_0x430417['type'])return;const _0x506f82=_0x430417['getContainedElement']();if(null!=_0x506f82&&_0x506f82['is']('element','table')){if('insertion'==_0x430417['type']){const _0x25a698=_0x430417['getItems']()['filter'](_0x15ae67=>_0x15ae67['is']('$textProxy'))['map'](_0x26d05a=>_0x26d05a['data']);if(_0x25a698['length'])return{'type':'insertion','content':o(_0x10618f,'*Insert:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x25a698['join']('\x20')+'\x22'))};}if('deletion'==_0x430417['type']){const _0x11d744=_0x430417['getItems']()['filter'](_0x362624=>_0x362624['is']('$textProxy'))['map'](_0x127b24=>_0x127b24['data']);if(_0x11d744['length'])return{'type':'deletion','content':o(_0x10618f,'*Remove:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11d744['join']('\x20')+'\x22'))};}}}),_0x23c005['descriptionFactory']['registerDescriptionCallback'](_0x25b136=>{if('tableRow'==_0x25b136['subType']){const _0x12757e=_0x25b136['getItems']()['filter'](_0x367b41=>_0x367b41['is']('$textProxy'))['map'](_0x122647=>_0x122647['data']),_0x402f28=this['_getSuggestionCoords'](_0x25b136),_0xe4ac9=_0x402f28['maxRow']-_0x402f28['minRow']+0x1;if('insertion'==_0x25b136['type'])return _0x12757e['length']?{'type':'insertion','content':o(_0x10618f,'*Insert:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe4ac9,'\x22'+_0x12757e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x10618f,'*Insert:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_ROW',_0xe4ac9))};if('deletion'==_0x25b136['type'])return _0x12757e['length']?{'type':'deletion','content':o(_0x10618f,'*Remove:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe4ac9,'\x22'+_0x12757e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x10618f,'*Remove:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_ROW',_0xe4ac9))};}if('tableColumn'==_0x25b136['subType']){const _0x51f1d8=_0x25b136['getItems']()['filter'](_0x59f3ba=>_0x59f3ba['is']('$textProxy'))['map'](_0x28bb20=>_0x28bb20['data']),_0x4a1207=this['_getSuggestionCoords'](_0x25b136),_0x57af91=_0x4a1207['maxColumn']-_0x4a1207['minColumn']+0x1;if('insertion'==_0x25b136['type'])return _0x51f1d8['length']?{'type':'insertion','content':o(_0x10618f,'*Insert:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57af91,'\x22'+_0x51f1d8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x10618f,'*Insert:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_COLUMN',_0x57af91))};if('deletion'==_0x25b136['type'])return _0x51f1d8['length']?{'type':'deletion','content':o(_0x10618f,'*Remove:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57af91,'\x22'+_0x51f1d8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x10618f,'*Remove:*\x20%0',o(_0x10618f,'ELEMENT_TABLE_COLUMN',_0x57af91))};}}),_0x23c005['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x59bcf4),_0x23c005['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x59bcf4),_0x23c005['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x140b1e),_0x23c005['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x140b1e),_0x23c005['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x286b48),_0x23c005['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x286b48),_0x23c005['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54e347),_0x23c005['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54e347);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1485ea=this['editor'],_0x437d67=_0x1485ea['model']['document']['selection'];return(_0x27b728,_0x81ab5c)=>{_0x1485ea['model']['change'](_0x54f717=>{const {commandName:_0x2e96bc,commandParams:_0x4e6f8e}=_0x81ab5c;let _0x21a5af=_0x27b728[0x0]['end']['nodeBefore'];_0x4e6f8e&&_0x4e6f8e[0x0]&&!0x1===_0x4e6f8e[0x0]['forceValue']&&(_0x21a5af=_0x27b728[0x0]['start']['nodeAfter']);const _0x127a80=_0x54f717['createRangeIn'](_0x21a5af);if('$graveyard'==_0x127a80['root']['rootName'])return;const _0x5ba169=Array['from'](_0x437d67['getRanges']())['map'](_0x150beb=>_0x402ed1['fromRange'](_0x150beb));_0x54f717['setSelection'](_0x127a80),_0x1485ea['commands']['get'](_0x2e96bc)['refresh'](),_0x4e6f8e['push']({'forceDefaultExecution':!0x0}),_0x1485ea['execute'](_0x2e96bc,..._0x4e6f8e);const _0x9b9c49=_0x5ba169['filter'](_0x3ebfa6=>'$graveyard'!=_0x3ebfa6['root']['rootName']);_0x9b9c49['length']>0x0&&_0x54f717['setSelection'](_0x9b9c49);for(const _0x5d3dde of _0x5ba169)_0x5d3dde['detach']();});};}['_getCoordsForCells'](_0x5bf29f){const _0x3f0316=this['editor']['plugins']['get']('TableUtils');let _0x54e9ad=Number['MAX_SAFE_INTEGER'],_0x4a96fe=Number['MIN_SAFE_INTEGER'],_0x34af36=Number['MAX_SAFE_INTEGER'],_0x41ad6b=Number['MIN_SAFE_INTEGER'];for(const _0x3f85ce of _0x5bf29f){if('$graveyard'==_0x3f85ce['root']['rootName'])continue;const {row:_0xc68a61,column:_0x19078a}=_0x3f0316['getCellLocation'](_0x3f85ce),_0x601659=_0x3f85ce['hasAttribute']('rowspan')?_0x3f85ce['getAttribute']('rowspan')-0x1:0x0,_0x40dd1c=_0x3f85ce['hasAttribute']('colspan')?_0x3f85ce['getAttribute']('colspan')-0x1:0x0;_0x54e9ad=_0xc68a61<_0x54e9ad?_0xc68a61:_0x54e9ad,_0x4a96fe=_0xc68a61+_0x601659>_0x4a96fe?_0xc68a61+_0x601659:_0x4a96fe,_0x34af36=_0x19078a<_0x34af36?_0x19078a:_0x34af36,_0x41ad6b=_0x19078a+_0x40dd1c>_0x41ad6b?_0x19078a+_0x40dd1c:_0x41ad6b;}return{'minRow':_0x54e9ad,'maxRow':_0x4a96fe,'minColumn':_0x34af36,'maxColumn':_0x41ad6b};}['_setupColumnsRowsFixing'](){const _0x50b749=this['editor'],_0x3f0692=_0x50b749['plugins']['get']('TrackChangesEditing'),_0x2b58cc=_0x50b749['plugins']['get']('TableUtils');_0x50b749['model']['document']['on']('change:data',()=>{const _0x58aa54=Array['from'](_0x50b749['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf2a1fb,data:_0x2340a3}of _0x58aa54){const {group:_0x151bbb,id:_0x336872,subType:_0x1f219b}=_0x3f0692['_splitMarkerName'](_0xf2a1fb);if('suggestion'!=_0x151bbb)continue;if(null!=_0x2340a3['oldRange'])continue;const _0x1fb8ad=_0x3f0692['getSuggestion'](_0x336872);this['_tablePostFixingSubtypes']['includes'](_0x1f219b)&&this['_tableSuggestions']['add'](_0x1fb8ad);}},{'priority':'low'});const _0x586960=(_0x5ca9bf,_0x3820a5)=>{let _0x3f1061=!0x1;const _0x4851fa=_0x3820a5['createRangeOn'](_0x5ca9bf),_0x6f2eef=_0x5ca9bf['findAncestor']('table'),_0x1b2965=_0x2b58cc['getCellLocation'](_0x5ca9bf);for(const _0x28bde2 of this['_tableSuggestions']){const _0x3599ba=_0x28bde2['subType'],_0x5043ba=_0x3599ba['startsWith']('tablePaste'),_0x49d044=_0x3599ba['substr'](_0x5043ba?0xa:0x5),_0x25ce30=_0x49d044['toLowerCase'](),_0xc2697=_0x25ce30['substr'](0x0,0x3)+'span',_0x2afcea='min'+_0x49d044,_0x53046c='max'+_0x49d044;if(!_0x28bde2['isInContent'])continue;if(_0x6f2eef!=_0x28bde2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28bde2['isIntersectingWithRange'](_0x4851fa))continue;const _0x22af01=_0x5ca9bf['hasAttribute'](_0xc2697)?_0x5ca9bf['getAttribute'](_0xc2697)-0x1:0x0,_0xfd8204=this['_getSuggestionCoords'](_0x28bde2),_0x50c99e=_0xfd8204[_0x2afcea],_0x5902f0=_0xfd8204[_0x53046c];_0x50c99e<=_0x1b2965[_0x25ce30]&&_0x1b2965[_0x25ce30]+_0x22af01<=_0x5902f0&&(_0x28bde2['addRange'](_0x4851fa),_0x3f1061=!0x0);}return _0x3f1061;};_0x50b749['model']['document']['registerPostFixer'](_0x3cbd47=>{let _0xc8570d=!0x1;for(const _0x4eace6 of _0x50b749['model']['document']['differ']['getChanges']())if('insert'==_0x4eace6['type']){if('tableRow'==_0x4eace6['name']){for(const _0x2eabc9 of _0x4eace6['position']['nodeAfter']['getChildren']())_0xc8570d=_0xc8570d||_0x586960(_0x2eabc9,_0x3cbd47);}else'tableCell'==_0x4eace6['name']&&(_0xc8570d=_0xc8570d||_0x586960(_0x4eace6['position']['nodeAfter'],_0x3cbd47));}return _0xc8570d;});}['_getSuggestionCoords'](_0x44ae92){return this['_getCoordsForCells'](_0x44ae92['getRanges']()['map'](_0x28337b=>_0x28337b['start']['nodeAfter']));}}function Ne(_0x95b810){return Array['from'](new Set(_0x95b810)['values']());}class Nt extends _0x5b5ba2{static get['requires'](){return[Ct];}['afterInit'](){const _0x43a38c=this['editor'],_0x42d30c=_0x43a38c['model']['document']['selection'],_0x6dd24d=_0x43a38c['locale'];if(!_0x43a38c['plugins']['has']('TableEditing'))return;const _0x2a27a8=_0x43a38c['plugins']['get']('TrackChangesEditing'),_0x23ef29=_0x43a38c['plugins']['get']('TableUtils'),_0x410b37=_0x43a38c['plugins']['get'](Ct);_0x410b37['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2a27a8['enableCommand']('mergeTableCells',()=>{const _0x5b16d5=_0x23ef29['getSelectionAffectedTableCells'](_0x43a38c['model']['document']['selection']);_0x43a38c['model']['change'](()=>{_0x2a27a8['markMultiRangeBlockFormat'](_0x5b16d5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x43a38c['commands']['get']('mergeTableCells')['on']('execute',(_0x34de0c,_0x2e6b1e)=>{_0x43a38c['commands']['get']('trackChanges')['value']&&(_0x2e6b1e['length']>0x0&&_0x2e6b1e[_0x2e6b1e['length']-0x1]&&_0x2e6b1e[_0x2e6b1e['length']-0x1]['forceDefaultExecution']||_0x2a27a8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x34de0c['stop']());},{'priority':'highest'});for(const _0x836477 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3f9930=_0x43a38c['commands']['get'](_0x836477);_0x2a27a8['enableCommand'](_0x836477,()=>{const _0x4bb2ec=_0x43a38c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b13a8=>_0x1b13a8['is']('element','tableCell')),_0xd07e21=_0x3f9930['value'];_0x43a38c['model']['change'](()=>{_0x2a27a8['markMultiRangeBlockFormat']([_0x4bb2ec,_0xd07e21],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1abd72 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x267369=_0x43a38c['commands']['get'](_0x1abd72);_0x2a27a8['enableCommand'](_0x1abd72,()=>{const _0x2d9515=_0x23ef29['getSelectionAffectedTableCells'](_0x43a38c['model']['document']['selection'])[0x0],_0x2c5cdc=_0x2d9515['findAncestor']('table'),{column:_0x59b0f1,row:_0x100edd}=_0x23ef29['getCellLocation'](_0x2d9515);let _0x20bf65=[];if('horizontally'==_0x267369['direction']){const _0x4d616a=_0x23ef29['createTableWalker'](_0x2c5cdc,{'startRow':_0x100edd,'endRow':_0x100edd,'includeAllSlots':!0x0});_0x20bf65=Array['from'](_0x4d616a)['map'](_0x587efe=>_0x587efe['cell']);}else{const _0x3afcfb=_0x23ef29['createTableWalker'](_0x2c5cdc,{'column':_0x59b0f1,'includeAllSlots':!0x0});_0x20bf65=Array['from'](_0x3afcfb)['map'](_0x4f3a58=>_0x4f3a58['cell']);}_0x43a38c['model']['change'](_0x5106e5=>{_0x2a27a8['markBlockFormat'](_0x5106e5['createRangeOn'](_0x2d9515),{'commandName':_0x1abd72,'commandParams':[]},_0x20bf65,_0x1abd72);});});}_0x2a27a8['descriptionFactory']['registerDescriptionCallback'](_0x1af015=>{if('formatBlock'!=_0x1af015['type']&&'formatInline'!=_0x1af015['type'])return;const {data:_0x587978}=_0x1af015;return _0x587978&&'mergeTableCells'==_0x587978['commandName']?{'type':'format','content':o(_0x6dd24d,'*Merge\x20cells*')}:void 0x0;}),_0x2a27a8['descriptionFactory']['registerDescriptionCallback'](_0x40a8f1=>{if('formatBlock'!=_0x40a8f1['type']&&'formatInline'!=_0x40a8f1['type'])return;const {data:_0xd2c938}=_0x40a8f1;return _0xd2c938?'splitTableCellVertically'==_0xd2c938['commandName']?{'type':'format','content':o(_0x6dd24d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd2c938['commandName']?{'type':'format','content':o(_0x6dd24d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x216644=_0x410b37['_acceptFormatSuggestionCallbackFactory']();for(const _0x463c16 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2a27a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x463c16,'accept',_0x216644);for(const _0x2d5eab of['splitTableCellVertically','splitTableCellHorizontally'])_0x2a27a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d5eab,'accept',_0x216644);_0x2a27a8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2297dc=>{_0x43a38c['model']['change'](_0xbbd2be=>{const _0x4cee7a=Array['from'](_0x42d30c['getRanges']())['map'](_0x31f7ff=>_0x402ed1['fromRange'](_0x31f7ff));_0xbbd2be['setSelection'](_0x2297dc),_0x43a38c['commands']['get']('mergeTableCells')['refresh'](),_0x43a38c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4a1aaa=_0x4cee7a['filter'](_0x279847=>'$graveyard'!=_0x279847['root']['rootName']);_0x4a1aaa['length']>0x0&&_0xbbd2be['setSelection'](_0x4a1aaa);for(const _0x168c12 of _0x4cee7a)_0x168c12['detach']();});});for(const _0x3d55b9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13f0e8=_0x43a38c['commands']['get'](_0x3d55b9);_0x13f0e8['on']('set:isEnabled',(_0x1b92c1,_0x1f3bb5,_0x3edab1)=>{if(_0x3edab1){const _0xffc214=_0x43a38c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11533b=>_0x11533b['is']('element','tableCell'));this['_areMergableCells'](_0x13f0e8['value'],_0xffc214)||(_0x1b92c1['return']=!0x1,_0x1b92c1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x140fca=this['editor']['commands']['get']('mergeTableCells'),_0x3cf2ec=this['editor']['plugins']['get']('TableUtils');if(!_0x140fca['isEnabled'])return!0x1;const _0x4c0ba8=_0x3cf2ec['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1aaed3 of _0x4c0ba8)for(const _0x36198a of _0x4c0ba8)if(_0x1aaed3!=_0x36198a&&!this['_areMergableCells'](_0x1aaed3,_0x36198a))return!0x1;return!0x0;}['_areMergableCells'](_0x4b8a5f,_0x598f9f){const _0x42db3c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c1260=this['editor']['model']['createRangeOn'](_0x4b8a5f),_0x1bca17=this['editor']['model']['createRangeOn'](_0x598f9f),_0x3ff104=new Set(),_0x59600f=new Set();for(const _0x251ebf of _0x42db3c['getSuggestions']())if(('insertion'==_0x251ebf['type']||'deletion'==_0x251ebf['type']||'mergeTableCells'==_0x251ebf['subType'])&&_0x251ebf['isInContent']){for(const _0x2c8ed3 of _0x251ebf['getRanges']())_0x2c8ed3['containsRange'](_0x2c1260,!0x0)&&_0x3ff104['add'](_0x251ebf['type']+':'+_0x251ebf['author']['id']),_0x2c8ed3['containsRange'](_0x1bca17,!0x0)&&_0x59600f['add'](_0x251ebf['type']+':'+_0x251ebf['author']['id']);}if(_0x3ff104['size']!=_0x59600f['size'])return!0x1;for(const _0x4a64c7 of _0x3ff104)if(!_0x59600f['has'](_0x4a64c7))return!0x1;return!0x0;}}class Dt extends _0x5b5ba2{static get['requires'](){return[Ct];}['afterInit'](){const _0x58fa9f=this['editor'];if(!_0x58fa9f['plugins']['has']('TableEditing'))return;const _0x384083=_0x58fa9f['locale'],_0x3c2f49=_0x58fa9f['plugins']['get']('TrackChangesEditing');_0x3c2f49['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3c2f49['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3c2f49['registerBlockAttribute']('headingRows'),_0x3c2f49['registerBlockAttribute']('headingColumns'),_0x3c2f49['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x384083,'FORMAT_HEADER_ROW')),_0x3c2f49['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x384083,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38ecdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35bc11=this['editor']['plugins']['get']('TableUtils'),_0x51f5cc=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x15a6c4({showActiveMarker:_0x45707c=!0x0,setDataAttribute:_0x4e63cb=!0x0}={}){return(_0x1e4a22,_0x36bf9e,_0x550510)=>{const {type:_0x2c4ef9,id:_0x4e2aea}=_0x38ecdb['_splitMarkerName'](_0x36bf9e['markerName']),_0x558db6=_0x38ecdb['getSuggestion'](_0x4e2aea),_0x1d7348=_0x558db6['data'];if('formatBlock'!=_0x558db6['type']||!_0x1d7348||'setTableColumnHeader'!=_0x1d7348['commandName'])return;if(_0x36bf9e['item'])return void _0x1e4a22['stop']();if(!_0x550510['consumable']['consume'](_0x36bf9e['markerRange'],_0x1e4a22['name']))return;const _0x43997c=_0x36bf9e['markerRange']['start']['nodeAfter'],_0xb5b070=_0x36bf9e['markerRange']['end']['nodeBefore'],_0x32f256=_0x43997c['parent']['parent'],{column:_0x16a497}=_0x35bc11['getCellLocation'](_0x43997c),{column:_0x81dc5}=_0x35bc11['getCellLocation'](_0xb5b070);for(let _0x231bac=_0x16a497;_0x231bac<=_0x81dc5;_0x231bac++){const _0xc90f9d=_0x35bc11['createTableWalker'](_0x32f256,{'column':_0x231bac,'includeAllSlots':!0x1});for(const _0x361325 of _0xc90f9d){const _0x10fe60=_0x361325['cell'],_0x2a4754=_0x550510['mapper']['toViewElement'](_0x10fe60);_0x550510['writer']['addClass']('ck-suggestion-marker-'+_0x2c4ef9,_0x2a4754),_0x4e63cb&&_0x550510['writer']['setAttribute']('data-suggestion',_0x4e2aea,_0x2a4754),_0x550510['mapper']['bindElementToMarker'](_0x2a4754,_0x36bf9e['markerName']),_0x45707c&&(_0x38ecdb['activeMarkers']['includes'](_0x36bf9e['markerName'])?_0x550510['writer']['addClass']('ck-suggestion-marker--active',_0x2a4754):_0x550510['writer']['removeClass']('ck-suggestion-marker--active',_0x2a4754));}}};}_0x38ecdb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x51f5cc),_0x38ecdb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x51f5cc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x15a6c4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17a60f,_0x494f02,_0x43b277)=>{_0x43b277['options']['showSuggestionHighlights']&&_0x15a6c4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x17a60f,_0x494f02,_0x43b277);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x38ac1f,_0x1900d8,_0x52f925)=>{const {type:_0x502ac4,id:_0x668ac6}=_0x38ecdb['_splitMarkerName'](_0x1900d8['markerName']),_0x35499c=_0x38ecdb['getSuggestion'](_0x668ac6),_0x16ca11=_0x35499c['data'];if('formatBlock'!=_0x35499c['type']||!_0x16ca11||'setTableColumnHeader'!=_0x16ca11['commandName'])return;const _0x11405a=_0x52f925['mapper']['markerNameToElements'](_0x1900d8['markerName']);if(_0x11405a){for(const _0x1d9928 of _0x11405a)_0x52f925['writer']['removeClass']('ck-suggestion-marker-'+_0x502ac4,_0x1d9928),_0x52f925['writer']['removeClass']('ck-suggestion-marker--active',_0x1d9928),_0x52f925['writer']['removeAttribute']('data-suggestion',_0x1d9928),_0x52f925['mapper']['unbindElementFromMarkerName'](_0x1d9928,_0x1900d8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2102b4=this['editor'],_0x4ba622=_0x2102b4['locale'];function _0x59f0a9(_0x354a7d){return{'type':'format','content':o(_0x4ba622,'*Format:*\x20%0',_0x354a7d)};}_0x2102b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4232c3=>{if('formatBlock'!=_0x4232c3['type'])return;const {data:_0x173f45}=_0x4232c3;if(_0x173f45){if('setTableRowHeader'==_0x173f45['commandName']){const _0x30ebaa=_0x173f45['commandParams'][0x0]['forceValue'];return _0x59f0a9(o(_0x4ba622,_0x30ebaa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x173f45['commandName']){const _0x4f7050=_0x173f45['commandParams'][0x0]['forceValue'];return _0x59f0a9(o(_0x4ba622,_0x4f7050?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x12256e=>[_0x12256e,null]));class Mt extends _0x5b5ba2{static get['requires'](){return[Ct];}['afterInit'](){const _0x544763=this['editor'];if(!_0x544763['plugins']['has']('TableClipboard'))return;const _0x3c2769=_0x544763['plugins']['get']('TrackChangesEditing'),_0x3180ed=_0x544763['plugins']['get']('TableUtils'),_0x1d65fa=_0x544763['plugins']['get'](Ct),_0x527571=_0x544763['plugins']['get']('TableClipboard');_0x1d65fa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x544763['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x544763['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x142b41=null;_0x544763['model']['on']('insertContent',(_0x56e4af,_0x4573e1)=>{const [_0x2e78a6,_0x122f76]=_0x4573e1,_0x15a4ba=_0x4573e1[_0x4573e1['length']-0x1];_0x15a4ba&&_0x15a4ba['forceDefaultExecution']||_0x3c2769['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2dcde1,_0x28c721,_0x1e5057,_0x36f8f8,_0x613496){if(_0x28c721&&!_0x28c721['is']('documentSelection'))return!0x1;const _0x3bd4f9=_0x613496['getTableIfOnlyTableInContent'](_0x2dcde1,_0x1e5057);if(!_0x3bd4f9||!Ue(_0x3bd4f9,void 0x0,_0x36f8f8))return!0x1;const _0x320c39=_0x36f8f8['getSelectionAffectedTableCells'](_0x1e5057['document']['selection']);if(!_0x320c39['length'])return!0x1;const _0x177a85=_0x320c39[0x0]['findAncestor']('table'),_0x12c93e=_0x36f8f8['getRowIndexes'](_0x320c39),_0x4ff77b=_0x36f8f8['getColumnIndexes'](_0x320c39),_0x28b073={'startRow':_0x12c93e['first'],'endRow':_0x12c93e['last'],'startColumn':_0x4ff77b['first'],'endColumn':_0x4ff77b['last']};return 0x1==_0x320c39['length']&&(_0x28b073['endRow']+=_0x36f8f8['getRows'](_0x3bd4f9)-0x1,_0x28b073['endColumn']+=_0x36f8f8['getColumns'](_0x3bd4f9)-0x1),Ue(_0x177a85,_0x28b073,_0x36f8f8);}(_0x2e78a6,_0x122f76,_0x544763['model'],_0x3180ed,_0x527571)&&(_0x56e4af['stop'](),_0x142b41={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x544763['model']['change'](()=>{_0x544763['model']['insertContent'](_0x4573e1[0x0],_0x4573e1[0x1],_0x4573e1[0x2],{'forceDefaultExecution':!0x0});const _0x2d137a=_0x42ebb1(),{rowInsertionRanges:_0x579207,columnInsertionRanges:_0x3bda06,insertionRanges:_0x5265d6,deletionRanges:_0x4041d4,cells:_0x5a2ea7}=_0x142b41;_0x579207['length']&&_0x3c2769['markMultiRangeInsertion'](_0x579207,'tablePasteRow',{'tablePasteChainId':_0x2d137a}),_0x3bda06['length']&&_0x3c2769['markMultiRangeInsertion'](_0x3bda06,'tablePasteColumn',{'tablePasteChainId':_0x2d137a}),_0x5265d6['length']&&(_0x3c2769['markMultiRangeInsertion'](_0x5265d6,'tablePaste',{'tablePasteChainId':_0x2d137a,'skipNestingCheck':!0x0}),_0x5265d6['forEach'](_0x872060=>_0x872060['detach']?.())),_0x4041d4['length']&&(_0x3c2769['markMultiRangeDeletion'](_0x4041d4,'tablePaste',{'tablePasteChainId':_0x2d137a,'skipNestingCheck':!0x0}),_0x4041d4['forEach'](_0x3f6ee1=>_0x3f6ee1['detach']?.()));const _0x405cf9=_0x3c2769['markMultiRangeBlockFormat'](_0x5a2ea7['map'](({element:_0x9a6e43})=>_0x9a6e43),{'formatGroupId':_0x42ebb1()},[],'tablePasteCell',{'tablePasteChainId':_0x2d137a});if(_0x405cf9){const _0x5754fe=_0x405cf9['getMarkers'](),_0x57ef4c=[];for(const {element:_0x3bf8c5,attributes:_0x5b875a}of _0x5a2ea7){if(!_0x5b875a)continue;const _0x48b518=_0x544763['model']['createRangeOn'](_0x3bf8c5),_0x323acd=_0x5754fe['find'](_0x553d3c=>_0x553d3c['getRange']()['isEqual'](_0x48b518));_0x323acd&&_0x57ef4c['push']([_0x323acd['name'],_0x5b875a]);}_0x57ef4c['length']&&_0x405cf9['setAttribute']('markerAttributes',Object['fromEntries'](_0x57ef4c));}_0x142b41=null;}));},{'priority':_0x671717['high']+0xa}),_0x544763['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f62ca,_0x578fca)=>{const [_0x153fe1,_0x12e13f,,_0x22e890]=_0x578fca;if(!_0x142b41)return;_0x3f62ca['stop']();const _0x3e9267=_0x153fe1['cell'],_0x2c8e6e=_0x12e13f,_0x324824=Oe(_0x3e9267),_0x44fa18=Oe(_0x2c8e6e);_0x3f62ca['return']=_0x3e9267;let _0x1b577a=null,_0x3e0999=null;if(_0x44fa18||_0x324824){if(_0x324824&&!_0x44fa18){_0x22e890['remove'](_0x3e9267['getChild'](0x0));for(const _0x5ea7c3 of Array['from'](_0x2c8e6e['getChildren']()))_0x22e890['insert'](_0x5ea7c3,_0x3e9267,'end');const _0x1f7ac2=_0x142b41['rowInsertionIndexes']['includes'](_0x153fe1['row']),_0x2e1a4e=_0x142b41['columnInsertionIndexes']['includes'](_0x153fe1['column']);_0x1f7ac2||_0x2e1a4e||(_0x1b577a=_0x402ed1['fromRange'](_0x22e890['createRangeIn'](_0x3e9267)));}else _0x44fa18&&!_0x324824&&(_0x3e0999=_0x22e890['createRangeIn'](_0x3e9267));}else{const _0x4f9903=_0x22e890['createElement']('tableCellSuggestion'),_0x4801ae=_0x22e890['createElement']('tableCellSuggestion');_0x22e890['wrap'](_0x22e890['createRangeIn'](_0x3e9267),_0x4801ae),_0x22e890['insert'](_0x4f9903,_0x3e9267,0x0);for(const _0x24284a of Array['from'](_0x2c8e6e['getChildren']()))_0x22e890['insert'](_0x24284a,_0x4f9903,'end');_0x1b577a=_0x402ed1['fromRange'](_0x22e890['createRangeOn'](_0x4f9903)),_0x3e0999=_0x402ed1['fromRange'](_0x22e890['createRangeOn'](_0x4801ae));}const _0x1e15ca=Array['from'](_0x2c8e6e['getAttributes']())['filter'](([_0x51bf67])=>Be['includes'](_0x51bf67));_0x142b41['cells']['push']({'element':_0x3e9267,'attributes':_0x1e15ca['length']?Object['fromEntries'](_0x1e15ca):null}),_0x1b577a&&_0x142b41['insertionRanges']['push'](_0x1b577a),_0x3e0999&&_0x142b41['deletionRanges']['push'](_0x3e0999);},{'priority':'high'}),_0x3180ed['on']('insertColumns',(_0x31013c,_0x1e1d98)=>{const [_0x44b54f,_0x10eeff={}]=_0x1e1d98;if(!_0x142b41)return;const _0x2263c6=_0x10eeff['at']||0x0,_0x56a2f0=_0x10eeff['columns']||0x1;_0x142b41['columnInsertionIndexes']=new Array(_0x56a2f0)['fill'](_0x2263c6)['map']((_0x775f9,_0x322eb5)=>_0x775f9+_0x322eb5);for(const {cell:_0x509833}of _0x3180ed['createTableWalker'](_0x44b54f,{'startColumn':_0x2263c6,'endColumn':_0x2263c6+_0x56a2f0-0x1}))_0x142b41['columnInsertionRanges']['push'](_0x544763['model']['createRangeOn'](_0x509833));},{'priority':'low'}),_0x3180ed['on']('insertRows',(_0x4d1e76,_0x10c7ca)=>{const [_0x2d45d9,_0x114242={}]=_0x10c7ca;if(!_0x142b41)return;const _0x2501f5=_0x114242['at']||0x0,_0x520d0f=_0x114242['rows']||0x1;_0x142b41['rowInsertionIndexes']=new Array(_0x520d0f)['fill'](_0x2501f5)['map']((_0x1c4d10,_0xd5637d)=>_0x1c4d10+_0xd5637d);for(const {cell:_0x389eca}of _0x3180ed['createTableWalker'](_0x2d45d9,{'startRow':_0x2501f5,'endRow':_0x2501f5+_0x520d0f-0x1}))_0x142b41['rowInsertionRanges']['push'](_0x544763['model']['createRangeOn'](_0x389eca));},{'priority':'low'}),_0x3c2769['descriptionFactory']['registerDescriptionCallback'](_0x3ba28a=>{if(_0x3ba28a['subType']&&_0x3ba28a['subType']['startsWith']('tablePaste'))return _0x3ba28a['previous']?{}:{'type':'insertion','content':o(_0x544763['locale'],'*Replace\x20table\x20cells*')};});const _0x528980=()=>!0x1;for(const _0x276dfa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3c2769['_suggestionFactory']['registerCustomCallback']('insertion',_0x276dfa,'join',_0x528980),_0x3c2769['_suggestionFactory']['registerCustomCallback']('deletion',_0x276dfa,'join',_0x528980),_0x3c2769['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x276dfa,'join',_0x528980);_0x3c2769['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x528980),_0x3c2769['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1221a0,_0x53df71,_0x1b3984)=>{const _0x5474a1=_0x1221a0['map'](_0x3c98b1=>_0x3c98b1['getContainedElement']())['filter'](_0x4c7f0d=>_0x4c7f0d),_0x76c370=new Map(_0x5474a1['map'](_0x3d5149=>[_0x3d5149,null]));if(_0x142b41){for(const {element:_0x549228,attributes:_0x58269c}of _0x142b41['cells'])_0x58269c&&_0x76c370['set'](_0x549228,_0x58269c);}else{if(_0x1b3984&&_0x1b3984['markerAttributes'])for(const [_0x39f039,_0x496544]of Object['entries'](_0x1b3984['markerAttributes'])){const _0x2a4177=_0x544763['model']['markers']['get'](_0x39f039),_0x427f07=_0x2a4177?_0x2a4177['getRange']()['getContainedElement']():null;_0x427f07&&_0x76c370['set'](_0x427f07,_0x496544);}}_0x544763['model']['change'](_0x3343ba=>{for(const [_0x30d4d7,_0x10f3cc]of _0x76c370)_0x3343ba['setAttributes']({...xe,..._0x10f3cc},_0x30d4d7);});});const _0x5691d8=(_0x1917ae,_0x37af24)=>{_0x3c2769['_suggestionFactory']['registerCustomCallback'](_0x1917ae,'tablePaste',_0x37af24,(_0xd95ccd,_0x1761f5,_0x28967a)=>{_0x544763['model']['change'](_0x4c5149=>{const _0x735455=[];for(const _0x4537be of _0xd95ccd){const _0x12870e=_0x4537be['start']['nodeAfter'];_0x12870e['is']('element','tableCellSuggestion')&&_0x735455['push'](_0x12870e);}_0x3c2769['_suggestionFactory']['getSuggestionCallback'](_0x1917ae,null,_0x37af24)(_0xd95ccd,_0x1761f5,_0x28967a);for(const _0x25aefb of _0x735455)'$graveyard'!=_0x25aefb['root']['rootName']&&_0x4c5149['unwrap'](_0x25aefb);});});};_0x5691d8('insertion','accept'),_0x5691d8('insertion','discard'),_0x5691d8('deletion','accept'),_0x5691d8('deletion','discard'),_0x3c2769['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xd919d0=>{const _0x4af7c2=_0xd919d0['map'](_0x276004=>_0x276004['getContainedElement']()),_0x294e61=_0x4af7c2[0x0]['findAncestor']('table'),{minRow:_0x39c6bd,maxRow:_0x1c91c3}=_0x1d65fa['_getCoordsForCells'](_0x4af7c2);_0x3180ed['removeRows'](_0x294e61,{'at':_0x39c6bd,'rows':_0x1c91c3-_0x39c6bd+0x1});}),_0x3c2769['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x33a99a=>{const _0xcc4bb8=_0x33a99a['map'](_0x3f7a3c=>_0x3f7a3c['getContainedElement']()),_0x3ba71b=_0xcc4bb8[0x0]['findAncestor']('table'),{minColumn:_0x484bcd,maxColumn:_0x1ebede}=_0x1d65fa['_getCoordsForCells'](_0xcc4bb8);_0x3180ed['removeColumns'](_0x3ba71b,{'at':_0x484bcd,'columns':_0x1ebede-_0x484bcd+0x1});});const _0x3b0ea2=(_0x23f3df,_0x473e57)=>{if(!_0x473e57['subType']||!_0x473e57['subType']['startsWith']('tablePaste'))return;const _0x5c85b1=_0x473e57['attributes']['tablePasteChainId'],_0x310227=_0x3c2769['getSuggestions']()['filter'](_0x45fc10=>_0x45fc10['isInContent']&&_0x45fc10['attributes']&&_0x45fc10['attributes']['tablePasteChainId']==_0x5c85b1);_0x310227['length']&&_0x473e57['getAllAdjacentSuggestions']()['length']!=_0x310227['length']&&_0x310227['reduce']((_0xd549fc,_0x59fd03)=>(_0xd549fc['next']=_0x59fd03,_0x59fd03['previous']=_0xd549fc,_0x59fd03));};function _0x5685f6(_0x14e265,_0x196ff0=!0x0){const {id:_0x8b553,authorId:_0x30b65d}=_0x3c2769['_splitMarkerName'](_0x14e265['markerName']),_0x114b1c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x18d5c6=_0x3c2769['activeMarkers']['includes'](_0x14e265['markerName']);return _0x18d5c6&&_0x114b1c['push']('ck-suggestion-marker--active'),{'classes':_0x114b1c,'attributes':{'data-suggestion':_0x8b553,'data-author-id':_0x30b65d},'priority':_0x18d5c6&&_0x196ff0?0xbc2:0xbb8};}_0x3c2769['on']('suggestionLoaded',_0x3b0ea2,{'priority':'high'}),_0x3c2769['on']('suggestionUnloaded',_0x3b0ea2,{'priority':'high'}),_0x544763['model']['document']['registerPostFixer'](()=>{let _0x4ef390=!0x1;const _0x58c41b=Array['from'](_0x544763['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51b61c,data:_0x311e8f}of _0x58c41b){const {group:_0x45b70b,type:_0x2c58eb,id:_0x282617}=_0x3c2769['_splitMarkerName'](_0x51b61c);if('suggestion'!=_0x45b70b||'deletion'!=_0x2c58eb||_0x311e8f['oldRange'])continue;if(!_0x3c2769['hasSuggestion'](_0x282617))continue;const _0x5e7079=_0x3c2769['getSuggestion'](_0x282617)['getRanges'](),_0x90c7c2=_0x544763['plugins']['get']('Users')['me'];for(const _0x601981 of _0x3c2769['getSuggestions']()){if(!_0x601981['isInContent']||_0x601981['author']!=_0x90c7c2)continue;if('formatBlock'!=_0x601981['type']||'tablePasteCell'!=_0x601981['subType'])continue;if(_0x601981['getRanges']()['every'](_0x108669=>_0x5e7079['some'](_0x13065e=>_0x13065e['containsRange'](_0x108669,!0x0)))){for(const _0x5456cb of _0x601981['getAllAdjacentSuggestions']())_0x5456cb['isInContent']&&(_0x5456cb['discard'](),_0x4ef390=!0x0);}}}return _0x4ef390;}),_0x544763['model']['document']['registerPostFixer'](_0x29b07c=>{const _0x3af26f=_0x544763['commands']['get']('redo');if(!_0x3af26f||!_0x3af26f['_createdBatches']['has'](_0x29b07c['batch']))return!0x1;let _0x43d340=!0x1;const _0x2c5f6d=_0x544763['plugins']['get']('Users')['me'],_0x1d7507=_0x544763['model']['document']['differ']['getChanges'](),_0x260418=Array['from'](_0x544763['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2b7d50,data:_0x4dfa3a})=>{const {group:_0x3567bb,subType:_0x3e9e78,authorId:_0x4d61f1}=_0x3c2769['_splitMarkerName'](_0x2b7d50);return'suggestion'==_0x3567bb&&'tablePaste'==_0x3e9e78&&_0x4d61f1==_0x2c5f6d['id']&&!_0x4dfa3a['oldRange'];});for(const _0x573a18 of _0x1d7507){if('insert'!=_0x573a18['type']||'tableCellSuggestion'!=_0x573a18['name']||0x1!=_0x573a18['length'])continue;const _0x53847e=_0x29b07c['createRange'](_0x573a18['position'],_0x573a18['position']['getShiftedBy'](0x1));if(!_0x260418['find'](({data:_0x14f5bd})=>_0x14f5bd['newRange']['isEqual'](_0x53847e))){for(const {name:_0x527717,data:_0x42ed1a}of _0x260418)if(_0x53847e['containsRange'](_0x42ed1a['newRange'])){_0x29b07c['updateMarker'](_0x527717,{'range':_0x53847e}),_0x43d340=!0x0;break;}}}return _0x43d340;}),_0x544763['model']['document']['registerPostFixer'](_0xb9cfa3=>{let _0x3ee5de=!0x1;const _0x58d4bd=_0x544763['plugins']['get']('Users')['me'],_0x54c72b=_0x3c2769['getSuggestions']()['filter'](_0x49a599=>_0x49a599['isInContent']&&_0x49a599['author']==_0x58d4bd),_0x1c09bd=new Set(),_0xecc2a2=new Set();for(const _0x1d24ae of _0x54c72b)if('tablePaste'==_0x1d24ae['subType'])for(const _0xf44fa0 of _0x1d24ae['getMarkers']()){const _0x4dd0db=_0xf44fa0['getRange']()['getContainedElement']();if(_0x4dd0db){if(_0x4dd0db['is']('element','tableCellSuggestion')&&Oe(_0x4dd0db)){_0x1d24ae['removeMarker'](_0xf44fa0['name']),_0x1c09bd['add'](_0x4dd0db),_0x3ee5de=!0x0;const _0x279af1=_0x4dd0db['nextSibling'],_0x1ecc12=_0x4dd0db['previousSibling'],_0xbbaba4=_0x279af1&&_0x279af1['is']('element','tableCellSuggestion'),_0x4dc87e=_0x1ecc12&&_0x1ecc12['is']('element','tableCellSuggestion');_0xbbaba4&&!_0x1c09bd['has'](_0x279af1)&&_0xecc2a2['add'](_0x279af1),_0x4dc87e&&!_0x1c09bd['has'](_0x1ecc12)&&_0xecc2a2['add'](_0x1ecc12);}else _0x4dd0db['is']('element','paragraph')&&_0x4dd0db['isEmpty']&&(_0x1d24ae['removeMarker'](_0xf44fa0['name']),_0x3ee5de=!0x0);}}else{if('tablePasteCell'==_0x1d24ae['subType']){if(!_0x1d24ae['attributes']||!_0x1d24ae['attributes']['tablePasteChainId'])continue;const _0x4b0c59=_0x1d24ae['attributes']['markerAttributes'];if(_0x4b0c59&&Object['keys'](_0x4b0c59)['length'])continue;const _0x32342f=_0x1d24ae['attributes']['tablePasteChainId'];let _0x11a26d=!0x0,_0x17eae2=!0x0;for(const _0x1ff37d of _0x54c72b)if(_0x1ff37d['subType']&&_0x1ff37d['subType']['startsWith']('tablePaste')){if(!_0x1ff37d['attributes']['tablePasteChainId']){_0x17eae2=!0x1;break;}if(_0x1ff37d['id']!=_0x1d24ae['id']&&_0x1ff37d['attributes']['tablePasteChainId']==_0x32342f){_0x11a26d=!0x1;break;}}_0x17eae2&&_0x11a26d&&(_0x1d24ae['removeMarkers'](),_0x3ee5de=!0x0);}}for(const _0x47a982 of _0x1c09bd)_0xb9cfa3['remove'](_0x47a982);for(const _0x337843 of _0xecc2a2)_0xb9cfa3['unwrap'](_0x337843);return _0x3ee5de;}),_0x544763['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x9b086d=>_0x5685f6(_0x9b086d),'converterPriority':'high'}),_0x544763['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x164ef0,_0x12ee2a)=>_0x12ee2a['options']['showSuggestionHighlights']?_0x5685f6(_0x164ef0,!0x1):null,'converterPriority':'high'});const _0x2d0c1e=_0x544763['editing']['view'];this['listenTo'](_0x2d0c1e['document'],'clipboardOutput',(_0x10fdd8,_0x29c4b4)=>{const _0x1fc996=[];for(const _0x2314d7 of _0x2d0c1e['createRangeIn'](_0x29c4b4['content'])['getItems']())_0x2314d7['is']('element','suggestion-td')&&_0x1fc996['push'](_0x2314d7);_0x2d0c1e['change'](_0x31027a=>{for(const _0xb4cb of _0x1fc996)_0x31027a['move'](_0x31027a['createRangeIn'](_0xb4cb),_0x31027a['createPositionBefore'](_0xb4cb)),_0x31027a['remove'](_0xb4cb);});});}}function Oe(_0x34a48f){if(_0x34a48f['isEmpty'])return!0x0;const _0x600ac7=_0x34a48f['getChild'](0x0);return _0x600ac7['is']('element','paragraph')&&_0x600ac7['isEmpty'];}function Ue(_0x571954,_0x14fd56={},_0xa496df){for(const {isAnchor:_0x3d6a92,cellHeight:_0x378a79,cellWidth:_0x8a266f}of _0xa496df['createTableWalker'](_0x571954,{'includeAllSlots':!0x0,..._0x14fd56}))if(!_0x3d6a92||0x1!=_0x378a79||0x1!=_0x8a266f)return!0x1;return!0x0;}class $t extends _0x5b5ba2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5b23d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b23d4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5b23d4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5b23d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b23d4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5b23d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5b23d4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x15f2a4,_0x378226){const _0x5a7ca4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x451d05=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3876ca=_0x378226['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x51e046=_0x451d05['getColumnGroupElement'](_0x3876ca);let _0x3f79a2=_0x51e046?_0x451d05['getTableColumnsWidths'](_0x51e046):null,_0x5b31d3=_0x3876ca['getAttribute']('tableWidth')||null;const _0x28e465=_0x378226['tableWidth']||_0x5b31d3,_0x18e554=_0x378226['columnWidths']||_0x3f79a2,_0x3fe7ef=this['editor']['plugins']['get']('Users')['me'];for(const _0x479687 of _0x5a7ca4['getSuggestions']()){const _0x6449c8=_0x479687['getContainedElement']();if('resizeTable'===_0x479687['subType']&&_0x6449c8===_0x3876ca){_0x479687['author']!==_0x3fe7ef&&_0x479687['discard']();const _0x305d93=_0x479687['data']['commandParams'];_0x5b31d3=_0x305d93[0x0]['tableWidth'],_0x3f79a2=_0x305d93[0x0]['columnWidths'];break;}}_0x15f2a4({'table':_0x3876ca,'tableWidth':_0x28e465,'columnWidths':_0x18e554}),_0x5a7ca4['markBlockFormat'](_0x3876ca,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5b31d3,'columnWidths':_0x3f79a2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x18b677){if('formatBlock'!=_0x18b677['type']&&'formatInline'!=_0x18b677['type'])return;const {data:_0x1b8af3}=_0x18b677;if(_0x1b8af3&&'resizeTable'===_0x1b8af3['formatGroupId']){const _0x1ebcdd='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1ebcdd)};}}}class Bt extends _0x5b5ba2{['afterInit'](){const _0x5089e2=this['editor'];_0x5089e2['plugins']['has']('Template')&&_0x5089e2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5b5ba2{['afterInit'](){const _0x4b4c8d=this['editor'];if(!_0x4b4c8d['commands']['get']('insertTableOfContents'))return;_0x4b4c8d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33101f=_0x4b4c8d['plugins']['get']('TrackChangesEditing'),_0x480853=_0x4b4c8d['locale'];_0x33101f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x51de7d=>o(_0x480853,'ELEMENT_TABLE_OF_CONTENTS',_0x51de7d));}}class Rt extends _0x5b5ba2{['afterInit'](){const _0x468c9f=this['editor'];if(!_0x468c9f['plugins']['has']('Title'))return;const _0x463a8c=_0x468c9f['plugins']['get']('TrackChangesEditing');_0x463a8c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x468c9f['locale'],'ELEMENT_TITLE')),_0x468c9f['model']['document']['registerPostFixer'](_0x26745b=>{let _0x1c6c48=!0x1;const _0x4b4220=Array['from'](_0x468c9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22d87e,data:_0xf9d040}of _0x4b4220){const {group:_0xeb1ce4}=_0x463a8c['_splitMarkerName'](_0x22d87e);if('suggestion'!==_0xeb1ce4||!_0xf9d040['newRange'])continue;const _0x3c0a88=_0xf9d040['newRange'],_0x3b46c6=_0x3c0a88['end']['nodeBefore'];if(!_0x3b46c6||!_0x3b46c6['is']('element','title-content'))continue;if(!_0x3c0a88['start']['isTouching'](_0x3c0a88['end']))continue;const _0x6cc896=_0x468c9f['model']['schema']['getNearestSelectionRange'](_0x3c0a88['end'],'forward');if(_0x6cc896&&_0x6cc896['isCollapsed']){const _0x5ca12c=_0x26745b['createRange'](_0x3c0a88['start'],_0x6cc896['start']);_0x5ca12c['isEqual'](_0x3c0a88)||(_0x26745b['updateMarker'](_0x22d87e,{'range':_0x5ca12c}),_0x1c6c48=!0x0);}_0x1c6c48||(_0x26745b['removeMarker'](_0x22d87e),_0x1c6c48=!0x0);}return _0x1c6c48;});}}class Tt extends _0x5b5ba2{['afterInit'](){const _0x512a56=this['editor'],_0x55c38a=_0x512a56['plugins']['get']('TrackChangesEditing');_0x512a56['plugins']['has']('Uploadcare')&&(_0x55c38a['enableCommand']('uploadcare'),_0x512a56['plugins']['has']('UploadcareImageEdit')&&(_0x55c38a['enableCommand']('uploadcareImageEdit'),_0x55c38a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x55c38a['registerBlockAttribute']('uploadcareImageId'),_0x55c38a['descriptionFactory']['registerDescriptionCallback'](_0x4ba5dd=>{if('attribute'!=_0x4ba5dd['type'])return;const {data:_0x436cb7}=_0x4ba5dd;return _0x436cb7&&'uploadcareImageId'==_0x436cb7['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x5b5ba2{['afterInit'](){const _0xce2079=this['editor'],_0x349fb3=_0xce2079['plugins']['get']('TrackChangesEditing');_0xce2079['plugins']['has']('UndoEditing')&&(_0x349fb3['enableCommand']('undo'),_0x349fb3['enableCommand']('redo'));}}class Et extends _0x5b5ba2{static get['requires'](){return[Ct];}['afterInit'](){const _0x4cc7f8=this['editor'];if(!_0x4cc7f8['plugins']['has']('TableCaptionEditing'))return;_0x4cc7f8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x5b5ba2{['tableProperties'];['tableCellProperties'];constructor(_0xad98f3){super(_0xad98f3),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 _0x2599fc=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x16aa25 of this['tableProperties'])_0x2599fc['enableCommand'](_0x16aa25,(_0x5909b0,_0x4f45ac)=>{const _0x2cce46=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x16aa25,[_0x2cce46],this['tableProperties'],'tableProperties',_0x5909b0,_0x4f45ac);});_0x2599fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2599fc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2599fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47882d,_0x4f8644)=>this['handleDiscardAction'](this['tableProperties'],_0x47882d,_0x4f8644)),_0x2599fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x22bc37 of this['tableCellProperties'])_0x2599fc['enableCommand'](_0x22bc37,(_0x58c414,_0x33ca81)=>{const _0x232558=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x22bc37,_0x232558,this['tableCellProperties'],'tableCellProperties',_0x58c414,_0x33ca81);});_0x2599fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2599fc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2599fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3eecdc,_0x4b59de)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3eecdc,_0x4b59de)),_0x2599fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2599fc['descriptionFactory']['registerDescriptionCallback'](_0x4fecb2=>this['handleSuggestionDescription'](_0x4fecb2));}['_handlePropertyChange'](_0x21363b,_0x2c5be6,_0x31ec87,_0x309c81,_0x419ced,_0x199572){const _0x374510=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x199572['batch'],()=>{for(const _0x5feff4 of _0x2c5be6){if(this['_getSuggestion'](_0x5feff4,_0x309c81))_0x419ced(_0x199572);else{const _0x42d2f9={};for(const _0x646287 of _0x31ec87){const _0x468f42=_0x5feff4['getAttribute'](_0x646287);void 0x0!==_0x468f42&&(_0x42d2f9[_0x646287]=_0x468f42);}_0x419ced(_0x199572),_0x374510['markBlockFormat'](_0x5feff4,{'commandParams':[_0x42d2f9]},[],_0x309c81);}}});}['handleDiscardAction'](_0x407eb5,_0x1cd748,_0x489da0){const _0x5af9e1=_0x1cd748[0x0]['start']['nodeAfter'],_0x534c74=_0x489da0['commandParams'][0x0];this['editor']['model']['change'](_0x2cf363=>{for(const _0x4d41eb of _0x407eb5)void 0x0!==_0x534c74[_0x4d41eb]?_0x2cf363['setAttribute'](_0x4d41eb,_0x534c74[_0x4d41eb],_0x5af9e1):_0x2cf363['removeAttribute'](_0x4d41eb,_0x5af9e1);});}['handleSuggestionDescription'](_0x20f207){if(_0x20f207['data'])switch(_0x20f207['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'](_0xa89ff3,_0x409dc2){const _0x24141f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x31bd93 of _0x24141f['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f5974=_0x31bd93['getContainedElement']();if(_0x31bd93['subType']===_0x409dc2&&_0x3f5974===_0xa89ff3)return _0x31bd93;}return null;}}const m='$elementName';class p extends _0x5b5ba2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5840a6,_0x597335,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b5a84){super(_0x3b5a84),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x254240,_0xc150ab,_0x2cf206,_0x503bbd)=>{this['_model']['change'](()=>{for(const _0x330d25 of[..._0x503bbd,..._0x2cf206])this['_model']['markers']['has'](_0x330d25)&&_0x3b5a84['editing']['reconvertMarker'](_0x330d25);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3b5a84['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3b5a84['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b5a84['config']['get']('trackChanges.trackFormatChanges'),_0x3b5a84['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b5a84['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3b5a84,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x10dbcb=this['editor'],_0x48f7b1=(_0x340abf,_0x2b6719)=>{if('attribute'!=_0x340abf)return'ck-suggestion-marker-'+_0x340abf;const _0x360ced=_0x2b6719['split']('|')[0x0];return this['_isBlockAttribute'](_0x360ced)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x10dbcb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x261a58=>{const {id:_0x21307c,authorId:_0x1fcd2c,type:_0x5e6dc9,subType:_0x311776}=this['_splitMarkerName'](_0x261a58['markerName']),_0x10cf2=['ck-suggestion-marker',_0x48f7b1(_0x5e6dc9,_0x311776)];let _0x44b8c7=0xbb8;return this['activeMarkers']['includes'](_0x261a58['markerName'])&&(_0x10cf2['push']('ck-suggestion-marker--active'),_0x44b8c7=0xbc2),'deletion'==_0x5e6dc9&&(_0x44b8c7+=0x5),{'classes':_0x10cf2,'attributes':{'data-suggestion':_0x21307c,'data-author-id':_0x1fcd2c},'priority':_0x44b8c7};}}),_0x10dbcb['conversion']['for']('dataDowncast')['add'](_0x3a971c=>{_0x3a971c['on']('addMarker:suggestion',(_0x381a3f,_0x4601ef,_0x1ce883)=>{if(!_0x1ce883['options']['showSuggestionHighlights'])return;const _0x557565=_0x4601ef['item'];if(!_0x557565)return;const _0x1b1639=_0x1ce883['mapper']['toViewElement'](_0x557565);_0x10dbcb['model']['schema']['isObject'](_0x557565)&&_0x1b1639&&!_0x1b1639['getCustomProperty']('widget')&&_0x1b1639['is']('containerElement')&&_0x3f4f22(_0x1b1639,_0x1ce883['writer']);},{'priority':'high'});}),_0x10dbcb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d4417,_0x1db9be)=>{if(!_0x1db9be['options']['showSuggestionHighlights'])return null;const {type:_0x9adfbd,subType:_0x4f9716}=this['_splitMarkerName'](_0x2d4417['markerName']);return{'classes':['ck-suggestion-marker',_0x48f7b1(_0x9adfbd,_0x4f9716)],'priority':0xbb8};}});const _0x15521f=({showActiveMarkers:_0x1d2cd0=!0x0,isAttributeSuggestion:_0x5f4007=!0x1}={})=>(_0x517dae,_0x55f6f7,_0x5c3091)=>{if(!_0x55f6f7['item'])return;const {id:_0x1506f2,authorId:_0x53b04f}=this['_splitMarkerName'](_0x55f6f7['markerName']);if(_0x5f4007){const _0x1ab0c6=this['_suggestions']['get'](_0x1506f2),_0x24493f=this['_getAttributeKey'](_0x1ab0c6);if(!this['_isBlockAttribute'](_0x24493f))return;}if(_0x55f6f7['item']['is']('selection'))return void _0x5c3091['consumable']['consume'](_0x55f6f7['item'],_0x517dae['name']);const _0x44526e=_0x5c3091['mapper']['toViewElement'](_0x55f6f7['item']);if(_0x55f6f7['item']['is']('element')&&_0x10dbcb['model']['schema']['isBlock'](_0x55f6f7['item'])&&!_0x44526e['getCustomProperty']('addHighlight')){_0x5c3091['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x44526e),_0x5c3091['writer']['setAttribute']('data-suggestion',_0x1506f2,_0x44526e),_0x5c3091['writer']['setAttribute']('data-author-id',_0x53b04f,_0x44526e),_0x5c3091['mapper']['bindElementToMarker'](_0x44526e,_0x55f6f7['markerName']),_0x1d2cd0&&(this['activeMarkers']['includes'](_0x55f6f7['markerName'])?_0x5c3091['writer']['addClass']('ck-suggestion-marker--active',_0x44526e):_0x5c3091['writer']['removeClass']('ck-suggestion-marker--active',_0x44526e));for(const _0x4f375d of _0x10dbcb['model']['createRangeIn'](_0x55f6f7['item'])['getItems']())_0x5c3091['consumable']['consume'](_0x4f375d,_0x517dae['name']);_0x5c3091['consumable']['consume'](_0x55f6f7['item'],_0x517dae['name']);}};_0x10dbcb['conversion']['for']('dataDowncast')['add'](_0x35c681=>{_0x35c681['on']('addMarker:suggestion:formatBlock',(_0x4a8082,_0x6a04a1,_0x3784e6)=>{_0x3784e6['options']['showSuggestionHighlights']&&_0x15521f({'showActiveMarkers':!0x1})(_0x4a8082,_0x6a04a1,_0x3784e6);},{'priority':'highest'});}),_0x10dbcb['conversion']['for']('dataDowncast')['add'](_0x30148a=>{_0x30148a['on']('addMarker:suggestion:attribute',(_0x251f19,_0x1b305c,_0x13cd8c)=>{_0x13cd8c['options']['showSuggestionHighlights']&&_0x15521f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x251f19,_0x1b305c,_0x13cd8c);},{'priority':'highest'});}),_0x10dbcb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4abc2b,_0x321322)=>_0x321322['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4abc2b['substr'](0xb)}}),_0x10dbcb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e07d4,{writer:_0x5cbbeb})=>{let _0x2f9c8a='suggestion:'+_0x1e07d4['getAttribute']('suggestion-type')+':'+_0x1e07d4['getAttribute']('id');return _0x1e07d4['getAttribute']('marker-count')&&(_0x2f9c8a+=':'+_0x1e07d4['getAttribute']('marker-count')),_0x5cbbeb['createElement']('$marker',{'data-name':_0x2f9c8a});}}),_0x10dbcb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x10dbcb['conversion']['for']('editingDowncast')['add'](_0x362c36=>{_0x362c36['on']('addMarker:suggestion:formatBlock',_0x15521f(),{'priority':'high'});}),_0x10dbcb['conversion']['for']('editingDowncast')['add'](_0x3831b5=>{_0x3831b5['on']('addMarker:suggestion:attribute',_0x15521f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x10dbcb['conversion']['for']('editingDowncast')['add'](_0x41d631=>{_0x41d631['on']('removeMarker:suggestion:formatBlock',(_0x2db208,_0x30b53a,_0x4067ae)=>{const _0x44b5bd=_0x4067ae['mapper']['markerNameToElements'](_0x30b53a['markerName']);if(_0x44b5bd){for(const _0x2c4249 of _0x44b5bd)_0x2c4249['getCustomProperty']('addHighlight')||(_0x4067ae['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c4249),_0x4067ae['writer']['removeAttribute']('data-suggestion',_0x2c4249),_0x4067ae['writer']['removeAttribute']('data-author-id',_0x2c4249),_0x4067ae['mapper']['unbindElementFromMarkerName'](_0x2c4249,_0x30b53a['markerName']));}},{'priority':'high'});}),_0x10dbcb['conversion']['for']('editingDowncast')['add'](_0x50e039=>{_0x50e039['on']('removeMarker:suggestion:attribute',(_0x4a1dab,_0x51243e,_0x3462ca)=>{const _0x2f1eac=_0x3462ca['mapper']['markerNameToElements'](_0x51243e['markerName']);if(!_0x2f1eac)return;const {id:_0x5894cc}=this['_splitMarkerName'](_0x51243e['markerName']),_0x2763de=this['_suggestions']['get'](_0x5894cc),_0x57f998=this['_getAttributeKey'](_0x2763de);if(this['_isBlockAttribute'](_0x57f998)){for(const _0x26c315 of _0x2f1eac)_0x26c315['getCustomProperty']('addHighlight')||(_0x3462ca['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26c315),_0x3462ca['writer']['removeAttribute']('data-suggestion',_0x26c315),_0x3462ca['writer']['removeAttribute']('data-author-id',_0x26c315),_0x3462ca['mapper']['unbindElementFromMarkerName'](_0x26c315,_0x51243e['markerName']));}},{'priority':'high'});}),_0x10dbcb['model']['document']['registerPostFixer'](_0x27e8e2=>{let _0x180225=!0x1;const _0x2c387c=Array['from'](_0x10dbcb['model']['document']['differ']['getChangedMarkers']()),_0x3ca71b=new Set();for(const {name:_0x1f6889,data:_0x2de131}of _0x2c387c){const {group:_0x27002b,type:_0x1f7e35,subType:_0x16ceb7,id:_0x5f13d9}=this['_splitMarkerName'](_0x1f6889);if('suggestion'!==_0x27002b)continue;const _0x2c96ec=this['_suggestions']['get'](_0x5f13d9);if(null!=_0x2de131['newRange']){'formatInline'==_0x1f7e35&&(_0x180225=_0x180225||Lt(_0x2de131['newRange'],_0x1f6889,_0x27e8e2,_0x10dbcb['model']['schema']));const _0x605668='attribute'==_0x1f7e35&&this['_isBlockAttribute'](_0x16ceb7['split']('|')[0x0]);if(_0x2de131['newRange']['isCollapsed']||'$graveyard'==_0x2de131['newRange']['root']['rootName']||'formatBlock'==_0x1f7e35&&!Ht(_0x2de131['newRange'])||_0x605668&&!Ht(_0x2de131['newRange'])||'deletion'==_0x1f7e35&&!(!Ft(_0x2ea45e=_0x2de131['newRange'])&&!function(_0xe9a441){return _0xe9a441['start']['parent']==_0xe9a441['end']['nodeBefore']&&_0xe9a441['start']['isAtEnd'];}(_0x2ea45e)))_0x27e8e2['removeMarker'](_0x1f6889),_0x180225=!0x0;else{if(!_0x2c96ec||!_0x2c96ec['isInContent'])continue;if(_0x2de131['newRange']&&_0x2de131['oldRange']&&_0x2de131['newRange']['isEqual'](_0x2de131['oldRange']))continue;_0x3ca71b['add'](_0x2c96ec);}}}var _0x2ea45e;return _0x3ca71b['size']>0x0&&(_0x180225=!!this['_joinWithAdjacentSuggestions'](_0x3ca71b)||_0x180225),_0x180225;}),_0x10dbcb['model']['document']['registerPostFixer'](_0x430846=>{let _0x4dfc31=!0x1;for(const _0x3c3083 of _0x10dbcb['model']['document']['differ']['getChanges']())if('insert'==_0x3c3083['type'])for(const _0x1309dd of this['_suggestions']['values']()){if(_0x1309dd['isMultiRange']||!_0x1309dd['isInContent'])continue;const _0x300ab8='formatBlock'==_0x1309dd['type'],_0x59ef6e=this['_getAttributeKey'](_0x1309dd),_0x51bb6f=_0x59ef6e&&this['_isBlockAttribute'](_0x59ef6e);if(!_0x300ab8&&!_0x51bb6f)continue;const _0x48397e=_0x1309dd['getFirstRange']();if(_0x48397e['start']['parent']!=_0x48397e['end']['parent']&&!_0x48397e['end']['isAtEnd']){const _0x30c072=_0x10dbcb['model']['createPositionAt'](_0x48397e['start']['nodeAfter'],'end'),_0x322b7c=_0x10dbcb['model']['createRange'](_0x48397e['start'],_0x30c072);_0x430846['updateMarker'](_0x1309dd['getFirstMarker'](),{'range':_0x322b7c}),_0x4dfc31=!0x0;}}return _0x4dfc31;}),_0x10dbcb['model']['document']['registerPostFixer'](_0xf11cbb=>this['_processAttributeChanges'](_0xf11cbb)),_0x10dbcb['model']['document']['registerPostFixer'](_0x3ff7a2=>!_0x3ff7a2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3ff7a2)),_0x10dbcb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x10dbcb['model']['document']['on']('change:data',(_0x2b0537,_0x31bbec)=>{if(!_0x31bbec['isLocal']||_0x31bbec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56a712=_0x10dbcb['model']['document']['differ']['getChanges']();if(0x0==_0x56a712['length'])return;const _0x5c00ce=[],_0x13dac6=_0x56a712['filter'](_0x54add7=>'attribute'==_0x54add7['type']),_0x5c2207=_0x56a712['filter'](_0x5be219=>'insert'==_0x5be219['type']&&'$text'!=_0x5be219['name']);for(const _0x22138e of _0x13dac6)this['_isRegisteredAttribute'](_0x22138e['attributeKey'])&&_0x5c00ce['push']({'key':_0x22138e['attributeKey'],'newValue':_0x22138e['attributeNewValue'],'oldValue':_0x22138e['attributeOldValue'],'range':qt(_0x22138e['range'],_0x10dbcb['model'])});for(const _0xfe10b6 of _0x5c2207){if('rename'!=_0xfe10b6['action']&&'refresh'!=_0xfe10b6['action'])continue;const _0x12cd71=zt(_0xfe10b6['position']['nodeAfter'],_0x10dbcb['model']),_0x50152b=_0xfe10b6['before'];'rename'==_0xfe10b6['action']&&_0x5c00ce['push']({'key':m,'newValue':_0xfe10b6['name'],'oldValue':_0x50152b['name'],'range':_0x12cd71});for(const [_0xd85ef7,_0x16217a]of _0x50152b['attributes']){if(!this['_isRegisteredAttribute'](_0xd85ef7))continue;const _0x2a7dd2=_0xfe10b6['attributes']['get'](_0xd85ef7);_0x16217a!==_0x2a7dd2&&_0x5c00ce['push']({'key':_0xd85ef7,'newValue':_0x2a7dd2,'oldValue':_0x16217a,'range':_0x12cd71});}for(const [_0xf36463,_0x47f8d6]of _0xfe10b6['attributes'])this['_isRegisteredAttribute'](_0xf36463)&&(_0x50152b['attributes']['has'](_0xf36463)||_0x5c00ce['push']({'key':_0xf36463,'newValue':_0x47f8d6,'oldValue':null,'range':_0x12cd71}));}0x0!=_0x5c00ce['length']&&_0x10dbcb['model']['enqueueChange'](_0x31bbec,_0x7bd8ec=>{const _0x504490=_0x42ebb1();for(const {range:_0x13c7cb,key:_0x184f7c,oldValue:_0x160fb2,newValue:_0xe19098}of _0x5c00ce)this['markAttributeChange'](_0x13c7cb,_0x184f7c,_0x160fb2,_0xe19098,{'groupId':_0x504490});this['_reduceExistingSuggestions'](_0x7bd8ec,_0x5c00ce);});},{'priority':'lowest'}),_0x10dbcb['model']['markers']['on']('update:suggestion',(_0x20caf5,_0x2b1759,_0x5bdb80)=>{if(null==_0x5bdb80){const {id:_0x58de2a}=this['_splitMarkerName'](_0x2b1759['name']),_0x2037b3=this['_suggestions']['get'](_0x58de2a);_0x2037b3&&_0x2037b3['addMarkerName'](_0x2b1759['name']);}}),_0x10dbcb['model']['document']['on']('change:data',()=>{const _0x3438c5=Array['from'](_0x10dbcb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2f92d5=>'suggestion'===this['_splitMarkerName'](_0x2f92d5['name'])['group']);if(0x0===_0x3438c5['length'])return;_0x3438c5['sort']((_0x3fb9d7,_0x34f9e1)=>{const _0x5b09de=_0x3fb9d7['data']['oldRange'],_0x2e8683=_0x34f9e1['data']['oldRange'];return null===_0x5b09de&&null===_0x2e8683?0x0:null===_0x5b09de&&null!==_0x2e8683?-0x1:null!==_0x5b09de&&null===_0x2e8683?0x1:_0x5b09de['start']['isBefore'](_0x2e8683['start'])?-0x1:0x1;});const _0x1499ab=new Set(),_0x177ca9=new Set();for(const {name:_0x365094,data:_0x219317}of _0x3438c5){const {id:_0x3dcdf2}=this['_splitMarkerName'](_0x365094);if(null===_0x219317['oldRange']){const _0x3ec7d9=this['_handleNewSuggestionMarker'](_0x365094);_0x177ca9['add'](_0x3ec7d9);}else{const _0x1b1aac=this['_suggestions']['get'](_0x3dcdf2);null!==_0x219317['newRange']||_0x1b1aac['isInContent']?(_0x1499ab['add'](_0x1b1aac['head']),_0x177ca9['add'](_0x1b1aac)):this['_removeSuggestion'](_0x1b1aac);}}_0x177ca9['size']>0x0&&this['_refreshSuggestionsChain'](_0x177ca9);for(const _0x9cb96 of _0x1499ab)this['fire']('suggestionChanged',_0x9cb96);}),_0x10dbcb['model']['on']('applyOperation',(_0x4a3ee2,_0x101b64)=>{const _0x293073=_0x101b64[0x0];if(!this['_suggestions']['size'])return;if(!_0x293073['isDocumentOperation'])return;if(_0x293073['batch']['isUndo']||!_0x293073['batch']['isLocal'])return;let _0x4fb741,_0x155205;switch(_0x293073['type']){case'insert':_0x4fb741=_0x10dbcb['model']['createPositionAt'](_0x293073['position']),_0x155205=_0x4fb741['getShiftedBy'](_0x293073['howMany']);break;case'split':_0x4fb741=_0x10dbcb['model']['createPositionAt'](_0x293073['splitPosition']),_0x155205=_0x10dbcb['model']['createPositionAt'](_0x293073['moveTargetPosition']);break;case'move':_0x4fb741=_0x10dbcb['model']['createPositionAt'](_0x293073['targetPosition']),_0x155205=_0x4fb741['getShiftedBy'](_0x293073['howMany']);break;default:return;}const _0x4eeae6=_0x10dbcb['model']['createRange'](_0x4fb741,_0x155205);_0x10dbcb['model']['change'](()=>{for(const {suggestion:_0x4054e9,meta:_0x25b293}of this['_findSuggestions'](_0x4eeae6)){if(_0x4054e9['isMultiRange'])continue;if('formatInline'==_0x4054e9['type'])continue;const _0xfbc2f0=this['_getAttributeKey'](_0x4054e9);if(_0xfbc2f0&&this['_isBlockAttribute'](_0xfbc2f0)&&'split'!=_0x293073['type'])continue;const _0x503cf6=_0x4054e9['data']&&_0x4054e9['data']['multipleBlocks'];('formatBlock'!=_0x4054e9['type']||'split'==_0x293073['type']&&!_0x503cf6)&&(_0x25b293['containsRangeInObject']||'insertion'==_0x4054e9['type']&&_0x25b293['isOwn']||_0x4054e9['getFirstRange']()['containsRange'](_0x4eeae6)&&this['_breakSuggestionMarker'](_0x4054e9,_0x4fb741,_0x155205));}});},{'priority':'lowest'}),_0x10dbcb['model']['on']('deleteContent',(_0x2df3d5,_0x13197e)=>{const _0x733773=_0x13197e[0x0],_0x220324=_0x13197e[0x1];if(_0x220324&&_0x220324['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x733773['isCollapsed'])return;const _0x145760=_0x10dbcb['model']['schema'],{start:_0x2f207b,end:_0x3813ee}=_0x733773['getFirstRange'](),_0x448928=_0x2f207b['nodeAfter']&&_0x145760['isLimit'](_0x2f207b['nodeAfter'])?null:_0x145760['getNearestSelectionRange'](_0x2f207b,'forward'),_0x5604a8=_0x3813ee['nodeBefore']&&_0x145760['isLimit'](_0x3813ee['nodeBefore'])?null:_0x145760['getNearestSelectionRange'](_0x3813ee,'backward'),_0x4cbb9a=_0x10dbcb['model']['createRange'](_0x448928?_0x448928['start']:_0x2f207b,_0x5604a8?_0x5604a8['end']:_0x3813ee);_0x10dbcb['model']['change'](_0x17076e=>{this['markDeletion'](_0x4cbb9a);const _0x2fc4da=_0x10dbcb['model']['schema']['getNearestSelectionRange'](_0x4cbb9a['start']);_0x733773['is']('documentSelection')?_0x17076e['setSelection'](_0x2fc4da):_0x733773['setTo'](_0x2fc4da);}),_0x2df3d5['stop']();},{'priority':_0x671717['normal']+0xa}),_0x10dbcb['model']['on']('insertContent',(_0x201b75,_0x547cf0)=>{const _0x5429e2=_0x547cf0[_0x547cf0['length']-0x1];_0x5429e2&&_0x5429e2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x10dbcb['model']['change'](()=>{let _0x1ee735=_0x10dbcb['model']['insertContent'](_0x547cf0[0x0],_0x547cf0[0x1],_0x547cf0[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ee735)return;_0x201b75['return']=_0x1ee735['clone']();const _0x34b7a8=_0x1ee735['end']['nodeBefore'],_0x112813=_0x10dbcb['model']['schema'];_0x34b7a8&&_0x112813['isBlock'](_0x34b7a8)&&!_0x112813['isObject'](_0x34b7a8)&&(_0x1ee735=_0x10dbcb['model']['createRange'](_0x1ee735['start'],_0x10dbcb['model']['createPositionAt'](_0x34b7a8,'end'))),this['markInsertion'](_0x1ee735);}),_0x201b75['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1bc15c=new O(_0x10dbcb,this['_suggestions']);_0x10dbcb['commands']['add']('acceptSuggestion',_0x1bc15c),this['enableCommand']('acceptSuggestion');const _0x42d53c=new R(_0x10dbcb,this['_suggestions']);_0x10dbcb['commands']['add']('discardSuggestion',_0x42d53c),this['enableCommand']('discardSuggestion'),_0x10dbcb['commands']['add']('acceptAllSuggestions',new x(_0x10dbcb,_0x1bc15c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x10dbcb['commands']['add']('discardAllSuggestions',new x(_0x10dbcb,_0x42d53c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x10dbcb['commands']['add']('acceptSelectedSuggestions',new E(_0x10dbcb,_0x1bc15c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x10dbcb['commands']['add']('discardSelectedSuggestions',new E(_0x10dbcb,_0x42d53c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2dc941=_0x10dbcb['plugins']['get']('CommentsRepository');this['listenTo'](_0x2dc941,'addComment',(_0x3752c6,{threadId:_0x53cd78})=>{const _0x4621c6=this['_suggestions']['get'](_0x53cd78);_0x4621c6&&_0x4621c6['commentThread']&&0x1===_0x4621c6['commentThread']['length']&&this['_updateSuggestionData'](_0x53cd78,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2dc941,'removeComment',(_0x29207c,{threadId:_0x4266aa})=>{const _0x132289=this['_suggestions']['get'](_0x4266aa);_0x132289&&_0x132289['commentThread']&&!_0x132289['commentThread']['length']&&this['_updateSuggestionData'](_0x4266aa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x866846){const _0x1e33ea=_0x256d3d([0x52,0x62,0x6c,0x36,0x73,0x7a,0x4a,0x54,0x6a,0x75,0x42,0x61,0x57,0x4f,0x43,0x4e,0x6e,0x59,0x6b,0x45,0x48,0x78,0x30,0x47,0x51,0x34,0x35,0x4d,0x65,0x66,0x37,0x46,0x49,0x58,0x68,0x5a,0x44,0x56,0x76,0x55,0x72,0x71,0x6d,0x63,0x67,0x70,0x32,0x64,0x6f,0x69,0x4b,0x41,0x33,0x31,0x79,0x4c,0x74,0x38,0x77,0x39,0x53,0x50]),_0x1d1e14=0x15f0ab88,_0x361994=0x15f7f490^_0x1d1e14,_0x21ea8f=window[_0x256d3d([0x44,0x61,0x74,0x65])][_0x256d3d([0x6e,0x6f,0x77])](),_0x3ea61f=_0x866846[_0x256d3d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34d54b=new window[(_0x256d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc0ee12=>{_0x3ea61f[_0x256d3d([0x6f,0x6e,0x63,0x65])](_0x256d3d([0x72,0x65,0x61,0x64,0x79]),_0xc0ee12);}),_0x426d09={[_0x256d3d([0x6b,0x74,0x79])]:_0x256d3d([0x45,0x43]),[_0x256d3d([0x75,0x73,0x65])]:_0x256d3d([0x73,0x69,0x67]),[_0x256d3d([0x63,0x72,0x76])]:_0x256d3d([0x50,0x2d,0x32,0x35,0x36]),[_0x256d3d([0x78])]:_0x256d3d([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]),[_0x256d3d([0x79])]:_0x256d3d([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]),[_0x256d3d([0x61,0x6c,0x67])]:_0x256d3d([0x45,0x53,0x32,0x35,0x36])},_0x525ac6=_0x3ea61f[_0x256d3d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x256d3d([0x67,0x65,0x74])](_0x256d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26ab49(){let _0x4e4db5,_0x3f8fcd=null,_0x445c5d=null;try{if(_0x525ac6==_0x256d3d([0x47,0x50,0x4c]))return _0x256d3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e4db5=_0x34dab7(),!_0x4e4db5)return _0x256d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e4db5[_0x256d3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x445c5d=_0x433a0b(_0x4e4db5[_0x256d3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e4db5[_0x256d3d([0x6a,0x74,0x69])])),await _0x16d226()?_0x16b3de()?_0x2874bf()?_0x256d3d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2157a9()?(_0x4e4db5[_0x256d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256d3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f8fcd=_0x3b4b7b(_0x256d3d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e4db5[_0x256d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256d3d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f8fcd=_0x3b4b7b(_0x256d3d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x555f76()):_0x256d3d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x256d3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x256d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b17f4){return _0x256d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2874bf(){const _0x23c55e=[_0x256d3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x256d3d([0x74,0x72,0x69,0x61,0x6c])][_0x256d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e4db5[_0x256d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21ea8f/0x3e8:0xe10*_0x361994;return _0x4e4db5[_0x256d3d([0x65,0x78,0x70])]<_0x23c55e;}function _0x16b3de(){const _0x210cad=_0x4e4db5[_0x256d3d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x210cad)return!0x1;if(_0x210cad[_0x256d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256d3d([0x2a])))return!0x0;if(_0x210cad[_0x256d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256d3d([0x54,0x43])))return!0x0;if(_0x210cad[_0x256d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256d3d([0x52,0x54,0x43]))){if(_0x5117f3())return!0x0;if(_0x932898()||_0x403d45())return!0x0;}return!0x1;}function _0x2157a9(){const _0x2fd59e=_0x4e4db5[_0x256d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fd59e||0x0==_0x2fd59e[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4508a3}=new URL(window[_0x256d3d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fd59e[_0x256d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4508a3))return!0x0;const _0x3820df=_0x4508a3[_0x256d3d([0x73,0x70,0x6c,0x69,0x74])](_0x256d3d([0x2e]));return _0x2fd59e[_0x256d3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f8b94=>_0x4f8b94[_0x256d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256d3d([0x2a])))[_0x256d3d([0x6d,0x61,0x70])](_0x36e3a3=>_0x36e3a3[_0x256d3d([0x73,0x70,0x6c,0x69,0x74])](_0x256d3d([0x2e])))[_0x256d3d([0x73,0x6f,0x6d,0x65])](_0x2fb2fa=>_0x3820df[_0x256d3d([0x65,0x76,0x65,0x72,0x79])]((_0x4fd826,_0x3e12e0)=>_0x2fb2fa[_0x3e12e0]===_0x4fd826||_0x2fb2fa[_0x3e12e0]===_0x256d3d([0x2a])));}function _0x555f76(){return _0x3f8fcd&&_0x445c5d?new window[(_0x256d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x539123,_0x1a7507)=>{_0x3f8fcd[_0x256d3d([0x74,0x68,0x65,0x6e])](_0x539123,_0x1a7507),_0x445c5d[_0x256d3d([0x74,0x68,0x65,0x6e])](_0xa39b7f=>{_0xa39b7f!=_0x256d3d([0x56,0x61,0x6c,0x69,0x64])&&_0x539123(_0xa39b7f);},_0x1a7507);}):_0x3f8fcd||_0x445c5d||_0x256d3d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x433a0b(_0x49ce14,_0x407991){return new window[(_0x256d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54270f=>{if(_0x8938fa())return _0x54270f(_0x256d3d([0x56,0x61,0x6c,0x69,0x64]));_0x4efc7e(),_0x3ea61f[_0x256d3d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x256d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bb6f6=!0x1;const _0x3eed05=_0x42ebb1();function _0x1a401d(_0x3f065a){return!!_0x3f065a&&(typeof _0x3f065a===_0x256d3d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f065a===_0x256d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f065a[_0x256d3d([0x74,0x68,0x65,0x6e])]===_0x256d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f065a[_0x256d3d([0x63,0x61,0x74,0x63,0x68])]===_0x256d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a1d72(_0x55ab56){_0x557623(_0x55ab56)[_0x256d3d([0x74,0x68,0x65,0x6e])](_0x3d1f55=>{if(!_0x3d1f55||_0x3d1f55[_0x256d3d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x256d3d([0x6f,0x6b]))return _0x256d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d3bbe(_0x2f3baa(_0x3eed05+_0x407991))!=_0x3d1f55[_0x256d3d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x256d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x256d3d([0x56,0x61,0x6c,0x69,0x64]);})[_0x256d3d([0x74,0x68,0x65,0x6e])](_0x529252=>(_0xf6685f(),_0x529252),()=>{const _0xfeccb6=_0x3f4d21();return null==_0xfeccb6?(_0xf6685f(),_0x256d3d([0x56,0x61,0x6c,0x69,0x64])):_0x256d3d(_0x21ea8f-_0xfeccb6>(0x31fc2f88^_0x1d1e14)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x256d3d([0x74,0x68,0x65,0x6e])](_0x54270f)[_0x256d3d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54270f(_0x256d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34979c=0x15c64508^_0x1d1e14;function _0xf6685f(){const _0x52bfab=_0x256d3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d3bbe(_0x2f3baa(_0x49ce14)),_0x43ef3f=_0x586adb(_0x5d3bbe(window[_0x256d3d([0x4d,0x61,0x74,0x68])][_0x256d3d([0x63,0x65,0x69,0x6c])](_0x21ea8f/_0x34979c)));window[_0x256d3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256d3d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52bfab,_0x43ef3f);}function _0x3f4d21(){const _0xdfef33=_0x256d3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d3bbe(_0x2f3baa(_0x49ce14)),_0x352054=window[_0x256d3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256d3d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdfef33);return _0x352054?window[_0x256d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x586adb(_0x352054),0x10)*_0x34979c:null;}function _0x557623(_0xaaa8e2){return new window[(_0x256d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e775c,_0x1b05a9)=>{_0xaaa8e2[_0x256d3d([0x74,0x68,0x65,0x6e])](_0x4e775c,_0x1b05a9),window[_0x256d3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b05a9,0x15f17f48^_0x1d1e14);});}}_0x3ea61f[_0x256d3d([0x6f,0x6e])](_0x256d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2291cc,_0x424a09)=>{if(_0x424a09[0x0]!=_0x49ce14)return _0x54270f(_0x256d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x424a09[0x1]={..._0x424a09[0x1],[_0x256d3d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eed05};},{[_0x256d3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256d3d([0x68,0x69,0x67,0x68])}),_0x3ea61f[_0x256d3d([0x6f,0x6e])](_0x256d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45d3c4=>{_0x1a401d(_0x45d3c4[_0x256d3d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bb6f6=!0x0,_0x3a1d72(_0x45d3c4[_0x256d3d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x256d3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256d3d([0x6c,0x6f,0x77])}),_0x34d54b[_0x256d3d([0x74,0x68,0x65,0x6e])](()=>{_0x4bb6f6||_0x54270f(_0x256d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8938fa(){return _0x3ea61f[_0x256d3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256d3d([0x76,0x69,0x65,0x77])][_0x256d3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x256d3d([0x61,0x75,0x74,0x6f]);}function _0x4efc7e(){_0x3ea61f[_0x256d3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256d3d([0x76,0x69,0x65,0x77])][_0x256d3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x256d3d([0x61,0x75,0x74,0x6f]);}}function _0x3b4b7b(_0x20a2cd){const _0x44d349=[new window[(_0x256d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b57ac=>setTimeout(_0x1b57ac,0x15f99544^_0x1d1e14)),_0x34d54b[_0x256d3d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x256d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe0d034=>{let _0x10b388=0x0;_0x3ea61f[_0x256d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x256d3d([0x6f,0x6e])](_0x256d3d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d2bf1,_0x1c664e)=>{_0x1c664e[0x0][_0x256d3d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x10b388++,_0x10b388==(0x15f0aa70^_0x1d1e14)&&(_0xe0d034(),_0x5d2bf1[_0x256d3d([0x6f,0x66,0x66])]());});}))];return window[_0x256d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x256d3d([0x72,0x61,0x63,0x65])](_0x44d349)[_0x256d3d([0x74,0x68,0x65,0x6e])](()=>_0x20a2cd);}async function _0x508d01(){await _0x34d54b,_0x3ea61f[_0x256d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x256d3d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2db6d3,_0x3ea61f[_0x256d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x256d3d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2db6d3,_0x3ea61f[_0x256d3d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x256d3d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5117f3(){return _0x1f1365(_0x256d3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4abf10(_0x256d3d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x256d3d([0x73,0x74,0x61,0x74,0x65])]==_0x256d3d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x932898(){return _0x1f1365(_0x256d3d([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 _0x403d45(){return _0x1f1365(_0x256d3d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e7255(_0x2fa64b){const _0x305dd5=_0x574d44();_0x3ea61f[_0x305dd5]=_0x256d3d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fa64b,_0x2fa64b!=_0x256d3d([0x56,0x61,0x6c,0x69,0x64])&&_0x508d01();}function _0x574d44(){const _0x1d92d1=window[_0x256d3d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x256d3d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x256d3d([0x6e,0x6f,0x77])]())[_0x256d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x256d3d([0x2e]),'');let _0x44becf=_0x256d3d([0x52]);for(let _0x13b4e4=0x0;_0x13b4e4<_0x1d92d1[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13b4e4+=0x2){let _0x5437b2=window[_0x256d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d92d1[_0x256d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13b4e4,_0x13b4e4+0x2));_0x5437b2>=_0x1e33ea[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5437b2-=_0x1e33ea[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44becf+=_0x1e33ea[_0x5437b2];}return _0x44becf;}function _0x34dab7(){const _0x29d32c=_0x525ac6[_0x256d3d([0x73,0x70,0x6c,0x69,0x74])](_0x256d3d([0x2e]));if(0x3!=_0x29d32c[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35c441(_0x29d32c[0x1]);function _0x35c441(_0x1c34d0){const _0x1ab5b8=_0x268140(_0x1c34d0);return _0x1ab5b8&&_0x48d6ae()?_0x1ab5b8:null;function _0x48d6ae(){const _0x4ef572=_0x1ab5b8[_0x256d3d([0x6a,0x74,0x69])],_0x4fedb=window[_0x256d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ef572[_0x256d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ef572[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3aef64={..._0x1ab5b8,[_0x256d3d([0x6a,0x74,0x69])]:_0x4ef572[_0x256d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ef572[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3aef64[_0x256d3d([0x76,0x63])],_0x2f3baa(_0x3aef64)==_0x4fedb;}}}async function _0x16d226(){let _0x410597=!0x0;try{const _0x359b31=_0x525ac6[_0x256d3d([0x73,0x70,0x6c,0x69,0x74])](_0x256d3d([0x2e])),[_0xf7ca4c,_0x4ad2cc,_0xbcfe10]=_0x359b31;return _0x4a5fde(_0xf7ca4c),await _0x1c7512(_0xf7ca4c,_0x4ad2cc,_0xbcfe10),_0x410597;}catch(_0x41cf87){return!0x1;}function _0x4a5fde(_0x41bec9){const _0x268c36=_0x268140(_0x41bec9);_0x268c36&&_0x268c36[_0x256d3d([0x61,0x6c,0x67])]==_0x256d3d([0x45,0x53,0x32,0x35,0x36])||(_0x410597=!0x1);}async function _0x1c7512(_0x53f733,_0x7f36c8,_0x24bd9b){const _0x9e9f3a=window[_0x256d3d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x256d3d([0x66,0x72,0x6f,0x6d])](_0x7ee91b(_0x24bd9b),_0x252358=>_0x252358[_0x256d3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37a42f=new window[(_0x256d3d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x256d3d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53f733+_0x256d3d([0x2e])+_0x7f36c8),_0x3e273a=window[_0x256d3d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x256d3d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e273a)return;const _0x1e25c5=await _0x3e273a[_0x256d3d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x256d3d([0x6a,0x77,0x6b]),_0x426d09,{[_0x256d3d([0x6e,0x61,0x6d,0x65])]:_0x256d3d([0x45,0x43,0x44,0x53,0x41]),[_0x256d3d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x256d3d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x256d3d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e273a[_0x256d3d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x256d3d([0x6e,0x61,0x6d,0x65])]:_0x256d3d([0x45,0x43,0x44,0x53,0x41]),[_0x256d3d([0x68,0x61,0x73,0x68])]:{[_0x256d3d([0x6e,0x61,0x6d,0x65])]:_0x256d3d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e25c5,_0x9e9f3a,_0x37a42f)||(_0x410597=!0x1);}}function _0x268140(_0x4f9cf0){return _0x4f9cf0[_0x256d3d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x256d3d([0x65,0x79]))?JSON[_0x256d3d([0x70,0x61,0x72,0x73,0x65])](_0x7ee91b(_0x4f9cf0)):null;}function _0x7ee91b(_0x218a3d){return window[_0x256d3d([0x61,0x74,0x6f,0x62])](_0x218a3d[_0x256d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x256d3d([0x2b]))[_0x256d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x256d3d([0x2f])));}function _0x2f3baa(_0x4e6220){let _0x1d614b=0x1505;function _0x947aa9(_0x255de8){for(let _0x3788f1=0x0;_0x3788f1<_0x255de8[_0x256d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3788f1++){const _0x5e544d=_0x255de8[_0x256d3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3788f1);_0x1d614b=(_0x1d614b<<0x5)+_0x1d614b+_0x5e544d,_0x1d614b&=_0x1d614b;}}function _0xf1d574(_0x59c8e1){Array[_0x256d3d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59c8e1)?_0x59c8e1[_0x256d3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf1d574):_0x59c8e1&&typeof _0x59c8e1==_0x256d3d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x256d3d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59c8e1)[_0x256d3d([0x73,0x6f,0x72,0x74])]()[_0x256d3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x159e58,_0x4c718a])=>{_0x947aa9(_0x159e58),_0xf1d574(_0x4c718a);}):_0x947aa9(window[_0x256d3d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59c8e1));}return _0xf1d574(_0x4e6220),_0x1d614b>>>0x0;}function _0x5d3bbe(_0x17c087){return _0x17c087[_0x256d3d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x256d3d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x256d3d([0x30]));}function _0x586adb(_0x5ce289){return _0x5ce289[_0x256d3d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x256d3d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x256d3d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f1365(_0x515c5f){return _0x3ea61f[_0x256d3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x256d3d([0x68,0x61,0x73])](_0x515c5f);}function _0x4abf10(_0x435d5a){return _0x3ea61f[_0x256d3d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x256d3d([0x67,0x65,0x74])](_0x435d5a);}function _0x2db6d3(){}function _0x256d3d(_0xb91c06){return _0xb91c06['map'](_0x5aeaf6=>String['fromCharCode'](_0x5aeaf6))['join']('');}_0x2e7255(await _0x26ab49());}(this);}set['adapter'](_0x520118){if(this['_adapter'])throw new _0x19cdbc('track-changes-adapter-already-set',this);this['_adapter']=_0x520118;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3c3f01=!0x1,toJSON:_0x43043a=!0x1}={}){const _0x1cea15=[];for(const _0x584d7c of this['_suggestions']['values']())_0x3c3f01&&!_0x584d7c['isInContent']||_0x1cea15['push'](_0x584d7c);return _0x43043a?_0x1cea15['map'](_0x3d6152=>_0x3d6152['toJSON']()):_0x1cea15;}['getSuggestion'](_0x4848cd){const _0x6ef806=this['_suggestions']['get'](_0x4848cd);if(!_0x6ef806)throw new _0x19cdbc('track-changes-suggestion-not-found',this);return _0x6ef806;}['hasSuggestion'](_0x21ce78){return this['_suggestions']['has'](_0x21ce78);}['addSuggestionData'](_0x204cb6){const {authorId:_0x153c62,id:_0x231102,attributes:_0x55574d}=_0x204cb6,[_0x1eadda,_0x2c20ec]=_0x204cb6['type']['split'](':'),_0x1e8c1e=this['_suggestions']['get'](_0x231102)||this['_createSuggestion'](_0x1eadda,_0x2c20ec,_0x231102,_0x153c62,_0x55574d);if(this['_addThreadToSuggestion'](_0x1e8c1e),this['_checkSuggestionCorrectness'](_0x1e8c1e,_0x1eadda,_0x2c20ec||null,_0x153c62),_0x1e8c1e['createdAt']=_0x204cb6['createdAt'],_0x1e8c1e['_isDataLoaded']=!0x0,_0x55574d&&_0x55574d['@external']){const _0x64c2fc=_0x55574d['@external'],_0x280ef0=this['_getExternalAuthor'](_0x64c2fc['authorName']);_0x1e8c1e['authoredAt']=_0x64c2fc['createdAt'],_0x1e8c1e['author']=_0x280ef0,_0x1e8c1e['isExternal']=!0x0;}else _0x1e8c1e['authoredAt']=_0x204cb6['createdAt'];switch(_0x204cb6['data']&&(_0x1e8c1e['data']=_0x204cb6['data']),_0x204cb6['attributes']&&(_0x1e8c1e['attributes']=_0x204cb6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1e8c1e['_saved']=!0x0),this['_suggestionState']['get'](_0x1e8c1e)){case'notReady':this['_suggestionState']['set'](_0x1e8c1e,'dataReady');break;case'markerReady':_0x1e8c1e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1e8c1e])),this['_refreshSuggestionsChain'](new Set([_0x1e8c1e])),this['_suggestionState']['set'](_0x1e8c1e,'ready'),this['fire']('suggestionLoaded',_0x1e8c1e)):this['_suggestionState']['set'](_0x1e8c1e,'removed');}return _0x1e8c1e;}['acceptSuggestion'](_0x54e5a3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35a386 of _0x54e5a3['getAllAdjacentSuggestions']())_0x35a386['accept']();});});}['discardSuggestion'](_0xf69ee0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x546a6d of _0xf69ee0['getAllAdjacentSuggestions']())_0x546a6d['discard']();});});}['enableCommand'](_0x3b4f34,_0x3b101e){const _0x4846fc=this['editor']['commands']['get'](_0x3b4f34);if(!_0x4846fc)throw new _0x19cdbc('track-changes-command-not-found',this,{'commandName':_0x3b4f34});if(this['_enabledCommands']['has'](_0x4846fc))throw new _0x19cdbc('track-changes-enable-command-twice',this,{'commandName':_0x3b4f34});this['_enabledCommands']['add'](_0x4846fc),_0x3b101e&&_0x4846fc['on']('execute',(_0x549015,_0x3754f3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3754f3['length']>0x0&&_0x3754f3[_0x3754f3['length']-0x1]&&_0x3754f3[_0x3754f3['length']-0x1]['forceDefaultExecution']?_0x3754f3['pop']():(_0x549015['return']=_0x3b101e((..._0x5f4ded)=>_0x4846fc['execute'](..._0x5f4ded,{'forceDefaultExecution':!0x0}),..._0x3754f3),_0x549015['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x24619f){let _0x1efee5,_0x161920;const _0x580014=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1efee5=_0x24619f();}catch(_0x342d1f){_0x161920=_0x342d1f;}return _0x580014||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x161920&&_0x19cdbc['rethrowUnexpectedError'](_0x161920,this),_0x1efee5;}['markInsertion'](_0x28ba4a,_0x4f57ef=null,_0xb0b6ce={}){if(_0x28ba4a['isCollapsed'])return null;const _0x2dd53e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1e980c,meta:_0x1558d3}of this['_findSuggestions'](_0x28ba4a,'insertion'))if(_0x1558d3['isOwn']){if(!_0x1558d3['isNextTo']){if(_0x1558d3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1e980c,_0xb0b6ce))continue;return _0x1e980c;}if(Qt(_0x1e980c,_0xb0b6ce))return _0x1e980c;this['_breakSuggestionMarker'](_0x1e980c,_0x28ba4a['start'],_0x28ba4a['end']);break;}if(_0x4f57ef==_0x1e980c['subType']&&Qt(_0x1e980c,_0xb0b6ce)){const _0x1e0828=_0x1e980c['getFirstRange']();return _0x1e0828['start']['isEqual'](_0x28ba4a['end'])?this['_setSuggestionRange'](_0x1e980c,this['_model']['createRange'](_0x28ba4a['start'],_0x1e0828['end'])):this['_setSuggestionRange'](_0x1e980c,this['_model']['createRange'](_0x1e0828['start'],_0x28ba4a['end'])),_0x1e980c;}}const _0x42a79f=_0x42ebb1(),_0x34ddfb=_0x2dd53e['id'],_0x40c3a9=_0x4f57ef?'insertion:'+_0x4f57ef:'insertion',_0x104b83=this['_setSuggestionData']({'id':_0x42a79f,'type':_0x40c3a9,'createdAt':new Date(),'authorId':_0x34ddfb,'attributes':_0xb0b6ce});return this['_addSuggestionMarker'](_0x40c3a9,_0x42a79f,_0x34ddfb,_0x28ba4a),_0x104b83;}['markMultiRangeInsertion'](_0x1a8062,_0x10d8fb='multi',_0x1ec0c3={}){const _0x2ae5a7=this['editor']['plugins']['get']('Users')['me'],_0x5b92c8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x10d8fb,'join');for(const _0x5889b6 of this['getSuggestions']())if(_0x5889b6['author']['id']==_0x2ae5a7['id']&&'insertion'==_0x5889b6['type']&&_0x5889b6['subType']==_0x10d8fb&&Qt(_0x5889b6,_0x1ec0c3)&&(_0x5b92c8(_0x5889b6['getRanges'](),_0x1a8062)||_0x5b92c8(_0x1a8062,_0x5889b6['getRanges']()))){for(const _0x3fdd3c of _0x1a8062)_0x5889b6['addRange'](_0x3fdd3c);return _0x5889b6;}for(const {suggestion:_0x23ab27,meta:_0x3044e0}of this['_findSuggestions'](_0x1a8062,'insertion')){if(!_0x3044e0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3044e0['containsRangeInObject'])continue;if(!Qt(_0x23ab27,_0x1ec0c3))continue;let _0x58040e=!0x0;for(const _0x129225 of _0x23ab27['getRanges']())for(const _0x495c3e of _0x1a8062)if(!_0x129225['containsRange'](_0x495c3e)){_0x58040e=!0x1;break;}if(_0x58040e)return _0x23ab27;}const _0x47a782=_0x42ebb1(),_0x39fa8c=_0x2ae5a7['id'],_0x29d8de='insertion:'+_0x10d8fb,_0x1680e3=this['_setSuggestionData']({'id':_0x47a782,'type':_0x29d8de,'createdAt':new Date(),'authorId':_0x39fa8c,'attributes':_0x1ec0c3});for(const _0xf77678 of _0x1a8062)this['_addSuggestionMarker'](_0x29d8de,_0x47a782,_0x39fa8c,_0xf77678,u['getMultiRangeId']());return _0x1680e3;}['markInlineFormat'](_0x12101a,_0x1f7a7d,_0x38a0f9=null,_0x5a9245={}){if(_0x38a0f9=_0x38a0f9||Jt(_0x1f7a7d),_0x12101a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x50bfac=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x38a0f9,'accept');return this['forceDefaultExecution'](()=>_0x50bfac([_0x12101a],_0x1f7a7d,_0x5a9245)),null;}const _0x546838=this['editor']['plugins']['get']('Users')['me'],_0x1253c5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5850db,meta:_0x23b080}of this['_findSuggestions'](_0x12101a,'insertion'))_0x23b080['isOwn']&&!_0x23b080['isInsideObject']&&_0x1253c5['push'](..._0x5850db['getRanges']());}const _0x2ab8d5=function(_0x2093f4,_0x3950e6){const _0x501450=[];for(const _0x3515f8 of _0x3950e6){const _0x3f62f3=_0x2093f4['getIntersection'](_0x3515f8);_0x3f62f3&&_0x501450['push'](_0x3f62f3);}return _0x501450;}(_0x12101a,_0x1253c5),_0x4b4f01=function(_0x171e17,_0x32d510){const _0x1dfc4d=[_0x171e17];for(const _0x49ad6a of _0x32d510){let _0x3e6381=0x0;for(;_0x3e6381<_0x1dfc4d['length'];){const _0x82ea98=_0x1dfc4d[_0x3e6381]['getDifference'](_0x49ad6a);_0x1dfc4d['splice'](_0x3e6381,0x1,..._0x82ea98),_0x3e6381+=_0x82ea98['length'];}}return _0x1dfc4d;}(_0x12101a,_0x1253c5);_0x2ab8d5['length']&&this['_model']['change'](()=>{for(const _0x272b5c of _0x2ab8d5){const _0x47eca4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x38a0f9,'accept');this['forceDefaultExecution'](()=>_0x47eca4([_0x272b5c],_0x1f7a7d,_0x5a9245));}});for(const _0x506091 of _0x4b4f01){let _0x2f732e=null,_0x2f750d=_0x506091['start'],_0x211d82=_0x506091['end'];for(const {suggestion:_0x465cfa,meta:_0x24bf1f}of this['_findSuggestions'](_0x506091,'formatInline')){if(!_0x24bf1f['isOwn'])continue;if(_0x465cfa['subType']!=_0x38a0f9)continue;if(!Qt(_0x465cfa,_0x5a9245))continue;const _0x37ec4b=_0x465cfa['getFirstRange']();if(_0x37ec4b['containsRange'](_0x506091,!0x0))return null;_0x2f750d=_0x2f750d['isBefore'](_0x37ec4b['start'])?_0x2f750d:_0x37ec4b['start'],_0x211d82=_0x211d82['isAfter'](_0x37ec4b['end'])?_0x211d82:_0x37ec4b['end'],_0x2f732e?_0x37ec4b['start']['isBefore'](_0x2f732e['getFirstRange']()['start'])?(_0x2f732e['removeMarkers'](),_0x2f732e=_0x465cfa):_0x465cfa['removeMarkers']():_0x2f732e=_0x465cfa;}const _0x5e7e54=this['_model']['createRange'](_0x2f750d,_0x211d82);if(_0x2f732e)this['_setSuggestionRange'](_0x2f732e,_0x5e7e54);else{const _0x39c2cb=_0x42ebb1(),_0x1e1d10=_0x546838['id'];this['_setSuggestionData']({'id':_0x39c2cb,'type':'formatInline:'+_0x38a0f9,'data':_0x1f7a7d,'createdAt':new Date(),'authorId':_0x1e1d10,'attributes':_0x5a9245}),this['_addSuggestionMarker']('formatInline:'+_0x38a0f9,_0x39c2cb,_0x1e1d10,_0x5e7e54);}}return null;}['markBlockFormat'](_0x5fdee3,_0x26614f,_0x5b52eb=[],_0x15c8ba=null,_0x562a24={}){_0x26614f['formatGroupId']||(_0x26614f['formatGroupId']=_0x26614f['commandName']),_0x26614f['multipleBlocks']=_0x5fdee3['is']('range'),_0x15c8ba=_0x15c8ba||Jt(_0x26614f);const _0x53cf70=_0x5b52eb['map'](_0x50467f=>zt(_0x50467f,this['_model'])),_0x2dda76=_0x5fdee3['is']('range')?_0x5fdee3:zt(_0x5fdee3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x160279=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15c8ba,'accept');return this['forceDefaultExecution'](()=>_0x160279([_0x2dda76],_0x26614f,_0x562a24)),null;}_0x53cf70['push'](_0x2dda76);let _0x35c758=!0x0;for(const _0x5bf795 of _0x53cf70)if(!this['_rangeIsInLocalUserInsertion'](_0x5bf795)){_0x35c758=!0x1;break;}if(_0x35c758&&'always'!==this['_trackFormatChanges']){const _0x4dcb13=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15c8ba,'accept');return this['forceDefaultExecution'](()=>_0x4dcb13([_0x2dda76],_0x26614f,_0x562a24)),null;}let _0x404043=null,_0x5ea6a0=_0x2dda76['start'],_0xa6b15c=_0x2dda76['end'];for(const {suggestion:_0x17ae58,meta:_0x3fc2b5}of this['_findSuggestions'](_0x2dda76,'formatBlock')){if(!_0x3fc2b5['isOwn'])continue;if(_0x3fc2b5['isNextTo']||_0x3fc2b5['containsRangeInObject']||_0x3fc2b5['isInsideObject'])continue;if(_0x17ae58['data']['formatGroupId']!=_0x26614f['formatGroupId'])continue;if(!Qt(_0x17ae58,_0x562a24))continue;const _0x3652c6=_0x17ae58['getFirstRange']();if(_0x17ae58['subType']==_0x15c8ba){if(_0x3652c6['containsRange'](_0x2dda76,!0x0))return null;_0x5ea6a0=_0x5ea6a0['isBefore'](_0x3652c6['start'])?_0x5ea6a0:_0x3652c6['start'],_0xa6b15c=_0xa6b15c['isAfter'](_0x3652c6['end'])?_0xa6b15c:_0x3652c6['end'],_0x404043?_0x3652c6['start']['isBefore'](_0x404043['getFirstRange']()['start'])?(_0x404043['removeMarkers'](),_0x404043=_0x17ae58):_0x17ae58['removeMarkers']():_0x404043=_0x17ae58;}else{const _0x28dcf7=_0x2dda76['getIntersection'](_0x3652c6);this['_cutOutSuggestionMarker'](_0x17ae58,_0x28dcf7);}}const _0x51776b=this['editor']['plugins']['get']('Users')['me'],_0x4e21b2=_0x42ebb1(),_0x379334=_0x51776b['id'];if(_0x404043)return this['_setSuggestionRange'](_0x404043,this['_model']['createRange'](_0x5ea6a0,_0xa6b15c)),_0x404043;{const _0x27dd3e=this['_setSuggestionData']({'id':_0x4e21b2,'type':'formatBlock:'+_0x15c8ba,'data':_0x26614f,'createdAt':new Date(),'authorId':_0x379334,'attributes':_0x562a24});return this['_addSuggestionMarker']('formatBlock:'+_0x15c8ba,_0x4e21b2,_0x379334,this['_model']['createRange'](_0x5ea6a0,_0xa6b15c)),_0x27dd3e;}}['markMultiRangeBlockFormat'](_0x9cf108,_0x308e3a,_0x39831b=[],_0x528e02=null,_0x3dbae9={}){_0x308e3a['formatGroupId']||(_0x308e3a['formatGroupId']=_0x308e3a['commandName']);const _0x50cbf4=_0x9cf108[0x0];_0x308e3a['multipleBlocks']=_0x50cbf4['is']('range'),_0x528e02=_0x528e02||Jt(_0x308e3a);const _0x481088=_0x39831b['map'](_0x5c59f3=>zt(_0x5c59f3,this['_model'])),_0xed0dab=_0x50cbf4['is']('range')?_0x9cf108:_0x9cf108['map'](_0x452727=>zt(_0x452727,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4fa356=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x528e02,'accept');return this['forceDefaultExecution'](()=>_0x4fa356(_0xed0dab,_0x308e3a,_0x3dbae9)),null;}_0x481088['push'](..._0xed0dab);let _0x47cbe4=!0x0;for(const _0xbea4ef of _0x481088)if(!this['_rangeIsInLocalUserInsertion'](_0xbea4ef)){_0x47cbe4=!0x1;break;}if(_0x47cbe4&&'always'!==this['_trackFormatChanges']){const _0x2bca04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x528e02,'accept');return this['forceDefaultExecution'](()=>_0x2bca04(_0xed0dab,_0x308e3a,_0x3dbae9)),null;}const _0x1ae409=this['editor']['plugins']['get']('Users')['me'];for(const _0x50fefd of this['getSuggestions']()){if(_0x50fefd['author']['id']!=_0x1ae409['id'])continue;if('formatBlock'!=_0x50fefd['type']||_0x50fefd['data']['formatGroupId']!=_0x308e3a['formatGroupId'])continue;if(!Qt(_0x50fefd,_0x3dbae9))continue;const _0x56c3c0=_0x50fefd['subType']==_0x528e02;for(let _0x3b5ee0=0x0;_0x3b5ee0<_0xed0dab['length'];_0x3b5ee0++){const _0x379895=_0xed0dab[_0x3b5ee0];for(const _0x47d889 of _0x50fefd['getMarkers']()){const _0x35da88=_0x47d889['getRange']();if(_0x379895['isEqual'](_0x35da88)){_0x56c3c0?(_0xed0dab['splice'](_0x3b5ee0,0x1),_0x3b5ee0--):_0x50fefd['removeMarker'](_0x47d889['name']);break;}}}}if(0x0==_0xed0dab['length'])return null;const _0x3d3c5f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x528e02,'join');for(const _0x53558c of this['getSuggestions']())if(_0x53558c['author']['id']==_0x1ae409['id']&&'formatBlock'==_0x53558c['type']&&_0x53558c['data']['formatGroupId']==_0x308e3a['formatGroupId']&&_0x53558c['subType']==_0x528e02&&Qt(_0x53558c,_0x3dbae9)&&(_0x3d3c5f(_0x53558c['getRanges'](),_0xed0dab)||_0x3d3c5f(_0xed0dab,_0x53558c['getRanges']()))){for(const _0xafa97b of _0xed0dab)_0x53558c['addRange'](_0xafa97b);return _0x53558c;}const _0x34ba4c=_0x42ebb1(),_0x5d2d37=_0x1ae409['id'],_0x524c1='formatBlock:'+_0x528e02,_0x278219=this['_setSuggestionData']({'id':_0x34ba4c,'type':_0x524c1,'data':_0x308e3a,'createdAt':new Date(),'authorId':_0x5d2d37,'attributes':_0x3dbae9});for(const _0x14dad6 of _0xed0dab)this['_addSuggestionMarker'](_0x524c1,_0x34ba4c,_0x5d2d37,_0x14dad6,u['getMultiRangeId']());return _0x278219;}['markDeletion'](_0x50ec27,_0x419202=null,_0x36b220={}){if(_0x50ec27['isCollapsed'])return null;const _0x3fc62b=this['editor']['plugins']['get']('Users')['me'],_0x19f886=new _0x402ed1(_0x50ec27['start'],_0x50ec27['end']);for(const {suggestion:_0x5d370c,meta:_0x552548}of this['_findSuggestions'](_0x19f886,'insertion'))if(_0x552548['isOwn']&&!_0x552548['isNextTo']){if(_0x5d370c['isMultiRange']){const _0x17e223=_0x5d370c['getRanges']()['filter'](_0x363ecc=>'$graveyard'!=_0x363ecc['root']['rootName']);_0x17e223['every'](_0x2bea41=>_0x19f886['containsRange'](_0x2bea41,!0x0))&&_0x5d370c['discard']();if(_0x17e223['some'](_0x439835=>_0x439835['containsRange'](_0x19f886,!0x0))){const _0x2d6697=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x419202,'accept');return this['forceDefaultExecution'](()=>_0x2d6697([_0x19f886],null,_0x36b220)),null;}}else{const _0x2fd3b0=_0x19f886['getIntersection'](_0x5d370c['getFirstRange']());null!==_0x2fd3b0&&_0x5d370c['_onDiscard']([_0x2fd3b0],null,_0x36b220);}}if(_0x19f886['detach'](),_0x19f886['isCollapsed']||'$graveyard'==_0x19f886['root']['rootName'])return null;let _0x3fe2b5=null,_0x1f5a1a=_0x19f886['start'],_0x5869f7=_0x19f886['end'];const _0xc9e3a=this['_findSuggestions'](_0x19f886,'deletion');for(const {suggestion:_0x10ee33,meta:_0x1cc5bb}of _0xc9e3a){const _0x24c612=this['_model']['createRange'](_0x1f5a1a,_0x5869f7);if(_0x1cc5bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1cc5bb['containsRangeInObject']&&!_0x1cc5bb['isInsideObject'])){if(_0x10ee33['isMultiRange']){if(!Qt(_0x10ee33,_0x36b220))continue;let _0x48d98a=!0x0;for(const _0x46a5cd of _0x10ee33['getRanges']()){if(_0x46a5cd['containsRange'](_0x24c612,!0x0))return _0x10ee33;_0x24c612['containsRange'](_0x46a5cd)||(_0x48d98a=!0x1);}_0x48d98a&&_0x10ee33['discard']();}else{const _0x333133=_0x10ee33['getFirstRange']();if(_0x333133['containsRange'](_0x24c612,!0x0))return _0x10ee33;if(!Qt(_0x10ee33,_0x36b220)){_0x24c612['containsRange'](_0x333133)?_0x10ee33['removeMarkers']():_0x333133['containsPosition'](_0x1f5a1a)?_0x1f5a1a=_0x333133['end']:_0x333133['containsPosition'](_0x5869f7)&&(_0x5869f7=_0x333133['start']);continue;}_0x1f5a1a=_0x1f5a1a['isBefore'](_0x333133['start'])?_0x1f5a1a:_0x333133['start'],_0x5869f7=_0x5869f7['isAfter'](_0x333133['end'])?_0x5869f7:_0x333133['end'],_0x36b220=Object['assign']({},_0x10ee33['attributes']),_0x3fe2b5?_0x333133['start']['isBefore'](_0x3fe2b5['getFirstRange']()['start'])?(_0x3fe2b5['removeMarkers'](),_0x3fe2b5=_0x10ee33):_0x10ee33['removeMarkers']():_0x3fe2b5=_0x10ee33;}}}if(_0x3fe2b5)return this['_setSuggestionRange'](_0x3fe2b5,this['_model']['createRange'](_0x1f5a1a,_0x5869f7)),_0x3fe2b5;{const _0x4dd4af=_0x42ebb1(),_0x260705=this['_model']['createRange'](_0x1f5a1a,_0x5869f7),_0x148c0e=_0x3fc62b['id'],_0x4d3220=_0x419202?'deletion:'+_0x419202:'deletion',_0x32690a=this['_setSuggestionData']({'id':_0x4dd4af,'type':_0x4d3220,'createdAt':new Date(),'authorId':_0x148c0e,'attributes':_0x36b220});return this['_addSuggestionMarker'](_0x4d3220,_0x4dd4af,_0x148c0e,_0x260705),_0x32690a;}}['markMultiRangeDeletion'](_0x2de68c,_0x2a1e0c='multi',_0x2ab53c={}){const _0x6c5459=this['editor']['plugins']['get']('Users')['me'],_0x14b517=_0x2de68c['map'](_0xb3e0b7=>new _0x402ed1(_0xb3e0b7['start'],_0xb3e0b7['end'])),_0x321ffd=new Set();for(const {suggestion:_0x272baf,meta:_0x239ef6}of this['_findSuggestions'](_0x14b517,'insertion'))_0x239ef6['isOwn']&&!_0x239ef6['isNextTo']&&_0x321ffd['add'](_0x272baf);for(const _0x4c7463 of _0x321ffd)if(_0x4c7463['isMultiRange']){const _0xfffc2d=_0x4c7463['getRanges']();(!_0x4c7463['attributes']||!_0x4c7463['attributes']['skipNestingCheck'])&&(_0xfffc2d['every'](_0x2b9842=>_0x14b517['some'](_0x2b0268=>_0x2b0268['containsRange'](_0x2b9842,!0x0)))&&_0x4c7463['discard']());if(_0x14b517['every'](_0xaf26dd=>_0xfffc2d['some'](_0x954f55=>_0x954f55['containsRange'](_0xaf26dd,!0x0)))){const _0x45511f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a1e0c,'accept');return this['forceDefaultExecution'](()=>_0x45511f(_0x2de68c,null,_0x2ab53c)),null;}}else{const _0x230581=_0x4c7463['getFirstRange']();_0x14b517['some'](_0x185bac=>_0x185bac['containsRange'](_0x230581,!0x0))&&_0x4c7463['discard']();if(_0x14b517['every'](_0x225ba4=>_0x230581['containsRange'](_0x225ba4,!0x0))){const _0xe311e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a1e0c,'accept');return this['forceDefaultExecution'](()=>_0xe311e1(_0x14b517,null,_0x2ab53c)),null;}}const _0x29f5e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a1e0c,'join');let _0x405767=null;for(const _0x5e0de5 of this['getSuggestions']())if(_0x5e0de5['author']['id']==_0x6c5459['id']&&_0x5e0de5['isInContent']&&'deletion'==_0x5e0de5['type']&&_0x5e0de5['subType']==_0x2a1e0c&&Qt(_0x5e0de5,_0x2ab53c)&&(_0x29f5e6(_0x5e0de5['getRanges'](),_0x14b517)||_0x29f5e6(_0x14b517,_0x5e0de5['getRanges']()))){if(_0x405767){if(_0x5e0de5['commentThread']&&_0x5e0de5['commentThread']['length'])continue;for(const _0x10c03d of _0x5e0de5['getRanges']())_0x405767['isIntersectingWithRange'](_0x10c03d)||_0x405767['addRange'](_0x10c03d);_0x5e0de5['removeMarkers']();}else{_0x405767=_0x5e0de5;for(const _0x258a71 of _0x14b517)_0x5e0de5['isIntersectingWithRange'](_0x258a71)||_0x5e0de5['addRange'](_0x258a71);}}if(_0x405767)return _0x405767;_0x321ffd['clear']();for(const {suggestion:_0xff18c4,meta:_0xca9a1f}of this['_findSuggestions'](_0x14b517,'deletion'))_0xca9a1f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xca9a1f['containsRangeInObject']&&!_0xca9a1f['isInsideObject'])&&Qt(_0xff18c4,_0x2ab53c)&&_0x321ffd['add'](_0xff18c4);for(const _0x4da36e of _0x321ffd){const _0x7bbba=_0x4da36e['getRanges']();if(!_0x2ab53c||!_0x2ab53c['skipNestingCheck']){if(_0x14b517['every'](_0x2651f1=>_0x7bbba['some'](_0x4d318c=>_0x4d318c['containsRange'](_0x2651f1,!0x0))))return _0x4da36e;}(!_0x4da36e['attributes']||!_0x4da36e['attributes']['skipNestingCheck'])&&(_0x7bbba['every'](_0x3d5ec4=>_0x14b517['some'](_0x46b82c=>_0x46b82c['containsRange'](_0x3d5ec4,!0x0)))&&_0x4da36e['discard']());}const _0x1ba1b3=_0x42ebb1(),_0x29a492=_0x6c5459['id'],_0x443449='deletion:'+_0x2a1e0c,_0x5a47ed=this['_setSuggestionData']({'id':_0x1ba1b3,'type':_0x443449,'createdAt':new Date(),'authorId':_0x29a492,'attributes':_0x2ab53c});for(const _0xa548dd of _0x14b517)_0xa548dd['detach'](),_0xa548dd['isCollapsed']||'$graveyard'==_0xa548dd['root']['rootName']||this['_addSuggestionMarker'](_0x443449,_0x1ba1b3,_0x29a492,_0xa548dd,u['getMultiRangeId']());return _0x5a47ed;}['markAttributeChange'](_0x2b9b73,_0x2ef116,_0x306c8c,_0x2164ac,_0x41cf18){if(_0x2b9b73['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ec288=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ea7c0=Array['from'](this['_suggestions']['values']())['filter'](_0x84a393=>'attribute'==_0x84a393['type']&&_0x84a393['data']['key']==_0x2ef116&&_0x84a393['isIntersectingWithRange'](_0x2b9b73));if('default'===this['_trackFormatChanges']){const _0x546061=this['_findSuggestions'](_0x2b9b73,'insertion')['filter'](({meta:_0x373fec})=>_0x373fec['isOwn']&&!_0x373fec['isInsideObject']&&!_0x373fec['isNextTo'])['map'](({suggestion:_0x20b657})=>_0x20b657);_0x5ea7c0['unshift'](..._0x546061);}const _0xfc556=new Map([[_0x2b9b73,_0x306c8c]]);for(const _0x4fc27f of _0x5ea7c0){const _0x20de6b='attribute'==_0x4fc27f['type']?_0x4fc27f['data']['oldValue']:void 0x0,_0x3c2656=_0x4fc27f['getFirstRange'](),_0x34b8a7=Array['from'](_0xfc556['keys']())['find'](_0x294a9f=>_0x294a9f['isIntersecting'](_0x3c2656));if(!_0x34b8a7)continue;const _0x20e16f=_0x34b8a7['getDifference'](_0x3c2656);this['_isBlockAttribute'](_0x2ef116)&&'insertion'==_0x4fc27f['type']&&0x0!=_0x20e16f['length']||(_0xfc556['delete'](_0x34b8a7),_0x20e16f['forEach'](_0x60c28f=>{_0xfc556['set'](_0x60c28f,_0x306c8c);}),'insertion'!=_0x4fc27f['type']&&_0x20de6b!=_0x2164ac&&_0xfc556['set'](_0x34b8a7['getIntersection'](_0x3c2656),_0x20de6b));}const _0x40b717=[];for(const [_0xf8508f,_0x4c25c5]of _0xfc556){const _0x32037c=_0x42ebb1(),_0x24528e={'key':_0x2ef116,'oldValue':_0x4c25c5,'newValue':_0x2164ac};_0x2ef116['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':_0x2ef116});const _0x525f75=('attribute:'+(_0x2ef116+'|'+Jt({'newValue':_0x2164ac})))['substring'](0x0,0x3c),_0x4ee3c=this['_setSuggestionData']({'id':_0x32037c,'type':_0x525f75,'data':_0x24528e,'createdAt':new Date(),'authorId':_0x2ec288,'attributes':_0x41cf18});_0x40b717['push'](_0x4ee3c),this['_addSuggestionMarker'](_0x525f75,_0x32037c,_0x2ec288,_0xf8508f);}return _0x40b717;}['enableDefaultAttributesIntegration'](_0x133d9a){this['enableCommand'](_0x133d9a,(_0x1f5364,..._0x1a6995)=>{this['_recordAttributeChanges'](()=>{_0x1f5364(..._0x1a6995);});});}['registerBlockAttribute'](_0x119f21){this['_blockAttributeKeys']['add'](_0x119f21);}['registerInlineAttribute'](_0x5c503b){this['_inlineAttributeKeys']['add'](_0x5c503b);}['_getAttributeKey'](_0x3d6261){return'attribute'==_0x3d6261['type']?_0x3d6261['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5c1178,_0x35ed7e){const _0x797c5d=_0x5c1178['getFirstMarker']();this['_model']['change'](_0xeb947d=>{_0xeb947d['updateMarker'](_0x797c5d,{'range':_0x35ed7e});});}['_addThreadToSuggestion'](_0x5e37b2){const _0x3c41e1=_0x5e37b2['id'],_0x590fb1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c41e1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x590fb1,'threadId':_0x3c41e1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2d8acf=this['_commentsRepository']['getCommentThread'](_0x3c41e1);_0x2d8acf['unbind']('isRemovable'),_0x2d8acf['isRemovable']=!0x1,_0x5e37b2['commentThread']=_0x2d8acf;}['_checkSuggestionCorrectness'](_0x3e19e2,_0x514d79,_0x3d91f2,_0x2fd2c8){if(_0x3e19e2['type']!=_0x514d79||_0x3e19e2['subType']!=_0x3d91f2||_0x3e19e2['creator']['id']!=_0x2fd2c8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x19cdbc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54c8a6,_0x217f62){const _0x235925=_0x54c8a6['getFirstRange']();if(_0x217f62['isEqual'](_0x235925))_0x54c8a6['removeMarkers']();else{if(_0x235925['containsRange'](_0x217f62)){const _0x23f5c0=this['_model']['createPositionAt'](_0x217f62['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54c8a6,this['_model']['createRange'](_0x235925['start'],_0x23f5c0));const _0x55354f=_0x42ebb1(),_0x516ac7=_0x54c8a6['creator']['id'],_0x2083a3=_0x54c8a6['type']+':'+_0x54c8a6['subType'];this['_setSuggestionData']({'id':_0x55354f,'type':_0x2083a3,'createdAt':new Date(),'authorId':_0x516ac7,'data':_0x54c8a6['data'],'attributes':_0x54c8a6['attributes']});const _0x5785bc=this['_model']['createPositionAt'](_0x217f62['end']['parent'],'after'),_0x1e8f62=this['_model']['createRange'](_0x5785bc,_0x235925['end']);this['_addSuggestionMarker'](_0x2083a3,_0x55354f,_0x516ac7,_0x1e8f62);}else{if(_0x235925['containsPosition'](_0x217f62['start'])){const _0x2c0132=this['_model']['createPositionAt'](_0x217f62['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54c8a6,this['_model']['createRange'](_0x235925['start'],_0x2c0132));}else{const _0x2e113b=this['_model']['createPositionAt'](_0x217f62['end']['parent'],'after');this['_setSuggestionRange'](_0x54c8a6,this['_model']['createRange'](_0x2e113b,_0x235925['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11cae9){for(const {suggestion:_0x30baf3,meta:_0x3d4154}of this['_findSuggestions'](_0x11cae9,'insertion')){if(!_0x3d4154['isOwn'])continue;const _0x39f763=_0x30baf3['getRanges']();for(const _0x549b94 of _0x39f763)if(!_0x11cae9['getDifference'](_0x549b94)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3f11dd){const _0xf826b1=this['editor']['plugins']['get']('Users')['getUser'](_0x3f11dd);if(!_0xf826b1)throw new _0x19cdbc('track-changes-user-not-found',this);return _0xf826b1;}['_getExternalAuthor'](_0x223a99){const _0x3bb59b=this['editor']['plugins']['get']('Users'),_0x53fc7d=_0x18c408('external:'+_0x223a99),_0x52f9f5=_0x3bb59b['getUser'](_0x53fc7d);return _0x52f9f5||_0x3bb59b['addUser']({'id':_0x53fc7d,'name':_0x223a99});}['_createSuggestion'](_0x5bdc15,_0x4f07c2,_0x55858e,_0x458abd,_0x48674a){const _0x2a73ac=this['_getAuthorFromId'](_0x458abd),_0x26b113=this['_suggestionFactory']['buildSuggestion'](_0x5bdc15,_0x4f07c2,_0x55858e,_0x2a73ac,_0x48674a,_0x1d578d=>{this['_updateSuggestionData'](_0x55858e,{'attributes':_0x1d578d});const _0x52160a=this['getSuggestion'](_0x55858e);this['_joinWithAdjacentSuggestions'](new Set([_0x52160a])),this['_refreshSuggestionsChain'](new Set([_0x52160a]));});return this['listenTo'](_0x26b113,'accept',()=>{this['_updateSuggestionData'](_0x55858e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26b113,'discard',()=>{this['_updateSuggestionData'](_0x55858e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x55858e,_0x26b113),this['_suggestionState']['set'](_0x26b113,'notReady'),_0x26b113;}['_splitMarkerName'](_0x17240c){const _0x5d638e=_0x17240c['split'](':');return{'group':_0x5d638e[0x0],'type':_0x5d638e[0x1],'subType':_0x5d638e['length']>=0x5?_0x5d638e[0x2]:null,'id':_0x5d638e['length']<0x5?_0x5d638e[0x2]:_0x5d638e[0x3],'authorId':_0x5d638e['length']<0x5?_0x5d638e[0x3]:_0x5d638e[0x4],'markerCount':0x6==_0x5d638e['length']?_0x5d638e[0x5]:null};}['_breakSuggestionMarker'](_0x45a474,_0x14bf2b,_0x1015cf){const _0x10247c=_0x45a474['getFirstRange'](),_0x2a003e=_0x10247c['start'],_0x514136=_0x10247c['end'];this['_setSuggestionRange'](_0x45a474,this['_model']['createRange'](_0x2a003e,_0x14bf2b));const _0x3d8ad7=_0x42ebb1(),_0x3b4091=_0x45a474['creator']['id'],_0x28e0ec=_0x45a474['type']+(_0x45a474['subType']?':'+_0x45a474['subType']:'');this['_setSuggestionData']({'id':_0x3d8ad7,'type':_0x28e0ec,'createdAt':new Date(),'authorId':_0x3b4091,'originalSuggestionId':_0x45a474['id'],'attributes':_0x45a474['attributes'],'data':_0x45a474['data']});const _0x2beab4=this['_getAttributeKey'](_0x45a474);('formatBlock'==_0x45a474['type']||_0x2beab4&&this['_isBlockAttribute'](_0x2beab4))&&(_0x1015cf=this['_model']['createPositionBefore'](_0x1015cf['parent'])),this['_addSuggestionMarker'](_0x28e0ec,_0x3d8ad7,_0x3b4091,this['_model']['createRange'](_0x1015cf,_0x514136));}['_findSuggestions'](_0x158664,_0x48a650=null){const _0x5cb415=[],_0x356ce6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x158664)||(_0x158664=[_0x158664]);for(const _0x1b9cef of this['getSuggestions']()){if(!_0x1b9cef['isInContent'])continue;if(_0x48a650&&_0x1b9cef['type']!=_0x48a650)continue;let _0x2ddf5b=!0x1;for(const _0x41cc28 of _0x1b9cef['getRanges']()){for(const _0xca531f of _0x158664){const _0x49f96f=_0xca531f['start']['isEqual'](_0x41cc28['end'])||_0xca531f['end']['isEqual'](_0x41cc28['start']);if(_0x49f96f||_0xca531f['getIntersection'](_0x41cc28)){const _0x1f139b=_0xca531f['containsRange'](_0x41cc28)&&Gt(this['_model']['schema'],_0x41cc28['start'],_0xca531f),_0x3300c7=_0x41cc28['containsRange'](_0xca531f)&&Gt(this['_model']['schema'],_0xca531f['start'],_0x41cc28);_0x5cb415['push']({'suggestion':_0x1b9cef,'meta':{'isOwn':_0x356ce6==_0x1b9cef['author'],'isNextTo':_0x49f96f,'isInsideObject':_0x1f139b,'containsRangeInObject':_0x3300c7}}),_0x2ddf5b=!0x0;break;}}if(_0x2ddf5b)break;}}return _0x5cb415;}['_addSuggestionMarker'](_0x48fb36,_0x495218,_0x5869b5,_0x3b197e,_0x5ce042){this['_model']['change'](_0x2e86ca=>{let _0x5320b8='suggestion:'+_0x48fb36+':'+_0x495218+':'+_0x5869b5;_0x5ce042&&(_0x5320b8=_0x5320b8+':'+_0x5ce042),_0x2e86ca['addMarker'](_0x5320b8,{'range':_0x3b197e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4664e9){const _0x269717=_0x4664e9['previous'],_0x499a43=_0x4664e9['next'];_0x4664e9['previous']=null,_0x4664e9['next']=null,null!=_0x269717&&_0x269717['next']==_0x4664e9&&(_0x269717['next']=_0x499a43),null!=_0x499a43&&_0x499a43['previous']==_0x4664e9&&(_0x499a43['previous']=_0x269717),'ready'==this['_suggestionState']['get'](_0x4664e9)&&(this['_suggestionState']['set'](_0x4664e9,'removed'),this['fire']('suggestionUnloaded',_0x4664e9,_0x269717,_0x499a43));}['_setSuggestionData'](_0xd9c847){const _0x328f18=_0xd9c847['id'],_0x51c83b=this['addSuggestionData'](_0xd9c847);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53e4d3=this['editor']['plugins']['get']('PendingActions'),_0x5e9549=_0x51c83b['hasComments'],_0x3d201a=_0x51c83b['subType']?_0x51c83b['type']+':'+_0x51c83b['subType']:_0x51c83b['type'],_0x186934=this['editor']['locale'],_0x22f54f=_0x53e4d3['add'](o(_0x186934,'PENDING_ACTION_SUGGESTION')),_0x1ae078={'id':_0x328f18,'type':_0x3d201a,'hasComments':_0x5e9549,'data':_0xd9c847['data']||null,'originalSuggestionId':_0xd9c847['originalSuggestionId']||null,'attributes':_0x51c83b['attributes']};this['_adapter']['addSuggestion'](_0x1ae078)['then'](_0x1c4e02=>{_0x51c83b['_saved']=!0x0,_0x53e4d3['remove'](_0x22f54f),_0x1c4e02&&_0x1c4e02['createdAt']&&(this['_suggestions']['get'](_0x328f18)['createdAt']=_0x1c4e02['createdAt']);})['catch'](_0x510099=>{throw _0x3d4166('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x51c83b['discard']();}),_0x51c83b['stopListening'](),this['_suggestions']['delete'](_0x51c83b['id']),this['_suggestionState']['delete'](_0x51c83b),_0x510099;});}return _0x51c83b;}['_isBlockAttribute'](_0x58f422){return this['_blockAttributeKeys']['has'](_0x58f422);}['_updateSuggestionData'](_0x42e8e6,_0x4063eb){const _0xd163ec=this['editor']['plugins']['get']('PendingActions'),_0x4080cb=this['getSuggestion'](_0x42e8e6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4080cb['_saved']){const _0x2f8aa8=_0xd163ec['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x42e8e6,_0x4063eb)['then'](()=>{_0xd163ec['remove'](_0x2f8aa8);});}else _0x4080cb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x42e8e6,_0x4063eb);});}}['_getSuggestionData'](_0x5576de){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x19cdbc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5576de);}['_handleNewSuggestionMarker'](_0x1ea2d8){const {id:_0x1e4daf,type:_0x22d8ac,subType:_0x535624,authorId:_0x2a7a06}=this['_splitMarkerName'](_0x1ea2d8),_0x395d2b=this['_suggestions']['get'](_0x1e4daf)||this['_createSuggestion'](_0x22d8ac,_0x535624,_0x1e4daf,_0x2a7a06,{});switch(this['_checkSuggestionCorrectness'](_0x395d2b,_0x22d8ac,_0x535624,_0x2a7a06),this['_suggestionState']['get'](_0x395d2b)){case'notReady':this['_getSuggestionData'](_0x1e4daf)['then'](_0x2af24e=>{let _0x2ee5c0=Promise['resolve']();_0x2af24e['hasComments']&&(_0x2ee5c0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e4daf})),_0x2ee5c0['then'](()=>{this['addSuggestionData'](_0x2af24e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x395d2b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e4daf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x395d2b,'ready'),this['fire']('suggestionLoaded',_0x395d2b);break;case'ready':this['fire']('suggestionChanged',_0x395d2b);}return _0x395d2b['addMarkerName'](_0x1ea2d8),_0x395d2b;}['_refreshSuggestionsChain'](_0x2899e4){const _0x17054e=Array['from'](_0x2899e4),_0x3629d2=_0x17054e['filter'](_0x45dad9=>'attribute'==_0x45dad9['type']);this['_refreshAttributeSuggestionsChain'](_0x3629d2);const _0x262956=_0x17054e['filter'](_0x348169=>!_0x348169['isMultiRange']&&'attribute'!=_0x348169['type']),_0x16af4a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39506c=>!_0x39506c['isMultiRange']&&'attribute'!=_0x39506c['type']),_0x51f128=_0x16af4a['filter'](_0x22bf23=>!_0x2899e4['has'](_0x22bf23)),_0x100049=new Map(_0x16af4a['map'](_0x5e21fa=>[_0x5e21fa,this['_suggestionFactory']['getSuggestionCallback'](_0x5e21fa['type'],_0x5e21fa['subType'],'chain')])),_0x2c6206=new Map(_0x16af4a['map'](_0xab2bfe=>[_0xab2bfe,_0xab2bfe['getFirstRange']()])),_0x5cd8c4=new Set(),_0x2bb9f8=new Set();for(let _0x51822a=0x0;_0x51822a<_0x262956['length'];_0x51822a++)_0x2aceb2(_0x262956[_0x51822a],_0x262956,_0x51822a+0x1);for(let _0x12f015=0x0;_0x12f015<_0x262956['length'];_0x12f015++)_0x2aceb2(_0x262956[_0x12f015],_0x51f128,0x0);const _0x48679d=new Set();for(let _0x96870b=0x0;_0x96870b<_0x262956['length'];_0x96870b++){const _0x27e193=_0x262956[_0x96870b];!_0x2bb9f8['has'](_0x27e193)&&_0x27e193['previous']&&(_0x48679d['add'](_0x27e193['previous']),_0x27e193['previous']['next']===_0x27e193&&(_0x27e193['previous']['next']=null),_0x27e193['previous']=null),!_0x5cd8c4['has'](_0x27e193)&&_0x27e193['next']&&(_0x48679d['add'](_0x27e193['next']),_0x27e193['next']['previous']===_0x27e193&&(_0x27e193['next']['previous']=null),_0x27e193['next']=null);}function _0x2aceb2(_0x25aa8,_0x53243f,_0x1d940c){for(let _0x1decb2=_0x1d940c;_0x1decb2<_0x53243f['length'];_0x1decb2++){const _0x2b3695=_0x1693fe(_0x25aa8,_0x53243f[_0x1decb2]);_0x2b3695&&(_0x2b3695[0x0]['next']=_0x2b3695[0x1],_0x2b3695[0x1]['previous']=_0x2b3695[0x0],_0x5cd8c4['add'](_0x2b3695[0x0]),_0x2bb9f8['add'](_0x2b3695[0x1]));}}function _0x1693fe(_0x1fb18d,_0x4396cd){if(_0x1fb18d['author']['id']!==_0x4396cd['author']['id'])return null;const _0x1dc236=_0x100049['get'](_0x1fb18d)(_0x1fb18d,_0x4396cd,_0x2c6206['get'](_0x1fb18d),_0x2c6206['get'](_0x4396cd));if(!_0x1dc236)return null;return _0x100049['get'](_0x4396cd)(_0x1fb18d,_0x4396cd,_0x2c6206['get'](_0x1fb18d),_0x2c6206['get'](_0x4396cd))?_0x1dc236[0x1]['commentThread']&&_0x1dc236[0x1]['commentThread']['length']?null:_0x1dc236:null;}_0x48679d['size']&&this['_refreshSuggestionsChain'](_0x48679d);}['_refreshAttributeSuggestionsChain'](_0x2d073a){if(0x0==_0x2d073a['length'])return;const _0x406ee4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x75d15f=>'attribute'==_0x75d15f['type']&&_0x75d15f['_isDataLoaded']),_0x164b35=[],_0x5324f9=new Map();for(const _0x23c688 of _0x406ee4){const _0x38134b=_0x18c408(_0x23c688['attributes']);_0x5324f9['has'](_0x38134b)||(_0x5324f9['set'](_0x38134b,_0x164b35['length']),_0x164b35['push']([]));const _0x47b7e5=_0x5324f9['get'](_0x38134b);_0x164b35[_0x47b7e5]['push'](_0x23c688);}!(function(){_0x164b35['sort']((_0x50fb02,_0x5500e6)=>{const _0x5427b6=_0x50fb02[0x0]['createdAt'],_0x4346fe=_0x5500e6[0x0]['createdAt'];return _0x5427b6==_0x4346fe?_0x50fb02[0x0]['attributes']['groupId']<_0x5500e6[0x0]['attributes']['groupId']?-0x1:0x1:_0x5427b6<_0x4346fe?-0x1:0x1;});for(const _0x2e3788 of _0x164b35)_0x2e3788['sort']((_0x209b52,_0x2b14b0)=>_0x209b52['id']<_0x2b14b0['id']?-0x1:0x1);}());for(let _0xa523b4=0x0;_0xa523b4<_0x164b35['length'];_0xa523b4++){if(0x0==_0x164b35[_0xa523b4]['length'])continue;const _0x309aa5=[];for(let _0x2edbb2=_0xa523b4+0x1;_0x2edbb2<_0x164b35['length'];_0x2edbb2++)0x0!=_0x164b35[_0x2edbb2]['length']&&_0x160968(_0x164b35[_0xa523b4],_0x164b35[_0x2edbb2])&&_0x309aa5['push'](_0x2edbb2);for(const _0x4ea232 of _0x309aa5)_0x164b35[_0xa523b4]=_0x164b35[_0xa523b4]['concat'](_0x164b35[_0x4ea232]),_0x164b35[_0x4ea232]=[];}for(const _0x3d498e of _0x164b35)for(let _0x2483a9=0x0;_0x2483a9<_0x3d498e['length'];_0x2483a9++){const _0x54fba7=_0x3d498e[_0x2483a9+0x1]||null;_0x3d498e[_0x2483a9]['next']!==_0x54fba7&&(_0x3d498e[_0x2483a9]['next']=_0x54fba7);}for(const _0x51797f of _0x164b35)for(let _0x570f6c=0x0;_0x570f6c<_0x51797f['length'];_0x570f6c++){const _0xc48967=_0x51797f[_0x570f6c-0x1]||null;_0x51797f[_0x570f6c]['previous']!==_0xc48967&&(_0x51797f[_0x570f6c]['previous']=_0xc48967);}function _0x160968(_0x4988c7,_0x5b2272){if(_0x4988c7[0x0]['attributes']['groupId']!==_0x5b2272[0x0]['attributes']['groupId']&&_0x4988c7[0x0]['author']!==_0x5b2272[0x0]['author'])return!0x1;if(!function(_0x3fc2f0,_0x74be4d){if(!_0x3fc2f0['hasComments']&&!_0x74be4d['hasComments'])return!0x0;if(_0x3fc2f0['hasComments']&&_0x74be4d['hasComments'])return!0x1;if(_0x3fc2f0['hasComments']&&_0x74be4d['createdAt']<_0x3fc2f0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x74be4d['hasComments']&&_0x3fc2f0['createdAt']<_0x74be4d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4988c7[0x0],_0x5b2272[0x0]))return!0x1;const _0x5a0161=Vt(_0x4988c7[0x0]['attributes'],'groupId'),_0x5693df=Vt(_0x5b2272[0x0]['attributes'],'groupId');if(!_0x3308c1(_0x5a0161,_0x5693df))return!0x1;return!!_0x4988c7['every'](_0x29ed71=>_0x5b2272['some'](_0x20b3f3=>_0x29ed71['getFirstRange']()['isEqual'](_0x20b3f3['getFirstRange']())))&&_0x5b2272['every'](_0x4b9c66=>_0x4988c7['some'](_0x220b88=>_0x4b9c66['getFirstRange']()['isEqual'](_0x220b88['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x445a9e){const _0x2dac67=Array['from'](_0x445a9e),_0x3aaf2c=this['getSuggestions']({'skipNotAttached':!0x0}),_0xd36890=_0x3aaf2c['filter'](_0x34e4ba=>!_0x445a9e['has'](_0x34e4ba)),_0x51228b=new Map(_0x2dac67['map'](_0x5bbe21=>[_0x5bbe21,this['_suggestionFactory']['getSuggestionCallback'](_0x5bbe21['type'],_0x5bbe21['subType'],'join')])),_0x97abf2=new Map(_0x3aaf2c['map'](_0x490c6c=>[_0x490c6c,_0x490c6c['getRanges']()]));for(let _0x50a608=0x0;_0x50a608<_0x2dac67['length'];_0x50a608++){if(_0x202e77(this,_0x2dac67[_0x50a608],_0x2dac67,_0x50a608+0x1))return!0x0;}for(let _0x2ae595=0x0;_0x2ae595<_0x2dac67['length'];_0x2ae595++){if(_0x202e77(this,_0x2dac67[_0x2ae595],_0xd36890,0x0))return!0x0;}return!0x1;function _0x202e77(_0x5ac41a,_0x247202,_0x15d783,_0x157a21){for(let _0x400abd=_0x157a21;_0x400abd<_0x15d783['length'];_0x400abd++){const _0x2ce545=_0x15d783[_0x400abd];if(_0x2ce545['type']!==_0x247202['type']||_0x2ce545['author']['id']!==_0x247202['author']['id']||_0x2ce545['subType']!==_0x247202['subType'])continue;if(!Wt(_0x247202,_0x2ce545))continue;if('attribute'==_0x247202['type']&&_0x247202['data']['oldValue']!=_0x2ce545['data']['oldValue'])continue;if('attribute'==_0x247202['type']&&_0x5ac41a['_isBlockAttribute'](_0x247202['data']['key']))continue;if('formatBlock'==_0x247202['type']){const _0x3f8a92=_0x5ac41a['editor']['model'],_0x2e601a=_0x247202['getContainedElement']();if(_0x2e601a&&(_0x3f8a92['schema']['isObject'](_0x2e601a)||_0x3f8a92['schema']['isLimit'](_0x2e601a)))continue;}const _0x3e78a7=_0x51228b['get'](_0x247202),_0x9c00a6=_0x97abf2['get'](_0x247202),_0x226a04=_0x97abf2['get'](_0x2ce545),_0x4b44f7=_0x247202['commentThread']&&_0x247202['commentThread']['length'],_0x4e27a5=_0x2ce545['commentThread']&&_0x2ce545['commentThread']['length'];if(!_0x4b44f7&&_0x3e78a7(_0x226a04,_0x9c00a6))return _0x5ac41a['_joinSuggestions'](_0x2ce545,_0x247202),_0x97abf2['delete'](_0x247202),!0x0;if(!_0x4e27a5&&_0x3e78a7(_0x9c00a6,_0x226a04))return _0x5ac41a['_joinSuggestions'](_0x247202,_0x2ce545),_0x97abf2['delete'](_0x2ce545),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14b4f0,_0x4ed6f0){if(_0x14b4f0['isMultiRange']){for(const _0x5c9903 of _0x4ed6f0['getRanges']())_0x14b4f0['addRange'](_0x5c9903);}else{const _0x1b7a51=_0x4ed6f0['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14b4f0,this['_model']['createRange'](_0x14b4f0['getFirstRange']()['start'],_0x1b7a51));}_0x4ed6f0['removeMarkers']();}['_getMarkerAnnouncementText'](_0x12729c,_0x19f172,_0x5f4279){const _0x21ef62=_0x12729c['startsWith']('format')||_0x12729c['startsWith']('attribute')?'FORMATTING':_0x12729c['toUpperCase']();return o(this['editor']['locale'],_0x19f172+'_'+_0x21ef62+'_SUGGESTION_ANNOUNCEMENT',_0x5f4279);}['_initAriaMarkerChangeAnnouncements'](){const _0x401fff=this['editor'];if(!_0x401fff['ui'])return;const {ariaLiveAnnouncer:_0x320a61}=_0x401fff['ui'];_0x5b4051(this['_model'],({left:_0x9cf232,entered:_0x3a7489})=>{for(const _0x1a3cbd of _0x9cf232){const {group:_0x4c5602,type:_0x487dc4}=this['_splitMarkerName'](_0x1a3cbd['name']);if('suggestion'===_0x4c5602){_0x320a61['announce'](this['_getMarkerAnnouncementText'](_0x487dc4,'LEAVE'));break;}}for(const _0x32caba of _0x3a7489){const {group:_0x54a34a,type:_0x49b1ce}=this['_splitMarkerName'](_0x32caba['name']);if('suggestion'===_0x54a34a){_0x320a61['announce'](this['_getMarkerAnnouncementText'](_0x49b1ce,'ENTER',_0x11c901(_0x1787b4)));break;}}});}['_processAttributeChanges'](_0x22e6ab){if(this['_recordAttributeSuggestions'])return!0x1;const _0x25bf78=this['editor'],_0x173534=_0x25bf78['model']['document']['differ']['getChanges']();if(0x0==_0x173534['length'])return!0x1;const _0x507f5e=[],_0x452340=_0x173534['filter'](_0x544df1=>'attribute'==_0x544df1['type']),_0x23f1de=_0x173534['filter'](_0x167ffe=>'insert'==_0x167ffe['type']&&'$text'!=_0x167ffe['name']),_0x294069=_0x173534['filter'](_0x1332a1=>'remove'==_0x1332a1['type']&&'$text'!=_0x1332a1['name']);for(const _0x14c006 of _0x452340)_0x507f5e['push']({'key':_0x14c006['attributeKey'],'newValue':_0x14c006['attributeNewValue'],'oldValue':_0x14c006['attributeOldValue'],'range':qt(_0x14c006['range'],_0x25bf78['model'])});for(const _0x1f3b75 of _0x23f1de){const _0x49d329=_0x294069['find'](_0x43a728=>_0x43a728['position']['isEqual'](_0x1f3b75['position']));_0x49d329&&_0x507f5e['push']({'key':m,'newValue':_0x1f3b75['name'],'oldValue':_0x49d329['name'],'range':_0x25bf78['model']['createRangeOn'](_0x1f3b75['position']['nodeAfter'])});}return 0x0!=_0x507f5e['length']&&this['_reduceExistingSuggestions'](_0x22e6ab,_0x507f5e);}['_processAttributeSuggestions'](_0x384e6e){let _0x32761a=!0x1;const _0x160b0b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x54c310=>_0x54c310['data']['newRange']&&_0x54c310['name']['startsWith']('suggestion:attribute:'));for(const _0x200291 of _0x160b0b){const {subType:_0x545731,id:_0x27f7fb}=this['_splitMarkerName'](_0x200291['name']),_0x154e60=_0x545731['split']('|')[0x0];for(const _0x51fc53 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x51fc53['id']!=_0x27f7fb&&'attribute'==_0x51fc53['type']&&_0x51fc53['data']&&_0x51fc53['data']['key']==_0x154e60&&_0x51fc53['getFirstRange']()['isIntersecting'](_0x200291['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x51fc53,_0x200291['data']['newRange'],_0x384e6e),_0x32761a=!0x0);}return _0x32761a;}['_recordAttributeChanges'](_0x393543){this['_recordAttributeSuggestions']=!0x0,_0x393543();}['_isRegisteredAttribute'](_0x3ea7f2){const _0x40f4c0=this['_isBlockAttribute'](_0x3ea7f2),_0x48ff23=this['_inlineAttributeKeys']['has'](_0x3ea7f2);return _0x40f4c0||_0x48ff23;}['_reduceExistingSuggestions'](_0x4f2412,_0x442b36){if(0x0==_0x442b36['length'])return!0x1;let _0x5a6e9c=!0x1;for(const _0x1d7746 of _0x442b36){const _0x132104=this['_findSuggestions'](_0x1d7746['range'],'attribute')['filter'](_0x5b5115=>!_0x5b5115['meta']['isNextTo'])['map'](_0x217ba6=>_0x217ba6['suggestion']),_0x3a5470=_0x18c408({'newValue':_0x1d7746['newValue']});_0x132104['filter'](_0x3247b3=>{const [_0x36b7b4,_0x5dec8f]=_0x3247b3['subType']['split']('|');return _0x36b7b4==_0x1d7746['key']&&_0x5dec8f!=_0x3a5470;})['forEach'](_0x1fa259=>{this['_reduceSuggestionAttributeRange'](_0x1fa259,_0x1d7746['range'],_0x4f2412),_0x5a6e9c=!0x0;});}return _0x5a6e9c;}['_reduceSuggestionAttributeRange'](_0x187609,_0x4ad0c9,_0x3929d7){const _0x4bdae8=_0x187609['getFirstRange']()['getDifference'](_0x4ad0c9);0x0!==_0x4bdae8['length']?0x1!==_0x4bdae8['length']?this['_breakSuggestionMarker'](_0x187609,_0x4ad0c9['start'],_0x4ad0c9['end']):this['_setSuggestionRange'](_0x187609,_0x4bdae8[0x0]):_0x3929d7['removeMarker'](_0x187609['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x199af5){this['_editor']=_0x199af5,this['_model']=_0x199af5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x34ad21,_0x207c6b,_0x155918,_0x23d05d,_0x4bc126,_0x2fea5f){return new u(this['_model'],{'type':_0x34ad21,'subType':_0x207c6b,'id':_0x155918,'author':_0x23d05d,'creator':_0x23d05d,'attributes':_0x4bc126,'onAttributesChange':_0x2fea5f,'onAccept':(..._0x2b914e)=>this['getSuggestionCallback'](_0x34ad21,_0x207c6b,'accept')(..._0x2b914e),'onDiscard':(..._0x3430ed)=>this['getSuggestionCallback'](_0x34ad21,_0x207c6b,'discard')(..._0x3430ed)});}['registerCustomCallback'](_0x2dcaa6,_0x960bd4,_0x34561a,_0x3d837a){const _0x3cac7a=_0x2dcaa6+':'+_0x960bd4+':'+_0x34561a;this['_customCallbacks']['set'](_0x3cac7a,_0x3d837a);}['getSuggestionCallback'](_0x2fa215,_0x562f50,_0x3533a4){const _0x2b1889=_0x2fa215+':'+_0x562f50+':'+_0x3533a4;return this['_customCallbacks']['get'](_0x2b1889)||this['_defaultCallbacks']['get'](_0x2fa215+':'+_0x3533a4);}['_registerDefaultCallbacks'](){const _0x4562ef=()=>!0x1,_0xd78f60=_0x413aea=>{_0x413aea['sort']((_0x27cf3a,_0x31e742)=>_0x27cf3a['start']['isBefore'](_0x31e742['start'])?0x1:-0x1),this['_model']['change'](_0x3bad4f=>{for(const _0x56bfc5 of _0x413aea){let _0x482938;_0x482938=_0x56bfc5['end']['isAtEnd']&&_0x56bfc5['end']['parent']==_0x56bfc5['start']['nodeAfter']?_0x3bad4f['createSelection'](_0x56bfc5['start']['nodeAfter'],'on'):_0x3bad4f['createSelection'](_0x56bfc5),this['_model']['deleteContent'](_0x482938,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x38f0cf=(_0x13236d,_0x3b4a80)=>{_0x3b4a80&&this['_model']['change'](_0x4b2e5e=>{const {commandName:_0x33550d,commandParams:_0xdeabe7=[]}=_0x3b4a80,_0x5715b2=_0x13236d['map'](_0x24ba23=>(Ft(_0x24ba23)&&(_0x24ba23=this['_model']['createRange'](_0x24ba23['end'])),_0x24ba23))['filter'](_0x14b1a5=>'$graveyard'!==_0x14b1a5['root']['rootName']);if(_0x5715b2['length']<0x1)return;const _0x14523f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4f2724=>_0x402ed1['fromRange'](_0x4f2724));_0x4b2e5e['setSelection'](_0x5715b2);for(const _0x2036e5 of this['_editor']['commands']['commands']())_0x2036e5['refresh']();_0xdeabe7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x33550d,..._0xdeabe7);const _0x2a8ab5=_0x14523f['filter'](_0x4c92ee=>'$graveyard'!=_0x4c92ee['root']['rootName']);_0x2a8ab5['length']>0x0&&_0x4b2e5e['setSelection'](_0x2a8ab5);for(const _0xe321b of _0x14523f)_0xe321b['detach']();});},_0x4ba714=(_0x198700,_0x3cc749)=>0x1==_0x198700['length']&&0x1==_0x3cc749['length']&&_0x198700[0x0]['end']['isEqual'](_0x3cc749[0x0]['start']),_0x2c97e9=(_0x5be967,_0x12d6b5,_0x5aea17,_0x4ae74e)=>Kt(_0x5be967,_0x12d6b5,_0x5aea17,_0x4ae74e)?[_0x5be967,_0x12d6b5]:Kt(_0x12d6b5,_0x5be967,_0x4ae74e,_0x5aea17)?[_0x12d6b5,_0x5be967]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4562ef),this['_defaultCallbacks']['set']('insertion:discard',_0xd78f60),this['_defaultCallbacks']['set']('insertion:join',_0x4ba714),this['_defaultCallbacks']['set']('insertion:chain',_0x2c97e9),this['_defaultCallbacks']['set']('deletion:accept',_0xd78f60),this['_defaultCallbacks']['set']('deletion:discard',_0x4562ef),this['_defaultCallbacks']['set']('deletion:join',_0x4ba714),this['_defaultCallbacks']['set']('deletion:chain',_0x2c97e9),this['_defaultCallbacks']['set']('formatInline:accept',_0x38f0cf),this['_defaultCallbacks']['set']('formatInline:discard',_0x4562ef),this['_defaultCallbacks']['set']('formatInline:join',_0x4ba714),this['_defaultCallbacks']['set']('formatInline:chain',_0x4562ef),this['_defaultCallbacks']['set']('formatBlock:accept',_0x38f0cf),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4562ef),this['_defaultCallbacks']['set']('formatBlock:join',_0x4ba714),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4562ef),this['_defaultCallbacks']['set']('attribute:accept',_0x4562ef),this['_defaultCallbacks']['set']('attribute:discard',(_0x5b38bb,_0x36c4a8)=>{if(!_0x36c4a8)return;const _0x4fcf4a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5d4535=>{if(_0x36c4a8['key']==m)for(const _0x5d6bd8 of _0x5b38bb){const _0x1dfcc4=_0x5d6bd8['start']['nodeAfter'],_0x28f049=_0x36c4a8['oldValue'];_0x5d4535['rename'](_0x1dfcc4,_0x28f049);}else{if(_0x4fcf4a['_isBlockAttribute'](_0x36c4a8['key'])){for(const _0x2c18cf of _0x5b38bb)void 0x0!==_0x36c4a8['oldValue']?_0x5d4535['setAttribute'](_0x36c4a8['key'],_0x36c4a8['oldValue'],_0x2c18cf['start']['nodeAfter']):_0x5d4535['removeAttribute'](_0x36c4a8['key'],_0x2c18cf['start']['nodeAfter']);}else{for(const _0x547c13 of _0x5b38bb)_0x36c4a8['oldValue']?_0x5d4535['setAttribute'](_0x36c4a8['key'],_0x36c4a8['oldValue'],_0x547c13):_0x5d4535['removeAttribute'](_0x36c4a8['key'],_0x547c13);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4ba714);}}function Gt(_0x200e90,_0x28d0d7,_0x26279e){for(const _0x906d80 of _0x28d0d7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x906d80['root']==_0x906d80)return!0x1;if(!_0x26279e['containsItem'](_0x906d80))return!0x1;if(_0x200e90['isObject'](_0x906d80)||_0x200e90['isLimit'](_0x906d80))return!0x0;}return!0x1;}function Ft(_0x27f930){return _0x27f930['end']['parent']==_0x27f930['start']['nodeAfter']&&_0x27f930['end']['isAtStart'];}function Lt(_0x2ea29b,_0x2f522e,_0x3989b2,_0x172aa2){const _0x422bfd=_0x1879be=>!_0x1879be['item']['is']('$textProxy')&&!_0x172aa2['isObject'](_0x1879be['item']),_0x58cf00=_0x2ea29b['start']['getLastMatchingPosition'](_0x422bfd),_0x27e796=_0x2ea29b['end']['getLastMatchingPosition'](_0x422bfd,{'direction':'backward'});return(!_0x2ea29b['start']['isEqual'](_0x58cf00)||!_0x2ea29b['end']['isEqual'](_0x27e796))&&(_0x58cf00['isBefore'](_0x27e796)?_0x3989b2['updateMarker'](_0x2f522e,{'range':_0x3989b2['createRange'](_0x58cf00,_0x27e796)}):_0x3989b2['removeMarker'](_0x2f522e),!0x0);}function Jt(_0x2e9578){return _0x18c408(_0x2e9578);}function Ht(_0x337fc2){const _0x32a311=_0x337fc2['start']['nodeAfter'];return _0x32a311&&_0x32a311['is']('element');}function qt(_0x3378a1,_0x29c97b){return null==_0x3378a1['end']['nodeBefore']&&_0x3378a1['end']['parent']==_0x3378a1['start']['nodeAfter']?zt(_0x3378a1['start']['nodeAfter'],_0x29c97b):_0x3378a1;}function zt(_0x48733e,_0x5a7515){const _0x435611=_0x5a7515['schema']['isObject'](_0x48733e)||_0x5a7515['schema']['isSelectable'](_0x48733e);return _0x5a7515['createRange'](_0x5a7515['createPositionAt'](_0x48733e,'before'),_0x435611?_0x5a7515['createPositionAfter'](_0x48733e):_0x5a7515['createPositionAt'](_0x48733e,'end'));}function Kt(_0x2167cb,_0x4b7b13,_0x278e07,_0x2c66bc){return!!Wt(_0x2167cb,_0x4b7b13)&&_0x278e07['end']['isEqual'](_0x2c66bc['start']);}function Wt(_0xd48653,_0xa24ad3){if(!_0xd48653['_isDataLoaded']||!_0xa24ad3['_isDataLoaded'])return!0x1;const _0xe184aa=new Set(Object['keys'](_0xd48653['attributes'])),_0x32c2ed=new Set(Object['keys'](_0xa24ad3['attributes']));if(_0xe184aa['delete']('groupId'),_0x32c2ed['delete']('groupId'),0x0==_0xe184aa['size']&&0x0==_0x32c2ed['size'])return!0x0;if(_0xe184aa['size']!=_0x32c2ed['size'])return!0x1;const _0x59daa7={..._0xd48653['attributes']},_0x27fa3f={..._0xa24ad3['attributes']};return delete _0x59daa7['groupId'],delete _0x27fa3f['groupId'],JSON['stringify'](_0x59daa7)==JSON['stringify'](_0x27fa3f);}function Qt(_0x24f7b6,_0x563d3a){const _0x2cc147=Xt(_0x24f7b6['attributes']),_0x28ceee=Xt(_0x563d3a);if(!_0x24f7b6['_isDataLoaded'])return!0x1;for(const _0x47d900 of Object['keys'](_0x28ceee))if(!_0x3308c1(_0x2cc147[_0x47d900],_0x28ceee[_0x47d900]))return!0x1;return!0x0;}function Xt(_0x228e30){const _0x56bc1c=Object['assign']({},_0x228e30);return delete _0x56bc1c['skipNestingCheck'],delete _0x56bc1c['tablePasteChainId'],_0x56bc1c;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x30cd05(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x391252,_0x13c9e4,_0xa9364e,_0x3b31a2){super(),this['model']=_0x13c9e4,this['view']=_0xa9364e,this['commentThreadController']=_0x3b31a2,this['_editor']=_0x391252,this['_acceptCommand']=_0x391252['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x391252['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x38b81c,_0x294710)=>_0x38b81c||_0x294710),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1841fb=>_0x1841fb&&this['_editor']['model']['canEditAt'](_0x13c9e4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x11c9b8=>_0x11c9b8&&this['_editor']['model']['canEditAt'](_0x13c9e4['getRanges']())),this['_pendingAction']=null,_0xa9364e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xa9364e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xa9364e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xa9364e,'change:isDirty',()=>{_0xa9364e['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 _0x466874=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x466874);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x8ebe32{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1623ef,_0x581e77,_0xece16a,_0x115ee4){super(_0x1623ef),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x727986(_0x1623ef,o(_0x1623ef,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x581e77['authoredAt']),this['bind']('authoredAt')['to'](_0x581e77),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',_0x581e77,'authoredAt',this,'descriptionParts',(_0x383b60,_0x1f277e,_0x3474bd)=>{const _0x168494=_0x3474bd['map'](_0x52b404=>cs(_0x52b404['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x383b60-0x1,_0x581e77['author']['name'],_0x1f277e?_0x115ee4['formatDateTime'](_0x1f277e):'',new DOMParser()['parseFromString'](_0x168494,'text/html')['body']['textContent']]);}),this['focusables']=new _0x544a8b(),this['focusTracker']=new _0x1774c8(),this['keystrokes']=new _0xa2d227(),this['focusCycler']=new _0x33272f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x243720=>_0x243720['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x581e77,this['_localUser']=_0xece16a,this['_config']=_0x115ee4,_0x115ee4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x298186(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1be1b9}=this['_config'];this['commentsListView']=new _0x1be1b9(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',_0x4d6aa5=>_0x4d6aa5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x245dbd,_0x2f2e52)=>_0x245dbd||!!_0x2f2e52);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x158d2f}=this['_config'],_0x3431f9=new _0x158d2f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3e6a5f=_0x3431f9['commentInputView'];return _0x3431f9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3e6a5f,'value',(_0x1fdac2,_0x1f5194,_0x131da7)=>!!_0x131da7||_0x1fdac2&&!_0x1f5194),_0x3e6a5f['on']('submit',(_0x44d5ec,_0x151026)=>{this['fire']('addComment',_0x151026),_0x3e6a5f['editor']['setData']('');}),_0x3e6a5f['on']('cancel',()=>this['focus']()),_0x3e6a5f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3431f9;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x139e96,_0x764817,_0x49338e,_0x7dbfdf){super(_0x139e96,_0x764817,_0x49338e,_0x7dbfdf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a6e9d=>_0x2a6e9d&&_0x2a6e9d[0x0]?_0x2a6e9d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5e4efc,_0x31452f)=>{let _0x5996e5='';for(const _0x103892 of _0x5e4efc)_0x5996e5+='<p>'+cs(_0x103892['content'],_0x103892['color'])+'</p>';return _0x31452f?_0x5996e5:_0x364e53(_0x5996e5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x7dbfdf['SuggestionView'](_0x139e96,_0x764817,{'formatDateTime':_0x7dbfdf['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 _0x48ed17=this['bindTemplate'],_0x55a8e9=[this['suggestionView']];return this['commentsListView']&&_0x55a8e9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x55a8e9['push'](this['commentThreadInputView']),_0x55a8e9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x48ed17['if']('isActive','ck-suggestion-wrapper--active'),_0x48ed17['to']('type',_0x169c00=>'ck-suggestion-'+_0x169c00),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':_0x48ed17['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x55a8e9};}['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 fe extends _0x8ebe32{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x141773,_0x41683e,_0x5205f6){super(_0x141773),this['_model']=_0x41683e,this['_config']=_0x5205f6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x41683e),this['acceptButton']=this['_createButton'](o(_0x141773,'Accept\x20suggestion'),_0x2d09ff['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x141773,'Discard\x20suggestion'),_0x2d09ff['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2cc4a4(_0x141773,_0x41683e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x544a8b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1774c8(),this['keystrokes']=new _0xa2d227(),this['focusCycler']=new _0x33272f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x6a5e55=>_0x6a5e55['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4bb247=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4bb247['innerHTML']=this['description'],this['on']('change:description',(_0x16008c,_0x14a052,_0x18d06a)=>{_0x4bb247['innerHTML']=_0x18d06a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x580e68=this['bindTemplate'],_0x35988e=[{'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':_0x580e68['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x580e68['to']('authoredAt',_0xbcb590=>this['_config']['formatDateTime'](_0xbcb590))}]}]},{'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']&&_0x35988e['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':_0x35988e}]};}['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'](_0x4e9567,_0x5db53d,_0x52bece,_0x1250be,_0xd2f93c){const _0x3aa11d=new _0x3f4d01(this['locale']);return _0x3aa11d['set']({'label':_0x4e9567,'icon':_0x5db53d,'tooltip':!0x0,'tooltipPosition':_0xd2f93c}),_0x3aa11d['extendTemplate']({'attributes':{'class':_0x52bece}}),_0x3aa11d['on']('execute',()=>{this['fire'](_0x1250be,this['_model']['id']);}),_0x3aa11d;}['_setupKeyboardNavigation'](){const _0x13201c=this['element'];this['keystrokes']['listenTo'](_0x13201c);for(const _0x46dec5 of this['focusables'])this['focusTracker']['add'](_0x46dec5['element']),this['keystrokes']['listenTo'](_0x46dec5['element']);this['keystrokes']['set']('enter',(_0x40aa1d,_0x178740)=>{_0x13201c===_0x40aa1d['target']&&(this['focusCycler']['focusFirst'](),_0x178740());}),this['keystrokes']['set']('esc',(_0x4b95b4,_0xc58c3e)=>{_0x13201c!==_0x4b95b4['target']&&(this['focus'](),_0xc58c3e());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5b5ba2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5840a6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b69e9){super(_0x5b69e9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f6c42=this['editor']['config'];_0x1f6c42['define']('trackChanges.SuggestionThreadView',pe),_0x1f6c42['define']('trackChanges.SuggestionView',fe),_0x1f6c42['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f6c42['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x24d4c9,_0x355315){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4d2cde,_0x3ceeb6]of this['_handleControllerBuffer']){const _0x47139b=this['_suggestionToController']['has'](_0x4d2cde);_0x47139b||_0x3ceeb6?_0x47139b&&_0x3ceeb6&&this['_destroyController'](_0x4d2cde):this['_initializeController'](_0x4d2cde);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x24d4c9,_0x355315);}['init'](){const _0x56d457=this['editor'],_0x503470=_0x56d457['plugins']['get']('TrackChangesEditing'),_0x9eaa65=_0x56d457['plugins']['get']('Annotations'),_0x467a27=_0x56d457['plugins']['get']('EditorAnnotations'),_0x36d6da=_0x56d457['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x467a27['addSourceCollector'](()=>{const _0x2bdcdd=[];for(const [_0xa10c09,_0x4a728f]of Array['from'](this['_suggestionToController'])){const _0x11e9e4=_0xa10c09['getAllAdjacentSuggestions'](),_0x32afbc=[];for(const _0x276470 of _0x11e9e4){if(!_0x276470['isInContent'])continue;if(_0x276470['isMultiRange']){_0x32afbc['push'](..._0x276470['getRanges']());continue;}const _0x43ae49=_0x276470['getFirstRange']();if(_0x32afbc['length']>0x0){const _0xb6de03=_0x32afbc[0x0]['getJoined'](_0x43ae49);if(_0xb6de03){_0x32afbc[0x0]=_0xb6de03;continue;}}_0x32afbc['push'](_0x43ae49);}_0x2bdcdd['push']([_0x4a728f['view'],_0x32afbc]);}return _0x2bdcdd;}),this['listenTo'](_0x503470,'suggestionLoaded',(_0x114889,_0x3833f6)=>{this['listenTo'](_0x3833f6,'change:previous',(_0x2da600,_0x58ae43,_0x3f3d1c,_0x3db133)=>{_0x3833f6['isInContent']&&(null==_0x3f3d1c?(this['_updateController'](_0x3db133['head']),this['_handleSuggestionControllerDelayed'](_0x3833f6,!0x1)):(this['_updateController'](_0x3f3d1c['head']),null==_0x3db133&&this['_handleSuggestionControllerDelayed'](_0x3833f6,!0x0)));}),null!==_0x3833f6['previous']?this['_updateController'](_0x3833f6['head']):this['_handleSuggestionControllerDelayed'](_0x3833f6,!0x1);}),this['listenTo'](_0x503470,'suggestionUnloaded',(_0x308092,_0x46e0aa,_0x2b62d2)=>{this['stopListening'](_0x46e0aa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x46e0aa),this['_suggestionToController']['has'](_0x46e0aa)&&this['_destroyController'](_0x46e0aa),_0x2b62d2&&this['_updateController'](_0x2b62d2['head']);}),this['listenTo'](_0x503470,'suggestionChanged',(_0x3c7791,_0x52f98e)=>{this['_updateController'](_0x52f98e);}),this['listenTo'](_0x9eaa65,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x36d6da,'addComment',(_0x49f970,{threadId:_0xdb0154,isFromAdapter:_0x2d7d80})=>{if(_0x2d7d80||!_0x503470['hasSuggestion'](_0xdb0154))return;const _0x4c3e84=_0x503470['getSuggestion'](_0xdb0154);this['_suggestionToController']['get'](_0x4c3e84)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x247697=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc3cb0b;for(const _0x14dca1 in _0x247697){const _0x55f3dc=_0x14dca1,_0x46346d=_0x247697[_0x55f3dc];if('trackChangesLicenseKeyValid'==_0x46346d||'trackChangesLicenseKeyInvalid'==_0x46346d||'trackChangesLicenseKeyExpired'==_0x46346d||'trackChangesLicenseKeyDomainLimit'==_0x46346d||'trackChangesLicenseKeyNotAllowed'==_0x46346d||'trackChangesLicenseKeyEvaluationLimit'==_0x46346d||'trackChangesLicenseKeyTrialLimit'==_0x46346d||'trackChangesLicenseKeyUsageLimit'==_0x46346d){delete _0x247697[_0x55f3dc],_0xc3cb0b=_0x46346d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xc3cb0b&&_0x247697['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xc3cb0b&&_0x247697['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xc3cb0b&&_0x247697['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xc3cb0b&&_0x247697['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xc3cb0b&&_0x247697['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xc3cb0b&&_0x247697['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xc3cb0b&&_0x247697['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2cde45=this['editor']['plugins']['get']('Annotations'),_0x33a57b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x454907=Array['from'](_0x2cde45['activeAnnotations'],_0x2af727=>_0x2af727['innerView'])['filter'](_0x16423a=>this['_viewToController']['has'](_0x16423a)),_0x46c283=[];for(const _0x53d292 of _0x454907){const _0x5f47b8=this['_viewToController']['get'](_0x53d292)['model']['getAllAdjacentSuggestions']();_0x46c283['push'](..._0x5f47b8['reduce']((_0x2ae59b,_0x5eadc1)=>[..._0x2ae59b,..._0x5eadc1['getMarkerNames']()],[]));}_0x33a57b['activeMarkers']=_0x46c283;}['_addUIComponentsToFactory'](){const _0x2592ee=this['editor'],_0x2cd199=_0x2592ee['locale'],_0x18c916=o(_0x2cd199,'Track\x20changes'),_0x36c3a4=new _0x4bbfda([{'type':'switchbutton','model':new _0x27514c({'withText':!0x0,'isToggleable':!0x0,'label':_0x18c916,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x27514c({'withText':!0x0,'label':o(_0x2cd199,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27514c({'withText':!0x0,'label':o(_0x2cd199,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27514c({'withText':!0x0,'label':o(_0x2cd199,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27514c({'withText':!0x0,'label':o(_0x2cd199,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2592ee['plugins']['has']('TrackChangesPreview')&&_0x36c3a4['addMany']([{'type':'separator'},{'type':'button','model':new _0x27514c({'withText':!0x0,'label':o(_0x2cd199,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x442827 of _0x36c3a4)if(ke(_0x442827)){const _0x437845=_0x2592ee['commands']['get'](_0x442827['model']['commandName']);_0x442827['model']['bind']('isOn','isEnabled')['to'](_0x437845,'value','isEnabled');}_0x2592ee['ui']['componentFactory']['add']('trackChanges',_0x2fd325=>this['_createToolbarButton'](_0x2fd325,_0x36c3a4,_0x18c916)),_0x2592ee['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18ec44=>this['_createMenuBarMenu'](_0x18ec44,_0x36c3a4,_0x18c916));}['_createToolbarButton'](_0x261d70,_0x47c064,_0x3a4b60){const _0x2d9281=_0x44e6a2(_0x261d70,_0x26edac),_0x14c951=this['editor']['commands']['get']('trackChanges');_0x2d9281['buttonView']['set']({'tooltip':_0x3a4b60,'label':_0x3a4b60,'icon':we}),_0x2d9281['buttonView']['bind']('isOn')['to'](_0x14c951,'value'),_0x2d9281['buttonView']['on']('execute',()=>{_0x14c951['execute'](),this['editor']['editing']['view']['focus']();}),_0x220e75(_0x2d9281,_0x47c064,{'role':'menu'});const _0x3e0e26=[];for(const _0x1baa98 of _0x47c064)ke(_0x1baa98)&&_0x3e0e26['push'](this['editor']['commands']['get'](_0x1baa98['model']['commandName']));const _0x2d5a7f=_0x2d9281['buttonView'];return _0x2d5a7f['actionView']['unbind']('isEnabled'),_0x2d5a7f['arrowView']['unbind']('isEnabled'),_0x2d5a7f['actionView']['bind']('isEnabled')['to'](_0x14c951,'isEnabled'),_0x2d5a7f['arrowView']['bind']('isEnabled')['toMany'](_0x3e0e26,'isEnabled',(..._0x44ef5a)=>_0x44ef5a['some'](_0xe461e6=>_0xe461e6)),_0x2d9281['on']('execute',_0x4a1932=>{this['editor']['execute'](_0x4a1932['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d9281;}['_createMenuBarMenu'](_0x23f5fe,_0x296267,_0x21c201){const _0x19e1e0=new _0x6e2ed6(_0x23f5fe),_0x32429d=this['editor']['commands']['get']('trackChanges');_0x19e1e0['buttonView']['set']({'label':_0x21c201,'icon':we});const _0x31ca40=new _0x47bb39(_0x23f5fe);for(const _0x5f4e7e of _0x296267){if('separator'==_0x5f4e7e['type']){_0x31ca40['items']['add'](new _0x5082b9(_0x23f5fe));continue;}const _0x2c544e=new _0x20e25f(_0x23f5fe,_0x19e1e0),_0x424353=new _0x578855(_0x23f5fe),_0x2b29c9=_0x5f4e7e['model'];_0x424353['bind'](...Object['keys'](_0x2b29c9))['to'](_0x2b29c9),_0x424353['delegate']('execute')['to'](_0x19e1e0),_0x424353['on']('execute',()=>{this['editor']['execute'](_0x2b29c9['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c544e['children']['add'](_0x424353),_0x31ca40['items']['add'](_0x2c544e);}return _0x19e1e0['bind']('isEnabled')['to'](_0x32429d,'isEnabled'),_0x19e1e0['panelView']['children']['add'](_0x31ca40),_0x19e1e0;}['_initializeController'](_0x3d0d98){const _0x416328=this['editor'],_0x53178a=_0x416328['config'],_0x1e9c5b=_0x416328['plugins']['get']('Annotations'),_0xdd824f=_0x416328['plugins']['get']('CommentsRepository'),_0x289dac=_0x416328['plugins']['get']('EditorAnnotations'),_0x4007e0=_0x416328['plugins']['get'](_0x5840a6)['me'],_0x1abff2=_0x53178a['get']('trackChanges')['SuggestionThreadView'],_0x2ac5e9=_0x53178a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x154b0f,CommentThreadInputView:_0x59d8f2}=_0x416328['plugins']['get']('CommentsUI');let _0xf147fe,_0x3443b2,_0x4b1e6;this['_annotationViews']['has'](_0x3d0d98['id'])?(_0x3443b2=this['_annotationViews']['get'](_0x3d0d98['id']),_0xf147fe=_0x3443b2['mainView']):(_0xf147fe=new _0x1abff2(_0x416328['locale'],_0x3d0d98,_0x4007e0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x53178a['get']('comments.editorConfig'),'licenseKey':_0x53178a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x53178a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53178a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53178a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53b4b2(_0x53178a['get']('locale')),'CommentView':_0x53178a['get']('comments')['CommentView'],'CommentsListView':_0x154b0f,'CommentThreadInputView':_0x59d8f2,'SuggestionView':_0x2ac5e9}),_0xf147fe['suggestionView']['acceptButton']['on']('execute',()=>{_0x416328['editing']['view']['focus']();}),_0xf147fe['suggestionView']['discardButton']['on']('execute',()=>{_0x416328['editing']['view']['focus']();}),_0x3443b2=_0x1e9c5b['createAnnotationView'](this['editor']['locale'],_0xf147fe),_0x3443b2['bind']('isDirty')['to'](_0xf147fe,'isDirty'),_0x3443b2['bind']('length')['to'](_0xf147fe),_0x3443b2['bind']('type')['to'](_0xf147fe,'type',_0x322951=>'suggestion-'+_0x322951),_0xf147fe['on']('escape',()=>{_0x4b1e6['fire']('escape');}),this['_annotationViews']['set'](_0x3d0d98['id'],_0x3443b2));const _0x57604d=_0xdd824f['createCommentThreadController'](_0x3d0d98['commentThread'],_0xf147fe),_0x3d8188=new Ce(_0x416328,_0x3d0d98,_0xf147fe,_0x57604d),_0x16e2dc=_0x3d0d98['getAllAdjacentSuggestions']()['filter'](_0x1c8d53=>_0x1c8d53['isInContent']);_0xf147fe['descriptionParts']=_0x416328['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16e2dc),this['_suggestionToController']['set'](_0x3d0d98,_0x3d8188),this['_viewToController']['set'](_0xf147fe,_0x3d8188),_0x4b1e6=_0x1e9c5b['createAnnotation']({'view':_0x3443b2,'target':()=>{const _0x303889=[],_0x391b3d=_0x3d0d98['getAllAdjacentSuggestions']()['filter'](_0x15a451=>_0x15a451['isInContent']);for(const _0x98bb10 of _0x391b3d)_0x303889['push'](..._0x98bb10['getMarkers']());return _0x2f806e(_0x416328['editing'],_0x303889);},'type':()=>'suggestion-'+_0x3d8188['view']['type']}),_0xdd824f['_bindAnnotationToEditors'](_0xf147fe,_0x4b1e6),_0x1e9c5b['add'](_0x4b1e6),_0x289dac['registerAnnotation'](_0x4b1e6);}['_destroyController'](_0x2c8a2d){const _0x46403b=this['editor']['plugins']['get']('CommentsRepository'),_0x36d9f7=this['editor']['plugins']['get']('Annotations'),_0x4b1226=this['_suggestionToController']['get'](_0x2c8a2d),_0x1faa30=_0x4b1226['view'],_0x4eb56e=_0x36d9f7['getByInnerView'](_0x1faa30);_0x46403b['_unbindEditors'](_0x1faa30),_0x4eb56e&&_0x36d9f7['remove'](_0x4eb56e),this['_suggestionToController']['delete'](_0x2c8a2d),this['_viewToController']['delete'](_0x1faa30),_0x4b1226['destroy']();}['_updateController'](_0x15e131){if(!_0x15e131['isInContent']||!this['_suggestionToController']['has'](_0x15e131))return;const _0x27a73c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cf8b9=this['_suggestionToController']['get'](_0x15e131),_0xacf300=_0x15e131['getAllAdjacentSuggestions']();_0x5cf8b9['view']['descriptionParts']=_0x27a73c['descriptionFactory']['getDescriptions'](_0xacf300);}['destroy'](){for(const _0x96bfe of this['_suggestionToController']['keys']())this['_destroyController'](_0x96bfe);for(const _0x100ab9 of this['_annotationViews']['values']())_0x100ab9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x442d2c){return'model'in _0x442d2c;}class k extends _0x5b5ba2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x37a2bc){this['editor']['plugins']['get'](p)['adapter']=_0x37a2bc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x12730e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x12730e);}['getSuggestions']({skipNotAttached:_0xc5d186=!0x1,toJSON:_0x3ef2e9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xc5d186,'toJSON':_0x3ef2e9});}['getSuggestion'](_0x457ef0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x457ef0);}}const w=['Pagination'];class T extends _0x5b5ba2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x286940=this['editor'];if(_0x286940['config']['define']('trackChangesData.editorCreator',_0x3fc135=>{const _0x42e1f3=_0x286940['model']['document']['getRootNames']()['reduce']((_0x731c7,_0x8c2b58)=>(_0x731c7[_0x8c2b58]='',_0x731c7),{});return _0x286940['constructor']['create'](_0x42e1f3,_0x3fc135);}),'function'!=typeof _0x286940['config']['get']('trackChangesData')['editorCreator'])throw new _0x19cdbc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x54e20e){return N(this['editor'],!0x0,_0x54e20e);}['getDataWithDiscardedSuggestions'](_0x487c4d){return N(this['editor'],!0x1,_0x487c4d);}}class D extends _0x5b5ba2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e2887){function _0x2373e0(_0x3a8a31){return _0x3a8a31['map'](_0x18632e=>String['fromCharCode'](_0x18632e))['join']('');}super(_0x3e2887),this['result']='end',_0x3e2887[_0x2373e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2373e0([0x76,0x69,0x65,0x77])][_0x2373e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2373e0([0x61,0x75,0x74,0x6f]),_0x3e2887[_0x2373e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2373e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2373e0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2373e0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2373e0([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 Fe(_0x22014e){return void 0x0!==_0x22014e['getRootsAttributes'];}async function N(_0x504a9d,_0x2a5fc1,_0x3850ec){const _0x4f28ab=_0x1f7218(_0x504a9d,w);_0x4f28ab['plugins']['push'](p,D),_0x4f28ab['rootsAttributes']=Fe(_0x504a9d)?_0x504a9d['getRootsAttributes']():void 0x0;const _0x550ecf=document['createDocumentFragment'](),_0x20702d=_0x504a9d['config']['get']('trackChangesData')['editorCreator'],_0x1b6c81=await _0x20702d(_0x4f28ab,()=>function(_0x42f1c9){const _0x4c9a27=document['createElement']('div');return _0x42f1c9['appendChild'](_0x4c9a27),_0x4c9a27;}(_0x550ecf));!function(_0x1b7347,_0x286cfa){const _0x5561b9=_0x1b7347['model']['document']['getRootNames']()['reduce']((_0x175b66,_0x387683)=>(_0x175b66[_0x387683]=_0x1b7347['data']['get']({'rootName':_0x387683}),_0x175b66),{}),_0x896809=_0x1b7347['plugins']['get']('Users')['users']['map'](_0x5f5df4=>({'id':_0x5f5df4['id'],'name':_0x5f5df4['name']})),_0x284beb=_0x1b7347['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23f416=_0x1b7347['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ac814=_0x286cfa['plugins']['get']('Users'),_0x1a3586=_0x286cfa['plugins']['get']('TrackChangesEditing'),_0x51c9bd=_0x286cfa['plugins']['get']('CommentsRepository');for(const _0xda9405 of _0x51c9bd['getCommentThreads']())_0xda9405['remove']();for(const _0xd5925c of _0x896809)_0x4ac814['getUser'](_0xd5925c['id'])||_0x4ac814['addUser'](_0xd5925c);_0x4ac814['me']||_0x4ac814['useAnonymousUser']();for(const _0x111996 of _0x23f416)_0x51c9bd['addCommentThread'](_0x111996);for(const _0x16e330 of _0x284beb)_0x1a3586['addSuggestionData'](_0x16e330);_0x286cfa['data']['set'](_0x5561b9);}(_0x504a9d,_0x1b6c81),_0x1b6c81['execute'](_0x2a5fc1?'acceptAllSuggestions':'discardAllSuggestions');const _0x49218b=Fe(_0x1b6c81)?_0x1b6c81['getFullData'](_0x3850ec):_0x1b6c81['data']['get'](_0x3850ec);return await _0x1b6c81['destroy'](),_0x49218b;}class Me extends _0x8ebe32{['options'];constructor(_0x16299e,_0x4f5f49){super(_0x16299e),this['options']=_0x4f5f49,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'](_0x162170,_0x41abca){if(!this['element'])return;const _0xece9d2=[];for(const [_0x249ee3,_0x471617]of _0x162170){const _0x26526b=document['createElement']('div');_0x26526b['setAttribute']('data-ck-root-name',_0x249ee3),_0x26526b['className']=_0x471617['classes']+'\x20ck-track-changes-preview__root-container',_0x26526b['innerHTML']=_0x471617['content'],_0xece9d2['push'](_0x26526b);}_0x41abca(this['element'],_0xece9d2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x2d888e){super(_0x2d888e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x56c86a=this['editor'],_0x200116=_0x56c86a['locale'],_0x526f40=_0x56c86a['plugins']['get']('Dialog');let _0x137cab;const _0x500ee7=function(_0x3933cf){const _0x3a2035={};if('editables'in _0x3933cf['ui']['view']){for(const [_0x163c7c,_0x10b013]of Object['entries'](_0x3933cf['ui']['view']['editables']))_0x3a2035[_0x163c7c]=_0x10b013['element'];}else _0x3a2035[_0x3933cf['model']['document']['getRootNames']()[0x0]]=_0x3933cf['ui']['view']['editable']['element'];return _0x3a2035;}(_0x56c86a),_0x41ee50=function(_0x5a8dce){let _0x286cb2=0x0;for(const _0x4bb8bb of Object['values'](_0x5a8dce))_0x286cb2=Math['max'](_0x286cb2,_0x4bb8bb['getBoundingClientRect']()['width']);let _0x4a62ca=0x0;for(const _0x56e231 of Object['values'](_0x5a8dce))_0x4a62ca+=_0x56e231['getBoundingClientRect']()['height'];const _0x2c7f15=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1d949b=Math['min'](_0x4a62ca,_0x2c7f15);return{'width':_0x286cb2,'height':_0x1d949b};}(_0x500ee7);_0x526f40['show']({'id':'finalContentPreview','title':o(_0x200116,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x200116,{'dialogRects':_0x41ee50}),'onHide':()=>{_0x137cab['detachFromDom']();},'onShow':()=>{_0x56c86a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x54f554=>{const _0x276ea4=this['_standarizeRootsData'](_0x54f554,_0x56c86a,_0x500ee7);_0x526f40['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x276ea4,_0x56c86a['config']['get']('trackChanges.preview.renderFunction'));}),_0x137cab=new _0x3ae499(_0x200116,[_0x526f40['view']]),_0x137cab['attachToDom'](),_0x137cab['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x56c86a['once']('destroy',()=>{_0x137cab['detachFromDom']();});const _0x38abb0=_0x526f40['view']['headerView']['class'];_0x526f40['view']['headerView']['class']=_0x38abb0?_0x38abb0+'\x20ck-reset_all':'ck-reset_all',_0x526f40['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x526f40['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5318b8=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5a052a=_0x5318b8['previewMode'],_0x4ed82e={};if('$labels'===_0x5a052a){for(const _0x49f116 of _0x5318b8['getMergeFieldsIds']())_0x4ed82e[_0x49f116]=_0x5318b8['getLabel'](_0x49f116)||_0x49f116;}else{const _0x53edb9='$defaultValues'===_0x5a052a?_0x5318b8['getDefaultValues']():_0x5318b8['getDataSetValues'](_0x5a052a,!0x0);for(const _0x3ec534 of Object['entries'](_0x53edb9)){const [_0x2493ce,_0x62565d]=_0x3ec534;_0x4ed82e[_0x2493ce]=null!==_0x62565d?_0x62565d:_0x5318b8['getLabel'](_0x2493ce)||_0x2493ce;}}return{'mergeFieldsData':_0x4ed82e};}['_standarizeRootsData'](_0x46cedb,_0x53a80d,_0x40a34b){let _0x3f751c;if('string'==typeof _0x46cedb){const _0x4222a6=_0x53a80d['model']['document']['getRootNames']()[0x0];_0x3f751c={[_0x4222a6]:_0x46cedb};}else _0x3f751c=_0x46cedb;const _0x339967=this['_fixMediaEmbeds'](_0x3f751c,_0x53a80d),_0x3e6084=function(_0x4a1352,_0x5bc145){for(const [_0x27d05e,_0x23a46d]of _0x4a1352)_0x23a46d['classes']=_0x5bc145[_0x27d05e]['classList']['value']['replace']('ck-focused','');return _0x4a1352;}(this['_sortRoots'](_0x53a80d)['reduce']((_0x48181f,_0x49d9eb)=>(_0x48181f['push']([_0x49d9eb,{'content':_0x339967[_0x49d9eb],'classes':''}]),_0x48181f),[]),_0x40a34b);return _0x3e6084;}['_fixMediaEmbeds'](_0x34ebd3,_0x1e8d8d){if(!_0x1e8d8d['plugins']['has']('MediaEmbedEditing'))return _0x34ebd3;const _0x56d2a6=_0x1e8d8d['plugins']['get']('MediaEmbedEditing');for(const [_0x23658c,_0x3c5eef]of Object['entries'](_0x34ebd3)){const _0x2d3835=document['createElement']('div');_0x2d3835['innerHTML']=_0x3c5eef,(_0x2d3835['querySelectorAll']('figure.media')['forEach'](_0x52b9e1=>{const _0x3e84b4=_0x52b9e1['querySelector']('oembed');if(_0x3e84b4){const _0x5dedb2=_0x3e84b4['getAttribute']('url');if(_0x5dedb2){const _0x1ecdf5=_0x56d2a6['registry']['getMediaViewElement'](new _0x2c0f3d(_0x1e8d8d['editing']['view']['document']),_0x5dedb2,{'elementName':'','renderForEditingView':!0x0}),_0x3f8437=document['createElement']('div');_0x3f8437['classList']['add']('ck-media__wrapper'),_0x1ecdf5['render'](_0x3f8437,_0x1e8d8d['editing']['view']['domConverter']),_0x3e84b4['replaceWith'](_0x3f8437);}}}),_0x34ebd3[_0x23658c]=_0x2d3835['innerHTML']);}return _0x34ebd3;}['_sortRoots'](_0x48fe0d){if(!function(_0x2b614c){return void 0x0!==_0x2b614c['getRootsAttributes'];}(_0x48fe0d))return _0x48fe0d['model']['document']['getRootNames']();const _0x5b539a=[],_0x139ecf=new Map();for(const _0x40e4b2 of _0x48fe0d['model']['document']['getRootNames']()){const _0x3349f3=_0x48fe0d['editing']['view']['getDomRoot'](_0x40e4b2)['getClientRects']()['item'](0x0);_0x5b539a['push'](_0x40e4b2),_0x139ecf['set'](_0x40e4b2,_0x3349f3);}return _0x5b539a['sort']((_0x4c8e6c,_0x5ebbb3)=>{const _0xd686c9=_0x139ecf['get'](_0x4c8e6c),_0x15c329=_0x139ecf['get'](_0x5ebbb3);return _0xd686c9['y']-_0x15c329['y']||_0xd686c9['x']-_0x15c329['x'];}),_0x5b539a;}}class te extends _0x5b5ba2{static get['requires'](){return[T,_0x4d3e51];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41cb73){super(_0x41cb73),_0x41cb73['commands']['add']('previewFinalContent',new re(this['editor'])),_0x41cb73['config']['define']('trackChanges.preview.renderFunction',(_0x287965,_0x39fa65)=>{for(const _0xea67e0 of _0x39fa65)_0x287965['appendChild'](_0xea67e0);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0x19139a,PendingActions as _0x23c5a5,icons as _0xd3e014}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4b8a78,ObservableMixin as _0x31ae16,uid as _0x9dfd99,priorities as _0x21c58e,insertToPriorityArray as _0x2ee370,logWarning as _0x4e87ec,getEnvKeystrokeText as _0x138418,FocusTracker as _0x354893,KeystrokeHandler as _0x512675,Collection as _0x1fe6ff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x835c9,View as _0x4ae36d,ViewCollection as _0x1b37d8,FocusCycler as _0x52f914,ViewModel as _0x5a8dca,createDropdown as _0x1f4f35,SplitButtonView as _0x189f1b,addListToDropdown as _0x531e12,MenuBarMenuView as _0x37cb0a,MenuBarMenuListView as _0x573625,ListSeparatorView as _0x1514a5,MenuBarMenuListItemView as _0x1e2a62,MenuBarMenuListItemButtonView as _0x31b057,BodyCollection as _0x4a00e9,Dialog as _0xa0e1cf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x58d0e8,hashObject as _0x228b3d,surroundingMarkersDetector as _0x2553b8,FOCUS_ANNOTATION_KEYSTROKE as _0xc171a8,AriaDescriptionView as _0x5788bf,setupThreadKeyboardNavigation as _0x1545ac,trimHtml as _0x7bd87b,UserView as _0x16719a,LateFocusButtonView as _0x179be5,getDateTimeFormatter as _0x567e53,getAllMarkersDomElementsSorted as _0x2490e6,sanitizeEditorConfig as _0x48e676}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x42e1e6,LiveRange as _0x45a705,LivePosition as _0xb39e04,DowncastWriter as _0x3855f4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x25eecb,toWidget as _0x402457}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x18e497,set as _0x1dfdee,isEqual as _0x551fb5,unset as _0x524164,omit as Vt}from'lodash-es';import{Delete as _0x2d9bf9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x48a721,ShiftEnter as _0x7be3b9}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x2ee84a,_0x43320d){super(_0x2ee84a),this['_enabledCommands']=_0x43320d,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 _0x276e44 of this['editor']['commands']['commands']())_0x276e44['affectsData']&&!this['_enabledCommands']['has'](_0x276e44)&&_0x276e44['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x29f63c of this['editor']['commands']['commands']())_0x29f63c['affectsData']&&!this['_enabledCommands']['has'](_0x29f63c)&&_0x29f63c['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0xcee677,_0x552884){super(_0xcee677),this['_suggestions']=_0x552884,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d539d){const _0x20f00e=this['_suggestions']['get'](_0x2d539d);if(!_0x20f00e)throw new _0x4b8a78('track-changes-accept-suggestion-not-found',this);const _0xf169da=_0x20f00e['getRanges']();this['editor']['model']['canEditAt'](_0xf169da)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x20f00e);}}class R extends Yt{['_suggestions'];constructor(_0x1204ee,_0x7766a0){super(_0x1204ee),this['_suggestions']=_0x7766a0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x10cd09){const _0x59ca87=this['_suggestions']['get'](_0x10cd09);if(!_0x59ca87)throw new _0x4b8a78('track-changes-discard-suggestion-not-found',this);const _0x3c50f6=_0x59ca87['getRanges']();this['editor']['model']['canEditAt'](_0x3c50f6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x59ca87);}}function cs(_0x2be6f6,_0x4a537f){let _0x4ec765='';return _0x4ec765+=_0x2be6f6['split']('*')['map']((_0x4b7d13,_0x2e96c6)=>_0x2e96c6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4b7d13)+'</span>':nn(_0x4b7d13))['join'](''),_0x4a537f&&(_0x4ec765+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4a537f['value']+'\x22\x20title=\x22'+_0x4a537f['title']+'\x22></span>'),_0x4ec765;}function nn(_0x244b49){const _0xcf13b0=document['createElement']('span');return _0xcf13b0['innerText']=_0x244b49,_0xcf13b0['innerHTML'];}function Zt(_0x56c170){return _0x56c170['sort']((_0x1d5069,_0x5489de)=>'deletion'==_0x1d5069['type']&&'deletion'!=_0x5489de['type']?-0x1:'deletion'!=_0x1d5069['type']&&'deletion'==_0x5489de['type']?0x1:0x0);}function to(_0x38308b,_0x48db2d){let _0x13794d,_0x4cca5a=0x0;const _0x4c6783=[],_0x546aa4=_0x48db2d['schema'];for(;_0x4cca5a<_0x38308b['length'];){const _0x4fa0bd=_0x38308b[_0x4cca5a],_0x3e31d2=_0x38308b[_0x4cca5a+0x1];_0x13794d||(_0x13794d=_0x48db2d['createPositionBefore'](_0x4fa0bd)),on(_0x48db2d,_0x4fa0bd,_0x3e31d2)||(_0x4c6783['push'](_0x48db2d['createRange'](_0x13794d,_0x546aa4['isObject'](_0x4fa0bd)?_0x48db2d['createPositionAfter'](_0x4fa0bd):_0x48db2d['createPositionAt'](_0x4fa0bd,'end'))),_0x13794d=null),_0x4cca5a++;}return _0x4c6783;}function on(_0x3122eb,_0x4705ef,_0x2c1dc4){if(!_0x2c1dc4)return!0x1;const _0x20b523=_0x3122eb['createPositionAfter'](_0x4705ef),_0x110b54=_0x3122eb['createPositionBefore'](_0x2c1dc4);return _0x20b523['isTouching'](_0x110b54);}function ts(_0x1952d4,_0xf6f32,_0x253a46){for(;_0x253a46['length'];){const _0x504d4b=_0x253a46['splice'](0x0,0x64);_0x1952d4['change'](()=>{for(const _0xb37a2f of _0x504d4b)_0xb37a2f['isInContent']&&_0xf6f32['execute'](_0xb37a2f['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x4ba1a2,_0xa423a7,_0x4d8233){super(_0x4ba1a2),this['_command']=_0xa423a7,this['_suggestions']=_0x4d8233,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x117636=Array['from'](this['_suggestions']['values']())['some'](_0x46144e=>_0x46144e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x117636;}['execute'](){const _0x5a34c5=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x19b75d of _0x5a34c5){const _0x3c767a=_0x19b75d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3c767a))return;}ts(this['editor']['model'],this['_command'],_0x5a34c5);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x24defc,_0xf3ec01,_0x3e71bd){super(_0x24defc),this['_command']=_0xf3ec01,this['_suggestions']=_0x3e71bd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2175af=this['editor']['model']['document']['selection'],_0xc7ca76=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4ffe97,_0x51f684){const _0x59c69d=Array['from'](_0x4ffe97['getRanges']()),_0x49aeca=new Set();for(const _0x588230 of _0x51f684)if(_0x588230['isInContent']){for(const _0x5d6b89 of _0x59c69d)for(const _0x59653b of _0x588230['getRanges']())(_0x5d6b89['isIntersecting'](_0x59653b)||_0x4ffe97['isCollapsed']&&!_0x588230['isMultiRange']&&_0x588230['next']&&_0x59653b['end']['isTouching'](_0x5d6b89['start']))&&_0x49aeca['add'](_0x588230);}return _0x49aeca;}(_0x2175af,_0xc7ca76),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x521f92=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x524dfb of _0x521f92){const _0x518986=_0x524dfb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x518986))return;}ts(this['editor']['model'],this['_command'],_0x521f92);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x31ae16(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x139e2b,_0x476b9d){super(),this['id']=_0x476b9d['id'],this['type']=_0x476b9d['type'],this['subType']=_0x476b9d['subType']||null,this['author']=_0x476b9d['author'],this['creator']=_0x476b9d['creator']||_0x476b9d['author'],this['isExternal']=Boolean(_0x476b9d['attributes']&&_0x476b9d['attributes']['@external']),this['data']=null,this['_model']=_0x139e2b,this['_onAccept']=_0x476b9d['onAccept'],this['_onDiscard']=_0x476b9d['onDiscard'],this['_onAttributesChange']=_0x476b9d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x476b9d['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 _0xd5c159=this;for(;_0xd5c159['previous'];)_0xd5c159=_0xd5c159['previous'];return _0xd5c159;}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'](_0x218ad5){this['_markerNames']['add'](_0x218ad5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c8638=>this['_model']['markers']['get'](_0x1c8638))['filter'](_0x1f5a77=>_0x1f5a77);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1a5958=>{for(const _0x293a32 of this['getMarkers']())_0x1a5958['removeMarker'](_0x293a32);}),this['_markerNames']['clear']();}['removeMarker'](_0xc68066){this['_model']['change'](_0x558668=>{_0x558668['removeMarker'](_0xc68066);}),this['_markerNames']['delete'](_0xc68066);}['addRange'](_0x48189a){const _0x657365='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x657365),this['_model']['change'](_0x15d232=>{_0x15d232['addMarker'](_0x657365,{'range':_0x48189a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c18fd){for(const _0x3956b7 of this['getRanges']())if(_0x3956b7['isIntersecting'](_0x1c18fd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4b6d76=>_0x4b6d76['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x183a67,_0x2a626e)=>[..._0x183a67,..._0x2a626e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4ea20d=this['getRanges']();if(0x1!=_0x4ea20d['length'])return null;const _0x554e8c=_0x4ea20d[0x0],_0x37daa0=_0x554e8c['start']['nodeAfter'],_0x4af370=_0x554e8c['end']['nodeBefore'];return _0x37daa0 instanceof _0x42e1e6?_0x37daa0!=_0x4af370?null:_0x37daa0: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 _0x4c13a9=[];let _0x3d59de=this['head'];for(;_0x3d59de;)_0x4c13a9['push'](_0x3d59de),_0x3d59de=_0x3d59de['next'];return _0x4c13a9;}['setAttribute'](_0x4af163,_0xceac33){const _0x1661c8=_0x18e497(this['attributes']);_0x1dfdee(_0x1661c8,_0x4af163,_0xceac33),_0x551fb5(_0x1661c8,this['attributes'])||(this['attributes']=_0x1661c8,this['_onAttributesChange'](_0x1661c8));}['removeAttribute'](_0x22587f){const _0x72900f=_0x18e497(this['attributes']);_0x524164(_0x72900f,_0x22587f),_0x551fb5(_0x72900f,this['attributes'])||(this['attributes']=_0x72900f,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 _0x9dfd99()['substr'](0x1,0x5);}}function o(_0x35d043,_0x4e5d35,_0x5499bc){const _0x3c66a8=_0x35d043['t'],t=_0x35d043['t'];switch(_0x4e5d35){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',_0x5499bc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5499bc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5499bc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5499bc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5499bc);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',_0x5499bc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5499bc);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',_0x5499bc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5499bc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5499bc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5499bc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5499bc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5499bc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5499bc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5499bc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5499bc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5499bc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5499bc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5499bc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5499bc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5499bc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5499bc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5499bc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5499bc);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'},_0x5499bc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5499bc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5499bc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5499bc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5499bc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5499bc);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'},_0x5499bc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5499bc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5499bc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5499bc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5499bc);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'},_0x5499bc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5499bc);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'},_0x5499bc);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5499bc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5499bc);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'},_0x5499bc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5499bc);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'},_0x5499bc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5499bc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5499bc);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'},_0x5499bc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5499bc);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 _0x3c66a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5499bc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3c66a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5499bc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5499bc);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'},_0x5499bc);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'},_0x5499bc);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'},_0x5499bc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4e5d35;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x30bc1f,_0x12619f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x30bc1f,this['_locale']=_0x12619f;}['getDescriptions'](_0x164c19){const _0x28e7a4=[],_0x176535=new Set(),_0x54812d=new Set();for(let _0x51c268=0x0;_0x51c268<_0x164c19['length'];_0x51c268++){const _0x46068c=_0x164c19[_0x51c268];if(!_0x46068c['isInContent'])continue;const _0x64896c=this['_handleCustomCallbackDescription'](_0x46068c);if(_0x64896c){if(null!=_0x46068c['subType']){if(_0x176535['has'](_0x46068c['subType']))continue;_0x176535['add'](_0x46068c['subType']);}_0x28e7a4['push'](_0x64896c);}else{if('attribute'!=_0x46068c['type'])'insertion'!=_0x46068c['type']&&'deletion'!=_0x46068c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x28e7a4,_0x46068c,_0x164c19[_0x51c268+0x1]);else{const _0x2604dc=_0x46068c['data']['key'];if(_0x54812d['has'](_0x2604dc))continue;_0x54812d['add'](_0x46068c['data']['key']),_0x2604dc==m?this['_handleRenameSuggestionDescription'](_0x28e7a4,_0x46068c):this['_handleAttributeSuggestionDescription'](_0x28e7a4,_0x46068c);}}}return this['_resolveDescriptionItems'](_0x28e7a4);}['registerDescriptionCallback'](_0x2ea4ab){this['_customCallbacks']['push'](_0x2ea4ab);}['registerElementLabel'](_0x25e0ba,_0x2550d2,_0x202488=_0x21c58e['normal']){'function'==typeof _0x25e0ba?_0x2ee370(this['_itemLabelsCallbacks'],{'matchingCallback':_0x25e0ba,'label':_0x2550d2,'priority':_0x202488}):this['_itemLabels']['set'](_0x25e0ba,_0x2550d2);}['registerAttributeLabel'](_0x36fefa,_0x43e7cf){this['_attributeLabels']['set'](_0x36fefa,_0x43e7cf);}['getItemLabel'](_0x273312,_0x56f294=0x1){let _0x3f285e;for(const _0x5f457e of this['_itemLabelsCallbacks'])if(_0x5f457e['matchingCallback'](_0x273312)){_0x3f285e=_0x5f457e['label'];break;}return _0x3f285e||(_0x3f285e=this['_itemLabels']['get'](_0x273312['name'])),_0x3f285e?_0x3f285e(_0x56f294):0x1!==_0x56f294?_0x56f294+'\x20'+_0x273312['name']+'s':''+_0x273312['name'];}['_addDescriptionItems'](_0x4f11e3,_0x1631cc){const _0x4301e9=_0x1631cc['getFirstRange']()['getWalker'](),_0x3a47bd='insertion'==_0x1631cc['type']?'add':'remove';for(const _0x2788a2 of _0x4301e9){const _0x524294=_0x2788a2['item'],_0x3c8f69=_0x4f11e3[_0x4f11e3['length']-0x1];if(_0x524294['is']('$textProxy'))_0x3c8f69&&_0x3c8f69['type']['indexOf']('Container')>-0x1&&_0x4f11e3['pop'](),_0x3c8f69&&'text'==_0x3c8f69['type']?_0x3c8f69[_0x3a47bd]+=_0x524294['data']:_0x4f11e3['push']({'type':'text','add':'add'==_0x3a47bd?_0x524294['data']:'','remove':'remove'==_0x3a47bd?_0x524294['data']:''});else{if(this['_schema']['isObject'](_0x524294)){const _0x5d66d1=_0x524294;if(_0x3c8f69&&_0x3c8f69['type']['indexOf']('Container')>-0x1&&_0x4f11e3['pop'](),'elementEnd'==_0x2788a2['type'])continue;_0x3c8f69&&_0x3c8f69['type']==_0x3a47bd+'Object'&&_0x3c8f69['element']['name']==_0x5d66d1['name']?_0x3c8f69['quantity']++:_0x4f11e3['push']({'type':_0x3a47bd+'Object','element':_0x5d66d1,'quantity':0x1}),_0x4301e9['skip'](_0x2383b9=>!('elementEnd'==_0x2383b9['type']&&_0x2383b9['item']==_0x524294));}else{if(this['_schema']['checkChild'](_0x524294,'$text')||_0x524294['is']('element','softBreak')){const _0xab81a2=_0x524294;if('add'==_0x3a47bd&&'elementStart'==_0x2788a2['type']||'remove'==_0x3a47bd&&'elementEnd'==_0x2788a2['type'])continue;if(_0x3c8f69&&-0x1==_0x3c8f69['type']['indexOf']('Container')){'text'==_0x3c8f69['type']&&(_0x3c8f69[_0x3a47bd]+='\x0a');continue;}let _0x122417;if(_0x122417='add'==_0x3a47bd?_0xab81a2['nextSibling']&&!this['_schema']['isObject'](_0xab81a2['nextSibling'])?_0xab81a2['nextSibling']:null:_0xab81a2['previousSibling']&&!this['_schema']['isObject'](_0xab81a2['previousSibling'])?_0xab81a2['previousSibling']:null,_0xab81a2['isEmpty']||_0x122417&&_0x122417['isEmpty']){const _0xfcec76=_0x122417&&_0x122417['isEmpty']?_0x122417:_0xab81a2;_0x3c8f69&&_0x3c8f69['type']==_0x3a47bd+'EmptyContainer'&&_0x3c8f69['element']['name']==_0xfcec76['name']?_0x3c8f69['quantity']++:_0x4f11e3['push']({'type':_0x3a47bd+'EmptyContainer','element':_0xfcec76,'quantity':0x1});}else _0x4f11e3['push']({'type':_0x3a47bd+'Container','element':_0xab81a2});}}}}}['_resolveDescriptionItems'](_0x3bbd24){const _0x722dcb=this['_locale'],_0x1c19c2=[],_0x182276=[],_0x48b4b0=[];for(const _0x361213 of _0x3bbd24)switch(_0x361213['type']){case'text':if(_0x361213['add']=_0x361213['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x361213['remove']=_0x361213['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x361213['add']&&''!=_0x361213['remove']){_0x1c19c2['push']({'type':'replace','content':o(_0x722dcb,'REPLACE_TEXT',['\x22'+_0x361213['remove']+'\x22','\x22'+_0x361213['add']+'\x22'])});continue;}if(null!=_0x361213['add']['match'](/^ +$/)){_0x1c19c2['push']({'type':'insertion','content':o(_0x722dcb,'*Insert:*\x20%0',o(_0x722dcb,'ELEMENT_SPACE',_0x361213['add']['length']))});continue;}if(null!=_0x361213['remove']['match'](/^ +$/)){_0x1c19c2['push']({'type':'deletion','content':o(_0x722dcb,'*Remove:*\x20%0',o(_0x722dcb,'ELEMENT_SPACE',_0x361213['remove']['length']))});continue;}if(''!=_0x361213['add']){_0x1c19c2['push']({'type':'insertion','content':o(_0x722dcb,'*Insert:*\x20%0','\x22'+_0x361213['add']+'\x22')});continue;}_0x1c19c2['push']({'type':'deletion','content':o(_0x722dcb,'*Remove:*\x20%0','\x22'+_0x361213['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1c19c2['push']({'type':'insertion','content':o(_0x722dcb,'*Insert:*\x20%0',this['getItemLabel'](_0x361213['element'],_0x361213['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1c19c2['push']({'type':'deletion','content':o(_0x722dcb,'*Remove:*\x20%0',this['getItemLabel'](_0x361213['element'],_0x361213['quantity']))});continue;case'addContainer':_0x1c19c2['push']({'type':'insertion','content':o(_0x722dcb,'*Split:*\x20%0',this['getItemLabel'](_0x361213['element'],_0x361213['quantity']))});continue;case'removeContainer':_0x1c19c2['push']({'type':'deletion','content':o(_0x722dcb,'*Merge:*\x20%0',this['getItemLabel'](_0x361213['element'],_0x361213['quantity']))});continue;case'addFormat':_0x182276['push'](_0x361213['key']);continue;case'removeFormat':_0x48b4b0['push'](_0x361213['key']);continue;default:_0x1c19c2['push'](_0x361213);}if(_0x182276['length']){const _0x2e42bb=_0x182276['map'](_0x5af251=>this['_attributeLabels']['has'](_0x5af251)?this['_attributeLabels']['get'](_0x5af251):_0x5af251)['join'](',\x20');_0x1c19c2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2e42bb)});}if(_0x48b4b0['length']){const _0x4c1115=_0x48b4b0['map'](_0x3e2c09=>this['_attributeLabels']['has'](_0x3e2c09)?this['_attributeLabels']['get'](_0x3e2c09):_0x3e2c09)['join'](',\x20');_0x1c19c2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c1115)});}return _0x1c19c2;}['_handleCustomCallbackDescription'](_0x4527e1){for(const _0x1a6953 of this['_customCallbacks']){const _0x19eab2=_0x1a6953(_0x4527e1);if(_0x19eab2&&'type'in _0x19eab2)return _0x19eab2;}}['_handleAttributeSuggestionDescription'](_0x3852ac,_0x1bae72){const _0x4d4ed6=_0x1bae72['data'],_0x2a7749=void 0x0===_0x4d4ed6['newValue']?'removeFormat':'addFormat';_0x3852ac['push']({'type':_0x2a7749,'key':_0x4d4ed6['key']});}['_handleRenameSuggestionDescription'](_0x539d95,_0x1e7ac2){_0x539d95['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1e7ac2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3c3573,_0x3c255f,_0x46bd88){if(this['_addDescriptionItems'](_0x3c3573,_0x3c255f),_0x46bd88&&_0x46bd88['getFirstRange']()&&!_0x3c255f['getFirstRange']()['end']['isEqual'](_0x46bd88['getFirstRange']()['start'])){const _0x624a21=_0x3c3573[_0x3c3573['length']-0x1],_0x2e0859='insertion'==_0x3c255f['type']?'add':'remove';_0x624a21&&'text'==_0x624a21['type']&&(_0x624a21[_0x2e0859]+='\x0a');}}}class U extends _0x19139a{['afterInit'](){const _0x21e76b=this['editor'],_0x19e597=_0x21e76b['plugins']['get']('TrackChangesEditing');_0x21e76b['commands']['get']('showAIAssistant')&&_0x19e597['enableCommand']('showAIAssistant');}}class V extends _0x19139a{['afterInit'](){const _0x3c6005=this['editor'],_0x183cd8=_0x3c6005['locale'];if(!_0x3c6005['plugins']['has']('AlignmentEditing'))return;const _0x544785=_0x3c6005['plugins']['get']('TrackChangesEditing');_0x544785['enableDefaultAttributesIntegration']('alignment'),_0x544785['registerBlockAttribute']('alignment'),_0x544785['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x183cd8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b739d=this['editor'],_0x3c466e=_0x3b739d['locale'];_0x3b739d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24a7f9=>{if('formatBlock'!=_0x24a7f9['type'])return;const {data:_0x280103}=_0x24a7f9;if(_0x280103&&'alignment'==_0x280103['commandName']){const _0x41340f=_0x280103['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3c466e,'*Format:*\x20%0',function(_0x48ece2){switch(_0x48ece2){case'left':return o(_0x3c466e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3c466e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3c466e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3c466e,'FORMAT_JUSTIFY_TEXT');}}(_0x41340f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x19139a{['afterInit'](){const _0xec48e9=this['editor'],_0x583959=_0xec48e9['plugins']['get']('TrackChangesEditing'),_0x221973=_0xec48e9['locale'];for(const _0x32a277 of ti){if(!_0xec48e9['plugins']['has'](_0x32a277))continue;const _0x104197=_0x32a277['slice'](0x0,-0x7)['toLowerCase'](),_0x49a022='FORMAT_'+_0x104197['toUpperCase']();_0x583959['enableDefaultAttributesIntegration'](_0x104197),_0x583959['registerInlineAttribute'](_0x104197),_0x583959['descriptionFactory']['registerAttributeLabel'](_0x104197,o(_0x221973,_0x49a022));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12d230=this['editor'],_0x355ece=_0x12d230['locale'],_0x562810=_0x12d230['plugins']['get']('TrackChangesEditing');function _0x3c55c4(_0x23cc0b,_0x5d097f){_0x562810['descriptionFactory']['registerDescriptionCallback'](_0x5ce217=>{if('formatInline'!=_0x5ce217['type'])return;const {data:_0x308720}=_0x5ce217;return _0x308720&&_0x308720['commandName']===_0x23cc0b?_0x308720['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x355ece,'*Format:*\x20%0',_0x5d097f)}:{'type':'format','content':o(_0x355ece,'*Remove\x20format:*\x20%0',_0x5d097f)}:void 0x0;});}_0x3c55c4('bold',o(_0x355ece,'FORMAT_BOLD')),_0x3c55c4('italic',o(_0x355ece,'FORMAT_ITALIC')),_0x3c55c4('underline',o(_0x355ece,'FORMAT_UNDERLINE')),_0x3c55c4('code',o(_0x355ece,'FORMAT_CODE')),_0x3c55c4('strikethrough',o(_0x355ece,'FORMAT_STRIKETHROUGH')),_0x3c55c4('subscript',o(_0x355ece,'FORMAT_SUBSCRIPT')),_0x3c55c4('superscript',o(_0x355ece,'FORMAT_SUPERSCRIPT'));}}class F extends _0x19139a{['afterInit'](){const _0x4e788a=this['editor'],_0x364e7b=_0x4e788a['locale'];if(!_0x4e788a['plugins']['has']('BlockQuoteEditing'))return;const _0x2e4f2c=_0x4e788a['plugins']['get']('TrackChangesEditing'),_0x3343db=this['editor']['commands']['get']('blockQuote');_0x2e4f2c['enableCommand']('blockQuote',(_0x2bf357,_0x6b638e={})=>{const _0x3621a9=this['editor']['model']['document']['selection'],_0x21fa7a=_0x6b638e&&void 0x0!==_0x6b638e['forceValue']?_0x6b638e['forceValue']:!_0x3343db['value'];let _0x5f0a5b=[];if(_0x21fa7a){const _0x7f03af=Array['from'](_0x3621a9['getSelectedBlocks']())['filter'](_0x432623=>oo(_0x432623)||function(_0x5e7800,_0x4356b2){const _0xb1a6b=_0x4356b2['checkChild'](_0x5e7800['parent'],'blockQuote'),_0x118fed=_0x4356b2['checkChild'](['$root','blockQuote'],_0x5e7800);return _0xb1a6b&&_0x118fed;}(_0x432623,this['editor']['model']['schema']));_0x5f0a5b=to(_0x7f03af,_0x4e788a['model']);}else{const _0x53d23f=Array['from'](_0x3621a9['getSelectedBlocks']())['filter'](_0x12042a=>oo(_0x12042a));_0x5f0a5b=to(_0x53d23f,_0x4e788a['model']);}_0x4e788a['model']['change'](()=>{for(const _0x582668 of _0x5f0a5b)_0x2e4f2c['markBlockFormat'](_0x582668,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x21fa7a}]});});}),_0x2e4f2c['descriptionFactory']['registerDescriptionCallback'](_0x4a37e2=>{const {data:_0x54654d}=_0x4a37e2;if(_0x54654d&&'blockQuote'==_0x54654d['commandName']){const _0x2bcde4=o(_0x364e7b,'ELEMENT_BLOCK_QUOTE');return _0x54654d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x364e7b,'*Set\x20format:*\x20%0',_0x2bcde4)}:{'type':'format','content':o(_0x364e7b,'*Remove\x20format:*\x20%0',_0x2bcde4)};}});}}function oo(_0x58fca1){return'blockQuote'==_0x58fca1['parent']['name'];}class L extends _0x19139a{['afterInit'](){const _0x285329=this['editor'],_0x140138=_0x285329['locale'],_0x5cde49=_0x285329['plugins']['get']('TrackChangesEditing');_0x285329['plugins']['has']('BookmarkEditing')&&(_0x5cde49['enableCommand']('insertBookmark'),_0x5cde49['enableDefaultAttributesIntegration']('updateBookmark'),_0x5cde49['registerBlockAttribute']('bookmarkId'),_0x5cde49['descriptionFactory']['registerDescriptionCallback'](_0x20d2a8=>{if('insertion'!=_0x20d2a8['type']&&'deletion'!=_0x20d2a8['type']&&'attribute'!=_0x20d2a8['type'])return;const _0x39c2a7=_0x20d2a8['getContainedElement']();if(null==_0x39c2a7)return;if(!_0x39c2a7['is']('element','bookmark'))return;const _0x4a19e4=_0x39c2a7['getAttribute']('bookmarkId');if('insertion'==_0x20d2a8['type'])return{'type':'insertion','content':o(_0x140138,'*Insert:*\x20%0','\x22'+_0x4a19e4+'\x22\x20'+o(_0x140138,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20d2a8['type'])return{'type':'deletion','content':o(_0x140138,'*Remove:*\x20%0','\x22'+_0x4a19e4+'\x22\x20'+o(_0x140138,'ELEMENT_BOOKMARK'))};const {data:_0x164b58}=_0x20d2a8;if(!_0x164b58||'bookmarkId'!=_0x164b58['key'])return;return{'type':'format','content':o(_0x140138,'*Set\x20bookmark:*\x20%0','\x22'+_0x164b58['newValue']+'\x22')};}));}}class J extends _0x19139a{['afterInit'](){const _0x33847b=this['editor'];_0x33847b['plugins']['has']('CaseChange')&&(_0x33847b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x33847b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x33847b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x19139a{['afterInit'](){const _0x355bfb=this['editor'];_0x355bfb['commands']['get']('ckbox')&&_0x355bfb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x19139a{['afterInit'](){const _0x5732a3=this['editor'];if(!_0x5732a3['plugins']['has']('CodeBlock'))return;const _0x2116eb=_0x5732a3['plugins']['get']('TrackChangesEditing'),_0x9a8cb=_0x5732a3['locale'],_0x2b8665=_0x5732a3['config']['get']('codeBlock')['languages'],_0x3f5b38=_0x5732a3['commands']['get']('codeBlock');_0x2116eb['enableCommand']('indentCodeBlock'),_0x2116eb['enableCommand']('outdentCodeBlock'),_0x2116eb['enableCommand']('codeBlock',(_0x4937ac,_0x36e08b={})=>{const _0x516052=_0x5732a3['model'],_0x1207b4=_0x5732a3['model']['document']['selection'],_0x37da08=_0x36e08b&&void 0x0!==_0x36e08b['forceValue']?_0x36e08b['forceValue']:!_0x3f5b38['value'];let _0x16adf3;_0x36e08b['language']||(_0x36e08b['language']=_0x2b8665[0x0]['language']),_0x16adf3=_0x37da08?Array['from'](_0x1207b4['getSelectedBlocks']())['filter'](_0x168e8f=>eo(_0x168e8f)||function(_0x5b56fd,_0x573e5e){if(_0x5b56fd['is']('rootElement')||_0x573e5e['isLimit'](_0x5b56fd))return!0x1;return _0x573e5e['checkChild'](_0x5b56fd['parent'],'codeBlock');}(_0x168e8f,_0x516052['schema'])):Array['from'](_0x1207b4['getSelectedBlocks']())['filter'](_0x70806a=>eo(_0x70806a));const _0x300139=to(_0x16adf3,_0x516052);_0x516052['change'](()=>{for(const _0x592066 of _0x300139)_0x2116eb['markBlockFormat'](_0x592066,{'commandName':'codeBlock','commandParams':[{..._0x36e08b,'forceValue':_0x37da08}],'formatGroupId':'blockName'});});}),(_0x2116eb['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e6e01=>o(_0x9a8cb,'ELEMENT_CODE_BLOCK',_0x1e6e01)),_0x2116eb['descriptionFactory']['registerDescriptionCallback'](_0x53d798=>{if('formatBlock'!=_0x53d798['type'])return;const _0x17fbe6=_0x9a8cb['t'],{data:_0x4f1954}=_0x53d798;if(!_0x4f1954||'codeBlock'!=_0x4f1954['commandName'])return;const _0x4d2bb6=_0x4f1954['commandParams'][0x0]['language'],_0x260b64=_0x17fbe6(_0x2b8665['find'](_0x4edab7=>_0x4edab7['language']===_0x4d2bb6)['label'])['toLowerCase']();return _0x4f1954['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9a8cb,'*Set\x20format:*\x20%0',o(_0x9a8cb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x260b64+')')}:{'type':'format','content':o(_0x9a8cb,'*Remove\x20format:*\x20%0',o(_0x9a8cb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x57d171){return'codeBlock'==_0x57d171['name'];}class z extends _0x19139a{['afterInit'](){const _0x4ee278=this['editor'];if(!_0x4ee278['plugins']['has']('CommentsEditing'))return;_0x4ee278['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x54fde3,_0x4e0954,_0xbb89a6){const _0x59b8fe=[];for(const _0x3608b1 of _0x4e0954['getItems']())_0x3608b1['hasAttribute'](_0x54fde3)&&_0x59b8fe['push'](_0xbb89a6['createRangeOn'](_0x3608b1));return _0x59b8fe;}function De(_0x116694,_0x1314b3,{showActiveMarker:_0x39b06a=!0x0}={}){const _0xdf0c82=_0x116694['plugins']['get']('TrackChangesEditing');return(_0x1d5007,_0x42486f,_0x3463f6)=>{if(!_0x3463f6['consumable']['test'](_0x42486f['markerRange'],_0x1d5007['name']))return;const _0x4edb3f=_0x42486f['markerRange']['getWalker'](),_0x2f2fd0=_0x42486f['markerRange']['start'],_0x5d6116=_0x116694['model']['schema'];let _0x41327a=null,_0x466dcc=null,_0x25cba3=!0x1,_0x2995b6=!0x1;for(const _0x37e5af of _0x4edb3f){const _0x189b36=_0x37e5af['item'];_0x25cba3=_0x25cba3||_0x5d6116['isContent'](_0x189b36);const _0x122a88=_0x3463f6['mapper']['toViewElement'](_0x189b36);if(_0x122a88&&_0x122a88['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37e5af['type']&&(_0x5d6116['isBlock'](_0x189b36)&&!_0x5d6116['isLimit'](_0x189b36)&&(_0x189b36['nextSibling']||_0x2f2fd0['isAtEnd']?_0x41327a&&_0x41327a['parent']==_0x189b36||(_0x41327a=_0x189b36,_0x1d43d3(_0x37e5af['previousPosition']),_0x2995b6=!0x0):_0x466dcc=_0x466dcc||_0x37e5af['previousPosition']));}function _0x1d43d3(_0x1471ab){const {authorId:_0x3d1b38}=_0xdf0c82['_splitMarkerName'](_0x42486f['markerName']),_0xeb6b93=_0x3463f6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1314b3,'data-author-id':_0x3d1b38}),_0x48b68b=_0x3463f6['mapper']['toViewPosition'](_0x1471ab);_0x39b06a&&_0xdf0c82['activeMarkers']['includes'](_0x42486f['markerName'])&&_0x3463f6['writer']['addClass']('ck-suggestion-marker--active',_0xeb6b93),_0x3463f6['writer']['insert'](_0x48b68b,_0xeb6b93),_0x3463f6['mapper']['bindElementToMarker'](_0xeb6b93,_0x42486f['markerName']);}_0x25cba3||_0x2995b6||!_0x466dcc||_0x1d43d3(_0x466dcc);};}class K extends _0x19139a{static get['requires'](){return[_0x2d9bf9];}['init'](){const _0xe02e26=this['editor'],_0x11dc23=_0xe02e26['plugins']['get']('TrackChangesEditing');_0x11dc23['enableCommand']('delete');const _0x80bad7=_0xe02e26['commands']['get']('deleteForward');_0x11dc23['enableCommand']('deleteForward',(_0x30a54e,_0x1225ec={})=>{const _0x4e32d2=_0xe02e26['model']['createSelection'](_0xe02e26['model']['document']['selection']);_0x4e32d2['isCollapsed']&&_0xe02e26['model']['modifySelection'](_0x4e32d2,{'direction':'forward','unit':_0x1225ec['unit']});const _0x2fa93f=_0x4e32d2['getFirstRange'](),_0x3638e2=_0x45a705['fromRange'](_0x2fa93f);let _0x367227;_0x30a54e(_0x1225ec),_0x367227='$graveyard'==_0x3638e2['root']['rootName']?_0xe02e26['model']['createRange'](_0x2fa93f['start']):_0xe02e26['model']['createRange'](_0x3638e2['start'],_0x3638e2['end']),_0x3638e2['detach'](),_0xe02e26['model']['enqueueChange'](_0x80bad7['buffer']['batch'],_0x16a40e=>{_0x80bad7['buffer']['lock'](),_0x16a40e['setSelection'](_0x16a40e['createRange'](_0x367227['end'])),_0x80bad7['buffer']['unlock']();});}),_0xe02e26['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xe02e26,'merge'),{'priority':'high'}),_0xe02e26['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x47c5e5,_0x4aaf0f,_0x1a157b)=>{_0x1a157b['options']['showSuggestionHighlights']&&De(_0xe02e26,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x47c5e5,_0x4aaf0f,_0x1a157b);},{'priority':'high'}),_0xe02e26['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x158634,_0x577284,_0x4cecb1)=>{const _0x49f9d9=_0x4cecb1['mapper']['markerNameToElements'](_0x577284['markerName']);if(_0x49f9d9){for(const _0x450165 of _0x49f9d9)_0x450165['is']('uiElement')&&(_0x4cecb1['mapper']['unbindElementFromMarkerName'](_0x450165,_0x577284['markerName']),_0x4cecb1['writer']['remove'](_0x450165));}},{'priority':'high'});}}class W extends _0x19139a{['afterInit'](){const _0xa609da=this['editor'];if(!_0xa609da['plugins']['has']('ListEditing'))return;const _0x47b6fe=_0xa609da['locale'],_0x2ba0b2=_0xa609da['plugins']['get']('TrackChangesEditing'),_0x5c1444=_0xa609da['plugins']['has']('TodoListEditing'),_0x2f7c4e=!!_0xa609da['config']['get']('list.multiBlock');function _0x536fc1(_0x327959){return{'type':'format','content':''+o(_0x47b6fe,'*Set\x20format:*\x20%0',_0x327959)};}function _0x3785b9(_0x577623){return{'type':'format','content':''+o(_0x47b6fe,'*Remove\x20format:*\x20%0',_0x577623)};}_0x2ba0b2['enableDefaultAttributesIntegration']('numberedList'),_0x2ba0b2['enableDefaultAttributesIntegration']('bulletedList'),_0x2ba0b2['enableDefaultAttributesIntegration']('customNumberedList'),_0x2ba0b2['enableDefaultAttributesIntegration']('customBulletedList'),_0x2ba0b2['enableDefaultAttributesIntegration']('indentList'),_0x2ba0b2['enableDefaultAttributesIntegration']('outdentList'),_0x2ba0b2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2ba0b2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2ba0b2['registerBlockAttribute']('listItemId'),_0x2ba0b2['registerBlockAttribute']('listType'),_0x2ba0b2['registerBlockAttribute']('listIndent'),_0x2f7c4e&&(_0x2ba0b2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2ba0b2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5c1444&&(_0x2ba0b2['enableDefaultAttributesIntegration']('todoList'),_0x2ba0b2['enableDefaultAttributesIntegration']('checkTodoList'),_0x2ba0b2['registerBlockAttribute']('todoListChecked'),_0x2ba0b2['descriptionFactory']['registerDescriptionCallback'](_0x4538c6=>{const {data:_0x313ad4}=_0x4538c6;if(_0x313ad4&&'todoListChecked'==_0x313ad4['key'])return{'type':'format','content':_0x313ad4['newValue']?o(_0x47b6fe,'*Check\x20item*'):o(_0x47b6fe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1883d9=>{if(_0x1883d9['batch']['isUndo'])return!0x1;let _0x3255ed=!0x1;const _0x24f3da=_0x2ba0b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16785b=>'todoListChecked'===_0x2ba0b2['_getAttributeKey'](_0x16785b));for(const _0x539c93 of _0x24f3da){'todo'!=_0x539c93['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2ba0b2['_findSuggestions'](_0x539c93['getFirstRange'](),'attribute')['find'](_0x21e57=>'listType'===_0x2ba0b2['_getAttributeKey'](_0x21e57['suggestion']))||(_0x1883d9['removeMarker'](_0x539c93['getFirstMarker']()),_0x3255ed=!0x0));}return _0x3255ed;})),_0x2ba0b2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x47b6fe,'FORMAT_INDENT'));const _0x4c8e35={'type':'format','content':''};_0x2ba0b2['descriptionFactory']['registerDescriptionCallback'](_0x17912e=>{const {data:_0x5384a8}=_0x17912e;if(!_0x5384a8||'listType'!=_0x5384a8['key'])return;let _0x27849f=_0x17912e['head'];for(;_0x27849f;){if(_0x27849f['data']&&(('listStyle'==_0x27849f['data']['key']||'listMarkerStyle'==_0x27849f['data']['key'])&&(_0x27849f['data']['newValue']&&'default'!=_0x27849f['data']['newValue']||'default'!=_0x27849f['data']['oldValue']&&!_0x5384a8['newValue'])||!_0x2f7c4e&&_0x27849f['data']['key']==m))return _0x4c8e35;_0x27849f=_0x27849f['next'];}if(null==_0x5384a8['newValue'])switch(_0x5384a8['oldValue']){case'bulleted':return _0x3785b9(o(_0x47b6fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3785b9(o(_0x47b6fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3785b9(o(_0x47b6fe,'ELEMENT_TODO_LIST'));}switch(_0x5384a8['newValue']){case'bulleted':return _0x536fc1(o(_0x47b6fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x536fc1(o(_0x47b6fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x536fc1(o(_0x47b6fe,'ELEMENT_TODO_LIST'));}}),_0x2ba0b2['descriptionFactory']['registerDescriptionCallback'](_0x55bcc4=>{const {data:_0x56e959}=_0x55bcc4;if(_0x56e959&&'listIndent'==_0x56e959['key'])return null==_0x56e959['newValue']||null==_0x56e959['oldValue']&&0x0==_0x56e959['newValue']?_0x4c8e35:void 0x0;}),_0x2ba0b2['descriptionFactory']['registerDescriptionCallback'](_0x56f19d=>{if('attribute'!=_0x56f19d['type'])return;const {data:_0x129e4c}=_0x56f19d;if(!_0x129e4c||'listItemId'!=_0x129e4c['key'])return;const _0xd154ac=Te(_0x56f19d);return'newValue'==_0xd154ac?{'type':'format','content':o(_0x47b6fe,'*Merge:*\x20list\x20item')}:'oldValue'==_0xd154ac?{'type':'format','content':o(_0x47b6fe,'*Split:*\x20list\x20item')}:_0x4c8e35;}),_0xa609da['model']['document']['registerPostFixer'](_0x1bb22d=>this['listItemIdFixer'](_0x1bb22d)),_0xa609da['model']['document']['registerPostFixer'](_0x159ee2=>this['noTrackChangesFixer'](_0x159ee2)),_0xa609da['model']['document']['on']('change:data',(_0x549ef6,_0x120898)=>{if(_0x120898['isUndo']||!_0x120898['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5c5368){if(_0x5c5368['batch']['isUndo']||!_0x5c5368['batch']['isLocal'])return!0x1;let _0x5a5db9=!0x1;const _0x429833=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13a670=>_0x13a670['data']&&'listItemId'==_0x13a670['data']['key'])['filter'](_0x2c8988=>_0x2c8988['data']['newValue']&&_0x2c8988['data']['oldValue']);for(const _0x1854ab of _0x429833)Te(_0x1854ab)||(_0x5c5368['removeMarker'](_0x1854ab['getFirstMarker']()),_0x5a5db9=!0x0);return _0x5a5db9;}['noTrackChangesFixer'](_0x35e31e){if(_0x35e31e['batch']['isUndo']||!_0x35e31e['batch']['isLocal'])return!0x1;const _0x361b9f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x361b9f['trackChangesCommand']['value'])return!0x1;let _0x31e8fa=!0x1;const _0x4df170=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x447bfc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3414b7=>'attribute'==_0x3414b7['type'])['filter'](_0x29296d=>_0x4df170['includes'](_0x29296d['attributeKey']));if(0x0==_0x447bfc['length'])return _0x31e8fa;for(const _0x478a05 of _0x447bfc){const _0x18d8ac=_0x361b9f['_findSuggestions'](_0x478a05['range'],'attribute')['filter'](_0x8a6f3b=>!_0x8a6f3b['meta']['isNextTo'])['map'](_0x152afd=>_0x152afd['suggestion'])['filter'](_0x5e8044=>{const _0x5d9e91=_0x361b9f['_getAttributeKey'](_0x5e8044);return _0x4df170['includes'](_0x5d9e91);});if(_0x18d8ac['length']){for(const _0x4e99df of _0x18d8ac)_0x35e31e['removeMarker'](_0x4e99df['getFirstMarker']());_0x31e8fa=!0x0;}}return _0x31e8fa;}['assureChains'](){const _0x4f6d58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540e11=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3562d3;const _0x42cf4f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4da005=>{if(_0x4da005['data']['oldRange']||!_0x4da005['data']['newRange'])return null;if(!_0x4da005['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x59f480}=_0x4f6d58['_splitMarkerName'](_0x4da005['name']);if(!_0x4f6d58['hasSuggestion'](_0x59f480))return null;const _0x27a072=_0x4f6d58['getSuggestion'](_0x59f480);return _0x540e11['includes'](_0x27a072['data']['key']);})['map'](_0xbf74f1=>{const {id:_0x3a7050}=_0x4f6d58['_splitMarkerName'](_0xbf74f1['name']),_0x3a4110=_0x4f6d58['getSuggestion'](_0x3a7050);return _0x3562d3=_0x3a4110['attributes']['groupId'],_0x3a4110['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x42cf4f['size'])return;const _0x621166=_0x4f6d58['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x570ba2=>'attribute'==_0x570ba2['type']&&_0x570ba2['data']&&_0x540e11['includes'](_0x570ba2['data']['key'])&&_0x570ba2['attributes']['groupId']!=_0x3562d3)['map'](_0xf1e9aa=>({'listItem':_0xf1e9aa['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf1e9aa['attributes']['groupId']})),_0x454971=new Set();for(const {groupId:_0x41eff2,listItem:_0x4acf7a}of _0x621166)_0x42cf4f['has'](_0x4acf7a)&&_0x454971['add'](_0x41eff2);for(const _0x2f69cf of _0x4f6d58['getSuggestions']())_0x454971['has'](_0x2f69cf['attributes']['groupId'])&&_0x2f69cf['setAttribute']('groupId',_0x3562d3);}['_supportLegacySuggestions'](){const _0x59f7dd=this['editor'],_0x2067d1=_0x59f7dd['locale'],_0x435ec2=_0x59f7dd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x435ec2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5ea325,_0x496259){const _0x3e4d59=[];for(let _0x5dbb3b of _0x5ea325)_0x5dbb3b['start']['nodeAfter']===_0x5dbb3b['end']['parent']&&(_0x5dbb3b=_0x59f7dd['model']['createRange'](_0x59f7dd['model']['createPositionAt'](_0x5dbb3b['start']['nodeAfter'],0x0))),_0x3e4d59['push'](_0x5dbb3b);_0x59f7dd['model']['change'](_0x41792e=>{const _0x51a690=_0x59f7dd['model']['document']['selection'],_0x4faa81=Array['from'](_0x51a690['getRanges']())['map'](_0x28dd44=>_0x45a705['fromRange'](_0x28dd44));_0x41792e['setSelection'](_0x3e4d59),_0x59f7dd['commands']['get'](_0x496259['commandName'])['refresh'](),_0x496259['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x59f7dd['execute'](_0x496259['commandName'],..._0x496259['commandParams']),_0x41792e['setSelection'](_0x4faa81);for(const _0x1b3f6e of _0x4faa81)_0x1b3f6e['detach']();});}),_0x435ec2['descriptionFactory']['registerElementLabel'](function(_0x4758d4){const _0x5d4ff9=!_0x59f7dd['model']['schema']['isObject'](_0x4758d4),_0x587552=_0x4758d4['previousSibling'],_0x26d56c=_0x4758d4['nextSibling'],_0x2a30dc=_0x4758d4['getAttribute']('listItemId'),_0x321fba=!_0x587552||_0x587552['getAttribute']('listItemId')!==_0x2a30dc,_0x596215=!_0x26d56c||_0x26d56c['getAttribute']('listItemId')!==_0x2a30dc;return _0x5d4ff9&&Boolean(_0x2a30dc)&&_0x321fba&&_0x596215;},_0x4217d6=>o(_0x2067d1,'ELEMENT_LIST_ITEM',_0x4217d6));}['_registerLegacyDescription'](){const _0x557f47=this['editor'],_0x3b32b1=_0x557f47['locale'];function _0x34491d(_0x5ecd8e){const _0x12c591=_0x557f47['commands']['get']('bulletedList')['value'],_0x27ce20=_0x557f47['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ecd8e?_0x12c591:_0x27ce20;}_0x557f47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1be2a8){if('formatBlock'!=_0x1be2a8['type'])return;const {data:_0x45e1f1}=_0x1be2a8;if(!_0x45e1f1)return;let _0x52534a,_0xfd88f2,_0x31fa48,_0x2381e9;switch(_0x45e1f1['commandName']){case'bulletedList':_0x31fa48=_0x45e1f1['commandParams'][0x0]['forceValue'],_0x2381e9=_0x34491d(_0x45e1f1['commandName']),_0x52534a=_0x31fa48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2381e9&&_0x557f47['config']['get']('list.multiBlock')||(_0x52534a='*Change\x20to:*\x20%0'),_0xfd88f2={'type':'format','content':o(_0x3b32b1,_0x52534a,o(_0x3b32b1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x31fa48=_0x45e1f1['commandParams'][0x0]['forceValue'],_0x2381e9=_0x34491d(_0x45e1f1['commandName']),_0x52534a=_0x31fa48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2381e9&&_0x557f47['config']['get']('list.multiBlock')||(_0x52534a='*Change\x20to:*\x20%0'),_0xfd88f2={'type':'format','content':o(_0x3b32b1,_0x52534a,o(_0x3b32b1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x52534a='*Indent:*\x20%0',_0xfd88f2={'type':'format','content':o(_0x3b32b1,_0x52534a,o(_0x3b32b1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x52534a=function(_0xf6d3fa){const _0x2bc801=_0xf6d3fa['getFirstRange']();let _0x23b7ef=_0x2bc801['start']['nodeAfter'];for(;_0x23b7ef&&_0x2bc801['containsItem'](_0x23b7ef);){if(_0x23b7ef['getAttribute']('listIndent')>0x0)return!0x1;_0x23b7ef=_0x23b7ef['nextSibling'];}return!0x0;}(_0x1be2a8)?o(_0x3b32b1,'*Format:*\x20remove\x20from\x20%0',o(_0x3b32b1,function(_0x4ddcd2){return'ELEMENT_'+_0x4ddcd2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1be2a8))):o(_0x3b32b1,'*Outdent:*\x20%0',o(_0x3b32b1,'ELEMENT_LIST_ITEM')),_0xfd88f2={'type':'format','content':_0x52534a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x45e1f1['multipleBlocks']&&(_0x52534a='*Merge:*\x20%0',_0xfd88f2={'type':'deletion','content':o(_0x3b32b1,_0x52534a,o(_0x3b32b1,'ELEMENT_LIST_ITEM'))});}return _0xfd88f2;});}}function Te(_0x282c94){let _0xd5da34=_0x282c94['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd5da34;){const _0x44ac4b=_0xd5da34['getAttribute']('listItemId');if(!_0x44ac4b)return!0x1;if(_0x44ac4b==_0x282c94['data']['newValue'])return'newValue';if(_0x44ac4b==_0x282c94['data']['oldValue'])return'oldValue';_0xd5da34=_0xd5da34['previousSibling'];}return!0x1;}class Se extends _0x19139a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x48dc8a=this['editor']['config']['get']('list.properties'),_0x4a7487=this['editor']['plugins']['get']('TrackChangesEditing');_0x48dc8a['styles']&&(_0x4a7487['enableDefaultAttributesIntegration']('listStyle'),_0x4a7487['registerBlockAttribute']('listStyle')),_0x48dc8a['reversed']&&(_0x4a7487['enableDefaultAttributesIntegration']('listReversed'),_0x4a7487['registerBlockAttribute']('listReversed')),_0x48dc8a['startIndex']&&(_0x4a7487['enableDefaultAttributesIntegration']('listStart'),_0x4a7487['registerBlockAttribute']('listStart'));const _0x2fc609={'type':'format','content':''};_0x4a7487['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b65f5=this['editor']['locale'];_0x4a7487['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b65f5,'FORMAT_LIST_REVERSED')),_0x4a7487['descriptionFactory']['registerDescriptionCallback'](_0x26ae5f=>{const {data:_0x254aea}=_0x26ae5f;if(_0x254aea&&'listReversed'==_0x254aea['key'])return null==_0x254aea['newValue']||0x0==_0x254aea['newValue']&&null==_0x254aea['oldValue']?_0x2fc609:void 0x0;}),_0x4a7487['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b65f5,'FORMAT_LIST_START')),_0x4a7487['descriptionFactory']['registerDescriptionCallback'](_0x497a75=>{const {data:_0xdd4952}=_0x497a75;if(_0xdd4952&&'listStart'==_0xdd4952['key'])return null==_0xdd4952['newValue']||0x1==_0xdd4952['newValue']&&null==_0xdd4952['oldValue']?_0x2fc609:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x122444=>{if(_0x122444['batch']['isUndo'])return!0x1;let _0x1853b8=!0x1;const _0x430879=_0x4a7487['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f5207=>{const _0x248488=_0x4a7487['_getAttributeKey'](_0x3f5207);return'listStart'==_0x248488||'listReversed'==_0x248488;});for(const _0x48bb83 of _0x430879){const _0x5e2f55=_0x48bb83['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5e2f55||'customNumbered'==_0x5e2f55)continue;_0x4a7487['_findSuggestions'](_0x48bb83['getFirstRange'](),'attribute')['find'](_0xd17666=>'listType'==_0x4a7487['_getAttributeKey'](_0xd17666['suggestion']))||(_0x122444['removeMarker'](_0x48bb83['getFirstMarker']()),_0x1853b8=!0x0);}return _0x1853b8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4bf3c2){const _0xb441ae=this['editor']['locale'],{data:_0x364ba2}=_0x4bf3c2,_0xcdcfa0={'type':'format','content':''};if(!_0x364ba2||'listStyle'!=_0x364ba2['key'])return;if(!_0x364ba2['oldValue'])return'default'==_0x364ba2['newValue']?_0xcdcfa0:{'type':'format','content':''+o(_0xb441ae,'*Set\x20format:*\x20%0',o(_0xb441ae,this['_getTranslationKeyForListStyle'](_0x364ba2['newValue'])))};if(!_0x364ba2['newValue']){if('default'==_0x364ba2['oldValue'])return _0xcdcfa0;let _0x280cd5=_0x4bf3c2['head'];for(;_0x280cd5;){if(_0x280cd5['data']&&'listType'==_0x280cd5['data']['key']&&_0x280cd5['data']['newValue'])return _0xcdcfa0;_0x280cd5=_0x280cd5['next'];}return{'type':'format','content':''+o(_0xb441ae,'*Remove\x20format:*\x20%0',o(_0xb441ae,this['_getTranslationKeyForListStyle'](_0x364ba2['oldValue'])))};}if('default'!=_0x364ba2['newValue'])return{'type':'format','content':''+o(_0xb441ae,'*Set\x20format:*\x20%0',o(_0xb441ae,this['_getTranslationKeyForListStyle'](_0x364ba2['newValue'])))};let _0x33ba3b=_0x4bf3c2['head'];for(;_0x33ba3b;){if(_0x33ba3b['data']&&'listType'==_0x33ba3b['data']['key']&&_0x33ba3b['data']['newValue']&&_0x33ba3b['data']['oldValue'])return _0xcdcfa0;_0x33ba3b=_0x33ba3b['next'];}return{'type':'format','content':o(_0xb441ae,'*Set\x20format:*\x20%0',o(_0xb441ae,'ELEMENT_'+_0x4bf3c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x36e3e3=this['editor'],_0x573e12=_0x36e3e3['locale'];_0x36e3e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4404d4=>{if('formatBlock'!=_0x4404d4['type'])return;const {data:_0x117f1b}=_0x4404d4;if(!_0x117f1b)return;let _0x3553e6,_0x24eae6;switch(_0x117f1b['commandName']){case'listStyle':_0x3553e6='*Change\x20to:*\x20%0',_0x24eae6={'type':'format','content':o(_0x573e12,_0x3553e6,o(_0x573e12,this['_getTranslationKeyForListStyle'](_0x117f1b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3553e6=_0x117f1b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24eae6={'type':'format','content':o(_0x573e12,_0x3553e6)};break;case'listStart':_0x3553e6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24eae6={'type':'format','content':o(_0x573e12,_0x3553e6,_0x117f1b['commandParams'][0x0]['startIndex'])};}return _0x24eae6;});}['_getTranslationKeyForListStyle'](_0x26c6a2){return'ELEMENT_'+function(_0x414e1c){if(_e['includes'](_0x414e1c))return'bulleted';if(Re['includes'](_0x414e1c))return'numbered';return null;}(_0x26c6a2)['toUpperCase']()+'_LIST_'+_0x26c6a2['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x19139a{['afterInit'](){const _0x5c02bd=this['editor'];_0x5c02bd['commands']['get']('emoji')&&_0x5c02bd['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x19139a{static get['requires'](){return[_0x48a721];}['init'](){const _0x49316c=this['editor'],_0x3eed25=_0x49316c['plugins']['get']('TrackChangesEditing'),_0x28fcba=_0x49316c['commands']['get']('enter');_0x3eed25['enableCommand']('enter',()=>{_0x49316c['model']['change'](_0x2b872c=>{const _0x25af1e=_0x49316c['model']['document']['selection'],_0x4ffaa8=_0x25af1e['getFirstPosition'](),_0x164aab=_0x45a705['fromRange'](_0x25af1e['getFirstRange']());if(_0x28fcba['enterBlock'](_0x2b872c)){const _0x58f8de=_0x49316c['model']['createPositionAt'](_0x4ffaa8['parent']['nextSibling'],0x0),_0x53c9ad=_0x2b872c['createRange'](_0x4ffaa8,_0x58f8de);_0x3eed25['markInsertion'](_0x53c9ad);}else _0x2b872c['setSelection'](_0x2b872c['createRange'](_0x164aab['end']));_0x164aab['detach'](),_0x28fcba['fire']('afterExecute',{'writer':_0x2b872c});});}),_0x49316c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x49316c,'split'),{'priority':'high'}),_0x49316c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x30ca66,_0x5dddee,_0x5b4d99)=>{const _0x5a0c9b=_0x5b4d99['mapper']['markerNameToElements'](_0x5dddee['markerName']);if(_0x5a0c9b){for(const _0x1a9a06 of _0x5a0c9b)_0x1a9a06['hasClass']('ck-suggestion-marker-split')&&(_0x5b4d99['mapper']['unbindElementFromMarkerName'](_0x1a9a06,_0x5dddee['markerName']),_0x5b4d99['writer']['remove'](_0x1a9a06));}},{'priority':'high'}),_0x49316c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b27a3,_0x4c8c89,_0xea82b3)=>{_0xea82b3['options']['showSuggestionHighlights']&&De(_0x49316c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4b27a3,_0x4c8c89,_0xea82b3);},{'priority':'high'});}}class Z extends _0x19139a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e7633=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e7633['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e7633['enableCommand']('findNext'),_0x3e7633['enableCommand']('findPrevious'),_0x3e7633['enableCommand']('replace'),_0x3e7633['enableCommand']('replaceAll');}['handleFindCommand'](_0x1b9801,_0x4e0a84,_0xcc1ed7={}){const _0x46b150=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1b9801(_0x4b916f=>{let _0x256516=('string'==typeof _0x4e0a84?_0x46b150['findByTextCallback'](_0x4e0a84,_0xcc1ed7):_0x4e0a84)(_0x4b916f);Array['isArray'](_0x256516)&&(_0x256516={'results':_0x256516,'searchText':'string'==typeof _0x4e0a84?_0x4e0a84:''});const _0x41b574=_0x256516['results']['filter'](_0x366285=>!0x1===this['_isInDeletionRange'](_0x366285,_0x4b916f['item']));return{..._0x256516,'results':_0x41b574};},_0xcc1ed7);}['_isInDeletionRange'](_0xd69a7c,_0x142a88){const _0x13403e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x142a88,_0xd69a7c['start']),this['editor']['model']['createPositionAt'](_0x142a88,_0xd69a7c['end']));for(const _0x6c789f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x13403e['getIntersection'](_0x6c789f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x19139a{['afterInit'](){const _0x46a388=this['editor']['locale'],_0x686989=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x37d1b3,commandName:_0x15e368}of ro)this['editor']['plugins']['has'](_0x37d1b3)&&(_0x686989['enableDefaultAttributesIntegration'](_0x15e368),_0x686989['registerInlineAttribute'](_0x15e368));_0x686989['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x46a388,'FORMAT_FONT_SIZE')),_0x686989['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x46a388,'FORMAT_FONT_FAMILY')),_0x686989['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x46a388,'FORMAT_FONT_COLOR')),_0x686989['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x46a388,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e6fef=this['editor'],_0x445637=_0x5e6fef['locale'];_0x5e6fef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46688f=>{const _0x24f758=_0x445637['t'];if('formatInline'!=_0x46688f['type'])return;const {data:_0x3536fe}=_0x46688f;if(null!=_0x3536fe){if('fontSize'==_0x3536fe['commandName']){const _0x257128=_0x3536fe['commandParams'][0x0]['value'];if(_0x257128){const _0x1c674d=_0x24f758(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x342f37=>_0x342f37['model']==_0x257128)['title'])['toLowerCase']();return{'type':'format','content':o(_0x445637,'*Set\x20font\x20size:*\x20%0',_0x1c674d)};}return{'type':'format','content':o(_0x445637,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3536fe['commandName']){const _0x3b3922=_0x3536fe['commandParams'][0x0]['value'];return _0x3b3922?{'type':'format','content':o(_0x445637,'*Set\x20font\x20family:*\x20%0',_0x3b3922)}:{'type':'format','content':o(_0x445637,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3536fe['commandName']){const _0x4468a0=_0x3536fe['commandParams'][0x0]['value'];if(_0x4468a0){const _0x1e3141=_0x835c9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2d0849=>_0x2d0849['model']==_0x4468a0);let _0x12a282=_0x4468a0,_0x3ae110='';return _0x1e3141&&(_0x12a282=_0x1e3141['label'],_0x3ae110=_0x24f758(_0x12a282)['toLowerCase']()),{'type':'format','content':o(_0x445637,'*Set\x20font\x20color:*\x20%0',_0x3ae110)['trim'](),'color':{'value':_0x4468a0,'title':_0x3ae110||_0x12a282}};}return{'type':'format','content':o(_0x445637,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3536fe['commandName']){const _0x1df0cc=_0x3536fe['commandParams'][0x0]['value'];if(_0x1df0cc){const _0x468068=_0x835c9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xeadfd1=>_0xeadfd1['model']==_0x1df0cc);let _0x1ea2ab=_0x1df0cc,_0x39b23c='';return _0x468068&&(_0x1ea2ab=_0x468068['label'],_0x39b23c=_0x24f758(_0x1ea2ab)['toLowerCase']()),{'type':'format','content':o(_0x445637,'*Set\x20font\x20background\x20color:*\x20%0',_0x39b23c)['trim'](),'color':{'value':_0x1df0cc,'title':_0x39b23c||_0x1ea2ab}};}return{'type':'format','content':o(_0x445637,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x19139a{['afterInit'](){const _0x272bed=this['editor'],_0x4b4d63=_0x272bed['plugins']['get']('TrackChangesEditing'),_0x45f316=_0x272bed['commands']['get']('copyFormat'),_0x12660c=_0x272bed['commands']['get']('pasteFormat');_0x45f316&&_0x12660c&&(_0x4b4d63['enableDefaultAttributesIntegration']('pasteFormat'),_0x4b4d63['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x583e56=this['editor'],_0x41fa9f=_0x583e56['locale'];_0x583e56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed455=>{if('formatBlock'!=_0x3ed455['type']&&'formatInline'!=_0x3ed455['type'])return;const {data:_0x1428c9}=_0x3ed455;if(_0x1428c9&&'pasteFormat'===_0x1428c9['commandName']){const _0x2bb28b=[],_0x5f420f=_0x1428c9['commandParams'][0x0];for(const [_0x2a937a,_0xd48f4b]of Object['entries'](_0x5f420f))_0x2bb28b['push'](so(_0x583e56,_0x2a937a,_0xd48f4b));return _0x2bb28b['length']?{'type':'format','content':o(_0x41fa9f,'*Set\x20format\x20to:*\x20%0',_0x2bb28b['join'](',\x20'))}:{'type':'format','content':o(_0x41fa9f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5105be,_0x24b269,_0x34d7f1){const _0x595eb7=_0x5105be['locale']['t'],_0x249701=_0x24b269['split'](/(?=[A-Z])/)['join']('\x20'),_0x323123=_0x595eb7(_0x249701['charAt'](0x0)['toUpperCase']()+_0x249701['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x34d7f1)return _0x323123;if('fontColor'===_0x24b269||'fontBackgroundColor'===_0x24b269){const _0x19915f=_0x835c9(_0x5105be['config']['get']('fontColor.colors'))['find'](_0x3c7a7a=>_0x3c7a7a['model']==_0x34d7f1);return _0x323123+'\x20('+(_0x19915f?_0x595eb7(_0x19915f['label'])['toLowerCase']():_0x34d7f1)+')';}if('fontSize'===_0x24b269&&isNaN(parseFloat(_0x34d7f1))){const _0x1997df=_0x5105be['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5105be['config']['get']('fontSize.options'))['find'](_0x173fd7=>_0x173fd7['model']==_0x34d7f1);return _0x323123+'\x20('+(_0x1997df?_0x595eb7(_0x1997df['title'])['toLowerCase']():_0x34d7f1)+')';}return _0x323123+'\x20('+_0x34d7f1+')';}class it extends _0x19139a{['_headingOptions'];['afterInit'](){const _0x1c0c02=this['editor'];if(!_0x1c0c02['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1c0c02['config']['get']('heading.options');const _0x128f83=_0x1c0c02['locale'],_0x58bffd=_0x1c0c02['plugins']['get']('TrackChangesEditing');_0x58bffd['enableDefaultAttributesIntegration']('heading');for(const _0x4813ff of this['_headingOptions'])'paragraph'!=_0x4813ff['model']&&_0x58bffd['descriptionFactory']['registerElementLabel'](_0x4813ff['model'],_0x52b725=>{const _0x5e7aa4=this['_getHeadingLevel'](_0x4813ff['model']);return null!==_0x5e7aa4?_0x1eb928(_0x52b725,_0x5e7aa4):_0x5e09b2(_0x52b725,_0x4813ff['title']);});function _0x1eb928(_0x2cd4e0,_0x2a0950){return o(_0x128f83,'ELEMENT_HEADING',[_0x2cd4e0,_0x2a0950]);}function _0x5e09b2(_0x48b273,_0x1108bd){return o(_0x128f83,'ELEMENT_HEADING_CUSTOM',[_0x48b273,_0x1108bd]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff8fc=this['editor'],_0x538291=_0x4ff8fc['locale'];function _0x2da32e(_0x1f1070,_0x305696){return o(_0x538291,'ELEMENT_HEADING_CUSTOM',[_0x1f1070,_0x305696]);}_0x4ff8fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x69c01e=>{if('formatBlock'!=_0x69c01e['type'])return;const {data:_0x219cd5}=_0x69c01e;if(_0x219cd5&&'heading'==_0x219cd5['commandName']){const _0x192830=_0x219cd5['commandParams'][0x0]['value'],_0x7b40c7=this['_getHeadingLevel'](_0x192830);if(null!==_0x7b40c7)return{'type':'format','content':o(_0x538291,'*Change\x20to:*\x20%0',(_0x4a8525=0x1,_0x19e120=_0x7b40c7,o(_0x538291,'ELEMENT_HEADING',[_0x4a8525,_0x19e120])))};const _0x326a6d=this['_headingOptions']['find'](_0x1bfb81=>_0x1bfb81['model']===_0x192830)['title'];return{'type':'format','content':o(_0x538291,'*Change\x20to:*\x20%0',_0x2da32e(0x1,_0x326a6d))};}var _0x4a8525,_0x19e120;});}['_getHeadingLevel'](_0x12c876){const _0x85a148=_0x12c876['match'](/^heading(\d+)/);if(_0x85a148)return _0x85a148[0x1];const _0x1a9525=this['_headingOptions']?.['find'](_0x56bd11=>_0x56bd11['model']==_0x12c876);if(_0x1a9525&&_0x1a9525['view']){const _0x1c02ec=_0x1a9525['view'],_0x35b1d4=(_0x1c02ec['name']??_0x1c02ec)['match'](/^h(\d+)/);if(_0x35b1d4)return _0x35b1d4[0x1];}return null;}}class et extends _0x19139a{['afterInit'](){const _0x2f2c3d=this['editor'];if(!_0x2f2c3d['plugins']['has']('HighlightEditing'))return;const _0x4d38a5=_0x2f2c3d['plugins']['get']('TrackChangesEditing'),_0x4a1a9d=_0x2f2c3d['locale'];_0x4d38a5['enableDefaultAttributesIntegration']('highlight'),_0x4d38a5['registerInlineAttribute']('highlight'),_0x4d38a5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4a1a9d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa663af=this['editor'],_0x390f03=_0xa663af['locale'];_0xa663af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24e8dc=>{if('formatInline'!=_0x24e8dc['type'])return;const {data:_0x3178a3}=_0x24e8dc;if(_0x3178a3&&'highlight'==_0x3178a3['commandName']){const _0x3a03cf=_0x390f03['t'],_0x4db4da=_0x3178a3['commandParams'][0x0]['value'];if(_0x4db4da){const _0x2bb313=_0xa663af['config']['get']('highlight.options')['find'](_0x5aef25=>_0x5aef25['model']==_0x4db4da),_0x3def7b=_0x3a03cf(_0x2bb313['title'])['toLowerCase']();return{'type':'format','content':o(_0x390f03,'*Set\x20highlight:*\x20%0',_0x3def7b),'color':{'value':_0x2bb313['color'],'title':_0x2bb313['title']}};}return{'type':'format','content':o(_0x390f03,'*Remove\x20highlight*',o(_0x390f03,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x19139a{['afterInit'](){const _0x4f4ec7=this['editor'];if(!_0x4f4ec7['plugins']['has']('HorizontalLineEditing'))return;_0x4f4ec7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50b557=_0x4f4ec7['plugins']['get']('TrackChangesEditing'),_0x1061a7=_0x4f4ec7['locale'];_0x50b557['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4a693d=>o(_0x1061a7,'ELEMENT_HORIZONTAL_LINE',_0x4a693d)),_0x4f4ec7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x31bb93,{writer:_0x2f4209,options:_0x1aaea9})=>{if(!_0x1aaea9['showSuggestionHighlights'])return null;const _0x4be920=_0x2f4209['createContainerElement']('div'),_0x4776fc=_0x2f4209['createEmptyElement']('hr');return _0x2f4209['addClass']('ck-horizontal-line',_0x4be920),_0x2f4209['insert'](_0x2f4209['createPositionAt'](_0x4be920,0x0),_0x4776fc),_0x4be920;},'converterPriority':'high'});}}class ot extends _0x19139a{['afterInit'](){const _0x3de909=this['editor'];if(!_0x3de909['plugins']['has']('HtmlEmbed'))return;const _0x2940be=_0x3de909['plugins']['get']('TrackChangesEditing'),_0x4e4cee=_0x3de909['locale'];_0x2940be['descriptionFactory']['registerElementLabel']('rawHtml',_0x3771de=>o(_0x4e4cee,'ELEMENT_HTML_EMBED',_0x3771de)),_0x2940be['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2940be['registerBlockAttribute']('value'),_0x2940be['descriptionFactory']['registerDescriptionCallback'](_0x310c06=>{if('attribute'!=_0x310c06['type'])return;const {data:_0x4905cc}=_0x310c06;if(_0x4905cc&&'value'==_0x4905cc['key']&&_0x310c06['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1c02fd=o(_0x4e4cee,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4e4cee,'*Change\x20%0\x20content*',_0x1c02fd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37281c=this['editor'],_0xbce073=_0x37281c['locale'];_0x37281c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a6287=>{if('formatBlock'!=_0x1a6287['type'])return;const {data:_0x23d393}=_0x1a6287;if(_0x23d393&&'htmlEmbed'==_0x23d393['commandName']){const _0x325a8c=o(_0xbce073,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xbce073,'*Change\x20%0\x20content*',_0x325a8c)};}});}}class rt extends _0x19139a{['afterInit'](){const _0x6ebc80=this['editor'];if(!_0x6ebc80['plugins']['has']('ImageEditing'))return;const _0x47be87=_0x6ebc80['plugins']['get']('TrackChangesEditing'),_0x2ffbce=_0x6ebc80['plugins']['get']('ImageUtils'),_0x16639a=_0x6ebc80['locale'];_0x47be87['enableCommand']('insertImage'),_0x47be87['descriptionFactory']['registerElementLabel']('imageBlock',_0x58fb75=>o(_0x16639a,'ELEMENT_IMAGE',_0x58fb75)),_0x47be87['descriptionFactory']['registerElementLabel']('imageInline',_0x3a45f3=>o(_0x16639a,'ELEMENT_INLINE_IMAGE',_0x3a45f3)),_0x47be87['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x16639a,'ELEMENT_CAPTION')),_0x6ebc80['plugins']['has']('ImageUploadEditing')&&_0x47be87['enableCommand']('uploadImage'),_0x6ebc80['plugins']['has']('ImageBlockEditing')&&_0x6ebc80['plugins']['has']('ImageInlineEditing')&&(_0x47be87['enableCommand']('imageTypeInline',(_0x375117,_0x177d90)=>{const _0x4af09d=_0x2ffbce['getClosestSelectedImageElement'](_0x6ebc80['model']['document']['selection']);_0x6ebc80['model']['change'](()=>{_0x47be87['markBlockFormat'](_0x4af09d,{'commandName':'imageTypeInline','commandParams':[_0x177d90]},[],'convertBlockImageToInline');});}),_0x47be87['enableCommand']('imageTypeBlock',(_0x2277ae,_0x48895b)=>{_0x6ebc80['model']['change'](_0x100e30=>{let _0x4b6eac=_0x2ffbce['getClosestSelectedImageElement'](_0x6ebc80['model']['document']['selection']),_0x1157f4=_0x100e30['createRangeOn'](_0x4b6eac);const _0x2fc6b2=_0xb39e04['fromPosition'](_0x1157f4['start'],'toPrevious'),_0x5c4931=_0xb39e04['fromPosition'](_0x1157f4['end'],'toNext');_0x47be87['forceDefaultExecution'](()=>_0x2277ae(_0x48895b)),_0x4b6eac=_0x2ffbce['getClosestSelectedImageElement'](_0x6ebc80['model']['document']['selection']),_0x1157f4=_0x100e30['createRangeOn'](_0x4b6eac);const _0x52da7e=_0x100e30['createRange'](_0x2fc6b2,_0x5c4931);_0x2fc6b2['detach'](),_0x5c4931['detach'](),_0x47be87['markBlockFormat'](_0x4b6eac,{'commandName':'imageTypeInline','commandParams':[_0x48895b]},[],'convertInlineImageToBlock'),_0x52da7e['start']['isBefore'](_0x1157f4['start'])&&_0x47be87['markInsertion'](_0x100e30['createRange'](_0x52da7e['start'],_0x1157f4['start']),'convertInlineImageToBlock'),_0x1157f4['end']['isBefore'](_0x52da7e['end'])&&_0x47be87['markInsertion'](_0x100e30['createRange'](_0x1157f4['end'],_0x52da7e['end']),'convertInlineImageToBlock');});}),_0x47be87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x47be87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x47be87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x47be87['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x47be87['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x47be87['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x29f9f0])=>{const _0x21eb1a=_0x47be87['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x45263f=_0x29f9f0['start'],_0x50340a=_0x29f9f0['end'];const _0x7f5696=_0x6ebc80['model']['schema']['getNearestSelectionRange'](_0x45263f,'backward'),_0x39877f=_0x6ebc80['model']['schema']['getNearestSelectionRange'](_0x50340a,'forward');_0x7f5696['isCollapsed']&&(_0x45263f=_0x7f5696['start']),_0x39877f['isCollapsed']&&(_0x50340a=_0x39877f['end']),_0x21eb1a([_0x6ebc80['model']['createRange'](_0x45263f,_0x50340a)]);}),_0x47be87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x47de8c),_0x47be87['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x47de8c)),_0x6ebc80['plugins']['has']('ImageCaptionEditing')&&(_0x47be87['enableCommand']('toggleImageCaption',(_0x4afbd2,_0x3631e4)=>{const _0x3e826a=_0x6ebc80['plugins']['get']('ImageCaptionUtils');let _0x39a590=_0x2ffbce['getClosestSelectedImageElement'](_0x6ebc80['model']['document']['selection']),_0x325dfb=_0x3e826a['getCaptionFromImageModelElement'](_0x39a590);_0x6ebc80['model']['change'](()=>{if(_0x325dfb)return void _0x47be87['markDeletion'](_0x6ebc80['model']['createRangeOn'](_0x325dfb));const _0x3e8ac7=_0x2ffbce['isBlockImage'](_0x39a590);_0x4afbd2(_0x3631e4),_0x39a590=_0x2ffbce['getClosestSelectedImageElement'](_0x6ebc80['model']['document']['selection']),_0x325dfb=_0x3e826a['getCaptionFromImageModelElement'](_0x39a590),_0x47be87['markInsertion'](_0x6ebc80['model']['createRangeOn'](_0x325dfb),_0x3e8ac7?null:'imageCaption');});}),_0x47be87['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x47de8c));const _0x399384=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d981b(_0x46fe44,_0x4512c4){const _0x3752b3=_0x399384['findIndex'](({type:_0x441754,subType:_0x117a0c})=>_0x46fe44['type']==_0x441754&&_0x46fe44['subType']==_0x117a0c),_0x3f9335=_0x399384['findIndex'](({type:_0xb13d9f,subType:_0x29009d})=>_0x4512c4['type']==_0xb13d9f&&_0x4512c4['subType']==_0x29009d);if(_0x3752b3<0x0||_0x3f9335<0x0)return!0x1;const _0x16e2d4=_0x46fe44['getFirstRange'](),_0x271650=_0x4512c4['getFirstRange']();if((0x0==_0x3752b3||0x1==_0x3752b3)&&0x2==_0x3f9335&&_0x16e2d4['isIntersecting'](_0x271650))return!0x0;if(0x2==_0x3752b3&&0x3==_0x3f9335){const _0x40f045=_0x47be87['_findSuggestions'](_0x16e2d4,'insertion')['filter'](({suggestion:_0x24cb49,meta:_0x2e43f7})=>_0x2e43f7['isOwn']&&'convertInlineImageToBlock'==_0x24cb49['subType']);if(_0x40f045['length']>0x1&&_0x271650['end']['isEqual'](_0x16e2d4['start']))return!0x0;if(0x1==_0x40f045['length']&&(_0x16e2d4['start']['isEqual'](_0x271650['end'])||_0x16e2d4['end']['isEqual'](_0x271650['start'])))return!0x0;}if(0x3==_0x3752b3&&0x3==_0x3f9335&&_0x16e2d4['start']['isBefore'](_0x271650['start'])){const _0x41724f=_0x16e2d4['end']['nodeAfter'],_0x541f08=_0x271650['start']['nodeBefore'];return _0x2ffbce['isBlockImage'](_0x41724f)&&_0x41724f===_0x541f08;}return!0x1;}function _0x47de8c(_0x491355,_0x5ef8c8){return _0x4d981b(_0x491355,_0x5ef8c8)?[_0x491355,_0x5ef8c8]:_0x4d981b(_0x5ef8c8,_0x491355)?[_0x5ef8c8,_0x491355]:null;}_0x6ebc80['plugins']['has']('ImageResize')&&(_0x47be87['enableDefaultAttributesIntegration']('resizeImage'),_0x47be87['registerBlockAttribute']('resizedWidth'),_0x47be87['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x16639a,'FORMAT_IMAGE_SIZE'))),_0x6ebc80['plugins']['has']('ImageTextAlternativeEditing')&&(_0x47be87['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x47be87['registerBlockAttribute']('alt')),_0x6ebc80['plugins']['has']('PictureEditing')&&(_0x47be87['registerBlockAttribute']('sources'),_0x47be87['descriptionFactory']['registerDescriptionCallback'](_0x36fc6a=>{if('attribute'!=_0x36fc6a['type'])return;const {data:_0x66af2f}=_0x36fc6a;return _0x66af2f&&'sources'==_0x66af2f['key']?{'type':'format','content':''}:void 0x0;})),_0x6ebc80['plugins']['has']('ImageSizeAttributes')&&(_0x47be87['registerBlockAttribute']('width'),_0x47be87['registerBlockAttribute']('height'),_0x47be87['descriptionFactory']['registerDescriptionCallback'](_0x3582e6=>{if('attribute'!=_0x3582e6['type'])return;const {data:_0x4760c4}=_0x3582e6;return!_0x4760c4||'width'!=_0x4760c4['key']&&'height'!=_0x4760c4['key']?void 0x0:{'type':'format','content':''};})),_0x47be87['descriptionFactory']['registerDescriptionCallback'](_0x5e5f0d=>{if(!!_0x399384['find'](({type:_0x31554e,subType:_0xe427a5})=>_0x5e5f0d['type']==_0x31554e&&_0x5e5f0d['subType']==_0xe427a5))return _0x5e5f0d['previous']?{}:void 0x0;}),_0x47be87['descriptionFactory']['registerDescriptionCallback'](_0x2e2d3d=>{if('insertion'==_0x2e2d3d['type']||'deletion'==_0x2e2d3d['type']){const _0x159e10=_0x2e2d3d['getContainedElement']();if(_0x159e10&&_0x159e10['is']('element','caption'))return{'type':'insertion'==_0x2e2d3d['type']?'addObject':'removeObject','element':_0x159e10,'quantity':0x1};}}),_0x47be87['descriptionFactory']['registerDescriptionCallback'](_0x94d0ba=>'formatBlock'==_0x94d0ba['type']&&'convertInlineImageToBlock'==_0x94d0ba['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x94d0ba['type']&&'convertBlockImageToInline'==_0x94d0ba['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x47be87['descriptionFactory']['registerDescriptionCallback'](_0x3f5d71=>{if('attribute'!=_0x3f5d71['type'])return;const {data:_0x538a43}=_0x3f5d71;if(!_0x538a43||'alt'!=_0x538a43['key'])return;const _0x5115fb=_0x538a43['newValue'];return _0x5115fb?{'type':'format','content':o(_0x16639a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5115fb+'\x22')}:{'type':'format','content':o(_0x16639a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47f5e1=this['editor'],_0x3f46b5=_0x47f5e1['locale'];_0x47f5e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeaddb0=>{if('formatBlock'!=_0xeaddb0['type']&&'formatInline'!=_0xeaddb0['type'])return;const {data:_0x25e51b}=_0xeaddb0;if(_0x25e51b){if('imageTextAlternative'==_0x25e51b['commandName']){const _0x792ce9=_0x25e51b['commandParams'][0x0]['newValue'];return _0x792ce9?{'type':'format','content':o(_0x3f46b5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x792ce9+'\x22')}:{'type':'format','content':o(_0x3f46b5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x25e51b['commandName']){const _0x32ee31=_0x25e51b['commandParams'][0x0]['width'];return _0x32ee31?{'type':'format','content':o(_0x3f46b5,'*Set\x20image\x20width:*\x20%0',_0x32ee31)}:{'type':'format','content':o(_0x3f46b5,'*Reset\x20image\x20width*')};}}});}}class at extends _0x19139a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4b436c=this['editor']['locale'],_0x4c7984=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c7984['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c7984['registerBlockAttribute']('src'),_0x4c7984['descriptionFactory']['registerDescriptionCallback'](_0x313b01=>{if('attribute'!=_0x313b01['type'])return;const {data:_0x388557}=_0x313b01;return _0x388557&&'src'==_0x388557['key']?_0x388557['newValue']&&_0x388557['oldValue']?{'type':'format','content':o(_0x4b436c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32517f=this['editor']['plugins']['get']('TrackChangesEditing');_0x32517f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x32517f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32517f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x32517f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aefed=this['editor'],_0x306dc0=_0x3aefed['locale'];_0x3aefed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e832f=>{if('formatBlock'!=_0x5e832f['type']&&'formatInline'!=_0x5e832f['type'])return;const {data:_0x15e5a1}=_0x5e832f;if(!_0x15e5a1||'replaceImageSource'!=_0x15e5a1['commandName'])return;return{'type':'format','content':o(_0x306dc0,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x19139a{['afterInit'](){const _0x182990=this['editor'];if(!_0x182990['plugins']['has']('ImageStyleEditing'))return;const _0x3b0662=_0x182990['plugins']['get']('TrackChangesEditing'),_0x2a99cb=_0x182990['plugins']['get']('ImageUtils'),_0x4602e3={};_0x3b0662['enableCommand']('imageStyle',(_0x16dda6,_0x670dd4)=>{const _0x1916f2=_0x182990['plugins']['get']('Users')['me'],_0x4d6e40=_0x182990['commands']['get']('imageStyle');let _0x2309d9=_0x2a99cb['getClosestSelectedImageElement'](_0x182990['model']['document']['selection']),_0x19c05c=_0x182990['model']['createRangeOn'](_0x2309d9),_0x17bbcc=_0x4d6e40['value'];if(_0x17bbcc==_0x670dd4['value'])return;const _0x4ff112={'commandName':'imageStyle','commandParams':[_0x670dd4],'formatGroupId':_0x9dfd99()};_0x182990['model']['change'](()=>{if(_0x3b0662['getSuggestions']()['filter'](_0xf340c1=>_0xf340c1['isInContent']&&_0x1916f2==_0xf340c1['author']&&('formatBlock'==_0xf340c1['type']||'formatInline'==_0xf340c1['type'])&&('imageStylePreApply'==_0xf340c1['subType']||'imageStylePostApply'==_0xf340c1['subType'])&&_0xf340c1['getFirstRange']()['isEqual'](_0x19c05c))['forEach'](_0xf8ddff=>_0x3b0662['discardSuggestion'](_0xf8ddff['head'])),_0x2309d9=_0x2a99cb['getClosestSelectedImageElement'](_0x182990['model']['document']['selection']),_0x19c05c=_0x182990['model']['createRangeOn'](_0x2309d9),_0x4d6e40['refresh'](),_0x182990['commands']['get']('imageTypeInline')['refresh'](),_0x182990['commands']['get']('imageTypeBlock')['refresh'](),_0x17bbcc=_0x4d6e40['value'],_0x17bbcc!=_0x670dd4['value'])return _0x2a99cb['isInlineImage'](_0x2309d9)&&_0x4d6e40['shouldConvertImageType'](_0x670dd4['value'],_0x2309d9)?(_0x16dda6({..._0x670dd4,'setImageSizes':!0x1}),_0x2309d9=_0x2a99cb['getClosestSelectedImageElement'](_0x182990['model']['document']['selection']),void _0x3b0662['markBlockFormat'](_0x2309d9,{..._0x4ff112,'commandReversedParams':[{'value':_0x17bbcc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2a99cb['isBlockImage'](_0x2309d9)?_0x3b0662['markBlockFormat'](_0x2309d9,_0x4ff112,[],'imageStylePostApply'):_0x3b0662['markInlineFormat'](_0x19c05c,_0x4ff112,'imageStylePostApply'));});});for(const _0x5f4668 of _0x182990['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4602e3[_0x5f4668['name']]=_0x5f4668['title']['toLowerCase']();_0x3b0662['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b0662['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b0662['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b0662['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5b0215])=>{_0x2a99cb['setImageNaturalSizeAttributes'](_0x5b0215['getContainedElement']());}),_0x3b0662['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x22dd2b,_0x30ee7d)=>{_0x3b0662['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x22dd2b,{'commandName':_0x30ee7d['commandName'],'commandParams':_0x30ee7d['commandReversedParams']});}),_0x3b0662['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xb68697,_0x190807){if(_0x4c3a8a(_0xb68697,_0x190807))return[_0xb68697,_0x190807];if(_0x4c3a8a(_0x190807,_0xb68697))return[_0x190807,_0xb68697];return null;});const _0x39e5c4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c3a8a(_0x1d7698,_0x4322cc){const _0x5339ef=_0x39e5c4['findIndex'](({type:_0x1567c1,subType:_0x54ef4c})=>_0x1d7698['type']==_0x1567c1&&_0x1d7698['subType']==_0x54ef4c),_0x53441c=_0x39e5c4['findIndex'](({type:_0x4694df,subType:_0x1db693})=>_0x4322cc['type']==_0x4694df&&_0x4322cc['subType']==_0x1db693);if(_0x5339ef<0x0||_0x53441c<0x0)return!0x1;const _0x177b6b=_0x1d7698['getFirstRange'](),_0x552ae9=_0x4322cc['getFirstRange']();if((0x0==_0x5339ef||0x1==_0x5339ef)&&0x2==_0x53441c&&_0x177b6b['isIntersecting'](_0x552ae9))return!0x0;if(0x2==_0x5339ef&&0x3==_0x53441c){const _0x580b8c=_0x3b0662['_findSuggestions'](_0x177b6b,'insertion')['filter'](({suggestion:_0x169c5f,meta:_0x1fac5f})=>_0x1fac5f['isOwn']&&'convertInlineImageToBlock'==_0x169c5f['subType']);if(_0x580b8c['length']>0x1&&_0x552ae9['end']['isEqual'](_0x177b6b['start']))return!0x0;if(0x1==_0x580b8c['length']&&(_0x177b6b['start']['isEqual'](_0x552ae9['end'])||_0x177b6b['end']['isEqual'](_0x552ae9['start'])))return!0x0;}if(0x3==_0x5339ef&&0x3==_0x53441c&&_0x177b6b['start']['isBefore'](_0x552ae9['start'])){const _0x987d54=_0x177b6b['end']['nodeAfter'],_0x31a57a=_0x552ae9['start']['nodeBefore'];return _0x2a99cb['isBlockImage'](_0x987d54)&&_0x987d54===_0x31a57a;}return!0x1;}_0x182990['model']['document']['registerPostFixer'](()=>{let _0x1985fa=!0x1;const _0x3bf009=Array['from'](_0x182990['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x250fe0,data:_0x19f925}of _0x3bf009){const {group:_0x410fc2,type:_0x48a68e,subType:_0x5cfdc9,id:_0x23bf7a}=_0x3b0662['_splitMarkerName'](_0x250fe0);if('suggestion'==_0x410fc2&&_0x3b0662['hasSuggestion'](_0x23bf7a)){if('formatBlock'==_0x48a68e&&('imageStylePreApply'==_0x5cfdc9||'imageStylePostApply'==_0x5cfdc9)){const _0x47e2c8=_0x3b0662['getSuggestion'](_0x23bf7a);if(_0x19f925['newRange']){const _0xd1960d=_0x47e2c8['getFirstRange']()['getContainedElement']();if(_0x2a99cb['isBlockImage'](_0xd1960d))continue;_0x3b0662['discardSuggestion'](_0x47e2c8),_0x1985fa=!0x0;}}if('insertion'==_0x48a68e&&'imageCaption'==_0x5cfdc9&&!_0x19f925['newRange']){const _0x5067e0=_0x3b0662['getSuggestion'](_0x23bf7a);_0x5067e0['next']&&_0x5067e0['next']['isInContent']&&(_0x3b0662['discardSuggestion'](_0x5067e0['next']),_0x1985fa=!0x0);}}}return _0x1985fa;}),this['_registerLegacyDescription'](_0x4602e3);}['_registerLegacyDescription'](_0x33100d){const _0x4e4383=this['editor'],_0x2ba29b=_0x4e4383['locale'];_0x4e4383['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xde15b0=>{if('formatBlock'!=_0xde15b0['type']&&'formatInline'!=_0xde15b0['type'])return;const {data:_0x5d34b0}=_0xde15b0;if(!_0x5d34b0||'imageStyle'!=_0x5d34b0['commandName'])return;const _0x962838=_0x5d34b0['commandParams'][0x0]['value'];return _0x1f5979('side'===_0x962838?o(_0x2ba29b,'FORMAT_SIDE_IMAGE'):_0x33100d[_0x962838]||_0x962838);function _0x1f5979(_0x34860d){return{'type':'format','content':o(_0x2ba29b,'*Format:*\x20%0',_0x34860d)};}});}}class ut extends _0x19139a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5a7155){super(_0x5a7155),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x296cb0=this['editor'],_0x2846b4=_0x296cb0['commands']['get']('importWord'),_0x267acb=_0x296cb0['commands']['get']('trackChanges');_0x2846b4&&(_0x2846b4['on']('execute',(_0x3558e8,[,_0x23705f])=>{this['_trackChangesValueDuringImport']=_0x267acb['value'],_0x23705f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2846b4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2846b4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x267acb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x296cb0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x44c9fe,_0x164c79){const {suggestions:_0x50e8cd}=_0x164c79,_0x4d6238=this['editor']['commands']['get']('trackChanges'),_0x20047a=_0x4d6238['value'];this['_trackChangesValueDuringImport']!==_0x20047a&&(_0x4d6238['execute'](),this['_trackChangesExecuted']=!0x0),_0x50e8cd&&_0x50e8cd['forEach'](({id:_0x8fbea0,type:_0x56a1bb,author:_0x456cf1,created_at:_0x4bfa40})=>{const _0x5bee18={'id':_0x8fbea0,'type':_0x56a1bb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x456cf1,'createdAt':_0x4bfa40?new Date(_0x4bfa40):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5bee18);});}}class ft extends _0x19139a{['afterInit'](){const _0xb5a975=this['editor'],_0x5d3cb9=_0xb5a975['plugins']['get']('TrackChangesEditing');if(_0xb5a975['plugins']['has']('IndentEditing')&&(_0x5d3cb9['enableCommand']('indent'),_0x5d3cb9['enableCommand']('outdent')),_0xb5a975['plugins']['has']('IndentBlock')){for(const _0x536668 of['indentBlock','outdentBlock'])_0x5d3cb9['enableDefaultAttributesIntegration'](_0x536668);}const _0x2d1670=_0xb5a975['locale'];_0x5d3cb9['registerBlockAttribute']('blockIndent'),_0x5d3cb9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2d1670,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450c58=this['editor'],_0x2fa37d=_0x450c58['locale'],_0xa14f97=_0x450c58['plugins']['get']('TrackChangesEditing');_0xa14f97['descriptionFactory']['registerDescriptionCallback'](_0xfe41ea=>{if('formatBlock'!=_0xfe41ea['type'])return;const {data:_0x2ac873}=_0xfe41ea;if(!_0x2ac873)return;if('indentBlock'!=_0x2ac873['commandName']&&'outdentBlock'!=_0x2ac873['commandName'])return;const _0x5ecab2=_0xfe41ea['getItems']()[0x0],_0x27e0f4=_0xa14f97['descriptionFactory']['getItemLabel'](_0x5ecab2);return'indentBlock'==_0x2ac873['commandName']?{'type':'format','content':o(_0x2fa37d,'*Indent:*\x20%0',_0x27e0f4)}:'outdentBlock'==_0x2ac873['commandName']?{'type':'format','content':o(_0x2fa37d,'*Outdent:*\x20%0',_0x27e0f4)}:void 0x0;});}}class ht extends _0x19139a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x19139a{['afterInit'](){const _0x4d83d5=this['editor'];if(!_0x4d83d5['plugins']['has']('LinkEditing'))return;const _0x3dc3d4=_0x4d83d5['plugins']['get']('TrackChangesEditing'),_0x392f5e=_0x4d83d5['commands']['get']('link');_0x3dc3d4['enableDefaultAttributesIntegration']('link'),_0x3dc3d4['enableDefaultAttributesIntegration']('unlink'),_0x3dc3d4['registerInlineAttribute']('linkHref');for(const _0x1cf98e of _0x392f5e['manualDecorators'])_0x3dc3d4['registerInlineAttribute'](_0x1cf98e['id']),_0x3dc3d4['descriptionFactory']['registerAttributeLabel'](_0x1cf98e['id'],'link\x20('+_0x1cf98e['label']['toLowerCase']()+')');_0x3dc3d4['descriptionFactory']['registerDescriptionCallback'](_0x5aeead=>{if('attribute'!=_0x5aeead['type'])return;const {data:_0x5f56d8}=_0x5aeead;if(!_0x5f56d8||'linkHref'!=_0x5f56d8['key'])return;const _0x52713a=_0x5f56d8['newValue'],_0x23c9c5=_0x4d83d5['locale'];return{'type':'format','content':null==_0x52713a?o(_0x23c9c5,'*Remove\x20link*'):o(_0x23c9c5,'*Set\x20link:*\x20%0','\x22'+_0x52713a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x92e166=this['editor'],_0x240eb4=_0x92e166['locale'];_0x92e166['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea5d2=>{if('formatInline'!=_0x5ea5d2['type'])return;const {data:_0x3dfccf}=_0x5ea5d2;if(_0x3dfccf){if('link'==_0x3dfccf['commandName']){const _0x3717d5=_0x3dfccf['commandParams'][0x0];return{'type':'format','content':o(_0x240eb4,'*Set\x20link:*\x20%0','\x22'+_0x3717d5+'\x22')};}return'unlink'==_0x3dfccf['commandName']?{'type':'format','content':o(_0x240eb4,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x19139a{['afterInit'](){const _0x1a9414=this['editor'],_0x5c2440=_0x1a9414['locale'];if(!_0x1a9414['plugins']['has']('LegacyListEditing'))return;const _0x1bea4b=_0x1a9414['plugins']['get']('TrackChangesEditing'),_0x224eba=_0x1a9414['plugins']['has']('LegacyTodoListEditing');function _0x1b6e34(_0x49b416){return()=>{const _0x42b52e=_0x1a9414['model']['document']['selection'],_0x2a55be=_0x1a9414['commands']['get'](_0x49b416);if(_0x2a55be['value'])return void _0x1a9414['execute']('paragraph',{});const _0x53643c=_0x49b416['slice'](0x0,-0x4),_0x302141=function(_0x124229,_0x34dc63,_0x544e69){let _0x38670b=Array['from'](_0x124229)['filter'](_0x39b9a9=>function(_0x3c266a,_0x111f2f){return _0x111f2f['checkChild'](_0x3c266a['parent'],'listItem')&&!_0x111f2f['isObject'](_0x3c266a);}(_0x39b9a9,_0x544e69));_0x38670b=_0x38670b['filter'](_0x117502=>!_0x117502['is']('element','listItem')||_0x117502['getAttribute']('listType')!=_0x34dc63);const _0x278dd2=new Set();for(const _0x373652 of _0x38670b)_0x373652['is']('element','listItem')?_0x278dd2['add'](Le(_0x373652)):_0x278dd2['add'](_0x373652);return Array['from'](_0x278dd2);}(_0x42b52e['getSelectedBlocks'](),_0x53643c,_0x1a9414['model']['schema']);_0x1a9414['model']['change'](()=>{for(const _0x47333d of _0x302141)_0x1bea4b['markBlockFormat'](_0x47333d,{'commandName':_0x49b416,'commandParams':[{'forceValue':!_0x2a55be['value']}],'formatGroupId':'blockName'},Ee(_0x47333d));});};}function _0x3e0ec8(_0x51c3a1){return()=>{const _0x51ff51=function(_0x59e78c){let _0x59a6e7=Array['from'](_0x59e78c);const _0x263821=_0x59a6e7['findIndex'](_0x1b0c18=>'listItem'!=_0x1b0c18['name']);return _0x263821>-0x1&&(_0x59a6e7=_0x59a6e7['slice'](0x0,_0x263821)),_0x59a6e7;}(_0x1a9414['model']['document']['selection']['getSelectedBlocks']()),_0xb020e0=_0x1a9414['model']['createRange'](_0x1a9414['model']['createPositionAt'](_0x51ff51[0x0],'before'),_0x1a9414['model']['createPositionAt'](_0x51ff51[_0x51ff51['length']-0x1],'end'));_0x1a9414['model']['change'](()=>{_0x1bea4b['markBlockFormat'](_0xb020e0,{'commandName':_0x51c3a1,'commandParams':[],'formatGroupId':'listIndent'},function(_0xa3354){const _0xc5c934=new Set();for(const _0x3e0263 of _0xa3354){let _0x524c84=_0x3e0263['nextSibling'];for(;_0x524c84&&_0x524c84['getAttribute']('listIndent')>_0x3e0263['getAttribute']('listIndent');)_0xc5c934['add'](_0x524c84),_0x524c84=_0x524c84['nextSibling'];}return Array['from'](_0xc5c934);}(_0x51ff51));});};}_0x1bea4b['enableCommand']('numberedList',_0x1b6e34('numberedList')),_0x1bea4b['enableCommand']('bulletedList',_0x1b6e34('bulletedList')),_0x224eba&&_0x1bea4b['enableCommand']('todoList',_0x1b6e34('todoList')),_0x1bea4b['enableCommand']('indentList',_0x3e0ec8('indentList')),_0x1bea4b['enableCommand']('outdentList',_0x3e0ec8('outdentList')),_0x224eba&&_0x1bea4b['enableCommand']('checkTodoList',()=>{const _0x12900a=_0x1a9414['commands']['get']('checkTodoList'),_0x1141f8=Array['from'](_0x12900a['_selectedElements']);_0x1141f8['filter'](_0xdf11d6=>_0xdf11d6['getAttribute']('todoListChecked')!=_0x12900a['value']),_0x1a9414['model']['change'](()=>{for(const _0x45ce4e of _0x1141f8)_0x1bea4b['markBlockFormat'](_0x45ce4e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x12900a['value']}]});});}),_0x1bea4b['descriptionFactory']['registerElementLabel']('listItem',_0x182ae7=>o(_0x5c2440,'ELEMENT_LIST_ITEM',_0x182ae7)),_0x1bea4b['descriptionFactory']['registerDescriptionCallback'](_0x4f21cf=>{if('formatBlock'!=_0x4f21cf['type']&&'formatInline'!=_0x4f21cf['type'])return;const {data:_0x10880a}=_0x4f21cf;if(_0x10880a){if('numberedList'==_0x10880a['commandName']||'bulletedList'==_0x10880a['commandName']||'todoList'==_0x10880a['commandName'])switch(_0x10880a['commandName']['replace']('List','')){case'bulleted':return _0x86dcea(o(_0x5c2440,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x86dcea(o(_0x5c2440,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x86dcea(o(_0x5c2440,'ELEMENT_TODO_LIST'));}if('indentList'==_0x10880a['commandName'])return{'type':'format','content':o(_0x5c2440,'*Indent:*\x20%0',o(_0x5c2440,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x10880a['commandName'])return{'type':'format','content':o(_0x5c2440,'*Outdent:*\x20%0',o(_0x5c2440,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x10880a['commandName'])return _0x10880a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c2440,'*Check\x20item*')}:{'type':'format','content':o(_0x5c2440,'*Uncheck\x20item*')};}function _0x86dcea(_0x77a618){return{'type':'format','content':o(_0x5c2440,'*Change\x20to:*\x20%0',_0x77a618)};}});}}function Le(_0x291637){const _0x25d16d=_0x291637['getAttribute']('listIndent');if(0x0==_0x25d16d)return _0x291637;let _0x4d0397=_0x291637;for(;_0x291637['previousSibling']&&_0x291637['previousSibling']['is']('element','listItem');){const _0x12b9fb=_0x291637['previousSibling']['getAttribute']('listIndent');if(_0x12b9fb==_0x25d16d)_0x4d0397=_0x291637['previousSibling'];else{if(_0x12b9fb<_0x25d16d)break;}_0x291637=_0x291637['previousSibling'];}return _0x4d0397;}function Ee(_0x3a69b8){const _0x2edf00=[];if(_0x3a69b8['is']('element','listItem')&&_0x3a69b8['getAttribute']('listIndent')>0x0){let _0x311197=_0x3a69b8['nextSibling'];for(;_0x311197&&'listItem'==_0x311197['name']&&_0x311197['getAttribute']('listIndent')==_0x3a69b8['getAttribute']('listIndent');)_0x2edf00['push'](_0x311197),_0x311197=_0x311197['nextSibling'];}return _0x2edf00;}class Q extends _0x19139a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4b730d=this['editor']['config']['get']('list.properties'),_0x36fbf9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b730d['styles']&&_0x36fbf9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4b730d['reversed']&&_0x36fbf9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4b730d['startIndex']&&_0x36fbf9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x36fbf9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x42e093,_0x54c990={}){const _0x38dfc0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30a5f0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x38dfc0['markMultiRangeBlockFormat'](_0x30a5f0,{'commandName':'listStyle','commandParams':[{'type':_0x54c990['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x374672,_0x4d5df7={}){const _0x991e90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x175a77=this['_getSuggestionBlocks'](_0x5e78bc=>_0x5e78bc['is']('element','listItem')&&'numbered'===_0x5e78bc['getAttribute']('listType'));if(_0x175a77['length']<0x1)return;const _0x8cc4cc=_0x175a77['map'](_0x55b331=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55b331,'before'),this['editor']['model']['createPositionAt'](_0x55b331,0x0)));this['editor']['model']['change'](()=>{_0x991e90['markMultiRangeBlockFormat'](_0x8cc4cc,{'commandName':'listReversed','commandParams':[{'reversed':_0x4d5df7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x38ee0e,_0x5b2884={}){const _0x5cc56f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f67b5=this['_getSuggestionBlocks'](_0x3df196=>_0x3df196['is']('element','listItem')&&'numbered'===_0x3df196['getAttribute']('listType'));if(_0x2f67b5['length']<0x1)return;const _0x44e65a=_0x2f67b5['map'](_0x1d9aeb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d9aeb,'before'),this['editor']['model']['createPositionAt'](_0x1d9aeb,0x0)));this['editor']['model']['change'](()=>{_0x5cc56f['markMultiRangeBlockFormat'](_0x44e65a,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b2884['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x257297){if('formatBlock'!=_0x257297['type']&&'formatInline'!=_0x257297['type'])return;const _0x3f2b0f=this['editor']['locale'],{data:_0x1dba73}=_0x257297;if(!_0x1dba73)return;let _0x770d9b,_0x291e35;switch(_0x1dba73['commandName']){case'listStyle':_0x770d9b='*Change\x20to:*\x20%0',_0x291e35={'type':'format','content':o(_0x3f2b0f,_0x770d9b,o(_0x3f2b0f,this['_getTranslationKeyForListStyle'](_0x1dba73['commandParams'][0x0]['type'])))};break;case'listReversed':_0x770d9b=_0x1dba73['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x291e35={'type':'format','content':o(_0x3f2b0f,_0x770d9b)};break;case'listStart':_0x770d9b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x291e35={'type':'format','content':o(_0x3f2b0f,_0x770d9b,_0x1dba73['commandParams'][0x0]['startIndex'])};}return _0x291e35;}['_getSuggestionBlocksForListStyle'](){const _0x16a97d=this['editor']['plugins']['get']('LegacyListUtils');let _0x5743e0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5743e0[0x0]?.['is']('element','listItem')&&_0x5743e0['unshift'](..._0x16a97d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5743e0[_0x5743e0['length']-0x1]?.['is']('element','listItem')&&_0x5743e0['push'](..._0x16a97d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5743e0=[...new Set(_0x5743e0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5743e0=_0x5743e0['filter'](_0x16c44b=>_0x16c44b['is']('element','listItem'))),_0x5743e0;}['_getSuggestionBlocks'](_0x18e5ca){const _0x33c3fa=this['editor']['plugins']['get']('LegacyListUtils');let _0xfed6a6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18e5ca)['map'](_0x362f12=>{const _0x1e6f45=this['editor']['model']['createPositionAt'](_0x362f12,0x0);return[..._0x33c3fa['getSiblingNodes'](_0x1e6f45,'backward'),..._0x33c3fa['getSiblingNodes'](_0x1e6f45,'forward')];})['flat']();return _0xfed6a6=[...new Set(_0xfed6a6)],_0xfed6a6;}['_getTranslationKeyForListStyle'](_0x13ceed){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x13ceed)||'default')['toUpperCase']()+'_LIST_'+_0x13ceed['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x19139a{['afterInit'](){const _0x3160ee=this['editor'];if(!_0x3160ee['plugins']['has']('MediaEmbedEditing'))return;const _0x4db3a8=_0x3160ee['plugins']['get']('TrackChangesEditing'),_0x45c994=_0x3160ee['locale'];_0x4db3a8['enableCommand']('mediaEmbed'),_0x4db3a8['descriptionFactory']['registerElementLabel']('media',_0x45bd9c=>o(_0x45c994,'ELEMENT_MEDIA',_0x45bd9c)),_0x3160ee['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xe2eba8,{writer:_0x90d160,options:_0x31569d})=>{if(_0x31569d['showSuggestionHighlights'])return _0x90d160['createEmptyElement']('div');},'converterPriority':'high'}),_0x3160ee['data']['downcastDispatcher']['on']('attribute:url:media',(_0x89e060,_0x131e6e,_0x2a6e36)=>{_0x2a6e36['options']['showSuggestionHighlights']&&_0x89e060['stop']();},{'priority':'high'});}}class pt extends _0x19139a{['afterInit'](){const _0x434008=this['editor'];_0x434008['plugins']['has']('MentionEditing')&&_0x434008['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x19139a{['afterInit'](){const _0x13c318=this['editor'];if(!_0x13c318['plugins']['has']('MergeFieldsEditing'))return;const _0x40160d=_0x13c318['plugins']['get']('TrackChangesEditing'),_0x5bcfc2=_0x13c318['locale'];_0x40160d['enableCommand']('insertMergeField'),_0x40160d['enableCommand']('insertMergeFieldBlock'),_0x40160d['enableCommand']('insertMergeFieldImage'),_0x40160d['descriptionFactory']['registerElementLabel']('mergeField',_0x4e1d4f=>o(_0x5bcfc2,'ELEMENT_MERGE_FIELD',_0x4e1d4f)),_0x40160d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x22380a=>o(_0x5bcfc2,'ELEMENT_MERGE_FIELD',_0x22380a)),_0x40160d['descriptionFactory']['registerDescriptionCallback'](_0x2fc328=>{if('insertion'!=_0x2fc328['type']&&'deletion'!=_0x2fc328['type'])return;const _0x52d021=_0x2fc328['getContainedElement']();if(null==_0x52d021)return;const _0x49f8b3=_0x13c318['plugins']['get']('MergeFieldsEditing');let _0x236987;switch(_0x49f8b3['getMergeFieldType'](_0x52d021)){case null:return;case'image':{const _0xdcadd0=_0x49f8b3['unwrapAffixes'](_0x52d021['getAttribute']('src'));_0x236987=_0x49f8b3['getLabel'](_0xdcadd0)||_0xdcadd0;break;}default:{const _0x471add=_0x52d021['getAttribute']('id');_0x236987=_0x49f8b3['getLabel'](_0x471add)||_0x471add;break;}}return'insertion'==_0x2fc328['type']?{'type':'insertion','content':o(_0x5bcfc2,'*Insert:*\x20%0','\x22'+_0x236987+'\x22\x20'+o(_0x5bcfc2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5bcfc2,'*Remove:*\x20%0','\x22'+_0x236987+'\x22\x20'+o(_0x5bcfc2,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x19139a{['afterInit'](){const _0x3b06a7=this['editor'],_0x5311c5=_0x3b06a7['plugins']['get']('TrackChangesEditing');_0x3b06a7['plugins']['has']('MultiLevelList')&&(_0x5311c5['enableDefaultAttributesIntegration']('multiLevelList'),_0x5311c5['registerBlockAttribute']('listMarkerStyle'),_0x5311c5['descriptionFactory']['registerDescriptionCallback'](_0x24d256=>this['handleDescriptions'](_0x24d256)));}['handleDescriptions'](_0x41f64f){const _0x4830dc=this['editor']['locale'],{data:_0x4c81b8}=_0x41f64f,_0x43e0a5={'type':'format','content':''};if(_0x4c81b8&&'listMarkerStyle'==_0x4c81b8['key']){if(!_0x4c81b8['oldValue'])return{'type':'format','content':o(_0x4830dc,'*Set\x20format:*\x20%0',o(_0x4830dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c81b8['newValue']+')'};if(!_0x4c81b8['newValue']){let _0x41f6bb=_0x41f64f['head'];for(;_0x41f6bb;){if(_0x41f6bb['data']&&'listType'==_0x41f6bb['data']['key']&&_0x41f6bb['data']['newValue'])return _0x43e0a5;_0x41f6bb=_0x41f6bb['next'];}return{'type':'format','content':o(_0x4830dc,'*Remove\x20format:*\x20%0',o(_0x4830dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c81b8['oldValue']+')'};}}}}class bt extends _0x19139a{['afterInit'](){const _0x3b7cdd=this['editor'];if(!_0x3b7cdd['plugins']['has']('PageBreakEditing'))return;_0x3b7cdd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x247208=_0x3b7cdd['plugins']['get']('TrackChangesEditing'),_0x3139a2=_0x3b7cdd['locale'];_0x247208['descriptionFactory']['registerElementLabel']('pageBreak',_0x38b36b=>o(_0x3139a2,'ELEMENT_PAGE_BREAK',_0x38b36b));}}class yt extends _0x19139a{['afterInit'](){const _0x84bd68=this['editor'];if(!_0x84bd68['plugins']['has']('Paragraph'))return;const _0x12bd2d=_0x84bd68['locale'],_0x57b0be=_0x84bd68['plugins']['get']('TrackChangesEditing');_0x57b0be['descriptionFactory']['registerElementLabel']('paragraph',_0x3e0e71=>o(_0x12bd2d,'ELEMENT_PARAGRAPH',_0x3e0e71)),_0x57b0be['enableDefaultAttributesIntegration']('paragraph'),_0x57b0be['enableCommand']('insertParagraph'),_0x84bd68['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x84bd68),{'priority':'highest'}),_0x84bd68['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1703e0,_0xaf8ca8,_0x56bdb8)=>{_0x56bdb8['options']['showSuggestionHighlights']&&nr(_0x84bd68,{'showActiveMarker':!0x1})(_0x1703e0,_0xaf8ca8,_0x56bdb8);},{'priority':'highest'});const _0x4db270=_0x57b0be['descriptionFactory'];_0x4db270['registerDescriptionCallback'](_0x50ad88=>{if('insertion'!==_0x50ad88['type'])return;const {start:_0x312475,end:_0x92038d}=_0x50ad88['getFirstRange']();if(!_0x312475['isTouching'](_0x92038d)||!_0x312475['nodeAfter'])return;const _0x12d21c=_0x84bd68['model']['schema'],_0x42d81d=_0x312475['nodeAfter'];return _0x12d21c['isBlock'](_0x42d81d)&&!_0x12d21c['isLimit'](_0x42d81d)&&_0x12d21c['checkChild'](_0x42d81d,'$text')?{'type':'insertion','content':o(_0x12bd2d,'*Insert:*\x20%0',_0x4db270['getItemLabel'](_0x42d81d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e887b=this['editor'],_0x55ad38=_0x3e887b['locale'];_0x3e887b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b1655=>{if('formatBlock'!=_0x1b1655['type'])return;const {data:_0x48a09a}=_0x1b1655;return _0x48a09a&&'paragraph'==_0x48a09a['commandName']?{'type':'format','content':o(_0x55ad38,'*Change\x20to:*\x20%0',o(_0x55ad38,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b59b1,{showActiveMarker:_0x28c129=!0x0}={}){return(_0x463b03,_0x3463a6,_0x1a0e46)=>{const _0x491cd3=_0x1b59b1['plugins']['get']('TrackChangesEditing'),_0x271240=_0x3463a6['markerRange']['start'],_0x10ee16=_0x3463a6['markerRange']['end'],_0x510f3e=_0x1b59b1['model']['schema'];if(!_0x271240['isTouching'](_0x10ee16)||!_0x271240['nodeAfter'])return;const _0x3cf1b4=_0x271240['nodeAfter'];if(_0x510f3e['isBlock'](_0x3cf1b4)&&!_0x510f3e['isLimit'](_0x3cf1b4)&&_0x510f3e['checkChild'](_0x3cf1b4,'$text')){if(!_0x1a0e46['consumable']['consume'](_0x3463a6['markerRange'],_0x463b03['name']))return;const {authorId:_0x281bf1}=_0x491cd3['_splitMarkerName'](_0x3463a6['markerName']),_0x4a1f5e=_0x1a0e46['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x281bf1}),_0x39f706=_0x1a0e46['mapper']['toViewPosition'](_0x10ee16);_0x28c129&&_0x491cd3['activeMarkers']['includes'](_0x3463a6['markerName'])&&_0x1a0e46['writer']['addClass']('ck-suggestion-marker--active',_0x4a1f5e),_0x1a0e46['writer']['insert'](_0x39f706,_0x4a1f5e),_0x1a0e46['mapper']['bindElementToMarker'](_0x4a1f5e,_0x3463a6['markerName']);}};}class jt extends _0x19139a{['afterInit'](){const _0x28db7d=this['editor'];_0x28db7d['commands']['get']('replaceSource')&&_0x28db7d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x19139a{['afterInit'](){const _0x48014b=this['editor'];if(!_0x48014b['plugins']['has']('RemoveFormatEditing'))return;_0x48014b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe17420=this['editor'];_0xe17420['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b08fe=>{if('formatBlock'!=_0x1b08fe['type']&&'formatInline'!=_0x1b08fe['type'])return;const {data:_0xcc45bc}=_0x1b08fe;return _0xcc45bc&&'removeFormat'==_0xcc45bc['commandName']?{'type':'format','content':o(_0xe17420['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x19139a{['afterInit'](){const _0x120322=this['editor'];if(!_0x120322['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b6ff0=_0x120322['plugins']['get']('TrackChangesEditing');_0x2b6ff0['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b6ff0['enableCommand']('goToNextRestrictedEditingException');const _0x1d9ee7=_0x120322['plugins']['get']('RestrictedEditingModeEditing');_0x1d9ee7['enableCommand']('trackChanges'),_0x1d9ee7['enableCommand']('acceptSuggestion'),_0x1d9ee7['enableCommand']('discardSuggestion'),_0x1d9ee7['enableCommand']('acceptAllSuggestions'),_0x1d9ee7['enableCommand']('discardAllSuggestions'),_0x1d9ee7['enableCommand']('acceptSelectedSuggestions'),_0x1d9ee7['enableCommand']('discardSelectedSuggestions');}}class It extends _0x19139a{static get['requires'](){return[_0x7be3b9];}['init'](){const _0x452e5d=this['editor'],_0x957363=_0x452e5d['plugins']['get']('TrackChangesEditing');_0x957363['enableCommand']('shiftEnter'),_0x452e5d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x452e5d),{'priority':'high'}),_0x452e5d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x452e5d),{'priority':'high'}),_0x452e5d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x150a7b,_0x2ab795,_0x5e0a)=>{_0x5e0a['options']['showSuggestionHighlights']&&je(_0x452e5d,{'showActiveMarker':!0x1})(_0x150a7b,_0x2ab795,_0x5e0a);}),_0x957363['descriptionFactory']['registerElementLabel']('softBreak',_0x19b148=>o(_0x452e5d['locale'],'ELEMENT_LINE_BREAK',_0x19b148));}}function je(_0x4e6cfe,{showActiveMarker:_0x4deb15=!0x0}={}){return(_0x1497f9,_0x5647ef,_0x1cdc7c)=>{const _0x5c6f12=_0x4e6cfe['plugins']['get']('TrackChangesEditing');if(!_0x1cdc7c['consumable']['test'](_0x5647ef['markerRange'],_0x1497f9['name']))return;const _0x5bd61f=_0x4e6cfe['model'];for(const _0x5cc721 of _0x5647ef['markerRange']['getItems']()){if(!_0x5cc721['is']('element','softBreak'))continue;const _0x45bf2f='deletion'==_0x5647ef['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c9334}=_0x5c6f12['_splitMarkerName'](_0x5647ef['markerName']),_0x108706=_0x1cdc7c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45bf2f,'data-author-id':_0x1c9334}),_0x1ca8fc=_0x1cdc7c['mapper']['toViewPosition'](_0x5bd61f['createPositionBefore'](_0x5cc721));_0x4deb15&&_0x5c6f12['activeMarkers']['includes'](_0x5647ef['markerName'])&&_0x1cdc7c['writer']['addClass']('ck-suggestion-marker--active',_0x108706),_0x1cdc7c['writer']['insert'](_0x1ca8fc,_0x108706),_0x1cdc7c['mapper']['bindElementToMarker'](_0x108706,_0x5647ef['markerName']);}};}class vt extends _0x19139a{['afterInit'](){const _0x4a655d=this['editor'],_0x5b7526=_0x4a655d['model'],_0x35ac5e=_0x4a655d['locale'];if(!_0x4a655d['plugins']['has']('StandardEditingModeEditing'))return;const _0x24c43c=_0x4a655d['plugins']['get']('TrackChangesEditing'),_0xa7b23a='restrictedEditingException',_0x3cd0df=_0x4a655d['commands']['get'](_0xa7b23a);_0x24c43c['enableCommand'](_0xa7b23a,(_0x488bc3,_0x491ba8={})=>{const _0x34afc0=_0x5b7526['document']['selection'];if(_0x34afc0['isCollapsed'])return void _0x488bc3(_0x491ba8);const _0x2136ee=void 0x0!==_0x491ba8['forceValue']?_0x491ba8['forceValue']:!_0x3cd0df['value'];_0x5b7526['change'](()=>{const _0x22c99e=Array['from'](_0x34afc0['getRanges']());for(const _0x57dcd0 of _0x22c99e){const _0x40b9d9=_0x2136ee?[_0x57dcd0]:io(_0xa7b23a,_0x57dcd0,_0x5b7526);for(const _0x2294bc of _0x40b9d9)_0x24c43c['markInlineFormat'](_0x2294bc,{'commandName':_0xa7b23a,'commandParams':[{'forceValue':_0x2136ee}]});}});}),_0x24c43c['descriptionFactory']['registerDescriptionCallback'](_0x4602fb=>{if('formatBlock'!=_0x4602fb['type']&&'formatInline'!=_0x4602fb['type'])return;const {data:_0x239694}=_0x4602fb;return _0x239694&&_0x239694['commandName']==_0xa7b23a?_0x239694['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35ac5e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x35ac5e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x19139a{['afterInit'](){const _0x3111ca=this['editor'];if(!_0x3111ca['plugins']['has']('Style')||!_0x3111ca['plugins']['has']('DataSchema'))return;const _0x5425ad=_0x3111ca['plugins']['get']('TrackChangesEditing'),_0x15cc4f=_0x3111ca['locale'],_0x26683f=_0x3111ca['config']['get']('style')||{},_0xc27b1f=_0x3111ca['plugins']['get']('GeneralHtmlSupport'),_0x435527=_0x3111ca['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3111ca['plugins']['get']('DataSchema'),_0x26683f['definitions']);_0x5425ad['enableDefaultAttributesIntegration']('style');const _0xf6aedb=new Set();for(const _0xc8a2ea of _0x435527['block']){const _0x6b412e=_0xc27b1f['getGhsAttributeNameForElement'](_0xc8a2ea['element']);_0xf6aedb['add'](_0x6b412e);}const _0x3ade3c=new Set();for(const _0x415981 of _0x435527['inline']){const _0x55ce7e=_0xc27b1f['getGhsAttributeNameForElement'](_0x415981['element']);_0x3ade3c['add'](_0x55ce7e);for(const _0x5a14da of _0x415981['ghsAttributes'])_0x3ade3c['add'](_0x5a14da);}for(const _0x573368 of _0xf6aedb)_0x5425ad['registerBlockAttribute'](_0x573368),_0x5425ad['descriptionFactory']['registerAttributeLabel'](_0x573368,o(_0x15cc4f,'FORMAT_STYLE'));for(const _0x2b37bf of _0x3ade3c)_0x5425ad['registerInlineAttribute'](_0x2b37bf),_0x5425ad['descriptionFactory']['registerAttributeLabel'](_0x2b37bf,o(_0x15cc4f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x240867=this['editor'],_0x44cd5a=_0x240867['locale'];_0x240867['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d8a96=>{if('formatBlock'!=_0x3d8a96['type']&&'formatInline'!=_0x3d8a96['type'])return;const {data:_0x5d9171}=_0x3d8a96;return _0x5d9171&&'style'===_0x5d9171['commandName']?_0x5d9171['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44cd5a,'*Set\x20format:*\x20%0',_0x5d9171['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x44cd5a,'*Remove\x20format:*\x20%0',_0x5d9171['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x19139a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x43e297){super(_0x43e297),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x250f7d=this['editor'],_0x36d891=_0x250f7d['model']['document']['selection'];if(!_0x250f7d['plugins']['has']('TableEditing'))return;const _0xdd4b2b=_0x250f7d['locale'],_0x5cd62f=_0x250f7d['plugins']['get']('TrackChangesEditing'),_0x1c2c64=_0x250f7d['plugins']['get']('TableUtils');_0x5cd62f['descriptionFactory']['registerElementLabel']('table',_0x213e56=>o(_0xdd4b2b,'ELEMENT_TABLE',_0x213e56)),this['_setupColumnsRowsFixing'](),_0x5cd62f['enableCommand']('insertTable'),_0x5cd62f['enableCommand']('selectTableRow'),_0x5cd62f['enableCommand']('selectTableColumn');for(const _0x26efd0 of['insertTableRowAbove','insertTableRowBelow']){const _0x192155=_0x250f7d['commands']['get'](_0x26efd0);_0x5cd62f['enableCommand'](_0x26efd0,_0xb4e8b=>{_0x250f7d['model']['change'](_0x3d173a=>{_0xb4e8b();const _0x464596='above'===_0x192155['order'],_0x15aea9=_0x1c2c64['getSelectionAffectedTableCells'](_0x36d891),_0xd60830=_0x1c2c64['getRowIndexes'](_0x15aea9),_0x427492=_0x464596?_0xd60830['first']-0x1:_0xd60830['last']+0x1,_0x596d6d=_0x15aea9[0x0]['findAncestor']('table'),_0x41615d=_0x1c2c64['createTableWalker'](_0x596d6d,{'startRow':_0x427492,'endRow':_0x427492}),_0x2427eb=Array['from'](_0x41615d)['map'](_0x4ab96c=>_0x3d173a['createRangeOn'](_0x4ab96c['cell']));_0x5cd62f['markMultiRangeInsertion'](_0x2427eb,'tableRow');});});}for(const _0x5dcdb2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5a72bc=_0x250f7d['commands']['get'](_0x5dcdb2);_0x5cd62f['enableCommand'](_0x5dcdb2,_0x56e40f=>{_0x250f7d['model']['change'](_0x13e905=>{_0x56e40f();const _0x2a3dd9='left'===_0x5a72bc['order'],_0x26ad50=_0x1c2c64['getSelectionAffectedTableCells'](_0x36d891),_0x4389ed=_0x1c2c64['getColumnIndexes'](_0x26ad50),_0x1d25e4=_0x2a3dd9?_0x4389ed['first']-0x1:_0x4389ed['last']+0x1,_0x526f7e=_0x26ad50[0x0]['findAncestor']('table'),_0x560205=_0x1c2c64['createTableWalker'](_0x526f7e,{'startRow':0x0,'column':_0x1d25e4,'includeAllSlots':!0x1}),_0xae7e16=Array['from'](_0x560205)['map'](_0x510b16=>_0x13e905['createRangeOn'](_0x510b16['cell']));_0x5cd62f['markMultiRangeInsertion'](_0xae7e16,'tableColumn');});});}for(const _0x461ffb of['removeTableRow','removeTableColumn']){const _0x376458=_0x461ffb['substr'](0xb),_0x361a5d=_0x376458['toLowerCase'](),_0x410c48=_0x361a5d['substr'](0x0,0x3)+'span',_0x7e9a15='table'+_0x376458,_0x37b3f0='min'+_0x376458,_0x2b5a34='max'+_0x376458;_0x5cd62f['enableCommand'](_0x461ffb,()=>{_0x250f7d['model']['change'](_0x1468a4=>{const _0xef4cd1=_0x1c2c64['getSelectionAffectedTableCells'](_0x36d891),_0x5b4fee=_0xef4cd1[0x0]['findAncestor']('table');let _0x3bb372;if('removeTableRow'==_0x461ffb){const _0x42a03a=_0x1c2c64['getRowIndexes'](_0xef4cd1);_0x3bb372={'startRow':_0x42a03a['first'],'endRow':_0x42a03a['last'],'includeAllSlots':!0x0};}else{const _0x502507=_0x1c2c64['getColumnIndexes'](_0xef4cd1);_0x3bb372={'startColumn':_0x502507['first'],'endColumn':_0x502507['last'],'includeAllSlots':!0x0};}const _0x5e6fb8=_0x1c2c64['createTableWalker'](_0x5b4fee,_0x3bb372),_0x1452c=Array['from'](_0x5e6fb8)['map'](({cell:_0x5c3372})=>_0x5c3372),_0x2a1ae1=Ne(_0x1452c['filter'](_0x2e3fc3=>_0x2e3fc3['hasAttribute'](_0x410c48))),_0x44f8b3=Ne(_0x1452c['filter'](_0x53e9f1=>!_0x53e9f1['hasAttribute'](_0x410c48)))['map'](_0x42c6b7=>_0x1468a4['createRangeOn'](_0x42c6b7)),_0x288bdb=_0x5cd62f['markMultiRangeDeletion'](_0x44f8b3,_0x7e9a15);if(_0x288bdb&&('tableRow'==_0x288bdb['subType']||'tableColumn'==_0x288bdb['subType'])){const _0x1e1010=this['_getSuggestionCoords'](_0x288bdb);for(const _0x223331 of _0x2a1ae1){const _0x198ca7=_0x1468a4['createRangeOn'](_0x223331),_0x362793=_0x1c2c64['getCellLocation'](_0x223331),_0x4fb61b=_0x223331['getAttribute'](_0x410c48)-0x1,_0x1e2f83=_0x1e1010[_0x37b3f0],_0x3c8670=_0x1e1010[_0x2b5a34];_0x1e2f83<=_0x362793[_0x361a5d]&&_0x362793[_0x361a5d]+_0x4fb61b<=_0x3c8670&&_0x288bdb['addRange'](_0x198ca7);}}});});}function _0x3f276b(_0x1129a3){const _0xd23539=Array['from'](_0x36d891['getRanges']())['map'](_0x565319=>_0x45a705['fromRange'](_0x565319));_0x250f7d['model']['change'](_0x594880=>{const _0xb51aa4=_0x594880['batch'];_0x1129a3=_0x1129a3['filter'](_0x526f39=>'$graveyard'!=_0x526f39['root']['rootName']),_0x594880['setSelection'](_0x1129a3),_0x250f7d['commands']['get']('removeTableRow')['refresh'](),_0x250f7d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x250f7d['model']['enqueueChange'](()=>{_0x250f7d['model']['enqueueChange'](_0xb51aa4,_0x259f07=>{const _0x175597=_0xd23539['filter'](_0x52d0d6=>'$graveyard'!=_0x52d0d6['root']['rootName']);_0x175597['length']>0x0&&_0x259f07['setSelection'](_0x175597);for(const _0x26e4d2 of _0xd23539)_0x26e4d2['detach']();});});});}function _0x18c088(_0x57fb45){_0x250f7d['model']['change'](_0x47226d=>{const _0xc505be=Array['from'](_0x36d891['getRanges']())['map'](_0x4de872=>_0x45a705['fromRange'](_0x4de872)),_0x1457a7=[];for(const _0x4f1135 of _0x57fb45)for(const _0x26d912 of _0x4f1135['getItems']({'shallow':!0x0}))_0x1457a7['push'](_0x26d912);for(const _0x5543ff of _0x1457a7)'$graveyard'!=_0x5543ff['root']['rootName']&&(_0x47226d['setSelection'](_0x47226d['createPositionAt'](_0x5543ff,0x0)),_0x250f7d['commands']['get']('removeTableColumn')['refresh'](),_0x250f7d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3c176e=_0xc505be['filter'](_0x5eb857=>'$graveyard'!=_0x5eb857['root']['rootName']);_0x3c176e['length']>0x0&&_0x47226d['setSelection'](_0x3c176e);for(const _0x38fbcd of _0xc505be)_0x38fbcd['detach']();});}function _0x20abad(_0xb7e3d9,_0x5e58bc){return _0x5e58bc['every'](_0x570178=>_0xb7e3d9['some'](_0x87ac81=>_0x87ac81['end']['isEqual'](_0x570178['start'])||_0x570178['end']['isEqual'](_0x87ac81['start'])));}function _0x50d91c(_0x579d1c,_0x50f24a){return!_0x579d1c['some'](_0x55ca21=>_0x50f24a['some'](_0x20e482=>_0x55ca21['isIntersecting'](_0x20e482)))&&_0x579d1c['some'](_0x155402=>_0x50f24a['some'](_0x12220b=>_0x155402['end']['isTouching'](_0x12220b['start'])));}_0x250f7d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe4d8af,_0x136b35,_0x1a94e4)=>{if(!_0x1a94e4['options']['showSuggestionHighlights'])return;const _0x13a0c6=_0x136b35['item'];if(!_0x13a0c6)return;const _0x23851f=_0x1a94e4['mapper']['toViewElement'](_0x13a0c6);function _0x42c04(_0x25c3f5){return Array['isArray'](_0x25c3f5)?_0x25c3f5:[_0x25c3f5];}_0x23851f&&'tableCell'===_0x13a0c6['name']&&_0x25eecb(_0x23851f,_0x1a94e4['writer'],(_0x3bc5fd,_0x163e7e,_0x14c732)=>_0x14c732['addClass'](_0x42c04(_0x163e7e['classes']),_0x3bc5fd),(_0x4dddcc,_0x1e5e1a,_0x1ad359)=>_0x1ad359['removeClass'](_0x42c04(_0x1e5e1a['classes']),_0x4dddcc));},{'priority':'highest'}),_0x5cd62f['descriptionFactory']['registerDescriptionCallback'](_0x1d5b43=>{if('insertion'!=_0x1d5b43['type']&&'deletion'!=_0x1d5b43['type'])return;const _0x5dbde5=_0x1d5b43['getContainedElement']();if(null!=_0x5dbde5&&_0x5dbde5['is']('element','table')){if('insertion'==_0x1d5b43['type']){const _0x149103=_0x1d5b43['getItems']()['filter'](_0x1551f3=>_0x1551f3['is']('$textProxy'))['map'](_0xd22b68=>_0xd22b68['data']);if(_0x149103['length'])return{'type':'insertion','content':o(_0xdd4b2b,'*Insert:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x149103['join']('\x20')+'\x22'))};}if('deletion'==_0x1d5b43['type']){const _0x5b0309=_0x1d5b43['getItems']()['filter'](_0x22b537=>_0x22b537['is']('$textProxy'))['map'](_0x54b381=>_0x54b381['data']);if(_0x5b0309['length'])return{'type':'deletion','content':o(_0xdd4b2b,'*Remove:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b0309['join']('\x20')+'\x22'))};}}}),_0x5cd62f['descriptionFactory']['registerDescriptionCallback'](_0x173566=>{if('tableRow'==_0x173566['subType']){const _0x340780=_0x173566['getItems']()['filter'](_0x23107c=>_0x23107c['is']('$textProxy'))['map'](_0x4f8a6e=>_0x4f8a6e['data']),_0x40587f=this['_getSuggestionCoords'](_0x173566),_0x420fab=_0x40587f['maxRow']-_0x40587f['minRow']+0x1;if('insertion'==_0x173566['type'])return _0x340780['length']?{'type':'insertion','content':o(_0xdd4b2b,'*Insert:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x420fab,'\x22'+_0x340780['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdd4b2b,'*Insert:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_ROW',_0x420fab))};if('deletion'==_0x173566['type'])return _0x340780['length']?{'type':'deletion','content':o(_0xdd4b2b,'*Remove:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x420fab,'\x22'+_0x340780['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdd4b2b,'*Remove:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_ROW',_0x420fab))};}if('tableColumn'==_0x173566['subType']){const _0x54a86d=_0x173566['getItems']()['filter'](_0x558fa3=>_0x558fa3['is']('$textProxy'))['map'](_0x47d8e5=>_0x47d8e5['data']),_0x571629=this['_getSuggestionCoords'](_0x173566),_0x156ecb=_0x571629['maxColumn']-_0x571629['minColumn']+0x1;if('insertion'==_0x173566['type'])return _0x54a86d['length']?{'type':'insertion','content':o(_0xdd4b2b,'*Insert:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x156ecb,'\x22'+_0x54a86d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdd4b2b,'*Insert:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_COLUMN',_0x156ecb))};if('deletion'==_0x173566['type'])return _0x54a86d['length']?{'type':'deletion','content':o(_0xdd4b2b,'*Remove:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x156ecb,'\x22'+_0x54a86d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdd4b2b,'*Remove:*\x20%0',o(_0xdd4b2b,'ELEMENT_TABLE_COLUMN',_0x156ecb))};}}),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3f276b),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3f276b),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x18c088),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x18c088),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x20abad),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x20abad),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x50d91c),_0x5cd62f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x50d91c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1718cd=this['editor'],_0x762366=_0x1718cd['model']['document']['selection'];return(_0x3fa94a,_0x7733a3)=>{_0x1718cd['model']['change'](_0x24fb28=>{const {commandName:_0x266861,commandParams:_0x503457}=_0x7733a3;let _0x48856c=_0x3fa94a[0x0]['end']['nodeBefore'];_0x503457&&_0x503457[0x0]&&!0x1===_0x503457[0x0]['forceValue']&&(_0x48856c=_0x3fa94a[0x0]['start']['nodeAfter']);const _0x43a558=_0x24fb28['createRangeIn'](_0x48856c);if('$graveyard'==_0x43a558['root']['rootName'])return;const _0x2aa4ee=Array['from'](_0x762366['getRanges']())['map'](_0x3f59a3=>_0x45a705['fromRange'](_0x3f59a3));_0x24fb28['setSelection'](_0x43a558),_0x1718cd['commands']['get'](_0x266861)['refresh'](),_0x503457['push']({'forceDefaultExecution':!0x0}),_0x1718cd['execute'](_0x266861,..._0x503457);const _0x2b61e1=_0x2aa4ee['filter'](_0x237f98=>'$graveyard'!=_0x237f98['root']['rootName']);_0x2b61e1['length']>0x0&&_0x24fb28['setSelection'](_0x2b61e1);for(const _0x5338a7 of _0x2aa4ee)_0x5338a7['detach']();});};}['_getCoordsForCells'](_0xe5ec1){const _0x1ef700=this['editor']['plugins']['get']('TableUtils');let _0x3bd8fc=Number['MAX_SAFE_INTEGER'],_0x2f1bc7=Number['MIN_SAFE_INTEGER'],_0x257fd1=Number['MAX_SAFE_INTEGER'],_0xa38eb3=Number['MIN_SAFE_INTEGER'];for(const _0x1844ae of _0xe5ec1){if('$graveyard'==_0x1844ae['root']['rootName'])continue;const {row:_0x2484b1,column:_0x29e758}=_0x1ef700['getCellLocation'](_0x1844ae),_0x43e732=_0x1844ae['hasAttribute']('rowspan')?_0x1844ae['getAttribute']('rowspan')-0x1:0x0,_0x354df3=_0x1844ae['hasAttribute']('colspan')?_0x1844ae['getAttribute']('colspan')-0x1:0x0;_0x3bd8fc=_0x2484b1<_0x3bd8fc?_0x2484b1:_0x3bd8fc,_0x2f1bc7=_0x2484b1+_0x43e732>_0x2f1bc7?_0x2484b1+_0x43e732:_0x2f1bc7,_0x257fd1=_0x29e758<_0x257fd1?_0x29e758:_0x257fd1,_0xa38eb3=_0x29e758+_0x354df3>_0xa38eb3?_0x29e758+_0x354df3:_0xa38eb3;}return{'minRow':_0x3bd8fc,'maxRow':_0x2f1bc7,'minColumn':_0x257fd1,'maxColumn':_0xa38eb3};}['_setupColumnsRowsFixing'](){const _0x19f391=this['editor'],_0x2dd877=_0x19f391['plugins']['get']('TrackChangesEditing'),_0x32ceec=_0x19f391['plugins']['get']('TableUtils');_0x19f391['model']['document']['on']('change:data',()=>{const _0x3f686b=Array['from'](_0x19f391['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x522698,data:_0x2bf317}of _0x3f686b){const {group:_0x222154,id:_0x171dfa,subType:_0x1f0037}=_0x2dd877['_splitMarkerName'](_0x522698);if('suggestion'!=_0x222154)continue;if(null!=_0x2bf317['oldRange'])continue;const _0xf48a95=_0x2dd877['getSuggestion'](_0x171dfa);this['_tablePostFixingSubtypes']['includes'](_0x1f0037)&&this['_tableSuggestions']['add'](_0xf48a95);}},{'priority':'low'});const _0x276054=(_0x1e36ec,_0xc1ff9c)=>{let _0x576c5a=!0x1;const _0x26f11c=_0xc1ff9c['createRangeOn'](_0x1e36ec),_0x745bec=_0x1e36ec['findAncestor']('table'),_0x4c764f=_0x32ceec['getCellLocation'](_0x1e36ec);for(const _0x433eb6 of this['_tableSuggestions']){const _0x4de709=_0x433eb6['subType'],_0x53cf83=_0x4de709['startsWith']('tablePaste'),_0x1db4da=_0x4de709['substr'](_0x53cf83?0xa:0x5),_0x104c8f=_0x1db4da['toLowerCase'](),_0x1893e4=_0x104c8f['substr'](0x0,0x3)+'span',_0x362518='min'+_0x1db4da,_0x3048b1='max'+_0x1db4da;if(!_0x433eb6['isInContent'])continue;if(_0x745bec!=_0x433eb6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x433eb6['isIntersectingWithRange'](_0x26f11c))continue;const _0x2c11be=_0x1e36ec['hasAttribute'](_0x1893e4)?_0x1e36ec['getAttribute'](_0x1893e4)-0x1:0x0,_0x3b7b35=this['_getSuggestionCoords'](_0x433eb6),_0x30a8b1=_0x3b7b35[_0x362518],_0x3596a4=_0x3b7b35[_0x3048b1];_0x30a8b1<=_0x4c764f[_0x104c8f]&&_0x4c764f[_0x104c8f]+_0x2c11be<=_0x3596a4&&(_0x433eb6['addRange'](_0x26f11c),_0x576c5a=!0x0);}return _0x576c5a;};_0x19f391['model']['document']['registerPostFixer'](_0x2bd370=>{let _0x8a184d=!0x1;for(const _0x553c95 of _0x19f391['model']['document']['differ']['getChanges']())if('insert'==_0x553c95['type']){if('tableRow'==_0x553c95['name']){for(const _0x21b054 of _0x553c95['position']['nodeAfter']['getChildren']())_0x8a184d=_0x8a184d||_0x276054(_0x21b054,_0x2bd370);}else'tableCell'==_0x553c95['name']&&(_0x8a184d=_0x8a184d||_0x276054(_0x553c95['position']['nodeAfter'],_0x2bd370));}return _0x8a184d;});}['_getSuggestionCoords'](_0x5bf49e){return this['_getCoordsForCells'](_0x5bf49e['getRanges']()['map'](_0x23ccfd=>_0x23ccfd['start']['nodeAfter']));}}function Ne(_0x20c105){return Array['from'](new Set(_0x20c105)['values']());}class Nt extends _0x19139a{static get['requires'](){return[Ct];}['afterInit'](){const _0x12def3=this['editor'],_0x4af46=_0x12def3['model']['document']['selection'],_0x373217=_0x12def3['locale'];if(!_0x12def3['plugins']['has']('TableEditing'))return;const _0x2f2cfb=_0x12def3['plugins']['get']('TrackChangesEditing'),_0x146dac=_0x12def3['plugins']['get']('TableUtils'),_0x567ff0=_0x12def3['plugins']['get'](Ct);_0x567ff0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2f2cfb['enableCommand']('mergeTableCells',()=>{const _0x6f11a4=_0x146dac['getSelectionAffectedTableCells'](_0x12def3['model']['document']['selection']);_0x12def3['model']['change'](()=>{_0x2f2cfb['markMultiRangeBlockFormat'](_0x6f11a4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x12def3['commands']['get']('mergeTableCells')['on']('execute',(_0x451626,_0x3867e9)=>{_0x12def3['commands']['get']('trackChanges')['value']&&(_0x3867e9['length']>0x0&&_0x3867e9[_0x3867e9['length']-0x1]&&_0x3867e9[_0x3867e9['length']-0x1]['forceDefaultExecution']||_0x2f2cfb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x451626['stop']());},{'priority':'highest'});for(const _0x44b538 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x19c90b=_0x12def3['commands']['get'](_0x44b538);_0x2f2cfb['enableCommand'](_0x44b538,()=>{const _0x45b5d5=_0x12def3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x26b40c=>_0x26b40c['is']('element','tableCell')),_0x3392ae=_0x19c90b['value'];_0x12def3['model']['change'](()=>{_0x2f2cfb['markMultiRangeBlockFormat']([_0x45b5d5,_0x3392ae],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x62955c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x6ad848=_0x12def3['commands']['get'](_0x62955c);_0x2f2cfb['enableCommand'](_0x62955c,()=>{const _0x2072d4=_0x146dac['getSelectionAffectedTableCells'](_0x12def3['model']['document']['selection'])[0x0],_0x2fc3e0=_0x2072d4['findAncestor']('table'),{column:_0x10bb30,row:_0x39c47f}=_0x146dac['getCellLocation'](_0x2072d4);let _0x29e361=[];if('horizontally'==_0x6ad848['direction']){const _0xdbb90e=_0x146dac['createTableWalker'](_0x2fc3e0,{'startRow':_0x39c47f,'endRow':_0x39c47f,'includeAllSlots':!0x0});_0x29e361=Array['from'](_0xdbb90e)['map'](_0x436d81=>_0x436d81['cell']);}else{const _0x397f46=_0x146dac['createTableWalker'](_0x2fc3e0,{'column':_0x10bb30,'includeAllSlots':!0x0});_0x29e361=Array['from'](_0x397f46)['map'](_0x519d83=>_0x519d83['cell']);}_0x12def3['model']['change'](_0x30711c=>{_0x2f2cfb['markBlockFormat'](_0x30711c['createRangeOn'](_0x2072d4),{'commandName':_0x62955c,'commandParams':[]},_0x29e361,_0x62955c);});});}_0x2f2cfb['descriptionFactory']['registerDescriptionCallback'](_0x38bdd5=>{if('formatBlock'!=_0x38bdd5['type']&&'formatInline'!=_0x38bdd5['type'])return;const {data:_0x1077af}=_0x38bdd5;return _0x1077af&&'mergeTableCells'==_0x1077af['commandName']?{'type':'format','content':o(_0x373217,'*Merge\x20cells*')}:void 0x0;}),_0x2f2cfb['descriptionFactory']['registerDescriptionCallback'](_0x356fab=>{if('formatBlock'!=_0x356fab['type']&&'formatInline'!=_0x356fab['type'])return;const {data:_0x52f63e}=_0x356fab;return _0x52f63e?'splitTableCellVertically'==_0x52f63e['commandName']?{'type':'format','content':o(_0x373217,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x52f63e['commandName']?{'type':'format','content':o(_0x373217,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4b3159=_0x567ff0['_acceptFormatSuggestionCallbackFactory']();for(const _0x258bd3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2f2cfb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x258bd3,'accept',_0x4b3159);for(const _0xf92314 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2f2cfb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf92314,'accept',_0x4b3159);_0x2f2cfb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2bd5a1=>{_0x12def3['model']['change'](_0x37315d=>{const _0x1f1455=Array['from'](_0x4af46['getRanges']())['map'](_0x2fb75c=>_0x45a705['fromRange'](_0x2fb75c));_0x37315d['setSelection'](_0x2bd5a1),_0x12def3['commands']['get']('mergeTableCells')['refresh'](),_0x12def3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1135f4=_0x1f1455['filter'](_0x2d9792=>'$graveyard'!=_0x2d9792['root']['rootName']);_0x1135f4['length']>0x0&&_0x37315d['setSelection'](_0x1135f4);for(const _0x1a714b of _0x1f1455)_0x1a714b['detach']();});});for(const _0x5cf2d3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xe9bdba=_0x12def3['commands']['get'](_0x5cf2d3);_0xe9bdba['on']('set:isEnabled',(_0x2f896e,_0x449378,_0x52f23e)=>{if(_0x52f23e){const _0x2bfe53=_0x12def3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbd07d3=>_0xbd07d3['is']('element','tableCell'));this['_areMergableCells'](_0xe9bdba['value'],_0x2bfe53)||(_0x2f896e['return']=!0x1,_0x2f896e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x23911a=this['editor']['commands']['get']('mergeTableCells'),_0x1e0537=this['editor']['plugins']['get']('TableUtils');if(!_0x23911a['isEnabled'])return!0x1;const _0x4efdbf=_0x1e0537['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x490a0e of _0x4efdbf)for(const _0x1bae88 of _0x4efdbf)if(_0x490a0e!=_0x1bae88&&!this['_areMergableCells'](_0x490a0e,_0x1bae88))return!0x1;return!0x0;}['_areMergableCells'](_0x2913f5,_0x4bd2e4){const _0x41a156=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b5080=this['editor']['model']['createRangeOn'](_0x2913f5),_0x596ac7=this['editor']['model']['createRangeOn'](_0x4bd2e4),_0x2e0ce6=new Set(),_0x3fc0c9=new Set();for(const _0x6aba6e of _0x41a156['getSuggestions']())if(('insertion'==_0x6aba6e['type']||'deletion'==_0x6aba6e['type']||'mergeTableCells'==_0x6aba6e['subType'])&&_0x6aba6e['isInContent']){for(const _0x102601 of _0x6aba6e['getRanges']())_0x102601['containsRange'](_0x2b5080,!0x0)&&_0x2e0ce6['add'](_0x6aba6e['type']+':'+_0x6aba6e['author']['id']),_0x102601['containsRange'](_0x596ac7,!0x0)&&_0x3fc0c9['add'](_0x6aba6e['type']+':'+_0x6aba6e['author']['id']);}if(_0x2e0ce6['size']!=_0x3fc0c9['size'])return!0x1;for(const _0x15b34a of _0x2e0ce6)if(!_0x3fc0c9['has'](_0x15b34a))return!0x1;return!0x0;}}class Dt extends _0x19139a{static get['requires'](){return[Ct];}['afterInit'](){const _0x45361e=this['editor'];if(!_0x45361e['plugins']['has']('TableEditing'))return;const _0xdac0c4=_0x45361e['locale'],_0x277b43=_0x45361e['plugins']['get']('TrackChangesEditing');_0x277b43['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x277b43['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x277b43['registerBlockAttribute']('headingRows'),_0x277b43['registerBlockAttribute']('headingColumns'),_0x277b43['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xdac0c4,'FORMAT_HEADER_ROW')),_0x277b43['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xdac0c4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x477ea0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe980a=this['editor']['plugins']['get']('TableUtils'),_0x18a914=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x10df1a({showActiveMarker:_0x20aaab=!0x0,setDataAttribute:_0x34815a=!0x0}={}){return(_0x358d5b,_0x1adadd,_0x5ed36f)=>{const {type:_0x3ff1b1,id:_0xa8862f}=_0x477ea0['_splitMarkerName'](_0x1adadd['markerName']),_0x3f9f43=_0x477ea0['getSuggestion'](_0xa8862f),_0x5da472=_0x3f9f43['data'];if('formatBlock'!=_0x3f9f43['type']||!_0x5da472||'setTableColumnHeader'!=_0x5da472['commandName'])return;if(_0x1adadd['item'])return void _0x358d5b['stop']();if(!_0x5ed36f['consumable']['consume'](_0x1adadd['markerRange'],_0x358d5b['name']))return;const _0x359fc6=_0x1adadd['markerRange']['start']['nodeAfter'],_0x113cb4=_0x1adadd['markerRange']['end']['nodeBefore'],_0x486f7e=_0x359fc6['parent']['parent'],{column:_0x1c456c}=_0xe980a['getCellLocation'](_0x359fc6),{column:_0x2ae017}=_0xe980a['getCellLocation'](_0x113cb4);for(let _0x259eee=_0x1c456c;_0x259eee<=_0x2ae017;_0x259eee++){const _0x4cc24e=_0xe980a['createTableWalker'](_0x486f7e,{'column':_0x259eee,'includeAllSlots':!0x1});for(const _0x565fe7 of _0x4cc24e){const _0x47ac26=_0x565fe7['cell'],_0x119a73=_0x5ed36f['mapper']['toViewElement'](_0x47ac26);_0x5ed36f['writer']['addClass']('ck-suggestion-marker-'+_0x3ff1b1,_0x119a73),_0x34815a&&_0x5ed36f['writer']['setAttribute']('data-suggestion',_0xa8862f,_0x119a73),_0x5ed36f['mapper']['bindElementToMarker'](_0x119a73,_0x1adadd['markerName']),_0x20aaab&&(_0x477ea0['activeMarkers']['includes'](_0x1adadd['markerName'])?_0x5ed36f['writer']['addClass']('ck-suggestion-marker--active',_0x119a73):_0x5ed36f['writer']['removeClass']('ck-suggestion-marker--active',_0x119a73));}}};}_0x477ea0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18a914),_0x477ea0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18a914),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10df1a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c8b29,_0x104d8,_0x4e187c)=>{_0x4e187c['options']['showSuggestionHighlights']&&_0x10df1a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c8b29,_0x104d8,_0x4e187c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3368d3,_0x1ed0c5,_0x1745cf)=>{const {type:_0x3d8e80,id:_0x3a3cd3}=_0x477ea0['_splitMarkerName'](_0x1ed0c5['markerName']),_0x13ce72=_0x477ea0['getSuggestion'](_0x3a3cd3),_0x36f329=_0x13ce72['data'];if('formatBlock'!=_0x13ce72['type']||!_0x36f329||'setTableColumnHeader'!=_0x36f329['commandName'])return;const _0x73a22=_0x1745cf['mapper']['markerNameToElements'](_0x1ed0c5['markerName']);if(_0x73a22){for(const _0x3a0905 of _0x73a22)_0x1745cf['writer']['removeClass']('ck-suggestion-marker-'+_0x3d8e80,_0x3a0905),_0x1745cf['writer']['removeClass']('ck-suggestion-marker--active',_0x3a0905),_0x1745cf['writer']['removeAttribute']('data-suggestion',_0x3a0905),_0x1745cf['mapper']['unbindElementFromMarkerName'](_0x3a0905,_0x1ed0c5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7a5ba1=this['editor'],_0x17003d=_0x7a5ba1['locale'];function _0x5ad8b0(_0x58e452){return{'type':'format','content':o(_0x17003d,'*Format:*\x20%0',_0x58e452)};}_0x7a5ba1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x148bce=>{if('formatBlock'!=_0x148bce['type'])return;const {data:_0x23a821}=_0x148bce;if(_0x23a821){if('setTableRowHeader'==_0x23a821['commandName']){const _0x31104d=_0x23a821['commandParams'][0x0]['forceValue'];return _0x5ad8b0(o(_0x17003d,_0x31104d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x23a821['commandName']){const _0x18be37=_0x23a821['commandParams'][0x0]['forceValue'];return _0x5ad8b0(o(_0x17003d,_0x18be37?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x276a3c=>[_0x276a3c,null]));class Mt extends _0x19139a{static get['requires'](){return[Ct];}['afterInit'](){const _0x55509f=this['editor'];if(!_0x55509f['plugins']['has']('TableClipboard'))return;const _0x536016=_0x55509f['plugins']['get']('TrackChangesEditing'),_0x1a0c09=_0x55509f['plugins']['get']('TableUtils'),_0x189951=_0x55509f['plugins']['get'](Ct),_0x3a4e9e=_0x55509f['plugins']['get']('TableClipboard');_0x189951['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55509f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55509f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3547c4=null;_0x55509f['model']['on']('insertContent',(_0x90ad8f,_0x2daaff)=>{const [_0xe22f49,_0x1c6b5d]=_0x2daaff,_0x542531=_0x2daaff[_0x2daaff['length']-0x1];_0x542531&&_0x542531['forceDefaultExecution']||_0x536016['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x569de2,_0x580527,_0x32285c,_0x23a940,_0x3de018){if(_0x580527&&!_0x580527['is']('documentSelection'))return!0x1;const _0x4857fc=_0x3de018['getTableIfOnlyTableInContent'](_0x569de2,_0x32285c);if(!_0x4857fc||!Ue(_0x4857fc,void 0x0,_0x23a940))return!0x1;const _0x130825=_0x23a940['getSelectionAffectedTableCells'](_0x32285c['document']['selection']);if(!_0x130825['length'])return!0x1;const _0x3f82fb=_0x130825[0x0]['findAncestor']('table'),_0x2562cf=_0x23a940['getRowIndexes'](_0x130825),_0x51d75b=_0x23a940['getColumnIndexes'](_0x130825),_0x38299={'startRow':_0x2562cf['first'],'endRow':_0x2562cf['last'],'startColumn':_0x51d75b['first'],'endColumn':_0x51d75b['last']};return 0x1==_0x130825['length']&&(_0x38299['endRow']+=_0x23a940['getRows'](_0x4857fc)-0x1,_0x38299['endColumn']+=_0x23a940['getColumns'](_0x4857fc)-0x1),Ue(_0x3f82fb,_0x38299,_0x23a940);}(_0xe22f49,_0x1c6b5d,_0x55509f['model'],_0x1a0c09,_0x3a4e9e)&&(_0x90ad8f['stop'](),_0x3547c4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55509f['model']['change'](()=>{_0x55509f['model']['insertContent'](_0x2daaff[0x0],_0x2daaff[0x1],_0x2daaff[0x2],{'forceDefaultExecution':!0x0});const _0x100f5a=_0x9dfd99(),{rowInsertionRanges:_0x32a09b,columnInsertionRanges:_0x30654e,insertionRanges:_0x191b09,deletionRanges:_0x1dfae3,cells:_0x42d068}=_0x3547c4;_0x32a09b['length']&&_0x536016['markMultiRangeInsertion'](_0x32a09b,'tablePasteRow',{'tablePasteChainId':_0x100f5a}),_0x30654e['length']&&_0x536016['markMultiRangeInsertion'](_0x30654e,'tablePasteColumn',{'tablePasteChainId':_0x100f5a}),_0x191b09['length']&&(_0x536016['markMultiRangeInsertion'](_0x191b09,'tablePaste',{'tablePasteChainId':_0x100f5a,'skipNestingCheck':!0x0}),_0x191b09['forEach'](_0x55ff1d=>_0x55ff1d['detach']?.())),_0x1dfae3['length']&&(_0x536016['markMultiRangeDeletion'](_0x1dfae3,'tablePaste',{'tablePasteChainId':_0x100f5a,'skipNestingCheck':!0x0}),_0x1dfae3['forEach'](_0x23a9c4=>_0x23a9c4['detach']?.()));const _0x1680e5=_0x536016['markMultiRangeBlockFormat'](_0x42d068['map'](({element:_0x395276})=>_0x395276),{'formatGroupId':_0x9dfd99()},[],'tablePasteCell',{'tablePasteChainId':_0x100f5a});if(_0x1680e5){const _0xc2eda4=_0x1680e5['getMarkers'](),_0x54e871=[];for(const {element:_0xde0df7,attributes:_0x3a082d}of _0x42d068){if(!_0x3a082d)continue;const _0x4587dc=_0x55509f['model']['createRangeOn'](_0xde0df7),_0xa1a9=_0xc2eda4['find'](_0x531092=>_0x531092['getRange']()['isEqual'](_0x4587dc));_0xa1a9&&_0x54e871['push']([_0xa1a9['name'],_0x3a082d]);}_0x54e871['length']&&_0x1680e5['setAttribute']('markerAttributes',Object['fromEntries'](_0x54e871));}_0x3547c4=null;}));},{'priority':_0x21c58e['high']+0xa}),_0x55509f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x543f0e,_0x37f43d)=>{const [_0x4483b8,_0x5b3870,,_0x23168b]=_0x37f43d;if(!_0x3547c4)return;_0x543f0e['stop']();const _0x192270=_0x4483b8['cell'],_0x3efb48=_0x5b3870,_0x48b77f=Oe(_0x192270),_0x150db5=Oe(_0x3efb48);_0x543f0e['return']=_0x192270;let _0x503116=null,_0x22287e=null;if(_0x150db5||_0x48b77f){if(_0x48b77f&&!_0x150db5){_0x23168b['remove'](_0x192270['getChild'](0x0));for(const _0x232bc8 of Array['from'](_0x3efb48['getChildren']()))_0x23168b['insert'](_0x232bc8,_0x192270,'end');const _0xbb1033=_0x3547c4['rowInsertionIndexes']['includes'](_0x4483b8['row']),_0x6220d2=_0x3547c4['columnInsertionIndexes']['includes'](_0x4483b8['column']);_0xbb1033||_0x6220d2||(_0x503116=_0x45a705['fromRange'](_0x23168b['createRangeIn'](_0x192270)));}else _0x150db5&&!_0x48b77f&&(_0x22287e=_0x23168b['createRangeIn'](_0x192270));}else{const _0x4451b7=_0x23168b['createElement']('tableCellSuggestion'),_0x32b6ed=_0x23168b['createElement']('tableCellSuggestion');_0x23168b['wrap'](_0x23168b['createRangeIn'](_0x192270),_0x32b6ed),_0x23168b['insert'](_0x4451b7,_0x192270,0x0);for(const _0xa9493c of Array['from'](_0x3efb48['getChildren']()))_0x23168b['insert'](_0xa9493c,_0x4451b7,'end');_0x503116=_0x45a705['fromRange'](_0x23168b['createRangeOn'](_0x4451b7)),_0x22287e=_0x45a705['fromRange'](_0x23168b['createRangeOn'](_0x32b6ed));}const _0x48e280=Array['from'](_0x3efb48['getAttributes']())['filter'](([_0x9460cd])=>Be['includes'](_0x9460cd));_0x3547c4['cells']['push']({'element':_0x192270,'attributes':_0x48e280['length']?Object['fromEntries'](_0x48e280):null}),_0x503116&&_0x3547c4['insertionRanges']['push'](_0x503116),_0x22287e&&_0x3547c4['deletionRanges']['push'](_0x22287e);},{'priority':'high'}),_0x1a0c09['on']('insertColumns',(_0x2267e4,_0x91534c)=>{const [_0x44e1fd,_0x3e57c3={}]=_0x91534c;if(!_0x3547c4)return;const _0x5d35b1=_0x3e57c3['at']||0x0,_0x13ab6b=_0x3e57c3['columns']||0x1;_0x3547c4['columnInsertionIndexes']=new Array(_0x13ab6b)['fill'](_0x5d35b1)['map']((_0x8afb4d,_0x48fc9b)=>_0x8afb4d+_0x48fc9b);for(const {cell:_0x4bb45c}of _0x1a0c09['createTableWalker'](_0x44e1fd,{'startColumn':_0x5d35b1,'endColumn':_0x5d35b1+_0x13ab6b-0x1}))_0x3547c4['columnInsertionRanges']['push'](_0x55509f['model']['createRangeOn'](_0x4bb45c));},{'priority':'low'}),_0x1a0c09['on']('insertRows',(_0x58fa6d,_0x182fd9)=>{const [_0x32155f,_0x4bcd34={}]=_0x182fd9;if(!_0x3547c4)return;const _0x5dd5b1=_0x4bcd34['at']||0x0,_0x32fecd=_0x4bcd34['rows']||0x1;_0x3547c4['rowInsertionIndexes']=new Array(_0x32fecd)['fill'](_0x5dd5b1)['map']((_0x3a73c9,_0x21c4c7)=>_0x3a73c9+_0x21c4c7);for(const {cell:_0x20a5b0}of _0x1a0c09['createTableWalker'](_0x32155f,{'startRow':_0x5dd5b1,'endRow':_0x5dd5b1+_0x32fecd-0x1}))_0x3547c4['rowInsertionRanges']['push'](_0x55509f['model']['createRangeOn'](_0x20a5b0));},{'priority':'low'}),_0x536016['descriptionFactory']['registerDescriptionCallback'](_0x55fc19=>{if(_0x55fc19['subType']&&_0x55fc19['subType']['startsWith']('tablePaste'))return _0x55fc19['previous']?{}:{'type':'insertion','content':o(_0x55509f['locale'],'*Replace\x20table\x20cells*')};});const _0x2d35da=()=>!0x1;for(const _0x575f14 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x536016['_suggestionFactory']['registerCustomCallback']('insertion',_0x575f14,'join',_0x2d35da),_0x536016['_suggestionFactory']['registerCustomCallback']('deletion',_0x575f14,'join',_0x2d35da),_0x536016['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x575f14,'join',_0x2d35da);_0x536016['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2d35da),_0x536016['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x436f0a,_0x30e95e,_0x17bec0)=>{const _0x13113f=_0x436f0a['map'](_0x107e63=>_0x107e63['getContainedElement']())['filter'](_0xacdcb2=>_0xacdcb2),_0x505004=new Map(_0x13113f['map'](_0x41b038=>[_0x41b038,null]));if(_0x3547c4){for(const {element:_0x294ddf,attributes:_0x3d21b9}of _0x3547c4['cells'])_0x3d21b9&&_0x505004['set'](_0x294ddf,_0x3d21b9);}else{if(_0x17bec0&&_0x17bec0['markerAttributes'])for(const [_0xd7c25e,_0x5bb99f]of Object['entries'](_0x17bec0['markerAttributes'])){const _0x17a3ac=_0x55509f['model']['markers']['get'](_0xd7c25e),_0x533b60=_0x17a3ac?_0x17a3ac['getRange']()['getContainedElement']():null;_0x533b60&&_0x505004['set'](_0x533b60,_0x5bb99f);}}_0x55509f['model']['change'](_0x31ad9d=>{for(const [_0x2b5fa7,_0x293606]of _0x505004)_0x31ad9d['setAttributes']({...xe,..._0x293606},_0x2b5fa7);});});const _0x368fbb=(_0x5805f2,_0x1a0bc7)=>{_0x536016['_suggestionFactory']['registerCustomCallback'](_0x5805f2,'tablePaste',_0x1a0bc7,(_0x32cd09,_0x27f08f,_0x36a54d)=>{_0x55509f['model']['change'](_0x2c0209=>{const _0xe06aa6=[];for(const _0x421899 of _0x32cd09){const _0xb5307=_0x421899['start']['nodeAfter'];_0xb5307['is']('element','tableCellSuggestion')&&_0xe06aa6['push'](_0xb5307);}_0x536016['_suggestionFactory']['getSuggestionCallback'](_0x5805f2,null,_0x1a0bc7)(_0x32cd09,_0x27f08f,_0x36a54d);for(const _0x1d96fc of _0xe06aa6)'$graveyard'!=_0x1d96fc['root']['rootName']&&_0x2c0209['unwrap'](_0x1d96fc);});});};_0x368fbb('insertion','accept'),_0x368fbb('insertion','discard'),_0x368fbb('deletion','accept'),_0x368fbb('deletion','discard'),_0x536016['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x36b369=>{const _0x8a9ef8=_0x36b369['map'](_0x3fd52e=>_0x3fd52e['getContainedElement']()),_0x5c318e=_0x8a9ef8[0x0]['findAncestor']('table'),{minRow:_0x2f3470,maxRow:_0x25c62a}=_0x189951['_getCoordsForCells'](_0x8a9ef8);_0x1a0c09['removeRows'](_0x5c318e,{'at':_0x2f3470,'rows':_0x25c62a-_0x2f3470+0x1});}),_0x536016['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x26675c=>{const _0x9fc87e=_0x26675c['map'](_0x71a1f2=>_0x71a1f2['getContainedElement']()),_0x28ccf7=_0x9fc87e[0x0]['findAncestor']('table'),{minColumn:_0x12d5cf,maxColumn:_0xd07849}=_0x189951['_getCoordsForCells'](_0x9fc87e);_0x1a0c09['removeColumns'](_0x28ccf7,{'at':_0x12d5cf,'columns':_0xd07849-_0x12d5cf+0x1});});const _0x3c3731=(_0x3ea152,_0x2b73b9)=>{if(!_0x2b73b9['subType']||!_0x2b73b9['subType']['startsWith']('tablePaste'))return;const _0x157980=_0x2b73b9['attributes']['tablePasteChainId'],_0x59891e=_0x536016['getSuggestions']()['filter'](_0x3ce655=>_0x3ce655['isInContent']&&_0x3ce655['attributes']&&_0x3ce655['attributes']['tablePasteChainId']==_0x157980);_0x59891e['length']&&_0x2b73b9['getAllAdjacentSuggestions']()['length']!=_0x59891e['length']&&_0x59891e['reduce']((_0x1b7875,_0x38988b)=>(_0x1b7875['next']=_0x38988b,_0x38988b['previous']=_0x1b7875,_0x38988b));};function _0x23a001(_0x414a73,_0x10551f=!0x0){const {id:_0x4a6ae3,authorId:_0x2e8fa5}=_0x536016['_splitMarkerName'](_0x414a73['markerName']),_0x127929=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x46117a=_0x536016['activeMarkers']['includes'](_0x414a73['markerName']);return _0x46117a&&_0x127929['push']('ck-suggestion-marker--active'),{'classes':_0x127929,'attributes':{'data-suggestion':_0x4a6ae3,'data-author-id':_0x2e8fa5},'priority':_0x46117a&&_0x10551f?0xbc2:0xbb8};}_0x536016['on']('suggestionLoaded',_0x3c3731,{'priority':'high'}),_0x536016['on']('suggestionUnloaded',_0x3c3731,{'priority':'high'}),_0x55509f['model']['document']['registerPostFixer'](()=>{let _0x56ee4c=!0x1;const _0x42becf=Array['from'](_0x55509f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c9dd8,data:_0x2edca9}of _0x42becf){const {group:_0x40543d,type:_0x378d8a,id:_0x10c75a}=_0x536016['_splitMarkerName'](_0x3c9dd8);if('suggestion'!=_0x40543d||'deletion'!=_0x378d8a||_0x2edca9['oldRange'])continue;if(!_0x536016['hasSuggestion'](_0x10c75a))continue;const _0x551eb1=_0x536016['getSuggestion'](_0x10c75a)['getRanges'](),_0x305498=_0x55509f['plugins']['get']('Users')['me'];for(const _0xb696eb of _0x536016['getSuggestions']()){if(!_0xb696eb['isInContent']||_0xb696eb['author']!=_0x305498)continue;if('formatBlock'!=_0xb696eb['type']||'tablePasteCell'!=_0xb696eb['subType'])continue;if(_0xb696eb['getRanges']()['every'](_0x199927=>_0x551eb1['some'](_0x5ad121=>_0x5ad121['containsRange'](_0x199927,!0x0)))){for(const _0x3ac6d0 of _0xb696eb['getAllAdjacentSuggestions']())_0x3ac6d0['isInContent']&&(_0x3ac6d0['discard'](),_0x56ee4c=!0x0);}}}return _0x56ee4c;}),_0x55509f['model']['document']['registerPostFixer'](_0x5682b2=>{const _0x124cdc=_0x55509f['commands']['get']('redo');if(!_0x124cdc||!_0x124cdc['_createdBatches']['has'](_0x5682b2['batch']))return!0x1;let _0x115a30=!0x1;const _0x49c30e=_0x55509f['plugins']['get']('Users')['me'],_0x4cc39a=_0x55509f['model']['document']['differ']['getChanges'](),_0x1e7c72=Array['from'](_0x55509f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3e98be,data:_0x132fd8})=>{const {group:_0x435ebc,subType:_0x1e5f21,authorId:_0x265468}=_0x536016['_splitMarkerName'](_0x3e98be);return'suggestion'==_0x435ebc&&'tablePaste'==_0x1e5f21&&_0x265468==_0x49c30e['id']&&!_0x132fd8['oldRange'];});for(const _0x58f448 of _0x4cc39a){if('insert'!=_0x58f448['type']||'tableCellSuggestion'!=_0x58f448['name']||0x1!=_0x58f448['length'])continue;const _0x47df22=_0x5682b2['createRange'](_0x58f448['position'],_0x58f448['position']['getShiftedBy'](0x1));if(!_0x1e7c72['find'](({data:_0x10c7a7})=>_0x10c7a7['newRange']['isEqual'](_0x47df22))){for(const {name:_0x4543ee,data:_0x706bea}of _0x1e7c72)if(_0x47df22['containsRange'](_0x706bea['newRange'])){_0x5682b2['updateMarker'](_0x4543ee,{'range':_0x47df22}),_0x115a30=!0x0;break;}}}return _0x115a30;}),_0x55509f['model']['document']['registerPostFixer'](_0x4ae638=>{let _0x385a39=!0x1;const _0x5924b1=_0x55509f['plugins']['get']('Users')['me'],_0x113e53=_0x536016['getSuggestions']()['filter'](_0x5637f9=>_0x5637f9['isInContent']&&_0x5637f9['author']==_0x5924b1),_0x983000=new Set(),_0x2a4a04=new Set();for(const _0x517693 of _0x113e53)if('tablePaste'==_0x517693['subType'])for(const _0x35757a of _0x517693['getMarkers']()){const _0x22366e=_0x35757a['getRange']()['getContainedElement']();if(_0x22366e){if(_0x22366e['is']('element','tableCellSuggestion')&&Oe(_0x22366e)){_0x517693['removeMarker'](_0x35757a['name']),_0x983000['add'](_0x22366e),_0x385a39=!0x0;const _0x1e687e=_0x22366e['nextSibling'],_0x2142fd=_0x22366e['previousSibling'],_0x1bb054=_0x1e687e&&_0x1e687e['is']('element','tableCellSuggestion'),_0x576d65=_0x2142fd&&_0x2142fd['is']('element','tableCellSuggestion');_0x1bb054&&!_0x983000['has'](_0x1e687e)&&_0x2a4a04['add'](_0x1e687e),_0x576d65&&!_0x983000['has'](_0x2142fd)&&_0x2a4a04['add'](_0x2142fd);}else _0x22366e['is']('element','paragraph')&&_0x22366e['isEmpty']&&(_0x517693['removeMarker'](_0x35757a['name']),_0x385a39=!0x0);}}else{if('tablePasteCell'==_0x517693['subType']){if(!_0x517693['attributes']||!_0x517693['attributes']['tablePasteChainId'])continue;const _0x3adbaf=_0x517693['attributes']['markerAttributes'];if(_0x3adbaf&&Object['keys'](_0x3adbaf)['length'])continue;const _0x3bf094=_0x517693['attributes']['tablePasteChainId'];let _0x1cd471=!0x0,_0x183c95=!0x0;for(const _0x59a2d3 of _0x113e53)if(_0x59a2d3['subType']&&_0x59a2d3['subType']['startsWith']('tablePaste')){if(!_0x59a2d3['attributes']['tablePasteChainId']){_0x183c95=!0x1;break;}if(_0x59a2d3['id']!=_0x517693['id']&&_0x59a2d3['attributes']['tablePasteChainId']==_0x3bf094){_0x1cd471=!0x1;break;}}_0x183c95&&_0x1cd471&&(_0x517693['removeMarkers'](),_0x385a39=!0x0);}}for(const _0x592a71 of _0x983000)_0x4ae638['remove'](_0x592a71);for(const _0x106a3f of _0x2a4a04)_0x4ae638['unwrap'](_0x106a3f);return _0x385a39;}),_0x55509f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x51b7f0=>_0x23a001(_0x51b7f0),'converterPriority':'high'}),_0x55509f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf9d420,_0x17c584)=>_0x17c584['options']['showSuggestionHighlights']?_0x23a001(_0xf9d420,!0x1):null,'converterPriority':'high'});const _0x555c32=_0x55509f['editing']['view'];this['listenTo'](_0x555c32['document'],'clipboardOutput',(_0x35f499,_0xb1d079)=>{const _0x298c37=[];for(const _0x162e57 of _0x555c32['createRangeIn'](_0xb1d079['content'])['getItems']())_0x162e57['is']('element','suggestion-td')&&_0x298c37['push'](_0x162e57);_0x555c32['change'](_0x3ba40f=>{for(const _0x3521dd of _0x298c37)_0x3ba40f['move'](_0x3ba40f['createRangeIn'](_0x3521dd),_0x3ba40f['createPositionBefore'](_0x3521dd)),_0x3ba40f['remove'](_0x3521dd);});});}}function Oe(_0x19e8e7){if(_0x19e8e7['isEmpty'])return!0x0;const _0x4b3eb0=_0x19e8e7['getChild'](0x0);return _0x4b3eb0['is']('element','paragraph')&&_0x4b3eb0['isEmpty'];}function Ue(_0x452bf4,_0x5635d8={},_0x10110c){for(const {isAnchor:_0x500e73,cellHeight:_0x596732,cellWidth:_0x456cc3}of _0x10110c['createTableWalker'](_0x452bf4,{'includeAllSlots':!0x0,..._0x5635d8}))if(!_0x500e73||0x1!=_0x596732||0x1!=_0x456cc3)return!0x1;return!0x0;}class $t extends _0x19139a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2d36b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d36b5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2d36b5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2d36b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d36b5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2d36b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2d36b5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4eb1e9,_0x1bcd0c){const _0x50b7dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a2903=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x322533=_0x1bcd0c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x46e3d3=_0x3a2903['getColumnGroupElement'](_0x322533);let _0x3030ac=_0x46e3d3?_0x3a2903['getTableColumnsWidths'](_0x46e3d3):null,_0x1d9188=_0x322533['getAttribute']('tableWidth')||null;const _0xd7b43d=_0x1bcd0c['tableWidth']||_0x1d9188,_0x416e11=_0x1bcd0c['columnWidths']||_0x3030ac,_0x19063e=this['editor']['plugins']['get']('Users')['me'];for(const _0x40a4fe of _0x50b7dc['getSuggestions']()){const _0x108e74=_0x40a4fe['getContainedElement']();if('resizeTable'===_0x40a4fe['subType']&&_0x108e74===_0x322533){_0x40a4fe['author']!==_0x19063e&&_0x40a4fe['discard']();const _0x4fb7a3=_0x40a4fe['data']['commandParams'];_0x1d9188=_0x4fb7a3[0x0]['tableWidth'],_0x3030ac=_0x4fb7a3[0x0]['columnWidths'];break;}}_0x4eb1e9({'table':_0x322533,'tableWidth':_0xd7b43d,'columnWidths':_0x416e11}),_0x50b7dc['markBlockFormat'](_0x322533,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1d9188,'columnWidths':_0x3030ac}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x15f59c){if('formatBlock'!=_0x15f59c['type']&&'formatInline'!=_0x15f59c['type'])return;const {data:_0x40b145}=_0x15f59c;if(_0x40b145&&'resizeTable'===_0x40b145['formatGroupId']){const _0x2ed912='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2ed912)};}}}class Bt extends _0x19139a{['afterInit'](){const _0x240c41=this['editor'];_0x240c41['plugins']['has']('Template')&&_0x240c41['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x19139a{['afterInit'](){const _0x194ebc=this['editor'];if(!_0x194ebc['commands']['get']('insertTableOfContents'))return;_0x194ebc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7c3932=_0x194ebc['plugins']['get']('TrackChangesEditing'),_0x4fabc7=_0x194ebc['locale'];_0x7c3932['descriptionFactory']['registerElementLabel']('tableOfContents',_0xbc9e42=>o(_0x4fabc7,'ELEMENT_TABLE_OF_CONTENTS',_0xbc9e42));}}class Rt extends _0x19139a{['afterInit'](){const _0x14a94e=this['editor'];if(!_0x14a94e['plugins']['has']('Title'))return;const _0x33846b=_0x14a94e['plugins']['get']('TrackChangesEditing');_0x33846b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x14a94e['locale'],'ELEMENT_TITLE')),_0x14a94e['model']['document']['registerPostFixer'](_0xc11a6a=>{let _0x5ab926=!0x1;const _0x49c6ab=Array['from'](_0x14a94e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3399f4,data:_0x228e10}of _0x49c6ab){const {group:_0x4dc814}=_0x33846b['_splitMarkerName'](_0x3399f4);if('suggestion'!==_0x4dc814||!_0x228e10['newRange'])continue;const _0x5de3e7=_0x228e10['newRange'],_0x3c7725=_0x5de3e7['end']['nodeBefore'];if(!_0x3c7725||!_0x3c7725['is']('element','title-content'))continue;if(!_0x5de3e7['start']['isTouching'](_0x5de3e7['end']))continue;const _0x3c91ac=_0x14a94e['model']['schema']['getNearestSelectionRange'](_0x5de3e7['end'],'forward');if(_0x3c91ac&&_0x3c91ac['isCollapsed']){const _0x1ee43b=_0xc11a6a['createRange'](_0x5de3e7['start'],_0x3c91ac['start']);_0x1ee43b['isEqual'](_0x5de3e7)||(_0xc11a6a['updateMarker'](_0x3399f4,{'range':_0x1ee43b}),_0x5ab926=!0x0);}_0x5ab926||(_0xc11a6a['removeMarker'](_0x3399f4),_0x5ab926=!0x0);}return _0x5ab926;});}}class Tt extends _0x19139a{['afterInit'](){const _0x1025b9=this['editor'],_0x4f7830=_0x1025b9['plugins']['get']('TrackChangesEditing');_0x1025b9['plugins']['has']('Uploadcare')&&(_0x4f7830['enableCommand']('uploadcare'),_0x1025b9['plugins']['has']('UploadcareImageEdit')&&(_0x4f7830['enableCommand']('uploadcareImageEdit'),_0x4f7830['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f7830['registerBlockAttribute']('uploadcareImageId'),_0x4f7830['descriptionFactory']['registerDescriptionCallback'](_0x136b27=>{if('attribute'!=_0x136b27['type'])return;const {data:_0x5d22b5}=_0x136b27;return _0x5d22b5&&'uploadcareImageId'==_0x5d22b5['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x19139a{['afterInit'](){const _0x26882c=this['editor'],_0xfae020=_0x26882c['plugins']['get']('TrackChangesEditing');_0x26882c['plugins']['has']('UndoEditing')&&(_0xfae020['enableCommand']('undo'),_0xfae020['enableCommand']('redo'));}}class Et extends _0x19139a{static get['requires'](){return[Ct];}['afterInit'](){const _0x9df4fb=this['editor'];if(!_0x9df4fb['plugins']['has']('TableCaptionEditing'))return;_0x9df4fb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x19139a{['tableProperties'];['tableCellProperties'];constructor(_0x554b6a){super(_0x554b6a),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 _0x4c9972=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xd38462 of this['tableProperties'])_0x4c9972['enableCommand'](_0xd38462,(_0x2fb0b4,_0x2966ab)=>{const _0x2a8e10=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xd38462,[_0x2a8e10],this['tableProperties'],'tableProperties',_0x2fb0b4,_0x2966ab);});_0x4c9972['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c9972['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c9972['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x299700,_0x1caf53)=>this['handleDiscardAction'](this['tableProperties'],_0x299700,_0x1caf53)),_0x4c9972['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6353f of this['tableCellProperties'])_0x4c9972['enableCommand'](_0x6353f,(_0x58fa3e,_0xf615cd)=>{const _0x19162d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6353f,_0x19162d,this['tableCellProperties'],'tableCellProperties',_0x58fa3e,_0xf615cd);});_0x4c9972['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c9972['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c9972['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5154f4,_0xa82264)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5154f4,_0xa82264)),_0x4c9972['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c9972['descriptionFactory']['registerDescriptionCallback'](_0x3ed56f=>this['handleSuggestionDescription'](_0x3ed56f));}['_handlePropertyChange'](_0x6532d5,_0x2debc9,_0x16e388,_0x440627,_0x46bf7f,_0x5634ba){const _0x1d6a55=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5634ba['batch'],()=>{for(const _0x45f163 of _0x2debc9){if(this['_getSuggestion'](_0x45f163,_0x440627))_0x46bf7f(_0x5634ba);else{const _0xa0b1b9={};for(const _0x6ff01e of _0x16e388){const _0x24649d=_0x45f163['getAttribute'](_0x6ff01e);void 0x0!==_0x24649d&&(_0xa0b1b9[_0x6ff01e]=_0x24649d);}_0x46bf7f(_0x5634ba),_0x1d6a55['markBlockFormat'](_0x45f163,{'commandParams':[_0xa0b1b9]},[],_0x440627);}}});}['handleDiscardAction'](_0x5ef73d,_0x521275,_0x2a34f4){const _0x193bc9=_0x521275[0x0]['start']['nodeAfter'],_0x1aa7fe=_0x2a34f4['commandParams'][0x0];this['editor']['model']['change'](_0x3c1391=>{for(const _0x1eb9cd of _0x5ef73d)void 0x0!==_0x1aa7fe[_0x1eb9cd]?_0x3c1391['setAttribute'](_0x1eb9cd,_0x1aa7fe[_0x1eb9cd],_0x193bc9):_0x3c1391['removeAttribute'](_0x1eb9cd,_0x193bc9);});}['handleSuggestionDescription'](_0x10c545){if(_0x10c545['data'])switch(_0x10c545['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'](_0x375d3b,_0x27b127){const _0x28cb9f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1cbd3e of _0x28cb9f['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ac5ff=_0x1cbd3e['getContainedElement']();if(_0x1cbd3e['subType']===_0x27b127&&_0x4ac5ff===_0x375d3b)return _0x1cbd3e;}return null;}}const m='$elementName';class p extends _0x19139a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x58d0e8,_0x23c5a5,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eff8b){super(_0x4eff8b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49b45e,_0x423c17,_0x5ca15f,_0xcf8db2)=>{this['_model']['change'](()=>{for(const _0x3cb633 of[..._0xcf8db2,..._0x5ca15f])this['_model']['markers']['has'](_0x3cb633)&&_0x4eff8b['editing']['reconvertMarker'](_0x3cb633);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4eff8b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4eff8b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4eff8b['config']['get']('trackChanges.trackFormatChanges'),_0x4eff8b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4eff8b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4eff8b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4eb9a8=this['editor'],_0x175dd5=(_0x294ecf,_0x5beca5)=>{if('attribute'!=_0x294ecf)return'ck-suggestion-marker-'+_0x294ecf;const _0x29b28b=_0x5beca5['split']('|')[0x0];return this['_isBlockAttribute'](_0x29b28b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4eb9a8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x89631c=>{const {id:_0x13bd54,authorId:_0x36b207,type:_0x4d4f36,subType:_0x4df0bd}=this['_splitMarkerName'](_0x89631c['markerName']),_0x2bdcdc=['ck-suggestion-marker',_0x175dd5(_0x4d4f36,_0x4df0bd)];let _0x2f658a=0xbb8;return this['activeMarkers']['includes'](_0x89631c['markerName'])&&(_0x2bdcdc['push']('ck-suggestion-marker--active'),_0x2f658a=0xbc2),'deletion'==_0x4d4f36&&(_0x2f658a+=0x5),{'classes':_0x2bdcdc,'attributes':{'data-suggestion':_0x13bd54,'data-author-id':_0x36b207},'priority':_0x2f658a};}}),_0x4eb9a8['conversion']['for']('dataDowncast')['add'](_0x5011f9=>{_0x5011f9['on']('addMarker:suggestion',(_0x321ea3,_0x6b128e,_0x5ec472)=>{if(!_0x5ec472['options']['showSuggestionHighlights'])return;const _0x32ce70=_0x6b128e['item'];if(!_0x32ce70)return;const _0x297489=_0x5ec472['mapper']['toViewElement'](_0x32ce70);_0x4eb9a8['model']['schema']['isObject'](_0x32ce70)&&_0x297489&&!_0x297489['getCustomProperty']('widget')&&_0x297489['is']('containerElement')&&_0x402457(_0x297489,_0x5ec472['writer']);},{'priority':'high'});}),_0x4eb9a8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x443bd5,_0x355200)=>{if(!_0x355200['options']['showSuggestionHighlights'])return null;const {type:_0xec3aa1,subType:_0x2ea512}=this['_splitMarkerName'](_0x443bd5['markerName']);return{'classes':['ck-suggestion-marker',_0x175dd5(_0xec3aa1,_0x2ea512)],'priority':0xbb8};}});const _0x278e2b=({showActiveMarkers:_0x1e9d8e=!0x0,isAttributeSuggestion:_0x32d133=!0x1}={})=>(_0xd2276,_0x52f245,_0x5e3d8d)=>{if(!_0x52f245['item'])return;const {id:_0x4278e3,authorId:_0x49e29c}=this['_splitMarkerName'](_0x52f245['markerName']);if(_0x32d133){const _0x166315=this['_suggestions']['get'](_0x4278e3),_0x5b40bf=this['_getAttributeKey'](_0x166315);if(!this['_isBlockAttribute'](_0x5b40bf))return;}if(_0x52f245['item']['is']('selection'))return void _0x5e3d8d['consumable']['consume'](_0x52f245['item'],_0xd2276['name']);const _0x53eeb6=_0x5e3d8d['mapper']['toViewElement'](_0x52f245['item']);if(_0x52f245['item']['is']('element')&&_0x4eb9a8['model']['schema']['isBlock'](_0x52f245['item'])&&!_0x53eeb6['getCustomProperty']('addHighlight')){_0x5e3d8d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x53eeb6),_0x5e3d8d['writer']['setAttribute']('data-suggestion',_0x4278e3,_0x53eeb6),_0x5e3d8d['writer']['setAttribute']('data-author-id',_0x49e29c,_0x53eeb6),_0x5e3d8d['mapper']['bindElementToMarker'](_0x53eeb6,_0x52f245['markerName']),_0x1e9d8e&&(this['activeMarkers']['includes'](_0x52f245['markerName'])?_0x5e3d8d['writer']['addClass']('ck-suggestion-marker--active',_0x53eeb6):_0x5e3d8d['writer']['removeClass']('ck-suggestion-marker--active',_0x53eeb6));for(const _0x2780c8 of _0x4eb9a8['model']['createRangeIn'](_0x52f245['item'])['getItems']())_0x5e3d8d['consumable']['consume'](_0x2780c8,_0xd2276['name']);_0x5e3d8d['consumable']['consume'](_0x52f245['item'],_0xd2276['name']);}};_0x4eb9a8['conversion']['for']('dataDowncast')['add'](_0x437a22=>{_0x437a22['on']('addMarker:suggestion:formatBlock',(_0x5857be,_0x7e8ff6,_0x2f7335)=>{_0x2f7335['options']['showSuggestionHighlights']&&_0x278e2b({'showActiveMarkers':!0x1})(_0x5857be,_0x7e8ff6,_0x2f7335);},{'priority':'highest'});}),_0x4eb9a8['conversion']['for']('dataDowncast')['add'](_0x2f67a5=>{_0x2f67a5['on']('addMarker:suggestion:attribute',(_0x27a235,_0x4817e0,_0x2d31a1)=>{_0x2d31a1['options']['showSuggestionHighlights']&&_0x278e2b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27a235,_0x4817e0,_0x2d31a1);},{'priority':'highest'});}),_0x4eb9a8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3b044f,_0x44e433)=>_0x44e433['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3b044f['substr'](0xb)}}),_0x4eb9a8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x120398,{writer:_0x51061d})=>{let _0xee5a60='suggestion:'+_0x120398['getAttribute']('suggestion-type')+':'+_0x120398['getAttribute']('id');return _0x120398['getAttribute']('marker-count')&&(_0xee5a60+=':'+_0x120398['getAttribute']('marker-count')),_0x51061d['createElement']('$marker',{'data-name':_0xee5a60});}}),_0x4eb9a8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4eb9a8['conversion']['for']('editingDowncast')['add'](_0xdedb60=>{_0xdedb60['on']('addMarker:suggestion:formatBlock',_0x278e2b(),{'priority':'high'});}),_0x4eb9a8['conversion']['for']('editingDowncast')['add'](_0x139b86=>{_0x139b86['on']('addMarker:suggestion:attribute',_0x278e2b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4eb9a8['conversion']['for']('editingDowncast')['add'](_0xb47078=>{_0xb47078['on']('removeMarker:suggestion:formatBlock',(_0x5783c1,_0xe37503,_0x40a17b)=>{const _0x2d6d42=_0x40a17b['mapper']['markerNameToElements'](_0xe37503['markerName']);if(_0x2d6d42){for(const _0x127f70 of _0x2d6d42)_0x127f70['getCustomProperty']('addHighlight')||(_0x40a17b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x127f70),_0x40a17b['writer']['removeAttribute']('data-suggestion',_0x127f70),_0x40a17b['writer']['removeAttribute']('data-author-id',_0x127f70),_0x40a17b['mapper']['unbindElementFromMarkerName'](_0x127f70,_0xe37503['markerName']));}},{'priority':'high'});}),_0x4eb9a8['conversion']['for']('editingDowncast')['add'](_0x2df256=>{_0x2df256['on']('removeMarker:suggestion:attribute',(_0x1689c6,_0x248838,_0x209489)=>{const _0x1d442c=_0x209489['mapper']['markerNameToElements'](_0x248838['markerName']);if(!_0x1d442c)return;const {id:_0x35e8fc}=this['_splitMarkerName'](_0x248838['markerName']),_0x40930d=this['_suggestions']['get'](_0x35e8fc),_0x4bb9ed=this['_getAttributeKey'](_0x40930d);if(this['_isBlockAttribute'](_0x4bb9ed)){for(const _0x5dc55b of _0x1d442c)_0x5dc55b['getCustomProperty']('addHighlight')||(_0x209489['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5dc55b),_0x209489['writer']['removeAttribute']('data-suggestion',_0x5dc55b),_0x209489['writer']['removeAttribute']('data-author-id',_0x5dc55b),_0x209489['mapper']['unbindElementFromMarkerName'](_0x5dc55b,_0x248838['markerName']));}},{'priority':'high'});}),_0x4eb9a8['model']['document']['registerPostFixer'](_0x18fc87=>{let _0x3c685a=!0x1;const _0x27427c=Array['from'](_0x4eb9a8['model']['document']['differ']['getChangedMarkers']()),_0x5de53d=new Set();for(const {name:_0x515fcd,data:_0x27269f}of _0x27427c){const {group:_0x9c33d1,type:_0x156047,subType:_0x5dc6ab,id:_0x113329}=this['_splitMarkerName'](_0x515fcd);if('suggestion'!==_0x9c33d1)continue;const _0x153f88=this['_suggestions']['get'](_0x113329);if(null!=_0x27269f['newRange']){'formatInline'==_0x156047&&(_0x3c685a=_0x3c685a||Lt(_0x27269f['newRange'],_0x515fcd,_0x18fc87,_0x4eb9a8['model']['schema']));const _0x26cf35='attribute'==_0x156047&&this['_isBlockAttribute'](_0x5dc6ab['split']('|')[0x0]);if(_0x27269f['newRange']['isCollapsed']||'$graveyard'==_0x27269f['newRange']['root']['rootName']||'formatBlock'==_0x156047&&!Ht(_0x27269f['newRange'])||_0x26cf35&&!Ht(_0x27269f['newRange'])||'deletion'==_0x156047&&!(!Ft(_0x5a63c3=_0x27269f['newRange'])&&!function(_0x36cd0a){return _0x36cd0a['start']['parent']==_0x36cd0a['end']['nodeBefore']&&_0x36cd0a['start']['isAtEnd'];}(_0x5a63c3)))_0x18fc87['removeMarker'](_0x515fcd),_0x3c685a=!0x0;else{if(!_0x153f88||!_0x153f88['isInContent'])continue;if(_0x27269f['newRange']&&_0x27269f['oldRange']&&_0x27269f['newRange']['isEqual'](_0x27269f['oldRange']))continue;_0x5de53d['add'](_0x153f88);}}}var _0x5a63c3;return _0x5de53d['size']>0x0&&(_0x3c685a=!!this['_joinWithAdjacentSuggestions'](_0x5de53d)||_0x3c685a),_0x3c685a;}),_0x4eb9a8['model']['document']['registerPostFixer'](_0x32077f=>{let _0x57d33c=!0x1;for(const _0x320941 of _0x4eb9a8['model']['document']['differ']['getChanges']())if('insert'==_0x320941['type'])for(const _0x457889 of this['_suggestions']['values']()){if(_0x457889['isMultiRange']||!_0x457889['isInContent'])continue;const _0x24649c='formatBlock'==_0x457889['type'],_0x3d167d=this['_getAttributeKey'](_0x457889),_0x5b1a6a=_0x3d167d&&this['_isBlockAttribute'](_0x3d167d);if(!_0x24649c&&!_0x5b1a6a)continue;const _0x5f82db=_0x457889['getFirstRange']();if(_0x5f82db['start']['parent']!=_0x5f82db['end']['parent']&&!_0x5f82db['end']['isAtEnd']){const _0x16c05b=_0x4eb9a8['model']['createPositionAt'](_0x5f82db['start']['nodeAfter'],'end'),_0x3847d6=_0x4eb9a8['model']['createRange'](_0x5f82db['start'],_0x16c05b);_0x32077f['updateMarker'](_0x457889['getFirstMarker'](),{'range':_0x3847d6}),_0x57d33c=!0x0;}}return _0x57d33c;}),_0x4eb9a8['model']['document']['registerPostFixer'](_0x391b20=>this['_processAttributeChanges'](_0x391b20)),_0x4eb9a8['model']['document']['registerPostFixer'](_0x2fa4f1=>!_0x2fa4f1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2fa4f1)),_0x4eb9a8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4eb9a8['model']['document']['on']('change:data',(_0x557ff4,_0xf02d94)=>{if(!_0xf02d94['isLocal']||_0xf02d94['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x29bd4a=_0x4eb9a8['model']['document']['differ']['getChanges']();if(0x0==_0x29bd4a['length'])return;const _0x50d9fe=[],_0x34fc4c=_0x29bd4a['filter'](_0x11fa87=>'attribute'==_0x11fa87['type']),_0x538006=_0x29bd4a['filter'](_0x2db329=>'insert'==_0x2db329['type']&&'$text'!=_0x2db329['name']);for(const _0x270094 of _0x34fc4c)this['_isRegisteredAttribute'](_0x270094['attributeKey'])&&_0x50d9fe['push']({'key':_0x270094['attributeKey'],'newValue':_0x270094['attributeNewValue'],'oldValue':_0x270094['attributeOldValue'],'range':qt(_0x270094['range'],_0x4eb9a8['model'])});for(const _0x162105 of _0x538006){if('rename'!=_0x162105['action']&&'refresh'!=_0x162105['action'])continue;const _0x503177=zt(_0x162105['position']['nodeAfter'],_0x4eb9a8['model']),_0x480701=_0x162105['before'];'rename'==_0x162105['action']&&_0x50d9fe['push']({'key':m,'newValue':_0x162105['name'],'oldValue':_0x480701['name'],'range':_0x503177});for(const [_0x1b0a7f,_0x14dba9]of _0x480701['attributes']){if(!this['_isRegisteredAttribute'](_0x1b0a7f))continue;const _0x50e01b=_0x162105['attributes']['get'](_0x1b0a7f);_0x14dba9!==_0x50e01b&&_0x50d9fe['push']({'key':_0x1b0a7f,'newValue':_0x50e01b,'oldValue':_0x14dba9,'range':_0x503177});}for(const [_0x31e13f,_0x41cb83]of _0x162105['attributes'])this['_isRegisteredAttribute'](_0x31e13f)&&(_0x480701['attributes']['has'](_0x31e13f)||_0x50d9fe['push']({'key':_0x31e13f,'newValue':_0x41cb83,'oldValue':null,'range':_0x503177}));}0x0!=_0x50d9fe['length']&&_0x4eb9a8['model']['enqueueChange'](_0xf02d94,_0x35149d=>{const _0x53b41d=_0x9dfd99();for(const {range:_0x468e51,key:_0x517ef9,oldValue:_0xede901,newValue:_0x263d21}of _0x50d9fe)this['markAttributeChange'](_0x468e51,_0x517ef9,_0xede901,_0x263d21,{'groupId':_0x53b41d});this['_reduceExistingSuggestions'](_0x35149d,_0x50d9fe);});},{'priority':'lowest'}),_0x4eb9a8['model']['markers']['on']('update:suggestion',(_0x42047f,_0xa7607e,_0x5988c9)=>{if(null==_0x5988c9){const {id:_0x51dff9}=this['_splitMarkerName'](_0xa7607e['name']),_0x3f951e=this['_suggestions']['get'](_0x51dff9);_0x3f951e&&_0x3f951e['addMarkerName'](_0xa7607e['name']);}}),_0x4eb9a8['model']['document']['on']('change:data',()=>{const _0x21fe2f=Array['from'](_0x4eb9a8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20aba8=>'suggestion'===this['_splitMarkerName'](_0x20aba8['name'])['group']);if(0x0===_0x21fe2f['length'])return;_0x21fe2f['sort']((_0x376eac,_0x63f440)=>{const _0x398074=_0x376eac['data']['oldRange'],_0xb6d758=_0x63f440['data']['oldRange'];return null===_0x398074&&null===_0xb6d758?0x0:null===_0x398074&&null!==_0xb6d758?-0x1:null!==_0x398074&&null===_0xb6d758?0x1:_0x398074['start']['isBefore'](_0xb6d758['start'])?-0x1:0x1;});const _0x184662=new Set(),_0x3d8d94=new Set();for(const {name:_0x4fe4b2,data:_0x9e9bb1}of _0x21fe2f){const {id:_0x204621}=this['_splitMarkerName'](_0x4fe4b2);if(null===_0x9e9bb1['oldRange']){const _0x15c4b7=this['_handleNewSuggestionMarker'](_0x4fe4b2);_0x3d8d94['add'](_0x15c4b7);}else{const _0x3bd6ee=this['_suggestions']['get'](_0x204621);null!==_0x9e9bb1['newRange']||_0x3bd6ee['isInContent']?(_0x184662['add'](_0x3bd6ee['head']),_0x3d8d94['add'](_0x3bd6ee)):this['_removeSuggestion'](_0x3bd6ee);}}_0x3d8d94['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d8d94);for(const _0x2f73b1 of _0x184662)this['fire']('suggestionChanged',_0x2f73b1);}),_0x4eb9a8['model']['on']('applyOperation',(_0x7ef539,_0x2cb4ea)=>{const _0x4f83a6=_0x2cb4ea[0x0];if(!this['_suggestions']['size'])return;if(!_0x4f83a6['isDocumentOperation'])return;if(_0x4f83a6['batch']['isUndo']||!_0x4f83a6['batch']['isLocal'])return;let _0x365e8b,_0x4d7fc0;switch(_0x4f83a6['type']){case'insert':_0x365e8b=_0x4eb9a8['model']['createPositionAt'](_0x4f83a6['position']),_0x4d7fc0=_0x365e8b['getShiftedBy'](_0x4f83a6['howMany']);break;case'split':_0x365e8b=_0x4eb9a8['model']['createPositionAt'](_0x4f83a6['splitPosition']),_0x4d7fc0=_0x4eb9a8['model']['createPositionAt'](_0x4f83a6['moveTargetPosition']);break;case'move':_0x365e8b=_0x4eb9a8['model']['createPositionAt'](_0x4f83a6['targetPosition']),_0x4d7fc0=_0x365e8b['getShiftedBy'](_0x4f83a6['howMany']);break;default:return;}const _0x431895=_0x4eb9a8['model']['createRange'](_0x365e8b,_0x4d7fc0);_0x4eb9a8['model']['change'](()=>{for(const {suggestion:_0x18076e,meta:_0x166ade}of this['_findSuggestions'](_0x431895)){if(_0x18076e['isMultiRange'])continue;if('formatInline'==_0x18076e['type'])continue;const _0x4d0645=this['_getAttributeKey'](_0x18076e);if(_0x4d0645&&this['_isBlockAttribute'](_0x4d0645)&&'split'!=_0x4f83a6['type'])continue;const _0x425b26=_0x18076e['data']&&_0x18076e['data']['multipleBlocks'];('formatBlock'!=_0x18076e['type']||'split'==_0x4f83a6['type']&&!_0x425b26)&&(_0x166ade['containsRangeInObject']||'insertion'==_0x18076e['type']&&_0x166ade['isOwn']||_0x18076e['getFirstRange']()['containsRange'](_0x431895)&&this['_breakSuggestionMarker'](_0x18076e,_0x365e8b,_0x4d7fc0));}});},{'priority':'lowest'}),_0x4eb9a8['model']['on']('deleteContent',(_0x34fdff,_0x3ca04e)=>{const _0x19fd31=_0x3ca04e[0x0],_0x33c813=_0x3ca04e[0x1];if(_0x33c813&&_0x33c813['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x19fd31['isCollapsed'])return;const _0x3f6b92=_0x4eb9a8['model']['schema'],{start:_0x637d0e,end:_0x571824}=_0x19fd31['getFirstRange'](),_0x3e9a7d=_0x637d0e['nodeAfter']&&_0x3f6b92['isLimit'](_0x637d0e['nodeAfter'])?null:_0x3f6b92['getNearestSelectionRange'](_0x637d0e,'forward'),_0x509298=_0x571824['nodeBefore']&&_0x3f6b92['isLimit'](_0x571824['nodeBefore'])?null:_0x3f6b92['getNearestSelectionRange'](_0x571824,'backward'),_0x1370b9=_0x4eb9a8['model']['createRange'](_0x3e9a7d?_0x3e9a7d['start']:_0x637d0e,_0x509298?_0x509298['end']:_0x571824);_0x4eb9a8['model']['change'](_0x19b070=>{this['markDeletion'](_0x1370b9);const _0x28dd4e=_0x4eb9a8['model']['schema']['getNearestSelectionRange'](_0x1370b9['start']);_0x19fd31['is']('documentSelection')?_0x19b070['setSelection'](_0x28dd4e):_0x19fd31['setTo'](_0x28dd4e);}),_0x34fdff['stop']();},{'priority':_0x21c58e['normal']+0xa}),_0x4eb9a8['model']['on']('insertContent',(_0x300be4,_0x5e2c30)=>{const _0x33b082=_0x5e2c30[_0x5e2c30['length']-0x1];_0x33b082&&_0x33b082['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4eb9a8['model']['change'](()=>{let _0x54504a=_0x4eb9a8['model']['insertContent'](_0x5e2c30[0x0],_0x5e2c30[0x1],_0x5e2c30[0x2],{'forceDefaultExecution':!0x0});if(!_0x54504a)return;_0x300be4['return']=_0x54504a['clone']();const _0xbd8444=_0x54504a['end']['nodeBefore'],_0x3960c4=_0x4eb9a8['model']['schema'];_0xbd8444&&_0x3960c4['isBlock'](_0xbd8444)&&!_0x3960c4['isObject'](_0xbd8444)&&(_0x54504a=_0x4eb9a8['model']['createRange'](_0x54504a['start'],_0x4eb9a8['model']['createPositionAt'](_0xbd8444,'end'))),this['markInsertion'](_0x54504a);}),_0x300be4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x138b0d=new O(_0x4eb9a8,this['_suggestions']);_0x4eb9a8['commands']['add']('acceptSuggestion',_0x138b0d),this['enableCommand']('acceptSuggestion');const _0x3c6d4b=new R(_0x4eb9a8,this['_suggestions']);_0x4eb9a8['commands']['add']('discardSuggestion',_0x3c6d4b),this['enableCommand']('discardSuggestion'),_0x4eb9a8['commands']['add']('acceptAllSuggestions',new x(_0x4eb9a8,_0x138b0d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4eb9a8['commands']['add']('discardAllSuggestions',new x(_0x4eb9a8,_0x3c6d4b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4eb9a8['commands']['add']('acceptSelectedSuggestions',new E(_0x4eb9a8,_0x138b0d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4eb9a8['commands']['add']('discardSelectedSuggestions',new E(_0x4eb9a8,_0x3c6d4b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2fe0d7=_0x4eb9a8['plugins']['get']('CommentsRepository');this['listenTo'](_0x2fe0d7,'addComment',(_0x47a5c5,{threadId:_0x315d83})=>{const _0x155089=this['_suggestions']['get'](_0x315d83);_0x155089&&_0x155089['commentThread']&&0x1===_0x155089['commentThread']['length']&&this['_updateSuggestionData'](_0x315d83,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2fe0d7,'removeComment',(_0x595015,{threadId:_0x1cccb7})=>{const _0x2d2de4=this['_suggestions']['get'](_0x1cccb7);_0x2d2de4&&_0x2d2de4['commentThread']&&!_0x2d2de4['commentThread']['length']&&this['_updateSuggestionData'](_0x1cccb7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5a9d93){const _0xc68631=_0x5b0dfc([0x4a,0x66,0x52,0x32,0x37,0x76,0x34,0x38,0x59,0x4b,0x49,0x30,0x33,0x54,0x75,0x77,0x4e,0x58,0x61,0x6c,0x72,0x48,0x68,0x42,0x53,0x6e,0x4c,0x62,0x7a,0x4f,0x74,0x39,0x6f,0x57,0x63,0x43,0x6a,0x6b,0x5a,0x45,0x51,0x44,0x65,0x78,0x70,0x41,0x71,0x55,0x64,0x73,0x50,0x35,0x47,0x31,0x67,0x56,0x46,0x79,0x69,0x6d,0x36,0x4d]),_0x35a5fb=0x52f7bf91,_0x4de74d=0x52f0e0a1^_0x35a5fb,_0x4c0b86=window[_0x5b0dfc([0x44,0x61,0x74,0x65])][_0x5b0dfc([0x6e,0x6f,0x77])](),_0xb4ccd7=_0x5a9d93[_0x5b0dfc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39554d=new window[(_0x5b0dfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40ffa9=>{_0xb4ccd7[_0x5b0dfc([0x6f,0x6e,0x63,0x65])](_0x5b0dfc([0x72,0x65,0x61,0x64,0x79]),_0x40ffa9);}),_0x1f2d9c={[_0x5b0dfc([0x6b,0x74,0x79])]:_0x5b0dfc([0x45,0x43]),[_0x5b0dfc([0x75,0x73,0x65])]:_0x5b0dfc([0x73,0x69,0x67]),[_0x5b0dfc([0x63,0x72,0x76])]:_0x5b0dfc([0x50,0x2d,0x32,0x35,0x36]),[_0x5b0dfc([0x78])]:_0x5b0dfc([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]),[_0x5b0dfc([0x79])]:_0x5b0dfc([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]),[_0x5b0dfc([0x61,0x6c,0x67])]:_0x5b0dfc([0x45,0x53,0x32,0x35,0x36])},_0x55a238=_0xb4ccd7[_0x5b0dfc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b0dfc([0x67,0x65,0x74])](_0x5b0dfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36b943(){let _0x5b452a,_0xeabd53=null,_0x3c507a=null;try{if(_0x55a238==_0x5b0dfc([0x47,0x50,0x4c]))return _0x5b0dfc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b452a=_0x3c4474(),!_0x5b452a)return _0x5b0dfc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b452a[_0x5b0dfc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c507a=_0x28a7c8(_0x5b452a[_0x5b0dfc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b452a[_0x5b0dfc([0x6a,0x74,0x69])])),await _0x468a89()?_0x4fc13f()?_0x5c22b6()?_0x5b0dfc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34ccd9()?(_0x5b452a[_0x5b0dfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b0dfc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeabd53=_0x2525a8(_0x5b0dfc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b452a[_0x5b0dfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b0dfc([0x74,0x72,0x69,0x61,0x6c])&&(_0xeabd53=_0x2525a8(_0x5b0dfc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4dc04f()):_0x5b0dfc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b0dfc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b0dfc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xcc7eb5){return _0x5b0dfc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c22b6(){const _0x4162b9=[_0x5b0dfc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b0dfc([0x74,0x72,0x69,0x61,0x6c])][_0x5b0dfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b452a[_0x5b0dfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c0b86/0x3e8:0xe10*_0x4de74d;return _0x5b452a[_0x5b0dfc([0x65,0x78,0x70])]<_0x4162b9;}function _0x4fc13f(){const _0x545d1b=_0x5b452a[_0x5b0dfc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x545d1b)return!0x1;if(_0x545d1b[_0x5b0dfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0dfc([0x2a])))return!0x0;if(_0x545d1b[_0x5b0dfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0dfc([0x54,0x43])))return!0x0;if(_0x545d1b[_0x5b0dfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0dfc([0x52,0x54,0x43]))){if(_0x1562bc())return!0x0;if(_0x357837()||_0x2a673d())return!0x0;}return!0x1;}function _0x34ccd9(){const _0x2157a9=_0x5b452a[_0x5b0dfc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2157a9||0x0==_0x2157a9[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55b10e}=new URL(window[_0x5b0dfc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2157a9[_0x5b0dfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b10e))return!0x0;const _0x393ccd=_0x55b10e[_0x5b0dfc([0x73,0x70,0x6c,0x69,0x74])](_0x5b0dfc([0x2e]));return _0x2157a9[_0x5b0dfc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b3d63=>_0x2b3d63[_0x5b0dfc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0dfc([0x2a])))[_0x5b0dfc([0x6d,0x61,0x70])](_0x1410fa=>_0x1410fa[_0x5b0dfc([0x73,0x70,0x6c,0x69,0x74])](_0x5b0dfc([0x2e])))[_0x5b0dfc([0x73,0x6f,0x6d,0x65])](_0x1a78fa=>_0x393ccd[_0x5b0dfc([0x65,0x76,0x65,0x72,0x79])]((_0x48dfb6,_0x24a98f)=>_0x1a78fa[_0x24a98f]===_0x48dfb6||_0x1a78fa[_0x24a98f]===_0x5b0dfc([0x2a])));}function _0x4dc04f(){return _0xeabd53&&_0x3c507a?new window[(_0x5b0dfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11708d,_0xfca70e)=>{_0xeabd53[_0x5b0dfc([0x74,0x68,0x65,0x6e])](_0x11708d,_0xfca70e),_0x3c507a[_0x5b0dfc([0x74,0x68,0x65,0x6e])](_0x30c76c=>{_0x30c76c!=_0x5b0dfc([0x56,0x61,0x6c,0x69,0x64])&&_0x11708d(_0x30c76c);},_0xfca70e);}):_0xeabd53||_0x3c507a||_0x5b0dfc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28a7c8(_0x58ca24,_0x2aeba){return new window[(_0x5b0dfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21fcd3=>{if(_0x343001())return _0x21fcd3(_0x5b0dfc([0x56,0x61,0x6c,0x69,0x64]));_0x2d9424(),_0xb4ccd7[_0x5b0dfc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b0dfc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16f4c0=!0x1;const _0x2ecaad=_0x9dfd99();function _0x4a584b(_0x580788){return!!_0x580788&&(typeof _0x580788===_0x5b0dfc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x580788===_0x5b0dfc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x580788[_0x5b0dfc([0x74,0x68,0x65,0x6e])]===_0x5b0dfc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x580788[_0x5b0dfc([0x63,0x61,0x74,0x63,0x68])]===_0x5b0dfc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9e29fa(_0x1bad49){_0x2f28b4(_0x1bad49)[_0x5b0dfc([0x74,0x68,0x65,0x6e])](_0x3b9a53=>{if(!_0x3b9a53||_0x3b9a53[_0x5b0dfc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b0dfc([0x6f,0x6b]))return _0x5b0dfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa82e1(_0x24f627(_0x2ecaad+_0x2aeba))!=_0x3b9a53[_0x5b0dfc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b0dfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b0dfc([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b0dfc([0x74,0x68,0x65,0x6e])](_0x4855d4=>(_0x5a5c07(),_0x4855d4),()=>{const _0x35ca7e=_0x46ba97();return null==_0x35ca7e?(_0x5a5c07(),_0x5b0dfc([0x56,0x61,0x6c,0x69,0x64])):_0x5b0dfc(_0x4c0b86-_0x35ca7e>(0x76fb3b91^_0x35a5fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b0dfc([0x74,0x68,0x65,0x6e])](_0x21fcd3)[_0x5b0dfc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21fcd3(_0x5b0dfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23750c=0x52c15111^_0x35a5fb;function _0x5a5c07(){const _0x171758=_0x5b0dfc([0x6c,0x6c,0x63,0x74,0x2d])+_0xa82e1(_0x24f627(_0x58ca24)),_0x55d7c1=_0x50ce39(_0xa82e1(window[_0x5b0dfc([0x4d,0x61,0x74,0x68])][_0x5b0dfc([0x63,0x65,0x69,0x6c])](_0x4c0b86/_0x23750c)));window[_0x5b0dfc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b0dfc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171758,_0x55d7c1);}function _0x46ba97(){const _0x2d1547=_0x5b0dfc([0x6c,0x6c,0x63,0x74,0x2d])+_0xa82e1(_0x24f627(_0x58ca24)),_0x35ea09=window[_0x5b0dfc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b0dfc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d1547);return _0x35ea09?window[_0x5b0dfc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50ce39(_0x35ea09),0x10)*_0x23750c:null;}function _0x2f28b4(_0x562dc6){return new window[(_0x5b0dfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14f490,_0x14320c)=>{_0x562dc6[_0x5b0dfc([0x74,0x68,0x65,0x6e])](_0x14f490,_0x14320c),window[_0x5b0dfc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14320c,0x52f66b51^_0x35a5fb);});}}_0xb4ccd7[_0x5b0dfc([0x6f,0x6e])](_0x5b0dfc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x539e9d,_0x4ca048)=>{if(_0x4ca048[0x0]!=_0x58ca24)return _0x21fcd3(_0x5b0dfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ca048[0x1]={..._0x4ca048[0x1],[_0x5b0dfc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ecaad};},{[_0x5b0dfc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b0dfc([0x68,0x69,0x67,0x68])}),_0xb4ccd7[_0x5b0dfc([0x6f,0x6e])](_0x5b0dfc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31ff5d=>{_0x4a584b(_0x31ff5d[_0x5b0dfc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16f4c0=!0x0,_0x9e29fa(_0x31ff5d[_0x5b0dfc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b0dfc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b0dfc([0x6c,0x6f,0x77])}),_0x39554d[_0x5b0dfc([0x74,0x68,0x65,0x6e])](()=>{_0x16f4c0||_0x21fcd3(_0x5b0dfc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x343001(){return _0xb4ccd7[_0x5b0dfc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b0dfc([0x76,0x69,0x65,0x77])][_0x5b0dfc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b0dfc([0x61,0x75,0x74,0x6f]);}function _0x2d9424(){_0xb4ccd7[_0x5b0dfc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b0dfc([0x76,0x69,0x65,0x77])][_0x5b0dfc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b0dfc([0x61,0x75,0x74,0x6f]);}}function _0x2525a8(_0x41a063){const _0xaa8f01=[new window[(_0x5b0dfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x420868=>setTimeout(_0x420868,0x52fe815d^_0x35a5fb)),_0x39554d[_0x5b0dfc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b0dfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52a90b=>{let _0x30784b=0x0;_0xb4ccd7[_0x5b0dfc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0dfc([0x6f,0x6e])](_0x5b0dfc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b051e,_0x5a1f6a)=>{_0x5a1f6a[0x0][_0x5b0dfc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30784b++,_0x30784b==(0x52f7be69^_0x35a5fb)&&(_0x52a90b(),_0x3b051e[_0x5b0dfc([0x6f,0x66,0x66])]());});}))];return window[_0x5b0dfc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b0dfc([0x72,0x61,0x63,0x65])](_0xaa8f01)[_0x5b0dfc([0x74,0x68,0x65,0x6e])](()=>_0x41a063);}async function _0x2edcda(){await _0x39554d,_0xb4ccd7[_0x5b0dfc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0dfc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x352258,_0xb4ccd7[_0x5b0dfc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0dfc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x352258,_0xb4ccd7[_0x5b0dfc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b0dfc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1562bc(){return _0x1207f0(_0x5b0dfc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29e0a2(_0x5b0dfc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b0dfc([0x73,0x74,0x61,0x74,0x65])]==_0x5b0dfc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x357837(){return _0x1207f0(_0x5b0dfc([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 _0x2a673d(){return _0x1207f0(_0x5b0dfc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1d8a53(_0x197041){const _0x270823=_0x1f5ebd();_0xb4ccd7[_0x270823]=_0x5b0dfc([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x197041,_0x197041!=_0x5b0dfc([0x56,0x61,0x6c,0x69,0x64])&&_0x2edcda();}function _0x1f5ebd(){const _0x1bb172=window[_0x5b0dfc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b0dfc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b0dfc([0x6e,0x6f,0x77])]())[_0x5b0dfc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b0dfc([0x2e]),'');let _0x316af5=_0x5b0dfc([0x4a]);for(let _0x491778=0x0;_0x491778<_0x1bb172[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x491778+=0x2){let _0x39b265=window[_0x5b0dfc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bb172[_0x5b0dfc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x491778,_0x491778+0x2));_0x39b265>=_0xc68631[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39b265-=_0xc68631[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x316af5+=_0xc68631[_0x39b265];}return _0x316af5;}function _0x3c4474(){const _0x5323b2=_0x55a238[_0x5b0dfc([0x73,0x70,0x6c,0x69,0x74])](_0x5b0dfc([0x2e]));if(0x3!=_0x5323b2[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42d9e8(_0x5323b2[0x1]);function _0x42d9e8(_0x238ed9){const _0x3e83d8=_0x7f234f(_0x238ed9);return _0x3e83d8&&_0x8cac5f()?_0x3e83d8:null;function _0x8cac5f(){const _0x45e7a0=_0x3e83d8[_0x5b0dfc([0x6a,0x74,0x69])],_0x51ca76=window[_0x5b0dfc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45e7a0[_0x5b0dfc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45e7a0[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x259587={..._0x3e83d8,[_0x5b0dfc([0x6a,0x74,0x69])]:_0x45e7a0[_0x5b0dfc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45e7a0[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x259587[_0x5b0dfc([0x76,0x63])],_0x24f627(_0x259587)==_0x51ca76;}}}async function _0x468a89(){let _0x6b6f0e=!0x0;try{const _0x5740e9=_0x55a238[_0x5b0dfc([0x73,0x70,0x6c,0x69,0x74])](_0x5b0dfc([0x2e])),[_0x45b798,_0x243aec,_0x17c6e2]=_0x5740e9;return _0xb0e4bd(_0x45b798),await _0x4da5d4(_0x45b798,_0x243aec,_0x17c6e2),_0x6b6f0e;}catch(_0x48b8d3){return!0x1;}function _0xb0e4bd(_0x200ec0){const _0xca65cb=_0x7f234f(_0x200ec0);_0xca65cb&&_0xca65cb[_0x5b0dfc([0x61,0x6c,0x67])]==_0x5b0dfc([0x45,0x53,0x32,0x35,0x36])||(_0x6b6f0e=!0x1);}async function _0x4da5d4(_0x2a04ba,_0x4ab9da,_0x4675d0){const _0x5ab9d5=window[_0x5b0dfc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b0dfc([0x66,0x72,0x6f,0x6d])](_0x31578c(_0x4675d0),_0x29d9d2=>_0x29d9d2[_0x5b0dfc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a440a=new window[(_0x5b0dfc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b0dfc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a04ba+_0x5b0dfc([0x2e])+_0x4ab9da),_0x85a465=window[_0x5b0dfc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b0dfc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x85a465)return;const _0x4975f1=await _0x85a465[_0x5b0dfc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b0dfc([0x6a,0x77,0x6b]),_0x1f2d9c,{[_0x5b0dfc([0x6e,0x61,0x6d,0x65])]:_0x5b0dfc([0x45,0x43,0x44,0x53,0x41]),[_0x5b0dfc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b0dfc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b0dfc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x85a465[_0x5b0dfc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b0dfc([0x6e,0x61,0x6d,0x65])]:_0x5b0dfc([0x45,0x43,0x44,0x53,0x41]),[_0x5b0dfc([0x68,0x61,0x73,0x68])]:{[_0x5b0dfc([0x6e,0x61,0x6d,0x65])]:_0x5b0dfc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4975f1,_0x5ab9d5,_0x4a440a)||(_0x6b6f0e=!0x1);}}function _0x7f234f(_0xcdcf61){return _0xcdcf61[_0x5b0dfc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b0dfc([0x65,0x79]))?JSON[_0x5b0dfc([0x70,0x61,0x72,0x73,0x65])](_0x31578c(_0xcdcf61)):null;}function _0x31578c(_0x258c2c){return window[_0x5b0dfc([0x61,0x74,0x6f,0x62])](_0x258c2c[_0x5b0dfc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b0dfc([0x2b]))[_0x5b0dfc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b0dfc([0x2f])));}function _0x24f627(_0x10425a){let _0x3765b4=0x1505;function _0x4a4cef(_0x463c0b){for(let _0x57c057=0x0;_0x57c057<_0x463c0b[_0x5b0dfc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57c057++){const _0x3ede95=_0x463c0b[_0x5b0dfc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57c057);_0x3765b4=(_0x3765b4<<0x5)+_0x3765b4+_0x3ede95,_0x3765b4&=_0x3765b4;}}function _0x5874f0(_0x466374){Array[_0x5b0dfc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x466374)?_0x466374[_0x5b0dfc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5874f0):_0x466374&&typeof _0x466374==_0x5b0dfc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b0dfc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x466374)[_0x5b0dfc([0x73,0x6f,0x72,0x74])]()[_0x5b0dfc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x229c5d,_0x113568])=>{_0x4a4cef(_0x229c5d),_0x5874f0(_0x113568);}):_0x4a4cef(window[_0x5b0dfc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x466374));}return _0x5874f0(_0x10425a),_0x3765b4>>>0x0;}function _0xa82e1(_0x187130){return _0x187130[_0x5b0dfc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b0dfc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b0dfc([0x30]));}function _0x50ce39(_0x9686bd){return _0x9686bd[_0x5b0dfc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b0dfc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b0dfc([0x6a,0x6f,0x69,0x6e])]('');}function _0x1207f0(_0x36e713){return _0xb4ccd7[_0x5b0dfc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b0dfc([0x68,0x61,0x73])](_0x36e713);}function _0x29e0a2(_0x3861a4){return _0xb4ccd7[_0x5b0dfc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b0dfc([0x67,0x65,0x74])](_0x3861a4);}function _0x352258(){}function _0x5b0dfc(_0x5afc9c){return _0x5afc9c['map'](_0x8f11ef=>String['fromCharCode'](_0x8f11ef))['join']('');}_0x1d8a53(await _0x36b943());}(this);}set['adapter'](_0x14430a){if(this['_adapter'])throw new _0x4b8a78('track-changes-adapter-already-set',this);this['_adapter']=_0x14430a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3e28fe=!0x1,toJSON:_0x30e00f=!0x1}={}){const _0x3c2857=[];for(const _0x406d74 of this['_suggestions']['values']())_0x3e28fe&&!_0x406d74['isInContent']||_0x3c2857['push'](_0x406d74);return _0x30e00f?_0x3c2857['map'](_0x133353=>_0x133353['toJSON']()):_0x3c2857;}['getSuggestion'](_0x4fcd9a){const _0x120a7c=this['_suggestions']['get'](_0x4fcd9a);if(!_0x120a7c)throw new _0x4b8a78('track-changes-suggestion-not-found',this);return _0x120a7c;}['hasSuggestion'](_0x5726fc){return this['_suggestions']['has'](_0x5726fc);}['addSuggestionData'](_0x32b5a1){const {authorId:_0xd18623,id:_0x1f422d,attributes:_0x352aed}=_0x32b5a1,[_0xefbe3c,_0x4b22b6]=_0x32b5a1['type']['split'](':'),_0x4be65f=this['_suggestions']['get'](_0x1f422d)||this['_createSuggestion'](_0xefbe3c,_0x4b22b6,_0x1f422d,_0xd18623,_0x352aed);if(this['_addThreadToSuggestion'](_0x4be65f),this['_checkSuggestionCorrectness'](_0x4be65f,_0xefbe3c,_0x4b22b6||null,_0xd18623),_0x4be65f['createdAt']=_0x32b5a1['createdAt'],_0x4be65f['_isDataLoaded']=!0x0,_0x352aed&&_0x352aed['@external']){const _0x27b44e=_0x352aed['@external'],_0x402cc1=this['_getExternalAuthor'](_0x27b44e['authorName']);_0x4be65f['authoredAt']=_0x27b44e['createdAt'],_0x4be65f['author']=_0x402cc1,_0x4be65f['isExternal']=!0x0;}else _0x4be65f['authoredAt']=_0x32b5a1['createdAt'];switch(_0x32b5a1['data']&&(_0x4be65f['data']=_0x32b5a1['data']),_0x32b5a1['attributes']&&(_0x4be65f['attributes']=_0x32b5a1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4be65f['_saved']=!0x0),this['_suggestionState']['get'](_0x4be65f)){case'notReady':this['_suggestionState']['set'](_0x4be65f,'dataReady');break;case'markerReady':_0x4be65f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4be65f])),this['_refreshSuggestionsChain'](new Set([_0x4be65f])),this['_suggestionState']['set'](_0x4be65f,'ready'),this['fire']('suggestionLoaded',_0x4be65f)):this['_suggestionState']['set'](_0x4be65f,'removed');}return _0x4be65f;}['acceptSuggestion'](_0xa12a3b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x57b62d of _0xa12a3b['getAllAdjacentSuggestions']())_0x57b62d['accept']();});});}['discardSuggestion'](_0x3859fa){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x380f2e of _0x3859fa['getAllAdjacentSuggestions']())_0x380f2e['discard']();});});}['enableCommand'](_0x153aca,_0x13b298){const _0x24161f=this['editor']['commands']['get'](_0x153aca);if(!_0x24161f)throw new _0x4b8a78('track-changes-command-not-found',this,{'commandName':_0x153aca});if(this['_enabledCommands']['has'](_0x24161f))throw new _0x4b8a78('track-changes-enable-command-twice',this,{'commandName':_0x153aca});this['_enabledCommands']['add'](_0x24161f),_0x13b298&&_0x24161f['on']('execute',(_0x52385c,_0x29a8fa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x29a8fa['length']>0x0&&_0x29a8fa[_0x29a8fa['length']-0x1]&&_0x29a8fa[_0x29a8fa['length']-0x1]['forceDefaultExecution']?_0x29a8fa['pop']():(_0x52385c['return']=_0x13b298((..._0x4d5701)=>_0x24161f['execute'](..._0x4d5701,{'forceDefaultExecution':!0x0}),..._0x29a8fa),_0x52385c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ac081){let _0x50b5bd,_0x1845a7;const _0xe4fce1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50b5bd=_0x2ac081();}catch(_0x541b22){_0x1845a7=_0x541b22;}return _0xe4fce1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1845a7&&_0x4b8a78['rethrowUnexpectedError'](_0x1845a7,this),_0x50b5bd;}['markInsertion'](_0xb17dc5,_0x5daac5=null,_0x47172e={}){if(_0xb17dc5['isCollapsed'])return null;const _0x2aa851=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x453039,meta:_0x25c3ef}of this['_findSuggestions'](_0xb17dc5,'insertion'))if(_0x25c3ef['isOwn']){if(!_0x25c3ef['isNextTo']){if(_0x25c3ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x453039,_0x47172e))continue;return _0x453039;}if(Qt(_0x453039,_0x47172e))return _0x453039;this['_breakSuggestionMarker'](_0x453039,_0xb17dc5['start'],_0xb17dc5['end']);break;}if(_0x5daac5==_0x453039['subType']&&Qt(_0x453039,_0x47172e)){const _0x49de06=_0x453039['getFirstRange']();return _0x49de06['start']['isEqual'](_0xb17dc5['end'])?this['_setSuggestionRange'](_0x453039,this['_model']['createRange'](_0xb17dc5['start'],_0x49de06['end'])):this['_setSuggestionRange'](_0x453039,this['_model']['createRange'](_0x49de06['start'],_0xb17dc5['end'])),_0x453039;}}const _0x322084=_0x9dfd99(),_0x45c4b1=_0x2aa851['id'],_0x518d46=_0x5daac5?'insertion:'+_0x5daac5:'insertion',_0xba1973=this['_setSuggestionData']({'id':_0x322084,'type':_0x518d46,'createdAt':new Date(),'authorId':_0x45c4b1,'attributes':_0x47172e});return this['_addSuggestionMarker'](_0x518d46,_0x322084,_0x45c4b1,_0xb17dc5),_0xba1973;}['markMultiRangeInsertion'](_0x1c3d72,_0x56c39c='multi',_0x46b647={}){const _0x74f03e=this['editor']['plugins']['get']('Users')['me'],_0x2a394d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x56c39c,'join');for(const _0x569d2e of this['getSuggestions']())if(_0x569d2e['author']['id']==_0x74f03e['id']&&'insertion'==_0x569d2e['type']&&_0x569d2e['subType']==_0x56c39c&&Qt(_0x569d2e,_0x46b647)&&(_0x2a394d(_0x569d2e['getRanges'](),_0x1c3d72)||_0x2a394d(_0x1c3d72,_0x569d2e['getRanges']()))){for(const _0x21ac91 of _0x1c3d72)_0x569d2e['addRange'](_0x21ac91);return _0x569d2e;}for(const {suggestion:_0x5537d9,meta:_0x3640e7}of this['_findSuggestions'](_0x1c3d72,'insertion')){if(!_0x3640e7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3640e7['containsRangeInObject'])continue;if(!Qt(_0x5537d9,_0x46b647))continue;let _0x3578cd=!0x0;for(const _0x2e98f2 of _0x5537d9['getRanges']())for(const _0x52d1c0 of _0x1c3d72)if(!_0x2e98f2['containsRange'](_0x52d1c0)){_0x3578cd=!0x1;break;}if(_0x3578cd)return _0x5537d9;}const _0x3506ba=_0x9dfd99(),_0x5128b0=_0x74f03e['id'],_0x6bfe4c='insertion:'+_0x56c39c,_0x4c234c=this['_setSuggestionData']({'id':_0x3506ba,'type':_0x6bfe4c,'createdAt':new Date(),'authorId':_0x5128b0,'attributes':_0x46b647});for(const _0x4e270b of _0x1c3d72)this['_addSuggestionMarker'](_0x6bfe4c,_0x3506ba,_0x5128b0,_0x4e270b,u['getMultiRangeId']());return _0x4c234c;}['markInlineFormat'](_0x2d0398,_0x100dfe,_0x3e5490=null,_0x3594ef={}){if(_0x3e5490=_0x3e5490||Jt(_0x100dfe),_0x2d0398['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3cfb71=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e5490,'accept');return this['forceDefaultExecution'](()=>_0x3cfb71([_0x2d0398],_0x100dfe,_0x3594ef)),null;}const _0x356941=this['editor']['plugins']['get']('Users')['me'],_0x458d2a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x16640a,meta:_0x58c7fd}of this['_findSuggestions'](_0x2d0398,'insertion'))_0x58c7fd['isOwn']&&!_0x58c7fd['isInsideObject']&&_0x458d2a['push'](..._0x16640a['getRanges']());}const _0x59360a=function(_0x356e48,_0x2031e5){const _0x11ff50=[];for(const _0x123e91 of _0x2031e5){const _0x23d812=_0x356e48['getIntersection'](_0x123e91);_0x23d812&&_0x11ff50['push'](_0x23d812);}return _0x11ff50;}(_0x2d0398,_0x458d2a),_0x3d1832=function(_0x4fa597,_0x38dfff){const _0x6f0aca=[_0x4fa597];for(const _0x48b625 of _0x38dfff){let _0x152af6=0x0;for(;_0x152af6<_0x6f0aca['length'];){const _0x45e713=_0x6f0aca[_0x152af6]['getDifference'](_0x48b625);_0x6f0aca['splice'](_0x152af6,0x1,..._0x45e713),_0x152af6+=_0x45e713['length'];}}return _0x6f0aca;}(_0x2d0398,_0x458d2a);_0x59360a['length']&&this['_model']['change'](()=>{for(const _0x2cac0b of _0x59360a){const _0x55664d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e5490,'accept');this['forceDefaultExecution'](()=>_0x55664d([_0x2cac0b],_0x100dfe,_0x3594ef));}});for(const _0x8c232a of _0x3d1832){let _0xee2d5e=null,_0x597c0a=_0x8c232a['start'],_0x34e435=_0x8c232a['end'];for(const {suggestion:_0x11bd66,meta:_0x372857}of this['_findSuggestions'](_0x8c232a,'formatInline')){if(!_0x372857['isOwn'])continue;if(_0x11bd66['subType']!=_0x3e5490)continue;if(!Qt(_0x11bd66,_0x3594ef))continue;const _0x211722=_0x11bd66['getFirstRange']();if(_0x211722['containsRange'](_0x8c232a,!0x0))return null;_0x597c0a=_0x597c0a['isBefore'](_0x211722['start'])?_0x597c0a:_0x211722['start'],_0x34e435=_0x34e435['isAfter'](_0x211722['end'])?_0x34e435:_0x211722['end'],_0xee2d5e?_0x211722['start']['isBefore'](_0xee2d5e['getFirstRange']()['start'])?(_0xee2d5e['removeMarkers'](),_0xee2d5e=_0x11bd66):_0x11bd66['removeMarkers']():_0xee2d5e=_0x11bd66;}const _0xf85f02=this['_model']['createRange'](_0x597c0a,_0x34e435);if(_0xee2d5e)this['_setSuggestionRange'](_0xee2d5e,_0xf85f02);else{const _0x10b20e=_0x9dfd99(),_0x108e31=_0x356941['id'];this['_setSuggestionData']({'id':_0x10b20e,'type':'formatInline:'+_0x3e5490,'data':_0x100dfe,'createdAt':new Date(),'authorId':_0x108e31,'attributes':_0x3594ef}),this['_addSuggestionMarker']('formatInline:'+_0x3e5490,_0x10b20e,_0x108e31,_0xf85f02);}}return null;}['markBlockFormat'](_0x773d7f,_0x528e2e,_0x52289e=[],_0x589f8d=null,_0x314c0e={}){_0x528e2e['formatGroupId']||(_0x528e2e['formatGroupId']=_0x528e2e['commandName']),_0x528e2e['multipleBlocks']=_0x773d7f['is']('range'),_0x589f8d=_0x589f8d||Jt(_0x528e2e);const _0x1a7e7b=_0x52289e['map'](_0x3ddb7a=>zt(_0x3ddb7a,this['_model'])),_0x1b4458=_0x773d7f['is']('range')?_0x773d7f:zt(_0x773d7f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5e908d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x589f8d,'accept');return this['forceDefaultExecution'](()=>_0x5e908d([_0x1b4458],_0x528e2e,_0x314c0e)),null;}_0x1a7e7b['push'](_0x1b4458);let _0x52795b=!0x0;for(const _0xd7cc1e of _0x1a7e7b)if(!this['_rangeIsInLocalUserInsertion'](_0xd7cc1e)){_0x52795b=!0x1;break;}if(_0x52795b&&'always'!==this['_trackFormatChanges']){const _0x1217ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x589f8d,'accept');return this['forceDefaultExecution'](()=>_0x1217ff([_0x1b4458],_0x528e2e,_0x314c0e)),null;}let _0x40ca64=null,_0x31ff70=_0x1b4458['start'],_0x2d7d5f=_0x1b4458['end'];for(const {suggestion:_0x2db5e1,meta:_0x325179}of this['_findSuggestions'](_0x1b4458,'formatBlock')){if(!_0x325179['isOwn'])continue;if(_0x325179['isNextTo']||_0x325179['containsRangeInObject']||_0x325179['isInsideObject'])continue;if(_0x2db5e1['data']['formatGroupId']!=_0x528e2e['formatGroupId'])continue;if(!Qt(_0x2db5e1,_0x314c0e))continue;const _0x3226a2=_0x2db5e1['getFirstRange']();if(_0x2db5e1['subType']==_0x589f8d){if(_0x3226a2['containsRange'](_0x1b4458,!0x0))return null;_0x31ff70=_0x31ff70['isBefore'](_0x3226a2['start'])?_0x31ff70:_0x3226a2['start'],_0x2d7d5f=_0x2d7d5f['isAfter'](_0x3226a2['end'])?_0x2d7d5f:_0x3226a2['end'],_0x40ca64?_0x3226a2['start']['isBefore'](_0x40ca64['getFirstRange']()['start'])?(_0x40ca64['removeMarkers'](),_0x40ca64=_0x2db5e1):_0x2db5e1['removeMarkers']():_0x40ca64=_0x2db5e1;}else{const _0x1972f3=_0x1b4458['getIntersection'](_0x3226a2);this['_cutOutSuggestionMarker'](_0x2db5e1,_0x1972f3);}}const _0x14dc3e=this['editor']['plugins']['get']('Users')['me'],_0x5d81fc=_0x9dfd99(),_0x5dbd98=_0x14dc3e['id'];if(_0x40ca64)return this['_setSuggestionRange'](_0x40ca64,this['_model']['createRange'](_0x31ff70,_0x2d7d5f)),_0x40ca64;{const _0xedcb17=this['_setSuggestionData']({'id':_0x5d81fc,'type':'formatBlock:'+_0x589f8d,'data':_0x528e2e,'createdAt':new Date(),'authorId':_0x5dbd98,'attributes':_0x314c0e});return this['_addSuggestionMarker']('formatBlock:'+_0x589f8d,_0x5d81fc,_0x5dbd98,this['_model']['createRange'](_0x31ff70,_0x2d7d5f)),_0xedcb17;}}['markMultiRangeBlockFormat'](_0x58363a,_0x37db69,_0x2b2c81=[],_0x30ad67=null,_0x125bee={}){_0x37db69['formatGroupId']||(_0x37db69['formatGroupId']=_0x37db69['commandName']);const _0x4a7f10=_0x58363a[0x0];_0x37db69['multipleBlocks']=_0x4a7f10['is']('range'),_0x30ad67=_0x30ad67||Jt(_0x37db69);const _0x5b5ca2=_0x2b2c81['map'](_0x516ee9=>zt(_0x516ee9,this['_model'])),_0x2f76dd=_0x4a7f10['is']('range')?_0x58363a:_0x58363a['map'](_0x52a4ef=>zt(_0x52a4ef,this['_model']));if('never'===this['_trackFormatChanges']){const _0x25ad81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ad67,'accept');return this['forceDefaultExecution'](()=>_0x25ad81(_0x2f76dd,_0x37db69,_0x125bee)),null;}_0x5b5ca2['push'](..._0x2f76dd);let _0x2d3721=!0x0;for(const _0x157edb of _0x5b5ca2)if(!this['_rangeIsInLocalUserInsertion'](_0x157edb)){_0x2d3721=!0x1;break;}if(_0x2d3721&&'always'!==this['_trackFormatChanges']){const _0x64ea71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ad67,'accept');return this['forceDefaultExecution'](()=>_0x64ea71(_0x2f76dd,_0x37db69,_0x125bee)),null;}const _0x237b7b=this['editor']['plugins']['get']('Users')['me'];for(const _0x37a03c of this['getSuggestions']()){if(_0x37a03c['author']['id']!=_0x237b7b['id'])continue;if('formatBlock'!=_0x37a03c['type']||_0x37a03c['data']['formatGroupId']!=_0x37db69['formatGroupId'])continue;if(!Qt(_0x37a03c,_0x125bee))continue;const _0x269188=_0x37a03c['subType']==_0x30ad67;for(let _0x1634b2=0x0;_0x1634b2<_0x2f76dd['length'];_0x1634b2++){const _0x1407ff=_0x2f76dd[_0x1634b2];for(const _0x30a112 of _0x37a03c['getMarkers']()){const _0x4e5067=_0x30a112['getRange']();if(_0x1407ff['isEqual'](_0x4e5067)){_0x269188?(_0x2f76dd['splice'](_0x1634b2,0x1),_0x1634b2--):_0x37a03c['removeMarker'](_0x30a112['name']);break;}}}}if(0x0==_0x2f76dd['length'])return null;const _0x31109c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30ad67,'join');for(const _0x1ffdd0 of this['getSuggestions']())if(_0x1ffdd0['author']['id']==_0x237b7b['id']&&'formatBlock'==_0x1ffdd0['type']&&_0x1ffdd0['data']['formatGroupId']==_0x37db69['formatGroupId']&&_0x1ffdd0['subType']==_0x30ad67&&Qt(_0x1ffdd0,_0x125bee)&&(_0x31109c(_0x1ffdd0['getRanges'](),_0x2f76dd)||_0x31109c(_0x2f76dd,_0x1ffdd0['getRanges']()))){for(const _0x4eb179 of _0x2f76dd)_0x1ffdd0['addRange'](_0x4eb179);return _0x1ffdd0;}const _0x571cc8=_0x9dfd99(),_0x2ebe67=_0x237b7b['id'],_0x10d247='formatBlock:'+_0x30ad67,_0x16ae19=this['_setSuggestionData']({'id':_0x571cc8,'type':_0x10d247,'data':_0x37db69,'createdAt':new Date(),'authorId':_0x2ebe67,'attributes':_0x125bee});for(const _0x3eb153 of _0x2f76dd)this['_addSuggestionMarker'](_0x10d247,_0x571cc8,_0x2ebe67,_0x3eb153,u['getMultiRangeId']());return _0x16ae19;}['markDeletion'](_0x103d9f,_0x4a22ff=null,_0x3ed5bd={}){if(_0x103d9f['isCollapsed'])return null;const _0x2a9280=this['editor']['plugins']['get']('Users')['me'],_0xd9a7b3=new _0x45a705(_0x103d9f['start'],_0x103d9f['end']);for(const {suggestion:_0x395e06,meta:_0x21076a}of this['_findSuggestions'](_0xd9a7b3,'insertion'))if(_0x21076a['isOwn']&&!_0x21076a['isNextTo']){if(_0x395e06['isMultiRange']){const _0x4e683b=_0x395e06['getRanges']()['filter'](_0x2b43a4=>'$graveyard'!=_0x2b43a4['root']['rootName']);_0x4e683b['every'](_0x1eba73=>_0xd9a7b3['containsRange'](_0x1eba73,!0x0))&&_0x395e06['discard']();if(_0x4e683b['some'](_0x31f70b=>_0x31f70b['containsRange'](_0xd9a7b3,!0x0))){const _0x2c078c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a22ff,'accept');return this['forceDefaultExecution'](()=>_0x2c078c([_0xd9a7b3],null,_0x3ed5bd)),null;}}else{const _0x59feb9=_0xd9a7b3['getIntersection'](_0x395e06['getFirstRange']());null!==_0x59feb9&&_0x395e06['_onDiscard']([_0x59feb9],null,_0x3ed5bd);}}if(_0xd9a7b3['detach'](),_0xd9a7b3['isCollapsed']||'$graveyard'==_0xd9a7b3['root']['rootName'])return null;let _0x2c03d8=null,_0x3692ae=_0xd9a7b3['start'],_0x10af4b=_0xd9a7b3['end'];const _0x31aedd=this['_findSuggestions'](_0xd9a7b3,'deletion');for(const {suggestion:_0x29f067,meta:_0x203a31}of _0x31aedd){const _0x5b667c=this['_model']['createRange'](_0x3692ae,_0x10af4b);if(_0x203a31['isOwn']&&(this['_mergeNestedSuggestions']||!_0x203a31['containsRangeInObject']&&!_0x203a31['isInsideObject'])){if(_0x29f067['isMultiRange']){if(!Qt(_0x29f067,_0x3ed5bd))continue;let _0x46f9ae=!0x0;for(const _0x15c753 of _0x29f067['getRanges']()){if(_0x15c753['containsRange'](_0x5b667c,!0x0))return _0x29f067;_0x5b667c['containsRange'](_0x15c753)||(_0x46f9ae=!0x1);}_0x46f9ae&&_0x29f067['discard']();}else{const _0x1c4f9f=_0x29f067['getFirstRange']();if(_0x1c4f9f['containsRange'](_0x5b667c,!0x0))return _0x29f067;if(!Qt(_0x29f067,_0x3ed5bd)){_0x5b667c['containsRange'](_0x1c4f9f)?_0x29f067['removeMarkers']():_0x1c4f9f['containsPosition'](_0x3692ae)?_0x3692ae=_0x1c4f9f['end']:_0x1c4f9f['containsPosition'](_0x10af4b)&&(_0x10af4b=_0x1c4f9f['start']);continue;}_0x3692ae=_0x3692ae['isBefore'](_0x1c4f9f['start'])?_0x3692ae:_0x1c4f9f['start'],_0x10af4b=_0x10af4b['isAfter'](_0x1c4f9f['end'])?_0x10af4b:_0x1c4f9f['end'],_0x3ed5bd=Object['assign']({},_0x29f067['attributes']),_0x2c03d8?_0x1c4f9f['start']['isBefore'](_0x2c03d8['getFirstRange']()['start'])?(_0x2c03d8['removeMarkers'](),_0x2c03d8=_0x29f067):_0x29f067['removeMarkers']():_0x2c03d8=_0x29f067;}}}if(_0x2c03d8)return this['_setSuggestionRange'](_0x2c03d8,this['_model']['createRange'](_0x3692ae,_0x10af4b)),_0x2c03d8;{const _0xb178de=_0x9dfd99(),_0x2f4b00=this['_model']['createRange'](_0x3692ae,_0x10af4b),_0x339ddf=_0x2a9280['id'],_0x16e79d=_0x4a22ff?'deletion:'+_0x4a22ff:'deletion',_0xa64b65=this['_setSuggestionData']({'id':_0xb178de,'type':_0x16e79d,'createdAt':new Date(),'authorId':_0x339ddf,'attributes':_0x3ed5bd});return this['_addSuggestionMarker'](_0x16e79d,_0xb178de,_0x339ddf,_0x2f4b00),_0xa64b65;}}['markMultiRangeDeletion'](_0x355a6a,_0x4a735c='multi',_0x5dda84={}){const _0x27abed=this['editor']['plugins']['get']('Users')['me'],_0x9c5c6e=_0x355a6a['map'](_0x96f79e=>new _0x45a705(_0x96f79e['start'],_0x96f79e['end'])),_0x56207a=new Set();for(const {suggestion:_0x43cbbb,meta:_0x15cdb8}of this['_findSuggestions'](_0x9c5c6e,'insertion'))_0x15cdb8['isOwn']&&!_0x15cdb8['isNextTo']&&_0x56207a['add'](_0x43cbbb);for(const _0x1b88b2 of _0x56207a)if(_0x1b88b2['isMultiRange']){const _0x3a7bd=_0x1b88b2['getRanges']();(!_0x1b88b2['attributes']||!_0x1b88b2['attributes']['skipNestingCheck'])&&(_0x3a7bd['every'](_0x46c919=>_0x9c5c6e['some'](_0x33916d=>_0x33916d['containsRange'](_0x46c919,!0x0)))&&_0x1b88b2['discard']());if(_0x9c5c6e['every'](_0x209027=>_0x3a7bd['some'](_0x44b116=>_0x44b116['containsRange'](_0x209027,!0x0)))){const _0x3931bb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a735c,'accept');return this['forceDefaultExecution'](()=>_0x3931bb(_0x355a6a,null,_0x5dda84)),null;}}else{const _0x201060=_0x1b88b2['getFirstRange']();_0x9c5c6e['some'](_0x50fad7=>_0x50fad7['containsRange'](_0x201060,!0x0))&&_0x1b88b2['discard']();if(_0x9c5c6e['every'](_0xd6ba8c=>_0x201060['containsRange'](_0xd6ba8c,!0x0))){const _0xf29b33=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a735c,'accept');return this['forceDefaultExecution'](()=>_0xf29b33(_0x9c5c6e,null,_0x5dda84)),null;}}const _0x5916e8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a735c,'join');let _0x1dfcbc=null;for(const _0x2e97b1 of this['getSuggestions']())if(_0x2e97b1['author']['id']==_0x27abed['id']&&_0x2e97b1['isInContent']&&'deletion'==_0x2e97b1['type']&&_0x2e97b1['subType']==_0x4a735c&&Qt(_0x2e97b1,_0x5dda84)&&(_0x5916e8(_0x2e97b1['getRanges'](),_0x9c5c6e)||_0x5916e8(_0x9c5c6e,_0x2e97b1['getRanges']()))){if(_0x1dfcbc){if(_0x2e97b1['commentThread']&&_0x2e97b1['commentThread']['length'])continue;for(const _0x30756c of _0x2e97b1['getRanges']())_0x1dfcbc['isIntersectingWithRange'](_0x30756c)||_0x1dfcbc['addRange'](_0x30756c);_0x2e97b1['removeMarkers']();}else{_0x1dfcbc=_0x2e97b1;for(const _0x528f2c of _0x9c5c6e)_0x2e97b1['isIntersectingWithRange'](_0x528f2c)||_0x2e97b1['addRange'](_0x528f2c);}}if(_0x1dfcbc)return _0x1dfcbc;_0x56207a['clear']();for(const {suggestion:_0x4ca2c9,meta:_0x58f99f}of this['_findSuggestions'](_0x9c5c6e,'deletion'))_0x58f99f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58f99f['containsRangeInObject']&&!_0x58f99f['isInsideObject'])&&Qt(_0x4ca2c9,_0x5dda84)&&_0x56207a['add'](_0x4ca2c9);for(const _0x463848 of _0x56207a){const _0x3bca95=_0x463848['getRanges']();if(!_0x5dda84||!_0x5dda84['skipNestingCheck']){if(_0x9c5c6e['every'](_0x345009=>_0x3bca95['some'](_0x3b839c=>_0x3b839c['containsRange'](_0x345009,!0x0))))return _0x463848;}(!_0x463848['attributes']||!_0x463848['attributes']['skipNestingCheck'])&&(_0x3bca95['every'](_0x4200f0=>_0x9c5c6e['some'](_0x4dc9c0=>_0x4dc9c0['containsRange'](_0x4200f0,!0x0)))&&_0x463848['discard']());}const _0x5c9ff0=_0x9dfd99(),_0x48ff89=_0x27abed['id'],_0x35ffde='deletion:'+_0x4a735c,_0x38dae2=this['_setSuggestionData']({'id':_0x5c9ff0,'type':_0x35ffde,'createdAt':new Date(),'authorId':_0x48ff89,'attributes':_0x5dda84});for(const _0x7cc527 of _0x9c5c6e)_0x7cc527['detach'](),_0x7cc527['isCollapsed']||'$graveyard'==_0x7cc527['root']['rootName']||this['_addSuggestionMarker'](_0x35ffde,_0x5c9ff0,_0x48ff89,_0x7cc527,u['getMultiRangeId']());return _0x38dae2;}['markAttributeChange'](_0x7d4966,_0x202f0a,_0x15f6e8,_0x53d819,_0x381889){if(_0x7d4966['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f8abc=this['editor']['plugins']['get']('Users')['me']['id'],_0x350f32=Array['from'](this['_suggestions']['values']())['filter'](_0x5b00eb=>'attribute'==_0x5b00eb['type']&&_0x5b00eb['data']['key']==_0x202f0a&&_0x5b00eb['isIntersectingWithRange'](_0x7d4966));if('default'===this['_trackFormatChanges']){const _0xf9789b=this['_findSuggestions'](_0x7d4966,'insertion')['filter'](({meta:_0x5d4c75})=>_0x5d4c75['isOwn']&&!_0x5d4c75['isInsideObject']&&!_0x5d4c75['isNextTo'])['map'](({suggestion:_0x37da6c})=>_0x37da6c);_0x350f32['unshift'](..._0xf9789b);}const _0x1842e2=new Map([[_0x7d4966,_0x15f6e8]]);for(const _0x15f7f5 of _0x350f32){const _0x32d19f='attribute'==_0x15f7f5['type']?_0x15f7f5['data']['oldValue']:void 0x0,_0x596088=_0x15f7f5['getFirstRange'](),_0x2fd58a=Array['from'](_0x1842e2['keys']())['find'](_0x4684d2=>_0x4684d2['isIntersecting'](_0x596088));if(!_0x2fd58a)continue;const _0x2054ca=_0x2fd58a['getDifference'](_0x596088);this['_isBlockAttribute'](_0x202f0a)&&'insertion'==_0x15f7f5['type']&&0x0!=_0x2054ca['length']||(_0x1842e2['delete'](_0x2fd58a),_0x2054ca['forEach'](_0x319589=>{_0x1842e2['set'](_0x319589,_0x15f6e8);}),'insertion'!=_0x15f7f5['type']&&_0x32d19f!=_0x53d819&&_0x1842e2['set'](_0x2fd58a['getIntersection'](_0x596088),_0x32d19f));}const _0x478c3d=[];for(const [_0x28b86f,_0x5b34f7]of _0x1842e2){const _0x4ba28c=_0x9dfd99(),_0x1c1d20={'key':_0x202f0a,'oldValue':_0x5b34f7,'newValue':_0x53d819};_0x202f0a['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':_0x202f0a});const _0x18e49a=('attribute:'+(_0x202f0a+'|'+Jt({'newValue':_0x53d819})))['substring'](0x0,0x3c),_0x4a6110=this['_setSuggestionData']({'id':_0x4ba28c,'type':_0x18e49a,'data':_0x1c1d20,'createdAt':new Date(),'authorId':_0x2f8abc,'attributes':_0x381889});_0x478c3d['push'](_0x4a6110),this['_addSuggestionMarker'](_0x18e49a,_0x4ba28c,_0x2f8abc,_0x28b86f);}return _0x478c3d;}['enableDefaultAttributesIntegration'](_0x2ec355){this['enableCommand'](_0x2ec355,(_0xb7500d,..._0x55aef9)=>{this['_recordAttributeChanges'](()=>{_0xb7500d(..._0x55aef9);});});}['registerBlockAttribute'](_0x5f2868){this['_blockAttributeKeys']['add'](_0x5f2868);}['registerInlineAttribute'](_0x17a84c){this['_inlineAttributeKeys']['add'](_0x17a84c);}['_getAttributeKey'](_0x2cac65){return'attribute'==_0x2cac65['type']?_0x2cac65['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xe02f6d,_0x18e3c5){const _0x129a84=_0xe02f6d['getFirstMarker']();this['_model']['change'](_0x297349=>{_0x297349['updateMarker'](_0x129a84,{'range':_0x18e3c5});});}['_addThreadToSuggestion'](_0x4c2fbb){const _0x404ce5=_0x4c2fbb['id'],_0x5a1cf8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x404ce5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a1cf8,'threadId':_0x404ce5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3efb0e=this['_commentsRepository']['getCommentThread'](_0x404ce5);_0x3efb0e['unbind']('isRemovable'),_0x3efb0e['isRemovable']=!0x1,_0x4c2fbb['commentThread']=_0x3efb0e;}['_checkSuggestionCorrectness'](_0x545095,_0x5b6451,_0x467145,_0x4e9d14){if(_0x545095['type']!=_0x5b6451||_0x545095['subType']!=_0x467145||_0x545095['creator']['id']!=_0x4e9d14)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4b8a78('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x273ab4,_0x12fb60){const _0x103b44=_0x273ab4['getFirstRange']();if(_0x12fb60['isEqual'](_0x103b44))_0x273ab4['removeMarkers']();else{if(_0x103b44['containsRange'](_0x12fb60)){const _0x3427c0=this['_model']['createPositionAt'](_0x12fb60['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x273ab4,this['_model']['createRange'](_0x103b44['start'],_0x3427c0));const _0x46a473=_0x9dfd99(),_0x2380d4=_0x273ab4['creator']['id'],_0xe511a0=_0x273ab4['type']+':'+_0x273ab4['subType'];this['_setSuggestionData']({'id':_0x46a473,'type':_0xe511a0,'createdAt':new Date(),'authorId':_0x2380d4,'data':_0x273ab4['data'],'attributes':_0x273ab4['attributes']});const _0x54dc90=this['_model']['createPositionAt'](_0x12fb60['end']['parent'],'after'),_0x42475c=this['_model']['createRange'](_0x54dc90,_0x103b44['end']);this['_addSuggestionMarker'](_0xe511a0,_0x46a473,_0x2380d4,_0x42475c);}else{if(_0x103b44['containsPosition'](_0x12fb60['start'])){const _0x5e3066=this['_model']['createPositionAt'](_0x12fb60['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x273ab4,this['_model']['createRange'](_0x103b44['start'],_0x5e3066));}else{const _0x3b322e=this['_model']['createPositionAt'](_0x12fb60['end']['parent'],'after');this['_setSuggestionRange'](_0x273ab4,this['_model']['createRange'](_0x3b322e,_0x103b44['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x44e978){for(const {suggestion:_0x41dd39,meta:_0x1095d9}of this['_findSuggestions'](_0x44e978,'insertion')){if(!_0x1095d9['isOwn'])continue;const _0x3a2415=_0x41dd39['getRanges']();for(const _0x2c3c39 of _0x3a2415)if(!_0x44e978['getDifference'](_0x2c3c39)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5d96f9){const _0x3a33b9=this['editor']['plugins']['get']('Users')['getUser'](_0x5d96f9);if(!_0x3a33b9)throw new _0x4b8a78('track-changes-user-not-found',this);return _0x3a33b9;}['_getExternalAuthor'](_0x346fac){const _0x1aba4e=this['editor']['plugins']['get']('Users'),_0x2c5ac7=_0x228b3d('external:'+_0x346fac),_0xd40d2a=_0x1aba4e['getUser'](_0x2c5ac7);return _0xd40d2a||_0x1aba4e['addUser']({'id':_0x2c5ac7,'name':_0x346fac});}['_createSuggestion'](_0x1020af,_0x51992a,_0x5cccd0,_0x450cd1,_0x2c4da0){const _0x340d93=this['_getAuthorFromId'](_0x450cd1),_0x1d216c=this['_suggestionFactory']['buildSuggestion'](_0x1020af,_0x51992a,_0x5cccd0,_0x340d93,_0x2c4da0,_0x3a754f=>{this['_updateSuggestionData'](_0x5cccd0,{'attributes':_0x3a754f});const _0x2bde72=this['getSuggestion'](_0x5cccd0);this['_joinWithAdjacentSuggestions'](new Set([_0x2bde72])),this['_refreshSuggestionsChain'](new Set([_0x2bde72]));});return this['listenTo'](_0x1d216c,'accept',()=>{this['_updateSuggestionData'](_0x5cccd0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d216c,'discard',()=>{this['_updateSuggestionData'](_0x5cccd0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5cccd0,_0x1d216c),this['_suggestionState']['set'](_0x1d216c,'notReady'),_0x1d216c;}['_splitMarkerName'](_0xbe2fc4){const _0x41b440=_0xbe2fc4['split'](':');return{'group':_0x41b440[0x0],'type':_0x41b440[0x1],'subType':_0x41b440['length']>=0x5?_0x41b440[0x2]:null,'id':_0x41b440['length']<0x5?_0x41b440[0x2]:_0x41b440[0x3],'authorId':_0x41b440['length']<0x5?_0x41b440[0x3]:_0x41b440[0x4],'markerCount':0x6==_0x41b440['length']?_0x41b440[0x5]:null};}['_breakSuggestionMarker'](_0x229ab1,_0x5d7fce,_0x57be82){const _0x33a7d8=_0x229ab1['getFirstRange'](),_0x33c075=_0x33a7d8['start'],_0x2df8f6=_0x33a7d8['end'];this['_setSuggestionRange'](_0x229ab1,this['_model']['createRange'](_0x33c075,_0x5d7fce));const _0x54a261=_0x9dfd99(),_0x32a04d=_0x229ab1['creator']['id'],_0x179e0f=_0x229ab1['type']+(_0x229ab1['subType']?':'+_0x229ab1['subType']:'');this['_setSuggestionData']({'id':_0x54a261,'type':_0x179e0f,'createdAt':new Date(),'authorId':_0x32a04d,'originalSuggestionId':_0x229ab1['id'],'attributes':_0x229ab1['attributes'],'data':_0x229ab1['data']});const _0x32f646=this['_getAttributeKey'](_0x229ab1);('formatBlock'==_0x229ab1['type']||_0x32f646&&this['_isBlockAttribute'](_0x32f646))&&(_0x57be82=this['_model']['createPositionBefore'](_0x57be82['parent'])),this['_addSuggestionMarker'](_0x179e0f,_0x54a261,_0x32a04d,this['_model']['createRange'](_0x57be82,_0x2df8f6));}['_findSuggestions'](_0x4a1aea,_0x3d987d=null){const _0x209a11=[],_0x577b40=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4a1aea)||(_0x4a1aea=[_0x4a1aea]);for(const _0x25a27a of this['getSuggestions']()){if(!_0x25a27a['isInContent'])continue;if(_0x3d987d&&_0x25a27a['type']!=_0x3d987d)continue;let _0x197308=!0x1;for(const _0x1aaf69 of _0x25a27a['getRanges']()){for(const _0x480777 of _0x4a1aea){const _0xa28e15=_0x480777['start']['isEqual'](_0x1aaf69['end'])||_0x480777['end']['isEqual'](_0x1aaf69['start']);if(_0xa28e15||_0x480777['getIntersection'](_0x1aaf69)){const _0x2b1bd5=_0x480777['containsRange'](_0x1aaf69)&&Gt(this['_model']['schema'],_0x1aaf69['start'],_0x480777),_0xc67a64=_0x1aaf69['containsRange'](_0x480777)&&Gt(this['_model']['schema'],_0x480777['start'],_0x1aaf69);_0x209a11['push']({'suggestion':_0x25a27a,'meta':{'isOwn':_0x577b40==_0x25a27a['author'],'isNextTo':_0xa28e15,'isInsideObject':_0x2b1bd5,'containsRangeInObject':_0xc67a64}}),_0x197308=!0x0;break;}}if(_0x197308)break;}}return _0x209a11;}['_addSuggestionMarker'](_0x1fa4e9,_0x3f02b1,_0x402f65,_0x5ae2e8,_0x80404){this['_model']['change'](_0x56272a=>{let _0x2b0449='suggestion:'+_0x1fa4e9+':'+_0x3f02b1+':'+_0x402f65;_0x80404&&(_0x2b0449=_0x2b0449+':'+_0x80404),_0x56272a['addMarker'](_0x2b0449,{'range':_0x5ae2e8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2b4477){const _0x1fbda9=_0x2b4477['previous'],_0x56edef=_0x2b4477['next'];_0x2b4477['previous']=null,_0x2b4477['next']=null,null!=_0x1fbda9&&_0x1fbda9['next']==_0x2b4477&&(_0x1fbda9['next']=_0x56edef),null!=_0x56edef&&_0x56edef['previous']==_0x2b4477&&(_0x56edef['previous']=_0x1fbda9),'ready'==this['_suggestionState']['get'](_0x2b4477)&&(this['_suggestionState']['set'](_0x2b4477,'removed'),this['fire']('suggestionUnloaded',_0x2b4477,_0x1fbda9,_0x56edef));}['_setSuggestionData'](_0x28f558){const _0x152ad4=_0x28f558['id'],_0x6ea122=this['addSuggestionData'](_0x28f558);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xe0f982=this['editor']['plugins']['get']('PendingActions'),_0xccd4f0=_0x6ea122['hasComments'],_0x2570a1=_0x6ea122['subType']?_0x6ea122['type']+':'+_0x6ea122['subType']:_0x6ea122['type'],_0x495876=this['editor']['locale'],_0x478929=_0xe0f982['add'](o(_0x495876,'PENDING_ACTION_SUGGESTION')),_0x5d5748={'id':_0x152ad4,'type':_0x2570a1,'hasComments':_0xccd4f0,'data':_0x28f558['data']||null,'originalSuggestionId':_0x28f558['originalSuggestionId']||null,'attributes':_0x6ea122['attributes']};this['_adapter']['addSuggestion'](_0x5d5748)['then'](_0x20a06b=>{_0x6ea122['_saved']=!0x0,_0xe0f982['remove'](_0x478929),_0x20a06b&&_0x20a06b['createdAt']&&(this['_suggestions']['get'](_0x152ad4)['createdAt']=_0x20a06b['createdAt']);})['catch'](_0xf5b97f=>{throw _0x4e87ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x6ea122['discard']();}),_0x6ea122['stopListening'](),this['_suggestions']['delete'](_0x6ea122['id']),this['_suggestionState']['delete'](_0x6ea122),_0xf5b97f;});}return _0x6ea122;}['_isBlockAttribute'](_0x5ce4ce){return this['_blockAttributeKeys']['has'](_0x5ce4ce);}['_updateSuggestionData'](_0x293232,_0x1a3114){const _0x47e030=this['editor']['plugins']['get']('PendingActions'),_0x599b4d=this['getSuggestion'](_0x293232);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x599b4d['_saved']){const _0x1dd895=_0x47e030['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x293232,_0x1a3114)['then'](()=>{_0x47e030['remove'](_0x1dd895);});}else _0x599b4d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x293232,_0x1a3114);});}}['_getSuggestionData'](_0x111993){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4b8a78('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x111993);}['_handleNewSuggestionMarker'](_0x6a8033){const {id:_0x5bbae5,type:_0x45cc67,subType:_0x320703,authorId:_0x1bd47d}=this['_splitMarkerName'](_0x6a8033),_0x43d96c=this['_suggestions']['get'](_0x5bbae5)||this['_createSuggestion'](_0x45cc67,_0x320703,_0x5bbae5,_0x1bd47d,{});switch(this['_checkSuggestionCorrectness'](_0x43d96c,_0x45cc67,_0x320703,_0x1bd47d),this['_suggestionState']['get'](_0x43d96c)){case'notReady':this['_getSuggestionData'](_0x5bbae5)['then'](_0x2e2cef=>{let _0x36323f=Promise['resolve']();_0x2e2cef['hasComments']&&(_0x36323f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5bbae5})),_0x36323f['then'](()=>{this['addSuggestionData'](_0x2e2cef)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x43d96c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5bbae5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x43d96c,'ready'),this['fire']('suggestionLoaded',_0x43d96c);break;case'ready':this['fire']('suggestionChanged',_0x43d96c);}return _0x43d96c['addMarkerName'](_0x6a8033),_0x43d96c;}['_refreshSuggestionsChain'](_0xbe2185){const _0x5bd8f8=Array['from'](_0xbe2185),_0x3dc0ad=_0x5bd8f8['filter'](_0x3c2f6b=>'attribute'==_0x3c2f6b['type']);this['_refreshAttributeSuggestionsChain'](_0x3dc0ad);const _0x4a65d2=_0x5bd8f8['filter'](_0xe487e0=>!_0xe487e0['isMultiRange']&&'attribute'!=_0xe487e0['type']),_0x247c63=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d429e=>!_0x4d429e['isMultiRange']&&'attribute'!=_0x4d429e['type']),_0x2a23ef=_0x247c63['filter'](_0x237d25=>!_0xbe2185['has'](_0x237d25)),_0x322620=new Map(_0x247c63['map'](_0x42adb9=>[_0x42adb9,this['_suggestionFactory']['getSuggestionCallback'](_0x42adb9['type'],_0x42adb9['subType'],'chain')])),_0x5011cf=new Map(_0x247c63['map'](_0x11668a=>[_0x11668a,_0x11668a['getFirstRange']()])),_0x5de0f9=new Set(),_0x587553=new Set();for(let _0x2c93fe=0x0;_0x2c93fe<_0x4a65d2['length'];_0x2c93fe++)_0x514ee8(_0x4a65d2[_0x2c93fe],_0x4a65d2,_0x2c93fe+0x1);for(let _0x19b958=0x0;_0x19b958<_0x4a65d2['length'];_0x19b958++)_0x514ee8(_0x4a65d2[_0x19b958],_0x2a23ef,0x0);const _0x1159fa=new Set();for(let _0x44d205=0x0;_0x44d205<_0x4a65d2['length'];_0x44d205++){const _0x1dc910=_0x4a65d2[_0x44d205];!_0x587553['has'](_0x1dc910)&&_0x1dc910['previous']&&(_0x1159fa['add'](_0x1dc910['previous']),_0x1dc910['previous']['next']===_0x1dc910&&(_0x1dc910['previous']['next']=null),_0x1dc910['previous']=null),!_0x5de0f9['has'](_0x1dc910)&&_0x1dc910['next']&&(_0x1159fa['add'](_0x1dc910['next']),_0x1dc910['next']['previous']===_0x1dc910&&(_0x1dc910['next']['previous']=null),_0x1dc910['next']=null);}function _0x514ee8(_0x189471,_0x4a867b,_0x891ad5){for(let _0x22fb41=_0x891ad5;_0x22fb41<_0x4a867b['length'];_0x22fb41++){const _0x51ddd6=_0xd53724(_0x189471,_0x4a867b[_0x22fb41]);_0x51ddd6&&(_0x51ddd6[0x0]['next']=_0x51ddd6[0x1],_0x51ddd6[0x1]['previous']=_0x51ddd6[0x0],_0x5de0f9['add'](_0x51ddd6[0x0]),_0x587553['add'](_0x51ddd6[0x1]));}}function _0xd53724(_0x4987b0,_0x507638){if(_0x4987b0['author']['id']!==_0x507638['author']['id'])return null;const _0x350fbf=_0x322620['get'](_0x4987b0)(_0x4987b0,_0x507638,_0x5011cf['get'](_0x4987b0),_0x5011cf['get'](_0x507638));if(!_0x350fbf)return null;return _0x322620['get'](_0x507638)(_0x4987b0,_0x507638,_0x5011cf['get'](_0x4987b0),_0x5011cf['get'](_0x507638))?_0x350fbf[0x1]['commentThread']&&_0x350fbf[0x1]['commentThread']['length']?null:_0x350fbf:null;}_0x1159fa['size']&&this['_refreshSuggestionsChain'](_0x1159fa);}['_refreshAttributeSuggestionsChain'](_0x54a201){if(0x0==_0x54a201['length'])return;const _0x13d17a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9568b4=>'attribute'==_0x9568b4['type']&&_0x9568b4['_isDataLoaded']),_0x122469=[],_0x50a8b0=new Map();for(const _0x25d674 of _0x13d17a){const _0x439eb6=_0x228b3d(_0x25d674['attributes']);_0x50a8b0['has'](_0x439eb6)||(_0x50a8b0['set'](_0x439eb6,_0x122469['length']),_0x122469['push']([]));const _0x5d9fbc=_0x50a8b0['get'](_0x439eb6);_0x122469[_0x5d9fbc]['push'](_0x25d674);}!(function(){_0x122469['sort']((_0x5b415c,_0x5908a8)=>{const _0x15aa2b=_0x5b415c[0x0]['createdAt'],_0x4928cd=_0x5908a8[0x0]['createdAt'];return _0x15aa2b==_0x4928cd?_0x5b415c[0x0]['attributes']['groupId']<_0x5908a8[0x0]['attributes']['groupId']?-0x1:0x1:_0x15aa2b<_0x4928cd?-0x1:0x1;});for(const _0x3a5a43 of _0x122469)_0x3a5a43['sort']((_0x9bc16b,_0x538e35)=>_0x9bc16b['id']<_0x538e35['id']?-0x1:0x1);}());for(let _0x3d7c6f=0x0;_0x3d7c6f<_0x122469['length'];_0x3d7c6f++){if(0x0==_0x122469[_0x3d7c6f]['length'])continue;const _0x2263a4=[];for(let _0x576411=_0x3d7c6f+0x1;_0x576411<_0x122469['length'];_0x576411++)0x0!=_0x122469[_0x576411]['length']&&_0x3617ec(_0x122469[_0x3d7c6f],_0x122469[_0x576411])&&_0x2263a4['push'](_0x576411);for(const _0x43e0dc of _0x2263a4)_0x122469[_0x3d7c6f]=_0x122469[_0x3d7c6f]['concat'](_0x122469[_0x43e0dc]),_0x122469[_0x43e0dc]=[];}for(const _0x16c798 of _0x122469)for(let _0x5ac5fe=0x0;_0x5ac5fe<_0x16c798['length'];_0x5ac5fe++){const _0x1299ef=_0x16c798[_0x5ac5fe+0x1]||null;_0x16c798[_0x5ac5fe]['next']!==_0x1299ef&&(_0x16c798[_0x5ac5fe]['next']=_0x1299ef);}for(const _0x4cc4fa of _0x122469)for(let _0x3d4451=0x0;_0x3d4451<_0x4cc4fa['length'];_0x3d4451++){const _0x14be70=_0x4cc4fa[_0x3d4451-0x1]||null;_0x4cc4fa[_0x3d4451]['previous']!==_0x14be70&&(_0x4cc4fa[_0x3d4451]['previous']=_0x14be70);}function _0x3617ec(_0x23457a,_0x113c34){if(_0x23457a[0x0]['attributes']['groupId']!==_0x113c34[0x0]['attributes']['groupId']&&_0x23457a[0x0]['author']!==_0x113c34[0x0]['author'])return!0x1;if(!function(_0x276684,_0x570a3b){if(!_0x276684['hasComments']&&!_0x570a3b['hasComments'])return!0x0;if(_0x276684['hasComments']&&_0x570a3b['hasComments'])return!0x1;if(_0x276684['hasComments']&&_0x570a3b['createdAt']<_0x276684['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x570a3b['hasComments']&&_0x276684['createdAt']<_0x570a3b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23457a[0x0],_0x113c34[0x0]))return!0x1;const _0x24eaeb=Vt(_0x23457a[0x0]['attributes'],'groupId'),_0x302d24=Vt(_0x113c34[0x0]['attributes'],'groupId');if(!_0x551fb5(_0x24eaeb,_0x302d24))return!0x1;return!!_0x23457a['every'](_0x2dc733=>_0x113c34['some'](_0x1e1ac0=>_0x2dc733['getFirstRange']()['isEqual'](_0x1e1ac0['getFirstRange']())))&&_0x113c34['every'](_0x40f925=>_0x23457a['some'](_0xed67eb=>_0x40f925['getFirstRange']()['isEqual'](_0xed67eb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1e88f6){const _0x271800=Array['from'](_0x1e88f6),_0x9aa122=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3fb20e=_0x9aa122['filter'](_0x56ea87=>!_0x1e88f6['has'](_0x56ea87)),_0x8b6008=new Map(_0x271800['map'](_0x2c26ec=>[_0x2c26ec,this['_suggestionFactory']['getSuggestionCallback'](_0x2c26ec['type'],_0x2c26ec['subType'],'join')])),_0x209fc3=new Map(_0x9aa122['map'](_0x24d4cc=>[_0x24d4cc,_0x24d4cc['getRanges']()]));for(let _0x103642=0x0;_0x103642<_0x271800['length'];_0x103642++){if(_0x1734e1(this,_0x271800[_0x103642],_0x271800,_0x103642+0x1))return!0x0;}for(let _0x48fd5d=0x0;_0x48fd5d<_0x271800['length'];_0x48fd5d++){if(_0x1734e1(this,_0x271800[_0x48fd5d],_0x3fb20e,0x0))return!0x0;}return!0x1;function _0x1734e1(_0x23cdba,_0x44c6d6,_0x1f10a6,_0x5c2f6c){for(let _0x351e35=_0x5c2f6c;_0x351e35<_0x1f10a6['length'];_0x351e35++){const _0x1e7ee3=_0x1f10a6[_0x351e35];if(_0x1e7ee3['type']!==_0x44c6d6['type']||_0x1e7ee3['author']['id']!==_0x44c6d6['author']['id']||_0x1e7ee3['subType']!==_0x44c6d6['subType'])continue;if(!Wt(_0x44c6d6,_0x1e7ee3))continue;if('attribute'==_0x44c6d6['type']&&_0x44c6d6['data']['oldValue']!=_0x1e7ee3['data']['oldValue'])continue;if('attribute'==_0x44c6d6['type']&&_0x23cdba['_isBlockAttribute'](_0x44c6d6['data']['key']))continue;if('formatBlock'==_0x44c6d6['type']){const _0x4e524e=_0x23cdba['editor']['model'],_0x22a821=_0x44c6d6['getContainedElement']();if(_0x22a821&&(_0x4e524e['schema']['isObject'](_0x22a821)||_0x4e524e['schema']['isLimit'](_0x22a821)))continue;}const _0x3d3248=_0x8b6008['get'](_0x44c6d6),_0x4d8fea=_0x209fc3['get'](_0x44c6d6),_0x2cb240=_0x209fc3['get'](_0x1e7ee3),_0x246a3a=_0x44c6d6['commentThread']&&_0x44c6d6['commentThread']['length'],_0x2cba2a=_0x1e7ee3['commentThread']&&_0x1e7ee3['commentThread']['length'];if(!_0x246a3a&&_0x3d3248(_0x2cb240,_0x4d8fea))return _0x23cdba['_joinSuggestions'](_0x1e7ee3,_0x44c6d6),_0x209fc3['delete'](_0x44c6d6),!0x0;if(!_0x2cba2a&&_0x3d3248(_0x4d8fea,_0x2cb240))return _0x23cdba['_joinSuggestions'](_0x44c6d6,_0x1e7ee3),_0x209fc3['delete'](_0x1e7ee3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x52034e,_0x43c7f1){if(_0x52034e['isMultiRange']){for(const _0x218b24 of _0x43c7f1['getRanges']())_0x52034e['addRange'](_0x218b24);}else{const _0x562a85=_0x43c7f1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x52034e,this['_model']['createRange'](_0x52034e['getFirstRange']()['start'],_0x562a85));}_0x43c7f1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4ee04c,_0x791b0d,_0x3a3dc4){const _0x28bca7=_0x4ee04c['startsWith']('format')||_0x4ee04c['startsWith']('attribute')?'FORMATTING':_0x4ee04c['toUpperCase']();return o(this['editor']['locale'],_0x791b0d+'_'+_0x28bca7+'_SUGGESTION_ANNOUNCEMENT',_0x3a3dc4);}['_initAriaMarkerChangeAnnouncements'](){const _0x58adb5=this['editor'];if(!_0x58adb5['ui'])return;const {ariaLiveAnnouncer:_0x2b82c2}=_0x58adb5['ui'];_0x2553b8(this['_model'],({left:_0xfa0fc0,entered:_0x5573ed})=>{for(const _0x1f988f of _0xfa0fc0){const {group:_0x1bf2e3,type:_0x4a10ac}=this['_splitMarkerName'](_0x1f988f['name']);if('suggestion'===_0x1bf2e3){_0x2b82c2['announce'](this['_getMarkerAnnouncementText'](_0x4a10ac,'LEAVE'));break;}}for(const _0x46e0af of _0x5573ed){const {group:_0x2195d2,type:_0x34c447}=this['_splitMarkerName'](_0x46e0af['name']);if('suggestion'===_0x2195d2){_0x2b82c2['announce'](this['_getMarkerAnnouncementText'](_0x34c447,'ENTER',_0x138418(_0xc171a8)));break;}}});}['_processAttributeChanges'](_0xfa856f){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb87d70=this['editor'],_0x5f4ab4=_0xb87d70['model']['document']['differ']['getChanges']();if(0x0==_0x5f4ab4['length'])return!0x1;const _0x5c006f=[],_0x18be68=_0x5f4ab4['filter'](_0x5eef34=>'attribute'==_0x5eef34['type']),_0x32a344=_0x5f4ab4['filter'](_0x1045b5=>'insert'==_0x1045b5['type']&&'$text'!=_0x1045b5['name']),_0x5d1c7a=_0x5f4ab4['filter'](_0x361032=>'remove'==_0x361032['type']&&'$text'!=_0x361032['name']);for(const _0x34bb64 of _0x18be68)_0x5c006f['push']({'key':_0x34bb64['attributeKey'],'newValue':_0x34bb64['attributeNewValue'],'oldValue':_0x34bb64['attributeOldValue'],'range':qt(_0x34bb64['range'],_0xb87d70['model'])});for(const _0x230180 of _0x32a344){const _0x39a144=_0x5d1c7a['find'](_0x257ae1=>_0x257ae1['position']['isEqual'](_0x230180['position']));_0x39a144&&_0x5c006f['push']({'key':m,'newValue':_0x230180['name'],'oldValue':_0x39a144['name'],'range':_0xb87d70['model']['createRangeOn'](_0x230180['position']['nodeAfter'])});}return 0x0!=_0x5c006f['length']&&this['_reduceExistingSuggestions'](_0xfa856f,_0x5c006f);}['_processAttributeSuggestions'](_0x5839bb){let _0x147b96=!0x1;const _0x12d754=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21624a=>_0x21624a['data']['newRange']&&_0x21624a['name']['startsWith']('suggestion:attribute:'));for(const _0x586d33 of _0x12d754){const {subType:_0x38fd9e,id:_0x38bf47}=this['_splitMarkerName'](_0x586d33['name']),_0xf2eaa3=_0x38fd9e['split']('|')[0x0];for(const _0x5c6f87 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5c6f87['id']!=_0x38bf47&&'attribute'==_0x5c6f87['type']&&_0x5c6f87['data']&&_0x5c6f87['data']['key']==_0xf2eaa3&&_0x5c6f87['getFirstRange']()['isIntersecting'](_0x586d33['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5c6f87,_0x586d33['data']['newRange'],_0x5839bb),_0x147b96=!0x0);}return _0x147b96;}['_recordAttributeChanges'](_0x3ec95a){this['_recordAttributeSuggestions']=!0x0,_0x3ec95a();}['_isRegisteredAttribute'](_0x1bb4e4){const _0x21ff4c=this['_isBlockAttribute'](_0x1bb4e4),_0x520509=this['_inlineAttributeKeys']['has'](_0x1bb4e4);return _0x21ff4c||_0x520509;}['_reduceExistingSuggestions'](_0x11f8a0,_0x52823b){if(0x0==_0x52823b['length'])return!0x1;let _0x452b23=!0x1;for(const _0x5d7d87 of _0x52823b){const _0x4985fe=this['_findSuggestions'](_0x5d7d87['range'],'attribute')['filter'](_0xc7e255=>!_0xc7e255['meta']['isNextTo'])['map'](_0x3c3ed5=>_0x3c3ed5['suggestion']),_0x5c59fb=_0x228b3d({'newValue':_0x5d7d87['newValue']});_0x4985fe['filter'](_0x296f8b=>{const [_0x578637,_0x5dd076]=_0x296f8b['subType']['split']('|');return _0x578637==_0x5d7d87['key']&&_0x5dd076!=_0x5c59fb;})['forEach'](_0x45b5d7=>{this['_reduceSuggestionAttributeRange'](_0x45b5d7,_0x5d7d87['range'],_0x11f8a0),_0x452b23=!0x0;});}return _0x452b23;}['_reduceSuggestionAttributeRange'](_0x3c0da7,_0x1a3e6a,_0x506c85){const _0x1c38b9=_0x3c0da7['getFirstRange']()['getDifference'](_0x1a3e6a);0x0!==_0x1c38b9['length']?0x1!==_0x1c38b9['length']?this['_breakSuggestionMarker'](_0x3c0da7,_0x1a3e6a['start'],_0x1a3e6a['end']):this['_setSuggestionRange'](_0x3c0da7,_0x1c38b9[0x0]):_0x506c85['removeMarker'](_0x3c0da7['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5c6767){this['_editor']=_0x5c6767,this['_model']=_0x5c6767['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x12c4e7,_0x3aa576,_0x7352ba,_0x46769d,_0x25d6cd,_0x8e5648){return new u(this['_model'],{'type':_0x12c4e7,'subType':_0x3aa576,'id':_0x7352ba,'author':_0x46769d,'creator':_0x46769d,'attributes':_0x25d6cd,'onAttributesChange':_0x8e5648,'onAccept':(..._0x3817d1)=>this['getSuggestionCallback'](_0x12c4e7,_0x3aa576,'accept')(..._0x3817d1),'onDiscard':(..._0x142e2a)=>this['getSuggestionCallback'](_0x12c4e7,_0x3aa576,'discard')(..._0x142e2a)});}['registerCustomCallback'](_0x18157d,_0x3e3c7d,_0x13cd78,_0x1ba70c){const _0x13ef8c=_0x18157d+':'+_0x3e3c7d+':'+_0x13cd78;this['_customCallbacks']['set'](_0x13ef8c,_0x1ba70c);}['getSuggestionCallback'](_0x2a1f54,_0x364ba4,_0x5d8742){const _0x60e7b1=_0x2a1f54+':'+_0x364ba4+':'+_0x5d8742;return this['_customCallbacks']['get'](_0x60e7b1)||this['_defaultCallbacks']['get'](_0x2a1f54+':'+_0x5d8742);}['_registerDefaultCallbacks'](){const _0x236bf5=()=>!0x1,_0x4a7cad=_0x3e657e=>{_0x3e657e['sort']((_0xc542e2,_0x368c24)=>_0xc542e2['start']['isBefore'](_0x368c24['start'])?0x1:-0x1),this['_model']['change'](_0x247148=>{for(const _0x2544e7 of _0x3e657e){let _0x5a5f8f;_0x5a5f8f=_0x2544e7['end']['isAtEnd']&&_0x2544e7['end']['parent']==_0x2544e7['start']['nodeAfter']?_0x247148['createSelection'](_0x2544e7['start']['nodeAfter'],'on'):_0x247148['createSelection'](_0x2544e7),this['_model']['deleteContent'](_0x5a5f8f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9adcfe=(_0x5460e4,_0x39e184)=>{_0x39e184&&this['_model']['change'](_0xcf9de1=>{const {commandName:_0x480288,commandParams:_0x599f17=[]}=_0x39e184,_0x4f7fe4=_0x5460e4['map'](_0x4eb50c=>(Ft(_0x4eb50c)&&(_0x4eb50c=this['_model']['createRange'](_0x4eb50c['end'])),_0x4eb50c))['filter'](_0x57e92f=>'$graveyard'!==_0x57e92f['root']['rootName']);if(_0x4f7fe4['length']<0x1)return;const _0x4f88ea=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b3675=>_0x45a705['fromRange'](_0x5b3675));_0xcf9de1['setSelection'](_0x4f7fe4);for(const _0x2aadc4 of this['_editor']['commands']['commands']())_0x2aadc4['refresh']();_0x599f17['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x480288,..._0x599f17);const _0x31315f=_0x4f88ea['filter'](_0x28b341=>'$graveyard'!=_0x28b341['root']['rootName']);_0x31315f['length']>0x0&&_0xcf9de1['setSelection'](_0x31315f);for(const _0x24fc19 of _0x4f88ea)_0x24fc19['detach']();});},_0x4b5229=(_0xc322d,_0x17a69f)=>0x1==_0xc322d['length']&&0x1==_0x17a69f['length']&&_0xc322d[0x0]['end']['isEqual'](_0x17a69f[0x0]['start']),_0x2cb2de=(_0x506453,_0x3787e7,_0x2d947c,_0xf906ae)=>Kt(_0x506453,_0x3787e7,_0x2d947c,_0xf906ae)?[_0x506453,_0x3787e7]:Kt(_0x3787e7,_0x506453,_0xf906ae,_0x2d947c)?[_0x3787e7,_0x506453]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x236bf5),this['_defaultCallbacks']['set']('insertion:discard',_0x4a7cad),this['_defaultCallbacks']['set']('insertion:join',_0x4b5229),this['_defaultCallbacks']['set']('insertion:chain',_0x2cb2de),this['_defaultCallbacks']['set']('deletion:accept',_0x4a7cad),this['_defaultCallbacks']['set']('deletion:discard',_0x236bf5),this['_defaultCallbacks']['set']('deletion:join',_0x4b5229),this['_defaultCallbacks']['set']('deletion:chain',_0x2cb2de),this['_defaultCallbacks']['set']('formatInline:accept',_0x9adcfe),this['_defaultCallbacks']['set']('formatInline:discard',_0x236bf5),this['_defaultCallbacks']['set']('formatInline:join',_0x4b5229),this['_defaultCallbacks']['set']('formatInline:chain',_0x236bf5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9adcfe),this['_defaultCallbacks']['set']('formatBlock:discard',_0x236bf5),this['_defaultCallbacks']['set']('formatBlock:join',_0x4b5229),this['_defaultCallbacks']['set']('formatBlock:chain',_0x236bf5),this['_defaultCallbacks']['set']('attribute:accept',_0x236bf5),this['_defaultCallbacks']['set']('attribute:discard',(_0x57d897,_0x3d7c59)=>{if(!_0x3d7c59)return;const _0x2bb11a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5c24de=>{if(_0x3d7c59['key']==m)for(const _0x1c7f97 of _0x57d897){const _0x3fda5c=_0x1c7f97['start']['nodeAfter'],_0x15476b=_0x3d7c59['oldValue'];_0x5c24de['rename'](_0x3fda5c,_0x15476b);}else{if(_0x2bb11a['_isBlockAttribute'](_0x3d7c59['key'])){for(const _0xa05637 of _0x57d897)void 0x0!==_0x3d7c59['oldValue']?_0x5c24de['setAttribute'](_0x3d7c59['key'],_0x3d7c59['oldValue'],_0xa05637['start']['nodeAfter']):_0x5c24de['removeAttribute'](_0x3d7c59['key'],_0xa05637['start']['nodeAfter']);}else{for(const _0x2b80a4 of _0x57d897)_0x3d7c59['oldValue']?_0x5c24de['setAttribute'](_0x3d7c59['key'],_0x3d7c59['oldValue'],_0x2b80a4):_0x5c24de['removeAttribute'](_0x3d7c59['key'],_0x2b80a4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4b5229);}}function Gt(_0x118686,_0x311b06,_0x18d2a0){for(const _0xc1cf8e of _0x311b06['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xc1cf8e['root']==_0xc1cf8e)return!0x1;if(!_0x18d2a0['containsItem'](_0xc1cf8e))return!0x1;if(_0x118686['isObject'](_0xc1cf8e)||_0x118686['isLimit'](_0xc1cf8e))return!0x0;}return!0x1;}function Ft(_0x4480fb){return _0x4480fb['end']['parent']==_0x4480fb['start']['nodeAfter']&&_0x4480fb['end']['isAtStart'];}function Lt(_0x521f32,_0x5076dd,_0x55c39d,_0x4fc355){const _0x2c0568=_0x3e3bd3=>!_0x3e3bd3['item']['is']('$textProxy')&&!_0x4fc355['isObject'](_0x3e3bd3['item']),_0x4b17cf=_0x521f32['start']['getLastMatchingPosition'](_0x2c0568),_0x26676b=_0x521f32['end']['getLastMatchingPosition'](_0x2c0568,{'direction':'backward'});return(!_0x521f32['start']['isEqual'](_0x4b17cf)||!_0x521f32['end']['isEqual'](_0x26676b))&&(_0x4b17cf['isBefore'](_0x26676b)?_0x55c39d['updateMarker'](_0x5076dd,{'range':_0x55c39d['createRange'](_0x4b17cf,_0x26676b)}):_0x55c39d['removeMarker'](_0x5076dd),!0x0);}function Jt(_0x245563){return _0x228b3d(_0x245563);}function Ht(_0x34507a){const _0x5e22a2=_0x34507a['start']['nodeAfter'];return _0x5e22a2&&_0x5e22a2['is']('element');}function qt(_0x59499d,_0xcd1a73){return null==_0x59499d['end']['nodeBefore']&&_0x59499d['end']['parent']==_0x59499d['start']['nodeAfter']?zt(_0x59499d['start']['nodeAfter'],_0xcd1a73):_0x59499d;}function zt(_0x5bf3c2,_0x414ce5){const _0x5e10cc=_0x414ce5['schema']['isObject'](_0x5bf3c2)||_0x414ce5['schema']['isSelectable'](_0x5bf3c2);return _0x414ce5['createRange'](_0x414ce5['createPositionAt'](_0x5bf3c2,'before'),_0x5e10cc?_0x414ce5['createPositionAfter'](_0x5bf3c2):_0x414ce5['createPositionAt'](_0x5bf3c2,'end'));}function Kt(_0x2c97ca,_0x470e72,_0x1c0d1b,_0x4323f4){return!!Wt(_0x2c97ca,_0x470e72)&&_0x1c0d1b['end']['isEqual'](_0x4323f4['start']);}function Wt(_0x6d6576,_0x47e3c4){if(!_0x6d6576['_isDataLoaded']||!_0x47e3c4['_isDataLoaded'])return!0x1;const _0x1ae668=new Set(Object['keys'](_0x6d6576['attributes'])),_0x5cb80b=new Set(Object['keys'](_0x47e3c4['attributes']));if(_0x1ae668['delete']('groupId'),_0x5cb80b['delete']('groupId'),0x0==_0x1ae668['size']&&0x0==_0x5cb80b['size'])return!0x0;if(_0x1ae668['size']!=_0x5cb80b['size'])return!0x1;const _0x4998c1={..._0x6d6576['attributes']},_0x26176e={..._0x47e3c4['attributes']};return delete _0x4998c1['groupId'],delete _0x26176e['groupId'],JSON['stringify'](_0x4998c1)==JSON['stringify'](_0x26176e);}function Qt(_0x2d0927,_0x312170){const _0x4063a9=Xt(_0x2d0927['attributes']),_0xd25407=Xt(_0x312170);if(!_0x2d0927['_isDataLoaded'])return!0x1;for(const _0x563df4 of Object['keys'](_0xd25407))if(!_0x551fb5(_0x4063a9[_0x563df4],_0xd25407[_0x563df4]))return!0x1;return!0x0;}function Xt(_0x1467a2){const _0x5c3b51=Object['assign']({},_0x1467a2);return delete _0x5c3b51['skipNestingCheck'],delete _0x5c3b51['tablePasteChainId'],_0x5c3b51;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x31ae16(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b1845,_0x108688,_0x52815f,_0x134eca){super(),this['model']=_0x108688,this['view']=_0x52815f,this['commentThreadController']=_0x134eca,this['_editor']=_0x4b1845,this['_acceptCommand']=_0x4b1845['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b1845['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ee7e5,_0x173fc0)=>_0x4ee7e5||_0x173fc0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x456296=>_0x456296&&this['_editor']['model']['canEditAt'](_0x108688['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5194c5=>_0x5194c5&&this['_editor']['model']['canEditAt'](_0x108688['getRanges']())),this['_pendingAction']=null,_0x52815f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52815f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52815f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52815f,'change:isDirty',()=>{_0x52815f['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 _0x5c73d9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5c73d9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x4ae36d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4b3b00,_0x15ff4f,_0x468000,_0x2ceeaf){super(_0x4b3b00),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5788bf(_0x4b3b00,o(_0x4b3b00,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x15ff4f['authoredAt']),this['bind']('authoredAt')['to'](_0x15ff4f),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',_0x15ff4f,'authoredAt',this,'descriptionParts',(_0x3e95eb,_0x5e4611,_0x42bc17)=>{const _0x4c3059=_0x42bc17['map'](_0x296850=>cs(_0x296850['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3e95eb-0x1,_0x15ff4f['author']['name'],_0x5e4611?_0x2ceeaf['formatDateTime'](_0x5e4611):'',new DOMParser()['parseFromString'](_0x4c3059,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1b37d8(),this['focusTracker']=new _0x354893(),this['keystrokes']=new _0x512675(),this['focusCycler']=new _0x52f914({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x7436a4=>_0x7436a4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x15ff4f,this['_localUser']=_0x468000,this['_config']=_0x2ceeaf,_0x2ceeaf['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1545ac(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x27009a}=this['_config'];this['commentsListView']=new _0x27009a(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',_0x4d1f97=>_0x4d1f97+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x100fd1,_0x360469)=>_0x100fd1||!!_0x360469);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x850f6b}=this['_config'],_0x5a2771=new _0x850f6b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x325599=_0x5a2771['commentInputView'];return _0x5a2771['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x325599,'value',(_0x5dd773,_0x3a4a3e,_0x3f64a5)=>!!_0x3f64a5||_0x5dd773&&!_0x3a4a3e),_0x325599['on']('submit',(_0x519adc,_0x1388b0)=>{this['fire']('addComment',_0x1388b0),_0x325599['editor']['setData']('');}),_0x325599['on']('cancel',()=>this['focus']()),_0x325599['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a2771;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x5e6a73,_0x50ed40,_0x557886,_0xacd33e){super(_0x5e6a73,_0x50ed40,_0x557886,_0xacd33e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x494ab7=>_0x494ab7&&_0x494ab7[0x0]?_0x494ab7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x29f625,_0x54fdac)=>{let _0x41c8ae='';for(const _0x26f2c5 of _0x29f625)_0x41c8ae+='<p>'+cs(_0x26f2c5['content'],_0x26f2c5['color'])+'</p>';return _0x54fdac?_0x41c8ae:_0x7bd87b(_0x41c8ae,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xacd33e['SuggestionView'](_0x5e6a73,_0x50ed40,{'formatDateTime':_0xacd33e['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 _0x2c9434=this['bindTemplate'],_0x230066=[this['suggestionView']];return this['commentsListView']&&_0x230066['push'](this['commentsListView']),this['commentThreadInputView']&&_0x230066['push'](this['commentThreadInputView']),_0x230066['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c9434['if']('isActive','ck-suggestion-wrapper--active'),_0x2c9434['to']('type',_0x5b4dbe=>'ck-suggestion-'+_0x5b4dbe),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':_0x2c9434['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x230066};}['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 fe extends _0x4ae36d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49069c,_0x52ea4f,_0x3985f5){super(_0x49069c),this['_model']=_0x52ea4f,this['_config']=_0x3985f5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x52ea4f),this['acceptButton']=this['_createButton'](o(_0x49069c,'Accept\x20suggestion'),_0xd3e014['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x49069c,'Discard\x20suggestion'),_0xd3e014['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x16719a(_0x49069c,_0x52ea4f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1b37d8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x354893(),this['keystrokes']=new _0x512675(),this['focusCycler']=new _0x52f914({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ff483=>_0x3ff483['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x239674=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x239674['innerHTML']=this['description'],this['on']('change:description',(_0x1d3393,_0x1eaa34,_0x50284b)=>{_0x239674['innerHTML']=_0x50284b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5f2b3b=this['bindTemplate'],_0x26f6f1=[{'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':_0x5f2b3b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5f2b3b['to']('authoredAt',_0x19d502=>this['_config']['formatDateTime'](_0x19d502))}]}]},{'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']&&_0x26f6f1['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':_0x26f6f1}]};}['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'](_0x28f414,_0x4587ac,_0x504ee9,_0xac2dda,_0x3cb704){const _0x19b1b6=new _0x179be5(this['locale']);return _0x19b1b6['set']({'label':_0x28f414,'icon':_0x4587ac,'tooltip':!0x0,'tooltipPosition':_0x3cb704}),_0x19b1b6['extendTemplate']({'attributes':{'class':_0x504ee9}}),_0x19b1b6['on']('execute',()=>{this['fire'](_0xac2dda,this['_model']['id']);}),_0x19b1b6;}['_setupKeyboardNavigation'](){const _0x11f7bc=this['element'];this['keystrokes']['listenTo'](_0x11f7bc);for(const _0x31b6b7 of this['focusables'])this['focusTracker']['add'](_0x31b6b7['element']),this['keystrokes']['listenTo'](_0x31b6b7['element']);this['keystrokes']['set']('enter',(_0x1698df,_0x64c945)=>{_0x11f7bc===_0x1698df['target']&&(this['focusCycler']['focusFirst'](),_0x64c945());}),this['keystrokes']['set']('esc',(_0x5a2f52,_0x1c8370)=>{_0x11f7bc!==_0x5a2f52['target']&&(this['focus'](),_0x1c8370());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x19139a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x58d0e8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x544c40){super(_0x544c40),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27f313=this['editor']['config'];_0x27f313['define']('trackChanges.SuggestionThreadView',pe),_0x27f313['define']('trackChanges.SuggestionView',fe),_0x27f313['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27f313['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f161e,_0x51305e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3bdcc5,_0x2c42f8]of this['_handleControllerBuffer']){const _0xbc1f2e=this['_suggestionToController']['has'](_0x3bdcc5);_0xbc1f2e||_0x2c42f8?_0xbc1f2e&&_0x2c42f8&&this['_destroyController'](_0x3bdcc5):this['_initializeController'](_0x3bdcc5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f161e,_0x51305e);}['init'](){const _0x48bc97=this['editor'],_0x2abc45=_0x48bc97['plugins']['get']('TrackChangesEditing'),_0x34217c=_0x48bc97['plugins']['get']('Annotations'),_0x1e3a8e=_0x48bc97['plugins']['get']('EditorAnnotations'),_0x5d0d72=_0x48bc97['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1e3a8e['addSourceCollector'](()=>{const _0x4850cc=[];for(const [_0x1aed2e,_0x1e9b37]of Array['from'](this['_suggestionToController'])){const _0x335d39=_0x1aed2e['getAllAdjacentSuggestions'](),_0x2f8487=[];for(const _0x3a912c of _0x335d39){if(!_0x3a912c['isInContent'])continue;if(_0x3a912c['isMultiRange']){_0x2f8487['push'](..._0x3a912c['getRanges']());continue;}const _0x3b6d62=_0x3a912c['getFirstRange']();if(_0x2f8487['length']>0x0){const _0x900d62=_0x2f8487[0x0]['getJoined'](_0x3b6d62);if(_0x900d62){_0x2f8487[0x0]=_0x900d62;continue;}}_0x2f8487['push'](_0x3b6d62);}_0x4850cc['push']([_0x1e9b37['view'],_0x2f8487]);}return _0x4850cc;}),this['listenTo'](_0x2abc45,'suggestionLoaded',(_0x1f2d67,_0x4292fc)=>{this['listenTo'](_0x4292fc,'change:previous',(_0x546f80,_0x4f763e,_0x293097,_0xe88efc)=>{_0x4292fc['isInContent']&&(null==_0x293097?(this['_updateController'](_0xe88efc['head']),this['_handleSuggestionControllerDelayed'](_0x4292fc,!0x1)):(this['_updateController'](_0x293097['head']),null==_0xe88efc&&this['_handleSuggestionControllerDelayed'](_0x4292fc,!0x0)));}),null!==_0x4292fc['previous']?this['_updateController'](_0x4292fc['head']):this['_handleSuggestionControllerDelayed'](_0x4292fc,!0x1);}),this['listenTo'](_0x2abc45,'suggestionUnloaded',(_0x4d996b,_0xbe7d46,_0x3554ad)=>{this['stopListening'](_0xbe7d46,'change:previous'),this['_handleControllerBuffer']['delete'](_0xbe7d46),this['_suggestionToController']['has'](_0xbe7d46)&&this['_destroyController'](_0xbe7d46),_0x3554ad&&this['_updateController'](_0x3554ad['head']);}),this['listenTo'](_0x2abc45,'suggestionChanged',(_0x3837e4,_0x49711a)=>{this['_updateController'](_0x49711a);}),this['listenTo'](_0x34217c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5d0d72,'addComment',(_0x5a677e,{threadId:_0x52eea6,isFromAdapter:_0x1a543f})=>{if(_0x1a543f||!_0x2abc45['hasSuggestion'](_0x52eea6))return;const _0x3ed90e=_0x2abc45['getSuggestion'](_0x52eea6);this['_suggestionToController']['get'](_0x3ed90e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x14318f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29cd9b;for(const _0x194d17 in _0x14318f){const _0x32ed3d=_0x194d17,_0x38bec9=_0x14318f[_0x32ed3d];if('trackChangesLicenseKeyValid'==_0x38bec9||'trackChangesLicenseKeyInvalid'==_0x38bec9||'trackChangesLicenseKeyExpired'==_0x38bec9||'trackChangesLicenseKeyDomainLimit'==_0x38bec9||'trackChangesLicenseKeyNotAllowed'==_0x38bec9||'trackChangesLicenseKeyEvaluationLimit'==_0x38bec9||'trackChangesLicenseKeyTrialLimit'==_0x38bec9||'trackChangesLicenseKeyUsageLimit'==_0x38bec9){delete _0x14318f[_0x32ed3d],_0x29cd9b=_0x38bec9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x29cd9b&&_0x14318f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x29cd9b&&_0x14318f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x29cd9b&&_0x14318f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x29cd9b&&_0x14318f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x29cd9b&&_0x14318f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x29cd9b&&_0x14318f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x29cd9b&&_0x14318f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4ee318=this['editor']['plugins']['get']('Annotations'),_0x58595e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d297b=Array['from'](_0x4ee318['activeAnnotations'],_0x124cb5=>_0x124cb5['innerView'])['filter'](_0x9d6939=>this['_viewToController']['has'](_0x9d6939)),_0x57fe5f=[];for(const _0x410444 of _0x4d297b){const _0xae21cb=this['_viewToController']['get'](_0x410444)['model']['getAllAdjacentSuggestions']();_0x57fe5f['push'](..._0xae21cb['reduce']((_0x357f52,_0x193bc1)=>[..._0x357f52,..._0x193bc1['getMarkerNames']()],[]));}_0x58595e['activeMarkers']=_0x57fe5f;}['_addUIComponentsToFactory'](){const _0x346eb3=this['editor'],_0x52e455=_0x346eb3['locale'],_0x97c979=o(_0x52e455,'Track\x20changes'),_0x40ce9b=new _0x1fe6ff([{'type':'switchbutton','model':new _0x5a8dca({'withText':!0x0,'isToggleable':!0x0,'label':_0x97c979,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5a8dca({'withText':!0x0,'label':o(_0x52e455,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a8dca({'withText':!0x0,'label':o(_0x52e455,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a8dca({'withText':!0x0,'label':o(_0x52e455,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a8dca({'withText':!0x0,'label':o(_0x52e455,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x346eb3['plugins']['has']('TrackChangesPreview')&&_0x40ce9b['addMany']([{'type':'separator'},{'type':'button','model':new _0x5a8dca({'withText':!0x0,'label':o(_0x52e455,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x86d7b2 of _0x40ce9b)if(ke(_0x86d7b2)){const _0x57e1c0=_0x346eb3['commands']['get'](_0x86d7b2['model']['commandName']);_0x86d7b2['model']['bind']('isOn','isEnabled')['to'](_0x57e1c0,'value','isEnabled');}_0x346eb3['ui']['componentFactory']['add']('trackChanges',_0x3c84df=>this['_createToolbarButton'](_0x3c84df,_0x40ce9b,_0x97c979)),_0x346eb3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x48b10f=>this['_createMenuBarMenu'](_0x48b10f,_0x40ce9b,_0x97c979));}['_createToolbarButton'](_0x2f0f4a,_0x117bb5,_0x3f7494){const _0x4c44cc=_0x1f4f35(_0x2f0f4a,_0x189f1b),_0x1d132c=this['editor']['commands']['get']('trackChanges');_0x4c44cc['buttonView']['set']({'tooltip':_0x3f7494,'label':_0x3f7494,'icon':we}),_0x4c44cc['buttonView']['bind']('isOn')['to'](_0x1d132c,'value'),_0x4c44cc['buttonView']['on']('execute',()=>{_0x1d132c['execute'](),this['editor']['editing']['view']['focus']();}),_0x531e12(_0x4c44cc,_0x117bb5,{'role':'menu'});const _0x56f09e=[];for(const _0x5eeece of _0x117bb5)ke(_0x5eeece)&&_0x56f09e['push'](this['editor']['commands']['get'](_0x5eeece['model']['commandName']));const _0x167929=_0x4c44cc['buttonView'];return _0x167929['actionView']['unbind']('isEnabled'),_0x167929['arrowView']['unbind']('isEnabled'),_0x167929['actionView']['bind']('isEnabled')['to'](_0x1d132c,'isEnabled'),_0x167929['arrowView']['bind']('isEnabled')['toMany'](_0x56f09e,'isEnabled',(..._0x53dc5f)=>_0x53dc5f['some'](_0x27e881=>_0x27e881)),_0x4c44cc['on']('execute',_0x52561d=>{this['editor']['execute'](_0x52561d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c44cc;}['_createMenuBarMenu'](_0x42fc2b,_0x3ca31a,_0x323c00){const _0x456284=new _0x37cb0a(_0x42fc2b),_0x2eb946=this['editor']['commands']['get']('trackChanges');_0x456284['buttonView']['set']({'label':_0x323c00,'icon':we});const _0x2fca4b=new _0x573625(_0x42fc2b);for(const _0x5bf855 of _0x3ca31a){if('separator'==_0x5bf855['type']){_0x2fca4b['items']['add'](new _0x1514a5(_0x42fc2b));continue;}const _0x2144fa=new _0x1e2a62(_0x42fc2b,_0x456284),_0x1d937c=new _0x31b057(_0x42fc2b),_0x384dcc=_0x5bf855['model'];_0x1d937c['bind'](...Object['keys'](_0x384dcc))['to'](_0x384dcc),_0x1d937c['delegate']('execute')['to'](_0x456284),_0x1d937c['on']('execute',()=>{this['editor']['execute'](_0x384dcc['commandName']),this['editor']['editing']['view']['focus']();}),_0x2144fa['children']['add'](_0x1d937c),_0x2fca4b['items']['add'](_0x2144fa);}return _0x456284['bind']('isEnabled')['to'](_0x2eb946,'isEnabled'),_0x456284['panelView']['children']['add'](_0x2fca4b),_0x456284;}['_initializeController'](_0x18ae72){const _0x5e33f3=this['editor'],_0x325336=_0x5e33f3['config'],_0xdbc96d=_0x5e33f3['plugins']['get']('Annotations'),_0x4caa9c=_0x5e33f3['plugins']['get']('CommentsRepository'),_0x2a9381=_0x5e33f3['plugins']['get']('EditorAnnotations'),_0x1e63f4=_0x5e33f3['plugins']['get'](_0x58d0e8)['me'],_0x5834bc=_0x325336['get']('trackChanges')['SuggestionThreadView'],_0x126dfc=_0x325336['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x22aa8b,CommentThreadInputView:_0x4ebdd5}=_0x5e33f3['plugins']['get']('CommentsUI');let _0x702a40,_0x102b8c,_0x50d1df;this['_annotationViews']['has'](_0x18ae72['id'])?(_0x102b8c=this['_annotationViews']['get'](_0x18ae72['id']),_0x702a40=_0x102b8c['mainView']):(_0x702a40=new _0x5834bc(_0x5e33f3['locale'],_0x18ae72,_0x1e63f4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x325336['get']('comments.editorConfig'),'licenseKey':_0x325336['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x325336['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x325336['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x325336['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x567e53(_0x325336['get']('locale')),'CommentView':_0x325336['get']('comments')['CommentView'],'CommentsListView':_0x22aa8b,'CommentThreadInputView':_0x4ebdd5,'SuggestionView':_0x126dfc}),_0x702a40['suggestionView']['acceptButton']['on']('execute',()=>{_0x5e33f3['editing']['view']['focus']();}),_0x702a40['suggestionView']['discardButton']['on']('execute',()=>{_0x5e33f3['editing']['view']['focus']();}),_0x102b8c=_0xdbc96d['createAnnotationView'](this['editor']['locale'],_0x702a40),_0x102b8c['bind']('isDirty')['to'](_0x702a40,'isDirty'),_0x102b8c['bind']('length')['to'](_0x702a40),_0x102b8c['bind']('type')['to'](_0x702a40,'type',_0x549c5b=>'suggestion-'+_0x549c5b),_0x702a40['on']('escape',()=>{_0x50d1df['fire']('escape');}),this['_annotationViews']['set'](_0x18ae72['id'],_0x102b8c));const _0x3b4fb8=_0x4caa9c['createCommentThreadController'](_0x18ae72['commentThread'],_0x702a40),_0x38e047=new Ce(_0x5e33f3,_0x18ae72,_0x702a40,_0x3b4fb8),_0x342991=_0x18ae72['getAllAdjacentSuggestions']()['filter'](_0x1a71d5=>_0x1a71d5['isInContent']);_0x702a40['descriptionParts']=_0x5e33f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x342991),this['_suggestionToController']['set'](_0x18ae72,_0x38e047),this['_viewToController']['set'](_0x702a40,_0x38e047),_0x50d1df=_0xdbc96d['createAnnotation']({'view':_0x102b8c,'target':()=>{const _0x23af08=[],_0x418638=_0x18ae72['getAllAdjacentSuggestions']()['filter'](_0x168683=>_0x168683['isInContent']);for(const _0x4dc87f of _0x418638)_0x23af08['push'](..._0x4dc87f['getMarkers']());return _0x2490e6(_0x5e33f3['editing'],_0x23af08);},'type':()=>'suggestion-'+_0x38e047['view']['type']}),_0x4caa9c['_bindAnnotationToEditors'](_0x702a40,_0x50d1df),_0xdbc96d['add'](_0x50d1df),_0x2a9381['registerAnnotation'](_0x50d1df);}['_destroyController'](_0x2b5680){const _0x305232=this['editor']['plugins']['get']('CommentsRepository'),_0x55252a=this['editor']['plugins']['get']('Annotations'),_0x4cd5a4=this['_suggestionToController']['get'](_0x2b5680),_0x9355ce=_0x4cd5a4['view'],_0xe49a97=_0x55252a['getByInnerView'](_0x9355ce);_0x305232['_unbindEditors'](_0x9355ce),_0xe49a97&&_0x55252a['remove'](_0xe49a97),this['_suggestionToController']['delete'](_0x2b5680),this['_viewToController']['delete'](_0x9355ce),_0x4cd5a4['destroy']();}['_updateController'](_0x30bf9a){if(!_0x30bf9a['isInContent']||!this['_suggestionToController']['has'](_0x30bf9a))return;const _0x19c3f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f362a=this['_suggestionToController']['get'](_0x30bf9a),_0x2b5592=_0x30bf9a['getAllAdjacentSuggestions']();_0x3f362a['view']['descriptionParts']=_0x19c3f6['descriptionFactory']['getDescriptions'](_0x2b5592);}['destroy'](){for(const _0x647760 of this['_suggestionToController']['keys']())this['_destroyController'](_0x647760);for(const _0x3b4f3c of this['_annotationViews']['values']())_0x3b4f3c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4c1278){return'model'in _0x4c1278;}class k extends _0x19139a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xd4de5b){this['editor']['plugins']['get'](p)['adapter']=_0xd4de5b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x587542){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x587542);}['getSuggestions']({skipNotAttached:_0x229d47=!0x1,toJSON:_0x3c8828=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x229d47,'toJSON':_0x3c8828});}['getSuggestion'](_0x1a2259){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1a2259);}}const w=['Pagination'];class T extends _0x19139a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xbc253c=this['editor'];if(_0xbc253c['config']['define']('trackChangesData.editorCreator',_0x2504e4=>{const _0x206ffb=_0xbc253c['model']['document']['getRootNames']()['reduce']((_0x3fab1e,_0x3fc1e2)=>(_0x3fab1e[_0x3fc1e2]='',_0x3fab1e),{});return _0xbc253c['constructor']['create'](_0x206ffb,_0x2504e4);}),'function'!=typeof _0xbc253c['config']['get']('trackChangesData')['editorCreator'])throw new _0x4b8a78('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x159deb){return N(this['editor'],!0x0,_0x159deb);}['getDataWithDiscardedSuggestions'](_0x113e6c){return N(this['editor'],!0x1,_0x113e6c);}}class D extends _0x19139a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x233fc1){function _0x1c19b8(_0x59fb46){return _0x59fb46['map'](_0x5c19c1=>String['fromCharCode'](_0x5c19c1))['join']('');}super(_0x233fc1),this['result']='end',_0x233fc1[_0x1c19b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c19b8([0x76,0x69,0x65,0x77])][_0x1c19b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c19b8([0x61,0x75,0x74,0x6f]),_0x233fc1[_0x1c19b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c19b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c19b8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c19b8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c19b8([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 Fe(_0x558364){return void 0x0!==_0x558364['getRootsAttributes'];}async function N(_0x38dfdf,_0x296e5b,_0xf7e83f){const _0x11df40=_0x48e676(_0x38dfdf,w);_0x11df40['plugins']['push'](p,D),_0x11df40['rootsAttributes']=Fe(_0x38dfdf)?_0x38dfdf['getRootsAttributes']():void 0x0;const _0x50c8be=document['createDocumentFragment'](),_0xb8c5f0=_0x38dfdf['config']['get']('trackChangesData')['editorCreator'],_0x1ece8d=await _0xb8c5f0(_0x11df40,()=>function(_0x383b3f){const _0x56bbe7=document['createElement']('div');return _0x383b3f['appendChild'](_0x56bbe7),_0x56bbe7;}(_0x50c8be));!function(_0x309dfd,_0x537326){const _0x586745=_0x309dfd['model']['document']['getRootNames']()['reduce']((_0x523ba3,_0x251084)=>(_0x523ba3[_0x251084]=_0x309dfd['data']['get']({'rootName':_0x251084}),_0x523ba3),{}),_0x2c2f8e=_0x309dfd['plugins']['get']('Users')['users']['map'](_0x5ad562=>({'id':_0x5ad562['id'],'name':_0x5ad562['name']})),_0x1ab025=_0x309dfd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fa8f7=_0x309dfd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x8f8616=_0x537326['plugins']['get']('Users'),_0x1dbd3e=_0x537326['plugins']['get']('TrackChangesEditing'),_0x553775=_0x537326['plugins']['get']('CommentsRepository');for(const _0x5d9c0e of _0x553775['getCommentThreads']())_0x5d9c0e['remove']();for(const _0x62a594 of _0x2c2f8e)_0x8f8616['getUser'](_0x62a594['id'])||_0x8f8616['addUser'](_0x62a594);_0x8f8616['me']||_0x8f8616['useAnonymousUser']();for(const _0x509b7d of _0x2fa8f7)_0x553775['addCommentThread'](_0x509b7d);for(const _0x276908 of _0x1ab025)_0x1dbd3e['addSuggestionData'](_0x276908);_0x537326['data']['set'](_0x586745);}(_0x38dfdf,_0x1ece8d),_0x1ece8d['execute'](_0x296e5b?'acceptAllSuggestions':'discardAllSuggestions');const _0x3f6bf0=Fe(_0x1ece8d)?_0x1ece8d['getFullData'](_0xf7e83f):_0x1ece8d['data']['get'](_0xf7e83f);return await _0x1ece8d['destroy'](),_0x3f6bf0;}class Me extends _0x4ae36d{['options'];constructor(_0x2ed948,_0x3b4a02){super(_0x2ed948),this['options']=_0x3b4a02,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'](_0x4472de,_0x72b39c){if(!this['element'])return;const _0x16d7ee=[];for(const [_0x341486,_0x1d6414]of _0x4472de){const _0x7bb3df=document['createElement']('div');_0x7bb3df['setAttribute']('data-ck-root-name',_0x341486),_0x7bb3df['className']=_0x1d6414['classes']+'\x20ck-track-changes-preview__root-container',_0x7bb3df['innerHTML']=_0x1d6414['content'],_0x16d7ee['push'](_0x7bb3df);}_0x72b39c(this['element'],_0x16d7ee),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x1bf4a2){super(_0x1bf4a2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x257460=this['editor'],_0x5d4a8f=_0x257460['locale'],_0x4a6dd2=_0x257460['plugins']['get']('Dialog');let _0x9d1ab1;const _0x89915f=function(_0x189a78){const _0x3a656f={};if('editables'in _0x189a78['ui']['view']){for(const [_0x2ee631,_0x30f629]of Object['entries'](_0x189a78['ui']['view']['editables']))_0x3a656f[_0x2ee631]=_0x30f629['element'];}else _0x3a656f[_0x189a78['model']['document']['getRootNames']()[0x0]]=_0x189a78['ui']['view']['editable']['element'];return _0x3a656f;}(_0x257460),_0xbb49c0=function(_0x2cc64b){let _0x727436=0x0;for(const _0x4858cb of Object['values'](_0x2cc64b))_0x727436=Math['max'](_0x727436,_0x4858cb['getBoundingClientRect']()['width']);let _0x41c117=0x0;for(const _0x350097 of Object['values'](_0x2cc64b))_0x41c117+=_0x350097['getBoundingClientRect']()['height'];const _0x44a882=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4bdb3e=Math['min'](_0x41c117,_0x44a882);return{'width':_0x727436,'height':_0x4bdb3e};}(_0x89915f);_0x4a6dd2['show']({'id':'finalContentPreview','title':o(_0x5d4a8f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5d4a8f,{'dialogRects':_0xbb49c0}),'onHide':()=>{_0x9d1ab1['detachFromDom']();},'onShow':()=>{_0x257460['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3f6901=>{const _0x1a46d2=this['_standarizeRootsData'](_0x3f6901,_0x257460,_0x89915f);_0x4a6dd2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a46d2,_0x257460['config']['get']('trackChanges.preview.renderFunction'));}),_0x9d1ab1=new _0x4a00e9(_0x5d4a8f,[_0x4a6dd2['view']]),_0x9d1ab1['attachToDom'](),_0x9d1ab1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x257460['once']('destroy',()=>{_0x9d1ab1['detachFromDom']();});const _0x517c44=_0x4a6dd2['view']['headerView']['class'];_0x4a6dd2['view']['headerView']['class']=_0x517c44?_0x517c44+'\x20ck-reset_all':'ck-reset_all',_0x4a6dd2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4a6dd2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x249c51=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xbc0506=_0x249c51['previewMode'],_0x41373c={};if('$labels'===_0xbc0506){for(const _0x28b324 of _0x249c51['getMergeFieldsIds']())_0x41373c[_0x28b324]=_0x249c51['getLabel'](_0x28b324)||_0x28b324;}else{const _0x540a51='$defaultValues'===_0xbc0506?_0x249c51['getDefaultValues']():_0x249c51['getDataSetValues'](_0xbc0506,!0x0);for(const _0x2f0300 of Object['entries'](_0x540a51)){const [_0x39d319,_0x1eadd3]=_0x2f0300;_0x41373c[_0x39d319]=null!==_0x1eadd3?_0x1eadd3:_0x249c51['getLabel'](_0x39d319)||_0x39d319;}}return{'mergeFieldsData':_0x41373c};}['_standarizeRootsData'](_0x34af1e,_0x4f6173,_0x67023d){let _0x21008f;if('string'==typeof _0x34af1e){const _0x899486=_0x4f6173['model']['document']['getRootNames']()[0x0];_0x21008f={[_0x899486]:_0x34af1e};}else _0x21008f=_0x34af1e;const _0x2b5044=this['_fixMediaEmbeds'](_0x21008f,_0x4f6173),_0x5a4ae4=function(_0x465e9f,_0x56b095){for(const [_0x3080d1,_0x3ec584]of _0x465e9f)_0x3ec584['classes']=_0x56b095[_0x3080d1]['classList']['value']['replace']('ck-focused','');return _0x465e9f;}(this['_sortRoots'](_0x4f6173)['reduce']((_0x208b34,_0x5402c9)=>(_0x208b34['push']([_0x5402c9,{'content':_0x2b5044[_0x5402c9],'classes':''}]),_0x208b34),[]),_0x67023d);return _0x5a4ae4;}['_fixMediaEmbeds'](_0x1af923,_0x13adbf){if(!_0x13adbf['plugins']['has']('MediaEmbedEditing'))return _0x1af923;const _0xb1dc3b=_0x13adbf['plugins']['get']('MediaEmbedEditing');for(const [_0x3df408,_0x332f1b]of Object['entries'](_0x1af923)){const _0xce3306=document['createElement']('div');_0xce3306['innerHTML']=_0x332f1b,(_0xce3306['querySelectorAll']('figure.media')['forEach'](_0xef3c17=>{const _0x2ee41f=_0xef3c17['querySelector']('oembed');if(_0x2ee41f){const _0x2012c3=_0x2ee41f['getAttribute']('url');if(_0x2012c3){const _0x484f2b=_0xb1dc3b['registry']['getMediaViewElement'](new _0x3855f4(_0x13adbf['editing']['view']['document']),_0x2012c3,{'elementName':'','renderForEditingView':!0x0}),_0xfc7944=document['createElement']('div');_0xfc7944['classList']['add']('ck-media__wrapper'),_0x484f2b['render'](_0xfc7944,_0x13adbf['editing']['view']['domConverter']),_0x2ee41f['replaceWith'](_0xfc7944);}}}),_0x1af923[_0x3df408]=_0xce3306['innerHTML']);}return _0x1af923;}['_sortRoots'](_0x484e9d){if(!function(_0x243137){return void 0x0!==_0x243137['getRootsAttributes'];}(_0x484e9d))return _0x484e9d['model']['document']['getRootNames']();const _0x1fd1fb=[],_0x5a4860=new Map();for(const _0x214c6b of _0x484e9d['model']['document']['getRootNames']()){const _0x369361=_0x484e9d['editing']['view']['getDomRoot'](_0x214c6b)['getClientRects']()['item'](0x0);_0x1fd1fb['push'](_0x214c6b),_0x5a4860['set'](_0x214c6b,_0x369361);}return _0x1fd1fb['sort']((_0x2f35c0,_0xe2968b)=>{const _0x43fd41=_0x5a4860['get'](_0x2f35c0),_0x31f696=_0x5a4860['get'](_0xe2968b);return _0x43fd41['y']-_0x31f696['y']||_0x43fd41['x']-_0x31f696['x'];}),_0x1fd1fb;}}class te extends _0x19139a{static get['requires'](){return[T,_0xa0e1cf];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c5d1d){super(_0x1c5d1d),_0x1c5d1d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1c5d1d['config']['define']('trackChanges.preview.renderFunction',(_0x203314,_0x2aac95)=>{for(const _0x574b83 of _0x2aac95)_0x203314['appendChild'](_0x574b83);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};