@ckeditor/ckeditor5-revision-history 44.0.0-alpha.0 → 44.0.0-alpha.10

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 (179) hide show
  1. package/LICENSE.md +7 -7
  2. package/README.md +14 -11
  3. package/build/revision-history.js +1 -1
  4. package/dist/index.js +6 -6
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.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 +8 -8
  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/revisionsrepository.js +1 -1
  159. package/src/revisiontracker.js +1 -1
  160. package/src/revisionviewer.js +1 -1
  161. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  162. package/src/ui/revision/revisionauthorview.js +1 -1
  163. package/src/ui/revision/revisionnameview.js +1 -1
  164. package/src/ui/revision/revisionview.js +2 -2
  165. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  166. package/src/ui/revision/subrevisionview.js +1 -1
  167. package/src/ui/revision/utils.js +1 -1
  168. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  174. package/src/ui/revisionssidebar/utils.js +1 -1
  175. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  176. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  177. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  179. 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 _0x6de063,uid as _0x2c16be,Collection as _0x589480,logWarning as _0x362b9c,FocusTracker as _0x2c85f5,KeystrokeHandler as _0x523557,scrollViewportToShowTarget as _0x22a3d1,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x39b6eb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x57ef62,set as _0x144e7c,unset as _0x36b362,isEqual as _0x29e142}from'lodash-es';import{Plugin as _0x51bff9,PendingActions as _0x346920,icons as _0x582ab3,Command as _0x1ba204,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x532a7f,getMarkerDomElement as _0x546cf8,ConfirmMixin as ti,sanitizeEditorConfig as _0x32cdda}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x46a385,ViewText as _0x2bd295,ViewElement as _0x12a678,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x53de37,ViewAttributeElement as _0x3a1a5c,ViewEmptyElement as _0x11dac0,ViewRawElement as _0x263c1c,ViewUIElement as _0x55ce4d,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x48877a,submitHandler as _0x4bb7b4,LabeledFieldView as _0x38e76f,createLabeledInputText as _0x229c6c,createDropdown as _0x193195,ListView as _0x2e1bb0,ListItemView as _0x1ac59a,ButtonView as te,MenuBarMenuView as _0x40c2c3,MenuBarMenuListView as _0x51175b,MenuBarMenuListItemView as _0x1b0a56,MenuBarMenuListItemButtonView as _0x291ccc,ContextualBalloon as _0x4ace0d,ToolbarSeparatorView as _0x5a3178,IconView as _0xf1a94e,addListToDropdown as to,ViewModel as _0x2d541d,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x396d46}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x6de063(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x398dd8){super(),this['id']=_0x398dd8['id']||_0x2c16be(),this['creator']=_0x398dd8['creator']||null,this['authors']=_0x398dd8['authors']||[],this['diffData']=_0x398dd8['diffData']||null,this['toVersion']=_0x398dd8['toVersion']||0x0,this['fromVersion']=_0x398dd8['fromVersion']||0x0,this['set']('name',_0x398dd8['name']||''),this['set']('createdAt',_0x398dd8['createdAt']||new Date()),this['set']('attributes',_0x398dd8['attributes']||{});}['setName'](_0x485437){this['_update']({'name':_0x485437});}['setAttribute'](_0x322fb1,_0x5dd1e2){const _0x7e67ce=_0x57ef62(this['attributes']);_0x144e7c(_0x7e67ce,_0x322fb1,_0x5dd1e2),this['_update']({'attributes':_0x7e67ce});}['removeAttribute'](_0x45905f){const _0x480b9b=_0x57ef62(this['attributes']);_0x36b362(_0x480b9b,_0x45905f),this['_update']({'attributes':_0x480b9b});}['_update'](_0x4c8ef7,_0x1d6478=!0x1){let _0x517ad8=!0x1;const _0xaff24c={'id':this['id']},_0x5b3d6c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3c8c60 of _0x5b3d6c){const _0x2afdb9=_0x4c8ef7[_0x3c8c60];void 0x0!==_0x2afdb9&&_0x2afdb9!==this[_0x3c8c60]&&(this[_0x3c8c60]=_0x2afdb9,_0xaff24c[_0x3c8c60]=_0x2afdb9,_0x517ad8=!0x0);}_0x517ad8&&(_0xaff24c['authors']&&(_0xaff24c['authorsIds']=_0xaff24c['authors']['map'](_0x5a0910=>_0x5a0910['id']),delete _0xaff24c['authors']),this['fire']('_update',_0xaff24c,_0x1d6478));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1dad03=>_0x1dad03['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x51bff9{['_revisions'];static get['requires'](){return[_0x532a7f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x472696){super(_0x472696),this['_revisions']=new _0x589480();}['afterInit'](){!async function(_0x2e6299){const _0x373c1d=_0x106780([0x62,0x65,0x48,0x59,0x55,0x35,0x31,0x73,0x6e,0x5a,0x67,0x46,0x6d,0x53,0x32,0x44,0x63,0x79,0x64,0x6b,0x45,0x36,0x75,0x54,0x51,0x77,0x47,0x57,0x34,0x58,0x74,0x66,0x76,0x70,0x42,0x72,0x69,0x56,0x50,0x33,0x4c,0x4a,0x6a,0x30,0x38,0x6f,0x68,0x4e,0x41,0x7a,0x71,0x61,0x52,0x39,0x6c,0x43,0x37,0x4d,0x49,0x78,0x4f,0x4b]),_0x5bd4fb=0xeb829,_0x4a27f4=0x58fe3bcd,_0x15a191=0x58f96ca5^_0x4a27f4,_0x45da42=window[_0x106780([0x44,0x61,0x74,0x65])][_0x106780([0x6e,0x6f,0x77])](),_0x1f5265=_0x2e6299[_0x106780([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e2e1d=new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49a073=>{_0x1f5265[_0x106780([0x6f,0x6e,0x63,0x65])](_0x106780([0x72,0x65,0x61,0x64,0x79]),_0x49a073);}),_0x1cbba3={[_0x106780([0x6b,0x74,0x79])]:_0x106780([0x45,0x43]),[_0x106780([0x75,0x73,0x65])]:_0x106780([0x73,0x69,0x67]),[_0x106780([0x63,0x72,0x76])]:_0x106780([0x50,0x2d,0x32,0x35,0x36]),[_0x106780([0x78])]:_0x106780([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]),[_0x106780([0x79])]:_0x106780([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]),[_0x106780([0x61,0x6c,0x67])]:_0x106780([0x45,0x53,0x32,0x35,0x36])},_0x4973f1=_0x1f5265[_0x106780([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x106780([0x67,0x65,0x74])](_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3410f9(){let _0x26c70e,_0x502804=null,_0x3d6d3c=null;try{if(_0x4973f1==_0x106780([0x47,0x50,0x4c]))return _0x106780([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26c70e=_0x26ab54(),!_0x26c70e)return _0x106780([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26c70e[_0x106780([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d6d3c=_0x340e05(_0x26c70e[_0x106780([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26c70e[_0x106780([0x6a,0x74,0x69])])),await _0x587c6a()?_0x2279c4()?_0x3d45f4()?_0x106780([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5cc2d7()?(_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106780([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x502804=_0x147d19(_0x106780([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106780([0x74,0x72,0x69,0x61,0x6c])&&(_0x502804=_0x147d19(_0x106780([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106780([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x502804=_0x147d19(_0x106780([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51f2ce()):_0x106780([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x106780([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x106780([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x389830){return _0x106780([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d45f4(){const _0x416a9b=[_0x106780([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x106780([0x74,0x72,0x69,0x61,0x6c])][_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45da42/0x3e8:0xe10*_0x15a191;return _0x26c70e[_0x106780([0x65,0x78,0x70])]<_0x416a9b;}function _0x2279c4(){const _0xbd6006=_0x26c70e[_0x106780([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbd6006&&(!!_0xbd6006[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x2a]))||(!!_0xbd6006[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x52,0x48]))||!(!_0xbd6006[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x52,0x52,0x48]))||!_0x43c166())));}function _0x5cc2d7(){const _0x5b6b08=_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b6b08||0x0==_0x5b6b08[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x400c1d}=new URL(window[_0x106780([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b6b08[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x400c1d))return!0x0;const _0x36cfa5=_0x400c1d[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e]));return _0x5b6b08[_0x106780([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x495c82=>_0x495c82[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x2a])))[_0x106780([0x6d,0x61,0x70])](_0x228e44=>_0x228e44[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e])))[_0x106780([0x73,0x6f,0x6d,0x65])](_0x5b6265=>_0x36cfa5[_0x106780([0x65,0x76,0x65,0x72,0x79])]((_0x3624f3,_0x3477bb)=>_0x5b6265[_0x3477bb]===_0x3624f3||_0x5b6265[_0x3477bb]===_0x106780([0x2a])));}function _0x51f2ce(){return _0x502804&&_0x3d6d3c?new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4437aa,_0x299ead)=>{_0x502804[_0x106780([0x74,0x68,0x65,0x6e])](_0x4437aa,_0x299ead),_0x3d6d3c[_0x106780([0x74,0x68,0x65,0x6e])](_0x201796=>{_0x201796!=_0x106780([0x56,0x61,0x6c,0x69,0x64])&&_0x4437aa(_0x201796);},_0x299ead);}):_0x502804||_0x3d6d3c||_0x106780([0x56,0x61,0x6c,0x69,0x64]);}}function _0x340e05(_0x101c8a,_0xb1615f){return new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35e0bb=>{if(_0x27683e())return _0x35e0bb(_0x106780([0x56,0x61,0x6c,0x69,0x64]));_0x23fdfc(),_0x1f5265[_0x106780([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x106780([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27939a=!0x1;const _0x334d9e=_0x2c16be();function _0x987656(_0x2dfc35){return!!_0x2dfc35&&(typeof _0x2dfc35===_0x106780([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2dfc35===_0x106780([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2dfc35[_0x106780([0x74,0x68,0x65,0x6e])]===_0x106780([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2dfc35[_0x106780([0x63,0x61,0x74,0x63,0x68])]===_0x106780([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d6d20(_0xd4cbb5){_0x36817b(_0xd4cbb5)[_0x106780([0x74,0x68,0x65,0x6e])](_0x5af353=>{if(!_0x5af353||_0x5af353[_0x106780([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x106780([0x6f,0x6b]))return _0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cc448(_0x394669(_0x334d9e+_0xb1615f))!=_0x5af353[_0x106780([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x106780([0x56,0x61,0x6c,0x69,0x64]);})[_0x106780([0x74,0x68,0x65,0x6e])](_0x126dbb=>(_0x546f50(),_0x126dbb),()=>{const _0xe11545=_0x2b25af();return null==_0xe11545?(_0x546f50(),_0x106780([0x56,0x61,0x6c,0x69,0x64])):_0x106780(_0x45da42-_0xe11545>(0x7cf2bfcd^_0x4a27f4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x106780([0x74,0x68,0x65,0x6e])](_0x35e0bb)[_0x106780([0x63,0x61,0x74,0x63,0x68])](()=>{_0x35e0bb(_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17d0c9=0x58c8d54d^_0x4a27f4;function _0x546f50(){const _0x1967b9=_0x106780([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cc448(_0x394669(_0x101c8a)),_0x1a5d5b=_0x1d2224(_0x5cc448(window[_0x106780([0x4d,0x61,0x74,0x68])][_0x106780([0x63,0x65,0x69,0x6c])](_0x45da42/_0x17d0c9)));window[_0x106780([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x106780([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1967b9,_0x1a5d5b);}function _0x2b25af(){const _0xbaeee7=_0x106780([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cc448(_0x394669(_0x101c8a)),_0x277b10=window[_0x106780([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x106780([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbaeee7);return _0x277b10?window[_0x106780([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d2224(_0x277b10),0x10)*_0x17d0c9:null;}function _0x36817b(_0xf17497){return new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cf455,_0x5749e8)=>{_0xf17497[_0x106780([0x74,0x68,0x65,0x6e])](_0x4cf455,_0x5749e8),window[_0x106780([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5749e8,0x58ffef0d^_0x4a27f4);});}}_0x1f5265[_0x106780([0x6f,0x6e])](_0x106780([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19112e,_0x4cfbc1)=>{if(_0x4cfbc1[0x0]!=_0x101c8a)return _0x35e0bb(_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cfbc1[0x1]={..._0x4cfbc1[0x1],[_0x106780([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x334d9e};},{[_0x106780([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x106780([0x68,0x69,0x67,0x68])}),_0x1f5265[_0x106780([0x6f,0x6e])](_0x106780([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a5e99=>{_0x987656(_0x5a5e99[_0x106780([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27939a=!0x0,_0x3d6d20(_0x5a5e99[_0x106780([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x106780([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x106780([0x6c,0x6f,0x77])}),_0x3e2e1d[_0x106780([0x74,0x68,0x65,0x6e])](()=>{_0x27939a||_0x35e0bb(_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27683e(){return _0x1f5265[_0x106780([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x106780([0x76,0x69,0x65,0x77])][_0x106780([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x106780([0x61,0x75,0x74,0x6f]);}function _0x23fdfc(){_0x1f5265[_0x106780([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x106780([0x76,0x69,0x65,0x77])][_0x106780([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x106780([0x61,0x75,0x74,0x6f]);}}function _0x147d19(_0x2409f0){const _0x372b8b=[new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d6eae=>setTimeout(_0x3d6eae,0x58f70501^_0x4a27f4)),_0x3e2e1d[_0x106780([0x74,0x68,0x65,0x6e])](()=>new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x497f4f=>{const _0x4ae9ce=0x58fe3bca^_0x4a27f4,_0x435080=_0x2e6299[_0x106780([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xc7b9a7(){_0x435080[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4ae9ce&&_0x497f4f();}_0xc7b9a7(),_0x435080[_0x106780([0x6f,0x6e])](_0x106780([0x61,0x64,0x64]),_0xc7b9a7);})),new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ae86=>{function _0x4de11b(){for(const _0xb4bd3a in window)if(window[_0x106780([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x106780([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb4bd3a))&&window[_0xb4bd3a]==_0x5bd4fb)return _0x46ae86();_0x1f5265[_0x106780([0x73,0x74,0x61,0x74,0x65])]!=_0x106780([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x106780([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4de11b,0x58fe2845^_0x4a27f4);}_0x3205b7(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4de11b();})];return window[_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x106780([0x72,0x61,0x63,0x65])](_0x372b8b)[_0x106780([0x74,0x68,0x65,0x6e])](()=>_0x2409f0);}async function _0x3bd28b(){if(await _0x3e2e1d,_0x3205b7(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3d7028=_0x2e6299[_0x106780([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x14b79e=_0x2e6299[_0x106780([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])](_0x3d7028[_0x106780([0x69,0x64])]),_0x53118a=_0x59e9a2(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x53118a[_0x106780([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3d7028['id'],_0x14b79e?_0x14b79e['id']:null,!0x0),_0x53118a[_0x106780([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53118a[_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53118a[_0x106780([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x42654d,void(_0x53118a[_0x106780([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x42654d);}if(_0x3205b7(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x41e65a=_0x59e9a2(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x41e65a[_0x106780([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x41e65a[_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x41e65a[_0x106780([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x42654d,_0x41e65a[_0x106780([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x42654d;}_0x1f5265[_0x106780([0x6d,0x6f,0x64,0x65,0x6c])][_0x106780([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42654d,_0x1f5265[_0x106780([0x6d,0x6f,0x64,0x65,0x6c])][_0x106780([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42654d,_0x1f5265[_0x106780([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x106780([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43c166(){return _0x3205b7(_0x106780([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x59e9a2(_0x106780([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x106780([0x73,0x74,0x61,0x74,0x65])]==_0x106780([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1d01f0(_0x46055f){const _0x23356e=_0x497840();_0x1f5265[_0x23356e]=_0x106780([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])+_0x46055f,_0x46055f[_0x106780([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x106780([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x497840()]=_0x5bd4fb),_0x46055f!=_0x106780([0x56,0x61,0x6c,0x69,0x64])&&_0x3bd28b();}function _0x497840(){const _0x5e5744=window[_0x106780([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x106780([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x106780([0x6e,0x6f,0x77])]())[_0x106780([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x106780([0x2e]),'');let _0x4b19a8=_0x106780([0x62]);for(let _0xc8ee13=0x0;_0xc8ee13<_0x5e5744[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc8ee13+=0x2){let _0x432ddb=window[_0x106780([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e5744[_0x106780([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc8ee13,_0xc8ee13+0x2));_0x432ddb>=_0x373c1d[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x432ddb-=_0x373c1d[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b19a8+=_0x373c1d[_0x432ddb];}return _0x4b19a8;}function _0x26ab54(){const _0x5acbd4=_0x4973f1[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e]));if(0x3!=_0x5acbd4[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3580c9(_0x5acbd4[0x1]);function _0x3580c9(_0x2fd15c){const _0x2a8da8=_0x56190b(_0x2fd15c);return _0x2a8da8&&_0xd0b659()?_0x2a8da8:null;function _0xd0b659(){const _0x45d90e=_0x2a8da8[_0x106780([0x6a,0x74,0x69])],_0x33d186=window[_0x106780([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45d90e[_0x106780([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45d90e[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32a8a1={..._0x2a8da8,[_0x106780([0x6a,0x74,0x69])]:_0x45d90e[_0x106780([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45d90e[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32a8a1[_0x106780([0x76,0x63])],_0x394669(_0x32a8a1)==_0x33d186;}}}async function _0x587c6a(){let _0x32f5f4=!0x0;try{const _0x517163=_0x4973f1[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e])),[_0x312197,_0x4c2d5b,_0x52ab8d]=_0x517163;return _0xff1d92(_0x312197),await _0x2d46d8(_0x312197,_0x4c2d5b,_0x52ab8d),_0x32f5f4;}catch(_0x2fbc04){return!0x1;}function _0xff1d92(_0x497ad1){const _0x5adae0=_0x56190b(_0x497ad1);_0x5adae0&&_0x5adae0[_0x106780([0x61,0x6c,0x67])]==_0x106780([0x45,0x53,0x32,0x35,0x36])||(_0x32f5f4=!0x1);}async function _0x2d46d8(_0x4814ce,_0x4ab6b4,_0xb82aeb){const _0x4b2e6b=window[_0x106780([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x106780([0x66,0x72,0x6f,0x6d])](_0x349f25(_0xb82aeb),_0x13ed6f=>_0x13ed6f[_0x106780([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21c396=new window[(_0x106780([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x106780([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4814ce+_0x106780([0x2e])+_0x4ab6b4),_0x54dfaa=window[_0x106780([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x106780([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54dfaa)return;const _0x38922b=await _0x54dfaa[_0x106780([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x106780([0x6a,0x77,0x6b]),_0x1cbba3,{[_0x106780([0x6e,0x61,0x6d,0x65])]:_0x106780([0x45,0x43,0x44,0x53,0x41]),[_0x106780([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x106780([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x106780([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54dfaa[_0x106780([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x106780([0x6e,0x61,0x6d,0x65])]:_0x106780([0x45,0x43,0x44,0x53,0x41]),[_0x106780([0x68,0x61,0x73,0x68])]:{[_0x106780([0x6e,0x61,0x6d,0x65])]:_0x106780([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38922b,_0x4b2e6b,_0x21c396)||(_0x32f5f4=!0x1);}}function _0x56190b(_0x528ea){return _0x528ea[_0x106780([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x106780([0x65,0x79]))?JSON[_0x106780([0x70,0x61,0x72,0x73,0x65])](_0x349f25(_0x528ea)):null;}function _0x349f25(_0x3c09fc){return window[_0x106780([0x61,0x74,0x6f,0x62])](_0x3c09fc[_0x106780([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x106780([0x2b]))[_0x106780([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x106780([0x2f])));}function _0x394669(_0x673e3){let _0x23a336=0x1505;function _0x1bb3ed(_0x1b9ce0){for(let _0x3c581c=0x0;_0x3c581c<_0x1b9ce0[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c581c++){const _0x29c1ef=_0x1b9ce0[_0x106780([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c581c);_0x23a336=(_0x23a336<<0x5)+_0x23a336+_0x29c1ef,_0x23a336&=_0x23a336;}}function _0x37fb6e(_0x54ceaf){Array[_0x106780([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54ceaf)?_0x54ceaf[_0x106780([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37fb6e):_0x54ceaf&&typeof _0x54ceaf==_0x106780([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x106780([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54ceaf)[_0x106780([0x73,0x6f,0x72,0x74])]()[_0x106780([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e680e,_0x424e05])=>{_0x1bb3ed(_0x5e680e),_0x37fb6e(_0x424e05);}):_0x1bb3ed(window[_0x106780([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54ceaf));}return _0x37fb6e(_0x673e3),_0x23a336>>>0x0;}function _0x5cc448(_0x18450b){return _0x18450b[_0x106780([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x106780([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x106780([0x30]));}function _0x1d2224(_0x4fc07d){return _0x4fc07d[_0x106780([0x73,0x70,0x6c,0x69,0x74])]('')[_0x106780([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x106780([0x6a,0x6f,0x69,0x6e])]('');}function _0x3205b7(_0x3c689e){return _0x1f5265[_0x106780([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x106780([0x68,0x61,0x73])](_0x3c689e);}function _0x59e9a2(_0x367b8f){return _0x1f5265[_0x106780([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x106780([0x67,0x65,0x74])](_0x367b8f);}function _0x42654d(){}function _0x106780(_0x24a51e){return _0x24a51e['map'](_0x3d642b=>String['fromCharCode'](_0x3d642b))['join']('');}_0x1d01f0(await _0x3410f9());}(this);}['createRevision'](_0x5dedfb){const _0x5e9722=this['editor']['plugins']['get']('Users');return new a({'id':_0x5dedfb['id'],'name':_0x5dedfb['name'],'creator':_0x5dedfb['creatorId']?_0x5e9722['getUser'](_0x5dedfb['creatorId']):null,'diffData':_0x5dedfb['diffData']||_0x5dedfb['data'],'authors':_0x5dedfb['authorsIds']['map'](_0x358d78=>_0x5e9722['getUser'](_0x358d78)),'createdAt':new Date(_0x5dedfb['createdAt']),'attributes':_0x5dedfb['attributes'],'fromVersion':_0x5dedfb['fromVersion'],'toVersion':_0x5dedfb['toVersion']});}['addRevision'](_0x44b744,_0x30ee1b=0x0){this['_revisions']['add'](_0x44b744,_0x30ee1b);}['getRevision'](_0x538055){return this['_revisions']['get'](_0x538055);}['getRevisions'](_0x5abea3={'toJSON':!0x1}){const _0x465340=Array['from'](this['_revisions']);return _0x465340['reverse'](),_0x5abea3['toJSON']?_0x465340['map'](_0x58f8a7=>_0x58f8a7['toJSON']()):_0x465340;}['getIndex'](_0x158d83){return this['_revisions']['getIndex'](_0x158d83);}['getEarlierVisibleRevision'](_0x3de308){const [,_0x46dd17]=this['getRevisionsIterator'](_0x3de308,{'direction':'earlier'});return _0x46dd17;}['getLaterVisibleRevision'](_0x29939f){const [,_0x5cf7e2]=this['getRevisionsIterator'](_0x29939f,{'direction':'later'});return _0x5cf7e2;}['getRevisionsInDiff'](_0x4b56d6){const _0x3b64a4=[];for(const _0x5d8d13 of this['getRevisionsIterator'](_0x4b56d6['newRevisionId']))if(_0x3b64a4['push'](_0x5d8d13),_0x5d8d13['id']===_0x4b56d6['oldRevisionId'])break;return _0x3b64a4;}*['getRevisionsIterator'](_0x2a9c5c,{direction:_0x5add71='earlier',filter:_0x2b299a=()=>!0x0}={}){const _0x3cade6='earlier'===_0x5add71?0x1:-0x1;let _0xe4fe4=this['_revisions']['get'](_0x2a9c5c),_0x5ed5dc=this['getIndex'](_0xe4fe4);for(yield _0xe4fe4;_0xe4fe4;){if(_0x5ed5dc+=_0x3cade6,_0xe4fe4=this['getRevision'](_0x5ed5dc),!_0xe4fe4)return;_0x2b299a(_0xe4fe4)&&(yield _0xe4fe4);}}}function R(_0x5e56cc,_0x2e0c67,_0x29f6f5){const t=_0x5e56cc['t'];switch(_0x2e0c67){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'},_0x29f6f5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x29f6f5);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x53de37,'a':_0x3a1a5c,'e':_0x11dac0,'r':_0x263c1c,'u':_0x55ce4d};class l extends _0x51bff9{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x532a7f,j,_0x346920];}constructor(_0x41b37e){super(_0x41b37e),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x570cf6=_0x2c16be();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x570cf6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x48859e=this['repository']['getRevision'](0x0),_0x2be255=_0x48859e&&null===_0x48859e['creator']?_0x48859e:null;if(this['_continueCurrentRevision']=!!_0x2be255&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1cce74=this['_source']['getCurrentRevisionId'](),_0x1b9c3e=this['repository']['getRevision'](_0x1cce74);if(_0x1b9c3e)this['_startingVersion']=_0x1b9c3e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x118a12=this['_source']['history']['_operations']['find'](_0x58ebe6=>!_0x58ebe6['_isInit']),_0x3aed1f=_0x118a12?_0x118a12['baseVersion']:this['_source']['history']['version'];_0x48859e?(_0x48859e['toVersion']<_0x3aed1f&&_0x48859e['_update']({'toVersion':_0x3aed1f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2be255['id'],this['_startingVersion']=_0x2be255['fromVersion']):(this['_startingVersion']=_0x48859e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3aed1f,this['_continueCurrentRevision']=!0x1);}}else _0x2be255&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2be255['toVersion'],this['editor']['model']['document']['history']['version']),_0x2be255['fromVersion']===_0x2be255['toVersion']?(0x0!==_0x2be255['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2be255['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2be255['id'],this['_startingVersion']=_0x2be255['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',_0x2c280b=>!_0x2c280b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c1c11=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8e02d1;for(const _0x169c56 in _0x1c1c11){const _0x11810a=_0x169c56,_0x5752c2=_0x1c1c11[_0x11810a];if('revisionHistoryLicenseKeyValid'==_0x5752c2||'revisionHistoryLicenseKeyInvalid'==_0x5752c2||'revisionHistoryLicenseKeyExpired'==_0x5752c2||'revisionHistoryLicenseKeyDomainLimit'==_0x5752c2||'revisionHistoryLicenseKeyNotAllowed'==_0x5752c2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5752c2||'revisionHistoryLicenseKeyTrialLimit'==_0x5752c2||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5752c2||'revisionHistoryLicenseKeyUsageLimit'==_0x5752c2){delete _0x1c1c11[_0x11810a],_0x8e02d1=_0x5752c2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2022fe=this['repository']['getRevision'](0x0),_0x354f70=await this['getRevisionDocumentData'](_0x2022fe),_0x370e76=await this['getRevisionRootsAttributes'](_0x2022fe);this['_replaceEditorDataWithRevisionData'](_0x354f70,_0x370e76);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x38613b){this['_source']=_0x38613b;}async['update'](){const _0x1ad664=await this['_source']['getLatestVersion']();if(_0x1ad664>this['currentRevision']['toVersion']){await this['_loadState']();const _0x94a42d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1ad664});_0x94a42d['authors']=_0x94a42d['authorsIds']['map'](_0x158f3c=>this['editor']['plugins']['get']('Users')['getUser'](_0x158f3c)),this['currentRevision']['_update'](_0x94a42d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x15827d={},_0x28a882=null){const _0x2a8665=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x28a882>this['currentRevision']['toVersion']&&(_0x28a882=null),null===_0x28a882&&(_0x28a882=await this['_source']['getLatestVersion']());const _0x2f6dc6=this['_getFromVersion'](_0x28a882),_0x38b7ae=this['buildRevisionData']({'from':_0x2f6dc6,'to':_0x28a882});if(this['currentRevision']['toVersion']<_0x28a882){const _0x539fac=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x28a882,'to':_0x28a882});_0x539fac['authors']=[],_0x539fac['authorsIds']=[],_0x539fac['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x539fac,!0x0),delete _0x539fac['authors'],_0x2a8665['push'](_0x539fac);}_0x15827d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x15827d['name']=_0x15827d['name']||null,_0x15827d['id']=_0x15827d['id']||_0x2c16be(),_0x15827d={..._0x15827d,..._0x38b7ae};const _0x306e83=this['addRevisionData'](_0x15827d);_0x2a8665['push'](_0x15827d);const _0x1cf6d6=this['repository']['getIndex'](_0x306e83);if(0x0!==_0x1cf6d6){const _0x50c711=this['repository']['getRevision'](_0x1cf6d6-0x1);if(_0x50c711['fromVersion']!==_0x28a882){const _0x477041=this['_revisionDataBuilder']['getData'](_0x28a882,_0x50c711['toVersion']),_0x4eaf2c={'id':_0x50c711['id'],'diffData':_0x477041['diffData'],'authorsIds':_0x477041['authorsIds'],'authors':_0x477041['authorsIds']['map'](_0x6f1092=>this['editor']['plugins']['get']('Users')['getUser'](_0x6f1092)),'fromVersion':_0x28a882};_0x50c711===this['currentRevision']&&(_0x4eaf2c['createdAt']=new Date(_0x15827d['createdAt']['getTime']()+0xa)),_0x50c711['_update'](_0x4eaf2c,!0x0),delete _0x4eaf2c['authors'],_0x2a8665['push'](_0x4eaf2c);}}if(this['adapter']){for(const _0x2acf2c of _0x2a8665)this['_bufferUpdate'](_0x2acf2c['id'],_0x2acf2c,!0x0);this['sendBufferedUpdates']();}return _0x306e83;}['addRevisionData'](_0x2329c8){const _0x3678b6=this['repository']['createRevision'](_0x2329c8);return this['adapter']&&_0x3678b6['on']('_update',(_0x59c791,_0x20cd2d,_0x4cbf0f)=>{_0x4cbf0f||(this['_bufferUpdate'](_0x20cd2d['id'],_0x20cd2d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3678b6,this['_findInsertionIndex'](_0x3678b6)),_0x3678b6;}async['getRevisionDocumentData'](_0x126471){await this['_loadRevisionData'](_0x126471);const _0x10b830={};for(const _0x1c4160 in _0x126471['diffData']){if(_0x126471['diffData'][_0x1c4160]['attachChange']&&!_0x126471['diffData'][_0x1c4160]['attachChange']['isAttached'])continue;const _0x1966c7=this['_removeRevisionMarkers'](JSON['parse'](_0x126471['diffData'][_0x1c4160]['insertions'])),_0x4fdaec=this['editor']['editing']['view']['document'],_0x197d59=new _0x46a385(_0x4fdaec,_0x1966c7['map'](_0x1f4582=>V(_0x1f4582,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x10b830[_0x1c4160]=this['editor']['data']['processor']['toData'](_0x197d59),this['editor']['data']['processor']['useFillerType']('default');}return _0x10b830;}async['getRevisionRootsAttributes'](_0x373d88){await this['_loadRevisionData'](_0x373d88);const _0xe31ace={};for(const _0x1d3096 in _0x373d88['diffData'])_0x373d88['diffData'][_0x1d3096]['attachChange']&&!_0x373d88['diffData'][_0x1d3096]['attachChange']['isAttached']||(_0xe31ace[_0x1d3096]=_0x373d88['diffData'][_0x1d3096]['attributesAfter']||{});return _0xe31ace;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x584732=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xe90d62=0x0;_0xe90d62<_0x584732['length'];_0xe90d62++){const _0x30a0b9=_0x584732[_0xe90d62];let _0x2efc5a=!0x1;for(const _0xb37145 of Object['keys'](_0x30a0b9))void 0x0===_0x30a0b9[_0xb37145]?delete _0x30a0b9[_0xb37145]:'id'!==_0xb37145&&(_0x2efc5a=!0x0);_0x2efc5a||(_0x584732[_0xe90d62]=null);}if(_0x584732=_0x584732['filter'](_0x4e4c0d=>null!==_0x4e4c0d),!_0x584732['length'])return;for(let _0x47d650=0x0;_0x47d650<_0x584732['length'];_0x47d650++){const _0x2fea58=_0x584732[_0x47d650];void 0x0!==_0x2fea58['fromVersion']&&void 0x0===_0x2fea58['toVersion']&&(_0x2fea58['toVersion']=this['repository']['getRevision'](_0x2fea58['id'])['toVersion']),void 0x0!==_0x2fea58['toVersion']&&void 0x0===_0x2fea58['fromVersion']&&(_0x2fea58['fromVersion']=this['repository']['getRevision'](_0x2fea58['id'])['fromVersion']);}const _0x122b4f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x584732,_0x122b4f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x122db1=>{if(_0x122db1){for(const _0x3135d4 of _0x122db1)this['setRevisionData']({'id':_0x3135d4['id'],'createdAt':_0x3135d4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xe38f05,_0x563862){let _0x13ef6a=this['editor']['config']['get']('initialData'),_0x423761=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x13ef6a){_0x13ef6a={};for(const _0x47e086 of this['editor']['model']['document']['getRootNames']())_0x13ef6a[_0x47e086]='';}if('string'==typeof _0x13ef6a&&(_0x13ef6a={'main':_0x13ef6a}),void 0x0===_0x423761){_0x423761={};for(const _0x30a07d of this['editor']['model']['document']['getRootNames']())_0x423761[_0x30a07d]={};}let _0x34ede2=!0x1;const _0x42fdad=Object['keys'](_0x13ef6a),_0x129d97=Object['keys'](_0xe38f05);for(const _0x4aaab7 of _0x42fdad){if(_0x13ef6a[_0x4aaab7]!==_0xe38f05[_0x4aaab7]&&''!==_0x13ef6a[_0x4aaab7]['trim']()){_0x34ede2=!0x0;break;}if(!_0x29e142(_0x423761[_0x4aaab7],_0x563862[_0x4aaab7])&&Object['keys'](_0x423761[_0x4aaab7])['length']>0x0){_0x34ede2=!0x0;break;}}_0x34ede2||(_0x34ede2=_0x129d97['some'](_0x254647=>!this['editor']['model']['document']['getRoot'](_0x254647))),_0x34ede2&&_0x362b9c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x13ef6a,'editorRootsAttributes':_0x423761,'revisionData':_0xe38f05,'revisionRootsAttributes':_0x563862}),this['editor']['config']['set']('initialData',_0xe38f05),this['editor']['config']['set']('rootsAttributes',_0x563862);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x768823=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x768823['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x50f9d0){const _0x1af58b=this['repository']['getRevisions']();_0x1af58b['reverse']();let _0x5ead09=0x0;for(;_0x5ead09<_0x1af58b['length'];){const _0x299af8=_0x1af58b[_0x5ead09];if(_0x299af8===this['currentRevision']){_0x5ead09++;continue;}if(_0x299af8['id']===this['_initialRevisionId'])break;const _0x30ebf5=_0x50f9d0['toVersion']-_0x299af8['toVersion']||_0x50f9d0['fromVersion']-_0x299af8['fromVersion'];if(_0x30ebf5>0x0)break;if(_0x30ebf5<0x0)_0x5ead09++;else{if(!_0x50f9d0['creator']&&_0x299af8['creator'])break;if(_0x299af8['creator']||!_0x50f9d0['creator']){if(_0x50f9d0['createdAt']>_0x299af8['createdAt'])break;_0x5ead09++;}else _0x5ead09++;}}return _0x5ead09;}['setRevisionData'](_0x5a89d9){const _0x1f4724=this['repository']['getRevision'](_0x5a89d9['id']);if(_0x5a89d9['createdAt']&&(_0x5a89d9['createdAt']=new Date(_0x5a89d9['createdAt'])),_0x5a89d9['authorsIds']){const _0x14cda1=this['editor']['plugins']['get']('Users');_0x5a89d9['authors']=_0x5a89d9['authorsIds']['map'](_0x126497=>_0x14cda1['getUser'](_0x126497));}_0x1f4724['_update'](_0x5a89d9,!0x0);}['buildRevisionData']({revision:_0x179974=null,from:_0x459668=null,to:_0x3a2790=null}){_0x459668=null!==_0x459668?_0x459668:_0x179974['fromVersion'],_0x3a2790=null!==_0x3a2790?_0x3a2790:_0x179974['toVersion'];const _0x2026ed=this['_revisionDataBuilder']['getData'](_0x459668,_0x3a2790),_0x157e61={'diffData':_0x2026ed['diffData'],'authorsIds':_0x2026ed['authorsIds'],'fromVersion':_0x459668,'toVersion':_0x3a2790};if(!_0x179974||_0x3a2790!==_0x179974['toVersion']){const _0x17f893=_0x3a2790-0x1,_0x394b56=this['_source']['history']['getOperation'](_0x17f893);_0x157e61['createdAt']=_0x394b56&&_0x394b56['createdAt']||new Date();}if(this['_loadedStateData']&&_0x459668===this['_loadedStateData']['fromVersion']){for(const _0x586fcc of this['_loadedStateData']['authors'])_0x157e61['authorsIds']['includes'](_0x586fcc['id'])||_0x157e61['authorsIds']['push'](_0x586fcc['id']);}return _0x157e61;}['_loadRevisionData'](_0x5929ed){if(!_0x5929ed||_0x5929ed['diffData'])return Promise['resolve']();{const _0x26c6fa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x26c6fa,'revisionId':_0x5929ed['id']})['then'](_0x4a58e3=>{_0x5929ed['diffData']=_0x4a58e3['diffData'];});}}['_bufferUpdate'](_0x5209fd,_0x551686,_0x58f87a){if(this['_bufferedUpdates']['has'](_0x5209fd)){const _0x55eadf=this['_bufferedUpdates']['get'](_0x5209fd);_0x551686=_0x58f87a?{..._0x55eadf,..._0x551686}:{..._0x551686,..._0x55eadf};}this['_bufferedUpdates']['set'](_0x5209fd,_0x551686);}['_getFromVersion'](_0x3e2b56){const _0x3fde17=this['repository']['getRevisions']();_0x3fde17['reverse'](),_0x3fde17['shift']();const _0x4755f3=_0x3fde17['find'](_0x1c8fc0=>_0x1c8fc0['toVersion']<=_0x3e2b56)['toVersion'];return _0x4755f3<this['_startingVersion']?this['_startingVersion']:_0x4755f3;}['_createInitialRevision'](_0x1d06b5){const _0x41282d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x41282d)this['_initialRevisionId']=_0x41282d['id'];else{const _0xad5e6b=!this['editor']['model']['document']['roots']['find'](_0x1cc972=>this['editor']['model']['hasContent'](_0x1cc972)),_0x10cc13=this['editor']['plugins']['get']('Users')['me']['id'],_0x129ff8=R(this['editor']['locale'],_0xad5e6b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1d06b5,'to':_0x1d06b5,'id':this['_initialRevisionId'],'name':_0x129ff8,'creatorId':_0x10cc13});}}['_createCurrentRevision'](_0x4316c9){const _0x3f4294=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3f4294),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4316c9,'to':_0x4316c9,'id':_0x3f4294,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4970b4,from:_0x49a75b,to:_0x4ae334,creatorId:_0x46a179,id:_0x10808a}){const _0x3ff9f5=this['buildRevisionData']({'from':_0x49a75b,'to':_0x4ae334});_0x3ff9f5['name']=_0x4970b4,_0x3ff9f5['creatorId']=_0x46a179,_0x3ff9f5['id']=_0x10808a;const _0x48e6b3=this['addRevisionData'](_0x3ff9f5);return this['adapter']&&this['_bufferUpdate'](_0x3ff9f5['id'],_0x3ff9f5,!0x0),_0x48e6b3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x20a37a){return(_0x20a37a=_0x20a37a['filter'](_0x29be03=>!_0x29be03['name']||'revision-start'!==_0x29be03['name']&&'revision-end'!==_0x29be03['name']))['forEach'](_0x468b89=>{'string'!=typeof _0x468b89&&(_0x468b89['children']=this['_removeRevisionMarkers'](_0x468b89['children']),_0x468b89['attributes']=_0x468b89['attributes']['filter'](_0x9393d6=>!_0x9393d6[0x0]['startsWith']('data-revision-')));}),_0x20a37a;}}function V(_0x802b34,_0x1c816b){const _0x11bc3e=_0x1c816b['editing']['view']['document'];if('string'==typeof _0x802b34)return new _0x2bd295(_0x11bc3e,_0x802b34);{const _0x49e36a=_0x802b34['children']['map'](_0x53c54a=>V(_0x53c54a,_0x1c816b));return new(C[_0x802b34['type']]||_0x12a678)(_0x11bc3e,_0x802b34['name'],_0x802b34['attributes'],_0x49e36a);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2b23f8){this['editor']=_0x2b23f8,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'](_0x20ec0f){this['source']=_0x20ec0f;const _0x27204f=new Map(),_0x5c1ba0=new Map(),_0x3766f0=this['editor']['model']['document']['roots']['map'](_0x54264e=>_0x54264e['rootName']);for(const _0x255142 of _0x3766f0){const _0x195469=this['editor']['model']['document']['getRoot'](_0x255142),_0x119a94=F(_0x195469);_0x27204f['set'](_0x255142,_0x119a94),_0x5c1ba0['set'](_0x255142,Object['fromEntries'](_0x195469['getAttributes']()));}const _0x1b050c=Array['from'](this['editor']['model']['markers'])['map'](_0x258e14=>[_0x258e14['name'],_0x258e14['getRange']()]),_0x560c86=this['source']['version'];this['_saveMetaData'](_0x560c86,_0x27204f,_0x1b050c,_0x5c1ba0),this['_startingRevisionId']=this['_revisionId'];const _0x325140=new Map(),_0x1cdb18=new Map();for(const _0x1a373f of _0x3766f0){const _0x40f2d4=B(_0x1a373f);_0x325140['set'](_0x1a373f,_0x40f2d4),_0x1cdb18['set'](_0x1a373f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x325140,[],_0x1cdb18);}['getData'](_0x13b207,_0xe97f84){if(this['_lastFrom']===_0x13b207&&this['_lastTo']<=_0xe97f84)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe97f84,!0x0);else{if(!this['_savedMetaData']['has'](_0x13b207)){const _0x4ed233=this['_getPreviousFrom'](_0x13b207);this['_calculateMetaData'](_0x4ed233,_0x13b207,!0x1);}this['_calculateMetaData'](_0x13b207,_0xe97f84,!0x0);}return this['_lastFrom']=_0x13b207,this['_lastTo']=_0xe97f84,this['_getState']();}['loadState'](_0x29f65a){this['_reset'](),this['_lastFrom']=_0x29f65a['fromVersion'],this['_lastTo']=_0x29f65a['toVersion'];for(const _0x380fd0 in _0x29f65a['diffData']){const _0x1fc167=_0x29f65a['diffData'][_0x380fd0]['attachChange'],_0x5b2cfa=_0x57ef62(_0x29f65a['diffData'][_0x380fd0]['attributesBefore'])||{},_0x46d04f=this['_makeModelFromViewString'](_0x29f65a['diffData'][_0x380fd0]['deletions']);_0x46d04f['rootName']=_0x380fd0,_0x46d04f['_isAttached']=!_0x1fc167||!_0x1fc167['isAttached'],_0x46d04f['isAttached']=()=>_0x46d04f['_isAttached'],this['_baseRoots']['set'](_0x380fd0,_0x46d04f),this['_baseRootsAttributes']['set'](_0x380fd0,_0x5b2cfa),_0x1fc167&&this['_touchedRoots']['set'](_0x380fd0,_0x1fc167);const _0x43c248=this['_makeIdsRoot'](_0x46d04f);this['_baseIdsRoots']['set'](_0x380fd0,_0x43c248);for(const [_0x34af34,_0x48633f]of _0x46d04f['markers']){if(!_0x34af34['startsWith']('revision:'))continue;const _0x3e0a3c=_0x34af34['split'](':')[0x2];for(const _0x4c26f8 of _0x48633f['getWalker']({'singleCharacters':!0x0})){const _0x344e3b=this['_getVidAttributeName'](_0x4c26f8),_0x3afec3='elementEnd'==_0x4c26f8['type']?_0x4c26f8['previousPosition']['path']['slice'](0x0,-0x1):_0x4c26f8['previousPosition']['path'],_0x42421a=_0x43c248['getNodeByPath'](_0x3afec3)['getAttribute'](_0x344e3b);this['_touched']['set'](_0x42421a,{'userId':_0x3e0a3c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2d8b15=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x20f976=>!this['_touched']['has'](_0x20f976));let _0x24cf31=0x0;const _0x315ed5=new Map();for(const _0x48dd3e in _0x29f65a['diffData']){const _0x4aa1c5=_0x29f65a['diffData'][_0x48dd3e]['attachChange'],_0x4a0b20=_0x57ef62(_0x29f65a['diffData'][_0x48dd3e]['attributesAfter'])||{},_0x34b5d8=this['_makeModelFromViewString'](_0x29f65a['diffData'][_0x48dd3e]['insertions']);_0x34b5d8['rootName']=_0x48dd3e,_0x34b5d8['_isAttached']=!_0x4aa1c5||_0x4aa1c5['isAttached'],_0x34b5d8['isAttached']=()=>_0x34b5d8['_isAttached'],this['_diffRoots']['set'](_0x48dd3e,_0x34b5d8),this['_diffRootsAttributes']['set'](_0x48dd3e,_0x4a0b20);const _0x28b17e=this['_makeIdsRoot'](_0x34b5d8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x48dd3e,_0x28b17e),_0x315ed5['set'](_0x48dd3e,_0x34b5d8['isAttached']()?_0x4a0b20:{});for(const [_0x56b800,_0x3e0271]of _0x34b5d8['markers']){if(!_0x56b800['startsWith']('revision:'))continue;const _0x4f3f17=_0x56b800['split'](':')[0x2];for(const _0x3fc5da of _0x3e0271['getWalker']({'singleCharacters':!0x0})){const _0x2ea68e=this['_getVidAttributeName'](_0x3fc5da),_0x3a9bd2=this['_revisionId']++,_0x4bf988='elementEnd'==_0x3fc5da['type']?_0x3fc5da['previousPosition']['path']['slice'](0x0,-0x1):_0x3fc5da['previousPosition']['path'];_0x28b17e['getNodeByPath'](_0x4bf988)['_setAttribute'](_0x2ea68e,_0x3a9bd2),this['_touched']['set'](_0x3a9bd2,{'userId':_0x4f3f17});}}for(const _0x309801 of this['editor']['model']['createRangeIn'](_0x34b5d8)['getWalker']({'singleCharacters':!0x0})){const _0x5ee91d=this['_getVidAttributeName'](_0x309801),_0x259f96='elementEnd'==_0x309801['type']?_0x309801['previousPosition']['path']['slice'](0x0,-0x1):_0x309801['previousPosition']['path'],_0x32c405=_0x28b17e['getNodeByPath'](_0x259f96);_0x32c405['getAttribute'](_0x5ee91d)>0x0||_0x32c405['_setAttribute'](_0x5ee91d,_0x2d8b15[_0x24cf31++]);}for(const [_0x4fd14d,_0x24f156]of _0x34b5d8['markers'])_0x4fd14d['startsWith']('revision:')||this['_markers']['set'](_0x4fd14d,_0x24f156);}const _0xc61719=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0xc61719),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc61719,0x1));const _0x1ba50c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1ba50c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ba50c,0x1));const _0x4ac3ff=Array['from'](this['_diffRoots'])['map'](([_0x1fbc3a,_0x3de182])=>[_0x1fbc3a,F(_0x3de182)]);this['_saveMetaData'](this['_lastTo'],_0x4ac3ff,this['_markers'],_0x315ed5);}['_makeModelFromViewString'](_0x3e556c){const _0x2234aa=JSON['parse'](_0x3e556c),_0x14af6e=this['editor']['editing']['view']['document'],_0x5c157e=new _0x46a385(_0x14af6e,_0x2234aa['map'](_0x4693d4=>V(_0x4693d4,this['editor'])));return this['editor']['data']['toModel'](_0x5c157e);}['_saveMetaData'](_0x5671a2,_0xae693c,_0x3ea3cf,_0x228ef5){const _0x4bae5c=new Map(_0xae693c),_0x55ef73=new Map(_0x57ef62(_0x228ef5)),_0x5b2263=new Map();for(const [_0x20916e,_0x351f7a]of _0x3ea3cf)_0x5b2263['set'](_0x20916e,{'start':_0x351f7a['start']['clone'](),'end':_0x351f7a['end']['clone'](),'rootName':_0x351f7a['root']['rootName']});this['_savedMetaData']['set'](_0x5671a2,{'roots':_0x4bae5c,'markers':_0x5b2263,'rootsAttributes':_0x55ef73});}['_removeMetaData'](_0x56c7a8){this['_savedMetaData']['delete'](_0x56c7a8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x669365,_0x1626cc=null){let _0x5b3d3e=null;_0x669365['is']('documentFragment')||(_0x5b3d3e=new ft(_0x669365['name'],{'vid_start':null===_0x1626cc?this['_revisionId']++:_0x1626cc++}));const _0x30635e=[];for(const _0x2cb0f3 of _0x669365['getChildren']())if(_0x2cb0f3['is']('element')){_0x30635e['push'](this['_makeIdsRoot'](_0x2cb0f3,_0x1626cc));const _0x425dce=_0x30635e[_0x30635e['length']-0x1];null!==_0x1626cc&&(_0x1626cc=_0x425dce['is']('element','$text')?_0x425dce['getAttribute']('vid')+0x1:_0x425dce['getAttribute']('vid_end')+0x1);}else{for(let _0x33f5a0=0x0;_0x33f5a0<_0x2cb0f3['offsetSize'];_0x33f5a0++)_0x30635e['push'](new ft('$text',{'vid':null===_0x1626cc?this['_revisionId']++:_0x1626cc++}));}if(_0x669365['is']('documentFragment')){const _0x37b6d8=B(_0x669365['rootName']);return _0x37b6d8['_insertChild'](0x0,_0x30635e),_0x37b6d8;}return _0x5b3d3e['_setAttribute']('vid_end',null===_0x1626cc?this['_revisionId']++:_0x1626cc++),_0x5b3d3e['_insertChild'](0x0,_0x30635e),_0x5b3d3e;}['_calculateMetaData'](_0x5b5c5d,_0x23f300,_0x1b8a32){this['_reset']();const {roots:_0x40c978,markers:_0x4a1402,rootsAttributes:_0x114265}=this['_savedMetaData']['get'](_0x5b5c5d);this['_baseRoots']=new Map(_0x40c978),this['_baseRootsAttributes']=new Map(_0x57ef62(_0x114265));for(const [_0x6a547c,_0x4d7b26]of this['_baseRoots'])if('$graveyard'!==_0x6a547c&&(this['_diffRoots']['set'](_0x6a547c,F(_0x4d7b26)),this['_diffRootsAttributes']=new Map(_0x57ef62(_0x114265)),_0x1b8a32)){const _0x59bc05=this['_revisionId'];this['_idsRoots']['set'](_0x6a547c,this['_makeIdsRoot'](_0x4d7b26)),this['_baseIdsRoots']['set'](_0x6a547c,this['_makeIdsRoot'](_0x4d7b26,_0x59bc05));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1b8a32&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x53fbba,_0x31979d]of _0x4a1402){const _0x4d3d70=this['_baseRoots']['get'](_0x31979d['rootName']),_0x603f37=this['_diffRoots']['get'](_0x31979d['rootName']),_0x23cebb=new vt(this['_fixPosition'](_0x31979d['start'],_0x4d3d70),this['_fixPosition'](_0x31979d['end'],_0x4d3d70)),_0x62c33a=this['_fixRange'](_0x23cebb,_0x603f37);_0x4d3d70['markers']['set'](_0x53fbba,_0x23cebb),this['_markers']['set'](_0x53fbba,_0x62c33a);}this['_applyOperations'](_0x5b5c5d,_0x23f300,_0x1b8a32);}['_applyOperations'](_0x395750,_0x2739f1,_0x9d9485){for(const _0x5c788f of this['source']['getOperations'](_0x395750,_0x2739f1))this['_handleOperation'](_0x5c788f,_0x9d9485);for(const _0x3491f5 of this['_diffRoots']['values']())_0x3491f5['markers']['clear']();for(const [_0x1b4a0f,_0x53d5da]of this['_markers']){this['_diffRoots']['get'](_0x53d5da['root']['rootName'])['markers']['set'](_0x1b4a0f,_0x53d5da['clone']());}const _0x48b157=new Map(),_0x318434=new Map();for(const [_0x379923,_0xe9a8a5]of this['_diffRoots'])_0x48b157['set'](_0x379923,F(_0xe9a8a5)),_0x318434['set'](_0x379923,this['_diffRootsAttributes']['get'](_0x379923));this['_saveMetaData'](_0x2739f1,_0x48b157,this['_markers'],_0x318434);}['_getPreviousFrom'](_0x1caac9){const _0x53401a=Array['from'](this['_savedMetaData']['keys']());_0x53401a['sort']((_0x333d27,_0x3d575b)=>_0x333d27-_0x3d575b),_0x53401a['reverse']();for(const _0x15584a of _0x53401a)if(_0x15584a<_0x1caac9)return _0x15584a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1a0b53,_0x405315){const _0x54fe5a=Array['from'](_0x405315['markers'])['map'](([_0x1a5660,_0x4cecf9])=>[_0x1a5660,this['_fixRange'](_0x4cecf9,_0x1a0b53)]);_0x1a0b53['markers']=new Map(_0x54fe5a);}['_transformMarkers'](_0x4bb7f4){for(const _0x4f239e of this['_markers']['values']()){const _0x570628=_0x4f239e['getTransformedByOperation'](_0x4bb7f4),_0x4b8d86=vt['_createFromRanges'](_0x570628);_0x4f239e['start']=_0x4b8d86['start'],_0x4f239e['end']=_0x4b8d86['end'];}}['_handleOperation'](_0x21355a,_0x36a8a5){if('addRoot'!=_0x21355a['type']&&'detachRoot'!=_0x21355a['type']){if('insert'==_0x21355a['type']){const _0x2d56d3=_0x21355a['position']['root']['rootName'];this['_diffRoots']['has'](_0x2d56d3)||(this['_diffRoots']['set'](_0x2d56d3,B(_0x2d56d3,!0x0)),this['_diffRootsAttributes']['set'](_0x2d56d3,{}),_0x36a8a5&&this['_idsRoots']['set'](_0x2d56d3,B(_0x2d56d3,!0x0)));}else{if('addRootAttribute'==_0x21355a['type']||'removeRootAttribute'==_0x21355a['type']||'changeRootAttribute'==_0x21355a['type'])return void this['_handleRootAttributeOperation'](_0x21355a);'marker'==_0x21355a['type']&&this['_handleMarkerOperation'](_0x21355a);}if('marker'!==_0x21355a['type']){const _0x1411ce=this['_cloneOperation'](_0x21355a,this['_diffRoots']);_0x1411ce['_execute'](),this['_transformMarkers'](_0x1411ce);}if(_0x36a8a5)switch(_0x21355a['type']){case'insert':this['_handleInsertOperation'](_0x21355a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x21355a);break;case'merge':this['_handleMergeOperation'](_0x21355a);break;case'split':this['_handleSplitOperation'](_0x21355a);}}else this['_handleRootOperation'](_0x21355a,_0x36a8a5);}['_cloneOperation'](_0x163019,_0x2e57){const _0x5a342e=_0x163019['clone']();return _0x5a342e['_authorId']=_0x163019['_authorId'],this['_fixOperation'](_0x5a342e,_0x2e57),_0x5a342e;}['_getBaseVids'](_0x287038){return _0x287038['map'](_0x5b5427=>{const _0x5c1c86=this['_getVidAttributeName'](_0x5b5427);return Number(_0x5b5427['item']['getAttribute'](_0x5c1c86));});}['_generateTape'](_0x19eebd,_0x29c5bc){if(_0x19eebd['is']('element','$text'))_0x29c5bc['push']({'item':_0x19eebd,'type':'text'});else{_0x19eebd['is']('element')&&_0x29c5bc['push']({'item':_0x19eebd,'type':'elementStart'});for(const _0x4270b1 of _0x19eebd['getChildren']())this['_generateTape'](_0x4270b1,_0x29c5bc);_0x19eebd['is']('element')&&_0x29c5bc['push']({'item':_0x19eebd,'type':'elementEnd'});}return _0x29c5bc;}['_getState'](){const _0x1b460d=new Map(this['_touched']),_0x24c611=new Map(_0x1b460d),_0x5c27c5=new Map(),_0xe55dfb={'insertions':{},'deletions':{}},_0x4128a7={'insertions':{},'deletions':{}},_0x675d43=new Map(),_0x48a2c1=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x48a2c1['delete']('$graveyard');for(const _0x124c18 of _0x48a2c1){const _0x418f6c=this['_diffRoots']['get'](_0x124c18)||B(_0x124c18,!0x1),_0x27a3ef=this['_baseRoots']['get'](_0x124c18)||B(_0x124c18,!0x1);_0x418f6c['isAttached']()||_0x27a3ef['isAttached']()?(_0xe55dfb['insertions'][_0x124c18]=F(_0x418f6c),_0xe55dfb['deletions'][_0x124c18]=F(_0x27a3ef),this['_copyMarkers'](_0xe55dfb['deletions'][_0x124c18],_0x27a3ef),this['_copyMarkers'](_0xe55dfb['insertions'][_0x124c18],_0x418f6c),_0x4128a7['insertions'][_0x124c18]=this['_generateTape'](this['_idsRoots']['get'](_0x124c18),[]),_0x4128a7['deletions'][_0x124c18]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x124c18)||B(_0x124c18,!0x1),[])):_0x48a2c1['delete'](_0x124c18);}for(const _0x425265 of _0x48a2c1){const _0x2bc02a=_0x4128a7['insertions'][_0x425265];for(const _0x513adc of _0x2bc02a){const _0x3719c5=this['_getVidAttributeName'](_0x513adc),_0x5b6665=_0x513adc['item']['getAttribute'](_0x3719c5);_0x24c611['delete'](_0x5b6665),_0x5b6665>=this['_startingRevisionId']&&_0x5c27c5['set'](_0x5b6665,_0x1b460d['get'](_0x5b6665));}}for(const _0x3ee8f5 of _0x48a2c1){const _0x45f059=_0x4128a7['insertions'][_0x3ee8f5],_0x3128d0=this['_getBaseVids'](_0x4128a7['deletions'][_0x3ee8f5]);let _0x139dfb=0x0;for(const _0x370f17 of _0x45f059){const _0x52db7f=this['_getVidAttributeName'](_0x370f17),_0x3c0a91=_0x370f17['item']['getAttribute'](_0x52db7f);if(!_0x5c27c5['has'](_0x3c0a91)&&!_0x675d43['has'](_0x3c0a91)){if(_0x24c611['has'](_0x3c0a91))_0x139dfb++;else{if(_0x3c0a91!=_0x3128d0[_0x139dfb]){const _0x4bb50c=_0x1b460d['get'](_0x3c0a91)||_0x1b460d['get'](_0x3128d0[_0x139dfb]);for(;_0x3c0a91!=_0x3128d0[_0x139dfb];)_0x24c611['has'](_0x3128d0[_0x139dfb])||(_0x675d43['set'](_0x3128d0[_0x139dfb],_0x4bb50c),_0x1b460d['set'](_0x3128d0[_0x139dfb],_0x4bb50c)),_0x139dfb++;}_0x139dfb++;}}}}for(const _0x5b4dd6 of _0x48a2c1){const _0x5cfd18=_0x4128a7['insertions'][_0x5b4dd6];for(const _0x2a8a0d of _0x5cfd18){const _0x43490c=this['_getVidAttributeName'](_0x2a8a0d),_0x40152d=_0x2a8a0d['item']['getAttribute'](_0x43490c);if(_0x675d43['has'](_0x40152d)){const _0x2bb20a=_0x675d43['get'](_0x40152d);_0x24c611['has'](_0x40152d)||_0x24c611['set'](_0x40152d,{..._0x2bb20a}),_0x5c27c5['set'](_0x40152d,{..._0x2bb20a});}}}for(const _0x3b9f69 of _0x24c611['keys']())_0x3b9f69>=this['_startingRevisionId']&&_0x24c611['delete'](_0x3b9f69);const _0x30ef08=new Map();for(const _0x37b459 of _0x48a2c1){let _0x241d0b=_0x4128a7['insertions'][_0x37b459];for(const _0x52ad52 of _0x241d0b)if(_0x52ad52['item']['is']('element','tableCell')){const _0x301f23=this['_getVidAttributeName'](_0x52ad52),_0x5e34ff=_0x52ad52['item']['getAttribute'](_0x301f23);if(_0x5c27c5['has'](_0x5e34ff)){const _0x4bfbad=_0x52ad52['item']['parent']['parent']['getAttribute']('vid_start'),_0x4fca87=_0x30ef08['get'](_0x4bfbad)||new Set();_0x4fca87['add'](_0x5c27c5['get'](_0x5e34ff)['userId']),_0x30ef08['set'](_0x4bfbad,_0x4fca87);}}_0x241d0b=_0x4128a7['deletions'][_0x37b459];for(const _0x13de49 of _0x241d0b)if(_0x13de49['item']['is']('element','tableCell')){const _0x3e46a3=this['_getVidAttributeName'](_0x13de49),_0x545873=_0x13de49['item']['getAttribute'](_0x3e46a3);if(_0x24c611['has'](_0x545873)){const _0x339158=_0x13de49['item']['parent']['parent']['getAttribute']('vid_start'),_0x204e3f=_0x30ef08['get'](_0x339158)||new Set();_0x204e3f['add'](_0x24c611['get'](_0x545873)['userId']),_0x30ef08['set'](_0x339158,_0x204e3f);}}for(const _0x4ea0ec of _0x30ef08['keys']())(_0x5c27c5['has'](_0x4ea0ec)||_0x24c611['has'](_0x4ea0ec))&&_0x30ef08['delete'](_0x4ea0ec);}for(const _0x40bf88 of _0x48a2c1){const _0x366895=_0x4128a7['insertions'][_0x40bf88];let _0x7d6aa1=null,_0x110729=null;for(const _0x20f760 of _0x366895){const _0x4f6c80=this['_getVidAttributeName'](_0x20f760),_0x5b48f2=_0x20f760['item']['getAttribute'](_0x4f6c80),_0x4c7086=_0x30ef08['get'](_0x5b48f2);_0x4c7086&&'elementStart'==_0x20f760['type']&&(_0x7d6aa1=Array['from'](_0x4c7086)[0x0],_0x110729=_0x20f760['item']['getAttribute']('vid_end')),_0x7d6aa1&&(_0x24c611['set'](_0x5b48f2,{'userId':_0x7d6aa1}),_0x5c27c5['set'](_0x5b48f2,{'userId':_0x7d6aa1})),_0x5b48f2==_0x110729&&(_0x7d6aa1=null,_0x110729=null);}}const _0x33843b={},_0x2715f4=new Set();for(const _0x8719f6 of _0x48a2c1){const _0x3a0d7e=_0xe55dfb['deletions'][_0x8719f6],_0x5a18f1=_0xe55dfb['insertions'][_0x8719f6];for(const {userId:_0x432fb0}of this['_touchedMarkers']['values']())null!==_0x432fb0&&_0x2715f4['add'](_0x432fb0);for(const {userId:_0x37b6aa}of this['_touchedRoots']['values']())null!==_0x37b6aa&&_0x2715f4['add'](_0x37b6aa);this['_markChanges'](_0x5a18f1,_0x4128a7['insertions'][_0x8719f6],_0x5c27c5,'insertion',_0x2715f4),this['_markChanges'](_0x3a0d7e,_0x4128a7['deletions'][_0x8719f6],_0x24c611,'deletion',_0x2715f4),_0x33843b[_0x8719f6]={'insertions':this['_prepareViewToSave'](_0x5a18f1),'deletions':this['_prepareViewToSave'](_0x3a0d7e),'attachChange':this['_touchedRoots']['get'](_0x8719f6)||null,'attributesBefore':_0x57ef62(this['_baseRootsAttributes']['get'](_0x8719f6))||{},'attributesAfter':_0x57ef62(this['_diffRootsAttributes']['get'](_0x8719f6))};}return{'diffData':_0x33843b,'authorsIds':Array['from'](_0x2715f4)};}['_processRootBeforeSave'](_0x437a56){for(const [,_0x1422ee]of _0x437a56['markers']){const _0x8c91d2=_0x1422ee['start']['getAncestors']()['filter'](_0x2ba1b7=>'tableCell'==_0x2ba1b7['name']);for(const _0x4f6cba of _0x8c91d2)0x1==_0x4f6cba['childCount']&&_0x4f6cba['getChild'](0x0)['is']('element','paragraph')&&_0x4f6cba['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x26574d){this['_processRootBeforeSave'](_0x26574d);const _0x3b67a7=this['editor']['data']['toView'](_0x26574d,{}),_0x50e310=Array['from'](_0x3b67a7['getChildren']())['map'](_0x364e64=>this['_getViewJson'](_0x364e64));return JSON['stringify'](_0x50e310);}['_getViewJson'](_0x2d9c54){if(_0x2d9c54['is']('$text'))return _0x2d9c54['data'];{const _0x272f78=_0x2d9c54;return{'type':Object['keys'](C)['find'](_0xf2fa23=>_0x2d9c54 instanceof C[_0xf2fa23]),'name':_0x272f78['name'],'attributes':Array['from'](_0x272f78['getAttributes']()),'children':Array['from'](_0x272f78['getChildren']())['map'](_0x20c68b=>this['_getViewJson'](_0x20c68b))};}}['_markChanges'](_0x1c4d61,_0x5eb25f,_0x331f6f,_0x8ce259,_0x2c5a2b){let _0x3de60d=null,_0x3ba31f=null,_0x2f1b30=0x0;const _0x4daa45=this['editor']['model'];for(let _0xb8158f=0x0;_0xb8158f<_0x5eb25f['length'];_0xb8158f++){const _0x26ba72=this['_getVidAttributeName'](_0x5eb25f[_0xb8158f]),_0x22212b=_0x5eb25f[_0xb8158f]['item']['getAttribute'](_0x26ba72),_0x1ede4f=_0x331f6f['get'](_0x22212b),_0xad0c5c=_0xb8158f==_0x5eb25f['length']-0x1;(!_0x3de60d&&_0x1ede4f&&(_0x3de60d=_0x1ede4f,_0x3ba31f=_0x5eb25f[_0xb8158f]),_0x3de60d&&(!_0x1ede4f||_0x1ede4f['userId']!=_0x3de60d['userId']))&&(_0x292db9(_0x1ede4f,J(_0x3ba31f,_0x1c4d61,_0x4daa45),J(_0x5eb25f[_0xb8158f],_0x1c4d61,_0x4daa45)),_0x3de60d=_0x1ede4f||null,_0x3ba31f=_0x1ede4f?_0x5eb25f[_0xb8158f]:null),_0x3de60d&&_0xad0c5c&&_0x292db9(_0x1ede4f,J(_0x3ba31f,_0x1c4d61,_0x4daa45),q(_0x5eb25f[_0xb8158f],_0x1c4d61,_0x4daa45));}function _0x292db9(_0x16cce0,_0xf09f8e,_0x23c708){const _0x39e606=_0x3de60d['userId'],_0x39c4b9='revision:'+_0x8ce259+':'+_0x39e606+':'+_0x2f1b30++,_0x27f7d5=_0x4daa45['createRange'](_0xf09f8e,_0x23c708);_0x1c4d61['markers']['set'](_0x39c4b9,_0x27f7d5),null!==_0x39e606&&_0x2c5a2b['add'](_0x39e606);}}['_getVidAttributeName'](_0xb07aac){switch(_0xb07aac['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x32e1a4,_0x488977){_0x32e1a4['baseVersion']=null;for(const _0x2c0cf2 in _0x32e1a4){const _0x41dedb=_0x32e1a4[_0x2c0cf2];if(_0x41dedb instanceof gt){const _0x35d1d5=_0x488977['get'](_0x41dedb['root']['rootName']);_0x32e1a4[_0x2c0cf2]=this['_fixPosition'](_0x41dedb,_0x35d1d5);}if(_0x41dedb instanceof vt){const _0x52cbe2=_0x488977['get'](_0x41dedb['root']['rootName']);_0x32e1a4[_0x2c0cf2]=this['_fixRange'](_0x41dedb,_0x52cbe2);}'root'===_0x2c0cf2&&(_0x32e1a4['root']=_0x488977['get'](_0x32e1a4['root']['rootName']));}}['_fixRange'](_0x382f59,_0x3ee24d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x382f59['start'],_0x3ee24d),this['_fixPosition'](_0x382f59['end'],_0x3ee24d));}['_fixPosition'](_0x207d07,_0x13665a){return this['editor']['model']['createPositionFromPath'](_0x13665a,_0x207d07['path'],_0x207d07['stickiness']);}['_handleInsertOperation'](_0x5752e1){const _0x4ee198=this['_idsRoots']['get'](_0x5752e1['position']['root']['rootName']),_0x1f5943=this['_fixPosition'](_0x5752e1['position'],_0x4ee198),_0x3610bd=null===_0x5752e1['_authorId']?null:_0x5752e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e84e2=_0x1f5943['parent'],_0xff7d9f=this['_revisionId'],_0x3f9c55=[];for(const _0x504a17 of _0x5752e1['nodes'])if(_0x504a17['is']('element'))_0x3f9c55['push'](this['_makeIdsRoot'](_0x504a17));else{for(let _0x91f9ad=0x0;_0x91f9ad<_0x504a17['offsetSize'];_0x91f9ad++)_0x3f9c55['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x149898=this['_revisionId'];for(let _0x3b747e=_0xff7d9f;_0x3b747e<_0x149898;_0x3b747e++)this['_touched']['set'](_0x3b747e,{'userId':_0x3610bd});_0x1e84e2['_insertChild'](_0x1f5943['offset'],_0x3f9c55);}['_handleMoveOperation'](_0x1710c6){(_0x1710c6=this['_cloneOperation'](_0x1710c6,this['_idsRoots']))['_execute']();const _0x2a36d7=null===_0x1710c6['_authorId']?null:_0x1710c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11c859=_0x1710c6['getMovedRangeStart'](),_0x4e0840=_0x11c859['parent'],_0x34f78f=_0x11c859['offset'];!function _0x47d818(_0x1db65,_0x37226f,_0x1b92d6,_0x1507f7){for(let _0xed4177=_0x1b92d6;_0xed4177<_0x1507f7;_0xed4177++){const _0x42258b=_0x37226f['getChild'](_0xed4177);_0x42258b['is']('element','$text')?_0x1db65['set'](_0x42258b['getAttribute']('vid'),{'userId':_0x2a36d7}):(_0x1db65['set'](_0x42258b['getAttribute']('vid_start'),{'userId':_0x2a36d7}),_0x47d818(_0x1db65,_0x42258b,0x0,_0x42258b['childCount']),_0x1db65['set'](_0x42258b['getAttribute']('vid_end'),{'userId':_0x2a36d7}));}}(this['_touched'],_0x4e0840,_0x34f78f,_0x34f78f+_0x1710c6['howMany']);}['_handleMergeOperation'](_0x236459){const _0x4a74f4=null===(_0x236459=this['_cloneOperation'](_0x236459,this['_idsRoots']))['_authorId']?null:_0x236459['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x443939=_0x236459['targetPosition']['parent'],_0x2a6bf1=_0x236459['sourcePosition']['parent'],_0x38ad9b=_0x443939['getAttribute']('vid_end'),_0x3e5d3b=_0x2a6bf1['getAttribute']('vid_start');_0x443939['_setAttribute']('vid_end',_0x2a6bf1['getAttribute']('vid_end')),_0x2a6bf1['_setAttribute']('vid_end',_0x38ad9b),this['_touched']['set'](_0x3e5d3b,{'userId':_0x4a74f4}),this['_touched']['set'](_0x38ad9b,{'userId':_0x4a74f4}),_0x236459['_execute']();}['_handleSplitOperation'](_0x388070){const _0x31b014=null===(_0x388070=this['_cloneOperation'](_0x388070,this['_idsRoots']))['_authorId']?null:_0x388070['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x9b174a=_0x388070['graveyardPosition'],_0x4a5cfc=_0x388070['splitPosition']['parent'];_0x388070['_execute']();const _0x50f598=_0x4a5cfc['getAttribute']('vid_end'),_0x4eb649=_0x388070['insertionPosition']['nodeAfter'];if(_0x9b174a){const _0x140c11=_0x4eb649['getAttribute']('vid_end'),_0xde2d58=_0x4a5cfc['getAttribute']('vid_end');_0x4a5cfc['_setAttribute']('vid_end',_0x140c11),_0x4eb649['_setAttribute']('vid_end',_0xde2d58),this['_touched']['set'](_0x4a5cfc['getAttribute']('vid_end'),{'userId':_0x31b014}),this['_touched']['set'](_0x4eb649['getAttribute']('vid_start'),{'userId':_0x31b014});}else{const _0x218f16=this['_revisionId']++,_0x5f3319=this['_revisionId']++;_0x4a5cfc['_setAttribute']('vid_end',_0x218f16),_0x4eb649['_setAttribute']('vid_start',_0x5f3319),_0x4eb649['_setAttribute']('vid_end',_0x50f598),this['_touched']['set'](_0x218f16,{'userId':_0x31b014}),this['_touched']['set'](_0x5f3319,{'userId':_0x31b014});}}['_handleMarkerOperation'](_0x4aec26){if(!_0x4aec26['affectsData'])return;const _0x189907=(_0x4aec26=this['_cloneOperation'](_0x4aec26,this['_diffRoots']))['oldRange']?_0x4aec26['oldRange']['root']:null,_0x1271f9=_0x4aec26['newRange']?_0x4aec26['newRange']['root']:null;_0x189907&&this['_markers']['delete'](_0x4aec26['name']),_0x1271f9&&this['_markers']['set'](_0x4aec26['name'],_0x4aec26['newRange']['clone']());const _0x4db47c=null===_0x4aec26['_authorId']?null:_0x4aec26['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c98b6=_0x4aec26['name'];if(!this['_touchedMarkers']['has'](_0x1c98b6))return void this['_touchedMarkers']['set'](_0x1c98b6,{'range':_0x4aec26['oldRange'],'userId':_0x4db47c});const _0x19195b=this['_touchedMarkers']['get'](_0x1c98b6),_0x5ae1cc=_0x19195b['range'],_0x2b97a0=_0x4aec26['newRange'];null==_0x5ae1cc&&null==_0x2b97a0||_0x5ae1cc&&_0x2b97a0&&_0x5ae1cc['isEqual'](_0x2b97a0)?this['_touchedMarkers']['delete'](_0x4aec26['name']):_0x19195b['userId']=_0x4db47c;}['_handleRootOperation'](_0x5ac7f7,_0x10364f){this['_diffRoots']['has'](_0x5ac7f7['rootName'])?this['_diffRoots']['get'](_0x5ac7f7['rootName'])['_isAttached']=_0x5ac7f7['isAdd']:(this['_diffRoots']['set'](_0x5ac7f7['rootName'],B(_0x5ac7f7['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ac7f7['rootName'],{}),_0x10364f&&this['_idsRoots']['set'](_0x5ac7f7['rootName'],B(_0x5ac7f7['rootName'],!0x0)));const _0x4a336a=null===_0x5ac7f7['_authorId']?null:_0x5ac7f7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x342bd5=this['_touchedRoots']['get'](_0x5ac7f7['rootName']);_0x342bd5&&_0x342bd5['userId']===_0x4a336a?this['_touchedRoots']['delete'](_0x5ac7f7['rootName']):this['_touchedRoots']['set'](_0x5ac7f7['rootName'],{'userId':_0x4a336a,'isAttached':_0x5ac7f7['isAdd']});}['_handleRootAttributeOperation'](_0x1e4554){const _0xa3503f=this['_diffRootsAttributes']['get'](_0x1e4554['root']['rootName']);null===_0x1e4554['newValue']?delete _0xa3503f[_0x1e4554['key']]:_0xa3503f[_0x1e4554['key']]=_0x1e4554['newValue'];}}function F(_0x3346e4){const _0x2f6958=B(_0x3346e4['rootName'],_0x3346e4['isAttached']());for(const _0x53f21c of _0x3346e4['getChildren']()){const _0x6f53bf=_0x53f21c['_clone'](!0x0);_0x2f6958['_appendChild'](_0x6f53bf);}return _0x2f6958;}function B(_0x1f97ab,_0xc278cc=!0x0){const _0x4b7ca=new mt();return _0x4b7ca['rootName']=_0x1f97ab,_0x4b7ca['_isAttached']=_0xc278cc,_0x4b7ca['isAttached']=()=>_0x4b7ca['_isAttached'],_0x4b7ca;}function J(_0x58ada3,_0x253434,_0x2c344b){const _0x4ecf00='elementEnd'==_0x58ada3['type']?_0x2c344b['createPositionAt'](_0x58ada3['item'],'end'):_0x2c344b['createPositionBefore'](_0x58ada3['item']);return _0x2c344b['createPositionFromPath'](_0x253434,_0x4ecf00['path'],_0x4ecf00['stickiness']);}function q(_0x377383,_0x5911a2,_0x2513a5){const _0x5bea20='elementStart'==_0x377383['type']?_0x2513a5['createPositionAt'](_0x377383['item'],0x0):_0x2513a5['createPositionAfter'](_0x377383['item']);return _0x2513a5['createPositionFromPath'](_0x5911a2,_0x5bea20['path'],_0x5bea20['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x430ce2,_0x5470f0){super(_0x430ce2),this['focusTracker']=new _0x2c85f5(),this['keystrokes']=new _0x523557(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5470f0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x48877a(this);}['render'](){super['render'](),_0x4bb7b4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4e0a17=_0x7c5627=>_0x7c5627['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4e0a17),this['keystrokes']['set']('arrowleft',_0x4e0a17),this['keystrokes']['set']('arrowup',_0x4e0a17),this['keystrokes']['set']('arrowdown',_0x4e0a17);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2c97cd){this['revisionNameInputView']['fieldView']['element']['value']=_0x2c97cd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3b01c2){const _0x2ec5df=new _0x38e76f(this['locale'],_0x229c6c),_0x4287b0=_0x2ec5df['fieldView'];_0x4287b0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x83392=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3b01c2&&(_0x83392+='\x20('+R(this['locale'],'optional')+')'),(_0x2ec5df['label']=_0x83392,_0x4287b0['on']('input',()=>{this['revisionNameInputValue']=_0x4287b0['element']['value']['trim']();}),_0x2ec5df);}}class u extends _0x51bff9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x196af9=this['editor'],_0x297046=_0x196af9['plugins']['get']('RevisionTracker');_0x196af9['ui']['componentFactory']['add']('revisionHistory',_0x1e9592=>{const _0x1924da=_0x193195(_0x1e9592),_0x49476f=_0x1924da['panelView']['children'],_0x19dc39=new _0x2e1bb0(_0x1e9592),_0x5888c6=new _0x1ac59a(_0x1e9592),_0xf085ce=new te(_0x1e9592),_0xe7e349=new _0x1ac59a(_0x1e9592),_0x2a05e2=new te(_0x1e9592);return _0x1924da['bind']('isEnabled')['to'](_0x297046,'isReady',_0x297046,'isEnabled',_0x196af9,'isReadOnly',(_0x44fd86,_0x36210e,_0x22141f)=>_0x44fd86&&_0x36210e&&!_0x22141f),_0x1924da['buttonView']['set']({'icon':_0x582ab3['history'],'label':R(_0x1e9592,'Revision\x20history'),'tooltip':!0x0}),_0xf085ce['set']({'label':R(_0x1e9592,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xf085ce['bind']('isEnabled')['to'](_0x297046,'isReady',_0x297046,'isEnabled',_0x196af9,'isReadOnly',(_0x4cd38c,_0xf51b83,_0x959606)=>_0x4cd38c&&_0xf51b83&&!_0x959606),_0xf085ce['on']('execute',()=>this['_showDialog']()),_0x2a05e2['set']({'label':R(_0x1e9592,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2a05e2['bind']('isEnabled')['to'](_0x297046,'isReady',_0x196af9,'isReadOnly',(_0x4adffd,_0x46968f)=>_0x4adffd&&!_0x46968f),_0x2a05e2['on']('execute',()=>{_0x196af9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1924da['isOpen']=!0x1,_0x196af9['editing']['view']['focus']();}),_0x5888c6['children']['add'](_0xf085ce),_0xe7e349['children']['add'](_0x2a05e2),_0x19dc39['role']='menu',_0x19dc39['items']['addMany']([_0x5888c6,_0xe7e349]),_0x49476f['add'](_0x19dc39),_0x1924da;}),_0x196af9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3ef665=this['editor'],_0x445990=_0x3ef665['locale'],_0x4a309a=new _0x40c2c3(_0x445990),_0x211ba3=new _0x51175b(_0x445990);_0x4a309a['buttonView']['set']({'icon':_0x582ab3['history'],'label':R(_0x445990,'Revision\x20history')});const _0x502e55=new _0x1b0a56(_0x445990,_0x4a309a),_0x4b12e6=new _0x291ccc(_0x445990);_0x4b12e6['set']({'label':R(_0x445990,'Save\x20current\x20revision')}),_0x4b12e6['delegate']('execute')['to'](_0x4a309a),_0x4b12e6['on']('execute',()=>{this['_showDialog']();}),_0x502e55['children']['add'](_0x4b12e6),_0x211ba3['items']['add'](_0x502e55);const _0x15e995=new _0x1b0a56(_0x445990,_0x4a309a),_0x49f0e3=new _0x291ccc(_0x445990);return _0x49f0e3['set']({'label':R(_0x445990,'Open\x20revision\x20history')}),_0x49f0e3['delegate']('execute')['to'](_0x4a309a),_0x49f0e3['on']('execute',()=>{_0x3ef665['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x15e995['children']['add'](_0x49f0e3),_0x211ba3['items']['add'](_0x15e995),_0x4a309a['panelView']['children']['add'](_0x211ba3),_0x4a309a;}['_showDialog'](){const _0x2d27fd=this['editor'],_0x209d3f=_0x2d27fd['locale'],_0x22c54f=_0x2d27fd['plugins']['get']('Dialog'),_0x46a0f3=_0x2d27fd['plugins']['get']('RevisionTracker');function _0x587441(_0x459974){_0x2d27fd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x459974['revisionName']?_0x459974['revisionNameInputView']['errorText']=R(_0x209d3f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2d27fd['plugins']['get'](l)['saveRevision']({'name':_0x459974['revisionName']}),_0x22c54f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x587441(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x22c54f['show']({'id':'revisionSave','title':R(_0x209d3f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2d27fd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x22c54f['hide']()},{'label':R(_0x2d27fd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x69e5ae){_0x69e5ae['bind']('isEnabled')['to'](_0x46a0f3,'isReady',_0x46a0f3,'isEnabled',_0x2d27fd,'isReadOnly',(_0x10f139,_0x5890ab,_0x53a35d)=>_0x10f139&&_0x5890ab&&!_0x53a35d);},'onExecute':()=>_0x587441(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3dbfe0=this['editor'],_0x173fb7=_0x3dbfe0['locale'];this['_saveRevisionFormView']=new hs(_0x173fb7,_0x3dbfe0['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x4e59e0,_0x2dda87){super(_0x4e59e0),this['_model']=_0x2dda87,this['changeId']=_0x2dda87['id'];const _0x4f7e83=this['bindTemplate'],_0x5f0687=R(_0x4e59e0,_0x2dda87['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2dda87['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2dda87['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4f7e83['to']('type',_0x54d810=>'ck-revision-change__'+_0x54d810)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5f0687}]},{'text':'\x20'+_0x2dda87['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x6de063(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1d64d5){super(),this['id']=_0x1d64d5['id']||_0x2c16be(),this['author']=_0x1d64d5['author'],this['type']=_0x1d64d5['type'],this['data']=_0x1d64d5['data']||{},this['rootName']=_0x1d64d5['rootName'],this['set']('createdAt',_0x1d64d5['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x53e5f9,_0x1e8e12){this['newRevisionId']=_0x53e5f9,this['oldRevisionId']=_0x1e8e12,this['changes']=new _0x589480();}['_setChanges'](_0x2934ed){for(const _0x33320c of _0x2934ed)this['changes']['add'](_0x33320c);}}const Z={'c':_0x53de37,'a':_0x3a1a5c,'e':_0x11dac0,'r':_0x263c1c,'u':_0x55ce4d};class d extends _0x51bff9{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x532a7f,_0x4ace0d,j];}constructor(_0x59befb){super(_0x59befb),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1f900a,_0x18b869,_0x2ecd92)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x279718=>{for(const _0x2b2b4f of this['editor']['editing']['view']['document']['roots'])_0x2ecd92?_0x279718['removeClass']('ck-editor__editable__overlay',_0x2b2b4f):_0x279718['addClass']('ck-editor__editable__overlay',_0x2b2b4f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2e72a6=>null!==_0x2e72a6),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x42e234,_0x26f1cc,_0x4a089b)=>_0x42e234&&_0x4a089b?_0x26f1cc['changes']['getIndex'](_0x4a089b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x564ea7,_0x4f4895)=>_0x564ea7?_0x4f4895['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ace0d);}['init'](){const _0x546770=this['editor'],_0x4e1f90=new yt(_0x546770,{'direction':'backward'}),_0x287862=new yt(_0x546770,{'direction':'forward'});(_0x546770['commands']['add']('showPreviousChange',_0x4e1f90),_0x546770['commands']['add']('showNextChange',_0x287862),_0x546770['commands']['add']('restoreRevision',new _t(_0x546770)),this['on']('change:numberOfChanges',()=>{_0x4e1f90['refresh'](),_0x287862['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x546770['enableReadOnlyMode']('revision-viewer'),_0x546770['plugins']['has']('WidgetToolbarRepository'))&&_0x546770['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1fe8ac){await this['loadRevisionData'](_0x1fe8ac);const _0x526cc8={};for(const _0x4b6655 in _0x1fe8ac['diffData']){if(_0x1fe8ac['diffData'][_0x4b6655]['attachChange']&&!_0x1fe8ac['diffData'][_0x4b6655]['attachChange']['isAttached'])continue;const _0x49faee=this['_removeRevisionMarkers'](JSON['parse'](_0x1fe8ac['diffData'][_0x4b6655]['insertions'])),_0x5a854c=this['editor']['editing']['view']['document'],_0x4e1e07=new _0x46a385(_0x5a854c,_0x49faee['map'](_0xaacc79=>this['_getViewObj'](_0xaacc79)));this['editor']['data']['processor']['useFillerType']('marked'),_0x526cc8[_0x4b6655]=this['editor']['data']['processor']['toData'](_0x4e1e07),this['editor']['data']['processor']['useFillerType']('default');}return _0x526cc8;}async['getRevisionRootsAttributes'](_0x2c971a){await this['loadRevisionData'](_0x2c971a);const _0xbba455={};for(const _0x36c868 in _0x2c971a['diffData'])_0x2c971a['diffData'][_0x36c868]['attachChange']&&!_0x2c971a['diffData'][_0x36c868]['attachChange']['isAttached']||(_0xbba455[_0x36c868]=_0x2c971a['diffData'][_0x36c868]['attributesAfter']||{});return _0xbba455;}['_removeRevisionMarkers'](_0x40d3e0){return(_0x40d3e0=_0x40d3e0['filter'](_0x4053a9=>!_0x4053a9['name']||'revision-start'!==_0x4053a9['name']&&'revision-end'!==_0x4053a9['name']))['forEach'](_0xe0951f=>{'string'!=typeof _0xe0951f&&(_0xe0951f['children']=this['_removeRevisionMarkers'](_0xe0951f['children']),_0xe0951f['attributes']=_0xe0951f['attributes']['filter'](_0x4046c4=>!_0x4046c4[0x0]['startsWith']('data-revision-')));}),_0x40d3e0;}async['compare'](_0xd77189,_0x251e09,_0x3e8681=!0x1){if(!this['isEnabled'])return;const _0xbab040=this['diff'],_0x25ab3b=this['repository'],_0x5187f9='string'==typeof _0xd77189?_0x25ab3b['getRevision'](_0xd77189):_0xd77189,_0x3861cb='string'==typeof _0x251e09?_0x25ab3b['getRevision'](_0x251e09):_0x251e09,_0x4c7945=_0x5187f9['id'],_0x5cdef9=_0x3861cb?_0x3861cb['id']:null;if(!_0x3e8681&&this['diff']&&this['diff']['newRevisionId']===_0x4c7945&&this['diff']['oldRevisionId']===_0x5cdef9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4c7945,_0x5cdef9);const _0x4e83b9=this['_getRevisionsRange'](_0x5187f9,_0x3861cb,!0x0)['map'](_0x2de0b2=>this['loadRevisionData'](_0x2de0b2));return _0x4e83b9['push'](new Promise(_0x1ecf4f=>{setTimeout(_0x1ecf4f,0x14);})),Promise['all'](_0x4e83b9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x42bbdd=this['_getDiff'](_0x4c7945,_0x5cdef9);for(const _0x3067a of _0x42bbdd['changes'])this['_changeIdToChange']['set'](_0x3067a['id'],_0x3067a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f3523=>{for(const _0x423736 of this['editor']['model']['document']['getRootNames']())_0x2f3523['detachRoot'](_0x423736);for(const _0x58ced2 of Object['keys'](_0x42bbdd['model'])){const _0x26ecb6=_0x2f3523['addRoot'](_0x58ced2);for(const _0x59f629 of Object['keys'](_0x42bbdd['attributes'][_0x58ced2]))_0x2f3523['setAttribute'](_0x59f629,_0x42bbdd['attributes'][_0x58ced2][_0x59f629],_0x26ecb6);_0x2f3523['insert'](_0x42bbdd['model'][_0x58ced2],_0x26ecb6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x42bbdd['changes'])),this['isReady']=!0x0;})['catch'](_0x1f9300=>{console['error'](_0x1f9300),this['_cleanUp'](),_0xbab040&&(this['diff']=_0xbab040),this['isReady']=!0x0;});}['addRevisionData'](_0x2e94bd,_0x59401f){const _0x598456=this['repository']['createRevision'](_0x2e94bd);return _0x598456['on']('_update',(_0x3d7c47,_0x1b112f,_0x4aa331)=>_0x59401f(_0x1b112f,_0x4aa331,_0x598456)),this['repository']['addRevision'](_0x598456),_0x598456;}['loadRevisionData'](_0x913b2d){if(!_0x913b2d||_0x913b2d['diffData'])return Promise['resolve']();{const _0x7b0158=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7b0158,'revisionId':_0x913b2d['id']})['then'](_0x129100=>{_0x913b2d['_update']({'diffData':_0x129100['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x39cf25=>{for(const _0x2d5ae3 of this['editor']['model']['document']['getRootNames']())_0x39cf25['detachRoot'](_0x2d5ae3);});}['_sortAndFilterDiffChanges'](_0x286761){const _0x193322=[],_0x48ac90=new Map();for(const _0x8482b8 of this['editor']['model']['document']['getRootNames']()){const _0xd775d9=this['editor']['editing']['view']['getDomRoot'](_0x8482b8);if(!_0xd775d9)continue;const _0x230825=_0xd775d9['getClientRects']()['item'](0x0);_0x230825&&(_0x193322['push'](_0x8482b8),_0x48ac90['set'](_0x8482b8,_0x230825));}return _0x193322['sort']((_0x5ecf1b,_0x1224d9)=>{const _0x794396=_0x48ac90['get'](_0x5ecf1b),_0x1fc377=_0x48ac90['get'](_0x1224d9);return _0x794396['y']-_0x1fc377['y']||_0x794396['x']-_0x1fc377['x'];}),(_0x286761=_0x286761['filter'](_0x4d06a8=>_0x193322['includes'](_0x4d06a8['rootName'])))['sort']((_0x2c34aa,_0x384250)=>_0x193322['indexOf'](_0x2c34aa['rootName'])-_0x193322['indexOf'](_0x384250['rootName'])),_0x286761;}['_makeTape'](_0x3c8096){const _0x5d0538=Array['from'](_0x3c8096['markers'])['filter'](([_0x9716e5,_0x40bc32])=>_0x9716e5['startsWith']('revision:')&&!_0x40bc32['isCollapsed']),_0x1f21be=Array['from'](this['editor']['model']['createRangeIn'](_0x3c8096)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d0538['length'])for(const _0x4051d5 of _0x1f21be){const [_0x2437b2,_0x2dc523]=_0x5d0538[0x0],[,_0x1a4b51,_0x566244]=_0x2437b2['split'](':');if(_0x2dc523['end']['isEqual'](_0x4051d5['nextPosition'])&&_0x5d0538['shift'](),(_0x4051d5['previousPosition']['isEqual'](_0x2dc523['start'])||_0x4051d5['previousPosition']['isAfter'](_0x2dc523['start']))&&('insertion'==_0x1a4b51?_0x4051d5['isAdded']={'userId':_0x566244}:'deletion'==_0x1a4b51&&(_0x4051d5['isRemoved']={'userId':_0x566244})),0x0==_0x5d0538['length'])break;}return _0x1f21be;}['_refreshStartEndIndex'](_0x4ddcb5){const _0x4d8796=new Map();for(let _0x17c294=0x0;_0x17c294<_0x4ddcb5['length'];_0x17c294++)'text'===_0x4ddcb5[_0x17c294]['type']?(_0x4ddcb5[_0x17c294]['item']['startIndex']=_0x17c294,_0x4ddcb5[_0x17c294]['item']['endIndex']=_0x17c294):('elementStart'===_0x4ddcb5[_0x17c294]['type']?_0x4ddcb5[_0x17c294]['item']['startIndex']=_0x17c294:'elementEnd'===_0x4ddcb5[_0x17c294]['type']&&(_0x4ddcb5[_0x17c294]['item']['endIndex']=_0x17c294),_0x4d8796['set'](_0x4ddcb5[_0x17c294]['id'],_0x17c294));for(const _0x18851c of _0x4d8796['values']())'elementStart'===_0x4ddcb5[_0x18851c]['type']?_0x4ddcb5[_0x18851c]['item']['endIndex']=_0x4d8796['get'](_0x4ddcb5[_0x18851c]['pairId']):'elementEnd'===_0x4ddcb5[_0x18851c]['type']&&(_0x4ddcb5[_0x18851c]['item']['startIndex']=_0x4d8796['get'](_0x4ddcb5[_0x18851c]['pairId']));}['_processTape'](_0x11c6c9){for(let _0x26c242=0x0;_0x26c242<_0x11c6c9['length'];_0x26c242++){if('elementStart'===_0x11c6c9[_0x26c242]['type'])_0x11c6c9[_0x26c242]['item']['startIndex']=_0x26c242;else{if('elementEnd'===_0x11c6c9[_0x26c242]['type']){_0x11c6c9[_0x26c242]['item']['endIndex']=_0x26c242;const _0x8f5caf=_0x11c6c9[_0x26c242]['item']['startIndex'];_0x11c6c9[_0x8f5caf]['pairId']=_0x11c6c9[_0x26c242]['id'],_0x11c6c9[_0x26c242]['pairId']=_0x11c6c9[_0x8f5caf]['id'];}else _0x11c6c9[_0x26c242]['item']['startIndex']=_0x26c242,_0x11c6c9[_0x26c242]['item']['endIndex']=_0x26c242,_0x11c6c9[_0x26c242]['pairId']=null;}_0x11c6c9[_0x26c242]['markersStart']||(_0x11c6c9[_0x26c242]['markersStart']=[],_0x11c6c9[_0x26c242]['markersEnd']=[]);}}['_markInsertions'](_0x230eca,_0x3b8524){const _0x237c18=_0x230eca['filter'](_0x1d9f64=>!_0x1d9f64['isAdded']);for(let _0x51a0e4=0x0;_0x51a0e4<_0x3b8524['length'];_0x51a0e4++)_0x3b8524[_0x51a0e4]['isAdded']&&(_0x237c18[_0x51a0e4]['isAdded']=_0x3b8524[_0x51a0e4]['isAdded']);}['_makeModelFromViewString'](_0x12c4ff){const _0x478e28=JSON['parse'](_0x12c4ff),_0x5f1f38=this['editor']['editing']['view']['document'],_0x359fd0=new _0x46a385(_0x5f1f38,_0x478e28['map'](_0x1eaf3f=>this['_getViewObj'](_0x1eaf3f)));return this['editor']['data']['toModel'](_0x359fd0);}['_getViewObj'](_0x665b10){const _0x250dcb=this['editor']['editing']['view']['document'];if('string'==typeof _0x665b10)return new _0x2bd295(_0x250dcb,_0x665b10);{const _0x13f85b=_0x665b10['children']['map'](_0x3001cb=>this['_getViewObj'](_0x3001cb));return new(Z[_0x665b10['type']]||_0x12a678)(_0x250dcb,_0x665b10['name'],_0x665b10['attributes'],_0x13f85b);}}['_getDiff'](_0x1bfad4,_0x43a65f=null){const _0x349a4c=this['repository']['getRevision'](_0x1bfad4),_0x52aafd=_0x43a65f?this['repository']['getRevision'](_0x43a65f):null,_0x1bec50=this['_getRevisionsRange'](_0x349a4c,_0x52aafd),_0x48f234=_0x1bec50[_0x1bec50['length']-0x1],_0x32f0ea=new Map(),_0x3b8084={'model':{},'attributes':{},'changes':[]},_0x66b373=new Set(),_0x4febb1=new Map();for(let _0x543186=_0x1bec50['length']-0x1;_0x543186>=0x0;_0x543186--){const _0x58d839=_0x1bec50[_0x543186];for(const _0x18e277 of Object['keys'](_0x58d839['diffData']))if(_0x58d839['diffData'][_0x18e277]['attachChange']){const _0x89bcd9=_0x58d839['diffData'][_0x18e277]['attachChange'];_0x89bcd9['isAttached']?(_0x66b373['add'](_0x18e277),_0x4febb1['has'](_0x18e277)&&_0x4febb1['get'](_0x18e277)['userId']==_0x89bcd9['userId']?_0x4febb1['delete'](_0x18e277):_0x4febb1['set'](_0x18e277,_0x89bcd9)):_0x4febb1['has'](_0x18e277)?(_0x66b373['delete'](_0x18e277),_0x4febb1['delete'](_0x18e277)):(_0x66b373['add'](_0x18e277),_0x4febb1['set'](_0x18e277,_0x89bcd9));}else _0x66b373['add'](_0x18e277);}for(const _0x27ae0a of _0x66b373){const _0x501f2b=_0x4febb1['has'](_0x27ae0a)&&!_0x4febb1['get'](_0x27ae0a)['isAttached'];let _0x32d6e=_0x501f2b?_0x1bec50['length']-0x1:0x0;const _0x5179f7=_0x501f2b?-0x1:0x1;for(;_0x1bec50[_0x32d6e];){const _0x483c80=_0x1bec50[_0x32d6e];if(_0x483c80['diffData'][_0x27ae0a]){const _0xdc769b=_0x501f2b?_0x483c80['diffData'][_0x27ae0a]['attributesBefore']:_0x483c80['diffData'][_0x27ae0a]['attributesAfter'];_0x3b8084['attributes'][_0x27ae0a]=_0xdc769b?_0x57ef62(_0xdc769b):{};break;}_0x32d6e+=_0x5179f7;}}for(const _0x3d24f3 of _0x1bec50){_0x3d24f3['model']={};for(const _0x4b3e0b of _0x3d24f3['authors'])_0x32f0ea['set'](_0x4b3e0b['id'],_0x4b3e0b);for(const _0x1bd05c of _0x66b373){const _0x1b7e59=_0x3d24f3['diffData'][_0x1bd05c]?_0x3d24f3['diffData'][_0x1bd05c]['insertions']:'[]',_0x2f5ae4=_0x3d24f3['diffData'][_0x1bd05c]?_0x3d24f3['diffData'][_0x1bd05c]['deletions']:'[]';_0x3d24f3['model'][_0x1bd05c]={'insertions':this['_makeModelFromViewString'](_0x1b7e59),'deletions':this['_makeModelFromViewString'](_0x2f5ae4)};}}for(const _0x5ace1f of _0x66b373){let _0x5a5d99=null,_0x230519=0x0;const _0x4171f2=new Map(Array['from'](_0x349a4c['model'][_0x5ace1f]['insertions']['markers'])['filter'](([_0x545625])=>!_0x545625['startsWith']('revision:')));let _0x3e0c47=0x0;for(const _0x5ed226 of _0x1bec50){const _0x303190=this['_makeTape'](_0x5ed226['model'][_0x5ace1f]['insertions']);_0x5ed226==_0x349a4c?(_0x5a5d99=_0x303190,_0x230519=_0x5a5d99['length'],_0x5a5d99['forEach'](_0x3374c9=>{_0x3374c9['id']=_0x3e0c47++;}),this['_processTape'](_0x5a5d99)):this['_markInsertions'](_0x5a5d99,_0x303190);const _0x3ace28=_0x5a5d99['filter'](_0x5e0c68=>!_0x5e0c68['isAdded'])['map'](_0x158758=>_0x158758['id']);let _0x2eb264=0x0;const _0x54b1b9=this['_makeTape'](_0x5ed226['model'][_0x5ace1f]['deletions']);_0x54b1b9['forEach'](_0x1a780b=>{_0x1a780b['isRemoved']?_0x1a780b['id']=_0x230519++:_0x1a780b['id']=_0x3ace28[_0x2eb264++];}),this['_processTape'](_0x54b1b9),this['_setDistance'](_0x5a5d99,'isAdded'),this['_setDistance'](_0x54b1b9,'isRemoved'),_0x5ed226==_0x349a4c&&this['_markMarkers'](_0x5a5d99,_0x4171f2),_0x5a5d99=this['_joinTapes'](_0x5a5d99,_0x54b1b9),this['_refreshStartEndIndex'](_0x5a5d99),this['_setDistance'](_0x5a5d99,'isRemoved');}_0x5a5d99=_0x5a5d99['filter'](_0x2da7d5=>!(_0x2da7d5['isAdded']&&_0x2da7d5['isRemoved']));const _0x4825a9=new Map(_0x48f234['model'][_0x5ace1f]['deletions']['markers']),_0x241c1e=new Set(_0x4171f2['keys']());for(const _0x342b24 of _0x4825a9['keys']())_0x241c1e['delete'](_0x342b24);this['_markSuggestions'](_0x5a5d99,_0x241c1e),this['_fixObsoleteTags'](_0x5a5d99),_0x5a5d99=this['_removeMissingPairs'](_0x5a5d99),_0x5a5d99=this['_markMismatchedRemovedTags'](_0x5a5d99),_0x5a5d99=this['_removeUnsupportedChanges'](_0x5a5d99);const {root:_0x4f70ab,changes:_0x50d608}=this['_makeModelFromTape'](_0x5a5d99,_0x32f0ea,_0x5ace1f);_0x3b8084['model'][_0x5ace1f]=_0x4f70ab;const _0x169f74=_0x4febb1['get'](_0x5ace1f);if(_0x169f74){const _0x2cb7c2=_0x32f0ea['get'](_0x169f74['userId']),_0x537f82=new r({'author':_0x2cb7c2,'type':_0x169f74['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5ace1f});_0x50d608['unshift'](_0x537f82),_0x3b8084['attributes'][_0x5ace1f]['revisionHistoryAttachChange']=_0x537f82['id'];}_0x3b8084['changes']=_0x3b8084['changes']['concat'](_0x50d608);}return _0x3b8084;}['_markMarkers'](_0x471b39,_0x12c34e){for(let _0x22d981=0x0;_0x22d981<_0x471b39['length'];_0x22d981++)for(const [_0x13f22b,_0x1f2f8e]of _0x12c34e)_0x1f2f8e['start']['isEqual'](_0x471b39[_0x22d981]['previousPosition'])&&_0x471b39[_0x22d981]['markersStart']['push'](_0x13f22b),_0x1f2f8e['end']['isEqual'](_0x471b39[_0x22d981]['nextPosition'])&&_0x471b39[_0x22d981]['markersEnd']['push'](_0x13f22b);}['_joinTapes'](_0x2c6d19,_0x1cc423){let _0x6cb96d=[],_0x269a0b=0x0,_0x4a16ba=0x0;for(;_0x269a0b<_0x2c6d19['length']||_0x4a16ba<_0x1cc423['length'];){const _0x2ec2b3=_0x2c6d19[_0x269a0b]||{},_0xfb5332=_0x1cc423[_0x4a16ba]||{};if(_0x2ec2b3['id']==_0xfb5332['id'])_0x269a0b++,_0x4a16ba++,_0x6cb96d['push'](_0x2ec2b3);else{if(_0xfb5332['isRemoved']&&_0x2ec2b3['isAdded']){const {commonTape:_0x4477b5,iEnd:_0x435083,jEnd:_0x1392c7}=this['_threeWayMerge'](_0x2c6d19,_0x269a0b,_0x1cc423,_0x4a16ba);_0x6cb96d=_0x6cb96d['concat'](_0x4477b5),_0x269a0b=_0x435083,_0x4a16ba=_0x1392c7;}else _0xfb5332['isRemoved']?(_0x4a16ba++,_0x6cb96d['push'](_0xfb5332)):(_0x269a0b++,_0x6cb96d['push'](_0x2ec2b3));}}return _0x6cb96d;}['_markSuggestions'](_0x1671e1,_0x2914f1){const _0x5995c6=[];for(let _0x44c100=0x0;_0x44c100<_0x1671e1['length'];_0x44c100++){for(let _0xf7250e=0x0;_0xf7250e<_0x1671e1[_0x44c100]['markersStart']['length'];_0xf7250e++){const _0x36b826=_0x1671e1[_0x44c100]['markersStart'][_0xf7250e];if(!_0x2914f1['has'](_0x36b826))continue;const {group:_0x283673,type:_0x915665,authorId:_0x53f63b}=_0x3add73(_0x36b826);'revision-suggestion'!=_0x283673||'insertion'!=_0x915665&&'deletion'!=_0x915665||(_0x5995c6['unshift']({'type':_0x915665,'name':_0x36b826,'userId':_0x53f63b}),_0x1671e1[_0x44c100]['markersStart']['splice'](_0xf7250e,0x1),_0xf7250e--);}_0x53a02a(_0x1671e1[_0x44c100]);for(let _0x3ca653=0x0;_0x3ca653<_0x1671e1[_0x44c100]['markersEnd']['length'];_0x3ca653++){const _0x49b941=_0x1671e1[_0x44c100]['markersEnd'][_0x3ca653];if(!_0x2914f1['has'](_0x49b941))continue;const {group:_0x4afdc8,type:_0x2863a7}=_0x3add73(_0x49b941);if('revision-suggestion'!=_0x4afdc8||'insertion'!=_0x2863a7&&'deletion'!=_0x2863a7)continue;_0x1671e1[_0x44c100]['markersEnd']['splice'](_0x3ca653,0x1),_0x3ca653--;const _0x2a0300=_0x5995c6['findIndex'](_0x3a8827=>_0x3a8827['name']==_0x49b941);_0x2a0300>-0x1&&_0x5995c6['splice'](_0x2a0300,0x1);}}function _0x3add73(_0x266a27){const _0x1c2b3e=_0x266a27['split'](':');return{'group':_0x1c2b3e[0x0],'type':_0x1c2b3e[0x1],'subType':_0x1c2b3e['length']>=0x5?_0x1c2b3e[0x2]:null,'id':_0x1c2b3e['length']<0x5?_0x1c2b3e[0x2]:_0x1c2b3e[0x3],'authorId':_0x1c2b3e['length']<0x5?_0x1c2b3e[0x3]:_0x1c2b3e[0x4],'markerCount':0x6==_0x1c2b3e['length']?_0x1c2b3e[0x5]:null};}function _0x53a02a(_0x40f9b1){for(let _0x6acc5e=0x0;_0x6acc5e<_0x5995c6['length'];_0x6acc5e++){if(_0x40f9b1['isAdded']&&'insertion'==_0x5995c6[_0x6acc5e]['type'])return _0x40f9b1['isAddSuggestion']=_0x5995c6[_0x6acc5e],void delete _0x40f9b1['isAdded'];if(!_0x40f9b1['isAdded']&&!_0x40f9b1['isRemoved']&&'deletion'==_0x5995c6[_0x6acc5e]['type'])return void(_0x40f9b1['isRemoveSuggestion']=_0x5995c6[_0x6acc5e]);}}}['_setDistance'](_0x42395f,_0x4bc67f){let _0x5cc5f5=0x0,_0x2c896f=!0x1;const _0x4346f9=new Map();for(const _0x4cb0f9 of _0x42395f)_0x4cb0f9[_0x4bc67f]?_0x2c896f&&(_0x5cc5f5++,_0x2c896f=!0x1):(_0x5cc5f5++,_0x2c896f=!0x0),_0x4346f9['set'](_0x4cb0f9['id'],_0x5cc5f5);for(let _0x46f4c2=0x0;_0x46f4c2<_0x42395f['length'];_0x46f4c2++){if('isRemoved'==_0x4bc67f&&_0x42395f[_0x46f4c2]['isAdded']||'isAdded'==_0x4bc67f&&_0x42395f[_0x46f4c2]['isRemoved'])continue;if('text'==_0x42395f[_0x46f4c2]['type']){_0x42395f[_0x46f4c2]['distance']=0x0;continue;}const _0x4157e1=_0x4346f9['get'](_0x42395f[_0x46f4c2]['pairId']),_0x337d3a=_0x4346f9['get'](_0x42395f[_0x46f4c2]['id']);_0x42395f[_0x46f4c2]['distance']=_0x4157e1-_0x337d3a;}}['_getRevisionsRange'](_0x905a7,_0x77368f,_0x490381=!0x1){const _0x4e8f03=[];let _0x2b5f1d=this['repository']['getIndex'](_0x905a7),_0x417bdb=this['repository']['getIndex'](_0x77368f);for(-0x1==_0x417bdb&&(_0x417bdb=this['repository']['_revisions']['length'],_0x490381=!0x1);_0x2b5f1d<_0x417bdb;)_0x4e8f03['push'](this['repository']['getRevision'](_0x2b5f1d)),_0x2b5f1d++;return _0x490381&&_0x4e8f03['push'](this['repository']['getRevision'](_0x2b5f1d)),_0x4e8f03;}['_threeWayMerge'](_0x52c004,_0x5a95b9,_0x58197c,_0x594642){const _0x4b14e5=this['editor']['model']['schema'];let _0x35aa6b=_0x5a95b9;for(;_0x52c004[_0x35aa6b]&&_0x52c004[_0x35aa6b]['isAdded'];)_0x35aa6b++;let _0x59fe9d=_0x594642;for(;_0x58197c[_0x59fe9d]&&_0x58197c[_0x59fe9d]['isRemoved'];)_0x59fe9d++;_0x473068(_0x52c004,_0x5a95b9,_0x35aa6b),_0x473068(_0x58197c,_0x594642,_0x59fe9d);const _0x5c9ba7=_0x58197c['slice'](_0x594642,_0x59fe9d)['concat'](_0x52c004['slice'](_0x5a95b9,_0x35aa6b));return _0x5c9ba7['sort']((_0x40d881,_0xb658dd)=>_0x40d881['side']!=_0xb658dd['side']?_0x40d881['side']-_0xb658dd['side']:_0x40d881['level']!=_0xb658dd['level']?_0x40d881['level']-_0xb658dd['level']:_0x40d881['distance']!=_0xb658dd['distance']?_0xb658dd['distance']-_0x40d881['distance']:!!_0x40d881['isAdded']!=!!_0xb658dd['isAdded']?-0x1==_0x40d881['side']||0x0==_0x40d881['side']?_0x40d881['isAdded']?-0x1:0x1:_0x40d881['isAdded']?0x1:-0x1:_0x40d881['index']-_0xb658dd['index']),{'commonTape':_0x5c9ba7,'iEnd':_0x35aa6b,'jEnd':_0x59fe9d};function _0x473068(_0x3ee3dd,_0x2739eb,_0x3493d1){let _0x12bff6=-0x1,_0x1f115e=Number['POSITIVE_INFINITY'],_0x2b497a=!0x0;for(let _0x2e588f=_0x2739eb;_0x2e588f<_0x3493d1;_0x2e588f++)if(_0x4b14e5['isInline'](_0x3ee3dd[_0x2e588f]['item'])||(_0x2b497a=!0x1),_0x3ee3dd[_0x2e588f]['item']['startIndex']<_0x2739eb&&(_0x12bff6=_0x2e588f),_0x3ee3dd[_0x2e588f]['item']['endIndex']>=_0x3493d1){_0x1f115e=_0x2e588f;break;}_0x2b497a&&(_0x12bff6=_0x3493d1-0x1);for(let _0x476c8f=_0x2739eb;_0x476c8f<_0x3493d1;_0x476c8f++)_0x3ee3dd[_0x476c8f]['side']=_0x476c8f<=_0x12bff6?-0x1:_0x476c8f<_0x1f115e?0x0:0x1,_0x3ee3dd[_0x476c8f]['index']=_0x476c8f;let _0x5bc316=0x0;for(let _0x2bd455=_0x2739eb;_0x2bd455<=_0x12bff6;_0x2bd455++)0x0==_0x3ee3dd[_0x2bd455]['distance']?_0x3ee3dd[_0x2bd455]['level']=_0x5bc316:(_0x5bc316++,_0x3ee3dd[_0x2bd455]['level']=_0x5bc316,_0x5bc316++);for(let _0x497d18=_0x2739eb;_0x497d18<_0x3493d1;_0x497d18++)0x0==_0x3ee3dd[_0x497d18]['side']&&(_0x3ee3dd[_0x497d18]['level']=_0x5bc316);_0x5bc316=0x0;for(let _0x500de0=_0x3493d1-0x1;_0x500de0>=_0x1f115e;_0x500de0--)0x0==_0x3ee3dd[_0x500de0]['distance']?_0x3ee3dd[_0x500de0]['level']=_0x5bc316:(_0x5bc316--,_0x3ee3dd[_0x500de0]['level']=_0x5bc316,_0x5bc316--);}}['_fixObsoleteTags'](_0x249c1d){const _0x300bf7=new Map(),_0x3343a1=this['editor']['model']['schema'];for(let _0x14c9e4=0x1;_0x14c9e4<_0x249c1d['length'];_0x14c9e4++){let _0xce3b92,_0x47921d,_0x390d6a;const _0x32ec97=_0x249c1d[_0x14c9e4],_0x1b7d38=_0x249c1d[_0x14c9e4-0x1];if('text'==_0x32ec97['type'])continue;if(_0x32ec97['type']!=_0x1b7d38['type'])continue;if(!_0x3343a1['isBlock'](_0x1b7d38['item'])||_0x3343a1['isLimit'](_0x1b7d38['item']))continue;if(!_0x3343a1['isBlock'](_0x32ec97['item'])||_0x3343a1['isLimit'](_0x32ec97['item']))continue;if((_0x249c1d[_0x14c9e4]['isAdded']||_0x249c1d[_0x14c9e4]['isAddSuggestion'])&&_0x249c1d[_0x14c9e4-0x1]['isRemoved'])_0xce3b92=_0x249c1d[_0x14c9e4],_0x47921d=_0x249c1d[_0x14c9e4-0x1],_0x390d6a=_0x14c9e4-0x1;else{if(!_0x249c1d[_0x14c9e4]['isRemoved']||!_0x249c1d[_0x14c9e4-0x1]['isAdded']&&!_0x249c1d[_0x14c9e4-0x1]['isAddSuggestion'])continue;_0xce3b92=_0x249c1d[_0x14c9e4-0x1],_0x47921d=_0x249c1d[_0x14c9e4],_0x390d6a=_0x14c9e4;}const _0x3f34ca=_0xce3b92['level']==_0x47921d['level'],_0x352cc4=Math['abs'](_0xce3b92['level'])<Math['abs'](_0x47921d['level'])&&0x0==_0x47921d['distance'];(_0x3f34ca||_0x352cc4)&&(_0x300bf7['set'](_0x47921d['id'],_0xce3b92['id']),_0x249c1d['splice'](_0x390d6a,0x1),_0x14c9e4--,_0xce3b92['isAdded']=!0x1);}for(let _0x34b8da=0x0;_0x34b8da<_0x249c1d['length'];_0x34b8da++)_0x300bf7['has'](_0x249c1d[_0x34b8da]['pairId'])&&(_0x249c1d[_0x34b8da]['pairId']=_0x300bf7['get'](_0x249c1d[_0x34b8da]['pairId']));}['_removeMissingPairs'](_0x3d36c0){const _0x2dd3fe=new Set(_0x3d36c0['map'](_0x57fcdf=>_0x57fcdf['id']));for(let _0x46ca17=0x0;_0x46ca17<_0x3d36c0['length'];_0x46ca17++)_0x2dd3fe['has'](_0x3d36c0[_0x46ca17]['pairId'])||0x0==_0x3d36c0[_0x46ca17]['distance']||(_0x3d36c0[_0x46ca17]['isIncorrect']=!0x0);return _0x3d36c0['filter'](_0xeef286=>!_0xeef286['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1025d4){const _0x2b6a12=new Set();for(let _0x24f585=0x0;_0x24f585<_0x1025d4['length'];_0x24f585++){if(_0x2b6a12['has'](_0x1025d4[_0x24f585]['id'])&&_0x1025d4[_0x24f585]['isRemoved']&&(_0x1025d4[_0x24f585]['isIncorrect']=!0x0),_0x1025d4[_0x24f585]['isIncorrect'])continue;if(0x0==_0x1025d4[_0x24f585]['distance'])continue;if('elementStart'!=_0x1025d4[_0x24f585]['type'])continue;if(null==_0x1025d4[_0x24f585]['pairId'])continue;let _0x4f6890=_0x24f585+0x1,_0x431dcb=0x0;for(;_0x1025d4[_0x4f6890]['id']!=_0x1025d4[_0x24f585]['pairId'];)'elementStart'==_0x1025d4[_0x4f6890]['type']?_0x431dcb++:'elementEnd'==_0x1025d4[_0x4f6890]['type']&&_0x431dcb--,_0x4f6890++;if(0x0!=_0x431dcb){if(_0x1025d4[_0x24f585]['isRemoved'])_0x1025d4[_0x24f585]['isIncorrect']=!0x0;else{for(;_0x4f6890!=_0x24f585;)_0x1025d4[_0x4f6890]['isRemoved']&&0x0!=_0x1025d4[_0x4f6890]['distance']&&(_0x1025d4[_0x4f6890]['isIncorrect']=!0x0,_0x2b6a12['add'](_0x1025d4[_0x4f6890]['pairId'])),_0x4f6890--;}}}return _0x1025d4['filter'](_0x7b449b=>!_0x7b449b['isIncorrect']);}['_removeUnsupportedChanges'](_0x27538b){const _0x50d356=this['editor']['model']['schema'];for(let _0x49beaf=0x0;_0x49beaf<_0x27538b['length'];_0x49beaf++){if(!(_0x27538b[_0x49beaf]['isAdded']||_0x27538b[_0x49beaf]['isAddSuggestion']||_0x27538b[_0x49beaf]['isRemoved']||_0x27538b[_0x49beaf]['isRemoveSuggestion']))continue;if(0x0==_0x27538b[_0x49beaf]['distance'])continue;const _0x17d949=_0x27538b[_0x49beaf]['item'];_0x50d356['isBlock'](_0x17d949)||_0x50d356['isLimit'](_0x17d949)||(_0x27538b[_0x49beaf]['isAdded']&&delete _0x27538b[_0x49beaf]['isAdded'],_0x27538b[_0x49beaf]['isAddSuggestion']&&delete _0x27538b[_0x49beaf]['isAddSuggestion'],_0x27538b[_0x49beaf]['isRemoveSuggestion']&&delete _0x27538b[_0x49beaf]['isRemoveSuggestion'],_0x27538b[_0x49beaf]['isRemoved']&&(_0x27538b[_0x49beaf]['isIncorrect']=!0x0));}return _0x27538b['filter'](_0x43b885=>!_0x43b885['isIncorrect']);}['_makeModelFromTape'](_0x56d41e,_0x5e65d4,_0x281d0f){const _0x2f667e=new mt(),_0x5ac840=[],_0x21da47=new Map(),_0x5d94a2=this['editor']['model'],_0x32f0a7=_0x5d94a2['schema'],_0xa5606c=[_0x2f667e],_0x112461={},_0x218e2b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1e057e=null;const _0xdcbeca=[0x0];for(let _0x4da8d7=0x0;_0x4da8d7<_0x56d41e['length'];_0x4da8d7++)if('elementStart'===_0x56d41e[_0x4da8d7]['type']){_0x56d41e[_0x4da8d7]['previousPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca);const _0x2f2063=new ft(_0x56d41e[_0x4da8d7]['item']['name'],_0x56d41e[_0x4da8d7]['item']['getAttributes']());_0xa5606c[0x0]['_appendChild'](_0x2f2063),_0xdcbeca['push'](0x0),_0xa5606c['unshift'](_0x2f2063),_0x56d41e[_0x4da8d7]['nextPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca);}else'elementEnd'===_0x56d41e[_0x4da8d7]['type']?(_0xa5606c['shift'](),_0x56d41e[_0x4da8d7]['previousPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca),_0xdcbeca['pop'](),_0xdcbeca[_0xdcbeca['length']-0x1]++,_0x56d41e[_0x4da8d7]['nextPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca)):(_0x56d41e[_0x4da8d7]['previousPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca),_0x1e057e?_0x1e057e['_data']+=_0x56d41e[_0x4da8d7]['item']['data']:_0x1e057e=new wt(_0x56d41e[_0x4da8d7]['item']['data'],_0x56d41e[_0x4da8d7]['item']['getAttributes']()),_0x56d41e[_0x4da8d7+0x1]&&'text'===_0x56d41e[_0x4da8d7+0x1]['type']&&_0x589960(_0x1e057e,_0x56d41e[_0x4da8d7+0x1]['item'])||(_0xa5606c[0x0]['_appendChild'](_0x1e057e),_0x1e057e=null),_0xdcbeca[_0xdcbeca['length']-0x1]+=_0x56d41e[_0x4da8d7]['item']['offsetSize'],_0x56d41e[_0x4da8d7]['nextPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca));for(let _0x3a01cc=0x0;_0x3a01cc<_0x56d41e['length'];_0x3a01cc++){const _0x121011=_0x56d41e[_0x3a01cc]['previousPosition'],_0xf91053=_0x56d41e[_0x3a01cc]['nextPosition'];for(const _0x764a84 of _0x56d41e[_0x3a01cc]['markersStart'])_0x21da47['set'](_0x764a84,{'start':_0x121011,'end':null});_0x3738b5('isRemoveSuggestion',_0x3a01cc,_0x121011,_0xf91053),_0x3738b5('isAddSuggestion',_0x3a01cc,_0x121011,_0xf91053),_0x3738b5('isRemoved',_0x3a01cc,_0x121011,_0xf91053),_0x3738b5('isAdded',_0x3a01cc,_0x121011,_0xf91053);for(const _0x2ab886 of _0x56d41e[_0x3a01cc]['markersEnd']){_0x21da47['get'](_0x2ab886)['end']=_0xf91053;}}for(const [_0x5a2616,_0x4675f4]of _0x21da47){const _0x343145=this['editor']['model']['createRange'](_0x4675f4['start'],_0x4675f4['end']);_0x2f667e['markers']['set'](_0x5a2616,_0x343145);}return _0x5ac840['sort']((_0x2cf30b,_0x4f8fb9)=>{const _0x1b40da=_0x2f667e['markers']['get']('revision:'+_0x2cf30b['id']),_0x5cd3c6=_0x2f667e['markers']['get']('revision:'+_0x4f8fb9['id']);return _0x1b40da['start']['isBefore'](_0x5cd3c6['start'])?-0x1:_0x1b40da['start']['isAfter'](_0x5cd3c6['start'])?0x1:_0x1b40da['end']['isBefore'](_0x5cd3c6['end'])?-0x1:_0x1b40da['end']['isAfter'](_0x5cd3c6['end'])?0x1:'add'===_0x2cf30b['type']?-0x1:0x1;}),{'root':_0x2f667e,'changes':_0x5ac840};function _0x3738b5(_0x5ed591,_0x36b361,_0x2acf64,_0x2d3e9c){const _0x4495dc=!!_0x56d41e[_0x36b361][_0x5ed591],_0x325580=_0x4495dc?_0x56d41e[_0x36b361][_0x5ed591]['userId']:null,_0x50eb7a=_0x36b361===_0x56d41e['length']-0x1,_0x5bef85=_0x218e2b[_0x5ed591][0x0],_0xc635e5=_0x32f0a7['isObject'](_0x56d41e[_0x36b361]['item']);!_0x112461[_0x5ed591]&&_0x4495dc?_0x112461[_0x5ed591]={'start':_0x2acf64,'tapeItem':_0x56d41e[_0x36b361],'userId':_0x325580,'type':_0x5ed591}:_0x112461[_0x5ed591]&&!_0x4495dc?(_0x112461[_0x5ed591]['end']=_0x2acf64,_0x4d4c87(_0x112461[_0x5ed591]),_0x112461[_0x5ed591]=null):_0x112461[_0x5ed591]&&_0x4495dc&&_0x112461[_0x5ed591]['userId']!==_0x325580&&(_0x112461[_0x5ed591]['end']=_0x2acf64,_0x5bef85&&_0x5bef85['userId']===_0x112461[_0x5ed591]['userId']||_0x4d4c87(_0x112461[_0x5ed591]),_0x112461[_0x5ed591]={'start':_0x2acf64,'tapeItem':_0x56d41e[_0x36b361],'userId':_0x325580,'type':_0x5ed591}),_0x112461[_0x5ed591]&&_0xc635e5&&('elementStart'!==_0x56d41e[_0x36b361]['type']||_0x5bef85&&_0x5bef85['userId']===_0x325580||_0x218e2b[_0x5ed591]['unshift']({'userId':_0x325580,'object':_0x56d41e[_0x36b361]['item'],'change':_0x112461[_0x5ed591]}),'elementEnd'===_0x56d41e[_0x36b361]['type']&&_0x5bef85&&_0x5bef85['object']===_0x56d41e[_0x36b361]['item']&&(_0x218e2b[_0x5ed591]['shift'](),_0x112461[_0x5ed591]=_0x5bef85['change'])),_0x112461[_0x5ed591]&&_0x50eb7a&&(_0x112461[_0x5ed591]['end']=_0x2d3e9c,_0x4d4c87(_0x112461[_0x5ed591]),_0x112461[_0x5ed591]=null);}function _0x4d4c87({start:_0x5d9f7a,end:_0x5970cd,tapeItem:_0x4be3d3,userId:_0xd398ea,type:_0x35cef0}){const _0x5583ee=_0x4be3d3['item'],_0x579a41=_0x5d94a2['schema']['isBlock'](_0x5583ee)&&!_0x5d94a2['schema']['isLimit'](_0x5583ee),_0x2d81e2=_0x5d9f7a['nodeAfter']==_0x5970cd['parent']&&_0x5970cd['isAtStart'];if(_0x579a41&&_0x2d81e2)return;const _0x41ce57=_0x5d94a2['createRange'](_0x5d9f7a,_0x5970cd),_0x5d4f21=_0x5e65d4['get'](_0xd398ea),_0xa5c7f6=new r({'author':_0x5d4f21,'type':'isAdded'==_0x35cef0||'isAddSuggestion'==_0x35cef0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x35cef0||'isRemoveSuggestion'==_0x35cef0},'createdAt':new Date(),'rootName':_0x281d0f});_0x5ac840['push'](_0xa5c7f6),_0x2f667e['markers']['set']('revision:'+_0xa5c7f6['id'],_0x41ce57);}function _0x589960(_0x3f8bb4,_0x2298cf){const _0x2c4944=_0x3f8bb4['getAttributes'](),_0x11fafc=_0x2298cf['getAttributes']();for(const _0x52fa0e of _0x2c4944){if(_0x52fa0e[0x1]!==_0x2298cf['getAttribute'](_0x52fa0e[0x0]))return!0x1;_0x11fafc['next']();}return _0x11fafc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3aaf00=>{const _0x2debb5=_0x3aaf00['markerName']['split'](':')[0x1],_0x42f6d2=this['_getChangeFromId'](_0x2debb5);if(!_0x42f6d2)return null;const _0x213f0a='add'==_0x42f6d2['type']?'insertion':'deletion',_0x1003f4=['ck-suggestion-marker','ck-suggestion-marker-'+_0x213f0a];return _0x42f6d2['data']['isSuggestion']&&_0x1003f4['push']('ck-suggestion-marker-'+_0x213f0a+'-new'),this['activeChange']==_0x42f6d2&&_0x1003f4['push']('ck-suggestion-marker--active'),{'classes':_0x1003f4,'attributes':{'data-change-id':_0x2debb5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x215dca=>{_0x215dca['on']('element:pre',(_0x15f3b3,_0x45bbcb,_0x5619db)=>{const _0x409cf7=_0x45bbcb['viewItem']['getChild'](0x0);if(!_0x409cf7||!_0x409cf7['is']('element','code'))return;if(!_0x5619db['consumable']['consume'](_0x409cf7,{'attributes':['vid_start','vid_end']}))return;const _0xc6cd49=_0x45bbcb['modelRange']['start']['nodeAfter'];_0x5619db['writer']['setAttribute']('vid_start',_0x409cf7['getAttribute']('vid_start'),_0xc6cd49),_0x5619db['writer']['setAttribute']('vid_end',_0x409cf7['getAttribute']('vid_end'),_0xc6cd49);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1967ac=>{_0x1967ac['on']('element',(_0x3ac575,_0x3d7ecd,_0xccc71d)=>{if(!_0xccc71d['consumable']['consume'](_0x3d7ecd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3d7ecd['modelRange']['isCollapsed'])return;const _0x17f109=_0x3d7ecd['modelRange']['start']['nodeAfter'];_0x17f109['hasAttribute']('vid_start')||_0x17f109['hasAttribute']('vid')||(_0xccc71d['writer']['setAttribute']('vid_start',_0x3d7ecd['viewItem']['getAttribute']('vid_start'),_0x17f109),_0xccc71d['writer']['setAttribute']('vid_end',_0x3d7ecd['viewItem']['getAttribute']('vid_end'),_0x17f109));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x50121c=>_0x50121c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x46cf9b,[,_0x42eee0])=>{['vid_start','vid_end','vid']['includes'](_0x42eee0)&&(_0x46cf9b['return']=!0x0,_0x46cf9b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x57bed3=>{_0x57bed3['on']('attribute:vid',(_0x508146,_0x46a356,_0x58eb8d)=>{if('\x20'!=_0x46a356['item']['data']||_0x46a356['item']['parent']['maxOffset']>0x1)return;if(!_0x58eb8d['consumable']['consume'](_0x46a356['item'],_0x508146['name']))return;const _0x2ee19c=_0x58eb8d['writer'],_0x22efc8=_0x58eb8d['mapper']['toViewRange'](_0x46a356['range']);_0x2ee19c['wrap'](_0x22efc8,_0x2ee19c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4b802c){const _0x5d91e4=_0x4b802c['plugins']['get']('RevisionViewer');return(_0x4da2f4,_0x2ab4eb,_0x124dd9)=>{const _0x50ed2e=_0x2ab4eb['markerName']['split'](':')[0x1],_0x289757=_0x5d91e4['_getChangeFromId'](_0x50ed2e);if(!_0x289757)return null;const _0x4647cb='add'==_0x289757['type']?'split':'merge';if(!_0x124dd9['consumable']['test'](_0x2ab4eb['markerRange'],_0x4da2f4['name']))return;const _0x5dbfee=_0x2ab4eb['markerRange']['getWalker'](),_0x92d6c1=_0x2ab4eb['markerRange']['start'],_0x4502a7=_0x4b802c['model']['schema'];let _0x532be5=null,_0x94b500=null,_0x3404e9=!0x1,_0x42d3ad=!0x1;for(const _0x4cd74b of _0x5dbfee){const _0x118da8=_0x4cd74b['item'];_0x3404e9=_0x3404e9||_0x4502a7['isContent'](_0x118da8);const _0x157127=_0x124dd9['mapper']['toViewElement'](_0x118da8);if(_0x157127&&_0x157127['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4cd74b['type']&&(_0x4502a7['isBlock'](_0x118da8)&&!_0x4502a7['isLimit'](_0x118da8)&&(_0x118da8['nextSibling']||_0x92d6c1['isAtEnd']?_0x532be5&&_0x532be5['parent']==_0x118da8||(_0x532be5=_0x118da8,_0x37f532(_0x4cd74b['previousPosition']),_0x42d3ad=!0x0):_0x94b500=_0x94b500||_0x4cd74b['previousPosition']));}function _0x37f532(_0x131892){const _0xa53e86=_0x124dd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4647cb}),_0x3961dc=_0x124dd9['mapper']['toViewPosition'](_0x131892);_0x289757['data']['isSuggestion']&&_0x124dd9['writer']['addClass']('ck-suggestion-marker-'+_0x4647cb+'-new',_0xa53e86),_0x5d91e4['activeChange']==_0x289757&&_0x124dd9['writer']['addClass']('ck-suggestion-marker--active',_0xa53e86),_0x124dd9['writer']['insert'](_0x3961dc,_0xa53e86),_0x124dd9['mapper']['bindElementToMarker'](_0xa53e86,_0x2ab4eb['markerName']);}_0x3404e9||_0x42d3ad||!_0x94b500||_0x37f532(_0x94b500);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1d58eb,_0x415167,_0x46a088)=>{const _0x5cf8d3=_0x46a088['mapper']['markerNameToElements'](_0x415167['markerName']);if(_0x5cf8d3){for(const _0x361545 of _0x5cf8d3)(_0x361545['hasClass']('ck-suggestion-marker-split')||_0x361545['hasClass']('ck-suggestion-marker-merge'))&&(_0x46a088['mapper']['unbindElementFromMarkerName'](_0x361545,_0x415167['markerName']),_0x46a088['writer']['remove'](_0x361545));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4534ad,_0x36ff8f,_0x3c4426)=>{const _0x1e7756=_0x36ff8f['markerName']['split'](':')[0x1],_0x45f203=this['_getChangeFromId'](_0x1e7756);if(!_0x45f203)return null;const _0xcb0f43='add'==_0x45f203['type']?'split':'merge';if(_0x3c4426['consumable']['test'](_0x36ff8f['markerRange'],_0x4534ad['name']))for(const _0x4fe436 of _0x36ff8f['markerRange']['getItems']()){if(!_0x4fe436['is']('element','softBreak'))continue;const _0x487629=_0x3c4426['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcb0f43}),_0x3e94b5=_0x3c4426['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4fe436));_0x45f203['data']['isSuggestion']&&_0x3c4426['writer']['addClass']('ck-suggestion-marker-'+_0xcb0f43+'-new',_0x487629),this['activeChange']==_0x45f203&&_0x3c4426['writer']['addClass']('ck-suggestion-marker--active',_0x487629),_0x3c4426['writer']['insert'](_0x3e94b5,_0x487629),_0x3c4426['mapper']['bindElementToMarker'](_0x487629,_0x36ff8f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x426e65=>{for(const _0x349011 of this['editor']['model']['document']['getRootNames']()){const _0x14583f=this['editor']['model']['document']['getRoot'](_0x349011),_0x3681dd=this['editor']['editing']['view']['document']['getRoot'](_0x349011);if(_0x3681dd){const _0x3ee325=_0x14583f['getAttribute']('revisionHistoryAttachChange');if(_0x426e65['removeAttribute']('data-change-id',_0x3681dd),_0x426e65['removeClass']('ck-revision-history-root-add',_0x3681dd),_0x426e65['removeClass']('ck-revision-history-root-remove',_0x3681dd),_0x426e65['removeClass']('ck-revision-history-root--active',_0x3681dd),_0x3ee325){const _0x2c1285=this['_getChangeFromId'](_0x3ee325);if(!_0x2c1285)return null;_0x426e65['setAttribute']('data-change-id',_0x3ee325,_0x3681dd),_0x426e65['addClass']('ck-revision-history-root-'+_0x2c1285['type'],_0x3681dd),this['activeChange']==_0x2c1285&&_0x426e65['addClass']('ck-revision-history-root--active',_0x3681dd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5cfcf7=>'revision-comment:'+_0x5cfcf7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4203b6=>'revision-suggestion:'+_0x4203b6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4f150b=>({'name':'suggestion:'+_0x4f150b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1e2ee2=>{const _0x1fc6bd=_0x1e2ee2['markerName']['split'](':')[0x1];return'insertion'!=_0x1fc6bd&&'deletion'!=_0x1fc6bd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1fc6bd]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5911f8,_0x194621,_0x3beb32)=>{const _0x58543e=_0x3beb32['mapper']['markerNameToElements'](_0x194621['markerName']);if(_0x58543e){for(const _0x1ef24d of _0x58543e)_0x1ef24d['is']('uiElement')&&(_0x3beb32['mapper']['unbindElementFromMarkerName'](_0x1ef24d,_0x194621['markerName']),_0x3beb32['writer']['remove'](_0x1ef24d));}},{'priority':'high'});}['_getChangeFromId'](_0x1ad60a){return this['_changeIdToChange']['get'](_0x1ad60a);}['_getViewForChange'](_0x5c02ae){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5c02ae),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x51e7db,_0x22de68,_0x536ce3,_0x226f0d)=>{_0x226f0d&&this['_balloon']['remove'](_0x226f0d),_0x536ce3&&(this['_balloon']['add']({'view':_0x536ce3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1ddbb7=this['editor']['editing'],_0x33238d=this['_getChangeFromId'](_0x536ce3['changeId']);let _0x28a11d;if(_0x33238d['data']['isOnRoot']){const _0x35d35a=_0x1ddbb7['view']['getDomRoot'](_0x33238d['rootName']);_0x28a11d=Array['from'](_0x35d35a['getClientRects']());}else{const _0x2f40b0=this['editor']['model']['markers']['get']('revision:'+_0x536ce3['changeId']);_0x28a11d=Array['from'](_0x1ddbb7['mapper']['markerNameToElements'](_0x2f40b0['name']))['map'](_0x3e9ddd=>_0x1ddbb7['view']['domConverter']['mapViewToDom'](_0x3e9ddd))['map'](_0x5fd720=>Array['from'](_0x5fd720['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x28a11d[0x0];return _0x28a11d['find'](_0x3af681=>_0x3af681['top']-0x3<=this['_activeViewTarget']['y']&&_0x3af681['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3af681['left']-0x3<=this['_activeViewTarget']['x']&&_0x3af681['right']+0x3>=this['_activeViewTarget']['x'])||_0x28a11d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x30dd8d,_0x3f1362,_0x3bcf80,_0x388c14)=>{this['activeView']=_0x3bcf80?this['_getViewForChange'](_0x3bcf80):null,this['editor']['model']['change'](()=>{const _0x254e8e=this['editor']['editing'];_0x388c14&&(_0x388c14['data']['isOnRoot']?_0x254e8e['view']['change'](_0x28ae1a=>{_0x28ae1a['removeClass']('ck-revision-history-root--active',_0x254e8e['view']['document']['getRoot'](_0x388c14['rootName']));}):_0x254e8e['reconvertMarker']('revision:'+_0x388c14['id'])),_0x3bcf80&&(_0x3bcf80['data']['isOnRoot']?_0x254e8e['view']['change'](_0x53aeee=>{_0x53aeee['addClass']('ck-revision-history-root--active',_0x254e8e['view']['document']['getRoot'](_0x3bcf80['rootName']));}):_0x254e8e['reconvertMarker']('revision:'+_0x3bcf80['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x27433c,_0x2d2a34)=>{if(this['activeChange'])return;const _0x26b3ff=this['_findChangeIdFromDomTarget'](_0x2d2a34['target']),_0x266acb=this['_changeIdToChange']['get'](_0x26b3ff);_0x266acb?(this['_activeViewTarget']={'x':_0x2d2a34['domEvent']['x'],'y':_0x2d2a34['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x266acb)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4091a,_0x29e190)=>{const _0x42eb45=this['_findChangeIdFromDomTarget'](_0x29e190['target']),_0x34eb05=this['_changeIdToChange']['get'](_0x42eb45);_0x34eb05?(this['_activeViewTarget']={'x':_0x29e190['domEvent']['x'],'y':_0x29e190['domEvent']['y']},_0x34eb05===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x34eb05):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5ec5d2){do{const _0x36107a=_0x5ec5d2['getAttribute']('data-change-id');if(_0x36107a)return _0x36107a;_0x5ec5d2=_0x5ec5d2['parent'];}while(_0x5ec5d2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x18b16e=>{for(const _0x27d59b of this['editor']['model']['markers'])_0x18b16e['removeMarker'](_0x27d59b);});}}function tt(_0x17e462,_0x3dad98){return(_0x46c435,_0x47a557,_0x28d5c7)=>{if(!_0x28d5c7['consumable']['test'](_0x47a557['markerRange'],_0x46c435['name']))return;const _0x391dcb=_0x47a557['markerRange']['getWalker'](),_0x571203=_0x47a557['markerRange']['start'],_0x488e24=_0x17e462['model']['schema'];let _0x5b4024=null,_0x34bb87=null,_0x2404e7=!0x1,_0x565e43=!0x1;for(const _0x58ac81 of _0x391dcb){const _0x43037=_0x58ac81['item'];_0x2404e7=_0x2404e7||_0x488e24['isContent'](_0x43037);const _0x322997=_0x28d5c7['mapper']['toViewElement'](_0x43037);if(_0x322997&&_0x322997['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58ac81['type']&&(_0x488e24['isBlock'](_0x43037)&&!_0x488e24['isLimit'](_0x43037)&&(_0x43037['nextSibling']||_0x571203['isAtEnd']?_0x5b4024&&_0x5b4024['parent']==_0x43037||(_0x5b4024=_0x43037,_0x24a994(_0x58ac81['previousPosition']),_0x565e43=!0x0):_0x34bb87=_0x34bb87||_0x58ac81['previousPosition']));}function _0x24a994(_0x59ff98){const _0x39bb16=_0x28d5c7['mapper']['toViewPosition'](_0x59ff98),_0x4dfb4d=_0x28d5c7['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3dad98});_0x28d5c7['writer']['insert'](_0x39bb16,_0x4dfb4d),_0x28d5c7['mapper']['bindElementToMarker'](_0x4dfb4d,_0x47a557['markerName']);}_0x2404e7||_0x565e43||!_0x34bb87||_0x24a994(_0x34bb87);};}class _t extends _0x1ba204{constructor(_0x343399){super(_0x343399);const _0x5d9b26=_0x343399['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5d9b26,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5d9b26,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xa39fc8=this['editor'],_0x39fbb5=_0xa39fc8['plugins']['get'](d),_0x3d9aaa=_0x39fbb5['isReady']?_0x39fbb5['diff']['newRevisionId']:null;_0xa39fc8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3d9aaa);}['refresh'](){const {isReady:_0x1a92ce,isEnabled:_0x5aaed5}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x1a92ce&&_0x5aaed5;}}class yt extends _0x1ba204{['_step'];constructor(_0x303b9e,{direction:_0x284095}){super(_0x303b9e);const _0x162d55=_0x303b9e['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x284095?0x1:-0x1,this['listenTo'](_0x162d55,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x162d55,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x162d55,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x12144c=this['editor'],_0x14f024=_0x12144c['plugins']['get'](d),{isNavigationMode:_0x169778,currentChangeNumber:_0x5d0761}=_0x14f024;let _0x2197c0;if(_0x14f024['activeChange']=_0x169778?_0x14f024['diff']['changes']['get'](_0x5d0761+this['_step']):_0x14f024['diff']['changes']['first'],_0x14f024['activeChange']['data']['isOnRoot'])_0x2197c0=_0x12144c['editing']['view']['getDomRoot'](_0x14f024['activeChange']['rootName']);else{const _0x47578a=_0x12144c['model']['markers']['get']('revision:'+_0x14f024['activeChange']['id']);_0x2197c0=_0x546cf8(_0x12144c['editing'],_0x47578a);}_0x22a3d1({'target':_0x2197c0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x37c070,currentChangeNumber:_0x5d0da3,numberOfChanges:_0xf69f71,isReady:_0x2184cf,isEnabled:_0xd63265}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xd63265&&_0x2184cf&&_0xf69f71)&&(!_0x37c070||(0x1===this['_step']?_0x5d0da3<_0xf69f71-0x1:_0x5d0da3>0x0));}}class li extends ts{constructor(_0x14ec93){super(_0x14ec93);const _0x51850e=this['bindTemplate'],_0x10fdbb=new te(_0x14ec93),_0x1f2343=new te(_0x14ec93);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',(_0x2947e9,_0x3ce769)=>_0x2947e9&&_0x3ce769>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x34e02d,_0x4ecc56,_0x974343,_0x4ad899)=>{if(!_0x34e02d)return R(_0x14ec93,'Loading...');if(!_0x974343)return R(_0x14ec93,'No\x20changes');const _0x52d3c2=R(_0x14ec93,'NUMBER_OF_CHANGES',_0x974343);return _0x4ad899?R(_0x14ec93,'X_OF_Y_CHANGES',[_0x4ecc56+0x1,_0x974343]):_0x52d3c2;}),_0x10fdbb['set']({'label':R(_0x14ec93,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x1f2343['set']({'label':R(_0x14ec93,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x10fdbb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1f2343['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x10fdbb['on']('execute',()=>this['fire']('execute','backward')),_0x1f2343['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',_0x51850e['if']('_isStatusLabelVisible','ck-hidden',_0x13f37d=>!_0x13f37d)]},'children':[{'text':_0x51850e['to']('isNavigationMode',_0x7f9d9=>_0x7f9d9?R(_0x14ec93,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x14ec93,'Total')+':\x20')}]},{'text':_0x51850e['to']('_statusText')}]},new _0x5a3178(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x10fdbb,_0x1f2343]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x51bff9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5e3fd6=this['editor']['editing']['view'];_0x5e3fd6['change'](_0x1edb2d=>{for(const _0x2cee23 of _0x5e3fd6['document']['roots'])_0x1edb2d['addClass'](le,_0x2cee23);});}['hide'](){const _0x475359=this['editor']['editing']['view'];_0x475359['change'](_0x42e66b=>{for(const _0x14bec4 of _0x475359['document']['roots'])_0x42e66b['removeClass'](le,_0x14bec4);});}}class m extends _0x51bff9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x308dad=this['editor'],_0x580393=_0x308dad['plugins']['get'](d),_0xb219ef=_0x308dad['plugins']['get'](ge);_0x308dad['ui']['componentFactory']['add']('exitToEditing',_0x29a769=>{const _0x24f5e1=new te(_0x29a769);return _0x24f5e1['set']({'label':R(_0x29a769,'Back\x20to\x20editing'),'icon':_0x582ab3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x24f5e1,'execute',()=>{_0x308dad['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x24f5e1;}),_0x308dad['ui']['componentFactory']['add']('restoreRevision',_0x4de0ba=>{const _0x40e32f=new te(_0x4de0ba);return _0x40e32f['set']({'label':R(_0x4de0ba,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x40e32f['bind']('isEnabled')['to'](_0x308dad['commands']['get']('restoreRevision')),this['listenTo'](_0x40e32f,'execute',()=>_0x308dad['execute']('restoreRevision')),_0x40e32f;}),_0x308dad['ui']['componentFactory']['add']('changesNavigation',_0x363ba9=>{const _0x14633b=new li(_0x363ba9),_0x939d08=_0x308dad['commands']['get']('showPreviousChange'),_0x21a7de=_0x308dad['commands']['get']('showNextChange');return _0x14633b['bind']('isBackwardNavigationEnabled')['to'](_0x939d08,'isEnabled'),_0x14633b['bind']('isForwardNavigationEnabled')['to'](_0x21a7de,'isEnabled'),_0x14633b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x580393),this['listenTo'](_0x14633b,'execute',(_0x270e00,_0x5a60b6)=>{_0x308dad['execute']('forward'===_0x5a60b6?'showNextChange':'showPreviousChange');}),_0x14633b;}),_0xb219ef['show'](),_0x580393['on']('change:isReady',(_0x3c1cbf,_0x387f10,_0x341fe0)=>{_0x341fe0?_0xb219ef['hide']():_0xb219ef['show']();});}}class pt extends _0x38e76f{['_resizeObserver']=null;constructor(_0x2742df,_0x61b99c){super(_0x2742df,_0x61b99c);const _0x119b27=this['bindTemplate'];this['set']({'label':R(_0x2742df,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2742df,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x119b27['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 _0x80547d=this['fieldView']['element'];this['_tooltipString']=_0x80547d['scrollWidth']>_0x80547d['clientWidth']&&_0x80547d['value']||'';}}class ri extends ts{constructor(_0x50c019,_0x3ada24,_0xf7189c){super(_0x50c019);const _0x29d133=new _0xf1a94e();_0x29d133['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5afc33=['ck','ck-revision-history-sidebar__revision-author'];_0xf7189c&&_0x5afc33['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57b7e6=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x50c019,_0xf7189c?'Revision\x20creator':'Revision\x20author')},'children':[_0x29d133,_0x3ada24['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5afc33},'children':_0x57b7e6});}}function oi(_0x5ceb42,_0x59f0aa){const _0x3bffa2=_0x5ceb42['bindTemplate'],_0x37f9e1=_0x5ceb42['locale'],_0x50b746=_0x193195(_0x37f9e1);_0x50b746['panelPosition']='sw';const _0x3d5f56=function(_0x9f1465,_0x34864e){const _0x38b7d8=function(_0x101898,_0x252e26){const _0x45143d=_0x101898['locale'],_0x26722a={'Compare\x20against\x20selected':R(_0x45143d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x45143d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x45143d,'Restore\x20this\x20revision')};return _0x252e26['map'](_0x224044=>{const _0x1e3ef4=_0x26722a[_0x224044['name']];return _0x1e3ef4&&_0x1e3ef4!==_0x224044['name']&&(_0x224044['name']=_0x1e3ef4),_0x224044;});}(_0x9f1465,_0x34864e),_0x316f8c=new _0x589480();for(const _0x1bc090 of _0x38b7d8){const _0x24fb1c={'type':'button','model':new _0x2d541d({'label':_0x1bc090['name'],'class':_0x1bc090['class'],'withText':!0x0,'role':'menuitem','_action':_0x1bc090['action']})};_0x24fb1c['model']['bind']('isEnabled')['to'](_0x9f1465,'isActionsDropdownOpen',_0x2c2589=>'function'!=typeof _0x1bc090['isEnabled']||(!_0x2c2589||_0x1bc090['isEnabled'](_0x9f1465))),_0x316f8c['add'](_0x24fb1c);}return _0x316f8c;}(_0x5ceb42,_0x59f0aa);return _0x5ceb42['bind']('isActionsDropdownOpen')['to'](_0x50b746,'isOpen'),_0x50b746['buttonView']['set']({'label':R(_0x37f9e1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x582ab3['threeVerticalDots']}),_0x50b746['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3bffa2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3bffa2['to'](_0x2820e0=>_0x2820e0['stopPropagation']())}}),_0x50b746['on']('execute',_0x3f5af6=>{_0x5ceb42['isReady']&&'function'==typeof _0x3f5af6['source']['_action']&&_0x3f5af6['source']['_action'](_0x5ceb42);}),to(_0x50b746,_0x3d5f56,{'role':'menu'}),_0x50b746['listenTo'](_0x5ceb42,'change:isActionsDropdownOpen',(_0x398ed6,_0x51866d,_0x10746f)=>{if(_0x10746f)for(const _0x40c490 of _0x50b746['listView']['items']){const _0x4eedbd=_0x40c490['children']['first'],_0x41256e=_0x59f0aa['find'](_0x284c4c=>_0x284c4c['action']===_0x4eedbd['_action'])['isVisible'];_0x40c490['isVisible']=void 0x0===_0x41256e||_0x41256e(_0x5ceb42);}}),_0x50b746;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x755980,_0x5c113f,_0x366b07,_0x39edf8){super(_0x755980);const _0x1c62ad=this['bindTemplate'],_0xd5a469=function(_0x1edbb7,_0x292de7){const _0x2492e7=Array['from'](_0x292de7['authors'])['filter'](_0x56cd2d=>_0x56cd2d!=_0x292de7['creator']);return _0x292de7['creator']&&_0x2492e7['unshift'](_0x292de7['creator']),_0x2492e7['map'](_0x8c787b=>new ri(_0x1edbb7,_0x8c787b,_0x8c787b==_0x292de7['creator']));}(_0x755980,_0x5c113f);this['id']=_0x5c113f['id'],this['_revision']=_0x5c113f,this['_requireRevisionName']=_0x39edf8,this['bind']('name','createdAt')['to'](_0x5c113f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xe21cf5=>{return _0xcc1dd6=_0x755980['uiLanguage'],(_0x5cd452=_0xe21cf5)['toLocaleDateString'](_0xcc1dd6,{'month':'long','day':'numeric'})+',\x20'+_0x5cd452['toLocaleTimeString'](_0xcc1dd6,{'hour':'numeric','minute':'numeric'});var _0xcc1dd6,_0x5cd452;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x755980,_0x229c6c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4a30dc=>_0x4a30dc||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5a2d84,_0x35898c)=>_0x5a2d84&&_0x35898c),this['revisionActionsView']=_0x366b07&&_0x366b07['length']?oi(this,_0x366b07):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1c62ad['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1c62ad['if']('isEnabled','ck-disabled',_0x477951=>!_0x477951),_0x1c62ad['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1c62ad['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1c62ad['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':_0x1c62ad['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':_0xd5a469}]},this['revisionActionsView']],'on':{'click':_0x1c62ad['to'](_0x4b958d=>{_0x4b958d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xd4f244=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xd4f244,'change',()=>{this['_requireRevisionName']&&!_0xd4f244['value']||this['fire']('setName',{'id':this['id'],'name':_0xd4f244['value']}),_0xd4f244['value']||(_0xd4f244['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x2692f8,_0x1f46e1){const _0x274b02=_0x396d46['fromJSDate'](_0x2692f8)['setLocale'](_0x1f46e1),_0x2a232c=_0x396d46['local'](),_0x1a4d5f=_0x2a232c['minus']({'days':0x1})['startOf']('day');let _0x325a8b,_0x41c8a9;return _0x274b02['hasSame'](_0x2a232c,'day')?(_0x325a8b=_0x274b02['startOf']('day')['toJSDate'](),_0x41c8a9=_0x274b02['toRelativeCalendar']()):_0x274b02['hasSame'](_0x1a4d5f,'day')?(_0x325a8b=_0x1a4d5f['toJSDate'](),_0x41c8a9=_0x274b02['toRelativeCalendar']()):_0x274b02['hasSame'](_0x2a232c,'week')?(_0x325a8b=_0x274b02['startOf']('week')['toJSDate'](),_0x41c8a9=_0x274b02['weekdayLong']||''):_0x274b02['hasSame'](_0x2a232c,'year')?(_0x325a8b=_0x274b02['startOf']('month')['toJSDate'](),_0x41c8a9=_0x274b02['monthLong']||''):(_0x325a8b=_0x274b02['startOf']('year')['toJSDate'](),_0x41c8a9=String(_0x274b02['year'])),{'startDate':_0x325a8b,'localizedPeriodName':_0x41c8a9};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x59de89,_0x9995a8,_0x3f425a,_0x9a7e2f){super(_0x59de89);const _0x2d0f70=ci(_0x9995a8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x9995a8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3f425a,this['_requireRevisionName']=_0x9a7e2f,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':_0x2d0f70}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5141c4){const _0x31552c=new hi(this['locale'],_0x5141c4,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x31552c);}['removeRevision'](_0xd5f747){const _0x7a0f23=this['revisionViews']['find'](_0x3b2ebc=>_0x3b2ebc['id']===_0xd5f747['id']);this['revisionViews']['remove'](_0x7a0f23);}}class as extends ts{constructor(_0xf85cc7){super(_0xf85cc7);const _0x12d13c=new _0xf1a94e();_0x12d13c['content']=_0x582ab3['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x12d13c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xf85cc7,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x541ed4,_0x1c3212,_0x50110c,_0x18afbb){super(_0x541ed4);const _0x45487e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1c3212,this['_revisionActions']=_0x50110c,this['_requireRevisionName']=_0x18afbb,this['on']('select',(_0x4f1e1d,_0x43790f)=>{this['fire']('revisionSelected',_0x43790f);}),this['on']('setName',(_0x367ee1,_0x506990)=>{this['fire']('revisionSetName',_0x506990);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x541ed4),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x45487e['if']('isEnabled','ck-disabled',_0x40a86f=>!_0x40a86f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2f2c1d of this['_revisions'])this['_addRevision'](_0x2f2c1d);this['_revisions']['on']('add',(_0x119dd9,_0x33b0a7)=>{this['_addRevision'](_0x33b0a7);}),this['_revisions']['on']('remove',(_0x4894d7,_0x19a0ba)=>{this['_removeRevision'](_0x19a0ba);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x40634a=>_0x40634a['revisionViews']['map'](_0x5a760a=>_0x5a760a))['flat']();}['selectRevision'](_0x1e69b6){for(const _0x4c9fe6 of this['revisionViews'])_0x1e69b6&&_0x1e69b6['id']===_0x4c9fe6['id']?_0x4c9fe6['select']():_0x4c9fe6['deselect']();}['highlightRevisions'](_0x261f14){for(const _0x1c87eb of this['revisionViews'])_0x261f14['some'](({id:_0x32d034})=>_0x32d034===_0x1c87eb['id'])?_0x1c87eb['highlight']():_0x1c87eb['unhighlight']();}['_addRevision'](_0x3b442c){const _0x1c565f=ci(_0x3b442c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4047fd=this['timePeriodViews']['get'](0x0);_0x4047fd&&_0x4047fd['startDate']['getTime']()===_0x1c565f['getTime']()||(_0x4047fd=new ai(this['locale'],_0x1c565f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4047fd)),_0x4047fd['addRevision'](_0x3b442c);}['_removeRevision'](_0x546ecb){const _0x536079=ci(_0x546ecb['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x536079)['removeRevision'](_0x546ecb);}['_getTimePeriodViewByStartDate'](_0x109cd8){return this['timePeriodViews']['find'](_0xa3ce5e=>_0xa3ce5e['startDate']['getTime']()===_0x109cd8['getTime']());}}class g extends _0x51bff9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x330b2b,uid as _0x1349e3,Collection as _0x556087,logWarning as _0x3767f8,FocusTracker as _0x311207,KeystrokeHandler as _0x5842f5,scrollViewportToShowTarget as _0xc1fbb6,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x41b268}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x70bb23,set as _0x260ca1,unset as _0x44a9b5,isEqual as _0x330812}from'lodash-es';import{Plugin as _0x4b9689,PendingActions as _0x333a23,icons as _0x2cf5cf,Command as _0x3538db,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x326e20,getMarkerDomElement as _0x5155af,ConfirmMixin as ti,sanitizeEditorConfig as _0x2a6f0f}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3f403f,ViewText as _0x8dcdf9,ViewElement as _0x503e95,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0xf14d70,ViewAttributeElement as _0x5b082c,ViewEmptyElement as _0x5c489b,ViewRawElement as _0xa34ab6,ViewUIElement as _0x7fbcc,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5b0039,submitHandler as _0x1c5efc,LabeledFieldView as _0x1cb1cf,createLabeledInputText as _0x25179f,createDropdown as _0x517a39,ListView as _0x5d991f,ListItemView as _0xd8eda,ButtonView as te,MenuBarMenuView as _0x322982,MenuBarMenuListView as _0x3203b8,MenuBarMenuListItemView as _0x1e5e5c,MenuBarMenuListItemButtonView as _0x3c48b1,ContextualBalloon as _0xac49e1,ToolbarSeparatorView as _0x526fbd,IconView as _0x246643,addListToDropdown as to,ViewModel as _0x41f987,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3f904c}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x330b2b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xb06c29){super(),this['id']=_0xb06c29['id']||_0x1349e3(),this['creator']=_0xb06c29['creator']||null,this['authors']=_0xb06c29['authors']||[],this['diffData']=_0xb06c29['diffData']||null,this['toVersion']=_0xb06c29['toVersion']||0x0,this['fromVersion']=_0xb06c29['fromVersion']||0x0,this['set']('name',_0xb06c29['name']||''),this['set']('createdAt',_0xb06c29['createdAt']||new Date()),this['set']('attributes',_0xb06c29['attributes']||{});}['setName'](_0xfbe7c1){this['_update']({'name':_0xfbe7c1});}['setAttribute'](_0x1efb70,_0x42a14b){const _0x3c78e1=_0x70bb23(this['attributes']);_0x260ca1(_0x3c78e1,_0x1efb70,_0x42a14b),this['_update']({'attributes':_0x3c78e1});}['removeAttribute'](_0x3dbe48){const _0x1f6a38=_0x70bb23(this['attributes']);_0x44a9b5(_0x1f6a38,_0x3dbe48),this['_update']({'attributes':_0x1f6a38});}['_update'](_0x3c1d4e,_0x4ebfe9=!0x1){let _0xf5463b=!0x1;const _0x125b43={'id':this['id']},_0x55e012=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4d3a20 of _0x55e012){const _0x2e48cd=_0x3c1d4e[_0x4d3a20];void 0x0!==_0x2e48cd&&_0x2e48cd!==this[_0x4d3a20]&&(this[_0x4d3a20]=_0x2e48cd,_0x125b43[_0x4d3a20]=_0x2e48cd,_0xf5463b=!0x0);}_0xf5463b&&(_0x125b43['authors']&&(_0x125b43['authorsIds']=_0x125b43['authors']['map'](_0x18f096=>_0x18f096['id']),delete _0x125b43['authors']),this['fire']('_update',_0x125b43,_0x4ebfe9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x14a15a=>_0x14a15a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4b9689{['_revisions'];static get['requires'](){return[_0x326e20];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x351508){super(_0x351508),this['_revisions']=new _0x556087();}['afterInit'](){!async function(_0x37ee9e){const _0x100339=_0x3ed300([0x33,0x71,0x4c,0x4b,0x67,0x72,0x35,0x38,0x50,0x52,0x7a,0x76,0x51,0x42,0x47,0x6e,0x77,0x75,0x4d,0x36,0x6c,0x68,0x56,0x73,0x45,0x61,0x74,0x6a,0x41,0x57,0x49,0x66,0x4e,0x5a,0x30,0x44,0x39,0x34,0x37,0x32,0x64,0x43,0x54,0x55,0x62,0x4f,0x31,0x6f,0x4a,0x79,0x53,0x46,0x59,0x48,0x63,0x78,0x65,0x6d,0x69,0x6b,0x58,0x70]),_0xd01fee=0xeb829,_0x42cd34=0x735705f9,_0x23a990=0x73505da1^_0x42cd34,_0x45d76b=window[_0x3ed300([0x44,0x61,0x74,0x65])][_0x3ed300([0x6e,0x6f,0x77])](),_0x4a2489=_0x37ee9e[_0x3ed300([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12716e=new window[(_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x549521=>{_0x4a2489[_0x3ed300([0x6f,0x6e,0x63,0x65])](_0x3ed300([0x72,0x65,0x61,0x64,0x79]),_0x549521);}),_0x19837a={[_0x3ed300([0x6b,0x74,0x79])]:_0x3ed300([0x45,0x43]),[_0x3ed300([0x75,0x73,0x65])]:_0x3ed300([0x73,0x69,0x67]),[_0x3ed300([0x63,0x72,0x76])]:_0x3ed300([0x50,0x2d,0x32,0x35,0x36]),[_0x3ed300([0x78])]:_0x3ed300([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]),[_0x3ed300([0x79])]:_0x3ed300([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]),[_0x3ed300([0x61,0x6c,0x67])]:_0x3ed300([0x45,0x53,0x32,0x35,0x36])},_0x356ffc=_0x4a2489[_0x3ed300([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ed300([0x67,0x65,0x74])](_0x3ed300([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3770e4(){let _0x531179,_0x512d98=null,_0x273feb=null;try{if(_0x356ffc==_0x3ed300([0x47,0x50,0x4c]))return _0x3ed300([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x531179=_0xdf7814(),!_0x531179)return _0x3ed300([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x531179[_0x3ed300([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x273feb=_0x38df0e(_0x531179[_0x3ed300([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x531179[_0x3ed300([0x6a,0x74,0x69])])),await _0x5ad0ff()?_0x1b07dc()?_0x483d61()?_0x3ed300([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29c2ea()?(_0x531179[_0x3ed300([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ed300([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x512d98=_0x30df12(_0x3ed300([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x531179[_0x3ed300([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ed300([0x74,0x72,0x69,0x61,0x6c])&&(_0x512d98=_0x30df12(_0x3ed300([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x531179[_0x3ed300([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ed300([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x512d98=_0x30df12(_0x3ed300([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c389f()):_0x3ed300([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ed300([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ed300([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x383d36){return _0x3ed300([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x483d61(){const _0x5c4286=[_0x3ed300([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ed300([0x74,0x72,0x69,0x61,0x6c])][_0x3ed300([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x531179[_0x3ed300([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45d76b/0x3e8:0xe10*_0x23a990;return _0x531179[_0x3ed300([0x65,0x78,0x70])]<_0x5c4286;}function _0x1b07dc(){const _0x57d9b2=_0x531179[_0x3ed300([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x57d9b2)return!0x1;if(_0x57d9b2[_0x3ed300([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed300([0x2a])))return!0x0;if(_0x57d9b2[_0x3ed300([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed300([0x52,0x48])))return!0x0;if(_0x57d9b2[_0x3ed300([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed300([0x52,0x52,0x48]))){if(_0x140d01())return!0x0;if(_0x5b1980()||_0x31baf6())return!0x0;}return!0x1;}function _0x29c2ea(){const _0x310eb1=_0x531179[_0x3ed300([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x310eb1||0x0==_0x310eb1[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1318c8}=new URL(window[_0x3ed300([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x310eb1[_0x3ed300([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1318c8))return!0x0;const _0x5ce759=_0x1318c8[_0x3ed300([0x73,0x70,0x6c,0x69,0x74])](_0x3ed300([0x2e]));return _0x310eb1[_0x3ed300([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ca6f=>_0x6ca6f[_0x3ed300([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed300([0x2a])))[_0x3ed300([0x6d,0x61,0x70])](_0x16539b=>_0x16539b[_0x3ed300([0x73,0x70,0x6c,0x69,0x74])](_0x3ed300([0x2e])))[_0x3ed300([0x73,0x6f,0x6d,0x65])](_0x3a61a6=>_0x5ce759[_0x3ed300([0x65,0x76,0x65,0x72,0x79])]((_0x1f71db,_0x2f8978)=>_0x3a61a6[_0x2f8978]===_0x1f71db||_0x3a61a6[_0x2f8978]===_0x3ed300([0x2a])));}function _0x4c389f(){return _0x512d98&&_0x273feb?new window[(_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeff3bd,_0x59ee32)=>{_0x512d98[_0x3ed300([0x74,0x68,0x65,0x6e])](_0xeff3bd,_0x59ee32),_0x273feb[_0x3ed300([0x74,0x68,0x65,0x6e])](_0x141e75=>{_0x141e75!=_0x3ed300([0x56,0x61,0x6c,0x69,0x64])&&_0xeff3bd(_0x141e75);},_0x59ee32);}):_0x512d98||_0x273feb||_0x3ed300([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38df0e(_0x50b84e,_0x46757c){return new window[(_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0f76=>{if(_0x559240())return _0x1b0f76(_0x3ed300([0x56,0x61,0x6c,0x69,0x64]));_0x27ce1e(),_0x4a2489[_0x3ed300([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ed300([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34f588=!0x1;const _0x76a8b1=_0x1349e3();function _0x4db345(_0x5bcbfe){return!!_0x5bcbfe&&(typeof _0x5bcbfe===_0x3ed300([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bcbfe===_0x3ed300([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bcbfe[_0x3ed300([0x74,0x68,0x65,0x6e])]===_0x3ed300([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bcbfe[_0x3ed300([0x63,0x61,0x74,0x63,0x68])]===_0x3ed300([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ed4ad(_0x2f89cb){_0x5879b6(_0x2f89cb)[_0x3ed300([0x74,0x68,0x65,0x6e])](_0x2c20ed=>{if(!_0x2c20ed||_0x2c20ed[_0x3ed300([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ed300([0x6f,0x6b]))return _0x3ed300([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a5014(_0x2f950a(_0x76a8b1+_0x46757c))!=_0x2c20ed[_0x3ed300([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ed300([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ed300([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ed300([0x74,0x68,0x65,0x6e])](_0x5e9603=>(_0xe5d8a2(),_0x5e9603),()=>{const _0x135163=_0x107eff();return null==_0x135163?(_0xe5d8a2(),_0x3ed300([0x56,0x61,0x6c,0x69,0x64])):_0x3ed300(_0x45d76b-_0x135163>(0x575b81f9^_0x42cd34)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ed300([0x74,0x68,0x65,0x6e])](_0x1b0f76)[_0x3ed300([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b0f76(_0x3ed300([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37c915=0x7361eb79^_0x42cd34;function _0xe5d8a2(){const _0x5c0d46=_0x3ed300([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a5014(_0x2f950a(_0x50b84e)),_0x88a7c9=_0x590dc2(_0x1a5014(window[_0x3ed300([0x4d,0x61,0x74,0x68])][_0x3ed300([0x63,0x65,0x69,0x6c])](_0x45d76b/_0x37c915)));window[_0x3ed300([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ed300([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c0d46,_0x88a7c9);}function _0x107eff(){const _0x52257c=_0x3ed300([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a5014(_0x2f950a(_0x50b84e)),_0x2793b5=window[_0x3ed300([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ed300([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52257c);return _0x2793b5?window[_0x3ed300([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590dc2(_0x2793b5),0x10)*_0x37c915:null;}function _0x5879b6(_0xc69150){return new window[(_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f9123,_0x12c16a)=>{_0xc69150[_0x3ed300([0x74,0x68,0x65,0x6e])](_0x4f9123,_0x12c16a),window[_0x3ed300([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12c16a,0x7356d139^_0x42cd34);});}}_0x4a2489[_0x3ed300([0x6f,0x6e])](_0x3ed300([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe5d1ca,_0x3f0680)=>{if(_0x3f0680[0x0]!=_0x50b84e)return _0x1b0f76(_0x3ed300([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f0680[0x1]={..._0x3f0680[0x1],[_0x3ed300([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x76a8b1};},{[_0x3ed300([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ed300([0x68,0x69,0x67,0x68])}),_0x4a2489[_0x3ed300([0x6f,0x6e])](_0x3ed300([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1172ab=>{_0x4db345(_0x1172ab[_0x3ed300([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34f588=!0x0,_0x3ed4ad(_0x1172ab[_0x3ed300([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ed300([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ed300([0x6c,0x6f,0x77])}),_0x12716e[_0x3ed300([0x74,0x68,0x65,0x6e])](()=>{_0x34f588||_0x1b0f76(_0x3ed300([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x559240(){return _0x4a2489[_0x3ed300([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ed300([0x76,0x69,0x65,0x77])][_0x3ed300([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ed300([0x61,0x75,0x74,0x6f]);}function _0x27ce1e(){_0x4a2489[_0x3ed300([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ed300([0x76,0x69,0x65,0x77])][_0x3ed300([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ed300([0x61,0x75,0x74,0x6f]);}}function _0x30df12(_0x257b04){const _0x567180=[new window[(_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29793d=>setTimeout(_0x29793d,0x735e3b35^_0x42cd34)),_0x12716e[_0x3ed300([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4015e3=>{const _0x26c209=0x735705fe^_0x42cd34,_0x3a6d28=_0x37ee9e[_0x3ed300([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x523be5(){_0x3a6d28[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x26c209&&_0x4015e3();}_0x523be5(),_0x3a6d28[_0x3ed300([0x6f,0x6e])](_0x3ed300([0x61,0x64,0x64]),_0x523be5);})),new window[(_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cdf4a=>{function _0xbad7a8(){for(const _0x3321a4 in window)if(window[_0x3ed300([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3ed300([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3321a4))&&window[_0x3321a4]==_0xd01fee)return _0x4cdf4a();_0x4a2489[_0x3ed300([0x73,0x74,0x61,0x74,0x65])]!=_0x3ed300([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3ed300([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbad7a8,0x73571671^_0x42cd34);}_0x22bc78(_0x3ed300([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xbad7a8();})];return window[_0x3ed300([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ed300([0x72,0x61,0x63,0x65])](_0x567180)[_0x3ed300([0x74,0x68,0x65,0x6e])](()=>_0x257b04);}async function _0x51d32c(){if(await _0x12716e,_0x22bc78(_0x3ed300([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x27d696=_0x37ee9e[_0x3ed300([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x922ae0=_0x37ee9e[_0x3ed300([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])](_0x27d696[_0x3ed300([0x69,0x64])]),_0x1bb0b5=_0x1225aa(_0x3ed300([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1bb0b5[_0x3ed300([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x27d696['id'],_0x922ae0?_0x922ae0['id']:null,!0x0),_0x1bb0b5[_0x3ed300([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ed300([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bb0b5[_0x3ed300([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bb0b5[_0x3ed300([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x29f5b3,void(_0x1bb0b5[_0x3ed300([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x29f5b3);}if(_0x22bc78(_0x3ed300([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x112f17=_0x1225aa(_0x3ed300([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x112f17[_0x3ed300([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ed300([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x112f17[_0x3ed300([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x112f17[_0x3ed300([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x29f5b3,_0x112f17[_0x3ed300([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x29f5b3;}_0x4a2489[_0x3ed300([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ed300([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29f5b3,_0x4a2489[_0x3ed300([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ed300([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29f5b3,_0x4a2489[_0x3ed300([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ed300([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x140d01(){return _0x22bc78(_0x3ed300([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1225aa(_0x3ed300([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ed300([0x73,0x74,0x61,0x74,0x65])]==_0x3ed300([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b1980(){return _0x22bc78(_0x3ed300([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 _0x31baf6(){return _0x22bc78(_0x3ed300([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11a1d1(_0x117b68){const _0x4de73a=_0x49be09();_0x4a2489[_0x4de73a]=_0x3ed300([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])+_0x117b68,_0x117b68[_0x3ed300([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3ed300([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x49be09()]=_0xd01fee),_0x117b68!=_0x3ed300([0x56,0x61,0x6c,0x69,0x64])&&_0x51d32c();}function _0x49be09(){const _0x47a441=window[_0x3ed300([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ed300([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ed300([0x6e,0x6f,0x77])]())[_0x3ed300([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ed300([0x2e]),'');let _0x5ed22c=_0x3ed300([0x71]);for(let _0xa17ac1=0x0;_0xa17ac1<_0x47a441[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa17ac1+=0x2){let _0x131887=window[_0x3ed300([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47a441[_0x3ed300([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa17ac1,_0xa17ac1+0x2));_0x131887>=_0x100339[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x131887-=_0x100339[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ed22c+=_0x100339[_0x131887];}return _0x5ed22c;}function _0xdf7814(){const _0xcd322d=_0x356ffc[_0x3ed300([0x73,0x70,0x6c,0x69,0x74])](_0x3ed300([0x2e]));if(0x3!=_0xcd322d[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56bfd9(_0xcd322d[0x1]);function _0x56bfd9(_0x498501){const _0x453c26=_0x33de7d(_0x498501);return _0x453c26&&_0x428d76()?_0x453c26:null;function _0x428d76(){const _0x15e010=_0x453c26[_0x3ed300([0x6a,0x74,0x69])],_0x57c1e0=window[_0x3ed300([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e010[_0x3ed300([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15e010[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb79642={..._0x453c26,[_0x3ed300([0x6a,0x74,0x69])]:_0x15e010[_0x3ed300([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15e010[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb79642[_0x3ed300([0x76,0x63])],_0x2f950a(_0xb79642)==_0x57c1e0;}}}async function _0x5ad0ff(){let _0x248c3a=!0x0;try{const _0x164878=_0x356ffc[_0x3ed300([0x73,0x70,0x6c,0x69,0x74])](_0x3ed300([0x2e])),[_0x94af6f,_0x297dae,_0x2ad246]=_0x164878;return _0x290b8a(_0x94af6f),await _0x45ae3d(_0x94af6f,_0x297dae,_0x2ad246),_0x248c3a;}catch(_0x16591f){return!0x1;}function _0x290b8a(_0x5a4ac6){const _0x340b64=_0x33de7d(_0x5a4ac6);_0x340b64&&_0x340b64[_0x3ed300([0x61,0x6c,0x67])]==_0x3ed300([0x45,0x53,0x32,0x35,0x36])||(_0x248c3a=!0x1);}async function _0x45ae3d(_0x63dd35,_0x74b3b3,_0x4dba8a){const _0x480e12=window[_0x3ed300([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ed300([0x66,0x72,0x6f,0x6d])](_0x2bbea3(_0x4dba8a),_0x50709f=>_0x50709f[_0x3ed300([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d65b4=new window[(_0x3ed300([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ed300([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x63dd35+_0x3ed300([0x2e])+_0x74b3b3),_0x4c732a=window[_0x3ed300([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ed300([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c732a)return;const _0x241c67=await _0x4c732a[_0x3ed300([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ed300([0x6a,0x77,0x6b]),_0x19837a,{[_0x3ed300([0x6e,0x61,0x6d,0x65])]:_0x3ed300([0x45,0x43,0x44,0x53,0x41]),[_0x3ed300([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ed300([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ed300([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c732a[_0x3ed300([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ed300([0x6e,0x61,0x6d,0x65])]:_0x3ed300([0x45,0x43,0x44,0x53,0x41]),[_0x3ed300([0x68,0x61,0x73,0x68])]:{[_0x3ed300([0x6e,0x61,0x6d,0x65])]:_0x3ed300([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x241c67,_0x480e12,_0x1d65b4)||(_0x248c3a=!0x1);}}function _0x33de7d(_0x1c42bb){return _0x1c42bb[_0x3ed300([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ed300([0x65,0x79]))?JSON[_0x3ed300([0x70,0x61,0x72,0x73,0x65])](_0x2bbea3(_0x1c42bb)):null;}function _0x2bbea3(_0x5e2ec0){return window[_0x3ed300([0x61,0x74,0x6f,0x62])](_0x5e2ec0[_0x3ed300([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ed300([0x2b]))[_0x3ed300([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ed300([0x2f])));}function _0x2f950a(_0x1cdf61){let _0x78213c=0x1505;function _0x2a868b(_0x1d7488){for(let _0x224d65=0x0;_0x224d65<_0x1d7488[_0x3ed300([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x224d65++){const _0x2cb378=_0x1d7488[_0x3ed300([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x224d65);_0x78213c=(_0x78213c<<0x5)+_0x78213c+_0x2cb378,_0x78213c&=_0x78213c;}}function _0x52a670(_0x39e87f){Array[_0x3ed300([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39e87f)?_0x39e87f[_0x3ed300([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52a670):_0x39e87f&&typeof _0x39e87f==_0x3ed300([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ed300([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39e87f)[_0x3ed300([0x73,0x6f,0x72,0x74])]()[_0x3ed300([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1513f7,_0x3b6956])=>{_0x2a868b(_0x1513f7),_0x52a670(_0x3b6956);}):_0x2a868b(window[_0x3ed300([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39e87f));}return _0x52a670(_0x1cdf61),_0x78213c>>>0x0;}function _0x1a5014(_0x47ba4d){return _0x47ba4d[_0x3ed300([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ed300([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ed300([0x30]));}function _0x590dc2(_0x2a5f0a){return _0x2a5f0a[_0x3ed300([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ed300([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ed300([0x6a,0x6f,0x69,0x6e])]('');}function _0x22bc78(_0x382f47){return _0x4a2489[_0x3ed300([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ed300([0x68,0x61,0x73])](_0x382f47);}function _0x1225aa(_0x3aa71b){return _0x4a2489[_0x3ed300([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ed300([0x67,0x65,0x74])](_0x3aa71b);}function _0x29f5b3(){}function _0x3ed300(_0x2d4660){return _0x2d4660['map'](_0x4c2578=>String['fromCharCode'](_0x4c2578))['join']('');}_0x11a1d1(await _0x3770e4());}(this);}['createRevision'](_0x6b901e){const _0x1dfdba=this['editor']['plugins']['get']('Users');return new a({'id':_0x6b901e['id'],'name':_0x6b901e['name'],'creator':_0x6b901e['creatorId']?_0x1dfdba['getUser'](_0x6b901e['creatorId']):null,'diffData':_0x6b901e['diffData']||_0x6b901e['data'],'authors':_0x6b901e['authorsIds']['map'](_0x248aa0=>_0x1dfdba['getUser'](_0x248aa0)),'createdAt':new Date(_0x6b901e['createdAt']),'attributes':_0x6b901e['attributes'],'fromVersion':_0x6b901e['fromVersion'],'toVersion':_0x6b901e['toVersion']});}['addRevision'](_0x29a809,_0x4ec2b3=0x0){this['_revisions']['add'](_0x29a809,_0x4ec2b3);}['getRevision'](_0x14ac82){return this['_revisions']['get'](_0x14ac82);}['getRevisions'](_0x20371b={'toJSON':!0x1}){const _0x2fa211=Array['from'](this['_revisions']);return _0x2fa211['reverse'](),_0x20371b['toJSON']?_0x2fa211['map'](_0x3f494c=>_0x3f494c['toJSON']()):_0x2fa211;}['getIndex'](_0x524cbb){return this['_revisions']['getIndex'](_0x524cbb);}['getEarlierVisibleRevision'](_0x19fd87){const [,_0x275e9f]=this['getRevisionsIterator'](_0x19fd87,{'direction':'earlier'});return _0x275e9f;}['getLaterVisibleRevision'](_0x495660){const [,_0xe39c32]=this['getRevisionsIterator'](_0x495660,{'direction':'later'});return _0xe39c32;}['getRevisionsInDiff'](_0x19b552){const _0x3a8ade=[];for(const _0x13afde of this['getRevisionsIterator'](_0x19b552['newRevisionId']))if(_0x3a8ade['push'](_0x13afde),_0x13afde['id']===_0x19b552['oldRevisionId'])break;return _0x3a8ade;}*['getRevisionsIterator'](_0xf7eea8,{direction:_0x4e093e='earlier',filter:_0x3190ae=()=>!0x0}={}){const _0x1a3404='earlier'===_0x4e093e?0x1:-0x1;let _0x2a1dc5=this['_revisions']['get'](_0xf7eea8),_0x2e41f9=this['getIndex'](_0x2a1dc5);for(yield _0x2a1dc5;_0x2a1dc5;){if(_0x2e41f9+=_0x1a3404,_0x2a1dc5=this['getRevision'](_0x2e41f9),!_0x2a1dc5)return;_0x3190ae(_0x2a1dc5)&&(yield _0x2a1dc5);}}}function R(_0x865bc2,_0x26b990,_0x55d064){const t=_0x865bc2['t'];switch(_0x26b990){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'},_0x55d064);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x55d064);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0xf14d70,'a':_0x5b082c,'e':_0x5c489b,'r':_0xa34ab6,'u':_0x7fbcc};class l extends _0x4b9689{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x326e20,j,_0x333a23];}constructor(_0x480565){super(_0x480565),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x403778=_0x1349e3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x403778},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x466753=this['repository']['getRevision'](0x0),_0x6f3886=_0x466753&&null===_0x466753['creator']?_0x466753:null;if(this['_continueCurrentRevision']=!!_0x6f3886&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x36152e=this['_source']['getCurrentRevisionId'](),_0x56006d=this['repository']['getRevision'](_0x36152e);if(_0x56006d)this['_startingVersion']=_0x56006d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3bc135=this['_source']['history']['_operations']['find'](_0x4cb468=>!_0x4cb468['_isInit']),_0x1d3b9e=_0x3bc135?_0x3bc135['baseVersion']:this['_source']['history']['version'];_0x466753?(_0x466753['toVersion']<_0x1d3b9e&&_0x466753['_update']({'toVersion':_0x1d3b9e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x6f3886['id'],this['_startingVersion']=_0x6f3886['fromVersion']):(this['_startingVersion']=_0x466753['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1d3b9e,this['_continueCurrentRevision']=!0x1);}}else _0x6f3886&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x6f3886['toVersion'],this['editor']['model']['document']['history']['version']),_0x6f3886['fromVersion']===_0x6f3886['toVersion']?(0x0!==_0x6f3886['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x6f3886['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x6f3886['id'],this['_startingVersion']=_0x6f3886['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',_0x2575be=>!_0x2575be),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xca8fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a3b10;for(const _0x506e89 in _0xca8fc){const _0x3ee8fa=_0x506e89,_0x903578=_0xca8fc[_0x3ee8fa];if('revisionHistoryLicenseKeyValid'==_0x903578||'revisionHistoryLicenseKeyInvalid'==_0x903578||'revisionHistoryLicenseKeyExpired'==_0x903578||'revisionHistoryLicenseKeyDomainLimit'==_0x903578||'revisionHistoryLicenseKeyNotAllowed'==_0x903578||'revisionHistoryLicenseKeyEvaluationLimit'==_0x903578||'revisionHistoryLicenseKeyTrialLimit'==_0x903578||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x903578||'revisionHistoryLicenseKeyUsageLimit'==_0x903578){delete _0xca8fc[_0x3ee8fa],_0x3a3b10=_0x903578,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3a3b10&&_0xca8fc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3a3b10&&_0xca8fc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3a3b10&&_0xca8fc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3a3b10&&_0xca8fc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3a3b10&&_0xca8fc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3a3b10&&_0xca8fc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3a3b10&&_0xca8fc['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3a3b10&&_0xca8fc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x25c1c3=this['repository']['getRevision'](0x0),_0x4dbf40=await this['getRevisionDocumentData'](_0x25c1c3),_0x3dd83a=await this['getRevisionRootsAttributes'](_0x25c1c3);this['_replaceEditorDataWithRevisionData'](_0x4dbf40,_0x3dd83a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2ba5c9){this['_source']=_0x2ba5c9;}async['update'](){const _0x4fd692=await this['_source']['getLatestVersion']();if(_0x4fd692>this['currentRevision']['toVersion']){await this['_loadState']();const _0x56faf2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4fd692});_0x56faf2['authors']=_0x56faf2['authorsIds']['map'](_0x272114=>this['editor']['plugins']['get']('Users')['getUser'](_0x272114)),this['currentRevision']['_update'](_0x56faf2);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x5dc58f={},_0x3c269e=null){const _0xeb1f98=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3c269e>this['currentRevision']['toVersion']&&(_0x3c269e=null),null===_0x3c269e&&(_0x3c269e=await this['_source']['getLatestVersion']());const _0x25dac1=this['_getFromVersion'](_0x3c269e),_0xa14ff=this['buildRevisionData']({'from':_0x25dac1,'to':_0x3c269e});if(this['currentRevision']['toVersion']<_0x3c269e){const _0x2b18cb=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3c269e,'to':_0x3c269e});_0x2b18cb['authors']=[],_0x2b18cb['authorsIds']=[],_0x2b18cb['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2b18cb,!0x0),delete _0x2b18cb['authors'],_0xeb1f98['push'](_0x2b18cb);}_0x5dc58f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5dc58f['name']=_0x5dc58f['name']||null,_0x5dc58f['id']=_0x5dc58f['id']||_0x1349e3(),_0x5dc58f={..._0x5dc58f,..._0xa14ff};const _0x405501=this['addRevisionData'](_0x5dc58f);_0xeb1f98['push'](_0x5dc58f);const _0x123686=this['repository']['getIndex'](_0x405501);if(0x0!==_0x123686){const _0x4e4e57=this['repository']['getRevision'](_0x123686-0x1);if(_0x4e4e57['fromVersion']!==_0x3c269e){const _0x58791f=this['_revisionDataBuilder']['getData'](_0x3c269e,_0x4e4e57['toVersion']),_0x39abc0={'id':_0x4e4e57['id'],'diffData':_0x58791f['diffData'],'authorsIds':_0x58791f['authorsIds'],'authors':_0x58791f['authorsIds']['map'](_0x22b9e0=>this['editor']['plugins']['get']('Users')['getUser'](_0x22b9e0)),'fromVersion':_0x3c269e};_0x4e4e57===this['currentRevision']&&(_0x39abc0['createdAt']=new Date(_0x5dc58f['createdAt']['getTime']()+0xa)),_0x4e4e57['_update'](_0x39abc0,!0x0),delete _0x39abc0['authors'],_0xeb1f98['push'](_0x39abc0);}}if(this['adapter']){for(const _0x1980fa of _0xeb1f98)this['_bufferUpdate'](_0x1980fa['id'],_0x1980fa,!0x0);this['sendBufferedUpdates']();}return _0x405501;}['addRevisionData'](_0x410d88){const _0x2d00b4=this['repository']['createRevision'](_0x410d88);return this['adapter']&&_0x2d00b4['on']('_update',(_0x533d0a,_0x51b213,_0x36f68f)=>{_0x36f68f||(this['_bufferUpdate'](_0x51b213['id'],_0x51b213,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2d00b4,this['_findInsertionIndex'](_0x2d00b4)),_0x2d00b4;}async['getRevisionDocumentData'](_0x396534){await this['_loadRevisionData'](_0x396534);const _0x1be568={};for(const _0x17d4b3 in _0x396534['diffData']){if(_0x396534['diffData'][_0x17d4b3]['attachChange']&&!_0x396534['diffData'][_0x17d4b3]['attachChange']['isAttached'])continue;const _0x16da5e=this['_removeRevisionMarkers'](JSON['parse'](_0x396534['diffData'][_0x17d4b3]['insertions'])),_0x3aab0d=this['editor']['editing']['view']['document'],_0x436a4d=new _0x3f403f(_0x3aab0d,_0x16da5e['map'](_0x10c867=>V(_0x10c867,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1be568[_0x17d4b3]=this['editor']['data']['processor']['toData'](_0x436a4d),this['editor']['data']['processor']['useFillerType']('default');}return _0x1be568;}async['getRevisionRootsAttributes'](_0x5e2679){await this['_loadRevisionData'](_0x5e2679);const _0xbd9a8e={};for(const _0x194bdc in _0x5e2679['diffData'])_0x5e2679['diffData'][_0x194bdc]['attachChange']&&!_0x5e2679['diffData'][_0x194bdc]['attachChange']['isAttached']||(_0xbd9a8e[_0x194bdc]=_0x5e2679['diffData'][_0x194bdc]['attributesAfter']||{});return _0xbd9a8e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5581da=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x193c80=0x0;_0x193c80<_0x5581da['length'];_0x193c80++){const _0x471493=_0x5581da[_0x193c80];let _0x29294c=!0x1;for(const _0x1ef8c8 of Object['keys'](_0x471493))void 0x0===_0x471493[_0x1ef8c8]?delete _0x471493[_0x1ef8c8]:'id'!==_0x1ef8c8&&(_0x29294c=!0x0);_0x29294c||(_0x5581da[_0x193c80]=null);}if(_0x5581da=_0x5581da['filter'](_0x2b663a=>null!==_0x2b663a),!_0x5581da['length'])return;for(let _0xcab3f2=0x0;_0xcab3f2<_0x5581da['length'];_0xcab3f2++){const _0x3496a6=_0x5581da[_0xcab3f2];void 0x0!==_0x3496a6['fromVersion']&&void 0x0===_0x3496a6['toVersion']&&(_0x3496a6['toVersion']=this['repository']['getRevision'](_0x3496a6['id'])['toVersion']),void 0x0!==_0x3496a6['toVersion']&&void 0x0===_0x3496a6['fromVersion']&&(_0x3496a6['fromVersion']=this['repository']['getRevision'](_0x3496a6['id'])['fromVersion']);}const _0x1e4a42=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5581da,_0x1e4a42)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x345bfd=>{if(_0x345bfd){for(const _0x13a1d6 of _0x345bfd)this['setRevisionData']({'id':_0x13a1d6['id'],'createdAt':_0x13a1d6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x156325,_0x4e135f){let _0x8e01dd=this['editor']['config']['get']('initialData'),_0x2a126e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x8e01dd){_0x8e01dd={};for(const _0x3edfa7 of this['editor']['model']['document']['getRootNames']())_0x8e01dd[_0x3edfa7]='';}if('string'==typeof _0x8e01dd&&(_0x8e01dd={'main':_0x8e01dd}),void 0x0===_0x2a126e){_0x2a126e={};for(const _0x5461d2 of this['editor']['model']['document']['getRootNames']())_0x2a126e[_0x5461d2]={};}let _0x54852d=!0x1;const _0x2b1d70=Object['keys'](_0x8e01dd),_0x1f9691=Object['keys'](_0x156325);for(const _0x476cd6 of _0x2b1d70){if(_0x8e01dd[_0x476cd6]!==_0x156325[_0x476cd6]&&''!==_0x8e01dd[_0x476cd6]['trim']()){_0x54852d=!0x0;break;}if(!_0x330812(_0x2a126e[_0x476cd6],_0x4e135f[_0x476cd6])&&Object['keys'](_0x2a126e[_0x476cd6])['length']>0x0){_0x54852d=!0x0;break;}}_0x54852d||(_0x54852d=_0x1f9691['some'](_0x310d9a=>!this['editor']['model']['document']['getRoot'](_0x310d9a))),_0x54852d&&_0x3767f8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x8e01dd,'editorRootsAttributes':_0x2a126e,'revisionData':_0x156325,'revisionRootsAttributes':_0x4e135f}),this['editor']['config']['set']('initialData',_0x156325),this['editor']['config']['set']('rootsAttributes',_0x4e135f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x32432c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x32432c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1e1d4d){const _0x363dda=this['repository']['getRevisions']();_0x363dda['reverse']();let _0x48680d=0x0;for(;_0x48680d<_0x363dda['length'];){const _0x5ad5ca=_0x363dda[_0x48680d];if(_0x5ad5ca===this['currentRevision']){_0x48680d++;continue;}if(_0x5ad5ca['id']===this['_initialRevisionId'])break;const _0xc5f3eb=_0x1e1d4d['toVersion']-_0x5ad5ca['toVersion']||_0x1e1d4d['fromVersion']-_0x5ad5ca['fromVersion'];if(_0xc5f3eb>0x0)break;if(_0xc5f3eb<0x0)_0x48680d++;else{if(!_0x1e1d4d['creator']&&_0x5ad5ca['creator'])break;if(_0x5ad5ca['creator']||!_0x1e1d4d['creator']){if(_0x1e1d4d['createdAt']>_0x5ad5ca['createdAt'])break;_0x48680d++;}else _0x48680d++;}}return _0x48680d;}['setRevisionData'](_0xaf0231){const _0x4f0edf=this['repository']['getRevision'](_0xaf0231['id']);if(_0xaf0231['createdAt']&&(_0xaf0231['createdAt']=new Date(_0xaf0231['createdAt'])),_0xaf0231['authorsIds']){const _0x1f6985=this['editor']['plugins']['get']('Users');_0xaf0231['authors']=_0xaf0231['authorsIds']['map'](_0xe82352=>_0x1f6985['getUser'](_0xe82352));}_0x4f0edf['_update'](_0xaf0231,!0x0);}['buildRevisionData']({revision:_0x556199=null,from:_0x4cbb10=null,to:_0x394d9c=null}){_0x4cbb10=null!==_0x4cbb10?_0x4cbb10:_0x556199['fromVersion'],_0x394d9c=null!==_0x394d9c?_0x394d9c:_0x556199['toVersion'];const _0x1e8be3=this['_revisionDataBuilder']['getData'](_0x4cbb10,_0x394d9c),_0x275c35={'diffData':_0x1e8be3['diffData'],'authorsIds':_0x1e8be3['authorsIds'],'fromVersion':_0x4cbb10,'toVersion':_0x394d9c};if(!_0x556199||_0x394d9c!==_0x556199['toVersion']){const _0xf4facb=_0x394d9c-0x1,_0x38a5fb=this['_source']['history']['getOperation'](_0xf4facb);_0x275c35['createdAt']=_0x38a5fb&&_0x38a5fb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4cbb10===this['_loadedStateData']['fromVersion']){for(const _0x541736 of this['_loadedStateData']['authors'])_0x275c35['authorsIds']['includes'](_0x541736['id'])||_0x275c35['authorsIds']['push'](_0x541736['id']);}return _0x275c35;}['_loadRevisionData'](_0x32dcad){if(!_0x32dcad||_0x32dcad['diffData'])return Promise['resolve']();{const _0x1c174d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1c174d,'revisionId':_0x32dcad['id']})['then'](_0x2eacdc=>{_0x32dcad['diffData']=_0x2eacdc['diffData'];});}}['_bufferUpdate'](_0x4a3bb0,_0x441208,_0x1be965){if(this['_bufferedUpdates']['has'](_0x4a3bb0)){const _0xf65a12=this['_bufferedUpdates']['get'](_0x4a3bb0);_0x441208=_0x1be965?{..._0xf65a12,..._0x441208}:{..._0x441208,..._0xf65a12};}this['_bufferedUpdates']['set'](_0x4a3bb0,_0x441208);}['_getFromVersion'](_0x4f3eb6){const _0x295f7c=this['repository']['getRevisions']();_0x295f7c['reverse'](),_0x295f7c['shift']();const _0x4b07d1=_0x295f7c['find'](_0x2dd925=>_0x2dd925['toVersion']<=_0x4f3eb6)['toVersion'];return _0x4b07d1<this['_startingVersion']?this['_startingVersion']:_0x4b07d1;}['_createInitialRevision'](_0x1687d4){const _0x185ee9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x185ee9)this['_initialRevisionId']=_0x185ee9['id'];else{const _0xdad636=!this['editor']['model']['document']['roots']['find'](_0x4c54f4=>this['editor']['model']['hasContent'](_0x4c54f4)),_0x537afa=this['editor']['plugins']['get']('Users')['me']['id'],_0x211605=R(this['editor']['locale'],_0xdad636?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1687d4,'to':_0x1687d4,'id':this['_initialRevisionId'],'name':_0x211605,'creatorId':_0x537afa});}}['_createCurrentRevision'](_0x2416fd){const _0x450674=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x450674),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2416fd,'to':_0x2416fd,'id':_0x450674,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1dfa12,from:_0x122b2f,to:_0x2d2926,creatorId:_0x3c3c89,id:_0x4cfff2}){const _0xd4aadb=this['buildRevisionData']({'from':_0x122b2f,'to':_0x2d2926});_0xd4aadb['name']=_0x1dfa12,_0xd4aadb['creatorId']=_0x3c3c89,_0xd4aadb['id']=_0x4cfff2;const _0x32b9f0=this['addRevisionData'](_0xd4aadb);return this['adapter']&&this['_bufferUpdate'](_0xd4aadb['id'],_0xd4aadb,!0x0),_0x32b9f0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xbeae){return(_0xbeae=_0xbeae['filter'](_0x2e01d0=>!_0x2e01d0['name']||'revision-start'!==_0x2e01d0['name']&&'revision-end'!==_0x2e01d0['name']))['forEach'](_0x102647=>{'string'!=typeof _0x102647&&(_0x102647['children']=this['_removeRevisionMarkers'](_0x102647['children']),_0x102647['attributes']=_0x102647['attributes']['filter'](_0x586bc5=>!_0x586bc5[0x0]['startsWith']('data-revision-')));}),_0xbeae;}}function V(_0x1dd7a2,_0x52f851){const _0x2dbfb7=_0x52f851['editing']['view']['document'];if('string'==typeof _0x1dd7a2)return new _0x8dcdf9(_0x2dbfb7,_0x1dd7a2);{const _0x48415e=_0x1dd7a2['children']['map'](_0x1a4dc8=>V(_0x1a4dc8,_0x52f851));return new(C[_0x1dd7a2['type']]||_0x503e95)(_0x2dbfb7,_0x1dd7a2['name'],_0x1dd7a2['attributes'],_0x48415e);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1d3c4b){this['editor']=_0x1d3c4b,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'](_0x26c4d1){this['source']=_0x26c4d1;const _0x1eba92=new Map(),_0x23908e=new Map(),_0x51dfea=this['editor']['model']['document']['roots']['map'](_0x2354c6=>_0x2354c6['rootName']);for(const _0x1f6f47 of _0x51dfea){const _0x50c55d=this['editor']['model']['document']['getRoot'](_0x1f6f47),_0x33a858=F(_0x50c55d);_0x1eba92['set'](_0x1f6f47,_0x33a858),_0x23908e['set'](_0x1f6f47,Object['fromEntries'](_0x50c55d['getAttributes']()));}const _0xb653bd=Array['from'](this['editor']['model']['markers'])['map'](_0x4f9e1a=>[_0x4f9e1a['name'],_0x4f9e1a['getRange']()]),_0xb31eb2=this['source']['version'];this['_saveMetaData'](_0xb31eb2,_0x1eba92,_0xb653bd,_0x23908e),this['_startingRevisionId']=this['_revisionId'];const _0x2bae0e=new Map(),_0x2af630=new Map();for(const _0x1953fc of _0x51dfea){const _0x2f2152=B(_0x1953fc);_0x2bae0e['set'](_0x1953fc,_0x2f2152),_0x2af630['set'](_0x1953fc,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2bae0e,[],_0x2af630);}['getData'](_0x3f267c,_0x51ce2a){if(this['_lastFrom']===_0x3f267c&&this['_lastTo']<=_0x51ce2a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x51ce2a,!0x0);else{if(!this['_savedMetaData']['has'](_0x3f267c)){const _0x4767dc=this['_getPreviousFrom'](_0x3f267c);this['_calculateMetaData'](_0x4767dc,_0x3f267c,!0x1);}this['_calculateMetaData'](_0x3f267c,_0x51ce2a,!0x0);}return this['_lastFrom']=_0x3f267c,this['_lastTo']=_0x51ce2a,this['_getState']();}['loadState'](_0x3d7f4e){this['_reset'](),this['_lastFrom']=_0x3d7f4e['fromVersion'],this['_lastTo']=_0x3d7f4e['toVersion'];for(const _0x3ecaca in _0x3d7f4e['diffData']){const _0xcb0cfe=_0x3d7f4e['diffData'][_0x3ecaca]['attachChange'],_0x4c5d48=_0x70bb23(_0x3d7f4e['diffData'][_0x3ecaca]['attributesBefore'])||{},_0x32c668=this['_makeModelFromViewString'](_0x3d7f4e['diffData'][_0x3ecaca]['deletions']);_0x32c668['rootName']=_0x3ecaca,_0x32c668['_isAttached']=!_0xcb0cfe||!_0xcb0cfe['isAttached'],_0x32c668['isAttached']=()=>_0x32c668['_isAttached'],this['_baseRoots']['set'](_0x3ecaca,_0x32c668),this['_baseRootsAttributes']['set'](_0x3ecaca,_0x4c5d48),_0xcb0cfe&&this['_touchedRoots']['set'](_0x3ecaca,_0xcb0cfe);const _0x3c53bd=this['_makeIdsRoot'](_0x32c668);this['_baseIdsRoots']['set'](_0x3ecaca,_0x3c53bd);for(const [_0x59236e,_0x5ccfa8]of _0x32c668['markers']){if(!_0x59236e['startsWith']('revision:'))continue;const _0x317708=_0x59236e['split'](':')[0x2];for(const _0x40bb98 of _0x5ccfa8['getWalker']({'singleCharacters':!0x0})){const _0xe42ca0=this['_getVidAttributeName'](_0x40bb98),_0xa407d9='elementEnd'==_0x40bb98['type']?_0x40bb98['previousPosition']['path']['slice'](0x0,-0x1):_0x40bb98['previousPosition']['path'],_0x1bab23=_0x3c53bd['getNodeByPath'](_0xa407d9)['getAttribute'](_0xe42ca0);this['_touched']['set'](_0x1bab23,{'userId':_0x317708});}}}this['_startingRevisionId']=this['_revisionId'];const _0x418197=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x270372=>!this['_touched']['has'](_0x270372));let _0x8e4a3d=0x0;const _0xfd6779=new Map();for(const _0x1358ca in _0x3d7f4e['diffData']){const _0x5e1536=_0x3d7f4e['diffData'][_0x1358ca]['attachChange'],_0x2ad2ff=_0x70bb23(_0x3d7f4e['diffData'][_0x1358ca]['attributesAfter'])||{},_0x560836=this['_makeModelFromViewString'](_0x3d7f4e['diffData'][_0x1358ca]['insertions']);_0x560836['rootName']=_0x1358ca,_0x560836['_isAttached']=!_0x5e1536||_0x5e1536['isAttached'],_0x560836['isAttached']=()=>_0x560836['_isAttached'],this['_diffRoots']['set'](_0x1358ca,_0x560836),this['_diffRootsAttributes']['set'](_0x1358ca,_0x2ad2ff);const _0x23d7d3=this['_makeIdsRoot'](_0x560836,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1358ca,_0x23d7d3),_0xfd6779['set'](_0x1358ca,_0x560836['isAttached']()?_0x2ad2ff:{});for(const [_0x304c8b,_0x179c82]of _0x560836['markers']){if(!_0x304c8b['startsWith']('revision:'))continue;const _0x4acc0f=_0x304c8b['split'](':')[0x2];for(const _0x102e49 of _0x179c82['getWalker']({'singleCharacters':!0x0})){const _0x1c1e50=this['_getVidAttributeName'](_0x102e49),_0x366d75=this['_revisionId']++,_0x5c60e7='elementEnd'==_0x102e49['type']?_0x102e49['previousPosition']['path']['slice'](0x0,-0x1):_0x102e49['previousPosition']['path'];_0x23d7d3['getNodeByPath'](_0x5c60e7)['_setAttribute'](_0x1c1e50,_0x366d75),this['_touched']['set'](_0x366d75,{'userId':_0x4acc0f});}}for(const _0x442910 of this['editor']['model']['createRangeIn'](_0x560836)['getWalker']({'singleCharacters':!0x0})){const _0x3a76fc=this['_getVidAttributeName'](_0x442910),_0x4843f3='elementEnd'==_0x442910['type']?_0x442910['previousPosition']['path']['slice'](0x0,-0x1):_0x442910['previousPosition']['path'],_0x45f317=_0x23d7d3['getNodeByPath'](_0x4843f3);_0x45f317['getAttribute'](_0x3a76fc)>0x0||_0x45f317['_setAttribute'](_0x3a76fc,_0x418197[_0x8e4a3d++]);}for(const [_0x1b757c,_0x1f9c6d]of _0x560836['markers'])_0x1b757c['startsWith']('revision:')||this['_markers']['set'](_0x1b757c,_0x1f9c6d);}const _0x3bd470=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3bd470),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3bd470,0x1));const _0x3c0308=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3c0308),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c0308,0x1));const _0x1f4e0d=Array['from'](this['_diffRoots'])['map'](([_0x1e6bc6,_0x507a6e])=>[_0x1e6bc6,F(_0x507a6e)]);this['_saveMetaData'](this['_lastTo'],_0x1f4e0d,this['_markers'],_0xfd6779);}['_makeModelFromViewString'](_0x323d11){const _0x33bb61=JSON['parse'](_0x323d11),_0x4538b2=this['editor']['editing']['view']['document'],_0xe1b21f=new _0x3f403f(_0x4538b2,_0x33bb61['map'](_0x36004f=>V(_0x36004f,this['editor'])));return this['editor']['data']['toModel'](_0xe1b21f);}['_saveMetaData'](_0x53e702,_0x18e3e4,_0xc6d453,_0x49b9fe){const _0xe865ba=new Map(_0x18e3e4),_0x2a3b65=new Map(_0x70bb23(_0x49b9fe)),_0x3a7355=new Map();for(const [_0x1fa3e5,_0x19b188]of _0xc6d453)_0x3a7355['set'](_0x1fa3e5,{'start':_0x19b188['start']['clone'](),'end':_0x19b188['end']['clone'](),'rootName':_0x19b188['root']['rootName']});this['_savedMetaData']['set'](_0x53e702,{'roots':_0xe865ba,'markers':_0x3a7355,'rootsAttributes':_0x2a3b65});}['_removeMetaData'](_0x3ed45d){this['_savedMetaData']['delete'](_0x3ed45d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x356e56,_0x5a0fcf=null){let _0x5e9362=null;_0x356e56['is']('documentFragment')||(_0x5e9362=new ft(_0x356e56['name'],{'vid_start':null===_0x5a0fcf?this['_revisionId']++:_0x5a0fcf++}));const _0x4b8b23=[];for(const _0x1a089b of _0x356e56['getChildren']())if(_0x1a089b['is']('element')){_0x4b8b23['push'](this['_makeIdsRoot'](_0x1a089b,_0x5a0fcf));const _0x93f026=_0x4b8b23[_0x4b8b23['length']-0x1];null!==_0x5a0fcf&&(_0x5a0fcf=_0x93f026['is']('element','$text')?_0x93f026['getAttribute']('vid')+0x1:_0x93f026['getAttribute']('vid_end')+0x1);}else{for(let _0x280b27=0x0;_0x280b27<_0x1a089b['offsetSize'];_0x280b27++)_0x4b8b23['push'](new ft('$text',{'vid':null===_0x5a0fcf?this['_revisionId']++:_0x5a0fcf++}));}if(_0x356e56['is']('documentFragment')){const _0x1edf59=B(_0x356e56['rootName']);return _0x1edf59['_insertChild'](0x0,_0x4b8b23),_0x1edf59;}return _0x5e9362['_setAttribute']('vid_end',null===_0x5a0fcf?this['_revisionId']++:_0x5a0fcf++),_0x5e9362['_insertChild'](0x0,_0x4b8b23),_0x5e9362;}['_calculateMetaData'](_0x5ce413,_0xa83ceb,_0x32534b){this['_reset']();const {roots:_0x545263,markers:_0x59fcda,rootsAttributes:_0x2c4211}=this['_savedMetaData']['get'](_0x5ce413);this['_baseRoots']=new Map(_0x545263),this['_baseRootsAttributes']=new Map(_0x70bb23(_0x2c4211));for(const [_0x28b800,_0x38bb38]of this['_baseRoots'])if('$graveyard'!==_0x28b800&&(this['_diffRoots']['set'](_0x28b800,F(_0x38bb38)),this['_diffRootsAttributes']=new Map(_0x70bb23(_0x2c4211)),_0x32534b)){const _0x4a2564=this['_revisionId'];this['_idsRoots']['set'](_0x28b800,this['_makeIdsRoot'](_0x38bb38)),this['_baseIdsRoots']['set'](_0x28b800,this['_makeIdsRoot'](_0x38bb38,_0x4a2564));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x32534b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44dd4e,_0x277806]of _0x59fcda){const _0x15524c=this['_baseRoots']['get'](_0x277806['rootName']),_0xa2ea3d=this['_diffRoots']['get'](_0x277806['rootName']),_0x51b759=new vt(this['_fixPosition'](_0x277806['start'],_0x15524c),this['_fixPosition'](_0x277806['end'],_0x15524c)),_0x27c881=this['_fixRange'](_0x51b759,_0xa2ea3d);_0x15524c['markers']['set'](_0x44dd4e,_0x51b759),this['_markers']['set'](_0x44dd4e,_0x27c881);}this['_applyOperations'](_0x5ce413,_0xa83ceb,_0x32534b);}['_applyOperations'](_0xcbdd6f,_0x14cf71,_0x1650a7){for(const _0x4a187d of this['source']['getOperations'](_0xcbdd6f,_0x14cf71))this['_handleOperation'](_0x4a187d,_0x1650a7);for(const _0x2c6212 of this['_diffRoots']['values']())_0x2c6212['markers']['clear']();for(const [_0x3583e0,_0x452b34]of this['_markers']){this['_diffRoots']['get'](_0x452b34['root']['rootName'])['markers']['set'](_0x3583e0,_0x452b34['clone']());}const _0x4f838e=new Map(),_0x3512c3=new Map();for(const [_0x2e2b69,_0x201f65]of this['_diffRoots'])_0x4f838e['set'](_0x2e2b69,F(_0x201f65)),_0x3512c3['set'](_0x2e2b69,this['_diffRootsAttributes']['get'](_0x2e2b69));this['_saveMetaData'](_0x14cf71,_0x4f838e,this['_markers'],_0x3512c3);}['_getPreviousFrom'](_0x54271e){const _0x3f7252=Array['from'](this['_savedMetaData']['keys']());_0x3f7252['sort']((_0x4ac69e,_0x1dbf12)=>_0x4ac69e-_0x1dbf12),_0x3f7252['reverse']();for(const _0x241d21 of _0x3f7252)if(_0x241d21<_0x54271e)return _0x241d21;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4c5dbb,_0x8faff2){const _0x5d943c=Array['from'](_0x8faff2['markers'])['map'](([_0x1caf4e,_0x1d1e38])=>[_0x1caf4e,this['_fixRange'](_0x1d1e38,_0x4c5dbb)]);_0x4c5dbb['markers']=new Map(_0x5d943c);}['_transformMarkers'](_0x48392c){for(const _0x396143 of this['_markers']['values']()){const _0x2f2f43=_0x396143['getTransformedByOperation'](_0x48392c),_0x1982c6=vt['_createFromRanges'](_0x2f2f43);_0x396143['start']=_0x1982c6['start'],_0x396143['end']=_0x1982c6['end'];}}['_handleOperation'](_0x59e207,_0x16ab4b){if('addRoot'!=_0x59e207['type']&&'detachRoot'!=_0x59e207['type']){if('insert'==_0x59e207['type']){const _0x44f569=_0x59e207['position']['root']['rootName'];this['_diffRoots']['has'](_0x44f569)||(this['_diffRoots']['set'](_0x44f569,B(_0x44f569,!0x0)),this['_diffRootsAttributes']['set'](_0x44f569,{}),_0x16ab4b&&this['_idsRoots']['set'](_0x44f569,B(_0x44f569,!0x0)));}else{if('addRootAttribute'==_0x59e207['type']||'removeRootAttribute'==_0x59e207['type']||'changeRootAttribute'==_0x59e207['type'])return void this['_handleRootAttributeOperation'](_0x59e207);'marker'==_0x59e207['type']&&this['_handleMarkerOperation'](_0x59e207);}if('marker'!==_0x59e207['type']){const _0x3bfbeb=this['_cloneOperation'](_0x59e207,this['_diffRoots']);_0x3bfbeb['_execute'](),this['_transformMarkers'](_0x3bfbeb);}if(_0x16ab4b)switch(_0x59e207['type']){case'insert':this['_handleInsertOperation'](_0x59e207);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x59e207);break;case'merge':this['_handleMergeOperation'](_0x59e207);break;case'split':this['_handleSplitOperation'](_0x59e207);}}else this['_handleRootOperation'](_0x59e207,_0x16ab4b);}['_cloneOperation'](_0x2408f2,_0x12e211){const _0xb70687=_0x2408f2['clone']();return _0xb70687['_authorId']=_0x2408f2['_authorId'],this['_fixOperation'](_0xb70687,_0x12e211),_0xb70687;}['_getBaseVids'](_0x1ebb43){return _0x1ebb43['map'](_0x2f3d51=>{const _0x127246=this['_getVidAttributeName'](_0x2f3d51);return Number(_0x2f3d51['item']['getAttribute'](_0x127246));});}['_generateTape'](_0x3232ba,_0x311ec1){if(_0x3232ba['is']('element','$text'))_0x311ec1['push']({'item':_0x3232ba,'type':'text'});else{_0x3232ba['is']('element')&&_0x311ec1['push']({'item':_0x3232ba,'type':'elementStart'});for(const _0x198c8d of _0x3232ba['getChildren']())this['_generateTape'](_0x198c8d,_0x311ec1);_0x3232ba['is']('element')&&_0x311ec1['push']({'item':_0x3232ba,'type':'elementEnd'});}return _0x311ec1;}['_getState'](){const _0x37b6dd=new Map(this['_touched']),_0x3c0985=new Map(_0x37b6dd),_0x58fd0b=new Map(),_0xffd405={'insertions':{},'deletions':{}},_0x48ef76={'insertions':{},'deletions':{}},_0x883aba=new Map(),_0x1a32ef=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1a32ef['delete']('$graveyard');for(const _0x1c7379 of _0x1a32ef){const _0x4a4f83=this['_diffRoots']['get'](_0x1c7379)||B(_0x1c7379,!0x1),_0x156d59=this['_baseRoots']['get'](_0x1c7379)||B(_0x1c7379,!0x1);_0x4a4f83['isAttached']()||_0x156d59['isAttached']()?(_0xffd405['insertions'][_0x1c7379]=F(_0x4a4f83),_0xffd405['deletions'][_0x1c7379]=F(_0x156d59),this['_copyMarkers'](_0xffd405['deletions'][_0x1c7379],_0x156d59),this['_copyMarkers'](_0xffd405['insertions'][_0x1c7379],_0x4a4f83),_0x48ef76['insertions'][_0x1c7379]=this['_generateTape'](this['_idsRoots']['get'](_0x1c7379),[]),_0x48ef76['deletions'][_0x1c7379]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1c7379)||B(_0x1c7379,!0x1),[])):_0x1a32ef['delete'](_0x1c7379);}for(const _0x138508 of _0x1a32ef){const _0x51fabe=_0x48ef76['insertions'][_0x138508];for(const _0xab6310 of _0x51fabe){const _0x3442f1=this['_getVidAttributeName'](_0xab6310),_0x36c8bf=_0xab6310['item']['getAttribute'](_0x3442f1);_0x3c0985['delete'](_0x36c8bf),_0x36c8bf>=this['_startingRevisionId']&&_0x58fd0b['set'](_0x36c8bf,_0x37b6dd['get'](_0x36c8bf));}}for(const _0x39047e of _0x1a32ef){const _0x2ed126=_0x48ef76['insertions'][_0x39047e],_0x4807c7=this['_getBaseVids'](_0x48ef76['deletions'][_0x39047e]);let _0x584211=0x0;for(const _0x57546f of _0x2ed126){const _0x28d9bd=this['_getVidAttributeName'](_0x57546f),_0xb4af33=_0x57546f['item']['getAttribute'](_0x28d9bd);if(!_0x58fd0b['has'](_0xb4af33)&&!_0x883aba['has'](_0xb4af33)){if(_0x3c0985['has'](_0xb4af33))_0x584211++;else{if(_0xb4af33!=_0x4807c7[_0x584211]){const _0x4414de=_0x37b6dd['get'](_0xb4af33)||_0x37b6dd['get'](_0x4807c7[_0x584211]);for(;_0xb4af33!=_0x4807c7[_0x584211];)_0x3c0985['has'](_0x4807c7[_0x584211])||(_0x883aba['set'](_0x4807c7[_0x584211],_0x4414de),_0x37b6dd['set'](_0x4807c7[_0x584211],_0x4414de)),_0x584211++;}_0x584211++;}}}}for(const _0x34c519 of _0x1a32ef){const _0x4a7e52=_0x48ef76['insertions'][_0x34c519];for(const _0x400a05 of _0x4a7e52){const _0x59d5d3=this['_getVidAttributeName'](_0x400a05),_0x24925d=_0x400a05['item']['getAttribute'](_0x59d5d3);if(_0x883aba['has'](_0x24925d)){const _0x184cfd=_0x883aba['get'](_0x24925d);_0x3c0985['has'](_0x24925d)||_0x3c0985['set'](_0x24925d,{..._0x184cfd}),_0x58fd0b['set'](_0x24925d,{..._0x184cfd});}}}for(const _0x1e92cb of _0x3c0985['keys']())_0x1e92cb>=this['_startingRevisionId']&&_0x3c0985['delete'](_0x1e92cb);const _0x56625d=new Map();for(const _0x43a9ff of _0x1a32ef){let _0x3f8b32=_0x48ef76['insertions'][_0x43a9ff];for(const _0x102708 of _0x3f8b32)if(_0x102708['item']['is']('element','tableCell')){const _0xf99347=this['_getVidAttributeName'](_0x102708),_0x157487=_0x102708['item']['getAttribute'](_0xf99347);if(_0x58fd0b['has'](_0x157487)){const _0x35ace6=_0x102708['item']['parent']['parent']['getAttribute']('vid_start'),_0x4b793c=_0x56625d['get'](_0x35ace6)||new Set();_0x4b793c['add'](_0x58fd0b['get'](_0x157487)['userId']),_0x56625d['set'](_0x35ace6,_0x4b793c);}}_0x3f8b32=_0x48ef76['deletions'][_0x43a9ff];for(const _0x5e12a3 of _0x3f8b32)if(_0x5e12a3['item']['is']('element','tableCell')){const _0x2a47ab=this['_getVidAttributeName'](_0x5e12a3),_0xa000f2=_0x5e12a3['item']['getAttribute'](_0x2a47ab);if(_0x3c0985['has'](_0xa000f2)){const _0x8a9ec6=_0x5e12a3['item']['parent']['parent']['getAttribute']('vid_start'),_0x46ed2a=_0x56625d['get'](_0x8a9ec6)||new Set();_0x46ed2a['add'](_0x3c0985['get'](_0xa000f2)['userId']),_0x56625d['set'](_0x8a9ec6,_0x46ed2a);}}for(const _0x1baf11 of _0x56625d['keys']())(_0x58fd0b['has'](_0x1baf11)||_0x3c0985['has'](_0x1baf11))&&_0x56625d['delete'](_0x1baf11);}for(const _0x27fd75 of _0x1a32ef){const _0x4e749e=_0x48ef76['insertions'][_0x27fd75];let _0x1cce2a=null,_0x1cfaf4=null;for(const _0x27bd29 of _0x4e749e){const _0x2b09ac=this['_getVidAttributeName'](_0x27bd29),_0x2f38ba=_0x27bd29['item']['getAttribute'](_0x2b09ac),_0xb0813d=_0x56625d['get'](_0x2f38ba);_0xb0813d&&'elementStart'==_0x27bd29['type']&&(_0x1cce2a=Array['from'](_0xb0813d)[0x0],_0x1cfaf4=_0x27bd29['item']['getAttribute']('vid_end')),_0x1cce2a&&(_0x3c0985['set'](_0x2f38ba,{'userId':_0x1cce2a}),_0x58fd0b['set'](_0x2f38ba,{'userId':_0x1cce2a})),_0x2f38ba==_0x1cfaf4&&(_0x1cce2a=null,_0x1cfaf4=null);}}const _0x4d86f5={},_0x55fe9e=new Set();for(const _0x406823 of _0x1a32ef){const _0x4d9302=_0xffd405['deletions'][_0x406823],_0x398a0f=_0xffd405['insertions'][_0x406823];for(const {userId:_0x5c0c42}of this['_touchedMarkers']['values']())null!==_0x5c0c42&&_0x55fe9e['add'](_0x5c0c42);for(const {userId:_0x5919ca}of this['_touchedRoots']['values']())null!==_0x5919ca&&_0x55fe9e['add'](_0x5919ca);this['_markChanges'](_0x398a0f,_0x48ef76['insertions'][_0x406823],_0x58fd0b,'insertion',_0x55fe9e),this['_markChanges'](_0x4d9302,_0x48ef76['deletions'][_0x406823],_0x3c0985,'deletion',_0x55fe9e),_0x4d86f5[_0x406823]={'insertions':this['_prepareViewToSave'](_0x398a0f),'deletions':this['_prepareViewToSave'](_0x4d9302),'attachChange':this['_touchedRoots']['get'](_0x406823)||null,'attributesBefore':_0x70bb23(this['_baseRootsAttributes']['get'](_0x406823))||{},'attributesAfter':_0x70bb23(this['_diffRootsAttributes']['get'](_0x406823))};}return{'diffData':_0x4d86f5,'authorsIds':Array['from'](_0x55fe9e)};}['_processRootBeforeSave'](_0x580279){for(const [,_0x4ad40c]of _0x580279['markers']){const _0x252cb4=_0x4ad40c['start']['getAncestors']()['filter'](_0x5a2bb1=>'tableCell'==_0x5a2bb1['name']);for(const _0x2aaf5c of _0x252cb4)0x1==_0x2aaf5c['childCount']&&_0x2aaf5c['getChild'](0x0)['is']('element','paragraph')&&_0x2aaf5c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5e5f08){this['_processRootBeforeSave'](_0x5e5f08);const _0x5ad50=this['editor']['data']['toView'](_0x5e5f08,{}),_0x552b27=Array['from'](_0x5ad50['getChildren']())['map'](_0x5be55c=>this['_getViewJson'](_0x5be55c));return JSON['stringify'](_0x552b27);}['_getViewJson'](_0x46ab7c){if(_0x46ab7c['is']('$text'))return _0x46ab7c['data'];{const _0x17d394=_0x46ab7c;return{'type':Object['keys'](C)['find'](_0x4575b0=>_0x46ab7c instanceof C[_0x4575b0]),'name':_0x17d394['name'],'attributes':Array['from'](_0x17d394['getAttributes']()),'children':Array['from'](_0x17d394['getChildren']())['map'](_0x27cb50=>this['_getViewJson'](_0x27cb50))};}}['_markChanges'](_0x4fa31e,_0x1967ed,_0x21ad9f,_0x5d143f,_0x5e29ba){let _0x249c87=null,_0x25925e=null,_0x99089f=0x0;const _0x12cae8=this['editor']['model'];for(let _0x2cf79e=0x0;_0x2cf79e<_0x1967ed['length'];_0x2cf79e++){const _0x502814=this['_getVidAttributeName'](_0x1967ed[_0x2cf79e]),_0x5356fd=_0x1967ed[_0x2cf79e]['item']['getAttribute'](_0x502814),_0x32dc36=_0x21ad9f['get'](_0x5356fd),_0x8bd169=_0x2cf79e==_0x1967ed['length']-0x1;(!_0x249c87&&_0x32dc36&&(_0x249c87=_0x32dc36,_0x25925e=_0x1967ed[_0x2cf79e]),_0x249c87&&(!_0x32dc36||_0x32dc36['userId']!=_0x249c87['userId']))&&(_0x562f84(_0x32dc36,J(_0x25925e,_0x4fa31e,_0x12cae8),J(_0x1967ed[_0x2cf79e],_0x4fa31e,_0x12cae8)),_0x249c87=_0x32dc36||null,_0x25925e=_0x32dc36?_0x1967ed[_0x2cf79e]:null),_0x249c87&&_0x8bd169&&_0x562f84(_0x32dc36,J(_0x25925e,_0x4fa31e,_0x12cae8),q(_0x1967ed[_0x2cf79e],_0x4fa31e,_0x12cae8));}function _0x562f84(_0x5dce60,_0x4d1687,_0x243d30){const _0x5084e0=_0x249c87['userId'],_0x5ab27d='revision:'+_0x5d143f+':'+_0x5084e0+':'+_0x99089f++,_0xc97b56=_0x12cae8['createRange'](_0x4d1687,_0x243d30);_0x4fa31e['markers']['set'](_0x5ab27d,_0xc97b56),null!==_0x5084e0&&_0x5e29ba['add'](_0x5084e0);}}['_getVidAttributeName'](_0x765138){switch(_0x765138['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x26ede8,_0xac4d75){_0x26ede8['baseVersion']=null;for(const _0x1ecb72 in _0x26ede8){const _0x536de5=_0x26ede8[_0x1ecb72];if(_0x536de5 instanceof gt){const _0x39564e=_0xac4d75['get'](_0x536de5['root']['rootName']);_0x26ede8[_0x1ecb72]=this['_fixPosition'](_0x536de5,_0x39564e);}if(_0x536de5 instanceof vt){const _0xe3b082=_0xac4d75['get'](_0x536de5['root']['rootName']);_0x26ede8[_0x1ecb72]=this['_fixRange'](_0x536de5,_0xe3b082);}'root'===_0x1ecb72&&(_0x26ede8['root']=_0xac4d75['get'](_0x26ede8['root']['rootName']));}}['_fixRange'](_0x9bd54a,_0x7c67ac){return this['editor']['model']['createRange'](this['_fixPosition'](_0x9bd54a['start'],_0x7c67ac),this['_fixPosition'](_0x9bd54a['end'],_0x7c67ac));}['_fixPosition'](_0x4e6356,_0xb7d75f){return this['editor']['model']['createPositionFromPath'](_0xb7d75f,_0x4e6356['path'],_0x4e6356['stickiness']);}['_handleInsertOperation'](_0x2805b8){const _0x3174b5=this['_idsRoots']['get'](_0x2805b8['position']['root']['rootName']),_0xe255a5=this['_fixPosition'](_0x2805b8['position'],_0x3174b5),_0x3c380a=null===_0x2805b8['_authorId']?null:_0x2805b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48e70e=_0xe255a5['parent'],_0x1db7f2=this['_revisionId'],_0x21ad8f=[];for(const _0x21d846 of _0x2805b8['nodes'])if(_0x21d846['is']('element'))_0x21ad8f['push'](this['_makeIdsRoot'](_0x21d846));else{for(let _0x49be6e=0x0;_0x49be6e<_0x21d846['offsetSize'];_0x49be6e++)_0x21ad8f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x951aa7=this['_revisionId'];for(let _0x3a27bb=_0x1db7f2;_0x3a27bb<_0x951aa7;_0x3a27bb++)this['_touched']['set'](_0x3a27bb,{'userId':_0x3c380a});_0x48e70e['_insertChild'](_0xe255a5['offset'],_0x21ad8f);}['_handleMoveOperation'](_0xd21d25){(_0xd21d25=this['_cloneOperation'](_0xd21d25,this['_idsRoots']))['_execute']();const _0x29be4a=null===_0xd21d25['_authorId']?null:_0xd21d25['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4dddcd=_0xd21d25['getMovedRangeStart'](),_0x1416cf=_0x4dddcd['parent'],_0x1969a5=_0x4dddcd['offset'];!function _0x234736(_0x225aae,_0x2e67d8,_0xabf640,_0x44f945){for(let _0x501c5d=_0xabf640;_0x501c5d<_0x44f945;_0x501c5d++){const _0xd3ea89=_0x2e67d8['getChild'](_0x501c5d);_0xd3ea89['is']('element','$text')?_0x225aae['set'](_0xd3ea89['getAttribute']('vid'),{'userId':_0x29be4a}):(_0x225aae['set'](_0xd3ea89['getAttribute']('vid_start'),{'userId':_0x29be4a}),_0x234736(_0x225aae,_0xd3ea89,0x0,_0xd3ea89['childCount']),_0x225aae['set'](_0xd3ea89['getAttribute']('vid_end'),{'userId':_0x29be4a}));}}(this['_touched'],_0x1416cf,_0x1969a5,_0x1969a5+_0xd21d25['howMany']);}['_handleMergeOperation'](_0x26b6d1){const _0x32dd26=null===(_0x26b6d1=this['_cloneOperation'](_0x26b6d1,this['_idsRoots']))['_authorId']?null:_0x26b6d1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28414b=_0x26b6d1['targetPosition']['parent'],_0x103a5b=_0x26b6d1['sourcePosition']['parent'],_0x285995=_0x28414b['getAttribute']('vid_end'),_0x3ca8f4=_0x103a5b['getAttribute']('vid_start');_0x28414b['_setAttribute']('vid_end',_0x103a5b['getAttribute']('vid_end')),_0x103a5b['_setAttribute']('vid_end',_0x285995),this['_touched']['set'](_0x3ca8f4,{'userId':_0x32dd26}),this['_touched']['set'](_0x285995,{'userId':_0x32dd26}),_0x26b6d1['_execute']();}['_handleSplitOperation'](_0x3365b9){const _0x980ca7=null===(_0x3365b9=this['_cloneOperation'](_0x3365b9,this['_idsRoots']))['_authorId']?null:_0x3365b9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23aab3=_0x3365b9['graveyardPosition'],_0x4b44d6=_0x3365b9['splitPosition']['parent'];_0x3365b9['_execute']();const _0xc488c7=_0x4b44d6['getAttribute']('vid_end'),_0x5836dc=_0x3365b9['insertionPosition']['nodeAfter'];if(_0x23aab3){const _0x582cad=_0x5836dc['getAttribute']('vid_end'),_0x28c7b7=_0x4b44d6['getAttribute']('vid_end');_0x4b44d6['_setAttribute']('vid_end',_0x582cad),_0x5836dc['_setAttribute']('vid_end',_0x28c7b7),this['_touched']['set'](_0x4b44d6['getAttribute']('vid_end'),{'userId':_0x980ca7}),this['_touched']['set'](_0x5836dc['getAttribute']('vid_start'),{'userId':_0x980ca7});}else{const _0x46e9c8=this['_revisionId']++,_0x9be882=this['_revisionId']++;_0x4b44d6['_setAttribute']('vid_end',_0x46e9c8),_0x5836dc['_setAttribute']('vid_start',_0x9be882),_0x5836dc['_setAttribute']('vid_end',_0xc488c7),this['_touched']['set'](_0x46e9c8,{'userId':_0x980ca7}),this['_touched']['set'](_0x9be882,{'userId':_0x980ca7});}}['_handleMarkerOperation'](_0x47b7fb){if(!_0x47b7fb['affectsData'])return;const _0x11a45d=(_0x47b7fb=this['_cloneOperation'](_0x47b7fb,this['_diffRoots']))['oldRange']?_0x47b7fb['oldRange']['root']:null,_0x1023e0=_0x47b7fb['newRange']?_0x47b7fb['newRange']['root']:null;_0x11a45d&&this['_markers']['delete'](_0x47b7fb['name']),_0x1023e0&&this['_markers']['set'](_0x47b7fb['name'],_0x47b7fb['newRange']['clone']());const _0x39d191=null===_0x47b7fb['_authorId']?null:_0x47b7fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c42c9=_0x47b7fb['name'];if(!this['_touchedMarkers']['has'](_0x3c42c9))return void this['_touchedMarkers']['set'](_0x3c42c9,{'range':_0x47b7fb['oldRange'],'userId':_0x39d191});const _0x1c28e9=this['_touchedMarkers']['get'](_0x3c42c9),_0xc983c1=_0x1c28e9['range'],_0x5001ec=_0x47b7fb['newRange'];null==_0xc983c1&&null==_0x5001ec||_0xc983c1&&_0x5001ec&&_0xc983c1['isEqual'](_0x5001ec)?this['_touchedMarkers']['delete'](_0x47b7fb['name']):_0x1c28e9['userId']=_0x39d191;}['_handleRootOperation'](_0x16ab0f,_0x41d8be){this['_diffRoots']['has'](_0x16ab0f['rootName'])?this['_diffRoots']['get'](_0x16ab0f['rootName'])['_isAttached']=_0x16ab0f['isAdd']:(this['_diffRoots']['set'](_0x16ab0f['rootName'],B(_0x16ab0f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x16ab0f['rootName'],{}),_0x41d8be&&this['_idsRoots']['set'](_0x16ab0f['rootName'],B(_0x16ab0f['rootName'],!0x0)));const _0xd89b7d=null===_0x16ab0f['_authorId']?null:_0x16ab0f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25faf9=this['_touchedRoots']['get'](_0x16ab0f['rootName']);_0x25faf9&&_0x25faf9['userId']===_0xd89b7d?this['_touchedRoots']['delete'](_0x16ab0f['rootName']):this['_touchedRoots']['set'](_0x16ab0f['rootName'],{'userId':_0xd89b7d,'isAttached':_0x16ab0f['isAdd']});}['_handleRootAttributeOperation'](_0x4ae48d){const _0x4abaf5=this['_diffRootsAttributes']['get'](_0x4ae48d['root']['rootName']);null===_0x4ae48d['newValue']?delete _0x4abaf5[_0x4ae48d['key']]:_0x4abaf5[_0x4ae48d['key']]=_0x4ae48d['newValue'];}}function F(_0x40929e){const _0x347287=B(_0x40929e['rootName'],_0x40929e['isAttached']());for(const _0x38f240 of _0x40929e['getChildren']()){const _0x28bcdd=_0x38f240['_clone'](!0x0);_0x347287['_appendChild'](_0x28bcdd);}return _0x347287;}function B(_0x2a6ad4,_0x5adeeb=!0x0){const _0x586599=new mt();return _0x586599['rootName']=_0x2a6ad4,_0x586599['_isAttached']=_0x5adeeb,_0x586599['isAttached']=()=>_0x586599['_isAttached'],_0x586599;}function J(_0x414d3e,_0x5b6ce1,_0x4e3778){const _0x14f53e='elementEnd'==_0x414d3e['type']?_0x4e3778['createPositionAt'](_0x414d3e['item'],'end'):_0x4e3778['createPositionBefore'](_0x414d3e['item']);return _0x4e3778['createPositionFromPath'](_0x5b6ce1,_0x14f53e['path'],_0x14f53e['stickiness']);}function q(_0x21b7ec,_0x3ee851,_0x68a8c1){const _0xe82762='elementStart'==_0x21b7ec['type']?_0x68a8c1['createPositionAt'](_0x21b7ec['item'],0x0):_0x68a8c1['createPositionAfter'](_0x21b7ec['item']);return _0x68a8c1['createPositionFromPath'](_0x3ee851,_0xe82762['path'],_0xe82762['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x37d2fd,_0x2cf3e5){super(_0x37d2fd),this['focusTracker']=new _0x311207(),this['keystrokes']=new _0x5842f5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2cf3e5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5b0039(this);}['render'](){super['render'](),_0x1c5efc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x359571=_0x483566=>_0x483566['stopPropagation']();this['keystrokes']['set']('arrowright',_0x359571),this['keystrokes']['set']('arrowleft',_0x359571),this['keystrokes']['set']('arrowup',_0x359571),this['keystrokes']['set']('arrowdown',_0x359571);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x16e6e8){this['revisionNameInputView']['fieldView']['element']['value']=_0x16e6e8['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x58f3a6){const _0x366b12=new _0x1cb1cf(this['locale'],_0x25179f),_0x1f432f=_0x366b12['fieldView'];_0x1f432f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x36e443=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x58f3a6&&(_0x36e443+='\x20('+R(this['locale'],'optional')+')'),(_0x366b12['label']=_0x36e443,_0x1f432f['on']('input',()=>{this['revisionNameInputValue']=_0x1f432f['element']['value']['trim']();}),_0x366b12);}}class u extends _0x4b9689{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xb49bf9=this['editor'],_0x535282=_0xb49bf9['plugins']['get']('RevisionTracker');_0xb49bf9['ui']['componentFactory']['add']('revisionHistory',_0x40e85a=>{const _0x1f1f8e=_0x517a39(_0x40e85a),_0x5e64f0=_0x1f1f8e['panelView']['children'],_0x255f12=new _0x5d991f(_0x40e85a),_0xc538e8=new _0xd8eda(_0x40e85a),_0xe0c72e=new te(_0x40e85a),_0x58bad6=new _0xd8eda(_0x40e85a),_0x51157e=new te(_0x40e85a);return _0x1f1f8e['bind']('isEnabled')['to'](_0x535282,'isReady',_0x535282,'isEnabled',_0xb49bf9,'isReadOnly',(_0x18a32f,_0x5e9575,_0x337515)=>_0x18a32f&&_0x5e9575&&!_0x337515),_0x1f1f8e['buttonView']['set']({'icon':_0x2cf5cf['history'],'label':R(_0x40e85a,'Revision\x20history'),'tooltip':!0x0}),_0xe0c72e['set']({'label':R(_0x40e85a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xe0c72e['bind']('isEnabled')['to'](_0x535282,'isReady',_0x535282,'isEnabled',_0xb49bf9,'isReadOnly',(_0x2cabd5,_0x177b75,_0x5c2f93)=>_0x2cabd5&&_0x177b75&&!_0x5c2f93),_0xe0c72e['on']('execute',()=>this['_showDialog']()),_0x51157e['set']({'label':R(_0x40e85a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x51157e['bind']('isEnabled')['to'](_0x535282,'isReady',_0xb49bf9,'isReadOnly',(_0x3c6720,_0x4c0dfe)=>_0x3c6720&&!_0x4c0dfe),_0x51157e['on']('execute',()=>{_0xb49bf9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1f1f8e['isOpen']=!0x1,_0xb49bf9['editing']['view']['focus']();}),_0xc538e8['children']['add'](_0xe0c72e),_0x58bad6['children']['add'](_0x51157e),_0x255f12['role']='menu',_0x255f12['items']['addMany']([_0xc538e8,_0x58bad6]),_0x5e64f0['add'](_0x255f12),_0x1f1f8e;}),_0xb49bf9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x44f018=this['editor'],_0x10a185=_0x44f018['locale'],_0x5c8bff=new _0x322982(_0x10a185),_0x335e2c=new _0x3203b8(_0x10a185);_0x5c8bff['buttonView']['set']({'icon':_0x2cf5cf['history'],'label':R(_0x10a185,'Revision\x20history')});const _0x557f1a=new _0x1e5e5c(_0x10a185,_0x5c8bff),_0xd97e34=new _0x3c48b1(_0x10a185);_0xd97e34['set']({'label':R(_0x10a185,'Save\x20current\x20revision')}),_0xd97e34['delegate']('execute')['to'](_0x5c8bff),_0xd97e34['on']('execute',()=>{this['_showDialog']();}),_0x557f1a['children']['add'](_0xd97e34),_0x335e2c['items']['add'](_0x557f1a);const _0x435106=new _0x1e5e5c(_0x10a185,_0x5c8bff),_0x2ee7e9=new _0x3c48b1(_0x10a185);return _0x2ee7e9['set']({'label':R(_0x10a185,'Open\x20revision\x20history')}),_0x2ee7e9['delegate']('execute')['to'](_0x5c8bff),_0x2ee7e9['on']('execute',()=>{_0x44f018['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x435106['children']['add'](_0x2ee7e9),_0x335e2c['items']['add'](_0x435106),_0x5c8bff['panelView']['children']['add'](_0x335e2c),_0x5c8bff;}['_showDialog'](){const _0x7ee956=this['editor'],_0x2ac7af=_0x7ee956['locale'],_0xde6ec8=_0x7ee956['plugins']['get']('Dialog'),_0x5c33ed=_0x7ee956['plugins']['get']('RevisionTracker');function _0x27bfaa(_0x2f839f){_0x7ee956['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2f839f['revisionName']?_0x2f839f['revisionNameInputView']['errorText']=R(_0x2ac7af,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x7ee956['plugins']['get'](l)['saveRevision']({'name':_0x2f839f['revisionName']}),_0xde6ec8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x27bfaa(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xde6ec8['show']({'id':'revisionSave','title':R(_0x2ac7af,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x7ee956['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xde6ec8['hide']()},{'label':R(_0x7ee956['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3b35be){_0x3b35be['bind']('isEnabled')['to'](_0x5c33ed,'isReady',_0x5c33ed,'isEnabled',_0x7ee956,'isReadOnly',(_0x169550,_0x3ad485,_0x400b41)=>_0x169550&&_0x3ad485&&!_0x400b41);},'onExecute':()=>_0x27bfaa(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5a6c61=this['editor'],_0x320946=_0x5a6c61['locale'];this['_saveRevisionFormView']=new hs(_0x320946,_0x5a6c61['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x1a6cbe,_0x21418b){super(_0x1a6cbe),this['_model']=_0x21418b,this['changeId']=_0x21418b['id'];const _0x3109f5=this['bindTemplate'],_0x1d6e6f=R(_0x1a6cbe,_0x21418b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x21418b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x21418b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3109f5['to']('type',_0x4c9090=>'ck-revision-change__'+_0x4c9090)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1d6e6f}]},{'text':'\x20'+_0x21418b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x330b2b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3ad44a){super(),this['id']=_0x3ad44a['id']||_0x1349e3(),this['author']=_0x3ad44a['author'],this['type']=_0x3ad44a['type'],this['data']=_0x3ad44a['data']||{},this['rootName']=_0x3ad44a['rootName'],this['set']('createdAt',_0x3ad44a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x7aea1f,_0x47700e){this['newRevisionId']=_0x7aea1f,this['oldRevisionId']=_0x47700e,this['changes']=new _0x556087();}['_setChanges'](_0x3d8734){for(const _0x19e106 of _0x3d8734)this['changes']['add'](_0x19e106);}}const Z={'c':_0xf14d70,'a':_0x5b082c,'e':_0x5c489b,'r':_0xa34ab6,'u':_0x7fbcc};class d extends _0x4b9689{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x326e20,_0xac49e1,j];}constructor(_0x4d745f){super(_0x4d745f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x31fda9,_0x20577c,_0x1c658f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x310c6e=>{for(const _0x1c4a0e of this['editor']['editing']['view']['document']['roots'])_0x1c658f?_0x310c6e['removeClass']('ck-editor__editable__overlay',_0x1c4a0e):_0x310c6e['addClass']('ck-editor__editable__overlay',_0x1c4a0e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5d66b4=>null!==_0x5d66b4),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1d3273,_0x3f23f1,_0x54cede)=>_0x1d3273&&_0x54cede?_0x3f23f1['changes']['getIndex'](_0x54cede):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52079f,_0x1d3c83)=>_0x52079f?_0x1d3c83['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xac49e1);}['init'](){const _0x21f823=this['editor'],_0x2acd97=new yt(_0x21f823,{'direction':'backward'}),_0x18340d=new yt(_0x21f823,{'direction':'forward'});(_0x21f823['commands']['add']('showPreviousChange',_0x2acd97),_0x21f823['commands']['add']('showNextChange',_0x18340d),_0x21f823['commands']['add']('restoreRevision',new _t(_0x21f823)),this['on']('change:numberOfChanges',()=>{_0x2acd97['refresh'](),_0x18340d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x21f823['enableReadOnlyMode']('revision-viewer'),_0x21f823['plugins']['has']('WidgetToolbarRepository'))&&_0x21f823['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x363dc9){await this['loadRevisionData'](_0x363dc9);const _0x178949={};for(const _0x2a4ecb in _0x363dc9['diffData']){if(_0x363dc9['diffData'][_0x2a4ecb]['attachChange']&&!_0x363dc9['diffData'][_0x2a4ecb]['attachChange']['isAttached'])continue;const _0x1cbba7=this['_removeRevisionMarkers'](JSON['parse'](_0x363dc9['diffData'][_0x2a4ecb]['insertions'])),_0x17f205=this['editor']['editing']['view']['document'],_0x23c9c4=new _0x3f403f(_0x17f205,_0x1cbba7['map'](_0x9d9f70=>this['_getViewObj'](_0x9d9f70)));this['editor']['data']['processor']['useFillerType']('marked'),_0x178949[_0x2a4ecb]=this['editor']['data']['processor']['toData'](_0x23c9c4),this['editor']['data']['processor']['useFillerType']('default');}return _0x178949;}async['getRevisionRootsAttributes'](_0x5d9619){await this['loadRevisionData'](_0x5d9619);const _0x9c9528={};for(const _0x18ea32 in _0x5d9619['diffData'])_0x5d9619['diffData'][_0x18ea32]['attachChange']&&!_0x5d9619['diffData'][_0x18ea32]['attachChange']['isAttached']||(_0x9c9528[_0x18ea32]=_0x5d9619['diffData'][_0x18ea32]['attributesAfter']||{});return _0x9c9528;}['_removeRevisionMarkers'](_0x2c3f82){return(_0x2c3f82=_0x2c3f82['filter'](_0x4ac147=>!_0x4ac147['name']||'revision-start'!==_0x4ac147['name']&&'revision-end'!==_0x4ac147['name']))['forEach'](_0x18ca50=>{'string'!=typeof _0x18ca50&&(_0x18ca50['children']=this['_removeRevisionMarkers'](_0x18ca50['children']),_0x18ca50['attributes']=_0x18ca50['attributes']['filter'](_0x1d4f20=>!_0x1d4f20[0x0]['startsWith']('data-revision-')));}),_0x2c3f82;}async['compare'](_0x1c69b8,_0x103ac9,_0x28281a=!0x1){if(!this['isEnabled'])return;const _0x2a1ecc=this['diff'],_0x4f07d1=this['repository'],_0x1fe68b='string'==typeof _0x1c69b8?_0x4f07d1['getRevision'](_0x1c69b8):_0x1c69b8,_0x582792='string'==typeof _0x103ac9?_0x4f07d1['getRevision'](_0x103ac9):_0x103ac9,_0x101f2d=_0x1fe68b['id'],_0x3177c3=_0x582792?_0x582792['id']:null;if(!_0x28281a&&this['diff']&&this['diff']['newRevisionId']===_0x101f2d&&this['diff']['oldRevisionId']===_0x3177c3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x101f2d,_0x3177c3);const _0x4e02f8=this['_getRevisionsRange'](_0x1fe68b,_0x582792,!0x0)['map'](_0xd18c93=>this['loadRevisionData'](_0xd18c93));return _0x4e02f8['push'](new Promise(_0x5ea7db=>{setTimeout(_0x5ea7db,0x14);})),Promise['all'](_0x4e02f8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x75affd=this['_getDiff'](_0x101f2d,_0x3177c3);for(const _0x231fd5 of _0x75affd['changes'])this['_changeIdToChange']['set'](_0x231fd5['id'],_0x231fd5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x31bb84=>{for(const _0x36b563 of this['editor']['model']['document']['getRootNames']())_0x31bb84['detachRoot'](_0x36b563);for(const _0x40f638 of Object['keys'](_0x75affd['model'])){const _0x7f4e6e=_0x31bb84['addRoot'](_0x40f638);for(const _0x181bbb of Object['keys'](_0x75affd['attributes'][_0x40f638]))_0x31bb84['setAttribute'](_0x181bbb,_0x75affd['attributes'][_0x40f638][_0x181bbb],_0x7f4e6e);_0x31bb84['insert'](_0x75affd['model'][_0x40f638],_0x7f4e6e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x75affd['changes'])),this['isReady']=!0x0;})['catch'](_0x998d2b=>{console['error'](_0x998d2b),this['_cleanUp'](),_0x2a1ecc&&(this['diff']=_0x2a1ecc),this['isReady']=!0x0;});}['addRevisionData'](_0x29487d,_0x4d5321){const _0x421724=this['repository']['createRevision'](_0x29487d);return _0x421724['on']('_update',(_0x2ecc6d,_0xce997f,_0x3c0890)=>_0x4d5321(_0xce997f,_0x3c0890,_0x421724)),this['repository']['addRevision'](_0x421724),_0x421724;}['loadRevisionData'](_0x393703){if(!_0x393703||_0x393703['diffData'])return Promise['resolve']();{const _0x37b561=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x37b561,'revisionId':_0x393703['id']})['then'](_0x805f39=>{_0x393703['_update']({'diffData':_0x805f39['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x35babd=>{for(const _0x2c3262 of this['editor']['model']['document']['getRootNames']())_0x35babd['detachRoot'](_0x2c3262);});}['_sortAndFilterDiffChanges'](_0x157208){const _0x45b040=[],_0x2910ad=new Map();for(const _0x5a082f of this['editor']['model']['document']['getRootNames']()){const _0x976a3e=this['editor']['editing']['view']['getDomRoot'](_0x5a082f);if(!_0x976a3e)continue;const _0x1047ef=_0x976a3e['getClientRects']()['item'](0x0);_0x1047ef&&(_0x45b040['push'](_0x5a082f),_0x2910ad['set'](_0x5a082f,_0x1047ef));}return _0x45b040['sort']((_0x5cf023,_0x211fb8)=>{const _0xc4f180=_0x2910ad['get'](_0x5cf023),_0x5a37ed=_0x2910ad['get'](_0x211fb8);return _0xc4f180['y']-_0x5a37ed['y']||_0xc4f180['x']-_0x5a37ed['x'];}),(_0x157208=_0x157208['filter'](_0x3e56d0=>_0x45b040['includes'](_0x3e56d0['rootName'])))['sort']((_0x2543e7,_0x1a3b34)=>_0x45b040['indexOf'](_0x2543e7['rootName'])-_0x45b040['indexOf'](_0x1a3b34['rootName'])),_0x157208;}['_makeTape'](_0x1a2e9b){const _0x4455bb=Array['from'](_0x1a2e9b['markers'])['filter'](([_0x2d7b0d,_0x4dab62])=>_0x2d7b0d['startsWith']('revision:')&&!_0x4dab62['isCollapsed']),_0x4c84fe=Array['from'](this['editor']['model']['createRangeIn'](_0x1a2e9b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4455bb['length'])for(const _0x30d9d9 of _0x4c84fe){const [_0x58dc3c,_0x4acde4]=_0x4455bb[0x0],[,_0x33ecfd,_0x70c94f]=_0x58dc3c['split'](':');if(_0x4acde4['end']['isEqual'](_0x30d9d9['nextPosition'])&&_0x4455bb['shift'](),(_0x30d9d9['previousPosition']['isEqual'](_0x4acde4['start'])||_0x30d9d9['previousPosition']['isAfter'](_0x4acde4['start']))&&('insertion'==_0x33ecfd?_0x30d9d9['isAdded']={'userId':_0x70c94f}:'deletion'==_0x33ecfd&&(_0x30d9d9['isRemoved']={'userId':_0x70c94f})),0x0==_0x4455bb['length'])break;}return _0x4c84fe;}['_refreshStartEndIndex'](_0x1c94fa){const _0x1eeccc=new Map();for(let _0x5e8cef=0x0;_0x5e8cef<_0x1c94fa['length'];_0x5e8cef++)'text'===_0x1c94fa[_0x5e8cef]['type']?(_0x1c94fa[_0x5e8cef]['item']['startIndex']=_0x5e8cef,_0x1c94fa[_0x5e8cef]['item']['endIndex']=_0x5e8cef):('elementStart'===_0x1c94fa[_0x5e8cef]['type']?_0x1c94fa[_0x5e8cef]['item']['startIndex']=_0x5e8cef:'elementEnd'===_0x1c94fa[_0x5e8cef]['type']&&(_0x1c94fa[_0x5e8cef]['item']['endIndex']=_0x5e8cef),_0x1eeccc['set'](_0x1c94fa[_0x5e8cef]['id'],_0x5e8cef));for(const _0x255eea of _0x1eeccc['values']())'elementStart'===_0x1c94fa[_0x255eea]['type']?_0x1c94fa[_0x255eea]['item']['endIndex']=_0x1eeccc['get'](_0x1c94fa[_0x255eea]['pairId']):'elementEnd'===_0x1c94fa[_0x255eea]['type']&&(_0x1c94fa[_0x255eea]['item']['startIndex']=_0x1eeccc['get'](_0x1c94fa[_0x255eea]['pairId']));}['_processTape'](_0x4492ab){for(let _0x1e1450=0x0;_0x1e1450<_0x4492ab['length'];_0x1e1450++){if('elementStart'===_0x4492ab[_0x1e1450]['type'])_0x4492ab[_0x1e1450]['item']['startIndex']=_0x1e1450;else{if('elementEnd'===_0x4492ab[_0x1e1450]['type']){_0x4492ab[_0x1e1450]['item']['endIndex']=_0x1e1450;const _0x12e7c1=_0x4492ab[_0x1e1450]['item']['startIndex'];_0x4492ab[_0x12e7c1]['pairId']=_0x4492ab[_0x1e1450]['id'],_0x4492ab[_0x1e1450]['pairId']=_0x4492ab[_0x12e7c1]['id'];}else _0x4492ab[_0x1e1450]['item']['startIndex']=_0x1e1450,_0x4492ab[_0x1e1450]['item']['endIndex']=_0x1e1450,_0x4492ab[_0x1e1450]['pairId']=null;}_0x4492ab[_0x1e1450]['markersStart']||(_0x4492ab[_0x1e1450]['markersStart']=[],_0x4492ab[_0x1e1450]['markersEnd']=[]);}}['_markInsertions'](_0x249a3c,_0x1cbb26){const _0x559f32=_0x249a3c['filter'](_0x3de234=>!_0x3de234['isAdded']);for(let _0x3d9606=0x0;_0x3d9606<_0x1cbb26['length'];_0x3d9606++)_0x1cbb26[_0x3d9606]['isAdded']&&(_0x559f32[_0x3d9606]['isAdded']=_0x1cbb26[_0x3d9606]['isAdded']);}['_makeModelFromViewString'](_0x186468){const _0x422126=JSON['parse'](_0x186468),_0x2a73c5=this['editor']['editing']['view']['document'],_0x17aedb=new _0x3f403f(_0x2a73c5,_0x422126['map'](_0x2fc240=>this['_getViewObj'](_0x2fc240)));return this['editor']['data']['toModel'](_0x17aedb);}['_getViewObj'](_0x482182){const _0x2ef783=this['editor']['editing']['view']['document'];if('string'==typeof _0x482182)return new _0x8dcdf9(_0x2ef783,_0x482182);{const _0x33621e=_0x482182['children']['map'](_0x273046=>this['_getViewObj'](_0x273046));return new(Z[_0x482182['type']]||_0x503e95)(_0x2ef783,_0x482182['name'],_0x482182['attributes'],_0x33621e);}}['_getDiff'](_0x2dd5a2,_0x5b889e=null){const _0x2ff699=this['repository']['getRevision'](_0x2dd5a2),_0x1d150=_0x5b889e?this['repository']['getRevision'](_0x5b889e):null,_0x3af9c8=this['_getRevisionsRange'](_0x2ff699,_0x1d150),_0x22fe2c=_0x3af9c8[_0x3af9c8['length']-0x1],_0x3cd817=new Map(),_0x23e853={'model':{},'attributes':{},'changes':[]},_0x13a19f=new Set(),_0x1a40b0=new Map();for(let _0x46d200=_0x3af9c8['length']-0x1;_0x46d200>=0x0;_0x46d200--){const _0x343598=_0x3af9c8[_0x46d200];for(const _0x4ead21 of Object['keys'](_0x343598['diffData']))if(_0x343598['diffData'][_0x4ead21]['attachChange']){const _0x2350b9=_0x343598['diffData'][_0x4ead21]['attachChange'];_0x2350b9['isAttached']?(_0x13a19f['add'](_0x4ead21),_0x1a40b0['has'](_0x4ead21)&&_0x1a40b0['get'](_0x4ead21)['userId']==_0x2350b9['userId']?_0x1a40b0['delete'](_0x4ead21):_0x1a40b0['set'](_0x4ead21,_0x2350b9)):_0x1a40b0['has'](_0x4ead21)?(_0x13a19f['delete'](_0x4ead21),_0x1a40b0['delete'](_0x4ead21)):(_0x13a19f['add'](_0x4ead21),_0x1a40b0['set'](_0x4ead21,_0x2350b9));}else _0x13a19f['add'](_0x4ead21);}for(const _0x5ed02c of _0x13a19f){const _0x5c7e47=_0x1a40b0['has'](_0x5ed02c)&&!_0x1a40b0['get'](_0x5ed02c)['isAttached'];let _0x1232b6=_0x5c7e47?_0x3af9c8['length']-0x1:0x0;const _0x4739ee=_0x5c7e47?-0x1:0x1;for(;_0x3af9c8[_0x1232b6];){const _0x181766=_0x3af9c8[_0x1232b6];if(_0x181766['diffData'][_0x5ed02c]){const _0x26ff2d=_0x5c7e47?_0x181766['diffData'][_0x5ed02c]['attributesBefore']:_0x181766['diffData'][_0x5ed02c]['attributesAfter'];_0x23e853['attributes'][_0x5ed02c]=_0x26ff2d?_0x70bb23(_0x26ff2d):{};break;}_0x1232b6+=_0x4739ee;}}for(const _0x42177e of _0x3af9c8){_0x42177e['model']={};for(const _0x541e4b of _0x42177e['authors'])_0x3cd817['set'](_0x541e4b['id'],_0x541e4b);for(const _0x5c9978 of _0x13a19f){const _0x2c177c=_0x42177e['diffData'][_0x5c9978]?_0x42177e['diffData'][_0x5c9978]['insertions']:'[]',_0x5791ca=_0x42177e['diffData'][_0x5c9978]?_0x42177e['diffData'][_0x5c9978]['deletions']:'[]';_0x42177e['model'][_0x5c9978]={'insertions':this['_makeModelFromViewString'](_0x2c177c),'deletions':this['_makeModelFromViewString'](_0x5791ca)};}}for(const _0x222039 of _0x13a19f){let _0x1c82b0=null,_0x43c258=0x0;const _0x1ab6a4=new Map(Array['from'](_0x2ff699['model'][_0x222039]['insertions']['markers'])['filter'](([_0x5609c7])=>!_0x5609c7['startsWith']('revision:')));let _0xa0358d=0x0;for(const _0x2e9165 of _0x3af9c8){const _0x2bb6d2=this['_makeTape'](_0x2e9165['model'][_0x222039]['insertions']);_0x2e9165==_0x2ff699?(_0x1c82b0=_0x2bb6d2,_0x43c258=_0x1c82b0['length'],_0x1c82b0['forEach'](_0x44dd2d=>{_0x44dd2d['id']=_0xa0358d++;}),this['_processTape'](_0x1c82b0)):this['_markInsertions'](_0x1c82b0,_0x2bb6d2);const _0x15188e=_0x1c82b0['filter'](_0x22926b=>!_0x22926b['isAdded'])['map'](_0x39f75f=>_0x39f75f['id']);let _0x21c91b=0x0;const _0x4ed7db=this['_makeTape'](_0x2e9165['model'][_0x222039]['deletions']);_0x4ed7db['forEach'](_0x4c15f7=>{_0x4c15f7['isRemoved']?_0x4c15f7['id']=_0x43c258++:_0x4c15f7['id']=_0x15188e[_0x21c91b++];}),this['_processTape'](_0x4ed7db),this['_setDistance'](_0x1c82b0,'isAdded'),this['_setDistance'](_0x4ed7db,'isRemoved'),_0x2e9165==_0x2ff699&&this['_markMarkers'](_0x1c82b0,_0x1ab6a4),_0x1c82b0=this['_joinTapes'](_0x1c82b0,_0x4ed7db),this['_refreshStartEndIndex'](_0x1c82b0),this['_setDistance'](_0x1c82b0,'isRemoved');}_0x1c82b0=_0x1c82b0['filter'](_0x35dbab=>!(_0x35dbab['isAdded']&&_0x35dbab['isRemoved']));const _0x1349e0=new Map(_0x22fe2c['model'][_0x222039]['deletions']['markers']),_0x475b5c=new Set(_0x1ab6a4['keys']());for(const _0x126cc1 of _0x1349e0['keys']())_0x475b5c['delete'](_0x126cc1);this['_markSuggestions'](_0x1c82b0,_0x475b5c),this['_fixObsoleteTags'](_0x1c82b0),_0x1c82b0=this['_removeMissingPairs'](_0x1c82b0),_0x1c82b0=this['_markMismatchedRemovedTags'](_0x1c82b0),_0x1c82b0=this['_removeUnsupportedChanges'](_0x1c82b0);const {root:_0x3b814c,changes:_0xcdbeeb}=this['_makeModelFromTape'](_0x1c82b0,_0x3cd817,_0x222039);_0x23e853['model'][_0x222039]=_0x3b814c;const _0x21b65f=_0x1a40b0['get'](_0x222039);if(_0x21b65f){const _0x3e247d=_0x3cd817['get'](_0x21b65f['userId']),_0x552366=new r({'author':_0x3e247d,'type':_0x21b65f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x222039});_0xcdbeeb['unshift'](_0x552366),_0x23e853['attributes'][_0x222039]['revisionHistoryAttachChange']=_0x552366['id'];}_0x23e853['changes']=_0x23e853['changes']['concat'](_0xcdbeeb);}return _0x23e853;}['_markMarkers'](_0x195dd4,_0x58af77){for(let _0x49d6b1=0x0;_0x49d6b1<_0x195dd4['length'];_0x49d6b1++)for(const [_0x383de2,_0x4fca15]of _0x58af77)_0x4fca15['start']['isEqual'](_0x195dd4[_0x49d6b1]['previousPosition'])&&_0x195dd4[_0x49d6b1]['markersStart']['push'](_0x383de2),_0x4fca15['end']['isEqual'](_0x195dd4[_0x49d6b1]['nextPosition'])&&_0x195dd4[_0x49d6b1]['markersEnd']['push'](_0x383de2);}['_joinTapes'](_0x4b7de3,_0x32dd36){let _0x5cf7e2=[],_0x45c4b8=0x0,_0x191f0f=0x0;for(;_0x45c4b8<_0x4b7de3['length']||_0x191f0f<_0x32dd36['length'];){const _0x2cd658=_0x4b7de3[_0x45c4b8]||{},_0x6198f9=_0x32dd36[_0x191f0f]||{};if(_0x2cd658['id']==_0x6198f9['id'])_0x45c4b8++,_0x191f0f++,_0x5cf7e2['push'](_0x2cd658);else{if(_0x6198f9['isRemoved']&&_0x2cd658['isAdded']){const {commonTape:_0x24dc64,iEnd:_0x1926fa,jEnd:_0x232e1f}=this['_threeWayMerge'](_0x4b7de3,_0x45c4b8,_0x32dd36,_0x191f0f);_0x5cf7e2=_0x5cf7e2['concat'](_0x24dc64),_0x45c4b8=_0x1926fa,_0x191f0f=_0x232e1f;}else _0x6198f9['isRemoved']?(_0x191f0f++,_0x5cf7e2['push'](_0x6198f9)):(_0x45c4b8++,_0x5cf7e2['push'](_0x2cd658));}}return _0x5cf7e2;}['_markSuggestions'](_0x20264a,_0x30dc9d){const _0x121254=[];for(let _0x41343d=0x0;_0x41343d<_0x20264a['length'];_0x41343d++){for(let _0x463eb8=0x0;_0x463eb8<_0x20264a[_0x41343d]['markersStart']['length'];_0x463eb8++){const _0x461eed=_0x20264a[_0x41343d]['markersStart'][_0x463eb8];if(!_0x30dc9d['has'](_0x461eed))continue;const {group:_0x69516e,type:_0x1135df,authorId:_0x1d5584}=_0x169558(_0x461eed);'revision-suggestion'!=_0x69516e||'insertion'!=_0x1135df&&'deletion'!=_0x1135df||(_0x121254['unshift']({'type':_0x1135df,'name':_0x461eed,'userId':_0x1d5584}),_0x20264a[_0x41343d]['markersStart']['splice'](_0x463eb8,0x1),_0x463eb8--);}_0x4925e1(_0x20264a[_0x41343d]);for(let _0x51fd5c=0x0;_0x51fd5c<_0x20264a[_0x41343d]['markersEnd']['length'];_0x51fd5c++){const _0x38433d=_0x20264a[_0x41343d]['markersEnd'][_0x51fd5c];if(!_0x30dc9d['has'](_0x38433d))continue;const {group:_0x28a33b,type:_0x324de3}=_0x169558(_0x38433d);if('revision-suggestion'!=_0x28a33b||'insertion'!=_0x324de3&&'deletion'!=_0x324de3)continue;_0x20264a[_0x41343d]['markersEnd']['splice'](_0x51fd5c,0x1),_0x51fd5c--;const _0x5ada17=_0x121254['findIndex'](_0x126bd8=>_0x126bd8['name']==_0x38433d);_0x5ada17>-0x1&&_0x121254['splice'](_0x5ada17,0x1);}}function _0x169558(_0x5cb7e4){const _0x43213a=_0x5cb7e4['split'](':');return{'group':_0x43213a[0x0],'type':_0x43213a[0x1],'subType':_0x43213a['length']>=0x5?_0x43213a[0x2]:null,'id':_0x43213a['length']<0x5?_0x43213a[0x2]:_0x43213a[0x3],'authorId':_0x43213a['length']<0x5?_0x43213a[0x3]:_0x43213a[0x4],'markerCount':0x6==_0x43213a['length']?_0x43213a[0x5]:null};}function _0x4925e1(_0x109299){for(let _0x5ea09a=0x0;_0x5ea09a<_0x121254['length'];_0x5ea09a++){if(_0x109299['isAdded']&&'insertion'==_0x121254[_0x5ea09a]['type'])return _0x109299['isAddSuggestion']=_0x121254[_0x5ea09a],void delete _0x109299['isAdded'];if(!_0x109299['isAdded']&&!_0x109299['isRemoved']&&'deletion'==_0x121254[_0x5ea09a]['type'])return void(_0x109299['isRemoveSuggestion']=_0x121254[_0x5ea09a]);}}}['_setDistance'](_0x19baa8,_0x28a4e4){let _0x5c2c03=0x0,_0x4698ef=!0x1;const _0x1b32a3=new Map();for(const _0x4c768f of _0x19baa8)_0x4c768f[_0x28a4e4]?_0x4698ef&&(_0x5c2c03++,_0x4698ef=!0x1):(_0x5c2c03++,_0x4698ef=!0x0),_0x1b32a3['set'](_0x4c768f['id'],_0x5c2c03);for(let _0x4fa092=0x0;_0x4fa092<_0x19baa8['length'];_0x4fa092++){if('isRemoved'==_0x28a4e4&&_0x19baa8[_0x4fa092]['isAdded']||'isAdded'==_0x28a4e4&&_0x19baa8[_0x4fa092]['isRemoved'])continue;if('text'==_0x19baa8[_0x4fa092]['type']){_0x19baa8[_0x4fa092]['distance']=0x0;continue;}const _0x440043=_0x1b32a3['get'](_0x19baa8[_0x4fa092]['pairId']),_0x1325cd=_0x1b32a3['get'](_0x19baa8[_0x4fa092]['id']);_0x19baa8[_0x4fa092]['distance']=_0x440043-_0x1325cd;}}['_getRevisionsRange'](_0x41cea0,_0x460a46,_0x1730e5=!0x1){const _0x2f38ed=[];let _0xe3057=this['repository']['getIndex'](_0x41cea0),_0x13b686=this['repository']['getIndex'](_0x460a46);for(-0x1==_0x13b686&&(_0x13b686=this['repository']['_revisions']['length'],_0x1730e5=!0x1);_0xe3057<_0x13b686;)_0x2f38ed['push'](this['repository']['getRevision'](_0xe3057)),_0xe3057++;return _0x1730e5&&_0x2f38ed['push'](this['repository']['getRevision'](_0xe3057)),_0x2f38ed;}['_threeWayMerge'](_0x2a9035,_0x27c3c2,_0x54cdc0,_0x17756c){const _0x44775a=this['editor']['model']['schema'];let _0x29d36a=_0x27c3c2;for(;_0x2a9035[_0x29d36a]&&_0x2a9035[_0x29d36a]['isAdded'];)_0x29d36a++;let _0x45007f=_0x17756c;for(;_0x54cdc0[_0x45007f]&&_0x54cdc0[_0x45007f]['isRemoved'];)_0x45007f++;_0x518403(_0x2a9035,_0x27c3c2,_0x29d36a),_0x518403(_0x54cdc0,_0x17756c,_0x45007f);const _0x26c1ec=_0x54cdc0['slice'](_0x17756c,_0x45007f)['concat'](_0x2a9035['slice'](_0x27c3c2,_0x29d36a));return _0x26c1ec['sort']((_0x2e80c6,_0x115da6)=>_0x2e80c6['side']!=_0x115da6['side']?_0x2e80c6['side']-_0x115da6['side']:_0x2e80c6['level']!=_0x115da6['level']?_0x2e80c6['level']-_0x115da6['level']:_0x2e80c6['distance']!=_0x115da6['distance']?_0x115da6['distance']-_0x2e80c6['distance']:!!_0x2e80c6['isAdded']!=!!_0x115da6['isAdded']?-0x1==_0x2e80c6['side']||0x0==_0x2e80c6['side']?_0x2e80c6['isAdded']?-0x1:0x1:_0x2e80c6['isAdded']?0x1:-0x1:_0x2e80c6['index']-_0x115da6['index']),{'commonTape':_0x26c1ec,'iEnd':_0x29d36a,'jEnd':_0x45007f};function _0x518403(_0xebcf24,_0x51cfca,_0xb4d00e){let _0x2e9797=-0x1,_0x162c2a=Number['POSITIVE_INFINITY'],_0x4cceeb=!0x0;for(let _0x1b045b=_0x51cfca;_0x1b045b<_0xb4d00e;_0x1b045b++)if(_0x44775a['isInline'](_0xebcf24[_0x1b045b]['item'])||(_0x4cceeb=!0x1),_0xebcf24[_0x1b045b]['item']['startIndex']<_0x51cfca&&(_0x2e9797=_0x1b045b),_0xebcf24[_0x1b045b]['item']['endIndex']>=_0xb4d00e){_0x162c2a=_0x1b045b;break;}_0x4cceeb&&(_0x2e9797=_0xb4d00e-0x1);for(let _0x375382=_0x51cfca;_0x375382<_0xb4d00e;_0x375382++)_0xebcf24[_0x375382]['side']=_0x375382<=_0x2e9797?-0x1:_0x375382<_0x162c2a?0x0:0x1,_0xebcf24[_0x375382]['index']=_0x375382;let _0x369f37=0x0;for(let _0x1ec6db=_0x51cfca;_0x1ec6db<=_0x2e9797;_0x1ec6db++)0x0==_0xebcf24[_0x1ec6db]['distance']?_0xebcf24[_0x1ec6db]['level']=_0x369f37:(_0x369f37++,_0xebcf24[_0x1ec6db]['level']=_0x369f37,_0x369f37++);for(let _0x5935d1=_0x51cfca;_0x5935d1<_0xb4d00e;_0x5935d1++)0x0==_0xebcf24[_0x5935d1]['side']&&(_0xebcf24[_0x5935d1]['level']=_0x369f37);_0x369f37=0x0;for(let _0x28c73d=_0xb4d00e-0x1;_0x28c73d>=_0x162c2a;_0x28c73d--)0x0==_0xebcf24[_0x28c73d]['distance']?_0xebcf24[_0x28c73d]['level']=_0x369f37:(_0x369f37--,_0xebcf24[_0x28c73d]['level']=_0x369f37,_0x369f37--);}}['_fixObsoleteTags'](_0x2848a5){const _0x7f5be4=new Map(),_0x5c4d7a=this['editor']['model']['schema'];for(let _0x1260ac=0x1;_0x1260ac<_0x2848a5['length'];_0x1260ac++){let _0x59d59f,_0xaa3f0f,_0x470ddb;const _0x3b6875=_0x2848a5[_0x1260ac],_0xe9332e=_0x2848a5[_0x1260ac-0x1];if('text'==_0x3b6875['type'])continue;if(_0x3b6875['type']!=_0xe9332e['type'])continue;if(!_0x5c4d7a['isBlock'](_0xe9332e['item'])||_0x5c4d7a['isLimit'](_0xe9332e['item']))continue;if(!_0x5c4d7a['isBlock'](_0x3b6875['item'])||_0x5c4d7a['isLimit'](_0x3b6875['item']))continue;if((_0x2848a5[_0x1260ac]['isAdded']||_0x2848a5[_0x1260ac]['isAddSuggestion'])&&_0x2848a5[_0x1260ac-0x1]['isRemoved'])_0x59d59f=_0x2848a5[_0x1260ac],_0xaa3f0f=_0x2848a5[_0x1260ac-0x1],_0x470ddb=_0x1260ac-0x1;else{if(!_0x2848a5[_0x1260ac]['isRemoved']||!_0x2848a5[_0x1260ac-0x1]['isAdded']&&!_0x2848a5[_0x1260ac-0x1]['isAddSuggestion'])continue;_0x59d59f=_0x2848a5[_0x1260ac-0x1],_0xaa3f0f=_0x2848a5[_0x1260ac],_0x470ddb=_0x1260ac;}const _0x3f2a64=_0x59d59f['level']==_0xaa3f0f['level'],_0x12b5cd=Math['abs'](_0x59d59f['level'])<Math['abs'](_0xaa3f0f['level'])&&0x0==_0xaa3f0f['distance'];(_0x3f2a64||_0x12b5cd)&&(_0x7f5be4['set'](_0xaa3f0f['id'],_0x59d59f['id']),_0x2848a5['splice'](_0x470ddb,0x1),_0x1260ac--,_0x59d59f['isAdded']=!0x1);}for(let _0x57a7a0=0x0;_0x57a7a0<_0x2848a5['length'];_0x57a7a0++)_0x7f5be4['has'](_0x2848a5[_0x57a7a0]['pairId'])&&(_0x2848a5[_0x57a7a0]['pairId']=_0x7f5be4['get'](_0x2848a5[_0x57a7a0]['pairId']));}['_removeMissingPairs'](_0x60364a){const _0x233e34=new Set(_0x60364a['map'](_0x4f9525=>_0x4f9525['id']));for(let _0x41e90e=0x0;_0x41e90e<_0x60364a['length'];_0x41e90e++)_0x233e34['has'](_0x60364a[_0x41e90e]['pairId'])||0x0==_0x60364a[_0x41e90e]['distance']||(_0x60364a[_0x41e90e]['isIncorrect']=!0x0);return _0x60364a['filter'](_0x900d36=>!_0x900d36['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4e9d83){const _0x12bbf5=new Set();for(let _0x2c76b3=0x0;_0x2c76b3<_0x4e9d83['length'];_0x2c76b3++){if(_0x12bbf5['has'](_0x4e9d83[_0x2c76b3]['id'])&&_0x4e9d83[_0x2c76b3]['isRemoved']&&(_0x4e9d83[_0x2c76b3]['isIncorrect']=!0x0),_0x4e9d83[_0x2c76b3]['isIncorrect'])continue;if(0x0==_0x4e9d83[_0x2c76b3]['distance'])continue;if('elementStart'!=_0x4e9d83[_0x2c76b3]['type'])continue;if(null==_0x4e9d83[_0x2c76b3]['pairId'])continue;let _0x4ab043=_0x2c76b3+0x1,_0xa06400=0x0;for(;_0x4e9d83[_0x4ab043]['id']!=_0x4e9d83[_0x2c76b3]['pairId'];)'elementStart'==_0x4e9d83[_0x4ab043]['type']?_0xa06400++:'elementEnd'==_0x4e9d83[_0x4ab043]['type']&&_0xa06400--,_0x4ab043++;if(0x0!=_0xa06400){if(_0x4e9d83[_0x2c76b3]['isRemoved'])_0x4e9d83[_0x2c76b3]['isIncorrect']=!0x0;else{for(;_0x4ab043!=_0x2c76b3;)_0x4e9d83[_0x4ab043]['isRemoved']&&0x0!=_0x4e9d83[_0x4ab043]['distance']&&(_0x4e9d83[_0x4ab043]['isIncorrect']=!0x0,_0x12bbf5['add'](_0x4e9d83[_0x4ab043]['pairId'])),_0x4ab043--;}}}return _0x4e9d83['filter'](_0x198aad=>!_0x198aad['isIncorrect']);}['_removeUnsupportedChanges'](_0x288504){const _0x55d5bf=this['editor']['model']['schema'];for(let _0x3bf84c=0x0;_0x3bf84c<_0x288504['length'];_0x3bf84c++){if(!(_0x288504[_0x3bf84c]['isAdded']||_0x288504[_0x3bf84c]['isAddSuggestion']||_0x288504[_0x3bf84c]['isRemoved']||_0x288504[_0x3bf84c]['isRemoveSuggestion']))continue;if(0x0==_0x288504[_0x3bf84c]['distance'])continue;const _0x49e10d=_0x288504[_0x3bf84c]['item'];_0x55d5bf['isBlock'](_0x49e10d)||_0x55d5bf['isLimit'](_0x49e10d)||(_0x288504[_0x3bf84c]['isAdded']&&delete _0x288504[_0x3bf84c]['isAdded'],_0x288504[_0x3bf84c]['isAddSuggestion']&&delete _0x288504[_0x3bf84c]['isAddSuggestion'],_0x288504[_0x3bf84c]['isRemoveSuggestion']&&delete _0x288504[_0x3bf84c]['isRemoveSuggestion'],_0x288504[_0x3bf84c]['isRemoved']&&(_0x288504[_0x3bf84c]['isIncorrect']=!0x0));}return _0x288504['filter'](_0xb2203e=>!_0xb2203e['isIncorrect']);}['_makeModelFromTape'](_0x55a322,_0x16b18a,_0x38d9ab){const _0x46c588=new mt(),_0x5c4514=[],_0x5689ca=new Map(),_0x2a1713=this['editor']['model'],_0x23a9d7=_0x2a1713['schema'],_0x4bcfc2=[_0x46c588],_0x4fe9f8={},_0x5aa55f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b41ba=null;const _0x1aeaac=[0x0];for(let _0x4efddb=0x0;_0x4efddb<_0x55a322['length'];_0x4efddb++)if('elementStart'===_0x55a322[_0x4efddb]['type']){_0x55a322[_0x4efddb]['previousPosition']=_0x2a1713['createPositionFromPath'](_0x46c588,_0x1aeaac);const _0x44358f=new ft(_0x55a322[_0x4efddb]['item']['name'],_0x55a322[_0x4efddb]['item']['getAttributes']());_0x4bcfc2[0x0]['_appendChild'](_0x44358f),_0x1aeaac['push'](0x0),_0x4bcfc2['unshift'](_0x44358f),_0x55a322[_0x4efddb]['nextPosition']=_0x2a1713['createPositionFromPath'](_0x46c588,_0x1aeaac);}else'elementEnd'===_0x55a322[_0x4efddb]['type']?(_0x4bcfc2['shift'](),_0x55a322[_0x4efddb]['previousPosition']=_0x2a1713['createPositionFromPath'](_0x46c588,_0x1aeaac),_0x1aeaac['pop'](),_0x1aeaac[_0x1aeaac['length']-0x1]++,_0x55a322[_0x4efddb]['nextPosition']=_0x2a1713['createPositionFromPath'](_0x46c588,_0x1aeaac)):(_0x55a322[_0x4efddb]['previousPosition']=_0x2a1713['createPositionFromPath'](_0x46c588,_0x1aeaac),_0x3b41ba?_0x3b41ba['_data']+=_0x55a322[_0x4efddb]['item']['data']:_0x3b41ba=new wt(_0x55a322[_0x4efddb]['item']['data'],_0x55a322[_0x4efddb]['item']['getAttributes']()),_0x55a322[_0x4efddb+0x1]&&'text'===_0x55a322[_0x4efddb+0x1]['type']&&_0x238602(_0x3b41ba,_0x55a322[_0x4efddb+0x1]['item'])||(_0x4bcfc2[0x0]['_appendChild'](_0x3b41ba),_0x3b41ba=null),_0x1aeaac[_0x1aeaac['length']-0x1]+=_0x55a322[_0x4efddb]['item']['offsetSize'],_0x55a322[_0x4efddb]['nextPosition']=_0x2a1713['createPositionFromPath'](_0x46c588,_0x1aeaac));for(let _0x40d7c2=0x0;_0x40d7c2<_0x55a322['length'];_0x40d7c2++){const _0x46ce62=_0x55a322[_0x40d7c2]['previousPosition'],_0x280035=_0x55a322[_0x40d7c2]['nextPosition'];for(const _0x49082d of _0x55a322[_0x40d7c2]['markersStart'])_0x5689ca['set'](_0x49082d,{'start':_0x46ce62,'end':null});_0x5148b3('isRemoveSuggestion',_0x40d7c2,_0x46ce62,_0x280035),_0x5148b3('isAddSuggestion',_0x40d7c2,_0x46ce62,_0x280035),_0x5148b3('isRemoved',_0x40d7c2,_0x46ce62,_0x280035),_0x5148b3('isAdded',_0x40d7c2,_0x46ce62,_0x280035);for(const _0x3858cf of _0x55a322[_0x40d7c2]['markersEnd']){_0x5689ca['get'](_0x3858cf)['end']=_0x280035;}}for(const [_0x290ee8,_0x250230]of _0x5689ca){const _0x50717c=this['editor']['model']['createRange'](_0x250230['start'],_0x250230['end']);_0x46c588['markers']['set'](_0x290ee8,_0x50717c);}return _0x5c4514['sort']((_0x923dfe,_0x5c657f)=>{const _0x2be8c6=_0x46c588['markers']['get']('revision:'+_0x923dfe['id']),_0x3d6430=_0x46c588['markers']['get']('revision:'+_0x5c657f['id']);return _0x2be8c6['start']['isBefore'](_0x3d6430['start'])?-0x1:_0x2be8c6['start']['isAfter'](_0x3d6430['start'])?0x1:_0x2be8c6['end']['isBefore'](_0x3d6430['end'])?-0x1:_0x2be8c6['end']['isAfter'](_0x3d6430['end'])?0x1:'add'===_0x923dfe['type']?-0x1:0x1;}),{'root':_0x46c588,'changes':_0x5c4514};function _0x5148b3(_0x522ba5,_0x7118ed,_0x134b63,_0x59787c){const _0x42820b=!!_0x55a322[_0x7118ed][_0x522ba5],_0x36a708=_0x42820b?_0x55a322[_0x7118ed][_0x522ba5]['userId']:null,_0x446860=_0x7118ed===_0x55a322['length']-0x1,_0x564e92=_0x5aa55f[_0x522ba5][0x0],_0x2aec6a=_0x23a9d7['isObject'](_0x55a322[_0x7118ed]['item']);!_0x4fe9f8[_0x522ba5]&&_0x42820b?_0x4fe9f8[_0x522ba5]={'start':_0x134b63,'tapeItem':_0x55a322[_0x7118ed],'userId':_0x36a708,'type':_0x522ba5}:_0x4fe9f8[_0x522ba5]&&!_0x42820b?(_0x4fe9f8[_0x522ba5]['end']=_0x134b63,_0x5db836(_0x4fe9f8[_0x522ba5]),_0x4fe9f8[_0x522ba5]=null):_0x4fe9f8[_0x522ba5]&&_0x42820b&&_0x4fe9f8[_0x522ba5]['userId']!==_0x36a708&&(_0x4fe9f8[_0x522ba5]['end']=_0x134b63,_0x564e92&&_0x564e92['userId']===_0x4fe9f8[_0x522ba5]['userId']||_0x5db836(_0x4fe9f8[_0x522ba5]),_0x4fe9f8[_0x522ba5]={'start':_0x134b63,'tapeItem':_0x55a322[_0x7118ed],'userId':_0x36a708,'type':_0x522ba5}),_0x4fe9f8[_0x522ba5]&&_0x2aec6a&&('elementStart'!==_0x55a322[_0x7118ed]['type']||_0x564e92&&_0x564e92['userId']===_0x36a708||_0x5aa55f[_0x522ba5]['unshift']({'userId':_0x36a708,'object':_0x55a322[_0x7118ed]['item'],'change':_0x4fe9f8[_0x522ba5]}),'elementEnd'===_0x55a322[_0x7118ed]['type']&&_0x564e92&&_0x564e92['object']===_0x55a322[_0x7118ed]['item']&&(_0x5aa55f[_0x522ba5]['shift'](),_0x4fe9f8[_0x522ba5]=_0x564e92['change'])),_0x4fe9f8[_0x522ba5]&&_0x446860&&(_0x4fe9f8[_0x522ba5]['end']=_0x59787c,_0x5db836(_0x4fe9f8[_0x522ba5]),_0x4fe9f8[_0x522ba5]=null);}function _0x5db836({start:_0x154c7d,end:_0x4b4b84,tapeItem:_0x33cc97,userId:_0x49461b,type:_0x4631c8}){const _0x287239=_0x33cc97['item'],_0x3dfd70=_0x2a1713['schema']['isBlock'](_0x287239)&&!_0x2a1713['schema']['isLimit'](_0x287239),_0x110d17=_0x154c7d['nodeAfter']==_0x4b4b84['parent']&&_0x4b4b84['isAtStart'];if(_0x3dfd70&&_0x110d17)return;const _0x4d1fc4=_0x2a1713['createRange'](_0x154c7d,_0x4b4b84),_0x10e975=_0x16b18a['get'](_0x49461b),_0x2ed6f0=new r({'author':_0x10e975,'type':'isAdded'==_0x4631c8||'isAddSuggestion'==_0x4631c8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4631c8||'isRemoveSuggestion'==_0x4631c8},'createdAt':new Date(),'rootName':_0x38d9ab});_0x5c4514['push'](_0x2ed6f0),_0x46c588['markers']['set']('revision:'+_0x2ed6f0['id'],_0x4d1fc4);}function _0x238602(_0x294989,_0xb0ebc4){const _0xfeffa4=_0x294989['getAttributes'](),_0x171cd8=_0xb0ebc4['getAttributes']();for(const _0x374dc3 of _0xfeffa4){if(_0x374dc3[0x1]!==_0xb0ebc4['getAttribute'](_0x374dc3[0x0]))return!0x1;_0x171cd8['next']();}return _0x171cd8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x203b2b=>{const _0x40f0f1=_0x203b2b['markerName']['split'](':')[0x1],_0x44eb5b=this['_getChangeFromId'](_0x40f0f1);if(!_0x44eb5b)return null;const _0x4f349a='add'==_0x44eb5b['type']?'insertion':'deletion',_0x45a1d6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4f349a];return _0x44eb5b['data']['isSuggestion']&&_0x45a1d6['push']('ck-suggestion-marker-'+_0x4f349a+'-new'),this['activeChange']==_0x44eb5b&&_0x45a1d6['push']('ck-suggestion-marker--active'),{'classes':_0x45a1d6,'attributes':{'data-change-id':_0x40f0f1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22c368=>{_0x22c368['on']('element:pre',(_0x3cb7f1,_0x249358,_0x423ae3)=>{const _0x289418=_0x249358['viewItem']['getChild'](0x0);if(!_0x289418||!_0x289418['is']('element','code'))return;if(!_0x423ae3['consumable']['consume'](_0x289418,{'attributes':['vid_start','vid_end']}))return;const _0x364236=_0x249358['modelRange']['start']['nodeAfter'];_0x423ae3['writer']['setAttribute']('vid_start',_0x289418['getAttribute']('vid_start'),_0x364236),_0x423ae3['writer']['setAttribute']('vid_end',_0x289418['getAttribute']('vid_end'),_0x364236);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5d17a0=>{_0x5d17a0['on']('element',(_0x344ca7,_0x17fd5f,_0x331274)=>{if(!_0x331274['consumable']['consume'](_0x17fd5f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x17fd5f['modelRange']['isCollapsed'])return;const _0x1aa2da=_0x17fd5f['modelRange']['start']['nodeAfter'];_0x1aa2da['hasAttribute']('vid_start')||_0x1aa2da['hasAttribute']('vid')||(_0x331274['writer']['setAttribute']('vid_start',_0x17fd5f['viewItem']['getAttribute']('vid_start'),_0x1aa2da),_0x331274['writer']['setAttribute']('vid_end',_0x17fd5f['viewItem']['getAttribute']('vid_end'),_0x1aa2da));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x541f91=>_0x541f91['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xedbf08,[,_0x2b8c8d])=>{['vid_start','vid_end','vid']['includes'](_0x2b8c8d)&&(_0xedbf08['return']=!0x0,_0xedbf08['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b59d6=>{_0x2b59d6['on']('attribute:vid',(_0x3d42d5,_0x5b6b3e,_0x40cadd)=>{if('\x20'!=_0x5b6b3e['item']['data']||_0x5b6b3e['item']['parent']['maxOffset']>0x1)return;if(!_0x40cadd['consumable']['consume'](_0x5b6b3e['item'],_0x3d42d5['name']))return;const _0x515900=_0x40cadd['writer'],_0x41bfdc=_0x40cadd['mapper']['toViewRange'](_0x5b6b3e['range']);_0x515900['wrap'](_0x41bfdc,_0x515900['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x57773f){const _0x5c9b53=_0x57773f['plugins']['get']('RevisionViewer');return(_0x2b99a1,_0x55947,_0x56ccaf)=>{const _0x3a7cae=_0x55947['markerName']['split'](':')[0x1],_0x5247c8=_0x5c9b53['_getChangeFromId'](_0x3a7cae);if(!_0x5247c8)return null;const _0x1536f6='add'==_0x5247c8['type']?'split':'merge';if(!_0x56ccaf['consumable']['test'](_0x55947['markerRange'],_0x2b99a1['name']))return;const _0x563b0b=_0x55947['markerRange']['getWalker'](),_0xe70d63=_0x55947['markerRange']['start'],_0x41c954=_0x57773f['model']['schema'];let _0x15e532=null,_0x3a857a=null,_0x4dffda=!0x1,_0xffea64=!0x1;for(const _0x30e82c of _0x563b0b){const _0x31b3bd=_0x30e82c['item'];_0x4dffda=_0x4dffda||_0x41c954['isContent'](_0x31b3bd);const _0x1319b2=_0x56ccaf['mapper']['toViewElement'](_0x31b3bd);if(_0x1319b2&&_0x1319b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30e82c['type']&&(_0x41c954['isBlock'](_0x31b3bd)&&!_0x41c954['isLimit'](_0x31b3bd)&&(_0x31b3bd['nextSibling']||_0xe70d63['isAtEnd']?_0x15e532&&_0x15e532['parent']==_0x31b3bd||(_0x15e532=_0x31b3bd,_0x3b1909(_0x30e82c['previousPosition']),_0xffea64=!0x0):_0x3a857a=_0x3a857a||_0x30e82c['previousPosition']));}function _0x3b1909(_0x4c7f8f){const _0x3b1bbd=_0x56ccaf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1536f6}),_0x5540ee=_0x56ccaf['mapper']['toViewPosition'](_0x4c7f8f);_0x5247c8['data']['isSuggestion']&&_0x56ccaf['writer']['addClass']('ck-suggestion-marker-'+_0x1536f6+'-new',_0x3b1bbd),_0x5c9b53['activeChange']==_0x5247c8&&_0x56ccaf['writer']['addClass']('ck-suggestion-marker--active',_0x3b1bbd),_0x56ccaf['writer']['insert'](_0x5540ee,_0x3b1bbd),_0x56ccaf['mapper']['bindElementToMarker'](_0x3b1bbd,_0x55947['markerName']);}_0x4dffda||_0xffea64||!_0x3a857a||_0x3b1909(_0x3a857a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x39daa4,_0x5e6f84,_0x14102c)=>{const _0x108a15=_0x14102c['mapper']['markerNameToElements'](_0x5e6f84['markerName']);if(_0x108a15){for(const _0x3d6c04 of _0x108a15)(_0x3d6c04['hasClass']('ck-suggestion-marker-split')||_0x3d6c04['hasClass']('ck-suggestion-marker-merge'))&&(_0x14102c['mapper']['unbindElementFromMarkerName'](_0x3d6c04,_0x5e6f84['markerName']),_0x14102c['writer']['remove'](_0x3d6c04));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x38fbf0,_0x5055aa,_0x1fe22d)=>{const _0x38858c=_0x5055aa['markerName']['split'](':')[0x1],_0x43bffd=this['_getChangeFromId'](_0x38858c);if(!_0x43bffd)return null;const _0x5974c1='add'==_0x43bffd['type']?'split':'merge';if(_0x1fe22d['consumable']['test'](_0x5055aa['markerRange'],_0x38fbf0['name']))for(const _0x584612 of _0x5055aa['markerRange']['getItems']()){if(!_0x584612['is']('element','softBreak'))continue;const _0x9e554b=_0x1fe22d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5974c1}),_0x11082a=_0x1fe22d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x584612));_0x43bffd['data']['isSuggestion']&&_0x1fe22d['writer']['addClass']('ck-suggestion-marker-'+_0x5974c1+'-new',_0x9e554b),this['activeChange']==_0x43bffd&&_0x1fe22d['writer']['addClass']('ck-suggestion-marker--active',_0x9e554b),_0x1fe22d['writer']['insert'](_0x11082a,_0x9e554b),_0x1fe22d['mapper']['bindElementToMarker'](_0x9e554b,_0x5055aa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x562ba5=>{for(const _0xe5848a of this['editor']['model']['document']['getRootNames']()){const _0x676769=this['editor']['model']['document']['getRoot'](_0xe5848a),_0x307d86=this['editor']['editing']['view']['document']['getRoot'](_0xe5848a);if(_0x307d86){const _0xa1f124=_0x676769['getAttribute']('revisionHistoryAttachChange');if(_0x562ba5['removeAttribute']('data-change-id',_0x307d86),_0x562ba5['removeClass']('ck-revision-history-root-add',_0x307d86),_0x562ba5['removeClass']('ck-revision-history-root-remove',_0x307d86),_0x562ba5['removeClass']('ck-revision-history-root--active',_0x307d86),_0xa1f124){const _0x460639=this['_getChangeFromId'](_0xa1f124);if(!_0x460639)return null;_0x562ba5['setAttribute']('data-change-id',_0xa1f124,_0x307d86),_0x562ba5['addClass']('ck-revision-history-root-'+_0x460639['type'],_0x307d86),this['activeChange']==_0x460639&&_0x562ba5['addClass']('ck-revision-history-root--active',_0x307d86);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x13f182=>'revision-comment:'+_0x13f182,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x59e51a=>'revision-suggestion:'+_0x59e51a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x50f9d0=>({'name':'suggestion:'+_0x50f9d0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2fc92d=>{const _0x1878dc=_0x2fc92d['markerName']['split'](':')[0x1];return'insertion'!=_0x1878dc&&'deletion'!=_0x1878dc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1878dc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x7c0905,_0x41dfb0,_0x2b044e)=>{const _0x2e5371=_0x2b044e['mapper']['markerNameToElements'](_0x41dfb0['markerName']);if(_0x2e5371){for(const _0x5c9ee2 of _0x2e5371)_0x5c9ee2['is']('uiElement')&&(_0x2b044e['mapper']['unbindElementFromMarkerName'](_0x5c9ee2,_0x41dfb0['markerName']),_0x2b044e['writer']['remove'](_0x5c9ee2));}},{'priority':'high'});}['_getChangeFromId'](_0x2bc815){return this['_changeIdToChange']['get'](_0x2bc815);}['_getViewForChange'](_0x580ce5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x580ce5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x50c294,_0x371862,_0x2b0300,_0x514908)=>{_0x514908&&this['_balloon']['remove'](_0x514908),_0x2b0300&&(this['_balloon']['add']({'view':_0x2b0300,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2b0928=this['editor']['editing'],_0x27849a=this['_getChangeFromId'](_0x2b0300['changeId']);let _0x107b7a;if(_0x27849a['data']['isOnRoot']){const _0x49737b=_0x2b0928['view']['getDomRoot'](_0x27849a['rootName']);_0x107b7a=Array['from'](_0x49737b['getClientRects']());}else{const _0x3dda1d=this['editor']['model']['markers']['get']('revision:'+_0x2b0300['changeId']);_0x107b7a=Array['from'](_0x2b0928['mapper']['markerNameToElements'](_0x3dda1d['name']))['map'](_0x3fd482=>_0x2b0928['view']['domConverter']['mapViewToDom'](_0x3fd482))['map'](_0x351096=>Array['from'](_0x351096['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x107b7a[0x0];return _0x107b7a['find'](_0x4a0de5=>_0x4a0de5['top']-0x3<=this['_activeViewTarget']['y']&&_0x4a0de5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4a0de5['left']-0x3<=this['_activeViewTarget']['x']&&_0x4a0de5['right']+0x3>=this['_activeViewTarget']['x'])||_0x107b7a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3470ed,_0x44ba9a,_0x46b5b1,_0x22353a)=>{this['activeView']=_0x46b5b1?this['_getViewForChange'](_0x46b5b1):null,this['editor']['model']['change'](()=>{const _0x54cb26=this['editor']['editing'];_0x22353a&&(_0x22353a['data']['isOnRoot']?_0x54cb26['view']['change'](_0xa88ab1=>{_0xa88ab1['removeClass']('ck-revision-history-root--active',_0x54cb26['view']['document']['getRoot'](_0x22353a['rootName']));}):_0x54cb26['reconvertMarker']('revision:'+_0x22353a['id'])),_0x46b5b1&&(_0x46b5b1['data']['isOnRoot']?_0x54cb26['view']['change'](_0x5f53b2=>{_0x5f53b2['addClass']('ck-revision-history-root--active',_0x54cb26['view']['document']['getRoot'](_0x46b5b1['rootName']));}):_0x54cb26['reconvertMarker']('revision:'+_0x46b5b1['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x265367,_0xc550f8)=>{if(this['activeChange'])return;const _0x25497d=this['_findChangeIdFromDomTarget'](_0xc550f8['target']),_0xc46c83=this['_changeIdToChange']['get'](_0x25497d);_0xc46c83?(this['_activeViewTarget']={'x':_0xc550f8['domEvent']['x'],'y':_0xc550f8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xc46c83)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x368e38,_0x5cc841)=>{const _0x302477=this['_findChangeIdFromDomTarget'](_0x5cc841['target']),_0x54c505=this['_changeIdToChange']['get'](_0x302477);_0x54c505?(this['_activeViewTarget']={'x':_0x5cc841['domEvent']['x'],'y':_0x5cc841['domEvent']['y']},_0x54c505===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x54c505):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5d198c){do{const _0x5beb7e=_0x5d198c['getAttribute']('data-change-id');if(_0x5beb7e)return _0x5beb7e;_0x5d198c=_0x5d198c['parent'];}while(_0x5d198c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x53fd84=>{for(const _0x25821b of this['editor']['model']['markers'])_0x53fd84['removeMarker'](_0x25821b);});}}function tt(_0x3060d2,_0x1481f7){return(_0x2701fb,_0xc656b1,_0x44771c)=>{if(!_0x44771c['consumable']['test'](_0xc656b1['markerRange'],_0x2701fb['name']))return;const _0x49caac=_0xc656b1['markerRange']['getWalker'](),_0x115338=_0xc656b1['markerRange']['start'],_0xff32f2=_0x3060d2['model']['schema'];let _0x2cda77=null,_0x51aa44=null,_0x3fe2c4=!0x1,_0x537b3a=!0x1;for(const _0x1f86a2 of _0x49caac){const _0x2b427c=_0x1f86a2['item'];_0x3fe2c4=_0x3fe2c4||_0xff32f2['isContent'](_0x2b427c);const _0xaa3b33=_0x44771c['mapper']['toViewElement'](_0x2b427c);if(_0xaa3b33&&_0xaa3b33['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f86a2['type']&&(_0xff32f2['isBlock'](_0x2b427c)&&!_0xff32f2['isLimit'](_0x2b427c)&&(_0x2b427c['nextSibling']||_0x115338['isAtEnd']?_0x2cda77&&_0x2cda77['parent']==_0x2b427c||(_0x2cda77=_0x2b427c,_0x36383f(_0x1f86a2['previousPosition']),_0x537b3a=!0x0):_0x51aa44=_0x51aa44||_0x1f86a2['previousPosition']));}function _0x36383f(_0x3106f0){const _0x20c75c=_0x44771c['mapper']['toViewPosition'](_0x3106f0),_0x2ceb90=_0x44771c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1481f7});_0x44771c['writer']['insert'](_0x20c75c,_0x2ceb90),_0x44771c['mapper']['bindElementToMarker'](_0x2ceb90,_0xc656b1['markerName']);}_0x3fe2c4||_0x537b3a||!_0x51aa44||_0x36383f(_0x51aa44);};}class _t extends _0x3538db{constructor(_0x3c780a){super(_0x3c780a);const _0x93d65f=_0x3c780a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x93d65f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x93d65f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4d5ff8=this['editor'],_0x371fee=_0x4d5ff8['plugins']['get'](d),_0xef9492=_0x371fee['isReady']?_0x371fee['diff']['newRevisionId']:null;_0x4d5ff8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xef9492);}['refresh'](){const {isReady:_0x4e9d59,isEnabled:_0x55552d}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x4e9d59&&_0x55552d;}}class yt extends _0x3538db{['_step'];constructor(_0x24eb37,{direction:_0x4e5cdd}){super(_0x24eb37);const _0x3e21c8=_0x24eb37['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4e5cdd?0x1:-0x1,this['listenTo'](_0x3e21c8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e21c8,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e21c8,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x6be02c=this['editor'],_0x1f3bce=_0x6be02c['plugins']['get'](d),{isNavigationMode:_0x199c1c,currentChangeNumber:_0x16ef23}=_0x1f3bce;let _0x40ec8d;if(_0x1f3bce['activeChange']=_0x199c1c?_0x1f3bce['diff']['changes']['get'](_0x16ef23+this['_step']):_0x1f3bce['diff']['changes']['first'],_0x1f3bce['activeChange']['data']['isOnRoot'])_0x40ec8d=_0x6be02c['editing']['view']['getDomRoot'](_0x1f3bce['activeChange']['rootName']);else{const _0x539258=_0x6be02c['model']['markers']['get']('revision:'+_0x1f3bce['activeChange']['id']);_0x40ec8d=_0x5155af(_0x6be02c['editing'],_0x539258);}_0xc1fbb6({'target':_0x40ec8d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1e57d3,currentChangeNumber:_0x3129d3,numberOfChanges:_0x49b9bd,isReady:_0x835db9,isEnabled:_0x170682}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x170682&&_0x835db9&&_0x49b9bd)&&(!_0x1e57d3||(0x1===this['_step']?_0x3129d3<_0x49b9bd-0x1:_0x3129d3>0x0));}}class ui extends ts{constructor(_0x9e5eb7){super(_0x9e5eb7);const _0x3fa784=this['bindTemplate'],_0x1686a2=new te(_0x9e5eb7),_0x28b735=new te(_0x9e5eb7);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',(_0x2c00aa,_0x2c0a10)=>_0x2c00aa&&_0x2c0a10>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5b50ef,_0x458d30,_0x14e72b,_0x11d6cd)=>{if(!_0x5b50ef)return R(_0x9e5eb7,'Loading...');if(!_0x14e72b)return R(_0x9e5eb7,'No\x20changes');const _0x5272e9=R(_0x9e5eb7,'NUMBER_OF_CHANGES',_0x14e72b);return _0x11d6cd?R(_0x9e5eb7,'X_OF_Y_CHANGES',[_0x458d30+0x1,_0x14e72b]):_0x5272e9;}),_0x1686a2['set']({'label':R(_0x9e5eb7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x28b735['set']({'label':R(_0x9e5eb7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x1686a2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x28b735['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1686a2['on']('execute',()=>this['fire']('execute','backward')),_0x28b735['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',_0x3fa784['if']('_isStatusLabelVisible','ck-hidden',_0x395430=>!_0x395430)]},'children':[{'text':_0x3fa784['to']('isNavigationMode',_0x36c9dd=>_0x36c9dd?R(_0x9e5eb7,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x9e5eb7,'Total')+':\x20')}]},{'text':_0x3fa784['to']('_statusText')}]},new _0x526fbd(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1686a2,_0x28b735]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x4b9689{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3e8b40=this['editor']['editing']['view'];_0x3e8b40['change'](_0x139b5d=>{for(const _0x2bbe70 of _0x3e8b40['document']['roots'])_0x139b5d['addClass'](le,_0x2bbe70);});}['hide'](){const _0x361f2d=this['editor']['editing']['view'];_0x361f2d['change'](_0x2c734c=>{for(const _0x291879 of _0x361f2d['document']['roots'])_0x2c734c['removeClass'](le,_0x291879);});}}class m extends _0x4b9689{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x1f5c76=this['editor'],_0x596a07=_0x1f5c76['plugins']['get'](d),_0x1d3dcd=_0x1f5c76['plugins']['get'](de);_0x1f5c76['ui']['componentFactory']['add']('exitToEditing',_0x15dcf4=>{const _0xd16b16=new te(_0x15dcf4);return _0xd16b16['set']({'label':R(_0x15dcf4,'Back\x20to\x20editing'),'icon':_0x2cf5cf['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xd16b16,'execute',()=>{_0x1f5c76['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xd16b16;}),_0x1f5c76['ui']['componentFactory']['add']('restoreRevision',_0x4b4264=>{const _0x5d31b8=new te(_0x4b4264);return _0x5d31b8['set']({'label':R(_0x4b4264,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5d31b8['bind']('isEnabled')['to'](_0x1f5c76['commands']['get']('restoreRevision')),this['listenTo'](_0x5d31b8,'execute',()=>_0x1f5c76['execute']('restoreRevision')),_0x5d31b8;}),_0x1f5c76['ui']['componentFactory']['add']('changesNavigation',_0x4baa96=>{const _0x1e38f2=new ui(_0x4baa96),_0x171724=_0x1f5c76['commands']['get']('showPreviousChange'),_0x3ddad4=_0x1f5c76['commands']['get']('showNextChange');return _0x1e38f2['bind']('isBackwardNavigationEnabled')['to'](_0x171724,'isEnabled'),_0x1e38f2['bind']('isForwardNavigationEnabled')['to'](_0x3ddad4,'isEnabled'),_0x1e38f2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x596a07),this['listenTo'](_0x1e38f2,'execute',(_0x550e56,_0x2a2c36)=>{_0x1f5c76['execute']('forward'===_0x2a2c36?'showNextChange':'showPreviousChange');}),_0x1e38f2;}),_0x1d3dcd['show'](),_0x596a07['on']('change:isReady',(_0x54710e,_0x29598f,_0x211a32)=>{_0x211a32?_0x1d3dcd['hide']():_0x1d3dcd['show']();});}}class pt extends _0x1cb1cf{['_resizeObserver']=null;constructor(_0x2e7cc6,_0x4a4fd2){super(_0x2e7cc6,_0x4a4fd2);const _0x377bbd=this['bindTemplate'];this['set']({'label':R(_0x2e7cc6,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2e7cc6,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x377bbd['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 _0x707db=this['fieldView']['element'];this['_tooltipString']=_0x707db['scrollWidth']>_0x707db['clientWidth']&&_0x707db['value']||'';}}class ri extends ts{constructor(_0x2adc8a,_0x277333,_0x29d815){super(_0x2adc8a);const _0x31b29f=new _0x246643();_0x31b29f['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3e8144=['ck','ck-revision-history-sidebar__revision-author'];_0x29d815&&_0x3e8144['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4f760f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2adc8a,_0x29d815?'Revision\x20creator':'Revision\x20author')},'children':[_0x31b29f,_0x277333['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e8144},'children':_0x4f760f});}}function oi(_0x507dc0,_0x3388e0){const _0x4466fd=_0x507dc0['bindTemplate'],_0x5a1ac3=_0x507dc0['locale'],_0x2fd912=_0x517a39(_0x5a1ac3);_0x2fd912['panelPosition']='sw';const _0x357090=function(_0x2f2473,_0x5b2e3c){const _0x26da32=function(_0x2618a7,_0x85a8b){const _0x3e1cf3=_0x2618a7['locale'],_0x19411c={'Compare\x20against\x20selected':R(_0x3e1cf3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3e1cf3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3e1cf3,'Restore\x20this\x20revision')};return _0x85a8b['map'](_0x1fdae9=>{const _0x173bc4=_0x19411c[_0x1fdae9['name']];return _0x173bc4&&_0x173bc4!==_0x1fdae9['name']&&(_0x1fdae9['name']=_0x173bc4),_0x1fdae9;});}(_0x2f2473,_0x5b2e3c),_0xb983ec=new _0x556087();for(const _0x56c759 of _0x26da32){const _0x21ab32={'type':'button','model':new _0x41f987({'label':_0x56c759['name'],'class':_0x56c759['class'],'withText':!0x0,'role':'menuitem','_action':_0x56c759['action']})};_0x21ab32['model']['bind']('isEnabled')['to'](_0x2f2473,'isActionsDropdownOpen',_0x80b1a6=>'function'!=typeof _0x56c759['isEnabled']||(!_0x80b1a6||_0x56c759['isEnabled'](_0x2f2473))),_0xb983ec['add'](_0x21ab32);}return _0xb983ec;}(_0x507dc0,_0x3388e0);return _0x507dc0['bind']('isActionsDropdownOpen')['to'](_0x2fd912,'isOpen'),_0x2fd912['buttonView']['set']({'label':R(_0x5a1ac3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2cf5cf['threeVerticalDots']}),_0x2fd912['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4466fd['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4466fd['to'](_0x5db32f=>_0x5db32f['stopPropagation']())}}),_0x2fd912['on']('execute',_0x1de1c0=>{_0x507dc0['isReady']&&'function'==typeof _0x1de1c0['source']['_action']&&_0x1de1c0['source']['_action'](_0x507dc0);}),to(_0x2fd912,_0x357090,{'role':'menu'}),_0x2fd912['listenTo'](_0x507dc0,'change:isActionsDropdownOpen',(_0x29ee49,_0x8f4a0a,_0x28a6bc)=>{if(_0x28a6bc)for(const _0x59a95d of _0x2fd912['listView']['items']){const _0x5ab400=_0x59a95d['children']['first'],_0x1aff8a=_0x3388e0['find'](_0xb4f02a=>_0xb4f02a['action']===_0x5ab400['_action'])['isVisible'];_0x59a95d['isVisible']=void 0x0===_0x1aff8a||_0x1aff8a(_0x507dc0);}}),_0x2fd912;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x11b02b,_0x52115d,_0x40487e,_0x4e42f9){super(_0x11b02b);const _0x36e6b6=this['bindTemplate'],_0x2021fe=function(_0x13d884,_0x157bfb){const _0x4f7053=Array['from'](_0x157bfb['authors'])['filter'](_0x983c71=>_0x983c71!=_0x157bfb['creator']);return _0x157bfb['creator']&&_0x4f7053['unshift'](_0x157bfb['creator']),_0x4f7053['map'](_0x473695=>new ri(_0x13d884,_0x473695,_0x473695==_0x157bfb['creator']));}(_0x11b02b,_0x52115d);this['id']=_0x52115d['id'],this['_revision']=_0x52115d,this['_requireRevisionName']=_0x4e42f9,this['bind']('name','createdAt')['to'](_0x52115d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x580ecd=>{return _0x2f4fc2=_0x11b02b['uiLanguage'],(_0x278f46=_0x580ecd)['toLocaleDateString'](_0x2f4fc2,{'month':'long','day':'numeric'})+',\x20'+_0x278f46['toLocaleTimeString'](_0x2f4fc2,{'hour':'numeric','minute':'numeric'});var _0x2f4fc2,_0x278f46;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x11b02b,_0x25179f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x372f79=>_0x372f79||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xbec38b,_0x5879f9)=>_0xbec38b&&_0x5879f9),this['revisionActionsView']=_0x40487e&&_0x40487e['length']?oi(this,_0x40487e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x36e6b6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x36e6b6['if']('isEnabled','ck-disabled',_0x29ff53=>!_0x29ff53),_0x36e6b6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x36e6b6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x36e6b6['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':_0x36e6b6['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':_0x2021fe}]},this['revisionActionsView']],'on':{'click':_0x36e6b6['to'](_0xe3eb=>{_0xe3eb['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x184edb=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x184edb,'change',()=>{this['_requireRevisionName']&&!_0x184edb['value']||this['fire']('setName',{'id':this['id'],'name':_0x184edb['value']}),_0x184edb['value']||(_0x184edb['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x516de0,_0x19bb6d){const _0x540ae4=_0x3f904c['fromJSDate'](_0x516de0)['setLocale'](_0x19bb6d),_0x4f08ca=_0x3f904c['local'](),_0x2476b9=_0x4f08ca['minus']({'days':0x1})['startOf']('day');let _0x1851e6,_0x5b1c54;return _0x540ae4['hasSame'](_0x4f08ca,'day')?(_0x1851e6=_0x540ae4['startOf']('day')['toJSDate'](),_0x5b1c54=_0x540ae4['toRelativeCalendar']()):_0x540ae4['hasSame'](_0x2476b9,'day')?(_0x1851e6=_0x2476b9['toJSDate'](),_0x5b1c54=_0x540ae4['toRelativeCalendar']()):_0x540ae4['hasSame'](_0x4f08ca,'week')?(_0x1851e6=_0x540ae4['startOf']('week')['toJSDate'](),_0x5b1c54=_0x540ae4['weekdayLong']||''):_0x540ae4['hasSame'](_0x4f08ca,'year')?(_0x1851e6=_0x540ae4['startOf']('month')['toJSDate'](),_0x5b1c54=_0x540ae4['monthLong']||''):(_0x1851e6=_0x540ae4['startOf']('year')['toJSDate'](),_0x5b1c54=String(_0x540ae4['year'])),{'startDate':_0x1851e6,'localizedPeriodName':_0x5b1c54};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x38070d,_0x54487b,_0x2b7138,_0x4a91d6){super(_0x38070d);const _0x383fc4=mi(_0x54487b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x54487b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2b7138,this['_requireRevisionName']=_0x4a91d6,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':_0x383fc4}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4e293f){const _0x5966ac=new hi(this['locale'],_0x4e293f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5966ac);}['removeRevision'](_0x1f9c72){const _0x2a1424=this['revisionViews']['find'](_0x588615=>_0x588615['id']===_0x1f9c72['id']);this['revisionViews']['remove'](_0x2a1424);}}class as extends ts{constructor(_0x259b77){super(_0x259b77);const _0x5344ba=new _0x246643();_0x5344ba['content']=_0x2cf5cf['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5344ba,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x259b77,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3e2d19,_0x3341a2,_0x47fcee,_0x590fa2){super(_0x3e2d19);const _0x3cbeaa=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3341a2,this['_revisionActions']=_0x47fcee,this['_requireRevisionName']=_0x590fa2,this['on']('select',(_0x3f1548,_0xe798ce)=>{this['fire']('revisionSelected',_0xe798ce);}),this['on']('setName',(_0x3c4814,_0x37e0d2)=>{this['fire']('revisionSetName',_0x37e0d2);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3e2d19),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3cbeaa['if']('isEnabled','ck-disabled',_0x440eba=>!_0x440eba)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x310603 of this['_revisions'])this['_addRevision'](_0x310603);this['_revisions']['on']('add',(_0x16eb45,_0x34f5c8)=>{this['_addRevision'](_0x34f5c8);}),this['_revisions']['on']('remove',(_0x79524b,_0x1030a1)=>{this['_removeRevision'](_0x1030a1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4f7bb9=>_0x4f7bb9['revisionViews']['map'](_0x5bc66b=>_0x5bc66b))['flat']();}['selectRevision'](_0x27bf0d){for(const _0x3c109c of this['revisionViews'])_0x27bf0d&&_0x27bf0d['id']===_0x3c109c['id']?_0x3c109c['select']():_0x3c109c['deselect']();}['highlightRevisions'](_0xe1c8a1){for(const _0x330f27 of this['revisionViews'])_0xe1c8a1['some'](({id:_0x34afa9})=>_0x34afa9===_0x330f27['id'])?_0x330f27['highlight']():_0x330f27['unhighlight']();}['_addRevision'](_0x55ab8b){const _0xb59830=mi(_0x55ab8b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x363f46=this['timePeriodViews']['get'](0x0);_0x363f46&&_0x363f46['startDate']['getTime']()===_0xb59830['getTime']()||(_0x363f46=new vi(this['locale'],_0xb59830,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x363f46)),_0x363f46['addRevision'](_0x55ab8b);}['_removeRevision'](_0x47f830){const _0x2f0468=mi(_0x47f830['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2f0468)['removeRevision'](_0x47f830);}['_getTimePeriodViewByStartDate'](_0x41c088){return this['timePeriodViews']['find'](_0x3489bb=>_0x3489bb['startDate']['getTime']()===_0x41c088['getTime']());}}class g extends _0x4b9689{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x2911b1){super(_0x2911b1),this['_revisionViewer']=_0x2911b1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x233869=this['_revisionsRepository']['_revisions'],_0x36c5e1=this['_createRevisionActions'](),_0x1bad7d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x233869,_0x36c5e1,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',(_0x12c223,_0x47be55)=>{_0x47be55['revisionViews']['on']('add',(_0x1e358f,_0x3126e0)=>{_0x3126e0['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)),_0x1bad7d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x8a949a=this['_revisionsRepository']['getRevision'](0x0);if(_0x8a949a){const _0x210ed9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x8a949a['id']);this['_revisionViewer']['compare'](_0x8a949a,_0x210ed9);}}['_handleRevisionSelected'](_0x83f975,_0x3dca26){const _0x5ed852=this['_revisionsRepository']['getRevision'](_0x3dca26['id']),_0x4bb5b2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5ed852['id']);this['_revisionViewer']['compare'](_0x5ed852,_0x4bb5b2);}['_handleRevisionSetName'](_0x16b7e8,_0x142c4d){this['_revisionsRepository']['getRevision'](_0x142c4d['id'])['setName'](_0x142c4d['name']);}['_handleDiffChange'](_0x59fdf4,_0x43bdb3,_0x2af41c){const _0x15a5bf=this['_revisionsRepository']['getRevisionsInDiff'](_0x2af41c);_0x15a5bf['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x15a5bf),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x15a5bf[0x0]));}['_createRevisionActions'](){const _0x1c90fc=this['editor'],_0x1b8f6f=g['availableRevisionActions'],_0x1b5623=_0x1c90fc['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1b5623['length'])return _0x1b5623['map'](_0x1cbded=>{const _0x52ad83='string'==typeof _0x1cbded?Object['assign']({},_0x1b8f6f[_0x1cbded]):_0x1cbded;return _0x52ad83['action']=_0x52ad83['action']['bind'](this,_0x1c90fc),_0x52ad83['isVisible']&&(_0x52ad83['isVisible']=_0x52ad83['isVisible']['bind'](this,_0x1c90fc)),_0x52ad83;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x552441},_0x449c60)=>{const _0x1edb5b=_0x552441['get'](d),_0x5e3825=_0x1edb5b['repository'];let _0x17947f=_0x1edb5b['diff']['newRevisionId'],_0x193f9d=_0x449c60['id'];_0x5e3825['getIndex'](_0x17947f)>_0x5e3825['getIndex'](_0x193f9d)&&([_0x17947f,_0x193f9d]=[_0x193f9d,_0x17947f]),_0x1edb5b['compare'](_0x17947f,_0x193f9d);},'isVisible':({plugins:_0x128d3f},_0x326b33)=>{const _0x1d473d=_0x128d3f['get'](d);return!(_0x1d473d['repository']['getRevisionsInDiff'](_0x1d473d['diff'])['length']>0x2)&&!_0x326b33['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x52ab06,{id:_0x112234})=>{_0x52ab06['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x112234);},'isVisible':({plugins:_0x51e098},_0x198413)=>!!_0x51e098['get'](d)['repository']['getLaterVisibleRevision'](_0x198413['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x559c6e},{id:_0x4fee5a,revisionNameView:_0x106494})=>{const _0x208def=_0x559c6e['get'](d),_0x203c66=_0x208def['repository']['getEarlierVisibleRevision'](_0x4fee5a);_0x208def['compare'](_0x4fee5a,_0x203c66),_0x106494['focus'](),_0x106494['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1dd2cf,_0x56ad8a){super(_0x1dd2cf),this['_view']=_0x56ad8a,this['_toolbarConfig']=ht(_0x1dd2cf['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x304ead){const _0x464f46=this['editor'],_0x5ce802=this['view'],_0x39b360=_0x464f46['editing']['view'],_0x32f1f4=_0x5ce802['editable'],_0x4aa687=_0x39b360['document']['getRoot']();_0x32f1f4['name']=_0x4aa687['rootName'],_0x5ce802['render']();const _0x41363=_0x32f1f4['element'];this['setEditableElement'](_0x32f1f4['name'],_0x41363),_0x5ce802['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x39b360['attachDomRoot'](_0x41363),this['_elementReplacer']['replace'](_0x304ead,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x48de8f=this['view'],_0x1fc1b7=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1fc1b7['detachDomRoot'](_0x48de8f['editable']['name']),_0x48de8f['destroy']();}['_initToolbar'](){const _0x57fd5f=this['view'];_0x57fd5f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x57fd5f['stickyPanel']['limiterElement']=_0x57fd5f['element'],_0x57fd5f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1dbb87})=>_0x1dbb87),_0x57fd5f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x57fd5f['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5be57c,_0x17e48f,_0x442308={}){super(_0x5be57c),this['stickyPanel']=new lt(_0x5be57c),this['toolbar']=new nt(_0x5be57c,{'shouldGroupWhenFull':_0x442308['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x5be57c,_0x17e48f);}['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
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x32bacb,_0x456c9b){super(_0x456c9b),this['sourceElement']=_0x32bacb,this['model']['document']['createRoot']();const _0x461783=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x461783);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1a6855,_0x27eba4){const _0x19c292=new this(_0x1a6855,_0x27eba4);return await _0x19c292['initPlugins'](),await _0x19c292['ui']['init'](_0x1a6855),await _0x19c292['data']['init'](_0x19c292['config']['get']('initialData')||''),_0x19c292['fire']('ready'),_0x19c292;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x51bff9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5792a3){function _0x8b26d(_0xd2409f){return _0xd2409f['map'](_0x1b2c2b=>String['fromCharCode'](_0x1b2c2b))['join']('');}super(_0x5792a3),this['result']='end',_0x5792a3[_0x8b26d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8b26d([0x76,0x69,0x65,0x77])][_0x8b26d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8b26d([0x61,0x75,0x74,0x6f]),_0x5792a3[_0x8b26d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x8b26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8b26d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x8b26d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x8b26d([0x6f,0x6b])});}}class H extends _0x51bff9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x127007){if(super(_0x127007),!this['editor']['config']['get']('revisionHistory'))throw new _0x39b6eb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2dd103=>this['_showRevisionViewer']({..._0x2dd103,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5864ec=>this['_closeRevisionViewer'](_0x5864ec)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x42bae1=>this['_restoreRevision'](_0x42bae1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x207db5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x207db5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3f6637){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3f6637);}['getRevision'](_0x29cd3e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x29cd3e);}['getRevisions'](_0x2e1bc5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2e1bc5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x469d16=this['editor'],_0x3b3a80=_0x32cdda(_0x469d16,p),_0xc0017c=_0x469d16['plugins']['get']('RevisionTracker'),_0x4c4a06=_0x469d16['plugins']['get']('Users')['users'];return _0x3b3a80['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3b3a80['lazyRoots'],(_0x3b3a80['plugins']['push'](k,d,m,class extends _0x51bff9{static get['requires'](){return[d,'Users'];}['init'](){const _0x2ffd61=this['editor']['plugins']['get']('Users');for(const _0x17d92d of _0x4c4a06)_0x17d92d['isAnonymous']||_0x2ffd61['getUser'](_0x17d92d['id'])||_0x2ffd61['addUser'](_0x17d92d);const _0x8c28a2=_0xc0017c['repository']['getRevisions']();let _0x4ec46c=null;const _0x4775c3=this['editor']['plugins']['get']('RevisionViewer');_0x4775c3['adapter']=_0xc0017c['adapter'],_0x4775c3['bind']('isEnabled')['to'](_0xc0017c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x469d16,'isReadOnly',_0x34efbb=>!_0x34efbb);for(const _0x4045f3 of _0x8c28a2){const _0x35e18e=null===_0x4045f3['creator'];if(_0x35e18e&&_0x4045f3['toVersion']===_0x4045f3['fromVersion'])continue;const _0x19d265=_0x4045f3['toJSON']();_0x4775c3['addRevisionData'](_0x19d265,(_0x2c08b6,_0x553074,_0x4ecf3b)=>{if(_0x35e18e){if(_0x4ec46c)_0x4ec46c['_update'](_0x2c08b6,_0x553074);else{if(!_0x553074){const _0x5dc044=_0x4ecf3b['toJSON']();_0x5dc044['id']=_0x2c16be(),_0xc0017c['saveRevision'](_0x5dc044,_0x4ecf3b['toVersion'])['then'](_0x4f5ed3=>{_0x4ec46c=_0x4f5ed3;});}}}else _0x4045f3['_update'](_0x2c08b6,_0x553074);});}}},g),_0x3b3a80);}['_enhanceShowRevisionViewerCallback'](){const _0x2fbc48=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x277f7e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1520ee=this['editor']['plugins']['get']('Autosave');await _0x1520ee['save']();}else await _0x277f7e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x119264=this['editor']['plugins']['get']('Dialog');_0x119264['isOpen']&&_0x119264['hide']();}const _0x3c6c3d=this['_getRevisionViewerEditorConfig']();return _0x2fbc48(_0x3c6c3d)['then'](_0x431d3f=>{return(this['_viewerEditor']=_0x431d3f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x431d3f;})['catch'](_0x264560=>(console['error'](_0x264560),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x42e51e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x42e51e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1c218b=this['editor']['plugins']['get']('Annotations');_0x1c218b['refreshVisibility'](),_0x1c218b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x372a5d){const _0x16912c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x27700d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x48ed0b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x48ed0b,_0x372a5d)['then'](_0x5a956a=>(_0x27700d['style']['display']='block',_0x16912c['style']['display']='none',_0x5a956a));}['_closeRevisionViewer'](_0x1fa1ac){const _0x5951ca=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5951ca['style']['display']='',_0x1fa1ac['destroy']();}async['_restoreRevision'](_0x5e9590){const _0x5571cc=this['editor'],_0x522ab9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x532880=_0x5571cc['plugins']['get']('RevisionTracker'),_0x16debe=_0x522ab9['repository']['getRevision'](_0x5e9590);let _0x19c606,_0x41af28,_0x2c77ea;try{_0x19c606=await _0x522ab9['getRevisionData'](_0x16debe),_0x41af28=await _0x522ab9['getRevisionRootsAttributes'](_0x16debe);}catch(_0x13c9ae){return void console['error'](_0x13c9ae);}_0x5571cc['model']['change'](_0x84f583=>{for(const _0x50cf18 of Array['from'](_0x5571cc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x84f583['removeMarker'](_0x50cf18);}),_0x522ab9['isReady']=!0x1,_0x5571cc['model']['enqueueChange'](_0x3cb96a=>{_0x3cb96a['setSelection'](null),_0x3cb96a['removeSelectionAttribute'](_0x5571cc['model']['document']['selection']['getAttributeKeys']());const _0x24b11f=Object['keys'](_0x19c606);for(const _0x5765d2 of _0x5571cc['model']['document']['roots'])'$graveyard'!=_0x5765d2['rootName']&&_0x5765d2['isAttached']()&&!_0x24b11f['includes'](_0x5765d2['rootName'])&&_0x3cb96a['detachRoot'](_0x5765d2);for(const _0x11358e of _0x24b11f){let _0x111ac5=_0x5571cc['model']['document']['getRoot'](_0x11358e);_0x111ac5&&_0x111ac5['isAttached']()||(_0x111ac5=_0x3cb96a['addRoot'](_0x11358e));const _0x22174d=_0x41af28[_0x11358e],_0x382362=Object['keys'](_0x22174d),_0xb1a57=_0x19c606[_0x11358e];for(const _0x2ed70f of _0x111ac5['getAttributeKeys']())_0x382362['includes'](_0x2ed70f)||_0x3cb96a['removeAttribute'](_0x2ed70f,_0x111ac5);for(const _0x5d6ce6 of _0x382362)_0x3cb96a['setAttribute'](_0x5d6ce6,_0x41af28[_0x11358e][_0x5d6ce6],_0x111ac5);_0x3cb96a['remove'](_0x3cb96a['createRangeIn'](_0x111ac5)),_0x3cb96a['insert'](_0x5571cc['data']['parse'](_0xb1a57,_0x111ac5),_0x111ac5,0x0);}});const _0x1ecbe4=R(_0x5571cc['locale'],'Restored');if(_0x16debe['name'])_0x2c77ea=-0x1==_0x16debe['name']['indexOf'](_0x1ecbe4)?_0x1ecbe4+':\x20'+_0x16debe['name']:_0x16debe['name'];else _0x2c77ea=_0x1ecbe4+':\x20'+(_0x16debe['createdAt']['toLocaleDateString'](_0x5571cc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x16debe['createdAt']['toLocaleTimeString'](_0x5571cc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x532880['saveRevision']({'name':_0x2c77ea}),_0x522ab9['isReady']=!0x0,_0x5571cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3bbea3){super(_0x3bbea3),this['_revisionViewer']=_0x3bbea3['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x438e96=this['_revisionsRepository']['_revisions'],_0x2e69e8=this['_createRevisionActions'](),_0x57dc32=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x438e96,_0x2e69e8,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',(_0x89adec,_0x468a89)=>{_0x468a89['revisionViews']['on']('add',(_0x58fe70,_0x22393d)=>{_0x22393d['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)),_0x57dc32['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4bb441=this['_revisionsRepository']['getRevision'](0x0);if(_0x4bb441){const _0x55b003=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4bb441['id']);this['_revisionViewer']['compare'](_0x4bb441,_0x55b003);}}['_handleRevisionSelected'](_0x5b9d9,_0x20fe4d){const _0x4e02=this['_revisionsRepository']['getRevision'](_0x20fe4d['id']),_0x5099dc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4e02['id']);this['_revisionViewer']['compare'](_0x4e02,_0x5099dc);}['_handleRevisionSetName'](_0x63b14a,_0xa37999){this['_revisionsRepository']['getRevision'](_0xa37999['id'])['setName'](_0xa37999['name']);}['_handleDiffChange'](_0x5c0bb9,_0x2fef1a,_0x4d17f2){const _0x4c3fb9=this['_revisionsRepository']['getRevisionsInDiff'](_0x4d17f2);_0x4c3fb9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4c3fb9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4c3fb9[0x0]));}['_createRevisionActions'](){const _0x908468=this['editor'],_0xe6f461=g['availableRevisionActions'],_0x493091=_0x908468['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x493091['length'])return _0x493091['map'](_0x37c20c=>{const _0x11e845='string'==typeof _0x37c20c?Object['assign']({},_0xe6f461[_0x37c20c]):_0x37c20c;return _0x11e845['action']=_0x11e845['action']['bind'](this,_0x908468),_0x11e845['isVisible']&&(_0x11e845['isVisible']=_0x11e845['isVisible']['bind'](this,_0x908468)),_0x11e845;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x48e2c5},_0x4d1256)=>{const _0x20ad68=_0x48e2c5['get'](d),_0xa820c3=_0x20ad68['repository'];let _0x2de072=_0x20ad68['diff']['newRevisionId'],_0x4a150c=_0x4d1256['id'];_0xa820c3['getIndex'](_0x2de072)>_0xa820c3['getIndex'](_0x4a150c)&&([_0x2de072,_0x4a150c]=[_0x4a150c,_0x2de072]),_0x20ad68['compare'](_0x2de072,_0x4a150c);},'isVisible':({plugins:_0x5376a1},_0x2e9c42)=>{const _0x3dbb29=_0x5376a1['get'](d);return!(_0x3dbb29['repository']['getRevisionsInDiff'](_0x3dbb29['diff'])['length']>0x2)&&!_0x2e9c42['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3bf9d4,{id:_0x3cb8d8})=>{_0x3bf9d4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3cb8d8);},'isVisible':({plugins:_0x11d0b0},_0x5319a5)=>!!_0x11d0b0['get'](d)['repository']['getLaterVisibleRevision'](_0x5319a5['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x49f6eb},{id:_0x42701c,revisionNameView:_0x52c80a})=>{const _0x2ad14c=_0x49f6eb['get'](d),_0x306522=_0x2ad14c['repository']['getEarlierVisibleRevision'](_0x42701c);_0x2ad14c['compare'](_0x42701c,_0x306522),_0x52c80a['focus'](),_0x52c80a['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xa9e9a3,_0x47650e){super(_0xa9e9a3),this['_view']=_0x47650e,this['_toolbarConfig']=ht(_0xa9e9a3['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x5a4646){const _0x56c582=this['editor'],_0x137a02=this['view'],_0x52bf38=_0x56c582['editing']['view'],_0x313fc2=_0x137a02['editable'],_0x55040c=_0x52bf38['document']['getRoot']();_0x313fc2['name']=_0x55040c['rootName'],_0x137a02['render']();const _0x2a4042=_0x313fc2['element'];this['setEditableElement'](_0x313fc2['name'],_0x2a4042),_0x137a02['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x52bf38['attachDomRoot'](_0x2a4042),this['_elementReplacer']['replace'](_0x5a4646,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x49f0a4=this['view'],_0x14a0e3=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x14a0e3['detachDomRoot'](_0x49f0a4['editable']['name']),_0x49f0a4['destroy']();}['_initToolbar'](){const _0x6f4c2d=this['view'];_0x6f4c2d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x6f4c2d['stickyPanel']['limiterElement']=_0x6f4c2d['element'],_0x6f4c2d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1e8840})=>_0x1e8840),_0x6f4c2d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x6f4c2d['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x25b6fe,_0x11ae09,_0x18bebd={}){super(_0x25b6fe),this['stickyPanel']=new lt(_0x25b6fe),this['toolbar']=new nt(_0x25b6fe,{'shouldGroupWhenFull':_0x18bebd['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x25b6fe,_0x11ae09);}['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
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1917db,_0x58261c){super(_0x58261c),this['sourceElement']=_0x1917db,this['model']['document']['createRoot']();const _0x5a1855=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x5a1855);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x356b61,_0x1ecad9){const _0x32bb3a=new this(_0x356b61,_0x1ecad9);return await _0x32bb3a['initPlugins'](),await _0x32bb3a['ui']['init'](_0x356b61),await _0x32bb3a['data']['init'](_0x32bb3a['config']['get']('initialData')||''),_0x32bb3a['fire']('ready'),_0x32bb3a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x4b9689{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30e315){function _0x53a20f(_0x2498a8){return _0x2498a8['map'](_0x127cb7=>String['fromCharCode'](_0x127cb7))['join']('');}super(_0x30e315),this['result']='end',_0x30e315[_0x53a20f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53a20f([0x76,0x69,0x65,0x77])][_0x53a20f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53a20f([0x61,0x75,0x74,0x6f]),_0x30e315[_0x53a20f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x53a20f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53a20f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x53a20f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x53a20f([0x6f,0x6b])});}}class H extends _0x4b9689{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2bcdfa){if(super(_0x2bcdfa),!this['editor']['config']['get']('revisionHistory'))throw new _0x41b268('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f8345=>this['_showRevisionViewer']({..._0x2f8345,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x126c6a=>this['_closeRevisionViewer'](_0x126c6a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b05fc=>this['_restoreRevision'](_0x3b05fc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5531b8){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5531b8;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x57258f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x57258f);}['getRevision'](_0x461600){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x461600);}['getRevisions'](_0x4923f7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4923f7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x20b446=this['editor'],_0x3c86dd=_0x2a6f0f(_0x20b446,p),_0x3fa955=_0x20b446['plugins']['get']('RevisionTracker'),_0x68e821=_0x20b446['plugins']['get']('Users')['users'];return _0x3c86dd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3c86dd['lazyRoots'],(_0x3c86dd['plugins']['push'](k,d,m,class extends _0x4b9689{static get['requires'](){return[d,'Users'];}['init'](){const _0x3809d7=this['editor']['plugins']['get']('Users');for(const _0x59f65b of _0x68e821)_0x59f65b['isAnonymous']||_0x3809d7['getUser'](_0x59f65b['id'])||_0x3809d7['addUser'](_0x59f65b);const _0x203ac6=_0x3fa955['repository']['getRevisions']();let _0x5b4aa6=null;const _0x2086ab=this['editor']['plugins']['get']('RevisionViewer');_0x2086ab['adapter']=_0x3fa955['adapter'],_0x2086ab['bind']('isEnabled')['to'](_0x3fa955),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x20b446,'isReadOnly',_0x5c7cc4=>!_0x5c7cc4);for(const _0x26be10 of _0x203ac6){const _0x4d402b=null===_0x26be10['creator'];if(_0x4d402b&&_0x26be10['toVersion']===_0x26be10['fromVersion'])continue;const _0x30415e=_0x26be10['toJSON']();_0x2086ab['addRevisionData'](_0x30415e,(_0x21314a,_0x458602,_0x555b9f)=>{if(_0x4d402b){if(_0x5b4aa6)_0x5b4aa6['_update'](_0x21314a,_0x458602);else{if(!_0x458602){const _0x40dba2=_0x555b9f['toJSON']();_0x40dba2['id']=_0x1349e3(),_0x3fa955['saveRevision'](_0x40dba2,_0x555b9f['toVersion'])['then'](_0x4b6a3c=>{_0x5b4aa6=_0x4b6a3c;});}}}else _0x26be10['_update'](_0x21314a,_0x458602);});}}},g),_0x3c86dd);}['_enhanceShowRevisionViewerCallback'](){const _0x41fd44=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x44433d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x217012=this['editor']['plugins']['get']('Autosave');await _0x217012['save']();}else await _0x44433d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x312a3c=this['editor']['plugins']['get']('Dialog');_0x312a3c['isOpen']&&_0x312a3c['hide']();}const _0x33b034=this['_getRevisionViewerEditorConfig']();return _0x41fd44(_0x33b034)['then'](_0x5d587e=>{return(this['_viewerEditor']=_0x5d587e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5d587e;})['catch'](_0x3dbebc=>(console['error'](_0x3dbebc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x422796=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x422796(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x369987=this['editor']['plugins']['get']('Annotations');_0x369987['refreshVisibility'](),_0x369987['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2fc918){const _0x1a641b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3cc93f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3ca23e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3ca23e,_0x2fc918)['then'](_0x49c4f7=>(_0x3cc93f['style']['display']='block',_0x1a641b['style']['display']='none',_0x49c4f7));}['_closeRevisionViewer'](_0xb691f2){const _0x671e44=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x671e44['style']['display']='',_0xb691f2['destroy']();}async['_restoreRevision'](_0x444958){const _0x4e53c1=this['editor'],_0x3a2e79=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4527e8=_0x4e53c1['plugins']['get']('RevisionTracker'),_0x13397f=_0x3a2e79['repository']['getRevision'](_0x444958);let _0x4fee3f,_0x5dd2cb,_0x5ce988;try{_0x4fee3f=await _0x3a2e79['getRevisionData'](_0x13397f),_0x5dd2cb=await _0x3a2e79['getRevisionRootsAttributes'](_0x13397f);}catch(_0x13f5c4){return void console['error'](_0x13f5c4);}_0x4e53c1['model']['change'](_0x4ccd11=>{for(const _0x34e5b2 of Array['from'](_0x4e53c1['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4ccd11['removeMarker'](_0x34e5b2);}),_0x3a2e79['isReady']=!0x1,_0x4e53c1['model']['enqueueChange'](_0x4357c8=>{_0x4357c8['setSelection'](null),_0x4357c8['removeSelectionAttribute'](_0x4e53c1['model']['document']['selection']['getAttributeKeys']());const _0x3d0c13=Object['keys'](_0x4fee3f);for(const _0x3f85c1 of _0x4e53c1['model']['document']['roots'])'$graveyard'!=_0x3f85c1['rootName']&&_0x3f85c1['isAttached']()&&!_0x3d0c13['includes'](_0x3f85c1['rootName'])&&_0x4357c8['detachRoot'](_0x3f85c1);for(const _0x40c820 of _0x3d0c13){let _0x280cae=_0x4e53c1['model']['document']['getRoot'](_0x40c820);_0x280cae&&_0x280cae['isAttached']()||(_0x280cae=_0x4357c8['addRoot'](_0x40c820));const _0x3337d2=_0x5dd2cb[_0x40c820],_0x5db022=Object['keys'](_0x3337d2),_0x4e2217=_0x4fee3f[_0x40c820];for(const _0x253bce of _0x280cae['getAttributeKeys']())_0x5db022['includes'](_0x253bce)||_0x4357c8['removeAttribute'](_0x253bce,_0x280cae);for(const _0x35fac6 of _0x5db022)_0x4357c8['setAttribute'](_0x35fac6,_0x5dd2cb[_0x40c820][_0x35fac6],_0x280cae);_0x4357c8['remove'](_0x4357c8['createRangeIn'](_0x280cae)),_0x4357c8['insert'](_0x4e53c1['data']['parse'](_0x4e2217,_0x280cae),_0x280cae,0x0);}});const _0x1796a9=R(_0x4e53c1['locale'],'Restored');if(_0x13397f['name'])_0x5ce988=-0x1==_0x13397f['name']['indexOf'](_0x1796a9)?_0x1796a9+':\x20'+_0x13397f['name']:_0x13397f['name'];else _0x5ce988=_0x1796a9+':\x20'+(_0x13397f['createdAt']['toLocaleDateString'](_0x4e53c1['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x13397f['createdAt']['toLocaleTimeString'](_0x4e53c1['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4527e8['saveRevision']({'name':_0x5ce988}),_0x3a2e79['isReady']=!0x0,_0x4e53c1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};