@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250316.0 → 0.0.0-nightly-20250318.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  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 +11 -11
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x4b2841,uid as _0x663c6b,Collection as _0x2c3527,logWarning as _0x41b40d,FocusTracker as _0x1fbac0,KeystrokeHandler as _0x4a481f,scrollViewportToShowTarget as _0x53c173,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x11f306}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x24b58c,set as _0x440189,unset as _0x5b0888,isEqual as _0x40af19}from'es-toolkit/compat';import{Plugin as _0x41e048,PendingActions as _0x3062d1,Command as _0x1bc561,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b8d32,getMarkerDomElement as _0x665250,ConfirmMixin as _0xdffbcd,sanitizeEditorConfig as _0x52e263}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1c7ac7,Element as ut,Range as ft,ViewUIElement as _0x1409e8,ViewRawElement as _0x3274f3,ViewEmptyElement as _0x2b610f,ViewAttributeElement as _0x1a2d2b,ViewContainerElement as _0x11aa29,Position as vt,ViewText as _0x4a50ef,ViewElement as _0x4fb45b,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x24e1d6,IconChevronUp as _0x4e8941,IconChevronDown as _0x243940,IconUndo as _0x51d06c,IconUser as _0x2ab0e8,IconThreeVerticalDots as _0x4c20c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x423d80,injectCssTransitionDisabler as ts,submitHandler as _0x189d32,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x4b0e6a,ListView as _0x1371fb,ListItemView as te,ButtonView as _0x4f8d34,MenuBarMenuView as _0x1c964b,MenuBarMenuListView as _0x417ef7,MenuBarMenuListItemView as _0x189cf9,MenuBarMenuListItemButtonView as _0x35e62e,ContextualBalloon as _0x1b3f42,ToolbarSeparatorView as _0x1edbaa,IconView as _0x261fed,addListToDropdown as _0x2cf456,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3a0f57}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x4b2841(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x12c13f){super(),this['id']=_0x12c13f['id']||_0x663c6b(),this['creator']=_0x12c13f['creator']||null,this['authors']=_0x12c13f['authors']||[],this['diffData']=_0x12c13f['diffData']||null,this['toVersion']=_0x12c13f['toVersion']||0x0,this['fromVersion']=_0x12c13f['fromVersion']||0x0,this['set']('name',_0x12c13f['name']||''),this['set']('createdAt',_0x12c13f['createdAt']||new Date()),this['set']('attributes',_0x12c13f['attributes']||{});}['setName'](_0x49db7c){this['_update']({'name':_0x49db7c});}['setAttribute'](_0x8bf4a7,_0x87df08){const _0x2f79b2=_0x24b58c(this['attributes']);_0x440189(_0x2f79b2,_0x8bf4a7,_0x87df08),this['_update']({'attributes':_0x2f79b2});}['removeAttribute'](_0x246e47){const _0xe8cbaf=_0x24b58c(this['attributes']);_0x5b0888(_0xe8cbaf,_0x246e47),this['_update']({'attributes':_0xe8cbaf});}['_update'](_0x5bd72c,_0x125115=!0x1){let _0x44e7cb=!0x1;const _0x3b494c={'id':this['id']},_0x5922bf=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2316d8 of _0x5922bf){const _0x1a3cf2=_0x5bd72c[_0x2316d8];void 0x0!==_0x1a3cf2&&_0x1a3cf2!==this[_0x2316d8]&&(this[_0x2316d8]=_0x1a3cf2,_0x3b494c[_0x2316d8]=_0x1a3cf2,_0x44e7cb=!0x0);}_0x44e7cb&&(_0x3b494c['authors']&&(_0x3b494c['authorsIds']=_0x3b494c['authors']['map'](_0x52588d=>_0x52588d['id']),delete _0x3b494c['authors']),this['fire']('_update',_0x3b494c,_0x125115));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4f6ca6=>_0x4f6ca6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x41e048{['_revisions'];static get['requires'](){return[_0x1b8d32];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x210764){super(_0x210764),this['_revisions']=new _0x2c3527();}['afterInit'](){!async function(_0x2149e4){const _0x427a41=_0x4d40c6([0x6f,0x31,0x4e,0x75,0x41,0x58,0x57,0x6a,0x70,0x33,0x65,0x67,0x76,0x69,0x34,0x35,0x45,0x43,0x44,0x73,0x36,0x5a,0x6b,0x55,0x50,0x39,0x68,0x78,0x32,0x59,0x4d,0x47,0x42,0x63,0x66,0x6c,0x4c,0x49,0x53,0x48,0x64,0x38,0x4a,0x52,0x72,0x37,0x46,0x77,0x6d,0x4f,0x74,0x30,0x79,0x62,0x6e,0x61,0x56,0x4b,0x51,0x54,0x71,0x7a]),_0x54ec88=0xeb829,_0x23126e=0x78a6f959,_0x5ae875=0x78a19b11^_0x23126e,_0x53a5f2=window[_0x4d40c6([0x44,0x61,0x74,0x65])][_0x4d40c6([0x6e,0x6f,0x77])](),_0x49bc23=_0x2149e4[_0x4d40c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3de308=new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59ccae=>{_0x49bc23[_0x4d40c6([0x6f,0x6e,0x63,0x65])](_0x4d40c6([0x72,0x65,0x61,0x64,0x79]),_0x59ccae);}),_0x2dddaa={[_0x4d40c6([0x6b,0x74,0x79])]:_0x4d40c6([0x45,0x43]),[_0x4d40c6([0x75,0x73,0x65])]:_0x4d40c6([0x73,0x69,0x67]),[_0x4d40c6([0x63,0x72,0x76])]:_0x4d40c6([0x50,0x2d,0x32,0x35,0x36]),[_0x4d40c6([0x78])]:_0x4d40c6([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]),[_0x4d40c6([0x79])]:_0x4d40c6([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]),[_0x4d40c6([0x61,0x6c,0x67])]:_0x4d40c6([0x45,0x53,0x32,0x35,0x36])},_0xb7a8dc=_0x49bc23[_0x4d40c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d40c6([0x67,0x65,0x74])](_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb213(){let _0x42dda8,_0x5e76f0=null,_0x5326bf=null;try{if(_0xb7a8dc==_0x4d40c6([0x47,0x50,0x4c]))return _0x4d40c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42dda8=_0x3f2fbb(),!_0x42dda8)return _0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42dda8[_0x4d40c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5326bf=_0x2d38bb(_0x42dda8[_0x4d40c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42dda8[_0x4d40c6([0x6a,0x74,0x69])])),await _0x1a6371()?_0x38567b()?_0x1c9c36()?_0x4d40c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f309e()?(_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e76f0=_0x3581c0(_0x4d40c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e76f0=_0x3581c0(_0x4d40c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26a737()):_0x4d40c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb9e44){return _0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c9c36(){const _0x2e6f90=[_0x4d40c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d40c6([0x74,0x72,0x69,0x61,0x6c])][_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53a5f2/0x3e8:0xe10*_0x5ae875;return _0x42dda8[_0x4d40c6([0x65,0x78,0x70])]<_0x2e6f90;}function _0x38567b(){const _0x2fac54=_0x42dda8[_0x4d40c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2fac54)return!0x1;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x2a])))return!0x0;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x52,0x48])))return!0x0;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x52,0x52,0x48]))){if(_0x5263e())return!0x0;if(_0x11bc39()||_0x4e3d39())return!0x0;}return!0x1;}function _0x4f309e(){const _0xc6fd35=_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc6fd35||0x0==_0xc6fd35[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42694c}=new URL(window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc6fd35[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42694c))return!0x0;const _0x41b5c7=_0x42694c[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e]));return _0xc6fd35[_0x4d40c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x549282=>_0x549282[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x2a])))[_0x4d40c6([0x6d,0x61,0x70])](_0x47fb46=>_0x47fb46[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e])))[_0x4d40c6([0x73,0x6f,0x6d,0x65])](_0x266e65=>_0x41b5c7[_0x4d40c6([0x65,0x76,0x65,0x72,0x79])]((_0x25cbe0,_0x1ec7d2)=>_0x266e65[_0x1ec7d2]===_0x25cbe0||_0x266e65[_0x1ec7d2]===_0x4d40c6([0x2a])));}function _0x26a737(){return _0x5e76f0&&_0x5326bf?new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x408c11,_0x2ca0c4)=>{_0x5e76f0[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x408c11,_0x2ca0c4),_0x5326bf[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x743b08=>{_0x743b08!=_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])&&_0x408c11(_0x743b08);},_0x2ca0c4);}):_0x5e76f0||_0x5326bf||_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d38bb(_0xa01b2b,_0x13e147){return new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b1b6=>{if(_0x97fcb())return _0x11b1b6(_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]));_0x27307a(),_0x49bc23[_0x4d40c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47bbe4=!0x1;const _0x2ca7b2=_0x663c6b();function _0x38cd13(_0xbf93d6){return!!_0xbf93d6&&(typeof _0xbf93d6===_0x4d40c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbf93d6===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbf93d6[_0x4d40c6([0x74,0x68,0x65,0x6e])]===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbf93d6[_0x4d40c6([0x63,0x61,0x74,0x63,0x68])]===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x137d4d(_0x200010){_0x5b454a(_0x200010)[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x2fc197=>{if(!_0x2fc197||_0x2fc197[_0x4d40c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d40c6([0x6f,0x6b]))return _0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44618a(_0xf31c82(_0x2ca7b2+_0x13e147))!=_0x2fc197[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x331e0c=>(_0x5d3d21(),_0x331e0c),()=>{const _0x57d451=_0x4559cb();return null==_0x57d451?(_0x5d3d21(),_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])):_0x4d40c6(_0x53a5f2-_0x57d451>(0x5caa7d59^_0x23126e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x11b1b6)[_0x4d40c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bb56e=0x789017d9^_0x23126e;function _0x5d3d21(){const _0x2a9962=_0x4d40c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x44618a(_0xf31c82(_0xa01b2b)),_0x9f2304=_0x551551(_0x44618a(window[_0x4d40c6([0x4d,0x61,0x74,0x68])][_0x4d40c6([0x63,0x65,0x69,0x6c])](_0x53a5f2/_0x3bb56e)));window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a9962,_0x9f2304);}function _0x4559cb(){const _0x5332f6=_0x4d40c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x44618a(_0xf31c82(_0xa01b2b)),_0x5e8882=window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5332f6);return _0x5e8882?window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x551551(_0x5e8882),0x10)*_0x3bb56e:null;}function _0x5b454a(_0x1756a5){return new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fe77f,_0x5de544)=>{_0x1756a5[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x1fe77f,_0x5de544),window[_0x4d40c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5de544,0x78a72d99^_0x23126e);});}}_0x49bc23[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x464265,_0x3646ed)=>{if(_0x3646ed[0x0]!=_0xa01b2b)return _0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3646ed[0x1]={..._0x3646ed[0x1],[_0x4d40c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ca7b2};},{[_0x4d40c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40c6([0x68,0x69,0x67,0x68])}),_0x49bc23[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe7632b=>{_0x38cd13(_0xe7632b[_0x4d40c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47bbe4=!0x0,_0x137d4d(_0xe7632b[_0x4d40c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d40c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40c6([0x6c,0x6f,0x77])}),_0x3de308[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>{_0x47bbe4||_0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x97fcb(){return _0x49bc23[_0x4d40c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40c6([0x76,0x69,0x65,0x77])][_0x4d40c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d40c6([0x61,0x75,0x74,0x6f]);}function _0x27307a(){_0x49bc23[_0x4d40c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40c6([0x76,0x69,0x65,0x77])][_0x4d40c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d40c6([0x61,0x75,0x74,0x6f]);}}function _0x3581c0(_0x1376a7){const _0x1216f3=[new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e22f=>setTimeout(_0x21e22f,0x78afc795^_0x23126e)),_0x3de308[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ddf04=>{const _0x2d4428=0x78a6f95e^_0x23126e,_0x7d88fb=_0x2149e4[_0x4d40c6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x391fe1(){_0x7d88fb[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d4428&&_0x3ddf04();}_0x391fe1(),_0x7d88fb[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x61,0x64,0x64]),_0x391fe1);})),new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4885d1=>{function _0x22c033(){for(const _0xb8e524 in window)if(window[_0x4d40c6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d40c6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb8e524))&&window[_0xb8e524]==_0x54ec88)return _0x4885d1();_0x49bc23[_0x4d40c6([0x73,0x74,0x61,0x74,0x65])]!=_0x4d40c6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d40c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22c033,0x78a6ead1^_0x23126e);}_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x22c033();})];return window[_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d40c6([0x72,0x61,0x63,0x65])](_0x1216f3)[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>_0x1376a7);}async function _0x596cc7(){if(await _0x3de308,_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x504a48=_0x2149e4[_0x4d40c6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x136b6c=_0x2149e4[_0x4d40c6([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x504a48[_0x4d40c6([0x69,0x64])]),_0x1b3a79=_0x44bca4(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1b3a79[_0x4d40c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x504a48['id'],_0x136b6c?_0x136b6c['id']:null,!0x0),_0x1b3a79[_0x4d40c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b3a79[_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b3a79[_0x4d40c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x21f096,void(_0x1b3a79[_0x4d40c6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x21f096);}if(_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1da737=_0x44bca4(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1da737[_0x4d40c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1da737[_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1da737[_0x4d40c6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x21f096,_0x1da737[_0x4d40c6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x21f096;}_0x49bc23[_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21f096,_0x49bc23[_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21f096,_0x49bc23[_0x4d40c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5263e(){return _0x50ec97(_0x4d40c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x44bca4(_0x4d40c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d40c6([0x73,0x74,0x61,0x74,0x65])]==_0x4d40c6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11bc39(){return _0x50ec97(_0x4d40c6([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 _0x4e3d39(){return _0x50ec97(_0x4d40c6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x423d83(_0x38f92e){const _0x33ce7e=_0x219dfb();_0x49bc23[_0x33ce7e]=_0x4d40c6([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38f92e,_0x38f92e[_0x4d40c6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d40c6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x219dfb()]=_0x54ec88),_0x38f92e!=_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])&&_0x596cc7();}function _0x219dfb(){const _0x38e638=window[_0x4d40c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d40c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d40c6([0x6e,0x6f,0x77])]())[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d40c6([0x2e]),'');let _0x90e5a5=_0x4d40c6([0x6f]);for(let _0x4b3251=0x0;_0x4b3251<_0x38e638[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b3251+=0x2){let _0x13c289=window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38e638[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b3251,_0x4b3251+0x2));_0x13c289>=_0x427a41[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13c289-=_0x427a41[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x90e5a5+=_0x427a41[_0x13c289];}return _0x90e5a5;}function _0x3f2fbb(){const _0x29d377=_0xb7a8dc[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e]));if(0x3!=_0x29d377[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa760eb(_0x29d377[0x1]);function _0xa760eb(_0x26b7cd){const _0x1f0efc=_0x55923a(_0x26b7cd);return _0x1f0efc&&_0x24ff5d()?_0x1f0efc:null;function _0x24ff5d(){const _0x2fc340=_0x1f0efc[_0x4d40c6([0x6a,0x74,0x69])],_0x5bd37f=window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fc340[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fc340[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46a3ff={..._0x1f0efc,[_0x4d40c6([0x6a,0x74,0x69])]:_0x2fc340[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fc340[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46a3ff[_0x4d40c6([0x76,0x63])],_0xf31c82(_0x46a3ff)==_0x5bd37f;}}}async function _0x1a6371(){let _0x5a6d92=!0x0;try{const _0xfae856=_0xb7a8dc[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e])),[_0x28b0c2,_0xc26057,_0x524c1a]=_0xfae856;return _0x23bd5d(_0x28b0c2),await _0x2f21ff(_0x28b0c2,_0xc26057,_0x524c1a),_0x5a6d92;}catch(_0xf38693){return!0x1;}function _0x23bd5d(_0x435bcf){const _0x31619d=_0x55923a(_0x435bcf);_0x31619d&&_0x31619d[_0x4d40c6([0x61,0x6c,0x67])]==_0x4d40c6([0x45,0x53,0x32,0x35,0x36])||(_0x5a6d92=!0x1);}async function _0x2f21ff(_0x104d4c,_0x560694,_0x597f7e){const _0x24997a=window[_0x4d40c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d40c6([0x66,0x72,0x6f,0x6d])](_0x48be21(_0x597f7e),_0x2da3a7=>_0x2da3a7[_0x4d40c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3907a0=new window[(_0x4d40c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d40c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x104d4c+_0x4d40c6([0x2e])+_0x560694),_0x23801a=window[_0x4d40c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d40c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23801a)return;const _0x1d0e25=await _0x23801a[_0x4d40c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d40c6([0x6a,0x77,0x6b]),_0x2dddaa,{[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x45,0x43,0x44,0x53,0x41]),[_0x4d40c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d40c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23801a[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x45,0x43,0x44,0x53,0x41]),[_0x4d40c6([0x68,0x61,0x73,0x68])]:{[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d0e25,_0x24997a,_0x3907a0)||(_0x5a6d92=!0x1);}}function _0x55923a(_0x10a879){return _0x10a879[_0x4d40c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d40c6([0x65,0x79]))?JSON[_0x4d40c6([0x70,0x61,0x72,0x73,0x65])](_0x48be21(_0x10a879)):null;}function _0x48be21(_0x2accdd){return window[_0x4d40c6([0x61,0x74,0x6f,0x62])](_0x2accdd[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d40c6([0x2b]))[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d40c6([0x2f])));}function _0xf31c82(_0x1a4a9c){let _0x3c1810=0x1505;function _0x182120(_0x48e41b){for(let _0x322499=0x0;_0x322499<_0x48e41b[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x322499++){const _0xa9dea5=_0x48e41b[_0x4d40c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x322499);_0x3c1810=(_0x3c1810<<0x5)+_0x3c1810+_0xa9dea5,_0x3c1810&=_0x3c1810;}}function _0x416e2b(_0x5c668b){Array[_0x4d40c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c668b)?_0x5c668b[_0x4d40c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x416e2b):_0x5c668b&&typeof _0x5c668b==_0x4d40c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d40c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c668b)[_0x4d40c6([0x73,0x6f,0x72,0x74])]()[_0x4d40c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a792c,_0x31a97b])=>{_0x182120(_0x6a792c),_0x416e2b(_0x31a97b);}):_0x182120(window[_0x4d40c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c668b));}return _0x416e2b(_0x1a4a9c),_0x3c1810>>>0x0;}function _0x44618a(_0x9c088d){return _0x9c088d[_0x4d40c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d40c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d40c6([0x30]));}function _0x551551(_0x40900b){return _0x40900b[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d40c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d40c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x50ec97(_0x3f4ee9){return _0x49bc23[_0x4d40c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40c6([0x68,0x61,0x73])](_0x3f4ee9);}function _0x44bca4(_0x143e4e){return _0x49bc23[_0x4d40c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40c6([0x67,0x65,0x74])](_0x143e4e);}function _0x21f096(){}function _0x4d40c6(_0x9b5ad5){return _0x9b5ad5['map'](_0x516a69=>String['fromCharCode'](_0x516a69))['join']('');}_0x423d83(await _0x3cb213());}(this);}['createRevision'](_0x25a0e5){const _0x2a086c=this['editor']['plugins']['get']('Users');return new h({'id':_0x25a0e5['id'],'name':_0x25a0e5['name'],'creator':_0x25a0e5['creatorId']?_0x2a086c['getUser'](_0x25a0e5['creatorId']):null,'diffData':_0x25a0e5['diffData']||_0x25a0e5['data'],'authors':_0x25a0e5['authorsIds']['map'](_0x2450a3=>_0x2a086c['getUser'](_0x2450a3)),'createdAt':new Date(_0x25a0e5['createdAt']),'attributes':_0x25a0e5['attributes'],'fromVersion':_0x25a0e5['fromVersion'],'toVersion':_0x25a0e5['toVersion']});}['addRevision'](_0x5f212a,_0x23a4b1=0x0){this['_revisions']['add'](_0x5f212a,_0x23a4b1);}['getRevision'](_0x192544){return this['_revisions']['get'](_0x192544);}['getRevisions'](_0x5ee8f1={'toJSON':!0x1}){const _0x5e0cb9=Array['from'](this['_revisions']);return _0x5e0cb9['reverse'](),_0x5ee8f1['toJSON']?_0x5e0cb9['map'](_0x3aedb3=>_0x3aedb3['toJSON']()):_0x5e0cb9;}['getIndex'](_0x1d8a05){return this['_revisions']['getIndex'](_0x1d8a05);}['getEarlierVisibleRevision'](_0x1b0123){const [,_0xf7a868]=this['getRevisionsIterator'](_0x1b0123,{'direction':'earlier'});return _0xf7a868;}['getLaterVisibleRevision'](_0x5b670b){const [,_0x346e14]=this['getRevisionsIterator'](_0x5b670b,{'direction':'later'});return _0x346e14;}['getRevisionsInDiff'](_0x3b4df0){const _0x13d34c=[];for(const _0x59f834 of this['getRevisionsIterator'](_0x3b4df0['newRevisionId']))if(_0x13d34c['push'](_0x59f834),_0x59f834['id']===_0x3b4df0['oldRevisionId'])break;return _0x13d34c;}*['getRevisionsIterator'](_0x3a4227,{direction:_0x37b434='earlier',filter:_0x4874fc=()=>!0x0}={}){const _0x42ef2b='earlier'===_0x37b434?0x1:-0x1;let _0x3048d1=this['_revisions']['get'](_0x3a4227),_0x1b4a0c=this['getIndex'](_0x3048d1);for(yield _0x3048d1;_0x3048d1;){if(_0x1b4a0c+=_0x42ef2b,_0x3048d1=this['getRevision'](_0x1b4a0c),!_0x3048d1)return;_0x4874fc(_0x3048d1)&&(yield _0x3048d1);}}}function m(_0x20dcaa,_0x520ede,_0x2dafbc){const t=_0x20dcaa['t'];switch(_0x520ede){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x2dafbc);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2dafbc);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x11aa29,'a':_0x1a2d2b,'e':_0x2b610f,'r':_0x3274f3,'u':_0x1409e8};class u extends _0x41e048{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b8d32,j,_0x3062d1];}constructor(_0x40c1b0){super(_0x40c1b0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2fbd0c=_0x663c6b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2fbd0c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x15f969=this['repository']['getRevision'](0x0),_0x46adf5=_0x15f969&&null===_0x15f969['creator']?_0x15f969:null;if(this['_continueCurrentRevision']=!!_0x46adf5&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1b26c4=this['_source']['getCurrentRevisionId'](),_0x5dd64d=this['repository']['getRevision'](_0x1b26c4);if(_0x5dd64d)this['_startingVersion']=_0x5dd64d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x29fc9d=this['_source']['history']['_operations']['find'](_0x3937e6=>!_0x3937e6['_isInit']),_0xa411f3=_0x29fc9d?_0x29fc9d['baseVersion']:this['_source']['history']['version'];_0x15f969?(_0x15f969['toVersion']<_0xa411f3&&_0x15f969['_update']({'toVersion':_0xa411f3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id'],this['_startingVersion']=_0x46adf5['fromVersion']):(this['_startingVersion']=_0x15f969['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xa411f3,this['_continueCurrentRevision']=!0x1);}}else _0x46adf5&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46adf5['toVersion'],this['editor']['model']['document']['history']['version']),_0x46adf5['fromVersion']===_0x46adf5['toVersion']?(0x0!==_0x46adf5['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id'],this['_startingVersion']=_0x46adf5['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x5e4157=>!_0x5e4157),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x539600=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x425ede;for(const _0x32e441 in _0x539600){const _0x226865=_0x32e441,_0x474f03=_0x539600[_0x226865];if('revisionHistoryLicenseKeyValid'==_0x474f03||'revisionHistoryLicenseKeyInvalid'==_0x474f03||'revisionHistoryLicenseKeyExpired'==_0x474f03||'revisionHistoryLicenseKeyDomainLimit'==_0x474f03||'revisionHistoryLicenseKeyNotAllowed'==_0x474f03||'revisionHistoryLicenseKeyEvaluationLimit'==_0x474f03||'revisionHistoryLicenseKeyTrialLimit'==_0x474f03||'revisionHistoryLicenseKeyUsageLimit'==_0x474f03){delete _0x539600[_0x226865],_0x425ede=_0x474f03,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x425ede&&_0x539600['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x425ede&&_0x539600['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x425ede&&_0x539600['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x425ede&&_0x539600['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x425ede&&_0x539600['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x425ede&&_0x539600['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x425ede&&_0x539600['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x36f332=this['repository']['getRevision'](0x0),_0xc44e2b=await this['getRevisionDocumentData'](_0x36f332),_0x31102a=await this['getRevisionRootsAttributes'](_0x36f332);this['_replaceEditorDataWithRevisionData'](_0xc44e2b,_0x31102a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x538827){this['_source']=_0x538827;}async['update'](){const _0x341b9c=await this['_source']['getLatestVersion']();if(_0x341b9c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2a8b57=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x341b9c});_0x2a8b57['authors']=_0x2a8b57['authorsIds']['map'](_0x7da4c8=>this['editor']['plugins']['get']('Users')['getUser'](_0x7da4c8)),this['currentRevision']['_update'](_0x2a8b57);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2d350b={},_0x3d3a07=null){const _0x5489ae=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3d3a07>this['currentRevision']['toVersion']&&(_0x3d3a07=null),null===_0x3d3a07&&(_0x3d3a07=await this['_source']['getLatestVersion']());const _0x3264b4=this['_getFromVersion'](_0x3d3a07),_0x2dddc5=this['buildRevisionData']({'from':_0x3264b4,'to':_0x3d3a07});if(this['currentRevision']['toVersion']<_0x3d3a07){const _0x5dfd52=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3d3a07,'to':_0x3d3a07});_0x5dfd52['authors']=[],_0x5dfd52['authorsIds']=[],_0x5dfd52['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5dfd52,!0x0),delete _0x5dfd52['authors'],_0x5489ae['push'](_0x5dfd52);}_0x2d350b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d350b['name']=_0x2d350b['name']||null,_0x2d350b['id']=_0x2d350b['id']||_0x663c6b(),_0x2d350b={..._0x2d350b,..._0x2dddc5};const _0xcd950=this['addRevisionData'](_0x2d350b);_0x5489ae['push'](_0x2d350b);const _0xbf94a6=this['repository']['getIndex'](_0xcd950);if(0x0!==_0xbf94a6){const _0x3dc37f=this['repository']['getRevision'](_0xbf94a6-0x1);if(_0x3dc37f['fromVersion']!==_0x3d3a07){const _0x3ea63d=this['_revisionDataBuilder']['getData'](_0x3d3a07,_0x3dc37f['toVersion']),_0x248ffd={'id':_0x3dc37f['id'],'diffData':_0x3ea63d['diffData'],'authorsIds':_0x3ea63d['authorsIds'],'authors':_0x3ea63d['authorsIds']['map'](_0x2bd879=>this['editor']['plugins']['get']('Users')['getUser'](_0x2bd879)),'fromVersion':_0x3d3a07};_0x3dc37f===this['currentRevision']&&(_0x248ffd['createdAt']=new Date(_0x2d350b['createdAt']['getTime']()+0xa)),_0x3dc37f['_update'](_0x248ffd,!0x0),delete _0x248ffd['authors'],_0x5489ae['push'](_0x248ffd);}}if(this['adapter']){for(const _0x23b13d of _0x5489ae)this['_bufferUpdate'](_0x23b13d['id'],_0x23b13d,!0x0);this['sendBufferedUpdates']();}return _0xcd950;}['addRevisionData'](_0x4f9895){const _0x58aec5=this['repository']['createRevision'](_0x4f9895);return this['adapter']&&_0x58aec5['on']('_update',(_0x229d76,_0x2ac683,_0x548fae)=>{_0x548fae||(this['_bufferUpdate'](_0x2ac683['id'],_0x2ac683,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x58aec5,this['_findInsertionIndex'](_0x58aec5)),_0x58aec5;}async['getRevisionDocumentData'](_0x4d260c){await this['_loadRevisionData'](_0x4d260c);const _0xb03948={};for(const _0x522d5d in _0x4d260c['diffData']){if(_0x4d260c['diffData'][_0x522d5d]['attachChange']&&!_0x4d260c['diffData'][_0x522d5d]['attachChange']['isAttached'])continue;const _0xf3d9a5=this['_removeRevisionMarkers'](JSON['parse'](_0x4d260c['diffData'][_0x522d5d]['insertions'])),_0x2beea3=this['editor']['editing']['view']['document'],_0x2c822d=new _0x1c7ac7(_0x2beea3,_0xf3d9a5['map'](_0x497b95=>P(_0x497b95,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xb03948[_0x522d5d]=this['editor']['data']['processor']['toData'](_0x2c822d),this['editor']['data']['processor']['useFillerType']('default');}return _0xb03948;}async['getRevisionRootsAttributes'](_0x3a127d){await this['_loadRevisionData'](_0x3a127d);const _0x51b831={};for(const _0x498d1e in _0x3a127d['diffData'])_0x3a127d['diffData'][_0x498d1e]['attachChange']&&!_0x3a127d['diffData'][_0x498d1e]['attachChange']['isAttached']||(_0x51b831[_0x498d1e]=_0x3a127d['diffData'][_0x498d1e]['attributesAfter']||{});return _0x51b831;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1fbf64=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3feb15=0x0;_0x3feb15<_0x1fbf64['length'];_0x3feb15++){const _0x350918=_0x1fbf64[_0x3feb15];let _0x485dd5=!0x1;for(const _0x277275 of Object['keys'](_0x350918))void 0x0===_0x350918[_0x277275]?delete _0x350918[_0x277275]:'id'!==_0x277275&&(_0x485dd5=!0x0);_0x485dd5||(_0x1fbf64[_0x3feb15]=null);}if(_0x1fbf64=_0x1fbf64['filter'](_0x557aea=>null!==_0x557aea),!_0x1fbf64['length'])return;for(let _0x956303=0x0;_0x956303<_0x1fbf64['length'];_0x956303++){const _0x17116a=_0x1fbf64[_0x956303];void 0x0!==_0x17116a['fromVersion']&&void 0x0===_0x17116a['toVersion']&&(_0x17116a['toVersion']=this['repository']['getRevision'](_0x17116a['id'])['toVersion']),void 0x0!==_0x17116a['toVersion']&&void 0x0===_0x17116a['fromVersion']&&(_0x17116a['fromVersion']=this['repository']['getRevision'](_0x17116a['id'])['fromVersion']);}const _0x5bfca2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1fbf64,_0x5bfca2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x34d5e1=>{if(_0x34d5e1){for(const _0x1e9585 of _0x34d5e1)this['setRevisionData']({'id':_0x1e9585['id'],'createdAt':_0x1e9585['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x539d89,_0xed85bd){let _0x5599f5=this['editor']['config']['get']('initialData'),_0x55c5a6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5599f5){_0x5599f5={};for(const _0x368540 of this['editor']['model']['document']['getRootNames']())_0x5599f5[_0x368540]='';}if('string'==typeof _0x5599f5&&(_0x5599f5={'main':_0x5599f5}),void 0x0===_0x55c5a6){_0x55c5a6={};for(const _0x2b3823 of this['editor']['model']['document']['getRootNames']())_0x55c5a6[_0x2b3823]={};}let _0x4352aa=!0x1;const _0x37f6c0=Object['keys'](_0x5599f5),_0x23b5c0=Object['keys'](_0x539d89);for(const _0x1952c0 of _0x37f6c0){if(_0x5599f5[_0x1952c0]!==_0x539d89[_0x1952c0]&&''!==_0x5599f5[_0x1952c0]['trim']()){_0x4352aa=!0x0;break;}if(!_0x40af19(_0x55c5a6[_0x1952c0],_0xed85bd[_0x1952c0])&&Object['keys'](_0x55c5a6[_0x1952c0])['length']>0x0){_0x4352aa=!0x0;break;}}_0x4352aa||(_0x4352aa=_0x23b5c0['some'](_0x1a3251=>!this['editor']['model']['document']['getRoot'](_0x1a3251))),_0x4352aa&&_0x41b40d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5599f5,'editorRootsAttributes':_0x55c5a6,'revisionData':_0x539d89,'revisionRootsAttributes':_0xed85bd}),this['editor']['config']['set']('initialData',_0x539d89),this['editor']['config']['set']('rootsAttributes',_0xed85bd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x145f6c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x145f6c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37316c){const _0x29a365=this['repository']['getRevisions']();_0x29a365['reverse']();let _0x71be53=0x0;for(;_0x71be53<_0x29a365['length'];){const _0x8c6287=_0x29a365[_0x71be53];if(_0x8c6287===this['currentRevision']){_0x71be53++;continue;}if(_0x8c6287['id']===this['_initialRevisionId'])break;const _0x4d19e2=_0x37316c['toVersion']-_0x8c6287['toVersion']||_0x37316c['fromVersion']-_0x8c6287['fromVersion'];if(_0x4d19e2>0x0)break;if(_0x4d19e2<0x0)_0x71be53++;else{if(!_0x37316c['creator']&&_0x8c6287['creator'])break;if(_0x8c6287['creator']||!_0x37316c['creator']){if(_0x37316c['createdAt']>_0x8c6287['createdAt'])break;_0x71be53++;}else _0x71be53++;}}return _0x71be53;}['setRevisionData'](_0xfadf64){const _0x4c6243=this['repository']['getRevision'](_0xfadf64['id']);if(_0xfadf64['createdAt']&&(_0xfadf64['createdAt']=new Date(_0xfadf64['createdAt'])),_0xfadf64['authorsIds']){const _0x52c59b=this['editor']['plugins']['get']('Users');_0xfadf64['authors']=_0xfadf64['authorsIds']['map'](_0x527605=>_0x52c59b['getUser'](_0x527605));}_0x4c6243['_update'](_0xfadf64,!0x0);}['buildRevisionData']({revision:_0x306ca8=null,from:_0x2fe281=null,to:_0x4fa385=null}){_0x2fe281=null!==_0x2fe281?_0x2fe281:_0x306ca8['fromVersion'],_0x4fa385=null!==_0x4fa385?_0x4fa385:_0x306ca8['toVersion'];const _0xe63d43=this['_revisionDataBuilder']['getData'](_0x2fe281,_0x4fa385),_0x115e50={'diffData':_0xe63d43['diffData'],'authorsIds':_0xe63d43['authorsIds'],'fromVersion':_0x2fe281,'toVersion':_0x4fa385};if(!_0x306ca8||_0x4fa385!==_0x306ca8['toVersion']){const _0x4c1cc2=_0x4fa385-0x1,_0x4aeafb=this['_source']['history']['getOperation'](_0x4c1cc2);_0x115e50['createdAt']=_0x4aeafb&&_0x4aeafb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2fe281===this['_loadedStateData']['fromVersion']){for(const _0x2ffbb0 of this['_loadedStateData']['authors'])_0x115e50['authorsIds']['includes'](_0x2ffbb0['id'])||_0x115e50['authorsIds']['push'](_0x2ffbb0['id']);}return _0x115e50;}['_loadRevisionData'](_0x2e99b0){if(!_0x2e99b0||_0x2e99b0['diffData'])return Promise['resolve']();{const _0x46c0ce=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x46c0ce,'revisionId':_0x2e99b0['id']})['then'](_0x16e2c3=>{_0x2e99b0['diffData']=_0x16e2c3['diffData'];});}}['_bufferUpdate'](_0x4f974c,_0x368e53,_0x545100){if(this['_bufferedUpdates']['has'](_0x4f974c)){const _0x2cc5b1=this['_bufferedUpdates']['get'](_0x4f974c);_0x368e53=_0x545100?{..._0x2cc5b1,..._0x368e53}:{..._0x368e53,..._0x2cc5b1};}this['_bufferedUpdates']['set'](_0x4f974c,_0x368e53);}['_getFromVersion'](_0x32f027){const _0x1996df=this['repository']['getRevisions']();_0x1996df['reverse'](),_0x1996df['shift']();const _0xf06700=_0x1996df['find'](_0x3afd32=>_0x3afd32['toVersion']<=_0x32f027)['toVersion'];return _0xf06700<this['_startingVersion']?this['_startingVersion']:_0xf06700;}['_createInitialRevision'](_0x24b593){const _0x54dee9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x54dee9)this['_initialRevisionId']=_0x54dee9['id'];else{const _0x54fd52=!this['editor']['model']['document']['roots']['find'](_0x2d1e2b=>this['editor']['model']['hasContent'](_0x2d1e2b)),_0x14e1b6=this['editor']['plugins']['get']('Users')['me']['id'],_0x24cb10=m(this['editor']['locale'],_0x54fd52?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x24b593,'to':_0x24b593,'id':this['_initialRevisionId'],'name':_0x24cb10,'creatorId':_0x14e1b6});}}['_createCurrentRevision'](_0x36492e){const _0x115ae8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x115ae8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x36492e,'to':_0x36492e,'id':_0x115ae8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x33795f,from:_0x452e69,to:_0x118713,creatorId:_0x1b3cf2,id:_0x43e7af}){const _0x18d20b=this['buildRevisionData']({'from':_0x452e69,'to':_0x118713});_0x18d20b['name']=_0x33795f,_0x18d20b['creatorId']=_0x1b3cf2,_0x18d20b['id']=_0x43e7af;const _0x5915e0=this['addRevisionData'](_0x18d20b);return this['adapter']&&this['_bufferUpdate'](_0x18d20b['id'],_0x18d20b,!0x0),_0x5915e0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x417834){return(_0x417834=_0x417834['filter'](_0x380836=>!_0x380836['name']||'revision-start'!==_0x380836['name']&&'revision-end'!==_0x380836['name']))['forEach'](_0x308085=>{'string'!=typeof _0x308085&&(_0x308085['children']=this['_removeRevisionMarkers'](_0x308085['children']),_0x308085['attributes']=_0x308085['attributes']['filter'](_0xd90845=>!_0xd90845[0x0]['startsWith']('data-revision-')));}),_0x417834;}}function P(_0x4d10f0,_0x1f7dba){const _0x325fd3=_0x1f7dba['editing']['view']['document'];if('string'==typeof _0x4d10f0)return new _0x4a50ef(_0x325fd3,_0x4d10f0);{const _0x4b6a50=_0x4d10f0['children']['map'](_0x2bfa03=>P(_0x2bfa03,_0x1f7dba));return new(E[_0x4d10f0['type']]||_0x4fb45b)(_0x325fd3,_0x4d10f0['name'],_0x4d10f0['attributes'],_0x4b6a50);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x99b57b){this['editor']=_0x99b57b,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x5de896){this['source']=_0x5de896;const _0x59f9b4=new Map(),_0x93c862=new Map(),_0x5b5d4f=this['editor']['model']['document']['roots']['map'](_0x48f7a9=>_0x48f7a9['rootName']);for(const _0x549e49 of _0x5b5d4f){const _0x2de457=this['editor']['model']['document']['getRoot'](_0x549e49),_0x585a73=T(_0x2de457);_0x59f9b4['set'](_0x549e49,_0x585a73),_0x93c862['set'](_0x549e49,Object['fromEntries'](_0x2de457['getAttributes']()));}const _0x1f6f39=Array['from'](this['editor']['model']['markers'])['map'](_0x44521a=>[_0x44521a['name'],_0x44521a['getRange']()]),_0x6018cf=this['source']['version'];this['_saveMetaData'](_0x6018cf,_0x59f9b4,_0x1f6f39,_0x93c862),this['_startingRevisionId']=this['_revisionId'];const _0x2ba2d5=new Map(),_0x8ba856=new Map();for(const _0x4ed886 of _0x5b5d4f){const _0x23af53=F(_0x4ed886);_0x2ba2d5['set'](_0x4ed886,_0x23af53),_0x8ba856['set'](_0x4ed886,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2ba2d5,[],_0x8ba856);}['getData'](_0x9490b3,_0x3b5acd){if(this['_lastFrom']===_0x9490b3&&this['_lastTo']<=_0x3b5acd)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3b5acd,!0x0);else{if(!this['_savedMetaData']['has'](_0x9490b3)){const _0x1cf3ef=this['_getPreviousFrom'](_0x9490b3);this['_calculateMetaData'](_0x1cf3ef,_0x9490b3,!0x1);}this['_calculateMetaData'](_0x9490b3,_0x3b5acd,!0x0);}return this['_lastFrom']=_0x9490b3,this['_lastTo']=_0x3b5acd,this['_getState']();}['loadState'](_0xc4a94e){this['_reset'](),this['_lastFrom']=_0xc4a94e['fromVersion'],this['_lastTo']=_0xc4a94e['toVersion'];for(const _0x107e62 in _0xc4a94e['diffData']){const _0x1f00a9=_0xc4a94e['diffData'][_0x107e62]['attachChange'],_0x1a8e5d=_0x24b58c(_0xc4a94e['diffData'][_0x107e62]['attributesBefore'])||{},_0x2774b9=this['_makeModelFromViewString'](_0xc4a94e['diffData'][_0x107e62]['deletions']);_0x2774b9['rootName']=_0x107e62,_0x2774b9['_isAttached']=!_0x1f00a9||!_0x1f00a9['isAttached'],_0x2774b9['isAttached']=()=>_0x2774b9['_isAttached'],this['_baseRoots']['set'](_0x107e62,_0x2774b9),this['_baseRootsAttributes']['set'](_0x107e62,_0x1a8e5d),_0x1f00a9&&this['_touchedRoots']['set'](_0x107e62,_0x1f00a9);const _0x47108b=this['_makeIdsRoot'](_0x2774b9);this['_baseIdsRoots']['set'](_0x107e62,_0x47108b);for(const [_0x536784,_0x476f66]of _0x2774b9['markers']){if(!_0x536784['startsWith']('revision:'))continue;const _0x1fd137=_0x536784['split'](':')[0x2];for(const _0x3e3dd4 of _0x476f66['getWalker']({'singleCharacters':!0x0})){const _0x29f696=this['_getVidAttributeName'](_0x3e3dd4),_0x436ce6='elementEnd'==_0x3e3dd4['type']?_0x3e3dd4['previousPosition']['path']['slice'](0x0,-0x1):_0x3e3dd4['previousPosition']['path'],_0xb42ba0=_0x47108b['getNodeByPath'](_0x436ce6)['getAttribute'](_0x29f696);this['_touched']['set'](_0xb42ba0,{'userId':_0x1fd137});}}}this['_startingRevisionId']=this['_revisionId'];const _0x201537=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x12f4b4=>!this['_touched']['has'](_0x12f4b4));let _0x30f0b8=0x0;const _0xf232d9=new Map();for(const _0x16f7ea in _0xc4a94e['diffData']){const _0x13b6a0=_0xc4a94e['diffData'][_0x16f7ea]['attachChange'],_0x747a2a=_0x24b58c(_0xc4a94e['diffData'][_0x16f7ea]['attributesAfter'])||{},_0x4e0d1b=this['_makeModelFromViewString'](_0xc4a94e['diffData'][_0x16f7ea]['insertions']);_0x4e0d1b['rootName']=_0x16f7ea,_0x4e0d1b['_isAttached']=!_0x13b6a0||_0x13b6a0['isAttached'],_0x4e0d1b['isAttached']=()=>_0x4e0d1b['_isAttached'],this['_diffRoots']['set'](_0x16f7ea,_0x4e0d1b),this['_diffRootsAttributes']['set'](_0x16f7ea,_0x747a2a);const _0x4daae6=this['_makeIdsRoot'](_0x4e0d1b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16f7ea,_0x4daae6),_0xf232d9['set'](_0x16f7ea,_0x4e0d1b['isAttached']()?_0x747a2a:{});for(const [_0x375133,_0x2ffa45]of _0x4e0d1b['markers']){if(!_0x375133['startsWith']('revision:'))continue;const _0x44c3b3=_0x375133['split'](':')[0x2];for(const _0x4a7ebc of _0x2ffa45['getWalker']({'singleCharacters':!0x0})){const _0x11f556=this['_getVidAttributeName'](_0x4a7ebc),_0x1063f5=this['_revisionId']++,_0x50866b='elementEnd'==_0x4a7ebc['type']?_0x4a7ebc['previousPosition']['path']['slice'](0x0,-0x1):_0x4a7ebc['previousPosition']['path'];_0x4daae6['getNodeByPath'](_0x50866b)['_setAttribute'](_0x11f556,_0x1063f5),this['_touched']['set'](_0x1063f5,{'userId':_0x44c3b3});}}for(const _0x15d3a8 of this['editor']['model']['createRangeIn'](_0x4e0d1b)['getWalker']({'singleCharacters':!0x0})){const _0x5b2298=this['_getVidAttributeName'](_0x15d3a8),_0x2a731b='elementEnd'==_0x15d3a8['type']?_0x15d3a8['previousPosition']['path']['slice'](0x0,-0x1):_0x15d3a8['previousPosition']['path'],_0x5a8c39=_0x4daae6['getNodeByPath'](_0x2a731b);_0x5a8c39['getAttribute'](_0x5b2298)>0x0||_0x5a8c39['_setAttribute'](_0x5b2298,_0x201537[_0x30f0b8++]);}for(const [_0x2cc9bb,_0x2aab0f]of _0x4e0d1b['markers'])_0x2cc9bb['startsWith']('revision:')||this['_markers']['set'](_0x2cc9bb,_0x2aab0f);}const _0x5a2f70=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5a2f70),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5a2f70,0x1));const _0x1006c8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1006c8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1006c8,0x1));const _0x36cc9b=Array['from'](this['_diffRoots'])['map'](([_0x5084f4,_0x90545c])=>[_0x5084f4,T(_0x90545c)]);this['_saveMetaData'](this['_lastTo'],_0x36cc9b,this['_markers'],_0xf232d9);}['_makeModelFromViewString'](_0x1b1885){const _0x54cec9=JSON['parse'](_0x1b1885),_0x157508=this['editor']['editing']['view']['document'],_0x5935b9=new _0x1c7ac7(_0x157508,_0x54cec9['map'](_0x259b63=>P(_0x259b63,this['editor'])));return this['editor']['data']['toModel'](_0x5935b9);}['_saveMetaData'](_0x4116d6,_0xfc27da,_0x529fbe,_0x1416c4){const _0x5cc64f=new Map(_0xfc27da),_0x5930e8=new Map(_0x24b58c(_0x1416c4)),_0x43ed4e=new Map();for(const [_0x2dcba0,_0x46e592]of _0x529fbe)_0x43ed4e['set'](_0x2dcba0,{'start':_0x46e592['start']['clone'](),'end':_0x46e592['end']['clone'](),'rootName':_0x46e592['root']['rootName']});this['_savedMetaData']['set'](_0x4116d6,{'roots':_0x5cc64f,'markers':_0x43ed4e,'rootsAttributes':_0x5930e8});}['_removeMetaData'](_0x16032c){this['_savedMetaData']['delete'](_0x16032c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4d75b1,_0x11f98d=null){let _0x4f167f=null;_0x4d75b1['is']('documentFragment')||(_0x4f167f=new ut(_0x4d75b1['name'],{'vid_start':null===_0x11f98d?this['_revisionId']++:_0x11f98d++}));const _0x4a878f=[];for(const _0x3915a3 of _0x4d75b1['getChildren']())if(_0x3915a3['is']('element')){_0x4a878f['push'](this['_makeIdsRoot'](_0x3915a3,_0x11f98d));const _0x442765=_0x4a878f[_0x4a878f['length']-0x1];null!==_0x11f98d&&(_0x11f98d=_0x442765['is']('element','$text')?_0x442765['getAttribute']('vid')+0x1:_0x442765['getAttribute']('vid_end')+0x1);}else{for(let _0x28567d=0x0;_0x28567d<_0x3915a3['offsetSize'];_0x28567d++)_0x4a878f['push'](new ut('$text',{'vid':null===_0x11f98d?this['_revisionId']++:_0x11f98d++}));}if(_0x4d75b1['is']('documentFragment')){const _0x14e407=F(_0x4d75b1['rootName']);return _0x14e407['_insertChild'](0x0,_0x4a878f),_0x14e407;}return _0x4f167f['_setAttribute']('vid_end',null===_0x11f98d?this['_revisionId']++:_0x11f98d++),_0x4f167f['_insertChild'](0x0,_0x4a878f),_0x4f167f;}['_calculateMetaData'](_0x4ebb34,_0x505146,_0x244f29){this['_reset']();const {roots:_0x4d48c0,markers:_0x377190,rootsAttributes:_0x980b20}=this['_savedMetaData']['get'](_0x4ebb34);this['_baseRoots']=new Map(_0x4d48c0),this['_baseRootsAttributes']=new Map(_0x24b58c(_0x980b20));for(const [_0x2ce593,_0x37ab55]of this['_baseRoots'])if('$graveyard'!==_0x2ce593&&(this['_diffRoots']['set'](_0x2ce593,T(_0x37ab55)),this['_diffRootsAttributes']=new Map(_0x24b58c(_0x980b20)),_0x244f29)){const _0x534f4c=this['_revisionId'];this['_idsRoots']['set'](_0x2ce593,this['_makeIdsRoot'](_0x37ab55)),this['_baseIdsRoots']['set'](_0x2ce593,this['_makeIdsRoot'](_0x37ab55,_0x534f4c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x244f29&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1f6656,_0x4776d9]of _0x377190){const _0x3d3271=this['_baseRoots']['get'](_0x4776d9['rootName']),_0x4b7112=this['_diffRoots']['get'](_0x4776d9['rootName']),_0x4ec2fc=new ft(this['_fixPosition'](_0x4776d9['start'],_0x3d3271),this['_fixPosition'](_0x4776d9['end'],_0x3d3271)),_0x355ac6=this['_fixRange'](_0x4ec2fc,_0x4b7112);_0x3d3271['markers']['set'](_0x1f6656,_0x4ec2fc),this['_markers']['set'](_0x1f6656,_0x355ac6);}this['_applyOperations'](_0x4ebb34,_0x505146,_0x244f29);}['_applyOperations'](_0x54e575,_0x39787c,_0x1f1869){for(const _0x3609b8 of this['source']['getOperations'](_0x54e575,_0x39787c))this['_handleOperation'](_0x3609b8,_0x1f1869);for(const _0x3d0a3b of this['_diffRoots']['values']())_0x3d0a3b['markers']['clear']();for(const [_0x54c978,_0x50fdb2]of this['_markers']){this['_diffRoots']['get'](_0x50fdb2['root']['rootName'])['markers']['set'](_0x54c978,_0x50fdb2['clone']());}const _0x415717=new Map(),_0x34cfa9=new Map();for(const [_0x50ce7e,_0x52e311]of this['_diffRoots'])_0x415717['set'](_0x50ce7e,T(_0x52e311)),_0x34cfa9['set'](_0x50ce7e,this['_diffRootsAttributes']['get'](_0x50ce7e));this['_saveMetaData'](_0x39787c,_0x415717,this['_markers'],_0x34cfa9);}['_getPreviousFrom'](_0x12191b){const _0xa8e40=Array['from'](this['_savedMetaData']['keys']());_0xa8e40['sort']((_0x17d3f0,_0x5beda5)=>_0x17d3f0-_0x5beda5),_0xa8e40['reverse']();for(const _0x19fb2a of _0xa8e40)if(_0x19fb2a<_0x12191b)return _0x19fb2a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x46d0cb,_0x4280d3){const _0x28b405=Array['from'](_0x4280d3['markers'])['map'](([_0x2846d9,_0x2f461d])=>[_0x2846d9,this['_fixRange'](_0x2f461d,_0x46d0cb)]);_0x46d0cb['markers']=new Map(_0x28b405);}['_transformMarkers'](_0x368aff){for(const _0x4fa56d of this['_markers']['values']()){const _0x315d56=_0x4fa56d['getTransformedByOperation'](_0x368aff),_0x1507bd=ft['_createFromRanges'](_0x315d56);_0x4fa56d['start']=_0x1507bd['start'],_0x4fa56d['end']=_0x1507bd['end'];}}['_handleOperation'](_0x20060d,_0xf86f77){if('addRoot'!=_0x20060d['type']&&'detachRoot'!=_0x20060d['type']){if('insert'==_0x20060d['type']){const _0x4510dc=_0x20060d['position']['root']['rootName'];this['_diffRoots']['has'](_0x4510dc)||(this['_diffRoots']['set'](_0x4510dc,F(_0x4510dc,!0x0)),this['_diffRootsAttributes']['set'](_0x4510dc,{}),_0xf86f77&&this['_idsRoots']['set'](_0x4510dc,F(_0x4510dc,!0x0)));}else{if('addRootAttribute'==_0x20060d['type']||'removeRootAttribute'==_0x20060d['type']||'changeRootAttribute'==_0x20060d['type'])return void this['_handleRootAttributeOperation'](_0x20060d);'marker'==_0x20060d['type']&&this['_handleMarkerOperation'](_0x20060d);}if('marker'!==_0x20060d['type']){const _0x1aa57f=this['_cloneOperation'](_0x20060d,this['_diffRoots']);_0x1aa57f['_execute'](),this['_transformMarkers'](_0x1aa57f);}if(_0xf86f77)switch(_0x20060d['type']){case'insert':this['_handleInsertOperation'](_0x20060d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x20060d);break;case'merge':this['_handleMergeOperation'](_0x20060d);break;case'split':this['_handleSplitOperation'](_0x20060d);}}else this['_handleRootOperation'](_0x20060d,_0xf86f77);}['_cloneOperation'](_0x3e9355,_0xeb9566){const _0x180c24=_0x3e9355['clone']();return _0x180c24['_authorId']=_0x3e9355['_authorId'],this['_fixOperation'](_0x180c24,_0xeb9566),_0x180c24;}['_getBaseVids'](_0x397d74){return _0x397d74['map'](_0x475c23=>{const _0x22c0b3=this['_getVidAttributeName'](_0x475c23);return Number(_0x475c23['item']['getAttribute'](_0x22c0b3));});}['_generateTape'](_0x139497,_0x8e71df){if(_0x139497['is']('element','$text'))_0x8e71df['push']({'item':_0x139497,'type':'text'});else{_0x139497['is']('element')&&_0x8e71df['push']({'item':_0x139497,'type':'elementStart'});for(const _0x446e70 of _0x139497['getChildren']())this['_generateTape'](_0x446e70,_0x8e71df);_0x139497['is']('element')&&_0x8e71df['push']({'item':_0x139497,'type':'elementEnd'});}return _0x8e71df;}['_getState'](){const _0x1e0897=new Map(this['_touched']),_0x12ccc2=new Map(_0x1e0897),_0x2864ec=new Map(),_0x4fbd80={'insertions':{},'deletions':{}},_0x23d280={'insertions':{},'deletions':{}},_0x5edbed=new Map(),_0x1388a5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1388a5['delete']('$graveyard');for(const _0x49efa5 of _0x1388a5){const _0x43b357=this['_diffRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1),_0x5e75d5=this['_baseRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1);_0x43b357['isAttached']()||_0x5e75d5['isAttached']()?(_0x4fbd80['insertions'][_0x49efa5]=T(_0x43b357),_0x4fbd80['deletions'][_0x49efa5]=T(_0x5e75d5),this['_copyMarkers'](_0x4fbd80['deletions'][_0x49efa5],_0x5e75d5),this['_copyMarkers'](_0x4fbd80['insertions'][_0x49efa5],_0x43b357),_0x23d280['insertions'][_0x49efa5]=this['_generateTape'](this['_idsRoots']['get'](_0x49efa5),[]),_0x23d280['deletions'][_0x49efa5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1),[])):_0x1388a5['delete'](_0x49efa5);}for(const _0x875b5d of _0x1388a5){const _0x5f05d9=_0x23d280['insertions'][_0x875b5d];for(const _0x11df6c of _0x5f05d9){const _0x3e64b9=this['_getVidAttributeName'](_0x11df6c),_0x2a9d6b=_0x11df6c['item']['getAttribute'](_0x3e64b9);_0x12ccc2['delete'](_0x2a9d6b),_0x2a9d6b>=this['_startingRevisionId']&&_0x2864ec['set'](_0x2a9d6b,_0x1e0897['get'](_0x2a9d6b));}}for(const _0x2cf653 of _0x1388a5){const _0x5547ae=_0x23d280['insertions'][_0x2cf653],_0x162b40=this['_getBaseVids'](_0x23d280['deletions'][_0x2cf653]);let _0x48778d=0x0;for(const _0x1e2428 of _0x5547ae){const _0x409da6=this['_getVidAttributeName'](_0x1e2428),_0x2dfbe1=_0x1e2428['item']['getAttribute'](_0x409da6);if(!_0x2864ec['has'](_0x2dfbe1)&&!_0x5edbed['has'](_0x2dfbe1)){if(_0x12ccc2['has'](_0x2dfbe1))_0x48778d++;else{if(_0x2dfbe1!=_0x162b40[_0x48778d]){const _0x3cdda7=_0x1e0897['get'](_0x2dfbe1)||_0x1e0897['get'](_0x162b40[_0x48778d]);for(;_0x2dfbe1!=_0x162b40[_0x48778d];)_0x12ccc2['has'](_0x162b40[_0x48778d])||(_0x5edbed['set'](_0x162b40[_0x48778d],_0x3cdda7),_0x1e0897['set'](_0x162b40[_0x48778d],_0x3cdda7)),_0x48778d++;}_0x48778d++;}}}}for(const _0x370538 of _0x1388a5){const _0x3f8c46=_0x23d280['insertions'][_0x370538];for(const _0x53397f of _0x3f8c46){const _0x2cbedb=this['_getVidAttributeName'](_0x53397f),_0x2ed601=_0x53397f['item']['getAttribute'](_0x2cbedb);if(_0x5edbed['has'](_0x2ed601)){const _0x31aefd=_0x5edbed['get'](_0x2ed601);_0x12ccc2['has'](_0x2ed601)||_0x12ccc2['set'](_0x2ed601,{..._0x31aefd}),_0x2864ec['set'](_0x2ed601,{..._0x31aefd});}}}for(const _0x1938ee of _0x12ccc2['keys']())_0x1938ee>=this['_startingRevisionId']&&_0x12ccc2['delete'](_0x1938ee);const _0x53827d=new Map();for(const _0x1c8031 of _0x1388a5){let _0x15adbc=_0x23d280['insertions'][_0x1c8031];for(const _0x10c3a8 of _0x15adbc)if(_0x10c3a8['item']['is']('element','tableCell')){const _0x2b9dfa=this['_getVidAttributeName'](_0x10c3a8),_0x8cc722=_0x10c3a8['item']['getAttribute'](_0x2b9dfa);if(_0x2864ec['has'](_0x8cc722)){const _0x49373a=_0x10c3a8['item']['parent']['parent']['getAttribute']('vid_start'),_0x33a72d=_0x53827d['get'](_0x49373a)||new Set();_0x33a72d['add'](_0x2864ec['get'](_0x8cc722)['userId']),_0x53827d['set'](_0x49373a,_0x33a72d);}}_0x15adbc=_0x23d280['deletions'][_0x1c8031];for(const _0x476c2c of _0x15adbc)if(_0x476c2c['item']['is']('element','tableCell')){const _0x358316=this['_getVidAttributeName'](_0x476c2c),_0x187e8b=_0x476c2c['item']['getAttribute'](_0x358316);if(_0x12ccc2['has'](_0x187e8b)){const _0x5b612f=_0x476c2c['item']['parent']['parent']['getAttribute']('vid_start'),_0xd8f3cb=_0x53827d['get'](_0x5b612f)||new Set();_0xd8f3cb['add'](_0x12ccc2['get'](_0x187e8b)['userId']),_0x53827d['set'](_0x5b612f,_0xd8f3cb);}}for(const _0x2cdbda of _0x53827d['keys']())(_0x2864ec['has'](_0x2cdbda)||_0x12ccc2['has'](_0x2cdbda))&&_0x53827d['delete'](_0x2cdbda);}for(const _0xea8aa9 of _0x1388a5){const _0x29eaa3=_0x23d280['insertions'][_0xea8aa9];let _0x4f849d=null,_0x13be86=null;for(const _0xd0a01e of _0x29eaa3){const _0x20d003=this['_getVidAttributeName'](_0xd0a01e),_0x46114c=_0xd0a01e['item']['getAttribute'](_0x20d003),_0x382949=_0x53827d['get'](_0x46114c);_0x382949&&'elementStart'==_0xd0a01e['type']&&(_0x4f849d=Array['from'](_0x382949)[0x0],_0x13be86=_0xd0a01e['item']['getAttribute']('vid_end')),_0x4f849d&&(_0x12ccc2['set'](_0x46114c,{'userId':_0x4f849d}),_0x2864ec['set'](_0x46114c,{'userId':_0x4f849d})),_0x46114c==_0x13be86&&(_0x4f849d=null,_0x13be86=null);}}const _0x58d79e={},_0x296d77=new Set();for(const _0x5b397f of _0x1388a5){const _0x405b56=_0x4fbd80['deletions'][_0x5b397f],_0xb1ccf9=_0x4fbd80['insertions'][_0x5b397f];for(const {userId:_0x72e24a}of this['_touchedMarkers']['values']())null!==_0x72e24a&&_0x296d77['add'](_0x72e24a);for(const {userId:_0x45d304}of this['_touchedRoots']['values']())null!==_0x45d304&&_0x296d77['add'](_0x45d304);this['_markChanges'](_0xb1ccf9,_0x23d280['insertions'][_0x5b397f],_0x2864ec,'insertion',_0x296d77),this['_markChanges'](_0x405b56,_0x23d280['deletions'][_0x5b397f],_0x12ccc2,'deletion',_0x296d77),_0x58d79e[_0x5b397f]={'insertions':this['_prepareViewToSave'](_0xb1ccf9),'deletions':this['_prepareViewToSave'](_0x405b56),'attachChange':this['_touchedRoots']['get'](_0x5b397f)||null,'attributesBefore':_0x24b58c(this['_baseRootsAttributes']['get'](_0x5b397f))||{},'attributesAfter':_0x24b58c(this['_diffRootsAttributes']['get'](_0x5b397f))};}return{'diffData':_0x58d79e,'authorsIds':Array['from'](_0x296d77)};}['_processRootBeforeSave'](_0x4225dd){for(const [,_0x45618d]of _0x4225dd['markers']){const _0x259826=_0x45618d['start']['getAncestors']()['filter'](_0x409b64=>'tableCell'==_0x409b64['name']);for(const _0x5387f9 of _0x259826)0x1==_0x5387f9['childCount']&&_0x5387f9['getChild'](0x0)['is']('element','paragraph')&&_0x5387f9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x17d421){this['_processRootBeforeSave'](_0x17d421);const _0x16ac5f=this['editor']['data']['toView'](_0x17d421,{}),_0x59320f=Array['from'](_0x16ac5f['getChildren']())['map'](_0x22de35=>this['_getViewJson'](_0x22de35));return JSON['stringify'](_0x59320f);}['_getViewJson'](_0x4fda62){if(_0x4fda62['is']('$text'))return _0x4fda62['data'];{const _0x5ec5a6=_0x4fda62;return{'type':Object['keys'](E)['find'](_0x45045a=>_0x4fda62 instanceof E[_0x45045a]),'name':_0x5ec5a6['name'],'attributes':Array['from'](_0x5ec5a6['getAttributes']()),'children':Array['from'](_0x5ec5a6['getChildren']())['map'](_0x574ef9=>this['_getViewJson'](_0x574ef9))};}}['_markChanges'](_0x4b64df,_0x2b4986,_0x3417fe,_0x3d3be7,_0x2f1a59){let _0x29c041=null,_0x2977a4=null,_0x22a384=0x0;const _0x150d06=this['editor']['model'];for(let _0x43b9b6=0x0;_0x43b9b6<_0x2b4986['length'];_0x43b9b6++){const _0x45114a=this['_getVidAttributeName'](_0x2b4986[_0x43b9b6]),_0x25451d=_0x2b4986[_0x43b9b6]['item']['getAttribute'](_0x45114a),_0x484111=_0x3417fe['get'](_0x25451d),_0x22604d=_0x43b9b6==_0x2b4986['length']-0x1;(!_0x29c041&&_0x484111&&(_0x29c041=_0x484111,_0x2977a4=_0x2b4986[_0x43b9b6]),_0x29c041&&(!_0x484111||_0x484111['userId']!=_0x29c041['userId']))&&(_0x5f3722(_0x484111,B(_0x2977a4,_0x4b64df,_0x150d06),B(_0x2b4986[_0x43b9b6],_0x4b64df,_0x150d06)),_0x29c041=_0x484111||null,_0x2977a4=_0x484111?_0x2b4986[_0x43b9b6]:null),_0x29c041&&_0x22604d&&_0x5f3722(_0x484111,B(_0x2977a4,_0x4b64df,_0x150d06),J(_0x2b4986[_0x43b9b6],_0x4b64df,_0x150d06));}function _0x5f3722(_0x5e3beb,_0xfa4898,_0x251b14){const _0x45aefe=_0x29c041['userId'],_0x546eb5='revision:'+_0x3d3be7+':'+_0x45aefe+':'+_0x22a384++,_0xe5816a=_0x150d06['createRange'](_0xfa4898,_0x251b14);_0x4b64df['markers']['set'](_0x546eb5,_0xe5816a),null!==_0x45aefe&&_0x2f1a59['add'](_0x45aefe);}}['_getVidAttributeName'](_0x4e02ca){switch(_0x4e02ca['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x7799d9,_0x3d6758){_0x7799d9['baseVersion']=null;for(const _0x5a05a1 in _0x7799d9){const _0x4c4e66=_0x7799d9[_0x5a05a1];if(_0x4c4e66 instanceof vt){const _0x5ecd1b=_0x3d6758['get'](_0x4c4e66['root']['rootName']);_0x7799d9[_0x5a05a1]=this['_fixPosition'](_0x4c4e66,_0x5ecd1b);}if(_0x4c4e66 instanceof ft){const _0x10532d=_0x3d6758['get'](_0x4c4e66['root']['rootName']);_0x7799d9[_0x5a05a1]=this['_fixRange'](_0x4c4e66,_0x10532d);}'root'===_0x5a05a1&&(_0x7799d9['root']=_0x3d6758['get'](_0x7799d9['root']['rootName']));}}['_fixRange'](_0x1dcf49,_0x435465){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1dcf49['start'],_0x435465),this['_fixPosition'](_0x1dcf49['end'],_0x435465));}['_fixPosition'](_0xe13511,_0x1c2d3c){return this['editor']['model']['createPositionFromPath'](_0x1c2d3c,_0xe13511['path'],_0xe13511['stickiness']);}['_handleInsertOperation'](_0x53e939){const _0x1923e9=this['_idsRoots']['get'](_0x53e939['position']['root']['rootName']),_0x3436f9=this['_fixPosition'](_0x53e939['position'],_0x1923e9),_0x59dde6=null===_0x53e939['_authorId']?null:_0x53e939['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x496d7e=_0x3436f9['parent'],_0x1d4bbe=this['_revisionId'],_0x391ad3=[];for(const _0x36223e of _0x53e939['nodes'])if(_0x36223e['is']('element'))_0x391ad3['push'](this['_makeIdsRoot'](_0x36223e));else{for(let _0x18b96e=0x0;_0x18b96e<_0x36223e['offsetSize'];_0x18b96e++)_0x391ad3['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4b64c7=this['_revisionId'];for(let _0x3af842=_0x1d4bbe;_0x3af842<_0x4b64c7;_0x3af842++)this['_touched']['set'](_0x3af842,{'userId':_0x59dde6});_0x496d7e['_insertChild'](_0x3436f9['offset'],_0x391ad3);}['_handleMoveOperation'](_0x3ffda6){(_0x3ffda6=this['_cloneOperation'](_0x3ffda6,this['_idsRoots']))['_execute']();const _0x3f0a6f=null===_0x3ffda6['_authorId']?null:_0x3ffda6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9a7e=_0x3ffda6['getMovedRangeStart'](),_0x564431=_0x4c9a7e['parent'],_0x214ac1=_0x4c9a7e['offset'];!function _0x48d493(_0x593223,_0x4d73b9,_0x96676e,_0x476445){for(let _0x1aa7b1=_0x96676e;_0x1aa7b1<_0x476445;_0x1aa7b1++){const _0x739fc7=_0x4d73b9['getChild'](_0x1aa7b1);_0x739fc7['is']('element','$text')?_0x593223['set'](_0x739fc7['getAttribute']('vid'),{'userId':_0x3f0a6f}):(_0x593223['set'](_0x739fc7['getAttribute']('vid_start'),{'userId':_0x3f0a6f}),_0x48d493(_0x593223,_0x739fc7,0x0,_0x739fc7['childCount']),_0x593223['set'](_0x739fc7['getAttribute']('vid_end'),{'userId':_0x3f0a6f}));}}(this['_touched'],_0x564431,_0x214ac1,_0x214ac1+_0x3ffda6['howMany']);}['_handleMergeOperation'](_0x38cd42){const _0x55b01c=null===(_0x38cd42=this['_cloneOperation'](_0x38cd42,this['_idsRoots']))['_authorId']?null:_0x38cd42['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a8b5e=_0x38cd42['targetPosition']['parent'],_0x325e14=_0x38cd42['sourcePosition']['parent'],_0x401214=_0x5a8b5e['getAttribute']('vid_end'),_0x2d2a80=_0x325e14['getAttribute']('vid_start');_0x5a8b5e['_setAttribute']('vid_end',_0x325e14['getAttribute']('vid_end')),_0x325e14['_setAttribute']('vid_end',_0x401214),this['_touched']['set'](_0x2d2a80,{'userId':_0x55b01c}),this['_touched']['set'](_0x401214,{'userId':_0x55b01c}),_0x38cd42['_execute']();}['_handleSplitOperation'](_0x160fe8){const _0x37ce6a=null===(_0x160fe8=this['_cloneOperation'](_0x160fe8,this['_idsRoots']))['_authorId']?null:_0x160fe8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4baf96=_0x160fe8['graveyardPosition'],_0x5db90a=_0x160fe8['splitPosition']['parent'];_0x160fe8['_execute']();const _0x3bc55d=_0x5db90a['getAttribute']('vid_end'),_0x49afe4=_0x160fe8['insertionPosition']['nodeAfter'];if(_0x4baf96){const _0x1283a3=_0x49afe4['getAttribute']('vid_end'),_0x18e7b7=_0x5db90a['getAttribute']('vid_end');_0x5db90a['_setAttribute']('vid_end',_0x1283a3),_0x49afe4['_setAttribute']('vid_end',_0x18e7b7),this['_touched']['set'](_0x5db90a['getAttribute']('vid_end'),{'userId':_0x37ce6a}),this['_touched']['set'](_0x49afe4['getAttribute']('vid_start'),{'userId':_0x37ce6a});}else{const _0x1b10f3=this['_revisionId']++,_0x48edfc=this['_revisionId']++;_0x5db90a['_setAttribute']('vid_end',_0x1b10f3),_0x49afe4['_setAttribute']('vid_start',_0x48edfc),_0x49afe4['_setAttribute']('vid_end',_0x3bc55d),this['_touched']['set'](_0x1b10f3,{'userId':_0x37ce6a}),this['_touched']['set'](_0x48edfc,{'userId':_0x37ce6a});}}['_handleMarkerOperation'](_0x1bf915){if(!_0x1bf915['affectsData'])return;const _0x3eaa08=(_0x1bf915=this['_cloneOperation'](_0x1bf915,this['_diffRoots']))['oldRange']?_0x1bf915['oldRange']['root']:null,_0x4d2a62=_0x1bf915['newRange']?_0x1bf915['newRange']['root']:null;_0x3eaa08&&this['_markers']['delete'](_0x1bf915['name']),_0x4d2a62&&this['_markers']['set'](_0x1bf915['name'],_0x1bf915['newRange']['clone']());const _0x576591=null===_0x1bf915['_authorId']?null:_0x1bf915['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x340904=_0x1bf915['name'];if(!this['_touchedMarkers']['has'](_0x340904))return void this['_touchedMarkers']['set'](_0x340904,{'range':_0x1bf915['oldRange'],'userId':_0x576591});const _0x2ec2bf=this['_touchedMarkers']['get'](_0x340904),_0xc9c16c=_0x2ec2bf['range'],_0x5e8381=_0x1bf915['newRange'];null==_0xc9c16c&&null==_0x5e8381||_0xc9c16c&&_0x5e8381&&_0xc9c16c['isEqual'](_0x5e8381)?this['_touchedMarkers']['delete'](_0x1bf915['name']):_0x2ec2bf['userId']=_0x576591;}['_handleRootOperation'](_0x327462,_0x10cd09){this['_diffRoots']['has'](_0x327462['rootName'])?this['_diffRoots']['get'](_0x327462['rootName'])['_isAttached']=_0x327462['isAdd']:(this['_diffRoots']['set'](_0x327462['rootName'],F(_0x327462['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x327462['rootName'],{}),_0x10cd09&&this['_idsRoots']['set'](_0x327462['rootName'],F(_0x327462['rootName'],!0x0)));const _0x5dc4d2=null===_0x327462['_authorId']?null:_0x327462['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c370e=this['_touchedRoots']['get'](_0x327462['rootName']);_0x5c370e&&_0x5c370e['userId']===_0x5dc4d2?this['_touchedRoots']['delete'](_0x327462['rootName']):this['_touchedRoots']['set'](_0x327462['rootName'],{'userId':_0x5dc4d2,'isAttached':_0x327462['isAdd']});}['_handleRootAttributeOperation'](_0x19a549){const _0x1698a2=this['_diffRootsAttributes']['get'](_0x19a549['root']['rootName']);null===_0x19a549['newValue']?delete _0x1698a2[_0x19a549['key']]:_0x1698a2[_0x19a549['key']]=_0x19a549['newValue'];}}function T(_0x22c9fb){const _0x524b66=F(_0x22c9fb['rootName'],_0x22c9fb['isAttached']());for(const _0x1d3d36 of _0x22c9fb['getChildren']()){const _0x1710b6=_0x1d3d36['_clone'](!0x0);_0x524b66['_appendChild'](_0x1710b6);}return _0x524b66;}function F(_0x59d1a2,_0x226059=!0x0){const _0x28268a=new gt();return _0x28268a['rootName']=_0x59d1a2,_0x28268a['_isAttached']=_0x226059,_0x28268a['isAttached']=()=>_0x28268a['_isAttached'],_0x28268a;}function B(_0x56cdd1,_0x218a89,_0x698a08){const _0x307b30='elementEnd'==_0x56cdd1['type']?_0x698a08['createPositionAt'](_0x56cdd1['item'],'end'):_0x698a08['createPositionBefore'](_0x56cdd1['item']);return _0x698a08['createPositionFromPath'](_0x218a89,_0x307b30['path'],_0x307b30['stickiness']);}function J(_0x2eabcf,_0x5bb3d9,_0x2ab9bc){const _0x34ce23='elementStart'==_0x2eabcf['type']?_0x2ab9bc['createPositionAt'](_0x2eabcf['item'],0x0):_0x2ab9bc['createPositionAfter'](_0x2eabcf['item']);return _0x2ab9bc['createPositionFromPath'](_0x5bb3d9,_0x34ce23['path'],_0x34ce23['stickiness']);}class os extends _0x423d80{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x56c531,_0x15e280){super(_0x56c531),this['focusTracker']=new _0x1fbac0(),this['keystrokes']=new _0x4a481f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x15e280),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x189d32({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3e561d=_0x3e75d1=>_0x3e75d1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e561d),this['keystrokes']['set']('arrowleft',_0x3e561d),this['keystrokes']['set']('arrowup',_0x3e561d),this['keystrokes']['set']('arrowdown',_0x3e561d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x23702f){this['revisionNameInputView']['fieldView']['element']['value']=_0x23702f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x405d50){const _0x410544=new at(this['locale'],ti),_0x583299=_0x410544['fieldView'];_0x583299['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1591c5=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x405d50&&(_0x1591c5+='\x20('+m(this['locale'],'optional')+')'),(_0x410544['label']=_0x1591c5,_0x583299['on']('input',()=>{this['revisionNameInputValue']=_0x583299['element']['value']['trim']();}),_0x410544);}}class f extends _0x41e048{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x296c81=this['editor'],_0x465ed7=_0x296c81['plugins']['get']('RevisionTracker');_0x296c81['ui']['componentFactory']['add']('revisionHistory',_0xfc7a73=>{const _0x1048db=_0x4b0e6a(_0xfc7a73),_0x592af1=_0x1048db['panelView']['children'],_0xeb16e2=new _0x1371fb(_0xfc7a73),_0x5c7acf=new te(_0xfc7a73),_0x18a077=new _0x4f8d34(_0xfc7a73),_0x4009a4=new te(_0xfc7a73),_0x1e31bb=new _0x4f8d34(_0xfc7a73);return _0x1048db['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x465ed7,'isEnabled',_0x296c81,'isReadOnly',(_0x5dcfca,_0x448de4,_0x3df604)=>_0x5dcfca&&_0x448de4&&!_0x3df604),_0x1048db['buttonView']['set']({'icon':_0x24e1d6,'label':m(_0xfc7a73,'Revision\x20history'),'tooltip':!0x0}),_0x18a077['set']({'label':m(_0xfc7a73,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x18a077['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x465ed7,'isEnabled',_0x296c81,'isReadOnly',(_0xc2a230,_0x143ac0,_0x2ef3d7)=>_0xc2a230&&_0x143ac0&&!_0x2ef3d7),_0x18a077['on']('execute',()=>this['_showDialog']()),_0x1e31bb['set']({'label':m(_0xfc7a73,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e31bb['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x296c81,'isReadOnly',(_0xab2c83,_0x48e4bd)=>_0xab2c83&&!_0x48e4bd),_0x1e31bb['on']('execute',()=>{_0x296c81['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1048db['isOpen']=!0x1,_0x296c81['editing']['view']['focus']();}),_0x5c7acf['children']['add'](_0x18a077),_0x4009a4['children']['add'](_0x1e31bb),_0xeb16e2['role']='menu',_0xeb16e2['items']['addMany']([_0x5c7acf,_0x4009a4]),_0x592af1['add'](_0xeb16e2),_0x1048db;}),_0x296c81['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xc17672=this['editor'],_0x16f2cb=_0xc17672['locale'],_0xd2b38a=new _0x1c964b(_0x16f2cb),_0x5196a6=new _0x417ef7(_0x16f2cb);_0xd2b38a['buttonView']['set']({'icon':_0x24e1d6,'label':m(_0x16f2cb,'Revision\x20history')});const _0xa4e320=new _0x189cf9(_0x16f2cb,_0xd2b38a),_0x51b420=new _0x35e62e(_0x16f2cb);_0x51b420['set']({'label':m(_0x16f2cb,'Save\x20current\x20revision')}),_0x51b420['delegate']('execute')['to'](_0xd2b38a),_0x51b420['on']('execute',()=>{this['_showDialog']();}),_0xa4e320['children']['add'](_0x51b420),_0x5196a6['items']['add'](_0xa4e320);const _0x25e170=new _0x189cf9(_0x16f2cb,_0xd2b38a),_0x5df4c9=new _0x35e62e(_0x16f2cb);return _0x5df4c9['set']({'label':m(_0x16f2cb,'Open\x20revision\x20history')}),_0x5df4c9['delegate']('execute')['to'](_0xd2b38a),_0x5df4c9['on']('execute',()=>{_0xc17672['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x25e170['children']['add'](_0x5df4c9),_0x5196a6['items']['add'](_0x25e170),_0xd2b38a['panelView']['children']['add'](_0x5196a6),_0xd2b38a;}['_showDialog'](){const _0x42cb4f=this['editor'],_0xc24800=_0x42cb4f['locale'],_0x556ae9=_0x42cb4f['plugins']['get']('Dialog'),_0x1698f0=_0x42cb4f['plugins']['get']('RevisionTracker');function _0x3e4817(_0x2139d5){_0x42cb4f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2139d5['revisionName']?_0x2139d5['revisionNameInputView']['errorText']=m(_0xc24800,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x42cb4f['plugins']['get'](u)['saveRevision']({'name':_0x2139d5['revisionName']}),_0x556ae9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3e4817(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x556ae9['show']({'id':'revisionSave','title':m(_0xc24800,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x42cb4f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x556ae9['hide']()},{'label':m(_0x42cb4f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1ce404){_0x1ce404['bind']('isEnabled')['to'](_0x1698f0,'isReady',_0x1698f0,'isEnabled',_0x42cb4f,'isReadOnly',(_0x2eb489,_0x51ac45,_0x3c49d4)=>_0x2eb489&&_0x51ac45&&!_0x3c49d4);},'onExecute':()=>_0x3e4817(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x27ff52=this['editor'],_0x2cba12=_0x27ff52['locale'];this['_saveRevisionFormView']=new os(_0x2cba12,_0x27ff52['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x423d80{['changeId'];['_model'];constructor(_0x36596f,_0xd3b390){super(_0x36596f),this['_model']=_0xd3b390,this['changeId']=_0xd3b390['id'];const _0x402342=this['bindTemplate'],_0x136b8e=m(_0x36596f,_0xd3b390['data']['isSuggestion']?'Suggested\x20by':'add'==_0xd3b390['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xd3b390['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x402342['to']('type',_0x4c7ab4=>'ck-revision-change__'+_0x4c7ab4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x136b8e}]},{'text':'\x20'+_0xd3b390['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4b2841(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x501ed9){super(),this['id']=_0x501ed9['id']||_0x663c6b(),this['author']=_0x501ed9['author'],this['type']=_0x501ed9['type'],this['data']=_0x501ed9['data']||{},this['rootName']=_0x501ed9['rootName'],this['set']('createdAt',_0x501ed9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5aedbc,_0x4de110){this['newRevisionId']=_0x5aedbc,this['oldRevisionId']=_0x4de110,this['changes']=new _0x2c3527();}['_setChanges'](_0x410f92){for(const _0x567246 of _0x410f92)this['changes']['add'](_0x567246);}}const Y={'c':_0x11aa29,'a':_0x1a2d2b,'e':_0x2b610f,'r':_0x3274f3,'u':_0x1409e8};class d extends _0x41e048{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b8d32,_0x1b3f42,j];}constructor(_0x13b5ea){super(_0x13b5ea),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x329691,_0x1c18b0,_0x4acde8)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x772ee7=>{for(const _0x39442e of this['editor']['editing']['view']['document']['roots'])_0x4acde8?_0x772ee7['removeClass']('ck-editor__editable__overlay',_0x39442e):_0x772ee7['addClass']('ck-editor__editable__overlay',_0x39442e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16277b=>null!==_0x16277b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x7b1994,_0x1d240d,_0x49b1b9)=>_0x7b1994&&_0x49b1b9?_0x1d240d['changes']['getIndex'](_0x49b1b9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f7d9e,_0x31bfab)=>_0x1f7d9e?_0x31bfab['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1b3f42);}['init'](){const _0xdd1d50=this['editor'],_0x4c6066=new yt(_0xdd1d50,{'direction':'backward'}),_0x15ccc3=new yt(_0xdd1d50,{'direction':'forward'});(_0xdd1d50['commands']['add']('showPreviousChange',_0x4c6066),_0xdd1d50['commands']['add']('showNextChange',_0x15ccc3),_0xdd1d50['commands']['add']('restoreRevision',new _t(_0xdd1d50)),this['on']('change:numberOfChanges',()=>{_0x4c6066['refresh'](),_0x15ccc3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xdd1d50['enableReadOnlyMode']('revision-viewer'),_0xdd1d50['plugins']['has']('WidgetToolbarRepository'))&&_0xdd1d50['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x56cce3){await this['loadRevisionData'](_0x56cce3);const _0x2fdd6c={};for(const _0x1d0f1a in _0x56cce3['diffData']){if(_0x56cce3['diffData'][_0x1d0f1a]['attachChange']&&!_0x56cce3['diffData'][_0x1d0f1a]['attachChange']['isAttached'])continue;const _0x3292c5=this['_removeRevisionMarkers'](JSON['parse'](_0x56cce3['diffData'][_0x1d0f1a]['insertions'])),_0x260198=this['editor']['editing']['view']['document'],_0x3e36dd=new _0x1c7ac7(_0x260198,_0x3292c5['map'](_0x47f032=>this['_getViewObj'](_0x47f032)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2fdd6c[_0x1d0f1a]=this['editor']['data']['processor']['toData'](_0x3e36dd),this['editor']['data']['processor']['useFillerType']('default');}return _0x2fdd6c;}async['getRevisionRootsAttributes'](_0x458da4){await this['loadRevisionData'](_0x458da4);const _0x3c5a15={};for(const _0x4d111c in _0x458da4['diffData'])_0x458da4['diffData'][_0x4d111c]['attachChange']&&!_0x458da4['diffData'][_0x4d111c]['attachChange']['isAttached']||(_0x3c5a15[_0x4d111c]=_0x458da4['diffData'][_0x4d111c]['attributesAfter']||{});return _0x3c5a15;}['_removeRevisionMarkers'](_0x1dfeab){return(_0x1dfeab=_0x1dfeab['filter'](_0x352a0b=>!_0x352a0b['name']||'revision-start'!==_0x352a0b['name']&&'revision-end'!==_0x352a0b['name']))['forEach'](_0x4b9dec=>{'string'!=typeof _0x4b9dec&&(_0x4b9dec['children']=this['_removeRevisionMarkers'](_0x4b9dec['children']),_0x4b9dec['attributes']=_0x4b9dec['attributes']['filter'](_0x50c5d4=>!_0x50c5d4[0x0]['startsWith']('data-revision-')));}),_0x1dfeab;}async['compare'](_0x41fa2f,_0x3b7a90,_0x16b895=!0x1){if(!this['isEnabled'])return;const _0xe21807=this['diff'],_0x4dd010=this['repository'],_0x1aa649='string'==typeof _0x41fa2f?_0x4dd010['getRevision'](_0x41fa2f):_0x41fa2f,_0x3b1289='string'==typeof _0x3b7a90?_0x4dd010['getRevision'](_0x3b7a90):_0x3b7a90,_0x5046f5=_0x1aa649['id'],_0x3e5109=_0x3b1289?_0x3b1289['id']:null;if(!_0x16b895&&this['diff']&&this['diff']['newRevisionId']===_0x5046f5&&this['diff']['oldRevisionId']===_0x3e5109)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5046f5,_0x3e5109);const _0x1b980f=this['_getRevisionsRange'](_0x1aa649,_0x3b1289,!0x0)['map'](_0xeb0417=>this['loadRevisionData'](_0xeb0417));return _0x1b980f['push'](new Promise(_0x4cc93a=>{setTimeout(_0x4cc93a,0x14);})),Promise['all'](_0x1b980f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4f3264=this['_getDiff'](_0x5046f5,_0x3e5109);for(const _0x5d5b08 of _0x4f3264['changes'])this['_changeIdToChange']['set'](_0x5d5b08['id'],_0x5d5b08);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5734db=>{for(const _0x2ed458 of this['editor']['model']['document']['getRootNames']())_0x5734db['detachRoot'](_0x2ed458);for(const _0x2afc3d of Object['keys'](_0x4f3264['model'])){const _0x26ba98=_0x5734db['addRoot'](_0x2afc3d);for(const _0x20c42d of Object['keys'](_0x4f3264['attributes'][_0x2afc3d]))_0x5734db['setAttribute'](_0x20c42d,_0x4f3264['attributes'][_0x2afc3d][_0x20c42d],_0x26ba98);_0x5734db['insert'](_0x4f3264['model'][_0x2afc3d],_0x26ba98,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4f3264['changes'])),this['isReady']=!0x0;})['catch'](_0x1a762e=>{console['error'](_0x1a762e),this['_cleanUp'](),_0xe21807&&(this['diff']=_0xe21807),this['isReady']=!0x0;});}['addRevisionData'](_0x4dd61b,_0x1f01a4){const _0x2801b6=this['repository']['createRevision'](_0x4dd61b);return _0x2801b6['on']('_update',(_0x56b985,_0x860c05,_0x48d0dd)=>_0x1f01a4(_0x860c05,_0x48d0dd,_0x2801b6)),this['repository']['addRevision'](_0x2801b6),_0x2801b6;}['loadRevisionData'](_0xa07c3b){if(!_0xa07c3b||_0xa07c3b['diffData'])return Promise['resolve']();{const _0x77df76=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x77df76,'revisionId':_0xa07c3b['id']})['then'](_0x2b9a7f=>{_0xa07c3b['_update']({'diffData':_0x2b9a7f['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2951ac=>{for(const _0x34a62f of this['editor']['model']['document']['getRootNames']())_0x2951ac['detachRoot'](_0x34a62f);});}['_sortAndFilterDiffChanges'](_0x284b2e){const _0x16ee77=[],_0x5403bd=new Map();for(const _0x15a208 of this['editor']['model']['document']['getRootNames']()){const _0x3c1278=this['editor']['editing']['view']['getDomRoot'](_0x15a208);if(!_0x3c1278)continue;const _0x231165=_0x3c1278['getClientRects']()['item'](0x0);_0x231165&&(_0x16ee77['push'](_0x15a208),_0x5403bd['set'](_0x15a208,_0x231165));}return _0x16ee77['sort']((_0x2e1142,_0x225c84)=>{const _0x21fda0=_0x5403bd['get'](_0x2e1142),_0x4b50c1=_0x5403bd['get'](_0x225c84);return _0x21fda0['y']-_0x4b50c1['y']||_0x21fda0['x']-_0x4b50c1['x'];}),(_0x284b2e=_0x284b2e['filter'](_0x218095=>_0x16ee77['includes'](_0x218095['rootName'])))['sort']((_0x4aedc5,_0x2cb74c)=>_0x16ee77['indexOf'](_0x4aedc5['rootName'])-_0x16ee77['indexOf'](_0x2cb74c['rootName'])),_0x284b2e;}['_makeTape'](_0x5ac567){const _0x4e4cc2=Array['from'](_0x5ac567['markers'])['filter'](([_0x4460a6,_0x59a26e])=>_0x4460a6['startsWith']('revision:')&&!_0x59a26e['isCollapsed']),_0x37dd74=Array['from'](this['editor']['model']['createRangeIn'](_0x5ac567)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4e4cc2['length'])for(const _0xbe844a of _0x37dd74){const [_0x50cb99,_0x2c9bea]=_0x4e4cc2[0x0],[,_0x1a8fc6,_0xbfc237]=_0x50cb99['split'](':');if(_0x2c9bea['end']['isEqual'](_0xbe844a['nextPosition'])&&_0x4e4cc2['shift'](),(_0xbe844a['previousPosition']['isEqual'](_0x2c9bea['start'])||_0xbe844a['previousPosition']['isAfter'](_0x2c9bea['start']))&&('insertion'==_0x1a8fc6?_0xbe844a['isAdded']={'userId':_0xbfc237}:'deletion'==_0x1a8fc6&&(_0xbe844a['isRemoved']={'userId':_0xbfc237})),0x0==_0x4e4cc2['length'])break;}return _0x37dd74;}['_refreshStartEndIndex'](_0xc4ca79){const _0xbd3b9f=new Map();for(let _0x229b1c=0x0;_0x229b1c<_0xc4ca79['length'];_0x229b1c++)'text'===_0xc4ca79[_0x229b1c]['type']?(_0xc4ca79[_0x229b1c]['item']['startIndex']=_0x229b1c,_0xc4ca79[_0x229b1c]['item']['endIndex']=_0x229b1c):('elementStart'===_0xc4ca79[_0x229b1c]['type']?_0xc4ca79[_0x229b1c]['item']['startIndex']=_0x229b1c:'elementEnd'===_0xc4ca79[_0x229b1c]['type']&&(_0xc4ca79[_0x229b1c]['item']['endIndex']=_0x229b1c),_0xbd3b9f['set'](_0xc4ca79[_0x229b1c]['id'],_0x229b1c));for(const _0x388db1 of _0xbd3b9f['values']())'elementStart'===_0xc4ca79[_0x388db1]['type']?_0xc4ca79[_0x388db1]['item']['endIndex']=_0xbd3b9f['get'](_0xc4ca79[_0x388db1]['pairId']):'elementEnd'===_0xc4ca79[_0x388db1]['type']&&(_0xc4ca79[_0x388db1]['item']['startIndex']=_0xbd3b9f['get'](_0xc4ca79[_0x388db1]['pairId']));}['_processTape'](_0x422575){for(let _0x1c5f97=0x0;_0x1c5f97<_0x422575['length'];_0x1c5f97++){if('elementStart'===_0x422575[_0x1c5f97]['type'])_0x422575[_0x1c5f97]['item']['startIndex']=_0x1c5f97;else{if('elementEnd'===_0x422575[_0x1c5f97]['type']){_0x422575[_0x1c5f97]['item']['endIndex']=_0x1c5f97;const _0x7d46b7=_0x422575[_0x1c5f97]['item']['startIndex'];_0x422575[_0x7d46b7]['pairId']=_0x422575[_0x1c5f97]['id'],_0x422575[_0x1c5f97]['pairId']=_0x422575[_0x7d46b7]['id'];}else _0x422575[_0x1c5f97]['item']['startIndex']=_0x1c5f97,_0x422575[_0x1c5f97]['item']['endIndex']=_0x1c5f97,_0x422575[_0x1c5f97]['pairId']=null;}_0x422575[_0x1c5f97]['markersStart']||(_0x422575[_0x1c5f97]['markersStart']=[],_0x422575[_0x1c5f97]['markersEnd']=[]);}}['_markInsertions'](_0x18f8ea,_0x55cd6e){const _0x2b2005=_0x18f8ea['filter'](_0x3513c0=>!_0x3513c0['isAdded']);for(let _0x26a78e=0x0;_0x26a78e<_0x55cd6e['length'];_0x26a78e++)_0x55cd6e[_0x26a78e]['isAdded']&&(_0x2b2005[_0x26a78e]['isAdded']=_0x55cd6e[_0x26a78e]['isAdded']);}['_makeModelFromViewString'](_0x4e50b9){const _0x58f34e=JSON['parse'](_0x4e50b9),_0x5845cd=this['editor']['editing']['view']['document'],_0x287d88=new _0x1c7ac7(_0x5845cd,_0x58f34e['map'](_0x351490=>this['_getViewObj'](_0x351490)));return this['editor']['data']['toModel'](_0x287d88);}['_getViewObj'](_0x4ff84c){const _0x458bb5=this['editor']['editing']['view']['document'];if('string'==typeof _0x4ff84c)return new _0x4a50ef(_0x458bb5,_0x4ff84c);{const _0x206252=_0x4ff84c['children']['map'](_0x4ea2f6=>this['_getViewObj'](_0x4ea2f6));return new(Y[_0x4ff84c['type']]||_0x4fb45b)(_0x458bb5,_0x4ff84c['name'],_0x4ff84c['attributes'],_0x206252);}}['_getDiff'](_0x20926d,_0x1d4b11=null){const _0x332279=this['repository']['getRevision'](_0x20926d),_0xc35953=_0x1d4b11?this['repository']['getRevision'](_0x1d4b11):null,_0x56977b=this['_getRevisionsRange'](_0x332279,_0xc35953),_0x2fb16a=_0x56977b[_0x56977b['length']-0x1],_0x1b4955=new Map(),_0x38c3df={'model':{},'attributes':{},'changes':[]},_0x18800e=new Set(),_0x4389e8=new Map();for(let _0x1c06b9=_0x56977b['length']-0x1;_0x1c06b9>=0x0;_0x1c06b9--){const _0x2b1822=_0x56977b[_0x1c06b9];for(const _0x946ddf of Object['keys'](_0x2b1822['diffData']))if(_0x2b1822['diffData'][_0x946ddf]['attachChange']){const _0x17cd1c=_0x2b1822['diffData'][_0x946ddf]['attachChange'];_0x17cd1c['isAttached']?(_0x18800e['add'](_0x946ddf),_0x4389e8['has'](_0x946ddf)&&_0x4389e8['get'](_0x946ddf)['userId']==_0x17cd1c['userId']?_0x4389e8['delete'](_0x946ddf):_0x4389e8['set'](_0x946ddf,_0x17cd1c)):_0x4389e8['has'](_0x946ddf)?(_0x18800e['delete'](_0x946ddf),_0x4389e8['delete'](_0x946ddf)):(_0x18800e['add'](_0x946ddf),_0x4389e8['set'](_0x946ddf,_0x17cd1c));}else _0x18800e['add'](_0x946ddf);}for(const _0x35f2f3 of _0x18800e){const _0x18a7df=_0x4389e8['has'](_0x35f2f3)&&!_0x4389e8['get'](_0x35f2f3)['isAttached'];let _0x1381f7=_0x18a7df?_0x56977b['length']-0x1:0x0;const _0x117f56=_0x18a7df?-0x1:0x1;for(;_0x56977b[_0x1381f7];){const _0x151e79=_0x56977b[_0x1381f7];if(_0x151e79['diffData'][_0x35f2f3]){const _0x2889f6=_0x18a7df?_0x151e79['diffData'][_0x35f2f3]['attributesBefore']:_0x151e79['diffData'][_0x35f2f3]['attributesAfter'];_0x38c3df['attributes'][_0x35f2f3]=_0x2889f6?_0x24b58c(_0x2889f6):{};break;}_0x1381f7+=_0x117f56;}}for(const _0x2c8bc9 of _0x56977b){_0x2c8bc9['model']={};for(const _0xc7daa0 of _0x2c8bc9['authors'])_0x1b4955['set'](_0xc7daa0['id'],_0xc7daa0);for(const _0x392b7d of _0x18800e){const _0x1661c6=_0x2c8bc9['diffData'][_0x392b7d]?_0x2c8bc9['diffData'][_0x392b7d]['insertions']:'[]',_0x27fe94=_0x2c8bc9['diffData'][_0x392b7d]?_0x2c8bc9['diffData'][_0x392b7d]['deletions']:'[]';_0x2c8bc9['model'][_0x392b7d]={'insertions':this['_makeModelFromViewString'](_0x1661c6),'deletions':this['_makeModelFromViewString'](_0x27fe94)};}}for(const _0x32ed6b of _0x18800e){let _0x502509=null,_0x5123c7=0x0;const _0xbb63c9=new Map(Array['from'](_0x332279['model'][_0x32ed6b]['insertions']['markers'])['filter'](([_0xca7bd7])=>!_0xca7bd7['startsWith']('revision:')));let _0x31aa6d=0x0;for(const _0x30e87c of _0x56977b){const _0x4e8dfb=this['_makeTape'](_0x30e87c['model'][_0x32ed6b]['insertions']);_0x30e87c==_0x332279?(_0x502509=_0x4e8dfb,_0x5123c7=_0x502509['length'],_0x502509['forEach'](_0x30a028=>{_0x30a028['id']=_0x31aa6d++;}),this['_processTape'](_0x502509)):this['_markInsertions'](_0x502509,_0x4e8dfb);const _0x37b244=_0x502509['filter'](_0x370b12=>!_0x370b12['isAdded'])['map'](_0x3dd27e=>_0x3dd27e['id']);let _0x4d47eb=0x0;const _0x1d21a8=this['_makeTape'](_0x30e87c['model'][_0x32ed6b]['deletions']);_0x1d21a8['forEach'](_0x380fd5=>{_0x380fd5['isRemoved']?_0x380fd5['id']=_0x5123c7++:_0x380fd5['id']=_0x37b244[_0x4d47eb++];}),this['_processTape'](_0x1d21a8),this['_setDistance'](_0x502509,'isAdded'),this['_setDistance'](_0x1d21a8,'isRemoved'),_0x30e87c==_0x332279&&this['_markMarkers'](_0x502509,_0xbb63c9),_0x502509=this['_joinTapes'](_0x502509,_0x1d21a8),this['_refreshStartEndIndex'](_0x502509),this['_setDistance'](_0x502509,'isRemoved');}_0x502509=_0x502509['filter'](_0x589fc1=>!(_0x589fc1['isAdded']&&_0x589fc1['isRemoved']));const _0x4c06a8=new Map(_0x2fb16a['model'][_0x32ed6b]['deletions']['markers']),_0x1547a1=new Set(_0xbb63c9['keys']());for(const _0x407b7e of _0x4c06a8['keys']())_0x1547a1['delete'](_0x407b7e);this['_markSuggestions'](_0x502509,_0x1547a1),this['_fixObsoleteTags'](_0x502509),_0x502509=this['_removeMissingPairs'](_0x502509),_0x502509=this['_markMismatchedRemovedTags'](_0x502509),_0x502509=this['_removeUnsupportedChanges'](_0x502509);const {root:_0x560f3a,changes:_0x214dd8}=this['_makeModelFromTape'](_0x502509,_0x1b4955,_0x32ed6b);_0x38c3df['model'][_0x32ed6b]=_0x560f3a;const _0xa54eb9=_0x4389e8['get'](_0x32ed6b);if(_0xa54eb9){const _0x2f0ff9=_0x1b4955['get'](_0xa54eb9['userId']),_0x299532=new r({'author':_0x2f0ff9,'type':_0xa54eb9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x32ed6b});_0x214dd8['unshift'](_0x299532),_0x38c3df['attributes'][_0x32ed6b]['revisionHistoryAttachChange']=_0x299532['id'];}_0x38c3df['changes']=_0x38c3df['changes']['concat'](_0x214dd8);}return _0x38c3df;}['_markMarkers'](_0x40a950,_0x4fcf62){for(let _0x4c17ec=0x0;_0x4c17ec<_0x40a950['length'];_0x4c17ec++)for(const [_0x246d2b,_0x1223ed]of _0x4fcf62)_0x1223ed['start']['isEqual'](_0x40a950[_0x4c17ec]['previousPosition'])&&_0x40a950[_0x4c17ec]['markersStart']['push'](_0x246d2b),_0x1223ed['end']['isEqual'](_0x40a950[_0x4c17ec]['nextPosition'])&&_0x40a950[_0x4c17ec]['markersEnd']['push'](_0x246d2b);}['_joinTapes'](_0x40b70c,_0x44df68){let _0x31d7ea=[],_0x2aeb51=0x0,_0x28ce4a=0x0;for(;_0x2aeb51<_0x40b70c['length']||_0x28ce4a<_0x44df68['length'];){const _0x3464fe=_0x40b70c[_0x2aeb51]||{},_0x8c8865=_0x44df68[_0x28ce4a]||{};if(_0x3464fe['id']==_0x8c8865['id'])_0x2aeb51++,_0x28ce4a++,_0x31d7ea['push'](_0x3464fe);else{if(_0x8c8865['isRemoved']&&_0x3464fe['isAdded']){const {commonTape:_0x41aac5,iEnd:_0x2b777c,jEnd:_0x9a9155}=this['_threeWayMerge'](_0x40b70c,_0x2aeb51,_0x44df68,_0x28ce4a);_0x31d7ea=_0x31d7ea['concat'](_0x41aac5),_0x2aeb51=_0x2b777c,_0x28ce4a=_0x9a9155;}else _0x8c8865['isRemoved']?(_0x28ce4a++,_0x31d7ea['push'](_0x8c8865)):(_0x2aeb51++,_0x31d7ea['push'](_0x3464fe));}}return _0x31d7ea;}['_markSuggestions'](_0x500847,_0x299689){const _0x15921d=[];for(let _0x45e404=0x0;_0x45e404<_0x500847['length'];_0x45e404++){for(let _0x2c4d79=0x0;_0x2c4d79<_0x500847[_0x45e404]['markersStart']['length'];_0x2c4d79++){const _0xf8fac=_0x500847[_0x45e404]['markersStart'][_0x2c4d79];if(!_0x299689['has'](_0xf8fac))continue;const {group:_0x27abe4,type:_0x4fd6be,authorId:_0x1c6680}=_0x140f1d(_0xf8fac);'revision-suggestion'!=_0x27abe4||'insertion'!=_0x4fd6be&&'deletion'!=_0x4fd6be||(_0x15921d['unshift']({'type':_0x4fd6be,'name':_0xf8fac,'userId':_0x1c6680}),_0x500847[_0x45e404]['markersStart']['splice'](_0x2c4d79,0x1),_0x2c4d79--);}_0x2acbf1(_0x500847[_0x45e404]);for(let _0x34b317=0x0;_0x34b317<_0x500847[_0x45e404]['markersEnd']['length'];_0x34b317++){const _0x8d3716=_0x500847[_0x45e404]['markersEnd'][_0x34b317];if(!_0x299689['has'](_0x8d3716))continue;const {group:_0x1bb510,type:_0x55ac61}=_0x140f1d(_0x8d3716);if('revision-suggestion'!=_0x1bb510||'insertion'!=_0x55ac61&&'deletion'!=_0x55ac61)continue;_0x500847[_0x45e404]['markersEnd']['splice'](_0x34b317,0x1),_0x34b317--;const _0x1a027c=_0x15921d['findIndex'](_0x9b010e=>_0x9b010e['name']==_0x8d3716);_0x1a027c>-0x1&&_0x15921d['splice'](_0x1a027c,0x1);}}function _0x140f1d(_0x363f58){const _0x4bb47b=_0x363f58['split'](':');return{'group':_0x4bb47b[0x0],'type':_0x4bb47b[0x1],'subType':_0x4bb47b['length']>=0x5?_0x4bb47b[0x2]:null,'id':_0x4bb47b['length']<0x5?_0x4bb47b[0x2]:_0x4bb47b[0x3],'authorId':_0x4bb47b['length']<0x5?_0x4bb47b[0x3]:_0x4bb47b[0x4],'markerCount':0x6==_0x4bb47b['length']?_0x4bb47b[0x5]:null};}function _0x2acbf1(_0x4ae669){for(let _0x32a34c=0x0;_0x32a34c<_0x15921d['length'];_0x32a34c++){if(_0x4ae669['isAdded']&&'insertion'==_0x15921d[_0x32a34c]['type'])return _0x4ae669['isAddSuggestion']=_0x15921d[_0x32a34c],void delete _0x4ae669['isAdded'];if(!_0x4ae669['isAdded']&&!_0x4ae669['isRemoved']&&'deletion'==_0x15921d[_0x32a34c]['type'])return void(_0x4ae669['isRemoveSuggestion']=_0x15921d[_0x32a34c]);}}}['_setDistance'](_0x20ff4c,_0x585e59){let _0x4a2ac0=0x0,_0x18315f=!0x1;const _0x532ee4=new Map();for(const _0x2dd7d1 of _0x20ff4c)_0x2dd7d1[_0x585e59]?_0x18315f&&(_0x4a2ac0++,_0x18315f=!0x1):(_0x4a2ac0++,_0x18315f=!0x0),_0x532ee4['set'](_0x2dd7d1['id'],_0x4a2ac0);for(let _0x5ebe1d=0x0;_0x5ebe1d<_0x20ff4c['length'];_0x5ebe1d++){if('isRemoved'==_0x585e59&&_0x20ff4c[_0x5ebe1d]['isAdded']||'isAdded'==_0x585e59&&_0x20ff4c[_0x5ebe1d]['isRemoved'])continue;if('text'==_0x20ff4c[_0x5ebe1d]['type']){_0x20ff4c[_0x5ebe1d]['distance']=0x0;continue;}const _0x51ed97=_0x532ee4['get'](_0x20ff4c[_0x5ebe1d]['pairId']),_0x2bf35a=_0x532ee4['get'](_0x20ff4c[_0x5ebe1d]['id']);_0x20ff4c[_0x5ebe1d]['distance']=_0x51ed97-_0x2bf35a;}}['_getRevisionsRange'](_0x330e34,_0xbc57c4,_0x30a5f5=!0x1){const _0x37914d=[];let _0x287713=this['repository']['getIndex'](_0x330e34),_0x5f13c5=this['repository']['getIndex'](_0xbc57c4);for(-0x1==_0x5f13c5&&(_0x5f13c5=this['repository']['_revisions']['length'],_0x30a5f5=!0x1);_0x287713<_0x5f13c5;)_0x37914d['push'](this['repository']['getRevision'](_0x287713)),_0x287713++;return _0x30a5f5&&_0x37914d['push'](this['repository']['getRevision'](_0x287713)),_0x37914d;}['_threeWayMerge'](_0x3e82c4,_0x1994df,_0x5de276,_0x3f1d17){const _0x3f66f8=this['editor']['model']['schema'];let _0x17e14=_0x1994df;for(;_0x3e82c4[_0x17e14]&&_0x3e82c4[_0x17e14]['isAdded'];)_0x17e14++;let _0x180fcb=_0x3f1d17;for(;_0x5de276[_0x180fcb]&&_0x5de276[_0x180fcb]['isRemoved'];)_0x180fcb++;_0x4f5cfd(_0x3e82c4,_0x1994df,_0x17e14),_0x4f5cfd(_0x5de276,_0x3f1d17,_0x180fcb);const _0x3506bd=_0x5de276['slice'](_0x3f1d17,_0x180fcb)['concat'](_0x3e82c4['slice'](_0x1994df,_0x17e14));return _0x3506bd['sort']((_0xaa3fee,_0x56210c)=>_0xaa3fee['side']!=_0x56210c['side']?_0xaa3fee['side']-_0x56210c['side']:_0xaa3fee['level']!=_0x56210c['level']?_0xaa3fee['level']-_0x56210c['level']:_0xaa3fee['distance']!=_0x56210c['distance']?_0x56210c['distance']-_0xaa3fee['distance']:!!_0xaa3fee['isAdded']!=!!_0x56210c['isAdded']?-0x1==_0xaa3fee['side']||0x0==_0xaa3fee['side']?_0xaa3fee['isAdded']?-0x1:0x1:_0xaa3fee['isAdded']?0x1:-0x1:_0xaa3fee['index']-_0x56210c['index']),{'commonTape':_0x3506bd,'iEnd':_0x17e14,'jEnd':_0x180fcb};function _0x4f5cfd(_0x793845,_0x5ed45e,_0x388d29){let _0x362f67=-0x1,_0x675831=Number['POSITIVE_INFINITY'],_0x1a5fba=!0x0;for(let _0x510451=_0x5ed45e;_0x510451<_0x388d29;_0x510451++)if(_0x3f66f8['isInline'](_0x793845[_0x510451]['item'])||(_0x1a5fba=!0x1),_0x793845[_0x510451]['item']['startIndex']<_0x5ed45e&&(_0x362f67=_0x510451),_0x793845[_0x510451]['item']['endIndex']>=_0x388d29){_0x675831=_0x510451;break;}_0x1a5fba&&(_0x362f67=_0x388d29-0x1);for(let _0x436258=_0x5ed45e;_0x436258<_0x388d29;_0x436258++)_0x793845[_0x436258]['side']=_0x436258<=_0x362f67?-0x1:_0x436258<_0x675831?0x0:0x1,_0x793845[_0x436258]['index']=_0x436258;let _0x570cc2=0x0;for(let _0x288a23=_0x5ed45e;_0x288a23<=_0x362f67;_0x288a23++)0x0==_0x793845[_0x288a23]['distance']?_0x793845[_0x288a23]['level']=_0x570cc2:(_0x570cc2++,_0x793845[_0x288a23]['level']=_0x570cc2,_0x570cc2++);for(let _0x45621f=_0x5ed45e;_0x45621f<_0x388d29;_0x45621f++)0x0==_0x793845[_0x45621f]['side']&&(_0x793845[_0x45621f]['level']=_0x570cc2);_0x570cc2=0x0;for(let _0x3600e5=_0x388d29-0x1;_0x3600e5>=_0x675831;_0x3600e5--)0x0==_0x793845[_0x3600e5]['distance']?_0x793845[_0x3600e5]['level']=_0x570cc2:(_0x570cc2--,_0x793845[_0x3600e5]['level']=_0x570cc2,_0x570cc2--);}}['_fixObsoleteTags'](_0x52960f){const _0x38197f=new Map(),_0x58a65a=this['editor']['model']['schema'];for(let _0x4d41fb=0x1;_0x4d41fb<_0x52960f['length'];_0x4d41fb++){let _0x22d8c1,_0x5c9f06,_0x17ea8d;const _0x2d960d=_0x52960f[_0x4d41fb],_0x4ce197=_0x52960f[_0x4d41fb-0x1];if('text'==_0x2d960d['type'])continue;if(_0x2d960d['type']!=_0x4ce197['type'])continue;if(!_0x58a65a['isBlock'](_0x4ce197['item'])||_0x58a65a['isLimit'](_0x4ce197['item']))continue;if(!_0x58a65a['isBlock'](_0x2d960d['item'])||_0x58a65a['isLimit'](_0x2d960d['item']))continue;if((_0x52960f[_0x4d41fb]['isAdded']||_0x52960f[_0x4d41fb]['isAddSuggestion'])&&_0x52960f[_0x4d41fb-0x1]['isRemoved'])_0x22d8c1=_0x52960f[_0x4d41fb],_0x5c9f06=_0x52960f[_0x4d41fb-0x1],_0x17ea8d=_0x4d41fb-0x1;else{if(!_0x52960f[_0x4d41fb]['isRemoved']||!_0x52960f[_0x4d41fb-0x1]['isAdded']&&!_0x52960f[_0x4d41fb-0x1]['isAddSuggestion'])continue;_0x22d8c1=_0x52960f[_0x4d41fb-0x1],_0x5c9f06=_0x52960f[_0x4d41fb],_0x17ea8d=_0x4d41fb;}const _0x316783=_0x22d8c1['level']==_0x5c9f06['level'],_0x36cf60=Math['abs'](_0x22d8c1['level'])<Math['abs'](_0x5c9f06['level'])&&0x0==_0x5c9f06['distance'];(_0x316783||_0x36cf60)&&(_0x38197f['set'](_0x5c9f06['id'],_0x22d8c1['id']),_0x52960f['splice'](_0x17ea8d,0x1),_0x4d41fb--,_0x22d8c1['isAdded']=!0x1);}for(let _0x3de565=0x0;_0x3de565<_0x52960f['length'];_0x3de565++)_0x38197f['has'](_0x52960f[_0x3de565]['pairId'])&&(_0x52960f[_0x3de565]['pairId']=_0x38197f['get'](_0x52960f[_0x3de565]['pairId']));}['_removeMissingPairs'](_0x3a28b5){const _0x49fc2a=new Set(_0x3a28b5['map'](_0x2781ff=>_0x2781ff['id']));for(let _0x87b4a7=0x0;_0x87b4a7<_0x3a28b5['length'];_0x87b4a7++)_0x49fc2a['has'](_0x3a28b5[_0x87b4a7]['pairId'])||0x0==_0x3a28b5[_0x87b4a7]['distance']||(_0x3a28b5[_0x87b4a7]['isIncorrect']=!0x0);return _0x3a28b5['filter'](_0x366f0d=>!_0x366f0d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x46c0ed){const _0x5dd04a=new Set();for(let _0x89cd96=0x0;_0x89cd96<_0x46c0ed['length'];_0x89cd96++){if(_0x5dd04a['has'](_0x46c0ed[_0x89cd96]['id'])&&_0x46c0ed[_0x89cd96]['isRemoved']&&(_0x46c0ed[_0x89cd96]['isIncorrect']=!0x0),_0x46c0ed[_0x89cd96]['isIncorrect'])continue;if(0x0==_0x46c0ed[_0x89cd96]['distance'])continue;if('elementStart'!=_0x46c0ed[_0x89cd96]['type'])continue;if(null==_0x46c0ed[_0x89cd96]['pairId'])continue;let _0x59fd9c=_0x89cd96+0x1,_0x556780=0x0;for(;_0x46c0ed[_0x59fd9c]['id']!=_0x46c0ed[_0x89cd96]['pairId'];)'elementStart'==_0x46c0ed[_0x59fd9c]['type']?_0x556780++:'elementEnd'==_0x46c0ed[_0x59fd9c]['type']&&_0x556780--,_0x59fd9c++;if(0x0!=_0x556780){if(_0x46c0ed[_0x89cd96]['isRemoved'])_0x46c0ed[_0x89cd96]['isIncorrect']=!0x0;else{for(;_0x59fd9c!=_0x89cd96;)_0x46c0ed[_0x59fd9c]['isRemoved']&&0x0!=_0x46c0ed[_0x59fd9c]['distance']&&(_0x46c0ed[_0x59fd9c]['isIncorrect']=!0x0,_0x5dd04a['add'](_0x46c0ed[_0x59fd9c]['pairId'])),_0x59fd9c--;}}}return _0x46c0ed['filter'](_0x50be5b=>!_0x50be5b['isIncorrect']);}['_removeUnsupportedChanges'](_0x28d7f1){const _0xed52dd=this['editor']['model']['schema'];for(let _0x5648fd=0x0;_0x5648fd<_0x28d7f1['length'];_0x5648fd++){if(!(_0x28d7f1[_0x5648fd]['isAdded']||_0x28d7f1[_0x5648fd]['isAddSuggestion']||_0x28d7f1[_0x5648fd]['isRemoved']||_0x28d7f1[_0x5648fd]['isRemoveSuggestion']))continue;if(0x0==_0x28d7f1[_0x5648fd]['distance'])continue;const _0x3229f3=_0x28d7f1[_0x5648fd]['item'];_0xed52dd['isBlock'](_0x3229f3)||_0xed52dd['isLimit'](_0x3229f3)||(_0x28d7f1[_0x5648fd]['isAdded']&&delete _0x28d7f1[_0x5648fd]['isAdded'],_0x28d7f1[_0x5648fd]['isAddSuggestion']&&delete _0x28d7f1[_0x5648fd]['isAddSuggestion'],_0x28d7f1[_0x5648fd]['isRemoveSuggestion']&&delete _0x28d7f1[_0x5648fd]['isRemoveSuggestion'],_0x28d7f1[_0x5648fd]['isRemoved']&&(_0x28d7f1[_0x5648fd]['isIncorrect']=!0x0));}return _0x28d7f1['filter'](_0x406761=>!_0x406761['isIncorrect']);}['_makeModelFromTape'](_0x4cbe25,_0x800919,_0x22adb0){const _0x46781f=new gt(),_0x1d772e=[],_0x225417=new Map(),_0x24f2e5=this['editor']['model'],_0x436970=_0x24f2e5['schema'],_0x35674c=[_0x46781f],_0x1f3f43={},_0x962dfd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5eed29=null;const _0xc92de0=[0x0];for(let _0x5be2d3=0x0;_0x5be2d3<_0x4cbe25['length'];_0x5be2d3++)if('elementStart'===_0x4cbe25[_0x5be2d3]['type']){_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0);const _0x170672=new ut(_0x4cbe25[_0x5be2d3]['item']['name'],_0x4cbe25[_0x5be2d3]['item']['getAttributes']());_0x35674c[0x0]['_appendChild'](_0x170672),_0xc92de0['push'](0x0),_0x35674c['unshift'](_0x170672),_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0);}else'elementEnd'===_0x4cbe25[_0x5be2d3]['type']?(_0x35674c['shift'](),_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0),_0xc92de0['pop'](),_0xc92de0[_0xc92de0['length']-0x1]++,_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0)):(_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0),_0x5eed29?_0x5eed29['_data']+=_0x4cbe25[_0x5be2d3]['item']['data']:_0x5eed29=new wt(_0x4cbe25[_0x5be2d3]['item']['data'],_0x4cbe25[_0x5be2d3]['item']['getAttributes']()),_0x4cbe25[_0x5be2d3+0x1]&&'text'===_0x4cbe25[_0x5be2d3+0x1]['type']&&_0x4124e6(_0x5eed29,_0x4cbe25[_0x5be2d3+0x1]['item'])||(_0x35674c[0x0]['_appendChild'](_0x5eed29),_0x5eed29=null),_0xc92de0[_0xc92de0['length']-0x1]+=_0x4cbe25[_0x5be2d3]['item']['offsetSize'],_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0));for(let _0x3cc2f4=0x0;_0x3cc2f4<_0x4cbe25['length'];_0x3cc2f4++){const _0x17c63c=_0x4cbe25[_0x3cc2f4]['previousPosition'],_0x3331bf=_0x4cbe25[_0x3cc2f4]['nextPosition'];for(const _0x4b995c of _0x4cbe25[_0x3cc2f4]['markersStart'])_0x225417['set'](_0x4b995c,{'start':_0x17c63c,'end':null});_0x14c747('isRemoveSuggestion',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isAddSuggestion',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isRemoved',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isAdded',_0x3cc2f4,_0x17c63c,_0x3331bf);for(const _0x2f9006 of _0x4cbe25[_0x3cc2f4]['markersEnd']){_0x225417['get'](_0x2f9006)['end']=_0x3331bf;}}for(const [_0x239587,_0x43bd17]of _0x225417){const _0x4b01b2=this['editor']['model']['createRange'](_0x43bd17['start'],_0x43bd17['end']);_0x46781f['markers']['set'](_0x239587,_0x4b01b2);}return _0x1d772e['sort']((_0x4f6bb4,_0x213f91)=>{const _0xad3915=_0x46781f['markers']['get']('revision:'+_0x4f6bb4['id']),_0x53a1d9=_0x46781f['markers']['get']('revision:'+_0x213f91['id']);return _0xad3915['start']['isBefore'](_0x53a1d9['start'])?-0x1:_0xad3915['start']['isAfter'](_0x53a1d9['start'])?0x1:_0xad3915['end']['isBefore'](_0x53a1d9['end'])?-0x1:_0xad3915['end']['isAfter'](_0x53a1d9['end'])?0x1:'add'===_0x4f6bb4['type']?-0x1:0x1;}),{'root':_0x46781f,'changes':_0x1d772e};function _0x14c747(_0xf203ea,_0x2f6499,_0x4a74e8,_0x6f89e9){const _0x6def4=!!_0x4cbe25[_0x2f6499][_0xf203ea],_0x349fa7=_0x6def4?_0x4cbe25[_0x2f6499][_0xf203ea]['userId']:null,_0x4f63d1=_0x2f6499===_0x4cbe25['length']-0x1,_0x40de26=_0x962dfd[_0xf203ea][0x0],_0x2fd3f6=_0x436970['isObject'](_0x4cbe25[_0x2f6499]['item']);!_0x1f3f43[_0xf203ea]&&_0x6def4?_0x1f3f43[_0xf203ea]={'start':_0x4a74e8,'tapeItem':_0x4cbe25[_0x2f6499],'userId':_0x349fa7,'type':_0xf203ea}:_0x1f3f43[_0xf203ea]&&!_0x6def4?(_0x1f3f43[_0xf203ea]['end']=_0x4a74e8,_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]=null):_0x1f3f43[_0xf203ea]&&_0x6def4&&_0x1f3f43[_0xf203ea]['userId']!==_0x349fa7&&(_0x1f3f43[_0xf203ea]['end']=_0x4a74e8,_0x40de26&&_0x40de26['userId']===_0x1f3f43[_0xf203ea]['userId']||_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]={'start':_0x4a74e8,'tapeItem':_0x4cbe25[_0x2f6499],'userId':_0x349fa7,'type':_0xf203ea}),_0x1f3f43[_0xf203ea]&&_0x2fd3f6&&('elementStart'!==_0x4cbe25[_0x2f6499]['type']||_0x40de26&&_0x40de26['userId']===_0x349fa7||_0x962dfd[_0xf203ea]['unshift']({'userId':_0x349fa7,'object':_0x4cbe25[_0x2f6499]['item'],'change':_0x1f3f43[_0xf203ea]}),'elementEnd'===_0x4cbe25[_0x2f6499]['type']&&_0x40de26&&_0x40de26['object']===_0x4cbe25[_0x2f6499]['item']&&(_0x962dfd[_0xf203ea]['shift'](),_0x1f3f43[_0xf203ea]=_0x40de26['change'])),_0x1f3f43[_0xf203ea]&&_0x4f63d1&&(_0x1f3f43[_0xf203ea]['end']=_0x6f89e9,_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]=null);}function _0x3804d8({start:_0x51d081,end:_0x48849f,tapeItem:_0x57fab8,userId:_0x328a4c,type:_0x12afdf}){const _0x26125e=_0x57fab8['item'],_0x4d70d0=_0x24f2e5['schema']['isBlock'](_0x26125e)&&!_0x24f2e5['schema']['isLimit'](_0x26125e),_0x266b4e=_0x51d081['nodeAfter']==_0x48849f['parent']&&_0x48849f['isAtStart'];if(_0x4d70d0&&_0x266b4e)return;const _0x1da226=_0x24f2e5['createRange'](_0x51d081,_0x48849f),_0x17ff47=_0x800919['get'](_0x328a4c),_0x61ca4f=new r({'author':_0x17ff47,'type':'isAdded'==_0x12afdf||'isAddSuggestion'==_0x12afdf?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12afdf||'isRemoveSuggestion'==_0x12afdf},'createdAt':new Date(),'rootName':_0x22adb0});_0x1d772e['push'](_0x61ca4f),_0x46781f['markers']['set']('revision:'+_0x61ca4f['id'],_0x1da226);}function _0x4124e6(_0x24f7dd,_0x1c8cf1){const _0xa39ba0=_0x24f7dd['getAttributes'](),_0x58bf4c=_0x1c8cf1['getAttributes']();for(const _0x4707c3 of _0xa39ba0){if(_0x4707c3[0x1]!==_0x1c8cf1['getAttribute'](_0x4707c3[0x0]))return!0x1;_0x58bf4c['next']();}return _0x58bf4c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x13e7a6=>{const _0x599695=_0x13e7a6['markerName']['split'](':')[0x1],_0x4326f4=this['_getChangeFromId'](_0x599695);if(!_0x4326f4)return null;const _0x4e49a4='add'==_0x4326f4['type']?'insertion':'deletion',_0x32259e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e49a4];return _0x4326f4['data']['isSuggestion']&&_0x32259e['push']('ck-suggestion-marker-'+_0x4e49a4+'-new'),this['activeChange']==_0x4326f4&&_0x32259e['push']('ck-suggestion-marker--active'),{'classes':_0x32259e,'attributes':{'data-change-id':_0x599695}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1d449e=>{_0x1d449e['on']('element:pre',(_0x1d2329,_0x5a4795,_0x2c2c8c)=>{const _0x345d62=_0x5a4795['viewItem']['getChild'](0x0);if(!_0x345d62||!_0x345d62['is']('element','code'))return;if(!_0x2c2c8c['consumable']['consume'](_0x345d62,{'attributes':['vid_start','vid_end']}))return;const _0x2636ff=_0x5a4795['modelRange']['start']['nodeAfter'];_0x2c2c8c['writer']['setAttribute']('vid_start',_0x345d62['getAttribute']('vid_start'),_0x2636ff),_0x2c2c8c['writer']['setAttribute']('vid_end',_0x345d62['getAttribute']('vid_end'),_0x2636ff);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41b5a2=>{_0x41b5a2['on']('element',(_0x34aef4,_0x3ec4f3,_0x133177)=>{if(!_0x133177['consumable']['consume'](_0x3ec4f3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ec4f3['modelRange']['isCollapsed'])return;const _0x5968d7=_0x3ec4f3['modelRange']['start']['nodeAfter'];_0x5968d7['hasAttribute']('vid_start')||_0x5968d7['hasAttribute']('vid')||(_0x133177['writer']['setAttribute']('vid_start',_0x3ec4f3['viewItem']['getAttribute']('vid_start'),_0x5968d7),_0x133177['writer']['setAttribute']('vid_end',_0x3ec4f3['viewItem']['getAttribute']('vid_end'),_0x5968d7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a1d0e=>_0x1a1d0e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40b660,[,_0x522211])=>{['vid_start','vid_end','vid']['includes'](_0x522211)&&(_0x40b660['return']=!0x0,_0x40b660['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x129c58=>{_0x129c58['on']('attribute:vid',(_0x5d7d93,_0x2796a1,_0x4377f3)=>{if('\x20'!=_0x2796a1['item']['data']||_0x2796a1['item']['parent']['maxOffset']>0x1)return;if(!_0x4377f3['consumable']['consume'](_0x2796a1['item'],_0x5d7d93['name']))return;const _0x2c3f05=_0x4377f3['writer'],_0x2ef8ac=_0x4377f3['mapper']['toViewRange'](_0x2796a1['range']);_0x2c3f05['wrap'](_0x2ef8ac,_0x2c3f05['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x28edd5){const _0x5d997a=_0x28edd5['plugins']['get']('RevisionViewer');return(_0xa17e5b,_0x4173b0,_0x4a97d8)=>{const _0x5292d6=_0x4173b0['markerName']['split'](':')[0x1],_0x1067de=_0x5d997a['_getChangeFromId'](_0x5292d6);if(!_0x1067de)return null;const _0xcc1be7='add'==_0x1067de['type']?'split':'merge';if(!_0x4a97d8['consumable']['test'](_0x4173b0['markerRange'],_0xa17e5b['name']))return;const _0x18cc34=_0x4173b0['markerRange']['getWalker'](),_0x8cfe02=_0x4173b0['markerRange']['start'],_0x455bf9=_0x28edd5['model']['schema'];let _0xc011c7=null,_0x48527a=null,_0x423265=!0x1,_0x3cd8c3=!0x1;for(const _0x543589 of _0x18cc34){const _0x147cc8=_0x543589['item'];_0x423265=_0x423265||_0x455bf9['isContent'](_0x147cc8);const _0x437d67=_0x4a97d8['mapper']['toViewElement'](_0x147cc8);if(_0x437d67&&_0x437d67['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x543589['type']&&(_0x455bf9['isBlock'](_0x147cc8)&&!_0x455bf9['isLimit'](_0x147cc8)&&(_0x147cc8['nextSibling']||_0x8cfe02['isAtEnd']?_0xc011c7&&_0xc011c7['parent']==_0x147cc8||(_0xc011c7=_0x147cc8,_0x4119b6(_0x543589['previousPosition']),_0x3cd8c3=!0x0):_0x48527a=_0x48527a||_0x543589['previousPosition']));}function _0x4119b6(_0x1c94e7){const _0x3d9086=_0x4a97d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcc1be7}),_0x1997b7=_0x4a97d8['mapper']['toViewPosition'](_0x1c94e7);_0x1067de['data']['isSuggestion']&&_0x4a97d8['writer']['addClass']('ck-suggestion-marker-'+_0xcc1be7+'-new',_0x3d9086),_0x5d997a['activeChange']==_0x1067de&&_0x4a97d8['writer']['addClass']('ck-suggestion-marker--active',_0x3d9086),_0x4a97d8['writer']['insert'](_0x1997b7,_0x3d9086),_0x4a97d8['mapper']['bindElementToMarker'](_0x3d9086,_0x4173b0['markerName']);}_0x423265||_0x3cd8c3||!_0x48527a||_0x4119b6(_0x48527a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2c9a87,_0x323865,_0x29359f)=>{const _0x283cb1=_0x29359f['mapper']['markerNameToElements'](_0x323865['markerName']);if(_0x283cb1){for(const _0x46fb99 of _0x283cb1)(_0x46fb99['hasClass']('ck-suggestion-marker-split')||_0x46fb99['hasClass']('ck-suggestion-marker-merge'))&&(_0x29359f['mapper']['unbindElementFromMarkerName'](_0x46fb99,_0x323865['markerName']),_0x29359f['writer']['remove'](_0x46fb99));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3af290,_0x351367,_0xd99224)=>{const _0xb2765a=_0x351367['markerName']['split'](':')[0x1],_0x2e485d=this['_getChangeFromId'](_0xb2765a);if(!_0x2e485d)return null;const _0x11bcc4='add'==_0x2e485d['type']?'split':'merge';if(_0xd99224['consumable']['test'](_0x351367['markerRange'],_0x3af290['name']))for(const _0x2429a0 of _0x351367['markerRange']['getItems']()){if(!_0x2429a0['is']('element','softBreak'))continue;const _0x29f801=_0xd99224['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11bcc4}),_0x214c8e=_0xd99224['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2429a0));_0x2e485d['data']['isSuggestion']&&_0xd99224['writer']['addClass']('ck-suggestion-marker-'+_0x11bcc4+'-new',_0x29f801),this['activeChange']==_0x2e485d&&_0xd99224['writer']['addClass']('ck-suggestion-marker--active',_0x29f801),_0xd99224['writer']['insert'](_0x214c8e,_0x29f801),_0xd99224['mapper']['bindElementToMarker'](_0x29f801,_0x351367['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x251691=>{for(const _0x3a8ab9 of this['editor']['model']['document']['getRootNames']()){const _0x5a9e1d=this['editor']['model']['document']['getRoot'](_0x3a8ab9),_0x5991a7=this['editor']['editing']['view']['document']['getRoot'](_0x3a8ab9);if(_0x5991a7){const _0x59b30a=_0x5a9e1d['getAttribute']('revisionHistoryAttachChange');if(_0x251691['removeAttribute']('data-change-id',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root-add',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root-remove',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root--active',_0x5991a7),_0x59b30a){const _0x2c214a=this['_getChangeFromId'](_0x59b30a);if(!_0x2c214a)return null;_0x251691['setAttribute']('data-change-id',_0x59b30a,_0x5991a7),_0x251691['addClass']('ck-revision-history-root-'+_0x2c214a['type'],_0x5991a7),this['activeChange']==_0x2c214a&&_0x251691['addClass']('ck-revision-history-root--active',_0x5991a7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc4248=>'revision-comment:'+_0xc4248,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x904908=>'revision-suggestion:'+_0x904908,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x9dc647=>({'name':'suggestion:'+_0x9dc647,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xcc2ddf=>{const _0x52a7e2=_0xcc2ddf['markerName']['split'](':')[0x1];return'insertion'!=_0x52a7e2&&'deletion'!=_0x52a7e2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x52a7e2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xf7df67,_0x9ec0e,_0x5806e4)=>{const _0x24231d=_0x5806e4['mapper']['markerNameToElements'](_0x9ec0e['markerName']);if(_0x24231d){for(const _0x226420 of _0x24231d)_0x226420['is']('uiElement')&&(_0x5806e4['mapper']['unbindElementFromMarkerName'](_0x226420,_0x9ec0e['markerName']),_0x5806e4['writer']['remove'](_0x226420));}},{'priority':'high'});}['_getChangeFromId'](_0x3c254c){return this['_changeIdToChange']['get'](_0x3c254c);}['_getViewForChange'](_0x2ed854){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2ed854),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x208027,_0x56ce22,_0x16f488,_0x58adf2)=>{_0x58adf2&&this['_balloon']['remove'](_0x58adf2),_0x16f488&&(this['_balloon']['add']({'view':_0x16f488,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xa20f59=this['editor']['editing'],_0x9b62d7=this['_getChangeFromId'](_0x16f488['changeId']);let _0x458dda;if(_0x9b62d7['data']['isOnRoot']){const _0x465de7=_0xa20f59['view']['getDomRoot'](_0x9b62d7['rootName']);_0x458dda=Array['from'](_0x465de7['getClientRects']());}else{const _0x1f6845=this['editor']['model']['markers']['get']('revision:'+_0x16f488['changeId']);_0x458dda=Array['from'](_0xa20f59['mapper']['markerNameToElements'](_0x1f6845['name']))['map'](_0x5f2090=>_0xa20f59['view']['domConverter']['mapViewToDom'](_0x5f2090))['map'](_0x4e9aef=>Array['from'](_0x4e9aef['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x458dda[0x0];return _0x458dda['find'](_0x3fe77a=>_0x3fe77a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3fe77a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3fe77a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3fe77a['right']+0x3>=this['_activeViewTarget']['x'])||_0x458dda[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x55a78c,_0x528826,_0x786f22,_0x2e1c00)=>{this['activeView']=_0x786f22?this['_getViewForChange'](_0x786f22):null,this['editor']['model']['change'](()=>{const _0x683b79=this['editor']['editing'];_0x2e1c00&&(_0x2e1c00['data']['isOnRoot']?_0x683b79['view']['change'](_0x4d7cd7=>{_0x4d7cd7['removeClass']('ck-revision-history-root--active',_0x683b79['view']['document']['getRoot'](_0x2e1c00['rootName']));}):_0x683b79['reconvertMarker']('revision:'+_0x2e1c00['id'])),_0x786f22&&(_0x786f22['data']['isOnRoot']?_0x683b79['view']['change'](_0x1f66e7=>{_0x1f66e7['addClass']('ck-revision-history-root--active',_0x683b79['view']['document']['getRoot'](_0x786f22['rootName']));}):_0x683b79['reconvertMarker']('revision:'+_0x786f22['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3225c2,_0x7d2698)=>{if(this['activeChange'])return;const _0x5b9511=this['_findChangeIdFromDomTarget'](_0x7d2698['target']),_0x16e1c1=this['_changeIdToChange']['get'](_0x5b9511);_0x16e1c1?(this['_activeViewTarget']={'x':_0x7d2698['domEvent']['x'],'y':_0x7d2698['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x16e1c1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x102e8b,_0x87e911)=>{const _0x2e8338=this['_findChangeIdFromDomTarget'](_0x87e911['target']),_0xc9a3ae=this['_changeIdToChange']['get'](_0x2e8338);_0xc9a3ae?(this['_activeViewTarget']={'x':_0x87e911['domEvent']['x'],'y':_0x87e911['domEvent']['y']},_0xc9a3ae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xc9a3ae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5dc0bb){do{const _0x2e2e0b=_0x5dc0bb['getAttribute']('data-change-id');if(_0x2e2e0b)return _0x2e2e0b;_0x5dc0bb=_0x5dc0bb['parent'];}while(_0x5dc0bb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x37db50=>{for(const _0xb13f81 of this['editor']['model']['markers'])_0x37db50['removeMarker'](_0xb13f81);});}}function Z(_0x243502,_0x5792ee){return(_0x52da8a,_0x27ad29,_0x5e7af8)=>{if(!_0x5e7af8['consumable']['test'](_0x27ad29['markerRange'],_0x52da8a['name']))return;const _0x38341c=_0x27ad29['markerRange']['getWalker'](),_0x9e8d6=_0x27ad29['markerRange']['start'],_0x136899=_0x243502['model']['schema'];let _0x49ce7d=null,_0x9cd922=null,_0x40f083=!0x1,_0x42c921=!0x1;for(const _0x19d67b of _0x38341c){const _0x1d0c2b=_0x19d67b['item'];_0x40f083=_0x40f083||_0x136899['isContent'](_0x1d0c2b);const _0x56c19e=_0x5e7af8['mapper']['toViewElement'](_0x1d0c2b);if(_0x56c19e&&_0x56c19e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19d67b['type']&&(_0x136899['isBlock'](_0x1d0c2b)&&!_0x136899['isLimit'](_0x1d0c2b)&&(_0x1d0c2b['nextSibling']||_0x9e8d6['isAtEnd']?_0x49ce7d&&_0x49ce7d['parent']==_0x1d0c2b||(_0x49ce7d=_0x1d0c2b,_0xb4bdf(_0x19d67b['previousPosition']),_0x42c921=!0x0):_0x9cd922=_0x9cd922||_0x19d67b['previousPosition']));}function _0xb4bdf(_0x4ae5a2){const _0x1eab63=_0x5e7af8['mapper']['toViewPosition'](_0x4ae5a2),_0x41355a=_0x5e7af8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5792ee});_0x5e7af8['writer']['insert'](_0x1eab63,_0x41355a),_0x5e7af8['mapper']['bindElementToMarker'](_0x41355a,_0x27ad29['markerName']);}_0x40f083||_0x42c921||!_0x9cd922||_0xb4bdf(_0x9cd922);};}class _t extends _0x1bc561{constructor(_0x382e80){super(_0x382e80);const _0x570739=_0x382e80['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x570739,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x570739,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x14f5a1=this['editor'],_0x4c8204=_0x14f5a1['plugins']['get'](d),_0x14438b=_0x4c8204['isReady']?_0x4c8204['diff']['newRevisionId']:null;_0x14f5a1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x14438b);}['refresh'](){const {isReady:_0x9b4263,isEnabled:_0x3db13d,repository:_0x436c1c,diff:_0x45ba50}=this['editor']['plugins']['get'](d),_0x16a045=_0x45ba50&&_0x436c1c['getLaterVisibleRevision'](_0x45ba50['newRevisionId']);this['isEnabled']=_0x9b4263&&_0x3db13d&&Boolean(_0x16a045);}}class yt extends _0x1bc561{['_step'];constructor(_0x42d12f,{direction:_0x4ff2d6}){super(_0x42d12f);const _0x194bb1=_0x42d12f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4ff2d6?0x1:-0x1,this['listenTo'](_0x194bb1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x194bb1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x194bb1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5d4a36=this['editor'],_0x494e6b=_0x5d4a36['plugins']['get'](d),{isNavigationMode:_0x458a9e,currentChangeNumber:_0x5274c5}=_0x494e6b;let _0x4e6150;if(_0x494e6b['activeChange']=_0x458a9e?_0x494e6b['diff']['changes']['get'](_0x5274c5+this['_step']):_0x494e6b['diff']['changes']['first'],_0x494e6b['activeChange']['data']['isOnRoot'])_0x4e6150=_0x5d4a36['editing']['view']['getDomRoot'](_0x494e6b['activeChange']['rootName']);else{const _0x1b07df=_0x5d4a36['model']['markers']['get']('revision:'+_0x494e6b['activeChange']['id']);_0x4e6150=_0x665250(_0x5d4a36['editing'],_0x1b07df);}_0x53c173({'target':_0x4e6150,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x20971e,currentChangeNumber:_0x572f9b,numberOfChanges:_0x192e7d,isReady:_0x43b6aa,isEnabled:_0x2cb1cc}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2cb1cc&&_0x43b6aa&&_0x192e7d)&&(!_0x20971e||(0x1===this['_step']?_0x572f9b<_0x192e7d-0x1:_0x572f9b>0x0));}}class _i extends _0x423d80{constructor(_0x3047c2){super(_0x3047c2);const _0x180fb1=this['bindTemplate'],_0x165720=new _0x4f8d34(_0x3047c2),_0x4c3a6c=new _0x4f8d34(_0x3047c2);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x4e942e,_0x13445e)=>_0x4e942e&&_0x13445e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x321362,_0x267c5b,_0x2fedb2,_0x50d8fb)=>{if(!_0x321362)return m(_0x3047c2,'Loading...');if(!_0x2fedb2)return m(_0x3047c2,'No\x20changes');const _0x346174=m(_0x3047c2,'NUMBER_OF_CHANGES',_0x2fedb2);return _0x50d8fb?m(_0x3047c2,'X_OF_Y_CHANGES',[_0x267c5b+0x1,_0x2fedb2]):_0x346174;}),_0x165720['set']({'label':m(_0x3047c2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4e8941}),_0x4c3a6c['set']({'label':m(_0x3047c2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x243940}),_0x165720['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4c3a6c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x165720['on']('execute',()=>this['fire']('execute','backward')),_0x4c3a6c['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x180fb1['if']('_isStatusLabelVisible','ck-hidden',_0x13205c=>!_0x13205c)]},'children':[{'text':_0x180fb1['to']('isNavigationMode',_0x13ec88=>_0x13ec88?m(_0x3047c2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3047c2,'Total')+':\x20')}]},{'text':_0x180fb1['to']('_statusText')}]},new _0x1edbaa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x165720,_0x4c3a6c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x41e048{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x21b10f=this['editor']['editing']['view'];_0x21b10f['change'](_0x2e785b=>{for(const _0x2261d8 of _0x21b10f['document']['roots'])_0x2e785b['addClass'](ce,_0x2261d8);});}['hide'](){const _0x1f8bb1=this['editor']['editing']['view'];_0x1f8bb1['change'](_0x16f85b=>{for(const _0x40368e of _0x1f8bb1['document']['roots'])_0x16f85b['removeClass'](ce,_0x40368e);});}}class w extends _0x41e048{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x599f86=this['editor'],_0x3cf255=_0x599f86['plugins']['get'](d),_0x538e4e=_0x599f86['plugins']['get'](le);_0x599f86['ui']['componentFactory']['add']('exitToEditing',_0x2e2bad=>{const _0x58fc25=new _0x4f8d34(_0x2e2bad);return _0x58fc25['set']({'label':m(_0x2e2bad,'Back\x20to\x20editing'),'icon':_0x51d06c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x58fc25,'execute',()=>{_0x599f86['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x58fc25;}),_0x599f86['ui']['componentFactory']['add']('restoreRevision',_0x5df9d9=>{const _0x6eb0e1=new _0x4f8d34(_0x5df9d9);return _0x6eb0e1['set']({'label':m(_0x5df9d9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x6eb0e1['bind']('isEnabled')['to'](_0x599f86['commands']['get']('restoreRevision')),this['listenTo'](_0x6eb0e1,'execute',()=>_0x599f86['execute']('restoreRevision')),_0x6eb0e1;}),_0x599f86['ui']['componentFactory']['add']('changesNavigation',_0x1b9889=>{const _0x51bb0e=new _i(_0x1b9889),_0xe54015=_0x599f86['commands']['get']('showPreviousChange'),_0x1ffc70=_0x599f86['commands']['get']('showNextChange');return _0x51bb0e['bind']('isBackwardNavigationEnabled')['to'](_0xe54015,'isEnabled'),_0x51bb0e['bind']('isForwardNavigationEnabled')['to'](_0x1ffc70,'isEnabled'),_0x51bb0e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3cf255),this['listenTo'](_0x51bb0e,'execute',(_0x3d9500,_0x30e1c8)=>{_0x599f86['execute']('forward'===_0x30e1c8?'showNextChange':'showPreviousChange');}),_0x51bb0e;}),_0x538e4e['show'](),_0x3cf255['on']('change:isReady',(_0x1219fe,_0x23a109,_0x3730e4)=>{_0x3730e4?_0x538e4e['hide']():_0x538e4e['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x70f427,_0x3f2cc2){super(_0x70f427,_0x3f2cc2);const _0x549e64=this['bindTemplate'];this['set']({'label':m(_0x70f427,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x70f427,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x549e64['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5b10d6=this['fieldView']['element'];this['_tooltipString']=_0x5b10d6['scrollWidth']>_0x5b10d6['clientWidth']&&_0x5b10d6['value']||'';}}class oi extends _0x423d80{constructor(_0x179420,_0x326407,_0x293f85){super(_0x179420);const _0x31f828=new _0x261fed();_0x31f828['set']({'content':_0x2ab0e8,'viewBox':'0\x200\x2011\x2010'});const _0x4642aa=['ck','ck-revision-history-sidebar__revision-author'];_0x293f85&&_0x4642aa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x587e9d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x179420,_0x293f85?'Revision\x20creator':'Revision\x20author')},'children':[_0x31f828,_0x326407['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4642aa},'children':_0x587e9d});}}function ni(_0x3fd00f,_0x38f148){const _0x2e0d61=_0x3fd00f['bindTemplate'],_0x36fb86=_0x3fd00f['locale'],_0x491875=_0x4b0e6a(_0x36fb86);_0x491875['panelPosition']='sw';const _0x3c2abd=function(_0x4c3286,_0x4891f8){const _0x2b0b12=function(_0x5686fb,_0x185aae){const _0x55950e=_0x5686fb['locale'],_0x28aa0a={'Compare\x20against\x20selected':m(_0x55950e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x55950e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x55950e,'Restore\x20this\x20revision')};return _0x185aae['map'](_0x347b0c=>{const _0x193127=_0x28aa0a[_0x347b0c['name']];return _0x193127&&_0x193127!==_0x347b0c['name']&&(_0x347b0c['name']=_0x193127),_0x347b0c;});}(_0x4c3286,_0x4891f8),_0x1a3748=new _0x2c3527();for(const _0x3223d4 of _0x2b0b12){const _0x2cc03a={'type':'button','model':new to({'label':_0x3223d4['name'],'class':_0x3223d4['class'],'withText':!0x0,'role':'menuitem','_action':_0x3223d4['action']})};_0x2cc03a['model']['bind']('isEnabled')['to'](_0x4c3286,'isActionsDropdownOpen',_0x5157f3=>'function'!=typeof _0x3223d4['isEnabled']||(!_0x5157f3||_0x3223d4['isEnabled'](_0x4c3286))),_0x1a3748['add'](_0x2cc03a);}return _0x1a3748;}(_0x3fd00f,_0x38f148);return _0x3fd00f['bind']('isActionsDropdownOpen')['to'](_0x491875,'isOpen'),_0x491875['buttonView']['set']({'label':m(_0x36fb86,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4c20c0}),_0x491875['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e0d61['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e0d61['to'](_0x1a78e1=>_0x1a78e1['stopPropagation']())}}),_0x491875['on']('execute',_0x42bfe5=>{_0x3fd00f['isReady']&&'function'==typeof _0x42bfe5['source']['_action']&&_0x42bfe5['source']['_action'](_0x3fd00f);}),_0x2cf456(_0x491875,_0x3c2abd,{'role':'menu'}),_0x491875['listenTo'](_0x3fd00f,'change:isActionsDropdownOpen',(_0x50f76f,_0x8e44be,_0x28f2f7)=>{if(_0x28f2f7)for(const _0x546835 of _0x491875['listView']['items']){const _0x556fb3=_0x546835['children']['first'],_0x1f7311=_0x38f148['find'](_0x1afd59=>_0x1afd59['action']===_0x556fb3['_action'])['isVisible'];_0x546835['isVisible']=void 0x0===_0x1f7311||_0x1f7311(_0x3fd00f);}}),_0x491875;}class ai extends/* #__PURE__ -- @preserve */
26
- _0xdffbcd(_0x423d80){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x6205e6,_0x49929d,_0x20191d,_0x36581f){super(_0x6205e6);const _0x5d4ae8=this['bindTemplate'],_0x1ed976=function(_0x237f68,_0x33ffa2){const _0x23d558=Array['from'](_0x33ffa2['authors'])['filter'](_0x49f0e4=>_0x49f0e4!=_0x33ffa2['creator']);return _0x33ffa2['creator']&&_0x23d558['unshift'](_0x33ffa2['creator']),_0x23d558['map'](_0xbcaa03=>new oi(_0x237f68,_0xbcaa03,_0xbcaa03==_0x33ffa2['creator']));}(_0x6205e6,_0x49929d);this['id']=_0x49929d['id'],this['_revision']=_0x49929d,this['_requireRevisionName']=_0x36581f,this['bind']('name','createdAt')['to'](_0x49929d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x185ad8=>{return _0x148ac7=_0x6205e6['uiLanguage'],(_0x166a1d=_0x185ad8)['toLocaleDateString'](_0x148ac7,{'month':'long','day':'numeric'})+',\x20'+_0x166a1d['toLocaleTimeString'](_0x148ac7,{'hour':'numeric','minute':'numeric'});var _0x148ac7,_0x166a1d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x6205e6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4cd3af=>_0x4cd3af||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x282d9f,_0x2b99de)=>_0x282d9f&&_0x2b99de),this['revisionActionsView']=_0x20191d&&_0x20191d['length']?ni(this,_0x20191d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d4ae8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d4ae8['if']('isEnabled','ck-disabled',_0xfd3f5e=>!_0xfd3f5e),_0x5d4ae8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d4ae8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d4ae8['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5d4ae8['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x1ed976}]},this['revisionActionsView']],'on':{'click':_0x5d4ae8['to'](_0x1c3f42=>{_0x1c3f42['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x263967=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x263967,'change',()=>{this['_requireRevisionName']&&!_0x263967['value']||this['fire']('setName',{'id':this['id'],'name':_0x263967['value']}),_0x263967['value']||(_0x263967['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x109962,_0x90ea97){const _0x239b64=_0x3a0f57['fromJSDate'](_0x109962)['setLocale'](_0x90ea97),_0x4c9369=_0x3a0f57['local'](),_0x98215d=_0x4c9369['minus']({'days':0x1})['startOf']('day');let _0x3bc289,_0x22faca;return _0x239b64['hasSame'](_0x4c9369,'day')?(_0x3bc289=_0x239b64['startOf']('day')['toJSDate'](),_0x22faca=_0x239b64['toRelativeCalendar']()):_0x239b64['hasSame'](_0x98215d,'day')?(_0x3bc289=_0x98215d['toJSDate'](),_0x22faca=_0x239b64['toRelativeCalendar']()):_0x239b64['hasSame'](_0x4c9369,'week')?(_0x3bc289=_0x239b64['startOf']('week')['toJSDate'](),_0x22faca=_0x239b64['weekdayLong']||''):_0x239b64['hasSame'](_0x4c9369,'year')?(_0x3bc289=_0x239b64['startOf']('month')['toJSDate'](),_0x22faca=_0x239b64['monthLong']||''):(_0x3bc289=_0x239b64['startOf']('year')['toJSDate'](),_0x22faca=String(_0x239b64['year'])),{'startDate':_0x3bc289,'localizedPeriodName':_0x22faca};}class mi extends _0x423d80{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e3a3a,_0x155be6,_0x3431e0,_0xa958b5){super(_0x5e3a3a);const _0x7384e0=vi(_0x155be6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x155be6,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3431e0,this['_requireRevisionName']=_0xa958b5,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x7384e0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x328654){const _0x392295=new ai(this['locale'],_0x328654,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x392295);}['removeRevision'](_0x18f8dd){const _0x4b5f73=this['revisionViews']['find'](_0x404d22=>_0x404d22['id']===_0x18f8dd['id']);this['revisionViews']['remove'](_0x4b5f73);}}class as extends _0x423d80{constructor(_0x5c6a44){super(_0x5c6a44);const _0x3ba063=new _0x261fed();_0x3ba063['content']=_0x24e1d6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3ba063,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5c6a44,'Revision\x20history')]}]});}}class di extends _0x423d80{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x52b8a6,_0x74b05e,_0x23d38b,_0x9f6e59){super(_0x52b8a6);const _0x17aba1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x74b05e,this['_revisionActions']=_0x23d38b,this['_requireRevisionName']=_0x9f6e59,this['on']('select',(_0x4f2d2f,_0x5a7cf1)=>{this['fire']('revisionSelected',_0x5a7cf1);}),this['on']('setName',(_0x58908a,_0x1dc9d1)=>{this['fire']('revisionSetName',_0x1dc9d1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x52b8a6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x17aba1['if']('isEnabled','ck-disabled',_0x58685a=>!_0x58685a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4d2007 of this['_revisions'])this['_addRevision'](_0x4d2007);this['_revisions']['on']('add',(_0x301acc,_0x27f477)=>{this['_addRevision'](_0x27f477);}),this['_revisions']['on']('remove',(_0x5b1c01,_0x3f599c)=>{this['_removeRevision'](_0x3f599c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3e36cb=>_0x3e36cb['revisionViews']['map'](_0x3690aa=>_0x3690aa))['flat']();}['selectRevision'](_0x3d2484){for(const _0x4cabfc of this['revisionViews'])_0x3d2484&&_0x3d2484['id']===_0x4cabfc['id']?_0x4cabfc['select']():_0x4cabfc['deselect']();}['highlightRevisions'](_0x329d54){for(const _0x3270b7 of this['revisionViews'])_0x329d54['some'](({id:_0x22b1b9})=>_0x22b1b9===_0x3270b7['id'])?_0x3270b7['highlight']():_0x3270b7['unhighlight']();}['_addRevision'](_0x2dc074){const _0x27d029=vi(_0x2dc074['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36acbf=this['timePeriodViews']['get'](0x0);_0x36acbf&&_0x36acbf['startDate']['getTime']()===_0x27d029['getTime']()||(_0x36acbf=new mi(this['locale'],_0x27d029,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36acbf)),_0x36acbf['addRevision'](_0x2dc074);}['_removeRevision'](_0x59d952){const _0x401622=vi(_0x59d952['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x401622)['removeRevision'](_0x59d952);}['_getTimePeriodViewByStartDate'](_0x929eb){return this['timePeriodViews']['find'](_0x6aa7c8=>_0x6aa7c8['startDate']['getTime']()===_0x929eb['getTime']());}}class g extends _0x41e048{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2dd53b,uid as _0x1e756b,Collection as _0x45d5c2,logWarning as _0x1a3585,FocusTracker as _0xa480af,KeystrokeHandler as _0xe26ce4,scrollViewportToShowTarget as _0x1d9212,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x5ca947}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2b5a55,set as _0x9357dc,unset as _0xe6f3d3,isEqual as _0x2ea409}from'es-toolkit/compat';import{Plugin as _0x13fc58,PendingActions as _0x271011,Command as _0x21058a,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xc1ab57,getMarkerDomElement as _0x957fe3,ConfirmMixin as _0xf64e34,sanitizeEditorConfig as _0x227153}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x46cadc,Element as ut,Range as ft,ViewUIElement as _0x41d931,ViewRawElement as _0x115453,ViewEmptyElement as _0xa901c4,ViewAttributeElement as _0x38e199,ViewContainerElement as _0x533b4e,Position as vt,ViewText as _0x3b3f30,ViewElement as _0x20dfc0,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x344f35,IconChevronUp as _0x58741e,IconChevronDown as _0x5af1f1,IconUndo as _0xb64b68,IconUser as _0x4a3fa1,IconThreeVerticalDots as _0x19a9ed}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x466f03,injectCssTransitionDisabler as ts,submitHandler as _0x19f88f,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x1d35f8,ListView as _0x1d158e,ListItemView as te,ButtonView as _0x491614,MenuBarMenuView as _0x3b1f51,MenuBarMenuListView as _0x29d230,MenuBarMenuListItemView as _0x24b1cd,MenuBarMenuListItemButtonView as _0x2ea120,ContextualBalloon as _0x515bcc,ToolbarSeparatorView as _0x495d60,IconView as _0xf1c75d,addListToDropdown as _0x15bd0e,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x19553e}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x2dd53b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2e6a66){super(),this['id']=_0x2e6a66['id']||_0x1e756b(),this['creator']=_0x2e6a66['creator']||null,this['authors']=_0x2e6a66['authors']||[],this['diffData']=_0x2e6a66['diffData']||null,this['toVersion']=_0x2e6a66['toVersion']||0x0,this['fromVersion']=_0x2e6a66['fromVersion']||0x0,this['set']('name',_0x2e6a66['name']||''),this['set']('createdAt',_0x2e6a66['createdAt']||new Date()),this['set']('attributes',_0x2e6a66['attributes']||{});}['setName'](_0x39caab){this['_update']({'name':_0x39caab});}['setAttribute'](_0x347d2f,_0x5f3ec8){const _0x4dc71c=_0x2b5a55(this['attributes']);_0x9357dc(_0x4dc71c,_0x347d2f,_0x5f3ec8),this['_update']({'attributes':_0x4dc71c});}['removeAttribute'](_0x4ce40c){const _0x511486=_0x2b5a55(this['attributes']);_0xe6f3d3(_0x511486,_0x4ce40c),this['_update']({'attributes':_0x511486});}['_update'](_0x198581,_0xffc100=!0x1){let _0x46681b=!0x1;const _0x390290={'id':this['id']},_0x1f1e9c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1ca759 of _0x1f1e9c){const _0x1b3102=_0x198581[_0x1ca759];void 0x0!==_0x1b3102&&_0x1b3102!==this[_0x1ca759]&&(this[_0x1ca759]=_0x1b3102,_0x390290[_0x1ca759]=_0x1b3102,_0x46681b=!0x0);}_0x46681b&&(_0x390290['authors']&&(_0x390290['authorsIds']=_0x390290['authors']['map'](_0x2563ca=>_0x2563ca['id']),delete _0x390290['authors']),this['fire']('_update',_0x390290,_0xffc100));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x48ed4b=>_0x48ed4b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x13fc58{['_revisions'];static get['requires'](){return[_0xc1ab57];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3790b7){super(_0x3790b7),this['_revisions']=new _0x45d5c2();}['afterInit'](){!async function(_0x1df1e4){const _0x374544=_0x3e04dd([0x6f,0x39,0x66,0x50,0x56,0x67,0x31,0x57,0x62,0x74,0x42,0x54,0x6b,0x6a,0x77,0x6d,0x37,0x51,0x4a,0x34,0x38,0x43,0x6e,0x71,0x76,0x4f,0x36,0x61,0x45,0x68,0x5a,0x72,0x4e,0x6c,0x49,0x73,0x64,0x33,0x59,0x69,0x44,0x4b,0x58,0x32,0x55,0x46,0x78,0x4d,0x53,0x41,0x65,0x52,0x30,0x35,0x48,0x4c,0x7a,0x47,0x70,0x79,0x63,0x75]),_0x66d0ad=0xeb829,_0x1f6e65=0x7f1e2757,_0x193665=0x7f19452f^_0x1f6e65,_0x339506=window[_0x3e04dd([0x44,0x61,0x74,0x65])][_0x3e04dd([0x6e,0x6f,0x77])](),_0x4c5565=_0x1df1e4[_0x3e04dd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc00a08=new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d3836=>{_0x4c5565[_0x3e04dd([0x6f,0x6e,0x63,0x65])](_0x3e04dd([0x72,0x65,0x61,0x64,0x79]),_0x5d3836);}),_0x29cae2={[_0x3e04dd([0x6b,0x74,0x79])]:_0x3e04dd([0x45,0x43]),[_0x3e04dd([0x75,0x73,0x65])]:_0x3e04dd([0x73,0x69,0x67]),[_0x3e04dd([0x63,0x72,0x76])]:_0x3e04dd([0x50,0x2d,0x32,0x35,0x36]),[_0x3e04dd([0x78])]:_0x3e04dd([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]),[_0x3e04dd([0x79])]:_0x3e04dd([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]),[_0x3e04dd([0x61,0x6c,0x67])]:_0x3e04dd([0x45,0x53,0x32,0x35,0x36])},_0xd0afd5=_0x4c5565[_0x3e04dd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e04dd([0x67,0x65,0x74])](_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28c2fa(){let _0x252f81,_0x33783e=null,_0x5be03a=null;try{if(_0xd0afd5==_0x3e04dd([0x47,0x50,0x4c]))return _0x3e04dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x252f81=_0x242013(),!_0x252f81)return _0x3e04dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x252f81[_0x3e04dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5be03a=_0x5e22c6(_0x252f81[_0x3e04dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x252f81[_0x3e04dd([0x6a,0x74,0x69])])),await _0x358743()?_0x1a94bc()?_0x2d7bf5()?_0x3e04dd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d46f0()?(_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e04dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33783e=_0x1764f6(_0x3e04dd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e04dd([0x74,0x72,0x69,0x61,0x6c])&&(_0x33783e=_0x1764f6(_0x3e04dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x594dc2()):_0x3e04dd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e04dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e04dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f4f90){return _0x3e04dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d7bf5(){const _0x42ebf3=[_0x3e04dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e04dd([0x74,0x72,0x69,0x61,0x6c])][_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x339506/0x3e8:0xe10*_0x193665;return _0x252f81[_0x3e04dd([0x65,0x78,0x70])]<_0x42ebf3;}function _0x1a94bc(){const _0x41271f=_0x252f81[_0x3e04dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41271f)return!0x1;if(_0x41271f[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x2a])))return!0x0;if(_0x41271f[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x52,0x48])))return!0x0;if(_0x41271f[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x52,0x52,0x48]))){if(_0x437965())return!0x0;if(_0x32a454()||_0x50f913())return!0x0;}return!0x1;}function _0x5d46f0(){const _0x508456=_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x508456||0x0==_0x508456[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb35d6a}=new URL(window[_0x3e04dd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x508456[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb35d6a))return!0x0;const _0x3dc84f=_0xb35d6a[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e]));return _0x508456[_0x3e04dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d3715=>_0x5d3715[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x2a])))[_0x3e04dd([0x6d,0x61,0x70])](_0xf2ef0d=>_0xf2ef0d[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e])))[_0x3e04dd([0x73,0x6f,0x6d,0x65])](_0x3a69a3=>_0x3dc84f[_0x3e04dd([0x65,0x76,0x65,0x72,0x79])]((_0x31a3ac,_0x548171)=>_0x3a69a3[_0x548171]===_0x31a3ac||_0x3a69a3[_0x548171]===_0x3e04dd([0x2a])));}function _0x594dc2(){return _0x33783e&&_0x5be03a?new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x358527,_0x457bc9)=>{_0x33783e[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x358527,_0x457bc9),_0x5be03a[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x594ce6=>{_0x594ce6!=_0x3e04dd([0x56,0x61,0x6c,0x69,0x64])&&_0x358527(_0x594ce6);},_0x457bc9);}):_0x33783e||_0x5be03a||_0x3e04dd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e22c6(_0x4c7c3b,_0x42026f){return new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32cb89=>{if(_0x527171())return _0x32cb89(_0x3e04dd([0x56,0x61,0x6c,0x69,0x64]));_0x42a4c2(),_0x4c5565[_0x3e04dd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e04dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x62e8db=!0x1;const _0x39b0c2=_0x1e756b();function _0x56ca91(_0x49b656){return!!_0x49b656&&(typeof _0x49b656===_0x3e04dd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49b656===_0x3e04dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49b656[_0x3e04dd([0x74,0x68,0x65,0x6e])]===_0x3e04dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49b656[_0x3e04dd([0x63,0x61,0x74,0x63,0x68])]===_0x3e04dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x547587(_0x222870){_0x538a1d(_0x222870)[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x44799a=>{if(!_0x44799a||_0x44799a[_0x3e04dd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e04dd([0x6f,0x6b]))return _0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c1a86(_0x3d4444(_0x39b0c2+_0x42026f))!=_0x44799a[_0x3e04dd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e04dd([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x3838e4=>(_0x392031(),_0x3838e4),()=>{const _0x3717b1=_0xb95039();return null==_0x3717b1?(_0x392031(),_0x3e04dd([0x56,0x61,0x6c,0x69,0x64])):_0x3e04dd(_0x339506-_0x3717b1>(0x5b12a357^_0x1f6e65)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x32cb89)[_0x3e04dd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32cb89(_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471928=0x7f28c9d7^_0x1f6e65;function _0x392031(){const _0x1e41fe=_0x3e04dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1a86(_0x3d4444(_0x4c7c3b)),_0x353199=_0x4cc22b(_0x2c1a86(window[_0x3e04dd([0x4d,0x61,0x74,0x68])][_0x3e04dd([0x63,0x65,0x69,0x6c])](_0x339506/_0x471928)));window[_0x3e04dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e04dd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e41fe,_0x353199);}function _0xb95039(){const _0x393f42=_0x3e04dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1a86(_0x3d4444(_0x4c7c3b)),_0x1ff7cf=window[_0x3e04dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e04dd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x393f42);return _0x1ff7cf?window[_0x3e04dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cc22b(_0x1ff7cf),0x10)*_0x471928:null;}function _0x538a1d(_0x20cd95){return new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26fd79,_0x21b341)=>{_0x20cd95[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x26fd79,_0x21b341),window[_0x3e04dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21b341,0x7f1ff397^_0x1f6e65);});}}_0x4c5565[_0x3e04dd([0x6f,0x6e])](_0x3e04dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b4cbc,_0x49d555)=>{if(_0x49d555[0x0]!=_0x4c7c3b)return _0x32cb89(_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49d555[0x1]={..._0x49d555[0x1],[_0x3e04dd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39b0c2};},{[_0x3e04dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e04dd([0x68,0x69,0x67,0x68])}),_0x4c5565[_0x3e04dd([0x6f,0x6e])](_0x3e04dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17e93a=>{_0x56ca91(_0x17e93a[_0x3e04dd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x62e8db=!0x0,_0x547587(_0x17e93a[_0x3e04dd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e04dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e04dd([0x6c,0x6f,0x77])}),_0xc00a08[_0x3e04dd([0x74,0x68,0x65,0x6e])](()=>{_0x62e8db||_0x32cb89(_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x527171(){return _0x4c5565[_0x3e04dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e04dd([0x76,0x69,0x65,0x77])][_0x3e04dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e04dd([0x61,0x75,0x74,0x6f]);}function _0x42a4c2(){_0x4c5565[_0x3e04dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e04dd([0x76,0x69,0x65,0x77])][_0x3e04dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e04dd([0x61,0x75,0x74,0x6f]);}}function _0x1764f6(_0x3b6e55){const _0x3d51dd=[new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3483=>setTimeout(_0x5c3483,0x7f17199b^_0x1f6e65)),_0xc00a08[_0x3e04dd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54337c=>{const _0x16e0a3=0x7f1e2750^_0x1f6e65,_0x790e85=_0x1df1e4[_0x3e04dd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2bc068(){_0x790e85[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x16e0a3&&_0x54337c();}_0x2bc068(),_0x790e85[_0x3e04dd([0x6f,0x6e])](_0x3e04dd([0x61,0x64,0x64]),_0x2bc068);})),new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b3a3b=>{function _0x222bfb(){for(const _0x1ae5e1 in window)if(window[_0x3e04dd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3e04dd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1ae5e1))&&window[_0x1ae5e1]==_0x66d0ad)return _0x2b3a3b();_0x4c5565[_0x3e04dd([0x73,0x74,0x61,0x74,0x65])]!=_0x3e04dd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3e04dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x222bfb,0x7f1e34df^_0x1f6e65);}_0x15194c(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x222bfb();})];return window[_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e04dd([0x72,0x61,0x63,0x65])](_0x3d51dd)[_0x3e04dd([0x74,0x68,0x65,0x6e])](()=>_0x3b6e55);}async function _0x3bbe33(){if(await _0xc00a08,_0x15194c(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x46886a=_0x1df1e4[_0x3e04dd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xabe912=_0x1df1e4[_0x3e04dd([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x46886a[_0x3e04dd([0x69,0x64])]),_0x4f2833=_0x3b0bf9(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4f2833[_0x3e04dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x46886a['id'],_0xabe912?_0xabe912['id']:null,!0x0),_0x4f2833[_0x3e04dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4f2833[_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4f2833[_0x3e04dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2f7c76,void(_0x4f2833[_0x3e04dd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2f7c76);}if(_0x15194c(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x259cba=_0x3b0bf9(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x259cba[_0x3e04dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x259cba[_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x259cba[_0x3e04dd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2f7c76,_0x259cba[_0x3e04dd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2f7c76;}_0x4c5565[_0x3e04dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e04dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f7c76,_0x4c5565[_0x3e04dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e04dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f7c76,_0x4c5565[_0x3e04dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e04dd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x437965(){return _0x15194c(_0x3e04dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b0bf9(_0x3e04dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3e04dd([0x73,0x74,0x61,0x74,0x65])]==_0x3e04dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x32a454(){return _0x15194c(_0x3e04dd([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 _0x50f913(){return _0x15194c(_0x3e04dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17783e(_0x419dca){const _0x1a31f5=_0x4b4344();_0x4c5565[_0x1a31f5]=_0x3e04dd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x419dca,_0x419dca[_0x3e04dd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3e04dd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b4344()]=_0x66d0ad),_0x419dca!=_0x3e04dd([0x56,0x61,0x6c,0x69,0x64])&&_0x3bbe33();}function _0x4b4344(){const _0x1207a0=window[_0x3e04dd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e04dd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e04dd([0x6e,0x6f,0x77])]())[_0x3e04dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e04dd([0x2e]),'');let _0x36d4e3=_0x3e04dd([0x6f]);for(let _0x49c22e=0x0;_0x49c22e<_0x1207a0[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49c22e+=0x2){let _0x4d31f7=window[_0x3e04dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1207a0[_0x3e04dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49c22e,_0x49c22e+0x2));_0x4d31f7>=_0x374544[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d31f7-=_0x374544[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36d4e3+=_0x374544[_0x4d31f7];}return _0x36d4e3;}function _0x242013(){const _0x26e11a=_0xd0afd5[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e]));if(0x3!=_0x26e11a[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x550f4e(_0x26e11a[0x1]);function _0x550f4e(_0x3c6816){const _0x3b99ad=_0x1c6c76(_0x3c6816);return _0x3b99ad&&_0x28284d()?_0x3b99ad:null;function _0x28284d(){const _0x5ec863=_0x3b99ad[_0x3e04dd([0x6a,0x74,0x69])],_0x50d85f=window[_0x3e04dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ec863[_0x3e04dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ec863[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x179b94={..._0x3b99ad,[_0x3e04dd([0x6a,0x74,0x69])]:_0x5ec863[_0x3e04dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ec863[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x179b94[_0x3e04dd([0x76,0x63])],_0x3d4444(_0x179b94)==_0x50d85f;}}}async function _0x358743(){let _0x4eaca9=!0x0;try{const _0xfbcb45=_0xd0afd5[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e])),[_0x348195,_0x44ec00,_0x294f8a]=_0xfbcb45;return _0x4f936c(_0x348195),await _0x44c049(_0x348195,_0x44ec00,_0x294f8a),_0x4eaca9;}catch(_0x5e9525){return!0x1;}function _0x4f936c(_0xdad491){const _0x2f4c20=_0x1c6c76(_0xdad491);_0x2f4c20&&_0x2f4c20[_0x3e04dd([0x61,0x6c,0x67])]==_0x3e04dd([0x45,0x53,0x32,0x35,0x36])||(_0x4eaca9=!0x1);}async function _0x44c049(_0x55ee63,_0x4aa72b,_0x1da578){const _0x42ee1a=window[_0x3e04dd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e04dd([0x66,0x72,0x6f,0x6d])](_0x254439(_0x1da578),_0x5295f9=>_0x5295f9[_0x3e04dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57aa25=new window[(_0x3e04dd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e04dd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55ee63+_0x3e04dd([0x2e])+_0x4aa72b),_0x17df28=window[_0x3e04dd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e04dd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17df28)return;const _0x1aa3ce=await _0x17df28[_0x3e04dd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e04dd([0x6a,0x77,0x6b]),_0x29cae2,{[_0x3e04dd([0x6e,0x61,0x6d,0x65])]:_0x3e04dd([0x45,0x43,0x44,0x53,0x41]),[_0x3e04dd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e04dd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e04dd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17df28[_0x3e04dd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e04dd([0x6e,0x61,0x6d,0x65])]:_0x3e04dd([0x45,0x43,0x44,0x53,0x41]),[_0x3e04dd([0x68,0x61,0x73,0x68])]:{[_0x3e04dd([0x6e,0x61,0x6d,0x65])]:_0x3e04dd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1aa3ce,_0x42ee1a,_0x57aa25)||(_0x4eaca9=!0x1);}}function _0x1c6c76(_0x2b6991){return _0x2b6991[_0x3e04dd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e04dd([0x65,0x79]))?JSON[_0x3e04dd([0x70,0x61,0x72,0x73,0x65])](_0x254439(_0x2b6991)):null;}function _0x254439(_0x3d3710){return window[_0x3e04dd([0x61,0x74,0x6f,0x62])](_0x3d3710[_0x3e04dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e04dd([0x2b]))[_0x3e04dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e04dd([0x2f])));}function _0x3d4444(_0x295c74){let _0x96f5b8=0x1505;function _0x42ad89(_0x5b323f){for(let _0x3baffc=0x0;_0x3baffc<_0x5b323f[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3baffc++){const _0x4bae74=_0x5b323f[_0x3e04dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3baffc);_0x96f5b8=(_0x96f5b8<<0x5)+_0x96f5b8+_0x4bae74,_0x96f5b8&=_0x96f5b8;}}function _0x1ac0f4(_0x554c52){Array[_0x3e04dd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x554c52)?_0x554c52[_0x3e04dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ac0f4):_0x554c52&&typeof _0x554c52==_0x3e04dd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e04dd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x554c52)[_0x3e04dd([0x73,0x6f,0x72,0x74])]()[_0x3e04dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e0fa8,_0x4412b5])=>{_0x42ad89(_0x3e0fa8),_0x1ac0f4(_0x4412b5);}):_0x42ad89(window[_0x3e04dd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x554c52));}return _0x1ac0f4(_0x295c74),_0x96f5b8>>>0x0;}function _0x2c1a86(_0x176ae1){return _0x176ae1[_0x3e04dd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e04dd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e04dd([0x30]));}function _0x4cc22b(_0x35cd8c){return _0x35cd8c[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e04dd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e04dd([0x6a,0x6f,0x69,0x6e])]('');}function _0x15194c(_0x2345e9){return _0x4c5565[_0x3e04dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e04dd([0x68,0x61,0x73])](_0x2345e9);}function _0x3b0bf9(_0x3e476d){return _0x4c5565[_0x3e04dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e04dd([0x67,0x65,0x74])](_0x3e476d);}function _0x2f7c76(){}function _0x3e04dd(_0x274e9b){return _0x274e9b['map'](_0xe11d3b=>String['fromCharCode'](_0xe11d3b))['join']('');}_0x17783e(await _0x28c2fa());}(this);}['createRevision'](_0x31ed93){const _0x351b82=this['editor']['plugins']['get']('Users');return new h({'id':_0x31ed93['id'],'name':_0x31ed93['name'],'creator':_0x31ed93['creatorId']?_0x351b82['getUser'](_0x31ed93['creatorId']):null,'diffData':_0x31ed93['diffData']||_0x31ed93['data'],'authors':_0x31ed93['authorsIds']['map'](_0x4ed063=>_0x351b82['getUser'](_0x4ed063)),'createdAt':new Date(_0x31ed93['createdAt']),'attributes':_0x31ed93['attributes'],'fromVersion':_0x31ed93['fromVersion'],'toVersion':_0x31ed93['toVersion']});}['addRevision'](_0x353463,_0x3f934c=0x0){this['_revisions']['add'](_0x353463,_0x3f934c);}['getRevision'](_0x14ff17){return this['_revisions']['get'](_0x14ff17);}['getRevisions'](_0x3f9f08={'toJSON':!0x1}){const _0x1c6e51=Array['from'](this['_revisions']);return _0x1c6e51['reverse'](),_0x3f9f08['toJSON']?_0x1c6e51['map'](_0x52b6ac=>_0x52b6ac['toJSON']()):_0x1c6e51;}['getIndex'](_0x19bc30){return this['_revisions']['getIndex'](_0x19bc30);}['getEarlierVisibleRevision'](_0x11a6d7){const [,_0xc6b26a]=this['getRevisionsIterator'](_0x11a6d7,{'direction':'earlier'});return _0xc6b26a;}['getLaterVisibleRevision'](_0x3a1301){const [,_0x1cfdda]=this['getRevisionsIterator'](_0x3a1301,{'direction':'later'});return _0x1cfdda;}['getRevisionsInDiff'](_0x2f3f04){const _0x3f0709=[];for(const _0x1b6693 of this['getRevisionsIterator'](_0x2f3f04['newRevisionId']))if(_0x3f0709['push'](_0x1b6693),_0x1b6693['id']===_0x2f3f04['oldRevisionId'])break;return _0x3f0709;}*['getRevisionsIterator'](_0x2f43e1,{direction:_0x5dfa6f='earlier',filter:_0x36018e=()=>!0x0}={}){const _0x55c367='earlier'===_0x5dfa6f?0x1:-0x1;let _0x5b96e9=this['_revisions']['get'](_0x2f43e1),_0x367afa=this['getIndex'](_0x5b96e9);for(yield _0x5b96e9;_0x5b96e9;){if(_0x367afa+=_0x55c367,_0x5b96e9=this['getRevision'](_0x367afa),!_0x5b96e9)return;_0x36018e(_0x5b96e9)&&(yield _0x5b96e9);}}}function m(_0x91d8bf,_0x215b02,_0x32fc1b){const t=_0x91d8bf['t'];switch(_0x215b02){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x32fc1b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x32fc1b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x533b4e,'a':_0x38e199,'e':_0xa901c4,'r':_0x115453,'u':_0x41d931};class u extends _0x13fc58{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xc1ab57,j,_0x271011];}constructor(_0x22432b){super(_0x22432b),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x45e6fb=_0x1e756b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x45e6fb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x421b34=this['repository']['getRevision'](0x0),_0x1ae3a6=_0x421b34&&null===_0x421b34['creator']?_0x421b34:null;if(this['_continueCurrentRevision']=!!_0x1ae3a6&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4a47b3=this['_source']['getCurrentRevisionId'](),_0x140be3=this['repository']['getRevision'](_0x4a47b3);if(_0x140be3)this['_startingVersion']=_0x140be3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4baec7=this['_source']['history']['_operations']['find'](_0x177ca5=>!_0x177ca5['_isInit']),_0x1ddb5b=_0x4baec7?_0x4baec7['baseVersion']:this['_source']['history']['version'];_0x421b34?(_0x421b34['toVersion']<_0x1ddb5b&&_0x421b34['_update']({'toVersion':_0x1ddb5b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1ae3a6['id'],this['_startingVersion']=_0x1ae3a6['fromVersion']):(this['_startingVersion']=_0x421b34['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1ddb5b,this['_continueCurrentRevision']=!0x1);}}else _0x1ae3a6&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1ae3a6['toVersion'],this['editor']['model']['document']['history']['version']),_0x1ae3a6['fromVersion']===_0x1ae3a6['toVersion']?(0x0!==_0x1ae3a6['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ae3a6['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ae3a6['id'],this['_startingVersion']=_0x1ae3a6['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x1da4d3=>!_0x1da4d3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x33e0d2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31635e;for(const _0x54e42c in _0x33e0d2){const _0x532097=_0x54e42c,_0x3c5b8e=_0x33e0d2[_0x532097];if('revisionHistoryLicenseKeyValid'==_0x3c5b8e||'revisionHistoryLicenseKeyInvalid'==_0x3c5b8e||'revisionHistoryLicenseKeyExpired'==_0x3c5b8e||'revisionHistoryLicenseKeyDomainLimit'==_0x3c5b8e||'revisionHistoryLicenseKeyNotAllowed'==_0x3c5b8e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3c5b8e||'revisionHistoryLicenseKeyTrialLimit'==_0x3c5b8e||'revisionHistoryLicenseKeyUsageLimit'==_0x3c5b8e){delete _0x33e0d2[_0x532097],_0x31635e=_0x3c5b8e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x31635e&&_0x33e0d2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x31635e&&_0x33e0d2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x31635e&&_0x33e0d2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5f4120=this['repository']['getRevision'](0x0),_0x28ffca=await this['getRevisionDocumentData'](_0x5f4120),_0x288de7=await this['getRevisionRootsAttributes'](_0x5f4120);this['_replaceEditorDataWithRevisionData'](_0x28ffca,_0x288de7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1200f2){this['_source']=_0x1200f2;}async['update'](){const _0x593151=await this['_source']['getLatestVersion']();if(_0x593151>this['currentRevision']['toVersion']){await this['_loadState']();const _0xdc6e44=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x593151});_0xdc6e44['authors']=_0xdc6e44['authorsIds']['map'](_0x587f2d=>this['editor']['plugins']['get']('Users')['getUser'](_0x587f2d)),this['currentRevision']['_update'](_0xdc6e44);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2ea880={},_0x4e819a=null){const _0x4961c7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4e819a>this['currentRevision']['toVersion']&&(_0x4e819a=null),null===_0x4e819a&&(_0x4e819a=await this['_source']['getLatestVersion']());const _0x3bcd4b=this['_getFromVersion'](_0x4e819a),_0x1a0930=this['buildRevisionData']({'from':_0x3bcd4b,'to':_0x4e819a});if(this['currentRevision']['toVersion']<_0x4e819a){const _0x4a44ea=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4e819a,'to':_0x4e819a});_0x4a44ea['authors']=[],_0x4a44ea['authorsIds']=[],_0x4a44ea['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4a44ea,!0x0),delete _0x4a44ea['authors'],_0x4961c7['push'](_0x4a44ea);}_0x2ea880['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ea880['name']=_0x2ea880['name']||null,_0x2ea880['id']=_0x2ea880['id']||_0x1e756b(),_0x2ea880={..._0x2ea880,..._0x1a0930};const _0x5e1ade=this['addRevisionData'](_0x2ea880);_0x4961c7['push'](_0x2ea880);const _0x7da8a3=this['repository']['getIndex'](_0x5e1ade);if(0x0!==_0x7da8a3){const _0x5804cb=this['repository']['getRevision'](_0x7da8a3-0x1);if(_0x5804cb['fromVersion']!==_0x4e819a){const _0x294152=this['_revisionDataBuilder']['getData'](_0x4e819a,_0x5804cb['toVersion']),_0x199e5c={'id':_0x5804cb['id'],'diffData':_0x294152['diffData'],'authorsIds':_0x294152['authorsIds'],'authors':_0x294152['authorsIds']['map'](_0x34a9b5=>this['editor']['plugins']['get']('Users')['getUser'](_0x34a9b5)),'fromVersion':_0x4e819a};_0x5804cb===this['currentRevision']&&(_0x199e5c['createdAt']=new Date(_0x2ea880['createdAt']['getTime']()+0xa)),_0x5804cb['_update'](_0x199e5c,!0x0),delete _0x199e5c['authors'],_0x4961c7['push'](_0x199e5c);}}if(this['adapter']){for(const _0x52d1b3 of _0x4961c7)this['_bufferUpdate'](_0x52d1b3['id'],_0x52d1b3,!0x0);this['sendBufferedUpdates']();}return _0x5e1ade;}['addRevisionData'](_0x56f2e7){const _0x3102b3=this['repository']['createRevision'](_0x56f2e7);return this['adapter']&&_0x3102b3['on']('_update',(_0x1766dd,_0x2b96a6,_0x130778)=>{_0x130778||(this['_bufferUpdate'](_0x2b96a6['id'],_0x2b96a6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3102b3,this['_findInsertionIndex'](_0x3102b3)),_0x3102b3;}async['getRevisionDocumentData'](_0x578422){await this['_loadRevisionData'](_0x578422);const _0x456ca1={};for(const _0x340294 in _0x578422['diffData']){if(_0x578422['diffData'][_0x340294]['attachChange']&&!_0x578422['diffData'][_0x340294]['attachChange']['isAttached'])continue;const _0x5bcc6e=this['_removeRevisionMarkers'](JSON['parse'](_0x578422['diffData'][_0x340294]['insertions'])),_0x2e1c88=this['editor']['editing']['view']['document'],_0x3bd15e=new _0x46cadc(_0x2e1c88,_0x5bcc6e['map'](_0x248317=>P(_0x248317,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x456ca1[_0x340294]=this['editor']['data']['processor']['toData'](_0x3bd15e),this['editor']['data']['processor']['useFillerType']('default');}return _0x456ca1;}async['getRevisionRootsAttributes'](_0x5974cb){await this['_loadRevisionData'](_0x5974cb);const _0x54b0fd={};for(const _0x250012 in _0x5974cb['diffData'])_0x5974cb['diffData'][_0x250012]['attachChange']&&!_0x5974cb['diffData'][_0x250012]['attachChange']['isAttached']||(_0x54b0fd[_0x250012]=_0x5974cb['diffData'][_0x250012]['attributesAfter']||{});return _0x54b0fd;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1e483a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x42828e=0x0;_0x42828e<_0x1e483a['length'];_0x42828e++){const _0x28d674=_0x1e483a[_0x42828e];let _0x268cdc=!0x1;for(const _0x28a4fb of Object['keys'](_0x28d674))void 0x0===_0x28d674[_0x28a4fb]?delete _0x28d674[_0x28a4fb]:'id'!==_0x28a4fb&&(_0x268cdc=!0x0);_0x268cdc||(_0x1e483a[_0x42828e]=null);}if(_0x1e483a=_0x1e483a['filter'](_0xd2c89a=>null!==_0xd2c89a),!_0x1e483a['length'])return;for(let _0x2b177a=0x0;_0x2b177a<_0x1e483a['length'];_0x2b177a++){const _0x460468=_0x1e483a[_0x2b177a];void 0x0!==_0x460468['fromVersion']&&void 0x0===_0x460468['toVersion']&&(_0x460468['toVersion']=this['repository']['getRevision'](_0x460468['id'])['toVersion']),void 0x0!==_0x460468['toVersion']&&void 0x0===_0x460468['fromVersion']&&(_0x460468['fromVersion']=this['repository']['getRevision'](_0x460468['id'])['fromVersion']);}const _0x382e54=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1e483a,_0x382e54)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4ddec5=>{if(_0x4ddec5){for(const _0x7d5243 of _0x4ddec5)this['setRevisionData']({'id':_0x7d5243['id'],'createdAt':_0x7d5243['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x86afa5,_0x29205e){let _0x277fdf=this['editor']['config']['get']('initialData'),_0x192e86=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x277fdf){_0x277fdf={};for(const _0x5a04fd of this['editor']['model']['document']['getRootNames']())_0x277fdf[_0x5a04fd]='';}if('string'==typeof _0x277fdf&&(_0x277fdf={'main':_0x277fdf}),void 0x0===_0x192e86){_0x192e86={};for(const _0x51daf1 of this['editor']['model']['document']['getRootNames']())_0x192e86[_0x51daf1]={};}let _0x412217=!0x1;const _0x149b09=Object['keys'](_0x277fdf),_0x4e837c=Object['keys'](_0x86afa5);for(const _0x595e4b of _0x149b09){if(_0x277fdf[_0x595e4b]!==_0x86afa5[_0x595e4b]&&''!==_0x277fdf[_0x595e4b]['trim']()){_0x412217=!0x0;break;}if(!_0x2ea409(_0x192e86[_0x595e4b],_0x29205e[_0x595e4b])&&Object['keys'](_0x192e86[_0x595e4b])['length']>0x0){_0x412217=!0x0;break;}}_0x412217||(_0x412217=_0x4e837c['some'](_0x4406c3=>!this['editor']['model']['document']['getRoot'](_0x4406c3))),_0x412217&&_0x1a3585('editor-initial-data-replaced-with-revision-data',{'editorData':_0x277fdf,'editorRootsAttributes':_0x192e86,'revisionData':_0x86afa5,'revisionRootsAttributes':_0x29205e}),this['editor']['config']['set']('initialData',_0x86afa5),this['editor']['config']['set']('rootsAttributes',_0x29205e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x853625=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x853625['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x102dda){const _0x1aa121=this['repository']['getRevisions']();_0x1aa121['reverse']();let _0x497648=0x0;for(;_0x497648<_0x1aa121['length'];){const _0x5099a6=_0x1aa121[_0x497648];if(_0x5099a6===this['currentRevision']){_0x497648++;continue;}if(_0x5099a6['id']===this['_initialRevisionId'])break;const _0x3258eb=_0x102dda['toVersion']-_0x5099a6['toVersion']||_0x102dda['fromVersion']-_0x5099a6['fromVersion'];if(_0x3258eb>0x0)break;if(_0x3258eb<0x0)_0x497648++;else{if(!_0x102dda['creator']&&_0x5099a6['creator'])break;if(_0x5099a6['creator']||!_0x102dda['creator']){if(_0x102dda['createdAt']>_0x5099a6['createdAt'])break;_0x497648++;}else _0x497648++;}}return _0x497648;}['setRevisionData'](_0x5a6cfc){const _0x412f56=this['repository']['getRevision'](_0x5a6cfc['id']);if(_0x5a6cfc['createdAt']&&(_0x5a6cfc['createdAt']=new Date(_0x5a6cfc['createdAt'])),_0x5a6cfc['authorsIds']){const _0x4db4f3=this['editor']['plugins']['get']('Users');_0x5a6cfc['authors']=_0x5a6cfc['authorsIds']['map'](_0x392e86=>_0x4db4f3['getUser'](_0x392e86));}_0x412f56['_update'](_0x5a6cfc,!0x0);}['buildRevisionData']({revision:_0x386085=null,from:_0x241bd6=null,to:_0x4acb4=null}){_0x241bd6=null!==_0x241bd6?_0x241bd6:_0x386085['fromVersion'],_0x4acb4=null!==_0x4acb4?_0x4acb4:_0x386085['toVersion'];const _0x58f67e=this['_revisionDataBuilder']['getData'](_0x241bd6,_0x4acb4),_0x4c91c7={'diffData':_0x58f67e['diffData'],'authorsIds':_0x58f67e['authorsIds'],'fromVersion':_0x241bd6,'toVersion':_0x4acb4};if(!_0x386085||_0x4acb4!==_0x386085['toVersion']){const _0x4b9a24=_0x4acb4-0x1,_0x269e9d=this['_source']['history']['getOperation'](_0x4b9a24);_0x4c91c7['createdAt']=_0x269e9d&&_0x269e9d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x241bd6===this['_loadedStateData']['fromVersion']){for(const _0x158039 of this['_loadedStateData']['authors'])_0x4c91c7['authorsIds']['includes'](_0x158039['id'])||_0x4c91c7['authorsIds']['push'](_0x158039['id']);}return _0x4c91c7;}['_loadRevisionData'](_0xc3f696){if(!_0xc3f696||_0xc3f696['diffData'])return Promise['resolve']();{const _0x10f98e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x10f98e,'revisionId':_0xc3f696['id']})['then'](_0x550d93=>{_0xc3f696['diffData']=_0x550d93['diffData'];});}}['_bufferUpdate'](_0x29b25b,_0x65a9d0,_0x23f7e3){if(this['_bufferedUpdates']['has'](_0x29b25b)){const _0x2d9261=this['_bufferedUpdates']['get'](_0x29b25b);_0x65a9d0=_0x23f7e3?{..._0x2d9261,..._0x65a9d0}:{..._0x65a9d0,..._0x2d9261};}this['_bufferedUpdates']['set'](_0x29b25b,_0x65a9d0);}['_getFromVersion'](_0x4a2586){const _0x2a7eb9=this['repository']['getRevisions']();_0x2a7eb9['reverse'](),_0x2a7eb9['shift']();const _0x39d6ea=_0x2a7eb9['find'](_0x1c4b31=>_0x1c4b31['toVersion']<=_0x4a2586)['toVersion'];return _0x39d6ea<this['_startingVersion']?this['_startingVersion']:_0x39d6ea;}['_createInitialRevision'](_0x41235f){const _0x2aa9d4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2aa9d4)this['_initialRevisionId']=_0x2aa9d4['id'];else{const _0x3668af=!this['editor']['model']['document']['roots']['find'](_0x4e0297=>this['editor']['model']['hasContent'](_0x4e0297)),_0x1044d7=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fffc5=m(this['editor']['locale'],_0x3668af?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x41235f,'to':_0x41235f,'id':this['_initialRevisionId'],'name':_0x2fffc5,'creatorId':_0x1044d7});}}['_createCurrentRevision'](_0x239695){const _0x4806fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4806fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x239695,'to':_0x239695,'id':_0x4806fb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x272c7e,from:_0x233fc1,to:_0x3bd5e6,creatorId:_0x4ec203,id:_0x2b4a78}){const _0x1e345d=this['buildRevisionData']({'from':_0x233fc1,'to':_0x3bd5e6});_0x1e345d['name']=_0x272c7e,_0x1e345d['creatorId']=_0x4ec203,_0x1e345d['id']=_0x2b4a78;const _0x17ead9=this['addRevisionData'](_0x1e345d);return this['adapter']&&this['_bufferUpdate'](_0x1e345d['id'],_0x1e345d,!0x0),_0x17ead9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x32dd77){return(_0x32dd77=_0x32dd77['filter'](_0x512fee=>!_0x512fee['name']||'revision-start'!==_0x512fee['name']&&'revision-end'!==_0x512fee['name']))['forEach'](_0x51e0cf=>{'string'!=typeof _0x51e0cf&&(_0x51e0cf['children']=this['_removeRevisionMarkers'](_0x51e0cf['children']),_0x51e0cf['attributes']=_0x51e0cf['attributes']['filter'](_0x3b8ac5=>!_0x3b8ac5[0x0]['startsWith']('data-revision-')));}),_0x32dd77;}}function P(_0x299608,_0xa94f30){const _0x1e98e2=_0xa94f30['editing']['view']['document'];if('string'==typeof _0x299608)return new _0x3b3f30(_0x1e98e2,_0x299608);{const _0x23106d=_0x299608['children']['map'](_0x4a17ba=>P(_0x4a17ba,_0xa94f30));return new(E[_0x299608['type']]||_0x20dfc0)(_0x1e98e2,_0x299608['name'],_0x299608['attributes'],_0x23106d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x265e09){this['editor']=_0x265e09,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x38716c){this['source']=_0x38716c;const _0x1d8d34=new Map(),_0x5e906b=new Map(),_0x4702e6=this['editor']['model']['document']['roots']['map'](_0xa15d67=>_0xa15d67['rootName']);for(const _0x1d0993 of _0x4702e6){const _0x2b066f=this['editor']['model']['document']['getRoot'](_0x1d0993),_0x531c92=T(_0x2b066f);_0x1d8d34['set'](_0x1d0993,_0x531c92),_0x5e906b['set'](_0x1d0993,Object['fromEntries'](_0x2b066f['getAttributes']()));}const _0x2bc253=Array['from'](this['editor']['model']['markers'])['map'](_0x314f77=>[_0x314f77['name'],_0x314f77['getRange']()]),_0x388cf5=this['source']['version'];this['_saveMetaData'](_0x388cf5,_0x1d8d34,_0x2bc253,_0x5e906b),this['_startingRevisionId']=this['_revisionId'];const _0x1efea6=new Map(),_0x4bb871=new Map();for(const _0x39af9f of _0x4702e6){const _0xf44ad6=F(_0x39af9f);_0x1efea6['set'](_0x39af9f,_0xf44ad6),_0x4bb871['set'](_0x39af9f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1efea6,[],_0x4bb871);}['getData'](_0x5c9ae4,_0x823f37){if(this['_lastFrom']===_0x5c9ae4&&this['_lastTo']<=_0x823f37)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x823f37,!0x0);else{if(!this['_savedMetaData']['has'](_0x5c9ae4)){const _0x2cf7ac=this['_getPreviousFrom'](_0x5c9ae4);this['_calculateMetaData'](_0x2cf7ac,_0x5c9ae4,!0x1);}this['_calculateMetaData'](_0x5c9ae4,_0x823f37,!0x0);}return this['_lastFrom']=_0x5c9ae4,this['_lastTo']=_0x823f37,this['_getState']();}['loadState'](_0x12bfa7){this['_reset'](),this['_lastFrom']=_0x12bfa7['fromVersion'],this['_lastTo']=_0x12bfa7['toVersion'];for(const _0x5ecd40 in _0x12bfa7['diffData']){const _0x113185=_0x12bfa7['diffData'][_0x5ecd40]['attachChange'],_0x34cee6=_0x2b5a55(_0x12bfa7['diffData'][_0x5ecd40]['attributesBefore'])||{},_0x3d1d9f=this['_makeModelFromViewString'](_0x12bfa7['diffData'][_0x5ecd40]['deletions']);_0x3d1d9f['rootName']=_0x5ecd40,_0x3d1d9f['_isAttached']=!_0x113185||!_0x113185['isAttached'],_0x3d1d9f['isAttached']=()=>_0x3d1d9f['_isAttached'],this['_baseRoots']['set'](_0x5ecd40,_0x3d1d9f),this['_baseRootsAttributes']['set'](_0x5ecd40,_0x34cee6),_0x113185&&this['_touchedRoots']['set'](_0x5ecd40,_0x113185);const _0x1c14f7=this['_makeIdsRoot'](_0x3d1d9f);this['_baseIdsRoots']['set'](_0x5ecd40,_0x1c14f7);for(const [_0x1c9115,_0x3e91dc]of _0x3d1d9f['markers']){if(!_0x1c9115['startsWith']('revision:'))continue;const _0x8a3f77=_0x1c9115['split'](':')[0x2];for(const _0x4b39c3 of _0x3e91dc['getWalker']({'singleCharacters':!0x0})){const _0x5cca74=this['_getVidAttributeName'](_0x4b39c3),_0x180913='elementEnd'==_0x4b39c3['type']?_0x4b39c3['previousPosition']['path']['slice'](0x0,-0x1):_0x4b39c3['previousPosition']['path'],_0x2080b9=_0x1c14f7['getNodeByPath'](_0x180913)['getAttribute'](_0x5cca74);this['_touched']['set'](_0x2080b9,{'userId':_0x8a3f77});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3cf546=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54f08b=>!this['_touched']['has'](_0x54f08b));let _0x1748ce=0x0;const _0x73cfdc=new Map();for(const _0x4e6afe in _0x12bfa7['diffData']){const _0x3bef98=_0x12bfa7['diffData'][_0x4e6afe]['attachChange'],_0x10d147=_0x2b5a55(_0x12bfa7['diffData'][_0x4e6afe]['attributesAfter'])||{},_0x13fcb2=this['_makeModelFromViewString'](_0x12bfa7['diffData'][_0x4e6afe]['insertions']);_0x13fcb2['rootName']=_0x4e6afe,_0x13fcb2['_isAttached']=!_0x3bef98||_0x3bef98['isAttached'],_0x13fcb2['isAttached']=()=>_0x13fcb2['_isAttached'],this['_diffRoots']['set'](_0x4e6afe,_0x13fcb2),this['_diffRootsAttributes']['set'](_0x4e6afe,_0x10d147);const _0x39f84b=this['_makeIdsRoot'](_0x13fcb2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e6afe,_0x39f84b),_0x73cfdc['set'](_0x4e6afe,_0x13fcb2['isAttached']()?_0x10d147:{});for(const [_0x1e5f6b,_0xa04bff]of _0x13fcb2['markers']){if(!_0x1e5f6b['startsWith']('revision:'))continue;const _0x4a182b=_0x1e5f6b['split'](':')[0x2];for(const _0x39e368 of _0xa04bff['getWalker']({'singleCharacters':!0x0})){const _0x13b17d=this['_getVidAttributeName'](_0x39e368),_0x4e26cf=this['_revisionId']++,_0x25273c='elementEnd'==_0x39e368['type']?_0x39e368['previousPosition']['path']['slice'](0x0,-0x1):_0x39e368['previousPosition']['path'];_0x39f84b['getNodeByPath'](_0x25273c)['_setAttribute'](_0x13b17d,_0x4e26cf),this['_touched']['set'](_0x4e26cf,{'userId':_0x4a182b});}}for(const _0x3013cf of this['editor']['model']['createRangeIn'](_0x13fcb2)['getWalker']({'singleCharacters':!0x0})){const _0x2349a1=this['_getVidAttributeName'](_0x3013cf),_0x884d83='elementEnd'==_0x3013cf['type']?_0x3013cf['previousPosition']['path']['slice'](0x0,-0x1):_0x3013cf['previousPosition']['path'],_0x3e2520=_0x39f84b['getNodeByPath'](_0x884d83);_0x3e2520['getAttribute'](_0x2349a1)>0x0||_0x3e2520['_setAttribute'](_0x2349a1,_0x3cf546[_0x1748ce++]);}for(const [_0x38dffd,_0x5a02db]of _0x13fcb2['markers'])_0x38dffd['startsWith']('revision:')||this['_markers']['set'](_0x38dffd,_0x5a02db);}const _0xaff700=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xaff700),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xaff700,0x1));const _0x54bd16=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x54bd16),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54bd16,0x1));const _0x21c840=Array['from'](this['_diffRoots'])['map'](([_0x4d51aa,_0x5be3b6])=>[_0x4d51aa,T(_0x5be3b6)]);this['_saveMetaData'](this['_lastTo'],_0x21c840,this['_markers'],_0x73cfdc);}['_makeModelFromViewString'](_0x3052f7){const _0x1fe659=JSON['parse'](_0x3052f7),_0x442504=this['editor']['editing']['view']['document'],_0x31d67b=new _0x46cadc(_0x442504,_0x1fe659['map'](_0x2bfd45=>P(_0x2bfd45,this['editor'])));return this['editor']['data']['toModel'](_0x31d67b);}['_saveMetaData'](_0x5ce9a6,_0xbb91a0,_0x3147c6,_0x39f1ba){const _0x278396=new Map(_0xbb91a0),_0x5b5159=new Map(_0x2b5a55(_0x39f1ba)),_0x38f2bd=new Map();for(const [_0x8c05c0,_0x5a2a34]of _0x3147c6)_0x38f2bd['set'](_0x8c05c0,{'start':_0x5a2a34['start']['clone'](),'end':_0x5a2a34['end']['clone'](),'rootName':_0x5a2a34['root']['rootName']});this['_savedMetaData']['set'](_0x5ce9a6,{'roots':_0x278396,'markers':_0x38f2bd,'rootsAttributes':_0x5b5159});}['_removeMetaData'](_0x4e319b){this['_savedMetaData']['delete'](_0x4e319b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2e4ddc,_0x56caf1=null){let _0x4191ef=null;_0x2e4ddc['is']('documentFragment')||(_0x4191ef=new ut(_0x2e4ddc['name'],{'vid_start':null===_0x56caf1?this['_revisionId']++:_0x56caf1++}));const _0x438c38=[];for(const _0x2e2977 of _0x2e4ddc['getChildren']())if(_0x2e2977['is']('element')){_0x438c38['push'](this['_makeIdsRoot'](_0x2e2977,_0x56caf1));const _0x3d8611=_0x438c38[_0x438c38['length']-0x1];null!==_0x56caf1&&(_0x56caf1=_0x3d8611['is']('element','$text')?_0x3d8611['getAttribute']('vid')+0x1:_0x3d8611['getAttribute']('vid_end')+0x1);}else{for(let _0x44f1b8=0x0;_0x44f1b8<_0x2e2977['offsetSize'];_0x44f1b8++)_0x438c38['push'](new ut('$text',{'vid':null===_0x56caf1?this['_revisionId']++:_0x56caf1++}));}if(_0x2e4ddc['is']('documentFragment')){const _0x248a0b=F(_0x2e4ddc['rootName']);return _0x248a0b['_insertChild'](0x0,_0x438c38),_0x248a0b;}return _0x4191ef['_setAttribute']('vid_end',null===_0x56caf1?this['_revisionId']++:_0x56caf1++),_0x4191ef['_insertChild'](0x0,_0x438c38),_0x4191ef;}['_calculateMetaData'](_0x255d9a,_0x55e945,_0x2b3fde){this['_reset']();const {roots:_0x19f3d0,markers:_0x4191fa,rootsAttributes:_0xac806e}=this['_savedMetaData']['get'](_0x255d9a);this['_baseRoots']=new Map(_0x19f3d0),this['_baseRootsAttributes']=new Map(_0x2b5a55(_0xac806e));for(const [_0x42dcc5,_0x355fb3]of this['_baseRoots'])if('$graveyard'!==_0x42dcc5&&(this['_diffRoots']['set'](_0x42dcc5,T(_0x355fb3)),this['_diffRootsAttributes']=new Map(_0x2b5a55(_0xac806e)),_0x2b3fde)){const _0x31ba46=this['_revisionId'];this['_idsRoots']['set'](_0x42dcc5,this['_makeIdsRoot'](_0x355fb3)),this['_baseIdsRoots']['set'](_0x42dcc5,this['_makeIdsRoot'](_0x355fb3,_0x31ba46));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b3fde&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4e98ff,_0x33e121]of _0x4191fa){const _0x4b70e6=this['_baseRoots']['get'](_0x33e121['rootName']),_0xfbd835=this['_diffRoots']['get'](_0x33e121['rootName']),_0x519e4e=new ft(this['_fixPosition'](_0x33e121['start'],_0x4b70e6),this['_fixPosition'](_0x33e121['end'],_0x4b70e6)),_0x3cbf10=this['_fixRange'](_0x519e4e,_0xfbd835);_0x4b70e6['markers']['set'](_0x4e98ff,_0x519e4e),this['_markers']['set'](_0x4e98ff,_0x3cbf10);}this['_applyOperations'](_0x255d9a,_0x55e945,_0x2b3fde);}['_applyOperations'](_0x10ff67,_0x1f649b,_0x2b8049){for(const _0x195944 of this['source']['getOperations'](_0x10ff67,_0x1f649b))this['_handleOperation'](_0x195944,_0x2b8049);for(const _0x472920 of this['_diffRoots']['values']())_0x472920['markers']['clear']();for(const [_0x3ebf81,_0xe4dfcf]of this['_markers']){this['_diffRoots']['get'](_0xe4dfcf['root']['rootName'])['markers']['set'](_0x3ebf81,_0xe4dfcf['clone']());}const _0x56f5c1=new Map(),_0x59a1be=new Map();for(const [_0x556e2b,_0x589112]of this['_diffRoots'])_0x56f5c1['set'](_0x556e2b,T(_0x589112)),_0x59a1be['set'](_0x556e2b,this['_diffRootsAttributes']['get'](_0x556e2b));this['_saveMetaData'](_0x1f649b,_0x56f5c1,this['_markers'],_0x59a1be);}['_getPreviousFrom'](_0x4ac7e4){const _0x25b4f6=Array['from'](this['_savedMetaData']['keys']());_0x25b4f6['sort']((_0x521924,_0x1d51db)=>_0x521924-_0x1d51db),_0x25b4f6['reverse']();for(const _0x4ba618 of _0x25b4f6)if(_0x4ba618<_0x4ac7e4)return _0x4ba618;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4d67b8,_0x2fbf01){const _0x31c7ea=Array['from'](_0x2fbf01['markers'])['map'](([_0x549c77,_0x5e5dae])=>[_0x549c77,this['_fixRange'](_0x5e5dae,_0x4d67b8)]);_0x4d67b8['markers']=new Map(_0x31c7ea);}['_transformMarkers'](_0x51d722){for(const _0x1566cc of this['_markers']['values']()){const _0x2f53e9=_0x1566cc['getTransformedByOperation'](_0x51d722),_0x2767e5=ft['_createFromRanges'](_0x2f53e9);_0x1566cc['start']=_0x2767e5['start'],_0x1566cc['end']=_0x2767e5['end'];}}['_handleOperation'](_0x541274,_0x39fc97){if('addRoot'!=_0x541274['type']&&'detachRoot'!=_0x541274['type']){if('insert'==_0x541274['type']){const _0x333335=_0x541274['position']['root']['rootName'];this['_diffRoots']['has'](_0x333335)||(this['_diffRoots']['set'](_0x333335,F(_0x333335,!0x0)),this['_diffRootsAttributes']['set'](_0x333335,{}),_0x39fc97&&this['_idsRoots']['set'](_0x333335,F(_0x333335,!0x0)));}else{if('addRootAttribute'==_0x541274['type']||'removeRootAttribute'==_0x541274['type']||'changeRootAttribute'==_0x541274['type'])return void this['_handleRootAttributeOperation'](_0x541274);'marker'==_0x541274['type']&&this['_handleMarkerOperation'](_0x541274);}if('marker'!==_0x541274['type']){const _0x3cf3f2=this['_cloneOperation'](_0x541274,this['_diffRoots']);_0x3cf3f2['_execute'](),this['_transformMarkers'](_0x3cf3f2);}if(_0x39fc97)switch(_0x541274['type']){case'insert':this['_handleInsertOperation'](_0x541274);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x541274);break;case'merge':this['_handleMergeOperation'](_0x541274);break;case'split':this['_handleSplitOperation'](_0x541274);}}else this['_handleRootOperation'](_0x541274,_0x39fc97);}['_cloneOperation'](_0x3047e3,_0xc3bd72){const _0x5d75c8=_0x3047e3['clone']();return _0x5d75c8['_authorId']=_0x3047e3['_authorId'],this['_fixOperation'](_0x5d75c8,_0xc3bd72),_0x5d75c8;}['_getBaseVids'](_0x640976){return _0x640976['map'](_0x190fe0=>{const _0x5c9d3c=this['_getVidAttributeName'](_0x190fe0);return Number(_0x190fe0['item']['getAttribute'](_0x5c9d3c));});}['_generateTape'](_0x343d0a,_0x5ce268){if(_0x343d0a['is']('element','$text'))_0x5ce268['push']({'item':_0x343d0a,'type':'text'});else{_0x343d0a['is']('element')&&_0x5ce268['push']({'item':_0x343d0a,'type':'elementStart'});for(const _0xf4f5df of _0x343d0a['getChildren']())this['_generateTape'](_0xf4f5df,_0x5ce268);_0x343d0a['is']('element')&&_0x5ce268['push']({'item':_0x343d0a,'type':'elementEnd'});}return _0x5ce268;}['_getState'](){const _0xbde688=new Map(this['_touched']),_0x214276=new Map(_0xbde688),_0x418c1f=new Map(),_0x257fd0={'insertions':{},'deletions':{}},_0x5478b4={'insertions':{},'deletions':{}},_0x1bdd2b=new Map(),_0x294f74=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x294f74['delete']('$graveyard');for(const _0x559755 of _0x294f74){const _0x25675d=this['_diffRoots']['get'](_0x559755)||F(_0x559755,!0x1),_0x2ef5c7=this['_baseRoots']['get'](_0x559755)||F(_0x559755,!0x1);_0x25675d['isAttached']()||_0x2ef5c7['isAttached']()?(_0x257fd0['insertions'][_0x559755]=T(_0x25675d),_0x257fd0['deletions'][_0x559755]=T(_0x2ef5c7),this['_copyMarkers'](_0x257fd0['deletions'][_0x559755],_0x2ef5c7),this['_copyMarkers'](_0x257fd0['insertions'][_0x559755],_0x25675d),_0x5478b4['insertions'][_0x559755]=this['_generateTape'](this['_idsRoots']['get'](_0x559755),[]),_0x5478b4['deletions'][_0x559755]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x559755)||F(_0x559755,!0x1),[])):_0x294f74['delete'](_0x559755);}for(const _0x4f962e of _0x294f74){const _0x5064dc=_0x5478b4['insertions'][_0x4f962e];for(const _0x11b9c6 of _0x5064dc){const _0x2e7d35=this['_getVidAttributeName'](_0x11b9c6),_0x108da1=_0x11b9c6['item']['getAttribute'](_0x2e7d35);_0x214276['delete'](_0x108da1),_0x108da1>=this['_startingRevisionId']&&_0x418c1f['set'](_0x108da1,_0xbde688['get'](_0x108da1));}}for(const _0x6dfbcb of _0x294f74){const _0x342133=_0x5478b4['insertions'][_0x6dfbcb],_0x21fd6a=this['_getBaseVids'](_0x5478b4['deletions'][_0x6dfbcb]);let _0x426cf0=0x0;for(const _0x29d141 of _0x342133){const _0x2c51b4=this['_getVidAttributeName'](_0x29d141),_0x36c868=_0x29d141['item']['getAttribute'](_0x2c51b4);if(!_0x418c1f['has'](_0x36c868)&&!_0x1bdd2b['has'](_0x36c868)){if(_0x214276['has'](_0x36c868))_0x426cf0++;else{if(_0x36c868!=_0x21fd6a[_0x426cf0]){const _0xd178d3=_0xbde688['get'](_0x36c868)||_0xbde688['get'](_0x21fd6a[_0x426cf0]);for(;_0x36c868!=_0x21fd6a[_0x426cf0];)_0x214276['has'](_0x21fd6a[_0x426cf0])||(_0x1bdd2b['set'](_0x21fd6a[_0x426cf0],_0xd178d3),_0xbde688['set'](_0x21fd6a[_0x426cf0],_0xd178d3)),_0x426cf0++;}_0x426cf0++;}}}}for(const _0x44c6bc of _0x294f74){const _0x1cc059=_0x5478b4['insertions'][_0x44c6bc];for(const _0x491952 of _0x1cc059){const _0x54e73a=this['_getVidAttributeName'](_0x491952),_0x410790=_0x491952['item']['getAttribute'](_0x54e73a);if(_0x1bdd2b['has'](_0x410790)){const _0x81d4c2=_0x1bdd2b['get'](_0x410790);_0x214276['has'](_0x410790)||_0x214276['set'](_0x410790,{..._0x81d4c2}),_0x418c1f['set'](_0x410790,{..._0x81d4c2});}}}for(const _0x353df8 of _0x214276['keys']())_0x353df8>=this['_startingRevisionId']&&_0x214276['delete'](_0x353df8);const _0x4d03aa=new Map();for(const _0x506718 of _0x294f74){let _0x442c0c=_0x5478b4['insertions'][_0x506718];for(const _0xdd3cda of _0x442c0c)if(_0xdd3cda['item']['is']('element','tableCell')){const _0x4534b0=this['_getVidAttributeName'](_0xdd3cda),_0x49ade4=_0xdd3cda['item']['getAttribute'](_0x4534b0);if(_0x418c1f['has'](_0x49ade4)){const _0x2b1a4c=_0xdd3cda['item']['parent']['parent']['getAttribute']('vid_start'),_0x33e37f=_0x4d03aa['get'](_0x2b1a4c)||new Set();_0x33e37f['add'](_0x418c1f['get'](_0x49ade4)['userId']),_0x4d03aa['set'](_0x2b1a4c,_0x33e37f);}}_0x442c0c=_0x5478b4['deletions'][_0x506718];for(const _0x325993 of _0x442c0c)if(_0x325993['item']['is']('element','tableCell')){const _0x4eb03b=this['_getVidAttributeName'](_0x325993),_0x560211=_0x325993['item']['getAttribute'](_0x4eb03b);if(_0x214276['has'](_0x560211)){const _0xe0d14f=_0x325993['item']['parent']['parent']['getAttribute']('vid_start'),_0x1191b7=_0x4d03aa['get'](_0xe0d14f)||new Set();_0x1191b7['add'](_0x214276['get'](_0x560211)['userId']),_0x4d03aa['set'](_0xe0d14f,_0x1191b7);}}for(const _0x1b2cc6 of _0x4d03aa['keys']())(_0x418c1f['has'](_0x1b2cc6)||_0x214276['has'](_0x1b2cc6))&&_0x4d03aa['delete'](_0x1b2cc6);}for(const _0x2625b3 of _0x294f74){const _0x133fec=_0x5478b4['insertions'][_0x2625b3];let _0x262525=null,_0x1a37bf=null;for(const _0x29617f of _0x133fec){const _0x44648c=this['_getVidAttributeName'](_0x29617f),_0x1642c9=_0x29617f['item']['getAttribute'](_0x44648c),_0x21d2c7=_0x4d03aa['get'](_0x1642c9);_0x21d2c7&&'elementStart'==_0x29617f['type']&&(_0x262525=Array['from'](_0x21d2c7)[0x0],_0x1a37bf=_0x29617f['item']['getAttribute']('vid_end')),_0x262525&&(_0x214276['set'](_0x1642c9,{'userId':_0x262525}),_0x418c1f['set'](_0x1642c9,{'userId':_0x262525})),_0x1642c9==_0x1a37bf&&(_0x262525=null,_0x1a37bf=null);}}const _0x1919ee={},_0x14439a=new Set();for(const _0x133b04 of _0x294f74){const _0x503f02=_0x257fd0['deletions'][_0x133b04],_0x3c7e90=_0x257fd0['insertions'][_0x133b04];for(const {userId:_0xc85506}of this['_touchedMarkers']['values']())null!==_0xc85506&&_0x14439a['add'](_0xc85506);for(const {userId:_0x12f1c0}of this['_touchedRoots']['values']())null!==_0x12f1c0&&_0x14439a['add'](_0x12f1c0);this['_markChanges'](_0x3c7e90,_0x5478b4['insertions'][_0x133b04],_0x418c1f,'insertion',_0x14439a),this['_markChanges'](_0x503f02,_0x5478b4['deletions'][_0x133b04],_0x214276,'deletion',_0x14439a),_0x1919ee[_0x133b04]={'insertions':this['_prepareViewToSave'](_0x3c7e90),'deletions':this['_prepareViewToSave'](_0x503f02),'attachChange':this['_touchedRoots']['get'](_0x133b04)||null,'attributesBefore':_0x2b5a55(this['_baseRootsAttributes']['get'](_0x133b04))||{},'attributesAfter':_0x2b5a55(this['_diffRootsAttributes']['get'](_0x133b04))};}return{'diffData':_0x1919ee,'authorsIds':Array['from'](_0x14439a)};}['_processRootBeforeSave'](_0x180e9e){for(const [,_0x3219d2]of _0x180e9e['markers']){const _0x254c04=_0x3219d2['start']['getAncestors']()['filter'](_0x48a9de=>'tableCell'==_0x48a9de['name']);for(const _0x107a7a of _0x254c04)0x1==_0x107a7a['childCount']&&_0x107a7a['getChild'](0x0)['is']('element','paragraph')&&_0x107a7a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4a7320){this['_processRootBeforeSave'](_0x4a7320);const _0x4e557e=this['editor']['data']['toView'](_0x4a7320,{}),_0x5df2bd=Array['from'](_0x4e557e['getChildren']())['map'](_0xfe0389=>this['_getViewJson'](_0xfe0389));return JSON['stringify'](_0x5df2bd);}['_getViewJson'](_0x83e1ad){if(_0x83e1ad['is']('$text'))return _0x83e1ad['data'];{const _0x30f675=_0x83e1ad;return{'type':Object['keys'](E)['find'](_0x490d37=>_0x83e1ad instanceof E[_0x490d37]),'name':_0x30f675['name'],'attributes':Array['from'](_0x30f675['getAttributes']()),'children':Array['from'](_0x30f675['getChildren']())['map'](_0x120148=>this['_getViewJson'](_0x120148))};}}['_markChanges'](_0x5c3ea0,_0x272bc4,_0x2418f8,_0x448c2c,_0x5598ba){let _0x35d6ba=null,_0x162214=null,_0x7da0e4=0x0;const _0x4d4841=this['editor']['model'];for(let _0x142138=0x0;_0x142138<_0x272bc4['length'];_0x142138++){const _0x7a6e3d=this['_getVidAttributeName'](_0x272bc4[_0x142138]),_0x2afce9=_0x272bc4[_0x142138]['item']['getAttribute'](_0x7a6e3d),_0xbec615=_0x2418f8['get'](_0x2afce9),_0xc6a3af=_0x142138==_0x272bc4['length']-0x1;(!_0x35d6ba&&_0xbec615&&(_0x35d6ba=_0xbec615,_0x162214=_0x272bc4[_0x142138]),_0x35d6ba&&(!_0xbec615||_0xbec615['userId']!=_0x35d6ba['userId']))&&(_0x1bea52(_0xbec615,B(_0x162214,_0x5c3ea0,_0x4d4841),B(_0x272bc4[_0x142138],_0x5c3ea0,_0x4d4841)),_0x35d6ba=_0xbec615||null,_0x162214=_0xbec615?_0x272bc4[_0x142138]:null),_0x35d6ba&&_0xc6a3af&&_0x1bea52(_0xbec615,B(_0x162214,_0x5c3ea0,_0x4d4841),J(_0x272bc4[_0x142138],_0x5c3ea0,_0x4d4841));}function _0x1bea52(_0x546fd5,_0x4c5315,_0x308640){const _0x1cc067=_0x35d6ba['userId'],_0x4ccda8='revision:'+_0x448c2c+':'+_0x1cc067+':'+_0x7da0e4++,_0x450503=_0x4d4841['createRange'](_0x4c5315,_0x308640);_0x5c3ea0['markers']['set'](_0x4ccda8,_0x450503),null!==_0x1cc067&&_0x5598ba['add'](_0x1cc067);}}['_getVidAttributeName'](_0x301acf){switch(_0x301acf['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x245506,_0x5bdcd6){_0x245506['baseVersion']=null;for(const _0x4ac1b6 in _0x245506){const _0x131ae6=_0x245506[_0x4ac1b6];if(_0x131ae6 instanceof vt){const _0xe32de0=_0x5bdcd6['get'](_0x131ae6['root']['rootName']);_0x245506[_0x4ac1b6]=this['_fixPosition'](_0x131ae6,_0xe32de0);}if(_0x131ae6 instanceof ft){const _0x1f5594=_0x5bdcd6['get'](_0x131ae6['root']['rootName']);_0x245506[_0x4ac1b6]=this['_fixRange'](_0x131ae6,_0x1f5594);}'root'===_0x4ac1b6&&(_0x245506['root']=_0x5bdcd6['get'](_0x245506['root']['rootName']));}}['_fixRange'](_0x3fffaa,_0x2b602c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3fffaa['start'],_0x2b602c),this['_fixPosition'](_0x3fffaa['end'],_0x2b602c));}['_fixPosition'](_0x395317,_0x1092a2){return this['editor']['model']['createPositionFromPath'](_0x1092a2,_0x395317['path'],_0x395317['stickiness']);}['_handleInsertOperation'](_0x1778b7){const _0x43edf0=this['_idsRoots']['get'](_0x1778b7['position']['root']['rootName']),_0x3a40ac=this['_fixPosition'](_0x1778b7['position'],_0x43edf0),_0x33548a=null===_0x1778b7['_authorId']?null:_0x1778b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x428466=_0x3a40ac['parent'],_0x224875=this['_revisionId'],_0x4bc8ef=[];for(const _0x1bc036 of _0x1778b7['nodes'])if(_0x1bc036['is']('element'))_0x4bc8ef['push'](this['_makeIdsRoot'](_0x1bc036));else{for(let _0x42ec5b=0x0;_0x42ec5b<_0x1bc036['offsetSize'];_0x42ec5b++)_0x4bc8ef['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x26c54c=this['_revisionId'];for(let _0x16c1b2=_0x224875;_0x16c1b2<_0x26c54c;_0x16c1b2++)this['_touched']['set'](_0x16c1b2,{'userId':_0x33548a});_0x428466['_insertChild'](_0x3a40ac['offset'],_0x4bc8ef);}['_handleMoveOperation'](_0x3d394c){(_0x3d394c=this['_cloneOperation'](_0x3d394c,this['_idsRoots']))['_execute']();const _0x27b9e9=null===_0x3d394c['_authorId']?null:_0x3d394c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ae409=_0x3d394c['getMovedRangeStart'](),_0xdce21e=_0x5ae409['parent'],_0x569a32=_0x5ae409['offset'];!function _0x564ad9(_0x1526d9,_0x199ab6,_0x110f32,_0x89a2e9){for(let _0x36d498=_0x110f32;_0x36d498<_0x89a2e9;_0x36d498++){const _0x2a2de2=_0x199ab6['getChild'](_0x36d498);_0x2a2de2['is']('element','$text')?_0x1526d9['set'](_0x2a2de2['getAttribute']('vid'),{'userId':_0x27b9e9}):(_0x1526d9['set'](_0x2a2de2['getAttribute']('vid_start'),{'userId':_0x27b9e9}),_0x564ad9(_0x1526d9,_0x2a2de2,0x0,_0x2a2de2['childCount']),_0x1526d9['set'](_0x2a2de2['getAttribute']('vid_end'),{'userId':_0x27b9e9}));}}(this['_touched'],_0xdce21e,_0x569a32,_0x569a32+_0x3d394c['howMany']);}['_handleMergeOperation'](_0x363b3c){const _0x27f0a6=null===(_0x363b3c=this['_cloneOperation'](_0x363b3c,this['_idsRoots']))['_authorId']?null:_0x363b3c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27f512=_0x363b3c['targetPosition']['parent'],_0x34565f=_0x363b3c['sourcePosition']['parent'],_0x697ff4=_0x27f512['getAttribute']('vid_end'),_0x58495e=_0x34565f['getAttribute']('vid_start');_0x27f512['_setAttribute']('vid_end',_0x34565f['getAttribute']('vid_end')),_0x34565f['_setAttribute']('vid_end',_0x697ff4),this['_touched']['set'](_0x58495e,{'userId':_0x27f0a6}),this['_touched']['set'](_0x697ff4,{'userId':_0x27f0a6}),_0x363b3c['_execute']();}['_handleSplitOperation'](_0x315c67){const _0x2ef5f4=null===(_0x315c67=this['_cloneOperation'](_0x315c67,this['_idsRoots']))['_authorId']?null:_0x315c67['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x460879=_0x315c67['graveyardPosition'],_0x47939e=_0x315c67['splitPosition']['parent'];_0x315c67['_execute']();const _0x562e40=_0x47939e['getAttribute']('vid_end'),_0x35dc8c=_0x315c67['insertionPosition']['nodeAfter'];if(_0x460879){const _0x13bc48=_0x35dc8c['getAttribute']('vid_end'),_0x40a445=_0x47939e['getAttribute']('vid_end');_0x47939e['_setAttribute']('vid_end',_0x13bc48),_0x35dc8c['_setAttribute']('vid_end',_0x40a445),this['_touched']['set'](_0x47939e['getAttribute']('vid_end'),{'userId':_0x2ef5f4}),this['_touched']['set'](_0x35dc8c['getAttribute']('vid_start'),{'userId':_0x2ef5f4});}else{const _0x24ff3b=this['_revisionId']++,_0x5df473=this['_revisionId']++;_0x47939e['_setAttribute']('vid_end',_0x24ff3b),_0x35dc8c['_setAttribute']('vid_start',_0x5df473),_0x35dc8c['_setAttribute']('vid_end',_0x562e40),this['_touched']['set'](_0x24ff3b,{'userId':_0x2ef5f4}),this['_touched']['set'](_0x5df473,{'userId':_0x2ef5f4});}}['_handleMarkerOperation'](_0x43e233){if(!_0x43e233['affectsData'])return;const _0x1531f1=(_0x43e233=this['_cloneOperation'](_0x43e233,this['_diffRoots']))['oldRange']?_0x43e233['oldRange']['root']:null,_0xa820c4=_0x43e233['newRange']?_0x43e233['newRange']['root']:null;_0x1531f1&&this['_markers']['delete'](_0x43e233['name']),_0xa820c4&&this['_markers']['set'](_0x43e233['name'],_0x43e233['newRange']['clone']());const _0x56e1ff=null===_0x43e233['_authorId']?null:_0x43e233['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2052f6=_0x43e233['name'];if(!this['_touchedMarkers']['has'](_0x2052f6))return void this['_touchedMarkers']['set'](_0x2052f6,{'range':_0x43e233['oldRange'],'userId':_0x56e1ff});const _0x5e4533=this['_touchedMarkers']['get'](_0x2052f6),_0x48e04d=_0x5e4533['range'],_0x4f4cdf=_0x43e233['newRange'];null==_0x48e04d&&null==_0x4f4cdf||_0x48e04d&&_0x4f4cdf&&_0x48e04d['isEqual'](_0x4f4cdf)?this['_touchedMarkers']['delete'](_0x43e233['name']):_0x5e4533['userId']=_0x56e1ff;}['_handleRootOperation'](_0x5967e4,_0x22b38d){this['_diffRoots']['has'](_0x5967e4['rootName'])?this['_diffRoots']['get'](_0x5967e4['rootName'])['_isAttached']=_0x5967e4['isAdd']:(this['_diffRoots']['set'](_0x5967e4['rootName'],F(_0x5967e4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5967e4['rootName'],{}),_0x22b38d&&this['_idsRoots']['set'](_0x5967e4['rootName'],F(_0x5967e4['rootName'],!0x0)));const _0x4ecbe2=null===_0x5967e4['_authorId']?null:_0x5967e4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ce606=this['_touchedRoots']['get'](_0x5967e4['rootName']);_0x2ce606&&_0x2ce606['userId']===_0x4ecbe2?this['_touchedRoots']['delete'](_0x5967e4['rootName']):this['_touchedRoots']['set'](_0x5967e4['rootName'],{'userId':_0x4ecbe2,'isAttached':_0x5967e4['isAdd']});}['_handleRootAttributeOperation'](_0x48eee4){const _0x43f53f=this['_diffRootsAttributes']['get'](_0x48eee4['root']['rootName']);null===_0x48eee4['newValue']?delete _0x43f53f[_0x48eee4['key']]:_0x43f53f[_0x48eee4['key']]=_0x48eee4['newValue'];}}function T(_0x2b38ac){const _0x6d6b7=F(_0x2b38ac['rootName'],_0x2b38ac['isAttached']());for(const _0xe30b81 of _0x2b38ac['getChildren']()){const _0x23f5be=_0xe30b81['_clone'](!0x0);_0x6d6b7['_appendChild'](_0x23f5be);}return _0x6d6b7;}function F(_0x15464b,_0x509567=!0x0){const _0x35941b=new gt();return _0x35941b['rootName']=_0x15464b,_0x35941b['_isAttached']=_0x509567,_0x35941b['isAttached']=()=>_0x35941b['_isAttached'],_0x35941b;}function B(_0x2ec876,_0x103f09,_0x43bb2d){const _0x32112b='elementEnd'==_0x2ec876['type']?_0x43bb2d['createPositionAt'](_0x2ec876['item'],'end'):_0x43bb2d['createPositionBefore'](_0x2ec876['item']);return _0x43bb2d['createPositionFromPath'](_0x103f09,_0x32112b['path'],_0x32112b['stickiness']);}function J(_0x5b1929,_0x5ef9f4,_0x4b8921){const _0x676ebc='elementStart'==_0x5b1929['type']?_0x4b8921['createPositionAt'](_0x5b1929['item'],0x0):_0x4b8921['createPositionAfter'](_0x5b1929['item']);return _0x4b8921['createPositionFromPath'](_0x5ef9f4,_0x676ebc['path'],_0x676ebc['stickiness']);}class os extends _0x466f03{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3c8234,_0x57f0aa){super(_0x3c8234),this['focusTracker']=new _0xa480af(),this['keystrokes']=new _0xe26ce4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x57f0aa),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x19f88f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5acf19=_0x2b3c14=>_0x2b3c14['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5acf19),this['keystrokes']['set']('arrowleft',_0x5acf19),this['keystrokes']['set']('arrowup',_0x5acf19),this['keystrokes']['set']('arrowdown',_0x5acf19);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x556543){this['revisionNameInputView']['fieldView']['element']['value']=_0x556543['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3a9fdf){const _0x4dcd39=new at(this['locale'],ti),_0x5e3930=_0x4dcd39['fieldView'];_0x5e3930['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1ea453=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3a9fdf&&(_0x1ea453+='\x20('+m(this['locale'],'optional')+')'),(_0x4dcd39['label']=_0x1ea453,_0x5e3930['on']('input',()=>{this['revisionNameInputValue']=_0x5e3930['element']['value']['trim']();}),_0x4dcd39);}}class f extends _0x13fc58{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x532fe4=this['editor'],_0x3c6108=_0x532fe4['plugins']['get']('RevisionTracker');_0x532fe4['ui']['componentFactory']['add']('revisionHistory',_0x3d54ca=>{const _0x14b923=_0x1d35f8(_0x3d54ca),_0x2ade3d=_0x14b923['panelView']['children'],_0x3198af=new _0x1d158e(_0x3d54ca),_0x312d40=new te(_0x3d54ca),_0x4d9f5a=new _0x491614(_0x3d54ca),_0x259411=new te(_0x3d54ca),_0x1e91f8=new _0x491614(_0x3d54ca);return _0x14b923['bind']('isEnabled')['to'](_0x3c6108,'isReady',_0x3c6108,'isEnabled',_0x532fe4,'isReadOnly',(_0x41a2ba,_0x4df5cb,_0xd923e7)=>_0x41a2ba&&_0x4df5cb&&!_0xd923e7),_0x14b923['buttonView']['set']({'icon':_0x344f35,'label':m(_0x3d54ca,'Revision\x20history'),'tooltip':!0x0}),_0x4d9f5a['set']({'label':m(_0x3d54ca,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4d9f5a['bind']('isEnabled')['to'](_0x3c6108,'isReady',_0x3c6108,'isEnabled',_0x532fe4,'isReadOnly',(_0xa689f3,_0x4f50e3,_0x395201)=>_0xa689f3&&_0x4f50e3&&!_0x395201),_0x4d9f5a['on']('execute',()=>this['_showDialog']()),_0x1e91f8['set']({'label':m(_0x3d54ca,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e91f8['bind']('isEnabled')['to'](_0x3c6108,'isReady',_0x532fe4,'isReadOnly',(_0xba34a2,_0x332a9c)=>_0xba34a2&&!_0x332a9c),_0x1e91f8['on']('execute',()=>{_0x532fe4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x14b923['isOpen']=!0x1,_0x532fe4['editing']['view']['focus']();}),_0x312d40['children']['add'](_0x4d9f5a),_0x259411['children']['add'](_0x1e91f8),_0x3198af['role']='menu',_0x3198af['items']['addMany']([_0x312d40,_0x259411]),_0x2ade3d['add'](_0x3198af),_0x14b923;}),_0x532fe4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1d1324=this['editor'],_0x398034=_0x1d1324['locale'],_0x188b64=new _0x3b1f51(_0x398034),_0x25066c=new _0x29d230(_0x398034);_0x188b64['buttonView']['set']({'icon':_0x344f35,'label':m(_0x398034,'Revision\x20history')});const _0x16d2b4=new _0x24b1cd(_0x398034,_0x188b64),_0x1e689c=new _0x2ea120(_0x398034);_0x1e689c['set']({'label':m(_0x398034,'Save\x20current\x20revision')}),_0x1e689c['delegate']('execute')['to'](_0x188b64),_0x1e689c['on']('execute',()=>{this['_showDialog']();}),_0x16d2b4['children']['add'](_0x1e689c),_0x25066c['items']['add'](_0x16d2b4);const _0x4d853d=new _0x24b1cd(_0x398034,_0x188b64),_0x3da3f7=new _0x2ea120(_0x398034);return _0x3da3f7['set']({'label':m(_0x398034,'Open\x20revision\x20history')}),_0x3da3f7['delegate']('execute')['to'](_0x188b64),_0x3da3f7['on']('execute',()=>{_0x1d1324['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4d853d['children']['add'](_0x3da3f7),_0x25066c['items']['add'](_0x4d853d),_0x188b64['panelView']['children']['add'](_0x25066c),_0x188b64;}['_showDialog'](){const _0x62d16d=this['editor'],_0x146596=_0x62d16d['locale'],_0x4f6541=_0x62d16d['plugins']['get']('Dialog'),_0x2159de=_0x62d16d['plugins']['get']('RevisionTracker');function _0x38e1a8(_0x293bfe){_0x62d16d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x293bfe['revisionName']?_0x293bfe['revisionNameInputView']['errorText']=m(_0x146596,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x62d16d['plugins']['get'](u)['saveRevision']({'name':_0x293bfe['revisionName']}),_0x4f6541['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x38e1a8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4f6541['show']({'id':'revisionSave','title':m(_0x146596,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x62d16d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4f6541['hide']()},{'label':m(_0x62d16d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xba455){_0xba455['bind']('isEnabled')['to'](_0x2159de,'isReady',_0x2159de,'isEnabled',_0x62d16d,'isReadOnly',(_0x3432d1,_0x35c472,_0x481e3c)=>_0x3432d1&&_0x35c472&&!_0x481e3c);},'onExecute':()=>_0x38e1a8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x40941b=this['editor'],_0x34bbdf=_0x40941b['locale'];this['_saveRevisionFormView']=new os(_0x34bbdf,_0x40941b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x466f03{['changeId'];['_model'];constructor(_0x1bd529,_0x4655f8){super(_0x1bd529),this['_model']=_0x4655f8,this['changeId']=_0x4655f8['id'];const _0x5f301a=this['bindTemplate'],_0x1fc51a=m(_0x1bd529,_0x4655f8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4655f8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4655f8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5f301a['to']('type',_0x350a53=>'ck-revision-change__'+_0x350a53)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1fc51a}]},{'text':'\x20'+_0x4655f8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x2dd53b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x44b0e4){super(),this['id']=_0x44b0e4['id']||_0x1e756b(),this['author']=_0x44b0e4['author'],this['type']=_0x44b0e4['type'],this['data']=_0x44b0e4['data']||{},this['rootName']=_0x44b0e4['rootName'],this['set']('createdAt',_0x44b0e4['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x129adb,_0x3a8d02){this['newRevisionId']=_0x129adb,this['oldRevisionId']=_0x3a8d02,this['changes']=new _0x45d5c2();}['_setChanges'](_0x50eef6){for(const _0x2e9702 of _0x50eef6)this['changes']['add'](_0x2e9702);}}const Y={'c':_0x533b4e,'a':_0x38e199,'e':_0xa901c4,'r':_0x115453,'u':_0x41d931};class d extends _0x13fc58{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xc1ab57,_0x515bcc,j];}constructor(_0x5bab43){super(_0x5bab43),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3cee43,_0x459239,_0x4f04af)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5edd57=>{for(const _0x4ba112 of this['editor']['editing']['view']['document']['roots'])_0x4f04af?_0x5edd57['removeClass']('ck-editor__editable__overlay',_0x4ba112):_0x5edd57['addClass']('ck-editor__editable__overlay',_0x4ba112);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2c9e91=>null!==_0x2c9e91),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x11df07,_0x1a946d,_0x47d289)=>_0x11df07&&_0x47d289?_0x1a946d['changes']['getIndex'](_0x47d289):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3666d4,_0x2c1afd)=>_0x3666d4?_0x2c1afd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x515bcc);}['init'](){const _0x48e67c=this['editor'],_0x26a55c=new yt(_0x48e67c,{'direction':'backward'}),_0x43f61c=new yt(_0x48e67c,{'direction':'forward'});(_0x48e67c['commands']['add']('showPreviousChange',_0x26a55c),_0x48e67c['commands']['add']('showNextChange',_0x43f61c),_0x48e67c['commands']['add']('restoreRevision',new _t(_0x48e67c)),this['on']('change:numberOfChanges',()=>{_0x26a55c['refresh'](),_0x43f61c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x48e67c['enableReadOnlyMode']('revision-viewer'),_0x48e67c['plugins']['has']('WidgetToolbarRepository'))&&_0x48e67c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xb3a506){await this['loadRevisionData'](_0xb3a506);const _0x43394b={};for(const _0x4b5a29 in _0xb3a506['diffData']){if(_0xb3a506['diffData'][_0x4b5a29]['attachChange']&&!_0xb3a506['diffData'][_0x4b5a29]['attachChange']['isAttached'])continue;const _0x25925=this['_removeRevisionMarkers'](JSON['parse'](_0xb3a506['diffData'][_0x4b5a29]['insertions'])),_0x4d0f98=this['editor']['editing']['view']['document'],_0x24f8e5=new _0x46cadc(_0x4d0f98,_0x25925['map'](_0x418e10=>this['_getViewObj'](_0x418e10)));this['editor']['data']['processor']['useFillerType']('marked'),_0x43394b[_0x4b5a29]=this['editor']['data']['processor']['toData'](_0x24f8e5),this['editor']['data']['processor']['useFillerType']('default');}return _0x43394b;}async['getRevisionRootsAttributes'](_0x4ee098){await this['loadRevisionData'](_0x4ee098);const _0x486e12={};for(const _0xf015c6 in _0x4ee098['diffData'])_0x4ee098['diffData'][_0xf015c6]['attachChange']&&!_0x4ee098['diffData'][_0xf015c6]['attachChange']['isAttached']||(_0x486e12[_0xf015c6]=_0x4ee098['diffData'][_0xf015c6]['attributesAfter']||{});return _0x486e12;}['_removeRevisionMarkers'](_0x3171d6){return(_0x3171d6=_0x3171d6['filter'](_0x4c573a=>!_0x4c573a['name']||'revision-start'!==_0x4c573a['name']&&'revision-end'!==_0x4c573a['name']))['forEach'](_0x4ece74=>{'string'!=typeof _0x4ece74&&(_0x4ece74['children']=this['_removeRevisionMarkers'](_0x4ece74['children']),_0x4ece74['attributes']=_0x4ece74['attributes']['filter'](_0x136f3a=>!_0x136f3a[0x0]['startsWith']('data-revision-')));}),_0x3171d6;}async['compare'](_0x1a1179,_0x8a9ba7,_0x4533aa=!0x1){if(!this['isEnabled'])return;const _0x16bb39=this['diff'],_0x4c0323=this['repository'],_0x18491a='string'==typeof _0x1a1179?_0x4c0323['getRevision'](_0x1a1179):_0x1a1179,_0x596ebb='string'==typeof _0x8a9ba7?_0x4c0323['getRevision'](_0x8a9ba7):_0x8a9ba7,_0xd90c90=_0x18491a['id'],_0x41a01c=_0x596ebb?_0x596ebb['id']:null;if(!_0x4533aa&&this['diff']&&this['diff']['newRevisionId']===_0xd90c90&&this['diff']['oldRevisionId']===_0x41a01c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xd90c90,_0x41a01c);const _0x3779e3=this['_getRevisionsRange'](_0x18491a,_0x596ebb,!0x0)['map'](_0x579b1b=>this['loadRevisionData'](_0x579b1b));return _0x3779e3['push'](new Promise(_0x5e5ac5=>{setTimeout(_0x5e5ac5,0x14);})),Promise['all'](_0x3779e3)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x10e928=this['_getDiff'](_0xd90c90,_0x41a01c);for(const _0x7e26a5 of _0x10e928['changes'])this['_changeIdToChange']['set'](_0x7e26a5['id'],_0x7e26a5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e5311=>{for(const _0x3414fc of this['editor']['model']['document']['getRootNames']())_0x3e5311['detachRoot'](_0x3414fc);for(const _0x433040 of Object['keys'](_0x10e928['model'])){const _0x581032=_0x3e5311['addRoot'](_0x433040);for(const _0x319df1 of Object['keys'](_0x10e928['attributes'][_0x433040]))_0x3e5311['setAttribute'](_0x319df1,_0x10e928['attributes'][_0x433040][_0x319df1],_0x581032);_0x3e5311['insert'](_0x10e928['model'][_0x433040],_0x581032,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x10e928['changes'])),this['isReady']=!0x0;})['catch'](_0x37e0e1=>{console['error'](_0x37e0e1),this['_cleanUp'](),_0x16bb39&&(this['diff']=_0x16bb39),this['isReady']=!0x0;});}['addRevisionData'](_0x25ed1d,_0xefeda0){const _0x5666f6=this['repository']['createRevision'](_0x25ed1d);return _0x5666f6['on']('_update',(_0x1c799e,_0x3c6ba9,_0xebfd3b)=>_0xefeda0(_0x3c6ba9,_0xebfd3b,_0x5666f6)),this['repository']['addRevision'](_0x5666f6),_0x5666f6;}['loadRevisionData'](_0xea84e2){if(!_0xea84e2||_0xea84e2['diffData'])return Promise['resolve']();{const _0x3d624b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3d624b,'revisionId':_0xea84e2['id']})['then'](_0x188188=>{_0xea84e2['_update']({'diffData':_0x188188['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a525f=>{for(const _0x48b676 of this['editor']['model']['document']['getRootNames']())_0x3a525f['detachRoot'](_0x48b676);});}['_sortAndFilterDiffChanges'](_0x6207c6){const _0x33237e=[],_0x4d8793=new Map();for(const _0x1abe4a of this['editor']['model']['document']['getRootNames']()){const _0x429a28=this['editor']['editing']['view']['getDomRoot'](_0x1abe4a);if(!_0x429a28)continue;const _0xf12152=_0x429a28['getClientRects']()['item'](0x0);_0xf12152&&(_0x33237e['push'](_0x1abe4a),_0x4d8793['set'](_0x1abe4a,_0xf12152));}return _0x33237e['sort']((_0x3623e3,_0x1eb9b1)=>{const _0x332c48=_0x4d8793['get'](_0x3623e3),_0x103eaf=_0x4d8793['get'](_0x1eb9b1);return _0x332c48['y']-_0x103eaf['y']||_0x332c48['x']-_0x103eaf['x'];}),(_0x6207c6=_0x6207c6['filter'](_0x3a1251=>_0x33237e['includes'](_0x3a1251['rootName'])))['sort']((_0x223aa9,_0x4f603d)=>_0x33237e['indexOf'](_0x223aa9['rootName'])-_0x33237e['indexOf'](_0x4f603d['rootName'])),_0x6207c6;}['_makeTape'](_0x2d7589){const _0xae7633=Array['from'](_0x2d7589['markers'])['filter'](([_0x43c274,_0x2deccc])=>_0x43c274['startsWith']('revision:')&&!_0x2deccc['isCollapsed']),_0x15f517=Array['from'](this['editor']['model']['createRangeIn'](_0x2d7589)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xae7633['length'])for(const _0x28db36 of _0x15f517){const [_0x38e20a,_0x449b5b]=_0xae7633[0x0],[,_0x3811ac,_0x4adf85]=_0x38e20a['split'](':');if(_0x449b5b['end']['isEqual'](_0x28db36['nextPosition'])&&_0xae7633['shift'](),(_0x28db36['previousPosition']['isEqual'](_0x449b5b['start'])||_0x28db36['previousPosition']['isAfter'](_0x449b5b['start']))&&('insertion'==_0x3811ac?_0x28db36['isAdded']={'userId':_0x4adf85}:'deletion'==_0x3811ac&&(_0x28db36['isRemoved']={'userId':_0x4adf85})),0x0==_0xae7633['length'])break;}return _0x15f517;}['_refreshStartEndIndex'](_0x58108d){const _0x4e8735=new Map();for(let _0x41c739=0x0;_0x41c739<_0x58108d['length'];_0x41c739++)'text'===_0x58108d[_0x41c739]['type']?(_0x58108d[_0x41c739]['item']['startIndex']=_0x41c739,_0x58108d[_0x41c739]['item']['endIndex']=_0x41c739):('elementStart'===_0x58108d[_0x41c739]['type']?_0x58108d[_0x41c739]['item']['startIndex']=_0x41c739:'elementEnd'===_0x58108d[_0x41c739]['type']&&(_0x58108d[_0x41c739]['item']['endIndex']=_0x41c739),_0x4e8735['set'](_0x58108d[_0x41c739]['id'],_0x41c739));for(const _0x11b551 of _0x4e8735['values']())'elementStart'===_0x58108d[_0x11b551]['type']?_0x58108d[_0x11b551]['item']['endIndex']=_0x4e8735['get'](_0x58108d[_0x11b551]['pairId']):'elementEnd'===_0x58108d[_0x11b551]['type']&&(_0x58108d[_0x11b551]['item']['startIndex']=_0x4e8735['get'](_0x58108d[_0x11b551]['pairId']));}['_processTape'](_0x4acbd5){for(let _0x103580=0x0;_0x103580<_0x4acbd5['length'];_0x103580++){if('elementStart'===_0x4acbd5[_0x103580]['type'])_0x4acbd5[_0x103580]['item']['startIndex']=_0x103580;else{if('elementEnd'===_0x4acbd5[_0x103580]['type']){_0x4acbd5[_0x103580]['item']['endIndex']=_0x103580;const _0x343434=_0x4acbd5[_0x103580]['item']['startIndex'];_0x4acbd5[_0x343434]['pairId']=_0x4acbd5[_0x103580]['id'],_0x4acbd5[_0x103580]['pairId']=_0x4acbd5[_0x343434]['id'];}else _0x4acbd5[_0x103580]['item']['startIndex']=_0x103580,_0x4acbd5[_0x103580]['item']['endIndex']=_0x103580,_0x4acbd5[_0x103580]['pairId']=null;}_0x4acbd5[_0x103580]['markersStart']||(_0x4acbd5[_0x103580]['markersStart']=[],_0x4acbd5[_0x103580]['markersEnd']=[]);}}['_markInsertions'](_0x3bc1b8,_0x3f346b){const _0x92e0d9=_0x3bc1b8['filter'](_0x7f497d=>!_0x7f497d['isAdded']);for(let _0x5bae28=0x0;_0x5bae28<_0x3f346b['length'];_0x5bae28++)_0x3f346b[_0x5bae28]['isAdded']&&(_0x92e0d9[_0x5bae28]['isAdded']=_0x3f346b[_0x5bae28]['isAdded']);}['_makeModelFromViewString'](_0x3e4daa){const _0x4a26da=JSON['parse'](_0x3e4daa),_0x29b314=this['editor']['editing']['view']['document'],_0xe8eeae=new _0x46cadc(_0x29b314,_0x4a26da['map'](_0x4aaa11=>this['_getViewObj'](_0x4aaa11)));return this['editor']['data']['toModel'](_0xe8eeae);}['_getViewObj'](_0x53fdcb){const _0x31dbd2=this['editor']['editing']['view']['document'];if('string'==typeof _0x53fdcb)return new _0x3b3f30(_0x31dbd2,_0x53fdcb);{const _0x1f08c5=_0x53fdcb['children']['map'](_0x93ac14=>this['_getViewObj'](_0x93ac14));return new(Y[_0x53fdcb['type']]||_0x20dfc0)(_0x31dbd2,_0x53fdcb['name'],_0x53fdcb['attributes'],_0x1f08c5);}}['_getDiff'](_0x5bcf16,_0x196bdd=null){const _0x4bc914=this['repository']['getRevision'](_0x5bcf16),_0x597619=_0x196bdd?this['repository']['getRevision'](_0x196bdd):null,_0x129634=this['_getRevisionsRange'](_0x4bc914,_0x597619),_0x4e4635=_0x129634[_0x129634['length']-0x1],_0x2bb8a7=new Map(),_0x49683c={'model':{},'attributes':{},'changes':[]},_0x412fe8=new Set(),_0x3b194f=new Map();for(let _0x340d21=_0x129634['length']-0x1;_0x340d21>=0x0;_0x340d21--){const _0x1758f9=_0x129634[_0x340d21];for(const _0x2e5144 of Object['keys'](_0x1758f9['diffData']))if(_0x1758f9['diffData'][_0x2e5144]['attachChange']){const _0x56e6d7=_0x1758f9['diffData'][_0x2e5144]['attachChange'];_0x56e6d7['isAttached']?(_0x412fe8['add'](_0x2e5144),_0x3b194f['has'](_0x2e5144)&&_0x3b194f['get'](_0x2e5144)['userId']==_0x56e6d7['userId']?_0x3b194f['delete'](_0x2e5144):_0x3b194f['set'](_0x2e5144,_0x56e6d7)):_0x3b194f['has'](_0x2e5144)?(_0x412fe8['delete'](_0x2e5144),_0x3b194f['delete'](_0x2e5144)):(_0x412fe8['add'](_0x2e5144),_0x3b194f['set'](_0x2e5144,_0x56e6d7));}else _0x412fe8['add'](_0x2e5144);}for(const _0x593298 of _0x412fe8){const _0x1c2ac0=_0x3b194f['has'](_0x593298)&&!_0x3b194f['get'](_0x593298)['isAttached'];let _0x26dcb0=_0x1c2ac0?_0x129634['length']-0x1:0x0;const _0x7621c8=_0x1c2ac0?-0x1:0x1;for(;_0x129634[_0x26dcb0];){const _0xece9b2=_0x129634[_0x26dcb0];if(_0xece9b2['diffData'][_0x593298]){const _0x42979e=_0x1c2ac0?_0xece9b2['diffData'][_0x593298]['attributesBefore']:_0xece9b2['diffData'][_0x593298]['attributesAfter'];_0x49683c['attributes'][_0x593298]=_0x42979e?_0x2b5a55(_0x42979e):{};break;}_0x26dcb0+=_0x7621c8;}}for(const _0x5a0a98 of _0x129634){_0x5a0a98['model']={};for(const _0x41e5ff of _0x5a0a98['authors'])_0x2bb8a7['set'](_0x41e5ff['id'],_0x41e5ff);for(const _0x2341fe of _0x412fe8){const _0x3b1008=_0x5a0a98['diffData'][_0x2341fe]?_0x5a0a98['diffData'][_0x2341fe]['insertions']:'[]',_0x152da8=_0x5a0a98['diffData'][_0x2341fe]?_0x5a0a98['diffData'][_0x2341fe]['deletions']:'[]';_0x5a0a98['model'][_0x2341fe]={'insertions':this['_makeModelFromViewString'](_0x3b1008),'deletions':this['_makeModelFromViewString'](_0x152da8)};}}for(const _0x1b07e9 of _0x412fe8){let _0x3ccd4b=null,_0xaa010c=0x0;const _0xf13cda=new Map(Array['from'](_0x4bc914['model'][_0x1b07e9]['insertions']['markers'])['filter'](([_0x754e87])=>!_0x754e87['startsWith']('revision:')));let _0x47a8fa=0x0;for(const _0x671b00 of _0x129634){const _0x236989=this['_makeTape'](_0x671b00['model'][_0x1b07e9]['insertions']);_0x671b00==_0x4bc914?(_0x3ccd4b=_0x236989,_0xaa010c=_0x3ccd4b['length'],_0x3ccd4b['forEach'](_0xae1081=>{_0xae1081['id']=_0x47a8fa++;}),this['_processTape'](_0x3ccd4b)):this['_markInsertions'](_0x3ccd4b,_0x236989);const _0x3e01c3=_0x3ccd4b['filter'](_0x4145d2=>!_0x4145d2['isAdded'])['map'](_0x4c50bc=>_0x4c50bc['id']);let _0x56fc1f=0x0;const _0x32542b=this['_makeTape'](_0x671b00['model'][_0x1b07e9]['deletions']);_0x32542b['forEach'](_0x2a5218=>{_0x2a5218['isRemoved']?_0x2a5218['id']=_0xaa010c++:_0x2a5218['id']=_0x3e01c3[_0x56fc1f++];}),this['_processTape'](_0x32542b),this['_setDistance'](_0x3ccd4b,'isAdded'),this['_setDistance'](_0x32542b,'isRemoved'),_0x671b00==_0x4bc914&&this['_markMarkers'](_0x3ccd4b,_0xf13cda),_0x3ccd4b=this['_joinTapes'](_0x3ccd4b,_0x32542b),this['_refreshStartEndIndex'](_0x3ccd4b),this['_setDistance'](_0x3ccd4b,'isRemoved');}_0x3ccd4b=_0x3ccd4b['filter'](_0x361528=>!(_0x361528['isAdded']&&_0x361528['isRemoved']));const _0x55e7cc=new Map(_0x4e4635['model'][_0x1b07e9]['deletions']['markers']),_0x6e0631=new Set(_0xf13cda['keys']());for(const _0x2aba25 of _0x55e7cc['keys']())_0x6e0631['delete'](_0x2aba25);this['_markSuggestions'](_0x3ccd4b,_0x6e0631),this['_fixObsoleteTags'](_0x3ccd4b),_0x3ccd4b=this['_removeMissingPairs'](_0x3ccd4b),_0x3ccd4b=this['_markMismatchedRemovedTags'](_0x3ccd4b),_0x3ccd4b=this['_removeUnsupportedChanges'](_0x3ccd4b);const {root:_0x4fa05c,changes:_0x4b51a1}=this['_makeModelFromTape'](_0x3ccd4b,_0x2bb8a7,_0x1b07e9);_0x49683c['model'][_0x1b07e9]=_0x4fa05c;const _0x1959f1=_0x3b194f['get'](_0x1b07e9);if(_0x1959f1){const _0x11a662=_0x2bb8a7['get'](_0x1959f1['userId']),_0x2df4f5=new r({'author':_0x11a662,'type':_0x1959f1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1b07e9});_0x4b51a1['unshift'](_0x2df4f5),_0x49683c['attributes'][_0x1b07e9]['revisionHistoryAttachChange']=_0x2df4f5['id'];}_0x49683c['changes']=_0x49683c['changes']['concat'](_0x4b51a1);}return _0x49683c;}['_markMarkers'](_0x25ab9a,_0x310fdc){for(let _0x24cf02=0x0;_0x24cf02<_0x25ab9a['length'];_0x24cf02++)for(const [_0x3457c1,_0x15f305]of _0x310fdc)_0x15f305['start']['isEqual'](_0x25ab9a[_0x24cf02]['previousPosition'])&&_0x25ab9a[_0x24cf02]['markersStart']['push'](_0x3457c1),_0x15f305['end']['isEqual'](_0x25ab9a[_0x24cf02]['nextPosition'])&&_0x25ab9a[_0x24cf02]['markersEnd']['push'](_0x3457c1);}['_joinTapes'](_0x41ccec,_0x986e7e){let _0xd77f7d=[],_0x501a8e=0x0,_0xbf80d9=0x0;for(;_0x501a8e<_0x41ccec['length']||_0xbf80d9<_0x986e7e['length'];){const _0x2ddf9=_0x41ccec[_0x501a8e]||{},_0x5b6c1c=_0x986e7e[_0xbf80d9]||{};if(_0x2ddf9['id']==_0x5b6c1c['id'])_0x501a8e++,_0xbf80d9++,_0xd77f7d['push'](_0x2ddf9);else{if(_0x5b6c1c['isRemoved']&&_0x2ddf9['isAdded']){const {commonTape:_0x21b44e,iEnd:_0x316a5d,jEnd:_0x1cdb03}=this['_threeWayMerge'](_0x41ccec,_0x501a8e,_0x986e7e,_0xbf80d9);_0xd77f7d=_0xd77f7d['concat'](_0x21b44e),_0x501a8e=_0x316a5d,_0xbf80d9=_0x1cdb03;}else _0x5b6c1c['isRemoved']?(_0xbf80d9++,_0xd77f7d['push'](_0x5b6c1c)):(_0x501a8e++,_0xd77f7d['push'](_0x2ddf9));}}return _0xd77f7d;}['_markSuggestions'](_0x514177,_0x4c9fd2){const _0x1428c4=[];for(let _0x210ee2=0x0;_0x210ee2<_0x514177['length'];_0x210ee2++){for(let _0x512c97=0x0;_0x512c97<_0x514177[_0x210ee2]['markersStart']['length'];_0x512c97++){const _0x33a61b=_0x514177[_0x210ee2]['markersStart'][_0x512c97];if(!_0x4c9fd2['has'](_0x33a61b))continue;const {group:_0x44c600,type:_0x4e322f,authorId:_0x134bb2}=_0x297908(_0x33a61b);'revision-suggestion'!=_0x44c600||'insertion'!=_0x4e322f&&'deletion'!=_0x4e322f||(_0x1428c4['unshift']({'type':_0x4e322f,'name':_0x33a61b,'userId':_0x134bb2}),_0x514177[_0x210ee2]['markersStart']['splice'](_0x512c97,0x1),_0x512c97--);}_0x2d3904(_0x514177[_0x210ee2]);for(let _0x35079b=0x0;_0x35079b<_0x514177[_0x210ee2]['markersEnd']['length'];_0x35079b++){const _0x79059b=_0x514177[_0x210ee2]['markersEnd'][_0x35079b];if(!_0x4c9fd2['has'](_0x79059b))continue;const {group:_0xa78232,type:_0x12af76}=_0x297908(_0x79059b);if('revision-suggestion'!=_0xa78232||'insertion'!=_0x12af76&&'deletion'!=_0x12af76)continue;_0x514177[_0x210ee2]['markersEnd']['splice'](_0x35079b,0x1),_0x35079b--;const _0xcd735a=_0x1428c4['findIndex'](_0x4a2510=>_0x4a2510['name']==_0x79059b);_0xcd735a>-0x1&&_0x1428c4['splice'](_0xcd735a,0x1);}}function _0x297908(_0x1d403a){const _0x5c98f1=_0x1d403a['split'](':');return{'group':_0x5c98f1[0x0],'type':_0x5c98f1[0x1],'subType':_0x5c98f1['length']>=0x5?_0x5c98f1[0x2]:null,'id':_0x5c98f1['length']<0x5?_0x5c98f1[0x2]:_0x5c98f1[0x3],'authorId':_0x5c98f1['length']<0x5?_0x5c98f1[0x3]:_0x5c98f1[0x4],'markerCount':0x6==_0x5c98f1['length']?_0x5c98f1[0x5]:null};}function _0x2d3904(_0x3b5899){for(let _0x50944c=0x0;_0x50944c<_0x1428c4['length'];_0x50944c++){if(_0x3b5899['isAdded']&&'insertion'==_0x1428c4[_0x50944c]['type'])return _0x3b5899['isAddSuggestion']=_0x1428c4[_0x50944c],void delete _0x3b5899['isAdded'];if(!_0x3b5899['isAdded']&&!_0x3b5899['isRemoved']&&'deletion'==_0x1428c4[_0x50944c]['type'])return void(_0x3b5899['isRemoveSuggestion']=_0x1428c4[_0x50944c]);}}}['_setDistance'](_0x382a85,_0x4183f5){let _0x3d48fa=0x0,_0x59f807=!0x1;const _0x563631=new Map();for(const _0x4ac7c1 of _0x382a85)_0x4ac7c1[_0x4183f5]?_0x59f807&&(_0x3d48fa++,_0x59f807=!0x1):(_0x3d48fa++,_0x59f807=!0x0),_0x563631['set'](_0x4ac7c1['id'],_0x3d48fa);for(let _0x119ce8=0x0;_0x119ce8<_0x382a85['length'];_0x119ce8++){if('isRemoved'==_0x4183f5&&_0x382a85[_0x119ce8]['isAdded']||'isAdded'==_0x4183f5&&_0x382a85[_0x119ce8]['isRemoved'])continue;if('text'==_0x382a85[_0x119ce8]['type']){_0x382a85[_0x119ce8]['distance']=0x0;continue;}const _0x3c4c82=_0x563631['get'](_0x382a85[_0x119ce8]['pairId']),_0x2ae3de=_0x563631['get'](_0x382a85[_0x119ce8]['id']);_0x382a85[_0x119ce8]['distance']=_0x3c4c82-_0x2ae3de;}}['_getRevisionsRange'](_0x2b3492,_0x469550,_0x141b82=!0x1){const _0x1b10f9=[];let _0x217ff1=this['repository']['getIndex'](_0x2b3492),_0x11cede=this['repository']['getIndex'](_0x469550);for(-0x1==_0x11cede&&(_0x11cede=this['repository']['_revisions']['length'],_0x141b82=!0x1);_0x217ff1<_0x11cede;)_0x1b10f9['push'](this['repository']['getRevision'](_0x217ff1)),_0x217ff1++;return _0x141b82&&_0x1b10f9['push'](this['repository']['getRevision'](_0x217ff1)),_0x1b10f9;}['_threeWayMerge'](_0x2d345a,_0x4dcda7,_0x5034f8,_0x3cccf7){const _0x52c1f9=this['editor']['model']['schema'];let _0x129cf0=_0x4dcda7;for(;_0x2d345a[_0x129cf0]&&_0x2d345a[_0x129cf0]['isAdded'];)_0x129cf0++;let _0xe636bd=_0x3cccf7;for(;_0x5034f8[_0xe636bd]&&_0x5034f8[_0xe636bd]['isRemoved'];)_0xe636bd++;_0x6ada86(_0x2d345a,_0x4dcda7,_0x129cf0),_0x6ada86(_0x5034f8,_0x3cccf7,_0xe636bd);const _0x1d7cf5=_0x5034f8['slice'](_0x3cccf7,_0xe636bd)['concat'](_0x2d345a['slice'](_0x4dcda7,_0x129cf0));return _0x1d7cf5['sort']((_0x315f4b,_0x58012f)=>_0x315f4b['side']!=_0x58012f['side']?_0x315f4b['side']-_0x58012f['side']:_0x315f4b['level']!=_0x58012f['level']?_0x315f4b['level']-_0x58012f['level']:_0x315f4b['distance']!=_0x58012f['distance']?_0x58012f['distance']-_0x315f4b['distance']:!!_0x315f4b['isAdded']!=!!_0x58012f['isAdded']?-0x1==_0x315f4b['side']||0x0==_0x315f4b['side']?_0x315f4b['isAdded']?-0x1:0x1:_0x315f4b['isAdded']?0x1:-0x1:_0x315f4b['index']-_0x58012f['index']),{'commonTape':_0x1d7cf5,'iEnd':_0x129cf0,'jEnd':_0xe636bd};function _0x6ada86(_0x34ef2b,_0x5b6e17,_0x2d642d){let _0x323963=-0x1,_0x19de3d=Number['POSITIVE_INFINITY'],_0x4adcda=!0x0;for(let _0x99dc5a=_0x5b6e17;_0x99dc5a<_0x2d642d;_0x99dc5a++)if(_0x52c1f9['isInline'](_0x34ef2b[_0x99dc5a]['item'])||(_0x4adcda=!0x1),_0x34ef2b[_0x99dc5a]['item']['startIndex']<_0x5b6e17&&(_0x323963=_0x99dc5a),_0x34ef2b[_0x99dc5a]['item']['endIndex']>=_0x2d642d){_0x19de3d=_0x99dc5a;break;}_0x4adcda&&(_0x323963=_0x2d642d-0x1);for(let _0x3aa51e=_0x5b6e17;_0x3aa51e<_0x2d642d;_0x3aa51e++)_0x34ef2b[_0x3aa51e]['side']=_0x3aa51e<=_0x323963?-0x1:_0x3aa51e<_0x19de3d?0x0:0x1,_0x34ef2b[_0x3aa51e]['index']=_0x3aa51e;let _0x4f7d95=0x0;for(let _0x4d75d8=_0x5b6e17;_0x4d75d8<=_0x323963;_0x4d75d8++)0x0==_0x34ef2b[_0x4d75d8]['distance']?_0x34ef2b[_0x4d75d8]['level']=_0x4f7d95:(_0x4f7d95++,_0x34ef2b[_0x4d75d8]['level']=_0x4f7d95,_0x4f7d95++);for(let _0x25164e=_0x5b6e17;_0x25164e<_0x2d642d;_0x25164e++)0x0==_0x34ef2b[_0x25164e]['side']&&(_0x34ef2b[_0x25164e]['level']=_0x4f7d95);_0x4f7d95=0x0;for(let _0x582aa4=_0x2d642d-0x1;_0x582aa4>=_0x19de3d;_0x582aa4--)0x0==_0x34ef2b[_0x582aa4]['distance']?_0x34ef2b[_0x582aa4]['level']=_0x4f7d95:(_0x4f7d95--,_0x34ef2b[_0x582aa4]['level']=_0x4f7d95,_0x4f7d95--);}}['_fixObsoleteTags'](_0x2a9e9e){const _0x4d5217=new Map(),_0x5c4ea9=this['editor']['model']['schema'];for(let _0x2980eb=0x1;_0x2980eb<_0x2a9e9e['length'];_0x2980eb++){let _0x494b95,_0x57192f,_0x35f108;const _0x583363=_0x2a9e9e[_0x2980eb],_0x4a3c32=_0x2a9e9e[_0x2980eb-0x1];if('text'==_0x583363['type'])continue;if(_0x583363['type']!=_0x4a3c32['type'])continue;if(!_0x5c4ea9['isBlock'](_0x4a3c32['item'])||_0x5c4ea9['isLimit'](_0x4a3c32['item']))continue;if(!_0x5c4ea9['isBlock'](_0x583363['item'])||_0x5c4ea9['isLimit'](_0x583363['item']))continue;if((_0x2a9e9e[_0x2980eb]['isAdded']||_0x2a9e9e[_0x2980eb]['isAddSuggestion'])&&_0x2a9e9e[_0x2980eb-0x1]['isRemoved'])_0x494b95=_0x2a9e9e[_0x2980eb],_0x57192f=_0x2a9e9e[_0x2980eb-0x1],_0x35f108=_0x2980eb-0x1;else{if(!_0x2a9e9e[_0x2980eb]['isRemoved']||!_0x2a9e9e[_0x2980eb-0x1]['isAdded']&&!_0x2a9e9e[_0x2980eb-0x1]['isAddSuggestion'])continue;_0x494b95=_0x2a9e9e[_0x2980eb-0x1],_0x57192f=_0x2a9e9e[_0x2980eb],_0x35f108=_0x2980eb;}const _0x1ccc46=_0x494b95['level']==_0x57192f['level'],_0x1320fe=Math['abs'](_0x494b95['level'])<Math['abs'](_0x57192f['level'])&&0x0==_0x57192f['distance'];(_0x1ccc46||_0x1320fe)&&(_0x4d5217['set'](_0x57192f['id'],_0x494b95['id']),_0x2a9e9e['splice'](_0x35f108,0x1),_0x2980eb--,_0x494b95['isAdded']=!0x1);}for(let _0x59fc89=0x0;_0x59fc89<_0x2a9e9e['length'];_0x59fc89++)_0x4d5217['has'](_0x2a9e9e[_0x59fc89]['pairId'])&&(_0x2a9e9e[_0x59fc89]['pairId']=_0x4d5217['get'](_0x2a9e9e[_0x59fc89]['pairId']));}['_removeMissingPairs'](_0x45cbac){const _0x45143d=new Set(_0x45cbac['map'](_0x550c13=>_0x550c13['id']));for(let _0x443305=0x0;_0x443305<_0x45cbac['length'];_0x443305++)_0x45143d['has'](_0x45cbac[_0x443305]['pairId'])||0x0==_0x45cbac[_0x443305]['distance']||(_0x45cbac[_0x443305]['isIncorrect']=!0x0);return _0x45cbac['filter'](_0x263d82=>!_0x263d82['isIncorrect']);}['_markMismatchedRemovedTags'](_0x22a146){const _0xda255a=new Set();for(let _0x7a1625=0x0;_0x7a1625<_0x22a146['length'];_0x7a1625++){if(_0xda255a['has'](_0x22a146[_0x7a1625]['id'])&&_0x22a146[_0x7a1625]['isRemoved']&&(_0x22a146[_0x7a1625]['isIncorrect']=!0x0),_0x22a146[_0x7a1625]['isIncorrect'])continue;if(0x0==_0x22a146[_0x7a1625]['distance'])continue;if('elementStart'!=_0x22a146[_0x7a1625]['type'])continue;if(null==_0x22a146[_0x7a1625]['pairId'])continue;let _0x1d2580=_0x7a1625+0x1,_0x48ace3=0x0;for(;_0x22a146[_0x1d2580]['id']!=_0x22a146[_0x7a1625]['pairId'];)'elementStart'==_0x22a146[_0x1d2580]['type']?_0x48ace3++:'elementEnd'==_0x22a146[_0x1d2580]['type']&&_0x48ace3--,_0x1d2580++;if(0x0!=_0x48ace3){if(_0x22a146[_0x7a1625]['isRemoved'])_0x22a146[_0x7a1625]['isIncorrect']=!0x0;else{for(;_0x1d2580!=_0x7a1625;)_0x22a146[_0x1d2580]['isRemoved']&&0x0!=_0x22a146[_0x1d2580]['distance']&&(_0x22a146[_0x1d2580]['isIncorrect']=!0x0,_0xda255a['add'](_0x22a146[_0x1d2580]['pairId'])),_0x1d2580--;}}}return _0x22a146['filter'](_0x410eba=>!_0x410eba['isIncorrect']);}['_removeUnsupportedChanges'](_0x221566){const _0x38a498=this['editor']['model']['schema'];for(let _0x27d87e=0x0;_0x27d87e<_0x221566['length'];_0x27d87e++){if(!(_0x221566[_0x27d87e]['isAdded']||_0x221566[_0x27d87e]['isAddSuggestion']||_0x221566[_0x27d87e]['isRemoved']||_0x221566[_0x27d87e]['isRemoveSuggestion']))continue;if(0x0==_0x221566[_0x27d87e]['distance'])continue;const _0x32d195=_0x221566[_0x27d87e]['item'];_0x38a498['isBlock'](_0x32d195)||_0x38a498['isLimit'](_0x32d195)||(_0x221566[_0x27d87e]['isAdded']&&delete _0x221566[_0x27d87e]['isAdded'],_0x221566[_0x27d87e]['isAddSuggestion']&&delete _0x221566[_0x27d87e]['isAddSuggestion'],_0x221566[_0x27d87e]['isRemoveSuggestion']&&delete _0x221566[_0x27d87e]['isRemoveSuggestion'],_0x221566[_0x27d87e]['isRemoved']&&(_0x221566[_0x27d87e]['isIncorrect']=!0x0));}return _0x221566['filter'](_0x5695b2=>!_0x5695b2['isIncorrect']);}['_makeModelFromTape'](_0x1fd97f,_0x222eab,_0xdb3e30){const _0xf9e25d=new gt(),_0xd64bc5=[],_0x1bd2d3=new Map(),_0x3f62f2=this['editor']['model'],_0x4ca54e=_0x3f62f2['schema'],_0x43f9cf=[_0xf9e25d],_0xef47fc={},_0x1bfca7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x232781=null;const _0x5cc171=[0x0];for(let _0x162fbf=0x0;_0x162fbf<_0x1fd97f['length'];_0x162fbf++)if('elementStart'===_0x1fd97f[_0x162fbf]['type']){_0x1fd97f[_0x162fbf]['previousPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171);const _0x4aa6f3=new ut(_0x1fd97f[_0x162fbf]['item']['name'],_0x1fd97f[_0x162fbf]['item']['getAttributes']());_0x43f9cf[0x0]['_appendChild'](_0x4aa6f3),_0x5cc171['push'](0x0),_0x43f9cf['unshift'](_0x4aa6f3),_0x1fd97f[_0x162fbf]['nextPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171);}else'elementEnd'===_0x1fd97f[_0x162fbf]['type']?(_0x43f9cf['shift'](),_0x1fd97f[_0x162fbf]['previousPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171),_0x5cc171['pop'](),_0x5cc171[_0x5cc171['length']-0x1]++,_0x1fd97f[_0x162fbf]['nextPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171)):(_0x1fd97f[_0x162fbf]['previousPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171),_0x232781?_0x232781['_data']+=_0x1fd97f[_0x162fbf]['item']['data']:_0x232781=new wt(_0x1fd97f[_0x162fbf]['item']['data'],_0x1fd97f[_0x162fbf]['item']['getAttributes']()),_0x1fd97f[_0x162fbf+0x1]&&'text'===_0x1fd97f[_0x162fbf+0x1]['type']&&_0x42ed2f(_0x232781,_0x1fd97f[_0x162fbf+0x1]['item'])||(_0x43f9cf[0x0]['_appendChild'](_0x232781),_0x232781=null),_0x5cc171[_0x5cc171['length']-0x1]+=_0x1fd97f[_0x162fbf]['item']['offsetSize'],_0x1fd97f[_0x162fbf]['nextPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171));for(let _0x32507a=0x0;_0x32507a<_0x1fd97f['length'];_0x32507a++){const _0x19c4e1=_0x1fd97f[_0x32507a]['previousPosition'],_0x49f4d9=_0x1fd97f[_0x32507a]['nextPosition'];for(const _0x50b2a9 of _0x1fd97f[_0x32507a]['markersStart'])_0x1bd2d3['set'](_0x50b2a9,{'start':_0x19c4e1,'end':null});_0x368f8f('isRemoveSuggestion',_0x32507a,_0x19c4e1,_0x49f4d9),_0x368f8f('isAddSuggestion',_0x32507a,_0x19c4e1,_0x49f4d9),_0x368f8f('isRemoved',_0x32507a,_0x19c4e1,_0x49f4d9),_0x368f8f('isAdded',_0x32507a,_0x19c4e1,_0x49f4d9);for(const _0x48a756 of _0x1fd97f[_0x32507a]['markersEnd']){_0x1bd2d3['get'](_0x48a756)['end']=_0x49f4d9;}}for(const [_0x2884b5,_0x218a5c]of _0x1bd2d3){const _0x254ef3=this['editor']['model']['createRange'](_0x218a5c['start'],_0x218a5c['end']);_0xf9e25d['markers']['set'](_0x2884b5,_0x254ef3);}return _0xd64bc5['sort']((_0x2c8dbe,_0x2ba4cd)=>{const _0x3e1ca1=_0xf9e25d['markers']['get']('revision:'+_0x2c8dbe['id']),_0x1a5f45=_0xf9e25d['markers']['get']('revision:'+_0x2ba4cd['id']);return _0x3e1ca1['start']['isBefore'](_0x1a5f45['start'])?-0x1:_0x3e1ca1['start']['isAfter'](_0x1a5f45['start'])?0x1:_0x3e1ca1['end']['isBefore'](_0x1a5f45['end'])?-0x1:_0x3e1ca1['end']['isAfter'](_0x1a5f45['end'])?0x1:'add'===_0x2c8dbe['type']?-0x1:0x1;}),{'root':_0xf9e25d,'changes':_0xd64bc5};function _0x368f8f(_0x219a30,_0x3cf583,_0x526303,_0xad154e){const _0x2dbabb=!!_0x1fd97f[_0x3cf583][_0x219a30],_0x365e4d=_0x2dbabb?_0x1fd97f[_0x3cf583][_0x219a30]['userId']:null,_0x1426b3=_0x3cf583===_0x1fd97f['length']-0x1,_0x28daed=_0x1bfca7[_0x219a30][0x0],_0x2896f3=_0x4ca54e['isObject'](_0x1fd97f[_0x3cf583]['item']);!_0xef47fc[_0x219a30]&&_0x2dbabb?_0xef47fc[_0x219a30]={'start':_0x526303,'tapeItem':_0x1fd97f[_0x3cf583],'userId':_0x365e4d,'type':_0x219a30}:_0xef47fc[_0x219a30]&&!_0x2dbabb?(_0xef47fc[_0x219a30]['end']=_0x526303,_0x4bc7f7(_0xef47fc[_0x219a30]),_0xef47fc[_0x219a30]=null):_0xef47fc[_0x219a30]&&_0x2dbabb&&_0xef47fc[_0x219a30]['userId']!==_0x365e4d&&(_0xef47fc[_0x219a30]['end']=_0x526303,_0x28daed&&_0x28daed['userId']===_0xef47fc[_0x219a30]['userId']||_0x4bc7f7(_0xef47fc[_0x219a30]),_0xef47fc[_0x219a30]={'start':_0x526303,'tapeItem':_0x1fd97f[_0x3cf583],'userId':_0x365e4d,'type':_0x219a30}),_0xef47fc[_0x219a30]&&_0x2896f3&&('elementStart'!==_0x1fd97f[_0x3cf583]['type']||_0x28daed&&_0x28daed['userId']===_0x365e4d||_0x1bfca7[_0x219a30]['unshift']({'userId':_0x365e4d,'object':_0x1fd97f[_0x3cf583]['item'],'change':_0xef47fc[_0x219a30]}),'elementEnd'===_0x1fd97f[_0x3cf583]['type']&&_0x28daed&&_0x28daed['object']===_0x1fd97f[_0x3cf583]['item']&&(_0x1bfca7[_0x219a30]['shift'](),_0xef47fc[_0x219a30]=_0x28daed['change'])),_0xef47fc[_0x219a30]&&_0x1426b3&&(_0xef47fc[_0x219a30]['end']=_0xad154e,_0x4bc7f7(_0xef47fc[_0x219a30]),_0xef47fc[_0x219a30]=null);}function _0x4bc7f7({start:_0x4a62c1,end:_0x4e52e4,tapeItem:_0x183631,userId:_0x13a97f,type:_0x56f58f}){const _0x2fb69d=_0x183631['item'],_0x576217=_0x3f62f2['schema']['isBlock'](_0x2fb69d)&&!_0x3f62f2['schema']['isLimit'](_0x2fb69d),_0x4a8868=_0x4a62c1['nodeAfter']==_0x4e52e4['parent']&&_0x4e52e4['isAtStart'];if(_0x576217&&_0x4a8868)return;const _0x224fa5=_0x3f62f2['createRange'](_0x4a62c1,_0x4e52e4),_0xe7e733=_0x222eab['get'](_0x13a97f),_0x5f22c8=new r({'author':_0xe7e733,'type':'isAdded'==_0x56f58f||'isAddSuggestion'==_0x56f58f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x56f58f||'isRemoveSuggestion'==_0x56f58f},'createdAt':new Date(),'rootName':_0xdb3e30});_0xd64bc5['push'](_0x5f22c8),_0xf9e25d['markers']['set']('revision:'+_0x5f22c8['id'],_0x224fa5);}function _0x42ed2f(_0x182a91,_0x4dc89d){const _0x18ffb7=_0x182a91['getAttributes'](),_0x3be431=_0x4dc89d['getAttributes']();for(const _0x435dbb of _0x18ffb7){if(_0x435dbb[0x1]!==_0x4dc89d['getAttribute'](_0x435dbb[0x0]))return!0x1;_0x3be431['next']();}return _0x3be431['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x285e7d=>{const _0xf598ce=_0x285e7d['markerName']['split'](':')[0x1],_0x134cbe=this['_getChangeFromId'](_0xf598ce);if(!_0x134cbe)return null;const _0x2b6e3c='add'==_0x134cbe['type']?'insertion':'deletion',_0x3674e3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2b6e3c];return _0x134cbe['data']['isSuggestion']&&_0x3674e3['push']('ck-suggestion-marker-'+_0x2b6e3c+'-new'),this['activeChange']==_0x134cbe&&_0x3674e3['push']('ck-suggestion-marker--active'),{'classes':_0x3674e3,'attributes':{'data-change-id':_0xf598ce}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x33c5ad=>{_0x33c5ad['on']('element:pre',(_0x31ea57,_0x54f92e,_0x466c51)=>{const _0x5371f1=_0x54f92e['viewItem']['getChild'](0x0);if(!_0x5371f1||!_0x5371f1['is']('element','code'))return;if(!_0x466c51['consumable']['consume'](_0x5371f1,{'attributes':['vid_start','vid_end']}))return;const _0x2f7ee4=_0x54f92e['modelRange']['start']['nodeAfter'];_0x466c51['writer']['setAttribute']('vid_start',_0x5371f1['getAttribute']('vid_start'),_0x2f7ee4),_0x466c51['writer']['setAttribute']('vid_end',_0x5371f1['getAttribute']('vid_end'),_0x2f7ee4);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x156a26=>{_0x156a26['on']('element',(_0xf1894b,_0x4cd8df,_0x6bfcf0)=>{if(!_0x6bfcf0['consumable']['consume'](_0x4cd8df['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4cd8df['modelRange']['isCollapsed'])return;const _0x180022=_0x4cd8df['modelRange']['start']['nodeAfter'];_0x180022['hasAttribute']('vid_start')||_0x180022['hasAttribute']('vid')||(_0x6bfcf0['writer']['setAttribute']('vid_start',_0x4cd8df['viewItem']['getAttribute']('vid_start'),_0x180022),_0x6bfcf0['writer']['setAttribute']('vid_end',_0x4cd8df['viewItem']['getAttribute']('vid_end'),_0x180022));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3e0cb2=>_0x3e0cb2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x31cc5b,[,_0x465f9c])=>{['vid_start','vid_end','vid']['includes'](_0x465f9c)&&(_0x31cc5b['return']=!0x0,_0x31cc5b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bfd99=>{_0x1bfd99['on']('attribute:vid',(_0x14ac70,_0x23cf5f,_0x2e5a8f)=>{if('\x20'!=_0x23cf5f['item']['data']||_0x23cf5f['item']['parent']['maxOffset']>0x1)return;if(!_0x2e5a8f['consumable']['consume'](_0x23cf5f['item'],_0x14ac70['name']))return;const _0x218f67=_0x2e5a8f['writer'],_0x459ab6=_0x2e5a8f['mapper']['toViewRange'](_0x23cf5f['range']);_0x218f67['wrap'](_0x459ab6,_0x218f67['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1ca787){const _0x55ef4f=_0x1ca787['plugins']['get']('RevisionViewer');return(_0x26e0f4,_0x3c3221,_0x383124)=>{const _0x436ae1=_0x3c3221['markerName']['split'](':')[0x1],_0xfafd3f=_0x55ef4f['_getChangeFromId'](_0x436ae1);if(!_0xfafd3f)return null;const _0x4aa173='add'==_0xfafd3f['type']?'split':'merge';if(!_0x383124['consumable']['test'](_0x3c3221['markerRange'],_0x26e0f4['name']))return;const _0x2a38bd=_0x3c3221['markerRange']['getWalker'](),_0x52c902=_0x3c3221['markerRange']['start'],_0x486ea5=_0x1ca787['model']['schema'];let _0x4b47d4=null,_0x51f370=null,_0x755fd8=!0x1,_0x442fe=!0x1;for(const _0x349cb6 of _0x2a38bd){const _0x396fa5=_0x349cb6['item'];_0x755fd8=_0x755fd8||_0x486ea5['isContent'](_0x396fa5);const _0x15bb63=_0x383124['mapper']['toViewElement'](_0x396fa5);if(_0x15bb63&&_0x15bb63['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x349cb6['type']&&(_0x486ea5['isBlock'](_0x396fa5)&&!_0x486ea5['isLimit'](_0x396fa5)&&(_0x396fa5['nextSibling']||_0x52c902['isAtEnd']?_0x4b47d4&&_0x4b47d4['parent']==_0x396fa5||(_0x4b47d4=_0x396fa5,_0x5a67f5(_0x349cb6['previousPosition']),_0x442fe=!0x0):_0x51f370=_0x51f370||_0x349cb6['previousPosition']));}function _0x5a67f5(_0x207d1a){const _0xb4b359=_0x383124['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4aa173}),_0x3cca18=_0x383124['mapper']['toViewPosition'](_0x207d1a);_0xfafd3f['data']['isSuggestion']&&_0x383124['writer']['addClass']('ck-suggestion-marker-'+_0x4aa173+'-new',_0xb4b359),_0x55ef4f['activeChange']==_0xfafd3f&&_0x383124['writer']['addClass']('ck-suggestion-marker--active',_0xb4b359),_0x383124['writer']['insert'](_0x3cca18,_0xb4b359),_0x383124['mapper']['bindElementToMarker'](_0xb4b359,_0x3c3221['markerName']);}_0x755fd8||_0x442fe||!_0x51f370||_0x5a67f5(_0x51f370);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x228291,_0x298117,_0x2610dd)=>{const _0x2f7f8d=_0x2610dd['mapper']['markerNameToElements'](_0x298117['markerName']);if(_0x2f7f8d){for(const _0x38a0f3 of _0x2f7f8d)(_0x38a0f3['hasClass']('ck-suggestion-marker-split')||_0x38a0f3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2610dd['mapper']['unbindElementFromMarkerName'](_0x38a0f3,_0x298117['markerName']),_0x2610dd['writer']['remove'](_0x38a0f3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x249c25,_0x490ff3,_0x39bda9)=>{const _0x2962a1=_0x490ff3['markerName']['split'](':')[0x1],_0x59bc33=this['_getChangeFromId'](_0x2962a1);if(!_0x59bc33)return null;const _0x4d706f='add'==_0x59bc33['type']?'split':'merge';if(_0x39bda9['consumable']['test'](_0x490ff3['markerRange'],_0x249c25['name']))for(const _0x24eef3 of _0x490ff3['markerRange']['getItems']()){if(!_0x24eef3['is']('element','softBreak'))continue;const _0x3ed532=_0x39bda9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d706f}),_0x34887a=_0x39bda9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x24eef3));_0x59bc33['data']['isSuggestion']&&_0x39bda9['writer']['addClass']('ck-suggestion-marker-'+_0x4d706f+'-new',_0x3ed532),this['activeChange']==_0x59bc33&&_0x39bda9['writer']['addClass']('ck-suggestion-marker--active',_0x3ed532),_0x39bda9['writer']['insert'](_0x34887a,_0x3ed532),_0x39bda9['mapper']['bindElementToMarker'](_0x3ed532,_0x490ff3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3b9496=>{for(const _0x3c5d3b of this['editor']['model']['document']['getRootNames']()){const _0x3339c8=this['editor']['model']['document']['getRoot'](_0x3c5d3b),_0x4ca778=this['editor']['editing']['view']['document']['getRoot'](_0x3c5d3b);if(_0x4ca778){const _0x5900f6=_0x3339c8['getAttribute']('revisionHistoryAttachChange');if(_0x3b9496['removeAttribute']('data-change-id',_0x4ca778),_0x3b9496['removeClass']('ck-revision-history-root-add',_0x4ca778),_0x3b9496['removeClass']('ck-revision-history-root-remove',_0x4ca778),_0x3b9496['removeClass']('ck-revision-history-root--active',_0x4ca778),_0x5900f6){const _0x1f3832=this['_getChangeFromId'](_0x5900f6);if(!_0x1f3832)return null;_0x3b9496['setAttribute']('data-change-id',_0x5900f6,_0x4ca778),_0x3b9496['addClass']('ck-revision-history-root-'+_0x1f3832['type'],_0x4ca778),this['activeChange']==_0x1f3832&&_0x3b9496['addClass']('ck-revision-history-root--active',_0x4ca778);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2acc47=>'revision-comment:'+_0x2acc47,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x138b15=>'revision-suggestion:'+_0x138b15,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x48dca3=>({'name':'suggestion:'+_0x48dca3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x35f8ef=>{const _0x56d76e=_0x35f8ef['markerName']['split'](':')[0x1];return'insertion'!=_0x56d76e&&'deletion'!=_0x56d76e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x56d76e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x525f58,_0x177d1,_0x23ec0d)=>{const _0x22bd0e=_0x23ec0d['mapper']['markerNameToElements'](_0x177d1['markerName']);if(_0x22bd0e){for(const _0x47619d of _0x22bd0e)_0x47619d['is']('uiElement')&&(_0x23ec0d['mapper']['unbindElementFromMarkerName'](_0x47619d,_0x177d1['markerName']),_0x23ec0d['writer']['remove'](_0x47619d));}},{'priority':'high'});}['_getChangeFromId'](_0x284855){return this['_changeIdToChange']['get'](_0x284855);}['_getViewForChange'](_0x29701b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x29701b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x502461,_0x497438,_0x5aec4a,_0x5d04c7)=>{_0x5d04c7&&this['_balloon']['remove'](_0x5d04c7),_0x5aec4a&&(this['_balloon']['add']({'view':_0x5aec4a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f1bd5=this['editor']['editing'],_0x38092f=this['_getChangeFromId'](_0x5aec4a['changeId']);let _0x5f30ed;if(_0x38092f['data']['isOnRoot']){const _0x12d5fe=_0x2f1bd5['view']['getDomRoot'](_0x38092f['rootName']);_0x5f30ed=Array['from'](_0x12d5fe['getClientRects']());}else{const _0x54c145=this['editor']['model']['markers']['get']('revision:'+_0x5aec4a['changeId']);_0x5f30ed=Array['from'](_0x2f1bd5['mapper']['markerNameToElements'](_0x54c145['name']))['map'](_0x43ac9f=>_0x2f1bd5['view']['domConverter']['mapViewToDom'](_0x43ac9f))['map'](_0x1850af=>Array['from'](_0x1850af['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5f30ed[0x0];return _0x5f30ed['find'](_0x52af77=>_0x52af77['top']-0x3<=this['_activeViewTarget']['y']&&_0x52af77['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x52af77['left']-0x3<=this['_activeViewTarget']['x']&&_0x52af77['right']+0x3>=this['_activeViewTarget']['x'])||_0x5f30ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x25218d,_0x6a823c,_0x2f54c5,_0x18c72e)=>{this['activeView']=_0x2f54c5?this['_getViewForChange'](_0x2f54c5):null,this['editor']['model']['change'](()=>{const _0x18295d=this['editor']['editing'];_0x18c72e&&(_0x18c72e['data']['isOnRoot']?_0x18295d['view']['change'](_0x1ceb2f=>{_0x1ceb2f['removeClass']('ck-revision-history-root--active',_0x18295d['view']['document']['getRoot'](_0x18c72e['rootName']));}):_0x18295d['reconvertMarker']('revision:'+_0x18c72e['id'])),_0x2f54c5&&(_0x2f54c5['data']['isOnRoot']?_0x18295d['view']['change'](_0x317a76=>{_0x317a76['addClass']('ck-revision-history-root--active',_0x18295d['view']['document']['getRoot'](_0x2f54c5['rootName']));}):_0x18295d['reconvertMarker']('revision:'+_0x2f54c5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2f8ff0,_0x383dcc)=>{if(this['activeChange'])return;const _0x707294=this['_findChangeIdFromDomTarget'](_0x383dcc['target']),_0x1fa118=this['_changeIdToChange']['get'](_0x707294);_0x1fa118?(this['_activeViewTarget']={'x':_0x383dcc['domEvent']['x'],'y':_0x383dcc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1fa118)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x554df8,_0x44518a)=>{const _0x4bd216=this['_findChangeIdFromDomTarget'](_0x44518a['target']),_0x42318b=this['_changeIdToChange']['get'](_0x4bd216);_0x42318b?(this['_activeViewTarget']={'x':_0x44518a['domEvent']['x'],'y':_0x44518a['domEvent']['y']},_0x42318b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x42318b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xe6a1d4){do{const _0x54008c=_0xe6a1d4['getAttribute']('data-change-id');if(_0x54008c)return _0x54008c;_0xe6a1d4=_0xe6a1d4['parent'];}while(_0xe6a1d4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x270052=>{for(const _0x3e44fa of this['editor']['model']['markers'])_0x270052['removeMarker'](_0x3e44fa);});}}function Z(_0x3067f8,_0x4e9f05){return(_0x189027,_0x2cef39,_0xd68c9d)=>{if(!_0xd68c9d['consumable']['test'](_0x2cef39['markerRange'],_0x189027['name']))return;const _0x27eb4b=_0x2cef39['markerRange']['getWalker'](),_0x4b394e=_0x2cef39['markerRange']['start'],_0x2a4ad8=_0x3067f8['model']['schema'];let _0x4c00b5=null,_0x157455=null,_0x3f0e61=!0x1,_0x15709d=!0x1;for(const _0x40f356 of _0x27eb4b){const _0x1f9e36=_0x40f356['item'];_0x3f0e61=_0x3f0e61||_0x2a4ad8['isContent'](_0x1f9e36);const _0x236a8f=_0xd68c9d['mapper']['toViewElement'](_0x1f9e36);if(_0x236a8f&&_0x236a8f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40f356['type']&&(_0x2a4ad8['isBlock'](_0x1f9e36)&&!_0x2a4ad8['isLimit'](_0x1f9e36)&&(_0x1f9e36['nextSibling']||_0x4b394e['isAtEnd']?_0x4c00b5&&_0x4c00b5['parent']==_0x1f9e36||(_0x4c00b5=_0x1f9e36,_0x3ee60b(_0x40f356['previousPosition']),_0x15709d=!0x0):_0x157455=_0x157455||_0x40f356['previousPosition']));}function _0x3ee60b(_0x39e3ed){const _0x1de803=_0xd68c9d['mapper']['toViewPosition'](_0x39e3ed),_0xe597e1=_0xd68c9d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4e9f05});_0xd68c9d['writer']['insert'](_0x1de803,_0xe597e1),_0xd68c9d['mapper']['bindElementToMarker'](_0xe597e1,_0x2cef39['markerName']);}_0x3f0e61||_0x15709d||!_0x157455||_0x3ee60b(_0x157455);};}class _t extends _0x21058a{constructor(_0x40a1f8){super(_0x40a1f8);const _0x4afb17=_0x40a1f8['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4afb17,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4afb17,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2fcc92=this['editor'],_0x404533=_0x2fcc92['plugins']['get'](d),_0x52938a=_0x404533['isReady']?_0x404533['diff']['newRevisionId']:null;_0x2fcc92['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x52938a);}['refresh'](){const {isReady:_0xaf888e,isEnabled:_0x4cbba8,repository:_0x3425e0,diff:_0x4fae75}=this['editor']['plugins']['get'](d),_0x1e3f45=_0x4fae75&&_0x3425e0['getLaterVisibleRevision'](_0x4fae75['newRevisionId']);this['isEnabled']=_0xaf888e&&_0x4cbba8&&Boolean(_0x1e3f45);}}class yt extends _0x21058a{['_step'];constructor(_0x1adcf1,{direction:_0x1d5efd}){super(_0x1adcf1);const _0x23190e=_0x1adcf1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1d5efd?0x1:-0x1,this['listenTo'](_0x23190e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x23190e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x23190e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2879a9=this['editor'],_0x3cca7d=_0x2879a9['plugins']['get'](d),{isNavigationMode:_0x3a8fde,currentChangeNumber:_0x5d535a}=_0x3cca7d;let _0x420586;if(_0x3cca7d['activeChange']=_0x3a8fde?_0x3cca7d['diff']['changes']['get'](_0x5d535a+this['_step']):_0x3cca7d['diff']['changes']['first'],_0x3cca7d['activeChange']['data']['isOnRoot'])_0x420586=_0x2879a9['editing']['view']['getDomRoot'](_0x3cca7d['activeChange']['rootName']);else{const _0x3cbe9a=_0x2879a9['model']['markers']['get']('revision:'+_0x3cca7d['activeChange']['id']);_0x420586=_0x957fe3(_0x2879a9['editing'],_0x3cbe9a);}_0x1d9212({'target':_0x420586,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3376dd,currentChangeNumber:_0x1f1b90,numberOfChanges:_0x2ee420,isReady:_0x23258d,isEnabled:_0x36e959}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x36e959&&_0x23258d&&_0x2ee420)&&(!_0x3376dd||(0x1===this['_step']?_0x1f1b90<_0x2ee420-0x1:_0x1f1b90>0x0));}}class li extends _0x466f03{constructor(_0x551f2d){super(_0x551f2d);const _0x4e638c=this['bindTemplate'],_0x38f9d2=new _0x491614(_0x551f2d),_0xb6a226=new _0x491614(_0x551f2d);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x487a91,_0x4a375b)=>_0x487a91&&_0x4a375b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x113c36,_0x7fbfdc,_0x312e11,_0x2c2529)=>{if(!_0x113c36)return m(_0x551f2d,'Loading...');if(!_0x312e11)return m(_0x551f2d,'No\x20changes');const _0x1a1bc9=m(_0x551f2d,'NUMBER_OF_CHANGES',_0x312e11);return _0x2c2529?m(_0x551f2d,'X_OF_Y_CHANGES',[_0x7fbfdc+0x1,_0x312e11]):_0x1a1bc9;}),_0x38f9d2['set']({'label':m(_0x551f2d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x58741e}),_0xb6a226['set']({'label':m(_0x551f2d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5af1f1}),_0x38f9d2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xb6a226['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x38f9d2['on']('execute',()=>this['fire']('execute','backward')),_0xb6a226['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4e638c['if']('_isStatusLabelVisible','ck-hidden',_0x34cf3a=>!_0x34cf3a)]},'children':[{'text':_0x4e638c['to']('isNavigationMode',_0x2ebe51=>_0x2ebe51?m(_0x551f2d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x551f2d,'Total')+':\x20')}]},{'text':_0x4e638c['to']('_statusText')}]},new _0x495d60(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x38f9d2,_0xb6a226]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x13fc58{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x44779a=this['editor']['editing']['view'];_0x44779a['change'](_0xf7951d=>{for(const _0x5e6ea1 of _0x44779a['document']['roots'])_0xf7951d['addClass'](ce,_0x5e6ea1);});}['hide'](){const _0x5163da=this['editor']['editing']['view'];_0x5163da['change'](_0x4d9a5d=>{for(const _0x1474e0 of _0x5163da['document']['roots'])_0x4d9a5d['removeClass'](ce,_0x1474e0);});}}class w extends _0x13fc58{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x5cc991=this['editor'],_0x10dfdd=_0x5cc991['plugins']['get'](d),_0x52c096=_0x5cc991['plugins']['get'](le);_0x5cc991['ui']['componentFactory']['add']('exitToEditing',_0x4ca801=>{const _0x2665a1=new _0x491614(_0x4ca801);return _0x2665a1['set']({'label':m(_0x4ca801,'Back\x20to\x20editing'),'icon':_0xb64b68,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2665a1,'execute',()=>{_0x5cc991['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2665a1;}),_0x5cc991['ui']['componentFactory']['add']('restoreRevision',_0xb00730=>{const _0x55125e=new _0x491614(_0xb00730);return _0x55125e['set']({'label':m(_0xb00730,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x55125e['bind']('isEnabled')['to'](_0x5cc991['commands']['get']('restoreRevision')),this['listenTo'](_0x55125e,'execute',()=>_0x5cc991['execute']('restoreRevision')),_0x55125e;}),_0x5cc991['ui']['componentFactory']['add']('changesNavigation',_0x56124c=>{const _0x5de65e=new li(_0x56124c),_0x11f24a=_0x5cc991['commands']['get']('showPreviousChange'),_0x403876=_0x5cc991['commands']['get']('showNextChange');return _0x5de65e['bind']('isBackwardNavigationEnabled')['to'](_0x11f24a,'isEnabled'),_0x5de65e['bind']('isForwardNavigationEnabled')['to'](_0x403876,'isEnabled'),_0x5de65e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x10dfdd),this['listenTo'](_0x5de65e,'execute',(_0x22132c,_0x3af0ab)=>{_0x5cc991['execute']('forward'===_0x3af0ab?'showNextChange':'showPreviousChange');}),_0x5de65e;}),_0x52c096['show'](),_0x10dfdd['on']('change:isReady',(_0xca9ec1,_0x57c8e9,_0x3b2765)=>{_0x3b2765?_0x52c096['hide']():_0x52c096['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x42d388,_0x3f312b){super(_0x42d388,_0x3f312b);const _0x28cd9b=this['bindTemplate'];this['set']({'label':m(_0x42d388,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x42d388,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x28cd9b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x10b70c=this['fieldView']['element'];this['_tooltipString']=_0x10b70c['scrollWidth']>_0x10b70c['clientWidth']&&_0x10b70c['value']||'';}}class oi extends _0x466f03{constructor(_0x1d5cc3,_0x55050c,_0x726db4){super(_0x1d5cc3);const _0x29948c=new _0xf1c75d();_0x29948c['set']({'content':_0x4a3fa1,'viewBox':'0\x200\x2011\x2010'});const _0x3eb001=['ck','ck-revision-history-sidebar__revision-author'];_0x726db4&&_0x3eb001['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1039f4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1d5cc3,_0x726db4?'Revision\x20creator':'Revision\x20author')},'children':[_0x29948c,_0x55050c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3eb001},'children':_0x1039f4});}}function ni(_0x256365,_0x4ed94c){const _0x48065a=_0x256365['bindTemplate'],_0x5319b8=_0x256365['locale'],_0x16f907=_0x1d35f8(_0x5319b8);_0x16f907['panelPosition']='sw';const _0x3801c8=function(_0x2ee2ab,_0x54eb51){const _0x3d2c12=function(_0x4b7053,_0x1af379){const _0x2e439c=_0x4b7053['locale'],_0x4c1941={'Compare\x20against\x20selected':m(_0x2e439c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2e439c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2e439c,'Restore\x20this\x20revision')};return _0x1af379['map'](_0x10faea=>{const _0x4b9c97=_0x4c1941[_0x10faea['name']];return _0x4b9c97&&_0x4b9c97!==_0x10faea['name']&&(_0x10faea['name']=_0x4b9c97),_0x10faea;});}(_0x2ee2ab,_0x54eb51),_0x691894=new _0x45d5c2();for(const _0x440dc5 of _0x3d2c12){const _0x5c3c68={'type':'button','model':new to({'label':_0x440dc5['name'],'class':_0x440dc5['class'],'withText':!0x0,'role':'menuitem','_action':_0x440dc5['action']})};_0x5c3c68['model']['bind']('isEnabled')['to'](_0x2ee2ab,'isActionsDropdownOpen',_0x37b8d2=>'function'!=typeof _0x440dc5['isEnabled']||(!_0x37b8d2||_0x440dc5['isEnabled'](_0x2ee2ab))),_0x691894['add'](_0x5c3c68);}return _0x691894;}(_0x256365,_0x4ed94c);return _0x256365['bind']('isActionsDropdownOpen')['to'](_0x16f907,'isOpen'),_0x16f907['buttonView']['set']({'label':m(_0x5319b8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x19a9ed}),_0x16f907['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x48065a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x48065a['to'](_0x5a539e=>_0x5a539e['stopPropagation']())}}),_0x16f907['on']('execute',_0xb558fd=>{_0x256365['isReady']&&'function'==typeof _0xb558fd['source']['_action']&&_0xb558fd['source']['_action'](_0x256365);}),_0x15bd0e(_0x16f907,_0x3801c8,{'role':'menu'}),_0x16f907['listenTo'](_0x256365,'change:isActionsDropdownOpen',(_0x110375,_0x3e0577,_0x1d92a9)=>{if(_0x1d92a9)for(const _0x4839cc of _0x16f907['listView']['items']){const _0x179bce=_0x4839cc['children']['first'],_0x4d7b25=_0x4ed94c['find'](_0x31f9a9=>_0x31f9a9['action']===_0x179bce['_action'])['isVisible'];_0x4839cc['isVisible']=void 0x0===_0x4d7b25||_0x4d7b25(_0x256365);}}),_0x16f907;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0xf64e34(_0x466f03){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4ace2c,_0x194a4b,_0xf247a3,_0x35e917){super(_0x4ace2c);const _0x4eab49=this['bindTemplate'],_0x157eed=function(_0x9c1073,_0x389f88){const _0x536bd4=Array['from'](_0x389f88['authors'])['filter'](_0x19629b=>_0x19629b!=_0x389f88['creator']);return _0x389f88['creator']&&_0x536bd4['unshift'](_0x389f88['creator']),_0x536bd4['map'](_0x376c8f=>new oi(_0x9c1073,_0x376c8f,_0x376c8f==_0x389f88['creator']));}(_0x4ace2c,_0x194a4b);this['id']=_0x194a4b['id'],this['_revision']=_0x194a4b,this['_requireRevisionName']=_0x35e917,this['bind']('name','createdAt')['to'](_0x194a4b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4309b5=>{return _0x8f72d4=_0x4ace2c['uiLanguage'],(_0x1042e9=_0x4309b5)['toLocaleDateString'](_0x8f72d4,{'month':'long','day':'numeric'})+',\x20'+_0x1042e9['toLocaleTimeString'](_0x8f72d4,{'hour':'numeric','minute':'numeric'});var _0x8f72d4,_0x1042e9;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x4ace2c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x25a66f=>_0x25a66f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1f7182,_0x1afd75)=>_0x1f7182&&_0x1afd75),this['revisionActionsView']=_0xf247a3&&_0xf247a3['length']?ni(this,_0xf247a3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4eab49['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4eab49['if']('isEnabled','ck-disabled',_0x428ab2=>!_0x428ab2),_0x4eab49['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4eab49['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4eab49['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4eab49['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x157eed}]},this['revisionActionsView']],'on':{'click':_0x4eab49['to'](_0x5e1c89=>{_0x5e1c89['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xdf4969=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xdf4969,'change',()=>{this['_requireRevisionName']&&!_0xdf4969['value']||this['fire']('setName',{'id':this['id'],'name':_0xdf4969['value']}),_0xdf4969['value']||(_0xdf4969['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x41a3c4,_0x4acb5d){const _0x7b942d=_0x19553e['fromJSDate'](_0x41a3c4)['setLocale'](_0x4acb5d),_0x90d576=_0x19553e['local'](),_0x405c86=_0x90d576['minus']({'days':0x1})['startOf']('day');let _0x11c995,_0x5c8157;return _0x7b942d['hasSame'](_0x90d576,'day')?(_0x11c995=_0x7b942d['startOf']('day')['toJSDate'](),_0x5c8157=_0x7b942d['toRelativeCalendar']()):_0x7b942d['hasSame'](_0x405c86,'day')?(_0x11c995=_0x405c86['toJSDate'](),_0x5c8157=_0x7b942d['toRelativeCalendar']()):_0x7b942d['hasSame'](_0x90d576,'week')?(_0x11c995=_0x7b942d['startOf']('week')['toJSDate'](),_0x5c8157=_0x7b942d['weekdayLong']||''):_0x7b942d['hasSame'](_0x90d576,'year')?(_0x11c995=_0x7b942d['startOf']('month')['toJSDate'](),_0x5c8157=_0x7b942d['monthLong']||''):(_0x11c995=_0x7b942d['startOf']('year')['toJSDate'](),_0x5c8157=String(_0x7b942d['year'])),{'startDate':_0x11c995,'localizedPeriodName':_0x5c8157};}class _i extends _0x466f03{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3c21ad,_0x428573,_0x186d4d,_0xdaf51){super(_0x3c21ad);const _0x3430f8=mi(_0x428573,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x428573,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x186d4d,this['_requireRevisionName']=_0xdaf51,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3430f8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x142950){const _0x9fbbe4=new ai(this['locale'],_0x142950,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x9fbbe4);}['removeRevision'](_0x37314d){const _0x275cab=this['revisionViews']['find'](_0x3f410c=>_0x3f410c['id']===_0x37314d['id']);this['revisionViews']['remove'](_0x275cab);}}class as extends _0x466f03{constructor(_0x5995bc){super(_0x5995bc);const _0x52862e=new _0xf1c75d();_0x52862e['content']=_0x344f35,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x52862e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5995bc,'Revision\x20history')]}]});}}class vi extends _0x466f03{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5aba83,_0x303051,_0x174ee4,_0x45cbff){super(_0x5aba83);const _0x5aa822=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x303051,this['_revisionActions']=_0x174ee4,this['_requireRevisionName']=_0x45cbff,this['on']('select',(_0x5f4948,_0x39aa3d)=>{this['fire']('revisionSelected',_0x39aa3d);}),this['on']('setName',(_0x5b6d0d,_0x1fba9d)=>{this['fire']('revisionSetName',_0x1fba9d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5aba83),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5aa822['if']('isEnabled','ck-disabled',_0x11e3c0=>!_0x11e3c0)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x16d28d of this['_revisions'])this['_addRevision'](_0x16d28d);this['_revisions']['on']('add',(_0x498c53,_0xbd7718)=>{this['_addRevision'](_0xbd7718);}),this['_revisions']['on']('remove',(_0x437448,_0x54c2ef)=>{this['_removeRevision'](_0x54c2ef);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x42942e=>_0x42942e['revisionViews']['map'](_0x15a965=>_0x15a965))['flat']();}['selectRevision'](_0x149b10){for(const _0x538ca4 of this['revisionViews'])_0x149b10&&_0x149b10['id']===_0x538ca4['id']?_0x538ca4['select']():_0x538ca4['deselect']();}['highlightRevisions'](_0x4c4cda){for(const _0x1b2fae of this['revisionViews'])_0x4c4cda['some'](({id:_0x399a3d})=>_0x399a3d===_0x1b2fae['id'])?_0x1b2fae['highlight']():_0x1b2fae['unhighlight']();}['_addRevision'](_0x28ceae){const _0x4ea9bd=mi(_0x28ceae['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x154fef=this['timePeriodViews']['get'](0x0);_0x154fef&&_0x154fef['startDate']['getTime']()===_0x4ea9bd['getTime']()||(_0x154fef=new _i(this['locale'],_0x4ea9bd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x154fef)),_0x154fef['addRevision'](_0x28ceae);}['_removeRevision'](_0x3443b2){const _0x38d480=mi(_0x3443b2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x38d480)['removeRevision'](_0x3443b2);}['_getTimePeriodViewByStartDate'](_0x4f1cdb){return this['timePeriodViews']['find'](_0x5d7498=>_0x5d7498['startDate']['getTime']()===_0x4f1cdb['getTime']());}}class g extends _0x13fc58{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x18df7d){super(_0x18df7d),this['_revisionViewer']=_0x18df7d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x109311=this['_revisionsRepository']['_revisions'],_0x47b4cd=this['_createRevisionActions'](),_0x4cdcb7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x109311,_0x47b4cd,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x3bf4d9,_0x7df416)=>{_0x7df416['revisionViews']['on']('add',(_0x3e959a,_0x4ad2bb)=>{_0x4ad2bb['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x4cdcb7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3a664f=this['_revisionsRepository']['getRevision'](0x0);if(_0x3a664f){const _0x3368a4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3a664f['id']);this['_revisionViewer']['compare'](_0x3a664f,_0x3368a4);}}['_handleRevisionSelected'](_0x2d9a1c,_0x5922ba){const _0xa67545=this['_revisionsRepository']['getRevision'](_0x5922ba['id']),_0x432091=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa67545['id']);this['_revisionViewer']['compare'](_0xa67545,_0x432091);}['_handleRevisionSetName'](_0x3d5422,_0xabcac3){this['_revisionsRepository']['getRevision'](_0xabcac3['id'])['setName'](_0xabcac3['name']);}['_handleDiffChange'](_0x27351e,_0x20a4d6,_0x2039ac){const _0x2a0e27=this['_revisionsRepository']['getRevisionsInDiff'](_0x2039ac);_0x2a0e27['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2a0e27),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2a0e27[0x0]));}['_createRevisionActions'](){const _0x4fc56f=this['editor'],_0x21a2d4=g['availableRevisionActions'],_0xb99161=_0x4fc56f['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0xb99161['length'])return _0xb99161['map'](_0x205cc0=>{const _0x1f5704='string'==typeof _0x205cc0?Object['assign']({},_0x21a2d4[_0x205cc0]):_0x205cc0;return _0x1f5704['action']=_0x1f5704['action']['bind'](this,_0x4fc56f),_0x1f5704['isVisible']&&(_0x1f5704['isVisible']=_0x1f5704['isVisible']['bind'](this,_0x4fc56f)),_0x1f5704;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xcd550},_0x1ea0d4)=>{const _0x4ec534=_0xcd550['get'](d),_0x2ddc0b=_0x4ec534['repository'];let _0x1a646b=_0x4ec534['diff']['newRevisionId'],_0x54fd3e=_0x1ea0d4['id'];_0x2ddc0b['getIndex'](_0x1a646b)>_0x2ddc0b['getIndex'](_0x54fd3e)&&([_0x1a646b,_0x54fd3e]=[_0x54fd3e,_0x1a646b]),_0x4ec534['compare'](_0x1a646b,_0x54fd3e);},'isVisible':({plugins:_0x4f8121},_0xe5b749)=>{const _0x411c0d=_0x4f8121['get'](d);return!(_0x411c0d['repository']['getRevisionsInDiff'](_0x411c0d['diff'])['length']>0x2)&&!_0xe5b749['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x12cb33,{id:_0x8857a8})=>{_0x12cb33['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8857a8);},'isVisible':({plugins:_0x2338af},_0x40e0e0)=>!!_0x2338af['get'](d)['repository']['getLaterVisibleRevision'](_0x40e0e0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x579814},{id:_0x459192,revisionNameView:_0x2919db})=>{const _0xf166a5=_0x579814['get'](d),_0x2ea806=_0xf166a5['repository']['getEarlierVisibleRevision'](_0x459192);_0xf166a5['compare'](_0x459192,_0x2ea806),_0x2919db['focus'](),_0x2919db['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5adcdb,_0xf5abad){super(_0x5adcdb),this['_view']=_0xf5abad,this['_toolbarConfig']=ot(_0x5adcdb['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x459cfd){const _0x3db711=this['editor'],_0x54c4d2=this['view'],_0xbc6742=_0x3db711['editing']['view'],_0x265da0=_0x54c4d2['editable'],_0x27bcd8=_0xbc6742['document']['getRoot']();_0x265da0['name']=_0x27bcd8['rootName'],_0x54c4d2['render']();const _0x142fe6=_0x265da0['element'];this['setEditableElement'](_0x265da0['name'],_0x142fe6),_0x54c4d2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xbc6742['attachDomRoot'](_0x142fe6),this['_elementReplacer']['replace'](_0x459cfd,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f6346=this['view'],_0x1128ce=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1128ce['detachDomRoot'](_0x4f6346['editable']['name']),_0x4f6346['destroy']();}['_initToolbar'](){const _0x59f7ab=this['view'];_0x59f7ab['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x59f7ab['stickyPanel']['limiterElement']=_0x59f7ab['element'],_0x59f7ab['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4b3d52})=>_0x4b3d52),_0x59f7ab['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x59f7ab['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x752bd9,_0x21abac,_0x282a34={}){super(_0x752bd9),this['stickyPanel']=new lt(_0x752bd9),this['toolbar']=new nt(_0x752bd9,{'shouldGroupWhenFull':_0x282a34['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x752bd9,_0x21abac);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x14842b,_0x5ce50c){super(_0x5ce50c),this['sourceElement']=_0x14842b,this['model']['document']['createRoot']();const _0x12082c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x12082c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xbcdfaa,_0x270194){const _0x4adac9=new this(_0xbcdfaa,_0x270194);return await _0x4adac9['initPlugins'](),await _0x4adac9['ui']['init'](_0xbcdfaa),await _0x4adac9['data']['init'](_0x4adac9['config']['get']('initialData')||''),_0x4adac9['fire']('ready'),_0x4adac9;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x41e048{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19755b){function _0x424a99(_0x56c573){return _0x56c573['map'](_0x5151d8=>String['fromCharCode'](_0x5151d8))['join']('');}super(_0x19755b),this['result']='end',_0x19755b[_0x424a99([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424a99([0x76,0x69,0x65,0x77])][_0x424a99([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x424a99([0x61,0x75,0x74,0x6f]),_0x19755b[_0x424a99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x424a99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x424a99([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x424a99([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x424a99([0x6f,0x6b])});}}class k extends _0x41e048{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x214376){if(super(_0x214376),!this['editor']['config']['get']('revisionHistory'))throw new _0x11f306('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1bc933=>this['_showRevisionViewer']({..._0x1bc933,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x273996=>this['_closeRevisionViewer'](_0x273996)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3a9ff6=>this['_restoreRevision'](_0x3a9ff6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x11d286){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x11d286;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2b2fa1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2b2fa1);}['getRevision'](_0x2d898f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2d898f);}['getRevisions'](_0x2f2312){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2f2312||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3d5cbc=this['editor'],_0x44ccea=_0x52e263(_0x3d5cbc,p),_0x335ab3=_0x3d5cbc['plugins']['get']('RevisionTracker'),_0x3775ec=_0x3d5cbc['plugins']['get']('Users')['users'];return _0x44ccea['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x44ccea['lazyRoots'],(_0x44ccea['plugins']['push'](Rt,d,w,class extends _0x41e048{static get['requires'](){return[d,'Users'];}['init'](){const _0x37df92=this['editor']['plugins']['get']('Users');for(const _0x371344 of _0x3775ec)_0x371344['isAnonymous']||_0x37df92['getUser'](_0x371344['id'])||_0x37df92['addUser'](_0x371344);const _0x10b6ee=_0x335ab3['repository']['getRevisions']();let _0x174fd7=null;const _0x49a69f=this['editor']['plugins']['get']('RevisionViewer');_0x49a69f['adapter']=_0x335ab3['adapter'],_0x49a69f['bind']('isEnabled')['to'](_0x335ab3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3d5cbc,'isReadOnly',_0x129f54=>!_0x129f54);for(const _0xd3e77d of _0x10b6ee){const _0x207bf4=null===_0xd3e77d['creator'];if(_0x207bf4&&_0xd3e77d['toVersion']===_0xd3e77d['fromVersion'])continue;const _0x2718d9=_0xd3e77d['toJSON']();_0x49a69f['addRevisionData'](_0x2718d9,(_0x379da4,_0x39a97e,_0x507250)=>{if(_0x207bf4){if(_0x174fd7)_0x174fd7['_update'](_0x379da4,_0x39a97e);else{if(!_0x39a97e){const _0x2c54ef=_0x507250['toJSON']();_0x2c54ef['id']=_0x663c6b(),_0x335ab3['saveRevision'](_0x2c54ef,_0x507250['toVersion'])['then'](_0x33b8f8=>{_0x174fd7=_0x33b8f8;});}}}else _0xd3e77d['_update'](_0x379da4,_0x39a97e);});}}},g),_0x44ccea);}['_enhanceShowRevisionViewerCallback'](){const _0x21f833=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3c8c64=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x36331a=this['editor']['plugins']['get']('Autosave');await _0x36331a['save']();}else await _0x3c8c64['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xc0e43=this['editor']['plugins']['get']('Dialog');_0xc0e43['isOpen']&&_0xc0e43['hide']();}const _0x2ce7b1=this['_getRevisionViewerEditorConfig']();return _0x21f833(_0x2ce7b1)['then'](_0x377c11=>{return(this['_viewerEditor']=_0x377c11,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x377c11;})['catch'](_0x77adf=>(console['error'](_0x77adf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x55cbc6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x55cbc6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d9b0b=this['editor']['plugins']['get']('Annotations');_0x5d9b0b['refreshVisibility'](),_0x5d9b0b['refreshPositioning']();}})));}['_showRevisionViewer'](_0xc5e0e){const _0x2a8794=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x374fbc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37c40c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x37c40c,_0xc5e0e)['then'](_0x109e22=>(_0x374fbc['style']['display']='block',_0x2a8794['style']['display']='none',_0x109e22));}['_closeRevisionViewer'](_0x5c307b){const _0x4c441d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4c441d['style']['display']='',_0x5c307b['destroy']();}async['_restoreRevision'](_0x580bcd){const _0x55eb69=this['editor'],_0x18f954=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f7cf8=_0x55eb69['plugins']['get']('RevisionTracker'),_0x22e30b=_0x18f954['repository']['getRevision'](_0x580bcd);let _0x587621,_0x3de206,_0x3f19ec;try{_0x587621=await _0x18f954['getRevisionData'](_0x22e30b),_0x3de206=await _0x18f954['getRevisionRootsAttributes'](_0x22e30b);}catch(_0x489eb4){return void console['error'](_0x489eb4);}_0x55eb69['model']['change'](_0x5d1c96=>{for(const _0x33e089 of Array['from'](_0x55eb69['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5d1c96['removeMarker'](_0x33e089);}),_0x18f954['isReady']=!0x1,_0x55eb69['model']['enqueueChange'](_0x12be92=>{_0x12be92['setSelection'](null),_0x12be92['removeSelectionAttribute'](_0x55eb69['model']['document']['selection']['getAttributeKeys']());const _0x3dc51d=Object['keys'](_0x587621);for(const _0x2e6f41 of _0x55eb69['model']['document']['roots'])'$graveyard'!=_0x2e6f41['rootName']&&_0x2e6f41['isAttached']()&&!_0x3dc51d['includes'](_0x2e6f41['rootName'])&&_0x12be92['detachRoot'](_0x2e6f41);for(const _0x322faf of _0x3dc51d){let _0x4c52b4=_0x55eb69['model']['document']['getRoot'](_0x322faf);_0x4c52b4&&_0x4c52b4['isAttached']()||(_0x4c52b4=_0x12be92['addRoot'](_0x322faf));const _0x448505=_0x3de206[_0x322faf],_0x347adb=Object['keys'](_0x448505),_0x3300ef=_0x587621[_0x322faf];for(const _0x1b1eaa of _0x4c52b4['getAttributeKeys']())_0x347adb['includes'](_0x1b1eaa)||_0x12be92['removeAttribute'](_0x1b1eaa,_0x4c52b4);for(const _0x13e4f3 of _0x347adb)_0x12be92['setAttribute'](_0x13e4f3,_0x3de206[_0x322faf][_0x13e4f3],_0x4c52b4);_0x12be92['remove'](_0x12be92['createRangeIn'](_0x4c52b4)),_0x12be92['insert'](_0x55eb69['data']['parse'](_0x3300ef,_0x4c52b4),_0x4c52b4,0x0);}});const _0x9fccb0=m(_0x55eb69['locale'],'Restored');if(_0x22e30b['name'])_0x3f19ec=-0x1==_0x22e30b['name']['indexOf'](_0x9fccb0)?_0x9fccb0+':\x20'+_0x22e30b['name']:_0x22e30b['name'];else _0x3f19ec=_0x9fccb0+':\x20'+(_0x22e30b['createdAt']['toLocaleDateString'](_0x55eb69['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x22e30b['createdAt']['toLocaleTimeString'](_0x55eb69['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f7cf8['saveRevision']({'name':_0x3f19ec}),_0x18f954['isReady']=!0x0,_0x55eb69['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x56f274){super(_0x56f274),this['_revisionViewer']=_0x56f274['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4ecccc=this['_revisionsRepository']['_revisions'],_0x50cbc8=this['_createRevisionActions'](),_0x375e9c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x4ecccc,_0x50cbc8,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x32f05f,_0x4aca0a)=>{_0x4aca0a['revisionViews']['on']('add',(_0x5c266e,_0x549498)=>{_0x549498['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x375e9c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3c0f4f=this['_revisionsRepository']['getRevision'](0x0);if(_0x3c0f4f){const _0x15b0fa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3c0f4f['id']);this['_revisionViewer']['compare'](_0x3c0f4f,_0x15b0fa);}}['_handleRevisionSelected'](_0x2f6dd0,_0x3cd7d4){const _0x1ec2bc=this['_revisionsRepository']['getRevision'](_0x3cd7d4['id']),_0x470160=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ec2bc['id']);this['_revisionViewer']['compare'](_0x1ec2bc,_0x470160);}['_handleRevisionSetName'](_0x421efd,_0x4ec1a7){this['_revisionsRepository']['getRevision'](_0x4ec1a7['id'])['setName'](_0x4ec1a7['name']);}['_handleDiffChange'](_0x2f8453,_0x55f1af,_0x9c5555){const _0x1dccee=this['_revisionsRepository']['getRevisionsInDiff'](_0x9c5555);_0x1dccee['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1dccee),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1dccee[0x0]));}['_createRevisionActions'](){const _0x35a85e=this['editor'],_0x192a68=g['availableRevisionActions'],_0x27b446=_0x35a85e['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x27b446['length'])return _0x27b446['map'](_0x1f857d=>{const _0x4840f3='string'==typeof _0x1f857d?Object['assign']({},_0x192a68[_0x1f857d]):_0x1f857d;return _0x4840f3['action']=_0x4840f3['action']['bind'](this,_0x35a85e),_0x4840f3['isVisible']&&(_0x4840f3['isVisible']=_0x4840f3['isVisible']['bind'](this,_0x35a85e)),_0x4840f3;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x32e9d7},_0x58578d)=>{const _0x55927b=_0x32e9d7['get'](d),_0x5de26b=_0x55927b['repository'];let _0x3e52cb=_0x55927b['diff']['newRevisionId'],_0x3b090c=_0x58578d['id'];_0x5de26b['getIndex'](_0x3e52cb)>_0x5de26b['getIndex'](_0x3b090c)&&([_0x3e52cb,_0x3b090c]=[_0x3b090c,_0x3e52cb]),_0x55927b['compare'](_0x3e52cb,_0x3b090c);},'isVisible':({plugins:_0x399ce4},_0x4ecd02)=>{const _0x12a32a=_0x399ce4['get'](d);return!(_0x12a32a['repository']['getRevisionsInDiff'](_0x12a32a['diff'])['length']>0x2)&&!_0x4ecd02['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x54be8c,{id:_0x45c4f4})=>{_0x54be8c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x45c4f4);},'isVisible':({plugins:_0x1b5a73},_0x1a632b)=>!!_0x1b5a73['get'](d)['repository']['getLaterVisibleRevision'](_0x1a632b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1e6d63},{id:_0x3a37ad,revisionNameView:_0x58a519})=>{const _0x43ba67=_0x1e6d63['get'](d),_0x10c5d4=_0x43ba67['repository']['getEarlierVisibleRevision'](_0x3a37ad);_0x43ba67['compare'](_0x3a37ad,_0x10c5d4),_0x58a519['focus'](),_0x58a519['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xe49e04,_0x5553a6){super(_0xe49e04),this['_view']=_0x5553a6,this['_toolbarConfig']=ot(_0xe49e04['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x5db5ad){const _0x48f214=this['editor'],_0x213978=this['view'],_0x33e2a4=_0x48f214['editing']['view'],_0x43e23c=_0x213978['editable'],_0x281627=_0x33e2a4['document']['getRoot']();_0x43e23c['name']=_0x281627['rootName'],_0x213978['render']();const _0xbf4b42=_0x43e23c['element'];this['setEditableElement'](_0x43e23c['name'],_0xbf4b42),_0x213978['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x33e2a4['attachDomRoot'](_0xbf4b42),this['_elementReplacer']['replace'](_0x5db5ad,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4d736d=this['view'],_0x596e65=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x596e65['detachDomRoot'](_0x4d736d['editable']['name']),_0x4d736d['destroy']();}['_initToolbar'](){const _0x325888=this['view'];_0x325888['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x325888['stickyPanel']['limiterElement']=_0x325888['element'],_0x325888['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3ab9b8})=>_0x3ab9b8),_0x325888['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x325888['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3a9df3,_0x4cb2cb,_0x107a39={}){super(_0x3a9df3),this['stickyPanel']=new lt(_0x3a9df3),this['toolbar']=new nt(_0x3a9df3,{'shouldGroupWhenFull':_0x107a39['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3a9df3,_0x4cb2cb);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x421474,_0x30f9f9){super(_0x30f9f9),this['sourceElement']=_0x421474,this['model']['document']['createRoot']();const _0x90164f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x90164f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x16e8b9,_0x21eee8){const _0x11859d=new this(_0x16e8b9,_0x21eee8);return await _0x11859d['initPlugins'](),await _0x11859d['ui']['init'](_0x16e8b9),await _0x11859d['data']['init'](_0x11859d['config']['get']('initialData')||''),_0x11859d['fire']('ready'),_0x11859d;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x13fc58{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1129bb){function _0x56959c(_0x66edc8){return _0x66edc8['map'](_0x28ce63=>String['fromCharCode'](_0x28ce63))['join']('');}super(_0x1129bb),this['result']='end',_0x1129bb[_0x56959c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56959c([0x76,0x69,0x65,0x77])][_0x56959c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56959c([0x61,0x75,0x74,0x6f]),_0x1129bb[_0x56959c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x56959c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56959c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x56959c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x56959c([0x6f,0x6b])});}}class k extends _0x13fc58{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x90da5c){if(super(_0x90da5c),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ca947('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14c63d=>this['_showRevisionViewer']({..._0x14c63d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3655d3=>this['_closeRevisionViewer'](_0x3655d3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x31bca8=>this['_restoreRevision'](_0x31bca8)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x91d605){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x91d605;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5074d4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5074d4);}['getRevision'](_0x4152eb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4152eb);}['getRevisions'](_0x46df50){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x46df50||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x10fc82=this['editor'],_0x1b04e5=_0x227153(_0x10fc82,p),_0x4d3856=_0x10fc82['plugins']['get']('RevisionTracker'),_0x22ce9f=_0x10fc82['plugins']['get']('Users')['users'];return _0x1b04e5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1b04e5['lazyRoots'],(_0x1b04e5['plugins']['push'](Rt,d,w,class extends _0x13fc58{static get['requires'](){return[d,'Users'];}['init'](){const _0x343816=this['editor']['plugins']['get']('Users');for(const _0x5069d7 of _0x22ce9f)_0x5069d7['isAnonymous']||_0x343816['getUser'](_0x5069d7['id'])||_0x343816['addUser'](_0x5069d7);const _0xd83087=_0x4d3856['repository']['getRevisions']();let _0x2b93a9=null;const _0x3ee48f=this['editor']['plugins']['get']('RevisionViewer');_0x3ee48f['adapter']=_0x4d3856['adapter'],_0x3ee48f['bind']('isEnabled')['to'](_0x4d3856),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x10fc82,'isReadOnly',_0x49193d=>!_0x49193d);for(const _0x3cd26a of _0xd83087){const _0x2569d0=null===_0x3cd26a['creator'];if(_0x2569d0&&_0x3cd26a['toVersion']===_0x3cd26a['fromVersion'])continue;const _0xd6fe46=_0x3cd26a['toJSON']();_0x3ee48f['addRevisionData'](_0xd6fe46,(_0x544a85,_0x1d8526,_0x2d0c9f)=>{if(_0x2569d0){if(_0x2b93a9)_0x2b93a9['_update'](_0x544a85,_0x1d8526);else{if(!_0x1d8526){const _0x2d3066=_0x2d0c9f['toJSON']();_0x2d3066['id']=_0x1e756b(),_0x4d3856['saveRevision'](_0x2d3066,_0x2d0c9f['toVersion'])['then'](_0x1d733b=>{_0x2b93a9=_0x1d733b;});}}}else _0x3cd26a['_update'](_0x544a85,_0x1d8526);});}}},g),_0x1b04e5);}['_enhanceShowRevisionViewerCallback'](){const _0x28cf41=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xac0103=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x340155=this['editor']['plugins']['get']('Autosave');await _0x340155['save']();}else await _0xac0103['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x451610=this['editor']['plugins']['get']('Dialog');_0x451610['isOpen']&&_0x451610['hide']();}const _0x207635=this['_getRevisionViewerEditorConfig']();return _0x28cf41(_0x207635)['then'](_0x339b0d=>{return(this['_viewerEditor']=_0x339b0d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x339b0d;})['catch'](_0x48edf9=>(console['error'](_0x48edf9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1885a1=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1885a1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x441b29=this['editor']['plugins']['get']('Annotations');_0x441b29['refreshVisibility'](),_0x441b29['refreshPositioning']();}})));}['_showRevisionViewer'](_0x34b2ec){const _0x185c8e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x278a6d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x387598=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x387598,_0x34b2ec)['then'](_0xf93ae7=>(_0x278a6d['style']['display']='block',_0x185c8e['style']['display']='none',_0xf93ae7));}['_closeRevisionViewer'](_0x136fe3){const _0x19461d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x19461d['style']['display']='',_0x136fe3['destroy']();}async['_restoreRevision'](_0x29e2fa){const _0x38b4c0=this['editor'],_0x4b27dd=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5406aa=_0x38b4c0['plugins']['get']('RevisionTracker'),_0xe6164b=_0x4b27dd['repository']['getRevision'](_0x29e2fa);let _0x28f273,_0x1b81d0,_0x3423fb;try{_0x28f273=await _0x4b27dd['getRevisionData'](_0xe6164b),_0x1b81d0=await _0x4b27dd['getRevisionRootsAttributes'](_0xe6164b);}catch(_0xce422b){return void console['error'](_0xce422b);}_0x38b4c0['model']['change'](_0x2a0295=>{for(const _0xcce6f9 of Array['from'](_0x38b4c0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2a0295['removeMarker'](_0xcce6f9);}),_0x4b27dd['isReady']=!0x1,_0x38b4c0['model']['enqueueChange'](_0x1b2f80=>{_0x1b2f80['setSelection'](null),_0x1b2f80['removeSelectionAttribute'](_0x38b4c0['model']['document']['selection']['getAttributeKeys']());const _0x1ede0c=Object['keys'](_0x28f273);for(const _0x19e268 of _0x38b4c0['model']['document']['roots'])'$graveyard'!=_0x19e268['rootName']&&_0x19e268['isAttached']()&&!_0x1ede0c['includes'](_0x19e268['rootName'])&&_0x1b2f80['detachRoot'](_0x19e268);for(const _0x2edf9f of _0x1ede0c){let _0x3d1a67=_0x38b4c0['model']['document']['getRoot'](_0x2edf9f);_0x3d1a67&&_0x3d1a67['isAttached']()||(_0x3d1a67=_0x1b2f80['addRoot'](_0x2edf9f));const _0x1f8461=_0x1b81d0[_0x2edf9f],_0x4505cc=Object['keys'](_0x1f8461),_0x4dafda=_0x28f273[_0x2edf9f];for(const _0x31e4c1 of _0x3d1a67['getAttributeKeys']())_0x4505cc['includes'](_0x31e4c1)||_0x1b2f80['removeAttribute'](_0x31e4c1,_0x3d1a67);for(const _0x153471 of _0x4505cc)_0x1b2f80['setAttribute'](_0x153471,_0x1b81d0[_0x2edf9f][_0x153471],_0x3d1a67);_0x1b2f80['remove'](_0x1b2f80['createRangeIn'](_0x3d1a67)),_0x1b2f80['insert'](_0x38b4c0['data']['parse'](_0x4dafda,_0x3d1a67),_0x3d1a67,0x0);}});const _0x180b30=m(_0x38b4c0['locale'],'Restored');if(_0xe6164b['name'])_0x3423fb=-0x1==_0xe6164b['name']['indexOf'](_0x180b30)?_0x180b30+':\x20'+_0xe6164b['name']:_0xe6164b['name'];else _0x3423fb=_0x180b30+':\x20'+(_0xe6164b['createdAt']['toLocaleDateString'](_0x38b4c0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xe6164b['createdAt']['toLocaleTimeString'](_0x38b4c0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5406aa['saveRevision']({'name':_0x3423fb}),_0x4b27dd['isReady']=!0x0,_0x38b4c0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};