@ckeditor/ckeditor5-revision-history 45.2.1-alpha.3 → 45.2.1-alpha.5

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 (180) 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/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +11 -11
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionhistoryutils.js +1 -1
  159. package/src/revisionsrepository.js +1 -1
  160. package/src/revisiontracker.js +1 -1
  161. package/src/revisionviewer.js +1 -1
  162. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  163. package/src/ui/revision/revisionauthorview.js +1 -1
  164. package/src/ui/revision/revisionnameview.js +1 -1
  165. package/src/ui/revision/revisionview.js +2 -2
  166. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  167. package/src/ui/revision/subrevisionview.js +1 -1
  168. package/src/ui/revision/utils.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  170. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  174. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  175. package/src/ui/revisionssidebar/utils.js +1 -1
  176. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  177. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  179. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  180. 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 _0x15fe64,uid as _0x5d30eb,Collection as _0x2a3d8d,logWarning as _0x48be52,FocusTracker as _0x45a136,KeystrokeHandler as _0x31841c,scrollViewportToShowTarget as _0x45bd8a,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x4526eb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x25a738,set as _0x2c8b3d,unset as _0x5c5df2,isEqual as _0x4585bb}from'es-toolkit/compat';import{Plugin as _0x24b312,PendingActions as _0x46e7ac,Command as _0x2fa794,ElementApiMixin as _0x137b80,Editor as _0x24ec21}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x424bf7,getMarkerDomElement as _0x128210,ConfirmMixin as ti,sanitizeEditorConfig as _0x1b9850}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x131d91,ViewAttributeElement as _0x13aae6,ViewEmptyElement as _0x4f1184,ViewRawElement as _0x358c4c,ViewUIElement as _0x7b1bb8,ViewDocumentFragment as _0x25515c,ViewText as _0x46b635,ViewElement as _0x41571d,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x59d51f,IconChevronUp as _0x12225e,IconChevronDown as _0xe83838,IconUndo as _0x23fe4e,IconUser as _0x2b532d,IconThreeVerticalDots as _0x1c75f0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x235b43,submitHandler as _0x2c99e6,LabeledFieldView as _0x7c8f53,createLabeledInputText as _0x1e64bd,createDropdown as _0x5656cd,ListView as _0x28ef9e,ListItemView as _0x857aa5,ButtonView as te,MenuBarMenuView as _0x574a14,MenuBarMenuListView as _0x94584b,MenuBarMenuListItemView as _0x14ab8e,MenuBarMenuListItemButtonView as _0x5959d6,ContextualBalloon as _0x232ec8,ToolbarSeparatorView as _0x219607,IconView as _0x122712,addListToDropdown as _0x5ef6a4,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5482f9}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x15fe64(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2bafc6){super(),this['id']=_0x2bafc6['id']||_0x5d30eb(),this['creator']=_0x2bafc6['creator']||null,this['authors']=_0x2bafc6['authors']||[],this['diffData']=_0x2bafc6['diffData']||null,this['toVersion']=_0x2bafc6['toVersion']||0x0,this['fromVersion']=_0x2bafc6['fromVersion']||0x0,this['set']('name',_0x2bafc6['name']||''),this['set']('createdAt',_0x2bafc6['createdAt']||new Date()),this['set']('attributes',_0x2bafc6['attributes']||{});}['setName'](_0x33e327){this['_update']({'name':_0x33e327});}['setAttribute'](_0x68e87,_0x3be9ac){const _0x5df321=_0x25a738(this['attributes']);_0x2c8b3d(_0x5df321,_0x68e87,_0x3be9ac),this['_update']({'attributes':_0x5df321});}['removeAttribute'](_0x1c37ea){const _0xed3fb0=_0x25a738(this['attributes']);_0x5c5df2(_0xed3fb0,_0x1c37ea),this['_update']({'attributes':_0xed3fb0});}['_update'](_0x286d90,_0x1d1965=!0x1){let _0x300526=!0x1;const _0x44f0ed={'id':this['id']},_0x5da174=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2f268a of _0x5da174){const _0x59d0cc=_0x286d90[_0x2f268a];void 0x0!==_0x59d0cc&&_0x59d0cc!==this[_0x2f268a]&&(this[_0x2f268a]=_0x59d0cc,_0x44f0ed[_0x2f268a]=_0x59d0cc,_0x300526=!0x0);}_0x300526&&(_0x44f0ed['authors']&&(_0x44f0ed['authorsIds']=_0x44f0ed['authors']['map'](_0x17439d=>_0x17439d['id']),delete _0x44f0ed['authors']),this['fire']('_update',_0x44f0ed,_0x1d1965));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xf048b4=>_0xf048b4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x24b312{['_revisions'];static get['requires'](){return[_0x424bf7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5248e4){super(_0x5248e4),this['_revisions']=new _0x2a3d8d();}['afterInit'](){!async function(_0x1280da){const _0x13b427=_0x4a8f4c([0x64,0x69,0x35,0x75,0x47,0x58,0x57,0x33,0x56,0x5a,0x4e,0x41,0x48,0x6a,0x50,0x6f,0x71,0x78,0x42,0x67,0x37,0x74,0x77,0x43,0x51,0x63,0x6b,0x44,0x34,0x68,0x53,0x36,0x54,0x6c,0x72,0x4b,0x66,0x79,0x38,0x61,0x39,0x4f,0x52,0x30,0x76,0x31,0x32,0x49,0x70,0x73,0x45,0x4c,0x62,0x55,0x65,0x59,0x6e,0x7a,0x6d,0x46,0x4a,0x4d]),_0x4328bd=0xeb829,_0x145ecf=0x88c55ea,_0x4f68bf=0x88b3f02^_0x145ecf,_0x2243d3=window[_0x4a8f4c([0x44,0x61,0x74,0x65])][_0x4a8f4c([0x6e,0x6f,0x77])](),_0x5128c3=_0x1280da[_0x4a8f4c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x184110=new window[(_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3d2d=>{_0x5128c3[_0x4a8f4c([0x6f,0x6e,0x63,0x65])](_0x4a8f4c([0x72,0x65,0x61,0x64,0x79]),_0x1e3d2d);}),_0xbbad95={[_0x4a8f4c([0x6b,0x74,0x79])]:_0x4a8f4c([0x45,0x43]),[_0x4a8f4c([0x75,0x73,0x65])]:_0x4a8f4c([0x73,0x69,0x67]),[_0x4a8f4c([0x63,0x72,0x76])]:_0x4a8f4c([0x50,0x2d,0x32,0x35,0x36]),[_0x4a8f4c([0x78])]:_0x4a8f4c([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]),[_0x4a8f4c([0x79])]:_0x4a8f4c([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]),[_0x4a8f4c([0x61,0x6c,0x67])]:_0x4a8f4c([0x45,0x53,0x32,0x35,0x36])},_0x296d4e=_0x5128c3[_0x4a8f4c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a8f4c([0x67,0x65,0x74])](_0x4a8f4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x355d08(){let _0x29edad,_0x42e3d9=null,_0x21a5ca=null;try{if(_0x296d4e==_0x4a8f4c([0x47,0x50,0x4c]))return _0x4a8f4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29edad=_0x36413f(),!_0x29edad)return _0x4a8f4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29edad[_0x4a8f4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21a5ca=_0x590c87(_0x29edad[_0x4a8f4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29edad[_0x4a8f4c([0x6a,0x74,0x69])])),await _0x342324()?_0x27457b()?_0x350dd3()?_0x4a8f4c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e6ca2()?(_0x29edad[_0x4a8f4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a8f4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42e3d9=_0x5dcde3(_0x4a8f4c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x29edad[_0x4a8f4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a8f4c([0x74,0x72,0x69,0x61,0x6c])&&(_0x42e3d9=_0x5dcde3(_0x4a8f4c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57277c()):_0x4a8f4c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a8f4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a8f4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a8f4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x350dd3(){const _0x20a698=[_0x4a8f4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a8f4c([0x74,0x72,0x69,0x61,0x6c])][_0x4a8f4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29edad[_0x4a8f4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2243d3/0x3e8:0xe10*_0x4f68bf;return _0x29edad[_0x4a8f4c([0x65,0x78,0x70])]<_0x20a698;}function _0x27457b(){const _0x29d92f=_0x29edad[_0x4a8f4c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29d92f)return!0x1;if(_0x29d92f[_0x4a8f4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8f4c([0x2a])))return!0x0;if(_0x29d92f[_0x4a8f4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8f4c([0x52,0x48])))return!0x0;if(_0x29d92f[_0x4a8f4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8f4c([0x52,0x52,0x48]))){if(_0xa590f4())return!0x0;if(_0x22de2f()||_0x5a7beb())return!0x0;}return!0x1;}function _0x1e6ca2(){const _0x367edb=_0x29edad[_0x4a8f4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x367edb||0x0==_0x367edb[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4569db}=new URL(window[_0x4a8f4c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x367edb[_0x4a8f4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4569db))return!0x0;const _0x2b1492=_0x4569db[_0x4a8f4c([0x73,0x70,0x6c,0x69,0x74])](_0x4a8f4c([0x2e]));return _0x367edb[_0x4a8f4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17489f=>_0x17489f[_0x4a8f4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8f4c([0x2a])))[_0x4a8f4c([0x6d,0x61,0x70])](_0x241c7f=>_0x241c7f[_0x4a8f4c([0x73,0x70,0x6c,0x69,0x74])](_0x4a8f4c([0x2e])))[_0x4a8f4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x445e35=>_0x445e35[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b1492[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a8f4c([0x6d,0x61,0x70])](_0x531eae=>Array(_0x2b1492[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x531eae[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a8f4c([0x66,0x69,0x6c,0x6c])](_0x531eae[0x0]===_0x4a8f4c([0x2a])?_0x4a8f4c([0x2a]):'')[_0x4a8f4c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x531eae))[_0x4a8f4c([0x73,0x6f,0x6d,0x65])](_0x56bedb=>_0x2b1492[_0x4a8f4c([0x65,0x76,0x65,0x72,0x79])]((_0x88ec31,_0x152c9b)=>_0x56bedb[_0x152c9b]===_0x88ec31||_0x56bedb[_0x152c9b]===_0x4a8f4c([0x2a])));}function _0x57277c(){return _0x42e3d9&&_0x21a5ca?new window[(_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c318d,_0x48923f)=>{_0x42e3d9[_0x4a8f4c([0x74,0x68,0x65,0x6e])](_0x1c318d,_0x48923f),_0x21a5ca[_0x4a8f4c([0x74,0x68,0x65,0x6e])](_0x105ba6=>{_0x105ba6!=_0x4a8f4c([0x56,0x61,0x6c,0x69,0x64])&&_0x1c318d(_0x105ba6);},_0x48923f);}):_0x42e3d9||_0x21a5ca||_0x4a8f4c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x590c87(_0x51286e,_0x1749a0){return new window[(_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc3733e=>{if(_0x25cfac())return _0xc3733e(_0x4a8f4c([0x56,0x61,0x6c,0x69,0x64]));_0x38b6a3(),_0x5128c3[_0x4a8f4c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a8f4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x300583=!0x1;const _0x577896=_0x5d30eb();function _0x158962(_0x54495d){return!!_0x54495d&&(typeof _0x54495d===_0x4a8f4c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54495d===_0x4a8f4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54495d[_0x4a8f4c([0x74,0x68,0x65,0x6e])]===_0x4a8f4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54495d[_0x4a8f4c([0x63,0x61,0x74,0x63,0x68])]===_0x4a8f4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ca34f(_0x5844a7){_0x4180df(_0x5844a7)[_0x4a8f4c([0x74,0x68,0x65,0x6e])](_0x191b4d=>{if(!_0x191b4d||_0x191b4d[_0x4a8f4c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a8f4c([0x6f,0x6b]))return _0x4a8f4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a7535(_0x454f99(_0x577896+_0x1749a0))!=_0x191b4d[_0x4a8f4c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a8f4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a8f4c([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a8f4c([0x74,0x68,0x65,0x6e])](_0x14c8d8=>(_0x2e7397(),_0x14c8d8),()=>{const _0x3e2bb2=_0x4fe902();return null==_0x3e2bb2?(_0x2e7397(),_0x4a8f4c([0x56,0x61,0x6c,0x69,0x64])):_0x4a8f4c(_0x2243d3-_0x3e2bb2>(0x2c80d1ea^_0x145ecf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a8f4c([0x74,0x68,0x65,0x6e])](_0xc3733e)[_0x4a8f4c([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc3733e(_0x4a8f4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53b11d=0x8babb6a^_0x145ecf;function _0x2e7397(){const _0x114043=_0x4a8f4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a7535(_0x454f99(_0x51286e)),_0x331801=_0x47685b(_0x2a7535(window[_0x4a8f4c([0x4d,0x61,0x74,0x68])][_0x4a8f4c([0x63,0x65,0x69,0x6c])](_0x2243d3/_0x53b11d)));window[_0x4a8f4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a8f4c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x114043,_0x331801);}function _0x4fe902(){const _0x935a5c=_0x4a8f4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a7535(_0x454f99(_0x51286e)),_0x206e87=window[_0x4a8f4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a8f4c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x935a5c);return _0x206e87?window[_0x4a8f4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47685b(_0x206e87),0x10)*_0x53b11d:null;}function _0x4180df(_0x551642){return new window[(_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f1fd3,_0x5e535d)=>{_0x551642[_0x4a8f4c([0x74,0x68,0x65,0x6e])](_0x3f1fd3,_0x5e535d),window[_0x4a8f4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e535d,0x88d812a^_0x145ecf);});}}_0x5128c3[_0x4a8f4c([0x6f,0x6e])](_0x4a8f4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x442872,_0x4cda30)=>{if(_0x4cda30[0x0]!=_0x51286e)return _0xc3733e(_0x4a8f4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cda30[0x1]={..._0x4cda30[0x1],[_0x4a8f4c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x577896};},{[_0x4a8f4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a8f4c([0x68,0x69,0x67,0x68])}),_0x5128c3[_0x4a8f4c([0x6f,0x6e])](_0x4a8f4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14a613=>{_0x158962(_0x14a613[_0x4a8f4c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x300583=!0x0,_0x5ca34f(_0x14a613[_0x4a8f4c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a8f4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a8f4c([0x6c,0x6f,0x77])}),_0x184110[_0x4a8f4c([0x74,0x68,0x65,0x6e])](()=>{_0x300583||_0xc3733e(_0x4a8f4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25cfac(){return _0x5128c3[_0x4a8f4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a8f4c([0x76,0x69,0x65,0x77])][_0x4a8f4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a8f4c([0x61,0x75,0x74,0x6f]);}function _0x38b6a3(){_0x5128c3[_0x4a8f4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a8f4c([0x76,0x69,0x65,0x77])][_0x4a8f4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a8f4c([0x61,0x75,0x74,0x6f]);}}function _0x5dcde3(_0x4d85b5){const _0x3df21e=[new window[(_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x232160=>setTimeout(_0x232160,0x8856b26^_0x145ecf)),_0x184110[_0x4a8f4c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x970693=>{const _0x152cc6=0x88c55ed^_0x145ecf,_0x19802f=_0x1280da[_0x4a8f4c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x290d4a(){_0x19802f[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x152cc6&&_0x970693();}_0x290d4a(),_0x19802f[_0x4a8f4c([0x6f,0x6e])](_0x4a8f4c([0x61,0x64,0x64]),_0x290d4a);})),new window[(_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155d89=>{function _0x4b9e78(){for(const _0x290cdb in window)if(window[_0x4a8f4c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4a8f4c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x290cdb))&&window[_0x290cdb]==_0x4328bd)return _0x155d89();_0x5128c3[_0x4a8f4c([0x73,0x74,0x61,0x74,0x65])]!=_0x4a8f4c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4a8f4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b9e78,0x88c4662^_0x145ecf);}_0x2fdbff(_0x4a8f4c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4b9e78();})];return window[_0x4a8f4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a8f4c([0x72,0x61,0x63,0x65])](_0x3df21e)[_0x4a8f4c([0x74,0x68,0x65,0x6e])](()=>_0x4d85b5);}async function _0x2fa382(){if(await _0x184110,_0x2fdbff(_0x4a8f4c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x13af0a=_0x1280da[_0x4a8f4c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x536fb5=_0x1280da[_0x4a8f4c([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])](_0x13af0a[_0x4a8f4c([0x69,0x64])]),_0xa383ee=_0x62e62e(_0x4a8f4c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa383ee[_0x4a8f4c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x13af0a['id'],_0x536fb5?_0x536fb5['id']:null,!0x0),_0xa383ee[_0x4a8f4c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4a8f4c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa383ee[_0x4a8f4c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa383ee[_0x4a8f4c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4b88a4,void(_0xa383ee[_0x4a8f4c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4b88a4);}if(_0x2fdbff(_0x4a8f4c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1a9347=_0x62e62e(_0x4a8f4c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1a9347[_0x4a8f4c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4a8f4c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a9347[_0x4a8f4c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a9347[_0x4a8f4c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4b88a4,_0x1a9347[_0x4a8f4c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4b88a4;}_0x5128c3[_0x4a8f4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a8f4c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b88a4,_0x5128c3[_0x4a8f4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a8f4c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b88a4,_0x5128c3[_0x4a8f4c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a8f4c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa590f4(){return _0x2fdbff(_0x4a8f4c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x62e62e(_0x4a8f4c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4a8f4c([0x73,0x74,0x61,0x74,0x65])]==_0x4a8f4c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22de2f(){return _0x2fdbff(_0x4a8f4c([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 _0x5a7beb(){return _0x2fdbff(_0x4a8f4c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x403e75(_0x577816){const _0xdc2b83=_0x785c9c();_0x5128c3[_0xdc2b83]=_0x4a8f4c([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])+_0x577816,_0x577816[_0x4a8f4c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4a8f4c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x785c9c()]=_0x4328bd),_0x577816!=_0x4a8f4c([0x56,0x61,0x6c,0x69,0x64])&&_0x2fa382();}function _0x785c9c(){const _0x4d7b79=window[_0x4a8f4c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a8f4c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a8f4c([0x6e,0x6f,0x77])]())[_0x4a8f4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a8f4c([0x2e]),'');let _0x4cb15c=_0x4a8f4c([0x64]);for(let _0x43fd25=0x0;_0x43fd25<_0x4d7b79[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43fd25+=0x2){let _0x323309=window[_0x4a8f4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d7b79[_0x4a8f4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43fd25,_0x43fd25+0x2));_0x323309>=_0x13b427[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x323309-=_0x13b427[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cb15c+=_0x13b427[_0x323309];}return _0x4cb15c;}function _0x36413f(){const _0x2858dd=_0x296d4e[_0x4a8f4c([0x73,0x70,0x6c,0x69,0x74])](_0x4a8f4c([0x2e]));if(0x3!=_0x2858dd[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58595f(_0x2858dd[0x1]);function _0x58595f(_0x595ea8){const _0x1af061=_0x412aa3(_0x595ea8);return _0x1af061&&_0x4d9fdb()?_0x1af061:null;function _0x4d9fdb(){const _0x50ac49=_0x1af061[_0x4a8f4c([0x6a,0x74,0x69])],_0x353c57=window[_0x4a8f4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50ac49[_0x4a8f4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50ac49[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa5517e={..._0x1af061,[_0x4a8f4c([0x6a,0x74,0x69])]:_0x50ac49[_0x4a8f4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50ac49[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa5517e[_0x4a8f4c([0x76,0x63])],_0x454f99(_0xa5517e)==_0x353c57;}}}async function _0x342324(){let _0x38c20d=!0x0;try{const _0x54f6e6=_0x296d4e[_0x4a8f4c([0x73,0x70,0x6c,0x69,0x74])](_0x4a8f4c([0x2e])),[_0x11ede7,_0x5012da,_0x306604]=_0x54f6e6;return _0x4311f7(_0x11ede7),await _0x17f131(_0x11ede7,_0x5012da,_0x306604),_0x38c20d;}catch{return!0x1;}function _0x4311f7(_0x4f28fa){const _0x511029=_0x412aa3(_0x4f28fa);_0x511029&&_0x511029[_0x4a8f4c([0x61,0x6c,0x67])]==_0x4a8f4c([0x45,0x53,0x32,0x35,0x36])||(_0x38c20d=!0x1);}async function _0x17f131(_0x1ce1bf,_0x167fd2,_0x529f14){const _0x298ef1=window[_0x4a8f4c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a8f4c([0x66,0x72,0x6f,0x6d])](_0x1a9ac0(_0x529f14),_0x3815da=>_0x3815da[_0x4a8f4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b5aa8=new window[(_0x4a8f4c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a8f4c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ce1bf+_0x4a8f4c([0x2e])+_0x167fd2),_0x15d085=window[_0x4a8f4c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a8f4c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15d085)return;const _0xd6110a=await _0x15d085[_0x4a8f4c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a8f4c([0x6a,0x77,0x6b]),_0xbbad95,{[_0x4a8f4c([0x6e,0x61,0x6d,0x65])]:_0x4a8f4c([0x45,0x43,0x44,0x53,0x41]),[_0x4a8f4c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a8f4c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a8f4c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15d085[_0x4a8f4c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a8f4c([0x6e,0x61,0x6d,0x65])]:_0x4a8f4c([0x45,0x43,0x44,0x53,0x41]),[_0x4a8f4c([0x68,0x61,0x73,0x68])]:{[_0x4a8f4c([0x6e,0x61,0x6d,0x65])]:_0x4a8f4c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd6110a,_0x298ef1,_0x2b5aa8)||(_0x38c20d=!0x1);}}function _0x412aa3(_0x26f303){return _0x26f303[_0x4a8f4c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a8f4c([0x65,0x79]))?JSON[_0x4a8f4c([0x70,0x61,0x72,0x73,0x65])](_0x1a9ac0(_0x26f303)):null;}function _0x1a9ac0(_0x75acac){return window[_0x4a8f4c([0x61,0x74,0x6f,0x62])](_0x75acac[_0x4a8f4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a8f4c([0x2b]))[_0x4a8f4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a8f4c([0x2f])));}function _0x454f99(_0x55a2fc){let _0x259371=0x1505;function _0x48fe92(_0x2005f5){for(let _0x50038c=0x0;_0x50038c<_0x2005f5[_0x4a8f4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50038c++){const _0x370d07=_0x2005f5[_0x4a8f4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50038c);_0x259371=(_0x259371<<0x5)+_0x259371+_0x370d07,_0x259371&=_0x259371;}}function _0x38cdaf(_0xe18127){Array[_0x4a8f4c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe18127)?_0xe18127[_0x4a8f4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38cdaf):_0xe18127&&typeof _0xe18127==_0x4a8f4c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a8f4c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe18127)[_0x4a8f4c([0x73,0x6f,0x72,0x74])]()[_0x4a8f4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xace9a0,_0x23149b])=>{_0x48fe92(_0xace9a0),_0x38cdaf(_0x23149b);}):_0x48fe92(window[_0x4a8f4c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe18127));}return _0x38cdaf(_0x55a2fc),_0x259371>>>0x0;}function _0x2a7535(_0x2e76da){return _0x2e76da[_0x4a8f4c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a8f4c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a8f4c([0x30]));}function _0x47685b(_0x357af2){return _0x357af2[_0x4a8f4c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a8f4c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a8f4c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fdbff(_0x5cd183){return _0x5128c3[_0x4a8f4c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4a8f4c([0x68,0x61,0x73])](_0x5cd183);}function _0x62e62e(_0x7a7d9c){return _0x5128c3[_0x4a8f4c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4a8f4c([0x67,0x65,0x74])](_0x7a7d9c);}function _0x4b88a4(){}function _0x4a8f4c(_0x4734d3){return _0x4734d3['map'](_0x46c60e=>String['fromCharCode'](_0x46c60e))['join']('');}_0x403e75(await _0x355d08());}(this);}['createRevision'](_0x336c17){const _0x5b743c=this['editor']['plugins']['get']('Users');return new h({'id':_0x336c17['id'],'name':_0x336c17['name'],'creator':_0x336c17['creatorId']?_0x5b743c['getUser'](_0x336c17['creatorId']):null,'diffData':_0x336c17['diffData']||_0x336c17['data'],'authors':_0x336c17['authorsIds']['map'](_0x509e1c=>_0x5b743c['getUser'](_0x509e1c)),'createdAt':new Date(_0x336c17['createdAt']),'attributes':_0x336c17['attributes'],'fromVersion':_0x336c17['fromVersion'],'toVersion':_0x336c17['toVersion']});}['addRevision'](_0xbbf4e,_0x4f02fe=0x0){this['_revisions']['add'](_0xbbf4e,_0x4f02fe);}['getRevision'](_0x3c7ab8){return this['_revisions']['get'](_0x3c7ab8);}['getRevisions'](_0xc41ad5={'toJSON':!0x1}){const _0x1be906=Array['from'](this['_revisions']);return _0x1be906['reverse'](),_0xc41ad5['toJSON']?_0x1be906['map'](_0x1fe93b=>_0x1fe93b['toJSON']()):_0x1be906;}['getIndex'](_0x2db1b8){return this['_revisions']['getIndex'](_0x2db1b8);}['getEarlierVisibleRevision'](_0x27db73){const [,_0x1e2ee7]=this['getRevisionsIterator'](_0x27db73,{'direction':'earlier'});return _0x1e2ee7;}['getLaterVisibleRevision'](_0x2e8fb0){const [,_0x39c0ee]=this['getRevisionsIterator'](_0x2e8fb0,{'direction':'later'});return _0x39c0ee;}['getRevisionsInDiff'](_0x18eb32){const _0x1d8d5d=[];for(const _0x1db4db of this['getRevisionsIterator'](_0x18eb32['newRevisionId']))if(_0x1d8d5d['push'](_0x1db4db),_0x1db4db['id']===_0x18eb32['oldRevisionId'])break;return _0x1d8d5d;}*['getRevisionsIterator'](_0x179811,{direction:_0x3f35d1='earlier',filter:_0x45735f=()=>!0x0}={}){const _0xde3d86='earlier'===_0x3f35d1?0x1:-0x1;let _0x38493d=this['_revisions']['get'](_0x179811),_0x1850b6=this['getIndex'](_0x38493d);for(yield _0x38493d;_0x38493d;){if(_0x1850b6+=_0xde3d86,_0x38493d=this['getRevision'](_0x1850b6),!_0x38493d)return;_0x45735f(_0x38493d)&&(yield _0x38493d);}}}class V extends _0x24b312{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x131d91,'c'],[_0x13aae6,'a'],[_0x4f1184,'e'],[_0x358c4c,'r'],[_0x7b1bb8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x131d91],['a',_0x13aae6],['e',_0x4f1184],['r',_0x358c4c],['u',_0x7b1bb8]]);async['loadRevisionData'](_0x2f71ee,_0x2aa1b4){if(_0x2f71ee['diffData']||!_0x2aa1b4)return;const _0x45a54a=this['editor']['config']['get']('collaboration.channelId'),_0x40f173=await _0x2aa1b4['getRevision']({'channelId':_0x45a54a,'revisionId':_0x2f71ee['id']});_0x2f71ee['diffData']=_0x40f173['diffData'];}['getRevisionDocumentData'](_0xf2b6ec){const _0x537fef={};for(const _0x93ee72 in _0xf2b6ec['diffData']){if(_0xf2b6ec['diffData'][_0x93ee72]['attachChange']&&!_0xf2b6ec['diffData'][_0x93ee72]['attachChange']['isAttached'])continue;const _0x254940=this['_removeRevisionMarkers'](JSON['parse'](_0xf2b6ec['diffData'][_0x93ee72]['insertions'])),_0x18172d=this['editor']['editing']['view']['document'],_0x5c95fb=new _0x25515c(_0x18172d,_0x254940['map'](_0x1a462f=>this['_getViewFromDiffObj'](_0x1a462f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x537fef[_0x93ee72]=this['editor']['data']['processor']['toData'](_0x5c95fb),this['editor']['data']['processor']['useFillerType']('default');}return _0x537fef;}['getRevisionRootsAttributes'](_0x43ff14){const _0x4f8eeb={};for(const _0xe93c56 in _0x43ff14['diffData'])_0x43ff14['diffData'][_0xe93c56]['attachChange']&&!_0x43ff14['diffData'][_0xe93c56]['attachChange']['isAttached']||(_0x4f8eeb[_0xe93c56]=_0x43ff14['diffData'][_0xe93c56]['attributesAfter']||{});return _0x4f8eeb;}['_getTypeCharForViewElement'](_0x3ab3df){return this['_viewClassToTypeChar']['get'](_0x3ab3df['constructor']);}['_getViewFromDiffObj'](_0x3b00f3,_0x10a916){const _0xf1e106=this['editor']['editing']['view']['document'];if('string'==typeof _0x3b00f3)return new _0x46b635(_0xf1e106,_0x3b00f3);{let _0x11ab9e,_0x3fd774;_0x3fd774='u'==_0x3b00f3['type']||'r'==_0x3b00f3['type']?[]:_0x3b00f3['children']['map'](_0x574a83=>this['_getViewFromDiffObj'](_0x574a83,_0x10a916));const _0xcda426=this['_typeCharToViewClass']['get'](_0x3b00f3['type'])||_0x41571d,_0x33320a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x11ab9e=new _0xcda426(_0xf1e106,_0x3b00f3['name'],_0x3b00f3['attributes'],_0x3fd774),'u'==_0x3b00f3['type']&&_0x3b00f3['children'][0x0]){const _0x48bbcc=_0x3b00f3['children'][0x0];if(_0x11ab9e['render']=function(_0x55b9f1){const _0x5b0497=_0x55b9f1['createElement']('div');return _0x5b0497['innerHTML']=_0x48bbcc,_0x5b0497['childNodes'][0x0];},_0x10a916){const _0x2cd47e=new _0x25515c(_0xf1e106);_0x2cd47e['_appendChild'](_0x11ab9e);const _0x135b4c=Array['from'](_0x33320a['viewChildrenToDom'](_0x2cd47e,{'bind':!0x1})),_0x561f04=_0x33320a['domDocument']['createElement']('div');_0x561f04['append'](..._0x135b4c),_0x11ab9e=Array['from'](_0x33320a['domChildrenToView'](_0x561f04))[0x0];}}else{if('r'==_0x3b00f3['type']&&_0x3b00f3['children'][0x0]){const _0x192bdb=_0x3b00f3['children'][0x0];if(_0x11ab9e['render']=function(_0x4d230f){_0x4d230f['innerHTML']=_0x192bdb;},_0x10a916){const _0x4f6c7b=new _0x25515c(_0xf1e106);_0x4f6c7b['_appendChild'](_0x11ab9e);const _0x309ba7=Array['from'](_0x33320a['viewChildrenToDom'](_0x4f6c7b,{'bind':!0x1})),_0x4689be=_0x33320a['domDocument']['createElement']('div');_0x4689be['append'](..._0x309ba7);const _0x2a30ea=Array['from'](_0x33320a['domChildrenToView'](_0x4689be));_0x2a30ea['length']>0x1?_0x11ab9e['_appendChild'](_0x2a30ea):_0x11ab9e=_0x2a30ea[0x0];}}}if(_0x3b00f3['customProperties']){for(const [_0x198c50,_0xd79789]of _0x3b00f3['customProperties'])_0x11ab9e['_setCustomProperty'](_0x198c50,_0xd79789);}const _0x1a08e6=void 0x0===_0x3b00f3['fillerOffset']?null:_0x3b00f3['fillerOffset'];return null!==_0x1a08e6&&(_0x11ab9e['getFillerOffset']=()=>_0x1a08e6),_0x11ab9e;}}['_makeModelFromViewString'](_0x2f0373){const _0x190cb7=JSON['parse'](_0x2f0373),_0x1a1a09=this['editor']['editing']['view']['document'],_0x4e1ceb=new _0x25515c(_0x1a1a09,_0x190cb7['map'](_0x1d6c9f=>this['_getViewFromDiffObj'](_0x1d6c9f,!0x0)));return this['editor']['data']['toModel'](_0x4e1ceb);}['_removeRevisionMarkers'](_0x106279){return(_0x106279=_0x106279['filter'](_0x5883fe=>!_0x5883fe['name']||'revision-start'!==_0x5883fe['name']&&'revision-end'!==_0x5883fe['name']))['forEach'](_0x100e62=>{'string'!=typeof _0x100e62&&(_0x100e62['children']=this['_removeRevisionMarkers'](_0x100e62['children']),_0x100e62['attributes']=_0x100e62['attributes']['filter'](_0x24e628=>!_0x24e628[0x0]['startsWith']('data-revision-')));}),_0x106279;}}function g(_0x4cfadd,_0x1835e8,_0x35ed61){const t=_0x4cfadd['t'];switch(_0x1835e8){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'},_0x35ed61);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x35ed61);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'';}}class u extends _0x24b312{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x424bf7,I,V,_0x46e7ac];}constructor(_0x1a2752){super(_0x1a2752),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1a7812=_0x5d30eb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1a7812},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5df97e=this['repository']['getRevision'](0x0),_0xfcf829=_0x5df97e&&null===_0x5df97e['creator']?_0x5df97e:null;if(this['_continueCurrentRevision']=!!_0xfcf829&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3a3a31=this['_source']['getCurrentRevisionId'](),_0x2b8dd2=this['repository']['getRevision'](_0x3a3a31);if(_0x2b8dd2)this['_startingVersion']=_0x2b8dd2['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x40f7d7=this['_source']['history']['_operations']['find'](_0x28cfa3=>!_0x28cfa3['_isInit']),_0x277a66=_0x40f7d7?_0x40f7d7['baseVersion']:this['_source']['history']['version'];_0x5df97e?(_0x5df97e['toVersion']<_0x277a66&&_0x5df97e['_update']({'toVersion':_0x277a66}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xfcf829['id'],this['_startingVersion']=_0xfcf829['fromVersion']):(this['_startingVersion']=_0x5df97e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x277a66,this['_continueCurrentRevision']=!0x1);}}else _0xfcf829&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xfcf829['toVersion'],this['editor']['model']['document']['history']['version']),_0xfcf829['fromVersion']===_0xfcf829['toVersion']?(0x0!==_0xfcf829['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xfcf829['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xfcf829['id'],this['_startingVersion']=_0xfcf829['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',_0x3d0126=>!_0x3d0126),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x51f8a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11137b;for(const _0x543b62 in _0x51f8a3){const _0x3658dc=_0x543b62,_0x15a758=_0x51f8a3[_0x3658dc];if('revisionHistoryLicenseKeyValid'==_0x15a758||'revisionHistoryLicenseKeyInvalid'==_0x15a758||'revisionHistoryLicenseKeyExpired'==_0x15a758||'revisionHistoryLicenseKeyDomainLimit'==_0x15a758||'revisionHistoryLicenseKeyNotAllowed'==_0x15a758||'revisionHistoryLicenseKeyEvaluationLimit'==_0x15a758||'revisionHistoryLicenseKeyTrialLimit'==_0x15a758||'revisionHistoryLicenseKeyUsageLimit'==_0x15a758){delete _0x51f8a3[_0x3658dc],_0x11137b=_0x15a758,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x11137b&&_0x51f8a3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x11137b&&_0x51f8a3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x11137b&&_0x51f8a3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x11137b&&_0x51f8a3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x11137b&&_0x51f8a3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x11137b&&_0x51f8a3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x11137b&&_0x51f8a3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1921eb=this['repository']['getRevision'](0x0),_0x197157=await this['getRevisionDocumentData'](_0x1921eb),_0x202e3c=await this['getRevisionRootsAttributes'](_0x1921eb);this['_replaceEditorDataWithRevisionData'](_0x197157,_0x202e3c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2040aa){this['_source']=_0x2040aa;}async['update'](){const _0x3d2e6b=await this['_source']['getLatestVersion']();if(_0x3d2e6b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x486ed8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d2e6b});_0x486ed8['authors']=_0x486ed8['authorsIds']['map'](_0x37284f=>this['editor']['plugins']['get']('Users')['getUser'](_0x37284f)),this['currentRevision']['_update'](_0x486ed8);}}async['saveRevision'](_0x9536bc={},_0x5ed203=null){const _0x1c7ba0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5ed203>this['currentRevision']['toVersion']&&(_0x5ed203=null),null===_0x5ed203&&(_0x5ed203=await this['_source']['getLatestVersion']());const _0x5cca83=this['_getFromVersion'](_0x5ed203),_0xadd4c6=this['buildRevisionData']({'from':_0x5cca83,'to':_0x5ed203});if(this['currentRevision']['toVersion']<_0x5ed203){const _0x391e67=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5ed203,'to':_0x5ed203});_0x391e67['authors']=[],_0x391e67['authorsIds']=[],_0x391e67['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x391e67,!0x0),delete _0x391e67['authors'],_0x1c7ba0['push'](_0x391e67);}_0x9536bc['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x9536bc['name']=_0x9536bc['name']||null,_0x9536bc['id']=_0x9536bc['id']||_0x5d30eb(),_0x9536bc={..._0x9536bc,..._0xadd4c6};const _0x49009d=this['addRevisionData'](_0x9536bc);_0x1c7ba0['push'](_0x9536bc);const _0x3ebb2f=this['repository']['getIndex'](_0x49009d);if(0x0!==_0x3ebb2f){const _0xcd2663=this['repository']['getRevision'](_0x3ebb2f-0x1);if(_0xcd2663['fromVersion']!==_0x5ed203){const _0x592c6c=this['_revisionDataBuilder']['getData'](_0x5ed203,_0xcd2663['toVersion']),_0x17ff37={'id':_0xcd2663['id'],'diffData':_0x592c6c['diffData'],'authorsIds':_0x592c6c['authorsIds'],'authors':_0x592c6c['authorsIds']['map'](_0x174457=>this['editor']['plugins']['get']('Users')['getUser'](_0x174457)),'fromVersion':_0x5ed203};_0xcd2663===this['currentRevision']&&(_0x17ff37['createdAt']=new Date(_0x9536bc['createdAt']['getTime']()+0xa)),_0xcd2663['_update'](_0x17ff37,!0x0),delete _0x17ff37['authors'],_0x1c7ba0['push'](_0x17ff37);}}if(this['adapter']){for(const _0x5c0b6d of _0x1c7ba0)this['_bufferUpdate'](_0x5c0b6d['id'],_0x5c0b6d,!0x0);this['sendBufferedUpdates']();}return _0x49009d;}['addRevisionData'](_0x2d5e7e){const _0x54cb24=this['repository']['createRevision'](_0x2d5e7e);return this['adapter']&&_0x54cb24['on']('_update',(_0x59f453,_0x851257,_0x4d3e5e)=>{_0x4d3e5e||(this['_bufferUpdate'](_0x851257['id'],_0x851257,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x54cb24,this['_findInsertionIndex'](_0x54cb24)),_0x54cb24;}async['getRevisionDocumentData'](_0x7d811c){return await this['_utils']['loadRevisionData'](_0x7d811c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x7d811c);}async['getRevisionRootsAttributes'](_0x1b1718){return await this['_utils']['loadRevisionData'](_0x1b1718,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1b1718);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x751e59=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c2d36=0x0;_0x2c2d36<_0x751e59['length'];_0x2c2d36++){const _0x2deecd=_0x751e59[_0x2c2d36];let _0x34f4b9=!0x1;for(const _0x4a3f0b of Object['keys'](_0x2deecd))void 0x0===_0x2deecd[_0x4a3f0b]?delete _0x2deecd[_0x4a3f0b]:'id'!==_0x4a3f0b&&(_0x34f4b9=!0x0);_0x34f4b9||(_0x751e59[_0x2c2d36]=null);}if(_0x751e59=_0x751e59['filter'](_0x1485c3=>null!==_0x1485c3),!_0x751e59['length'])return;for(let _0x250968=0x0;_0x250968<_0x751e59['length'];_0x250968++){const _0x3fad80=_0x751e59[_0x250968];void 0x0!==_0x3fad80['fromVersion']&&void 0x0===_0x3fad80['toVersion']&&(_0x3fad80['toVersion']=this['repository']['getRevision'](_0x3fad80['id'])['toVersion']),void 0x0!==_0x3fad80['toVersion']&&void 0x0===_0x3fad80['fromVersion']&&(_0x3fad80['fromVersion']=this['repository']['getRevision'](_0x3fad80['id'])['fromVersion']);}const _0xd3ccec=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x751e59,_0xd3ccec)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x597d42=>{if(_0x597d42){for(const _0x226f87 of _0x597d42)this['setRevisionData']({'id':_0x226f87['id'],'createdAt':_0x226f87['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x26c297=null,from:_0x114c34=null,to:_0x14b4fd=null}){_0x114c34=null!==_0x114c34?_0x114c34:_0x26c297['fromVersion'],_0x14b4fd=null!==_0x14b4fd?_0x14b4fd:_0x26c297['toVersion'];const _0x39661e=this['_revisionDataBuilder']['getData'](_0x114c34,_0x14b4fd),_0x1a8034={'diffData':_0x39661e['diffData'],'authorsIds':_0x39661e['authorsIds'],'fromVersion':_0x114c34,'toVersion':_0x14b4fd};if(!_0x26c297||_0x14b4fd!==_0x26c297['toVersion']){const _0x5e736d=_0x14b4fd-0x1,_0x33a89c=this['_source']['history']['getOperation'](_0x5e736d);_0x1a8034['createdAt']=_0x33a89c&&_0x33a89c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x114c34===this['_loadedStateData']['fromVersion']){for(const _0xecb05d of this['_loadedStateData']['authors'])_0x1a8034['authorsIds']['includes'](_0xecb05d['id'])||_0x1a8034['authorsIds']['push'](_0xecb05d['id']);}return _0x1a8034;}['_bufferUpdate'](_0x29c7b4,_0x25c45c,_0x45f177){if(this['_bufferedUpdates']['has'](_0x29c7b4)){const _0x10d3ce=this['_bufferedUpdates']['get'](_0x29c7b4);_0x25c45c=_0x45f177?{..._0x10d3ce,..._0x25c45c}:{..._0x25c45c,..._0x10d3ce};}this['_bufferedUpdates']['set'](_0x29c7b4,_0x25c45c);}['setRevisionData'](_0x5c6939){const _0x40b28f=this['repository']['getRevision'](_0x5c6939['id']);if(_0x5c6939['createdAt']&&(_0x5c6939['createdAt']=new Date(_0x5c6939['createdAt'])),_0x5c6939['authorsIds']){const _0xc8eb79=this['editor']['plugins']['get']('Users');_0x5c6939['authors']=_0x5c6939['authorsIds']['map'](_0x4d84c6=>_0xc8eb79['getUser'](_0x4d84c6));}_0x40b28f['_update'](_0x5c6939,!0x0);}['_createInitialRevision'](_0x2530e3){const _0x23f4e3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x23f4e3)this['_initialRevisionId']=_0x23f4e3['id'];else{const _0x40ac16=!this['editor']['model']['document']['roots']['find'](_0x58679e=>this['editor']['model']['hasContent'](_0x58679e)),_0x305737=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b126f=g(this['editor']['locale'],_0x40ac16?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2530e3,'to':_0x2530e3,'id':this['_initialRevisionId'],'name':_0x5b126f,'creatorId':_0x305737});}}['_createCurrentRevision'](_0x1a75fd){const _0x2ea62e=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2ea62e),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1a75fd,'to':_0x1a75fd,'id':_0x2ea62e,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x14407f,_0x2683d7){let _0x236efb=this['editor']['config']['get']('initialData'),_0x173f9f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x236efb){_0x236efb={};for(const _0x40d140 of this['editor']['model']['document']['getRootNames']())_0x236efb[_0x40d140]='';}if('string'==typeof _0x236efb&&(_0x236efb={'main':_0x236efb}),void 0x0===_0x173f9f){_0x173f9f={};for(const _0xc1b5ad of this['editor']['model']['document']['getRootNames']())_0x173f9f[_0xc1b5ad]={};}let _0x240c2a=!0x1;const _0x660e8=Object['keys'](_0x236efb),_0x130953=Object['keys'](_0x14407f);for(const _0x942634 of _0x660e8){if(_0x236efb[_0x942634]!==_0x14407f[_0x942634]&&''!==_0x236efb[_0x942634]['trim']()){_0x240c2a=!0x0;break;}if(!_0x4585bb(_0x173f9f[_0x942634],_0x2683d7[_0x942634])&&Object['keys'](_0x173f9f[_0x942634])['length']>0x0){_0x240c2a=!0x0;break;}}_0x240c2a||(_0x240c2a=_0x130953['some'](_0x532507=>!this['editor']['model']['document']['getRoot'](_0x532507))),_0x240c2a&&_0x48be52('editor-initial-data-replaced-with-revision-data',{'editorData':_0x236efb,'editorRootsAttributes':_0x173f9f,'revisionData':_0x14407f,'revisionRootsAttributes':_0x2683d7}),this['editor']['config']['set']('initialData',_0x14407f),this['editor']['config']['set']('rootsAttributes',_0x2683d7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52f531=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52f531['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x104860){const _0x167646=this['repository']['getRevisions']();_0x167646['reverse']();let _0x3fe8f5=0x0;for(;_0x3fe8f5<_0x167646['length'];){const _0x2ef135=_0x167646[_0x3fe8f5];if(_0x2ef135===this['currentRevision']){_0x3fe8f5++;continue;}if(_0x2ef135['id']===this['_initialRevisionId'])break;const _0x549adc=_0x104860['toVersion']-_0x2ef135['toVersion']||_0x104860['fromVersion']-_0x2ef135['fromVersion'];if(_0x549adc>0x0)break;if(_0x549adc<0x0)_0x3fe8f5++;else{if(!_0x104860['creator']&&_0x2ef135['creator'])break;if(_0x2ef135['creator']||!_0x104860['creator']){if(_0x104860['createdAt']>_0x2ef135['createdAt'])break;_0x3fe8f5++;}else _0x3fe8f5++;}}return _0x3fe8f5;}['_getFromVersion'](_0x5228c6){const _0x17961a=this['repository']['getRevisions']();_0x17961a['reverse'](),_0x17961a['shift']();const _0x39f7c1=_0x17961a['find'](_0x135016=>_0x135016['toVersion']<=_0x5228c6)['toVersion'];return _0x39f7c1<this['_startingVersion']?this['_startingVersion']:_0x39f7c1;}['_makeRevision']({name:_0x500ad7,from:_0x5b8f72,to:_0x15589a,creatorId:_0x5f2180,id:_0x1229b5}){const _0x381b60=this['buildRevisionData']({'from':_0x5b8f72,'to':_0x15589a});_0x381b60['name']=_0x500ad7,_0x381b60['creatorId']=_0x5f2180,_0x381b60['id']=_0x1229b5;const _0x2bde08=this['addRevisionData'](_0x381b60);return this['adapter']&&this['_bufferUpdate'](_0x381b60['id'],_0x381b60,!0x0),_0x2bde08;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4a8a6c){this['editor']=_0x4a8a6c,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'](_0x53d25c){this['source']=_0x53d25c;const _0x2e255f=new Map(),_0x52614c=new Map(),_0x523578=this['editor']['model']['document']['roots']['map'](_0x5afca1=>_0x5afca1['rootName']);for(const _0x258aa8 of _0x523578){const _0x5e573d=this['editor']['model']['document']['getRoot'](_0x258aa8),_0x6780fb=N(_0x5e573d);_0x2e255f['set'](_0x258aa8,_0x6780fb),_0x52614c['set'](_0x258aa8,Object['fromEntries'](_0x5e573d['getAttributes']()));}const _0x56e83c=Array['from'](this['editor']['model']['markers'])['map'](_0x1df6fc=>[_0x1df6fc['name'],_0x1df6fc['getRange']()]),_0x3fcbda=this['source']['version'];this['_saveMetaData'](_0x3fcbda,_0x2e255f,_0x56e83c,_0x52614c),this['_startingRevisionId']=this['_revisionId'];const _0x2ba963=new Map(),_0xf57a8a=new Map();for(const _0xbb11cb of _0x523578){const _0x221d55=P(_0xbb11cb);_0x2ba963['set'](_0xbb11cb,_0x221d55),_0xf57a8a['set'](_0xbb11cb,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2ba963,[],_0xf57a8a);}['getData'](_0x33bccd,_0x1f99b6){if(this['_lastFrom']===_0x33bccd&&this['_lastTo']<=_0x1f99b6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1f99b6,!0x0);else{if(!this['_savedMetaData']['has'](_0x33bccd)){const _0x32a249=this['_getPreviousFrom'](_0x33bccd);this['_calculateMetaData'](_0x32a249,_0x33bccd,!0x1);}this['_calculateMetaData'](_0x33bccd,_0x1f99b6,!0x0);}return this['_lastFrom']=_0x33bccd,this['_lastTo']=_0x1f99b6,this['_getState']();}['loadState'](_0x2f506d){const _0x3f5948=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2f506d['fromVersion'],this['_lastTo']=_0x2f506d['toVersion'];for(const _0x9415ce in _0x2f506d['diffData']){const _0x2cd227=_0x2f506d['diffData'][_0x9415ce]['attachChange'],_0x9a7c43=_0x25a738(_0x2f506d['diffData'][_0x9415ce]['attributesBefore'])||{},_0x1a06cd=_0x3f5948['_makeModelFromViewString'](_0x2f506d['diffData'][_0x9415ce]['deletions']);_0x1a06cd['rootName']=_0x9415ce,_0x1a06cd['_isAttached']=!_0x2cd227||!_0x2cd227['isAttached'],_0x1a06cd['isAttached']=()=>_0x1a06cd['_isAttached'],this['_baseRoots']['set'](_0x9415ce,_0x1a06cd),this['_baseRootsAttributes']['set'](_0x9415ce,_0x9a7c43),_0x2cd227&&this['_touchedRoots']['set'](_0x9415ce,_0x2cd227);const _0x124b12=this['_makeIdsRoot'](_0x1a06cd);this['_baseIdsRoots']['set'](_0x9415ce,_0x124b12);for(const [_0x599b09,_0x3c4d4f]of _0x1a06cd['markers']){if(!_0x599b09['startsWith']('revision:'))continue;const _0xea4eba=_0x599b09['split'](':')[0x2];for(const _0x239d77 of _0x3c4d4f['getWalker']({'singleCharacters':!0x0})){const _0x31571f=this['_getVidAttributeName'](_0x239d77),_0x510dcf='elementEnd'==_0x239d77['type']?_0x239d77['previousPosition']['path']['slice'](0x0,-0x1):_0x239d77['previousPosition']['path'],_0x11af56=_0x124b12['getNodeByPath'](_0x510dcf)['getAttribute'](_0x31571f);this['_touched']['set'](_0x11af56,{'userId':_0xea4eba});}}}this['_startingRevisionId']=this['_revisionId'];const _0x464e53=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4f1be9=>!this['_touched']['has'](_0x4f1be9));let _0x31f0ab=0x0;const _0x5cc74c=new Map();for(const _0x2b223a in _0x2f506d['diffData']){const _0x47310a=_0x2f506d['diffData'][_0x2b223a]['attachChange'],_0x530ec5=_0x25a738(_0x2f506d['diffData'][_0x2b223a]['attributesAfter'])||{},_0x4eea61=_0x3f5948['_makeModelFromViewString'](_0x2f506d['diffData'][_0x2b223a]['insertions']);_0x4eea61['rootName']=_0x2b223a,_0x4eea61['_isAttached']=!_0x47310a||_0x47310a['isAttached'],_0x4eea61['isAttached']=()=>_0x4eea61['_isAttached'],this['_diffRoots']['set'](_0x2b223a,_0x4eea61),this['_diffRootsAttributes']['set'](_0x2b223a,_0x530ec5);const _0x4e8498=this['_makeIdsRoot'](_0x4eea61,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b223a,_0x4e8498),_0x5cc74c['set'](_0x2b223a,_0x4eea61['isAttached']()?_0x530ec5:{});for(const [_0x38ab63,_0x6631e5]of _0x4eea61['markers']){if(!_0x38ab63['startsWith']('revision:'))continue;const _0x24eba0=_0x38ab63['split'](':')[0x2];for(const _0x276fd7 of _0x6631e5['getWalker']({'singleCharacters':!0x0})){const _0x5e08a2=this['_getVidAttributeName'](_0x276fd7),_0x5046d1=this['_revisionId']++,_0x5dcfb1='elementEnd'==_0x276fd7['type']?_0x276fd7['previousPosition']['path']['slice'](0x0,-0x1):_0x276fd7['previousPosition']['path'];_0x4e8498['getNodeByPath'](_0x5dcfb1)['_setAttribute'](_0x5e08a2,_0x5046d1),this['_touched']['set'](_0x5046d1,{'userId':_0x24eba0});}}for(const _0x27c3ea of this['editor']['model']['createRangeIn'](_0x4eea61)['getWalker']({'singleCharacters':!0x0})){const _0x38591b=this['_getVidAttributeName'](_0x27c3ea),_0x50ded4='elementEnd'==_0x27c3ea['type']?_0x27c3ea['previousPosition']['path']['slice'](0x0,-0x1):_0x27c3ea['previousPosition']['path'],_0x307c5a=_0x4e8498['getNodeByPath'](_0x50ded4);_0x307c5a['getAttribute'](_0x38591b)>0x0||_0x307c5a['_setAttribute'](_0x38591b,_0x464e53[_0x31f0ab++]);}for(const [_0xbe53e3,_0x4bd5b4]of _0x4eea61['markers'])_0xbe53e3['startsWith']('revision:')||this['_markers']['set'](_0xbe53e3,_0x4bd5b4);}const _0x5e8c41=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5e8c41),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5e8c41,0x1));const _0x44bc03=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x44bc03),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x44bc03,0x1));const _0x348dfc=Array['from'](this['_diffRoots'])['map'](([_0x4db58c,_0x31881e])=>[_0x4db58c,N(_0x31881e)]);this['_saveMetaData'](this['_lastTo'],_0x348dfc,this['_markers'],_0x5cc74c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1bc42a,_0x421074,_0x5f39dc,_0x56bdb2){const _0x7bee2e=new Map(_0x421074),_0x153b1f=new Map(_0x25a738(_0x56bdb2)),_0x3267da=new Map();for(const [_0x75463e,_0x32b744]of _0x5f39dc)_0x3267da['set'](_0x75463e,{'start':_0x32b744['start']['clone'](),'end':_0x32b744['end']['clone'](),'rootName':_0x32b744['root']['rootName']});this['_savedMetaData']['set'](_0x1bc42a,{'roots':_0x7bee2e,'markers':_0x3267da,'rootsAttributes':_0x153b1f});}['_removeMetaData'](_0x52e3dc){this['_savedMetaData']['delete'](_0x52e3dc);}['_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'](_0x1c5ed5,_0x17eb8e=null){let _0x2706b5=null;_0x1c5ed5['is']('documentFragment')||(_0x2706b5=new ut(_0x1c5ed5['name'],{'vid_start':null===_0x17eb8e?this['_revisionId']++:_0x17eb8e++}));const _0x977ea6=[];for(const _0x2015fc of _0x1c5ed5['getChildren']())if(_0x2015fc['is']('element')){_0x977ea6['push'](this['_makeIdsRoot'](_0x2015fc,_0x17eb8e));const _0x168572=_0x977ea6[_0x977ea6['length']-0x1];null!==_0x17eb8e&&(_0x17eb8e=_0x168572['is']('element','$text')?_0x168572['getAttribute']('vid')+0x1:_0x168572['getAttribute']('vid_end')+0x1);}else{for(let _0x5d057b=0x0;_0x5d057b<_0x2015fc['offsetSize'];_0x5d057b++)_0x977ea6['push'](new ut('$text',{'vid':null===_0x17eb8e?this['_revisionId']++:_0x17eb8e++}));}if(_0x1c5ed5['is']('documentFragment')){const _0x5d1211=P(_0x1c5ed5['rootName']);return _0x5d1211['_insertChild'](0x0,_0x977ea6),_0x5d1211;}return _0x2706b5['_setAttribute']('vid_end',null===_0x17eb8e?this['_revisionId']++:_0x17eb8e++),_0x2706b5['_insertChild'](0x0,_0x977ea6),_0x2706b5;}['_calculateMetaData'](_0x5277ef,_0x49a1bb,_0x2c6688){this['_reset']();const {roots:_0x578330,markers:_0x2794db,rootsAttributes:_0xe6ad5e}=this['_savedMetaData']['get'](_0x5277ef);this['_baseRoots']=new Map(_0x578330),this['_baseRootsAttributes']=new Map(_0x25a738(_0xe6ad5e));for(const [_0x1c4277,_0x5aa70b]of this['_baseRoots'])if('$graveyard'!==_0x1c4277&&(this['_diffRoots']['set'](_0x1c4277,N(_0x5aa70b)),this['_diffRootsAttributes']=new Map(_0x25a738(_0xe6ad5e)),_0x2c6688)){const _0x194d03=this['_revisionId'];this['_idsRoots']['set'](_0x1c4277,this['_makeIdsRoot'](_0x5aa70b)),this['_baseIdsRoots']['set'](_0x1c4277,this['_makeIdsRoot'](_0x5aa70b,_0x194d03));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x2c6688&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xb33eb9,_0x26e1e6]of _0x2794db){const _0x55b641=this['_baseRoots']['get'](_0x26e1e6['rootName']),_0x56534f=this['_diffRoots']['get'](_0x26e1e6['rootName']),_0x4c80f3=new lt(this['_fixPosition'](_0x26e1e6['start'],_0x55b641),this['_fixPosition'](_0x26e1e6['end'],_0x55b641)),_0x417641=this['_fixRange'](_0x4c80f3,_0x56534f);_0x55b641['markers']['set'](_0xb33eb9,_0x4c80f3),this['_markers']['set'](_0xb33eb9,_0x417641);}this['_applyOperations'](_0x5277ef,_0x49a1bb,_0x2c6688);}['_applyOperations'](_0x4974bc,_0x418e78,_0x1c3126){for(const _0x262efd of this['source']['getOperations'](_0x4974bc,_0x418e78))this['_handleOperation'](_0x262efd,_0x1c3126);for(const _0x114e1d of this['_diffRoots']['values']())_0x114e1d['markers']['clear']();for(const [_0x52672e,_0x4c7139]of this['_markers']){this['_diffRoots']['get'](_0x4c7139['root']['rootName'])['markers']['set'](_0x52672e,_0x4c7139['clone']());}const _0x4ce832=new Map(),_0x4d82ea=new Map();for(const [_0x485fc4,_0x3b4dd0]of this['_diffRoots'])_0x4ce832['set'](_0x485fc4,N(_0x3b4dd0)),_0x4d82ea['set'](_0x485fc4,this['_diffRootsAttributes']['get'](_0x485fc4));this['_saveMetaData'](_0x418e78,_0x4ce832,this['_markers'],_0x4d82ea);}['_getPreviousFrom'](_0x3f7be7){const _0x5de9d4=Array['from'](this['_savedMetaData']['keys']());_0x5de9d4['sort']((_0x37ebfd,_0x320199)=>_0x37ebfd-_0x320199),_0x5de9d4['reverse']();for(const _0x1be605 of _0x5de9d4)if(_0x1be605<_0x3f7be7)return _0x1be605;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4818c3,_0x158ad4){const _0x1ba779=Array['from'](_0x158ad4['markers'])['map'](([_0x25b8dc,_0x30f0dc])=>[_0x25b8dc,this['_fixRange'](_0x30f0dc,_0x4818c3)]);_0x4818c3['markers']=new Map(_0x1ba779);}['_transformMarkers'](_0x4e01b3){for(const _0x50835d of this['_markers']['values']()){const _0x268e7d=_0x50835d['getTransformedByOperation'](_0x4e01b3),_0x13b0a2=lt['_createFromRanges'](_0x268e7d);_0x50835d['start']=_0x13b0a2['start'],_0x50835d['end']=_0x13b0a2['end'];}}['_handleOperation'](_0xf0dcaa,_0x2e9ac9){if('addRoot'!=_0xf0dcaa['type']&&'detachRoot'!=_0xf0dcaa['type']){if('insert'==_0xf0dcaa['type']){const _0x2e3706=_0xf0dcaa['position']['root']['rootName'];this['_diffRoots']['has'](_0x2e3706)||(this['_diffRoots']['set'](_0x2e3706,P(_0x2e3706,!0x0)),this['_diffRootsAttributes']['set'](_0x2e3706,{}),_0x2e9ac9&&this['_idsRoots']['set'](_0x2e3706,P(_0x2e3706,!0x0)));}else{if('addRootAttribute'==_0xf0dcaa['type']||'removeRootAttribute'==_0xf0dcaa['type']||'changeRootAttribute'==_0xf0dcaa['type'])return void this['_handleRootAttributeOperation'](_0xf0dcaa);'marker'==_0xf0dcaa['type']&&this['_handleMarkerOperation'](_0xf0dcaa);}if('marker'!==_0xf0dcaa['type']){const _0x15ec3d=this['_cloneOperation'](_0xf0dcaa,this['_diffRoots']);_0x15ec3d['_execute'](),this['_transformMarkers'](_0x15ec3d);}if(_0x2e9ac9)switch(_0xf0dcaa['type']){case'insert':this['_handleInsertOperation'](_0xf0dcaa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xf0dcaa);break;case'merge':this['_handleMergeOperation'](_0xf0dcaa);break;case'split':this['_handleSplitOperation'](_0xf0dcaa);}}else this['_handleRootOperation'](_0xf0dcaa,_0x2e9ac9);}['_cloneOperation'](_0x3eeb00,_0x4bdfbf){const _0x1b2330=_0x3eeb00['clone']();return _0x1b2330['_authorId']=_0x3eeb00['_authorId'],this['_fixOperation'](_0x1b2330,_0x4bdfbf),_0x1b2330;}['_getBaseVids'](_0x4e21da){return _0x4e21da['map'](_0x4494ae=>{const _0x31c716=this['_getVidAttributeName'](_0x4494ae);return Number(_0x4494ae['item']['getAttribute'](_0x31c716));});}['_generateTape'](_0x480e18,_0x131290){if(_0x480e18['is']('element','$text'))_0x131290['push']({'item':_0x480e18,'type':'text'});else{_0x480e18['is']('element')&&_0x131290['push']({'item':_0x480e18,'type':'elementStart'});for(const _0x263a0c of _0x480e18['getChildren']())this['_generateTape'](_0x263a0c,_0x131290);_0x480e18['is']('element')&&_0x131290['push']({'item':_0x480e18,'type':'elementEnd'});}return _0x131290;}['_getState'](){const _0x2fdb62=new Map(this['_touched']),_0xef2780=new Map(_0x2fdb62),_0x3b71fe=new Map(),_0x249642={'insertions':{},'deletions':{}},_0xd1b268={'insertions':{},'deletions':{}},_0x266380=new Map(),_0x188d78=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x188d78['delete']('$graveyard');for(const _0x1be5f1 of _0x188d78){const _0x432493=this['_diffRoots']['get'](_0x1be5f1)||P(_0x1be5f1,!0x1),_0x585212=this['_baseRoots']['get'](_0x1be5f1)||P(_0x1be5f1,!0x1);_0x432493['isAttached']()||_0x585212['isAttached']()?(_0x249642['insertions'][_0x1be5f1]=N(_0x432493),_0x249642['deletions'][_0x1be5f1]=N(_0x585212),this['_copyMarkers'](_0x249642['deletions'][_0x1be5f1],_0x585212),this['_copyMarkers'](_0x249642['insertions'][_0x1be5f1],_0x432493),_0xd1b268['insertions'][_0x1be5f1]=this['_generateTape'](this['_idsRoots']['get'](_0x1be5f1),[]),_0xd1b268['deletions'][_0x1be5f1]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1be5f1)||P(_0x1be5f1,!0x1),[])):_0x188d78['delete'](_0x1be5f1);}for(const _0x642eb8 of _0x188d78){const _0x186880=_0xd1b268['insertions'][_0x642eb8];for(const _0x1b58fa of _0x186880){const _0x239991=this['_getVidAttributeName'](_0x1b58fa),_0x99904c=_0x1b58fa['item']['getAttribute'](_0x239991);_0xef2780['delete'](_0x99904c),_0x99904c>=this['_startingRevisionId']&&_0x3b71fe['set'](_0x99904c,_0x2fdb62['get'](_0x99904c));}}for(const _0x5c1b6f of _0x188d78){const _0x1ff4cc=_0xd1b268['insertions'][_0x5c1b6f],_0x28ddf7=this['_getBaseVids'](_0xd1b268['deletions'][_0x5c1b6f]);let _0x592f1c=0x0;for(const _0x113cbf of _0x1ff4cc){const _0x187a7f=this['_getVidAttributeName'](_0x113cbf),_0xccad6d=_0x113cbf['item']['getAttribute'](_0x187a7f);if(!_0x3b71fe['has'](_0xccad6d)&&!_0x266380['has'](_0xccad6d)){if(_0xef2780['has'](_0xccad6d))_0x592f1c++;else{if(_0xccad6d!=_0x28ddf7[_0x592f1c]){const _0x243732=_0x2fdb62['get'](_0xccad6d)||_0x2fdb62['get'](_0x28ddf7[_0x592f1c]);for(;_0xccad6d!=_0x28ddf7[_0x592f1c];)_0xef2780['has'](_0x28ddf7[_0x592f1c])||(_0x266380['set'](_0x28ddf7[_0x592f1c],_0x243732),_0x2fdb62['set'](_0x28ddf7[_0x592f1c],_0x243732)),_0x592f1c++;}_0x592f1c++;}}}}for(const _0x3f74cb of _0x188d78){const _0x252809=_0xd1b268['insertions'][_0x3f74cb];for(const _0x4313ab of _0x252809){const _0x210882=this['_getVidAttributeName'](_0x4313ab),_0x50b567=_0x4313ab['item']['getAttribute'](_0x210882);if(_0x266380['has'](_0x50b567)){const _0x44087b=_0x266380['get'](_0x50b567);_0xef2780['has'](_0x50b567)||_0xef2780['set'](_0x50b567,{..._0x44087b}),_0x3b71fe['set'](_0x50b567,{..._0x44087b});}}}for(const _0x581c75 of _0xef2780['keys']())_0x581c75>=this['_startingRevisionId']&&_0xef2780['delete'](_0x581c75);const _0x53366f=new Map();for(const _0x4d00e6 of _0x188d78){let _0x59b79d=_0xd1b268['insertions'][_0x4d00e6];for(const _0x2d5860 of _0x59b79d)if(_0x2d5860['item']['is']('element','tableCell')){const _0x40a431=this['_getVidAttributeName'](_0x2d5860),_0x35e93e=_0x2d5860['item']['getAttribute'](_0x40a431);if(_0x3b71fe['has'](_0x35e93e)){const _0x2b148a=_0x2d5860['item']['parent']['parent']['getAttribute']('vid_start'),_0x2dc720=_0x53366f['get'](_0x2b148a)||new Set();_0x2dc720['add'](_0x3b71fe['get'](_0x35e93e)['userId']),_0x53366f['set'](_0x2b148a,_0x2dc720);}}_0x59b79d=_0xd1b268['deletions'][_0x4d00e6];for(const _0x14ff94 of _0x59b79d)if(_0x14ff94['item']['is']('element','tableCell')){const _0x21fd3d=this['_getVidAttributeName'](_0x14ff94),_0x13e771=_0x14ff94['item']['getAttribute'](_0x21fd3d);if(_0xef2780['has'](_0x13e771)){const _0x54b0a5=_0x14ff94['item']['parent']['parent']['getAttribute']('vid_start'),_0x1968f0=_0x53366f['get'](_0x54b0a5)||new Set();_0x1968f0['add'](_0xef2780['get'](_0x13e771)['userId']),_0x53366f['set'](_0x54b0a5,_0x1968f0);}}for(const _0x36739b of _0x53366f['keys']())(_0x3b71fe['has'](_0x36739b)||_0xef2780['has'](_0x36739b))&&_0x53366f['delete'](_0x36739b);}for(const _0x330bd7 of _0x188d78){const _0x44d0=_0xd1b268['insertions'][_0x330bd7];let _0x3e10aa=null,_0x12a5c1=null;for(const _0x1af725 of _0x44d0){const _0x59585d=this['_getVidAttributeName'](_0x1af725),_0x26533d=_0x1af725['item']['getAttribute'](_0x59585d),_0xb4f8c8=_0x53366f['get'](_0x26533d);_0xb4f8c8&&'elementStart'==_0x1af725['type']&&(_0x3e10aa=Array['from'](_0xb4f8c8)[0x0],_0x12a5c1=_0x1af725['item']['getAttribute']('vid_end')),_0x3e10aa&&(_0xef2780['set'](_0x26533d,{'userId':_0x3e10aa}),_0x3b71fe['set'](_0x26533d,{'userId':_0x3e10aa})),_0x26533d==_0x12a5c1&&(_0x3e10aa=null,_0x12a5c1=null);}}const _0x3593c8={},_0x82ebb7=new Set();for(const _0x300200 of _0x188d78){const _0x416935=_0x249642['deletions'][_0x300200],_0x1c3aee=_0x249642['insertions'][_0x300200];for(const {userId:_0x27116f}of this['_touchedMarkers']['values']())null!==_0x27116f&&_0x82ebb7['add'](_0x27116f);for(const {userId:_0x5c3e1e}of this['_touchedRoots']['values']())null!==_0x5c3e1e&&_0x82ebb7['add'](_0x5c3e1e);this['_markChanges'](_0x1c3aee,_0xd1b268['insertions'][_0x300200],_0x3b71fe,'insertion',_0x82ebb7),this['_markChanges'](_0x416935,_0xd1b268['deletions'][_0x300200],_0xef2780,'deletion',_0x82ebb7),_0x3593c8[_0x300200]={'insertions':this['_prepareViewToSave'](_0x1c3aee),'deletions':this['_prepareViewToSave'](_0x416935),'attachChange':this['_touchedRoots']['get'](_0x300200)||null,'attributesBefore':_0x25a738(this['_baseRootsAttributes']['get'](_0x300200))||{},'attributesAfter':_0x25a738(this['_diffRootsAttributes']['get'](_0x300200))};}return{'diffData':_0x3593c8,'authorsIds':Array['from'](_0x82ebb7)};}['_processRootBeforeSave'](_0x286ab3){for(const [,_0x2d9302]of _0x286ab3['markers']){const _0x33567e=_0x2d9302['start']['getAncestors']()['filter'](_0x1184c5=>'tableCell'==_0x1184c5['name']);for(const _0x44a829 of _0x33567e)0x1==_0x44a829['childCount']&&_0x44a829['getChild'](0x0)['is']('element','paragraph')&&_0x44a829['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x371fa3){this['_processRootBeforeSave'](_0x371fa3);const _0x4e4ea5=this['editor']['data']['toView'](_0x371fa3,{}),_0x5c5d21=Array['from'](_0x4e4ea5['getChildren']())['map'](_0x5c7113=>this['_getViewJson'](_0x5c7113));return JSON['stringify'](_0x5c5d21);}['_getViewJson'](_0x5e6bd3){if(_0x5e6bd3['is']('$text'))return _0x5e6bd3['data'];{const _0x18089d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x521502=_0x5e6bd3,_0x16591a=this['editor']['data']['htmlProcessor']['domConverter'],_0x39e827={'type':_0x18089d['_getTypeCharForViewElement'](_0x521502),'name':_0x521502['name'],'attributes':Array['from'](_0x521502['getAttributes']()),'children':Array['from'](_0x521502['getChildren']())['map'](_0x5da29a=>this['_getViewJson'](_0x5da29a))};if(_0x5e6bd3['is']('uiElement')&&'$comment'!=_0x5e6bd3['name']){const _0x555625=_0x5e6bd3['render'](_0x16591a['domDocument'],_0x16591a);_0x39e827['children']['push'](_0x555625['outerHTML']);}else{if(_0x5e6bd3['is']('rawElement')){const _0x395293=_0x16591a['domDocument']['createElement'](_0x521502['name']);_0x5e6bd3['render'](_0x395293,_0x16591a),_0x39e827['children']['push'](_0x395293['innerHTML']);}}const _0x9a6bf=Array['from'](_0x521502['getCustomProperties']());_0x9a6bf['length']>0x0&&(_0x39e827['customProperties']=_0x9a6bf);const _0xad43d3=_0x521502['getFillerOffset']();return null!==_0xad43d3&&(_0x39e827['fillerOffset']=_0xad43d3),_0x39e827;}}['_markChanges'](_0x23d5b7,_0x5b8c6d,_0x54fefd,_0x329a49,_0x1635f6){let _0x3fae66=null,_0x3f61cf=null,_0x39b8c8=0x0;const _0x400711=this['editor']['model'];for(let _0x2b8489=0x0;_0x2b8489<_0x5b8c6d['length'];_0x2b8489++){const _0x434a46=this['_getVidAttributeName'](_0x5b8c6d[_0x2b8489]),_0x5c3fd7=_0x5b8c6d[_0x2b8489]['item']['getAttribute'](_0x434a46),_0x2c60c8=_0x54fefd['get'](_0x5c3fd7),_0x146e49=_0x2b8489==_0x5b8c6d['length']-0x1;(!_0x3fae66&&_0x2c60c8&&(_0x3fae66=_0x2c60c8,_0x3f61cf=_0x5b8c6d[_0x2b8489]),_0x3fae66&&(!_0x2c60c8||_0x2c60c8['userId']!=_0x3fae66['userId']))&&(_0x2c4022(_0x2c60c8,F(_0x3f61cf,_0x23d5b7,_0x400711),F(_0x5b8c6d[_0x2b8489],_0x23d5b7,_0x400711)),_0x3fae66=_0x2c60c8||null,_0x3f61cf=_0x2c60c8?_0x5b8c6d[_0x2b8489]:null),_0x3fae66&&_0x146e49&&_0x2c4022(_0x2c60c8,F(_0x3f61cf,_0x23d5b7,_0x400711),B(_0x5b8c6d[_0x2b8489],_0x23d5b7,_0x400711));}function _0x2c4022(_0x19f8e2,_0x446728,_0x12903d){const _0x56714c=_0x3fae66['userId'],_0x15654a='revision:'+_0x329a49+':'+_0x56714c+':'+_0x39b8c8++,_0x173391=_0x400711['createRange'](_0x446728,_0x12903d);_0x23d5b7['markers']['set'](_0x15654a,_0x173391),null!==_0x56714c&&_0x1635f6['add'](_0x56714c);}}['_getVidAttributeName'](_0x5ff105){switch(_0x5ff105['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1082a0,_0x331272){_0x1082a0['baseVersion']=null;for(const _0x4d4b4a in _0x1082a0){const _0x6b310=_0x1082a0[_0x4d4b4a];if(_0x6b310 instanceof ft){const _0x2c3683=_0x331272['get'](_0x6b310['root']['rootName']);_0x1082a0[_0x4d4b4a]=this['_fixPosition'](_0x6b310,_0x2c3683);}if(_0x6b310 instanceof lt){const _0x37614e=_0x331272['get'](_0x6b310['root']['rootName']);_0x1082a0[_0x4d4b4a]=this['_fixRange'](_0x6b310,_0x37614e);}'root'===_0x4d4b4a&&(_0x1082a0['root']=_0x331272['get'](_0x1082a0['root']['rootName']));}}['_fixRange'](_0x4fa95f,_0x887f73){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4fa95f['start'],_0x887f73),this['_fixPosition'](_0x4fa95f['end'],_0x887f73));}['_fixPosition'](_0x2d241c,_0xe43473){return this['editor']['model']['createPositionFromPath'](_0xe43473,_0x2d241c['path'],_0x2d241c['stickiness']);}['_handleInsertOperation'](_0x158d0d){const _0x44a6d1=this['_idsRoots']['get'](_0x158d0d['position']['root']['rootName']),_0x1a181b=this['_fixPosition'](_0x158d0d['position'],_0x44a6d1),_0x5d3162=null===_0x158d0d['_authorId']?null:_0x158d0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x295880=_0x1a181b['parent'],_0x38f3cc=this['_revisionId'],_0x26dcb2=[];for(const _0x1dc907 of _0x158d0d['nodes'])if(_0x1dc907['is']('element'))_0x26dcb2['push'](this['_makeIdsRoot'](_0x1dc907));else{for(let _0x4abb56=0x0;_0x4abb56<_0x1dc907['offsetSize'];_0x4abb56++)_0x26dcb2['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x48c922=this['_revisionId'];for(let _0x39881e=_0x38f3cc;_0x39881e<_0x48c922;_0x39881e++)this['_touched']['set'](_0x39881e,{'userId':_0x5d3162});_0x295880['_insertChild'](_0x1a181b['offset'],_0x26dcb2);}['_handleMoveOperation'](_0x1941b1){(_0x1941b1=this['_cloneOperation'](_0x1941b1,this['_idsRoots']))['_execute']();const _0x445577=null===_0x1941b1['_authorId']?null:_0x1941b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x205c93=_0x1941b1['getMovedRangeStart'](),_0x3995bf=_0x205c93['parent'],_0x1ceaac=_0x205c93['offset'];!function _0xa17441(_0x279bdd,_0x1db16b,_0x566dcc,_0x43f29c){for(let _0x544e1c=_0x566dcc;_0x544e1c<_0x43f29c;_0x544e1c++){const _0x36251f=_0x1db16b['getChild'](_0x544e1c);_0x36251f['is']('element','$text')?_0x279bdd['set'](_0x36251f['getAttribute']('vid'),{'userId':_0x445577}):(_0x279bdd['set'](_0x36251f['getAttribute']('vid_start'),{'userId':_0x445577}),_0xa17441(_0x279bdd,_0x36251f,0x0,_0x36251f['childCount']),_0x279bdd['set'](_0x36251f['getAttribute']('vid_end'),{'userId':_0x445577}));}}(this['_touched'],_0x3995bf,_0x1ceaac,_0x1ceaac+_0x1941b1['howMany']);}['_handleMergeOperation'](_0x14e0b9){const _0x1917d5=null===(_0x14e0b9=this['_cloneOperation'](_0x14e0b9,this['_idsRoots']))['_authorId']?null:_0x14e0b9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4eeca1=_0x14e0b9['targetPosition']['parent'],_0x5973da=_0x14e0b9['sourcePosition']['parent'],_0x1d1726=_0x4eeca1['getAttribute']('vid_end'),_0x7d4a76=_0x5973da['getAttribute']('vid_start');_0x4eeca1['_setAttribute']('vid_end',_0x5973da['getAttribute']('vid_end')),_0x5973da['_setAttribute']('vid_end',_0x1d1726),this['_touched']['set'](_0x7d4a76,{'userId':_0x1917d5}),this['_touched']['set'](_0x1d1726,{'userId':_0x1917d5}),_0x14e0b9['_execute']();}['_handleSplitOperation'](_0x7d72fa){const _0x1c1aa3=null===(_0x7d72fa=this['_cloneOperation'](_0x7d72fa,this['_idsRoots']))['_authorId']?null:_0x7d72fa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4f2a1c=_0x7d72fa['graveyardPosition'],_0x14253e=_0x7d72fa['splitPosition']['parent'];_0x7d72fa['_execute']();const _0x41f820=_0x14253e['getAttribute']('vid_end'),_0x1f1733=_0x7d72fa['insertionPosition']['nodeAfter'];if(_0x4f2a1c){const _0x2004f0=_0x1f1733['getAttribute']('vid_end'),_0x4cfcf0=_0x14253e['getAttribute']('vid_end');_0x14253e['_setAttribute']('vid_end',_0x2004f0),_0x1f1733['_setAttribute']('vid_end',_0x4cfcf0),this['_touched']['set'](_0x14253e['getAttribute']('vid_end'),{'userId':_0x1c1aa3}),this['_touched']['set'](_0x1f1733['getAttribute']('vid_start'),{'userId':_0x1c1aa3});}else{const _0x129654=this['_revisionId']++,_0x377bba=this['_revisionId']++;_0x14253e['_setAttribute']('vid_end',_0x129654),_0x1f1733['_setAttribute']('vid_start',_0x377bba),_0x1f1733['_setAttribute']('vid_end',_0x41f820),this['_touched']['set'](_0x129654,{'userId':_0x1c1aa3}),this['_touched']['set'](_0x377bba,{'userId':_0x1c1aa3});}}['_handleMarkerOperation'](_0x1943b5){if(!_0x1943b5['affectsData'])return;const _0xb6a9d6=(_0x1943b5=this['_cloneOperation'](_0x1943b5,this['_diffRoots']))['oldRange']?_0x1943b5['oldRange']['root']:null,_0x554ddd=_0x1943b5['newRange']?_0x1943b5['newRange']['root']:null;_0xb6a9d6&&this['_markers']['delete'](_0x1943b5['name']),_0x554ddd&&this['_markers']['set'](_0x1943b5['name'],_0x1943b5['newRange']['clone']());const _0x46c959=null===_0x1943b5['_authorId']?null:_0x1943b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29d20a=_0x1943b5['name'];if(!this['_touchedMarkers']['has'](_0x29d20a))return void this['_touchedMarkers']['set'](_0x29d20a,{'range':_0x1943b5['oldRange'],'userId':_0x46c959});const _0x247809=this['_touchedMarkers']['get'](_0x29d20a),_0x158da3=_0x247809['range'],_0x2cbb87=_0x1943b5['newRange'];null==_0x158da3&&null==_0x2cbb87||_0x158da3&&_0x2cbb87&&_0x158da3['isEqual'](_0x2cbb87)?this['_touchedMarkers']['delete'](_0x1943b5['name']):_0x247809['userId']=_0x46c959;}['_handleRootOperation'](_0x4b5173,_0x403548){this['_diffRoots']['has'](_0x4b5173['rootName'])?this['_diffRoots']['get'](_0x4b5173['rootName'])['_isAttached']=_0x4b5173['isAdd']:(this['_diffRoots']['set'](_0x4b5173['rootName'],P(_0x4b5173['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4b5173['rootName'],{}),_0x403548&&this['_idsRoots']['set'](_0x4b5173['rootName'],P(_0x4b5173['rootName'],!0x0)));const _0x452907=null===_0x4b5173['_authorId']?null:_0x4b5173['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe6d2b9=this['_touchedRoots']['get'](_0x4b5173['rootName']);_0xe6d2b9&&_0xe6d2b9['userId']===_0x452907?this['_touchedRoots']['delete'](_0x4b5173['rootName']):this['_touchedRoots']['set'](_0x4b5173['rootName'],{'userId':_0x452907,'isAttached':_0x4b5173['isAdd']});}['_handleRootAttributeOperation'](_0x398f81){const _0x5d7604=this['_diffRootsAttributes']['get'](_0x398f81['root']['rootName']);null===_0x398f81['newValue']?delete _0x5d7604[_0x398f81['key']]:_0x5d7604[_0x398f81['key']]=_0x398f81['newValue'];}}function N(_0x386a92){const _0x1d8cc7=P(_0x386a92['rootName'],_0x386a92['isAttached']());for(const _0x137fea of _0x386a92['getChildren']()){const _0x255b19=_0x137fea['_clone'](!0x0);_0x1d8cc7['_appendChild'](_0x255b19);}return _0x1d8cc7;}function P(_0xeafc6e,_0x35782e=!0x0){const _0x43cb24=new vt();return _0x43cb24['rootName']=_0xeafc6e,_0x43cb24['_isAttached']=_0x35782e,_0x43cb24['isAttached']=()=>_0x43cb24['_isAttached'],_0x43cb24;}function F(_0x5924bc,_0x3fd824,_0x5a046b){const _0x473733='elementEnd'==_0x5924bc['type']?_0x5a046b['createPositionAt'](_0x5924bc['item'],'end'):_0x5a046b['createPositionBefore'](_0x5924bc['item']);return _0x5a046b['createPositionFromPath'](_0x3fd824,_0x473733['path'],_0x473733['stickiness']);}function B(_0x52ef9f,_0x756e75,_0x12b28b){const _0x53272d='elementStart'==_0x52ef9f['type']?_0x12b28b['createPositionAt'](_0x52ef9f['item'],0x0):_0x12b28b['createPositionAfter'](_0x52ef9f['item']);return _0x12b28b['createPositionFromPath'](_0x756e75,_0x53272d['path'],_0x53272d['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x197ec5,_0x4e93e2){super(_0x197ec5),this['focusTracker']=new _0x45a136(),this['keystrokes']=new _0x31841c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4e93e2),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x235b43(this);}['render'](){super['render'](),_0x2c99e6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1ccfb4=_0x72d41a=>_0x72d41a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1ccfb4),this['keystrokes']['set']('arrowleft',_0x1ccfb4),this['keystrokes']['set']('arrowup',_0x1ccfb4),this['keystrokes']['set']('arrowdown',_0x1ccfb4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5df885){this['revisionNameInputView']['fieldView']['element']['value']=_0x5df885['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x452879){const _0x3ae8c7=new _0x7c8f53(this['locale'],_0x1e64bd),_0x512bc1=_0x3ae8c7['fieldView'];_0x512bc1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x43e058=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x452879&&(_0x43e058+='\x20('+g(this['locale'],'optional')+')'),(_0x3ae8c7['label']=_0x43e058,_0x512bc1['on']('input',()=>{this['revisionNameInputValue']=_0x512bc1['element']['value']['trim']();}),_0x3ae8c7);}}class f extends _0x24b312{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x57d7be=this['editor'],_0x54eef3=_0x57d7be['plugins']['get']('RevisionTracker');_0x57d7be['ui']['componentFactory']['add']('revisionHistory',_0x46992e=>{const _0x8a6ef5=_0x5656cd(_0x46992e),_0x5e21a1=_0x8a6ef5['panelView']['children'],_0x30db5a=new _0x28ef9e(_0x46992e),_0x292785=new _0x857aa5(_0x46992e),_0x41b1d4=new te(_0x46992e),_0x241a21=new _0x857aa5(_0x46992e),_0xfb4218=new te(_0x46992e);return _0x8a6ef5['bind']('isEnabled')['to'](_0x54eef3,'isReady',_0x54eef3,'isEnabled',_0x57d7be,'isReadOnly',(_0x4b4387,_0x3446d5,_0x3a38b6)=>_0x4b4387&&_0x3446d5&&!_0x3a38b6),_0x8a6ef5['buttonView']['set']({'icon':_0x59d51f,'label':g(_0x46992e,'Revision\x20history'),'tooltip':!0x0}),_0x41b1d4['set']({'label':g(_0x46992e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x41b1d4['bind']('isEnabled')['to'](_0x54eef3,'isReady',_0x54eef3,'isEnabled',_0x57d7be,'isReadOnly',(_0x49c341,_0x4b1a92,_0x27de05)=>_0x49c341&&_0x4b1a92&&!_0x27de05),_0x41b1d4['on']('execute',()=>this['_showDialog']()),_0xfb4218['set']({'label':g(_0x46992e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xfb4218['bind']('isEnabled')['to'](_0x54eef3,'isReady',_0x57d7be,'isReadOnly',(_0x1696ae,_0x18083c)=>_0x1696ae&&!_0x18083c),_0xfb4218['on']('execute',()=>{_0x57d7be['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x8a6ef5['isOpen']=!0x1,_0x57d7be['editing']['view']['focus']();}),_0x292785['children']['add'](_0x41b1d4),_0x241a21['children']['add'](_0xfb4218),_0x30db5a['role']='menu',_0x30db5a['items']['addMany']([_0x292785,_0x241a21]),_0x5e21a1['add'](_0x30db5a),_0x8a6ef5;}),_0x57d7be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4f0d83=this['editor'],_0x381c2e=_0x4f0d83['locale'],_0x3afe6e=new _0x574a14(_0x381c2e),_0x3d1fe1=new _0x94584b(_0x381c2e);_0x3afe6e['buttonView']['set']({'icon':_0x59d51f,'label':g(_0x381c2e,'Revision\x20history')});const _0x5ebde8=new _0x14ab8e(_0x381c2e,_0x3afe6e),_0x16fe7c=new _0x5959d6(_0x381c2e);_0x16fe7c['set']({'label':g(_0x381c2e,'Save\x20current\x20revision')}),_0x16fe7c['delegate']('execute')['to'](_0x3afe6e),_0x16fe7c['on']('execute',()=>{this['_showDialog']();}),_0x5ebde8['children']['add'](_0x16fe7c),_0x3d1fe1['items']['add'](_0x5ebde8);const _0x3fd9cb=new _0x14ab8e(_0x381c2e,_0x3afe6e),_0x1b6e2c=new _0x5959d6(_0x381c2e);return _0x1b6e2c['set']({'label':g(_0x381c2e,'Open\x20revision\x20history')}),_0x1b6e2c['delegate']('execute')['to'](_0x3afe6e),_0x1b6e2c['on']('execute',()=>{_0x4f0d83['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3fd9cb['children']['add'](_0x1b6e2c),_0x3d1fe1['items']['add'](_0x3fd9cb),_0x3afe6e['panelView']['children']['add'](_0x3d1fe1),_0x3afe6e;}['_showDialog'](){const _0x12d0a2=this['editor'],_0x324ca4=_0x12d0a2['locale'],_0x1b9daf=_0x12d0a2['plugins']['get']('Dialog'),_0x277a39=_0x12d0a2['plugins']['get']('RevisionTracker');function _0x3d0ccd(_0x1d3e5c){_0x12d0a2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1d3e5c['revisionName']?_0x1d3e5c['revisionNameInputView']['errorText']=g(_0x324ca4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x12d0a2['plugins']['get'](u)['saveRevision']({'name':_0x1d3e5c['revisionName']}),_0x1b9daf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3d0ccd(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b9daf['show']({'id':'revisionSave','title':g(_0x324ca4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x12d0a2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b9daf['hide']()},{'label':g(_0x12d0a2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x58a667){_0x58a667['bind']('isEnabled')['to'](_0x277a39,'isReady',_0x277a39,'isEnabled',_0x12d0a2,'isReadOnly',(_0x1dad39,_0x2e9b7b,_0xb8ef9e)=>_0x1dad39&&_0x2e9b7b&&!_0xb8ef9e);},'onExecute':()=>_0x3d0ccd(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x569043=this['editor'],_0x2d6a11=_0x569043['locale'];this['_saveRevisionFormView']=new hs(_0x2d6a11,_0x569043['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x24dca8,_0x3a812a){super(_0x24dca8),this['_model']=_0x3a812a,this['changeId']=_0x3a812a['id'];const _0x528171=this['bindTemplate'],_0x57e300=g(_0x24dca8,_0x3a812a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3a812a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3a812a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x528171['to']('type',_0x14e00a=>'ck-revision-change__'+_0x14e00a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x57e300}]},{'text':'\x20'+_0x3a812a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x15fe64(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x58ed43){super(),this['id']=_0x58ed43['id']||_0x5d30eb(),this['author']=_0x58ed43['author'],this['type']=_0x58ed43['type'],this['data']=_0x58ed43['data']||{},this['rootName']=_0x58ed43['rootName'],this['set']('createdAt',_0x58ed43['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(_0x4bc70d,_0x129cfb){this['newRevisionId']=_0x4bc70d,this['oldRevisionId']=_0x129cfb,this['changes']=new _0x2a3d8d();}['_setChanges'](_0x1d8140){for(const _0x52f625 of _0x1d8140)this['changes']['add'](_0x52f625);}}class m extends _0x24b312{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x424bf7,_0x232ec8,I,V];}constructor(_0x2681a2){super(_0x2681a2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x1ef359,_0x16181c,_0x5b5c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1c95ea=>{for(const _0x52b090 of this['editor']['editing']['view']['document']['roots'])_0x5b5c?_0x1c95ea['removeClass']('ck-editor__editable__overlay',_0x52b090):_0x1c95ea['addClass']('ck-editor__editable__overlay',_0x52b090);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1e4e36=>null!==_0x1e4e36),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1b4335,_0x4156f2,_0x2537c6)=>_0x1b4335&&_0x2537c6?_0x4156f2['changes']['getIndex'](_0x2537c6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x8b3f37,_0x5758c8)=>_0x8b3f37?_0x5758c8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x232ec8);}['init'](){const _0x5a5b33=this['editor'],_0x3330a1=new wt(_0x5a5b33,{'direction':'backward'}),_0x1da0b9=new wt(_0x5a5b33,{'direction':'forward'});(_0x5a5b33['commands']['add']('showPreviousChange',_0x3330a1),_0x5a5b33['commands']['add']('showNextChange',_0x1da0b9),_0x5a5b33['commands']['add']('restoreRevision',new mt(_0x5a5b33)),this['on']('change:numberOfChanges',()=>{_0x3330a1['refresh'](),_0x1da0b9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5a5b33['enableReadOnlyMode']('revision-viewer'),_0x5a5b33['plugins']['has']('WidgetToolbarRepository'))&&_0x5a5b33['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4d313c){return await this['_utils']['loadRevisionData'](_0x4d313c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4d313c);}async['getRevisionRootsAttributes'](_0x4c43ef){return await this['_utils']['loadRevisionData'](_0x4c43ef,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4c43ef);}async['compare'](_0x536b4e,_0x50380f,_0x21b7d4=!0x1){if(!this['isEnabled'])return;const _0x95af94=this['diff'],_0x5dbbbb=this['repository'],_0x2a7ec6='string'==typeof _0x536b4e?_0x5dbbbb['getRevision'](_0x536b4e):_0x536b4e,_0x31cce9='string'==typeof _0x50380f?_0x5dbbbb['getRevision'](_0x50380f):_0x50380f,_0x521230=_0x2a7ec6['id'],_0x67445c=_0x31cce9?_0x31cce9['id']:null;if(!_0x21b7d4&&this['diff']&&this['diff']['newRevisionId']===_0x521230&&this['diff']['oldRevisionId']===_0x67445c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x521230,_0x67445c);const _0x4e664c=this['_getRevisionsRange'](_0x2a7ec6,_0x31cce9,!0x0)['map'](_0x25fbd6=>this['_utils']['loadRevisionData'](_0x25fbd6,this['adapter']));return _0x4e664c['push'](new Promise(_0x590b7c=>{setTimeout(_0x590b7c,0x14);})),Promise['all'](_0x4e664c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x23268f=this['_getDiff'](_0x521230,_0x67445c);for(const _0x5d7ba3 of _0x23268f['changes'])this['_changeIdToChange']['set'](_0x5d7ba3['id'],_0x5d7ba3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5bbf40=>{for(const _0x5f35ab of this['editor']['model']['document']['getRootNames']())_0x5bbf40['detachRoot'](_0x5f35ab);for(const _0x3255cb of Object['keys'](_0x23268f['model'])){const _0x5155ac=_0x5bbf40['addRoot'](_0x3255cb);for(const _0x24bb46 of Object['keys'](_0x23268f['attributes'][_0x3255cb]))_0x5bbf40['setAttribute'](_0x24bb46,_0x23268f['attributes'][_0x3255cb][_0x24bb46],_0x5155ac);_0x5bbf40['insert'](_0x23268f['model'][_0x3255cb],_0x5155ac,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x23268f['changes'])),this['isReady']=!0x0;})['catch'](_0x2aa299=>{console['error'](_0x2aa299),this['_cleanUp'](),_0x95af94&&(this['diff']=_0x95af94),this['isReady']=!0x0;});}['addRevisionData'](_0x1e0fba,_0x191a40){const _0x246a30=this['repository']['createRevision'](_0x1e0fba);return _0x246a30['on']('_update',(_0x30b779,_0x23c483,_0xb106e7)=>_0x191a40(_0x23c483,_0xb106e7,_0x246a30)),this['repository']['addRevision'](_0x246a30),_0x246a30;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x30d00d=>{for(const _0x25f358 of this['editor']['model']['document']['getRootNames']())_0x30d00d['detachRoot'](_0x25f358);});}['_sortAndFilterDiffChanges'](_0x1a4d7f){const _0x454b56=[],_0x3ddc80=new Map();for(const _0x130e92 of this['editor']['model']['document']['getRootNames']()){const _0x101dd8=this['editor']['editing']['view']['getDomRoot'](_0x130e92);if(!_0x101dd8)continue;const _0x107e6c=_0x101dd8['getClientRects']()['item'](0x0);_0x107e6c&&(_0x454b56['push'](_0x130e92),_0x3ddc80['set'](_0x130e92,_0x107e6c));}return _0x454b56['sort']((_0x79caad,_0x492256)=>{const _0x472199=_0x3ddc80['get'](_0x79caad),_0x37a74d=_0x3ddc80['get'](_0x492256);return _0x472199['y']-_0x37a74d['y']||_0x472199['x']-_0x37a74d['x'];}),(_0x1a4d7f=_0x1a4d7f['filter'](_0x3bfc9d=>_0x454b56['includes'](_0x3bfc9d['rootName'])))['sort']((_0xbc17eb,_0x3bc126)=>_0x454b56['indexOf'](_0xbc17eb['rootName'])-_0x454b56['indexOf'](_0x3bc126['rootName'])),_0x1a4d7f;}['_makeTape'](_0x2c0d4e){const _0x33d96f=Array['from'](_0x2c0d4e['markers'])['filter'](([_0x558d0f,_0x162f72])=>_0x558d0f['startsWith']('revision:')&&!_0x162f72['isCollapsed']),_0x5e5948=Array['from'](this['editor']['model']['createRangeIn'](_0x2c0d4e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x33d96f['length'])for(const _0x25e842 of _0x5e5948){const [_0x36ae6c,_0x1b81a7]=_0x33d96f[0x0],[,_0x2d4dcf,_0x3488ad]=_0x36ae6c['split'](':');if(_0x1b81a7['end']['isEqual'](_0x25e842['nextPosition'])&&_0x33d96f['shift'](),(_0x25e842['previousPosition']['isEqual'](_0x1b81a7['start'])||_0x25e842['previousPosition']['isAfter'](_0x1b81a7['start']))&&('insertion'==_0x2d4dcf?_0x25e842['isAdded']={'userId':_0x3488ad}:'deletion'==_0x2d4dcf&&(_0x25e842['isRemoved']={'userId':_0x3488ad})),0x0==_0x33d96f['length'])break;}return _0x5e5948;}['_refreshStartEndIndex'](_0x158f54){const _0x25f789=new Map();for(let _0x1fc2e2=0x0;_0x1fc2e2<_0x158f54['length'];_0x1fc2e2++)'text'===_0x158f54[_0x1fc2e2]['type']?(_0x158f54[_0x1fc2e2]['item']['startIndex']=_0x1fc2e2,_0x158f54[_0x1fc2e2]['item']['endIndex']=_0x1fc2e2):('elementStart'===_0x158f54[_0x1fc2e2]['type']?_0x158f54[_0x1fc2e2]['item']['startIndex']=_0x1fc2e2:'elementEnd'===_0x158f54[_0x1fc2e2]['type']&&(_0x158f54[_0x1fc2e2]['item']['endIndex']=_0x1fc2e2),_0x25f789['set'](_0x158f54[_0x1fc2e2]['id'],_0x1fc2e2));for(const _0x2c7d67 of _0x25f789['values']())'elementStart'===_0x158f54[_0x2c7d67]['type']?_0x158f54[_0x2c7d67]['item']['endIndex']=_0x25f789['get'](_0x158f54[_0x2c7d67]['pairId']):'elementEnd'===_0x158f54[_0x2c7d67]['type']&&(_0x158f54[_0x2c7d67]['item']['startIndex']=_0x25f789['get'](_0x158f54[_0x2c7d67]['pairId']));}['_processTape'](_0x1917ce){for(let _0x352d69=0x0;_0x352d69<_0x1917ce['length'];_0x352d69++){if('elementStart'===_0x1917ce[_0x352d69]['type'])_0x1917ce[_0x352d69]['item']['startIndex']=_0x352d69;else{if('elementEnd'===_0x1917ce[_0x352d69]['type']){_0x1917ce[_0x352d69]['item']['endIndex']=_0x352d69;const _0x4b2337=_0x1917ce[_0x352d69]['item']['startIndex'];_0x1917ce[_0x4b2337]['pairId']=_0x1917ce[_0x352d69]['id'],_0x1917ce[_0x352d69]['pairId']=_0x1917ce[_0x4b2337]['id'];}else _0x1917ce[_0x352d69]['item']['startIndex']=_0x352d69,_0x1917ce[_0x352d69]['item']['endIndex']=_0x352d69,_0x1917ce[_0x352d69]['pairId']=null;}_0x1917ce[_0x352d69]['markersStart']||(_0x1917ce[_0x352d69]['markersStart']=[],_0x1917ce[_0x352d69]['markersEnd']=[]);}}['_markInsertions'](_0x1913c8,_0xbbcc30){const _0x10e8f5=_0x1913c8['filter'](_0x5eef10=>!_0x5eef10['isAdded']);for(let _0x7c9554=0x0;_0x7c9554<_0xbbcc30['length'];_0x7c9554++)_0xbbcc30[_0x7c9554]['isAdded']&&(_0x10e8f5[_0x7c9554]['isAdded']=_0xbbcc30[_0x7c9554]['isAdded']);}['_getDiff'](_0x17c9fc,_0x1ea005=null){const _0x101a6d=this['repository']['getRevision'](_0x17c9fc),_0x4f9e5f=_0x1ea005?this['repository']['getRevision'](_0x1ea005):null,_0x3fef28=this['_getRevisionsRange'](_0x101a6d,_0x4f9e5f),_0x4915b8=_0x3fef28[_0x3fef28['length']-0x1],_0x7909f3=new Map(),_0x5151bc={'model':{},'attributes':{},'changes':[]},_0x3d1274=new Set(),_0x9d3d1=new Map();for(let _0x5bab01=_0x3fef28['length']-0x1;_0x5bab01>=0x0;_0x5bab01--){const _0x2d57a3=_0x3fef28[_0x5bab01];for(const _0x41e120 of Object['keys'](_0x2d57a3['diffData']))if(_0x2d57a3['diffData'][_0x41e120]['attachChange']){const _0x3dadb3=_0x2d57a3['diffData'][_0x41e120]['attachChange'];_0x3dadb3['isAttached']?(_0x3d1274['add'](_0x41e120),_0x9d3d1['has'](_0x41e120)&&_0x9d3d1['get'](_0x41e120)['userId']==_0x3dadb3['userId']?_0x9d3d1['delete'](_0x41e120):_0x9d3d1['set'](_0x41e120,_0x3dadb3)):_0x9d3d1['has'](_0x41e120)?(_0x3d1274['delete'](_0x41e120),_0x9d3d1['delete'](_0x41e120)):(_0x3d1274['add'](_0x41e120),_0x9d3d1['set'](_0x41e120,_0x3dadb3));}else _0x3d1274['add'](_0x41e120);}for(const _0x577160 of _0x3d1274){const _0x572bcf=_0x9d3d1['has'](_0x577160)&&!_0x9d3d1['get'](_0x577160)['isAttached'];let _0x29ab7f=_0x572bcf?_0x3fef28['length']-0x1:0x0;const _0x123bc3=_0x572bcf?-0x1:0x1;for(;_0x3fef28[_0x29ab7f];){const _0x4a3af8=_0x3fef28[_0x29ab7f];if(_0x4a3af8['diffData'][_0x577160]){const _0x564541=_0x572bcf?_0x4a3af8['diffData'][_0x577160]['attributesBefore']:_0x4a3af8['diffData'][_0x577160]['attributesAfter'];_0x5151bc['attributes'][_0x577160]=_0x564541?_0x25a738(_0x564541):{};break;}_0x29ab7f+=_0x123bc3;}}for(const _0x1811a0 of _0x3fef28){_0x1811a0['model']={};for(const _0x265eac of _0x1811a0['authors'])_0x7909f3['set'](_0x265eac['id'],_0x265eac);for(const _0x28cba1 of _0x3d1274){const _0xdf5312=_0x1811a0['diffData'][_0x28cba1]?_0x1811a0['diffData'][_0x28cba1]['insertions']:'[]',_0x1bbe5e=_0x1811a0['diffData'][_0x28cba1]?_0x1811a0['diffData'][_0x28cba1]['deletions']:'[]';_0x1811a0['model'][_0x28cba1]={'insertions':this['_utils']['_makeModelFromViewString'](_0xdf5312),'deletions':this['_utils']['_makeModelFromViewString'](_0x1bbe5e)};}}for(const _0x2f0af7 of _0x3d1274){let _0x1dfb00=null,_0x28dd9c=0x0;const _0x45f84b=new Map(Array['from'](_0x101a6d['model'][_0x2f0af7]['insertions']['markers'])['filter'](([_0x5cd88e])=>!_0x5cd88e['startsWith']('revision:')));let _0x16c407=0x0;for(const _0x14510d of _0x3fef28){const _0x1d66f6=this['_makeTape'](_0x14510d['model'][_0x2f0af7]['insertions']);_0x14510d==_0x101a6d?(_0x1dfb00=_0x1d66f6,_0x28dd9c=_0x1dfb00['length'],_0x1dfb00['forEach'](_0x31f78e=>{_0x31f78e['id']=_0x16c407++;}),this['_processTape'](_0x1dfb00)):this['_markInsertions'](_0x1dfb00,_0x1d66f6);const _0x3b1b00=_0x1dfb00['filter'](_0x4b2b9b=>!_0x4b2b9b['isAdded'])['map'](_0x394e49=>_0x394e49['id']);let _0x5e4e30=0x0;const _0x6fc9b9=this['_makeTape'](_0x14510d['model'][_0x2f0af7]['deletions']);_0x6fc9b9['forEach'](_0x7c94cc=>{_0x7c94cc['isRemoved']?_0x7c94cc['id']=_0x28dd9c++:_0x7c94cc['id']=_0x3b1b00[_0x5e4e30++];}),this['_processTape'](_0x6fc9b9),this['_setDistance'](_0x1dfb00,'isAdded'),this['_setDistance'](_0x6fc9b9,'isRemoved'),_0x14510d==_0x101a6d&&this['_markMarkers'](_0x1dfb00,_0x45f84b),_0x1dfb00=this['_joinTapes'](_0x1dfb00,_0x6fc9b9),this['_refreshStartEndIndex'](_0x1dfb00),this['_setDistance'](_0x1dfb00,'isRemoved');}_0x1dfb00=_0x1dfb00['filter'](_0x587e87=>!(_0x587e87['isAdded']&&_0x587e87['isRemoved']));const _0xf6630c=new Map(_0x4915b8['model'][_0x2f0af7]['deletions']['markers']),_0x2c1910=new Set(_0x45f84b['keys']());for(const _0x40c86f of _0xf6630c['keys']())_0x2c1910['delete'](_0x40c86f);this['_markSuggestions'](_0x1dfb00,_0x2c1910),this['_fixObsoleteTags'](_0x1dfb00),_0x1dfb00=this['_removeMissingPairs'](_0x1dfb00),_0x1dfb00=this['_markMismatchedRemovedTags'](_0x1dfb00),_0x1dfb00=this['_removeUnsupportedChanges'](_0x1dfb00);const {root:_0x5255d5,changes:_0x214d41}=this['_makeModelFromTape'](_0x1dfb00,_0x7909f3,_0x2f0af7);_0x5151bc['model'][_0x2f0af7]=_0x5255d5;const _0x4bdd74=_0x9d3d1['get'](_0x2f0af7);if(_0x4bdd74){const _0x506375=_0x7909f3['get'](_0x4bdd74['userId']),_0x1a3b83=new r({'author':_0x506375,'type':_0x4bdd74['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2f0af7});_0x214d41['unshift'](_0x1a3b83),_0x5151bc['attributes'][_0x2f0af7]['revisionHistoryAttachChange']=_0x1a3b83['id'];}_0x5151bc['changes']=_0x5151bc['changes']['concat'](_0x214d41);}return _0x5151bc;}['_markMarkers'](_0x44cfa6,_0x3dbaa7){for(let _0x3c53e4=0x0;_0x3c53e4<_0x44cfa6['length'];_0x3c53e4++)for(const [_0x29d5e1,_0x394c4f]of _0x3dbaa7)!_0x394c4f['isCollapsed']&&_0x394c4f['start']['isEqual'](_0x44cfa6[_0x3c53e4]['previousPosition'])&&_0x44cfa6[_0x3c53e4]['markersStart']['push'](_0x29d5e1),_0x394c4f['end']['isEqual'](_0x44cfa6[_0x3c53e4]['nextPosition'])&&_0x44cfa6[_0x3c53e4]['markersEnd']['push'](_0x29d5e1);}['_joinTapes'](_0x5969d5,_0x76356d){let _0x93c4eb=[],_0xfbc506=0x0,_0x23b8be=0x0;for(;_0xfbc506<_0x5969d5['length']||_0x23b8be<_0x76356d['length'];){const _0x410b60=_0x5969d5[_0xfbc506]||{},_0x496445=_0x76356d[_0x23b8be]||{};if(_0x410b60['id']==_0x496445['id'])_0xfbc506++,_0x23b8be++,_0x93c4eb['push'](_0x410b60);else{if(_0x496445['isRemoved']&&_0x410b60['isAdded']){const {commonTape:_0x386663,iEnd:_0x354f51,jEnd:_0x445e06}=this['_threeWayMerge'](_0x5969d5,_0xfbc506,_0x76356d,_0x23b8be);_0x93c4eb=_0x93c4eb['concat'](_0x386663),_0xfbc506=_0x354f51,_0x23b8be=_0x445e06;}else _0x496445['isRemoved']?(_0x23b8be++,_0x93c4eb['push'](_0x496445)):(_0xfbc506++,_0x93c4eb['push'](_0x410b60));}}return _0x93c4eb;}['_markSuggestions'](_0x3fc64f,_0x441e2b){const _0x37e12b=[];for(let _0x128db4=0x0;_0x128db4<_0x3fc64f['length'];_0x128db4++){for(let _0x20d11d=0x0;_0x20d11d<_0x3fc64f[_0x128db4]['markersStart']['length'];_0x20d11d++){const _0x4c24db=_0x3fc64f[_0x128db4]['markersStart'][_0x20d11d];if(!_0x441e2b['has'](_0x4c24db))continue;const {group:_0x25d6dd,type:_0x4cfd7f,authorId:_0x27cfae}=_0x5da034(_0x4c24db);'revision-suggestion'!=_0x25d6dd||'insertion'!=_0x4cfd7f&&'deletion'!=_0x4cfd7f||(_0x37e12b['unshift']({'type':_0x4cfd7f,'name':_0x4c24db,'userId':_0x27cfae}),_0x3fc64f[_0x128db4]['markersStart']['splice'](_0x20d11d,0x1),_0x20d11d--);}_0xe3f944(_0x3fc64f[_0x128db4]);for(let _0x19479a=0x0;_0x19479a<_0x3fc64f[_0x128db4]['markersEnd']['length'];_0x19479a++){const _0x5de88d=_0x3fc64f[_0x128db4]['markersEnd'][_0x19479a];if(!_0x441e2b['has'](_0x5de88d))continue;const {group:_0x36b69b,type:_0x47b5c1}=_0x5da034(_0x5de88d);if('revision-suggestion'!=_0x36b69b||'insertion'!=_0x47b5c1&&'deletion'!=_0x47b5c1)continue;_0x3fc64f[_0x128db4]['markersEnd']['splice'](_0x19479a,0x1),_0x19479a--;const _0x1a6ced=_0x37e12b['findIndex'](_0x2a4ed8=>_0x2a4ed8['name']==_0x5de88d);_0x1a6ced>-0x1&&_0x37e12b['splice'](_0x1a6ced,0x1);}}function _0x5da034(_0x5ea9f4){const _0x4e50e0=_0x5ea9f4['split'](':');return{'group':_0x4e50e0[0x0],'type':_0x4e50e0[0x1],'subType':_0x4e50e0['length']>=0x5?_0x4e50e0[0x2]:null,'id':_0x4e50e0['length']<0x5?_0x4e50e0[0x2]:_0x4e50e0[0x3],'authorId':_0x4e50e0['length']<0x5?_0x4e50e0[0x3]:_0x4e50e0[0x4],'markerCount':0x6==_0x4e50e0['length']?_0x4e50e0[0x5]:null};}function _0xe3f944(_0x300514){for(let _0x53ad93=0x0;_0x53ad93<_0x37e12b['length'];_0x53ad93++){if(_0x300514['isAdded']&&'insertion'==_0x37e12b[_0x53ad93]['type']&&_0x300514['isAdded']['userId']==_0x37e12b[_0x53ad93]['userId'])return _0x300514['isAddSuggestion']=_0x37e12b[_0x53ad93],void delete _0x300514['isAdded'];if(!_0x300514['isAdded']&&!_0x300514['isRemoved']&&'deletion'==_0x37e12b[_0x53ad93]['type'])return void(_0x300514['isRemoveSuggestion']=_0x37e12b[_0x53ad93]);}}}['_setDistance'](_0x44f4ed,_0x40a43c){let _0x1dc2b7=0x0,_0x27d24d=!0x1;const _0x69865e=new Map();for(const _0x4bea1a of _0x44f4ed)_0x4bea1a[_0x40a43c]?_0x27d24d&&(_0x1dc2b7++,_0x27d24d=!0x1):(_0x1dc2b7++,_0x27d24d=!0x0),_0x69865e['set'](_0x4bea1a['id'],_0x1dc2b7);for(let _0x53b0c9=0x0;_0x53b0c9<_0x44f4ed['length'];_0x53b0c9++){if('isRemoved'==_0x40a43c&&_0x44f4ed[_0x53b0c9]['isAdded']||'isAdded'==_0x40a43c&&_0x44f4ed[_0x53b0c9]['isRemoved'])continue;if('text'==_0x44f4ed[_0x53b0c9]['type']){_0x44f4ed[_0x53b0c9]['distance']=0x0;continue;}const _0x17e1d9=_0x69865e['get'](_0x44f4ed[_0x53b0c9]['pairId']),_0x32c9cf=_0x69865e['get'](_0x44f4ed[_0x53b0c9]['id']);_0x44f4ed[_0x53b0c9]['distance']=_0x17e1d9-_0x32c9cf;}}['_getRevisionsRange'](_0x48b89d,_0x447ef0,_0x4203b8=!0x1){const _0x2dfd7c=[];let _0x5dc82a=this['repository']['getIndex'](_0x48b89d),_0x24ae24=this['repository']['getIndex'](_0x447ef0);for(-0x1==_0x24ae24&&(_0x24ae24=this['repository']['_revisions']['length'],_0x4203b8=!0x1);_0x5dc82a<_0x24ae24;)_0x2dfd7c['push'](this['repository']['getRevision'](_0x5dc82a)),_0x5dc82a++;return _0x4203b8&&_0x2dfd7c['push'](this['repository']['getRevision'](_0x5dc82a)),_0x2dfd7c;}['_threeWayMerge'](_0x40676a,_0x5da41b,_0x1d6b83,_0x18ef1b){const _0xdb0833=this['editor']['model']['schema'];let _0x4e9c93=_0x5da41b;for(;_0x40676a[_0x4e9c93]&&_0x40676a[_0x4e9c93]['isAdded'];)_0x4e9c93++;let _0x16c7fb=_0x18ef1b;for(;_0x1d6b83[_0x16c7fb]&&_0x1d6b83[_0x16c7fb]['isRemoved'];)_0x16c7fb++;_0x3940da(_0x40676a,_0x5da41b,_0x4e9c93),_0x3940da(_0x1d6b83,_0x18ef1b,_0x16c7fb);const _0x55b19e=_0x1d6b83['slice'](_0x18ef1b,_0x16c7fb)['concat'](_0x40676a['slice'](_0x5da41b,_0x4e9c93));return _0x55b19e['sort']((_0x3bf3ba,_0x5874ed)=>_0x3bf3ba['side']!=_0x5874ed['side']?_0x3bf3ba['side']-_0x5874ed['side']:_0x3bf3ba['level']!=_0x5874ed['level']?_0x3bf3ba['level']-_0x5874ed['level']:_0x3bf3ba['distance']!=_0x5874ed['distance']?_0x5874ed['distance']-_0x3bf3ba['distance']:!!_0x3bf3ba['isAdded']!=!!_0x5874ed['isAdded']?-0x1==_0x3bf3ba['side']||0x0==_0x3bf3ba['side']?_0x3bf3ba['isAdded']?-0x1:0x1:_0x3bf3ba['isAdded']?0x1:-0x1:_0x3bf3ba['index']-_0x5874ed['index']),{'commonTape':_0x55b19e,'iEnd':_0x4e9c93,'jEnd':_0x16c7fb};function _0x3940da(_0x232448,_0x271eb1,_0x1541db){let _0x409dee=-0x1,_0x29c4ee=Number['POSITIVE_INFINITY'],_0x27f6d7=!0x0;for(let _0x3349b9=_0x271eb1;_0x3349b9<_0x1541db;_0x3349b9++)if(_0xdb0833['isInline'](_0x232448[_0x3349b9]['item'])||(_0x27f6d7=!0x1),_0x232448[_0x3349b9]['item']['startIndex']<_0x271eb1&&(_0x409dee=_0x3349b9),_0x232448[_0x3349b9]['item']['endIndex']>=_0x1541db){_0x29c4ee=_0x3349b9;break;}_0x27f6d7&&(_0x409dee=_0x1541db-0x1);for(let _0x2b0ae1=_0x271eb1;_0x2b0ae1<_0x1541db;_0x2b0ae1++)_0x232448[_0x2b0ae1]['side']=_0x2b0ae1<=_0x409dee?-0x1:_0x2b0ae1<_0x29c4ee?0x0:0x1,_0x232448[_0x2b0ae1]['index']=_0x2b0ae1;let _0x498d3a=0x0;for(let _0x496f31=_0x271eb1;_0x496f31<=_0x409dee;_0x496f31++)0x0==_0x232448[_0x496f31]['distance']?_0x232448[_0x496f31]['level']=_0x498d3a:(_0x498d3a++,_0x232448[_0x496f31]['level']=_0x498d3a,_0x498d3a++);for(let _0x448ae6=_0x271eb1;_0x448ae6<_0x1541db;_0x448ae6++)0x0==_0x232448[_0x448ae6]['side']&&(_0x232448[_0x448ae6]['level']=_0x498d3a);_0x498d3a=0x0;for(let _0x45778f=_0x1541db-0x1;_0x45778f>=_0x29c4ee;_0x45778f--)0x0==_0x232448[_0x45778f]['distance']?_0x232448[_0x45778f]['level']=_0x498d3a:(_0x498d3a--,_0x232448[_0x45778f]['level']=_0x498d3a,_0x498d3a--);}}['_fixObsoleteTags'](_0x1a1173){const _0x12c459=new Map(),_0xbdbe78=this['editor']['model']['schema'];for(let _0x2c2ea6=0x1;_0x2c2ea6<_0x1a1173['length'];_0x2c2ea6++){let _0x7ba68a,_0x4c38ca,_0x11e94c;const _0x3dd24e=_0x1a1173[_0x2c2ea6],_0x4cadf3=_0x1a1173[_0x2c2ea6-0x1];if('text'==_0x3dd24e['type'])continue;if(_0x3dd24e['type']!=_0x4cadf3['type'])continue;if(!_0xbdbe78['isBlock'](_0x4cadf3['item'])||_0xbdbe78['isLimit'](_0x4cadf3['item']))continue;if(!_0xbdbe78['isBlock'](_0x3dd24e['item'])||_0xbdbe78['isLimit'](_0x3dd24e['item']))continue;if((_0x1a1173[_0x2c2ea6]['isAdded']||_0x1a1173[_0x2c2ea6]['isAddSuggestion'])&&_0x1a1173[_0x2c2ea6-0x1]['isRemoved'])_0x7ba68a=_0x1a1173[_0x2c2ea6],_0x4c38ca=_0x1a1173[_0x2c2ea6-0x1],_0x11e94c=_0x2c2ea6-0x1;else{if(!_0x1a1173[_0x2c2ea6]['isRemoved']||!_0x1a1173[_0x2c2ea6-0x1]['isAdded']&&!_0x1a1173[_0x2c2ea6-0x1]['isAddSuggestion'])continue;_0x7ba68a=_0x1a1173[_0x2c2ea6-0x1],_0x4c38ca=_0x1a1173[_0x2c2ea6],_0x11e94c=_0x2c2ea6;}const _0x1687ae=_0x7ba68a['level']==_0x4c38ca['level'],_0x2a6710=Math['abs'](_0x7ba68a['level'])<Math['abs'](_0x4c38ca['level'])&&0x0==_0x4c38ca['distance'];(_0x1687ae||_0x2a6710)&&(_0x12c459['set'](_0x4c38ca['id'],_0x7ba68a['id']),_0x1a1173['splice'](_0x11e94c,0x1),_0x2c2ea6--,_0x7ba68a['isAdded']=!0x1);}for(let _0xcc950d=0x0;_0xcc950d<_0x1a1173['length'];_0xcc950d++)_0x12c459['has'](_0x1a1173[_0xcc950d]['pairId'])&&(_0x1a1173[_0xcc950d]['pairId']=_0x12c459['get'](_0x1a1173[_0xcc950d]['pairId']));}['_removeMissingPairs'](_0x4871eb){const _0x111786=new Set(_0x4871eb['map'](_0x6135a5=>_0x6135a5['id']));for(let _0x59291f=0x0;_0x59291f<_0x4871eb['length'];_0x59291f++)_0x111786['has'](_0x4871eb[_0x59291f]['pairId'])||0x0==_0x4871eb[_0x59291f]['distance']||(_0x4871eb[_0x59291f]['isIncorrect']=!0x0);return _0x4871eb['filter'](_0x1d6594=>!_0x1d6594['isIncorrect']);}['_markMismatchedRemovedTags'](_0x175166){const _0x56cd28=new Set();for(let _0x208dca=0x0;_0x208dca<_0x175166['length'];_0x208dca++){if(_0x56cd28['has'](_0x175166[_0x208dca]['id'])&&_0x175166[_0x208dca]['isRemoved']&&(_0x175166[_0x208dca]['isIncorrect']=!0x0),_0x175166[_0x208dca]['isIncorrect'])continue;if(0x0==_0x175166[_0x208dca]['distance'])continue;if('elementStart'!=_0x175166[_0x208dca]['type'])continue;if(null==_0x175166[_0x208dca]['pairId'])continue;let _0x1fb0cc=_0x208dca+0x1,_0x2ad747=0x0;for(;_0x175166[_0x1fb0cc]['id']!=_0x175166[_0x208dca]['pairId'];)'elementStart'==_0x175166[_0x1fb0cc]['type']?_0x2ad747++:'elementEnd'==_0x175166[_0x1fb0cc]['type']&&_0x2ad747--,_0x1fb0cc++;if(0x0!=_0x2ad747){if(_0x175166[_0x208dca]['isRemoved'])_0x175166[_0x208dca]['isIncorrect']=!0x0;else{for(;_0x1fb0cc!=_0x208dca;)_0x175166[_0x1fb0cc]['isRemoved']&&0x0!=_0x175166[_0x1fb0cc]['distance']&&(_0x175166[_0x1fb0cc]['isIncorrect']=!0x0,_0x56cd28['add'](_0x175166[_0x1fb0cc]['pairId'])),_0x1fb0cc--;}}}return _0x175166['filter'](_0x9364b3=>!_0x9364b3['isIncorrect']);}['_removeUnsupportedChanges'](_0x5a0be8){const _0x52795e=this['editor']['model']['schema'];for(let _0x3890e1=0x0;_0x3890e1<_0x5a0be8['length'];_0x3890e1++){if(!(_0x5a0be8[_0x3890e1]['isAdded']||_0x5a0be8[_0x3890e1]['isAddSuggestion']||_0x5a0be8[_0x3890e1]['isRemoved']||_0x5a0be8[_0x3890e1]['isRemoveSuggestion']))continue;if(0x0==_0x5a0be8[_0x3890e1]['distance'])continue;const _0x1da457=_0x5a0be8[_0x3890e1]['item'];_0x52795e['isBlock'](_0x1da457)||_0x52795e['isLimit'](_0x1da457)||(_0x5a0be8[_0x3890e1]['isAdded']&&delete _0x5a0be8[_0x3890e1]['isAdded'],_0x5a0be8[_0x3890e1]['isAddSuggestion']&&delete _0x5a0be8[_0x3890e1]['isAddSuggestion'],_0x5a0be8[_0x3890e1]['isRemoveSuggestion']&&delete _0x5a0be8[_0x3890e1]['isRemoveSuggestion'],_0x5a0be8[_0x3890e1]['isRemoved']&&(_0x5a0be8[_0x3890e1]['isIncorrect']=!0x0));}return _0x5a0be8['filter'](_0x41c166=>!_0x41c166['isIncorrect']);}['_makeModelFromTape'](_0x4113f3,_0x556b40,_0x44c6ff){const _0xa1f6b3=new vt(),_0x2a8d75=[],_0x59f6e9=new Map(),_0x540917=this['editor']['model'],_0x35c924=_0x540917['schema'],_0x49ec67=[_0xa1f6b3],_0x2dce8c={},_0x2a0aa0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x149c50=null;const _0x2dcde7=[0x0];for(let _0x5e33f4=0x0;_0x5e33f4<_0x4113f3['length'];_0x5e33f4++)if('elementStart'===_0x4113f3[_0x5e33f4]['type']){_0x4113f3[_0x5e33f4]['previousPosition']=_0x540917['createPositionFromPath'](_0xa1f6b3,_0x2dcde7);const _0x403148=new ut(_0x4113f3[_0x5e33f4]['item']['name'],_0x4113f3[_0x5e33f4]['item']['getAttributes']());_0x49ec67[0x0]['_appendChild'](_0x403148),_0x2dcde7['push'](0x0),_0x49ec67['unshift'](_0x403148),_0x4113f3[_0x5e33f4]['nextPosition']=_0x540917['createPositionFromPath'](_0xa1f6b3,_0x2dcde7);}else'elementEnd'===_0x4113f3[_0x5e33f4]['type']?(_0x49ec67['shift'](),_0x4113f3[_0x5e33f4]['previousPosition']=_0x540917['createPositionFromPath'](_0xa1f6b3,_0x2dcde7),_0x2dcde7['pop'](),_0x2dcde7[_0x2dcde7['length']-0x1]++,_0x4113f3[_0x5e33f4]['nextPosition']=_0x540917['createPositionFromPath'](_0xa1f6b3,_0x2dcde7)):(_0x4113f3[_0x5e33f4]['previousPosition']=_0x540917['createPositionFromPath'](_0xa1f6b3,_0x2dcde7),_0x149c50?_0x149c50['_data']+=_0x4113f3[_0x5e33f4]['item']['data']:_0x149c50=new gt(_0x4113f3[_0x5e33f4]['item']['data'],_0x4113f3[_0x5e33f4]['item']['getAttributes']()),_0x4113f3[_0x5e33f4+0x1]&&'text'===_0x4113f3[_0x5e33f4+0x1]['type']&&_0xc92e7c(_0x149c50,_0x4113f3[_0x5e33f4+0x1]['item'])||(_0x49ec67[0x0]['_appendChild'](_0x149c50),_0x149c50=null),_0x2dcde7[_0x2dcde7['length']-0x1]+=_0x4113f3[_0x5e33f4]['item']['offsetSize'],_0x4113f3[_0x5e33f4]['nextPosition']=_0x540917['createPositionFromPath'](_0xa1f6b3,_0x2dcde7));for(let _0x2d5a88=0x0;_0x2d5a88<_0x4113f3['length'];_0x2d5a88++){const _0x38cef6=_0x4113f3[_0x2d5a88]['previousPosition'],_0x199f60=_0x4113f3[_0x2d5a88]['nextPosition'];for(const _0x5bb1b6 of _0x4113f3[_0x2d5a88]['markersStart'])_0x59f6e9['set'](_0x5bb1b6,{'start':_0x38cef6,'end':null});_0x4733e1('isRemoveSuggestion',_0x2d5a88,_0x38cef6,_0x199f60),_0x4733e1('isAddSuggestion',_0x2d5a88,_0x38cef6,_0x199f60),_0x4733e1('isRemoved',_0x2d5a88,_0x38cef6,_0x199f60),_0x4733e1('isAdded',_0x2d5a88,_0x38cef6,_0x199f60);for(const _0x2e8c9c of _0x4113f3[_0x2d5a88]['markersEnd']){const _0x5891f0=_0x59f6e9['get'](_0x2e8c9c);_0x5891f0?_0x5891f0['end']=_0x199f60:_0x59f6e9['set'](_0x2e8c9c,{'start':_0x199f60,'end':_0x199f60});}}for(const [_0x851c28,_0x2792a2]of _0x59f6e9){const _0xc5afac=this['editor']['model']['createRange'](_0x2792a2['start'],_0x2792a2['end']);_0xa1f6b3['markers']['set'](_0x851c28,_0xc5afac);}return _0x2a8d75['sort']((_0x5f3c8d,_0x55bd1b)=>{const _0x18137f=_0xa1f6b3['markers']['get']('revision:'+_0x5f3c8d['id']),_0x47f4b2=_0xa1f6b3['markers']['get']('revision:'+_0x55bd1b['id']);return _0x18137f['start']['isBefore'](_0x47f4b2['start'])?-0x1:_0x18137f['start']['isAfter'](_0x47f4b2['start'])?0x1:_0x18137f['end']['isBefore'](_0x47f4b2['end'])?-0x1:_0x18137f['end']['isAfter'](_0x47f4b2['end'])?0x1:'add'===_0x5f3c8d['type']?-0x1:0x1;}),{'root':_0xa1f6b3,'changes':_0x2a8d75};function _0x4733e1(_0x594c42,_0x5ad5f2,_0x1c6d7d,_0x15fde9){const _0x53c963=!!_0x4113f3[_0x5ad5f2][_0x594c42],_0x12ccab=_0x53c963?_0x4113f3[_0x5ad5f2][_0x594c42]['userId']:null,_0x26768b=_0x5ad5f2===_0x4113f3['length']-0x1,_0x1c507a=_0x2a0aa0[_0x594c42][0x0],_0x538281=_0x35c924['isObject'](_0x4113f3[_0x5ad5f2]['item']);!_0x2dce8c[_0x594c42]&&_0x53c963?_0x2dce8c[_0x594c42]={'start':_0x1c6d7d,'tapeItem':_0x4113f3[_0x5ad5f2],'userId':_0x12ccab,'type':_0x594c42}:_0x2dce8c[_0x594c42]&&!_0x53c963?(_0x2dce8c[_0x594c42]['end']=_0x1c6d7d,_0xa71b1f(_0x2dce8c[_0x594c42]),_0x2dce8c[_0x594c42]=null):_0x2dce8c[_0x594c42]&&_0x53c963&&_0x2dce8c[_0x594c42]['userId']!==_0x12ccab&&(_0x2dce8c[_0x594c42]['end']=_0x1c6d7d,_0x1c507a&&_0x1c507a['userId']===_0x2dce8c[_0x594c42]['userId']||_0xa71b1f(_0x2dce8c[_0x594c42]),_0x2dce8c[_0x594c42]={'start':_0x1c6d7d,'tapeItem':_0x4113f3[_0x5ad5f2],'userId':_0x12ccab,'type':_0x594c42}),_0x2dce8c[_0x594c42]&&_0x538281&&('elementStart'!==_0x4113f3[_0x5ad5f2]['type']||_0x1c507a&&_0x1c507a['userId']===_0x12ccab||_0x2a0aa0[_0x594c42]['unshift']({'userId':_0x12ccab,'object':_0x4113f3[_0x5ad5f2]['item'],'change':_0x2dce8c[_0x594c42]}),'elementEnd'===_0x4113f3[_0x5ad5f2]['type']&&_0x1c507a&&_0x1c507a['object']===_0x4113f3[_0x5ad5f2]['item']&&(_0x2a0aa0[_0x594c42]['shift'](),_0x2dce8c[_0x594c42]=_0x1c507a['change'])),_0x2dce8c[_0x594c42]&&_0x26768b&&(_0x2dce8c[_0x594c42]['end']=_0x15fde9,_0xa71b1f(_0x2dce8c[_0x594c42]),_0x2dce8c[_0x594c42]=null);}function _0xa71b1f({start:_0x355128,end:_0x208566,tapeItem:_0x5d3f03,userId:_0x3c5ee3,type:_0x574836}){const _0x1a9fb7=_0x5d3f03['item'],_0x144143=_0x540917['schema']['isBlock'](_0x1a9fb7)&&!_0x540917['schema']['isLimit'](_0x1a9fb7),_0xf14978=_0x355128['nodeAfter']==_0x208566['parent']&&_0x208566['isAtStart'];if(_0x144143&&_0xf14978)return;const _0x39389e=_0x540917['createRange'](_0x355128,_0x208566),_0x7a997a=_0x556b40['get'](_0x3c5ee3),_0x522c00=new r({'author':_0x7a997a,'type':'isAdded'==_0x574836||'isAddSuggestion'==_0x574836?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x574836||'isRemoveSuggestion'==_0x574836},'createdAt':new Date(),'rootName':_0x44c6ff});_0x2a8d75['push'](_0x522c00),_0xa1f6b3['markers']['set']('revision:'+_0x522c00['id'],_0x39389e);}function _0xc92e7c(_0x1ecef2,_0x5c9d03){const _0x45300f=_0x1ecef2['getAttributes'](),_0x4d8238=_0x5c9d03['getAttributes']();for(const _0x3d7d71 of _0x45300f){if(_0x3d7d71[0x1]!==_0x5c9d03['getAttribute'](_0x3d7d71[0x0]))return!0x1;_0x4d8238['next']();}return _0x4d8238['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x22057c=>{const _0x25c6a2=_0x22057c['markerName']['split'](':')[0x1],_0x30e552=this['_getChangeFromId'](_0x25c6a2);if(!_0x30e552)return null;const _0x368fba='add'==_0x30e552['type']?'insertion':'deletion',_0x2d88bf=['ck-suggestion-marker','ck-suggestion-marker-'+_0x368fba];return _0x30e552['data']['isSuggestion']&&_0x2d88bf['push']('ck-suggestion-marker-'+_0x368fba+'-new'),this['activeChange']==_0x30e552&&_0x2d88bf['push']('ck-suggestion-marker--active'),{'classes':_0x2d88bf,'attributes':{'data-change-id':_0x25c6a2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x42f86b=>{_0x42f86b['on']('element:pre',(_0x22593c,_0x4136a7,_0x295c2d)=>{const _0x499025=_0x4136a7['viewItem']['getChild'](0x0);if(!_0x499025||!_0x499025['is']('element','code'))return;if(!_0x295c2d['consumable']['consume'](_0x499025,{'attributes':['vid_start','vid_end']}))return;const _0x593c64=_0x4136a7['modelRange']['start']['nodeAfter'];_0x295c2d['writer']['setAttribute']('vid_start',_0x499025['getAttribute']('vid_start'),_0x593c64),_0x295c2d['writer']['setAttribute']('vid_end',_0x499025['getAttribute']('vid_end'),_0x593c64);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x205a64=>{_0x205a64['on']('element',(_0x28e880,_0x485c6b,_0x329511)=>{if(!_0x329511['consumable']['consume'](_0x485c6b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x485c6b['modelRange']['isCollapsed'])return;const _0x42ce31=_0x485c6b['modelRange']['start']['nodeAfter'];_0x42ce31['hasAttribute']('vid_start')||_0x42ce31['hasAttribute']('vid')||(_0x329511['writer']['setAttribute']('vid_start',_0x485c6b['viewItem']['getAttribute']('vid_start'),_0x42ce31),_0x329511['writer']['setAttribute']('vid_end',_0x485c6b['viewItem']['getAttribute']('vid_end'),_0x42ce31));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x353ed8=>_0x353ed8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5005d8,[,_0x253cdf])=>{['vid_start','vid_end','vid']['includes'](_0x253cdf)&&(_0x5005d8['return']=!0x0,_0x5005d8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x589e70=>{_0x589e70['on']('attribute:vid',(_0x51c139,_0x376f28,_0x3aa71b)=>{if('\x20'!=_0x376f28['item']['data']||_0x376f28['item']['parent']['maxOffset']>0x1)return;if(!_0x3aa71b['consumable']['consume'](_0x376f28['item'],_0x51c139['name']))return;const _0x43b7d6=_0x3aa71b['writer'],_0x5b8389=_0x3aa71b['mapper']['toViewRange'](_0x376f28['range']);_0x43b7d6['wrap'](_0x5b8389,_0x43b7d6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x49e627){const _0x13f9a1=_0x49e627['plugins']['get']('RevisionViewer');return(_0x2693da,_0x225d97,_0x1e05ee)=>{const _0x43175e=_0x225d97['markerName']['split'](':')[0x1],_0x50bcf4=_0x13f9a1['_getChangeFromId'](_0x43175e);if(!_0x50bcf4)return null;const _0x52aa67='add'==_0x50bcf4['type']?'split':'merge';if(!_0x1e05ee['consumable']['test'](_0x225d97['markerRange'],_0x2693da['name']))return;const _0x4d5c17=_0x225d97['markerRange']['getWalker'](),_0x2b1a77=_0x225d97['markerRange']['start'],_0x2a071d=_0x49e627['model']['schema'];let _0x4d1a4c=null,_0x251d52=null,_0x391a54=!0x1,_0x3da08b=!0x1;for(const _0x4692e0 of _0x4d5c17){const _0x2b0199=_0x4692e0['item'];_0x391a54=_0x391a54||_0x2a071d['isContent'](_0x2b0199);const _0x5656eb=_0x1e05ee['mapper']['toViewElement'](_0x2b0199);if(_0x5656eb&&_0x5656eb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4692e0['type']&&(_0x2a071d['isBlock'](_0x2b0199)&&!_0x2a071d['isLimit'](_0x2b0199)&&(_0x2b0199['nextSibling']||_0x2b1a77['isAtEnd']?_0x4d1a4c&&_0x4d1a4c['parent']==_0x2b0199||(_0x4d1a4c=_0x2b0199,_0x36207c(_0x4692e0['previousPosition']),_0x3da08b=!0x0):_0x251d52=_0x251d52||_0x4692e0['previousPosition']));}function _0x36207c(_0x403f54){const _0x358c85=_0x1e05ee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x52aa67}),_0x1d0579=_0x1e05ee['mapper']['toViewPosition'](_0x403f54);_0x50bcf4['data']['isSuggestion']&&_0x1e05ee['writer']['addClass']('ck-suggestion-marker-'+_0x52aa67+'-new',_0x358c85),_0x13f9a1['activeChange']==_0x50bcf4&&_0x1e05ee['writer']['addClass']('ck-suggestion-marker--active',_0x358c85),_0x1e05ee['writer']['insert'](_0x1d0579,_0x358c85),_0x1e05ee['mapper']['bindElementToMarker'](_0x358c85,_0x225d97['markerName']);}_0x391a54||_0x3da08b||!_0x251d52||_0x36207c(_0x251d52);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xce5814,_0x1cef17,_0x55effd)=>{const _0x1fb6b7=_0x55effd['mapper']['markerNameToElements'](_0x1cef17['markerName']);if(_0x1fb6b7){for(const _0x452a59 of _0x1fb6b7)(_0x452a59['hasClass']('ck-suggestion-marker-split')||_0x452a59['hasClass']('ck-suggestion-marker-merge'))&&(_0x55effd['mapper']['unbindElementFromMarkerName'](_0x452a59,_0x1cef17['markerName']),_0x55effd['writer']['remove'](_0x452a59));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3b35e4,_0x4ad088,_0x3601ea)=>{const _0x35ed32=_0x4ad088['markerName']['split'](':')[0x1],_0x54c144=this['_getChangeFromId'](_0x35ed32);if(!_0x54c144)return null;const _0x21f053='add'==_0x54c144['type']?'split':'merge';if(_0x3601ea['consumable']['test'](_0x4ad088['markerRange'],_0x3b35e4['name']))for(const _0x5c9407 of _0x4ad088['markerRange']['getItems']()){if(!_0x5c9407['is']('element','softBreak'))continue;const _0x4ad492=_0x3601ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21f053}),_0x119502=_0x3601ea['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c9407));_0x54c144['data']['isSuggestion']&&_0x3601ea['writer']['addClass']('ck-suggestion-marker-'+_0x21f053+'-new',_0x4ad492),this['activeChange']==_0x54c144&&_0x3601ea['writer']['addClass']('ck-suggestion-marker--active',_0x4ad492),_0x3601ea['writer']['insert'](_0x119502,_0x4ad492),_0x3601ea['mapper']['bindElementToMarker'](_0x4ad492,_0x4ad088['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x29ff4d=>{for(const _0xf2d90e of this['editor']['model']['document']['getRootNames']()){const _0x58377f=this['editor']['model']['document']['getRoot'](_0xf2d90e),_0x17baf3=this['editor']['editing']['view']['document']['getRoot'](_0xf2d90e);if(_0x17baf3){const _0x3991a9=_0x58377f['getAttribute']('revisionHistoryAttachChange');if(_0x29ff4d['removeAttribute']('data-change-id',_0x17baf3),_0x29ff4d['removeClass']('ck-revision-history-root-add',_0x17baf3),_0x29ff4d['removeClass']('ck-revision-history-root-remove',_0x17baf3),_0x29ff4d['removeClass']('ck-revision-history-root--active',_0x17baf3),_0x3991a9){const _0x31f725=this['_getChangeFromId'](_0x3991a9);if(!_0x31f725)return null;_0x29ff4d['setAttribute']('data-change-id',_0x3991a9,_0x17baf3),_0x29ff4d['addClass']('ck-revision-history-root-'+_0x31f725['type'],_0x17baf3),this['activeChange']==_0x31f725&&_0x29ff4d['addClass']('ck-revision-history-root--active',_0x17baf3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3a476d=>'revision-comment:'+_0x3a476d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b951c=>'revision-suggestion:'+_0x4b951c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x223060=>({'name':'suggestion:'+_0x223060,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x18dc16=>{const _0x12afa1=_0x18dc16['markerName']['split'](':')[0x1];return'insertion'!=_0x12afa1&&'deletion'!=_0x12afa1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x12afa1]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xbe6bbb,_0x2ae954,_0x23eec9)=>{const _0x3a94db=_0x23eec9['mapper']['markerNameToElements'](_0x2ae954['markerName']);if(_0x3a94db){for(const _0x3c752d of _0x3a94db)_0x3c752d['is']('uiElement')&&(_0x23eec9['mapper']['unbindElementFromMarkerName'](_0x3c752d,_0x2ae954['markerName']),_0x23eec9['writer']['remove'](_0x3c752d));}},{'priority':'high'});}['_getChangeFromId'](_0x39b8c1){return this['_changeIdToChange']['get'](_0x39b8c1);}['_getViewForChange'](_0x1fc6ce){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x1fc6ce),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x42d109,_0x2fcd24,_0x338ee,_0x504706)=>{_0x504706&&this['_balloon']['remove'](_0x504706),_0x338ee&&(this['_balloon']['add']({'view':_0x338ee,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x13e880=this['editor']['editing'],_0x59f038=this['_getChangeFromId'](_0x338ee['changeId']);let _0x24da48;if(_0x59f038['data']['isOnRoot']){const _0x50bffc=_0x13e880['view']['getDomRoot'](_0x59f038['rootName']);_0x24da48=Array['from'](_0x50bffc['getClientRects']());}else{const _0x5c230c=this['editor']['model']['markers']['get']('revision:'+_0x338ee['changeId']);_0x24da48=Array['from'](_0x13e880['mapper']['markerNameToElements'](_0x5c230c['name']))['map'](_0x134955=>_0x13e880['view']['domConverter']['mapViewToDom'](_0x134955))['map'](_0x16aa9f=>Array['from'](_0x16aa9f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x24da48[0x0];return _0x24da48['find'](_0x11f425=>_0x11f425['top']-0x3<=this['_activeViewTarget']['y']&&_0x11f425['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x11f425['left']-0x3<=this['_activeViewTarget']['x']&&_0x11f425['right']+0x3>=this['_activeViewTarget']['x'])||_0x24da48[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x503c4f,_0x1cb3b2,_0xb78f9c,_0x503de4)=>{this['activeView']=_0xb78f9c?this['_getViewForChange'](_0xb78f9c):null,this['editor']['model']['change'](()=>{const _0x238504=this['editor']['editing'];_0x503de4&&(_0x503de4['data']['isOnRoot']?_0x238504['view']['change'](_0x19a51c=>{_0x19a51c['removeClass']('ck-revision-history-root--active',_0x238504['view']['document']['getRoot'](_0x503de4['rootName']));}):_0x238504['reconvertMarker']('revision:'+_0x503de4['id'])),_0xb78f9c&&(_0xb78f9c['data']['isOnRoot']?_0x238504['view']['change'](_0x1ed7fd=>{_0x1ed7fd['addClass']('ck-revision-history-root--active',_0x238504['view']['document']['getRoot'](_0xb78f9c['rootName']));}):_0x238504['reconvertMarker']('revision:'+_0xb78f9c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c37e2,_0x119344)=>{if(this['activeChange'])return;const _0x2d87a6=this['_findChangeIdFromDomTarget'](_0x119344['target']),_0x1f76b0=this['_changeIdToChange']['get'](_0x2d87a6);_0x1f76b0?(this['_activeViewTarget']={'x':_0x119344['domEvent']['x'],'y':_0x119344['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1f76b0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x371135,_0xfb6525)=>{const _0x316dbf=this['_findChangeIdFromDomTarget'](_0xfb6525['target']),_0x34f3a7=this['_changeIdToChange']['get'](_0x316dbf);_0x34f3a7?(this['_activeViewTarget']={'x':_0xfb6525['domEvent']['x'],'y':_0xfb6525['domEvent']['y']},_0x34f3a7===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x34f3a7):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x9d069a){do{const _0x4b98cf=_0x9d069a['getAttribute']('data-change-id');if(_0x4b98cf)return _0x4b98cf;_0x9d069a=_0x9d069a['parent'];}while(_0x9d069a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x23d3f2=>{for(const _0x3a029c of this['editor']['model']['markers'])_0x23d3f2['removeMarker'](_0x3a029c);});}}function X(_0xa1f59a,_0x3903cd){return(_0x2a791a,_0x160cc7,_0x5ed53b)=>{if(!_0x5ed53b['consumable']['test'](_0x160cc7['markerRange'],_0x2a791a['name']))return;const _0x58a341=_0x160cc7['markerRange']['getWalker'](),_0x54917f=_0x160cc7['markerRange']['start'],_0x4ba1fa=_0xa1f59a['model']['schema'];let _0x8b2e10=null,_0x22faac=null,_0x5ee0ef=!0x1,_0x38c699=!0x1;for(const _0x56dc43 of _0x58a341){const _0x4c5f1f=_0x56dc43['item'];_0x5ee0ef=_0x5ee0ef||_0x4ba1fa['isContent'](_0x4c5f1f);const _0x166c30=_0x5ed53b['mapper']['toViewElement'](_0x4c5f1f);if(_0x166c30&&_0x166c30['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56dc43['type']&&(_0x4ba1fa['isBlock'](_0x4c5f1f)&&!_0x4ba1fa['isLimit'](_0x4c5f1f)&&(_0x4c5f1f['nextSibling']||_0x54917f['isAtEnd']?_0x8b2e10&&_0x8b2e10['parent']==_0x4c5f1f||(_0x8b2e10=_0x4c5f1f,_0x4faa77(_0x56dc43['previousPosition']),_0x38c699=!0x0):_0x22faac=_0x22faac||_0x56dc43['previousPosition']));}function _0x4faa77(_0x576e2e){const _0x661d=_0x5ed53b['mapper']['toViewPosition'](_0x576e2e),_0x39afeb=_0x5ed53b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3903cd});_0x5ed53b['writer']['insert'](_0x661d,_0x39afeb),_0x5ed53b['mapper']['bindElementToMarker'](_0x39afeb,_0x160cc7['markerName']);}_0x5ee0ef||_0x38c699||!_0x22faac||_0x4faa77(_0x22faac);};}class mt extends _0x2fa794{constructor(_0x2f8fec){super(_0x2f8fec);const _0x5ab736=_0x2f8fec['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5ab736,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ab736,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x443b6c=this['editor'],_0x3b01a0=_0x443b6c['plugins']['get'](m),_0x3a5177=_0x3b01a0['isReady']?_0x3b01a0['diff']['newRevisionId']:null;_0x443b6c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a5177);}['refresh'](){const {isReady:_0x4d15a4,isEnabled:_0x134cb5,repository:_0x224e79,diff:_0x30ae43}=this['editor']['plugins']['get'](m),_0x40d7dc=_0x30ae43&&_0x224e79['getLaterVisibleRevision'](_0x30ae43['newRevisionId']);this['isEnabled']=_0x4d15a4&&_0x134cb5&&Boolean(_0x40d7dc);}}class wt extends _0x2fa794{['_step'];constructor(_0x1a7aa0,{direction:_0x5bef62}){super(_0x1a7aa0);const _0x328f4e=_0x1a7aa0['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5bef62?0x1:-0x1,this['listenTo'](_0x328f4e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x328f4e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x328f4e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3717d0=this['editor'],_0x2f77ae=_0x3717d0['plugins']['get'](m),{isNavigationMode:_0x365e95,currentChangeNumber:_0x483c72}=_0x2f77ae;let _0x2bc215;if(_0x2f77ae['activeChange']=_0x365e95?_0x2f77ae['diff']['changes']['get'](_0x483c72+this['_step']):_0x2f77ae['diff']['changes']['first'],_0x2f77ae['activeChange']['data']['isOnRoot'])_0x2bc215=_0x3717d0['editing']['view']['getDomRoot'](_0x2f77ae['activeChange']['rootName']);else{const _0x3f6ecf=_0x3717d0['model']['markers']['get']('revision:'+_0x2f77ae['activeChange']['id']);_0x2bc215=_0x128210(_0x3717d0['editing'],_0x3f6ecf);}_0x45bd8a({'target':_0x2bc215,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x276a6a,currentChangeNumber:_0x168384,numberOfChanges:_0x59721b,isReady:_0x15b927,isEnabled:_0x2ff168}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2ff168&&_0x15b927&&_0x59721b)&&(!_0x276a6a||(0x1===this['_step']?_0x168384<_0x59721b-0x1:_0x168384>0x0));}}class _i extends ts{constructor(_0x20c30a){super(_0x20c30a);const _0x1c789f=this['bindTemplate'],_0x4532fc=new te(_0x20c30a),_0x333037=new te(_0x20c30a);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',(_0x113394,_0x1b7403)=>_0x113394&&_0x1b7403>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x131eb3,_0x57b85e,_0x2bce05,_0x58fedf)=>{if(!_0x131eb3)return g(_0x20c30a,'Loading...');if(!_0x2bce05)return g(_0x20c30a,'No\x20changes');const _0xe888f0=g(_0x20c30a,'NUMBER_OF_CHANGES',_0x2bce05);return _0x58fedf?g(_0x20c30a,'X_OF_Y_CHANGES',[_0x57b85e+0x1,_0x2bce05]):_0xe888f0;}),_0x4532fc['set']({'label':g(_0x20c30a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x12225e}),_0x333037['set']({'label':g(_0x20c30a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xe83838}),_0x4532fc['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x333037['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4532fc['on']('execute',()=>this['fire']('execute','backward')),_0x333037['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',_0x1c789f['if']('_isStatusLabelVisible','ck-hidden',_0x166f90=>!_0x166f90)]},'children':[{'text':_0x1c789f['to']('isNavigationMode',_0x2c84a5=>_0x2c84a5?g(_0x20c30a,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x20c30a,'Total')+':\x20')}]},{'text':_0x1c789f['to']('_statusText')}]},new _0x219607(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4532fc,_0x333037]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x24b312{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x53187b=this['editor']['editing']['view'];_0x53187b['change'](_0x38794e=>{for(const _0x23c775 of _0x53187b['document']['roots'])_0x38794e['addClass'](le,_0x23c775);});}['hide'](){const _0x538801=this['editor']['editing']['view'];_0x538801['change'](_0x3908fc=>{for(const _0x6d2820 of _0x538801['document']['roots'])_0x3908fc['removeClass'](le,_0x6d2820);});}}class R extends _0x24b312{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x4fd385=this['editor'],_0x4f7bf3=_0x4fd385['plugins']['get'](m),_0x5576bf=_0x4fd385['plugins']['get'](ge);_0x4fd385['ui']['componentFactory']['add']('exitToEditing',_0x3a30e0=>{const _0x40c46f=new te(_0x3a30e0);return _0x40c46f['set']({'label':g(_0x3a30e0,'Back\x20to\x20editing'),'icon':_0x23fe4e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x40c46f,'execute',()=>{_0x4fd385['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x40c46f;}),_0x4fd385['ui']['componentFactory']['add']('restoreRevision',_0x1688b1=>{const _0x2ba45c=new te(_0x1688b1);return _0x2ba45c['set']({'label':g(_0x1688b1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2ba45c['bind']('isEnabled')['to'](_0x4fd385['commands']['get']('restoreRevision')),this['listenTo'](_0x2ba45c,'execute',()=>_0x4fd385['execute']('restoreRevision')),_0x2ba45c;}),_0x4fd385['ui']['componentFactory']['add']('changesNavigation',_0x3b920d=>{const _0xc61f3b=new _i(_0x3b920d),_0x23c247=_0x4fd385['commands']['get']('showPreviousChange'),_0x57b19e=_0x4fd385['commands']['get']('showNextChange');return _0xc61f3b['bind']('isBackwardNavigationEnabled')['to'](_0x23c247,'isEnabled'),_0xc61f3b['bind']('isForwardNavigationEnabled')['to'](_0x57b19e,'isEnabled'),_0xc61f3b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4f7bf3),this['listenTo'](_0xc61f3b,'execute',(_0x8621ae,_0x4e0cdd)=>{_0x4fd385['execute']('forward'===_0x4e0cdd?'showNextChange':'showPreviousChange');}),_0xc61f3b;}),_0x5576bf['show'](),_0x4f7bf3['on']('change:isReady',(_0x2eabe1,_0x260343,_0x1ca097)=>{_0x1ca097?_0x5576bf['hide']():_0x5576bf['show']();});}}class at extends _0x7c8f53{['_resizeObserver']=null;constructor(_0x324d75,_0x140659){super(_0x324d75,_0x140659);const _0x4b11e4=this['bindTemplate'];this['set']({'label':g(_0x324d75,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x324d75,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4b11e4['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x20e3a4=this['fieldView']['element'];this['_tooltipString']=_0x20e3a4['scrollWidth']>_0x20e3a4['clientWidth']&&_0x20e3a4['value']||'';}}class si extends ts{constructor(_0x1edd72,_0x20dd30,_0x2b7b9c){super(_0x1edd72);const _0x15b19b=new _0x122712();_0x15b19b['set']({'content':_0x2b532d,'viewBox':'0\x200\x2011\x2010'});const _0xd22acb=['ck','ck-revision-history-sidebar__revision-author'];_0x2b7b9c&&_0xd22acb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3d1137=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1edd72,_0x2b7b9c?'Revision\x20creator':'Revision\x20author')},'children':[_0x15b19b,_0x20dd30['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd22acb},'children':_0x3d1137});}}function oi(_0x2b1870,_0x36863b){const _0xace4a5=_0x2b1870['bindTemplate'],_0x575a3f=_0x2b1870['locale'],_0x380ef9=_0x5656cd(_0x575a3f);_0x380ef9['panelPosition']='sw';const _0x53cd60=function(_0x58595d,_0x3a4d77){const _0x5a2934=function(_0x2a0885,_0x215e6e){const _0x444f33=_0x2a0885['locale'],_0x5e26c4={'Compare\x20against\x20selected':g(_0x444f33,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x444f33,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x444f33,'Restore\x20this\x20revision')};return _0x215e6e['map'](_0x4f52db=>{const _0x5b1a97=_0x5e26c4[_0x4f52db['name']];return _0x5b1a97&&_0x5b1a97!==_0x4f52db['name']&&(_0x4f52db['name']=_0x5b1a97),_0x4f52db;});}(_0x58595d,_0x3a4d77),_0x28c9bb=new _0x2a3d8d();for(const _0x5241aa of _0x5a2934){const _0x5079bf={'type':'button','model':new to({'label':_0x5241aa['name'],'class':_0x5241aa['class'],'withText':!0x0,'role':'menuitem','_action':_0x5241aa['action']})};_0x5079bf['model']['bind']('isEnabled')['to'](_0x58595d,'isActionsDropdownOpen',_0x575be8=>'function'!=typeof _0x5241aa['isEnabled']||(!_0x575be8||_0x5241aa['isEnabled'](_0x58595d))),_0x28c9bb['add'](_0x5079bf);}return _0x28c9bb;}(_0x2b1870,_0x36863b);return _0x2b1870['bind']('isActionsDropdownOpen')['to'](_0x380ef9,'isOpen'),_0x380ef9['buttonView']['set']({'label':g(_0x575a3f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c75f0}),_0x380ef9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xace4a5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xace4a5['to'](_0x2584e8=>_0x2584e8['stopPropagation']())}}),_0x380ef9['on']('execute',_0x204b89=>{_0x2b1870['isReady']&&'function'==typeof _0x204b89['source']['_action']&&_0x204b89['source']['_action'](_0x2b1870);}),_0x5ef6a4(_0x380ef9,_0x53cd60,{'role':'menu'}),_0x380ef9['listenTo'](_0x2b1870,'change:isActionsDropdownOpen',(_0x3b04fb,_0x119191,_0x5d95b4)=>{if(_0x5d95b4)for(const _0x22b697 of _0x380ef9['listView']['items']){const _0x41bcc0=_0x22b697['children']['first'],_0x2038da=_0x36863b['find'](_0x18162b=>_0x18162b['action']===_0x41bcc0['_action'])['isVisible'];_0x22b697['isVisible']=void 0x0===_0x2038da||_0x2038da(_0x2b1870);}}),_0x380ef9;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x59b5ea,_0x48db06,_0x4cd2c5,_0x3fcc2c){super(_0x59b5ea);const _0x41e971=this['bindTemplate'],_0x3fc232=function(_0x2978f1,_0x56a915){const _0x58543e=Array['from'](_0x56a915['authors'])['filter'](_0x439999=>_0x439999!=_0x56a915['creator']);return _0x56a915['creator']&&_0x58543e['unshift'](_0x56a915['creator']),_0x58543e['map'](_0x165c4e=>new si(_0x2978f1,_0x165c4e,_0x165c4e==_0x56a915['creator']));}(_0x59b5ea,_0x48db06);this['id']=_0x48db06['id'],this['_revision']=_0x48db06,this['_requireRevisionName']=_0x3fcc2c,this['bind']('name','createdAt')['to'](_0x48db06),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x49f087=>{return _0x325c18=_0x59b5ea['uiLanguage'],(_0x420343=_0x49f087)['toLocaleDateString'](_0x325c18,{'month':'long','day':'numeric'})+',\x20'+_0x420343['toLocaleTimeString'](_0x325c18,{'hour':'numeric','minute':'numeric'});var _0x325c18,_0x420343;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x59b5ea,_0x1e64bd),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x455e47=>_0x455e47||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x115c84,_0x54a9a8)=>_0x115c84&&_0x54a9a8),this['revisionActionsView']=_0x4cd2c5&&_0x4cd2c5['length']?oi(this,_0x4cd2c5):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x41e971['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x41e971['if']('isEnabled','ck-disabled',_0x2cb300=>!_0x2cb300),_0x41e971['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x41e971['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x41e971['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':_0x41e971['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':_0x3fc232}]},this['revisionActionsView']],'on':{'click':_0x41e971['to'](_0x2d0798=>{_0x2d0798['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2b52f6=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2b52f6,'change',()=>{this['_requireRevisionName']&&!_0x2b52f6['value']||this['fire']('setName',{'id':this['id'],'name':_0x2b52f6['value']}),_0x2b52f6['value']||(_0x2b52f6['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x19801f,_0x45e6e4){const _0x2ddc8e=_0x5482f9['fromJSDate'](_0x19801f)['setLocale'](_0x45e6e4),_0x152dd6=_0x5482f9['local'](),_0x32779f=_0x152dd6['minus']({'days':0x1})['startOf']('day');let _0xa2a816,_0x5b212d;return _0x2ddc8e['hasSame'](_0x152dd6,'day')?(_0xa2a816=_0x2ddc8e['startOf']('day')['toJSDate'](),_0x5b212d=_0x2ddc8e['toRelativeCalendar']()):_0x2ddc8e['hasSame'](_0x32779f,'day')?(_0xa2a816=_0x32779f['toJSDate'](),_0x5b212d=_0x2ddc8e['toRelativeCalendar']()):_0x2ddc8e['hasSame'](_0x152dd6,'week')?(_0xa2a816=_0x2ddc8e['startOf']('week')['toJSDate'](),_0x5b212d=_0x2ddc8e['weekdayLong']||''):_0x2ddc8e['hasSame'](_0x152dd6,'year')?(_0xa2a816=_0x2ddc8e['startOf']('month')['toJSDate'](),_0x5b212d=_0x2ddc8e['monthLong']||''):(_0xa2a816=_0x2ddc8e['startOf']('year')['toJSDate'](),_0x5b212d=String(_0x2ddc8e['year'])),{'startDate':_0xa2a816,'localizedPeriodName':_0x5b212d};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x57187e,_0x4edb26,_0x1e5815,_0x2f0bd0){super(_0x57187e);const _0x14bb26=ai(_0x4edb26,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4edb26,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1e5815,this['_requireRevisionName']=_0x2f0bd0,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':_0x14bb26}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x411c50){const _0x5837bc=new hi(this['locale'],_0x411c50,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5837bc);}['removeRevision'](_0x3dbc02){const _0x4a29d1=this['revisionViews']['find'](_0x4bc9e2=>_0x4bc9e2['id']===_0x3dbc02['id']);this['revisionViews']['remove'](_0x4a29d1);}}class as extends ts{constructor(_0x3c23bd){super(_0x3c23bd);const _0x4df35e=new _0x122712();_0x4df35e['content']=_0x59d51f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4df35e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3c23bd,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x14e4e2,_0x446b18,_0x212fbc,_0x13053e){super(_0x14e4e2);const _0x2a7f3a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x446b18,this['_revisionActions']=_0x212fbc,this['_requireRevisionName']=_0x13053e,this['on']('select',(_0x413438,_0x5e7c78)=>{this['fire']('revisionSelected',_0x5e7c78);}),this['on']('setName',(_0x2d0300,_0x1abf68)=>{this['fire']('revisionSetName',_0x1abf68);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x14e4e2),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2a7f3a['if']('isEnabled','ck-disabled',_0x1b1858=>!_0x1b1858)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x581749 of this['_revisions'])this['_addRevision'](_0x581749);this['_revisions']['on']('add',(_0x34aa70,_0x2ebdd2)=>{this['_addRevision'](_0x2ebdd2);}),this['_revisions']['on']('remove',(_0x565fbd,_0x579c59)=>{this['_removeRevision'](_0x579c59);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x58024e=>_0x58024e['revisionViews']['map'](_0x2078c9=>_0x2078c9))['flat']();}['selectRevision'](_0x26b2c3){for(const _0x106bab of this['revisionViews'])_0x26b2c3&&_0x26b2c3['id']===_0x106bab['id']?_0x106bab['select']():_0x106bab['deselect']();}['highlightRevisions'](_0x1cdf24){for(const _0x39918c of this['revisionViews'])_0x1cdf24['some'](({id:_0x1b3981})=>_0x1b3981===_0x39918c['id'])?_0x39918c['highlight']():_0x39918c['unhighlight']();}['_addRevision'](_0x10841a){const _0x205464=ai(_0x10841a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x468cfa=this['timePeriodViews']['get'](0x0);_0x468cfa&&_0x468cfa['startDate']['getTime']()===_0x205464['getTime']()||(_0x468cfa=new di(this['locale'],_0x205464,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x468cfa)),_0x468cfa['addRevision'](_0x10841a);}['_removeRevision'](_0x1c897b){const _0x2d29fe=ai(_0x1c897b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2d29fe)['removeRevision'](_0x1c897b);}['_getTimePeriodViewByStartDate'](_0xe5cdb6){return this['timePeriodViews']['find'](_0x2316d7=>_0x2316d7['startDate']['getTime']()===_0xe5cdb6['getTime']());}}class d extends _0x24b312{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2cbbee,uid as _0xb8234b,Collection as _0x5e3e8a,logWarning as _0x1bc517,FocusTracker as _0x2e2350,KeystrokeHandler as _0x3fdd6e,scrollViewportToShowTarget as _0x193bf5,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x3dc61d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x7e9748,set as _0x43ab20,unset as _0x17feab,isEqual as _0x44e39c}from'es-toolkit/compat';import{Plugin as _0x4de1c4,PendingActions as _0x3c8ad2,Command as _0x57bca6,ElementApiMixin as _0x1e2a6c,Editor as _0x138488}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2ad73a,getMarkerDomElement as _0x292118,ConfirmMixin as _0xda1eae,sanitizeEditorConfig as _0x1344d7}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4f67b4,ViewAttributeElement as _0xa17d80,ViewEmptyElement as _0x2aadf9,ViewRawElement as _0x48afd8,ViewUIElement as _0x45b7ff,ViewDocumentFragment as _0x15f8a7,ViewText as _0x235f66,ViewElement as _0x54a0af,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4860b4,IconChevronUp as _0x5c75c8,IconChevronDown as _0x4950cd,IconUndo as _0x532e77,IconUser as _0x3b41b4,IconThreeVerticalDots as _0x20f678}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4ce89f,injectCssTransitionDisabler as ts,submitHandler as _0x4b75d0,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x4bf195,ListView as _0x3d093c,ListItemView as te,ButtonView as _0x55e2cf,MenuBarMenuView as _0x31677e,MenuBarMenuListView as _0x1fa962,MenuBarMenuListItemView as _0x37ea3d,MenuBarMenuListItemButtonView as _0x462384,ContextualBalloon as _0x35d9ea,ToolbarSeparatorView as _0x50b2b1,IconView as _0x422375,addListToDropdown as _0x423aa5,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x43b502}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x2cbbee(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x99c33f){super(),this['id']=_0x99c33f['id']||_0xb8234b(),this['creator']=_0x99c33f['creator']||null,this['authors']=_0x99c33f['authors']||[],this['diffData']=_0x99c33f['diffData']||null,this['toVersion']=_0x99c33f['toVersion']||0x0,this['fromVersion']=_0x99c33f['fromVersion']||0x0,this['set']('name',_0x99c33f['name']||''),this['set']('createdAt',_0x99c33f['createdAt']||new Date()),this['set']('attributes',_0x99c33f['attributes']||{});}['setName'](_0x186e77){this['_update']({'name':_0x186e77});}['setAttribute'](_0x425ad0,_0x116c12){const _0x328c91=_0x7e9748(this['attributes']);_0x43ab20(_0x328c91,_0x425ad0,_0x116c12),this['_update']({'attributes':_0x328c91});}['removeAttribute'](_0x239403){const _0x599527=_0x7e9748(this['attributes']);_0x17feab(_0x599527,_0x239403),this['_update']({'attributes':_0x599527});}['_update'](_0x265a54,_0x2d3da1=!0x1){let _0x126316=!0x1;const _0x27d877={'id':this['id']},_0x2ab4e0=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4edd90 of _0x2ab4e0){const _0x58d575=_0x265a54[_0x4edd90];void 0x0!==_0x58d575&&_0x58d575!==this[_0x4edd90]&&(this[_0x4edd90]=_0x58d575,_0x27d877[_0x4edd90]=_0x58d575,_0x126316=!0x0);}_0x126316&&(_0x27d877['authors']&&(_0x27d877['authorsIds']=_0x27d877['authors']['map'](_0x153a9c=>_0x153a9c['id']),delete _0x27d877['authors']),this['fire']('_update',_0x27d877,_0x2d3da1));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3ffb2e=>_0x3ffb2e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4de1c4{['_revisions'];static get['requires'](){return[_0x2ad73a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5977b1){super(_0x5977b1),this['_revisions']=new _0x5e3e8a();}['afterInit'](){!async function(_0x340d8a){const _0x237884=_0x4d6d31([0x77,0x59,0x72,0x51,0x39,0x33,0x6d,0x32,0x5a,0x34,0x35,0x54,0x53,0x6c,0x79,0x65,0x52,0x6f,0x64,0x78,0x6b,0x44,0x67,0x57,0x47,0x42,0x56,0x62,0x4a,0x30,0x36,0x61,0x6a,0x6e,0x31,0x69,0x4f,0x58,0x4d,0x74,0x76,0x63,0x66,0x43,0x49,0x37,0x71,0x50,0x73,0x7a,0x48,0x55,0x45,0x4c,0x75,0x68,0x46,0x4b,0x38,0x41,0x70,0x4e]),_0x4c9bac=0xeb829,_0x6886ff=0x3860e5d0,_0x566851=0x38678ee0^_0x6886ff,_0x2f38d9=window[_0x4d6d31([0x44,0x61,0x74,0x65])][_0x4d6d31([0x6e,0x6f,0x77])](),_0xa56e50=_0x340d8a[_0x4d6d31([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc3ae87=new window[(_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1638a6=>{_0xa56e50[_0x4d6d31([0x6f,0x6e,0x63,0x65])](_0x4d6d31([0x72,0x65,0x61,0x64,0x79]),_0x1638a6);}),_0x423109={[_0x4d6d31([0x6b,0x74,0x79])]:_0x4d6d31([0x45,0x43]),[_0x4d6d31([0x75,0x73,0x65])]:_0x4d6d31([0x73,0x69,0x67]),[_0x4d6d31([0x63,0x72,0x76])]:_0x4d6d31([0x50,0x2d,0x32,0x35,0x36]),[_0x4d6d31([0x78])]:_0x4d6d31([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]),[_0x4d6d31([0x79])]:_0x4d6d31([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]),[_0x4d6d31([0x61,0x6c,0x67])]:_0x4d6d31([0x45,0x53,0x32,0x35,0x36])},_0x17860e=_0xa56e50[_0x4d6d31([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d6d31([0x67,0x65,0x74])](_0x4d6d31([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x452232(){let _0x4f45d5,_0x573f7d=null,_0x4330aa=null;try{if(_0x17860e==_0x4d6d31([0x47,0x50,0x4c]))return _0x4d6d31([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f45d5=_0x428a52(),!_0x4f45d5)return _0x4d6d31([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f45d5[_0x4d6d31([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4330aa=_0x25b75f(_0x4f45d5[_0x4d6d31([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f45d5[_0x4d6d31([0x6a,0x74,0x69])])),await _0x14ddcc()?_0x1e89f8()?_0x25ed3d()?_0x4d6d31([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e8c14()?(_0x4f45d5[_0x4d6d31([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6d31([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x573f7d=_0x28139d(_0x4d6d31([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f45d5[_0x4d6d31([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6d31([0x74,0x72,0x69,0x61,0x6c])&&(_0x573f7d=_0x28139d(_0x4d6d31([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5eecf7()):_0x4d6d31([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6d31([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d6d31([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d6d31([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25ed3d(){const _0x35ec1c=[_0x4d6d31([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d6d31([0x74,0x72,0x69,0x61,0x6c])][_0x4d6d31([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f45d5[_0x4d6d31([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f38d9/0x3e8:0xe10*_0x566851;return _0x4f45d5[_0x4d6d31([0x65,0x78,0x70])]<_0x35ec1c;}function _0x1e89f8(){const _0x21d62f=_0x4f45d5[_0x4d6d31([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x21d62f)return!0x1;if(_0x21d62f[_0x4d6d31([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6d31([0x2a])))return!0x0;if(_0x21d62f[_0x4d6d31([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6d31([0x52,0x48])))return!0x0;if(_0x21d62f[_0x4d6d31([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6d31([0x52,0x52,0x48]))){if(_0x1eed24())return!0x0;if(_0x384308()||_0xe4ae9a())return!0x0;}return!0x1;}function _0x2e8c14(){const _0x6f8bff=_0x4f45d5[_0x4d6d31([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6f8bff||0x0==_0x6f8bff[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x573722}=new URL(window[_0x4d6d31([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6f8bff[_0x4d6d31([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x573722))return!0x0;const _0x9133b4=_0x573722[_0x4d6d31([0x73,0x70,0x6c,0x69,0x74])](_0x4d6d31([0x2e]));return _0x6f8bff[_0x4d6d31([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ecf68=>_0x1ecf68[_0x4d6d31([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6d31([0x2a])))[_0x4d6d31([0x6d,0x61,0x70])](_0x4468a5=>_0x4468a5[_0x4d6d31([0x73,0x70,0x6c,0x69,0x74])](_0x4d6d31([0x2e])))[_0x4d6d31([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f1d53=>_0x3f1d53[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9133b4[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6d31([0x6d,0x61,0x70])](_0x1dcf94=>Array(_0x9133b4[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1dcf94[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6d31([0x66,0x69,0x6c,0x6c])](_0x1dcf94[0x0]===_0x4d6d31([0x2a])?_0x4d6d31([0x2a]):'')[_0x4d6d31([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1dcf94))[_0x4d6d31([0x73,0x6f,0x6d,0x65])](_0x52eb1e=>_0x9133b4[_0x4d6d31([0x65,0x76,0x65,0x72,0x79])]((_0x6f423,_0x2caced)=>_0x52eb1e[_0x2caced]===_0x6f423||_0x52eb1e[_0x2caced]===_0x4d6d31([0x2a])));}function _0x5eecf7(){return _0x573f7d&&_0x4330aa?new window[(_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x208879,_0x4eb238)=>{_0x573f7d[_0x4d6d31([0x74,0x68,0x65,0x6e])](_0x208879,_0x4eb238),_0x4330aa[_0x4d6d31([0x74,0x68,0x65,0x6e])](_0x1ea407=>{_0x1ea407!=_0x4d6d31([0x56,0x61,0x6c,0x69,0x64])&&_0x208879(_0x1ea407);},_0x4eb238);}):_0x573f7d||_0x4330aa||_0x4d6d31([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25b75f(_0x24c710,_0x58c48f){return new window[(_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a7e5a=>{if(_0x10fb88())return _0x5a7e5a(_0x4d6d31([0x56,0x61,0x6c,0x69,0x64]));_0x57e6ef(),_0xa56e50[_0x4d6d31([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d6d31([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xaedd95=!0x1;const _0x5e511e=_0xb8234b();function _0x20b72b(_0x117696){return!!_0x117696&&(typeof _0x117696===_0x4d6d31([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x117696===_0x4d6d31([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x117696[_0x4d6d31([0x74,0x68,0x65,0x6e])]===_0x4d6d31([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x117696[_0x4d6d31([0x63,0x61,0x74,0x63,0x68])]===_0x4d6d31([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd40e7d(_0x4877d3){_0x1a65bd(_0x4877d3)[_0x4d6d31([0x74,0x68,0x65,0x6e])](_0x31cff9=>{if(!_0x31cff9||_0x31cff9[_0x4d6d31([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d6d31([0x6f,0x6b]))return _0x4d6d31([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x318f90(_0x32f493(_0x5e511e+_0x58c48f))!=_0x31cff9[_0x4d6d31([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d6d31([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6d31([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6d31([0x74,0x68,0x65,0x6e])](_0x5d296b=>(_0x769249(),_0x5d296b),()=>{const _0x15da9b=_0x62b91c();return null==_0x15da9b?(_0x769249(),_0x4d6d31([0x56,0x61,0x6c,0x69,0x64])):_0x4d6d31(_0x2f38d9-_0x15da9b>(0x1c6c61d0^_0x6886ff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6d31([0x74,0x68,0x65,0x6e])](_0x5a7e5a)[_0x4d6d31([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a7e5a(_0x4d6d31([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46399f=0x38560b50^_0x6886ff;function _0x769249(){const _0x563037=_0x4d6d31([0x6c,0x6c,0x63,0x74,0x2d])+_0x318f90(_0x32f493(_0x24c710)),_0x28e86b=_0x575892(_0x318f90(window[_0x4d6d31([0x4d,0x61,0x74,0x68])][_0x4d6d31([0x63,0x65,0x69,0x6c])](_0x2f38d9/_0x46399f)));window[_0x4d6d31([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6d31([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x563037,_0x28e86b);}function _0x62b91c(){const _0xb76276=_0x4d6d31([0x6c,0x6c,0x63,0x74,0x2d])+_0x318f90(_0x32f493(_0x24c710)),_0x431638=window[_0x4d6d31([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6d31([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb76276);return _0x431638?window[_0x4d6d31([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x575892(_0x431638),0x10)*_0x46399f:null;}function _0x1a65bd(_0x85f653){return new window[(_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfa00c3,_0x461010)=>{_0x85f653[_0x4d6d31([0x74,0x68,0x65,0x6e])](_0xfa00c3,_0x461010),window[_0x4d6d31([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x461010,0x38613110^_0x6886ff);});}}_0xa56e50[_0x4d6d31([0x6f,0x6e])](_0x4d6d31([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x414c1f,_0x703509)=>{if(_0x703509[0x0]!=_0x24c710)return _0x5a7e5a(_0x4d6d31([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x703509[0x1]={..._0x703509[0x1],[_0x4d6d31([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e511e};},{[_0x4d6d31([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6d31([0x68,0x69,0x67,0x68])}),_0xa56e50[_0x4d6d31([0x6f,0x6e])](_0x4d6d31([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45533a=>{_0x20b72b(_0x45533a[_0x4d6d31([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xaedd95=!0x0,_0xd40e7d(_0x45533a[_0x4d6d31([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d6d31([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6d31([0x6c,0x6f,0x77])}),_0xc3ae87[_0x4d6d31([0x74,0x68,0x65,0x6e])](()=>{_0xaedd95||_0x5a7e5a(_0x4d6d31([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10fb88(){return _0xa56e50[_0x4d6d31([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6d31([0x76,0x69,0x65,0x77])][_0x4d6d31([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d6d31([0x61,0x75,0x74,0x6f]);}function _0x57e6ef(){_0xa56e50[_0x4d6d31([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6d31([0x76,0x69,0x65,0x77])][_0x4d6d31([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d6d31([0x61,0x75,0x74,0x6f]);}}function _0x28139d(_0x32896f){const _0x33d44d=[new window[(_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fd4d3=>setTimeout(_0x3fd4d3,0x3869db1c^_0x6886ff)),_0xc3ae87[_0x4d6d31([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a541b=>{const _0x2de11d=0x3860e5d7^_0x6886ff,_0x162ab5=_0x340d8a[_0x4d6d31([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x53d843(){_0x162ab5[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2de11d&&_0x3a541b();}_0x53d843(),_0x162ab5[_0x4d6d31([0x6f,0x6e])](_0x4d6d31([0x61,0x64,0x64]),_0x53d843);})),new window[(_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5cc0=>{function _0x30330e(){for(const _0x58fd13 in window)if(window[_0x4d6d31([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d6d31([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x58fd13))&&window[_0x58fd13]==_0x4c9bac)return _0x2f5cc0();_0xa56e50[_0x4d6d31([0x73,0x74,0x61,0x74,0x65])]!=_0x4d6d31([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d6d31([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30330e,0x3860f658^_0x6886ff);}_0x49d273(_0x4d6d31([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x30330e();})];return window[_0x4d6d31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d6d31([0x72,0x61,0x63,0x65])](_0x33d44d)[_0x4d6d31([0x74,0x68,0x65,0x6e])](()=>_0x32896f);}async function _0x420c18(){if(await _0xc3ae87,_0x49d273(_0x4d6d31([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x50e545=_0x340d8a[_0x4d6d31([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x14572e=_0x340d8a[_0x4d6d31([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])](_0x50e545[_0x4d6d31([0x69,0x64])]),_0x38eafb=_0x2ca74a(_0x4d6d31([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x38eafb[_0x4d6d31([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x50e545['id'],_0x14572e?_0x14572e['id']:null,!0x0),_0x38eafb[_0x4d6d31([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d6d31([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x38eafb[_0x4d6d31([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x38eafb[_0x4d6d31([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x34c823,void(_0x38eafb[_0x4d6d31([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x34c823);}if(_0x49d273(_0x4d6d31([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x21d0b2=_0x2ca74a(_0x4d6d31([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x21d0b2[_0x4d6d31([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d6d31([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x21d0b2[_0x4d6d31([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x21d0b2[_0x4d6d31([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x34c823,_0x21d0b2[_0x4d6d31([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x34c823;}_0xa56e50[_0x4d6d31([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6d31([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34c823,_0xa56e50[_0x4d6d31([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6d31([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34c823,_0xa56e50[_0x4d6d31([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d6d31([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1eed24(){return _0x49d273(_0x4d6d31([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ca74a(_0x4d6d31([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d6d31([0x73,0x74,0x61,0x74,0x65])]==_0x4d6d31([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x384308(){return _0x49d273(_0x4d6d31([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 _0xe4ae9a(){return _0x49d273(_0x4d6d31([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2ec66a(_0x41a4d8){const _0x4482c3=_0x3ed1dd();_0xa56e50[_0x4482c3]=_0x4d6d31([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])+_0x41a4d8,_0x41a4d8[_0x4d6d31([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d6d31([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3ed1dd()]=_0x4c9bac),_0x41a4d8!=_0x4d6d31([0x56,0x61,0x6c,0x69,0x64])&&_0x420c18();}function _0x3ed1dd(){const _0x11ef83=window[_0x4d6d31([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d6d31([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d6d31([0x6e,0x6f,0x77])]())[_0x4d6d31([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d6d31([0x2e]),'');let _0x55c22c=_0x4d6d31([0x77]);for(let _0x40b076=0x0;_0x40b076<_0x11ef83[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40b076+=0x2){let _0x28883c=window[_0x4d6d31([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11ef83[_0x4d6d31([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40b076,_0x40b076+0x2));_0x28883c>=_0x237884[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28883c-=_0x237884[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55c22c+=_0x237884[_0x28883c];}return _0x55c22c;}function _0x428a52(){const _0x5b3cba=_0x17860e[_0x4d6d31([0x73,0x70,0x6c,0x69,0x74])](_0x4d6d31([0x2e]));if(0x3!=_0x5b3cba[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3aba66(_0x5b3cba[0x1]);function _0x3aba66(_0x500a81){const _0x36a9bf=_0x42c4ab(_0x500a81);return _0x36a9bf&&_0x19ccc9()?_0x36a9bf:null;function _0x19ccc9(){const _0x2bc4fe=_0x36a9bf[_0x4d6d31([0x6a,0x74,0x69])],_0x56ddbc=window[_0x4d6d31([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bc4fe[_0x4d6d31([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bc4fe[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ee50b={..._0x36a9bf,[_0x4d6d31([0x6a,0x74,0x69])]:_0x2bc4fe[_0x4d6d31([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bc4fe[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ee50b[_0x4d6d31([0x76,0x63])],_0x32f493(_0x4ee50b)==_0x56ddbc;}}}async function _0x14ddcc(){let _0x5f3f0c=!0x0;try{const _0x1b2be1=_0x17860e[_0x4d6d31([0x73,0x70,0x6c,0x69,0x74])](_0x4d6d31([0x2e])),[_0xb14323,_0x5cd2ca,_0x1aa5c7]=_0x1b2be1;return _0x285ca1(_0xb14323),await _0x46cdd3(_0xb14323,_0x5cd2ca,_0x1aa5c7),_0x5f3f0c;}catch{return!0x1;}function _0x285ca1(_0x3006b5){const _0x494862=_0x42c4ab(_0x3006b5);_0x494862&&_0x494862[_0x4d6d31([0x61,0x6c,0x67])]==_0x4d6d31([0x45,0x53,0x32,0x35,0x36])||(_0x5f3f0c=!0x1);}async function _0x46cdd3(_0x38edd5,_0x229050,_0x2244b7){const _0x5f1a96=window[_0x4d6d31([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d6d31([0x66,0x72,0x6f,0x6d])](_0x4b9f2e(_0x2244b7),_0x180e21=>_0x180e21[_0x4d6d31([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4addd=new window[(_0x4d6d31([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d6d31([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x38edd5+_0x4d6d31([0x2e])+_0x229050),_0x26b8e6=window[_0x4d6d31([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d6d31([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26b8e6)return;const _0x245043=await _0x26b8e6[_0x4d6d31([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d6d31([0x6a,0x77,0x6b]),_0x423109,{[_0x4d6d31([0x6e,0x61,0x6d,0x65])]:_0x4d6d31([0x45,0x43,0x44,0x53,0x41]),[_0x4d6d31([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d6d31([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d6d31([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26b8e6[_0x4d6d31([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d6d31([0x6e,0x61,0x6d,0x65])]:_0x4d6d31([0x45,0x43,0x44,0x53,0x41]),[_0x4d6d31([0x68,0x61,0x73,0x68])]:{[_0x4d6d31([0x6e,0x61,0x6d,0x65])]:_0x4d6d31([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x245043,_0x5f1a96,_0x4addd)||(_0x5f3f0c=!0x1);}}function _0x42c4ab(_0x2c5bc3){return _0x2c5bc3[_0x4d6d31([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d6d31([0x65,0x79]))?JSON[_0x4d6d31([0x70,0x61,0x72,0x73,0x65])](_0x4b9f2e(_0x2c5bc3)):null;}function _0x4b9f2e(_0x29db61){return window[_0x4d6d31([0x61,0x74,0x6f,0x62])](_0x29db61[_0x4d6d31([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d6d31([0x2b]))[_0x4d6d31([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d6d31([0x2f])));}function _0x32f493(_0x423420){let _0x3b12cd=0x1505;function _0x43ccb0(_0x194334){for(let _0xf47062=0x0;_0xf47062<_0x194334[_0x4d6d31([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf47062++){const _0x19564c=_0x194334[_0x4d6d31([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf47062);_0x3b12cd=(_0x3b12cd<<0x5)+_0x3b12cd+_0x19564c,_0x3b12cd&=_0x3b12cd;}}function _0x266ce2(_0x466fee){Array[_0x4d6d31([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x466fee)?_0x466fee[_0x4d6d31([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x266ce2):_0x466fee&&typeof _0x466fee==_0x4d6d31([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d6d31([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x466fee)[_0x4d6d31([0x73,0x6f,0x72,0x74])]()[_0x4d6d31([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a4715,_0x4ac4f1])=>{_0x43ccb0(_0x2a4715),_0x266ce2(_0x4ac4f1);}):_0x43ccb0(window[_0x4d6d31([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x466fee));}return _0x266ce2(_0x423420),_0x3b12cd>>>0x0;}function _0x318f90(_0x657fdd){return _0x657fdd[_0x4d6d31([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d6d31([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d6d31([0x30]));}function _0x575892(_0xb7b785){return _0xb7b785[_0x4d6d31([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d6d31([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d6d31([0x6a,0x6f,0x69,0x6e])]('');}function _0x49d273(_0x549a36){return _0xa56e50[_0x4d6d31([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6d31([0x68,0x61,0x73])](_0x549a36);}function _0x2ca74a(_0x4dc46e){return _0xa56e50[_0x4d6d31([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6d31([0x67,0x65,0x74])](_0x4dc46e);}function _0x34c823(){}function _0x4d6d31(_0xb1f44){return _0xb1f44['map'](_0x1b2f5b=>String['fromCharCode'](_0x1b2f5b))['join']('');}_0x2ec66a(await _0x452232());}(this);}['createRevision'](_0x32e90e){const _0x43b905=this['editor']['plugins']['get']('Users');return new h({'id':_0x32e90e['id'],'name':_0x32e90e['name'],'creator':_0x32e90e['creatorId']?_0x43b905['getUser'](_0x32e90e['creatorId']):null,'diffData':_0x32e90e['diffData']||_0x32e90e['data'],'authors':_0x32e90e['authorsIds']['map'](_0x49152c=>_0x43b905['getUser'](_0x49152c)),'createdAt':new Date(_0x32e90e['createdAt']),'attributes':_0x32e90e['attributes'],'fromVersion':_0x32e90e['fromVersion'],'toVersion':_0x32e90e['toVersion']});}['addRevision'](_0x1a477b,_0x4e197e=0x0){this['_revisions']['add'](_0x1a477b,_0x4e197e);}['getRevision'](_0x3e8e0d){return this['_revisions']['get'](_0x3e8e0d);}['getRevisions'](_0x39023f={'toJSON':!0x1}){const _0x45985a=Array['from'](this['_revisions']);return _0x45985a['reverse'](),_0x39023f['toJSON']?_0x45985a['map'](_0x4399f1=>_0x4399f1['toJSON']()):_0x45985a;}['getIndex'](_0x44b90c){return this['_revisions']['getIndex'](_0x44b90c);}['getEarlierVisibleRevision'](_0x29d951){const [,_0x1dedee]=this['getRevisionsIterator'](_0x29d951,{'direction':'earlier'});return _0x1dedee;}['getLaterVisibleRevision'](_0x25a88e){const [,_0x53b53e]=this['getRevisionsIterator'](_0x25a88e,{'direction':'later'});return _0x53b53e;}['getRevisionsInDiff'](_0x5c61a9){const _0x563c71=[];for(const _0x819fee of this['getRevisionsIterator'](_0x5c61a9['newRevisionId']))if(_0x563c71['push'](_0x819fee),_0x819fee['id']===_0x5c61a9['oldRevisionId'])break;return _0x563c71;}*['getRevisionsIterator'](_0x47e904,{direction:_0x5543fb='earlier',filter:_0x3f3e49=()=>!0x0}={}){const _0x3154f6='earlier'===_0x5543fb?0x1:-0x1;let _0x27fe87=this['_revisions']['get'](_0x47e904),_0x5358e2=this['getIndex'](_0x27fe87);for(yield _0x27fe87;_0x27fe87;){if(_0x5358e2+=_0x3154f6,_0x27fe87=this['getRevision'](_0x5358e2),!_0x27fe87)return;_0x3f3e49(_0x27fe87)&&(yield _0x27fe87);}}}class V extends _0x4de1c4{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4f67b4,'c'],[_0xa17d80,'a'],[_0x2aadf9,'e'],[_0x48afd8,'r'],[_0x45b7ff,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4f67b4],['a',_0xa17d80],['e',_0x2aadf9],['r',_0x48afd8],['u',_0x45b7ff]]);async['loadRevisionData'](_0x474f48,_0x3b7225){if(_0x474f48['diffData']||!_0x3b7225)return;const _0x1d486f=this['editor']['config']['get']('collaboration.channelId'),_0x4ca3f6=await _0x3b7225['getRevision']({'channelId':_0x1d486f,'revisionId':_0x474f48['id']});_0x474f48['diffData']=_0x4ca3f6['diffData'];}['getRevisionDocumentData'](_0x4ee17c){const _0x142a0c={};for(const _0x3b7bb6 in _0x4ee17c['diffData']){if(_0x4ee17c['diffData'][_0x3b7bb6]['attachChange']&&!_0x4ee17c['diffData'][_0x3b7bb6]['attachChange']['isAttached'])continue;const _0x49a0cb=this['_removeRevisionMarkers'](JSON['parse'](_0x4ee17c['diffData'][_0x3b7bb6]['insertions'])),_0x48380d=this['editor']['editing']['view']['document'],_0x311d86=new _0x15f8a7(_0x48380d,_0x49a0cb['map'](_0x13f744=>this['_getViewFromDiffObj'](_0x13f744,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x142a0c[_0x3b7bb6]=this['editor']['data']['processor']['toData'](_0x311d86),this['editor']['data']['processor']['useFillerType']('default');}return _0x142a0c;}['getRevisionRootsAttributes'](_0x3beb78){const _0x138f58={};for(const _0x2f4729 in _0x3beb78['diffData'])_0x3beb78['diffData'][_0x2f4729]['attachChange']&&!_0x3beb78['diffData'][_0x2f4729]['attachChange']['isAttached']||(_0x138f58[_0x2f4729]=_0x3beb78['diffData'][_0x2f4729]['attributesAfter']||{});return _0x138f58;}['_getTypeCharForViewElement'](_0x529e1d){return this['_viewClassToTypeChar']['get'](_0x529e1d['constructor']);}['_getViewFromDiffObj'](_0x22d780,_0x49cbd2){const _0x15910a=this['editor']['editing']['view']['document'];if('string'==typeof _0x22d780)return new _0x235f66(_0x15910a,_0x22d780);{let _0x10ef62,_0x292618;_0x292618='u'==_0x22d780['type']||'r'==_0x22d780['type']?[]:_0x22d780['children']['map'](_0x3215f2=>this['_getViewFromDiffObj'](_0x3215f2,_0x49cbd2));const _0x4b9815=this['_typeCharToViewClass']['get'](_0x22d780['type'])||_0x54a0af,_0x183afd=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x10ef62=new _0x4b9815(_0x15910a,_0x22d780['name'],_0x22d780['attributes'],_0x292618),'u'==_0x22d780['type']&&_0x22d780['children'][0x0]){const _0x1d6d34=_0x22d780['children'][0x0];if(_0x10ef62['render']=function(_0x5d02d6){const _0x2ad616=_0x5d02d6['createElement']('div');return _0x2ad616['innerHTML']=_0x1d6d34,_0x2ad616['childNodes'][0x0];},_0x49cbd2){const _0x5902e4=new _0x15f8a7(_0x15910a);_0x5902e4['_appendChild'](_0x10ef62);const _0x593065=Array['from'](_0x183afd['viewChildrenToDom'](_0x5902e4,{'bind':!0x1})),_0x38b20c=_0x183afd['domDocument']['createElement']('div');_0x38b20c['append'](..._0x593065),_0x10ef62=Array['from'](_0x183afd['domChildrenToView'](_0x38b20c))[0x0];}}else{if('r'==_0x22d780['type']&&_0x22d780['children'][0x0]){const _0x1ce5d7=_0x22d780['children'][0x0];if(_0x10ef62['render']=function(_0x112db1){_0x112db1['innerHTML']=_0x1ce5d7;},_0x49cbd2){const _0x164a7f=new _0x15f8a7(_0x15910a);_0x164a7f['_appendChild'](_0x10ef62);const _0x1a80f6=Array['from'](_0x183afd['viewChildrenToDom'](_0x164a7f,{'bind':!0x1})),_0x134040=_0x183afd['domDocument']['createElement']('div');_0x134040['append'](..._0x1a80f6);const _0x1c1408=Array['from'](_0x183afd['domChildrenToView'](_0x134040));_0x1c1408['length']>0x1?_0x10ef62['_appendChild'](_0x1c1408):_0x10ef62=_0x1c1408[0x0];}}}if(_0x22d780['customProperties']){for(const [_0x3c9747,_0x45a60f]of _0x22d780['customProperties'])_0x10ef62['_setCustomProperty'](_0x3c9747,_0x45a60f);}const _0x18b8bd=void 0x0===_0x22d780['fillerOffset']?null:_0x22d780['fillerOffset'];return null!==_0x18b8bd&&(_0x10ef62['getFillerOffset']=()=>_0x18b8bd),_0x10ef62;}}['_makeModelFromViewString'](_0x151249){const _0x47d9ce=JSON['parse'](_0x151249),_0x4f69f5=this['editor']['editing']['view']['document'],_0x310e03=new _0x15f8a7(_0x4f69f5,_0x47d9ce['map'](_0x423530=>this['_getViewFromDiffObj'](_0x423530,!0x0)));return this['editor']['data']['toModel'](_0x310e03);}['_removeRevisionMarkers'](_0x4bed1a){return(_0x4bed1a=_0x4bed1a['filter'](_0x257e10=>!_0x257e10['name']||'revision-start'!==_0x257e10['name']&&'revision-end'!==_0x257e10['name']))['forEach'](_0x56e260=>{'string'!=typeof _0x56e260&&(_0x56e260['children']=this['_removeRevisionMarkers'](_0x56e260['children']),_0x56e260['attributes']=_0x56e260['attributes']['filter'](_0x261e0e=>!_0x261e0e[0x0]['startsWith']('data-revision-')));}),_0x4bed1a;}}function g(_0x106c3c,_0x27086f,_0xc834d3){const t=_0x106c3c['t'];switch(_0x27086f){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'},_0xc834d3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xc834d3);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'';}}class u extends _0x4de1c4{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2ad73a,I,V,_0x3c8ad2];}constructor(_0x212223){super(_0x212223),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4febae=_0xb8234b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4febae},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4e9f32=this['repository']['getRevision'](0x0),_0x4eae96=_0x4e9f32&&null===_0x4e9f32['creator']?_0x4e9f32:null;if(this['_continueCurrentRevision']=!!_0x4eae96&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x599c65=this['_source']['getCurrentRevisionId'](),_0x3a76f3=this['repository']['getRevision'](_0x599c65);if(_0x3a76f3)this['_startingVersion']=_0x3a76f3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x48f0b9=this['_source']['history']['_operations']['find'](_0x1645b5=>!_0x1645b5['_isInit']),_0x4eae64=_0x48f0b9?_0x48f0b9['baseVersion']:this['_source']['history']['version'];_0x4e9f32?(_0x4e9f32['toVersion']<_0x4eae64&&_0x4e9f32['_update']({'toVersion':_0x4eae64}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4eae96['id'],this['_startingVersion']=_0x4eae96['fromVersion']):(this['_startingVersion']=_0x4e9f32['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4eae64,this['_continueCurrentRevision']=!0x1);}}else _0x4eae96&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4eae96['toVersion'],this['editor']['model']['document']['history']['version']),_0x4eae96['fromVersion']===_0x4eae96['toVersion']?(0x0!==_0x4eae96['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4eae96['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4eae96['id'],this['_startingVersion']=_0x4eae96['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',_0x51e922=>!_0x51e922),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47d6d5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b42d9;for(const _0x23344b in _0x47d6d5){const _0x462ff9=_0x23344b,_0x891108=_0x47d6d5[_0x462ff9];if('revisionHistoryLicenseKeyValid'==_0x891108||'revisionHistoryLicenseKeyInvalid'==_0x891108||'revisionHistoryLicenseKeyExpired'==_0x891108||'revisionHistoryLicenseKeyDomainLimit'==_0x891108||'revisionHistoryLicenseKeyNotAllowed'==_0x891108||'revisionHistoryLicenseKeyEvaluationLimit'==_0x891108||'revisionHistoryLicenseKeyTrialLimit'==_0x891108||'revisionHistoryLicenseKeyUsageLimit'==_0x891108){delete _0x47d6d5[_0x462ff9],_0x2b42d9=_0x891108,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2b42d9&&_0x47d6d5['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2b42d9&&_0x47d6d5['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2b42d9&&_0x47d6d5['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2b42d9&&_0x47d6d5['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2b42d9&&_0x47d6d5['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2b42d9&&_0x47d6d5['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2b42d9&&_0x47d6d5['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x10aa80=this['repository']['getRevision'](0x0),_0x1c6727=await this['getRevisionDocumentData'](_0x10aa80),_0x5c925e=await this['getRevisionRootsAttributes'](_0x10aa80);this['_replaceEditorDataWithRevisionData'](_0x1c6727,_0x5c925e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x584ce9){this['_source']=_0x584ce9;}async['update'](){const _0x4d4334=await this['_source']['getLatestVersion']();if(_0x4d4334>this['currentRevision']['toVersion']){await this['_loadState']();const _0x33b107=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4d4334});_0x33b107['authors']=_0x33b107['authorsIds']['map'](_0x13f177=>this['editor']['plugins']['get']('Users')['getUser'](_0x13f177)),this['currentRevision']['_update'](_0x33b107);}}async['saveRevision'](_0x300b9d={},_0x387fa1=null){const _0x628588=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x387fa1>this['currentRevision']['toVersion']&&(_0x387fa1=null),null===_0x387fa1&&(_0x387fa1=await this['_source']['getLatestVersion']());const _0x325e5a=this['_getFromVersion'](_0x387fa1),_0x3ff59f=this['buildRevisionData']({'from':_0x325e5a,'to':_0x387fa1});if(this['currentRevision']['toVersion']<_0x387fa1){const _0x277e1e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x387fa1,'to':_0x387fa1});_0x277e1e['authors']=[],_0x277e1e['authorsIds']=[],_0x277e1e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x277e1e,!0x0),delete _0x277e1e['authors'],_0x628588['push'](_0x277e1e);}_0x300b9d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x300b9d['name']=_0x300b9d['name']||null,_0x300b9d['id']=_0x300b9d['id']||_0xb8234b(),_0x300b9d={..._0x300b9d,..._0x3ff59f};const _0x164934=this['addRevisionData'](_0x300b9d);_0x628588['push'](_0x300b9d);const _0x1d6032=this['repository']['getIndex'](_0x164934);if(0x0!==_0x1d6032){const _0x69dcde=this['repository']['getRevision'](_0x1d6032-0x1);if(_0x69dcde['fromVersion']!==_0x387fa1){const _0x4f1425=this['_revisionDataBuilder']['getData'](_0x387fa1,_0x69dcde['toVersion']),_0xa228ed={'id':_0x69dcde['id'],'diffData':_0x4f1425['diffData'],'authorsIds':_0x4f1425['authorsIds'],'authors':_0x4f1425['authorsIds']['map'](_0x400a79=>this['editor']['plugins']['get']('Users')['getUser'](_0x400a79)),'fromVersion':_0x387fa1};_0x69dcde===this['currentRevision']&&(_0xa228ed['createdAt']=new Date(_0x300b9d['createdAt']['getTime']()+0xa)),_0x69dcde['_update'](_0xa228ed,!0x0),delete _0xa228ed['authors'],_0x628588['push'](_0xa228ed);}}if(this['adapter']){for(const _0x44e77b of _0x628588)this['_bufferUpdate'](_0x44e77b['id'],_0x44e77b,!0x0);this['sendBufferedUpdates']();}return _0x164934;}['addRevisionData'](_0x4291fa){const _0x431b0=this['repository']['createRevision'](_0x4291fa);return this['adapter']&&_0x431b0['on']('_update',(_0x266489,_0x13a35d,_0x18673b)=>{_0x18673b||(this['_bufferUpdate'](_0x13a35d['id'],_0x13a35d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x431b0,this['_findInsertionIndex'](_0x431b0)),_0x431b0;}async['getRevisionDocumentData'](_0x239a81){return await this['_utils']['loadRevisionData'](_0x239a81,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x239a81);}async['getRevisionRootsAttributes'](_0x3a4282){return await this['_utils']['loadRevisionData'](_0x3a4282,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3a4282);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xfeea5f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1ae370=0x0;_0x1ae370<_0xfeea5f['length'];_0x1ae370++){const _0x2d4b3f=_0xfeea5f[_0x1ae370];let _0xf68bec=!0x1;for(const _0x37721e of Object['keys'](_0x2d4b3f))void 0x0===_0x2d4b3f[_0x37721e]?delete _0x2d4b3f[_0x37721e]:'id'!==_0x37721e&&(_0xf68bec=!0x0);_0xf68bec||(_0xfeea5f[_0x1ae370]=null);}if(_0xfeea5f=_0xfeea5f['filter'](_0x54bd04=>null!==_0x54bd04),!_0xfeea5f['length'])return;for(let _0x5d8dbd=0x0;_0x5d8dbd<_0xfeea5f['length'];_0x5d8dbd++){const _0x157d16=_0xfeea5f[_0x5d8dbd];void 0x0!==_0x157d16['fromVersion']&&void 0x0===_0x157d16['toVersion']&&(_0x157d16['toVersion']=this['repository']['getRevision'](_0x157d16['id'])['toVersion']),void 0x0!==_0x157d16['toVersion']&&void 0x0===_0x157d16['fromVersion']&&(_0x157d16['fromVersion']=this['repository']['getRevision'](_0x157d16['id'])['fromVersion']);}const _0x4d05cc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xfeea5f,_0x4d05cc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x205ce9=>{if(_0x205ce9){for(const _0x4b1097 of _0x205ce9)this['setRevisionData']({'id':_0x4b1097['id'],'createdAt':_0x4b1097['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xc919b3=null,from:_0x27dc09=null,to:_0x8d0d04=null}){_0x27dc09=null!==_0x27dc09?_0x27dc09:_0xc919b3['fromVersion'],_0x8d0d04=null!==_0x8d0d04?_0x8d0d04:_0xc919b3['toVersion'];const _0x37cfbd=this['_revisionDataBuilder']['getData'](_0x27dc09,_0x8d0d04),_0xefade9={'diffData':_0x37cfbd['diffData'],'authorsIds':_0x37cfbd['authorsIds'],'fromVersion':_0x27dc09,'toVersion':_0x8d0d04};if(!_0xc919b3||_0x8d0d04!==_0xc919b3['toVersion']){const _0x651d9b=_0x8d0d04-0x1,_0xc81771=this['_source']['history']['getOperation'](_0x651d9b);_0xefade9['createdAt']=_0xc81771&&_0xc81771['createdAt']||new Date();}if(this['_loadedStateData']&&_0x27dc09===this['_loadedStateData']['fromVersion']){for(const _0x5cdcfb of this['_loadedStateData']['authors'])_0xefade9['authorsIds']['includes'](_0x5cdcfb['id'])||_0xefade9['authorsIds']['push'](_0x5cdcfb['id']);}return _0xefade9;}['_bufferUpdate'](_0x29f77e,_0x4843d3,_0x1e6f10){if(this['_bufferedUpdates']['has'](_0x29f77e)){const _0x2df8e7=this['_bufferedUpdates']['get'](_0x29f77e);_0x4843d3=_0x1e6f10?{..._0x2df8e7,..._0x4843d3}:{..._0x4843d3,..._0x2df8e7};}this['_bufferedUpdates']['set'](_0x29f77e,_0x4843d3);}['setRevisionData'](_0x504721){const _0x4771a8=this['repository']['getRevision'](_0x504721['id']);if(_0x504721['createdAt']&&(_0x504721['createdAt']=new Date(_0x504721['createdAt'])),_0x504721['authorsIds']){const _0x5e45e0=this['editor']['plugins']['get']('Users');_0x504721['authors']=_0x504721['authorsIds']['map'](_0x4c7b00=>_0x5e45e0['getUser'](_0x4c7b00));}_0x4771a8['_update'](_0x504721,!0x0);}['_createInitialRevision'](_0x58bedc){const _0x58a7e5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x58a7e5)this['_initialRevisionId']=_0x58a7e5['id'];else{const _0xfe91aa=!this['editor']['model']['document']['roots']['find'](_0x1e83a5=>this['editor']['model']['hasContent'](_0x1e83a5)),_0x4dda6b=this['editor']['plugins']['get']('Users')['me']['id'],_0x14a91c=g(this['editor']['locale'],_0xfe91aa?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x58bedc,'to':_0x58bedc,'id':this['_initialRevisionId'],'name':_0x14a91c,'creatorId':_0x4dda6b});}}['_createCurrentRevision'](_0x7bc779){const _0x3a0dbb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3a0dbb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x7bc779,'to':_0x7bc779,'id':_0x3a0dbb,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x1cc940,_0x1774da){let _0xd36236=this['editor']['config']['get']('initialData'),_0x536b5f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xd36236){_0xd36236={};for(const _0x25d12e of this['editor']['model']['document']['getRootNames']())_0xd36236[_0x25d12e]='';}if('string'==typeof _0xd36236&&(_0xd36236={'main':_0xd36236}),void 0x0===_0x536b5f){_0x536b5f={};for(const _0x3f9c5e of this['editor']['model']['document']['getRootNames']())_0x536b5f[_0x3f9c5e]={};}let _0xf51b=!0x1;const _0x469e2c=Object['keys'](_0xd36236),_0x1bb6c7=Object['keys'](_0x1cc940);for(const _0x3a38ec of _0x469e2c){if(_0xd36236[_0x3a38ec]!==_0x1cc940[_0x3a38ec]&&''!==_0xd36236[_0x3a38ec]['trim']()){_0xf51b=!0x0;break;}if(!_0x44e39c(_0x536b5f[_0x3a38ec],_0x1774da[_0x3a38ec])&&Object['keys'](_0x536b5f[_0x3a38ec])['length']>0x0){_0xf51b=!0x0;break;}}_0xf51b||(_0xf51b=_0x1bb6c7['some'](_0x7598ba=>!this['editor']['model']['document']['getRoot'](_0x7598ba))),_0xf51b&&_0x1bc517('editor-initial-data-replaced-with-revision-data',{'editorData':_0xd36236,'editorRootsAttributes':_0x536b5f,'revisionData':_0x1cc940,'revisionRootsAttributes':_0x1774da}),this['editor']['config']['set']('initialData',_0x1cc940),this['editor']['config']['set']('rootsAttributes',_0x1774da);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x553b04=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x553b04['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x272996){const _0x5031a2=this['repository']['getRevisions']();_0x5031a2['reverse']();let _0x35a39f=0x0;for(;_0x35a39f<_0x5031a2['length'];){const _0x2be81c=_0x5031a2[_0x35a39f];if(_0x2be81c===this['currentRevision']){_0x35a39f++;continue;}if(_0x2be81c['id']===this['_initialRevisionId'])break;const _0x4dd911=_0x272996['toVersion']-_0x2be81c['toVersion']||_0x272996['fromVersion']-_0x2be81c['fromVersion'];if(_0x4dd911>0x0)break;if(_0x4dd911<0x0)_0x35a39f++;else{if(!_0x272996['creator']&&_0x2be81c['creator'])break;if(_0x2be81c['creator']||!_0x272996['creator']){if(_0x272996['createdAt']>_0x2be81c['createdAt'])break;_0x35a39f++;}else _0x35a39f++;}}return _0x35a39f;}['_getFromVersion'](_0x58a25b){const _0x18915d=this['repository']['getRevisions']();_0x18915d['reverse'](),_0x18915d['shift']();const _0x7f172b=_0x18915d['find'](_0x1fa574=>_0x1fa574['toVersion']<=_0x58a25b)['toVersion'];return _0x7f172b<this['_startingVersion']?this['_startingVersion']:_0x7f172b;}['_makeRevision']({name:_0x46f3db,from:_0x1c53dd,to:_0x3aea09,creatorId:_0x4e993f,id:_0x20285a}){const _0x2ed50e=this['buildRevisionData']({'from':_0x1c53dd,'to':_0x3aea09});_0x2ed50e['name']=_0x46f3db,_0x2ed50e['creatorId']=_0x4e993f,_0x2ed50e['id']=_0x20285a;const _0x3afb31=this['addRevisionData'](_0x2ed50e);return this['adapter']&&this['_bufferUpdate'](_0x2ed50e['id'],_0x2ed50e,!0x0),_0x3afb31;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3484da){this['editor']=_0x3484da,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'](_0x13f3fb){this['source']=_0x13f3fb;const _0x4257b5=new Map(),_0x3c27bb=new Map(),_0x16e692=this['editor']['model']['document']['roots']['map'](_0x395e79=>_0x395e79['rootName']);for(const _0x4fa90f of _0x16e692){const _0x5d12c8=this['editor']['model']['document']['getRoot'](_0x4fa90f),_0x2fca2f=N(_0x5d12c8);_0x4257b5['set'](_0x4fa90f,_0x2fca2f),_0x3c27bb['set'](_0x4fa90f,Object['fromEntries'](_0x5d12c8['getAttributes']()));}const _0x362dff=Array['from'](this['editor']['model']['markers'])['map'](_0x443571=>[_0x443571['name'],_0x443571['getRange']()]),_0x5bd785=this['source']['version'];this['_saveMetaData'](_0x5bd785,_0x4257b5,_0x362dff,_0x3c27bb),this['_startingRevisionId']=this['_revisionId'];const _0x4b7eeb=new Map(),_0x155737=new Map();for(const _0x246771 of _0x16e692){const _0xda52f0=P(_0x246771);_0x4b7eeb['set'](_0x246771,_0xda52f0),_0x155737['set'](_0x246771,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b7eeb,[],_0x155737);}['getData'](_0x29379d,_0x78f4b8){if(this['_lastFrom']===_0x29379d&&this['_lastTo']<=_0x78f4b8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x78f4b8,!0x0);else{if(!this['_savedMetaData']['has'](_0x29379d)){const _0x5476a4=this['_getPreviousFrom'](_0x29379d);this['_calculateMetaData'](_0x5476a4,_0x29379d,!0x1);}this['_calculateMetaData'](_0x29379d,_0x78f4b8,!0x0);}return this['_lastFrom']=_0x29379d,this['_lastTo']=_0x78f4b8,this['_getState']();}['loadState'](_0x1ad685){const _0xe2bc47=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1ad685['fromVersion'],this['_lastTo']=_0x1ad685['toVersion'];for(const _0x2b5a5e in _0x1ad685['diffData']){const _0xb0d6eb=_0x1ad685['diffData'][_0x2b5a5e]['attachChange'],_0x5973b4=_0x7e9748(_0x1ad685['diffData'][_0x2b5a5e]['attributesBefore'])||{},_0x177b44=_0xe2bc47['_makeModelFromViewString'](_0x1ad685['diffData'][_0x2b5a5e]['deletions']);_0x177b44['rootName']=_0x2b5a5e,_0x177b44['_isAttached']=!_0xb0d6eb||!_0xb0d6eb['isAttached'],_0x177b44['isAttached']=()=>_0x177b44['_isAttached'],this['_baseRoots']['set'](_0x2b5a5e,_0x177b44),this['_baseRootsAttributes']['set'](_0x2b5a5e,_0x5973b4),_0xb0d6eb&&this['_touchedRoots']['set'](_0x2b5a5e,_0xb0d6eb);const _0x3a3609=this['_makeIdsRoot'](_0x177b44);this['_baseIdsRoots']['set'](_0x2b5a5e,_0x3a3609);for(const [_0x411faf,_0x2c8a96]of _0x177b44['markers']){if(!_0x411faf['startsWith']('revision:'))continue;const _0x3b48b5=_0x411faf['split'](':')[0x2];for(const _0x1a425a of _0x2c8a96['getWalker']({'singleCharacters':!0x0})){const _0x4b8de8=this['_getVidAttributeName'](_0x1a425a),_0x191a5f='elementEnd'==_0x1a425a['type']?_0x1a425a['previousPosition']['path']['slice'](0x0,-0x1):_0x1a425a['previousPosition']['path'],_0x11ede6=_0x3a3609['getNodeByPath'](_0x191a5f)['getAttribute'](_0x4b8de8);this['_touched']['set'](_0x11ede6,{'userId':_0x3b48b5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x59d881=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x31a3c0=>!this['_touched']['has'](_0x31a3c0));let _0x4d943e=0x0;const _0x53433b=new Map();for(const _0x3d2787 in _0x1ad685['diffData']){const _0x2d6eaa=_0x1ad685['diffData'][_0x3d2787]['attachChange'],_0x209b78=_0x7e9748(_0x1ad685['diffData'][_0x3d2787]['attributesAfter'])||{},_0x454c43=_0xe2bc47['_makeModelFromViewString'](_0x1ad685['diffData'][_0x3d2787]['insertions']);_0x454c43['rootName']=_0x3d2787,_0x454c43['_isAttached']=!_0x2d6eaa||_0x2d6eaa['isAttached'],_0x454c43['isAttached']=()=>_0x454c43['_isAttached'],this['_diffRoots']['set'](_0x3d2787,_0x454c43),this['_diffRootsAttributes']['set'](_0x3d2787,_0x209b78);const _0x1243b4=this['_makeIdsRoot'](_0x454c43,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3d2787,_0x1243b4),_0x53433b['set'](_0x3d2787,_0x454c43['isAttached']()?_0x209b78:{});for(const [_0x3ddec0,_0x527dba]of _0x454c43['markers']){if(!_0x3ddec0['startsWith']('revision:'))continue;const _0xe3d5ae=_0x3ddec0['split'](':')[0x2];for(const _0x55c8a7 of _0x527dba['getWalker']({'singleCharacters':!0x0})){const _0x3f8b6b=this['_getVidAttributeName'](_0x55c8a7),_0x586f8f=this['_revisionId']++,_0x349670='elementEnd'==_0x55c8a7['type']?_0x55c8a7['previousPosition']['path']['slice'](0x0,-0x1):_0x55c8a7['previousPosition']['path'];_0x1243b4['getNodeByPath'](_0x349670)['_setAttribute'](_0x3f8b6b,_0x586f8f),this['_touched']['set'](_0x586f8f,{'userId':_0xe3d5ae});}}for(const _0x2b1a09 of this['editor']['model']['createRangeIn'](_0x454c43)['getWalker']({'singleCharacters':!0x0})){const _0x57cbff=this['_getVidAttributeName'](_0x2b1a09),_0x1f2c1e='elementEnd'==_0x2b1a09['type']?_0x2b1a09['previousPosition']['path']['slice'](0x0,-0x1):_0x2b1a09['previousPosition']['path'],_0x1da778=_0x1243b4['getNodeByPath'](_0x1f2c1e);_0x1da778['getAttribute'](_0x57cbff)>0x0||_0x1da778['_setAttribute'](_0x57cbff,_0x59d881[_0x4d943e++]);}for(const [_0x585042,_0x414a5d]of _0x454c43['markers'])_0x585042['startsWith']('revision:')||this['_markers']['set'](_0x585042,_0x414a5d);}const _0x298293=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x298293),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x298293,0x1));const _0x37ceb6=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x37ceb6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x37ceb6,0x1));const _0x273efe=Array['from'](this['_diffRoots'])['map'](([_0x51f405,_0x30ac7c])=>[_0x51f405,N(_0x30ac7c)]);this['_saveMetaData'](this['_lastTo'],_0x273efe,this['_markers'],_0x53433b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x52733c,_0x3f97e5,_0x206023,_0x3c2c0c){const _0x49c35c=new Map(_0x3f97e5),_0x55e8bb=new Map(_0x7e9748(_0x3c2c0c)),_0x282d45=new Map();for(const [_0x1b937e,_0x581bb9]of _0x206023)_0x282d45['set'](_0x1b937e,{'start':_0x581bb9['start']['clone'](),'end':_0x581bb9['end']['clone'](),'rootName':_0x581bb9['root']['rootName']});this['_savedMetaData']['set'](_0x52733c,{'roots':_0x49c35c,'markers':_0x282d45,'rootsAttributes':_0x55e8bb});}['_removeMetaData'](_0x59f191){this['_savedMetaData']['delete'](_0x59f191);}['_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'](_0xd708ed,_0x19d387=null){let _0x4af5bc=null;_0xd708ed['is']('documentFragment')||(_0x4af5bc=new ut(_0xd708ed['name'],{'vid_start':null===_0x19d387?this['_revisionId']++:_0x19d387++}));const _0x1d55f1=[];for(const _0x365624 of _0xd708ed['getChildren']())if(_0x365624['is']('element')){_0x1d55f1['push'](this['_makeIdsRoot'](_0x365624,_0x19d387));const _0x4d37c3=_0x1d55f1[_0x1d55f1['length']-0x1];null!==_0x19d387&&(_0x19d387=_0x4d37c3['is']('element','$text')?_0x4d37c3['getAttribute']('vid')+0x1:_0x4d37c3['getAttribute']('vid_end')+0x1);}else{for(let _0x76c3ed=0x0;_0x76c3ed<_0x365624['offsetSize'];_0x76c3ed++)_0x1d55f1['push'](new ut('$text',{'vid':null===_0x19d387?this['_revisionId']++:_0x19d387++}));}if(_0xd708ed['is']('documentFragment')){const _0x120e74=P(_0xd708ed['rootName']);return _0x120e74['_insertChild'](0x0,_0x1d55f1),_0x120e74;}return _0x4af5bc['_setAttribute']('vid_end',null===_0x19d387?this['_revisionId']++:_0x19d387++),_0x4af5bc['_insertChild'](0x0,_0x1d55f1),_0x4af5bc;}['_calculateMetaData'](_0x6806c9,_0x4995b8,_0x5c0f97){this['_reset']();const {roots:_0x368b67,markers:_0x21577d,rootsAttributes:_0x22e38d}=this['_savedMetaData']['get'](_0x6806c9);this['_baseRoots']=new Map(_0x368b67),this['_baseRootsAttributes']=new Map(_0x7e9748(_0x22e38d));for(const [_0x3f84b0,_0x1178aa]of this['_baseRoots'])if('$graveyard'!==_0x3f84b0&&(this['_diffRoots']['set'](_0x3f84b0,N(_0x1178aa)),this['_diffRootsAttributes']=new Map(_0x7e9748(_0x22e38d)),_0x5c0f97)){const _0x43e2ae=this['_revisionId'];this['_idsRoots']['set'](_0x3f84b0,this['_makeIdsRoot'](_0x1178aa)),this['_baseIdsRoots']['set'](_0x3f84b0,this['_makeIdsRoot'](_0x1178aa,_0x43e2ae));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5c0f97&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2b3513,_0x207830]of _0x21577d){const _0x43c8f4=this['_baseRoots']['get'](_0x207830['rootName']),_0x435109=this['_diffRoots']['get'](_0x207830['rootName']),_0x1c0dab=new ft(this['_fixPosition'](_0x207830['start'],_0x43c8f4),this['_fixPosition'](_0x207830['end'],_0x43c8f4)),_0x5c3eab=this['_fixRange'](_0x1c0dab,_0x435109);_0x43c8f4['markers']['set'](_0x2b3513,_0x1c0dab),this['_markers']['set'](_0x2b3513,_0x5c3eab);}this['_applyOperations'](_0x6806c9,_0x4995b8,_0x5c0f97);}['_applyOperations'](_0x4774f3,_0x309426,_0x791bf5){for(const _0x28d08a of this['source']['getOperations'](_0x4774f3,_0x309426))this['_handleOperation'](_0x28d08a,_0x791bf5);for(const _0xb4303d of this['_diffRoots']['values']())_0xb4303d['markers']['clear']();for(const [_0x5e411d,_0x21603a]of this['_markers']){this['_diffRoots']['get'](_0x21603a['root']['rootName'])['markers']['set'](_0x5e411d,_0x21603a['clone']());}const _0x369630=new Map(),_0x5f8da1=new Map();for(const [_0x7de0e1,_0x1030e4]of this['_diffRoots'])_0x369630['set'](_0x7de0e1,N(_0x1030e4)),_0x5f8da1['set'](_0x7de0e1,this['_diffRootsAttributes']['get'](_0x7de0e1));this['_saveMetaData'](_0x309426,_0x369630,this['_markers'],_0x5f8da1);}['_getPreviousFrom'](_0x2dcfd1){const _0x410375=Array['from'](this['_savedMetaData']['keys']());_0x410375['sort']((_0x59cc0f,_0x28090b)=>_0x59cc0f-_0x28090b),_0x410375['reverse']();for(const _0x5b4e8c of _0x410375)if(_0x5b4e8c<_0x2dcfd1)return _0x5b4e8c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1c2b0a,_0x2388b6){const _0x1d9f6a=Array['from'](_0x2388b6['markers'])['map'](([_0x5b5a21,_0x34e9b3])=>[_0x5b5a21,this['_fixRange'](_0x34e9b3,_0x1c2b0a)]);_0x1c2b0a['markers']=new Map(_0x1d9f6a);}['_transformMarkers'](_0x5b1e3a){for(const _0x375a6b of this['_markers']['values']()){const _0x400dbb=_0x375a6b['getTransformedByOperation'](_0x5b1e3a),_0x1adb43=ft['_createFromRanges'](_0x400dbb);_0x375a6b['start']=_0x1adb43['start'],_0x375a6b['end']=_0x1adb43['end'];}}['_handleOperation'](_0x3f57a3,_0x53286a){if('addRoot'!=_0x3f57a3['type']&&'detachRoot'!=_0x3f57a3['type']){if('insert'==_0x3f57a3['type']){const _0x412556=_0x3f57a3['position']['root']['rootName'];this['_diffRoots']['has'](_0x412556)||(this['_diffRoots']['set'](_0x412556,P(_0x412556,!0x0)),this['_diffRootsAttributes']['set'](_0x412556,{}),_0x53286a&&this['_idsRoots']['set'](_0x412556,P(_0x412556,!0x0)));}else{if('addRootAttribute'==_0x3f57a3['type']||'removeRootAttribute'==_0x3f57a3['type']||'changeRootAttribute'==_0x3f57a3['type'])return void this['_handleRootAttributeOperation'](_0x3f57a3);'marker'==_0x3f57a3['type']&&this['_handleMarkerOperation'](_0x3f57a3);}if('marker'!==_0x3f57a3['type']){const _0x33432f=this['_cloneOperation'](_0x3f57a3,this['_diffRoots']);_0x33432f['_execute'](),this['_transformMarkers'](_0x33432f);}if(_0x53286a)switch(_0x3f57a3['type']){case'insert':this['_handleInsertOperation'](_0x3f57a3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f57a3);break;case'merge':this['_handleMergeOperation'](_0x3f57a3);break;case'split':this['_handleSplitOperation'](_0x3f57a3);}}else this['_handleRootOperation'](_0x3f57a3,_0x53286a);}['_cloneOperation'](_0x107166,_0x4f3fda){const _0x9167d3=_0x107166['clone']();return _0x9167d3['_authorId']=_0x107166['_authorId'],this['_fixOperation'](_0x9167d3,_0x4f3fda),_0x9167d3;}['_getBaseVids'](_0x3853e0){return _0x3853e0['map'](_0x2b3552=>{const _0x7a6eb5=this['_getVidAttributeName'](_0x2b3552);return Number(_0x2b3552['item']['getAttribute'](_0x7a6eb5));});}['_generateTape'](_0x2d1dbc,_0x45f6e0){if(_0x2d1dbc['is']('element','$text'))_0x45f6e0['push']({'item':_0x2d1dbc,'type':'text'});else{_0x2d1dbc['is']('element')&&_0x45f6e0['push']({'item':_0x2d1dbc,'type':'elementStart'});for(const _0x28deed of _0x2d1dbc['getChildren']())this['_generateTape'](_0x28deed,_0x45f6e0);_0x2d1dbc['is']('element')&&_0x45f6e0['push']({'item':_0x2d1dbc,'type':'elementEnd'});}return _0x45f6e0;}['_getState'](){const _0x3d6c35=new Map(this['_touched']),_0x393e99=new Map(_0x3d6c35),_0x4c6c2c=new Map(),_0x56ddcc={'insertions':{},'deletions':{}},_0x545298={'insertions':{},'deletions':{}},_0xa19295=new Map(),_0x58c972=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x58c972['delete']('$graveyard');for(const _0x374382 of _0x58c972){const _0x1a5dd7=this['_diffRoots']['get'](_0x374382)||P(_0x374382,!0x1),_0x191165=this['_baseRoots']['get'](_0x374382)||P(_0x374382,!0x1);_0x1a5dd7['isAttached']()||_0x191165['isAttached']()?(_0x56ddcc['insertions'][_0x374382]=N(_0x1a5dd7),_0x56ddcc['deletions'][_0x374382]=N(_0x191165),this['_copyMarkers'](_0x56ddcc['deletions'][_0x374382],_0x191165),this['_copyMarkers'](_0x56ddcc['insertions'][_0x374382],_0x1a5dd7),_0x545298['insertions'][_0x374382]=this['_generateTape'](this['_idsRoots']['get'](_0x374382),[]),_0x545298['deletions'][_0x374382]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x374382)||P(_0x374382,!0x1),[])):_0x58c972['delete'](_0x374382);}for(const _0x33cfe1 of _0x58c972){const _0x53508f=_0x545298['insertions'][_0x33cfe1];for(const _0x1e6ba8 of _0x53508f){const _0x5188ec=this['_getVidAttributeName'](_0x1e6ba8),_0x2aa2d7=_0x1e6ba8['item']['getAttribute'](_0x5188ec);_0x393e99['delete'](_0x2aa2d7),_0x2aa2d7>=this['_startingRevisionId']&&_0x4c6c2c['set'](_0x2aa2d7,_0x3d6c35['get'](_0x2aa2d7));}}for(const _0x624444 of _0x58c972){const _0x489d36=_0x545298['insertions'][_0x624444],_0x59229a=this['_getBaseVids'](_0x545298['deletions'][_0x624444]);let _0x435ae7=0x0;for(const _0x125e9f of _0x489d36){const _0x5626a7=this['_getVidAttributeName'](_0x125e9f),_0x53a72e=_0x125e9f['item']['getAttribute'](_0x5626a7);if(!_0x4c6c2c['has'](_0x53a72e)&&!_0xa19295['has'](_0x53a72e)){if(_0x393e99['has'](_0x53a72e))_0x435ae7++;else{if(_0x53a72e!=_0x59229a[_0x435ae7]){const _0x5a7fa1=_0x3d6c35['get'](_0x53a72e)||_0x3d6c35['get'](_0x59229a[_0x435ae7]);for(;_0x53a72e!=_0x59229a[_0x435ae7];)_0x393e99['has'](_0x59229a[_0x435ae7])||(_0xa19295['set'](_0x59229a[_0x435ae7],_0x5a7fa1),_0x3d6c35['set'](_0x59229a[_0x435ae7],_0x5a7fa1)),_0x435ae7++;}_0x435ae7++;}}}}for(const _0x14ace5 of _0x58c972){const _0x53a0d7=_0x545298['insertions'][_0x14ace5];for(const _0x55964f of _0x53a0d7){const _0x13709a=this['_getVidAttributeName'](_0x55964f),_0x284d48=_0x55964f['item']['getAttribute'](_0x13709a);if(_0xa19295['has'](_0x284d48)){const _0x4dcf27=_0xa19295['get'](_0x284d48);_0x393e99['has'](_0x284d48)||_0x393e99['set'](_0x284d48,{..._0x4dcf27}),_0x4c6c2c['set'](_0x284d48,{..._0x4dcf27});}}}for(const _0x1cb7c6 of _0x393e99['keys']())_0x1cb7c6>=this['_startingRevisionId']&&_0x393e99['delete'](_0x1cb7c6);const _0x5c6d8b=new Map();for(const _0x28796b of _0x58c972){let _0x506c22=_0x545298['insertions'][_0x28796b];for(const _0x58010f of _0x506c22)if(_0x58010f['item']['is']('element','tableCell')){const _0x5e1884=this['_getVidAttributeName'](_0x58010f),_0x31ed9e=_0x58010f['item']['getAttribute'](_0x5e1884);if(_0x4c6c2c['has'](_0x31ed9e)){const _0x275636=_0x58010f['item']['parent']['parent']['getAttribute']('vid_start'),_0x2fdb91=_0x5c6d8b['get'](_0x275636)||new Set();_0x2fdb91['add'](_0x4c6c2c['get'](_0x31ed9e)['userId']),_0x5c6d8b['set'](_0x275636,_0x2fdb91);}}_0x506c22=_0x545298['deletions'][_0x28796b];for(const _0x3afad6 of _0x506c22)if(_0x3afad6['item']['is']('element','tableCell')){const _0x2d56c9=this['_getVidAttributeName'](_0x3afad6),_0x3f4624=_0x3afad6['item']['getAttribute'](_0x2d56c9);if(_0x393e99['has'](_0x3f4624)){const _0x4e742a=_0x3afad6['item']['parent']['parent']['getAttribute']('vid_start'),_0x5220c4=_0x5c6d8b['get'](_0x4e742a)||new Set();_0x5220c4['add'](_0x393e99['get'](_0x3f4624)['userId']),_0x5c6d8b['set'](_0x4e742a,_0x5220c4);}}for(const _0x11f653 of _0x5c6d8b['keys']())(_0x4c6c2c['has'](_0x11f653)||_0x393e99['has'](_0x11f653))&&_0x5c6d8b['delete'](_0x11f653);}for(const _0x188f90 of _0x58c972){const _0x3731e4=_0x545298['insertions'][_0x188f90];let _0x3b9f2b=null,_0x11cc04=null;for(const _0x47343b of _0x3731e4){const _0x4ac56d=this['_getVidAttributeName'](_0x47343b),_0x254dcc=_0x47343b['item']['getAttribute'](_0x4ac56d),_0x1a1208=_0x5c6d8b['get'](_0x254dcc);_0x1a1208&&'elementStart'==_0x47343b['type']&&(_0x3b9f2b=Array['from'](_0x1a1208)[0x0],_0x11cc04=_0x47343b['item']['getAttribute']('vid_end')),_0x3b9f2b&&(_0x393e99['set'](_0x254dcc,{'userId':_0x3b9f2b}),_0x4c6c2c['set'](_0x254dcc,{'userId':_0x3b9f2b})),_0x254dcc==_0x11cc04&&(_0x3b9f2b=null,_0x11cc04=null);}}const _0x591b83={},_0x241122=new Set();for(const _0x4e5631 of _0x58c972){const _0x552219=_0x56ddcc['deletions'][_0x4e5631],_0x249390=_0x56ddcc['insertions'][_0x4e5631];for(const {userId:_0x3f12ad}of this['_touchedMarkers']['values']())null!==_0x3f12ad&&_0x241122['add'](_0x3f12ad);for(const {userId:_0x43737f}of this['_touchedRoots']['values']())null!==_0x43737f&&_0x241122['add'](_0x43737f);this['_markChanges'](_0x249390,_0x545298['insertions'][_0x4e5631],_0x4c6c2c,'insertion',_0x241122),this['_markChanges'](_0x552219,_0x545298['deletions'][_0x4e5631],_0x393e99,'deletion',_0x241122),_0x591b83[_0x4e5631]={'insertions':this['_prepareViewToSave'](_0x249390),'deletions':this['_prepareViewToSave'](_0x552219),'attachChange':this['_touchedRoots']['get'](_0x4e5631)||null,'attributesBefore':_0x7e9748(this['_baseRootsAttributes']['get'](_0x4e5631))||{},'attributesAfter':_0x7e9748(this['_diffRootsAttributes']['get'](_0x4e5631))};}return{'diffData':_0x591b83,'authorsIds':Array['from'](_0x241122)};}['_processRootBeforeSave'](_0x10e25b){for(const [,_0x152998]of _0x10e25b['markers']){const _0x50b7f4=_0x152998['start']['getAncestors']()['filter'](_0x113dc3=>'tableCell'==_0x113dc3['name']);for(const _0x5a648d of _0x50b7f4)0x1==_0x5a648d['childCount']&&_0x5a648d['getChild'](0x0)['is']('element','paragraph')&&_0x5a648d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4f95ea){this['_processRootBeforeSave'](_0x4f95ea);const _0x303e6a=this['editor']['data']['toView'](_0x4f95ea,{}),_0x273487=Array['from'](_0x303e6a['getChildren']())['map'](_0x5866c0=>this['_getViewJson'](_0x5866c0));return JSON['stringify'](_0x273487);}['_getViewJson'](_0xf4e103){if(_0xf4e103['is']('$text'))return _0xf4e103['data'];{const _0x2e6ecd=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x39c38b=_0xf4e103,_0x4a1906=this['editor']['data']['htmlProcessor']['domConverter'],_0x17f15f={'type':_0x2e6ecd['_getTypeCharForViewElement'](_0x39c38b),'name':_0x39c38b['name'],'attributes':Array['from'](_0x39c38b['getAttributes']()),'children':Array['from'](_0x39c38b['getChildren']())['map'](_0x4f771d=>this['_getViewJson'](_0x4f771d))};if(_0xf4e103['is']('uiElement')&&'$comment'!=_0xf4e103['name']){const _0x477caa=_0xf4e103['render'](_0x4a1906['domDocument'],_0x4a1906);_0x17f15f['children']['push'](_0x477caa['outerHTML']);}else{if(_0xf4e103['is']('rawElement')){const _0x2c0ec6=_0x4a1906['domDocument']['createElement'](_0x39c38b['name']);_0xf4e103['render'](_0x2c0ec6,_0x4a1906),_0x17f15f['children']['push'](_0x2c0ec6['innerHTML']);}}const _0xa684c3=Array['from'](_0x39c38b['getCustomProperties']());_0xa684c3['length']>0x0&&(_0x17f15f['customProperties']=_0xa684c3);const _0x2e105c=_0x39c38b['getFillerOffset']();return null!==_0x2e105c&&(_0x17f15f['fillerOffset']=_0x2e105c),_0x17f15f;}}['_markChanges'](_0x1d534b,_0x23beb2,_0x130c69,_0x4a2265,_0x5cc4a9){let _0x459721=null,_0x60795c=null,_0x4f05ad=0x0;const _0x1e784e=this['editor']['model'];for(let _0x5ec434=0x0;_0x5ec434<_0x23beb2['length'];_0x5ec434++){const _0x1ac3d3=this['_getVidAttributeName'](_0x23beb2[_0x5ec434]),_0x3ff4f0=_0x23beb2[_0x5ec434]['item']['getAttribute'](_0x1ac3d3),_0x1c178e=_0x130c69['get'](_0x3ff4f0),_0x418351=_0x5ec434==_0x23beb2['length']-0x1;(!_0x459721&&_0x1c178e&&(_0x459721=_0x1c178e,_0x60795c=_0x23beb2[_0x5ec434]),_0x459721&&(!_0x1c178e||_0x1c178e['userId']!=_0x459721['userId']))&&(_0x3e5c88(_0x1c178e,F(_0x60795c,_0x1d534b,_0x1e784e),F(_0x23beb2[_0x5ec434],_0x1d534b,_0x1e784e)),_0x459721=_0x1c178e||null,_0x60795c=_0x1c178e?_0x23beb2[_0x5ec434]:null),_0x459721&&_0x418351&&_0x3e5c88(_0x1c178e,F(_0x60795c,_0x1d534b,_0x1e784e),B(_0x23beb2[_0x5ec434],_0x1d534b,_0x1e784e));}function _0x3e5c88(_0x58d420,_0x5b1dc5,_0x129ae5){const _0x3e6213=_0x459721['userId'],_0x3b148d='revision:'+_0x4a2265+':'+_0x3e6213+':'+_0x4f05ad++,_0xedba0=_0x1e784e['createRange'](_0x5b1dc5,_0x129ae5);_0x1d534b['markers']['set'](_0x3b148d,_0xedba0),null!==_0x3e6213&&_0x5cc4a9['add'](_0x3e6213);}}['_getVidAttributeName'](_0x1d7929){switch(_0x1d7929['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4a98dd,_0x292c4c){_0x4a98dd['baseVersion']=null;for(const _0x2f96f3 in _0x4a98dd){const _0x58ae37=_0x4a98dd[_0x2f96f3];if(_0x58ae37 instanceof vt){const _0x13c399=_0x292c4c['get'](_0x58ae37['root']['rootName']);_0x4a98dd[_0x2f96f3]=this['_fixPosition'](_0x58ae37,_0x13c399);}if(_0x58ae37 instanceof ft){const _0x40d178=_0x292c4c['get'](_0x58ae37['root']['rootName']);_0x4a98dd[_0x2f96f3]=this['_fixRange'](_0x58ae37,_0x40d178);}'root'===_0x2f96f3&&(_0x4a98dd['root']=_0x292c4c['get'](_0x4a98dd['root']['rootName']));}}['_fixRange'](_0x1c7d51,_0x5a12ed){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1c7d51['start'],_0x5a12ed),this['_fixPosition'](_0x1c7d51['end'],_0x5a12ed));}['_fixPosition'](_0x1f16ca,_0x207b45){return this['editor']['model']['createPositionFromPath'](_0x207b45,_0x1f16ca['path'],_0x1f16ca['stickiness']);}['_handleInsertOperation'](_0x575e48){const _0x2aaa52=this['_idsRoots']['get'](_0x575e48['position']['root']['rootName']),_0x46bab8=this['_fixPosition'](_0x575e48['position'],_0x2aaa52),_0xbe595f=null===_0x575e48['_authorId']?null:_0x575e48['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x283c15=_0x46bab8['parent'],_0x20f15d=this['_revisionId'],_0x2d05ec=[];for(const _0xb4f3cb of _0x575e48['nodes'])if(_0xb4f3cb['is']('element'))_0x2d05ec['push'](this['_makeIdsRoot'](_0xb4f3cb));else{for(let _0x19d53f=0x0;_0x19d53f<_0xb4f3cb['offsetSize'];_0x19d53f++)_0x2d05ec['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4e9208=this['_revisionId'];for(let _0x58b10e=_0x20f15d;_0x58b10e<_0x4e9208;_0x58b10e++)this['_touched']['set'](_0x58b10e,{'userId':_0xbe595f});_0x283c15['_insertChild'](_0x46bab8['offset'],_0x2d05ec);}['_handleMoveOperation'](_0x21adef){(_0x21adef=this['_cloneOperation'](_0x21adef,this['_idsRoots']))['_execute']();const _0x531d9f=null===_0x21adef['_authorId']?null:_0x21adef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x508f31=_0x21adef['getMovedRangeStart'](),_0x38cc8b=_0x508f31['parent'],_0x21e464=_0x508f31['offset'];!function _0xb32fb1(_0x22cfd0,_0x584054,_0x20ab95,_0x528018){for(let _0x362aba=_0x20ab95;_0x362aba<_0x528018;_0x362aba++){const _0x24a04f=_0x584054['getChild'](_0x362aba);_0x24a04f['is']('element','$text')?_0x22cfd0['set'](_0x24a04f['getAttribute']('vid'),{'userId':_0x531d9f}):(_0x22cfd0['set'](_0x24a04f['getAttribute']('vid_start'),{'userId':_0x531d9f}),_0xb32fb1(_0x22cfd0,_0x24a04f,0x0,_0x24a04f['childCount']),_0x22cfd0['set'](_0x24a04f['getAttribute']('vid_end'),{'userId':_0x531d9f}));}}(this['_touched'],_0x38cc8b,_0x21e464,_0x21e464+_0x21adef['howMany']);}['_handleMergeOperation'](_0x4539a3){const _0x46fc6f=null===(_0x4539a3=this['_cloneOperation'](_0x4539a3,this['_idsRoots']))['_authorId']?null:_0x4539a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23ce4f=_0x4539a3['targetPosition']['parent'],_0x141e0e=_0x4539a3['sourcePosition']['parent'],_0x50652d=_0x23ce4f['getAttribute']('vid_end'),_0x17bef7=_0x141e0e['getAttribute']('vid_start');_0x23ce4f['_setAttribute']('vid_end',_0x141e0e['getAttribute']('vid_end')),_0x141e0e['_setAttribute']('vid_end',_0x50652d),this['_touched']['set'](_0x17bef7,{'userId':_0x46fc6f}),this['_touched']['set'](_0x50652d,{'userId':_0x46fc6f}),_0x4539a3['_execute']();}['_handleSplitOperation'](_0x169d46){const _0x448214=null===(_0x169d46=this['_cloneOperation'](_0x169d46,this['_idsRoots']))['_authorId']?null:_0x169d46['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4155af=_0x169d46['graveyardPosition'],_0x245f1f=_0x169d46['splitPosition']['parent'];_0x169d46['_execute']();const _0x4644b9=_0x245f1f['getAttribute']('vid_end'),_0x358e40=_0x169d46['insertionPosition']['nodeAfter'];if(_0x4155af){const _0xdae389=_0x358e40['getAttribute']('vid_end'),_0x18ca6a=_0x245f1f['getAttribute']('vid_end');_0x245f1f['_setAttribute']('vid_end',_0xdae389),_0x358e40['_setAttribute']('vid_end',_0x18ca6a),this['_touched']['set'](_0x245f1f['getAttribute']('vid_end'),{'userId':_0x448214}),this['_touched']['set'](_0x358e40['getAttribute']('vid_start'),{'userId':_0x448214});}else{const _0x1a95db=this['_revisionId']++,_0x5254a3=this['_revisionId']++;_0x245f1f['_setAttribute']('vid_end',_0x1a95db),_0x358e40['_setAttribute']('vid_start',_0x5254a3),_0x358e40['_setAttribute']('vid_end',_0x4644b9),this['_touched']['set'](_0x1a95db,{'userId':_0x448214}),this['_touched']['set'](_0x5254a3,{'userId':_0x448214});}}['_handleMarkerOperation'](_0x170af5){if(!_0x170af5['affectsData'])return;const _0x24ea06=(_0x170af5=this['_cloneOperation'](_0x170af5,this['_diffRoots']))['oldRange']?_0x170af5['oldRange']['root']:null,_0x4a6ee5=_0x170af5['newRange']?_0x170af5['newRange']['root']:null;_0x24ea06&&this['_markers']['delete'](_0x170af5['name']),_0x4a6ee5&&this['_markers']['set'](_0x170af5['name'],_0x170af5['newRange']['clone']());const _0x2cbaab=null===_0x170af5['_authorId']?null:_0x170af5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ae603=_0x170af5['name'];if(!this['_touchedMarkers']['has'](_0x4ae603))return void this['_touchedMarkers']['set'](_0x4ae603,{'range':_0x170af5['oldRange'],'userId':_0x2cbaab});const _0x1e6dc7=this['_touchedMarkers']['get'](_0x4ae603),_0x5df561=_0x1e6dc7['range'],_0x47b730=_0x170af5['newRange'];null==_0x5df561&&null==_0x47b730||_0x5df561&&_0x47b730&&_0x5df561['isEqual'](_0x47b730)?this['_touchedMarkers']['delete'](_0x170af5['name']):_0x1e6dc7['userId']=_0x2cbaab;}['_handleRootOperation'](_0x407341,_0x3c3b0f){this['_diffRoots']['has'](_0x407341['rootName'])?this['_diffRoots']['get'](_0x407341['rootName'])['_isAttached']=_0x407341['isAdd']:(this['_diffRoots']['set'](_0x407341['rootName'],P(_0x407341['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x407341['rootName'],{}),_0x3c3b0f&&this['_idsRoots']['set'](_0x407341['rootName'],P(_0x407341['rootName'],!0x0)));const _0x5b9a65=null===_0x407341['_authorId']?null:_0x407341['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49cbd9=this['_touchedRoots']['get'](_0x407341['rootName']);_0x49cbd9&&_0x49cbd9['userId']===_0x5b9a65?this['_touchedRoots']['delete'](_0x407341['rootName']):this['_touchedRoots']['set'](_0x407341['rootName'],{'userId':_0x5b9a65,'isAttached':_0x407341['isAdd']});}['_handleRootAttributeOperation'](_0x30a66d){const _0x2bd200=this['_diffRootsAttributes']['get'](_0x30a66d['root']['rootName']);null===_0x30a66d['newValue']?delete _0x2bd200[_0x30a66d['key']]:_0x2bd200[_0x30a66d['key']]=_0x30a66d['newValue'];}}function N(_0x27905f){const _0x41c055=P(_0x27905f['rootName'],_0x27905f['isAttached']());for(const _0x338aa8 of _0x27905f['getChildren']()){const _0xa6dbc=_0x338aa8['_clone'](!0x0);_0x41c055['_appendChild'](_0xa6dbc);}return _0x41c055;}function P(_0x5c7e4b,_0x273730=!0x0){const _0x460b7e=new gt();return _0x460b7e['rootName']=_0x5c7e4b,_0x460b7e['_isAttached']=_0x273730,_0x460b7e['isAttached']=()=>_0x460b7e['_isAttached'],_0x460b7e;}function F(_0x180988,_0x20b821,_0x23993a){const _0x320320='elementEnd'==_0x180988['type']?_0x23993a['createPositionAt'](_0x180988['item'],'end'):_0x23993a['createPositionBefore'](_0x180988['item']);return _0x23993a['createPositionFromPath'](_0x20b821,_0x320320['path'],_0x320320['stickiness']);}function B(_0x313a2e,_0xfb0799,_0x356a62){const _0x543c4c='elementStart'==_0x313a2e['type']?_0x356a62['createPositionAt'](_0x313a2e['item'],0x0):_0x356a62['createPositionAfter'](_0x313a2e['item']);return _0x356a62['createPositionFromPath'](_0xfb0799,_0x543c4c['path'],_0x543c4c['stickiness']);}class os extends _0x4ce89f{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x453109,_0x47e375){super(_0x453109),this['focusTracker']=new _0x2e2350(),this['keystrokes']=new _0x3fdd6e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x47e375),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'](),_0x4b75d0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14239b=_0xaf5873=>_0xaf5873['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14239b),this['keystrokes']['set']('arrowleft',_0x14239b),this['keystrokes']['set']('arrowup',_0x14239b),this['keystrokes']['set']('arrowdown',_0x14239b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2e8c17){this['revisionNameInputView']['fieldView']['element']['value']=_0x2e8c17['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1339b8){const _0x508472=new nt(this['locale'],ti),_0x5241a7=_0x508472['fieldView'];_0x5241a7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x28953d=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1339b8&&(_0x28953d+='\x20('+g(this['locale'],'optional')+')'),(_0x508472['label']=_0x28953d,_0x5241a7['on']('input',()=>{this['revisionNameInputValue']=_0x5241a7['element']['value']['trim']();}),_0x508472);}}class f extends _0x4de1c4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x506278=this['editor'],_0x1d465c=_0x506278['plugins']['get']('RevisionTracker');_0x506278['ui']['componentFactory']['add']('revisionHistory',_0x4b8cda=>{const _0x19f4e8=_0x4bf195(_0x4b8cda),_0x5646ff=_0x19f4e8['panelView']['children'],_0x164003=new _0x3d093c(_0x4b8cda),_0x53aa59=new te(_0x4b8cda),_0x171666=new _0x55e2cf(_0x4b8cda),_0x28ce13=new te(_0x4b8cda),_0xc1a30=new _0x55e2cf(_0x4b8cda);return _0x19f4e8['bind']('isEnabled')['to'](_0x1d465c,'isReady',_0x1d465c,'isEnabled',_0x506278,'isReadOnly',(_0x265bde,_0x2ef0cd,_0x47779f)=>_0x265bde&&_0x2ef0cd&&!_0x47779f),_0x19f4e8['buttonView']['set']({'icon':_0x4860b4,'label':g(_0x4b8cda,'Revision\x20history'),'tooltip':!0x0}),_0x171666['set']({'label':g(_0x4b8cda,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x171666['bind']('isEnabled')['to'](_0x1d465c,'isReady',_0x1d465c,'isEnabled',_0x506278,'isReadOnly',(_0x44b4bd,_0x16b20e,_0x2533ba)=>_0x44b4bd&&_0x16b20e&&!_0x2533ba),_0x171666['on']('execute',()=>this['_showDialog']()),_0xc1a30['set']({'label':g(_0x4b8cda,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xc1a30['bind']('isEnabled')['to'](_0x1d465c,'isReady',_0x506278,'isReadOnly',(_0x47ffcc,_0x18030d)=>_0x47ffcc&&!_0x18030d),_0xc1a30['on']('execute',()=>{_0x506278['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x19f4e8['isOpen']=!0x1,_0x506278['editing']['view']['focus']();}),_0x53aa59['children']['add'](_0x171666),_0x28ce13['children']['add'](_0xc1a30),_0x164003['role']='menu',_0x164003['items']['addMany']([_0x53aa59,_0x28ce13]),_0x5646ff['add'](_0x164003),_0x19f4e8;}),_0x506278['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x191e79=this['editor'],_0x5e56cd=_0x191e79['locale'],_0x2a973f=new _0x31677e(_0x5e56cd),_0x339ad6=new _0x1fa962(_0x5e56cd);_0x2a973f['buttonView']['set']({'icon':_0x4860b4,'label':g(_0x5e56cd,'Revision\x20history')});const _0x1ccfd6=new _0x37ea3d(_0x5e56cd,_0x2a973f),_0x59db8a=new _0x462384(_0x5e56cd);_0x59db8a['set']({'label':g(_0x5e56cd,'Save\x20current\x20revision')}),_0x59db8a['delegate']('execute')['to'](_0x2a973f),_0x59db8a['on']('execute',()=>{this['_showDialog']();}),_0x1ccfd6['children']['add'](_0x59db8a),_0x339ad6['items']['add'](_0x1ccfd6);const _0x2423d3=new _0x37ea3d(_0x5e56cd,_0x2a973f),_0x3c5a78=new _0x462384(_0x5e56cd);return _0x3c5a78['set']({'label':g(_0x5e56cd,'Open\x20revision\x20history')}),_0x3c5a78['delegate']('execute')['to'](_0x2a973f),_0x3c5a78['on']('execute',()=>{_0x191e79['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2423d3['children']['add'](_0x3c5a78),_0x339ad6['items']['add'](_0x2423d3),_0x2a973f['panelView']['children']['add'](_0x339ad6),_0x2a973f;}['_showDialog'](){const _0x205dfa=this['editor'],_0x4f36f=_0x205dfa['locale'],_0x5a9bef=_0x205dfa['plugins']['get']('Dialog'),_0x37627d=_0x205dfa['plugins']['get']('RevisionTracker');function _0x5856a2(_0x4f5b1b){_0x205dfa['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4f5b1b['revisionName']?_0x4f5b1b['revisionNameInputView']['errorText']=g(_0x4f36f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x205dfa['plugins']['get'](u)['saveRevision']({'name':_0x4f5b1b['revisionName']}),_0x5a9bef['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5856a2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5a9bef['show']({'id':'revisionSave','title':g(_0x4f36f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x205dfa['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5a9bef['hide']()},{'label':g(_0x205dfa['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1e367f){_0x1e367f['bind']('isEnabled')['to'](_0x37627d,'isReady',_0x37627d,'isEnabled',_0x205dfa,'isReadOnly',(_0xa7894d,_0x5c1434,_0x5b26f3)=>_0xa7894d&&_0x5c1434&&!_0x5b26f3);},'onExecute':()=>_0x5856a2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x494136=this['editor'],_0x91080d=_0x494136['locale'];this['_saveRevisionFormView']=new os(_0x91080d,_0x494136['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x4ce89f{['changeId'];['_model'];constructor(_0x3b4dfe,_0x38b8f9){super(_0x3b4dfe),this['_model']=_0x38b8f9,this['changeId']=_0x38b8f9['id'];const _0x3706f7=this['bindTemplate'],_0xed1aac=g(_0x3b4dfe,_0x38b8f9['data']['isSuggestion']?'Suggested\x20by':'add'==_0x38b8f9['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x38b8f9['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3706f7['to']('type',_0x3a5a6a=>'ck-revision-change__'+_0x3a5a6a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xed1aac}]},{'text':'\x20'+_0x38b8f9['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x2cbbee(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x212cbb){super(),this['id']=_0x212cbb['id']||_0xb8234b(),this['author']=_0x212cbb['author'],this['type']=_0x212cbb['type'],this['data']=_0x212cbb['data']||{},this['rootName']=_0x212cbb['rootName'],this['set']('createdAt',_0x212cbb['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(_0x3d2ea9,_0x59b7ca){this['newRevisionId']=_0x3d2ea9,this['oldRevisionId']=_0x59b7ca,this['changes']=new _0x5e3e8a();}['_setChanges'](_0x507a55){for(const _0x39b732 of _0x507a55)this['changes']['add'](_0x39b732);}}class m extends _0x4de1c4{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2ad73a,_0x35d9ea,I,V];}constructor(_0x354fda){super(_0x354fda),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x5656ca,_0x92efd,_0xf4aced)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2df5f3=>{for(const _0x343bbf of this['editor']['editing']['view']['document']['roots'])_0xf4aced?_0x2df5f3['removeClass']('ck-editor__editable__overlay',_0x343bbf):_0x2df5f3['addClass']('ck-editor__editable__overlay',_0x343bbf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x44d15a=>null!==_0x44d15a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5b8400,_0x4804c4,_0x74777f)=>_0x5b8400&&_0x74777f?_0x4804c4['changes']['getIndex'](_0x74777f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x54ae94,_0x2837bd)=>_0x54ae94?_0x2837bd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x35d9ea);}['init'](){const _0x1320bf=this['editor'],_0xe0d16f=new pt(_0x1320bf,{'direction':'backward'}),_0x188b90=new pt(_0x1320bf,{'direction':'forward'});(_0x1320bf['commands']['add']('showPreviousChange',_0xe0d16f),_0x1320bf['commands']['add']('showNextChange',_0x188b90),_0x1320bf['commands']['add']('restoreRevision',new wt(_0x1320bf)),this['on']('change:numberOfChanges',()=>{_0xe0d16f['refresh'](),_0x188b90['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1320bf['enableReadOnlyMode']('revision-viewer'),_0x1320bf['plugins']['has']('WidgetToolbarRepository'))&&_0x1320bf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x907301){return await this['_utils']['loadRevisionData'](_0x907301,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x907301);}async['getRevisionRootsAttributes'](_0x3920d9){return await this['_utils']['loadRevisionData'](_0x3920d9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3920d9);}async['compare'](_0x5cb147,_0x116247,_0x420741=!0x1){if(!this['isEnabled'])return;const _0x143e72=this['diff'],_0x30d1c9=this['repository'],_0x40d9b8='string'==typeof _0x5cb147?_0x30d1c9['getRevision'](_0x5cb147):_0x5cb147,_0x54bec0='string'==typeof _0x116247?_0x30d1c9['getRevision'](_0x116247):_0x116247,_0x34d51a=_0x40d9b8['id'],_0x4ff6d1=_0x54bec0?_0x54bec0['id']:null;if(!_0x420741&&this['diff']&&this['diff']['newRevisionId']===_0x34d51a&&this['diff']['oldRevisionId']===_0x4ff6d1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x34d51a,_0x4ff6d1);const _0x395c06=this['_getRevisionsRange'](_0x40d9b8,_0x54bec0,!0x0)['map'](_0x340b6e=>this['_utils']['loadRevisionData'](_0x340b6e,this['adapter']));return _0x395c06['push'](new Promise(_0x391f66=>{setTimeout(_0x391f66,0x14);})),Promise['all'](_0x395c06)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xa1742e=this['_getDiff'](_0x34d51a,_0x4ff6d1);for(const _0x4bf7bf of _0xa1742e['changes'])this['_changeIdToChange']['set'](_0x4bf7bf['id'],_0x4bf7bf);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2b53f1=>{for(const _0xcd0c14 of this['editor']['model']['document']['getRootNames']())_0x2b53f1['detachRoot'](_0xcd0c14);for(const _0x504bf5 of Object['keys'](_0xa1742e['model'])){const _0x274763=_0x2b53f1['addRoot'](_0x504bf5);for(const _0x2952fa of Object['keys'](_0xa1742e['attributes'][_0x504bf5]))_0x2b53f1['setAttribute'](_0x2952fa,_0xa1742e['attributes'][_0x504bf5][_0x2952fa],_0x274763);_0x2b53f1['insert'](_0xa1742e['model'][_0x504bf5],_0x274763,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xa1742e['changes'])),this['isReady']=!0x0;})['catch'](_0x4851bf=>{console['error'](_0x4851bf),this['_cleanUp'](),_0x143e72&&(this['diff']=_0x143e72),this['isReady']=!0x0;});}['addRevisionData'](_0x295c89,_0x4b86c4){const _0x274578=this['repository']['createRevision'](_0x295c89);return _0x274578['on']('_update',(_0x211064,_0x596fde,_0x474839)=>_0x4b86c4(_0x596fde,_0x474839,_0x274578)),this['repository']['addRevision'](_0x274578),_0x274578;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x39d5c5=>{for(const _0x15d8d3 of this['editor']['model']['document']['getRootNames']())_0x39d5c5['detachRoot'](_0x15d8d3);});}['_sortAndFilterDiffChanges'](_0x1be690){const _0x188edd=[],_0x2e292e=new Map();for(const _0x303782 of this['editor']['model']['document']['getRootNames']()){const _0xe7f022=this['editor']['editing']['view']['getDomRoot'](_0x303782);if(!_0xe7f022)continue;const _0x503ccb=_0xe7f022['getClientRects']()['item'](0x0);_0x503ccb&&(_0x188edd['push'](_0x303782),_0x2e292e['set'](_0x303782,_0x503ccb));}return _0x188edd['sort']((_0x4583f1,_0x14a161)=>{const _0x4b56bf=_0x2e292e['get'](_0x4583f1),_0x54c2fc=_0x2e292e['get'](_0x14a161);return _0x4b56bf['y']-_0x54c2fc['y']||_0x4b56bf['x']-_0x54c2fc['x'];}),(_0x1be690=_0x1be690['filter'](_0x2bac3b=>_0x188edd['includes'](_0x2bac3b['rootName'])))['sort']((_0x27dea6,_0x3f3fff)=>_0x188edd['indexOf'](_0x27dea6['rootName'])-_0x188edd['indexOf'](_0x3f3fff['rootName'])),_0x1be690;}['_makeTape'](_0x316196){const _0x46105a=Array['from'](_0x316196['markers'])['filter'](([_0x48d6a4,_0x529e1b])=>_0x48d6a4['startsWith']('revision:')&&!_0x529e1b['isCollapsed']),_0x49d29a=Array['from'](this['editor']['model']['createRangeIn'](_0x316196)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x46105a['length'])for(const _0xbbc7d5 of _0x49d29a){const [_0x4e4345,_0x205513]=_0x46105a[0x0],[,_0x54205a,_0x172c05]=_0x4e4345['split'](':');if(_0x205513['end']['isEqual'](_0xbbc7d5['nextPosition'])&&_0x46105a['shift'](),(_0xbbc7d5['previousPosition']['isEqual'](_0x205513['start'])||_0xbbc7d5['previousPosition']['isAfter'](_0x205513['start']))&&('insertion'==_0x54205a?_0xbbc7d5['isAdded']={'userId':_0x172c05}:'deletion'==_0x54205a&&(_0xbbc7d5['isRemoved']={'userId':_0x172c05})),0x0==_0x46105a['length'])break;}return _0x49d29a;}['_refreshStartEndIndex'](_0x19bf4a){const _0x3e54e2=new Map();for(let _0x271ae0=0x0;_0x271ae0<_0x19bf4a['length'];_0x271ae0++)'text'===_0x19bf4a[_0x271ae0]['type']?(_0x19bf4a[_0x271ae0]['item']['startIndex']=_0x271ae0,_0x19bf4a[_0x271ae0]['item']['endIndex']=_0x271ae0):('elementStart'===_0x19bf4a[_0x271ae0]['type']?_0x19bf4a[_0x271ae0]['item']['startIndex']=_0x271ae0:'elementEnd'===_0x19bf4a[_0x271ae0]['type']&&(_0x19bf4a[_0x271ae0]['item']['endIndex']=_0x271ae0),_0x3e54e2['set'](_0x19bf4a[_0x271ae0]['id'],_0x271ae0));for(const _0x4e6b15 of _0x3e54e2['values']())'elementStart'===_0x19bf4a[_0x4e6b15]['type']?_0x19bf4a[_0x4e6b15]['item']['endIndex']=_0x3e54e2['get'](_0x19bf4a[_0x4e6b15]['pairId']):'elementEnd'===_0x19bf4a[_0x4e6b15]['type']&&(_0x19bf4a[_0x4e6b15]['item']['startIndex']=_0x3e54e2['get'](_0x19bf4a[_0x4e6b15]['pairId']));}['_processTape'](_0x1827a8){for(let _0x53c90f=0x0;_0x53c90f<_0x1827a8['length'];_0x53c90f++){if('elementStart'===_0x1827a8[_0x53c90f]['type'])_0x1827a8[_0x53c90f]['item']['startIndex']=_0x53c90f;else{if('elementEnd'===_0x1827a8[_0x53c90f]['type']){_0x1827a8[_0x53c90f]['item']['endIndex']=_0x53c90f;const _0x1e4739=_0x1827a8[_0x53c90f]['item']['startIndex'];_0x1827a8[_0x1e4739]['pairId']=_0x1827a8[_0x53c90f]['id'],_0x1827a8[_0x53c90f]['pairId']=_0x1827a8[_0x1e4739]['id'];}else _0x1827a8[_0x53c90f]['item']['startIndex']=_0x53c90f,_0x1827a8[_0x53c90f]['item']['endIndex']=_0x53c90f,_0x1827a8[_0x53c90f]['pairId']=null;}_0x1827a8[_0x53c90f]['markersStart']||(_0x1827a8[_0x53c90f]['markersStart']=[],_0x1827a8[_0x53c90f]['markersEnd']=[]);}}['_markInsertions'](_0x29716e,_0x58ef36){const _0x5b6423=_0x29716e['filter'](_0x37843b=>!_0x37843b['isAdded']);for(let _0xda5d9e=0x0;_0xda5d9e<_0x58ef36['length'];_0xda5d9e++)_0x58ef36[_0xda5d9e]['isAdded']&&(_0x5b6423[_0xda5d9e]['isAdded']=_0x58ef36[_0xda5d9e]['isAdded']);}['_getDiff'](_0x4e89c1,_0x5748cd=null){const _0x14d2ac=this['repository']['getRevision'](_0x4e89c1),_0x5c64ee=_0x5748cd?this['repository']['getRevision'](_0x5748cd):null,_0x472cde=this['_getRevisionsRange'](_0x14d2ac,_0x5c64ee),_0x54f16f=_0x472cde[_0x472cde['length']-0x1],_0x50e11c=new Map(),_0xd6506c={'model':{},'attributes':{},'changes':[]},_0x4e4981=new Set(),_0x50cf29=new Map();for(let _0x2c30be=_0x472cde['length']-0x1;_0x2c30be>=0x0;_0x2c30be--){const _0x1edb5d=_0x472cde[_0x2c30be];for(const _0x9b2676 of Object['keys'](_0x1edb5d['diffData']))if(_0x1edb5d['diffData'][_0x9b2676]['attachChange']){const _0x41c4bd=_0x1edb5d['diffData'][_0x9b2676]['attachChange'];_0x41c4bd['isAttached']?(_0x4e4981['add'](_0x9b2676),_0x50cf29['has'](_0x9b2676)&&_0x50cf29['get'](_0x9b2676)['userId']==_0x41c4bd['userId']?_0x50cf29['delete'](_0x9b2676):_0x50cf29['set'](_0x9b2676,_0x41c4bd)):_0x50cf29['has'](_0x9b2676)?(_0x4e4981['delete'](_0x9b2676),_0x50cf29['delete'](_0x9b2676)):(_0x4e4981['add'](_0x9b2676),_0x50cf29['set'](_0x9b2676,_0x41c4bd));}else _0x4e4981['add'](_0x9b2676);}for(const _0x538eb5 of _0x4e4981){const _0x4e49c8=_0x50cf29['has'](_0x538eb5)&&!_0x50cf29['get'](_0x538eb5)['isAttached'];let _0x2bdf41=_0x4e49c8?_0x472cde['length']-0x1:0x0;const _0x404fc2=_0x4e49c8?-0x1:0x1;for(;_0x472cde[_0x2bdf41];){const _0x5c5907=_0x472cde[_0x2bdf41];if(_0x5c5907['diffData'][_0x538eb5]){const _0x5d16b5=_0x4e49c8?_0x5c5907['diffData'][_0x538eb5]['attributesBefore']:_0x5c5907['diffData'][_0x538eb5]['attributesAfter'];_0xd6506c['attributes'][_0x538eb5]=_0x5d16b5?_0x7e9748(_0x5d16b5):{};break;}_0x2bdf41+=_0x404fc2;}}for(const _0x2397fa of _0x472cde){_0x2397fa['model']={};for(const _0x3dcbaf of _0x2397fa['authors'])_0x50e11c['set'](_0x3dcbaf['id'],_0x3dcbaf);for(const _0x52606a of _0x4e4981){const _0x3db54e=_0x2397fa['diffData'][_0x52606a]?_0x2397fa['diffData'][_0x52606a]['insertions']:'[]',_0x1cb4e7=_0x2397fa['diffData'][_0x52606a]?_0x2397fa['diffData'][_0x52606a]['deletions']:'[]';_0x2397fa['model'][_0x52606a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3db54e),'deletions':this['_utils']['_makeModelFromViewString'](_0x1cb4e7)};}}for(const _0x4b5777 of _0x4e4981){let _0x28bfba=null,_0x55e316=0x0;const _0x528f8a=new Map(Array['from'](_0x14d2ac['model'][_0x4b5777]['insertions']['markers'])['filter'](([_0xf992c6])=>!_0xf992c6['startsWith']('revision:')));let _0x444061=0x0;for(const _0x252985 of _0x472cde){const _0x3e36d3=this['_makeTape'](_0x252985['model'][_0x4b5777]['insertions']);_0x252985==_0x14d2ac?(_0x28bfba=_0x3e36d3,_0x55e316=_0x28bfba['length'],_0x28bfba['forEach'](_0x16dea0=>{_0x16dea0['id']=_0x444061++;}),this['_processTape'](_0x28bfba)):this['_markInsertions'](_0x28bfba,_0x3e36d3);const _0x1d59ae=_0x28bfba['filter'](_0x549039=>!_0x549039['isAdded'])['map'](_0x146c74=>_0x146c74['id']);let _0x1bac91=0x0;const _0x37ffa3=this['_makeTape'](_0x252985['model'][_0x4b5777]['deletions']);_0x37ffa3['forEach'](_0x556d8e=>{_0x556d8e['isRemoved']?_0x556d8e['id']=_0x55e316++:_0x556d8e['id']=_0x1d59ae[_0x1bac91++];}),this['_processTape'](_0x37ffa3),this['_setDistance'](_0x28bfba,'isAdded'),this['_setDistance'](_0x37ffa3,'isRemoved'),_0x252985==_0x14d2ac&&this['_markMarkers'](_0x28bfba,_0x528f8a),_0x28bfba=this['_joinTapes'](_0x28bfba,_0x37ffa3),this['_refreshStartEndIndex'](_0x28bfba),this['_setDistance'](_0x28bfba,'isRemoved');}_0x28bfba=_0x28bfba['filter'](_0x40c04=>!(_0x40c04['isAdded']&&_0x40c04['isRemoved']));const _0x55c30c=new Map(_0x54f16f['model'][_0x4b5777]['deletions']['markers']),_0xfadda2=new Set(_0x528f8a['keys']());for(const _0x46c7d4 of _0x55c30c['keys']())_0xfadda2['delete'](_0x46c7d4);this['_markSuggestions'](_0x28bfba,_0xfadda2),this['_fixObsoleteTags'](_0x28bfba),_0x28bfba=this['_removeMissingPairs'](_0x28bfba),_0x28bfba=this['_markMismatchedRemovedTags'](_0x28bfba),_0x28bfba=this['_removeUnsupportedChanges'](_0x28bfba);const {root:_0x3e4228,changes:_0x160b6c}=this['_makeModelFromTape'](_0x28bfba,_0x50e11c,_0x4b5777);_0xd6506c['model'][_0x4b5777]=_0x3e4228;const _0x325973=_0x50cf29['get'](_0x4b5777);if(_0x325973){const _0x3339f7=_0x50e11c['get'](_0x325973['userId']),_0x162a76=new r({'author':_0x3339f7,'type':_0x325973['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b5777});_0x160b6c['unshift'](_0x162a76),_0xd6506c['attributes'][_0x4b5777]['revisionHistoryAttachChange']=_0x162a76['id'];}_0xd6506c['changes']=_0xd6506c['changes']['concat'](_0x160b6c);}return _0xd6506c;}['_markMarkers'](_0x5a66e8,_0x580a11){for(let _0x4c652a=0x0;_0x4c652a<_0x5a66e8['length'];_0x4c652a++)for(const [_0x56d039,_0x1af3cb]of _0x580a11)!_0x1af3cb['isCollapsed']&&_0x1af3cb['start']['isEqual'](_0x5a66e8[_0x4c652a]['previousPosition'])&&_0x5a66e8[_0x4c652a]['markersStart']['push'](_0x56d039),_0x1af3cb['end']['isEqual'](_0x5a66e8[_0x4c652a]['nextPosition'])&&_0x5a66e8[_0x4c652a]['markersEnd']['push'](_0x56d039);}['_joinTapes'](_0x3531d5,_0x19b6e7){let _0x55b624=[],_0x525eb9=0x0,_0xc6fe27=0x0;for(;_0x525eb9<_0x3531d5['length']||_0xc6fe27<_0x19b6e7['length'];){const _0x4b217c=_0x3531d5[_0x525eb9]||{},_0x1ded05=_0x19b6e7[_0xc6fe27]||{};if(_0x4b217c['id']==_0x1ded05['id'])_0x525eb9++,_0xc6fe27++,_0x55b624['push'](_0x4b217c);else{if(_0x1ded05['isRemoved']&&_0x4b217c['isAdded']){const {commonTape:_0x1ea40d,iEnd:_0x3c29e6,jEnd:_0x4f03bb}=this['_threeWayMerge'](_0x3531d5,_0x525eb9,_0x19b6e7,_0xc6fe27);_0x55b624=_0x55b624['concat'](_0x1ea40d),_0x525eb9=_0x3c29e6,_0xc6fe27=_0x4f03bb;}else _0x1ded05['isRemoved']?(_0xc6fe27++,_0x55b624['push'](_0x1ded05)):(_0x525eb9++,_0x55b624['push'](_0x4b217c));}}return _0x55b624;}['_markSuggestions'](_0x5315c2,_0x282f6){const _0x1ce3b8=[];for(let _0x5f49cf=0x0;_0x5f49cf<_0x5315c2['length'];_0x5f49cf++){for(let _0x466cd0=0x0;_0x466cd0<_0x5315c2[_0x5f49cf]['markersStart']['length'];_0x466cd0++){const _0x3b7a61=_0x5315c2[_0x5f49cf]['markersStart'][_0x466cd0];if(!_0x282f6['has'](_0x3b7a61))continue;const {group:_0x5db0cf,type:_0x4384a7,authorId:_0x13c0de}=_0x474c7f(_0x3b7a61);'revision-suggestion'!=_0x5db0cf||'insertion'!=_0x4384a7&&'deletion'!=_0x4384a7||(_0x1ce3b8['unshift']({'type':_0x4384a7,'name':_0x3b7a61,'userId':_0x13c0de}),_0x5315c2[_0x5f49cf]['markersStart']['splice'](_0x466cd0,0x1),_0x466cd0--);}_0x25ed5e(_0x5315c2[_0x5f49cf]);for(let _0x50abb4=0x0;_0x50abb4<_0x5315c2[_0x5f49cf]['markersEnd']['length'];_0x50abb4++){const _0x130fa4=_0x5315c2[_0x5f49cf]['markersEnd'][_0x50abb4];if(!_0x282f6['has'](_0x130fa4))continue;const {group:_0x3d76f5,type:_0x327844}=_0x474c7f(_0x130fa4);if('revision-suggestion'!=_0x3d76f5||'insertion'!=_0x327844&&'deletion'!=_0x327844)continue;_0x5315c2[_0x5f49cf]['markersEnd']['splice'](_0x50abb4,0x1),_0x50abb4--;const _0x2798ae=_0x1ce3b8['findIndex'](_0x333a7f=>_0x333a7f['name']==_0x130fa4);_0x2798ae>-0x1&&_0x1ce3b8['splice'](_0x2798ae,0x1);}}function _0x474c7f(_0x3b76b9){const _0x2ad8b8=_0x3b76b9['split'](':');return{'group':_0x2ad8b8[0x0],'type':_0x2ad8b8[0x1],'subType':_0x2ad8b8['length']>=0x5?_0x2ad8b8[0x2]:null,'id':_0x2ad8b8['length']<0x5?_0x2ad8b8[0x2]:_0x2ad8b8[0x3],'authorId':_0x2ad8b8['length']<0x5?_0x2ad8b8[0x3]:_0x2ad8b8[0x4],'markerCount':0x6==_0x2ad8b8['length']?_0x2ad8b8[0x5]:null};}function _0x25ed5e(_0x583e2f){for(let _0x7a12b8=0x0;_0x7a12b8<_0x1ce3b8['length'];_0x7a12b8++){if(_0x583e2f['isAdded']&&'insertion'==_0x1ce3b8[_0x7a12b8]['type']&&_0x583e2f['isAdded']['userId']==_0x1ce3b8[_0x7a12b8]['userId'])return _0x583e2f['isAddSuggestion']=_0x1ce3b8[_0x7a12b8],void delete _0x583e2f['isAdded'];if(!_0x583e2f['isAdded']&&!_0x583e2f['isRemoved']&&'deletion'==_0x1ce3b8[_0x7a12b8]['type'])return void(_0x583e2f['isRemoveSuggestion']=_0x1ce3b8[_0x7a12b8]);}}}['_setDistance'](_0x1b3b5e,_0x3e1f66){let _0x37540=0x0,_0x1218f2=!0x1;const _0x108b65=new Map();for(const _0x281064 of _0x1b3b5e)_0x281064[_0x3e1f66]?_0x1218f2&&(_0x37540++,_0x1218f2=!0x1):(_0x37540++,_0x1218f2=!0x0),_0x108b65['set'](_0x281064['id'],_0x37540);for(let _0x2b58d6=0x0;_0x2b58d6<_0x1b3b5e['length'];_0x2b58d6++){if('isRemoved'==_0x3e1f66&&_0x1b3b5e[_0x2b58d6]['isAdded']||'isAdded'==_0x3e1f66&&_0x1b3b5e[_0x2b58d6]['isRemoved'])continue;if('text'==_0x1b3b5e[_0x2b58d6]['type']){_0x1b3b5e[_0x2b58d6]['distance']=0x0;continue;}const _0x27c4b0=_0x108b65['get'](_0x1b3b5e[_0x2b58d6]['pairId']),_0x25e4b3=_0x108b65['get'](_0x1b3b5e[_0x2b58d6]['id']);_0x1b3b5e[_0x2b58d6]['distance']=_0x27c4b0-_0x25e4b3;}}['_getRevisionsRange'](_0x599371,_0x1dcb1c,_0x3e637e=!0x1){const _0x4b1772=[];let _0x2a9385=this['repository']['getIndex'](_0x599371),_0x3cc275=this['repository']['getIndex'](_0x1dcb1c);for(-0x1==_0x3cc275&&(_0x3cc275=this['repository']['_revisions']['length'],_0x3e637e=!0x1);_0x2a9385<_0x3cc275;)_0x4b1772['push'](this['repository']['getRevision'](_0x2a9385)),_0x2a9385++;return _0x3e637e&&_0x4b1772['push'](this['repository']['getRevision'](_0x2a9385)),_0x4b1772;}['_threeWayMerge'](_0x3dc3dc,_0x141c67,_0x14b288,_0x74d06c){const _0x545a99=this['editor']['model']['schema'];let _0x129764=_0x141c67;for(;_0x3dc3dc[_0x129764]&&_0x3dc3dc[_0x129764]['isAdded'];)_0x129764++;let _0xdcc459=_0x74d06c;for(;_0x14b288[_0xdcc459]&&_0x14b288[_0xdcc459]['isRemoved'];)_0xdcc459++;_0x4dd2a3(_0x3dc3dc,_0x141c67,_0x129764),_0x4dd2a3(_0x14b288,_0x74d06c,_0xdcc459);const _0x300234=_0x14b288['slice'](_0x74d06c,_0xdcc459)['concat'](_0x3dc3dc['slice'](_0x141c67,_0x129764));return _0x300234['sort']((_0x3e9ad9,_0x18ae91)=>_0x3e9ad9['side']!=_0x18ae91['side']?_0x3e9ad9['side']-_0x18ae91['side']:_0x3e9ad9['level']!=_0x18ae91['level']?_0x3e9ad9['level']-_0x18ae91['level']:_0x3e9ad9['distance']!=_0x18ae91['distance']?_0x18ae91['distance']-_0x3e9ad9['distance']:!!_0x3e9ad9['isAdded']!=!!_0x18ae91['isAdded']?-0x1==_0x3e9ad9['side']||0x0==_0x3e9ad9['side']?_0x3e9ad9['isAdded']?-0x1:0x1:_0x3e9ad9['isAdded']?0x1:-0x1:_0x3e9ad9['index']-_0x18ae91['index']),{'commonTape':_0x300234,'iEnd':_0x129764,'jEnd':_0xdcc459};function _0x4dd2a3(_0x88a350,_0x3f8e61,_0x44ba9d){let _0x234d53=-0x1,_0x1a4d62=Number['POSITIVE_INFINITY'],_0x390cc8=!0x0;for(let _0xb9b701=_0x3f8e61;_0xb9b701<_0x44ba9d;_0xb9b701++)if(_0x545a99['isInline'](_0x88a350[_0xb9b701]['item'])||(_0x390cc8=!0x1),_0x88a350[_0xb9b701]['item']['startIndex']<_0x3f8e61&&(_0x234d53=_0xb9b701),_0x88a350[_0xb9b701]['item']['endIndex']>=_0x44ba9d){_0x1a4d62=_0xb9b701;break;}_0x390cc8&&(_0x234d53=_0x44ba9d-0x1);for(let _0x2a1b98=_0x3f8e61;_0x2a1b98<_0x44ba9d;_0x2a1b98++)_0x88a350[_0x2a1b98]['side']=_0x2a1b98<=_0x234d53?-0x1:_0x2a1b98<_0x1a4d62?0x0:0x1,_0x88a350[_0x2a1b98]['index']=_0x2a1b98;let _0x2ed2c9=0x0;for(let _0x5b9540=_0x3f8e61;_0x5b9540<=_0x234d53;_0x5b9540++)0x0==_0x88a350[_0x5b9540]['distance']?_0x88a350[_0x5b9540]['level']=_0x2ed2c9:(_0x2ed2c9++,_0x88a350[_0x5b9540]['level']=_0x2ed2c9,_0x2ed2c9++);for(let _0x357ad4=_0x3f8e61;_0x357ad4<_0x44ba9d;_0x357ad4++)0x0==_0x88a350[_0x357ad4]['side']&&(_0x88a350[_0x357ad4]['level']=_0x2ed2c9);_0x2ed2c9=0x0;for(let _0x16d2d0=_0x44ba9d-0x1;_0x16d2d0>=_0x1a4d62;_0x16d2d0--)0x0==_0x88a350[_0x16d2d0]['distance']?_0x88a350[_0x16d2d0]['level']=_0x2ed2c9:(_0x2ed2c9--,_0x88a350[_0x16d2d0]['level']=_0x2ed2c9,_0x2ed2c9--);}}['_fixObsoleteTags'](_0x187c30){const _0x51cd3c=new Map(),_0x51a9b2=this['editor']['model']['schema'];for(let _0x1a8ee2=0x1;_0x1a8ee2<_0x187c30['length'];_0x1a8ee2++){let _0x159263,_0x2044a0,_0x14bd2;const _0x298660=_0x187c30[_0x1a8ee2],_0x5bc44e=_0x187c30[_0x1a8ee2-0x1];if('text'==_0x298660['type'])continue;if(_0x298660['type']!=_0x5bc44e['type'])continue;if(!_0x51a9b2['isBlock'](_0x5bc44e['item'])||_0x51a9b2['isLimit'](_0x5bc44e['item']))continue;if(!_0x51a9b2['isBlock'](_0x298660['item'])||_0x51a9b2['isLimit'](_0x298660['item']))continue;if((_0x187c30[_0x1a8ee2]['isAdded']||_0x187c30[_0x1a8ee2]['isAddSuggestion'])&&_0x187c30[_0x1a8ee2-0x1]['isRemoved'])_0x159263=_0x187c30[_0x1a8ee2],_0x2044a0=_0x187c30[_0x1a8ee2-0x1],_0x14bd2=_0x1a8ee2-0x1;else{if(!_0x187c30[_0x1a8ee2]['isRemoved']||!_0x187c30[_0x1a8ee2-0x1]['isAdded']&&!_0x187c30[_0x1a8ee2-0x1]['isAddSuggestion'])continue;_0x159263=_0x187c30[_0x1a8ee2-0x1],_0x2044a0=_0x187c30[_0x1a8ee2],_0x14bd2=_0x1a8ee2;}const _0x8bece9=_0x159263['level']==_0x2044a0['level'],_0x256f48=Math['abs'](_0x159263['level'])<Math['abs'](_0x2044a0['level'])&&0x0==_0x2044a0['distance'];(_0x8bece9||_0x256f48)&&(_0x51cd3c['set'](_0x2044a0['id'],_0x159263['id']),_0x187c30['splice'](_0x14bd2,0x1),_0x1a8ee2--,_0x159263['isAdded']=!0x1);}for(let _0x8e1066=0x0;_0x8e1066<_0x187c30['length'];_0x8e1066++)_0x51cd3c['has'](_0x187c30[_0x8e1066]['pairId'])&&(_0x187c30[_0x8e1066]['pairId']=_0x51cd3c['get'](_0x187c30[_0x8e1066]['pairId']));}['_removeMissingPairs'](_0x2f6347){const _0x4d5fe9=new Set(_0x2f6347['map'](_0x540efd=>_0x540efd['id']));for(let _0x315279=0x0;_0x315279<_0x2f6347['length'];_0x315279++)_0x4d5fe9['has'](_0x2f6347[_0x315279]['pairId'])||0x0==_0x2f6347[_0x315279]['distance']||(_0x2f6347[_0x315279]['isIncorrect']=!0x0);return _0x2f6347['filter'](_0x197289=>!_0x197289['isIncorrect']);}['_markMismatchedRemovedTags'](_0x12f3c9){const _0x4b809e=new Set();for(let _0x555a70=0x0;_0x555a70<_0x12f3c9['length'];_0x555a70++){if(_0x4b809e['has'](_0x12f3c9[_0x555a70]['id'])&&_0x12f3c9[_0x555a70]['isRemoved']&&(_0x12f3c9[_0x555a70]['isIncorrect']=!0x0),_0x12f3c9[_0x555a70]['isIncorrect'])continue;if(0x0==_0x12f3c9[_0x555a70]['distance'])continue;if('elementStart'!=_0x12f3c9[_0x555a70]['type'])continue;if(null==_0x12f3c9[_0x555a70]['pairId'])continue;let _0x1a1162=_0x555a70+0x1,_0x16f9e0=0x0;for(;_0x12f3c9[_0x1a1162]['id']!=_0x12f3c9[_0x555a70]['pairId'];)'elementStart'==_0x12f3c9[_0x1a1162]['type']?_0x16f9e0++:'elementEnd'==_0x12f3c9[_0x1a1162]['type']&&_0x16f9e0--,_0x1a1162++;if(0x0!=_0x16f9e0){if(_0x12f3c9[_0x555a70]['isRemoved'])_0x12f3c9[_0x555a70]['isIncorrect']=!0x0;else{for(;_0x1a1162!=_0x555a70;)_0x12f3c9[_0x1a1162]['isRemoved']&&0x0!=_0x12f3c9[_0x1a1162]['distance']&&(_0x12f3c9[_0x1a1162]['isIncorrect']=!0x0,_0x4b809e['add'](_0x12f3c9[_0x1a1162]['pairId'])),_0x1a1162--;}}}return _0x12f3c9['filter'](_0x3f75d2=>!_0x3f75d2['isIncorrect']);}['_removeUnsupportedChanges'](_0x58f103){const _0x1ebaa7=this['editor']['model']['schema'];for(let _0xe45bd5=0x0;_0xe45bd5<_0x58f103['length'];_0xe45bd5++){if(!(_0x58f103[_0xe45bd5]['isAdded']||_0x58f103[_0xe45bd5]['isAddSuggestion']||_0x58f103[_0xe45bd5]['isRemoved']||_0x58f103[_0xe45bd5]['isRemoveSuggestion']))continue;if(0x0==_0x58f103[_0xe45bd5]['distance'])continue;const _0x2cc176=_0x58f103[_0xe45bd5]['item'];_0x1ebaa7['isBlock'](_0x2cc176)||_0x1ebaa7['isLimit'](_0x2cc176)||(_0x58f103[_0xe45bd5]['isAdded']&&delete _0x58f103[_0xe45bd5]['isAdded'],_0x58f103[_0xe45bd5]['isAddSuggestion']&&delete _0x58f103[_0xe45bd5]['isAddSuggestion'],_0x58f103[_0xe45bd5]['isRemoveSuggestion']&&delete _0x58f103[_0xe45bd5]['isRemoveSuggestion'],_0x58f103[_0xe45bd5]['isRemoved']&&(_0x58f103[_0xe45bd5]['isIncorrect']=!0x0));}return _0x58f103['filter'](_0x20de5e=>!_0x20de5e['isIncorrect']);}['_makeModelFromTape'](_0x3c8e48,_0x3e12ad,_0x4b1578){const _0x150bb7=new gt(),_0x579904=[],_0x1c32af=new Map(),_0x269dd4=this['editor']['model'],_0x186fc6=_0x269dd4['schema'],_0x525444=[_0x150bb7],_0x397665={},_0x445f21={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xd5288e=null;const _0x4158a3=[0x0];for(let _0x141ca3=0x0;_0x141ca3<_0x3c8e48['length'];_0x141ca3++)if('elementStart'===_0x3c8e48[_0x141ca3]['type']){_0x3c8e48[_0x141ca3]['previousPosition']=_0x269dd4['createPositionFromPath'](_0x150bb7,_0x4158a3);const _0x5e2659=new ut(_0x3c8e48[_0x141ca3]['item']['name'],_0x3c8e48[_0x141ca3]['item']['getAttributes']());_0x525444[0x0]['_appendChild'](_0x5e2659),_0x4158a3['push'](0x0),_0x525444['unshift'](_0x5e2659),_0x3c8e48[_0x141ca3]['nextPosition']=_0x269dd4['createPositionFromPath'](_0x150bb7,_0x4158a3);}else'elementEnd'===_0x3c8e48[_0x141ca3]['type']?(_0x525444['shift'](),_0x3c8e48[_0x141ca3]['previousPosition']=_0x269dd4['createPositionFromPath'](_0x150bb7,_0x4158a3),_0x4158a3['pop'](),_0x4158a3[_0x4158a3['length']-0x1]++,_0x3c8e48[_0x141ca3]['nextPosition']=_0x269dd4['createPositionFromPath'](_0x150bb7,_0x4158a3)):(_0x3c8e48[_0x141ca3]['previousPosition']=_0x269dd4['createPositionFromPath'](_0x150bb7,_0x4158a3),_0xd5288e?_0xd5288e['_data']+=_0x3c8e48[_0x141ca3]['item']['data']:_0xd5288e=new mt(_0x3c8e48[_0x141ca3]['item']['data'],_0x3c8e48[_0x141ca3]['item']['getAttributes']()),_0x3c8e48[_0x141ca3+0x1]&&'text'===_0x3c8e48[_0x141ca3+0x1]['type']&&_0x1920f8(_0xd5288e,_0x3c8e48[_0x141ca3+0x1]['item'])||(_0x525444[0x0]['_appendChild'](_0xd5288e),_0xd5288e=null),_0x4158a3[_0x4158a3['length']-0x1]+=_0x3c8e48[_0x141ca3]['item']['offsetSize'],_0x3c8e48[_0x141ca3]['nextPosition']=_0x269dd4['createPositionFromPath'](_0x150bb7,_0x4158a3));for(let _0x1cf320=0x0;_0x1cf320<_0x3c8e48['length'];_0x1cf320++){const _0x224701=_0x3c8e48[_0x1cf320]['previousPosition'],_0x213385=_0x3c8e48[_0x1cf320]['nextPosition'];for(const _0x30c6a2 of _0x3c8e48[_0x1cf320]['markersStart'])_0x1c32af['set'](_0x30c6a2,{'start':_0x224701,'end':null});_0x36ec3e('isRemoveSuggestion',_0x1cf320,_0x224701,_0x213385),_0x36ec3e('isAddSuggestion',_0x1cf320,_0x224701,_0x213385),_0x36ec3e('isRemoved',_0x1cf320,_0x224701,_0x213385),_0x36ec3e('isAdded',_0x1cf320,_0x224701,_0x213385);for(const _0x12a237 of _0x3c8e48[_0x1cf320]['markersEnd']){const _0x264d77=_0x1c32af['get'](_0x12a237);_0x264d77?_0x264d77['end']=_0x213385:_0x1c32af['set'](_0x12a237,{'start':_0x213385,'end':_0x213385});}}for(const [_0x3763ce,_0x6adc52]of _0x1c32af){const _0x3a389a=this['editor']['model']['createRange'](_0x6adc52['start'],_0x6adc52['end']);_0x150bb7['markers']['set'](_0x3763ce,_0x3a389a);}return _0x579904['sort']((_0x5ac4e4,_0x31658a)=>{const _0x2c50c3=_0x150bb7['markers']['get']('revision:'+_0x5ac4e4['id']),_0x13b55b=_0x150bb7['markers']['get']('revision:'+_0x31658a['id']);return _0x2c50c3['start']['isBefore'](_0x13b55b['start'])?-0x1:_0x2c50c3['start']['isAfter'](_0x13b55b['start'])?0x1:_0x2c50c3['end']['isBefore'](_0x13b55b['end'])?-0x1:_0x2c50c3['end']['isAfter'](_0x13b55b['end'])?0x1:'add'===_0x5ac4e4['type']?-0x1:0x1;}),{'root':_0x150bb7,'changes':_0x579904};function _0x36ec3e(_0x4bd8d7,_0x24d0ed,_0x4607b8,_0x2aaf58){const _0x21b3f8=!!_0x3c8e48[_0x24d0ed][_0x4bd8d7],_0x5a4a9e=_0x21b3f8?_0x3c8e48[_0x24d0ed][_0x4bd8d7]['userId']:null,_0x524e48=_0x24d0ed===_0x3c8e48['length']-0x1,_0x38d620=_0x445f21[_0x4bd8d7][0x0],_0x28d698=_0x186fc6['isObject'](_0x3c8e48[_0x24d0ed]['item']);!_0x397665[_0x4bd8d7]&&_0x21b3f8?_0x397665[_0x4bd8d7]={'start':_0x4607b8,'tapeItem':_0x3c8e48[_0x24d0ed],'userId':_0x5a4a9e,'type':_0x4bd8d7}:_0x397665[_0x4bd8d7]&&!_0x21b3f8?(_0x397665[_0x4bd8d7]['end']=_0x4607b8,_0x2cc4e2(_0x397665[_0x4bd8d7]),_0x397665[_0x4bd8d7]=null):_0x397665[_0x4bd8d7]&&_0x21b3f8&&_0x397665[_0x4bd8d7]['userId']!==_0x5a4a9e&&(_0x397665[_0x4bd8d7]['end']=_0x4607b8,_0x38d620&&_0x38d620['userId']===_0x397665[_0x4bd8d7]['userId']||_0x2cc4e2(_0x397665[_0x4bd8d7]),_0x397665[_0x4bd8d7]={'start':_0x4607b8,'tapeItem':_0x3c8e48[_0x24d0ed],'userId':_0x5a4a9e,'type':_0x4bd8d7}),_0x397665[_0x4bd8d7]&&_0x28d698&&('elementStart'!==_0x3c8e48[_0x24d0ed]['type']||_0x38d620&&_0x38d620['userId']===_0x5a4a9e||_0x445f21[_0x4bd8d7]['unshift']({'userId':_0x5a4a9e,'object':_0x3c8e48[_0x24d0ed]['item'],'change':_0x397665[_0x4bd8d7]}),'elementEnd'===_0x3c8e48[_0x24d0ed]['type']&&_0x38d620&&_0x38d620['object']===_0x3c8e48[_0x24d0ed]['item']&&(_0x445f21[_0x4bd8d7]['shift'](),_0x397665[_0x4bd8d7]=_0x38d620['change'])),_0x397665[_0x4bd8d7]&&_0x524e48&&(_0x397665[_0x4bd8d7]['end']=_0x2aaf58,_0x2cc4e2(_0x397665[_0x4bd8d7]),_0x397665[_0x4bd8d7]=null);}function _0x2cc4e2({start:_0x9d729f,end:_0x8b0bda,tapeItem:_0x59fe29,userId:_0x36cd3c,type:_0x104adc}){const _0xe998a9=_0x59fe29['item'],_0x29cd08=_0x269dd4['schema']['isBlock'](_0xe998a9)&&!_0x269dd4['schema']['isLimit'](_0xe998a9),_0x118bb7=_0x9d729f['nodeAfter']==_0x8b0bda['parent']&&_0x8b0bda['isAtStart'];if(_0x29cd08&&_0x118bb7)return;const _0xfd9609=_0x269dd4['createRange'](_0x9d729f,_0x8b0bda),_0x427af1=_0x3e12ad['get'](_0x36cd3c),_0x4100bb=new r({'author':_0x427af1,'type':'isAdded'==_0x104adc||'isAddSuggestion'==_0x104adc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x104adc||'isRemoveSuggestion'==_0x104adc},'createdAt':new Date(),'rootName':_0x4b1578});_0x579904['push'](_0x4100bb),_0x150bb7['markers']['set']('revision:'+_0x4100bb['id'],_0xfd9609);}function _0x1920f8(_0x1c40c7,_0x31d416){const _0x3649df=_0x1c40c7['getAttributes'](),_0x14bb85=_0x31d416['getAttributes']();for(const _0x25479c of _0x3649df){if(_0x25479c[0x1]!==_0x31d416['getAttribute'](_0x25479c[0x0]))return!0x1;_0x14bb85['next']();}return _0x14bb85['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1ba6e2=>{const _0x260bc8=_0x1ba6e2['markerName']['split'](':')[0x1],_0x831711=this['_getChangeFromId'](_0x260bc8);if(!_0x831711)return null;const _0x209871='add'==_0x831711['type']?'insertion':'deletion',_0x5947ac=['ck-suggestion-marker','ck-suggestion-marker-'+_0x209871];return _0x831711['data']['isSuggestion']&&_0x5947ac['push']('ck-suggestion-marker-'+_0x209871+'-new'),this['activeChange']==_0x831711&&_0x5947ac['push']('ck-suggestion-marker--active'),{'classes':_0x5947ac,'attributes':{'data-change-id':_0x260bc8}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x8afbb=>{_0x8afbb['on']('element:pre',(_0x4867bd,_0xcbafec,_0x5de78f)=>{const _0x3edfe6=_0xcbafec['viewItem']['getChild'](0x0);if(!_0x3edfe6||!_0x3edfe6['is']('element','code'))return;if(!_0x5de78f['consumable']['consume'](_0x3edfe6,{'attributes':['vid_start','vid_end']}))return;const _0x1862bd=_0xcbafec['modelRange']['start']['nodeAfter'];_0x5de78f['writer']['setAttribute']('vid_start',_0x3edfe6['getAttribute']('vid_start'),_0x1862bd),_0x5de78f['writer']['setAttribute']('vid_end',_0x3edfe6['getAttribute']('vid_end'),_0x1862bd);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1eaf51=>{_0x1eaf51['on']('element',(_0x1f74e3,_0x52528,_0x2d0933)=>{if(!_0x2d0933['consumable']['consume'](_0x52528['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x52528['modelRange']['isCollapsed'])return;const _0x16e02c=_0x52528['modelRange']['start']['nodeAfter'];_0x16e02c['hasAttribute']('vid_start')||_0x16e02c['hasAttribute']('vid')||(_0x2d0933['writer']['setAttribute']('vid_start',_0x52528['viewItem']['getAttribute']('vid_start'),_0x16e02c),_0x2d0933['writer']['setAttribute']('vid_end',_0x52528['viewItem']['getAttribute']('vid_end'),_0x16e02c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xd5b98e=>_0xd5b98e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2abf15,[,_0x3ca4c0])=>{['vid_start','vid_end','vid']['includes'](_0x3ca4c0)&&(_0x2abf15['return']=!0x0,_0x2abf15['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5e828d=>{_0x5e828d['on']('attribute:vid',(_0x52e7bc,_0x25d388,_0x38c082)=>{if('\x20'!=_0x25d388['item']['data']||_0x25d388['item']['parent']['maxOffset']>0x1)return;if(!_0x38c082['consumable']['consume'](_0x25d388['item'],_0x52e7bc['name']))return;const _0x30f315=_0x38c082['writer'],_0x14c269=_0x38c082['mapper']['toViewRange'](_0x25d388['range']);_0x30f315['wrap'](_0x14c269,_0x30f315['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x278ee1){const _0x30a593=_0x278ee1['plugins']['get']('RevisionViewer');return(_0x52e380,_0x1e8a96,_0x2564ea)=>{const _0x2ef6ce=_0x1e8a96['markerName']['split'](':')[0x1],_0x34dd66=_0x30a593['_getChangeFromId'](_0x2ef6ce);if(!_0x34dd66)return null;const _0x58a2eb='add'==_0x34dd66['type']?'split':'merge';if(!_0x2564ea['consumable']['test'](_0x1e8a96['markerRange'],_0x52e380['name']))return;const _0x4c4523=_0x1e8a96['markerRange']['getWalker'](),_0x3774ca=_0x1e8a96['markerRange']['start'],_0x493092=_0x278ee1['model']['schema'];let _0x1158b2=null,_0x296860=null,_0x2a38fa=!0x1,_0x508e76=!0x1;for(const _0x511521 of _0x4c4523){const _0x30e7fe=_0x511521['item'];_0x2a38fa=_0x2a38fa||_0x493092['isContent'](_0x30e7fe);const _0x43cc0f=_0x2564ea['mapper']['toViewElement'](_0x30e7fe);if(_0x43cc0f&&_0x43cc0f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x511521['type']&&(_0x493092['isBlock'](_0x30e7fe)&&!_0x493092['isLimit'](_0x30e7fe)&&(_0x30e7fe['nextSibling']||_0x3774ca['isAtEnd']?_0x1158b2&&_0x1158b2['parent']==_0x30e7fe||(_0x1158b2=_0x30e7fe,_0x4d631c(_0x511521['previousPosition']),_0x508e76=!0x0):_0x296860=_0x296860||_0x511521['previousPosition']));}function _0x4d631c(_0x2d7e23){const _0x55131a=_0x2564ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58a2eb}),_0x3c5141=_0x2564ea['mapper']['toViewPosition'](_0x2d7e23);_0x34dd66['data']['isSuggestion']&&_0x2564ea['writer']['addClass']('ck-suggestion-marker-'+_0x58a2eb+'-new',_0x55131a),_0x30a593['activeChange']==_0x34dd66&&_0x2564ea['writer']['addClass']('ck-suggestion-marker--active',_0x55131a),_0x2564ea['writer']['insert'](_0x3c5141,_0x55131a),_0x2564ea['mapper']['bindElementToMarker'](_0x55131a,_0x1e8a96['markerName']);}_0x2a38fa||_0x508e76||!_0x296860||_0x4d631c(_0x296860);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x39bcfb,_0x5643e5,_0x10b9e1)=>{const _0x4c5111=_0x10b9e1['mapper']['markerNameToElements'](_0x5643e5['markerName']);if(_0x4c5111){for(const _0xf75f7 of _0x4c5111)(_0xf75f7['hasClass']('ck-suggestion-marker-split')||_0xf75f7['hasClass']('ck-suggestion-marker-merge'))&&(_0x10b9e1['mapper']['unbindElementFromMarkerName'](_0xf75f7,_0x5643e5['markerName']),_0x10b9e1['writer']['remove'](_0xf75f7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x114ed5,_0x2cb4db,_0x4e6e6f)=>{const _0x3fd470=_0x2cb4db['markerName']['split'](':')[0x1],_0x436246=this['_getChangeFromId'](_0x3fd470);if(!_0x436246)return null;const _0x5af1df='add'==_0x436246['type']?'split':'merge';if(_0x4e6e6f['consumable']['test'](_0x2cb4db['markerRange'],_0x114ed5['name']))for(const _0x3033cd of _0x2cb4db['markerRange']['getItems']()){if(!_0x3033cd['is']('element','softBreak'))continue;const _0x49e24c=_0x4e6e6f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5af1df}),_0x95739a=_0x4e6e6f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3033cd));_0x436246['data']['isSuggestion']&&_0x4e6e6f['writer']['addClass']('ck-suggestion-marker-'+_0x5af1df+'-new',_0x49e24c),this['activeChange']==_0x436246&&_0x4e6e6f['writer']['addClass']('ck-suggestion-marker--active',_0x49e24c),_0x4e6e6f['writer']['insert'](_0x95739a,_0x49e24c),_0x4e6e6f['mapper']['bindElementToMarker'](_0x49e24c,_0x2cb4db['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x11fbcf=>{for(const _0x225645 of this['editor']['model']['document']['getRootNames']()){const _0x2fdc0e=this['editor']['model']['document']['getRoot'](_0x225645),_0xa029bd=this['editor']['editing']['view']['document']['getRoot'](_0x225645);if(_0xa029bd){const _0x3b5107=_0x2fdc0e['getAttribute']('revisionHistoryAttachChange');if(_0x11fbcf['removeAttribute']('data-change-id',_0xa029bd),_0x11fbcf['removeClass']('ck-revision-history-root-add',_0xa029bd),_0x11fbcf['removeClass']('ck-revision-history-root-remove',_0xa029bd),_0x11fbcf['removeClass']('ck-revision-history-root--active',_0xa029bd),_0x3b5107){const _0x4f99e3=this['_getChangeFromId'](_0x3b5107);if(!_0x4f99e3)return null;_0x11fbcf['setAttribute']('data-change-id',_0x3b5107,_0xa029bd),_0x11fbcf['addClass']('ck-revision-history-root-'+_0x4f99e3['type'],_0xa029bd),this['activeChange']==_0x4f99e3&&_0x11fbcf['addClass']('ck-revision-history-root--active',_0xa029bd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x56ba01=>'revision-comment:'+_0x56ba01,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x119ae3=>'revision-suggestion:'+_0x119ae3,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x7edf5=>({'name':'suggestion:'+_0x7edf5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x43e767=>{const _0x5b727c=_0x43e767['markerName']['split'](':')[0x1];return'insertion'!=_0x5b727c&&'deletion'!=_0x5b727c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5b727c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x56c94,_0xae16b8,_0x34b7eb)=>{const _0x41a80c=_0x34b7eb['mapper']['markerNameToElements'](_0xae16b8['markerName']);if(_0x41a80c){for(const _0x5f2b67 of _0x41a80c)_0x5f2b67['is']('uiElement')&&(_0x34b7eb['mapper']['unbindElementFromMarkerName'](_0x5f2b67,_0xae16b8['markerName']),_0x34b7eb['writer']['remove'](_0x5f2b67));}},{'priority':'high'});}['_getChangeFromId'](_0x5d4d6d){return this['_changeIdToChange']['get'](_0x5d4d6d);}['_getViewForChange'](_0x4bb183){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x4bb183),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x564ced,_0x4f2259,_0x229f42,_0x44512a)=>{_0x44512a&&this['_balloon']['remove'](_0x44512a),_0x229f42&&(this['_balloon']['add']({'view':_0x229f42,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4c260b=this['editor']['editing'],_0x5111fb=this['_getChangeFromId'](_0x229f42['changeId']);let _0xe543b3;if(_0x5111fb['data']['isOnRoot']){const _0x4e6ca7=_0x4c260b['view']['getDomRoot'](_0x5111fb['rootName']);_0xe543b3=Array['from'](_0x4e6ca7['getClientRects']());}else{const _0x410770=this['editor']['model']['markers']['get']('revision:'+_0x229f42['changeId']);_0xe543b3=Array['from'](_0x4c260b['mapper']['markerNameToElements'](_0x410770['name']))['map'](_0x782531=>_0x4c260b['view']['domConverter']['mapViewToDom'](_0x782531))['map'](_0x12a70f=>Array['from'](_0x12a70f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xe543b3[0x0];return _0xe543b3['find'](_0x1cedbf=>_0x1cedbf['top']-0x3<=this['_activeViewTarget']['y']&&_0x1cedbf['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1cedbf['left']-0x3<=this['_activeViewTarget']['x']&&_0x1cedbf['right']+0x3>=this['_activeViewTarget']['x'])||_0xe543b3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3bb32a,_0x3a6c6b,_0x5cb5e5,_0x18f6fb)=>{this['activeView']=_0x5cb5e5?this['_getViewForChange'](_0x5cb5e5):null,this['editor']['model']['change'](()=>{const _0x166379=this['editor']['editing'];_0x18f6fb&&(_0x18f6fb['data']['isOnRoot']?_0x166379['view']['change'](_0xa84cbf=>{_0xa84cbf['removeClass']('ck-revision-history-root--active',_0x166379['view']['document']['getRoot'](_0x18f6fb['rootName']));}):_0x166379['reconvertMarker']('revision:'+_0x18f6fb['id'])),_0x5cb5e5&&(_0x5cb5e5['data']['isOnRoot']?_0x166379['view']['change'](_0x28700a=>{_0x28700a['addClass']('ck-revision-history-root--active',_0x166379['view']['document']['getRoot'](_0x5cb5e5['rootName']));}):_0x166379['reconvertMarker']('revision:'+_0x5cb5e5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1e479e,_0x2e52ab)=>{if(this['activeChange'])return;const _0x198509=this['_findChangeIdFromDomTarget'](_0x2e52ab['target']),_0x3d9ca3=this['_changeIdToChange']['get'](_0x198509);_0x3d9ca3?(this['_activeViewTarget']={'x':_0x2e52ab['domEvent']['x'],'y':_0x2e52ab['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3d9ca3)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x314cf5,_0x4e921c)=>{const _0x56a4c8=this['_findChangeIdFromDomTarget'](_0x4e921c['target']),_0x53cb52=this['_changeIdToChange']['get'](_0x56a4c8);_0x53cb52?(this['_activeViewTarget']={'x':_0x4e921c['domEvent']['x'],'y':_0x4e921c['domEvent']['y']},_0x53cb52===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x53cb52):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xf353c6){do{const _0x3dc683=_0xf353c6['getAttribute']('data-change-id');if(_0x3dc683)return _0x3dc683;_0xf353c6=_0xf353c6['parent'];}while(_0xf353c6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x51cae5=>{for(const _0x2c5e86 of this['editor']['model']['markers'])_0x51cae5['removeMarker'](_0x2c5e86);});}}function X(_0x23c8a3,_0x5d948d){return(_0x20074c,_0x371450,_0x3d61e2)=>{if(!_0x3d61e2['consumable']['test'](_0x371450['markerRange'],_0x20074c['name']))return;const _0x2f9a26=_0x371450['markerRange']['getWalker'](),_0x251055=_0x371450['markerRange']['start'],_0x34c842=_0x23c8a3['model']['schema'];let _0x4bb2e4=null,_0x209ab2=null,_0x492bdb=!0x1,_0x31c7f8=!0x1;for(const _0x339601 of _0x2f9a26){const _0x341b92=_0x339601['item'];_0x492bdb=_0x492bdb||_0x34c842['isContent'](_0x341b92);const _0x512739=_0x3d61e2['mapper']['toViewElement'](_0x341b92);if(_0x512739&&_0x512739['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x339601['type']&&(_0x34c842['isBlock'](_0x341b92)&&!_0x34c842['isLimit'](_0x341b92)&&(_0x341b92['nextSibling']||_0x251055['isAtEnd']?_0x4bb2e4&&_0x4bb2e4['parent']==_0x341b92||(_0x4bb2e4=_0x341b92,_0x38bbf4(_0x339601['previousPosition']),_0x31c7f8=!0x0):_0x209ab2=_0x209ab2||_0x339601['previousPosition']));}function _0x38bbf4(_0x18045f){const _0x4263be=_0x3d61e2['mapper']['toViewPosition'](_0x18045f),_0x263f9b=_0x3d61e2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5d948d});_0x3d61e2['writer']['insert'](_0x4263be,_0x263f9b),_0x3d61e2['mapper']['bindElementToMarker'](_0x263f9b,_0x371450['markerName']);}_0x492bdb||_0x31c7f8||!_0x209ab2||_0x38bbf4(_0x209ab2);};}class wt extends _0x57bca6{constructor(_0x491e0b){super(_0x491e0b);const _0x408dbe=_0x491e0b['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x408dbe,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x408dbe,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ee585=this['editor'],_0x558299=_0x2ee585['plugins']['get'](m),_0x20492c=_0x558299['isReady']?_0x558299['diff']['newRevisionId']:null;_0x2ee585['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x20492c);}['refresh'](){const {isReady:_0x16e333,isEnabled:_0x457ce0,repository:_0x165492,diff:_0x5825f6}=this['editor']['plugins']['get'](m),_0x37bb1b=_0x5825f6&&_0x165492['getLaterVisibleRevision'](_0x5825f6['newRevisionId']);this['isEnabled']=_0x16e333&&_0x457ce0&&Boolean(_0x37bb1b);}}class pt extends _0x57bca6{['_step'];constructor(_0x3e47b4,{direction:_0x38e827}){super(_0x3e47b4);const _0x2a839a=_0x3e47b4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x38e827?0x1:-0x1,this['listenTo'](_0x2a839a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2a839a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2a839a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1ae923=this['editor'],_0x1633a4=_0x1ae923['plugins']['get'](m),{isNavigationMode:_0xcc0126,currentChangeNumber:_0x3d2503}=_0x1633a4;let _0x312b60;if(_0x1633a4['activeChange']=_0xcc0126?_0x1633a4['diff']['changes']['get'](_0x3d2503+this['_step']):_0x1633a4['diff']['changes']['first'],_0x1633a4['activeChange']['data']['isOnRoot'])_0x312b60=_0x1ae923['editing']['view']['getDomRoot'](_0x1633a4['activeChange']['rootName']);else{const _0x3951c1=_0x1ae923['model']['markers']['get']('revision:'+_0x1633a4['activeChange']['id']);_0x312b60=_0x292118(_0x1ae923['editing'],_0x3951c1);}_0x193bf5({'target':_0x312b60,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x27492f,currentChangeNumber:_0x1eb6b3,numberOfChanges:_0x59b95f,isReady:_0x561315,isEnabled:_0x41ac1a}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x41ac1a&&_0x561315&&_0x59b95f)&&(!_0x27492f||(0x1===this['_step']?_0x1eb6b3<_0x59b95f-0x1:_0x1eb6b3>0x0));}}class _i extends _0x4ce89f{constructor(_0x3c297d){super(_0x3c297d);const _0x147679=this['bindTemplate'],_0x574d5a=new _0x55e2cf(_0x3c297d),_0x1593a=new _0x55e2cf(_0x3c297d);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',(_0x290049,_0x426b33)=>_0x290049&&_0x426b33>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1a6250,_0x119931,_0x34ea36,_0x487d13)=>{if(!_0x1a6250)return g(_0x3c297d,'Loading...');if(!_0x34ea36)return g(_0x3c297d,'No\x20changes');const _0x991cbf=g(_0x3c297d,'NUMBER_OF_CHANGES',_0x34ea36);return _0x487d13?g(_0x3c297d,'X_OF_Y_CHANGES',[_0x119931+0x1,_0x34ea36]):_0x991cbf;}),_0x574d5a['set']({'label':g(_0x3c297d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5c75c8}),_0x1593a['set']({'label':g(_0x3c297d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4950cd}),_0x574d5a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1593a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x574d5a['on']('execute',()=>this['fire']('execute','backward')),_0x1593a['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',_0x147679['if']('_isStatusLabelVisible','ck-hidden',_0x1bf1c3=>!_0x1bf1c3)]},'children':[{'text':_0x147679['to']('isNavigationMode',_0x1de222=>_0x1de222?g(_0x3c297d,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3c297d,'Total')+':\x20')}]},{'text':_0x147679['to']('_statusText')}]},new _0x50b2b1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x574d5a,_0x1593a]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4de1c4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x21b744=this['editor']['editing']['view'];_0x21b744['change'](_0x139d43=>{for(const _0x50ceb5 of _0x21b744['document']['roots'])_0x139d43['addClass'](ce,_0x50ceb5);});}['hide'](){const _0x5ce333=this['editor']['editing']['view'];_0x5ce333['change'](_0x47c12b=>{for(const _0x49d31d of _0x5ce333['document']['roots'])_0x47c12b['removeClass'](ce,_0x49d31d);});}}class R extends _0x4de1c4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x59f25f=this['editor'],_0xd2e50a=_0x59f25f['plugins']['get'](m),_0x4f4aa1=_0x59f25f['plugins']['get'](le);_0x59f25f['ui']['componentFactory']['add']('exitToEditing',_0x1c17ca=>{const _0x3990be=new _0x55e2cf(_0x1c17ca);return _0x3990be['set']({'label':g(_0x1c17ca,'Back\x20to\x20editing'),'icon':_0x532e77,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3990be,'execute',()=>{_0x59f25f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3990be;}),_0x59f25f['ui']['componentFactory']['add']('restoreRevision',_0x38f8a6=>{const _0x2c3870=new _0x55e2cf(_0x38f8a6);return _0x2c3870['set']({'label':g(_0x38f8a6,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2c3870['bind']('isEnabled')['to'](_0x59f25f['commands']['get']('restoreRevision')),this['listenTo'](_0x2c3870,'execute',()=>_0x59f25f['execute']('restoreRevision')),_0x2c3870;}),_0x59f25f['ui']['componentFactory']['add']('changesNavigation',_0x2f553a=>{const _0x186e13=new _i(_0x2f553a),_0x1788fb=_0x59f25f['commands']['get']('showPreviousChange'),_0x5246de=_0x59f25f['commands']['get']('showNextChange');return _0x186e13['bind']('isBackwardNavigationEnabled')['to'](_0x1788fb,'isEnabled'),_0x186e13['bind']('isForwardNavigationEnabled')['to'](_0x5246de,'isEnabled'),_0x186e13['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xd2e50a),this['listenTo'](_0x186e13,'execute',(_0x709ac9,_0x40eca7)=>{_0x59f25f['execute']('forward'===_0x40eca7?'showNextChange':'showPreviousChange');}),_0x186e13;}),_0x4f4aa1['show'](),_0xd2e50a['on']('change:isReady',(_0x553d69,_0x5ebce2,_0x426342)=>{_0x426342?_0x4f4aa1['hide']():_0x4f4aa1['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x240e74,_0x371496){super(_0x240e74,_0x371496);const _0x473838=this['bindTemplate'];this['set']({'label':g(_0x240e74,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x240e74,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x473838['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x18155e=this['fieldView']['element'];this['_tooltipString']=_0x18155e['scrollWidth']>_0x18155e['clientWidth']&&_0x18155e['value']||'';}}class oi extends _0x4ce89f{constructor(_0x4b2e58,_0x5c6f23,_0x3609f8){super(_0x4b2e58);const _0x11c76c=new _0x422375();_0x11c76c['set']({'content':_0x3b41b4,'viewBox':'0\x200\x2011\x2010'});const _0xfbf3da=['ck','ck-revision-history-sidebar__revision-author'];_0x3609f8&&_0xfbf3da['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5a3a1a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4b2e58,_0x3609f8?'Revision\x20creator':'Revision\x20author')},'children':[_0x11c76c,_0x5c6f23['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xfbf3da},'children':_0x5a3a1a});}}function ni(_0x4859f5,_0x2009eb){const _0x343906=_0x4859f5['bindTemplate'],_0x5064ab=_0x4859f5['locale'],_0x13e15c=_0x4bf195(_0x5064ab);_0x13e15c['panelPosition']='sw';const _0x3ee122=function(_0x32c18d,_0x266e88){const _0x302219=function(_0x4d4d35,_0x296029){const _0x2d9a63=_0x4d4d35['locale'],_0x5b9fd3={'Compare\x20against\x20selected':g(_0x2d9a63,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2d9a63,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2d9a63,'Restore\x20this\x20revision')};return _0x296029['map'](_0x31c1d2=>{const _0x4328a5=_0x5b9fd3[_0x31c1d2['name']];return _0x4328a5&&_0x4328a5!==_0x31c1d2['name']&&(_0x31c1d2['name']=_0x4328a5),_0x31c1d2;});}(_0x32c18d,_0x266e88),_0x10a595=new _0x5e3e8a();for(const _0x2eef03 of _0x302219){const _0x506ccf={'type':'button','model':new to({'label':_0x2eef03['name'],'class':_0x2eef03['class'],'withText':!0x0,'role':'menuitem','_action':_0x2eef03['action']})};_0x506ccf['model']['bind']('isEnabled')['to'](_0x32c18d,'isActionsDropdownOpen',_0x2b51a5=>'function'!=typeof _0x2eef03['isEnabled']||(!_0x2b51a5||_0x2eef03['isEnabled'](_0x32c18d))),_0x10a595['add'](_0x506ccf);}return _0x10a595;}(_0x4859f5,_0x2009eb);return _0x4859f5['bind']('isActionsDropdownOpen')['to'](_0x13e15c,'isOpen'),_0x13e15c['buttonView']['set']({'label':g(_0x5064ab,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x20f678}),_0x13e15c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x343906['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x343906['to'](_0x45b5d4=>_0x45b5d4['stopPropagation']())}}),_0x13e15c['on']('execute',_0x3b62cd=>{_0x4859f5['isReady']&&'function'==typeof _0x3b62cd['source']['_action']&&_0x3b62cd['source']['_action'](_0x4859f5);}),_0x423aa5(_0x13e15c,_0x3ee122,{'role':'menu'}),_0x13e15c['listenTo'](_0x4859f5,'change:isActionsDropdownOpen',(_0x3d7722,_0x426c32,_0x364be0)=>{if(_0x364be0)for(const _0x3b9315 of _0x13e15c['listView']['items']){const _0x37b395=_0x3b9315['children']['first'],_0x52450c=_0x2009eb['find'](_0x3bf9ca=>_0x3bf9ca['action']===_0x37b395['_action'])['isVisible'];_0x3b9315['isVisible']=void 0x0===_0x52450c||_0x52450c(_0x4859f5);}}),_0x13e15c;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0xda1eae(_0x4ce89f){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x26b8fa,_0x28486c,_0x3217a4,_0x47d65b){super(_0x26b8fa);const _0x238053=this['bindTemplate'],_0x527cc1=function(_0x1b6173,_0x4958fa){const _0x2313d1=Array['from'](_0x4958fa['authors'])['filter'](_0x319158=>_0x319158!=_0x4958fa['creator']);return _0x4958fa['creator']&&_0x2313d1['unshift'](_0x4958fa['creator']),_0x2313d1['map'](_0x46ffb5=>new oi(_0x1b6173,_0x46ffb5,_0x46ffb5==_0x4958fa['creator']));}(_0x26b8fa,_0x28486c);this['id']=_0x28486c['id'],this['_revision']=_0x28486c,this['_requireRevisionName']=_0x47d65b,this['bind']('name','createdAt')['to'](_0x28486c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x26acd5=>{return _0x4b2b7a=_0x26b8fa['uiLanguage'],(_0x1648bf=_0x26acd5)['toLocaleDateString'](_0x4b2b7a,{'month':'long','day':'numeric'})+',\x20'+_0x1648bf['toLocaleTimeString'](_0x4b2b7a,{'hour':'numeric','minute':'numeric'});var _0x4b2b7a,_0x1648bf;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x26b8fa,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1d6650=>_0x1d6650||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4d26ec,_0x526997)=>_0x4d26ec&&_0x526997),this['revisionActionsView']=_0x3217a4&&_0x3217a4['length']?ni(this,_0x3217a4):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x238053['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x238053['if']('isEnabled','ck-disabled',_0x56bac8=>!_0x56bac8),_0x238053['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x238053['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x238053['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':_0x238053['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':_0x527cc1}]},this['revisionActionsView']],'on':{'click':_0x238053['to'](_0x3a3143=>{_0x3a3143['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x32d650=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x32d650,'change',()=>{this['_requireRevisionName']&&!_0x32d650['value']||this['fire']('setName',{'id':this['id'],'name':_0x32d650['value']}),_0x32d650['value']||(_0x32d650['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(_0x2584d4,_0xc82e8a){const _0x56af28=_0x43b502['fromJSDate'](_0x2584d4)['setLocale'](_0xc82e8a),_0x3da89d=_0x43b502['local'](),_0x41634a=_0x3da89d['minus']({'days':0x1})['startOf']('day');let _0x2e40f2,_0x3305f2;return _0x56af28['hasSame'](_0x3da89d,'day')?(_0x2e40f2=_0x56af28['startOf']('day')['toJSDate'](),_0x3305f2=_0x56af28['toRelativeCalendar']()):_0x56af28['hasSame'](_0x41634a,'day')?(_0x2e40f2=_0x41634a['toJSDate'](),_0x3305f2=_0x56af28['toRelativeCalendar']()):_0x56af28['hasSame'](_0x3da89d,'week')?(_0x2e40f2=_0x56af28['startOf']('week')['toJSDate'](),_0x3305f2=_0x56af28['weekdayLong']||''):_0x56af28['hasSame'](_0x3da89d,'year')?(_0x2e40f2=_0x56af28['startOf']('month')['toJSDate'](),_0x3305f2=_0x56af28['monthLong']||''):(_0x2e40f2=_0x56af28['startOf']('year')['toJSDate'](),_0x3305f2=String(_0x56af28['year'])),{'startDate':_0x2e40f2,'localizedPeriodName':_0x3305f2};}class mi extends _0x4ce89f{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x18c3ff,_0x53c9bf,_0x1e8431,_0x43ae70){super(_0x18c3ff);const _0x3f8ffa=vi(_0x53c9bf,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x53c9bf,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1e8431,this['_requireRevisionName']=_0x43ae70,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':_0x3f8ffa}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4c5661){const _0x1ac389=new ai(this['locale'],_0x4c5661,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1ac389);}['removeRevision'](_0x56c4f9){const _0x27eb3b=this['revisionViews']['find'](_0x171c27=>_0x171c27['id']===_0x56c4f9['id']);this['revisionViews']['remove'](_0x27eb3b);}}class as extends _0x4ce89f{constructor(_0xa468b5){super(_0xa468b5);const _0x1fa3a0=new _0x422375();_0x1fa3a0['content']=_0x4860b4,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1fa3a0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xa468b5,'Revision\x20history')]}]});}}class di extends _0x4ce89f{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x406b98,_0x4e137b,_0x528dd8,_0x4ef6d7){super(_0x406b98);const _0x5046c0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4e137b,this['_revisionActions']=_0x528dd8,this['_requireRevisionName']=_0x4ef6d7,this['on']('select',(_0x5556dd,_0x2a8e7c)=>{this['fire']('revisionSelected',_0x2a8e7c);}),this['on']('setName',(_0x3d3d35,_0x5aaea5)=>{this['fire']('revisionSetName',_0x5aaea5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x406b98),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5046c0['if']('isEnabled','ck-disabled',_0x130783=>!_0x130783)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x267f98 of this['_revisions'])this['_addRevision'](_0x267f98);this['_revisions']['on']('add',(_0x2a6a2,_0xdec6b5)=>{this['_addRevision'](_0xdec6b5);}),this['_revisions']['on']('remove',(_0x56484f,_0x67361e)=>{this['_removeRevision'](_0x67361e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x239367=>_0x239367['revisionViews']['map'](_0x83d6d1=>_0x83d6d1))['flat']();}['selectRevision'](_0x4aef9b){for(const _0x18a4bf of this['revisionViews'])_0x4aef9b&&_0x4aef9b['id']===_0x18a4bf['id']?_0x18a4bf['select']():_0x18a4bf['deselect']();}['highlightRevisions'](_0x39986e){for(const _0x3d313d of this['revisionViews'])_0x39986e['some'](({id:_0x228793})=>_0x228793===_0x3d313d['id'])?_0x3d313d['highlight']():_0x3d313d['unhighlight']();}['_addRevision'](_0x48dc26){const _0x44aa07=vi(_0x48dc26['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xf4dd70=this['timePeriodViews']['get'](0x0);_0xf4dd70&&_0xf4dd70['startDate']['getTime']()===_0x44aa07['getTime']()||(_0xf4dd70=new mi(this['locale'],_0x44aa07,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xf4dd70)),_0xf4dd70['addRevision'](_0x48dc26);}['_removeRevision'](_0x18fe77){const _0x125377=vi(_0x18fe77['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x125377)['removeRevision'](_0x18fe77);}['_getTimePeriodViewByStartDate'](_0x2d15a7){return this['timePeriodViews']['find'](_0x4a94fd=>_0x4a94fd['startDate']['getTime']()===_0x2d15a7['getTime']());}}class d extends _0x4de1c4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x187c92){super(_0x187c92),this['_revisionViewer']=_0x187c92['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2e1ebf=this['_revisionsRepository']['_revisions'],_0xe3c74a=this['_createRevisionActions'](),_0x5c6102=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x2e1ebf,_0xe3c74a,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',(_0x3244cc,_0x203719)=>{_0x203719['revisionViews']['on']('add',(_0x17042c,_0x1c8a39)=>{_0x1c8a39['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)),_0x5c6102['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3be6d3=this['_revisionsRepository']['getRevision'](0x0);if(_0x3be6d3){const _0xd114de=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3be6d3['id']);this['_revisionViewer']['compare'](_0x3be6d3,_0xd114de);}}['_handleRevisionSelected'](_0x43373a,_0x26ebcd){const _0x366be4=this['_revisionsRepository']['getRevision'](_0x26ebcd['id']),_0x18a8c2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x366be4['id']);this['_revisionViewer']['compare'](_0x366be4,_0x18a8c2);}['_handleRevisionSetName'](_0x1b37a7,_0x45184b){this['_revisionsRepository']['getRevision'](_0x45184b['id'])['setName'](_0x45184b['name']);}['_handleDiffChange'](_0x3c637c,_0x2a8192,_0x12eb5c){const _0x402a48=this['_revisionsRepository']['getRevisionsInDiff'](_0x12eb5c);_0x402a48['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x402a48),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x402a48[0x0]));}['_createRevisionActions'](){const _0x1a01c8=this['editor'],_0x5adc9b=d['availableRevisionActions'],_0x1eac8b=_0x1a01c8['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x1eac8b['length'])return _0x1eac8b['map'](_0x2d29f5=>{const _0x5f5e0d='string'==typeof _0x2d29f5?Object['assign']({},_0x5adc9b[_0x2d29f5]):_0x2d29f5;return _0x5f5e0d['action']=_0x5f5e0d['action']['bind'](this,_0x1a01c8),_0x5f5e0d['isVisible']&&(_0x5f5e0d['isVisible']=_0x5f5e0d['isVisible']['bind'](this,_0x1a01c8)),_0x5f5e0d;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3bb705},_0x477883)=>{const _0x34048e=_0x3bb705['get'](m),_0x9cdc77=_0x34048e['repository'];let _0x4233e7=_0x34048e['diff']['newRevisionId'],_0x3ca1d0=_0x477883['id'];_0x9cdc77['getIndex'](_0x4233e7)>_0x9cdc77['getIndex'](_0x3ca1d0)&&([_0x4233e7,_0x3ca1d0]=[_0x3ca1d0,_0x4233e7]),_0x34048e['compare'](_0x4233e7,_0x3ca1d0);},'isVisible':({plugins:_0x3cbec2},_0x1727ac)=>{const _0x461f20=_0x3cbec2['get'](m);return!(_0x461f20['repository']['getRevisionsInDiff'](_0x461f20['diff'])['length']>0x2)&&!_0x1727ac['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xb56a4a,{id:_0x24bbe4})=>{_0xb56a4a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x24bbe4);},'isVisible':({plugins:_0x515d79},_0x346bbf)=>!!_0x515d79['get'](m)['repository']['getLaterVisibleRevision'](_0x346bbf['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x14ef3f},{id:_0x24fef6,revisionNameView:_0x4984bd})=>{const _0x3a84d6=_0x14ef3f['get'](m),_0x12b499=_0x3a84d6['repository']['getEarlierVisibleRevision'](_0x24fef6);_0x3a84d6['compare'](_0x24fef6,_0x12b499),_0x4984bd['focus'](),_0x4984bd['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x52e753,_0x171ea1){super(_0x52e753),this['_view']=_0x171ea1,this['_toolbarConfig']=et(_0x52e753['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x10b039){const _0x37b12d=this['editor'],_0x44563a=this['view'],_0x43de6a=_0x37b12d['editing']['view'],_0x3c6eee=_0x44563a['editable'],_0x1c0450=_0x43de6a['document']['getRoot']();_0x3c6eee['name']=_0x1c0450['rootName'],_0x44563a['render']();const _0x2034b2=_0x3c6eee['element'];this['setEditableElement'](_0x3c6eee['name'],_0x2034b2),_0x44563a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x43de6a['attachDomRoot'](_0x2034b2),this['_elementReplacer']['replace'](_0x10b039,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x473d63=this['view'],_0xa0237=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xa0237['detachDomRoot'](_0x473d63['editable']['name']),_0x473d63['destroy']();}['_initToolbar'](){const _0x1fa864=this['view'];_0x1fa864['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1fa864['stickyPanel']['limiterElement']=_0x1fa864['element'],_0x1fa864['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4ebb82})=>_0x4ebb82),_0x1fa864['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1fa864['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1f7edd,_0x5933e6,_0x3ce96a={}){super(_0x1f7edd),this['stickyPanel']=new ht(_0x1f7edd),this['toolbar']=new dt(_0x1f7edd,{'shouldGroupWhenFull':_0x3ce96a['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1f7edd,_0x5933e6);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x137b80(_0x24ec21){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x47dc48,_0x4ce8f7){super(_0x4ce8f7),this['sourceElement']=_0x47dc48,this['model']['document']['createRoot']();const _0x3f59ba=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3f59ba);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x256335,_0x19b70d){const _0x5b1bb2=new this(_0x256335,_0x19b70d);return await _0x5b1bb2['initPlugins'](),await _0x5b1bb2['ui']['init'](_0x256335),await _0x5b1bb2['data']['init'](_0x5b1bb2['config']['get']('initialData')||''),_0x5b1bb2['fire']('ready'),_0x5b1bb2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x24b312{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ef9bf){function _0x3ba037(_0x5cb9da){return _0x5cb9da['map'](_0x30ab8a=>String['fromCharCode'](_0x30ab8a))['join']('');}super(_0x4ef9bf),this['result']='end',_0x4ef9bf[_0x3ba037([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ba037([0x76,0x69,0x65,0x77])][_0x3ba037([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ba037([0x61,0x75,0x74,0x6f]),_0x4ef9bf[_0x3ba037([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3ba037([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ba037([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3ba037([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3ba037([0x6f,0x6b])});}}class k extends _0x24b312{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1bdb2d){if(super(_0x1bdb2d),!this['editor']['config']['get']('revisionHistory'))throw new _0x4526eb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x562959=>this['_showRevisionViewer']({..._0x562959,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2f01f7=>this['_closeRevisionViewer'](_0x2f01f7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4917d9=>this['_restoreRevision'](_0x4917d9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1a78e7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1a78e7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5667ba){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5667ba);}['getRevision'](_0x115ad7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x115ad7);}['getRevisions'](_0x1f4796){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1f4796||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3e04dc=this['editor'],_0x3041ec=_0x1b9850(_0x3e04dc,p),_0x102f88=_0x3e04dc['plugins']['get']('RevisionTracker'),_0x555a66=_0x3e04dc['plugins']['get']('Users')['users'];return _0x3041ec['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3041ec['lazyRoots'],(_0x3041ec['plugins']['push'](_t,m,R,class extends _0x24b312{static get['requires'](){return[m,'Users'];}['init'](){const _0x102b61=this['editor']['plugins']['get']('Users');for(const _0x79b6d1 of _0x555a66)_0x79b6d1['isAnonymous']||_0x102b61['getUser'](_0x79b6d1['id'])||_0x102b61['addUser'](_0x79b6d1);const _0x2a08d2=_0x102f88['repository']['getRevisions']();let _0x2e2a6f=null;const _0xcd17f0=this['editor']['plugins']['get']('RevisionViewer');_0xcd17f0['adapter']=_0x102f88['adapter'],_0xcd17f0['bind']('isEnabled')['to'](_0x102f88),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3e04dc,'isReadOnly',_0x5a0516=>!_0x5a0516);for(const _0x456823 of _0x2a08d2){const _0x55f3fa=null===_0x456823['creator'];if(_0x55f3fa&&_0x456823['toVersion']===_0x456823['fromVersion'])continue;const _0x545c3c=_0x456823['toJSON']();_0xcd17f0['addRevisionData'](_0x545c3c,(_0x5317e2,_0x3b990b,_0x317db6)=>{if(_0x55f3fa){if(_0x2e2a6f)_0x2e2a6f['_update'](_0x5317e2,_0x3b990b);else{if(!_0x3b990b){const _0x2aba44=_0x317db6['toJSON']();_0x2aba44['id']=_0x5d30eb(),_0x102f88['saveRevision'](_0x2aba44,_0x317db6['toVersion'])['then'](_0x16bc8f=>{_0x2e2a6f=_0x16bc8f;});}}}else _0x456823['_update'](_0x5317e2,_0x3b990b);});}}},d),_0x3041ec);}['_enhanceShowRevisionViewerCallback'](){const _0x47b382=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xe857f9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3709b8=this['editor']['plugins']['get']('Autosave');await _0x3709b8['save']();}else await _0xe857f9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4f55ef=this['editor']['plugins']['get']('Dialog');_0x4f55ef['isOpen']&&_0x4f55ef['hide']();}const _0x12dbf2=this['_getRevisionViewerEditorConfig']();return _0x47b382(_0x12dbf2)['then'](_0x2b754f=>{return(this['_viewerEditor']=_0x2b754f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x2b754f);})['catch'](_0x5f8c2d=>(console['error'](_0x5f8c2d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x40af7e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x40af7e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x408caf=this['editor']['plugins']['get']('Annotations');_0x408caf['refreshVisibility'](),_0x408caf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1b96ab){const _0x1f3c5f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x581e17=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5baecb=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5baecb,_0x1b96ab)['then'](_0x330db2=>(_0x581e17['style']['display']='block',_0x1f3c5f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x330db2));}['_closeRevisionViewer'](_0x2f6ea){const _0x2dd752=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2dd752['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2f6ea['destroy']();}async['_restoreRevision'](_0x2f16df){const _0x204437=this['editor'],_0x54acd9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x28e621=_0x204437['plugins']['get']('RevisionTracker'),_0x27fa21=_0x204437['plugins']['get']('RevisionHistoryUtils'),_0x2dbb14=_0x54acd9['repository']['getRevision'](_0x2f16df);let _0x107a22,_0x5b356b,_0xdb5d51;try{await _0x27fa21['loadRevisionData'](_0x2dbb14,this['adapter']),_0x107a22=_0x27fa21['getRevisionDocumentData'](_0x2dbb14),_0x5b356b=_0x27fa21['getRevisionRootsAttributes'](_0x2dbb14);}catch(_0x2d5333){return void console['error'](_0x2d5333);}_0x204437['model']['change'](_0x10c8e9=>{for(const _0x1ee566 of Array['from'](_0x204437['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x10c8e9['removeMarker'](_0x1ee566);}),_0x54acd9['isReady']=!0x1,_0x204437['model']['enqueueChange'](_0x215657=>{_0x215657['setSelection'](null),_0x215657['removeSelectionAttribute'](_0x204437['model']['document']['selection']['getAttributeKeys']());const _0x4fed2f=Object['keys'](_0x107a22);for(const _0x47652b of _0x204437['model']['document']['roots'])'$graveyard'!=_0x47652b['rootName']&&_0x47652b['isAttached']()&&!_0x4fed2f['includes'](_0x47652b['rootName'])&&_0x215657['detachRoot'](_0x47652b);for(const _0x486c8b of _0x4fed2f){let _0x468b9e=_0x204437['model']['document']['getRoot'](_0x486c8b);_0x468b9e&&_0x468b9e['isAttached']()||(_0x468b9e=_0x215657['addRoot'](_0x486c8b));const _0x288ac2=_0x5b356b[_0x486c8b],_0x30a90f=Object['keys'](_0x288ac2),_0x36d0e4=_0x107a22[_0x486c8b];for(const _0x204af8 of _0x468b9e['getAttributeKeys']())_0x30a90f['includes'](_0x204af8)||_0x215657['removeAttribute'](_0x204af8,_0x468b9e);for(const _0x3539c0 of _0x30a90f)_0x215657['setAttribute'](_0x3539c0,_0x5b356b[_0x486c8b][_0x3539c0],_0x468b9e);_0x215657['remove'](_0x215657['createRangeIn'](_0x468b9e)),_0x215657['insert'](_0x204437['data']['parse'](_0x36d0e4,_0x468b9e),_0x468b9e,0x0);}});const _0x43f0df=g(_0x204437['locale'],'Restored');if(_0x2dbb14['name'])_0xdb5d51=-0x1==_0x2dbb14['name']['indexOf'](_0x43f0df)?_0x43f0df+':\x20'+_0x2dbb14['name']:_0x2dbb14['name'];else _0xdb5d51=_0x43f0df+':\x20'+(_0x2dbb14['createdAt']['toLocaleDateString'](_0x204437['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2dbb14['createdAt']['toLocaleTimeString'](_0x204437['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x28e621['saveRevision']({'name':_0xdb5d51}),_0x54acd9['isReady']=!0x0,_0x204437['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x456e2f){super(_0x456e2f),this['_revisionViewer']=_0x456e2f['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2bbbe9=this['_revisionsRepository']['_revisions'],_0x38735d=this['_createRevisionActions'](),_0x1d267=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2bbbe9,_0x38735d,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',(_0x34f3db,_0x548185)=>{_0x548185['revisionViews']['on']('add',(_0x37ef94,_0x58df99)=>{_0x58df99['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)),_0x1d267['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x294959=this['_revisionsRepository']['getRevision'](0x0);if(_0x294959){const _0xc1010a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x294959['id']);this['_revisionViewer']['compare'](_0x294959,_0xc1010a);}}['_handleRevisionSelected'](_0x3cb7e8,_0x5a9e91){const _0x2826c9=this['_revisionsRepository']['getRevision'](_0x5a9e91['id']),_0x1232e5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2826c9['id']);this['_revisionViewer']['compare'](_0x2826c9,_0x1232e5);}['_handleRevisionSetName'](_0x228b76,_0x172c2d){this['_revisionsRepository']['getRevision'](_0x172c2d['id'])['setName'](_0x172c2d['name']);}['_handleDiffChange'](_0x3047e2,_0x272f4f,_0x2b58c6){const _0x1d26f7=this['_revisionsRepository']['getRevisionsInDiff'](_0x2b58c6);_0x1d26f7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1d26f7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1d26f7[0x0]));}['_createRevisionActions'](){const _0xa9778d=this['editor'],_0xf1dd45=d['availableRevisionActions'],_0x5bbf26=_0xa9778d['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5bbf26['length'])return _0x5bbf26['map'](_0x35ec9f=>{const _0x55290c='string'==typeof _0x35ec9f?Object['assign']({},_0xf1dd45[_0x35ec9f]):_0x35ec9f;return _0x55290c['action']=_0x55290c['action']['bind'](this,_0xa9778d),_0x55290c['isVisible']&&(_0x55290c['isVisible']=_0x55290c['isVisible']['bind'](this,_0xa9778d)),_0x55290c;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x21dbde},_0x172a76)=>{const _0x5e0aaa=_0x21dbde['get'](m),_0x139c5f=_0x5e0aaa['repository'];let _0x969801=_0x5e0aaa['diff']['newRevisionId'],_0x4eb838=_0x172a76['id'];_0x139c5f['getIndex'](_0x969801)>_0x139c5f['getIndex'](_0x4eb838)&&([_0x969801,_0x4eb838]=[_0x4eb838,_0x969801]),_0x5e0aaa['compare'](_0x969801,_0x4eb838);},'isVisible':({plugins:_0x3e145e},_0xf4f401)=>{const _0x2af611=_0x3e145e['get'](m);return!(_0x2af611['repository']['getRevisionsInDiff'](_0x2af611['diff'])['length']>0x2)&&!_0xf4f401['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1e66b0,{id:_0x511b04})=>{_0x1e66b0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x511b04);},'isVisible':({plugins:_0x46fb5b},_0x2d5c44)=>!!_0x46fb5b['get'](m)['repository']['getLaterVisibleRevision'](_0x2d5c44['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x211e19},{id:_0x40f67b,revisionNameView:_0x2b5ffb})=>{const _0x5f2f31=_0x211e19['get'](m),_0x1895c1=_0x5f2f31['repository']['getEarlierVisibleRevision'](_0x40f67b);_0x5f2f31['compare'](_0x40f67b,_0x1895c1),_0x2b5ffb['focus'](),_0x2b5ffb['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3d08d1,_0x108381){super(_0x3d08d1),this['_view']=_0x108381,this['_toolbarConfig']=et(_0x3d08d1['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x233ea9){const _0x23054b=this['editor'],_0x2ffd16=this['view'],_0x2c4673=_0x23054b['editing']['view'],_0x390910=_0x2ffd16['editable'],_0x234a26=_0x2c4673['document']['getRoot']();_0x390910['name']=_0x234a26['rootName'],_0x2ffd16['render']();const _0x36b00a=_0x390910['element'];this['setEditableElement'](_0x390910['name'],_0x36b00a),_0x2ffd16['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2c4673['attachDomRoot'](_0x36b00a),this['_elementReplacer']['replace'](_0x233ea9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x661550=this['view'],_0x197991=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x197991['detachDomRoot'](_0x661550['editable']['name']),_0x661550['destroy']();}['_initToolbar'](){const _0x95ce56=this['view'];_0x95ce56['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x95ce56['stickyPanel']['limiterElement']=_0x95ce56['element'],_0x95ce56['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x25120f})=>_0x25120f),_0x95ce56['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x95ce56['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x26a600,_0x561493,_0x37e35b={}){super(_0x26a600),this['stickyPanel']=new ht(_0x26a600),this['toolbar']=new dt(_0x26a600,{'shouldGroupWhenFull':_0x37e35b['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x26a600,_0x561493);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ _0x1e2a6c(_0x138488){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3035a0,_0x28dff1){super(_0x28dff1),this['sourceElement']=_0x3035a0,this['model']['document']['createRoot']();const _0x16dc7c=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x16dc7c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x76a3bc,_0x2ea4ea){const _0x464703=new this(_0x76a3bc,_0x2ea4ea);return await _0x464703['initPlugins'](),await _0x464703['ui']['init'](_0x76a3bc),await _0x464703['data']['init'](_0x464703['config']['get']('initialData')||''),_0x464703['fire']('ready'),_0x464703;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x4de1c4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f061d){function _0x17f396(_0x112579){return _0x112579['map'](_0x4603a5=>String['fromCharCode'](_0x4603a5))['join']('');}super(_0x3f061d),this['result']='end',_0x3f061d[_0x17f396([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17f396([0x76,0x69,0x65,0x77])][_0x17f396([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17f396([0x61,0x75,0x74,0x6f]),_0x3f061d[_0x17f396([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17f396([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17f396([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17f396([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17f396([0x6f,0x6b])});}}class k extends _0x4de1c4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x53af62){if(super(_0x53af62),!this['editor']['config']['get']('revisionHistory'))throw new _0x3dc61d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xdbb98c=>this['_showRevisionViewer']({..._0xdbb98c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x7646f1=>this['_closeRevisionViewer'](_0x7646f1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xd0b3db=>this['_restoreRevision'](_0xd0b3db)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1dc2db){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1dc2db;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3dda2a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3dda2a);}['getRevision'](_0x117c58){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x117c58);}['getRevisions'](_0x56a622){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x56a622||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2d8e1c=this['editor'],_0x1da2ce=_0x1344d7(_0x2d8e1c,p),_0x153084=_0x2d8e1c['plugins']['get']('RevisionTracker'),_0xe55e9c=_0x2d8e1c['plugins']['get']('Users')['users'];return _0x1da2ce['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1da2ce['lazyRoots'],(_0x1da2ce['plugins']['push'](yt,m,R,class extends _0x4de1c4{static get['requires'](){return[m,'Users'];}['init'](){const _0x4f875e=this['editor']['plugins']['get']('Users');for(const _0x5f0de3 of _0xe55e9c)_0x5f0de3['isAnonymous']||_0x4f875e['getUser'](_0x5f0de3['id'])||_0x4f875e['addUser'](_0x5f0de3);const _0x30fdbc=_0x153084['repository']['getRevisions']();let _0x366f2c=null;const _0x230d64=this['editor']['plugins']['get']('RevisionViewer');_0x230d64['adapter']=_0x153084['adapter'],_0x230d64['bind']('isEnabled')['to'](_0x153084),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2d8e1c,'isReadOnly',_0x1dcc99=>!_0x1dcc99);for(const _0x312d2c of _0x30fdbc){const _0x5d002c=null===_0x312d2c['creator'];if(_0x5d002c&&_0x312d2c['toVersion']===_0x312d2c['fromVersion'])continue;const _0x39998c=_0x312d2c['toJSON']();_0x230d64['addRevisionData'](_0x39998c,(_0x351eaa,_0x29b19b,_0x270e65)=>{if(_0x5d002c){if(_0x366f2c)_0x366f2c['_update'](_0x351eaa,_0x29b19b);else{if(!_0x29b19b){const _0x32e806=_0x270e65['toJSON']();_0x32e806['id']=_0xb8234b(),_0x153084['saveRevision'](_0x32e806,_0x270e65['toVersion'])['then'](_0x2675b3=>{_0x366f2c=_0x2675b3;});}}}else _0x312d2c['_update'](_0x351eaa,_0x29b19b);});}}},d),_0x1da2ce);}['_enhanceShowRevisionViewerCallback'](){const _0x105e71=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x100976=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x59b8ac=this['editor']['plugins']['get']('Autosave');await _0x59b8ac['save']();}else await _0x100976['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x44e771=this['editor']['plugins']['get']('Dialog');_0x44e771['isOpen']&&_0x44e771['hide']();}const _0x459022=this['_getRevisionViewerEditorConfig']();return _0x105e71(_0x459022)['then'](_0x7b1db9=>{return(this['_viewerEditor']=_0x7b1db9,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x7b1db9);})['catch'](_0x9c7c0d=>(console['error'](_0x9c7c0d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1c5eb3=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1c5eb3(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x501efb=this['editor']['plugins']['get']('Annotations');_0x501efb['refreshVisibility'](),_0x501efb['refreshPositioning']();}})));}['_showRevisionViewer'](_0xeb8c01){const _0x5f4494=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22e663=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x163506=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x163506,_0xeb8c01)['then'](_0x49cf85=>(_0x22e663['style']['display']='block',_0x5f4494['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x49cf85));}['_closeRevisionViewer'](_0x249637){const _0x4ace66=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4ace66['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x249637['destroy']();}async['_restoreRevision'](_0x280eb4){const _0x5eeb59=this['editor'],_0x2802f4=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1dd2d0=_0x5eeb59['plugins']['get']('RevisionTracker'),_0x151d96=_0x5eeb59['plugins']['get']('RevisionHistoryUtils'),_0x13a5a0=_0x2802f4['repository']['getRevision'](_0x280eb4);let _0x430c18,_0x4fda89,_0xb4da37;try{await _0x151d96['loadRevisionData'](_0x13a5a0,this['adapter']),_0x430c18=_0x151d96['getRevisionDocumentData'](_0x13a5a0),_0x4fda89=_0x151d96['getRevisionRootsAttributes'](_0x13a5a0);}catch(_0x261bfc){return void console['error'](_0x261bfc);}_0x5eeb59['model']['change'](_0x13d38d=>{for(const _0x9ae611 of Array['from'](_0x5eeb59['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x13d38d['removeMarker'](_0x9ae611);}),_0x2802f4['isReady']=!0x1,_0x5eeb59['model']['enqueueChange'](_0x44f39a=>{_0x44f39a['setSelection'](null),_0x44f39a['removeSelectionAttribute'](_0x5eeb59['model']['document']['selection']['getAttributeKeys']());const _0x219382=Object['keys'](_0x430c18);for(const _0x4e9353 of _0x5eeb59['model']['document']['roots'])'$graveyard'!=_0x4e9353['rootName']&&_0x4e9353['isAttached']()&&!_0x219382['includes'](_0x4e9353['rootName'])&&_0x44f39a['detachRoot'](_0x4e9353);for(const _0x5e1955 of _0x219382){let _0x2608c4=_0x5eeb59['model']['document']['getRoot'](_0x5e1955);_0x2608c4&&_0x2608c4['isAttached']()||(_0x2608c4=_0x44f39a['addRoot'](_0x5e1955));const _0x58c6db=_0x4fda89[_0x5e1955],_0x15f81c=Object['keys'](_0x58c6db),_0x14f7e6=_0x430c18[_0x5e1955];for(const _0x269b28 of _0x2608c4['getAttributeKeys']())_0x15f81c['includes'](_0x269b28)||_0x44f39a['removeAttribute'](_0x269b28,_0x2608c4);for(const _0x5c4c4c of _0x15f81c)_0x44f39a['setAttribute'](_0x5c4c4c,_0x4fda89[_0x5e1955][_0x5c4c4c],_0x2608c4);_0x44f39a['remove'](_0x44f39a['createRangeIn'](_0x2608c4)),_0x44f39a['insert'](_0x5eeb59['data']['parse'](_0x14f7e6,_0x2608c4),_0x2608c4,0x0);}});const _0x37f929=g(_0x5eeb59['locale'],'Restored');if(_0x13a5a0['name'])_0xb4da37=-0x1==_0x13a5a0['name']['indexOf'](_0x37f929)?_0x37f929+':\x20'+_0x13a5a0['name']:_0x13a5a0['name'];else _0xb4da37=_0x37f929+':\x20'+(_0x13a5a0['createdAt']['toLocaleDateString'](_0x5eeb59['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x13a5a0['createdAt']['toLocaleTimeString'](_0x5eeb59['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1dd2d0['saveRevision']({'name':_0xb4da37}),_0x2802f4['isReady']=!0x0,_0x5eeb59['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};